@univerjs-pro/live-share 1.0.0-alpha.7 → 1.0.0-beta.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 +13 -12
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x2d48(){const _0x485c3d=['UNIVER_SHEET','getStatus','tryStartPresenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','No\x20active\x20workbook\x20found.','1950174sctDOU','function','getLiveShareStatus','startPresenting','2699752RjgTji','getLiveShareCoordinatorSync','3BLGJbK','iterator','LiveShareStatus','_liveShareController','call','symbol','IDLE','UniverInstanceType','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','3673592LRNmCz','startFollowing','LiveShareController','getUnitId','extend','684935fxTGQb','LiveShareStatusEnum','object','FUniver','FEnum','6197805lPOPtJ','prototype','112SjFKfz','defineProperty','toPrimitive','get','stopPresenting','427218VdsIDW','getCurrentUnitOfType','string','2009222EzbZhu','IUniverInstanceService','constructor','_injector','_initialize'];_0x2d48=function(){return _0x485c3d;};return _0x2d48();}const _0x25ba5b=_0x300a;(function(_0x35d7db,_0x1f86e3){const _0xfe3ba7=_0x300a,_0x762fc1=_0x35d7db();while(!![]){try{const _0x5689ec=parseInt(_0xfe3ba7(0xd9))/0x1+parseInt(_0xfe3ba7(0xe8))/0x2+parseInt(_0xfe3ba7(0xf8))/0x3*(-parseInt(_0xfe3ba7(0xf6))/0x4)+-parseInt(_0xfe3ba7(0xde))/0x5+-parseInt(_0xfe3ba7(0xe5))/0x6*(-parseInt(_0xfe3ba7(0xe0))/0x7)+-parseInt(_0xfe3ba7(0xd4))/0x8+parseInt(_0xfe3ba7(0xf2))/0x9;if(_0x5689ec===_0x1f86e3)break;else _0x762fc1['push'](_0x762fc1['shift']());}catch(_0x227f25){_0x762fc1['push'](_0x762fc1['shift']());}}}(_0x2d48,0xa4026));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x2b9883){'@babel/helpers - typeof';const _0x474ad9=_0x300a;return r=typeof Symbol==_0x474ad9(0xf3)&&typeof Symbol[_0x474ad9(0xf9)]==_0x474ad9(0xfd)?function(_0xd4329f){return typeof _0xd4329f;}:function(_0xf43c00){const _0x54dd70=_0x474ad9;return _0xf43c00&&typeof Symbol=='function'&&_0xf43c00[_0x54dd70(0xea)]===Symbol&&_0xf43c00!==Symbol[_0x54dd70(0xdf)]?_0x54dd70(0xfd):typeof _0xf43c00;},r(_0x2b9883);}function i(_0x319100,_0xc122ae){const _0x3d510f=_0x300a;if(r(_0x319100)!=_0x3d510f(0xdb)||!_0x319100)return _0x319100;var _0xe527cc=_0x319100[Symbol[_0x3d510f(0xe2)]];if(_0xe527cc!==void 0x0){var _0x13369b=_0xe527cc[_0x3d510f(0xfc)](_0x319100,_0xc122ae||'default');if(r(_0x13369b)!='object')return _0x13369b;throw TypeError(_0x3d510f(0xf0));}return(_0xc122ae===_0x3d510f(0xe7)?String:Number)(_0x319100);}function a(_0x429a67){const _0x28decd=_0x300a;var _0x413f72=i(_0x429a67,_0x28decd(0xe7));return r(_0x413f72)=='symbol'?_0x413f72:_0x413f72+'';}function o(_0x3460b3,_0x18a2eb,_0x5f399d){const _0x58afd6=_0x300a;return(_0x18a2eb=a(_0x18a2eb))in _0x3460b3?Object[_0x58afd6(0xe1)](_0x3460b3,_0x18a2eb,{'value':_0x5f399d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3460b3[_0x18a2eb]=_0x5f399d,_0x3460b3;}var s=class extends n['FUniver']{constructor(..._0x1266ba){const _0x3f5020=_0x300a;super(..._0x1266ba),o(this,_0x3f5020(0xfb),void 0x0);}[_0x25ba5b(0xec)](_0x376adf){const _0x689a1=_0x25ba5b;this[_0x689a1(0xfb)]=_0x376adf[_0x689a1(0xe3)](e[_0x689a1(0xd6)]);}[_0x25ba5b(0xf4)](){const _0x401c61=_0x25ba5b;let _0x4e420d=this[_0x401c61(0xeb)][_0x401c61(0xe3)](t[_0x401c61(0xe9)])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x401c61(0xed)]);if(!_0x4e420d)throw Error(_0x401c61(0xf1));let _0x3a2b8e=_0x4e420d[_0x401c61(0xd7)](),_0x11975b=this[_0x401c61(0xfb)]['getLiveShareCoordinatorSync'](_0x3a2b8e);return(_0x11975b==null?void 0x0:_0x11975b[_0x401c61(0xee)]())??e[_0x401c61(0xfa)][_0x401c61(0xfe)];}['startFollowing'](){const _0x1d02c3=_0x25ba5b;let _0x2fd98b=this['_injector'][_0x1d02c3(0xe3)](t[_0x1d02c3(0xe9)])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x1d02c3(0xed)]);if(!_0x2fd98b)throw Error(_0x1d02c3(0xf1));let _0x347cb0=_0x2fd98b[_0x1d02c3(0xd7)](),_0x437f16=this['_liveShareController'][_0x1d02c3(0xf7)](_0x347cb0);if(!_0x437f16)throw Error(_0x1d02c3(0x100));_0x437f16[_0x1d02c3(0xd5)]();}['stopFollowing'](){const _0x39f678=_0x25ba5b;let _0x5d8a0f=this['_injector'][_0x39f678(0xe3)](t[_0x39f678(0xe9)])[_0x39f678(0xe6)](t[_0x39f678(0xff)]['UNIVER_SHEET']);if(!_0x5d8a0f)throw Error(_0x39f678(0xf1));let _0x568244=_0x5d8a0f[_0x39f678(0xd7)](),_0x1a05c6=this[_0x39f678(0xfb)]['getLiveShareCoordinatorSync'](_0x568244);if(!_0x1a05c6)throw Error(_0x39f678(0x100));_0x1a05c6['stopFollowing']();}[_0x25ba5b(0xf5)](){const _0x1561f8=_0x25ba5b;let _0x4bc511=this[_0x1561f8(0xeb)][_0x1561f8(0xe3)](t[_0x1561f8(0xe9)])[_0x1561f8(0xe6)](t[_0x1561f8(0xff)]['UNIVER_SHEET']);if(!_0x4bc511)throw Error(_0x1561f8(0xf1));let _0xd43666=_0x4bc511[_0x1561f8(0xd7)](),_0x475590=this[_0x1561f8(0xfb)][_0x1561f8(0xf7)](_0xd43666);if(!_0x475590)throw Error(_0x1561f8(0x100));_0x475590[_0x1561f8(0xef)]();}[_0x25ba5b(0xe4)](){const _0xd4c285=_0x25ba5b;let _0x4c12ee=this[_0xd4c285(0xeb)][_0xd4c285(0xe3)](t[_0xd4c285(0xe9)])[_0xd4c285(0xe6)](t[_0xd4c285(0xff)]['UNIVER_SHEET']);if(!_0x4c12ee)throw Error(_0xd4c285(0xf1));let _0x3c3f34=_0x4c12ee[_0xd4c285(0xd7)](),_0xc02579=this[_0xd4c285(0xfb)]['getLiveShareCoordinatorSync'](_0x3c3f34);if(!_0xc02579)throw Error(_0xd4c285(0x100));_0xc02579['stopPresenting']();}};function _0x300a(_0x166635,_0x264764){_0x166635=_0x166635-0xd4;const _0x2d487d=_0x2d48();let _0x300a01=_0x2d487d[_0x166635];return _0x300a01;}n[_0x25ba5b(0xdc)][_0x25ba5b(0xd8)](s);var c=class extends n[_0x25ba5b(0xdd)]{get[_0x25ba5b(0xda)](){return e['LiveShareStatus'];}};n[_0x25ba5b(0xdd)][_0x25ba5b(0xd8)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4ea661=_0x5ee3;(function(_0x2bae1d,_0x1c4d72){const _0x56ea74=_0x5ee3,_0x3098a1=_0x2bae1d();while(!![]){try{const _0x1a1a99=parseInt(_0x56ea74(0x133))/0x1*(parseInt(_0x56ea74(0x132))/0x2)+parseInt(_0x56ea74(0x13f))/0x3+parseInt(_0x56ea74(0x1c0))/0x4*(-parseInt(_0x56ea74(0x16c))/0x5)+parseInt(_0x56ea74(0x176))/0x6*(-parseInt(_0x56ea74(0x1cf))/0x7)+-parseInt(_0x56ea74(0x1ac))/0x8*(parseInt(_0x56ea74(0x1b7))/0x9)+-parseInt(_0x56ea74(0x1c8))/0xa*(-parseInt(_0x56ea74(0x13b))/0xb)+parseInt(_0x56ea74(0x19e))/0xc;if(_0x1a1a99===_0x1c4d72)break;else _0x3098a1['push'](_0x3098a1['shift']());}catch(_0x1d7c7b){_0x3098a1['push'](_0x3098a1['shift']());}}}(_0x1ac1,0x7bb3c),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x4ea661(0x166)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/sheets-ui'),s=require('@univerjs/ui'),c=require('@univerjs/design'),l=require('@univerjs/icons'),u=require('react'),d=require('react/jsx-runtime');function f(_0x1911c1){'@babel/helpers - typeof';const _0x1ca053=_0x4ea661;return f=typeof Symbol==_0x1ca053(0x138)&&typeof Symbol['iterator']==_0x1ca053(0x151)?function(_0x2955ba){return typeof _0x2955ba;}:function(_0x2c68e0){const _0x21d7d3=_0x1ca053;return _0x2c68e0&&typeof Symbol==_0x21d7d3(0x138)&&_0x2c68e0[_0x21d7d3(0x15a)]===Symbol&&_0x2c68e0!==Symbol[_0x21d7d3(0x1cd)]?_0x21d7d3(0x151):typeof _0x2c68e0;},f(_0x1911c1);}function p(_0x4d8b41,_0x31b94f){const _0x501cf9=_0x4ea661;if(f(_0x4d8b41)!=_0x501cf9(0x149)||!_0x4d8b41)return _0x4d8b41;var _0x1f8e56=_0x4d8b41[Symbol[_0x501cf9(0x182)]];if(_0x1f8e56!==void 0x0){var _0x2f154d=_0x1f8e56[_0x501cf9(0x16b)](_0x4d8b41,_0x31b94f||'default');if(f(_0x2f154d)!=_0x501cf9(0x149))return _0x2f154d;throw TypeError(_0x501cf9(0x195));}return(_0x31b94f===_0x501cf9(0x173)?String:Number)(_0x4d8b41);}function m(_0x3aaea3){const _0x3b577c=_0x4ea661;var _0xdaaacb=p(_0x3aaea3,'string');return f(_0xdaaacb)==_0x3b577c(0x151)?_0xdaaacb:_0xdaaacb+'';}function h(_0x15b9df,_0x170fc1,_0x41de35){return(_0x170fc1=m(_0x170fc1))in _0x15b9df?Object['defineProperty'](_0x15b9df,_0x170fc1,{'value':_0x41de35,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15b9df[_0x170fc1]=_0x41de35,_0x15b9df;}var g=class extends n[_0x4ea661(0x19b)]{constructor(..._0x984de4){const _0xae6abf=_0x4ea661;super(..._0x984de4),h(this,'_sharedOperations',new Set()),h(this,_0xae6abf(0x14c),new Set());}[_0x4ea661(0x1b4)](_0x1f5c57){const _0x4bc91f=_0x4ea661;return this[_0x4bc91f(0x164)][_0x4bc91f(0x193)](_0x1f5c57),(0x0,n[_0x4bc91f(0x158)])(()=>this[_0x4bc91f(0x164)][_0x4bc91f(0x1a9)](_0x1f5c57));}[_0x4ea661(0x178)](_0xa651a6){const _0xf0460=_0x4ea661;return this[_0xf0460(0x14c)]['add'](_0xa651a6),(0x0,n[_0xf0460(0x158)])(()=>this['_reporters']['delete'](_0xa651a6));}[_0x4ea661(0x163)](_0x30c810){const _0x15d06b=_0x4ea661;return this['_sharedOperations'][_0x15d06b(0x15d)](_0x30c810);}[_0x4ea661(0x17d)](_0x5d6f4c){const _0x6afcd4=_0x4ea661;return Array[_0x6afcd4(0x1a3)](this['_reporters'])[_0x6afcd4(0x1c1)](_0x409c49=>_0x409c49(_0x5d6f4c));}};function _(_0x28b117,_0x1ac45c){return function(_0x2429a2,_0x5b4f21){_0x1ac45c(_0x2429a2,_0x5b4f21,_0x28b117);};}function v(_0x5ded80,_0x3c70cf,_0x1f6e73,_0x185b54){const _0x4955d0=_0x4ea661;var _0x419d46=arguments[_0x4955d0(0x197)],_0x490893=_0x419d46<0x3?_0x3c70cf:_0x185b54===null?_0x185b54=Object[_0x4955d0(0x12d)](_0x3c70cf,_0x1f6e73):_0x185b54,_0x534252;if(typeof Reflect==_0x4955d0(0x149)&&typeof Reflect[_0x4955d0(0x13c)]==_0x4955d0(0x138))_0x490893=Reflect[_0x4955d0(0x13c)](_0x5ded80,_0x3c70cf,_0x1f6e73,_0x185b54);else{for(var _0x117070=_0x5ded80['length']-0x1;_0x117070>=0x0;_0x117070--)(_0x534252=_0x5ded80[_0x117070])&&(_0x490893=(_0x419d46<0x3?_0x534252(_0x490893):_0x419d46>0x3?_0x534252(_0x3c70cf,_0x1f6e73,_0x490893):_0x534252(_0x3c70cf,_0x1f6e73))||_0x490893);}return _0x419d46>0x3&&_0x490893&&Object[_0x4955d0(0x1b2)](_0x3c70cf,_0x1f6e73,_0x490893),_0x490893;}let y=class extends n[_0x4ea661(0x1a2)]{constructor(_0xb81cf4,_0x51a75a,_0x20e6b4){const _0x32e6d9=_0x4ea661;super(),this[_0x32e6d9(0x16e)]=_0xb81cf4,this['_injector']=_0x51a75a,this['_collabSessionService']=_0x20e6b4,h(this,'_entities',new Map()),this[_0x32e6d9(0x16a)]();}async['getLiveShareCoordinator'](_0x1fac3e){const _0x4e788a=_0x4ea661;return this[_0x4e788a(0x196)][_0x4e788a(0x15d)](_0x1fac3e)||await this[_0x4e788a(0x1bd)](_0x1fac3e),this[_0x4e788a(0x196)]['get'](_0x1fac3e);}['getLiveShareCoordinatorSync'](_0x1de17f){const _0x292e96=_0x4ea661;var _0x5ed542;return(_0x5ed542=this[_0x292e96(0x196)][_0x292e96(0x13e)](_0x1de17f))==null?null:_0x5ed542;}[_0x4ea661(0x16a)](){const _0x5a850a=_0x4ea661;this[_0x5a850a(0x16e)][_0x5a850a(0x1a8)](n['UniverInstanceType'][_0x5a850a(0x161)])['pipe']((0x0,a['takeUntil'])(this['dispose$']))[_0x5a850a(0x1b1)](async _0x238767=>{const _0x1fa7f4=_0x5a850a;let _0x581449=_0x238767[_0x1fa7f4(0x165)][_0x1fa7f4(0x18f)]();this[_0x1fa7f4(0x196)][_0x1fa7f4(0x15d)](_0x581449)||this['_startLiveShareCoordinator'](_0x581449);}),this[_0x5a850a(0x16e)][_0x5a850a(0x157)](n[_0x5a850a(0x199)][_0x5a850a(0x161)])[_0x5a850a(0x152)]((0x0,a['takeUntil'])(this[_0x5a850a(0x150)]))[_0x5a850a(0x1b1)](_0xd9368a=>{const _0x3bbd5f=_0x5a850a;let _0xcb81e0=_0xd9368a[_0x3bbd5f(0x18f)](),_0x2b9f5c=this[_0x3bbd5f(0x196)][_0x3bbd5f(0x13e)](_0xcb81e0);_0x2b9f5c==null||_0x2b9f5c[_0x3bbd5f(0x17a)]();});}async['_startLiveShareCoordinator'](_0x237d33){const _0x339fb9=_0x4ea661;let _0x212af5=await this[_0x339fb9(0x18b)][_0x339fb9(0x140)](_0x237d33),_0x2d4eeb=this['_injector']['createInstance'](x,_0x237d33,_0x212af5);return _0x2d4eeb[_0x339fb9(0x177)](),this[_0x339fb9(0x196)][_0x339fb9(0x15b)](_0x237d33,_0x2d4eeb),_0x2d4eeb;}};y=v([_(0x0,n['IUniverInstanceService']),_(0x1,(0x0,n[_0x4ea661(0x1bf)])(n[_0x4ea661(0x18d)])),_(0x2,(0x0,n['Inject'])(t[_0x4ea661(0x1cc)]))],y);let b=function(_0x86fbf8){const _0x28193e=_0x4ea661;return _0x86fbf8[_0x28193e(0x167)]=_0x28193e(0x15c),_0x86fbf8['IDLE']=_0x28193e(0x162),_0x86fbf8[_0x28193e(0x1a1)]=_0x28193e(0x1b3),_0x86fbf8['NOT_FOLLOWING']=_0x28193e(0x14e),_0x86fbf8['PRESENTING']=_0x28193e(0x19f),_0x86fbf8;}({}),x=class extends n[_0x4ea661(0x1a2)]{get[_0x4ea661(0x1af)](){return this['_status$']['getValue']();}constructor(_0x33c709,_0x523a20,_0x3c371b,_0x4eec60,_0x9015d7){const _0x13228c=_0x4ea661;super(),this[_0x13228c(0x1b8)]=_0x33c709,this[_0x13228c(0x147)]=_0x523a20,this['_configService']=_0x3c371b,this[_0x13228c(0x17c)]=_0x4eec60,this[_0x13228c(0x190)]=_0x9015d7,h(this,_0x13228c(0x170),new i['BehaviorSubject'](_0x13228c(0x162))),h(this,_0x13228c(0x1be),this[_0x13228c(0x170)]['asObservable']()),h(this,_0x13228c(0x16a),!0x1),h(this,'_commandDisposable',null),h(this,_0x13228c(0x130),null);}['dispose'](){const _0x4b1957=_0x4ea661;var _0x5c6b6c;(_0x5c6b6c=this[_0x4b1957(0x1ca)])==null||_0x5c6b6c['dispose'](),this['_status$'][_0x4b1957(0x1d7)](_0x4b1957(0x162)),this[_0x4b1957(0x170)][_0x4b1957(0x175)]();}['getStatus'](){const _0x47928d=_0x4ea661;return this[_0x47928d(0x1af)];}[_0x4ea661(0x177)](){const _0x4fa484=_0x4ea661;this['_init']||(this['_init']=!0x0,this[_0x4fa484(0x147)][_0x4fa484(0x1b6)]['pipe']((0x0,a[_0x4fa484(0x1b0)])(this[_0x4fa484(0x150)]))[_0x4fa484(0x1b1)](_0x1d4134=>{const _0x4f1f31=_0x4fa484;switch(_0x1d4134){case t[_0x4f1f31(0x17e)]['OFFLINE']:this[_0x4f1f31(0x171)]();break;case t[_0x4f1f31(0x17e)]['ONLINE']:this[_0x4f1f31(0x1a7)]();break;default:}}),this[_0x4fa484(0x147)][_0x4fa484(0x1ab)][_0x4fa484(0x152)]((0x0,a[_0x4fa484(0x1b0)])(this[_0x4fa484(0x150)]))[_0x4fa484(0x1b1)](_0x455ccf=>{const _0x45ee18=_0x4fa484;let {eventID:_0x3f8be6}=_0x455ccf;switch(_0x3f8be6){case e[_0x45ee18(0x18c)][_0x45ee18(0x187)]:this[_0x45ee18(0x188)](_0x455ccf);break;case e[_0x45ee18(0x18c)]['LIVESHARE_OPERATION']:this[_0x45ee18(0x1d2)](_0x455ccf);break;case e[_0x45ee18(0x18c)][_0x45ee18(0x129)]:this[_0x45ee18(0x192)]();break;case e[_0x45ee18(0x18c)][_0x45ee18(0x1ae)]:this['_handleNewChangeSets'](_0x455ccf);break;default:}}));}[_0x4ea661(0x1c7)](){const _0x2f6dbf=_0x4ea661;this[_0x2f6dbf(0x147)][_0x2f6dbf(0x17f)]({'eventID':e[_0x2f6dbf(0x18c)][_0x2f6dbf(0x14b)],'data':{'unitID':this['_unitID'],'userID':this[_0x2f6dbf(0x147)][_0x2f6dbf(0x134)]()}},this[_0x2f6dbf(0x1b8)]);}['stopPresenting'](){const _0x25579e=_0x4ea661;this[_0x25579e(0x1af)]===_0x25579e(0x19f)&&(this['_status$'][_0x25579e(0x1d7)]('idle'),this[_0x25579e(0x147)][_0x25579e(0x17f)]({'eventID':e[_0x25579e(0x18c)][_0x25579e(0x129)],'data':{'unitID':this[_0x25579e(0x1b8)]}},this['_unitID']));}[_0x4ea661(0x1a6)](){const _0x54adb1=_0x4ea661;this[_0x54adb1(0x1af)]===_0x54adb1(0x14e)&&(this[_0x54adb1(0x170)][_0x54adb1(0x1d7)](_0x54adb1(0x1b3)),this['_startFollowing']());}[_0x4ea661(0x1d3)](){const _0xab1402=_0x4ea661;this[_0xab1402(0x1af)]===_0xab1402(0x1b3)&&this[_0xab1402(0x169)]();}['_handleNewHost'](_0x419449){const _0x288b0f=_0x4ea661;let {presenter:_0x2a4178}=_0x419449[_0x288b0f(0x12f)],_0x967884=this[_0x288b0f(0x147)][_0x288b0f(0x134)]();this[_0x288b0f(0x130)]=_0x2a4178,_0x2a4178===_0x967884?(this['_stopFollowing'](),this[_0x288b0f(0x16d)]()):this[_0x288b0f(0x1af)]!==_0x288b0f(0x14e)&&(this[_0x288b0f(0x1a5)](),this[_0x288b0f(0x15e)]());}[_0x4ea661(0x17b)](){const _0x47c658=_0x4ea661;let _0x3c37d4={'eventID':e[_0x47c658(0x18c)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x47c658(0x147)][_0x47c658(0x17f)](_0x3c37d4,this[_0x47c658(0x1b8)]);}[_0x4ea661(0x192)](){this['_presenter']=null,this['_status']!=='presenting'&&this['_beIdle']();}[_0x4ea661(0x168)](_0x2460d1){const _0x1f74f9=_0x4ea661;if(this['_status']===_0x1f74f9(0x1b3)&&this[_0x1f74f9(0x130)]===_0x2460d1[_0x1f74f9(0x12f)][_0x1f74f9(0x1b5)]){let _0x2cd08e=(0x0,e[_0x1f74f9(0x1ba)])(_0x2460d1['data'])['mutations'][_0x1f74f9(0x19a)]()[_0x1f74f9(0x137)](_0x15f393=>_0x15f393['id']===r[_0x1f74f9(0x183)]['id']);if(_0x2cd08e){let _0x10394d=_0x2cd08e['params']['unitId'],_0x2c860a=_0x2cd08e[_0x1f74f9(0x141)][_0x1f74f9(0x180)]['id'];setTimeout(()=>{const _0x45bdf6=_0x1f74f9;this[_0x45bdf6(0x190)][_0x45bdf6(0x181)](r[_0x45bdf6(0x186)]['id'],{'unitId':_0x10394d,'subUnitId':_0x2c860a},{'fromCollab':!0x0});});}}}[_0x4ea661(0x16d)](){const _0x440658=_0x4ea661;var _0x274b71;(_0x274b71=this[_0x440658(0x1ca)])==null||_0x274b71[_0x440658(0x17a)](),this[_0x440658(0x170)][_0x440658(0x1d7)](_0x440658(0x19f));let _0x77a628=new Map(),_0x1b7d19=this[_0x440658(0x1ca)]=new n[(_0x440658(0x1ce))]();_0x1b7d19[_0x440658(0x193)]((0x0,n[_0x440658(0x158)])(()=>{const _0xe3471=_0x440658;_0x77a628[_0xe3471(0x15f)](({subject:_0x40be46,subscription:_0x156862})=>{const _0x381402=_0xe3471;_0x156862[_0x381402(0x16f)](),_0x40be46[_0x381402(0x175)]();}),_0x77a628[_0xe3471(0x1a4)]();})),_0x1b7d19[_0x440658(0x193)](this[_0x440658(0x190)][_0x440658(0x131)](_0x1e6813=>{const _0x1caecc=_0x440658;if(_0x1e6813['type']!==n[_0x1caecc(0x139)]['OPERATION']||!this[_0x1caecc(0x17c)][_0x1caecc(0x163)](_0x1e6813['id']))return;let {id:_0x16792f}=_0x1e6813,_0x3a9f86;if(_0x77a628['has'](_0x16792f))_0x3a9f86=_0x77a628[_0x1caecc(0x13e)](_0x16792f)[_0x1caecc(0x1d1)];else{var _0x66ca8d;_0x3a9f86=new i[(_0x1caecc(0x1c3))]();let _0x1edbf4=_0x3a9f86[_0x1caecc(0x152)]((0x0,a[_0x1caecc(0x153)])((_0x66ca8d=this[_0x1caecc(0x143)]['getConfig'](_0x1caecc(0x1c6)))==null?0xc8:_0x66ca8d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1caecc(0x1b1)](_0x9dfc34=>{const _0x2a657a=_0x1caecc;this['_collabSession'][_0x2a657a(0x17f)]({'eventID':e[_0x2a657a(0x18c)][_0x2a657a(0x159)],'data':{'unitID':this[_0x2a657a(0x1b8)],'operations':{[_0x9dfc34['id']]:{'id':_0x9dfc34['id'],'params':JSON[_0x2a657a(0x135)](_0x9dfc34[_0x2a657a(0x141)])}}}},this[_0x2a657a(0x1b8)]);});_0x77a628[_0x1caecc(0x15b)](_0x16792f,{'subject':_0x3a9f86,'subscription':_0x1edbf4});}_0x3a9f86[_0x1caecc(0x1d7)](_0x1e6813);})),this['_liveShareService']['getInitialStates'](this[_0x440658(0x1b8)])[_0x440658(0x15f)](_0x2aab8b=>this[_0x440658(0x147)][_0x440658(0x17f)]({'eventID':e[_0x440658(0x18c)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x440658(0x1b8)],'operations':{[_0x2aab8b['id']]:{'id':_0x2aab8b['id'],'params':JSON['stringify'](_0x2aab8b['params'])}}}},this['_unitID']));}['_stopPresenting'](){const _0x48f64b=_0x4ea661;var _0x391606;this['_status$'][_0x48f64b(0x1d7)](_0x48f64b(0x162)),(_0x391606=this[_0x48f64b(0x1ca)])==null||_0x391606['dispose'](),this[_0x48f64b(0x1ca)]=null;}[_0x4ea661(0x15e)](){const _0x582150=_0x4ea661;var _0x1bb7e8;(_0x1bb7e8=this['_commandDisposable'])==null||_0x1bb7e8[_0x582150(0x17a)](),this[_0x582150(0x170)][_0x582150(0x1d7)]('following');}[_0x4ea661(0x148)](){const _0x40d562=_0x4ea661;var _0x5ce077;this[_0x40d562(0x170)][_0x40d562(0x1d7)](_0x40d562(0x162)),(_0x5ce077=this['_commandDisposable'])==null||_0x5ce077[_0x40d562(0x17a)](),this[_0x40d562(0x1ca)]=null;}[_0x4ea661(0x169)](){const _0x1fbc98=_0x4ea661;var _0x420bff;this[_0x1fbc98(0x170)][_0x1fbc98(0x1d7)](_0x1fbc98(0x14e)),(_0x420bff=this[_0x1fbc98(0x1ca)])==null||_0x420bff[_0x1fbc98(0x17a)]();}[_0x4ea661(0x1d2)](_0x1547b4){const _0x5b78c5=_0x4ea661;if([_0x5b78c5(0x19f),_0x5b78c5(0x14e),_0x5b78c5(0x15c)][_0x5b78c5(0x13a)](this[_0x5b78c5(0x1af)])||!_0x1547b4[_0x5b78c5(0x12f)][_0x5b78c5(0x1bc)]||_0x1547b4[_0x5b78c5(0x12f)][_0x5b78c5(0x1bc)]===this[_0x5b78c5(0x147)][_0x5b78c5(0x134)]())return;this[_0x5b78c5(0x1af)]==='idle'&&this['_startFollowing']();let _0x45ea56=_0x1547b4[_0x5b78c5(0x12f)]['operations'];Object[_0x5b78c5(0x12e)](_0x45ea56)['forEach'](_0x26348d=>{const _0x250ae0=_0x5b78c5;this[_0x250ae0(0x190)][_0x250ae0(0x181)](_0x26348d['id'],_0x26348d[_0x250ae0(0x141)]?JSON[_0x250ae0(0x179)](_0x26348d[_0x250ae0(0x141)]):null,{'fromCollab':!0x0});});}[_0x4ea661(0x171)](){const _0x569694=_0x4ea661;var _0x2c94d9;this[_0x569694(0x170)]['next']('offline'),(_0x2c94d9=this[_0x569694(0x1ca)])==null||_0x2c94d9[_0x569694(0x17a)]();}[_0x4ea661(0x1a7)](){const _0x3c8d0e=_0x4ea661;this['_status$'][_0x3c8d0e(0x1d7)](_0x3c8d0e(0x162)),this[_0x3c8d0e(0x17b)]();}};x=v([_(0x2,n[_0x4ea661(0x185)]),_(0x3,(0x0,n[_0x4ea661(0x1bf)])(g)),_(0x4,n['ICommandService'])],x);var S='@univerjs-pro/live-share',C=_0x4ea661(0x19d);const w={};let T=class extends n[_0x4ea661(0x19b)]{constructor(_0x14202e){const _0x4fb892=_0x4ea661;super(),this[_0x4fb892(0x17c)]=_0x14202e,this[_0x4fb892(0x16a)]();}[_0x4ea661(0x16a)](){const _0x39d154=_0x4ea661;[o['SetZoomRatioOperation']['id'],o[_0x39d154(0x194)]['id'],r['SetWorksheetActiveOperation']['id']][_0x39d154(0x15f)](_0x45fcb4=>{const _0x19d35f=_0x39d154;this[_0x19d35f(0x13d)](this[_0x19d35f(0x17c)]['registerSharedOperation'](_0x45fcb4));});}};T=v([_(0x0,(0x0,n[_0x4ea661(0x1bf)])(g))],T);function E(){const _0x9d0a88=_0x4ea661;let _0xcfc048=(0x0,s[_0x9d0a88(0x172)])(y),_0x147d2a=(0x0,s[_0x9d0a88(0x172)])(n['IUniverInstanceService']),_0x34b46b=(0x0,s[_0x9d0a88(0x1d8)])(()=>_0x147d2a['getCurrentTypeOfUnit$'](n[_0x9d0a88(0x199)][_0x9d0a88(0x161)]),void 0x0,!0x1,[]),_0x46e147=(0x0,s[_0x9d0a88(0x1d8)])((0x0,u['useMemo'])(()=>_0x34b46b?(0x0,i['defer'])(()=>(0x0,i[_0x9d0a88(0x1a3)])(_0xcfc048[_0x9d0a88(0x144)](_0x34b46b['getUnitId']()))):(0x0,i['of'])(null),[_0x34b46b,_0xcfc048]),null),_0x5e286b=(0x0,s[_0x9d0a88(0x1d8)])(_0x46e147?()=>_0x46e147['status$']:null,'idle',!0x1,[_0x46e147]);return _0x46e147?(0x0,d[_0x9d0a88(0x136)])(c['Dropdown'],{'align':_0x9d0a88(0x145),'disabled':_0x5e286b===_0x9d0a88(0x15c),'className':_0x9d0a88(0x1d0),'overlay':(0x0,d[_0x9d0a88(0x136)])(D,{'status':_0x5e286b,'coordinator':_0x46e147}),'children':(0x0,d[_0x9d0a88(0x136)])(_0x9d0a88(0x146),{'className':(0x0,c['clsx'])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x5e286b===_0x9d0a88(0x15c),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5e286b!=='offline'}),'type':'button','children':(0x0,d[_0x9d0a88(0x136)])(l[_0x9d0a88(0x14f)],{})})}):null;}function D(_0x311ece){const _0x4353a8=_0x4ea661;let {status:_0x4eedc6,coordinator:_0x42bb00}=_0x311ece;switch(_0x4eedc6){case'idle':return(0x0,d[_0x4353a8(0x136)])(O,{'coordinator':_0x42bb00});case _0x4353a8(0x1b3):return(0x0,d[_0x4353a8(0x136)])(k,{'coordinator':_0x42bb00});case _0x4353a8(0x14e):return(0x0,d[_0x4353a8(0x136)])(A,{'coordinator':_0x42bb00});case _0x4353a8(0x15c):return(0x0,d[_0x4353a8(0x136)])(M,{});case _0x4353a8(0x19f):return(0x0,d[_0x4353a8(0x136)])(j,{'coordinator':_0x42bb00});default:return null;}}function _0x5ee3(_0x41e8d6,_0x337f73){_0x41e8d6=_0x41e8d6-0x129;const _0x1ac14c=_0x1ac1();let _0x5ee3b7=_0x1ac14c[_0x41e8d6];return _0x5ee3b7;}function O(_0x500619){const _0x4f33d8=_0x4ea661;let {coordinator:_0x4e8a4a}=_0x500619;return(0x0,d['jsxs'])(d['Fragment'],{'children':[(0x0,d[_0x4f33d8(0x136)])(_0x4f33d8(0x154),{'className':_0x4f33d8(0x142),'children':_0x4f33d8(0x19c)}),(0x0,d[_0x4f33d8(0x136)])(c[_0x4f33d8(0x1c4)],{'onClick':()=>_0x4e8a4a[_0x4f33d8(0x1c7)](),'children':_0x4f33d8(0x1c2)})]});}function _0x1ac1(){const _0x1e6c50=['takeUntil','subscribe','defineProperty','following','registerSharedOperation','memberID','sessionStatus$','34227wzbVsm','_unitID','_injector','parseProtocolChangeset','_mountLiveShare','presenter','_startLiveShareCoordinator','status$','Inject','1812628UISVBq','map','Start','Subject','Button','Start\x20following','SAME_OPERATION_SHARE_INTERVAL','tryStartPresenting','131360JnwViy','onStarting','_commandDisposable','_config','CollaborationSessionService','prototype','DisposableCollection','7xpsppg','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','subject','_handleOperation','stopFollowing','_uiPartsService','UNIVER_LIVE_SHARE_PLUGIN','DependentOn','next','useObservable','LIVESHARE_TERMINATE','merge','default','touchDependencies','getOwnPropertyDescriptor','values','data','_presenter','onCommandExecuted','74882phOAqB','19hcbJPi','getMemberID','stringify','jsx','find','function','CommandType','includes','473HybVhm','decorate','disposeWithMe','get','475608fKiIHR','requireSession','params','univer-mb-3\x20univer-w-full\x20univer-text-sm','_configService','getLiveShareCoordinator','end','button','_collabSession','_beIdle','object','You\x27re\x20presenting\x20the\x20document','LIVESHARE_REQUEST_HOST','_reporters','packageName','not-following','LiveShareIcon','dispose$','symbol','pipe','throttleTime','div','You\x27re\x20not\x20following\x20the\x20presenter','You\x27are\x20offline.','getTypeOfUnitDisposed$','toDisposable','LIVESHARE_OPERATION','constructor','set','offline','has','_startFollowing','forEach','IUIPartsService','UNIVER_SHEET','idle','shouldShareOperation','_sharedOperations','unit','Module','OFFLINE','_handleNewChangeSets','_stopFollowing','_init','call','5PfgLYa','_startPresenting','_univerInstanceService','unsubscribe','_status$','_handleOffline','useDependency','string','text','complete','3116274xpMHUX','init','registerInitialStateReporter','parse','dispose','_fetchOperations','_liveShareService','getInitialStates','SessionStatus','send','sheet','executeCommand','toPrimitive','InsertSheetMutation','HEADER_MENU','IConfigService','SetWorksheetActiveOperation','LIVESHARE_NEW_HOST','_handleNewHost','registerComponent','UNIVER_UNKNOWN','_collabSessionService','CollaborationEvent','Injector','pluginName','getUnitId','_commandService','UniverLiveSharePlugin','_handleTerminate','add','SetScrollOperation','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_entities','length','jsxs','UniverInstanceType','reverse','Disposable','Present\x20this\x20document','1.0.0-alpha.7','10527768viCJgz','presenting','Plugin','FOLLOWING','RxDisposable','from','clear','_stopPresenting','startFollowing','_handleOnline','getTypeOfUnitAdded$','delete','onRendered','event$','1752oojSDc','Fragment','NEW_CHANGESETS','_status'];_0x1ac1=function(){return _0x1e6c50;};return _0x1ac1();}function k(_0x1e19ba){const _0x148728=_0x4ea661;let {coordinator:_0x214c47}=_0x1e19ba;return(0x0,d[_0x148728(0x198)])(d['Fragment'],{'children':[(0x0,d[_0x148728(0x136)])(_0x148728(0x154),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,d[_0x148728(0x136)])(c[_0x148728(0x1c4)],{'onClick':()=>_0x214c47[_0x148728(0x1d3)](),'children':'Stop\x20following'})]});}function A(_0x4d4207){const _0x5c8041=_0x4ea661;let {coordinator:_0x3c615d}=_0x4d4207;return(0x0,d['jsxs'])(d['Fragment'],{'children':[(0x0,d[_0x5c8041(0x136)])(_0x5c8041(0x154),{'className':_0x5c8041(0x142),'children':_0x5c8041(0x155)}),(0x0,d[_0x5c8041(0x136)])(c[_0x5c8041(0x1c4)],{'variant':_0x5c8041(0x174),'onClick':()=>_0x3c615d[_0x5c8041(0x1a6)](),'children':_0x5c8041(0x1c5)})]});}function j(_0x234671){const _0x345591=_0x4ea661;let {coordinator:_0x4ea9b4}=_0x234671;return(0x0,d[_0x345591(0x198)])(d[_0x345591(0x1ad)],{'children':[(0x0,d['jsx'])(_0x345591(0x154),{'className':_0x345591(0x142),'children':_0x345591(0x14a)}),(0x0,d[_0x345591(0x136)])(c[_0x345591(0x1c4)],{'variant':_0x345591(0x12b),'onClick':()=>_0x4ea9b4['stopPresenting'](),'children':'Stop\x20presenting'})]});}function M(){const _0x1ac897=_0x4ea661;return(0x0,d[_0x1ac897(0x136)])(d[_0x1ac897(0x1ad)],{'children':_0x1ac897(0x156)});}let N=class extends n['Disposable']{constructor(_0x39bad6,_0x1a08b4){const _0x545f88=_0x4ea661;super(),this[_0x545f88(0x1b9)]=_0x39bad6,this[_0x545f88(0x1d4)]=_0x1a08b4,this[_0x545f88(0x1bb)]();}[_0x4ea661(0x1bb)](){const _0x409774=_0x4ea661;this['disposeWithMe'](this['_uiPartsService'][_0x409774(0x189)](s['BuiltInUIPart'][_0x409774(0x184)],()=>(0x0,s['connectInjector'])(E,this[_0x409774(0x1b9)])));}};N=v([_(0x0,(0x0,n['Inject'])(n[_0x4ea661(0x18d)])),_(0x1,s[_0x4ea661(0x160)])],N);let P=class extends n[_0x4ea661(0x1a0)]{constructor(_0x558130=w,_0x2e0fa3,_0x43a637){const _0x1de31c=_0x4ea661;super(),this['_config']=_0x558130,this['_injector']=_0x2e0fa3,this[_0x1de31c(0x143)]=_0x43a637;let {..._0x3df14f}=(0x0,n[_0x1de31c(0x12a)])({},w,this[_0x1de31c(0x1cb)]);this['_configService']['setConfig']('live-share.config',_0x3df14f);}[_0x4ea661(0x1c9)](){const _0x54f08c=_0x4ea661;(0x0,n['registerDependencies'])(this['_injector'],(0x0,n['mergeOverrideWithDependencies'])([[g],[y],[T],[N]],this[_0x54f08c(0x1cb)]['override'])),(0x0,n[_0x54f08c(0x12c)])(this[_0x54f08c(0x1b9)],[[T]]);}[_0x4ea661(0x1aa)](){(0x0,n['touchDependencies'])(this['_injector'],[[N]]);}};h(P,'type',n['UniverInstanceType'][_0x4ea661(0x18a)]),h(P,_0x4ea661(0x18e),_0x4ea661(0x1d5)),h(P,_0x4ea661(0x14d),S),h(P,'version',C),P=v([(0x0,n[_0x4ea661(0x1d6)])(t['UniverCollaborationClientPlugin']),_(0x1,(0x0,n[_0x4ea661(0x1bf)])(n[_0x4ea661(0x18d)])),_(0x2,n[_0x4ea661(0x185)])],P),Object[_0x4ea661(0x1b2)](exports,'LiveShareController',{'enumerable':!0x0,'get':function(){return y;}}),exports['LiveShareStatus']=b,Object['defineProperty'](exports,_0x4ea661(0x191),{'enumerable':!0x0,'get':function(){return P;}});
|
|
1
|
+
const _0x5d87a9=_0x22d3;(function(_0x665d81,_0x4d41af){const _0x2bdb02=_0x22d3,_0x5a0136=_0x665d81();while(!![]){try{const _0x3e09aa=parseInt(_0x2bdb02(0x1e9))/0x1+-parseInt(_0x2bdb02(0x17d))/0x2*(parseInt(_0x2bdb02(0x157))/0x3)+-parseInt(_0x2bdb02(0x1a9))/0x4+parseInt(_0x2bdb02(0x1c7))/0x5+-parseInt(_0x2bdb02(0x1fb))/0x6*(parseInt(_0x2bdb02(0x15a))/0x7)+-parseInt(_0x2bdb02(0x1b1))/0x8+parseInt(_0x2bdb02(0x1b2))/0x9;if(_0x3e09aa===_0x4d41af)break;else _0x5a0136['push'](_0x5a0136['shift']());}catch(_0xe17e18){_0x5a0136['push'](_0x5a0136['shift']());}}}(_0xb6f7,0x29ab5),Object[_0x5d87a9(0x1a0)](exports,Symbol[_0x5d87a9(0x1cc)],{'value':'Module'}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs-pro/license'),s=require('@univerjs/sheets-ui'),c=require('@univerjs/ui'),l=require('@univerjs/design'),u=require('@univerjs/icons'),d=require('react'),f=require('react/jsx-runtime');function p(_0x3a0eaf){'@babel/helpers - typeof';const _0x23abf8=_0x5d87a9;return p=typeof Symbol==_0x23abf8(0x1ad)&&typeof Symbol[_0x23abf8(0x1c5)]==_0x23abf8(0x196)?function(_0x436c07){return typeof _0x436c07;}:function(_0x5afb64){const _0xa9c7b0=_0x23abf8;return _0x5afb64&&typeof Symbol==_0xa9c7b0(0x1ad)&&_0x5afb64[_0xa9c7b0(0x159)]===Symbol&&_0x5afb64!==Symbol[_0xa9c7b0(0x162)]?_0xa9c7b0(0x196):typeof _0x5afb64;},p(_0x3a0eaf);}function m(_0x1385e4,_0x4c46c6){const _0x191e61=_0x5d87a9;if(p(_0x1385e4)!=_0x191e61(0x184)||!_0x1385e4)return _0x1385e4;var _0x5865a3=_0x1385e4[Symbol[_0x191e61(0x1c6)]];if(_0x5865a3!==void 0x0){var _0x3757f2=_0x5865a3['call'](_0x1385e4,_0x4c46c6||_0x191e61(0x1ca));if(p(_0x3757f2)!=_0x191e61(0x184))return _0x3757f2;throw TypeError(_0x191e61(0x180));}return(_0x4c46c6===_0x191e61(0x1c9)?String:Number)(_0x1385e4);}function h(_0x3e5495){const _0x171e48=_0x5d87a9;var _0x4d8bc4=m(_0x3e5495,_0x171e48(0x1c9));return p(_0x4d8bc4)=='symbol'?_0x4d8bc4:_0x4d8bc4+'';}function _0xb6f7(){const _0x57951d=['getConfig','Injector','onRendered','stopFollowing','FOLLOWING','NEW_CHANGESETS','registerDependencies','asObservable','DisposableCollection','connectInjector','6rGIHNt','Button','constructor','553vdzdUe','Disposable','includes','not-following','_status','UniverLiveSharePlugin','disposeWithMe','Stop\x20following','prototype','_config','OPERATION','jsx','OFFLINE','UniverInstanceType','clear','_handleTerminate','set','delete','tryStartPresenting','_beIdle','_commandDisposable','UNIVER_SHEET','pluginName','getMemberID','stopPresenting','SetScrollOperation','button','find','get','presenter','add','IUniverInstanceService','CollaborationEvent','useMemo','_handleNewHost','159914pCUIdt','version','status$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','init','setConfig','shouldShareOperation','object','You\x27re\x20presenting\x20the\x20document','univer-mb-3\x20univer-w-full\x20univer-text-sm','_presenter','UNIVER_UNKNOWN','parseProtocolChangeset','next','getValue','UniverCollaborationClientPlugin','_handleOnline','stringify','data','CommandType','getLiveShareCoordinator','reverse','unitId','_collabSessionService','takeUntil','symbol','You\x27are\x20offline.','offline','getLiveShareCoordinatorSync','unit','idle','LIVESHARE_NEW_HOST','RxDisposable','from','getStatus','defineProperty','decorate','CollaborationSessionService','ICommandService','_entities','Start\x20following','sheet','ONLINE','registerSharedOperation','483368kzPyBs','_commandService','Stop\x20presenting','Subject','function','SetWorksheetActiveOperation','end','You\x27re\x20not\x20following\x20the\x20presenter','907328uDagjr','2178639brORgO','send','has','_liveShareService','LiveShareStatus','forEach','IConfigService','startFollowing','1.0.0-beta.0','getUnitId','type','toDisposable','Dropdown','params','length','requireSession','live-share.config','executeCommand','defer','iterator','toPrimitive','1118765XGbZsc','text','string','default','_univerInstanceService','toStringTag','operations','LIVESHARE_REQUEST_HOST','_handleNewChangeSets','override','mergeOverrideWithDependencies','LIVESHARE_FETCH_OPERATIONS','_sharedOperations','_mountLiveShare','complete','DependentOn','_collabSession','subscribe','presenting','_handleOperation','getTypeOfUnitDisposed$','subject','clsx','dispose','HEADER_MENU','_startPresenting','Fragment','BehaviorSubject','_fetchOperations','_injector','_configService','Inject','useDependency','jsxs','289494fdhmjW','packageName','memberID','map','pipe','@univerjs-pro/live-share','UNIVER_LIVE_SHARE_PLUGIN','_startFollowing','parse','touchDependencies','getTypeOfUnitAdded$','div','_reporters','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','registerComponent','_handleOffline','_uiPartsService','_stopFollowing','14466fwBlEu','_startLiveShareCoordinator','_status$','sessionStatus$','following','_unitID','_init','dispose$','IUIPartsService','SAME_OPERATION_SHARE_INTERVAL','_stopPresenting','SessionStatus','LiveShareController','You\x27re\x20following\x20the\x20presenter','useObservable'];_0xb6f7=function(){return _0x57951d;};return _0xb6f7();}function g(_0x39aaa3,_0x5531c4,_0x141867){return(_0x5531c4=h(_0x5531c4))in _0x39aaa3?Object['defineProperty'](_0x39aaa3,_0x5531c4,{'value':_0x141867,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39aaa3[_0x5531c4]=_0x141867,_0x39aaa3;}var _=class extends n['Disposable']{constructor(..._0x5328fb){const _0x1c5433=_0x5d87a9;super(..._0x5328fb),g(this,_0x1c5433(0x1d3),new Set()),g(this,'_reporters',new Set());}[_0x5d87a9(0x1a8)](_0x2b4bc5){const _0x2c42ae=_0x5d87a9;return this['_sharedOperations'][_0x2c42ae(0x178)](_0x2b4bc5),(0x0,n['toDisposable'])(()=>this[_0x2c42ae(0x1d3)]['delete'](_0x2b4bc5));}['registerInitialStateReporter'](_0x4d7692){const _0x170d78=_0x5d87a9;return this[_0x170d78(0x1f5)]['add'](_0x4d7692),(0x0,n[_0x170d78(0x1bd)])(()=>this[_0x170d78(0x1f5)][_0x170d78(0x16b)](_0x4d7692));}[_0x5d87a9(0x183)](_0x332e02){const _0x10693c=_0x5d87a9;return this[_0x10693c(0x1d3)][_0x10693c(0x1b4)](_0x332e02);}['getInitialStates'](_0x18afba){const _0x137efe=_0x5d87a9;return Array[_0x137efe(0x19e)](this[_0x137efe(0x1f5)])[_0x137efe(0x1ec)](_0x352434=>_0x352434(_0x18afba));}};function v(_0x58b9f0,_0x363ccc){return function(_0x24fa94,_0x2c25a5){_0x363ccc(_0x24fa94,_0x2c25a5,_0x58b9f0);};}function y(_0x18571c,_0x2f4b47,_0x13e139,_0x284948){const _0x450196=_0x5d87a9;var _0x4dd504=arguments[_0x450196(0x1c0)],_0x41ffdd=_0x4dd504<0x3?_0x2f4b47:_0x284948===null?_0x284948=Object['getOwnPropertyDescriptor'](_0x2f4b47,_0x13e139):_0x284948,_0x36ff9f;if(typeof Reflect==_0x450196(0x184)&&typeof Reflect[_0x450196(0x1a1)]==_0x450196(0x1ad))_0x41ffdd=Reflect[_0x450196(0x1a1)](_0x18571c,_0x2f4b47,_0x13e139,_0x284948);else{for(var _0x1f3a65=_0x18571c['length']-0x1;_0x1f3a65>=0x0;_0x1f3a65--)(_0x36ff9f=_0x18571c[_0x1f3a65])&&(_0x41ffdd=(_0x4dd504<0x3?_0x36ff9f(_0x41ffdd):_0x4dd504>0x3?_0x36ff9f(_0x2f4b47,_0x13e139,_0x41ffdd):_0x36ff9f(_0x2f4b47,_0x13e139))||_0x41ffdd);}return _0x4dd504>0x3&&_0x41ffdd&&Object['defineProperty'](_0x2f4b47,_0x13e139,_0x41ffdd),_0x41ffdd;}let b=class extends n[_0x5d87a9(0x19d)]{constructor(_0x41a4a7,_0x174e49,_0x477451){const _0x442133=_0x5d87a9;super(),this[_0x442133(0x1cb)]=_0x41a4a7,this['_injector']=_0x174e49,this[_0x442133(0x194)]=_0x477451,g(this,_0x442133(0x1a4),new Map()),this[_0x442133(0x144)]();}async[_0x5d87a9(0x191)](_0x970ba){const _0x1c6568=_0x5d87a9;return this[_0x1c6568(0x1a4)][_0x1c6568(0x1b4)](_0x970ba)||await this[_0x1c6568(0x13f)](_0x970ba),this[_0x1c6568(0x1a4)][_0x1c6568(0x176)](_0x970ba);}[_0x5d87a9(0x199)](_0x59ec23){const _0x23ce18=_0x5d87a9;return this[_0x23ce18(0x1a4)][_0x23ce18(0x176)](_0x59ec23)??null;}[_0x5d87a9(0x144)](){const _0x3bc86e=_0x5d87a9;this[_0x3bc86e(0x1cb)][_0x3bc86e(0x1f3)](n['UniverInstanceType'][_0x3bc86e(0x16f)])['pipe']((0x0,a['takeUntil'])(this[_0x3bc86e(0x145)]))[_0x3bc86e(0x1d8)](async _0x5e0dcb=>{const _0xaee928=_0x3bc86e;let _0x49b7fb=_0x5e0dcb[_0xaee928(0x19a)]['getUnitId']();this[_0xaee928(0x1a4)][_0xaee928(0x1b4)](_0x49b7fb)||this['_startLiveShareCoordinator'](_0x49b7fb);}),this[_0x3bc86e(0x1cb)][_0x3bc86e(0x1db)](n[_0x3bc86e(0x167)][_0x3bc86e(0x16f)])[_0x3bc86e(0x1ed)]((0x0,a[_0x3bc86e(0x195)])(this[_0x3bc86e(0x145)]))[_0x3bc86e(0x1d8)](_0x26d879=>{const _0x308ade=_0x3bc86e;let _0x1daf96=_0x26d879['getUnitId'](),_0x580ee8=this['_entities'][_0x308ade(0x176)](_0x1daf96);_0x580ee8==null||_0x580ee8['dispose']();});}async['_startLiveShareCoordinator'](_0x1cbae7){const _0xa314cf=_0x5d87a9;let _0x25d899=await this[_0xa314cf(0x194)][_0xa314cf(0x1c1)](_0x1cbae7),_0x1a825e=this['_injector']['createInstance'](S,_0x1cbae7,_0x25d899);return _0x1a825e[_0xa314cf(0x181)](),this[_0xa314cf(0x1a4)]['set'](_0x1cbae7,_0x1a825e),_0x1a825e;}};b=y([v(0x0,n['IUniverInstanceService']),v(0x1,(0x0,n[_0x5d87a9(0x1e6)])(n[_0x5d87a9(0x14e)])),v(0x2,(0x0,n[_0x5d87a9(0x1e6)])(t[_0x5d87a9(0x1a2)]))],b);let x=function(_0x2f85e5){const _0x3a5656=_0x5d87a9;return _0x2f85e5[_0x3a5656(0x166)]=_0x3a5656(0x198),_0x2f85e5['IDLE']=_0x3a5656(0x19b),_0x2f85e5[_0x3a5656(0x151)]=_0x3a5656(0x142),_0x2f85e5['NOT_FOLLOWING']=_0x3a5656(0x15d),_0x2f85e5['PRESENTING']='presenting',_0x2f85e5;}({}),S=class extends n['RxDisposable']{get['_status'](){const _0x391dde=_0x5d87a9;return this[_0x391dde(0x140)][_0x391dde(0x18b)]();}constructor(_0x5dcce9,_0x46fce6,_0x5af3fb,_0x48f92f,_0x5ab4cc){const _0x21c086=_0x5d87a9;super(),this[_0x21c086(0x143)]=_0x5dcce9,this[_0x21c086(0x1d7)]=_0x46fce6,this[_0x21c086(0x1e5)]=_0x5af3fb,this[_0x21c086(0x1b5)]=_0x48f92f,this[_0x21c086(0x1aa)]=_0x5ab4cc,g(this,_0x21c086(0x140),new i[(_0x21c086(0x1e2))](_0x21c086(0x19b))),g(this,_0x21c086(0x17f),this[_0x21c086(0x140)][_0x21c086(0x154)]()),g(this,'_init',!0x1),g(this,_0x21c086(0x16e),null),g(this,_0x21c086(0x187),null);}[_0x5d87a9(0x1de)](){const _0x1802d0=_0x5d87a9;var _0x1669ec;(_0x1669ec=this[_0x1802d0(0x16e)])==null||_0x1669ec[_0x1802d0(0x1de)](),this[_0x1802d0(0x140)][_0x1802d0(0x18a)](_0x1802d0(0x19b)),this[_0x1802d0(0x140)][_0x1802d0(0x1d5)]();}[_0x5d87a9(0x19f)](){const _0x3a03c5=_0x5d87a9;return this[_0x3a03c5(0x15e)];}[_0x5d87a9(0x181)](){const _0x40e2bc=_0x5d87a9;this[_0x40e2bc(0x144)]||(this[_0x40e2bc(0x144)]=!0x0,this['_collabSession'][_0x40e2bc(0x141)][_0x40e2bc(0x1ed)]((0x0,a[_0x40e2bc(0x195)])(this[_0x40e2bc(0x145)]))[_0x40e2bc(0x1d8)](_0x1435c3=>{const _0x5db1b0=_0x40e2bc;switch(_0x1435c3){case t[_0x5db1b0(0x149)][_0x5db1b0(0x166)]:this[_0x5db1b0(0x1f8)]();break;case t['SessionStatus'][_0x5db1b0(0x1a7)]:this[_0x5db1b0(0x18d)]();break;default:}}),this[_0x40e2bc(0x1d7)]['event$'][_0x40e2bc(0x1ed)]((0x0,a[_0x40e2bc(0x195)])(this[_0x40e2bc(0x145)]))[_0x40e2bc(0x1d8)](_0x29218a=>{const _0x3f110d=_0x40e2bc;let {eventID:_0x2b1d74}=_0x29218a;switch(_0x2b1d74){case e[_0x3f110d(0x17a)][_0x3f110d(0x19c)]:this[_0x3f110d(0x17c)](_0x29218a);break;case e['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x3f110d(0x1da)](_0x29218a);break;case e['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x3f110d(0x169)]();break;case e['CollaborationEvent'][_0x3f110d(0x152)]:this[_0x3f110d(0x1cf)](_0x29218a);break;default:}}));}[_0x5d87a9(0x16c)](){const _0x1064bd=_0x5d87a9;this['_collabSession'][_0x1064bd(0x1b3)]({'eventID':e[_0x1064bd(0x17a)][_0x1064bd(0x1ce)],'data':{'unitID':this['_unitID'],'userID':this[_0x1064bd(0x1d7)][_0x1064bd(0x171)]()}},this[_0x1064bd(0x143)]);}[_0x5d87a9(0x172)](){const _0x7e2373=_0x5d87a9;this[_0x7e2373(0x15e)]==='presenting'&&(this[_0x7e2373(0x140)][_0x7e2373(0x18a)]('idle'),this[_0x7e2373(0x1d7)][_0x7e2373(0x1b3)]({'eventID':e[_0x7e2373(0x17a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x7e2373(0x143)]}},this[_0x7e2373(0x143)]));}['startFollowing'](){const _0x24c09b=_0x5d87a9;this[_0x24c09b(0x15e)]===_0x24c09b(0x15d)&&(this[_0x24c09b(0x140)][_0x24c09b(0x18a)](_0x24c09b(0x142)),this[_0x24c09b(0x1f0)]());}[_0x5d87a9(0x150)](){const _0x31fb03=_0x5d87a9;this[_0x31fb03(0x15e)]==='following'&&this[_0x31fb03(0x1fa)]();}['_handleNewHost'](_0x45f08a){const _0x11c9c0=_0x5d87a9;let {presenter:_0x1e3280}=_0x45f08a[_0x11c9c0(0x18f)],_0x4633f=this[_0x11c9c0(0x1d7)][_0x11c9c0(0x171)]();this['_presenter']=_0x1e3280,_0x1e3280===_0x4633f?(this[_0x11c9c0(0x1fa)](),this[_0x11c9c0(0x1e0)]()):this[_0x11c9c0(0x15e)]!==_0x11c9c0(0x15d)&&(this['_stopPresenting'](),this[_0x11c9c0(0x1f0)]());}[_0x5d87a9(0x1e3)](){const _0x44da6a=_0x5d87a9;let _0x8021c0={'eventID':e['CollaborationEvent'][_0x44da6a(0x1d2)]};this[_0x44da6a(0x1d7)][_0x44da6a(0x1b3)](_0x8021c0,this[_0x44da6a(0x143)]);}[_0x5d87a9(0x169)](){const _0xefc0a4=_0x5d87a9;this['_presenter']=null,this[_0xefc0a4(0x15e)]!==_0xefc0a4(0x1d9)&&this[_0xefc0a4(0x16d)]();}[_0x5d87a9(0x1cf)](_0x578c0d){const _0x43275a=_0x5d87a9;if(this[_0x43275a(0x15e)]==='following'&&this['_presenter']===_0x578c0d['data'][_0x43275a(0x1eb)]){let _0x1e9ead=(0x0,e[_0x43275a(0x189)])(_0x578c0d[_0x43275a(0x18f)])['mutations'][_0x43275a(0x192)]()[_0x43275a(0x175)](_0x2cc745=>_0x2cc745['id']===r['InsertSheetMutation']['id']);if(_0x1e9ead){let _0x1f3781=_0x1e9ead[_0x43275a(0x1bf)][_0x43275a(0x193)],_0x24e498=_0x1e9ead[_0x43275a(0x1bf)][_0x43275a(0x1a6)]['id'];setTimeout(()=>{const _0x5222d7=_0x43275a;this[_0x5222d7(0x1aa)][_0x5222d7(0x1c3)](r[_0x5222d7(0x1ae)]['id'],{'unitId':_0x1f3781,'subUnitId':_0x24e498},{'fromCollab':!0x0});});}}}[_0x5d87a9(0x1e0)](){const _0x31c2b9=_0x5d87a9;var _0x25e0b5;(_0x25e0b5=this[_0x31c2b9(0x16e)])==null||_0x25e0b5[_0x31c2b9(0x1de)](),this[_0x31c2b9(0x140)][_0x31c2b9(0x18a)](_0x31c2b9(0x1d9));let _0x2d0e20=new Map(),_0x3dcd0f=this[_0x31c2b9(0x16e)]=new n[(_0x31c2b9(0x155))]();_0x3dcd0f[_0x31c2b9(0x178)]((0x0,n[_0x31c2b9(0x1bd)])(()=>{const _0xce414c=_0x31c2b9;_0x2d0e20['forEach'](({subject:_0x463f3d,subscription:_0x29fc78})=>{_0x29fc78['unsubscribe'](),_0x463f3d['complete']();}),_0x2d0e20[_0xce414c(0x168)]();})),_0x3dcd0f[_0x31c2b9(0x178)](this[_0x31c2b9(0x1aa)]['onCommandExecuted'](_0x290e76=>{const _0x378ab8=_0x31c2b9;if(_0x290e76[_0x378ab8(0x1bc)]!==n[_0x378ab8(0x190)][_0x378ab8(0x164)]||!this['_liveShareService'][_0x378ab8(0x183)](_0x290e76['id']))return;let {id:_0x4da12f}=_0x290e76,_0x5b6d42;if(_0x2d0e20[_0x378ab8(0x1b4)](_0x4da12f))_0x5b6d42=_0x2d0e20['get'](_0x4da12f)[_0x378ab8(0x1dc)];else{_0x5b6d42=new i[(_0x378ab8(0x1ac))]();let _0x3b1889=_0x5b6d42['pipe']((0x0,a['throttleTime'])(this[_0x378ab8(0x1e5)][_0x378ab8(0x14d)](_0x378ab8(0x147))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x378ab8(0x1d8)](_0x4b703e=>{const _0x31073e=_0x378ab8;this[_0x31073e(0x1d7)][_0x31073e(0x1b3)]({'eventID':e[_0x31073e(0x17a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x31073e(0x143)],'operations':{[_0x4b703e['id']]:{'id':_0x4b703e['id'],'params':JSON[_0x31073e(0x18e)](_0x4b703e[_0x31073e(0x1bf)])}}}},this[_0x31073e(0x143)]);});_0x2d0e20[_0x378ab8(0x16a)](_0x4da12f,{'subject':_0x5b6d42,'subscription':_0x3b1889});}_0x5b6d42[_0x378ab8(0x18a)](_0x290e76);})),this[_0x31c2b9(0x1b5)]['getInitialStates'](this[_0x31c2b9(0x143)])[_0x31c2b9(0x1b7)](_0xcf3c05=>this[_0x31c2b9(0x1d7)]['send']({'eventID':e['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0xcf3c05['id']]:{'id':_0xcf3c05['id'],'params':JSON[_0x31c2b9(0x18e)](_0xcf3c05[_0x31c2b9(0x1bf)])}}}},this[_0x31c2b9(0x143)]));}[_0x5d87a9(0x148)](){const _0x550fbd=_0x5d87a9;var _0x3a54f3;this[_0x550fbd(0x140)][_0x550fbd(0x18a)](_0x550fbd(0x19b)),(_0x3a54f3=this[_0x550fbd(0x16e)])==null||_0x3a54f3['dispose'](),this[_0x550fbd(0x16e)]=null;}[_0x5d87a9(0x1f0)](){const _0x1f9e7d=_0x5d87a9;var _0x1d9dca;(_0x1d9dca=this['_commandDisposable'])==null||_0x1d9dca[_0x1f9e7d(0x1de)](),this[_0x1f9e7d(0x140)][_0x1f9e7d(0x18a)](_0x1f9e7d(0x142));}[_0x5d87a9(0x16d)](){const _0x43a6d0=_0x5d87a9;var _0xabed67;this[_0x43a6d0(0x140)][_0x43a6d0(0x18a)]('idle'),(_0xabed67=this[_0x43a6d0(0x16e)])==null||_0xabed67[_0x43a6d0(0x1de)](),this['_commandDisposable']=null;}[_0x5d87a9(0x1fa)](){const _0x3cdbb4=_0x5d87a9;var _0x1c4d96;this[_0x3cdbb4(0x140)][_0x3cdbb4(0x18a)](_0x3cdbb4(0x15d)),(_0x1c4d96=this[_0x3cdbb4(0x16e)])==null||_0x1c4d96[_0x3cdbb4(0x1de)]();}['_handleOperation'](_0x244127){const _0xcc6398=_0x5d87a9;if([_0xcc6398(0x1d9),_0xcc6398(0x15d),_0xcc6398(0x198)][_0xcc6398(0x15c)](this['_status'])||!_0x244127[_0xcc6398(0x18f)][_0xcc6398(0x177)]||_0x244127[_0xcc6398(0x18f)][_0xcc6398(0x177)]===this[_0xcc6398(0x1d7)]['getMemberID']())return;this[_0xcc6398(0x15e)]===_0xcc6398(0x19b)&&this[_0xcc6398(0x1f0)]();let _0x8c597b=_0x244127[_0xcc6398(0x18f)][_0xcc6398(0x1cd)];Object['values'](_0x8c597b)[_0xcc6398(0x1b7)](_0x5b8a17=>{const _0x3197b7=_0xcc6398;this[_0x3197b7(0x1aa)]['executeCommand'](_0x5b8a17['id'],_0x5b8a17['params']?JSON[_0x3197b7(0x1f1)](_0x5b8a17['params']):null,{'fromCollab':!0x0});});}[_0x5d87a9(0x1f8)](){const _0x4a287c=_0x5d87a9;var _0x2a2770;this[_0x4a287c(0x140)][_0x4a287c(0x18a)]('offline'),(_0x2a2770=this[_0x4a287c(0x16e)])==null||_0x2a2770[_0x4a287c(0x1de)]();}['_handleOnline'](){const _0x5efe63=_0x5d87a9;this[_0x5efe63(0x140)][_0x5efe63(0x18a)](_0x5efe63(0x19b)),this[_0x5efe63(0x1e3)]();}};S=y([v(0x2,n[_0x5d87a9(0x1b8)]),v(0x3,(0x0,n[_0x5d87a9(0x1e6)])(_)),v(0x4,n[_0x5d87a9(0x1a3)])],S);var C=_0x5d87a9(0x1ee),w=_0x5d87a9(0x1ba);const T={};let E=class extends n['Disposable']{constructor(_0x464e3d){const _0x44b6f6=_0x5d87a9;super(),this['_liveShareService']=_0x464e3d,this[_0x44b6f6(0x144)]();}[_0x5d87a9(0x144)](){const _0x14d53b=_0x5d87a9;[s['SetZoomRatioOperation']['id'],s[_0x14d53b(0x173)]['id'],r[_0x14d53b(0x1ae)]['id']][_0x14d53b(0x1b7)](_0x30d449=>{const _0x27be01=_0x14d53b;this[_0x27be01(0x160)](this[_0x27be01(0x1b5)][_0x27be01(0x1a8)](_0x30d449));});}};E=y([v(0x0,(0x0,n[_0x5d87a9(0x1e6)])(_))],E);function _0x22d3(_0x266c83,_0x47ec98){_0x266c83=_0x266c83-0x13f;const _0xb6f764=_0xb6f7();let _0x22d3a0=_0xb6f764[_0x266c83];return _0x22d3a0;}function D(){const _0xa90990=_0x5d87a9;let _0x59ca53=(0x0,c[_0xa90990(0x1e7)])(b),_0x5eeb3a=(0x0,c[_0xa90990(0x1e7)])(n[_0xa90990(0x179)]),_0x434ab7=(0x0,c[_0xa90990(0x14c)])(()=>_0x5eeb3a['getCurrentTypeOfUnit$'](n[_0xa90990(0x167)][_0xa90990(0x16f)]),void 0x0,!0x1,[]),_0x1613fc=(0x0,c[_0xa90990(0x14c)])((0x0,d[_0xa90990(0x17b)])(()=>_0x434ab7?(0x0,i[_0xa90990(0x1c4)])(()=>(0x0,i[_0xa90990(0x19e)])(_0x59ca53[_0xa90990(0x191)](_0x434ab7[_0xa90990(0x1bb)]()))):(0x0,i['of'])(null),[_0x434ab7,_0x59ca53]),null),_0xe64110=(0x0,c[_0xa90990(0x14c)])(_0x1613fc?()=>_0x1613fc[_0xa90990(0x17f)]:null,_0xa90990(0x19b),!0x1,[_0x1613fc]);return _0x1613fc?(0x0,f[_0xa90990(0x165)])(l[_0xa90990(0x1be)],{'align':_0xa90990(0x1af),'disabled':_0xe64110==='offline','className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':(0x0,f[_0xa90990(0x165)])(O,{'status':_0xe64110,'coordinator':_0x1613fc}),'children':(0x0,f['jsx'])(_0xa90990(0x174),{'className':(0x0,l[_0xa90990(0x1dd)])(_0xa90990(0x1f6),{'univer-cursor-not-allowed':_0xe64110==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xe64110!=='offline'}),'type':_0xa90990(0x174),'children':(0x0,f[_0xa90990(0x165)])(u['LiveShareIcon'],{})})}):null;}function O(_0x492999){const _0x1a2c5e=_0x5d87a9;let {status:_0x22dfbf,coordinator:_0x327675}=_0x492999;switch(_0x22dfbf){case _0x1a2c5e(0x19b):return(0x0,f[_0x1a2c5e(0x165)])(k,{'coordinator':_0x327675});case _0x1a2c5e(0x142):return(0x0,f[_0x1a2c5e(0x165)])(A,{'coordinator':_0x327675});case _0x1a2c5e(0x15d):return(0x0,f['jsx'])(j,{'coordinator':_0x327675});case _0x1a2c5e(0x198):return(0x0,f['jsx'])(N,{});case'presenting':return(0x0,f[_0x1a2c5e(0x165)])(M,{'coordinator':_0x327675});default:return null;}}function k(_0x2bf5aa){const _0x54a3da=_0x5d87a9;let {coordinator:_0x2aab7a}=_0x2bf5aa;return(0x0,f['jsxs'])(f[_0x54a3da(0x1e1)],{'children':[(0x0,f['jsx'])(_0x54a3da(0x1f4),{'className':_0x54a3da(0x186),'children':'Present\x20this\x20document'}),(0x0,f['jsx'])(l[_0x54a3da(0x158)],{'onClick':()=>_0x2aab7a['tryStartPresenting'](),'children':'Start'})]});}function A(_0x65e862){const _0x24b41f=_0x5d87a9;let {coordinator:_0x346444}=_0x65e862;return(0x0,f[_0x24b41f(0x1e8)])(f['Fragment'],{'children':[(0x0,f[_0x24b41f(0x165)])(_0x24b41f(0x1f4),{'className':_0x24b41f(0x186),'children':_0x24b41f(0x14b)}),(0x0,f[_0x24b41f(0x165)])(l[_0x24b41f(0x158)],{'onClick':()=>_0x346444[_0x24b41f(0x150)](),'children':_0x24b41f(0x161)})]});}function j(_0x28ad63){const _0x427800=_0x5d87a9;let {coordinator:_0x5a77d6}=_0x28ad63;return(0x0,f[_0x427800(0x1e8)])(f[_0x427800(0x1e1)],{'children':[(0x0,f[_0x427800(0x165)])(_0x427800(0x1f4),{'className':_0x427800(0x186),'children':_0x427800(0x1b0)}),(0x0,f[_0x427800(0x165)])(l['Button'],{'variant':_0x427800(0x1c8),'onClick':()=>_0x5a77d6[_0x427800(0x1b9)](),'children':_0x427800(0x1a5)})]});}function M(_0x482603){const _0x4f5f37=_0x5d87a9;let {coordinator:_0x1d440a}=_0x482603;return(0x0,f[_0x4f5f37(0x1e8)])(f[_0x4f5f37(0x1e1)],{'children':[(0x0,f[_0x4f5f37(0x165)])(_0x4f5f37(0x1f4),{'className':_0x4f5f37(0x186),'children':_0x4f5f37(0x185)}),(0x0,f[_0x4f5f37(0x165)])(l[_0x4f5f37(0x158)],{'variant':_0x4f5f37(0x1ca),'onClick':()=>_0x1d440a[_0x4f5f37(0x172)](),'children':_0x4f5f37(0x1ab)})]});}function N(){const _0x4ce4d7=_0x5d87a9;return(0x0,f[_0x4ce4d7(0x165)])(f['Fragment'],{'children':_0x4ce4d7(0x197)});}let P=class extends n[_0x5d87a9(0x15b)]{constructor(_0x624cc6,_0x4dec32){const _0x4e6ddb=_0x5d87a9;super(),this[_0x4e6ddb(0x1e4)]=_0x624cc6,this[_0x4e6ddb(0x1f9)]=_0x4dec32,this['_mountLiveShare']();}[_0x5d87a9(0x1d4)](){const _0x1c947c=_0x5d87a9;this[_0x1c947c(0x160)](this[_0x1c947c(0x1f9)][_0x1c947c(0x1f7)](c['BuiltInUIPart'][_0x1c947c(0x1df)],()=>(0x0,c[_0x1c947c(0x156)])(D,this[_0x1c947c(0x1e4)])));}};P=y([v(0x0,(0x0,n['Inject'])(n[_0x5d87a9(0x14e)])),v(0x1,c[_0x5d87a9(0x146)])],P);let F=class extends n['Plugin']{constructor(_0x1a7117=T,_0x411874,_0x2a5d06){const _0x662b5b=_0x5d87a9;super(),this[_0x662b5b(0x163)]=_0x1a7117,this['_injector']=_0x411874,this[_0x662b5b(0x1e5)]=_0x2a5d06;let {..._0x42100d}=(0x0,n['merge'])({},T,this[_0x662b5b(0x163)]);this['_configService'][_0x662b5b(0x182)](_0x662b5b(0x1c2),_0x42100d);}['onStarting'](){const _0x5db605=_0x5d87a9;(0x0,n[_0x5db605(0x153)])(this[_0x5db605(0x1e4)],(0x0,n[_0x5db605(0x1d1)])([[_],[b],[E],[P]],this['_config'][_0x5db605(0x1d0)])),(0x0,n[_0x5db605(0x1f2)])(this[_0x5db605(0x1e4)],[[E]]);}[_0x5d87a9(0x14f)](){const _0x248214=_0x5d87a9;(0x0,n[_0x248214(0x1f2)])(this[_0x248214(0x1e4)],[[P]]);}};g(F,_0x5d87a9(0x1bc),n['UniverInstanceType'][_0x5d87a9(0x188)]),g(F,_0x5d87a9(0x170),_0x5d87a9(0x1ef)),g(F,_0x5d87a9(0x1ea),C),g(F,_0x5d87a9(0x17e),w),F=y([(0x0,n[_0x5d87a9(0x1d6)])(o['UniverLicensePlugin'],t[_0x5d87a9(0x18c)]),v(0x1,(0x0,n[_0x5d87a9(0x1e6)])(n['Injector'])),v(0x2,n['IConfigService'])],F),Object[_0x5d87a9(0x1a0)](exports,_0x5d87a9(0x14a),{'enumerable':!0x0,'get':function(){return b;}}),exports[_0x5d87a9(0x1b6)]=x,Object[_0x5d87a9(0x1a0)](exports,_0x5d87a9(0x15f),{'enumerable':!0x0,'get':function(){return F;}});
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0xd4a3(_0x4e1c86,_0x4fd494){_0x4e1c86=_0x4e1c86-0x15c;const _0x3cec04=_0x3cec();let _0xd4a39e=_0x3cec04[_0x4e1c86];return _0xd4a39e;}const _0x51148e=_0xd4a3;(function(_0x2ca478,_0x4cb6ee){const _0x1f30b1=_0xd4a3,_0x5eea3a=_0x2ca478();while(!![]){try{const _0x4f892d=-parseInt(_0x1f30b1(0x15c))/0x1+-parseInt(_0x1f30b1(0x16e))/0x2*(parseInt(_0x1f30b1(0x16d))/0x3)+-parseInt(_0x1f30b1(0x17c))/0x4+parseInt(_0x1f30b1(0x167))/0x5*(-parseInt(_0x1f30b1(0x164))/0x6)+parseInt(_0x1f30b1(0x17b))/0x7*(-parseInt(_0x1f30b1(0x175))/0x8)+-parseInt(_0x1f30b1(0x17d))/0x9*(-parseInt(_0x1f30b1(0x165))/0xa)+parseInt(_0x1f30b1(0x169))/0xb;if(_0x4f892d===_0x4cb6ee)break;else _0x5eea3a['push'](_0x5eea3a['shift']());}catch(_0x7062d8){_0x5eea3a['push'](_0x5eea3a['shift']());}}}(_0x3cec,0x2c36f));import{LiveShareController as _0x539a72,LiveShareStatus as _0x125f72}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x4fee72,UniverInstanceType as _0x4fc52d}from'@univerjs/core';import{FEnum as _0x4ccc85,FUniver as _0x1da31e}from'@univerjs/core/facade';function o(_0x5cf5ed){'@babel/helpers - typeof';const _0x16c2fc=_0xd4a3;return o=typeof Symbol==_0x16c2fc(0x176)&&typeof Symbol[_0x16c2fc(0x177)]==_0x16c2fc(0x168)?function(_0x5b13d6){return typeof _0x5b13d6;}:function(_0x1b8504){const _0x4a2404=_0x16c2fc;return _0x1b8504&&typeof Symbol==_0x4a2404(0x176)&&_0x1b8504[_0x4a2404(0x161)]===Symbol&&_0x1b8504!==Symbol['prototype']?'symbol':typeof _0x1b8504;},o(_0x5cf5ed);}function s(_0x197109,_0x23fc0b){const _0x548271=_0xd4a3;if(o(_0x197109)!=_0x548271(0x16b)||!_0x197109)return _0x197109;var _0x5e3cae=_0x197109[Symbol[_0x548271(0x179)]];if(_0x5e3cae!==void 0x0){var _0x36ce41=_0x5e3cae[_0x548271(0x163)](_0x197109,_0x23fc0b||_0x548271(0x160));if(o(_0x36ce41)!=_0x548271(0x16b))return _0x36ce41;throw TypeError(_0x548271(0x174));}return(_0x23fc0b==='string'?String:Number)(_0x197109);}function c(_0x4b0b94){const _0x289355=_0xd4a3;var _0x146bdb=s(_0x4b0b94,'string');return o(_0x146bdb)==_0x289355(0x168)?_0x146bdb:_0x146bdb+'';}function l(_0x217751,_0x3910ff,_0x1c7d63){const _0x2ab363=_0xd4a3;return(_0x3910ff=c(_0x3910ff))in _0x217751?Object[_0x2ab363(0x16a)](_0x217751,_0x3910ff,{'value':_0x1c7d63,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x217751[_0x3910ff]=_0x1c7d63,_0x217751;}var u=class extends _0x1da31e{constructor(..._0x592c4a){super(..._0x592c4a),l(this,'_liveShareController',void 0x0);}[_0x51148e(0x16c)](_0x3c181e){const _0x56a95f=_0x51148e;this[_0x56a95f(0x172)]=_0x3c181e['get'](_0x539a72);}['getLiveShareStatus'](){const _0x5a96c5=_0x51148e;let _0x57432a=this[_0x5a96c5(0x178)][_0x5a96c5(0x180)](_0x4fee72)[_0x5a96c5(0x170)](_0x4fc52d[_0x5a96c5(0x17e)]);if(!_0x57432a)throw Error(_0x5a96c5(0x15f));let _0x43118b=_0x57432a[_0x5a96c5(0x15e)](),_0x18af2a=this[_0x5a96c5(0x172)]['getLiveShareCoordinatorSync'](_0x43118b);return(_0x18af2a==null?void 0x0:_0x18af2a['getStatus']())??_0x125f72[_0x5a96c5(0x171)];}['startFollowing'](){const _0x1ca474=_0x51148e;let _0x7dadd6=this[_0x1ca474(0x178)][_0x1ca474(0x180)](_0x4fee72)['getCurrentUnitOfType'](_0x4fc52d[_0x1ca474(0x17e)]);if(!_0x7dadd6)throw Error('No\x20active\x20workbook\x20found.');let _0x7757bd=_0x7dadd6[_0x1ca474(0x15e)](),_0x43ac26=this['_liveShareController'][_0x1ca474(0x162)](_0x7757bd);if(!_0x43ac26)throw Error(_0x1ca474(0x17f));_0x43ac26['startFollowing']();}[_0x51148e(0x166)](){const _0x1b40a0=_0x51148e;let _0xd0ebcc=this[_0x1b40a0(0x178)][_0x1b40a0(0x180)](_0x4fee72)[_0x1b40a0(0x170)](_0x4fc52d[_0x1b40a0(0x17e)]);if(!_0xd0ebcc)throw Error('No\x20active\x20workbook\x20found.');let _0x413187=_0xd0ebcc[_0x1b40a0(0x15e)](),_0x5d20f7=this[_0x1b40a0(0x172)]['getLiveShareCoordinatorSync'](_0x413187);if(!_0x5d20f7)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5d20f7[_0x1b40a0(0x166)]();}[_0x51148e(0x17a)](){const _0x3eb82c=_0x51148e;let _0x214f9b=this[_0x3eb82c(0x178)]['get'](_0x4fee72)['getCurrentUnitOfType'](_0x4fc52d[_0x3eb82c(0x17e)]);if(!_0x214f9b)throw Error(_0x3eb82c(0x15f));let _0x49d350=_0x214f9b[_0x3eb82c(0x15e)](),_0x54aca3=this[_0x3eb82c(0x172)][_0x3eb82c(0x162)](_0x49d350);if(!_0x54aca3)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x54aca3[_0x3eb82c(0x173)]();}[_0x51148e(0x15d)](){const _0x1ebd7d=_0x51148e;let _0x245298=this[_0x1ebd7d(0x178)][_0x1ebd7d(0x180)](_0x4fee72)[_0x1ebd7d(0x170)](_0x4fc52d[_0x1ebd7d(0x17e)]);if(!_0x245298)throw Error(_0x1ebd7d(0x15f));let _0x1db68b=_0x245298[_0x1ebd7d(0x15e)](),_0x498815=this[_0x1ebd7d(0x172)][_0x1ebd7d(0x162)](_0x1db68b);if(!_0x498815)throw Error(_0x1ebd7d(0x17f));_0x498815[_0x1ebd7d(0x15d)]();}};function _0x3cec(){const _0x278e2d=['91tnNKBV','1238952ZFMTxC','2075130MzhNEV','UNIVER_SHEET','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','get','341243qjNsyl','stopPresenting','getUnitId','No\x20active\x20workbook\x20found.','default','constructor','getLiveShareCoordinatorSync','call','28590FuHuNd','10MPoNaS','stopFollowing','5PYYAAS','symbol','11272767TvZgqW','defineProperty','object','_initialize','3laRSsz','617648oYwilT','extend','getCurrentUnitOfType','IDLE','_liveShareController','tryStartPresenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','67504OJGhmd','function','iterator','_injector','toPrimitive','startPresenting'];_0x3cec=function(){return _0x278e2d;};return _0x3cec();}_0x1da31e[_0x51148e(0x16f)](u);var d=class extends _0x4ccc85{get['LiveShareStatusEnum'](){return _0x125f72;}};_0x4ccc85[_0x51148e(0x16f)](d);export{};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xcd3c43=_0x29fa;(function(_0x40ac36,_0x1da1a9){const _0x5b52eb=_0x29fa,_0x1bba4d=_0x40ac36();while(!![]){try{const _0x19c2cc=parseInt(_0x5b52eb(0x145))/0x1+-parseInt(_0x5b52eb(0x150))/0x2+-parseInt(_0x5b52eb(0x132))/0x3*(parseInt(_0x5b52eb(0x17c))/0x4)+parseInt(_0x5b52eb(0x102))/0x5+parseInt(_0x5b52eb(0x11b))/0x6+parseInt(_0x5b52eb(0x138))/0x7+-parseInt(_0x5b52eb(0x175))/0x8;if(_0x19c2cc===_0x1da1a9)break;else _0x1bba4d['push'](_0x1bba4d['shift']());}catch(_0x151428){_0x1bba4d['push'](_0x1bba4d['shift']());}}}(_0x4350,0x4c64f));import{CollaborationEvent as _0x3756a6,parseProtocolChangeset as _0x540c5a}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x598ce3,SessionStatus as _0x4d69f8,UniverCollaborationClientPlugin as _0x337bb8}from'@univerjs-pro/collaboration-client';import{CommandType as _0x370a98,DependentOn as _0x3f835d,Disposable as _0x3d4065,DisposableCollection as _0x1d1071,ICommandService as _0x2aa954,IConfigService as _0x13ab7e,IUniverInstanceService as _0x5ab737,Inject as _0x130c38,Injector as _0x189051,Plugin as _0x5f36ae,RxDisposable as _0x1a82c3,UniverInstanceType as _0x3f510f,merge as _0x3df356,mergeOverrideWithDependencies as _0x1f0e7f,registerDependencies as _0x24986b,toDisposable as _0xf8e6d4,touchDependencies as _0x1c595d}from'@univerjs/core';import{InsertSheetMutation as _0x39f5b2,SetWorksheetActiveOperation as _0x2b0483}from'@univerjs/sheets';import{BehaviorSubject as _0x23f9ae,Subject as _0x20c350,defer as _0x4386d9,from as _0xa7f912,of as _0x363ac9}from'rxjs';import{takeUntil as _0x223cee,throttleTime as _0x364328}from'rxjs/operators';import{SetScrollOperation as _0x5ae29f,SetZoomRatioOperation as _0x4bc340}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x72c6df,IUIPartsService as _0x3d33a9,connectInjector as _0x33a9bb,useDependency as _0x361196,useObservable as _0x313630}from'@univerjs/ui';import{Button as _0x5b7c15,Dropdown as _0x5f2dd7,clsx as _0x1b4e86}from'@univerjs/design';import{LiveShareIcon as _0xbe8107}from'@univerjs/icons';function _0x29fa(_0x1d5906,_0xf05a33){_0x1d5906=_0x1d5906-0xed;const _0x435077=_0x4350();let _0x29fa14=_0x435077[_0x1d5906];return _0x29fa14;}import{useMemo as _0x1c5235}from'react';import{Fragment as _0x114c30,jsx as _0x76736e,jsxs as _0x46d651}from'react/jsx-runtime';function z(_0x18187e){'@babel/helpers - typeof';const _0x53ca80=_0x29fa;return z=typeof Symbol=='function'&&typeof Symbol[_0x53ca80(0xf4)]==_0x53ca80(0x169)?function(_0x5dd149){return typeof _0x5dd149;}:function(_0x1fa963){const _0x1875b7=_0x53ca80;return _0x1fa963&&typeof Symbol=='function'&&_0x1fa963[_0x1875b7(0xf0)]===Symbol&&_0x1fa963!==Symbol['prototype']?'symbol':typeof _0x1fa963;},z(_0x18187e);}function B(_0x1ad699,_0x3079ff){const _0x30cb2b=_0x29fa;if(z(_0x1ad699)!='object'||!_0x1ad699)return _0x1ad699;var _0x1b3e85=_0x1ad699[Symbol[_0x30cb2b(0x127)]];if(_0x1b3e85!==void 0x0){var _0x17039d=_0x1b3e85[_0x30cb2b(0x119)](_0x1ad699,_0x3079ff||_0x30cb2b(0x105));if(z(_0x17039d)!=_0x30cb2b(0x12c))return _0x17039d;throw TypeError(_0x30cb2b(0x135));}return(_0x3079ff===_0x30cb2b(0x134)?String:Number)(_0x1ad699);}function V(_0x44e39d){const _0x3b0218=_0x29fa;var _0x400d5b=B(_0x44e39d,_0x3b0218(0x134));return z(_0x400d5b)==_0x3b0218(0x169)?_0x400d5b:_0x400d5b+'';}function H(_0x3a9b8b,_0x117851,_0x334320){const _0xed25aa=_0x29fa;return(_0x117851=V(_0x117851))in _0x3a9b8b?Object[_0xed25aa(0xfa)](_0x3a9b8b,_0x117851,{'value':_0x334320,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a9b8b[_0x117851]=_0x334320,_0x3a9b8b;}var U=class extends _0x3d4065{constructor(..._0x50b86d){const _0x26b38b=_0x29fa;super(..._0x50b86d),H(this,_0x26b38b(0x164),new Set()),H(this,_0x26b38b(0x10e),new Set());}[_0xcd3c43(0x159)](_0x4b2f96){const _0x29d865=_0xcd3c43;return this['_sharedOperations']['add'](_0x4b2f96),_0xf8e6d4(()=>this[_0x29d865(0x164)][_0x29d865(0xf3)](_0x4b2f96));}['registerInitialStateReporter'](_0x23ddda){const _0x4fced5=_0xcd3c43;return this[_0x4fced5(0x10e)][_0x4fced5(0x16d)](_0x23ddda),_0xf8e6d4(()=>this[_0x4fced5(0x10e)][_0x4fced5(0xf3)](_0x23ddda));}[_0xcd3c43(0x13b)](_0x152480){const _0x2a710b=_0xcd3c43;return this[_0x2a710b(0x164)][_0x2a710b(0x10a)](_0x152480);}[_0xcd3c43(0x170)](_0x286563){const _0x1af0ab=_0xcd3c43;return Array[_0x1af0ab(0xff)](this[_0x1af0ab(0x10e)])[_0x1af0ab(0xfc)](_0x162266=>_0x162266(_0x286563));}};function W(_0x40771d,_0x104f5f){return function(_0x1532f5,_0x40affd){_0x104f5f(_0x1532f5,_0x40affd,_0x40771d);};}function _0x4350(){const _0x46ecb9=['3215368BdljUd','LIVESHARE_REQUEST_HOST','LIVESHARE_TERMINATE','_handleOffline','UNIVER_UNKNOWN','Present\x20this\x20document','_injector','4640RwMrgG','get','_fetchOperations','_status','text','NEW_CHANGESETS','includes','_stopFollowing','constructor','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerComponent','delete','iterator','presenting','presenter','FOLLOWING','length','getLiveShareCoordinatorSync','defineProperty','dispose$','map','SAME_OPERATION_SHARE_INTERVAL','status$','from','_presenter','sheet','721190pMwIgv','params','getUnitId','default','Start','startFollowing','getOwnPropertyDescriptor','init','has','requireSession','find','set','_reporters','live-share.config','idle','_entities','forEach','_univerInstanceService','clear','LIVESHARE_FETCH_OPERATIONS','values','Start\x20following','following','call','override','2410068ZLBEGh','not-following','div','pluginName','unit','_status$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','button','_handleTerminate','end','executeCommand','_unitID','toPrimitive','tryStartPresenting','_mountLiveShare','_handleNewHost','_handleNewChangeSets','object','send','_startPresenting','event$','_startLiveShareCoordinator','IDLE','1137FWdZQH','mutations','string','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_uiPartsService','unitId','1893220EbDJIF','OPERATION','version','shouldShareOperation','next','OFFLINE','Stop\x20presenting','LIVESHARE_OPERATION','_handleOnline','getLiveShareCoordinator','getCurrentTypeOfUnit$','dispose','onCommandExecuted','537041rnxhUB','_configService','@univerjs-pro/live-share','stopPresenting','_collabSessionService','You\x27re\x20presenting\x20the\x20document','disposeWithMe','getTypeOfUnitDisposed$','subject','getMemberID','UNIVER_LIVE_SHARE_PLUGIN','397890TLXqoa','reverse','_liveShareService','_stopPresenting','getStatus','asObservable','data','offline','1.0.0-alpha.7','registerSharedOperation','getTypeOfUnitAdded$','decorate','subscribe','pipe','_commandDisposable','_commandService','onRendered','_init','_handleOperation','LIVESHARE_NEW_HOST','_sharedOperations','sessionStatus$','HEADER_MENU','stringify','You\x27are\x20offline.','symbol','_startFollowing','packageName','You\x27re\x20not\x20following\x20the\x20presenter','add','_config','ONLINE','getInitialStates','Stop\x20following','_collabSession','UNIVER_SHEET','stopFollowing'];_0x4350=function(){return _0x46ecb9;};return _0x4350();}function G(_0x44d994,_0x4e4905,_0x260325,_0x1e3fd6){const _0x340b73=_0xcd3c43;var _0x5a0c03=arguments['length'],_0xcb171e=_0x5a0c03<0x3?_0x4e4905:_0x1e3fd6===null?_0x1e3fd6=Object[_0x340b73(0x108)](_0x4e4905,_0x260325):_0x1e3fd6,_0x230b64;if(typeof Reflect==_0x340b73(0x12c)&&typeof Reflect[_0x340b73(0x15b)]=='function')_0xcb171e=Reflect[_0x340b73(0x15b)](_0x44d994,_0x4e4905,_0x260325,_0x1e3fd6);else{for(var _0xd913b=_0x44d994[_0x340b73(0xf8)]-0x1;_0xd913b>=0x0;_0xd913b--)(_0x230b64=_0x44d994[_0xd913b])&&(_0xcb171e=(_0x5a0c03<0x3?_0x230b64(_0xcb171e):_0x5a0c03>0x3?_0x230b64(_0x4e4905,_0x260325,_0xcb171e):_0x230b64(_0x4e4905,_0x260325))||_0xcb171e);}return _0x5a0c03>0x3&&_0xcb171e&&Object['defineProperty'](_0x4e4905,_0x260325,_0xcb171e),_0xcb171e;}let K=class extends _0x1a82c3{constructor(_0x66f1cd,_0x6a38c6,_0x4507c5){const _0x11f408=_0xcd3c43;super(),this[_0x11f408(0x113)]=_0x66f1cd,this[_0x11f408(0x17b)]=_0x6a38c6,this[_0x11f408(0x149)]=_0x4507c5,H(this,_0x11f408(0x111),new Map()),this[_0x11f408(0x161)]();}async['getLiveShareCoordinator'](_0x9ec3df){const _0x40bba8=_0xcd3c43;return this[_0x40bba8(0x111)][_0x40bba8(0x10a)](_0x9ec3df)||await this[_0x40bba8(0x130)](_0x9ec3df),this[_0x40bba8(0x111)]['get'](_0x9ec3df);}[_0xcd3c43(0xf9)](_0x1b69ca){const _0x2a7f29=_0xcd3c43;var _0x35d8d8;return(_0x35d8d8=this[_0x2a7f29(0x111)][_0x2a7f29(0x17d)](_0x1b69ca))==null?null:_0x35d8d8;}[_0xcd3c43(0x161)](){const _0x394fc1=_0xcd3c43;this[_0x394fc1(0x113)][_0x394fc1(0x15a)](_0x3f510f[_0x394fc1(0x173)])[_0x394fc1(0x15d)](_0x223cee(this[_0x394fc1(0xfb)]))[_0x394fc1(0x15c)](async _0x1b0875=>{const _0x40f879=_0x394fc1;let _0x2ee398=_0x1b0875[_0x40f879(0x11f)]['getUnitId']();this[_0x40f879(0x111)][_0x40f879(0x10a)](_0x2ee398)||this[_0x40f879(0x130)](_0x2ee398);}),this[_0x394fc1(0x113)][_0x394fc1(0x14c)](_0x3f510f[_0x394fc1(0x173)])['pipe'](_0x223cee(this[_0x394fc1(0xfb)]))[_0x394fc1(0x15c)](_0x18ffae=>{const _0x4c87d1=_0x394fc1;let _0x38847e=_0x18ffae[_0x4c87d1(0x104)](),_0x113e2f=this[_0x4c87d1(0x111)][_0x4c87d1(0x17d)](_0x38847e);_0x113e2f==null||_0x113e2f[_0x4c87d1(0x143)]();});}async['_startLiveShareCoordinator'](_0x535cf4){const _0x4ddb46=_0xcd3c43;let _0x322371=await this[_0x4ddb46(0x149)][_0x4ddb46(0x10b)](_0x535cf4),_0x5bef85=this[_0x4ddb46(0x17b)]['createInstance'](J,_0x535cf4,_0x322371);return _0x5bef85[_0x4ddb46(0x109)](),this[_0x4ddb46(0x111)][_0x4ddb46(0x10d)](_0x535cf4,_0x5bef85),_0x5bef85;}};K=G([W(0x0,_0x5ab737),W(0x1,_0x130c38(_0x189051)),W(0x2,_0x130c38(_0x598ce3))],K);let q=function(_0x10d8b1){const _0x347c62=_0xcd3c43;return _0x10d8b1[_0x347c62(0x13d)]=_0x347c62(0x157),_0x10d8b1[_0x347c62(0x131)]=_0x347c62(0x110),_0x10d8b1[_0x347c62(0xf7)]=_0x347c62(0x118),_0x10d8b1['NOT_FOLLOWING']=_0x347c62(0x11c),_0x10d8b1['PRESENTING']=_0x347c62(0xf5),_0x10d8b1;}({}),J=class extends _0x1a82c3{get[_0xcd3c43(0x17f)](){const _0x256e13=_0xcd3c43;return this[_0x256e13(0x120)]['getValue']();}constructor(_0x280c2a,_0x2a261b,_0x486466,_0x4b72c5,_0x56b6d7){const _0x57336e=_0xcd3c43;super(),this['_unitID']=_0x280c2a,this[_0x57336e(0x172)]=_0x2a261b,this[_0x57336e(0x146)]=_0x486466,this[_0x57336e(0x152)]=_0x4b72c5,this[_0x57336e(0x15f)]=_0x56b6d7,H(this,_0x57336e(0x120),new _0x23f9ae('idle')),H(this,_0x57336e(0xfe),this['_status$'][_0x57336e(0x155)]()),H(this,_0x57336e(0x161),!0x1),H(this,_0x57336e(0x15e),null),H(this,_0x57336e(0x100),null);}[_0xcd3c43(0x143)](){const _0x9fbe8e=_0xcd3c43;var _0x4bcc83;(_0x4bcc83=this[_0x9fbe8e(0x15e)])==null||_0x4bcc83['dispose'](),this[_0x9fbe8e(0x120)][_0x9fbe8e(0x13c)](_0x9fbe8e(0x110)),this[_0x9fbe8e(0x120)]['complete']();}[_0xcd3c43(0x154)](){const _0x2a541f=_0xcd3c43;return this[_0x2a541f(0x17f)];}['init'](){const _0x55f9e8=_0xcd3c43;this['_init']||(this[_0x55f9e8(0x161)]=!0x0,this[_0x55f9e8(0x172)][_0x55f9e8(0x165)]['pipe'](_0x223cee(this['dispose$']))[_0x55f9e8(0x15c)](_0x344196=>{const _0x598087=_0x55f9e8;switch(_0x344196){case _0x4d69f8[_0x598087(0x13d)]:this[_0x598087(0x178)]();break;case _0x4d69f8[_0x598087(0x16f)]:this[_0x598087(0x140)]();break;default:}}),this[_0x55f9e8(0x172)][_0x55f9e8(0x12f)][_0x55f9e8(0x15d)](_0x223cee(this[_0x55f9e8(0xfb)]))['subscribe'](_0x2a721a=>{const _0x316b55=_0x55f9e8;let {eventID:_0x57ce27}=_0x2a721a;switch(_0x57ce27){case _0x3756a6[_0x316b55(0x163)]:this[_0x316b55(0x12a)](_0x2a721a);break;case _0x3756a6['LIVESHARE_OPERATION']:this[_0x316b55(0x162)](_0x2a721a);break;case _0x3756a6[_0x316b55(0x177)]:this[_0x316b55(0x123)]();break;case _0x3756a6[_0x316b55(0xed)]:this[_0x316b55(0x12b)](_0x2a721a);break;default:}}));}[_0xcd3c43(0x128)](){const _0x8f65c9=_0xcd3c43;this[_0x8f65c9(0x172)][_0x8f65c9(0x12d)]({'eventID':_0x3756a6[_0x8f65c9(0x176)],'data':{'unitID':this['_unitID'],'userID':this[_0x8f65c9(0x172)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x8e4143=_0xcd3c43;this[_0x8e4143(0x17f)]==='presenting'&&(this[_0x8e4143(0x120)]['next']('idle'),this[_0x8e4143(0x172)][_0x8e4143(0x12d)]({'eventID':_0x3756a6[_0x8e4143(0x177)],'data':{'unitID':this[_0x8e4143(0x126)]}},this[_0x8e4143(0x126)]));}['startFollowing'](){const _0xe93ada=_0xcd3c43;this[_0xe93ada(0x17f)]===_0xe93ada(0x11c)&&(this[_0xe93ada(0x120)][_0xe93ada(0x13c)](_0xe93ada(0x118)),this[_0xe93ada(0x16a)]());}[_0xcd3c43(0x174)](){const _0x221bbd=_0xcd3c43;this[_0x221bbd(0x17f)]===_0x221bbd(0x118)&&this[_0x221bbd(0xef)]();}[_0xcd3c43(0x12a)](_0x1fecb4){const _0x1caadb=_0xcd3c43;let {presenter:_0x283db7}=_0x1fecb4[_0x1caadb(0x156)],_0x47fa87=this[_0x1caadb(0x172)][_0x1caadb(0x14e)]();this[_0x1caadb(0x100)]=_0x283db7,_0x283db7===_0x47fa87?(this[_0x1caadb(0xef)](),this['_startPresenting']()):this['_status']!==_0x1caadb(0x11c)&&(this[_0x1caadb(0x153)](),this[_0x1caadb(0x16a)]());}[_0xcd3c43(0x17e)](){const _0x1d0532=_0xcd3c43;let _0x11c7a4={'eventID':_0x3756a6[_0x1d0532(0x115)]};this[_0x1d0532(0x172)][_0x1d0532(0x12d)](_0x11c7a4,this[_0x1d0532(0x126)]);}[_0xcd3c43(0x123)](){const _0x5cee8f=_0xcd3c43;this[_0x5cee8f(0x100)]=null,this[_0x5cee8f(0x17f)]!=='presenting'&&this['_beIdle']();}[_0xcd3c43(0x12b)](_0x2a1f61){const _0x221cc7=_0xcd3c43;if(this['_status']===_0x221cc7(0x118)&&this[_0x221cc7(0x100)]===_0x2a1f61[_0x221cc7(0x156)]['memberID']){let _0x92cfcb=_0x540c5a(_0x2a1f61[_0x221cc7(0x156)])[_0x221cc7(0x133)][_0x221cc7(0x151)]()[_0x221cc7(0x10c)](_0xb0e452=>_0xb0e452['id']===_0x39f5b2['id']);if(_0x92cfcb){let _0x436335=_0x92cfcb[_0x221cc7(0x103)][_0x221cc7(0x137)],_0xaea137=_0x92cfcb[_0x221cc7(0x103)][_0x221cc7(0x101)]['id'];setTimeout(()=>{const _0x2cc575=_0x221cc7;this['_commandService'][_0x2cc575(0x125)](_0x2b0483['id'],{'unitId':_0x436335,'subUnitId':_0xaea137},{'fromCollab':!0x0});});}}}[_0xcd3c43(0x12e)](){const _0x3be677=_0xcd3c43;var _0x417769;(_0x417769=this[_0x3be677(0x15e)])==null||_0x417769[_0x3be677(0x143)](),this['_status$'][_0x3be677(0x13c)](_0x3be677(0xf5));let _0x523766=new Map(),_0x23660d=this[_0x3be677(0x15e)]=new _0x1d1071();_0x23660d[_0x3be677(0x16d)](_0xf8e6d4(()=>{const _0x49b5f5=_0x3be677;_0x523766['forEach'](({subject:_0x1362f0,subscription:_0x2d6066})=>{_0x2d6066['unsubscribe'](),_0x1362f0['complete']();}),_0x523766[_0x49b5f5(0x114)]();})),_0x23660d[_0x3be677(0x16d)](this[_0x3be677(0x15f)][_0x3be677(0x144)](_0x1aca2d=>{const _0x11d1a2=_0x3be677;if(_0x1aca2d['type']!==_0x370a98[_0x11d1a2(0x139)]||!this[_0x11d1a2(0x152)][_0x11d1a2(0x13b)](_0x1aca2d['id']))return;let {id:_0x3e96b3}=_0x1aca2d,_0x326ef8;if(_0x523766[_0x11d1a2(0x10a)](_0x3e96b3))_0x326ef8=_0x523766['get'](_0x3e96b3)[_0x11d1a2(0x14d)];else{var _0x52630d;_0x326ef8=new _0x20c350();let _0x3e948d=_0x326ef8['pipe'](_0x364328((_0x52630d=this[_0x11d1a2(0x146)]['getConfig'](_0x11d1a2(0xfd)))==null?0xc8:_0x52630d,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x50a8ed=>{const _0x54a2ce=_0x11d1a2;this[_0x54a2ce(0x172)][_0x54a2ce(0x12d)]({'eventID':_0x3756a6[_0x54a2ce(0x13f)],'data':{'unitID':this['_unitID'],'operations':{[_0x50a8ed['id']]:{'id':_0x50a8ed['id'],'params':JSON[_0x54a2ce(0x167)](_0x50a8ed[_0x54a2ce(0x103)])}}}},this[_0x54a2ce(0x126)]);});_0x523766[_0x11d1a2(0x10d)](_0x3e96b3,{'subject':_0x326ef8,'subscription':_0x3e948d});}_0x326ef8[_0x11d1a2(0x13c)](_0x1aca2d);})),this[_0x3be677(0x152)][_0x3be677(0x170)](this['_unitID'])[_0x3be677(0x112)](_0x4af641=>this[_0x3be677(0x172)][_0x3be677(0x12d)]({'eventID':_0x3756a6[_0x3be677(0x13f)],'data':{'unitID':this[_0x3be677(0x126)],'operations':{[_0x4af641['id']]:{'id':_0x4af641['id'],'params':JSON['stringify'](_0x4af641['params'])}}}},this['_unitID']));}[_0xcd3c43(0x153)](){const _0x4d0e91=_0xcd3c43;var _0x4dba2d;this[_0x4d0e91(0x120)]['next'](_0x4d0e91(0x110)),(_0x4dba2d=this[_0x4d0e91(0x15e)])==null||_0x4dba2d[_0x4d0e91(0x143)](),this[_0x4d0e91(0x15e)]=null;}[_0xcd3c43(0x16a)](){const _0x518d3f=_0xcd3c43;var _0x352e0d;(_0x352e0d=this[_0x518d3f(0x15e)])==null||_0x352e0d['dispose'](),this[_0x518d3f(0x120)]['next']('following');}['_beIdle'](){const _0x5775b2=_0xcd3c43;var _0xf43165;this[_0x5775b2(0x120)][_0x5775b2(0x13c)](_0x5775b2(0x110)),(_0xf43165=this['_commandDisposable'])==null||_0xf43165[_0x5775b2(0x143)](),this['_commandDisposable']=null;}[_0xcd3c43(0xef)](){const _0x462fff=_0xcd3c43;var _0x151384;this[_0x462fff(0x120)]['next']('not-following'),(_0x151384=this[_0x462fff(0x15e)])==null||_0x151384[_0x462fff(0x143)]();}[_0xcd3c43(0x162)](_0x2f255a){const _0x395078=_0xcd3c43;if(['presenting',_0x395078(0x11c),'offline'][_0x395078(0xee)](this['_status'])||!_0x2f255a[_0x395078(0x156)]['presenter']||_0x2f255a[_0x395078(0x156)][_0x395078(0xf6)]===this[_0x395078(0x172)][_0x395078(0x14e)]())return;this['_status']===_0x395078(0x110)&&this[_0x395078(0x16a)]();let _0xaecd78=_0x2f255a['data']['operations'];Object[_0x395078(0x116)](_0xaecd78)['forEach'](_0x39ce5f=>{const _0xbd19df=_0x395078;this['_commandService'][_0xbd19df(0x125)](_0x39ce5f['id'],_0x39ce5f[_0xbd19df(0x103)]?JSON['parse'](_0x39ce5f['params']):null,{'fromCollab':!0x0});});}[_0xcd3c43(0x178)](){const _0x1d09c2=_0xcd3c43;var _0x23918f;this[_0x1d09c2(0x120)]['next']('offline'),(_0x23918f=this['_commandDisposable'])==null||_0x23918f['dispose']();}['_handleOnline'](){const _0x4d9e2c=_0xcd3c43;this[_0x4d9e2c(0x120)][_0x4d9e2c(0x13c)](_0x4d9e2c(0x110)),this['_fetchOperations']();}};J=G([W(0x2,_0x13ab7e),W(0x3,_0x130c38(U)),W(0x4,_0x2aa954)],J);var se=_0xcd3c43(0x147),ce=_0xcd3c43(0x158);const Y={};let X=class extends _0x3d4065{constructor(_0x18262a){super(),this['_liveShareService']=_0x18262a,this['_init']();}[_0xcd3c43(0x161)](){const _0x3f6ab9=_0xcd3c43;[_0x4bc340['id'],_0x5ae29f['id'],_0x2b0483['id']][_0x3f6ab9(0x112)](_0x12ec93=>{const _0x406c78=_0x3f6ab9;this['disposeWithMe'](this[_0x406c78(0x152)][_0x406c78(0x159)](_0x12ec93));});}};X=G([W(0x0,_0x130c38(U))],X);function Z(){const _0x2168b4=_0xcd3c43;let _0x2a469e=_0x361196(K),_0x367e57=_0x361196(_0x5ab737),_0x233cf3=_0x313630(()=>_0x367e57[_0x2168b4(0x142)](_0x3f510f[_0x2168b4(0x173)]),void 0x0,!0x1,[]),_0x5a285b=_0x313630(_0x1c5235(()=>_0x233cf3?_0x4386d9(()=>_0xa7f912(_0x2a469e[_0x2168b4(0x141)](_0x233cf3[_0x2168b4(0x104)]()))):_0x363ac9(null),[_0x233cf3,_0x2a469e]),null),_0x25f125=_0x313630(_0x5a285b?()=>_0x5a285b[_0x2168b4(0xfe)]:null,_0x2168b4(0x110),!0x1,[_0x5a285b]);return _0x5a285b?_0x76736e(_0x5f2dd7,{'align':_0x2168b4(0x124),'disabled':_0x25f125===_0x2168b4(0x157),'className':_0x2168b4(0x121),'overlay':_0x76736e(le,{'status':_0x25f125,'coordinator':_0x5a285b}),'children':_0x76736e(_0x2168b4(0x122),{'className':_0x1b4e86('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x25f125==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x25f125!=='offline'}),'type':_0x2168b4(0x122),'children':_0x76736e(_0xbe8107,{})})}):null;}function le(_0x36d926){const _0x3fad99=_0xcd3c43;let {status:_0x3aaa5c,coordinator:_0xd13d33}=_0x36d926;switch(_0x3aaa5c){case _0x3fad99(0x110):return _0x76736e(ue,{'coordinator':_0xd13d33});case _0x3fad99(0x118):return _0x76736e(de,{'coordinator':_0xd13d33});case _0x3fad99(0x11c):return _0x76736e(fe,{'coordinator':_0xd13d33});case'offline':return _0x76736e(me,{});case _0x3fad99(0xf5):return _0x76736e(pe,{'coordinator':_0xd13d33});default:return null;}}function ue(_0x4fda22){const _0x55e02e=_0xcd3c43;let {coordinator:_0x153247}=_0x4fda22;return _0x46d651(_0x114c30,{'children':[_0x76736e(_0x55e02e(0x11d),{'className':_0x55e02e(0xf1),'children':_0x55e02e(0x17a)}),_0x76736e(_0x5b7c15,{'onClick':()=>_0x153247[_0x55e02e(0x128)](),'children':_0x55e02e(0x106)})]});}function de(_0x53ca40){const _0x93e357=_0xcd3c43;let {coordinator:_0x314952}=_0x53ca40;return _0x46d651(_0x114c30,{'children':[_0x76736e(_0x93e357(0x11d),{'className':_0x93e357(0xf1),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x76736e(_0x5b7c15,{'onClick':()=>_0x314952[_0x93e357(0x174)](),'children':_0x93e357(0x171)})]});}function fe(_0xaacac){const _0x5c4abf=_0xcd3c43;let {coordinator:_0x20c65f}=_0xaacac;return _0x46d651(_0x114c30,{'children':[_0x76736e('div',{'className':_0x5c4abf(0xf1),'children':_0x5c4abf(0x16c)}),_0x76736e(_0x5b7c15,{'variant':_0x5c4abf(0x180),'onClick':()=>_0x20c65f[_0x5c4abf(0x107)](),'children':_0x5c4abf(0x117)})]});}function pe(_0x1a4fb9){const _0x40d5f2=_0xcd3c43;let {coordinator:_0x50eac3}=_0x1a4fb9;return _0x46d651(_0x114c30,{'children':[_0x76736e(_0x40d5f2(0x11d),{'className':_0x40d5f2(0xf1),'children':_0x40d5f2(0x14a)}),_0x76736e(_0x5b7c15,{'variant':_0x40d5f2(0x105),'onClick':()=>_0x50eac3[_0x40d5f2(0x148)](),'children':_0x40d5f2(0x13e)})]});}function me(){const _0x237681=_0xcd3c43;return _0x76736e(_0x114c30,{'children':_0x237681(0x168)});}let Q=class extends _0x3d4065{constructor(_0x433b6c,_0xfbdfa8){const _0x875ae1=_0xcd3c43;super(),this['_injector']=_0x433b6c,this[_0x875ae1(0x136)]=_0xfbdfa8,this[_0x875ae1(0x129)]();}[_0xcd3c43(0x129)](){const _0x7dca9a=_0xcd3c43;this[_0x7dca9a(0x14b)](this[_0x7dca9a(0x136)][_0x7dca9a(0xf2)](_0x72c6df[_0x7dca9a(0x166)],()=>_0x33a9bb(Z,this[_0x7dca9a(0x17b)])));}};Q=G([W(0x0,_0x130c38(_0x189051)),W(0x1,_0x3d33a9)],Q);let $=class extends _0x5f36ae{constructor(_0x2e3f2f=Y,_0x28d45f,_0xd601ed){const _0x3760f0=_0xcd3c43;super(),this['_config']=_0x2e3f2f,this[_0x3760f0(0x17b)]=_0x28d45f,this[_0x3760f0(0x146)]=_0xd601ed;let {..._0xa29e9b}=_0x3df356({},Y,this[_0x3760f0(0x16e)]);this[_0x3760f0(0x146)]['setConfig'](_0x3760f0(0x10f),_0xa29e9b);}['onStarting'](){const _0x20903a=_0xcd3c43;_0x24986b(this['_injector'],_0x1f0e7f([[U],[K],[X],[Q]],this[_0x20903a(0x16e)][_0x20903a(0x11a)])),_0x1c595d(this[_0x20903a(0x17b)],[[X]]);}[_0xcd3c43(0x160)](){_0x1c595d(this['_injector'],[[Q]]);}};H($,'type',_0x3f510f[_0xcd3c43(0x179)]),H($,_0xcd3c43(0x11e),_0xcd3c43(0x14f)),H($,_0xcd3c43(0x16b),se),H($,_0xcd3c43(0x13a),ce),$=G([_0x3f835d(_0x337bb8),W(0x1,_0x130c38(_0x189051)),W(0x2,_0x13ab7e)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x3d3474=_0x2854;(function(_0x5f0760,_0x181a35){const _0x42335f=_0x2854,_0x2c3c85=_0x5f0760();while(!![]){try{const _0x39d334=parseInt(_0x42335f(0xa7))/0x1*(-parseInt(_0x42335f(0x124))/0x2)+parseInt(_0x42335f(0xac))/0x3*(-parseInt(_0x42335f(0xa6))/0x4)+parseInt(_0x42335f(0xc6))/0x5+-parseInt(_0x42335f(0x107))/0x6*(-parseInt(_0x42335f(0xe5))/0x7)+-parseInt(_0x42335f(0x9e))/0x8+parseInt(_0x42335f(0x106))/0x9*(-parseInt(_0x42335f(0x10b))/0xa)+-parseInt(_0x42335f(0xf7))/0xb*(-parseInt(_0x42335f(0xdb))/0xc);if(_0x39d334===_0x181a35)break;else _0x2c3c85['push'](_0x2c3c85['shift']());}catch(_0x145ec2){_0x2c3c85['push'](_0x2c3c85['shift']());}}}(_0x20d9,0x7a4c9));function _0x20d9(){const _0x3d455c=['@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','not-following','NOT_FOLLOWING','function','ONLINE','2xqlSpO','subscribe','packageName','data','dispose','forEach','_config','params','iterator','_beIdle','_univerInstanceService','createInstance','symbol','stopFollowing','4077480mYKlEr','pluginName','following','_stopPresenting','operations','LIVESHARE_OPERATION','live-share.config','OFFLINE','12828roaXOr','82855qaBEHm','stopPresenting','_handleTerminate','clear','PRESENTING','597LkWSoE','You\x27re\x20presenting\x20the\x20document','_collabSessionService','find','executeCommand','_startLiveShareCoordinator','_handleNewChangeSets','_startPresenting','constructor','_status$','unit','_stopFollowing','decorate','from','_handleOperation','unitId','You\x27re\x20following\x20the\x20presenter','length','getLiveShareCoordinator','has','getCurrentTypeOfUnit$','sheet','_entities','shouldShareOperation','sessionStatus$','asObservable','3566510gENPHl','You\x27re\x20not\x20following\x20the\x20presenter','_liveShareService','getMemberID','getUnitId','next','_presenter','_fetchOperations','_handleOnline','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','text','delete','_reporters','_sharedOperations','_unitID','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','offline','status$','getInitialStates','idle','12JKgmOR','_status','mutations','registerComponent','_init','getConfig','registerInitialStateReporter','prototype','_commandService','map','14yuaDDj','getTypeOfUnitAdded$','UNIVER_LIVE_SHARE_PLUGIN','end','reverse','getTypeOfUnitDisposed$','button','@univerjs-pro/live-share','get','UNIVER_SHEET','values','send','_uiPartsService','1.0.0-beta.0','version','presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','startFollowing','6745310GDzqhO','Start\x20following','getLiveShareCoordinatorSync','onStarting','_injector','_handleNewHost','disposeWithMe','type','subject','complete','includes','toPrimitive','set','add','_collabSession','315OFUwVn','2815884Audotw','_handleOffline','onRendered','div','152420CzbKjX','init','LIVESHARE_FETCH_OPERATIONS','registerSharedOperation','getStatus','presenting','call','OPERATION','stringify','Present\x20this\x20document','dispose$','unsubscribe','pipe','_startFollowing','Stop\x20following','parse','_commandDisposable','LIVESHARE_TERMINATE','override','_configService'];_0x20d9=function(){return _0x3d455c;};return _0x20d9();}import{CollaborationEvent as _0x4ab04f,parseProtocolChangeset as _0x3686e3}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1e2bfa,SessionStatus as _0x3cfb03,UniverCollaborationClientPlugin as _0x169e26}from'@univerjs-pro/collaboration-client';import{CommandType as _0x3f9d18,DependentOn as _0x1df6e6,Disposable as _0x37dab6,DisposableCollection as _0x16da52,ICommandService as _0x54fef7,IConfigService as _0x5cb103,IUniverInstanceService as _0x58af8f,Inject as _0x23d73f,Injector as _0x2866b9,Plugin as _0x80eeb6,RxDisposable as _0x280041,UniverInstanceType as _0x280b3d,merge as _0x1647dc,mergeOverrideWithDependencies as _0x230d60,registerDependencies as _0x3b9a91,toDisposable as _0x479b00,touchDependencies as _0x1bd490}from'@univerjs/core';import{InsertSheetMutation as _0x210969,SetWorksheetActiveOperation as _0x50d6fc}from'@univerjs/sheets';import{BehaviorSubject as _0x5093e4,Subject as _0x221a48,defer as _0x4f094b,from as _0x2dccd7,of as _0x2cbaa5}from'rxjs';import{takeUntil as _0x440641,throttleTime as _0x1c63c6}from'rxjs/operators';import{UniverLicensePlugin as _0x1b707d}from'@univerjs-pro/license';import{SetScrollOperation as _0x2225eb,SetZoomRatioOperation as _0x4b25e1}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x342367,IUIPartsService as _0x320286,connectInjector as _0x380dde,useDependency as _0x4ab0a4,useObservable as _0x1ea96e}from'@univerjs/ui';import{Button as _0x1bffb1,Dropdown as _0x4e4083,clsx as _0x1a3bc1}from'@univerjs/design';import{LiveShareIcon as _0x16c49d}from'@univerjs/icons';import{useMemo as _0x1fe622}from'react';import{Fragment as _0x21d3a1,jsx as _0x5bd8d4,jsxs as _0x352f4e}from'react/jsx-runtime';function V(_0x2a2aef){'@babel/helpers - typeof';const _0x5556f3=_0x2854;return V=typeof Symbol=='function'&&typeof Symbol[_0x5556f3(0x98)]==_0x5556f3(0x9c)?function(_0x2d8ac3){return typeof _0x2d8ac3;}:function(_0x57e4b7){const _0x22a01d=_0x5556f3;return _0x57e4b7&&typeof Symbol==_0x22a01d(0x122)&&_0x57e4b7[_0x22a01d(0xb4)]===Symbol&&_0x57e4b7!==Symbol[_0x22a01d(0xe2)]?_0x22a01d(0x9c):typeof _0x57e4b7;},V(_0x2a2aef);}function H(_0xa3634e,_0x2cbd2e){const _0x2c672d=_0x2854;if(V(_0xa3634e)!='object'||!_0xa3634e)return _0xa3634e;var _0x3abb98=_0xa3634e[Symbol[_0x2c672d(0x102)]];if(_0x3abb98!==void 0x0){var _0x518d4c=_0x3abb98[_0x2c672d(0x111)](_0xa3634e,_0x2cbd2e||'default');if(V(_0x518d4c)!='object')return _0x518d4c;throw TypeError(_0x2c672d(0x11f));}return(_0x2cbd2e==='string'?String:Number)(_0xa3634e);}function U(_0x5d68c1){const _0x1308e8=_0x2854;var _0x50bf67=H(_0x5d68c1,'string');return V(_0x50bf67)==_0x1308e8(0x9c)?_0x50bf67:_0x50bf67+'';}function W(_0x8adaf2,_0x2f32c3,_0xd312a5){return(_0x2f32c3=U(_0x2f32c3))in _0x8adaf2?Object['defineProperty'](_0x8adaf2,_0x2f32c3,{'value':_0xd312a5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x8adaf2[_0x2f32c3]=_0xd312a5,_0x8adaf2;}var G=class extends _0x37dab6{constructor(..._0x211e46){const _0x49a9d0=_0x2854;super(..._0x211e46),W(this,_0x49a9d0(0xd3),new Set()),W(this,_0x49a9d0(0xd2),new Set());}[_0x3d3474(0x10e)](_0x3e7abc){const _0x34c6bf=_0x3d3474;return this[_0x34c6bf(0xd3)][_0x34c6bf(0x104)](_0x3e7abc),_0x479b00(()=>this[_0x34c6bf(0xd3)][_0x34c6bf(0xd1)](_0x3e7abc));}[_0x3d3474(0xe1)](_0x2e7754){const _0x3abd6d=_0x3d3474;return this[_0x3abd6d(0xd2)][_0x3abd6d(0x104)](_0x2e7754),_0x479b00(()=>this[_0x3abd6d(0xd2)][_0x3abd6d(0xd1)](_0x2e7754));}['shouldShareOperation'](_0x504cf8){const _0xdb1407=_0x3d3474;return this[_0xdb1407(0xd3)][_0xdb1407(0xbf)](_0x504cf8);}['getInitialStates'](_0x9eeacd){const _0x57441e=_0x3d3474;return Array[_0x57441e(0xb9)](this[_0x57441e(0xd2)])[_0x57441e(0xe4)](_0x533e98=>_0x533e98(_0x9eeacd));}};function _0x2854(_0x81910a,_0x7c50bc){_0x81910a=_0x81910a-0x97;const _0x20d977=_0x20d9();let _0x285470=_0x20d977[_0x81910a];return _0x285470;}function K(_0x5eea0d,_0x31c4be){return function(_0x2c48fc,_0x203b2a){_0x31c4be(_0x2c48fc,_0x203b2a,_0x5eea0d);};}function q(_0x29521e,_0x205cfd,_0x24b594,_0x1a8959){const _0x3a54fe=_0x3d3474;var _0x515e12=arguments[_0x3a54fe(0xbd)],_0x4d1b0c=_0x515e12<0x3?_0x205cfd:_0x1a8959===null?_0x1a8959=Object['getOwnPropertyDescriptor'](_0x205cfd,_0x24b594):_0x1a8959,_0x551ddb;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x3a54fe(0x122))_0x4d1b0c=Reflect[_0x3a54fe(0xb8)](_0x29521e,_0x205cfd,_0x24b594,_0x1a8959);else{for(var _0x34036f=_0x29521e[_0x3a54fe(0xbd)]-0x1;_0x34036f>=0x0;_0x34036f--)(_0x551ddb=_0x29521e[_0x34036f])&&(_0x4d1b0c=(_0x515e12<0x3?_0x551ddb(_0x4d1b0c):_0x515e12>0x3?_0x551ddb(_0x205cfd,_0x24b594,_0x4d1b0c):_0x551ddb(_0x205cfd,_0x24b594))||_0x4d1b0c);}return _0x515e12>0x3&&_0x4d1b0c&&Object['defineProperty'](_0x205cfd,_0x24b594,_0x4d1b0c),_0x4d1b0c;}let J=class extends _0x280041{constructor(_0x182bd1,_0x3a8905,_0x371e39){const _0x29e1c1=_0x3d3474;super(),this['_univerInstanceService']=_0x182bd1,this[_0x29e1c1(0xfb)]=_0x3a8905,this[_0x29e1c1(0xae)]=_0x371e39,W(this,_0x29e1c1(0xc2),new Map()),this[_0x29e1c1(0xdf)]();}async[_0x3d3474(0xbe)](_0x35d6e1){const _0x518c09=_0x3d3474;return this[_0x518c09(0xc2)]['has'](_0x35d6e1)||await this['_startLiveShareCoordinator'](_0x35d6e1),this['_entities'][_0x518c09(0xed)](_0x35d6e1);}[_0x3d3474(0xf9)](_0x37b02b){const _0xde0f6f=_0x3d3474;return this[_0xde0f6f(0xc2)][_0xde0f6f(0xed)](_0x37b02b)??null;}[_0x3d3474(0xdf)](){const _0x54b0f=_0x3d3474;this['_univerInstanceService'][_0x54b0f(0xe6)](_0x280b3d[_0x54b0f(0xee)])[_0x54b0f(0x117)](_0x440641(this[_0x54b0f(0x115)]))[_0x54b0f(0x125)](async _0x4b17f5=>{const _0x172791=_0x54b0f;let _0x4e9c50=_0x4b17f5[_0x172791(0xb6)][_0x172791(0xca)]();this['_entities']['has'](_0x4e9c50)||this[_0x172791(0xb1)](_0x4e9c50);}),this[_0x54b0f(0x9a)][_0x54b0f(0xea)](_0x280b3d[_0x54b0f(0xee)])['pipe'](_0x440641(this[_0x54b0f(0x115)]))[_0x54b0f(0x125)](_0x50363e=>{const _0x2cd488=_0x54b0f;let _0x2f74a5=_0x50363e[_0x2cd488(0xca)](),_0x2ad80b=this[_0x2cd488(0xc2)][_0x2cd488(0xed)](_0x2f74a5);_0x2ad80b==null||_0x2ad80b[_0x2cd488(0x128)]();});}async[_0x3d3474(0xb1)](_0x229974){const _0x1e835f=_0x3d3474;let _0xe6b145=await this[_0x1e835f(0xae)]['requireSession'](_0x229974),_0x118810=this['_injector'][_0x1e835f(0x9b)](Y,_0x229974,_0xe6b145);return _0x118810[_0x1e835f(0x10c)](),this[_0x1e835f(0xc2)][_0x1e835f(0x103)](_0x229974,_0x118810),_0x118810;}};J=q([K(0x0,_0x58af8f),K(0x1,_0x23d73f(_0x2866b9)),K(0x2,_0x23d73f(_0x1e2bfa))],J);let oe=function(_0x5b6fb8){const _0x3ea028=_0x3d3474;return _0x5b6fb8[_0x3ea028(0xa5)]=_0x3ea028(0xd7),_0x5b6fb8['IDLE']=_0x3ea028(0xda),_0x5b6fb8['FOLLOWING']=_0x3ea028(0xa0),_0x5b6fb8[_0x3ea028(0x121)]=_0x3ea028(0x120),_0x5b6fb8[_0x3ea028(0xab)]=_0x3ea028(0x110),_0x5b6fb8;}({}),Y=class extends _0x280041{get[_0x3d3474(0xdc)](){const _0x2435bf=_0x3d3474;return this[_0x2435bf(0xb5)]['getValue']();}constructor(_0x3d816,_0x321ec7,_0x546432,_0x1bf24d,_0x2c5bb7){const _0x362799=_0x3d3474;super(),this['_unitID']=_0x3d816,this[_0x362799(0x105)]=_0x321ec7,this['_configService']=_0x546432,this[_0x362799(0xc8)]=_0x1bf24d,this[_0x362799(0xe3)]=_0x2c5bb7,W(this,_0x362799(0xb5),new _0x5093e4('idle')),W(this,'status$',this[_0x362799(0xb5)][_0x362799(0xc5)]()),W(this,'_init',!0x1),W(this,_0x362799(0x11b),null),W(this,_0x362799(0xcc),null);}[_0x3d3474(0x128)](){const _0x2deb35=_0x3d3474;var _0x1afb5d;(_0x1afb5d=this[_0x2deb35(0x11b)])==null||_0x1afb5d[_0x2deb35(0x128)](),this[_0x2deb35(0xb5)]['next'](_0x2deb35(0xda)),this[_0x2deb35(0xb5)]['complete']();}[_0x3d3474(0x10f)](){const _0x308af3=_0x3d3474;return this[_0x308af3(0xdc)];}['init'](){const _0x2e7b4d=_0x3d3474;this[_0x2e7b4d(0xdf)]||(this[_0x2e7b4d(0xdf)]=!0x0,this[_0x2e7b4d(0x105)][_0x2e7b4d(0xc4)][_0x2e7b4d(0x117)](_0x440641(this[_0x2e7b4d(0x115)]))[_0x2e7b4d(0x125)](_0x185a62=>{const _0x460fd4=_0x2e7b4d;switch(_0x185a62){case _0x3cfb03[_0x460fd4(0xa5)]:this[_0x460fd4(0x108)]();break;case _0x3cfb03[_0x460fd4(0x123)]:this['_handleOnline']();break;default:}}),this[_0x2e7b4d(0x105)]['event$'][_0x2e7b4d(0x117)](_0x440641(this[_0x2e7b4d(0x115)]))['subscribe'](_0x543dd3=>{const _0x5ea59b=_0x2e7b4d;let {eventID:_0xb96666}=_0x543dd3;switch(_0xb96666){case _0x4ab04f['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x543dd3);break;case _0x4ab04f[_0x5ea59b(0xa3)]:this[_0x5ea59b(0xba)](_0x543dd3);break;case _0x4ab04f['LIVESHARE_TERMINATE']:this[_0x5ea59b(0xa9)]();break;case _0x4ab04f['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x543dd3);break;default:}}));}['tryStartPresenting'](){const _0x4f1cf5=_0x3d3474;this[_0x4f1cf5(0x105)][_0x4f1cf5(0xf0)]({'eventID':_0x4ab04f['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4f1cf5(0xd4)],'userID':this[_0x4f1cf5(0x105)][_0x4f1cf5(0xc9)]()}},this['_unitID']);}['stopPresenting'](){const _0x2f1191=_0x3d3474;this[_0x2f1191(0xdc)]===_0x2f1191(0x110)&&(this[_0x2f1191(0xb5)][_0x2f1191(0xcb)](_0x2f1191(0xda)),this['_collabSession'][_0x2f1191(0xf0)]({'eventID':_0x4ab04f[_0x2f1191(0x11c)],'data':{'unitID':this[_0x2f1191(0xd4)]}},this[_0x2f1191(0xd4)]));}[_0x3d3474(0xf6)](){const _0x3dcbd6=_0x3d3474;this[_0x3dcbd6(0xdc)]===_0x3dcbd6(0x120)&&(this[_0x3dcbd6(0xb5)][_0x3dcbd6(0xcb)](_0x3dcbd6(0xa0)),this['_startFollowing']());}[_0x3d3474(0x9d)](){const _0x44fa81=_0x3d3474;this[_0x44fa81(0xdc)]===_0x44fa81(0xa0)&&this[_0x44fa81(0xb7)]();}[_0x3d3474(0xfc)](_0x14083f){const _0x1e39ca=_0x3d3474;let {presenter:_0x253ead}=_0x14083f['data'],_0x38c459=this['_collabSession']['getMemberID']();this[_0x1e39ca(0xcc)]=_0x253ead,_0x253ead===_0x38c459?(this[_0x1e39ca(0xb7)](),this[_0x1e39ca(0xb3)]()):this[_0x1e39ca(0xdc)]!==_0x1e39ca(0x120)&&(this[_0x1e39ca(0xa1)](),this[_0x1e39ca(0x118)]());}[_0x3d3474(0xcd)](){const _0x222014=_0x3d3474;let _0x1380e4={'eventID':_0x4ab04f[_0x222014(0x10d)]};this[_0x222014(0x105)]['send'](_0x1380e4,this['_unitID']);}['_handleTerminate'](){const _0x509a04=_0x3d3474;this[_0x509a04(0xcc)]=null,this[_0x509a04(0xdc)]!==_0x509a04(0x110)&&this[_0x509a04(0x99)]();}[_0x3d3474(0xb2)](_0x52e952){const _0x3ecd9a=_0x3d3474;if(this[_0x3ecd9a(0xdc)]==='following'&&this[_0x3ecd9a(0xcc)]===_0x52e952[_0x3ecd9a(0x127)]['memberID']){let _0x53f7d0=_0x3686e3(_0x52e952[_0x3ecd9a(0x127)])[_0x3ecd9a(0xdd)][_0x3ecd9a(0xe9)]()[_0x3ecd9a(0xaf)](_0x4bc872=>_0x4bc872['id']===_0x210969['id']);if(_0x53f7d0){let _0x4a712a=_0x53f7d0[_0x3ecd9a(0x97)][_0x3ecd9a(0xbb)],_0x2acb33=_0x53f7d0[_0x3ecd9a(0x97)][_0x3ecd9a(0xc1)]['id'];setTimeout(()=>{const _0x5f21db=_0x3ecd9a;this[_0x5f21db(0xe3)][_0x5f21db(0xb0)](_0x50d6fc['id'],{'unitId':_0x4a712a,'subUnitId':_0x2acb33},{'fromCollab':!0x0});});}}}[_0x3d3474(0xb3)](){const _0x154a81=_0x3d3474;var _0x48bfbe;(_0x48bfbe=this['_commandDisposable'])==null||_0x48bfbe[_0x154a81(0x128)](),this[_0x154a81(0xb5)]['next'](_0x154a81(0x110));let _0x445548=new Map(),_0x53ca0a=this[_0x154a81(0x11b)]=new _0x16da52();_0x53ca0a[_0x154a81(0x104)](_0x479b00(()=>{const _0x318aa0=_0x154a81;_0x445548[_0x318aa0(0x129)](({subject:_0xf248e2,subscription:_0x37f1f3})=>{const _0x5be65d=_0x318aa0;_0x37f1f3[_0x5be65d(0x116)](),_0xf248e2[_0x5be65d(0x100)]();}),_0x445548[_0x318aa0(0xaa)]();})),_0x53ca0a[_0x154a81(0x104)](this['_commandService']['onCommandExecuted'](_0x2428f0=>{const _0x13434c=_0x154a81;if(_0x2428f0[_0x13434c(0xfe)]!==_0x3f9d18[_0x13434c(0x112)]||!this[_0x13434c(0xc8)][_0x13434c(0xc3)](_0x2428f0['id']))return;let {id:_0x33b59d}=_0x2428f0,_0x1e4899;if(_0x445548[_0x13434c(0xbf)](_0x33b59d))_0x1e4899=_0x445548[_0x13434c(0xed)](_0x33b59d)[_0x13434c(0xff)];else{_0x1e4899=new _0x221a48();let _0x488ef2=_0x1e4899[_0x13434c(0x117)](_0x1c63c6(this[_0x13434c(0x11e)][_0x13434c(0xe0)](_0x13434c(0xd5))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x13434c(0x125)](_0x1b332f=>{const _0x1fb5d8=_0x13434c;this[_0x1fb5d8(0x105)][_0x1fb5d8(0xf0)]({'eventID':_0x4ab04f[_0x1fb5d8(0xa3)],'data':{'unitID':this[_0x1fb5d8(0xd4)],'operations':{[_0x1b332f['id']]:{'id':_0x1b332f['id'],'params':JSON[_0x1fb5d8(0x113)](_0x1b332f[_0x1fb5d8(0x97)])}}}},this['_unitID']);});_0x445548[_0x13434c(0x103)](_0x33b59d,{'subject':_0x1e4899,'subscription':_0x488ef2});}_0x1e4899[_0x13434c(0xcb)](_0x2428f0);})),this[_0x154a81(0xc8)][_0x154a81(0xd9)](this[_0x154a81(0xd4)])[_0x154a81(0x129)](_0x28b206=>this[_0x154a81(0x105)]['send']({'eventID':_0x4ab04f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x154a81(0xd4)],'operations':{[_0x28b206['id']]:{'id':_0x28b206['id'],'params':JSON[_0x154a81(0x113)](_0x28b206[_0x154a81(0x97)])}}}},this[_0x154a81(0xd4)]));}[_0x3d3474(0xa1)](){const _0x1fa1c4=_0x3d3474;var _0x8f4b8;this[_0x1fa1c4(0xb5)][_0x1fa1c4(0xcb)](_0x1fa1c4(0xda)),(_0x8f4b8=this[_0x1fa1c4(0x11b)])==null||_0x8f4b8[_0x1fa1c4(0x128)](),this[_0x1fa1c4(0x11b)]=null;}[_0x3d3474(0x118)](){const _0x499823=_0x3d3474;var _0x517d13;(_0x517d13=this['_commandDisposable'])==null||_0x517d13['dispose'](),this['_status$'][_0x499823(0xcb)](_0x499823(0xa0));}[_0x3d3474(0x99)](){const _0x4addee=_0x3d3474;var _0x9c727b;this['_status$'][_0x4addee(0xcb)](_0x4addee(0xda)),(_0x9c727b=this[_0x4addee(0x11b)])==null||_0x9c727b[_0x4addee(0x128)](),this[_0x4addee(0x11b)]=null;}[_0x3d3474(0xb7)](){const _0x2300f9=_0x3d3474;var _0x4bd277;this[_0x2300f9(0xb5)][_0x2300f9(0xcb)](_0x2300f9(0x120)),(_0x4bd277=this[_0x2300f9(0x11b)])==null||_0x4bd277[_0x2300f9(0x128)]();}['_handleOperation'](_0x243f81){const _0x2fb1e7=_0x3d3474;if(['presenting',_0x2fb1e7(0x120),_0x2fb1e7(0xd7)][_0x2fb1e7(0x101)](this['_status'])||!_0x243f81[_0x2fb1e7(0x127)]['presenter']||_0x243f81[_0x2fb1e7(0x127)][_0x2fb1e7(0xf4)]===this['_collabSession'][_0x2fb1e7(0xc9)]())return;this[_0x2fb1e7(0xdc)]===_0x2fb1e7(0xda)&&this[_0x2fb1e7(0x118)]();let _0x4b3ac3=_0x243f81[_0x2fb1e7(0x127)][_0x2fb1e7(0xa2)];Object[_0x2fb1e7(0xef)](_0x4b3ac3)[_0x2fb1e7(0x129)](_0x53498c=>{const _0x2bde56=_0x2fb1e7;this[_0x2bde56(0xe3)][_0x2bde56(0xb0)](_0x53498c['id'],_0x53498c['params']?JSON[_0x2bde56(0x11a)](_0x53498c[_0x2bde56(0x97)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x309719=_0x3d3474;var _0x2f1e5f;this[_0x309719(0xb5)][_0x309719(0xcb)]('offline'),(_0x2f1e5f=this['_commandDisposable'])==null||_0x2f1e5f[_0x309719(0x128)]();}[_0x3d3474(0xce)](){const _0x5857f7=_0x3d3474;this[_0x5857f7(0xb5)][_0x5857f7(0xcb)]('idle'),this['_fetchOperations']();}};Y=q([K(0x2,_0x5cb103),K(0x3,_0x23d73f(G)),K(0x4,_0x54fef7)],Y);var se=_0x3d3474(0xec),ce=_0x3d3474(0xf2);const X={};let Z=class extends _0x37dab6{constructor(_0xe74b0b){const _0x9f9776=_0x3d3474;super(),this['_liveShareService']=_0xe74b0b,this[_0x9f9776(0xdf)]();}[_0x3d3474(0xdf)](){const _0x511290=_0x3d3474;[_0x4b25e1['id'],_0x2225eb['id'],_0x50d6fc['id']][_0x511290(0x129)](_0x39ca4d=>{const _0x5bfb2c=_0x511290;this[_0x5bfb2c(0xfd)](this[_0x5bfb2c(0xc8)][_0x5bfb2c(0x10e)](_0x39ca4d));});}};Z=q([K(0x0,_0x23d73f(G))],Z);function le(){const _0x70a4ee=_0x3d3474;let _0x5684e9=_0x4ab0a4(J),_0x2dc67a=_0x4ab0a4(_0x58af8f),_0x94a27a=_0x1ea96e(()=>_0x2dc67a[_0x70a4ee(0xc0)](_0x280b3d[_0x70a4ee(0xee)]),void 0x0,!0x1,[]),_0x13f449=_0x1ea96e(_0x1fe622(()=>_0x94a27a?_0x4f094b(()=>_0x2dccd7(_0x5684e9[_0x70a4ee(0xbe)](_0x94a27a[_0x70a4ee(0xca)]()))):_0x2cbaa5(null),[_0x94a27a,_0x5684e9]),null),_0x2aa1d3=_0x1ea96e(_0x13f449?()=>_0x13f449[_0x70a4ee(0xd8)]:null,'idle',!0x1,[_0x13f449]);return _0x13f449?_0x5bd8d4(_0x4e4083,{'align':_0x70a4ee(0xe8),'disabled':_0x2aa1d3===_0x70a4ee(0xd7),'className':_0x70a4ee(0xcf),'overlay':_0x5bd8d4(ue,{'status':_0x2aa1d3,'coordinator':_0x13f449}),'children':_0x5bd8d4(_0x70a4ee(0xeb),{'className':_0x1a3bc1('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2aa1d3===_0x70a4ee(0xd7),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2aa1d3!==_0x70a4ee(0xd7)}),'type':_0x70a4ee(0xeb),'children':_0x5bd8d4(_0x16c49d,{})})}):null;}function ue(_0x2417c6){const _0x5a73ff=_0x3d3474;let {status:_0x3067b2,coordinator:_0x4f35dd}=_0x2417c6;switch(_0x3067b2){case _0x5a73ff(0xda):return _0x5bd8d4(de,{'coordinator':_0x4f35dd});case'following':return _0x5bd8d4(fe,{'coordinator':_0x4f35dd});case _0x5a73ff(0x120):return _0x5bd8d4(pe,{'coordinator':_0x4f35dd});case _0x5a73ff(0xd7):return _0x5bd8d4(he,{});case _0x5a73ff(0x110):return _0x5bd8d4(me,{'coordinator':_0x4f35dd});default:return null;}}function de(_0x34057b){const _0x1f9013=_0x3d3474;let {coordinator:_0x4a7dfa}=_0x34057b;return _0x352f4e(_0x21d3a1,{'children':[_0x5bd8d4('div',{'className':_0x1f9013(0xf5),'children':_0x1f9013(0x114)}),_0x5bd8d4(_0x1bffb1,{'onClick':()=>_0x4a7dfa['tryStartPresenting'](),'children':'Start'})]});}function fe(_0x39547b){const _0x1d1f60=_0x3d3474;let {coordinator:_0xb6eab}=_0x39547b;return _0x352f4e(_0x21d3a1,{'children':[_0x5bd8d4(_0x1d1f60(0x10a),{'className':_0x1d1f60(0xf5),'children':_0x1d1f60(0xbc)}),_0x5bd8d4(_0x1bffb1,{'onClick':()=>_0xb6eab[_0x1d1f60(0x9d)](),'children':_0x1d1f60(0x119)})]});}function pe(_0x4ac77a){const _0x22f405=_0x3d3474;let {coordinator:_0x87f1e2}=_0x4ac77a;return _0x352f4e(_0x21d3a1,{'children':[_0x5bd8d4('div',{'className':_0x22f405(0xf5),'children':_0x22f405(0xc7)}),_0x5bd8d4(_0x1bffb1,{'variant':_0x22f405(0xd0),'onClick':()=>_0x87f1e2[_0x22f405(0xf6)](),'children':_0x22f405(0xf8)})]});}function me(_0x5d38b0){const _0xcc506e=_0x3d3474;let {coordinator:_0x28b1e9}=_0x5d38b0;return _0x352f4e(_0x21d3a1,{'children':[_0x5bd8d4(_0xcc506e(0x10a),{'className':_0xcc506e(0xf5),'children':_0xcc506e(0xad)}),_0x5bd8d4(_0x1bffb1,{'variant':'default','onClick':()=>_0x28b1e9[_0xcc506e(0xa8)](),'children':'Stop\x20presenting'})]});}function he(){return _0x5bd8d4(_0x21d3a1,{'children':'You\x27are\x20offline.'});}let Q=class extends _0x37dab6{constructor(_0x793681,_0x2620de){const _0x7491ee=_0x3d3474;super(),this[_0x7491ee(0xfb)]=_0x793681,this[_0x7491ee(0xf1)]=_0x2620de,this['_mountLiveShare']();}[_0x3d3474(0xd6)](){const _0x5356d9=_0x3d3474;this[_0x5356d9(0xfd)](this[_0x5356d9(0xf1)][_0x5356d9(0xde)](_0x342367['HEADER_MENU'],()=>_0x380dde(le,this[_0x5356d9(0xfb)])));}};Q=q([K(0x0,_0x23d73f(_0x2866b9)),K(0x1,_0x320286)],Q);let $=class extends _0x80eeb6{constructor(_0x30f7d1=X,_0x3577bf,_0x125926){const _0xbf9790=_0x3d3474;super(),this['_config']=_0x30f7d1,this[_0xbf9790(0xfb)]=_0x3577bf,this['_configService']=_0x125926;let {..._0x499205}=_0x1647dc({},X,this[_0xbf9790(0x12a)]);this['_configService']['setConfig'](_0xbf9790(0xa4),_0x499205);}[_0x3d3474(0xfa)](){const _0xa30044=_0x3d3474;_0x3b9a91(this[_0xa30044(0xfb)],_0x230d60([[G],[J],[Z],[Q]],this[_0xa30044(0x12a)][_0xa30044(0x11d)])),_0x1bd490(this[_0xa30044(0xfb)],[[Z]]);}[_0x3d3474(0x109)](){const _0x2e3b99=_0x3d3474;_0x1bd490(this[_0x2e3b99(0xfb)],[[Q]]);}};W($,_0x3d3474(0xfe),_0x280b3d['UNIVER_UNKNOWN']),W($,_0x3d3474(0x9f),_0x3d3474(0xe7)),W($,_0x3d3474(0x126),se),W($,_0x3d3474(0xf3),ce),$=q([_0x1df6e6(_0x1b707d,_0x169e26),K(0x1,_0x23d73f(_0x2866b9)),K(0x2,_0x5cb103)],$);export{J as LiveShareController,oe as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0xd4a3(_0x4e1c86,_0x4fd494){_0x4e1c86=_0x4e1c86-0x15c;const _0x3cec04=_0x3cec();let _0xd4a39e=_0x3cec04[_0x4e1c86];return _0xd4a39e;}const _0x51148e=_0xd4a3;(function(_0x2ca478,_0x4cb6ee){const _0x1f30b1=_0xd4a3,_0x5eea3a=_0x2ca478();while(!![]){try{const _0x4f892d=-parseInt(_0x1f30b1(0x15c))/0x1+-parseInt(_0x1f30b1(0x16e))/0x2*(parseInt(_0x1f30b1(0x16d))/0x3)+-parseInt(_0x1f30b1(0x17c))/0x4+parseInt(_0x1f30b1(0x167))/0x5*(-parseInt(_0x1f30b1(0x164))/0x6)+parseInt(_0x1f30b1(0x17b))/0x7*(-parseInt(_0x1f30b1(0x175))/0x8)+-parseInt(_0x1f30b1(0x17d))/0x9*(-parseInt(_0x1f30b1(0x165))/0xa)+parseInt(_0x1f30b1(0x169))/0xb;if(_0x4f892d===_0x4cb6ee)break;else _0x5eea3a['push'](_0x5eea3a['shift']());}catch(_0x7062d8){_0x5eea3a['push'](_0x5eea3a['shift']());}}}(_0x3cec,0x2c36f));import{LiveShareController as _0x539a72,LiveShareStatus as _0x125f72}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x4fee72,UniverInstanceType as _0x4fc52d}from'@univerjs/core';import{FEnum as _0x4ccc85,FUniver as _0x1da31e}from'@univerjs/core/facade';function o(_0x5cf5ed){'@babel/helpers - typeof';const _0x16c2fc=_0xd4a3;return o=typeof Symbol==_0x16c2fc(0x176)&&typeof Symbol[_0x16c2fc(0x177)]==_0x16c2fc(0x168)?function(_0x5b13d6){return typeof _0x5b13d6;}:function(_0x1b8504){const _0x4a2404=_0x16c2fc;return _0x1b8504&&typeof Symbol==_0x4a2404(0x176)&&_0x1b8504[_0x4a2404(0x161)]===Symbol&&_0x1b8504!==Symbol['prototype']?'symbol':typeof _0x1b8504;},o(_0x5cf5ed);}function s(_0x197109,_0x23fc0b){const _0x548271=_0xd4a3;if(o(_0x197109)!=_0x548271(0x16b)||!_0x197109)return _0x197109;var _0x5e3cae=_0x197109[Symbol[_0x548271(0x179)]];if(_0x5e3cae!==void 0x0){var _0x36ce41=_0x5e3cae[_0x548271(0x163)](_0x197109,_0x23fc0b||_0x548271(0x160));if(o(_0x36ce41)!=_0x548271(0x16b))return _0x36ce41;throw TypeError(_0x548271(0x174));}return(_0x23fc0b==='string'?String:Number)(_0x197109);}function c(_0x4b0b94){const _0x289355=_0xd4a3;var _0x146bdb=s(_0x4b0b94,'string');return o(_0x146bdb)==_0x289355(0x168)?_0x146bdb:_0x146bdb+'';}function l(_0x217751,_0x3910ff,_0x1c7d63){const _0x2ab363=_0xd4a3;return(_0x3910ff=c(_0x3910ff))in _0x217751?Object[_0x2ab363(0x16a)](_0x217751,_0x3910ff,{'value':_0x1c7d63,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x217751[_0x3910ff]=_0x1c7d63,_0x217751;}var u=class extends _0x1da31e{constructor(..._0x592c4a){super(..._0x592c4a),l(this,'_liveShareController',void 0x0);}[_0x51148e(0x16c)](_0x3c181e){const _0x56a95f=_0x51148e;this[_0x56a95f(0x172)]=_0x3c181e['get'](_0x539a72);}['getLiveShareStatus'](){const _0x5a96c5=_0x51148e;let _0x57432a=this[_0x5a96c5(0x178)][_0x5a96c5(0x180)](_0x4fee72)[_0x5a96c5(0x170)](_0x4fc52d[_0x5a96c5(0x17e)]);if(!_0x57432a)throw Error(_0x5a96c5(0x15f));let _0x43118b=_0x57432a[_0x5a96c5(0x15e)](),_0x18af2a=this[_0x5a96c5(0x172)]['getLiveShareCoordinatorSync'](_0x43118b);return(_0x18af2a==null?void 0x0:_0x18af2a['getStatus']())??_0x125f72[_0x5a96c5(0x171)];}['startFollowing'](){const _0x1ca474=_0x51148e;let _0x7dadd6=this[_0x1ca474(0x178)][_0x1ca474(0x180)](_0x4fee72)['getCurrentUnitOfType'](_0x4fc52d[_0x1ca474(0x17e)]);if(!_0x7dadd6)throw Error('No\x20active\x20workbook\x20found.');let _0x7757bd=_0x7dadd6[_0x1ca474(0x15e)](),_0x43ac26=this['_liveShareController'][_0x1ca474(0x162)](_0x7757bd);if(!_0x43ac26)throw Error(_0x1ca474(0x17f));_0x43ac26['startFollowing']();}[_0x51148e(0x166)](){const _0x1b40a0=_0x51148e;let _0xd0ebcc=this[_0x1b40a0(0x178)][_0x1b40a0(0x180)](_0x4fee72)[_0x1b40a0(0x170)](_0x4fc52d[_0x1b40a0(0x17e)]);if(!_0xd0ebcc)throw Error('No\x20active\x20workbook\x20found.');let _0x413187=_0xd0ebcc[_0x1b40a0(0x15e)](),_0x5d20f7=this[_0x1b40a0(0x172)]['getLiveShareCoordinatorSync'](_0x413187);if(!_0x5d20f7)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5d20f7[_0x1b40a0(0x166)]();}[_0x51148e(0x17a)](){const _0x3eb82c=_0x51148e;let _0x214f9b=this[_0x3eb82c(0x178)]['get'](_0x4fee72)['getCurrentUnitOfType'](_0x4fc52d[_0x3eb82c(0x17e)]);if(!_0x214f9b)throw Error(_0x3eb82c(0x15f));let _0x49d350=_0x214f9b[_0x3eb82c(0x15e)](),_0x54aca3=this[_0x3eb82c(0x172)][_0x3eb82c(0x162)](_0x49d350);if(!_0x54aca3)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x54aca3[_0x3eb82c(0x173)]();}[_0x51148e(0x15d)](){const _0x1ebd7d=_0x51148e;let _0x245298=this[_0x1ebd7d(0x178)][_0x1ebd7d(0x180)](_0x4fee72)[_0x1ebd7d(0x170)](_0x4fc52d[_0x1ebd7d(0x17e)]);if(!_0x245298)throw Error(_0x1ebd7d(0x15f));let _0x1db68b=_0x245298[_0x1ebd7d(0x15e)](),_0x498815=this[_0x1ebd7d(0x172)][_0x1ebd7d(0x162)](_0x1db68b);if(!_0x498815)throw Error(_0x1ebd7d(0x17f));_0x498815[_0x1ebd7d(0x15d)]();}};function _0x3cec(){const _0x278e2d=['91tnNKBV','1238952ZFMTxC','2075130MzhNEV','UNIVER_SHEET','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','get','341243qjNsyl','stopPresenting','getUnitId','No\x20active\x20workbook\x20found.','default','constructor','getLiveShareCoordinatorSync','call','28590FuHuNd','10MPoNaS','stopFollowing','5PYYAAS','symbol','11272767TvZgqW','defineProperty','object','_initialize','3laRSsz','617648oYwilT','extend','getCurrentUnitOfType','IDLE','_liveShareController','tryStartPresenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','67504OJGhmd','function','iterator','_injector','toPrimitive','startPresenting'];_0x3cec=function(){return _0x278e2d;};return _0x3cec();}_0x1da31e[_0x51148e(0x16f)](u);var d=class extends _0x4ccc85{get['LiveShareStatusEnum'](){return _0x125f72;}};_0x4ccc85[_0x51148e(0x16f)](d);export{};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xcd3c43=_0x29fa;(function(_0x40ac36,_0x1da1a9){const _0x5b52eb=_0x29fa,_0x1bba4d=_0x40ac36();while(!![]){try{const _0x19c2cc=parseInt(_0x5b52eb(0x145))/0x1+-parseInt(_0x5b52eb(0x150))/0x2+-parseInt(_0x5b52eb(0x132))/0x3*(parseInt(_0x5b52eb(0x17c))/0x4)+parseInt(_0x5b52eb(0x102))/0x5+parseInt(_0x5b52eb(0x11b))/0x6+parseInt(_0x5b52eb(0x138))/0x7+-parseInt(_0x5b52eb(0x175))/0x8;if(_0x19c2cc===_0x1da1a9)break;else _0x1bba4d['push'](_0x1bba4d['shift']());}catch(_0x151428){_0x1bba4d['push'](_0x1bba4d['shift']());}}}(_0x4350,0x4c64f));import{CollaborationEvent as _0x3756a6,parseProtocolChangeset as _0x540c5a}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x598ce3,SessionStatus as _0x4d69f8,UniverCollaborationClientPlugin as _0x337bb8}from'@univerjs-pro/collaboration-client';import{CommandType as _0x370a98,DependentOn as _0x3f835d,Disposable as _0x3d4065,DisposableCollection as _0x1d1071,ICommandService as _0x2aa954,IConfigService as _0x13ab7e,IUniverInstanceService as _0x5ab737,Inject as _0x130c38,Injector as _0x189051,Plugin as _0x5f36ae,RxDisposable as _0x1a82c3,UniverInstanceType as _0x3f510f,merge as _0x3df356,mergeOverrideWithDependencies as _0x1f0e7f,registerDependencies as _0x24986b,toDisposable as _0xf8e6d4,touchDependencies as _0x1c595d}from'@univerjs/core';import{InsertSheetMutation as _0x39f5b2,SetWorksheetActiveOperation as _0x2b0483}from'@univerjs/sheets';import{BehaviorSubject as _0x23f9ae,Subject as _0x20c350,defer as _0x4386d9,from as _0xa7f912,of as _0x363ac9}from'rxjs';import{takeUntil as _0x223cee,throttleTime as _0x364328}from'rxjs/operators';import{SetScrollOperation as _0x5ae29f,SetZoomRatioOperation as _0x4bc340}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x72c6df,IUIPartsService as _0x3d33a9,connectInjector as _0x33a9bb,useDependency as _0x361196,useObservable as _0x313630}from'@univerjs/ui';import{Button as _0x5b7c15,Dropdown as _0x5f2dd7,clsx as _0x1b4e86}from'@univerjs/design';import{LiveShareIcon as _0xbe8107}from'@univerjs/icons';function _0x29fa(_0x1d5906,_0xf05a33){_0x1d5906=_0x1d5906-0xed;const _0x435077=_0x4350();let _0x29fa14=_0x435077[_0x1d5906];return _0x29fa14;}import{useMemo as _0x1c5235}from'react';import{Fragment as _0x114c30,jsx as _0x76736e,jsxs as _0x46d651}from'react/jsx-runtime';function z(_0x18187e){'@babel/helpers - typeof';const _0x53ca80=_0x29fa;return z=typeof Symbol=='function'&&typeof Symbol[_0x53ca80(0xf4)]==_0x53ca80(0x169)?function(_0x5dd149){return typeof _0x5dd149;}:function(_0x1fa963){const _0x1875b7=_0x53ca80;return _0x1fa963&&typeof Symbol=='function'&&_0x1fa963[_0x1875b7(0xf0)]===Symbol&&_0x1fa963!==Symbol['prototype']?'symbol':typeof _0x1fa963;},z(_0x18187e);}function B(_0x1ad699,_0x3079ff){const _0x30cb2b=_0x29fa;if(z(_0x1ad699)!='object'||!_0x1ad699)return _0x1ad699;var _0x1b3e85=_0x1ad699[Symbol[_0x30cb2b(0x127)]];if(_0x1b3e85!==void 0x0){var _0x17039d=_0x1b3e85[_0x30cb2b(0x119)](_0x1ad699,_0x3079ff||_0x30cb2b(0x105));if(z(_0x17039d)!=_0x30cb2b(0x12c))return _0x17039d;throw TypeError(_0x30cb2b(0x135));}return(_0x3079ff===_0x30cb2b(0x134)?String:Number)(_0x1ad699);}function V(_0x44e39d){const _0x3b0218=_0x29fa;var _0x400d5b=B(_0x44e39d,_0x3b0218(0x134));return z(_0x400d5b)==_0x3b0218(0x169)?_0x400d5b:_0x400d5b+'';}function H(_0x3a9b8b,_0x117851,_0x334320){const _0xed25aa=_0x29fa;return(_0x117851=V(_0x117851))in _0x3a9b8b?Object[_0xed25aa(0xfa)](_0x3a9b8b,_0x117851,{'value':_0x334320,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a9b8b[_0x117851]=_0x334320,_0x3a9b8b;}var U=class extends _0x3d4065{constructor(..._0x50b86d){const _0x26b38b=_0x29fa;super(..._0x50b86d),H(this,_0x26b38b(0x164),new Set()),H(this,_0x26b38b(0x10e),new Set());}[_0xcd3c43(0x159)](_0x4b2f96){const _0x29d865=_0xcd3c43;return this['_sharedOperations']['add'](_0x4b2f96),_0xf8e6d4(()=>this[_0x29d865(0x164)][_0x29d865(0xf3)](_0x4b2f96));}['registerInitialStateReporter'](_0x23ddda){const _0x4fced5=_0xcd3c43;return this[_0x4fced5(0x10e)][_0x4fced5(0x16d)](_0x23ddda),_0xf8e6d4(()=>this[_0x4fced5(0x10e)][_0x4fced5(0xf3)](_0x23ddda));}[_0xcd3c43(0x13b)](_0x152480){const _0x2a710b=_0xcd3c43;return this[_0x2a710b(0x164)][_0x2a710b(0x10a)](_0x152480);}[_0xcd3c43(0x170)](_0x286563){const _0x1af0ab=_0xcd3c43;return Array[_0x1af0ab(0xff)](this[_0x1af0ab(0x10e)])[_0x1af0ab(0xfc)](_0x162266=>_0x162266(_0x286563));}};function W(_0x40771d,_0x104f5f){return function(_0x1532f5,_0x40affd){_0x104f5f(_0x1532f5,_0x40affd,_0x40771d);};}function _0x4350(){const _0x46ecb9=['3215368BdljUd','LIVESHARE_REQUEST_HOST','LIVESHARE_TERMINATE','_handleOffline','UNIVER_UNKNOWN','Present\x20this\x20document','_injector','4640RwMrgG','get','_fetchOperations','_status','text','NEW_CHANGESETS','includes','_stopFollowing','constructor','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerComponent','delete','iterator','presenting','presenter','FOLLOWING','length','getLiveShareCoordinatorSync','defineProperty','dispose$','map','SAME_OPERATION_SHARE_INTERVAL','status$','from','_presenter','sheet','721190pMwIgv','params','getUnitId','default','Start','startFollowing','getOwnPropertyDescriptor','init','has','requireSession','find','set','_reporters','live-share.config','idle','_entities','forEach','_univerInstanceService','clear','LIVESHARE_FETCH_OPERATIONS','values','Start\x20following','following','call','override','2410068ZLBEGh','not-following','div','pluginName','unit','_status$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','button','_handleTerminate','end','executeCommand','_unitID','toPrimitive','tryStartPresenting','_mountLiveShare','_handleNewHost','_handleNewChangeSets','object','send','_startPresenting','event$','_startLiveShareCoordinator','IDLE','1137FWdZQH','mutations','string','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_uiPartsService','unitId','1893220EbDJIF','OPERATION','version','shouldShareOperation','next','OFFLINE','Stop\x20presenting','LIVESHARE_OPERATION','_handleOnline','getLiveShareCoordinator','getCurrentTypeOfUnit$','dispose','onCommandExecuted','537041rnxhUB','_configService','@univerjs-pro/live-share','stopPresenting','_collabSessionService','You\x27re\x20presenting\x20the\x20document','disposeWithMe','getTypeOfUnitDisposed$','subject','getMemberID','UNIVER_LIVE_SHARE_PLUGIN','397890TLXqoa','reverse','_liveShareService','_stopPresenting','getStatus','asObservable','data','offline','1.0.0-alpha.7','registerSharedOperation','getTypeOfUnitAdded$','decorate','subscribe','pipe','_commandDisposable','_commandService','onRendered','_init','_handleOperation','LIVESHARE_NEW_HOST','_sharedOperations','sessionStatus$','HEADER_MENU','stringify','You\x27are\x20offline.','symbol','_startFollowing','packageName','You\x27re\x20not\x20following\x20the\x20presenter','add','_config','ONLINE','getInitialStates','Stop\x20following','_collabSession','UNIVER_SHEET','stopFollowing'];_0x4350=function(){return _0x46ecb9;};return _0x4350();}function G(_0x44d994,_0x4e4905,_0x260325,_0x1e3fd6){const _0x340b73=_0xcd3c43;var _0x5a0c03=arguments['length'],_0xcb171e=_0x5a0c03<0x3?_0x4e4905:_0x1e3fd6===null?_0x1e3fd6=Object[_0x340b73(0x108)](_0x4e4905,_0x260325):_0x1e3fd6,_0x230b64;if(typeof Reflect==_0x340b73(0x12c)&&typeof Reflect[_0x340b73(0x15b)]=='function')_0xcb171e=Reflect[_0x340b73(0x15b)](_0x44d994,_0x4e4905,_0x260325,_0x1e3fd6);else{for(var _0xd913b=_0x44d994[_0x340b73(0xf8)]-0x1;_0xd913b>=0x0;_0xd913b--)(_0x230b64=_0x44d994[_0xd913b])&&(_0xcb171e=(_0x5a0c03<0x3?_0x230b64(_0xcb171e):_0x5a0c03>0x3?_0x230b64(_0x4e4905,_0x260325,_0xcb171e):_0x230b64(_0x4e4905,_0x260325))||_0xcb171e);}return _0x5a0c03>0x3&&_0xcb171e&&Object['defineProperty'](_0x4e4905,_0x260325,_0xcb171e),_0xcb171e;}let K=class extends _0x1a82c3{constructor(_0x66f1cd,_0x6a38c6,_0x4507c5){const _0x11f408=_0xcd3c43;super(),this[_0x11f408(0x113)]=_0x66f1cd,this[_0x11f408(0x17b)]=_0x6a38c6,this[_0x11f408(0x149)]=_0x4507c5,H(this,_0x11f408(0x111),new Map()),this[_0x11f408(0x161)]();}async['getLiveShareCoordinator'](_0x9ec3df){const _0x40bba8=_0xcd3c43;return this[_0x40bba8(0x111)][_0x40bba8(0x10a)](_0x9ec3df)||await this[_0x40bba8(0x130)](_0x9ec3df),this[_0x40bba8(0x111)]['get'](_0x9ec3df);}[_0xcd3c43(0xf9)](_0x1b69ca){const _0x2a7f29=_0xcd3c43;var _0x35d8d8;return(_0x35d8d8=this[_0x2a7f29(0x111)][_0x2a7f29(0x17d)](_0x1b69ca))==null?null:_0x35d8d8;}[_0xcd3c43(0x161)](){const _0x394fc1=_0xcd3c43;this[_0x394fc1(0x113)][_0x394fc1(0x15a)](_0x3f510f[_0x394fc1(0x173)])[_0x394fc1(0x15d)](_0x223cee(this[_0x394fc1(0xfb)]))[_0x394fc1(0x15c)](async _0x1b0875=>{const _0x40f879=_0x394fc1;let _0x2ee398=_0x1b0875[_0x40f879(0x11f)]['getUnitId']();this[_0x40f879(0x111)][_0x40f879(0x10a)](_0x2ee398)||this[_0x40f879(0x130)](_0x2ee398);}),this[_0x394fc1(0x113)][_0x394fc1(0x14c)](_0x3f510f[_0x394fc1(0x173)])['pipe'](_0x223cee(this[_0x394fc1(0xfb)]))[_0x394fc1(0x15c)](_0x18ffae=>{const _0x4c87d1=_0x394fc1;let _0x38847e=_0x18ffae[_0x4c87d1(0x104)](),_0x113e2f=this[_0x4c87d1(0x111)][_0x4c87d1(0x17d)](_0x38847e);_0x113e2f==null||_0x113e2f[_0x4c87d1(0x143)]();});}async['_startLiveShareCoordinator'](_0x535cf4){const _0x4ddb46=_0xcd3c43;let _0x322371=await this[_0x4ddb46(0x149)][_0x4ddb46(0x10b)](_0x535cf4),_0x5bef85=this[_0x4ddb46(0x17b)]['createInstance'](J,_0x535cf4,_0x322371);return _0x5bef85[_0x4ddb46(0x109)](),this[_0x4ddb46(0x111)][_0x4ddb46(0x10d)](_0x535cf4,_0x5bef85),_0x5bef85;}};K=G([W(0x0,_0x5ab737),W(0x1,_0x130c38(_0x189051)),W(0x2,_0x130c38(_0x598ce3))],K);let q=function(_0x10d8b1){const _0x347c62=_0xcd3c43;return _0x10d8b1[_0x347c62(0x13d)]=_0x347c62(0x157),_0x10d8b1[_0x347c62(0x131)]=_0x347c62(0x110),_0x10d8b1[_0x347c62(0xf7)]=_0x347c62(0x118),_0x10d8b1['NOT_FOLLOWING']=_0x347c62(0x11c),_0x10d8b1['PRESENTING']=_0x347c62(0xf5),_0x10d8b1;}({}),J=class extends _0x1a82c3{get[_0xcd3c43(0x17f)](){const _0x256e13=_0xcd3c43;return this[_0x256e13(0x120)]['getValue']();}constructor(_0x280c2a,_0x2a261b,_0x486466,_0x4b72c5,_0x56b6d7){const _0x57336e=_0xcd3c43;super(),this['_unitID']=_0x280c2a,this[_0x57336e(0x172)]=_0x2a261b,this[_0x57336e(0x146)]=_0x486466,this[_0x57336e(0x152)]=_0x4b72c5,this[_0x57336e(0x15f)]=_0x56b6d7,H(this,_0x57336e(0x120),new _0x23f9ae('idle')),H(this,_0x57336e(0xfe),this['_status$'][_0x57336e(0x155)]()),H(this,_0x57336e(0x161),!0x1),H(this,_0x57336e(0x15e),null),H(this,_0x57336e(0x100),null);}[_0xcd3c43(0x143)](){const _0x9fbe8e=_0xcd3c43;var _0x4bcc83;(_0x4bcc83=this[_0x9fbe8e(0x15e)])==null||_0x4bcc83['dispose'](),this[_0x9fbe8e(0x120)][_0x9fbe8e(0x13c)](_0x9fbe8e(0x110)),this[_0x9fbe8e(0x120)]['complete']();}[_0xcd3c43(0x154)](){const _0x2a541f=_0xcd3c43;return this[_0x2a541f(0x17f)];}['init'](){const _0x55f9e8=_0xcd3c43;this['_init']||(this[_0x55f9e8(0x161)]=!0x0,this[_0x55f9e8(0x172)][_0x55f9e8(0x165)]['pipe'](_0x223cee(this['dispose$']))[_0x55f9e8(0x15c)](_0x344196=>{const _0x598087=_0x55f9e8;switch(_0x344196){case _0x4d69f8[_0x598087(0x13d)]:this[_0x598087(0x178)]();break;case _0x4d69f8[_0x598087(0x16f)]:this[_0x598087(0x140)]();break;default:}}),this[_0x55f9e8(0x172)][_0x55f9e8(0x12f)][_0x55f9e8(0x15d)](_0x223cee(this[_0x55f9e8(0xfb)]))['subscribe'](_0x2a721a=>{const _0x316b55=_0x55f9e8;let {eventID:_0x57ce27}=_0x2a721a;switch(_0x57ce27){case _0x3756a6[_0x316b55(0x163)]:this[_0x316b55(0x12a)](_0x2a721a);break;case _0x3756a6['LIVESHARE_OPERATION']:this[_0x316b55(0x162)](_0x2a721a);break;case _0x3756a6[_0x316b55(0x177)]:this[_0x316b55(0x123)]();break;case _0x3756a6[_0x316b55(0xed)]:this[_0x316b55(0x12b)](_0x2a721a);break;default:}}));}[_0xcd3c43(0x128)](){const _0x8f65c9=_0xcd3c43;this[_0x8f65c9(0x172)][_0x8f65c9(0x12d)]({'eventID':_0x3756a6[_0x8f65c9(0x176)],'data':{'unitID':this['_unitID'],'userID':this[_0x8f65c9(0x172)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x8e4143=_0xcd3c43;this[_0x8e4143(0x17f)]==='presenting'&&(this[_0x8e4143(0x120)]['next']('idle'),this[_0x8e4143(0x172)][_0x8e4143(0x12d)]({'eventID':_0x3756a6[_0x8e4143(0x177)],'data':{'unitID':this[_0x8e4143(0x126)]}},this[_0x8e4143(0x126)]));}['startFollowing'](){const _0xe93ada=_0xcd3c43;this[_0xe93ada(0x17f)]===_0xe93ada(0x11c)&&(this[_0xe93ada(0x120)][_0xe93ada(0x13c)](_0xe93ada(0x118)),this[_0xe93ada(0x16a)]());}[_0xcd3c43(0x174)](){const _0x221bbd=_0xcd3c43;this[_0x221bbd(0x17f)]===_0x221bbd(0x118)&&this[_0x221bbd(0xef)]();}[_0xcd3c43(0x12a)](_0x1fecb4){const _0x1caadb=_0xcd3c43;let {presenter:_0x283db7}=_0x1fecb4[_0x1caadb(0x156)],_0x47fa87=this[_0x1caadb(0x172)][_0x1caadb(0x14e)]();this[_0x1caadb(0x100)]=_0x283db7,_0x283db7===_0x47fa87?(this[_0x1caadb(0xef)](),this['_startPresenting']()):this['_status']!==_0x1caadb(0x11c)&&(this[_0x1caadb(0x153)](),this[_0x1caadb(0x16a)]());}[_0xcd3c43(0x17e)](){const _0x1d0532=_0xcd3c43;let _0x11c7a4={'eventID':_0x3756a6[_0x1d0532(0x115)]};this[_0x1d0532(0x172)][_0x1d0532(0x12d)](_0x11c7a4,this[_0x1d0532(0x126)]);}[_0xcd3c43(0x123)](){const _0x5cee8f=_0xcd3c43;this[_0x5cee8f(0x100)]=null,this[_0x5cee8f(0x17f)]!=='presenting'&&this['_beIdle']();}[_0xcd3c43(0x12b)](_0x2a1f61){const _0x221cc7=_0xcd3c43;if(this['_status']===_0x221cc7(0x118)&&this[_0x221cc7(0x100)]===_0x2a1f61[_0x221cc7(0x156)]['memberID']){let _0x92cfcb=_0x540c5a(_0x2a1f61[_0x221cc7(0x156)])[_0x221cc7(0x133)][_0x221cc7(0x151)]()[_0x221cc7(0x10c)](_0xb0e452=>_0xb0e452['id']===_0x39f5b2['id']);if(_0x92cfcb){let _0x436335=_0x92cfcb[_0x221cc7(0x103)][_0x221cc7(0x137)],_0xaea137=_0x92cfcb[_0x221cc7(0x103)][_0x221cc7(0x101)]['id'];setTimeout(()=>{const _0x2cc575=_0x221cc7;this['_commandService'][_0x2cc575(0x125)](_0x2b0483['id'],{'unitId':_0x436335,'subUnitId':_0xaea137},{'fromCollab':!0x0});});}}}[_0xcd3c43(0x12e)](){const _0x3be677=_0xcd3c43;var _0x417769;(_0x417769=this[_0x3be677(0x15e)])==null||_0x417769[_0x3be677(0x143)](),this['_status$'][_0x3be677(0x13c)](_0x3be677(0xf5));let _0x523766=new Map(),_0x23660d=this[_0x3be677(0x15e)]=new _0x1d1071();_0x23660d[_0x3be677(0x16d)](_0xf8e6d4(()=>{const _0x49b5f5=_0x3be677;_0x523766['forEach'](({subject:_0x1362f0,subscription:_0x2d6066})=>{_0x2d6066['unsubscribe'](),_0x1362f0['complete']();}),_0x523766[_0x49b5f5(0x114)]();})),_0x23660d[_0x3be677(0x16d)](this[_0x3be677(0x15f)][_0x3be677(0x144)](_0x1aca2d=>{const _0x11d1a2=_0x3be677;if(_0x1aca2d['type']!==_0x370a98[_0x11d1a2(0x139)]||!this[_0x11d1a2(0x152)][_0x11d1a2(0x13b)](_0x1aca2d['id']))return;let {id:_0x3e96b3}=_0x1aca2d,_0x326ef8;if(_0x523766[_0x11d1a2(0x10a)](_0x3e96b3))_0x326ef8=_0x523766['get'](_0x3e96b3)[_0x11d1a2(0x14d)];else{var _0x52630d;_0x326ef8=new _0x20c350();let _0x3e948d=_0x326ef8['pipe'](_0x364328((_0x52630d=this[_0x11d1a2(0x146)]['getConfig'](_0x11d1a2(0xfd)))==null?0xc8:_0x52630d,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x50a8ed=>{const _0x54a2ce=_0x11d1a2;this[_0x54a2ce(0x172)][_0x54a2ce(0x12d)]({'eventID':_0x3756a6[_0x54a2ce(0x13f)],'data':{'unitID':this['_unitID'],'operations':{[_0x50a8ed['id']]:{'id':_0x50a8ed['id'],'params':JSON[_0x54a2ce(0x167)](_0x50a8ed[_0x54a2ce(0x103)])}}}},this[_0x54a2ce(0x126)]);});_0x523766[_0x11d1a2(0x10d)](_0x3e96b3,{'subject':_0x326ef8,'subscription':_0x3e948d});}_0x326ef8[_0x11d1a2(0x13c)](_0x1aca2d);})),this[_0x3be677(0x152)][_0x3be677(0x170)](this['_unitID'])[_0x3be677(0x112)](_0x4af641=>this[_0x3be677(0x172)][_0x3be677(0x12d)]({'eventID':_0x3756a6[_0x3be677(0x13f)],'data':{'unitID':this[_0x3be677(0x126)],'operations':{[_0x4af641['id']]:{'id':_0x4af641['id'],'params':JSON['stringify'](_0x4af641['params'])}}}},this['_unitID']));}[_0xcd3c43(0x153)](){const _0x4d0e91=_0xcd3c43;var _0x4dba2d;this[_0x4d0e91(0x120)]['next'](_0x4d0e91(0x110)),(_0x4dba2d=this[_0x4d0e91(0x15e)])==null||_0x4dba2d[_0x4d0e91(0x143)](),this[_0x4d0e91(0x15e)]=null;}[_0xcd3c43(0x16a)](){const _0x518d3f=_0xcd3c43;var _0x352e0d;(_0x352e0d=this[_0x518d3f(0x15e)])==null||_0x352e0d['dispose'](),this[_0x518d3f(0x120)]['next']('following');}['_beIdle'](){const _0x5775b2=_0xcd3c43;var _0xf43165;this[_0x5775b2(0x120)][_0x5775b2(0x13c)](_0x5775b2(0x110)),(_0xf43165=this['_commandDisposable'])==null||_0xf43165[_0x5775b2(0x143)](),this['_commandDisposable']=null;}[_0xcd3c43(0xef)](){const _0x462fff=_0xcd3c43;var _0x151384;this[_0x462fff(0x120)]['next']('not-following'),(_0x151384=this[_0x462fff(0x15e)])==null||_0x151384[_0x462fff(0x143)]();}[_0xcd3c43(0x162)](_0x2f255a){const _0x395078=_0xcd3c43;if(['presenting',_0x395078(0x11c),'offline'][_0x395078(0xee)](this['_status'])||!_0x2f255a[_0x395078(0x156)]['presenter']||_0x2f255a[_0x395078(0x156)][_0x395078(0xf6)]===this[_0x395078(0x172)][_0x395078(0x14e)]())return;this['_status']===_0x395078(0x110)&&this[_0x395078(0x16a)]();let _0xaecd78=_0x2f255a['data']['operations'];Object[_0x395078(0x116)](_0xaecd78)['forEach'](_0x39ce5f=>{const _0xbd19df=_0x395078;this['_commandService'][_0xbd19df(0x125)](_0x39ce5f['id'],_0x39ce5f[_0xbd19df(0x103)]?JSON['parse'](_0x39ce5f['params']):null,{'fromCollab':!0x0});});}[_0xcd3c43(0x178)](){const _0x1d09c2=_0xcd3c43;var _0x23918f;this[_0x1d09c2(0x120)]['next']('offline'),(_0x23918f=this['_commandDisposable'])==null||_0x23918f['dispose']();}['_handleOnline'](){const _0x4d9e2c=_0xcd3c43;this[_0x4d9e2c(0x120)][_0x4d9e2c(0x13c)](_0x4d9e2c(0x110)),this['_fetchOperations']();}};J=G([W(0x2,_0x13ab7e),W(0x3,_0x130c38(U)),W(0x4,_0x2aa954)],J);var se=_0xcd3c43(0x147),ce=_0xcd3c43(0x158);const Y={};let X=class extends _0x3d4065{constructor(_0x18262a){super(),this['_liveShareService']=_0x18262a,this['_init']();}[_0xcd3c43(0x161)](){const _0x3f6ab9=_0xcd3c43;[_0x4bc340['id'],_0x5ae29f['id'],_0x2b0483['id']][_0x3f6ab9(0x112)](_0x12ec93=>{const _0x406c78=_0x3f6ab9;this['disposeWithMe'](this[_0x406c78(0x152)][_0x406c78(0x159)](_0x12ec93));});}};X=G([W(0x0,_0x130c38(U))],X);function Z(){const _0x2168b4=_0xcd3c43;let _0x2a469e=_0x361196(K),_0x367e57=_0x361196(_0x5ab737),_0x233cf3=_0x313630(()=>_0x367e57[_0x2168b4(0x142)](_0x3f510f[_0x2168b4(0x173)]),void 0x0,!0x1,[]),_0x5a285b=_0x313630(_0x1c5235(()=>_0x233cf3?_0x4386d9(()=>_0xa7f912(_0x2a469e[_0x2168b4(0x141)](_0x233cf3[_0x2168b4(0x104)]()))):_0x363ac9(null),[_0x233cf3,_0x2a469e]),null),_0x25f125=_0x313630(_0x5a285b?()=>_0x5a285b[_0x2168b4(0xfe)]:null,_0x2168b4(0x110),!0x1,[_0x5a285b]);return _0x5a285b?_0x76736e(_0x5f2dd7,{'align':_0x2168b4(0x124),'disabled':_0x25f125===_0x2168b4(0x157),'className':_0x2168b4(0x121),'overlay':_0x76736e(le,{'status':_0x25f125,'coordinator':_0x5a285b}),'children':_0x76736e(_0x2168b4(0x122),{'className':_0x1b4e86('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x25f125==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x25f125!=='offline'}),'type':_0x2168b4(0x122),'children':_0x76736e(_0xbe8107,{})})}):null;}function le(_0x36d926){const _0x3fad99=_0xcd3c43;let {status:_0x3aaa5c,coordinator:_0xd13d33}=_0x36d926;switch(_0x3aaa5c){case _0x3fad99(0x110):return _0x76736e(ue,{'coordinator':_0xd13d33});case _0x3fad99(0x118):return _0x76736e(de,{'coordinator':_0xd13d33});case _0x3fad99(0x11c):return _0x76736e(fe,{'coordinator':_0xd13d33});case'offline':return _0x76736e(me,{});case _0x3fad99(0xf5):return _0x76736e(pe,{'coordinator':_0xd13d33});default:return null;}}function ue(_0x4fda22){const _0x55e02e=_0xcd3c43;let {coordinator:_0x153247}=_0x4fda22;return _0x46d651(_0x114c30,{'children':[_0x76736e(_0x55e02e(0x11d),{'className':_0x55e02e(0xf1),'children':_0x55e02e(0x17a)}),_0x76736e(_0x5b7c15,{'onClick':()=>_0x153247[_0x55e02e(0x128)](),'children':_0x55e02e(0x106)})]});}function de(_0x53ca40){const _0x93e357=_0xcd3c43;let {coordinator:_0x314952}=_0x53ca40;return _0x46d651(_0x114c30,{'children':[_0x76736e(_0x93e357(0x11d),{'className':_0x93e357(0xf1),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x76736e(_0x5b7c15,{'onClick':()=>_0x314952[_0x93e357(0x174)](),'children':_0x93e357(0x171)})]});}function fe(_0xaacac){const _0x5c4abf=_0xcd3c43;let {coordinator:_0x20c65f}=_0xaacac;return _0x46d651(_0x114c30,{'children':[_0x76736e('div',{'className':_0x5c4abf(0xf1),'children':_0x5c4abf(0x16c)}),_0x76736e(_0x5b7c15,{'variant':_0x5c4abf(0x180),'onClick':()=>_0x20c65f[_0x5c4abf(0x107)](),'children':_0x5c4abf(0x117)})]});}function pe(_0x1a4fb9){const _0x40d5f2=_0xcd3c43;let {coordinator:_0x50eac3}=_0x1a4fb9;return _0x46d651(_0x114c30,{'children':[_0x76736e(_0x40d5f2(0x11d),{'className':_0x40d5f2(0xf1),'children':_0x40d5f2(0x14a)}),_0x76736e(_0x5b7c15,{'variant':_0x40d5f2(0x105),'onClick':()=>_0x50eac3[_0x40d5f2(0x148)](),'children':_0x40d5f2(0x13e)})]});}function me(){const _0x237681=_0xcd3c43;return _0x76736e(_0x114c30,{'children':_0x237681(0x168)});}let Q=class extends _0x3d4065{constructor(_0x433b6c,_0xfbdfa8){const _0x875ae1=_0xcd3c43;super(),this['_injector']=_0x433b6c,this[_0x875ae1(0x136)]=_0xfbdfa8,this[_0x875ae1(0x129)]();}[_0xcd3c43(0x129)](){const _0x7dca9a=_0xcd3c43;this[_0x7dca9a(0x14b)](this[_0x7dca9a(0x136)][_0x7dca9a(0xf2)](_0x72c6df[_0x7dca9a(0x166)],()=>_0x33a9bb(Z,this[_0x7dca9a(0x17b)])));}};Q=G([W(0x0,_0x130c38(_0x189051)),W(0x1,_0x3d33a9)],Q);let $=class extends _0x5f36ae{constructor(_0x2e3f2f=Y,_0x28d45f,_0xd601ed){const _0x3760f0=_0xcd3c43;super(),this['_config']=_0x2e3f2f,this[_0x3760f0(0x17b)]=_0x28d45f,this[_0x3760f0(0x146)]=_0xd601ed;let {..._0xa29e9b}=_0x3df356({},Y,this[_0x3760f0(0x16e)]);this[_0x3760f0(0x146)]['setConfig'](_0x3760f0(0x10f),_0xa29e9b);}['onStarting'](){const _0x20903a=_0xcd3c43;_0x24986b(this['_injector'],_0x1f0e7f([[U],[K],[X],[Q]],this[_0x20903a(0x16e)][_0x20903a(0x11a)])),_0x1c595d(this[_0x20903a(0x17b)],[[X]]);}[_0xcd3c43(0x160)](){_0x1c595d(this['_injector'],[[Q]]);}};H($,'type',_0x3f510f[_0xcd3c43(0x179)]),H($,_0xcd3c43(0x11e),_0xcd3c43(0x14f)),H($,_0xcd3c43(0x16b),se),H($,_0xcd3c43(0x13a),ce),$=G([_0x3f835d(_0x337bb8),W(0x1,_0x130c38(_0x189051)),W(0x2,_0x13ab7e)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x3d3474=_0x2854;(function(_0x5f0760,_0x181a35){const _0x42335f=_0x2854,_0x2c3c85=_0x5f0760();while(!![]){try{const _0x39d334=parseInt(_0x42335f(0xa7))/0x1*(-parseInt(_0x42335f(0x124))/0x2)+parseInt(_0x42335f(0xac))/0x3*(-parseInt(_0x42335f(0xa6))/0x4)+parseInt(_0x42335f(0xc6))/0x5+-parseInt(_0x42335f(0x107))/0x6*(-parseInt(_0x42335f(0xe5))/0x7)+-parseInt(_0x42335f(0x9e))/0x8+parseInt(_0x42335f(0x106))/0x9*(-parseInt(_0x42335f(0x10b))/0xa)+-parseInt(_0x42335f(0xf7))/0xb*(-parseInt(_0x42335f(0xdb))/0xc);if(_0x39d334===_0x181a35)break;else _0x2c3c85['push'](_0x2c3c85['shift']());}catch(_0x145ec2){_0x2c3c85['push'](_0x2c3c85['shift']());}}}(_0x20d9,0x7a4c9));function _0x20d9(){const _0x3d455c=['@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','not-following','NOT_FOLLOWING','function','ONLINE','2xqlSpO','subscribe','packageName','data','dispose','forEach','_config','params','iterator','_beIdle','_univerInstanceService','createInstance','symbol','stopFollowing','4077480mYKlEr','pluginName','following','_stopPresenting','operations','LIVESHARE_OPERATION','live-share.config','OFFLINE','12828roaXOr','82855qaBEHm','stopPresenting','_handleTerminate','clear','PRESENTING','597LkWSoE','You\x27re\x20presenting\x20the\x20document','_collabSessionService','find','executeCommand','_startLiveShareCoordinator','_handleNewChangeSets','_startPresenting','constructor','_status$','unit','_stopFollowing','decorate','from','_handleOperation','unitId','You\x27re\x20following\x20the\x20presenter','length','getLiveShareCoordinator','has','getCurrentTypeOfUnit$','sheet','_entities','shouldShareOperation','sessionStatus$','asObservable','3566510gENPHl','You\x27re\x20not\x20following\x20the\x20presenter','_liveShareService','getMemberID','getUnitId','next','_presenter','_fetchOperations','_handleOnline','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','text','delete','_reporters','_sharedOperations','_unitID','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','offline','status$','getInitialStates','idle','12JKgmOR','_status','mutations','registerComponent','_init','getConfig','registerInitialStateReporter','prototype','_commandService','map','14yuaDDj','getTypeOfUnitAdded$','UNIVER_LIVE_SHARE_PLUGIN','end','reverse','getTypeOfUnitDisposed$','button','@univerjs-pro/live-share','get','UNIVER_SHEET','values','send','_uiPartsService','1.0.0-beta.0','version','presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','startFollowing','6745310GDzqhO','Start\x20following','getLiveShareCoordinatorSync','onStarting','_injector','_handleNewHost','disposeWithMe','type','subject','complete','includes','toPrimitive','set','add','_collabSession','315OFUwVn','2815884Audotw','_handleOffline','onRendered','div','152420CzbKjX','init','LIVESHARE_FETCH_OPERATIONS','registerSharedOperation','getStatus','presenting','call','OPERATION','stringify','Present\x20this\x20document','dispose$','unsubscribe','pipe','_startFollowing','Stop\x20following','parse','_commandDisposable','LIVESHARE_TERMINATE','override','_configService'];_0x20d9=function(){return _0x3d455c;};return _0x20d9();}import{CollaborationEvent as _0x4ab04f,parseProtocolChangeset as _0x3686e3}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1e2bfa,SessionStatus as _0x3cfb03,UniverCollaborationClientPlugin as _0x169e26}from'@univerjs-pro/collaboration-client';import{CommandType as _0x3f9d18,DependentOn as _0x1df6e6,Disposable as _0x37dab6,DisposableCollection as _0x16da52,ICommandService as _0x54fef7,IConfigService as _0x5cb103,IUniverInstanceService as _0x58af8f,Inject as _0x23d73f,Injector as _0x2866b9,Plugin as _0x80eeb6,RxDisposable as _0x280041,UniverInstanceType as _0x280b3d,merge as _0x1647dc,mergeOverrideWithDependencies as _0x230d60,registerDependencies as _0x3b9a91,toDisposable as _0x479b00,touchDependencies as _0x1bd490}from'@univerjs/core';import{InsertSheetMutation as _0x210969,SetWorksheetActiveOperation as _0x50d6fc}from'@univerjs/sheets';import{BehaviorSubject as _0x5093e4,Subject as _0x221a48,defer as _0x4f094b,from as _0x2dccd7,of as _0x2cbaa5}from'rxjs';import{takeUntil as _0x440641,throttleTime as _0x1c63c6}from'rxjs/operators';import{UniverLicensePlugin as _0x1b707d}from'@univerjs-pro/license';import{SetScrollOperation as _0x2225eb,SetZoomRatioOperation as _0x4b25e1}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x342367,IUIPartsService as _0x320286,connectInjector as _0x380dde,useDependency as _0x4ab0a4,useObservable as _0x1ea96e}from'@univerjs/ui';import{Button as _0x1bffb1,Dropdown as _0x4e4083,clsx as _0x1a3bc1}from'@univerjs/design';import{LiveShareIcon as _0x16c49d}from'@univerjs/icons';import{useMemo as _0x1fe622}from'react';import{Fragment as _0x21d3a1,jsx as _0x5bd8d4,jsxs as _0x352f4e}from'react/jsx-runtime';function V(_0x2a2aef){'@babel/helpers - typeof';const _0x5556f3=_0x2854;return V=typeof Symbol=='function'&&typeof Symbol[_0x5556f3(0x98)]==_0x5556f3(0x9c)?function(_0x2d8ac3){return typeof _0x2d8ac3;}:function(_0x57e4b7){const _0x22a01d=_0x5556f3;return _0x57e4b7&&typeof Symbol==_0x22a01d(0x122)&&_0x57e4b7[_0x22a01d(0xb4)]===Symbol&&_0x57e4b7!==Symbol[_0x22a01d(0xe2)]?_0x22a01d(0x9c):typeof _0x57e4b7;},V(_0x2a2aef);}function H(_0xa3634e,_0x2cbd2e){const _0x2c672d=_0x2854;if(V(_0xa3634e)!='object'||!_0xa3634e)return _0xa3634e;var _0x3abb98=_0xa3634e[Symbol[_0x2c672d(0x102)]];if(_0x3abb98!==void 0x0){var _0x518d4c=_0x3abb98[_0x2c672d(0x111)](_0xa3634e,_0x2cbd2e||'default');if(V(_0x518d4c)!='object')return _0x518d4c;throw TypeError(_0x2c672d(0x11f));}return(_0x2cbd2e==='string'?String:Number)(_0xa3634e);}function U(_0x5d68c1){const _0x1308e8=_0x2854;var _0x50bf67=H(_0x5d68c1,'string');return V(_0x50bf67)==_0x1308e8(0x9c)?_0x50bf67:_0x50bf67+'';}function W(_0x8adaf2,_0x2f32c3,_0xd312a5){return(_0x2f32c3=U(_0x2f32c3))in _0x8adaf2?Object['defineProperty'](_0x8adaf2,_0x2f32c3,{'value':_0xd312a5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x8adaf2[_0x2f32c3]=_0xd312a5,_0x8adaf2;}var G=class extends _0x37dab6{constructor(..._0x211e46){const _0x49a9d0=_0x2854;super(..._0x211e46),W(this,_0x49a9d0(0xd3),new Set()),W(this,_0x49a9d0(0xd2),new Set());}[_0x3d3474(0x10e)](_0x3e7abc){const _0x34c6bf=_0x3d3474;return this[_0x34c6bf(0xd3)][_0x34c6bf(0x104)](_0x3e7abc),_0x479b00(()=>this[_0x34c6bf(0xd3)][_0x34c6bf(0xd1)](_0x3e7abc));}[_0x3d3474(0xe1)](_0x2e7754){const _0x3abd6d=_0x3d3474;return this[_0x3abd6d(0xd2)][_0x3abd6d(0x104)](_0x2e7754),_0x479b00(()=>this[_0x3abd6d(0xd2)][_0x3abd6d(0xd1)](_0x2e7754));}['shouldShareOperation'](_0x504cf8){const _0xdb1407=_0x3d3474;return this[_0xdb1407(0xd3)][_0xdb1407(0xbf)](_0x504cf8);}['getInitialStates'](_0x9eeacd){const _0x57441e=_0x3d3474;return Array[_0x57441e(0xb9)](this[_0x57441e(0xd2)])[_0x57441e(0xe4)](_0x533e98=>_0x533e98(_0x9eeacd));}};function _0x2854(_0x81910a,_0x7c50bc){_0x81910a=_0x81910a-0x97;const _0x20d977=_0x20d9();let _0x285470=_0x20d977[_0x81910a];return _0x285470;}function K(_0x5eea0d,_0x31c4be){return function(_0x2c48fc,_0x203b2a){_0x31c4be(_0x2c48fc,_0x203b2a,_0x5eea0d);};}function q(_0x29521e,_0x205cfd,_0x24b594,_0x1a8959){const _0x3a54fe=_0x3d3474;var _0x515e12=arguments[_0x3a54fe(0xbd)],_0x4d1b0c=_0x515e12<0x3?_0x205cfd:_0x1a8959===null?_0x1a8959=Object['getOwnPropertyDescriptor'](_0x205cfd,_0x24b594):_0x1a8959,_0x551ddb;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x3a54fe(0x122))_0x4d1b0c=Reflect[_0x3a54fe(0xb8)](_0x29521e,_0x205cfd,_0x24b594,_0x1a8959);else{for(var _0x34036f=_0x29521e[_0x3a54fe(0xbd)]-0x1;_0x34036f>=0x0;_0x34036f--)(_0x551ddb=_0x29521e[_0x34036f])&&(_0x4d1b0c=(_0x515e12<0x3?_0x551ddb(_0x4d1b0c):_0x515e12>0x3?_0x551ddb(_0x205cfd,_0x24b594,_0x4d1b0c):_0x551ddb(_0x205cfd,_0x24b594))||_0x4d1b0c);}return _0x515e12>0x3&&_0x4d1b0c&&Object['defineProperty'](_0x205cfd,_0x24b594,_0x4d1b0c),_0x4d1b0c;}let J=class extends _0x280041{constructor(_0x182bd1,_0x3a8905,_0x371e39){const _0x29e1c1=_0x3d3474;super(),this['_univerInstanceService']=_0x182bd1,this[_0x29e1c1(0xfb)]=_0x3a8905,this[_0x29e1c1(0xae)]=_0x371e39,W(this,_0x29e1c1(0xc2),new Map()),this[_0x29e1c1(0xdf)]();}async[_0x3d3474(0xbe)](_0x35d6e1){const _0x518c09=_0x3d3474;return this[_0x518c09(0xc2)]['has'](_0x35d6e1)||await this['_startLiveShareCoordinator'](_0x35d6e1),this['_entities'][_0x518c09(0xed)](_0x35d6e1);}[_0x3d3474(0xf9)](_0x37b02b){const _0xde0f6f=_0x3d3474;return this[_0xde0f6f(0xc2)][_0xde0f6f(0xed)](_0x37b02b)??null;}[_0x3d3474(0xdf)](){const _0x54b0f=_0x3d3474;this['_univerInstanceService'][_0x54b0f(0xe6)](_0x280b3d[_0x54b0f(0xee)])[_0x54b0f(0x117)](_0x440641(this[_0x54b0f(0x115)]))[_0x54b0f(0x125)](async _0x4b17f5=>{const _0x172791=_0x54b0f;let _0x4e9c50=_0x4b17f5[_0x172791(0xb6)][_0x172791(0xca)]();this['_entities']['has'](_0x4e9c50)||this[_0x172791(0xb1)](_0x4e9c50);}),this[_0x54b0f(0x9a)][_0x54b0f(0xea)](_0x280b3d[_0x54b0f(0xee)])['pipe'](_0x440641(this[_0x54b0f(0x115)]))[_0x54b0f(0x125)](_0x50363e=>{const _0x2cd488=_0x54b0f;let _0x2f74a5=_0x50363e[_0x2cd488(0xca)](),_0x2ad80b=this[_0x2cd488(0xc2)][_0x2cd488(0xed)](_0x2f74a5);_0x2ad80b==null||_0x2ad80b[_0x2cd488(0x128)]();});}async[_0x3d3474(0xb1)](_0x229974){const _0x1e835f=_0x3d3474;let _0xe6b145=await this[_0x1e835f(0xae)]['requireSession'](_0x229974),_0x118810=this['_injector'][_0x1e835f(0x9b)](Y,_0x229974,_0xe6b145);return _0x118810[_0x1e835f(0x10c)](),this[_0x1e835f(0xc2)][_0x1e835f(0x103)](_0x229974,_0x118810),_0x118810;}};J=q([K(0x0,_0x58af8f),K(0x1,_0x23d73f(_0x2866b9)),K(0x2,_0x23d73f(_0x1e2bfa))],J);let oe=function(_0x5b6fb8){const _0x3ea028=_0x3d3474;return _0x5b6fb8[_0x3ea028(0xa5)]=_0x3ea028(0xd7),_0x5b6fb8['IDLE']=_0x3ea028(0xda),_0x5b6fb8['FOLLOWING']=_0x3ea028(0xa0),_0x5b6fb8[_0x3ea028(0x121)]=_0x3ea028(0x120),_0x5b6fb8[_0x3ea028(0xab)]=_0x3ea028(0x110),_0x5b6fb8;}({}),Y=class extends _0x280041{get[_0x3d3474(0xdc)](){const _0x2435bf=_0x3d3474;return this[_0x2435bf(0xb5)]['getValue']();}constructor(_0x3d816,_0x321ec7,_0x546432,_0x1bf24d,_0x2c5bb7){const _0x362799=_0x3d3474;super(),this['_unitID']=_0x3d816,this[_0x362799(0x105)]=_0x321ec7,this['_configService']=_0x546432,this[_0x362799(0xc8)]=_0x1bf24d,this[_0x362799(0xe3)]=_0x2c5bb7,W(this,_0x362799(0xb5),new _0x5093e4('idle')),W(this,'status$',this[_0x362799(0xb5)][_0x362799(0xc5)]()),W(this,'_init',!0x1),W(this,_0x362799(0x11b),null),W(this,_0x362799(0xcc),null);}[_0x3d3474(0x128)](){const _0x2deb35=_0x3d3474;var _0x1afb5d;(_0x1afb5d=this[_0x2deb35(0x11b)])==null||_0x1afb5d[_0x2deb35(0x128)](),this[_0x2deb35(0xb5)]['next'](_0x2deb35(0xda)),this[_0x2deb35(0xb5)]['complete']();}[_0x3d3474(0x10f)](){const _0x308af3=_0x3d3474;return this[_0x308af3(0xdc)];}['init'](){const _0x2e7b4d=_0x3d3474;this[_0x2e7b4d(0xdf)]||(this[_0x2e7b4d(0xdf)]=!0x0,this[_0x2e7b4d(0x105)][_0x2e7b4d(0xc4)][_0x2e7b4d(0x117)](_0x440641(this[_0x2e7b4d(0x115)]))[_0x2e7b4d(0x125)](_0x185a62=>{const _0x460fd4=_0x2e7b4d;switch(_0x185a62){case _0x3cfb03[_0x460fd4(0xa5)]:this[_0x460fd4(0x108)]();break;case _0x3cfb03[_0x460fd4(0x123)]:this['_handleOnline']();break;default:}}),this[_0x2e7b4d(0x105)]['event$'][_0x2e7b4d(0x117)](_0x440641(this[_0x2e7b4d(0x115)]))['subscribe'](_0x543dd3=>{const _0x5ea59b=_0x2e7b4d;let {eventID:_0xb96666}=_0x543dd3;switch(_0xb96666){case _0x4ab04f['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x543dd3);break;case _0x4ab04f[_0x5ea59b(0xa3)]:this[_0x5ea59b(0xba)](_0x543dd3);break;case _0x4ab04f['LIVESHARE_TERMINATE']:this[_0x5ea59b(0xa9)]();break;case _0x4ab04f['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x543dd3);break;default:}}));}['tryStartPresenting'](){const _0x4f1cf5=_0x3d3474;this[_0x4f1cf5(0x105)][_0x4f1cf5(0xf0)]({'eventID':_0x4ab04f['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4f1cf5(0xd4)],'userID':this[_0x4f1cf5(0x105)][_0x4f1cf5(0xc9)]()}},this['_unitID']);}['stopPresenting'](){const _0x2f1191=_0x3d3474;this[_0x2f1191(0xdc)]===_0x2f1191(0x110)&&(this[_0x2f1191(0xb5)][_0x2f1191(0xcb)](_0x2f1191(0xda)),this['_collabSession'][_0x2f1191(0xf0)]({'eventID':_0x4ab04f[_0x2f1191(0x11c)],'data':{'unitID':this[_0x2f1191(0xd4)]}},this[_0x2f1191(0xd4)]));}[_0x3d3474(0xf6)](){const _0x3dcbd6=_0x3d3474;this[_0x3dcbd6(0xdc)]===_0x3dcbd6(0x120)&&(this[_0x3dcbd6(0xb5)][_0x3dcbd6(0xcb)](_0x3dcbd6(0xa0)),this['_startFollowing']());}[_0x3d3474(0x9d)](){const _0x44fa81=_0x3d3474;this[_0x44fa81(0xdc)]===_0x44fa81(0xa0)&&this[_0x44fa81(0xb7)]();}[_0x3d3474(0xfc)](_0x14083f){const _0x1e39ca=_0x3d3474;let {presenter:_0x253ead}=_0x14083f['data'],_0x38c459=this['_collabSession']['getMemberID']();this[_0x1e39ca(0xcc)]=_0x253ead,_0x253ead===_0x38c459?(this[_0x1e39ca(0xb7)](),this[_0x1e39ca(0xb3)]()):this[_0x1e39ca(0xdc)]!==_0x1e39ca(0x120)&&(this[_0x1e39ca(0xa1)](),this[_0x1e39ca(0x118)]());}[_0x3d3474(0xcd)](){const _0x222014=_0x3d3474;let _0x1380e4={'eventID':_0x4ab04f[_0x222014(0x10d)]};this[_0x222014(0x105)]['send'](_0x1380e4,this['_unitID']);}['_handleTerminate'](){const _0x509a04=_0x3d3474;this[_0x509a04(0xcc)]=null,this[_0x509a04(0xdc)]!==_0x509a04(0x110)&&this[_0x509a04(0x99)]();}[_0x3d3474(0xb2)](_0x52e952){const _0x3ecd9a=_0x3d3474;if(this[_0x3ecd9a(0xdc)]==='following'&&this[_0x3ecd9a(0xcc)]===_0x52e952[_0x3ecd9a(0x127)]['memberID']){let _0x53f7d0=_0x3686e3(_0x52e952[_0x3ecd9a(0x127)])[_0x3ecd9a(0xdd)][_0x3ecd9a(0xe9)]()[_0x3ecd9a(0xaf)](_0x4bc872=>_0x4bc872['id']===_0x210969['id']);if(_0x53f7d0){let _0x4a712a=_0x53f7d0[_0x3ecd9a(0x97)][_0x3ecd9a(0xbb)],_0x2acb33=_0x53f7d0[_0x3ecd9a(0x97)][_0x3ecd9a(0xc1)]['id'];setTimeout(()=>{const _0x5f21db=_0x3ecd9a;this[_0x5f21db(0xe3)][_0x5f21db(0xb0)](_0x50d6fc['id'],{'unitId':_0x4a712a,'subUnitId':_0x2acb33},{'fromCollab':!0x0});});}}}[_0x3d3474(0xb3)](){const _0x154a81=_0x3d3474;var _0x48bfbe;(_0x48bfbe=this['_commandDisposable'])==null||_0x48bfbe[_0x154a81(0x128)](),this[_0x154a81(0xb5)]['next'](_0x154a81(0x110));let _0x445548=new Map(),_0x53ca0a=this[_0x154a81(0x11b)]=new _0x16da52();_0x53ca0a[_0x154a81(0x104)](_0x479b00(()=>{const _0x318aa0=_0x154a81;_0x445548[_0x318aa0(0x129)](({subject:_0xf248e2,subscription:_0x37f1f3})=>{const _0x5be65d=_0x318aa0;_0x37f1f3[_0x5be65d(0x116)](),_0xf248e2[_0x5be65d(0x100)]();}),_0x445548[_0x318aa0(0xaa)]();})),_0x53ca0a[_0x154a81(0x104)](this['_commandService']['onCommandExecuted'](_0x2428f0=>{const _0x13434c=_0x154a81;if(_0x2428f0[_0x13434c(0xfe)]!==_0x3f9d18[_0x13434c(0x112)]||!this[_0x13434c(0xc8)][_0x13434c(0xc3)](_0x2428f0['id']))return;let {id:_0x33b59d}=_0x2428f0,_0x1e4899;if(_0x445548[_0x13434c(0xbf)](_0x33b59d))_0x1e4899=_0x445548[_0x13434c(0xed)](_0x33b59d)[_0x13434c(0xff)];else{_0x1e4899=new _0x221a48();let _0x488ef2=_0x1e4899[_0x13434c(0x117)](_0x1c63c6(this[_0x13434c(0x11e)][_0x13434c(0xe0)](_0x13434c(0xd5))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x13434c(0x125)](_0x1b332f=>{const _0x1fb5d8=_0x13434c;this[_0x1fb5d8(0x105)][_0x1fb5d8(0xf0)]({'eventID':_0x4ab04f[_0x1fb5d8(0xa3)],'data':{'unitID':this[_0x1fb5d8(0xd4)],'operations':{[_0x1b332f['id']]:{'id':_0x1b332f['id'],'params':JSON[_0x1fb5d8(0x113)](_0x1b332f[_0x1fb5d8(0x97)])}}}},this['_unitID']);});_0x445548[_0x13434c(0x103)](_0x33b59d,{'subject':_0x1e4899,'subscription':_0x488ef2});}_0x1e4899[_0x13434c(0xcb)](_0x2428f0);})),this[_0x154a81(0xc8)][_0x154a81(0xd9)](this[_0x154a81(0xd4)])[_0x154a81(0x129)](_0x28b206=>this[_0x154a81(0x105)]['send']({'eventID':_0x4ab04f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x154a81(0xd4)],'operations':{[_0x28b206['id']]:{'id':_0x28b206['id'],'params':JSON[_0x154a81(0x113)](_0x28b206[_0x154a81(0x97)])}}}},this[_0x154a81(0xd4)]));}[_0x3d3474(0xa1)](){const _0x1fa1c4=_0x3d3474;var _0x8f4b8;this[_0x1fa1c4(0xb5)][_0x1fa1c4(0xcb)](_0x1fa1c4(0xda)),(_0x8f4b8=this[_0x1fa1c4(0x11b)])==null||_0x8f4b8[_0x1fa1c4(0x128)](),this[_0x1fa1c4(0x11b)]=null;}[_0x3d3474(0x118)](){const _0x499823=_0x3d3474;var _0x517d13;(_0x517d13=this['_commandDisposable'])==null||_0x517d13['dispose'](),this['_status$'][_0x499823(0xcb)](_0x499823(0xa0));}[_0x3d3474(0x99)](){const _0x4addee=_0x3d3474;var _0x9c727b;this['_status$'][_0x4addee(0xcb)](_0x4addee(0xda)),(_0x9c727b=this[_0x4addee(0x11b)])==null||_0x9c727b[_0x4addee(0x128)](),this[_0x4addee(0x11b)]=null;}[_0x3d3474(0xb7)](){const _0x2300f9=_0x3d3474;var _0x4bd277;this[_0x2300f9(0xb5)][_0x2300f9(0xcb)](_0x2300f9(0x120)),(_0x4bd277=this[_0x2300f9(0x11b)])==null||_0x4bd277[_0x2300f9(0x128)]();}['_handleOperation'](_0x243f81){const _0x2fb1e7=_0x3d3474;if(['presenting',_0x2fb1e7(0x120),_0x2fb1e7(0xd7)][_0x2fb1e7(0x101)](this['_status'])||!_0x243f81[_0x2fb1e7(0x127)]['presenter']||_0x243f81[_0x2fb1e7(0x127)][_0x2fb1e7(0xf4)]===this['_collabSession'][_0x2fb1e7(0xc9)]())return;this[_0x2fb1e7(0xdc)]===_0x2fb1e7(0xda)&&this[_0x2fb1e7(0x118)]();let _0x4b3ac3=_0x243f81[_0x2fb1e7(0x127)][_0x2fb1e7(0xa2)];Object[_0x2fb1e7(0xef)](_0x4b3ac3)[_0x2fb1e7(0x129)](_0x53498c=>{const _0x2bde56=_0x2fb1e7;this[_0x2bde56(0xe3)][_0x2bde56(0xb0)](_0x53498c['id'],_0x53498c['params']?JSON[_0x2bde56(0x11a)](_0x53498c[_0x2bde56(0x97)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x309719=_0x3d3474;var _0x2f1e5f;this[_0x309719(0xb5)][_0x309719(0xcb)]('offline'),(_0x2f1e5f=this['_commandDisposable'])==null||_0x2f1e5f[_0x309719(0x128)]();}[_0x3d3474(0xce)](){const _0x5857f7=_0x3d3474;this[_0x5857f7(0xb5)][_0x5857f7(0xcb)]('idle'),this['_fetchOperations']();}};Y=q([K(0x2,_0x5cb103),K(0x3,_0x23d73f(G)),K(0x4,_0x54fef7)],Y);var se=_0x3d3474(0xec),ce=_0x3d3474(0xf2);const X={};let Z=class extends _0x37dab6{constructor(_0xe74b0b){const _0x9f9776=_0x3d3474;super(),this['_liveShareService']=_0xe74b0b,this[_0x9f9776(0xdf)]();}[_0x3d3474(0xdf)](){const _0x511290=_0x3d3474;[_0x4b25e1['id'],_0x2225eb['id'],_0x50d6fc['id']][_0x511290(0x129)](_0x39ca4d=>{const _0x5bfb2c=_0x511290;this[_0x5bfb2c(0xfd)](this[_0x5bfb2c(0xc8)][_0x5bfb2c(0x10e)](_0x39ca4d));});}};Z=q([K(0x0,_0x23d73f(G))],Z);function le(){const _0x70a4ee=_0x3d3474;let _0x5684e9=_0x4ab0a4(J),_0x2dc67a=_0x4ab0a4(_0x58af8f),_0x94a27a=_0x1ea96e(()=>_0x2dc67a[_0x70a4ee(0xc0)](_0x280b3d[_0x70a4ee(0xee)]),void 0x0,!0x1,[]),_0x13f449=_0x1ea96e(_0x1fe622(()=>_0x94a27a?_0x4f094b(()=>_0x2dccd7(_0x5684e9[_0x70a4ee(0xbe)](_0x94a27a[_0x70a4ee(0xca)]()))):_0x2cbaa5(null),[_0x94a27a,_0x5684e9]),null),_0x2aa1d3=_0x1ea96e(_0x13f449?()=>_0x13f449[_0x70a4ee(0xd8)]:null,'idle',!0x1,[_0x13f449]);return _0x13f449?_0x5bd8d4(_0x4e4083,{'align':_0x70a4ee(0xe8),'disabled':_0x2aa1d3===_0x70a4ee(0xd7),'className':_0x70a4ee(0xcf),'overlay':_0x5bd8d4(ue,{'status':_0x2aa1d3,'coordinator':_0x13f449}),'children':_0x5bd8d4(_0x70a4ee(0xeb),{'className':_0x1a3bc1('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2aa1d3===_0x70a4ee(0xd7),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2aa1d3!==_0x70a4ee(0xd7)}),'type':_0x70a4ee(0xeb),'children':_0x5bd8d4(_0x16c49d,{})})}):null;}function ue(_0x2417c6){const _0x5a73ff=_0x3d3474;let {status:_0x3067b2,coordinator:_0x4f35dd}=_0x2417c6;switch(_0x3067b2){case _0x5a73ff(0xda):return _0x5bd8d4(de,{'coordinator':_0x4f35dd});case'following':return _0x5bd8d4(fe,{'coordinator':_0x4f35dd});case _0x5a73ff(0x120):return _0x5bd8d4(pe,{'coordinator':_0x4f35dd});case _0x5a73ff(0xd7):return _0x5bd8d4(he,{});case _0x5a73ff(0x110):return _0x5bd8d4(me,{'coordinator':_0x4f35dd});default:return null;}}function de(_0x34057b){const _0x1f9013=_0x3d3474;let {coordinator:_0x4a7dfa}=_0x34057b;return _0x352f4e(_0x21d3a1,{'children':[_0x5bd8d4('div',{'className':_0x1f9013(0xf5),'children':_0x1f9013(0x114)}),_0x5bd8d4(_0x1bffb1,{'onClick':()=>_0x4a7dfa['tryStartPresenting'](),'children':'Start'})]});}function fe(_0x39547b){const _0x1d1f60=_0x3d3474;let {coordinator:_0xb6eab}=_0x39547b;return _0x352f4e(_0x21d3a1,{'children':[_0x5bd8d4(_0x1d1f60(0x10a),{'className':_0x1d1f60(0xf5),'children':_0x1d1f60(0xbc)}),_0x5bd8d4(_0x1bffb1,{'onClick':()=>_0xb6eab[_0x1d1f60(0x9d)](),'children':_0x1d1f60(0x119)})]});}function pe(_0x4ac77a){const _0x22f405=_0x3d3474;let {coordinator:_0x87f1e2}=_0x4ac77a;return _0x352f4e(_0x21d3a1,{'children':[_0x5bd8d4('div',{'className':_0x22f405(0xf5),'children':_0x22f405(0xc7)}),_0x5bd8d4(_0x1bffb1,{'variant':_0x22f405(0xd0),'onClick':()=>_0x87f1e2[_0x22f405(0xf6)](),'children':_0x22f405(0xf8)})]});}function me(_0x5d38b0){const _0xcc506e=_0x3d3474;let {coordinator:_0x28b1e9}=_0x5d38b0;return _0x352f4e(_0x21d3a1,{'children':[_0x5bd8d4(_0xcc506e(0x10a),{'className':_0xcc506e(0xf5),'children':_0xcc506e(0xad)}),_0x5bd8d4(_0x1bffb1,{'variant':'default','onClick':()=>_0x28b1e9[_0xcc506e(0xa8)](),'children':'Stop\x20presenting'})]});}function he(){return _0x5bd8d4(_0x21d3a1,{'children':'You\x27are\x20offline.'});}let Q=class extends _0x37dab6{constructor(_0x793681,_0x2620de){const _0x7491ee=_0x3d3474;super(),this[_0x7491ee(0xfb)]=_0x793681,this[_0x7491ee(0xf1)]=_0x2620de,this['_mountLiveShare']();}[_0x3d3474(0xd6)](){const _0x5356d9=_0x3d3474;this[_0x5356d9(0xfd)](this[_0x5356d9(0xf1)][_0x5356d9(0xde)](_0x342367['HEADER_MENU'],()=>_0x380dde(le,this[_0x5356d9(0xfb)])));}};Q=q([K(0x0,_0x23d73f(_0x2866b9)),K(0x1,_0x320286)],Q);let $=class extends _0x80eeb6{constructor(_0x30f7d1=X,_0x3577bf,_0x125926){const _0xbf9790=_0x3d3474;super(),this['_config']=_0x30f7d1,this[_0xbf9790(0xfb)]=_0x3577bf,this['_configService']=_0x125926;let {..._0x499205}=_0x1647dc({},X,this[_0xbf9790(0x12a)]);this['_configService']['setConfig'](_0xbf9790(0xa4),_0x499205);}[_0x3d3474(0xfa)](){const _0xa30044=_0x3d3474;_0x3b9a91(this[_0xa30044(0xfb)],_0x230d60([[G],[J],[Z],[Q]],this[_0xa30044(0x12a)][_0xa30044(0x11d)])),_0x1bd490(this[_0xa30044(0xfb)],[[Z]]);}[_0x3d3474(0x109)](){const _0x2e3b99=_0x3d3474;_0x1bd490(this[_0x2e3b99(0xfb)],[[Q]]);}};W($,_0x3d3474(0xfe),_0x280b3d['UNIVER_UNKNOWN']),W($,_0x3d3474(0x9f),_0x3d3474(0xe7)),W($,_0x3d3474(0x126),se),W($,_0x3d3474(0xf3),ce),$=q([_0x1df6e6(_0x1b707d,_0x169e26),K(0x1,_0x23d73f(_0x2866b9)),K(0x2,_0x5cb103)],$);export{J as LiveShareController,oe as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1cb0(){const _0x29cd49=['IDLE','get','191IgxYag','_liveShareController','extend','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','No\x20active\x20workbook\x20found.','LiveShareStatus','1812cmSFuq','UniverProLiveShare','defineProperty','@univerjs/core','@univerjs-pro/live-share','getUnitId','9QMhhEU','toPrimitive','getLiveShareStatus','FUniver','FEnum','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','object','default','getStatus','call','LiveShareController','string','@univerjs/core/facade','UNIVER_SHEET','stopPresenting','3419896mzAcZT','2062522YpZudL','getCurrentUnitOfType','symbol','UniverCore','stopFollowing','UniverInstanceType','constructor','getLiveShareCoordinatorSync','10KBvoXR','IUniverInstanceService','startFollowing','11106bwpMBB','4497036QhxOht','6395598EImuot','_injector','7234825GVYziG','_initialize','7124VuAlqd','function'];_0x1cb0=function(){return _0x29cd49;};return _0x1cb0();}function _0x31c6(_0x352171,_0x427a4c){_0x352171=_0x352171-0x106;const _0x1cb086=_0x1cb0();let _0x31c61d=_0x1cb086[_0x352171];return _0x31c61d;}(function(_0xdc734b,_0x29c94e){const _0x503afd=_0x31c6,_0x383934=_0xdc734b();while(!![]){try{const _0x1bc20c=-parseInt(_0x503afd(0x114))/0x1*(parseInt(_0x503afd(0x10a))/0x2)+-parseInt(_0x503afd(0x11a))/0x3*(parseInt(_0x503afd(0x110))/0x4)+parseInt(_0x503afd(0x10e))/0x5+parseInt(_0x503afd(0x10b))/0x6+-parseInt(_0x503afd(0x130))/0x7+parseInt(_0x503afd(0x12f))/0x8*(parseInt(_0x503afd(0x120))/0x9)+-parseInt(_0x503afd(0x107))/0xa*(-parseInt(_0x503afd(0x10c))/0xb);if(_0x1bc20c===_0x29c94e)break;else _0x383934['push'](_0x383934['shift']());}catch(_0x2d068f){_0x383934['push'](_0x383934['shift']());}}}(_0x1cb0,0xbd0ef),function(_0x43d19c,_0xce4b63){const _0x5850a3=_0x31c6;typeof exports==_0x5850a3(0x126)&&typeof module<'u'?_0xce4b63(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x5850a3(0x111)&&define['amd']?define([_0x5850a3(0x11e),_0x5850a3(0x11d),_0x5850a3(0x12c)],_0xce4b63):(_0x43d19c=typeof globalThis<'u'?globalThis:_0x43d19c||self,_0xce4b63(_0x43d19c[_0x5850a3(0x11b)],_0x43d19c[_0x5850a3(0x133)],_0x43d19c['UniverCoreFacade']));}(this,function(_0x43cff3,_0x2d3344,_0x2c84e7){const _0x513125=_0x31c6;function _0xdd1410(_0x525362){'@babel/helpers - typeof';const _0x53d65a=_0x31c6;return _0xdd1410=typeof Symbol==_0x53d65a(0x111)&&typeof Symbol['iterator']==_0x53d65a(0x132)?function(_0x33eb1e){return typeof _0x33eb1e;}:function(_0x1ffc0e){const _0x405cd9=_0x53d65a;return _0x1ffc0e&&typeof Symbol=='function'&&_0x1ffc0e[_0x405cd9(0x136)]===Symbol&&_0x1ffc0e!==Symbol['prototype']?_0x405cd9(0x132):typeof _0x1ffc0e;},_0xdd1410(_0x525362);}function _0x27e0ee(_0x17f3e1,_0x2ca486){const _0xe597d9=_0x31c6;if(_0xdd1410(_0x17f3e1)!=_0xe597d9(0x126)||!_0x17f3e1)return _0x17f3e1;var _0x4decc8=_0x17f3e1[Symbol[_0xe597d9(0x121)]];if(_0x4decc8!==void 0x0){var _0x400663=_0x4decc8[_0xe597d9(0x129)](_0x17f3e1,_0x2ca486||_0xe597d9(0x127));if(_0xdd1410(_0x400663)!=_0xe597d9(0x126))return _0x400663;throw TypeError(_0xe597d9(0x117));}return(_0x2ca486===_0xe597d9(0x12b)?String:Number)(_0x17f3e1);}function _0x266b9d(_0x1c59a8){var _0x5532f6=_0x27e0ee(_0x1c59a8,'string');return _0xdd1410(_0x5532f6)=='symbol'?_0x5532f6:_0x5532f6+'';}function _0x5811b4(_0x299874,_0x526c70,_0x28c2e0){const _0x1ef096=_0x31c6;return(_0x526c70=_0x266b9d(_0x526c70))in _0x299874?Object[_0x1ef096(0x11c)](_0x299874,_0x526c70,{'value':_0x28c2e0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x299874[_0x526c70]=_0x28c2e0,_0x299874;}var _0x5c5f24=class extends _0x2c84e7[_0x513125(0x123)]{constructor(..._0x252233){const _0x143bab=_0x513125;super(..._0x252233),_0x5811b4(this,_0x143bab(0x115),void 0x0);}[_0x513125(0x10f)](_0xc0da00){const _0x51a97f=_0x513125;this['_liveShareController']=_0xc0da00[_0x51a97f(0x113)](_0x43cff3[_0x51a97f(0x12a)]);}[_0x513125(0x122)](){const _0x34a1ff=_0x513125;let _0x9bfc9=this[_0x34a1ff(0x10d)][_0x34a1ff(0x113)](_0x2d3344[_0x34a1ff(0x108)])['getCurrentUnitOfType'](_0x2d3344[_0x34a1ff(0x135)][_0x34a1ff(0x12d)]);if(!_0x9bfc9)throw Error('No\x20active\x20workbook\x20found.');let _0x23f612=_0x9bfc9['getUnitId'](),_0x2c701d=this[_0x34a1ff(0x115)][_0x34a1ff(0x106)](_0x23f612);return(_0x2c701d==null?void 0x0:_0x2c701d[_0x34a1ff(0x128)]())??_0x43cff3[_0x34a1ff(0x119)][_0x34a1ff(0x112)];}[_0x513125(0x109)](){const _0x12ee80=_0x513125;let _0x3553f4=this[_0x12ee80(0x10d)]['get'](_0x2d3344[_0x12ee80(0x108)])[_0x12ee80(0x131)](_0x2d3344[_0x12ee80(0x135)][_0x12ee80(0x12d)]);if(!_0x3553f4)throw Error(_0x12ee80(0x118));let _0x536414=_0x3553f4[_0x12ee80(0x11f)](),_0x5f279a=this[_0x12ee80(0x115)][_0x12ee80(0x106)](_0x536414);if(!_0x5f279a)throw Error(_0x12ee80(0x125));_0x5f279a[_0x12ee80(0x109)]();}['stopFollowing'](){const _0x4b48a7=_0x513125;let _0x459f78=this[_0x4b48a7(0x10d)][_0x4b48a7(0x113)](_0x2d3344[_0x4b48a7(0x108)])[_0x4b48a7(0x131)](_0x2d3344[_0x4b48a7(0x135)][_0x4b48a7(0x12d)]);if(!_0x459f78)throw Error('No\x20active\x20workbook\x20found.');let _0x4a5143=_0x459f78[_0x4b48a7(0x11f)](),_0x35f0fa=this[_0x4b48a7(0x115)][_0x4b48a7(0x106)](_0x4a5143);if(!_0x35f0fa)throw Error(_0x4b48a7(0x125));_0x35f0fa[_0x4b48a7(0x134)]();}['startPresenting'](){const _0x1b9e84=_0x513125;let _0x53d364=this['_injector'][_0x1b9e84(0x113)](_0x2d3344[_0x1b9e84(0x108)])[_0x1b9e84(0x131)](_0x2d3344[_0x1b9e84(0x135)][_0x1b9e84(0x12d)]);if(!_0x53d364)throw Error(_0x1b9e84(0x118));let _0xb5929f=_0x53d364[_0x1b9e84(0x11f)](),_0x408d95=this[_0x1b9e84(0x115)][_0x1b9e84(0x106)](_0xb5929f);if(!_0x408d95)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x408d95['tryStartPresenting']();}[_0x513125(0x12e)](){const _0x59cd75=_0x513125;let _0x2b1ddc=this[_0x59cd75(0x10d)][_0x59cd75(0x113)](_0x2d3344[_0x59cd75(0x108)])['getCurrentUnitOfType'](_0x2d3344[_0x59cd75(0x135)][_0x59cd75(0x12d)]);if(!_0x2b1ddc)throw Error('No\x20active\x20workbook\x20found.');let _0x374285=_0x2b1ddc['getUnitId'](),_0x2b753d=this['_liveShareController'][_0x59cd75(0x106)](_0x374285);if(!_0x2b753d)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2b753d[_0x59cd75(0x12e)]();}};_0x2c84e7[_0x513125(0x123)][_0x513125(0x116)](_0x5c5f24);var _0xfb92e7=class extends _0x2c84e7[_0x513125(0x124)]{get['LiveShareStatusEnum'](){const _0x536a32=_0x513125;return _0x43cff3[_0x536a32(0x119)];}};_0x2c84e7[_0x513125(0x124)][_0x513125(0x116)](_0xfb92e7);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x46a3(){const _0x2a17c4=['defIds','CollaborationEvent','456669KOqNmZ','unsubscribe','UNIVER_LIVE_SHARE_PLUGIN','HEADER_MENU','_handleOffline','dispose$','LIVESHARE_FETCH_OPERATIONS','url(#$1','_stopPresenting','complete','includes','_fetchOperations','SessionStatus','values','UniverSheetsUi','IUIPartsService','toDisposable','tag','asObservable','map','54210xxvvRG','_startLiveShareCoordinator','PRESENTING','getConfig','SetWorksheetActiveOperation','Start','univer-mb-3\x20univer-w-full\x20univer-text-sm','_injector','useMemo','subscribe','init','ONLINE','add','entries','_init','_handleOnline','getLiveShareCoordinator','_reporters','5OALvSJ','defer','_handleOperation','sheet','LiveShareIcon','FOLLOWING','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','CommandType','merge','live-share.config','sessionStatus$','operations','exports','presenting','LiveShareController','override','jsx','UniverCore','_handleTerminate','button','@univerjs/sheets-ui','Start\x20following','LiveShareStatus','has','SetZoomRatioOperation','getMemberID','NEW_CHANGESETS','UniverProCollaborationClient','forwardRef','object','You\x27re\x20following\x20the\x20presenter','UNIVER_UNKNOWN','_status$','You\x27re\x20not\x20following\x20the\x20presenter','_entities','shouldShareOperation','RxDisposable','1728376sKnhNj','react/jsx-runtime','startFollowing','string','UNIVER_SHEET','symbol','jsxs','params','takeUntil','LIVESHARE_TERMINATE','_handleNewHost','_status','UniverSheets','connectInjector','_sharedOperations','Stop\x20presenting','_uiPartsService','length','tryStartPresenting','attrs','LIVESHARE_REQUEST_HOST','_startFollowing','currentColor','use','disposeWithMe','6meDyND','onRendered','getTypeOfUnitDisposed$','_beIdle','UniverLiveSharePlugin','@univerjs/core','rxjs/operators','pluginName','find','stringify','iterator','OFFLINE','_commandService','rxjs','unit','registerInitialStateReporter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_presenter','decorate','UniverInstanceType','xlink:href','react','IDLE','Present\x20this\x20document','_configService','div','useObservable','live-share-icon','packageName','getInitialStates','Stop\x20following','random','React','clear','trim','getCurrentTypeOfUnit$','getUnitId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getLiveShareCoordinatorSync','from','1701024XfyjUE','constructor','getTypeOfUnitAdded$','UniverUi','@univerjs-pro/live-share','_mountLiveShare','colorChannel1','UniverProLiveShare','useDependency','offline','BuiltInUIPart','_liveShareService','end','mergeOverrideWithDependencies','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','path','throttleTime','parse','unitId','createInstance','stroke','subject','3518963vakGGJ','LIVESHARE_OPERATION','requireSession','send','OPERATION','evenodd','UniverDesign','dispose','Fragment','stopPresenting','forEach','replace','_config','createElement','fill','function','data','reverse','text','assign','UniverCollaborationClientPlugin','Subject','event$','idSuffix','memberID','touchDependencies','_commandDisposable','next','stopFollowing','613301tkYaPR','toString','Plugin','_unitID','_collabSession','_collabSessionService','idle','pipe','IUniverInstanceService','@univerjs/ui','_stopFollowing','1em','substring','Inject','Injector','You\x27re\x20presenting\x20the\x20document','BehaviorSubject','DisposableCollection','defineProperty','not-following','CollaborationSessionService','getOwnPropertyDescriptor','_univerInstanceService','get','toStringTag','onCommandExecuted','following','IConfigService','children','Button','@univerjs-pro/collaboration','InsertSheetMutation','_handleNewChangeSets','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','executeCommand','status$','Disposable','695274kUOOAc','You\x27are\x20offline.','mutations','operators','delete','ICommandService'];_0x46a3=function(){return _0x2a17c4;};return _0x46a3();}function _0x34ce(_0x4c10d1,_0x2e5b02){_0x4c10d1=_0x4c10d1-0x13b;const _0x46a3eb=_0x46a3();let _0x34ce7c=_0x46a3eb[_0x4c10d1];return _0x34ce7c;}(function(_0x8cc250,_0x6a9246){const _0x3e58d7=_0x34ce,_0x1bfc84=_0x8cc250();while(!![]){try{const _0x47d3b0=parseInt(_0x3e58d7(0x1a5))/0x1+parseInt(_0x3e58d7(0x14a))/0x2*(-parseInt(_0x3e58d7(0x1e7))/0x3)+-parseInt(_0x3e58d7(0x21e))/0x4+-parseInt(_0x3e58d7(0x1f9))/0x5*(parseInt(_0x3e58d7(0x1cb))/0x6)+parseInt(_0x3e58d7(0x188))/0x7+-parseInt(_0x3e58d7(0x172))/0x8+parseInt(_0x3e58d7(0x1d3))/0x9;if(_0x47d3b0===_0x6a9246)break;else _0x1bfc84['push'](_0x1bfc84['shift']());}catch(_0xb72913){_0x1bfc84['push'](_0x1bfc84['shift']());}}}(_0x46a3,0x55ec4),function(_0x574203,_0x46607a){const _0xcdc4e6=_0x34ce;typeof exports==_0xcdc4e6(0x216)&&typeof module<'u'?_0x46607a(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime')):typeof define==_0xcdc4e6(0x197)&&define['amd']?define([_0xcdc4e6(0x205),_0xcdc4e6(0x1c3),'@univerjs-pro/collaboration-client',_0xcdc4e6(0x14f),'@univerjs/sheets',_0xcdc4e6(0x157),_0xcdc4e6(0x150),_0xcdc4e6(0x20d),_0xcdc4e6(0x1ae),'@univerjs/design',_0xcdc4e6(0x15f),_0xcdc4e6(0x21f)],_0x46607a):(_0x574203=typeof globalThis<'u'?globalThis:_0x574203||self,_0x46607a(_0x574203[_0xcdc4e6(0x179)]={},_0x574203['UniverProCollaboration'],_0x574203[_0xcdc4e6(0x214)],_0x574203[_0xcdc4e6(0x20a)],_0x574203[_0xcdc4e6(0x13d)],_0x574203[_0xcdc4e6(0x157)],_0x574203['rxjs'][_0xcdc4e6(0x1ce)],_0x574203[_0xcdc4e6(0x1e1)],_0x574203[_0xcdc4e6(0x175)],_0x574203[_0xcdc4e6(0x18e)],_0x574203['React'],_0x574203[_0xcdc4e6(0x16a)]));}(this,function(_0x131977,_0x25303d,_0x5a9e64,_0xb25766,_0x41b70d,_0x1eb6fd,_0x2409b5,_0x221dfd,_0x50de09,_0x4172f9,_0x1a58aa,_0x31f262){const _0x1d4d30=_0x34ce;Object[_0x1d4d30(0x1b7)](_0x131977,Symbol[_0x1d4d30(0x1bd)],{'value':'Module'});function _0x11310f(_0x1876bd){'@babel/helpers - typeof';const _0x103fcd=_0x1d4d30;return _0x11310f=typeof Symbol==_0x103fcd(0x197)&&typeof Symbol[_0x103fcd(0x154)]=='symbol'?function(_0x2a66a4){return typeof _0x2a66a4;}:function(_0x4bd990){const _0x55e43=_0x103fcd;return _0x4bd990&&typeof Symbol=='function'&&_0x4bd990[_0x55e43(0x173)]===Symbol&&_0x4bd990!==Symbol['prototype']?'symbol':typeof _0x4bd990;},_0x11310f(_0x1876bd);}function _0x16bfa2(_0x24ae56,_0x5a1a24){const _0xfcea1c=_0x1d4d30;if(_0x11310f(_0x24ae56)!=_0xfcea1c(0x216)||!_0x24ae56)return _0x24ae56;var _0x246ee5=_0x24ae56[Symbol['toPrimitive']];if(_0x246ee5!==void 0x0){var _0x82bfd9=_0x246ee5['call'](_0x24ae56,_0x5a1a24||'default');if(_0x11310f(_0x82bfd9)!='object')return _0x82bfd9;throw TypeError(_0xfcea1c(0x16f));}return(_0x5a1a24==='string'?String:Number)(_0x24ae56);}function _0x3aecc9(_0x130830){const _0x17f93=_0x1d4d30;var _0x2f678b=_0x16bfa2(_0x130830,_0x17f93(0x221));return _0x11310f(_0x2f678b)==_0x17f93(0x223)?_0x2f678b:_0x2f678b+'';}function _0x198a30(_0x58dd6e,_0x1052ca,_0x6a504b){const _0x4966f2=_0x1d4d30;return(_0x1052ca=_0x3aecc9(_0x1052ca))in _0x58dd6e?Object[_0x4966f2(0x1b7)](_0x58dd6e,_0x1052ca,{'value':_0x6a504b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x58dd6e[_0x1052ca]=_0x6a504b,_0x58dd6e;}var _0x52b9e9=class extends _0xb25766[_0x1d4d30(0x1ca)]{constructor(..._0x2897e6){const _0x5c87a0=_0x1d4d30;super(..._0x2897e6),_0x198a30(this,_0x5c87a0(0x13f),new Set()),_0x198a30(this,'_reporters',new Set());}['registerSharedOperation'](_0x395715){const _0x366d74=_0x1d4d30;return this[_0x366d74(0x13f)][_0x366d74(0x1f3)](_0x395715),(0x0,_0xb25766[_0x366d74(0x1e3)])(()=>this[_0x366d74(0x13f)][_0x366d74(0x1cf)](_0x395715));}[_0x1d4d30(0x159)](_0x1590fe){const _0x3aa75b=_0x1d4d30;return this[_0x3aa75b(0x1f8)][_0x3aa75b(0x1f3)](_0x1590fe),(0x0,_0xb25766[_0x3aa75b(0x1e3)])(()=>this['_reporters']['delete'](_0x1590fe));}[_0x1d4d30(0x21c)](_0x2aac96){const _0x3d0d42=_0x1d4d30;return this[_0x3d0d42(0x13f)][_0x3d0d42(0x210)](_0x2aac96);}[_0x1d4d30(0x167)](_0x17f748){const _0x11d1c3=_0x1d4d30;return Array[_0x11d1c3(0x171)](this['_reporters'])['map'](_0x37a253=>_0x37a253(_0x17f748));}};function _0x36dd09(_0x1c3454,_0x4e2156){return function(_0x2a29b0,_0x52047a){_0x4e2156(_0x2a29b0,_0x52047a,_0x1c3454);};}function _0x2b4402(_0x270452,_0xabe118,_0xda14af,_0x44e96f){const _0x3340a9=_0x1d4d30;var _0x7ba905=arguments[_0x3340a9(0x142)],_0x2ebf17=_0x7ba905<0x3?_0xabe118:_0x44e96f===null?_0x44e96f=Object[_0x3340a9(0x1ba)](_0xabe118,_0xda14af):_0x44e96f,_0x2ea05e;if(typeof Reflect==_0x3340a9(0x216)&&typeof Reflect[_0x3340a9(0x15c)]==_0x3340a9(0x197))_0x2ebf17=Reflect[_0x3340a9(0x15c)](_0x270452,_0xabe118,_0xda14af,_0x44e96f);else{for(var _0x43818f=_0x270452[_0x3340a9(0x142)]-0x1;_0x43818f>=0x0;_0x43818f--)(_0x2ea05e=_0x270452[_0x43818f])&&(_0x2ebf17=(_0x7ba905<0x3?_0x2ea05e(_0x2ebf17):_0x7ba905>0x3?_0x2ea05e(_0xabe118,_0xda14af,_0x2ebf17):_0x2ea05e(_0xabe118,_0xda14af))||_0x2ebf17);}return _0x7ba905>0x3&&_0x2ebf17&&Object['defineProperty'](_0xabe118,_0xda14af,_0x2ebf17),_0x2ebf17;}let _0x47372d=class extends _0xb25766[_0x1d4d30(0x21d)]{constructor(_0x24b8ea,_0x5d9801,_0x16597a){const _0x5c6f91=_0x1d4d30;super(),this['_univerInstanceService']=_0x24b8ea,this[_0x5c6f91(0x1ee)]=_0x5d9801,this[_0x5c6f91(0x1aa)]=_0x16597a,_0x198a30(this,_0x5c6f91(0x21b),new Map()),this[_0x5c6f91(0x1f5)]();}async[_0x1d4d30(0x1f7)](_0x963e53){const _0x1f207d=_0x1d4d30;return this['_entities']['has'](_0x963e53)||await this[_0x1f207d(0x1e8)](_0x963e53),this[_0x1f207d(0x21b)][_0x1f207d(0x1bc)](_0x963e53);}[_0x1d4d30(0x170)](_0x189e42){const _0x3122fd=_0x1d4d30;var _0x5709b5;return(_0x5709b5=this[_0x3122fd(0x21b)]['get'](_0x189e42))==null?null:_0x5709b5;}['_init'](){const _0x443cc1=_0x1d4d30;this[_0x443cc1(0x1bb)][_0x443cc1(0x174)](_0xb25766[_0x443cc1(0x15d)][_0x443cc1(0x222)])[_0x443cc1(0x1ac)]((0x0,_0x2409b5[_0x443cc1(0x226)])(this[_0x443cc1(0x1d8)]))[_0x443cc1(0x1f0)](async _0x4fa743=>{const _0x47cc66=_0x443cc1;let _0x466fb3=_0x4fa743[_0x47cc66(0x158)]['getUnitId']();this[_0x47cc66(0x21b)][_0x47cc66(0x210)](_0x466fb3)||this[_0x47cc66(0x1e8)](_0x466fb3);}),this[_0x443cc1(0x1bb)][_0x443cc1(0x14c)](_0xb25766['UniverInstanceType']['UNIVER_SHEET'])[_0x443cc1(0x1ac)]((0x0,_0x2409b5[_0x443cc1(0x226)])(this[_0x443cc1(0x1d8)]))[_0x443cc1(0x1f0)](_0x39716b=>{const _0x2a37cf=_0x443cc1;let _0x13bd3b=_0x39716b[_0x2a37cf(0x16e)](),_0x30cbae=this[_0x2a37cf(0x21b)][_0x2a37cf(0x1bc)](_0x13bd3b);_0x30cbae==null||_0x30cbae[_0x2a37cf(0x18f)]();});}async['_startLiveShareCoordinator'](_0x4ed574){const _0x34df0d=_0x1d4d30;let _0xd6dfeb=await this[_0x34df0d(0x1aa)][_0x34df0d(0x18a)](_0x4ed574),_0x2dfca2=this[_0x34df0d(0x1ee)][_0x34df0d(0x185)](_0x461a3b,_0x4ed574,_0xd6dfeb);return _0x2dfca2[_0x34df0d(0x1f1)](),this[_0x34df0d(0x21b)]['set'](_0x4ed574,_0x2dfca2),_0x2dfca2;}};_0x47372d=_0x2b4402([_0x36dd09(0x0,_0xb25766[_0x1d4d30(0x1ad)]),_0x36dd09(0x1,(0x0,_0xb25766[_0x1d4d30(0x1b2)])(_0xb25766['Injector'])),_0x36dd09(0x2,(0x0,_0xb25766['Inject'])(_0x5a9e64[_0x1d4d30(0x1b9)]))],_0x47372d);let _0x267d9f=function(_0x3a200a){const _0x37871a=_0x1d4d30;return _0x3a200a[_0x37871a(0x155)]=_0x37871a(0x17b),_0x3a200a[_0x37871a(0x160)]=_0x37871a(0x1ab),_0x3a200a[_0x37871a(0x1fe)]=_0x37871a(0x1bf),_0x3a200a['NOT_FOLLOWING']=_0x37871a(0x1b8),_0x3a200a[_0x37871a(0x1e9)]=_0x37871a(0x206),_0x3a200a;}({}),_0x461a3b=class extends _0xb25766[_0x1d4d30(0x21d)]{get[_0x1d4d30(0x13c)](){const _0x4db36e=_0x1d4d30;return this[_0x4db36e(0x219)]['getValue']();}constructor(_0x24131f,_0x51cfe4,_0x438d07,_0x1cd029,_0x525c48){const _0x4b5965=_0x1d4d30;super(),this[_0x4b5965(0x1a8)]=_0x24131f,this[_0x4b5965(0x1a9)]=_0x51cfe4,this[_0x4b5965(0x162)]=_0x438d07,this['_liveShareService']=_0x1cd029,this['_commandService']=_0x525c48,_0x198a30(this,_0x4b5965(0x219),new _0x1eb6fd[(_0x4b5965(0x1b5))](_0x4b5965(0x1ab))),_0x198a30(this,_0x4b5965(0x1c9),this[_0x4b5965(0x219)][_0x4b5965(0x1e5)]()),_0x198a30(this,_0x4b5965(0x1f5),!0x1),_0x198a30(this,'_commandDisposable',null),_0x198a30(this,_0x4b5965(0x15b),null);}[_0x1d4d30(0x18f)](){const _0x41e696=_0x1d4d30;var _0x405a29;(_0x405a29=this[_0x41e696(0x1a2)])==null||_0x405a29[_0x41e696(0x18f)](),this[_0x41e696(0x219)][_0x41e696(0x1a3)](_0x41e696(0x1ab)),this[_0x41e696(0x219)][_0x41e696(0x1dc)]();}['getStatus'](){return this['_status'];}[_0x1d4d30(0x1f1)](){const _0x37888d=_0x1d4d30;this[_0x37888d(0x1f5)]||(this['_init']=!0x0,this['_collabSession'][_0x37888d(0x203)][_0x37888d(0x1ac)]((0x0,_0x2409b5[_0x37888d(0x226)])(this['dispose$']))[_0x37888d(0x1f0)](_0x26969a=>{const _0x513e18=_0x37888d;switch(_0x26969a){case _0x5a9e64['SessionStatus'][_0x513e18(0x155)]:this[_0x513e18(0x1d7)]();break;case _0x5a9e64[_0x513e18(0x1df)][_0x513e18(0x1f2)]:this[_0x513e18(0x1f6)]();break;default:}}),this[_0x37888d(0x1a9)][_0x37888d(0x19e)][_0x37888d(0x1ac)]((0x0,_0x2409b5[_0x37888d(0x226)])(this[_0x37888d(0x1d8)]))[_0x37888d(0x1f0)](_0x3564e2=>{const _0x16cdb=_0x37888d;let {eventID:_0x5039ad}=_0x3564e2;switch(_0x5039ad){case _0x25303d[_0x16cdb(0x1d2)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x3564e2);break;case _0x25303d['CollaborationEvent'][_0x16cdb(0x189)]:this[_0x16cdb(0x1fb)](_0x3564e2);break;case _0x25303d[_0x16cdb(0x1d2)]['LIVESHARE_TERMINATE']:this[_0x16cdb(0x20b)]();break;case _0x25303d[_0x16cdb(0x1d2)][_0x16cdb(0x213)]:this[_0x16cdb(0x1c5)](_0x3564e2);break;default:}}));}[_0x1d4d30(0x143)](){const _0x259182=_0x1d4d30;this['_collabSession']['send']({'eventID':_0x25303d[_0x259182(0x1d2)][_0x259182(0x145)],'data':{'unitID':this['_unitID'],'userID':this[_0x259182(0x1a9)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x55e6ec=_0x1d4d30;this[_0x55e6ec(0x13c)]===_0x55e6ec(0x206)&&(this['_status$'][_0x55e6ec(0x1a3)](_0x55e6ec(0x1ab)),this[_0x55e6ec(0x1a9)][_0x55e6ec(0x18b)]({'eventID':_0x25303d[_0x55e6ec(0x1d2)][_0x55e6ec(0x227)],'data':{'unitID':this[_0x55e6ec(0x1a8)]}},this[_0x55e6ec(0x1a8)]));}[_0x1d4d30(0x220)](){const _0x1c96c4=_0x1d4d30;this[_0x1c96c4(0x13c)]===_0x1c96c4(0x1b8)&&(this[_0x1c96c4(0x219)][_0x1c96c4(0x1a3)](_0x1c96c4(0x1bf)),this[_0x1c96c4(0x146)]());}[_0x1d4d30(0x1a4)](){const _0x32f245=_0x1d4d30;this['_status']===_0x32f245(0x1bf)&&this[_0x32f245(0x1af)]();}[_0x1d4d30(0x13b)](_0x47e882){const _0xcb7b91=_0x1d4d30;let {presenter:_0x1a709b}=_0x47e882[_0xcb7b91(0x198)],_0x2a7225=this[_0xcb7b91(0x1a9)]['getMemberID']();this['_presenter']=_0x1a709b,_0x1a709b===_0x2a7225?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!=='not-following'&&(this[_0xcb7b91(0x1db)](),this[_0xcb7b91(0x146)]());}[_0x1d4d30(0x1de)](){const _0x4dbea0=_0x1d4d30;let _0x3f96eb={'eventID':_0x25303d[_0x4dbea0(0x1d2)][_0x4dbea0(0x1d9)]};this[_0x4dbea0(0x1a9)]['send'](_0x3f96eb,this[_0x4dbea0(0x1a8)]);}[_0x1d4d30(0x20b)](){const _0x20d9ab=_0x1d4d30;this['_presenter']=null,this[_0x20d9ab(0x13c)]!==_0x20d9ab(0x206)&&this['_beIdle']();}['_handleNewChangeSets'](_0x4e361e){const _0xc22c50=_0x1d4d30;if(this[_0xc22c50(0x13c)]===_0xc22c50(0x1bf)&&this[_0xc22c50(0x15b)]===_0x4e361e[_0xc22c50(0x198)][_0xc22c50(0x1a0)]){let _0x525f24=(0x0,_0x25303d['parseProtocolChangeset'])(_0x4e361e[_0xc22c50(0x198)])[_0xc22c50(0x1cd)][_0xc22c50(0x199)]()[_0xc22c50(0x152)](_0x13090e=>_0x13090e['id']===_0x41b70d[_0xc22c50(0x1c4)]['id']);if(_0x525f24){let _0xe77d4a=_0x525f24['params'][_0xc22c50(0x184)],_0x32e3bc=_0x525f24[_0xc22c50(0x225)][_0xc22c50(0x1fc)]['id'];setTimeout(()=>{const _0x36557e=_0xc22c50;this[_0x36557e(0x156)]['executeCommand'](_0x41b70d[_0x36557e(0x1eb)]['id'],{'unitId':_0xe77d4a,'subUnitId':_0x32e3bc},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x2af27a=_0x1d4d30;var _0x3f6b00;(_0x3f6b00=this['_commandDisposable'])==null||_0x3f6b00[_0x2af27a(0x18f)](),this[_0x2af27a(0x219)][_0x2af27a(0x1a3)](_0x2af27a(0x206));let _0x58ea44=new Map(),_0x6c0179=this['_commandDisposable']=new _0xb25766[(_0x2af27a(0x1b6))]();_0x6c0179[_0x2af27a(0x1f3)]((0x0,_0xb25766[_0x2af27a(0x1e3)])(()=>{const _0x5811f9=_0x2af27a;_0x58ea44[_0x5811f9(0x192)](({subject:_0x36bd18,subscription:_0x28ab81})=>{const _0xe5c50d=_0x5811f9;_0x28ab81[_0xe5c50d(0x1d4)](),_0x36bd18['complete']();}),_0x58ea44[_0x5811f9(0x16b)]();})),_0x6c0179[_0x2af27a(0x1f3)](this['_commandService'][_0x2af27a(0x1be)](_0xdcad0e=>{const _0x2c00ae=_0x2af27a;if(_0xdcad0e[_0x2c00ae(0x1c6)]!==_0xb25766[_0x2c00ae(0x200)][_0x2c00ae(0x18c)]||!this[_0x2c00ae(0x17d)][_0x2c00ae(0x21c)](_0xdcad0e['id']))return;let {id:_0x9b27e5}=_0xdcad0e,_0x49983b;if(_0x58ea44[_0x2c00ae(0x210)](_0x9b27e5))_0x49983b=_0x58ea44['get'](_0x9b27e5)[_0x2c00ae(0x187)];else{var _0x3f9728;_0x49983b=new _0x1eb6fd[(_0x2c00ae(0x19d))]();let _0x5f2392=_0x49983b['pipe']((0x0,_0x2409b5[_0x2c00ae(0x182)])((_0x3f9728=this[_0x2c00ae(0x162)][_0x2c00ae(0x1ea)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x3f9728,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c00ae(0x1f0)](_0x46cd9c=>{const _0x49903c=_0x2c00ae;this[_0x49903c(0x1a9)][_0x49903c(0x18b)]({'eventID':_0x25303d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x46cd9c['id']]:{'id':_0x46cd9c['id'],'params':JSON[_0x49903c(0x153)](_0x46cd9c[_0x49903c(0x225)])}}}},this[_0x49903c(0x1a8)]);});_0x58ea44['set'](_0x9b27e5,{'subject':_0x49983b,'subscription':_0x5f2392});}_0x49983b[_0x2c00ae(0x1a3)](_0xdcad0e);})),this[_0x2af27a(0x17d)][_0x2af27a(0x167)](this[_0x2af27a(0x1a8)])[_0x2af27a(0x192)](_0x4cab30=>this[_0x2af27a(0x1a9)][_0x2af27a(0x18b)]({'eventID':_0x25303d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2af27a(0x1a8)],'operations':{[_0x4cab30['id']]:{'id':_0x4cab30['id'],'params':JSON['stringify'](_0x4cab30[_0x2af27a(0x225)])}}}},this[_0x2af27a(0x1a8)]));}[_0x1d4d30(0x1db)](){const _0x5c6640=_0x1d4d30;var _0xb4214c;this[_0x5c6640(0x219)]['next'](_0x5c6640(0x1ab)),(_0xb4214c=this['_commandDisposable'])==null||_0xb4214c[_0x5c6640(0x18f)](),this[_0x5c6640(0x1a2)]=null;}[_0x1d4d30(0x146)](){const _0xe7c243=_0x1d4d30;var _0x354e06;(_0x354e06=this[_0xe7c243(0x1a2)])==null||_0x354e06['dispose'](),this[_0xe7c243(0x219)][_0xe7c243(0x1a3)](_0xe7c243(0x1bf));}[_0x1d4d30(0x14d)](){const _0x4da816=_0x1d4d30;var _0x5c7f32;this[_0x4da816(0x219)][_0x4da816(0x1a3)](_0x4da816(0x1ab)),(_0x5c7f32=this[_0x4da816(0x1a2)])==null||_0x5c7f32[_0x4da816(0x18f)](),this[_0x4da816(0x1a2)]=null;}['_stopFollowing'](){const _0x55a09e=_0x1d4d30;var _0x4a038c;this[_0x55a09e(0x219)][_0x55a09e(0x1a3)](_0x55a09e(0x1b8)),(_0x4a038c=this['_commandDisposable'])==null||_0x4a038c[_0x55a09e(0x18f)]();}[_0x1d4d30(0x1fb)](_0x199c73){const _0x15cac6=_0x1d4d30;if([_0x15cac6(0x206),_0x15cac6(0x1b8),_0x15cac6(0x17b)][_0x15cac6(0x1dd)](this[_0x15cac6(0x13c)])||!_0x199c73[_0x15cac6(0x198)]['presenter']||_0x199c73[_0x15cac6(0x198)]['presenter']===this[_0x15cac6(0x1a9)][_0x15cac6(0x212)]())return;this[_0x15cac6(0x13c)]==='idle'&&this[_0x15cac6(0x146)]();let _0x10a56b=_0x199c73['data'][_0x15cac6(0x204)];Object[_0x15cac6(0x1e0)](_0x10a56b)[_0x15cac6(0x192)](_0x159f79=>{const _0x297296=_0x15cac6;this['_commandService'][_0x297296(0x1c8)](_0x159f79['id'],_0x159f79[_0x297296(0x225)]?JSON[_0x297296(0x183)](_0x159f79[_0x297296(0x225)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4c76b0=_0x1d4d30;var _0x12f38e;this[_0x4c76b0(0x219)][_0x4c76b0(0x1a3)](_0x4c76b0(0x17b)),(_0x12f38e=this[_0x4c76b0(0x1a2)])==null||_0x12f38e['dispose']();}['_handleOnline'](){const _0x2ac620=_0x1d4d30;this['_status$'][_0x2ac620(0x1a3)](_0x2ac620(0x1ab)),this[_0x2ac620(0x1de)]();}};_0x461a3b=_0x2b4402([_0x36dd09(0x2,_0xb25766[_0x1d4d30(0x1c0)]),_0x36dd09(0x3,(0x0,_0xb25766[_0x1d4d30(0x1b2)])(_0x52b9e9)),_0x36dd09(0x4,_0xb25766[_0x1d4d30(0x1d0)])],_0x461a3b);var _0xfbf7df=_0x1d4d30(0x176),_0x38dea6='1.0.0-alpha.7';let _0xdc8c56={},_0x5bf64f=class extends _0xb25766[_0x1d4d30(0x1ca)]{constructor(_0x7e9f9e){const _0x1c1722=_0x1d4d30;super(),this[_0x1c1722(0x17d)]=_0x7e9f9e,this[_0x1c1722(0x1f5)]();}[_0x1d4d30(0x1f5)](){const _0x373627=_0x1d4d30;[_0x221dfd[_0x373627(0x211)]['id'],_0x221dfd['SetScrollOperation']['id'],_0x41b70d[_0x373627(0x1eb)]['id']]['forEach'](_0x3eb2e2=>{const _0x1ff203=_0x373627;this[_0x1ff203(0x149)](this[_0x1ff203(0x17d)]['registerSharedOperation'](_0x3eb2e2));});}};_0x5bf64f=_0x2b4402([_0x36dd09(0x0,(0x0,_0xb25766[_0x1d4d30(0x1b2)])(_0x52b9e9))],_0x5bf64f);function _0x2762a4({ref:_0x5c7ebc,..._0x3f400c}){const _0x2b3d64=_0x1d4d30;let {icon:_0x3cc0ab,id:_0x5e1a8f,className:_0x15b0cf,extend:_0x3a1054,..._0x2da82f}=_0x3f400c,_0x22116e=('univerjs-icon\x20univerjs-icon-'+_0x5e1a8f+'\x20'+(_0x15b0cf||''))[_0x2b3d64(0x16c)](),_0x58dc04=(0x0,_0x1a58aa['useRef'])('_'+_0x267ae0());return _0x3e371(_0x3cc0ab,''+_0x5e1a8f,{'defIds':_0x3cc0ab[_0x2b3d64(0x1d1)],'idSuffix':_0x58dc04['current']},{'ref':_0x5c7ebc,'className':_0x22116e,..._0x2da82f},_0x3a1054);}function _0x3e371(_0x108696,_0x201d83,_0x111ed5,_0xa41be0,_0x191f7c){const _0x55face=_0x1d4d30;return(0x0,_0x1a58aa[_0x55face(0x195)])(_0x108696[_0x55face(0x1e4)],{'key':_0x201d83,..._0x14e0bc(_0x108696,_0x111ed5,_0x191f7c),..._0xa41be0},(_0x5e6bf4(_0x108696,_0x111ed5)[_0x55face(0x1c1)]||[])[_0x55face(0x1e6)]((_0x144c5b,_0x501676)=>_0x3e371(_0x144c5b,_0x201d83+'-'+_0x108696[_0x55face(0x1e4)]+'-'+_0x501676,_0x111ed5,void 0x0,_0x191f7c)));}function _0x14e0bc(_0x33f298,_0x56fc24,_0x5af9af){const _0x4a1727=_0x1d4d30;let _0xbf9847={..._0x33f298[_0x4a1727(0x144)]};_0x5af9af!=null&&_0x5af9af[_0x4a1727(0x178)]&&_0xbf9847[_0x4a1727(0x196)]===_0x4a1727(0x178)&&(_0xbf9847['fill']=_0x5af9af['colorChannel1']),_0x5af9af!=null&&_0x5af9af['colorChannel1']&&_0xbf9847[_0x4a1727(0x186)]==='colorChannel1'&&(_0xbf9847[_0x4a1727(0x186)]=_0x5af9af['colorChannel1']),_0x33f298[_0x4a1727(0x1e4)]==='mask'&&_0xbf9847['id']&&(_0xbf9847['id']+=_0x56fc24[_0x4a1727(0x19f)]),Object[_0x4a1727(0x1f4)](_0xbf9847)[_0x4a1727(0x192)](([_0x3af96e,_0x244133])=>{const _0x447c7e=_0x4a1727;_0x3af96e==='mask'&&typeof _0x244133=='string'&&(_0xbf9847[_0x3af96e]=_0x244133[_0x447c7e(0x193)](/url\(#(.*)\)/,'url(#$1'+_0x56fc24[_0x447c7e(0x19f)]+')'));});let {defIds:_0x9e59de}=_0x56fc24;return!_0x9e59de||_0x9e59de[_0x4a1727(0x142)]===0x0?_0xbf9847:(_0x33f298[_0x4a1727(0x1e4)]===_0x4a1727(0x148)&&_0xbf9847[_0x4a1727(0x15e)]&&(_0xbf9847[_0x4a1727(0x15e)]+=_0x56fc24['idSuffix']),Object[_0x4a1727(0x1f4)](_0xbf9847)[_0x4a1727(0x192)](([_0x5d072b,_0x42f7ca])=>{const _0x9e18=_0x4a1727;typeof _0x42f7ca==_0x9e18(0x221)&&(_0xbf9847[_0x5d072b]=_0x42f7ca['replace'](/url\(#(.*)\)/,_0x9e18(0x1da)+_0x56fc24['idSuffix']+')'));}),_0xbf9847);}function _0x5e6bf4(_0x25b00c,_0x5ebf23){const _0x28a851=_0x1d4d30;var _0x39e36d;let {defIds:_0x1a27f3}=_0x5ebf23;return!_0x1a27f3||_0x1a27f3['length']===0x0?_0x25b00c:_0x25b00c[_0x28a851(0x1e4)]==='defs'&&(_0x39e36d=_0x25b00c[_0x28a851(0x1c1)])!=null&&_0x39e36d['length']?{..._0x25b00c,'children':_0x25b00c[_0x28a851(0x1c1)][_0x28a851(0x1e6)](_0x1ec57c=>typeof _0x1ec57c[_0x28a851(0x144)]['id']=='string'&&_0x1a27f3&&_0x1a27f3['includes'](_0x1ec57c[_0x28a851(0x144)]['id'])?{..._0x1ec57c,'attrs':{..._0x1ec57c[_0x28a851(0x144)],'id':_0x1ec57c['attrs']['id']+_0x5ebf23[_0x28a851(0x19f)]}}:_0x1ec57c)}:_0x25b00c;}function _0x267ae0(){const _0x510bfc=_0x1d4d30;return Math[_0x510bfc(0x169)]()[_0x510bfc(0x1a6)](0x24)[_0x510bfc(0x1b1)](0x2,0x8);}_0x2762a4['displayName']='UniverIcon';let _0x58d5f2={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x1d4d30(0x1b0)},'children':[{'tag':_0x1d4d30(0x181),'attrs':{'fill':_0x1d4d30(0x147),'d':_0x1d4d30(0x180)}},{'tag':_0x1d4d30(0x181),'attrs':{'fill':_0x1d4d30(0x147),'d':_0x1d4d30(0x1c7),'fillRule':_0x1d4d30(0x18d),'clipRule':'evenodd'}}]},_0x1ac2a8=(0x0,_0x1a58aa[_0x1d4d30(0x215)])(function(_0x27de8b,_0x2ad4da){const _0x31ec26=_0x1d4d30;return(0x0,_0x1a58aa[_0x31ec26(0x195)])(_0x2762a4,Object[_0x31ec26(0x19b)]({},_0x27de8b,{'id':_0x31ec26(0x165),'ref':_0x2ad4da,'icon':_0x58d5f2}));});_0x1ac2a8['displayName']=_0x1d4d30(0x1fd);function _0x2d25ed(){const _0x11ee0e=_0x1d4d30;let _0x4dd216=(0x0,_0x50de09[_0x11ee0e(0x17a)])(_0x47372d),_0x3631a7=(0x0,_0x50de09[_0x11ee0e(0x17a)])(_0xb25766[_0x11ee0e(0x1ad)]),_0x377ebb=(0x0,_0x50de09[_0x11ee0e(0x164)])(()=>_0x3631a7[_0x11ee0e(0x16d)](_0xb25766[_0x11ee0e(0x15d)][_0x11ee0e(0x222)]),void 0x0,!0x1,[]),_0x15fa97=(0x0,_0x50de09['useObservable'])((0x0,_0x1a58aa[_0x11ee0e(0x1ef)])(()=>_0x377ebb?(0x0,_0x1eb6fd[_0x11ee0e(0x1fa)])(()=>(0x0,_0x1eb6fd[_0x11ee0e(0x171)])(_0x4dd216[_0x11ee0e(0x1f7)](_0x377ebb[_0x11ee0e(0x16e)]()))):(0x0,_0x1eb6fd['of'])(null),[_0x377ebb,_0x4dd216]),null),_0x2ace74=(0x0,_0x50de09[_0x11ee0e(0x164)])(_0x15fa97?()=>_0x15fa97['status$']:null,_0x11ee0e(0x1ab),!0x1,[_0x15fa97]);return _0x15fa97?(0x0,_0x31f262[_0x11ee0e(0x209)])(_0x4172f9['Dropdown'],{'align':_0x11ee0e(0x17e),'disabled':_0x2ace74===_0x11ee0e(0x17b),'className':_0x11ee0e(0x1ff),'overlay':(0x0,_0x31f262['jsx'])(_0x50f58d,{'status':_0x2ace74,'coordinator':_0x15fa97}),'children':(0x0,_0x31f262['jsx'])(_0x11ee0e(0x20c),{'className':(0x0,_0x4172f9['clsx'])(_0x11ee0e(0x15a),{'univer-cursor-not-allowed':_0x2ace74===_0x11ee0e(0x17b),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2ace74!=='offline'}),'type':_0x11ee0e(0x20c),'children':(0x0,_0x31f262[_0x11ee0e(0x209)])(_0x1ac2a8,{})})}):null;}function _0x50f58d(_0x6244db){const _0x4c7cdc=_0x1d4d30;let {status:_0x2c54c3,coordinator:_0x4046e1}=_0x6244db;switch(_0x2c54c3){case _0x4c7cdc(0x1ab):return(0x0,_0x31f262[_0x4c7cdc(0x209)])(_0x4f6ead,{'coordinator':_0x4046e1});case _0x4c7cdc(0x1bf):return(0x0,_0x31f262[_0x4c7cdc(0x209)])(_0x53b8f6,{'coordinator':_0x4046e1});case _0x4c7cdc(0x1b8):return(0x0,_0x31f262['jsx'])(_0xd69d04,{'coordinator':_0x4046e1});case _0x4c7cdc(0x17b):return(0x0,_0x31f262[_0x4c7cdc(0x209)])(_0x2715ff,{});case _0x4c7cdc(0x206):return(0x0,_0x31f262[_0x4c7cdc(0x209)])(_0x446875,{'coordinator':_0x4046e1});default:return null;}}function _0x4f6ead(_0x8bb08c){const _0x2e5dbd=_0x1d4d30;let {coordinator:_0x2ba4fe}=_0x8bb08c;return(0x0,_0x31f262[_0x2e5dbd(0x224)])(_0x31f262['Fragment'],{'children':[(0x0,_0x31f262['jsx'])(_0x2e5dbd(0x163),{'className':_0x2e5dbd(0x1ed),'children':_0x2e5dbd(0x161)}),(0x0,_0x31f262[_0x2e5dbd(0x209)])(_0x4172f9['Button'],{'onClick':()=>_0x2ba4fe[_0x2e5dbd(0x143)](),'children':_0x2e5dbd(0x1ec)})]});}function _0x53b8f6(_0x43ab66){const _0x191c1a=_0x1d4d30;let {coordinator:_0xa75adc}=_0x43ab66;return(0x0,_0x31f262[_0x191c1a(0x224)])(_0x31f262[_0x191c1a(0x190)],{'children':[(0x0,_0x31f262[_0x191c1a(0x209)])(_0x191c1a(0x163),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x191c1a(0x217)}),(0x0,_0x31f262[_0x191c1a(0x209)])(_0x4172f9['Button'],{'onClick':()=>_0xa75adc[_0x191c1a(0x1a4)](),'children':_0x191c1a(0x168)})]});}function _0xd69d04(_0x172102){const _0x5d09dd=_0x1d4d30;let {coordinator:_0x227940}=_0x172102;return(0x0,_0x31f262['jsxs'])(_0x31f262[_0x5d09dd(0x190)],{'children':[(0x0,_0x31f262[_0x5d09dd(0x209)])(_0x5d09dd(0x163),{'className':_0x5d09dd(0x1ed),'children':_0x5d09dd(0x21a)}),(0x0,_0x31f262['jsx'])(_0x4172f9[_0x5d09dd(0x1c2)],{'variant':_0x5d09dd(0x19a),'onClick':()=>_0x227940[_0x5d09dd(0x220)](),'children':_0x5d09dd(0x20e)})]});}function _0x446875(_0x39daaa){const _0xa47eda=_0x1d4d30;let {coordinator:_0x12b013}=_0x39daaa;return(0x0,_0x31f262['jsxs'])(_0x31f262[_0xa47eda(0x190)],{'children':[(0x0,_0x31f262[_0xa47eda(0x209)])('div',{'className':_0xa47eda(0x1ed),'children':_0xa47eda(0x1b4)}),(0x0,_0x31f262[_0xa47eda(0x209)])(_0x4172f9[_0xa47eda(0x1c2)],{'variant':'default','onClick':()=>_0x12b013[_0xa47eda(0x191)](),'children':_0xa47eda(0x140)})]});}function _0x2715ff(){const _0x4a7499=_0x1d4d30;return(0x0,_0x31f262[_0x4a7499(0x209)])(_0x31f262[_0x4a7499(0x190)],{'children':_0x4a7499(0x1cc)});}let _0x1f3097=class extends _0xb25766['Disposable']{constructor(_0x564d5b,_0x1681b4){const _0x1b9ee9=_0x1d4d30;super(),this['_injector']=_0x564d5b,this[_0x1b9ee9(0x141)]=_0x1681b4,this[_0x1b9ee9(0x177)]();}[_0x1d4d30(0x177)](){const _0x5be65d=_0x1d4d30;this[_0x5be65d(0x149)](this[_0x5be65d(0x141)]['registerComponent'](_0x50de09[_0x5be65d(0x17c)][_0x5be65d(0x1d6)],()=>(0x0,_0x50de09[_0x5be65d(0x13e)])(_0x2d25ed,this['_injector'])));}};_0x1f3097=_0x2b4402([_0x36dd09(0x0,(0x0,_0xb25766[_0x1d4d30(0x1b2)])(_0xb25766[_0x1d4d30(0x1b3)])),_0x36dd09(0x1,_0x50de09[_0x1d4d30(0x1e2)])],_0x1f3097);let _0x46f498=class extends _0xb25766[_0x1d4d30(0x1a7)]{constructor(_0x503efa=_0xdc8c56,_0x5887f5,_0x21e804){const _0x52a0ea=_0x1d4d30;super(),this[_0x52a0ea(0x194)]=_0x503efa,this[_0x52a0ea(0x1ee)]=_0x5887f5,this['_configService']=_0x21e804;let {..._0x375fb1}=(0x0,_0xb25766[_0x52a0ea(0x201)])({},_0xdc8c56,this[_0x52a0ea(0x194)]);this[_0x52a0ea(0x162)]['setConfig'](_0x52a0ea(0x202),_0x375fb1);}['onStarting'](){const _0x3dbec8=_0x1d4d30;(0x0,_0xb25766['registerDependencies'])(this['_injector'],(0x0,_0xb25766[_0x3dbec8(0x17f)])([[_0x52b9e9],[_0x47372d],[_0x5bf64f],[_0x1f3097]],this[_0x3dbec8(0x194)][_0x3dbec8(0x208)])),(0x0,_0xb25766[_0x3dbec8(0x1a1)])(this[_0x3dbec8(0x1ee)],[[_0x5bf64f]]);}[_0x1d4d30(0x14b)](){const _0x39e777=_0x1d4d30;(0x0,_0xb25766[_0x39e777(0x1a1)])(this[_0x39e777(0x1ee)],[[_0x1f3097]]);}};_0x198a30(_0x46f498,_0x1d4d30(0x1c6),_0xb25766[_0x1d4d30(0x15d)][_0x1d4d30(0x218)]),_0x198a30(_0x46f498,_0x1d4d30(0x151),_0x1d4d30(0x1d5)),_0x198a30(_0x46f498,_0x1d4d30(0x166),_0xfbf7df),_0x198a30(_0x46f498,'version',_0x38dea6),_0x46f498=_0x2b4402([(0x0,_0xb25766['DependentOn'])(_0x5a9e64[_0x1d4d30(0x19c)]),_0x36dd09(0x1,(0x0,_0xb25766['Inject'])(_0xb25766[_0x1d4d30(0x1b3)])),_0x36dd09(0x2,_0xb25766[_0x1d4d30(0x1c0)])],_0x46f498),Object[_0x1d4d30(0x1b7)](_0x131977,_0x1d4d30(0x207),{'enumerable':!0x0,'get':function(){return _0x47372d;}}),_0x131977[_0x1d4d30(0x20f)]=_0x267d9f,Object['defineProperty'](_0x131977,_0x1d4d30(0x14e),{'enumerable':!0x0,'get':function(){return _0x46f498;}});}));
|
|
1
|
+
(function(_0x91a969,_0x5f0709){const _0x14a62e=_0x11ba,_0x571acb=_0x91a969();while(!![]){try{const _0x573d74=parseInt(_0x14a62e(0x206))/0x1*(parseInt(_0x14a62e(0x1b9))/0x2)+-parseInt(_0x14a62e(0x181))/0x3+-parseInt(_0x14a62e(0x226))/0x4+parseInt(_0x14a62e(0x1fe))/0x5+-parseInt(_0x14a62e(0x1db))/0x6+-parseInt(_0x14a62e(0x22d))/0x7*(parseInt(_0x14a62e(0x188))/0x8)+parseInt(_0x14a62e(0x183))/0x9;if(_0x573d74===_0x5f0709)break;else _0x571acb['push'](_0x571acb['shift']());}catch(_0x2511d5){_0x571acb['push'](_0x571acb['shift']());}}}(_0x983d,0xc2225),function(_0x33958b,_0x47f12b){const _0x6312cc=_0x11ba;typeof exports==_0x6312cc(0x160)&&typeof module<'u'?_0x47f12b(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs-pro/license'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime')):typeof define=='function'&&define['amd']?define(['exports',_0x6312cc(0x1ad),'@univerjs-pro/collaboration-client','@univerjs/core',_0x6312cc(0x1f8),_0x6312cc(0x1e8),'rxjs/operators','@univerjs-pro/license',_0x6312cc(0x23a),_0x6312cc(0x1ab),_0x6312cc(0x17b),_0x6312cc(0x17c),_0x6312cc(0x234)],_0x47f12b):(_0x33958b=typeof globalThis<'u'?globalThis:_0x33958b||self,_0x47f12b(_0x33958b['UniverProLiveShare']={},_0x33958b['UniverProCollaboration'],_0x33958b[_0x6312cc(0x228)],_0x33958b[_0x6312cc(0x1c5)],_0x33958b['UniverSheets'],_0x33958b['rxjs'],_0x33958b[_0x6312cc(0x1e8)][_0x6312cc(0x1fa)],_0x33958b[_0x6312cc(0x20c)],_0x33958b[_0x6312cc(0x193)],_0x33958b[_0x6312cc(0x1c7)],_0x33958b[_0x6312cc(0x18b)],_0x33958b[_0x6312cc(0x152)],_0x33958b[_0x6312cc(0x152)]));}(this,function(_0x34ed02,_0x218dc7,_0x388fa6,_0x460769,_0x535733,_0x2c330b,_0x4847d9,_0x10bb7d,_0x289b77,_0x35405d,_0x5c69bc,_0x38dba7,_0x20f1ff){const _0x331341=_0x11ba;Object[_0x331341(0x202)](_0x34ed02,Symbol[_0x331341(0x1f1)],{'value':'Module'});function _0x4b179e(_0x3a8583){'@babel/helpers - typeof';const _0x960e41=_0x331341;return _0x4b179e=typeof Symbol=='function'&&typeof Symbol[_0x960e41(0x19d)]==_0x960e41(0x1fc)?function(_0x4d88ff){return typeof _0x4d88ff;}:function(_0x3f74b4){const _0x2ee42e=_0x960e41;return _0x3f74b4&&typeof Symbol=='function'&&_0x3f74b4[_0x2ee42e(0x1a8)]===Symbol&&_0x3f74b4!==Symbol['prototype']?_0x2ee42e(0x1fc):typeof _0x3f74b4;},_0x4b179e(_0x3a8583);}function _0x5a4b44(_0x1cf0d2,_0x39b0f0){const _0x2674fb=_0x331341;if(_0x4b179e(_0x1cf0d2)!=_0x2674fb(0x160)||!_0x1cf0d2)return _0x1cf0d2;var _0x5ac83e=_0x1cf0d2[Symbol[_0x2674fb(0x19c)]];if(_0x5ac83e!==void 0x0){var _0x2d3e55=_0x5ac83e[_0x2674fb(0x20b)](_0x1cf0d2,_0x39b0f0||_0x2674fb(0x1a2));if(_0x4b179e(_0x2d3e55)!='object')return _0x2d3e55;throw TypeError(_0x2674fb(0x180));}return(_0x39b0f0==='string'?String:Number)(_0x1cf0d2);}function _0xa1ef1f(_0x4aefe9){const _0x3ffa9f=_0x331341;var _0x305a13=_0x5a4b44(_0x4aefe9,'string');return _0x4b179e(_0x305a13)==_0x3ffa9f(0x1fc)?_0x305a13:_0x305a13+'';}function _0x590d61(_0x20a8ad,_0x4c1ac4,_0x44707b){const _0x4cc03b=_0x331341;return(_0x4c1ac4=_0xa1ef1f(_0x4c1ac4))in _0x20a8ad?Object[_0x4cc03b(0x202)](_0x20a8ad,_0x4c1ac4,{'value':_0x44707b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x20a8ad[_0x4c1ac4]=_0x44707b,_0x20a8ad;}var _0x57f205=class extends _0x460769['Disposable']{constructor(..._0x42db0d){const _0x671f19=_0x331341;super(..._0x42db0d),_0x590d61(this,_0x671f19(0x1e2),new Set()),_0x590d61(this,_0x671f19(0x1a7),new Set());}[_0x331341(0x201)](_0x3f93d9){const _0x1bf47f=_0x331341;return this[_0x1bf47f(0x1e2)][_0x1bf47f(0x223)](_0x3f93d9),(0x0,_0x460769[_0x1bf47f(0x1a1)])(()=>this[_0x1bf47f(0x1e2)][_0x1bf47f(0x166)](_0x3f93d9));}[_0x331341(0x1da)](_0x19bf7d){const _0x12538a=_0x331341;return this[_0x12538a(0x1a7)][_0x12538a(0x223)](_0x19bf7d),(0x0,_0x460769[_0x12538a(0x1a1)])(()=>this[_0x12538a(0x1a7)][_0x12538a(0x166)](_0x19bf7d));}['shouldShareOperation'](_0x2f6e76){const _0x33360c=_0x331341;return this[_0x33360c(0x1e2)][_0x33360c(0x18d)](_0x2f6e76);}[_0x331341(0x222)](_0x99f78d){const _0xa6e6b7=_0x331341;return Array['from'](this['_reporters'])[_0xa6e6b7(0x232)](_0x41543e=>_0x41543e(_0x99f78d));}};function _0x2ec6b8(_0x5ceefb,_0x2205e5){return function(_0x1ab768,_0x3e1989){_0x2205e5(_0x1ab768,_0x3e1989,_0x5ceefb);};}function _0x39b892(_0x37872e,_0x1c076b,_0x46f7ff,_0x45b2d4){const _0x825aa3=_0x331341;var _0x4945cb=arguments[_0x825aa3(0x16f)],_0x3a56e2=_0x4945cb<0x3?_0x1c076b:_0x45b2d4===null?_0x45b2d4=Object[_0x825aa3(0x1bc)](_0x1c076b,_0x46f7ff):_0x45b2d4,_0x647200;if(typeof Reflect==_0x825aa3(0x160)&&typeof Reflect[_0x825aa3(0x1b4)]==_0x825aa3(0x21a))_0x3a56e2=Reflect[_0x825aa3(0x1b4)](_0x37872e,_0x1c076b,_0x46f7ff,_0x45b2d4);else{for(var _0x4bc524=_0x37872e[_0x825aa3(0x16f)]-0x1;_0x4bc524>=0x0;_0x4bc524--)(_0x647200=_0x37872e[_0x4bc524])&&(_0x3a56e2=(_0x4945cb<0x3?_0x647200(_0x3a56e2):_0x4945cb>0x3?_0x647200(_0x1c076b,_0x46f7ff,_0x3a56e2):_0x647200(_0x1c076b,_0x46f7ff))||_0x3a56e2);}return _0x4945cb>0x3&&_0x3a56e2&&Object['defineProperty'](_0x1c076b,_0x46f7ff,_0x3a56e2),_0x3a56e2;}let _0x135dde=class extends _0x460769[_0x331341(0x168)]{constructor(_0x304b13,_0x1b62e8,_0x1b2fe9){const _0xf7958=_0x331341;super(),this[_0xf7958(0x229)]=_0x304b13,this[_0xf7958(0x15c)]=_0x1b62e8,this[_0xf7958(0x17d)]=_0x1b2fe9,_0x590d61(this,_0xf7958(0x239),new Map()),this[_0xf7958(0x1f9)]();}async[_0x331341(0x22a)](_0x5338d0){const _0x482a69=_0x331341;return this['_entities'][_0x482a69(0x18d)](_0x5338d0)||await this[_0x482a69(0x1eb)](_0x5338d0),this[_0x482a69(0x239)][_0x482a69(0x1e5)](_0x5338d0);}['getLiveShareCoordinatorSync'](_0x3d0b05){const _0xd71116=_0x331341;return this['_entities'][_0xd71116(0x1e5)](_0x3d0b05)??null;}['_init'](){const _0x1dc23c=_0x331341;this[_0x1dc23c(0x229)][_0x1dc23c(0x236)](_0x460769[_0x1dc23c(0x200)][_0x1dc23c(0x1f7)])[_0x1dc23c(0x218)]((0x0,_0x4847d9[_0x1dc23c(0x21b)])(this[_0x1dc23c(0x192)]))[_0x1dc23c(0x1e0)](async _0x5870a5=>{const _0x14d079=_0x1dc23c;let _0x4ce000=_0x5870a5[_0x14d079(0x15b)][_0x14d079(0x1ca)]();this['_entities'][_0x14d079(0x18d)](_0x4ce000)||this[_0x14d079(0x1eb)](_0x4ce000);}),this[_0x1dc23c(0x229)][_0x1dc23c(0x163)](_0x460769[_0x1dc23c(0x200)]['UNIVER_SHEET'])[_0x1dc23c(0x218)]((0x0,_0x4847d9[_0x1dc23c(0x21b)])(this[_0x1dc23c(0x192)]))['subscribe'](_0x3cf596=>{const _0x54199b=_0x1dc23c;let _0x260adf=_0x3cf596[_0x54199b(0x1ca)](),_0x3bad71=this[_0x54199b(0x239)][_0x54199b(0x1e5)](_0x260adf);_0x3bad71==null||_0x3bad71[_0x54199b(0x175)]();});}async[_0x331341(0x1eb)](_0x4fe645){const _0x1165a8=_0x331341;let _0x4cb00f=await this['_collabSessionService'][_0x1165a8(0x212)](_0x4fe645),_0x264598=this[_0x1165a8(0x15c)][_0x1165a8(0x170)](_0xfd15a,_0x4fe645,_0x4cb00f);return _0x264598[_0x1165a8(0x1d2)](),this[_0x1165a8(0x239)]['set'](_0x4fe645,_0x264598),_0x264598;}};_0x135dde=_0x39b892([_0x2ec6b8(0x0,_0x460769[_0x331341(0x157)]),_0x2ec6b8(0x1,(0x0,_0x460769[_0x331341(0x153)])(_0x460769['Injector'])),_0x2ec6b8(0x2,(0x0,_0x460769[_0x331341(0x153)])(_0x388fa6['CollaborationSessionService']))],_0x135dde);let _0x1aa43c=function(_0x2803c2){const _0x27b2be=_0x331341;return _0x2803c2[_0x27b2be(0x21d)]=_0x27b2be(0x184),_0x2803c2[_0x27b2be(0x1fb)]='idle',_0x2803c2[_0x27b2be(0x1d4)]=_0x27b2be(0x1dc),_0x2803c2[_0x27b2be(0x1ea)]=_0x27b2be(0x16d),_0x2803c2[_0x27b2be(0x1c0)]='presenting',_0x2803c2;}({}),_0xfd15a=class extends _0x460769[_0x331341(0x168)]{get[_0x331341(0x1d8)](){const _0x1ceddc=_0x331341;return this[_0x1ceddc(0x1b2)][_0x1ceddc(0x1ed)]();}constructor(_0x3d4d79,_0xa5390c,_0x174caf,_0x2a6006,_0x13d1df){const _0x1f888e=_0x331341;super(),this[_0x1f888e(0x1dd)]=_0x3d4d79,this['_collabSession']=_0xa5390c,this[_0x1f888e(0x162)]=_0x174caf,this[_0x1f888e(0x1d1)]=_0x2a6006,this[_0x1f888e(0x230)]=_0x13d1df,_0x590d61(this,_0x1f888e(0x1b2),new _0x2c330b[(_0x1f888e(0x191))](_0x1f888e(0x169))),_0x590d61(this,_0x1f888e(0x1d5),this[_0x1f888e(0x1b2)]['asObservable']()),_0x590d61(this,_0x1f888e(0x1f9),!0x1),_0x590d61(this,_0x1f888e(0x1af),null),_0x590d61(this,_0x1f888e(0x19a),null);}[_0x331341(0x175)](){const _0x3f086f=_0x331341;var _0xb93ac8;(_0xb93ac8=this[_0x3f086f(0x1af)])==null||_0xb93ac8[_0x3f086f(0x175)](),this[_0x3f086f(0x1b2)][_0x3f086f(0x1ac)](_0x3f086f(0x169)),this[_0x3f086f(0x1b2)][_0x3f086f(0x21e)]();}[_0x331341(0x20e)](){const _0x3efc64=_0x331341;return this[_0x3efc64(0x1d8)];}[_0x331341(0x1d2)](){const _0x2492d4=_0x331341;this[_0x2492d4(0x1f9)]||(this[_0x2492d4(0x1f9)]=!0x0,this['_collabSession'][_0x2492d4(0x225)]['pipe']((0x0,_0x4847d9[_0x2492d4(0x21b)])(this[_0x2492d4(0x192)]))[_0x2492d4(0x1e0)](_0x7c9200=>{const _0x6c2581=_0x2492d4;switch(_0x7c9200){case _0x388fa6[_0x6c2581(0x1c8)][_0x6c2581(0x21d)]:this[_0x6c2581(0x1d6)]();break;case _0x388fa6[_0x6c2581(0x1c8)]['ONLINE']:this['_handleOnline']();break;default:}}),this[_0x2492d4(0x216)][_0x2492d4(0x1f2)][_0x2492d4(0x218)]((0x0,_0x4847d9[_0x2492d4(0x21b)])(this[_0x2492d4(0x192)]))[_0x2492d4(0x1e0)](_0x3dc09f=>{const _0x1c7111=_0x2492d4;let {eventID:_0x5ec69d}=_0x3dc09f;switch(_0x5ec69d){case _0x218dc7[_0x1c7111(0x1ff)][_0x1c7111(0x167)]:this[_0x1c7111(0x161)](_0x3dc09f);break;case _0x218dc7['CollaborationEvent'][_0x1c7111(0x1a9)]:this['_handleOperation'](_0x3dc09f);break;case _0x218dc7[_0x1c7111(0x1ff)][_0x1c7111(0x199)]:this[_0x1c7111(0x155)]();break;case _0x218dc7[_0x1c7111(0x1ff)][_0x1c7111(0x1c6)]:this['_handleNewChangeSets'](_0x3dc09f);break;default:}}));}[_0x331341(0x19f)](){const _0x35205a=_0x331341;this[_0x35205a(0x216)][_0x35205a(0x1aa)]({'eventID':_0x218dc7[_0x35205a(0x1ff)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x35205a(0x1dd)],'userID':this[_0x35205a(0x216)]['getMemberID']()}},this[_0x35205a(0x1dd)]);}[_0x331341(0x21f)](){const _0x4a03aa=_0x331341;this[_0x4a03aa(0x1d8)]===_0x4a03aa(0x16c)&&(this[_0x4a03aa(0x1b2)][_0x4a03aa(0x1ac)]('idle'),this[_0x4a03aa(0x216)][_0x4a03aa(0x1aa)]({'eventID':_0x218dc7[_0x4a03aa(0x1ff)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x4a03aa(0x1dd)]));}['startFollowing'](){const _0x437bd8=_0x331341;this['_status']===_0x437bd8(0x16d)&&(this['_status$'][_0x437bd8(0x1ac)]('following'),this['_startFollowing']());}['stopFollowing'](){const _0x21e2bc=_0x331341;this[_0x21e2bc(0x1d8)]===_0x21e2bc(0x1dc)&&this['_stopFollowing']();}['_handleNewHost'](_0x1377ec){const _0x430b3f=_0x331341;let {presenter:_0x44fdb9}=_0x1377ec[_0x430b3f(0x1b3)],_0x40344a=this['_collabSession'][_0x430b3f(0x1e7)]();this[_0x430b3f(0x19a)]=_0x44fdb9,_0x44fdb9===_0x40344a?(this[_0x430b3f(0x194)](),this['_startPresenting']()):this[_0x430b3f(0x1d8)]!==_0x430b3f(0x16d)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x331341(0x213)](){const _0x3914cf=_0x331341;let _0x21403d={'eventID':_0x218dc7[_0x3914cf(0x1ff)][_0x3914cf(0x22b)]};this[_0x3914cf(0x216)][_0x3914cf(0x1aa)](_0x21403d,this[_0x3914cf(0x1dd)]);}[_0x331341(0x155)](){const _0x259ac9=_0x331341;this['_presenter']=null,this[_0x259ac9(0x1d8)]!=='presenting'&&this[_0x259ac9(0x15a)]();}[_0x331341(0x1ef)](_0x15ac1f){const _0x311bba=_0x331341;if(this[_0x311bba(0x1d8)]===_0x311bba(0x1dc)&&this['_presenter']===_0x15ac1f[_0x311bba(0x1b3)][_0x311bba(0x1cb)]){let _0x3ab1a4=(0x0,_0x218dc7[_0x311bba(0x211)])(_0x15ac1f[_0x311bba(0x1b3)])['mutations'][_0x311bba(0x1b0)]()['find'](_0x59149e=>_0x59149e['id']===_0x535733[_0x311bba(0x158)]['id']);if(_0x3ab1a4){let _0x506039=_0x3ab1a4[_0x311bba(0x220)][_0x311bba(0x15d)],_0x27d334=_0x3ab1a4[_0x311bba(0x220)][_0x311bba(0x1df)]['id'];setTimeout(()=>{const _0x552d39=_0x311bba;this[_0x552d39(0x230)][_0x552d39(0x15f)](_0x535733[_0x552d39(0x195)]['id'],{'unitId':_0x506039,'subUnitId':_0x27d334},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0xc7f954=_0x331341;var _0x4b8469;(_0x4b8469=this['_commandDisposable'])==null||_0x4b8469[_0xc7f954(0x175)](),this['_status$'][_0xc7f954(0x1ac)](_0xc7f954(0x16c));let _0x19ed23=new Map(),_0x12eb26=this['_commandDisposable']=new _0x460769['DisposableCollection']();_0x12eb26[_0xc7f954(0x223)]((0x0,_0x460769[_0xc7f954(0x1a1)])(()=>{const _0x200899=_0xc7f954;_0x19ed23[_0x200899(0x1c1)](({subject:_0x29d2ca,subscription:_0xe6cf17})=>{const _0x2b1e87=_0x200899;_0xe6cf17[_0x2b1e87(0x196)](),_0x29d2ca[_0x2b1e87(0x21e)]();}),_0x19ed23[_0x200899(0x1ee)]();})),_0x12eb26[_0xc7f954(0x223)](this[_0xc7f954(0x230)][_0xc7f954(0x17e)](_0x420642=>{const _0x53159e=_0xc7f954;if(_0x420642[_0x53159e(0x165)]!==_0x460769[_0x53159e(0x1b7)][_0x53159e(0x172)]||!this[_0x53159e(0x1d1)][_0x53159e(0x1ae)](_0x420642['id']))return;let {id:_0x4120d5}=_0x420642,_0x149a52;if(_0x19ed23[_0x53159e(0x18d)](_0x4120d5))_0x149a52=_0x19ed23[_0x53159e(0x1e5)](_0x4120d5)[_0x53159e(0x19b)];else{_0x149a52=new _0x2c330b[(_0x53159e(0x210))]();let _0x5bb883=_0x149a52[_0x53159e(0x218)]((0x0,_0x4847d9[_0x53159e(0x1b6)])(this[_0x53159e(0x162)][_0x53159e(0x1a6)](_0x53159e(0x207))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2b26c9=>{const _0x27767f=_0x53159e;this[_0x27767f(0x216)][_0x27767f(0x1aa)]({'eventID':_0x218dc7[_0x27767f(0x1ff)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x27767f(0x1dd)],'operations':{[_0x2b26c9['id']]:{'id':_0x2b26c9['id'],'params':JSON[_0x27767f(0x177)](_0x2b26c9['params'])}}}},this[_0x27767f(0x1dd)]);});_0x19ed23[_0x53159e(0x1d9)](_0x4120d5,{'subject':_0x149a52,'subscription':_0x5bb883});}_0x149a52[_0x53159e(0x1ac)](_0x420642);})),this['_liveShareService'][_0xc7f954(0x222)](this[_0xc7f954(0x1dd)])['forEach'](_0x1e0ed9=>this[_0xc7f954(0x216)][_0xc7f954(0x1aa)]({'eventID':_0x218dc7['CollaborationEvent'][_0xc7f954(0x1a9)],'data':{'unitID':this[_0xc7f954(0x1dd)],'operations':{[_0x1e0ed9['id']]:{'id':_0x1e0ed9['id'],'params':JSON[_0xc7f954(0x177)](_0x1e0ed9['params'])}}}},this[_0xc7f954(0x1dd)]));}[_0x331341(0x203)](){const _0x2fe31b=_0x331341;var _0x165d2c;this[_0x2fe31b(0x1b2)]['next'](_0x2fe31b(0x169)),(_0x165d2c=this[_0x2fe31b(0x1af)])==null||_0x165d2c[_0x2fe31b(0x175)](),this['_commandDisposable']=null;}[_0x331341(0x182)](){const _0x210231=_0x331341;var _0x1602a1;(_0x1602a1=this[_0x210231(0x1af)])==null||_0x1602a1[_0x210231(0x175)](),this['_status$']['next'](_0x210231(0x1dc));}[_0x331341(0x15a)](){const _0x2a656a=_0x331341;var _0x5067bc;this[_0x2a656a(0x1b2)][_0x2a656a(0x1ac)]('idle'),(_0x5067bc=this[_0x2a656a(0x1af)])==null||_0x5067bc[_0x2a656a(0x175)](),this[_0x2a656a(0x1af)]=null;}[_0x331341(0x194)](){const _0xa58cc4=_0x331341;var _0x324540;this[_0xa58cc4(0x1b2)][_0xa58cc4(0x1ac)](_0xa58cc4(0x16d)),(_0x324540=this[_0xa58cc4(0x1af)])==null||_0x324540[_0xa58cc4(0x175)]();}[_0x331341(0x16b)](_0x18c230){const _0x1fd675=_0x331341;if(['presenting',_0x1fd675(0x16d),'offline'][_0x1fd675(0x17a)](this['_status'])||!_0x18c230['data'][_0x1fd675(0x1a3)]||_0x18c230[_0x1fd675(0x1b3)][_0x1fd675(0x1a3)]===this['_collabSession'][_0x1fd675(0x1e7)]())return;this[_0x1fd675(0x1d8)]==='idle'&&this['_startFollowing']();let _0x4e4765=_0x18c230[_0x1fd675(0x1b3)][_0x1fd675(0x1c9)];Object['values'](_0x4e4765)[_0x1fd675(0x1c1)](_0x47df04=>{const _0xbc2f63=_0x1fd675;this[_0xbc2f63(0x230)][_0xbc2f63(0x15f)](_0x47df04['id'],_0x47df04[_0xbc2f63(0x220)]?JSON[_0xbc2f63(0x1e1)](_0x47df04[_0xbc2f63(0x220)]):null,{'fromCollab':!0x0});});}[_0x331341(0x1d6)](){const _0x370300=_0x331341;var _0x34afbc;this['_status$']['next']('offline'),(_0x34afbc=this[_0x370300(0x1af)])==null||_0x34afbc[_0x370300(0x175)]();}[_0x331341(0x21c)](){const _0x20221b=_0x331341;this[_0x20221b(0x1b2)]['next'](_0x20221b(0x169)),this[_0x20221b(0x213)]();}};_0xfd15a=_0x39b892([_0x2ec6b8(0x2,_0x460769[_0x331341(0x1f4)]),_0x2ec6b8(0x3,(0x0,_0x460769[_0x331341(0x153)])(_0x57f205)),_0x2ec6b8(0x4,_0x460769[_0x331341(0x237)])],_0xfd15a);var _0x547949='@univerjs-pro/live-share',_0x5af469='1.0.0-beta.0';let _0x49afa1={},_0x575399=class extends _0x460769[_0x331341(0x1c3)]{constructor(_0x2aeadf){const _0x52f65c=_0x331341;super(),this['_liveShareService']=_0x2aeadf,this[_0x52f65c(0x1f9)]();}['_init'](){const _0xf5351f=_0x331341;[_0x289b77[_0xf5351f(0x1b8)]['id'],_0x289b77['SetScrollOperation']['id'],_0x535733['SetWorksheetActiveOperation']['id']][_0xf5351f(0x1c1)](_0x307ed7=>{const _0x1bf116=_0xf5351f;this[_0x1bf116(0x1a0)](this[_0x1bf116(0x1d1)][_0x1bf116(0x201)](_0x307ed7));});}};_0x575399=_0x39b892([_0x2ec6b8(0x0,(0x0,_0x460769[_0x331341(0x153)])(_0x57f205))],_0x575399);function _0x51cc15({ref:_0x36c41a,..._0x30c247}){const _0x5e96e8=_0x331341;let {icon:_0x59bea8,id:_0xd3929c,className:_0x23f83a,extend:_0x282eaf,..._0xb79323}=_0x30c247,_0x1d91e4=(_0x5e96e8(0x1cc)+_0xd3929c+'\x20'+(_0x23f83a||''))[_0x5e96e8(0x205)](),_0x107ca0=(0x0,_0x38dba7['useRef'])('_'+_0x4d2d9b());return _0xcaeca7(_0x59bea8,''+_0xd3929c,{'defIds':_0x59bea8['defIds'],'idSuffix':_0x107ca0['current']},{'ref':_0x36c41a,'className':_0x1d91e4,..._0xb79323},_0x282eaf);}function _0xcaeca7(_0x9aaa1a,_0x38b313,_0x4be18b,_0x3d2ad4,_0x2a0628){const _0x5bdefb=_0x331341;return(0x0,_0x38dba7['createElement'])(_0x9aaa1a[_0x5bdefb(0x15e)],{'key':_0x38b313,..._0x4b4fb8(_0x9aaa1a,_0x4be18b,_0x2a0628),..._0x3d2ad4},(_0x20b277(_0x9aaa1a,_0x4be18b)[_0x5bdefb(0x1e4)]||[])[_0x5bdefb(0x232)]((_0x1a1d4c,_0x282dd1)=>_0xcaeca7(_0x1a1d4c,_0x38b313+'-'+_0x9aaa1a['tag']+'-'+_0x282dd1,_0x4be18b,void 0x0,_0x2a0628)));}function _0x4b4fb8(_0x15df91,_0x2d14af,_0x3e0ce2){const _0x197525=_0x331341;let _0x639125={..._0x15df91[_0x197525(0x20d)]};_0x3e0ce2!=null&&_0x3e0ce2[_0x197525(0x217)]&&_0x639125[_0x197525(0x22c)]===_0x197525(0x217)&&(_0x639125['fill']=_0x3e0ce2['colorChannel1']),_0x3e0ce2!=null&&_0x3e0ce2['colorChannel1']&&_0x639125[_0x197525(0x22e)]===_0x197525(0x217)&&(_0x639125[_0x197525(0x22e)]=_0x3e0ce2[_0x197525(0x217)]),_0x15df91[_0x197525(0x15e)]===_0x197525(0x219)&&_0x639125['id']&&(_0x639125['id']+=_0x2d14af[_0x197525(0x17f)]),Object[_0x197525(0x20f)](_0x639125)['forEach'](([_0x4377f3,_0x204893])=>{const _0x5304d9=_0x197525;_0x4377f3==='mask'&&typeof _0x204893==_0x5304d9(0x176)&&(_0x639125[_0x4377f3]=_0x204893[_0x5304d9(0x231)](/url\(#(.*)\)/,_0x5304d9(0x197)+_0x2d14af[_0x5304d9(0x17f)]+')'));});let {defIds:_0x4eee44}=_0x2d14af;return!_0x4eee44||_0x4eee44['length']===0x0?_0x639125:(_0x15df91[_0x197525(0x15e)]===_0x197525(0x224)&&_0x639125[_0x197525(0x156)]&&(_0x639125[_0x197525(0x156)]+=_0x2d14af[_0x197525(0x17f)]),Object[_0x197525(0x20f)](_0x639125)[_0x197525(0x1c1)](([_0x1ddd8b,_0x4ed2c0])=>{const _0x13a4a0=_0x197525;typeof _0x4ed2c0==_0x13a4a0(0x176)&&(_0x639125[_0x1ddd8b]=_0x4ed2c0['replace'](/url\(#(.*)\)/,'url(#$1'+_0x2d14af[_0x13a4a0(0x17f)]+')'));}),_0x639125);}function _0x20b277(_0x47f749,_0x52b73b){const _0x2b24a3=_0x331341;var _0x2c0f23;let {defIds:_0x16a01d}=_0x52b73b;return!_0x16a01d||_0x16a01d[_0x2b24a3(0x16f)]===0x0?_0x47f749:_0x47f749[_0x2b24a3(0x15e)]===_0x2b24a3(0x1ce)&&(_0x2c0f23=_0x47f749['children'])!=null&&_0x2c0f23[_0x2b24a3(0x16f)]?{..._0x47f749,'children':_0x47f749[_0x2b24a3(0x1e4)][_0x2b24a3(0x232)](_0xf19cf5=>typeof _0xf19cf5['attrs']['id']==_0x2b24a3(0x176)&&_0x16a01d&&_0x16a01d[_0x2b24a3(0x17a)](_0xf19cf5[_0x2b24a3(0x20d)]['id'])?{..._0xf19cf5,'attrs':{..._0xf19cf5['attrs'],'id':_0xf19cf5[_0x2b24a3(0x20d)]['id']+_0x52b73b[_0x2b24a3(0x17f)]}}:_0xf19cf5)}:_0x47f749;}function _0x4d2d9b(){const _0x5cdc0a=_0x331341;return Math['random']()['toString'](0x24)[_0x5cdc0a(0x18a)](0x2,0x8);}_0x51cc15['displayName']=_0x331341(0x1bd);let _0x5d86d0={'tag':_0x331341(0x18e),'attrs':{'xmlns':_0x331341(0x1be),'fill':_0x331341(0x1cf),'viewBox':'0\x200\x2017\x2017','width':_0x331341(0x198),'height':_0x331341(0x198)},'children':[{'tag':_0x331341(0x1ba),'attrs':{'fill':_0x331341(0x235),'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':_0x331341(0x1ba),'attrs':{'fill':_0x331341(0x235),'d':_0x331341(0x190),'fillRule':_0x331341(0x174),'clipRule':_0x331341(0x174)}}]},_0x2eaed0=(0x0,_0x38dba7[_0x331341(0x1b5)])(function(_0x1a6fdb,_0x4cbe14){const _0x1d477f=_0x331341;return(0x0,_0x38dba7[_0x1d477f(0x178)])(_0x51cc15,Object[_0x1d477f(0x1a5)]({},_0x1a6fdb,{'id':_0x1d477f(0x159),'ref':_0x4cbe14,'icon':_0x5d86d0}));});_0x2eaed0[_0x331341(0x227)]=_0x331341(0x1d3);function _0x92001b(){const _0x3f805f=_0x331341;let _0x1d82fa=(0x0,_0x35405d[_0x3f805f(0x1c2)])(_0x135dde),_0x4313ae=(0x0,_0x35405d[_0x3f805f(0x1c2)])(_0x460769[_0x3f805f(0x157)]),_0x3266ba=(0x0,_0x35405d[_0x3f805f(0x16a)])(()=>_0x4313ae[_0x3f805f(0x1a4)](_0x460769[_0x3f805f(0x200)][_0x3f805f(0x1f7)]),void 0x0,!0x1,[]),_0x5b537b=(0x0,_0x35405d[_0x3f805f(0x16a)])((0x0,_0x38dba7[_0x3f805f(0x1b1)])(()=>_0x3266ba?(0x0,_0x2c330b[_0x3f805f(0x16e)])(()=>(0x0,_0x2c330b['from'])(_0x1d82fa[_0x3f805f(0x22a)](_0x3266ba[_0x3f805f(0x1ca)]()))):(0x0,_0x2c330b['of'])(null),[_0x3266ba,_0x1d82fa]),null),_0x24d05d=(0x0,_0x35405d[_0x3f805f(0x16a)])(_0x5b537b?()=>_0x5b537b['status$']:null,_0x3f805f(0x169),!0x1,[_0x5b537b]);return _0x5b537b?(0x0,_0x20f1ff[_0x3f805f(0x1f6)])(_0x5c69bc[_0x3f805f(0x1fd)],{'align':_0x3f805f(0x185),'disabled':_0x24d05d===_0x3f805f(0x184),'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':(0x0,_0x20f1ff[_0x3f805f(0x1f6)])(_0x4bba85,{'status':_0x24d05d,'coordinator':_0x5b537b}),'children':(0x0,_0x20f1ff[_0x3f805f(0x1f6)])(_0x3f805f(0x164),{'className':(0x0,_0x5c69bc[_0x3f805f(0x1cd)])(_0x3f805f(0x20a),{'univer-cursor-not-allowed':_0x24d05d==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x24d05d!==_0x3f805f(0x184)}),'type':_0x3f805f(0x164),'children':(0x0,_0x20f1ff[_0x3f805f(0x1f6)])(_0x2eaed0,{})})}):null;}function _0x4bba85(_0xb12140){const _0x92c543=_0x331341;let {status:_0x5288b3,coordinator:_0x35f601}=_0xb12140;switch(_0x5288b3){case'idle':return(0x0,_0x20f1ff[_0x92c543(0x1f6)])(_0x366849,{'coordinator':_0x35f601});case _0x92c543(0x1dc):return(0x0,_0x20f1ff[_0x92c543(0x1f6)])(_0x317e3d,{'coordinator':_0x35f601});case _0x92c543(0x16d):return(0x0,_0x20f1ff['jsx'])(_0x3aa79e,{'coordinator':_0x35f601});case'offline':return(0x0,_0x20f1ff[_0x92c543(0x1f6)])(_0x1b6cc4,{});case _0x92c543(0x16c):return(0x0,_0x20f1ff[_0x92c543(0x1f6)])(_0xc966b0,{'coordinator':_0x35f601});default:return null;}}function _0x366849(_0x12c441){const _0x16ba12=_0x331341;let {coordinator:_0x16d4c1}=_0x12c441;return(0x0,_0x20f1ff[_0x16ba12(0x204)])(_0x20f1ff[_0x16ba12(0x179)],{'children':[(0x0,_0x20f1ff['jsx'])(_0x16ba12(0x1e9),{'className':_0x16ba12(0x1d0),'children':_0x16ba12(0x1ec)}),(0x0,_0x20f1ff[_0x16ba12(0x1f6)])(_0x5c69bc[_0x16ba12(0x151)],{'onClick':()=>_0x16d4c1[_0x16ba12(0x19f)](),'children':_0x16ba12(0x1d7)})]});}function _0x317e3d(_0x3f4601){const _0x34c6e0=_0x331341;let {coordinator:_0x1ac08f}=_0x3f4601;return(0x0,_0x20f1ff['jsxs'])(_0x20f1ff['Fragment'],{'children':[(0x0,_0x20f1ff[_0x34c6e0(0x1f6)])(_0x34c6e0(0x1e9),{'className':_0x34c6e0(0x1d0),'children':_0x34c6e0(0x1f0)}),(0x0,_0x20f1ff[_0x34c6e0(0x1f6)])(_0x5c69bc[_0x34c6e0(0x151)],{'onClick':()=>_0x1ac08f['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x3aa79e(_0x4ffd53){const _0x28c556=_0x331341;let {coordinator:_0x3e722f}=_0x4ffd53;return(0x0,_0x20f1ff[_0x28c556(0x204)])(_0x20f1ff[_0x28c556(0x179)],{'children':[(0x0,_0x20f1ff[_0x28c556(0x1f6)])(_0x28c556(0x1e9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28c556(0x221)}),(0x0,_0x20f1ff[_0x28c556(0x1f6)])(_0x5c69bc['Button'],{'variant':_0x28c556(0x1e3),'onClick':()=>_0x3e722f[_0x28c556(0x1de)](),'children':_0x28c556(0x171)})]});}function _0xc966b0(_0x4795a2){const _0x66e228=_0x331341;let {coordinator:_0x1b710d}=_0x4795a2;return(0x0,_0x20f1ff['jsxs'])(_0x20f1ff[_0x66e228(0x179)],{'children':[(0x0,_0x20f1ff[_0x66e228(0x1f6)])(_0x66e228(0x1e9),{'className':_0x66e228(0x1d0),'children':'You\x27re\x20presenting\x20the\x20document'}),(0x0,_0x20f1ff[_0x66e228(0x1f6)])(_0x5c69bc[_0x66e228(0x151)],{'variant':_0x66e228(0x1a2),'onClick':()=>_0x1b710d[_0x66e228(0x21f)](),'children':_0x66e228(0x214)})]});}function _0x1b6cc4(){const _0x5e1752=_0x331341;return(0x0,_0x20f1ff[_0x5e1752(0x1f6)])(_0x20f1ff['Fragment'],{'children':_0x5e1752(0x1f3)});}let _0x1e9275=class extends _0x460769[_0x331341(0x1c3)]{constructor(_0x3ca321,_0x5abdac){const _0x291ee7=_0x331341;super(),this[_0x291ee7(0x15c)]=_0x3ca321,this[_0x291ee7(0x233)]=_0x5abdac,this[_0x291ee7(0x154)]();}[_0x331341(0x154)](){const _0x2b098a=_0x331341;this['disposeWithMe'](this[_0x2b098a(0x233)][_0x2b098a(0x1bf)](_0x35405d[_0x2b098a(0x23b)][_0x2b098a(0x238)],()=>(0x0,_0x35405d['connectInjector'])(_0x92001b,this[_0x2b098a(0x15c)])));}};_0x1e9275=_0x39b892([_0x2ec6b8(0x0,(0x0,_0x460769[_0x331341(0x153)])(_0x460769[_0x331341(0x1bb)])),_0x2ec6b8(0x1,_0x35405d[_0x331341(0x215)])],_0x1e9275);let _0x5b2d57=class extends _0x460769['Plugin']{constructor(_0x2e8d3a=_0x49afa1,_0x574936,_0x259575){const _0x546dd7=_0x331341;super(),this['_config']=_0x2e8d3a,this[_0x546dd7(0x15c)]=_0x574936,this[_0x546dd7(0x162)]=_0x259575;let {..._0x2ade13}=(0x0,_0x460769['merge'])({},_0x49afa1,this[_0x546dd7(0x1f5)]);this[_0x546dd7(0x162)]['setConfig'](_0x546dd7(0x22f),_0x2ade13);}[_0x331341(0x19e)](){const _0x2c8ad8=_0x331341;(0x0,_0x460769['registerDependencies'])(this[_0x2c8ad8(0x15c)],(0x0,_0x460769['mergeOverrideWithDependencies'])([[_0x57f205],[_0x135dde],[_0x575399],[_0x1e9275]],this[_0x2c8ad8(0x1f5)][_0x2c8ad8(0x18f)])),(0x0,_0x460769[_0x2c8ad8(0x209)])(this[_0x2c8ad8(0x15c)],[[_0x575399]]);}['onRendered'](){const _0x223755=_0x331341;(0x0,_0x460769[_0x223755(0x209)])(this[_0x223755(0x15c)],[[_0x1e9275]]);}};_0x590d61(_0x5b2d57,'type',_0x460769['UniverInstanceType'][_0x331341(0x189)]),_0x590d61(_0x5b2d57,_0x331341(0x173),_0x331341(0x186)),_0x590d61(_0x5b2d57,_0x331341(0x18c),_0x547949),_0x590d61(_0x5b2d57,'version',_0x5af469),_0x5b2d57=_0x39b892([(0x0,_0x460769[_0x331341(0x1e6)])(_0x10bb7d[_0x331341(0x187)],_0x388fa6['UniverCollaborationClientPlugin']),_0x2ec6b8(0x1,(0x0,_0x460769[_0x331341(0x153)])(_0x460769[_0x331341(0x1bb)])),_0x2ec6b8(0x2,_0x460769['IConfigService'])],_0x5b2d57),Object[_0x331341(0x202)](_0x34ed02,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x135dde;}}),_0x34ed02[_0x331341(0x1c4)]=_0x1aa43c,Object[_0x331341(0x202)](_0x34ed02,_0x331341(0x208),{'enumerable':!0x0,'get':function(){return _0x5b2d57;}});}));function _0x11ba(_0x281630,_0x1d0f05){_0x281630=_0x281630-0x151;const _0x983d6f=_0x983d();let _0x11ba73=_0x983d6f[_0x281630];return _0x11ba73;}function _0x983d(){const _0x30354e=['path','Injector','getOwnPropertyDescriptor','UniverIcon','http://www.w3.org/2000/svg','registerComponent','PRESENTING','forEach','useDependency','Disposable','LiveShareStatus','UniverCore','NEW_CHANGESETS','UniverUi','SessionStatus','operations','getUnitId','memberID','univerjs-icon\x20univerjs-icon-','clsx','defs','none','univer-mb-3\x20univer-w-full\x20univer-text-sm','_liveShareService','init','LiveShareIcon','FOLLOWING','status$','_handleOffline','Start','_status','set','registerInitialStateReporter','4550304BYsWaF','following','_unitID','startFollowing','sheet','subscribe','parse','_sharedOperations','text','children','get','DependentOn','getMemberID','rxjs','div','NOT_FOLLOWING','_startLiveShareCoordinator','Present\x20this\x20document','getValue','clear','_handleNewChangeSets','You\x27re\x20following\x20the\x20presenter','toStringTag','event$','You\x27are\x20offline.','IConfigService','_config','jsx','UNIVER_SHEET','@univerjs/sheets','_init','operators','IDLE','symbol','Dropdown','5874755fFRgdF','CollaborationEvent','UniverInstanceType','registerSharedOperation','defineProperty','_stopPresenting','jsxs','trim','151579SGfRGK','SAME_OPERATION_SHARE_INTERVAL','UniverLiveSharePlugin','touchDependencies','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','call','UniverProLicense','attrs','getStatus','entries','Subject','parseProtocolChangeset','requireSession','_fetchOperations','Stop\x20presenting','IUIPartsService','_collabSession','colorChannel1','pipe','mask','function','takeUntil','_handleOnline','OFFLINE','complete','stopPresenting','params','You\x27re\x20not\x20following\x20the\x20presenter','getInitialStates','add','use','sessionStatus$','2763348aAIXJh','displayName','UniverProCollaborationClient','_univerInstanceService','getLiveShareCoordinator','LIVESHARE_FETCH_OPERATIONS','fill','113883JqcVDl','stroke','live-share.config','_commandService','replace','map','_uiPartsService','react/jsx-runtime','currentColor','getTypeOfUnitAdded$','ICommandService','HEADER_MENU','_entities','@univerjs/sheets-ui','BuiltInUIPart','Button','React','Inject','_mountLiveShare','_handleTerminate','xlink:href','IUniverInstanceService','InsertSheetMutation','live-share-icon','_beIdle','unit','_injector','unitId','tag','executeCommand','object','_handleNewHost','_configService','getTypeOfUnitDisposed$','button','type','delete','LIVESHARE_NEW_HOST','RxDisposable','idle','useObservable','_handleOperation','presenting','not-following','defer','length','createInstance','Start\x20following','OPERATION','pluginName','evenodd','dispose','string','stringify','createElement','Fragment','includes','@univerjs/design','react','_collabSessionService','onCommandExecuted','idSuffix','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','4014636iFpAJv','_startFollowing','29536362pEIPwn','offline','end','UNIVER_LIVE_SHARE_PLUGIN','UniverLicensePlugin','728NzHlyC','UNIVER_UNKNOWN','substring','UniverDesign','packageName','has','svg','override','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','BehaviorSubject','dispose$','UniverSheetsUi','_stopFollowing','SetWorksheetActiveOperation','unsubscribe','url(#$1','1em','LIVESHARE_TERMINATE','_presenter','subject','toPrimitive','iterator','onStarting','tryStartPresenting','disposeWithMe','toDisposable','default','presenter','getCurrentTypeOfUnit$','assign','getConfig','_reporters','constructor','LIVESHARE_OPERATION','send','@univerjs/ui','next','@univerjs-pro/collaboration','shouldShareOperation','_commandDisposable','reverse','useMemo','_status$','data','decorate','forwardRef','throttleTime','CommandType','SetZoomRatioOperation','8IqMZVP'];_0x983d=function(){return _0x30354e;};return _0x983d();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Live share collaboration plugin for Univer Pro.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -62,24 +62,25 @@
|
|
|
62
62
|
"rxjs": ">=7.0.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@univerjs/icons": "1.
|
|
66
|
-
"@univerjs-pro/collaboration": "1.0.0-
|
|
67
|
-
"@univerjs-pro/collaboration-client": "1.0.0-
|
|
68
|
-
"@univerjs/core": "1.0.0-
|
|
69
|
-
"@univerjs/design": "1.0.0-
|
|
70
|
-
"@univerjs/sheets": "1.0.0-
|
|
71
|
-
"@univerjs/ui": "1.0.0-
|
|
72
|
-
"@univerjs/
|
|
65
|
+
"@univerjs/icons": "1.35.0",
|
|
66
|
+
"@univerjs-pro/collaboration": "1.0.0-beta.0",
|
|
67
|
+
"@univerjs-pro/collaboration-client": "1.0.0-beta.0",
|
|
68
|
+
"@univerjs/core": "1.0.0-beta.0",
|
|
69
|
+
"@univerjs/design": "1.0.0-beta.0",
|
|
70
|
+
"@univerjs/sheets": "1.0.0-beta.0",
|
|
71
|
+
"@univerjs/ui": "1.0.0-beta.0",
|
|
72
|
+
"@univerjs-pro/license": "1.0.0-beta.0",
|
|
73
|
+
"@univerjs/sheets-ui": "1.0.0-beta.0"
|
|
73
74
|
},
|
|
74
75
|
"devDependencies": {
|
|
75
|
-
"postcss": "^8.5.
|
|
76
|
+
"postcss": "^8.5.25",
|
|
76
77
|
"react": "18.3.1",
|
|
77
78
|
"rxjs": "7.8.2",
|
|
78
79
|
"tailwindcss": "3.4.17",
|
|
79
80
|
"typescript": "^6.0.3",
|
|
80
81
|
"vitest": "^4.1.10",
|
|
81
|
-
"@univerjs-infra/shared": "1.0.0-
|
|
82
|
-
"@univerjs/protocol": "1.0.0-
|
|
82
|
+
"@univerjs-infra/shared": "1.0.0-beta.0",
|
|
83
|
+
"@univerjs/protocol": "1.0.0-beta.0"
|
|
83
84
|
},
|
|
84
85
|
"scripts": {
|
|
85
86
|
"test": "vitest run",
|