@univerjs-pro/live-share 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +12 -12
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x50251a=_0x4de4;function _0x46d6(){const _0x5e6708=['_commandService','getStatus','stopFollowing','_initialize','getUnitId','LiveShareStatus','10RTtkUV','9797067NEVUXg','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','PRESENTING','LiveShareController','No\x20active\x20workbook\x20found.','5778bVimDK','startColumn','1200VYDmiV','getLiveShareStatus','47790490uPwMId','getSheetId','_injector','extend','4949388VlSlFO','FRange','stopPresenting','FEnum','getActiveWorkbook','executeCommand','4589022Grtzpn','IRenderManagerService','1278220OPabZS','getId','startPresenting','LiveShareStatusEnum','startFollowing','SetWorksheetActiveOperation','34173kBNppI','IDLE','592IWskoN','FUniver','get','getActiveSheet'];_0x46d6=function(){return _0x5e6708;};return _0x46d6();}(function(_0x2dce3d,_0x3fd76e){const _0xdd308=_0x4de4,_0x1400ac=_0x2dce3d();while(!![]){try{const _0x52185c=-parseInt(_0xdd308(0x103))/0x1*(parseInt(_0xdd308(0x11b))/0x2)+-parseInt(_0xdd308(0x111))/0x3+-parseInt(_0xdd308(0x113))/0x4*(parseInt(_0xdd308(0x125))/0x5)+-parseInt(_0xdd308(0x10b))/0x6+parseInt(_0xdd308(0x126))/0x7+parseInt(_0xdd308(0x105))/0x8*(-parseInt(_0xdd308(0x119))/0x9)+parseInt(_0xdd308(0x107))/0xa;if(_0x52185c===_0x3fd76e)break;else _0x1400ac['push'](_0x1400ac['shift']());}catch(_0x2e717f){_0x1400ac['push'](_0x1400ac['shift']());}}}(_0x46d6,0xdcf96));function _0x4de4(_0x50d085,_0x915a81){const _0x46d6eb=_0x46d6();return _0x4de4=function(_0x4de4f0,_0x5679a1){_0x4de4f0=_0x4de4f0-0xff;let _0x244821=_0x46d6eb[_0x4de4f0];return _0x244821;},_0x4de4(_0x50d085,_0x915a81);}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[_0x50251a(0x10c)]{[_0x50251a(0x122)](_0x518b2d,_0x393f7e,_0x5903a8,_0x54ac02,_0x42a943){const _0x167845=_0x50251a,_0x516f16=_0x518b2d[_0x167845(0x11d)](n[_0x167845(0x101)]),_0x107e6b=_0x518b2d[_0x167845(0x11d)](g[_0x167845(0x112)]),_0x50f371=_0x393f7e[_0x167845(0x123)](),_0xeadb92=_0x393f7e[_0x167845(0x11e)](),_0x161884=_0x516f16[_0x167845(0x127)](_0x50f371);(_0x161884==null?void 0x0:_0x161884[_0x167845(0x120)]())!==n['LiveShareStatus'][_0x167845(0x100)]||(_0x5903a8[_0x167845(0x108)]()!==_0xeadb92['getSheetId']()&&this[_0x167845(0x11f)][_0x167845(0x110)](u[_0x167845(0x118)]['id'],{'unitId':_0x50f371,'subUnitId':_0x5903a8[_0x167845(0x108)]()}),!_0x107e6b['getRenderById'](_0x50f371))||_0x42a943['syncExecuteCommand'](f['SetScrollOperation']['id'],{'unitId':_0x393f7e[_0x167845(0x123)](),'sheetId':_0x5903a8[_0x167845(0x108)](),'sheetViewStartRow':_0x54ac02['startRow'],'sheetViewStartColumn':_0x54ac02[_0x167845(0x104)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x50251a(0x10c)]['extend'](w);class C extends a[_0x50251a(0x11c)]{[_0x50251a(0x106)](){const _0x407cd2=_0x50251a;var _0x26b6a5,_0x2ced02;const _0x2a4358=this['_injector'][_0x407cd2(0x11d)](n[_0x407cd2(0x101)]),_0x4f8010=(_0x26b6a5=this[_0x407cd2(0x10f)]())==null?void 0x0:_0x26b6a5['getId']();if(!_0x4f8010)throw new Error(_0x407cd2(0x102));const _0x10f438=_0x2a4358[_0x407cd2(0x127)](_0x4f8010);return(_0x2ced02=_0x10f438==null?void 0x0:_0x10f438['getStatus']())!=null?_0x2ced02:n[_0x407cd2(0x124)][_0x407cd2(0x11a)];}[_0x50251a(0x117)](){const _0x410a55=_0x50251a;var _0x353313;const _0x4ae6c4=this[_0x410a55(0x109)][_0x410a55(0x11d)](n[_0x410a55(0x101)]),_0x52fd37=(_0x353313=this['getActiveWorkbook']())==null?void 0x0:_0x353313[_0x410a55(0x114)]();if(!_0x52fd37)throw new Error(_0x410a55(0x102));const _0x315fdf=_0x4ae6c4[_0x410a55(0x127)](_0x52fd37);if(!_0x315fdf)throw new Error(_0x410a55(0xff));_0x315fdf['startFollowing']();}[_0x50251a(0x121)](){const _0x1c664d=_0x50251a;var _0x32263b;const _0x160bf2=this['_injector'][_0x1c664d(0x11d)](n[_0x1c664d(0x101)]),_0x2ce06e=(_0x32263b=this['getActiveWorkbook']())==null?void 0x0:_0x32263b[_0x1c664d(0x114)]();if(!_0x2ce06e)throw new Error(_0x1c664d(0x102));const _0x159b40=_0x160bf2[_0x1c664d(0x127)](_0x2ce06e);if(!_0x159b40)throw new Error(_0x1c664d(0xff));_0x159b40[_0x1c664d(0x121)]();}[_0x50251a(0x115)](){const _0x5dc436=_0x50251a;var _0x292f84;const _0x2bd73a=this[_0x5dc436(0x109)][_0x5dc436(0x11d)](n[_0x5dc436(0x101)]),_0x21d532=(_0x292f84=this['getActiveWorkbook']())==null?void 0x0:_0x292f84['getId']();if(!_0x21d532)throw new Error(_0x5dc436(0x102));const _0x1bc645=_0x2bd73a['getLiveShareCoordinatorSync'](_0x21d532);if(!_0x1bc645)throw new Error(_0x5dc436(0xff));_0x1bc645['tryStartPresenting']();}[_0x50251a(0x10d)](){const _0x50877f=_0x50251a;var _0x1f1895;const _0x18cbf6=this['_injector'][_0x50877f(0x11d)](n[_0x50877f(0x101)]),_0x40b3f6=(_0x1f1895=this['getActiveWorkbook']())==null?void 0x0:_0x1f1895['getId']();if(!_0x40b3f6)throw new Error(_0x50877f(0x102));const _0x1c7e0b=_0x18cbf6[_0x50877f(0x127)](_0x40b3f6);if(!_0x1c7e0b)throw new Error(_0x50877f(0xff));_0x1c7e0b[_0x50877f(0x10d)]();}}a[_0x50251a(0x11c)][_0x50251a(0x10a)](C);class L extends a[_0x50251a(0x10e)]{get[_0x50251a(0x116)](){const _0x534dde=_0x50251a;return n[_0x534dde(0x124)];}}a[_0x50251a(0x10e)][_0x50251a(0x10a)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x122e74=_0x44f0;(function(_0x7ace5,_0x544a33){const _0x10507f=_0x44f0,_0x253df3=_0x7ace5();while(!![]){try{const _0x418cba=parseInt(_0x10507f(0x1ad))/0x1+-parseInt(_0x10507f(0x22e))/0x2+parseInt(_0x10507f(0x18b))/0x3*(parseInt(_0x10507f(0x21c))/0x4)+parseInt(_0x10507f(0x1d9))/0x5+parseInt(_0x10507f(0x1d1))/0x6*(-parseInt(_0x10507f(0x220))/0x7)+-parseInt(_0x10507f(0x1b6))/0x8+-parseInt(_0x10507f(0x1b1))/0x9*(parseInt(_0x10507f(0x1bb))/0xa);if(_0x418cba===_0x544a33)break;else _0x253df3['push'](_0x253df3['shift']());}catch(_0x4c8634){_0x253df3['push'](_0x253df3['shift']());}}}(_0x106e,0xbaa57));var T=Object[_0x122e74(0x231)],U=(_0x5c18df,_0xa66b31,_0x443d8b)=>_0xa66b31 in _0x5c18df?T(_0x5c18df,_0xa66b31,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x443d8b}):_0x5c18df[_0xa66b31]=_0x443d8b,_=(_0x527680,_0x37e46d,_0x3e5f7c)=>U(_0x527680,typeof _0x37e46d!=_0x122e74(0x193)?_0x37e46d+'':_0x37e46d,_0x3e5f7c);Object[_0x122e74(0x231)](exports,Symbol[_0x122e74(0x1eb)],{'value':_0x122e74(0x1d0)});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:_0x5c9efb,..._0x1a14ba}){const _0x4c818=_0x122e74,{icon:_0x5b444c,id:_0x2ee21a,className:_0x1de546,extend:_0x405e43,..._0x11bedd}=_0x1a14ba,_0x2ba731=('univerjs-icon\x20univerjs-icon-'+_0x2ee21a+'\x20'+(_0x1de546||''))[_0x4c818(0x1a5)](),_0x57669f=v[_0x4c818(0x19d)]('_'+H());return j(_0x5b444c,''+_0x2ee21a,{'defIds':_0x5b444c[_0x4c818(0x204)],'idSuffix':_0x57669f[_0x4c818(0x226)]},{'ref':_0x5c9efb,'className':_0x2ba731,..._0x11bedd},_0x405e43);}function j(_0x2adf4d,_0x441ec0,_0xe723c0,_0x357a19,_0x306645){const _0x23a015=_0x122e74;return v[_0x23a015(0x20b)](_0x2adf4d[_0x23a015(0x1e7)],{'key':_0x441ec0,...y(_0x2adf4d,_0xe723c0,_0x306645),..._0x357a19},(F(_0x2adf4d,_0xe723c0)[_0x23a015(0x233)]||[])['map']((_0x59e953,_0x4d4c0d)=>j(_0x59e953,_0x441ec0+'-'+_0x2adf4d[_0x23a015(0x1e7)]+'-'+_0x4d4c0d,_0xe723c0,void 0x0,_0x306645)));}function y(_0x3efc15,_0x74d141,_0x454468){const _0x3813a3=_0x122e74,_0x208f4f={..._0x3efc15[_0x3813a3(0x235)]};_0x454468!=null&&_0x454468[_0x3813a3(0x16e)]&&_0x208f4f['fill']===_0x3813a3(0x16e)&&(_0x208f4f[_0x3813a3(0x198)]=_0x454468[_0x3813a3(0x16e)]),_0x3efc15[_0x3813a3(0x1e7)]===_0x3813a3(0x1b5)&&_0x208f4f['id']&&(_0x208f4f['id']=_0x208f4f['id']+_0x74d141['idSuffix']),Object[_0x3813a3(0x1e3)](_0x208f4f)[_0x3813a3(0x1d3)](([_0x2a395b,_0x435670])=>{const _0x44d61e=_0x3813a3;_0x2a395b===_0x44d61e(0x1b5)&&typeof _0x435670==_0x44d61e(0x213)&&(_0x208f4f[_0x2a395b]=_0x435670[_0x44d61e(0x187)](/url\(#(.*)\)/,_0x44d61e(0x1a8)+_0x74d141[_0x44d61e(0x23f)]+')'));});const {defIds:_0x241c48}=_0x74d141;return!_0x241c48||_0x241c48['length']===0x0||(_0x3efc15[_0x3813a3(0x1e7)]===_0x3813a3(0x1cb)&&_0x208f4f[_0x3813a3(0x20d)]&&(_0x208f4f[_0x3813a3(0x20d)]=_0x208f4f[_0x3813a3(0x20d)]+_0x74d141['idSuffix']),Object[_0x3813a3(0x1e3)](_0x208f4f)[_0x3813a3(0x1d3)](([_0x5d0bbb,_0x24c561])=>{const _0x42b3e3=_0x3813a3;typeof _0x24c561==_0x42b3e3(0x213)&&(_0x208f4f[_0x5d0bbb]=_0x24c561[_0x42b3e3(0x187)](/url\(#(.*)\)/,_0x42b3e3(0x1a8)+_0x74d141['idSuffix']+')'));})),_0x208f4f;}function F(_0xc14d,_0xd3257c){const _0x48ad45=_0x122e74;var _0x21ebdc;const {defIds:_0x4d8c1b}=_0xd3257c;return!_0x4d8c1b||_0x4d8c1b[_0x48ad45(0x1c1)]===0x0?_0xc14d:_0xc14d[_0x48ad45(0x1e7)]===_0x48ad45(0x182)&&((_0x21ebdc=_0xc14d['children'])!=null&&_0x21ebdc[_0x48ad45(0x1c1)])?{..._0xc14d,'children':_0xc14d[_0x48ad45(0x233)][_0x48ad45(0x1ac)](_0xd92622=>typeof _0xd92622[_0x48ad45(0x235)]['id']==_0x48ad45(0x213)&&_0x4d8c1b&&_0x4d8c1b[_0x48ad45(0x19e)](_0xd92622[_0x48ad45(0x235)]['id'])?{..._0xd92622,'attrs':{..._0xd92622['attrs'],'id':_0xd92622[_0x48ad45(0x235)]['id']+_0xd3257c['idSuffix']}}:_0xd92622)}:_0xc14d;}function H(){const _0x4b880a=_0x122e74;return Math['random']()[_0x4b880a(0x199)](0x24)[_0x4b880a(0x23e)](0x2,0x8);}x[_0x122e74(0x1cc)]=_0x122e74(0x1b2);const V={'tag':_0x122e74(0x1e2),'attrs':{'xmlns':_0x122e74(0x1e9),'fill':_0x122e74(0x222),'viewBox':_0x122e74(0x1be),'width':_0x122e74(0x242),'height':_0x122e74(0x242)},'children':[{'tag':_0x122e74(0x21d),'attrs':{'fill':'currentColor','d':_0x122e74(0x1ce)}},{'tag':'path','attrs':{'fill':_0x122e74(0x17f),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x122e74(0x1cf),'clipRule':'evenodd'}}]},R=v[_0x122e74(0x1fe)](function(_0x24a256,_0x2cdf1e){const _0x2f8c99=_0x122e74;return v['createElement'](x,Object[_0x2f8c99(0x1b7)]({},_0x24a256,{'id':'live-share-icon','ref':_0x2cdf1e,'icon':V}));});R['displayName']=_0x122e74(0x1e6);class E extends o['Disposable']{constructor(){const _0x1d1105=_0x122e74;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x1d1105(0x17d),new Set());}['registerSharedOperation'](_0x26c029){const _0xa41287=_0x122e74;return this[_0xa41287(0x216)]['add'](_0x26c029),o[_0xa41287(0x18e)](()=>this[_0xa41287(0x216)][_0xa41287(0x1f3)](_0x26c029));}[_0x122e74(0x1fd)](_0x5401b7){const _0x31e29c=_0x122e74;return this[_0x31e29c(0x17d)][_0x31e29c(0x240)](_0x5401b7),o[_0x31e29c(0x18e)](()=>this[_0x31e29c(0x17d)][_0x31e29c(0x1f3)](_0x5401b7));}[_0x122e74(0x1ea)](_0x27cdde){return this['_sharedOperations']['has'](_0x27cdde);}[_0x122e74(0x18a)](_0x4fa4a4){const _0x12a179=_0x122e74;return Array['from'](this['_reporters'])[_0x12a179(0x1ac)](_0x3318a0=>_0x3318a0(_0x4fa4a4));}}var M=Object[_0x122e74(0x1df)],P=(_0x25be18,_0x5f28a9,_0x4e7836,_0x38339d)=>{const _0x3ca69e=_0x122e74;for(var _0x2957b3=_0x38339d>0x1?void 0x0:_0x38339d?M(_0x5f28a9,_0x4e7836):_0x5f28a9,_0x1fa5ca=_0x25be18[_0x3ca69e(0x1c1)]-0x1,_0x3bb9d5;_0x1fa5ca>=0x0;_0x1fa5ca--)(_0x3bb9d5=_0x25be18[_0x1fa5ca])&&(_0x2957b3=_0x3bb9d5(_0x2957b3)||_0x2957b3);return _0x2957b3;},S=(_0x2df500,_0x1fc335)=>(_0x5e0d73,_0xdf4ddf)=>_0x1fc335(_0x5e0d73,_0xdf4ddf,_0x2df500);exports['LiveShareController']=class extends o[_0x122e74(0x19f)]{constructor(_0xd23a27,_0x1babee,_0x858d06){const _0x519aa1=_0x122e74;super(),_(this,_0x519aa1(0x17b),new Map()),(this['_univerInstanceService']=_0xd23a27,this['_injector']=_0x1babee,this[_0x519aa1(0x1ab)]=_0x858d06,this[_0x519aa1(0x1dd)]());}async[_0x122e74(0x245)](_0xa0dfac){const _0x265e9a=_0x122e74;return this[_0x265e9a(0x17b)][_0x265e9a(0x20e)](_0xa0dfac)||await this[_0x265e9a(0x17e)](_0xa0dfac),this[_0x265e9a(0x17b)][_0x265e9a(0x179)](_0xa0dfac);}[_0x122e74(0x21a)](_0x180bf4){const _0xea758d=_0x122e74;var _0x29692f;return(_0x29692f=this[_0xea758d(0x17b)][_0xea758d(0x179)](_0x180bf4))!=null?_0x29692f:null;}[_0x122e74(0x1dd)](){const _0x1ee498=_0x122e74;this[_0x1ee498(0x1bd)][_0x1ee498(0x170)](o[_0x1ee498(0x195)][_0x1ee498(0x230)])[_0x1ee498(0x1fa)](I[_0x1ee498(0x21f)](this['dispose$']))[_0x1ee498(0x223)](async _0x324128=>{const _0x1a6c49=_0x1ee498,_0x4ff8e9=_0x324128[_0x1a6c49(0x1e0)]();this['_entities']['has'](_0x4ff8e9)||this[_0x1a6c49(0x17e)](_0x4ff8e9);}),this[_0x1ee498(0x1bd)]['getTypeOfUnitDisposed$'](o[_0x1ee498(0x195)][_0x1ee498(0x230)])[_0x1ee498(0x1fa)](I[_0x1ee498(0x21f)](this[_0x1ee498(0x1da)]))[_0x1ee498(0x223)](_0x2a39e4=>{const _0x176427=_0x1ee498,_0xdd54a1=_0x2a39e4[_0x176427(0x1e0)](),_0x4018c3=this['_entities']['get'](_0xdd54a1);_0x4018c3==null||_0x4018c3[_0x176427(0x1bf)]();});}async[_0x122e74(0x17e)](_0x3cec23){const _0x92a80e=_0x122e74,_0x593c13=await this[_0x92a80e(0x1ab)]['requireSession'](_0x3cec23),_0x498e44=this[_0x92a80e(0x1c2)][_0x92a80e(0x194)](exports[_0x92a80e(0x1c3)],_0x3cec23,_0x593c13);return _0x498e44['init'](),this[_0x92a80e(0x17b)][_0x92a80e(0x1ca)](_0x3cec23,_0x498e44),_0x498e44;}},exports[_0x122e74(0x1fc)]=P([S(0x0,o[_0x122e74(0x212)]),S(0x1,o['Inject'](o[_0x122e74(0x225)])),S(0x2,o['Inject'](b[_0x122e74(0x1a7)]))],exports[_0x122e74(0x1fc)]);var u=(_0xdec4f7=>(_0xdec4f7[_0x122e74(0x196)]=_0x122e74(0x206),_0xdec4f7[_0x122e74(0x224)]='idle',_0xdec4f7[_0x122e74(0x22a)]=_0x122e74(0x1f5),_0xdec4f7[_0x122e74(0x237)]=_0x122e74(0x1af),_0xdec4f7[_0x122e74(0x178)]=_0x122e74(0x192),_0xdec4f7))(u||{});const k=_0x122e74(0x20a),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x122e74(0x19f)]{constructor(_0x4df742,_0x158e05,_0x3a6141,_0x311d96,_0x31393b){const _0x591ed6=_0x122e74;super(),_(this,_0x591ed6(0x23c),new O['BehaviorSubject']('idle')),_(this,'status$',this[_0x591ed6(0x23c)][_0x591ed6(0x1ed)]()),_(this,_0x591ed6(0x1dd),!0x1),_(this,'_commandDisposable',null),_(this,'_presenter',null),(this[_0x591ed6(0x20f)]=_0x4df742,this[_0x591ed6(0x239)]=_0x158e05,this[_0x591ed6(0x1e5)]=_0x3a6141,this['_liveShareService']=_0x311d96,this[_0x591ed6(0x176)]=_0x31393b);}get[_0x122e74(0x183)](){const _0x2c4b58=_0x122e74;return this[_0x2c4b58(0x23c)][_0x2c4b58(0x1e8)]();}[_0x122e74(0x1bf)](){const _0x243b0f=_0x122e74;var _0x1fe336;(_0x1fe336=this[_0x243b0f(0x1dc)])==null||_0x1fe336['dispose'](),this[_0x243b0f(0x23c)][_0x243b0f(0x1e1)](_0x243b0f(0x207)),this[_0x243b0f(0x23c)][_0x243b0f(0x228)]();}[_0x122e74(0x1c4)](){return this['_status'];}['init'](){const _0x93d228=_0x122e74;this[_0x93d228(0x1dd)]||(this[_0x93d228(0x1dd)]=!0x0,this[_0x93d228(0x239)][_0x93d228(0x188)][_0x93d228(0x1fa)](I[_0x93d228(0x21f)](this['dispose$']))[_0x93d228(0x223)](_0x581132=>{const _0xd67479=_0x93d228;switch(_0x581132){case b[_0xd67479(0x22f)][_0xd67479(0x196)]:this[_0xd67479(0x1bc)]();break;case b[_0xd67479(0x22f)][_0xd67479(0x1ee)]:this[_0xd67479(0x19b)]();break;}}),this[_0x93d228(0x239)]['event$']['pipe'](I[_0x93d228(0x21f)](this['dispose$']))[_0x93d228(0x223)](_0x159e7c=>{const _0x1dc04e=_0x93d228,{eventID:_0x24c95b}=_0x159e7c;switch(_0x24c95b){case d['CollaborationEvent'][_0x1dc04e(0x203)]:this[_0x1dc04e(0x1d6)](_0x159e7c);break;case d[_0x1dc04e(0x1a3)][_0x1dc04e(0x23b)]:this[_0x1dc04e(0x177)](_0x159e7c);break;case d['CollaborationEvent'][_0x1dc04e(0x1d4)]:this[_0x1dc04e(0x1ba)]();break;case d[_0x1dc04e(0x1a3)][_0x1dc04e(0x200)]:this[_0x1dc04e(0x19a)](_0x159e7c);break;}}));}[_0x122e74(0x208)](){const _0x277a3e=_0x122e74;this[_0x277a3e(0x239)][_0x277a3e(0x191)]({'eventID':d['CollaborationEvent'][_0x277a3e(0x1ff)],'data':{'unitID':this[_0x277a3e(0x20f)],'userID':this[_0x277a3e(0x239)]['getMemberID']()}},this[_0x277a3e(0x20f)]);}[_0x122e74(0x214)](){const _0x190870=_0x122e74;this[_0x190870(0x183)]==='presenting'&&(this[_0x190870(0x23c)][_0x190870(0x1e1)](_0x190870(0x207)),this[_0x190870(0x239)][_0x190870(0x191)]({'eventID':d[_0x190870(0x1a3)][_0x190870(0x1d4)],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){const _0x2ea448=_0x122e74;this[_0x2ea448(0x183)]===_0x2ea448(0x1af)&&(this['_status$'][_0x2ea448(0x1e1)]('following'),this[_0x2ea448(0x185)]());}[_0x122e74(0x1c0)](){const _0x488982=_0x122e74;this[_0x488982(0x183)]==='following'&&this[_0x488982(0x1aa)]();}[_0x122e74(0x1d6)](_0x28c0ca){const _0x35a04f=_0x122e74,{presenter:_0x1ff63c}=_0x28c0ca[_0x35a04f(0x189)],_0x3b8249=this[_0x35a04f(0x239)][_0x35a04f(0x211)]();this[_0x35a04f(0x171)]=_0x1ff63c,_0x1ff63c===_0x3b8249?(this[_0x35a04f(0x1aa)](),this[_0x35a04f(0x1a4)]()):this[_0x35a04f(0x183)]!==_0x35a04f(0x1af)&&(this[_0x35a04f(0x1e4)](),this[_0x35a04f(0x185)]());}[_0x122e74(0x1ec)](){const _0x4c76f4=_0x122e74,_0x18c2ff={'eventID':d[_0x4c76f4(0x1a3)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x4c76f4(0x239)][_0x4c76f4(0x191)](_0x18c2ff,this['_unitID']);}[_0x122e74(0x1ba)](){const _0x3d5139=_0x122e74;this['_presenter']=null,this[_0x3d5139(0x183)]!==_0x3d5139(0x192)&&this[_0x3d5139(0x1a0)]();}[_0x122e74(0x19a)](_0x4a9c1f){const _0x5e95ca=_0x122e74;if(this[_0x5e95ca(0x183)]===_0x5e95ca(0x1f5)&&this[_0x5e95ca(0x171)]===_0x4a9c1f[_0x5e95ca(0x189)]['memberID']){const _0x26be62=d[_0x5e95ca(0x241)](_0x4a9c1f[_0x5e95ca(0x189)])[_0x5e95ca(0x238)]['reverse']()[_0x5e95ca(0x17c)](_0x49348b=>_0x49348b['id']===C[_0x5e95ca(0x246)]['id']);if(_0x26be62){const _0x593e90=_0x26be62['params'][_0x5e95ca(0x1f6)],_0x294cdf=_0x26be62[_0x5e95ca(0x23a)][_0x5e95ca(0x1d2)]['id'];setTimeout(()=>{const _0x1297ea=_0x5e95ca;this[_0x1297ea(0x176)]['executeCommand'](C[_0x1297ea(0x180)]['id'],{'unitId':_0x593e90,'subUnitId':_0x294cdf},{'fromCollab':!0x0});});}}}[_0x122e74(0x1a4)](){const _0x17eb8e=_0x122e74;this[_0x17eb8e(0x23c)][_0x17eb8e(0x1e1)](_0x17eb8e(0x192));const _0x1d319b=new Map(),_0x488d70=this[_0x17eb8e(0x1dc)]=new o[(_0x17eb8e(0x217))]();_0x488d70['add'](o['toDisposable'](()=>{const _0x298eb8=_0x17eb8e;_0x1d319b[_0x298eb8(0x1d3)](_0x45cedb=>_0x45cedb[_0x298eb8(0x228)]()),_0x1d319b[_0x298eb8(0x186)]();})),_0x488d70[_0x17eb8e(0x240)](this['_commandService'][_0x17eb8e(0x236)](_0x208991=>{const _0x2b577c=_0x17eb8e;var _0x147a06;if(_0x208991[_0x2b577c(0x16c)]!==o['CommandType'][_0x2b577c(0x205)]||!this[_0x2b577c(0x1b4)][_0x2b577c(0x1ea)](_0x208991['id']))return;const {id:_0x2adf96}=_0x208991;let _0x16d372;_0x1d319b['has'](_0x2adf96)?_0x16d372=_0x1d319b[_0x2b577c(0x179)](_0x2adf96):(_0x16d372=new O[(_0x2b577c(0x1b0))](),_0x1d319b[_0x2b577c(0x1ca)](_0x2adf96,_0x16d372),_0x16d372['pipe'](I[_0x2b577c(0x1b9)]((_0x147a06=this[_0x2b577c(0x1e5)][_0x2b577c(0x215)](k))!=null?_0x147a06:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2b577c(0x223)](_0x1ea83e=>{const _0x57170e=_0x2b577c;this[_0x57170e(0x239)]['send']({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x57170e(0x20f)],'operations':{[_0x1ea83e['id']]:{'id':_0x1ea83e['id'],'params':JSON['stringify'](_0x1ea83e['params'])}}}},this[_0x57170e(0x20f)]);})),_0x16d372[_0x2b577c(0x1e1)](_0x208991);})),this['_liveShareService'][_0x17eb8e(0x18a)](this[_0x17eb8e(0x20f)])[_0x17eb8e(0x1d3)](_0x351d72=>this['_collabSession'][_0x17eb8e(0x191)]({'eventID':d[_0x17eb8e(0x1a3)][_0x17eb8e(0x23b)],'data':{'unitID':this['_unitID'],'operations':{[_0x351d72['id']]:{'id':_0x351d72['id'],'params':JSON[_0x17eb8e(0x18c)](_0x351d72[_0x17eb8e(0x23a)])}}}},this[_0x17eb8e(0x20f)]));}['_stopPresenting'](){const _0x16d78a=_0x122e74;var _0x2298fe;this['_status$']['next'](_0x16d78a(0x207)),(_0x2298fe=this['_commandDisposable'])==null||_0x2298fe[_0x16d78a(0x1bf)](),this['_commandDisposable']=null;}[_0x122e74(0x185)](){const _0x57cb=_0x122e74;var _0x42f537;(_0x42f537=this[_0x57cb(0x1dc)])==null||_0x42f537['dispose'](),this['_status$'][_0x57cb(0x1e1)](_0x57cb(0x1f5));}[_0x122e74(0x1a0)](){const _0xd73568=_0x122e74;var _0x12833a;this[_0xd73568(0x23c)][_0xd73568(0x1e1)]('idle'),(_0x12833a=this[_0xd73568(0x1dc)])==null||_0x12833a[_0xd73568(0x1bf)](),this[_0xd73568(0x1dc)]=null;}[_0x122e74(0x1aa)](){const _0x15d8a1=_0x122e74;var _0x4333a6;this['_status$'][_0x15d8a1(0x1e1)](_0x15d8a1(0x1af)),(_0x4333a6=this[_0x15d8a1(0x1dc)])==null||_0x4333a6[_0x15d8a1(0x1bf)]();}[_0x122e74(0x177)](_0x3cd43d){const _0x28674e=_0x122e74;if([_0x28674e(0x192),_0x28674e(0x1af),_0x28674e(0x206)]['includes'](this[_0x28674e(0x183)])||!_0x3cd43d[_0x28674e(0x189)]['presenter']||_0x3cd43d[_0x28674e(0x189)][_0x28674e(0x18f)]===this[_0x28674e(0x239)]['getMemberID']())return;this[_0x28674e(0x183)]===_0x28674e(0x207)&&this[_0x28674e(0x185)]();const _0x4a7b80=_0x3cd43d[_0x28674e(0x189)][_0x28674e(0x1f4)];Object[_0x28674e(0x1a1)](_0x4a7b80)[_0x28674e(0x1d3)](_0x4b42b9=>{const _0x46baf1=_0x28674e;this[_0x46baf1(0x176)][_0x46baf1(0x1f2)](_0x4b42b9['id'],_0x4b42b9[_0x46baf1(0x23a)]?JSON[_0x46baf1(0x243)](_0x4b42b9[_0x46baf1(0x23a)]):null,{'fromCollab':!0x0});});}[_0x122e74(0x1bc)](){const _0x53ed8b=_0x122e74;var _0x1d58cd;this['_status$']['next'](_0x53ed8b(0x206)),(_0x1d58cd=this[_0x53ed8b(0x1dc)])==null||_0x1d58cd[_0x53ed8b(0x1bf)]();}[_0x122e74(0x19b)](){const _0x25e4e9=_0x122e74;this[_0x25e4e9(0x23c)][_0x25e4e9(0x1e1)](_0x25e4e9(0x207)),this[_0x25e4e9(0x1ec)]();}},exports[_0x122e74(0x1c3)]=P([S(0x2,o['IConfigService']),S(0x3,o[_0x122e74(0x1c6)](E)),S(0x4,o[_0x122e74(0x1cd)])],exports['LiveShareCoordinator']);function $(){const _0x2677df=_0x122e74,_0x13a57d=p[_0x2677df(0x1d5)](exports['LiveShareController']),_0x278865=p[_0x2677df(0x1d5)](o[_0x2677df(0x212)]),_0x3bc93e=p[_0x2677df(0x20c)](()=>_0x278865[_0x2677df(0x1de)](o[_0x2677df(0x195)][_0x2677df(0x230)]),void 0x0,!0x1,[]),[_0x2b5af9,_0x10f314]=v[_0x2677df(0x22d)](null),[_0x51787a,_0x32744c]=v['useState'](u['IDLE']),_0x27f137=v[_0x2677df(0x19d)](null);return v[_0x2677df(0x190)](()=>(_0x3bc93e&&_0x13a57d['getLiveShareCoordinator'](_0x3bc93e[_0x2677df(0x1e0)]())['then'](_0x116896=>{const _0x13cbb5=_0x2677df;_0x10f314(_0x116896),_0x27f137[_0x13cbb5(0x226)]=_0x116896[_0x13cbb5(0x197)]['subscribe'](_0x1d13c3=>{_0x32744c(_0x1d13c3);});}),()=>{const _0x15af7d=_0x2677df;var _0x41add9;(_0x41add9=_0x27f137[_0x15af7d(0x226)])==null||_0x41add9[_0x15af7d(0x172)](),_0x27f137[_0x15af7d(0x226)]=null;}),[_0x3bc93e,_0x13a57d]),_0x2b5af9?l[_0x2677df(0x22b)](f[_0x2677df(0x16d)],{'align':_0x2677df(0x1a6),'disabled':_0x51787a===u[_0x2677df(0x196)],'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[_0x2677df(0x22b)](W,{'status':_0x51787a,'coordinator':_0x2b5af9}),'children':l['jsx']('button',{'className':f[_0x2677df(0x218)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x51787a===u[_0x2677df(0x196)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51787a!==u[_0x2677df(0x196)]}),'type':_0x2677df(0x227),'children':l[_0x2677df(0x22b)](R,{'className':_0x2677df(0x22c)})})}):null;}function W(_0x48132c){const _0x40eca6=_0x122e74,{status:_0x5e018a,coordinator:_0x2a1b9a}=_0x48132c;switch(_0x5e018a){case u[_0x40eca6(0x224)]:return l[_0x40eca6(0x22b)](G,{'coordinator':_0x2a1b9a});case u[_0x40eca6(0x22a)]:return l['jsx'](B,{'coordinator':_0x2a1b9a});case u[_0x40eca6(0x237)]:return l[_0x40eca6(0x22b)](Y,{'coordinator':_0x2a1b9a});case u[_0x40eca6(0x196)]:return l['jsx'](J,{});case u[_0x40eca6(0x178)]:return l[_0x40eca6(0x22b)](Z,{'coordinator':_0x2a1b9a});default:return null;}}function G(_0x4df2f1){const _0x17fe08=_0x122e74,{coordinator:_0x35d671}=_0x4df2f1;return l['jsxs'](l[_0x17fe08(0x232)],{'children':[l[_0x17fe08(0x22b)](_0x17fe08(0x1c5),{'className':_0x17fe08(0x221),'children':_0x17fe08(0x1c9)}),l[_0x17fe08(0x22b)](f[_0x17fe08(0x1a2)],{'onClick':()=>_0x35d671[_0x17fe08(0x208)](),'children':_0x17fe08(0x1f1)})]});}function B(_0x431a45){const _0x213ce0=_0x122e74,{coordinator:_0x6cb72d}=_0x431a45;return l[_0x213ce0(0x1fb)](l['Fragment'],{'children':[l[_0x213ce0(0x22b)](_0x213ce0(0x1c5),{'className':_0x213ce0(0x221),'children':_0x213ce0(0x1db)}),l[_0x213ce0(0x22b)](f['Button'],{'onClick':()=>_0x6cb72d[_0x213ce0(0x1c0)](),'children':_0x213ce0(0x19c)})]});}function Y(_0x26d9bb){const _0x5759ae=_0x122e74,{coordinator:_0x195fde}=_0x26d9bb;return l['jsxs'](l[_0x5759ae(0x232)],{'children':[l[_0x5759ae(0x22b)](_0x5759ae(0x1c5),{'className':_0x5759ae(0x221),'children':_0x5759ae(0x1f9)}),l[_0x5759ae(0x22b)](f[_0x5759ae(0x1a2)],{'variant':_0x5759ae(0x1d7),'onClick':()=>_0x195fde[_0x5759ae(0x1b8)](),'children':_0x5759ae(0x202)})]});}function Z(_0x19e073){const _0x223dce=_0x122e74,{coordinator:_0x3c65e0}=_0x19e073;return l[_0x223dce(0x1fb)](l[_0x223dce(0x232)],{'children':[l['jsx'](_0x223dce(0x1c5),{'className':_0x223dce(0x221),'children':_0x223dce(0x23d)}),l['jsx'](f[_0x223dce(0x1a2)],{'variant':_0x223dce(0x1c7),'onClick':()=>_0x3c65e0[_0x223dce(0x214)](),'children':_0x223dce(0x1a9)})]});}function J(){const _0x4ee7cc=_0x122e74;return l[_0x4ee7cc(0x22b)](l[_0x4ee7cc(0x232)],{'children':_0x4ee7cc(0x201)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x58c34c,_0x38a7fb,_0x14bf46,_0xd6b8e9)=>{const _0x332141=_0x122e74;for(var _0x5ed52a=_0xd6b8e9>0x1?void 0x0:_0xd6b8e9?K(_0x38a7fb,_0x14bf46):_0x38a7fb,_0x247afd=_0x58c34c[_0x332141(0x1c1)]-0x1,_0x12e00a;_0x247afd>=0x0;_0x247afd--)(_0x12e00a=_0x58c34c[_0x247afd])&&(_0x5ed52a=_0x12e00a(_0x5ed52a)||_0x5ed52a);return _0x5ed52a;},L=(_0x5ee9c1,_0x46ef69)=>(_0x55fe48,_0x3eabce)=>_0x46ef69(_0x55fe48,_0x3eabce,_0x5ee9c1);exports[_0x122e74(0x1c8)]=class extends o['Disposable']{constructor(_0x523004,_0x8b1247){const _0x328550=_0x122e74;super(),this[_0x328550(0x1c2)]=_0x523004,this[_0x328550(0x184)]=_0x8b1247,this[_0x328550(0x16f)]();}[_0x122e74(0x16f)](){const _0xcc8a5=_0x122e74;this['disposeWithMe'](this[_0xcc8a5(0x184)][_0xcc8a5(0x173)](p[_0xcc8a5(0x17a)]['HEADER_MENU'],()=>p[_0xcc8a5(0x16b)]($,this[_0xcc8a5(0x1c2)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x122e74(0x1c6)](o[_0x122e74(0x225)])),L(0x1,p[_0x122e74(0x234)])],exports[_0x122e74(0x1c8)]);const Q=_0x122e74(0x1ef),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x2d6b3f,_0x5bfbbc,_0x27ba95,_0x497141)=>{for(var _0x584dd4=_0x497141>0x1?void 0x0:_0x497141?X(_0x5bfbbc,_0x27ba95):_0x5bfbbc,_0x389158=_0x2d6b3f['length']-0x1,_0x309302;_0x389158>=0x0;_0x389158--)(_0x309302=_0x2d6b3f[_0x389158])&&(_0x584dd4=_0x309302(_0x584dd4)||_0x584dd4);return _0x584dd4;},te=(_0x16ebf3,_0xf40aee)=>(_0x153444,_0x9c616d)=>_0xf40aee(_0x153444,_0x9c616d,_0x16ebf3);let m=class extends o['Disposable']{constructor(_0x4d313f){const _0x241dc8=_0x122e74;super(),this[_0x241dc8(0x1b4)]=_0x4d313f,this[_0x241dc8(0x1dd)]();}[_0x122e74(0x1dd)](){const _0xf0b3d5=_0x122e74;[D[_0xf0b3d5(0x174)]['id'],D[_0xf0b3d5(0x1d8)]['id'],C[_0xf0b3d5(0x180)]['id']][_0xf0b3d5(0x1d3)](_0x2d5859=>{const _0x3e60f2=_0xf0b3d5;this['disposeWithMe'](this[_0x3e60f2(0x1b4)]['registerSharedOperation'](_0x2d5859));});}};m=ee([te(0x0,o[_0x122e74(0x1c6)](E))],m);function _0x44f0(_0x537fa0,_0x266023){const _0x106e4e=_0x106e();return _0x44f0=function(_0x44f027,_0x9c703f){_0x44f027=_0x44f027-0x16b;let _0x56fca9=_0x106e4e[_0x44f027];return _0x56fca9;},_0x44f0(_0x537fa0,_0x266023);}var ie=Object[_0x122e74(0x231)],se=Object[_0x122e74(0x1df)],ne=(_0x575ffd,_0x2ac820,_0x3cfab6)=>_0x2ac820 in _0x575ffd?ie(_0x575ffd,_0x2ac820,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3cfab6}):_0x575ffd[_0x2ac820]=_0x3cfab6,re=(_0xf39fb6,_0x4e38e6,_0x358bf0,_0x4d8b6c)=>{for(var _0x2c2981=_0x4d8b6c>0x1?void 0x0:_0x4d8b6c?se(_0x4e38e6,_0x358bf0):_0x4e38e6,_0x23b680=_0xf39fb6['length']-0x1,_0x1b99dc;_0x23b680>=0x0;_0x23b680--)(_0x1b99dc=_0xf39fb6[_0x23b680])&&(_0x2c2981=_0x1b99dc(_0x2c2981)||_0x2c2981);return _0x2c2981;},N=(_0x17ed1b,_0x4902d3)=>(_0x1a0d9a,_0x195b4b)=>_0x4902d3(_0x1a0d9a,_0x195b4b,_0x17ed1b),A=(_0x41157a,_0x59cef7,_0x39d7a2)=>ne(_0x41157a,typeof _0x59cef7!=_0x122e74(0x193)?_0x59cef7+'':_0x59cef7,_0x39d7a2);const oe=_0x122e74(0x1ae);exports[_0x122e74(0x181)]=class extends o[_0x122e74(0x244)]{constructor(_0x4603b1=w,_0x54a972,_0x206b58){const _0x4b7fe4=_0x122e74;super(),this[_0x4b7fe4(0x1b3)]=_0x4603b1,this[_0x4b7fe4(0x1c2)]=_0x54a972,this['_configService']=_0x206b58;const {..._0x2cf174}=o[_0x4b7fe4(0x219)]({},w,this['_config']);this[_0x4b7fe4(0x1e5)]['setConfig'](Q,_0x2cf174);}[_0x122e74(0x1f8)](){const _0x3c38f5=_0x122e74;o['registerDependencies'](this['_injector'],o[_0x3c38f5(0x21b)]([[E],[exports[_0x3c38f5(0x1fc)]],[m],[exports[_0x3c38f5(0x1c8)]]],this[_0x3c38f5(0x1b3)][_0x3c38f5(0x18d)])),o[_0x3c38f5(0x21e)](this[_0x3c38f5(0x1c2)],[[m]]);}[_0x122e74(0x1f7)](){const _0xbf5f65=_0x122e74;o[_0xbf5f65(0x21e)](this['_injector'],[[exports[_0xbf5f65(0x1c8)]]]);}},A(exports['UniverLiveSharePlugin'],_0x122e74(0x16c),o[_0x122e74(0x195)][_0x122e74(0x209)]),A(exports['UniverLiveSharePlugin'],'pluginName',oe),exports[_0x122e74(0x181)]=re([o['DependentOn'](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x122e74(0x1c6)](o[_0x122e74(0x225)])),N(0x2,o[_0x122e74(0x210)])],exports[_0x122e74(0x181)]),exports[_0x122e74(0x229)]=$,exports[_0x122e74(0x1f0)]=E,exports[_0x122e74(0x175)]=u;function _0x106e(){const _0x5cf31a=['next','svg','entries','_stopPresenting','_configService','LiveShareIcon','tag','getValue','http://www.w3.org/2000/svg','shouldShareOperation','toStringTag','_fetchOperations','asObservable','ONLINE','live-share.config','LiveShareService','Start','executeCommand','delete','operations','following','unitId','onRendered','onStarting','You\x27re\x20not\x20following\x20the\x20presenter','pipe','jsxs','LiveShareController','registerInitialStateReporter','forwardRef','LIVESHARE_REQUEST_HOST','NEW_CHANGESETS','You\x27are\x20offline.','Start\x20following','LIVESHARE_NEW_HOST','defIds','OPERATION','offline','idle','tryStartPresenting','UNIVER_UNKNOWN','SAME_OPERATION_SHARE_INTERVAL','createElement','useObservable','xlink:href','has','_unitID','IConfigService','getMemberID','IUniverInstanceService','string','stopPresenting','getConfig','_sharedOperations','DisposableCollection','clsx','merge','getLiveShareCoordinatorSync','mergeOverrideWithDependencies','8zJbddI','path','touchDependencies','takeUntil','2247385OFPrWp','univer-mb-3\x20univer-w-full\x20univer-text-sm','none','subscribe','IDLE','Injector','current','button','complete','LiveShare','FOLLOWING','jsx','univer-size-4','useState','1323888zUOBRf','SessionStatus','UNIVER_SHEET','defineProperty','Fragment','children','IUIPartsService','attrs','onCommandExecuted','NOT_FOLLOWING','mutations','_collabSession','params','LIVESHARE_OPERATION','_status$','You\x27re\x20presenting\x20the\x20document','substring','idSuffix','add','parseProtocolChangeset','1em','parse','Plugin','getLiveShareCoordinator','InsertSheetMutation','connectInjector','type','Dropdown','colorChannel1','_mountLiveShare','getTypeOfUnitAdded$','_presenter','unsubscribe','registerComponent','SetZoomRatioOperation','LiveShareStatus','_commandService','_handleOperation','PRESENTING','get','BuiltInUIPart','_entities','find','_reporters','_startLiveShareCoordinator','currentColor','SetWorksheetActiveOperation','UniverLiveSharePlugin','defs','_status','_uiPartsService','_startFollowing','clear','replace','sessionStatus$','data','getInitialStates','715881bttYMW','stringify','override','toDisposable','presenter','useEffect','send','presenting','symbol','createInstance','UniverInstanceType','OFFLINE','status$','fill','toString','_handleNewChangeSets','_handleOnline','Stop\x20following','useRef','includes','RxDisposable','_beIdle','values','Button','CollaborationEvent','_startPresenting','trim','end','CollaborationSessionService','url(#$1','Stop\x20presenting','_stopFollowing','_collabSessionService','map','1284212GbMUaG','UNIVER_LIVE_SHARE_PLUGIN','not-following','Subject','36XPjWhN','UniverIcon','_config','_liveShareService','mask','3916312GREjIa','assign','startFollowing','throttleTime','_handleTerminate','1368130rQCVsc','_handleOffline','_univerInstanceService','0\x200\x2017\x2017','dispose','stopFollowing','length','_injector','LiveShareCoordinator','getStatus','div','Inject','default','DesktopLiveShareController','Present\x20this\x20document','set','use','displayName','ICommandService','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','evenodd','Module','6aQFngM','sheet','forEach','LIVESHARE_TERMINATE','useDependency','_handleNewHost','text','SetScrollOperation','5114135hJRFED','dispose$','You\x27re\x20following\x20the\x20presenter','_commandDisposable','_init','getCurrentTypeOfUnit$','getOwnPropertyDescriptor','getUnitId'];_0x106e=function(){return _0x5cf31a;};return _0x106e();}
|
|
1
|
+
'use strict';const _0x4d7335=_0xc5b7;(function(_0x4076d4,_0x599cff){const _0xb85935=_0xc5b7,_0x4245f6=_0x4076d4();while(!![]){try{const _0x48cbc2=parseInt(_0xb85935(0xcf))/0x1*(parseInt(_0xb85935(0x114))/0x2)+-parseInt(_0xb85935(0xe1))/0x3+-parseInt(_0xb85935(0xb6))/0x4*(-parseInt(_0xb85935(0xd0))/0x5)+-parseInt(_0xb85935(0x12f))/0x6+parseInt(_0xb85935(0x14d))/0x7+parseInt(_0xb85935(0x150))/0x8+-parseInt(_0xb85935(0xb3))/0x9*(parseInt(_0xb85935(0x169))/0xa);if(_0x48cbc2===_0x599cff)break;else _0x4245f6['push'](_0x4245f6['shift']());}catch(_0x27bcb8){_0x4245f6['push'](_0x4245f6['shift']());}}}(_0x54f1,0xe4b36));var T=Object[_0x4d7335(0x164)],U=(_0x3ceb88,_0x2bab32,_0x361b6c)=>_0x2bab32 in _0x3ceb88?T(_0x3ceb88,_0x2bab32,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x361b6c}):_0x3ceb88[_0x2bab32]=_0x361b6c,_=(_0x4f7302,_0x1da946,_0x10ffd1)=>U(_0x4f7302,typeof _0x1da946!=_0x4d7335(0x17a)?_0x1da946+'':_0x1da946,_0x10ffd1);Object[_0x4d7335(0x164)](exports,Symbol[_0x4d7335(0x12e)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x25c710,..._0x5e80c6}){const _0x44f9f0=_0x4d7335,{icon:_0x472e0f,id:_0x9329a4,className:_0x107c6c,extend:_0x1c8798,..._0x35bfae}=_0x5e80c6,_0x152fa4=(_0x44f9f0(0x177)+_0x9329a4+'\x20'+(_0x107c6c||''))[_0x44f9f0(0x112)](),_0xdbdade=v[_0x44f9f0(0xd6)]('_'+H());return j(_0x472e0f,''+_0x9329a4,{'defIds':_0x472e0f[_0x44f9f0(0xce)],'idSuffix':_0xdbdade[_0x44f9f0(0x16f)]},{'ref':_0x25c710,'className':_0x152fa4,..._0x35bfae},_0x1c8798);}function j(_0x723a70,_0x151451,_0x518b6a,_0x17030a,_0x2649c6){const _0x1db93f=_0x4d7335;return v[_0x1db93f(0x162)](_0x723a70[_0x1db93f(0x155)],{'key':_0x151451,...y(_0x723a70,_0x518b6a,_0x2649c6),..._0x17030a},(F(_0x723a70,_0x518b6a)['children']||[])[_0x1db93f(0x145)]((_0x5dfa39,_0x14812f)=>j(_0x5dfa39,_0x151451+'-'+_0x723a70[_0x1db93f(0x155)]+'-'+_0x14812f,_0x518b6a,void 0x0,_0x2649c6)));}function y(_0x39fb89,_0x15794e,_0x2d480d){const _0xc62140=_0x4d7335,_0x711b00={..._0x39fb89[_0xc62140(0x165)]};_0x2d480d!=null&&_0x2d480d[_0xc62140(0x17f)]&&_0x711b00[_0xc62140(0x13b)]===_0xc62140(0x17f)&&(_0x711b00[_0xc62140(0x13b)]=_0x2d480d[_0xc62140(0x17f)]),_0x39fb89[_0xc62140(0x155)]===_0xc62140(0x110)&&_0x711b00['id']&&(_0x711b00['id']=_0x711b00['id']+_0x15794e[_0xc62140(0xed)]),Object[_0xc62140(0x154)](_0x711b00)[_0xc62140(0x130)](([_0x26a752,_0x2725d3])=>{const _0x4e9793=_0xc62140;_0x26a752==='mask'&&typeof _0x2725d3=='string'&&(_0x711b00[_0x26a752]=_0x2725d3[_0x4e9793(0xeb)](/url\(#(.*)\)/,_0x4e9793(0x136)+_0x15794e[_0x4e9793(0xed)]+')'));});const {defIds:_0x1f8344}=_0x15794e;return!_0x1f8344||_0x1f8344[_0xc62140(0xd7)]===0x0||(_0x39fb89[_0xc62140(0x155)]===_0xc62140(0x122)&&_0x711b00[_0xc62140(0x178)]&&(_0x711b00[_0xc62140(0x178)]=_0x711b00[_0xc62140(0x178)]+_0x15794e[_0xc62140(0xed)]),Object[_0xc62140(0x154)](_0x711b00)['forEach'](([_0x375646,_0x122ce6])=>{const _0x439483=_0xc62140;typeof _0x122ce6==_0x439483(0x12b)&&(_0x711b00[_0x375646]=_0x122ce6[_0x439483(0xeb)](/url\(#(.*)\)/,'url(#$1'+_0x15794e[_0x439483(0xed)]+')'));})),_0x711b00;}function F(_0x1b11e3,_0x3fdb1f){const _0x3ccb20=_0x4d7335;var _0x1babe5;const {defIds:_0x40e581}=_0x3fdb1f;return!_0x40e581||_0x40e581[_0x3ccb20(0xd7)]===0x0?_0x1b11e3:_0x1b11e3['tag']===_0x3ccb20(0x103)&&((_0x1babe5=_0x1b11e3[_0x3ccb20(0xef)])!=null&&_0x1babe5[_0x3ccb20(0xd7)])?{..._0x1b11e3,'children':_0x1b11e3[_0x3ccb20(0xef)][_0x3ccb20(0x145)](_0x1e8979=>typeof _0x1e8979[_0x3ccb20(0x165)]['id']==_0x3ccb20(0x12b)&&_0x40e581&&_0x40e581[_0x3ccb20(0x13a)](_0x1e8979[_0x3ccb20(0x165)]['id'])?{..._0x1e8979,'attrs':{..._0x1e8979[_0x3ccb20(0x165)],'id':_0x1e8979[_0x3ccb20(0x165)]['id']+_0x3fdb1f[_0x3ccb20(0xed)]}}:_0x1e8979)}:_0x1b11e3;}function H(){const _0x3d3aad=_0x4d7335;return Math['random']()[_0x3d3aad(0x129)](0x24)[_0x3d3aad(0x13e)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':_0x4d7335(0xd5),'attrs':{'xmlns':_0x4d7335(0xc1),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x4d7335(0x172)},'children':[{'tag':'path','attrs':{'fill':_0x4d7335(0x17d),'d':_0x4d7335(0x15c)}},{'tag':_0x4d7335(0x182),'attrs':{'fill':_0x4d7335(0x17d),'d':_0x4d7335(0xd4),'fillRule':_0x4d7335(0x146),'clipRule':'evenodd'}}]},R=v[_0x4d7335(0x10d)](function(_0x2aa26e,_0x19065a){const _0xa860ca=_0x4d7335;return v[_0xa860ca(0x162)](x,Object[_0xa860ca(0x126)]({},_0x2aa26e,{'id':_0xa860ca(0x159),'ref':_0x19065a,'icon':V}));});R[_0x4d7335(0xbc)]=_0x4d7335(0xb5);class E extends o[_0x4d7335(0x124)]{constructor(){const _0x496e70=_0x4d7335;super(...arguments),_(this,_0x496e70(0x111),new Set()),_(this,_0x496e70(0xdb),new Set());}[_0x4d7335(0x17c)](_0x19115c){const _0x2e14f7=_0x4d7335;return this['_sharedOperations']['add'](_0x19115c),o[_0x2e14f7(0xff)](()=>this[_0x2e14f7(0x111)][_0x2e14f7(0x16e)](_0x19115c));}[_0x4d7335(0x10b)](_0x3b6f07){const _0x25fd86=_0x4d7335;return this[_0x25fd86(0xdb)][_0x25fd86(0x10a)](_0x3b6f07),o[_0x25fd86(0xff)](()=>this[_0x25fd86(0xdb)][_0x25fd86(0x16e)](_0x3b6f07));}[_0x4d7335(0x170)](_0x3f2d91){const _0x411530=_0x4d7335;return this[_0x411530(0x111)]['has'](_0x3f2d91);}[_0x4d7335(0xb0)](_0x2ff2bc){const _0x2ffe26=_0x4d7335;return Array[_0x2ffe26(0xc9)](this[_0x2ffe26(0xdb)])[_0x2ffe26(0x145)](_0xe2ade6=>_0xe2ade6(_0x2ff2bc));}}var M=Object[_0x4d7335(0xe4)],P=(_0x3759eb,_0x44208b,_0x37f934,_0x5c8e9a)=>{const _0x2b1ea7=_0x4d7335;for(var _0x4be5f7=_0x5c8e9a>0x1?void 0x0:_0x5c8e9a?M(_0x44208b,_0x37f934):_0x44208b,_0x9fa73b=_0x3759eb[_0x2b1ea7(0xd7)]-0x1,_0x4400c7;_0x9fa73b>=0x0;_0x9fa73b--)(_0x4400c7=_0x3759eb[_0x9fa73b])&&(_0x4be5f7=_0x4400c7(_0x4be5f7)||_0x4be5f7);return _0x4be5f7;},S=(_0x259db1,_0x5d16e5)=>(_0x50702a,_0x3b2aa1)=>_0x5d16e5(_0x50702a,_0x3b2aa1,_0x259db1);exports['LiveShareController']=class extends o[_0x4d7335(0xdf)]{constructor(_0x56d7b5,_0x52d5d0,_0x4d7166){const _0x3edd8f=_0x4d7335;super(),_(this,_0x3edd8f(0x119),new Map()),(this[_0x3edd8f(0xec)]=_0x56d7b5,this[_0x3edd8f(0x176)]=_0x52d5d0,this[_0x3edd8f(0xf4)]=_0x4d7166,this[_0x3edd8f(0x109)]());}async[_0x4d7335(0x105)](_0xb483c){const _0x3a33a5=_0x4d7335;return this[_0x3a33a5(0x119)]['has'](_0xb483c)||await this[_0x3a33a5(0x156)](_0xb483c),this['_entities']['get'](_0xb483c);}['getLiveShareCoordinatorSync'](_0x32926e){const _0x45afcc=_0x4d7335;var _0x1812fe;return(_0x1812fe=this[_0x45afcc(0x119)][_0x45afcc(0x132)](_0x32926e))!=null?_0x1812fe:null;}[_0x4d7335(0x109)](){const _0x454686=_0x4d7335;this[_0x454686(0xec)]['getTypeOfUnitAdded$'](o[_0x454686(0x120)][_0x454686(0x12d)])['pipe'](I[_0x454686(0xc0)](this['dispose$']))[_0x454686(0x121)](async _0x45967d=>{const _0x4253f6=_0x454686,_0x16f011=_0x45967d[_0x4253f6(0x143)]();this[_0x4253f6(0x119)]['has'](_0x16f011)||this['_startLiveShareCoordinator'](_0x16f011);}),this[_0x454686(0xec)][_0x454686(0xb7)](o[_0x454686(0x120)][_0x454686(0x12d)])[_0x454686(0xde)](I[_0x454686(0xc0)](this['dispose$']))['subscribe'](_0x332dfe=>{const _0x465671=_0x454686,_0x17b3aa=_0x332dfe[_0x465671(0x143)](),_0xe398d6=this['_entities']['get'](_0x17b3aa);_0xe398d6==null||_0xe398d6[_0x465671(0x102)]();});}async[_0x4d7335(0x156)](_0x1496f4){const _0x40abf7=_0x4d7335,_0x163345=await this[_0x40abf7(0xf4)]['requireSession'](_0x1496f4),_0x183c19=this['_injector'][_0x40abf7(0x157)](exports['LiveShareCoordinator'],_0x1496f4,_0x163345);return _0x183c19['init'](),this[_0x40abf7(0x119)][_0x40abf7(0x17b)](_0x1496f4,_0x183c19),_0x183c19;}},exports[_0x4d7335(0xfb)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x4d7335(0x14c)](o[_0x4d7335(0xd9)])),S(0x2,o['Inject'](b[_0x4d7335(0x15b)]))],exports[_0x4d7335(0xfb)]);var u=(_0x4999e8=>(_0x4999e8[_0x4d7335(0x12a)]=_0x4d7335(0xf0),_0x4999e8[_0x4d7335(0x167)]=_0x4d7335(0xc7),_0x4999e8[_0x4d7335(0x134)]=_0x4d7335(0x11f),_0x4999e8['NOT_FOLLOWING']='not-following',_0x4999e8[_0x4d7335(0xb9)]=_0x4d7335(0x15e),_0x4999e8))(u||{});const k=_0x4d7335(0xe6),q=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x54c7b4,_0x358613,_0x8fb4ee,_0x406678,_0x380632){const _0x536344=_0x4d7335;super(),_(this,_0x536344(0x13c),new O[(_0x536344(0x14e))](_0x536344(0xc7))),_(this,_0x536344(0xc2),this[_0x536344(0x13c)]['asObservable']()),_(this,'_init',!0x1),_(this,_0x536344(0x101),null),_(this,'_presenter',null),(this[_0x536344(0xf5)]=_0x54c7b4,this['_collabSession']=_0x358613,this[_0x536344(0x14a)]=_0x8fb4ee,this[_0x536344(0xe5)]=_0x406678,this[_0x536344(0xf3)]=_0x380632);}get[_0x4d7335(0x10e)](){const _0x1c23ec=_0x4d7335;return this[_0x1c23ec(0x13c)][_0x1c23ec(0xd1)]();}[_0x4d7335(0x102)](){const _0x44cb6c=_0x4d7335;var _0x59095a;(_0x59095a=this[_0x44cb6c(0x101)])==null||_0x59095a[_0x44cb6c(0x102)](),this[_0x44cb6c(0x13c)][_0x44cb6c(0x15f)]('idle'),this[_0x44cb6c(0x13c)][_0x44cb6c(0xe9)]();}[_0x4d7335(0xbd)](){const _0x5bad37=_0x4d7335;return this[_0x5bad37(0x10e)];}[_0x4d7335(0x16d)](){const _0xa79f69=_0x4d7335;this[_0xa79f69(0x109)]||(this[_0xa79f69(0x109)]=!0x0,this[_0xa79f69(0x16a)][_0xa79f69(0xe8)][_0xa79f69(0xde)](I[_0xa79f69(0xc0)](this[_0xa79f69(0xc4)]))[_0xa79f69(0x121)](_0x4acba6=>{const _0x40bc39=_0xa79f69;switch(_0x4acba6){case b['SessionStatus'][_0x40bc39(0x12a)]:this[_0x40bc39(0x158)]();break;case b[_0x40bc39(0x116)][_0x40bc39(0x141)]:this[_0x40bc39(0xb2)]();break;}}),this[_0xa79f69(0x16a)][_0xa79f69(0xbf)][_0xa79f69(0xde)](I[_0xa79f69(0xc0)](this[_0xa79f69(0xc4)]))['subscribe'](_0x3f7880=>{const _0x19aee0=_0xa79f69,{eventID:_0x56e37c}=_0x3f7880;switch(_0x56e37c){case d[_0x19aee0(0xd8)][_0x19aee0(0xc6)]:this[_0x19aee0(0xe0)](_0x3f7880);break;case d[_0x19aee0(0xd8)][_0x19aee0(0xf1)]:this[_0x19aee0(0xf6)](_0x3f7880);break;case d[_0x19aee0(0xd8)][_0x19aee0(0x17e)]:this[_0x19aee0(0x147)]();break;case d['CollaborationEvent'][_0x19aee0(0x142)]:this[_0x19aee0(0x123)](_0x3f7880);break;}}));}[_0x4d7335(0xee)](){const _0x2525ed=_0x4d7335;this[_0x2525ed(0x16a)][_0x2525ed(0x14b)]({'eventID':d[_0x2525ed(0xd8)][_0x2525ed(0x11b)],'data':{'unitID':this[_0x2525ed(0xf5)],'userID':this[_0x2525ed(0x16a)][_0x2525ed(0xda)]()}},this[_0x2525ed(0xf5)]);}[_0x4d7335(0xf8)](){const _0x33ca25=_0x4d7335;this[_0x33ca25(0x10e)]===_0x33ca25(0x15e)&&(this[_0x33ca25(0x13c)]['next']('idle'),this[_0x33ca25(0x16a)]['send']({'eventID':d[_0x33ca25(0xd8)][_0x33ca25(0x17e)],'data':{'unitID':this[_0x33ca25(0xf5)]}},this[_0x33ca25(0xf5)]));}[_0x4d7335(0xc3)](){const _0x338ccc=_0x4d7335;this['_status']===_0x338ccc(0x171)&&(this[_0x338ccc(0x13c)][_0x338ccc(0x15f)](_0x338ccc(0x11f)),this[_0x338ccc(0x11d)]());}[_0x4d7335(0x13d)](){const _0x2283ec=_0x4d7335;this[_0x2283ec(0x10e)]===_0x2283ec(0x11f)&&this[_0x2283ec(0xfe)]();}[_0x4d7335(0xe0)](_0x553510){const _0x4a22c8=_0x4d7335,{presenter:_0x9c3bee}=_0x553510['data'],_0x4176f5=this[_0x4a22c8(0x16a)][_0x4a22c8(0xda)]();this[_0x4a22c8(0x118)]=_0x9c3bee,_0x9c3bee===_0x4176f5?(this[_0x4a22c8(0xfe)](),this[_0x4a22c8(0x152)]()):this['_status']!==_0x4a22c8(0x171)&&(this['_stopPresenting'](),this[_0x4a22c8(0x11d)]());}['_fetchOperations'](){const _0x534dd0=_0x4d7335,_0x2fc87a={'eventID':d[_0x534dd0(0xd8)][_0x534dd0(0x166)]};this[_0x534dd0(0x16a)]['send'](_0x2fc87a,this['_unitID']);}[_0x4d7335(0x147)](){const _0x1bfb7c=_0x4d7335;this[_0x1bfb7c(0x118)]=null,this[_0x1bfb7c(0x10e)]!==_0x1bfb7c(0x15e)&&this[_0x1bfb7c(0xd2)]();}[_0x4d7335(0x123)](_0x20cffb){const _0x22fa0c=_0x4d7335;if(this[_0x22fa0c(0x10e)]===_0x22fa0c(0x11f)&&this['_presenter']===_0x20cffb[_0x22fa0c(0x14f)][_0x22fa0c(0xf2)]){const _0x4f7dd8=d[_0x22fa0c(0xd3)](_0x20cffb[_0x22fa0c(0x14f)])['mutations'][_0x22fa0c(0x15d)]()['find'](_0x95145e=>_0x95145e['id']===C[_0x22fa0c(0x153)]['id']);if(_0x4f7dd8){const _0x47dd05=_0x4f7dd8[_0x22fa0c(0x11a)]['unitId'],_0x431832=_0x4f7dd8[_0x22fa0c(0x11a)][_0x22fa0c(0x117)]['id'];setTimeout(()=>{const _0x3ba30a=_0x22fa0c;this[_0x3ba30a(0xf3)]['executeCommand'](C[_0x3ba30a(0x131)]['id'],{'unitId':_0x47dd05,'subUnitId':_0x431832},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x623bb=_0x4d7335;this[_0x623bb(0x13c)][_0x623bb(0x15f)](_0x623bb(0x15e));const _0x13436b=new Map(),_0x1654dd=this[_0x623bb(0x101)]=new o[(_0x623bb(0xcd))]();_0x1654dd[_0x623bb(0x10a)](o[_0x623bb(0xff)](()=>{const _0x36d869=_0x623bb;_0x13436b[_0x36d869(0x130)](_0x54aef9=>_0x54aef9[_0x36d869(0xe9)]()),_0x13436b['clear']();})),_0x1654dd['add'](this[_0x623bb(0xf3)][_0x623bb(0xfa)](_0x56f1df=>{const _0x5af6dc=_0x623bb;var _0xcd29aa;if(_0x56f1df[_0x5af6dc(0x175)]!==o['CommandType'][_0x5af6dc(0x10f)]||!this[_0x5af6dc(0xe5)][_0x5af6dc(0x170)](_0x56f1df['id']))return;const {id:_0x55e7b3}=_0x56f1df;let _0x29f062;_0x13436b[_0x5af6dc(0xca)](_0x55e7b3)?_0x29f062=_0x13436b[_0x5af6dc(0x132)](_0x55e7b3):(_0x29f062=new O['Subject'](),_0x13436b[_0x5af6dc(0x17b)](_0x55e7b3,_0x29f062),_0x29f062[_0x5af6dc(0xde)](I[_0x5af6dc(0x137)]((_0xcd29aa=this[_0x5af6dc(0x14a)][_0x5af6dc(0xbb)](k))!=null?_0xcd29aa:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2f853f=>{const _0x1f6aa9=_0x5af6dc;this[_0x1f6aa9(0x16a)][_0x1f6aa9(0x14b)]({'eventID':d[_0x1f6aa9(0xd8)][_0x1f6aa9(0xf1)],'data':{'unitID':this[_0x1f6aa9(0xf5)],'operations':{[_0x2f853f['id']]:{'id':_0x2f853f['id'],'params':JSON[_0x1f6aa9(0x11c)](_0x2f853f[_0x1f6aa9(0x11a)])}}}},this[_0x1f6aa9(0xf5)]);})),_0x29f062[_0x5af6dc(0x15f)](_0x56f1df);})),this[_0x623bb(0xe5)][_0x623bb(0xb0)](this['_unitID'])[_0x623bb(0x130)](_0x3bd893=>this['_collabSession']['send']({'eventID':d[_0x623bb(0xd8)][_0x623bb(0xf1)],'data':{'unitID':this[_0x623bb(0xf5)],'operations':{[_0x3bd893['id']]:{'id':_0x3bd893['id'],'params':JSON[_0x623bb(0x11c)](_0x3bd893[_0x623bb(0x11a)])}}}},this[_0x623bb(0xf5)]));}[_0x4d7335(0x144)](){const _0x3fef5e=_0x4d7335;var _0x43f007;this['_status$'][_0x3fef5e(0x15f)](_0x3fef5e(0xc7)),(_0x43f007=this['_commandDisposable'])==null||_0x43f007[_0x3fef5e(0x102)](),this[_0x3fef5e(0x101)]=null;}[_0x4d7335(0x11d)](){const _0x4cb0d8=_0x4d7335;var _0x54d169;(_0x54d169=this[_0x4cb0d8(0x101)])==null||_0x54d169[_0x4cb0d8(0x102)](),this[_0x4cb0d8(0x13c)][_0x4cb0d8(0x15f)](_0x4cb0d8(0x11f));}[_0x4d7335(0xd2)](){const _0x47f536=_0x4d7335;var _0x47f428;this['_status$'][_0x47f536(0x15f)](_0x47f536(0xc7)),(_0x47f428=this['_commandDisposable'])==null||_0x47f428['dispose'](),this[_0x47f536(0x101)]=null;}['_stopFollowing'](){const _0x647f28=_0x4d7335;var _0x59be91;this[_0x647f28(0x13c)][_0x647f28(0x15f)](_0x647f28(0x171)),(_0x59be91=this[_0x647f28(0x101)])==null||_0x59be91[_0x647f28(0x102)]();}[_0x4d7335(0xf6)](_0x4052bc){const _0x5afde9=_0x4d7335;if([_0x5afde9(0x15e),_0x5afde9(0x171),'offline'][_0x5afde9(0x13a)](this['_status'])||!_0x4052bc[_0x5afde9(0x14f)][_0x5afde9(0x13f)]||_0x4052bc[_0x5afde9(0x14f)]['presenter']===this[_0x5afde9(0x16a)][_0x5afde9(0xda)]())return;this[_0x5afde9(0x10e)]===_0x5afde9(0xc7)&&this[_0x5afde9(0x11d)]();const _0x4b67e8=_0x4052bc['data'][_0x5afde9(0xe2)];Object[_0x5afde9(0x133)](_0x4b67e8)['forEach'](_0x52e750=>{const _0x598d7e=_0x5afde9;this[_0x598d7e(0xf3)][_0x598d7e(0xe7)](_0x52e750['id'],_0x52e750[_0x598d7e(0x11a)]?JSON['parse'](_0x52e750[_0x598d7e(0x11a)]):null,{'fromCollab':!0x0});});}[_0x4d7335(0x158)](){const _0x1bdb17=_0x4d7335;var _0x2eedd1;this[_0x1bdb17(0x13c)][_0x1bdb17(0x15f)](_0x1bdb17(0xf0)),(_0x2eedd1=this[_0x1bdb17(0x101)])==null||_0x2eedd1[_0x1bdb17(0x102)]();}['_handleOnline'](){const _0x4d196b=_0x4d7335;this[_0x4d196b(0x13c)][_0x4d196b(0x15f)](_0x4d196b(0xc7)),this['_fetchOperations']();}},exports[_0x4d7335(0xc8)]=P([S(0x2,o[_0x4d7335(0xfc)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function _0x54f1(){const _0x5a5a93=['delete','current','shouldShareOperation','not-following','1em','merge','mergeOverrideWithDependencies','type','_injector','univerjs-icon\x20univerjs-icon-','xlink:href','LiveShareStatus','symbol','set','registerSharedOperation','currentColor','LIVESHARE_TERMINATE','colorChannel1','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','Button','path','getInitialStates','Dropdown','_handleOnline','9nmrgUZ','UniverLiveSharePlugin','LiveShareIcon','208204EKjAzw','getTypeOfUnitDisposed$','useObservable','PRESENTING','getCurrentTypeOfUnit$','getConfig','displayName','getStatus','onRendered','event$','takeUntil','http://www.w3.org/2000/svg','status$','startFollowing','dispose$','text','LIVESHARE_NEW_HOST','idle','LiveShareCoordinator','from','has','div','univer-mb-3\x20univer-w-full\x20univer-text-sm','DisposableCollection','defIds','58039gLDmvn','115Wisnzh','getValue','_beIdle','parseProtocolChangeset','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','svg','useRef','length','CollaborationEvent','Injector','getMemberID','_reporters','jsxs','You\x27are\x20offline.','pipe','RxDisposable','_handleNewHost','2955450LDsUha','operations','IUniverInstanceService','getOwnPropertyDescriptor','_liveShareService','SAME_OPERATION_SHARE_INTERVAL','executeCommand','sessionStatus$','complete','pluginName','replace','_univerInstanceService','idSuffix','tryStartPresenting','children','offline','LIVESHARE_OPERATION','memberID','_commandService','_collabSessionService','_unitID','_handleOperation','UNIVER_UNKNOWN','stopPresenting','end','onCommandExecuted','LiveShareController','IConfigService','registerDependencies','_stopFollowing','toDisposable','DesktopLiveShareController','_commandDisposable','dispose','defs','univer-size-4','getLiveShareCoordinator','_uiPartsService','registerComponent','Stop\x20presenting','_init','add','registerInitialStateReporter','connectInjector','forwardRef','_status','OPERATION','mask','_sharedOperations','trim','setConfig','8EZkcvp','then','SessionStatus','sheet','_presenter','_entities','params','LIVESHARE_REQUEST_HOST','stringify','_startFollowing','disposeWithMe','following','UniverInstanceType','subscribe','use','_handleNewChangeSets','Disposable','_config','assign','UNIVER_LIVE_SHARE_PLUGIN','_mountLiveShare','toString','OFFLINE','string','Start','UNIVER_SHEET','toStringTag','5054856cYnIIE','forEach','SetWorksheetActiveOperation','get','values','FOLLOWING','override','url(#$1','throttleTime','onStarting','useState','includes','fill','_status$','stopFollowing','substring','presenter','Plugin','ONLINE','NEW_CHANGESETS','getUnitId','_stopPresenting','map','evenodd','_handleTerminate','Fragment','LiveShare','_configService','send','Inject','12018573MAvihK','BehaviorSubject','data','3238456YpQqLs','SetScrollOperation','_startPresenting','InsertSheetMutation','entries','tag','_startLiveShareCoordinator','createInstance','_handleOffline','live-share-icon','SetZoomRatioOperation','CollaborationSessionService','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','reverse','presenting','next','IUIPartsService','live-share.config','createElement','NOT_FOLLOWING','defineProperty','attrs','LIVESHARE_FETCH_OPERATIONS','IDLE','unsubscribe','7866910eQrWOQ','_collabSession','jsx','touchDependencies','init'];_0x54f1=function(){return _0x5a5a93;};return _0x54f1();}function $(){const _0x2899f4=_0x4d7335,_0x43f2aa=p['useDependency'](exports[_0x2899f4(0xfb)]),_0x2f0d5d=p['useDependency'](o[_0x2899f4(0xe3)]),_0x995393=p[_0x2899f4(0xb8)](()=>_0x2f0d5d[_0x2899f4(0xba)](o[_0x2899f4(0x120)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1d2ca7,_0x5ae4d7]=v[_0x2899f4(0x139)](null),[_0x11c65a,_0x1adb50]=v[_0x2899f4(0x139)](u[_0x2899f4(0x167)]),_0x2c82d9=v['useRef'](null);return v['useEffect'](()=>(_0x995393&&_0x43f2aa[_0x2899f4(0x105)](_0x995393[_0x2899f4(0x143)]())[_0x2899f4(0x115)](_0x8b8a44=>{const _0x251e3a=_0x2899f4;_0x5ae4d7(_0x8b8a44),_0x2c82d9['current']=_0x8b8a44['status$'][_0x251e3a(0x121)](_0x58c2de=>{_0x1adb50(_0x58c2de);});}),()=>{const _0x1d5dd5=_0x2899f4;var _0x5e625b;(_0x5e625b=_0x2c82d9['current'])==null||_0x5e625b[_0x1d5dd5(0x168)](),_0x2c82d9['current']=null;}),[_0x995393,_0x43f2aa]),_0x1d2ca7?l['jsx'](f[_0x2899f4(0xb1)],{'align':_0x2899f4(0xf9),'disabled':_0x11c65a===u['OFFLINE'],'className':_0x2899f4(0x180),'overlay':l[_0x2899f4(0x16b)](W,{'status':_0x11c65a,'coordinator':_0x1d2ca7}),'children':l[_0x2899f4(0x16b)]('button',{'className':f['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x11c65a===u[_0x2899f4(0x12a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11c65a!==u[_0x2899f4(0x12a)]}),'type':'button','children':l[_0x2899f4(0x16b)](R,{'className':_0x2899f4(0x104)})})}):null;}function W(_0x1f5f99){const _0x54af23=_0x4d7335,{status:_0x1d0ea4,coordinator:_0x4f4646}=_0x1f5f99;switch(_0x1d0ea4){case u[_0x54af23(0x167)]:return l[_0x54af23(0x16b)](G,{'coordinator':_0x4f4646});case u['FOLLOWING']:return l[_0x54af23(0x16b)](B,{'coordinator':_0x4f4646});case u[_0x54af23(0x163)]:return l[_0x54af23(0x16b)](Y,{'coordinator':_0x4f4646});case u[_0x54af23(0x12a)]:return l[_0x54af23(0x16b)](J,{});case u[_0x54af23(0xb9)]:return l[_0x54af23(0x16b)](Z,{'coordinator':_0x4f4646});default:return null;}}function G(_0x4c7c74){const _0x6f52d3=_0x4d7335,{coordinator:_0x57becd}=_0x4c7c74;return l[_0x6f52d3(0xdc)](l[_0x6f52d3(0x148)],{'children':[l[_0x6f52d3(0x16b)](_0x6f52d3(0xcb),{'className':_0x6f52d3(0xcc),'children':'Present\x20this\x20document'}),l['jsx'](f[_0x6f52d3(0x181)],{'onClick':()=>_0x57becd['tryStartPresenting'](),'children':_0x6f52d3(0x12c)})]});}function B(_0x2f2481){const _0xf000ff=_0x4d7335,{coordinator:_0x1d2b1a}=_0x2f2481;return l['jsxs'](l[_0xf000ff(0x148)],{'children':[l[_0xf000ff(0x16b)](_0xf000ff(0xcb),{'className':_0xf000ff(0xcc),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](f[_0xf000ff(0x181)],{'onClick':()=>_0x1d2b1a[_0xf000ff(0x13d)](),'children':'Stop\x20following'})]});}function _0xc5b7(_0x7c1ebe,_0xf1b126){const _0x54f14b=_0x54f1();return _0xc5b7=function(_0xc5b7a3,_0x3c2910){_0xc5b7a3=_0xc5b7a3-0xb0;let _0xb3d52c=_0x54f14b[_0xc5b7a3];return _0xb3d52c;},_0xc5b7(_0x7c1ebe,_0xf1b126);}function Y(_0x1aed60){const _0xcef759=_0x4d7335,{coordinator:_0x3feda5}=_0x1aed60;return l[_0xcef759(0xdc)](l[_0xcef759(0x148)],{'children':[l[_0xcef759(0x16b)](_0xcef759(0xcb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0xcef759(0x16b)](f[_0xcef759(0x181)],{'variant':_0xcef759(0xc5),'onClick':()=>_0x3feda5[_0xcef759(0xc3)](),'children':'Start\x20following'})]});}function Z(_0x20e4aa){const _0x5837e0=_0x4d7335,{coordinator:_0x322c2c}=_0x20e4aa;return l[_0x5837e0(0xdc)](l['Fragment'],{'children':[l[_0x5837e0(0x16b)](_0x5837e0(0xcb),{'className':_0x5837e0(0xcc),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x5837e0(0x16b)](f[_0x5837e0(0x181)],{'variant':'default','onClick':()=>_0x322c2c[_0x5837e0(0xf8)](),'children':_0x5837e0(0x108)})]});}function J(){const _0xecbd78=_0x4d7335;return l[_0xecbd78(0x16b)](l[_0xecbd78(0x148)],{'children':_0xecbd78(0xdd)});}var K=Object[_0x4d7335(0xe4)],z=(_0x345b92,_0x415e4f,_0x148e10,_0x1a5d8e)=>{const _0x1cfc15=_0x4d7335;for(var _0x35b0b9=_0x1a5d8e>0x1?void 0x0:_0x1a5d8e?K(_0x415e4f,_0x148e10):_0x415e4f,_0x4308f7=_0x345b92[_0x1cfc15(0xd7)]-0x1,_0x2be998;_0x4308f7>=0x0;_0x4308f7--)(_0x2be998=_0x345b92[_0x4308f7])&&(_0x35b0b9=_0x2be998(_0x35b0b9)||_0x35b0b9);return _0x35b0b9;},L=(_0x1175fd,_0x49ba34)=>(_0x28dd5c,_0x54f6d1)=>_0x49ba34(_0x28dd5c,_0x54f6d1,_0x1175fd);exports[_0x4d7335(0x100)]=class extends o[_0x4d7335(0x124)]{constructor(_0x22c171,_0x3577db){const _0x5d279f=_0x4d7335;super(),this[_0x5d279f(0x176)]=_0x22c171,this[_0x5d279f(0x106)]=_0x3577db,this[_0x5d279f(0x128)]();}[_0x4d7335(0x128)](){const _0x253533=_0x4d7335;this[_0x253533(0x11e)](this[_0x253533(0x106)][_0x253533(0x107)](p['BuiltInUIPart']['HEADER_MENU'],()=>p[_0x253533(0x10c)]($,this[_0x253533(0x176)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x4d7335(0x14c)](o[_0x4d7335(0xd9)])),L(0x1,p[_0x4d7335(0x160)])],exports[_0x4d7335(0x100)]);const Q=_0x4d7335(0x161),w={};var X=Object[_0x4d7335(0xe4)],ee=(_0x105f91,_0x590305,_0x2ddc1c,_0x135002)=>{const _0x140f47=_0x4d7335;for(var _0x2a07ae=_0x135002>0x1?void 0x0:_0x135002?X(_0x590305,_0x2ddc1c):_0x590305,_0x57e87b=_0x105f91[_0x140f47(0xd7)]-0x1,_0x21c2b2;_0x57e87b>=0x0;_0x57e87b--)(_0x21c2b2=_0x105f91[_0x57e87b])&&(_0x2a07ae=_0x21c2b2(_0x2a07ae)||_0x2a07ae);return _0x2a07ae;},te=(_0x2dfb45,_0x5edc3a)=>(_0x5a688c,_0x48df06)=>_0x5edc3a(_0x5a688c,_0x48df06,_0x2dfb45);let m=class extends o['Disposable']{constructor(_0x4af56a){const _0x4320fd=_0x4d7335;super(),this[_0x4320fd(0xe5)]=_0x4af56a,this['_init']();}[_0x4d7335(0x109)](){const _0x3d8155=_0x4d7335;[D[_0x3d8155(0x15a)]['id'],D[_0x3d8155(0x151)]['id'],C[_0x3d8155(0x131)]['id']][_0x3d8155(0x130)](_0x50aec2=>{const _0x15aa2f=_0x3d8155;this[_0x15aa2f(0x11e)](this[_0x15aa2f(0xe5)][_0x15aa2f(0x17c)](_0x50aec2));});}};m=ee([te(0x0,o[_0x4d7335(0x14c)](E))],m);var ie=Object[_0x4d7335(0x164)],se=Object[_0x4d7335(0xe4)],ne=(_0x5f0b7a,_0x144cde,_0x5e52b1)=>_0x144cde in _0x5f0b7a?ie(_0x5f0b7a,_0x144cde,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e52b1}):_0x5f0b7a[_0x144cde]=_0x5e52b1,re=(_0xc43c29,_0x501d56,_0x381de5,_0x3ed2cd)=>{const _0x42f3eb=_0x4d7335;for(var _0x1a6477=_0x3ed2cd>0x1?void 0x0:_0x3ed2cd?se(_0x501d56,_0x381de5):_0x501d56,_0x4dc8f1=_0xc43c29[_0x42f3eb(0xd7)]-0x1,_0x4117fd;_0x4dc8f1>=0x0;_0x4dc8f1--)(_0x4117fd=_0xc43c29[_0x4dc8f1])&&(_0x1a6477=_0x4117fd(_0x1a6477)||_0x1a6477);return _0x1a6477;},N=(_0x410589,_0x1dd5e4)=>(_0x4550f0,_0x4724e5)=>_0x1dd5e4(_0x4550f0,_0x4724e5,_0x410589),A=(_0x253f14,_0x32c2c3,_0x35fa12)=>ne(_0x253f14,typeof _0x32c2c3!='symbol'?_0x32c2c3+'':_0x32c2c3,_0x35fa12);const oe=_0x4d7335(0x127);exports['UniverLiveSharePlugin']=class extends o[_0x4d7335(0x140)]{constructor(_0x45502a=w,_0x367c2b,_0x20cd24){const _0x26bf8f=_0x4d7335;super(),this[_0x26bf8f(0x125)]=_0x45502a,this['_injector']=_0x367c2b,this[_0x26bf8f(0x14a)]=_0x20cd24;const {..._0x1303b1}=o[_0x26bf8f(0x173)]({},w,this[_0x26bf8f(0x125)]);this[_0x26bf8f(0x14a)][_0x26bf8f(0x113)](Q,_0x1303b1);}[_0x4d7335(0x138)](){const _0x165944=_0x4d7335;o[_0x165944(0xfd)](this[_0x165944(0x176)],o[_0x165944(0x174)]([[E],[exports[_0x165944(0xfb)]],[m],[exports[_0x165944(0x100)]]],this[_0x165944(0x125)][_0x165944(0x135)])),o['touchDependencies'](this[_0x165944(0x176)],[[m]]);}[_0x4d7335(0xbe)](){const _0x373093=_0x4d7335;o[_0x373093(0x16c)](this[_0x373093(0x176)],[[exports[_0x373093(0x100)]]]);}},A(exports[_0x4d7335(0xb4)],_0x4d7335(0x175),o[_0x4d7335(0x120)][_0x4d7335(0xf7)]),A(exports[_0x4d7335(0xb4)],_0x4d7335(0xea),oe),exports[_0x4d7335(0xb4)]=re([o['DependentOn'](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x4d7335(0x14c)](o['Injector'])),N(0x2,o['IConfigService'])],exports[_0x4d7335(0xb4)]),exports[_0x4d7335(0x149)]=$,exports['LiveShareService']=E,exports[_0x4d7335(0x179)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x5909(_0x3a3ca3,_0x5c0bce){const _0x28278a=_0x2827();return _0x5909=function(_0x5909b0,_0x11e0e3){_0x5909b0=_0x5909b0-0x13d;let _0x4f99e5=_0x28278a[_0x5909b0];return _0x4f99e5;},_0x5909(_0x3a3ca3,_0x5c0bce);}const _0x4ffa4d=_0x5909;(function(_0xdfbd78,_0x3554c0){const _0x4e6724=_0x5909,_0x1cf184=_0xdfbd78();while(!![]){try{const _0x2b0b43=-parseInt(_0x4e6724(0x15b))/0x1+-parseInt(_0x4e6724(0x158))/0x2+-parseInt(_0x4e6724(0x155))/0x3*(-parseInt(_0x4e6724(0x14f))/0x4)+-parseInt(_0x4e6724(0x13e))/0x5+parseInt(_0x4e6724(0x160))/0x6*(parseInt(_0x4e6724(0x15d))/0x7)+parseInt(_0x4e6724(0x144))/0x8*(parseInt(_0x4e6724(0x14e))/0x9)+parseInt(_0x4e6724(0x147))/0xa;if(_0x2b0b43===_0x3554c0)break;else _0x1cf184['push'](_0x1cf184['shift']());}catch(_0x268cc3){_0x1cf184['push'](_0x1cf184['shift']());}}}(_0x2827,0x5d8c5));import{LiveShareController as _0x33a926,LiveShareStatus as _0x5f10a0}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x35c7e8}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x5a5560}from'@univerjs/sheets';import{SetScrollOperation as _0x22b9ff}from'@univerjs/sheets-ui';function _0x2827(){const _0x78ffe8=['startColumn','startFollowing','6meLvep','stopPresenting','LiveShareStatusEnum','479530TFpjYA','startPresenting','getSheetId','syncExecuteCommand','getId','No\x20active\x20workbook\x20found.','779992XnFPPI','_initialize','stopFollowing','1304530mRbdRF','getRenderById','getUnitId','extend','_commandService','tryStartPresenting','getLiveShareStatus','63yXRHTJ','378104bvmzym','PRESENTING','getActiveWorkbook','IDLE','get','getStatus','24YCcojm','startRow','_injector','798076iGrPrZ','executeCommand','getLiveShareCoordinatorSync','750416wDbKkw','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','415653kGfLbo'];_0x2827=function(){return _0x78ffe8;};return _0x2827();}import{FRange as _0x5ce20e}from'@univerjs/sheets/facade';import{FUniver as _0x4076a0,FEnum as _0x4e8144}from'@univerjs/core/facade';class I extends _0x5ce20e{[_0x4ffa4d(0x145)](_0x379f0d,_0x364aee,_0xc1f157,_0xbe095e,_0x26c82f){const _0x4f6eac=_0x4ffa4d,_0x1c41d5=_0x379f0d[_0x4f6eac(0x153)](_0x33a926),_0x1f0dc6=_0x379f0d[_0x4f6eac(0x153)](_0x35c7e8),_0x3fa6c4=_0x364aee[_0x4f6eac(0x149)](),_0x1b18da=_0x364aee['getActiveSheet'](),_0x1bbc08=_0x1c41d5['getLiveShareCoordinatorSync'](_0x3fa6c4);(_0x1bbc08==null?void 0x0:_0x1bbc08[_0x4f6eac(0x154)]())!==_0x5f10a0[_0x4f6eac(0x150)]||(_0xc1f157[_0x4f6eac(0x140)]()!==_0x1b18da[_0x4f6eac(0x140)]()&&this[_0x4f6eac(0x14b)][_0x4f6eac(0x159)](_0x5a5560['id'],{'unitId':_0x3fa6c4,'subUnitId':_0xc1f157[_0x4f6eac(0x140)]()}),!_0x1f0dc6[_0x4f6eac(0x148)](_0x3fa6c4))||_0x26c82f[_0x4f6eac(0x141)](_0x22b9ff['id'],{'unitId':_0x364aee['getUnitId'](),'sheetId':_0xc1f157[_0x4f6eac(0x140)](),'sheetViewStartRow':_0xbe095e[_0x4f6eac(0x156)],'sheetViewStartColumn':_0xbe095e[_0x4f6eac(0x15e)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5ce20e['extend'](I);class m extends _0x4076a0{[_0x4ffa4d(0x14d)](){const _0x246e6b=_0x4ffa4d;var _0x3ce3f3,_0x2671b4;const _0x556cda=this[_0x246e6b(0x157)][_0x246e6b(0x153)](_0x33a926),_0x5f14fe=(_0x3ce3f3=this['getActiveWorkbook']())==null?void 0x0:_0x3ce3f3[_0x246e6b(0x142)]();if(!_0x5f14fe)throw new Error('No\x20active\x20workbook\x20found.');const _0x401ff4=_0x556cda['getLiveShareCoordinatorSync'](_0x5f14fe);return(_0x2671b4=_0x401ff4==null?void 0x0:_0x401ff4[_0x246e6b(0x154)]())!=null?_0x2671b4:_0x5f10a0[_0x246e6b(0x152)];}[_0x4ffa4d(0x15f)](){const _0x82a457=_0x4ffa4d;var _0x11500d;const _0x2082e8=this[_0x82a457(0x157)]['get'](_0x33a926),_0x26c2ec=(_0x11500d=this['getActiveWorkbook']())==null?void 0x0:_0x11500d[_0x82a457(0x142)]();if(!_0x26c2ec)throw new Error(_0x82a457(0x143));const _0x363175=_0x2082e8[_0x82a457(0x15a)](_0x26c2ec);if(!_0x363175)throw new Error(_0x82a457(0x15c));_0x363175[_0x82a457(0x15f)]();}[_0x4ffa4d(0x146)](){const _0x12a900=_0x4ffa4d;var _0x16a26a;const _0x4ef3fe=this[_0x12a900(0x157)][_0x12a900(0x153)](_0x33a926),_0x3c15ba=(_0x16a26a=this[_0x12a900(0x151)]())==null?void 0x0:_0x16a26a[_0x12a900(0x142)]();if(!_0x3c15ba)throw new Error(_0x12a900(0x143));const _0x180875=_0x4ef3fe[_0x12a900(0x15a)](_0x3c15ba);if(!_0x180875)throw new Error(_0x12a900(0x15c));_0x180875[_0x12a900(0x146)]();}[_0x4ffa4d(0x13f)](){const _0x3466b8=_0x4ffa4d;var _0x4f5456;const _0x198273=this[_0x3466b8(0x157)][_0x3466b8(0x153)](_0x33a926),_0x49b409=(_0x4f5456=this[_0x3466b8(0x151)]())==null?void 0x0:_0x4f5456[_0x3466b8(0x142)]();if(!_0x49b409)throw new Error(_0x3466b8(0x143));const _0x45771e=_0x198273[_0x3466b8(0x15a)](_0x49b409);if(!_0x45771e)throw new Error(_0x3466b8(0x15c));_0x45771e[_0x3466b8(0x14c)]();}[_0x4ffa4d(0x161)](){const _0x1cda48=_0x4ffa4d;var _0x4aa30e;const _0x5e64a0=this[_0x1cda48(0x157)][_0x1cda48(0x153)](_0x33a926),_0x32d243=(_0x4aa30e=this[_0x1cda48(0x151)]())==null?void 0x0:_0x4aa30e['getId']();if(!_0x32d243)throw new Error(_0x1cda48(0x143));const _0x13446b=_0x5e64a0[_0x1cda48(0x15a)](_0x32d243);if(!_0x13446b)throw new Error(_0x1cda48(0x15c));_0x13446b[_0x1cda48(0x161)]();}}_0x4076a0[_0x4ffa4d(0x14a)](m);class C extends _0x4e8144{get[_0x4ffa4d(0x13d)](){return _0x5f10a0;}}_0x4e8144[_0x4ffa4d(0x14a)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xb97ebd=_0x9b6e;(function(_0x3aebba,_0x2089ac){const _0x824a38=_0x9b6e,_0x160b12=_0x3aebba();while(!![]){try{const _0x502100=parseInt(_0x824a38(0x19c))/0x1+parseInt(_0x824a38(0x143))/0x2*(-parseInt(_0x824a38(0x1a1))/0x3)+parseInt(_0x824a38(0x1b8))/0x4*(parseInt(_0x824a38(0x176))/0x5)+parseInt(_0x824a38(0x145))/0x6*(parseInt(_0x824a38(0x194))/0x7)+-parseInt(_0x824a38(0x17f))/0x8*(parseInt(_0x824a38(0x12e))/0x9)+parseInt(_0x824a38(0x184))/0xa*(parseInt(_0x824a38(0x1ba))/0xb)+-parseInt(_0x824a38(0x174))/0xc*(parseInt(_0x824a38(0x1c1))/0xd);if(_0x502100===_0x2089ac)break;else _0x160b12['push'](_0x160b12['shift']());}catch(_0x42732b){_0x160b12['push'](_0x160b12['shift']());}}}(_0x5a47,0x71b8e));var J=Object[_0xb97ebd(0x1b0)],K=(_0x1dcce9,_0x3ca04b,_0x1caa7a)=>_0x3ca04b in _0x1dcce9?J(_0x1dcce9,_0x3ca04b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1caa7a}):_0x1dcce9[_0x3ca04b]=_0x1caa7a,u=(_0x18f61b,_0xf096fe,_0x26adcb)=>K(_0x18f61b,typeof _0xf096fe!=_0xb97ebd(0x15b)?_0xf096fe+'':_0xf096fe,_0x26adcb);import{Disposable as _0x377436,toDisposable as _0x406d9b,IUniverInstanceService as _0x5ecf6c,Inject as _0x21afd6,Injector as _0xcfdfef,IConfigService as _0x5f372e,ICommandService as _0x190649,RxDisposable as _0x11add2,UniverInstanceType as _0x577e21,DisposableCollection as _0x7bc84b,CommandType as _0x3cef27,DependentOn as _0x362c5b,Plugin as _0x306fe4,merge as _0x1a51a5,registerDependencies as _0x533093,mergeOverrideWithDependencies as _0x47b025,touchDependencies as _0x4a7426}from'@univerjs/core';import{useDependency as _0x1320d6,useObservable as _0x518c90,IUIPartsService as _0x2d5715,BuiltInUIPart as _0x3439ae,connectInjector as _0x24235a}from'@univerjs/ui';import{jsx as _0x580725,jsxs as _0x1abc97,Fragment as _0x2c36f8}from'react/jsx-runtime';import{Dropdown as _0x270a52,clsx as _0xc4ee54,Button as _0x613aad}from'@univerjs/design';function _0x9b6e(_0x120f2b,_0x1942b4){const _0x5a4722=_0x5a47();return _0x9b6e=function(_0x9b6e2f,_0x46a200){_0x9b6e2f=_0x9b6e2f-0x12c;let _0x147712=_0x5a4722[_0x9b6e2f];return _0x147712;},_0x9b6e(_0x120f2b,_0x1942b4);}import{useRef as _0x1062c7,createElement as _0x391261,forwardRef as _0xa6af3f,useState as _0x396812,useEffect as _0x1482f8}from'react';import{CollaborationEvent as _0x16f67c,parseProtocolChangeset as _0x583902}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1fcb99,SessionStatus as _0x52fa7b,UniverCollaborationClientPlugin as _0x11a085}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x258803,SetWorksheetActiveOperation as _0x20c513}from'@univerjs/sheets';import{BehaviorSubject as _0x34692e,Subject as _0x2766e6}from'rxjs';import{takeUntil as _0x1d5b79,throttleTime as _0x1ffa79}from'rxjs/operators';import{SetZoomRatioOperation as _0x1d388b,SetScrollOperation as _0x5ae5dd}from'@univerjs/sheets-ui';function k({ref:_0x238dc1,..._0x4846f8}){const _0x21c4a0=_0xb97ebd,{icon:_0x2a0ef5,id:_0x1d4d6f,className:_0x4518d7,extend:_0x4da51a,..._0x241414}=_0x4846f8,_0x7af0eb=(_0x21c4a0(0x147)+_0x1d4d6f+'\x20'+(_0x4518d7||''))[_0x21c4a0(0x195)](),_0x4050f5=_0x1062c7('_'+Oe());return G(_0x2a0ef5,''+_0x1d4d6f,{'defIds':_0x2a0ef5['defIds'],'idSuffix':_0x4050f5[_0x21c4a0(0x146)]},{'ref':_0x238dc1,'className':_0x7af0eb,..._0x241414},_0x4da51a);}function G(_0x53a55d,_0x5cb432,_0x180dd1,_0x4153dc,_0x4c6cea){const _0x2e49e2=_0xb97ebd;return _0x391261(_0x53a55d['tag'],{'key':_0x5cb432,...be(_0x53a55d,_0x180dd1,_0x4c6cea),..._0x4153dc},(Ee(_0x53a55d,_0x180dd1)[_0x2e49e2(0x14f)]||[])[_0x2e49e2(0x170)]((_0x131181,_0x20aa16)=>G(_0x131181,_0x5cb432+'-'+_0x53a55d['tag']+'-'+_0x20aa16,_0x180dd1,void 0x0,_0x4c6cea)));}function be(_0x59171a,_0x5d8324,_0x5c27e7){const _0x37f93d=_0xb97ebd,_0x439f83={..._0x59171a['attrs']};_0x5c27e7!=null&&_0x5c27e7[_0x37f93d(0x1a2)]&&_0x439f83[_0x37f93d(0x15d)]===_0x37f93d(0x1a2)&&(_0x439f83[_0x37f93d(0x15d)]=_0x5c27e7[_0x37f93d(0x1a2)]),_0x59171a[_0x37f93d(0x1a6)]===_0x37f93d(0x131)&&_0x439f83['id']&&(_0x439f83['id']=_0x439f83['id']+_0x5d8324[_0x37f93d(0x19d)]),Object['entries'](_0x439f83)['forEach'](([_0x3d5796,_0x342693])=>{const _0x3ed0e9=_0x37f93d;_0x3d5796==='mask'&&typeof _0x342693=='string'&&(_0x439f83[_0x3d5796]=_0x342693[_0x3ed0e9(0x135)](/url\(#(.*)\)/,_0x3ed0e9(0x18d)+_0x5d8324[_0x3ed0e9(0x19d)]+')'));});const {defIds:_0x15c13c}=_0x5d8324;return!_0x15c13c||_0x15c13c[_0x37f93d(0x13e)]===0x0||(_0x59171a[_0x37f93d(0x1a6)]==='use'&&_0x439f83[_0x37f93d(0x168)]&&(_0x439f83[_0x37f93d(0x168)]=_0x439f83[_0x37f93d(0x168)]+_0x5d8324[_0x37f93d(0x19d)]),Object[_0x37f93d(0x12c)](_0x439f83)[_0x37f93d(0x156)](([_0xb53333,_0x5bac18])=>{const _0x392f0b=_0x37f93d;typeof _0x5bac18=='string'&&(_0x439f83[_0xb53333]=_0x5bac18[_0x392f0b(0x135)](/url\(#(.*)\)/,_0x392f0b(0x18d)+_0x5d8324[_0x392f0b(0x19d)]+')'));})),_0x439f83;}function Ee(_0x277a4,_0x1e831a){const _0x158661=_0xb97ebd;var _0x15f2f0;const {defIds:_0x4ed713}=_0x1e831a;return!_0x4ed713||_0x4ed713[_0x158661(0x13e)]===0x0?_0x277a4:_0x277a4[_0x158661(0x1a6)]===_0x158661(0x151)&&((_0x15f2f0=_0x277a4['children'])!=null&&_0x15f2f0[_0x158661(0x13e)])?{..._0x277a4,'children':_0x277a4[_0x158661(0x14f)][_0x158661(0x170)](_0x7fe7a0=>typeof _0x7fe7a0[_0x158661(0x1b7)]['id']==_0x158661(0x180)&&_0x4ed713&&_0x4ed713[_0x158661(0x16f)](_0x7fe7a0[_0x158661(0x1b7)]['id'])?{..._0x7fe7a0,'attrs':{..._0x7fe7a0[_0x158661(0x1b7)],'id':_0x7fe7a0['attrs']['id']+_0x1e831a[_0x158661(0x19d)]}}:_0x7fe7a0)}:_0x277a4;}function Oe(){const _0x1fcaea=_0xb97ebd;return Math[_0x1fcaea(0x172)]()['toString'](0x24)[_0x1fcaea(0x160)](0x2,0x8);}k[_0xb97ebd(0x1cf)]=_0xb97ebd(0x13f);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb97ebd(0x1d6),'viewBox':_0xb97ebd(0x162),'width':_0xb97ebd(0x154),'height':_0xb97ebd(0x154)},'children':[{'tag':_0xb97ebd(0x1a4),'attrs':{'fill':_0xb97ebd(0x1d5),'d':_0xb97ebd(0x179)}},{'tag':'path','attrs':{'fill':_0xb97ebd(0x1d5),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0xb97ebd(0x1c6),'clipRule':_0xb97ebd(0x1c6)}}]},W=_0xa6af3f(function(_0x5bfd5a,_0x323284){const _0x754374=_0xb97ebd;return _0x391261(k,Object[_0x754374(0x1ac)]({},_0x5bfd5a,{'id':_0x754374(0x19e),'ref':_0x323284,'icon':we}));});W['displayName']=_0xb97ebd(0x153);class L extends _0x377436{constructor(){const _0x2d54b4=_0xb97ebd;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x2d54b4(0x169),new Set());}[_0xb97ebd(0x19a)](_0x439a83){const _0x11c447=_0xb97ebd;return this[_0x11c447(0x15f)]['add'](_0x439a83),_0x406d9b(()=>this['_sharedOperations'][_0x11c447(0x198)](_0x439a83));}['registerInitialStateReporter'](_0x3df2b2){const _0x1eb404=_0xb97ebd;return this[_0x1eb404(0x169)][_0x1eb404(0x1d4)](_0x3df2b2),_0x406d9b(()=>this[_0x1eb404(0x169)]['delete'](_0x3df2b2));}[_0xb97ebd(0x12f)](_0x1a1d5c){const _0x2b2ada=_0xb97ebd;return this[_0x2b2ada(0x15f)][_0x2b2ada(0x167)](_0x1a1d5c);}[_0xb97ebd(0x192)](_0x5dbb47){const _0x5888d9=_0xb97ebd;return Array['from'](this['_reporters'])[_0x5888d9(0x170)](_0x1c85a1=>_0x1c85a1(_0x5dbb47));}}var Ne=Object[_0xb97ebd(0x1d1)],Y=(_0x3ba1cf,_0xebda5a,_0x59ecf0,_0x36fb23)=>{const _0x266246=_0xb97ebd;for(var _0x380174=_0x36fb23>0x1?void 0x0:_0x36fb23?Ne(_0xebda5a,_0x59ecf0):_0xebda5a,_0x1fbaaf=_0x3ba1cf[_0x266246(0x13e)]-0x1,_0x495fa3;_0x1fbaaf>=0x0;_0x1fbaaf--)(_0x495fa3=_0x3ba1cf[_0x1fbaaf])&&(_0x380174=_0x495fa3(_0x380174)||_0x380174);return _0x380174;},_=(_0x1b8fe4,_0x831463)=>(_0x7fe5a8,_0x23dc84)=>_0x831463(_0x7fe5a8,_0x23dc84,_0x1b8fe4);let S=class extends _0x11add2{constructor(_0x401e43,_0x2409e8,_0x38b388){const _0x301666=_0xb97ebd;super(),u(this,_0x301666(0x1ce),new Map()),(this['_univerInstanceService']=_0x401e43,this[_0x301666(0x177)]=_0x2409e8,this[_0x301666(0x1bf)]=_0x38b388,this[_0x301666(0x1c3)]());}async[_0xb97ebd(0x193)](_0x143124){const _0x3cd7ac=_0xb97ebd;return this['_entities'][_0x3cd7ac(0x167)](_0x143124)||await this[_0x3cd7ac(0x13c)](_0x143124),this[_0x3cd7ac(0x1ce)][_0x3cd7ac(0x1a0)](_0x143124);}[_0xb97ebd(0x191)](_0xbc7c47){const _0x94a260=_0xb97ebd;var _0x116bf6;return(_0x116bf6=this[_0x94a260(0x1ce)][_0x94a260(0x1a0)](_0xbc7c47))!=null?_0x116bf6:null;}['_init'](){const _0x3fddd8=_0xb97ebd;this[_0x3fddd8(0x13a)][_0x3fddd8(0x1c9)](_0x577e21[_0x3fddd8(0x155)])['pipe'](_0x1d5b79(this[_0x3fddd8(0x137)]))[_0x3fddd8(0x1c0)](async _0x3e0775=>{const _0xf78b76=_0x3fddd8,_0x3a8a25=_0x3e0775[_0xf78b76(0x199)]();this[_0xf78b76(0x1ce)][_0xf78b76(0x167)](_0x3a8a25)||this[_0xf78b76(0x13c)](_0x3a8a25);}),this[_0x3fddd8(0x13a)][_0x3fddd8(0x157)](_0x577e21[_0x3fddd8(0x155)])['pipe'](_0x1d5b79(this[_0x3fddd8(0x137)]))[_0x3fddd8(0x1c0)](_0x39179c=>{const _0x4ad9ad=_0x3fddd8,_0x136206=_0x39179c['getUnitId'](),_0x37793b=this[_0x4ad9ad(0x1ce)][_0x4ad9ad(0x1a0)](_0x136206);_0x37793b==null||_0x37793b[_0x4ad9ad(0x1ae)]();});}async['_startLiveShareCoordinator'](_0x2ee769){const _0x12d58f=_0xb97ebd,_0x4b0b15=await this[_0x12d58f(0x1bf)][_0x12d58f(0x148)](_0x2ee769),_0x17676c=this[_0x12d58f(0x177)][_0x12d58f(0x164)](N,_0x2ee769,_0x4b0b15);return _0x17676c[_0x12d58f(0x182)](),this['_entities']['set'](_0x2ee769,_0x17676c),_0x17676c;}};S=Y([_(0x0,_0x5ecf6c),_(0x1,_0x21afd6(_0xcfdfef)),_(0x2,_0x21afd6(_0x1fcb99))],S);var c=(_0x4ddd38=>(_0x4ddd38['OFFLINE']=_0xb97ebd(0x183),_0x4ddd38['IDLE']='idle',_0x4ddd38[_0xb97ebd(0x15a)]=_0xb97ebd(0x1d8),_0x4ddd38['NOT_FOLLOWING']=_0xb97ebd(0x1b6),_0x4ddd38[_0xb97ebd(0x1c7)]=_0xb97ebd(0x1c5),_0x4ddd38))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x11add2{constructor(_0xa04050,_0x28d4db,_0x5e5341,_0x24cf1a,_0xc9a123){const _0x4277e7=_0xb97ebd;super(),u(this,_0x4277e7(0x12d),new _0x34692e(_0x4277e7(0x17a))),u(this,_0x4277e7(0x1b9),this[_0x4277e7(0x12d)][_0x4277e7(0x18f)]()),u(this,'_init',!0x1),u(this,_0x4277e7(0x1d7),null),u(this,_0x4277e7(0x190),null),(this[_0x4277e7(0x1a5)]=_0xa04050,this[_0x4277e7(0x197)]=_0x28d4db,this[_0x4277e7(0x1b5)]=_0x5e5341,this['_liveShareService']=_0x24cf1a,this[_0x4277e7(0x1d3)]=_0xc9a123);}get[_0xb97ebd(0x17e)](){const _0x14b4f4=_0xb97ebd;return this[_0x14b4f4(0x12d)]['getValue']();}['dispose'](){const _0x33f15c=_0xb97ebd;var _0x25e5c7;(_0x25e5c7=this[_0x33f15c(0x1d7)])==null||_0x25e5c7[_0x33f15c(0x1ae)](),this['_status$'][_0x33f15c(0x161)]('idle'),this[_0x33f15c(0x12d)][_0x33f15c(0x141)]();}[_0xb97ebd(0x1c4)](){const _0x5125e4=_0xb97ebd;return this[_0x5125e4(0x17e)];}[_0xb97ebd(0x182)](){const _0x4675fd=_0xb97ebd;this[_0x4675fd(0x1c3)]||(this[_0x4675fd(0x1c3)]=!0x0,this['_collabSession']['sessionStatus$'][_0x4675fd(0x17d)](_0x1d5b79(this['dispose$']))['subscribe'](_0x327610=>{const _0x424d42=_0x4675fd;switch(_0x327610){case _0x52fa7b[_0x424d42(0x16a)]:this[_0x424d42(0x1bc)]();break;case _0x52fa7b[_0x424d42(0x130)]:this[_0x424d42(0x16c)]();break;}}),this[_0x4675fd(0x197)][_0x4675fd(0x1ab)][_0x4675fd(0x17d)](_0x1d5b79(this[_0x4675fd(0x137)]))[_0x4675fd(0x1c0)](_0x57fb75=>{const _0x364de5=_0x4675fd,{eventID:_0x1047c1}=_0x57fb75;switch(_0x1047c1){case _0x16f67c['LIVESHARE_NEW_HOST']:this[_0x364de5(0x132)](_0x57fb75);break;case _0x16f67c[_0x364de5(0x14e)]:this['_handleOperation'](_0x57fb75);break;case _0x16f67c[_0x364de5(0x14a)]:this[_0x364de5(0x14c)]();break;case _0x16f67c['NEW_CHANGESETS']:this[_0x364de5(0x14d)](_0x57fb75);break;}}));}[_0xb97ebd(0x196)](){const _0x57edcd=_0xb97ebd;this[_0x57edcd(0x197)][_0x57edcd(0x1b1)]({'eventID':_0x16f67c[_0x57edcd(0x152)],'data':{'unitID':this[_0x57edcd(0x1a5)],'userID':this['_collabSession'][_0x57edcd(0x16e)]()}},this[_0x57edcd(0x1a5)]);}[_0xb97ebd(0x1be)](){const _0x57c425=_0xb97ebd;this[_0x57c425(0x17e)]==='presenting'&&(this[_0x57c425(0x12d)][_0x57c425(0x161)]('idle'),this[_0x57c425(0x197)][_0x57c425(0x1b1)]({'eventID':_0x16f67c[_0x57c425(0x14a)],'data':{'unitID':this[_0x57c425(0x1a5)]}},this[_0x57c425(0x1a5)]));}[_0xb97ebd(0x17b)](){const _0x1203ac=_0xb97ebd;this['_status']===_0x1203ac(0x1b6)&&(this['_status$']['next'](_0x1203ac(0x1d8)),this[_0x1203ac(0x16b)]());}[_0xb97ebd(0x1ca)](){const _0x12dfbd=_0xb97ebd;this['_status']===_0x12dfbd(0x1d8)&&this[_0x12dfbd(0x175)]();}[_0xb97ebd(0x132)](_0x567d18){const _0x2851ef=_0xb97ebd,{presenter:_0x3fec40}=_0x567d18[_0x2851ef(0x173)],_0xb6af38=this[_0x2851ef(0x197)][_0x2851ef(0x16e)]();this['_presenter']=_0x3fec40,_0x3fec40===_0xb6af38?(this[_0x2851ef(0x175)](),this[_0x2851ef(0x18c)]()):this[_0x2851ef(0x17e)]!==_0x2851ef(0x1b6)&&(this[_0x2851ef(0x19f)](),this['_startFollowing']());}[_0xb97ebd(0x159)](){const _0x3a57cf=_0xb97ebd,_0x4d5c7a={'eventID':_0x16f67c[_0x3a57cf(0x14b)]};this[_0x3a57cf(0x197)][_0x3a57cf(0x1b1)](_0x4d5c7a,this[_0x3a57cf(0x1a5)]);}['_handleTerminate'](){const _0x5be85b=_0xb97ebd;this[_0x5be85b(0x190)]=null,this[_0x5be85b(0x17e)]!==_0x5be85b(0x1c5)&&this[_0x5be85b(0x1cd)]();}['_handleNewChangeSets'](_0xc17d40){const _0x5870ac=_0xb97ebd;if(this[_0x5870ac(0x17e)]==='following'&&this['_presenter']===_0xc17d40[_0x5870ac(0x173)][_0x5870ac(0x18b)]){const _0x37146e=_0x583902(_0xc17d40[_0x5870ac(0x173)])[_0x5870ac(0x166)][_0x5870ac(0x1c2)]()[_0x5870ac(0x178)](_0x10fa4f=>_0x10fa4f['id']===_0x258803['id']);if(_0x37146e){const _0x52cdd2=_0x37146e[_0x5870ac(0x1d0)][_0x5870ac(0x13d)],_0x3348c5=_0x37146e[_0x5870ac(0x1d0)][_0x5870ac(0x1ad)]['id'];setTimeout(()=>{const _0x39aedf=_0x5870ac;this['_commandService'][_0x39aedf(0x187)](_0x20c513['id'],{'unitId':_0x52cdd2,'subUnitId':_0x3348c5},{'fromCollab':!0x0});});}}}[_0xb97ebd(0x18c)](){const _0xd6f309=_0xb97ebd;this[_0xd6f309(0x12d)][_0xd6f309(0x161)](_0xd6f309(0x1c5));const _0x31199b=new Map(),_0x1d4405=this['_commandDisposable']=new _0x7bc84b();_0x1d4405['add'](_0x406d9b(()=>{const _0x403979=_0xd6f309;_0x31199b[_0x403979(0x156)](_0x8acb59=>_0x8acb59['complete']()),_0x31199b[_0x403979(0x142)]();})),_0x1d4405[_0xd6f309(0x1d4)](this[_0xd6f309(0x1d3)][_0xd6f309(0x1b3)](_0x5edd8f=>{const _0x38e5f9=_0xd6f309;var _0x161b35;if(_0x5edd8f[_0x38e5f9(0x134)]!==_0x3cef27[_0x38e5f9(0x1cc)]||!this[_0x38e5f9(0x1c8)][_0x38e5f9(0x12f)](_0x5edd8f['id']))return;const {id:_0x358196}=_0x5edd8f;let _0x26f6c0;_0x31199b[_0x38e5f9(0x167)](_0x358196)?_0x26f6c0=_0x31199b[_0x38e5f9(0x1a0)](_0x358196):(_0x26f6c0=new _0x2766e6(),_0x31199b[_0x38e5f9(0x133)](_0x358196,_0x26f6c0),_0x26f6c0['pipe'](_0x1ffa79((_0x161b35=this[_0x38e5f9(0x1b5)]['getConfig'](Ce))!=null?_0x161b35:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x52d9b4=>{const _0x2abb07=_0x38e5f9;this[_0x2abb07(0x197)][_0x2abb07(0x1b1)]({'eventID':_0x16f67c[_0x2abb07(0x14e)],'data':{'unitID':this[_0x2abb07(0x1a5)],'operations':{[_0x52d9b4['id']]:{'id':_0x52d9b4['id'],'params':JSON[_0x2abb07(0x188)](_0x52d9b4[_0x2abb07(0x1d0)])}}}},this[_0x2abb07(0x1a5)]);})),_0x26f6c0[_0x38e5f9(0x161)](_0x5edd8f);})),this[_0xd6f309(0x1c8)][_0xd6f309(0x192)](this['_unitID'])['forEach'](_0x14e2d9=>this['_collabSession'][_0xd6f309(0x1b1)]({'eventID':_0x16f67c[_0xd6f309(0x14e)],'data':{'unitID':this['_unitID'],'operations':{[_0x14e2d9['id']]:{'id':_0x14e2d9['id'],'params':JSON[_0xd6f309(0x188)](_0x14e2d9[_0xd6f309(0x1d0)])}}}},this['_unitID']));}[_0xb97ebd(0x19f)](){const _0xb703ce=_0xb97ebd;var _0x317ee5;this[_0xb703ce(0x12d)][_0xb703ce(0x161)](_0xb703ce(0x17a)),(_0x317ee5=this[_0xb703ce(0x1d7)])==null||_0x317ee5['dispose'](),this[_0xb703ce(0x1d7)]=null;}['_startFollowing'](){const _0x5ccde5=_0xb97ebd;var _0xa71b36;(_0xa71b36=this[_0x5ccde5(0x1d7)])==null||_0xa71b36['dispose'](),this[_0x5ccde5(0x12d)][_0x5ccde5(0x161)](_0x5ccde5(0x1d8));}[_0xb97ebd(0x1cd)](){const _0x2ebeaa=_0xb97ebd;var _0x10a215;this['_status$'][_0x2ebeaa(0x161)](_0x2ebeaa(0x17a)),(_0x10a215=this['_commandDisposable'])==null||_0x10a215[_0x2ebeaa(0x1ae)](),this[_0x2ebeaa(0x1d7)]=null;}[_0xb97ebd(0x175)](){const _0x1d6877=_0xb97ebd;var _0x140019;this['_status$'][_0x1d6877(0x161)](_0x1d6877(0x1b6)),(_0x140019=this[_0x1d6877(0x1d7)])==null||_0x140019[_0x1d6877(0x1ae)]();}[_0xb97ebd(0x1af)](_0x3c95f8){const _0x18e827=_0xb97ebd;if([_0x18e827(0x1c5),_0x18e827(0x1b6),_0x18e827(0x183)]['includes'](this[_0x18e827(0x17e)])||!_0x3c95f8[_0x18e827(0x173)][_0x18e827(0x165)]||_0x3c95f8[_0x18e827(0x173)]['presenter']===this[_0x18e827(0x197)]['getMemberID']())return;this[_0x18e827(0x17e)]===_0x18e827(0x17a)&&this[_0x18e827(0x16b)]();const _0x13b82d=_0x3c95f8['data'][_0x18e827(0x1a3)];Object['values'](_0x13b82d)[_0x18e827(0x156)](_0x35c3c5=>{const _0x254983=_0x18e827;this[_0x254983(0x1d3)][_0x254983(0x187)](_0x35c3c5['id'],_0x35c3c5['params']?JSON[_0x254983(0x17c)](_0x35c3c5[_0x254983(0x1d0)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x97774e=_0xb97ebd;var _0x1f485f;this[_0x97774e(0x12d)][_0x97774e(0x161)](_0x97774e(0x183)),(_0x1f485f=this[_0x97774e(0x1d7)])==null||_0x1f485f['dispose']();}['_handleOnline'](){const _0x3db83a=_0xb97ebd;this[_0x3db83a(0x12d)][_0x3db83a(0x161)]('idle'),this[_0x3db83a(0x159)]();}};N=Y([_(0x2,_0x5f372e),_(0x3,_0x21afd6(L)),_(0x4,_0x190649)],N);function Le(){const _0x4616a2=_0xb97ebd,_0x29a61d=_0x1320d6(S),_0x1fed18=_0x1320d6(_0x5ecf6c),_0x5a716c=_0x518c90(()=>_0x1fed18[_0x4616a2(0x1cb)](_0x577e21['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x161b0e,_0x574f7e]=_0x396812(null),[_0x4660c1,_0x51d593]=_0x396812(c[_0x4616a2(0x1d9)]),_0x5b21d5=_0x1062c7(null);return _0x1482f8(()=>(_0x5a716c&&_0x29a61d[_0x4616a2(0x193)](_0x5a716c['getUnitId']())[_0x4616a2(0x1bb)](_0x426e7f=>{const _0x108122=_0x4616a2;_0x574f7e(_0x426e7f),_0x5b21d5[_0x108122(0x146)]=_0x426e7f[_0x108122(0x1b9)][_0x108122(0x1c0)](_0x37f5eb=>{_0x51d593(_0x37f5eb);});}),()=>{const _0x4fb283=_0x4616a2;var _0xabdb62;(_0xabdb62=_0x5b21d5['current'])==null||_0xabdb62[_0x4fb283(0x15e)](),_0x5b21d5[_0x4fb283(0x146)]=null;}),[_0x5a716c,_0x29a61d]),_0x161b0e?_0x580725(_0x270a52,{'align':_0x4616a2(0x149),'disabled':_0x4660c1===c[_0x4616a2(0x16a)],'className':_0x4616a2(0x185),'overlay':_0x580725(Re,{'status':_0x4660c1,'coordinator':_0x161b0e}),'children':_0x580725('button',{'className':_0xc4ee54(_0x4616a2(0x1a8),{'univer-cursor-not-allowed':_0x4660c1===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4660c1!==c[_0x4616a2(0x16a)]}),'type':_0x4616a2(0x1b2),'children':_0x580725(W,{'className':_0x4616a2(0x19b)})})}):null;}function Re(_0x7e8eaf){const _0x429441=_0xb97ebd,{status:_0x1c7b2e,coordinator:_0x1723d8}=_0x7e8eaf;switch(_0x1c7b2e){case c['IDLE']:return _0x580725($e,{'coordinator':_0x1723d8});case c[_0x429441(0x15a)]:return _0x580725(xe,{'coordinator':_0x1723d8});case c[_0x429441(0x1a7)]:return _0x580725(Pe,{'coordinator':_0x1723d8});case c['OFFLINE']:return _0x580725(Te,{});case c[_0x429441(0x1c7)]:return _0x580725(Ae,{'coordinator':_0x1723d8});default:return null;}}function $e(_0x144a77){const _0x5d8958=_0xb97ebd,{coordinator:_0x5f271f}=_0x144a77;return _0x1abc97(_0x2c36f8,{'children':[_0x580725(_0x5d8958(0x1d2),{'className':_0x5d8958(0x1a9),'children':_0x5d8958(0x189)}),_0x580725(_0x613aad,{'onClick':()=>_0x5f271f[_0x5d8958(0x196)](),'children':_0x5d8958(0x163)})]});}function xe(_0x24d177){const _0x895592=_0xb97ebd,{coordinator:_0x310348}=_0x24d177;return _0x1abc97(_0x2c36f8,{'children':[_0x580725(_0x895592(0x1d2),{'className':_0x895592(0x1a9),'children':_0x895592(0x181)}),_0x580725(_0x613aad,{'onClick':()=>_0x310348[_0x895592(0x1ca)](),'children':_0x895592(0x15c)})]});}function Pe(_0x3f720e){const _0x10c940=_0xb97ebd,{coordinator:_0x9e8d1}=_0x3f720e;return _0x1abc97(_0x2c36f8,{'children':[_0x580725(_0x10c940(0x1d2),{'className':_0x10c940(0x1a9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x580725(_0x613aad,{'variant':_0x10c940(0x139),'onClick':()=>_0x9e8d1['startFollowing'](),'children':_0x10c940(0x13b)})]});}function Ae(_0x1f18ba){const _0x123e9f=_0xb97ebd,{coordinator:_0x4d87f2}=_0x1f18ba;return _0x1abc97(_0x2c36f8,{'children':[_0x580725(_0x123e9f(0x1d2),{'className':_0x123e9f(0x1a9),'children':_0x123e9f(0x16d)}),_0x580725(_0x613aad,{'variant':_0x123e9f(0x1b4),'onClick':()=>_0x4d87f2[_0x123e9f(0x1be)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x199038=_0xb97ebd;return _0x580725(_0x2c36f8,{'children':_0x199038(0x136)});}var Fe=Object[_0xb97ebd(0x1d1)],He=(_0xb9922a,_0x3b7c00,_0x1862b0,_0x26ecdc)=>{for(var _0x470922=_0x26ecdc>0x1?void 0x0:_0x26ecdc?Fe(_0x3b7c00,_0x1862b0):_0x3b7c00,_0x56b2a1=_0xb9922a['length']-0x1,_0x417346;_0x56b2a1>=0x0;_0x56b2a1--)(_0x417346=_0xb9922a[_0x56b2a1])&&(_0x470922=_0x417346(_0x470922)||_0x470922);return _0x470922;},A=(_0x389f6f,_0x13590a)=>(_0xf11285,_0x2b062e)=>_0x13590a(_0xf11285,_0x2b062e,_0x389f6f);let m=class extends _0x377436{constructor(_0x4ef1f9,_0xdde6ab){const _0x346c12=_0xb97ebd;super(),this[_0x346c12(0x177)]=_0x4ef1f9,this[_0x346c12(0x186)]=_0xdde6ab,this[_0x346c12(0x150)]();}[_0xb97ebd(0x150)](){const _0x54a2de=_0xb97ebd;this[_0x54a2de(0x158)](this[_0x54a2de(0x186)][_0x54a2de(0x1aa)](_0x3439ae['HEADER_MENU'],()=>_0x24235a(Le,this[_0x54a2de(0x177)])));}};m=He([A(0x0,_0x21afd6(_0xcfdfef)),A(0x1,_0x2d5715)],m);const ye=_0xb97ebd(0x1bd),T={};var Ue=Object[_0xb97ebd(0x1d1)],Ve=(_0x4fea7c,_0x3804ca,_0x14cd9a,_0x5392a6)=>{const _0x16a58e=_0xb97ebd;for(var _0x2bd492=_0x5392a6>0x1?void 0x0:_0x5392a6?Ue(_0x3804ca,_0x14cd9a):_0x3804ca,_0x564a45=_0x4fea7c[_0x16a58e(0x13e)]-0x1,_0x459f74;_0x564a45>=0x0;_0x564a45--)(_0x459f74=_0x4fea7c[_0x564a45])&&(_0x2bd492=_0x459f74(_0x2bd492)||_0x2bd492);return _0x2bd492;},je=(_0x2fbc0d,_0x56446b)=>(_0x1a52e8,_0x24da30)=>_0x56446b(_0x1a52e8,_0x24da30,_0x2fbc0d);let I=class extends _0x377436{constructor(_0x1da181){const _0x16f374=_0xb97ebd;super(),this[_0x16f374(0x1c8)]=_0x1da181,this[_0x16f374(0x1c3)]();}[_0xb97ebd(0x1c3)](){[_0x1d388b['id'],_0x5ae5dd['id'],_0x20c513['id']]['forEach'](_0x5031de=>{const _0x23882f=_0x9b6e;this['disposeWithMe'](this[_0x23882f(0x1c8)][_0x23882f(0x19a)](_0x5031de));});}};I=Ve([je(0x0,_0x21afd6(L))],I);var Me=Object['defineProperty'],ke=Object[_0xb97ebd(0x1d1)],Ge=(_0x2c844e,_0x3c1b21,_0x11f24f)=>_0x3c1b21 in _0x2c844e?Me(_0x2c844e,_0x3c1b21,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11f24f}):_0x2c844e[_0x3c1b21]=_0x11f24f,We=(_0x1cf6a1,_0x37d751,_0x39b8ad,_0x165be1)=>{for(var _0x7a9cb6=_0x165be1>0x1?void 0x0:_0x165be1?ke(_0x37d751,_0x39b8ad):_0x37d751,_0xba2f44=_0x1cf6a1['length']-0x1,_0x1d3735;_0xba2f44>=0x0;_0xba2f44--)(_0x1d3735=_0x1cf6a1[_0xba2f44])&&(_0x7a9cb6=_0x1d3735(_0x7a9cb6)||_0x7a9cb6);return _0x7a9cb6;},F=(_0x2647c3,_0x3a5df3)=>(_0x598f72,_0x5d6f48)=>_0x3a5df3(_0x598f72,_0x5d6f48,_0x2647c3),B=(_0x32963c,_0x1574cd,_0x4b5623)=>Ge(_0x32963c,typeof _0x1574cd!='symbol'?_0x1574cd+'':_0x1574cd,_0x4b5623);const Ye=_0xb97ebd(0x18a);function _0x5a47(){const _0x47b424=['displayName','params','getOwnPropertyDescriptor','div','_commandService','add','currentColor','none','_commandDisposable','following','IDLE','entries','_status$','887670RrQrHk','shouldShareOperation','ONLINE','mask','_handleNewHost','set','type','replace','You\x27are\x20offline.','dispose$','onStarting','text','_univerInstanceService','Start\x20following','_startLiveShareCoordinator','unitId','length','UniverIcon','onRendered','complete','clear','222GrZTuq','override','848832igNGWH','current','univerjs-icon\x20univerjs-icon-','requireSession','end','LIVESHARE_TERMINATE','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','_handleNewChangeSets','LIVESHARE_OPERATION','children','_mountLiveShare','defs','LIVESHARE_REQUEST_HOST','LiveShareIcon','1em','UNIVER_SHEET','forEach','getTypeOfUnitDisposed$','disposeWithMe','_fetchOperations','FOLLOWING','symbol','Stop\x20following','fill','unsubscribe','_sharedOperations','substring','next','0\x200\x2017\x2017','Start','createInstance','presenter','mutations','has','xlink:href','_reporters','OFFLINE','_startFollowing','_handleOnline','You\x27re\x20presenting\x20the\x20document','getMemberID','includes','map','UNIVER_UNKNOWN','random','data','3372vHaGuI','_stopFollowing','1230rZpCbz','_injector','find','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','idle','startFollowing','parse','pipe','_status','32VQuTWB','string','You\x27re\x20following\x20the\x20presenter','init','offline','10FPltqm','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','_uiPartsService','executeCommand','stringify','Present\x20this\x20document','UNIVER_LIVE_SHARE_PLUGIN','memberID','_startPresenting','url(#$1','_config','asObservable','_presenter','getLiveShareCoordinatorSync','getInitialStates','getLiveShareCoordinator','21gwYUKA','trim','tryStartPresenting','_collabSession','delete','getUnitId','registerSharedOperation','univer-size-4','814517IALzsd','idSuffix','live-share-icon','_stopPresenting','get','19002QcPxCr','colorChannel1','operations','path','_unitID','tag','NOT_FOLLOWING','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerComponent','event$','assign','sheet','dispose','_handleOperation','defineProperty','send','button','onCommandExecuted','default','_configService','not-following','attrs','11008spDGtU','status$','1485110yDBSiE','then','_handleOffline','live-share.config','stopPresenting','_collabSessionService','subscribe','22555KtoOyF','reverse','_init','getStatus','presenting','evenodd','PRESENTING','_liveShareService','getTypeOfUnitAdded$','stopFollowing','getCurrentTypeOfUnit$','OPERATION','_beIdle','_entities'];_0x5a47=function(){return _0x47b424;};return _0x5a47();}let b=class extends _0x306fe4{constructor(_0x103448=T,_0x147663,_0x153121){const _0x1b6785=_0xb97ebd;super(),this[_0x1b6785(0x18e)]=_0x103448,this[_0x1b6785(0x177)]=_0x147663,this[_0x1b6785(0x1b5)]=_0x153121;const {..._0x5d4092}=_0x1a51a5({},T,this[_0x1b6785(0x18e)]);this[_0x1b6785(0x1b5)]['setConfig'](ye,_0x5d4092);}[_0xb97ebd(0x138)](){const _0x3c3eb4=_0xb97ebd;_0x533093(this[_0x3c3eb4(0x177)],_0x47b025([[L],[S],[I],[m]],this['_config'][_0x3c3eb4(0x144)])),_0x4a7426(this[_0x3c3eb4(0x177)],[[I]]);}[_0xb97ebd(0x140)](){_0x4a7426(this['_injector'],[[m]]);}};B(b,_0xb97ebd(0x134),_0x577e21[_0xb97ebd(0x171)]),B(b,'pluginName',Ye),b=We([_0x362c5b(_0x11a085),F(0x1,_0x21afd6(_0xcfdfef)),F(0x2,_0x5f372e)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x28483d=_0x5a0d;(function(_0x290b11,_0x36a553){const _0x1919f9=_0x5a0d,_0x4746c2=_0x290b11();while(!![]){try{const _0x31b3db=-parseInt(_0x1919f9(0x1bb))/0x1*(parseInt(_0x1919f9(0x193))/0x2)+-parseInt(_0x1919f9(0x1a1))/0x3*(-parseInt(_0x1919f9(0x209))/0x4)+-parseInt(_0x1919f9(0x1fe))/0x5+-parseInt(_0x1919f9(0x18b))/0x6+-parseInt(_0x1919f9(0x1af))/0x7+parseInt(_0x1919f9(0x198))/0x8+parseInt(_0x1919f9(0x1c4))/0x9*(parseInt(_0x1919f9(0x1fc))/0xa);if(_0x31b3db===_0x36a553)break;else _0x4746c2['push'](_0x4746c2['shift']());}catch(_0x20e26c){_0x4746c2['push'](_0x4746c2['shift']());}}}(_0x4c4f,0x6b9fe));var J=Object[_0x28483d(0x1e0)],K=(_0x473961,_0x59fb21,_0xa53e3c)=>_0x59fb21 in _0x473961?J(_0x473961,_0x59fb21,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa53e3c}):_0x473961[_0x59fb21]=_0xa53e3c,u=(_0x432b73,_0x5052e7,_0x23009e)=>K(_0x432b73,typeof _0x5052e7!='symbol'?_0x5052e7+'':_0x5052e7,_0x23009e);import{Disposable as _0x415a2,toDisposable as _0x32aa81,IUniverInstanceService as _0x240c37,Inject as _0x100628,Injector as _0x1e4d19,IConfigService as _0x28819f,ICommandService as _0x553dea,RxDisposable as _0x4e959a,UniverInstanceType as _0x1da7ce,DisposableCollection as _0xe53e61,CommandType as _0x37c949,DependentOn as _0x414cfb,Plugin as _0x1a183f,merge as _0x4cb9a7,registerDependencies as _0x5c9e8b,mergeOverrideWithDependencies as _0x175362,touchDependencies as _0xb23083}from'@univerjs/core';import{useDependency as _0x23a79c,useObservable as _0x13956b,IUIPartsService as _0x4f58c8,BuiltInUIPart as _0x591e95,connectInjector as _0x560990}from'@univerjs/ui';import{jsx as _0x1c2c9e,jsxs as _0x8cd725,Fragment as _0x4fb667}from'react/jsx-runtime';import{Dropdown as _0x1ffd19,clsx as _0x52a3f7,Button as _0x29e220}from'@univerjs/design';import{useRef as _0x36dedb,createElement as _0x49f114,forwardRef as _0x340b2,useState as _0xd82959,useEffect as _0x54962e}from'react';import{CollaborationEvent as _0x413f6e,parseProtocolChangeset as _0x3f2aee}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2e835c,SessionStatus as _0x216c33,UniverCollaborationClientPlugin as _0x18716e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2cbc0d,SetWorksheetActiveOperation as _0x5143a7}from'@univerjs/sheets';import{BehaviorSubject as _0x2ad11c,Subject as _0x5a8bbd}from'rxjs';import{takeUntil as _0x3cbd1c,throttleTime as _0x2b2451}from'rxjs/operators';import{SetZoomRatioOperation as _0x3d23dc,SetScrollOperation as _0x3b0aa1}from'@univerjs/sheets-ui';function k({ref:_0x22bc8b,..._0x4c537e}){const _0x51e7b5=_0x28483d,{icon:_0x13ce29,id:_0x1331d5,className:_0xb8810b,extend:_0x269ab1,..._0xdb098}=_0x4c537e,_0x41ffb3=('univerjs-icon\x20univerjs-icon-'+_0x1331d5+'\x20'+(_0xb8810b||''))[_0x51e7b5(0x19d)](),_0x131cc2=_0x36dedb('_'+Oe());return G(_0x13ce29,''+_0x1331d5,{'defIds':_0x13ce29['defIds'],'idSuffix':_0x131cc2[_0x51e7b5(0x224)]},{'ref':_0x22bc8b,'className':_0x41ffb3,..._0xdb098},_0x269ab1);}function G(_0x3fe745,_0xb1103f,_0x567ecb,_0x138b8e,_0xe8766b){const _0x47d24f=_0x28483d;return _0x49f114(_0x3fe745[_0x47d24f(0x1ee)],{'key':_0xb1103f,...be(_0x3fe745,_0x567ecb,_0xe8766b),..._0x138b8e},(Ee(_0x3fe745,_0x567ecb)[_0x47d24f(0x19b)]||[])[_0x47d24f(0x1ca)]((_0x3c85ad,_0x43dcc5)=>G(_0x3c85ad,_0xb1103f+'-'+_0x3fe745[_0x47d24f(0x1ee)]+'-'+_0x43dcc5,_0x567ecb,void 0x0,_0xe8766b)));}function be(_0x26c60b,_0x488b3f,_0x1a6c69){const _0x448dd8=_0x28483d,_0x54676b={..._0x26c60b[_0x448dd8(0x229)]};_0x1a6c69!=null&&_0x1a6c69[_0x448dd8(0x206)]&&_0x54676b[_0x448dd8(0x1db)]===_0x448dd8(0x206)&&(_0x54676b[_0x448dd8(0x1db)]=_0x1a6c69[_0x448dd8(0x206)]),_0x26c60b[_0x448dd8(0x1ee)]===_0x448dd8(0x1a7)&&_0x54676b['id']&&(_0x54676b['id']=_0x54676b['id']+_0x488b3f[_0x448dd8(0x1b1)]),Object[_0x448dd8(0x1eb)](_0x54676b)[_0x448dd8(0x1b6)](([_0x410e3e,_0x17c973])=>{const _0x2c0c67=_0x448dd8;_0x410e3e==='mask'&&typeof _0x17c973==_0x2c0c67(0x21d)&&(_0x54676b[_0x410e3e]=_0x17c973[_0x2c0c67(0x1dd)](/url\(#(.*)\)/,_0x2c0c67(0x20c)+_0x488b3f[_0x2c0c67(0x1b1)]+')'));});const {defIds:_0x510b14}=_0x488b3f;return!_0x510b14||_0x510b14['length']===0x0||(_0x26c60b[_0x448dd8(0x1ee)]===_0x448dd8(0x222)&&_0x54676b[_0x448dd8(0x1aa)]&&(_0x54676b[_0x448dd8(0x1aa)]=_0x54676b[_0x448dd8(0x1aa)]+_0x488b3f[_0x448dd8(0x1b1)]),Object['entries'](_0x54676b)['forEach'](([_0x49c9db,_0xed6ae4])=>{const _0x2bdca1=_0x448dd8;typeof _0xed6ae4==_0x2bdca1(0x21d)&&(_0x54676b[_0x49c9db]=_0xed6ae4[_0x2bdca1(0x1dd)](/url\(#(.*)\)/,_0x2bdca1(0x20c)+_0x488b3f[_0x2bdca1(0x1b1)]+')'));})),_0x54676b;}function Ee(_0x2d1622,_0x2d773f){const _0x2c5354=_0x28483d;var _0x46f311;const {defIds:_0x4f9c22}=_0x2d773f;return!_0x4f9c22||_0x4f9c22[_0x2c5354(0x1d6)]===0x0?_0x2d1622:_0x2d1622[_0x2c5354(0x1ee)]===_0x2c5354(0x1f4)&&((_0x46f311=_0x2d1622[_0x2c5354(0x19b)])!=null&&_0x46f311[_0x2c5354(0x1d6)])?{..._0x2d1622,'children':_0x2d1622[_0x2c5354(0x19b)][_0x2c5354(0x1ca)](_0x1b0550=>typeof _0x1b0550['attrs']['id']==_0x2c5354(0x21d)&&_0x4f9c22&&_0x4f9c22['includes'](_0x1b0550[_0x2c5354(0x229)]['id'])?{..._0x1b0550,'attrs':{..._0x1b0550['attrs'],'id':_0x1b0550[_0x2c5354(0x229)]['id']+_0x2d773f[_0x2c5354(0x1b1)]}}:_0x1b0550)}:_0x2d1622;}function Oe(){const _0x1a5828=_0x28483d;return Math[_0x1a5828(0x232)]()[_0x1a5828(0x18e)](0x24)[_0x1a5828(0x218)](0x2,0x8);}k[_0x28483d(0x22f)]=_0x28483d(0x1b0);function _0x5a0d(_0x53b63d,_0x1a6b2b){const _0x4c4f5a=_0x4c4f();return _0x5a0d=function(_0x5a0ddd,_0x200c29){_0x5a0ddd=_0x5a0ddd-0x18a;let _0x2d884f=_0x4c4f5a[_0x5a0ddd];return _0x2d884f;},_0x5a0d(_0x53b63d,_0x1a6b2b);}const we={'tag':_0x28483d(0x21a),'attrs':{'xmlns':_0x28483d(0x1c0),'fill':_0x28483d(0x1f0),'viewBox':_0x28483d(0x202),'width':_0x28483d(0x1f1),'height':_0x28483d(0x1f1)},'children':[{'tag':_0x28483d(0x194),'attrs':{'fill':_0x28483d(0x1a9),'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':_0x28483d(0x194),'attrs':{'fill':'currentColor','d':_0x28483d(0x19a),'fillRule':'evenodd','clipRule':_0x28483d(0x225)}}]},W=_0x340b2(function(_0x5107d8,_0x1579f1){const _0x327143=_0x28483d;return _0x49f114(k,Object[_0x327143(0x1d7)]({},_0x5107d8,{'id':_0x327143(0x1d2),'ref':_0x1579f1,'icon':we}));});W[_0x28483d(0x22f)]=_0x28483d(0x1de);class L extends _0x415a2{constructor(){const _0x189e39=_0x28483d;super(...arguments),u(this,_0x189e39(0x207),new Set()),u(this,_0x189e39(0x19f),new Set());}[_0x28483d(0x1a5)](_0x314029){const _0x4f538f=_0x28483d;return this['_sharedOperations']['add'](_0x314029),_0x32aa81(()=>this[_0x4f538f(0x207)][_0x4f538f(0x1f6)](_0x314029));}[_0x28483d(0x20b)](_0x538f80){const _0x53f7e6=_0x28483d;return this[_0x53f7e6(0x19f)][_0x53f7e6(0x19e)](_0x538f80),_0x32aa81(()=>this[_0x53f7e6(0x19f)][_0x53f7e6(0x1f6)](_0x538f80));}['shouldShareOperation'](_0x1ae86a){const _0x45b7d1=_0x28483d;return this[_0x45b7d1(0x207)]['has'](_0x1ae86a);}['getInitialStates'](_0x59a0df){const _0x534892=_0x28483d;return Array[_0x534892(0x1da)](this[_0x534892(0x19f)])[_0x534892(0x1ca)](_0x55d7ef=>_0x55d7ef(_0x59a0df));}}var Ne=Object[_0x28483d(0x1b3)],Y=(_0x45df4d,_0x32e14f,_0x89f62a,_0x4631dc)=>{const _0x2a1d2c=_0x28483d;for(var _0x4ca646=_0x4631dc>0x1?void 0x0:_0x4631dc?Ne(_0x32e14f,_0x89f62a):_0x32e14f,_0x39a798=_0x45df4d[_0x2a1d2c(0x1d6)]-0x1,_0x4af6bc;_0x39a798>=0x0;_0x39a798--)(_0x4af6bc=_0x45df4d[_0x39a798])&&(_0x4ca646=_0x4af6bc(_0x4ca646)||_0x4ca646);return _0x4ca646;},_=(_0x249a9c,_0x188b77)=>(_0x114828,_0x17768c)=>_0x188b77(_0x114828,_0x17768c,_0x249a9c);let S=class extends _0x4e959a{constructor(_0x182ea4,_0x56e68a,_0x4a3896){const _0x38ca23=_0x28483d;super(),u(this,_0x38ca23(0x192),new Map()),(this[_0x38ca23(0x234)]=_0x182ea4,this['_injector']=_0x56e68a,this['_collabSessionService']=_0x4a3896,this[_0x38ca23(0x205)]());}async['getLiveShareCoordinator'](_0x39eee6){const _0x2c441d=_0x28483d;return this[_0x2c441d(0x192)][_0x2c441d(0x201)](_0x39eee6)||await this[_0x2c441d(0x20e)](_0x39eee6),this[_0x2c441d(0x192)][_0x2c441d(0x1cc)](_0x39eee6);}['getLiveShareCoordinatorSync'](_0x404245){const _0x52c558=_0x28483d;var _0x5cacdc;return(_0x5cacdc=this[_0x52c558(0x192)][_0x52c558(0x1cc)](_0x404245))!=null?_0x5cacdc:null;}[_0x28483d(0x205)](){const _0x2e045d=_0x28483d;this['_univerInstanceService'][_0x2e045d(0x231)](_0x1da7ce[_0x2e045d(0x1ea)])[_0x2e045d(0x212)](_0x3cbd1c(this[_0x2e045d(0x1e5)]))[_0x2e045d(0x22a)](async _0x1493eb=>{const _0x358a97=_0x2e045d,_0x3bda41=_0x1493eb[_0x358a97(0x1d5)]();this[_0x358a97(0x192)][_0x358a97(0x201)](_0x3bda41)||this[_0x358a97(0x20e)](_0x3bda41);}),this['_univerInstanceService'][_0x2e045d(0x1a0)](_0x1da7ce[_0x2e045d(0x1ea)])[_0x2e045d(0x212)](_0x3cbd1c(this[_0x2e045d(0x1e5)]))['subscribe'](_0x362cdd=>{const _0x34a6b1=_0x2e045d,_0x417169=_0x362cdd[_0x34a6b1(0x1d5)](),_0x11aa01=this[_0x34a6b1(0x192)]['get'](_0x417169);_0x11aa01==null||_0x11aa01[_0x34a6b1(0x210)]();});}async['_startLiveShareCoordinator'](_0x39dcb7){const _0x3ad79a=_0x28483d,_0x5f1f48=await this['_collabSessionService'][_0x3ad79a(0x21e)](_0x39dcb7),_0x5f4811=this[_0x3ad79a(0x22e)]['createInstance'](N,_0x39dcb7,_0x5f1f48);return _0x5f4811[_0x3ad79a(0x199)](),this[_0x3ad79a(0x192)][_0x3ad79a(0x1bc)](_0x39dcb7,_0x5f4811),_0x5f4811;}};S=Y([_(0x0,_0x240c37),_(0x1,_0x100628(_0x1e4d19)),_(0x2,_0x100628(_0x2e835c))],S);var c=(_0x594ee7=>(_0x594ee7[_0x28483d(0x1d3)]=_0x28483d(0x1d1),_0x594ee7[_0x28483d(0x22c)]=_0x28483d(0x204),_0x594ee7[_0x28483d(0x219)]=_0x28483d(0x18a),_0x594ee7[_0x28483d(0x18d)]=_0x28483d(0x1bd),_0x594ee7[_0x28483d(0x1df)]=_0x28483d(0x227),_0x594ee7))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x4e959a{constructor(_0xaaec2f,_0x5ff498,_0xfc8671,_0xde38a8,_0x234e95){const _0x1d9a19=_0x28483d;super(),u(this,_0x1d9a19(0x233),new _0x2ad11c(_0x1d9a19(0x204))),u(this,_0x1d9a19(0x1b7),this[_0x1d9a19(0x233)][_0x1d9a19(0x1e2)]()),u(this,_0x1d9a19(0x205),!0x1),u(this,_0x1d9a19(0x1e9),null),u(this,_0x1d9a19(0x1ce),null),(this['_unitID']=_0xaaec2f,this[_0x1d9a19(0x196)]=_0x5ff498,this['_configService']=_0xfc8671,this[_0x1d9a19(0x1f5)]=_0xde38a8,this['_commandService']=_0x234e95);}get[_0x28483d(0x1e7)](){const _0x162f56=_0x28483d;return this['_status$'][_0x162f56(0x1b5)]();}[_0x28483d(0x210)](){const _0x5cdb00=_0x28483d;var _0x4731da;(_0x4731da=this[_0x5cdb00(0x1e9)])==null||_0x4731da[_0x5cdb00(0x210)](),this[_0x5cdb00(0x233)]['next']('idle'),this[_0x5cdb00(0x233)][_0x5cdb00(0x1bf)]();}[_0x28483d(0x1dc)](){return this['_status'];}[_0x28483d(0x199)](){const _0x4430a3=_0x28483d;this[_0x4430a3(0x205)]||(this[_0x4430a3(0x205)]=!0x0,this['_collabSession'][_0x4430a3(0x195)][_0x4430a3(0x212)](_0x3cbd1c(this['dispose$']))[_0x4430a3(0x22a)](_0xfecb78=>{const _0x4a4102=_0x4430a3;switch(_0xfecb78){case _0x216c33[_0x4a4102(0x1d3)]:this['_handleOffline']();break;case _0x216c33['ONLINE']:this[_0x4a4102(0x1c8)]();break;}}),this[_0x4430a3(0x196)]['event$']['pipe'](_0x3cbd1c(this[_0x4430a3(0x1e5)]))['subscribe'](_0x36fd86=>{const _0x9f4709=_0x4430a3,{eventID:_0x5419f2}=_0x36fd86;switch(_0x5419f2){case _0x413f6e[_0x9f4709(0x1d9)]:this['_handleNewHost'](_0x36fd86);break;case _0x413f6e[_0x9f4709(0x1c1)]:this[_0x9f4709(0x1d4)](_0x36fd86);break;case _0x413f6e[_0x9f4709(0x1e3)]:this[_0x9f4709(0x1fa)]();break;case _0x413f6e[_0x9f4709(0x1a2)]:this[_0x9f4709(0x1cf)](_0x36fd86);break;}}));}['tryStartPresenting'](){const _0x3065ed=_0x28483d;this['_collabSession'][_0x3065ed(0x216)]({'eventID':_0x413f6e[_0x3065ed(0x18f)],'data':{'unitID':this['_unitID'],'userID':this[_0x3065ed(0x196)][_0x3065ed(0x1c3)]()}},this[_0x3065ed(0x208)]);}['stopPresenting'](){const _0x35dc7c=_0x28483d;this[_0x35dc7c(0x1e7)]==='presenting'&&(this[_0x35dc7c(0x233)][_0x35dc7c(0x20f)]('idle'),this[_0x35dc7c(0x196)]['send']({'eventID':_0x413f6e['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x35dc7c(0x208)]}},this['_unitID']));}[_0x28483d(0x191)](){const _0x8e3f52=_0x28483d;this[_0x8e3f52(0x1e7)]===_0x8e3f52(0x1bd)&&(this['_status$']['next']('following'),this[_0x8e3f52(0x1e4)]());}['stopFollowing'](){const _0x184c66=_0x28483d;this[_0x184c66(0x1e7)]==='following'&&this['_stopFollowing']();}[_0x28483d(0x190)](_0x5117a6){const _0x533981=_0x28483d,{presenter:_0x3d277e}=_0x5117a6[_0x533981(0x213)],_0x55a530=this[_0x533981(0x196)][_0x533981(0x1c3)]();this[_0x533981(0x1ce)]=_0x3d277e,_0x3d277e===_0x55a530?(this[_0x533981(0x1ff)](),this[_0x533981(0x1c5)]()):this[_0x533981(0x1e7)]!==_0x533981(0x1bd)&&(this['_stopPresenting'](),this[_0x533981(0x1e4)]());}[_0x28483d(0x211)](){const _0x22bf29=_0x28483d,_0x33bf4d={'eventID':_0x413f6e[_0x22bf29(0x203)]};this['_collabSession'][_0x22bf29(0x216)](_0x33bf4d,this[_0x22bf29(0x208)]);}[_0x28483d(0x1fa)](){const _0x40724c=_0x28483d;this['_presenter']=null,this[_0x40724c(0x1e7)]!==_0x40724c(0x227)&&this[_0x40724c(0x1ab)]();}['_handleNewChangeSets'](_0x1c2775){const _0x2c4a40=_0x28483d;if(this[_0x2c4a40(0x1e7)]==='following'&&this[_0x2c4a40(0x1ce)]===_0x1c2775[_0x2c4a40(0x213)][_0x2c4a40(0x1be)]){const _0x5dd8b2=_0x3f2aee(_0x1c2775[_0x2c4a40(0x213)])[_0x2c4a40(0x1f7)][_0x2c4a40(0x18c)]()[_0x2c4a40(0x221)](_0x5e9a1d=>_0x5e9a1d['id']===_0x2cbc0d['id']);if(_0x5dd8b2){const _0x56b8ce=_0x5dd8b2[_0x2c4a40(0x1ae)]['unitId'],_0x53e8cf=_0x5dd8b2[_0x2c4a40(0x1ae)][_0x2c4a40(0x21b)]['id'];setTimeout(()=>{const _0x2b6b58=_0x2c4a40;this[_0x2b6b58(0x1d0)][_0x2b6b58(0x1cb)](_0x5143a7['id'],{'unitId':_0x56b8ce,'subUnitId':_0x53e8cf},{'fromCollab':!0x0});});}}}[_0x28483d(0x1c5)](){const _0x54e5a1=_0x28483d;this[_0x54e5a1(0x233)][_0x54e5a1(0x20f)]('presenting');const _0x2c10f0=new Map(),_0x33b03f=this[_0x54e5a1(0x1e9)]=new _0xe53e61();_0x33b03f[_0x54e5a1(0x19e)](_0x32aa81(()=>{const _0x1430f5=_0x54e5a1;_0x2c10f0['forEach'](_0x2955c2=>_0x2955c2[_0x1430f5(0x1bf)]()),_0x2c10f0[_0x1430f5(0x1f3)]();})),_0x33b03f[_0x54e5a1(0x19e)](this[_0x54e5a1(0x1d0)][_0x54e5a1(0x215)](_0x26c721=>{const _0x1b6f4a=_0x54e5a1;var _0x44b369;if(_0x26c721['type']!==_0x37c949[_0x1b6f4a(0x220)]||!this[_0x1b6f4a(0x1f5)][_0x1b6f4a(0x1c2)](_0x26c721['id']))return;const {id:_0x34a49d}=_0x26c721;let _0x1d14bc;_0x2c10f0[_0x1b6f4a(0x201)](_0x34a49d)?_0x1d14bc=_0x2c10f0[_0x1b6f4a(0x1cc)](_0x34a49d):(_0x1d14bc=new _0x5a8bbd(),_0x2c10f0[_0x1b6f4a(0x1bc)](_0x34a49d,_0x1d14bc),_0x1d14bc[_0x1b6f4a(0x212)](_0x2b2451((_0x44b369=this[_0x1b6f4a(0x21f)]['getConfig'](Ce))!=null?_0x44b369:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1b6f4a(0x22a)](_0xa7e8f6=>{const _0x4f1d28=_0x1b6f4a;this[_0x4f1d28(0x196)][_0x4f1d28(0x216)]({'eventID':_0x413f6e[_0x4f1d28(0x1c1)],'data':{'unitID':this[_0x4f1d28(0x208)],'operations':{[_0xa7e8f6['id']]:{'id':_0xa7e8f6['id'],'params':JSON[_0x4f1d28(0x1f8)](_0xa7e8f6[_0x4f1d28(0x1ae)])}}}},this[_0x4f1d28(0x208)]);})),_0x1d14bc[_0x1b6f4a(0x20f)](_0x26c721);})),this[_0x54e5a1(0x1f5)][_0x54e5a1(0x1c6)](this[_0x54e5a1(0x208)])[_0x54e5a1(0x1b6)](_0xa8981b=>this['_collabSession'][_0x54e5a1(0x216)]({'eventID':_0x413f6e[_0x54e5a1(0x1c1)],'data':{'unitID':this[_0x54e5a1(0x208)],'operations':{[_0xa8981b['id']]:{'id':_0xa8981b['id'],'params':JSON[_0x54e5a1(0x1f8)](_0xa8981b['params'])}}}},this['_unitID']));}['_stopPresenting'](){const _0x58e902=_0x28483d;var _0x1b1ed4;this[_0x58e902(0x233)][_0x58e902(0x20f)](_0x58e902(0x204)),(_0x1b1ed4=this[_0x58e902(0x1e9)])==null||_0x1b1ed4[_0x58e902(0x210)](),this[_0x58e902(0x1e9)]=null;}['_startFollowing'](){const _0x3aec53=_0x28483d;var _0x10403b;(_0x10403b=this[_0x3aec53(0x1e9)])==null||_0x10403b[_0x3aec53(0x210)](),this[_0x3aec53(0x233)]['next'](_0x3aec53(0x18a));}[_0x28483d(0x1ab)](){const _0x3ed9ad=_0x28483d;var _0x1078b2;this['_status$']['next']('idle'),(_0x1078b2=this[_0x3ed9ad(0x1e9)])==null||_0x1078b2[_0x3ed9ad(0x210)](),this[_0x3ed9ad(0x1e9)]=null;}[_0x28483d(0x1ff)](){const _0x4f9431=_0x28483d;var _0x18b111;this[_0x4f9431(0x233)][_0x4f9431(0x20f)](_0x4f9431(0x1bd)),(_0x18b111=this['_commandDisposable'])==null||_0x18b111[_0x4f9431(0x210)]();}[_0x28483d(0x1d4)](_0x2b8587){const _0x500851=_0x28483d;if(['presenting','not-following',_0x500851(0x1d1)][_0x500851(0x1b2)](this[_0x500851(0x1e7)])||!_0x2b8587[_0x500851(0x213)][_0x500851(0x1ba)]||_0x2b8587['data'][_0x500851(0x1ba)]===this['_collabSession'][_0x500851(0x1c3)]())return;this[_0x500851(0x1e7)]===_0x500851(0x204)&&this[_0x500851(0x1e4)]();const _0x5d691a=_0x2b8587[_0x500851(0x213)][_0x500851(0x1ec)];Object[_0x500851(0x230)](_0x5d691a)['forEach'](_0x5a1353=>{const _0x2d4e8e=_0x500851;this[_0x2d4e8e(0x1d0)][_0x2d4e8e(0x1cb)](_0x5a1353['id'],_0x5a1353['params']?JSON[_0x2d4e8e(0x20d)](_0x5a1353[_0x2d4e8e(0x1ae)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x2fa878=_0x28483d;var _0x116da6;this[_0x2fa878(0x233)][_0x2fa878(0x20f)](_0x2fa878(0x1d1)),(_0x116da6=this['_commandDisposable'])==null||_0x116da6['dispose']();}[_0x28483d(0x1c8)](){const _0x1b04fb=_0x28483d;this[_0x1b04fb(0x233)][_0x1b04fb(0x20f)](_0x1b04fb(0x204)),this[_0x1b04fb(0x211)]();}};N=Y([_(0x2,_0x28819f),_(0x3,_0x100628(L)),_(0x4,_0x553dea)],N);function Le(){const _0xb21795=_0x28483d,_0x24b2a8=_0x23a79c(S),_0x1e2005=_0x23a79c(_0x240c37),_0x123d25=_0x13956b(()=>_0x1e2005['getCurrentTypeOfUnit$'](_0x1da7ce['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x11b712,_0x202241]=_0xd82959(null),[_0x3abca4,_0xcfc894]=_0xd82959(c[_0xb21795(0x22c)]),_0x52dca4=_0x36dedb(null);return _0x54962e(()=>(_0x123d25&&_0x24b2a8[_0xb21795(0x21c)](_0x123d25[_0xb21795(0x1d5)]())[_0xb21795(0x20a)](_0x15c463=>{const _0x3a1f79=_0xb21795;_0x202241(_0x15c463),_0x52dca4[_0x3a1f79(0x224)]=_0x15c463[_0x3a1f79(0x1b7)][_0x3a1f79(0x22a)](_0x4986d9=>{_0xcfc894(_0x4986d9);});}),()=>{const _0x1117bc=_0xb21795;var _0x202def;(_0x202def=_0x52dca4[_0x1117bc(0x224)])==null||_0x202def[_0x1117bc(0x1b9)](),_0x52dca4[_0x1117bc(0x224)]=null;}),[_0x123d25,_0x24b2a8]),_0x11b712?_0x1c2c9e(_0x1ffd19,{'align':_0xb21795(0x1a4),'disabled':_0x3abca4===c[_0xb21795(0x1d3)],'className':_0xb21795(0x1ac),'overlay':_0x1c2c9e(Re,{'status':_0x3abca4,'coordinator':_0x11b712}),'children':_0x1c2c9e('button',{'className':_0x52a3f7(_0xb21795(0x19c),{'univer-cursor-not-allowed':_0x3abca4===c[_0xb21795(0x1d3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3abca4!==c[_0xb21795(0x1d3)]}),'type':_0xb21795(0x217),'children':_0x1c2c9e(W,{'className':_0xb21795(0x197)})})}):null;}function Re(_0x4b1a9e){const _0x50c7fa=_0x28483d,{status:_0x424271,coordinator:_0x556572}=_0x4b1a9e;switch(_0x424271){case c[_0x50c7fa(0x22c)]:return _0x1c2c9e($e,{'coordinator':_0x556572});case c['FOLLOWING']:return _0x1c2c9e(xe,{'coordinator':_0x556572});case c[_0x50c7fa(0x18d)]:return _0x1c2c9e(Pe,{'coordinator':_0x556572});case c['OFFLINE']:return _0x1c2c9e(Te,{});case c['PRESENTING']:return _0x1c2c9e(Ae,{'coordinator':_0x556572});default:return null;}}function $e(_0x287ed1){const _0x39448e=_0x28483d,{coordinator:_0x41ea09}=_0x287ed1;return _0x8cd725(_0x4fb667,{'children':[_0x1c2c9e(_0x39448e(0x1a6),{'className':_0x39448e(0x1e6),'children':'Present\x20this\x20document'}),_0x1c2c9e(_0x29e220,{'onClick':()=>_0x41ea09[_0x39448e(0x1fb)](),'children':'Start'})]});}function xe(_0x288a53){const _0x2f74f5=_0x28483d,{coordinator:_0x5dafab}=_0x288a53;return _0x8cd725(_0x4fb667,{'children':[_0x1c2c9e(_0x2f74f5(0x1a6),{'className':_0x2f74f5(0x1e6),'children':_0x2f74f5(0x1b4)}),_0x1c2c9e(_0x29e220,{'onClick':()=>_0x5dafab[_0x2f74f5(0x1ad)](),'children':_0x2f74f5(0x228)})]});}function Pe(_0x3abaf4){const _0x1e1da6=_0x28483d,{coordinator:_0x412731}=_0x3abaf4;return _0x8cd725(_0x4fb667,{'children':[_0x1c2c9e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1c2c9e(_0x29e220,{'variant':_0x1e1da6(0x1c7),'onClick':()=>_0x412731['startFollowing'](),'children':_0x1e1da6(0x1f2)})]});}function Ae(_0x467235){const _0x5bc0fc=_0x28483d,{coordinator:_0x59ca87}=_0x467235;return _0x8cd725(_0x4fb667,{'children':[_0x1c2c9e('div',{'className':_0x5bc0fc(0x1e6),'children':_0x5bc0fc(0x1ef)}),_0x1c2c9e(_0x29e220,{'variant':_0x5bc0fc(0x1e1),'onClick':()=>_0x59ca87[_0x5bc0fc(0x214)](),'children':_0x5bc0fc(0x226)})]});}function Te(){const _0x155d43=_0x28483d;return _0x1c2c9e(_0x4fb667,{'children':_0x155d43(0x1a8)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x143bbc,_0x122728,_0x244b5c,_0x400d8a)=>{const _0x1f02cb=_0x28483d;for(var _0x5add9d=_0x400d8a>0x1?void 0x0:_0x400d8a?Fe(_0x122728,_0x244b5c):_0x122728,_0x57a139=_0x143bbc[_0x1f02cb(0x1d6)]-0x1,_0x118d6c;_0x57a139>=0x0;_0x57a139--)(_0x118d6c=_0x143bbc[_0x57a139])&&(_0x5add9d=_0x118d6c(_0x5add9d)||_0x5add9d);return _0x5add9d;},A=(_0x5cee8a,_0x2f109f)=>(_0x321ecf,_0x15cc82)=>_0x2f109f(_0x321ecf,_0x15cc82,_0x5cee8a);let m=class extends _0x415a2{constructor(_0x262eaa,_0x54cc2a){const _0x32c8ce=_0x28483d;super(),this[_0x32c8ce(0x22e)]=_0x262eaa,this[_0x32c8ce(0x1c9)]=_0x54cc2a,this[_0x32c8ce(0x1d8)]();}['_mountLiveShare'](){const _0x25f663=_0x28483d;this[_0x25f663(0x1b8)](this['_uiPartsService']['registerComponent'](_0x591e95[_0x25f663(0x1a3)],()=>_0x560990(Le,this[_0x25f663(0x22e)])));}};m=He([A(0x0,_0x100628(_0x1e4d19)),A(0x1,_0x4f58c8)],m);const ye=_0x28483d(0x1cd),T={};var Ue=Object[_0x28483d(0x1b3)],Ve=(_0x5f3596,_0x50d7dc,_0x2a3545,_0x7ea1d2)=>{const _0x2c2ce9=_0x28483d;for(var _0x275ccd=_0x7ea1d2>0x1?void 0x0:_0x7ea1d2?Ue(_0x50d7dc,_0x2a3545):_0x50d7dc,_0x3df4ba=_0x5f3596[_0x2c2ce9(0x1d6)]-0x1,_0x5b43e1;_0x3df4ba>=0x0;_0x3df4ba--)(_0x5b43e1=_0x5f3596[_0x3df4ba])&&(_0x275ccd=_0x5b43e1(_0x275ccd)||_0x275ccd);return _0x275ccd;},je=(_0x2103d8,_0x173db8)=>(_0x508ac6,_0x24f85a)=>_0x173db8(_0x508ac6,_0x24f85a,_0x2103d8);let I=class extends _0x415a2{constructor(_0x2d014a){const _0x43722c=_0x28483d;super(),this[_0x43722c(0x1f5)]=_0x2d014a,this[_0x43722c(0x205)]();}[_0x28483d(0x205)](){[_0x3d23dc['id'],_0x3b0aa1['id'],_0x5143a7['id']]['forEach'](_0x29ee48=>{const _0x2908eb=_0x5a0d;this[_0x2908eb(0x1b8)](this[_0x2908eb(0x1f5)][_0x2908eb(0x1a5)](_0x29ee48));});}};I=Ve([je(0x0,_0x100628(L))],I);var Me=Object[_0x28483d(0x1e0)],ke=Object[_0x28483d(0x1b3)],Ge=(_0x55b69a,_0x23caba,_0x5467e8)=>_0x23caba in _0x55b69a?Me(_0x55b69a,_0x23caba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5467e8}):_0x55b69a[_0x23caba]=_0x5467e8,We=(_0x271c37,_0x3add07,_0x49f7e0,_0x5bd5b9)=>{const _0x40c156=_0x28483d;for(var _0x4dcf85=_0x5bd5b9>0x1?void 0x0:_0x5bd5b9?ke(_0x3add07,_0x49f7e0):_0x3add07,_0x55a6cf=_0x271c37[_0x40c156(0x1d6)]-0x1,_0x5cfcf0;_0x55a6cf>=0x0;_0x55a6cf--)(_0x5cfcf0=_0x271c37[_0x55a6cf])&&(_0x4dcf85=_0x5cfcf0(_0x4dcf85)||_0x4dcf85);return _0x4dcf85;},F=(_0xb8878c,_0x1d609d)=>(_0x1ddca0,_0x4e00bc)=>_0x1d609d(_0x1ddca0,_0x4e00bc,_0xb8878c),B=(_0x46f7db,_0x203a20,_0x1d5d97)=>Ge(_0x46f7db,typeof _0x203a20!=_0x28483d(0x200)?_0x203a20+'':_0x203a20,_0x1d5d97);function _0x4c4f(){const _0x64e179=['trim','add','_reporters','getTypeOfUnitDisposed$','2602113euDmhc','NEW_CHANGESETS','HEADER_MENU','end','registerSharedOperation','div','mask','You\x27are\x20offline.','currentColor','xlink:href','_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','stopFollowing','params','5874428kGzlUL','UniverIcon','idSuffix','includes','getOwnPropertyDescriptor','You\x27re\x20following\x20the\x20presenter','getValue','forEach','status$','disposeWithMe','unsubscribe','presenter','2fyXTgs','set','not-following','memberID','complete','http://www.w3.org/2000/svg','LIVESHARE_OPERATION','shouldShareOperation','getMemberID','16727814CnFXam','_startPresenting','getInitialStates','text','_handleOnline','_uiPartsService','map','executeCommand','get','live-share.config','_presenter','_handleNewChangeSets','_commandService','offline','live-share-icon','OFFLINE','_handleOperation','getUnitId','length','assign','_mountLiveShare','LIVESHARE_NEW_HOST','from','fill','getStatus','replace','LiveShareIcon','PRESENTING','defineProperty','default','asObservable','LIVESHARE_TERMINATE','_startFollowing','dispose$','univer-mb-3\x20univer-w-full\x20univer-text-sm','_status','override','_commandDisposable','UNIVER_SHEET','entries','operations','onRendered','tag','You\x27re\x20presenting\x20the\x20document','none','1em','Start\x20following','clear','defs','_liveShareService','delete','mutations','stringify','onStarting','_handleTerminate','tryStartPresenting','10SYARAS','setConfig','4057625HRxWTa','_stopFollowing','symbol','has','0\x200\x2017\x2017','LIVESHARE_FETCH_OPERATIONS','idle','_init','colorChannel1','_sharedOperations','_unitID','4HnfsfY','then','registerInitialStateReporter','url(#$1','parse','_startLiveShareCoordinator','next','dispose','_fetchOperations','pipe','data','stopPresenting','onCommandExecuted','send','button','substring','FOLLOWING','svg','sheet','getLiveShareCoordinator','string','requireSession','_configService','OPERATION','find','use','type','current','evenodd','Stop\x20presenting','presenting','Stop\x20following','attrs','subscribe','_config','IDLE','pluginName','_injector','displayName','values','getTypeOfUnitAdded$','random','_status$','_univerInstanceService','following','624606leCqzL','reverse','NOT_FOLLOWING','toString','LIVESHARE_REQUEST_HOST','_handleNewHost','startFollowing','_entities','662954fpGCOM','path','sessionStatus$','_collabSession','univer-size-4','1060776dOXzpv','init','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','children','univer-border-none\x20univer-text-gray-600\x20univer-outline-none'];_0x4c4f=function(){return _0x64e179;};return _0x4c4f();}const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x1a183f{constructor(_0x4ecc82=T,_0xf1e941,_0x31a6c5){const _0x5486a9=_0x28483d;super(),this[_0x5486a9(0x22b)]=_0x4ecc82,this['_injector']=_0xf1e941,this[_0x5486a9(0x21f)]=_0x31a6c5;const {..._0x5b320e}=_0x4cb9a7({},T,this[_0x5486a9(0x22b)]);this[_0x5486a9(0x21f)][_0x5486a9(0x1fd)](ye,_0x5b320e);}[_0x28483d(0x1f9)](){const _0x5bfcd5=_0x28483d;_0x5c9e8b(this[_0x5bfcd5(0x22e)],_0x175362([[L],[S],[I],[m]],this[_0x5bfcd5(0x22b)][_0x5bfcd5(0x1e8)])),_0xb23083(this[_0x5bfcd5(0x22e)],[[I]]);}[_0x28483d(0x1ed)](){const _0x4cfb08=_0x28483d;_0xb23083(this[_0x4cfb08(0x22e)],[[m]]);}};B(b,_0x28483d(0x223),_0x1da7ce['UNIVER_UNKNOWN']),B(b,_0x28483d(0x22d),Ye),b=We([_0x414cfb(_0x18716e),F(0x1,_0x100628(_0x1e4d19)),F(0x2,_0x28819f)],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
|
+
function _0x5909(_0x3a3ca3,_0x5c0bce){const _0x28278a=_0x2827();return _0x5909=function(_0x5909b0,_0x11e0e3){_0x5909b0=_0x5909b0-0x13d;let _0x4f99e5=_0x28278a[_0x5909b0];return _0x4f99e5;},_0x5909(_0x3a3ca3,_0x5c0bce);}const _0x4ffa4d=_0x5909;(function(_0xdfbd78,_0x3554c0){const _0x4e6724=_0x5909,_0x1cf184=_0xdfbd78();while(!![]){try{const _0x2b0b43=-parseInt(_0x4e6724(0x15b))/0x1+-parseInt(_0x4e6724(0x158))/0x2+-parseInt(_0x4e6724(0x155))/0x3*(-parseInt(_0x4e6724(0x14f))/0x4)+-parseInt(_0x4e6724(0x13e))/0x5+parseInt(_0x4e6724(0x160))/0x6*(parseInt(_0x4e6724(0x15d))/0x7)+parseInt(_0x4e6724(0x144))/0x8*(parseInt(_0x4e6724(0x14e))/0x9)+parseInt(_0x4e6724(0x147))/0xa;if(_0x2b0b43===_0x3554c0)break;else _0x1cf184['push'](_0x1cf184['shift']());}catch(_0x268cc3){_0x1cf184['push'](_0x1cf184['shift']());}}}(_0x2827,0x5d8c5));import{LiveShareController as _0x33a926,LiveShareStatus as _0x5f10a0}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x35c7e8}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x5a5560}from'@univerjs/sheets';import{SetScrollOperation as _0x22b9ff}from'@univerjs/sheets-ui';function _0x2827(){const _0x78ffe8=['startColumn','startFollowing','6meLvep','stopPresenting','LiveShareStatusEnum','479530TFpjYA','startPresenting','getSheetId','syncExecuteCommand','getId','No\x20active\x20workbook\x20found.','779992XnFPPI','_initialize','stopFollowing','1304530mRbdRF','getRenderById','getUnitId','extend','_commandService','tryStartPresenting','getLiveShareStatus','63yXRHTJ','378104bvmzym','PRESENTING','getActiveWorkbook','IDLE','get','getStatus','24YCcojm','startRow','_injector','798076iGrPrZ','executeCommand','getLiveShareCoordinatorSync','750416wDbKkw','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','415653kGfLbo'];_0x2827=function(){return _0x78ffe8;};return _0x2827();}import{FRange as _0x5ce20e}from'@univerjs/sheets/facade';import{FUniver as _0x4076a0,FEnum as _0x4e8144}from'@univerjs/core/facade';class I extends _0x5ce20e{[_0x4ffa4d(0x145)](_0x379f0d,_0x364aee,_0xc1f157,_0xbe095e,_0x26c82f){const _0x4f6eac=_0x4ffa4d,_0x1c41d5=_0x379f0d[_0x4f6eac(0x153)](_0x33a926),_0x1f0dc6=_0x379f0d[_0x4f6eac(0x153)](_0x35c7e8),_0x3fa6c4=_0x364aee[_0x4f6eac(0x149)](),_0x1b18da=_0x364aee['getActiveSheet'](),_0x1bbc08=_0x1c41d5['getLiveShareCoordinatorSync'](_0x3fa6c4);(_0x1bbc08==null?void 0x0:_0x1bbc08[_0x4f6eac(0x154)]())!==_0x5f10a0[_0x4f6eac(0x150)]||(_0xc1f157[_0x4f6eac(0x140)]()!==_0x1b18da[_0x4f6eac(0x140)]()&&this[_0x4f6eac(0x14b)][_0x4f6eac(0x159)](_0x5a5560['id'],{'unitId':_0x3fa6c4,'subUnitId':_0xc1f157[_0x4f6eac(0x140)]()}),!_0x1f0dc6[_0x4f6eac(0x148)](_0x3fa6c4))||_0x26c82f[_0x4f6eac(0x141)](_0x22b9ff['id'],{'unitId':_0x364aee['getUnitId'](),'sheetId':_0xc1f157[_0x4f6eac(0x140)](),'sheetViewStartRow':_0xbe095e[_0x4f6eac(0x156)],'sheetViewStartColumn':_0xbe095e[_0x4f6eac(0x15e)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5ce20e['extend'](I);class m extends _0x4076a0{[_0x4ffa4d(0x14d)](){const _0x246e6b=_0x4ffa4d;var _0x3ce3f3,_0x2671b4;const _0x556cda=this[_0x246e6b(0x157)][_0x246e6b(0x153)](_0x33a926),_0x5f14fe=(_0x3ce3f3=this['getActiveWorkbook']())==null?void 0x0:_0x3ce3f3[_0x246e6b(0x142)]();if(!_0x5f14fe)throw new Error('No\x20active\x20workbook\x20found.');const _0x401ff4=_0x556cda['getLiveShareCoordinatorSync'](_0x5f14fe);return(_0x2671b4=_0x401ff4==null?void 0x0:_0x401ff4[_0x246e6b(0x154)]())!=null?_0x2671b4:_0x5f10a0[_0x246e6b(0x152)];}[_0x4ffa4d(0x15f)](){const _0x82a457=_0x4ffa4d;var _0x11500d;const _0x2082e8=this[_0x82a457(0x157)]['get'](_0x33a926),_0x26c2ec=(_0x11500d=this['getActiveWorkbook']())==null?void 0x0:_0x11500d[_0x82a457(0x142)]();if(!_0x26c2ec)throw new Error(_0x82a457(0x143));const _0x363175=_0x2082e8[_0x82a457(0x15a)](_0x26c2ec);if(!_0x363175)throw new Error(_0x82a457(0x15c));_0x363175[_0x82a457(0x15f)]();}[_0x4ffa4d(0x146)](){const _0x12a900=_0x4ffa4d;var _0x16a26a;const _0x4ef3fe=this[_0x12a900(0x157)][_0x12a900(0x153)](_0x33a926),_0x3c15ba=(_0x16a26a=this[_0x12a900(0x151)]())==null?void 0x0:_0x16a26a[_0x12a900(0x142)]();if(!_0x3c15ba)throw new Error(_0x12a900(0x143));const _0x180875=_0x4ef3fe[_0x12a900(0x15a)](_0x3c15ba);if(!_0x180875)throw new Error(_0x12a900(0x15c));_0x180875[_0x12a900(0x146)]();}[_0x4ffa4d(0x13f)](){const _0x3466b8=_0x4ffa4d;var _0x4f5456;const _0x198273=this[_0x3466b8(0x157)][_0x3466b8(0x153)](_0x33a926),_0x49b409=(_0x4f5456=this[_0x3466b8(0x151)]())==null?void 0x0:_0x4f5456[_0x3466b8(0x142)]();if(!_0x49b409)throw new Error(_0x3466b8(0x143));const _0x45771e=_0x198273[_0x3466b8(0x15a)](_0x49b409);if(!_0x45771e)throw new Error(_0x3466b8(0x15c));_0x45771e[_0x3466b8(0x14c)]();}[_0x4ffa4d(0x161)](){const _0x1cda48=_0x4ffa4d;var _0x4aa30e;const _0x5e64a0=this[_0x1cda48(0x157)][_0x1cda48(0x153)](_0x33a926),_0x32d243=(_0x4aa30e=this[_0x1cda48(0x151)]())==null?void 0x0:_0x4aa30e['getId']();if(!_0x32d243)throw new Error(_0x1cda48(0x143));const _0x13446b=_0x5e64a0[_0x1cda48(0x15a)](_0x32d243);if(!_0x13446b)throw new Error(_0x1cda48(0x15c));_0x13446b[_0x1cda48(0x161)]();}}_0x4076a0[_0x4ffa4d(0x14a)](m);class C extends _0x4e8144{get[_0x4ffa4d(0x13d)](){return _0x5f10a0;}}_0x4e8144[_0x4ffa4d(0x14a)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xb97ebd=_0x9b6e;(function(_0x3aebba,_0x2089ac){const _0x824a38=_0x9b6e,_0x160b12=_0x3aebba();while(!![]){try{const _0x502100=parseInt(_0x824a38(0x19c))/0x1+parseInt(_0x824a38(0x143))/0x2*(-parseInt(_0x824a38(0x1a1))/0x3)+parseInt(_0x824a38(0x1b8))/0x4*(parseInt(_0x824a38(0x176))/0x5)+parseInt(_0x824a38(0x145))/0x6*(parseInt(_0x824a38(0x194))/0x7)+-parseInt(_0x824a38(0x17f))/0x8*(parseInt(_0x824a38(0x12e))/0x9)+parseInt(_0x824a38(0x184))/0xa*(parseInt(_0x824a38(0x1ba))/0xb)+-parseInt(_0x824a38(0x174))/0xc*(parseInt(_0x824a38(0x1c1))/0xd);if(_0x502100===_0x2089ac)break;else _0x160b12['push'](_0x160b12['shift']());}catch(_0x42732b){_0x160b12['push'](_0x160b12['shift']());}}}(_0x5a47,0x71b8e));var J=Object[_0xb97ebd(0x1b0)],K=(_0x1dcce9,_0x3ca04b,_0x1caa7a)=>_0x3ca04b in _0x1dcce9?J(_0x1dcce9,_0x3ca04b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1caa7a}):_0x1dcce9[_0x3ca04b]=_0x1caa7a,u=(_0x18f61b,_0xf096fe,_0x26adcb)=>K(_0x18f61b,typeof _0xf096fe!=_0xb97ebd(0x15b)?_0xf096fe+'':_0xf096fe,_0x26adcb);import{Disposable as _0x377436,toDisposable as _0x406d9b,IUniverInstanceService as _0x5ecf6c,Inject as _0x21afd6,Injector as _0xcfdfef,IConfigService as _0x5f372e,ICommandService as _0x190649,RxDisposable as _0x11add2,UniverInstanceType as _0x577e21,DisposableCollection as _0x7bc84b,CommandType as _0x3cef27,DependentOn as _0x362c5b,Plugin as _0x306fe4,merge as _0x1a51a5,registerDependencies as _0x533093,mergeOverrideWithDependencies as _0x47b025,touchDependencies as _0x4a7426}from'@univerjs/core';import{useDependency as _0x1320d6,useObservable as _0x518c90,IUIPartsService as _0x2d5715,BuiltInUIPart as _0x3439ae,connectInjector as _0x24235a}from'@univerjs/ui';import{jsx as _0x580725,jsxs as _0x1abc97,Fragment as _0x2c36f8}from'react/jsx-runtime';import{Dropdown as _0x270a52,clsx as _0xc4ee54,Button as _0x613aad}from'@univerjs/design';function _0x9b6e(_0x120f2b,_0x1942b4){const _0x5a4722=_0x5a47();return _0x9b6e=function(_0x9b6e2f,_0x46a200){_0x9b6e2f=_0x9b6e2f-0x12c;let _0x147712=_0x5a4722[_0x9b6e2f];return _0x147712;},_0x9b6e(_0x120f2b,_0x1942b4);}import{useRef as _0x1062c7,createElement as _0x391261,forwardRef as _0xa6af3f,useState as _0x396812,useEffect as _0x1482f8}from'react';import{CollaborationEvent as _0x16f67c,parseProtocolChangeset as _0x583902}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1fcb99,SessionStatus as _0x52fa7b,UniverCollaborationClientPlugin as _0x11a085}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x258803,SetWorksheetActiveOperation as _0x20c513}from'@univerjs/sheets';import{BehaviorSubject as _0x34692e,Subject as _0x2766e6}from'rxjs';import{takeUntil as _0x1d5b79,throttleTime as _0x1ffa79}from'rxjs/operators';import{SetZoomRatioOperation as _0x1d388b,SetScrollOperation as _0x5ae5dd}from'@univerjs/sheets-ui';function k({ref:_0x238dc1,..._0x4846f8}){const _0x21c4a0=_0xb97ebd,{icon:_0x2a0ef5,id:_0x1d4d6f,className:_0x4518d7,extend:_0x4da51a,..._0x241414}=_0x4846f8,_0x7af0eb=(_0x21c4a0(0x147)+_0x1d4d6f+'\x20'+(_0x4518d7||''))[_0x21c4a0(0x195)](),_0x4050f5=_0x1062c7('_'+Oe());return G(_0x2a0ef5,''+_0x1d4d6f,{'defIds':_0x2a0ef5['defIds'],'idSuffix':_0x4050f5[_0x21c4a0(0x146)]},{'ref':_0x238dc1,'className':_0x7af0eb,..._0x241414},_0x4da51a);}function G(_0x53a55d,_0x5cb432,_0x180dd1,_0x4153dc,_0x4c6cea){const _0x2e49e2=_0xb97ebd;return _0x391261(_0x53a55d['tag'],{'key':_0x5cb432,...be(_0x53a55d,_0x180dd1,_0x4c6cea),..._0x4153dc},(Ee(_0x53a55d,_0x180dd1)[_0x2e49e2(0x14f)]||[])[_0x2e49e2(0x170)]((_0x131181,_0x20aa16)=>G(_0x131181,_0x5cb432+'-'+_0x53a55d['tag']+'-'+_0x20aa16,_0x180dd1,void 0x0,_0x4c6cea)));}function be(_0x59171a,_0x5d8324,_0x5c27e7){const _0x37f93d=_0xb97ebd,_0x439f83={..._0x59171a['attrs']};_0x5c27e7!=null&&_0x5c27e7[_0x37f93d(0x1a2)]&&_0x439f83[_0x37f93d(0x15d)]===_0x37f93d(0x1a2)&&(_0x439f83[_0x37f93d(0x15d)]=_0x5c27e7[_0x37f93d(0x1a2)]),_0x59171a[_0x37f93d(0x1a6)]===_0x37f93d(0x131)&&_0x439f83['id']&&(_0x439f83['id']=_0x439f83['id']+_0x5d8324[_0x37f93d(0x19d)]),Object['entries'](_0x439f83)['forEach'](([_0x3d5796,_0x342693])=>{const _0x3ed0e9=_0x37f93d;_0x3d5796==='mask'&&typeof _0x342693=='string'&&(_0x439f83[_0x3d5796]=_0x342693[_0x3ed0e9(0x135)](/url\(#(.*)\)/,_0x3ed0e9(0x18d)+_0x5d8324[_0x3ed0e9(0x19d)]+')'));});const {defIds:_0x15c13c}=_0x5d8324;return!_0x15c13c||_0x15c13c[_0x37f93d(0x13e)]===0x0||(_0x59171a[_0x37f93d(0x1a6)]==='use'&&_0x439f83[_0x37f93d(0x168)]&&(_0x439f83[_0x37f93d(0x168)]=_0x439f83[_0x37f93d(0x168)]+_0x5d8324[_0x37f93d(0x19d)]),Object[_0x37f93d(0x12c)](_0x439f83)[_0x37f93d(0x156)](([_0xb53333,_0x5bac18])=>{const _0x392f0b=_0x37f93d;typeof _0x5bac18=='string'&&(_0x439f83[_0xb53333]=_0x5bac18[_0x392f0b(0x135)](/url\(#(.*)\)/,_0x392f0b(0x18d)+_0x5d8324[_0x392f0b(0x19d)]+')'));})),_0x439f83;}function Ee(_0x277a4,_0x1e831a){const _0x158661=_0xb97ebd;var _0x15f2f0;const {defIds:_0x4ed713}=_0x1e831a;return!_0x4ed713||_0x4ed713[_0x158661(0x13e)]===0x0?_0x277a4:_0x277a4[_0x158661(0x1a6)]===_0x158661(0x151)&&((_0x15f2f0=_0x277a4['children'])!=null&&_0x15f2f0[_0x158661(0x13e)])?{..._0x277a4,'children':_0x277a4[_0x158661(0x14f)][_0x158661(0x170)](_0x7fe7a0=>typeof _0x7fe7a0[_0x158661(0x1b7)]['id']==_0x158661(0x180)&&_0x4ed713&&_0x4ed713[_0x158661(0x16f)](_0x7fe7a0[_0x158661(0x1b7)]['id'])?{..._0x7fe7a0,'attrs':{..._0x7fe7a0[_0x158661(0x1b7)],'id':_0x7fe7a0['attrs']['id']+_0x1e831a[_0x158661(0x19d)]}}:_0x7fe7a0)}:_0x277a4;}function Oe(){const _0x1fcaea=_0xb97ebd;return Math[_0x1fcaea(0x172)]()['toString'](0x24)[_0x1fcaea(0x160)](0x2,0x8);}k[_0xb97ebd(0x1cf)]=_0xb97ebd(0x13f);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb97ebd(0x1d6),'viewBox':_0xb97ebd(0x162),'width':_0xb97ebd(0x154),'height':_0xb97ebd(0x154)},'children':[{'tag':_0xb97ebd(0x1a4),'attrs':{'fill':_0xb97ebd(0x1d5),'d':_0xb97ebd(0x179)}},{'tag':'path','attrs':{'fill':_0xb97ebd(0x1d5),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0xb97ebd(0x1c6),'clipRule':_0xb97ebd(0x1c6)}}]},W=_0xa6af3f(function(_0x5bfd5a,_0x323284){const _0x754374=_0xb97ebd;return _0x391261(k,Object[_0x754374(0x1ac)]({},_0x5bfd5a,{'id':_0x754374(0x19e),'ref':_0x323284,'icon':we}));});W['displayName']=_0xb97ebd(0x153);class L extends _0x377436{constructor(){const _0x2d54b4=_0xb97ebd;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x2d54b4(0x169),new Set());}[_0xb97ebd(0x19a)](_0x439a83){const _0x11c447=_0xb97ebd;return this[_0x11c447(0x15f)]['add'](_0x439a83),_0x406d9b(()=>this['_sharedOperations'][_0x11c447(0x198)](_0x439a83));}['registerInitialStateReporter'](_0x3df2b2){const _0x1eb404=_0xb97ebd;return this[_0x1eb404(0x169)][_0x1eb404(0x1d4)](_0x3df2b2),_0x406d9b(()=>this[_0x1eb404(0x169)]['delete'](_0x3df2b2));}[_0xb97ebd(0x12f)](_0x1a1d5c){const _0x2b2ada=_0xb97ebd;return this[_0x2b2ada(0x15f)][_0x2b2ada(0x167)](_0x1a1d5c);}[_0xb97ebd(0x192)](_0x5dbb47){const _0x5888d9=_0xb97ebd;return Array['from'](this['_reporters'])[_0x5888d9(0x170)](_0x1c85a1=>_0x1c85a1(_0x5dbb47));}}var Ne=Object[_0xb97ebd(0x1d1)],Y=(_0x3ba1cf,_0xebda5a,_0x59ecf0,_0x36fb23)=>{const _0x266246=_0xb97ebd;for(var _0x380174=_0x36fb23>0x1?void 0x0:_0x36fb23?Ne(_0xebda5a,_0x59ecf0):_0xebda5a,_0x1fbaaf=_0x3ba1cf[_0x266246(0x13e)]-0x1,_0x495fa3;_0x1fbaaf>=0x0;_0x1fbaaf--)(_0x495fa3=_0x3ba1cf[_0x1fbaaf])&&(_0x380174=_0x495fa3(_0x380174)||_0x380174);return _0x380174;},_=(_0x1b8fe4,_0x831463)=>(_0x7fe5a8,_0x23dc84)=>_0x831463(_0x7fe5a8,_0x23dc84,_0x1b8fe4);let S=class extends _0x11add2{constructor(_0x401e43,_0x2409e8,_0x38b388){const _0x301666=_0xb97ebd;super(),u(this,_0x301666(0x1ce),new Map()),(this['_univerInstanceService']=_0x401e43,this[_0x301666(0x177)]=_0x2409e8,this[_0x301666(0x1bf)]=_0x38b388,this[_0x301666(0x1c3)]());}async[_0xb97ebd(0x193)](_0x143124){const _0x3cd7ac=_0xb97ebd;return this['_entities'][_0x3cd7ac(0x167)](_0x143124)||await this[_0x3cd7ac(0x13c)](_0x143124),this[_0x3cd7ac(0x1ce)][_0x3cd7ac(0x1a0)](_0x143124);}[_0xb97ebd(0x191)](_0xbc7c47){const _0x94a260=_0xb97ebd;var _0x116bf6;return(_0x116bf6=this[_0x94a260(0x1ce)][_0x94a260(0x1a0)](_0xbc7c47))!=null?_0x116bf6:null;}['_init'](){const _0x3fddd8=_0xb97ebd;this[_0x3fddd8(0x13a)][_0x3fddd8(0x1c9)](_0x577e21[_0x3fddd8(0x155)])['pipe'](_0x1d5b79(this[_0x3fddd8(0x137)]))[_0x3fddd8(0x1c0)](async _0x3e0775=>{const _0xf78b76=_0x3fddd8,_0x3a8a25=_0x3e0775[_0xf78b76(0x199)]();this[_0xf78b76(0x1ce)][_0xf78b76(0x167)](_0x3a8a25)||this[_0xf78b76(0x13c)](_0x3a8a25);}),this[_0x3fddd8(0x13a)][_0x3fddd8(0x157)](_0x577e21[_0x3fddd8(0x155)])['pipe'](_0x1d5b79(this[_0x3fddd8(0x137)]))[_0x3fddd8(0x1c0)](_0x39179c=>{const _0x4ad9ad=_0x3fddd8,_0x136206=_0x39179c['getUnitId'](),_0x37793b=this[_0x4ad9ad(0x1ce)][_0x4ad9ad(0x1a0)](_0x136206);_0x37793b==null||_0x37793b[_0x4ad9ad(0x1ae)]();});}async['_startLiveShareCoordinator'](_0x2ee769){const _0x12d58f=_0xb97ebd,_0x4b0b15=await this[_0x12d58f(0x1bf)][_0x12d58f(0x148)](_0x2ee769),_0x17676c=this[_0x12d58f(0x177)][_0x12d58f(0x164)](N,_0x2ee769,_0x4b0b15);return _0x17676c[_0x12d58f(0x182)](),this['_entities']['set'](_0x2ee769,_0x17676c),_0x17676c;}};S=Y([_(0x0,_0x5ecf6c),_(0x1,_0x21afd6(_0xcfdfef)),_(0x2,_0x21afd6(_0x1fcb99))],S);var c=(_0x4ddd38=>(_0x4ddd38['OFFLINE']=_0xb97ebd(0x183),_0x4ddd38['IDLE']='idle',_0x4ddd38[_0xb97ebd(0x15a)]=_0xb97ebd(0x1d8),_0x4ddd38['NOT_FOLLOWING']=_0xb97ebd(0x1b6),_0x4ddd38[_0xb97ebd(0x1c7)]=_0xb97ebd(0x1c5),_0x4ddd38))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x11add2{constructor(_0xa04050,_0x28d4db,_0x5e5341,_0x24cf1a,_0xc9a123){const _0x4277e7=_0xb97ebd;super(),u(this,_0x4277e7(0x12d),new _0x34692e(_0x4277e7(0x17a))),u(this,_0x4277e7(0x1b9),this[_0x4277e7(0x12d)][_0x4277e7(0x18f)]()),u(this,'_init',!0x1),u(this,_0x4277e7(0x1d7),null),u(this,_0x4277e7(0x190),null),(this[_0x4277e7(0x1a5)]=_0xa04050,this[_0x4277e7(0x197)]=_0x28d4db,this[_0x4277e7(0x1b5)]=_0x5e5341,this['_liveShareService']=_0x24cf1a,this[_0x4277e7(0x1d3)]=_0xc9a123);}get[_0xb97ebd(0x17e)](){const _0x14b4f4=_0xb97ebd;return this[_0x14b4f4(0x12d)]['getValue']();}['dispose'](){const _0x33f15c=_0xb97ebd;var _0x25e5c7;(_0x25e5c7=this[_0x33f15c(0x1d7)])==null||_0x25e5c7[_0x33f15c(0x1ae)](),this['_status$'][_0x33f15c(0x161)]('idle'),this[_0x33f15c(0x12d)][_0x33f15c(0x141)]();}[_0xb97ebd(0x1c4)](){const _0x5125e4=_0xb97ebd;return this[_0x5125e4(0x17e)];}[_0xb97ebd(0x182)](){const _0x4675fd=_0xb97ebd;this[_0x4675fd(0x1c3)]||(this[_0x4675fd(0x1c3)]=!0x0,this['_collabSession']['sessionStatus$'][_0x4675fd(0x17d)](_0x1d5b79(this['dispose$']))['subscribe'](_0x327610=>{const _0x424d42=_0x4675fd;switch(_0x327610){case _0x52fa7b[_0x424d42(0x16a)]:this[_0x424d42(0x1bc)]();break;case _0x52fa7b[_0x424d42(0x130)]:this[_0x424d42(0x16c)]();break;}}),this[_0x4675fd(0x197)][_0x4675fd(0x1ab)][_0x4675fd(0x17d)](_0x1d5b79(this[_0x4675fd(0x137)]))[_0x4675fd(0x1c0)](_0x57fb75=>{const _0x364de5=_0x4675fd,{eventID:_0x1047c1}=_0x57fb75;switch(_0x1047c1){case _0x16f67c['LIVESHARE_NEW_HOST']:this[_0x364de5(0x132)](_0x57fb75);break;case _0x16f67c[_0x364de5(0x14e)]:this['_handleOperation'](_0x57fb75);break;case _0x16f67c[_0x364de5(0x14a)]:this[_0x364de5(0x14c)]();break;case _0x16f67c['NEW_CHANGESETS']:this[_0x364de5(0x14d)](_0x57fb75);break;}}));}[_0xb97ebd(0x196)](){const _0x57edcd=_0xb97ebd;this[_0x57edcd(0x197)][_0x57edcd(0x1b1)]({'eventID':_0x16f67c[_0x57edcd(0x152)],'data':{'unitID':this[_0x57edcd(0x1a5)],'userID':this['_collabSession'][_0x57edcd(0x16e)]()}},this[_0x57edcd(0x1a5)]);}[_0xb97ebd(0x1be)](){const _0x57c425=_0xb97ebd;this[_0x57c425(0x17e)]==='presenting'&&(this[_0x57c425(0x12d)][_0x57c425(0x161)]('idle'),this[_0x57c425(0x197)][_0x57c425(0x1b1)]({'eventID':_0x16f67c[_0x57c425(0x14a)],'data':{'unitID':this[_0x57c425(0x1a5)]}},this[_0x57c425(0x1a5)]));}[_0xb97ebd(0x17b)](){const _0x1203ac=_0xb97ebd;this['_status']===_0x1203ac(0x1b6)&&(this['_status$']['next'](_0x1203ac(0x1d8)),this[_0x1203ac(0x16b)]());}[_0xb97ebd(0x1ca)](){const _0x12dfbd=_0xb97ebd;this['_status']===_0x12dfbd(0x1d8)&&this[_0x12dfbd(0x175)]();}[_0xb97ebd(0x132)](_0x567d18){const _0x2851ef=_0xb97ebd,{presenter:_0x3fec40}=_0x567d18[_0x2851ef(0x173)],_0xb6af38=this[_0x2851ef(0x197)][_0x2851ef(0x16e)]();this['_presenter']=_0x3fec40,_0x3fec40===_0xb6af38?(this[_0x2851ef(0x175)](),this[_0x2851ef(0x18c)]()):this[_0x2851ef(0x17e)]!==_0x2851ef(0x1b6)&&(this[_0x2851ef(0x19f)](),this['_startFollowing']());}[_0xb97ebd(0x159)](){const _0x3a57cf=_0xb97ebd,_0x4d5c7a={'eventID':_0x16f67c[_0x3a57cf(0x14b)]};this[_0x3a57cf(0x197)][_0x3a57cf(0x1b1)](_0x4d5c7a,this[_0x3a57cf(0x1a5)]);}['_handleTerminate'](){const _0x5be85b=_0xb97ebd;this[_0x5be85b(0x190)]=null,this[_0x5be85b(0x17e)]!==_0x5be85b(0x1c5)&&this[_0x5be85b(0x1cd)]();}['_handleNewChangeSets'](_0xc17d40){const _0x5870ac=_0xb97ebd;if(this[_0x5870ac(0x17e)]==='following'&&this['_presenter']===_0xc17d40[_0x5870ac(0x173)][_0x5870ac(0x18b)]){const _0x37146e=_0x583902(_0xc17d40[_0x5870ac(0x173)])[_0x5870ac(0x166)][_0x5870ac(0x1c2)]()[_0x5870ac(0x178)](_0x10fa4f=>_0x10fa4f['id']===_0x258803['id']);if(_0x37146e){const _0x52cdd2=_0x37146e[_0x5870ac(0x1d0)][_0x5870ac(0x13d)],_0x3348c5=_0x37146e[_0x5870ac(0x1d0)][_0x5870ac(0x1ad)]['id'];setTimeout(()=>{const _0x39aedf=_0x5870ac;this['_commandService'][_0x39aedf(0x187)](_0x20c513['id'],{'unitId':_0x52cdd2,'subUnitId':_0x3348c5},{'fromCollab':!0x0});});}}}[_0xb97ebd(0x18c)](){const _0xd6f309=_0xb97ebd;this[_0xd6f309(0x12d)][_0xd6f309(0x161)](_0xd6f309(0x1c5));const _0x31199b=new Map(),_0x1d4405=this['_commandDisposable']=new _0x7bc84b();_0x1d4405['add'](_0x406d9b(()=>{const _0x403979=_0xd6f309;_0x31199b[_0x403979(0x156)](_0x8acb59=>_0x8acb59['complete']()),_0x31199b[_0x403979(0x142)]();})),_0x1d4405[_0xd6f309(0x1d4)](this[_0xd6f309(0x1d3)][_0xd6f309(0x1b3)](_0x5edd8f=>{const _0x38e5f9=_0xd6f309;var _0x161b35;if(_0x5edd8f[_0x38e5f9(0x134)]!==_0x3cef27[_0x38e5f9(0x1cc)]||!this[_0x38e5f9(0x1c8)][_0x38e5f9(0x12f)](_0x5edd8f['id']))return;const {id:_0x358196}=_0x5edd8f;let _0x26f6c0;_0x31199b[_0x38e5f9(0x167)](_0x358196)?_0x26f6c0=_0x31199b[_0x38e5f9(0x1a0)](_0x358196):(_0x26f6c0=new _0x2766e6(),_0x31199b[_0x38e5f9(0x133)](_0x358196,_0x26f6c0),_0x26f6c0['pipe'](_0x1ffa79((_0x161b35=this[_0x38e5f9(0x1b5)]['getConfig'](Ce))!=null?_0x161b35:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x52d9b4=>{const _0x2abb07=_0x38e5f9;this[_0x2abb07(0x197)][_0x2abb07(0x1b1)]({'eventID':_0x16f67c[_0x2abb07(0x14e)],'data':{'unitID':this[_0x2abb07(0x1a5)],'operations':{[_0x52d9b4['id']]:{'id':_0x52d9b4['id'],'params':JSON[_0x2abb07(0x188)](_0x52d9b4[_0x2abb07(0x1d0)])}}}},this[_0x2abb07(0x1a5)]);})),_0x26f6c0[_0x38e5f9(0x161)](_0x5edd8f);})),this[_0xd6f309(0x1c8)][_0xd6f309(0x192)](this['_unitID'])['forEach'](_0x14e2d9=>this['_collabSession'][_0xd6f309(0x1b1)]({'eventID':_0x16f67c[_0xd6f309(0x14e)],'data':{'unitID':this['_unitID'],'operations':{[_0x14e2d9['id']]:{'id':_0x14e2d9['id'],'params':JSON[_0xd6f309(0x188)](_0x14e2d9[_0xd6f309(0x1d0)])}}}},this['_unitID']));}[_0xb97ebd(0x19f)](){const _0xb703ce=_0xb97ebd;var _0x317ee5;this[_0xb703ce(0x12d)][_0xb703ce(0x161)](_0xb703ce(0x17a)),(_0x317ee5=this[_0xb703ce(0x1d7)])==null||_0x317ee5['dispose'](),this[_0xb703ce(0x1d7)]=null;}['_startFollowing'](){const _0x5ccde5=_0xb97ebd;var _0xa71b36;(_0xa71b36=this[_0x5ccde5(0x1d7)])==null||_0xa71b36['dispose'](),this[_0x5ccde5(0x12d)][_0x5ccde5(0x161)](_0x5ccde5(0x1d8));}[_0xb97ebd(0x1cd)](){const _0x2ebeaa=_0xb97ebd;var _0x10a215;this['_status$'][_0x2ebeaa(0x161)](_0x2ebeaa(0x17a)),(_0x10a215=this['_commandDisposable'])==null||_0x10a215[_0x2ebeaa(0x1ae)](),this[_0x2ebeaa(0x1d7)]=null;}[_0xb97ebd(0x175)](){const _0x1d6877=_0xb97ebd;var _0x140019;this['_status$'][_0x1d6877(0x161)](_0x1d6877(0x1b6)),(_0x140019=this[_0x1d6877(0x1d7)])==null||_0x140019[_0x1d6877(0x1ae)]();}[_0xb97ebd(0x1af)](_0x3c95f8){const _0x18e827=_0xb97ebd;if([_0x18e827(0x1c5),_0x18e827(0x1b6),_0x18e827(0x183)]['includes'](this[_0x18e827(0x17e)])||!_0x3c95f8[_0x18e827(0x173)][_0x18e827(0x165)]||_0x3c95f8[_0x18e827(0x173)]['presenter']===this[_0x18e827(0x197)]['getMemberID']())return;this[_0x18e827(0x17e)]===_0x18e827(0x17a)&&this[_0x18e827(0x16b)]();const _0x13b82d=_0x3c95f8['data'][_0x18e827(0x1a3)];Object['values'](_0x13b82d)[_0x18e827(0x156)](_0x35c3c5=>{const _0x254983=_0x18e827;this[_0x254983(0x1d3)][_0x254983(0x187)](_0x35c3c5['id'],_0x35c3c5['params']?JSON[_0x254983(0x17c)](_0x35c3c5[_0x254983(0x1d0)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x97774e=_0xb97ebd;var _0x1f485f;this[_0x97774e(0x12d)][_0x97774e(0x161)](_0x97774e(0x183)),(_0x1f485f=this[_0x97774e(0x1d7)])==null||_0x1f485f['dispose']();}['_handleOnline'](){const _0x3db83a=_0xb97ebd;this[_0x3db83a(0x12d)][_0x3db83a(0x161)]('idle'),this[_0x3db83a(0x159)]();}};N=Y([_(0x2,_0x5f372e),_(0x3,_0x21afd6(L)),_(0x4,_0x190649)],N);function Le(){const _0x4616a2=_0xb97ebd,_0x29a61d=_0x1320d6(S),_0x1fed18=_0x1320d6(_0x5ecf6c),_0x5a716c=_0x518c90(()=>_0x1fed18[_0x4616a2(0x1cb)](_0x577e21['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x161b0e,_0x574f7e]=_0x396812(null),[_0x4660c1,_0x51d593]=_0x396812(c[_0x4616a2(0x1d9)]),_0x5b21d5=_0x1062c7(null);return _0x1482f8(()=>(_0x5a716c&&_0x29a61d[_0x4616a2(0x193)](_0x5a716c['getUnitId']())[_0x4616a2(0x1bb)](_0x426e7f=>{const _0x108122=_0x4616a2;_0x574f7e(_0x426e7f),_0x5b21d5[_0x108122(0x146)]=_0x426e7f[_0x108122(0x1b9)][_0x108122(0x1c0)](_0x37f5eb=>{_0x51d593(_0x37f5eb);});}),()=>{const _0x4fb283=_0x4616a2;var _0xabdb62;(_0xabdb62=_0x5b21d5['current'])==null||_0xabdb62[_0x4fb283(0x15e)](),_0x5b21d5[_0x4fb283(0x146)]=null;}),[_0x5a716c,_0x29a61d]),_0x161b0e?_0x580725(_0x270a52,{'align':_0x4616a2(0x149),'disabled':_0x4660c1===c[_0x4616a2(0x16a)],'className':_0x4616a2(0x185),'overlay':_0x580725(Re,{'status':_0x4660c1,'coordinator':_0x161b0e}),'children':_0x580725('button',{'className':_0xc4ee54(_0x4616a2(0x1a8),{'univer-cursor-not-allowed':_0x4660c1===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4660c1!==c[_0x4616a2(0x16a)]}),'type':_0x4616a2(0x1b2),'children':_0x580725(W,{'className':_0x4616a2(0x19b)})})}):null;}function Re(_0x7e8eaf){const _0x429441=_0xb97ebd,{status:_0x1c7b2e,coordinator:_0x1723d8}=_0x7e8eaf;switch(_0x1c7b2e){case c['IDLE']:return _0x580725($e,{'coordinator':_0x1723d8});case c[_0x429441(0x15a)]:return _0x580725(xe,{'coordinator':_0x1723d8});case c[_0x429441(0x1a7)]:return _0x580725(Pe,{'coordinator':_0x1723d8});case c['OFFLINE']:return _0x580725(Te,{});case c[_0x429441(0x1c7)]:return _0x580725(Ae,{'coordinator':_0x1723d8});default:return null;}}function $e(_0x144a77){const _0x5d8958=_0xb97ebd,{coordinator:_0x5f271f}=_0x144a77;return _0x1abc97(_0x2c36f8,{'children':[_0x580725(_0x5d8958(0x1d2),{'className':_0x5d8958(0x1a9),'children':_0x5d8958(0x189)}),_0x580725(_0x613aad,{'onClick':()=>_0x5f271f[_0x5d8958(0x196)](),'children':_0x5d8958(0x163)})]});}function xe(_0x24d177){const _0x895592=_0xb97ebd,{coordinator:_0x310348}=_0x24d177;return _0x1abc97(_0x2c36f8,{'children':[_0x580725(_0x895592(0x1d2),{'className':_0x895592(0x1a9),'children':_0x895592(0x181)}),_0x580725(_0x613aad,{'onClick':()=>_0x310348[_0x895592(0x1ca)](),'children':_0x895592(0x15c)})]});}function Pe(_0x3f720e){const _0x10c940=_0xb97ebd,{coordinator:_0x9e8d1}=_0x3f720e;return _0x1abc97(_0x2c36f8,{'children':[_0x580725(_0x10c940(0x1d2),{'className':_0x10c940(0x1a9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x580725(_0x613aad,{'variant':_0x10c940(0x139),'onClick':()=>_0x9e8d1['startFollowing'](),'children':_0x10c940(0x13b)})]});}function Ae(_0x1f18ba){const _0x123e9f=_0xb97ebd,{coordinator:_0x4d87f2}=_0x1f18ba;return _0x1abc97(_0x2c36f8,{'children':[_0x580725(_0x123e9f(0x1d2),{'className':_0x123e9f(0x1a9),'children':_0x123e9f(0x16d)}),_0x580725(_0x613aad,{'variant':_0x123e9f(0x1b4),'onClick':()=>_0x4d87f2[_0x123e9f(0x1be)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x199038=_0xb97ebd;return _0x580725(_0x2c36f8,{'children':_0x199038(0x136)});}var Fe=Object[_0xb97ebd(0x1d1)],He=(_0xb9922a,_0x3b7c00,_0x1862b0,_0x26ecdc)=>{for(var _0x470922=_0x26ecdc>0x1?void 0x0:_0x26ecdc?Fe(_0x3b7c00,_0x1862b0):_0x3b7c00,_0x56b2a1=_0xb9922a['length']-0x1,_0x417346;_0x56b2a1>=0x0;_0x56b2a1--)(_0x417346=_0xb9922a[_0x56b2a1])&&(_0x470922=_0x417346(_0x470922)||_0x470922);return _0x470922;},A=(_0x389f6f,_0x13590a)=>(_0xf11285,_0x2b062e)=>_0x13590a(_0xf11285,_0x2b062e,_0x389f6f);let m=class extends _0x377436{constructor(_0x4ef1f9,_0xdde6ab){const _0x346c12=_0xb97ebd;super(),this[_0x346c12(0x177)]=_0x4ef1f9,this[_0x346c12(0x186)]=_0xdde6ab,this[_0x346c12(0x150)]();}[_0xb97ebd(0x150)](){const _0x54a2de=_0xb97ebd;this[_0x54a2de(0x158)](this[_0x54a2de(0x186)][_0x54a2de(0x1aa)](_0x3439ae['HEADER_MENU'],()=>_0x24235a(Le,this[_0x54a2de(0x177)])));}};m=He([A(0x0,_0x21afd6(_0xcfdfef)),A(0x1,_0x2d5715)],m);const ye=_0xb97ebd(0x1bd),T={};var Ue=Object[_0xb97ebd(0x1d1)],Ve=(_0x4fea7c,_0x3804ca,_0x14cd9a,_0x5392a6)=>{const _0x16a58e=_0xb97ebd;for(var _0x2bd492=_0x5392a6>0x1?void 0x0:_0x5392a6?Ue(_0x3804ca,_0x14cd9a):_0x3804ca,_0x564a45=_0x4fea7c[_0x16a58e(0x13e)]-0x1,_0x459f74;_0x564a45>=0x0;_0x564a45--)(_0x459f74=_0x4fea7c[_0x564a45])&&(_0x2bd492=_0x459f74(_0x2bd492)||_0x2bd492);return _0x2bd492;},je=(_0x2fbc0d,_0x56446b)=>(_0x1a52e8,_0x24da30)=>_0x56446b(_0x1a52e8,_0x24da30,_0x2fbc0d);let I=class extends _0x377436{constructor(_0x1da181){const _0x16f374=_0xb97ebd;super(),this[_0x16f374(0x1c8)]=_0x1da181,this[_0x16f374(0x1c3)]();}[_0xb97ebd(0x1c3)](){[_0x1d388b['id'],_0x5ae5dd['id'],_0x20c513['id']]['forEach'](_0x5031de=>{const _0x23882f=_0x9b6e;this['disposeWithMe'](this[_0x23882f(0x1c8)][_0x23882f(0x19a)](_0x5031de));});}};I=Ve([je(0x0,_0x21afd6(L))],I);var Me=Object['defineProperty'],ke=Object[_0xb97ebd(0x1d1)],Ge=(_0x2c844e,_0x3c1b21,_0x11f24f)=>_0x3c1b21 in _0x2c844e?Me(_0x2c844e,_0x3c1b21,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11f24f}):_0x2c844e[_0x3c1b21]=_0x11f24f,We=(_0x1cf6a1,_0x37d751,_0x39b8ad,_0x165be1)=>{for(var _0x7a9cb6=_0x165be1>0x1?void 0x0:_0x165be1?ke(_0x37d751,_0x39b8ad):_0x37d751,_0xba2f44=_0x1cf6a1['length']-0x1,_0x1d3735;_0xba2f44>=0x0;_0xba2f44--)(_0x1d3735=_0x1cf6a1[_0xba2f44])&&(_0x7a9cb6=_0x1d3735(_0x7a9cb6)||_0x7a9cb6);return _0x7a9cb6;},F=(_0x2647c3,_0x3a5df3)=>(_0x598f72,_0x5d6f48)=>_0x3a5df3(_0x598f72,_0x5d6f48,_0x2647c3),B=(_0x32963c,_0x1574cd,_0x4b5623)=>Ge(_0x32963c,typeof _0x1574cd!='symbol'?_0x1574cd+'':_0x1574cd,_0x4b5623);const Ye=_0xb97ebd(0x18a);function _0x5a47(){const _0x47b424=['displayName','params','getOwnPropertyDescriptor','div','_commandService','add','currentColor','none','_commandDisposable','following','IDLE','entries','_status$','887670RrQrHk','shouldShareOperation','ONLINE','mask','_handleNewHost','set','type','replace','You\x27are\x20offline.','dispose$','onStarting','text','_univerInstanceService','Start\x20following','_startLiveShareCoordinator','unitId','length','UniverIcon','onRendered','complete','clear','222GrZTuq','override','848832igNGWH','current','univerjs-icon\x20univerjs-icon-','requireSession','end','LIVESHARE_TERMINATE','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','_handleNewChangeSets','LIVESHARE_OPERATION','children','_mountLiveShare','defs','LIVESHARE_REQUEST_HOST','LiveShareIcon','1em','UNIVER_SHEET','forEach','getTypeOfUnitDisposed$','disposeWithMe','_fetchOperations','FOLLOWING','symbol','Stop\x20following','fill','unsubscribe','_sharedOperations','substring','next','0\x200\x2017\x2017','Start','createInstance','presenter','mutations','has','xlink:href','_reporters','OFFLINE','_startFollowing','_handleOnline','You\x27re\x20presenting\x20the\x20document','getMemberID','includes','map','UNIVER_UNKNOWN','random','data','3372vHaGuI','_stopFollowing','1230rZpCbz','_injector','find','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','idle','startFollowing','parse','pipe','_status','32VQuTWB','string','You\x27re\x20following\x20the\x20presenter','init','offline','10FPltqm','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','_uiPartsService','executeCommand','stringify','Present\x20this\x20document','UNIVER_LIVE_SHARE_PLUGIN','memberID','_startPresenting','url(#$1','_config','asObservable','_presenter','getLiveShareCoordinatorSync','getInitialStates','getLiveShareCoordinator','21gwYUKA','trim','tryStartPresenting','_collabSession','delete','getUnitId','registerSharedOperation','univer-size-4','814517IALzsd','idSuffix','live-share-icon','_stopPresenting','get','19002QcPxCr','colorChannel1','operations','path','_unitID','tag','NOT_FOLLOWING','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerComponent','event$','assign','sheet','dispose','_handleOperation','defineProperty','send','button','onCommandExecuted','default','_configService','not-following','attrs','11008spDGtU','status$','1485110yDBSiE','then','_handleOffline','live-share.config','stopPresenting','_collabSessionService','subscribe','22555KtoOyF','reverse','_init','getStatus','presenting','evenodd','PRESENTING','_liveShareService','getTypeOfUnitAdded$','stopFollowing','getCurrentTypeOfUnit$','OPERATION','_beIdle','_entities'];_0x5a47=function(){return _0x47b424;};return _0x5a47();}let b=class extends _0x306fe4{constructor(_0x103448=T,_0x147663,_0x153121){const _0x1b6785=_0xb97ebd;super(),this[_0x1b6785(0x18e)]=_0x103448,this[_0x1b6785(0x177)]=_0x147663,this[_0x1b6785(0x1b5)]=_0x153121;const {..._0x5d4092}=_0x1a51a5({},T,this[_0x1b6785(0x18e)]);this[_0x1b6785(0x1b5)]['setConfig'](ye,_0x5d4092);}[_0xb97ebd(0x138)](){const _0x3c3eb4=_0xb97ebd;_0x533093(this[_0x3c3eb4(0x177)],_0x47b025([[L],[S],[I],[m]],this['_config'][_0x3c3eb4(0x144)])),_0x4a7426(this[_0x3c3eb4(0x177)],[[I]]);}[_0xb97ebd(0x140)](){_0x4a7426(this['_injector'],[[m]]);}};B(b,_0xb97ebd(0x134),_0x577e21[_0xb97ebd(0x171)]),B(b,'pluginName',Ye),b=We([_0x362c5b(_0x11a085),F(0x1,_0x21afd6(_0xcfdfef)),F(0x2,_0x5f372e)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x28483d=_0x5a0d;(function(_0x290b11,_0x36a553){const _0x1919f9=_0x5a0d,_0x4746c2=_0x290b11();while(!![]){try{const _0x31b3db=-parseInt(_0x1919f9(0x1bb))/0x1*(parseInt(_0x1919f9(0x193))/0x2)+-parseInt(_0x1919f9(0x1a1))/0x3*(-parseInt(_0x1919f9(0x209))/0x4)+-parseInt(_0x1919f9(0x1fe))/0x5+-parseInt(_0x1919f9(0x18b))/0x6+-parseInt(_0x1919f9(0x1af))/0x7+parseInt(_0x1919f9(0x198))/0x8+parseInt(_0x1919f9(0x1c4))/0x9*(parseInt(_0x1919f9(0x1fc))/0xa);if(_0x31b3db===_0x36a553)break;else _0x4746c2['push'](_0x4746c2['shift']());}catch(_0x20e26c){_0x4746c2['push'](_0x4746c2['shift']());}}}(_0x4c4f,0x6b9fe));var J=Object[_0x28483d(0x1e0)],K=(_0x473961,_0x59fb21,_0xa53e3c)=>_0x59fb21 in _0x473961?J(_0x473961,_0x59fb21,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa53e3c}):_0x473961[_0x59fb21]=_0xa53e3c,u=(_0x432b73,_0x5052e7,_0x23009e)=>K(_0x432b73,typeof _0x5052e7!='symbol'?_0x5052e7+'':_0x5052e7,_0x23009e);import{Disposable as _0x415a2,toDisposable as _0x32aa81,IUniverInstanceService as _0x240c37,Inject as _0x100628,Injector as _0x1e4d19,IConfigService as _0x28819f,ICommandService as _0x553dea,RxDisposable as _0x4e959a,UniverInstanceType as _0x1da7ce,DisposableCollection as _0xe53e61,CommandType as _0x37c949,DependentOn as _0x414cfb,Plugin as _0x1a183f,merge as _0x4cb9a7,registerDependencies as _0x5c9e8b,mergeOverrideWithDependencies as _0x175362,touchDependencies as _0xb23083}from'@univerjs/core';import{useDependency as _0x23a79c,useObservable as _0x13956b,IUIPartsService as _0x4f58c8,BuiltInUIPart as _0x591e95,connectInjector as _0x560990}from'@univerjs/ui';import{jsx as _0x1c2c9e,jsxs as _0x8cd725,Fragment as _0x4fb667}from'react/jsx-runtime';import{Dropdown as _0x1ffd19,clsx as _0x52a3f7,Button as _0x29e220}from'@univerjs/design';import{useRef as _0x36dedb,createElement as _0x49f114,forwardRef as _0x340b2,useState as _0xd82959,useEffect as _0x54962e}from'react';import{CollaborationEvent as _0x413f6e,parseProtocolChangeset as _0x3f2aee}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2e835c,SessionStatus as _0x216c33,UniverCollaborationClientPlugin as _0x18716e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2cbc0d,SetWorksheetActiveOperation as _0x5143a7}from'@univerjs/sheets';import{BehaviorSubject as _0x2ad11c,Subject as _0x5a8bbd}from'rxjs';import{takeUntil as _0x3cbd1c,throttleTime as _0x2b2451}from'rxjs/operators';import{SetZoomRatioOperation as _0x3d23dc,SetScrollOperation as _0x3b0aa1}from'@univerjs/sheets-ui';function k({ref:_0x22bc8b,..._0x4c537e}){const _0x51e7b5=_0x28483d,{icon:_0x13ce29,id:_0x1331d5,className:_0xb8810b,extend:_0x269ab1,..._0xdb098}=_0x4c537e,_0x41ffb3=('univerjs-icon\x20univerjs-icon-'+_0x1331d5+'\x20'+(_0xb8810b||''))[_0x51e7b5(0x19d)](),_0x131cc2=_0x36dedb('_'+Oe());return G(_0x13ce29,''+_0x1331d5,{'defIds':_0x13ce29['defIds'],'idSuffix':_0x131cc2[_0x51e7b5(0x224)]},{'ref':_0x22bc8b,'className':_0x41ffb3,..._0xdb098},_0x269ab1);}function G(_0x3fe745,_0xb1103f,_0x567ecb,_0x138b8e,_0xe8766b){const _0x47d24f=_0x28483d;return _0x49f114(_0x3fe745[_0x47d24f(0x1ee)],{'key':_0xb1103f,...be(_0x3fe745,_0x567ecb,_0xe8766b),..._0x138b8e},(Ee(_0x3fe745,_0x567ecb)[_0x47d24f(0x19b)]||[])[_0x47d24f(0x1ca)]((_0x3c85ad,_0x43dcc5)=>G(_0x3c85ad,_0xb1103f+'-'+_0x3fe745[_0x47d24f(0x1ee)]+'-'+_0x43dcc5,_0x567ecb,void 0x0,_0xe8766b)));}function be(_0x26c60b,_0x488b3f,_0x1a6c69){const _0x448dd8=_0x28483d,_0x54676b={..._0x26c60b[_0x448dd8(0x229)]};_0x1a6c69!=null&&_0x1a6c69[_0x448dd8(0x206)]&&_0x54676b[_0x448dd8(0x1db)]===_0x448dd8(0x206)&&(_0x54676b[_0x448dd8(0x1db)]=_0x1a6c69[_0x448dd8(0x206)]),_0x26c60b[_0x448dd8(0x1ee)]===_0x448dd8(0x1a7)&&_0x54676b['id']&&(_0x54676b['id']=_0x54676b['id']+_0x488b3f[_0x448dd8(0x1b1)]),Object[_0x448dd8(0x1eb)](_0x54676b)[_0x448dd8(0x1b6)](([_0x410e3e,_0x17c973])=>{const _0x2c0c67=_0x448dd8;_0x410e3e==='mask'&&typeof _0x17c973==_0x2c0c67(0x21d)&&(_0x54676b[_0x410e3e]=_0x17c973[_0x2c0c67(0x1dd)](/url\(#(.*)\)/,_0x2c0c67(0x20c)+_0x488b3f[_0x2c0c67(0x1b1)]+')'));});const {defIds:_0x510b14}=_0x488b3f;return!_0x510b14||_0x510b14['length']===0x0||(_0x26c60b[_0x448dd8(0x1ee)]===_0x448dd8(0x222)&&_0x54676b[_0x448dd8(0x1aa)]&&(_0x54676b[_0x448dd8(0x1aa)]=_0x54676b[_0x448dd8(0x1aa)]+_0x488b3f[_0x448dd8(0x1b1)]),Object['entries'](_0x54676b)['forEach'](([_0x49c9db,_0xed6ae4])=>{const _0x2bdca1=_0x448dd8;typeof _0xed6ae4==_0x2bdca1(0x21d)&&(_0x54676b[_0x49c9db]=_0xed6ae4[_0x2bdca1(0x1dd)](/url\(#(.*)\)/,_0x2bdca1(0x20c)+_0x488b3f[_0x2bdca1(0x1b1)]+')'));})),_0x54676b;}function Ee(_0x2d1622,_0x2d773f){const _0x2c5354=_0x28483d;var _0x46f311;const {defIds:_0x4f9c22}=_0x2d773f;return!_0x4f9c22||_0x4f9c22[_0x2c5354(0x1d6)]===0x0?_0x2d1622:_0x2d1622[_0x2c5354(0x1ee)]===_0x2c5354(0x1f4)&&((_0x46f311=_0x2d1622[_0x2c5354(0x19b)])!=null&&_0x46f311[_0x2c5354(0x1d6)])?{..._0x2d1622,'children':_0x2d1622[_0x2c5354(0x19b)][_0x2c5354(0x1ca)](_0x1b0550=>typeof _0x1b0550['attrs']['id']==_0x2c5354(0x21d)&&_0x4f9c22&&_0x4f9c22['includes'](_0x1b0550[_0x2c5354(0x229)]['id'])?{..._0x1b0550,'attrs':{..._0x1b0550['attrs'],'id':_0x1b0550[_0x2c5354(0x229)]['id']+_0x2d773f[_0x2c5354(0x1b1)]}}:_0x1b0550)}:_0x2d1622;}function Oe(){const _0x1a5828=_0x28483d;return Math[_0x1a5828(0x232)]()[_0x1a5828(0x18e)](0x24)[_0x1a5828(0x218)](0x2,0x8);}k[_0x28483d(0x22f)]=_0x28483d(0x1b0);function _0x5a0d(_0x53b63d,_0x1a6b2b){const _0x4c4f5a=_0x4c4f();return _0x5a0d=function(_0x5a0ddd,_0x200c29){_0x5a0ddd=_0x5a0ddd-0x18a;let _0x2d884f=_0x4c4f5a[_0x5a0ddd];return _0x2d884f;},_0x5a0d(_0x53b63d,_0x1a6b2b);}const we={'tag':_0x28483d(0x21a),'attrs':{'xmlns':_0x28483d(0x1c0),'fill':_0x28483d(0x1f0),'viewBox':_0x28483d(0x202),'width':_0x28483d(0x1f1),'height':_0x28483d(0x1f1)},'children':[{'tag':_0x28483d(0x194),'attrs':{'fill':_0x28483d(0x1a9),'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':_0x28483d(0x194),'attrs':{'fill':'currentColor','d':_0x28483d(0x19a),'fillRule':'evenodd','clipRule':_0x28483d(0x225)}}]},W=_0x340b2(function(_0x5107d8,_0x1579f1){const _0x327143=_0x28483d;return _0x49f114(k,Object[_0x327143(0x1d7)]({},_0x5107d8,{'id':_0x327143(0x1d2),'ref':_0x1579f1,'icon':we}));});W[_0x28483d(0x22f)]=_0x28483d(0x1de);class L extends _0x415a2{constructor(){const _0x189e39=_0x28483d;super(...arguments),u(this,_0x189e39(0x207),new Set()),u(this,_0x189e39(0x19f),new Set());}[_0x28483d(0x1a5)](_0x314029){const _0x4f538f=_0x28483d;return this['_sharedOperations']['add'](_0x314029),_0x32aa81(()=>this[_0x4f538f(0x207)][_0x4f538f(0x1f6)](_0x314029));}[_0x28483d(0x20b)](_0x538f80){const _0x53f7e6=_0x28483d;return this[_0x53f7e6(0x19f)][_0x53f7e6(0x19e)](_0x538f80),_0x32aa81(()=>this[_0x53f7e6(0x19f)][_0x53f7e6(0x1f6)](_0x538f80));}['shouldShareOperation'](_0x1ae86a){const _0x45b7d1=_0x28483d;return this[_0x45b7d1(0x207)]['has'](_0x1ae86a);}['getInitialStates'](_0x59a0df){const _0x534892=_0x28483d;return Array[_0x534892(0x1da)](this[_0x534892(0x19f)])[_0x534892(0x1ca)](_0x55d7ef=>_0x55d7ef(_0x59a0df));}}var Ne=Object[_0x28483d(0x1b3)],Y=(_0x45df4d,_0x32e14f,_0x89f62a,_0x4631dc)=>{const _0x2a1d2c=_0x28483d;for(var _0x4ca646=_0x4631dc>0x1?void 0x0:_0x4631dc?Ne(_0x32e14f,_0x89f62a):_0x32e14f,_0x39a798=_0x45df4d[_0x2a1d2c(0x1d6)]-0x1,_0x4af6bc;_0x39a798>=0x0;_0x39a798--)(_0x4af6bc=_0x45df4d[_0x39a798])&&(_0x4ca646=_0x4af6bc(_0x4ca646)||_0x4ca646);return _0x4ca646;},_=(_0x249a9c,_0x188b77)=>(_0x114828,_0x17768c)=>_0x188b77(_0x114828,_0x17768c,_0x249a9c);let S=class extends _0x4e959a{constructor(_0x182ea4,_0x56e68a,_0x4a3896){const _0x38ca23=_0x28483d;super(),u(this,_0x38ca23(0x192),new Map()),(this[_0x38ca23(0x234)]=_0x182ea4,this['_injector']=_0x56e68a,this['_collabSessionService']=_0x4a3896,this[_0x38ca23(0x205)]());}async['getLiveShareCoordinator'](_0x39eee6){const _0x2c441d=_0x28483d;return this[_0x2c441d(0x192)][_0x2c441d(0x201)](_0x39eee6)||await this[_0x2c441d(0x20e)](_0x39eee6),this[_0x2c441d(0x192)][_0x2c441d(0x1cc)](_0x39eee6);}['getLiveShareCoordinatorSync'](_0x404245){const _0x52c558=_0x28483d;var _0x5cacdc;return(_0x5cacdc=this[_0x52c558(0x192)][_0x52c558(0x1cc)](_0x404245))!=null?_0x5cacdc:null;}[_0x28483d(0x205)](){const _0x2e045d=_0x28483d;this['_univerInstanceService'][_0x2e045d(0x231)](_0x1da7ce[_0x2e045d(0x1ea)])[_0x2e045d(0x212)](_0x3cbd1c(this[_0x2e045d(0x1e5)]))[_0x2e045d(0x22a)](async _0x1493eb=>{const _0x358a97=_0x2e045d,_0x3bda41=_0x1493eb[_0x358a97(0x1d5)]();this[_0x358a97(0x192)][_0x358a97(0x201)](_0x3bda41)||this[_0x358a97(0x20e)](_0x3bda41);}),this['_univerInstanceService'][_0x2e045d(0x1a0)](_0x1da7ce[_0x2e045d(0x1ea)])[_0x2e045d(0x212)](_0x3cbd1c(this[_0x2e045d(0x1e5)]))['subscribe'](_0x362cdd=>{const _0x34a6b1=_0x2e045d,_0x417169=_0x362cdd[_0x34a6b1(0x1d5)](),_0x11aa01=this[_0x34a6b1(0x192)]['get'](_0x417169);_0x11aa01==null||_0x11aa01[_0x34a6b1(0x210)]();});}async['_startLiveShareCoordinator'](_0x39dcb7){const _0x3ad79a=_0x28483d,_0x5f1f48=await this['_collabSessionService'][_0x3ad79a(0x21e)](_0x39dcb7),_0x5f4811=this[_0x3ad79a(0x22e)]['createInstance'](N,_0x39dcb7,_0x5f1f48);return _0x5f4811[_0x3ad79a(0x199)](),this[_0x3ad79a(0x192)][_0x3ad79a(0x1bc)](_0x39dcb7,_0x5f4811),_0x5f4811;}};S=Y([_(0x0,_0x240c37),_(0x1,_0x100628(_0x1e4d19)),_(0x2,_0x100628(_0x2e835c))],S);var c=(_0x594ee7=>(_0x594ee7[_0x28483d(0x1d3)]=_0x28483d(0x1d1),_0x594ee7[_0x28483d(0x22c)]=_0x28483d(0x204),_0x594ee7[_0x28483d(0x219)]=_0x28483d(0x18a),_0x594ee7[_0x28483d(0x18d)]=_0x28483d(0x1bd),_0x594ee7[_0x28483d(0x1df)]=_0x28483d(0x227),_0x594ee7))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x4e959a{constructor(_0xaaec2f,_0x5ff498,_0xfc8671,_0xde38a8,_0x234e95){const _0x1d9a19=_0x28483d;super(),u(this,_0x1d9a19(0x233),new _0x2ad11c(_0x1d9a19(0x204))),u(this,_0x1d9a19(0x1b7),this[_0x1d9a19(0x233)][_0x1d9a19(0x1e2)]()),u(this,_0x1d9a19(0x205),!0x1),u(this,_0x1d9a19(0x1e9),null),u(this,_0x1d9a19(0x1ce),null),(this['_unitID']=_0xaaec2f,this[_0x1d9a19(0x196)]=_0x5ff498,this['_configService']=_0xfc8671,this[_0x1d9a19(0x1f5)]=_0xde38a8,this['_commandService']=_0x234e95);}get[_0x28483d(0x1e7)](){const _0x162f56=_0x28483d;return this['_status$'][_0x162f56(0x1b5)]();}[_0x28483d(0x210)](){const _0x5cdb00=_0x28483d;var _0x4731da;(_0x4731da=this[_0x5cdb00(0x1e9)])==null||_0x4731da[_0x5cdb00(0x210)](),this[_0x5cdb00(0x233)]['next']('idle'),this[_0x5cdb00(0x233)][_0x5cdb00(0x1bf)]();}[_0x28483d(0x1dc)](){return this['_status'];}[_0x28483d(0x199)](){const _0x4430a3=_0x28483d;this[_0x4430a3(0x205)]||(this[_0x4430a3(0x205)]=!0x0,this['_collabSession'][_0x4430a3(0x195)][_0x4430a3(0x212)](_0x3cbd1c(this['dispose$']))[_0x4430a3(0x22a)](_0xfecb78=>{const _0x4a4102=_0x4430a3;switch(_0xfecb78){case _0x216c33[_0x4a4102(0x1d3)]:this['_handleOffline']();break;case _0x216c33['ONLINE']:this[_0x4a4102(0x1c8)]();break;}}),this[_0x4430a3(0x196)]['event$']['pipe'](_0x3cbd1c(this[_0x4430a3(0x1e5)]))['subscribe'](_0x36fd86=>{const _0x9f4709=_0x4430a3,{eventID:_0x5419f2}=_0x36fd86;switch(_0x5419f2){case _0x413f6e[_0x9f4709(0x1d9)]:this['_handleNewHost'](_0x36fd86);break;case _0x413f6e[_0x9f4709(0x1c1)]:this[_0x9f4709(0x1d4)](_0x36fd86);break;case _0x413f6e[_0x9f4709(0x1e3)]:this[_0x9f4709(0x1fa)]();break;case _0x413f6e[_0x9f4709(0x1a2)]:this[_0x9f4709(0x1cf)](_0x36fd86);break;}}));}['tryStartPresenting'](){const _0x3065ed=_0x28483d;this['_collabSession'][_0x3065ed(0x216)]({'eventID':_0x413f6e[_0x3065ed(0x18f)],'data':{'unitID':this['_unitID'],'userID':this[_0x3065ed(0x196)][_0x3065ed(0x1c3)]()}},this[_0x3065ed(0x208)]);}['stopPresenting'](){const _0x35dc7c=_0x28483d;this[_0x35dc7c(0x1e7)]==='presenting'&&(this[_0x35dc7c(0x233)][_0x35dc7c(0x20f)]('idle'),this[_0x35dc7c(0x196)]['send']({'eventID':_0x413f6e['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x35dc7c(0x208)]}},this['_unitID']));}[_0x28483d(0x191)](){const _0x8e3f52=_0x28483d;this[_0x8e3f52(0x1e7)]===_0x8e3f52(0x1bd)&&(this['_status$']['next']('following'),this[_0x8e3f52(0x1e4)]());}['stopFollowing'](){const _0x184c66=_0x28483d;this[_0x184c66(0x1e7)]==='following'&&this['_stopFollowing']();}[_0x28483d(0x190)](_0x5117a6){const _0x533981=_0x28483d,{presenter:_0x3d277e}=_0x5117a6[_0x533981(0x213)],_0x55a530=this[_0x533981(0x196)][_0x533981(0x1c3)]();this[_0x533981(0x1ce)]=_0x3d277e,_0x3d277e===_0x55a530?(this[_0x533981(0x1ff)](),this[_0x533981(0x1c5)]()):this[_0x533981(0x1e7)]!==_0x533981(0x1bd)&&(this['_stopPresenting'](),this[_0x533981(0x1e4)]());}[_0x28483d(0x211)](){const _0x22bf29=_0x28483d,_0x33bf4d={'eventID':_0x413f6e[_0x22bf29(0x203)]};this['_collabSession'][_0x22bf29(0x216)](_0x33bf4d,this[_0x22bf29(0x208)]);}[_0x28483d(0x1fa)](){const _0x40724c=_0x28483d;this['_presenter']=null,this[_0x40724c(0x1e7)]!==_0x40724c(0x227)&&this[_0x40724c(0x1ab)]();}['_handleNewChangeSets'](_0x1c2775){const _0x2c4a40=_0x28483d;if(this[_0x2c4a40(0x1e7)]==='following'&&this[_0x2c4a40(0x1ce)]===_0x1c2775[_0x2c4a40(0x213)][_0x2c4a40(0x1be)]){const _0x5dd8b2=_0x3f2aee(_0x1c2775[_0x2c4a40(0x213)])[_0x2c4a40(0x1f7)][_0x2c4a40(0x18c)]()[_0x2c4a40(0x221)](_0x5e9a1d=>_0x5e9a1d['id']===_0x2cbc0d['id']);if(_0x5dd8b2){const _0x56b8ce=_0x5dd8b2[_0x2c4a40(0x1ae)]['unitId'],_0x53e8cf=_0x5dd8b2[_0x2c4a40(0x1ae)][_0x2c4a40(0x21b)]['id'];setTimeout(()=>{const _0x2b6b58=_0x2c4a40;this[_0x2b6b58(0x1d0)][_0x2b6b58(0x1cb)](_0x5143a7['id'],{'unitId':_0x56b8ce,'subUnitId':_0x53e8cf},{'fromCollab':!0x0});});}}}[_0x28483d(0x1c5)](){const _0x54e5a1=_0x28483d;this[_0x54e5a1(0x233)][_0x54e5a1(0x20f)]('presenting');const _0x2c10f0=new Map(),_0x33b03f=this[_0x54e5a1(0x1e9)]=new _0xe53e61();_0x33b03f[_0x54e5a1(0x19e)](_0x32aa81(()=>{const _0x1430f5=_0x54e5a1;_0x2c10f0['forEach'](_0x2955c2=>_0x2955c2[_0x1430f5(0x1bf)]()),_0x2c10f0[_0x1430f5(0x1f3)]();})),_0x33b03f[_0x54e5a1(0x19e)](this[_0x54e5a1(0x1d0)][_0x54e5a1(0x215)](_0x26c721=>{const _0x1b6f4a=_0x54e5a1;var _0x44b369;if(_0x26c721['type']!==_0x37c949[_0x1b6f4a(0x220)]||!this[_0x1b6f4a(0x1f5)][_0x1b6f4a(0x1c2)](_0x26c721['id']))return;const {id:_0x34a49d}=_0x26c721;let _0x1d14bc;_0x2c10f0[_0x1b6f4a(0x201)](_0x34a49d)?_0x1d14bc=_0x2c10f0[_0x1b6f4a(0x1cc)](_0x34a49d):(_0x1d14bc=new _0x5a8bbd(),_0x2c10f0[_0x1b6f4a(0x1bc)](_0x34a49d,_0x1d14bc),_0x1d14bc[_0x1b6f4a(0x212)](_0x2b2451((_0x44b369=this[_0x1b6f4a(0x21f)]['getConfig'](Ce))!=null?_0x44b369:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1b6f4a(0x22a)](_0xa7e8f6=>{const _0x4f1d28=_0x1b6f4a;this[_0x4f1d28(0x196)][_0x4f1d28(0x216)]({'eventID':_0x413f6e[_0x4f1d28(0x1c1)],'data':{'unitID':this[_0x4f1d28(0x208)],'operations':{[_0xa7e8f6['id']]:{'id':_0xa7e8f6['id'],'params':JSON[_0x4f1d28(0x1f8)](_0xa7e8f6[_0x4f1d28(0x1ae)])}}}},this[_0x4f1d28(0x208)]);})),_0x1d14bc[_0x1b6f4a(0x20f)](_0x26c721);})),this[_0x54e5a1(0x1f5)][_0x54e5a1(0x1c6)](this[_0x54e5a1(0x208)])[_0x54e5a1(0x1b6)](_0xa8981b=>this['_collabSession'][_0x54e5a1(0x216)]({'eventID':_0x413f6e[_0x54e5a1(0x1c1)],'data':{'unitID':this[_0x54e5a1(0x208)],'operations':{[_0xa8981b['id']]:{'id':_0xa8981b['id'],'params':JSON[_0x54e5a1(0x1f8)](_0xa8981b['params'])}}}},this['_unitID']));}['_stopPresenting'](){const _0x58e902=_0x28483d;var _0x1b1ed4;this[_0x58e902(0x233)][_0x58e902(0x20f)](_0x58e902(0x204)),(_0x1b1ed4=this[_0x58e902(0x1e9)])==null||_0x1b1ed4[_0x58e902(0x210)](),this[_0x58e902(0x1e9)]=null;}['_startFollowing'](){const _0x3aec53=_0x28483d;var _0x10403b;(_0x10403b=this[_0x3aec53(0x1e9)])==null||_0x10403b[_0x3aec53(0x210)](),this[_0x3aec53(0x233)]['next'](_0x3aec53(0x18a));}[_0x28483d(0x1ab)](){const _0x3ed9ad=_0x28483d;var _0x1078b2;this['_status$']['next']('idle'),(_0x1078b2=this[_0x3ed9ad(0x1e9)])==null||_0x1078b2[_0x3ed9ad(0x210)](),this[_0x3ed9ad(0x1e9)]=null;}[_0x28483d(0x1ff)](){const _0x4f9431=_0x28483d;var _0x18b111;this[_0x4f9431(0x233)][_0x4f9431(0x20f)](_0x4f9431(0x1bd)),(_0x18b111=this['_commandDisposable'])==null||_0x18b111[_0x4f9431(0x210)]();}[_0x28483d(0x1d4)](_0x2b8587){const _0x500851=_0x28483d;if(['presenting','not-following',_0x500851(0x1d1)][_0x500851(0x1b2)](this[_0x500851(0x1e7)])||!_0x2b8587[_0x500851(0x213)][_0x500851(0x1ba)]||_0x2b8587['data'][_0x500851(0x1ba)]===this['_collabSession'][_0x500851(0x1c3)]())return;this[_0x500851(0x1e7)]===_0x500851(0x204)&&this[_0x500851(0x1e4)]();const _0x5d691a=_0x2b8587[_0x500851(0x213)][_0x500851(0x1ec)];Object[_0x500851(0x230)](_0x5d691a)['forEach'](_0x5a1353=>{const _0x2d4e8e=_0x500851;this[_0x2d4e8e(0x1d0)][_0x2d4e8e(0x1cb)](_0x5a1353['id'],_0x5a1353['params']?JSON[_0x2d4e8e(0x20d)](_0x5a1353[_0x2d4e8e(0x1ae)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x2fa878=_0x28483d;var _0x116da6;this[_0x2fa878(0x233)][_0x2fa878(0x20f)](_0x2fa878(0x1d1)),(_0x116da6=this['_commandDisposable'])==null||_0x116da6['dispose']();}[_0x28483d(0x1c8)](){const _0x1b04fb=_0x28483d;this[_0x1b04fb(0x233)][_0x1b04fb(0x20f)](_0x1b04fb(0x204)),this[_0x1b04fb(0x211)]();}};N=Y([_(0x2,_0x28819f),_(0x3,_0x100628(L)),_(0x4,_0x553dea)],N);function Le(){const _0xb21795=_0x28483d,_0x24b2a8=_0x23a79c(S),_0x1e2005=_0x23a79c(_0x240c37),_0x123d25=_0x13956b(()=>_0x1e2005['getCurrentTypeOfUnit$'](_0x1da7ce['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x11b712,_0x202241]=_0xd82959(null),[_0x3abca4,_0xcfc894]=_0xd82959(c[_0xb21795(0x22c)]),_0x52dca4=_0x36dedb(null);return _0x54962e(()=>(_0x123d25&&_0x24b2a8[_0xb21795(0x21c)](_0x123d25[_0xb21795(0x1d5)]())[_0xb21795(0x20a)](_0x15c463=>{const _0x3a1f79=_0xb21795;_0x202241(_0x15c463),_0x52dca4[_0x3a1f79(0x224)]=_0x15c463[_0x3a1f79(0x1b7)][_0x3a1f79(0x22a)](_0x4986d9=>{_0xcfc894(_0x4986d9);});}),()=>{const _0x1117bc=_0xb21795;var _0x202def;(_0x202def=_0x52dca4[_0x1117bc(0x224)])==null||_0x202def[_0x1117bc(0x1b9)](),_0x52dca4[_0x1117bc(0x224)]=null;}),[_0x123d25,_0x24b2a8]),_0x11b712?_0x1c2c9e(_0x1ffd19,{'align':_0xb21795(0x1a4),'disabled':_0x3abca4===c[_0xb21795(0x1d3)],'className':_0xb21795(0x1ac),'overlay':_0x1c2c9e(Re,{'status':_0x3abca4,'coordinator':_0x11b712}),'children':_0x1c2c9e('button',{'className':_0x52a3f7(_0xb21795(0x19c),{'univer-cursor-not-allowed':_0x3abca4===c[_0xb21795(0x1d3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3abca4!==c[_0xb21795(0x1d3)]}),'type':_0xb21795(0x217),'children':_0x1c2c9e(W,{'className':_0xb21795(0x197)})})}):null;}function Re(_0x4b1a9e){const _0x50c7fa=_0x28483d,{status:_0x424271,coordinator:_0x556572}=_0x4b1a9e;switch(_0x424271){case c[_0x50c7fa(0x22c)]:return _0x1c2c9e($e,{'coordinator':_0x556572});case c['FOLLOWING']:return _0x1c2c9e(xe,{'coordinator':_0x556572});case c[_0x50c7fa(0x18d)]:return _0x1c2c9e(Pe,{'coordinator':_0x556572});case c['OFFLINE']:return _0x1c2c9e(Te,{});case c['PRESENTING']:return _0x1c2c9e(Ae,{'coordinator':_0x556572});default:return null;}}function $e(_0x287ed1){const _0x39448e=_0x28483d,{coordinator:_0x41ea09}=_0x287ed1;return _0x8cd725(_0x4fb667,{'children':[_0x1c2c9e(_0x39448e(0x1a6),{'className':_0x39448e(0x1e6),'children':'Present\x20this\x20document'}),_0x1c2c9e(_0x29e220,{'onClick':()=>_0x41ea09[_0x39448e(0x1fb)](),'children':'Start'})]});}function xe(_0x288a53){const _0x2f74f5=_0x28483d,{coordinator:_0x5dafab}=_0x288a53;return _0x8cd725(_0x4fb667,{'children':[_0x1c2c9e(_0x2f74f5(0x1a6),{'className':_0x2f74f5(0x1e6),'children':_0x2f74f5(0x1b4)}),_0x1c2c9e(_0x29e220,{'onClick':()=>_0x5dafab[_0x2f74f5(0x1ad)](),'children':_0x2f74f5(0x228)})]});}function Pe(_0x3abaf4){const _0x1e1da6=_0x28483d,{coordinator:_0x412731}=_0x3abaf4;return _0x8cd725(_0x4fb667,{'children':[_0x1c2c9e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1c2c9e(_0x29e220,{'variant':_0x1e1da6(0x1c7),'onClick':()=>_0x412731['startFollowing'](),'children':_0x1e1da6(0x1f2)})]});}function Ae(_0x467235){const _0x5bc0fc=_0x28483d,{coordinator:_0x59ca87}=_0x467235;return _0x8cd725(_0x4fb667,{'children':[_0x1c2c9e('div',{'className':_0x5bc0fc(0x1e6),'children':_0x5bc0fc(0x1ef)}),_0x1c2c9e(_0x29e220,{'variant':_0x5bc0fc(0x1e1),'onClick':()=>_0x59ca87[_0x5bc0fc(0x214)](),'children':_0x5bc0fc(0x226)})]});}function Te(){const _0x155d43=_0x28483d;return _0x1c2c9e(_0x4fb667,{'children':_0x155d43(0x1a8)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x143bbc,_0x122728,_0x244b5c,_0x400d8a)=>{const _0x1f02cb=_0x28483d;for(var _0x5add9d=_0x400d8a>0x1?void 0x0:_0x400d8a?Fe(_0x122728,_0x244b5c):_0x122728,_0x57a139=_0x143bbc[_0x1f02cb(0x1d6)]-0x1,_0x118d6c;_0x57a139>=0x0;_0x57a139--)(_0x118d6c=_0x143bbc[_0x57a139])&&(_0x5add9d=_0x118d6c(_0x5add9d)||_0x5add9d);return _0x5add9d;},A=(_0x5cee8a,_0x2f109f)=>(_0x321ecf,_0x15cc82)=>_0x2f109f(_0x321ecf,_0x15cc82,_0x5cee8a);let m=class extends _0x415a2{constructor(_0x262eaa,_0x54cc2a){const _0x32c8ce=_0x28483d;super(),this[_0x32c8ce(0x22e)]=_0x262eaa,this[_0x32c8ce(0x1c9)]=_0x54cc2a,this[_0x32c8ce(0x1d8)]();}['_mountLiveShare'](){const _0x25f663=_0x28483d;this[_0x25f663(0x1b8)](this['_uiPartsService']['registerComponent'](_0x591e95[_0x25f663(0x1a3)],()=>_0x560990(Le,this[_0x25f663(0x22e)])));}};m=He([A(0x0,_0x100628(_0x1e4d19)),A(0x1,_0x4f58c8)],m);const ye=_0x28483d(0x1cd),T={};var Ue=Object[_0x28483d(0x1b3)],Ve=(_0x5f3596,_0x50d7dc,_0x2a3545,_0x7ea1d2)=>{const _0x2c2ce9=_0x28483d;for(var _0x275ccd=_0x7ea1d2>0x1?void 0x0:_0x7ea1d2?Ue(_0x50d7dc,_0x2a3545):_0x50d7dc,_0x3df4ba=_0x5f3596[_0x2c2ce9(0x1d6)]-0x1,_0x5b43e1;_0x3df4ba>=0x0;_0x3df4ba--)(_0x5b43e1=_0x5f3596[_0x3df4ba])&&(_0x275ccd=_0x5b43e1(_0x275ccd)||_0x275ccd);return _0x275ccd;},je=(_0x2103d8,_0x173db8)=>(_0x508ac6,_0x24f85a)=>_0x173db8(_0x508ac6,_0x24f85a,_0x2103d8);let I=class extends _0x415a2{constructor(_0x2d014a){const _0x43722c=_0x28483d;super(),this[_0x43722c(0x1f5)]=_0x2d014a,this[_0x43722c(0x205)]();}[_0x28483d(0x205)](){[_0x3d23dc['id'],_0x3b0aa1['id'],_0x5143a7['id']]['forEach'](_0x29ee48=>{const _0x2908eb=_0x5a0d;this[_0x2908eb(0x1b8)](this[_0x2908eb(0x1f5)][_0x2908eb(0x1a5)](_0x29ee48));});}};I=Ve([je(0x0,_0x100628(L))],I);var Me=Object[_0x28483d(0x1e0)],ke=Object[_0x28483d(0x1b3)],Ge=(_0x55b69a,_0x23caba,_0x5467e8)=>_0x23caba in _0x55b69a?Me(_0x55b69a,_0x23caba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5467e8}):_0x55b69a[_0x23caba]=_0x5467e8,We=(_0x271c37,_0x3add07,_0x49f7e0,_0x5bd5b9)=>{const _0x40c156=_0x28483d;for(var _0x4dcf85=_0x5bd5b9>0x1?void 0x0:_0x5bd5b9?ke(_0x3add07,_0x49f7e0):_0x3add07,_0x55a6cf=_0x271c37[_0x40c156(0x1d6)]-0x1,_0x5cfcf0;_0x55a6cf>=0x0;_0x55a6cf--)(_0x5cfcf0=_0x271c37[_0x55a6cf])&&(_0x4dcf85=_0x5cfcf0(_0x4dcf85)||_0x4dcf85);return _0x4dcf85;},F=(_0xb8878c,_0x1d609d)=>(_0x1ddca0,_0x4e00bc)=>_0x1d609d(_0x1ddca0,_0x4e00bc,_0xb8878c),B=(_0x46f7db,_0x203a20,_0x1d5d97)=>Ge(_0x46f7db,typeof _0x203a20!=_0x28483d(0x200)?_0x203a20+'':_0x203a20,_0x1d5d97);function _0x4c4f(){const _0x64e179=['trim','add','_reporters','getTypeOfUnitDisposed$','2602113euDmhc','NEW_CHANGESETS','HEADER_MENU','end','registerSharedOperation','div','mask','You\x27are\x20offline.','currentColor','xlink:href','_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','stopFollowing','params','5874428kGzlUL','UniverIcon','idSuffix','includes','getOwnPropertyDescriptor','You\x27re\x20following\x20the\x20presenter','getValue','forEach','status$','disposeWithMe','unsubscribe','presenter','2fyXTgs','set','not-following','memberID','complete','http://www.w3.org/2000/svg','LIVESHARE_OPERATION','shouldShareOperation','getMemberID','16727814CnFXam','_startPresenting','getInitialStates','text','_handleOnline','_uiPartsService','map','executeCommand','get','live-share.config','_presenter','_handleNewChangeSets','_commandService','offline','live-share-icon','OFFLINE','_handleOperation','getUnitId','length','assign','_mountLiveShare','LIVESHARE_NEW_HOST','from','fill','getStatus','replace','LiveShareIcon','PRESENTING','defineProperty','default','asObservable','LIVESHARE_TERMINATE','_startFollowing','dispose$','univer-mb-3\x20univer-w-full\x20univer-text-sm','_status','override','_commandDisposable','UNIVER_SHEET','entries','operations','onRendered','tag','You\x27re\x20presenting\x20the\x20document','none','1em','Start\x20following','clear','defs','_liveShareService','delete','mutations','stringify','onStarting','_handleTerminate','tryStartPresenting','10SYARAS','setConfig','4057625HRxWTa','_stopFollowing','symbol','has','0\x200\x2017\x2017','LIVESHARE_FETCH_OPERATIONS','idle','_init','colorChannel1','_sharedOperations','_unitID','4HnfsfY','then','registerInitialStateReporter','url(#$1','parse','_startLiveShareCoordinator','next','dispose','_fetchOperations','pipe','data','stopPresenting','onCommandExecuted','send','button','substring','FOLLOWING','svg','sheet','getLiveShareCoordinator','string','requireSession','_configService','OPERATION','find','use','type','current','evenodd','Stop\x20presenting','presenting','Stop\x20following','attrs','subscribe','_config','IDLE','pluginName','_injector','displayName','values','getTypeOfUnitAdded$','random','_status$','_univerInstanceService','following','624606leCqzL','reverse','NOT_FOLLOWING','toString','LIVESHARE_REQUEST_HOST','_handleNewHost','startFollowing','_entities','662954fpGCOM','path','sessionStatus$','_collabSession','univer-size-4','1060776dOXzpv','init','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','children','univer-border-none\x20univer-text-gray-600\x20univer-outline-none'];_0x4c4f=function(){return _0x64e179;};return _0x4c4f();}const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x1a183f{constructor(_0x4ecc82=T,_0xf1e941,_0x31a6c5){const _0x5486a9=_0x28483d;super(),this[_0x5486a9(0x22b)]=_0x4ecc82,this['_injector']=_0xf1e941,this[_0x5486a9(0x21f)]=_0x31a6c5;const {..._0x5b320e}=_0x4cb9a7({},T,this[_0x5486a9(0x22b)]);this[_0x5486a9(0x21f)][_0x5486a9(0x1fd)](ye,_0x5b320e);}[_0x28483d(0x1f9)](){const _0x5bfcd5=_0x28483d;_0x5c9e8b(this[_0x5bfcd5(0x22e)],_0x175362([[L],[S],[I],[m]],this[_0x5bfcd5(0x22b)][_0x5bfcd5(0x1e8)])),_0xb23083(this[_0x5bfcd5(0x22e)],[[I]]);}[_0x28483d(0x1ed)](){const _0x4cfb08=_0x28483d;_0xb23083(this[_0x4cfb08(0x22e)],[[m]]);}};B(b,_0x28483d(0x223),_0x1da7ce['UNIVER_UNKNOWN']),B(b,_0x28483d(0x22d),Ye),b=We([_0x414cfb(_0x18716e),F(0x1,_0x100628(_0x1e4d19)),F(0x2,_0x28819f)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1625(_0x3b661c,_0x565209){const _0x369221=_0x3692();return _0x1625=function(_0x1625e5,_0x1a5900){_0x1625e5=_0x1625e5-0x1bc;let _0x1bc44c=_0x369221[_0x1625e5];return _0x1bc44c;},_0x1625(_0x3b661c,_0x565209);}(function(_0x202a00,_0xe1fe6e){const _0x15ec9d=_0x1625,_0xd32b8a=_0x202a00();while(!![]){try{const _0x45134a=parseInt(_0x15ec9d(0x1dd))/0x1*(-parseInt(_0x15ec9d(0x1c6))/0x2)+parseInt(_0x15ec9d(0x1e5))/0x3*(parseInt(_0x15ec9d(0x1bc))/0x4)+-parseInt(_0x15ec9d(0x1e4))/0x5+-parseInt(_0x15ec9d(0x1d2))/0x6+parseInt(_0x15ec9d(0x1e0))/0x7+-parseInt(_0x15ec9d(0x1d6))/0x8*(parseInt(_0x15ec9d(0x1df))/0x9)+parseInt(_0x15ec9d(0x1c4))/0xa;if(_0x45134a===_0xe1fe6e)break;else _0xd32b8a['push'](_0xd32b8a['shift']());}catch(_0x39b034){_0xd32b8a['push'](_0xd32b8a['shift']());}}}(_0x3692,0x33cc8),function(_0x632bcc,_0x1a9107){const _0x560946=_0x1625;typeof exports=='object'&&typeof module<'u'?_0x1a9107(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==_0x560946(0x1c5)&&define[_0x560946(0x1d7)]?define([_0x560946(0x1c3),_0x560946(0x1de),'@univerjs/sheets','@univerjs/sheets-ui',_0x560946(0x1ce),_0x560946(0x1d8)],_0x1a9107):(_0x632bcc=typeof globalThis<'u'?globalThis:_0x632bcc||self,_0x1a9107(_0x632bcc[_0x560946(0x1c7)],_0x632bcc['UniverEngineRender'],_0x632bcc['UniverSheets'],_0x632bcc[_0x560946(0x1d5)],_0x632bcc[_0x560946(0x1ed)],_0x632bcc[_0x560946(0x1eb)]));}(this,function(_0xc40279,_0x783952,_0xcb285e,_0x3624b3,_0x4a8e00,_0x3f83d1){'use strict';const _0x3d719d=_0x1625;class _0xd925d6 extends _0x4a8e00[_0x3d719d(0x1c8)]{['_initialize'](_0x2a7d58,_0x446747,_0x1b7eff,_0x50aa07,_0x287fc4){const _0x53b1fb=_0x3d719d,_0xcf9d59=_0x2a7d58['get'](_0xc40279[_0x53b1fb(0x1c1)]),_0x315716=_0x2a7d58['get'](_0x783952[_0x53b1fb(0x1e2)]),_0x487900=_0x446747['getUnitId'](),_0x5793d1=_0x446747[_0x53b1fb(0x1c2)](),_0x4e64f4=_0xcf9d59[_0x53b1fb(0x1e9)](_0x487900);(_0x4e64f4==null?void 0x0:_0x4e64f4[_0x53b1fb(0x1d4)]())!==_0xc40279['LiveShareStatus']['PRESENTING']||(_0x1b7eff['getSheetId']()!==_0x5793d1['getSheetId']()&&this[_0x53b1fb(0x1e8)][_0x53b1fb(0x1c0)](_0xcb285e[_0x53b1fb(0x1bf)]['id'],{'unitId':_0x487900,'subUnitId':_0x1b7eff[_0x53b1fb(0x1e1)]()}),!_0x315716['getRenderById'](_0x487900))||_0x287fc4[_0x53b1fb(0x1ea)](_0x3624b3[_0x53b1fb(0x1cc)]['id'],{'unitId':_0x446747[_0x53b1fb(0x1da)](),'sheetId':_0x1b7eff[_0x53b1fb(0x1e1)](),'sheetViewStartRow':_0x50aa07[_0x53b1fb(0x1dc)],'sheetViewStartColumn':_0x50aa07[_0x53b1fb(0x1cd)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4a8e00[_0x3d719d(0x1c8)][_0x3d719d(0x1d1)](_0xd925d6);class _0xd264a0 extends _0x3f83d1[_0x3d719d(0x1cf)]{[_0x3d719d(0x1be)](){const _0x521f54=_0x3d719d;var _0x237067,_0x11b9bd;const _0xa62f13=this[_0x521f54(0x1c9)]['get'](_0xc40279[_0x521f54(0x1c1)]),_0x1cd322=(_0x237067=this['getActiveWorkbook']())==null?void 0x0:_0x237067[_0x521f54(0x1ec)]();if(!_0x1cd322)throw new Error('No\x20active\x20workbook\x20found.');const _0x2ce9b0=_0xa62f13[_0x521f54(0x1e9)](_0x1cd322);return(_0x11b9bd=_0x2ce9b0==null?void 0x0:_0x2ce9b0[_0x521f54(0x1d4)]())!=null?_0x11b9bd:_0xc40279[_0x521f54(0x1d0)][_0x521f54(0x1e6)];}[_0x3d719d(0x1e7)](){const _0x4e5e48=_0x3d719d;var _0x32f93a;const _0x24b373=this[_0x4e5e48(0x1c9)][_0x4e5e48(0x1bd)](_0xc40279[_0x4e5e48(0x1c1)]),_0x333782=(_0x32f93a=this['getActiveWorkbook']())==null?void 0x0:_0x32f93a[_0x4e5e48(0x1ec)]();if(!_0x333782)throw new Error(_0x4e5e48(0x1db));const _0x230f56=_0x24b373['getLiveShareCoordinatorSync'](_0x333782);if(!_0x230f56)throw new Error(_0x4e5e48(0x1d3));_0x230f56['startFollowing']();}[_0x3d719d(0x1cb)](){const _0x763198=_0x3d719d;var _0x3ecd97;const _0x41d99c=this[_0x763198(0x1c9)]['get'](_0xc40279[_0x763198(0x1c1)]),_0x324ecd=(_0x3ecd97=this[_0x763198(0x1ca)]())==null?void 0x0:_0x3ecd97[_0x763198(0x1ec)]();if(!_0x324ecd)throw new Error('No\x20active\x20workbook\x20found.');const _0xc4fb48=_0x41d99c['getLiveShareCoordinatorSync'](_0x324ecd);if(!_0xc4fb48)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xc4fb48[_0x763198(0x1cb)]();}['startPresenting'](){const _0x111fac=_0x3d719d;var _0x36d73b;const _0x5c077c=this[_0x111fac(0x1c9)][_0x111fac(0x1bd)](_0xc40279[_0x111fac(0x1c1)]),_0x503e9a=(_0x36d73b=this[_0x111fac(0x1ca)]())==null?void 0x0:_0x36d73b['getId']();if(!_0x503e9a)throw new Error(_0x111fac(0x1db));const _0x49d567=_0x5c077c[_0x111fac(0x1e9)](_0x503e9a);if(!_0x49d567)throw new Error(_0x111fac(0x1d3));_0x49d567['tryStartPresenting']();}[_0x3d719d(0x1d9)](){const _0x2f6b13=_0x3d719d;var _0x18bcb8;const _0x1872d9=this['_injector']['get'](_0xc40279['LiveShareController']),_0x1586d2=(_0x18bcb8=this[_0x2f6b13(0x1ca)]())==null?void 0x0:_0x18bcb8['getId']();if(!_0x1586d2)throw new Error(_0x2f6b13(0x1db));const _0x176815=_0x1872d9[_0x2f6b13(0x1e9)](_0x1586d2);if(!_0x176815)throw new Error(_0x2f6b13(0x1d3));_0x176815[_0x2f6b13(0x1d9)]();}}_0x3f83d1['FUniver']['extend'](_0xd264a0);class _0xb38521 extends _0x3f83d1[_0x3d719d(0x1e3)]{get['LiveShareStatusEnum'](){const _0x13b8f1=_0x3d719d;return _0xc40279[_0x13b8f1(0x1d0)];}}_0x3f83d1[_0x3d719d(0x1e3)][_0x3d719d(0x1d1)](_0xb38521);}));function _0x3692(){const _0x41be72=['UniverProLiveShare','FRange','_injector','getActiveWorkbook','stopFollowing','SetScrollOperation','startColumn','@univerjs/sheets/facade','FUniver','LiveShareStatus','extend','1585380LtNBKR','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','UniverSheetsUi','384ZMCKNk','amd','@univerjs/core/facade','stopPresenting','getUnitId','No\x20active\x20workbook\x20found.','startRow','1651HTGxEa','@univerjs/engine-render','3537clFSbn','10332GcomRs','getSheetId','IRenderManagerService','FEnum','832855FKFJWk','6zMAkYr','IDLE','startFollowing','_commandService','getLiveShareCoordinatorSync','syncExecuteCommand','UniverCoreFacade','getId','UniverSheetsFacade','339196Yfgful','get','getLiveShareStatus','SetWorksheetActiveOperation','executeCommand','LiveShareController','getActiveSheet','@univerjs-pro/live-share','6575100DbLRef','function','202bECSKQ'];_0x3692=function(){return _0x41be72;};return _0x3692();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2d37(_0x1ed951,_0x4b682b){const _0x123bcc=_0x123b();return _0x2d37=function(_0x2d37b9,_0x2497ae){_0x2d37b9=_0x2d37b9-0x1dc;let _0x95c3aa=_0x123bcc[_0x2d37b9];return _0x95c3aa;},_0x2d37(_0x1ed951,_0x4b682b);}function _0x123b(){const _0x269515=['parseProtocolChangeset','path','unitId','url(#$1','getInitialStates','rxjs/operators','send','trim','attrs','_unitID','44655215jLZwFy','createInstance','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','operators','You\x27are\x20offline.','use','_stopFollowing','UniverDesign','idSuffix','add','presenting','LIVESHARE_TERMINATE','useState','stopFollowing','Plugin','includes','getCurrentTypeOfUnit$','registerComponent','init','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20not\x20following\x20the\x20presenter','none','onRendered','current','LiveShareIcon','PRESENTING','toStringTag','_handleNewHost','setConfig','toDisposable','displayName','IUniverInstanceService','live-share.config','string','react','univer-size-4','dispose','_handleOffline','_liveShareService','UniverProLiveShare','get','SetWorksheetActiveOperation','@univerjs-pro/collaboration','7858jGKfmw','_univerInstanceService','pipe','_handleNewChangeSets','_reporters','takeUntil','subscribe','DesktopLiveShareController','308arsHTw','forwardRef','operations','univerjs-icon\x20univerjs-icon-','live-share-icon','Module','CollaborationSessionService','126354GRxkNf','div','getLiveShareCoordinatorSync','_entities','http://www.w3.org/2000/svg','colorChannel1','4911669lNTxic','_mountLiveShare','@univerjs/design','ICommandService','merge','delete','assign','Start','xlink:href','registerDependencies','UniverSheetsUi','_configService','UniverInstanceType','UniverProCollaborationClient','LiveShare','rxjs','event$','asObservable','_presenter','SetScrollOperation','3zzGDsS','set','button','mask','_status$','tag','override','LiveShareController','status$','OFFLINE','LiveShareStatus','following','Disposable','Button','evenodd','SAME_OPERATION_SHARE_INTERVAL','12cyRqNz','Injector','NOT_FOLLOWING','_collabSession','disposeWithMe','_startFollowing','executeCommand','Fragment','clear','registerSharedOperation','UniverSheets','0\x200\x2017\x2017','length','requireSession','@univerjs/sheets','amd','IUIPartsService','_handleOperation','useEffect','replace','3476856IXaLnP','LIVESHARE_OPERATION','defs','BuiltInUIPart','_fetchOperations','offline','HEADER_MENU','type','CollaborationEvent','UniverLiveSharePlugin','_sharedOperations','registerInitialStateReporter','SessionStatus','params','_handleTerminate','useRef','LIVESHARE_REQUEST_HOST','end','sheet','stopPresenting','UniverCore','jsxs','@univerjs/sheets-ui','_status','getLiveShareCoordinator','getUnitId','createElement','UniverCollaborationClientPlugin','find','stringify','_commandDisposable','startFollowing','svg','Dropdown','getConfig','_startPresenting','CommandType','onCommandExecuted','useDependency','_injector','has','You\x27re\x20presenting\x20the\x20document','currentColor','9TvMnok','_commandService','entries','LiveShareCoordinator','DisposableCollection','InsertSheetMutation','ONLINE','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','jsx','pluginName','Start\x20following','clsx','defIds','unsubscribe','IDLE','8159304exygrj','_startLiveShareCoordinator','1em','memberID','useObservable','data','connectInjector','exports','getStatus','RxDisposable','tryStartPresenting','_collabSessionService','then','fill','9896620BYmJQW','presenter','FOLLOWING','getMemberID','getValue','substring','forEach','parse','React','idle','not-following','220EzPrTv','children','Subject','_uiPartsService','getOwnPropertyDescriptor','IConfigService','OPERATION','NEW_CHANGESETS','next','mergeOverrideWithDependencies','UNIVER_UNKNOWN','react/jsx-runtime','shouldShareOperation','touchDependencies','defineProperty','getTypeOfUnitDisposed$','dispose$','_handleOnline','_config','symbol','_init','Inject','map','UNIVER_SHEET','values'];_0x123b=function(){return _0x269515;};return _0x123b();}(function(_0x5cad6d,_0x8de8bb){const _0x12b978=_0x2d37,_0x3a6170=_0x5cad6d();while(!![]){try{const _0x372672=parseInt(_0x12b978(0x23a))/0x1*(parseInt(_0x12b978(0x242))/0x2)+-parseInt(_0x12b978(0x263))/0x3*(parseInt(_0x12b978(0x287))/0x4)+parseInt(_0x12b978(0x1ec))/0x5*(-parseInt(_0x12b978(0x249))/0x6)+-parseInt(_0x12b978(0x24f))/0x7+parseInt(_0x12b978(0x2c1))/0x8*(-parseInt(_0x12b978(0x2b2))/0x9)+-parseInt(_0x12b978(0x1e1))/0xa+parseInt(_0x12b978(0x20f))/0xb*(parseInt(_0x12b978(0x273))/0xc);if(_0x372672===_0x8de8bb)break;else _0x3a6170['push'](_0x3a6170['shift']());}catch(_0xe0893d){_0x3a6170['push'](_0x3a6170['shift']());}}}(_0x123b,0xba315),function(_0xc979a,_0x29fea4){const _0x2ea82b=_0x2d37;typeof exports=='object'&&typeof module<'u'?_0x29fea4(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[_0x2ea82b(0x282)]?define([_0x2ea82b(0x2c8),'@univerjs/core','@univerjs/ui',_0x2ea82b(0x1f7),_0x2ea82b(0x251),_0x2ea82b(0x231),_0x2ea82b(0x239),'@univerjs-pro/collaboration-client',_0x2ea82b(0x281),_0x2ea82b(0x25e),_0x2ea82b(0x20a),_0x2ea82b(0x29d)],_0x29fea4):(_0xc979a=typeof globalThis<'u'?globalThis:_0xc979a||self,_0x29fea4(_0xc979a[_0x2ea82b(0x236)]={},_0xc979a[_0x2ea82b(0x29b)],_0xc979a['UniverUi'],_0xc979a[_0x2ea82b(0x1e9)],_0xc979a[_0x2ea82b(0x216)],_0xc979a[_0x2ea82b(0x1e9)],_0xc979a['UniverProCollaboration'],_0xc979a[_0x2ea82b(0x25c)],_0xc979a[_0x2ea82b(0x27d)],_0xc979a['rxjs'],_0xc979a['rxjs'][_0x2ea82b(0x212)],_0xc979a[_0x2ea82b(0x259)]));}(this,function(_0x21866a,_0x3af4dc,_0x46780c,_0x576bb8,_0x37c869,_0x4b8b10,_0x3aa658,_0x2d57ff,_0x20cbe0,_0x571e52,_0x4bad4b,_0xe755ca){'use strict';const _0x5a42db=_0x2d37;var _0x5b9b43=Object[_0x5a42db(0x1fa)],_0x6f2233=(_0x3f7703,_0x4d286a,_0xd3a378)=>_0x4d286a in _0x3f7703?_0x5b9b43(_0x3f7703,_0x4d286a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd3a378}):_0x3f7703[_0x4d286a]=_0xd3a378,_0x407be2=(_0x5af591,_0x39c376,_0x329026)=>_0x6f2233(_0x5af591,typeof _0x39c376!=_0x5a42db(0x1ff)?_0x39c376+'':_0x39c376,_0x329026);function _0x194870({ref:_0x2d47b8,..._0x399363}){const _0x1b5414=_0x5a42db,{icon:_0xd5a7b1,id:_0x3b869a,className:_0x1efaaa,extend:_0x72f8fc,..._0xa3ac11}=_0x399363,_0x50863a=(_0x1b5414(0x245)+_0x3b869a+'\x20'+(_0x1efaaa||''))[_0x1b5414(0x20c)](),_0xe9973a=_0x4b8b10['useRef']('_'+_0x4f58c8());return _0x933340(_0xd5a7b1,''+_0x3b869a,{'defIds':_0xd5a7b1[_0x1b5414(0x2be)],'idSuffix':_0xe9973a[_0x1b5414(0x226)]},{'ref':_0x2d47b8,'className':_0x50863a,..._0xa3ac11},_0x72f8fc);}function _0x933340(_0x407e1d,_0x424a78,_0x38c793,_0x50c7b1,_0xf6ae44){const _0x22690d=_0x5a42db;return _0x4b8b10[_0x22690d(0x2a1)](_0x407e1d['tag'],{'key':_0x424a78,..._0x186ec8(_0x407e1d,_0x38c793,_0xf6ae44),..._0x50c7b1},(_0x4d9a72(_0x407e1d,_0x38c793)[_0x22690d(0x1ed)]||[])['map']((_0x3c9124,_0x3fe968)=>_0x933340(_0x3c9124,_0x424a78+'-'+_0x407e1d[_0x22690d(0x268)]+'-'+_0x3fe968,_0x38c793,void 0x0,_0xf6ae44)));}function _0x186ec8(_0x2f57f0,_0x505b4f,_0x186568){const _0x42d699=_0x5a42db,_0x1e57f1={..._0x2f57f0[_0x42d699(0x20d)]};_0x186568!=null&&_0x186568[_0x42d699(0x24e)]&&_0x1e57f1[_0x42d699(0x1e0)]===_0x42d699(0x24e)&&(_0x1e57f1[_0x42d699(0x1e0)]=_0x186568[_0x42d699(0x24e)]),_0x2f57f0['tag']===_0x42d699(0x266)&&_0x1e57f1['id']&&(_0x1e57f1['id']=_0x1e57f1['id']+_0x505b4f[_0x42d699(0x217)]),Object['entries'](_0x1e57f1)[_0x42d699(0x1e7)](([_0x5053d4,_0xa83021])=>{const _0x5cdf43=_0x42d699;_0x5053d4===_0x5cdf43(0x266)&&typeof _0xa83021==_0x5cdf43(0x230)&&(_0x1e57f1[_0x5053d4]=_0xa83021[_0x5cdf43(0x286)](/url\(#(.*)\)/,_0x5cdf43(0x208)+_0x505b4f[_0x5cdf43(0x217)]+')'));});const {defIds:_0xdb4571}=_0x505b4f;return!_0xdb4571||_0xdb4571[_0x42d699(0x27f)]===0x0||(_0x2f57f0[_0x42d699(0x268)]===_0x42d699(0x214)&&_0x1e57f1['xlink:href']&&(_0x1e57f1['xlink:href']=_0x1e57f1[_0x42d699(0x257)]+_0x505b4f['idSuffix']),Object[_0x42d699(0x2b4)](_0x1e57f1)[_0x42d699(0x1e7)](([_0xfff405,_0x3644c2])=>{const _0x28d824=_0x42d699;typeof _0x3644c2==_0x28d824(0x230)&&(_0x1e57f1[_0xfff405]=_0x3644c2['replace'](/url\(#(.*)\)/,'url(#$1'+_0x505b4f[_0x28d824(0x217)]+')'));})),_0x1e57f1;}function _0x4d9a72(_0x519dfe,_0x2e5693){const _0x157033=_0x5a42db;var _0x247782;const {defIds:_0x3bb5c1}=_0x2e5693;return!_0x3bb5c1||_0x3bb5c1[_0x157033(0x27f)]===0x0?_0x519dfe:_0x519dfe['tag']===_0x157033(0x289)&&((_0x247782=_0x519dfe[_0x157033(0x1ed)])!=null&&_0x247782[_0x157033(0x27f)])?{..._0x519dfe,'children':_0x519dfe[_0x157033(0x1ed)][_0x157033(0x202)](_0x51d2f3=>typeof _0x51d2f3[_0x157033(0x20d)]['id']==_0x157033(0x230)&&_0x3bb5c1&&_0x3bb5c1['includes'](_0x51d2f3[_0x157033(0x20d)]['id'])?{..._0x51d2f3,'attrs':{..._0x51d2f3[_0x157033(0x20d)],'id':_0x51d2f3[_0x157033(0x20d)]['id']+_0x2e5693[_0x157033(0x217)]}}:_0x51d2f3)}:_0x519dfe;}function _0x4f58c8(){const _0x443eca=_0x5a42db;return Math['random']()['toString'](0x24)[_0x443eca(0x1e6)](0x2,0x8);}_0x194870['displayName']='UniverIcon';const _0x3b6341={'tag':_0x5a42db(0x2a7),'attrs':{'xmlns':_0x5a42db(0x24d),'fill':_0x5a42db(0x224),'viewBox':_0x5a42db(0x27e),'width':_0x5a42db(0x2c3),'height':_0x5a42db(0x2c3)},'children':[{'tag':_0x5a42db(0x206),'attrs':{'fill':_0x5a42db(0x2b1),'d':_0x5a42db(0x2b9)}},{'tag':_0x5a42db(0x206),'attrs':{'fill':_0x5a42db(0x2b1),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x5a42db(0x271),'clipRule':_0x5a42db(0x271)}}]},_0x69a8c2=_0x4b8b10[_0x5a42db(0x243)](function(_0x12657d,_0x539841){const _0x3325a2=_0x5a42db;return _0x4b8b10[_0x3325a2(0x2a1)](_0x194870,Object[_0x3325a2(0x255)]({},_0x12657d,{'id':_0x3325a2(0x246),'ref':_0x539841,'icon':_0x3b6341}));});_0x69a8c2[_0x5a42db(0x22d)]=_0x5a42db(0x227);class _0x118014 extends _0x3af4dc[_0x5a42db(0x26f)]{constructor(){const _0x5610ce=_0x5a42db;super(...arguments),_0x407be2(this,_0x5610ce(0x291),new Set()),_0x407be2(this,_0x5610ce(0x23e),new Set());}['registerSharedOperation'](_0xf2ef45){const _0x3bb6fd=_0x5a42db;return this[_0x3bb6fd(0x291)][_0x3bb6fd(0x218)](_0xf2ef45),_0x3af4dc[_0x3bb6fd(0x22c)](()=>this[_0x3bb6fd(0x291)][_0x3bb6fd(0x254)](_0xf2ef45));}[_0x5a42db(0x292)](_0x264a6a){const _0x58a49c=_0x5a42db;return this[_0x58a49c(0x23e)][_0x58a49c(0x218)](_0x264a6a),_0x3af4dc[_0x58a49c(0x22c)](()=>this[_0x58a49c(0x23e)][_0x58a49c(0x254)](_0x264a6a));}[_0x5a42db(0x1f8)](_0x2df120){const _0x147d1d=_0x5a42db;return this['_sharedOperations'][_0x147d1d(0x2af)](_0x2df120);}[_0x5a42db(0x209)](_0xe8b74f){const _0x3f7df4=_0x5a42db;return Array['from'](this[_0x3f7df4(0x23e)])[_0x3f7df4(0x202)](_0x3033c4=>_0x3033c4(_0xe8b74f));}}var _0x4efa31=Object['getOwnPropertyDescriptor'],_0x3929cc=(_0x1e17b0,_0x413db2,_0x5e08f6,_0x38ecb5)=>{const _0xe58edf=_0x5a42db;for(var _0x548d90=_0x38ecb5>0x1?void 0x0:_0x38ecb5?_0x4efa31(_0x413db2,_0x5e08f6):_0x413db2,_0x5c8c12=_0x1e17b0[_0xe58edf(0x27f)]-0x1,_0x4e5c71;_0x5c8c12>=0x0;_0x5c8c12--)(_0x4e5c71=_0x1e17b0[_0x5c8c12])&&(_0x548d90=_0x4e5c71(_0x548d90)||_0x548d90);return _0x548d90;},_0x51d7dc=(_0xe12a91,_0x117cb0)=>(_0x30be87,_0x213ca3)=>_0x117cb0(_0x30be87,_0x213ca3,_0xe12a91);_0x21866a[_0x5a42db(0x26a)]=class extends _0x3af4dc[_0x5a42db(0x1dc)]{constructor(_0xce33b3,_0x2504db,_0x113a43){const _0xf6c946=_0x5a42db;super(),_0x407be2(this,_0xf6c946(0x24c),new Map()),(this[_0xf6c946(0x23b)]=_0xce33b3,this[_0xf6c946(0x2ae)]=_0x2504db,this[_0xf6c946(0x1de)]=_0x113a43,this[_0xf6c946(0x200)]());}async[_0x5a42db(0x29f)](_0x14985d){const _0x5a839f=_0x5a42db;return this['_entities']['has'](_0x14985d)||await this[_0x5a839f(0x2c2)](_0x14985d),this[_0x5a839f(0x24c)]['get'](_0x14985d);}[_0x5a42db(0x24b)](_0x5ace7e){var _0x5d9140;return(_0x5d9140=this['_entities']['get'](_0x5ace7e))!=null?_0x5d9140:null;}[_0x5a42db(0x200)](){const _0xfa239d=_0x5a42db;this[_0xfa239d(0x23b)]['getTypeOfUnitAdded$'](_0x3af4dc[_0xfa239d(0x25b)]['UNIVER_SHEET'])['pipe'](_0x4bad4b['takeUntil'](this['dispose$']))[_0xfa239d(0x240)](async _0xfdc4bd=>{const _0x255f9e=_0xfa239d,_0x226dbf=_0xfdc4bd[_0x255f9e(0x2a0)]();this[_0x255f9e(0x24c)]['has'](_0x226dbf)||this[_0x255f9e(0x2c2)](_0x226dbf);}),this[_0xfa239d(0x23b)][_0xfa239d(0x1fb)](_0x3af4dc[_0xfa239d(0x25b)][_0xfa239d(0x203)])[_0xfa239d(0x23c)](_0x4bad4b[_0xfa239d(0x23f)](this['dispose$']))['subscribe'](_0x392711=>{const _0x1b211b=_0xfa239d,_0x676c75=_0x392711[_0x1b211b(0x2a0)](),_0x14929c=this[_0x1b211b(0x24c)][_0x1b211b(0x237)](_0x676c75);_0x14929c==null||_0x14929c[_0x1b211b(0x233)]();});}async[_0x5a42db(0x2c2)](_0x5b0f7f){const _0x549060=_0x5a42db,_0x5aaeaa=await this['_collabSessionService'][_0x549060(0x280)](_0x5b0f7f),_0x12a87d=this[_0x549060(0x2ae)][_0x549060(0x210)](_0x21866a[_0x549060(0x2b5)],_0x5b0f7f,_0x5aaeaa);return _0x12a87d[_0x549060(0x221)](),this[_0x549060(0x24c)][_0x549060(0x264)](_0x5b0f7f,_0x12a87d),_0x12a87d;}},_0x21866a[_0x5a42db(0x26a)]=_0x3929cc([_0x51d7dc(0x0,_0x3af4dc[_0x5a42db(0x22e)]),_0x51d7dc(0x1,_0x3af4dc[_0x5a42db(0x201)](_0x3af4dc[_0x5a42db(0x274)])),_0x51d7dc(0x2,_0x3af4dc[_0x5a42db(0x201)](_0x2d57ff[_0x5a42db(0x248)]))],_0x21866a[_0x5a42db(0x26a)]);var _0x1093b3=(_0x12acc4=>(_0x12acc4['OFFLINE']=_0x5a42db(0x28c),_0x12acc4['IDLE']=_0x5a42db(0x1ea),_0x12acc4[_0x5a42db(0x1e3)]=_0x5a42db(0x26e),_0x12acc4[_0x5a42db(0x275)]=_0x5a42db(0x1eb),_0x12acc4['PRESENTING']='presenting',_0x12acc4))(_0x1093b3||{});const _0x1c353e=_0x5a42db(0x272),_0x4ab46e=0xc8;_0x21866a['LiveShareCoordinator']=class extends _0x3af4dc[_0x5a42db(0x1dc)]{constructor(_0x51827d,_0x506291,_0x2c2442,_0x50d3da,_0x3362f9){const _0xd72198=_0x5a42db;super(),_0x407be2(this,_0xd72198(0x267),new _0x571e52['BehaviorSubject'](_0xd72198(0x1ea))),_0x407be2(this,_0xd72198(0x26b),this[_0xd72198(0x267)][_0xd72198(0x260)]()),_0x407be2(this,_0xd72198(0x200),!0x1),_0x407be2(this,_0xd72198(0x2a5),null),_0x407be2(this,_0xd72198(0x261),null),(this[_0xd72198(0x20e)]=_0x51827d,this['_collabSession']=_0x506291,this[_0xd72198(0x25a)]=_0x2c2442,this[_0xd72198(0x235)]=_0x50d3da,this[_0xd72198(0x2b3)]=_0x3362f9);}get[_0x5a42db(0x29e)](){const _0x4e422f=_0x5a42db;return this['_status$'][_0x4e422f(0x1e5)]();}['dispose'](){const _0x51b093=_0x5a42db;var _0x31d5ad;(_0x31d5ad=this['_commandDisposable'])==null||_0x31d5ad[_0x51b093(0x233)](),this['_status$']['next'](_0x51b093(0x1ea)),this[_0x51b093(0x267)]['complete']();}[_0x5a42db(0x2c9)](){const _0x3e43ae=_0x5a42db;return this[_0x3e43ae(0x29e)];}[_0x5a42db(0x221)](){const _0x24a152=_0x5a42db;this[_0x24a152(0x200)]||(this['_init']=!0x0,this[_0x24a152(0x276)]['sessionStatus$'][_0x24a152(0x23c)](_0x4bad4b[_0x24a152(0x23f)](this[_0x24a152(0x1fc)]))[_0x24a152(0x240)](_0x14b274=>{const _0x17c7ea=_0x24a152;switch(_0x14b274){case _0x2d57ff[_0x17c7ea(0x293)][_0x17c7ea(0x26c)]:this['_handleOffline']();break;case _0x2d57ff['SessionStatus'][_0x17c7ea(0x2b8)]:this[_0x17c7ea(0x1fd)]();break;}}),this[_0x24a152(0x276)][_0x24a152(0x25f)][_0x24a152(0x23c)](_0x4bad4b[_0x24a152(0x23f)](this[_0x24a152(0x1fc)]))['subscribe'](_0x198bb8=>{const _0x3ff1e2=_0x24a152,{eventID:_0x1093a4}=_0x198bb8;switch(_0x1093a4){case _0x3aa658[_0x3ff1e2(0x28f)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x198bb8);break;case _0x3aa658['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x3ff1e2(0x284)](_0x198bb8);break;case _0x3aa658[_0x3ff1e2(0x28f)]['LIVESHARE_TERMINATE']:this[_0x3ff1e2(0x295)]();break;case _0x3aa658[_0x3ff1e2(0x28f)][_0x3ff1e2(0x1f3)]:this[_0x3ff1e2(0x23d)](_0x198bb8);break;}}));}[_0x5a42db(0x1dd)](){const _0x333311=_0x5a42db;this[_0x333311(0x276)][_0x333311(0x20b)]({'eventID':_0x3aa658['CollaborationEvent'][_0x333311(0x297)],'data':{'unitID':this[_0x333311(0x20e)],'userID':this[_0x333311(0x276)][_0x333311(0x1e4)]()}},this[_0x333311(0x20e)]);}[_0x5a42db(0x29a)](){const _0x4a7685=_0x5a42db;this[_0x4a7685(0x29e)]===_0x4a7685(0x219)&&(this[_0x4a7685(0x267)][_0x4a7685(0x1f4)](_0x4a7685(0x1ea)),this['_collabSession'][_0x4a7685(0x20b)]({'eventID':_0x3aa658[_0x4a7685(0x28f)][_0x4a7685(0x21a)],'data':{'unitID':this[_0x4a7685(0x20e)]}},this[_0x4a7685(0x20e)]));}['startFollowing'](){const _0x104ceb=_0x5a42db;this[_0x104ceb(0x29e)]===_0x104ceb(0x1eb)&&(this[_0x104ceb(0x267)]['next']('following'),this[_0x104ceb(0x278)]());}[_0x5a42db(0x21c)](){const _0xebb805=_0x5a42db;this[_0xebb805(0x29e)]==='following'&&this[_0xebb805(0x215)]();}[_0x5a42db(0x22a)](_0x13eff9){const _0x4ad956=_0x5a42db,{presenter:_0x4d444e}=_0x13eff9[_0x4ad956(0x2c6)],_0x1d1590=this[_0x4ad956(0x276)][_0x4ad956(0x1e4)]();this[_0x4ad956(0x261)]=_0x4d444e,_0x4d444e===_0x1d1590?(this[_0x4ad956(0x215)](),this['_startPresenting']()):this[_0x4ad956(0x29e)]!=='not-following'&&(this['_stopPresenting'](),this[_0x4ad956(0x278)]());}[_0x5a42db(0x28b)](){const _0x3ba2de=_0x5a42db,_0x2a685d={'eventID':_0x3aa658[_0x3ba2de(0x28f)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x3ba2de(0x276)][_0x3ba2de(0x20b)](_0x2a685d,this[_0x3ba2de(0x20e)]);}['_handleTerminate'](){const _0x3e9aac=_0x5a42db;this[_0x3e9aac(0x261)]=null,this['_status']!==_0x3e9aac(0x219)&&this['_beIdle']();}['_handleNewChangeSets'](_0xcf10df){const _0x3a0494=_0x5a42db;if(this[_0x3a0494(0x29e)]===_0x3a0494(0x26e)&&this[_0x3a0494(0x261)]===_0xcf10df[_0x3a0494(0x2c6)][_0x3a0494(0x2c4)]){const _0xedacda=_0x3aa658[_0x3a0494(0x205)](_0xcf10df[_0x3a0494(0x2c6)])['mutations']['reverse']()[_0x3a0494(0x2a3)](_0x426704=>_0x426704['id']===_0x20cbe0[_0x3a0494(0x2b7)]['id']);if(_0xedacda){const _0x14fe04=_0xedacda[_0x3a0494(0x294)][_0x3a0494(0x207)],_0x3edb55=_0xedacda[_0x3a0494(0x294)][_0x3a0494(0x299)]['id'];setTimeout(()=>{const _0x1b7e0b=_0x3a0494;this[_0x1b7e0b(0x2b3)][_0x1b7e0b(0x279)](_0x20cbe0[_0x1b7e0b(0x238)]['id'],{'unitId':_0x14fe04,'subUnitId':_0x3edb55},{'fromCollab':!0x0});});}}}[_0x5a42db(0x2aa)](){const _0x13adcf=_0x5a42db;this[_0x13adcf(0x267)][_0x13adcf(0x1f4)](_0x13adcf(0x219));const _0x530bcc=new Map(),_0x5e65fd=this[_0x13adcf(0x2a5)]=new _0x3af4dc[(_0x13adcf(0x2b6))]();_0x5e65fd[_0x13adcf(0x218)](_0x3af4dc[_0x13adcf(0x22c)](()=>{const _0x140a95=_0x13adcf;_0x530bcc['forEach'](_0x183b5c=>_0x183b5c['complete']()),_0x530bcc[_0x140a95(0x27b)]();})),_0x5e65fd[_0x13adcf(0x218)](this[_0x13adcf(0x2b3)][_0x13adcf(0x2ac)](_0x3e2cdc=>{const _0x5a6f50=_0x13adcf;var _0x5834de;if(_0x3e2cdc['type']!==_0x3af4dc[_0x5a6f50(0x2ab)][_0x5a6f50(0x1f2)]||!this['_liveShareService'][_0x5a6f50(0x1f8)](_0x3e2cdc['id']))return;const {id:_0x46038a}=_0x3e2cdc;let _0xe044cf;_0x530bcc['has'](_0x46038a)?_0xe044cf=_0x530bcc[_0x5a6f50(0x237)](_0x46038a):(_0xe044cf=new _0x571e52[(_0x5a6f50(0x1ee))](),_0x530bcc[_0x5a6f50(0x264)](_0x46038a,_0xe044cf),_0xe044cf[_0x5a6f50(0x23c)](_0x4bad4b['throttleTime']((_0x5834de=this[_0x5a6f50(0x25a)][_0x5a6f50(0x2a9)](_0x1c353e))!=null?_0x5834de:_0x4ab46e,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x56e0ad=>{const _0xbbf22a=_0x5a6f50;this[_0xbbf22a(0x276)][_0xbbf22a(0x20b)]({'eventID':_0x3aa658[_0xbbf22a(0x28f)][_0xbbf22a(0x288)],'data':{'unitID':this[_0xbbf22a(0x20e)],'operations':{[_0x56e0ad['id']]:{'id':_0x56e0ad['id'],'params':JSON[_0xbbf22a(0x2a4)](_0x56e0ad[_0xbbf22a(0x294)])}}}},this[_0xbbf22a(0x20e)]);})),_0xe044cf[_0x5a6f50(0x1f4)](_0x3e2cdc);})),this['_liveShareService']['getInitialStates'](this[_0x13adcf(0x20e)])[_0x13adcf(0x1e7)](_0x1107c0=>this[_0x13adcf(0x276)][_0x13adcf(0x20b)]({'eventID':_0x3aa658[_0x13adcf(0x28f)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x13adcf(0x20e)],'operations':{[_0x1107c0['id']]:{'id':_0x1107c0['id'],'params':JSON['stringify'](_0x1107c0[_0x13adcf(0x294)])}}}},this[_0x13adcf(0x20e)]));}['_stopPresenting'](){const _0x4fe17e=_0x5a42db;var _0xd61e27;this[_0x4fe17e(0x267)][_0x4fe17e(0x1f4)]('idle'),(_0xd61e27=this['_commandDisposable'])==null||_0xd61e27[_0x4fe17e(0x233)](),this['_commandDisposable']=null;}[_0x5a42db(0x278)](){const _0x11ad14=_0x5a42db;var _0x7657e4;(_0x7657e4=this[_0x11ad14(0x2a5)])==null||_0x7657e4['dispose'](),this[_0x11ad14(0x267)][_0x11ad14(0x1f4)](_0x11ad14(0x26e));}['_beIdle'](){const _0x53b847=_0x5a42db;var _0x1b7594;this[_0x53b847(0x267)]['next']('idle'),(_0x1b7594=this[_0x53b847(0x2a5)])==null||_0x1b7594[_0x53b847(0x233)](),this[_0x53b847(0x2a5)]=null;}[_0x5a42db(0x215)](){const _0x2efa18=_0x5a42db;var _0xabd0cc;this['_status$'][_0x2efa18(0x1f4)](_0x2efa18(0x1eb)),(_0xabd0cc=this[_0x2efa18(0x2a5)])==null||_0xabd0cc[_0x2efa18(0x233)]();}[_0x5a42db(0x284)](_0x1d6ecb){const _0x30ac28=_0x5a42db;if([_0x30ac28(0x219),_0x30ac28(0x1eb),'offline'][_0x30ac28(0x21e)](this['_status'])||!_0x1d6ecb['data'][_0x30ac28(0x1e2)]||_0x1d6ecb[_0x30ac28(0x2c6)][_0x30ac28(0x1e2)]===this[_0x30ac28(0x276)][_0x30ac28(0x1e4)]())return;this['_status']===_0x30ac28(0x1ea)&&this['_startFollowing']();const _0x5dcfac=_0x1d6ecb[_0x30ac28(0x2c6)][_0x30ac28(0x244)];Object[_0x30ac28(0x204)](_0x5dcfac)[_0x30ac28(0x1e7)](_0x589a02=>{const _0x148102=_0x30ac28;this[_0x148102(0x2b3)]['executeCommand'](_0x589a02['id'],_0x589a02[_0x148102(0x294)]?JSON[_0x148102(0x1e8)](_0x589a02[_0x148102(0x294)]):null,{'fromCollab':!0x0});});}[_0x5a42db(0x234)](){const _0x22a9d4=_0x5a42db;var _0x3f408b;this[_0x22a9d4(0x267)]['next']('offline'),(_0x3f408b=this[_0x22a9d4(0x2a5)])==null||_0x3f408b[_0x22a9d4(0x233)]();}[_0x5a42db(0x1fd)](){const _0x4ec3ee=_0x5a42db;this['_status$'][_0x4ec3ee(0x1f4)]('idle'),this['_fetchOperations']();}},_0x21866a[_0x5a42db(0x2b5)]=_0x3929cc([_0x51d7dc(0x2,_0x3af4dc[_0x5a42db(0x1f1)]),_0x51d7dc(0x3,_0x3af4dc[_0x5a42db(0x201)](_0x118014)),_0x51d7dc(0x4,_0x3af4dc[_0x5a42db(0x252)])],_0x21866a[_0x5a42db(0x2b5)]);function _0x85ceaa(){const _0x38b63b=_0x5a42db,_0x403106=_0x46780c['useDependency'](_0x21866a['LiveShareController']),_0xceabd5=_0x46780c[_0x38b63b(0x2ad)](_0x3af4dc[_0x38b63b(0x22e)]),_0x38febe=_0x46780c[_0x38b63b(0x2c5)](()=>_0xceabd5[_0x38b63b(0x21f)](_0x3af4dc[_0x38b63b(0x25b)][_0x38b63b(0x203)]),void 0x0,!0x1,[]),[_0x24856b,_0x492065]=_0x4b8b10[_0x38b63b(0x21b)](null),[_0x54f3bb,_0x1d3d2d]=_0x4b8b10[_0x38b63b(0x21b)](_0x1093b3['IDLE']),_0xa68222=_0x4b8b10[_0x38b63b(0x296)](null);return _0x4b8b10[_0x38b63b(0x285)](()=>(_0x38febe&&_0x403106[_0x38b63b(0x29f)](_0x38febe['getUnitId']())[_0x38b63b(0x1df)](_0xc095e6=>{const _0x37d23a=_0x38b63b;_0x492065(_0xc095e6),_0xa68222[_0x37d23a(0x226)]=_0xc095e6['status$'][_0x37d23a(0x240)](_0x8f25a0=>{_0x1d3d2d(_0x8f25a0);});}),()=>{const _0x3531da=_0x38b63b;var _0x4f4da2;(_0x4f4da2=_0xa68222[_0x3531da(0x226)])==null||_0x4f4da2[_0x3531da(0x2bf)](),_0xa68222[_0x3531da(0x226)]=null;}),[_0x38febe,_0x403106]),_0x24856b?_0x576bb8['jsx'](_0x37c869[_0x38b63b(0x2a8)],{'align':_0x38b63b(0x298),'disabled':_0x54f3bb===_0x1093b3[_0x38b63b(0x26c)],'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':_0x576bb8['jsx'](_0x3c3f14,{'status':_0x54f3bb,'coordinator':_0x24856b}),'children':_0x576bb8[_0x38b63b(0x2ba)](_0x38b63b(0x265),{'className':_0x37c869[_0x38b63b(0x2bd)](_0x38b63b(0x211),{'univer-cursor-not-allowed':_0x54f3bb===_0x1093b3[_0x38b63b(0x26c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x54f3bb!==_0x1093b3[_0x38b63b(0x26c)]}),'type':_0x38b63b(0x265),'children':_0x576bb8['jsx'](_0x69a8c2,{'className':_0x38b63b(0x232)})})}):null;}function _0x3c3f14(_0x2f7c0e){const _0x4e6efd=_0x5a42db,{status:_0x2202d3,coordinator:_0x36fb01}=_0x2f7c0e;switch(_0x2202d3){case _0x1093b3[_0x4e6efd(0x2c0)]:return _0x576bb8['jsx'](_0x37407f,{'coordinator':_0x36fb01});case _0x1093b3['FOLLOWING']:return _0x576bb8[_0x4e6efd(0x2ba)](_0x6b783a,{'coordinator':_0x36fb01});case _0x1093b3[_0x4e6efd(0x275)]:return _0x576bb8[_0x4e6efd(0x2ba)](_0x230c4e,{'coordinator':_0x36fb01});case _0x1093b3[_0x4e6efd(0x26c)]:return _0x576bb8['jsx'](_0x4970b2,{});case _0x1093b3[_0x4e6efd(0x228)]:return _0x576bb8[_0x4e6efd(0x2ba)](_0x5c4329,{'coordinator':_0x36fb01});default:return null;}}function _0x37407f(_0xc4567c){const _0x297024=_0x5a42db,{coordinator:_0x143abf}=_0xc4567c;return _0x576bb8[_0x297024(0x29c)](_0x576bb8['Fragment'],{'children':[_0x576bb8[_0x297024(0x2ba)](_0x297024(0x24a),{'className':_0x297024(0x222),'children':'Present\x20this\x20document'}),_0x576bb8[_0x297024(0x2ba)](_0x37c869['Button'],{'onClick':()=>_0x143abf['tryStartPresenting'](),'children':_0x297024(0x256)})]});}function _0x6b783a(_0xfc528f){const _0x54d319=_0x5a42db,{coordinator:_0x46c0da}=_0xfc528f;return _0x576bb8[_0x54d319(0x29c)](_0x576bb8[_0x54d319(0x27a)],{'children':[_0x576bb8[_0x54d319(0x2ba)](_0x54d319(0x24a),{'className':_0x54d319(0x222),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x576bb8[_0x54d319(0x2ba)](_0x37c869[_0x54d319(0x270)],{'onClick':()=>_0x46c0da[_0x54d319(0x21c)](),'children':'Stop\x20following'})]});}function _0x230c4e(_0x3f1279){const _0x7cde10=_0x5a42db,{coordinator:_0x301761}=_0x3f1279;return _0x576bb8[_0x7cde10(0x29c)](_0x576bb8['Fragment'],{'children':[_0x576bb8[_0x7cde10(0x2ba)](_0x7cde10(0x24a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x7cde10(0x223)}),_0x576bb8[_0x7cde10(0x2ba)](_0x37c869[_0x7cde10(0x270)],{'variant':'text','onClick':()=>_0x301761[_0x7cde10(0x2a6)](),'children':_0x7cde10(0x2bc)})]});}function _0x5c4329(_0x481d92){const _0xf81310=_0x5a42db,{coordinator:_0x20b64b}=_0x481d92;return _0x576bb8['jsxs'](_0x576bb8[_0xf81310(0x27a)],{'children':[_0x576bb8[_0xf81310(0x2ba)](_0xf81310(0x24a),{'className':_0xf81310(0x222),'children':_0xf81310(0x2b0)}),_0x576bb8[_0xf81310(0x2ba)](_0x37c869[_0xf81310(0x270)],{'variant':'default','onClick':()=>_0x20b64b[_0xf81310(0x29a)](),'children':'Stop\x20presenting'})]});}function _0x4970b2(){const _0x245b0a=_0x5a42db;return _0x576bb8['jsx'](_0x576bb8[_0x245b0a(0x27a)],{'children':_0x245b0a(0x213)});}var _0x40ef8a=Object['getOwnPropertyDescriptor'],_0x478757=(_0x4bdfce,_0x1e37a2,_0x88347c,_0xa45bc4)=>{const _0x5ca87e=_0x5a42db;for(var _0x2e805f=_0xa45bc4>0x1?void 0x0:_0xa45bc4?_0x40ef8a(_0x1e37a2,_0x88347c):_0x1e37a2,_0x2fbbf7=_0x4bdfce[_0x5ca87e(0x27f)]-0x1,_0x580a6b;_0x2fbbf7>=0x0;_0x2fbbf7--)(_0x580a6b=_0x4bdfce[_0x2fbbf7])&&(_0x2e805f=_0x580a6b(_0x2e805f)||_0x2e805f);return _0x2e805f;},_0x57a4f5=(_0xe3796b,_0x466711)=>(_0x27c290,_0x21f0c9)=>_0x466711(_0x27c290,_0x21f0c9,_0xe3796b);_0x21866a['DesktopLiveShareController']=class extends _0x3af4dc[_0x5a42db(0x26f)]{constructor(_0x5f3847,_0x113c9e){const _0x4f3255=_0x5a42db;super(),this[_0x4f3255(0x2ae)]=_0x5f3847,this[_0x4f3255(0x1ef)]=_0x113c9e,this[_0x4f3255(0x250)]();}['_mountLiveShare'](){const _0x4f80bf=_0x5a42db;this[_0x4f80bf(0x277)](this['_uiPartsService'][_0x4f80bf(0x220)](_0x46780c[_0x4f80bf(0x28a)][_0x4f80bf(0x28d)],()=>_0x46780c[_0x4f80bf(0x2c7)](_0x85ceaa,this['_injector'])));}},_0x21866a['DesktopLiveShareController']=_0x478757([_0x57a4f5(0x0,_0x3af4dc[_0x5a42db(0x201)](_0x3af4dc[_0x5a42db(0x274)])),_0x57a4f5(0x1,_0x46780c[_0x5a42db(0x283)])],_0x21866a[_0x5a42db(0x241)]);const _0x3cf879=_0x5a42db(0x22f),_0x4bf8ea={};var _0x516a4e=Object[_0x5a42db(0x1f0)],_0x518601=(_0x56ed3d,_0x1b1029,_0x2859ab,_0x407a43)=>{for(var _0xfae7e3=_0x407a43>0x1?void 0x0:_0x407a43?_0x516a4e(_0x1b1029,_0x2859ab):_0x1b1029,_0x77adaf=_0x56ed3d['length']-0x1,_0x31f8e4;_0x77adaf>=0x0;_0x77adaf--)(_0x31f8e4=_0x56ed3d[_0x77adaf])&&(_0xfae7e3=_0x31f8e4(_0xfae7e3)||_0xfae7e3);return _0xfae7e3;},_0x5143ff=(_0x224ea4,_0x21440c)=>(_0x41446b,_0x5c0d00)=>_0x21440c(_0x41446b,_0x5c0d00,_0x224ea4);let _0x5d70f6=class extends _0x3af4dc[_0x5a42db(0x26f)]{constructor(_0x332a18){const _0x508d9d=_0x5a42db;super(),this[_0x508d9d(0x235)]=_0x332a18,this[_0x508d9d(0x200)]();}[_0x5a42db(0x200)](){const _0x424665=_0x5a42db;[_0xe755ca['SetZoomRatioOperation']['id'],_0xe755ca[_0x424665(0x262)]['id'],_0x20cbe0[_0x424665(0x238)]['id']][_0x424665(0x1e7)](_0x30177d=>{const _0x5dd362=_0x424665;this[_0x5dd362(0x277)](this[_0x5dd362(0x235)][_0x5dd362(0x27c)](_0x30177d));});}};_0x5d70f6=_0x518601([_0x5143ff(0x0,_0x3af4dc[_0x5a42db(0x201)](_0x118014))],_0x5d70f6);var _0x536aac=Object[_0x5a42db(0x1fa)],_0x57a9d7=Object[_0x5a42db(0x1f0)],_0x2bd227=(_0x1f6389,_0x48279f,_0x70cb15)=>_0x48279f in _0x1f6389?_0x536aac(_0x1f6389,_0x48279f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x70cb15}):_0x1f6389[_0x48279f]=_0x70cb15,_0x3f1fca=(_0x5eacfe,_0x5c5cb7,_0x3b60bd,_0x3ed06d)=>{const _0x39bc66=_0x5a42db;for(var _0x552937=_0x3ed06d>0x1?void 0x0:_0x3ed06d?_0x57a9d7(_0x5c5cb7,_0x3b60bd):_0x5c5cb7,_0x2de09d=_0x5eacfe[_0x39bc66(0x27f)]-0x1,_0x4342c0;_0x2de09d>=0x0;_0x2de09d--)(_0x4342c0=_0x5eacfe[_0x2de09d])&&(_0x552937=_0x4342c0(_0x552937)||_0x552937);return _0x552937;},_0x187e08=(_0x4740cc,_0x5b6d35)=>(_0x5d3978,_0xda4f89)=>_0x5b6d35(_0x5d3978,_0xda4f89,_0x4740cc),_0x27c338=(_0x4f8053,_0x10b8b2,_0x2ce0cf)=>_0x2bd227(_0x4f8053,typeof _0x10b8b2!=_0x5a42db(0x1ff)?_0x10b8b2+'':_0x10b8b2,_0x2ce0cf);const _0x5a4f5b='UNIVER_LIVE_SHARE_PLUGIN';_0x21866a['UniverLiveSharePlugin']=class extends _0x3af4dc[_0x5a42db(0x21d)]{constructor(_0x3b815d=_0x4bf8ea,_0x2f71e4,_0x2b6dcb){const _0x36ffda=_0x5a42db;super(),this[_0x36ffda(0x1fe)]=_0x3b815d,this[_0x36ffda(0x2ae)]=_0x2f71e4,this[_0x36ffda(0x25a)]=_0x2b6dcb;const {..._0x275518}=_0x3af4dc[_0x36ffda(0x253)]({},_0x4bf8ea,this[_0x36ffda(0x1fe)]);this[_0x36ffda(0x25a)][_0x36ffda(0x22b)](_0x3cf879,_0x275518);}['onStarting'](){const _0x54f88d=_0x5a42db;_0x3af4dc[_0x54f88d(0x258)](this[_0x54f88d(0x2ae)],_0x3af4dc[_0x54f88d(0x1f5)]([[_0x118014],[_0x21866a[_0x54f88d(0x26a)]],[_0x5d70f6],[_0x21866a['DesktopLiveShareController']]],this[_0x54f88d(0x1fe)][_0x54f88d(0x269)])),_0x3af4dc[_0x54f88d(0x1f9)](this['_injector'],[[_0x5d70f6]]);}[_0x5a42db(0x225)](){const _0x32857c=_0x5a42db;_0x3af4dc[_0x32857c(0x1f9)](this[_0x32857c(0x2ae)],[[_0x21866a[_0x32857c(0x241)]]]);}},_0x27c338(_0x21866a[_0x5a42db(0x290)],_0x5a42db(0x28e),_0x3af4dc[_0x5a42db(0x25b)][_0x5a42db(0x1f6)]),_0x27c338(_0x21866a[_0x5a42db(0x290)],_0x5a42db(0x2bb),_0x5a4f5b),_0x21866a['UniverLiveSharePlugin']=_0x3f1fca([_0x3af4dc['DependentOn'](_0x2d57ff[_0x5a42db(0x2a2)]),_0x187e08(0x1,_0x3af4dc[_0x5a42db(0x201)](_0x3af4dc[_0x5a42db(0x274)])),_0x187e08(0x2,_0x3af4dc[_0x5a42db(0x1f1)])],_0x21866a[_0x5a42db(0x290)]),_0x21866a[_0x5a42db(0x25d)]=_0x85ceaa,_0x21866a['LiveShareService']=_0x118014,_0x21866a[_0x5a42db(0x26d)]=_0x1093b3,Object[_0x5a42db(0x1fa)](_0x21866a,Symbol[_0x5a42db(0x229)],{'value':_0x5a42db(0x247)});}));
|
|
1
|
+
(function(_0x5f55b5,_0x39a8c8){const _0x30ed9e=_0x5a25,_0x2487be=_0x5f55b5();while(!![]){try{const _0x456e0d=-parseInt(_0x30ed9e(0x26d))/0x1*(parseInt(_0x30ed9e(0x22f))/0x2)+parseInt(_0x30ed9e(0x218))/0x3*(parseInt(_0x30ed9e(0x243))/0x4)+parseInt(_0x30ed9e(0x1ff))/0x5*(-parseInt(_0x30ed9e(0x279))/0x6)+-parseInt(_0x30ed9e(0x1b2))/0x7+-parseInt(_0x30ed9e(0x1a0))/0x8+parseInt(_0x30ed9e(0x1b3))/0x9+-parseInt(_0x30ed9e(0x220))/0xa*(-parseInt(_0x30ed9e(0x25c))/0xb);if(_0x456e0d===_0x39a8c8)break;else _0x2487be['push'](_0x2487be['shift']());}catch(_0x2bf6c2){_0x2487be['push'](_0x2487be['shift']());}}}(_0x3148,0x58a81),function(_0x21eeeb,_0x3f712a){const _0x31a4cd=_0x5a25;typeof exports=='object'&&typeof module<'u'?_0x3f712a(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==_0x31a4cd(0x1e4)&&define[_0x31a4cd(0x23b)]?define(['exports',_0x31a4cd(0x1f7),_0x31a4cd(0x1cf),_0x31a4cd(0x198),_0x31a4cd(0x1ee),'react',_0x31a4cd(0x1a8),_0x31a4cd(0x248),_0x31a4cd(0x24e),_0x31a4cd(0x1fd),'rxjs/operators',_0x31a4cd(0x1da)],_0x3f712a):(_0x21eeeb=typeof globalThis<'u'?globalThis:_0x21eeeb||self,_0x3f712a(_0x21eeeb[_0x31a4cd(0x210)]={},_0x21eeeb[_0x31a4cd(0x1b8)],_0x21eeeb['UniverUi'],_0x21eeeb[_0x31a4cd(0x1df)],_0x21eeeb[_0x31a4cd(0x1b5)],_0x21eeeb[_0x31a4cd(0x1df)],_0x21eeeb[_0x31a4cd(0x26a)],_0x21eeeb[_0x31a4cd(0x223)],_0x21eeeb[_0x31a4cd(0x1b9)],_0x21eeeb[_0x31a4cd(0x1fd)],_0x21eeeb['rxjs'][_0x31a4cd(0x1c6)],_0x21eeeb[_0x31a4cd(0x1ed)]));}(this,function(_0x196a2d,_0xf5f867,_0xb7a067,_0x54348f,_0xa9ec5f,_0x4428a5,_0x588196,_0x3bd55b,_0x3cec37,_0x283cf9,_0x2baa95,_0x3469ee){'use strict';const _0x4a5888=_0x5a25;var _0x1974ff=Object[_0x4a5888(0x1fa)],_0x516433=(_0x3aaaa3,_0x35836d,_0x20437c)=>_0x35836d in _0x3aaaa3?_0x1974ff(_0x3aaaa3,_0x35836d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20437c}):_0x3aaaa3[_0x35836d]=_0x20437c,_0x18c2c4=(_0x2538da,_0xa25b70,_0xeaf3ab)=>_0x516433(_0x2538da,typeof _0xa25b70!='symbol'?_0xa25b70+'':_0xa25b70,_0xeaf3ab);function _0x28360c({ref:_0x1b96b8,..._0x4e9615}){const _0x43a82b=_0x4a5888,{icon:_0x4ada5f,id:_0x2f8477,className:_0x3d91f5,extend:_0x2cf00c,..._0x3c2fe2}=_0x4e9615,_0x51a5bd=(_0x43a82b(0x274)+_0x2f8477+'\x20'+(_0x3d91f5||''))[_0x43a82b(0x1fc)](),_0x18d8c4=_0x4428a5[_0x43a82b(0x1e7)]('_'+_0x2bfc4a());return _0x161b5a(_0x4ada5f,''+_0x2f8477,{'defIds':_0x4ada5f[_0x43a82b(0x1bb)],'idSuffix':_0x18d8c4[_0x43a82b(0x1b6)]},{'ref':_0x1b96b8,'className':_0x51a5bd,..._0x3c2fe2},_0x2cf00c);}function _0x161b5a(_0xd1c576,_0x573e9c,_0x47f737,_0x25bcaf,_0x2d7963){const _0x592903=_0x4a5888;return _0x4428a5['createElement'](_0xd1c576[_0x592903(0x217)],{'key':_0x573e9c,..._0x5f27a0(_0xd1c576,_0x47f737,_0x2d7963),..._0x25bcaf},(_0x107f90(_0xd1c576,_0x47f737)[_0x592903(0x258)]||[])[_0x592903(0x27a)]((_0x3bc623,_0x2b7f19)=>_0x161b5a(_0x3bc623,_0x573e9c+'-'+_0xd1c576[_0x592903(0x217)]+'-'+_0x2b7f19,_0x47f737,void 0x0,_0x2d7963)));}function _0x5f27a0(_0x200f49,_0x12427f,_0x5891dc){const _0x2d6834=_0x4a5888,_0x5446bb={..._0x200f49[_0x2d6834(0x199)]};_0x5891dc!=null&&_0x5891dc[_0x2d6834(0x212)]&&_0x5446bb[_0x2d6834(0x224)]===_0x2d6834(0x212)&&(_0x5446bb[_0x2d6834(0x224)]=_0x5891dc[_0x2d6834(0x212)]),_0x200f49['tag']===_0x2d6834(0x269)&&_0x5446bb['id']&&(_0x5446bb['id']=_0x5446bb['id']+_0x12427f[_0x2d6834(0x23f)]),Object[_0x2d6834(0x1ea)](_0x5446bb)[_0x2d6834(0x263)](([_0x37553e,_0x295d29])=>{const _0x169425=_0x2d6834;_0x37553e===_0x169425(0x269)&&typeof _0x295d29==_0x169425(0x25b)&&(_0x5446bb[_0x37553e]=_0x295d29[_0x169425(0x191)](/url\(#(.*)\)/,'url(#$1'+_0x12427f[_0x169425(0x23f)]+')'));});const {defIds:_0x128a44}=_0x12427f;return!_0x128a44||_0x128a44['length']===0x0||(_0x200f49[_0x2d6834(0x217)]===_0x2d6834(0x25a)&&_0x5446bb[_0x2d6834(0x21c)]&&(_0x5446bb[_0x2d6834(0x21c)]=_0x5446bb[_0x2d6834(0x21c)]+_0x12427f[_0x2d6834(0x23f)]),Object[_0x2d6834(0x1ea)](_0x5446bb)[_0x2d6834(0x263)](([_0x16d890,_0x2b3f01])=>{const _0x231cbd=_0x2d6834;typeof _0x2b3f01==_0x231cbd(0x25b)&&(_0x5446bb[_0x16d890]=_0x2b3f01[_0x231cbd(0x191)](/url\(#(.*)\)/,_0x231cbd(0x1ab)+_0x12427f['idSuffix']+')'));})),_0x5446bb;}function _0x107f90(_0x433101,_0x255f8b){const _0x7ca758=_0x4a5888;var _0x16bf57;const {defIds:_0x4c97fc}=_0x255f8b;return!_0x4c97fc||_0x4c97fc['length']===0x0?_0x433101:_0x433101[_0x7ca758(0x217)]==='defs'&&((_0x16bf57=_0x433101[_0x7ca758(0x258)])!=null&&_0x16bf57[_0x7ca758(0x1ad)])?{..._0x433101,'children':_0x433101[_0x7ca758(0x258)][_0x7ca758(0x27a)](_0x49e624=>typeof _0x49e624[_0x7ca758(0x199)]['id']==_0x7ca758(0x25b)&&_0x4c97fc&&_0x4c97fc['includes'](_0x49e624[_0x7ca758(0x199)]['id'])?{..._0x49e624,'attrs':{..._0x49e624[_0x7ca758(0x199)],'id':_0x49e624['attrs']['id']+_0x255f8b[_0x7ca758(0x23f)]}}:_0x49e624)}:_0x433101;}function _0x2bfc4a(){const _0x18fbe9=_0x4a5888;return Math['random']()['toString'](0x24)[_0x18fbe9(0x225)](0x2,0x8);}_0x28360c[_0x4a5888(0x1d3)]='UniverIcon';const _0x25de9c={'tag':_0x4a5888(0x1a4),'attrs':{'xmlns':_0x4a5888(0x1e9),'fill':'none','viewBox':_0x4a5888(0x26e),'width':_0x4a5888(0x1d0),'height':_0x4a5888(0x1d0)},'children':[{'tag':_0x4a5888(0x1ce),'attrs':{'fill':_0x4a5888(0x1ba),'d':_0x4a5888(0x26b)}},{'tag':_0x4a5888(0x1ce),'attrs':{'fill':'currentColor','d':_0x4a5888(0x268),'fillRule':_0x4a5888(0x259),'clipRule':_0x4a5888(0x259)}}]},_0x1859c8=_0x4428a5[_0x4a5888(0x252)](function(_0x8728c0,_0x1e2cb5){const _0xb6ba89=_0x4a5888;return _0x4428a5[_0xb6ba89(0x239)](_0x28360c,Object[_0xb6ba89(0x1f6)]({},_0x8728c0,{'id':_0xb6ba89(0x24c),'ref':_0x1e2cb5,'icon':_0x25de9c}));});_0x1859c8[_0x4a5888(0x1d3)]=_0x4a5888(0x237);class _0x141ae extends _0xf5f867[_0x4a5888(0x216)]{constructor(){const _0xce5a74=_0x4a5888;super(...arguments),_0x18c2c4(this,'_sharedOperations',new Set()),_0x18c2c4(this,_0xce5a74(0x249),new Set());}[_0x4a5888(0x22c)](_0x5e4d99){const _0x1d473e=_0x4a5888;return this[_0x1d473e(0x19c)]['add'](_0x5e4d99),_0xf5f867['toDisposable'](()=>this[_0x1d473e(0x19c)][_0x1d473e(0x236)](_0x5e4d99));}[_0x4a5888(0x26f)](_0x16dc90){const _0x5489a4=_0x4a5888;return this[_0x5489a4(0x249)][_0x5489a4(0x23d)](_0x16dc90),_0xf5f867[_0x5489a4(0x1c0)](()=>this[_0x5489a4(0x249)][_0x5489a4(0x236)](_0x16dc90));}['shouldShareOperation'](_0x64a2b5){const _0x59c2b0=_0x4a5888;return this[_0x59c2b0(0x19c)][_0x59c2b0(0x215)](_0x64a2b5);}[_0x4a5888(0x246)](_0x45a34d){const _0xb77b5d=_0x4a5888;return Array[_0xb77b5d(0x19d)](this[_0xb77b5d(0x249)])[_0xb77b5d(0x27a)](_0x482202=>_0x482202(_0x45a34d));}}var _0x4778ad=Object['getOwnPropertyDescriptor'],_0x323f11=(_0x304382,_0x2ea866,_0x2b646d,_0x52dba3)=>{const _0x3fa67e=_0x4a5888;for(var _0x3d8822=_0x52dba3>0x1?void 0x0:_0x52dba3?_0x4778ad(_0x2ea866,_0x2b646d):_0x2ea866,_0x50d238=_0x304382[_0x3fa67e(0x1ad)]-0x1,_0x9239b2;_0x50d238>=0x0;_0x50d238--)(_0x9239b2=_0x304382[_0x50d238])&&(_0x3d8822=_0x9239b2(_0x3d8822)||_0x3d8822);return _0x3d8822;},_0x1a3176=(_0x56a252,_0x255d23)=>(_0x3e7865,_0x29162c)=>_0x255d23(_0x3e7865,_0x29162c,_0x56a252);_0x196a2d[_0x4a5888(0x271)]=class extends _0xf5f867[_0x4a5888(0x253)]{constructor(_0x327625,_0x189159,_0x8b24ab){const _0x501ac5=_0x4a5888;super(),_0x18c2c4(this,_0x501ac5(0x238),new Map()),(this['_univerInstanceService']=_0x327625,this[_0x501ac5(0x1d1)]=_0x189159,this[_0x501ac5(0x1cb)]=_0x8b24ab,this['_init']());}async[_0x4a5888(0x244)](_0x28f28d){const _0x525aee=_0x4a5888;return this[_0x525aee(0x238)]['has'](_0x28f28d)||await this[_0x525aee(0x21b)](_0x28f28d),this[_0x525aee(0x238)][_0x525aee(0x1d9)](_0x28f28d);}[_0x4a5888(0x200)](_0x5b2cf0){const _0x5de63a=_0x4a5888;var _0x3548be;return(_0x3548be=this[_0x5de63a(0x238)]['get'](_0x5b2cf0))!=null?_0x3548be:null;}[_0x4a5888(0x230)](){const _0x4d3be9=_0x4a5888;this[_0x4d3be9(0x1d5)][_0x4d3be9(0x221)](_0xf5f867[_0x4d3be9(0x201)][_0x4d3be9(0x1c3)])[_0x4d3be9(0x25e)](_0x2baa95[_0x4d3be9(0x196)](this[_0x4d3be9(0x240)]))['subscribe'](async _0x20cd1a=>{const _0x3b5ee8=_0x4d3be9,_0xf566e0=_0x20cd1a['getUnitId']();this[_0x3b5ee8(0x238)][_0x3b5ee8(0x215)](_0xf566e0)||this[_0x3b5ee8(0x21b)](_0xf566e0);}),this['_univerInstanceService'][_0x4d3be9(0x1bc)](_0xf5f867[_0x4d3be9(0x201)][_0x4d3be9(0x1c3)])[_0x4d3be9(0x25e)](_0x2baa95['takeUntil'](this[_0x4d3be9(0x240)]))[_0x4d3be9(0x24a)](_0x4ac732=>{const _0x157a3b=_0x4d3be9,_0x4dc807=_0x4ac732[_0x157a3b(0x241)](),_0x33fb32=this['_entities'][_0x157a3b(0x1d9)](_0x4dc807);_0x33fb32==null||_0x33fb32[_0x157a3b(0x194)]();});}async['_startLiveShareCoordinator'](_0x15fb8c){const _0x5d2c08=_0x4a5888,_0x242ebc=await this[_0x5d2c08(0x1cb)][_0x5d2c08(0x202)](_0x15fb8c),_0x142a46=this[_0x5d2c08(0x1d1)]['createInstance'](_0x196a2d[_0x5d2c08(0x1f9)],_0x15fb8c,_0x242ebc);return _0x142a46['init'](),this['_entities'][_0x5d2c08(0x1a3)](_0x15fb8c,_0x142a46),_0x142a46;}},_0x196a2d[_0x4a5888(0x271)]=_0x323f11([_0x1a3176(0x0,_0xf5f867[_0x4a5888(0x1d2)]),_0x1a3176(0x1,_0xf5f867['Inject'](_0xf5f867[_0x4a5888(0x242)])),_0x1a3176(0x2,_0xf5f867[_0x4a5888(0x1ca)](_0x3bd55b[_0x4a5888(0x1ef)]))],_0x196a2d[_0x4a5888(0x271)]);var _0x271e73=(_0x2e877c=>(_0x2e877c['OFFLINE']=_0x4a5888(0x278),_0x2e877c[_0x4a5888(0x27c)]='idle',_0x2e877c[_0x4a5888(0x257)]='following',_0x2e877c['NOT_FOLLOWING']=_0x4a5888(0x27f),_0x2e877c[_0x4a5888(0x22d)]='presenting',_0x2e877c))(_0x271e73||{});const _0x345767=_0x4a5888(0x1d4),_0x3879af=0xc8;_0x196a2d['LiveShareCoordinator']=class extends _0xf5f867[_0x4a5888(0x253)]{constructor(_0x110e4f,_0x2a3b18,_0x1a36d2,_0x531709,_0x44d37a){const _0x487246=_0x4a5888;super(),_0x18c2c4(this,'_status$',new _0x283cf9['BehaviorSubject'](_0x487246(0x1a7))),_0x18c2c4(this,_0x487246(0x214),this['_status$'][_0x487246(0x276)]()),_0x18c2c4(this,_0x487246(0x230),!0x1),_0x18c2c4(this,_0x487246(0x24b),null),_0x18c2c4(this,'_presenter',null),(this[_0x487246(0x266)]=_0x110e4f,this[_0x487246(0x1b0)]=_0x2a3b18,this[_0x487246(0x255)]=_0x1a36d2,this[_0x487246(0x272)]=_0x531709,this[_0x487246(0x25f)]=_0x44d37a);}get[_0x4a5888(0x264)](){const _0x22cee9=_0x4a5888;return this[_0x22cee9(0x1a1)][_0x22cee9(0x197)]();}['dispose'](){const _0x1ad510=_0x4a5888;var _0x53cc11;(_0x53cc11=this['_commandDisposable'])==null||_0x53cc11[_0x1ad510(0x194)](),this['_status$'][_0x1ad510(0x213)](_0x1ad510(0x1a7)),this[_0x1ad510(0x1a1)][_0x1ad510(0x20f)]();}[_0x4a5888(0x1d6)](){return this['_status'];}['init'](){const _0x4251bb=_0x4a5888;this['_init']||(this['_init']=!0x0,this[_0x4251bb(0x1b0)][_0x4251bb(0x193)][_0x4251bb(0x25e)](_0x2baa95[_0x4251bb(0x196)](this['dispose$']))[_0x4251bb(0x24a)](_0x535715=>{const _0x2039f2=_0x4251bb;switch(_0x535715){case _0x3bd55b[_0x2039f2(0x1d7)]['OFFLINE']:this[_0x2039f2(0x1c4)]();break;case _0x3bd55b[_0x2039f2(0x1d7)][_0x2039f2(0x275)]:this['_handleOnline']();break;}}),this[_0x4251bb(0x1b0)][_0x4251bb(0x262)][_0x4251bb(0x25e)](_0x2baa95[_0x4251bb(0x196)](this[_0x4251bb(0x240)]))[_0x4251bb(0x24a)](_0x1e3c3e=>{const _0x578808=_0x4251bb,{eventID:_0x1366d4}=_0x1e3c3e;switch(_0x1366d4){case _0x588196[_0x578808(0x24d)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x1e3c3e);break;case _0x588196[_0x578808(0x24d)][_0x578808(0x229)]:this[_0x578808(0x1f2)](_0x1e3c3e);break;case _0x588196['CollaborationEvent'][_0x578808(0x1dd)]:this['_handleTerminate']();break;case _0x588196[_0x578808(0x24d)][_0x578808(0x1d8)]:this[_0x578808(0x261)](_0x1e3c3e);break;}}));}[_0x4a5888(0x1eb)](){const _0x4231ff=_0x4a5888;this[_0x4231ff(0x1b0)][_0x4231ff(0x1dc)]({'eventID':_0x588196[_0x4231ff(0x24d)][_0x4231ff(0x219)],'data':{'unitID':this['_unitID'],'userID':this[_0x4231ff(0x1b0)][_0x4231ff(0x1ac)]()}},this[_0x4231ff(0x266)]);}[_0x4a5888(0x1b7)](){const _0x2ff631=_0x4a5888;this['_status']===_0x2ff631(0x1f4)&&(this['_status$'][_0x2ff631(0x213)](_0x2ff631(0x1a7)),this[_0x2ff631(0x1b0)]['send']({'eventID':_0x588196[_0x2ff631(0x24d)][_0x2ff631(0x1dd)],'data':{'unitID':this[_0x2ff631(0x266)]}},this['_unitID']));}[_0x4a5888(0x226)](){const _0x32e530=_0x4a5888;this[_0x32e530(0x264)]===_0x32e530(0x27f)&&(this[_0x32e530(0x1a1)][_0x32e530(0x213)]('following'),this[_0x32e530(0x1be)]());}['stopFollowing'](){const _0x2bc4a1=_0x4a5888;this['_status']===_0x2bc4a1(0x1cd)&&this[_0x2bc4a1(0x21f)]();}[_0x4a5888(0x27d)](_0x5d0640){const _0x5564d1=_0x4a5888,{presenter:_0x5a457a}=_0x5d0640[_0x5564d1(0x1a2)],_0x405f32=this['_collabSession'][_0x5564d1(0x1ac)]();this[_0x5564d1(0x1fe)]=_0x5a457a,_0x5a457a===_0x405f32?(this['_stopFollowing'](),this[_0x5564d1(0x192)]()):this['_status']!==_0x5564d1(0x27f)&&(this[_0x5564d1(0x1a6)](),this[_0x5564d1(0x1be)]());}['_fetchOperations'](){const _0x16998d=_0x4a5888,_0x38786b={'eventID':_0x588196[_0x16998d(0x24d)][_0x16998d(0x234)]};this[_0x16998d(0x1b0)][_0x16998d(0x1dc)](_0x38786b,this['_unitID']);}[_0x4a5888(0x23c)](){const _0x89384c=_0x4a5888;this[_0x89384c(0x1fe)]=null,this[_0x89384c(0x264)]!=='presenting'&&this[_0x89384c(0x22b)]();}[_0x4a5888(0x261)](_0x4ab0bf){const _0x3f5320=_0x4a5888;if(this['_status']==='following'&&this[_0x3f5320(0x1fe)]===_0x4ab0bf['data'][_0x3f5320(0x1e8)]){const _0x267482=_0x588196[_0x3f5320(0x1c1)](_0x4ab0bf[_0x3f5320(0x1a2)])[_0x3f5320(0x209)][_0x3f5320(0x1e6)]()[_0x3f5320(0x265)](_0x4ed2f4=>_0x4ed2f4['id']===_0x3cec37[_0x3f5320(0x21e)]['id']);if(_0x267482){const _0x2139ca=_0x267482[_0x3f5320(0x1e2)][_0x3f5320(0x1c9)],_0xc4a2e=_0x267482[_0x3f5320(0x1e2)]['sheet']['id'];setTimeout(()=>{const _0x2d86cb=_0x3f5320;this[_0x2d86cb(0x25f)][_0x2d86cb(0x1f1)](_0x3cec37[_0x2d86cb(0x250)]['id'],{'unitId':_0x2139ca,'subUnitId':_0xc4a2e},{'fromCollab':!0x0});});}}}[_0x4a5888(0x192)](){const _0x3fb7c4=_0x4a5888;this['_status$'][_0x3fb7c4(0x213)]('presenting');const _0x39df68=new Map(),_0x413201=this['_commandDisposable']=new _0xf5f867[(_0x3fb7c4(0x23a))]();_0x413201[_0x3fb7c4(0x23d)](_0xf5f867[_0x3fb7c4(0x1c0)](()=>{const _0x2066ca=_0x3fb7c4;_0x39df68['forEach'](_0x3e1a1b=>_0x3e1a1b[_0x2066ca(0x20f)]()),_0x39df68['clear']();})),_0x413201[_0x3fb7c4(0x23d)](this[_0x3fb7c4(0x25f)][_0x3fb7c4(0x260)](_0x2a1920=>{const _0x1f8d56=_0x3fb7c4;var _0x18a280;if(_0x2a1920[_0x1f8d56(0x267)]!==_0xf5f867[_0x1f8d56(0x1e3)][_0x1f8d56(0x254)]||!this[_0x1f8d56(0x272)]['shouldShareOperation'](_0x2a1920['id']))return;const {id:_0x58f470}=_0x2a1920;let _0x5c6df0;_0x39df68[_0x1f8d56(0x215)](_0x58f470)?_0x5c6df0=_0x39df68[_0x1f8d56(0x1d9)](_0x58f470):(_0x5c6df0=new _0x283cf9[(_0x1f8d56(0x1af))](),_0x39df68[_0x1f8d56(0x1a3)](_0x58f470,_0x5c6df0),_0x5c6df0[_0x1f8d56(0x25e)](_0x2baa95[_0x1f8d56(0x21d)]((_0x18a280=this[_0x1f8d56(0x255)][_0x1f8d56(0x1c5)](_0x345767))!=null?_0x18a280:_0x3879af,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1f8d56(0x24a)](_0x51a681=>{const _0x17d3ad=_0x1f8d56;this[_0x17d3ad(0x1b0)]['send']({'eventID':_0x588196['CollaborationEvent'][_0x17d3ad(0x229)],'data':{'unitID':this[_0x17d3ad(0x266)],'operations':{[_0x51a681['id']]:{'id':_0x51a681['id'],'params':JSON[_0x17d3ad(0x27b)](_0x51a681['params'])}}}},this[_0x17d3ad(0x266)]);})),_0x5c6df0[_0x1f8d56(0x213)](_0x2a1920);})),this[_0x3fb7c4(0x272)]['getInitialStates'](this[_0x3fb7c4(0x266)])[_0x3fb7c4(0x263)](_0x3393f7=>this[_0x3fb7c4(0x1b0)]['send']({'eventID':_0x588196[_0x3fb7c4(0x24d)][_0x3fb7c4(0x229)],'data':{'unitID':this['_unitID'],'operations':{[_0x3393f7['id']]:{'id':_0x3393f7['id'],'params':JSON[_0x3fb7c4(0x27b)](_0x3393f7[_0x3fb7c4(0x1e2)])}}}},this['_unitID']));}[_0x4a5888(0x1a6)](){const _0x5f2df1=_0x4a5888;var _0x2dc24b;this['_status$'][_0x5f2df1(0x213)](_0x5f2df1(0x1a7)),(_0x2dc24b=this[_0x5f2df1(0x24b)])==null||_0x2dc24b[_0x5f2df1(0x194)](),this['_commandDisposable']=null;}[_0x4a5888(0x1be)](){const _0x33f4be=_0x4a5888;var _0x51deab;(_0x51deab=this[_0x33f4be(0x24b)])==null||_0x51deab['dispose'](),this[_0x33f4be(0x1a1)][_0x33f4be(0x213)](_0x33f4be(0x1cd));}[_0x4a5888(0x22b)](){const _0x311285=_0x4a5888;var _0x4c6835;this[_0x311285(0x1a1)][_0x311285(0x213)](_0x311285(0x1a7)),(_0x4c6835=this[_0x311285(0x24b)])==null||_0x4c6835[_0x311285(0x194)](),this[_0x311285(0x24b)]=null;}[_0x4a5888(0x21f)](){const _0xea0523=_0x4a5888;var _0x53ce08;this['_status$'][_0xea0523(0x213)](_0xea0523(0x27f)),(_0x53ce08=this[_0xea0523(0x24b)])==null||_0x53ce08[_0xea0523(0x194)]();}[_0x4a5888(0x1f2)](_0x48105a){const _0x5a382b=_0x4a5888;if(['presenting',_0x5a382b(0x27f),_0x5a382b(0x278)][_0x5a382b(0x270)](this[_0x5a382b(0x264)])||!_0x48105a[_0x5a382b(0x1a2)]['presenter']||_0x48105a['data'][_0x5a382b(0x27e)]===this[_0x5a382b(0x1b0)][_0x5a382b(0x1ac)]())return;this['_status']===_0x5a382b(0x1a7)&&this['_startFollowing']();const _0x4d8611=_0x48105a[_0x5a382b(0x1a2)][_0x5a382b(0x207)];Object[_0x5a382b(0x245)](_0x4d8611)['forEach'](_0xbd79a5=>{const _0x50bd7b=_0x5a382b;this[_0x50bd7b(0x25f)][_0x50bd7b(0x1f1)](_0xbd79a5['id'],_0xbd79a5[_0x50bd7b(0x1e2)]?JSON[_0x50bd7b(0x1aa)](_0xbd79a5[_0x50bd7b(0x1e2)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x32a9af=_0x4a5888;var _0xede648;this[_0x32a9af(0x1a1)][_0x32a9af(0x213)](_0x32a9af(0x278)),(_0xede648=this[_0x32a9af(0x24b)])==null||_0xede648[_0x32a9af(0x194)]();}[_0x4a5888(0x1e5)](){const _0x34036e=_0x4a5888;this[_0x34036e(0x1a1)][_0x34036e(0x213)](_0x34036e(0x1a7)),this[_0x34036e(0x1f8)]();}},_0x196a2d[_0x4a5888(0x1f9)]=_0x323f11([_0x1a3176(0x2,_0xf5f867[_0x4a5888(0x231)]),_0x1a3176(0x3,_0xf5f867[_0x4a5888(0x1ca)](_0x141ae)),_0x1a3176(0x4,_0xf5f867[_0x4a5888(0x1b1)])],_0x196a2d['LiveShareCoordinator']);function _0x3da40e(){const _0x2febdf=_0x4a5888,_0x4a658f=_0xb7a067[_0x2febdf(0x227)](_0x196a2d[_0x2febdf(0x271)]),_0x5755c1=_0xb7a067[_0x2febdf(0x227)](_0xf5f867['IUniverInstanceService']),_0x2dd186=_0xb7a067[_0x2febdf(0x251)](()=>_0x5755c1['getCurrentTypeOfUnit$'](_0xf5f867[_0x2febdf(0x201)][_0x2febdf(0x1c3)]),void 0x0,!0x1,[]),[_0x198f78,_0x2f7928]=_0x4428a5[_0x2febdf(0x1f3)](null),[_0xd7d4d0,_0x2172af]=_0x4428a5[_0x2febdf(0x1f3)](_0x271e73[_0x2febdf(0x27c)]),_0x4ea935=_0x4428a5['useRef'](null);return _0x4428a5['useEffect'](()=>(_0x2dd186&&_0x4a658f[_0x2febdf(0x244)](_0x2dd186[_0x2febdf(0x241)]())[_0x2febdf(0x195)](_0xcc668d=>{const _0x2ab1fc=_0x2febdf;_0x2f7928(_0xcc668d),_0x4ea935[_0x2ab1fc(0x1b6)]=_0xcc668d[_0x2ab1fc(0x214)]['subscribe'](_0x316030=>{_0x2172af(_0x316030);});}),()=>{const _0x298bff=_0x2febdf;var _0x3dc6e2;(_0x3dc6e2=_0x4ea935['current'])==null||_0x3dc6e2['unsubscribe'](),_0x4ea935[_0x298bff(0x1b6)]=null;}),[_0x2dd186,_0x4a658f]),_0x198f78?_0x54348f[_0x2febdf(0x19e)](_0xa9ec5f[_0x2febdf(0x1b4)],{'align':_0x2febdf(0x208),'disabled':_0xd7d4d0===_0x271e73[_0x2febdf(0x1e1)],'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':_0x54348f[_0x2febdf(0x19e)](_0x95ae6a,{'status':_0xd7d4d0,'coordinator':_0x198f78}),'children':_0x54348f[_0x2febdf(0x19e)](_0x2febdf(0x222),{'className':_0xa9ec5f[_0x2febdf(0x26c)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xd7d4d0===_0x271e73[_0x2febdf(0x1e1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xd7d4d0!==_0x271e73['OFFLINE']}),'type':_0x2febdf(0x222),'children':_0x54348f[_0x2febdf(0x19e)](_0x1859c8,{'className':_0x2febdf(0x19b)})})}):null;}function _0x95ae6a(_0x5da49b){const _0x594654=_0x4a5888,{status:_0x4c7f0b,coordinator:_0x321346}=_0x5da49b;switch(_0x4c7f0b){case _0x271e73[_0x594654(0x27c)]:return _0x54348f[_0x594654(0x19e)](_0x1e3419,{'coordinator':_0x321346});case _0x271e73[_0x594654(0x257)]:return _0x54348f['jsx'](_0x5d66ff,{'coordinator':_0x321346});case _0x271e73[_0x594654(0x211)]:return _0x54348f[_0x594654(0x19e)](_0x33efe6,{'coordinator':_0x321346});case _0x271e73[_0x594654(0x1e1)]:return _0x54348f[_0x594654(0x19e)](_0x2d75bf,{});case _0x271e73[_0x594654(0x22d)]:return _0x54348f[_0x594654(0x19e)](_0x93d809,{'coordinator':_0x321346});default:return null;}}function _0x1e3419(_0x128203){const _0x51df70=_0x4a5888,{coordinator:_0x59061f}=_0x128203;return _0x54348f['jsxs'](_0x54348f[_0x51df70(0x1cc)],{'children':[_0x54348f[_0x51df70(0x19e)](_0x51df70(0x22a),{'className':_0x51df70(0x204),'children':_0x51df70(0x22e)}),_0x54348f[_0x51df70(0x19e)](_0xa9ec5f[_0x51df70(0x1bd)],{'onClick':()=>_0x59061f[_0x51df70(0x1eb)](),'children':_0x51df70(0x206)})]});}function _0x5d66ff(_0x83ae48){const _0x100444=_0x4a5888,{coordinator:_0x3c1f6d}=_0x83ae48;return _0x54348f[_0x100444(0x233)](_0x54348f[_0x100444(0x1cc)],{'children':[_0x54348f[_0x100444(0x19e)](_0x100444(0x22a),{'className':_0x100444(0x204),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x54348f[_0x100444(0x19e)](_0xa9ec5f[_0x100444(0x1bd)],{'onClick':()=>_0x3c1f6d['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x33efe6(_0x4275df){const _0x2e5eaa=_0x4a5888,{coordinator:_0x4e59b2}=_0x4275df;return _0x54348f[_0x2e5eaa(0x233)](_0x54348f[_0x2e5eaa(0x1cc)],{'children':[_0x54348f[_0x2e5eaa(0x19e)](_0x2e5eaa(0x22a),{'className':_0x2e5eaa(0x204),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x54348f['jsx'](_0xa9ec5f[_0x2e5eaa(0x1bd)],{'variant':_0x2e5eaa(0x23e),'onClick':()=>_0x4e59b2[_0x2e5eaa(0x226)](),'children':_0x2e5eaa(0x1f5)})]});}function _0x93d809(_0x2f0864){const _0x53845b=_0x4a5888,{coordinator:_0x406e6b}=_0x2f0864;return _0x54348f[_0x53845b(0x233)](_0x54348f[_0x53845b(0x1cc)],{'children':[_0x54348f['jsx'](_0x53845b(0x22a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x54348f[_0x53845b(0x19e)](_0xa9ec5f['Button'],{'variant':_0x53845b(0x19a),'onClick':()=>_0x406e6b['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x2d75bf(){const _0x3af434=_0x4a5888;return _0x54348f[_0x3af434(0x19e)](_0x54348f[_0x3af434(0x1cc)],{'children':_0x3af434(0x273)});}var _0x2cac4f=Object[_0x4a5888(0x1db)],_0x296f4f=(_0xced252,_0x55948e,_0x2258d0,_0x4f345b)=>{for(var _0x7fe14d=_0x4f345b>0x1?void 0x0:_0x4f345b?_0x2cac4f(_0x55948e,_0x2258d0):_0x55948e,_0x2292d6=_0xced252['length']-0x1,_0x1f988a;_0x2292d6>=0x0;_0x2292d6--)(_0x1f988a=_0xced252[_0x2292d6])&&(_0x7fe14d=_0x1f988a(_0x7fe14d)||_0x7fe14d);return _0x7fe14d;},_0x55b184=(_0x180bcc,_0x256318)=>(_0x34867d,_0x4540be)=>_0x256318(_0x34867d,_0x4540be,_0x180bcc);_0x196a2d['DesktopLiveShareController']=class extends _0xf5f867['Disposable']{constructor(_0x1888b7,_0x18e51f){const _0x563ac7=_0x4a5888;super(),this[_0x563ac7(0x1d1)]=_0x1888b7,this[_0x563ac7(0x20e)]=_0x18e51f,this[_0x563ac7(0x1e0)]();}['_mountLiveShare'](){const _0x305bed=_0x4a5888;this[_0x305bed(0x1c2)](this[_0x305bed(0x20e)][_0x305bed(0x20a)](_0xb7a067['BuiltInUIPart'][_0x305bed(0x1c7)],()=>_0xb7a067[_0x305bed(0x1ae)](_0x3da40e,this['_injector'])));}},_0x196a2d[_0x4a5888(0x1f0)]=_0x296f4f([_0x55b184(0x0,_0xf5f867[_0x4a5888(0x1ca)](_0xf5f867['Injector'])),_0x55b184(0x1,_0xb7a067[_0x4a5888(0x1de)])],_0x196a2d['DesktopLiveShareController']);const _0x5bb892=_0x4a5888(0x277),_0x2ecd42={};var _0x1d088d=Object['getOwnPropertyDescriptor'],_0x315325=(_0x5c18e3,_0x5429e2,_0x3fdbc5,_0x5b0f98)=>{const _0x2e0643=_0x4a5888;for(var _0x3c7dd7=_0x5b0f98>0x1?void 0x0:_0x5b0f98?_0x1d088d(_0x5429e2,_0x3fdbc5):_0x5429e2,_0x3a8db9=_0x5c18e3[_0x2e0643(0x1ad)]-0x1,_0x1f6a59;_0x3a8db9>=0x0;_0x3a8db9--)(_0x1f6a59=_0x5c18e3[_0x3a8db9])&&(_0x3c7dd7=_0x1f6a59(_0x3c7dd7)||_0x3c7dd7);return _0x3c7dd7;},_0x533e65=(_0x1ba8e4,_0x310936)=>(_0x3e8b54,_0x2ce41e)=>_0x310936(_0x3e8b54,_0x2ce41e,_0x1ba8e4);let _0x2d0fcb=class extends _0xf5f867[_0x4a5888(0x216)]{constructor(_0x112e92){const _0x1b7d48=_0x4a5888;super(),this[_0x1b7d48(0x272)]=_0x112e92,this[_0x1b7d48(0x230)]();}[_0x4a5888(0x230)](){const _0x450d3a=_0x4a5888;[_0x3469ee[_0x450d3a(0x232)]['id'],_0x3469ee[_0x450d3a(0x1bf)]['id'],_0x3cec37[_0x450d3a(0x250)]['id']][_0x450d3a(0x263)](_0x3a473a=>{const _0x4a460e=_0x450d3a;this[_0x4a460e(0x1c2)](this[_0x4a460e(0x272)][_0x4a460e(0x22c)](_0x3a473a));});}};_0x2d0fcb=_0x315325([_0x533e65(0x0,_0xf5f867['Inject'](_0x141ae))],_0x2d0fcb);var _0x304034=Object['defineProperty'],_0x4a92ed=Object[_0x4a5888(0x1db)],_0x35fb26=(_0x1a5e75,_0x21347b,_0x3d3cdb)=>_0x21347b in _0x1a5e75?_0x304034(_0x1a5e75,_0x21347b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d3cdb}):_0x1a5e75[_0x21347b]=_0x3d3cdb,_0x3fbf4c=(_0x2a8ae9,_0x3aa518,_0x3f595a,_0x55481d)=>{const _0x2650ad=_0x4a5888;for(var _0x2814a7=_0x55481d>0x1?void 0x0:_0x55481d?_0x4a92ed(_0x3aa518,_0x3f595a):_0x3aa518,_0x16a442=_0x2a8ae9[_0x2650ad(0x1ad)]-0x1,_0x1338db;_0x16a442>=0x0;_0x16a442--)(_0x1338db=_0x2a8ae9[_0x16a442])&&(_0x2814a7=_0x1338db(_0x2814a7)||_0x2814a7);return _0x2814a7;},_0x31aeba=(_0x55f4d0,_0x3c6901)=>(_0x3a0420,_0x3df1f0)=>_0x3c6901(_0x3a0420,_0x3df1f0,_0x55f4d0),_0x2e4bb1=(_0x2156d5,_0x28a604,_0x5ebf43)=>_0x35fb26(_0x2156d5,typeof _0x28a604!=_0x4a5888(0x228)?_0x28a604+'':_0x28a604,_0x5ebf43);const _0x5cc5b8='UNIVER_LIVE_SHARE_PLUGIN';_0x196a2d[_0x4a5888(0x247)]=class extends _0xf5f867[_0x4a5888(0x21a)]{constructor(_0x3677c6=_0x2ecd42,_0x129d06,_0x2f0eba){const _0x430c73=_0x4a5888;super(),this['_config']=_0x3677c6,this[_0x430c73(0x1d1)]=_0x129d06,this['_configService']=_0x2f0eba;const {..._0x181169}=_0xf5f867[_0x430c73(0x19f)]({},_0x2ecd42,this[_0x430c73(0x235)]);this[_0x430c73(0x255)][_0x430c73(0x205)](_0x5bb892,_0x181169);}[_0x4a5888(0x1c8)](){const _0x29832e=_0x4a5888;_0xf5f867['registerDependencies'](this[_0x29832e(0x1d1)],_0xf5f867[_0x29832e(0x1ec)]([[_0x141ae],[_0x196a2d[_0x29832e(0x271)]],[_0x2d0fcb],[_0x196a2d[_0x29832e(0x1f0)]]],this['_config'][_0x29832e(0x25d)])),_0xf5f867[_0x29832e(0x256)](this['_injector'],[[_0x2d0fcb]]);}[_0x4a5888(0x203)](){const _0x5c41db=_0x4a5888;_0xf5f867[_0x5c41db(0x256)](this['_injector'],[[_0x196a2d[_0x5c41db(0x1f0)]]]);}},_0x2e4bb1(_0x196a2d['UniverLiveSharePlugin'],_0x4a5888(0x267),_0xf5f867[_0x4a5888(0x201)][_0x4a5888(0x20d)]),_0x2e4bb1(_0x196a2d[_0x4a5888(0x247)],'pluginName',_0x5cc5b8),_0x196a2d[_0x4a5888(0x247)]=_0x3fbf4c([_0xf5f867[_0x4a5888(0x20c)](_0x3bd55b[_0x4a5888(0x1fb)]),_0x31aeba(0x1,_0xf5f867['Inject'](_0xf5f867['Injector'])),_0x31aeba(0x2,_0xf5f867[_0x4a5888(0x231)])],_0x196a2d[_0x4a5888(0x247)]),_0x196a2d[_0x4a5888(0x1a5)]=_0x3da40e,_0x196a2d[_0x4a5888(0x1a9)]=_0x141ae,_0x196a2d['LiveShareStatus']=_0x271e73,Object['defineProperty'](_0x196a2d,Symbol[_0x4a5888(0x24f)],{'value':_0x4a5888(0x20b)});}));function _0x5a25(_0x4c7dd5,_0x148c6a){const _0x31488b=_0x3148();return _0x5a25=function(_0x5a25e9,_0x27ae90){_0x5a25e9=_0x5a25e9-0x191;let _0x210708=_0x31488b[_0x5a25e9];return _0x210708;},_0x5a25(_0x4c7dd5,_0x148c6a);}function _0x3148(){const _0xefcc5=['_uiPartsService','complete','UniverProLiveShare','NOT_FOLLOWING','colorChannel1','next','status$','has','Disposable','tag','3AqTXnk','LIVESHARE_REQUEST_HOST','Plugin','_startLiveShareCoordinator','xlink:href','throttleTime','InsertSheetMutation','_stopFollowing','410OFrZRz','getTypeOfUnitAdded$','button','UniverProCollaborationClient','fill','substring','startFollowing','useDependency','symbol','LIVESHARE_OPERATION','div','_beIdle','registerSharedOperation','PRESENTING','Present\x20this\x20document','330ayLqwd','_init','IConfigService','SetZoomRatioOperation','jsxs','LIVESHARE_FETCH_OPERATIONS','_config','delete','LiveShareIcon','_entities','createElement','DisposableCollection','amd','_handleTerminate','add','text','idSuffix','dispose$','getUnitId','Injector','874704EYhEqt','getLiveShareCoordinator','values','getInitialStates','UniverLiveSharePlugin','@univerjs-pro/collaboration-client','_reporters','subscribe','_commandDisposable','live-share-icon','CollaborationEvent','@univerjs/sheets','toStringTag','SetWorksheetActiveOperation','useObservable','forwardRef','RxDisposable','OPERATION','_configService','touchDependencies','FOLLOWING','children','evenodd','use','string','180477HxmRcr','override','pipe','_commandService','onCommandExecuted','_handleNewChangeSets','event$','forEach','_status','find','_unitID','type','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','mask','UniverProCollaboration','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','clsx','732OxPJdt','0\x200\x2017\x2017','registerInitialStateReporter','includes','LiveShareController','_liveShareService','You\x27are\x20offline.','univerjs-icon\x20univerjs-icon-','ONLINE','asObservable','live-share.config','offline','2004mIbmZv','map','stringify','IDLE','_handleNewHost','presenter','not-following','replace','_startPresenting','sessionStatus$','dispose','then','takeUntil','getValue','react/jsx-runtime','attrs','default','univer-size-4','_sharedOperations','from','jsx','merge','927264lCJrTk','_status$','data','set','svg','LiveShare','_stopPresenting','idle','@univerjs-pro/collaboration','LiveShareService','parse','url(#$1','getMemberID','length','connectInjector','Subject','_collabSession','ICommandService','1913296BzpcWN','4089600TSlaxe','Dropdown','UniverDesign','current','stopPresenting','UniverCore','UniverSheets','currentColor','defIds','getTypeOfUnitDisposed$','Button','_startFollowing','SetScrollOperation','toDisposable','parseProtocolChangeset','disposeWithMe','UNIVER_SHEET','_handleOffline','getConfig','operators','HEADER_MENU','onStarting','unitId','Inject','_collabSessionService','Fragment','following','path','@univerjs/ui','1em','_injector','IUniverInstanceService','displayName','SAME_OPERATION_SHARE_INTERVAL','_univerInstanceService','getStatus','SessionStatus','NEW_CHANGESETS','get','@univerjs/sheets-ui','getOwnPropertyDescriptor','send','LIVESHARE_TERMINATE','IUIPartsService','React','_mountLiveShare','OFFLINE','params','CommandType','function','_handleOnline','reverse','useRef','memberID','http://www.w3.org/2000/svg','entries','tryStartPresenting','mergeOverrideWithDependencies','UniverSheetsUi','@univerjs/design','CollaborationSessionService','DesktopLiveShareController','executeCommand','_handleOperation','useState','presenting','Start\x20following','assign','@univerjs/core','_fetchOperations','LiveShareCoordinator','defineProperty','UniverCollaborationClientPlugin','trim','rxjs','_presenter','7075oAspXf','getLiveShareCoordinatorSync','UniverInstanceType','requireSession','onRendered','univer-mb-3\x20univer-w-full\x20univer-text-sm','setConfig','Start','operations','end','mutations','registerComponent','Module','DependentOn','UNIVER_UNKNOWN'];_0x3148=function(){return _0xefcc5;};return _0x3148();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
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.
|
|
62
|
-
"@univerjs/core": "0.
|
|
63
|
-
"@univerjs/engine-render": "0.
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/ui": "0.
|
|
66
|
-
"@univerjs/sheets
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.0",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.0",
|
|
62
|
+
"@univerjs/core": "0.12.0",
|
|
63
|
+
"@univerjs/engine-render": "0.12.0",
|
|
64
|
+
"@univerjs/design": "0.12.0",
|
|
65
|
+
"@univerjs/sheets-ui": "0.12.0",
|
|
66
|
+
"@univerjs/sheets": "0.12.0",
|
|
67
|
+
"@univerjs/ui": "0.12.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"rxjs": "7.8.2",
|
|
73
73
|
"tailwindcss": "^3.4.17",
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
|
-
"vite": "^7.
|
|
75
|
+
"vite": "^7.2.2",
|
|
76
76
|
"vitest": "^3.2.4",
|
|
77
|
-
"@univerjs/
|
|
78
|
-
"@univerjs
|
|
77
|
+
"@univerjs-infra/shared": "0.12.0",
|
|
78
|
+
"@univerjs/protocol": "0.1.47"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|