@univerjs-pro/live-share 0.10.14-nightly.202511070628 → 0.10.14-nightly.202511070939
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 +9 -9
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1579e9=_0x4983;(function(_0x3fcafc,_0x53beda){const _0x1d9de7=_0x4983,_0x20c8f9=_0x3fcafc();while(!![]){try{const _0x4382cc=parseInt(_0x1d9de7(0x6a))/0x1+-parseInt(_0x1d9de7(0x73))/0x2*(parseInt(_0x1d9de7(0x77))/0x3)+parseInt(_0x1d9de7(0x74))/0x4+-parseInt(_0x1d9de7(0x8b))/0x5+parseInt(_0x1d9de7(0x6b))/0x6+-parseInt(_0x1d9de7(0x89))/0x7+parseInt(_0x1d9de7(0x6e))/0x8;if(_0x4382cc===_0x53beda)break;else _0x20c8f9['push'](_0x20c8f9['shift']());}catch(_0x50e5dc){_0x20c8f9['push'](_0x20c8f9['shift']());}}}(_0x58fe,0xe377a));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[_0x1579e9(0x7a)]{['_initialize'](_0x2c0151,_0x10e0e7,_0x418fca,_0x2e69db,_0x353663){const _0x1fb025=_0x1579e9,_0x537aec=_0x2c0151[_0x1fb025(0x88)](n[_0x1fb025(0x83)]),_0x1c9ad6=_0x2c0151['get'](g[_0x1fb025(0x87)]),_0x3b36f4=_0x10e0e7[_0x1fb025(0x6c)](),_0x22895d=_0x10e0e7[_0x1fb025(0x84)](),_0x36c694=_0x537aec['getLiveShareCoordinatorSync'](_0x3b36f4);(_0x36c694==null?void 0x0:_0x36c694[_0x1fb025(0x78)]())!==n['LiveShareStatus']['PRESENTING']||(_0x418fca[_0x1fb025(0x82)]()!==_0x22895d[_0x1fb025(0x82)]()&&this[_0x1fb025(0x70)]['executeCommand'](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x3b36f4,'subUnitId':_0x418fca['getSheetId']()}),!_0x1c9ad6[_0x1fb025(0x6f)](_0x3b36f4))||_0x353663[_0x1fb025(0x7d)](f[_0x1fb025(0x75)]['id'],{'unitId':_0x10e0e7[_0x1fb025(0x6c)](),'sheetId':_0x418fca[_0x1fb025(0x82)](),'sheetViewStartRow':_0x2e69db['startRow'],'sheetViewStartColumn':_0x2e69db['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x4983(_0x32aa6a,_0x5554d8){const _0x58fede=_0x58fe();return _0x4983=function(_0x4983eb,_0x46fe45){_0x4983eb=_0x4983eb-0x67;let _0x5199be=_0x58fede[_0x4983eb];return _0x5199be;},_0x4983(_0x32aa6a,_0x5554d8);}function _0x58fe(){const _0x15fa9d=['LiveShareController','getActiveSheet','LiveShareStatusEnum','No\x20active\x20workbook\x20found.','IRenderManagerService','get','2158870mJZiSV','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1017335RsKjew','getId','stopFollowing','_injector','510574flaHzt','9646218HQWjMU','getUnitId','extend','6330320ukrLTU','getRenderById','_commandService','LiveShareStatus','getLiveShareCoordinatorSync','734012pjVdcu','8160Mfgitf','SetScrollOperation','startPresenting','12DlzWRx','getStatus','FEnum','FRange','tryStartPresenting','IDLE','syncExecuteCommand','FUniver','getActiveWorkbook','startFollowing','getLiveShareStatus','getSheetId'];_0x58fe=function(){return _0x15fa9d;};return _0x58fe();}d['FRange'][_0x1579e9(0x6d)](w);class C extends a['FUniver']{[_0x1579e9(0x81)](){const _0x1a9d7b=_0x1579e9;var _0x416997,_0x32ced2;const _0x817785=this['_injector']['get'](n[_0x1a9d7b(0x83)]),_0x329375=(_0x416997=this[_0x1a9d7b(0x7f)]())==null?void 0x0:_0x416997[_0x1a9d7b(0x67)]();if(!_0x329375)throw new Error(_0x1a9d7b(0x86));const _0x476630=_0x817785[_0x1a9d7b(0x72)](_0x329375);return(_0x32ced2=_0x476630==null?void 0x0:_0x476630[_0x1a9d7b(0x78)]())!=null?_0x32ced2:n[_0x1a9d7b(0x71)][_0x1a9d7b(0x7c)];}[_0x1579e9(0x80)](){const _0x48d225=_0x1579e9;var _0x4b522c;const _0x484957=this['_injector'][_0x48d225(0x88)](n[_0x48d225(0x83)]),_0x531aa3=(_0x4b522c=this[_0x48d225(0x7f)]())==null?void 0x0:_0x4b522c[_0x48d225(0x67)]();if(!_0x531aa3)throw new Error(_0x48d225(0x86));const _0x21d0f0=_0x484957[_0x48d225(0x72)](_0x531aa3);if(!_0x21d0f0)throw new Error(_0x48d225(0x8a));_0x21d0f0[_0x48d225(0x80)]();}['stopFollowing'](){const _0x214aa8=_0x1579e9;var _0xb0163f;const _0x299536=this[_0x214aa8(0x69)][_0x214aa8(0x88)](n['LiveShareController']),_0x4c03b0=(_0xb0163f=this[_0x214aa8(0x7f)]())==null?void 0x0:_0xb0163f[_0x214aa8(0x67)]();if(!_0x4c03b0)throw new Error(_0x214aa8(0x86));const _0x36e985=_0x299536[_0x214aa8(0x72)](_0x4c03b0);if(!_0x36e985)throw new Error(_0x214aa8(0x8a));_0x36e985[_0x214aa8(0x68)]();}[_0x1579e9(0x76)](){const _0x40955a=_0x1579e9;var _0x45370f;const _0x52cda3=this[_0x40955a(0x69)][_0x40955a(0x88)](n[_0x40955a(0x83)]),_0x46aa9d=(_0x45370f=this[_0x40955a(0x7f)]())==null?void 0x0:_0x45370f[_0x40955a(0x67)]();if(!_0x46aa9d)throw new Error(_0x40955a(0x86));const _0x2d10ee=_0x52cda3['getLiveShareCoordinatorSync'](_0x46aa9d);if(!_0x2d10ee)throw new Error(_0x40955a(0x8a));_0x2d10ee[_0x40955a(0x7b)]();}['stopPresenting'](){const _0x3eec5a=_0x1579e9;var _0x490ec5;const _0x35f8c7=this[_0x3eec5a(0x69)]['get'](n['LiveShareController']),_0x23e487=(_0x490ec5=this['getActiveWorkbook']())==null?void 0x0:_0x490ec5[_0x3eec5a(0x67)]();if(!_0x23e487)throw new Error(_0x3eec5a(0x86));const _0x367eea=_0x35f8c7[_0x3eec5a(0x72)](_0x23e487);if(!_0x367eea)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x367eea['stopPresenting']();}}a[_0x1579e9(0x7e)][_0x1579e9(0x6d)](C);class L extends a[_0x1579e9(0x79)]{get[_0x1579e9(0x85)](){const _0x50e795=_0x1579e9;return n[_0x50e795(0x71)];}}a[_0x1579e9(0x79)]['extend'](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x26865f=_0xe914;(function(_0x3151df,_0x2b354f){const _0x57ae4a=_0xe914,_0x47eb96=_0x3151df();while(!![]){try{const _0x567e4b=parseInt(_0x57ae4a(0x206))/0x1+parseInt(_0x57ae4a(0x1fa))/0x2+-parseInt(_0x57ae4a(0x2c3))/0x3*(parseInt(_0x57ae4a(0x25e))/0x4)+parseInt(_0x57ae4a(0x215))/0x5+-parseInt(_0x57ae4a(0x2b9))/0x6*(parseInt(_0x57ae4a(0x261))/0x7)+-parseInt(_0x57ae4a(0x28d))/0x8+parseInt(_0x57ae4a(0x213))/0x9;if(_0x567e4b===_0x2b354f)break;else _0x47eb96['push'](_0x47eb96['shift']());}catch(_0x3d4784){_0x47eb96['push'](_0x47eb96['shift']());}}}(_0x219c,0x8cf09));var T=Object[_0x26865f(0x26e)],U=(_0x141daa,_0x87b48,_0x4a42b8)=>_0x87b48 in _0x141daa?T(_0x141daa,_0x87b48,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a42b8}):_0x141daa[_0x87b48]=_0x4a42b8,_=(_0x5d0de6,_0x39dd6d,_0x6ec0c0)=>U(_0x5d0de6,typeof _0x39dd6d!='symbol'?_0x39dd6d+'':_0x39dd6d,_0x6ec0c0);Object['defineProperty'](exports,Symbol[_0x26865f(0x210)],{'value':_0x26865f(0x2a1)});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:_0x9e999b,..._0x3639e7}){const _0x2ca7dc=_0x26865f,{icon:_0x4bd0a4,id:_0x575cd1,className:_0x915878,extend:_0x597404,..._0x19e1e6}=_0x3639e7,_0x3386ad=(_0x2ca7dc(0x20d)+_0x575cd1+'\x20'+(_0x915878||''))[_0x2ca7dc(0x26d)](),_0x1aea62=v[_0x2ca7dc(0x231)]('_'+H());return j(_0x4bd0a4,''+_0x575cd1,{'defIds':_0x4bd0a4[_0x2ca7dc(0x255)],'idSuffix':_0x1aea62[_0x2ca7dc(0x246)]},{'ref':_0x9e999b,'className':_0x3386ad,..._0x19e1e6},_0x597404);}function j(_0x25d736,_0xe52003,_0x9070b0,_0x1eaf92,_0x2158d5){const _0x347b5c=_0x26865f;return v[_0x347b5c(0x2a6)](_0x25d736[_0x347b5c(0x2cb)],{'key':_0xe52003,...y(_0x25d736,_0x9070b0,_0x2158d5),..._0x1eaf92},(F(_0x25d736,_0x9070b0)[_0x347b5c(0x21e)]||[])[_0x347b5c(0x256)]((_0x49f73c,_0x1c3eec)=>j(_0x49f73c,_0xe52003+'-'+_0x25d736[_0x347b5c(0x2cb)]+'-'+_0x1c3eec,_0x9070b0,void 0x0,_0x2158d5)));}function y(_0x24c3f8,_0x4aff97,_0x140348){const _0xf86f0d=_0x26865f,_0x209dd6={..._0x24c3f8['attrs']};_0x140348!=null&&_0x140348[_0xf86f0d(0x2b3)]&&_0x209dd6['fill']===_0xf86f0d(0x2b3)&&(_0x209dd6['fill']=_0x140348[_0xf86f0d(0x2b3)]),_0x24c3f8['tag']===_0xf86f0d(0x242)&&_0x209dd6['id']&&(_0x209dd6['id']=_0x209dd6['id']+_0x4aff97['idSuffix']),Object['entries'](_0x209dd6)[_0xf86f0d(0x23e)](([_0x3d1e6b,_0x277202])=>{const _0x13a605=_0xf86f0d;_0x3d1e6b===_0x13a605(0x242)&&typeof _0x277202==_0x13a605(0x278)&&(_0x209dd6[_0x3d1e6b]=_0x277202['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4aff97['idSuffix']+')'));});const {defIds:_0x47db57}=_0x4aff97;return!_0x47db57||_0x47db57[_0xf86f0d(0x201)]===0x0||(_0x24c3f8['tag']===_0xf86f0d(0x262)&&_0x209dd6[_0xf86f0d(0x294)]&&(_0x209dd6[_0xf86f0d(0x294)]=_0x209dd6[_0xf86f0d(0x294)]+_0x4aff97[_0xf86f0d(0x2af)]),Object[_0xf86f0d(0x292)](_0x209dd6)['forEach'](([_0x4c650f,_0x250515])=>{const _0x4fc398=_0xf86f0d;typeof _0x250515=='string'&&(_0x209dd6[_0x4c650f]=_0x250515['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4aff97[_0x4fc398(0x2af)]+')'));})),_0x209dd6;}function F(_0x201b19,_0x1fcc05){const _0x544a1e=_0x26865f;var _0x532cc2;const {defIds:_0x1ae6fa}=_0x1fcc05;return!_0x1ae6fa||_0x1ae6fa[_0x544a1e(0x201)]===0x0?_0x201b19:_0x201b19[_0x544a1e(0x2cb)]==='defs'&&((_0x532cc2=_0x201b19[_0x544a1e(0x21e)])!=null&&_0x532cc2[_0x544a1e(0x201)])?{..._0x201b19,'children':_0x201b19['children']['map'](_0x56117e=>typeof _0x56117e[_0x544a1e(0x1f8)]['id']=='string'&&_0x1ae6fa&&_0x1ae6fa[_0x544a1e(0x299)](_0x56117e[_0x544a1e(0x1f8)]['id'])?{..._0x56117e,'attrs':{..._0x56117e['attrs'],'id':_0x56117e[_0x544a1e(0x1f8)]['id']+_0x1fcc05[_0x544a1e(0x2af)]}}:_0x56117e)}:_0x201b19;}function H(){const _0x1f41e6=_0x26865f;return Math['random']()[_0x1f41e6(0x2b4)](0x24)[_0x1f41e6(0x263)](0x2,0x8);}x[_0x26865f(0x272)]=_0x26865f(0x236);const V={'tag':_0x26865f(0x233),'attrs':{'xmlns':_0x26865f(0x208),'fill':_0x26865f(0x254),'viewBox':_0x26865f(0x243),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x26865f(0x2c6),'d':_0x26865f(0x2b1)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x26865f(0x2ae),'fillRule':_0x26865f(0x24e),'clipRule':_0x26865f(0x24e)}}]},R=v[_0x26865f(0x221)](function(_0xb78bb6,_0x55f270){const _0x44aa33=_0x26865f;return v['createElement'](x,Object[_0x44aa33(0x291)]({},_0xb78bb6,{'id':_0x44aa33(0x28f),'ref':_0x55f270,'icon':V}));});R[_0x26865f(0x272)]=_0x26865f(0x288);class E extends o[_0x26865f(0x248)]{constructor(){const _0x3fb831=_0x26865f;super(...arguments),_(this,_0x3fb831(0x2c0),new Set()),_(this,_0x3fb831(0x269),new Set());}[_0x26865f(0x2be)](_0x1f9243){const _0x179719=_0x26865f;return this['_sharedOperations'][_0x179719(0x28b)](_0x1f9243),o[_0x179719(0x220)](()=>this[_0x179719(0x2c0)][_0x179719(0x2a8)](_0x1f9243));}[_0x26865f(0x20f)](_0x233a0f){const _0x2458cf=_0x26865f;return this[_0x2458cf(0x269)][_0x2458cf(0x28b)](_0x233a0f),o['toDisposable'](()=>this['_reporters']['delete'](_0x233a0f));}[_0x26865f(0x1f7)](_0x23f260){const _0x510799=_0x26865f;return this[_0x510799(0x2c0)][_0x510799(0x20c)](_0x23f260);}[_0x26865f(0x265)](_0x2dd8b2){const _0x58ee88=_0x26865f;return Array[_0x58ee88(0x216)](this[_0x58ee88(0x269)])['map'](_0x455482=>_0x455482(_0x2dd8b2));}}var M=Object[_0x26865f(0x2a0)],P=(_0x224b00,_0x3e4cb6,_0x50f3a8,_0x5cb48c)=>{const _0x2946bb=_0x26865f;for(var _0x549584=_0x5cb48c>0x1?void 0x0:_0x5cb48c?M(_0x3e4cb6,_0x50f3a8):_0x3e4cb6,_0x28ba16=_0x224b00[_0x2946bb(0x201)]-0x1,_0x5e2c8d;_0x28ba16>=0x0;_0x28ba16--)(_0x5e2c8d=_0x224b00[_0x28ba16])&&(_0x549584=_0x5e2c8d(_0x549584)||_0x549584);return _0x549584;},S=(_0x5b8e07,_0xe032d3)=>(_0x392a31,_0x41b73a)=>_0xe032d3(_0x392a31,_0x41b73a,_0x5b8e07);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x14e46a,_0x218bfd,_0x3e82ab){const _0x8628e5=_0x26865f;super(),_(this,'_entities',new Map()),(this[_0x8628e5(0x211)]=_0x14e46a,this[_0x8628e5(0x1f9)]=_0x218bfd,this[_0x8628e5(0x280)]=_0x3e82ab,this[_0x8628e5(0x29e)]());}async[_0x26865f(0x253)](_0xb0ca08){const _0x36f6f5=_0x26865f;return this[_0x36f6f5(0x23a)][_0x36f6f5(0x20c)](_0xb0ca08)||await this[_0x36f6f5(0x277)](_0xb0ca08),this[_0x36f6f5(0x23a)][_0x36f6f5(0x289)](_0xb0ca08);}[_0x26865f(0x20e)](_0x15ed3b){const _0x25e7aa=_0x26865f;var _0x106beb;return(_0x106beb=this['_entities'][_0x25e7aa(0x289)](_0x15ed3b))!=null?_0x106beb:null;}[_0x26865f(0x29e)](){const _0x28ad90=_0x26865f;this[_0x28ad90(0x211)][_0x28ad90(0x2bc)](o['UniverInstanceType'][_0x28ad90(0x230)])[_0x28ad90(0x237)](I['takeUntil'](this[_0x28ad90(0x222)]))[_0x28ad90(0x219)](async _0x1cbe7a=>{const _0x1c4181=_0x28ad90,_0x4b17dc=_0x1cbe7a[_0x1c4181(0x245)]();this[_0x1c4181(0x23a)]['has'](_0x4b17dc)||this[_0x1c4181(0x277)](_0x4b17dc);}),this[_0x28ad90(0x211)]['getTypeOfUnitDisposed$'](o[_0x28ad90(0x27a)][_0x28ad90(0x230)])[_0x28ad90(0x237)](I[_0x28ad90(0x23d)](this[_0x28ad90(0x222)]))[_0x28ad90(0x219)](_0x157fb9=>{const _0x1a8cc9=_0x28ad90,_0x5abaf6=_0x157fb9[_0x1a8cc9(0x245)](),_0x2d636d=this[_0x1a8cc9(0x23a)][_0x1a8cc9(0x289)](_0x5abaf6);_0x2d636d==null||_0x2d636d[_0x1a8cc9(0x29b)]();});}async[_0x26865f(0x277)](_0x4d8c18){const _0x417be5=_0x26865f,_0x757775=await this[_0x417be5(0x280)]['requireSession'](_0x4d8c18),_0x3a57bc=this[_0x417be5(0x1f9)][_0x417be5(0x226)](exports[_0x417be5(0x285)],_0x4d8c18,_0x757775);return _0x3a57bc[_0x417be5(0x1f6)](),this['_entities']['set'](_0x4d8c18,_0x3a57bc),_0x3a57bc;}},exports[_0x26865f(0x29f)]=P([S(0x0,o[_0x26865f(0x225)]),S(0x1,o['Inject'](o[_0x26865f(0x27b)])),S(0x2,o[_0x26865f(0x27e)](b[_0x26865f(0x22a)]))],exports[_0x26865f(0x29f)]);var u=(_0x406071=>(_0x406071[_0x26865f(0x279)]=_0x26865f(0x235),_0x406071['IDLE']=_0x26865f(0x274),_0x406071[_0x26865f(0x23b)]=_0x26865f(0x24d),_0x406071[_0x26865f(0x258)]=_0x26865f(0x234),_0x406071[_0x26865f(0x284)]=_0x26865f(0x22d),_0x406071))(u||{});const k=_0x26865f(0x1fb),q=0xc8;exports[_0x26865f(0x285)]=class extends o['RxDisposable']{constructor(_0x3233e2,_0x54146c,_0x5a5dc0,_0x183810,_0x4abd46){const _0x217551=_0x26865f;super(),_(this,_0x217551(0x205),new O['BehaviorSubject']('idle')),_(this,'status$',this['_status$'][_0x217551(0x268)]()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,_0x217551(0x24f),null),(this['_unitID']=_0x3233e2,this[_0x217551(0x29c)]=_0x54146c,this[_0x217551(0x271)]=_0x5a5dc0,this[_0x217551(0x26b)]=_0x183810,this[_0x217551(0x22b)]=_0x4abd46);}get['_status'](){return this['_status$']['getValue']();}[_0x26865f(0x29b)](){const _0xe66c9c=_0x26865f;var _0x4cf463;(_0x4cf463=this[_0xe66c9c(0x27d)])==null||_0x4cf463[_0xe66c9c(0x29b)](),this[_0xe66c9c(0x205)]['next']('idle'),this[_0xe66c9c(0x205)][_0xe66c9c(0x2c4)]();}[_0x26865f(0x266)](){const _0x255f45=_0x26865f;return this[_0x255f45(0x252)];}['init'](){const _0x50617e=_0x26865f;this[_0x50617e(0x29e)]||(this[_0x50617e(0x29e)]=!0x0,this[_0x50617e(0x29c)][_0x50617e(0x22c)][_0x50617e(0x237)](I['takeUntil'](this[_0x50617e(0x222)]))[_0x50617e(0x219)](_0x5725fb=>{const _0xf86a77=_0x50617e;switch(_0x5725fb){case b[_0xf86a77(0x267)][_0xf86a77(0x279)]:this['_handleOffline']();break;case b[_0xf86a77(0x267)][_0xf86a77(0x251)]:this[_0xf86a77(0x28c)]();break;}}),this[_0x50617e(0x29c)]['event$'][_0x50617e(0x237)](I[_0x50617e(0x23d)](this['dispose$']))[_0x50617e(0x219)](_0x2784eb=>{const _0x22b0e5=_0x50617e,{eventID:_0x335353}=_0x2784eb;switch(_0x335353){case d['CollaborationEvent'][_0x22b0e5(0x200)]:this['_handleNewHost'](_0x2784eb);break;case d['CollaborationEvent'][_0x22b0e5(0x29a)]:this[_0x22b0e5(0x2a3)](_0x2784eb);break;case d[_0x22b0e5(0x1f4)][_0x22b0e5(0x25d)]:this[_0x22b0e5(0x240)]();break;case d[_0x22b0e5(0x1f4)][_0x22b0e5(0x257)]:this[_0x22b0e5(0x275)](_0x2784eb);break;}}));}[_0x26865f(0x2b2)](){const _0x22a1d7=_0x26865f;this[_0x22a1d7(0x29c)][_0x22a1d7(0x2a7)]({'eventID':d['CollaborationEvent'][_0x22a1d7(0x25a)],'data':{'unitID':this[_0x22a1d7(0x223)],'userID':this['_collabSession']['getMemberID']()}},this[_0x22a1d7(0x223)]);}[_0x26865f(0x276)](){const _0x43266a=_0x26865f;this[_0x43266a(0x252)]===_0x43266a(0x22d)&&(this[_0x43266a(0x205)][_0x43266a(0x212)](_0x43266a(0x274)),this[_0x43266a(0x29c)][_0x43266a(0x2a7)]({'eventID':d[_0x43266a(0x1f4)][_0x43266a(0x25d)],'data':{'unitID':this[_0x43266a(0x223)]}},this[_0x43266a(0x223)]));}[_0x26865f(0x281)](){const _0x46a8b3=_0x26865f;this[_0x46a8b3(0x252)]==='not-following'&&(this[_0x46a8b3(0x205)]['next'](_0x46a8b3(0x24d)),this[_0x46a8b3(0x295)]());}[_0x26865f(0x24a)](){const _0x4445d4=_0x26865f;this[_0x4445d4(0x252)]===_0x4445d4(0x24d)&&this[_0x4445d4(0x290)]();}['_handleNewHost'](_0x3d4d52){const _0x50f51c=_0x26865f,{presenter:_0x57b93e}=_0x3d4d52[_0x50f51c(0x1f5)],_0x573a12=this[_0x50f51c(0x29c)][_0x50f51c(0x214)]();this['_presenter']=_0x57b93e,_0x57b93e===_0x573a12?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x50f51c(0x234)&&(this[_0x50f51c(0x2a5)](),this[_0x50f51c(0x295)]());}[_0x26865f(0x2c5)](){const _0x2f377c=_0x26865f,_0x2e2d3c={'eventID':d[_0x2f377c(0x1f4)][_0x2f377c(0x227)]};this[_0x2f377c(0x29c)][_0x2f377c(0x2a7)](_0x2e2d3c,this['_unitID']);}[_0x26865f(0x240)](){const _0xd59b52=_0x26865f;this[_0xd59b52(0x24f)]=null,this[_0xd59b52(0x252)]!=='presenting'&&this[_0xd59b52(0x286)]();}[_0x26865f(0x275)](_0x51cb19){const _0x563600=_0x26865f;if(this[_0x563600(0x252)]===_0x563600(0x24d)&&this['_presenter']===_0x51cb19[_0x563600(0x1f5)][_0x563600(0x24c)]){const _0x1bb70c=d[_0x563600(0x239)](_0x51cb19[_0x563600(0x1f5)])[_0x563600(0x217)][_0x563600(0x204)]()['find'](_0x44d143=>_0x44d143['id']===C[_0x563600(0x224)]['id']);if(_0x1bb70c){const _0x53e468=_0x1bb70c[_0x563600(0x24b)][_0x563600(0x27c)],_0x5e3a21=_0x1bb70c['params'][_0x563600(0x2bf)]['id'];setTimeout(()=>{const _0x17fae8=_0x563600;this['_commandService'][_0x17fae8(0x2ad)](C[_0x17fae8(0x2b6)]['id'],{'unitId':_0x53e468,'subUnitId':_0x5e3a21},{'fromCollab':!0x0});});}}}[_0x26865f(0x22e)](){const _0x92c04b=_0x26865f;this['_status$'][_0x92c04b(0x212)]('presenting');const _0x1d28a2=new Map(),_0x32ad26=this[_0x92c04b(0x27d)]=new o['DisposableCollection']();_0x32ad26[_0x92c04b(0x28b)](o[_0x92c04b(0x220)](()=>{const _0x140886=_0x92c04b;_0x1d28a2['forEach'](_0x39518f=>_0x39518f[_0x140886(0x2c4)]()),_0x1d28a2[_0x140886(0x250)]();})),_0x32ad26[_0x92c04b(0x28b)](this[_0x92c04b(0x22b)][_0x92c04b(0x293)](_0x5edbd0=>{const _0x51b77b=_0x92c04b;var _0x51695d;if(_0x5edbd0['type']!==o[_0x51b77b(0x20a)][_0x51b77b(0x244)]||!this[_0x51b77b(0x26b)]['shouldShareOperation'](_0x5edbd0['id']))return;const {id:_0x4a5707}=_0x5edbd0;let _0x111167;_0x1d28a2[_0x51b77b(0x20c)](_0x4a5707)?_0x111167=_0x1d28a2[_0x51b77b(0x289)](_0x4a5707):(_0x111167=new O[(_0x51b77b(0x2b7))](),_0x1d28a2[_0x51b77b(0x282)](_0x4a5707,_0x111167),_0x111167[_0x51b77b(0x237)](I[_0x51b77b(0x28a)]((_0x51695d=this[_0x51b77b(0x271)][_0x51b77b(0x207)](k))!=null?_0x51695d:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x51b77b(0x219)](_0x276f11=>{const _0x4f04b0=_0x51b77b;this[_0x4f04b0(0x29c)][_0x4f04b0(0x2a7)]({'eventID':d[_0x4f04b0(0x1f4)][_0x4f04b0(0x29a)],'data':{'unitID':this['_unitID'],'operations':{[_0x276f11['id']]:{'id':_0x276f11['id'],'params':JSON[_0x4f04b0(0x2a9)](_0x276f11[_0x4f04b0(0x24b)])}}}},this[_0x4f04b0(0x223)]);})),_0x111167[_0x51b77b(0x212)](_0x5edbd0);})),this[_0x92c04b(0x26b)][_0x92c04b(0x265)](this['_unitID'])['forEach'](_0x3e3214=>this[_0x92c04b(0x29c)][_0x92c04b(0x2a7)]({'eventID':d[_0x92c04b(0x1f4)][_0x92c04b(0x29a)],'data':{'unitID':this['_unitID'],'operations':{[_0x3e3214['id']]:{'id':_0x3e3214['id'],'params':JSON[_0x92c04b(0x2a9)](_0x3e3214[_0x92c04b(0x24b)])}}}},this[_0x92c04b(0x223)]));}[_0x26865f(0x2a5)](){const _0xea10df=_0x26865f;var _0x5e6514;this[_0xea10df(0x205)][_0xea10df(0x212)](_0xea10df(0x274)),(_0x5e6514=this[_0xea10df(0x27d)])==null||_0x5e6514[_0xea10df(0x29b)](),this[_0xea10df(0x27d)]=null;}[_0x26865f(0x295)](){const _0x2a292e=_0x26865f;var _0x2fa8c2;(_0x2fa8c2=this[_0x2a292e(0x27d)])==null||_0x2fa8c2['dispose'](),this[_0x2a292e(0x205)][_0x2a292e(0x212)](_0x2a292e(0x24d));}[_0x26865f(0x286)](){const _0x4cfed9=_0x26865f;var _0x4c9aef;this[_0x4cfed9(0x205)][_0x4cfed9(0x212)](_0x4cfed9(0x274)),(_0x4c9aef=this[_0x4cfed9(0x27d)])==null||_0x4c9aef[_0x4cfed9(0x29b)](),this[_0x4cfed9(0x27d)]=null;}[_0x26865f(0x290)](){const _0x3878f4=_0x26865f;var _0x373836;this['_status$'][_0x3878f4(0x212)](_0x3878f4(0x234)),(_0x373836=this[_0x3878f4(0x27d)])==null||_0x373836[_0x3878f4(0x29b)]();}['_handleOperation'](_0x3e6029){const _0x4b7872=_0x26865f;if([_0x4b7872(0x22d),_0x4b7872(0x234),'offline']['includes'](this[_0x4b7872(0x252)])||!_0x3e6029[_0x4b7872(0x1f5)][_0x4b7872(0x232)]||_0x3e6029[_0x4b7872(0x1f5)]['presenter']===this[_0x4b7872(0x29c)][_0x4b7872(0x214)]())return;this[_0x4b7872(0x252)]===_0x4b7872(0x274)&&this[_0x4b7872(0x295)]();const _0x408dcb=_0x3e6029[_0x4b7872(0x1f5)]['operations'];Object[_0x4b7872(0x229)](_0x408dcb)[_0x4b7872(0x23e)](_0x36f467=>{const _0x4a156b=_0x4b7872;this[_0x4a156b(0x22b)][_0x4a156b(0x2ad)](_0x36f467['id'],_0x36f467[_0x4a156b(0x24b)]?JSON['parse'](_0x36f467[_0x4a156b(0x24b)]):null,{'fromCollab':!0x0});});}[_0x26865f(0x20b)](){const _0x11f217=_0x26865f;var _0x442390;this[_0x11f217(0x205)][_0x11f217(0x212)](_0x11f217(0x235)),(_0x442390=this['_commandDisposable'])==null||_0x442390['dispose']();}[_0x26865f(0x28c)](){const _0x4194c1=_0x26865f;this[_0x4194c1(0x205)][_0x4194c1(0x212)](_0x4194c1(0x274)),this[_0x4194c1(0x2c5)]();}},exports[_0x26865f(0x285)]=P([S(0x2,o[_0x26865f(0x1fe)]),S(0x3,o['Inject'](E)),S(0x4,o[_0x26865f(0x2c1)])],exports['LiveShareCoordinator']);function $(){const _0x4c060e=_0x26865f,_0x7bfd86=p[_0x4c060e(0x247)](exports[_0x4c060e(0x29f)]),_0xdfb4b9=p[_0x4c060e(0x247)](o[_0x4c060e(0x225)]),_0x5e6cac=p[_0x4c060e(0x2a2)](()=>_0xdfb4b9[_0x4c060e(0x21a)](o[_0x4c060e(0x27a)][_0x4c060e(0x230)]),void 0x0,!0x1,[]),[_0x491f97,_0x28fb2b]=v[_0x4c060e(0x23f)](null),[_0x4577db,_0x29fba6]=v[_0x4c060e(0x23f)](u[_0x4c060e(0x218)]),_0x10f3e4=v[_0x4c060e(0x231)](null);return v[_0x4c060e(0x297)](()=>(_0x5e6cac&&_0x7bfd86[_0x4c060e(0x253)](_0x5e6cac[_0x4c060e(0x245)]())[_0x4c060e(0x2ca)](_0x24134e=>{const _0x8f3e79=_0x4c060e;_0x28fb2b(_0x24134e),_0x10f3e4[_0x8f3e79(0x246)]=_0x24134e['status$'][_0x8f3e79(0x219)](_0x32cbe5=>{_0x29fba6(_0x32cbe5);});}),()=>{const _0x58bc23=_0x4c060e;var _0x3e4690;(_0x3e4690=_0x10f3e4[_0x58bc23(0x246)])==null||_0x3e4690[_0x58bc23(0x2b5)](),_0x10f3e4[_0x58bc23(0x246)]=null;}),[_0x5e6cac,_0x7bfd86]),_0x491f97?l[_0x4c060e(0x27f)](f[_0x4c060e(0x2a4)],{'align':_0x4c060e(0x25c),'disabled':_0x4577db===u['OFFLINE'],'className':_0x4c060e(0x26f),'overlay':l[_0x4c060e(0x27f)](W,{'status':_0x4577db,'coordinator':_0x491f97}),'children':l[_0x4c060e(0x27f)]('button',{'className':f[_0x4c060e(0x270)](_0x4c060e(0x2b0),{'univer-cursor-not-allowed':_0x4577db===u[_0x4c060e(0x279)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4577db!==u[_0x4c060e(0x279)]}),'type':_0x4c060e(0x259),'children':l['jsx'](R,{'className':'univer-size-4'})})}):null;}function W(_0x3e32ec){const _0x386da4=_0x26865f,{status:_0x5e0742,coordinator:_0x47d25d}=_0x3e32ec;switch(_0x5e0742){case u[_0x386da4(0x218)]:return l[_0x386da4(0x27f)](G,{'coordinator':_0x47d25d});case u['FOLLOWING']:return l['jsx'](B,{'coordinator':_0x47d25d});case u[_0x386da4(0x258)]:return l[_0x386da4(0x27f)](Y,{'coordinator':_0x47d25d});case u[_0x386da4(0x279)]:return l['jsx'](J,{});case u[_0x386da4(0x284)]:return l[_0x386da4(0x27f)](Z,{'coordinator':_0x47d25d});default:return null;}}function G(_0x32b0e8){const _0x58e7df=_0x26865f,{coordinator:_0x4ae032}=_0x32b0e8;return l[_0x58e7df(0x1ff)](l[_0x58e7df(0x202)],{'children':[l[_0x58e7df(0x27f)](_0x58e7df(0x25f),{'className':_0x58e7df(0x2b8),'children':'Present\x20this\x20document'}),l[_0x58e7df(0x27f)](f[_0x58e7df(0x249)],{'onClick':()=>_0x4ae032[_0x58e7df(0x2b2)](),'children':_0x58e7df(0x283)})]});}function B(_0x526253){const _0x178abf=_0x26865f,{coordinator:_0x47a2ef}=_0x526253;return l['jsxs'](l['Fragment'],{'children':[l['jsx'](_0x178abf(0x25f),{'className':_0x178abf(0x2b8),'children':_0x178abf(0x1fc)}),l[_0x178abf(0x27f)](f[_0x178abf(0x249)],{'onClick':()=>_0x47a2ef[_0x178abf(0x24a)](),'children':_0x178abf(0x296)})]});}function _0x219c(){const _0x5cc0d5=['Plugin','parseProtocolChangeset','_entities','FOLLOWING','LiveShareStatus','takeUntil','forEach','useState','_handleTerminate','LiveShareService','mask','0\x200\x2017\x2017','OPERATION','getUnitId','current','useDependency','Disposable','Button','stopFollowing','params','memberID','following','evenodd','_presenter','clear','ONLINE','_status','getLiveShareCoordinator','none','defIds','map','NEW_CHANGESETS','NOT_FOLLOWING','button','LIVESHARE_REQUEST_HOST','symbol','end','LIVESHARE_TERMINATE','908kyeKpm','div','Stop\x20presenting','101353pbdAdG','use','substring','registerDependencies','getInitialStates','getStatus','SessionStatus','asObservable','_reporters','BuiltInUIPart','_liveShareService','LiveShare','trim','defineProperty','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','clsx','_configService','displayName','mergeOverrideWithDependencies','idle','_handleNewChangeSets','stopPresenting','_startLiveShareCoordinator','string','OFFLINE','UniverInstanceType','Injector','unitId','_commandDisposable','Inject','jsx','_collabSessionService','startFollowing','set','Start','PRESENTING','LiveShareCoordinator','_beIdle','DesktopLiveShareController','LiveShareIcon','get','throttleTime','add','_handleOnline','2665448yjDjXg','You\x27re\x20presenting\x20the\x20document','live-share-icon','_stopFollowing','assign','entries','onCommandExecuted','xlink:href','_startFollowing','Stop\x20following','useEffect','UNIVER_UNKNOWN','includes','LIVESHARE_OPERATION','dispose','_collabSession','UniverCollaborationClientPlugin','_init','LiveShareController','getOwnPropertyDescriptor','Module','useObservable','_handleOperation','Dropdown','_stopPresenting','createElement','send','delete','stringify','UNIVER_LIVE_SHARE_PLUGIN','override','registerComponent','executeCommand','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','idSuffix','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','tryStartPresenting','colorChannel1','toString','unsubscribe','SetWorksheetActiveOperation','Subject','univer-mb-3\x20univer-w-full\x20univer-text-sm','300QPyxLo','_mountLiveShare','SetZoomRatioOperation','getTypeOfUnitAdded$','Start\x20following','registerSharedOperation','sheet','_sharedOperations','ICommandService','DependentOn','2778YclobD','complete','_fetchOperations','currentColor','merge','live-share.config','type','then','tag','CollaborationEvent','data','init','shouldShareOperation','attrs','_injector','132010CyOisx','SAME_OPERATION_SHARE_INTERVAL','You\x27re\x20following\x20the\x20presenter','disposeWithMe','IConfigService','jsxs','LIVESHARE_NEW_HOST','length','Fragment','setConfig','reverse','_status$','709363fKBMvM','getConfig','http://www.w3.org/2000/svg','_uiPartsService','CommandType','_handleOffline','has','univerjs-icon\x20univerjs-icon-','getLiveShareCoordinatorSync','registerInitialStateReporter','toStringTag','_univerInstanceService','next','4721445ImabEX','getMemberID','2723245WfkddA','from','mutations','IDLE','subscribe','getCurrentTypeOfUnit$','HEADER_MENU','text','touchDependencies','children','UniverLiveSharePlugin','toDisposable','forwardRef','dispose$','_unitID','InsertSheetMutation','IUniverInstanceService','createInstance','LIVESHARE_FETCH_OPERATIONS','IUIPartsService','values','CollaborationSessionService','_commandService','sessionStatus$','presenting','_startPresenting','default','UNIVER_SHEET','useRef','presenter','svg','not-following','offline','UniverIcon','pipe'];_0x219c=function(){return _0x5cc0d5;};return _0x219c();}function Y(_0xa3a2d3){const _0x112618=_0x26865f,{coordinator:_0x43d8ea}=_0xa3a2d3;return l[_0x112618(0x1ff)](l[_0x112618(0x202)],{'children':[l['jsx'](_0x112618(0x25f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x112618(0x27f)](f['Button'],{'variant':_0x112618(0x21c),'onClick':()=>_0x43d8ea['startFollowing'](),'children':_0x112618(0x2bd)})]});}function Z(_0x4ad347){const _0x27dd07=_0x26865f,{coordinator:_0x40110b}=_0x4ad347;return l['jsxs'](l[_0x27dd07(0x202)],{'children':[l['jsx'](_0x27dd07(0x25f),{'className':_0x27dd07(0x2b8),'children':_0x27dd07(0x28e)}),l[_0x27dd07(0x27f)](f[_0x27dd07(0x249)],{'variant':_0x27dd07(0x22f),'onClick':()=>_0x40110b[_0x27dd07(0x276)](),'children':_0x27dd07(0x260)})]});}function J(){const _0x40ffa9=_0x26865f;return l[_0x40ffa9(0x27f)](l[_0x40ffa9(0x202)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x26865f(0x2a0)],z=(_0x32109a,_0x767fa5,_0x3c2ceb,_0x227524)=>{const _0x39a3f6=_0x26865f;for(var _0x35095b=_0x227524>0x1?void 0x0:_0x227524?K(_0x767fa5,_0x3c2ceb):_0x767fa5,_0x16a775=_0x32109a[_0x39a3f6(0x201)]-0x1,_0x803390;_0x16a775>=0x0;_0x16a775--)(_0x803390=_0x32109a[_0x16a775])&&(_0x35095b=_0x803390(_0x35095b)||_0x35095b);return _0x35095b;},L=(_0xa0c927,_0x2c0831)=>(_0x4a1787,_0x120588)=>_0x2c0831(_0x4a1787,_0x120588,_0xa0c927);exports[_0x26865f(0x287)]=class extends o[_0x26865f(0x248)]{constructor(_0x3830ad,_0x2eba2c){const _0x394539=_0x26865f;super(),this[_0x394539(0x1f9)]=_0x3830ad,this['_uiPartsService']=_0x2eba2c,this[_0x394539(0x2ba)]();}[_0x26865f(0x2ba)](){const _0x384af7=_0x26865f;this[_0x384af7(0x1fd)](this[_0x384af7(0x209)][_0x384af7(0x2ac)](p[_0x384af7(0x26a)][_0x384af7(0x21b)],()=>p['connectInjector']($,this[_0x384af7(0x1f9)])));}},exports[_0x26865f(0x287)]=z([L(0x0,o['Inject'](o[_0x26865f(0x27b)])),L(0x1,p[_0x26865f(0x228)])],exports['DesktopLiveShareController']);function _0xe914(_0x45f99,_0x165200){const _0x219c92=_0x219c();return _0xe914=function(_0xe914a1,_0x3bbf7e){_0xe914a1=_0xe914a1-0x1f4;let _0x4916a2=_0x219c92[_0xe914a1];return _0x4916a2;},_0xe914(_0x45f99,_0x165200);}const Q=_0x26865f(0x2c8),w={};var X=Object[_0x26865f(0x2a0)],ee=(_0x3801bc,_0x3c3cd4,_0x23329e,_0x536f5d)=>{const _0x5f477a=_0x26865f;for(var _0x27e289=_0x536f5d>0x1?void 0x0:_0x536f5d?X(_0x3c3cd4,_0x23329e):_0x3c3cd4,_0x15ad9e=_0x3801bc[_0x5f477a(0x201)]-0x1,_0x4aa1e1;_0x15ad9e>=0x0;_0x15ad9e--)(_0x4aa1e1=_0x3801bc[_0x15ad9e])&&(_0x27e289=_0x4aa1e1(_0x27e289)||_0x27e289);return _0x27e289;},te=(_0x29072c,_0x576c32)=>(_0xc690a3,_0xf5a0aa)=>_0x576c32(_0xc690a3,_0xf5a0aa,_0x29072c);let m=class extends o[_0x26865f(0x248)]{constructor(_0x203679){const _0x4131ec=_0x26865f;super(),this[_0x4131ec(0x26b)]=_0x203679,this[_0x4131ec(0x29e)]();}[_0x26865f(0x29e)](){const _0x341065=_0x26865f;[D[_0x341065(0x2bb)]['id'],D['SetScrollOperation']['id'],C[_0x341065(0x2b6)]['id']][_0x341065(0x23e)](_0x1a8eb8=>{const _0x38cbd2=_0x341065;this[_0x38cbd2(0x1fd)](this[_0x38cbd2(0x26b)]['registerSharedOperation'](_0x1a8eb8));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object['defineProperty'],se=Object[_0x26865f(0x2a0)],ne=(_0x109dcc,_0x446ac0,_0x21e5fc)=>_0x446ac0 in _0x109dcc?ie(_0x109dcc,_0x446ac0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21e5fc}):_0x109dcc[_0x446ac0]=_0x21e5fc,re=(_0x3fe749,_0xe0814c,_0x343f3a,_0x4414ca)=>{const _0x6708e5=_0x26865f;for(var _0x439b0a=_0x4414ca>0x1?void 0x0:_0x4414ca?se(_0xe0814c,_0x343f3a):_0xe0814c,_0x2780a2=_0x3fe749[_0x6708e5(0x201)]-0x1,_0x1e094c;_0x2780a2>=0x0;_0x2780a2--)(_0x1e094c=_0x3fe749[_0x2780a2])&&(_0x439b0a=_0x1e094c(_0x439b0a)||_0x439b0a);return _0x439b0a;},N=(_0x4fcf7d,_0x4e7354)=>(_0x3a5364,_0x307524)=>_0x4e7354(_0x3a5364,_0x307524,_0x4fcf7d),A=(_0x36e6c1,_0x5999e9,_0x1a0c8a)=>ne(_0x36e6c1,typeof _0x5999e9!=_0x26865f(0x25b)?_0x5999e9+'':_0x5999e9,_0x1a0c8a);const oe=_0x26865f(0x2aa);exports[_0x26865f(0x21f)]=class extends o[_0x26865f(0x238)]{constructor(_0x5325be=w,_0x1720fc,_0x33df2d){const _0x50f7d5=_0x26865f;super(),this['_config']=_0x5325be,this[_0x50f7d5(0x1f9)]=_0x1720fc,this[_0x50f7d5(0x271)]=_0x33df2d;const {..._0x51af43}=o[_0x50f7d5(0x2c7)]({},w,this['_config']);this['_configService'][_0x50f7d5(0x203)](Q,_0x51af43);}['onStarting'](){const _0x116108=_0x26865f;o[_0x116108(0x264)](this[_0x116108(0x1f9)],o[_0x116108(0x273)]([[E],[exports[_0x116108(0x29f)]],[m],[exports[_0x116108(0x287)]]],this['_config'][_0x116108(0x2ab)])),o[_0x116108(0x21d)](this[_0x116108(0x1f9)],[[m]]);}['onRendered'](){const _0xcd9efa=_0x26865f;o['touchDependencies'](this[_0xcd9efa(0x1f9)],[[exports[_0xcd9efa(0x287)]]]);}},A(exports[_0x26865f(0x21f)],_0x26865f(0x2c9),o[_0x26865f(0x27a)][_0x26865f(0x298)]),A(exports[_0x26865f(0x21f)],'pluginName',oe),exports[_0x26865f(0x21f)]=re([o[_0x26865f(0x2c2)](b[_0x26865f(0x29d)]),N(0x1,o[_0x26865f(0x27e)](o['Injector'])),N(0x2,o[_0x26865f(0x1fe)])],exports[_0x26865f(0x21f)]),exports[_0x26865f(0x26c)]=$,exports[_0x26865f(0x241)]=E,exports[_0x26865f(0x23c)]=u;
|
|
1
|
+
'use strict';const _0x3399e0=_0x4356;(function(_0x19df0e,_0x335ac3){const _0xdd55f1=_0x4356,_0x1d87b9=_0x19df0e();while(!![]){try{const _0x4cd6a2=parseInt(_0xdd55f1(0x22f))/0x1*(-parseInt(_0xdd55f1(0x1ff))/0x2)+-parseInt(_0xdd55f1(0x1fa))/0x3*(parseInt(_0xdd55f1(0x23e))/0x4)+parseInt(_0xdd55f1(0x1f6))/0x5+-parseInt(_0xdd55f1(0x1ba))/0x6*(parseInt(_0xdd55f1(0x225))/0x7)+-parseInt(_0xdd55f1(0x1c0))/0x8+parseInt(_0xdd55f1(0x1e3))/0x9+parseInt(_0xdd55f1(0x1bf))/0xa;if(_0x4cd6a2===_0x335ac3)break;else _0x1d87b9['push'](_0x1d87b9['shift']());}catch(_0xf52f7){_0x1d87b9['push'](_0x1d87b9['shift']());}}}(_0x5376,0xe0faa));var T=Object[_0x3399e0(0x27f)],U=(_0x1799a6,_0x5130e4,_0x56c50e)=>_0x5130e4 in _0x1799a6?T(_0x1799a6,_0x5130e4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56c50e}):_0x1799a6[_0x5130e4]=_0x56c50e,_=(_0x2e5362,_0x74f695,_0x364b13)=>U(_0x2e5362,typeof _0x74f695!=_0x3399e0(0x26b)?_0x74f695+'':_0x74f695,_0x364b13);Object['defineProperty'](exports,Symbol[_0x3399e0(0x20a)],{'value':_0x3399e0(0x1d2)});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 _0x5376(){const _0x3ec7fb=['27HjySJI','map','attrs','OFFLINE','getStatus','62gKzHrN','LiveShareIcon','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','_startLiveShareCoordinator','univerjs-icon\x20univerjs-icon-','idle','fill','SetScrollOperation','dispose','_reporters','toStringTag','UniverIcon','url(#$1','Start','You\x27are\x20offline.','UNIVER_UNKNOWN','operations','_entities','forwardRef','LiveShareService','end','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','then','IUIPartsService','useEffect','getValue','_fetchOperations','_commandService','not-following','LiveShare','text','_handleOnline','_configService','complete','mergeOverrideWithDependencies','asObservable','getMemberID','50778AqoxjR','tryStartPresenting','mask','ONLINE','_injector','Plugin','disposeWithMe','none','getUnitId','_handleNewHost','18830NjJQhc','random','registerInitialStateReporter','button','CommandType','Inject','sheet','evenodd','_startFollowing','useRef','getTypeOfUnitDisposed$','getInitialStates','CollaborationEvent','_unitID','Disposable','395596MfScUQ','offline','jsx','getOwnPropertyDescriptor','div','UniverInstanceType','toString','delete','ICommandService','onRendered','next','SAME_OPERATION_SHARE_INTERVAL','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','NEW_CHANGESETS','_stopPresenting','mutations','LiveShareStatus','unsubscribe','send','univer-mb-3\x20univer-w-full\x20univer-text-sm','string','http://www.w3.org/2000/svg','entries','override','live-share-icon','createElement','onStarting','LiveShareCoordinator','presenter','assign','IConfigService','_univerInstanceService','_init','stopFollowing','toDisposable','Fragment','_mountLiveShare','clear','createInstance','stringify','replace','UNIVER_SHEET','children','tag','_status$','symbol','reverse','displayName','live-share.config','init','_status','You\x27re\x20following\x20the\x20presenter','_uiPartsService','IDLE','BuiltInUIPart','LIVESHARE_NEW_HOST','SetZoomRatioOperation','_sharedOperations','getCurrentTypeOfUnit$','memberID','Subject','colorChannel1','Button','path','svg','defineProperty','registerSharedOperation','registerComponent','xlink:href','_handleTerminate','takeUntil','DesktopLiveShareController','getLiveShareCoordinator','pipe','_handleNewChangeSets','presenting','find','set','InsertSheetMutation','shouldShareOperation','onCommandExecuted','Present\x20this\x20document','_beIdle','LIVESHARE_OPERATION','clsx','subscribe','defs','_stopFollowing','24NdGPNb','useDependency','You\x27re\x20not\x20following\x20the\x20presenter','requireSession','Stop\x20following','12241650cQZIqW','14315480FLuHso','idSuffix','1em','SetWorksheetActiveOperation','_presenter','PRESENTING','get','_collabSession','dispose$','parseProtocolChangeset','status$','Dropdown','LIVESHARE_TERMINATE','_collabSessionService','connectInjector','0\x200\x2017\x2017','touchDependencies','forEach','Module','DependentOn','type','_handleOperation','_config','HEADER_MENU','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_liveShareService','LiveShareController','following','IUniverInstanceService','LIVESHARE_FETCH_OPERATIONS','setConfig','sessionStatus$','jsxs','includes','SessionStatus','12875121DBfBXO','executeCommand','add','Injector','UniverLiveSharePlugin','unitId','startFollowing','throttleTime','current','has','DisposableCollection','length','_startPresenting','defIds','data','NOT_FOLLOWING','pluginName','substring','currentColor','7795260QdwAJG','useState','default','params'];_0x5376=function(){return _0x3ec7fb;};return _0x5376();}function x({ref:_0x4cdd87,..._0x5e90ab}){const _0x4db814=_0x3399e0,{icon:_0xe894e7,id:_0x41d9aa,className:_0x48249a,extend:_0x5e7f1b,..._0x4d95eb}=_0x5e90ab,_0x577aff=(_0x4db814(0x204)+_0x41d9aa+'\x20'+(_0x48249a||''))['trim'](),_0x2c59c1=v[_0x4db814(0x238)]('_'+H());return j(_0xe894e7,''+_0x41d9aa,{'defIds':_0xe894e7[_0x4db814(0x1f0)],'idSuffix':_0x2c59c1['current']},{'ref':_0x4cdd87,'className':_0x577aff,..._0x4d95eb},_0x5e7f1b);}function j(_0x4b17ad,_0x565251,_0x4ae0aa,_0x2d91c9,_0x2dc344){const _0x346979=_0x3399e0;return v[_0x346979(0x257)](_0x4b17ad[_0x346979(0x269)],{'key':_0x565251,...y(_0x4b17ad,_0x4ae0aa,_0x2dc344),..._0x2d91c9},(F(_0x4b17ad,_0x4ae0aa)[_0x346979(0x268)]||[])[_0x346979(0x1fb)]((_0x361532,_0x5ef54f)=>j(_0x361532,_0x565251+'-'+_0x4b17ad[_0x346979(0x269)]+'-'+_0x5ef54f,_0x4ae0aa,void 0x0,_0x2dc344)));}function y(_0x419281,_0x41fd91,_0x359bd2){const _0x594835=_0x3399e0,_0x3b4444={..._0x419281[_0x594835(0x1fc)]};_0x359bd2!=null&&_0x359bd2['colorChannel1']&&_0x3b4444[_0x594835(0x206)]===_0x594835(0x27b)&&(_0x3b4444[_0x594835(0x206)]=_0x359bd2[_0x594835(0x27b)]),_0x419281[_0x594835(0x269)]===_0x594835(0x227)&&_0x3b4444['id']&&(_0x3b4444['id']=_0x3b4444['id']+_0x41fd91[_0x594835(0x1c1)]),Object[_0x594835(0x254)](_0x3b4444)[_0x594835(0x1d1)](([_0x4ec693,_0xd9dbf0])=>{const _0x3df7f4=_0x594835;_0x4ec693===_0x3df7f4(0x227)&&typeof _0xd9dbf0==_0x3df7f4(0x252)&&(_0x3b4444[_0x4ec693]=_0xd9dbf0[_0x3df7f4(0x266)](/url\(#(.*)\)/,_0x3df7f4(0x20c)+_0x41fd91[_0x3df7f4(0x1c1)]+')'));});const {defIds:_0x372b6b}=_0x41fd91;return!_0x372b6b||_0x372b6b[_0x594835(0x1ee)]===0x0||(_0x419281[_0x594835(0x269)]==='use'&&_0x3b4444['xlink:href']&&(_0x3b4444[_0x594835(0x282)]=_0x3b4444[_0x594835(0x282)]+_0x41fd91[_0x594835(0x1c1)]),Object[_0x594835(0x254)](_0x3b4444)[_0x594835(0x1d1)](([_0x3ca212,_0x2fd037])=>{const _0x429a7c=_0x594835;typeof _0x2fd037==_0x429a7c(0x252)&&(_0x3b4444[_0x3ca212]=_0x2fd037[_0x429a7c(0x266)](/url\(#(.*)\)/,_0x429a7c(0x20c)+_0x41fd91[_0x429a7c(0x1c1)]+')'));})),_0x3b4444;}function F(_0x35090e,_0x4a1ff2){const _0x3ff24e=_0x3399e0;var _0x26e297;const {defIds:_0x4a997f}=_0x4a1ff2;return!_0x4a997f||_0x4a997f[_0x3ff24e(0x1ee)]===0x0?_0x35090e:_0x35090e[_0x3ff24e(0x269)]===_0x3ff24e(0x1b8)&&((_0x26e297=_0x35090e[_0x3ff24e(0x268)])!=null&&_0x26e297['length'])?{..._0x35090e,'children':_0x35090e['children'][_0x3ff24e(0x1fb)](_0x553b2e=>typeof _0x553b2e[_0x3ff24e(0x1fc)]['id']=='string'&&_0x4a997f&&_0x4a997f[_0x3ff24e(0x1e1)](_0x553b2e[_0x3ff24e(0x1fc)]['id'])?{..._0x553b2e,'attrs':{..._0x553b2e['attrs'],'id':_0x553b2e[_0x3ff24e(0x1fc)]['id']+_0x4a1ff2[_0x3ff24e(0x1c1)]}}:_0x553b2e)}:_0x35090e;}function H(){const _0x2a66be=_0x3399e0;return Math[_0x2a66be(0x230)]()[_0x2a66be(0x244)](0x24)[_0x2a66be(0x1f4)](0x2,0x8);}x[_0x3399e0(0x26d)]=_0x3399e0(0x20b);const V={'tag':_0x3399e0(0x27e),'attrs':{'xmlns':_0x3399e0(0x253),'fill':_0x3399e0(0x22c),'viewBox':_0x3399e0(0x1cf),'width':'1em','height':_0x3399e0(0x1c2)},'children':[{'tag':'path','attrs':{'fill':_0x3399e0(0x1f5),'d':_0x3399e0(0x1d8)}},{'tag':_0x3399e0(0x27d),'attrs':{'fill':_0x3399e0(0x1f5),'d':_0x3399e0(0x215),'fillRule':_0x3399e0(0x236),'clipRule':_0x3399e0(0x236)}}]},R=v[_0x3399e0(0x212)](function(_0x1ea412,_0x1921fc){const _0x37368d=_0x3399e0;return v[_0x37368d(0x257)](x,Object[_0x37368d(0x25b)]({},_0x1ea412,{'id':_0x37368d(0x256),'ref':_0x1921fc,'icon':V}));});R[_0x3399e0(0x26d)]=_0x3399e0(0x200);function _0x4356(_0x300a23,_0x399cca){const _0x5376b8=_0x5376();return _0x4356=function(_0x435644,_0x47e9eb){_0x435644=_0x435644-0x1ad;let _0x5097af=_0x5376b8[_0x435644];return _0x5097af;},_0x4356(_0x300a23,_0x399cca);}class E extends o[_0x3399e0(0x23d)]{constructor(){const _0x54547f=_0x3399e0;super(...arguments),_(this,_0x54547f(0x277),new Set()),_(this,_0x54547f(0x209),new Set());}[_0x3399e0(0x280)](_0x43111e){const _0x15774c=_0x3399e0;return this[_0x15774c(0x277)]['add'](_0x43111e),o[_0x15774c(0x260)](()=>this[_0x15774c(0x277)][_0x15774c(0x245)](_0x43111e));}[_0x3399e0(0x231)](_0xba94cc){const _0x1f7e65=_0x3399e0;return this['_reporters'][_0x1f7e65(0x1e5)](_0xba94cc),o[_0x1f7e65(0x260)](()=>this['_reporters']['delete'](_0xba94cc));}[_0x3399e0(0x1b1)](_0x5da1d7){const _0xb4973c=_0x3399e0;return this['_sharedOperations'][_0xb4973c(0x1ec)](_0x5da1d7);}[_0x3399e0(0x23a)](_0x42f83e){const _0x1c2b1c=_0x3399e0;return Array['from'](this[_0x1c2b1c(0x209)])[_0x1c2b1c(0x1fb)](_0x252363=>_0x252363(_0x42f83e));}}var M=Object[_0x3399e0(0x241)],P=(_0x2bc3b7,_0x5edc6d,_0x7f611f,_0x535a70)=>{const _0xde322c=_0x3399e0;for(var _0x5ae0ac=_0x535a70>0x1?void 0x0:_0x535a70?M(_0x5edc6d,_0x7f611f):_0x5edc6d,_0xc727d0=_0x2bc3b7[_0xde322c(0x1ee)]-0x1,_0x417ec6;_0xc727d0>=0x0;_0xc727d0--)(_0x417ec6=_0x2bc3b7[_0xc727d0])&&(_0x5ae0ac=_0x417ec6(_0x5ae0ac)||_0x5ae0ac);return _0x5ae0ac;},S=(_0x27ab8a,_0x109197)=>(_0x202181,_0x34b27d)=>_0x109197(_0x202181,_0x34b27d,_0x27ab8a);exports[_0x3399e0(0x1da)]=class extends o['RxDisposable']{constructor(_0x5500e3,_0xa1bef1,_0x367672){const _0x4b4a20=_0x3399e0;super(),_(this,_0x4b4a20(0x211),new Map()),(this[_0x4b4a20(0x25d)]=_0x5500e3,this['_injector']=_0xa1bef1,this[_0x4b4a20(0x1cd)]=_0x367672,this[_0x4b4a20(0x25e)]());}async[_0x3399e0(0x286)](_0x850531){const _0x4a366b=_0x3399e0;return this['_entities']['has'](_0x850531)||await this[_0x4a366b(0x203)](_0x850531),this['_entities'][_0x4a366b(0x1c6)](_0x850531);}['getLiveShareCoordinatorSync'](_0x2c06da){const _0x418bba=_0x3399e0;var _0xbd3c73;return(_0xbd3c73=this[_0x418bba(0x211)][_0x418bba(0x1c6)](_0x2c06da))!=null?_0xbd3c73:null;}['_init'](){const _0x138839=_0x3399e0;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x138839(0x243)][_0x138839(0x267)])['pipe'](I['takeUntil'](this[_0x138839(0x1c8)]))[_0x138839(0x1b7)](async _0x581e91=>{const _0x489d13=_0x138839,_0x4a8ec2=_0x581e91[_0x489d13(0x22d)]();this[_0x489d13(0x211)][_0x489d13(0x1ec)](_0x4a8ec2)||this['_startLiveShareCoordinator'](_0x4a8ec2);}),this[_0x138839(0x25d)][_0x138839(0x239)](o[_0x138839(0x243)][_0x138839(0x267)])[_0x138839(0x287)](I[_0x138839(0x284)](this['dispose$']))[_0x138839(0x1b7)](_0x1f0815=>{const _0x19211f=_0x138839,_0x91889c=_0x1f0815[_0x19211f(0x22d)](),_0x183f0f=this[_0x19211f(0x211)][_0x19211f(0x1c6)](_0x91889c);_0x183f0f==null||_0x183f0f['dispose']();});}async[_0x3399e0(0x203)](_0x3a5f4e){const _0x5decbd=_0x3399e0,_0x2bfd71=await this[_0x5decbd(0x1cd)][_0x5decbd(0x1bd)](_0x3a5f4e),_0x5acccf=this[_0x5decbd(0x229)][_0x5decbd(0x264)](exports[_0x5decbd(0x259)],_0x3a5f4e,_0x2bfd71);return _0x5acccf['init'](),this[_0x5decbd(0x211)]['set'](_0x3a5f4e,_0x5acccf),_0x5acccf;}},exports['LiveShareController']=P([S(0x0,o[_0x3399e0(0x1dc)]),S(0x1,o['Inject'](o[_0x3399e0(0x1e6)])),S(0x2,o[_0x3399e0(0x234)](b['CollaborationSessionService']))],exports[_0x3399e0(0x1da)]);var u=(_0x2f4ac1=>(_0x2f4ac1[_0x3399e0(0x1fd)]=_0x3399e0(0x23f),_0x2f4ac1[_0x3399e0(0x273)]=_0x3399e0(0x205),_0x2f4ac1['FOLLOWING']=_0x3399e0(0x1db),_0x2f4ac1[_0x3399e0(0x1f2)]='not-following',_0x2f4ac1[_0x3399e0(0x1c5)]=_0x3399e0(0x1ad),_0x2f4ac1))(u||{});const k=_0x3399e0(0x249),q=0xc8;exports[_0x3399e0(0x259)]=class extends o['RxDisposable']{constructor(_0x644da5,_0x524f99,_0x1217ba,_0x4f086f,_0x3567e5){const _0x904b27=_0x3399e0;super(),_(this,_0x904b27(0x26a),new O['BehaviorSubject'](_0x904b27(0x205))),_(this,'status$',this[_0x904b27(0x26a)][_0x904b27(0x223)]()),_(this,_0x904b27(0x25e),!0x1),_(this,_0x904b27(0x202),null),_(this,_0x904b27(0x1c4),null),(this[_0x904b27(0x23c)]=_0x644da5,this[_0x904b27(0x1c7)]=_0x524f99,this[_0x904b27(0x220)]=_0x1217ba,this['_liveShareService']=_0x4f086f,this['_commandService']=_0x3567e5);}get[_0x3399e0(0x270)](){const _0x97c064=_0x3399e0;return this[_0x97c064(0x26a)][_0x97c064(0x219)]();}[_0x3399e0(0x208)](){const _0x3cd840=_0x3399e0;var _0xfc1bab;(_0xfc1bab=this[_0x3cd840(0x202)])==null||_0xfc1bab[_0x3cd840(0x208)](),this[_0x3cd840(0x26a)]['next'](_0x3cd840(0x205)),this[_0x3cd840(0x26a)][_0x3cd840(0x221)]();}[_0x3399e0(0x1fe)](){const _0x407018=_0x3399e0;return this[_0x407018(0x270)];}[_0x3399e0(0x26f)](){const _0x18289b=_0x3399e0;this['_init']||(this['_init']=!0x0,this['_collabSession'][_0x18289b(0x1df)][_0x18289b(0x287)](I[_0x18289b(0x284)](this[_0x18289b(0x1c8)]))[_0x18289b(0x1b7)](_0x13af5a=>{const _0x5ed64b=_0x18289b;switch(_0x13af5a){case b[_0x5ed64b(0x1e2)]['OFFLINE']:this['_handleOffline']();break;case b[_0x5ed64b(0x1e2)][_0x5ed64b(0x228)]:this[_0x5ed64b(0x21f)]();break;}}),this[_0x18289b(0x1c7)]['event$'][_0x18289b(0x287)](I[_0x18289b(0x284)](this[_0x18289b(0x1c8)]))[_0x18289b(0x1b7)](_0x5a1a26=>{const _0xb14492=_0x18289b,{eventID:_0x6d9621}=_0x5a1a26;switch(_0x6d9621){case d['CollaborationEvent'][_0xb14492(0x275)]:this[_0xb14492(0x22e)](_0x5a1a26);break;case d['CollaborationEvent'][_0xb14492(0x1b5)]:this[_0xb14492(0x1d5)](_0x5a1a26);break;case d['CollaborationEvent'][_0xb14492(0x1cc)]:this[_0xb14492(0x283)]();break;case d['CollaborationEvent'][_0xb14492(0x24b)]:this[_0xb14492(0x288)](_0x5a1a26);break;}}));}[_0x3399e0(0x226)](){const _0x68b3dd=_0x3399e0;this[_0x68b3dd(0x1c7)][_0x68b3dd(0x250)]({'eventID':d[_0x68b3dd(0x23b)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x68b3dd(0x1c7)][_0x68b3dd(0x224)]()}},this[_0x68b3dd(0x23c)]);}['stopPresenting'](){const _0x2ab625=_0x3399e0;this[_0x2ab625(0x270)]===_0x2ab625(0x1ad)&&(this[_0x2ab625(0x26a)][_0x2ab625(0x248)]('idle'),this[_0x2ab625(0x1c7)][_0x2ab625(0x250)]({'eventID':d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x3399e0(0x1e9)](){const _0x20f073=_0x3399e0;this[_0x20f073(0x270)]==='not-following'&&(this['_status$']['next'](_0x20f073(0x1db)),this[_0x20f073(0x237)]());}[_0x3399e0(0x25f)](){const _0x8e5769=_0x3399e0;this[_0x8e5769(0x270)]===_0x8e5769(0x1db)&&this[_0x8e5769(0x1b9)]();}[_0x3399e0(0x22e)](_0x3e0957){const _0xa14484=_0x3399e0,{presenter:_0x4f99bf}=_0x3e0957[_0xa14484(0x1f1)],_0x1c2294=this[_0xa14484(0x1c7)]['getMemberID']();this[_0xa14484(0x1c4)]=_0x4f99bf,_0x4f99bf===_0x1c2294?(this['_stopFollowing'](),this[_0xa14484(0x1ef)]()):this['_status']!==_0xa14484(0x21c)&&(this[_0xa14484(0x24c)](),this['_startFollowing']());}[_0x3399e0(0x21a)](){const _0x36434d=_0x3399e0,_0x4196be={'eventID':d[_0x36434d(0x23b)][_0x36434d(0x1dd)]};this['_collabSession'][_0x36434d(0x250)](_0x4196be,this['_unitID']);}[_0x3399e0(0x283)](){const _0x29e179=_0x3399e0;this[_0x29e179(0x1c4)]=null,this[_0x29e179(0x270)]!=='presenting'&&this[_0x29e179(0x1b4)]();}[_0x3399e0(0x288)](_0x2cacca){const _0x41cac0=_0x3399e0;if(this['_status']==='following'&&this[_0x41cac0(0x1c4)]===_0x2cacca['data'][_0x41cac0(0x279)]){const _0x3e080e=d[_0x41cac0(0x1c9)](_0x2cacca[_0x41cac0(0x1f1)])[_0x41cac0(0x24d)][_0x41cac0(0x26c)]()[_0x41cac0(0x1ae)](_0x1c3d10=>_0x1c3d10['id']===C[_0x41cac0(0x1b0)]['id']);if(_0x3e080e){const _0x25d2b1=_0x3e080e[_0x41cac0(0x1f9)][_0x41cac0(0x1e8)],_0x21a401=_0x3e080e[_0x41cac0(0x1f9)][_0x41cac0(0x235)]['id'];setTimeout(()=>{const _0x1fedb8=_0x41cac0;this[_0x1fedb8(0x21b)][_0x1fedb8(0x1e4)](C[_0x1fedb8(0x1c3)]['id'],{'unitId':_0x25d2b1,'subUnitId':_0x21a401},{'fromCollab':!0x0});});}}}[_0x3399e0(0x1ef)](){const _0xe8780b=_0x3399e0;this[_0xe8780b(0x26a)][_0xe8780b(0x248)](_0xe8780b(0x1ad));const _0x53a973=new Map(),_0x28f99f=this[_0xe8780b(0x202)]=new o[(_0xe8780b(0x1ed))]();_0x28f99f['add'](o[_0xe8780b(0x260)](()=>{const _0x45f23b=_0xe8780b;_0x53a973[_0x45f23b(0x1d1)](_0x2ab4ae=>_0x2ab4ae[_0x45f23b(0x221)]()),_0x53a973[_0x45f23b(0x263)]();})),_0x28f99f[_0xe8780b(0x1e5)](this['_commandService'][_0xe8780b(0x1b2)](_0xe022e4=>{const _0x419c26=_0xe8780b;var _0x29949f;if(_0xe022e4[_0x419c26(0x1d4)]!==o[_0x419c26(0x233)]['OPERATION']||!this[_0x419c26(0x1d9)]['shouldShareOperation'](_0xe022e4['id']))return;const {id:_0x39e1f6}=_0xe022e4;let _0x5983ff;_0x53a973['has'](_0x39e1f6)?_0x5983ff=_0x53a973[_0x419c26(0x1c6)](_0x39e1f6):(_0x5983ff=new O[(_0x419c26(0x27a))](),_0x53a973[_0x419c26(0x1af)](_0x39e1f6,_0x5983ff),_0x5983ff[_0x419c26(0x287)](I[_0x419c26(0x1ea)]((_0x29949f=this[_0x419c26(0x220)]['getConfig'](k))!=null?_0x29949f:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2a6423=>{const _0x29631d=_0x419c26;this[_0x29631d(0x1c7)][_0x29631d(0x250)]({'eventID':d[_0x29631d(0x23b)][_0x29631d(0x1b5)],'data':{'unitID':this[_0x29631d(0x23c)],'operations':{[_0x2a6423['id']]:{'id':_0x2a6423['id'],'params':JSON[_0x29631d(0x265)](_0x2a6423['params'])}}}},this[_0x29631d(0x23c)]);})),_0x5983ff[_0x419c26(0x248)](_0xe022e4);})),this[_0xe8780b(0x1d9)]['getInitialStates'](this[_0xe8780b(0x23c)])[_0xe8780b(0x1d1)](_0x502cf6=>this['_collabSession'][_0xe8780b(0x250)]({'eventID':d[_0xe8780b(0x23b)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x502cf6['id']]:{'id':_0x502cf6['id'],'params':JSON[_0xe8780b(0x265)](_0x502cf6[_0xe8780b(0x1f9)])}}}},this[_0xe8780b(0x23c)]));}['_stopPresenting'](){const _0x9955d5=_0x3399e0;var _0x2ffbde;this[_0x9955d5(0x26a)]['next'](_0x9955d5(0x205)),(_0x2ffbde=this['_commandDisposable'])==null||_0x2ffbde[_0x9955d5(0x208)](),this[_0x9955d5(0x202)]=null;}[_0x3399e0(0x237)](){const _0x154de9=_0x3399e0;var _0x488a98;(_0x488a98=this[_0x154de9(0x202)])==null||_0x488a98[_0x154de9(0x208)](),this[_0x154de9(0x26a)]['next'](_0x154de9(0x1db));}[_0x3399e0(0x1b4)](){const _0x57df9c=_0x3399e0;var _0x249ffa;this[_0x57df9c(0x26a)]['next'](_0x57df9c(0x205)),(_0x249ffa=this[_0x57df9c(0x202)])==null||_0x249ffa[_0x57df9c(0x208)](),this[_0x57df9c(0x202)]=null;}[_0x3399e0(0x1b9)](){const _0xc0d565=_0x3399e0;var _0x2dbd55;this['_status$'][_0xc0d565(0x248)](_0xc0d565(0x21c)),(_0x2dbd55=this[_0xc0d565(0x202)])==null||_0x2dbd55[_0xc0d565(0x208)]();}['_handleOperation'](_0x541771){const _0x35fb47=_0x3399e0;if([_0x35fb47(0x1ad),_0x35fb47(0x21c),_0x35fb47(0x23f)][_0x35fb47(0x1e1)](this[_0x35fb47(0x270)])||!_0x541771[_0x35fb47(0x1f1)][_0x35fb47(0x25a)]||_0x541771[_0x35fb47(0x1f1)][_0x35fb47(0x25a)]===this[_0x35fb47(0x1c7)]['getMemberID']())return;this[_0x35fb47(0x270)]===_0x35fb47(0x205)&&this[_0x35fb47(0x237)]();const _0x357c2f=_0x541771[_0x35fb47(0x1f1)][_0x35fb47(0x210)];Object['values'](_0x357c2f)[_0x35fb47(0x1d1)](_0x4b8074=>{const _0x380912=_0x35fb47;this['_commandService'][_0x380912(0x1e4)](_0x4b8074['id'],_0x4b8074[_0x380912(0x1f9)]?JSON['parse'](_0x4b8074[_0x380912(0x1f9)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x22468d=_0x3399e0;var _0x325e5e;this['_status$'][_0x22468d(0x248)](_0x22468d(0x23f)),(_0x325e5e=this[_0x22468d(0x202)])==null||_0x325e5e['dispose']();}[_0x3399e0(0x21f)](){const _0x138cc9=_0x3399e0;this['_status$'][_0x138cc9(0x248)](_0x138cc9(0x205)),this['_fetchOperations']();}},exports[_0x3399e0(0x259)]=P([S(0x2,o[_0x3399e0(0x25c)]),S(0x3,o['Inject'](E)),S(0x4,o[_0x3399e0(0x246)])],exports[_0x3399e0(0x259)]);function $(){const _0x467775=_0x3399e0,_0x291981=p[_0x467775(0x1bb)](exports[_0x467775(0x1da)]),_0x5af939=p['useDependency'](o[_0x467775(0x1dc)]),_0xfc1ee3=p['useObservable'](()=>_0x5af939[_0x467775(0x278)](o[_0x467775(0x243)][_0x467775(0x267)]),void 0x0,!0x1,[]),[_0x5a7700,_0x1d7e47]=v[_0x467775(0x1f7)](null),[_0x584be0,_0x1b90b4]=v[_0x467775(0x1f7)](u['IDLE']),_0x3d7442=v[_0x467775(0x238)](null);return v[_0x467775(0x218)](()=>(_0xfc1ee3&&_0x291981[_0x467775(0x286)](_0xfc1ee3['getUnitId']())[_0x467775(0x216)](_0x30ac73=>{const _0x59ade7=_0x467775;_0x1d7e47(_0x30ac73),_0x3d7442[_0x59ade7(0x1eb)]=_0x30ac73[_0x59ade7(0x1ca)]['subscribe'](_0x29f5e0=>{_0x1b90b4(_0x29f5e0);});}),()=>{const _0x5376ef=_0x467775;var _0x3bdd7a;(_0x3bdd7a=_0x3d7442[_0x5376ef(0x1eb)])==null||_0x3bdd7a[_0x5376ef(0x24f)](),_0x3d7442['current']=null;}),[_0xfc1ee3,_0x291981]),_0x5a7700?l[_0x467775(0x240)](f[_0x467775(0x1cb)],{'align':_0x467775(0x214),'disabled':_0x584be0===u[_0x467775(0x1fd)],'className':_0x467775(0x24a),'overlay':l[_0x467775(0x240)](W,{'status':_0x584be0,'coordinator':_0x5a7700}),'children':l[_0x467775(0x240)](_0x467775(0x232),{'className':f[_0x467775(0x1b6)](_0x467775(0x201),{'univer-cursor-not-allowed':_0x584be0===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x584be0!==u[_0x467775(0x1fd)]}),'type':_0x467775(0x232),'children':l[_0x467775(0x240)](R,{'className':'univer-size-4'})})}):null;}function W(_0x430771){const _0x151626=_0x3399e0,{status:_0x4441d1,coordinator:_0x2a8181}=_0x430771;switch(_0x4441d1){case u[_0x151626(0x273)]:return l[_0x151626(0x240)](G,{'coordinator':_0x2a8181});case u['FOLLOWING']:return l[_0x151626(0x240)](B,{'coordinator':_0x2a8181});case u['NOT_FOLLOWING']:return l[_0x151626(0x240)](Y,{'coordinator':_0x2a8181});case u[_0x151626(0x1fd)]:return l['jsx'](J,{});case u[_0x151626(0x1c5)]:return l[_0x151626(0x240)](Z,{'coordinator':_0x2a8181});default:return null;}}function G(_0x5c04ab){const _0x4cccf8=_0x3399e0,{coordinator:_0x44cc2d}=_0x5c04ab;return l[_0x4cccf8(0x1e0)](l['Fragment'],{'children':[l[_0x4cccf8(0x240)](_0x4cccf8(0x242),{'className':_0x4cccf8(0x251),'children':_0x4cccf8(0x1b3)}),l['jsx'](f[_0x4cccf8(0x27c)],{'onClick':()=>_0x44cc2d[_0x4cccf8(0x226)](),'children':_0x4cccf8(0x20d)})]});}function B(_0x33bad1){const _0xb8de61=_0x3399e0,{coordinator:_0x2900ed}=_0x33bad1;return l[_0xb8de61(0x1e0)](l[_0xb8de61(0x261)],{'children':[l['jsx']('div',{'className':_0xb8de61(0x251),'children':_0xb8de61(0x271)}),l[_0xb8de61(0x240)](f[_0xb8de61(0x27c)],{'onClick':()=>_0x2900ed['stopFollowing'](),'children':_0xb8de61(0x1be)})]});}function Y(_0x2e9b31){const _0x27c691=_0x3399e0,{coordinator:_0x7985f0}=_0x2e9b31;return l[_0x27c691(0x1e0)](l[_0x27c691(0x261)],{'children':[l[_0x27c691(0x240)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x27c691(0x1bc)}),l['jsx'](f[_0x27c691(0x27c)],{'variant':_0x27c691(0x21e),'onClick':()=>_0x7985f0[_0x27c691(0x1e9)](),'children':'Start\x20following'})]});}function Z(_0x1f4218){const _0x170f52=_0x3399e0,{coordinator:_0x123c9f}=_0x1f4218;return l[_0x170f52(0x1e0)](l[_0x170f52(0x261)],{'children':[l[_0x170f52(0x240)](_0x170f52(0x242),{'className':_0x170f52(0x251),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x170f52(0x240)](f['Button'],{'variant':_0x170f52(0x1f8),'onClick':()=>_0x123c9f['stopPresenting'](),'children':'Stop\x20presenting'})]});}function J(){const _0x12840f=_0x3399e0;return l[_0x12840f(0x240)](l[_0x12840f(0x261)],{'children':_0x12840f(0x20e)});}var K=Object[_0x3399e0(0x241)],z=(_0x2168a5,_0x11e6e8,_0x16e3bb,_0x49337a)=>{const _0x2ea789=_0x3399e0;for(var _0x31c517=_0x49337a>0x1?void 0x0:_0x49337a?K(_0x11e6e8,_0x16e3bb):_0x11e6e8,_0x2861f6=_0x2168a5[_0x2ea789(0x1ee)]-0x1,_0x11c074;_0x2861f6>=0x0;_0x2861f6--)(_0x11c074=_0x2168a5[_0x2861f6])&&(_0x31c517=_0x11c074(_0x31c517)||_0x31c517);return _0x31c517;},L=(_0x5d5954,_0x517852)=>(_0x50daae,_0x4b2ef2)=>_0x517852(_0x50daae,_0x4b2ef2,_0x5d5954);exports[_0x3399e0(0x285)]=class extends o[_0x3399e0(0x23d)]{constructor(_0x33231d,_0x1aa925){const _0x72bf39=_0x3399e0;super(),this[_0x72bf39(0x229)]=_0x33231d,this[_0x72bf39(0x272)]=_0x1aa925,this[_0x72bf39(0x262)]();}[_0x3399e0(0x262)](){const _0x1ee7f4=_0x3399e0;this[_0x1ee7f4(0x22b)](this[_0x1ee7f4(0x272)][_0x1ee7f4(0x281)](p[_0x1ee7f4(0x274)][_0x1ee7f4(0x1d7)],()=>p[_0x1ee7f4(0x1ce)]($,this[_0x1ee7f4(0x229)])));}},exports[_0x3399e0(0x285)]=z([L(0x0,o[_0x3399e0(0x234)](o['Injector'])),L(0x1,p[_0x3399e0(0x217)])],exports[_0x3399e0(0x285)]);const Q=_0x3399e0(0x26e),w={};var X=Object[_0x3399e0(0x241)],ee=(_0x13c545,_0x464463,_0x32fd1f,_0x19dc03)=>{const _0x4cf018=_0x3399e0;for(var _0x2586f5=_0x19dc03>0x1?void 0x0:_0x19dc03?X(_0x464463,_0x32fd1f):_0x464463,_0x3caca9=_0x13c545[_0x4cf018(0x1ee)]-0x1,_0x553ed4;_0x3caca9>=0x0;_0x3caca9--)(_0x553ed4=_0x13c545[_0x3caca9])&&(_0x2586f5=_0x553ed4(_0x2586f5)||_0x2586f5);return _0x2586f5;},te=(_0x229c2b,_0x1b0ddb)=>(_0x3d65d4,_0x27ecac)=>_0x1b0ddb(_0x3d65d4,_0x27ecac,_0x229c2b);let m=class extends o[_0x3399e0(0x23d)]{constructor(_0x35e130){const _0x2cc30e=_0x3399e0;super(),this[_0x2cc30e(0x1d9)]=_0x35e130,this[_0x2cc30e(0x25e)]();}[_0x3399e0(0x25e)](){const _0x1f5468=_0x3399e0;[D[_0x1f5468(0x276)]['id'],D[_0x1f5468(0x207)]['id'],C[_0x1f5468(0x1c3)]['id']]['forEach'](_0x1d1605=>{const _0x4a32c7=_0x1f5468;this[_0x4a32c7(0x22b)](this[_0x4a32c7(0x1d9)][_0x4a32c7(0x280)](_0x1d1605));});}};m=ee([te(0x0,o[_0x3399e0(0x234)](E))],m);var ie=Object['defineProperty'],se=Object[_0x3399e0(0x241)],ne=(_0x1c9e94,_0x237cc0,_0x5d5f4e)=>_0x237cc0 in _0x1c9e94?ie(_0x1c9e94,_0x237cc0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d5f4e}):_0x1c9e94[_0x237cc0]=_0x5d5f4e,re=(_0x6b248,_0x1bed6d,_0x21d878,_0xaf51c7)=>{const _0x457355=_0x3399e0;for(var _0x2e9239=_0xaf51c7>0x1?void 0x0:_0xaf51c7?se(_0x1bed6d,_0x21d878):_0x1bed6d,_0x359642=_0x6b248[_0x457355(0x1ee)]-0x1,_0x4ea343;_0x359642>=0x0;_0x359642--)(_0x4ea343=_0x6b248[_0x359642])&&(_0x2e9239=_0x4ea343(_0x2e9239)||_0x2e9239);return _0x2e9239;},N=(_0x305a50,_0x56acee)=>(_0x2cb643,_0x4a4222)=>_0x56acee(_0x2cb643,_0x4a4222,_0x305a50),A=(_0x1c5c37,_0x1c578c,_0x530f2f)=>ne(_0x1c5c37,typeof _0x1c578c!=_0x3399e0(0x26b)?_0x1c578c+'':_0x1c578c,_0x530f2f);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x3399e0(0x1e7)]=class extends o[_0x3399e0(0x22a)]{constructor(_0x52545b=w,_0x591798,_0x2d2f0c){const _0x1469d8=_0x3399e0;super(),this[_0x1469d8(0x1d6)]=_0x52545b,this[_0x1469d8(0x229)]=_0x591798,this[_0x1469d8(0x220)]=_0x2d2f0c;const {..._0x204c0e}=o['merge']({},w,this[_0x1469d8(0x1d6)]);this[_0x1469d8(0x220)][_0x1469d8(0x1de)](Q,_0x204c0e);}[_0x3399e0(0x258)](){const _0x4b742e=_0x3399e0;o['registerDependencies'](this[_0x4b742e(0x229)],o[_0x4b742e(0x222)]([[E],[exports[_0x4b742e(0x1da)]],[m],[exports[_0x4b742e(0x285)]]],this[_0x4b742e(0x1d6)][_0x4b742e(0x255)])),o['touchDependencies'](this[_0x4b742e(0x229)],[[m]]);}[_0x3399e0(0x247)](){const _0x4027bf=_0x3399e0;o[_0x4027bf(0x1d0)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},A(exports['UniverLiveSharePlugin'],_0x3399e0(0x1d4),o[_0x3399e0(0x243)][_0x3399e0(0x20f)]),A(exports['UniverLiveSharePlugin'],_0x3399e0(0x1f3),oe),exports[_0x3399e0(0x1e7)]=re([o[_0x3399e0(0x1d3)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x3399e0(0x234)](o[_0x3399e0(0x1e6)])),N(0x2,o[_0x3399e0(0x25c)])],exports[_0x3399e0(0x1e7)]),exports[_0x3399e0(0x21d)]=$,exports[_0x3399e0(0x213)]=E,exports[_0x3399e0(0x24e)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2e7f(_0xf3a8a9,_0x570afe){const _0x54575a=_0x5457();return _0x2e7f=function(_0x2e7fd4,_0x9ae2f1){_0x2e7fd4=_0x2e7fd4-0x171;let _0x4b8bda=_0x54575a[_0x2e7fd4];return _0x4b8bda;},_0x2e7f(_0xf3a8a9,_0x570afe);}const _0x1d78da=_0x2e7f;(function(_0x5eb321,_0x342f46){const _0x5ab1cc=_0x2e7f,_0x1e2334=_0x5eb321();while(!![]){try{const _0x4a6072=parseInt(_0x5ab1cc(0x18c))/0x1+parseInt(_0x5ab1cc(0x17c))/0x2*(-parseInt(_0x5ab1cc(0x179))/0x3)+parseInt(_0x5ab1cc(0x178))/0x4+parseInt(_0x5ab1cc(0x181))/0x5*(-parseInt(_0x5ab1cc(0x189))/0x6)+parseInt(_0x5ab1cc(0x177))/0x7*(-parseInt(_0x5ab1cc(0x17a))/0x8)+-parseInt(_0x5ab1cc(0x182))/0x9+parseInt(_0x5ab1cc(0x187))/0xa;if(_0x4a6072===_0x342f46)break;else _0x1e2334['push'](_0x1e2334['shift']());}catch(_0x37da52){_0x1e2334['push'](_0x1e2334['shift']());}}}(_0x5457,0xacc9e));import{LiveShareController as _0x557121,LiveShareStatus as _0x186ca3}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4e997e}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x58c1c6}from'@univerjs/sheets';import{SetScrollOperation as _0x537632}from'@univerjs/sheets-ui';import{FRange as _0x13dbde}from'@univerjs/sheets/facade';function _0x5457(){const _0x49eb26=['839496UkBBtY','19590TlhfNw','760ewdkLt','LiveShareStatusEnum','16xXdVdn','getLiveShareCoordinatorSync','extend','stopPresenting','getId','5MQnnAd','7679709fNvcZz','stopFollowing','getStatus','PRESENTING','getUnitId','22780960SWWuBX','_injector','5269242frXDdF','get','startFollowing','246435Jfijmi','tryStartPresenting','_commandService','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareStatus','getActiveWorkbook','getActiveSheet','No\x20active\x20workbook\x20found.','getSheetId','17899Yatawa'];_0x5457=function(){return _0x49eb26;};return _0x5457();}import{FUniver as _0x3032a4,FEnum as _0x599bcb}from'@univerjs/core/facade';class I extends _0x13dbde{['_initialize'](_0x37f523,_0x14587d,_0x558071,_0x5f0db6,_0x4d6813){const _0x552491=_0x2e7f,_0x3846b5=_0x37f523[_0x552491(0x18a)](_0x557121),_0x3cc487=_0x37f523[_0x552491(0x18a)](_0x4e997e),_0x5aaff4=_0x14587d['getUnitId'](),_0xca4291=_0x14587d[_0x552491(0x174)](),_0xb89acc=_0x3846b5['getLiveShareCoordinatorSync'](_0x5aaff4);(_0xb89acc==null?void 0x0:_0xb89acc[_0x552491(0x184)]())!==_0x186ca3[_0x552491(0x185)]||(_0x558071[_0x552491(0x176)]()!==_0xca4291[_0x552491(0x176)]()&&this[_0x552491(0x18e)]['executeCommand'](_0x58c1c6['id'],{'unitId':_0x5aaff4,'subUnitId':_0x558071[_0x552491(0x176)]()}),!_0x3cc487['getRenderById'](_0x5aaff4))||_0x4d6813['syncExecuteCommand'](_0x537632['id'],{'unitId':_0x14587d[_0x552491(0x186)](),'sheetId':_0x558071[_0x552491(0x176)](),'sheetViewStartRow':_0x5f0db6['startRow'],'sheetViewStartColumn':_0x5f0db6['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x13dbde[_0x1d78da(0x17e)](I);class m extends _0x3032a4{[_0x1d78da(0x172)](){const _0x57ce47=_0x1d78da;var _0x48884b,_0x34e7a2;const _0x2dfbee=this[_0x57ce47(0x188)]['get'](_0x557121),_0x55c9da=(_0x48884b=this['getActiveWorkbook']())==null?void 0x0:_0x48884b[_0x57ce47(0x180)]();if(!_0x55c9da)throw new Error('No\x20active\x20workbook\x20found.');const _0x3fe114=_0x2dfbee[_0x57ce47(0x17d)](_0x55c9da);return(_0x34e7a2=_0x3fe114==null?void 0x0:_0x3fe114[_0x57ce47(0x184)]())!=null?_0x34e7a2:_0x186ca3['IDLE'];}[_0x1d78da(0x18b)](){const _0x51eaac=_0x1d78da;var _0x3146f2;const _0x14e1d5=this[_0x51eaac(0x188)][_0x51eaac(0x18a)](_0x557121),_0x550242=(_0x3146f2=this[_0x51eaac(0x173)]())==null?void 0x0:_0x3146f2[_0x51eaac(0x180)]();if(!_0x550242)throw new Error(_0x51eaac(0x175));const _0x25e62b=_0x14e1d5[_0x51eaac(0x17d)](_0x550242);if(!_0x25e62b)throw new Error(_0x51eaac(0x171));_0x25e62b[_0x51eaac(0x18b)]();}[_0x1d78da(0x183)](){const _0x42a3b2=_0x1d78da;var _0x114e7c;const _0x5247bb=this[_0x42a3b2(0x188)][_0x42a3b2(0x18a)](_0x557121),_0x50d7e=(_0x114e7c=this[_0x42a3b2(0x173)]())==null?void 0x0:_0x114e7c[_0x42a3b2(0x180)]();if(!_0x50d7e)throw new Error(_0x42a3b2(0x175));const _0x3bcfba=_0x5247bb[_0x42a3b2(0x17d)](_0x50d7e);if(!_0x3bcfba)throw new Error(_0x42a3b2(0x171));_0x3bcfba[_0x42a3b2(0x183)]();}['startPresenting'](){const _0x5a0d37=_0x1d78da;var _0xb52b95;const _0x3e2378=this[_0x5a0d37(0x188)][_0x5a0d37(0x18a)](_0x557121),_0x31c130=(_0xb52b95=this['getActiveWorkbook']())==null?void 0x0:_0xb52b95['getId']();if(!_0x31c130)throw new Error(_0x5a0d37(0x175));const _0x4954a1=_0x3e2378['getLiveShareCoordinatorSync'](_0x31c130);if(!_0x4954a1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4954a1[_0x5a0d37(0x18d)]();}[_0x1d78da(0x17f)](){const _0x1f1211=_0x1d78da;var _0x390e21;const _0x418160=this[_0x1f1211(0x188)][_0x1f1211(0x18a)](_0x557121),_0x57902a=(_0x390e21=this[_0x1f1211(0x173)]())==null?void 0x0:_0x390e21[_0x1f1211(0x180)]();if(!_0x57902a)throw new Error(_0x1f1211(0x175));const _0x3ad542=_0x418160[_0x1f1211(0x17d)](_0x57902a);if(!_0x3ad542)throw new Error(_0x1f1211(0x171));_0x3ad542[_0x1f1211(0x17f)]();}}_0x3032a4[_0x1d78da(0x17e)](m);class C extends _0x599bcb{get[_0x1d78da(0x17b)](){return _0x186ca3;}}_0x599bcb['extend'](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3f8b8a=_0x5e6b;(function(_0x1b2469,_0x5d2d34){const _0x45631d=_0x5e6b,_0x4d58cd=_0x1b2469();while(!![]){try{const _0x15f162=parseInt(_0x45631d(0x139))/0x1+-parseInt(_0x45631d(0x12c))/0x2*(parseInt(_0x45631d(0x1b4))/0x3)+-parseInt(_0x45631d(0x1a3))/0x4+parseInt(_0x45631d(0x18f))/0x5+-parseInt(_0x45631d(0x122))/0x6+-parseInt(_0x45631d(0x1a4))/0x7*(-parseInt(_0x45631d(0x11c))/0x8)+parseInt(_0x45631d(0x191))/0x9*(-parseInt(_0x45631d(0x14f))/0xa);if(_0x15f162===_0x5d2d34)break;else _0x4d58cd['push'](_0x4d58cd['shift']());}catch(_0x570847){_0x4d58cd['push'](_0x4d58cd['shift']());}}}(_0x5073,0xab4ed));function _0x5073(){const _0x79eb11=['stopPresenting','_commandDisposable','getStatus','text','_univerInstanceService','registerInitialStateReporter','div','asObservable','_collabSession','513796BAxTUj','8281679nNlQRM','following','_reporters','reverse','LIVESHARE_REQUEST_HOST','_entities','tryStartPresenting','univer-size-4','add','registerComponent','colorChannel1','shouldShareOperation','LiveShareIcon','OFFLINE','random','has','617649PHsLbu','requireSession','_stopFollowing','setConfig','FOLLOWING','entries','_sharedOperations','LIVESHARE_TERMINATE','override','tag','not-following','status$','_status$','from','live-share-icon','8sAeACW','_presenter','Stop\x20presenting','includes','evenodd','defineProperty','2057844RdYmHJ','_startFollowing','_handleTerminate','UniverIcon','getInitialStates','onCommandExecuted','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','PRESENTING','set','presenter','2kQrUno','svg','IDLE','_config','onRendered','NOT_FOLLOWING','dispose','values','mask','unitId','length','sheet','You\x27re\x20following\x20the\x20presenter','342755jKOFdz','_init','getOwnPropertyDescriptor','idSuffix','LIVESHARE_NEW_HOST','registerSharedOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','operations','_startPresenting','Start\x20following','LIVESHARE_OPERATION','clear','unsubscribe','mutations','data','send','_unitID','toString','init','delete','_handleOnline','children','11265690ygLByx','_handleNewHost','forEach','end','default','SAME_OPERATION_SHARE_INTERVAL','defIds','getLiveShareCoordinator','_configService','_uiPartsService','complete','next','presenting','current','get','NEW_CHANGESETS','xlink:href','then','event$','_handleNewChangeSets','none','string','_stopPresenting','replace','_handleOffline','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','subscribe','stringify','_beIdle','getTypeOfUnitAdded$','_liveShareService','assign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','path','_startLiveShareCoordinator','getUnitId','attrs','map','use','getTypeOfUnitDisposed$','_commandService','Stop\x20following','_fetchOperations','substring','createInstance','offline','_status','HEADER_MENU','OPERATION','UNIVER_SHEET','executeCommand','trim','dispose$','sessionStatus$','displayName','0\x200\x2017\x2017','params','disposeWithMe','find','getConfig','You\x27are\x20offline.','UNIVER_LIVE_SHARE_PLUGIN','http://www.w3.org/2000/svg','You\x27re\x20presenting\x20the\x20document','4898500YXyOHH','getMemberID','9gCBIUi','button','pipe','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','_injector','onStarting','symbol','1em','idle'];_0x5073=function(){return _0x79eb11;};return _0x5073();}var J=Object['defineProperty'],K=(_0xc48790,_0xc9d9c5,_0x1af2a5)=>_0xc9d9c5 in _0xc48790?J(_0xc48790,_0xc9d9c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1af2a5}):_0xc48790[_0xc9d9c5]=_0x1af2a5,u=(_0x17643a,_0x5f06e7,_0x5dc08d)=>K(_0x17643a,typeof _0x5f06e7!=_0x3f8b8a(0x197)?_0x5f06e7+'':_0x5f06e7,_0x5dc08d);import{Disposable as _0x159720,toDisposable as _0x51d4c6,IUniverInstanceService as _0x399285,Inject as _0x5559c6,Injector as _0x195227,IConfigService as _0x5c28f1,ICommandService as _0x754535,RxDisposable as _0x16a1ae,UniverInstanceType as _0x3fe8fe,DisposableCollection as _0x434384,CommandType as _0x1fb413,DependentOn as _0x3f7112,Plugin as _0x25bb0a,merge as _0x39e1c5,registerDependencies as _0x46d24c,mergeOverrideWithDependencies as _0x7a71b0,touchDependencies as _0x4d514b}from'@univerjs/core';import{useDependency as _0x437252,useObservable as _0x420d0b,IUIPartsService as _0x32b863,BuiltInUIPart as _0x4dcc23,connectInjector as _0x54592c}from'@univerjs/ui';import{jsx as _0x2a725f,jsxs as _0x4db2bd,Fragment as _0x32f569}from'react/jsx-runtime';import{Dropdown as _0x1c024f,clsx as _0x1e4748,Button as _0x3efa6c}from'@univerjs/design';import{useRef as _0x5bdf40,createElement as _0x433fb7,forwardRef as _0x51a912,useState as _0x41412a,useEffect as _0x710f1d}from'react';import{CollaborationEvent as _0x1bfde3,parseProtocolChangeset as _0xe1444c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x76787b,SessionStatus as _0x1d2e0c,UniverCollaborationClientPlugin as _0x52b6d2}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x54e6ad,SetWorksheetActiveOperation as _0x7f48eb}from'@univerjs/sheets';import{BehaviorSubject as _0x4603a5,Subject as _0x26df35}from'rxjs';import{takeUntil as _0x75a298,throttleTime as _0x2bfc6b}from'rxjs/operators';function _0x5e6b(_0x3d7f4c,_0x14cb74){const _0x5073f8=_0x5073();return _0x5e6b=function(_0x5e6b89,_0x5e37e4){_0x5e6b89=_0x5e6b89-0x118;let _0x4ba283=_0x5073f8[_0x5e6b89];return _0x4ba283;},_0x5e6b(_0x3d7f4c,_0x14cb74);}import{SetZoomRatioOperation as _0x23298b,SetScrollOperation as _0x5acac7}from'@univerjs/sheets-ui';function k({ref:_0xe3c7c0,..._0x142e4a}){const _0x2ca499=_0x3f8b8a,{icon:_0x1d8f59,id:_0xd0ff5d,className:_0x232dc0,extend:_0x1f2413,..._0x500a00}=_0x142e4a,_0x5e65aa=('univerjs-icon\x20univerjs-icon-'+_0xd0ff5d+'\x20'+(_0x232dc0||''))[_0x2ca499(0x182)](),_0x333265=_0x5bdf40('_'+Oe());return G(_0x1d8f59,''+_0xd0ff5d,{'defIds':_0x1d8f59[_0x2ca499(0x155)],'idSuffix':_0x333265[_0x2ca499(0x15c)]},{'ref':_0xe3c7c0,'className':_0x5e65aa,..._0x500a00},_0x1f2413);}function G(_0xd39f0a,_0x3163ad,_0x493cb7,_0x3f26f8,_0x24388e){const _0x54d6d4=_0x3f8b8a;return _0x433fb7(_0xd39f0a[_0x54d6d4(0x1bd)],{'key':_0x3163ad,...be(_0xd39f0a,_0x493cb7,_0x24388e),..._0x3f26f8},(Ee(_0xd39f0a,_0x493cb7)[_0x54d6d4(0x14e)]||[])[_0x54d6d4(0x174)]((_0x3a0e71,_0x31f09c)=>G(_0x3a0e71,_0x3163ad+'-'+_0xd39f0a[_0x54d6d4(0x1bd)]+'-'+_0x31f09c,_0x493cb7,void 0x0,_0x24388e)));}function be(_0x42773d,_0x42881d,_0x4648ef){const _0x3ced73=_0x3f8b8a,_0x369ee7={..._0x42773d[_0x3ced73(0x173)]};_0x4648ef!=null&&_0x4648ef[_0x3ced73(0x1ae)]&&_0x369ee7['fill']===_0x3ced73(0x1ae)&&(_0x369ee7['fill']=_0x4648ef['colorChannel1']),_0x42773d['tag']===_0x3ced73(0x134)&&_0x369ee7['id']&&(_0x369ee7['id']=_0x369ee7['id']+_0x42881d[_0x3ced73(0x13c)]),Object['entries'](_0x369ee7)[_0x3ced73(0x151)](([_0x587907,_0x119040])=>{const _0x2cde33=_0x3ced73;_0x587907===_0x2cde33(0x134)&&typeof _0x119040==_0x2cde33(0x164)&&(_0x369ee7[_0x587907]=_0x119040['replace'](/url\(#(.*)\)/,'url(#$1'+_0x42881d[_0x2cde33(0x13c)]+')'));});const {defIds:_0x3dc9f2}=_0x42881d;return!_0x3dc9f2||_0x3dc9f2[_0x3ced73(0x136)]===0x0||(_0x42773d[_0x3ced73(0x1bd)]===_0x3ced73(0x175)&&_0x369ee7[_0x3ced73(0x15f)]&&(_0x369ee7[_0x3ced73(0x15f)]=_0x369ee7['xlink:href']+_0x42881d[_0x3ced73(0x13c)]),Object[_0x3ced73(0x1b9)](_0x369ee7)[_0x3ced73(0x151)](([_0x3c8fab,_0xb5ee25])=>{const _0x36a25a=_0x3ced73;typeof _0xb5ee25==_0x36a25a(0x164)&&(_0x369ee7[_0x3c8fab]=_0xb5ee25[_0x36a25a(0x166)](/url\(#(.*)\)/,'url(#$1'+_0x42881d[_0x36a25a(0x13c)]+')'));})),_0x369ee7;}function Ee(_0x1f5ccf,_0x5577bc){const _0x3b2b48=_0x3f8b8a;var _0x38bd2c;const {defIds:_0x4ae1fb}=_0x5577bc;return!_0x4ae1fb||_0x4ae1fb[_0x3b2b48(0x136)]===0x0?_0x1f5ccf:_0x1f5ccf[_0x3b2b48(0x1bd)]==='defs'&&((_0x38bd2c=_0x1f5ccf[_0x3b2b48(0x14e)])!=null&&_0x38bd2c['length'])?{..._0x1f5ccf,'children':_0x1f5ccf[_0x3b2b48(0x14e)][_0x3b2b48(0x174)](_0x3a763a=>typeof _0x3a763a[_0x3b2b48(0x173)]['id']=='string'&&_0x4ae1fb&&_0x4ae1fb[_0x3b2b48(0x11f)](_0x3a763a[_0x3b2b48(0x173)]['id'])?{..._0x3a763a,'attrs':{..._0x3a763a['attrs'],'id':_0x3a763a[_0x3b2b48(0x173)]['id']+_0x5577bc[_0x3b2b48(0x13c)]}}:_0x3a763a)}:_0x1f5ccf;}function Oe(){const _0x32d4f2=_0x3f8b8a;return Math[_0x32d4f2(0x1b2)]()[_0x32d4f2(0x14a)](0x24)[_0x32d4f2(0x17a)](0x2,0x8);}k[_0x3f8b8a(0x185)]=_0x3f8b8a(0x125);const we={'tag':_0x3f8b8a(0x12d),'attrs':{'xmlns':_0x3f8b8a(0x18d),'fill':_0x3f8b8a(0x163),'viewBox':_0x3f8b8a(0x186),'width':_0x3f8b8a(0x198),'height':_0x3f8b8a(0x198)},'children':[{'tag':_0x3f8b8a(0x170),'attrs':{'fill':'currentColor','d':_0x3f8b8a(0x194)}},{'tag':_0x3f8b8a(0x170),'attrs':{'fill':'currentColor','d':_0x3f8b8a(0x128),'fillRule':_0x3f8b8a(0x120),'clipRule':_0x3f8b8a(0x120)}}]},W=_0x51a912(function(_0x4760e6,_0x12fa81){const _0x8323b6=_0x3f8b8a;return _0x433fb7(k,Object[_0x8323b6(0x16e)]({},_0x4760e6,{'id':_0x8323b6(0x11b),'ref':_0x12fa81,'icon':we}));});W['displayName']=_0x3f8b8a(0x1b0);class L extends _0x159720{constructor(){const _0x57e4be=_0x3f8b8a;super(...arguments),u(this,_0x57e4be(0x1ba),new Set()),u(this,'_reporters',new Set());}[_0x3f8b8a(0x13e)](_0x4acac7){const _0x7a7ffb=_0x3f8b8a;return this[_0x7a7ffb(0x1ba)][_0x7a7ffb(0x1ac)](_0x4acac7),_0x51d4c6(()=>this[_0x7a7ffb(0x1ba)][_0x7a7ffb(0x14c)](_0x4acac7));}[_0x3f8b8a(0x19f)](_0x217eeb){const _0x15bb0d=_0x3f8b8a;return this['_reporters'][_0x15bb0d(0x1ac)](_0x217eeb),_0x51d4c6(()=>this[_0x15bb0d(0x1a6)][_0x15bb0d(0x14c)](_0x217eeb));}[_0x3f8b8a(0x1af)](_0x5f0c1e){const _0x21b2f8=_0x3f8b8a;return this['_sharedOperations'][_0x21b2f8(0x1b3)](_0x5f0c1e);}[_0x3f8b8a(0x126)](_0x28f42f){const _0x583ead=_0x3f8b8a;return Array[_0x583ead(0x11a)](this[_0x583ead(0x1a6)])[_0x583ead(0x174)](_0x47d80d=>_0x47d80d(_0x28f42f));}}var Ne=Object[_0x3f8b8a(0x13b)],Y=(_0x22d92a,_0x5baaf6,_0x1c120e,_0x2dbae1)=>{const _0x142a4a=_0x3f8b8a;for(var _0x4143e4=_0x2dbae1>0x1?void 0x0:_0x2dbae1?Ne(_0x5baaf6,_0x1c120e):_0x5baaf6,_0xd30129=_0x22d92a[_0x142a4a(0x136)]-0x1,_0x285747;_0xd30129>=0x0;_0xd30129--)(_0x285747=_0x22d92a[_0xd30129])&&(_0x4143e4=_0x285747(_0x4143e4)||_0x4143e4);return _0x4143e4;},_=(_0x1b8bf3,_0x3c5791)=>(_0x33fb27,_0x509447)=>_0x3c5791(_0x33fb27,_0x509447,_0x1b8bf3);let S=class extends _0x16a1ae{constructor(_0x3d2124,_0x1caff3,_0x177195){const _0xea2054=_0x3f8b8a;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3d2124,this[_0xea2054(0x195)]=_0x1caff3,this['_collabSessionService']=_0x177195,this[_0xea2054(0x13a)]());}async[_0x3f8b8a(0x156)](_0x18173e){const _0x39d342=_0x3f8b8a;return this[_0x39d342(0x1a9)][_0x39d342(0x1b3)](_0x18173e)||await this['_startLiveShareCoordinator'](_0x18173e),this[_0x39d342(0x1a9)][_0x39d342(0x15d)](_0x18173e);}['getLiveShareCoordinatorSync'](_0x51a436){const _0x560500=_0x3f8b8a;var _0x1eb23d;return(_0x1eb23d=this[_0x560500(0x1a9)][_0x560500(0x15d)](_0x51a436))!=null?_0x1eb23d:null;}['_init'](){const _0x5f5519=_0x3f8b8a;this['_univerInstanceService'][_0x5f5519(0x16c)](_0x3fe8fe[_0x5f5519(0x180)])[_0x5f5519(0x193)](_0x75a298(this[_0x5f5519(0x183)]))[_0x5f5519(0x169)](async _0x5e9eee=>{const _0x5be08c=_0x5f5519,_0x1061f6=_0x5e9eee['getUnitId']();this['_entities']['has'](_0x1061f6)||this[_0x5be08c(0x171)](_0x1061f6);}),this[_0x5f5519(0x19e)][_0x5f5519(0x176)](_0x3fe8fe[_0x5f5519(0x180)])[_0x5f5519(0x193)](_0x75a298(this[_0x5f5519(0x183)]))[_0x5f5519(0x169)](_0x1c9bc8=>{const _0x2bbaf6=_0x5f5519,_0x47d72a=_0x1c9bc8[_0x2bbaf6(0x172)](),_0x1a583=this['_entities'][_0x2bbaf6(0x15d)](_0x47d72a);_0x1a583==null||_0x1a583[_0x2bbaf6(0x132)]();});}async[_0x3f8b8a(0x171)](_0x2bfa87){const _0x447c7d=_0x3f8b8a,_0x50e532=await this['_collabSessionService'][_0x447c7d(0x1b5)](_0x2bfa87),_0x5f59f8=this['_injector'][_0x447c7d(0x17b)](N,_0x2bfa87,_0x50e532);return _0x5f59f8[_0x447c7d(0x14b)](),this[_0x447c7d(0x1a9)][_0x447c7d(0x12a)](_0x2bfa87,_0x5f59f8),_0x5f59f8;}};S=Y([_(0x0,_0x399285),_(0x1,_0x5559c6(_0x195227)),_(0x2,_0x5559c6(_0x76787b))],S);var c=(_0x574527=>(_0x574527['OFFLINE']='offline',_0x574527['IDLE']='idle',_0x574527['FOLLOWING']='following',_0x574527[_0x3f8b8a(0x131)]='not-following',_0x574527[_0x3f8b8a(0x129)]=_0x3f8b8a(0x15b),_0x574527))(c||{});const Ce=_0x3f8b8a(0x154),De=0xc8;let N=class extends _0x16a1ae{constructor(_0x4276f7,_0x346f6b,_0x2b6c92,_0x142612,_0xb2a889){const _0x39a6e7=_0x3f8b8a;super(),u(this,_0x39a6e7(0x119),new _0x4603a5(_0x39a6e7(0x199))),u(this,_0x39a6e7(0x118),this['_status$'][_0x39a6e7(0x1a1)]()),u(this,'_init',!0x1),u(this,_0x39a6e7(0x19b),null),u(this,_0x39a6e7(0x11d),null),(this[_0x39a6e7(0x149)]=_0x4276f7,this[_0x39a6e7(0x1a2)]=_0x346f6b,this['_configService']=_0x2b6c92,this[_0x39a6e7(0x16d)]=_0x142612,this['_commandService']=_0xb2a889);}get[_0x3f8b8a(0x17d)](){const _0x5034b4=_0x3f8b8a;return this[_0x5034b4(0x119)]['getValue']();}[_0x3f8b8a(0x132)](){const _0x3a92df=_0x3f8b8a;var _0x1e7b70;(_0x1e7b70=this[_0x3a92df(0x19b)])==null||_0x1e7b70[_0x3a92df(0x132)](),this[_0x3a92df(0x119)][_0x3a92df(0x15a)](_0x3a92df(0x199)),this[_0x3a92df(0x119)][_0x3a92df(0x159)]();}[_0x3f8b8a(0x19c)](){const _0x243205=_0x3f8b8a;return this[_0x243205(0x17d)];}[_0x3f8b8a(0x14b)](){const _0x4d9eac=_0x3f8b8a;this[_0x4d9eac(0x13a)]||(this['_init']=!0x0,this[_0x4d9eac(0x1a2)][_0x4d9eac(0x184)][_0x4d9eac(0x193)](_0x75a298(this[_0x4d9eac(0x183)]))[_0x4d9eac(0x169)](_0xed7b20=>{const _0x5c912b=_0x4d9eac;switch(_0xed7b20){case _0x1d2e0c['OFFLINE']:this[_0x5c912b(0x167)]();break;case _0x1d2e0c['ONLINE']:this[_0x5c912b(0x14d)]();break;}}),this['_collabSession'][_0x4d9eac(0x161)][_0x4d9eac(0x193)](_0x75a298(this['dispose$']))['subscribe'](_0x28f52f=>{const _0x28a030=_0x4d9eac,{eventID:_0x18df19}=_0x28f52f;switch(_0x18df19){case _0x1bfde3[_0x28a030(0x13d)]:this[_0x28a030(0x150)](_0x28f52f);break;case _0x1bfde3[_0x28a030(0x143)]:this['_handleOperation'](_0x28f52f);break;case _0x1bfde3[_0x28a030(0x1bb)]:this[_0x28a030(0x124)]();break;case _0x1bfde3[_0x28a030(0x15e)]:this[_0x28a030(0x162)](_0x28f52f);break;}}));}[_0x3f8b8a(0x1aa)](){const _0x24894a=_0x3f8b8a;this[_0x24894a(0x1a2)][_0x24894a(0x148)]({'eventID':_0x1bfde3[_0x24894a(0x1a8)],'data':{'unitID':this['_unitID'],'userID':this[_0x24894a(0x1a2)][_0x24894a(0x190)]()}},this[_0x24894a(0x149)]);}[_0x3f8b8a(0x19a)](){const _0x3c56f2=_0x3f8b8a;this[_0x3c56f2(0x17d)]==='presenting'&&(this[_0x3c56f2(0x119)]['next']('idle'),this[_0x3c56f2(0x1a2)][_0x3c56f2(0x148)]({'eventID':_0x1bfde3[_0x3c56f2(0x1bb)],'data':{'unitID':this[_0x3c56f2(0x149)]}},this[_0x3c56f2(0x149)]));}['startFollowing'](){const _0x5343ed=_0x3f8b8a;this['_status']===_0x5343ed(0x1be)&&(this['_status$']['next'](_0x5343ed(0x1a5)),this[_0x5343ed(0x123)]());}['stopFollowing'](){const _0x37e4e2=_0x3f8b8a;this[_0x37e4e2(0x17d)]==='following'&&this[_0x37e4e2(0x1b6)]();}[_0x3f8b8a(0x150)](_0x58be5a){const _0x48d6f1=_0x3f8b8a,{presenter:_0x35aeae}=_0x58be5a[_0x48d6f1(0x147)],_0x42f624=this['_collabSession'][_0x48d6f1(0x190)]();this[_0x48d6f1(0x11d)]=_0x35aeae,_0x35aeae===_0x42f624?(this[_0x48d6f1(0x1b6)](),this[_0x48d6f1(0x141)]()):this[_0x48d6f1(0x17d)]!==_0x48d6f1(0x1be)&&(this[_0x48d6f1(0x165)](),this['_startFollowing']());}[_0x3f8b8a(0x179)](){const _0x6c3b87=_0x3f8b8a,_0x56ed86={'eventID':_0x1bfde3['LIVESHARE_FETCH_OPERATIONS']};this[_0x6c3b87(0x1a2)][_0x6c3b87(0x148)](_0x56ed86,this[_0x6c3b87(0x149)]);}[_0x3f8b8a(0x124)](){const _0x2cab7b=_0x3f8b8a;this['_presenter']=null,this[_0x2cab7b(0x17d)]!=='presenting'&&this[_0x2cab7b(0x16b)]();}[_0x3f8b8a(0x162)](_0x321f12){const _0xdd36ca=_0x3f8b8a;if(this[_0xdd36ca(0x17d)]===_0xdd36ca(0x1a5)&&this[_0xdd36ca(0x11d)]===_0x321f12['data']['memberID']){const _0x2956d7=_0xe1444c(_0x321f12[_0xdd36ca(0x147)])[_0xdd36ca(0x146)][_0xdd36ca(0x1a7)]()[_0xdd36ca(0x189)](_0x4e9636=>_0x4e9636['id']===_0x54e6ad['id']);if(_0x2956d7){const _0x132c1e=_0x2956d7[_0xdd36ca(0x187)][_0xdd36ca(0x135)],_0x52ac32=_0x2956d7[_0xdd36ca(0x187)][_0xdd36ca(0x137)]['id'];setTimeout(()=>{const _0x5a91e8=_0xdd36ca;this[_0x5a91e8(0x177)][_0x5a91e8(0x181)](_0x7f48eb['id'],{'unitId':_0x132c1e,'subUnitId':_0x52ac32},{'fromCollab':!0x0});});}}}[_0x3f8b8a(0x141)](){const _0x570568=_0x3f8b8a;this[_0x570568(0x119)][_0x570568(0x15a)](_0x570568(0x15b));const _0x48df98=new Map(),_0x805d37=this[_0x570568(0x19b)]=new _0x434384();_0x805d37[_0x570568(0x1ac)](_0x51d4c6(()=>{const _0x4fab03=_0x570568;_0x48df98[_0x4fab03(0x151)](_0x1a3792=>_0x1a3792[_0x4fab03(0x159)]()),_0x48df98[_0x4fab03(0x144)]();})),_0x805d37[_0x570568(0x1ac)](this[_0x570568(0x177)][_0x570568(0x127)](_0x1ffa50=>{const _0x541913=_0x570568;var _0x380ba2;if(_0x1ffa50['type']!==_0x1fb413[_0x541913(0x17f)]||!this['_liveShareService'][_0x541913(0x1af)](_0x1ffa50['id']))return;const {id:_0x2d2022}=_0x1ffa50;let _0x4641a2;_0x48df98['has'](_0x2d2022)?_0x4641a2=_0x48df98[_0x541913(0x15d)](_0x2d2022):(_0x4641a2=new _0x26df35(),_0x48df98[_0x541913(0x12a)](_0x2d2022,_0x4641a2),_0x4641a2[_0x541913(0x193)](_0x2bfc6b((_0x380ba2=this[_0x541913(0x157)][_0x541913(0x18a)](Ce))!=null?_0x380ba2:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x541913(0x169)](_0x53e5b3=>{const _0xbd360a=_0x541913;this[_0xbd360a(0x1a2)]['send']({'eventID':_0x1bfde3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xbd360a(0x149)],'operations':{[_0x53e5b3['id']]:{'id':_0x53e5b3['id'],'params':JSON[_0xbd360a(0x16a)](_0x53e5b3[_0xbd360a(0x187)])}}}},this[_0xbd360a(0x149)]);})),_0x4641a2[_0x541913(0x15a)](_0x1ffa50);})),this[_0x570568(0x16d)][_0x570568(0x126)](this[_0x570568(0x149)])[_0x570568(0x151)](_0x32739c=>this[_0x570568(0x1a2)][_0x570568(0x148)]({'eventID':_0x1bfde3[_0x570568(0x143)],'data':{'unitID':this[_0x570568(0x149)],'operations':{[_0x32739c['id']]:{'id':_0x32739c['id'],'params':JSON[_0x570568(0x16a)](_0x32739c[_0x570568(0x187)])}}}},this['_unitID']));}[_0x3f8b8a(0x165)](){const _0x4fcc9d=_0x3f8b8a;var _0x2c9889;this['_status$'][_0x4fcc9d(0x15a)]('idle'),(_0x2c9889=this['_commandDisposable'])==null||_0x2c9889[_0x4fcc9d(0x132)](),this['_commandDisposable']=null;}[_0x3f8b8a(0x123)](){const _0x191871=_0x3f8b8a;var _0x55d507;(_0x55d507=this['_commandDisposable'])==null||_0x55d507[_0x191871(0x132)](),this[_0x191871(0x119)][_0x191871(0x15a)](_0x191871(0x1a5));}[_0x3f8b8a(0x16b)](){const _0x56a8fd=_0x3f8b8a;var _0x2f872b;this['_status$'][_0x56a8fd(0x15a)](_0x56a8fd(0x199)),(_0x2f872b=this[_0x56a8fd(0x19b)])==null||_0x2f872b['dispose'](),this['_commandDisposable']=null;}[_0x3f8b8a(0x1b6)](){const _0x59d686=_0x3f8b8a;var _0xee0c7e;this['_status$'][_0x59d686(0x15a)](_0x59d686(0x1be)),(_0xee0c7e=this[_0x59d686(0x19b)])==null||_0xee0c7e[_0x59d686(0x132)]();}['_handleOperation'](_0x1fe05f){const _0x5a8b7d=_0x3f8b8a;if([_0x5a8b7d(0x15b),_0x5a8b7d(0x1be),_0x5a8b7d(0x17c)][_0x5a8b7d(0x11f)](this[_0x5a8b7d(0x17d)])||!_0x1fe05f[_0x5a8b7d(0x147)][_0x5a8b7d(0x12b)]||_0x1fe05f['data'][_0x5a8b7d(0x12b)]===this[_0x5a8b7d(0x1a2)][_0x5a8b7d(0x190)]())return;this[_0x5a8b7d(0x17d)]==='idle'&&this[_0x5a8b7d(0x123)]();const _0x3b278=_0x1fe05f[_0x5a8b7d(0x147)][_0x5a8b7d(0x140)];Object[_0x5a8b7d(0x133)](_0x3b278)[_0x5a8b7d(0x151)](_0x1abcbe=>{const _0x14c655=_0x5a8b7d;this[_0x14c655(0x177)][_0x14c655(0x181)](_0x1abcbe['id'],_0x1abcbe[_0x14c655(0x187)]?JSON['parse'](_0x1abcbe[_0x14c655(0x187)]):null,{'fromCollab':!0x0});});}[_0x3f8b8a(0x167)](){const _0x47bc6e=_0x3f8b8a;var _0x13b4d8;this[_0x47bc6e(0x119)][_0x47bc6e(0x15a)](_0x47bc6e(0x17c)),(_0x13b4d8=this['_commandDisposable'])==null||_0x13b4d8[_0x47bc6e(0x132)]();}[_0x3f8b8a(0x14d)](){const _0x29a970=_0x3f8b8a;this[_0x29a970(0x119)]['next']('idle'),this[_0x29a970(0x179)]();}};N=Y([_(0x2,_0x5c28f1),_(0x3,_0x5559c6(L)),_(0x4,_0x754535)],N);function Le(){const _0x22584c=_0x3f8b8a,_0x5158de=_0x437252(S),_0x22ff73=_0x437252(_0x399285),_0x4fe169=_0x420d0b(()=>_0x22ff73['getCurrentTypeOfUnit$'](_0x3fe8fe['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x13918f,_0x5a27e4]=_0x41412a(null),[_0xe69d7a,_0x8f994d]=_0x41412a(c[_0x22584c(0x12e)]),_0x397bf8=_0x5bdf40(null);return _0x710f1d(()=>(_0x4fe169&&_0x5158de[_0x22584c(0x156)](_0x4fe169[_0x22584c(0x172)]())[_0x22584c(0x160)](_0x487b0c=>{const _0x3bc4df=_0x22584c;_0x5a27e4(_0x487b0c),_0x397bf8[_0x3bc4df(0x15c)]=_0x487b0c[_0x3bc4df(0x118)][_0x3bc4df(0x169)](_0x258b5b=>{_0x8f994d(_0x258b5b);});}),()=>{const _0x438cb8=_0x22584c;var _0x1f1064;(_0x1f1064=_0x397bf8[_0x438cb8(0x15c)])==null||_0x1f1064[_0x438cb8(0x145)](),_0x397bf8['current']=null;}),[_0x4fe169,_0x5158de]),_0x13918f?_0x2a725f(_0x1c024f,{'align':_0x22584c(0x152),'disabled':_0xe69d7a===c[_0x22584c(0x1b1)],'className':_0x22584c(0x168),'overlay':_0x2a725f(Re,{'status':_0xe69d7a,'coordinator':_0x13918f}),'children':_0x2a725f(_0x22584c(0x192),{'className':_0x1e4748(_0x22584c(0x16f),{'univer-cursor-not-allowed':_0xe69d7a===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xe69d7a!==c[_0x22584c(0x1b1)]}),'type':_0x22584c(0x192),'children':_0x2a725f(W,{'className':_0x22584c(0x1ab)})})}):null;}function Re(_0x338ffb){const _0x3dd1f6=_0x3f8b8a,{status:_0x55981b,coordinator:_0x2d4cf8}=_0x338ffb;switch(_0x55981b){case c['IDLE']:return _0x2a725f($e,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x1b8)]:return _0x2a725f(xe,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x131)]:return _0x2a725f(Pe,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x1b1)]:return _0x2a725f(Te,{});case c['PRESENTING']:return _0x2a725f(Ae,{'coordinator':_0x2d4cf8});default:return null;}}function $e(_0xe2c10a){const _0x42d232=_0x3f8b8a,{coordinator:_0x5432b0}=_0xe2c10a;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f('div',{'className':_0x42d232(0x13f),'children':'Present\x20this\x20document'}),_0x2a725f(_0x3efa6c,{'onClick':()=>_0x5432b0[_0x42d232(0x1aa)](),'children':'Start'})]});}function xe(_0x46d1b7){const _0x3fade4=_0x3f8b8a,{coordinator:_0x3870d3}=_0x46d1b7;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x3fade4(0x1a0),{'className':_0x3fade4(0x13f),'children':_0x3fade4(0x138)}),_0x2a725f(_0x3efa6c,{'onClick':()=>_0x3870d3['stopFollowing'](),'children':_0x3fade4(0x178)})]});}function Pe(_0x2ad8a6){const _0x1507c4=_0x3f8b8a,{coordinator:_0x15114f}=_0x2ad8a6;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x1507c4(0x1a0),{'className':_0x1507c4(0x13f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2a725f(_0x3efa6c,{'variant':_0x1507c4(0x19d),'onClick':()=>_0x15114f['startFollowing'](),'children':_0x1507c4(0x142)})]});}function Ae(_0x4d9d45){const _0x3b0c48=_0x3f8b8a,{coordinator:_0x6739dd}=_0x4d9d45;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x3b0c48(0x1a0),{'className':_0x3b0c48(0x13f),'children':_0x3b0c48(0x18e)}),_0x2a725f(_0x3efa6c,{'variant':_0x3b0c48(0x153),'onClick':()=>_0x6739dd[_0x3b0c48(0x19a)](),'children':_0x3b0c48(0x11e)})]});}function Te(){const _0x5ab2e9=_0x3f8b8a;return _0x2a725f(_0x32f569,{'children':_0x5ab2e9(0x18b)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x692b81,_0x2bd650,_0x55ecc7,_0x573e73)=>{for(var _0x265abf=_0x573e73>0x1?void 0x0:_0x573e73?Fe(_0x2bd650,_0x55ecc7):_0x2bd650,_0x9a9881=_0x692b81['length']-0x1,_0xe49475;_0x9a9881>=0x0;_0x9a9881--)(_0xe49475=_0x692b81[_0x9a9881])&&(_0x265abf=_0xe49475(_0x265abf)||_0x265abf);return _0x265abf;},A=(_0x3e8478,_0x1dc1e1)=>(_0x1d6c49,_0x43136c)=>_0x1dc1e1(_0x1d6c49,_0x43136c,_0x3e8478);let m=class extends _0x159720{constructor(_0x3b5d43,_0x5c3466){const _0x3f13f9=_0x3f8b8a;super(),this[_0x3f13f9(0x195)]=_0x3b5d43,this[_0x3f13f9(0x158)]=_0x5c3466,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x9ce3e3=_0x3f8b8a;this[_0x9ce3e3(0x188)](this[_0x9ce3e3(0x158)][_0x9ce3e3(0x1ad)](_0x4dcc23[_0x9ce3e3(0x17e)],()=>_0x54592c(Le,this[_0x9ce3e3(0x195)])));}};m=He([A(0x0,_0x5559c6(_0x195227)),A(0x1,_0x32b863)],m);const ye='live-share.config',T={};var Ue=Object[_0x3f8b8a(0x13b)],Ve=(_0x57f1cb,_0x1bff20,_0x2e21ac,_0x510d99)=>{const _0x1fc779=_0x3f8b8a;for(var _0x39b7f2=_0x510d99>0x1?void 0x0:_0x510d99?Ue(_0x1bff20,_0x2e21ac):_0x1bff20,_0x16b7ff=_0x57f1cb[_0x1fc779(0x136)]-0x1,_0x49eb70;_0x16b7ff>=0x0;_0x16b7ff--)(_0x49eb70=_0x57f1cb[_0x16b7ff])&&(_0x39b7f2=_0x49eb70(_0x39b7f2)||_0x39b7f2);return _0x39b7f2;},je=(_0xa2122c,_0x9f8f62)=>(_0x508fa7,_0x2b1df8)=>_0x9f8f62(_0x508fa7,_0x2b1df8,_0xa2122c);let I=class extends _0x159720{constructor(_0xcc460c){const _0x27f7e3=_0x3f8b8a;super(),this['_liveShareService']=_0xcc460c,this[_0x27f7e3(0x13a)]();}[_0x3f8b8a(0x13a)](){const _0x73d333=_0x3f8b8a;[_0x23298b['id'],_0x5acac7['id'],_0x7f48eb['id']][_0x73d333(0x151)](_0x475cc7=>{const _0x89d838=_0x73d333;this['disposeWithMe'](this[_0x89d838(0x16d)][_0x89d838(0x13e)](_0x475cc7));});}};I=Ve([je(0x0,_0x5559c6(L))],I);var Me=Object[_0x3f8b8a(0x121)],ke=Object[_0x3f8b8a(0x13b)],Ge=(_0x2116fc,_0xb34a52,_0x3b2d2a)=>_0xb34a52 in _0x2116fc?Me(_0x2116fc,_0xb34a52,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b2d2a}):_0x2116fc[_0xb34a52]=_0x3b2d2a,We=(_0x17513b,_0xfb1c9a,_0x4b4434,_0x41a9a5)=>{const _0x4fb515=_0x3f8b8a;for(var _0xefc1c8=_0x41a9a5>0x1?void 0x0:_0x41a9a5?ke(_0xfb1c9a,_0x4b4434):_0xfb1c9a,_0x158699=_0x17513b[_0x4fb515(0x136)]-0x1,_0x21492d;_0x158699>=0x0;_0x158699--)(_0x21492d=_0x17513b[_0x158699])&&(_0xefc1c8=_0x21492d(_0xefc1c8)||_0xefc1c8);return _0xefc1c8;},F=(_0x1e2c9c,_0x11c040)=>(_0x294155,_0x9fd399)=>_0x11c040(_0x294155,_0x9fd399,_0x1e2c9c),B=(_0x59a4a2,_0x4ef318,_0x35ae5e)=>Ge(_0x59a4a2,typeof _0x4ef318!='symbol'?_0x4ef318+'':_0x4ef318,_0x35ae5e);const Ye=_0x3f8b8a(0x18c);let b=class extends _0x25bb0a{constructor(_0x459cf0=T,_0x37b1e9,_0x52a233){const _0x556311=_0x3f8b8a;super(),this[_0x556311(0x12f)]=_0x459cf0,this[_0x556311(0x195)]=_0x37b1e9,this[_0x556311(0x157)]=_0x52a233;const {..._0x520479}=_0x39e1c5({},T,this[_0x556311(0x12f)]);this[_0x556311(0x157)][_0x556311(0x1b7)](ye,_0x520479);}[_0x3f8b8a(0x196)](){const _0x4767d2=_0x3f8b8a;_0x46d24c(this['_injector'],_0x7a71b0([[L],[S],[I],[m]],this[_0x4767d2(0x12f)][_0x4767d2(0x1bc)])),_0x4d514b(this['_injector'],[[I]]);}[_0x3f8b8a(0x130)](){const _0x30604d=_0x3f8b8a;_0x4d514b(this[_0x30604d(0x195)],[[m]]);}};B(b,'type',_0x3fe8fe['UNIVER_UNKNOWN']),B(b,'pluginName',Ye),b=We([_0x3f7112(_0x52b6d2),F(0x1,_0x5559c6(_0x195227)),F(0x2,_0x5c28f1)],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 _0x5210d7=_0x243a;(function(_0x15f47f,_0x38a4bf){const _0x24d9a3=_0x243a,_0x80a755=_0x15f47f();while(!![]){try{const _0xcfd96d=-parseInt(_0x24d9a3(0x1ef))/0x1*(-parseInt(_0x24d9a3(0x159))/0x2)+parseInt(_0x24d9a3(0x1c0))/0x3*(-parseInt(_0x24d9a3(0x14c))/0x4)+parseInt(_0x24d9a3(0x15b))/0x5*(-parseInt(_0x24d9a3(0x1ed))/0x6)+-parseInt(_0x24d9a3(0x1c2))/0x7*(-parseInt(_0x24d9a3(0x1db))/0x8)+-parseInt(_0x24d9a3(0x191))/0x9*(parseInt(_0x24d9a3(0x188))/0xa)+-parseInt(_0x24d9a3(0x14b))/0xb*(parseInt(_0x24d9a3(0x173))/0xc)+parseInt(_0x24d9a3(0x1e0))/0xd;if(_0xcfd96d===_0x38a4bf)break;else _0x80a755['push'](_0x80a755['shift']());}catch(_0xc382fe){_0x80a755['push'](_0x80a755['shift']());}}}(_0x381b,0x25769));var J=Object['defineProperty'],K=(_0x1efe56,_0x37fa3d,_0x22c01a)=>_0x37fa3d in _0x1efe56?J(_0x1efe56,_0x37fa3d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22c01a}):_0x1efe56[_0x37fa3d]=_0x22c01a,u=(_0xf3513,_0x5ca4a3,_0x4d2b0c)=>K(_0xf3513,typeof _0x5ca4a3!=_0x5210d7(0x1b5)?_0x5ca4a3+'':_0x5ca4a3,_0x4d2b0c);import{Disposable as _0x26ec19,toDisposable as _0x5d0e77,IUniverInstanceService as _0x37531b,Inject as _0x3d8a6b,Injector as _0x4b36e6,IConfigService as _0xf5ea42,ICommandService as _0x2fcda2,RxDisposable as _0x144ee0,UniverInstanceType as _0x50febc,DisposableCollection as _0x375790,CommandType as _0x1011d4,DependentOn as _0x1ec694,Plugin as _0x549e68,merge as _0x1c7e83,registerDependencies as _0x305e89,mergeOverrideWithDependencies as _0x2c31e8,touchDependencies as _0x222335}from'@univerjs/core';import{useDependency as _0x1c1e9a,useObservable as _0x274db0,IUIPartsService as _0x412319,BuiltInUIPart as _0x35793d,connectInjector as _0x28c316}from'@univerjs/ui';import{jsx as _0x3c9609,jsxs as _0x586ffe,Fragment as _0x23c578}from'react/jsx-runtime';import{Dropdown as _0x2922dc,clsx as _0x531909,Button as _0x36de3c}from'@univerjs/design';import{useRef as _0x374c97,createElement as _0x1cba6e,forwardRef as _0xd14d09,useState as _0x25d888,useEffect as _0x371e51}from'react';import{CollaborationEvent as _0x5e604e,parseProtocolChangeset as _0x574b9d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3df0fe,SessionStatus as _0x2e8789,UniverCollaborationClientPlugin as _0x302e04}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2cceb9,SetWorksheetActiveOperation as _0x205ccb}from'@univerjs/sheets';import{BehaviorSubject as _0x545a6f,Subject as _0x14dcfb}from'rxjs';import{takeUntil as _0x4b789d,throttleTime as _0x543336}from'rxjs/operators';import{SetZoomRatioOperation as _0x196e1f,SetScrollOperation as _0x23af8d}from'@univerjs/sheets-ui';function k({ref:_0x390bb6,..._0x12062e}){const _0x4cd428=_0x5210d7,{icon:_0x1a139d,id:_0x49440d,className:_0xf8f5b7,extend:_0x1a6904,..._0x586476}=_0x12062e,_0x31ba39=(_0x4cd428(0x169)+_0x49440d+'\x20'+(_0xf8f5b7||''))[_0x4cd428(0x1f4)](),_0x20f921=_0x374c97('_'+Oe());return G(_0x1a139d,''+_0x49440d,{'defIds':_0x1a139d[_0x4cd428(0x1a6)],'idSuffix':_0x20f921[_0x4cd428(0x19e)]},{'ref':_0x390bb6,'className':_0x31ba39,..._0x586476},_0x1a6904);}function G(_0x2d2f4f,_0x22d4a5,_0x382d75,_0x194976,_0x3dc485){const _0x979852=_0x5210d7;return _0x1cba6e(_0x2d2f4f[_0x979852(0x198)],{'key':_0x22d4a5,...be(_0x2d2f4f,_0x382d75,_0x3dc485),..._0x194976},(Ee(_0x2d2f4f,_0x382d75)[_0x979852(0x1de)]||[])[_0x979852(0x1b7)]((_0x561600,_0x5a4c17)=>G(_0x561600,_0x22d4a5+'-'+_0x2d2f4f[_0x979852(0x198)]+'-'+_0x5a4c17,_0x382d75,void 0x0,_0x3dc485)));}function be(_0x582291,_0x4dd843,_0x22ed7b){const _0x3e471d=_0x5210d7,_0x45347a={..._0x582291[_0x3e471d(0x1e6)]};_0x22ed7b!=null&&_0x22ed7b['colorChannel1']&&_0x45347a[_0x3e471d(0x197)]===_0x3e471d(0x1c8)&&(_0x45347a[_0x3e471d(0x197)]=_0x22ed7b[_0x3e471d(0x1c8)]),_0x582291[_0x3e471d(0x198)]===_0x3e471d(0x1e9)&&_0x45347a['id']&&(_0x45347a['id']=_0x45347a['id']+_0x4dd843[_0x3e471d(0x15f)]),Object[_0x3e471d(0x15e)](_0x45347a)[_0x3e471d(0x19c)](([_0x3fb191,_0x503399])=>{const _0x4a5232=_0x3e471d;_0x3fb191==='mask'&&typeof _0x503399==_0x4a5232(0x1b8)&&(_0x45347a[_0x3fb191]=_0x503399[_0x4a5232(0x1ee)](/url\(#(.*)\)/,_0x4a5232(0x18b)+_0x4dd843[_0x4a5232(0x15f)]+')'));});const {defIds:_0xee825a}=_0x4dd843;return!_0xee825a||_0xee825a[_0x3e471d(0x186)]===0x0||(_0x582291[_0x3e471d(0x198)]===_0x3e471d(0x1ad)&&_0x45347a[_0x3e471d(0x16a)]&&(_0x45347a[_0x3e471d(0x16a)]=_0x45347a[_0x3e471d(0x16a)]+_0x4dd843[_0x3e471d(0x15f)]),Object[_0x3e471d(0x15e)](_0x45347a)[_0x3e471d(0x19c)](([_0x4d42ea,_0x3e99e7])=>{const _0x54820a=_0x3e471d;typeof _0x3e99e7==_0x54820a(0x1b8)&&(_0x45347a[_0x4d42ea]=_0x3e99e7[_0x54820a(0x1ee)](/url\(#(.*)\)/,_0x54820a(0x18b)+_0x4dd843[_0x54820a(0x15f)]+')'));})),_0x45347a;}function Ee(_0x238eea,_0x313e6e){const _0x520dcb=_0x5210d7;var _0x5e86c6;const {defIds:_0x3f46cd}=_0x313e6e;return!_0x3f46cd||_0x3f46cd[_0x520dcb(0x186)]===0x0?_0x238eea:_0x238eea[_0x520dcb(0x198)]===_0x520dcb(0x172)&&((_0x5e86c6=_0x238eea[_0x520dcb(0x1de)])!=null&&_0x5e86c6[_0x520dcb(0x186)])?{..._0x238eea,'children':_0x238eea[_0x520dcb(0x1de)][_0x520dcb(0x1b7)](_0x276106=>typeof _0x276106[_0x520dcb(0x1e6)]['id']==_0x520dcb(0x1b8)&&_0x3f46cd&&_0x3f46cd['includes'](_0x276106[_0x520dcb(0x1e6)]['id'])?{..._0x276106,'attrs':{..._0x276106['attrs'],'id':_0x276106[_0x520dcb(0x1e6)]['id']+_0x313e6e[_0x520dcb(0x15f)]}}:_0x276106)}:_0x238eea;}function Oe(){const _0x7454f6=_0x5210d7;return Math[_0x7454f6(0x1f0)]()[_0x7454f6(0x1c3)](0x24)['substring'](0x2,0x8);}k[_0x5210d7(0x1b9)]=_0x5210d7(0x1a9);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5210d7(0x160),'viewBox':_0x5210d7(0x1a5),'width':_0x5210d7(0x17e),'height':_0x5210d7(0x17e)},'children':[{'tag':_0x5210d7(0x1e4),'attrs':{'fill':_0x5210d7(0x14d),'d':_0x5210d7(0x16e)}},{'tag':_0x5210d7(0x1e4),'attrs':{'fill':'currentColor','d':_0x5210d7(0x1d4),'fillRule':_0x5210d7(0x161),'clipRule':'evenodd'}}]},W=_0xd14d09(function(_0x4d2ab8,_0xc43756){const _0x1c32ef=_0x5210d7;return _0x1cba6e(k,Object['assign']({},_0x4d2ab8,{'id':_0x1c32ef(0x177),'ref':_0xc43756,'icon':we}));});W[_0x5210d7(0x1b9)]=_0x5210d7(0x174);class L extends _0x26ec19{constructor(){const _0x2ef29a=_0x5210d7;super(...arguments),u(this,_0x2ef29a(0x1f1),new Set()),u(this,_0x2ef29a(0x14a),new Set());}[_0x5210d7(0x183)](_0x159364){const _0x2c82d5=_0x5210d7;return this['_sharedOperations'][_0x2c82d5(0x1be)](_0x159364),_0x5d0e77(()=>this[_0x2c82d5(0x1f1)][_0x2c82d5(0x1dc)](_0x159364));}[_0x5210d7(0x152)](_0x765d19){const _0x10d592=_0x5210d7;return this[_0x10d592(0x14a)][_0x10d592(0x1be)](_0x765d19),_0x5d0e77(()=>this[_0x10d592(0x14a)][_0x10d592(0x1dc)](_0x765d19));}[_0x5210d7(0x19f)](_0x52341f){const _0x522bf0=_0x5210d7;return this[_0x522bf0(0x1f1)][_0x522bf0(0x199)](_0x52341f);}[_0x5210d7(0x15a)](_0x1d3ad3){const _0x4ca904=_0x5210d7;return Array[_0x4ca904(0x163)](this[_0x4ca904(0x14a)])[_0x4ca904(0x1b7)](_0x3d94fc=>_0x3d94fc(_0x1d3ad3));}}var Ne=Object[_0x5210d7(0x155)],Y=(_0x100c3a,_0x2f69d1,_0x4ec367,_0x53342f)=>{const _0x2215ae=_0x5210d7;for(var _0x180d20=_0x53342f>0x1?void 0x0:_0x53342f?Ne(_0x2f69d1,_0x4ec367):_0x2f69d1,_0x27b8f8=_0x100c3a[_0x2215ae(0x186)]-0x1,_0x410cc3;_0x27b8f8>=0x0;_0x27b8f8--)(_0x410cc3=_0x100c3a[_0x27b8f8])&&(_0x180d20=_0x410cc3(_0x180d20)||_0x180d20);return _0x180d20;},_=(_0x3cc0f5,_0x4e6a65)=>(_0x43926c,_0x2b5ecd)=>_0x4e6a65(_0x43926c,_0x2b5ecd,_0x3cc0f5);let S=class extends _0x144ee0{constructor(_0x404def,_0x154136,_0x34d529){const _0x31b7f6=_0x5210d7;super(),u(this,_0x31b7f6(0x17f),new Map()),(this[_0x31b7f6(0x1ab)]=_0x404def,this['_injector']=_0x154136,this[_0x31b7f6(0x1bf)]=_0x34d529,this[_0x31b7f6(0x162)]());}async[_0x5210d7(0x151)](_0x4efa50){const _0x1d91e3=_0x5210d7;return this[_0x1d91e3(0x17f)][_0x1d91e3(0x199)](_0x4efa50)||await this[_0x1d91e3(0x1e2)](_0x4efa50),this[_0x1d91e3(0x17f)][_0x1d91e3(0x1b4)](_0x4efa50);}[_0x5210d7(0x170)](_0x3e2f55){const _0x1f4b2d=_0x5210d7;var _0x426ebc;return(_0x426ebc=this[_0x1f4b2d(0x17f)]['get'](_0x3e2f55))!=null?_0x426ebc:null;}[_0x5210d7(0x162)](){const _0x36234b=_0x5210d7;this['_univerInstanceService'][_0x36234b(0x1cf)](_0x50febc[_0x36234b(0x153)])['pipe'](_0x4b789d(this[_0x36234b(0x1c4)]))[_0x36234b(0x1a7)](async _0x3196e5=>{const _0x2263f1=_0x36234b,_0x4b5954=_0x3196e5['getUnitId']();this['_entities'][_0x2263f1(0x199)](_0x4b5954)||this['_startLiveShareCoordinator'](_0x4b5954);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x50febc[_0x36234b(0x153)])[_0x36234b(0x1dd)](_0x4b789d(this[_0x36234b(0x1c4)]))[_0x36234b(0x1a7)](_0x1939ee=>{const _0x2c207c=_0x36234b,_0x40c869=_0x1939ee[_0x2c207c(0x1d7)](),_0x4d580d=this[_0x2c207c(0x17f)][_0x2c207c(0x1b4)](_0x40c869);_0x4d580d==null||_0x4d580d[_0x2c207c(0x1a0)]();});}async[_0x5210d7(0x1e2)](_0x52d7a5){const _0x48d801=_0x5210d7,_0x22798d=await this[_0x48d801(0x1bf)]['requireSession'](_0x52d7a5),_0x4832fc=this['_injector'][_0x48d801(0x1eb)](N,_0x52d7a5,_0x22798d);return _0x4832fc['init'](),this['_entities'][_0x48d801(0x16d)](_0x52d7a5,_0x4832fc),_0x4832fc;}};S=Y([_(0x0,_0x37531b),_(0x1,_0x3d8a6b(_0x4b36e6)),_(0x2,_0x3d8a6b(_0x3df0fe))],S);var c=(_0x371fb0=>(_0x371fb0[_0x5210d7(0x1bb)]=_0x5210d7(0x1cd),_0x371fb0[_0x5210d7(0x16c)]=_0x5210d7(0x1c7),_0x371fb0['FOLLOWING']=_0x5210d7(0x1cb),_0x371fb0[_0x5210d7(0x1f6)]=_0x5210d7(0x1c1),_0x371fb0[_0x5210d7(0x19b)]=_0x5210d7(0x182),_0x371fb0))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x144ee0{constructor(_0x1dac41,_0x51574d,_0x2aa659,_0x5b8dba,_0x5b62b8){const _0x557266=_0x5210d7;super(),u(this,_0x557266(0x1d0),new _0x545a6f('idle')),u(this,'status$',this['_status$'][_0x557266(0x1da)]()),u(this,_0x557266(0x162),!0x1),u(this,'_commandDisposable',null),u(this,_0x557266(0x18d),null),(this[_0x557266(0x1e7)]=_0x1dac41,this['_collabSession']=_0x51574d,this[_0x557266(0x17d)]=_0x2aa659,this[_0x557266(0x1c5)]=_0x5b8dba,this[_0x557266(0x16b)]=_0x5b62b8);}get[_0x5210d7(0x16f)](){const _0xb9ad33=_0x5210d7;return this[_0xb9ad33(0x1d0)][_0xb9ad33(0x187)]();}[_0x5210d7(0x1a0)](){const _0x24fa18=_0x5210d7;var _0x4e5434;(_0x4e5434=this[_0x24fa18(0x1a2)])==null||_0x4e5434[_0x24fa18(0x1a0)](),this[_0x24fa18(0x1d0)][_0x24fa18(0x157)](_0x24fa18(0x1c7)),this[_0x24fa18(0x1d0)]['complete']();}[_0x5210d7(0x164)](){const _0x122866=_0x5210d7;return this[_0x122866(0x16f)];}[_0x5210d7(0x1df)](){const _0x2a121d=_0x5210d7;this['_init']||(this[_0x2a121d(0x162)]=!0x0,this[_0x2a121d(0x1b1)][_0x2a121d(0x15d)]['pipe'](_0x4b789d(this[_0x2a121d(0x1c4)]))[_0x2a121d(0x1a7)](_0x16b391=>{const _0x41df21=_0x2a121d;switch(_0x16b391){case _0x2e8789[_0x41df21(0x1bb)]:this[_0x41df21(0x14e)]();break;case _0x2e8789[_0x41df21(0x1b0)]:this[_0x41df21(0x165)]();break;}}),this[_0x2a121d(0x1b1)][_0x2a121d(0x1ae)][_0x2a121d(0x1dd)](_0x4b789d(this[_0x2a121d(0x1c4)]))[_0x2a121d(0x1a7)](_0x50705d=>{const _0x542d98=_0x2a121d,{eventID:_0x1b5962}=_0x50705d;switch(_0x1b5962){case _0x5e604e['LIVESHARE_NEW_HOST']:this[_0x542d98(0x1d8)](_0x50705d);break;case _0x5e604e[_0x542d98(0x18f)]:this[_0x542d98(0x192)](_0x50705d);break;case _0x5e604e[_0x542d98(0x194)]:this[_0x542d98(0x171)]();break;case _0x5e604e['NEW_CHANGESETS']:this[_0x542d98(0x167)](_0x50705d);break;}}));}[_0x5210d7(0x1ec)](){const _0x38c293=_0x5210d7;this[_0x38c293(0x1b1)]['send']({'eventID':_0x5e604e[_0x38c293(0x193)],'data':{'unitID':this[_0x38c293(0x1e7)],'userID':this[_0x38c293(0x1b1)][_0x38c293(0x1bc)]()}},this[_0x38c293(0x1e7)]);}['stopPresenting'](){const _0xf0535b=_0x5210d7;this[_0xf0535b(0x16f)]==='presenting'&&(this[_0xf0535b(0x1d0)][_0xf0535b(0x157)]('idle'),this[_0xf0535b(0x1b1)][_0xf0535b(0x1e3)]({'eventID':_0x5e604e[_0xf0535b(0x194)],'data':{'unitID':this[_0xf0535b(0x1e7)]}},this[_0xf0535b(0x1e7)]));}[_0x5210d7(0x189)](){const _0x5e5633=_0x5210d7;this['_status']==='not-following'&&(this[_0x5e5633(0x1d0)][_0x5e5633(0x157)](_0x5e5633(0x1cb)),this[_0x5e5633(0x196)]());}[_0x5210d7(0x1b3)](){const _0x441e69=_0x5210d7;this['_status']===_0x441e69(0x1cb)&&this[_0x441e69(0x1ac)]();}[_0x5210d7(0x1d8)](_0x203791){const _0x3ba83d=_0x5210d7,{presenter:_0x150f0e}=_0x203791['data'],_0x481cd2=this[_0x3ba83d(0x1b1)][_0x3ba83d(0x1bc)]();this['_presenter']=_0x150f0e,_0x150f0e===_0x481cd2?(this[_0x3ba83d(0x1ac)](),this[_0x3ba83d(0x1a4)]()):this[_0x3ba83d(0x16f)]!==_0x3ba83d(0x1c1)&&(this[_0x3ba83d(0x1e5)](),this[_0x3ba83d(0x196)]());}['_fetchOperations'](){const _0x139322=_0x5210d7,_0x4f0cfa={'eventID':_0x5e604e['LIVESHARE_FETCH_OPERATIONS']};this[_0x139322(0x1b1)][_0x139322(0x1e3)](_0x4f0cfa,this['_unitID']);}[_0x5210d7(0x171)](){const _0x375a82=_0x5210d7;this[_0x375a82(0x18d)]=null,this[_0x375a82(0x16f)]!==_0x375a82(0x182)&&this[_0x375a82(0x14f)]();}[_0x5210d7(0x167)](_0x416f93){const _0x18d85d=_0x5210d7;if(this[_0x18d85d(0x16f)]==='following'&&this[_0x18d85d(0x18d)]===_0x416f93[_0x18d85d(0x1d9)]['memberID']){const _0x45f9a4=_0x574b9d(_0x416f93[_0x18d85d(0x1d9)])[_0x18d85d(0x1ba)][_0x18d85d(0x180)]()[_0x18d85d(0x17c)](_0x4661f0=>_0x4661f0['id']===_0x2cceb9['id']);if(_0x45f9a4){const _0x431995=_0x45f9a4[_0x18d85d(0x166)][_0x18d85d(0x18a)],_0x5c8ea5=_0x45f9a4['params'][_0x18d85d(0x18c)]['id'];setTimeout(()=>{const _0x40f736=_0x18d85d;this[_0x40f736(0x16b)][_0x40f736(0x1d5)](_0x205ccb['id'],{'unitId':_0x431995,'subUnitId':_0x5c8ea5},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x3ae90f=_0x5210d7;this[_0x3ae90f(0x1d0)][_0x3ae90f(0x157)](_0x3ae90f(0x182));const _0x1cc45b=new Map(),_0x49d326=this[_0x3ae90f(0x1a2)]=new _0x375790();_0x49d326[_0x3ae90f(0x1be)](_0x5d0e77(()=>{const _0x219700=_0x3ae90f;_0x1cc45b[_0x219700(0x19c)](_0xc65f44=>_0xc65f44[_0x219700(0x1ce)]()),_0x1cc45b[_0x219700(0x1ca)]();})),_0x49d326['add'](this[_0x3ae90f(0x16b)][_0x3ae90f(0x1ea)](_0x34162a=>{const _0x3ce83e=_0x3ae90f;var _0x290d9c;if(_0x34162a[_0x3ce83e(0x18e)]!==_0x1011d4['OPERATION']||!this[_0x3ce83e(0x1c5)][_0x3ce83e(0x19f)](_0x34162a['id']))return;const {id:_0xa629ad}=_0x34162a;let _0x4c97e8;_0x1cc45b[_0x3ce83e(0x199)](_0xa629ad)?_0x4c97e8=_0x1cc45b[_0x3ce83e(0x1b4)](_0xa629ad):(_0x4c97e8=new _0x14dcfb(),_0x1cc45b[_0x3ce83e(0x16d)](_0xa629ad,_0x4c97e8),_0x4c97e8['pipe'](_0x543336((_0x290d9c=this[_0x3ce83e(0x17d)]['getConfig'](Ce))!=null?_0x290d9c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3ce83e(0x1a7)](_0x64c933=>{const _0x1d5aa2=_0x3ce83e;this[_0x1d5aa2(0x1b1)]['send']({'eventID':_0x5e604e[_0x1d5aa2(0x18f)],'data':{'unitID':this[_0x1d5aa2(0x1e7)],'operations':{[_0x64c933['id']]:{'id':_0x64c933['id'],'params':JSON[_0x1d5aa2(0x17a)](_0x64c933[_0x1d5aa2(0x166)])}}}},this[_0x1d5aa2(0x1e7)]);})),_0x4c97e8[_0x3ce83e(0x157)](_0x34162a);})),this[_0x3ae90f(0x1c5)][_0x3ae90f(0x15a)](this[_0x3ae90f(0x1e7)])['forEach'](_0x3ae847=>this[_0x3ae90f(0x1b1)]['send']({'eventID':_0x5e604e[_0x3ae90f(0x18f)],'data':{'unitID':this[_0x3ae90f(0x1e7)],'operations':{[_0x3ae847['id']]:{'id':_0x3ae847['id'],'params':JSON['stringify'](_0x3ae847['params'])}}}},this[_0x3ae90f(0x1e7)]));}['_stopPresenting'](){const _0x17d115=_0x5210d7;var _0x3b1f52;this[_0x17d115(0x1d0)][_0x17d115(0x157)](_0x17d115(0x1c7)),(_0x3b1f52=this[_0x17d115(0x1a2)])==null||_0x3b1f52['dispose'](),this[_0x17d115(0x1a2)]=null;}[_0x5210d7(0x196)](){const _0x36d722=_0x5210d7;var _0x573fc7;(_0x573fc7=this[_0x36d722(0x1a2)])==null||_0x573fc7[_0x36d722(0x1a0)](),this[_0x36d722(0x1d0)][_0x36d722(0x157)]('following');}[_0x5210d7(0x14f)](){const _0xa84b2e=_0x5210d7;var _0xaed6c3;this[_0xa84b2e(0x1d0)][_0xa84b2e(0x157)](_0xa84b2e(0x1c7)),(_0xaed6c3=this[_0xa84b2e(0x1a2)])==null||_0xaed6c3[_0xa84b2e(0x1a0)](),this['_commandDisposable']=null;}[_0x5210d7(0x1ac)](){const _0x4d0656=_0x5210d7;var _0x11030d;this[_0x4d0656(0x1d0)][_0x4d0656(0x157)](_0x4d0656(0x1c1)),(_0x11030d=this[_0x4d0656(0x1a2)])==null||_0x11030d[_0x4d0656(0x1a0)]();}[_0x5210d7(0x192)](_0xa342e2){const _0x47d298=_0x5210d7;if([_0x47d298(0x182),_0x47d298(0x1c1),_0x47d298(0x1cd)][_0x47d298(0x1c9)](this['_status'])||!_0xa342e2[_0x47d298(0x1d9)][_0x47d298(0x1a3)]||_0xa342e2[_0x47d298(0x1d9)][_0x47d298(0x1a3)]===this[_0x47d298(0x1b1)][_0x47d298(0x1bc)]())return;this[_0x47d298(0x16f)]===_0x47d298(0x1c7)&&this[_0x47d298(0x196)]();const _0x5de792=_0xa342e2[_0x47d298(0x1d9)][_0x47d298(0x1a8)];Object['values'](_0x5de792)[_0x47d298(0x19c)](_0x2ea470=>{const _0x3e1256=_0x47d298;this[_0x3e1256(0x16b)][_0x3e1256(0x1d5)](_0x2ea470['id'],_0x2ea470['params']?JSON[_0x3e1256(0x1aa)](_0x2ea470[_0x3e1256(0x166)]):null,{'fromCollab':!0x0});});}[_0x5210d7(0x14e)](){const _0x443716=_0x5210d7;var _0x24eae3;this[_0x443716(0x1d0)][_0x443716(0x157)](_0x443716(0x1cd)),(_0x24eae3=this[_0x443716(0x1a2)])==null||_0x24eae3[_0x443716(0x1a0)]();}[_0x5210d7(0x165)](){const _0x9adfe9=_0x5210d7;this[_0x9adfe9(0x1d0)]['next'](_0x9adfe9(0x1c7)),this[_0x9adfe9(0x181)]();}};N=Y([_(0x2,_0xf5ea42),_(0x3,_0x3d8a6b(L)),_(0x4,_0x2fcda2)],N);function Le(){const _0x18c973=_0x5210d7,_0x2bd67a=_0x1c1e9a(S),_0x3d6870=_0x1c1e9a(_0x37531b),_0x5f2adf=_0x274db0(()=>_0x3d6870[_0x18c973(0x1d6)](_0x50febc[_0x18c973(0x153)]),void 0x0,!0x1,[]),[_0x1714ae,_0xf4c7d7]=_0x25d888(null),[_0x56df23,_0x21a9a8]=_0x25d888(c[_0x18c973(0x16c)]),_0x30f507=_0x374c97(null);return _0x371e51(()=>(_0x5f2adf&&_0x2bd67a[_0x18c973(0x151)](_0x5f2adf[_0x18c973(0x1d7)]())[_0x18c973(0x168)](_0x33a4e3=>{const _0x452396=_0x18c973;_0xf4c7d7(_0x33a4e3),_0x30f507[_0x452396(0x19e)]=_0x33a4e3[_0x452396(0x158)][_0x452396(0x1a7)](_0x118b82=>{_0x21a9a8(_0x118b82);});}),()=>{const _0x50a3e6=_0x18c973;var _0x49ef30;(_0x49ef30=_0x30f507[_0x50a3e6(0x19e)])==null||_0x49ef30[_0x50a3e6(0x178)](),_0x30f507[_0x50a3e6(0x19e)]=null;}),[_0x5f2adf,_0x2bd67a]),_0x1714ae?_0x3c9609(_0x2922dc,{'align':_0x18c973(0x150),'disabled':_0x56df23===c['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x3c9609(Re,{'status':_0x56df23,'coordinator':_0x1714ae}),'children':_0x3c9609(_0x18c973(0x190),{'className':_0x531909(_0x18c973(0x1d1),{'univer-cursor-not-allowed':_0x56df23===c[_0x18c973(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56df23!==c[_0x18c973(0x1bb)]}),'type':_0x18c973(0x190),'children':_0x3c9609(W,{'className':_0x18c973(0x1d3)})})}):null;}function Re(_0x1ddfc8){const _0x26cbc6=_0x5210d7,{status:_0x2a2bac,coordinator:_0xf50fe7}=_0x1ddfc8;switch(_0x2a2bac){case c[_0x26cbc6(0x16c)]:return _0x3c9609($e,{'coordinator':_0xf50fe7});case c[_0x26cbc6(0x195)]:return _0x3c9609(xe,{'coordinator':_0xf50fe7});case c['NOT_FOLLOWING']:return _0x3c9609(Pe,{'coordinator':_0xf50fe7});case c[_0x26cbc6(0x1bb)]:return _0x3c9609(Te,{});case c[_0x26cbc6(0x19b)]:return _0x3c9609(Ae,{'coordinator':_0xf50fe7});default:return null;}}function $e(_0x15af16){const _0x11277f=_0x5210d7,{coordinator:_0x439776}=_0x15af16;return _0x586ffe(_0x23c578,{'children':[_0x3c9609(_0x11277f(0x154),{'className':_0x11277f(0x179),'children':_0x11277f(0x17b)}),_0x3c9609(_0x36de3c,{'onClick':()=>_0x439776[_0x11277f(0x1ec)](),'children':'Start'})]});}function xe(_0x2661e3){const _0x13c560=_0x5210d7,{coordinator:_0x533556}=_0x2661e3;return _0x586ffe(_0x23c578,{'children':[_0x3c9609('div',{'className':_0x13c560(0x179),'children':_0x13c560(0x19d)}),_0x3c9609(_0x36de3c,{'onClick':()=>_0x533556['stopFollowing'](),'children':_0x13c560(0x1b2)})]});}function Pe(_0x3e3bff){const _0x550eed=_0x5210d7,{coordinator:_0x2afc3}=_0x3e3bff;return _0x586ffe(_0x23c578,{'children':[_0x3c9609(_0x550eed(0x154),{'className':_0x550eed(0x179),'children':_0x550eed(0x1b6)}),_0x3c9609(_0x36de3c,{'variant':_0x550eed(0x184),'onClick':()=>_0x2afc3[_0x550eed(0x189)](),'children':'Start\x20following'})]});}function Ae(_0x48d57e){const _0x21557a=_0x5210d7,{coordinator:_0x4aaefa}=_0x48d57e;return _0x586ffe(_0x23c578,{'children':[_0x3c9609(_0x21557a(0x154),{'className':_0x21557a(0x179),'children':_0x21557a(0x156)}),_0x3c9609(_0x36de3c,{'variant':_0x21557a(0x1f2),'onClick':()=>_0x4aaefa[_0x21557a(0x1af)](),'children':'Stop\x20presenting'})]});}function Te(){return _0x3c9609(_0x23c578,{'children':'You\x27are\x20offline.'});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x1be718,_0x26cc99,_0x366165,_0x5de449)=>{const _0x1edc65=_0x5210d7;for(var _0x5d43d1=_0x5de449>0x1?void 0x0:_0x5de449?Fe(_0x26cc99,_0x366165):_0x26cc99,_0x728837=_0x1be718[_0x1edc65(0x186)]-0x1,_0x4777bb;_0x728837>=0x0;_0x728837--)(_0x4777bb=_0x1be718[_0x728837])&&(_0x5d43d1=_0x4777bb(_0x5d43d1)||_0x5d43d1);return _0x5d43d1;},A=(_0x5bbb00,_0x4cc75a)=>(_0xcdd063,_0x143f0b)=>_0x4cc75a(_0xcdd063,_0x143f0b,_0x5bbb00);let m=class extends _0x26ec19{constructor(_0x57fd07,_0x48fd58){const _0x286649=_0x5210d7;super(),this[_0x286649(0x15c)]=_0x57fd07,this['_uiPartsService']=_0x48fd58,this[_0x286649(0x1d2)]();}[_0x5210d7(0x1d2)](){const _0x1cad6a=_0x5210d7;this[_0x1cad6a(0x19a)](this[_0x1cad6a(0x175)][_0x1cad6a(0x1f3)](_0x35793d[_0x1cad6a(0x1bd)],()=>_0x28c316(Le,this[_0x1cad6a(0x15c)])));}};m=He([A(0x0,_0x3d8a6b(_0x4b36e6)),A(0x1,_0x412319)],m);const ye=_0x5210d7(0x1a1),T={};var Ue=Object[_0x5210d7(0x155)],Ve=(_0x4c2b20,_0x1aa745,_0x350b68,_0x47fa59)=>{for(var _0x5e2cfd=_0x47fa59>0x1?void 0x0:_0x47fa59?Ue(_0x1aa745,_0x350b68):_0x1aa745,_0x3a17b9=_0x4c2b20['length']-0x1,_0x2a1a26;_0x3a17b9>=0x0;_0x3a17b9--)(_0x2a1a26=_0x4c2b20[_0x3a17b9])&&(_0x5e2cfd=_0x2a1a26(_0x5e2cfd)||_0x5e2cfd);return _0x5e2cfd;},je=(_0x18f727,_0x1fa658)=>(_0x2e118a,_0x58222a)=>_0x1fa658(_0x2e118a,_0x58222a,_0x18f727);function _0x381b(){const _0xcd139=['use','event$','stopPresenting','ONLINE','_collabSession','Stop\x20following','stopFollowing','get','symbol','You\x27re\x20not\x20following\x20the\x20presenter','map','string','displayName','mutations','OFFLINE','getMemberID','HEADER_MENU','add','_collabSessionService','3VHRaZO','not-following','582022NlbrVc','toString','dispose$','_liveShareService','setConfig','idle','colorChannel1','includes','clear','following','_config','offline','complete','getTypeOfUnitAdded$','_status$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_mountLiveShare','univer-size-4','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','executeCommand','getCurrentTypeOfUnit$','getUnitId','_handleNewHost','data','asObservable','8UhTOul','delete','pipe','children','init','3832998uMiXvr','onStarting','_startLiveShareCoordinator','send','path','_stopPresenting','attrs','_unitID','override','mask','onCommandExecuted','createInstance','tryStartPresenting','125004cEsWNO','replace','2fiVpFS','random','_sharedOperations','default','registerComponent','trim','onRendered','NOT_FOLLOWING','_reporters','3355jiCxQH','88968dRtRpV','currentColor','_handleOffline','_beIdle','end','getLiveShareCoordinator','registerInitialStateReporter','UNIVER_SHEET','div','getOwnPropertyDescriptor','You\x27re\x20presenting\x20the\x20document','next','status$','99114YnkSOo','getInitialStates','5edDPKS','_injector','sessionStatus$','entries','idSuffix','none','evenodd','_init','from','getStatus','_handleOnline','params','_handleNewChangeSets','then','univerjs-icon\x20univerjs-icon-','xlink:href','_commandService','IDLE','set','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','_status','getLiveShareCoordinatorSync','_handleTerminate','defs','3552xcYFUz','LiveShareIcon','_uiPartsService','UNIVER_UNKNOWN','live-share-icon','unsubscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','stringify','Present\x20this\x20document','find','_configService','1em','_entities','reverse','_fetchOperations','presenting','registerSharedOperation','text','UNIVER_LIVE_SHARE_PLUGIN','length','getValue','1903010nvMZvK','startFollowing','unitId','url(#$1','sheet','_presenter','type','LIVESHARE_OPERATION','button','9jaqeRT','_handleOperation','LIVESHARE_REQUEST_HOST','LIVESHARE_TERMINATE','FOLLOWING','_startFollowing','fill','tag','has','disposeWithMe','PRESENTING','forEach','You\x27re\x20following\x20the\x20presenter','current','shouldShareOperation','dispose','live-share.config','_commandDisposable','presenter','_startPresenting','0\x200\x2017\x2017','defIds','subscribe','operations','UniverIcon','parse','_univerInstanceService','_stopFollowing'];_0x381b=function(){return _0xcd139;};return _0x381b();}let I=class extends _0x26ec19{constructor(_0x5bad3f){const _0x5565a7=_0x5210d7;super(),this['_liveShareService']=_0x5bad3f,this[_0x5565a7(0x162)]();}[_0x5210d7(0x162)](){[_0x196e1f['id'],_0x23af8d['id'],_0x205ccb['id']]['forEach'](_0x48d12f=>{const _0x22dd88=_0x243a;this[_0x22dd88(0x19a)](this[_0x22dd88(0x1c5)][_0x22dd88(0x183)](_0x48d12f));});}};I=Ve([je(0x0,_0x3d8a6b(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x25e61b,_0x5a950c,_0x1a969b)=>_0x5a950c in _0x25e61b?Me(_0x25e61b,_0x5a950c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a969b}):_0x25e61b[_0x5a950c]=_0x1a969b,We=(_0x23fb47,_0x530363,_0x396b18,_0x39f078)=>{const _0x7fbc35=_0x5210d7;for(var _0x5a2dc3=_0x39f078>0x1?void 0x0:_0x39f078?ke(_0x530363,_0x396b18):_0x530363,_0xc3912c=_0x23fb47[_0x7fbc35(0x186)]-0x1,_0x4f7229;_0xc3912c>=0x0;_0xc3912c--)(_0x4f7229=_0x23fb47[_0xc3912c])&&(_0x5a2dc3=_0x4f7229(_0x5a2dc3)||_0x5a2dc3);return _0x5a2dc3;},F=(_0x33a14e,_0x3c5f0c)=>(_0x30e37a,_0x26c1ed)=>_0x3c5f0c(_0x30e37a,_0x26c1ed,_0x33a14e),B=(_0x25cb05,_0x4b9069,_0x17b1c1)=>Ge(_0x25cb05,typeof _0x4b9069!=_0x5210d7(0x1b5)?_0x4b9069+'':_0x4b9069,_0x17b1c1);const Ye=_0x5210d7(0x185);let b=class extends _0x549e68{constructor(_0x1b17e6=T,_0x2854e8,_0x3aeeba){const _0x38f31d=_0x5210d7;super(),this['_config']=_0x1b17e6,this[_0x38f31d(0x15c)]=_0x2854e8,this[_0x38f31d(0x17d)]=_0x3aeeba;const {..._0x5e252c}=_0x1c7e83({},T,this['_config']);this[_0x38f31d(0x17d)][_0x38f31d(0x1c6)](ye,_0x5e252c);}[_0x5210d7(0x1e1)](){const _0x3db5f5=_0x5210d7;_0x305e89(this[_0x3db5f5(0x15c)],_0x2c31e8([[L],[S],[I],[m]],this[_0x3db5f5(0x1cc)][_0x3db5f5(0x1e8)])),_0x222335(this[_0x3db5f5(0x15c)],[[I]]);}[_0x5210d7(0x1f5)](){_0x222335(this['_injector'],[[m]]);}};function _0x243a(_0x3236a3,_0x154c21){const _0x381b9f=_0x381b();return _0x243a=function(_0x243aad,_0x178ab9){_0x243aad=_0x243aad-0x14a;let _0x220098=_0x381b9f[_0x243aad];return _0x220098;},_0x243a(_0x3236a3,_0x154c21);}B(b,_0x5210d7(0x18e),_0x50febc[_0x5210d7(0x176)]),B(b,'pluginName',Ye),b=We([_0x1ec694(_0x302e04),F(0x1,_0x3d8a6b(_0x4b36e6)),F(0x2,_0xf5ea42)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2e7f(_0xf3a8a9,_0x570afe){const _0x54575a=_0x5457();return _0x2e7f=function(_0x2e7fd4,_0x9ae2f1){_0x2e7fd4=_0x2e7fd4-0x171;let _0x4b8bda=_0x54575a[_0x2e7fd4];return _0x4b8bda;},_0x2e7f(_0xf3a8a9,_0x570afe);}const _0x1d78da=_0x2e7f;(function(_0x5eb321,_0x342f46){const _0x5ab1cc=_0x2e7f,_0x1e2334=_0x5eb321();while(!![]){try{const _0x4a6072=parseInt(_0x5ab1cc(0x18c))/0x1+parseInt(_0x5ab1cc(0x17c))/0x2*(-parseInt(_0x5ab1cc(0x179))/0x3)+parseInt(_0x5ab1cc(0x178))/0x4+parseInt(_0x5ab1cc(0x181))/0x5*(-parseInt(_0x5ab1cc(0x189))/0x6)+parseInt(_0x5ab1cc(0x177))/0x7*(-parseInt(_0x5ab1cc(0x17a))/0x8)+-parseInt(_0x5ab1cc(0x182))/0x9+parseInt(_0x5ab1cc(0x187))/0xa;if(_0x4a6072===_0x342f46)break;else _0x1e2334['push'](_0x1e2334['shift']());}catch(_0x37da52){_0x1e2334['push'](_0x1e2334['shift']());}}}(_0x5457,0xacc9e));import{LiveShareController as _0x557121,LiveShareStatus as _0x186ca3}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4e997e}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x58c1c6}from'@univerjs/sheets';import{SetScrollOperation as _0x537632}from'@univerjs/sheets-ui';import{FRange as _0x13dbde}from'@univerjs/sheets/facade';function _0x5457(){const _0x49eb26=['839496UkBBtY','19590TlhfNw','760ewdkLt','LiveShareStatusEnum','16xXdVdn','getLiveShareCoordinatorSync','extend','stopPresenting','getId','5MQnnAd','7679709fNvcZz','stopFollowing','getStatus','PRESENTING','getUnitId','22780960SWWuBX','_injector','5269242frXDdF','get','startFollowing','246435Jfijmi','tryStartPresenting','_commandService','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareStatus','getActiveWorkbook','getActiveSheet','No\x20active\x20workbook\x20found.','getSheetId','17899Yatawa'];_0x5457=function(){return _0x49eb26;};return _0x5457();}import{FUniver as _0x3032a4,FEnum as _0x599bcb}from'@univerjs/core/facade';class I extends _0x13dbde{['_initialize'](_0x37f523,_0x14587d,_0x558071,_0x5f0db6,_0x4d6813){const _0x552491=_0x2e7f,_0x3846b5=_0x37f523[_0x552491(0x18a)](_0x557121),_0x3cc487=_0x37f523[_0x552491(0x18a)](_0x4e997e),_0x5aaff4=_0x14587d['getUnitId'](),_0xca4291=_0x14587d[_0x552491(0x174)](),_0xb89acc=_0x3846b5['getLiveShareCoordinatorSync'](_0x5aaff4);(_0xb89acc==null?void 0x0:_0xb89acc[_0x552491(0x184)]())!==_0x186ca3[_0x552491(0x185)]||(_0x558071[_0x552491(0x176)]()!==_0xca4291[_0x552491(0x176)]()&&this[_0x552491(0x18e)]['executeCommand'](_0x58c1c6['id'],{'unitId':_0x5aaff4,'subUnitId':_0x558071[_0x552491(0x176)]()}),!_0x3cc487['getRenderById'](_0x5aaff4))||_0x4d6813['syncExecuteCommand'](_0x537632['id'],{'unitId':_0x14587d[_0x552491(0x186)](),'sheetId':_0x558071[_0x552491(0x176)](),'sheetViewStartRow':_0x5f0db6['startRow'],'sheetViewStartColumn':_0x5f0db6['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x13dbde[_0x1d78da(0x17e)](I);class m extends _0x3032a4{[_0x1d78da(0x172)](){const _0x57ce47=_0x1d78da;var _0x48884b,_0x34e7a2;const _0x2dfbee=this[_0x57ce47(0x188)]['get'](_0x557121),_0x55c9da=(_0x48884b=this['getActiveWorkbook']())==null?void 0x0:_0x48884b[_0x57ce47(0x180)]();if(!_0x55c9da)throw new Error('No\x20active\x20workbook\x20found.');const _0x3fe114=_0x2dfbee[_0x57ce47(0x17d)](_0x55c9da);return(_0x34e7a2=_0x3fe114==null?void 0x0:_0x3fe114[_0x57ce47(0x184)]())!=null?_0x34e7a2:_0x186ca3['IDLE'];}[_0x1d78da(0x18b)](){const _0x51eaac=_0x1d78da;var _0x3146f2;const _0x14e1d5=this[_0x51eaac(0x188)][_0x51eaac(0x18a)](_0x557121),_0x550242=(_0x3146f2=this[_0x51eaac(0x173)]())==null?void 0x0:_0x3146f2[_0x51eaac(0x180)]();if(!_0x550242)throw new Error(_0x51eaac(0x175));const _0x25e62b=_0x14e1d5[_0x51eaac(0x17d)](_0x550242);if(!_0x25e62b)throw new Error(_0x51eaac(0x171));_0x25e62b[_0x51eaac(0x18b)]();}[_0x1d78da(0x183)](){const _0x42a3b2=_0x1d78da;var _0x114e7c;const _0x5247bb=this[_0x42a3b2(0x188)][_0x42a3b2(0x18a)](_0x557121),_0x50d7e=(_0x114e7c=this[_0x42a3b2(0x173)]())==null?void 0x0:_0x114e7c[_0x42a3b2(0x180)]();if(!_0x50d7e)throw new Error(_0x42a3b2(0x175));const _0x3bcfba=_0x5247bb[_0x42a3b2(0x17d)](_0x50d7e);if(!_0x3bcfba)throw new Error(_0x42a3b2(0x171));_0x3bcfba[_0x42a3b2(0x183)]();}['startPresenting'](){const _0x5a0d37=_0x1d78da;var _0xb52b95;const _0x3e2378=this[_0x5a0d37(0x188)][_0x5a0d37(0x18a)](_0x557121),_0x31c130=(_0xb52b95=this['getActiveWorkbook']())==null?void 0x0:_0xb52b95['getId']();if(!_0x31c130)throw new Error(_0x5a0d37(0x175));const _0x4954a1=_0x3e2378['getLiveShareCoordinatorSync'](_0x31c130);if(!_0x4954a1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4954a1[_0x5a0d37(0x18d)]();}[_0x1d78da(0x17f)](){const _0x1f1211=_0x1d78da;var _0x390e21;const _0x418160=this[_0x1f1211(0x188)][_0x1f1211(0x18a)](_0x557121),_0x57902a=(_0x390e21=this[_0x1f1211(0x173)]())==null?void 0x0:_0x390e21[_0x1f1211(0x180)]();if(!_0x57902a)throw new Error(_0x1f1211(0x175));const _0x3ad542=_0x418160[_0x1f1211(0x17d)](_0x57902a);if(!_0x3ad542)throw new Error(_0x1f1211(0x171));_0x3ad542[_0x1f1211(0x17f)]();}}_0x3032a4[_0x1d78da(0x17e)](m);class C extends _0x599bcb{get[_0x1d78da(0x17b)](){return _0x186ca3;}}_0x599bcb['extend'](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3f8b8a=_0x5e6b;(function(_0x1b2469,_0x5d2d34){const _0x45631d=_0x5e6b,_0x4d58cd=_0x1b2469();while(!![]){try{const _0x15f162=parseInt(_0x45631d(0x139))/0x1+-parseInt(_0x45631d(0x12c))/0x2*(parseInt(_0x45631d(0x1b4))/0x3)+-parseInt(_0x45631d(0x1a3))/0x4+parseInt(_0x45631d(0x18f))/0x5+-parseInt(_0x45631d(0x122))/0x6+-parseInt(_0x45631d(0x1a4))/0x7*(-parseInt(_0x45631d(0x11c))/0x8)+parseInt(_0x45631d(0x191))/0x9*(-parseInt(_0x45631d(0x14f))/0xa);if(_0x15f162===_0x5d2d34)break;else _0x4d58cd['push'](_0x4d58cd['shift']());}catch(_0x570847){_0x4d58cd['push'](_0x4d58cd['shift']());}}}(_0x5073,0xab4ed));function _0x5073(){const _0x79eb11=['stopPresenting','_commandDisposable','getStatus','text','_univerInstanceService','registerInitialStateReporter','div','asObservable','_collabSession','513796BAxTUj','8281679nNlQRM','following','_reporters','reverse','LIVESHARE_REQUEST_HOST','_entities','tryStartPresenting','univer-size-4','add','registerComponent','colorChannel1','shouldShareOperation','LiveShareIcon','OFFLINE','random','has','617649PHsLbu','requireSession','_stopFollowing','setConfig','FOLLOWING','entries','_sharedOperations','LIVESHARE_TERMINATE','override','tag','not-following','status$','_status$','from','live-share-icon','8sAeACW','_presenter','Stop\x20presenting','includes','evenodd','defineProperty','2057844RdYmHJ','_startFollowing','_handleTerminate','UniverIcon','getInitialStates','onCommandExecuted','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','PRESENTING','set','presenter','2kQrUno','svg','IDLE','_config','onRendered','NOT_FOLLOWING','dispose','values','mask','unitId','length','sheet','You\x27re\x20following\x20the\x20presenter','342755jKOFdz','_init','getOwnPropertyDescriptor','idSuffix','LIVESHARE_NEW_HOST','registerSharedOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','operations','_startPresenting','Start\x20following','LIVESHARE_OPERATION','clear','unsubscribe','mutations','data','send','_unitID','toString','init','delete','_handleOnline','children','11265690ygLByx','_handleNewHost','forEach','end','default','SAME_OPERATION_SHARE_INTERVAL','defIds','getLiveShareCoordinator','_configService','_uiPartsService','complete','next','presenting','current','get','NEW_CHANGESETS','xlink:href','then','event$','_handleNewChangeSets','none','string','_stopPresenting','replace','_handleOffline','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','subscribe','stringify','_beIdle','getTypeOfUnitAdded$','_liveShareService','assign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','path','_startLiveShareCoordinator','getUnitId','attrs','map','use','getTypeOfUnitDisposed$','_commandService','Stop\x20following','_fetchOperations','substring','createInstance','offline','_status','HEADER_MENU','OPERATION','UNIVER_SHEET','executeCommand','trim','dispose$','sessionStatus$','displayName','0\x200\x2017\x2017','params','disposeWithMe','find','getConfig','You\x27are\x20offline.','UNIVER_LIVE_SHARE_PLUGIN','http://www.w3.org/2000/svg','You\x27re\x20presenting\x20the\x20document','4898500YXyOHH','getMemberID','9gCBIUi','button','pipe','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','_injector','onStarting','symbol','1em','idle'];_0x5073=function(){return _0x79eb11;};return _0x5073();}var J=Object['defineProperty'],K=(_0xc48790,_0xc9d9c5,_0x1af2a5)=>_0xc9d9c5 in _0xc48790?J(_0xc48790,_0xc9d9c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1af2a5}):_0xc48790[_0xc9d9c5]=_0x1af2a5,u=(_0x17643a,_0x5f06e7,_0x5dc08d)=>K(_0x17643a,typeof _0x5f06e7!=_0x3f8b8a(0x197)?_0x5f06e7+'':_0x5f06e7,_0x5dc08d);import{Disposable as _0x159720,toDisposable as _0x51d4c6,IUniverInstanceService as _0x399285,Inject as _0x5559c6,Injector as _0x195227,IConfigService as _0x5c28f1,ICommandService as _0x754535,RxDisposable as _0x16a1ae,UniverInstanceType as _0x3fe8fe,DisposableCollection as _0x434384,CommandType as _0x1fb413,DependentOn as _0x3f7112,Plugin as _0x25bb0a,merge as _0x39e1c5,registerDependencies as _0x46d24c,mergeOverrideWithDependencies as _0x7a71b0,touchDependencies as _0x4d514b}from'@univerjs/core';import{useDependency as _0x437252,useObservable as _0x420d0b,IUIPartsService as _0x32b863,BuiltInUIPart as _0x4dcc23,connectInjector as _0x54592c}from'@univerjs/ui';import{jsx as _0x2a725f,jsxs as _0x4db2bd,Fragment as _0x32f569}from'react/jsx-runtime';import{Dropdown as _0x1c024f,clsx as _0x1e4748,Button as _0x3efa6c}from'@univerjs/design';import{useRef as _0x5bdf40,createElement as _0x433fb7,forwardRef as _0x51a912,useState as _0x41412a,useEffect as _0x710f1d}from'react';import{CollaborationEvent as _0x1bfde3,parseProtocolChangeset as _0xe1444c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x76787b,SessionStatus as _0x1d2e0c,UniverCollaborationClientPlugin as _0x52b6d2}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x54e6ad,SetWorksheetActiveOperation as _0x7f48eb}from'@univerjs/sheets';import{BehaviorSubject as _0x4603a5,Subject as _0x26df35}from'rxjs';import{takeUntil as _0x75a298,throttleTime as _0x2bfc6b}from'rxjs/operators';function _0x5e6b(_0x3d7f4c,_0x14cb74){const _0x5073f8=_0x5073();return _0x5e6b=function(_0x5e6b89,_0x5e37e4){_0x5e6b89=_0x5e6b89-0x118;let _0x4ba283=_0x5073f8[_0x5e6b89];return _0x4ba283;},_0x5e6b(_0x3d7f4c,_0x14cb74);}import{SetZoomRatioOperation as _0x23298b,SetScrollOperation as _0x5acac7}from'@univerjs/sheets-ui';function k({ref:_0xe3c7c0,..._0x142e4a}){const _0x2ca499=_0x3f8b8a,{icon:_0x1d8f59,id:_0xd0ff5d,className:_0x232dc0,extend:_0x1f2413,..._0x500a00}=_0x142e4a,_0x5e65aa=('univerjs-icon\x20univerjs-icon-'+_0xd0ff5d+'\x20'+(_0x232dc0||''))[_0x2ca499(0x182)](),_0x333265=_0x5bdf40('_'+Oe());return G(_0x1d8f59,''+_0xd0ff5d,{'defIds':_0x1d8f59[_0x2ca499(0x155)],'idSuffix':_0x333265[_0x2ca499(0x15c)]},{'ref':_0xe3c7c0,'className':_0x5e65aa,..._0x500a00},_0x1f2413);}function G(_0xd39f0a,_0x3163ad,_0x493cb7,_0x3f26f8,_0x24388e){const _0x54d6d4=_0x3f8b8a;return _0x433fb7(_0xd39f0a[_0x54d6d4(0x1bd)],{'key':_0x3163ad,...be(_0xd39f0a,_0x493cb7,_0x24388e),..._0x3f26f8},(Ee(_0xd39f0a,_0x493cb7)[_0x54d6d4(0x14e)]||[])[_0x54d6d4(0x174)]((_0x3a0e71,_0x31f09c)=>G(_0x3a0e71,_0x3163ad+'-'+_0xd39f0a[_0x54d6d4(0x1bd)]+'-'+_0x31f09c,_0x493cb7,void 0x0,_0x24388e)));}function be(_0x42773d,_0x42881d,_0x4648ef){const _0x3ced73=_0x3f8b8a,_0x369ee7={..._0x42773d[_0x3ced73(0x173)]};_0x4648ef!=null&&_0x4648ef[_0x3ced73(0x1ae)]&&_0x369ee7['fill']===_0x3ced73(0x1ae)&&(_0x369ee7['fill']=_0x4648ef['colorChannel1']),_0x42773d['tag']===_0x3ced73(0x134)&&_0x369ee7['id']&&(_0x369ee7['id']=_0x369ee7['id']+_0x42881d[_0x3ced73(0x13c)]),Object['entries'](_0x369ee7)[_0x3ced73(0x151)](([_0x587907,_0x119040])=>{const _0x2cde33=_0x3ced73;_0x587907===_0x2cde33(0x134)&&typeof _0x119040==_0x2cde33(0x164)&&(_0x369ee7[_0x587907]=_0x119040['replace'](/url\(#(.*)\)/,'url(#$1'+_0x42881d[_0x2cde33(0x13c)]+')'));});const {defIds:_0x3dc9f2}=_0x42881d;return!_0x3dc9f2||_0x3dc9f2[_0x3ced73(0x136)]===0x0||(_0x42773d[_0x3ced73(0x1bd)]===_0x3ced73(0x175)&&_0x369ee7[_0x3ced73(0x15f)]&&(_0x369ee7[_0x3ced73(0x15f)]=_0x369ee7['xlink:href']+_0x42881d[_0x3ced73(0x13c)]),Object[_0x3ced73(0x1b9)](_0x369ee7)[_0x3ced73(0x151)](([_0x3c8fab,_0xb5ee25])=>{const _0x36a25a=_0x3ced73;typeof _0xb5ee25==_0x36a25a(0x164)&&(_0x369ee7[_0x3c8fab]=_0xb5ee25[_0x36a25a(0x166)](/url\(#(.*)\)/,'url(#$1'+_0x42881d[_0x36a25a(0x13c)]+')'));})),_0x369ee7;}function Ee(_0x1f5ccf,_0x5577bc){const _0x3b2b48=_0x3f8b8a;var _0x38bd2c;const {defIds:_0x4ae1fb}=_0x5577bc;return!_0x4ae1fb||_0x4ae1fb[_0x3b2b48(0x136)]===0x0?_0x1f5ccf:_0x1f5ccf[_0x3b2b48(0x1bd)]==='defs'&&((_0x38bd2c=_0x1f5ccf[_0x3b2b48(0x14e)])!=null&&_0x38bd2c['length'])?{..._0x1f5ccf,'children':_0x1f5ccf[_0x3b2b48(0x14e)][_0x3b2b48(0x174)](_0x3a763a=>typeof _0x3a763a[_0x3b2b48(0x173)]['id']=='string'&&_0x4ae1fb&&_0x4ae1fb[_0x3b2b48(0x11f)](_0x3a763a[_0x3b2b48(0x173)]['id'])?{..._0x3a763a,'attrs':{..._0x3a763a['attrs'],'id':_0x3a763a[_0x3b2b48(0x173)]['id']+_0x5577bc[_0x3b2b48(0x13c)]}}:_0x3a763a)}:_0x1f5ccf;}function Oe(){const _0x32d4f2=_0x3f8b8a;return Math[_0x32d4f2(0x1b2)]()[_0x32d4f2(0x14a)](0x24)[_0x32d4f2(0x17a)](0x2,0x8);}k[_0x3f8b8a(0x185)]=_0x3f8b8a(0x125);const we={'tag':_0x3f8b8a(0x12d),'attrs':{'xmlns':_0x3f8b8a(0x18d),'fill':_0x3f8b8a(0x163),'viewBox':_0x3f8b8a(0x186),'width':_0x3f8b8a(0x198),'height':_0x3f8b8a(0x198)},'children':[{'tag':_0x3f8b8a(0x170),'attrs':{'fill':'currentColor','d':_0x3f8b8a(0x194)}},{'tag':_0x3f8b8a(0x170),'attrs':{'fill':'currentColor','d':_0x3f8b8a(0x128),'fillRule':_0x3f8b8a(0x120),'clipRule':_0x3f8b8a(0x120)}}]},W=_0x51a912(function(_0x4760e6,_0x12fa81){const _0x8323b6=_0x3f8b8a;return _0x433fb7(k,Object[_0x8323b6(0x16e)]({},_0x4760e6,{'id':_0x8323b6(0x11b),'ref':_0x12fa81,'icon':we}));});W['displayName']=_0x3f8b8a(0x1b0);class L extends _0x159720{constructor(){const _0x57e4be=_0x3f8b8a;super(...arguments),u(this,_0x57e4be(0x1ba),new Set()),u(this,'_reporters',new Set());}[_0x3f8b8a(0x13e)](_0x4acac7){const _0x7a7ffb=_0x3f8b8a;return this[_0x7a7ffb(0x1ba)][_0x7a7ffb(0x1ac)](_0x4acac7),_0x51d4c6(()=>this[_0x7a7ffb(0x1ba)][_0x7a7ffb(0x14c)](_0x4acac7));}[_0x3f8b8a(0x19f)](_0x217eeb){const _0x15bb0d=_0x3f8b8a;return this['_reporters'][_0x15bb0d(0x1ac)](_0x217eeb),_0x51d4c6(()=>this[_0x15bb0d(0x1a6)][_0x15bb0d(0x14c)](_0x217eeb));}[_0x3f8b8a(0x1af)](_0x5f0c1e){const _0x21b2f8=_0x3f8b8a;return this['_sharedOperations'][_0x21b2f8(0x1b3)](_0x5f0c1e);}[_0x3f8b8a(0x126)](_0x28f42f){const _0x583ead=_0x3f8b8a;return Array[_0x583ead(0x11a)](this[_0x583ead(0x1a6)])[_0x583ead(0x174)](_0x47d80d=>_0x47d80d(_0x28f42f));}}var Ne=Object[_0x3f8b8a(0x13b)],Y=(_0x22d92a,_0x5baaf6,_0x1c120e,_0x2dbae1)=>{const _0x142a4a=_0x3f8b8a;for(var _0x4143e4=_0x2dbae1>0x1?void 0x0:_0x2dbae1?Ne(_0x5baaf6,_0x1c120e):_0x5baaf6,_0xd30129=_0x22d92a[_0x142a4a(0x136)]-0x1,_0x285747;_0xd30129>=0x0;_0xd30129--)(_0x285747=_0x22d92a[_0xd30129])&&(_0x4143e4=_0x285747(_0x4143e4)||_0x4143e4);return _0x4143e4;},_=(_0x1b8bf3,_0x3c5791)=>(_0x33fb27,_0x509447)=>_0x3c5791(_0x33fb27,_0x509447,_0x1b8bf3);let S=class extends _0x16a1ae{constructor(_0x3d2124,_0x1caff3,_0x177195){const _0xea2054=_0x3f8b8a;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3d2124,this[_0xea2054(0x195)]=_0x1caff3,this['_collabSessionService']=_0x177195,this[_0xea2054(0x13a)]());}async[_0x3f8b8a(0x156)](_0x18173e){const _0x39d342=_0x3f8b8a;return this[_0x39d342(0x1a9)][_0x39d342(0x1b3)](_0x18173e)||await this['_startLiveShareCoordinator'](_0x18173e),this[_0x39d342(0x1a9)][_0x39d342(0x15d)](_0x18173e);}['getLiveShareCoordinatorSync'](_0x51a436){const _0x560500=_0x3f8b8a;var _0x1eb23d;return(_0x1eb23d=this[_0x560500(0x1a9)][_0x560500(0x15d)](_0x51a436))!=null?_0x1eb23d:null;}['_init'](){const _0x5f5519=_0x3f8b8a;this['_univerInstanceService'][_0x5f5519(0x16c)](_0x3fe8fe[_0x5f5519(0x180)])[_0x5f5519(0x193)](_0x75a298(this[_0x5f5519(0x183)]))[_0x5f5519(0x169)](async _0x5e9eee=>{const _0x5be08c=_0x5f5519,_0x1061f6=_0x5e9eee['getUnitId']();this['_entities']['has'](_0x1061f6)||this[_0x5be08c(0x171)](_0x1061f6);}),this[_0x5f5519(0x19e)][_0x5f5519(0x176)](_0x3fe8fe[_0x5f5519(0x180)])[_0x5f5519(0x193)](_0x75a298(this[_0x5f5519(0x183)]))[_0x5f5519(0x169)](_0x1c9bc8=>{const _0x2bbaf6=_0x5f5519,_0x47d72a=_0x1c9bc8[_0x2bbaf6(0x172)](),_0x1a583=this['_entities'][_0x2bbaf6(0x15d)](_0x47d72a);_0x1a583==null||_0x1a583[_0x2bbaf6(0x132)]();});}async[_0x3f8b8a(0x171)](_0x2bfa87){const _0x447c7d=_0x3f8b8a,_0x50e532=await this['_collabSessionService'][_0x447c7d(0x1b5)](_0x2bfa87),_0x5f59f8=this['_injector'][_0x447c7d(0x17b)](N,_0x2bfa87,_0x50e532);return _0x5f59f8[_0x447c7d(0x14b)](),this[_0x447c7d(0x1a9)][_0x447c7d(0x12a)](_0x2bfa87,_0x5f59f8),_0x5f59f8;}};S=Y([_(0x0,_0x399285),_(0x1,_0x5559c6(_0x195227)),_(0x2,_0x5559c6(_0x76787b))],S);var c=(_0x574527=>(_0x574527['OFFLINE']='offline',_0x574527['IDLE']='idle',_0x574527['FOLLOWING']='following',_0x574527[_0x3f8b8a(0x131)]='not-following',_0x574527[_0x3f8b8a(0x129)]=_0x3f8b8a(0x15b),_0x574527))(c||{});const Ce=_0x3f8b8a(0x154),De=0xc8;let N=class extends _0x16a1ae{constructor(_0x4276f7,_0x346f6b,_0x2b6c92,_0x142612,_0xb2a889){const _0x39a6e7=_0x3f8b8a;super(),u(this,_0x39a6e7(0x119),new _0x4603a5(_0x39a6e7(0x199))),u(this,_0x39a6e7(0x118),this['_status$'][_0x39a6e7(0x1a1)]()),u(this,'_init',!0x1),u(this,_0x39a6e7(0x19b),null),u(this,_0x39a6e7(0x11d),null),(this[_0x39a6e7(0x149)]=_0x4276f7,this[_0x39a6e7(0x1a2)]=_0x346f6b,this['_configService']=_0x2b6c92,this[_0x39a6e7(0x16d)]=_0x142612,this['_commandService']=_0xb2a889);}get[_0x3f8b8a(0x17d)](){const _0x5034b4=_0x3f8b8a;return this[_0x5034b4(0x119)]['getValue']();}[_0x3f8b8a(0x132)](){const _0x3a92df=_0x3f8b8a;var _0x1e7b70;(_0x1e7b70=this[_0x3a92df(0x19b)])==null||_0x1e7b70[_0x3a92df(0x132)](),this[_0x3a92df(0x119)][_0x3a92df(0x15a)](_0x3a92df(0x199)),this[_0x3a92df(0x119)][_0x3a92df(0x159)]();}[_0x3f8b8a(0x19c)](){const _0x243205=_0x3f8b8a;return this[_0x243205(0x17d)];}[_0x3f8b8a(0x14b)](){const _0x4d9eac=_0x3f8b8a;this[_0x4d9eac(0x13a)]||(this['_init']=!0x0,this[_0x4d9eac(0x1a2)][_0x4d9eac(0x184)][_0x4d9eac(0x193)](_0x75a298(this[_0x4d9eac(0x183)]))[_0x4d9eac(0x169)](_0xed7b20=>{const _0x5c912b=_0x4d9eac;switch(_0xed7b20){case _0x1d2e0c['OFFLINE']:this[_0x5c912b(0x167)]();break;case _0x1d2e0c['ONLINE']:this[_0x5c912b(0x14d)]();break;}}),this['_collabSession'][_0x4d9eac(0x161)][_0x4d9eac(0x193)](_0x75a298(this['dispose$']))['subscribe'](_0x28f52f=>{const _0x28a030=_0x4d9eac,{eventID:_0x18df19}=_0x28f52f;switch(_0x18df19){case _0x1bfde3[_0x28a030(0x13d)]:this[_0x28a030(0x150)](_0x28f52f);break;case _0x1bfde3[_0x28a030(0x143)]:this['_handleOperation'](_0x28f52f);break;case _0x1bfde3[_0x28a030(0x1bb)]:this[_0x28a030(0x124)]();break;case _0x1bfde3[_0x28a030(0x15e)]:this[_0x28a030(0x162)](_0x28f52f);break;}}));}[_0x3f8b8a(0x1aa)](){const _0x24894a=_0x3f8b8a;this[_0x24894a(0x1a2)][_0x24894a(0x148)]({'eventID':_0x1bfde3[_0x24894a(0x1a8)],'data':{'unitID':this['_unitID'],'userID':this[_0x24894a(0x1a2)][_0x24894a(0x190)]()}},this[_0x24894a(0x149)]);}[_0x3f8b8a(0x19a)](){const _0x3c56f2=_0x3f8b8a;this[_0x3c56f2(0x17d)]==='presenting'&&(this[_0x3c56f2(0x119)]['next']('idle'),this[_0x3c56f2(0x1a2)][_0x3c56f2(0x148)]({'eventID':_0x1bfde3[_0x3c56f2(0x1bb)],'data':{'unitID':this[_0x3c56f2(0x149)]}},this[_0x3c56f2(0x149)]));}['startFollowing'](){const _0x5343ed=_0x3f8b8a;this['_status']===_0x5343ed(0x1be)&&(this['_status$']['next'](_0x5343ed(0x1a5)),this[_0x5343ed(0x123)]());}['stopFollowing'](){const _0x37e4e2=_0x3f8b8a;this[_0x37e4e2(0x17d)]==='following'&&this[_0x37e4e2(0x1b6)]();}[_0x3f8b8a(0x150)](_0x58be5a){const _0x48d6f1=_0x3f8b8a,{presenter:_0x35aeae}=_0x58be5a[_0x48d6f1(0x147)],_0x42f624=this['_collabSession'][_0x48d6f1(0x190)]();this[_0x48d6f1(0x11d)]=_0x35aeae,_0x35aeae===_0x42f624?(this[_0x48d6f1(0x1b6)](),this[_0x48d6f1(0x141)]()):this[_0x48d6f1(0x17d)]!==_0x48d6f1(0x1be)&&(this[_0x48d6f1(0x165)](),this['_startFollowing']());}[_0x3f8b8a(0x179)](){const _0x6c3b87=_0x3f8b8a,_0x56ed86={'eventID':_0x1bfde3['LIVESHARE_FETCH_OPERATIONS']};this[_0x6c3b87(0x1a2)][_0x6c3b87(0x148)](_0x56ed86,this[_0x6c3b87(0x149)]);}[_0x3f8b8a(0x124)](){const _0x2cab7b=_0x3f8b8a;this['_presenter']=null,this[_0x2cab7b(0x17d)]!=='presenting'&&this[_0x2cab7b(0x16b)]();}[_0x3f8b8a(0x162)](_0x321f12){const _0xdd36ca=_0x3f8b8a;if(this[_0xdd36ca(0x17d)]===_0xdd36ca(0x1a5)&&this[_0xdd36ca(0x11d)]===_0x321f12['data']['memberID']){const _0x2956d7=_0xe1444c(_0x321f12[_0xdd36ca(0x147)])[_0xdd36ca(0x146)][_0xdd36ca(0x1a7)]()[_0xdd36ca(0x189)](_0x4e9636=>_0x4e9636['id']===_0x54e6ad['id']);if(_0x2956d7){const _0x132c1e=_0x2956d7[_0xdd36ca(0x187)][_0xdd36ca(0x135)],_0x52ac32=_0x2956d7[_0xdd36ca(0x187)][_0xdd36ca(0x137)]['id'];setTimeout(()=>{const _0x5a91e8=_0xdd36ca;this[_0x5a91e8(0x177)][_0x5a91e8(0x181)](_0x7f48eb['id'],{'unitId':_0x132c1e,'subUnitId':_0x52ac32},{'fromCollab':!0x0});});}}}[_0x3f8b8a(0x141)](){const _0x570568=_0x3f8b8a;this[_0x570568(0x119)][_0x570568(0x15a)](_0x570568(0x15b));const _0x48df98=new Map(),_0x805d37=this[_0x570568(0x19b)]=new _0x434384();_0x805d37[_0x570568(0x1ac)](_0x51d4c6(()=>{const _0x4fab03=_0x570568;_0x48df98[_0x4fab03(0x151)](_0x1a3792=>_0x1a3792[_0x4fab03(0x159)]()),_0x48df98[_0x4fab03(0x144)]();})),_0x805d37[_0x570568(0x1ac)](this[_0x570568(0x177)][_0x570568(0x127)](_0x1ffa50=>{const _0x541913=_0x570568;var _0x380ba2;if(_0x1ffa50['type']!==_0x1fb413[_0x541913(0x17f)]||!this['_liveShareService'][_0x541913(0x1af)](_0x1ffa50['id']))return;const {id:_0x2d2022}=_0x1ffa50;let _0x4641a2;_0x48df98['has'](_0x2d2022)?_0x4641a2=_0x48df98[_0x541913(0x15d)](_0x2d2022):(_0x4641a2=new _0x26df35(),_0x48df98[_0x541913(0x12a)](_0x2d2022,_0x4641a2),_0x4641a2[_0x541913(0x193)](_0x2bfc6b((_0x380ba2=this[_0x541913(0x157)][_0x541913(0x18a)](Ce))!=null?_0x380ba2:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x541913(0x169)](_0x53e5b3=>{const _0xbd360a=_0x541913;this[_0xbd360a(0x1a2)]['send']({'eventID':_0x1bfde3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xbd360a(0x149)],'operations':{[_0x53e5b3['id']]:{'id':_0x53e5b3['id'],'params':JSON[_0xbd360a(0x16a)](_0x53e5b3[_0xbd360a(0x187)])}}}},this[_0xbd360a(0x149)]);})),_0x4641a2[_0x541913(0x15a)](_0x1ffa50);})),this[_0x570568(0x16d)][_0x570568(0x126)](this[_0x570568(0x149)])[_0x570568(0x151)](_0x32739c=>this[_0x570568(0x1a2)][_0x570568(0x148)]({'eventID':_0x1bfde3[_0x570568(0x143)],'data':{'unitID':this[_0x570568(0x149)],'operations':{[_0x32739c['id']]:{'id':_0x32739c['id'],'params':JSON[_0x570568(0x16a)](_0x32739c[_0x570568(0x187)])}}}},this['_unitID']));}[_0x3f8b8a(0x165)](){const _0x4fcc9d=_0x3f8b8a;var _0x2c9889;this['_status$'][_0x4fcc9d(0x15a)]('idle'),(_0x2c9889=this['_commandDisposable'])==null||_0x2c9889[_0x4fcc9d(0x132)](),this['_commandDisposable']=null;}[_0x3f8b8a(0x123)](){const _0x191871=_0x3f8b8a;var _0x55d507;(_0x55d507=this['_commandDisposable'])==null||_0x55d507[_0x191871(0x132)](),this[_0x191871(0x119)][_0x191871(0x15a)](_0x191871(0x1a5));}[_0x3f8b8a(0x16b)](){const _0x56a8fd=_0x3f8b8a;var _0x2f872b;this['_status$'][_0x56a8fd(0x15a)](_0x56a8fd(0x199)),(_0x2f872b=this[_0x56a8fd(0x19b)])==null||_0x2f872b['dispose'](),this['_commandDisposable']=null;}[_0x3f8b8a(0x1b6)](){const _0x59d686=_0x3f8b8a;var _0xee0c7e;this['_status$'][_0x59d686(0x15a)](_0x59d686(0x1be)),(_0xee0c7e=this[_0x59d686(0x19b)])==null||_0xee0c7e[_0x59d686(0x132)]();}['_handleOperation'](_0x1fe05f){const _0x5a8b7d=_0x3f8b8a;if([_0x5a8b7d(0x15b),_0x5a8b7d(0x1be),_0x5a8b7d(0x17c)][_0x5a8b7d(0x11f)](this[_0x5a8b7d(0x17d)])||!_0x1fe05f[_0x5a8b7d(0x147)][_0x5a8b7d(0x12b)]||_0x1fe05f['data'][_0x5a8b7d(0x12b)]===this[_0x5a8b7d(0x1a2)][_0x5a8b7d(0x190)]())return;this[_0x5a8b7d(0x17d)]==='idle'&&this[_0x5a8b7d(0x123)]();const _0x3b278=_0x1fe05f[_0x5a8b7d(0x147)][_0x5a8b7d(0x140)];Object[_0x5a8b7d(0x133)](_0x3b278)[_0x5a8b7d(0x151)](_0x1abcbe=>{const _0x14c655=_0x5a8b7d;this[_0x14c655(0x177)][_0x14c655(0x181)](_0x1abcbe['id'],_0x1abcbe[_0x14c655(0x187)]?JSON['parse'](_0x1abcbe[_0x14c655(0x187)]):null,{'fromCollab':!0x0});});}[_0x3f8b8a(0x167)](){const _0x47bc6e=_0x3f8b8a;var _0x13b4d8;this[_0x47bc6e(0x119)][_0x47bc6e(0x15a)](_0x47bc6e(0x17c)),(_0x13b4d8=this['_commandDisposable'])==null||_0x13b4d8[_0x47bc6e(0x132)]();}[_0x3f8b8a(0x14d)](){const _0x29a970=_0x3f8b8a;this[_0x29a970(0x119)]['next']('idle'),this[_0x29a970(0x179)]();}};N=Y([_(0x2,_0x5c28f1),_(0x3,_0x5559c6(L)),_(0x4,_0x754535)],N);function Le(){const _0x22584c=_0x3f8b8a,_0x5158de=_0x437252(S),_0x22ff73=_0x437252(_0x399285),_0x4fe169=_0x420d0b(()=>_0x22ff73['getCurrentTypeOfUnit$'](_0x3fe8fe['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x13918f,_0x5a27e4]=_0x41412a(null),[_0xe69d7a,_0x8f994d]=_0x41412a(c[_0x22584c(0x12e)]),_0x397bf8=_0x5bdf40(null);return _0x710f1d(()=>(_0x4fe169&&_0x5158de[_0x22584c(0x156)](_0x4fe169[_0x22584c(0x172)]())[_0x22584c(0x160)](_0x487b0c=>{const _0x3bc4df=_0x22584c;_0x5a27e4(_0x487b0c),_0x397bf8[_0x3bc4df(0x15c)]=_0x487b0c[_0x3bc4df(0x118)][_0x3bc4df(0x169)](_0x258b5b=>{_0x8f994d(_0x258b5b);});}),()=>{const _0x438cb8=_0x22584c;var _0x1f1064;(_0x1f1064=_0x397bf8[_0x438cb8(0x15c)])==null||_0x1f1064[_0x438cb8(0x145)](),_0x397bf8['current']=null;}),[_0x4fe169,_0x5158de]),_0x13918f?_0x2a725f(_0x1c024f,{'align':_0x22584c(0x152),'disabled':_0xe69d7a===c[_0x22584c(0x1b1)],'className':_0x22584c(0x168),'overlay':_0x2a725f(Re,{'status':_0xe69d7a,'coordinator':_0x13918f}),'children':_0x2a725f(_0x22584c(0x192),{'className':_0x1e4748(_0x22584c(0x16f),{'univer-cursor-not-allowed':_0xe69d7a===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xe69d7a!==c[_0x22584c(0x1b1)]}),'type':_0x22584c(0x192),'children':_0x2a725f(W,{'className':_0x22584c(0x1ab)})})}):null;}function Re(_0x338ffb){const _0x3dd1f6=_0x3f8b8a,{status:_0x55981b,coordinator:_0x2d4cf8}=_0x338ffb;switch(_0x55981b){case c['IDLE']:return _0x2a725f($e,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x1b8)]:return _0x2a725f(xe,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x131)]:return _0x2a725f(Pe,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x1b1)]:return _0x2a725f(Te,{});case c['PRESENTING']:return _0x2a725f(Ae,{'coordinator':_0x2d4cf8});default:return null;}}function $e(_0xe2c10a){const _0x42d232=_0x3f8b8a,{coordinator:_0x5432b0}=_0xe2c10a;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f('div',{'className':_0x42d232(0x13f),'children':'Present\x20this\x20document'}),_0x2a725f(_0x3efa6c,{'onClick':()=>_0x5432b0[_0x42d232(0x1aa)](),'children':'Start'})]});}function xe(_0x46d1b7){const _0x3fade4=_0x3f8b8a,{coordinator:_0x3870d3}=_0x46d1b7;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x3fade4(0x1a0),{'className':_0x3fade4(0x13f),'children':_0x3fade4(0x138)}),_0x2a725f(_0x3efa6c,{'onClick':()=>_0x3870d3['stopFollowing'](),'children':_0x3fade4(0x178)})]});}function Pe(_0x2ad8a6){const _0x1507c4=_0x3f8b8a,{coordinator:_0x15114f}=_0x2ad8a6;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x1507c4(0x1a0),{'className':_0x1507c4(0x13f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2a725f(_0x3efa6c,{'variant':_0x1507c4(0x19d),'onClick':()=>_0x15114f['startFollowing'](),'children':_0x1507c4(0x142)})]});}function Ae(_0x4d9d45){const _0x3b0c48=_0x3f8b8a,{coordinator:_0x6739dd}=_0x4d9d45;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x3b0c48(0x1a0),{'className':_0x3b0c48(0x13f),'children':_0x3b0c48(0x18e)}),_0x2a725f(_0x3efa6c,{'variant':_0x3b0c48(0x153),'onClick':()=>_0x6739dd[_0x3b0c48(0x19a)](),'children':_0x3b0c48(0x11e)})]});}function Te(){const _0x5ab2e9=_0x3f8b8a;return _0x2a725f(_0x32f569,{'children':_0x5ab2e9(0x18b)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x692b81,_0x2bd650,_0x55ecc7,_0x573e73)=>{for(var _0x265abf=_0x573e73>0x1?void 0x0:_0x573e73?Fe(_0x2bd650,_0x55ecc7):_0x2bd650,_0x9a9881=_0x692b81['length']-0x1,_0xe49475;_0x9a9881>=0x0;_0x9a9881--)(_0xe49475=_0x692b81[_0x9a9881])&&(_0x265abf=_0xe49475(_0x265abf)||_0x265abf);return _0x265abf;},A=(_0x3e8478,_0x1dc1e1)=>(_0x1d6c49,_0x43136c)=>_0x1dc1e1(_0x1d6c49,_0x43136c,_0x3e8478);let m=class extends _0x159720{constructor(_0x3b5d43,_0x5c3466){const _0x3f13f9=_0x3f8b8a;super(),this[_0x3f13f9(0x195)]=_0x3b5d43,this[_0x3f13f9(0x158)]=_0x5c3466,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x9ce3e3=_0x3f8b8a;this[_0x9ce3e3(0x188)](this[_0x9ce3e3(0x158)][_0x9ce3e3(0x1ad)](_0x4dcc23[_0x9ce3e3(0x17e)],()=>_0x54592c(Le,this[_0x9ce3e3(0x195)])));}};m=He([A(0x0,_0x5559c6(_0x195227)),A(0x1,_0x32b863)],m);const ye='live-share.config',T={};var Ue=Object[_0x3f8b8a(0x13b)],Ve=(_0x57f1cb,_0x1bff20,_0x2e21ac,_0x510d99)=>{const _0x1fc779=_0x3f8b8a;for(var _0x39b7f2=_0x510d99>0x1?void 0x0:_0x510d99?Ue(_0x1bff20,_0x2e21ac):_0x1bff20,_0x16b7ff=_0x57f1cb[_0x1fc779(0x136)]-0x1,_0x49eb70;_0x16b7ff>=0x0;_0x16b7ff--)(_0x49eb70=_0x57f1cb[_0x16b7ff])&&(_0x39b7f2=_0x49eb70(_0x39b7f2)||_0x39b7f2);return _0x39b7f2;},je=(_0xa2122c,_0x9f8f62)=>(_0x508fa7,_0x2b1df8)=>_0x9f8f62(_0x508fa7,_0x2b1df8,_0xa2122c);let I=class extends _0x159720{constructor(_0xcc460c){const _0x27f7e3=_0x3f8b8a;super(),this['_liveShareService']=_0xcc460c,this[_0x27f7e3(0x13a)]();}[_0x3f8b8a(0x13a)](){const _0x73d333=_0x3f8b8a;[_0x23298b['id'],_0x5acac7['id'],_0x7f48eb['id']][_0x73d333(0x151)](_0x475cc7=>{const _0x89d838=_0x73d333;this['disposeWithMe'](this[_0x89d838(0x16d)][_0x89d838(0x13e)](_0x475cc7));});}};I=Ve([je(0x0,_0x5559c6(L))],I);var Me=Object[_0x3f8b8a(0x121)],ke=Object[_0x3f8b8a(0x13b)],Ge=(_0x2116fc,_0xb34a52,_0x3b2d2a)=>_0xb34a52 in _0x2116fc?Me(_0x2116fc,_0xb34a52,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b2d2a}):_0x2116fc[_0xb34a52]=_0x3b2d2a,We=(_0x17513b,_0xfb1c9a,_0x4b4434,_0x41a9a5)=>{const _0x4fb515=_0x3f8b8a;for(var _0xefc1c8=_0x41a9a5>0x1?void 0x0:_0x41a9a5?ke(_0xfb1c9a,_0x4b4434):_0xfb1c9a,_0x158699=_0x17513b[_0x4fb515(0x136)]-0x1,_0x21492d;_0x158699>=0x0;_0x158699--)(_0x21492d=_0x17513b[_0x158699])&&(_0xefc1c8=_0x21492d(_0xefc1c8)||_0xefc1c8);return _0xefc1c8;},F=(_0x1e2c9c,_0x11c040)=>(_0x294155,_0x9fd399)=>_0x11c040(_0x294155,_0x9fd399,_0x1e2c9c),B=(_0x59a4a2,_0x4ef318,_0x35ae5e)=>Ge(_0x59a4a2,typeof _0x4ef318!='symbol'?_0x4ef318+'':_0x4ef318,_0x35ae5e);const Ye=_0x3f8b8a(0x18c);let b=class extends _0x25bb0a{constructor(_0x459cf0=T,_0x37b1e9,_0x52a233){const _0x556311=_0x3f8b8a;super(),this[_0x556311(0x12f)]=_0x459cf0,this[_0x556311(0x195)]=_0x37b1e9,this[_0x556311(0x157)]=_0x52a233;const {..._0x520479}=_0x39e1c5({},T,this[_0x556311(0x12f)]);this[_0x556311(0x157)][_0x556311(0x1b7)](ye,_0x520479);}[_0x3f8b8a(0x196)](){const _0x4767d2=_0x3f8b8a;_0x46d24c(this['_injector'],_0x7a71b0([[L],[S],[I],[m]],this[_0x4767d2(0x12f)][_0x4767d2(0x1bc)])),_0x4d514b(this['_injector'],[[I]]);}[_0x3f8b8a(0x130)](){const _0x30604d=_0x3f8b8a;_0x4d514b(this[_0x30604d(0x195)],[[m]]);}};B(b,'type',_0x3fe8fe['UNIVER_UNKNOWN']),B(b,'pluginName',Ye),b=We([_0x3f7112(_0x52b6d2),F(0x1,_0x5559c6(_0x195227)),F(0x2,_0x5c28f1)],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 _0x5210d7=_0x243a;(function(_0x15f47f,_0x38a4bf){const _0x24d9a3=_0x243a,_0x80a755=_0x15f47f();while(!![]){try{const _0xcfd96d=-parseInt(_0x24d9a3(0x1ef))/0x1*(-parseInt(_0x24d9a3(0x159))/0x2)+parseInt(_0x24d9a3(0x1c0))/0x3*(-parseInt(_0x24d9a3(0x14c))/0x4)+parseInt(_0x24d9a3(0x15b))/0x5*(-parseInt(_0x24d9a3(0x1ed))/0x6)+-parseInt(_0x24d9a3(0x1c2))/0x7*(-parseInt(_0x24d9a3(0x1db))/0x8)+-parseInt(_0x24d9a3(0x191))/0x9*(parseInt(_0x24d9a3(0x188))/0xa)+-parseInt(_0x24d9a3(0x14b))/0xb*(parseInt(_0x24d9a3(0x173))/0xc)+parseInt(_0x24d9a3(0x1e0))/0xd;if(_0xcfd96d===_0x38a4bf)break;else _0x80a755['push'](_0x80a755['shift']());}catch(_0xc382fe){_0x80a755['push'](_0x80a755['shift']());}}}(_0x381b,0x25769));var J=Object['defineProperty'],K=(_0x1efe56,_0x37fa3d,_0x22c01a)=>_0x37fa3d in _0x1efe56?J(_0x1efe56,_0x37fa3d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22c01a}):_0x1efe56[_0x37fa3d]=_0x22c01a,u=(_0xf3513,_0x5ca4a3,_0x4d2b0c)=>K(_0xf3513,typeof _0x5ca4a3!=_0x5210d7(0x1b5)?_0x5ca4a3+'':_0x5ca4a3,_0x4d2b0c);import{Disposable as _0x26ec19,toDisposable as _0x5d0e77,IUniverInstanceService as _0x37531b,Inject as _0x3d8a6b,Injector as _0x4b36e6,IConfigService as _0xf5ea42,ICommandService as _0x2fcda2,RxDisposable as _0x144ee0,UniverInstanceType as _0x50febc,DisposableCollection as _0x375790,CommandType as _0x1011d4,DependentOn as _0x1ec694,Plugin as _0x549e68,merge as _0x1c7e83,registerDependencies as _0x305e89,mergeOverrideWithDependencies as _0x2c31e8,touchDependencies as _0x222335}from'@univerjs/core';import{useDependency as _0x1c1e9a,useObservable as _0x274db0,IUIPartsService as _0x412319,BuiltInUIPart as _0x35793d,connectInjector as _0x28c316}from'@univerjs/ui';import{jsx as _0x3c9609,jsxs as _0x586ffe,Fragment as _0x23c578}from'react/jsx-runtime';import{Dropdown as _0x2922dc,clsx as _0x531909,Button as _0x36de3c}from'@univerjs/design';import{useRef as _0x374c97,createElement as _0x1cba6e,forwardRef as _0xd14d09,useState as _0x25d888,useEffect as _0x371e51}from'react';import{CollaborationEvent as _0x5e604e,parseProtocolChangeset as _0x574b9d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3df0fe,SessionStatus as _0x2e8789,UniverCollaborationClientPlugin as _0x302e04}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2cceb9,SetWorksheetActiveOperation as _0x205ccb}from'@univerjs/sheets';import{BehaviorSubject as _0x545a6f,Subject as _0x14dcfb}from'rxjs';import{takeUntil as _0x4b789d,throttleTime as _0x543336}from'rxjs/operators';import{SetZoomRatioOperation as _0x196e1f,SetScrollOperation as _0x23af8d}from'@univerjs/sheets-ui';function k({ref:_0x390bb6,..._0x12062e}){const _0x4cd428=_0x5210d7,{icon:_0x1a139d,id:_0x49440d,className:_0xf8f5b7,extend:_0x1a6904,..._0x586476}=_0x12062e,_0x31ba39=(_0x4cd428(0x169)+_0x49440d+'\x20'+(_0xf8f5b7||''))[_0x4cd428(0x1f4)](),_0x20f921=_0x374c97('_'+Oe());return G(_0x1a139d,''+_0x49440d,{'defIds':_0x1a139d[_0x4cd428(0x1a6)],'idSuffix':_0x20f921[_0x4cd428(0x19e)]},{'ref':_0x390bb6,'className':_0x31ba39,..._0x586476},_0x1a6904);}function G(_0x2d2f4f,_0x22d4a5,_0x382d75,_0x194976,_0x3dc485){const _0x979852=_0x5210d7;return _0x1cba6e(_0x2d2f4f[_0x979852(0x198)],{'key':_0x22d4a5,...be(_0x2d2f4f,_0x382d75,_0x3dc485),..._0x194976},(Ee(_0x2d2f4f,_0x382d75)[_0x979852(0x1de)]||[])[_0x979852(0x1b7)]((_0x561600,_0x5a4c17)=>G(_0x561600,_0x22d4a5+'-'+_0x2d2f4f[_0x979852(0x198)]+'-'+_0x5a4c17,_0x382d75,void 0x0,_0x3dc485)));}function be(_0x582291,_0x4dd843,_0x22ed7b){const _0x3e471d=_0x5210d7,_0x45347a={..._0x582291[_0x3e471d(0x1e6)]};_0x22ed7b!=null&&_0x22ed7b['colorChannel1']&&_0x45347a[_0x3e471d(0x197)]===_0x3e471d(0x1c8)&&(_0x45347a[_0x3e471d(0x197)]=_0x22ed7b[_0x3e471d(0x1c8)]),_0x582291[_0x3e471d(0x198)]===_0x3e471d(0x1e9)&&_0x45347a['id']&&(_0x45347a['id']=_0x45347a['id']+_0x4dd843[_0x3e471d(0x15f)]),Object[_0x3e471d(0x15e)](_0x45347a)[_0x3e471d(0x19c)](([_0x3fb191,_0x503399])=>{const _0x4a5232=_0x3e471d;_0x3fb191==='mask'&&typeof _0x503399==_0x4a5232(0x1b8)&&(_0x45347a[_0x3fb191]=_0x503399[_0x4a5232(0x1ee)](/url\(#(.*)\)/,_0x4a5232(0x18b)+_0x4dd843[_0x4a5232(0x15f)]+')'));});const {defIds:_0xee825a}=_0x4dd843;return!_0xee825a||_0xee825a[_0x3e471d(0x186)]===0x0||(_0x582291[_0x3e471d(0x198)]===_0x3e471d(0x1ad)&&_0x45347a[_0x3e471d(0x16a)]&&(_0x45347a[_0x3e471d(0x16a)]=_0x45347a[_0x3e471d(0x16a)]+_0x4dd843[_0x3e471d(0x15f)]),Object[_0x3e471d(0x15e)](_0x45347a)[_0x3e471d(0x19c)](([_0x4d42ea,_0x3e99e7])=>{const _0x54820a=_0x3e471d;typeof _0x3e99e7==_0x54820a(0x1b8)&&(_0x45347a[_0x4d42ea]=_0x3e99e7[_0x54820a(0x1ee)](/url\(#(.*)\)/,_0x54820a(0x18b)+_0x4dd843[_0x54820a(0x15f)]+')'));})),_0x45347a;}function Ee(_0x238eea,_0x313e6e){const _0x520dcb=_0x5210d7;var _0x5e86c6;const {defIds:_0x3f46cd}=_0x313e6e;return!_0x3f46cd||_0x3f46cd[_0x520dcb(0x186)]===0x0?_0x238eea:_0x238eea[_0x520dcb(0x198)]===_0x520dcb(0x172)&&((_0x5e86c6=_0x238eea[_0x520dcb(0x1de)])!=null&&_0x5e86c6[_0x520dcb(0x186)])?{..._0x238eea,'children':_0x238eea[_0x520dcb(0x1de)][_0x520dcb(0x1b7)](_0x276106=>typeof _0x276106[_0x520dcb(0x1e6)]['id']==_0x520dcb(0x1b8)&&_0x3f46cd&&_0x3f46cd['includes'](_0x276106[_0x520dcb(0x1e6)]['id'])?{..._0x276106,'attrs':{..._0x276106['attrs'],'id':_0x276106[_0x520dcb(0x1e6)]['id']+_0x313e6e[_0x520dcb(0x15f)]}}:_0x276106)}:_0x238eea;}function Oe(){const _0x7454f6=_0x5210d7;return Math[_0x7454f6(0x1f0)]()[_0x7454f6(0x1c3)](0x24)['substring'](0x2,0x8);}k[_0x5210d7(0x1b9)]=_0x5210d7(0x1a9);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5210d7(0x160),'viewBox':_0x5210d7(0x1a5),'width':_0x5210d7(0x17e),'height':_0x5210d7(0x17e)},'children':[{'tag':_0x5210d7(0x1e4),'attrs':{'fill':_0x5210d7(0x14d),'d':_0x5210d7(0x16e)}},{'tag':_0x5210d7(0x1e4),'attrs':{'fill':'currentColor','d':_0x5210d7(0x1d4),'fillRule':_0x5210d7(0x161),'clipRule':'evenodd'}}]},W=_0xd14d09(function(_0x4d2ab8,_0xc43756){const _0x1c32ef=_0x5210d7;return _0x1cba6e(k,Object['assign']({},_0x4d2ab8,{'id':_0x1c32ef(0x177),'ref':_0xc43756,'icon':we}));});W[_0x5210d7(0x1b9)]=_0x5210d7(0x174);class L extends _0x26ec19{constructor(){const _0x2ef29a=_0x5210d7;super(...arguments),u(this,_0x2ef29a(0x1f1),new Set()),u(this,_0x2ef29a(0x14a),new Set());}[_0x5210d7(0x183)](_0x159364){const _0x2c82d5=_0x5210d7;return this['_sharedOperations'][_0x2c82d5(0x1be)](_0x159364),_0x5d0e77(()=>this[_0x2c82d5(0x1f1)][_0x2c82d5(0x1dc)](_0x159364));}[_0x5210d7(0x152)](_0x765d19){const _0x10d592=_0x5210d7;return this[_0x10d592(0x14a)][_0x10d592(0x1be)](_0x765d19),_0x5d0e77(()=>this[_0x10d592(0x14a)][_0x10d592(0x1dc)](_0x765d19));}[_0x5210d7(0x19f)](_0x52341f){const _0x522bf0=_0x5210d7;return this[_0x522bf0(0x1f1)][_0x522bf0(0x199)](_0x52341f);}[_0x5210d7(0x15a)](_0x1d3ad3){const _0x4ca904=_0x5210d7;return Array[_0x4ca904(0x163)](this[_0x4ca904(0x14a)])[_0x4ca904(0x1b7)](_0x3d94fc=>_0x3d94fc(_0x1d3ad3));}}var Ne=Object[_0x5210d7(0x155)],Y=(_0x100c3a,_0x2f69d1,_0x4ec367,_0x53342f)=>{const _0x2215ae=_0x5210d7;for(var _0x180d20=_0x53342f>0x1?void 0x0:_0x53342f?Ne(_0x2f69d1,_0x4ec367):_0x2f69d1,_0x27b8f8=_0x100c3a[_0x2215ae(0x186)]-0x1,_0x410cc3;_0x27b8f8>=0x0;_0x27b8f8--)(_0x410cc3=_0x100c3a[_0x27b8f8])&&(_0x180d20=_0x410cc3(_0x180d20)||_0x180d20);return _0x180d20;},_=(_0x3cc0f5,_0x4e6a65)=>(_0x43926c,_0x2b5ecd)=>_0x4e6a65(_0x43926c,_0x2b5ecd,_0x3cc0f5);let S=class extends _0x144ee0{constructor(_0x404def,_0x154136,_0x34d529){const _0x31b7f6=_0x5210d7;super(),u(this,_0x31b7f6(0x17f),new Map()),(this[_0x31b7f6(0x1ab)]=_0x404def,this['_injector']=_0x154136,this[_0x31b7f6(0x1bf)]=_0x34d529,this[_0x31b7f6(0x162)]());}async[_0x5210d7(0x151)](_0x4efa50){const _0x1d91e3=_0x5210d7;return this[_0x1d91e3(0x17f)][_0x1d91e3(0x199)](_0x4efa50)||await this[_0x1d91e3(0x1e2)](_0x4efa50),this[_0x1d91e3(0x17f)][_0x1d91e3(0x1b4)](_0x4efa50);}[_0x5210d7(0x170)](_0x3e2f55){const _0x1f4b2d=_0x5210d7;var _0x426ebc;return(_0x426ebc=this[_0x1f4b2d(0x17f)]['get'](_0x3e2f55))!=null?_0x426ebc:null;}[_0x5210d7(0x162)](){const _0x36234b=_0x5210d7;this['_univerInstanceService'][_0x36234b(0x1cf)](_0x50febc[_0x36234b(0x153)])['pipe'](_0x4b789d(this[_0x36234b(0x1c4)]))[_0x36234b(0x1a7)](async _0x3196e5=>{const _0x2263f1=_0x36234b,_0x4b5954=_0x3196e5['getUnitId']();this['_entities'][_0x2263f1(0x199)](_0x4b5954)||this['_startLiveShareCoordinator'](_0x4b5954);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x50febc[_0x36234b(0x153)])[_0x36234b(0x1dd)](_0x4b789d(this[_0x36234b(0x1c4)]))[_0x36234b(0x1a7)](_0x1939ee=>{const _0x2c207c=_0x36234b,_0x40c869=_0x1939ee[_0x2c207c(0x1d7)](),_0x4d580d=this[_0x2c207c(0x17f)][_0x2c207c(0x1b4)](_0x40c869);_0x4d580d==null||_0x4d580d[_0x2c207c(0x1a0)]();});}async[_0x5210d7(0x1e2)](_0x52d7a5){const _0x48d801=_0x5210d7,_0x22798d=await this[_0x48d801(0x1bf)]['requireSession'](_0x52d7a5),_0x4832fc=this['_injector'][_0x48d801(0x1eb)](N,_0x52d7a5,_0x22798d);return _0x4832fc['init'](),this['_entities'][_0x48d801(0x16d)](_0x52d7a5,_0x4832fc),_0x4832fc;}};S=Y([_(0x0,_0x37531b),_(0x1,_0x3d8a6b(_0x4b36e6)),_(0x2,_0x3d8a6b(_0x3df0fe))],S);var c=(_0x371fb0=>(_0x371fb0[_0x5210d7(0x1bb)]=_0x5210d7(0x1cd),_0x371fb0[_0x5210d7(0x16c)]=_0x5210d7(0x1c7),_0x371fb0['FOLLOWING']=_0x5210d7(0x1cb),_0x371fb0[_0x5210d7(0x1f6)]=_0x5210d7(0x1c1),_0x371fb0[_0x5210d7(0x19b)]=_0x5210d7(0x182),_0x371fb0))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x144ee0{constructor(_0x1dac41,_0x51574d,_0x2aa659,_0x5b8dba,_0x5b62b8){const _0x557266=_0x5210d7;super(),u(this,_0x557266(0x1d0),new _0x545a6f('idle')),u(this,'status$',this['_status$'][_0x557266(0x1da)]()),u(this,_0x557266(0x162),!0x1),u(this,'_commandDisposable',null),u(this,_0x557266(0x18d),null),(this[_0x557266(0x1e7)]=_0x1dac41,this['_collabSession']=_0x51574d,this[_0x557266(0x17d)]=_0x2aa659,this[_0x557266(0x1c5)]=_0x5b8dba,this[_0x557266(0x16b)]=_0x5b62b8);}get[_0x5210d7(0x16f)](){const _0xb9ad33=_0x5210d7;return this[_0xb9ad33(0x1d0)][_0xb9ad33(0x187)]();}[_0x5210d7(0x1a0)](){const _0x24fa18=_0x5210d7;var _0x4e5434;(_0x4e5434=this[_0x24fa18(0x1a2)])==null||_0x4e5434[_0x24fa18(0x1a0)](),this[_0x24fa18(0x1d0)][_0x24fa18(0x157)](_0x24fa18(0x1c7)),this[_0x24fa18(0x1d0)]['complete']();}[_0x5210d7(0x164)](){const _0x122866=_0x5210d7;return this[_0x122866(0x16f)];}[_0x5210d7(0x1df)](){const _0x2a121d=_0x5210d7;this['_init']||(this[_0x2a121d(0x162)]=!0x0,this[_0x2a121d(0x1b1)][_0x2a121d(0x15d)]['pipe'](_0x4b789d(this[_0x2a121d(0x1c4)]))[_0x2a121d(0x1a7)](_0x16b391=>{const _0x41df21=_0x2a121d;switch(_0x16b391){case _0x2e8789[_0x41df21(0x1bb)]:this[_0x41df21(0x14e)]();break;case _0x2e8789[_0x41df21(0x1b0)]:this[_0x41df21(0x165)]();break;}}),this[_0x2a121d(0x1b1)][_0x2a121d(0x1ae)][_0x2a121d(0x1dd)](_0x4b789d(this[_0x2a121d(0x1c4)]))[_0x2a121d(0x1a7)](_0x50705d=>{const _0x542d98=_0x2a121d,{eventID:_0x1b5962}=_0x50705d;switch(_0x1b5962){case _0x5e604e['LIVESHARE_NEW_HOST']:this[_0x542d98(0x1d8)](_0x50705d);break;case _0x5e604e[_0x542d98(0x18f)]:this[_0x542d98(0x192)](_0x50705d);break;case _0x5e604e[_0x542d98(0x194)]:this[_0x542d98(0x171)]();break;case _0x5e604e['NEW_CHANGESETS']:this[_0x542d98(0x167)](_0x50705d);break;}}));}[_0x5210d7(0x1ec)](){const _0x38c293=_0x5210d7;this[_0x38c293(0x1b1)]['send']({'eventID':_0x5e604e[_0x38c293(0x193)],'data':{'unitID':this[_0x38c293(0x1e7)],'userID':this[_0x38c293(0x1b1)][_0x38c293(0x1bc)]()}},this[_0x38c293(0x1e7)]);}['stopPresenting'](){const _0xf0535b=_0x5210d7;this[_0xf0535b(0x16f)]==='presenting'&&(this[_0xf0535b(0x1d0)][_0xf0535b(0x157)]('idle'),this[_0xf0535b(0x1b1)][_0xf0535b(0x1e3)]({'eventID':_0x5e604e[_0xf0535b(0x194)],'data':{'unitID':this[_0xf0535b(0x1e7)]}},this[_0xf0535b(0x1e7)]));}[_0x5210d7(0x189)](){const _0x5e5633=_0x5210d7;this['_status']==='not-following'&&(this[_0x5e5633(0x1d0)][_0x5e5633(0x157)](_0x5e5633(0x1cb)),this[_0x5e5633(0x196)]());}[_0x5210d7(0x1b3)](){const _0x441e69=_0x5210d7;this['_status']===_0x441e69(0x1cb)&&this[_0x441e69(0x1ac)]();}[_0x5210d7(0x1d8)](_0x203791){const _0x3ba83d=_0x5210d7,{presenter:_0x150f0e}=_0x203791['data'],_0x481cd2=this[_0x3ba83d(0x1b1)][_0x3ba83d(0x1bc)]();this['_presenter']=_0x150f0e,_0x150f0e===_0x481cd2?(this[_0x3ba83d(0x1ac)](),this[_0x3ba83d(0x1a4)]()):this[_0x3ba83d(0x16f)]!==_0x3ba83d(0x1c1)&&(this[_0x3ba83d(0x1e5)](),this[_0x3ba83d(0x196)]());}['_fetchOperations'](){const _0x139322=_0x5210d7,_0x4f0cfa={'eventID':_0x5e604e['LIVESHARE_FETCH_OPERATIONS']};this[_0x139322(0x1b1)][_0x139322(0x1e3)](_0x4f0cfa,this['_unitID']);}[_0x5210d7(0x171)](){const _0x375a82=_0x5210d7;this[_0x375a82(0x18d)]=null,this[_0x375a82(0x16f)]!==_0x375a82(0x182)&&this[_0x375a82(0x14f)]();}[_0x5210d7(0x167)](_0x416f93){const _0x18d85d=_0x5210d7;if(this[_0x18d85d(0x16f)]==='following'&&this[_0x18d85d(0x18d)]===_0x416f93[_0x18d85d(0x1d9)]['memberID']){const _0x45f9a4=_0x574b9d(_0x416f93[_0x18d85d(0x1d9)])[_0x18d85d(0x1ba)][_0x18d85d(0x180)]()[_0x18d85d(0x17c)](_0x4661f0=>_0x4661f0['id']===_0x2cceb9['id']);if(_0x45f9a4){const _0x431995=_0x45f9a4[_0x18d85d(0x166)][_0x18d85d(0x18a)],_0x5c8ea5=_0x45f9a4['params'][_0x18d85d(0x18c)]['id'];setTimeout(()=>{const _0x40f736=_0x18d85d;this[_0x40f736(0x16b)][_0x40f736(0x1d5)](_0x205ccb['id'],{'unitId':_0x431995,'subUnitId':_0x5c8ea5},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x3ae90f=_0x5210d7;this[_0x3ae90f(0x1d0)][_0x3ae90f(0x157)](_0x3ae90f(0x182));const _0x1cc45b=new Map(),_0x49d326=this[_0x3ae90f(0x1a2)]=new _0x375790();_0x49d326[_0x3ae90f(0x1be)](_0x5d0e77(()=>{const _0x219700=_0x3ae90f;_0x1cc45b[_0x219700(0x19c)](_0xc65f44=>_0xc65f44[_0x219700(0x1ce)]()),_0x1cc45b[_0x219700(0x1ca)]();})),_0x49d326['add'](this[_0x3ae90f(0x16b)][_0x3ae90f(0x1ea)](_0x34162a=>{const _0x3ce83e=_0x3ae90f;var _0x290d9c;if(_0x34162a[_0x3ce83e(0x18e)]!==_0x1011d4['OPERATION']||!this[_0x3ce83e(0x1c5)][_0x3ce83e(0x19f)](_0x34162a['id']))return;const {id:_0xa629ad}=_0x34162a;let _0x4c97e8;_0x1cc45b[_0x3ce83e(0x199)](_0xa629ad)?_0x4c97e8=_0x1cc45b[_0x3ce83e(0x1b4)](_0xa629ad):(_0x4c97e8=new _0x14dcfb(),_0x1cc45b[_0x3ce83e(0x16d)](_0xa629ad,_0x4c97e8),_0x4c97e8['pipe'](_0x543336((_0x290d9c=this[_0x3ce83e(0x17d)]['getConfig'](Ce))!=null?_0x290d9c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3ce83e(0x1a7)](_0x64c933=>{const _0x1d5aa2=_0x3ce83e;this[_0x1d5aa2(0x1b1)]['send']({'eventID':_0x5e604e[_0x1d5aa2(0x18f)],'data':{'unitID':this[_0x1d5aa2(0x1e7)],'operations':{[_0x64c933['id']]:{'id':_0x64c933['id'],'params':JSON[_0x1d5aa2(0x17a)](_0x64c933[_0x1d5aa2(0x166)])}}}},this[_0x1d5aa2(0x1e7)]);})),_0x4c97e8[_0x3ce83e(0x157)](_0x34162a);})),this[_0x3ae90f(0x1c5)][_0x3ae90f(0x15a)](this[_0x3ae90f(0x1e7)])['forEach'](_0x3ae847=>this[_0x3ae90f(0x1b1)]['send']({'eventID':_0x5e604e[_0x3ae90f(0x18f)],'data':{'unitID':this[_0x3ae90f(0x1e7)],'operations':{[_0x3ae847['id']]:{'id':_0x3ae847['id'],'params':JSON['stringify'](_0x3ae847['params'])}}}},this[_0x3ae90f(0x1e7)]));}['_stopPresenting'](){const _0x17d115=_0x5210d7;var _0x3b1f52;this[_0x17d115(0x1d0)][_0x17d115(0x157)](_0x17d115(0x1c7)),(_0x3b1f52=this[_0x17d115(0x1a2)])==null||_0x3b1f52['dispose'](),this[_0x17d115(0x1a2)]=null;}[_0x5210d7(0x196)](){const _0x36d722=_0x5210d7;var _0x573fc7;(_0x573fc7=this[_0x36d722(0x1a2)])==null||_0x573fc7[_0x36d722(0x1a0)](),this[_0x36d722(0x1d0)][_0x36d722(0x157)]('following');}[_0x5210d7(0x14f)](){const _0xa84b2e=_0x5210d7;var _0xaed6c3;this[_0xa84b2e(0x1d0)][_0xa84b2e(0x157)](_0xa84b2e(0x1c7)),(_0xaed6c3=this[_0xa84b2e(0x1a2)])==null||_0xaed6c3[_0xa84b2e(0x1a0)](),this['_commandDisposable']=null;}[_0x5210d7(0x1ac)](){const _0x4d0656=_0x5210d7;var _0x11030d;this[_0x4d0656(0x1d0)][_0x4d0656(0x157)](_0x4d0656(0x1c1)),(_0x11030d=this[_0x4d0656(0x1a2)])==null||_0x11030d[_0x4d0656(0x1a0)]();}[_0x5210d7(0x192)](_0xa342e2){const _0x47d298=_0x5210d7;if([_0x47d298(0x182),_0x47d298(0x1c1),_0x47d298(0x1cd)][_0x47d298(0x1c9)](this['_status'])||!_0xa342e2[_0x47d298(0x1d9)][_0x47d298(0x1a3)]||_0xa342e2[_0x47d298(0x1d9)][_0x47d298(0x1a3)]===this[_0x47d298(0x1b1)][_0x47d298(0x1bc)]())return;this[_0x47d298(0x16f)]===_0x47d298(0x1c7)&&this[_0x47d298(0x196)]();const _0x5de792=_0xa342e2[_0x47d298(0x1d9)][_0x47d298(0x1a8)];Object['values'](_0x5de792)[_0x47d298(0x19c)](_0x2ea470=>{const _0x3e1256=_0x47d298;this[_0x3e1256(0x16b)][_0x3e1256(0x1d5)](_0x2ea470['id'],_0x2ea470['params']?JSON[_0x3e1256(0x1aa)](_0x2ea470[_0x3e1256(0x166)]):null,{'fromCollab':!0x0});});}[_0x5210d7(0x14e)](){const _0x443716=_0x5210d7;var _0x24eae3;this[_0x443716(0x1d0)][_0x443716(0x157)](_0x443716(0x1cd)),(_0x24eae3=this[_0x443716(0x1a2)])==null||_0x24eae3[_0x443716(0x1a0)]();}[_0x5210d7(0x165)](){const _0x9adfe9=_0x5210d7;this[_0x9adfe9(0x1d0)]['next'](_0x9adfe9(0x1c7)),this[_0x9adfe9(0x181)]();}};N=Y([_(0x2,_0xf5ea42),_(0x3,_0x3d8a6b(L)),_(0x4,_0x2fcda2)],N);function Le(){const _0x18c973=_0x5210d7,_0x2bd67a=_0x1c1e9a(S),_0x3d6870=_0x1c1e9a(_0x37531b),_0x5f2adf=_0x274db0(()=>_0x3d6870[_0x18c973(0x1d6)](_0x50febc[_0x18c973(0x153)]),void 0x0,!0x1,[]),[_0x1714ae,_0xf4c7d7]=_0x25d888(null),[_0x56df23,_0x21a9a8]=_0x25d888(c[_0x18c973(0x16c)]),_0x30f507=_0x374c97(null);return _0x371e51(()=>(_0x5f2adf&&_0x2bd67a[_0x18c973(0x151)](_0x5f2adf[_0x18c973(0x1d7)]())[_0x18c973(0x168)](_0x33a4e3=>{const _0x452396=_0x18c973;_0xf4c7d7(_0x33a4e3),_0x30f507[_0x452396(0x19e)]=_0x33a4e3[_0x452396(0x158)][_0x452396(0x1a7)](_0x118b82=>{_0x21a9a8(_0x118b82);});}),()=>{const _0x50a3e6=_0x18c973;var _0x49ef30;(_0x49ef30=_0x30f507[_0x50a3e6(0x19e)])==null||_0x49ef30[_0x50a3e6(0x178)](),_0x30f507[_0x50a3e6(0x19e)]=null;}),[_0x5f2adf,_0x2bd67a]),_0x1714ae?_0x3c9609(_0x2922dc,{'align':_0x18c973(0x150),'disabled':_0x56df23===c['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x3c9609(Re,{'status':_0x56df23,'coordinator':_0x1714ae}),'children':_0x3c9609(_0x18c973(0x190),{'className':_0x531909(_0x18c973(0x1d1),{'univer-cursor-not-allowed':_0x56df23===c[_0x18c973(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56df23!==c[_0x18c973(0x1bb)]}),'type':_0x18c973(0x190),'children':_0x3c9609(W,{'className':_0x18c973(0x1d3)})})}):null;}function Re(_0x1ddfc8){const _0x26cbc6=_0x5210d7,{status:_0x2a2bac,coordinator:_0xf50fe7}=_0x1ddfc8;switch(_0x2a2bac){case c[_0x26cbc6(0x16c)]:return _0x3c9609($e,{'coordinator':_0xf50fe7});case c[_0x26cbc6(0x195)]:return _0x3c9609(xe,{'coordinator':_0xf50fe7});case c['NOT_FOLLOWING']:return _0x3c9609(Pe,{'coordinator':_0xf50fe7});case c[_0x26cbc6(0x1bb)]:return _0x3c9609(Te,{});case c[_0x26cbc6(0x19b)]:return _0x3c9609(Ae,{'coordinator':_0xf50fe7});default:return null;}}function $e(_0x15af16){const _0x11277f=_0x5210d7,{coordinator:_0x439776}=_0x15af16;return _0x586ffe(_0x23c578,{'children':[_0x3c9609(_0x11277f(0x154),{'className':_0x11277f(0x179),'children':_0x11277f(0x17b)}),_0x3c9609(_0x36de3c,{'onClick':()=>_0x439776[_0x11277f(0x1ec)](),'children':'Start'})]});}function xe(_0x2661e3){const _0x13c560=_0x5210d7,{coordinator:_0x533556}=_0x2661e3;return _0x586ffe(_0x23c578,{'children':[_0x3c9609('div',{'className':_0x13c560(0x179),'children':_0x13c560(0x19d)}),_0x3c9609(_0x36de3c,{'onClick':()=>_0x533556['stopFollowing'](),'children':_0x13c560(0x1b2)})]});}function Pe(_0x3e3bff){const _0x550eed=_0x5210d7,{coordinator:_0x2afc3}=_0x3e3bff;return _0x586ffe(_0x23c578,{'children':[_0x3c9609(_0x550eed(0x154),{'className':_0x550eed(0x179),'children':_0x550eed(0x1b6)}),_0x3c9609(_0x36de3c,{'variant':_0x550eed(0x184),'onClick':()=>_0x2afc3[_0x550eed(0x189)](),'children':'Start\x20following'})]});}function Ae(_0x48d57e){const _0x21557a=_0x5210d7,{coordinator:_0x4aaefa}=_0x48d57e;return _0x586ffe(_0x23c578,{'children':[_0x3c9609(_0x21557a(0x154),{'className':_0x21557a(0x179),'children':_0x21557a(0x156)}),_0x3c9609(_0x36de3c,{'variant':_0x21557a(0x1f2),'onClick':()=>_0x4aaefa[_0x21557a(0x1af)](),'children':'Stop\x20presenting'})]});}function Te(){return _0x3c9609(_0x23c578,{'children':'You\x27are\x20offline.'});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x1be718,_0x26cc99,_0x366165,_0x5de449)=>{const _0x1edc65=_0x5210d7;for(var _0x5d43d1=_0x5de449>0x1?void 0x0:_0x5de449?Fe(_0x26cc99,_0x366165):_0x26cc99,_0x728837=_0x1be718[_0x1edc65(0x186)]-0x1,_0x4777bb;_0x728837>=0x0;_0x728837--)(_0x4777bb=_0x1be718[_0x728837])&&(_0x5d43d1=_0x4777bb(_0x5d43d1)||_0x5d43d1);return _0x5d43d1;},A=(_0x5bbb00,_0x4cc75a)=>(_0xcdd063,_0x143f0b)=>_0x4cc75a(_0xcdd063,_0x143f0b,_0x5bbb00);let m=class extends _0x26ec19{constructor(_0x57fd07,_0x48fd58){const _0x286649=_0x5210d7;super(),this[_0x286649(0x15c)]=_0x57fd07,this['_uiPartsService']=_0x48fd58,this[_0x286649(0x1d2)]();}[_0x5210d7(0x1d2)](){const _0x1cad6a=_0x5210d7;this[_0x1cad6a(0x19a)](this[_0x1cad6a(0x175)][_0x1cad6a(0x1f3)](_0x35793d[_0x1cad6a(0x1bd)],()=>_0x28c316(Le,this[_0x1cad6a(0x15c)])));}};m=He([A(0x0,_0x3d8a6b(_0x4b36e6)),A(0x1,_0x412319)],m);const ye=_0x5210d7(0x1a1),T={};var Ue=Object[_0x5210d7(0x155)],Ve=(_0x4c2b20,_0x1aa745,_0x350b68,_0x47fa59)=>{for(var _0x5e2cfd=_0x47fa59>0x1?void 0x0:_0x47fa59?Ue(_0x1aa745,_0x350b68):_0x1aa745,_0x3a17b9=_0x4c2b20['length']-0x1,_0x2a1a26;_0x3a17b9>=0x0;_0x3a17b9--)(_0x2a1a26=_0x4c2b20[_0x3a17b9])&&(_0x5e2cfd=_0x2a1a26(_0x5e2cfd)||_0x5e2cfd);return _0x5e2cfd;},je=(_0x18f727,_0x1fa658)=>(_0x2e118a,_0x58222a)=>_0x1fa658(_0x2e118a,_0x58222a,_0x18f727);function _0x381b(){const _0xcd139=['use','event$','stopPresenting','ONLINE','_collabSession','Stop\x20following','stopFollowing','get','symbol','You\x27re\x20not\x20following\x20the\x20presenter','map','string','displayName','mutations','OFFLINE','getMemberID','HEADER_MENU','add','_collabSessionService','3VHRaZO','not-following','582022NlbrVc','toString','dispose$','_liveShareService','setConfig','idle','colorChannel1','includes','clear','following','_config','offline','complete','getTypeOfUnitAdded$','_status$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_mountLiveShare','univer-size-4','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','executeCommand','getCurrentTypeOfUnit$','getUnitId','_handleNewHost','data','asObservable','8UhTOul','delete','pipe','children','init','3832998uMiXvr','onStarting','_startLiveShareCoordinator','send','path','_stopPresenting','attrs','_unitID','override','mask','onCommandExecuted','createInstance','tryStartPresenting','125004cEsWNO','replace','2fiVpFS','random','_sharedOperations','default','registerComponent','trim','onRendered','NOT_FOLLOWING','_reporters','3355jiCxQH','88968dRtRpV','currentColor','_handleOffline','_beIdle','end','getLiveShareCoordinator','registerInitialStateReporter','UNIVER_SHEET','div','getOwnPropertyDescriptor','You\x27re\x20presenting\x20the\x20document','next','status$','99114YnkSOo','getInitialStates','5edDPKS','_injector','sessionStatus$','entries','idSuffix','none','evenodd','_init','from','getStatus','_handleOnline','params','_handleNewChangeSets','then','univerjs-icon\x20univerjs-icon-','xlink:href','_commandService','IDLE','set','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','_status','getLiveShareCoordinatorSync','_handleTerminate','defs','3552xcYFUz','LiveShareIcon','_uiPartsService','UNIVER_UNKNOWN','live-share-icon','unsubscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','stringify','Present\x20this\x20document','find','_configService','1em','_entities','reverse','_fetchOperations','presenting','registerSharedOperation','text','UNIVER_LIVE_SHARE_PLUGIN','length','getValue','1903010nvMZvK','startFollowing','unitId','url(#$1','sheet','_presenter','type','LIVESHARE_OPERATION','button','9jaqeRT','_handleOperation','LIVESHARE_REQUEST_HOST','LIVESHARE_TERMINATE','FOLLOWING','_startFollowing','fill','tag','has','disposeWithMe','PRESENTING','forEach','You\x27re\x20following\x20the\x20presenter','current','shouldShareOperation','dispose','live-share.config','_commandDisposable','presenter','_startPresenting','0\x200\x2017\x2017','defIds','subscribe','operations','UniverIcon','parse','_univerInstanceService','_stopFollowing'];_0x381b=function(){return _0xcd139;};return _0x381b();}let I=class extends _0x26ec19{constructor(_0x5bad3f){const _0x5565a7=_0x5210d7;super(),this['_liveShareService']=_0x5bad3f,this[_0x5565a7(0x162)]();}[_0x5210d7(0x162)](){[_0x196e1f['id'],_0x23af8d['id'],_0x205ccb['id']]['forEach'](_0x48d12f=>{const _0x22dd88=_0x243a;this[_0x22dd88(0x19a)](this[_0x22dd88(0x1c5)][_0x22dd88(0x183)](_0x48d12f));});}};I=Ve([je(0x0,_0x3d8a6b(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x25e61b,_0x5a950c,_0x1a969b)=>_0x5a950c in _0x25e61b?Me(_0x25e61b,_0x5a950c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a969b}):_0x25e61b[_0x5a950c]=_0x1a969b,We=(_0x23fb47,_0x530363,_0x396b18,_0x39f078)=>{const _0x7fbc35=_0x5210d7;for(var _0x5a2dc3=_0x39f078>0x1?void 0x0:_0x39f078?ke(_0x530363,_0x396b18):_0x530363,_0xc3912c=_0x23fb47[_0x7fbc35(0x186)]-0x1,_0x4f7229;_0xc3912c>=0x0;_0xc3912c--)(_0x4f7229=_0x23fb47[_0xc3912c])&&(_0x5a2dc3=_0x4f7229(_0x5a2dc3)||_0x5a2dc3);return _0x5a2dc3;},F=(_0x33a14e,_0x3c5f0c)=>(_0x30e37a,_0x26c1ed)=>_0x3c5f0c(_0x30e37a,_0x26c1ed,_0x33a14e),B=(_0x25cb05,_0x4b9069,_0x17b1c1)=>Ge(_0x25cb05,typeof _0x4b9069!=_0x5210d7(0x1b5)?_0x4b9069+'':_0x4b9069,_0x17b1c1);const Ye=_0x5210d7(0x185);let b=class extends _0x549e68{constructor(_0x1b17e6=T,_0x2854e8,_0x3aeeba){const _0x38f31d=_0x5210d7;super(),this['_config']=_0x1b17e6,this[_0x38f31d(0x15c)]=_0x2854e8,this[_0x38f31d(0x17d)]=_0x3aeeba;const {..._0x5e252c}=_0x1c7e83({},T,this['_config']);this[_0x38f31d(0x17d)][_0x38f31d(0x1c6)](ye,_0x5e252c);}[_0x5210d7(0x1e1)](){const _0x3db5f5=_0x5210d7;_0x305e89(this[_0x3db5f5(0x15c)],_0x2c31e8([[L],[S],[I],[m]],this[_0x3db5f5(0x1cc)][_0x3db5f5(0x1e8)])),_0x222335(this[_0x3db5f5(0x15c)],[[I]]);}[_0x5210d7(0x1f5)](){_0x222335(this['_injector'],[[m]]);}};function _0x243a(_0x3236a3,_0x154c21){const _0x381b9f=_0x381b();return _0x243a=function(_0x243aad,_0x178ab9){_0x243aad=_0x243aad-0x14a;let _0x220098=_0x381b9f[_0x243aad];return _0x220098;},_0x243a(_0x3236a3,_0x154c21);}B(b,_0x5210d7(0x18e),_0x50febc[_0x5210d7(0x176)]),B(b,'pluginName',Ye),b=We([_0x1ec694(_0x302e04),F(0x1,_0x3d8a6b(_0x4b36e6)),F(0x2,_0xf5ea42)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x19df(_0x21c1f6,_0x4cb8af){const _0x33afa6=_0x33af();return _0x19df=function(_0x19df53,_0x114607){_0x19df53=_0x19df53-0x1e5;let _0x1445fa=_0x33afa6[_0x19df53];return _0x1445fa;},_0x19df(_0x21c1f6,_0x4cb8af);}function _0x33af(){const _0x3430e4=['FUniver','stopPresenting','LiveShareStatusEnum','20GuPDOR','FRange','IDLE','UniverSheets','getStatus','230592OEbbfE','getLiveShareStatus','object','amd','3127932XzIhGT','@univerjs/sheets-ui','FEnum','startPresenting','getSheetId','No\x20active\x20workbook\x20found.','tryStartPresenting','syncExecuteCommand','SetScrollOperation','getActiveWorkbook','195PmhBFj','getUnitId','@univerjs/core/facade','9184ySayTD','4903965ZsQtEC','get','startFollowing','5242952kOkVFw','function','startColumn','@univerjs/engine-render','UniverSheetsFacade','startRow','extend','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs-pro/live-share','_injector','SetWorksheetActiveOperation','UniverEngineRender','4255944HkcQzB','LiveShareStatus','UniverCoreFacade','@univerjs/sheets','375056lBLNrj','_initialize','stopFollowing','getId','LiveShareController','getLiveShareCoordinatorSync'];_0x33af=function(){return _0x3430e4;};return _0x33af();}(function(_0x504df0,_0x1a600f){const _0x394723=_0x19df,_0x59e943=_0x504df0();while(!![]){try{const _0x26b00e=parseInt(_0x394723(0x1fa))/0x1+-parseInt(_0x394723(0x1e6))/0x2*(-parseInt(_0x394723(0x216))/0x3)+-parseInt(_0x394723(0x20c))/0x4+parseInt(_0x394723(0x203))/0x5*(-parseInt(_0x394723(0x208))/0x6)+parseInt(_0x394723(0x1f6))/0x7+parseInt(_0x394723(0x1ea))/0x8+-parseInt(_0x394723(0x1e7))/0x9;if(_0x26b00e===_0x1a600f)break;else _0x59e943['push'](_0x59e943['shift']());}catch(_0x5511d9){_0x59e943['push'](_0x59e943['shift']());}}}(_0x33af,0x6f66d),function(_0x461e25,_0x5e2f38){const _0x13ae40=_0x19df;typeof exports==_0x13ae40(0x20a)&&typeof module<'u'?_0x5e2f38(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==_0x13ae40(0x1eb)&&define[_0x13ae40(0x20b)]?define([_0x13ae40(0x1f2),_0x13ae40(0x1ed),_0x13ae40(0x1f9),_0x13ae40(0x20d),'@univerjs/sheets/facade',_0x13ae40(0x1e5)],_0x5e2f38):(_0x461e25=typeof globalThis<'u'?globalThis:_0x461e25||self,_0x5e2f38(_0x461e25['UniverProLiveShare'],_0x461e25[_0x13ae40(0x1f5)],_0x461e25[_0x13ae40(0x206)],_0x461e25['UniverSheetsUi'],_0x461e25[_0x13ae40(0x1ee)],_0x461e25[_0x13ae40(0x1f8)]));}(this,function(_0x2e1c30,_0x5e448b,_0x1c0854,_0xa5c91b,_0x5e53a1,_0x19c280){'use strict';const _0x53d414=_0x19df;class _0x238bfc extends _0x5e53a1['FRange']{[_0x53d414(0x1fb)](_0xaa955f,_0x215256,_0x357143,_0x4d1f8d,_0x59f308){const _0x21c29=_0x53d414,_0x430be5=_0xaa955f[_0x21c29(0x1e8)](_0x2e1c30['LiveShareController']),_0x4704ff=_0xaa955f['get'](_0x5e448b['IRenderManagerService']),_0x32d962=_0x215256[_0x21c29(0x217)](),_0x2bae12=_0x215256['getActiveSheet'](),_0x407e0d=_0x430be5['getLiveShareCoordinatorSync'](_0x32d962);(_0x407e0d==null?void 0x0:_0x407e0d[_0x21c29(0x207)]())!==_0x2e1c30[_0x21c29(0x1f7)]['PRESENTING']||(_0x357143[_0x21c29(0x210)]()!==_0x2bae12[_0x21c29(0x210)]()&&this['_commandService']['executeCommand'](_0x1c0854[_0x21c29(0x1f4)]['id'],{'unitId':_0x32d962,'subUnitId':_0x357143['getSheetId']()}),!_0x4704ff['getRenderById'](_0x32d962))||_0x59f308[_0x21c29(0x213)](_0xa5c91b[_0x21c29(0x214)]['id'],{'unitId':_0x215256['getUnitId'](),'sheetId':_0x357143[_0x21c29(0x210)](),'sheetViewStartRow':_0x4d1f8d[_0x21c29(0x1ef)],'sheetViewStartColumn':_0x4d1f8d[_0x21c29(0x1ec)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5e53a1[_0x53d414(0x204)][_0x53d414(0x1f0)](_0x238bfc);class _0x291fc1 extends _0x19c280['FUniver']{[_0x53d414(0x209)](){const _0x590555=_0x53d414;var _0x1a211d,_0x48ceb7;const _0x1901ff=this[_0x590555(0x1f3)][_0x590555(0x1e8)](_0x2e1c30[_0x590555(0x1fe)]),_0x134c5c=(_0x1a211d=this[_0x590555(0x215)]())==null?void 0x0:_0x1a211d[_0x590555(0x1fd)]();if(!_0x134c5c)throw new Error('No\x20active\x20workbook\x20found.');const _0x47930a=_0x1901ff[_0x590555(0x1ff)](_0x134c5c);return(_0x48ceb7=_0x47930a==null?void 0x0:_0x47930a['getStatus']())!=null?_0x48ceb7:_0x2e1c30[_0x590555(0x1f7)][_0x590555(0x205)];}['startFollowing'](){const _0x36dc58=_0x53d414;var _0xe996a3;const _0x5b0a91=this['_injector'][_0x36dc58(0x1e8)](_0x2e1c30['LiveShareController']),_0x188b69=(_0xe996a3=this['getActiveWorkbook']())==null?void 0x0:_0xe996a3['getId']();if(!_0x188b69)throw new Error(_0x36dc58(0x211));const _0x2c6f9f=_0x5b0a91[_0x36dc58(0x1ff)](_0x188b69);if(!_0x2c6f9f)throw new Error(_0x36dc58(0x1f1));_0x2c6f9f[_0x36dc58(0x1e9)]();}[_0x53d414(0x1fc)](){const _0x4f6b0d=_0x53d414;var _0x5e1601;const _0x3085e9=this['_injector'][_0x4f6b0d(0x1e8)](_0x2e1c30[_0x4f6b0d(0x1fe)]),_0x36b797=(_0x5e1601=this['getActiveWorkbook']())==null?void 0x0:_0x5e1601[_0x4f6b0d(0x1fd)]();if(!_0x36b797)throw new Error('No\x20active\x20workbook\x20found.');const _0x1ae743=_0x3085e9[_0x4f6b0d(0x1ff)](_0x36b797);if(!_0x1ae743)throw new Error(_0x4f6b0d(0x1f1));_0x1ae743[_0x4f6b0d(0x1fc)]();}[_0x53d414(0x20f)](){const _0x387194=_0x53d414;var _0x3cc880;const _0x782215=this[_0x387194(0x1f3)][_0x387194(0x1e8)](_0x2e1c30[_0x387194(0x1fe)]),_0xe260de=(_0x3cc880=this[_0x387194(0x215)]())==null?void 0x0:_0x3cc880[_0x387194(0x1fd)]();if(!_0xe260de)throw new Error(_0x387194(0x211));const _0x5b910b=_0x782215['getLiveShareCoordinatorSync'](_0xe260de);if(!_0x5b910b)throw new Error(_0x387194(0x1f1));_0x5b910b[_0x387194(0x212)]();}[_0x53d414(0x201)](){const _0x3ef90c=_0x53d414;var _0x460b98;const _0x1f5395=this[_0x3ef90c(0x1f3)][_0x3ef90c(0x1e8)](_0x2e1c30[_0x3ef90c(0x1fe)]),_0x1abbc1=(_0x460b98=this[_0x3ef90c(0x215)]())==null?void 0x0:_0x460b98[_0x3ef90c(0x1fd)]();if(!_0x1abbc1)throw new Error(_0x3ef90c(0x211));const _0x3ffa89=_0x1f5395['getLiveShareCoordinatorSync'](_0x1abbc1);if(!_0x3ffa89)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3ffa89[_0x3ef90c(0x201)]();}}_0x19c280[_0x53d414(0x200)][_0x53d414(0x1f0)](_0x291fc1);class _0x319b88 extends _0x19c280[_0x53d414(0x20e)]{get[_0x53d414(0x202)](){return _0x2e1c30['LiveShareStatus'];}}_0x19c280[_0x53d414(0x20e)][_0x53d414(0x1f0)](_0x319b88);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xb962bd,_0x2bd50){const _0x267d88=_0x4583,_0x374add=_0xb962bd();while(!![]){try{const _0x33a28c=parseInt(_0x267d88(0x23f))/0x1+parseInt(_0x267d88(0x296))/0x2*(parseInt(_0x267d88(0x268))/0x3)+-parseInt(_0x267d88(0x2c6))/0x4*(-parseInt(_0x267d88(0x24e))/0x5)+-parseInt(_0x267d88(0x2d2))/0x6+parseInt(_0x267d88(0x2c5))/0x7+-parseInt(_0x267d88(0x1f5))/0x8*(parseInt(_0x267d88(0x1fa))/0x9)+-parseInt(_0x267d88(0x2ad))/0xa;if(_0x33a28c===_0x2bd50)break;else _0x374add['push'](_0x374add['shift']());}catch(_0x29fbfd){_0x374add['push'](_0x374add['shift']());}}}(_0x5426,0xa79a9),function(_0x3dd0fb,_0x5391d3){const _0x419c02=_0x4583;typeof exports=='object'&&typeof module<'u'?_0x5391d3(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[_0x419c02(0x22c)]?define([_0x419c02(0x237),_0x419c02(0x257),_0x419c02(0x2c7),_0x419c02(0x2c3),_0x419c02(0x29d),_0x419c02(0x232),_0x419c02(0x23b),_0x419c02(0x210),_0x419c02(0x1ff),'rxjs',_0x419c02(0x2cb),'@univerjs/sheets-ui'],_0x5391d3):(_0x3dd0fb=typeof globalThis<'u'?globalThis:_0x3dd0fb||self,_0x5391d3(_0x3dd0fb[_0x419c02(0x267)]={},_0x3dd0fb['UniverCore'],_0x3dd0fb[_0x419c02(0x2ba)],_0x3dd0fb[_0x419c02(0x27d)],_0x3dd0fb[_0x419c02(0x266)],_0x3dd0fb[_0x419c02(0x27d)],_0x3dd0fb[_0x419c02(0x20a)],_0x3dd0fb['UniverProCollaborationClient'],_0x3dd0fb[_0x419c02(0x22d)],_0x3dd0fb['rxjs'],_0x3dd0fb[_0x419c02(0x1fe)][_0x419c02(0x27f)],_0x3dd0fb[_0x419c02(0x23d)]));}(this,function(_0xb8f135,_0x160934,_0x1db1d5,_0x16f4e3,_0x53eb07,_0x51b41c,_0x23295e,_0x17209d,_0x6fcf9a,_0x11d600,_0x5d062d,_0x2529b4){'use strict';const _0x167efe=_0x4583;var _0x38eb10=Object[_0x167efe(0x2a8)],_0xbee59=(_0x25ffc9,_0x49153a,_0x216c88)=>_0x49153a in _0x25ffc9?_0x38eb10(_0x25ffc9,_0x49153a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x216c88}):_0x25ffc9[_0x49153a]=_0x216c88,_0x36bceb=(_0x4499f5,_0x54616a,_0x3c51a5)=>_0xbee59(_0x4499f5,typeof _0x54616a!=_0x167efe(0x263)?_0x54616a+'':_0x54616a,_0x3c51a5);function _0x5bc8ca({ref:_0x54fe36,..._0xde7c0c}){const _0x30443d=_0x167efe,{icon:_0x2cb312,id:_0x52451e,className:_0x3f5079,extend:_0x542210,..._0x123b8d}=_0xde7c0c,_0x58cde5=(_0x30443d(0x279)+_0x52451e+'\x20'+(_0x3f5079||''))[_0x30443d(0x208)](),_0x3dbf07=_0x51b41c[_0x30443d(0x1f7)]('_'+_0xc6ff26());return _0x9058a(_0x2cb312,''+_0x52451e,{'defIds':_0x2cb312[_0x30443d(0x22a)],'idSuffix':_0x3dbf07[_0x30443d(0x218)]},{'ref':_0x54fe36,'className':_0x58cde5,..._0x123b8d},_0x542210);}function _0x9058a(_0x3f51b0,_0x2b1dd7,_0x2aab57,_0x12d2b3,_0x9fbb3e){const _0x5c98c6=_0x167efe;return _0x51b41c[_0x5c98c6(0x2b0)](_0x3f51b0[_0x5c98c6(0x26a)],{'key':_0x2b1dd7,..._0x3e99ff(_0x3f51b0,_0x2aab57,_0x9fbb3e),..._0x12d2b3},(_0x575433(_0x3f51b0,_0x2aab57)[_0x5c98c6(0x247)]||[])[_0x5c98c6(0x2b1)]((_0x3dc36e,_0x5dc31f)=>_0x9058a(_0x3dc36e,_0x2b1dd7+'-'+_0x3f51b0[_0x5c98c6(0x26a)]+'-'+_0x5dc31f,_0x2aab57,void 0x0,_0x9fbb3e)));}function _0x3e99ff(_0x174b89,_0x2a1909,_0x15029f){const _0x3410d3=_0x167efe,_0x1a50c6={..._0x174b89['attrs']};_0x15029f!=null&&_0x15029f[_0x3410d3(0x292)]&&_0x1a50c6[_0x3410d3(0x2a4)]===_0x3410d3(0x292)&&(_0x1a50c6[_0x3410d3(0x2a4)]=_0x15029f[_0x3410d3(0x292)]),_0x174b89[_0x3410d3(0x26a)]===_0x3410d3(0x25b)&&_0x1a50c6['id']&&(_0x1a50c6['id']=_0x1a50c6['id']+_0x2a1909[_0x3410d3(0x229)]),Object['entries'](_0x1a50c6)[_0x3410d3(0x228)](([_0x479c72,_0xc74336])=>{const _0x30a152=_0x3410d3;_0x479c72===_0x30a152(0x25b)&&typeof _0xc74336=='string'&&(_0x1a50c6[_0x479c72]=_0xc74336[_0x30a152(0x24a)](/url\(#(.*)\)/,_0x30a152(0x278)+_0x2a1909['idSuffix']+')'));});const {defIds:_0x5bf202}=_0x2a1909;return!_0x5bf202||_0x5bf202['length']===0x0||(_0x174b89[_0x3410d3(0x26a)]===_0x3410d3(0x220)&&_0x1a50c6[_0x3410d3(0x222)]&&(_0x1a50c6[_0x3410d3(0x222)]=_0x1a50c6['xlink:href']+_0x2a1909[_0x3410d3(0x229)]),Object['entries'](_0x1a50c6)['forEach'](([_0x41afde,_0x43f0bf])=>{const _0x587e26=_0x3410d3;typeof _0x43f0bf==_0x587e26(0x2a9)&&(_0x1a50c6[_0x41afde]=_0x43f0bf[_0x587e26(0x24a)](/url\(#(.*)\)/,_0x587e26(0x278)+_0x2a1909[_0x587e26(0x229)]+')'));})),_0x1a50c6;}function _0x575433(_0x3efdd4,_0x271ab6){const _0x2f9f52=_0x167efe;var _0x37ab15;const {defIds:_0x40b30c}=_0x271ab6;return!_0x40b30c||_0x40b30c['length']===0x0?_0x3efdd4:_0x3efdd4[_0x2f9f52(0x26a)]===_0x2f9f52(0x2c4)&&((_0x37ab15=_0x3efdd4[_0x2f9f52(0x247)])!=null&&_0x37ab15[_0x2f9f52(0x260)])?{..._0x3efdd4,'children':_0x3efdd4['children'][_0x2f9f52(0x2b1)](_0x233b6a=>typeof _0x233b6a[_0x2f9f52(0x216)]['id']==_0x2f9f52(0x2a9)&&_0x40b30c&&_0x40b30c[_0x2f9f52(0x27a)](_0x233b6a['attrs']['id'])?{..._0x233b6a,'attrs':{..._0x233b6a['attrs'],'id':_0x233b6a[_0x2f9f52(0x216)]['id']+_0x271ab6[_0x2f9f52(0x229)]}}:_0x233b6a)}:_0x3efdd4;}function _0xc6ff26(){const _0x1405ca=_0x167efe;return Math[_0x1405ca(0x285)]()['toString'](0x24)[_0x1405ca(0x25c)](0x2,0x8);}_0x5bc8ca[_0x167efe(0x250)]='UniverIcon';const _0x4627e1={'tag':_0x167efe(0x274),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x167efe(0x2cc),'height':_0x167efe(0x2cc)},'children':[{'tag':_0x167efe(0x259),'attrs':{'fill':'currentColor','d':_0x167efe(0x2c1)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x167efe(0x217),'fillRule':_0x167efe(0x20d),'clipRule':_0x167efe(0x20d)}}]},_0x5385f1=_0x51b41c[_0x167efe(0x25f)](function(_0x5b5364,_0x1b3b5e){const _0x31c419=_0x167efe;return _0x51b41c['createElement'](_0x5bc8ca,Object[_0x31c419(0x25e)]({},_0x5b5364,{'id':'live-share-icon','ref':_0x1b3b5e,'icon':_0x4627e1}));});_0x5385f1[_0x167efe(0x250)]='LiveShareIcon';class _0x5a3069 extends _0x160934[_0x167efe(0x2d1)]{constructor(){const _0x58fcb7=_0x167efe;super(...arguments),_0x36bceb(this,_0x58fcb7(0x224),new Set()),_0x36bceb(this,_0x58fcb7(0x29e),new Set());}[_0x167efe(0x24b)](_0x496656){const _0x865f5=_0x167efe;return this[_0x865f5(0x224)][_0x865f5(0x280)](_0x496656),_0x160934[_0x865f5(0x2b5)](()=>this[_0x865f5(0x224)]['delete'](_0x496656));}[_0x167efe(0x214)](_0x4f9f36){const _0x46662e=_0x167efe;return this[_0x46662e(0x29e)][_0x46662e(0x280)](_0x4f9f36),_0x160934[_0x46662e(0x2b5)](()=>this[_0x46662e(0x29e)][_0x46662e(0x240)](_0x4f9f36));}[_0x167efe(0x24f)](_0x18c5b5){const _0x2b14a6=_0x167efe;return this[_0x2b14a6(0x224)]['has'](_0x18c5b5);}[_0x167efe(0x239)](_0x4d2bc8){const _0x4ff14d=_0x167efe;return Array[_0x4ff14d(0x28e)](this[_0x4ff14d(0x29e)])['map'](_0x493796=>_0x493796(_0x4d2bc8));}}var _0x33d1c2=Object[_0x167efe(0x1f3)],_0x32b130=(_0x399381,_0x16d8b6,_0x1f2b91,_0x2639f8)=>{const _0x418e21=_0x167efe;for(var _0x11c5ff=_0x2639f8>0x1?void 0x0:_0x2639f8?_0x33d1c2(_0x16d8b6,_0x1f2b91):_0x16d8b6,_0x1ce22a=_0x399381[_0x418e21(0x260)]-0x1,_0xe595c6;_0x1ce22a>=0x0;_0x1ce22a--)(_0xe595c6=_0x399381[_0x1ce22a])&&(_0x11c5ff=_0xe595c6(_0x11c5ff)||_0x11c5ff);return _0x11c5ff;},_0x264cc7=(_0x289bd3,_0x8d2bfa)=>(_0x3e23bd,_0x5dc105)=>_0x8d2bfa(_0x3e23bd,_0x5dc105,_0x289bd3);_0xb8f135['LiveShareController']=class extends _0x160934[_0x167efe(0x221)]{constructor(_0x31fd3c,_0x4eac40,_0xe5363f){const _0x2e2faa=_0x167efe;super(),_0x36bceb(this,_0x2e2faa(0x21a),new Map()),(this[_0x2e2faa(0x204)]=_0x31fd3c,this[_0x2e2faa(0x245)]=_0x4eac40,this['_collabSessionService']=_0xe5363f,this[_0x2e2faa(0x23a)]());}async['getLiveShareCoordinator'](_0x397127){const _0x37598c=_0x167efe;return this['_entities'][_0x37598c(0x244)](_0x397127)||await this[_0x37598c(0x21f)](_0x397127),this[_0x37598c(0x21a)][_0x37598c(0x284)](_0x397127);}['getLiveShareCoordinatorSync'](_0x165ba2){const _0x2febb0=_0x167efe;var _0x2a6058;return(_0x2a6058=this['_entities'][_0x2febb0(0x284)](_0x165ba2))!=null?_0x2a6058:null;}[_0x167efe(0x23a)](){const _0x2ef2bf=_0x167efe;this['_univerInstanceService'][_0x2ef2bf(0x251)](_0x160934[_0x2ef2bf(0x2ca)][_0x2ef2bf(0x2d0)])['pipe'](_0x5d062d[_0x2ef2bf(0x28a)](this[_0x2ef2bf(0x242)]))[_0x2ef2bf(0x283)](async _0x5097a2=>{const _0x19dfae=_0x2ef2bf,_0x2afc9a=_0x5097a2[_0x19dfae(0x1f0)]();this[_0x19dfae(0x21a)][_0x19dfae(0x244)](_0x2afc9a)||this[_0x19dfae(0x21f)](_0x2afc9a);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x160934[_0x2ef2bf(0x2ca)][_0x2ef2bf(0x2d0)])[_0x2ef2bf(0x23c)](_0x5d062d[_0x2ef2bf(0x28a)](this[_0x2ef2bf(0x242)]))['subscribe'](_0x5bf540=>{const _0x3738fa=_0x2ef2bf,_0x5d37ae=_0x5bf540[_0x3738fa(0x1f0)](),_0x49db55=this['_entities']['get'](_0x5d37ae);_0x49db55==null||_0x49db55[_0x3738fa(0x2d5)]();});}async['_startLiveShareCoordinator'](_0x131648){const _0x551f99=_0x167efe,_0x34f004=await this[_0x551f99(0x281)][_0x551f99(0x230)](_0x131648),_0x4d548d=this[_0x551f99(0x245)]['createInstance'](_0xb8f135['LiveShareCoordinator'],_0x131648,_0x34f004);return _0x4d548d['init'](),this[_0x551f99(0x21a)]['set'](_0x131648,_0x4d548d),_0x4d548d;}},_0xb8f135[_0x167efe(0x276)]=_0x32b130([_0x264cc7(0x0,_0x160934['IUniverInstanceService']),_0x264cc7(0x1,_0x160934['Inject'](_0x160934[_0x167efe(0x22b)])),_0x264cc7(0x2,_0x160934[_0x167efe(0x2bc)](_0x17209d[_0x167efe(0x288)]))],_0xb8f135['LiveShareController']);var _0x8a846a=(_0x262732=>(_0x262732['OFFLINE']='offline',_0x262732['IDLE']=_0x167efe(0x231),_0x262732[_0x167efe(0x252)]=_0x167efe(0x1fd),_0x262732['NOT_FOLLOWING']='not-following',_0x262732['PRESENTING']=_0x167efe(0x2be),_0x262732))(_0x8a846a||{});const _0x4155ca=_0x167efe(0x209),_0x29fce0=0xc8;_0xb8f135[_0x167efe(0x2cf)]=class extends _0x160934[_0x167efe(0x221)]{constructor(_0x2e5a39,_0x333ced,_0xffef99,_0x55bfdb,_0x595233){const _0x1d1da3=_0x167efe;super(),_0x36bceb(this,_0x1d1da3(0x2c2),new _0x11d600[(_0x1d1da3(0x26f))](_0x1d1da3(0x231))),_0x36bceb(this,'status$',this['_status$'][_0x1d1da3(0x286)]()),_0x36bceb(this,'_init',!0x1),_0x36bceb(this,_0x1d1da3(0x2a3),null),_0x36bceb(this,_0x1d1da3(0x21c),null),(this[_0x1d1da3(0x226)]=_0x2e5a39,this['_collabSession']=_0x333ced,this['_configService']=_0xffef99,this[_0x1d1da3(0x1fb)]=_0x55bfdb,this[_0x1d1da3(0x2a5)]=_0x595233);}get[_0x167efe(0x241)](){const _0x26e129=_0x167efe;return this[_0x26e129(0x2c2)]['getValue']();}[_0x167efe(0x2d5)](){const _0x44c404=_0x167efe;var _0x1a5cb7;(_0x1a5cb7=this[_0x44c404(0x2a3)])==null||_0x1a5cb7['dispose'](),this[_0x44c404(0x2c2)][_0x44c404(0x2b4)](_0x44c404(0x231)),this[_0x44c404(0x2c2)][_0x44c404(0x2bd)]();}[_0x167efe(0x271)](){return this['_status'];}[_0x167efe(0x236)](){const _0x275967=_0x167efe;this[_0x275967(0x23a)]||(this[_0x275967(0x23a)]=!0x0,this['_collabSession'][_0x275967(0x287)]['pipe'](_0x5d062d['takeUntil'](this[_0x275967(0x242)]))['subscribe'](_0xf5629a=>{const _0x10cf23=_0x275967;switch(_0xf5629a){case _0x17209d[_0x10cf23(0x299)][_0x10cf23(0x255)]:this['_handleOffline']();break;case _0x17209d[_0x10cf23(0x299)]['ONLINE']:this[_0x10cf23(0x26e)]();break;}}),this[_0x275967(0x227)][_0x275967(0x20f)]['pipe'](_0x5d062d[_0x275967(0x28a)](this[_0x275967(0x242)]))[_0x275967(0x283)](_0x3df570=>{const _0x3d52b3=_0x275967,{eventID:_0xed4322}=_0x3df570;switch(_0xed4322){case _0x23295e[_0x3d52b3(0x243)][_0x3d52b3(0x246)]:this['_handleNewHost'](_0x3df570);break;case _0x23295e[_0x3d52b3(0x243)][_0x3d52b3(0x2b3)]:this[_0x3d52b3(0x23e)](_0x3df570);break;case _0x23295e[_0x3d52b3(0x243)][_0x3d52b3(0x277)]:this[_0x3d52b3(0x253)]();break;case _0x23295e['CollaborationEvent'][_0x3d52b3(0x2a0)]:this[_0x3d52b3(0x27c)](_0x3df570);break;}}));}[_0x167efe(0x2a2)](){const _0x344dfd=_0x167efe;this[_0x344dfd(0x227)][_0x344dfd(0x24c)]({'eventID':_0x23295e['CollaborationEvent'][_0x344dfd(0x28b)],'data':{'unitID':this['_unitID'],'userID':this[_0x344dfd(0x227)][_0x344dfd(0x26c)]()}},this[_0x344dfd(0x226)]);}[_0x167efe(0x20e)](){const _0x3b871c=_0x167efe;this['_status']===_0x3b871c(0x2be)&&(this[_0x3b871c(0x2c2)][_0x3b871c(0x2b4)](_0x3b871c(0x231)),this['_collabSession'][_0x3b871c(0x24c)]({'eventID':_0x23295e[_0x3b871c(0x243)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3b871c(0x226)]}},this[_0x3b871c(0x226)]));}[_0x167efe(0x2b7)](){const _0x5b8dc4=_0x167efe;this[_0x5b8dc4(0x241)]===_0x5b8dc4(0x29a)&&(this['_status$']['next'](_0x5b8dc4(0x1fd)),this[_0x5b8dc4(0x26b)]());}['stopFollowing'](){const _0x48879d=_0x167efe;this['_status']===_0x48879d(0x1fd)&&this[_0x48879d(0x26d)]();}[_0x167efe(0x261)](_0x2e822e){const _0x57a5a4=_0x167efe,{presenter:_0x5d4c92}=_0x2e822e[_0x57a5a4(0x264)],_0x13bdc3=this[_0x57a5a4(0x227)][_0x57a5a4(0x26c)]();this[_0x57a5a4(0x21c)]=_0x5d4c92,_0x5d4c92===_0x13bdc3?(this[_0x57a5a4(0x26d)](),this[_0x57a5a4(0x21b)]()):this[_0x57a5a4(0x241)]!=='not-following'&&(this[_0x57a5a4(0x28f)](),this[_0x57a5a4(0x26b)]());}[_0x167efe(0x21d)](){const _0x416fcd=_0x167efe,_0x186806={'eventID':_0x23295e[_0x416fcd(0x243)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x416fcd(0x227)][_0x416fcd(0x24c)](_0x186806,this['_unitID']);}[_0x167efe(0x253)](){const _0x341cf2=_0x167efe;this[_0x341cf2(0x21c)]=null,this['_status']!=='presenting'&&this[_0x341cf2(0x2b2)]();}['_handleNewChangeSets'](_0x2e4c21){const _0x374135=_0x167efe;if(this[_0x374135(0x241)]===_0x374135(0x1fd)&&this['_presenter']===_0x2e4c21[_0x374135(0x264)]['memberID']){const _0x4b9fe2=_0x23295e[_0x374135(0x206)](_0x2e4c21[_0x374135(0x264)])[_0x374135(0x2d4)][_0x374135(0x297)]()[_0x374135(0x235)](_0x3d639e=>_0x3d639e['id']===_0x6fcf9a[_0x374135(0x273)]['id']);if(_0x4b9fe2){const _0x5e13ec=_0x4b9fe2[_0x374135(0x223)][_0x374135(0x233)],_0x419173=_0x4b9fe2['params']['sheet']['id'];setTimeout(()=>{const _0x52eb01=_0x374135;this['_commandService'][_0x52eb01(0x213)](_0x6fcf9a[_0x52eb01(0x201)]['id'],{'unitId':_0x5e13ec,'subUnitId':_0x419173},{'fromCollab':!0x0});});}}}[_0x167efe(0x21b)](){const _0x53bd17=_0x167efe;this[_0x53bd17(0x2c2)]['next'](_0x53bd17(0x2be));const _0x44ba89=new Map(),_0x1f028e=this[_0x53bd17(0x2a3)]=new _0x160934['DisposableCollection']();_0x1f028e[_0x53bd17(0x280)](_0x160934[_0x53bd17(0x2b5)](()=>{const _0x3860cc=_0x53bd17;_0x44ba89[_0x3860cc(0x228)](_0x2383bb=>_0x2383bb['complete']()),_0x44ba89[_0x3860cc(0x293)]();})),_0x1f028e[_0x53bd17(0x280)](this[_0x53bd17(0x2a5)][_0x53bd17(0x27b)](_0x389de2=>{const _0x3e2a99=_0x53bd17;var _0x59374b;if(_0x389de2[_0x3e2a99(0x22e)]!==_0x160934[_0x3e2a99(0x265)][_0x3e2a99(0x2b6)]||!this[_0x3e2a99(0x1fb)][_0x3e2a99(0x24f)](_0x389de2['id']))return;const {id:_0x4c02e0}=_0x389de2;let _0x4b8d61;_0x44ba89['has'](_0x4c02e0)?_0x4b8d61=_0x44ba89['get'](_0x4c02e0):(_0x4b8d61=new _0x11d600['Subject'](),_0x44ba89[_0x3e2a99(0x2c8)](_0x4c02e0,_0x4b8d61),_0x4b8d61[_0x3e2a99(0x23c)](_0x5d062d['throttleTime']((_0x59374b=this['_configService'][_0x3e2a99(0x2a7)](_0x4155ca))!=null?_0x59374b:_0x29fce0,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3e2a99(0x283)](_0x118191=>{const _0x5ee2dd=_0x3e2a99;this['_collabSession']['send']({'eventID':_0x23295e[_0x5ee2dd(0x243)][_0x5ee2dd(0x2b3)],'data':{'unitID':this[_0x5ee2dd(0x226)],'operations':{[_0x118191['id']]:{'id':_0x118191['id'],'params':JSON[_0x5ee2dd(0x290)](_0x118191['params'])}}}},this['_unitID']);})),_0x4b8d61['next'](_0x389de2);})),this[_0x53bd17(0x1fb)][_0x53bd17(0x239)](this[_0x53bd17(0x226)])['forEach'](_0x511b5c=>this[_0x53bd17(0x227)][_0x53bd17(0x24c)]({'eventID':_0x23295e[_0x53bd17(0x243)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x53bd17(0x226)],'operations':{[_0x511b5c['id']]:{'id':_0x511b5c['id'],'params':JSON['stringify'](_0x511b5c[_0x53bd17(0x223)])}}}},this[_0x53bd17(0x226)]));}[_0x167efe(0x28f)](){const _0x2c5090=_0x167efe;var _0x22acc7;this[_0x2c5090(0x2c2)][_0x2c5090(0x2b4)]('idle'),(_0x22acc7=this[_0x2c5090(0x2a3)])==null||_0x22acc7[_0x2c5090(0x2d5)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x49bbdb=_0x167efe;var _0x2358c9;(_0x2358c9=this[_0x49bbdb(0x2a3)])==null||_0x2358c9[_0x49bbdb(0x2d5)](),this[_0x49bbdb(0x2c2)][_0x49bbdb(0x2b4)](_0x49bbdb(0x1fd));}['_beIdle'](){const _0x5e876d=_0x167efe;var _0x1378c2;this[_0x5e876d(0x2c2)][_0x5e876d(0x2b4)](_0x5e876d(0x231)),(_0x1378c2=this[_0x5e876d(0x2a3)])==null||_0x1378c2[_0x5e876d(0x2d5)](),this[_0x5e876d(0x2a3)]=null;}['_stopFollowing'](){const _0x5ba998=_0x167efe;var _0xac61f9;this[_0x5ba998(0x2c2)]['next']('not-following'),(_0xac61f9=this[_0x5ba998(0x2a3)])==null||_0xac61f9[_0x5ba998(0x2d5)]();}['_handleOperation'](_0x24a510){const _0x297d41=_0x167efe;if(['presenting','not-following','offline'][_0x297d41(0x27a)](this[_0x297d41(0x241)])||!_0x24a510['data'][_0x297d41(0x200)]||_0x24a510['data'][_0x297d41(0x200)]===this['_collabSession'][_0x297d41(0x26c)]())return;this[_0x297d41(0x241)]===_0x297d41(0x231)&&this[_0x297d41(0x26b)]();const _0x55aadb=_0x24a510['data'][_0x297d41(0x2ce)];Object[_0x297d41(0x248)](_0x55aadb)[_0x297d41(0x228)](_0x3e255d=>{const _0x5cb9b1=_0x297d41;this[_0x5cb9b1(0x2a5)][_0x5cb9b1(0x213)](_0x3e255d['id'],_0x3e255d['params']?JSON[_0x5cb9b1(0x29f)](_0x3e255d[_0x5cb9b1(0x223)]):null,{'fromCollab':!0x0});});}[_0x167efe(0x1f6)](){const _0x3f7e21=_0x167efe;var _0x1e27d4;this[_0x3f7e21(0x2c2)][_0x3f7e21(0x2b4)](_0x3f7e21(0x2d6)),(_0x1e27d4=this['_commandDisposable'])==null||_0x1e27d4[_0x3f7e21(0x2d5)]();}[_0x167efe(0x26e)](){const _0x46fe8e=_0x167efe;this[_0x46fe8e(0x2c2)][_0x46fe8e(0x2b4)](_0x46fe8e(0x231)),this['_fetchOperations']();}},_0xb8f135[_0x167efe(0x2cf)]=_0x32b130([_0x264cc7(0x2,_0x160934['IConfigService']),_0x264cc7(0x3,_0x160934['Inject'](_0x5a3069)),_0x264cc7(0x4,_0x160934['ICommandService'])],_0xb8f135[_0x167efe(0x2cf)]);function _0x31beac(){const _0x7c69f=_0x167efe,_0x43952a=_0x1db1d5['useDependency'](_0xb8f135[_0x7c69f(0x276)]),_0x1b4231=_0x1db1d5[_0x7c69f(0x2b9)](_0x160934[_0x7c69f(0x2ae)]),_0x385cf3=_0x1db1d5[_0x7c69f(0x2d3)](()=>_0x1b4231[_0x7c69f(0x2ab)](_0x160934[_0x7c69f(0x2ca)][_0x7c69f(0x2d0)]),void 0x0,!0x1,[]),[_0x22ee11,_0x1317d6]=_0x51b41c[_0x7c69f(0x269)](null),[_0x459acd,_0x54322b]=_0x51b41c['useState'](_0x8a846a[_0x7c69f(0x21e)]),_0x2ac77c=_0x51b41c[_0x7c69f(0x1f7)](null);return _0x51b41c[_0x7c69f(0x29c)](()=>(_0x385cf3&&_0x43952a[_0x7c69f(0x203)](_0x385cf3[_0x7c69f(0x1f0)]())['then'](_0x463989=>{const _0x244db4=_0x7c69f;_0x1317d6(_0x463989),_0x2ac77c['current']=_0x463989[_0x244db4(0x272)][_0x244db4(0x283)](_0x3943aa=>{_0x54322b(_0x3943aa);});}),()=>{const _0xda1f85=_0x7c69f;var _0x3d344a;(_0x3d344a=_0x2ac77c[_0xda1f85(0x218)])==null||_0x3d344a[_0xda1f85(0x2af)](),_0x2ac77c[_0xda1f85(0x218)]=null;}),[_0x385cf3,_0x43952a]),_0x22ee11?_0x16f4e3[_0x7c69f(0x291)](_0x53eb07[_0x7c69f(0x28c)],{'align':_0x7c69f(0x282),'disabled':_0x459acd===_0x8a846a['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x16f4e3[_0x7c69f(0x291)](_0x5af33c,{'status':_0x459acd,'coordinator':_0x22ee11}),'children':_0x16f4e3[_0x7c69f(0x291)](_0x7c69f(0x225),{'className':_0x53eb07[_0x7c69f(0x20b)](_0x7c69f(0x256),{'univer-cursor-not-allowed':_0x459acd===_0x8a846a['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x459acd!==_0x8a846a[_0x7c69f(0x255)]}),'type':'button','children':_0x16f4e3[_0x7c69f(0x291)](_0x5385f1,{'className':_0x7c69f(0x22f)})})}):null;}function _0x5af33c(_0x3923f1){const _0x327f61=_0x167efe,{status:_0x3c60c3,coordinator:_0x18321f}=_0x3923f1;switch(_0x3c60c3){case _0x8a846a[_0x327f61(0x21e)]:return _0x16f4e3[_0x327f61(0x291)](_0x291051,{'coordinator':_0x18321f});case _0x8a846a['FOLLOWING']:return _0x16f4e3[_0x327f61(0x291)](_0x42dd99,{'coordinator':_0x18321f});case _0x8a846a[_0x327f61(0x27e)]:return _0x16f4e3[_0x327f61(0x291)](_0x2f9f,{'coordinator':_0x18321f});case _0x8a846a['OFFLINE']:return _0x16f4e3[_0x327f61(0x291)](_0x23a3cf,{});case _0x8a846a[_0x327f61(0x270)]:return _0x16f4e3[_0x327f61(0x291)](_0xea9e2e,{'coordinator':_0x18321f});default:return null;}}function _0x291051(_0x5097fe){const _0x51df3=_0x167efe,{coordinator:_0xaeb3f7}=_0x5097fe;return _0x16f4e3[_0x51df3(0x294)](_0x16f4e3['Fragment'],{'children':[_0x16f4e3[_0x51df3(0x291)](_0x51df3(0x2c0),{'className':_0x51df3(0x254),'children':'Present\x20this\x20document'}),_0x16f4e3[_0x51df3(0x291)](_0x53eb07['Button'],{'onClick':()=>_0xaeb3f7[_0x51df3(0x2a2)](),'children':_0x51df3(0x1f4)})]});}function _0x42dd99(_0x39aac2){const _0x3c6dc9=_0x167efe,{coordinator:_0x5dc0a8}=_0x39aac2;return _0x16f4e3[_0x3c6dc9(0x294)](_0x16f4e3['Fragment'],{'children':[_0x16f4e3[_0x3c6dc9(0x291)](_0x3c6dc9(0x2c0),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3c6dc9(0x25a)}),_0x16f4e3['jsx'](_0x53eb07[_0x3c6dc9(0x1f1)],{'onClick':()=>_0x5dc0a8[_0x3c6dc9(0x234)](),'children':_0x3c6dc9(0x205)})]});}function _0x2f9f(_0x161e4d){const _0x5b0eff=_0x167efe,{coordinator:_0x5f4886}=_0x161e4d;return _0x16f4e3['jsxs'](_0x16f4e3[_0x5b0eff(0x249)],{'children':[_0x16f4e3[_0x5b0eff(0x291)](_0x5b0eff(0x2c0),{'className':_0x5b0eff(0x254),'children':_0x5b0eff(0x295)}),_0x16f4e3[_0x5b0eff(0x291)](_0x53eb07[_0x5b0eff(0x1f1)],{'variant':_0x5b0eff(0x2bf),'onClick':()=>_0x5f4886['startFollowing'](),'children':_0x5b0eff(0x2ac)})]});}function _0xea9e2e(_0x599914){const _0x5debc5=_0x167efe,{coordinator:_0x5d5518}=_0x599914;return _0x16f4e3[_0x5debc5(0x294)](_0x16f4e3['Fragment'],{'children':[_0x16f4e3[_0x5debc5(0x291)](_0x5debc5(0x2c0),{'className':_0x5debc5(0x254),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x16f4e3[_0x5debc5(0x291)](_0x53eb07['Button'],{'variant':_0x5debc5(0x1f2),'onClick':()=>_0x5d5518['stopPresenting'](),'children':_0x5debc5(0x211)})]});}function _0x23a3cf(){const _0x5dd457=_0x167efe;return _0x16f4e3['jsx'](_0x16f4e3[_0x5dd457(0x249)],{'children':_0x5dd457(0x2bb)});}var _0x420f23=Object[_0x167efe(0x1f3)],_0x52eee8=(_0x70cd3d,_0x253b2e,_0x49af52,_0x2f9b2c)=>{const _0x2df6fb=_0x167efe;for(var _0x480319=_0x2f9b2c>0x1?void 0x0:_0x2f9b2c?_0x420f23(_0x253b2e,_0x49af52):_0x253b2e,_0x24fbc6=_0x70cd3d[_0x2df6fb(0x260)]-0x1,_0x4e001f;_0x24fbc6>=0x0;_0x24fbc6--)(_0x4e001f=_0x70cd3d[_0x24fbc6])&&(_0x480319=_0x4e001f(_0x480319)||_0x480319);return _0x480319;},_0x30b8be=(_0x3eccb5,_0x5e66d6)=>(_0x3f6fe1,_0x37ff8d)=>_0x5e66d6(_0x3f6fe1,_0x37ff8d,_0x3eccb5);_0xb8f135[_0x167efe(0x20c)]=class extends _0x160934[_0x167efe(0x2d1)]{constructor(_0x695ed3,_0xf8f4f6){const _0x3dc177=_0x167efe;super(),this['_injector']=_0x695ed3,this[_0x3dc177(0x238)]=_0xf8f4f6,this[_0x3dc177(0x2a6)]();}[_0x167efe(0x2a6)](){const _0x47e70b=_0x167efe;this['disposeWithMe'](this['_uiPartsService'][_0x47e70b(0x29b)](_0x1db1d5['BuiltInUIPart'][_0x47e70b(0x2aa)],()=>_0x1db1d5['connectInjector'](_0x31beac,this[_0x47e70b(0x245)])));}},_0xb8f135['DesktopLiveShareController']=_0x52eee8([_0x30b8be(0x0,_0x160934[_0x167efe(0x2bc)](_0x160934[_0x167efe(0x22b)])),_0x30b8be(0x1,_0x1db1d5[_0x167efe(0x219)])],_0xb8f135['DesktopLiveShareController']);const _0x836660=_0x167efe(0x298),_0x3c6417={};var _0x23b8c8=Object[_0x167efe(0x1f3)],_0x325f6f=(_0x21ec12,_0x3cd9ad,_0x370485,_0x653b27)=>{for(var _0x52b32c=_0x653b27>0x1?void 0x0:_0x653b27?_0x23b8c8(_0x3cd9ad,_0x370485):_0x3cd9ad,_0xb02856=_0x21ec12['length']-0x1,_0x229f06;_0xb02856>=0x0;_0xb02856--)(_0x229f06=_0x21ec12[_0xb02856])&&(_0x52b32c=_0x229f06(_0x52b32c)||_0x52b32c);return _0x52b32c;},_0x569c6a=(_0x5600e8,_0x13b2e8)=>(_0x4d43ed,_0x1779f8)=>_0x13b2e8(_0x4d43ed,_0x1779f8,_0x5600e8);let _0x29cb6a=class extends _0x160934[_0x167efe(0x2d1)]{constructor(_0x1fab8c){const _0x2b98ba=_0x167efe;super(),this[_0x2b98ba(0x1fb)]=_0x1fab8c,this['_init']();}[_0x167efe(0x23a)](){const _0x49ebb6=_0x167efe;[_0x2529b4['SetZoomRatioOperation']['id'],_0x2529b4[_0x49ebb6(0x2a1)]['id'],_0x6fcf9a['SetWorksheetActiveOperation']['id']][_0x49ebb6(0x228)](_0x5d1268=>{const _0x3676ff=_0x49ebb6;this[_0x3676ff(0x1fc)](this[_0x3676ff(0x1fb)][_0x3676ff(0x24b)](_0x5d1268));});}};_0x29cb6a=_0x325f6f([_0x569c6a(0x0,_0x160934[_0x167efe(0x2bc)](_0x5a3069))],_0x29cb6a);var _0x2116f4=Object[_0x167efe(0x2a8)],_0x24f582=Object['getOwnPropertyDescriptor'],_0x35a8f9=(_0x553e2b,_0x52845a,_0x3917b3)=>_0x52845a in _0x553e2b?_0x2116f4(_0x553e2b,_0x52845a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3917b3}):_0x553e2b[_0x52845a]=_0x3917b3,_0x23c2bd=(_0x151341,_0x3b9d2a,_0x541232,_0x2cd5a2)=>{const _0x27aae2=_0x167efe;for(var _0x1d3976=_0x2cd5a2>0x1?void 0x0:_0x2cd5a2?_0x24f582(_0x3b9d2a,_0x541232):_0x3b9d2a,_0x118c58=_0x151341[_0x27aae2(0x260)]-0x1,_0x3ec432;_0x118c58>=0x0;_0x118c58--)(_0x3ec432=_0x151341[_0x118c58])&&(_0x1d3976=_0x3ec432(_0x1d3976)||_0x1d3976);return _0x1d3976;},_0xf61b43=(_0x1f9dd6,_0xfef178)=>(_0x351beb,_0x3803de)=>_0xfef178(_0x351beb,_0x3803de,_0x1f9dd6),_0x5a9825=(_0x27a73e,_0x3fa977,_0x848c9e)=>_0x35a8f9(_0x27a73e,typeof _0x3fa977!='symbol'?_0x3fa977+'':_0x3fa977,_0x848c9e);const _0x1dcfe3=_0x167efe(0x262);_0xb8f135[_0x167efe(0x1f9)]=class extends _0x160934[_0x167efe(0x275)]{constructor(_0x9aa14b=_0x3c6417,_0x4972ab,_0x2014b3){const _0x3d1ec4=_0x167efe;super(),this[_0x3d1ec4(0x1f8)]=_0x9aa14b,this['_injector']=_0x4972ab,this[_0x3d1ec4(0x207)]=_0x2014b3;const {..._0x31b561}=_0x160934[_0x3d1ec4(0x25d)]({},_0x3c6417,this['_config']);this[_0x3d1ec4(0x207)][_0x3d1ec4(0x24d)](_0x836660,_0x31b561);}[_0x167efe(0x289)](){const _0x47d2f5=_0x167efe;_0x160934['registerDependencies'](this[_0x47d2f5(0x245)],_0x160934['mergeOverrideWithDependencies']([[_0x5a3069],[_0xb8f135[_0x47d2f5(0x276)]],[_0x29cb6a],[_0xb8f135['DesktopLiveShareController']]],this[_0x47d2f5(0x1f8)][_0x47d2f5(0x2c9)])),_0x160934[_0x47d2f5(0x258)](this[_0x47d2f5(0x245)],[[_0x29cb6a]]);}[_0x167efe(0x215)](){const _0x4fc708=_0x167efe;_0x160934[_0x4fc708(0x258)](this[_0x4fc708(0x245)],[[_0xb8f135[_0x4fc708(0x20c)]]]);}},_0x5a9825(_0xb8f135['UniverLiveSharePlugin'],_0x167efe(0x22e),_0x160934[_0x167efe(0x2ca)][_0x167efe(0x28d)]),_0x5a9825(_0xb8f135['UniverLiveSharePlugin'],'pluginName',_0x1dcfe3),_0xb8f135[_0x167efe(0x1f9)]=_0x23c2bd([_0x160934['DependentOn'](_0x17209d[_0x167efe(0x2cd)]),_0xf61b43(0x1,_0x160934[_0x167efe(0x2bc)](_0x160934[_0x167efe(0x22b)])),_0xf61b43(0x2,_0x160934['IConfigService'])],_0xb8f135[_0x167efe(0x1f9)]),_0xb8f135[_0x167efe(0x212)]=_0x31beac,_0xb8f135['LiveShareService']=_0x5a3069,_0xb8f135[_0x167efe(0x2b8)]=_0x8a846a,Object[_0x167efe(0x2a8)](_0xb8f135,Symbol['toStringTag'],{'value':_0x167efe(0x202)});}));function _0x4583(_0x345c9f,_0x5c1b19){const _0x54266c=_0x5426();return _0x4583=function(_0x45837a,_0x502d1c){_0x45837a=_0x45837a-0x1f0;let _0x56ea5a=_0x54266c[_0x45837a];return _0x56ea5a;},_0x4583(_0x345c9f,_0x5c1b19);}function _0x5426(){const _0xc6257f=['_entities','_startPresenting','_presenter','_fetchOperations','IDLE','_startLiveShareCoordinator','use','RxDisposable','xlink:href','params','_sharedOperations','button','_unitID','_collabSession','forEach','idSuffix','defIds','Injector','amd','UniverSheets','type','univer-size-4','requireSession','idle','react','unitId','stopFollowing','find','init','exports','_uiPartsService','getInitialStates','_init','@univerjs-pro/collaboration','pipe','UniverSheetsUi','_handleOperation','763072IoIQMC','delete','_status','dispose$','CollaborationEvent','has','_injector','LIVESHARE_NEW_HOST','children','values','Fragment','replace','registerSharedOperation','send','setConfig','229205WgyzrJ','shouldShareOperation','displayName','getTypeOfUnitAdded$','FOLLOWING','_handleTerminate','univer-mb-3\x20univer-w-full\x20univer-text-sm','OFFLINE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','@univerjs/core','touchDependencies','path','You\x27re\x20following\x20the\x20presenter','mask','substring','merge','assign','forwardRef','length','_handleNewHost','UNIVER_LIVE_SHARE_PLUGIN','symbol','data','CommandType','UniverDesign','UniverProLiveShare','40722vFyDta','useState','tag','_startFollowing','getMemberID','_stopFollowing','_handleOnline','BehaviorSubject','PRESENTING','getStatus','status$','InsertSheetMutation','svg','Plugin','LiveShareController','LIVESHARE_TERMINATE','url(#$1','univerjs-icon\x20univerjs-icon-','includes','onCommandExecuted','_handleNewChangeSets','React','NOT_FOLLOWING','operators','add','_collabSessionService','end','subscribe','get','random','asObservable','sessionStatus$','CollaborationSessionService','onStarting','takeUntil','LIVESHARE_REQUEST_HOST','Dropdown','UNIVER_UNKNOWN','from','_stopPresenting','stringify','jsx','colorChannel1','clear','jsxs','You\x27re\x20not\x20following\x20the\x20presenter','122nDBREY','reverse','live-share.config','SessionStatus','not-following','registerComponent','useEffect','@univerjs/design','_reporters','parse','NEW_CHANGESETS','SetScrollOperation','tryStartPresenting','_commandDisposable','fill','_commandService','_mountLiveShare','getConfig','defineProperty','string','HEADER_MENU','getCurrentTypeOfUnit$','Start\x20following','3647480faTvRA','IUniverInstanceService','unsubscribe','createElement','map','_beIdle','LIVESHARE_OPERATION','next','toDisposable','OPERATION','startFollowing','LiveShareStatus','useDependency','UniverUi','You\x27are\x20offline.','Inject','complete','presenting','text','div','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','_status$','react/jsx-runtime','defs','4902212nqxPqs','4vpxFsd','@univerjs/ui','set','override','UniverInstanceType','rxjs/operators','1em','UniverCollaborationClientPlugin','operations','LiveShareCoordinator','UNIVER_SHEET','Disposable','5528256Yssmmt','useObservable','mutations','dispose','offline','getUnitId','Button','default','getOwnPropertyDescriptor','Start','486152FTBPpH','_handleOffline','useRef','_config','UniverLiveSharePlugin','54tEAFBh','_liveShareService','disposeWithMe','following','rxjs','@univerjs/sheets','presenter','SetWorksheetActiveOperation','Module','getLiveShareCoordinator','_univerInstanceService','Stop\x20following','parseProtocolChangeset','_configService','trim','SAME_OPERATION_SHARE_INTERVAL','UniverProCollaboration','clsx','DesktopLiveShareController','evenodd','stopPresenting','event$','@univerjs-pro/collaboration-client','Stop\x20presenting','LiveShare','executeCommand','registerInitialStateReporter','onRendered','attrs','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','current','IUIPartsService'];_0x5426=function(){return _0xc6257f;};return _0x5426();}
|
|
1
|
+
function _0x3e2a(_0x4db0d7,_0x1626ce){const _0x4be234=_0x4be2();return _0x3e2a=function(_0x3e2a83,_0x4cdaa4){_0x3e2a83=_0x3e2a83-0xd4;let _0x275d9c=_0x4be234[_0x3e2a83];return _0x275d9c;},_0x3e2a(_0x4db0d7,_0x1626ce);}(function(_0x41dc1c,_0x397e2a){const _0x46bfd1=_0x3e2a,_0x195ca8=_0x41dc1c();while(!![]){try{const _0x5e6c76=-parseInt(_0x46bfd1(0x131))/0x1*(parseInt(_0x46bfd1(0x1bd))/0x2)+parseInt(_0x46bfd1(0x163))/0x3+parseInt(_0x46bfd1(0x195))/0x4+parseInt(_0x46bfd1(0x12b))/0x5*(-parseInt(_0x46bfd1(0x184))/0x6)+-parseInt(_0x46bfd1(0x10d))/0x7+-parseInt(_0x46bfd1(0x120))/0x8+parseInt(_0x46bfd1(0x194))/0x9*(parseInt(_0x46bfd1(0x17e))/0xa);if(_0x5e6c76===_0x397e2a)break;else _0x195ca8['push'](_0x195ca8['shift']());}catch(_0xb4331d){_0x195ca8['push'](_0x195ca8['shift']());}}}(_0x4be2,0xaa6c2),function(_0x14aa44,_0x91b0ab){const _0x5b5f1b=_0x3e2a;typeof exports==_0x5b5f1b(0xda)&&typeof module<'u'?_0x91b0ab(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==_0x5b5f1b(0xd5)&&define['amd']?define(['exports',_0x5b5f1b(0x16c),_0x5b5f1b(0x170),_0x5b5f1b(0x14b),_0x5b5f1b(0x16b),'react',_0x5b5f1b(0x198),_0x5b5f1b(0x191),_0x5b5f1b(0x11f),_0x5b5f1b(0x197),'rxjs/operators',_0x5b5f1b(0xe4)],_0x91b0ab):(_0x14aa44=typeof globalThis<'u'?globalThis:_0x14aa44||self,_0x91b0ab(_0x14aa44[_0x5b5f1b(0x160)]={},_0x14aa44[_0x5b5f1b(0x18d)],_0x14aa44[_0x5b5f1b(0x14a)],_0x14aa44['React'],_0x14aa44['UniverDesign'],_0x14aa44[_0x5b5f1b(0x129)],_0x14aa44['UniverProCollaboration'],_0x14aa44[_0x5b5f1b(0x15d)],_0x14aa44['UniverSheets'],_0x14aa44[_0x5b5f1b(0x197)],_0x14aa44[_0x5b5f1b(0x197)][_0x5b5f1b(0x199)],_0x14aa44[_0x5b5f1b(0x143)]));}(this,function(_0x5daa75,_0xe6411e,_0x2d58ab,_0xd07bb2,_0x4ebd71,_0x38a073,_0x550f44,_0x507ad7,_0x3aa898,_0x5da5ea,_0x2b7748,_0x1aa54){'use strict';const _0x4428de=_0x3e2a;var _0x2554ed=Object['defineProperty'],_0x44858a=(_0x56bc01,_0x3c67ed,_0x4e16e4)=>_0x3c67ed in _0x56bc01?_0x2554ed(_0x56bc01,_0x3c67ed,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e16e4}):_0x56bc01[_0x3c67ed]=_0x4e16e4,_0x2d60af=(_0x5a8894,_0x1cac4f,_0x4f3da1)=>_0x44858a(_0x5a8894,typeof _0x1cac4f!=_0x4428de(0xe8)?_0x1cac4f+'':_0x1cac4f,_0x4f3da1);function _0x12edaf({ref:_0x16a1c8,..._0x4e3dba}){const _0x187f40=_0x4428de,{icon:_0x2be0cb,id:_0x78712a,className:_0x43cef8,extend:_0x3bc9bb,..._0x32543a}=_0x4e3dba,_0x1f7de9=('univerjs-icon\x20univerjs-icon-'+_0x78712a+'\x20'+(_0x43cef8||''))[_0x187f40(0x188)](),_0x5c6275=_0x38a073[_0x187f40(0x169)]('_'+_0x113e5e());return _0x1cb77b(_0x2be0cb,''+_0x78712a,{'defIds':_0x2be0cb[_0x187f40(0x172)],'idSuffix':_0x5c6275[_0x187f40(0x119)]},{'ref':_0x16a1c8,'className':_0x1f7de9,..._0x32543a},_0x3bc9bb);}function _0x1cb77b(_0x26767e,_0x2e812e,_0x43108e,_0x1ec8e7,_0x41b640){const _0x456522=_0x4428de;return _0x38a073[_0x456522(0x187)](_0x26767e[_0x456522(0x13f)],{'key':_0x2e812e,..._0x2844ff(_0x26767e,_0x43108e,_0x41b640),..._0x1ec8e7},(_0x54e445(_0x26767e,_0x43108e)['children']||[])['map']((_0x1d3dd2,_0x37b783)=>_0x1cb77b(_0x1d3dd2,_0x2e812e+'-'+_0x26767e[_0x456522(0x13f)]+'-'+_0x37b783,_0x43108e,void 0x0,_0x41b640)));}function _0x2844ff(_0x502e54,_0x1845ea,_0x184973){const _0x47fa47=_0x4428de,_0x2720dd={..._0x502e54['attrs']};_0x184973!=null&&_0x184973[_0x47fa47(0x110)]&&_0x2720dd['fill']===_0x47fa47(0x110)&&(_0x2720dd[_0x47fa47(0x158)]=_0x184973['colorChannel1']),_0x502e54[_0x47fa47(0x13f)]===_0x47fa47(0xf4)&&_0x2720dd['id']&&(_0x2720dd['id']=_0x2720dd['id']+_0x1845ea['idSuffix']),Object[_0x47fa47(0xea)](_0x2720dd)[_0x47fa47(0x150)](([_0x1f2f4b,_0x3b495f])=>{const _0x20cd34=_0x47fa47;_0x1f2f4b==='mask'&&typeof _0x3b495f==_0x20cd34(0x12d)&&(_0x2720dd[_0x1f2f4b]=_0x3b495f[_0x20cd34(0xd4)](/url\(#(.*)\)/,_0x20cd34(0xee)+_0x1845ea[_0x20cd34(0x13c)]+')'));});const {defIds:_0xb9a924}=_0x1845ea;return!_0xb9a924||_0xb9a924[_0x47fa47(0xe5)]===0x0||(_0x502e54[_0x47fa47(0x13f)]==='use'&&_0x2720dd[_0x47fa47(0xdf)]&&(_0x2720dd[_0x47fa47(0xdf)]=_0x2720dd['xlink:href']+_0x1845ea[_0x47fa47(0x13c)]),Object[_0x47fa47(0xea)](_0x2720dd)[_0x47fa47(0x150)](([_0x3e727d,_0x20311e])=>{const _0x404b42=_0x47fa47;typeof _0x20311e==_0x404b42(0x12d)&&(_0x2720dd[_0x3e727d]=_0x20311e['replace'](/url\(#(.*)\)/,_0x404b42(0xee)+_0x1845ea[_0x404b42(0x13c)]+')'));})),_0x2720dd;}function _0x54e445(_0x150758,_0x5f2284){const _0xbc5c60=_0x4428de;var _0xcdbbd0;const {defIds:_0x39c8a4}=_0x5f2284;return!_0x39c8a4||_0x39c8a4[_0xbc5c60(0xe5)]===0x0?_0x150758:_0x150758[_0xbc5c60(0x13f)]===_0xbc5c60(0x186)&&((_0xcdbbd0=_0x150758[_0xbc5c60(0x154)])!=null&&_0xcdbbd0[_0xbc5c60(0xe5)])?{..._0x150758,'children':_0x150758[_0xbc5c60(0x154)][_0xbc5c60(0x10e)](_0x18fdd0=>typeof _0x18fdd0['attrs']['id']=='string'&&_0x39c8a4&&_0x39c8a4[_0xbc5c60(0x121)](_0x18fdd0['attrs']['id'])?{..._0x18fdd0,'attrs':{..._0x18fdd0[_0xbc5c60(0x1af)],'id':_0x18fdd0['attrs']['id']+_0x5f2284[_0xbc5c60(0x13c)]}}:_0x18fdd0)}:_0x150758;}function _0x113e5e(){const _0x2687e7=_0x4428de;return Math[_0x2687e7(0x105)]()[_0x2687e7(0xe9)](0x24)[_0x2687e7(0x1bb)](0x2,0x8);}_0x12edaf['displayName']=_0x4428de(0xf6);const _0x4bc44e={'tag':_0x4428de(0xf7),'attrs':{'xmlns':_0x4428de(0xe2),'fill':'none','viewBox':_0x4428de(0x174),'width':_0x4428de(0x1c2),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x4428de(0xef),'d':_0x4428de(0x1ab)}},{'tag':_0x4428de(0x13e),'attrs':{'fill':_0x4428de(0xef),'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':_0x4428de(0x176),'clipRule':_0x4428de(0x176)}}]},_0x3d3432=_0x38a073['forwardRef'](function(_0x3fb9fe,_0x4a802f){const _0x3d45ad=_0x4428de;return _0x38a073[_0x3d45ad(0x187)](_0x12edaf,Object[_0x3d45ad(0x1b2)]({},_0x3fb9fe,{'id':_0x3d45ad(0x196),'ref':_0x4a802f,'icon':_0x4bc44e}));});_0x3d3432[_0x4428de(0x124)]=_0x4428de(0x12f);class _0x1fdc21 extends _0xe6411e[_0x4428de(0x104)]{constructor(){const _0x2808f5=_0x4428de;super(...arguments),_0x2d60af(this,_0x2808f5(0xd7),new Set()),_0x2d60af(this,_0x2808f5(0xf0),new Set());}['registerSharedOperation'](_0x314af2){const _0xd3c56c=_0x4428de;return this[_0xd3c56c(0xd7)][_0xd3c56c(0x153)](_0x314af2),_0xe6411e[_0xd3c56c(0x19d)](()=>this['_sharedOperations']['delete'](_0x314af2));}[_0x4428de(0x118)](_0x37b2c7){const _0x88218a=_0x4428de;return this['_reporters']['add'](_0x37b2c7),_0xe6411e['toDisposable'](()=>this[_0x88218a(0xf0)][_0x88218a(0xdb)](_0x37b2c7));}[_0x4428de(0x12e)](_0x4d1e1e){const _0x12c94a=_0x4428de;return this[_0x12c94a(0xd7)][_0x12c94a(0x11a)](_0x4d1e1e);}[_0x4428de(0x15e)](_0x4b01f0){const _0x267fc0=_0x4428de;return Array['from'](this[_0x267fc0(0xf0)])[_0x267fc0(0x10e)](_0xce0f8e=>_0xce0f8e(_0x4b01f0));}}var _0x2842d8=Object['getOwnPropertyDescriptor'],_0x5268c8=(_0x479f41,_0x4e92be,_0x1755e7,_0x3f11b4)=>{const _0x3a4999=_0x4428de;for(var _0x36a273=_0x3f11b4>0x1?void 0x0:_0x3f11b4?_0x2842d8(_0x4e92be,_0x1755e7):_0x4e92be,_0x369c00=_0x479f41[_0x3a4999(0xe5)]-0x1,_0x397d15;_0x369c00>=0x0;_0x369c00--)(_0x397d15=_0x479f41[_0x369c00])&&(_0x36a273=_0x397d15(_0x36a273)||_0x36a273);return _0x36a273;},_0x11ddb6=(_0x143e39,_0x5d8194)=>(_0x256b92,_0x46a540)=>_0x5d8194(_0x256b92,_0x46a540,_0x143e39);_0x5daa75[_0x4428de(0x142)]=class extends _0xe6411e[_0x4428de(0x130)]{constructor(_0x3021c5,_0xe3873a,_0x393f5d){const _0x540edd=_0x4428de;super(),_0x2d60af(this,_0x540edd(0xf1),new Map()),(this[_0x540edd(0xf5)]=_0x3021c5,this[_0x540edd(0x151)]=_0xe3873a,this[_0x540edd(0x157)]=_0x393f5d,this[_0x540edd(0x180)]());}async[_0x4428de(0x13d)](_0x4d1566){const _0x1eec83=_0x4428de;return this['_entities'][_0x1eec83(0x11a)](_0x4d1566)||await this['_startLiveShareCoordinator'](_0x4d1566),this[_0x1eec83(0xf1)][_0x1eec83(0x1c1)](_0x4d1566);}[_0x4428de(0x10a)](_0x509e89){const _0x550315=_0x4428de;var _0x2fc12e;return(_0x2fc12e=this['_entities'][_0x550315(0x1c1)](_0x509e89))!=null?_0x2fc12e:null;}[_0x4428de(0x180)](){const _0x5f5b24=_0x4428de;this['_univerInstanceService'][_0x5f5b24(0x14e)](_0xe6411e[_0x5f5b24(0xfc)]['UNIVER_SHEET'])['pipe'](_0x2b7748[_0x5f5b24(0x19e)](this[_0x5f5b24(0x17b)]))[_0x5f5b24(0x109)](async _0x4808bf=>{const _0x5c02e5=_0x5f5b24,_0x336f7d=_0x4808bf['getUnitId']();this['_entities'][_0x5c02e5(0x11a)](_0x336f7d)||this[_0x5c02e5(0x19f)](_0x336f7d);}),this[_0x5f5b24(0xf5)][_0x5f5b24(0x1b9)](_0xe6411e['UniverInstanceType'][_0x5f5b24(0x108)])[_0x5f5b24(0xdc)](_0x2b7748[_0x5f5b24(0x19e)](this[_0x5f5b24(0x17b)]))[_0x5f5b24(0x109)](_0x44bb71=>{const _0x2e2ce8=_0x5f5b24,_0x20649c=_0x44bb71['getUnitId'](),_0x47dcfc=this[_0x2e2ce8(0xf1)]['get'](_0x20649c);_0x47dcfc==null||_0x47dcfc[_0x2e2ce8(0xe1)]();});}async['_startLiveShareCoordinator'](_0x1e0f79){const _0x19159f=_0x4428de,_0x13e890=await this[_0x19159f(0x157)][_0x19159f(0xe0)](_0x1e0f79),_0xc3e415=this['_injector'][_0x19159f(0x122)](_0x5daa75['LiveShareCoordinator'],_0x1e0f79,_0x13e890);return _0xc3e415[_0x19159f(0x11c)](),this['_entities']['set'](_0x1e0f79,_0xc3e415),_0xc3e415;}},_0x5daa75[_0x4428de(0x142)]=_0x5268c8([_0x11ddb6(0x0,_0xe6411e[_0x4428de(0xec)]),_0x11ddb6(0x1,_0xe6411e['Inject'](_0xe6411e[_0x4428de(0x165)])),_0x11ddb6(0x2,_0xe6411e['Inject'](_0x507ad7[_0x4428de(0x107)]))],_0x5daa75[_0x4428de(0x142)]);var _0x55a52f=(_0x493278=>(_0x493278['OFFLINE']=_0x4428de(0x15a),_0x493278[_0x4428de(0x159)]='idle',_0x493278[_0x4428de(0x127)]=_0x4428de(0x117),_0x493278['NOT_FOLLOWING']=_0x4428de(0x140),_0x493278[_0x4428de(0x14d)]=_0x4428de(0x190),_0x493278))(_0x55a52f||{});const _0x5355c8=_0x4428de(0x164),_0x52547f=0xc8;_0x5daa75[_0x4428de(0x147)]=class extends _0xe6411e[_0x4428de(0x130)]{constructor(_0x2787a0,_0x4bbb64,_0x420ed8,_0x3ed586,_0x5df227){const _0xc6afb5=_0x4428de;super(),_0x2d60af(this,'_status$',new _0x5da5ea[(_0xc6afb5(0x1a8))]('idle')),_0x2d60af(this,_0xc6afb5(0x133),this['_status$'][_0xc6afb5(0x112)]()),_0x2d60af(this,_0xc6afb5(0x180),!0x1),_0x2d60af(this,_0xc6afb5(0x148),null),_0x2d60af(this,_0xc6afb5(0x125),null),(this['_unitID']=_0x2787a0,this[_0xc6afb5(0x123)]=_0x4bbb64,this['_configService']=_0x420ed8,this[_0xc6afb5(0x1aa)]=_0x3ed586,this[_0xc6afb5(0x1c0)]=_0x5df227);}get['_status'](){const _0x2fe4f8=_0x4428de;return this[_0x2fe4f8(0x15c)][_0x2fe4f8(0x11e)]();}['dispose'](){const _0x4610a7=_0x4428de;var _0xc09496;(_0xc09496=this[_0x4610a7(0x148)])==null||_0xc09496[_0x4610a7(0xe1)](),this['_status$'][_0x4610a7(0x1b1)](_0x4610a7(0x189)),this[_0x4610a7(0x15c)][_0x4610a7(0xfd)]();}[_0x4428de(0x18b)](){const _0x2738a6=_0x4428de;return this[_0x2738a6(0x17c)];}[_0x4428de(0x11c)](){const _0x239525=_0x4428de;this[_0x239525(0x180)]||(this[_0x239525(0x180)]=!0x0,this[_0x239525(0x123)][_0x239525(0x1a6)][_0x239525(0xdc)](_0x2b7748[_0x239525(0x19e)](this['dispose$']))[_0x239525(0x109)](_0x50e582=>{const _0x1d2c52=_0x239525;switch(_0x50e582){case _0x507ad7[_0x1d2c52(0x10c)][_0x1d2c52(0xeb)]:this['_handleOffline']();break;case _0x507ad7['SessionStatus'][_0x1d2c52(0x1a3)]:this[_0x1d2c52(0x135)]();break;}}),this[_0x239525(0x123)][_0x239525(0x10b)]['pipe'](_0x2b7748[_0x239525(0x19e)](this['dispose$']))['subscribe'](_0x1a70ac=>{const _0x277f38=_0x239525,{eventID:_0x774aea}=_0x1a70ac;switch(_0x774aea){case _0x550f44[_0x277f38(0x168)][_0x277f38(0x18e)]:this[_0x277f38(0x113)](_0x1a70ac);break;case _0x550f44[_0x277f38(0x168)][_0x277f38(0x132)]:this['_handleOperation'](_0x1a70ac);break;case _0x550f44['CollaborationEvent'][_0x277f38(0xe7)]:this[_0x277f38(0xd6)]();break;case _0x550f44['CollaborationEvent']['NEW_CHANGESETS']:this[_0x277f38(0x16d)](_0x1a70ac);break;}}));}[_0x4428de(0x178)](){const _0x2d6efe=_0x4428de;this[_0x2d6efe(0x123)][_0x2d6efe(0x1be)]({'eventID':_0x550f44[_0x2d6efe(0x168)][_0x2d6efe(0x175)],'data':{'unitID':this[_0x2d6efe(0x1a1)],'userID':this[_0x2d6efe(0x123)][_0x2d6efe(0x116)]()}},this[_0x2d6efe(0x1a1)]);}[_0x4428de(0x15f)](){const _0x40dffb=_0x4428de;this['_status']===_0x40dffb(0x190)&&(this[_0x40dffb(0x15c)][_0x40dffb(0x1b1)](_0x40dffb(0x189)),this[_0x40dffb(0x123)][_0x40dffb(0x1be)]({'eventID':_0x550f44['CollaborationEvent'][_0x40dffb(0xe7)],'data':{'unitID':this['_unitID']}},this[_0x40dffb(0x1a1)]));}[_0x4428de(0x1a9)](){const _0x31d748=_0x4428de;this[_0x31d748(0x17c)]===_0x31d748(0x140)&&(this[_0x31d748(0x15c)][_0x31d748(0x1b1)](_0x31d748(0x117)),this['_startFollowing']());}[_0x4428de(0x166)](){const _0x5578d2=_0x4428de;this[_0x5578d2(0x17c)]===_0x5578d2(0x117)&&this['_stopFollowing']();}[_0x4428de(0x113)](_0xba4353){const _0x5ce755=_0x4428de,{presenter:_0x2da186}=_0xba4353['data'],_0x530d07=this['_collabSession'][_0x5ce755(0x116)]();this['_presenter']=_0x2da186,_0x2da186===_0x530d07?(this[_0x5ce755(0x1ba)](),this[_0x5ce755(0xf3)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x5ce755(0x156)]());}[_0x4428de(0x139)](){const _0x3a9f2c=_0x4428de,_0x2e4327={'eventID':_0x550f44[_0x3a9f2c(0x168)][_0x3a9f2c(0x149)]};this[_0x3a9f2c(0x123)][_0x3a9f2c(0x1be)](_0x2e4327,this[_0x3a9f2c(0x1a1)]);}[_0x4428de(0xd6)](){const _0x3e15c1=_0x4428de;this[_0x3e15c1(0x125)]=null,this[_0x3e15c1(0x17c)]!=='presenting'&&this['_beIdle']();}[_0x4428de(0x16d)](_0x527a3d){const _0x10fc8c=_0x4428de;if(this[_0x10fc8c(0x17c)]===_0x10fc8c(0x117)&&this[_0x10fc8c(0x125)]===_0x527a3d[_0x10fc8c(0x1b0)][_0x10fc8c(0xed)]){const _0x137f89=_0x550f44[_0x10fc8c(0x17a)](_0x527a3d[_0x10fc8c(0x1b0)])['mutations'][_0x10fc8c(0x173)]()[_0x10fc8c(0x162)](_0x2700d2=>_0x2700d2['id']===_0x3aa898['InsertSheetMutation']['id']);if(_0x137f89){const _0x477316=_0x137f89['params']['unitId'],_0x2c3418=_0x137f89[_0x10fc8c(0x134)][_0x10fc8c(0x145)]['id'];setTimeout(()=>{const _0x5ee2f6=_0x10fc8c;this[_0x5ee2f6(0x1c0)][_0x5ee2f6(0x1b7)](_0x3aa898[_0x5ee2f6(0xfa)]['id'],{'unitId':_0x477316,'subUnitId':_0x2c3418},{'fromCollab':!0x0});});}}}[_0x4428de(0xf3)](){const _0x196964=_0x4428de;this['_status$']['next']('presenting');const _0x4cde21=new Map(),_0x3d0607=this[_0x196964(0x148)]=new _0xe6411e[(_0x196964(0x1a4))]();_0x3d0607[_0x196964(0x153)](_0xe6411e['toDisposable'](()=>{const _0x23e4db=_0x196964;_0x4cde21[_0x23e4db(0x150)](_0x95ba8d=>_0x95ba8d[_0x23e4db(0xfd)]()),_0x4cde21[_0x23e4db(0x18c)]();})),_0x3d0607[_0x196964(0x153)](this['_commandService'][_0x196964(0x1a0)](_0x49345b=>{const _0x29de23=_0x196964;var _0x1703f6;if(_0x49345b[_0x29de23(0x1ae)]!==_0xe6411e[_0x29de23(0x18a)][_0x29de23(0x111)]||!this['_liveShareService'][_0x29de23(0x12e)](_0x49345b['id']))return;const {id:_0x443f3c}=_0x49345b;let _0x4f9abd;_0x4cde21[_0x29de23(0x11a)](_0x443f3c)?_0x4f9abd=_0x4cde21[_0x29de23(0x1c1)](_0x443f3c):(_0x4f9abd=new _0x5da5ea[(_0x29de23(0x1bc))](),_0x4cde21[_0x29de23(0x115)](_0x443f3c,_0x4f9abd),_0x4f9abd[_0x29de23(0xdc)](_0x2b7748[_0x29de23(0x11d)]((_0x1703f6=this[_0x29de23(0x136)][_0x29de23(0x12c)](_0x5355c8))!=null?_0x1703f6:_0x52547f,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x29de23(0x109)](_0x211203=>{const _0x2aa626=_0x29de23;this[_0x2aa626(0x123)][_0x2aa626(0x1be)]({'eventID':_0x550f44['CollaborationEvent'][_0x2aa626(0x132)],'data':{'unitID':this[_0x2aa626(0x1a1)],'operations':{[_0x211203['id']]:{'id':_0x211203['id'],'params':JSON[_0x2aa626(0x11b)](_0x211203[_0x2aa626(0x134)])}}}},this[_0x2aa626(0x1a1)]);})),_0x4f9abd[_0x29de23(0x1b1)](_0x49345b);})),this[_0x196964(0x1aa)][_0x196964(0x15e)](this[_0x196964(0x1a1)])[_0x196964(0x150)](_0x464b22=>this[_0x196964(0x123)][_0x196964(0x1be)]({'eventID':_0x550f44['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x196964(0x1a1)],'operations':{[_0x464b22['id']]:{'id':_0x464b22['id'],'params':JSON['stringify'](_0x464b22['params'])}}}},this[_0x196964(0x1a1)]));}['_stopPresenting'](){const _0x2e49c1=_0x4428de;var _0x11a489;this[_0x2e49c1(0x15c)][_0x2e49c1(0x1b1)]('idle'),(_0x11a489=this['_commandDisposable'])==null||_0x11a489[_0x2e49c1(0xe1)](),this[_0x2e49c1(0x148)]=null;}[_0x4428de(0x156)](){const _0x33d963=_0x4428de;var _0x42eaf5;(_0x42eaf5=this[_0x33d963(0x148)])==null||_0x42eaf5[_0x33d963(0xe1)](),this[_0x33d963(0x15c)][_0x33d963(0x1b1)]('following');}[_0x4428de(0xf8)](){const _0x275202=_0x4428de;var _0x20c75d;this['_status$']['next'](_0x275202(0x189)),(_0x20c75d=this[_0x275202(0x148)])==null||_0x20c75d['dispose'](),this['_commandDisposable']=null;}[_0x4428de(0x1ba)](){const _0x526fbf=_0x4428de;var _0x3c7b02;this[_0x526fbf(0x15c)][_0x526fbf(0x1b1)](_0x526fbf(0x140)),(_0x3c7b02=this[_0x526fbf(0x148)])==null||_0x3c7b02[_0x526fbf(0xe1)]();}[_0x4428de(0xe6)](_0xdded93){const _0x41310b=_0x4428de;if(['presenting',_0x41310b(0x140),'offline'][_0x41310b(0x121)](this[_0x41310b(0x17c)])||!_0xdded93[_0x41310b(0x1b0)][_0x41310b(0x1ac)]||_0xdded93['data']['presenter']===this[_0x41310b(0x123)][_0x41310b(0x116)]())return;this[_0x41310b(0x17c)]===_0x41310b(0x189)&&this['_startFollowing']();const _0x29ce24=_0xdded93['data'][_0x41310b(0xd8)];Object[_0x41310b(0xfb)](_0x29ce24)[_0x41310b(0x150)](_0x378de7=>{const _0x45783d=_0x41310b;this[_0x45783d(0x1c0)][_0x45783d(0x1b7)](_0x378de7['id'],_0x378de7['params']?JSON[_0x45783d(0x15b)](_0x378de7[_0x45783d(0x134)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4e3689=_0x4428de;var _0x51fc17;this[_0x4e3689(0x15c)]['next'](_0x4e3689(0x15a)),(_0x51fc17=this[_0x4e3689(0x148)])==null||_0x51fc17['dispose']();}[_0x4428de(0x135)](){const _0x45b717=_0x4428de;this[_0x45b717(0x15c)][_0x45b717(0x1b1)](_0x45b717(0x189)),this['_fetchOperations']();}},_0x5daa75[_0x4428de(0x147)]=_0x5268c8([_0x11ddb6(0x2,_0xe6411e[_0x4428de(0x10f)]),_0x11ddb6(0x3,_0xe6411e[_0x4428de(0x1b3)](_0x1fdc21)),_0x11ddb6(0x4,_0xe6411e[_0x4428de(0x1b8)])],_0x5daa75[_0x4428de(0x147)]);function _0x53cb4b(){const _0x36282b=_0x4428de,_0x1bb4b1=_0x2d58ab[_0x36282b(0x16a)](_0x5daa75['LiveShareController']),_0x1cd8b2=_0x2d58ab['useDependency'](_0xe6411e[_0x36282b(0xec)]),_0x169c43=_0x2d58ab[_0x36282b(0x14f)](()=>_0x1cd8b2[_0x36282b(0xf2)](_0xe6411e['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3bb2c0,_0x2b47b0]=_0x38a073[_0x36282b(0xe3)](null),[_0x3f2c9a,_0x402fbf]=_0x38a073[_0x36282b(0xe3)](_0x55a52f[_0x36282b(0x159)]),_0x1b876b=_0x38a073[_0x36282b(0x169)](null);return _0x38a073[_0x36282b(0x16e)](()=>(_0x169c43&&_0x1bb4b1['getLiveShareCoordinator'](_0x169c43['getUnitId']())[_0x36282b(0xdd)](_0x539f25=>{const _0x432921=_0x36282b;_0x2b47b0(_0x539f25),_0x1b876b[_0x432921(0x119)]=_0x539f25[_0x432921(0x133)][_0x432921(0x109)](_0x10a67e=>{_0x402fbf(_0x10a67e);});}),()=>{const _0x1c1a6d=_0x36282b;var _0x82db2f;(_0x82db2f=_0x1b876b['current'])==null||_0x82db2f[_0x1c1a6d(0xff)](),_0x1b876b[_0x1c1a6d(0x119)]=null;}),[_0x169c43,_0x1bb4b1]),_0x3bb2c0?_0xd07bb2[_0x36282b(0x106)](_0x4ebd71['Dropdown'],{'align':_0x36282b(0xd9),'disabled':_0x3f2c9a===_0x55a52f['OFFLINE'],'className':_0x36282b(0x101),'overlay':_0xd07bb2[_0x36282b(0x106)](_0x243342,{'status':_0x3f2c9a,'coordinator':_0x3bb2c0}),'children':_0xd07bb2[_0x36282b(0x106)]('button',{'className':_0x4ebd71['clsx'](_0x36282b(0x144),{'univer-cursor-not-allowed':_0x3f2c9a===_0x55a52f['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f2c9a!==_0x55a52f[_0x36282b(0xeb)]}),'type':_0x36282b(0x138),'children':_0xd07bb2[_0x36282b(0x106)](_0x3d3432,{'className':'univer-size-4'})})}):null;}function _0x243342(_0x49d738){const _0x343511=_0x4428de,{status:_0x9be067,coordinator:_0x31183c}=_0x49d738;switch(_0x9be067){case _0x55a52f[_0x343511(0x159)]:return _0xd07bb2[_0x343511(0x106)](_0x2692f6,{'coordinator':_0x31183c});case _0x55a52f[_0x343511(0x127)]:return _0xd07bb2['jsx'](_0x5a75e5,{'coordinator':_0x31183c});case _0x55a52f[_0x343511(0x1bf)]:return _0xd07bb2['jsx'](_0x5a937c,{'coordinator':_0x31183c});case _0x55a52f[_0x343511(0xeb)]:return _0xd07bb2[_0x343511(0x106)](_0x4f0e8b,{});case _0x55a52f['PRESENTING']:return _0xd07bb2[_0x343511(0x106)](_0x19f0a7,{'coordinator':_0x31183c});default:return null;}}function _0x2692f6(_0x13fb5c){const _0x411c10=_0x4428de,{coordinator:_0x137cec}=_0x13fb5c;return _0xd07bb2[_0x411c10(0x114)](_0xd07bb2['Fragment'],{'children':[_0xd07bb2[_0x411c10(0x106)](_0x411c10(0x167),{'className':_0x411c10(0x103),'children':_0x411c10(0x161)}),_0xd07bb2[_0x411c10(0x106)](_0x4ebd71[_0x411c10(0x13a)],{'onClick':()=>_0x137cec['tryStartPresenting'](),'children':_0x411c10(0x1ad)})]});}function _0x5a75e5(_0x337dd6){const _0x46f149=_0x4428de,{coordinator:_0x42235b}=_0x337dd6;return _0xd07bb2[_0x46f149(0x114)](_0xd07bb2['Fragment'],{'children':[_0xd07bb2[_0x46f149(0x106)](_0x46f149(0x167),{'className':_0x46f149(0x103),'children':_0x46f149(0x177)}),_0xd07bb2['jsx'](_0x4ebd71[_0x46f149(0x13a)],{'onClick':()=>_0x42235b[_0x46f149(0x166)](),'children':_0x46f149(0x1a7)})]});}function _0x5a937c(_0x4cd92c){const _0x2cae8c=_0x4428de,{coordinator:_0x329bef}=_0x4cd92c;return _0xd07bb2[_0x2cae8c(0x114)](_0xd07bb2[_0x2cae8c(0x141)],{'children':[_0xd07bb2['jsx'](_0x2cae8c(0x167),{'className':_0x2cae8c(0x103),'children':_0x2cae8c(0xde)}),_0xd07bb2['jsx'](_0x4ebd71[_0x2cae8c(0x13a)],{'variant':'text','onClick':()=>_0x329bef[_0x2cae8c(0x1a9)](),'children':_0x2cae8c(0x171)})]});}function _0x19f0a7(_0x474414){const _0x430a49=_0x4428de,{coordinator:_0x4aa383}=_0x474414;return _0xd07bb2[_0x430a49(0x114)](_0xd07bb2[_0x430a49(0x141)],{'children':[_0xd07bb2[_0x430a49(0x106)](_0x430a49(0x167),{'className':_0x430a49(0x103),'children':_0x430a49(0x14c)}),_0xd07bb2[_0x430a49(0x106)](_0x4ebd71[_0x430a49(0x13a)],{'variant':'default','onClick':()=>_0x4aa383['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x4f0e8b(){const _0x4d795e=_0x4428de;return _0xd07bb2[_0x4d795e(0x106)](_0xd07bb2[_0x4d795e(0x141)],{'children':_0x4d795e(0x182)});}var _0x3539f0=Object[_0x4428de(0x179)],_0x3fa493=(_0x5cb587,_0x37ce19,_0x1419de,_0x430b99)=>{const _0x562686=_0x4428de;for(var _0x48534f=_0x430b99>0x1?void 0x0:_0x430b99?_0x3539f0(_0x37ce19,_0x1419de):_0x37ce19,_0x543ddc=_0x5cb587[_0x562686(0xe5)]-0x1,_0xb25ea0;_0x543ddc>=0x0;_0x543ddc--)(_0xb25ea0=_0x5cb587[_0x543ddc])&&(_0x48534f=_0xb25ea0(_0x48534f)||_0x48534f);return _0x48534f;},_0x2ae9f0=(_0x2dca4e,_0x3ef130)=>(_0xd9e94b,_0x1f27f6)=>_0x3ef130(_0xd9e94b,_0x1f27f6,_0x2dca4e);_0x5daa75[_0x4428de(0x181)]=class extends _0xe6411e['Disposable']{constructor(_0x51293c,_0x4bef62){const _0x4d755a=_0x4428de;super(),this['_injector']=_0x51293c,this[_0x4d755a(0x1a2)]=_0x4bef62,this[_0x4d755a(0x185)]();}[_0x4428de(0x185)](){const _0x301db0=_0x4428de;this['disposeWithMe'](this[_0x301db0(0x1a2)]['registerComponent'](_0x2d58ab['BuiltInUIPart'][_0x301db0(0x17f)],()=>_0x2d58ab[_0x301db0(0x19a)](_0x53cb4b,this['_injector'])));}},_0x5daa75[_0x4428de(0x181)]=_0x3fa493([_0x2ae9f0(0x0,_0xe6411e['Inject'](_0xe6411e[_0x4428de(0x165)])),_0x2ae9f0(0x1,_0x2d58ab[_0x4428de(0x155)])],_0x5daa75[_0x4428de(0x181)]);const _0x2aec2d=_0x4428de(0x183),_0xf48bf0={};var _0x1b71d6=Object[_0x4428de(0x179)],_0x50cc0a=(_0x35ff52,_0x4acd3c,_0x199d23,_0x444841)=>{const _0x216d45=_0x4428de;for(var _0x391484=_0x444841>0x1?void 0x0:_0x444841?_0x1b71d6(_0x4acd3c,_0x199d23):_0x4acd3c,_0x4a3c7b=_0x35ff52[_0x216d45(0xe5)]-0x1,_0x359b72;_0x4a3c7b>=0x0;_0x4a3c7b--)(_0x359b72=_0x35ff52[_0x4a3c7b])&&(_0x391484=_0x359b72(_0x391484)||_0x391484);return _0x391484;},_0x3c9eeb=(_0x100304,_0x5066f0)=>(_0x558c01,_0x1283c1)=>_0x5066f0(_0x558c01,_0x1283c1,_0x100304);let _0x2b1961=class extends _0xe6411e[_0x4428de(0x104)]{constructor(_0x30bf78){const _0x36c55b=_0x4428de;super(),this[_0x36c55b(0x1aa)]=_0x30bf78,this[_0x36c55b(0x180)]();}[_0x4428de(0x180)](){const _0x2ace52=_0x4428de;[_0x1aa54[_0x2ace52(0x1a5)]['id'],_0x1aa54['SetScrollOperation']['id'],_0x3aa898[_0x2ace52(0xfa)]['id']][_0x2ace52(0x150)](_0x1d2556=>{const _0x1c5e55=_0x2ace52;this[_0x1c5e55(0x100)](this[_0x1c5e55(0x1aa)][_0x1c5e55(0x17d)](_0x1d2556));});}};_0x2b1961=_0x50cc0a([_0x3c9eeb(0x0,_0xe6411e['Inject'](_0x1fdc21))],_0x2b1961);var _0x15cf23=Object[_0x4428de(0x192)],_0x473674=Object['getOwnPropertyDescriptor'],_0x54ec15=(_0xfdd629,_0x28a0ed,_0x5b8d14)=>_0x28a0ed in _0xfdd629?_0x15cf23(_0xfdd629,_0x28a0ed,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b8d14}):_0xfdd629[_0x28a0ed]=_0x5b8d14,_0x2d5d62=(_0x32ff0f,_0x1e05ac,_0x4bba4a,_0x388db8)=>{const _0x42e616=_0x4428de;for(var _0x52c3a6=_0x388db8>0x1?void 0x0:_0x388db8?_0x473674(_0x1e05ac,_0x4bba4a):_0x1e05ac,_0x2dd074=_0x32ff0f[_0x42e616(0xe5)]-0x1,_0x5318b1;_0x2dd074>=0x0;_0x2dd074--)(_0x5318b1=_0x32ff0f[_0x2dd074])&&(_0x52c3a6=_0x5318b1(_0x52c3a6)||_0x52c3a6);return _0x52c3a6;},_0x273ebb=(_0x53232d,_0x4f0a32)=>(_0x1d0029,_0x46e7a1)=>_0x4f0a32(_0x1d0029,_0x46e7a1,_0x53232d),_0x6543ee=(_0x3718e3,_0x40d6f4,_0x47d854)=>_0x54ec15(_0x3718e3,typeof _0x40d6f4!='symbol'?_0x40d6f4+'':_0x40d6f4,_0x47d854);const _0x1edf53=_0x4428de(0x16f);_0x5daa75['UniverLiveSharePlugin']=class extends _0xe6411e[_0x4428de(0x1b4)]{constructor(_0x176375=_0xf48bf0,_0x311dda,_0x5b53c5){const _0x405f43=_0x4428de;super(),this[_0x405f43(0x102)]=_0x176375,this[_0x405f43(0x151)]=_0x311dda,this[_0x405f43(0x136)]=_0x5b53c5;const {..._0x587d66}=_0xe6411e[_0x405f43(0x126)]({},_0xf48bf0,this[_0x405f43(0x102)]);this['_configService'][_0x405f43(0x19b)](_0x2aec2d,_0x587d66);}[_0x4428de(0x146)](){const _0x44c423=_0x4428de;_0xe6411e[_0x44c423(0x13b)](this[_0x44c423(0x151)],_0xe6411e[_0x44c423(0x12a)]([[_0x1fdc21],[_0x5daa75['LiveShareController']],[_0x2b1961],[_0x5daa75[_0x44c423(0x181)]]],this[_0x44c423(0x102)][_0x44c423(0xf9)])),_0xe6411e[_0x44c423(0x1b6)](this[_0x44c423(0x151)],[[_0x2b1961]]);}[_0x4428de(0x193)](){const _0x544ea2=_0x4428de;_0xe6411e[_0x544ea2(0x1b6)](this['_injector'],[[_0x5daa75['DesktopLiveShareController']]]);}},_0x6543ee(_0x5daa75[_0x4428de(0x1b5)],_0x4428de(0x1ae),_0xe6411e[_0x4428de(0xfc)][_0x4428de(0x18f)]),_0x6543ee(_0x5daa75['UniverLiveSharePlugin'],'pluginName',_0x1edf53),_0x5daa75[_0x4428de(0x1b5)]=_0x2d5d62([_0xe6411e['DependentOn'](_0x507ad7[_0x4428de(0xfe)]),_0x273ebb(0x1,_0xe6411e[_0x4428de(0x1b3)](_0xe6411e[_0x4428de(0x165)])),_0x273ebb(0x2,_0xe6411e[_0x4428de(0x10f)])],_0x5daa75[_0x4428de(0x1b5)]),_0x5daa75['LiveShare']=_0x53cb4b,_0x5daa75[_0x4428de(0x128)]=_0x1fdc21,_0x5daa75[_0x4428de(0x152)]=_0x55a52f,Object[_0x4428de(0x192)](_0x5daa75,Symbol[_0x4428de(0x19c)],{'value':_0x4428de(0x137)});}));function _0x4be2(){const _0x33f91a=['memberID','url(#$1','currentColor','_reporters','_entities','getCurrentTypeOfUnit$','_startPresenting','mask','_univerInstanceService','UniverIcon','svg','_beIdle','override','SetWorksheetActiveOperation','values','UniverInstanceType','complete','UniverCollaborationClientPlugin','unsubscribe','disposeWithMe','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','_config','univer-mb-3\x20univer-w-full\x20univer-text-sm','Disposable','random','jsx','CollaborationSessionService','UNIVER_SHEET','subscribe','getLiveShareCoordinatorSync','event$','SessionStatus','4998077xWhRZT','map','IConfigService','colorChannel1','OPERATION','asObservable','_handleNewHost','jsxs','set','getMemberID','following','registerInitialStateReporter','current','has','stringify','init','throttleTime','getValue','@univerjs/sheets','4383664EDsMCS','includes','createInstance','_collabSession','displayName','_presenter','merge','FOLLOWING','LiveShareService','React','mergeOverrideWithDependencies','8920JYIoCT','getConfig','string','shouldShareOperation','LiveShareIcon','RxDisposable','97HCZFXn','LIVESHARE_OPERATION','status$','params','_handleOnline','_configService','Module','button','_fetchOperations','Button','registerDependencies','idSuffix','getLiveShareCoordinator','path','tag','not-following','Fragment','LiveShareController','UniverSheetsUi','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','sheet','onStarting','LiveShareCoordinator','_commandDisposable','LIVESHARE_FETCH_OPERATIONS','UniverUi','react/jsx-runtime','You\x27re\x20presenting\x20the\x20document','PRESENTING','getTypeOfUnitAdded$','useObservable','forEach','_injector','LiveShareStatus','add','children','IUIPartsService','_startFollowing','_collabSessionService','fill','IDLE','offline','parse','_status$','UniverProCollaborationClient','getInitialStates','stopPresenting','UniverProLiveShare','Present\x20this\x20document','find','725907yQJyJa','SAME_OPERATION_SHARE_INTERVAL','Injector','stopFollowing','div','CollaborationEvent','useRef','useDependency','@univerjs/design','@univerjs/core','_handleNewChangeSets','useEffect','UNIVER_LIVE_SHARE_PLUGIN','@univerjs/ui','Start\x20following','defIds','reverse','0\x200\x2017\x2017','LIVESHARE_REQUEST_HOST','evenodd','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','getOwnPropertyDescriptor','parseProtocolChangeset','dispose$','_status','registerSharedOperation','58780eWjETQ','HEADER_MENU','_init','DesktopLiveShareController','You\x27are\x20offline.','live-share.config','1764tzLBsD','_mountLiveShare','defs','createElement','trim','idle','CommandType','getStatus','clear','UniverCore','LIVESHARE_NEW_HOST','UNIVER_UNKNOWN','presenting','@univerjs-pro/collaboration-client','defineProperty','onRendered','4113AFHMxe','2139344LDmSmC','live-share-icon','rxjs','@univerjs-pro/collaboration','operators','connectInjector','setConfig','toStringTag','toDisposable','takeUntil','_startLiveShareCoordinator','onCommandExecuted','_unitID','_uiPartsService','ONLINE','DisposableCollection','SetZoomRatioOperation','sessionStatus$','Stop\x20following','BehaviorSubject','startFollowing','_liveShareService','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','presenter','Start','type','attrs','data','next','assign','Inject','Plugin','UniverLiveSharePlugin','touchDependencies','executeCommand','ICommandService','getTypeOfUnitDisposed$','_stopFollowing','substring','Subject','20176eCESyu','send','NOT_FOLLOWING','_commandService','get','1em','replace','function','_handleTerminate','_sharedOperations','operations','end','object','delete','pipe','then','You\x27re\x20not\x20following\x20the\x20presenter','xlink:href','requireSession','dispose','http://www.w3.org/2000/svg','useState','@univerjs/sheets-ui','length','_handleOperation','LIVESHARE_TERMINATE','symbol','toString','entries','OFFLINE','IUniverInstanceService'];_0x4be2=function(){return _0x33f91a;};return _0x4be2();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.14-nightly.
|
|
3
|
+
"version": "0.10.14-nightly.202511070939",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs/
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets
|
|
66
|
-
"@univerjs/ui": "0.10.14-nightly.
|
|
67
|
-
"@univerjs
|
|
60
|
+
"@univerjs-pro/collaboration": "0.10.14-nightly.202511070939",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.10.14-nightly.202511070939",
|
|
62
|
+
"@univerjs/core": "0.10.14-nightly.202511070939",
|
|
63
|
+
"@univerjs/engine-render": "0.10.14-nightly.202511070939",
|
|
64
|
+
"@univerjs/design": "0.10.14-nightly.202511070939",
|
|
65
|
+
"@univerjs/sheets": "0.10.14-nightly.202511070939",
|
|
66
|
+
"@univerjs/sheets-ui": "0.10.14-nightly.202511070939",
|
|
67
|
+
"@univerjs/ui": "0.10.14-nightly.202511070939"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|