@univerjs-pro/live-share 0.10.12-nightly.202510251119 → 0.10.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x23c103=_0x4f02;(function(_0x3bad85,_0x438b35){const _0x2397c2=_0x4f02,_0x411a0e=_0x3bad85();while(!![]){try{const _0x3e5ce2=parseInt(_0x2397c2(0x1cf))/0x1+-parseInt(_0x2397c2(0x1e6))/0x2+-parseInt(_0x2397c2(0x1e5))/0x3+parseInt(_0x2397c2(0x1d6))/0x4+-parseInt(_0x2397c2(0x1c7))/0x5+-parseInt(_0x2397c2(0x1d9))/0x6*(-parseInt(_0x2397c2(0x1ce))/0x7)+parseInt(_0x2397c2(0x1d7))/0x8;if(_0x3e5ce2===_0x438b35)break;else _0x411a0e['push'](_0x411a0e['shift']());}catch(_0x3d5713){_0x411a0e['push'](_0x411a0e['shift']());}}}(_0x1f6e,0x8fdaf));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[_0x23c103(0x1c6)]{[_0x23c103(0x1e7)](_0x2fa7c3,_0x393ff3,_0x110a0c,_0x2e60ee,_0x26d1af){const _0x5d9658=_0x23c103,_0x2c30ac=_0x2fa7c3[_0x5d9658(0x1db)](n['LiveShareController']),_0x39903d=_0x2fa7c3[_0x5d9658(0x1db)](g[_0x5d9658(0x1dc)]),_0x50b1f7=_0x393ff3[_0x5d9658(0x1e1)](),_0x141e99=_0x393ff3['getActiveSheet'](),_0x5a6f6f=_0x2c30ac[_0x5d9658(0x1e9)](_0x50b1f7);(_0x5a6f6f==null?void 0x0:_0x5a6f6f[_0x5d9658(0x1c5)]())!==n['LiveShareStatus'][_0x5d9658(0x1e2)]||(_0x110a0c[_0x5d9658(0x1cc)]()!==_0x141e99[_0x5d9658(0x1cc)]()&&this[_0x5d9658(0x1c8)][_0x5d9658(0x1d2)](u[_0x5d9658(0x1d4)]['id'],{'unitId':_0x50b1f7,'subUnitId':_0x110a0c[_0x5d9658(0x1cc)]()}),!_0x39903d[_0x5d9658(0x1e4)](_0x50b1f7))||_0x26d1af[_0x5d9658(0x1ca)](f[_0x5d9658(0x1d1)]['id'],{'unitId':_0x393ff3[_0x5d9658(0x1e1)](),'sheetId':_0x110a0c['getSheetId'](),'sheetViewStartRow':_0x2e60ee[_0x5d9658(0x1c9)],'sheetViewStartColumn':_0x2e60ee[_0x5d9658(0x1d5)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d['FRange']['extend'](w);class C extends a[_0x23c103(0x1ed)]{['getLiveShareStatus'](){const _0x11ab47=_0x23c103;var _0x5949ad,_0x1c372a;const _0x5f3eed=this[_0x11ab47(0x1dd)]['get'](n[_0x11ab47(0x1e0)]),_0x1f3f82=(_0x5949ad=this[_0x11ab47(0x1d8)]())==null?void 0x0:_0x5949ad[_0x11ab47(0x1da)]();if(!_0x1f3f82)throw new Error('No\x20active\x20workbook\x20found.');const _0x4b1bfe=_0x5f3eed[_0x11ab47(0x1e9)](_0x1f3f82);return(_0x1c372a=_0x4b1bfe==null?void 0x0:_0x4b1bfe[_0x11ab47(0x1c5)]())!=null?_0x1c372a:n['LiveShareStatus'][_0x11ab47(0x1eb)];}[_0x23c103(0x1de)](){const _0x1a03bf=_0x23c103;var _0x52b084;const _0x404083=this[_0x1a03bf(0x1dd)]['get'](n[_0x1a03bf(0x1e0)]),_0x2c6cf7=(_0x52b084=this[_0x1a03bf(0x1d8)]())==null?void 0x0:_0x52b084[_0x1a03bf(0x1da)]();if(!_0x2c6cf7)throw new Error(_0x1a03bf(0x1e3));const _0x216d31=_0x404083[_0x1a03bf(0x1e9)](_0x2c6cf7);if(!_0x216d31)throw new Error(_0x1a03bf(0x1d3));_0x216d31[_0x1a03bf(0x1de)]();}[_0x23c103(0x1ec)](){const _0x33b7ff=_0x23c103;var _0x364246;const _0x5dfd44=this[_0x33b7ff(0x1dd)]['get'](n[_0x33b7ff(0x1e0)]),_0x23f6cc=(_0x364246=this[_0x33b7ff(0x1d8)]())==null?void 0x0:_0x364246[_0x33b7ff(0x1da)]();if(!_0x23f6cc)throw new Error(_0x33b7ff(0x1e3));const _0x4cabef=_0x5dfd44[_0x33b7ff(0x1e9)](_0x23f6cc);if(!_0x4cabef)throw new Error(_0x33b7ff(0x1d3));_0x4cabef[_0x33b7ff(0x1ec)]();}[_0x23c103(0x1e8)](){const _0x39019b=_0x23c103;var _0x38453b;const _0x20f300=this[_0x39019b(0x1dd)]['get'](n[_0x39019b(0x1e0)]),_0x1c014d=(_0x38453b=this[_0x39019b(0x1d8)]())==null?void 0x0:_0x38453b['getId']();if(!_0x1c014d)throw new Error(_0x39019b(0x1e3));const _0x464e30=_0x20f300[_0x39019b(0x1e9)](_0x1c014d);if(!_0x464e30)throw new Error(_0x39019b(0x1d3));_0x464e30[_0x39019b(0x1cb)]();}[_0x23c103(0x1ea)](){const _0x458f75=_0x23c103;var _0x3189a9;const _0x53563b=this[_0x458f75(0x1dd)]['get'](n[_0x458f75(0x1e0)]),_0x26f6dd=(_0x3189a9=this[_0x458f75(0x1d8)]())==null?void 0x0:_0x3189a9[_0x458f75(0x1da)]();if(!_0x26f6dd)throw new Error(_0x458f75(0x1e3));const _0x4af9db=_0x53563b['getLiveShareCoordinatorSync'](_0x26f6dd);if(!_0x4af9db)throw new Error(_0x458f75(0x1d3));_0x4af9db['stopPresenting']();}}a[_0x23c103(0x1ed)][_0x23c103(0x1df)](C);function _0x4f02(_0x37247c,_0x4e6a47){const _0x1f6ef1=_0x1f6e();return _0x4f02=function(_0x4f02b6,_0x3ff9c7){_0x4f02b6=_0x4f02b6-0x1c5;let _0x3ad85d=_0x1f6ef1[_0x4f02b6];return _0x3ad85d;},_0x4f02(_0x37247c,_0x4e6a47);}function _0x1f6e(){const _0x524f3b=['getId','get','IRenderManagerService','_injector','startFollowing','extend','LiveShareController','getUnitId','PRESENTING','No\x20active\x20workbook\x20found.','getRenderById','2086005aznSTp','1887558YFJNTz','_initialize','startPresenting','getLiveShareCoordinatorSync','stopPresenting','IDLE','stopFollowing','FUniver','getStatus','FRange','5548730uPmQqA','_commandService','startRow','syncExecuteCommand','tryStartPresenting','getSheetId','LiveShareStatusEnum','194929irKORg','83612uLOjgr','FEnum','SetScrollOperation','executeCommand','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','SetWorksheetActiveOperation','startColumn','2653824vzpIRP','18277648CvwDWG','getActiveWorkbook','66JypVwe'];_0x1f6e=function(){return _0x524f3b;};return _0x1f6e();}class L extends a[_0x23c103(0x1d0)]{get[_0x23c103(0x1cd)](){return n['LiveShareStatus'];}}a[_0x23c103(0x1d0)][_0x23c103(0x1df)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x1531cf=_0xe3b6;(function(_0x12cae8,_0xe354ca){const _0x256f0f=_0xe3b6,_0x5ec3cd=_0x12cae8();while(!![]){try{const _0x30ed1b=parseInt(_0x256f0f(0x19e))/0x1*(-parseInt(_0x256f0f(0x184))/0x2)+-parseInt(_0x256f0f(0x136))/0x3*(-parseInt(_0x256f0f(0xd6))/0x4)+parseInt(_0x256f0f(0xdf))/0x5*(-parseInt(_0x256f0f(0x17f))/0x6)+parseInt(_0x256f0f(0x125))/0x7*(parseInt(_0x256f0f(0xfd))/0x8)+parseInt(_0x256f0f(0x11b))/0x9+-parseInt(_0x256f0f(0xe2))/0xa*(-parseInt(_0x256f0f(0x147))/0xb)+-parseInt(_0x256f0f(0x164))/0xc;if(_0x30ed1b===_0xe354ca)break;else _0x5ec3cd['push'](_0x5ec3cd['shift']());}catch(_0x5acedf){_0x5ec3cd['push'](_0x5ec3cd['shift']());}}}(_0x2435,0xdcc23));var T=Object[_0x1531cf(0x131)],U=(_0x57f1ff,_0x382b7a,_0x467dde)=>_0x382b7a in _0x57f1ff?T(_0x57f1ff,_0x382b7a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x467dde}):_0x57f1ff[_0x382b7a]=_0x467dde,_=(_0x54ec77,_0x5ac4c4,_0x33cdf0)=>U(_0x54ec77,typeof _0x5ac4c4!=_0x1531cf(0x182)?_0x5ac4c4+'':_0x5ac4c4,_0x33cdf0);Object['defineProperty'](exports,Symbol[_0x1531cf(0x10a)],{'value':_0x1531cf(0x138)});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:_0x45577d,..._0x5a2449}){const _0x3c55f0=_0x1531cf,{icon:_0x31f433,id:_0x80200c,className:_0x26808d,extend:_0x17c509,..._0x289cc2}=_0x5a2449,_0xb91285=(_0x3c55f0(0x155)+_0x80200c+'\x20'+(_0x26808d||''))[_0x3c55f0(0x12a)](),_0x1fd1a=v[_0x3c55f0(0x12c)]('_'+H());return j(_0x31f433,''+_0x80200c,{'defIds':_0x31f433['defIds'],'idSuffix':_0x1fd1a[_0x3c55f0(0x145)]},{'ref':_0x45577d,'className':_0xb91285,..._0x289cc2},_0x17c509);}function j(_0x2f1b75,_0x5b6fa6,_0x2dc053,_0x5a278d,_0x3be71d){const _0x49c644=_0x1531cf;return v[_0x49c644(0x16d)](_0x2f1b75[_0x49c644(0x10f)],{'key':_0x5b6fa6,...y(_0x2f1b75,_0x2dc053,_0x3be71d),..._0x5a278d},(F(_0x2f1b75,_0x2dc053)[_0x49c644(0x154)]||[])[_0x49c644(0x11f)]((_0x20ac13,_0x2714be)=>j(_0x20ac13,_0x5b6fa6+'-'+_0x2f1b75[_0x49c644(0x10f)]+'-'+_0x2714be,_0x2dc053,void 0x0,_0x3be71d)));}function y(_0x110186,_0x162e53,_0x336f86){const _0x63bac8=_0x1531cf,_0x5c11b7={..._0x110186[_0x63bac8(0xd2)]};_0x336f86!=null&&_0x336f86['colorChannel1']&&_0x5c11b7[_0x63bac8(0xfe)]===_0x63bac8(0x14b)&&(_0x5c11b7['fill']=_0x336f86[_0x63bac8(0x14b)]),_0x110186[_0x63bac8(0x10f)]===_0x63bac8(0xdc)&&_0x5c11b7['id']&&(_0x5c11b7['id']=_0x5c11b7['id']+_0x162e53[_0x63bac8(0x146)]),Object[_0x63bac8(0x13c)](_0x5c11b7)[_0x63bac8(0xce)](([_0x2005b5,_0x5ca3a5])=>{const _0x2f8e53=_0x63bac8;_0x2005b5==='mask'&&typeof _0x5ca3a5==_0x2f8e53(0x179)&&(_0x5c11b7[_0x2005b5]=_0x5ca3a5[_0x2f8e53(0x170)](/url\(#(.*)\)/,'url(#$1'+_0x162e53[_0x2f8e53(0x146)]+')'));});const {defIds:_0x58afae}=_0x162e53;return!_0x58afae||_0x58afae[_0x63bac8(0x10d)]===0x0||(_0x110186['tag']==='use'&&_0x5c11b7[_0x63bac8(0x171)]&&(_0x5c11b7['xlink:href']=_0x5c11b7['xlink:href']+_0x162e53['idSuffix']),Object['entries'](_0x5c11b7)[_0x63bac8(0xce)](([_0x332aff,_0x3e1149])=>{const _0x4a2b8f=_0x63bac8;typeof _0x3e1149==_0x4a2b8f(0x179)&&(_0x5c11b7[_0x332aff]=_0x3e1149[_0x4a2b8f(0x170)](/url\(#(.*)\)/,'url(#$1'+_0x162e53[_0x4a2b8f(0x146)]+')'));})),_0x5c11b7;}function F(_0x54ff44,_0x4335e7){const _0x54a67b=_0x1531cf;var _0x43ad99;const {defIds:_0x5c3922}=_0x4335e7;return!_0x5c3922||_0x5c3922[_0x54a67b(0x10d)]===0x0?_0x54ff44:_0x54ff44[_0x54a67b(0x10f)]===_0x54a67b(0x102)&&((_0x43ad99=_0x54ff44[_0x54a67b(0x154)])!=null&&_0x43ad99[_0x54a67b(0x10d)])?{..._0x54ff44,'children':_0x54ff44['children'][_0x54a67b(0x11f)](_0x2b9d6d=>typeof _0x2b9d6d['attrs']['id']==_0x54a67b(0x179)&&_0x5c3922&&_0x5c3922[_0x54a67b(0xdb)](_0x2b9d6d['attrs']['id'])?{..._0x2b9d6d,'attrs':{..._0x2b9d6d[_0x54a67b(0xd2)],'id':_0x2b9d6d[_0x54a67b(0xd2)]['id']+_0x4335e7[_0x54a67b(0x146)]}}:_0x2b9d6d)}:_0x54ff44;}function _0xe3b6(_0x12867e,_0x42c1bd){const _0x24351b=_0x2435();return _0xe3b6=function(_0xe3b672,_0x174f81){_0xe3b672=_0xe3b672-0xc9;let _0x4d9afb=_0x24351b[_0xe3b672];return _0x4d9afb;},_0xe3b6(_0x12867e,_0x42c1bd);}function H(){const _0x496029=_0x1531cf;return Math[_0x496029(0x130)]()[_0x496029(0x186)](0x24)['substring'](0x2,0x8);}x[_0x1531cf(0xd8)]='UniverIcon';const V={'tag':'svg','attrs':{'xmlns':_0x1531cf(0xcc),'fill':_0x1531cf(0xee),'viewBox':_0x1531cf(0x195),'width':_0x1531cf(0x18f),'height':_0x1531cf(0x18f)},'children':[{'tag':_0x1531cf(0xe0),'attrs':{'fill':_0x1531cf(0x16c),'d':_0x1531cf(0x103)}},{'tag':_0x1531cf(0xe0),'attrs':{'fill':_0x1531cf(0x16c),'d':_0x1531cf(0x109),'fillRule':_0x1531cf(0x197),'clipRule':'evenodd'}}]},R=v[_0x1531cf(0xea)](function(_0x2c47ba,_0xb452bc){const _0x89a8af=_0x1531cf;return v[_0x89a8af(0x16d)](x,Object[_0x89a8af(0x14f)]({},_0x2c47ba,{'id':_0x89a8af(0x12e),'ref':_0xb452bc,'icon':V}));});R['displayName']='LiveShareIcon';class E extends o[_0x1531cf(0x10e)]{constructor(){const _0x221dae=_0x1531cf;super(...arguments),_(this,_0x221dae(0x156),new Set()),_(this,_0x221dae(0x1a2),new Set());}[_0x1531cf(0x196)](_0x114581){const _0x5cf882=_0x1531cf;return this[_0x5cf882(0x156)][_0x5cf882(0x183)](_0x114581),o[_0x5cf882(0xfc)](()=>this[_0x5cf882(0x156)][_0x5cf882(0x19c)](_0x114581));}[_0x1531cf(0x12d)](_0x13ba00){const _0x3c60e6=_0x1531cf;return this[_0x3c60e6(0x1a2)][_0x3c60e6(0x183)](_0x13ba00),o[_0x3c60e6(0xfc)](()=>this[_0x3c60e6(0x1a2)][_0x3c60e6(0x19c)](_0x13ba00));}[_0x1531cf(0xeb)](_0x42283c){const _0x21c269=_0x1531cf;return this['_sharedOperations'][_0x21c269(0x149)](_0x42283c);}[_0x1531cf(0x143)](_0x159668){const _0x2d62bb=_0x1531cf;return Array[_0x2d62bb(0x14c)](this[_0x2d62bb(0x1a2)])['map'](_0x50f86a=>_0x50f86a(_0x159668));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x49b968,_0x4da93a,_0x155724,_0x3efba0)=>{const _0x34cdf4=_0x1531cf;for(var _0x3d41df=_0x3efba0>0x1?void 0x0:_0x3efba0?M(_0x4da93a,_0x155724):_0x4da93a,_0x1a74d1=_0x49b968[_0x34cdf4(0x10d)]-0x1,_0x4b8c9d;_0x1a74d1>=0x0;_0x1a74d1--)(_0x4b8c9d=_0x49b968[_0x1a74d1])&&(_0x3d41df=_0x4b8c9d(_0x3d41df)||_0x3d41df);return _0x3d41df;},S=(_0x571733,_0x30c200)=>(_0x897a2d,_0x49f3e7)=>_0x30c200(_0x897a2d,_0x49f3e7,_0x571733);exports[_0x1531cf(0x1a1)]=class extends o[_0x1531cf(0x192)]{constructor(_0x71d8e3,_0x220134,_0x41eda7){const _0x4312a9=_0x1531cf;super(),_(this,'_entities',new Map()),(this[_0x4312a9(0x117)]=_0x71d8e3,this[_0x4312a9(0x15a)]=_0x220134,this[_0x4312a9(0x14a)]=_0x41eda7,this[_0x4312a9(0x166)]());}async[_0x1531cf(0x13f)](_0x2d75e5){const _0x476a55=_0x1531cf;return this[_0x476a55(0xff)][_0x476a55(0x149)](_0x2d75e5)||await this[_0x476a55(0x13b)](_0x2d75e5),this['_entities']['get'](_0x2d75e5);}[_0x1531cf(0x13e)](_0x19f20b){const _0x288d82=_0x1531cf;var _0x26b982;return(_0x26b982=this[_0x288d82(0xff)][_0x288d82(0xe8)](_0x19f20b))!=null?_0x26b982:null;}[_0x1531cf(0x166)](){const _0x118a6d=_0x1531cf;this[_0x118a6d(0x117)][_0x118a6d(0xf4)](o[_0x118a6d(0x18c)]['UNIVER_SHEET'])['pipe'](I['takeUntil'](this[_0x118a6d(0x141)]))[_0x118a6d(0x12b)](async _0x4dea90=>{const _0x45c973=_0x118a6d,_0x1c8f62=_0x4dea90[_0x45c973(0xcf)]();this[_0x45c973(0xff)]['has'](_0x1c8f62)||this[_0x45c973(0x13b)](_0x1c8f62);}),this[_0x118a6d(0x117)][_0x118a6d(0x193)](o[_0x118a6d(0x18c)][_0x118a6d(0xe6)])['pipe'](I[_0x118a6d(0x104)](this['dispose$']))[_0x118a6d(0x12b)](_0x5a4b35=>{const _0x501f7b=_0x118a6d,_0x5abfb1=_0x5a4b35[_0x501f7b(0xcf)](),_0x1750c5=this['_entities'][_0x501f7b(0xe8)](_0x5abfb1);_0x1750c5==null||_0x1750c5[_0x501f7b(0x11e)]();});}async[_0x1531cf(0x13b)](_0x408ef6){const _0x1d0145=_0x1531cf,_0x38ca01=await this[_0x1d0145(0x14a)][_0x1d0145(0x19f)](_0x408ef6),_0x131e40=this['_injector'][_0x1d0145(0x16e)](exports['LiveShareCoordinator'],_0x408ef6,_0x38ca01);return _0x131e40['init'](),this['_entities'][_0x1d0145(0xf2)](_0x408ef6,_0x131e40),_0x131e40;}},exports[_0x1531cf(0x1a1)]=P([S(0x0,o[_0x1531cf(0x181)]),S(0x1,o[_0x1531cf(0xf8)](o[_0x1531cf(0x127)])),S(0x2,o[_0x1531cf(0xf8)](b[_0x1531cf(0xf0)]))],exports[_0x1531cf(0x1a1)]);var u=(_0x4970ef=>(_0x4970ef[_0x1531cf(0x190)]=_0x1531cf(0x163),_0x4970ef['IDLE']=_0x1531cf(0xf7),_0x4970ef['FOLLOWING']=_0x1531cf(0xda),_0x4970ef['NOT_FOLLOWING']='not-following',_0x4970ef[_0x1531cf(0x157)]='presenting',_0x4970ef))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x1531cf(0x168)]=class extends o[_0x1531cf(0x192)]{constructor(_0x4945f2,_0x1f3151,_0x354507,_0x11add4,_0x3183a6){const _0x42862f=_0x1531cf;super(),_(this,'_status$',new O[(_0x42862f(0xec))](_0x42862f(0xf7))),_(this,_0x42862f(0x107),this[_0x42862f(0xf5)][_0x42862f(0xf9)]()),_(this,_0x42862f(0x166),!0x1),_(this,_0x42862f(0x128),null),_(this,_0x42862f(0x129),null),(this[_0x42862f(0x148)]=_0x4945f2,this['_collabSession']=_0x1f3151,this[_0x42862f(0xd1)]=_0x354507,this[_0x42862f(0x142)]=_0x11add4,this[_0x42862f(0x185)]=_0x3183a6);}get[_0x1531cf(0x116)](){const _0x241c53=_0x1531cf;return this[_0x241c53(0xf5)]['getValue']();}[_0x1531cf(0x11e)](){const _0x38a589=_0x1531cf;var _0x29d5db;(_0x29d5db=this[_0x38a589(0x128)])==null||_0x29d5db['dispose'](),this[_0x38a589(0xf5)][_0x38a589(0xed)](_0x38a589(0xf7)),this[_0x38a589(0xf5)][_0x38a589(0xf3)]();}['getStatus'](){const _0x29e07e=_0x1531cf;return this[_0x29e07e(0x116)];}[_0x1531cf(0xcd)](){const _0x3e8116=_0x1531cf;this[_0x3e8116(0x166)]||(this[_0x3e8116(0x166)]=!0x0,this[_0x3e8116(0xe3)][_0x3e8116(0x135)]['pipe'](I[_0x3e8116(0x104)](this[_0x3e8116(0x141)]))[_0x3e8116(0x12b)](_0x16c4ba=>{const _0x540223=_0x3e8116;switch(_0x16c4ba){case b[_0x540223(0xe9)][_0x540223(0x190)]:this['_handleOffline']();break;case b[_0x540223(0xe9)][_0x540223(0x133)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x3e8116(0x120)][_0x3e8116(0x16f)](I[_0x3e8116(0x104)](this[_0x3e8116(0x141)]))[_0x3e8116(0x12b)](_0x30f23b=>{const _0x414efa=_0x3e8116,{eventID:_0x50c773}=_0x30f23b;switch(_0x50c773){case d[_0x414efa(0x19a)][_0x414efa(0x137)]:this[_0x414efa(0x180)](_0x30f23b);break;case d[_0x414efa(0x19a)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x30f23b);break;case d[_0x414efa(0x19a)][_0x414efa(0x13a)]:this[_0x414efa(0xdd)]();break;case d[_0x414efa(0x19a)][_0x414efa(0x188)]:this['_handleNewChangeSets'](_0x30f23b);break;}}));}[_0x1531cf(0x15d)](){const _0x2fe19c=_0x1531cf;this[_0x2fe19c(0xe3)][_0x2fe19c(0x132)]({'eventID':d[_0x2fe19c(0x19a)][_0x2fe19c(0x105)],'data':{'unitID':this[_0x2fe19c(0x148)],'userID':this[_0x2fe19c(0xe3)][_0x2fe19c(0x191)]()}},this['_unitID']);}[_0x1531cf(0x198)](){const _0x48bdbb=_0x1531cf;this[_0x48bdbb(0x116)]===_0x48bdbb(0x122)&&(this[_0x48bdbb(0xf5)]['next'](_0x48bdbb(0xf7)),this['_collabSession'][_0x48bdbb(0x132)]({'eventID':d[_0x48bdbb(0x19a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x48bdbb(0x148)]}},this[_0x48bdbb(0x148)]));}[_0x1531cf(0x19b)](){const _0x21c1ce=_0x1531cf;this['_status']==='not-following'&&(this[_0x21c1ce(0xf5)][_0x21c1ce(0xed)](_0x21c1ce(0xda)),this[_0x21c1ce(0x1a0)]());}[_0x1531cf(0x110)](){const _0x5268ed=_0x1531cf;this[_0x5268ed(0x116)]===_0x5268ed(0xda)&&this['_stopFollowing']();}[_0x1531cf(0x180)](_0x41622b){const _0x34134d=_0x1531cf,{presenter:_0x4b3847}=_0x41622b['data'],_0xe44f2d=this['_collabSession']['getMemberID']();this[_0x34134d(0x129)]=_0x4b3847,_0x4b3847===_0xe44f2d?(this[_0x34134d(0x194)](),this[_0x34134d(0x158)]()):this['_status']!==_0x34134d(0x18e)&&(this[_0x34134d(0xd3)](),this['_startFollowing']());}[_0x1531cf(0x11d)](){const _0x43759b=_0x1531cf,_0x56102e={'eventID':d['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x43759b(0x132)](_0x56102e,this[_0x43759b(0x148)]);}[_0x1531cf(0xdd)](){const _0x50a5fe=_0x1531cf;this['_presenter']=null,this[_0x50a5fe(0x116)]!=='presenting'&&this[_0x50a5fe(0x14d)]();}['_handleNewChangeSets'](_0x58e5f1){const _0x4b9278=_0x1531cf;if(this[_0x4b9278(0x116)]==='following'&&this[_0x4b9278(0x129)]===_0x58e5f1['data']['memberID']){const _0x30c747=d[_0x4b9278(0x101)](_0x58e5f1['data'])['mutations'][_0x4b9278(0x113)]()[_0x4b9278(0x162)](_0x4aa406=>_0x4aa406['id']===C[_0x4b9278(0xd0)]['id']);if(_0x30c747){const _0x3855f5=_0x30c747[_0x4b9278(0x11a)][_0x4b9278(0x160)],_0x17796d=_0x30c747[_0x4b9278(0x11a)]['sheet']['id'];setTimeout(()=>{const _0xced7a=_0x4b9278;this['_commandService'][_0xced7a(0x12f)](C[_0xced7a(0x121)]['id'],{'unitId':_0x3855f5,'subUnitId':_0x17796d},{'fromCollab':!0x0});});}}}[_0x1531cf(0x158)](){const _0x5d2438=_0x1531cf;this['_status$'][_0x5d2438(0xed)](_0x5d2438(0x122));const _0x387710=new Map(),_0x241c7c=this[_0x5d2438(0x128)]=new o[(_0x5d2438(0x10c))]();_0x241c7c[_0x5d2438(0x183)](o['toDisposable'](()=>{const _0x2378fd=_0x5d2438;_0x387710[_0x2378fd(0xce)](_0x61f0ea=>_0x61f0ea['complete']()),_0x387710[_0x2378fd(0x144)]();})),_0x241c7c['add'](this[_0x5d2438(0x185)][_0x5d2438(0x11c)](_0x108f80=>{const _0x2eb39c=_0x5d2438;var _0x583402;if(_0x108f80[_0x2eb39c(0xc9)]!==o[_0x2eb39c(0x167)][_0x2eb39c(0xd9)]||!this[_0x2eb39c(0x142)][_0x2eb39c(0xeb)](_0x108f80['id']))return;const {id:_0x2de26b}=_0x108f80;let _0x1443b5;_0x387710[_0x2eb39c(0x149)](_0x2de26b)?_0x1443b5=_0x387710['get'](_0x2de26b):(_0x1443b5=new O[(_0x2eb39c(0xfb))](),_0x387710[_0x2eb39c(0xf2)](_0x2de26b,_0x1443b5),_0x1443b5['pipe'](I[_0x2eb39c(0x10b)]((_0x583402=this['_configService']['getConfig'](k))!=null?_0x583402:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2eb39c(0x12b)](_0x50b3f7=>{const _0x5ad58b=_0x2eb39c;this[_0x5ad58b(0xe3)][_0x5ad58b(0x132)]({'eventID':d[_0x5ad58b(0x19a)][_0x5ad58b(0x174)],'data':{'unitID':this[_0x5ad58b(0x148)],'operations':{[_0x50b3f7['id']]:{'id':_0x50b3f7['id'],'params':JSON[_0x5ad58b(0x172)](_0x50b3f7['params'])}}}},this[_0x5ad58b(0x148)]);})),_0x1443b5[_0x2eb39c(0xed)](_0x108f80);})),this[_0x5d2438(0x142)]['getInitialStates'](this[_0x5d2438(0x148)])['forEach'](_0x3def1c=>this[_0x5d2438(0xe3)]['send']({'eventID':d[_0x5d2438(0x19a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5d2438(0x148)],'operations':{[_0x3def1c['id']]:{'id':_0x3def1c['id'],'params':JSON[_0x5d2438(0x172)](_0x3def1c['params'])}}}},this[_0x5d2438(0x148)]));}[_0x1531cf(0xd3)](){const _0x48d6ab=_0x1531cf;var _0x3a17b0;this['_status$']['next'](_0x48d6ab(0xf7)),(_0x3a17b0=this['_commandDisposable'])==null||_0x3a17b0[_0x48d6ab(0x11e)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x10e9fd=_0x1531cf;var _0x41b19a;(_0x41b19a=this[_0x10e9fd(0x128)])==null||_0x41b19a[_0x10e9fd(0x11e)](),this[_0x10e9fd(0xf5)][_0x10e9fd(0xed)](_0x10e9fd(0xda));}[_0x1531cf(0x14d)](){const _0x3ba9da=_0x1531cf;var _0x357a67;this[_0x3ba9da(0xf5)][_0x3ba9da(0xed)](_0x3ba9da(0xf7)),(_0x357a67=this[_0x3ba9da(0x128)])==null||_0x357a67['dispose'](),this[_0x3ba9da(0x128)]=null;}[_0x1531cf(0x194)](){const _0x3c149d=_0x1531cf;var _0x85f5cd;this[_0x3c149d(0xf5)][_0x3c149d(0xed)](_0x3c149d(0x18e)),(_0x85f5cd=this[_0x3c149d(0x128)])==null||_0x85f5cd[_0x3c149d(0x11e)]();}['_handleOperation'](_0x37efb0){const _0x1d7347=_0x1531cf;if([_0x1d7347(0x122),_0x1d7347(0x18e),_0x1d7347(0x163)][_0x1d7347(0xdb)](this[_0x1d7347(0x116)])||!_0x37efb0[_0x1d7347(0x169)][_0x1d7347(0x199)]||_0x37efb0[_0x1d7347(0x169)][_0x1d7347(0x199)]===this[_0x1d7347(0xe3)]['getMemberID']())return;this[_0x1d7347(0x116)]===_0x1d7347(0xf7)&&this[_0x1d7347(0x1a0)]();const _0x1fc7d6=_0x37efb0[_0x1d7347(0x169)][_0x1d7347(0xe7)];Object['values'](_0x1fc7d6)[_0x1d7347(0xce)](_0x1b00e2=>{const _0x11be2f=_0x1d7347;this[_0x11be2f(0x185)][_0x11be2f(0x12f)](_0x1b00e2['id'],_0x1b00e2[_0x11be2f(0x11a)]?JSON[_0x11be2f(0x15f)](_0x1b00e2['params']):null,{'fromCollab':!0x0});});}[_0x1531cf(0x126)](){const _0x2a6329=_0x1531cf;var _0x586caf;this[_0x2a6329(0xf5)][_0x2a6329(0xed)](_0x2a6329(0x163)),(_0x586caf=this[_0x2a6329(0x128)])==null||_0x586caf[_0x2a6329(0x11e)]();}['_handleOnline'](){const _0xa3a9f2=_0x1531cf;this[_0xa3a9f2(0xf5)]['next'](_0xa3a9f2(0xf7)),this[_0xa3a9f2(0x11d)]();}},exports[_0x1531cf(0x168)]=P([S(0x2,o[_0x1531cf(0x100)]),S(0x3,o[_0x1531cf(0xf8)](E)),S(0x4,o[_0x1531cf(0x119)])],exports[_0x1531cf(0x168)]);function $(){const _0x278f8d=_0x1531cf,_0x1a9c76=p[_0x278f8d(0x175)](exports['LiveShareController']),_0x21170c=p['useDependency'](o[_0x278f8d(0x181)]),_0x493e6d=p[_0x278f8d(0xde)](()=>_0x21170c['getCurrentTypeOfUnit$'](o[_0x278f8d(0x18c)][_0x278f8d(0xe6)]),void 0x0,!0x1,[]),[_0x3275c6,_0x20d545]=v[_0x278f8d(0xd4)](null),[_0x24ec3c,_0x35a77e]=v[_0x278f8d(0xd4)](u[_0x278f8d(0xe1)]),_0x526edc=v['useRef'](null);return v[_0x278f8d(0x106)](()=>(_0x493e6d&&_0x1a9c76['getLiveShareCoordinator'](_0x493e6d[_0x278f8d(0xcf)]())[_0x278f8d(0x189)](_0x1f2148=>{const _0x187a79=_0x278f8d;_0x20d545(_0x1f2148),_0x526edc[_0x187a79(0x145)]=_0x1f2148[_0x187a79(0x107)][_0x187a79(0x12b)](_0x19504e=>{_0x35a77e(_0x19504e);});}),()=>{const _0x142620=_0x278f8d;var _0x17cda7;(_0x17cda7=_0x526edc['current'])==null||_0x17cda7[_0x142620(0x151)](),_0x526edc['current']=null;}),[_0x493e6d,_0x1a9c76]),_0x3275c6?l['jsx'](f[_0x278f8d(0x123)],{'align':_0x278f8d(0xd5),'disabled':_0x24ec3c===u['OFFLINE'],'className':_0x278f8d(0x178),'overlay':l[_0x278f8d(0x176)](W,{'status':_0x24ec3c,'coordinator':_0x3275c6}),'children':l[_0x278f8d(0x176)](_0x278f8d(0xe4),{'className':f[_0x278f8d(0x124)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x24ec3c===u[_0x278f8d(0x190)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x24ec3c!==u[_0x278f8d(0x190)]}),'type':'button','children':l[_0x278f8d(0x176)](R,{'className':_0x278f8d(0x16b)})})}):null;}function W(_0x3897d3){const _0x2fffa5=_0x1531cf,{status:_0x22ba68,coordinator:_0x21a23f}=_0x3897d3;switch(_0x22ba68){case u['IDLE']:return l[_0x2fffa5(0x176)](G,{'coordinator':_0x21a23f});case u['FOLLOWING']:return l[_0x2fffa5(0x176)](B,{'coordinator':_0x21a23f});case u[_0x2fffa5(0x18d)]:return l['jsx'](Y,{'coordinator':_0x21a23f});case u[_0x2fffa5(0x190)]:return l['jsx'](J,{});case u[_0x2fffa5(0x157)]:return l[_0x2fffa5(0x176)](Z,{'coordinator':_0x21a23f});default:return null;}}function _0x2435(){const _0x2edbfe=['_handleOffline','Injector','_commandDisposable','_presenter','trim','subscribe','useRef','registerInitialStateReporter','live-share-icon','executeCommand','random','defineProperty','send','ONLINE','touchDependencies','sessionStatus$','111753BlGZVh','LIVESHARE_NEW_HOST','Module','UNIVER_UNKNOWN','LIVESHARE_TERMINATE','_startLiveShareCoordinator','entries','live-share.config','getLiveShareCoordinatorSync','getLiveShareCoordinator','LiveShareStatus','dispose$','_liveShareService','getInitialStates','clear','current','idSuffix','8248966ywZfyC','_unitID','has','_collabSessionService','colorChannel1','from','_beIdle','univer-mb-3\x20univer-w-full\x20univer-text-sm','assign','registerDependencies','unsubscribe','mergeOverrideWithDependencies','BuiltInUIPart','children','univerjs-icon\x20univerjs-icon-','_sharedOperations','PRESENTING','_startPresenting','default','_injector','Button','SetZoomRatioOperation','tryStartPresenting','registerComponent','parse','unitId','Plugin','find','offline','18767616MknBqu','getOwnPropertyDescriptor','_init','CommandType','LiveShareCoordinator','data','override','univer-size-4','currentColor','createElement','createInstance','pipe','replace','xlink:href','stringify','disposeWithMe','LIVESHARE_OPERATION','useDependency','jsx','Stop\x20following','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','string','You\x27re\x20not\x20following\x20the\x20presenter','UniverLiveSharePlugin','You\x27re\x20following\x20the\x20presenter','DependentOn','merge','6YaFDjS','_handleNewHost','IUniverInstanceService','symbol','add','2GEJDXx','_commandService','toString','Fragment','NEW_CHANGESETS','then','_config','connectInjector','UniverInstanceType','NOT_FOLLOWING','not-following','1em','OFFLINE','getMemberID','RxDisposable','getTypeOfUnitDisposed$','_stopFollowing','0\x200\x2017\x2017','registerSharedOperation','evenodd','stopPresenting','presenter','CollaborationEvent','startFollowing','delete','_uiPartsService','966774dpWEYT','requireSession','_startFollowing','LiveShareController','_reporters','type','You\x27re\x20presenting\x20the\x20document','SetScrollOperation','http://www.w3.org/2000/svg','init','forEach','getUnitId','InsertSheetMutation','_configService','attrs','_stopPresenting','useState','end','124oHTtci','div','displayName','OPERATION','following','includes','mask','_handleTerminate','useObservable','8379515TXESxE','path','IDLE','20ObxruT','_collabSession','button','Present\x20this\x20document','UNIVER_SHEET','operations','get','SessionStatus','forwardRef','shouldShareOperation','BehaviorSubject','next','none','onRendered','CollaborationSessionService','_mountLiveShare','set','complete','getTypeOfUnitAdded$','_status$','text','idle','Inject','asObservable','pluginName','Subject','toDisposable','3816XDkOgr','fill','_entities','IConfigService','parseProtocolChangeset','defs','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','takeUntil','LIVESHARE_REQUEST_HOST','useEffect','status$','LiveShare','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','toStringTag','throttleTime','DisposableCollection','length','Disposable','tag','stopFollowing','jsxs','DesktopLiveShareController','reverse','UNIVER_LIVE_SHARE_PLUGIN','You\x27are\x20offline.','_status','_univerInstanceService','setConfig','ICommandService','params','12837924DzRViB','onCommandExecuted','_fetchOperations','dispose','map','event$','SetWorksheetActiveOperation','presenting','Dropdown','clsx','15113wuirWs'];_0x2435=function(){return _0x2edbfe;};return _0x2435();}function G(_0x57490e){const _0x206a4e=_0x1531cf,{coordinator:_0x495b19}=_0x57490e;return l['jsxs'](l[_0x206a4e(0x187)],{'children':[l['jsx'](_0x206a4e(0xd7),{'className':_0x206a4e(0x14e),'children':_0x206a4e(0xe5)}),l[_0x206a4e(0x176)](f[_0x206a4e(0x15b)],{'onClick':()=>_0x495b19[_0x206a4e(0x15d)](),'children':'Start'})]});}function B(_0x4f0903){const _0x255068=_0x1531cf,{coordinator:_0x457fa7}=_0x4f0903;return l[_0x255068(0x111)](l[_0x255068(0x187)],{'children':[l[_0x255068(0x176)](_0x255068(0xd7),{'className':_0x255068(0x14e),'children':_0x255068(0x17c)}),l[_0x255068(0x176)](f[_0x255068(0x15b)],{'onClick':()=>_0x457fa7['stopFollowing'](),'children':_0x255068(0x177)})]});}function Y(_0x376b97){const _0x20bedf=_0x1531cf,{coordinator:_0x44d369}=_0x376b97;return l[_0x20bedf(0x111)](l[_0x20bedf(0x187)],{'children':[l['jsx'](_0x20bedf(0xd7),{'className':_0x20bedf(0x14e),'children':_0x20bedf(0x17a)}),l['jsx'](f[_0x20bedf(0x15b)],{'variant':_0x20bedf(0xf6),'onClick':()=>_0x44d369['startFollowing'](),'children':'Start\x20following'})]});}function Z(_0x29b331){const _0x702443=_0x1531cf,{coordinator:_0x5201f2}=_0x29b331;return l[_0x702443(0x111)](l['Fragment'],{'children':[l[_0x702443(0x176)](_0x702443(0xd7),{'className':_0x702443(0x14e),'children':_0x702443(0xca)}),l[_0x702443(0x176)](f[_0x702443(0x15b)],{'variant':_0x702443(0x159),'onClick':()=>_0x5201f2[_0x702443(0x198)](),'children':'Stop\x20presenting'})]});}function J(){const _0x3005a2=_0x1531cf;return l['jsx'](l[_0x3005a2(0x187)],{'children':_0x3005a2(0x115)});}var K=Object[_0x1531cf(0x165)],z=(_0x220e41,_0x476188,_0x448841,_0x17a034)=>{const _0x2443c0=_0x1531cf;for(var _0x2c6f35=_0x17a034>0x1?void 0x0:_0x17a034?K(_0x476188,_0x448841):_0x476188,_0x1272b7=_0x220e41[_0x2443c0(0x10d)]-0x1,_0x2c5b7e;_0x1272b7>=0x0;_0x1272b7--)(_0x2c5b7e=_0x220e41[_0x1272b7])&&(_0x2c6f35=_0x2c5b7e(_0x2c6f35)||_0x2c6f35);return _0x2c6f35;},L=(_0x5a4a4b,_0xaf969e)=>(_0x18e350,_0x32b95c)=>_0xaf969e(_0x18e350,_0x32b95c,_0x5a4a4b);exports[_0x1531cf(0x112)]=class extends o[_0x1531cf(0x10e)]{constructor(_0x1f746e,_0x58d79b){const _0x3504b7=_0x1531cf;super(),this['_injector']=_0x1f746e,this[_0x3504b7(0x19d)]=_0x58d79b,this[_0x3504b7(0xf1)]();}[_0x1531cf(0xf1)](){const _0x24190f=_0x1531cf;this['disposeWithMe'](this[_0x24190f(0x19d)][_0x24190f(0x15e)](p[_0x24190f(0x153)]['HEADER_MENU'],()=>p[_0x24190f(0x18b)]($,this[_0x24190f(0x15a)])));}},exports[_0x1531cf(0x112)]=z([L(0x0,o['Inject'](o['Injector'])),L(0x1,p['IUIPartsService'])],exports[_0x1531cf(0x112)]);const Q=_0x1531cf(0x13d),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x2d3c5e,_0x422aa7,_0x82a5c6,_0x5cd520)=>{const _0x3e00f7=_0x1531cf;for(var _0x1b9d76=_0x5cd520>0x1?void 0x0:_0x5cd520?X(_0x422aa7,_0x82a5c6):_0x422aa7,_0x4a0e8c=_0x2d3c5e[_0x3e00f7(0x10d)]-0x1,_0x529920;_0x4a0e8c>=0x0;_0x4a0e8c--)(_0x529920=_0x2d3c5e[_0x4a0e8c])&&(_0x1b9d76=_0x529920(_0x1b9d76)||_0x1b9d76);return _0x1b9d76;},te=(_0x27fa3f,_0x58f8a0)=>(_0x3ccdba,_0x3d6067)=>_0x58f8a0(_0x3ccdba,_0x3d6067,_0x27fa3f);let m=class extends o['Disposable']{constructor(_0x1b9dad){const _0x97d2b5=_0x1531cf;super(),this[_0x97d2b5(0x142)]=_0x1b9dad,this[_0x97d2b5(0x166)]();}[_0x1531cf(0x166)](){const _0x3e7315=_0x1531cf;[D[_0x3e7315(0x15c)]['id'],D[_0x3e7315(0xcb)]['id'],C[_0x3e7315(0x121)]['id']][_0x3e7315(0xce)](_0x3c9bc4=>{const _0x1b22d7=_0x3e7315;this[_0x1b22d7(0x173)](this[_0x1b22d7(0x142)]['registerSharedOperation'](_0x3c9bc4));});}};m=ee([te(0x0,o[_0x1531cf(0xf8)](E))],m);var ie=Object['defineProperty'],se=Object[_0x1531cf(0x165)],ne=(_0x16cd13,_0x908ac3,_0x1d90ce)=>_0x908ac3 in _0x16cd13?ie(_0x16cd13,_0x908ac3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d90ce}):_0x16cd13[_0x908ac3]=_0x1d90ce,re=(_0x44ddcf,_0x2c8f0f,_0x239775,_0x28a7c9)=>{const _0x48cb97=_0x1531cf;for(var _0x4dab75=_0x28a7c9>0x1?void 0x0:_0x28a7c9?se(_0x2c8f0f,_0x239775):_0x2c8f0f,_0xb21dab=_0x44ddcf[_0x48cb97(0x10d)]-0x1,_0x5aa874;_0xb21dab>=0x0;_0xb21dab--)(_0x5aa874=_0x44ddcf[_0xb21dab])&&(_0x4dab75=_0x5aa874(_0x4dab75)||_0x4dab75);return _0x4dab75;},N=(_0x2b4631,_0x152f08)=>(_0x3f305b,_0x36935b)=>_0x152f08(_0x3f305b,_0x36935b,_0x2b4631),A=(_0x2393f0,_0x2f3ab9,_0x3b24ee)=>ne(_0x2393f0,typeof _0x2f3ab9!=_0x1531cf(0x182)?_0x2f3ab9+'':_0x2f3ab9,_0x3b24ee);const oe=_0x1531cf(0x114);exports[_0x1531cf(0x17b)]=class extends o[_0x1531cf(0x161)]{constructor(_0x2aed31=w,_0xa1a9e0,_0x59deaf){const _0x1332a3=_0x1531cf;super(),this[_0x1332a3(0x18a)]=_0x2aed31,this[_0x1332a3(0x15a)]=_0xa1a9e0,this[_0x1332a3(0xd1)]=_0x59deaf;const {..._0x308b8a}=o[_0x1332a3(0x17e)]({},w,this[_0x1332a3(0x18a)]);this[_0x1332a3(0xd1)][_0x1332a3(0x118)](Q,_0x308b8a);}['onStarting'](){const _0x1488f3=_0x1531cf;o[_0x1488f3(0x150)](this[_0x1488f3(0x15a)],o[_0x1488f3(0x152)]([[E],[exports[_0x1488f3(0x1a1)]],[m],[exports['DesktopLiveShareController']]],this[_0x1488f3(0x18a)][_0x1488f3(0x16a)])),o[_0x1488f3(0x134)](this[_0x1488f3(0x15a)],[[m]]);}[_0x1531cf(0xef)](){const _0x2fd15f=_0x1531cf;o[_0x2fd15f(0x134)](this[_0x2fd15f(0x15a)],[[exports[_0x2fd15f(0x112)]]]);}},A(exports['UniverLiveSharePlugin'],_0x1531cf(0xc9),o[_0x1531cf(0x18c)][_0x1531cf(0x139)]),A(exports['UniverLiveSharePlugin'],_0x1531cf(0xfa),oe),exports[_0x1531cf(0x17b)]=re([o[_0x1531cf(0x17d)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x1531cf(0xf8)](o['Injector'])),N(0x2,o[_0x1531cf(0x100)])],exports['UniverLiveSharePlugin']),exports[_0x1531cf(0x108)]=$,exports['LiveShareService']=E,exports[_0x1531cf(0x140)]=u;
|
|
1
|
+
'use strict';function _0x44ba(_0x52a5f6,_0x1aba47){const _0x34ff6a=_0x34ff();return _0x44ba=function(_0x44baff,_0x2767d2){_0x44baff=_0x44baff-0xd7;let _0x28d3f3=_0x34ff6a[_0x44baff];return _0x28d3f3;},_0x44ba(_0x52a5f6,_0x1aba47);}const _0x1b3401=_0x44ba;function _0x34ff(){const _0x44af3b=['jsx','_presenter','text','idSuffix','displayName','_handleOffline','defs','Plugin','LIVESHARE_FETCH_OPERATIONS','getUnitId','dispose','408695jXdDEf','createInstance','values','random','You\x27re\x20not\x20following\x20the\x20presenter','_handleOnline','IUniverInstanceService','touchDependencies','send','BuiltInUIPart','Inject','complete','evenodd','symbol','_stopFollowing','toString','_unitID','_beIdle','_fetchOperations','_injector','get','map','params','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','pluginName','UNIVER_SHEET','_stopPresenting','_mountLiveShare','BehaviorSubject','_status','PRESENTING','NEW_CHANGESETS','ICommandService','11283003oJNJwD','tryStartPresenting','button','end','jsxs','SetWorksheetActiveOperation','getMemberID','shouldShareOperation','CollaborationSessionService','846774IVBTvg','_collabSession','override','includes','pipe','not-following','attrs','disposeWithMe','dispose$','createElement','defIds','none','CollaborationEvent','getCurrentTypeOfUnit$','_init','_reporters','set','LIVESHARE_OPERATION','http://www.w3.org/2000/svg','clsx','UNIVER_LIVE_SHARE_PLUGIN','xlink:href','then','Start\x20following','_commandDisposable','status$','UniverInstanceType','asObservable','Disposable','_commandService','2661118mtgvrz','following','idle','_uiPartsService','live-share-icon','SessionStatus','string','data','mutations','_handleTerminate','DependentOn','UniverLiveSharePlugin','url(#$1','has','find','Start','SetZoomRatioOperation','2986047uqXDOP','defineProperty','DisposableCollection','throttleTime','1em','parse','Stop\x20following','_entities','tag','add','use','init','CommandType','executeCommand','toDisposable','path','SetScrollOperation','clear','presenting','Fragment','mask','length','currentColor','delete','registerSharedOperation','replace','offline','IConfigService','Injector','Module','stringify','sessionStatus$','_startLiveShareCoordinator','_configService','subscribe','useEffect','_status$','stopPresenting','onCommandExecuted','event$','_sharedOperations','univerjs-icon\x20univerjs-icon-','OFFLINE','_handleOperation','mergeOverrideWithDependencies','LiveShareIcon','getOwnPropertyDescriptor','IDLE','entries','getLiveShareCoordinator','sheet','merge','next','getTypeOfUnitDisposed$','default','useState','_startPresenting','forEach','Stop\x20presenting','_collabSessionService','DesktopLiveShareController','InsertSheetMutation','onStarting','RxDisposable','getInitialStates','0\x200\x2017\x2017','8VcwAzu','children','trim','univer-size-4','FOLLOWING','parseProtocolChangeset','useObservable','118824VTaAXM','assign','from','_handleNewChangeSets','div','getTypeOfUnitAdded$','registerInitialStateReporter','You\x27are\x20offline.','NOT_FOLLOWING','5CqVSKA','HEADER_MENU','LiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','_config','LiveShareController','getStatus','stopFollowing','fill','univer-mb-3\x20univer-w-full\x20univer-text-sm','colorChannel1','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','Subject','LIVESHARE_TERMINATE','_univerInstanceService','useRef','takeUntil','LiveShareService','205308RjLldk','unitId','live-share.config','registerComponent','UNIVER_UNKNOWN','UniverIcon','LIVESHARE_NEW_HOST','Button','_startFollowing','You\x27re\x20presenting\x20the\x20document','type','startFollowing','_liveShareService'];_0x34ff=function(){return _0x44af3b;};return _0x34ff();}(function(_0x38fefd,_0x3ceeed){const _0x271de1=_0x44ba,_0x100daf=_0x38fefd();while(!![]){try{const _0x2c595a=-parseInt(_0x271de1(0x197))/0x1+-parseInt(_0x271de1(0x13d))/0x2+parseInt(_0x271de1(0x14e))/0x3+-parseInt(_0x271de1(0xdd))/0x4*(-parseInt(_0x271de1(0x1a0))/0x5)+-parseInt(_0x271de1(0x11f))/0x6+-parseInt(_0x271de1(0xf5))/0x7*(-parseInt(_0x271de1(0x190))/0x8)+parseInt(_0x271de1(0x116))/0x9;if(_0x2c595a===_0x3ceeed)break;else _0x100daf['push'](_0x100daf['shift']());}catch(_0x24b550){_0x100daf['push'](_0x100daf['shift']());}}}(_0x34ff,0xbb8d8));var T=Object[_0x1b3401(0x14f)],U=(_0x22136e,_0x5dddf1,_0x5d8159)=>_0x5dddf1 in _0x22136e?T(_0x22136e,_0x5dddf1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d8159}):_0x22136e[_0x5dddf1]=_0x5d8159,_=(_0x580fed,_0x57a8a2,_0x3b5983)=>U(_0x580fed,typeof _0x57a8a2!=_0x1b3401(0x102)?_0x57a8a2+'':_0x57a8a2,_0x3b5983);Object[_0x1b3401(0x14f)](exports,Symbol['toStringTag'],{'value':_0x1b3401(0x16b)});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:_0x484797,..._0x34c744}){const _0x5e1876=_0x1b3401,{icon:_0x4a328f,id:_0x317108,className:_0x58a079,extend:_0x5eff59,..._0x42500d}=_0x34c744,_0x4f40d8=(_0x5e1876(0x177)+_0x317108+'\x20'+(_0x58a079||''))[_0x5e1876(0x192)](),_0x21687a=v[_0x5e1876(0xda)]('_'+H());return j(_0x4a328f,''+_0x317108,{'defIds':_0x4a328f[_0x5e1876(0x129)],'idSuffix':_0x21687a[_0x5e1876(0x1ac)]},{'ref':_0x484797,'className':_0x4f40d8,..._0x42500d},_0x5eff59);}function j(_0xb03a7c,_0x1bb4c6,_0x55fe50,_0x4a59a3,_0x3625db){const _0x1b9ffa=_0x1b3401;return v[_0x1b9ffa(0x128)](_0xb03a7c[_0x1b9ffa(0x156)],{'key':_0x1bb4c6,...y(_0xb03a7c,_0x55fe50,_0x3625db),..._0x4a59a3},(F(_0xb03a7c,_0x55fe50)['children']||[])[_0x1b9ffa(0x10a)]((_0x1e4e98,_0x59e63a)=>j(_0x1e4e98,_0x1bb4c6+'-'+_0xb03a7c['tag']+'-'+_0x59e63a,_0x55fe50,void 0x0,_0x3625db)));}function y(_0x5a3172,_0x207e4b,_0x2755eb){const _0x59c8b7=_0x1b3401,_0x5bbd9d={..._0x5a3172[_0x59c8b7(0x125)]};_0x2755eb!=null&&_0x2755eb[_0x59c8b7(0x1aa)]&&_0x5bbd9d[_0x59c8b7(0x1a8)]===_0x59c8b7(0x1aa)&&(_0x5bbd9d[_0x59c8b7(0x1a8)]=_0x2755eb[_0x59c8b7(0x1aa)]),_0x5a3172['tag']==='mask'&&_0x5bbd9d['id']&&(_0x5bbd9d['id']=_0x5bbd9d['id']+_0x207e4b[_0x59c8b7(0xed)]),Object[_0x59c8b7(0x17e)](_0x5bbd9d)['forEach'](([_0x183e74,_0x2be75d])=>{const _0x1cb93f=_0x59c8b7;_0x183e74===_0x1cb93f(0x162)&&typeof _0x2be75d==_0x1cb93f(0x143)&&(_0x5bbd9d[_0x183e74]=_0x2be75d[_0x1cb93f(0x167)](/url\(#(.*)\)/,_0x1cb93f(0x149)+_0x207e4b['idSuffix']+')'));});const {defIds:_0x153cb0}=_0x207e4b;return!_0x153cb0||_0x153cb0[_0x59c8b7(0x163)]===0x0||(_0x5a3172[_0x59c8b7(0x156)]===_0x59c8b7(0x158)&&_0x5bbd9d[_0x59c8b7(0x134)]&&(_0x5bbd9d[_0x59c8b7(0x134)]=_0x5bbd9d[_0x59c8b7(0x134)]+_0x207e4b['idSuffix']),Object[_0x59c8b7(0x17e)](_0x5bbd9d)[_0x59c8b7(0x187)](([_0x5c88be,_0x5c302c])=>{const _0x34f08f=_0x59c8b7;typeof _0x5c302c=='string'&&(_0x5bbd9d[_0x5c88be]=_0x5c302c[_0x34f08f(0x167)](/url\(#(.*)\)/,_0x34f08f(0x149)+_0x207e4b[_0x34f08f(0xed)]+')'));})),_0x5bbd9d;}function F(_0x3c1fa6,_0x4f7188){const _0x4740f1=_0x1b3401;var _0x1b4307;const {defIds:_0x4245f8}=_0x4f7188;return!_0x4245f8||_0x4245f8[_0x4740f1(0x163)]===0x0?_0x3c1fa6:_0x3c1fa6[_0x4740f1(0x156)]===_0x4740f1(0xf0)&&((_0x1b4307=_0x3c1fa6[_0x4740f1(0x191)])!=null&&_0x1b4307[_0x4740f1(0x163)])?{..._0x3c1fa6,'children':_0x3c1fa6['children'][_0x4740f1(0x10a)](_0x5d2d35=>typeof _0x5d2d35['attrs']['id']==_0x4740f1(0x143)&&_0x4245f8&&_0x4245f8[_0x4740f1(0x122)](_0x5d2d35[_0x4740f1(0x125)]['id'])?{..._0x5d2d35,'attrs':{..._0x5d2d35[_0x4740f1(0x125)],'id':_0x5d2d35[_0x4740f1(0x125)]['id']+_0x4f7188[_0x4740f1(0xed)]}}:_0x5d2d35)}:_0x3c1fa6;}function H(){const _0x39f34b=_0x1b3401;return Math[_0x39f34b(0xf8)]()[_0x39f34b(0x104)](0x24)['substring'](0x2,0x8);}x[_0x1b3401(0xee)]=_0x1b3401(0xe2);const V={'tag':'svg','attrs':{'xmlns':_0x1b3401(0x131),'fill':_0x1b3401(0x12a),'viewBox':_0x1b3401(0x18f),'width':'1em','height':_0x1b3401(0x152)},'children':[{'tag':_0x1b3401(0x15d),'attrs':{'fill':_0x1b3401(0x164),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x1b3401(0x164),'d':_0x1b3401(0x1ab),'fillRule':_0x1b3401(0x101),'clipRule':_0x1b3401(0x101)}}]},R=v['forwardRef'](function(_0x205bca,_0x3167f2){const _0x4add07=_0x1b3401;return v[_0x4add07(0x128)](x,Object[_0x4add07(0x198)]({},_0x205bca,{'id':_0x4add07(0x141),'ref':_0x3167f2,'icon':V}));});R[_0x1b3401(0xee)]=_0x1b3401(0x17b);class E extends o[_0x1b3401(0x13b)]{constructor(){const _0x5371cb=_0x1b3401;super(...arguments),_(this,_0x5371cb(0x176),new Set()),_(this,'_reporters',new Set());}[_0x1b3401(0x166)](_0x7f7ce9){const _0x5af53c=_0x1b3401;return this[_0x5af53c(0x176)][_0x5af53c(0x157)](_0x7f7ce9),o[_0x5af53c(0x15c)](()=>this[_0x5af53c(0x176)][_0x5af53c(0x165)](_0x7f7ce9));}[_0x1b3401(0x19d)](_0x2e0b22){const _0x59c209=_0x1b3401;return this['_reporters']['add'](_0x2e0b22),o[_0x59c209(0x15c)](()=>this['_reporters']['delete'](_0x2e0b22));}[_0x1b3401(0x11d)](_0x251a9c){const _0x3c9cce=_0x1b3401;return this[_0x3c9cce(0x176)][_0x3c9cce(0x14a)](_0x251a9c);}[_0x1b3401(0x18e)](_0x2a4f67){const _0x10c810=_0x1b3401;return Array[_0x10c810(0x199)](this[_0x10c810(0x12e)])[_0x10c810(0x10a)](_0x316c64=>_0x316c64(_0x2a4f67));}}var M=Object[_0x1b3401(0x17c)],P=(_0x48982a,_0x59aaaf,_0x6bb4e0,_0x279717)=>{const _0x1b0d96=_0x1b3401;for(var _0x36d47b=_0x279717>0x1?void 0x0:_0x279717?M(_0x59aaaf,_0x6bb4e0):_0x59aaaf,_0x12baf5=_0x48982a[_0x1b0d96(0x163)]-0x1,_0x32f462;_0x12baf5>=0x0;_0x12baf5--)(_0x32f462=_0x48982a[_0x12baf5])&&(_0x36d47b=_0x32f462(_0x36d47b)||_0x36d47b);return _0x36d47b;},S=(_0xe60488,_0x321d19)=>(_0x3a4186,_0x466226)=>_0x321d19(_0x3a4186,_0x466226,_0xe60488);exports[_0x1b3401(0x1a5)]=class extends o[_0x1b3401(0x18d)]{constructor(_0x22aedc,_0x2e8cde,_0x4207cd){const _0x268378=_0x1b3401;super(),_(this,_0x268378(0x155),new Map()),(this[_0x268378(0xd9)]=_0x22aedc,this[_0x268378(0x108)]=_0x2e8cde,this['_collabSessionService']=_0x4207cd,this['_init']());}async[_0x1b3401(0x17f)](_0x1f68cd){const _0x583453=_0x1b3401;return this[_0x583453(0x155)][_0x583453(0x14a)](_0x1f68cd)||await this[_0x583453(0x16e)](_0x1f68cd),this[_0x583453(0x155)][_0x583453(0x109)](_0x1f68cd);}['getLiveShareCoordinatorSync'](_0x185a5d){const _0x4d81e3=_0x1b3401;var _0x5673c4;return(_0x5673c4=this[_0x4d81e3(0x155)][_0x4d81e3(0x109)](_0x185a5d))!=null?_0x5673c4:null;}[_0x1b3401(0x12d)](){const _0x5694d9=_0x1b3401;this[_0x5694d9(0xd9)][_0x5694d9(0x19c)](o[_0x5694d9(0x139)][_0x5694d9(0x10e)])['pipe'](I[_0x5694d9(0xdb)](this[_0x5694d9(0x127)]))[_0x5694d9(0x170)](async _0x16f6b8=>{const _0x22b5a7=_0x5694d9,_0x17bf87=_0x16f6b8[_0x22b5a7(0xf3)]();this[_0x22b5a7(0x155)][_0x22b5a7(0x14a)](_0x17bf87)||this['_startLiveShareCoordinator'](_0x17bf87);}),this['_univerInstanceService'][_0x5694d9(0x183)](o[_0x5694d9(0x139)][_0x5694d9(0x10e)])['pipe'](I['takeUntil'](this[_0x5694d9(0x127)]))[_0x5694d9(0x170)](_0x56e555=>{const _0x5c1244=_0x5694d9,_0x5cc818=_0x56e555[_0x5c1244(0xf3)](),_0x4b1dfe=this['_entities'][_0x5c1244(0x109)](_0x5cc818);_0x4b1dfe==null||_0x4b1dfe[_0x5c1244(0xf4)]();});}async[_0x1b3401(0x16e)](_0x187341){const _0x276761=_0x1b3401,_0x3cc6f7=await this[_0x276761(0x189)]['requireSession'](_0x187341),_0x3010be=this[_0x276761(0x108)][_0x276761(0xf6)](exports[_0x276761(0x1a2)],_0x187341,_0x3cc6f7);return _0x3010be[_0x276761(0x159)](),this[_0x276761(0x155)][_0x276761(0x12f)](_0x187341,_0x3010be),_0x3010be;}},exports[_0x1b3401(0x1a5)]=P([S(0x0,o[_0x1b3401(0xfb)]),S(0x1,o['Inject'](o[_0x1b3401(0x16a)])),S(0x2,o['Inject'](b[_0x1b3401(0x11e)]))],exports[_0x1b3401(0x1a5)]);var u=(_0x3f4010=>(_0x3f4010[_0x1b3401(0x178)]=_0x1b3401(0x168),_0x3f4010['IDLE']=_0x1b3401(0x13f),_0x3f4010[_0x1b3401(0x194)]=_0x1b3401(0x13e),_0x3f4010[_0x1b3401(0x19f)]='not-following',_0x3f4010[_0x1b3401(0x113)]=_0x1b3401(0x160),_0x3f4010))(u||{});const k=_0x1b3401(0x1a3),q=0xc8;exports[_0x1b3401(0x1a2)]=class extends o['RxDisposable']{constructor(_0x500f41,_0x27a632,_0x3470b3,_0x513958,_0x25e7ed){const _0x20118b=_0x1b3401;super(),_(this,_0x20118b(0x172),new O[(_0x20118b(0x111))](_0x20118b(0x13f))),_(this,_0x20118b(0x138),this[_0x20118b(0x172)][_0x20118b(0x13a)]()),_(this,'_init',!0x1),_(this,_0x20118b(0x137),null),_(this,_0x20118b(0xeb),null),(this[_0x20118b(0x105)]=_0x500f41,this[_0x20118b(0x120)]=_0x27a632,this[_0x20118b(0x16f)]=_0x3470b3,this[_0x20118b(0xe9)]=_0x513958,this[_0x20118b(0x13c)]=_0x25e7ed);}get[_0x1b3401(0x112)](){const _0x3a21b0=_0x1b3401;return this[_0x3a21b0(0x172)]['getValue']();}['dispose'](){const _0x3e0628=_0x1b3401;var _0x446f8b;(_0x446f8b=this[_0x3e0628(0x137)])==null||_0x446f8b[_0x3e0628(0xf4)](),this[_0x3e0628(0x172)]['next']('idle'),this[_0x3e0628(0x172)][_0x3e0628(0x100)]();}[_0x1b3401(0x1a6)](){const _0x28670e=_0x1b3401;return this[_0x28670e(0x112)];}[_0x1b3401(0x159)](){const _0xf7774b=_0x1b3401;this['_init']||(this[_0xf7774b(0x12d)]=!0x0,this[_0xf7774b(0x120)][_0xf7774b(0x16d)][_0xf7774b(0x123)](I['takeUntil'](this[_0xf7774b(0x127)]))['subscribe'](_0xcd1218=>{const _0x45f528=_0xf7774b;switch(_0xcd1218){case b['SessionStatus']['OFFLINE']:this[_0x45f528(0xef)]();break;case b[_0x45f528(0x142)]['ONLINE']:this[_0x45f528(0xfa)]();break;}}),this[_0xf7774b(0x120)][_0xf7774b(0x175)]['pipe'](I[_0xf7774b(0xdb)](this['dispose$']))[_0xf7774b(0x170)](_0x4c7916=>{const _0x190586=_0xf7774b,{eventID:_0x210ba4}=_0x4c7916;switch(_0x210ba4){case d['CollaborationEvent'][_0x190586(0xe3)]:this['_handleNewHost'](_0x4c7916);break;case d['CollaborationEvent'][_0x190586(0x130)]:this['_handleOperation'](_0x4c7916);break;case d[_0x190586(0x12b)][_0x190586(0xd8)]:this[_0x190586(0x146)]();break;case d[_0x190586(0x12b)][_0x190586(0x114)]:this['_handleNewChangeSets'](_0x4c7916);break;}}));}[_0x1b3401(0x117)](){const _0x2336f5=_0x1b3401;this[_0x2336f5(0x120)][_0x2336f5(0xfd)]({'eventID':d[_0x2336f5(0x12b)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x2336f5(0x11c)]()}},this[_0x2336f5(0x105)]);}[_0x1b3401(0x173)](){const _0x35c3bd=_0x1b3401;this[_0x35c3bd(0x112)]===_0x35c3bd(0x160)&&(this[_0x35c3bd(0x172)]['next'](_0x35c3bd(0x13f)),this[_0x35c3bd(0x120)][_0x35c3bd(0xfd)]({'eventID':d[_0x35c3bd(0x12b)][_0x35c3bd(0xd8)],'data':{'unitID':this[_0x35c3bd(0x105)]}},this[_0x35c3bd(0x105)]));}[_0x1b3401(0xe8)](){const _0x199b03=_0x1b3401;this[_0x199b03(0x112)]===_0x199b03(0x124)&&(this['_status$']['next']('following'),this[_0x199b03(0xe5)]());}[_0x1b3401(0x1a7)](){const _0x57e76b=_0x1b3401;this['_status']===_0x57e76b(0x13e)&&this[_0x57e76b(0x103)]();}['_handleNewHost'](_0x2258a4){const _0x22c09c=_0x1b3401,{presenter:_0x1bbf6b}=_0x2258a4['data'],_0x2a3179=this[_0x22c09c(0x120)][_0x22c09c(0x11c)]();this['_presenter']=_0x1bbf6b,_0x1bbf6b===_0x2a3179?(this[_0x22c09c(0x103)](),this[_0x22c09c(0x186)]()):this[_0x22c09c(0x112)]!=='not-following'&&(this[_0x22c09c(0x10f)](),this[_0x22c09c(0xe5)]());}[_0x1b3401(0x107)](){const _0x505571=_0x1b3401,_0x279fc8={'eventID':d['CollaborationEvent'][_0x505571(0xf2)]};this[_0x505571(0x120)][_0x505571(0xfd)](_0x279fc8,this[_0x505571(0x105)]);}[_0x1b3401(0x146)](){const _0x13572c=_0x1b3401;this['_presenter']=null,this[_0x13572c(0x112)]!==_0x13572c(0x160)&&this[_0x13572c(0x106)]();}[_0x1b3401(0x19a)](_0x44acb1){const _0x112818=_0x1b3401;if(this[_0x112818(0x112)]==='following'&&this[_0x112818(0xeb)]===_0x44acb1[_0x112818(0x144)]['memberID']){const _0x393a2d=d[_0x112818(0x195)](_0x44acb1[_0x112818(0x144)])[_0x112818(0x145)]['reverse']()[_0x112818(0x14b)](_0x39e87f=>_0x39e87f['id']===C[_0x112818(0x18b)]['id']);if(_0x393a2d){const _0x557147=_0x393a2d[_0x112818(0x10b)][_0x112818(0xde)],_0x37ec06=_0x393a2d['params'][_0x112818(0x180)]['id'];setTimeout(()=>{const _0x358f86=_0x112818;this['_commandService'][_0x358f86(0x15b)](C[_0x358f86(0x11b)]['id'],{'unitId':_0x557147,'subUnitId':_0x37ec06},{'fromCollab':!0x0});});}}}[_0x1b3401(0x186)](){const _0x269dd4=_0x1b3401;this[_0x269dd4(0x172)][_0x269dd4(0x182)](_0x269dd4(0x160));const _0x2eea39=new Map(),_0x19afab=this[_0x269dd4(0x137)]=new o[(_0x269dd4(0x150))]();_0x19afab[_0x269dd4(0x157)](o['toDisposable'](()=>{const _0x58c970=_0x269dd4;_0x2eea39[_0x58c970(0x187)](_0x51a9aa=>_0x51a9aa[_0x58c970(0x100)]()),_0x2eea39[_0x58c970(0x15f)]();})),_0x19afab[_0x269dd4(0x157)](this[_0x269dd4(0x13c)][_0x269dd4(0x174)](_0x4e094b=>{const _0x2f45e1=_0x269dd4;var _0x14afaf;if(_0x4e094b[_0x2f45e1(0xe7)]!==o[_0x2f45e1(0x15a)]['OPERATION']||!this['_liveShareService'][_0x2f45e1(0x11d)](_0x4e094b['id']))return;const {id:_0xb62b7}=_0x4e094b;let _0x11d585;_0x2eea39[_0x2f45e1(0x14a)](_0xb62b7)?_0x11d585=_0x2eea39['get'](_0xb62b7):(_0x11d585=new O[(_0x2f45e1(0xd7))](),_0x2eea39[_0x2f45e1(0x12f)](_0xb62b7,_0x11d585),_0x11d585[_0x2f45e1(0x123)](I[_0x2f45e1(0x151)]((_0x14afaf=this['_configService']['getConfig'](k))!=null?_0x14afaf:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x50b542=>{const _0x20634b=_0x2f45e1;this['_collabSession'][_0x20634b(0xfd)]({'eventID':d[_0x20634b(0x12b)][_0x20634b(0x130)],'data':{'unitID':this['_unitID'],'operations':{[_0x50b542['id']]:{'id':_0x50b542['id'],'params':JSON[_0x20634b(0x16c)](_0x50b542[_0x20634b(0x10b)])}}}},this[_0x20634b(0x105)]);})),_0x11d585[_0x2f45e1(0x182)](_0x4e094b);})),this[_0x269dd4(0xe9)][_0x269dd4(0x18e)](this[_0x269dd4(0x105)])[_0x269dd4(0x187)](_0x2bb803=>this[_0x269dd4(0x120)][_0x269dd4(0xfd)]({'eventID':d[_0x269dd4(0x12b)][_0x269dd4(0x130)],'data':{'unitID':this[_0x269dd4(0x105)],'operations':{[_0x2bb803['id']]:{'id':_0x2bb803['id'],'params':JSON[_0x269dd4(0x16c)](_0x2bb803[_0x269dd4(0x10b)])}}}},this[_0x269dd4(0x105)]));}[_0x1b3401(0x10f)](){const _0x5517be=_0x1b3401;var _0xeaab31;this[_0x5517be(0x172)][_0x5517be(0x182)]('idle'),(_0xeaab31=this[_0x5517be(0x137)])==null||_0xeaab31['dispose'](),this[_0x5517be(0x137)]=null;}[_0x1b3401(0xe5)](){const _0x9640ec=_0x1b3401;var _0x2f8f79;(_0x2f8f79=this['_commandDisposable'])==null||_0x2f8f79['dispose'](),this[_0x9640ec(0x172)][_0x9640ec(0x182)]('following');}[_0x1b3401(0x106)](){const _0x1a3112=_0x1b3401;var _0x4ede84;this[_0x1a3112(0x172)][_0x1a3112(0x182)](_0x1a3112(0x13f)),(_0x4ede84=this[_0x1a3112(0x137)])==null||_0x4ede84['dispose'](),this[_0x1a3112(0x137)]=null;}['_stopFollowing'](){const _0x2a57ef=_0x1b3401;var _0x392292;this[_0x2a57ef(0x172)]['next'](_0x2a57ef(0x124)),(_0x392292=this[_0x2a57ef(0x137)])==null||_0x392292[_0x2a57ef(0xf4)]();}[_0x1b3401(0x179)](_0x549b31){const _0x1c0d53=_0x1b3401;if(['presenting','not-following',_0x1c0d53(0x168)][_0x1c0d53(0x122)](this[_0x1c0d53(0x112)])||!_0x549b31[_0x1c0d53(0x144)]['presenter']||_0x549b31[_0x1c0d53(0x144)]['presenter']===this[_0x1c0d53(0x120)][_0x1c0d53(0x11c)]())return;this[_0x1c0d53(0x112)]===_0x1c0d53(0x13f)&&this[_0x1c0d53(0xe5)]();const _0x4f4bd6=_0x549b31[_0x1c0d53(0x144)]['operations'];Object[_0x1c0d53(0xf7)](_0x4f4bd6)[_0x1c0d53(0x187)](_0xe223ea=>{const _0x30522f=_0x1c0d53;this[_0x30522f(0x13c)][_0x30522f(0x15b)](_0xe223ea['id'],_0xe223ea[_0x30522f(0x10b)]?JSON[_0x30522f(0x153)](_0xe223ea[_0x30522f(0x10b)]):null,{'fromCollab':!0x0});});}[_0x1b3401(0xef)](){const _0x7c4b9f=_0x1b3401;var _0x290680;this[_0x7c4b9f(0x172)]['next'](_0x7c4b9f(0x168)),(_0x290680=this[_0x7c4b9f(0x137)])==null||_0x290680[_0x7c4b9f(0xf4)]();}[_0x1b3401(0xfa)](){const _0x531136=_0x1b3401;this[_0x531136(0x172)][_0x531136(0x182)](_0x531136(0x13f)),this[_0x531136(0x107)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x1b3401(0x169)]),S(0x3,o[_0x1b3401(0xff)](E)),S(0x4,o[_0x1b3401(0x115)])],exports[_0x1b3401(0x1a2)]);function $(){const _0x2e0e0c=_0x1b3401,_0x16ebf9=p['useDependency'](exports['LiveShareController']),_0x5174f0=p['useDependency'](o[_0x2e0e0c(0xfb)]),_0x456ae6=p[_0x2e0e0c(0x196)](()=>_0x5174f0[_0x2e0e0c(0x12c)](o[_0x2e0e0c(0x139)][_0x2e0e0c(0x10e)]),void 0x0,!0x1,[]),[_0xc0746f,_0x2a27d7]=v[_0x2e0e0c(0x185)](null),[_0x4e46e6,_0x59d2b2]=v[_0x2e0e0c(0x185)](u[_0x2e0e0c(0x17d)]),_0x4c13e8=v[_0x2e0e0c(0xda)](null);return v[_0x2e0e0c(0x171)](()=>(_0x456ae6&&_0x16ebf9['getLiveShareCoordinator'](_0x456ae6['getUnitId']())[_0x2e0e0c(0x135)](_0x29ac5b=>{const _0x8dc728=_0x2e0e0c;_0x2a27d7(_0x29ac5b),_0x4c13e8[_0x8dc728(0x1ac)]=_0x29ac5b['status$'][_0x8dc728(0x170)](_0x220a49=>{_0x59d2b2(_0x220a49);});}),()=>{const _0x45a540=_0x2e0e0c;var _0x1d3614;(_0x1d3614=_0x4c13e8[_0x45a540(0x1ac)])==null||_0x1d3614['unsubscribe'](),_0x4c13e8[_0x45a540(0x1ac)]=null;}),[_0x456ae6,_0x16ebf9]),_0xc0746f?l[_0x2e0e0c(0xea)](f['Dropdown'],{'align':_0x2e0e0c(0x119),'disabled':_0x4e46e6===u[_0x2e0e0c(0x178)],'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':l[_0x2e0e0c(0xea)](W,{'status':_0x4e46e6,'coordinator':_0xc0746f}),'children':l[_0x2e0e0c(0xea)](_0x2e0e0c(0x118),{'className':f[_0x2e0e0c(0x132)](_0x2e0e0c(0x10c),{'univer-cursor-not-allowed':_0x4e46e6===u[_0x2e0e0c(0x178)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4e46e6!==u[_0x2e0e0c(0x178)]}),'type':_0x2e0e0c(0x118),'children':l['jsx'](R,{'className':_0x2e0e0c(0x193)})})}):null;}function W(_0x30a7fd){const _0x1a59d8=_0x1b3401,{status:_0x19dee1,coordinator:_0x23f495}=_0x30a7fd;switch(_0x19dee1){case u[_0x1a59d8(0x17d)]:return l[_0x1a59d8(0xea)](G,{'coordinator':_0x23f495});case u['FOLLOWING']:return l[_0x1a59d8(0xea)](B,{'coordinator':_0x23f495});case u[_0x1a59d8(0x19f)]:return l[_0x1a59d8(0xea)](Y,{'coordinator':_0x23f495});case u[_0x1a59d8(0x178)]:return l[_0x1a59d8(0xea)](J,{});case u['PRESENTING']:return l[_0x1a59d8(0xea)](Z,{'coordinator':_0x23f495});default:return null;}}function G(_0x194ce4){const _0x1ef3ae=_0x1b3401,{coordinator:_0x38f9b3}=_0x194ce4;return l['jsxs'](l[_0x1ef3ae(0x161)],{'children':[l['jsx'](_0x1ef3ae(0x19b),{'className':_0x1ef3ae(0x1a9),'children':'Present\x20this\x20document'}),l[_0x1ef3ae(0xea)](f['Button'],{'onClick':()=>_0x38f9b3['tryStartPresenting'](),'children':_0x1ef3ae(0x14c)})]});}function B(_0x13bf68){const _0x35f2d3=_0x1b3401,{coordinator:_0x22a0b1}=_0x13bf68;return l[_0x35f2d3(0x11a)](l['Fragment'],{'children':[l[_0x35f2d3(0xea)](_0x35f2d3(0x19b),{'className':_0x35f2d3(0x1a9),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x35f2d3(0xea)](f[_0x35f2d3(0xe4)],{'onClick':()=>_0x22a0b1[_0x35f2d3(0x1a7)](),'children':_0x35f2d3(0x154)})]});}function Y(_0x327693){const _0x3e6c00=_0x1b3401,{coordinator:_0x269f30}=_0x327693;return l['jsxs'](l[_0x3e6c00(0x161)],{'children':[l['jsx'](_0x3e6c00(0x19b),{'className':_0x3e6c00(0x1a9),'children':_0x3e6c00(0xf9)}),l[_0x3e6c00(0xea)](f[_0x3e6c00(0xe4)],{'variant':_0x3e6c00(0xec),'onClick':()=>_0x269f30['startFollowing'](),'children':_0x3e6c00(0x136)})]});}function Z(_0x1c4228){const _0x267a67=_0x1b3401,{coordinator:_0xea2861}=_0x1c4228;return l['jsxs'](l[_0x267a67(0x161)],{'children':[l[_0x267a67(0xea)](_0x267a67(0x19b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x267a67(0xe6)}),l[_0x267a67(0xea)](f[_0x267a67(0xe4)],{'variant':_0x267a67(0x184),'onClick':()=>_0xea2861[_0x267a67(0x173)](),'children':_0x267a67(0x188)})]});}function J(){const _0x5a0a2c=_0x1b3401;return l['jsx'](l[_0x5a0a2c(0x161)],{'children':_0x5a0a2c(0x19e)});}var K=Object[_0x1b3401(0x17c)],z=(_0x592e8f,_0x5950db,_0x2d77e8,_0x3560d6)=>{for(var _0x306ce7=_0x3560d6>0x1?void 0x0:_0x3560d6?K(_0x5950db,_0x2d77e8):_0x5950db,_0x38b650=_0x592e8f['length']-0x1,_0xf10e81;_0x38b650>=0x0;_0x38b650--)(_0xf10e81=_0x592e8f[_0x38b650])&&(_0x306ce7=_0xf10e81(_0x306ce7)||_0x306ce7);return _0x306ce7;},L=(_0x3b2ca2,_0x263f90)=>(_0x345be0,_0x5de25c)=>_0x263f90(_0x345be0,_0x5de25c,_0x3b2ca2);exports[_0x1b3401(0x18a)]=class extends o[_0x1b3401(0x13b)]{constructor(_0x254fc9,_0x18abf6){const _0x51bd0f=_0x1b3401;super(),this[_0x51bd0f(0x108)]=_0x254fc9,this['_uiPartsService']=_0x18abf6,this['_mountLiveShare']();}[_0x1b3401(0x110)](){const _0x19af5f=_0x1b3401;this['disposeWithMe'](this[_0x19af5f(0x140)][_0x19af5f(0xe0)](p[_0x19af5f(0xfe)][_0x19af5f(0x1a1)],()=>p['connectInjector']($,this[_0x19af5f(0x108)])));}},exports[_0x1b3401(0x18a)]=z([L(0x0,o[_0x1b3401(0xff)](o[_0x1b3401(0x16a)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);const Q=_0x1b3401(0xdf),w={};var X=Object[_0x1b3401(0x17c)],ee=(_0x1496b2,_0x4c6bed,_0x2bb425,_0x2aef68)=>{for(var _0xf7a4e5=_0x2aef68>0x1?void 0x0:_0x2aef68?X(_0x4c6bed,_0x2bb425):_0x4c6bed,_0x5b0100=_0x1496b2['length']-0x1,_0x2bf272;_0x5b0100>=0x0;_0x5b0100--)(_0x2bf272=_0x1496b2[_0x5b0100])&&(_0xf7a4e5=_0x2bf272(_0xf7a4e5)||_0xf7a4e5);return _0xf7a4e5;},te=(_0x283677,_0x23731d)=>(_0x4627ea,_0x2c5e40)=>_0x23731d(_0x4627ea,_0x2c5e40,_0x283677);let m=class extends o['Disposable']{constructor(_0x420b40){const _0x132fb5=_0x1b3401;super(),this[_0x132fb5(0xe9)]=_0x420b40,this['_init']();}[_0x1b3401(0x12d)](){const _0x1f63ca=_0x1b3401;[D[_0x1f63ca(0x14d)]['id'],D[_0x1f63ca(0x15e)]['id'],C[_0x1f63ca(0x11b)]['id']][_0x1f63ca(0x187)](_0x11bea0=>{const _0x21a6f4=_0x1f63ca;this[_0x21a6f4(0x126)](this[_0x21a6f4(0xe9)][_0x21a6f4(0x166)](_0x11bea0));});}};m=ee([te(0x0,o[_0x1b3401(0xff)](E))],m);var ie=Object[_0x1b3401(0x14f)],se=Object['getOwnPropertyDescriptor'],ne=(_0x29738f,_0x27a932,_0x53826c)=>_0x27a932 in _0x29738f?ie(_0x29738f,_0x27a932,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53826c}):_0x29738f[_0x27a932]=_0x53826c,re=(_0x2bfb52,_0x29b1b3,_0xcb84c0,_0x336a7f)=>{const _0x145f1d=_0x1b3401;for(var _0x3a303b=_0x336a7f>0x1?void 0x0:_0x336a7f?se(_0x29b1b3,_0xcb84c0):_0x29b1b3,_0x4ebf37=_0x2bfb52[_0x145f1d(0x163)]-0x1,_0x5b6dda;_0x4ebf37>=0x0;_0x4ebf37--)(_0x5b6dda=_0x2bfb52[_0x4ebf37])&&(_0x3a303b=_0x5b6dda(_0x3a303b)||_0x3a303b);return _0x3a303b;},N=(_0x4f2257,_0x313e91)=>(_0x571cac,_0xa8778a)=>_0x313e91(_0x571cac,_0xa8778a,_0x4f2257),A=(_0x50d3c5,_0x3e259e,_0x3c771c)=>ne(_0x50d3c5,typeof _0x3e259e!=_0x1b3401(0x102)?_0x3e259e+'':_0x3e259e,_0x3c771c);const oe=_0x1b3401(0x133);exports[_0x1b3401(0x148)]=class extends o[_0x1b3401(0xf1)]{constructor(_0x3a2cce=w,_0xd86513,_0x1fa8f){const _0x1dcf78=_0x1b3401;super(),this[_0x1dcf78(0x1a4)]=_0x3a2cce,this[_0x1dcf78(0x108)]=_0xd86513,this[_0x1dcf78(0x16f)]=_0x1fa8f;const {..._0x470080}=o[_0x1dcf78(0x181)]({},w,this['_config']);this[_0x1dcf78(0x16f)]['setConfig'](Q,_0x470080);}[_0x1b3401(0x18c)](){const _0x44c8e6=_0x1b3401;o['registerDependencies'](this['_injector'],o[_0x44c8e6(0x17a)]([[E],[exports[_0x44c8e6(0x1a5)]],[m],[exports[_0x44c8e6(0x18a)]]],this[_0x44c8e6(0x1a4)][_0x44c8e6(0x121)])),o[_0x44c8e6(0xfc)](this[_0x44c8e6(0x108)],[[m]]);}['onRendered'](){o['touchDependencies'](this['_injector'],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x1b3401(0x148)],'type',o[_0x1b3401(0x139)][_0x1b3401(0xe1)]),A(exports[_0x1b3401(0x148)],_0x1b3401(0x10d),oe),exports['UniverLiveSharePlugin']=re([o[_0x1b3401(0x147)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x1b3401(0xff)](o[_0x1b3401(0x16a)])),N(0x2,o[_0x1b3401(0x169)])],exports[_0x1b3401(0x148)]),exports['LiveShare']=$,exports[_0x1b3401(0xdc)]=E,exports['LiveShareStatus']=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x33a569=_0x277f;(function(_0x5cd959,_0x4916d1){const _0x2cc90b=_0x277f,_0x113030=_0x5cd959();while(!![]){try{const _0x10619a=-parseInt(_0x2cc90b(0xac))/0x1*(parseInt(_0x2cc90b(0xa9))/0x2)+-parseInt(_0x2cc90b(0xad))/0x3*(-parseInt(_0x2cc90b(0xa1))/0x4)+-parseInt(_0x2cc90b(0x99))/0x5+-parseInt(_0x2cc90b(0xa8))/0x6*(-parseInt(_0x2cc90b(0xa5))/0x7)+parseInt(_0x2cc90b(0xab))/0x8+parseInt(_0x2cc90b(0x9e))/0x9*(parseInt(_0x2cc90b(0xaa))/0xa)+-parseInt(_0x2cc90b(0x93))/0xb;if(_0x10619a===_0x4916d1)break;else _0x113030['push'](_0x113030['shift']());}catch(_0x4085c6){_0x113030['push'](_0x113030['shift']());}}}(_0x31f7,0xad0b4));import{LiveShareController as _0x59129e,LiveShareStatus as _0x1a7214}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x8a0a89}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x1f4e13}from'@univerjs/sheets';import{SetScrollOperation as _0x54813f}from'@univerjs/sheets-ui';import{FRange as _0x23e2ea}from'@univerjs/sheets/facade';import{FUniver as _0x53e75f,FEnum as _0x179f5f}from'@univerjs/core/facade';class I extends _0x23e2ea{[_0x33a569(0xa2)](_0x13859a,_0x33b13f,_0x2ca1e3,_0x124d95,_0x2c3400){const _0x290594=_0x33a569,_0x3b531c=_0x13859a['get'](_0x59129e),_0x27ebac=_0x13859a[_0x290594(0x97)](_0x8a0a89),_0x16c33a=_0x33b13f[_0x290594(0xa6)](),_0x53cfec=_0x33b13f[_0x290594(0x98)](),_0x288377=_0x3b531c[_0x290594(0x8f)](_0x16c33a);(_0x288377==null?void 0x0:_0x288377[_0x290594(0x9c)]())!==_0x1a7214[_0x290594(0xa3)]||(_0x2ca1e3[_0x290594(0x9b)]()!==_0x53cfec[_0x290594(0x9b)]()&&this['_commandService'][_0x290594(0xa4)](_0x1f4e13['id'],{'unitId':_0x16c33a,'subUnitId':_0x2ca1e3[_0x290594(0x9b)]()}),!_0x27ebac[_0x290594(0x95)](_0x16c33a))||_0x2c3400[_0x290594(0x8e)](_0x54813f['id'],{'unitId':_0x33b13f[_0x290594(0xa6)](),'sheetId':_0x2ca1e3['getSheetId'](),'sheetViewStartRow':_0x124d95['startRow'],'sheetViewStartColumn':_0x124d95[_0x290594(0x90)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x31f7(){const _0x18f288=['syncExecuteCommand','getLiveShareCoordinatorSync','startColumn','_injector','stopPresenting','9315801UkdtTk','tryStartPresenting','getRenderById','getActiveWorkbook','get','getActiveSheet','3556655GDXyOn','getId','getSheetId','getStatus','No\x20active\x20workbook\x20found.','9hgOSzs','startFollowing','getLiveShareStatus','124GsAqyr','_initialize','PRESENTING','executeCommand','7fDaKHo','getUnitId','LiveShareStatusEnum','7465386ozIUVJ','103990GYCBOL','5405110oKvtaP','2117960WcYciz','16tZWvmK','101559BPdaPW','IDLE','startPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','extend','stopFollowing'];_0x31f7=function(){return _0x18f288;};return _0x31f7();}_0x23e2ea['extend'](I);function _0x277f(_0x3be93e,_0x490b9a){const _0x31f76c=_0x31f7();return _0x277f=function(_0x277f61,_0x534624){_0x277f61=_0x277f61-0x8b;let _0x849b4e=_0x31f76c[_0x277f61];return _0x849b4e;},_0x277f(_0x3be93e,_0x490b9a);}class m extends _0x53e75f{[_0x33a569(0xa0)](){const _0x1b7a82=_0x33a569;var _0x521b28,_0x3e0a4f;const _0xb7224=this['_injector'][_0x1b7a82(0x97)](_0x59129e),_0x14c35f=(_0x521b28=this[_0x1b7a82(0x96)]())==null?void 0x0:_0x521b28[_0x1b7a82(0x9a)]();if(!_0x14c35f)throw new Error(_0x1b7a82(0x9d));const _0x3d17b6=_0xb7224[_0x1b7a82(0x8f)](_0x14c35f);return(_0x3e0a4f=_0x3d17b6==null?void 0x0:_0x3d17b6[_0x1b7a82(0x9c)]())!=null?_0x3e0a4f:_0x1a7214[_0x1b7a82(0xae)];}[_0x33a569(0x9f)](){const _0x239c72=_0x33a569;var _0x16a070;const _0x2a0812=this[_0x239c72(0x91)][_0x239c72(0x97)](_0x59129e),_0x5eb7a5=(_0x16a070=this[_0x239c72(0x96)]())==null?void 0x0:_0x16a070['getId']();if(!_0x5eb7a5)throw new Error(_0x239c72(0x9d));const _0x201828=_0x2a0812[_0x239c72(0x8f)](_0x5eb7a5);if(!_0x201828)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x201828[_0x239c72(0x9f)]();}[_0x33a569(0x8d)](){const _0x4f7d67=_0x33a569;var _0x40d17d;const _0x3558fe=this[_0x4f7d67(0x91)][_0x4f7d67(0x97)](_0x59129e),_0x1440ab=(_0x40d17d=this[_0x4f7d67(0x96)]())==null?void 0x0:_0x40d17d[_0x4f7d67(0x9a)]();if(!_0x1440ab)throw new Error(_0x4f7d67(0x9d));const _0x19fa2f=_0x3558fe['getLiveShareCoordinatorSync'](_0x1440ab);if(!_0x19fa2f)throw new Error(_0x4f7d67(0x8b));_0x19fa2f[_0x4f7d67(0x8d)]();}[_0x33a569(0xaf)](){const _0x1510f6=_0x33a569;var _0x3037d2;const _0x229206=this['_injector']['get'](_0x59129e),_0x2ee8f0=(_0x3037d2=this[_0x1510f6(0x96)]())==null?void 0x0:_0x3037d2['getId']();if(!_0x2ee8f0)throw new Error(_0x1510f6(0x9d));const _0x185e27=_0x229206[_0x1510f6(0x8f)](_0x2ee8f0);if(!_0x185e27)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x185e27[_0x1510f6(0x94)]();}[_0x33a569(0x92)](){const _0x9e4d7f=_0x33a569;var _0x1b6227;const _0xb8eab0=this[_0x9e4d7f(0x91)]['get'](_0x59129e),_0x386f67=(_0x1b6227=this[_0x9e4d7f(0x96)]())==null?void 0x0:_0x1b6227[_0x9e4d7f(0x9a)]();if(!_0x386f67)throw new Error(_0x9e4d7f(0x9d));const _0x528a8a=_0xb8eab0[_0x9e4d7f(0x8f)](_0x386f67);if(!_0x528a8a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x528a8a[_0x9e4d7f(0x92)]();}}_0x53e75f[_0x33a569(0x8c)](m);class C extends _0x179f5f{get[_0x33a569(0xa7)](){return _0x1a7214;}}_0x179f5f[_0x33a569(0x8c)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4b385e=_0x3816;(function(_0x4bac75,_0x5e62f2){const _0x277a18=_0x3816,_0x47bef8=_0x4bac75();while(!![]){try{const _0x102d05=-parseInt(_0x277a18(0xa8))/0x1*(parseInt(_0x277a18(0xf8))/0x2)+parseInt(_0x277a18(0xb2))/0x3+-parseInt(_0x277a18(0x9e))/0x4+parseInt(_0x277a18(0x74))/0x5*(-parseInt(_0x277a18(0x92))/0x6)+-parseInt(_0x277a18(0x94))/0x7+parseInt(_0x277a18(0xc3))/0x8+parseInt(_0x277a18(0x93))/0x9;if(_0x102d05===_0x5e62f2)break;else _0x47bef8['push'](_0x47bef8['shift']());}catch(_0x3ce130){_0x47bef8['push'](_0x47bef8['shift']());}}}(_0x3dcf,0xb51ef));var J=Object[_0x4b385e(0xef)],K=(_0xa8a3db,_0x5c660c,_0x21ebe7)=>_0x5c660c in _0xa8a3db?J(_0xa8a3db,_0x5c660c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21ebe7}):_0xa8a3db[_0x5c660c]=_0x21ebe7,u=(_0x5371b7,_0x73a5eb,_0x1b4416)=>K(_0x5371b7,typeof _0x73a5eb!=_0x4b385e(0xc9)?_0x73a5eb+'':_0x73a5eb,_0x1b4416);function _0x3dcf(){const _0x229e82=['executeCommand','FOLLOWING','disposeWithMe','univer-size-4','tag','_reporters','colorChannel1','type','find','1em','createInstance','forEach','end','status$','6YULNRE','16913538wxahpW','5248684LyFxGL','defs','data','onCommandExecuted','event$','NOT_FOLLOWING','_univerInstanceService','_collabSession','UNIVER_SHEET','dispose','2456044MnyNoK','from','length','current','evenodd','svg','pluginName','ONLINE','button','override','2RRUaZS','presenter','_config','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','getLiveShareCoordinator','attrs','idle','getTypeOfUnitDisposed$','_startLiveShareCoordinator','3353559kUnGEM','_injector','LIVESHARE_OPERATION','OPERATION','assign','substring','You\x27re\x20following\x20the\x20presenter','stringify','You\x27are\x20offline.','_entities','univerjs-icon\x20univerjs-icon-','http://www.w3.org/2000/svg','complete','params','_beIdle','_commandService','mask','2220176LoXtrF','LiveShareIcon','HEADER_MENU','url(#$1','_mountLiveShare','then','symbol','asObservable','random','Start','following','defIds','_presenter','add','_sharedOperations','string','registerInitialStateReporter','operations','getValue','_commandDisposable','replace','none','IDLE','_status','next','onStarting','onRendered','_init','offline','use','has','entries','xlink:href','PRESENTING','getTypeOfUnitAdded$','_stopPresenting','send','tryStartPresenting','_startPresenting','_liveShareService','div','_stopFollowing','_handleOnline','Stop\x20following','defineProperty','_handleNewChangeSets','LIVESHARE_TERMINATE','default','sessionStatus$','displayName','OFFLINE','getInitialStates','startFollowing','302002cyBlDP','NEW_CHANGESETS','_handleOffline','stopFollowing','registerSharedOperation','_status$','unsubscribe','registerComponent','_configService','presenting','_handleOperation','currentColor','not-following','dispose$','setConfig','getMemberID','UniverIcon','_startFollowing','LIVESHARE_REQUEST_HOST','0\x200\x2017\x2017','Present\x20this\x20document','Stop\x20presenting','_fetchOperations','getUnitId','_handleNewHost','memberID','UNIVER_LIVE_SHARE_PLUGIN','values','text','_uiPartsService','map','reverse','live-share-icon','4334805SdMhJr','init','pipe','children','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_unitID','getOwnPropertyDescriptor','path','delete','live-share.config','getConfig','You\x27re\x20not\x20following\x20the\x20presenter','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','SAME_OPERATION_SHARE_INTERVAL','get'];_0x3dcf=function(){return _0x229e82;};return _0x3dcf();}import{Disposable as _0x55b9aa,toDisposable as _0x1f42e7,IUniverInstanceService as _0x2f6fb5,Inject as _0x560870,Injector as _0x31eff1,IConfigService as _0x290f96,ICommandService as _0x496629,RxDisposable as _0x55a73f,UniverInstanceType as _0x2d5db4,DisposableCollection as _0xa3999d,CommandType as _0x13d715,DependentOn as _0x2ae8e8,Plugin as _0x91b81e,merge as _0x473004,registerDependencies as _0x489867,mergeOverrideWithDependencies as _0x55fb95,touchDependencies as _0x20f240}from'@univerjs/core';import{useDependency as _0x1f8dd1,useObservable as _0x20a2e6,IUIPartsService as _0x23c3f9,BuiltInUIPart as _0x5934f6,connectInjector as _0x307cfd}from'@univerjs/ui';import{jsx as _0x438293,jsxs as _0x586af0,Fragment as _0x2f0f25}from'react/jsx-runtime';import{Dropdown as _0x51a47b,clsx as _0x40c4f6,Button as _0x42e7b4}from'@univerjs/design';import{useRef as _0x2ba9a6,createElement as _0xc48b3e,forwardRef as _0x3fd9ee,useState as _0x5cf7d9,useEffect as _0x588a86}from'react';import{CollaborationEvent as _0x5a2308,parseProtocolChangeset as _0x4e55cd}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x909e59,SessionStatus as _0x166cc9,UniverCollaborationClientPlugin as _0xff5435}from'@univerjs-pro/collaboration-client';function _0x3816(_0x4e4af1,_0x432e3f){const _0x3dcfcb=_0x3dcf();return _0x3816=function(_0x38160d,_0x33b89d){_0x38160d=_0x38160d-0x70;let _0x5c7349=_0x3dcfcb[_0x38160d];return _0x5c7349;},_0x3816(_0x4e4af1,_0x432e3f);}import{InsertSheetMutation as _0x42d2fb,SetWorksheetActiveOperation as _0x441168}from'@univerjs/sheets';import{BehaviorSubject as _0x5a3aa7,Subject as _0x696cda}from'rxjs';import{takeUntil as _0x2032e2,throttleTime as _0x2d0a05}from'rxjs/operators';import{SetZoomRatioOperation as _0x1fce62,SetScrollOperation as _0x3ab047}from'@univerjs/sheets-ui';function k({ref:_0x272b0d,..._0x155a92}){const _0x2faf5d=_0x4b385e,{icon:_0x7ee335,id:_0x12d0d9,className:_0x296ed0,extend:_0xd0b3c5,..._0x56a117}=_0x155a92,_0x5f4e33=(_0x2faf5d(0xbc)+_0x12d0d9+'\x20'+(_0x296ed0||''))['trim'](),_0x539c8c=_0x2ba9a6('_'+Oe());return G(_0x7ee335,''+_0x12d0d9,{'defIds':_0x7ee335[_0x2faf5d(0xce)],'idSuffix':_0x539c8c[_0x2faf5d(0xa1)]},{'ref':_0x272b0d,'className':_0x5f4e33,..._0x56a117},_0xd0b3c5);}function G(_0x4619ba,_0x531b1f,_0x16468c,_0x4d5f13,_0x23e4fe){const _0x263685=_0x4b385e;return _0xc48b3e(_0x4619ba[_0x263685(0x88)],{'key':_0x531b1f,...be(_0x4619ba,_0x16468c,_0x23e4fe),..._0x4d5f13},(Ee(_0x4619ba,_0x16468c)[_0x263685(0x77)]||[])[_0x263685(0x71)]((_0x2b58af,_0x9f8873)=>G(_0x2b58af,_0x531b1f+'-'+_0x4619ba[_0x263685(0x88)]+'-'+_0x9f8873,_0x16468c,void 0x0,_0x23e4fe)));}function be(_0x2072d2,_0x2b9087,_0x6916a2){const _0x262e7d=_0x4b385e,_0x393959={..._0x2072d2[_0x262e7d(0xae)]};_0x6916a2!=null&&_0x6916a2[_0x262e7d(0x8a)]&&_0x393959['fill']===_0x262e7d(0x8a)&&(_0x393959['fill']=_0x6916a2[_0x262e7d(0x8a)]),_0x2072d2[_0x262e7d(0x88)]===_0x262e7d(0xc2)&&_0x393959['id']&&(_0x393959['id']=_0x393959['id']+_0x2b9087[_0x262e7d(0xac)]),Object[_0x262e7d(0xe2)](_0x393959)[_0x262e7d(0x8f)](([_0x4e6a69,_0x4eb3a3])=>{const _0x47613c=_0x262e7d;_0x4e6a69===_0x47613c(0xc2)&&typeof _0x4eb3a3==_0x47613c(0xd2)&&(_0x393959[_0x4e6a69]=_0x4eb3a3[_0x47613c(0xd7)](/url\(#(.*)\)/,_0x47613c(0xc6)+_0x2b9087[_0x47613c(0xac)]+')'));});const {defIds:_0x53995a}=_0x2b9087;return!_0x53995a||_0x53995a['length']===0x0||(_0x2072d2[_0x262e7d(0x88)]===_0x262e7d(0xe0)&&_0x393959[_0x262e7d(0xe3)]&&(_0x393959[_0x262e7d(0xe3)]=_0x393959[_0x262e7d(0xe3)]+_0x2b9087[_0x262e7d(0xac)]),Object[_0x262e7d(0xe2)](_0x393959)[_0x262e7d(0x8f)](([_0x360e36,_0x2a8b39])=>{const _0x54f85b=_0x262e7d;typeof _0x2a8b39==_0x54f85b(0xd2)&&(_0x393959[_0x360e36]=_0x2a8b39[_0x54f85b(0xd7)](/url\(#(.*)\)/,_0x54f85b(0xc6)+_0x2b9087[_0x54f85b(0xac)]+')'));})),_0x393959;}function Ee(_0x413a65,_0x54fff5){const _0x19dfec=_0x4b385e;var _0x2e8f7a;const {defIds:_0x48ac0d}=_0x54fff5;return!_0x48ac0d||_0x48ac0d[_0x19dfec(0xa0)]===0x0?_0x413a65:_0x413a65[_0x19dfec(0x88)]===_0x19dfec(0x95)&&((_0x2e8f7a=_0x413a65[_0x19dfec(0x77)])!=null&&_0x2e8f7a['length'])?{..._0x413a65,'children':_0x413a65[_0x19dfec(0x77)][_0x19dfec(0x71)](_0x4bcfed=>typeof _0x4bcfed[_0x19dfec(0xae)]['id']==_0x19dfec(0xd2)&&_0x48ac0d&&_0x48ac0d['includes'](_0x4bcfed[_0x19dfec(0xae)]['id'])?{..._0x4bcfed,'attrs':{..._0x4bcfed[_0x19dfec(0xae)],'id':_0x4bcfed[_0x19dfec(0xae)]['id']+_0x54fff5['idSuffix']}}:_0x4bcfed)}:_0x413a65;}function Oe(){const _0x302ce9=_0x4b385e;return Math[_0x302ce9(0xcb)]()['toString'](0x24)[_0x302ce9(0xb7)](0x2,0x8);}k[_0x4b385e(0xf4)]=_0x4b385e(0x108);const we={'tag':_0x4b385e(0xa3),'attrs':{'xmlns':_0x4b385e(0xbd),'fill':_0x4b385e(0xd8),'viewBox':_0x4b385e(0x10b),'width':_0x4b385e(0x8d),'height':_0x4b385e(0x8d)},'children':[{'tag':'path','attrs':{'fill':_0x4b385e(0x103),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x4b385e(0x7b),'attrs':{'fill':'currentColor','d':_0x4b385e(0xab),'fillRule':_0x4b385e(0xa2),'clipRule':_0x4b385e(0xa2)}}]},W=_0x3fd9ee(function(_0x539275,_0xd32d19){const _0x5dd266=_0x4b385e;return _0xc48b3e(k,Object[_0x5dd266(0xb6)]({},_0x539275,{'id':_0x5dd266(0x73),'ref':_0xd32d19,'icon':we}));});W['displayName']=_0x4b385e(0xc4);class L extends _0x55b9aa{constructor(){const _0x299752=_0x4b385e;super(...arguments),u(this,_0x299752(0xd1),new Set()),u(this,_0x299752(0x89),new Set());}[_0x4b385e(0xfc)](_0x257061){const _0xa32498=_0x4b385e;return this[_0xa32498(0xd1)]['add'](_0x257061),_0x1f42e7(()=>this[_0xa32498(0xd1)][_0xa32498(0x7c)](_0x257061));}[_0x4b385e(0xd3)](_0x442100){const _0x104f14=_0x4b385e;return this[_0x104f14(0x89)][_0x104f14(0xd0)](_0x442100),_0x1f42e7(()=>this[_0x104f14(0x89)]['delete'](_0x442100));}['shouldShareOperation'](_0x2aef0f){const _0x122227=_0x4b385e;return this['_sharedOperations'][_0x122227(0xe1)](_0x2aef0f);}[_0x4b385e(0xf6)](_0x1d18b6){const _0x262da1=_0x4b385e;return Array[_0x262da1(0x9f)](this['_reporters'])[_0x262da1(0x71)](_0x267c42=>_0x267c42(_0x1d18b6));}}var Ne=Object[_0x4b385e(0x7a)],Y=(_0x1045b7,_0x516c55,_0xfe6300,_0x188b95)=>{const _0x1e8419=_0x4b385e;for(var _0x28d3f2=_0x188b95>0x1?void 0x0:_0x188b95?Ne(_0x516c55,_0xfe6300):_0x516c55,_0x4f6f22=_0x1045b7[_0x1e8419(0xa0)]-0x1,_0x3d5ba7;_0x4f6f22>=0x0;_0x4f6f22--)(_0x3d5ba7=_0x1045b7[_0x4f6f22])&&(_0x28d3f2=_0x3d5ba7(_0x28d3f2)||_0x28d3f2);return _0x28d3f2;},_=(_0x40a91b,_0xe6cb75)=>(_0x44b00f,_0x337321)=>_0xe6cb75(_0x44b00f,_0x337321,_0x40a91b);let S=class extends _0x55a73f{constructor(_0x2ab905,_0x4b236b,_0x2b2c0a){const _0x49a220=_0x4b385e;super(),u(this,_0x49a220(0xbb),new Map()),(this[_0x49a220(0x9a)]=_0x2ab905,this[_0x49a220(0xb3)]=_0x4b236b,this['_collabSessionService']=_0x2b2c0a,this[_0x49a220(0xde)]());}async[_0x4b385e(0xad)](_0x5ef093){const _0x44c690=_0x4b385e;return this[_0x44c690(0xbb)][_0x44c690(0xe1)](_0x5ef093)||await this[_0x44c690(0xb1)](_0x5ef093),this[_0x44c690(0xbb)][_0x44c690(0x83)](_0x5ef093);}['getLiveShareCoordinatorSync'](_0x574fa5){const _0x48403e=_0x4b385e;var _0x1647fb;return(_0x1647fb=this['_entities'][_0x48403e(0x83)](_0x574fa5))!=null?_0x1647fb:null;}[_0x4b385e(0xde)](){const _0xe22945=_0x4b385e;this[_0xe22945(0x9a)][_0xe22945(0xe5)](_0x2d5db4[_0xe22945(0x9c)])[_0xe22945(0x76)](_0x2032e2(this[_0xe22945(0x105)]))[_0xe22945(0x81)](async _0x4a24e6=>{const _0x580ccd=_0xe22945,_0x58762b=_0x4a24e6[_0x580ccd(0x10f)]();this['_entities'][_0x580ccd(0xe1)](_0x58762b)||this[_0x580ccd(0xb1)](_0x58762b);}),this[_0xe22945(0x9a)][_0xe22945(0xb0)](_0x2d5db4[_0xe22945(0x9c)])[_0xe22945(0x76)](_0x2032e2(this['dispose$']))[_0xe22945(0x81)](_0x3a1e53=>{const _0x2a628d=_0xe22945,_0x36c05b=_0x3a1e53['getUnitId'](),_0x4c0cb9=this[_0x2a628d(0xbb)][_0x2a628d(0x83)](_0x36c05b);_0x4c0cb9==null||_0x4c0cb9[_0x2a628d(0x9d)]();});}async[_0x4b385e(0xb1)](_0x3bed00){const _0xdb9f00=_0x4b385e,_0x20758c=await this['_collabSessionService']['requireSession'](_0x3bed00),_0x20223b=this[_0xdb9f00(0xb3)][_0xdb9f00(0x8e)](N,_0x3bed00,_0x20758c);return _0x20223b[_0xdb9f00(0x75)](),this[_0xdb9f00(0xbb)]['set'](_0x3bed00,_0x20223b),_0x20223b;}};S=Y([_(0x0,_0x2f6fb5),_(0x1,_0x560870(_0x31eff1)),_(0x2,_0x560870(_0x909e59))],S);var c=(_0x78e18=>(_0x78e18[_0x4b385e(0xf5)]='offline',_0x78e18[_0x4b385e(0xd9)]=_0x4b385e(0xaf),_0x78e18['FOLLOWING']=_0x4b385e(0xcd),_0x78e18['NOT_FOLLOWING']='not-following',_0x78e18['PRESENTING']='presenting',_0x78e18))(c||{});const Ce=_0x4b385e(0x82),De=0xc8;let N=class extends _0x55a73f{constructor(_0x64e6d1,_0x58b685,_0x20ce38,_0x2068f5,_0x3c8fad){const _0x5172ba=_0x4b385e;super(),u(this,_0x5172ba(0xfd),new _0x5a3aa7(_0x5172ba(0xaf))),u(this,_0x5172ba(0x91),this['_status$'][_0x5172ba(0xca)]()),u(this,'_init',!0x1),u(this,_0x5172ba(0xd6),null),u(this,_0x5172ba(0xcf),null),(this['_unitID']=_0x64e6d1,this[_0x5172ba(0x9b)]=_0x58b685,this['_configService']=_0x20ce38,this[_0x5172ba(0xea)]=_0x2068f5,this['_commandService']=_0x3c8fad);}get[_0x4b385e(0xda)](){const _0x4f0b24=_0x4b385e;return this['_status$'][_0x4f0b24(0xd5)]();}[_0x4b385e(0x9d)](){const _0x1902cd=_0x4b385e;var _0x3a834a;(_0x3a834a=this[_0x1902cd(0xd6)])==null||_0x3a834a[_0x1902cd(0x9d)](),this[_0x1902cd(0xfd)]['next'](_0x1902cd(0xaf)),this[_0x1902cd(0xfd)][_0x1902cd(0xbe)]();}['getStatus'](){const _0x4ac7a6=_0x4b385e;return this[_0x4ac7a6(0xda)];}[_0x4b385e(0x75)](){const _0x426d40=_0x4b385e;this[_0x426d40(0xde)]||(this[_0x426d40(0xde)]=!0x0,this[_0x426d40(0x9b)][_0x426d40(0xf3)][_0x426d40(0x76)](_0x2032e2(this[_0x426d40(0x105)]))['subscribe'](_0x1e1d53=>{const _0x4f25ed=_0x426d40;switch(_0x1e1d53){case _0x166cc9['OFFLINE']:this[_0x4f25ed(0xfa)]();break;case _0x166cc9[_0x4f25ed(0xa5)]:this['_handleOnline']();break;}}),this[_0x426d40(0x9b)][_0x426d40(0x98)]['pipe'](_0x2032e2(this[_0x426d40(0x105)]))['subscribe'](_0xa7b508=>{const _0x16f3cf=_0x426d40,{eventID:_0x12c00f}=_0xa7b508;switch(_0x12c00f){case _0x5a2308['LIVESHARE_NEW_HOST']:this[_0x16f3cf(0x110)](_0xa7b508);break;case _0x5a2308[_0x16f3cf(0xb4)]:this[_0x16f3cf(0x102)](_0xa7b508);break;case _0x5a2308['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x5a2308[_0x16f3cf(0xf9)]:this[_0x16f3cf(0xf0)](_0xa7b508);break;}}));}['tryStartPresenting'](){const _0x12a5ff=_0x4b385e;this[_0x12a5ff(0x9b)][_0x12a5ff(0xe7)]({'eventID':_0x5a2308[_0x12a5ff(0x10a)],'data':{'unitID':this[_0x12a5ff(0x79)],'userID':this['_collabSession'][_0x12a5ff(0x107)]()}},this[_0x12a5ff(0x79)]);}['stopPresenting'](){const _0x4583fa=_0x4b385e;this[_0x4583fa(0xda)]==='presenting'&&(this['_status$'][_0x4583fa(0xdb)]('idle'),this[_0x4583fa(0x9b)][_0x4583fa(0xe7)]({'eventID':_0x5a2308[_0x4583fa(0xf1)],'data':{'unitID':this[_0x4583fa(0x79)]}},this[_0x4583fa(0x79)]));}['startFollowing'](){const _0x3fa5c3=_0x4b385e;this[_0x3fa5c3(0xda)]==='not-following'&&(this[_0x3fa5c3(0xfd)]['next']('following'),this[_0x3fa5c3(0x109)]());}[_0x4b385e(0xfb)](){const _0x49e43a=_0x4b385e;this['_status']===_0x49e43a(0xcd)&&this[_0x49e43a(0xec)]();}['_handleNewHost'](_0x481686){const _0x161725=_0x4b385e,{presenter:_0x3d10b8}=_0x481686[_0x161725(0x96)],_0xe22f0e=this[_0x161725(0x9b)][_0x161725(0x107)]();this[_0x161725(0xcf)]=_0x3d10b8,_0x3d10b8===_0xe22f0e?(this[_0x161725(0xec)](),this['_startPresenting']()):this[_0x161725(0xda)]!==_0x161725(0x104)&&(this[_0x161725(0xe6)](),this[_0x161725(0x109)]());}[_0x4b385e(0x10e)](){const _0x57cd14=_0x4b385e,_0x26bd8d={'eventID':_0x5a2308['LIVESHARE_FETCH_OPERATIONS']};this[_0x57cd14(0x9b)][_0x57cd14(0xe7)](_0x26bd8d,this['_unitID']);}['_handleTerminate'](){const _0x2d59b6=_0x4b385e;this[_0x2d59b6(0xcf)]=null,this[_0x2d59b6(0xda)]!==_0x2d59b6(0x101)&&this['_beIdle']();}[_0x4b385e(0xf0)](_0x34ac50){const _0x4ab20e=_0x4b385e;if(this['_status']===_0x4ab20e(0xcd)&&this[_0x4ab20e(0xcf)]===_0x34ac50[_0x4ab20e(0x96)][_0x4ab20e(0x111)]){const _0x32f8cb=_0x4e55cd(_0x34ac50[_0x4ab20e(0x96)])['mutations'][_0x4ab20e(0x72)]()[_0x4ab20e(0x8c)](_0x41e2e6=>_0x41e2e6['id']===_0x42d2fb['id']);if(_0x32f8cb){const _0x24a186=_0x32f8cb['params']['unitId'],_0x4b9aeb=_0x32f8cb[_0x4ab20e(0xbf)]['sheet']['id'];setTimeout(()=>{const _0x2ba811=_0x4ab20e;this[_0x2ba811(0xc1)]['executeCommand'](_0x441168['id'],{'unitId':_0x24a186,'subUnitId':_0x4b9aeb},{'fromCollab':!0x0});});}}}[_0x4b385e(0xe9)](){const _0x2fb4b8=_0x4b385e;this[_0x2fb4b8(0xfd)][_0x2fb4b8(0xdb)]('presenting');const _0x3d74b3=new Map(),_0xdc8b26=this['_commandDisposable']=new _0xa3999d();_0xdc8b26['add'](_0x1f42e7(()=>{const _0x5ec687=_0x2fb4b8;_0x3d74b3['forEach'](_0x402ced=>_0x402ced[_0x5ec687(0xbe)]()),_0x3d74b3['clear']();})),_0xdc8b26[_0x2fb4b8(0xd0)](this[_0x2fb4b8(0xc1)][_0x2fb4b8(0x97)](_0x198a21=>{const _0x4b07cc=_0x2fb4b8;var _0x3ca204;if(_0x198a21[_0x4b07cc(0x8b)]!==_0x13d715[_0x4b07cc(0xb5)]||!this['_liveShareService']['shouldShareOperation'](_0x198a21['id']))return;const {id:_0x35ee91}=_0x198a21;let _0x16f654;_0x3d74b3[_0x4b07cc(0xe1)](_0x35ee91)?_0x16f654=_0x3d74b3[_0x4b07cc(0x83)](_0x35ee91):(_0x16f654=new _0x696cda(),_0x3d74b3['set'](_0x35ee91,_0x16f654),_0x16f654[_0x4b07cc(0x76)](_0x2d0a05((_0x3ca204=this[_0x4b07cc(0x100)][_0x4b07cc(0x7e)](Ce))!=null?_0x3ca204:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b07cc(0x81)](_0x189a51=>{const _0x59060e=_0x4b07cc;this[_0x59060e(0x9b)]['send']({'eventID':_0x5a2308[_0x59060e(0xb4)],'data':{'unitID':this['_unitID'],'operations':{[_0x189a51['id']]:{'id':_0x189a51['id'],'params':JSON['stringify'](_0x189a51[_0x59060e(0xbf)])}}}},this[_0x59060e(0x79)]);})),_0x16f654[_0x4b07cc(0xdb)](_0x198a21);})),this['_liveShareService'][_0x2fb4b8(0xf6)](this[_0x2fb4b8(0x79)])['forEach'](_0x290468=>this[_0x2fb4b8(0x9b)][_0x2fb4b8(0xe7)]({'eventID':_0x5a2308['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2fb4b8(0x79)],'operations':{[_0x290468['id']]:{'id':_0x290468['id'],'params':JSON[_0x2fb4b8(0xb9)](_0x290468['params'])}}}},this[_0x2fb4b8(0x79)]));}[_0x4b385e(0xe6)](){const _0x5438d8=_0x4b385e;var _0x26072f;this[_0x5438d8(0xfd)]['next']('idle'),(_0x26072f=this[_0x5438d8(0xd6)])==null||_0x26072f['dispose'](),this[_0x5438d8(0xd6)]=null;}[_0x4b385e(0x109)](){const _0x199f54=_0x4b385e;var _0x578e83;(_0x578e83=this[_0x199f54(0xd6)])==null||_0x578e83['dispose'](),this[_0x199f54(0xfd)][_0x199f54(0xdb)]('following');}[_0x4b385e(0xc0)](){const _0x27616d=_0x4b385e;var _0x18eaeb;this['_status$'][_0x27616d(0xdb)](_0x27616d(0xaf)),(_0x18eaeb=this[_0x27616d(0xd6)])==null||_0x18eaeb[_0x27616d(0x9d)](),this[_0x27616d(0xd6)]=null;}[_0x4b385e(0xec)](){const _0x5eb6bd=_0x4b385e;var _0x3922f5;this['_status$']['next']('not-following'),(_0x3922f5=this[_0x5eb6bd(0xd6)])==null||_0x3922f5[_0x5eb6bd(0x9d)]();}[_0x4b385e(0x102)](_0x2e4fbe){const _0x34b1b3=_0x4b385e;if([_0x34b1b3(0x101),_0x34b1b3(0x104),_0x34b1b3(0xdf)]['includes'](this[_0x34b1b3(0xda)])||!_0x2e4fbe['data'][_0x34b1b3(0xa9)]||_0x2e4fbe['data']['presenter']===this[_0x34b1b3(0x9b)][_0x34b1b3(0x107)]())return;this[_0x34b1b3(0xda)]===_0x34b1b3(0xaf)&&this['_startFollowing']();const _0x140e4c=_0x2e4fbe['data'][_0x34b1b3(0xd4)];Object[_0x34b1b3(0x113)](_0x140e4c)[_0x34b1b3(0x8f)](_0x23a6e2=>{const _0x5a04b2=_0x34b1b3;this[_0x5a04b2(0xc1)][_0x5a04b2(0x84)](_0x23a6e2['id'],_0x23a6e2['params']?JSON['parse'](_0x23a6e2[_0x5a04b2(0xbf)]):null,{'fromCollab':!0x0});});}[_0x4b385e(0xfa)](){const _0x4bd34b=_0x4b385e;var _0x5a20fd;this[_0x4bd34b(0xfd)]['next'](_0x4bd34b(0xdf)),(_0x5a20fd=this[_0x4bd34b(0xd6)])==null||_0x5a20fd[_0x4bd34b(0x9d)]();}[_0x4b385e(0xed)](){const _0x2936b5=_0x4b385e;this[_0x2936b5(0xfd)][_0x2936b5(0xdb)](_0x2936b5(0xaf)),this[_0x2936b5(0x10e)]();}};N=Y([_(0x2,_0x290f96),_(0x3,_0x560870(L)),_(0x4,_0x496629)],N);function Le(){const _0x392b48=_0x4b385e,_0x2c8069=_0x1f8dd1(S),_0x3f35bd=_0x1f8dd1(_0x2f6fb5),_0x360ba9=_0x20a2e6(()=>_0x3f35bd['getCurrentTypeOfUnit$'](_0x2d5db4['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5df032,_0x42ec6a]=_0x5cf7d9(null),[_0x4327b2,_0x5e0ce7]=_0x5cf7d9(c[_0x392b48(0xd9)]),_0x3f3679=_0x2ba9a6(null);return _0x588a86(()=>(_0x360ba9&&_0x2c8069['getLiveShareCoordinator'](_0x360ba9['getUnitId']())[_0x392b48(0xc8)](_0x4efdd2=>{const _0xd79514=_0x392b48;_0x42ec6a(_0x4efdd2),_0x3f3679[_0xd79514(0xa1)]=_0x4efdd2[_0xd79514(0x91)][_0xd79514(0x81)](_0x9c5bab=>{_0x5e0ce7(_0x9c5bab);});}),()=>{const _0x40297e=_0x392b48;var _0x508a49;(_0x508a49=_0x3f3679['current'])==null||_0x508a49[_0x40297e(0xfe)](),_0x3f3679['current']=null;}),[_0x360ba9,_0x2c8069]),_0x5df032?_0x438293(_0x51a47b,{'align':_0x392b48(0x90),'disabled':_0x4327b2===c[_0x392b48(0xf5)],'className':_0x392b48(0x80),'overlay':_0x438293(Re,{'status':_0x4327b2,'coordinator':_0x5df032}),'children':_0x438293(_0x392b48(0xa6),{'className':_0x40c4f6(_0x392b48(0x78),{'univer-cursor-not-allowed':_0x4327b2===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4327b2!==c[_0x392b48(0xf5)]}),'type':'button','children':_0x438293(W,{'className':_0x392b48(0x87)})})}):null;}function Re(_0x56069f){const _0x3b13fe=_0x4b385e,{status:_0x3c360c,coordinator:_0x113ead}=_0x56069f;switch(_0x3c360c){case c['IDLE']:return _0x438293($e,{'coordinator':_0x113ead});case c[_0x3b13fe(0x85)]:return _0x438293(xe,{'coordinator':_0x113ead});case c[_0x3b13fe(0x99)]:return _0x438293(Pe,{'coordinator':_0x113ead});case c[_0x3b13fe(0xf5)]:return _0x438293(Te,{});case c[_0x3b13fe(0xe4)]:return _0x438293(Ae,{'coordinator':_0x113ead});default:return null;}}function $e(_0x3234f0){const _0x55860c=_0x4b385e,{coordinator:_0x3c0238}=_0x3234f0;return _0x586af0(_0x2f0f25,{'children':[_0x438293(_0x55860c(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x55860c(0x10c)}),_0x438293(_0x42e7b4,{'onClick':()=>_0x3c0238[_0x55860c(0xe8)](),'children':_0x55860c(0xcc)})]});}function xe(_0x1d1a22){const _0x6f1b28=_0x4b385e,{coordinator:_0x590b67}=_0x1d1a22;return _0x586af0(_0x2f0f25,{'children':[_0x438293(_0x6f1b28(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x6f1b28(0xb8)}),_0x438293(_0x42e7b4,{'onClick':()=>_0x590b67[_0x6f1b28(0xfb)](),'children':_0x6f1b28(0xee)})]});}function Pe(_0x6a3975){const _0x3e67f3=_0x4b385e,{coordinator:_0xb85e35}=_0x6a3975;return _0x586af0(_0x2f0f25,{'children':[_0x438293(_0x3e67f3(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3e67f3(0x7f)}),_0x438293(_0x42e7b4,{'variant':_0x3e67f3(0x114),'onClick':()=>_0xb85e35[_0x3e67f3(0xf7)](),'children':'Start\x20following'})]});}function Ae(_0x1713ee){const _0x1e07cb=_0x4b385e,{coordinator:_0x46edb9}=_0x1713ee;return _0x586af0(_0x2f0f25,{'children':[_0x438293(_0x1e07cb(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x438293(_0x42e7b4,{'variant':_0x1e07cb(0xf2),'onClick':()=>_0x46edb9['stopPresenting'](),'children':_0x1e07cb(0x10d)})]});}function Te(){const _0x50ed92=_0x4b385e;return _0x438293(_0x2f0f25,{'children':_0x50ed92(0xba)});}var Fe=Object[_0x4b385e(0x7a)],He=(_0x14fcb0,_0x392abc,_0x26892a,_0x144901)=>{for(var _0x30f053=_0x144901>0x1?void 0x0:_0x144901?Fe(_0x392abc,_0x26892a):_0x392abc,_0x6b2080=_0x14fcb0['length']-0x1,_0x5f4059;_0x6b2080>=0x0;_0x6b2080--)(_0x5f4059=_0x14fcb0[_0x6b2080])&&(_0x30f053=_0x5f4059(_0x30f053)||_0x30f053);return _0x30f053;},A=(_0x2715d9,_0x10ef9b)=>(_0x236300,_0xc43959)=>_0x10ef9b(_0x236300,_0xc43959,_0x2715d9);let m=class extends _0x55b9aa{constructor(_0x432d96,_0x35a6aa){const _0x165e49=_0x4b385e;super(),this[_0x165e49(0xb3)]=_0x432d96,this['_uiPartsService']=_0x35a6aa,this[_0x165e49(0xc7)]();}[_0x4b385e(0xc7)](){const _0x174faf=_0x4b385e;this[_0x174faf(0x86)](this[_0x174faf(0x70)][_0x174faf(0xff)](_0x5934f6[_0x174faf(0xc5)],()=>_0x307cfd(Le,this[_0x174faf(0xb3)])));}};m=He([A(0x0,_0x560870(_0x31eff1)),A(0x1,_0x23c3f9)],m);const ye=_0x4b385e(0x7d),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x1c5d8c,_0x4bf762,_0x28e88c,_0x4f186a)=>{const _0x219385=_0x4b385e;for(var _0x496e28=_0x4f186a>0x1?void 0x0:_0x4f186a?Ue(_0x4bf762,_0x28e88c):_0x4bf762,_0x261c52=_0x1c5d8c[_0x219385(0xa0)]-0x1,_0x37a327;_0x261c52>=0x0;_0x261c52--)(_0x37a327=_0x1c5d8c[_0x261c52])&&(_0x496e28=_0x37a327(_0x496e28)||_0x496e28);return _0x496e28;},je=(_0x4a2875,_0x1c3b46)=>(_0x1c4557,_0x4cc21a)=>_0x1c3b46(_0x1c4557,_0x4cc21a,_0x4a2875);let I=class extends _0x55b9aa{constructor(_0x298300){const _0x3be550=_0x4b385e;super(),this['_liveShareService']=_0x298300,this[_0x3be550(0xde)]();}[_0x4b385e(0xde)](){const _0xb8165f=_0x4b385e;[_0x1fce62['id'],_0x3ab047['id'],_0x441168['id']][_0xb8165f(0x8f)](_0xc8eb5b=>{const _0x516cc2=_0xb8165f;this['disposeWithMe'](this[_0x516cc2(0xea)][_0x516cc2(0xfc)](_0xc8eb5b));});}};I=Ve([je(0x0,_0x560870(L))],I);var Me=Object[_0x4b385e(0xef)],ke=Object[_0x4b385e(0x7a)],Ge=(_0x2b47be,_0x57d4ac,_0xa2a60e)=>_0x57d4ac in _0x2b47be?Me(_0x2b47be,_0x57d4ac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa2a60e}):_0x2b47be[_0x57d4ac]=_0xa2a60e,We=(_0x5d5e61,_0x42573a,_0x5dce0c,_0x232e34)=>{const _0x62af58=_0x4b385e;for(var _0x38c172=_0x232e34>0x1?void 0x0:_0x232e34?ke(_0x42573a,_0x5dce0c):_0x42573a,_0x25381f=_0x5d5e61[_0x62af58(0xa0)]-0x1,_0x19b427;_0x25381f>=0x0;_0x25381f--)(_0x19b427=_0x5d5e61[_0x25381f])&&(_0x38c172=_0x19b427(_0x38c172)||_0x38c172);return _0x38c172;},F=(_0x5de875,_0x13171b)=>(_0x2b8e28,_0x1e158a)=>_0x13171b(_0x2b8e28,_0x1e158a,_0x5de875),B=(_0x22c666,_0x389fa4,_0x5ee340)=>Ge(_0x22c666,typeof _0x389fa4!=_0x4b385e(0xc9)?_0x389fa4+'':_0x389fa4,_0x5ee340);const Ye=_0x4b385e(0x112);let b=class extends _0x91b81e{constructor(_0x5a9ef2=T,_0x54d532,_0x55fd9d){const _0x757270=_0x4b385e;super(),this[_0x757270(0xaa)]=_0x5a9ef2,this[_0x757270(0xb3)]=_0x54d532,this[_0x757270(0x100)]=_0x55fd9d;const {..._0x316d5f}=_0x473004({},T,this[_0x757270(0xaa)]);this[_0x757270(0x100)][_0x757270(0x106)](ye,_0x316d5f);}[_0x4b385e(0xdc)](){const _0x569425=_0x4b385e;_0x489867(this[_0x569425(0xb3)],_0x55fb95([[L],[S],[I],[m]],this['_config'][_0x569425(0xa7)])),_0x20f240(this[_0x569425(0xb3)],[[I]]);}[_0x4b385e(0xdd)](){_0x20f240(this['_injector'],[[m]]);}};B(b,_0x4b385e(0x8b),_0x2d5db4['UNIVER_UNKNOWN']),B(b,_0x4b385e(0xa4),Ye),b=We([_0x2ae8e8(_0xff5435),F(0x1,_0x560870(_0x31eff1)),F(0x2,_0x290f96)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
function _0x1d8f(_0xb058dc,_0x3c0d8f){const _0x17fa9f=_0x17fa();return _0x1d8f=function(_0x1d8f29,_0x46e013){_0x1d8f29=_0x1d8f29-0x1bd;let _0x238f7b=_0x17fa9f[_0x1d8f29];return _0x238f7b;},_0x1d8f(_0xb058dc,_0x3c0d8f);}const _0xa0c0b6=_0x1d8f;(function(_0x291d23,_0x35c7f2){const _0x268d65=_0x1d8f,_0x52691d=_0x291d23();while(!![]){try{const _0x5b3fad=parseInt(_0x268d65(0x1f1))/0x1+parseInt(_0x268d65(0x1e6))/0x2*(parseInt(_0x268d65(0x1e9))/0x3)+parseInt(_0x268d65(0x1fe))/0x4*(parseInt(_0x268d65(0x1f2))/0x5)+-parseInt(_0x268d65(0x210))/0x6+-parseInt(_0x268d65(0x20c))/0x7+-parseInt(_0x268d65(0x20d))/0x8+-parseInt(_0x268d65(0x220))/0x9*(-parseInt(_0x268d65(0x226))/0xa);if(_0x5b3fad===_0x35c7f2)break;else _0x52691d['push'](_0x52691d['shift']());}catch(_0x3044ea){_0x52691d['push'](_0x52691d['shift']());}}}(_0x17fa,0xb5bdb));var J=Object[_0xa0c0b6(0x1bf)],K=(_0x417551,_0x1d7ab3,_0x28b094)=>_0x1d7ab3 in _0x417551?J(_0x417551,_0x1d7ab3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28b094}):_0x417551[_0x1d7ab3]=_0x28b094,u=(_0x2fdc4d,_0x4dfcad,_0x4fef98)=>K(_0x2fdc4d,typeof _0x4dfcad!=_0xa0c0b6(0x243)?_0x4dfcad+'':_0x4dfcad,_0x4fef98);import{Disposable as _0x47be1,toDisposable as _0x59aa4e,IUniverInstanceService as _0x50bef0,Inject as _0x46e58e,Injector as _0x34570d,IConfigService as _0x51d074,ICommandService as _0x2d4b2a,RxDisposable as _0x5b9ba2,UniverInstanceType as _0x1c5b82,DisposableCollection as _0x574b38,CommandType as _0x24cbe9,DependentOn as _0x3e663a,Plugin as _0x405a79,merge as _0x3b3b27,registerDependencies as _0x233739,mergeOverrideWithDependencies as _0x3f2ca7,touchDependencies as _0x65f852}from'@univerjs/core';import{useDependency as _0x3020fd,useObservable as _0x5a31ad,IUIPartsService as _0x1089dc,BuiltInUIPart as _0x3ee1f5,connectInjector as _0x376659}from'@univerjs/ui';import{jsx as _0x4b183d,jsxs as _0x3f8de9,Fragment as _0x39f39b}from'react/jsx-runtime';import{Dropdown as _0x209b75,clsx as _0x59ff9b,Button as _0x89b657}from'@univerjs/design';import{useRef as _0x470aac,createElement as _0x4e23df,forwardRef as _0x2895d2,useState as _0x458258,useEffect as _0x4df20f}from'react';function _0x17fa(){const _0x17f208=['params','onStarting','_reporters','_unitID','_sharedOperations','clear','forEach','tag','Start\x20following','getOwnPropertyDescriptor','_init','type','registerComponent','IDLE','getStatus','path','dispose$','_stopFollowing','parse','shouldShareOperation','registerSharedOperation','NEW_CHANGESETS','LiveShareIcon','substring','PRESENTING','_beIdle','children','LIVESHARE_OPERATION','complete','presenter','mask','includes','162910LiRmoY','executeCommand','Present\x20this\x20document','3NVCpAw','SAME_OPERATION_SHARE_INTERVAL','override','_handleOperation','then','getValue','evenodd','_status$','1360520oVwqWP','19115tUEyHn','_injector','getLiveShareCoordinator','_startLiveShareCoordinator','_commandDisposable','getMemberID','status$','colorChannel1','_liveShareService','startFollowing','replace','data','516FqOXsG','event$','string','defIds','url(#$1','presenting','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','getLiveShareCoordinatorSync','ONLINE','getUnitId','_startFollowing','HEADER_MENU','displayName','div','8715105TnapPe','9902136sPNQGp','FOLLOWING','delete','3046074ZbSNLL','_univerInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_commandService','_presenter','onRendered','tryStartPresenting','sessionStatus$','You\x27are\x20offline.','_handleOffline','getCurrentTypeOfUnit$','OPERATION','init','not-following','stopFollowing','from','81cEkYSP','default','Start','idle','following','add','1999700XmVGvv','_uiPartsService','You\x27re\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','toString','pipe','xlink:href','live-share-icon','_status','has','find','_collabSessionService','LIVESHARE_TERMINATE','entries','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','offline','fill','Stop\x20following','dispose','button','getInitialStates','_handleTerminate','_configService','You\x27re\x20not\x20following\x20the\x20presenter','pluginName','send','subscribe','_config','http://www.w3.org/2000/svg','symbol','createInstance','random','LIVESHARE_NEW_HOST','UNIVER_UNKNOWN','unsubscribe','_handleOnline','You\x27re\x20presenting\x20the\x20document','univerjs-icon\x20univerjs-icon-','unitId','_entities','stringify','0\x200\x2017\x2017','1em','_handleNewHost','Stop\x20presenting','get','mutations','NOT_FOLLOWING','_collabSession','map','onCommandExecuted','_fetchOperations','idSuffix','stopPresenting','next','assign','UNIVER_SHEET','asObservable','sheet','current','OFFLINE','registerInitialStateReporter','currentColor','LIVESHARE_REQUEST_HOST','_startPresenting','defineProperty','trim','live-share.config','getTypeOfUnitDisposed$','attrs','length','_mountLiveShare'];_0x17fa=function(){return _0x17f208;};return _0x17fa();}import{CollaborationEvent as _0xf330b6,parseProtocolChangeset as _0x282616}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x548dab,SessionStatus as _0x3972e8,UniverCollaborationClientPlugin as _0x176434}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x97a76,SetWorksheetActiveOperation as _0x15573d}from'@univerjs/sheets';import{BehaviorSubject as _0x52f53b,Subject as _0x272542}from'rxjs';import{takeUntil as _0x290aa2,throttleTime as _0x374a3c}from'rxjs/operators';import{SetZoomRatioOperation as _0x240ca6,SetScrollOperation as _0x35c30a}from'@univerjs/sheets-ui';function k({ref:_0x1f28ce,..._0x311b60}){const _0x46e321=_0xa0c0b6,{icon:_0x44c4c4,id:_0x51d30c,className:_0x3591d5,extend:_0x543391,..._0x5d680f}=_0x311b60,_0x30534b=(_0x46e321(0x24b)+_0x51d30c+'\x20'+(_0x3591d5||''))[_0x46e321(0x1c0)](),_0x1773cd=_0x470aac('_'+Oe());return G(_0x44c4c4,''+_0x51d30c,{'defIds':_0x44c4c4[_0x46e321(0x201)],'idSuffix':_0x1773cd[_0x46e321(0x261)]},{'ref':_0x1f28ce,'className':_0x30534b,..._0x5d680f},_0x543391);}function G(_0x333660,_0x3bdd40,_0x12577b,_0x44ddb1,_0x4e6e63){const _0x2e8a26=_0xa0c0b6;return _0x4e23df(_0x333660[_0x2e8a26(0x1cd)],{'key':_0x3bdd40,...be(_0x333660,_0x12577b,_0x4e6e63),..._0x44ddb1},(Ee(_0x333660,_0x12577b)[_0x2e8a26(0x1e0)]||[])['map']((_0x45a197,_0x1e9d91)=>G(_0x45a197,_0x3bdd40+'-'+_0x333660[_0x2e8a26(0x1cd)]+'-'+_0x1e9d91,_0x12577b,void 0x0,_0x4e6e63)));}function be(_0x465700,_0x268d9d,_0xdcc508){const _0x45ae33=_0xa0c0b6,_0x21aeb9={..._0x465700[_0x45ae33(0x1c3)]};_0xdcc508!=null&&_0xdcc508['colorChannel1']&&_0x21aeb9[_0x45ae33(0x236)]===_0x45ae33(0x1f9)&&(_0x21aeb9[_0x45ae33(0x236)]=_0xdcc508[_0x45ae33(0x1f9)]),_0x465700[_0x45ae33(0x1cd)]===_0x45ae33(0x1e4)&&_0x21aeb9['id']&&(_0x21aeb9['id']=_0x21aeb9['id']+_0x268d9d[_0x45ae33(0x25a)]),Object[_0x45ae33(0x233)](_0x21aeb9)[_0x45ae33(0x1cc)](([_0x305482,_0x274c4e])=>{const _0x533105=_0x45ae33;_0x305482==='mask'&&typeof _0x274c4e=='string'&&(_0x21aeb9[_0x305482]=_0x274c4e[_0x533105(0x1fc)](/url\(#(.*)\)/,_0x533105(0x202)+_0x268d9d[_0x533105(0x25a)]+')'));});const {defIds:_0x43c5c}=_0x268d9d;return!_0x43c5c||_0x43c5c['length']===0x0||(_0x465700['tag']==='use'&&_0x21aeb9['xlink:href']&&(_0x21aeb9['xlink:href']=_0x21aeb9[_0x45ae33(0x22c)]+_0x268d9d[_0x45ae33(0x25a)]),Object[_0x45ae33(0x233)](_0x21aeb9)[_0x45ae33(0x1cc)](([_0x18993f,_0x4af33d])=>{const _0xbd2c6=_0x45ae33;typeof _0x4af33d=='string'&&(_0x21aeb9[_0x18993f]=_0x4af33d[_0xbd2c6(0x1fc)](/url\(#(.*)\)/,_0xbd2c6(0x202)+_0x268d9d[_0xbd2c6(0x25a)]+')'));})),_0x21aeb9;}function Ee(_0x3cdbb2,_0x55fbb5){const _0x36fdd6=_0xa0c0b6;var _0x1f4304;const {defIds:_0x43d229}=_0x55fbb5;return!_0x43d229||_0x43d229[_0x36fdd6(0x1c4)]===0x0?_0x3cdbb2:_0x3cdbb2[_0x36fdd6(0x1cd)]==='defs'&&((_0x1f4304=_0x3cdbb2[_0x36fdd6(0x1e0)])!=null&&_0x1f4304[_0x36fdd6(0x1c4)])?{..._0x3cdbb2,'children':_0x3cdbb2[_0x36fdd6(0x1e0)][_0x36fdd6(0x257)](_0x3b6b59=>typeof _0x3b6b59['attrs']['id']==_0x36fdd6(0x200)&&_0x43d229&&_0x43d229[_0x36fdd6(0x1e5)](_0x3b6b59[_0x36fdd6(0x1c3)]['id'])?{..._0x3b6b59,'attrs':{..._0x3b6b59[_0x36fdd6(0x1c3)],'id':_0x3b6b59[_0x36fdd6(0x1c3)]['id']+_0x55fbb5[_0x36fdd6(0x25a)]}}:_0x3b6b59)}:_0x3cdbb2;}function Oe(){const _0x47f5e4=_0xa0c0b6;return Math[_0x47f5e4(0x245)]()[_0x47f5e4(0x22a)](0x24)[_0x47f5e4(0x1dd)](0x2,0x8);}k[_0xa0c0b6(0x20a)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0xa0c0b6(0x242),'fill':'none','viewBox':_0xa0c0b6(0x24f),'width':'1em','height':_0xa0c0b6(0x250)},'children':[{'tag':_0xa0c0b6(0x1d5),'attrs':{'fill':_0xa0c0b6(0x264),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0xa0c0b6(0x1d5),'attrs':{'fill':_0xa0c0b6(0x264),'d':_0xa0c0b6(0x234),'fillRule':'evenodd','clipRule':_0xa0c0b6(0x1ef)}}]},W=_0x2895d2(function(_0xb7f402,_0x51456f){const _0x22b72a=_0xa0c0b6;return _0x4e23df(k,Object[_0x22b72a(0x25d)]({},_0xb7f402,{'id':_0x22b72a(0x22d),'ref':_0x51456f,'icon':we}));});W[_0xa0c0b6(0x20a)]=_0xa0c0b6(0x1dc);class L extends _0x47be1{constructor(){const _0x1d8f56=_0xa0c0b6;super(...arguments),u(this,_0x1d8f56(0x1ca),new Set()),u(this,'_reporters',new Set());}[_0xa0c0b6(0x1da)](_0x9b44d7){const _0x278d24=_0xa0c0b6;return this[_0x278d24(0x1ca)][_0x278d24(0x225)](_0x9b44d7),_0x59aa4e(()=>this[_0x278d24(0x1ca)][_0x278d24(0x20f)](_0x9b44d7));}[_0xa0c0b6(0x263)](_0x1634f3){const _0x1dc117=_0xa0c0b6;return this[_0x1dc117(0x1c8)][_0x1dc117(0x225)](_0x1634f3),_0x59aa4e(()=>this['_reporters'][_0x1dc117(0x20f)](_0x1634f3));}[_0xa0c0b6(0x1d9)](_0x556e29){return this['_sharedOperations']['has'](_0x556e29);}[_0xa0c0b6(0x23a)](_0x4f025e){const _0x47e4f8=_0xa0c0b6;return Array[_0x47e4f8(0x21f)](this[_0x47e4f8(0x1c8)])[_0x47e4f8(0x257)](_0x481bd8=>_0x481bd8(_0x4f025e));}}var Ne=Object[_0xa0c0b6(0x1cf)],Y=(_0xaff5d5,_0x33db42,_0x309d60,_0x22133c)=>{const _0x52dc27=_0xa0c0b6;for(var _0x335f17=_0x22133c>0x1?void 0x0:_0x22133c?Ne(_0x33db42,_0x309d60):_0x33db42,_0x5d9a08=_0xaff5d5[_0x52dc27(0x1c4)]-0x1,_0x1c255b;_0x5d9a08>=0x0;_0x5d9a08--)(_0x1c255b=_0xaff5d5[_0x5d9a08])&&(_0x335f17=_0x1c255b(_0x335f17)||_0x335f17);return _0x335f17;},_=(_0x477077,_0x5dd4d9)=>(_0x2a79e7,_0x29a138)=>_0x5dd4d9(_0x2a79e7,_0x29a138,_0x477077);let S=class extends _0x5b9ba2{constructor(_0x5c50ac,_0x2b94cf,_0x3c3ad8){const _0x856814=_0xa0c0b6;super(),u(this,_0x856814(0x24d),new Map()),(this['_univerInstanceService']=_0x5c50ac,this[_0x856814(0x1f3)]=_0x2b94cf,this[_0x856814(0x231)]=_0x3c3ad8,this[_0x856814(0x1d0)]());}async[_0xa0c0b6(0x1f4)](_0x38d03d){const _0x429233=_0xa0c0b6;return this[_0x429233(0x24d)][_0x429233(0x22f)](_0x38d03d)||await this[_0x429233(0x1f5)](_0x38d03d),this[_0x429233(0x24d)][_0x429233(0x253)](_0x38d03d);}[_0xa0c0b6(0x205)](_0x56d221){const _0x16f85c=_0xa0c0b6;var _0x1d254f;return(_0x1d254f=this['_entities'][_0x16f85c(0x253)](_0x56d221))!=null?_0x1d254f:null;}[_0xa0c0b6(0x1d0)](){const _0x3bf8a8=_0xa0c0b6;this[_0x3bf8a8(0x211)]['getTypeOfUnitAdded$'](_0x1c5b82[_0x3bf8a8(0x25e)])[_0x3bf8a8(0x22b)](_0x290aa2(this[_0x3bf8a8(0x1d6)]))[_0x3bf8a8(0x240)](async _0x263afd=>{const _0x49a577=_0x3bf8a8,_0x5035e8=_0x263afd['getUnitId']();this[_0x49a577(0x24d)]['has'](_0x5035e8)||this[_0x49a577(0x1f5)](_0x5035e8);}),this[_0x3bf8a8(0x211)][_0x3bf8a8(0x1c2)](_0x1c5b82[_0x3bf8a8(0x25e)])[_0x3bf8a8(0x22b)](_0x290aa2(this[_0x3bf8a8(0x1d6)]))[_0x3bf8a8(0x240)](_0x5d8bc1=>{const _0x46367a=_0x3bf8a8,_0x3131bc=_0x5d8bc1['getUnitId'](),_0x2df236=this[_0x46367a(0x24d)][_0x46367a(0x253)](_0x3131bc);_0x2df236==null||_0x2df236['dispose']();});}async[_0xa0c0b6(0x1f5)](_0x343e91){const _0x4b6e6e=_0xa0c0b6,_0x5f5549=await this[_0x4b6e6e(0x231)]['requireSession'](_0x343e91),_0x2f4062=this['_injector'][_0x4b6e6e(0x244)](N,_0x343e91,_0x5f5549);return _0x2f4062[_0x4b6e6e(0x21c)](),this[_0x4b6e6e(0x24d)]['set'](_0x343e91,_0x2f4062),_0x2f4062;}};S=Y([_(0x0,_0x50bef0),_(0x1,_0x46e58e(_0x34570d)),_(0x2,_0x46e58e(_0x548dab))],S);var c=(_0x1f0707=>(_0x1f0707[_0xa0c0b6(0x262)]='offline',_0x1f0707[_0xa0c0b6(0x1d3)]=_0xa0c0b6(0x223),_0x1f0707['FOLLOWING']=_0xa0c0b6(0x224),_0x1f0707[_0xa0c0b6(0x255)]=_0xa0c0b6(0x21d),_0x1f0707['PRESENTING']=_0xa0c0b6(0x203),_0x1f0707))(c||{});const Ce=_0xa0c0b6(0x1ea),De=0xc8;let N=class extends _0x5b9ba2{constructor(_0x315fe2,_0x44b645,_0x1bb5f0,_0x46fbe8,_0x22027c){const _0x2180a4=_0xa0c0b6;super(),u(this,_0x2180a4(0x1f0),new _0x52f53b(_0x2180a4(0x223))),u(this,_0x2180a4(0x1f8),this[_0x2180a4(0x1f0)][_0x2180a4(0x25f)]()),u(this,'_init',!0x1),u(this,_0x2180a4(0x1f6),null),u(this,'_presenter',null),(this[_0x2180a4(0x1c9)]=_0x315fe2,this[_0x2180a4(0x256)]=_0x44b645,this[_0x2180a4(0x23c)]=_0x1bb5f0,this[_0x2180a4(0x1fa)]=_0x46fbe8,this[_0x2180a4(0x213)]=_0x22027c);}get[_0xa0c0b6(0x22e)](){const _0x33a331=_0xa0c0b6;return this['_status$'][_0x33a331(0x1ee)]();}['dispose'](){const _0x47b04c=_0xa0c0b6;var _0x57dccb;(_0x57dccb=this['_commandDisposable'])==null||_0x57dccb[_0x47b04c(0x238)](),this[_0x47b04c(0x1f0)][_0x47b04c(0x25c)]('idle'),this[_0x47b04c(0x1f0)][_0x47b04c(0x1e2)]();}[_0xa0c0b6(0x1d4)](){const _0x16245b=_0xa0c0b6;return this[_0x16245b(0x22e)];}[_0xa0c0b6(0x21c)](){const _0x106ff5=_0xa0c0b6;this['_init']||(this[_0x106ff5(0x1d0)]=!0x0,this[_0x106ff5(0x256)][_0x106ff5(0x217)]['pipe'](_0x290aa2(this[_0x106ff5(0x1d6)]))['subscribe'](_0xc6aa38=>{const _0xe31007=_0x106ff5;switch(_0xc6aa38){case _0x3972e8[_0xe31007(0x262)]:this['_handleOffline']();break;case _0x3972e8[_0xe31007(0x206)]:this[_0xe31007(0x249)]();break;}}),this[_0x106ff5(0x256)][_0x106ff5(0x1ff)][_0x106ff5(0x22b)](_0x290aa2(this[_0x106ff5(0x1d6)]))['subscribe'](_0x21459f=>{const _0x5c7125=_0x106ff5,{eventID:_0x26bb47}=_0x21459f;switch(_0x26bb47){case _0xf330b6[_0x5c7125(0x246)]:this['_handleNewHost'](_0x21459f);break;case _0xf330b6[_0x5c7125(0x1e1)]:this['_handleOperation'](_0x21459f);break;case _0xf330b6[_0x5c7125(0x232)]:this[_0x5c7125(0x23b)]();break;case _0xf330b6[_0x5c7125(0x1db)]:this['_handleNewChangeSets'](_0x21459f);break;}}));}[_0xa0c0b6(0x216)](){const _0xa24803=_0xa0c0b6;this[_0xa24803(0x256)]['send']({'eventID':_0xf330b6[_0xa24803(0x1bd)],'data':{'unitID':this['_unitID'],'userID':this[_0xa24803(0x256)][_0xa24803(0x1f7)]()}},this[_0xa24803(0x1c9)]);}[_0xa0c0b6(0x25b)](){const _0xc85687=_0xa0c0b6;this[_0xc85687(0x22e)]===_0xc85687(0x203)&&(this[_0xc85687(0x1f0)][_0xc85687(0x25c)](_0xc85687(0x223)),this[_0xc85687(0x256)]['send']({'eventID':_0xf330b6[_0xc85687(0x232)],'data':{'unitID':this[_0xc85687(0x1c9)]}},this[_0xc85687(0x1c9)]));}[_0xa0c0b6(0x1fb)](){const _0x399c12=_0xa0c0b6;this[_0x399c12(0x22e)]===_0x399c12(0x21d)&&(this['_status$'][_0x399c12(0x25c)](_0x399c12(0x224)),this[_0x399c12(0x208)]());}[_0xa0c0b6(0x21e)](){const _0xf1d7cd=_0xa0c0b6;this[_0xf1d7cd(0x22e)]===_0xf1d7cd(0x224)&&this[_0xf1d7cd(0x1d7)]();}[_0xa0c0b6(0x251)](_0x4e2031){const _0x59e27c=_0xa0c0b6,{presenter:_0x3da6a9}=_0x4e2031[_0x59e27c(0x1fd)],_0x225acb=this[_0x59e27c(0x256)]['getMemberID']();this[_0x59e27c(0x214)]=_0x3da6a9,_0x3da6a9===_0x225acb?(this[_0x59e27c(0x1d7)](),this[_0x59e27c(0x1be)]()):this[_0x59e27c(0x22e)]!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0xa0c0b6(0x259)](){const _0x5974ff=_0xa0c0b6,_0x5b38c4={'eventID':_0xf330b6[_0x5974ff(0x229)]};this[_0x5974ff(0x256)][_0x5974ff(0x23f)](_0x5b38c4,this[_0x5974ff(0x1c9)]);}[_0xa0c0b6(0x23b)](){const _0x59a53e=_0xa0c0b6;this[_0x59a53e(0x214)]=null,this[_0x59a53e(0x22e)]!==_0x59a53e(0x203)&&this[_0x59a53e(0x1df)]();}['_handleNewChangeSets'](_0x558607){const _0x14f936=_0xa0c0b6;if(this['_status']===_0x14f936(0x224)&&this[_0x14f936(0x214)]===_0x558607[_0x14f936(0x1fd)]['memberID']){const _0x399e05=_0x282616(_0x558607[_0x14f936(0x1fd)])[_0x14f936(0x254)]['reverse']()[_0x14f936(0x230)](_0x15ec3f=>_0x15ec3f['id']===_0x97a76['id']);if(_0x399e05){const _0xa6d10b=_0x399e05[_0x14f936(0x1c6)][_0x14f936(0x24c)],_0x22da9d=_0x399e05[_0x14f936(0x1c6)][_0x14f936(0x260)]['id'];setTimeout(()=>{const _0x1228d5=_0x14f936;this['_commandService'][_0x1228d5(0x1e7)](_0x15573d['id'],{'unitId':_0xa6d10b,'subUnitId':_0x22da9d},{'fromCollab':!0x0});});}}}[_0xa0c0b6(0x1be)](){const _0x519772=_0xa0c0b6;this[_0x519772(0x1f0)][_0x519772(0x25c)](_0x519772(0x203));const _0x769864=new Map(),_0x26dd89=this[_0x519772(0x1f6)]=new _0x574b38();_0x26dd89['add'](_0x59aa4e(()=>{const _0x15d407=_0x519772;_0x769864[_0x15d407(0x1cc)](_0x1ffe6a=>_0x1ffe6a['complete']()),_0x769864[_0x15d407(0x1cb)]();})),_0x26dd89[_0x519772(0x225)](this[_0x519772(0x213)][_0x519772(0x258)](_0x4deff7=>{const _0x3e66cb=_0x519772;var _0x96fe22;if(_0x4deff7[_0x3e66cb(0x1d1)]!==_0x24cbe9[_0x3e66cb(0x21b)]||!this[_0x3e66cb(0x1fa)]['shouldShareOperation'](_0x4deff7['id']))return;const {id:_0x40b512}=_0x4deff7;let _0x42dfed;_0x769864[_0x3e66cb(0x22f)](_0x40b512)?_0x42dfed=_0x769864[_0x3e66cb(0x253)](_0x40b512):(_0x42dfed=new _0x272542(),_0x769864['set'](_0x40b512,_0x42dfed),_0x42dfed[_0x3e66cb(0x22b)](_0x374a3c((_0x96fe22=this[_0x3e66cb(0x23c)]['getConfig'](Ce))!=null?_0x96fe22:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3b4dff=>{const _0x4affe8=_0x3e66cb;this[_0x4affe8(0x256)]['send']({'eventID':_0xf330b6[_0x4affe8(0x1e1)],'data':{'unitID':this[_0x4affe8(0x1c9)],'operations':{[_0x3b4dff['id']]:{'id':_0x3b4dff['id'],'params':JSON['stringify'](_0x3b4dff['params'])}}}},this['_unitID']);})),_0x42dfed[_0x3e66cb(0x25c)](_0x4deff7);})),this['_liveShareService']['getInitialStates'](this[_0x519772(0x1c9)])[_0x519772(0x1cc)](_0x4b18f4=>this['_collabSession'][_0x519772(0x23f)]({'eventID':_0xf330b6[_0x519772(0x1e1)],'data':{'unitID':this[_0x519772(0x1c9)],'operations':{[_0x4b18f4['id']]:{'id':_0x4b18f4['id'],'params':JSON[_0x519772(0x24e)](_0x4b18f4[_0x519772(0x1c6)])}}}},this[_0x519772(0x1c9)]));}['_stopPresenting'](){const _0x3437e6=_0xa0c0b6;var _0x3c25a1;this[_0x3437e6(0x1f0)]['next'](_0x3437e6(0x223)),(_0x3c25a1=this['_commandDisposable'])==null||_0x3c25a1[_0x3437e6(0x238)](),this['_commandDisposable']=null;}[_0xa0c0b6(0x208)](){const _0x2d037a=_0xa0c0b6;var _0x3e1246;(_0x3e1246=this[_0x2d037a(0x1f6)])==null||_0x3e1246['dispose'](),this['_status$'][_0x2d037a(0x25c)]('following');}[_0xa0c0b6(0x1df)](){const _0x2611bd=_0xa0c0b6;var _0x24b7e8;this[_0x2611bd(0x1f0)][_0x2611bd(0x25c)](_0x2611bd(0x223)),(_0x24b7e8=this['_commandDisposable'])==null||_0x24b7e8[_0x2611bd(0x238)](),this[_0x2611bd(0x1f6)]=null;}[_0xa0c0b6(0x1d7)](){const _0x406226=_0xa0c0b6;var _0x4fee8c;this[_0x406226(0x1f0)][_0x406226(0x25c)](_0x406226(0x21d)),(_0x4fee8c=this[_0x406226(0x1f6)])==null||_0x4fee8c[_0x406226(0x238)]();}[_0xa0c0b6(0x1ec)](_0x366569){const _0x5dd1a5=_0xa0c0b6;if([_0x5dd1a5(0x203),_0x5dd1a5(0x21d),_0x5dd1a5(0x235)]['includes'](this['_status'])||!_0x366569[_0x5dd1a5(0x1fd)][_0x5dd1a5(0x1e3)]||_0x366569[_0x5dd1a5(0x1fd)][_0x5dd1a5(0x1e3)]===this[_0x5dd1a5(0x256)][_0x5dd1a5(0x1f7)]())return;this[_0x5dd1a5(0x22e)]==='idle'&&this[_0x5dd1a5(0x208)]();const _0x48cc91=_0x366569[_0x5dd1a5(0x1fd)]['operations'];Object['values'](_0x48cc91)[_0x5dd1a5(0x1cc)](_0x33a239=>{const _0x4b4bce=_0x5dd1a5;this[_0x4b4bce(0x213)][_0x4b4bce(0x1e7)](_0x33a239['id'],_0x33a239['params']?JSON[_0x4b4bce(0x1d8)](_0x33a239['params']):null,{'fromCollab':!0x0});});}[_0xa0c0b6(0x219)](){const _0x1a1073=_0xa0c0b6;var _0x10bd21;this[_0x1a1073(0x1f0)]['next'](_0x1a1073(0x235)),(_0x10bd21=this['_commandDisposable'])==null||_0x10bd21[_0x1a1073(0x238)]();}[_0xa0c0b6(0x249)](){const _0x545106=_0xa0c0b6;this[_0x545106(0x1f0)]['next']('idle'),this[_0x545106(0x259)]();}};N=Y([_(0x2,_0x51d074),_(0x3,_0x46e58e(L)),_(0x4,_0x2d4b2a)],N);function Le(){const _0x1de32d=_0xa0c0b6,_0xc102b1=_0x3020fd(S),_0x5e4b35=_0x3020fd(_0x50bef0),_0x13977e=_0x5a31ad(()=>_0x5e4b35[_0x1de32d(0x21a)](_0x1c5b82[_0x1de32d(0x25e)]),void 0x0,!0x1,[]),[_0x246344,_0x2dee7c]=_0x458258(null),[_0xda82da,_0x47522b]=_0x458258(c[_0x1de32d(0x1d3)]),_0x1703d2=_0x470aac(null);return _0x4df20f(()=>(_0x13977e&&_0xc102b1[_0x1de32d(0x1f4)](_0x13977e[_0x1de32d(0x207)]())[_0x1de32d(0x1ed)](_0xf3bb57=>{const _0x44c4a4=_0x1de32d;_0x2dee7c(_0xf3bb57),_0x1703d2[_0x44c4a4(0x261)]=_0xf3bb57[_0x44c4a4(0x1f8)][_0x44c4a4(0x240)](_0x2f2db7=>{_0x47522b(_0x2f2db7);});}),()=>{const _0x4568d0=_0x1de32d;var _0x54ec1f;(_0x54ec1f=_0x1703d2[_0x4568d0(0x261)])==null||_0x54ec1f[_0x4568d0(0x248)](),_0x1703d2[_0x4568d0(0x261)]=null;}),[_0x13977e,_0xc102b1]),_0x246344?_0x4b183d(_0x209b75,{'align':'end','disabled':_0xda82da===c[_0x1de32d(0x262)],'className':_0x1de32d(0x204),'overlay':_0x4b183d(Re,{'status':_0xda82da,'coordinator':_0x246344}),'children':_0x4b183d(_0x1de32d(0x239),{'className':_0x59ff9b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xda82da===c[_0x1de32d(0x262)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xda82da!==c[_0x1de32d(0x262)]}),'type':_0x1de32d(0x239),'children':_0x4b183d(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2a7faa){const _0x31c817=_0xa0c0b6,{status:_0x35470a,coordinator:_0x4f9d9e}=_0x2a7faa;switch(_0x35470a){case c[_0x31c817(0x1d3)]:return _0x4b183d($e,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x20e)]:return _0x4b183d(xe,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x255)]:return _0x4b183d(Pe,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x262)]:return _0x4b183d(Te,{});case c[_0x31c817(0x1de)]:return _0x4b183d(Ae,{'coordinator':_0x4f9d9e});default:return null;}}function $e(_0x31f826){const _0x2328e8=_0xa0c0b6,{coordinator:_0xd12508}=_0x31f826;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0x2328e8(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2328e8(0x1e8)}),_0x4b183d(_0x89b657,{'onClick':()=>_0xd12508['tryStartPresenting'](),'children':_0x2328e8(0x222)})]});}function xe(_0x319f0b){const _0x41082c=_0xa0c0b6,{coordinator:_0x106875}=_0x319f0b;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d('div',{'className':_0x41082c(0x212),'children':_0x41082c(0x228)}),_0x4b183d(_0x89b657,{'onClick':()=>_0x106875[_0x41082c(0x21e)](),'children':_0x41082c(0x237)})]});}function Pe(_0x8e6b43){const _0xbcb14e=_0xa0c0b6,{coordinator:_0x5a2ee7}=_0x8e6b43;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0xbcb14e(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xbcb14e(0x23d)}),_0x4b183d(_0x89b657,{'variant':'text','onClick':()=>_0x5a2ee7[_0xbcb14e(0x1fb)](),'children':_0xbcb14e(0x1ce)})]});}function Ae(_0x5e90c2){const _0x2b07f0=_0xa0c0b6,{coordinator:_0x35c664}=_0x5e90c2;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0x2b07f0(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2b07f0(0x24a)}),_0x4b183d(_0x89b657,{'variant':_0x2b07f0(0x221),'onClick':()=>_0x35c664['stopPresenting'](),'children':_0x2b07f0(0x252)})]});}function Te(){const _0x5330a3=_0xa0c0b6;return _0x4b183d(_0x39f39b,{'children':_0x5330a3(0x218)});}var Fe=Object[_0xa0c0b6(0x1cf)],He=(_0x2cfb82,_0x2ef574,_0x51ecfa,_0x26e78b)=>{for(var _0x3463e1=_0x26e78b>0x1?void 0x0:_0x26e78b?Fe(_0x2ef574,_0x51ecfa):_0x2ef574,_0x4eb2eb=_0x2cfb82['length']-0x1,_0x2c3652;_0x4eb2eb>=0x0;_0x4eb2eb--)(_0x2c3652=_0x2cfb82[_0x4eb2eb])&&(_0x3463e1=_0x2c3652(_0x3463e1)||_0x3463e1);return _0x3463e1;},A=(_0x1a9823,_0x47d7d5)=>(_0x31539e,_0x58aea0)=>_0x47d7d5(_0x31539e,_0x58aea0,_0x1a9823);let m=class extends _0x47be1{constructor(_0x401f41,_0x459896){const _0x58371a=_0xa0c0b6;super(),this['_injector']=_0x401f41,this[_0x58371a(0x227)]=_0x459896,this[_0x58371a(0x1c5)]();}[_0xa0c0b6(0x1c5)](){const _0x56c65c=_0xa0c0b6;this['disposeWithMe'](this[_0x56c65c(0x227)][_0x56c65c(0x1d2)](_0x3ee1f5[_0x56c65c(0x209)],()=>_0x376659(Le,this[_0x56c65c(0x1f3)])));}};m=He([A(0x0,_0x46e58e(_0x34570d)),A(0x1,_0x1089dc)],m);const ye=_0xa0c0b6(0x1c1),T={};var Ue=Object[_0xa0c0b6(0x1cf)],Ve=(_0x584ff5,_0x49514c,_0x386ddd,_0x2bd633)=>{const _0xd91ca2=_0xa0c0b6;for(var _0x1309c4=_0x2bd633>0x1?void 0x0:_0x2bd633?Ue(_0x49514c,_0x386ddd):_0x49514c,_0x55efbb=_0x584ff5[_0xd91ca2(0x1c4)]-0x1,_0x378b46;_0x55efbb>=0x0;_0x55efbb--)(_0x378b46=_0x584ff5[_0x55efbb])&&(_0x1309c4=_0x378b46(_0x1309c4)||_0x1309c4);return _0x1309c4;},je=(_0x248691,_0x375808)=>(_0x1a8ed6,_0x1d5038)=>_0x375808(_0x1a8ed6,_0x1d5038,_0x248691);let I=class extends _0x47be1{constructor(_0x4ca817){const _0x9f996=_0xa0c0b6;super(),this[_0x9f996(0x1fa)]=_0x4ca817,this[_0x9f996(0x1d0)]();}[_0xa0c0b6(0x1d0)](){const _0x44a536=_0xa0c0b6;[_0x240ca6['id'],_0x35c30a['id'],_0x15573d['id']][_0x44a536(0x1cc)](_0x49e56d=>{const _0x55d7a5=_0x44a536;this['disposeWithMe'](this[_0x55d7a5(0x1fa)][_0x55d7a5(0x1da)](_0x49e56d));});}};I=Ve([je(0x0,_0x46e58e(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x85523a,_0x34dc93,_0x435a77)=>_0x34dc93 in _0x85523a?Me(_0x85523a,_0x34dc93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x435a77}):_0x85523a[_0x34dc93]=_0x435a77,We=(_0x2d5a03,_0x51b7a8,_0x2e6e94,_0x1c79f7)=>{for(var _0x2b1b7f=_0x1c79f7>0x1?void 0x0:_0x1c79f7?ke(_0x51b7a8,_0x2e6e94):_0x51b7a8,_0x2603ba=_0x2d5a03['length']-0x1,_0x30da1d;_0x2603ba>=0x0;_0x2603ba--)(_0x30da1d=_0x2d5a03[_0x2603ba])&&(_0x2b1b7f=_0x30da1d(_0x2b1b7f)||_0x2b1b7f);return _0x2b1b7f;},F=(_0x354821,_0x39c35f)=>(_0x13acfc,_0x51d30e)=>_0x39c35f(_0x13acfc,_0x51d30e,_0x354821),B=(_0x5d3577,_0x624882,_0xcc4901)=>Ge(_0x5d3577,typeof _0x624882!=_0xa0c0b6(0x243)?_0x624882+'':_0x624882,_0xcc4901);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x405a79{constructor(_0x531770=T,_0xa1d0ae,_0x23463e){const _0x3474c4=_0xa0c0b6;super(),this[_0x3474c4(0x241)]=_0x531770,this[_0x3474c4(0x1f3)]=_0xa1d0ae,this['_configService']=_0x23463e;const {..._0x5e9ccf}=_0x3b3b27({},T,this[_0x3474c4(0x241)]);this[_0x3474c4(0x23c)]['setConfig'](ye,_0x5e9ccf);}[_0xa0c0b6(0x1c7)](){const _0x2cbc2e=_0xa0c0b6;_0x233739(this['_injector'],_0x3f2ca7([[L],[S],[I],[m]],this[_0x2cbc2e(0x241)][_0x2cbc2e(0x1eb)])),_0x65f852(this[_0x2cbc2e(0x1f3)],[[I]]);}[_0xa0c0b6(0x215)](){const _0x1793e4=_0xa0c0b6;_0x65f852(this[_0x1793e4(0x1f3)],[[m]]);}};B(b,_0xa0c0b6(0x1d1),_0x1c5b82[_0xa0c0b6(0x247)]),B(b,_0xa0c0b6(0x23e),Ye),b=We([_0x3e663a(_0x176434),F(0x1,_0x46e58e(_0x34570d)),F(0x2,_0x51d074)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x33a569=_0x277f;(function(_0x5cd959,_0x4916d1){const _0x2cc90b=_0x277f,_0x113030=_0x5cd959();while(!![]){try{const _0x10619a=-parseInt(_0x2cc90b(0xac))/0x1*(parseInt(_0x2cc90b(0xa9))/0x2)+-parseInt(_0x2cc90b(0xad))/0x3*(-parseInt(_0x2cc90b(0xa1))/0x4)+-parseInt(_0x2cc90b(0x99))/0x5+-parseInt(_0x2cc90b(0xa8))/0x6*(-parseInt(_0x2cc90b(0xa5))/0x7)+parseInt(_0x2cc90b(0xab))/0x8+parseInt(_0x2cc90b(0x9e))/0x9*(parseInt(_0x2cc90b(0xaa))/0xa)+-parseInt(_0x2cc90b(0x93))/0xb;if(_0x10619a===_0x4916d1)break;else _0x113030['push'](_0x113030['shift']());}catch(_0x4085c6){_0x113030['push'](_0x113030['shift']());}}}(_0x31f7,0xad0b4));import{LiveShareController as _0x59129e,LiveShareStatus as _0x1a7214}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x8a0a89}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x1f4e13}from'@univerjs/sheets';import{SetScrollOperation as _0x54813f}from'@univerjs/sheets-ui';import{FRange as _0x23e2ea}from'@univerjs/sheets/facade';import{FUniver as _0x53e75f,FEnum as _0x179f5f}from'@univerjs/core/facade';class I extends _0x23e2ea{[_0x33a569(0xa2)](_0x13859a,_0x33b13f,_0x2ca1e3,_0x124d95,_0x2c3400){const _0x290594=_0x33a569,_0x3b531c=_0x13859a['get'](_0x59129e),_0x27ebac=_0x13859a[_0x290594(0x97)](_0x8a0a89),_0x16c33a=_0x33b13f[_0x290594(0xa6)](),_0x53cfec=_0x33b13f[_0x290594(0x98)](),_0x288377=_0x3b531c[_0x290594(0x8f)](_0x16c33a);(_0x288377==null?void 0x0:_0x288377[_0x290594(0x9c)]())!==_0x1a7214[_0x290594(0xa3)]||(_0x2ca1e3[_0x290594(0x9b)]()!==_0x53cfec[_0x290594(0x9b)]()&&this['_commandService'][_0x290594(0xa4)](_0x1f4e13['id'],{'unitId':_0x16c33a,'subUnitId':_0x2ca1e3[_0x290594(0x9b)]()}),!_0x27ebac[_0x290594(0x95)](_0x16c33a))||_0x2c3400[_0x290594(0x8e)](_0x54813f['id'],{'unitId':_0x33b13f[_0x290594(0xa6)](),'sheetId':_0x2ca1e3['getSheetId'](),'sheetViewStartRow':_0x124d95['startRow'],'sheetViewStartColumn':_0x124d95[_0x290594(0x90)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x31f7(){const _0x18f288=['syncExecuteCommand','getLiveShareCoordinatorSync','startColumn','_injector','stopPresenting','9315801UkdtTk','tryStartPresenting','getRenderById','getActiveWorkbook','get','getActiveSheet','3556655GDXyOn','getId','getSheetId','getStatus','No\x20active\x20workbook\x20found.','9hgOSzs','startFollowing','getLiveShareStatus','124GsAqyr','_initialize','PRESENTING','executeCommand','7fDaKHo','getUnitId','LiveShareStatusEnum','7465386ozIUVJ','103990GYCBOL','5405110oKvtaP','2117960WcYciz','16tZWvmK','101559BPdaPW','IDLE','startPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','extend','stopFollowing'];_0x31f7=function(){return _0x18f288;};return _0x31f7();}_0x23e2ea['extend'](I);function _0x277f(_0x3be93e,_0x490b9a){const _0x31f76c=_0x31f7();return _0x277f=function(_0x277f61,_0x534624){_0x277f61=_0x277f61-0x8b;let _0x849b4e=_0x31f76c[_0x277f61];return _0x849b4e;},_0x277f(_0x3be93e,_0x490b9a);}class m extends _0x53e75f{[_0x33a569(0xa0)](){const _0x1b7a82=_0x33a569;var _0x521b28,_0x3e0a4f;const _0xb7224=this['_injector'][_0x1b7a82(0x97)](_0x59129e),_0x14c35f=(_0x521b28=this[_0x1b7a82(0x96)]())==null?void 0x0:_0x521b28[_0x1b7a82(0x9a)]();if(!_0x14c35f)throw new Error(_0x1b7a82(0x9d));const _0x3d17b6=_0xb7224[_0x1b7a82(0x8f)](_0x14c35f);return(_0x3e0a4f=_0x3d17b6==null?void 0x0:_0x3d17b6[_0x1b7a82(0x9c)]())!=null?_0x3e0a4f:_0x1a7214[_0x1b7a82(0xae)];}[_0x33a569(0x9f)](){const _0x239c72=_0x33a569;var _0x16a070;const _0x2a0812=this[_0x239c72(0x91)][_0x239c72(0x97)](_0x59129e),_0x5eb7a5=(_0x16a070=this[_0x239c72(0x96)]())==null?void 0x0:_0x16a070['getId']();if(!_0x5eb7a5)throw new Error(_0x239c72(0x9d));const _0x201828=_0x2a0812[_0x239c72(0x8f)](_0x5eb7a5);if(!_0x201828)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x201828[_0x239c72(0x9f)]();}[_0x33a569(0x8d)](){const _0x4f7d67=_0x33a569;var _0x40d17d;const _0x3558fe=this[_0x4f7d67(0x91)][_0x4f7d67(0x97)](_0x59129e),_0x1440ab=(_0x40d17d=this[_0x4f7d67(0x96)]())==null?void 0x0:_0x40d17d[_0x4f7d67(0x9a)]();if(!_0x1440ab)throw new Error(_0x4f7d67(0x9d));const _0x19fa2f=_0x3558fe['getLiveShareCoordinatorSync'](_0x1440ab);if(!_0x19fa2f)throw new Error(_0x4f7d67(0x8b));_0x19fa2f[_0x4f7d67(0x8d)]();}[_0x33a569(0xaf)](){const _0x1510f6=_0x33a569;var _0x3037d2;const _0x229206=this['_injector']['get'](_0x59129e),_0x2ee8f0=(_0x3037d2=this[_0x1510f6(0x96)]())==null?void 0x0:_0x3037d2['getId']();if(!_0x2ee8f0)throw new Error(_0x1510f6(0x9d));const _0x185e27=_0x229206[_0x1510f6(0x8f)](_0x2ee8f0);if(!_0x185e27)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x185e27[_0x1510f6(0x94)]();}[_0x33a569(0x92)](){const _0x9e4d7f=_0x33a569;var _0x1b6227;const _0xb8eab0=this[_0x9e4d7f(0x91)]['get'](_0x59129e),_0x386f67=(_0x1b6227=this[_0x9e4d7f(0x96)]())==null?void 0x0:_0x1b6227[_0x9e4d7f(0x9a)]();if(!_0x386f67)throw new Error(_0x9e4d7f(0x9d));const _0x528a8a=_0xb8eab0[_0x9e4d7f(0x8f)](_0x386f67);if(!_0x528a8a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x528a8a[_0x9e4d7f(0x92)]();}}_0x53e75f[_0x33a569(0x8c)](m);class C extends _0x179f5f{get[_0x33a569(0xa7)](){return _0x1a7214;}}_0x179f5f[_0x33a569(0x8c)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4b385e=_0x3816;(function(_0x4bac75,_0x5e62f2){const _0x277a18=_0x3816,_0x47bef8=_0x4bac75();while(!![]){try{const _0x102d05=-parseInt(_0x277a18(0xa8))/0x1*(parseInt(_0x277a18(0xf8))/0x2)+parseInt(_0x277a18(0xb2))/0x3+-parseInt(_0x277a18(0x9e))/0x4+parseInt(_0x277a18(0x74))/0x5*(-parseInt(_0x277a18(0x92))/0x6)+-parseInt(_0x277a18(0x94))/0x7+parseInt(_0x277a18(0xc3))/0x8+parseInt(_0x277a18(0x93))/0x9;if(_0x102d05===_0x5e62f2)break;else _0x47bef8['push'](_0x47bef8['shift']());}catch(_0x3ce130){_0x47bef8['push'](_0x47bef8['shift']());}}}(_0x3dcf,0xb51ef));var J=Object[_0x4b385e(0xef)],K=(_0xa8a3db,_0x5c660c,_0x21ebe7)=>_0x5c660c in _0xa8a3db?J(_0xa8a3db,_0x5c660c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21ebe7}):_0xa8a3db[_0x5c660c]=_0x21ebe7,u=(_0x5371b7,_0x73a5eb,_0x1b4416)=>K(_0x5371b7,typeof _0x73a5eb!=_0x4b385e(0xc9)?_0x73a5eb+'':_0x73a5eb,_0x1b4416);function _0x3dcf(){const _0x229e82=['executeCommand','FOLLOWING','disposeWithMe','univer-size-4','tag','_reporters','colorChannel1','type','find','1em','createInstance','forEach','end','status$','6YULNRE','16913538wxahpW','5248684LyFxGL','defs','data','onCommandExecuted','event$','NOT_FOLLOWING','_univerInstanceService','_collabSession','UNIVER_SHEET','dispose','2456044MnyNoK','from','length','current','evenodd','svg','pluginName','ONLINE','button','override','2RRUaZS','presenter','_config','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','getLiveShareCoordinator','attrs','idle','getTypeOfUnitDisposed$','_startLiveShareCoordinator','3353559kUnGEM','_injector','LIVESHARE_OPERATION','OPERATION','assign','substring','You\x27re\x20following\x20the\x20presenter','stringify','You\x27are\x20offline.','_entities','univerjs-icon\x20univerjs-icon-','http://www.w3.org/2000/svg','complete','params','_beIdle','_commandService','mask','2220176LoXtrF','LiveShareIcon','HEADER_MENU','url(#$1','_mountLiveShare','then','symbol','asObservable','random','Start','following','defIds','_presenter','add','_sharedOperations','string','registerInitialStateReporter','operations','getValue','_commandDisposable','replace','none','IDLE','_status','next','onStarting','onRendered','_init','offline','use','has','entries','xlink:href','PRESENTING','getTypeOfUnitAdded$','_stopPresenting','send','tryStartPresenting','_startPresenting','_liveShareService','div','_stopFollowing','_handleOnline','Stop\x20following','defineProperty','_handleNewChangeSets','LIVESHARE_TERMINATE','default','sessionStatus$','displayName','OFFLINE','getInitialStates','startFollowing','302002cyBlDP','NEW_CHANGESETS','_handleOffline','stopFollowing','registerSharedOperation','_status$','unsubscribe','registerComponent','_configService','presenting','_handleOperation','currentColor','not-following','dispose$','setConfig','getMemberID','UniverIcon','_startFollowing','LIVESHARE_REQUEST_HOST','0\x200\x2017\x2017','Present\x20this\x20document','Stop\x20presenting','_fetchOperations','getUnitId','_handleNewHost','memberID','UNIVER_LIVE_SHARE_PLUGIN','values','text','_uiPartsService','map','reverse','live-share-icon','4334805SdMhJr','init','pipe','children','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_unitID','getOwnPropertyDescriptor','path','delete','live-share.config','getConfig','You\x27re\x20not\x20following\x20the\x20presenter','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','SAME_OPERATION_SHARE_INTERVAL','get'];_0x3dcf=function(){return _0x229e82;};return _0x3dcf();}import{Disposable as _0x55b9aa,toDisposable as _0x1f42e7,IUniverInstanceService as _0x2f6fb5,Inject as _0x560870,Injector as _0x31eff1,IConfigService as _0x290f96,ICommandService as _0x496629,RxDisposable as _0x55a73f,UniverInstanceType as _0x2d5db4,DisposableCollection as _0xa3999d,CommandType as _0x13d715,DependentOn as _0x2ae8e8,Plugin as _0x91b81e,merge as _0x473004,registerDependencies as _0x489867,mergeOverrideWithDependencies as _0x55fb95,touchDependencies as _0x20f240}from'@univerjs/core';import{useDependency as _0x1f8dd1,useObservable as _0x20a2e6,IUIPartsService as _0x23c3f9,BuiltInUIPart as _0x5934f6,connectInjector as _0x307cfd}from'@univerjs/ui';import{jsx as _0x438293,jsxs as _0x586af0,Fragment as _0x2f0f25}from'react/jsx-runtime';import{Dropdown as _0x51a47b,clsx as _0x40c4f6,Button as _0x42e7b4}from'@univerjs/design';import{useRef as _0x2ba9a6,createElement as _0xc48b3e,forwardRef as _0x3fd9ee,useState as _0x5cf7d9,useEffect as _0x588a86}from'react';import{CollaborationEvent as _0x5a2308,parseProtocolChangeset as _0x4e55cd}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x909e59,SessionStatus as _0x166cc9,UniverCollaborationClientPlugin as _0xff5435}from'@univerjs-pro/collaboration-client';function _0x3816(_0x4e4af1,_0x432e3f){const _0x3dcfcb=_0x3dcf();return _0x3816=function(_0x38160d,_0x33b89d){_0x38160d=_0x38160d-0x70;let _0x5c7349=_0x3dcfcb[_0x38160d];return _0x5c7349;},_0x3816(_0x4e4af1,_0x432e3f);}import{InsertSheetMutation as _0x42d2fb,SetWorksheetActiveOperation as _0x441168}from'@univerjs/sheets';import{BehaviorSubject as _0x5a3aa7,Subject as _0x696cda}from'rxjs';import{takeUntil as _0x2032e2,throttleTime as _0x2d0a05}from'rxjs/operators';import{SetZoomRatioOperation as _0x1fce62,SetScrollOperation as _0x3ab047}from'@univerjs/sheets-ui';function k({ref:_0x272b0d,..._0x155a92}){const _0x2faf5d=_0x4b385e,{icon:_0x7ee335,id:_0x12d0d9,className:_0x296ed0,extend:_0xd0b3c5,..._0x56a117}=_0x155a92,_0x5f4e33=(_0x2faf5d(0xbc)+_0x12d0d9+'\x20'+(_0x296ed0||''))['trim'](),_0x539c8c=_0x2ba9a6('_'+Oe());return G(_0x7ee335,''+_0x12d0d9,{'defIds':_0x7ee335[_0x2faf5d(0xce)],'idSuffix':_0x539c8c[_0x2faf5d(0xa1)]},{'ref':_0x272b0d,'className':_0x5f4e33,..._0x56a117},_0xd0b3c5);}function G(_0x4619ba,_0x531b1f,_0x16468c,_0x4d5f13,_0x23e4fe){const _0x263685=_0x4b385e;return _0xc48b3e(_0x4619ba[_0x263685(0x88)],{'key':_0x531b1f,...be(_0x4619ba,_0x16468c,_0x23e4fe),..._0x4d5f13},(Ee(_0x4619ba,_0x16468c)[_0x263685(0x77)]||[])[_0x263685(0x71)]((_0x2b58af,_0x9f8873)=>G(_0x2b58af,_0x531b1f+'-'+_0x4619ba[_0x263685(0x88)]+'-'+_0x9f8873,_0x16468c,void 0x0,_0x23e4fe)));}function be(_0x2072d2,_0x2b9087,_0x6916a2){const _0x262e7d=_0x4b385e,_0x393959={..._0x2072d2[_0x262e7d(0xae)]};_0x6916a2!=null&&_0x6916a2[_0x262e7d(0x8a)]&&_0x393959['fill']===_0x262e7d(0x8a)&&(_0x393959['fill']=_0x6916a2[_0x262e7d(0x8a)]),_0x2072d2[_0x262e7d(0x88)]===_0x262e7d(0xc2)&&_0x393959['id']&&(_0x393959['id']=_0x393959['id']+_0x2b9087[_0x262e7d(0xac)]),Object[_0x262e7d(0xe2)](_0x393959)[_0x262e7d(0x8f)](([_0x4e6a69,_0x4eb3a3])=>{const _0x47613c=_0x262e7d;_0x4e6a69===_0x47613c(0xc2)&&typeof _0x4eb3a3==_0x47613c(0xd2)&&(_0x393959[_0x4e6a69]=_0x4eb3a3[_0x47613c(0xd7)](/url\(#(.*)\)/,_0x47613c(0xc6)+_0x2b9087[_0x47613c(0xac)]+')'));});const {defIds:_0x53995a}=_0x2b9087;return!_0x53995a||_0x53995a['length']===0x0||(_0x2072d2[_0x262e7d(0x88)]===_0x262e7d(0xe0)&&_0x393959[_0x262e7d(0xe3)]&&(_0x393959[_0x262e7d(0xe3)]=_0x393959[_0x262e7d(0xe3)]+_0x2b9087[_0x262e7d(0xac)]),Object[_0x262e7d(0xe2)](_0x393959)[_0x262e7d(0x8f)](([_0x360e36,_0x2a8b39])=>{const _0x54f85b=_0x262e7d;typeof _0x2a8b39==_0x54f85b(0xd2)&&(_0x393959[_0x360e36]=_0x2a8b39[_0x54f85b(0xd7)](/url\(#(.*)\)/,_0x54f85b(0xc6)+_0x2b9087[_0x54f85b(0xac)]+')'));})),_0x393959;}function Ee(_0x413a65,_0x54fff5){const _0x19dfec=_0x4b385e;var _0x2e8f7a;const {defIds:_0x48ac0d}=_0x54fff5;return!_0x48ac0d||_0x48ac0d[_0x19dfec(0xa0)]===0x0?_0x413a65:_0x413a65[_0x19dfec(0x88)]===_0x19dfec(0x95)&&((_0x2e8f7a=_0x413a65[_0x19dfec(0x77)])!=null&&_0x2e8f7a['length'])?{..._0x413a65,'children':_0x413a65[_0x19dfec(0x77)][_0x19dfec(0x71)](_0x4bcfed=>typeof _0x4bcfed[_0x19dfec(0xae)]['id']==_0x19dfec(0xd2)&&_0x48ac0d&&_0x48ac0d['includes'](_0x4bcfed[_0x19dfec(0xae)]['id'])?{..._0x4bcfed,'attrs':{..._0x4bcfed[_0x19dfec(0xae)],'id':_0x4bcfed[_0x19dfec(0xae)]['id']+_0x54fff5['idSuffix']}}:_0x4bcfed)}:_0x413a65;}function Oe(){const _0x302ce9=_0x4b385e;return Math[_0x302ce9(0xcb)]()['toString'](0x24)[_0x302ce9(0xb7)](0x2,0x8);}k[_0x4b385e(0xf4)]=_0x4b385e(0x108);const we={'tag':_0x4b385e(0xa3),'attrs':{'xmlns':_0x4b385e(0xbd),'fill':_0x4b385e(0xd8),'viewBox':_0x4b385e(0x10b),'width':_0x4b385e(0x8d),'height':_0x4b385e(0x8d)},'children':[{'tag':'path','attrs':{'fill':_0x4b385e(0x103),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x4b385e(0x7b),'attrs':{'fill':'currentColor','d':_0x4b385e(0xab),'fillRule':_0x4b385e(0xa2),'clipRule':_0x4b385e(0xa2)}}]},W=_0x3fd9ee(function(_0x539275,_0xd32d19){const _0x5dd266=_0x4b385e;return _0xc48b3e(k,Object[_0x5dd266(0xb6)]({},_0x539275,{'id':_0x5dd266(0x73),'ref':_0xd32d19,'icon':we}));});W['displayName']=_0x4b385e(0xc4);class L extends _0x55b9aa{constructor(){const _0x299752=_0x4b385e;super(...arguments),u(this,_0x299752(0xd1),new Set()),u(this,_0x299752(0x89),new Set());}[_0x4b385e(0xfc)](_0x257061){const _0xa32498=_0x4b385e;return this[_0xa32498(0xd1)]['add'](_0x257061),_0x1f42e7(()=>this[_0xa32498(0xd1)][_0xa32498(0x7c)](_0x257061));}[_0x4b385e(0xd3)](_0x442100){const _0x104f14=_0x4b385e;return this[_0x104f14(0x89)][_0x104f14(0xd0)](_0x442100),_0x1f42e7(()=>this[_0x104f14(0x89)]['delete'](_0x442100));}['shouldShareOperation'](_0x2aef0f){const _0x122227=_0x4b385e;return this['_sharedOperations'][_0x122227(0xe1)](_0x2aef0f);}[_0x4b385e(0xf6)](_0x1d18b6){const _0x262da1=_0x4b385e;return Array[_0x262da1(0x9f)](this['_reporters'])[_0x262da1(0x71)](_0x267c42=>_0x267c42(_0x1d18b6));}}var Ne=Object[_0x4b385e(0x7a)],Y=(_0x1045b7,_0x516c55,_0xfe6300,_0x188b95)=>{const _0x1e8419=_0x4b385e;for(var _0x28d3f2=_0x188b95>0x1?void 0x0:_0x188b95?Ne(_0x516c55,_0xfe6300):_0x516c55,_0x4f6f22=_0x1045b7[_0x1e8419(0xa0)]-0x1,_0x3d5ba7;_0x4f6f22>=0x0;_0x4f6f22--)(_0x3d5ba7=_0x1045b7[_0x4f6f22])&&(_0x28d3f2=_0x3d5ba7(_0x28d3f2)||_0x28d3f2);return _0x28d3f2;},_=(_0x40a91b,_0xe6cb75)=>(_0x44b00f,_0x337321)=>_0xe6cb75(_0x44b00f,_0x337321,_0x40a91b);let S=class extends _0x55a73f{constructor(_0x2ab905,_0x4b236b,_0x2b2c0a){const _0x49a220=_0x4b385e;super(),u(this,_0x49a220(0xbb),new Map()),(this[_0x49a220(0x9a)]=_0x2ab905,this[_0x49a220(0xb3)]=_0x4b236b,this['_collabSessionService']=_0x2b2c0a,this[_0x49a220(0xde)]());}async[_0x4b385e(0xad)](_0x5ef093){const _0x44c690=_0x4b385e;return this[_0x44c690(0xbb)][_0x44c690(0xe1)](_0x5ef093)||await this[_0x44c690(0xb1)](_0x5ef093),this[_0x44c690(0xbb)][_0x44c690(0x83)](_0x5ef093);}['getLiveShareCoordinatorSync'](_0x574fa5){const _0x48403e=_0x4b385e;var _0x1647fb;return(_0x1647fb=this['_entities'][_0x48403e(0x83)](_0x574fa5))!=null?_0x1647fb:null;}[_0x4b385e(0xde)](){const _0xe22945=_0x4b385e;this[_0xe22945(0x9a)][_0xe22945(0xe5)](_0x2d5db4[_0xe22945(0x9c)])[_0xe22945(0x76)](_0x2032e2(this[_0xe22945(0x105)]))[_0xe22945(0x81)](async _0x4a24e6=>{const _0x580ccd=_0xe22945,_0x58762b=_0x4a24e6[_0x580ccd(0x10f)]();this['_entities'][_0x580ccd(0xe1)](_0x58762b)||this[_0x580ccd(0xb1)](_0x58762b);}),this[_0xe22945(0x9a)][_0xe22945(0xb0)](_0x2d5db4[_0xe22945(0x9c)])[_0xe22945(0x76)](_0x2032e2(this['dispose$']))[_0xe22945(0x81)](_0x3a1e53=>{const _0x2a628d=_0xe22945,_0x36c05b=_0x3a1e53['getUnitId'](),_0x4c0cb9=this[_0x2a628d(0xbb)][_0x2a628d(0x83)](_0x36c05b);_0x4c0cb9==null||_0x4c0cb9[_0x2a628d(0x9d)]();});}async[_0x4b385e(0xb1)](_0x3bed00){const _0xdb9f00=_0x4b385e,_0x20758c=await this['_collabSessionService']['requireSession'](_0x3bed00),_0x20223b=this[_0xdb9f00(0xb3)][_0xdb9f00(0x8e)](N,_0x3bed00,_0x20758c);return _0x20223b[_0xdb9f00(0x75)](),this[_0xdb9f00(0xbb)]['set'](_0x3bed00,_0x20223b),_0x20223b;}};S=Y([_(0x0,_0x2f6fb5),_(0x1,_0x560870(_0x31eff1)),_(0x2,_0x560870(_0x909e59))],S);var c=(_0x78e18=>(_0x78e18[_0x4b385e(0xf5)]='offline',_0x78e18[_0x4b385e(0xd9)]=_0x4b385e(0xaf),_0x78e18['FOLLOWING']=_0x4b385e(0xcd),_0x78e18['NOT_FOLLOWING']='not-following',_0x78e18['PRESENTING']='presenting',_0x78e18))(c||{});const Ce=_0x4b385e(0x82),De=0xc8;let N=class extends _0x55a73f{constructor(_0x64e6d1,_0x58b685,_0x20ce38,_0x2068f5,_0x3c8fad){const _0x5172ba=_0x4b385e;super(),u(this,_0x5172ba(0xfd),new _0x5a3aa7(_0x5172ba(0xaf))),u(this,_0x5172ba(0x91),this['_status$'][_0x5172ba(0xca)]()),u(this,'_init',!0x1),u(this,_0x5172ba(0xd6),null),u(this,_0x5172ba(0xcf),null),(this['_unitID']=_0x64e6d1,this[_0x5172ba(0x9b)]=_0x58b685,this['_configService']=_0x20ce38,this[_0x5172ba(0xea)]=_0x2068f5,this['_commandService']=_0x3c8fad);}get[_0x4b385e(0xda)](){const _0x4f0b24=_0x4b385e;return this['_status$'][_0x4f0b24(0xd5)]();}[_0x4b385e(0x9d)](){const _0x1902cd=_0x4b385e;var _0x3a834a;(_0x3a834a=this[_0x1902cd(0xd6)])==null||_0x3a834a[_0x1902cd(0x9d)](),this[_0x1902cd(0xfd)]['next'](_0x1902cd(0xaf)),this[_0x1902cd(0xfd)][_0x1902cd(0xbe)]();}['getStatus'](){const _0x4ac7a6=_0x4b385e;return this[_0x4ac7a6(0xda)];}[_0x4b385e(0x75)](){const _0x426d40=_0x4b385e;this[_0x426d40(0xde)]||(this[_0x426d40(0xde)]=!0x0,this[_0x426d40(0x9b)][_0x426d40(0xf3)][_0x426d40(0x76)](_0x2032e2(this[_0x426d40(0x105)]))['subscribe'](_0x1e1d53=>{const _0x4f25ed=_0x426d40;switch(_0x1e1d53){case _0x166cc9['OFFLINE']:this[_0x4f25ed(0xfa)]();break;case _0x166cc9[_0x4f25ed(0xa5)]:this['_handleOnline']();break;}}),this[_0x426d40(0x9b)][_0x426d40(0x98)]['pipe'](_0x2032e2(this[_0x426d40(0x105)]))['subscribe'](_0xa7b508=>{const _0x16f3cf=_0x426d40,{eventID:_0x12c00f}=_0xa7b508;switch(_0x12c00f){case _0x5a2308['LIVESHARE_NEW_HOST']:this[_0x16f3cf(0x110)](_0xa7b508);break;case _0x5a2308[_0x16f3cf(0xb4)]:this[_0x16f3cf(0x102)](_0xa7b508);break;case _0x5a2308['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x5a2308[_0x16f3cf(0xf9)]:this[_0x16f3cf(0xf0)](_0xa7b508);break;}}));}['tryStartPresenting'](){const _0x12a5ff=_0x4b385e;this[_0x12a5ff(0x9b)][_0x12a5ff(0xe7)]({'eventID':_0x5a2308[_0x12a5ff(0x10a)],'data':{'unitID':this[_0x12a5ff(0x79)],'userID':this['_collabSession'][_0x12a5ff(0x107)]()}},this[_0x12a5ff(0x79)]);}['stopPresenting'](){const _0x4583fa=_0x4b385e;this[_0x4583fa(0xda)]==='presenting'&&(this['_status$'][_0x4583fa(0xdb)]('idle'),this[_0x4583fa(0x9b)][_0x4583fa(0xe7)]({'eventID':_0x5a2308[_0x4583fa(0xf1)],'data':{'unitID':this[_0x4583fa(0x79)]}},this[_0x4583fa(0x79)]));}['startFollowing'](){const _0x3fa5c3=_0x4b385e;this[_0x3fa5c3(0xda)]==='not-following'&&(this[_0x3fa5c3(0xfd)]['next']('following'),this[_0x3fa5c3(0x109)]());}[_0x4b385e(0xfb)](){const _0x49e43a=_0x4b385e;this['_status']===_0x49e43a(0xcd)&&this[_0x49e43a(0xec)]();}['_handleNewHost'](_0x481686){const _0x161725=_0x4b385e,{presenter:_0x3d10b8}=_0x481686[_0x161725(0x96)],_0xe22f0e=this[_0x161725(0x9b)][_0x161725(0x107)]();this[_0x161725(0xcf)]=_0x3d10b8,_0x3d10b8===_0xe22f0e?(this[_0x161725(0xec)](),this['_startPresenting']()):this[_0x161725(0xda)]!==_0x161725(0x104)&&(this[_0x161725(0xe6)](),this[_0x161725(0x109)]());}[_0x4b385e(0x10e)](){const _0x57cd14=_0x4b385e,_0x26bd8d={'eventID':_0x5a2308['LIVESHARE_FETCH_OPERATIONS']};this[_0x57cd14(0x9b)][_0x57cd14(0xe7)](_0x26bd8d,this['_unitID']);}['_handleTerminate'](){const _0x2d59b6=_0x4b385e;this[_0x2d59b6(0xcf)]=null,this[_0x2d59b6(0xda)]!==_0x2d59b6(0x101)&&this['_beIdle']();}[_0x4b385e(0xf0)](_0x34ac50){const _0x4ab20e=_0x4b385e;if(this['_status']===_0x4ab20e(0xcd)&&this[_0x4ab20e(0xcf)]===_0x34ac50[_0x4ab20e(0x96)][_0x4ab20e(0x111)]){const _0x32f8cb=_0x4e55cd(_0x34ac50[_0x4ab20e(0x96)])['mutations'][_0x4ab20e(0x72)]()[_0x4ab20e(0x8c)](_0x41e2e6=>_0x41e2e6['id']===_0x42d2fb['id']);if(_0x32f8cb){const _0x24a186=_0x32f8cb['params']['unitId'],_0x4b9aeb=_0x32f8cb[_0x4ab20e(0xbf)]['sheet']['id'];setTimeout(()=>{const _0x2ba811=_0x4ab20e;this[_0x2ba811(0xc1)]['executeCommand'](_0x441168['id'],{'unitId':_0x24a186,'subUnitId':_0x4b9aeb},{'fromCollab':!0x0});});}}}[_0x4b385e(0xe9)](){const _0x2fb4b8=_0x4b385e;this[_0x2fb4b8(0xfd)][_0x2fb4b8(0xdb)]('presenting');const _0x3d74b3=new Map(),_0xdc8b26=this['_commandDisposable']=new _0xa3999d();_0xdc8b26['add'](_0x1f42e7(()=>{const _0x5ec687=_0x2fb4b8;_0x3d74b3['forEach'](_0x402ced=>_0x402ced[_0x5ec687(0xbe)]()),_0x3d74b3['clear']();})),_0xdc8b26[_0x2fb4b8(0xd0)](this[_0x2fb4b8(0xc1)][_0x2fb4b8(0x97)](_0x198a21=>{const _0x4b07cc=_0x2fb4b8;var _0x3ca204;if(_0x198a21[_0x4b07cc(0x8b)]!==_0x13d715[_0x4b07cc(0xb5)]||!this['_liveShareService']['shouldShareOperation'](_0x198a21['id']))return;const {id:_0x35ee91}=_0x198a21;let _0x16f654;_0x3d74b3[_0x4b07cc(0xe1)](_0x35ee91)?_0x16f654=_0x3d74b3[_0x4b07cc(0x83)](_0x35ee91):(_0x16f654=new _0x696cda(),_0x3d74b3['set'](_0x35ee91,_0x16f654),_0x16f654[_0x4b07cc(0x76)](_0x2d0a05((_0x3ca204=this[_0x4b07cc(0x100)][_0x4b07cc(0x7e)](Ce))!=null?_0x3ca204:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b07cc(0x81)](_0x189a51=>{const _0x59060e=_0x4b07cc;this[_0x59060e(0x9b)]['send']({'eventID':_0x5a2308[_0x59060e(0xb4)],'data':{'unitID':this['_unitID'],'operations':{[_0x189a51['id']]:{'id':_0x189a51['id'],'params':JSON['stringify'](_0x189a51[_0x59060e(0xbf)])}}}},this[_0x59060e(0x79)]);})),_0x16f654[_0x4b07cc(0xdb)](_0x198a21);})),this['_liveShareService'][_0x2fb4b8(0xf6)](this[_0x2fb4b8(0x79)])['forEach'](_0x290468=>this[_0x2fb4b8(0x9b)][_0x2fb4b8(0xe7)]({'eventID':_0x5a2308['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2fb4b8(0x79)],'operations':{[_0x290468['id']]:{'id':_0x290468['id'],'params':JSON[_0x2fb4b8(0xb9)](_0x290468['params'])}}}},this[_0x2fb4b8(0x79)]));}[_0x4b385e(0xe6)](){const _0x5438d8=_0x4b385e;var _0x26072f;this[_0x5438d8(0xfd)]['next']('idle'),(_0x26072f=this[_0x5438d8(0xd6)])==null||_0x26072f['dispose'](),this[_0x5438d8(0xd6)]=null;}[_0x4b385e(0x109)](){const _0x199f54=_0x4b385e;var _0x578e83;(_0x578e83=this[_0x199f54(0xd6)])==null||_0x578e83['dispose'](),this[_0x199f54(0xfd)][_0x199f54(0xdb)]('following');}[_0x4b385e(0xc0)](){const _0x27616d=_0x4b385e;var _0x18eaeb;this['_status$'][_0x27616d(0xdb)](_0x27616d(0xaf)),(_0x18eaeb=this[_0x27616d(0xd6)])==null||_0x18eaeb[_0x27616d(0x9d)](),this[_0x27616d(0xd6)]=null;}[_0x4b385e(0xec)](){const _0x5eb6bd=_0x4b385e;var _0x3922f5;this['_status$']['next']('not-following'),(_0x3922f5=this[_0x5eb6bd(0xd6)])==null||_0x3922f5[_0x5eb6bd(0x9d)]();}[_0x4b385e(0x102)](_0x2e4fbe){const _0x34b1b3=_0x4b385e;if([_0x34b1b3(0x101),_0x34b1b3(0x104),_0x34b1b3(0xdf)]['includes'](this[_0x34b1b3(0xda)])||!_0x2e4fbe['data'][_0x34b1b3(0xa9)]||_0x2e4fbe['data']['presenter']===this[_0x34b1b3(0x9b)][_0x34b1b3(0x107)]())return;this[_0x34b1b3(0xda)]===_0x34b1b3(0xaf)&&this['_startFollowing']();const _0x140e4c=_0x2e4fbe['data'][_0x34b1b3(0xd4)];Object[_0x34b1b3(0x113)](_0x140e4c)[_0x34b1b3(0x8f)](_0x23a6e2=>{const _0x5a04b2=_0x34b1b3;this[_0x5a04b2(0xc1)][_0x5a04b2(0x84)](_0x23a6e2['id'],_0x23a6e2['params']?JSON['parse'](_0x23a6e2[_0x5a04b2(0xbf)]):null,{'fromCollab':!0x0});});}[_0x4b385e(0xfa)](){const _0x4bd34b=_0x4b385e;var _0x5a20fd;this[_0x4bd34b(0xfd)]['next'](_0x4bd34b(0xdf)),(_0x5a20fd=this[_0x4bd34b(0xd6)])==null||_0x5a20fd[_0x4bd34b(0x9d)]();}[_0x4b385e(0xed)](){const _0x2936b5=_0x4b385e;this[_0x2936b5(0xfd)][_0x2936b5(0xdb)](_0x2936b5(0xaf)),this[_0x2936b5(0x10e)]();}};N=Y([_(0x2,_0x290f96),_(0x3,_0x560870(L)),_(0x4,_0x496629)],N);function Le(){const _0x392b48=_0x4b385e,_0x2c8069=_0x1f8dd1(S),_0x3f35bd=_0x1f8dd1(_0x2f6fb5),_0x360ba9=_0x20a2e6(()=>_0x3f35bd['getCurrentTypeOfUnit$'](_0x2d5db4['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5df032,_0x42ec6a]=_0x5cf7d9(null),[_0x4327b2,_0x5e0ce7]=_0x5cf7d9(c[_0x392b48(0xd9)]),_0x3f3679=_0x2ba9a6(null);return _0x588a86(()=>(_0x360ba9&&_0x2c8069['getLiveShareCoordinator'](_0x360ba9['getUnitId']())[_0x392b48(0xc8)](_0x4efdd2=>{const _0xd79514=_0x392b48;_0x42ec6a(_0x4efdd2),_0x3f3679[_0xd79514(0xa1)]=_0x4efdd2[_0xd79514(0x91)][_0xd79514(0x81)](_0x9c5bab=>{_0x5e0ce7(_0x9c5bab);});}),()=>{const _0x40297e=_0x392b48;var _0x508a49;(_0x508a49=_0x3f3679['current'])==null||_0x508a49[_0x40297e(0xfe)](),_0x3f3679['current']=null;}),[_0x360ba9,_0x2c8069]),_0x5df032?_0x438293(_0x51a47b,{'align':_0x392b48(0x90),'disabled':_0x4327b2===c[_0x392b48(0xf5)],'className':_0x392b48(0x80),'overlay':_0x438293(Re,{'status':_0x4327b2,'coordinator':_0x5df032}),'children':_0x438293(_0x392b48(0xa6),{'className':_0x40c4f6(_0x392b48(0x78),{'univer-cursor-not-allowed':_0x4327b2===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4327b2!==c[_0x392b48(0xf5)]}),'type':'button','children':_0x438293(W,{'className':_0x392b48(0x87)})})}):null;}function Re(_0x56069f){const _0x3b13fe=_0x4b385e,{status:_0x3c360c,coordinator:_0x113ead}=_0x56069f;switch(_0x3c360c){case c['IDLE']:return _0x438293($e,{'coordinator':_0x113ead});case c[_0x3b13fe(0x85)]:return _0x438293(xe,{'coordinator':_0x113ead});case c[_0x3b13fe(0x99)]:return _0x438293(Pe,{'coordinator':_0x113ead});case c[_0x3b13fe(0xf5)]:return _0x438293(Te,{});case c[_0x3b13fe(0xe4)]:return _0x438293(Ae,{'coordinator':_0x113ead});default:return null;}}function $e(_0x3234f0){const _0x55860c=_0x4b385e,{coordinator:_0x3c0238}=_0x3234f0;return _0x586af0(_0x2f0f25,{'children':[_0x438293(_0x55860c(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x55860c(0x10c)}),_0x438293(_0x42e7b4,{'onClick':()=>_0x3c0238[_0x55860c(0xe8)](),'children':_0x55860c(0xcc)})]});}function xe(_0x1d1a22){const _0x6f1b28=_0x4b385e,{coordinator:_0x590b67}=_0x1d1a22;return _0x586af0(_0x2f0f25,{'children':[_0x438293(_0x6f1b28(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x6f1b28(0xb8)}),_0x438293(_0x42e7b4,{'onClick':()=>_0x590b67[_0x6f1b28(0xfb)](),'children':_0x6f1b28(0xee)})]});}function Pe(_0x6a3975){const _0x3e67f3=_0x4b385e,{coordinator:_0xb85e35}=_0x6a3975;return _0x586af0(_0x2f0f25,{'children':[_0x438293(_0x3e67f3(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3e67f3(0x7f)}),_0x438293(_0x42e7b4,{'variant':_0x3e67f3(0x114),'onClick':()=>_0xb85e35[_0x3e67f3(0xf7)](),'children':'Start\x20following'})]});}function Ae(_0x1713ee){const _0x1e07cb=_0x4b385e,{coordinator:_0x46edb9}=_0x1713ee;return _0x586af0(_0x2f0f25,{'children':[_0x438293(_0x1e07cb(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x438293(_0x42e7b4,{'variant':_0x1e07cb(0xf2),'onClick':()=>_0x46edb9['stopPresenting'](),'children':_0x1e07cb(0x10d)})]});}function Te(){const _0x50ed92=_0x4b385e;return _0x438293(_0x2f0f25,{'children':_0x50ed92(0xba)});}var Fe=Object[_0x4b385e(0x7a)],He=(_0x14fcb0,_0x392abc,_0x26892a,_0x144901)=>{for(var _0x30f053=_0x144901>0x1?void 0x0:_0x144901?Fe(_0x392abc,_0x26892a):_0x392abc,_0x6b2080=_0x14fcb0['length']-0x1,_0x5f4059;_0x6b2080>=0x0;_0x6b2080--)(_0x5f4059=_0x14fcb0[_0x6b2080])&&(_0x30f053=_0x5f4059(_0x30f053)||_0x30f053);return _0x30f053;},A=(_0x2715d9,_0x10ef9b)=>(_0x236300,_0xc43959)=>_0x10ef9b(_0x236300,_0xc43959,_0x2715d9);let m=class extends _0x55b9aa{constructor(_0x432d96,_0x35a6aa){const _0x165e49=_0x4b385e;super(),this[_0x165e49(0xb3)]=_0x432d96,this['_uiPartsService']=_0x35a6aa,this[_0x165e49(0xc7)]();}[_0x4b385e(0xc7)](){const _0x174faf=_0x4b385e;this[_0x174faf(0x86)](this[_0x174faf(0x70)][_0x174faf(0xff)](_0x5934f6[_0x174faf(0xc5)],()=>_0x307cfd(Le,this[_0x174faf(0xb3)])));}};m=He([A(0x0,_0x560870(_0x31eff1)),A(0x1,_0x23c3f9)],m);const ye=_0x4b385e(0x7d),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x1c5d8c,_0x4bf762,_0x28e88c,_0x4f186a)=>{const _0x219385=_0x4b385e;for(var _0x496e28=_0x4f186a>0x1?void 0x0:_0x4f186a?Ue(_0x4bf762,_0x28e88c):_0x4bf762,_0x261c52=_0x1c5d8c[_0x219385(0xa0)]-0x1,_0x37a327;_0x261c52>=0x0;_0x261c52--)(_0x37a327=_0x1c5d8c[_0x261c52])&&(_0x496e28=_0x37a327(_0x496e28)||_0x496e28);return _0x496e28;},je=(_0x4a2875,_0x1c3b46)=>(_0x1c4557,_0x4cc21a)=>_0x1c3b46(_0x1c4557,_0x4cc21a,_0x4a2875);let I=class extends _0x55b9aa{constructor(_0x298300){const _0x3be550=_0x4b385e;super(),this['_liveShareService']=_0x298300,this[_0x3be550(0xde)]();}[_0x4b385e(0xde)](){const _0xb8165f=_0x4b385e;[_0x1fce62['id'],_0x3ab047['id'],_0x441168['id']][_0xb8165f(0x8f)](_0xc8eb5b=>{const _0x516cc2=_0xb8165f;this['disposeWithMe'](this[_0x516cc2(0xea)][_0x516cc2(0xfc)](_0xc8eb5b));});}};I=Ve([je(0x0,_0x560870(L))],I);var Me=Object[_0x4b385e(0xef)],ke=Object[_0x4b385e(0x7a)],Ge=(_0x2b47be,_0x57d4ac,_0xa2a60e)=>_0x57d4ac in _0x2b47be?Me(_0x2b47be,_0x57d4ac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa2a60e}):_0x2b47be[_0x57d4ac]=_0xa2a60e,We=(_0x5d5e61,_0x42573a,_0x5dce0c,_0x232e34)=>{const _0x62af58=_0x4b385e;for(var _0x38c172=_0x232e34>0x1?void 0x0:_0x232e34?ke(_0x42573a,_0x5dce0c):_0x42573a,_0x25381f=_0x5d5e61[_0x62af58(0xa0)]-0x1,_0x19b427;_0x25381f>=0x0;_0x25381f--)(_0x19b427=_0x5d5e61[_0x25381f])&&(_0x38c172=_0x19b427(_0x38c172)||_0x38c172);return _0x38c172;},F=(_0x5de875,_0x13171b)=>(_0x2b8e28,_0x1e158a)=>_0x13171b(_0x2b8e28,_0x1e158a,_0x5de875),B=(_0x22c666,_0x389fa4,_0x5ee340)=>Ge(_0x22c666,typeof _0x389fa4!=_0x4b385e(0xc9)?_0x389fa4+'':_0x389fa4,_0x5ee340);const Ye=_0x4b385e(0x112);let b=class extends _0x91b81e{constructor(_0x5a9ef2=T,_0x54d532,_0x55fd9d){const _0x757270=_0x4b385e;super(),this[_0x757270(0xaa)]=_0x5a9ef2,this[_0x757270(0xb3)]=_0x54d532,this[_0x757270(0x100)]=_0x55fd9d;const {..._0x316d5f}=_0x473004({},T,this[_0x757270(0xaa)]);this[_0x757270(0x100)][_0x757270(0x106)](ye,_0x316d5f);}[_0x4b385e(0xdc)](){const _0x569425=_0x4b385e;_0x489867(this[_0x569425(0xb3)],_0x55fb95([[L],[S],[I],[m]],this['_config'][_0x569425(0xa7)])),_0x20f240(this[_0x569425(0xb3)],[[I]]);}[_0x4b385e(0xdd)](){_0x20f240(this['_injector'],[[m]]);}};B(b,_0x4b385e(0x8b),_0x2d5db4['UNIVER_UNKNOWN']),B(b,_0x4b385e(0xa4),Ye),b=We([_0x2ae8e8(_0xff5435),F(0x1,_0x560870(_0x31eff1)),F(0x2,_0x290f96)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
function _0x1d8f(_0xb058dc,_0x3c0d8f){const _0x17fa9f=_0x17fa();return _0x1d8f=function(_0x1d8f29,_0x46e013){_0x1d8f29=_0x1d8f29-0x1bd;let _0x238f7b=_0x17fa9f[_0x1d8f29];return _0x238f7b;},_0x1d8f(_0xb058dc,_0x3c0d8f);}const _0xa0c0b6=_0x1d8f;(function(_0x291d23,_0x35c7f2){const _0x268d65=_0x1d8f,_0x52691d=_0x291d23();while(!![]){try{const _0x5b3fad=parseInt(_0x268d65(0x1f1))/0x1+parseInt(_0x268d65(0x1e6))/0x2*(parseInt(_0x268d65(0x1e9))/0x3)+parseInt(_0x268d65(0x1fe))/0x4*(parseInt(_0x268d65(0x1f2))/0x5)+-parseInt(_0x268d65(0x210))/0x6+-parseInt(_0x268d65(0x20c))/0x7+-parseInt(_0x268d65(0x20d))/0x8+-parseInt(_0x268d65(0x220))/0x9*(-parseInt(_0x268d65(0x226))/0xa);if(_0x5b3fad===_0x35c7f2)break;else _0x52691d['push'](_0x52691d['shift']());}catch(_0x3044ea){_0x52691d['push'](_0x52691d['shift']());}}}(_0x17fa,0xb5bdb));var J=Object[_0xa0c0b6(0x1bf)],K=(_0x417551,_0x1d7ab3,_0x28b094)=>_0x1d7ab3 in _0x417551?J(_0x417551,_0x1d7ab3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28b094}):_0x417551[_0x1d7ab3]=_0x28b094,u=(_0x2fdc4d,_0x4dfcad,_0x4fef98)=>K(_0x2fdc4d,typeof _0x4dfcad!=_0xa0c0b6(0x243)?_0x4dfcad+'':_0x4dfcad,_0x4fef98);import{Disposable as _0x47be1,toDisposable as _0x59aa4e,IUniverInstanceService as _0x50bef0,Inject as _0x46e58e,Injector as _0x34570d,IConfigService as _0x51d074,ICommandService as _0x2d4b2a,RxDisposable as _0x5b9ba2,UniverInstanceType as _0x1c5b82,DisposableCollection as _0x574b38,CommandType as _0x24cbe9,DependentOn as _0x3e663a,Plugin as _0x405a79,merge as _0x3b3b27,registerDependencies as _0x233739,mergeOverrideWithDependencies as _0x3f2ca7,touchDependencies as _0x65f852}from'@univerjs/core';import{useDependency as _0x3020fd,useObservable as _0x5a31ad,IUIPartsService as _0x1089dc,BuiltInUIPart as _0x3ee1f5,connectInjector as _0x376659}from'@univerjs/ui';import{jsx as _0x4b183d,jsxs as _0x3f8de9,Fragment as _0x39f39b}from'react/jsx-runtime';import{Dropdown as _0x209b75,clsx as _0x59ff9b,Button as _0x89b657}from'@univerjs/design';import{useRef as _0x470aac,createElement as _0x4e23df,forwardRef as _0x2895d2,useState as _0x458258,useEffect as _0x4df20f}from'react';function _0x17fa(){const _0x17f208=['params','onStarting','_reporters','_unitID','_sharedOperations','clear','forEach','tag','Start\x20following','getOwnPropertyDescriptor','_init','type','registerComponent','IDLE','getStatus','path','dispose$','_stopFollowing','parse','shouldShareOperation','registerSharedOperation','NEW_CHANGESETS','LiveShareIcon','substring','PRESENTING','_beIdle','children','LIVESHARE_OPERATION','complete','presenter','mask','includes','162910LiRmoY','executeCommand','Present\x20this\x20document','3NVCpAw','SAME_OPERATION_SHARE_INTERVAL','override','_handleOperation','then','getValue','evenodd','_status$','1360520oVwqWP','19115tUEyHn','_injector','getLiveShareCoordinator','_startLiveShareCoordinator','_commandDisposable','getMemberID','status$','colorChannel1','_liveShareService','startFollowing','replace','data','516FqOXsG','event$','string','defIds','url(#$1','presenting','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','getLiveShareCoordinatorSync','ONLINE','getUnitId','_startFollowing','HEADER_MENU','displayName','div','8715105TnapPe','9902136sPNQGp','FOLLOWING','delete','3046074ZbSNLL','_univerInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_commandService','_presenter','onRendered','tryStartPresenting','sessionStatus$','You\x27are\x20offline.','_handleOffline','getCurrentTypeOfUnit$','OPERATION','init','not-following','stopFollowing','from','81cEkYSP','default','Start','idle','following','add','1999700XmVGvv','_uiPartsService','You\x27re\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','toString','pipe','xlink:href','live-share-icon','_status','has','find','_collabSessionService','LIVESHARE_TERMINATE','entries','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','offline','fill','Stop\x20following','dispose','button','getInitialStates','_handleTerminate','_configService','You\x27re\x20not\x20following\x20the\x20presenter','pluginName','send','subscribe','_config','http://www.w3.org/2000/svg','symbol','createInstance','random','LIVESHARE_NEW_HOST','UNIVER_UNKNOWN','unsubscribe','_handleOnline','You\x27re\x20presenting\x20the\x20document','univerjs-icon\x20univerjs-icon-','unitId','_entities','stringify','0\x200\x2017\x2017','1em','_handleNewHost','Stop\x20presenting','get','mutations','NOT_FOLLOWING','_collabSession','map','onCommandExecuted','_fetchOperations','idSuffix','stopPresenting','next','assign','UNIVER_SHEET','asObservable','sheet','current','OFFLINE','registerInitialStateReporter','currentColor','LIVESHARE_REQUEST_HOST','_startPresenting','defineProperty','trim','live-share.config','getTypeOfUnitDisposed$','attrs','length','_mountLiveShare'];_0x17fa=function(){return _0x17f208;};return _0x17fa();}import{CollaborationEvent as _0xf330b6,parseProtocolChangeset as _0x282616}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x548dab,SessionStatus as _0x3972e8,UniverCollaborationClientPlugin as _0x176434}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x97a76,SetWorksheetActiveOperation as _0x15573d}from'@univerjs/sheets';import{BehaviorSubject as _0x52f53b,Subject as _0x272542}from'rxjs';import{takeUntil as _0x290aa2,throttleTime as _0x374a3c}from'rxjs/operators';import{SetZoomRatioOperation as _0x240ca6,SetScrollOperation as _0x35c30a}from'@univerjs/sheets-ui';function k({ref:_0x1f28ce,..._0x311b60}){const _0x46e321=_0xa0c0b6,{icon:_0x44c4c4,id:_0x51d30c,className:_0x3591d5,extend:_0x543391,..._0x5d680f}=_0x311b60,_0x30534b=(_0x46e321(0x24b)+_0x51d30c+'\x20'+(_0x3591d5||''))[_0x46e321(0x1c0)](),_0x1773cd=_0x470aac('_'+Oe());return G(_0x44c4c4,''+_0x51d30c,{'defIds':_0x44c4c4[_0x46e321(0x201)],'idSuffix':_0x1773cd[_0x46e321(0x261)]},{'ref':_0x1f28ce,'className':_0x30534b,..._0x5d680f},_0x543391);}function G(_0x333660,_0x3bdd40,_0x12577b,_0x44ddb1,_0x4e6e63){const _0x2e8a26=_0xa0c0b6;return _0x4e23df(_0x333660[_0x2e8a26(0x1cd)],{'key':_0x3bdd40,...be(_0x333660,_0x12577b,_0x4e6e63),..._0x44ddb1},(Ee(_0x333660,_0x12577b)[_0x2e8a26(0x1e0)]||[])['map']((_0x45a197,_0x1e9d91)=>G(_0x45a197,_0x3bdd40+'-'+_0x333660[_0x2e8a26(0x1cd)]+'-'+_0x1e9d91,_0x12577b,void 0x0,_0x4e6e63)));}function be(_0x465700,_0x268d9d,_0xdcc508){const _0x45ae33=_0xa0c0b6,_0x21aeb9={..._0x465700[_0x45ae33(0x1c3)]};_0xdcc508!=null&&_0xdcc508['colorChannel1']&&_0x21aeb9[_0x45ae33(0x236)]===_0x45ae33(0x1f9)&&(_0x21aeb9[_0x45ae33(0x236)]=_0xdcc508[_0x45ae33(0x1f9)]),_0x465700[_0x45ae33(0x1cd)]===_0x45ae33(0x1e4)&&_0x21aeb9['id']&&(_0x21aeb9['id']=_0x21aeb9['id']+_0x268d9d[_0x45ae33(0x25a)]),Object[_0x45ae33(0x233)](_0x21aeb9)[_0x45ae33(0x1cc)](([_0x305482,_0x274c4e])=>{const _0x533105=_0x45ae33;_0x305482==='mask'&&typeof _0x274c4e=='string'&&(_0x21aeb9[_0x305482]=_0x274c4e[_0x533105(0x1fc)](/url\(#(.*)\)/,_0x533105(0x202)+_0x268d9d[_0x533105(0x25a)]+')'));});const {defIds:_0x43c5c}=_0x268d9d;return!_0x43c5c||_0x43c5c['length']===0x0||(_0x465700['tag']==='use'&&_0x21aeb9['xlink:href']&&(_0x21aeb9['xlink:href']=_0x21aeb9[_0x45ae33(0x22c)]+_0x268d9d[_0x45ae33(0x25a)]),Object[_0x45ae33(0x233)](_0x21aeb9)[_0x45ae33(0x1cc)](([_0x18993f,_0x4af33d])=>{const _0xbd2c6=_0x45ae33;typeof _0x4af33d=='string'&&(_0x21aeb9[_0x18993f]=_0x4af33d[_0xbd2c6(0x1fc)](/url\(#(.*)\)/,_0xbd2c6(0x202)+_0x268d9d[_0xbd2c6(0x25a)]+')'));})),_0x21aeb9;}function Ee(_0x3cdbb2,_0x55fbb5){const _0x36fdd6=_0xa0c0b6;var _0x1f4304;const {defIds:_0x43d229}=_0x55fbb5;return!_0x43d229||_0x43d229[_0x36fdd6(0x1c4)]===0x0?_0x3cdbb2:_0x3cdbb2[_0x36fdd6(0x1cd)]==='defs'&&((_0x1f4304=_0x3cdbb2[_0x36fdd6(0x1e0)])!=null&&_0x1f4304[_0x36fdd6(0x1c4)])?{..._0x3cdbb2,'children':_0x3cdbb2[_0x36fdd6(0x1e0)][_0x36fdd6(0x257)](_0x3b6b59=>typeof _0x3b6b59['attrs']['id']==_0x36fdd6(0x200)&&_0x43d229&&_0x43d229[_0x36fdd6(0x1e5)](_0x3b6b59[_0x36fdd6(0x1c3)]['id'])?{..._0x3b6b59,'attrs':{..._0x3b6b59[_0x36fdd6(0x1c3)],'id':_0x3b6b59[_0x36fdd6(0x1c3)]['id']+_0x55fbb5[_0x36fdd6(0x25a)]}}:_0x3b6b59)}:_0x3cdbb2;}function Oe(){const _0x47f5e4=_0xa0c0b6;return Math[_0x47f5e4(0x245)]()[_0x47f5e4(0x22a)](0x24)[_0x47f5e4(0x1dd)](0x2,0x8);}k[_0xa0c0b6(0x20a)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0xa0c0b6(0x242),'fill':'none','viewBox':_0xa0c0b6(0x24f),'width':'1em','height':_0xa0c0b6(0x250)},'children':[{'tag':_0xa0c0b6(0x1d5),'attrs':{'fill':_0xa0c0b6(0x264),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0xa0c0b6(0x1d5),'attrs':{'fill':_0xa0c0b6(0x264),'d':_0xa0c0b6(0x234),'fillRule':'evenodd','clipRule':_0xa0c0b6(0x1ef)}}]},W=_0x2895d2(function(_0xb7f402,_0x51456f){const _0x22b72a=_0xa0c0b6;return _0x4e23df(k,Object[_0x22b72a(0x25d)]({},_0xb7f402,{'id':_0x22b72a(0x22d),'ref':_0x51456f,'icon':we}));});W[_0xa0c0b6(0x20a)]=_0xa0c0b6(0x1dc);class L extends _0x47be1{constructor(){const _0x1d8f56=_0xa0c0b6;super(...arguments),u(this,_0x1d8f56(0x1ca),new Set()),u(this,'_reporters',new Set());}[_0xa0c0b6(0x1da)](_0x9b44d7){const _0x278d24=_0xa0c0b6;return this[_0x278d24(0x1ca)][_0x278d24(0x225)](_0x9b44d7),_0x59aa4e(()=>this[_0x278d24(0x1ca)][_0x278d24(0x20f)](_0x9b44d7));}[_0xa0c0b6(0x263)](_0x1634f3){const _0x1dc117=_0xa0c0b6;return this[_0x1dc117(0x1c8)][_0x1dc117(0x225)](_0x1634f3),_0x59aa4e(()=>this['_reporters'][_0x1dc117(0x20f)](_0x1634f3));}[_0xa0c0b6(0x1d9)](_0x556e29){return this['_sharedOperations']['has'](_0x556e29);}[_0xa0c0b6(0x23a)](_0x4f025e){const _0x47e4f8=_0xa0c0b6;return Array[_0x47e4f8(0x21f)](this[_0x47e4f8(0x1c8)])[_0x47e4f8(0x257)](_0x481bd8=>_0x481bd8(_0x4f025e));}}var Ne=Object[_0xa0c0b6(0x1cf)],Y=(_0xaff5d5,_0x33db42,_0x309d60,_0x22133c)=>{const _0x52dc27=_0xa0c0b6;for(var _0x335f17=_0x22133c>0x1?void 0x0:_0x22133c?Ne(_0x33db42,_0x309d60):_0x33db42,_0x5d9a08=_0xaff5d5[_0x52dc27(0x1c4)]-0x1,_0x1c255b;_0x5d9a08>=0x0;_0x5d9a08--)(_0x1c255b=_0xaff5d5[_0x5d9a08])&&(_0x335f17=_0x1c255b(_0x335f17)||_0x335f17);return _0x335f17;},_=(_0x477077,_0x5dd4d9)=>(_0x2a79e7,_0x29a138)=>_0x5dd4d9(_0x2a79e7,_0x29a138,_0x477077);let S=class extends _0x5b9ba2{constructor(_0x5c50ac,_0x2b94cf,_0x3c3ad8){const _0x856814=_0xa0c0b6;super(),u(this,_0x856814(0x24d),new Map()),(this['_univerInstanceService']=_0x5c50ac,this[_0x856814(0x1f3)]=_0x2b94cf,this[_0x856814(0x231)]=_0x3c3ad8,this[_0x856814(0x1d0)]());}async[_0xa0c0b6(0x1f4)](_0x38d03d){const _0x429233=_0xa0c0b6;return this[_0x429233(0x24d)][_0x429233(0x22f)](_0x38d03d)||await this[_0x429233(0x1f5)](_0x38d03d),this[_0x429233(0x24d)][_0x429233(0x253)](_0x38d03d);}[_0xa0c0b6(0x205)](_0x56d221){const _0x16f85c=_0xa0c0b6;var _0x1d254f;return(_0x1d254f=this['_entities'][_0x16f85c(0x253)](_0x56d221))!=null?_0x1d254f:null;}[_0xa0c0b6(0x1d0)](){const _0x3bf8a8=_0xa0c0b6;this[_0x3bf8a8(0x211)]['getTypeOfUnitAdded$'](_0x1c5b82[_0x3bf8a8(0x25e)])[_0x3bf8a8(0x22b)](_0x290aa2(this[_0x3bf8a8(0x1d6)]))[_0x3bf8a8(0x240)](async _0x263afd=>{const _0x49a577=_0x3bf8a8,_0x5035e8=_0x263afd['getUnitId']();this[_0x49a577(0x24d)]['has'](_0x5035e8)||this[_0x49a577(0x1f5)](_0x5035e8);}),this[_0x3bf8a8(0x211)][_0x3bf8a8(0x1c2)](_0x1c5b82[_0x3bf8a8(0x25e)])[_0x3bf8a8(0x22b)](_0x290aa2(this[_0x3bf8a8(0x1d6)]))[_0x3bf8a8(0x240)](_0x5d8bc1=>{const _0x46367a=_0x3bf8a8,_0x3131bc=_0x5d8bc1['getUnitId'](),_0x2df236=this[_0x46367a(0x24d)][_0x46367a(0x253)](_0x3131bc);_0x2df236==null||_0x2df236['dispose']();});}async[_0xa0c0b6(0x1f5)](_0x343e91){const _0x4b6e6e=_0xa0c0b6,_0x5f5549=await this[_0x4b6e6e(0x231)]['requireSession'](_0x343e91),_0x2f4062=this['_injector'][_0x4b6e6e(0x244)](N,_0x343e91,_0x5f5549);return _0x2f4062[_0x4b6e6e(0x21c)](),this[_0x4b6e6e(0x24d)]['set'](_0x343e91,_0x2f4062),_0x2f4062;}};S=Y([_(0x0,_0x50bef0),_(0x1,_0x46e58e(_0x34570d)),_(0x2,_0x46e58e(_0x548dab))],S);var c=(_0x1f0707=>(_0x1f0707[_0xa0c0b6(0x262)]='offline',_0x1f0707[_0xa0c0b6(0x1d3)]=_0xa0c0b6(0x223),_0x1f0707['FOLLOWING']=_0xa0c0b6(0x224),_0x1f0707[_0xa0c0b6(0x255)]=_0xa0c0b6(0x21d),_0x1f0707['PRESENTING']=_0xa0c0b6(0x203),_0x1f0707))(c||{});const Ce=_0xa0c0b6(0x1ea),De=0xc8;let N=class extends _0x5b9ba2{constructor(_0x315fe2,_0x44b645,_0x1bb5f0,_0x46fbe8,_0x22027c){const _0x2180a4=_0xa0c0b6;super(),u(this,_0x2180a4(0x1f0),new _0x52f53b(_0x2180a4(0x223))),u(this,_0x2180a4(0x1f8),this[_0x2180a4(0x1f0)][_0x2180a4(0x25f)]()),u(this,'_init',!0x1),u(this,_0x2180a4(0x1f6),null),u(this,'_presenter',null),(this[_0x2180a4(0x1c9)]=_0x315fe2,this[_0x2180a4(0x256)]=_0x44b645,this[_0x2180a4(0x23c)]=_0x1bb5f0,this[_0x2180a4(0x1fa)]=_0x46fbe8,this[_0x2180a4(0x213)]=_0x22027c);}get[_0xa0c0b6(0x22e)](){const _0x33a331=_0xa0c0b6;return this['_status$'][_0x33a331(0x1ee)]();}['dispose'](){const _0x47b04c=_0xa0c0b6;var _0x57dccb;(_0x57dccb=this['_commandDisposable'])==null||_0x57dccb[_0x47b04c(0x238)](),this[_0x47b04c(0x1f0)][_0x47b04c(0x25c)]('idle'),this[_0x47b04c(0x1f0)][_0x47b04c(0x1e2)]();}[_0xa0c0b6(0x1d4)](){const _0x16245b=_0xa0c0b6;return this[_0x16245b(0x22e)];}[_0xa0c0b6(0x21c)](){const _0x106ff5=_0xa0c0b6;this['_init']||(this[_0x106ff5(0x1d0)]=!0x0,this[_0x106ff5(0x256)][_0x106ff5(0x217)]['pipe'](_0x290aa2(this[_0x106ff5(0x1d6)]))['subscribe'](_0xc6aa38=>{const _0xe31007=_0x106ff5;switch(_0xc6aa38){case _0x3972e8[_0xe31007(0x262)]:this['_handleOffline']();break;case _0x3972e8[_0xe31007(0x206)]:this[_0xe31007(0x249)]();break;}}),this[_0x106ff5(0x256)][_0x106ff5(0x1ff)][_0x106ff5(0x22b)](_0x290aa2(this[_0x106ff5(0x1d6)]))['subscribe'](_0x21459f=>{const _0x5c7125=_0x106ff5,{eventID:_0x26bb47}=_0x21459f;switch(_0x26bb47){case _0xf330b6[_0x5c7125(0x246)]:this['_handleNewHost'](_0x21459f);break;case _0xf330b6[_0x5c7125(0x1e1)]:this['_handleOperation'](_0x21459f);break;case _0xf330b6[_0x5c7125(0x232)]:this[_0x5c7125(0x23b)]();break;case _0xf330b6[_0x5c7125(0x1db)]:this['_handleNewChangeSets'](_0x21459f);break;}}));}[_0xa0c0b6(0x216)](){const _0xa24803=_0xa0c0b6;this[_0xa24803(0x256)]['send']({'eventID':_0xf330b6[_0xa24803(0x1bd)],'data':{'unitID':this['_unitID'],'userID':this[_0xa24803(0x256)][_0xa24803(0x1f7)]()}},this[_0xa24803(0x1c9)]);}[_0xa0c0b6(0x25b)](){const _0xc85687=_0xa0c0b6;this[_0xc85687(0x22e)]===_0xc85687(0x203)&&(this[_0xc85687(0x1f0)][_0xc85687(0x25c)](_0xc85687(0x223)),this[_0xc85687(0x256)]['send']({'eventID':_0xf330b6[_0xc85687(0x232)],'data':{'unitID':this[_0xc85687(0x1c9)]}},this[_0xc85687(0x1c9)]));}[_0xa0c0b6(0x1fb)](){const _0x399c12=_0xa0c0b6;this[_0x399c12(0x22e)]===_0x399c12(0x21d)&&(this['_status$'][_0x399c12(0x25c)](_0x399c12(0x224)),this[_0x399c12(0x208)]());}[_0xa0c0b6(0x21e)](){const _0xf1d7cd=_0xa0c0b6;this[_0xf1d7cd(0x22e)]===_0xf1d7cd(0x224)&&this[_0xf1d7cd(0x1d7)]();}[_0xa0c0b6(0x251)](_0x4e2031){const _0x59e27c=_0xa0c0b6,{presenter:_0x3da6a9}=_0x4e2031[_0x59e27c(0x1fd)],_0x225acb=this[_0x59e27c(0x256)]['getMemberID']();this[_0x59e27c(0x214)]=_0x3da6a9,_0x3da6a9===_0x225acb?(this[_0x59e27c(0x1d7)](),this[_0x59e27c(0x1be)]()):this[_0x59e27c(0x22e)]!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0xa0c0b6(0x259)](){const _0x5974ff=_0xa0c0b6,_0x5b38c4={'eventID':_0xf330b6[_0x5974ff(0x229)]};this[_0x5974ff(0x256)][_0x5974ff(0x23f)](_0x5b38c4,this[_0x5974ff(0x1c9)]);}[_0xa0c0b6(0x23b)](){const _0x59a53e=_0xa0c0b6;this[_0x59a53e(0x214)]=null,this[_0x59a53e(0x22e)]!==_0x59a53e(0x203)&&this[_0x59a53e(0x1df)]();}['_handleNewChangeSets'](_0x558607){const _0x14f936=_0xa0c0b6;if(this['_status']===_0x14f936(0x224)&&this[_0x14f936(0x214)]===_0x558607[_0x14f936(0x1fd)]['memberID']){const _0x399e05=_0x282616(_0x558607[_0x14f936(0x1fd)])[_0x14f936(0x254)]['reverse']()[_0x14f936(0x230)](_0x15ec3f=>_0x15ec3f['id']===_0x97a76['id']);if(_0x399e05){const _0xa6d10b=_0x399e05[_0x14f936(0x1c6)][_0x14f936(0x24c)],_0x22da9d=_0x399e05[_0x14f936(0x1c6)][_0x14f936(0x260)]['id'];setTimeout(()=>{const _0x1228d5=_0x14f936;this['_commandService'][_0x1228d5(0x1e7)](_0x15573d['id'],{'unitId':_0xa6d10b,'subUnitId':_0x22da9d},{'fromCollab':!0x0});});}}}[_0xa0c0b6(0x1be)](){const _0x519772=_0xa0c0b6;this[_0x519772(0x1f0)][_0x519772(0x25c)](_0x519772(0x203));const _0x769864=new Map(),_0x26dd89=this[_0x519772(0x1f6)]=new _0x574b38();_0x26dd89['add'](_0x59aa4e(()=>{const _0x15d407=_0x519772;_0x769864[_0x15d407(0x1cc)](_0x1ffe6a=>_0x1ffe6a['complete']()),_0x769864[_0x15d407(0x1cb)]();})),_0x26dd89[_0x519772(0x225)](this[_0x519772(0x213)][_0x519772(0x258)](_0x4deff7=>{const _0x3e66cb=_0x519772;var _0x96fe22;if(_0x4deff7[_0x3e66cb(0x1d1)]!==_0x24cbe9[_0x3e66cb(0x21b)]||!this[_0x3e66cb(0x1fa)]['shouldShareOperation'](_0x4deff7['id']))return;const {id:_0x40b512}=_0x4deff7;let _0x42dfed;_0x769864[_0x3e66cb(0x22f)](_0x40b512)?_0x42dfed=_0x769864[_0x3e66cb(0x253)](_0x40b512):(_0x42dfed=new _0x272542(),_0x769864['set'](_0x40b512,_0x42dfed),_0x42dfed[_0x3e66cb(0x22b)](_0x374a3c((_0x96fe22=this[_0x3e66cb(0x23c)]['getConfig'](Ce))!=null?_0x96fe22:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3b4dff=>{const _0x4affe8=_0x3e66cb;this[_0x4affe8(0x256)]['send']({'eventID':_0xf330b6[_0x4affe8(0x1e1)],'data':{'unitID':this[_0x4affe8(0x1c9)],'operations':{[_0x3b4dff['id']]:{'id':_0x3b4dff['id'],'params':JSON['stringify'](_0x3b4dff['params'])}}}},this['_unitID']);})),_0x42dfed[_0x3e66cb(0x25c)](_0x4deff7);})),this['_liveShareService']['getInitialStates'](this[_0x519772(0x1c9)])[_0x519772(0x1cc)](_0x4b18f4=>this['_collabSession'][_0x519772(0x23f)]({'eventID':_0xf330b6[_0x519772(0x1e1)],'data':{'unitID':this[_0x519772(0x1c9)],'operations':{[_0x4b18f4['id']]:{'id':_0x4b18f4['id'],'params':JSON[_0x519772(0x24e)](_0x4b18f4[_0x519772(0x1c6)])}}}},this[_0x519772(0x1c9)]));}['_stopPresenting'](){const _0x3437e6=_0xa0c0b6;var _0x3c25a1;this[_0x3437e6(0x1f0)]['next'](_0x3437e6(0x223)),(_0x3c25a1=this['_commandDisposable'])==null||_0x3c25a1[_0x3437e6(0x238)](),this['_commandDisposable']=null;}[_0xa0c0b6(0x208)](){const _0x2d037a=_0xa0c0b6;var _0x3e1246;(_0x3e1246=this[_0x2d037a(0x1f6)])==null||_0x3e1246['dispose'](),this['_status$'][_0x2d037a(0x25c)]('following');}[_0xa0c0b6(0x1df)](){const _0x2611bd=_0xa0c0b6;var _0x24b7e8;this[_0x2611bd(0x1f0)][_0x2611bd(0x25c)](_0x2611bd(0x223)),(_0x24b7e8=this['_commandDisposable'])==null||_0x24b7e8[_0x2611bd(0x238)](),this[_0x2611bd(0x1f6)]=null;}[_0xa0c0b6(0x1d7)](){const _0x406226=_0xa0c0b6;var _0x4fee8c;this[_0x406226(0x1f0)][_0x406226(0x25c)](_0x406226(0x21d)),(_0x4fee8c=this[_0x406226(0x1f6)])==null||_0x4fee8c[_0x406226(0x238)]();}[_0xa0c0b6(0x1ec)](_0x366569){const _0x5dd1a5=_0xa0c0b6;if([_0x5dd1a5(0x203),_0x5dd1a5(0x21d),_0x5dd1a5(0x235)]['includes'](this['_status'])||!_0x366569[_0x5dd1a5(0x1fd)][_0x5dd1a5(0x1e3)]||_0x366569[_0x5dd1a5(0x1fd)][_0x5dd1a5(0x1e3)]===this[_0x5dd1a5(0x256)][_0x5dd1a5(0x1f7)]())return;this[_0x5dd1a5(0x22e)]==='idle'&&this[_0x5dd1a5(0x208)]();const _0x48cc91=_0x366569[_0x5dd1a5(0x1fd)]['operations'];Object['values'](_0x48cc91)[_0x5dd1a5(0x1cc)](_0x33a239=>{const _0x4b4bce=_0x5dd1a5;this[_0x4b4bce(0x213)][_0x4b4bce(0x1e7)](_0x33a239['id'],_0x33a239['params']?JSON[_0x4b4bce(0x1d8)](_0x33a239['params']):null,{'fromCollab':!0x0});});}[_0xa0c0b6(0x219)](){const _0x1a1073=_0xa0c0b6;var _0x10bd21;this[_0x1a1073(0x1f0)]['next'](_0x1a1073(0x235)),(_0x10bd21=this['_commandDisposable'])==null||_0x10bd21[_0x1a1073(0x238)]();}[_0xa0c0b6(0x249)](){const _0x545106=_0xa0c0b6;this[_0x545106(0x1f0)]['next']('idle'),this[_0x545106(0x259)]();}};N=Y([_(0x2,_0x51d074),_(0x3,_0x46e58e(L)),_(0x4,_0x2d4b2a)],N);function Le(){const _0x1de32d=_0xa0c0b6,_0xc102b1=_0x3020fd(S),_0x5e4b35=_0x3020fd(_0x50bef0),_0x13977e=_0x5a31ad(()=>_0x5e4b35[_0x1de32d(0x21a)](_0x1c5b82[_0x1de32d(0x25e)]),void 0x0,!0x1,[]),[_0x246344,_0x2dee7c]=_0x458258(null),[_0xda82da,_0x47522b]=_0x458258(c[_0x1de32d(0x1d3)]),_0x1703d2=_0x470aac(null);return _0x4df20f(()=>(_0x13977e&&_0xc102b1[_0x1de32d(0x1f4)](_0x13977e[_0x1de32d(0x207)]())[_0x1de32d(0x1ed)](_0xf3bb57=>{const _0x44c4a4=_0x1de32d;_0x2dee7c(_0xf3bb57),_0x1703d2[_0x44c4a4(0x261)]=_0xf3bb57[_0x44c4a4(0x1f8)][_0x44c4a4(0x240)](_0x2f2db7=>{_0x47522b(_0x2f2db7);});}),()=>{const _0x4568d0=_0x1de32d;var _0x54ec1f;(_0x54ec1f=_0x1703d2[_0x4568d0(0x261)])==null||_0x54ec1f[_0x4568d0(0x248)](),_0x1703d2[_0x4568d0(0x261)]=null;}),[_0x13977e,_0xc102b1]),_0x246344?_0x4b183d(_0x209b75,{'align':'end','disabled':_0xda82da===c[_0x1de32d(0x262)],'className':_0x1de32d(0x204),'overlay':_0x4b183d(Re,{'status':_0xda82da,'coordinator':_0x246344}),'children':_0x4b183d(_0x1de32d(0x239),{'className':_0x59ff9b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xda82da===c[_0x1de32d(0x262)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xda82da!==c[_0x1de32d(0x262)]}),'type':_0x1de32d(0x239),'children':_0x4b183d(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2a7faa){const _0x31c817=_0xa0c0b6,{status:_0x35470a,coordinator:_0x4f9d9e}=_0x2a7faa;switch(_0x35470a){case c[_0x31c817(0x1d3)]:return _0x4b183d($e,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x20e)]:return _0x4b183d(xe,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x255)]:return _0x4b183d(Pe,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x262)]:return _0x4b183d(Te,{});case c[_0x31c817(0x1de)]:return _0x4b183d(Ae,{'coordinator':_0x4f9d9e});default:return null;}}function $e(_0x31f826){const _0x2328e8=_0xa0c0b6,{coordinator:_0xd12508}=_0x31f826;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0x2328e8(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2328e8(0x1e8)}),_0x4b183d(_0x89b657,{'onClick':()=>_0xd12508['tryStartPresenting'](),'children':_0x2328e8(0x222)})]});}function xe(_0x319f0b){const _0x41082c=_0xa0c0b6,{coordinator:_0x106875}=_0x319f0b;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d('div',{'className':_0x41082c(0x212),'children':_0x41082c(0x228)}),_0x4b183d(_0x89b657,{'onClick':()=>_0x106875[_0x41082c(0x21e)](),'children':_0x41082c(0x237)})]});}function Pe(_0x8e6b43){const _0xbcb14e=_0xa0c0b6,{coordinator:_0x5a2ee7}=_0x8e6b43;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0xbcb14e(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xbcb14e(0x23d)}),_0x4b183d(_0x89b657,{'variant':'text','onClick':()=>_0x5a2ee7[_0xbcb14e(0x1fb)](),'children':_0xbcb14e(0x1ce)})]});}function Ae(_0x5e90c2){const _0x2b07f0=_0xa0c0b6,{coordinator:_0x35c664}=_0x5e90c2;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0x2b07f0(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2b07f0(0x24a)}),_0x4b183d(_0x89b657,{'variant':_0x2b07f0(0x221),'onClick':()=>_0x35c664['stopPresenting'](),'children':_0x2b07f0(0x252)})]});}function Te(){const _0x5330a3=_0xa0c0b6;return _0x4b183d(_0x39f39b,{'children':_0x5330a3(0x218)});}var Fe=Object[_0xa0c0b6(0x1cf)],He=(_0x2cfb82,_0x2ef574,_0x51ecfa,_0x26e78b)=>{for(var _0x3463e1=_0x26e78b>0x1?void 0x0:_0x26e78b?Fe(_0x2ef574,_0x51ecfa):_0x2ef574,_0x4eb2eb=_0x2cfb82['length']-0x1,_0x2c3652;_0x4eb2eb>=0x0;_0x4eb2eb--)(_0x2c3652=_0x2cfb82[_0x4eb2eb])&&(_0x3463e1=_0x2c3652(_0x3463e1)||_0x3463e1);return _0x3463e1;},A=(_0x1a9823,_0x47d7d5)=>(_0x31539e,_0x58aea0)=>_0x47d7d5(_0x31539e,_0x58aea0,_0x1a9823);let m=class extends _0x47be1{constructor(_0x401f41,_0x459896){const _0x58371a=_0xa0c0b6;super(),this['_injector']=_0x401f41,this[_0x58371a(0x227)]=_0x459896,this[_0x58371a(0x1c5)]();}[_0xa0c0b6(0x1c5)](){const _0x56c65c=_0xa0c0b6;this['disposeWithMe'](this[_0x56c65c(0x227)][_0x56c65c(0x1d2)](_0x3ee1f5[_0x56c65c(0x209)],()=>_0x376659(Le,this[_0x56c65c(0x1f3)])));}};m=He([A(0x0,_0x46e58e(_0x34570d)),A(0x1,_0x1089dc)],m);const ye=_0xa0c0b6(0x1c1),T={};var Ue=Object[_0xa0c0b6(0x1cf)],Ve=(_0x584ff5,_0x49514c,_0x386ddd,_0x2bd633)=>{const _0xd91ca2=_0xa0c0b6;for(var _0x1309c4=_0x2bd633>0x1?void 0x0:_0x2bd633?Ue(_0x49514c,_0x386ddd):_0x49514c,_0x55efbb=_0x584ff5[_0xd91ca2(0x1c4)]-0x1,_0x378b46;_0x55efbb>=0x0;_0x55efbb--)(_0x378b46=_0x584ff5[_0x55efbb])&&(_0x1309c4=_0x378b46(_0x1309c4)||_0x1309c4);return _0x1309c4;},je=(_0x248691,_0x375808)=>(_0x1a8ed6,_0x1d5038)=>_0x375808(_0x1a8ed6,_0x1d5038,_0x248691);let I=class extends _0x47be1{constructor(_0x4ca817){const _0x9f996=_0xa0c0b6;super(),this[_0x9f996(0x1fa)]=_0x4ca817,this[_0x9f996(0x1d0)]();}[_0xa0c0b6(0x1d0)](){const _0x44a536=_0xa0c0b6;[_0x240ca6['id'],_0x35c30a['id'],_0x15573d['id']][_0x44a536(0x1cc)](_0x49e56d=>{const _0x55d7a5=_0x44a536;this['disposeWithMe'](this[_0x55d7a5(0x1fa)][_0x55d7a5(0x1da)](_0x49e56d));});}};I=Ve([je(0x0,_0x46e58e(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x85523a,_0x34dc93,_0x435a77)=>_0x34dc93 in _0x85523a?Me(_0x85523a,_0x34dc93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x435a77}):_0x85523a[_0x34dc93]=_0x435a77,We=(_0x2d5a03,_0x51b7a8,_0x2e6e94,_0x1c79f7)=>{for(var _0x2b1b7f=_0x1c79f7>0x1?void 0x0:_0x1c79f7?ke(_0x51b7a8,_0x2e6e94):_0x51b7a8,_0x2603ba=_0x2d5a03['length']-0x1,_0x30da1d;_0x2603ba>=0x0;_0x2603ba--)(_0x30da1d=_0x2d5a03[_0x2603ba])&&(_0x2b1b7f=_0x30da1d(_0x2b1b7f)||_0x2b1b7f);return _0x2b1b7f;},F=(_0x354821,_0x39c35f)=>(_0x13acfc,_0x51d30e)=>_0x39c35f(_0x13acfc,_0x51d30e,_0x354821),B=(_0x5d3577,_0x624882,_0xcc4901)=>Ge(_0x5d3577,typeof _0x624882!=_0xa0c0b6(0x243)?_0x624882+'':_0x624882,_0xcc4901);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x405a79{constructor(_0x531770=T,_0xa1d0ae,_0x23463e){const _0x3474c4=_0xa0c0b6;super(),this[_0x3474c4(0x241)]=_0x531770,this[_0x3474c4(0x1f3)]=_0xa1d0ae,this['_configService']=_0x23463e;const {..._0x5e9ccf}=_0x3b3b27({},T,this[_0x3474c4(0x241)]);this[_0x3474c4(0x23c)]['setConfig'](ye,_0x5e9ccf);}[_0xa0c0b6(0x1c7)](){const _0x2cbc2e=_0xa0c0b6;_0x233739(this['_injector'],_0x3f2ca7([[L],[S],[I],[m]],this[_0x2cbc2e(0x241)][_0x2cbc2e(0x1eb)])),_0x65f852(this[_0x2cbc2e(0x1f3)],[[I]]);}[_0xa0c0b6(0x215)](){const _0x1793e4=_0xa0c0b6;_0x65f852(this[_0x1793e4(0x1f3)],[[m]]);}};B(b,_0xa0c0b6(0x1d1),_0x1c5b82[_0xa0c0b6(0x247)]),B(b,_0xa0c0b6(0x23e),Ye),b=We([_0x3e663a(_0x176434),F(0x1,_0x46e58e(_0x34570d)),F(0x2,_0x51d074)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x474bf6,_0x5afab6){const _0x54a5fc=_0x33bd,_0x31c4af=_0x474bf6();while(!![]){try{const _0x4456d4=parseInt(_0x54a5fc(0xda))/0x1+-parseInt(_0x54a5fc(0xe5))/0x2*(-parseInt(_0x54a5fc(0xdf))/0x3)+-parseInt(_0x54a5fc(0xc1))/0x4*(-parseInt(_0x54a5fc(0xc6))/0x5)+parseInt(_0x54a5fc(0xcc))/0x6*(parseInt(_0x54a5fc(0xcd))/0x7)+parseInt(_0x54a5fc(0xed))/0x8+parseInt(_0x54a5fc(0xcf))/0x9*(-parseInt(_0x54a5fc(0xd2))/0xa)+-parseInt(_0x54a5fc(0xd3))/0xb*(parseInt(_0x54a5fc(0xe0))/0xc);if(_0x4456d4===_0x5afab6)break;else _0x31c4af['push'](_0x31c4af['shift']());}catch(_0x3533c3){_0x31c4af['push'](_0x31c4af['shift']());}}}(_0x1445,0xa8db9),function(_0x580726,_0x145b00){const _0x43c51c=_0x33bd;typeof exports==_0x43c51c(0xc7)&&typeof module<'u'?_0x145b00(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==_0x43c51c(0xd4)&&define['amd']?define([_0x43c51c(0xe3),_0x43c51c(0xbf),_0x43c51c(0xd7),'@univerjs/sheets-ui',_0x43c51c(0xc3),_0x43c51c(0xf5)],_0x145b00):(_0x580726=typeof globalThis<'u'?globalThis:_0x580726||self,_0x145b00(_0x580726[_0x43c51c(0xf4)],_0x580726[_0x43c51c(0xd9)],_0x580726[_0x43c51c(0xd1)],_0x580726[_0x43c51c(0xca)],_0x580726['UniverSheetsFacade'],_0x580726[_0x43c51c(0xc8)]));}(this,function(_0x25128e,_0x32c983,_0x19cc1f,_0xf45864,_0x1506f2,_0x52183e){'use strict';const _0x29fd79=_0x33bd;class _0x24f185 extends _0x1506f2[_0x29fd79(0xce)]{[_0x29fd79(0xcb)](_0x49e3e8,_0x1c506d,_0x3acea8,_0x3b1a62,_0x504334){const _0x482489=_0x29fd79,_0x2eedac=_0x49e3e8[_0x482489(0xee)](_0x25128e['LiveShareController']),_0x4cad76=_0x49e3e8['get'](_0x32c983['IRenderManagerService']),_0xc911d8=_0x1c506d[_0x482489(0xd6)](),_0x40ccb2=_0x1c506d[_0x482489(0xc4)](),_0x3b3b6b=_0x2eedac[_0x482489(0xc0)](_0xc911d8);(_0x3b3b6b==null?void 0x0:_0x3b3b6b[_0x482489(0xde)]())!==_0x25128e['LiveShareStatus'][_0x482489(0xdd)]||(_0x3acea8['getSheetId']()!==_0x40ccb2[_0x482489(0xe6)]()&&this[_0x482489(0xd5)][_0x482489(0xd8)](_0x19cc1f[_0x482489(0xc2)]['id'],{'unitId':_0xc911d8,'subUnitId':_0x3acea8[_0x482489(0xe6)]()}),!_0x4cad76[_0x482489(0xe2)](_0xc911d8))||_0x504334[_0x482489(0xf6)](_0xf45864[_0x482489(0xe1)]['id'],{'unitId':_0x1c506d[_0x482489(0xd6)](),'sheetId':_0x3acea8[_0x482489(0xe6)](),'sheetViewStartRow':_0x3b1a62[_0x482489(0xef)],'sheetViewStartColumn':_0x3b1a62[_0x482489(0xea)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x1506f2[_0x29fd79(0xce)][_0x29fd79(0xc9)](_0x24f185);class _0x1bcdc8 extends _0x52183e[_0x29fd79(0xe7)]{[_0x29fd79(0xf1)](){const _0x210ed9=_0x29fd79;var _0x122082,_0x3305db;const _0x49f6f4=this[_0x210ed9(0xdc)]['get'](_0x25128e[_0x210ed9(0xf0)]),_0x553d31=(_0x122082=this['getActiveWorkbook']())==null?void 0x0:_0x122082['getId']();if(!_0x553d31)throw new Error('No\x20active\x20workbook\x20found.');const _0x317494=_0x49f6f4['getLiveShareCoordinatorSync'](_0x553d31);return(_0x3305db=_0x317494==null?void 0x0:_0x317494[_0x210ed9(0xde)]())!=null?_0x3305db:_0x25128e[_0x210ed9(0xbe)][_0x210ed9(0xe9)];}[_0x29fd79(0xc5)](){const _0x163329=_0x29fd79;var _0x43c571;const _0xa546d6=this['_injector'][_0x163329(0xee)](_0x25128e[_0x163329(0xf0)]),_0x69266b=(_0x43c571=this[_0x163329(0xe4)]())==null?void 0x0:_0x43c571[_0x163329(0xdb)]();if(!_0x69266b)throw new Error('No\x20active\x20workbook\x20found.');const _0xe4e21e=_0xa546d6[_0x163329(0xc0)](_0x69266b);if(!_0xe4e21e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xe4e21e[_0x163329(0xc5)]();}[_0x29fd79(0xbd)](){const _0x214f97=_0x29fd79;var _0x394789;const _0xe62a10=this[_0x214f97(0xdc)][_0x214f97(0xee)](_0x25128e['LiveShareController']),_0x26f6ca=(_0x394789=this[_0x214f97(0xe4)]())==null?void 0x0:_0x394789['getId']();if(!_0x26f6ca)throw new Error(_0x214f97(0xeb));const _0x28dbeb=_0xe62a10[_0x214f97(0xc0)](_0x26f6ca);if(!_0x28dbeb)throw new Error(_0x214f97(0xec));_0x28dbeb['stopFollowing']();}[_0x29fd79(0xf3)](){const _0x1a7e6e=_0x29fd79;var _0x27ed92;const _0x592e01=this['_injector']['get'](_0x25128e[_0x1a7e6e(0xf0)]),_0x573801=(_0x27ed92=this['getActiveWorkbook']())==null?void 0x0:_0x27ed92['getId']();if(!_0x573801)throw new Error('No\x20active\x20workbook\x20found.');const _0x90d6e6=_0x592e01[_0x1a7e6e(0xc0)](_0x573801);if(!_0x90d6e6)throw new Error(_0x1a7e6e(0xec));_0x90d6e6[_0x1a7e6e(0xd0)]();}[_0x29fd79(0xe8)](){const _0x3e9842=_0x29fd79;var _0x4c8e71;const _0x3099b4=this[_0x3e9842(0xdc)][_0x3e9842(0xee)](_0x25128e[_0x3e9842(0xf0)]),_0x4d3f53=(_0x4c8e71=this['getActiveWorkbook']())==null?void 0x0:_0x4c8e71[_0x3e9842(0xdb)]();if(!_0x4d3f53)throw new Error(_0x3e9842(0xeb));const _0x506cc0=_0x3099b4[_0x3e9842(0xc0)](_0x4d3f53);if(!_0x506cc0)throw new Error(_0x3e9842(0xec));_0x506cc0[_0x3e9842(0xe8)]();}}_0x52183e[_0x29fd79(0xe7)][_0x29fd79(0xc9)](_0x1bcdc8);class _0x39353e extends _0x52183e[_0x29fd79(0xf2)]{get['LiveShareStatusEnum'](){const _0x236095=_0x29fd79;return _0x25128e[_0x236095(0xbe)];}}_0x52183e[_0x29fd79(0xf2)][_0x29fd79(0xc9)](_0x39353e);}));function _0x33bd(_0x5ed170,_0x4548c3){const _0x144539=_0x1445();return _0x33bd=function(_0x33bd5c,_0x3dcafa){_0x33bd5c=_0x33bd5c-0xbd;let _0x35a9b2=_0x144539[_0x33bd5c];return _0x35a9b2;},_0x33bd(_0x5ed170,_0x4548c3);}function _0x1445(){const _0x20af12=['FRange','36Ngmztz','tryStartPresenting','UniverSheets','1956890nuhmmF','2697189iDZPXy','function','_commandService','getUnitId','@univerjs/sheets','executeCommand','UniverEngineRender','125849iTzbtf','getId','_injector','PRESENTING','getStatus','9IVreGf','84AXWDEd','SetScrollOperation','getRenderById','@univerjs-pro/live-share','getActiveWorkbook','427802UJCtGG','getSheetId','FUniver','stopPresenting','IDLE','startColumn','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2120048ypadla','get','startRow','LiveShareController','getLiveShareStatus','FEnum','startPresenting','UniverProLiveShare','@univerjs/core/facade','syncExecuteCommand','stopFollowing','LiveShareStatus','@univerjs/engine-render','getLiveShareCoordinatorSync','1592GltNIw','SetWorksheetActiveOperation','@univerjs/sheets/facade','getActiveSheet','startFollowing','12585bYDxIQ','object','UniverCoreFacade','extend','UniverSheetsUi','_initialize','876EaMATo','55447huwkfr'];_0x1445=function(){return _0x20af12;};return _0x1445();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x256c(_0x12eeb0,_0x3ba3e0){const _0x5c1070=_0x5c10();return _0x256c=function(_0x256c60,_0x12c157){_0x256c60=_0x256c60-0x7d;let _0x1ad878=_0x5c1070[_0x256c60];return _0x1ad878;},_0x256c(_0x12eeb0,_0x3ba3e0);}(function(_0x16b202,_0x5baf64){const _0x5dce13=_0x256c,_0x19bd1a=_0x16b202();while(!![]){try{const _0x9859a8=parseInt(_0x5dce13(0x144))/0x1*(-parseInt(_0x5dce13(0xba))/0x2)+-parseInt(_0x5dce13(0x13a))/0x3+-parseInt(_0x5dce13(0xce))/0x4+parseInt(_0x5dce13(0xe7))/0x5*(parseInt(_0x5dce13(0xa7))/0x6)+-parseInt(_0x5dce13(0x11d))/0x7*(parseInt(_0x5dce13(0x165))/0x8)+-parseInt(_0x5dce13(0xfe))/0x9+parseInt(_0x5dce13(0x124))/0xa;if(_0x9859a8===_0x5baf64)break;else _0x19bd1a['push'](_0x19bd1a['shift']());}catch(_0x484352){_0x19bd1a['push'](_0x19bd1a['shift']());}}}(_0x5c10,0x56779),function(_0x3c4a8b,_0x2a921b){const _0x33eaf5=_0x256c;typeof exports==_0x33eaf5(0x156)&&typeof module<'u'?_0x2a921b(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==_0x33eaf5(0x157)&&define[_0x33eaf5(0x139)]?define([_0x33eaf5(0xa8),_0x33eaf5(0xcd),_0x33eaf5(0xef),_0x33eaf5(0x141),_0x33eaf5(0x105),'react',_0x33eaf5(0x9e),_0x33eaf5(0x100),_0x33eaf5(0xd8),_0x33eaf5(0xdb),_0x33eaf5(0xdd),_0x33eaf5(0x119)],_0x2a921b):(_0x3c4a8b=typeof globalThis<'u'?globalThis:_0x3c4a8b||self,_0x2a921b(_0x3c4a8b[_0x33eaf5(0x135)]={},_0x3c4a8b['UniverCore'],_0x3c4a8b[_0x33eaf5(0xbe)],_0x3c4a8b['React'],_0x3c4a8b[_0x33eaf5(0xfc)],_0x3c4a8b[_0x33eaf5(0xc4)],_0x3c4a8b[_0x33eaf5(0xeb)],_0x3c4a8b[_0x33eaf5(0xcc)],_0x3c4a8b[_0x33eaf5(0x15f)],_0x3c4a8b['rxjs'],_0x3c4a8b[_0x33eaf5(0xdb)][_0x33eaf5(0x121)],_0x3c4a8b['UniverSheetsUi']));}(this,function(_0x15484b,_0xad28bf,_0x302684,_0x259a70,_0x2daac7,_0x367771,_0x23fdcb,_0x184063,_0x4b9290,_0x21fe1c,_0x1ab1f9,_0x982dc2){'use strict';const _0xbe9bf4=_0x256c;var _0x16cbf9=Object['defineProperty'],_0x43673a=(_0x3ec44c,_0x10fdd3,_0x32c096)=>_0x10fdd3 in _0x3ec44c?_0x16cbf9(_0x3ec44c,_0x10fdd3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32c096}):_0x3ec44c[_0x10fdd3]=_0x32c096,_0x1f8630=(_0x9b9e46,_0x1c6f8e,_0x1cbaa9)=>_0x43673a(_0x9b9e46,typeof _0x1c6f8e!=_0xbe9bf4(0x13f)?_0x1c6f8e+'':_0x1c6f8e,_0x1cbaa9);function _0x4f0b5a({ref:_0x53884c,..._0x24abd1}){const _0x538e92=_0xbe9bf4,{icon:_0x584926,id:_0x2a57e8,className:_0x3a80c9,extend:_0x1b82b5,..._0x114304}=_0x24abd1,_0x531ec6=(_0x538e92(0xee)+_0x2a57e8+'\x20'+(_0x3a80c9||''))[_0x538e92(0x96)](),_0x788047=_0x367771['useRef']('_'+_0x524430());return _0x4d9b77(_0x584926,''+_0x2a57e8,{'defIds':_0x584926[_0x538e92(0xa9)],'idSuffix':_0x788047[_0x538e92(0xc0)]},{'ref':_0x53884c,'className':_0x531ec6,..._0x114304},_0x1b82b5);}function _0x4d9b77(_0x14885e,_0x58ebad,_0x58224c,_0x26afcc,_0x116973){const _0x142acd=_0xbe9bf4;return _0x367771[_0x142acd(0x116)](_0x14885e[_0x142acd(0x14e)],{'key':_0x58ebad,..._0xaa5cc2(_0x14885e,_0x58224c,_0x116973),..._0x26afcc},(_0x36c6d5(_0x14885e,_0x58224c)['children']||[])['map']((_0xfeb3e2,_0x184245)=>_0x4d9b77(_0xfeb3e2,_0x58ebad+'-'+_0x14885e[_0x142acd(0x14e)]+'-'+_0x184245,_0x58224c,void 0x0,_0x116973)));}function _0xaa5cc2(_0x487914,_0x3b22e1,_0x3cc35d){const _0x4c2658=_0xbe9bf4,_0x25b6e4={..._0x487914['attrs']};_0x3cc35d!=null&&_0x3cc35d[_0x4c2658(0x11b)]&&_0x25b6e4[_0x4c2658(0xff)]===_0x4c2658(0x11b)&&(_0x25b6e4[_0x4c2658(0xff)]=_0x3cc35d[_0x4c2658(0x11b)]),_0x487914[_0x4c2658(0x14e)]===_0x4c2658(0x114)&&_0x25b6e4['id']&&(_0x25b6e4['id']=_0x25b6e4['id']+_0x3b22e1[_0x4c2658(0x91)]),Object[_0x4c2658(0x102)](_0x25b6e4)[_0x4c2658(0xb8)](([_0x217396,_0x4f3056])=>{const _0xc2acdd=_0x4c2658;_0x217396===_0xc2acdd(0x114)&&typeof _0x4f3056==_0xc2acdd(0xa0)&&(_0x25b6e4[_0x217396]=_0x4f3056['replace'](/url\(#(.*)\)/,_0xc2acdd(0x137)+_0x3b22e1[_0xc2acdd(0x91)]+')'));});const {defIds:_0x222eb9}=_0x3b22e1;return!_0x222eb9||_0x222eb9[_0x4c2658(0x82)]===0x0||(_0x487914[_0x4c2658(0x14e)]===_0x4c2658(0xe1)&&_0x25b6e4[_0x4c2658(0x169)]&&(_0x25b6e4[_0x4c2658(0x169)]=_0x25b6e4[_0x4c2658(0x169)]+_0x3b22e1[_0x4c2658(0x91)]),Object['entries'](_0x25b6e4)[_0x4c2658(0xb8)](([_0x144cbc,_0x3cb072])=>{const _0x2755d0=_0x4c2658;typeof _0x3cb072==_0x2755d0(0xa0)&&(_0x25b6e4[_0x144cbc]=_0x3cb072[_0x2755d0(0xec)](/url\(#(.*)\)/,_0x2755d0(0x137)+_0x3b22e1['idSuffix']+')'));})),_0x25b6e4;}function _0x36c6d5(_0x5ba678,_0x127ca9){const _0x240dd7=_0xbe9bf4;var _0x4135c8;const {defIds:_0x39e7ce}=_0x127ca9;return!_0x39e7ce||_0x39e7ce['length']===0x0?_0x5ba678:_0x5ba678[_0x240dd7(0x14e)]===_0x240dd7(0xc6)&&((_0x4135c8=_0x5ba678[_0x240dd7(0xcb)])!=null&&_0x4135c8[_0x240dd7(0x82)])?{..._0x5ba678,'children':_0x5ba678[_0x240dd7(0xcb)][_0x240dd7(0x163)](_0x528a05=>typeof _0x528a05[_0x240dd7(0x13d)]['id']==_0x240dd7(0xa0)&&_0x39e7ce&&_0x39e7ce[_0x240dd7(0x9c)](_0x528a05[_0x240dd7(0x13d)]['id'])?{..._0x528a05,'attrs':{..._0x528a05[_0x240dd7(0x13d)],'id':_0x528a05[_0x240dd7(0x13d)]['id']+_0x127ca9[_0x240dd7(0x91)]}}:_0x528a05)}:_0x5ba678;}function _0x524430(){const _0x401a18=_0xbe9bf4;return Math[_0x401a18(0x110)]()[_0x401a18(0x152)](0x24)[_0x401a18(0x9b)](0x2,0x8);}_0x4f0b5a['displayName']=_0xbe9bf4(0x153);const _0x522bb4={'tag':_0xbe9bf4(0x149),'attrs':{'xmlns':_0xbe9bf4(0x8a),'fill':_0xbe9bf4(0x111),'viewBox':_0xbe9bf4(0x80),'width':_0xbe9bf4(0x118),'height':_0xbe9bf4(0x118)},'children':[{'tag':_0xbe9bf4(0x97),'attrs':{'fill':'currentColor','d':_0xbe9bf4(0x159)}},{'tag':_0xbe9bf4(0x97),'attrs':{'fill':_0xbe9bf4(0xf2),'d':_0xbe9bf4(0x12e),'fillRule':_0xbe9bf4(0x130),'clipRule':_0xbe9bf4(0x130)}}]},_0xd21d19=_0x367771[_0xbe9bf4(0x168)](function(_0x113cd4,_0x450b1b){const _0x1a6be0=_0xbe9bf4;return _0x367771[_0x1a6be0(0x116)](_0x4f0b5a,Object[_0x1a6be0(0xf9)]({},_0x113cd4,{'id':_0x1a6be0(0x14f),'ref':_0x450b1b,'icon':_0x522bb4}));});_0xd21d19[_0xbe9bf4(0x126)]='LiveShareIcon';class _0x4e249a extends _0xad28bf['Disposable']{constructor(){const _0x32fc55=_0xbe9bf4;super(...arguments),_0x1f8630(this,_0x32fc55(0xc1),new Set()),_0x1f8630(this,_0x32fc55(0x95),new Set());}[_0xbe9bf4(0xe6)](_0x3878cd){const _0x576967=_0xbe9bf4;return this[_0x576967(0xc1)][_0x576967(0x136)](_0x3878cd),_0xad28bf[_0x576967(0x101)](()=>this[_0x576967(0xc1)]['delete'](_0x3878cd));}[_0xbe9bf4(0x98)](_0x519d21){const _0x237357=_0xbe9bf4;return this[_0x237357(0x95)][_0x237357(0x136)](_0x519d21),_0xad28bf[_0x237357(0x101)](()=>this[_0x237357(0x95)]['delete'](_0x519d21));}[_0xbe9bf4(0xf7)](_0x4677ef){return this['_sharedOperations']['has'](_0x4677ef);}[_0xbe9bf4(0x15b)](_0x148410){const _0x1f784e=_0xbe9bf4;return Array[_0x1f784e(0x9a)](this[_0x1f784e(0x95)])[_0x1f784e(0x163)](_0x4e4eb3=>_0x4e4eb3(_0x148410));}}var _0x24b505=Object[_0xbe9bf4(0xc9)],_0x539090=(_0x73a184,_0x48aea5,_0x2794c8,_0x29a7b9)=>{const _0x51bfa2=_0xbe9bf4;for(var _0x5d966a=_0x29a7b9>0x1?void 0x0:_0x29a7b9?_0x24b505(_0x48aea5,_0x2794c8):_0x48aea5,_0x29b342=_0x73a184[_0x51bfa2(0x82)]-0x1,_0x4a6524;_0x29b342>=0x0;_0x29b342--)(_0x4a6524=_0x73a184[_0x29b342])&&(_0x5d966a=_0x4a6524(_0x5d966a)||_0x5d966a);return _0x5d966a;},_0x3f15d5=(_0x35b93e,_0x48757a)=>(_0x11d054,_0xf32395)=>_0x48757a(_0x11d054,_0xf32395,_0x35b93e);_0x15484b[_0xbe9bf4(0x120)]=class extends _0xad28bf[_0xbe9bf4(0x117)]{constructor(_0x38e0fb,_0x4445f0,_0x29539c){const _0x28302e=_0xbe9bf4;super(),_0x1f8630(this,_0x28302e(0x12b),new Map()),(this[_0x28302e(0x162)]=_0x38e0fb,this['_injector']=_0x4445f0,this[_0x28302e(0xf4)]=_0x29539c,this[_0x28302e(0x129)]());}async[_0xbe9bf4(0xa6)](_0x3c164b){const _0x5e4fe9=_0xbe9bf4;return this[_0x5e4fe9(0x12b)][_0x5e4fe9(0xf3)](_0x3c164b)||await this[_0x5e4fe9(0xf0)](_0x3c164b),this[_0x5e4fe9(0x12b)][_0x5e4fe9(0xfd)](_0x3c164b);}[_0xbe9bf4(0x14c)](_0xbc1771){var _0x266a15;return(_0x266a15=this['_entities']['get'](_0xbc1771))!=null?_0x266a15:null;}[_0xbe9bf4(0x129)](){const _0xd40b76=_0xbe9bf4;this['_univerInstanceService'][_0xd40b76(0xc7)](_0xad28bf[_0xd40b76(0xe2)]['UNIVER_SHEET'])['pipe'](_0x1ab1f9[_0xd40b76(0x167)](this[_0xd40b76(0xa3)]))[_0xd40b76(0x89)](async _0x205791=>{const _0x5002aa=_0xd40b76,_0x10fcdc=_0x205791[_0x5002aa(0x11a)]();this[_0x5002aa(0x12b)][_0x5002aa(0xf3)](_0x10fcdc)||this[_0x5002aa(0xf0)](_0x10fcdc);}),this[_0xd40b76(0x162)][_0xd40b76(0xb5)](_0xad28bf[_0xd40b76(0xe2)]['UNIVER_SHEET'])[_0xd40b76(0x115)](_0x1ab1f9[_0xd40b76(0x167)](this[_0xd40b76(0xa3)]))[_0xd40b76(0x89)](_0x122f3e=>{const _0x477fbb=_0xd40b76,_0x11510a=_0x122f3e[_0x477fbb(0x11a)](),_0x490f2e=this[_0x477fbb(0x12b)]['get'](_0x11510a);_0x490f2e==null||_0x490f2e[_0x477fbb(0x8d)]();});}async[_0xbe9bf4(0xf0)](_0x53921f){const _0x5a56f5=_0xbe9bf4,_0x5ca8bf=await this[_0x5a56f5(0xf4)][_0x5a56f5(0x112)](_0x53921f),_0x15c3e9=this['_injector'][_0x5a56f5(0x134)](_0x15484b[_0x5a56f5(0x107)],_0x53921f,_0x5ca8bf);return _0x15c3e9['init'](),this[_0x5a56f5(0x12b)][_0x5a56f5(0xe4)](_0x53921f,_0x15c3e9),_0x15c3e9;}},_0x15484b['LiveShareController']=_0x539090([_0x3f15d5(0x0,_0xad28bf[_0xbe9bf4(0x86)]),_0x3f15d5(0x1,_0xad28bf['Inject'](_0xad28bf['Injector'])),_0x3f15d5(0x2,_0xad28bf[_0xbe9bf4(0x88)](_0x184063['CollaborationSessionService']))],_0x15484b[_0xbe9bf4(0x120)]);var _0x2df1d9=(_0x3ed648=>(_0x3ed648[_0xbe9bf4(0xc2)]='offline',_0x3ed648[_0xbe9bf4(0x9f)]='idle',_0x3ed648[_0xbe9bf4(0xb3)]=_0xbe9bf4(0xae),_0x3ed648[_0xbe9bf4(0x13e)]=_0xbe9bf4(0xa4),_0x3ed648['PRESENTING']=_0xbe9bf4(0xd0),_0x3ed648))(_0x2df1d9||{});const _0x386fd9=_0xbe9bf4(0x127),_0x2f5eac=0xc8;_0x15484b[_0xbe9bf4(0x107)]=class extends _0xad28bf[_0xbe9bf4(0x117)]{constructor(_0x54391a,_0x1dc3ad,_0x3b3850,_0x19a9ad,_0x488c01){const _0x4ce90d=_0xbe9bf4;super(),_0x1f8630(this,_0x4ce90d(0xda),new _0x21fe1c['BehaviorSubject'](_0x4ce90d(0x164))),_0x1f8630(this,'status$',this[_0x4ce90d(0xda)][_0x4ce90d(0x81)]()),_0x1f8630(this,_0x4ce90d(0x129),!0x1),_0x1f8630(this,_0x4ce90d(0x166),null),_0x1f8630(this,_0x4ce90d(0x99),null),(this[_0x4ce90d(0xc3)]=_0x54391a,this[_0x4ce90d(0xe3)]=_0x1dc3ad,this[_0x4ce90d(0xe8)]=_0x3b3850,this[_0x4ce90d(0x10e)]=_0x19a9ad,this[_0x4ce90d(0x10b)]=_0x488c01);}get[_0xbe9bf4(0x123)](){const _0x2f56f3=_0xbe9bf4;return this['_status$'][_0x2f56f3(0xc5)]();}[_0xbe9bf4(0x8d)](){const _0xe5911d=_0xbe9bf4;var _0x7541c3;(_0x7541c3=this[_0xe5911d(0x166)])==null||_0x7541c3['dispose'](),this['_status$'][_0xe5911d(0x92)](_0xe5911d(0x164)),this[_0xe5911d(0xda)][_0xe5911d(0xa5)]();}[_0xbe9bf4(0x132)](){const _0x38156b=_0xbe9bf4;return this[_0x38156b(0x123)];}[_0xbe9bf4(0x113)](){const _0x1e3271=_0xbe9bf4;this[_0x1e3271(0x129)]||(this[_0x1e3271(0x129)]=!0x0,this[_0x1e3271(0xe3)][_0x1e3271(0x11c)][_0x1e3271(0x115)](_0x1ab1f9['takeUntil'](this['dispose$']))[_0x1e3271(0x89)](_0x461bea=>{const _0x5c436d=_0x1e3271;switch(_0x461bea){case _0x184063['SessionStatus'][_0x5c436d(0xc2)]:this[_0x5c436d(0x11f)]();break;case _0x184063[_0x5c436d(0x106)][_0x5c436d(0x15e)]:this[_0x5c436d(0x12f)]();break;}}),this[_0x1e3271(0xe3)][_0x1e3271(0xb1)][_0x1e3271(0x115)](_0x1ab1f9['takeUntil'](this[_0x1e3271(0xa3)]))[_0x1e3271(0x89)](_0x31d5ce=>{const _0x40be92=_0x1e3271,{eventID:_0x5bece9}=_0x31d5ce;switch(_0x5bece9){case _0x23fdcb[_0x40be92(0x15a)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x31d5ce);break;case _0x23fdcb['CollaborationEvent'][_0x40be92(0x143)]:this[_0x40be92(0xaa)](_0x31d5ce);break;case _0x23fdcb['CollaborationEvent'][_0x40be92(0x108)]:this[_0x40be92(0xdf)]();break;case _0x23fdcb[_0x40be92(0x15a)][_0x40be92(0x14d)]:this[_0x40be92(0x9d)](_0x31d5ce);break;}}));}['tryStartPresenting'](){const _0x423f43=_0xbe9bf4;this[_0x423f43(0xe3)][_0x423f43(0xf8)]({'eventID':_0x23fdcb['CollaborationEvent'][_0x423f43(0x158)],'data':{'unitID':this[_0x423f43(0xc3)],'userID':this[_0x423f43(0xe3)]['getMemberID']()}},this[_0x423f43(0xc3)]);}['stopPresenting'](){const _0x502f05=_0xbe9bf4;this[_0x502f05(0x123)]===_0x502f05(0xd0)&&(this[_0x502f05(0xda)]['next'](_0x502f05(0x164)),this[_0x502f05(0xe3)][_0x502f05(0xf8)]({'eventID':_0x23fdcb[_0x502f05(0x15a)][_0x502f05(0x108)],'data':{'unitID':this[_0x502f05(0xc3)]}},this[_0x502f05(0xc3)]));}['startFollowing'](){const _0x4e9723=_0xbe9bf4;this['_status']==='not-following'&&(this[_0x4e9723(0xda)]['next']('following'),this['_startFollowing']());}[_0xbe9bf4(0x10f)](){const _0x3e730b=_0xbe9bf4;this[_0x3e730b(0x123)]===_0x3e730b(0xae)&&this[_0x3e730b(0x7d)]();}[_0xbe9bf4(0x8e)](_0x13e9f3){const _0x565bc7=_0xbe9bf4,{presenter:_0x2e040f}=_0x13e9f3[_0x565bc7(0x147)],_0x59fb9d=this[_0x565bc7(0xe3)]['getMemberID']();this[_0x565bc7(0x99)]=_0x2e040f,_0x2e040f===_0x59fb9d?(this[_0x565bc7(0x7d)](),this[_0x565bc7(0xe9)]()):this[_0x565bc7(0x123)]!==_0x565bc7(0xa4)&&(this[_0x565bc7(0x83)](),this[_0x565bc7(0x148)]());}['_fetchOperations'](){const _0xad3b41=_0xbe9bf4,_0x521a32={'eventID':_0x23fdcb['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0xad3b41(0xe3)][_0xad3b41(0xf8)](_0x521a32,this[_0xad3b41(0xc3)]);}[_0xbe9bf4(0xdf)](){const _0x126b36=_0xbe9bf4;this[_0x126b36(0x99)]=null,this[_0x126b36(0x123)]!==_0x126b36(0xd0)&&this['_beIdle']();}[_0xbe9bf4(0x9d)](_0x2f6b63){const _0x3e366b=_0xbe9bf4;if(this[_0x3e366b(0x123)]===_0x3e366b(0xae)&&this['_presenter']===_0x2f6b63[_0x3e366b(0x147)][_0x3e366b(0x84)]){const _0x3572fc=_0x23fdcb[_0x3e366b(0x10c)](_0x2f6b63[_0x3e366b(0x147)])['mutations'][_0x3e366b(0xa2)]()[_0x3e366b(0xd6)](_0x4edce5=>_0x4edce5['id']===_0x4b9290[_0x3e366b(0xb0)]['id']);if(_0x3572fc){const _0x57d784=_0x3572fc[_0x3e366b(0xd3)][_0x3e366b(0xc8)],_0x361999=_0x3572fc[_0x3e366b(0xd3)][_0x3e366b(0x8f)]['id'];setTimeout(()=>{const _0x4d797c=_0x3e366b;this[_0x4d797c(0x10b)]['executeCommand'](_0x4b9290[_0x4d797c(0xab)]['id'],{'unitId':_0x57d784,'subUnitId':_0x361999},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x2b7f49=_0xbe9bf4;this[_0x2b7f49(0xda)][_0x2b7f49(0x92)](_0x2b7f49(0xd0));const _0x449997=new Map(),_0x23ba6e=this['_commandDisposable']=new _0xad28bf['DisposableCollection']();_0x23ba6e[_0x2b7f49(0x136)](_0xad28bf[_0x2b7f49(0x101)](()=>{const _0x585681=_0x2b7f49;_0x449997[_0x585681(0xb8)](_0x33406b=>_0x33406b[_0x585681(0xa5)]()),_0x449997[_0x585681(0x85)]();})),_0x23ba6e['add'](this['_commandService'][_0x2b7f49(0x161)](_0x4e9d52=>{const _0x23ac15=_0x2b7f49;var _0xaeea2e;if(_0x4e9d52[_0x23ac15(0x13b)]!==_0xad28bf[_0x23ac15(0x7f)][_0x23ac15(0xf1)]||!this[_0x23ac15(0x10e)][_0x23ac15(0xf7)](_0x4e9d52['id']))return;const {id:_0x2ef754}=_0x4e9d52;let _0xefe72d;_0x449997[_0x23ac15(0xf3)](_0x2ef754)?_0xefe72d=_0x449997[_0x23ac15(0xfd)](_0x2ef754):(_0xefe72d=new _0x21fe1c[(_0x23ac15(0x87))](),_0x449997['set'](_0x2ef754,_0xefe72d),_0xefe72d[_0x23ac15(0x115)](_0x1ab1f9['throttleTime']((_0xaeea2e=this[_0x23ac15(0xe8)][_0x23ac15(0xed)](_0x386fd9))!=null?_0xaeea2e:_0x2f5eac,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2b8941=>{const _0x389a54=_0x23ac15;this[_0x389a54(0xe3)]['send']({'eventID':_0x23fdcb[_0x389a54(0x15a)][_0x389a54(0x143)],'data':{'unitID':this['_unitID'],'operations':{[_0x2b8941['id']]:{'id':_0x2b8941['id'],'params':JSON[_0x389a54(0x13c)](_0x2b8941['params'])}}}},this[_0x389a54(0xc3)]);})),_0xefe72d[_0x23ac15(0x92)](_0x4e9d52);})),this['_liveShareService']['getInitialStates'](this[_0x2b7f49(0xc3)])[_0x2b7f49(0xb8)](_0x18f305=>this[_0x2b7f49(0xe3)][_0x2b7f49(0xf8)]({'eventID':_0x23fdcb[_0x2b7f49(0x15a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2b7f49(0xc3)],'operations':{[_0x18f305['id']]:{'id':_0x18f305['id'],'params':JSON[_0x2b7f49(0x13c)](_0x18f305[_0x2b7f49(0xd3)])}}}},this['_unitID']));}[_0xbe9bf4(0x83)](){const _0x504898=_0xbe9bf4;var _0x938805;this['_status$'][_0x504898(0x92)](_0x504898(0x164)),(_0x938805=this[_0x504898(0x166)])==null||_0x938805['dispose'](),this[_0x504898(0x166)]=null;}[_0xbe9bf4(0x148)](){const _0x8fd9c8=_0xbe9bf4;var _0x4a8e9e;(_0x4a8e9e=this['_commandDisposable'])==null||_0x4a8e9e[_0x8fd9c8(0x8d)](),this[_0x8fd9c8(0xda)][_0x8fd9c8(0x92)]('following');}[_0xbe9bf4(0x109)](){const _0x3485b2=_0xbe9bf4;var _0xf415f2;this['_status$'][_0x3485b2(0x92)]('idle'),(_0xf415f2=this[_0x3485b2(0x166)])==null||_0xf415f2['dispose'](),this[_0x3485b2(0x166)]=null;}[_0xbe9bf4(0x7d)](){const _0x4ef650=_0xbe9bf4;var _0x432442;this[_0x4ef650(0xda)][_0x4ef650(0x92)](_0x4ef650(0xa4)),(_0x432442=this['_commandDisposable'])==null||_0x432442['dispose']();}[_0xbe9bf4(0xaa)](_0x461e9b){const _0x43fecf=_0xbe9bf4;if([_0x43fecf(0xd0),_0x43fecf(0xa4),'offline'][_0x43fecf(0x9c)](this[_0x43fecf(0x123)])||!_0x461e9b[_0x43fecf(0x147)][_0x43fecf(0x14b)]||_0x461e9b[_0x43fecf(0x147)][_0x43fecf(0x14b)]===this[_0x43fecf(0xe3)][_0x43fecf(0xbd)]())return;this[_0x43fecf(0x123)]===_0x43fecf(0x164)&&this[_0x43fecf(0x148)]();const _0x462581=_0x461e9b[_0x43fecf(0x147)][_0x43fecf(0x131)];Object[_0x43fecf(0xb9)](_0x462581)[_0x43fecf(0xb8)](_0x31a749=>{const _0x7ba6a5=_0x43fecf;this[_0x7ba6a5(0x10b)]['executeCommand'](_0x31a749['id'],_0x31a749[_0x7ba6a5(0xd3)]?JSON[_0x7ba6a5(0xd7)](_0x31a749['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x2dab15=_0xbe9bf4;var _0x737a5a;this['_status$']['next']('offline'),(_0x737a5a=this[_0x2dab15(0x166)])==null||_0x737a5a[_0x2dab15(0x8d)]();}[_0xbe9bf4(0x12f)](){const _0x52d539=_0xbe9bf4;this[_0x52d539(0xda)][_0x52d539(0x92)]('idle'),this[_0x52d539(0xd5)]();}},_0x15484b[_0xbe9bf4(0x107)]=_0x539090([_0x3f15d5(0x2,_0xad28bf[_0xbe9bf4(0x160)]),_0x3f15d5(0x3,_0xad28bf[_0xbe9bf4(0x88)](_0x4e249a)),_0x3f15d5(0x4,_0xad28bf[_0xbe9bf4(0xcf)])],_0x15484b[_0xbe9bf4(0x107)]);function _0x266b2d(){const _0x1c9a6e=_0xbe9bf4,_0x460799=_0x302684[_0x1c9a6e(0x155)](_0x15484b[_0x1c9a6e(0x120)]),_0x13bb16=_0x302684['useDependency'](_0xad28bf[_0x1c9a6e(0x86)]),_0x9e9f33=_0x302684['useObservable'](()=>_0x13bb16[_0x1c9a6e(0x12a)](_0xad28bf[_0x1c9a6e(0xe2)][_0x1c9a6e(0x14a)]),void 0x0,!0x1,[]),[_0x2339b7,_0x19b99a]=_0x367771[_0x1c9a6e(0xe5)](null),[_0x5a6848,_0x21e6a4]=_0x367771[_0x1c9a6e(0xe5)](_0x2df1d9[_0x1c9a6e(0x9f)]),_0xd9dbca=_0x367771['useRef'](null);return _0x367771[_0x1c9a6e(0xfb)](()=>(_0x9e9f33&&_0x460799[_0x1c9a6e(0xa6)](_0x9e9f33[_0x1c9a6e(0x11a)]())[_0x1c9a6e(0xca)](_0x29a330=>{const _0x5c3593=_0x1c9a6e;_0x19b99a(_0x29a330),_0xd9dbca[_0x5c3593(0xc0)]=_0x29a330['status$'][_0x5c3593(0x89)](_0x5d41ea=>{_0x21e6a4(_0x5d41ea);});}),()=>{const _0x5850a4=_0x1c9a6e;var _0x2a8c9b;(_0x2a8c9b=_0xd9dbca[_0x5850a4(0xc0)])==null||_0x2a8c9b['unsubscribe'](),_0xd9dbca[_0x5850a4(0xc0)]=null;}),[_0x9e9f33,_0x460799]),_0x2339b7?_0x259a70['jsx'](_0x2daac7[_0x1c9a6e(0xbf)],{'align':_0x1c9a6e(0x8b),'disabled':_0x5a6848===_0x2df1d9['OFFLINE'],'className':_0x1c9a6e(0x10a),'overlay':_0x259a70[_0x1c9a6e(0xe0)](_0x3aa83d,{'status':_0x5a6848,'coordinator':_0x2339b7}),'children':_0x259a70['jsx']('button',{'className':_0x2daac7[_0x1c9a6e(0xd2)](_0x1c9a6e(0x128),{'univer-cursor-not-allowed':_0x5a6848===_0x2df1d9[_0x1c9a6e(0xc2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5a6848!==_0x2df1d9[_0x1c9a6e(0xc2)]}),'type':_0x1c9a6e(0x145),'children':_0x259a70[_0x1c9a6e(0xe0)](_0xd21d19,{'className':'univer-size-4'})})}):null;}function _0x3aa83d(_0x39460f){const _0x4cce2f=_0xbe9bf4,{status:_0x392eae,coordinator:_0x2eba4d}=_0x39460f;switch(_0x392eae){case _0x2df1d9[_0x4cce2f(0x9f)]:return _0x259a70['jsx'](_0x201056,{'coordinator':_0x2eba4d});case _0x2df1d9['FOLLOWING']:return _0x259a70['jsx'](_0x31523c,{'coordinator':_0x2eba4d});case _0x2df1d9[_0x4cce2f(0x13e)]:return _0x259a70['jsx'](_0x11cc64,{'coordinator':_0x2eba4d});case _0x2df1d9[_0x4cce2f(0xc2)]:return _0x259a70[_0x4cce2f(0xe0)](_0x3f4efa,{});case _0x2df1d9[_0x4cce2f(0xac)]:return _0x259a70[_0x4cce2f(0xe0)](_0x5f0e24,{'coordinator':_0x2eba4d});default:return null;}}function _0x201056(_0x5986e0){const _0x3605a2=_0xbe9bf4,{coordinator:_0x47f0f7}=_0x5986e0;return _0x259a70[_0x3605a2(0x7e)](_0x259a70[_0x3605a2(0x151)],{'children':[_0x259a70['jsx'](_0x3605a2(0xf5),{'className':_0x3605a2(0xaf),'children':'Present\x20this\x20document'}),_0x259a70[_0x3605a2(0xe0)](_0x2daac7['Button'],{'onClick':()=>_0x47f0f7[_0x3605a2(0x93)](),'children':_0x3605a2(0x8c)})]});}function _0x31523c(_0x1978c9){const _0x4e0a5b=_0xbe9bf4,{coordinator:_0x309359}=_0x1978c9;return _0x259a70['jsxs'](_0x259a70[_0x4e0a5b(0x151)],{'children':[_0x259a70['jsx'](_0x4e0a5b(0xf5),{'className':_0x4e0a5b(0xaf),'children':_0x4e0a5b(0x15c)}),_0x259a70['jsx'](_0x2daac7['Button'],{'onClick':()=>_0x309359[_0x4e0a5b(0x10f)](),'children':_0x4e0a5b(0x15d)})]});}function _0x11cc64(_0x5dcebb){const _0xa82335=_0xbe9bf4,{coordinator:_0x135955}=_0x5dcebb;return _0x259a70[_0xa82335(0x7e)](_0x259a70[_0xa82335(0x151)],{'children':[_0x259a70[_0xa82335(0xe0)](_0xa82335(0xf5),{'className':_0xa82335(0xaf),'children':_0xa82335(0xbb)}),_0x259a70[_0xa82335(0xe0)](_0x2daac7[_0xa82335(0xad)],{'variant':_0xa82335(0xd4),'onClick':()=>_0x135955[_0xa82335(0x133)](),'children':_0xa82335(0xdc)})]});}function _0x5f0e24(_0x2d9892){const _0x39cc83=_0xbe9bf4,{coordinator:_0x5e05e3}=_0x2d9892;return _0x259a70[_0x39cc83(0x7e)](_0x259a70[_0x39cc83(0x151)],{'children':[_0x259a70['jsx']('div',{'className':_0x39cc83(0xaf),'children':_0x39cc83(0x90)}),_0x259a70[_0x39cc83(0xe0)](_0x2daac7[_0x39cc83(0xad)],{'variant':_0x39cc83(0x103),'onClick':()=>_0x5e05e3['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x3f4efa(){const _0x3f1949=_0xbe9bf4;return _0x259a70[_0x3f1949(0xe0)](_0x259a70[_0x3f1949(0x151)],{'children':'You\x27are\x20offline.'});}var _0x2938e7=Object[_0xbe9bf4(0xc9)],_0x3fc5b9=(_0x2dacdc,_0x39e0de,_0x57e65e,_0x205f67)=>{for(var _0x112f05=_0x205f67>0x1?void 0x0:_0x205f67?_0x2938e7(_0x39e0de,_0x57e65e):_0x39e0de,_0x3d0183=_0x2dacdc['length']-0x1,_0xf80130;_0x3d0183>=0x0;_0x3d0183--)(_0xf80130=_0x2dacdc[_0x3d0183])&&(_0x112f05=_0xf80130(_0x112f05)||_0x112f05);return _0x112f05;},_0x536c8a=(_0x23940e,_0x2a5889)=>(_0x186061,_0x23a8de)=>_0x2a5889(_0x186061,_0x23a8de,_0x23940e);_0x15484b[_0xbe9bf4(0xd1)]=class extends _0xad28bf['Disposable']{constructor(_0x11ef87,_0x1dd891){const _0x4c191b=_0xbe9bf4;super(),this[_0x4c191b(0xbc)]=_0x11ef87,this[_0x4c191b(0x125)]=_0x1dd891,this[_0x4c191b(0xea)]();}[_0xbe9bf4(0xea)](){const _0x1f8d74=_0xbe9bf4;this[_0x1f8d74(0x138)](this[_0x1f8d74(0x125)][_0x1f8d74(0xf6)](_0x302684[_0x1f8d74(0xd9)][_0x1f8d74(0xb2)],()=>_0x302684[_0x1f8d74(0xb6)](_0x266b2d,this['_injector'])));}},_0x15484b[_0xbe9bf4(0xd1)]=_0x3fc5b9([_0x536c8a(0x0,_0xad28bf[_0xbe9bf4(0x88)](_0xad28bf[_0xbe9bf4(0x142)])),_0x536c8a(0x1,_0x302684[_0xbe9bf4(0x154)])],_0x15484b[_0xbe9bf4(0xd1)]);const _0x404193=_0xbe9bf4(0x12d),_0x4046ef={};var _0x375116=Object['getOwnPropertyDescriptor'],_0x3710b9=(_0x15fe8d,_0x61f760,_0x27d22c,_0x4c6cdd)=>{const _0x4a554c=_0xbe9bf4;for(var _0x4f6240=_0x4c6cdd>0x1?void 0x0:_0x4c6cdd?_0x375116(_0x61f760,_0x27d22c):_0x61f760,_0x286470=_0x15fe8d[_0x4a554c(0x82)]-0x1,_0x10884f;_0x286470>=0x0;_0x286470--)(_0x10884f=_0x15fe8d[_0x286470])&&(_0x4f6240=_0x10884f(_0x4f6240)||_0x4f6240);return _0x4f6240;},_0xd005ba=(_0x3f1381,_0x2b08d7)=>(_0x5ad896,_0x4007e5)=>_0x2b08d7(_0x5ad896,_0x4007e5,_0x3f1381);let _0x5c7420=class extends _0xad28bf[_0xbe9bf4(0x146)]{constructor(_0x25ec83){const _0x16445d=_0xbe9bf4;super(),this[_0x16445d(0x10e)]=_0x25ec83,this[_0x16445d(0x129)]();}[_0xbe9bf4(0x129)](){const _0x240bab=_0xbe9bf4;[_0x982dc2[_0x240bab(0xfa)]['id'],_0x982dc2['SetScrollOperation']['id'],_0x4b9290[_0x240bab(0xab)]['id']][_0x240bab(0xb8)](_0x15152a=>{const _0x106cf7=_0x240bab;this[_0x106cf7(0x138)](this[_0x106cf7(0x10e)][_0x106cf7(0xe6)](_0x15152a));});}};_0x5c7420=_0x3710b9([_0xd005ba(0x0,_0xad28bf[_0xbe9bf4(0x88)](_0x4e249a))],_0x5c7420);var _0x234606=Object['defineProperty'],_0x33c9c3=Object[_0xbe9bf4(0xc9)],_0x4b8223=(_0x2fd2a3,_0x2d2f36,_0x3380f4)=>_0x2d2f36 in _0x2fd2a3?_0x234606(_0x2fd2a3,_0x2d2f36,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3380f4}):_0x2fd2a3[_0x2d2f36]=_0x3380f4,_0x5bf453=(_0x2173ee,_0x1d2c2d,_0x42f8a1,_0x3a8503)=>{for(var _0x54dd43=_0x3a8503>0x1?void 0x0:_0x3a8503?_0x33c9c3(_0x1d2c2d,_0x42f8a1):_0x1d2c2d,_0xcba5b6=_0x2173ee['length']-0x1,_0x873f45;_0xcba5b6>=0x0;_0xcba5b6--)(_0x873f45=_0x2173ee[_0xcba5b6])&&(_0x54dd43=_0x873f45(_0x54dd43)||_0x54dd43);return _0x54dd43;},_0x40e490=(_0x51fa50,_0x3662da)=>(_0x55ba3f,_0xbbcf70)=>_0x3662da(_0x55ba3f,_0xbbcf70,_0x51fa50),_0x1f3466=(_0x5d5096,_0x35d47c,_0xdf5082)=>_0x4b8223(_0x5d5096,typeof _0x35d47c!=_0xbe9bf4(0x13f)?_0x35d47c+'':_0x35d47c,_0xdf5082);const _0x15a5af=_0xbe9bf4(0xde);_0x15484b['UniverLiveSharePlugin']=class extends _0xad28bf[_0xbe9bf4(0x94)]{constructor(_0x4a5f3d=_0x4046ef,_0x346470,_0x21f166){const _0x33fcf7=_0xbe9bf4;super(),this[_0x33fcf7(0x12c)]=_0x4a5f3d,this[_0x33fcf7(0xbc)]=_0x346470,this[_0x33fcf7(0xe8)]=_0x21f166;const {..._0xe391e2}=_0xad28bf['merge']({},_0x4046ef,this['_config']);this[_0x33fcf7(0xe8)][_0x33fcf7(0x150)](_0x404193,_0xe391e2);}['onStarting'](){const _0x3dc4b9=_0xbe9bf4;_0xad28bf[_0x3dc4b9(0xb7)](this[_0x3dc4b9(0xbc)],_0xad28bf[_0x3dc4b9(0x104)]([[_0x4e249a],[_0x15484b[_0x3dc4b9(0x120)]],[_0x5c7420],[_0x15484b[_0x3dc4b9(0xd1)]]],this['_config'][_0x3dc4b9(0x122)])),_0xad28bf[_0x3dc4b9(0xb4)](this[_0x3dc4b9(0xbc)],[[_0x5c7420]]);}[_0xbe9bf4(0x140)](){const _0x6a91e0=_0xbe9bf4;_0xad28bf['touchDependencies'](this[_0x6a91e0(0xbc)],[[_0x15484b[_0x6a91e0(0xd1)]]]);}},_0x1f3466(_0x15484b[_0xbe9bf4(0x11e)],_0xbe9bf4(0x13b),_0xad28bf['UniverInstanceType'][_0xbe9bf4(0xa1)]),_0x1f3466(_0x15484b['UniverLiveSharePlugin'],'pluginName',_0x15a5af),_0x15484b[_0xbe9bf4(0x11e)]=_0x5bf453([_0xad28bf['DependentOn'](_0x184063['UniverCollaborationClientPlugin']),_0x40e490(0x1,_0xad28bf['Inject'](_0xad28bf[_0xbe9bf4(0x142)])),_0x40e490(0x2,_0xad28bf[_0xbe9bf4(0x160)])],_0x15484b[_0xbe9bf4(0x11e)]),_0x15484b[_0xbe9bf4(0x10d)]=_0x266b2d,_0x15484b['LiveShareService']=_0x4e249a,_0x15484b['LiveShareStatus']=_0x2df1d9,Object['defineProperty'](_0x15484b,Symbol['toStringTag'],{'value':'Module'});}));function _0x5c10(){const _0x5e9dee=['map','idle','1403952dsrDhV','_commandDisposable','takeUntil','forwardRef','xlink:href','_stopFollowing','jsxs','CommandType','0\x200\x2017\x2017','asObservable','length','_stopPresenting','memberID','clear','IUniverInstanceService','Subject','Inject','subscribe','http://www.w3.org/2000/svg','end','Start','dispose','_handleNewHost','sheet','You\x27re\x20presenting\x20the\x20document','idSuffix','next','tryStartPresenting','Plugin','_reporters','trim','path','registerInitialStateReporter','_presenter','from','substring','includes','_handleNewChangeSets','@univerjs-pro/collaboration','IDLE','string','UNIVER_UNKNOWN','reverse','dispose$','not-following','complete','getLiveShareCoordinator','78rUzLyl','exports','defIds','_handleOperation','SetWorksheetActiveOperation','PRESENTING','Button','following','univer-mb-3\x20univer-w-full\x20univer-text-sm','InsertSheetMutation','event$','HEADER_MENU','FOLLOWING','touchDependencies','getTypeOfUnitDisposed$','connectInjector','registerDependencies','forEach','values','2nKZPkP','You\x27re\x20not\x20following\x20the\x20presenter','_injector','getMemberID','UniverUi','Dropdown','current','_sharedOperations','OFFLINE','_unitID','React','getValue','defs','getTypeOfUnitAdded$','unitId','getOwnPropertyDescriptor','then','children','UniverProCollaborationClient','@univerjs/core','1974192dHYhZY','ICommandService','presenting','DesktopLiveShareController','clsx','params','text','_fetchOperations','find','parse','@univerjs/sheets','BuiltInUIPart','_status$','rxjs','Start\x20following','rxjs/operators','UNIVER_LIVE_SHARE_PLUGIN','_handleTerminate','jsx','use','UniverInstanceType','_collabSession','set','useState','registerSharedOperation','225355tIXvgD','_configService','_startPresenting','_mountLiveShare','UniverProCollaboration','replace','getConfig','univerjs-icon\x20univerjs-icon-','@univerjs/ui','_startLiveShareCoordinator','OPERATION','currentColor','has','_collabSessionService','div','registerComponent','shouldShareOperation','send','assign','SetZoomRatioOperation','useEffect','UniverDesign','get','1755477ayAFEN','fill','@univerjs-pro/collaboration-client','toDisposable','entries','default','mergeOverrideWithDependencies','@univerjs/design','SessionStatus','LiveShareCoordinator','LIVESHARE_TERMINATE','_beIdle','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','_commandService','parseProtocolChangeset','LiveShare','_liveShareService','stopFollowing','random','none','requireSession','init','mask','pipe','createElement','RxDisposable','1em','@univerjs/sheets-ui','getUnitId','colorChannel1','sessionStatus$','7IfPcUF','UniverLiveSharePlugin','_handleOffline','LiveShareController','operators','override','_status','10954520RMhQpW','_uiPartsService','displayName','SAME_OPERATION_SHARE_INTERVAL','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_init','getCurrentTypeOfUnit$','_entities','_config','live-share.config','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','_handleOnline','evenodd','operations','getStatus','startFollowing','createInstance','UniverProLiveShare','add','url(#$1','disposeWithMe','amd','111438zJMjXR','type','stringify','attrs','NOT_FOLLOWING','symbol','onRendered','react/jsx-runtime','Injector','LIVESHARE_OPERATION','425965jelHrE','button','Disposable','data','_startFollowing','svg','UNIVER_SHEET','presenter','getLiveShareCoordinatorSync','NEW_CHANGESETS','tag','live-share-icon','setConfig','Fragment','toString','UniverIcon','IUIPartsService','useDependency','object','function','LIVESHARE_REQUEST_HOST','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','CollaborationEvent','getInitialStates','You\x27re\x20following\x20the\x20presenter','Stop\x20following','ONLINE','UniverSheets','IConfigService','onCommandExecuted','_univerInstanceService'];_0x5c10=function(){return _0x5e9dee;};return _0x5c10();}
|
|
1
|
+
(function(_0x6d23c,_0x20c708){const _0x4c5184=_0x4047,_0x4d8781=_0x6d23c();while(!![]){try{const _0x48069e=-parseInt(_0x4c5184(0x172))/0x1*(parseInt(_0x4c5184(0x154))/0x2)+-parseInt(_0x4c5184(0xd6))/0x3+-parseInt(_0x4c5184(0x122))/0x4+-parseInt(_0x4c5184(0x12a))/0x5*(-parseInt(_0x4c5184(0x96))/0x6)+parseInt(_0x4c5184(0x128))/0x7+parseInt(_0x4c5184(0xda))/0x8+parseInt(_0x4c5184(0x132))/0x9;if(_0x48069e===_0x20c708)break;else _0x4d8781['push'](_0x4d8781['shift']());}catch(_0x4532fd){_0x4d8781['push'](_0x4d8781['shift']());}}}(_0x104b,0x71d78),function(_0x4b2a28,_0x117f7a){const _0x383e11=_0x4047;typeof exports=='object'&&typeof module<'u'?_0x117f7a(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[_0x383e11(0x124)]?define([_0x383e11(0xe1),'@univerjs/core',_0x383e11(0x152),_0x383e11(0xf0),'@univerjs/design',_0x383e11(0xd4),_0x383e11(0xfb),_0x383e11(0x142),_0x383e11(0xa3),'rxjs',_0x383e11(0xde),'@univerjs/sheets-ui'],_0x117f7a):(_0x4b2a28=typeof globalThis<'u'?globalThis:_0x4b2a28||self,_0x117f7a(_0x4b2a28[_0x383e11(0xbe)]={},_0x4b2a28[_0x383e11(0xf9)],_0x4b2a28[_0x383e11(0x178)],_0x4b2a28['React'],_0x4b2a28[_0x383e11(0x175)],_0x4b2a28[_0x383e11(0xa4)],_0x4b2a28[_0x383e11(0x14b)],_0x4b2a28[_0x383e11(0xe5)],_0x4b2a28[_0x383e11(0xa8)],_0x4b2a28['rxjs'],_0x4b2a28[_0x383e11(0xcf)][_0x383e11(0xa7)],_0x4b2a28[_0x383e11(0xe4)]));}(this,function(_0x3abbfa,_0x4359e1,_0x2d5985,_0x2c4380,_0xdf5c6c,_0x21bcc6,_0x27ab74,_0x2431fe,_0x459134,_0x47e1d1,_0x3ab019,_0x16f6d9){'use strict';const _0x3466ad=_0x4047;var _0x15cbaa=Object['defineProperty'],_0x2a4487=(_0x5c8a5a,_0x33f3e3,_0x3489c8)=>_0x33f3e3 in _0x5c8a5a?_0x15cbaa(_0x5c8a5a,_0x33f3e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3489c8}):_0x5c8a5a[_0x33f3e3]=_0x3489c8,_0x1f450f=(_0x3cfc60,_0x37791a,_0x57ebe7)=>_0x2a4487(_0x3cfc60,typeof _0x37791a!=_0x3466ad(0x167)?_0x37791a+'':_0x37791a,_0x57ebe7);function _0x2b598e({ref:_0x3b9b48,..._0x1d0ee1}){const _0x3b29fe=_0x3466ad,{icon:_0x11684,id:_0x52226b,className:_0x6faa96,extend:_0x468b33,..._0x41122b}=_0x1d0ee1,_0x40ff5a=(_0x3b29fe(0xa9)+_0x52226b+'\x20'+(_0x6faa96||''))[_0x3b29fe(0x12f)](),_0x385a0d=_0x21bcc6['useRef']('_'+_0x105a90());return _0x56505d(_0x11684,''+_0x52226b,{'defIds':_0x11684[_0x3b29fe(0xca)],'idSuffix':_0x385a0d[_0x3b29fe(0x149)]},{'ref':_0x3b9b48,'className':_0x40ff5a,..._0x41122b},_0x468b33);}function _0x56505d(_0x5a4bc0,_0x36d879,_0x492e24,_0x23a7c8,_0x4ff428){const _0x436ec9=_0x3466ad;return _0x21bcc6[_0x436ec9(0x16f)](_0x5a4bc0[_0x436ec9(0x16d)],{'key':_0x36d879,..._0x4a9777(_0x5a4bc0,_0x492e24,_0x4ff428),..._0x23a7c8},(_0x46caa5(_0x5a4bc0,_0x492e24)[_0x436ec9(0x99)]||[])[_0x436ec9(0xb3)]((_0x34690c,_0x2d41f3)=>_0x56505d(_0x34690c,_0x36d879+'-'+_0x5a4bc0[_0x436ec9(0x16d)]+'-'+_0x2d41f3,_0x492e24,void 0x0,_0x4ff428)));}function _0x4a9777(_0xa6bb75,_0x3a3e71,_0x1b4a3d){const _0x337d48=_0x3466ad,_0x2b0276={..._0xa6bb75[_0x337d48(0x125)]};_0x1b4a3d!=null&&_0x1b4a3d[_0x337d48(0x169)]&&_0x2b0276['fill']==='colorChannel1'&&(_0x2b0276[_0x337d48(0x100)]=_0x1b4a3d[_0x337d48(0x169)]),_0xa6bb75['tag']===_0x337d48(0xba)&&_0x2b0276['id']&&(_0x2b0276['id']=_0x2b0276['id']+_0x3a3e71[_0x337d48(0x11c)]),Object[_0x337d48(0x162)](_0x2b0276)[_0x337d48(0xc2)](([_0x2aad71,_0x41dc47])=>{const _0xa74612=_0x337d48;_0x2aad71==='mask'&&typeof _0x41dc47==_0xa74612(0x155)&&(_0x2b0276[_0x2aad71]=_0x41dc47[_0xa74612(0xdf)](/url\(#(.*)\)/,_0xa74612(0xf5)+_0x3a3e71['idSuffix']+')'));});const {defIds:_0x65938b}=_0x3a3e71;return!_0x65938b||_0x65938b[_0x337d48(0x158)]===0x0||(_0xa6bb75[_0x337d48(0x16d)]===_0x337d48(0xeb)&&_0x2b0276['xlink:href']&&(_0x2b0276[_0x337d48(0x168)]=_0x2b0276['xlink:href']+_0x3a3e71['idSuffix']),Object[_0x337d48(0x162)](_0x2b0276)['forEach'](([_0x2dba42,_0x576ac8])=>{const _0x34452b=_0x337d48;typeof _0x576ac8==_0x34452b(0x155)&&(_0x2b0276[_0x2dba42]=_0x576ac8[_0x34452b(0xdf)](/url\(#(.*)\)/,_0x34452b(0xf5)+_0x3a3e71['idSuffix']+')'));})),_0x2b0276;}function _0x46caa5(_0x533bf6,_0x5ac013){const _0x4e004f=_0x3466ad;var _0x18668f;const {defIds:_0x42a515}=_0x5ac013;return!_0x42a515||_0x42a515[_0x4e004f(0x158)]===0x0?_0x533bf6:_0x533bf6[_0x4e004f(0x16d)]===_0x4e004f(0xec)&&((_0x18668f=_0x533bf6[_0x4e004f(0x99)])!=null&&_0x18668f['length'])?{..._0x533bf6,'children':_0x533bf6['children'][_0x4e004f(0xb3)](_0x1741da=>typeof _0x1741da[_0x4e004f(0x125)]['id']==_0x4e004f(0x155)&&_0x42a515&&_0x42a515[_0x4e004f(0x170)](_0x1741da[_0x4e004f(0x125)]['id'])?{..._0x1741da,'attrs':{..._0x1741da[_0x4e004f(0x125)],'id':_0x1741da['attrs']['id']+_0x5ac013[_0x4e004f(0x11c)]}}:_0x1741da)}:_0x533bf6;}function _0x105a90(){const _0x4c7eaf=_0x3466ad;return Math[_0x4c7eaf(0x116)]()[_0x4c7eaf(0x146)](0x24)['substring'](0x2,0x8);}_0x2b598e[_0x3466ad(0xe6)]=_0x3466ad(0xaf);const _0x287fb8={'tag':_0x3466ad(0x108),'attrs':{'xmlns':_0x3466ad(0xb4),'fill':'none','viewBox':_0x3466ad(0x160),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x3466ad(0x157),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x3466ad(0x17b),'attrs':{'fill':'currentColor','d':_0x3466ad(0xee),'fillRule':_0x3466ad(0x105),'clipRule':_0x3466ad(0x105)}}]},_0x19234d=_0x21bcc6[_0x3466ad(0x12c)](function(_0x2a6ac5,_0x1a51a0){const _0x42aa2f=_0x3466ad;return _0x21bcc6[_0x42aa2f(0x16f)](_0x2b598e,Object[_0x42aa2f(0x14e)]({},_0x2a6ac5,{'id':_0x42aa2f(0xb0),'ref':_0x1a51a0,'icon':_0x287fb8}));});_0x19234d[_0x3466ad(0xe6)]=_0x3466ad(0x153);class _0xb3b5ac extends _0x4359e1[_0x3466ad(0x10f)]{constructor(){const _0x78cf07=_0x3466ad;super(...arguments),_0x1f450f(this,'_sharedOperations',new Set()),_0x1f450f(this,_0x78cf07(0x15a),new Set());}[_0x3466ad(0xaa)](_0x3cbcb2){const _0x24e95d=_0x3466ad;return this[_0x24e95d(0x101)]['add'](_0x3cbcb2),_0x4359e1['toDisposable'](()=>this[_0x24e95d(0x101)]['delete'](_0x3cbcb2));}[_0x3466ad(0xdc)](_0x2c39d0){const _0x1fc445=_0x3466ad;return this[_0x1fc445(0x15a)][_0x1fc445(0x13b)](_0x2c39d0),_0x4359e1['toDisposable'](()=>this[_0x1fc445(0x15a)][_0x1fc445(0x120)](_0x2c39d0));}[_0x3466ad(0x164)](_0xb176f1){const _0x58f163=_0x3466ad;return this[_0x58f163(0x101)][_0x58f163(0xd5)](_0xb176f1);}['getInitialStates'](_0x575b0b){const _0x3b6f41=_0x3466ad;return Array[_0x3b6f41(0x114)](this['_reporters'])['map'](_0xdea91e=>_0xdea91e(_0x575b0b));}}var _0x2becc1=Object['getOwnPropertyDescriptor'],_0x3fd12f=(_0x167f46,_0x44c4b6,_0x3c3228,_0x5903ed)=>{const _0x293de3=_0x3466ad;for(var _0x6762bd=_0x5903ed>0x1?void 0x0:_0x5903ed?_0x2becc1(_0x44c4b6,_0x3c3228):_0x44c4b6,_0x23997c=_0x167f46[_0x293de3(0x158)]-0x1,_0x3d0318;_0x23997c>=0x0;_0x23997c--)(_0x3d0318=_0x167f46[_0x23997c])&&(_0x6762bd=_0x3d0318(_0x6762bd)||_0x6762bd);return _0x6762bd;},_0x5d4fb8=(_0xab9004,_0x180a9e)=>(_0x237951,_0x11f747)=>_0x180a9e(_0x237951,_0x11f747,_0xab9004);_0x3abbfa[_0x3466ad(0x102)]=class extends _0x4359e1['RxDisposable']{constructor(_0x51692d,_0x2d7c6e,_0x653823){const _0x353322=_0x3466ad;super(),_0x1f450f(this,'_entities',new Map()),(this[_0x353322(0x138)]=_0x51692d,this[_0x353322(0xf8)]=_0x2d7c6e,this[_0x353322(0xac)]=_0x653823,this[_0x353322(0xd1)]());}async['getLiveShareCoordinator'](_0xa72a00){const _0x39dfa9=_0x3466ad;return this[_0x39dfa9(0x176)]['has'](_0xa72a00)||await this[_0x39dfa9(0x174)](_0xa72a00),this[_0x39dfa9(0x176)][_0x39dfa9(0x12e)](_0xa72a00);}[_0x3466ad(0xf2)](_0x383497){const _0x3c02ea=_0x3466ad;var _0x3213b9;return(_0x3213b9=this['_entities'][_0x3c02ea(0x12e)](_0x383497))!=null?_0x3213b9:null;}[_0x3466ad(0xd1)](){const _0x112ffa=_0x3466ad;this[_0x112ffa(0x138)][_0x112ffa(0xe2)](_0x4359e1[_0x112ffa(0xf7)][_0x112ffa(0xce)])[_0x112ffa(0xbf)](_0x3ab019[_0x112ffa(0xe3)](this[_0x112ffa(0x10a)]))[_0x112ffa(0x109)](async _0x548362=>{const _0x48ffd1=_0x112ffa,_0x5a758a=_0x548362[_0x48ffd1(0x17e)]();this[_0x48ffd1(0x176)][_0x48ffd1(0xd5)](_0x5a758a)||this[_0x48ffd1(0x174)](_0x5a758a);}),this['_univerInstanceService'][_0x112ffa(0x166)](_0x4359e1[_0x112ffa(0xf7)]['UNIVER_SHEET'])['pipe'](_0x3ab019['takeUntil'](this[_0x112ffa(0x10a)]))[_0x112ffa(0x109)](_0x2bd5ff=>{const _0x1eef09=_0x112ffa,_0x53712f=_0x2bd5ff['getUnitId'](),_0x3751f1=this[_0x1eef09(0x176)][_0x1eef09(0x12e)](_0x53712f);_0x3751f1==null||_0x3751f1[_0x1eef09(0x10e)]();});}async[_0x3466ad(0x174)](_0x5821a4){const _0x2d4b76=_0x3466ad,_0x44d371=await this[_0x2d4b76(0xac)]['requireSession'](_0x5821a4),_0x332102=this[_0x2d4b76(0xf8)]['createInstance'](_0x3abbfa[_0x2d4b76(0x148)],_0x5821a4,_0x44d371);return _0x332102['init'](),this[_0x2d4b76(0x176)][_0x2d4b76(0xea)](_0x5821a4,_0x332102),_0x332102;}},_0x3abbfa['LiveShareController']=_0x3fd12f([_0x5d4fb8(0x0,_0x4359e1[_0x3466ad(0xff)]),_0x5d4fb8(0x1,_0x4359e1['Inject'](_0x4359e1[_0x3466ad(0xcd)])),_0x5d4fb8(0x2,_0x4359e1[_0x3466ad(0x135)](_0x2431fe[_0x3466ad(0xed)]))],_0x3abbfa[_0x3466ad(0x102)]);var _0x53cc48=(_0x253843=>(_0x253843[_0x3466ad(0x14a)]=_0x3466ad(0xd7),_0x253843['IDLE']=_0x3466ad(0x177),_0x253843[_0x3466ad(0x16b)]=_0x3466ad(0x17d),_0x253843[_0x3466ad(0x107)]=_0x3466ad(0xd3),_0x253843[_0x3466ad(0xc3)]=_0x3466ad(0x13d),_0x253843))(_0x53cc48||{});const _0x26e80c=_0x3466ad(0xae),_0x33d4c0=0xc8;_0x3abbfa['LiveShareCoordinator']=class extends _0x4359e1['RxDisposable']{constructor(_0x58d938,_0x58d4a9,_0x2b4e7f,_0x3e6e24,_0x2e8f99){const _0x4ab263=_0x3466ad;super(),_0x1f450f(this,_0x4ab263(0x16a),new _0x47e1d1[(_0x4ab263(0xb1))](_0x4ab263(0x177))),_0x1f450f(this,_0x4ab263(0xb2),this[_0x4ab263(0x16a)][_0x4ab263(0xd8)]()),_0x1f450f(this,_0x4ab263(0xd1),!0x1),_0x1f450f(this,_0x4ab263(0x11f),null),_0x1f450f(this,_0x4ab263(0x95),null),(this[_0x4ab263(0x13c)]=_0x58d938,this[_0x4ab263(0x129)]=_0x58d4a9,this[_0x4ab263(0xef)]=_0x2b4e7f,this['_liveShareService']=_0x3e6e24,this['_commandService']=_0x2e8f99);}get['_status'](){const _0x209d78=_0x3466ad;return this[_0x209d78(0x16a)][_0x209d78(0xc5)]();}[_0x3466ad(0x10e)](){const _0x4cc7aa=_0x3466ad;var _0x55414c;(_0x55414c=this['_commandDisposable'])==null||_0x55414c['dispose'](),this[_0x4cc7aa(0x16a)][_0x4cc7aa(0xbd)](_0x4cc7aa(0x177)),this['_status$'][_0x4cc7aa(0xa5)]();}[_0x3466ad(0x12d)](){const _0x549ee9=_0x3466ad;return this[_0x549ee9(0xd2)];}['init'](){const _0x2e6e6d=_0x3466ad;this[_0x2e6e6d(0xd1)]||(this[_0x2e6e6d(0xd1)]=!0x0,this['_collabSession'][_0x2e6e6d(0x119)][_0x2e6e6d(0xbf)](_0x3ab019[_0x2e6e6d(0xe3)](this['dispose$']))[_0x2e6e6d(0x109)](_0x225982=>{const _0x1f861d=_0x2e6e6d;switch(_0x225982){case _0x2431fe['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case _0x2431fe[_0x1f861d(0xb6)][_0x1f861d(0x139)]:this[_0x1f861d(0xe8)]();break;}}),this[_0x2e6e6d(0x129)][_0x2e6e6d(0x11d)][_0x2e6e6d(0xbf)](_0x3ab019['takeUntil'](this['dispose$']))['subscribe'](_0x190a9c=>{const _0x1aa6f5=_0x2e6e6d,{eventID:_0x5910ae}=_0x190a9c;switch(_0x5910ae){case _0x27ab74['CollaborationEvent'][_0x1aa6f5(0x9a)]:this['_handleNewHost'](_0x190a9c);break;case _0x27ab74[_0x1aa6f5(0x91)][_0x1aa6f5(0xcb)]:this['_handleOperation'](_0x190a9c);break;case _0x27ab74[_0x1aa6f5(0x91)][_0x1aa6f5(0x9c)]:this[_0x1aa6f5(0x16e)]();break;case _0x27ab74[_0x1aa6f5(0x91)][_0x1aa6f5(0x163)]:this[_0x1aa6f5(0x144)](_0x190a9c);break;}}));}['tryStartPresenting'](){const _0x4193b4=_0x3466ad;this['_collabSession'][_0x4193b4(0xe7)]({'eventID':_0x27ab74[_0x4193b4(0x91)][_0x4193b4(0x156)],'data':{'unitID':this[_0x4193b4(0x13c)],'userID':this[_0x4193b4(0x129)][_0x4193b4(0x14c)]()}},this['_unitID']);}[_0x3466ad(0x171)](){const _0x9c9c58=_0x3466ad;this[_0x9c9c58(0xd2)]===_0x9c9c58(0x13d)&&(this['_status$'][_0x9c9c58(0xbd)](_0x9c9c58(0x177)),this[_0x9c9c58(0x129)][_0x9c9c58(0xe7)]({'eventID':_0x27ab74['CollaborationEvent'][_0x9c9c58(0x9c)],'data':{'unitID':this[_0x9c9c58(0x13c)]}},this[_0x9c9c58(0x13c)]));}[_0x3466ad(0xbc)](){const _0x619cf=_0x3466ad;this[_0x619cf(0xd2)]===_0x619cf(0xd3)&&(this[_0x619cf(0x16a)][_0x619cf(0xbd)](_0x619cf(0x17d)),this[_0x619cf(0x147)]());}[_0x3466ad(0x113)](){const _0xf39d57=_0x3466ad;this[_0xf39d57(0xd2)]===_0xf39d57(0x17d)&&this[_0xf39d57(0x11b)]();}[_0x3466ad(0xa1)](_0x5392c7){const _0x9dc36c=_0x3466ad,{presenter:_0x57e1fc}=_0x5392c7[_0x9dc36c(0x165)],_0x491b6b=this[_0x9dc36c(0x129)][_0x9dc36c(0x14c)]();this[_0x9dc36c(0x95)]=_0x57e1fc,_0x57e1fc===_0x491b6b?(this[_0x9dc36c(0x11b)](),this['_startPresenting']()):this[_0x9dc36c(0xd2)]!==_0x9dc36c(0xd3)&&(this[_0x9dc36c(0x133)](),this[_0x9dc36c(0x147)]());}[_0x3466ad(0x179)](){const _0x582f5c=_0x3466ad,_0x3ee616={'eventID':_0x27ab74[_0x582f5c(0x91)][_0x582f5c(0x143)]};this['_collabSession'][_0x582f5c(0xe7)](_0x3ee616,this['_unitID']);}[_0x3466ad(0x16e)](){const _0xa645ca=_0x3466ad;this[_0xa645ca(0x95)]=null,this[_0xa645ca(0xd2)]!==_0xa645ca(0x13d)&&this['_beIdle']();}['_handleNewChangeSets'](_0x3a886){const _0x18b73d=_0x3466ad;if(this[_0x18b73d(0xd2)]===_0x18b73d(0x17d)&&this[_0x18b73d(0x95)]===_0x3a886[_0x18b73d(0x165)]['memberID']){const _0x2842b5=_0x27ab74[_0x18b73d(0xbb)](_0x3a886['data'])['mutations'][_0x18b73d(0x159)]()[_0x18b73d(0x121)](_0x4616b8=>_0x4616b8['id']===_0x459134[_0x18b73d(0x13a)]['id']);if(_0x2842b5){const _0x657b3e=_0x2842b5[_0x18b73d(0x112)][_0x18b73d(0x151)],_0x1da8f6=_0x2842b5[_0x18b73d(0x112)][_0x18b73d(0x14f)]['id'];setTimeout(()=>{const _0x424d67=_0x18b73d;this[_0x424d67(0xdb)]['executeCommand'](_0x459134[_0x424d67(0x15d)]['id'],{'unitId':_0x657b3e,'subUnitId':_0x1da8f6},{'fromCollab':!0x0});});}}}[_0x3466ad(0x9b)](){const _0x54bada=_0x3466ad;this[_0x54bada(0x16a)]['next'](_0x54bada(0x13d));const _0x27cb9c=new Map(),_0x18fc98=this['_commandDisposable']=new _0x4359e1[(_0x54bada(0xc7))]();_0x18fc98[_0x54bada(0x13b)](_0x4359e1[_0x54bada(0x9d)](()=>{const _0xb3c572=_0x54bada;_0x27cb9c['forEach'](_0x14494e=>_0x14494e[_0xb3c572(0xa5)]()),_0x27cb9c[_0xb3c572(0x16c)]();})),_0x18fc98[_0x54bada(0x13b)](this[_0x54bada(0xdb)][_0x54bada(0xcc)](_0x256f43=>{const _0x26011d=_0x54bada;var _0x24321c;if(_0x256f43[_0x26011d(0xfa)]!==_0x4359e1['CommandType']['OPERATION']||!this['_liveShareService'][_0x26011d(0x164)](_0x256f43['id']))return;const {id:_0x4ba781}=_0x256f43;let _0x37ebaf;_0x27cb9c['has'](_0x4ba781)?_0x37ebaf=_0x27cb9c[_0x26011d(0x12e)](_0x4ba781):(_0x37ebaf=new _0x47e1d1['Subject'](),_0x27cb9c[_0x26011d(0xea)](_0x4ba781,_0x37ebaf),_0x37ebaf[_0x26011d(0xbf)](_0x3ab019[_0x26011d(0x137)]((_0x24321c=this['_configService']['getConfig'](_0x26e80c))!=null?_0x24321c:_0x33d4c0,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x26011d(0x109)](_0x25642b=>{const _0x4c9d81=_0x26011d;this['_collabSession'][_0x4c9d81(0xe7)]({'eventID':_0x27ab74['CollaborationEvent'][_0x4c9d81(0xcb)],'data':{'unitID':this[_0x4c9d81(0x13c)],'operations':{[_0x25642b['id']]:{'id':_0x25642b['id'],'params':JSON[_0x4c9d81(0x110)](_0x25642b[_0x4c9d81(0x112)])}}}},this[_0x4c9d81(0x13c)]);})),_0x37ebaf['next'](_0x256f43);})),this['_liveShareService'][_0x54bada(0xf1)](this[_0x54bada(0x13c)])['forEach'](_0x13cd38=>this[_0x54bada(0x129)][_0x54bada(0xe7)]({'eventID':_0x27ab74[_0x54bada(0x91)][_0x54bada(0xcb)],'data':{'unitID':this['_unitID'],'operations':{[_0x13cd38['id']]:{'id':_0x13cd38['id'],'params':JSON[_0x54bada(0x110)](_0x13cd38[_0x54bada(0x112)])}}}},this[_0x54bada(0x13c)]));}[_0x3466ad(0x133)](){const _0x21a377=_0x3466ad;var _0x55eb02;this[_0x21a377(0x16a)]['next']('idle'),(_0x55eb02=this[_0x21a377(0x11f)])==null||_0x55eb02[_0x21a377(0x10e)](),this[_0x21a377(0x11f)]=null;}[_0x3466ad(0x147)](){const _0x37bcd8=_0x3466ad;var _0x3d8748;(_0x3d8748=this[_0x37bcd8(0x11f)])==null||_0x3d8748['dispose'](),this['_status$'][_0x37bcd8(0xbd)]('following');}[_0x3466ad(0x9e)](){const _0x2d3376=_0x3466ad;var _0x3ee4bb;this[_0x2d3376(0x16a)][_0x2d3376(0xbd)](_0x2d3376(0x177)),(_0x3ee4bb=this['_commandDisposable'])==null||_0x3ee4bb[_0x2d3376(0x10e)](),this['_commandDisposable']=null;}[_0x3466ad(0x11b)](){const _0x28364b=_0x3466ad;var _0x2e52e2;this[_0x28364b(0x16a)]['next']('not-following'),(_0x2e52e2=this[_0x28364b(0x11f)])==null||_0x2e52e2[_0x28364b(0x10e)]();}['_handleOperation'](_0x3999e3){const _0x205dae=_0x3466ad;if([_0x205dae(0x13d),_0x205dae(0xd3),'offline']['includes'](this[_0x205dae(0xd2)])||!_0x3999e3[_0x205dae(0x165)][_0x205dae(0xa0)]||_0x3999e3['data'][_0x205dae(0xa0)]===this['_collabSession'][_0x205dae(0x14c)]())return;this[_0x205dae(0xd2)]===_0x205dae(0x177)&&this[_0x205dae(0x147)]();const _0x207f23=_0x3999e3['data'][_0x205dae(0x15f)];Object['values'](_0x207f23)['forEach'](_0x443ae9=>{const _0x3f6758=_0x205dae;this[_0x3f6758(0xdb)][_0x3f6758(0x17c)](_0x443ae9['id'],_0x443ae9['params']?JSON[_0x3f6758(0xc0)](_0x443ae9[_0x3f6758(0x112)]):null,{'fromCollab':!0x0});});}[_0x3466ad(0x123)](){const _0x12db3f=_0x3466ad;var _0x3e95d1;this[_0x12db3f(0x16a)][_0x12db3f(0xbd)]('offline'),(_0x3e95d1=this[_0x12db3f(0x11f)])==null||_0x3e95d1[_0x12db3f(0x10e)]();}[_0x3466ad(0xe8)](){const _0x574c51=_0x3466ad;this[_0x574c51(0x16a)][_0x574c51(0xbd)](_0x574c51(0x177)),this[_0x574c51(0x179)]();}},_0x3abbfa[_0x3466ad(0x148)]=_0x3fd12f([_0x5d4fb8(0x2,_0x4359e1[_0x3466ad(0xb5)]),_0x5d4fb8(0x3,_0x4359e1[_0x3466ad(0x135)](_0xb3b5ac)),_0x5d4fb8(0x4,_0x4359e1[_0x3466ad(0x115)])],_0x3abbfa[_0x3466ad(0x148)]);function _0x558aee(){const _0x2a0da8=_0x3466ad,_0x3c7c0b=_0x2d5985[_0x2a0da8(0xe0)](_0x3abbfa[_0x2a0da8(0x102)]),_0x272075=_0x2d5985[_0x2a0da8(0xe0)](_0x4359e1[_0x2a0da8(0xff)]),_0x5cc3e8=_0x2d5985[_0x2a0da8(0x13e)](()=>_0x272075[_0x2a0da8(0x161)](_0x4359e1[_0x2a0da8(0xf7)][_0x2a0da8(0xce)]),void 0x0,!0x1,[]),[_0x19a078,_0x467ddf]=_0x21bcc6[_0x2a0da8(0x13f)](null),[_0xfb608a,_0x2b077f]=_0x21bcc6[_0x2a0da8(0x13f)](_0x53cc48[_0x2a0da8(0x126)]),_0x3627f2=_0x21bcc6['useRef'](null);return _0x21bcc6[_0x2a0da8(0xab)](()=>(_0x5cc3e8&&_0x3c7c0b[_0x2a0da8(0x145)](_0x5cc3e8[_0x2a0da8(0x17e)]())[_0x2a0da8(0xf4)](_0xa9dd03=>{const _0x4d40b3=_0x2a0da8;_0x467ddf(_0xa9dd03),_0x3627f2[_0x4d40b3(0x149)]=_0xa9dd03['status$'][_0x4d40b3(0x109)](_0x5a6bd9=>{_0x2b077f(_0x5a6bd9);});}),()=>{const _0x3dcfad=_0x2a0da8;var _0x5182bf;(_0x5182bf=_0x3627f2[_0x3dcfad(0x149)])==null||_0x5182bf[_0x3dcfad(0x150)](),_0x3627f2[_0x3dcfad(0x149)]=null;}),[_0x5cc3e8,_0x3c7c0b]),_0x19a078?_0x2c4380[_0x2a0da8(0x10c)](_0xdf5c6c[_0x2a0da8(0xd9)],{'align':_0x2a0da8(0x131),'disabled':_0xfb608a===_0x53cc48['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':_0x2c4380[_0x2a0da8(0x10c)](_0x5699b4,{'status':_0xfb608a,'coordinator':_0x19a078}),'children':_0x2c4380['jsx'](_0x2a0da8(0x106),{'className':_0xdf5c6c[_0x2a0da8(0x130)](_0x2a0da8(0x104),{'univer-cursor-not-allowed':_0xfb608a===_0x53cc48[_0x2a0da8(0x14a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xfb608a!==_0x53cc48['OFFLINE']}),'type':_0x2a0da8(0x106),'children':_0x2c4380[_0x2a0da8(0x10c)](_0x19234d,{'className':_0x2a0da8(0xc6)})})}):null;}function _0x5699b4(_0x4dc57d){const _0x41ec4c=_0x3466ad,{status:_0x27e09c,coordinator:_0x42410d}=_0x4dc57d;switch(_0x27e09c){case _0x53cc48[_0x41ec4c(0x126)]:return _0x2c4380[_0x41ec4c(0x10c)](_0x3ca318,{'coordinator':_0x42410d});case _0x53cc48[_0x41ec4c(0x16b)]:return _0x2c4380['jsx'](_0x43cead,{'coordinator':_0x42410d});case _0x53cc48['NOT_FOLLOWING']:return _0x2c4380[_0x41ec4c(0x10c)](_0x41e65b,{'coordinator':_0x42410d});case _0x53cc48[_0x41ec4c(0x14a)]:return _0x2c4380[_0x41ec4c(0x10c)](_0x343752,{});case _0x53cc48[_0x41ec4c(0xc3)]:return _0x2c4380[_0x41ec4c(0x10c)](_0x1084b9,{'coordinator':_0x42410d});default:return null;}}function _0x3ca318(_0x1750e2){const _0x99822d=_0x3466ad,{coordinator:_0x3bba32}=_0x1750e2;return _0x2c4380[_0x99822d(0x17a)](_0x2c4380['Fragment'],{'children':[_0x2c4380['jsx'](_0x99822d(0x11a),{'className':_0x99822d(0xc4),'children':_0x99822d(0x134)}),_0x2c4380[_0x99822d(0x10c)](_0xdf5c6c[_0x99822d(0x10b)],{'onClick':()=>_0x3bba32[_0x99822d(0xb7)](),'children':_0x99822d(0xc9)})]});}function _0x43cead(_0xc3db){const _0x383d1d=_0x3466ad,{coordinator:_0x54818e}=_0xc3db;return _0x2c4380[_0x383d1d(0x17a)](_0x2c4380[_0x383d1d(0xf6)],{'children':[_0x2c4380[_0x383d1d(0x10c)](_0x383d1d(0x11a),{'className':_0x383d1d(0xc4),'children':_0x383d1d(0xfc)}),_0x2c4380[_0x383d1d(0x10c)](_0xdf5c6c[_0x383d1d(0x10b)],{'onClick':()=>_0x54818e[_0x383d1d(0x113)](),'children':_0x383d1d(0x97)})]});}function _0x41e65b(_0x3f9fad){const _0x39a6c6=_0x3466ad,{coordinator:_0x3696fe}=_0x3f9fad;return _0x2c4380['jsxs'](_0x2c4380[_0x39a6c6(0xf6)],{'children':[_0x2c4380['jsx'](_0x39a6c6(0x11a),{'className':_0x39a6c6(0xc4),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2c4380[_0x39a6c6(0x10c)](_0xdf5c6c[_0x39a6c6(0x10b)],{'variant':_0x39a6c6(0xa6),'onClick':()=>_0x3696fe[_0x39a6c6(0xbc)](),'children':_0x39a6c6(0x15b)})]});}function _0x1084b9(_0x4cffb7){const _0x28dbf7=_0x3466ad,{coordinator:_0x4bfabb}=_0x4cffb7;return _0x2c4380['jsxs'](_0x2c4380[_0x28dbf7(0xf6)],{'children':[_0x2c4380['jsx'](_0x28dbf7(0x11a),{'className':_0x28dbf7(0xc4),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x2c4380[_0x28dbf7(0x10c)](_0xdf5c6c[_0x28dbf7(0x10b)],{'variant':_0x28dbf7(0x98),'onClick':()=>_0x4bfabb['stopPresenting'](),'children':_0x28dbf7(0x11e)})]});}function _0x343752(){const _0x2eddb2=_0x3466ad;return _0x2c4380['jsx'](_0x2c4380[_0x2eddb2(0xf6)],{'children':_0x2eddb2(0x136)});}var _0x1f7bed=Object[_0x3466ad(0x141)],_0x39011f=(_0x4bdb0a,_0x9bdf8a,_0x3a362e,_0x1bd7a2)=>{const _0x415b86=_0x3466ad;for(var _0x3b1910=_0x1bd7a2>0x1?void 0x0:_0x1bd7a2?_0x1f7bed(_0x9bdf8a,_0x3a362e):_0x9bdf8a,_0x3e5aca=_0x4bdb0a[_0x415b86(0x158)]-0x1,_0x16262c;_0x3e5aca>=0x0;_0x3e5aca--)(_0x16262c=_0x4bdb0a[_0x3e5aca])&&(_0x3b1910=_0x16262c(_0x3b1910)||_0x3b1910);return _0x3b1910;},_0x34abfb=(_0x56a0ab,_0x234e83)=>(_0x26592b,_0x47c770)=>_0x234e83(_0x26592b,_0x47c770,_0x56a0ab);_0x3abbfa[_0x3466ad(0x14d)]=class extends _0x4359e1['Disposable']{constructor(_0x9708e5,_0x52bb6d){const _0x43baad=_0x3466ad;super(),this[_0x43baad(0xf8)]=_0x9708e5,this['_uiPartsService']=_0x52bb6d,this[_0x43baad(0xb8)]();}['_mountLiveShare'](){const _0x1df841=_0x3466ad;this[_0x1df841(0xe9)](this[_0x1df841(0x111)][_0x1df841(0x118)](_0x2d5985[_0x1df841(0xdd)][_0x1df841(0xc8)],()=>_0x2d5985[_0x1df841(0x9f)](_0x558aee,this[_0x1df841(0xf8)])));}},_0x3abbfa[_0x3466ad(0x14d)]=_0x39011f([_0x34abfb(0x0,_0x4359e1[_0x3466ad(0x135)](_0x4359e1[_0x3466ad(0xcd)])),_0x34abfb(0x1,_0x2d5985[_0x3466ad(0x10d)])],_0x3abbfa[_0x3466ad(0x14d)]);const _0x1ad01c=_0x3466ad(0x127),_0x4f60e0={};var _0x3701a6=Object[_0x3466ad(0x141)],_0xfb79d=(_0x3b2689,_0x4691be,_0x42e970,_0x487dff)=>{const _0x5269f7=_0x3466ad;for(var _0x18e7cb=_0x487dff>0x1?void 0x0:_0x487dff?_0x3701a6(_0x4691be,_0x42e970):_0x4691be,_0xc6213b=_0x3b2689[_0x5269f7(0x158)]-0x1,_0x38bc33;_0xc6213b>=0x0;_0xc6213b--)(_0x38bc33=_0x3b2689[_0xc6213b])&&(_0x18e7cb=_0x38bc33(_0x18e7cb)||_0x18e7cb);return _0x18e7cb;},_0x517ddf=(_0xd052a3,_0x4fe070)=>(_0x48a194,_0x3e875d)=>_0x4fe070(_0x48a194,_0x3e875d,_0xd052a3);let _0x5c9df4=class extends _0x4359e1[_0x3466ad(0x10f)]{constructor(_0x10f064){const _0x9217fe=_0x3466ad;super(),this['_liveShareService']=_0x10f064,this[_0x9217fe(0xd1)]();}[_0x3466ad(0xd1)](){const _0x4ab527=_0x3466ad;[_0x16f6d9[_0x4ab527(0xfd)]['id'],_0x16f6d9[_0x4ab527(0x180)]['id'],_0x459134['SetWorksheetActiveOperation']['id']][_0x4ab527(0xc2)](_0x1dc749=>{const _0x79e481=_0x4ab527;this['disposeWithMe'](this['_liveShareService'][_0x79e481(0xaa)](_0x1dc749));});}};_0x5c9df4=_0xfb79d([_0x517ddf(0x0,_0x4359e1[_0x3466ad(0x135)](_0xb3b5ac))],_0x5c9df4);var _0x300f61=Object[_0x3466ad(0x173)],_0x8dcd59=Object[_0x3466ad(0x141)],_0xa06838=(_0x138727,_0x3d4fcc,_0x4219d6)=>_0x3d4fcc in _0x138727?_0x300f61(_0x138727,_0x3d4fcc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4219d6}):_0x138727[_0x3d4fcc]=_0x4219d6,_0x10de32=(_0x4c6528,_0x3ffbf2,_0x5ee5f4,_0x348c35)=>{const _0x549e03=_0x3466ad;for(var _0x22da0b=_0x348c35>0x1?void 0x0:_0x348c35?_0x8dcd59(_0x3ffbf2,_0x5ee5f4):_0x3ffbf2,_0x185015=_0x4c6528[_0x549e03(0x158)]-0x1,_0x4f12ed;_0x185015>=0x0;_0x185015--)(_0x4f12ed=_0x4c6528[_0x185015])&&(_0x22da0b=_0x4f12ed(_0x22da0b)||_0x22da0b);return _0x22da0b;},_0x3c1e10=(_0x547305,_0x3c2201)=>(_0x1f7e25,_0x1adb01)=>_0x3c2201(_0x1f7e25,_0x1adb01,_0x547305),_0x21b930=(_0x2ebdb4,_0xc0f6f1,_0x269fc2)=>_0xa06838(_0x2ebdb4,typeof _0xc0f6f1!=_0x3466ad(0x167)?_0xc0f6f1+'':_0xc0f6f1,_0x269fc2);const _0x12221c='UNIVER_LIVE_SHARE_PLUGIN';_0x3abbfa[_0x3466ad(0x103)]=class extends _0x4359e1[_0x3466ad(0x140)]{constructor(_0x526337=_0x4f60e0,_0xa756c,_0x20870f){const _0x442cb5=_0x3466ad;super(),this[_0x442cb5(0xd0)]=_0x526337,this['_injector']=_0xa756c,this[_0x442cb5(0xef)]=_0x20870f;const {..._0x2cefbd}=_0x4359e1['merge']({},_0x4f60e0,this[_0x442cb5(0xd0)]);this['_configService'][_0x442cb5(0x117)](_0x1ad01c,_0x2cefbd);}[_0x3466ad(0xad)](){const _0x1d073f=_0x3466ad;_0x4359e1['registerDependencies'](this[_0x1d073f(0xf8)],_0x4359e1[_0x1d073f(0x93)]([[_0xb3b5ac],[_0x3abbfa[_0x1d073f(0x102)]],[_0x5c9df4],[_0x3abbfa[_0x1d073f(0x14d)]]],this['_config'][_0x1d073f(0xfe)])),_0x4359e1[_0x1d073f(0x12b)](this['_injector'],[[_0x5c9df4]]);}[_0x3466ad(0x94)](){const _0x274d96=_0x3466ad;_0x4359e1[_0x274d96(0x12b)](this[_0x274d96(0xf8)],[[_0x3abbfa[_0x274d96(0x14d)]]]);}},_0x21b930(_0x3abbfa['UniverLiveSharePlugin'],'type',_0x4359e1[_0x3466ad(0xf7)][_0x3466ad(0xa2)]),_0x21b930(_0x3abbfa[_0x3466ad(0x103)],_0x3466ad(0xb9),_0x12221c),_0x3abbfa[_0x3466ad(0x103)]=_0x10de32([_0x4359e1[_0x3466ad(0xf3)](_0x2431fe[_0x3466ad(0x15e)]),_0x3c1e10(0x1,_0x4359e1[_0x3466ad(0x135)](_0x4359e1[_0x3466ad(0xcd)])),_0x3c1e10(0x2,_0x4359e1[_0x3466ad(0xb5)])],_0x3abbfa[_0x3466ad(0x103)]),_0x3abbfa[_0x3466ad(0x92)]=_0x558aee,_0x3abbfa[_0x3466ad(0xc1)]=_0xb3b5ac,_0x3abbfa[_0x3466ad(0x15c)]=_0x53cc48,Object[_0x3466ad(0x173)](_0x3abbfa,Symbol['toStringTag'],{'value':_0x3466ad(0x17f)});}));function _0x4047(_0x534a2d,_0x15169f){const _0x104b55=_0x104b();return _0x4047=function(_0x40473b,_0x5a4e52){_0x40473b=_0x40473b-0x91;let _0x2079cc=_0x104b55[_0x40473b];return _0x2079cc;},_0x4047(_0x534a2d,_0x15169f);}function _0x104b(){const _0x52d86d=['override','IUniverInstanceService','fill','_sharedOperations','LiveShareController','UniverLiveSharePlugin','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','evenodd','button','NOT_FOLLOWING','svg','subscribe','dispose$','Button','jsx','IUIPartsService','dispose','Disposable','stringify','_uiPartsService','params','stopFollowing','from','ICommandService','random','setConfig','registerComponent','sessionStatus$','div','_stopFollowing','idSuffix','event$','Stop\x20presenting','_commandDisposable','delete','find','2384108NPhjzq','_handleOffline','amd','attrs','IDLE','live-share.config','1034201PWCWXE','_collabSession','5nrImzV','touchDependencies','forwardRef','getStatus','get','trim','clsx','end','7429203QgqgLt','_stopPresenting','Present\x20this\x20document','Inject','You\x27are\x20offline.','throttleTime','_univerInstanceService','ONLINE','InsertSheetMutation','add','_unitID','presenting','useObservable','useState','Plugin','getOwnPropertyDescriptor','@univerjs-pro/collaboration-client','LIVESHARE_FETCH_OPERATIONS','_handleNewChangeSets','getLiveShareCoordinator','toString','_startFollowing','LiveShareCoordinator','current','OFFLINE','UniverProCollaboration','getMemberID','DesktopLiveShareController','assign','sheet','unsubscribe','unitId','@univerjs/ui','LiveShareIcon','716076ZeiBBs','string','LIVESHARE_REQUEST_HOST','currentColor','length','reverse','_reporters','Start\x20following','LiveShareStatus','SetWorksheetActiveOperation','UniverCollaborationClientPlugin','operations','0\x200\x2017\x2017','getCurrentTypeOfUnit$','entries','NEW_CHANGESETS','shouldShareOperation','data','getTypeOfUnitDisposed$','symbol','xlink:href','colorChannel1','_status$','FOLLOWING','clear','tag','_handleTerminate','createElement','includes','stopPresenting','1RMdYWR','defineProperty','_startLiveShareCoordinator','UniverDesign','_entities','idle','UniverUi','_fetchOperations','jsxs','path','executeCommand','following','getUnitId','Module','SetScrollOperation','CollaborationEvent','LiveShare','mergeOverrideWithDependencies','onRendered','_presenter','4059852TimTyx','Stop\x20following','default','children','LIVESHARE_NEW_HOST','_startPresenting','LIVESHARE_TERMINATE','toDisposable','_beIdle','connectInjector','presenter','_handleNewHost','UNIVER_UNKNOWN','@univerjs/sheets','React','complete','text','operators','UniverSheets','univerjs-icon\x20univerjs-icon-','registerSharedOperation','useEffect','_collabSessionService','onStarting','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','live-share-icon','BehaviorSubject','status$','map','http://www.w3.org/2000/svg','IConfigService','SessionStatus','tryStartPresenting','_mountLiveShare','pluginName','mask','parseProtocolChangeset','startFollowing','next','UniverProLiveShare','pipe','parse','LiveShareService','forEach','PRESENTING','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','univer-size-4','DisposableCollection','HEADER_MENU','Start','defIds','LIVESHARE_OPERATION','onCommandExecuted','Injector','UNIVER_SHEET','rxjs','_config','_init','_status','not-following','react','has','2016060DMvMJv','offline','asObservable','Dropdown','3540232OUwfZZ','_commandService','registerInitialStateReporter','BuiltInUIPart','rxjs/operators','replace','useDependency','exports','getTypeOfUnitAdded$','takeUntil','UniverSheetsUi','UniverProCollaborationClient','displayName','send','_handleOnline','disposeWithMe','set','use','defs','CollaborationSessionService','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','_configService','react/jsx-runtime','getInitialStates','getLiveShareCoordinatorSync','DependentOn','then','url(#$1','Fragment','UniverInstanceType','_injector','UniverCore','type','@univerjs-pro/collaboration','You\x27re\x20following\x20the\x20presenter','SetZoomRatioOperation'];_0x104b=function(){return _0x52d86d;};return _0x104b();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration
|
|
61
|
-
"@univerjs-pro/collaboration": "0.10.
|
|
62
|
-
"@univerjs/core": "0.10.
|
|
63
|
-
"@univerjs/design": "0.10.
|
|
64
|
-
"@univerjs/sheets": "0.10.
|
|
65
|
-
"@univerjs/engine-render": "0.10.
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/ui": "0.10.
|
|
60
|
+
"@univerjs-pro/collaboration": "0.10.13",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.10.13",
|
|
62
|
+
"@univerjs/core": "0.10.13",
|
|
63
|
+
"@univerjs/design": "0.10.13",
|
|
64
|
+
"@univerjs/sheets": "0.10.13",
|
|
65
|
+
"@univerjs/engine-render": "0.10.13",
|
|
66
|
+
"@univerjs/ui": "0.10.13",
|
|
67
|
+
"@univerjs/sheets-ui": "0.10.13"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
75
|
"vite": "^7.1.10",
|
|
76
76
|
"vitest": "^3.2.4",
|
|
77
|
-
"@univerjs/
|
|
78
|
-
"@univerjs
|
|
77
|
+
"@univerjs-infra/shared": "0.10.13",
|
|
78
|
+
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|