@univerjs-pro/live-share 1.0.0-alpha.2 → 1.0.0-alpha.3
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/README.md +8 -2
- 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/types/index.d.ts +1 -5
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# @univerjs-pro/live-share
|
|
2
2
|
|
|
3
3
|
[](https://npmjs.com/package/@univerjs-pro/live-share)
|
|
4
|
+
[](https://npmjs.com/package/@univerjs-pro/live-share)
|
|
4
5
|
[](https://npmjs.com/package/@univerjs-pro/live-share)
|
|
5
6
|
|
|
6
|
-
`@univerjs-pro/live-share`
|
|
7
|
+
`@univerjs-pro/live-share` is part of Univer Pro. Live share collaboration plugin for Univer Pro.
|
|
7
8
|
|
|
8
9
|
## Package Overview
|
|
9
10
|
|
|
@@ -30,8 +31,13 @@ import { UniverLiveSharePlugin } from '@univerjs-pro/live-share';
|
|
|
30
31
|
univer.registerPlugin(UniverLiveSharePlugin);
|
|
31
32
|
```
|
|
32
33
|
|
|
34
|
+
## Integration Notes
|
|
35
|
+
|
|
36
|
+
- Keep this package on the same version as the other `@univerjs/*` and `@univerjs-pro/*` packages in your application.
|
|
37
|
+
- Import the package stylesheet once in the application entry before rendering Univer UI.
|
|
38
|
+
- Use the facade entry when integrating through Univer Facade APIs.
|
|
39
|
+
|
|
33
40
|
## Resources
|
|
34
41
|
|
|
35
42
|
- [Documentation](https://docs.univer.ai/guides/pro)
|
|
36
43
|
- [NPM package](https://npmjs.com/package/@univerjs-pro/live-share)
|
|
37
|
-
|
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x1b61f7=_0x1d16;(function(_0x2341e1,_0x384ea2){const _0x5a0d76=_0x1d16,_0x9fb759=_0x2341e1();while(!![]){try{const _0x227aae=parseInt(_0x5a0d76(0xd7))/0x1+-parseInt(_0x5a0d76(0xdf))/0x2*(-parseInt(_0x5a0d76(0xce))/0x3)+parseInt(_0x5a0d76(0xf4))/0x4*(parseInt(_0x5a0d76(0xd0))/0x5)+parseInt(_0x5a0d76(0xd2))/0x6*(parseInt(_0x5a0d76(0xd6))/0x7)+parseInt(_0x5a0d76(0xe4))/0x8*(parseInt(_0x5a0d76(0xe2))/0x9)+-parseInt(_0x5a0d76(0xe9))/0xa*(-parseInt(_0x5a0d76(0xde))/0xb)+-parseInt(_0x5a0d76(0xee))/0xc*(parseInt(_0x5a0d76(0xef))/0xd);if(_0x227aae===_0x384ea2)break;else _0x9fb759['push'](_0x9fb759['shift']());}catch(_0x1be462){_0x9fb759['push'](_0x9fb759['shift']());}}}(_0x1cef,0xa7671));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x564cfe){'@babel/helpers - typeof';const _0x3c8dc3=_0x1d16;return r=typeof Symbol==_0x3c8dc3(0xd8)&&typeof Symbol['iterator']=='symbol'?function(_0x23edb4){return typeof _0x23edb4;}:function(_0x498b69){const _0x2dd657=_0x3c8dc3;return _0x498b69&&typeof Symbol=='function'&&_0x498b69['constructor']===Symbol&&_0x498b69!==Symbol[_0x2dd657(0xe1)]?'symbol':typeof _0x498b69;},r(_0x564cfe);}function i(_0x432dcc,_0x36abe5){const _0x3c1c13=_0x1d16;if(r(_0x432dcc)!=_0x3c1c13(0xd1)||!_0x432dcc)return _0x432dcc;var _0x25d2b1=_0x432dcc[Symbol[_0x3c1c13(0xe7)]];if(_0x25d2b1!==void 0x0){var _0x855417=_0x25d2b1[_0x3c1c13(0xd4)](_0x432dcc,_0x36abe5||'default');if(r(_0x855417)!=_0x3c1c13(0xd1))return _0x855417;throw TypeError(_0x3c1c13(0xf6));}return(_0x36abe5==='string'?String:Number)(_0x432dcc);}function a(_0x161823){const _0x193598=_0x1d16;var _0x21a55f=i(_0x161823,_0x193598(0xec));return r(_0x21a55f)==_0x193598(0xcb)?_0x21a55f:_0x21a55f+'';}function _0x1d16(_0x30268d,_0x45f7f7){_0x30268d=_0x30268d-0xcb;const _0x1cef46=_0x1cef();let _0x1d16fe=_0x1cef46[_0x30268d];return _0x1d16fe;}function o(_0x158afa,_0x10291a,_0x5534b9){return(_0x10291a=a(_0x10291a))in _0x158afa?Object['defineProperty'](_0x158afa,_0x10291a,{'value':_0x5534b9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x158afa[_0x10291a]=_0x5534b9,_0x158afa;}var s=class extends n[_0x1b61f7(0xf3)]{constructor(..._0x5cfd60){const _0x421410=_0x1b61f7;super(..._0x5cfd60),o(this,_0x421410(0xe6),void 0x0);}[_0x1b61f7(0xd3)](_0x5f60cc){const _0x1e581d=_0x1b61f7;this[_0x1e581d(0xe6)]=_0x5f60cc[_0x1e581d(0xe0)](e[_0x1e581d(0xf1)]);}[_0x1b61f7(0xea)](){const _0x255d24=_0x1b61f7;var _0x15cc7d;let _0x352b4a=this['_injector'][_0x255d24(0xe0)](t[_0x255d24(0xed)])[_0x255d24(0xe8)](t[_0x255d24(0xf5)][_0x255d24(0xcf)]);if(!_0x352b4a)throw Error('No\x20active\x20workbook\x20found.');let _0x3da8ea=_0x352b4a[_0x255d24(0xcd)](),_0x357850=this['_liveShareController'][_0x255d24(0xdc)](_0x3da8ea);return(_0x15cc7d=_0x357850==null?void 0x0:_0x357850[_0x255d24(0xd5)]())==null?e[_0x255d24(0xcc)][_0x255d24(0xda)]:_0x15cc7d;}[_0x1b61f7(0xdd)](){const _0x26f12c=_0x1b61f7;let _0xb9e1a4=this[_0x26f12c(0xf2)][_0x26f12c(0xe0)](t[_0x26f12c(0xed)])[_0x26f12c(0xe8)](t['UniverInstanceType']['UNIVER_SHEET']);if(!_0xb9e1a4)throw Error('No\x20active\x20workbook\x20found.');let _0x338c25=_0xb9e1a4[_0x26f12c(0xcd)](),_0x3bd8a2=this[_0x26f12c(0xe6)][_0x26f12c(0xdc)](_0x338c25);if(!_0x3bd8a2)throw Error(_0x26f12c(0xdb));_0x3bd8a2[_0x26f12c(0xdd)]();}[_0x1b61f7(0xf0)](){const _0x266517=_0x1b61f7;let _0x2422ac=this[_0x266517(0xf2)]['get'](t[_0x266517(0xed)])[_0x266517(0xe8)](t[_0x266517(0xf5)]['UNIVER_SHEET']);if(!_0x2422ac)throw Error(_0x266517(0xeb));let _0x2fd42a=_0x2422ac[_0x266517(0xcd)](),_0xb08d2e=this[_0x266517(0xe6)][_0x266517(0xdc)](_0x2fd42a);if(!_0xb08d2e)throw Error(_0x266517(0xdb));_0xb08d2e['stopFollowing']();}['startPresenting'](){const _0x46642c=_0x1b61f7;let _0x2f5950=this[_0x46642c(0xf2)][_0x46642c(0xe0)](t['IUniverInstanceService'])[_0x46642c(0xe8)](t[_0x46642c(0xf5)][_0x46642c(0xcf)]);if(!_0x2f5950)throw Error(_0x46642c(0xeb));let _0x13f684=_0x2f5950[_0x46642c(0xcd)](),_0x399f29=this[_0x46642c(0xe6)][_0x46642c(0xdc)](_0x13f684);if(!_0x399f29)throw Error(_0x46642c(0xdb));_0x399f29['tryStartPresenting']();}['stopPresenting'](){const _0xa8df0=_0x1b61f7;let _0x1bab80=this[_0xa8df0(0xf2)][_0xa8df0(0xe0)](t['IUniverInstanceService'])[_0xa8df0(0xe8)](t[_0xa8df0(0xf5)][_0xa8df0(0xcf)]);if(!_0x1bab80)throw Error(_0xa8df0(0xeb));let _0x463896=_0x1bab80['getUnitId'](),_0x5444df=this['_liveShareController'][_0xa8df0(0xdc)](_0x463896);if(!_0x5444df)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5444df['stopPresenting']();}};n['FUniver'][_0x1b61f7(0xe5)](s);var c=class extends n[_0x1b61f7(0xe3)]{get[_0x1b61f7(0xd9)](){return e['LiveShareStatus'];}};n[_0x1b61f7(0xe3)][_0x1b61f7(0xe5)](c);function _0x1cef(){const _0x14051e=['5qKyQwX','object','6oHHeJY','_initialize','call','getStatus','237111QKMRkM','1290097pcEYiS','function','LiveShareStatusEnum','IDLE','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareCoordinatorSync','startFollowing','10671001NfMeqm','2262758BCjPuC','get','prototype','8955qHKaun','FEnum','10024xoqhfG','extend','_liveShareController','toPrimitive','getCurrentUnitOfType','10CZaBPr','getLiveShareStatus','No\x20active\x20workbook\x20found.','string','IUniverInstanceService','12uoZIuM','64369019upOkOI','stopFollowing','LiveShareController','_injector','FUniver','3859876tlQYFt','UniverInstanceType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','LiveShareStatus','getUnitId','3BDjKSo','UNIVER_SHEET'];_0x1cef=function(){return _0x14051e;};return _0x1cef();}
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x358850=_0x6c5c;(function(_0x2810be,_0xffc1cb){const _0x4966e7=_0x6c5c,_0x95e351=_0x2810be();while(!![]){try{const _0x5e7c32=-parseInt(_0x4966e7(0x130))/0x1*(-parseInt(_0x4966e7(0x16b))/0x2)+parseInt(_0x4966e7(0x194))/0x3*(-parseInt(_0x4966e7(0x1a0))/0x4)+-parseInt(_0x4966e7(0x15d))/0x5+-parseInt(_0x4966e7(0x18e))/0x6*(parseInt(_0x4966e7(0x1b7))/0x7)+parseInt(_0x4966e7(0x187))/0x8*(-parseInt(_0x4966e7(0x1c2))/0x9)+parseInt(_0x4966e7(0x13a))/0xa+parseInt(_0x4966e7(0x136))/0xb*(parseInt(_0x4966e7(0x1c6))/0xc);if(_0x5e7c32===_0xffc1cb)break;else _0x95e351['push'](_0x95e351['shift']());}catch(_0x37f1bb){_0x95e351['push'](_0x95e351['shift']());}}}(_0x445c,0x25ef8),Object[_0x358850(0x1a2)](exports,Symbol['toStringTag'],{'value':_0x358850(0x1af)}));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/ui'),s=require('@univerjs/design'),c=require('@univerjs/icons'),l=require('react'),u=require('react/jsx-runtime'),d=require('@univerjs/sheets-ui');function f(_0x536b7f){'@babel/helpers - typeof';const _0x1e0be2=_0x358850;return f=typeof Symbol==_0x1e0be2(0x1a1)&&typeof Symbol['iterator']==_0x1e0be2(0x139)?function(_0x1cd463){return typeof _0x1cd463;}:function(_0x41dce2){const _0x2a562f=_0x1e0be2;return _0x41dce2&&typeof Symbol==_0x2a562f(0x1a1)&&_0x41dce2['constructor']===Symbol&&_0x41dce2!==Symbol[_0x2a562f(0x16e)]?'symbol':typeof _0x41dce2;},f(_0x536b7f);}function p(_0x25685b,_0x9fdacf){const _0x3ed1f1=_0x358850;if(f(_0x25685b)!=_0x3ed1f1(0x1d0)||!_0x25685b)return _0x25685b;var _0x5bd81d=_0x25685b[Symbol['toPrimitive']];if(_0x5bd81d!==void 0x0){var _0x4bfb5c=_0x5bd81d[_0x3ed1f1(0x12d)](_0x25685b,_0x9fdacf||_0x3ed1f1(0x1d3));if(f(_0x4bfb5c)!=_0x3ed1f1(0x1d0))return _0x4bfb5c;throw TypeError(_0x3ed1f1(0x172));}return(_0x9fdacf===_0x3ed1f1(0x1da)?String:Number)(_0x25685b);}function m(_0x460fe8){const _0x48d182=_0x358850;var _0x1bdc3d=p(_0x460fe8,_0x48d182(0x1da));return f(_0x1bdc3d)==_0x48d182(0x139)?_0x1bdc3d:_0x1bdc3d+'';}function _0x6c5c(_0x494444,_0x29444e){_0x494444=_0x494444-0x116;const _0x445c0f=_0x445c();let _0x6c5c43=_0x445c0f[_0x494444];return _0x6c5c43;}function h(_0x4bdc22,_0x5a3ae1,_0x2ed704){const _0xbb6603=_0x358850;return(_0x5a3ae1=m(_0x5a3ae1))in _0x4bdc22?Object[_0xbb6603(0x1a2)](_0x4bdc22,_0x5a3ae1,{'value':_0x2ed704,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4bdc22[_0x5a3ae1]=_0x2ed704,_0x4bdc22;}var g=class extends n[_0x358850(0x135)]{constructor(..._0x442aaf){const _0xca4d67=_0x358850;super(..._0x442aaf),h(this,_0xca4d67(0x149),new Set()),h(this,_0xca4d67(0x15a),new Set());}[_0x358850(0x121)](_0x38004d){const _0x3b4d5c=_0x358850;return this[_0x3b4d5c(0x149)][_0x3b4d5c(0x119)](_0x38004d),(0x0,n[_0x3b4d5c(0x1b8)])(()=>this[_0x3b4d5c(0x149)][_0x3b4d5c(0x1c8)](_0x38004d));}[_0x358850(0x157)](_0x14248a){const _0x3c8e09=_0x358850;return this[_0x3c8e09(0x15a)][_0x3c8e09(0x119)](_0x14248a),(0x0,n[_0x3c8e09(0x1b8)])(()=>this['_reporters'][_0x3c8e09(0x1c8)](_0x14248a));}['shouldShareOperation'](_0x373fad){const _0x4a6c39=_0x358850;return this[_0x4a6c39(0x149)][_0x4a6c39(0x156)](_0x373fad);}[_0x358850(0x198)](_0x18edd1){const _0x386562=_0x358850;return Array[_0x386562(0x143)](this['_reporters'])[_0x386562(0x19e)](_0x45c59c=>_0x45c59c(_0x18edd1));}};function _(_0x3159ea,_0x38fbf7){return function(_0x445c5f,_0x113b64){_0x38fbf7(_0x445c5f,_0x113b64,_0x3159ea);};}function v(_0x477d67,_0x10b359,_0x1d3dab,_0x20133c){const _0x4ffef0=_0x358850;var _0xe36ea2=arguments['length'],_0x3984eb=_0xe36ea2<0x3?_0x10b359:_0x20133c===null?_0x20133c=Object[_0x4ffef0(0x150)](_0x10b359,_0x1d3dab):_0x20133c,_0x1d506a;if(typeof Reflect==_0x4ffef0(0x1d0)&&typeof Reflect[_0x4ffef0(0x179)]=='function')_0x3984eb=Reflect[_0x4ffef0(0x179)](_0x477d67,_0x10b359,_0x1d3dab,_0x20133c);else{for(var _0x36ea72=_0x477d67[_0x4ffef0(0x186)]-0x1;_0x36ea72>=0x0;_0x36ea72--)(_0x1d506a=_0x477d67[_0x36ea72])&&(_0x3984eb=(_0xe36ea2<0x3?_0x1d506a(_0x3984eb):_0xe36ea2>0x3?_0x1d506a(_0x10b359,_0x1d3dab,_0x3984eb):_0x1d506a(_0x10b359,_0x1d3dab))||_0x3984eb);}return _0xe36ea2>0x3&&_0x3984eb&&Object[_0x4ffef0(0x1a2)](_0x10b359,_0x1d3dab,_0x3984eb),_0x3984eb;}let y=class extends n[_0x358850(0x1a5)]{constructor(_0x42a7c6,_0x41dda6,_0x17315d){const _0xecff0a=_0x358850;super(),this[_0xecff0a(0x174)]=_0x42a7c6,this[_0xecff0a(0x133)]=_0x41dda6,this[_0xecff0a(0x13e)]=_0x17315d,h(this,_0xecff0a(0x168),new Map()),this[_0xecff0a(0x18f)]();}async[_0x358850(0x181)](_0x479206){const _0xd9d1e9=_0x358850;return this[_0xd9d1e9(0x168)][_0xd9d1e9(0x156)](_0x479206)||await this[_0xd9d1e9(0x167)](_0x479206),this[_0xd9d1e9(0x168)][_0xd9d1e9(0x1b5)](_0x479206);}[_0x358850(0x1a8)](_0x506ba4){var _0x20265d;return(_0x20265d=this['_entities']['get'](_0x506ba4))==null?null:_0x20265d;}['_init'](){const _0x1cac1b=_0x358850;this['_univerInstanceService'][_0x1cac1b(0x14f)](n['UniverInstanceType']['UNIVER_SHEET'])[_0x1cac1b(0x17a)]((0x0,a[_0x1cac1b(0x147)])(this[_0x1cac1b(0x1d9)]))[_0x1cac1b(0x19b)](async _0x8e9e4d=>{const _0x4383d0=_0x1cac1b;let _0x5475db=_0x8e9e4d[_0x4383d0(0x15e)]['getUnitId']();this[_0x4383d0(0x168)]['has'](_0x5475db)||this[_0x4383d0(0x167)](_0x5475db);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](n['UniverInstanceType'][_0x1cac1b(0x125)])['pipe']((0x0,a[_0x1cac1b(0x147)])(this['dispose$']))[_0x1cac1b(0x19b)](_0x1cc8f3=>{const _0x357c3b=_0x1cac1b;let _0x126af1=_0x1cc8f3[_0x357c3b(0x118)](),_0x1c47dd=this['_entities'][_0x357c3b(0x1b5)](_0x126af1);_0x1c47dd==null||_0x1c47dd['dispose']();});}async[_0x358850(0x167)](_0x57f941){const _0x892c6a=_0x358850;let _0x26f66c=await this['_collabSessionService']['requireSession'](_0x57f941),_0xbaf10c=this['_injector'][_0x892c6a(0x188)](x,_0x57f941,_0x26f66c);return _0xbaf10c[_0x892c6a(0x140)](),this[_0x892c6a(0x168)][_0x892c6a(0x160)](_0x57f941,_0xbaf10c),_0xbaf10c;}};y=v([_(0x0,n[_0x358850(0x138)]),_(0x1,(0x0,n['Inject'])(n[_0x358850(0x1be)])),_(0x2,(0x0,n[_0x358850(0x145)])(t[_0x358850(0x14a)]))],y);let b=function(_0x20e99e){const _0x180aac=_0x358850;return _0x20e99e[_0x180aac(0x178)]=_0x180aac(0x197),_0x20e99e[_0x180aac(0x183)]='idle',_0x20e99e[_0x180aac(0x166)]=_0x180aac(0x134),_0x20e99e[_0x180aac(0x12b)]=_0x180aac(0x17d),_0x20e99e[_0x180aac(0x11f)]='presenting',_0x20e99e;}({}),x=class extends n[_0x358850(0x1a5)]{get[_0x358850(0x19f)](){const _0x2ebd6d=_0x358850;return this['_status$'][_0x2ebd6d(0x17e)]();}constructor(_0x45a7fe,_0x3190e3,_0x1d9da0,_0x2ad912,_0x113d44){const _0x1875a1=_0x358850;super(),this['_unitID']=_0x45a7fe,this[_0x1875a1(0x180)]=_0x3190e3,this[_0x1875a1(0x1b4)]=_0x1d9da0,this[_0x1875a1(0x123)]=_0x2ad912,this[_0x1875a1(0x128)]=_0x113d44,h(this,_0x1875a1(0x17b),new i[(_0x1875a1(0x131))](_0x1875a1(0x132))),h(this,'status$',this[_0x1875a1(0x17b)][_0x1875a1(0x16d)]()),h(this,_0x1875a1(0x18f),!0x1),h(this,_0x1875a1(0x14b),null),h(this,_0x1875a1(0x152),null);}[_0x358850(0x126)](){const _0x285ff8=_0x358850;var _0x41668a;(_0x41668a=this[_0x285ff8(0x14b)])==null||_0x41668a[_0x285ff8(0x126)](),this[_0x285ff8(0x17b)][_0x285ff8(0x1ac)](_0x285ff8(0x132)),this['_status$'][_0x285ff8(0x1b2)]();}['getStatus'](){const _0x225cb4=_0x358850;return this[_0x225cb4(0x19f)];}[_0x358850(0x140)](){const _0x304442=_0x358850;this[_0x304442(0x18f)]||(this[_0x304442(0x18f)]=!0x0,this[_0x304442(0x180)]['sessionStatus$'][_0x304442(0x17a)]((0x0,a[_0x304442(0x147)])(this[_0x304442(0x1d9)]))[_0x304442(0x19b)](_0x42ab2f=>{const _0x54b3b6=_0x304442;switch(_0x42ab2f){case t[_0x54b3b6(0x1b0)]['OFFLINE']:this[_0x54b3b6(0x15c)]();break;case t[_0x54b3b6(0x1b0)][_0x54b3b6(0x146)]:this[_0x54b3b6(0x163)]();break;default:}}),this[_0x304442(0x180)][_0x304442(0x15b)][_0x304442(0x17a)]((0x0,a['takeUntil'])(this[_0x304442(0x1d9)]))[_0x304442(0x19b)](_0x2cf04a=>{const _0x3a70e2=_0x304442;let {eventID:_0x3b6ef6}=_0x2cf04a;switch(_0x3b6ef6){case e[_0x3a70e2(0x1ba)]['LIVESHARE_NEW_HOST']:this[_0x3a70e2(0x129)](_0x2cf04a);break;case e[_0x3a70e2(0x1ba)][_0x3a70e2(0x1bf)]:this[_0x3a70e2(0x196)](_0x2cf04a);break;case e[_0x3a70e2(0x1ba)][_0x3a70e2(0x144)]:this[_0x3a70e2(0x1ab)]();break;case e['CollaborationEvent']['NEW_CHANGESETS']:this[_0x3a70e2(0x19d)](_0x2cf04a);break;default:}}));}[_0x358850(0x164)](){const _0x4d77db=_0x358850;this[_0x4d77db(0x180)][_0x4d77db(0x192)]({'eventID':e['CollaborationEvent'][_0x4d77db(0x14c)],'data':{'unitID':this[_0x4d77db(0x1cc)],'userID':this[_0x4d77db(0x180)][_0x4d77db(0x1ca)]()}},this[_0x4d77db(0x1cc)]);}['stopPresenting'](){const _0x31b463=_0x358850;this[_0x31b463(0x19f)]===_0x31b463(0x13d)&&(this['_status$']['next'](_0x31b463(0x132)),this[_0x31b463(0x180)]['send']({'eventID':e[_0x31b463(0x1ba)][_0x31b463(0x144)],'data':{'unitID':this[_0x31b463(0x1cc)]}},this['_unitID']));}['startFollowing'](){const _0x3e738f=_0x358850;this[_0x3e738f(0x19f)]==='not-following'&&(this[_0x3e738f(0x17b)]['next'](_0x3e738f(0x134)),this[_0x3e738f(0x120)]());}['stopFollowing'](){const _0x17cb13=_0x358850;this['_status']===_0x17cb13(0x134)&&this[_0x17cb13(0x169)]();}['_handleNewHost'](_0xc54be4){const _0x34aa71=_0x358850;let {presenter:_0x257293}=_0xc54be4['data'],_0x54e55d=this[_0x34aa71(0x180)]['getMemberID']();this['_presenter']=_0x257293,_0x257293===_0x54e55d?(this[_0x34aa71(0x169)](),this[_0x34aa71(0x14d)]()):this[_0x34aa71(0x19f)]!=='not-following'&&(this[_0x34aa71(0x1ad)](),this['_startFollowing']());}[_0x358850(0x1b9)](){const _0x50eba6=_0x358850;let _0x4af5b5={'eventID':e[_0x50eba6(0x1ba)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x50eba6(0x192)](_0x4af5b5,this[_0x50eba6(0x1cc)]);}['_handleTerminate'](){const _0xe65d3b=_0x358850;this[_0xe65d3b(0x152)]=null,this[_0xe65d3b(0x19f)]!==_0xe65d3b(0x13d)&&this[_0xe65d3b(0x15f)]();}[_0x358850(0x19d)](_0x4bc326){const _0x3d1c32=_0x358850;if(this[_0x3d1c32(0x19f)]==='following'&&this['_presenter']===_0x4bc326[_0x3d1c32(0x190)]['memberID']){let _0x119e93=(0x0,e[_0x3d1c32(0x154)])(_0x4bc326['data'])[_0x3d1c32(0x191)][_0x3d1c32(0x12a)]()[_0x3d1c32(0x127)](_0xbecb37=>_0xbecb37['id']===r['InsertSheetMutation']['id']);if(_0x119e93){let _0x47be63=_0x119e93[_0x3d1c32(0x1c5)][_0x3d1c32(0x1bc)],_0x115bb5=_0x119e93[_0x3d1c32(0x1c5)][_0x3d1c32(0x1cb)]['id'];setTimeout(()=>{const _0x5aa8f5=_0x3d1c32;this[_0x5aa8f5(0x128)][_0x5aa8f5(0x1ce)](r[_0x5aa8f5(0x193)]['id'],{'unitId':_0x47be63,'subUnitId':_0x115bb5},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x2c8c04=_0x358850;var _0x16df82;(_0x16df82=this[_0x2c8c04(0x14b)])==null||_0x16df82[_0x2c8c04(0x126)](),this[_0x2c8c04(0x17b)][_0x2c8c04(0x1ac)](_0x2c8c04(0x13d));let _0x100b10=new Map(),_0x24680d=this[_0x2c8c04(0x14b)]=new n[(_0x2c8c04(0x1bb))]();_0x24680d[_0x2c8c04(0x119)]((0x0,n[_0x2c8c04(0x1b8)])(()=>{const _0x138d6c=_0x2c8c04;_0x100b10['forEach'](({subject:_0x1daac4,subscription:_0x13f9bc})=>{const _0xa0711e=_0x6c5c;_0x13f9bc['unsubscribe'](),_0x1daac4[_0xa0711e(0x1b2)]();}),_0x100b10[_0x138d6c(0x1d8)]();})),_0x24680d[_0x2c8c04(0x119)](this[_0x2c8c04(0x128)][_0x2c8c04(0x117)](_0x3865b4=>{const _0x3663c3=_0x2c8c04;if(_0x3865b4[_0x3663c3(0x155)]!==n[_0x3663c3(0x195)][_0x3663c3(0x165)]||!this['_liveShareService'][_0x3663c3(0x124)](_0x3865b4['id']))return;let {id:_0x1dc99c}=_0x3865b4,_0x34f362;if(_0x100b10['has'](_0x1dc99c))_0x34f362=_0x100b10[_0x3663c3(0x1b5)](_0x1dc99c)[_0x3663c3(0x16c)];else{var _0x30b248;_0x34f362=new i['Subject']();let _0x49f91e=_0x34f362['pipe']((0x0,a[_0x3663c3(0x18c)])((_0x30b248=this['_configService'][_0x3663c3(0x16a)](_0x3663c3(0x173)))==null?0xc8:_0x30b248,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3663c3(0x19b)](_0x149e5d=>{const _0x479ba0=_0x3663c3;this[_0x479ba0(0x180)]['send']({'eventID':e[_0x479ba0(0x1ba)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x149e5d['id']]:{'id':_0x149e5d['id'],'params':JSON[_0x479ba0(0x1c4)](_0x149e5d[_0x479ba0(0x1c5)])}}}},this['_unitID']);});_0x100b10[_0x3663c3(0x160)](_0x1dc99c,{'subject':_0x34f362,'subscription':_0x49f91e});}_0x34f362[_0x3663c3(0x1ac)](_0x3865b4);})),this[_0x2c8c04(0x123)][_0x2c8c04(0x198)](this[_0x2c8c04(0x1cc)])[_0x2c8c04(0x17c)](_0x38a3f9=>this[_0x2c8c04(0x180)][_0x2c8c04(0x192)]({'eventID':e[_0x2c8c04(0x1ba)][_0x2c8c04(0x1bf)],'data':{'unitID':this['_unitID'],'operations':{[_0x38a3f9['id']]:{'id':_0x38a3f9['id'],'params':JSON[_0x2c8c04(0x1c4)](_0x38a3f9[_0x2c8c04(0x1c5)])}}}},this['_unitID']));}[_0x358850(0x1ad)](){const _0x4b8795=_0x358850;var _0x5eec9f;this[_0x4b8795(0x17b)]['next'](_0x4b8795(0x132)),(_0x5eec9f=this[_0x4b8795(0x14b)])==null||_0x5eec9f[_0x4b8795(0x126)](),this[_0x4b8795(0x14b)]=null;}['_startFollowing'](){const _0x32f1ad=_0x358850;var _0x47bab5;(_0x47bab5=this[_0x32f1ad(0x14b)])==null||_0x47bab5[_0x32f1ad(0x126)](),this['_status$'][_0x32f1ad(0x1ac)](_0x32f1ad(0x134));}[_0x358850(0x15f)](){const _0x191827=_0x358850;var _0x4bfff6;this[_0x191827(0x17b)][_0x191827(0x1ac)](_0x191827(0x132)),(_0x4bfff6=this[_0x191827(0x14b)])==null||_0x4bfff6[_0x191827(0x126)](),this[_0x191827(0x14b)]=null;}[_0x358850(0x169)](){const _0x54c97d=_0x358850;var _0x55add4;this['_status$']['next'](_0x54c97d(0x17d)),(_0x55add4=this[_0x54c97d(0x14b)])==null||_0x55add4[_0x54c97d(0x126)]();}[_0x358850(0x196)](_0x243d6e){const _0x11006b=_0x358850;if(['presenting',_0x11006b(0x17d),_0x11006b(0x197)][_0x11006b(0x151)](this['_status'])||!_0x243d6e[_0x11006b(0x190)][_0x11006b(0x1c9)]||_0x243d6e[_0x11006b(0x190)][_0x11006b(0x1c9)]===this[_0x11006b(0x180)][_0x11006b(0x1ca)]())return;this['_status']===_0x11006b(0x132)&&this[_0x11006b(0x120)]();let _0x63729d=_0x243d6e[_0x11006b(0x190)]['operations'];Object['values'](_0x63729d)['forEach'](_0x1c1a40=>{const _0x145e5b=_0x11006b;this[_0x145e5b(0x128)][_0x145e5b(0x1ce)](_0x1c1a40['id'],_0x1c1a40[_0x145e5b(0x1c5)]?JSON[_0x145e5b(0x161)](_0x1c1a40[_0x145e5b(0x1c5)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x7c87f8=_0x358850;var _0x27e5fb;this['_status$']['next']('offline'),(_0x27e5fb=this[_0x7c87f8(0x14b)])==null||_0x27e5fb[_0x7c87f8(0x126)]();}[_0x358850(0x163)](){const _0x438159=_0x358850;this[_0x438159(0x17b)][_0x438159(0x1ac)](_0x438159(0x132)),this[_0x438159(0x1b9)]();}};x=v([_(0x2,n[_0x358850(0x1b1)]),_(0x3,(0x0,n[_0x358850(0x145)])(g)),_(0x4,n[_0x358850(0x11c)])],x);function S(){const _0x30018c=_0x358850;let _0x93d70d=(0x0,o[_0x30018c(0x159)])(y),_0x56083c=(0x0,o[_0x30018c(0x159)])(n[_0x30018c(0x138)]),_0x275cc9=(0x0,o[_0x30018c(0x185)])(()=>_0x56083c[_0x30018c(0x13b)](n['UniverInstanceType'][_0x30018c(0x125)]),void 0x0,!0x1,[]),[_0x317d87,_0x56da79]=(0x0,l[_0x30018c(0x11a)])(null),[_0x28d7fb,_0x1c167a]=(0x0,l['useState'])(_0x30018c(0x132)),_0x1f3614=(0x0,l[_0x30018c(0x1ae)])(null);return(0x0,l[_0x30018c(0x199)])(()=>(_0x275cc9&&_0x93d70d[_0x30018c(0x181)](_0x275cc9[_0x30018c(0x118)]())[_0x30018c(0x153)](_0x3c8af7=>{const _0x79019f=_0x30018c;_0x56da79(_0x3c8af7),_0x1f3614[_0x79019f(0x170)]=_0x3c8af7[_0x79019f(0x176)]['subscribe'](_0x5f105c=>{_0x1c167a(_0x5f105c);});}),()=>{const _0x169620=_0x30018c;var _0x397280;(_0x397280=_0x1f3614[_0x169620(0x170)])==null||_0x397280[_0x169620(0x17f)](),_0x1f3614['current']=null;}),[_0x275cc9,_0x93d70d]),_0x317d87?(0x0,u[_0x30018c(0x1d6)])(s['Dropdown'],{'align':'end','disabled':_0x28d7fb===_0x30018c(0x197),'className':_0x30018c(0x182),'overlay':(0x0,u[_0x30018c(0x1d6)])(C,{'status':_0x28d7fb,'coordinator':_0x317d87}),'children':(0x0,u[_0x30018c(0x1d6)])(_0x30018c(0x189),{'className':(0x0,s['clsx'])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x28d7fb===_0x30018c(0x197),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x28d7fb!==_0x30018c(0x197)}),'type':_0x30018c(0x189),'children':(0x0,u[_0x30018c(0x1d6)])(c[_0x30018c(0x142)],{})})}):null;}function C(_0x5d5bda){const _0x4c7369=_0x358850;let {status:_0x2e2563,coordinator:_0x211773}=_0x5d5bda;switch(_0x2e2563){case'idle':return(0x0,u['jsx'])(w,{'coordinator':_0x211773});case _0x4c7369(0x134):return(0x0,u[_0x4c7369(0x1d6)])(T,{'coordinator':_0x211773});case'not-following':return(0x0,u[_0x4c7369(0x1d6)])(E,{'coordinator':_0x211773});case _0x4c7369(0x197):return(0x0,u[_0x4c7369(0x1d6)])(O,{});case _0x4c7369(0x13d):return(0x0,u[_0x4c7369(0x1d6)])(D,{'coordinator':_0x211773});default:return null;}}function w(_0x5cf69b){const _0x295c8a=_0x358850;let {coordinator:_0x161dad}=_0x5cf69b;return(0x0,u[_0x295c8a(0x171)])(u[_0x295c8a(0x137)],{'children':[(0x0,u[_0x295c8a(0x1d6)])('div',{'className':_0x295c8a(0x1d5),'children':_0x295c8a(0x158)}),(0x0,u[_0x295c8a(0x1d6)])(s['Button'],{'onClick':()=>_0x161dad[_0x295c8a(0x164)](),'children':_0x295c8a(0x177)})]});}function T(_0x1ae695){const _0x418921=_0x358850;let {coordinator:_0x3fdc0c}=_0x1ae695;return(0x0,u['jsxs'])(u[_0x418921(0x137)],{'children':[(0x0,u[_0x418921(0x1d6)])(_0x418921(0x18b),{'className':_0x418921(0x1d5),'children':_0x418921(0x1cd)}),(0x0,u[_0x418921(0x1d6)])(s[_0x418921(0x11d)],{'onClick':()=>_0x3fdc0c['stopFollowing'](),'children':_0x418921(0x184)})]});}function E(_0x3b8832){const _0x8187cf=_0x358850;let {coordinator:_0x11db57}=_0x3b8832;return(0x0,u[_0x8187cf(0x171)])(u[_0x8187cf(0x137)],{'children':[(0x0,u['jsx'])(_0x8187cf(0x18b),{'className':_0x8187cf(0x1d5),'children':_0x8187cf(0x1cf)}),(0x0,u[_0x8187cf(0x1d6)])(s[_0x8187cf(0x11d)],{'variant':_0x8187cf(0x11e),'onClick':()=>_0x11db57[_0x8187cf(0x1d7)](),'children':'Start\x20following'})]});}function D(_0x1bf93d){const _0x162156=_0x358850;let {coordinator:_0x13de38}=_0x1bf93d;return(0x0,u[_0x162156(0x171)])(u[_0x162156(0x137)],{'children':[(0x0,u['jsx'])(_0x162156(0x18b),{'className':_0x162156(0x1d5),'children':_0x162156(0x13c)}),(0x0,u[_0x162156(0x1d6)])(s[_0x162156(0x11d)],{'variant':_0x162156(0x1d3),'onClick':()=>_0x13de38[_0x162156(0x13f)](),'children':'Stop\x20presenting'})]});}function O(){const _0x3af5b0=_0x358850;return(0x0,u[_0x3af5b0(0x1d6)])(u['Fragment'],{'children':_0x3af5b0(0x11b)});}let k=class extends n[_0x358850(0x135)]{constructor(_0x5347d4,_0x2ce79d){const _0x257acd=_0x358850;super(),this[_0x257acd(0x133)]=_0x5347d4,this[_0x257acd(0x162)]=_0x2ce79d,this['_mountLiveShare']();}[_0x358850(0x1c7)](){const _0x3a6d78=_0x358850;this[_0x3a6d78(0x19a)](this['_uiPartsService']['registerComponent'](o[_0x3a6d78(0x12f)]['HEADER_MENU'],()=>(0x0,o[_0x3a6d78(0x116)])(S,this[_0x3a6d78(0x133)])));}};k=v([_(0x0,(0x0,n[_0x358850(0x145)])(n[_0x358850(0x1be)])),_(0x1,o[_0x358850(0x1d4)])],k);var A=_0x358850(0x1c3),j=_0x358850(0x19c);const M={};function _0x445c(){const _0x32ee14=['set','parse','_uiPartsService','_handleOnline','tryStartPresenting','OPERATION','FOLLOWING','_startLiveShareCoordinator','_entities','_stopFollowing','getConfig','19526zlwXuI','subject','asObservable','prototype','LiveShareController','current','jsxs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SAME_OPERATION_SHARE_INTERVAL','_univerInstanceService','UniverCollaborationClientPlugin','status$','Start','OFFLINE','decorate','pipe','_status$','forEach','not-following','getValue','unsubscribe','_collabSession','getLiveShareCoordinator','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','IDLE','Stop\x20following','useObservable','length','2269424MKxpgW','createInstance','button','LiveShareService','div','throttleTime','DesktopLiveShareController','637968XBKXCi','_init','data','mutations','send','SetWorksheetActiveOperation','2460NWGeAX','CommandType','_handleOperation','offline','getInitialStates','useEffect','disposeWithMe','subscribe','1.0.0-alpha.2','_handleNewChangeSets','map','_status','732NDOQrK','function','defineProperty','UniverInstanceType','live-share.config','RxDisposable','LiveShareCoordinator','LiveShare','getLiveShareCoordinatorSync','onStarting','SetScrollOperation','_handleTerminate','next','_stopPresenting','useRef','Module','SessionStatus','IConfigService','complete','_config','_configService','get','UNIVER_UNKNOWN','14zkVwve','toDisposable','_fetchOperations','CollaborationEvent','DisposableCollection','unitId','override','Injector','LIVESHARE_OPERATION','onRendered','DependentOn','9TAjPds','@univerjs-pro/live-share','stringify','params','1752EVMevu','_mountLiveShare','delete','presenter','getMemberID','sheet','_unitID','You\x27re\x20following\x20the\x20presenter','executeCommand','You\x27re\x20not\x20following\x20the\x20presenter','object','SetZoomRatioOperation','version','default','IUIPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','jsx','startFollowing','clear','dispose$','string','connectInjector','onCommandExecuted','getUnitId','add','useState','You\x27are\x20offline.','ICommandService','Button','text','PRESENTING','_startFollowing','registerSharedOperation','setConfig','_liveShareService','shouldShareOperation','UNIVER_SHEET','dispose','find','_commandService','_handleNewHost','reverse','NOT_FOLLOWING','mergeOverrideWithDependencies','call','touchDependencies','BuiltInUIPart','25ptaiNp','BehaviorSubject','idle','_injector','following','Disposable','29733hIsXQr','Fragment','IUniverInstanceService','symbol','2933820sDlUgb','getCurrentTypeOfUnit$','You\x27re\x20presenting\x20the\x20document','presenting','_collabSessionService','stopPresenting','init','UNIVER_LIVE_SHARE_PLUGIN','LiveShareIcon','from','LIVESHARE_TERMINATE','Inject','ONLINE','takeUntil','pluginName','_sharedOperations','CollaborationSessionService','_commandDisposable','LIVESHARE_REQUEST_HOST','_startPresenting','Plugin','getTypeOfUnitAdded$','getOwnPropertyDescriptor','includes','_presenter','then','parseProtocolChangeset','type','has','registerInitialStateReporter','Present\x20this\x20document','useDependency','_reporters','event$','_handleOffline','651585pEOmZr','unit','_beIdle'];_0x445c=function(){return _0x32ee14;};return _0x445c();}let N=class extends n[_0x358850(0x135)]{constructor(_0x2a0dbd){const _0x35e3fb=_0x358850;super(),this['_liveShareService']=_0x2a0dbd,this[_0x35e3fb(0x18f)]();}[_0x358850(0x18f)](){const _0x2ccbd3=_0x358850;[d[_0x2ccbd3(0x1d1)]['id'],d[_0x2ccbd3(0x1aa)]['id'],r[_0x2ccbd3(0x193)]['id']][_0x2ccbd3(0x17c)](_0x25ba1b=>{const _0x49565f=_0x2ccbd3;this['disposeWithMe'](this[_0x49565f(0x123)]['registerSharedOperation'](_0x25ba1b));});}};N=v([_(0x0,(0x0,n[_0x358850(0x145)])(g))],N);let P=class extends n[_0x358850(0x14e)]{constructor(_0x95b8b=M,_0x34fda6,_0x50278c){const _0x2deee8=_0x358850;super(),this[_0x2deee8(0x1b3)]=_0x95b8b,this['_injector']=_0x34fda6,this['_configService']=_0x50278c;let {..._0xe9f441}=(0x0,n['merge'])({},M,this['_config']);this['_configService'][_0x2deee8(0x122)](_0x2deee8(0x1a4),_0xe9f441);}[_0x358850(0x1a9)](){const _0xfe3ef0=_0x358850;(0x0,n['registerDependencies'])(this['_injector'],(0x0,n[_0xfe3ef0(0x12c)])([[g],[y],[N],[k]],this['_config'][_0xfe3ef0(0x1bd)])),(0x0,n[_0xfe3ef0(0x12e)])(this[_0xfe3ef0(0x133)],[[N]]);}[_0x358850(0x1c0)](){const _0x1f152e=_0x358850;(0x0,n[_0x1f152e(0x12e)])(this[_0x1f152e(0x133)],[[k]]);}};h(P,_0x358850(0x155),n[_0x358850(0x1a3)][_0x358850(0x1b6)]),h(P,_0x358850(0x148),_0x358850(0x141)),h(P,'packageName',A),h(P,_0x358850(0x1d2),j),P=v([(0x0,n[_0x358850(0x1c1)])(t[_0x358850(0x175)]),_(0x1,(0x0,n[_0x358850(0x145)])(n[_0x358850(0x1be)])),_(0x2,n[_0x358850(0x1b1)])],P),Object['defineProperty'](exports,_0x358850(0x18d),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x358850(0x1a7)]=S,Object[_0x358850(0x1a2)](exports,_0x358850(0x16f),{'enumerable':!0x0,'get':function(){return y;}}),Object['defineProperty'](exports,_0x358850(0x1a6),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x358850(0x18a)]=g,exports['LiveShareStatus']=b,Object[_0x358850(0x1a2)](exports,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return P;}});
|
|
1
|
+
const _0x47a53a=_0x542f;(function(_0x38dd05,_0x2e0aab){const _0x2e5f6a=_0x542f,_0x21f631=_0x38dd05();while(!![]){try{const _0x29a6ff=-parseInt(_0x2e5f6a(0x1ef))/0x1*(-parseInt(_0x2e5f6a(0x1de))/0x2)+-parseInt(_0x2e5f6a(0x236))/0x3*(parseInt(_0x2e5f6a(0x197))/0x4)+-parseInt(_0x2e5f6a(0x222))/0x5+parseInt(_0x2e5f6a(0x1b7))/0x6+-parseInt(_0x2e5f6a(0x1d1))/0x7*(-parseInt(_0x2e5f6a(0x1ec))/0x8)+-parseInt(_0x2e5f6a(0x1ce))/0x9*(-parseInt(_0x2e5f6a(0x205))/0xa)+-parseInt(_0x2e5f6a(0x217))/0xb;if(_0x29a6ff===_0x2e0aab)break;else _0x21f631['push'](_0x21f631['shift']());}catch(_0x421a9b){_0x21f631['push'](_0x21f631['shift']());}}}(_0x2b2a,0xb807c),Object[_0x47a53a(0x1cd)](exports,Symbol[_0x47a53a(0x1e0)],{'value':_0x47a53a(0x1b0)}));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(_0x4706da){'@babel/helpers - typeof';const _0x396bf7=_0x47a53a;return f=typeof Symbol=='function'&&typeof Symbol[_0x396bf7(0x240)]==_0x396bf7(0x195)?function(_0x4fbdd4){return typeof _0x4fbdd4;}:function(_0x4f26d1){const _0x4ab9b4=_0x396bf7;return _0x4f26d1&&typeof Symbol==_0x4ab9b4(0x1c0)&&_0x4f26d1[_0x4ab9b4(0x216)]===Symbol&&_0x4f26d1!==Symbol['prototype']?_0x4ab9b4(0x195):typeof _0x4f26d1;},f(_0x4706da);}function p(_0x578dea,_0x1c19f0){const _0x5c8b51=_0x47a53a;if(f(_0x578dea)!=_0x5c8b51(0x1b1)||!_0x578dea)return _0x578dea;var _0x1ea135=_0x578dea[Symbol['toPrimitive']];if(_0x1ea135!==void 0x0){var _0x41d578=_0x1ea135[_0x5c8b51(0x1d8)](_0x578dea,_0x1c19f0||'default');if(f(_0x41d578)!='object')return _0x41d578;throw TypeError(_0x5c8b51(0x19a));}return(_0x1c19f0===_0x5c8b51(0x20c)?String:Number)(_0x578dea);}function m(_0x28209a){const _0x21ab5e=_0x47a53a;var _0x79774f=p(_0x28209a,'string');return f(_0x79774f)==_0x21ab5e(0x195)?_0x79774f:_0x79774f+'';}function _0x2b2a(){const _0x12b579=['unitId','_presenter','defineProperty','9tcLPLj','useEffect','getTypeOfUnitAdded$','108563JZHkUs','useState','_startLiveShareCoordinator','BehaviorSubject','presenting','_init','status$','call','presenter','has','NOT_FOLLOWING','div','onCommandExecuted','2608984wLbNGp','IDLE','toStringTag','LiveShareStatus','Disposable','Fragment','onRendered','_stopFollowing','disposeWithMe','_stopPresenting','_injector','not-following','_entities','includes','760UhUTxB','You\x27re\x20following\x20the\x20presenter','HEADER_MENU','1CVlVaC','_startFollowing','touchDependencies','params','get','Plugin','text','offline','_configService','LIVESHARE_OPERATION','version','startFollowing','UNIVER_SHEET','_startPresenting','default','LiveShareIcon','stopPresenting','getStatus','mutations','CollaborationEvent','sheet','throttleTime','8684420AXclgr','LIVESHARE_FETCH_OPERATIONS','FOLLOWING','type','_mountLiveShare','_reporters','next','string','NEW_CHANGESETS','You\x27re\x20presenting\x20the\x20document','UniverInstanceType','LIVESHARE_TERMINATE','registerDependencies','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','decorate','jsx','forEach','constructor','25983518MDxhYE','DisposableCollection','idle','then','_status$','getUnitId','You\x27are\x20offline.','unsubscribe','UNIVER_LIVE_SHARE_PLUGIN','add','init','1899625LvJugH','_handleOffline','LIVESHARE_NEW_HOST','map','find','getConfig','IUniverInstanceService','event$','_commandService','jsxs','requireSession','_collabSession','DependentOn','button','toDisposable','subscribe','operations','_commandDisposable','from','_handleOperation','30ocKVLm','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','current','OPERATION','UNIVER_UNKNOWN','following','parse','_handleOnline','ICommandService','Stop\x20presenting','iterator','useObservable','_univerInstanceService','Inject','SessionStatus','univer-mb-3\x20univer-w-full\x20univer-text-sm','CollaborationSessionService','getValue','useDependency','Present\x20this\x20document','stopFollowing','end','getInitialStates','send','_handleTerminate','_beIdle','sessionStatus$','Start\x20following','override','packageName','_sharedOperations','symbol','Injector','526580OJbywj','_liveShareService','tryStartPresenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getLiveShareCoordinator','pluginName','Dropdown','asObservable','live-share.config','delete','OFFLINE','unit','complete','registerComponent','_status','pipe','Start','1.0.0-alpha.3','registerSharedOperation','RxDisposable','stringify','shouldShareOperation','_fetchOperations','executeCommand','Stop\x20following','Module','object','values','createInstance','_config','getCurrentTypeOfUnit$','_handleNewHost','6996072wQWHiN','onStarting','_handleNewChangeSets','SetWorksheetActiveOperation','Button','parseProtocolChangeset','length','_unitID','takeUntil','function','data','_collabSessionService','LiveShareController','BuiltInUIPart','getMemberID','dispose','PRESENTING','mergeOverrideWithDependencies','set','registerInitialStateReporter'];_0x2b2a=function(){return _0x12b579;};return _0x2b2a();}function h(_0x2c1659,_0x517f68,_0x321af0){const _0x59e200=_0x47a53a;return(_0x517f68=m(_0x517f68))in _0x2c1659?Object[_0x59e200(0x1cd)](_0x2c1659,_0x517f68,{'value':_0x321af0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2c1659[_0x517f68]=_0x321af0,_0x2c1659;}var g=class extends n['Disposable']{constructor(..._0xb36623){const _0x5eba21=_0x47a53a;super(..._0xb36623),h(this,_0x5eba21(0x194),new Set()),h(this,_0x5eba21(0x20a),new Set());}[_0x47a53a(0x1a9)](_0x305f49){const _0x154d9d=_0x47a53a;return this['_sharedOperations']['add'](_0x305f49),(0x0,n[_0x154d9d(0x230)])(()=>this[_0x154d9d(0x194)][_0x154d9d(0x1a0)](_0x305f49));}[_0x47a53a(0x1ca)](_0xb79d03){const _0x21ea50=_0x47a53a;return this[_0x21ea50(0x20a)][_0x21ea50(0x220)](_0xb79d03),(0x0,n[_0x21ea50(0x230)])(()=>this['_reporters'][_0x21ea50(0x1a0)](_0xb79d03));}['shouldShareOperation'](_0x45f6a6){const _0x220f7a=_0x47a53a;return this['_sharedOperations'][_0x220f7a(0x1da)](_0x45f6a6);}[_0x47a53a(0x18c)](_0x3c255b){const _0x2b4a14=_0x47a53a;return Array[_0x2b4a14(0x234)](this[_0x2b4a14(0x20a)])[_0x2b4a14(0x225)](_0x206add=>_0x206add(_0x3c255b));}};function _(_0x39b1b0,_0x24ab70){return function(_0x23aeda,_0x459c1f){_0x24ab70(_0x23aeda,_0x459c1f,_0x39b1b0);};}function v(_0x25e9c3,_0x46eb0d,_0x151c98,_0x5d6863){const _0x5c71ee=_0x47a53a;var _0x3064af=arguments[_0x5c71ee(0x1bd)],_0x2b5a70=_0x3064af<0x3?_0x46eb0d:_0x5d6863===null?_0x5d6863=Object['getOwnPropertyDescriptor'](_0x46eb0d,_0x151c98):_0x5d6863,_0x2a098c;if(typeof Reflect==_0x5c71ee(0x1b1)&&typeof Reflect[_0x5c71ee(0x213)]==_0x5c71ee(0x1c0))_0x2b5a70=Reflect[_0x5c71ee(0x213)](_0x25e9c3,_0x46eb0d,_0x151c98,_0x5d6863);else{for(var _0x12ba50=_0x25e9c3[_0x5c71ee(0x1bd)]-0x1;_0x12ba50>=0x0;_0x12ba50--)(_0x2a098c=_0x25e9c3[_0x12ba50])&&(_0x2b5a70=(_0x3064af<0x3?_0x2a098c(_0x2b5a70):_0x3064af>0x3?_0x2a098c(_0x46eb0d,_0x151c98,_0x2b5a70):_0x2a098c(_0x46eb0d,_0x151c98))||_0x2b5a70);}return _0x3064af>0x3&&_0x2b5a70&&Object[_0x5c71ee(0x1cd)](_0x46eb0d,_0x151c98,_0x2b5a70),_0x2b5a70;}let y=class extends n[_0x47a53a(0x1aa)]{constructor(_0x540b56,_0x5703f1,_0x27f65d){const _0x6ef908=_0x47a53a;super(),this[_0x6ef908(0x242)]=_0x540b56,this[_0x6ef908(0x1e8)]=_0x5703f1,this[_0x6ef908(0x1c2)]=_0x27f65d,h(this,_0x6ef908(0x1ea),new Map()),this['_init']();}async[_0x47a53a(0x19b)](_0x3af186){const _0x58dc57=_0x47a53a;return this[_0x58dc57(0x1ea)][_0x58dc57(0x1da)](_0x3af186)||await this[_0x58dc57(0x1d3)](_0x3af186),this[_0x58dc57(0x1ea)]['get'](_0x3af186);}['getLiveShareCoordinatorSync'](_0x139414){const _0x2a4013=_0x47a53a;var _0x1af1f8;return(_0x1af1f8=this['_entities'][_0x2a4013(0x1f3)](_0x139414))==null?null:_0x1af1f8;}[_0x47a53a(0x1d6)](){const _0x3a9222=_0x47a53a;this[_0x3a9222(0x242)][_0x3a9222(0x1d0)](n[_0x3a9222(0x20f)][_0x3a9222(0x1fb)])[_0x3a9222(0x1a6)]((0x0,a[_0x3a9222(0x1bf)])(this['dispose$']))[_0x3a9222(0x231)](async _0x47937a=>{const _0x13082f=_0x3a9222;let _0x18cf67=_0x47937a[_0x13082f(0x1a2)][_0x13082f(0x21c)]();this[_0x13082f(0x1ea)][_0x13082f(0x1da)](_0x18cf67)||this[_0x13082f(0x1d3)](_0x18cf67);}),this[_0x3a9222(0x242)]['getTypeOfUnitDisposed$'](n[_0x3a9222(0x20f)][_0x3a9222(0x1fb)])[_0x3a9222(0x1a6)]((0x0,a[_0x3a9222(0x1bf)])(this['dispose$']))[_0x3a9222(0x231)](_0x138eb2=>{const _0x355d74=_0x3a9222;let _0x24ce49=_0x138eb2[_0x355d74(0x21c)](),_0x55c3f9=this[_0x355d74(0x1ea)]['get'](_0x24ce49);_0x55c3f9==null||_0x55c3f9['dispose']();});}async[_0x47a53a(0x1d3)](_0xcc5916){const _0x57a1fe=_0x47a53a;let _0x4eee71=await this[_0x57a1fe(0x1c2)][_0x57a1fe(0x22c)](_0xcc5916),_0x47b70d=this[_0x57a1fe(0x1e8)][_0x57a1fe(0x1b3)](x,_0xcc5916,_0x4eee71);return _0x47b70d[_0x57a1fe(0x221)](),this[_0x57a1fe(0x1ea)][_0x57a1fe(0x1c9)](_0xcc5916,_0x47b70d),_0x47b70d;}};y=v([_(0x0,n[_0x47a53a(0x228)]),_(0x1,(0x0,n[_0x47a53a(0x243)])(n[_0x47a53a(0x196)])),_(0x2,(0x0,n[_0x47a53a(0x243)])(t[_0x47a53a(0x186)]))],y);let b=function(_0x242881){const _0x1b4ba6=_0x47a53a;return _0x242881[_0x1b4ba6(0x1a1)]=_0x1b4ba6(0x1f6),_0x242881[_0x1b4ba6(0x1df)]=_0x1b4ba6(0x219),_0x242881[_0x1b4ba6(0x207)]=_0x1b4ba6(0x23b),_0x242881[_0x1b4ba6(0x1db)]='not-following',_0x242881[_0x1b4ba6(0x1c7)]=_0x1b4ba6(0x1d5),_0x242881;}({}),x=class extends n[_0x47a53a(0x1aa)]{get['_status'](){const _0x3e13d4=_0x47a53a;return this[_0x3e13d4(0x21b)][_0x3e13d4(0x187)]();}constructor(_0x23d557,_0x3c0708,_0x6d4a9c,_0x33c3dd,_0x1fd6c7){const _0x168efa=_0x47a53a;super(),this[_0x168efa(0x1be)]=_0x23d557,this['_collabSession']=_0x3c0708,this[_0x168efa(0x1f7)]=_0x6d4a9c,this[_0x168efa(0x198)]=_0x33c3dd,this[_0x168efa(0x22a)]=_0x1fd6c7,h(this,_0x168efa(0x21b),new i[(_0x168efa(0x1d4))]('idle')),h(this,_0x168efa(0x1d7),this[_0x168efa(0x21b)][_0x168efa(0x19e)]()),h(this,_0x168efa(0x1d6),!0x1),h(this,_0x168efa(0x233),null),h(this,_0x168efa(0x1cc),null);}[_0x47a53a(0x1c6)](){const _0x49fe10=_0x47a53a;var _0x5176ae;(_0x5176ae=this[_0x49fe10(0x233)])==null||_0x5176ae[_0x49fe10(0x1c6)](),this[_0x49fe10(0x21b)][_0x49fe10(0x20b)](_0x49fe10(0x219)),this[_0x49fe10(0x21b)]['complete']();}[_0x47a53a(0x200)](){const _0xa2c47b=_0x47a53a;return this[_0xa2c47b(0x1a5)];}[_0x47a53a(0x221)](){const _0x5eaced=_0x47a53a;this[_0x5eaced(0x1d6)]||(this['_init']=!0x0,this[_0x5eaced(0x22d)][_0x5eaced(0x190)][_0x5eaced(0x1a6)]((0x0,a[_0x5eaced(0x1bf)])(this['dispose$']))[_0x5eaced(0x231)](_0x25c8d3=>{const _0x4810bc=_0x5eaced;switch(_0x25c8d3){case t[_0x4810bc(0x244)][_0x4810bc(0x1a1)]:this[_0x4810bc(0x223)]();break;case t[_0x4810bc(0x244)]['ONLINE']:this[_0x4810bc(0x23d)]();break;default:}}),this[_0x5eaced(0x22d)][_0x5eaced(0x229)][_0x5eaced(0x1a6)]((0x0,a[_0x5eaced(0x1bf)])(this['dispose$']))[_0x5eaced(0x231)](_0x2aa583=>{const _0x1da9b6=_0x5eaced;let {eventID:_0x4258d1}=_0x2aa583;switch(_0x4258d1){case e[_0x1da9b6(0x202)][_0x1da9b6(0x224)]:this['_handleNewHost'](_0x2aa583);break;case e['CollaborationEvent'][_0x1da9b6(0x1f8)]:this[_0x1da9b6(0x235)](_0x2aa583);break;case e[_0x1da9b6(0x202)]['LIVESHARE_TERMINATE']:this[_0x1da9b6(0x18e)]();break;case e[_0x1da9b6(0x202)][_0x1da9b6(0x20d)]:this[_0x1da9b6(0x1b9)](_0x2aa583);break;default:}}));}[_0x47a53a(0x199)](){const _0x9fd87a=_0x47a53a;this['_collabSession'][_0x9fd87a(0x18d)]({'eventID':e[_0x9fd87a(0x202)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x9fd87a(0x22d)][_0x9fd87a(0x1c5)]()}},this[_0x9fd87a(0x1be)]);}[_0x47a53a(0x1ff)](){const _0x4f4d02=_0x47a53a;this[_0x4f4d02(0x1a5)]===_0x4f4d02(0x1d5)&&(this[_0x4f4d02(0x21b)][_0x4f4d02(0x20b)](_0x4f4d02(0x219)),this[_0x4f4d02(0x22d)][_0x4f4d02(0x18d)]({'eventID':e['CollaborationEvent'][_0x4f4d02(0x210)],'data':{'unitID':this[_0x4f4d02(0x1be)]}},this[_0x4f4d02(0x1be)]));}[_0x47a53a(0x1fa)](){const _0x20544a=_0x47a53a;this[_0x20544a(0x1a5)]===_0x20544a(0x1e9)&&(this['_status$'][_0x20544a(0x20b)](_0x20544a(0x23b)),this[_0x20544a(0x1f0)]());}[_0x47a53a(0x18a)](){const _0x12d57b=_0x47a53a;this['_status']===_0x12d57b(0x23b)&&this[_0x12d57b(0x1e5)]();}[_0x47a53a(0x1b6)](_0x1767c3){const _0x3b444e=_0x47a53a;let {presenter:_0x2421eb}=_0x1767c3[_0x3b444e(0x1c1)],_0x125d37=this['_collabSession'][_0x3b444e(0x1c5)]();this[_0x3b444e(0x1cc)]=_0x2421eb,_0x2421eb===_0x125d37?(this[_0x3b444e(0x1e5)](),this[_0x3b444e(0x1fc)]()):this[_0x3b444e(0x1a5)]!=='not-following'&&(this[_0x3b444e(0x1e7)](),this[_0x3b444e(0x1f0)]());}[_0x47a53a(0x1ad)](){const _0x541731=_0x47a53a;let _0x5864d0={'eventID':e[_0x541731(0x202)][_0x541731(0x206)]};this['_collabSession']['send'](_0x5864d0,this[_0x541731(0x1be)]);}[_0x47a53a(0x18e)](){const _0x1d8d92=_0x47a53a;this[_0x1d8d92(0x1cc)]=null,this[_0x1d8d92(0x1a5)]!==_0x1d8d92(0x1d5)&&this[_0x1d8d92(0x18f)]();}[_0x47a53a(0x1b9)](_0x44f2a5){const _0x4742b6=_0x47a53a;if(this['_status']===_0x4742b6(0x23b)&&this[_0x4742b6(0x1cc)]===_0x44f2a5[_0x4742b6(0x1c1)]['memberID']){let _0x2206d5=(0x0,e[_0x4742b6(0x1bc)])(_0x44f2a5['data'])[_0x4742b6(0x201)]['reverse']()[_0x4742b6(0x226)](_0x2fb547=>_0x2fb547['id']===r['InsertSheetMutation']['id']);if(_0x2206d5){let _0x13b1df=_0x2206d5[_0x4742b6(0x1f2)][_0x4742b6(0x1cb)],_0x4b175b=_0x2206d5[_0x4742b6(0x1f2)][_0x4742b6(0x203)]['id'];setTimeout(()=>{const _0x3150fc=_0x4742b6;this[_0x3150fc(0x22a)][_0x3150fc(0x1ae)](r[_0x3150fc(0x1ba)]['id'],{'unitId':_0x13b1df,'subUnitId':_0x4b175b},{'fromCollab':!0x0});});}}}[_0x47a53a(0x1fc)](){const _0xd2cd1f=_0x47a53a;var _0x18be23;(_0x18be23=this[_0xd2cd1f(0x233)])==null||_0x18be23[_0xd2cd1f(0x1c6)](),this[_0xd2cd1f(0x21b)][_0xd2cd1f(0x20b)](_0xd2cd1f(0x1d5));let _0x56971d=new Map(),_0x2fa70c=this[_0xd2cd1f(0x233)]=new n[(_0xd2cd1f(0x218))]();_0x2fa70c['add']((0x0,n[_0xd2cd1f(0x230)])(()=>{_0x56971d['forEach'](({subject:_0x294317,subscription:_0x55904b})=>{const _0x3cd7cb=_0x542f;_0x55904b[_0x3cd7cb(0x21e)](),_0x294317[_0x3cd7cb(0x1a3)]();}),_0x56971d['clear']();})),_0x2fa70c['add'](this[_0xd2cd1f(0x22a)][_0xd2cd1f(0x1dd)](_0xc23ae5=>{const _0xa3e03c=_0xd2cd1f;if(_0xc23ae5[_0xa3e03c(0x208)]!==n['CommandType'][_0xa3e03c(0x239)]||!this[_0xa3e03c(0x198)][_0xa3e03c(0x1ac)](_0xc23ae5['id']))return;let {id:_0x154d13}=_0xc23ae5,_0x2531fe;if(_0x56971d[_0xa3e03c(0x1da)](_0x154d13))_0x2531fe=_0x56971d[_0xa3e03c(0x1f3)](_0x154d13)['subject'];else{var _0x33f39e;_0x2531fe=new i['Subject']();let _0x22dc1f=_0x2531fe[_0xa3e03c(0x1a6)]((0x0,a[_0xa3e03c(0x204)])((_0x33f39e=this['_configService'][_0xa3e03c(0x227)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x33f39e,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xa3e03c(0x231)](_0x2de782=>{const _0x5d87df=_0xa3e03c;this[_0x5d87df(0x22d)][_0x5d87df(0x18d)]({'eventID':e[_0x5d87df(0x202)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5d87df(0x1be)],'operations':{[_0x2de782['id']]:{'id':_0x2de782['id'],'params':JSON['stringify'](_0x2de782[_0x5d87df(0x1f2)])}}}},this[_0x5d87df(0x1be)]);});_0x56971d[_0xa3e03c(0x1c9)](_0x154d13,{'subject':_0x2531fe,'subscription':_0x22dc1f});}_0x2531fe[_0xa3e03c(0x20b)](_0xc23ae5);})),this[_0xd2cd1f(0x198)][_0xd2cd1f(0x18c)](this[_0xd2cd1f(0x1be)])[_0xd2cd1f(0x215)](_0x4f2bdb=>this[_0xd2cd1f(0x22d)][_0xd2cd1f(0x18d)]({'eventID':e[_0xd2cd1f(0x202)][_0xd2cd1f(0x1f8)],'data':{'unitID':this['_unitID'],'operations':{[_0x4f2bdb['id']]:{'id':_0x4f2bdb['id'],'params':JSON[_0xd2cd1f(0x1ab)](_0x4f2bdb[_0xd2cd1f(0x1f2)])}}}},this[_0xd2cd1f(0x1be)]));}['_stopPresenting'](){const _0x49a2bb=_0x47a53a;var _0x45ba78;this[_0x49a2bb(0x21b)][_0x49a2bb(0x20b)]('idle'),(_0x45ba78=this[_0x49a2bb(0x233)])==null||_0x45ba78[_0x49a2bb(0x1c6)](),this['_commandDisposable']=null;}[_0x47a53a(0x1f0)](){const _0x4bba27=_0x47a53a;var _0x57dc58;(_0x57dc58=this[_0x4bba27(0x233)])==null||_0x57dc58['dispose'](),this[_0x4bba27(0x21b)][_0x4bba27(0x20b)]('following');}[_0x47a53a(0x18f)](){const _0x16a6d4=_0x47a53a;var _0x1e97e0;this[_0x16a6d4(0x21b)][_0x16a6d4(0x20b)](_0x16a6d4(0x219)),(_0x1e97e0=this[_0x16a6d4(0x233)])==null||_0x1e97e0['dispose'](),this[_0x16a6d4(0x233)]=null;}[_0x47a53a(0x1e5)](){const _0x576fac=_0x47a53a;var _0x3dbeee;this[_0x576fac(0x21b)][_0x576fac(0x20b)](_0x576fac(0x1e9)),(_0x3dbeee=this[_0x576fac(0x233)])==null||_0x3dbeee['dispose']();}[_0x47a53a(0x235)](_0x346e18){const _0x93fa77=_0x47a53a;if([_0x93fa77(0x1d5),'not-following','offline'][_0x93fa77(0x1eb)](this[_0x93fa77(0x1a5)])||!_0x346e18[_0x93fa77(0x1c1)][_0x93fa77(0x1d9)]||_0x346e18[_0x93fa77(0x1c1)][_0x93fa77(0x1d9)]===this['_collabSession'][_0x93fa77(0x1c5)]())return;this['_status']===_0x93fa77(0x219)&&this[_0x93fa77(0x1f0)]();let _0x1c6f4e=_0x346e18['data'][_0x93fa77(0x232)];Object[_0x93fa77(0x1b2)](_0x1c6f4e)[_0x93fa77(0x215)](_0x2117b4=>{const _0x2795db=_0x93fa77;this[_0x2795db(0x22a)]['executeCommand'](_0x2117b4['id'],_0x2117b4['params']?JSON[_0x2795db(0x23c)](_0x2117b4['params']):null,{'fromCollab':!0x0});});}[_0x47a53a(0x223)](){const _0x166d3c=_0x47a53a;var _0x4dbd11;this[_0x166d3c(0x21b)]['next'](_0x166d3c(0x1f6)),(_0x4dbd11=this[_0x166d3c(0x233)])==null||_0x4dbd11[_0x166d3c(0x1c6)]();}[_0x47a53a(0x23d)](){const _0x4fba92=_0x47a53a;this['_status$'][_0x4fba92(0x20b)]('idle'),this[_0x4fba92(0x1ad)]();}};x=v([_(0x2,n['IConfigService']),_(0x3,(0x0,n[_0x47a53a(0x243)])(g)),_(0x4,n[_0x47a53a(0x23e)])],x);var S='@univerjs-pro/live-share',C=_0x47a53a(0x1a8);const w={};let T=class extends n[_0x47a53a(0x1e2)]{constructor(_0x163ab3){const _0x62fe9=_0x47a53a;super(),this[_0x62fe9(0x198)]=_0x163ab3,this[_0x62fe9(0x1d6)]();}[_0x47a53a(0x1d6)](){const _0x154f36=_0x47a53a;[o['SetZoomRatioOperation']['id'],o['SetScrollOperation']['id'],r[_0x154f36(0x1ba)]['id']][_0x154f36(0x215)](_0x3f7575=>{const _0x3230bc=_0x154f36;this[_0x3230bc(0x1e6)](this[_0x3230bc(0x198)][_0x3230bc(0x1a9)](_0x3f7575));});}};T=v([_(0x0,(0x0,n[_0x47a53a(0x243)])(g))],T);function E(){const _0x21db8c=_0x47a53a;let _0x3b5da8=(0x0,s['useDependency'])(y),_0x2ec9d8=(0x0,s[_0x21db8c(0x188)])(n[_0x21db8c(0x228)]),_0x327b96=(0x0,s[_0x21db8c(0x241)])(()=>_0x2ec9d8[_0x21db8c(0x1b5)](n[_0x21db8c(0x20f)][_0x21db8c(0x1fb)]),void 0x0,!0x1,[]),[_0x2b7728,_0x1bab43]=(0x0,u['useState'])(null),[_0x2f3a3f,_0x277b1b]=(0x0,u[_0x21db8c(0x1d2)])(_0x21db8c(0x219)),_0x16d784=(0x0,u['useRef'])(null);return(0x0,u[_0x21db8c(0x1cf)])(()=>(_0x327b96&&_0x3b5da8[_0x21db8c(0x19b)](_0x327b96[_0x21db8c(0x21c)]())[_0x21db8c(0x21a)](_0x4a7f63=>{const _0x422eab=_0x21db8c;_0x1bab43(_0x4a7f63),_0x16d784[_0x422eab(0x238)]=_0x4a7f63[_0x422eab(0x1d7)][_0x422eab(0x231)](_0x20c189=>{_0x277b1b(_0x20c189);});}),()=>{const _0x2ebe19=_0x21db8c;var _0x1883ea;(_0x1883ea=_0x16d784[_0x2ebe19(0x238)])==null||_0x1883ea[_0x2ebe19(0x21e)](),_0x16d784[_0x2ebe19(0x238)]=null;}),[_0x327b96,_0x3b5da8]),_0x2b7728?(0x0,d[_0x21db8c(0x214)])(c[_0x21db8c(0x19d)],{'align':_0x21db8c(0x18b),'disabled':_0x2f3a3f===_0x21db8c(0x1f6),'className':_0x21db8c(0x212),'overlay':(0x0,d[_0x21db8c(0x214)])(D,{'status':_0x2f3a3f,'coordinator':_0x2b7728}),'children':(0x0,d[_0x21db8c(0x214)])(_0x21db8c(0x22f),{'className':(0x0,c['clsx'])(_0x21db8c(0x237),{'univer-cursor-not-allowed':_0x2f3a3f===_0x21db8c(0x1f6),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2f3a3f!==_0x21db8c(0x1f6)}),'type':_0x21db8c(0x22f),'children':(0x0,d[_0x21db8c(0x214)])(l[_0x21db8c(0x1fe)],{})})}):null;}function D(_0x597b52){const _0x207a2b=_0x47a53a;let {status:_0x52aa47,coordinator:_0x1833a7}=_0x597b52;switch(_0x52aa47){case _0x207a2b(0x219):return(0x0,d[_0x207a2b(0x214)])(O,{'coordinator':_0x1833a7});case'following':return(0x0,d[_0x207a2b(0x214)])(k,{'coordinator':_0x1833a7});case _0x207a2b(0x1e9):return(0x0,d['jsx'])(A,{'coordinator':_0x1833a7});case _0x207a2b(0x1f6):return(0x0,d[_0x207a2b(0x214)])(M,{});case'presenting':return(0x0,d[_0x207a2b(0x214)])(j,{'coordinator':_0x1833a7});default:return null;}}function O(_0x434ee6){const _0xec66fd=_0x47a53a;let {coordinator:_0x5a54dc}=_0x434ee6;return(0x0,d[_0xec66fd(0x22b)])(d[_0xec66fd(0x1e3)],{'children':[(0x0,d[_0xec66fd(0x214)])(_0xec66fd(0x1dc),{'className':_0xec66fd(0x185),'children':_0xec66fd(0x189)}),(0x0,d[_0xec66fd(0x214)])(c[_0xec66fd(0x1bb)],{'onClick':()=>_0x5a54dc['tryStartPresenting'](),'children':_0xec66fd(0x1a7)})]});}function k(_0x5c098b){const _0x100ac7=_0x47a53a;let {coordinator:_0x203b7a}=_0x5c098b;return(0x0,d[_0x100ac7(0x22b)])(d[_0x100ac7(0x1e3)],{'children':[(0x0,d['jsx'])(_0x100ac7(0x1dc),{'className':_0x100ac7(0x185),'children':_0x100ac7(0x1ed)}),(0x0,d[_0x100ac7(0x214)])(c['Button'],{'onClick':()=>_0x203b7a[_0x100ac7(0x18a)](),'children':_0x100ac7(0x1af)})]});}function A(_0x5ea70d){const _0x2446e7=_0x47a53a;let {coordinator:_0x20e9c5}=_0x5ea70d;return(0x0,d[_0x2446e7(0x22b)])(d[_0x2446e7(0x1e3)],{'children':[(0x0,d[_0x2446e7(0x214)])('div',{'className':_0x2446e7(0x185),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,d['jsx'])(c[_0x2446e7(0x1bb)],{'variant':_0x2446e7(0x1f5),'onClick':()=>_0x20e9c5[_0x2446e7(0x1fa)](),'children':_0x2446e7(0x191)})]});}function j(_0x2e1dc4){const _0x2ce472=_0x47a53a;let {coordinator:_0xc04f51}=_0x2e1dc4;return(0x0,d[_0x2ce472(0x22b)])(d[_0x2ce472(0x1e3)],{'children':[(0x0,d[_0x2ce472(0x214)])(_0x2ce472(0x1dc),{'className':_0x2ce472(0x185),'children':_0x2ce472(0x20e)}),(0x0,d[_0x2ce472(0x214)])(c['Button'],{'variant':_0x2ce472(0x1fd),'onClick':()=>_0xc04f51[_0x2ce472(0x1ff)](),'children':_0x2ce472(0x23f)})]});}function M(){const _0x546e31=_0x47a53a;return(0x0,d[_0x546e31(0x214)])(d[_0x546e31(0x1e3)],{'children':_0x546e31(0x21d)});}let N=class extends n[_0x47a53a(0x1e2)]{constructor(_0x4938d2,_0x43a952){const _0x562e9a=_0x47a53a;super(),this['_injector']=_0x4938d2,this['_uiPartsService']=_0x43a952,this[_0x562e9a(0x209)]();}[_0x47a53a(0x209)](){const _0x46c03a=_0x47a53a;this['disposeWithMe'](this['_uiPartsService'][_0x46c03a(0x1a4)](s[_0x46c03a(0x1c4)][_0x46c03a(0x1ee)],()=>(0x0,s['connectInjector'])(E,this[_0x46c03a(0x1e8)])));}};N=v([_(0x0,(0x0,n[_0x47a53a(0x243)])(n['Injector'])),_(0x1,s['IUIPartsService'])],N);function _0x542f(_0x585c0a,_0x5145bb){_0x585c0a=_0x585c0a-0x185;const _0x2b2a96=_0x2b2a();let _0x542fe9=_0x2b2a96[_0x585c0a];return _0x542fe9;}let P=class extends n[_0x47a53a(0x1f4)]{constructor(_0x1c8677=w,_0x318a47,_0x2477bc){const _0x171361=_0x47a53a;super(),this[_0x171361(0x1b4)]=_0x1c8677,this[_0x171361(0x1e8)]=_0x318a47,this[_0x171361(0x1f7)]=_0x2477bc;let {..._0x49dad1}=(0x0,n['merge'])({},w,this['_config']);this[_0x171361(0x1f7)]['setConfig'](_0x171361(0x19f),_0x49dad1);}[_0x47a53a(0x1b8)](){const _0x24996e=_0x47a53a;(0x0,n[_0x24996e(0x211)])(this[_0x24996e(0x1e8)],(0x0,n[_0x24996e(0x1c8)])([[g],[y],[T],[N]],this[_0x24996e(0x1b4)][_0x24996e(0x192)])),(0x0,n[_0x24996e(0x1f1)])(this[_0x24996e(0x1e8)],[[T]]);}[_0x47a53a(0x1e4)](){const _0x428e3f=_0x47a53a;(0x0,n[_0x428e3f(0x1f1)])(this[_0x428e3f(0x1e8)],[[N]]);}};h(P,_0x47a53a(0x208),n[_0x47a53a(0x20f)][_0x47a53a(0x23a)]),h(P,_0x47a53a(0x19c),_0x47a53a(0x21f)),h(P,_0x47a53a(0x193),S),h(P,_0x47a53a(0x1f9),C),P=v([(0x0,n[_0x47a53a(0x22e)])(t['UniverCollaborationClientPlugin']),_(0x1,(0x0,n['Inject'])(n[_0x47a53a(0x196)])),_(0x2,n['IConfigService'])],P),Object[_0x47a53a(0x1cd)](exports,_0x47a53a(0x1c3),{'enumerable':!0x0,'get':function(){return y;}}),exports[_0x47a53a(0x1e1)]=b,Object[_0x47a53a(0x1cd)](exports,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return P;}});
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x581879=_0x19a0;function _0x1f62(){const _0x132769=['3814977JPYlPM','IDLE','30616kNbftX','call','1174090qeWUfI','2LglRxO','getCurrentUnitOfType','4unbTuV','getLiveShareCoordinatorSync','function','No\x20active\x20workbook\x20found.','stopFollowing','5319867EYkmqw','getUnitId','startFollowing','6310005GdqpNT','_initialize','LiveShareStatusEnum','get','getStatus','868170YckaSa','stopPresenting','89242SDaMuU','getLiveShareStatus','constructor','441nJqZhi','_injector','UNIVER_SHEET','string','_liveShareController','symbol','toPrimitive','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','defineProperty','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','object','tryStartPresenting','extend'];_0x1f62=function(){return _0x132769;};return _0x1f62();}function _0x19a0(_0x34f6ee,_0x6c63b2){_0x34f6ee=_0x34f6ee-0x14a;const _0x1f622b=_0x1f62();let _0x19a09e=_0x1f622b[_0x34f6ee];return _0x19a09e;}(function(_0x218c64,_0x3cea81){const _0x30accd=_0x19a0,_0x41e026=_0x218c64();while(!![]){try{const _0x377fc9=-parseInt(_0x30accd(0x16d))/0x1*(-parseInt(_0x30accd(0x158))/0x2)+parseInt(_0x30accd(0x168))/0x3*(parseInt(_0x30accd(0x16f))/0x4)+-parseInt(_0x30accd(0x151))/0x5+-parseInt(_0x30accd(0x156))/0x6+parseInt(_0x30accd(0x14e))/0x7+parseInt(_0x30accd(0x16a))/0x8*(-parseInt(_0x30accd(0x15b))/0x9)+parseInt(_0x30accd(0x16c))/0xa;if(_0x377fc9===_0x3cea81)break;else _0x41e026['push'](_0x41e026['shift']());}catch(_0x6ee33b){_0x41e026['push'](_0x41e026['shift']());}}}(_0x1f62,0x9d3e8));import{LiveShareController as _0xfaa6c2,LiveShareStatus as _0x41f314}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x418f11,UniverInstanceType as _0x30f3f0}from'@univerjs/core';import{FEnum as _0x35fdd7,FUniver as _0x580b87}from'@univerjs/core/facade';function o(_0x2cb829){'@babel/helpers - typeof';const _0x5cace2=_0x19a0;return o=typeof Symbol==_0x5cace2(0x14b)&&typeof Symbol['iterator']==_0x5cace2(0x160)?function(_0x5a94fc){return typeof _0x5a94fc;}:function(_0x257089){const _0x2e77f4=_0x5cace2;return _0x257089&&typeof Symbol==_0x2e77f4(0x14b)&&_0x257089[_0x2e77f4(0x15a)]===Symbol&&_0x257089!==Symbol['prototype']?_0x2e77f4(0x160):typeof _0x257089;},o(_0x2cb829);}function s(_0x21f60f,_0x4af591){const _0x56b6fc=_0x19a0;if(o(_0x21f60f)!=_0x56b6fc(0x165)||!_0x21f60f)return _0x21f60f;var _0x541c2c=_0x21f60f[Symbol[_0x56b6fc(0x161)]];if(_0x541c2c!==void 0x0){var _0x636c51=_0x541c2c[_0x56b6fc(0x16b)](_0x21f60f,_0x4af591||'default');if(o(_0x636c51)!=_0x56b6fc(0x165))return _0x636c51;throw TypeError(_0x56b6fc(0x164));}return(_0x4af591===_0x56b6fc(0x15e)?String:Number)(_0x21f60f);}function c(_0x1bf028){const _0x11c4ad=_0x19a0;var _0x2c2e35=s(_0x1bf028,_0x11c4ad(0x15e));return o(_0x2c2e35)=='symbol'?_0x2c2e35:_0x2c2e35+'';}function l(_0xcf336e,_0x1273e3,_0xd1bf39){const _0x159bd8=_0x19a0;return(_0x1273e3=c(_0x1273e3))in _0xcf336e?Object[_0x159bd8(0x163)](_0xcf336e,_0x1273e3,{'value':_0xd1bf39,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xcf336e[_0x1273e3]=_0xd1bf39,_0xcf336e;}var u=class extends _0x580b87{constructor(..._0x17f535){const _0x452451=_0x19a0;super(..._0x17f535),l(this,_0x452451(0x15f),void 0x0);}[_0x581879(0x152)](_0x1f6712){const _0x42b04d=_0x581879;this[_0x42b04d(0x15f)]=_0x1f6712[_0x42b04d(0x154)](_0xfaa6c2);}[_0x581879(0x159)](){const _0x3fc369=_0x581879;var _0x801197;let _0x2142d8=this['_injector'][_0x3fc369(0x154)](_0x418f11)[_0x3fc369(0x16e)](_0x30f3f0[_0x3fc369(0x15d)]);if(!_0x2142d8)throw Error(_0x3fc369(0x14c));let _0x560e6e=_0x2142d8[_0x3fc369(0x14f)](),_0x44726a=this[_0x3fc369(0x15f)][_0x3fc369(0x14a)](_0x560e6e);return(_0x801197=_0x44726a==null?void 0x0:_0x44726a[_0x3fc369(0x155)]())==null?_0x41f314[_0x3fc369(0x169)]:_0x801197;}[_0x581879(0x150)](){const _0x48cf68=_0x581879;let _0x48940b=this['_injector'][_0x48cf68(0x154)](_0x418f11)['getCurrentUnitOfType'](_0x30f3f0[_0x48cf68(0x15d)]);if(!_0x48940b)throw Error(_0x48cf68(0x14c));let _0xf76666=_0x48940b['getUnitId'](),_0x5c04e3=this['_liveShareController'][_0x48cf68(0x14a)](_0xf76666);if(!_0x5c04e3)throw Error(_0x48cf68(0x162));_0x5c04e3[_0x48cf68(0x150)]();}[_0x581879(0x14d)](){const _0x5710f2=_0x581879;let _0x1dd3fe=this[_0x5710f2(0x15c)]['get'](_0x418f11)[_0x5710f2(0x16e)](_0x30f3f0[_0x5710f2(0x15d)]);if(!_0x1dd3fe)throw Error('No\x20active\x20workbook\x20found.');let _0x3b3c7b=_0x1dd3fe[_0x5710f2(0x14f)](),_0x3d09ea=this[_0x5710f2(0x15f)][_0x5710f2(0x14a)](_0x3b3c7b);if(!_0x3d09ea)throw Error(_0x5710f2(0x162));_0x3d09ea[_0x5710f2(0x14d)]();}['startPresenting'](){const _0x2f6ace=_0x581879;let _0x48a891=this[_0x2f6ace(0x15c)][_0x2f6ace(0x154)](_0x418f11)['getCurrentUnitOfType'](_0x30f3f0['UNIVER_SHEET']);if(!_0x48a891)throw Error(_0x2f6ace(0x14c));let _0xdb1665=_0x48a891[_0x2f6ace(0x14f)](),_0x54da0c=this['_liveShareController'][_0x2f6ace(0x14a)](_0xdb1665);if(!_0x54da0c)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x54da0c[_0x2f6ace(0x166)]();}[_0x581879(0x157)](){const _0x2fdea5=_0x581879;let _0x3a54be=this[_0x2fdea5(0x15c)][_0x2fdea5(0x154)](_0x418f11)[_0x2fdea5(0x16e)](_0x30f3f0[_0x2fdea5(0x15d)]);if(!_0x3a54be)throw Error('No\x20active\x20workbook\x20found.');let _0xf07f54=_0x3a54be[_0x2fdea5(0x14f)](),_0x5273ea=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xf07f54);if(!_0x5273ea)throw Error(_0x2fdea5(0x162));_0x5273ea[_0x2fdea5(0x157)]();}};_0x580b87['extend'](u);var d=class extends _0x35fdd7{get[_0x581879(0x153)](){return _0x41f314;}};_0x35fdd7[_0x581879(0x167)](d);export{};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x255515=_0x3685;(function(_0x1aa2a0,_0x58cf55){const _0x20cc02=_0x3685,_0x529053=_0x1aa2a0();while(!![]){try{const _0x40f922=parseInt(_0x20cc02(0xed))/0x1+-parseInt(_0x20cc02(0xdf))/0x2+parseInt(_0x20cc02(0xd8))/0x3*(parseInt(_0x20cc02(0xea))/0x4)+-parseInt(_0x20cc02(0x112))/0x5*(-parseInt(_0x20cc02(0x108))/0x6)+parseInt(_0x20cc02(0x11e))/0x7*(parseInt(_0x20cc02(0x131))/0x8)+-parseInt(_0x20cc02(0xfd))/0x9+-parseInt(_0x20cc02(0xa2))/0xa;if(_0x40f922===_0x58cf55)break;else _0x529053['push'](_0x529053['shift']());}catch(_0x3c05a6){_0x529053['push'](_0x529053['shift']());}}}(_0x3b04,0x2610d));function _0x3685(_0xb62f3b,_0x307532){_0xb62f3b=_0xb62f3b-0xa0;const _0x3b0423=_0x3b04();let _0x368518=_0x3b0423[_0xb62f3b];return _0x368518;}import{CollaborationEvent as _0x24db57,parseProtocolChangeset as _0x1198e4}from'@univerjs-pro/collaboration';function _0x3b04(){const _0x449aa2=['type','then','requireSession','_handleOperation','iterator','Stop\x20presenting','onStarting','_univerInstanceService','Start','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','init','next','subject','_handleTerminate','string','_presenter','setConfig','_liveShareService','Start\x20following','_status','_commandDisposable','getStatus','_stopFollowing','asObservable','You\x27re\x20presenting\x20the\x20document','_handleNewChangeSets','memberID','18375lzwwcF','onCommandExecuted','_unitID','div','NEW_CHANGESETS','getLiveShareCoordinatorSync','subscribe','231212xMiYMq','operations','createInstance','@univerjs-pro/live-share','has','getInitialStates','startFollowing','override','parse','live-share.config','getConfig','120yaNYwo','getTypeOfUnitAdded$','toPrimitive','141634RAygrU','complete','_reporters','pipe','Present\x20this\x20document','UNIVER_SHEET','add','symbol','_startLiveShareCoordinator','clear','_commandService','_beIdle','following','_startFollowing','values','_status$','1290924yKrksT','unit','tryStartPresenting','unsubscribe','getTypeOfUnitDisposed$','LIVESHARE_FETCH_OPERATIONS','text','registerSharedOperation','mutations','getLiveShareCoordinator','includes','300xbiTUV','offline','decorate','_injector','LIVESHARE_NEW_HOST','delete','dispose$','getValue','_handleNewHost','call','25040nyZbrT','_fetchOperations','_collabSessionService','NOT_FOLLOWING','_configService','getMemberID','status$','find','You\x27re\x20not\x20following\x20the\x20presenter','OFFLINE','UNIVER_UNKNOWN','dispose','8785TNUhkA','IDLE','params','disposeWithMe','shouldShareOperation','_handleOffline','defineProperty','packageName','object','from','registerInitialStateReporter','_config','default','presenting','getCurrentTypeOfUnit$','_entities','registerComponent','not-following','end','56hOUcUi','_init','set','UNIVER_LIVE_SHARE_PLUGIN','_sharedOperations','idle','stopPresenting','1696100JXTsVM','_handleOnline','forEach','_collabSession','_uiPartsService','onRendered','get','LIVESHARE_OPERATION','Stop\x20following','pluginName','data','stopFollowing','function','getUnitId','unitId','_stopPresenting','ONLINE','FOLLOWING','current','send','executeCommand','_mountLiveShare','presenter','stringify','event$','map'];_0x3b04=function(){return _0x449aa2;};return _0x3b04();}import{CollaborationSessionService as _0x5525bb,SessionStatus as _0x28a6cc,UniverCollaborationClientPlugin as _0x57b419}from'@univerjs-pro/collaboration-client';import{CommandType as _0xbc0567,DependentOn as _0x51ca48,Disposable as _0x516cea,DisposableCollection as _0xf927e1,ICommandService as _0x36e78,IConfigService as _0x3ceecb,IUniverInstanceService as _0x407d65,Inject as _0x2e8c25,Injector as _0x301770,Plugin as _0x22dadf,RxDisposable as _0x454ded,UniverInstanceType as _0x104030,merge as _0x22904a,mergeOverrideWithDependencies as _0x49a17a,registerDependencies as _0x4c4ef5,toDisposable as _0x7b8648,touchDependencies as _0x2efcc9}from'@univerjs/core';import{InsertSheetMutation as _0x417356,SetWorksheetActiveOperation as _0x825d3}from'@univerjs/sheets';import{BehaviorSubject as _0x48b8ba,Subject as _0x2a6741}from'rxjs';import{takeUntil as _0x471262,throttleTime as _0x464a34}from'rxjs/operators';import{BuiltInUIPart as _0xb35ac5,IUIPartsService as _0x396b3b,connectInjector as _0x2af7a6,useDependency as _0x49f746,useObservable as _0x3fc517}from'@univerjs/ui';import{Button as _0x1d87b5,Dropdown as _0x132052,clsx as _0x43282b}from'@univerjs/design';import{LiveShareIcon as _0x501a81}from'@univerjs/icons';import{useEffect as _0x4e5c5e,useRef as _0xf04e19,useState as _0x54d631}from'react';import{Fragment as _0x33c60e,jsx as _0x2b78ed,jsxs as _0x46c0ab}from'react/jsx-runtime';import{SetScrollOperation as _0x4eaff8,SetZoomRatioOperation as _0x35ad51}from'@univerjs/sheets-ui';function R(_0x291027){'@babel/helpers - typeof';const _0x1f3aaf=_0x3685;return R=typeof Symbol==_0x1f3aaf(0xae)&&typeof Symbol[_0x1f3aaf(0xc0)]==_0x1f3aaf(0xf4)?function(_0x1b7878){return typeof _0x1b7878;}:function(_0x2ae6c2){const _0x4075fe=_0x1f3aaf;return _0x2ae6c2&&typeof Symbol==_0x4075fe(0xae)&&_0x2ae6c2['constructor']===Symbol&&_0x2ae6c2!==Symbol['prototype']?_0x4075fe(0xf4):typeof _0x2ae6c2;},R(_0x291027);}function z(_0xf774cb,_0x586126){const _0x48ae5d=_0x3685;if(R(_0xf774cb)!=_0x48ae5d(0x126)||!_0xf774cb)return _0xf774cb;var _0x1c1ea4=_0xf774cb[Symbol[_0x48ae5d(0xec)]];if(_0x1c1ea4!==void 0x0){var _0x3c996e=_0x1c1ea4[_0x48ae5d(0x111)](_0xf774cb,_0x586126||_0x48ae5d(0x12a));if(R(_0x3c996e)!=_0x48ae5d(0x126))return _0x3c996e;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x586126===_0x48ae5d(0xcb)?String:Number)(_0xf774cb);}function B(_0x356567){const _0x20b902=_0x3685;var _0xe0ddc4=z(_0x356567,_0x20b902(0xcb));return R(_0xe0ddc4)==_0x20b902(0xf4)?_0xe0ddc4:_0xe0ddc4+'';}function V(_0x256d0e,_0x52b8fb,_0x1529ec){const _0x19f888=_0x3685;return(_0x52b8fb=B(_0x52b8fb))in _0x256d0e?Object[_0x19f888(0x124)](_0x256d0e,_0x52b8fb,{'value':_0x1529ec,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x256d0e[_0x52b8fb]=_0x1529ec,_0x256d0e;}var H=class extends _0x516cea{constructor(..._0x192d21){const _0xa16cae=_0x3685;super(..._0x192d21),V(this,_0xa16cae(0x135),new Set()),V(this,_0xa16cae(0xef),new Set());}[_0x255515(0x104)](_0x208fd9){const _0xb13642=_0x255515;return this['_sharedOperations'][_0xb13642(0xf3)](_0x208fd9),_0x7b8648(()=>this[_0xb13642(0x135)][_0xb13642(0x10d)](_0x208fd9));}[_0x255515(0x128)](_0x28e71d){const _0x1dfc3d=_0x255515;return this['_reporters'][_0x1dfc3d(0xf3)](_0x28e71d),_0x7b8648(()=>this[_0x1dfc3d(0xef)]['delete'](_0x28e71d));}[_0x255515(0x122)](_0x14588f){const _0x1ac9c3=_0x255515;return this[_0x1ac9c3(0x135)][_0x1ac9c3(0xe3)](_0x14588f);}[_0x255515(0xe4)](_0x45e5c6){const _0x5d40cb=_0x255515;return Array[_0x5d40cb(0x127)](this[_0x5d40cb(0xef)])[_0x5d40cb(0xbb)](_0x46c62c=>_0x46c62c(_0x45e5c6));}};function U(_0x388b15,_0xa8cce){return function(_0x126223,_0x1e36f4){_0xa8cce(_0x126223,_0x1e36f4,_0x388b15);};}function W(_0x77d6f1,_0x2cfdb6,_0x48fe60,_0x1bac49){const _0xc32ae2=_0x255515;var _0x3b206e=arguments['length'],_0x599a9b=_0x3b206e<0x3?_0x2cfdb6:_0x1bac49===null?_0x1bac49=Object['getOwnPropertyDescriptor'](_0x2cfdb6,_0x48fe60):_0x1bac49,_0x4c94be;if(typeof Reflect==_0xc32ae2(0x126)&&typeof Reflect[_0xc32ae2(0x10a)]==_0xc32ae2(0xae))_0x599a9b=Reflect[_0xc32ae2(0x10a)](_0x77d6f1,_0x2cfdb6,_0x48fe60,_0x1bac49);else{for(var _0x423fa2=_0x77d6f1['length']-0x1;_0x423fa2>=0x0;_0x423fa2--)(_0x4c94be=_0x77d6f1[_0x423fa2])&&(_0x599a9b=(_0x3b206e<0x3?_0x4c94be(_0x599a9b):_0x3b206e>0x3?_0x4c94be(_0x2cfdb6,_0x48fe60,_0x599a9b):_0x4c94be(_0x2cfdb6,_0x48fe60))||_0x599a9b);}return _0x3b206e>0x3&&_0x599a9b&&Object[_0xc32ae2(0x124)](_0x2cfdb6,_0x48fe60,_0x599a9b),_0x599a9b;}let G=class extends _0x454ded{constructor(_0x4c8b46,_0xf5eef4,_0x4a07c5){const _0x21a6b5=_0x255515;super(),this['_univerInstanceService']=_0x4c8b46,this[_0x21a6b5(0x10b)]=_0xf5eef4,this['_collabSessionService']=_0x4a07c5,V(this,_0x21a6b5(0x12d),new Map()),this[_0x21a6b5(0x132)]();}async[_0x255515(0x106)](_0x458f39){const _0x140a66=_0x255515;return this[_0x140a66(0x12d)][_0x140a66(0xe3)](_0x458f39)||await this[_0x140a66(0xf5)](_0x458f39),this[_0x140a66(0x12d)]['get'](_0x458f39);}[_0x255515(0xdd)](_0x526e39){const _0x804695=_0x255515;var _0x3e9a64;return(_0x3e9a64=this[_0x804695(0x12d)][_0x804695(0xa8)](_0x526e39))==null?null:_0x3e9a64;}[_0x255515(0x132)](){const _0x2afed9=_0x255515;this[_0x2afed9(0xc3)][_0x2afed9(0xeb)](_0x104030['UNIVER_SHEET'])['pipe'](_0x471262(this[_0x2afed9(0x10e)]))[_0x2afed9(0xde)](async _0x4d074c=>{const _0x515d50=_0x2afed9;let _0x18cbe8=_0x4d074c[_0x515d50(0xfe)]['getUnitId']();this[_0x515d50(0x12d)]['has'](_0x18cbe8)||this[_0x515d50(0xf5)](_0x18cbe8);}),this[_0x2afed9(0xc3)][_0x2afed9(0x101)](_0x104030[_0x2afed9(0xf2)])[_0x2afed9(0xf0)](_0x471262(this[_0x2afed9(0x10e)]))[_0x2afed9(0xde)](_0x3583fb=>{const _0x25e0db=_0x2afed9;let _0x49cf13=_0x3583fb[_0x25e0db(0xaf)](),_0x529e1c=this['_entities'][_0x25e0db(0xa8)](_0x49cf13);_0x529e1c==null||_0x529e1c[_0x25e0db(0x11d)]();});}async[_0x255515(0xf5)](_0x31b484){const _0x22fa46=_0x255515;let _0x396478=await this[_0x22fa46(0x114)][_0x22fa46(0xbe)](_0x31b484),_0xcc3b03=this[_0x22fa46(0x10b)][_0x22fa46(0xe1)](q,_0x31b484,_0x396478);return _0xcc3b03[_0x22fa46(0xc7)](),this['_entities'][_0x22fa46(0x133)](_0x31b484,_0xcc3b03),_0xcc3b03;}};G=W([U(0x0,_0x407d65),U(0x1,_0x2e8c25(_0x301770)),U(0x2,_0x2e8c25(_0x5525bb))],G);let K=function(_0x25ba5c){const _0x14e866=_0x255515;return _0x25ba5c[_0x14e866(0x11b)]=_0x14e866(0x109),_0x25ba5c[_0x14e866(0x11f)]='idle',_0x25ba5c[_0x14e866(0xb3)]=_0x14e866(0xf9),_0x25ba5c[_0x14e866(0x115)]=_0x14e866(0x12f),_0x25ba5c['PRESENTING']=_0x14e866(0x12b),_0x25ba5c;}({}),q=class extends _0x454ded{get[_0x255515(0xd0)](){const _0x5e429f=_0x255515;return this[_0x5e429f(0xfc)][_0x5e429f(0x10f)]();}constructor(_0x28834e,_0x16146f,_0x5ec53e,_0x42de2a,_0x47e0ef){const _0xb92322=_0x255515;super(),this['_unitID']=_0x28834e,this[_0xb92322(0xa5)]=_0x16146f,this[_0xb92322(0x116)]=_0x5ec53e,this[_0xb92322(0xce)]=_0x42de2a,this[_0xb92322(0xf7)]=_0x47e0ef,V(this,'_status$',new _0x48b8ba(_0xb92322(0xa0))),V(this,_0xb92322(0x118),this[_0xb92322(0xfc)][_0xb92322(0xd4)]()),V(this,_0xb92322(0x132),!0x1),V(this,_0xb92322(0xd1),null),V(this,_0xb92322(0xcc),null);}[_0x255515(0x11d)](){const _0x16b895=_0x255515;var _0x5f009e;(_0x5f009e=this[_0x16b895(0xd1)])==null||_0x5f009e[_0x16b895(0x11d)](),this[_0x16b895(0xfc)]['next']('idle'),this[_0x16b895(0xfc)]['complete']();}[_0x255515(0xd2)](){return this['_status'];}[_0x255515(0xc7)](){const _0x714908=_0x255515;this[_0x714908(0x132)]||(this[_0x714908(0x132)]=!0x0,this[_0x714908(0xa5)]['sessionStatus$'][_0x714908(0xf0)](_0x471262(this[_0x714908(0x10e)]))['subscribe'](_0x156c04=>{const _0x3613c3=_0x714908;switch(_0x156c04){case _0x28a6cc[_0x3613c3(0x11b)]:this['_handleOffline']();break;case _0x28a6cc[_0x3613c3(0xb2)]:this[_0x3613c3(0xa3)]();break;default:}}),this['_collabSession'][_0x714908(0xba)][_0x714908(0xf0)](_0x471262(this[_0x714908(0x10e)]))[_0x714908(0xde)](_0x5c4b1a=>{const _0x582c94=_0x714908;let {eventID:_0x582aac}=_0x5c4b1a;switch(_0x582aac){case _0x24db57[_0x582c94(0x10c)]:this[_0x582c94(0x110)](_0x5c4b1a);break;case _0x24db57[_0x582c94(0xa9)]:this[_0x582c94(0xbf)](_0x5c4b1a);break;case _0x24db57['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x24db57[_0x582c94(0xdc)]:this[_0x582c94(0xd6)](_0x5c4b1a);break;default:}}));}['tryStartPresenting'](){const _0x3d4eda=_0x255515;this[_0x3d4eda(0xa5)][_0x3d4eda(0xb5)]({'eventID':_0x24db57['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3d4eda(0xda)],'userID':this[_0x3d4eda(0xa5)][_0x3d4eda(0x117)]()}},this[_0x3d4eda(0xda)]);}[_0x255515(0xa1)](){const _0x412192=_0x255515;this[_0x412192(0xd0)]==='presenting'&&(this[_0x412192(0xfc)][_0x412192(0xc8)](_0x412192(0xa0)),this['_collabSession'][_0x412192(0xb5)]({'eventID':_0x24db57['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x412192(0xda)]}},this[_0x412192(0xda)]));}[_0x255515(0xe5)](){const _0x40eea6=_0x255515;this['_status']===_0x40eea6(0x12f)&&(this[_0x40eea6(0xfc)][_0x40eea6(0xc8)](_0x40eea6(0xf9)),this['_startFollowing']());}[_0x255515(0xad)](){const _0x37f6b0=_0x255515;this[_0x37f6b0(0xd0)]===_0x37f6b0(0xf9)&&this[_0x37f6b0(0xd3)]();}[_0x255515(0x110)](_0x25e52f){const _0x355eeb=_0x255515;let {presenter:_0x5a9e12}=_0x25e52f[_0x355eeb(0xac)],_0x2d28af=this[_0x355eeb(0xa5)]['getMemberID']();this[_0x355eeb(0xcc)]=_0x5a9e12,_0x5a9e12===_0x2d28af?(this[_0x355eeb(0xd3)](),this[_0x355eeb(0xc6)]()):this[_0x355eeb(0xd0)]!==_0x355eeb(0x12f)&&(this[_0x355eeb(0xb1)](),this['_startFollowing']());}['_fetchOperations'](){const _0x22e1e2=_0x255515;let _0x2e21d9={'eventID':_0x24db57[_0x22e1e2(0x102)]};this[_0x22e1e2(0xa5)][_0x22e1e2(0xb5)](_0x2e21d9,this[_0x22e1e2(0xda)]);}[_0x255515(0xca)](){const _0x4174b7=_0x255515;this[_0x4174b7(0xcc)]=null,this[_0x4174b7(0xd0)]!==_0x4174b7(0x12b)&&this[_0x4174b7(0xf8)]();}['_handleNewChangeSets'](_0x688b52){const _0x2e2b8f=_0x255515;if(this[_0x2e2b8f(0xd0)]===_0x2e2b8f(0xf9)&&this[_0x2e2b8f(0xcc)]===_0x688b52[_0x2e2b8f(0xac)][_0x2e2b8f(0xd7)]){let _0x481b52=_0x1198e4(_0x688b52['data'])[_0x2e2b8f(0x105)]['reverse']()[_0x2e2b8f(0x119)](_0x1c9f74=>_0x1c9f74['id']===_0x417356['id']);if(_0x481b52){let _0x57b4d0=_0x481b52['params'][_0x2e2b8f(0xb0)],_0x5b7178=_0x481b52[_0x2e2b8f(0x120)]['sheet']['id'];setTimeout(()=>{const _0x3ba644=_0x2e2b8f;this[_0x3ba644(0xf7)][_0x3ba644(0xb6)](_0x825d3['id'],{'unitId':_0x57b4d0,'subUnitId':_0x5b7178},{'fromCollab':!0x0});});}}}[_0x255515(0xc6)](){const _0x4da664=_0x255515;var _0x37633b;(_0x37633b=this['_commandDisposable'])==null||_0x37633b['dispose'](),this[_0x4da664(0xfc)][_0x4da664(0xc8)](_0x4da664(0x12b));let _0x20f5fa=new Map(),_0x12e6ac=this[_0x4da664(0xd1)]=new _0xf927e1();_0x12e6ac[_0x4da664(0xf3)](_0x7b8648(()=>{const _0x478f78=_0x4da664;_0x20f5fa[_0x478f78(0xa4)](({subject:_0x51b928,subscription:_0x3fd189})=>{const _0x1b5d1a=_0x478f78;_0x3fd189[_0x1b5d1a(0x100)](),_0x51b928[_0x1b5d1a(0xee)]();}),_0x20f5fa[_0x478f78(0xf6)]();})),_0x12e6ac[_0x4da664(0xf3)](this[_0x4da664(0xf7)][_0x4da664(0xd9)](_0x5d10f7=>{const _0x4973fb=_0x4da664;if(_0x5d10f7[_0x4973fb(0xbc)]!==_0xbc0567['OPERATION']||!this[_0x4973fb(0xce)][_0x4973fb(0x122)](_0x5d10f7['id']))return;let {id:_0x429962}=_0x5d10f7,_0x29ec7f;if(_0x20f5fa[_0x4973fb(0xe3)](_0x429962))_0x29ec7f=_0x20f5fa[_0x4973fb(0xa8)](_0x429962)[_0x4973fb(0xc9)];else{var _0x2e56cc;_0x29ec7f=new _0x2a6741();let _0x5b9c5c=_0x29ec7f['pipe'](_0x464a34((_0x2e56cc=this['_configService'][_0x4973fb(0xe9)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2e56cc,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4973fb(0xde)](_0x4c8739=>{const _0x8c6a66=_0x4973fb;this['_collabSession']['send']({'eventID':_0x24db57[_0x8c6a66(0xa9)],'data':{'unitID':this[_0x8c6a66(0xda)],'operations':{[_0x4c8739['id']]:{'id':_0x4c8739['id'],'params':JSON[_0x8c6a66(0xb9)](_0x4c8739['params'])}}}},this[_0x8c6a66(0xda)]);});_0x20f5fa[_0x4973fb(0x133)](_0x429962,{'subject':_0x29ec7f,'subscription':_0x5b9c5c});}_0x29ec7f[_0x4973fb(0xc8)](_0x5d10f7);})),this[_0x4da664(0xce)]['getInitialStates'](this[_0x4da664(0xda)])['forEach'](_0x41af15=>this[_0x4da664(0xa5)][_0x4da664(0xb5)]({'eventID':_0x24db57[_0x4da664(0xa9)],'data':{'unitID':this[_0x4da664(0xda)],'operations':{[_0x41af15['id']]:{'id':_0x41af15['id'],'params':JSON[_0x4da664(0xb9)](_0x41af15[_0x4da664(0x120)])}}}},this[_0x4da664(0xda)]));}['_stopPresenting'](){const _0x5b2d80=_0x255515;var _0x59a1f1;this[_0x5b2d80(0xfc)][_0x5b2d80(0xc8)](_0x5b2d80(0xa0)),(_0x59a1f1=this[_0x5b2d80(0xd1)])==null||_0x59a1f1['dispose'](),this[_0x5b2d80(0xd1)]=null;}[_0x255515(0xfa)](){const _0x5a5541=_0x255515;var _0x212515;(_0x212515=this[_0x5a5541(0xd1)])==null||_0x212515[_0x5a5541(0x11d)](),this[_0x5a5541(0xfc)]['next'](_0x5a5541(0xf9));}[_0x255515(0xf8)](){const _0x4a5581=_0x255515;var _0x3a9caf;this[_0x4a5581(0xfc)][_0x4a5581(0xc8)](_0x4a5581(0xa0)),(_0x3a9caf=this[_0x4a5581(0xd1)])==null||_0x3a9caf[_0x4a5581(0x11d)](),this[_0x4a5581(0xd1)]=null;}[_0x255515(0xd3)](){const _0x2bd40b=_0x255515;var _0x5da691;this[_0x2bd40b(0xfc)][_0x2bd40b(0xc8)](_0x2bd40b(0x12f)),(_0x5da691=this['_commandDisposable'])==null||_0x5da691[_0x2bd40b(0x11d)]();}['_handleOperation'](_0x5b2f26){const _0x3ac595=_0x255515;if([_0x3ac595(0x12b),_0x3ac595(0x12f),_0x3ac595(0x109)][_0x3ac595(0x107)](this[_0x3ac595(0xd0)])||!_0x5b2f26[_0x3ac595(0xac)][_0x3ac595(0xb8)]||_0x5b2f26['data'][_0x3ac595(0xb8)]===this['_collabSession'][_0x3ac595(0x117)]())return;this[_0x3ac595(0xd0)]===_0x3ac595(0xa0)&&this['_startFollowing']();let _0x8f2d5b=_0x5b2f26[_0x3ac595(0xac)][_0x3ac595(0xe0)];Object[_0x3ac595(0xfb)](_0x8f2d5b)[_0x3ac595(0xa4)](_0x2e6295=>{const _0x2d8e1c=_0x3ac595;this[_0x2d8e1c(0xf7)][_0x2d8e1c(0xb6)](_0x2e6295['id'],_0x2e6295[_0x2d8e1c(0x120)]?JSON[_0x2d8e1c(0xe7)](_0x2e6295[_0x2d8e1c(0x120)]):null,{'fromCollab':!0x0});});}[_0x255515(0x123)](){const _0x5856f9=_0x255515;var _0x1857a1;this[_0x5856f9(0xfc)][_0x5856f9(0xc8)](_0x5856f9(0x109)),(_0x1857a1=this['_commandDisposable'])==null||_0x1857a1[_0x5856f9(0x11d)]();}[_0x255515(0xa3)](){const _0x42c8c0=_0x255515;this[_0x42c8c0(0xfc)][_0x42c8c0(0xc8)](_0x42c8c0(0xa0)),this[_0x42c8c0(0x113)]();}};q=W([U(0x2,_0x3ceecb),U(0x3,_0x2e8c25(H)),U(0x4,_0x36e78)],q);function J(){const _0x5055ee=_0x255515;let _0x30d7c1=_0x49f746(G),_0x507ea0=_0x49f746(_0x407d65),_0x1d3427=_0x3fc517(()=>_0x507ea0[_0x5055ee(0x12c)](_0x104030[_0x5055ee(0xf2)]),void 0x0,!0x1,[]),[_0x3d81fb,_0x431784]=_0x54d631(null),[_0x28789c,_0x218f96]=_0x54d631(_0x5055ee(0xa0)),_0x51c5c6=_0xf04e19(null);return _0x4e5c5e(()=>(_0x1d3427&&_0x30d7c1['getLiveShareCoordinator'](_0x1d3427['getUnitId']())[_0x5055ee(0xbd)](_0x17b76b=>{const _0x1c35f3=_0x5055ee;_0x431784(_0x17b76b),_0x51c5c6[_0x1c35f3(0xb4)]=_0x17b76b['status$'][_0x1c35f3(0xde)](_0x438e4e=>{_0x218f96(_0x438e4e);});}),()=>{const _0x133e0b=_0x5055ee;var _0x263f78;(_0x263f78=_0x51c5c6['current'])==null||_0x263f78[_0x133e0b(0x100)](),_0x51c5c6[_0x133e0b(0xb4)]=null;}),[_0x1d3427,_0x30d7c1]),_0x3d81fb?_0x2b78ed(_0x132052,{'align':_0x5055ee(0x130),'disabled':_0x28789c==='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':_0x2b78ed(se,{'status':_0x28789c,'coordinator':_0x3d81fb}),'children':_0x2b78ed('button',{'className':_0x43282b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x28789c==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x28789c!==_0x5055ee(0x109)}),'type':'button','children':_0x2b78ed(_0x501a81,{})})}):null;}function se(_0x19b886){const _0x263110=_0x255515;let {status:_0xf694cc,coordinator:_0x162ebe}=_0x19b886;switch(_0xf694cc){case _0x263110(0xa0):return _0x2b78ed(ce,{'coordinator':_0x162ebe});case'following':return _0x2b78ed(le,{'coordinator':_0x162ebe});case'not-following':return _0x2b78ed(ue,{'coordinator':_0x162ebe});case _0x263110(0x109):return _0x2b78ed(de,{});case _0x263110(0x12b):return _0x2b78ed(Y,{'coordinator':_0x162ebe});default:return null;}}function ce(_0x15ea92){const _0x553815=_0x255515;let {coordinator:_0x61892b}=_0x15ea92;return _0x46c0ab(_0x33c60e,{'children':[_0x2b78ed(_0x553815(0xdb),{'className':_0x553815(0xc5),'children':_0x553815(0xf1)}),_0x2b78ed(_0x1d87b5,{'onClick':()=>_0x61892b[_0x553815(0xff)](),'children':_0x553815(0xc4)})]});}function le(_0xf7c07d){const _0x8ce120=_0x255515;let {coordinator:_0x44ab45}=_0xf7c07d;return _0x46c0ab(_0x33c60e,{'children':[_0x2b78ed(_0x8ce120(0xdb),{'className':_0x8ce120(0xc5),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x2b78ed(_0x1d87b5,{'onClick':()=>_0x44ab45[_0x8ce120(0xad)](),'children':_0x8ce120(0xaa)})]});}function ue(_0x4bd266){const _0xc09b4d=_0x255515;let {coordinator:_0x1bd947}=_0x4bd266;return _0x46c0ab(_0x33c60e,{'children':[_0x2b78ed(_0xc09b4d(0xdb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc09b4d(0x11a)}),_0x2b78ed(_0x1d87b5,{'variant':_0xc09b4d(0x103),'onClick':()=>_0x1bd947[_0xc09b4d(0xe5)](),'children':_0xc09b4d(0xcf)})]});}function Y(_0x43686c){const _0x5420ba=_0x255515;let {coordinator:_0x155788}=_0x43686c;return _0x46c0ab(_0x33c60e,{'children':[_0x2b78ed('div',{'className':_0x5420ba(0xc5),'children':_0x5420ba(0xd5)}),_0x2b78ed(_0x1d87b5,{'variant':_0x5420ba(0x12a),'onClick':()=>_0x155788[_0x5420ba(0xa1)](),'children':_0x5420ba(0xc1)})]});}function de(){return _0x2b78ed(_0x33c60e,{'children':'You\x27are\x20offline.'});}let X=class extends _0x516cea{constructor(_0x1dea67,_0x3de4de){super(),this['_injector']=_0x1dea67,this['_uiPartsService']=_0x3de4de,this['_mountLiveShare']();}[_0x255515(0xb7)](){const _0x70f274=_0x255515;this[_0x70f274(0x121)](this[_0x70f274(0xa6)][_0x70f274(0x12e)](_0xb35ac5['HEADER_MENU'],()=>_0x2af7a6(J,this[_0x70f274(0x10b)])));}};X=W([U(0x0,_0x2e8c25(_0x301770)),U(0x1,_0x396b3b)],X);var fe=_0x255515(0xe2),pe='1.0.0-alpha.2';const Z={};let Q=class extends _0x516cea{constructor(_0x460e31){const _0x314636=_0x255515;super(),this[_0x314636(0xce)]=_0x460e31,this[_0x314636(0x132)]();}[_0x255515(0x132)](){const _0x5bfe56=_0x255515;[_0x35ad51['id'],_0x4eaff8['id'],_0x825d3['id']][_0x5bfe56(0xa4)](_0x2f1557=>{const _0x174bcd=_0x5bfe56;this[_0x174bcd(0x121)](this[_0x174bcd(0xce)][_0x174bcd(0x104)](_0x2f1557));});}};Q=W([U(0x0,_0x2e8c25(H))],Q);let $=class extends _0x22dadf{constructor(_0x213cf8=Z,_0xe6139e,_0x2b2dd5){const _0x48b490=_0x255515;super(),this['_config']=_0x213cf8,this['_injector']=_0xe6139e,this[_0x48b490(0x116)]=_0x2b2dd5;let {..._0x35f72a}=_0x22904a({},Z,this['_config']);this[_0x48b490(0x116)][_0x48b490(0xcd)](_0x48b490(0xe8),_0x35f72a);}[_0x255515(0xc2)](){const _0x3e7d37=_0x255515;_0x4c4ef5(this['_injector'],_0x49a17a([[H],[G],[Q],[X]],this[_0x3e7d37(0x129)][_0x3e7d37(0xe6)])),_0x2efcc9(this['_injector'],[[Q]]);}[_0x255515(0xa7)](){const _0x73335b=_0x255515;_0x2efcc9(this[_0x73335b(0x10b)],[[X]]);}};V($,'type',_0x104030[_0x255515(0x11c)]),V($,_0x255515(0xab),_0x255515(0x134)),V($,_0x255515(0x125),fe),V($,'version',pe),$=W([_0x51ca48(_0x57b419),U(0x1,_0x2e8c25(_0x301770)),U(0x2,_0x3ceecb)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x12d49e=_0x56aa;(function(_0x5af5c6,_0x361e7e){const _0x424236=_0x56aa,_0xbb81b1=_0x5af5c6();while(!![]){try{const _0xff31b9=-parseInt(_0x424236(0x145))/0x1*(-parseInt(_0x424236(0x170))/0x2)+parseInt(_0x424236(0x104))/0x3*(-parseInt(_0x424236(0x17d))/0x4)+parseInt(_0x424236(0x125))/0x5*(parseInt(_0x424236(0x162))/0x6)+-parseInt(_0x424236(0x16e))/0x7+-parseInt(_0x424236(0x124))/0x8*(parseInt(_0x424236(0x10f))/0x9)+-parseInt(_0x424236(0x133))/0xa*(parseInt(_0x424236(0xeb))/0xb)+parseInt(_0x424236(0x135))/0xc*(parseInt(_0x424236(0x10b))/0xd);if(_0xff31b9===_0x361e7e)break;else _0xbb81b1['push'](_0xbb81b1['shift']());}catch(_0x21151d){_0xbb81b1['push'](_0xbb81b1['shift']());}}}(_0x29ad,0xdd24a));import{CollaborationEvent as _0x2dfd60,parseProtocolChangeset as _0x47a9e1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32c2a9,SessionStatus as _0x52fe0b,UniverCollaborationClientPlugin as _0x21f3e5}from'@univerjs-pro/collaboration-client';import{CommandType as _0x27732d,DependentOn as _0x1b6da4,Disposable as _0x4659c0,DisposableCollection as _0x58bd8e,ICommandService as _0x41f7a1,IConfigService as _0x348818,IUniverInstanceService as _0x1eddd0,Inject as _0x5247da,Injector as _0x408402,Plugin as _0x1502e3,RxDisposable as _0x5ca59e,UniverInstanceType as _0x14abf6,merge as _0x2dd70c,mergeOverrideWithDependencies as _0x18178b,registerDependencies as _0x59bf00,toDisposable as _0x2f05ef,touchDependencies as _0xa55cab}from'@univerjs/core';import{InsertSheetMutation as _0xa910e4,SetWorksheetActiveOperation as _0x58eadc}from'@univerjs/sheets';import{BehaviorSubject as _0x5700c9,Subject as _0x10b404}from'rxjs';import{takeUntil as _0x2af6df,throttleTime as _0x47be7d}from'rxjs/operators';import{SetScrollOperation as _0x548c90,SetZoomRatioOperation as _0x3d3ee9}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x22834b,IUIPartsService as _0x153cdd,connectInjector as _0x234790,useDependency as _0x2ca01c,useObservable as _0xdec5bf}from'@univerjs/ui';import{Button as _0x1fc5f3,Dropdown as _0x5d4586,clsx as _0x256ea0}from'@univerjs/design';import{LiveShareIcon as _0x4b5bb8}from'@univerjs/icons';import{useEffect as _0x590366,useRef as _0x2077b7,useState as _0x4d0fce}from'react';import{Fragment as _0x1b094c,jsx as _0x2e1826,jsxs as _0x53139}from'react/jsx-runtime';function z(_0x1df1a6){'@babel/helpers - typeof';const _0x596588=_0x56aa;return z=typeof Symbol==_0x596588(0x164)&&typeof Symbol[_0x596588(0x160)]=='symbol'?function(_0x500e9c){return typeof _0x500e9c;}:function(_0x49742b){const _0x6068da=_0x596588;return _0x49742b&&typeof Symbol==_0x6068da(0x164)&&_0x49742b[_0x6068da(0x13a)]===Symbol&&_0x49742b!==Symbol[_0x6068da(0x116)]?'symbol':typeof _0x49742b;},z(_0x1df1a6);}function B(_0x4c3a13,_0x4ccb3f){const _0x74e8fc=_0x56aa;if(z(_0x4c3a13)!=_0x74e8fc(0x176)||!_0x4c3a13)return _0x4c3a13;var _0x1fbcc9=_0x4c3a13[Symbol[_0x74e8fc(0x15f)]];if(_0x1fbcc9!==void 0x0){var _0x5d2630=_0x1fbcc9['call'](_0x4c3a13,_0x4ccb3f||_0x74e8fc(0x101));if(z(_0x5d2630)!='object')return _0x5d2630;throw TypeError(_0x74e8fc(0x11e));}return(_0x4ccb3f===_0x74e8fc(0x16b)?String:Number)(_0x4c3a13);}function V(_0x188519){const _0x542c52=_0x56aa;var _0xcd177e=B(_0x188519,_0x542c52(0x16b));return z(_0xcd177e)==_0x542c52(0x166)?_0xcd177e:_0xcd177e+'';}function H(_0x462b49,_0x603c26,_0x126fbd){const _0x2e6fad=_0x56aa;return(_0x603c26=V(_0x603c26))in _0x462b49?Object[_0x2e6fad(0xf4)](_0x462b49,_0x603c26,{'value':_0x126fbd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x462b49[_0x603c26]=_0x126fbd,_0x462b49;}var U=class extends _0x4659c0{constructor(..._0x3fd6f5){super(..._0x3fd6f5),H(this,'_sharedOperations',new Set()),H(this,'_reporters',new Set());}['registerSharedOperation'](_0x226e08){const _0x1a530b=_0x56aa;return this[_0x1a530b(0xfd)][_0x1a530b(0x138)](_0x226e08),_0x2f05ef(()=>this[_0x1a530b(0xfd)][_0x1a530b(0x120)](_0x226e08));}[_0x12d49e(0x169)](_0x116b99){const _0x13bce4=_0x12d49e;return this[_0x13bce4(0x15a)][_0x13bce4(0x138)](_0x116b99),_0x2f05ef(()=>this[_0x13bce4(0x15a)][_0x13bce4(0x120)](_0x116b99));}[_0x12d49e(0x158)](_0xe56dcf){const _0xe5f948=_0x12d49e;return this['_sharedOperations'][_0xe5f948(0x118)](_0xe56dcf);}[_0x12d49e(0x163)](_0x59edf5){const _0x124cc8=_0x12d49e;return Array[_0x124cc8(0x10d)](this[_0x124cc8(0x15a)])[_0x124cc8(0x115)](_0x1aa362=>_0x1aa362(_0x59edf5));}};function W(_0x36d2c6,_0x467d96){return function(_0x559162,_0x4f0bbf){_0x467d96(_0x559162,_0x4f0bbf,_0x36d2c6);};}function G(_0x40f686,_0x211469,_0x2eefbb,_0x33aa77){const _0x2957ac=_0x12d49e;var _0x9179eb=arguments[_0x2957ac(0x129)],_0x271f4a=_0x9179eb<0x3?_0x211469:_0x33aa77===null?_0x33aa77=Object[_0x2957ac(0x11f)](_0x211469,_0x2eefbb):_0x33aa77,_0xf16eb5;if(typeof Reflect=='object'&&typeof Reflect[_0x2957ac(0x117)]==_0x2957ac(0x164))_0x271f4a=Reflect[_0x2957ac(0x117)](_0x40f686,_0x211469,_0x2eefbb,_0x33aa77);else{for(var _0x317cc2=_0x40f686['length']-0x1;_0x317cc2>=0x0;_0x317cc2--)(_0xf16eb5=_0x40f686[_0x317cc2])&&(_0x271f4a=(_0x9179eb<0x3?_0xf16eb5(_0x271f4a):_0x9179eb>0x3?_0xf16eb5(_0x211469,_0x2eefbb,_0x271f4a):_0xf16eb5(_0x211469,_0x2eefbb))||_0x271f4a);}return _0x9179eb>0x3&&_0x271f4a&&Object[_0x2957ac(0xf4)](_0x211469,_0x2eefbb,_0x271f4a),_0x271f4a;}let K=class extends _0x5ca59e{constructor(_0x4917ee,_0x4db5b7,_0x3c3e1e){const _0x5d489d=_0x12d49e;super(),this[_0x5d489d(0x181)]=_0x4917ee,this[_0x5d489d(0x136)]=_0x4db5b7,this[_0x5d489d(0x121)]=_0x3c3e1e,H(this,_0x5d489d(0x132),new Map()),this['_init']();}async[_0x12d49e(0xfe)](_0x47b956){const _0x261a4b=_0x12d49e;return this[_0x261a4b(0x132)]['has'](_0x47b956)||await this[_0x261a4b(0x137)](_0x47b956),this['_entities']['get'](_0x47b956);}['getLiveShareCoordinatorSync'](_0x1ec7d7){const _0x7a971e=_0x12d49e;var _0x328cc7;return(_0x328cc7=this[_0x7a971e(0x132)]['get'](_0x1ec7d7))==null?null:_0x328cc7;}[_0x12d49e(0x154)](){const _0x5b2aba=_0x12d49e;this[_0x5b2aba(0x181)][_0x5b2aba(0x12c)](_0x14abf6[_0x5b2aba(0x157)])[_0x5b2aba(0x13c)](_0x2af6df(this[_0x5b2aba(0x14f)]))['subscribe'](async _0x4f66d7=>{const _0x359d4f=_0x5b2aba;let _0x83bdd8=_0x4f66d7[_0x359d4f(0x13f)][_0x359d4f(0x112)]();this[_0x359d4f(0x132)][_0x359d4f(0x118)](_0x83bdd8)||this[_0x359d4f(0x137)](_0x83bdd8);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x14abf6[_0x5b2aba(0x157)])[_0x5b2aba(0x13c)](_0x2af6df(this['dispose$']))[_0x5b2aba(0x127)](_0x409989=>{const _0x18122b=_0x5b2aba;let _0x90b7b6=_0x409989[_0x18122b(0x112)](),_0x3fca5c=this[_0x18122b(0x132)][_0x18122b(0x16f)](_0x90b7b6);_0x3fca5c==null||_0x3fca5c[_0x18122b(0x100)]();});}async[_0x12d49e(0x137)](_0x43f6b8){const _0x8cdb11=_0x12d49e;let _0x8f0051=await this[_0x8cdb11(0x121)][_0x8cdb11(0x102)](_0x43f6b8),_0x20947e=this[_0x8cdb11(0x136)]['createInstance'](J,_0x43f6b8,_0x8f0051);return _0x20947e[_0x8cdb11(0xfb)](),this[_0x8cdb11(0x132)][_0x8cdb11(0x109)](_0x43f6b8,_0x20947e),_0x20947e;}};K=G([W(0x0,_0x1eddd0),W(0x1,_0x5247da(_0x408402)),W(0x2,_0x5247da(_0x32c2a9))],K);let q=function(_0x455e5f){const _0x405d6c=_0x12d49e;return _0x455e5f[_0x405d6c(0x142)]=_0x405d6c(0x150),_0x455e5f['IDLE']=_0x405d6c(0x141),_0x455e5f[_0x405d6c(0x108)]=_0x405d6c(0xf2),_0x455e5f[_0x405d6c(0x11d)]=_0x405d6c(0x10c),_0x455e5f['PRESENTING']=_0x405d6c(0xf5),_0x455e5f;}({}),J=class extends _0x5ca59e{get['_status'](){const _0x201835=_0x12d49e;return this[_0x201835(0x107)][_0x201835(0x178)]();}constructor(_0x598eb4,_0x37d206,_0x4ca3b5,_0x69c79,_0x14f351){const _0x556c50=_0x12d49e;super(),this['_unitID']=_0x598eb4,this['_collabSession']=_0x37d206,this[_0x556c50(0x10e)]=_0x4ca3b5,this[_0x556c50(0x16c)]=_0x69c79,this['_commandService']=_0x14f351,H(this,_0x556c50(0x107),new _0x5700c9(_0x556c50(0x141))),H(this,_0x556c50(0x113),this['_status$'][_0x556c50(0x12a)]()),H(this,_0x556c50(0x154),!0x1),H(this,_0x556c50(0xed),null),H(this,_0x556c50(0xfc),null);}[_0x12d49e(0x100)](){const _0x5a1d5d=_0x12d49e;var _0x5ad786;(_0x5ad786=this[_0x5a1d5d(0xed)])==null||_0x5ad786[_0x5a1d5d(0x100)](),this[_0x5a1d5d(0x107)][_0x5a1d5d(0xf7)](_0x5a1d5d(0x141)),this['_status$'][_0x5a1d5d(0x148)]();}['getStatus'](){const _0x4ed593=_0x12d49e;return this[_0x4ed593(0xfa)];}[_0x12d49e(0xfb)](){const _0x186bd7=_0x12d49e;this[_0x186bd7(0x154)]||(this['_init']=!0x0,this[_0x186bd7(0x13d)][_0x186bd7(0x14e)][_0x186bd7(0x13c)](_0x2af6df(this[_0x186bd7(0x14f)]))[_0x186bd7(0x127)](_0x4650e9=>{const _0x38beda=_0x186bd7;switch(_0x4650e9){case _0x52fe0b['OFFLINE']:this[_0x38beda(0xf0)]();break;case _0x52fe0b[_0x38beda(0x14c)]:this['_handleOnline']();break;default:}}),this[_0x186bd7(0x13d)][_0x186bd7(0x15e)][_0x186bd7(0x13c)](_0x2af6df(this[_0x186bd7(0x14f)]))[_0x186bd7(0x127)](_0x24618d=>{const _0x1afb64=_0x186bd7;let {eventID:_0x2bca3d}=_0x24618d;switch(_0x2bca3d){case _0x2dfd60[_0x1afb64(0x149)]:this[_0x1afb64(0xf9)](_0x24618d);break;case _0x2dfd60[_0x1afb64(0xf8)]:this[_0x1afb64(0x126)](_0x24618d);break;case _0x2dfd60[_0x1afb64(0x11a)]:this['_handleTerminate']();break;case _0x2dfd60[_0x1afb64(0x111)]:this[_0x1afb64(0x13e)](_0x24618d);break;default:}}));}[_0x12d49e(0x179)](){const _0x8b7b9e=_0x12d49e;this['_collabSession'][_0x8b7b9e(0x155)]({'eventID':_0x2dfd60[_0x8b7b9e(0x140)],'data':{'unitID':this[_0x8b7b9e(0x14d)],'userID':this[_0x8b7b9e(0x13d)][_0x8b7b9e(0x143)]()}},this[_0x8b7b9e(0x14d)]);}['stopPresenting'](){const _0x10cd91=_0x12d49e;this['_status']===_0x10cd91(0xf5)&&(this[_0x10cd91(0x107)][_0x10cd91(0xf7)](_0x10cd91(0x141)),this[_0x10cd91(0x13d)][_0x10cd91(0x155)]({'eventID':_0x2dfd60[_0x10cd91(0x11a)],'data':{'unitID':this[_0x10cd91(0x14d)]}},this[_0x10cd91(0x14d)]));}[_0x12d49e(0x180)](){const _0x242004=_0x12d49e;this[_0x242004(0xfa)]==='not-following'&&(this[_0x242004(0x107)]['next'](_0x242004(0xf2)),this[_0x242004(0x123)]());}['stopFollowing'](){const _0x326dd5=_0x12d49e;this[_0x326dd5(0xfa)]===_0x326dd5(0xf2)&&this['_stopFollowing']();}['_handleNewHost'](_0x374469){const _0x162050=_0x12d49e;let {presenter:_0x5df368}=_0x374469[_0x162050(0xef)],_0x50cb3d=this['_collabSession'][_0x162050(0x143)]();this[_0x162050(0xfc)]=_0x5df368,_0x5df368===_0x50cb3d?(this['_stopFollowing'](),this[_0x162050(0x152)]()):this[_0x162050(0xfa)]!=='not-following'&&(this['_stopPresenting'](),this[_0x162050(0x123)]());}[_0x12d49e(0x165)](){const _0x28b5f8=_0x12d49e;let _0x433c96={'eventID':_0x2dfd60['LIVESHARE_FETCH_OPERATIONS']};this[_0x28b5f8(0x13d)][_0x28b5f8(0x155)](_0x433c96,this[_0x28b5f8(0x14d)]);}[_0x12d49e(0x167)](){const _0x4ce878=_0x12d49e;this[_0x4ce878(0xfc)]=null,this[_0x4ce878(0xfa)]!==_0x4ce878(0xf5)&&this[_0x4ce878(0x15b)]();}['_handleNewChangeSets'](_0x4c4dc1){const _0x312b90=_0x12d49e;if(this['_status']===_0x312b90(0xf2)&&this[_0x312b90(0xfc)]===_0x4c4dc1['data'][_0x312b90(0x182)]){let _0x39e6d4=_0x47a9e1(_0x4c4dc1[_0x312b90(0xef)])[_0x312b90(0x105)][_0x312b90(0x151)]()[_0x312b90(0x173)](_0x1df189=>_0x1df189['id']===_0xa910e4['id']);if(_0x39e6d4){let _0x15f301=_0x39e6d4[_0x312b90(0x17c)][_0x312b90(0x134)],_0x55d94a=_0x39e6d4[_0x312b90(0x17c)][_0x312b90(0x174)]['id'];setTimeout(()=>{const _0x32f359=_0x312b90;this[_0x32f359(0xf3)]['executeCommand'](_0x58eadc['id'],{'unitId':_0x15f301,'subUnitId':_0x55d94a},{'fromCollab':!0x0});});}}}[_0x12d49e(0x152)](){const _0x10346b=_0x12d49e;var _0x24617d;(_0x24617d=this[_0x10346b(0xed)])==null||_0x24617d[_0x10346b(0x100)](),this[_0x10346b(0x107)][_0x10346b(0xf7)]('presenting');let _0x18bdf3=new Map(),_0x4d6144=this[_0x10346b(0xed)]=new _0x58bd8e();_0x4d6144['add'](_0x2f05ef(()=>{const _0x1807d0=_0x10346b;_0x18bdf3[_0x1807d0(0x10a)](({subject:_0xe9fd2b,subscription:_0x588410})=>{const _0x5d9a11=_0x1807d0;_0x588410[_0x5d9a11(0x17e)](),_0xe9fd2b['complete']();}),_0x18bdf3[_0x1807d0(0x11b)]();})),_0x4d6144[_0x10346b(0x138)](this[_0x10346b(0xf3)][_0x10346b(0x106)](_0x5e4287=>{const _0x4788fd=_0x10346b;if(_0x5e4287[_0x4788fd(0x131)]!==_0x27732d['OPERATION']||!this[_0x4788fd(0x16c)][_0x4788fd(0x158)](_0x5e4287['id']))return;let {id:_0x4f5fbb}=_0x5e4287,_0x31aa58;if(_0x18bdf3[_0x4788fd(0x118)](_0x4f5fbb))_0x31aa58=_0x18bdf3[_0x4788fd(0x16f)](_0x4f5fbb)[_0x4788fd(0x110)];else{var _0x30f24b;_0x31aa58=new _0x10b404();let _0x99010d=_0x31aa58[_0x4788fd(0x13c)](_0x47be7d((_0x30f24b=this['_configService'][_0x4788fd(0x139)](_0x4788fd(0x128)))==null?0xc8:_0x30f24b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4788fd(0x127)](_0x2926ed=>{const _0x58ad0c=_0x4788fd;this['_collabSession']['send']({'eventID':_0x2dfd60['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x58ad0c(0x14d)],'operations':{[_0x2926ed['id']]:{'id':_0x2926ed['id'],'params':JSON[_0x58ad0c(0x11c)](_0x2926ed['params'])}}}},this[_0x58ad0c(0x14d)]);});_0x18bdf3[_0x4788fd(0x109)](_0x4f5fbb,{'subject':_0x31aa58,'subscription':_0x99010d});}_0x31aa58[_0x4788fd(0xf7)](_0x5e4287);})),this[_0x10346b(0x16c)][_0x10346b(0x163)](this[_0x10346b(0x14d)])[_0x10346b(0x10a)](_0x1fb644=>this['_collabSession'][_0x10346b(0x155)]({'eventID':_0x2dfd60['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x10346b(0x14d)],'operations':{[_0x1fb644['id']]:{'id':_0x1fb644['id'],'params':JSON[_0x10346b(0x11c)](_0x1fb644[_0x10346b(0x17c)])}}}},this[_0x10346b(0x14d)]));}[_0x12d49e(0x15d)](){const _0x32ae5d=_0x12d49e;var _0x804031;this[_0x32ae5d(0x107)][_0x32ae5d(0xf7)](_0x32ae5d(0x141)),(_0x804031=this[_0x32ae5d(0xed)])==null||_0x804031[_0x32ae5d(0x100)](),this['_commandDisposable']=null;}[_0x12d49e(0x123)](){const _0x2be806=_0x12d49e;var _0x44643d;(_0x44643d=this[_0x2be806(0xed)])==null||_0x44643d[_0x2be806(0x100)](),this[_0x2be806(0x107)][_0x2be806(0xf7)]('following');}[_0x12d49e(0x15b)](){const _0xd265d0=_0x12d49e;var _0xf9bca3;this[_0xd265d0(0x107)][_0xd265d0(0xf7)](_0xd265d0(0x141)),(_0xf9bca3=this[_0xd265d0(0xed)])==null||_0xf9bca3[_0xd265d0(0x100)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x4ea4f8=_0x12d49e;var _0x115742;this[_0x4ea4f8(0x107)][_0x4ea4f8(0xf7)](_0x4ea4f8(0x10c)),(_0x115742=this[_0x4ea4f8(0xed)])==null||_0x115742[_0x4ea4f8(0x100)]();}[_0x12d49e(0x126)](_0x534275){const _0x47e430=_0x12d49e;if([_0x47e430(0xf5),'not-following','offline'][_0x47e430(0x161)](this[_0x47e430(0xfa)])||!_0x534275[_0x47e430(0xef)]['presenter']||_0x534275[_0x47e430(0xef)][_0x47e430(0x159)]===this['_collabSession'][_0x47e430(0x143)]())return;this['_status']==='idle'&&this[_0x47e430(0x123)]();let _0x3e4257=_0x534275[_0x47e430(0xef)][_0x47e430(0x114)];Object[_0x47e430(0xec)](_0x3e4257)[_0x47e430(0x10a)](_0x223354=>{const _0x50eb01=_0x47e430;this[_0x50eb01(0xf3)][_0x50eb01(0x15c)](_0x223354['id'],_0x223354[_0x50eb01(0x17c)]?JSON[_0x50eb01(0x14b)](_0x223354[_0x50eb01(0x17c)]):null,{'fromCollab':!0x0});});}[_0x12d49e(0xf0)](){const _0x46d52e=_0x12d49e;var _0x3c91b0;this[_0x46d52e(0x107)]['next'](_0x46d52e(0x150)),(_0x3c91b0=this[_0x46d52e(0xed)])==null||_0x3c91b0[_0x46d52e(0x100)]();}[_0x12d49e(0x156)](){const _0x5ccdbe=_0x12d49e;this[_0x5ccdbe(0x107)]['next']('idle'),this['_fetchOperations']();}};J=G([W(0x2,_0x348818),W(0x3,_0x5247da(U)),W(0x4,_0x41f7a1)],J);var oe=_0x12d49e(0x16a),se='1.0.0-alpha.3';const Y={};let X=class extends _0x4659c0{constructor(_0xcd1412){const _0x9fcf53=_0x12d49e;super(),this[_0x9fcf53(0x16c)]=_0xcd1412,this[_0x9fcf53(0x154)]();}[_0x12d49e(0x154)](){const _0x5e33bd=_0x12d49e;[_0x3d3ee9['id'],_0x548c90['id'],_0x58eadc['id']][_0x5e33bd(0x10a)](_0x5b6e8c=>{const _0x5bd46e=_0x5e33bd;this['disposeWithMe'](this['_liveShareService'][_0x5bd46e(0x12d)](_0x5b6e8c));});}};X=G([W(0x0,_0x5247da(U))],X);function ce(){const _0x40248c=_0x12d49e;let _0x3fbc85=_0x2ca01c(K),_0x50d4d0=_0x2ca01c(_0x1eddd0),_0x4ac9d3=_0xdec5bf(()=>_0x50d4d0[_0x40248c(0x168)](_0x14abf6[_0x40248c(0x157)]),void 0x0,!0x1,[]),[_0x42268e,_0x17c1d2]=_0x4d0fce(null),[_0xa9689e,_0x18b7da]=_0x4d0fce(_0x40248c(0x141)),_0x2fb899=_0x2077b7(null);return _0x590366(()=>(_0x4ac9d3&&_0x3fbc85[_0x40248c(0xfe)](_0x4ac9d3[_0x40248c(0x112)]())['then'](_0x1c59c2=>{const _0xe1e8f6=_0x40248c;_0x17c1d2(_0x1c59c2),_0x2fb899[_0xe1e8f6(0x13b)]=_0x1c59c2[_0xe1e8f6(0x113)][_0xe1e8f6(0x127)](_0x3b0da2=>{_0x18b7da(_0x3b0da2);});}),()=>{const _0x256803=_0x40248c;var _0x500f63;(_0x500f63=_0x2fb899[_0x256803(0x13b)])==null||_0x500f63[_0x256803(0x17e)](),_0x2fb899['current']=null;}),[_0x4ac9d3,_0x3fbc85]),_0x42268e?_0x2e1826(_0x5d4586,{'align':_0x40248c(0x17f),'disabled':_0xa9689e===_0x40248c(0x150),'className':_0x40248c(0x144),'overlay':_0x2e1826(Z,{'status':_0xa9689e,'coordinator':_0x42268e}),'children':_0x2e1826(_0x40248c(0x175),{'className':_0x256ea0(_0x40248c(0x122),{'univer-cursor-not-allowed':_0xa9689e===_0x40248c(0x150),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xa9689e!==_0x40248c(0x150)}),'type':'button','children':_0x2e1826(_0x4b5bb8,{})})}):null;}function Z(_0xf12cc7){const _0xe8b6a1=_0x12d49e;let {status:_0x5574a7,coordinator:_0xc5d751}=_0xf12cc7;switch(_0x5574a7){case _0xe8b6a1(0x141):return _0x2e1826(le,{'coordinator':_0xc5d751});case'following':return _0x2e1826(ue,{'coordinator':_0xc5d751});case'not-following':return _0x2e1826(de,{'coordinator':_0xc5d751});case _0xe8b6a1(0x150):return _0x2e1826(pe,{});case _0xe8b6a1(0xf5):return _0x2e1826(fe,{'coordinator':_0xc5d751});default:return null;}}function le(_0x347889){const _0x1ef0bc=_0x12d49e;let {coordinator:_0x3f288c}=_0x347889;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x1ef0bc(0x177),{'className':_0x1ef0bc(0x146),'children':'Present\x20this\x20document'}),_0x2e1826(_0x1fc5f3,{'onClick':()=>_0x3f288c[_0x1ef0bc(0x179)](),'children':'Start'})]});}function _0x29ad(){const _0x12240a=['_handleNewHost','_status','init','_presenter','_sharedOperations','getLiveShareCoordinator','Stop\x20following','dispose','default','requireSession','override','452748yIgsgK','mutations','onCommandExecuted','_status$','FOLLOWING','set','forEach','575770stZGgZ','not-following','from','_configService','405APGCvB','subject','NEW_CHANGESETS','getUnitId','status$','operations','map','prototype','decorate','has','text','LIVESHARE_TERMINATE','clear','stringify','NOT_FOLLOWING','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getOwnPropertyDescriptor','delete','_collabSessionService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_startFollowing','180936eEMKwV','3070MxyiFc','_handleOperation','subscribe','SAME_OPERATION_SHARE_INTERVAL','length','asObservable','UNIVER_UNKNOWN','getTypeOfUnitAdded$','registerSharedOperation','registerComponent','UNIVER_LIVE_SHARE_PLUGIN','onStarting','type','_entities','1610rxCgkg','unitId','972teGhAp','_injector','_startLiveShareCoordinator','add','getConfig','constructor','current','pipe','_collabSession','_handleNewChangeSets','unit','LIVESHARE_REQUEST_HOST','idle','OFFLINE','getMemberID','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','1030Fpdstu','univer-mb-3\x20univer-w-full\x20univer-text-sm','_config','complete','LIVESHARE_NEW_HOST','HEADER_MENU','parse','ONLINE','_unitID','sessionStatus$','dispose$','offline','reverse','_startPresenting','_mountLiveShare','_init','send','_handleOnline','UNIVER_SHEET','shouldShareOperation','presenter','_reporters','_beIdle','executeCommand','_stopPresenting','event$','toPrimitive','iterator','includes','7368CsJZCd','getInitialStates','function','_fetchOperations','symbol','_handleTerminate','getCurrentTypeOfUnit$','registerInitialStateReporter','@univerjs-pro/live-share','string','_liveShareService','pluginName','4054624TqWLXY','get','746kEAlTF','live-share.config','_uiPartsService','find','sheet','button','object','div','getValue','tryStartPresenting','stopPresenting','You\x27are\x20offline.','params','40aUoGlQ','unsubscribe','end','startFollowing','_univerInstanceService','memberID','48763RkUsYT','values','_commandDisposable','setConfig','data','_handleOffline','stopFollowing','following','_commandService','defineProperty','presenting','You\x27re\x20not\x20following\x20the\x20presenter','next','LIVESHARE_OPERATION'];_0x29ad=function(){return _0x12240a;};return _0x29ad();}function _0x56aa(_0xe224c0,_0x40afac){_0xe224c0=_0xe224c0-0xeb;const _0x29ad87=_0x29ad();let _0x56aaba=_0x29ad87[_0xe224c0];return _0x56aaba;}function ue(_0x43cfc0){const _0x55bb5d=_0x12d49e;let {coordinator:_0x11fa2d}=_0x43cfc0;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x55bb5d(0x177),{'className':_0x55bb5d(0x146),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x2e1826(_0x1fc5f3,{'onClick':()=>_0x11fa2d[_0x55bb5d(0xf1)](),'children':_0x55bb5d(0xff)})]});}function de(_0x31f80a){const _0x377687=_0x12d49e;let {coordinator:_0x1f4b0e}=_0x31f80a;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x377687(0x177),{'className':_0x377687(0x146),'children':_0x377687(0xf6)}),_0x2e1826(_0x1fc5f3,{'variant':_0x377687(0x119),'onClick':()=>_0x1f4b0e[_0x377687(0x180)](),'children':'Start\x20following'})]});}function fe(_0x5717e0){const _0x41daf2=_0x12d49e;let {coordinator:_0x3da7d0}=_0x5717e0;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x41daf2(0x177),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2e1826(_0x1fc5f3,{'variant':'default','onClick':()=>_0x3da7d0[_0x41daf2(0x17a)](),'children':'Stop\x20presenting'})]});}function pe(){const _0x5938fd=_0x12d49e;return _0x2e1826(_0x1b094c,{'children':_0x5938fd(0x17b)});}let Q=class extends _0x4659c0{constructor(_0x45f985,_0x15120f){const _0x1fbafb=_0x12d49e;super(),this[_0x1fbafb(0x136)]=_0x45f985,this[_0x1fbafb(0x172)]=_0x15120f,this[_0x1fbafb(0x153)]();}[_0x12d49e(0x153)](){const _0x46045c=_0x12d49e;this['disposeWithMe'](this[_0x46045c(0x172)][_0x46045c(0x12e)](_0x22834b[_0x46045c(0x14a)],()=>_0x234790(ce,this[_0x46045c(0x136)])));}};Q=G([W(0x0,_0x5247da(_0x408402)),W(0x1,_0x153cdd)],Q);let $=class extends _0x1502e3{constructor(_0xe98712=Y,_0x574da0,_0x33a96a){const _0x44df31=_0x12d49e;super(),this['_config']=_0xe98712,this['_injector']=_0x574da0,this['_configService']=_0x33a96a;let {..._0x40976a}=_0x2dd70c({},Y,this[_0x44df31(0x147)]);this[_0x44df31(0x10e)][_0x44df31(0xee)](_0x44df31(0x171),_0x40976a);}[_0x12d49e(0x130)](){const _0x5ca9d9=_0x12d49e;_0x59bf00(this['_injector'],_0x18178b([[U],[K],[X],[Q]],this['_config'][_0x5ca9d9(0x103)])),_0xa55cab(this[_0x5ca9d9(0x136)],[[X]]);}['onRendered'](){const _0x373fa8=_0x12d49e;_0xa55cab(this[_0x373fa8(0x136)],[[Q]]);}};H($,'type',_0x14abf6[_0x12d49e(0x12b)]),H($,_0x12d49e(0x16d),_0x12d49e(0x12f)),H($,'packageName',oe),H($,'version',se),$=G([_0x1b6da4(_0x21f3e5),W(0x1,_0x5247da(_0x408402)),W(0x2,_0x348818)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x581879=_0x19a0;function _0x1f62(){const _0x132769=['3814977JPYlPM','IDLE','30616kNbftX','call','1174090qeWUfI','2LglRxO','getCurrentUnitOfType','4unbTuV','getLiveShareCoordinatorSync','function','No\x20active\x20workbook\x20found.','stopFollowing','5319867EYkmqw','getUnitId','startFollowing','6310005GdqpNT','_initialize','LiveShareStatusEnum','get','getStatus','868170YckaSa','stopPresenting','89242SDaMuU','getLiveShareStatus','constructor','441nJqZhi','_injector','UNIVER_SHEET','string','_liveShareController','symbol','toPrimitive','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','defineProperty','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','object','tryStartPresenting','extend'];_0x1f62=function(){return _0x132769;};return _0x1f62();}function _0x19a0(_0x34f6ee,_0x6c63b2){_0x34f6ee=_0x34f6ee-0x14a;const _0x1f622b=_0x1f62();let _0x19a09e=_0x1f622b[_0x34f6ee];return _0x19a09e;}(function(_0x218c64,_0x3cea81){const _0x30accd=_0x19a0,_0x41e026=_0x218c64();while(!![]){try{const _0x377fc9=-parseInt(_0x30accd(0x16d))/0x1*(-parseInt(_0x30accd(0x158))/0x2)+parseInt(_0x30accd(0x168))/0x3*(parseInt(_0x30accd(0x16f))/0x4)+-parseInt(_0x30accd(0x151))/0x5+-parseInt(_0x30accd(0x156))/0x6+parseInt(_0x30accd(0x14e))/0x7+parseInt(_0x30accd(0x16a))/0x8*(-parseInt(_0x30accd(0x15b))/0x9)+parseInt(_0x30accd(0x16c))/0xa;if(_0x377fc9===_0x3cea81)break;else _0x41e026['push'](_0x41e026['shift']());}catch(_0x6ee33b){_0x41e026['push'](_0x41e026['shift']());}}}(_0x1f62,0x9d3e8));import{LiveShareController as _0xfaa6c2,LiveShareStatus as _0x41f314}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x418f11,UniverInstanceType as _0x30f3f0}from'@univerjs/core';import{FEnum as _0x35fdd7,FUniver as _0x580b87}from'@univerjs/core/facade';function o(_0x2cb829){'@babel/helpers - typeof';const _0x5cace2=_0x19a0;return o=typeof Symbol==_0x5cace2(0x14b)&&typeof Symbol['iterator']==_0x5cace2(0x160)?function(_0x5a94fc){return typeof _0x5a94fc;}:function(_0x257089){const _0x2e77f4=_0x5cace2;return _0x257089&&typeof Symbol==_0x2e77f4(0x14b)&&_0x257089[_0x2e77f4(0x15a)]===Symbol&&_0x257089!==Symbol['prototype']?_0x2e77f4(0x160):typeof _0x257089;},o(_0x2cb829);}function s(_0x21f60f,_0x4af591){const _0x56b6fc=_0x19a0;if(o(_0x21f60f)!=_0x56b6fc(0x165)||!_0x21f60f)return _0x21f60f;var _0x541c2c=_0x21f60f[Symbol[_0x56b6fc(0x161)]];if(_0x541c2c!==void 0x0){var _0x636c51=_0x541c2c[_0x56b6fc(0x16b)](_0x21f60f,_0x4af591||'default');if(o(_0x636c51)!=_0x56b6fc(0x165))return _0x636c51;throw TypeError(_0x56b6fc(0x164));}return(_0x4af591===_0x56b6fc(0x15e)?String:Number)(_0x21f60f);}function c(_0x1bf028){const _0x11c4ad=_0x19a0;var _0x2c2e35=s(_0x1bf028,_0x11c4ad(0x15e));return o(_0x2c2e35)=='symbol'?_0x2c2e35:_0x2c2e35+'';}function l(_0xcf336e,_0x1273e3,_0xd1bf39){const _0x159bd8=_0x19a0;return(_0x1273e3=c(_0x1273e3))in _0xcf336e?Object[_0x159bd8(0x163)](_0xcf336e,_0x1273e3,{'value':_0xd1bf39,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xcf336e[_0x1273e3]=_0xd1bf39,_0xcf336e;}var u=class extends _0x580b87{constructor(..._0x17f535){const _0x452451=_0x19a0;super(..._0x17f535),l(this,_0x452451(0x15f),void 0x0);}[_0x581879(0x152)](_0x1f6712){const _0x42b04d=_0x581879;this[_0x42b04d(0x15f)]=_0x1f6712[_0x42b04d(0x154)](_0xfaa6c2);}[_0x581879(0x159)](){const _0x3fc369=_0x581879;var _0x801197;let _0x2142d8=this['_injector'][_0x3fc369(0x154)](_0x418f11)[_0x3fc369(0x16e)](_0x30f3f0[_0x3fc369(0x15d)]);if(!_0x2142d8)throw Error(_0x3fc369(0x14c));let _0x560e6e=_0x2142d8[_0x3fc369(0x14f)](),_0x44726a=this[_0x3fc369(0x15f)][_0x3fc369(0x14a)](_0x560e6e);return(_0x801197=_0x44726a==null?void 0x0:_0x44726a[_0x3fc369(0x155)]())==null?_0x41f314[_0x3fc369(0x169)]:_0x801197;}[_0x581879(0x150)](){const _0x48cf68=_0x581879;let _0x48940b=this['_injector'][_0x48cf68(0x154)](_0x418f11)['getCurrentUnitOfType'](_0x30f3f0[_0x48cf68(0x15d)]);if(!_0x48940b)throw Error(_0x48cf68(0x14c));let _0xf76666=_0x48940b['getUnitId'](),_0x5c04e3=this['_liveShareController'][_0x48cf68(0x14a)](_0xf76666);if(!_0x5c04e3)throw Error(_0x48cf68(0x162));_0x5c04e3[_0x48cf68(0x150)]();}[_0x581879(0x14d)](){const _0x5710f2=_0x581879;let _0x1dd3fe=this[_0x5710f2(0x15c)]['get'](_0x418f11)[_0x5710f2(0x16e)](_0x30f3f0[_0x5710f2(0x15d)]);if(!_0x1dd3fe)throw Error('No\x20active\x20workbook\x20found.');let _0x3b3c7b=_0x1dd3fe[_0x5710f2(0x14f)](),_0x3d09ea=this[_0x5710f2(0x15f)][_0x5710f2(0x14a)](_0x3b3c7b);if(!_0x3d09ea)throw Error(_0x5710f2(0x162));_0x3d09ea[_0x5710f2(0x14d)]();}['startPresenting'](){const _0x2f6ace=_0x581879;let _0x48a891=this[_0x2f6ace(0x15c)][_0x2f6ace(0x154)](_0x418f11)['getCurrentUnitOfType'](_0x30f3f0['UNIVER_SHEET']);if(!_0x48a891)throw Error(_0x2f6ace(0x14c));let _0xdb1665=_0x48a891[_0x2f6ace(0x14f)](),_0x54da0c=this['_liveShareController'][_0x2f6ace(0x14a)](_0xdb1665);if(!_0x54da0c)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x54da0c[_0x2f6ace(0x166)]();}[_0x581879(0x157)](){const _0x2fdea5=_0x581879;let _0x3a54be=this[_0x2fdea5(0x15c)][_0x2fdea5(0x154)](_0x418f11)[_0x2fdea5(0x16e)](_0x30f3f0[_0x2fdea5(0x15d)]);if(!_0x3a54be)throw Error('No\x20active\x20workbook\x20found.');let _0xf07f54=_0x3a54be[_0x2fdea5(0x14f)](),_0x5273ea=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xf07f54);if(!_0x5273ea)throw Error(_0x2fdea5(0x162));_0x5273ea[_0x2fdea5(0x157)]();}};_0x580b87['extend'](u);var d=class extends _0x35fdd7{get[_0x581879(0x153)](){return _0x41f314;}};_0x35fdd7[_0x581879(0x167)](d);export{};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x255515=_0x3685;(function(_0x1aa2a0,_0x58cf55){const _0x20cc02=_0x3685,_0x529053=_0x1aa2a0();while(!![]){try{const _0x40f922=parseInt(_0x20cc02(0xed))/0x1+-parseInt(_0x20cc02(0xdf))/0x2+parseInt(_0x20cc02(0xd8))/0x3*(parseInt(_0x20cc02(0xea))/0x4)+-parseInt(_0x20cc02(0x112))/0x5*(-parseInt(_0x20cc02(0x108))/0x6)+parseInt(_0x20cc02(0x11e))/0x7*(parseInt(_0x20cc02(0x131))/0x8)+-parseInt(_0x20cc02(0xfd))/0x9+-parseInt(_0x20cc02(0xa2))/0xa;if(_0x40f922===_0x58cf55)break;else _0x529053['push'](_0x529053['shift']());}catch(_0x3c05a6){_0x529053['push'](_0x529053['shift']());}}}(_0x3b04,0x2610d));function _0x3685(_0xb62f3b,_0x307532){_0xb62f3b=_0xb62f3b-0xa0;const _0x3b0423=_0x3b04();let _0x368518=_0x3b0423[_0xb62f3b];return _0x368518;}import{CollaborationEvent as _0x24db57,parseProtocolChangeset as _0x1198e4}from'@univerjs-pro/collaboration';function _0x3b04(){const _0x449aa2=['type','then','requireSession','_handleOperation','iterator','Stop\x20presenting','onStarting','_univerInstanceService','Start','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','init','next','subject','_handleTerminate','string','_presenter','setConfig','_liveShareService','Start\x20following','_status','_commandDisposable','getStatus','_stopFollowing','asObservable','You\x27re\x20presenting\x20the\x20document','_handleNewChangeSets','memberID','18375lzwwcF','onCommandExecuted','_unitID','div','NEW_CHANGESETS','getLiveShareCoordinatorSync','subscribe','231212xMiYMq','operations','createInstance','@univerjs-pro/live-share','has','getInitialStates','startFollowing','override','parse','live-share.config','getConfig','120yaNYwo','getTypeOfUnitAdded$','toPrimitive','141634RAygrU','complete','_reporters','pipe','Present\x20this\x20document','UNIVER_SHEET','add','symbol','_startLiveShareCoordinator','clear','_commandService','_beIdle','following','_startFollowing','values','_status$','1290924yKrksT','unit','tryStartPresenting','unsubscribe','getTypeOfUnitDisposed$','LIVESHARE_FETCH_OPERATIONS','text','registerSharedOperation','mutations','getLiveShareCoordinator','includes','300xbiTUV','offline','decorate','_injector','LIVESHARE_NEW_HOST','delete','dispose$','getValue','_handleNewHost','call','25040nyZbrT','_fetchOperations','_collabSessionService','NOT_FOLLOWING','_configService','getMemberID','status$','find','You\x27re\x20not\x20following\x20the\x20presenter','OFFLINE','UNIVER_UNKNOWN','dispose','8785TNUhkA','IDLE','params','disposeWithMe','shouldShareOperation','_handleOffline','defineProperty','packageName','object','from','registerInitialStateReporter','_config','default','presenting','getCurrentTypeOfUnit$','_entities','registerComponent','not-following','end','56hOUcUi','_init','set','UNIVER_LIVE_SHARE_PLUGIN','_sharedOperations','idle','stopPresenting','1696100JXTsVM','_handleOnline','forEach','_collabSession','_uiPartsService','onRendered','get','LIVESHARE_OPERATION','Stop\x20following','pluginName','data','stopFollowing','function','getUnitId','unitId','_stopPresenting','ONLINE','FOLLOWING','current','send','executeCommand','_mountLiveShare','presenter','stringify','event$','map'];_0x3b04=function(){return _0x449aa2;};return _0x3b04();}import{CollaborationSessionService as _0x5525bb,SessionStatus as _0x28a6cc,UniverCollaborationClientPlugin as _0x57b419}from'@univerjs-pro/collaboration-client';import{CommandType as _0xbc0567,DependentOn as _0x51ca48,Disposable as _0x516cea,DisposableCollection as _0xf927e1,ICommandService as _0x36e78,IConfigService as _0x3ceecb,IUniverInstanceService as _0x407d65,Inject as _0x2e8c25,Injector as _0x301770,Plugin as _0x22dadf,RxDisposable as _0x454ded,UniverInstanceType as _0x104030,merge as _0x22904a,mergeOverrideWithDependencies as _0x49a17a,registerDependencies as _0x4c4ef5,toDisposable as _0x7b8648,touchDependencies as _0x2efcc9}from'@univerjs/core';import{InsertSheetMutation as _0x417356,SetWorksheetActiveOperation as _0x825d3}from'@univerjs/sheets';import{BehaviorSubject as _0x48b8ba,Subject as _0x2a6741}from'rxjs';import{takeUntil as _0x471262,throttleTime as _0x464a34}from'rxjs/operators';import{BuiltInUIPart as _0xb35ac5,IUIPartsService as _0x396b3b,connectInjector as _0x2af7a6,useDependency as _0x49f746,useObservable as _0x3fc517}from'@univerjs/ui';import{Button as _0x1d87b5,Dropdown as _0x132052,clsx as _0x43282b}from'@univerjs/design';import{LiveShareIcon as _0x501a81}from'@univerjs/icons';import{useEffect as _0x4e5c5e,useRef as _0xf04e19,useState as _0x54d631}from'react';import{Fragment as _0x33c60e,jsx as _0x2b78ed,jsxs as _0x46c0ab}from'react/jsx-runtime';import{SetScrollOperation as _0x4eaff8,SetZoomRatioOperation as _0x35ad51}from'@univerjs/sheets-ui';function R(_0x291027){'@babel/helpers - typeof';const _0x1f3aaf=_0x3685;return R=typeof Symbol==_0x1f3aaf(0xae)&&typeof Symbol[_0x1f3aaf(0xc0)]==_0x1f3aaf(0xf4)?function(_0x1b7878){return typeof _0x1b7878;}:function(_0x2ae6c2){const _0x4075fe=_0x1f3aaf;return _0x2ae6c2&&typeof Symbol==_0x4075fe(0xae)&&_0x2ae6c2['constructor']===Symbol&&_0x2ae6c2!==Symbol['prototype']?_0x4075fe(0xf4):typeof _0x2ae6c2;},R(_0x291027);}function z(_0xf774cb,_0x586126){const _0x48ae5d=_0x3685;if(R(_0xf774cb)!=_0x48ae5d(0x126)||!_0xf774cb)return _0xf774cb;var _0x1c1ea4=_0xf774cb[Symbol[_0x48ae5d(0xec)]];if(_0x1c1ea4!==void 0x0){var _0x3c996e=_0x1c1ea4[_0x48ae5d(0x111)](_0xf774cb,_0x586126||_0x48ae5d(0x12a));if(R(_0x3c996e)!=_0x48ae5d(0x126))return _0x3c996e;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x586126===_0x48ae5d(0xcb)?String:Number)(_0xf774cb);}function B(_0x356567){const _0x20b902=_0x3685;var _0xe0ddc4=z(_0x356567,_0x20b902(0xcb));return R(_0xe0ddc4)==_0x20b902(0xf4)?_0xe0ddc4:_0xe0ddc4+'';}function V(_0x256d0e,_0x52b8fb,_0x1529ec){const _0x19f888=_0x3685;return(_0x52b8fb=B(_0x52b8fb))in _0x256d0e?Object[_0x19f888(0x124)](_0x256d0e,_0x52b8fb,{'value':_0x1529ec,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x256d0e[_0x52b8fb]=_0x1529ec,_0x256d0e;}var H=class extends _0x516cea{constructor(..._0x192d21){const _0xa16cae=_0x3685;super(..._0x192d21),V(this,_0xa16cae(0x135),new Set()),V(this,_0xa16cae(0xef),new Set());}[_0x255515(0x104)](_0x208fd9){const _0xb13642=_0x255515;return this['_sharedOperations'][_0xb13642(0xf3)](_0x208fd9),_0x7b8648(()=>this[_0xb13642(0x135)][_0xb13642(0x10d)](_0x208fd9));}[_0x255515(0x128)](_0x28e71d){const _0x1dfc3d=_0x255515;return this['_reporters'][_0x1dfc3d(0xf3)](_0x28e71d),_0x7b8648(()=>this[_0x1dfc3d(0xef)]['delete'](_0x28e71d));}[_0x255515(0x122)](_0x14588f){const _0x1ac9c3=_0x255515;return this[_0x1ac9c3(0x135)][_0x1ac9c3(0xe3)](_0x14588f);}[_0x255515(0xe4)](_0x45e5c6){const _0x5d40cb=_0x255515;return Array[_0x5d40cb(0x127)](this[_0x5d40cb(0xef)])[_0x5d40cb(0xbb)](_0x46c62c=>_0x46c62c(_0x45e5c6));}};function U(_0x388b15,_0xa8cce){return function(_0x126223,_0x1e36f4){_0xa8cce(_0x126223,_0x1e36f4,_0x388b15);};}function W(_0x77d6f1,_0x2cfdb6,_0x48fe60,_0x1bac49){const _0xc32ae2=_0x255515;var _0x3b206e=arguments['length'],_0x599a9b=_0x3b206e<0x3?_0x2cfdb6:_0x1bac49===null?_0x1bac49=Object['getOwnPropertyDescriptor'](_0x2cfdb6,_0x48fe60):_0x1bac49,_0x4c94be;if(typeof Reflect==_0xc32ae2(0x126)&&typeof Reflect[_0xc32ae2(0x10a)]==_0xc32ae2(0xae))_0x599a9b=Reflect[_0xc32ae2(0x10a)](_0x77d6f1,_0x2cfdb6,_0x48fe60,_0x1bac49);else{for(var _0x423fa2=_0x77d6f1['length']-0x1;_0x423fa2>=0x0;_0x423fa2--)(_0x4c94be=_0x77d6f1[_0x423fa2])&&(_0x599a9b=(_0x3b206e<0x3?_0x4c94be(_0x599a9b):_0x3b206e>0x3?_0x4c94be(_0x2cfdb6,_0x48fe60,_0x599a9b):_0x4c94be(_0x2cfdb6,_0x48fe60))||_0x599a9b);}return _0x3b206e>0x3&&_0x599a9b&&Object[_0xc32ae2(0x124)](_0x2cfdb6,_0x48fe60,_0x599a9b),_0x599a9b;}let G=class extends _0x454ded{constructor(_0x4c8b46,_0xf5eef4,_0x4a07c5){const _0x21a6b5=_0x255515;super(),this['_univerInstanceService']=_0x4c8b46,this[_0x21a6b5(0x10b)]=_0xf5eef4,this['_collabSessionService']=_0x4a07c5,V(this,_0x21a6b5(0x12d),new Map()),this[_0x21a6b5(0x132)]();}async[_0x255515(0x106)](_0x458f39){const _0x140a66=_0x255515;return this[_0x140a66(0x12d)][_0x140a66(0xe3)](_0x458f39)||await this[_0x140a66(0xf5)](_0x458f39),this[_0x140a66(0x12d)]['get'](_0x458f39);}[_0x255515(0xdd)](_0x526e39){const _0x804695=_0x255515;var _0x3e9a64;return(_0x3e9a64=this[_0x804695(0x12d)][_0x804695(0xa8)](_0x526e39))==null?null:_0x3e9a64;}[_0x255515(0x132)](){const _0x2afed9=_0x255515;this[_0x2afed9(0xc3)][_0x2afed9(0xeb)](_0x104030['UNIVER_SHEET'])['pipe'](_0x471262(this[_0x2afed9(0x10e)]))[_0x2afed9(0xde)](async _0x4d074c=>{const _0x515d50=_0x2afed9;let _0x18cbe8=_0x4d074c[_0x515d50(0xfe)]['getUnitId']();this[_0x515d50(0x12d)]['has'](_0x18cbe8)||this[_0x515d50(0xf5)](_0x18cbe8);}),this[_0x2afed9(0xc3)][_0x2afed9(0x101)](_0x104030[_0x2afed9(0xf2)])[_0x2afed9(0xf0)](_0x471262(this[_0x2afed9(0x10e)]))[_0x2afed9(0xde)](_0x3583fb=>{const _0x25e0db=_0x2afed9;let _0x49cf13=_0x3583fb[_0x25e0db(0xaf)](),_0x529e1c=this['_entities'][_0x25e0db(0xa8)](_0x49cf13);_0x529e1c==null||_0x529e1c[_0x25e0db(0x11d)]();});}async[_0x255515(0xf5)](_0x31b484){const _0x22fa46=_0x255515;let _0x396478=await this[_0x22fa46(0x114)][_0x22fa46(0xbe)](_0x31b484),_0xcc3b03=this[_0x22fa46(0x10b)][_0x22fa46(0xe1)](q,_0x31b484,_0x396478);return _0xcc3b03[_0x22fa46(0xc7)](),this['_entities'][_0x22fa46(0x133)](_0x31b484,_0xcc3b03),_0xcc3b03;}};G=W([U(0x0,_0x407d65),U(0x1,_0x2e8c25(_0x301770)),U(0x2,_0x2e8c25(_0x5525bb))],G);let K=function(_0x25ba5c){const _0x14e866=_0x255515;return _0x25ba5c[_0x14e866(0x11b)]=_0x14e866(0x109),_0x25ba5c[_0x14e866(0x11f)]='idle',_0x25ba5c[_0x14e866(0xb3)]=_0x14e866(0xf9),_0x25ba5c[_0x14e866(0x115)]=_0x14e866(0x12f),_0x25ba5c['PRESENTING']=_0x14e866(0x12b),_0x25ba5c;}({}),q=class extends _0x454ded{get[_0x255515(0xd0)](){const _0x5e429f=_0x255515;return this[_0x5e429f(0xfc)][_0x5e429f(0x10f)]();}constructor(_0x28834e,_0x16146f,_0x5ec53e,_0x42de2a,_0x47e0ef){const _0xb92322=_0x255515;super(),this['_unitID']=_0x28834e,this[_0xb92322(0xa5)]=_0x16146f,this[_0xb92322(0x116)]=_0x5ec53e,this[_0xb92322(0xce)]=_0x42de2a,this[_0xb92322(0xf7)]=_0x47e0ef,V(this,'_status$',new _0x48b8ba(_0xb92322(0xa0))),V(this,_0xb92322(0x118),this[_0xb92322(0xfc)][_0xb92322(0xd4)]()),V(this,_0xb92322(0x132),!0x1),V(this,_0xb92322(0xd1),null),V(this,_0xb92322(0xcc),null);}[_0x255515(0x11d)](){const _0x16b895=_0x255515;var _0x5f009e;(_0x5f009e=this[_0x16b895(0xd1)])==null||_0x5f009e[_0x16b895(0x11d)](),this[_0x16b895(0xfc)]['next']('idle'),this[_0x16b895(0xfc)]['complete']();}[_0x255515(0xd2)](){return this['_status'];}[_0x255515(0xc7)](){const _0x714908=_0x255515;this[_0x714908(0x132)]||(this[_0x714908(0x132)]=!0x0,this[_0x714908(0xa5)]['sessionStatus$'][_0x714908(0xf0)](_0x471262(this[_0x714908(0x10e)]))['subscribe'](_0x156c04=>{const _0x3613c3=_0x714908;switch(_0x156c04){case _0x28a6cc[_0x3613c3(0x11b)]:this['_handleOffline']();break;case _0x28a6cc[_0x3613c3(0xb2)]:this[_0x3613c3(0xa3)]();break;default:}}),this['_collabSession'][_0x714908(0xba)][_0x714908(0xf0)](_0x471262(this[_0x714908(0x10e)]))[_0x714908(0xde)](_0x5c4b1a=>{const _0x582c94=_0x714908;let {eventID:_0x582aac}=_0x5c4b1a;switch(_0x582aac){case _0x24db57[_0x582c94(0x10c)]:this[_0x582c94(0x110)](_0x5c4b1a);break;case _0x24db57[_0x582c94(0xa9)]:this[_0x582c94(0xbf)](_0x5c4b1a);break;case _0x24db57['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x24db57[_0x582c94(0xdc)]:this[_0x582c94(0xd6)](_0x5c4b1a);break;default:}}));}['tryStartPresenting'](){const _0x3d4eda=_0x255515;this[_0x3d4eda(0xa5)][_0x3d4eda(0xb5)]({'eventID':_0x24db57['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3d4eda(0xda)],'userID':this[_0x3d4eda(0xa5)][_0x3d4eda(0x117)]()}},this[_0x3d4eda(0xda)]);}[_0x255515(0xa1)](){const _0x412192=_0x255515;this[_0x412192(0xd0)]==='presenting'&&(this[_0x412192(0xfc)][_0x412192(0xc8)](_0x412192(0xa0)),this['_collabSession'][_0x412192(0xb5)]({'eventID':_0x24db57['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x412192(0xda)]}},this[_0x412192(0xda)]));}[_0x255515(0xe5)](){const _0x40eea6=_0x255515;this['_status']===_0x40eea6(0x12f)&&(this[_0x40eea6(0xfc)][_0x40eea6(0xc8)](_0x40eea6(0xf9)),this['_startFollowing']());}[_0x255515(0xad)](){const _0x37f6b0=_0x255515;this[_0x37f6b0(0xd0)]===_0x37f6b0(0xf9)&&this[_0x37f6b0(0xd3)]();}[_0x255515(0x110)](_0x25e52f){const _0x355eeb=_0x255515;let {presenter:_0x5a9e12}=_0x25e52f[_0x355eeb(0xac)],_0x2d28af=this[_0x355eeb(0xa5)]['getMemberID']();this[_0x355eeb(0xcc)]=_0x5a9e12,_0x5a9e12===_0x2d28af?(this[_0x355eeb(0xd3)](),this[_0x355eeb(0xc6)]()):this[_0x355eeb(0xd0)]!==_0x355eeb(0x12f)&&(this[_0x355eeb(0xb1)](),this['_startFollowing']());}['_fetchOperations'](){const _0x22e1e2=_0x255515;let _0x2e21d9={'eventID':_0x24db57[_0x22e1e2(0x102)]};this[_0x22e1e2(0xa5)][_0x22e1e2(0xb5)](_0x2e21d9,this[_0x22e1e2(0xda)]);}[_0x255515(0xca)](){const _0x4174b7=_0x255515;this[_0x4174b7(0xcc)]=null,this[_0x4174b7(0xd0)]!==_0x4174b7(0x12b)&&this[_0x4174b7(0xf8)]();}['_handleNewChangeSets'](_0x688b52){const _0x2e2b8f=_0x255515;if(this[_0x2e2b8f(0xd0)]===_0x2e2b8f(0xf9)&&this[_0x2e2b8f(0xcc)]===_0x688b52[_0x2e2b8f(0xac)][_0x2e2b8f(0xd7)]){let _0x481b52=_0x1198e4(_0x688b52['data'])[_0x2e2b8f(0x105)]['reverse']()[_0x2e2b8f(0x119)](_0x1c9f74=>_0x1c9f74['id']===_0x417356['id']);if(_0x481b52){let _0x57b4d0=_0x481b52['params'][_0x2e2b8f(0xb0)],_0x5b7178=_0x481b52[_0x2e2b8f(0x120)]['sheet']['id'];setTimeout(()=>{const _0x3ba644=_0x2e2b8f;this[_0x3ba644(0xf7)][_0x3ba644(0xb6)](_0x825d3['id'],{'unitId':_0x57b4d0,'subUnitId':_0x5b7178},{'fromCollab':!0x0});});}}}[_0x255515(0xc6)](){const _0x4da664=_0x255515;var _0x37633b;(_0x37633b=this['_commandDisposable'])==null||_0x37633b['dispose'](),this[_0x4da664(0xfc)][_0x4da664(0xc8)](_0x4da664(0x12b));let _0x20f5fa=new Map(),_0x12e6ac=this[_0x4da664(0xd1)]=new _0xf927e1();_0x12e6ac[_0x4da664(0xf3)](_0x7b8648(()=>{const _0x478f78=_0x4da664;_0x20f5fa[_0x478f78(0xa4)](({subject:_0x51b928,subscription:_0x3fd189})=>{const _0x1b5d1a=_0x478f78;_0x3fd189[_0x1b5d1a(0x100)](),_0x51b928[_0x1b5d1a(0xee)]();}),_0x20f5fa[_0x478f78(0xf6)]();})),_0x12e6ac[_0x4da664(0xf3)](this[_0x4da664(0xf7)][_0x4da664(0xd9)](_0x5d10f7=>{const _0x4973fb=_0x4da664;if(_0x5d10f7[_0x4973fb(0xbc)]!==_0xbc0567['OPERATION']||!this[_0x4973fb(0xce)][_0x4973fb(0x122)](_0x5d10f7['id']))return;let {id:_0x429962}=_0x5d10f7,_0x29ec7f;if(_0x20f5fa[_0x4973fb(0xe3)](_0x429962))_0x29ec7f=_0x20f5fa[_0x4973fb(0xa8)](_0x429962)[_0x4973fb(0xc9)];else{var _0x2e56cc;_0x29ec7f=new _0x2a6741();let _0x5b9c5c=_0x29ec7f['pipe'](_0x464a34((_0x2e56cc=this['_configService'][_0x4973fb(0xe9)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2e56cc,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4973fb(0xde)](_0x4c8739=>{const _0x8c6a66=_0x4973fb;this['_collabSession']['send']({'eventID':_0x24db57[_0x8c6a66(0xa9)],'data':{'unitID':this[_0x8c6a66(0xda)],'operations':{[_0x4c8739['id']]:{'id':_0x4c8739['id'],'params':JSON[_0x8c6a66(0xb9)](_0x4c8739['params'])}}}},this[_0x8c6a66(0xda)]);});_0x20f5fa[_0x4973fb(0x133)](_0x429962,{'subject':_0x29ec7f,'subscription':_0x5b9c5c});}_0x29ec7f[_0x4973fb(0xc8)](_0x5d10f7);})),this[_0x4da664(0xce)]['getInitialStates'](this[_0x4da664(0xda)])['forEach'](_0x41af15=>this[_0x4da664(0xa5)][_0x4da664(0xb5)]({'eventID':_0x24db57[_0x4da664(0xa9)],'data':{'unitID':this[_0x4da664(0xda)],'operations':{[_0x41af15['id']]:{'id':_0x41af15['id'],'params':JSON[_0x4da664(0xb9)](_0x41af15[_0x4da664(0x120)])}}}},this[_0x4da664(0xda)]));}['_stopPresenting'](){const _0x5b2d80=_0x255515;var _0x59a1f1;this[_0x5b2d80(0xfc)][_0x5b2d80(0xc8)](_0x5b2d80(0xa0)),(_0x59a1f1=this[_0x5b2d80(0xd1)])==null||_0x59a1f1['dispose'](),this[_0x5b2d80(0xd1)]=null;}[_0x255515(0xfa)](){const _0x5a5541=_0x255515;var _0x212515;(_0x212515=this[_0x5a5541(0xd1)])==null||_0x212515[_0x5a5541(0x11d)](),this[_0x5a5541(0xfc)]['next'](_0x5a5541(0xf9));}[_0x255515(0xf8)](){const _0x4a5581=_0x255515;var _0x3a9caf;this[_0x4a5581(0xfc)][_0x4a5581(0xc8)](_0x4a5581(0xa0)),(_0x3a9caf=this[_0x4a5581(0xd1)])==null||_0x3a9caf[_0x4a5581(0x11d)](),this[_0x4a5581(0xd1)]=null;}[_0x255515(0xd3)](){const _0x2bd40b=_0x255515;var _0x5da691;this[_0x2bd40b(0xfc)][_0x2bd40b(0xc8)](_0x2bd40b(0x12f)),(_0x5da691=this['_commandDisposable'])==null||_0x5da691[_0x2bd40b(0x11d)]();}['_handleOperation'](_0x5b2f26){const _0x3ac595=_0x255515;if([_0x3ac595(0x12b),_0x3ac595(0x12f),_0x3ac595(0x109)][_0x3ac595(0x107)](this[_0x3ac595(0xd0)])||!_0x5b2f26[_0x3ac595(0xac)][_0x3ac595(0xb8)]||_0x5b2f26['data'][_0x3ac595(0xb8)]===this['_collabSession'][_0x3ac595(0x117)]())return;this[_0x3ac595(0xd0)]===_0x3ac595(0xa0)&&this['_startFollowing']();let _0x8f2d5b=_0x5b2f26[_0x3ac595(0xac)][_0x3ac595(0xe0)];Object[_0x3ac595(0xfb)](_0x8f2d5b)[_0x3ac595(0xa4)](_0x2e6295=>{const _0x2d8e1c=_0x3ac595;this[_0x2d8e1c(0xf7)][_0x2d8e1c(0xb6)](_0x2e6295['id'],_0x2e6295[_0x2d8e1c(0x120)]?JSON[_0x2d8e1c(0xe7)](_0x2e6295[_0x2d8e1c(0x120)]):null,{'fromCollab':!0x0});});}[_0x255515(0x123)](){const _0x5856f9=_0x255515;var _0x1857a1;this[_0x5856f9(0xfc)][_0x5856f9(0xc8)](_0x5856f9(0x109)),(_0x1857a1=this['_commandDisposable'])==null||_0x1857a1[_0x5856f9(0x11d)]();}[_0x255515(0xa3)](){const _0x42c8c0=_0x255515;this[_0x42c8c0(0xfc)][_0x42c8c0(0xc8)](_0x42c8c0(0xa0)),this[_0x42c8c0(0x113)]();}};q=W([U(0x2,_0x3ceecb),U(0x3,_0x2e8c25(H)),U(0x4,_0x36e78)],q);function J(){const _0x5055ee=_0x255515;let _0x30d7c1=_0x49f746(G),_0x507ea0=_0x49f746(_0x407d65),_0x1d3427=_0x3fc517(()=>_0x507ea0[_0x5055ee(0x12c)](_0x104030[_0x5055ee(0xf2)]),void 0x0,!0x1,[]),[_0x3d81fb,_0x431784]=_0x54d631(null),[_0x28789c,_0x218f96]=_0x54d631(_0x5055ee(0xa0)),_0x51c5c6=_0xf04e19(null);return _0x4e5c5e(()=>(_0x1d3427&&_0x30d7c1['getLiveShareCoordinator'](_0x1d3427['getUnitId']())[_0x5055ee(0xbd)](_0x17b76b=>{const _0x1c35f3=_0x5055ee;_0x431784(_0x17b76b),_0x51c5c6[_0x1c35f3(0xb4)]=_0x17b76b['status$'][_0x1c35f3(0xde)](_0x438e4e=>{_0x218f96(_0x438e4e);});}),()=>{const _0x133e0b=_0x5055ee;var _0x263f78;(_0x263f78=_0x51c5c6['current'])==null||_0x263f78[_0x133e0b(0x100)](),_0x51c5c6[_0x133e0b(0xb4)]=null;}),[_0x1d3427,_0x30d7c1]),_0x3d81fb?_0x2b78ed(_0x132052,{'align':_0x5055ee(0x130),'disabled':_0x28789c==='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':_0x2b78ed(se,{'status':_0x28789c,'coordinator':_0x3d81fb}),'children':_0x2b78ed('button',{'className':_0x43282b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x28789c==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x28789c!==_0x5055ee(0x109)}),'type':'button','children':_0x2b78ed(_0x501a81,{})})}):null;}function se(_0x19b886){const _0x263110=_0x255515;let {status:_0xf694cc,coordinator:_0x162ebe}=_0x19b886;switch(_0xf694cc){case _0x263110(0xa0):return _0x2b78ed(ce,{'coordinator':_0x162ebe});case'following':return _0x2b78ed(le,{'coordinator':_0x162ebe});case'not-following':return _0x2b78ed(ue,{'coordinator':_0x162ebe});case _0x263110(0x109):return _0x2b78ed(de,{});case _0x263110(0x12b):return _0x2b78ed(Y,{'coordinator':_0x162ebe});default:return null;}}function ce(_0x15ea92){const _0x553815=_0x255515;let {coordinator:_0x61892b}=_0x15ea92;return _0x46c0ab(_0x33c60e,{'children':[_0x2b78ed(_0x553815(0xdb),{'className':_0x553815(0xc5),'children':_0x553815(0xf1)}),_0x2b78ed(_0x1d87b5,{'onClick':()=>_0x61892b[_0x553815(0xff)](),'children':_0x553815(0xc4)})]});}function le(_0xf7c07d){const _0x8ce120=_0x255515;let {coordinator:_0x44ab45}=_0xf7c07d;return _0x46c0ab(_0x33c60e,{'children':[_0x2b78ed(_0x8ce120(0xdb),{'className':_0x8ce120(0xc5),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x2b78ed(_0x1d87b5,{'onClick':()=>_0x44ab45[_0x8ce120(0xad)](),'children':_0x8ce120(0xaa)})]});}function ue(_0x4bd266){const _0xc09b4d=_0x255515;let {coordinator:_0x1bd947}=_0x4bd266;return _0x46c0ab(_0x33c60e,{'children':[_0x2b78ed(_0xc09b4d(0xdb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc09b4d(0x11a)}),_0x2b78ed(_0x1d87b5,{'variant':_0xc09b4d(0x103),'onClick':()=>_0x1bd947[_0xc09b4d(0xe5)](),'children':_0xc09b4d(0xcf)})]});}function Y(_0x43686c){const _0x5420ba=_0x255515;let {coordinator:_0x155788}=_0x43686c;return _0x46c0ab(_0x33c60e,{'children':[_0x2b78ed('div',{'className':_0x5420ba(0xc5),'children':_0x5420ba(0xd5)}),_0x2b78ed(_0x1d87b5,{'variant':_0x5420ba(0x12a),'onClick':()=>_0x155788[_0x5420ba(0xa1)](),'children':_0x5420ba(0xc1)})]});}function de(){return _0x2b78ed(_0x33c60e,{'children':'You\x27are\x20offline.'});}let X=class extends _0x516cea{constructor(_0x1dea67,_0x3de4de){super(),this['_injector']=_0x1dea67,this['_uiPartsService']=_0x3de4de,this['_mountLiveShare']();}[_0x255515(0xb7)](){const _0x70f274=_0x255515;this[_0x70f274(0x121)](this[_0x70f274(0xa6)][_0x70f274(0x12e)](_0xb35ac5['HEADER_MENU'],()=>_0x2af7a6(J,this[_0x70f274(0x10b)])));}};X=W([U(0x0,_0x2e8c25(_0x301770)),U(0x1,_0x396b3b)],X);var fe=_0x255515(0xe2),pe='1.0.0-alpha.2';const Z={};let Q=class extends _0x516cea{constructor(_0x460e31){const _0x314636=_0x255515;super(),this[_0x314636(0xce)]=_0x460e31,this[_0x314636(0x132)]();}[_0x255515(0x132)](){const _0x5bfe56=_0x255515;[_0x35ad51['id'],_0x4eaff8['id'],_0x825d3['id']][_0x5bfe56(0xa4)](_0x2f1557=>{const _0x174bcd=_0x5bfe56;this[_0x174bcd(0x121)](this[_0x174bcd(0xce)][_0x174bcd(0x104)](_0x2f1557));});}};Q=W([U(0x0,_0x2e8c25(H))],Q);let $=class extends _0x22dadf{constructor(_0x213cf8=Z,_0xe6139e,_0x2b2dd5){const _0x48b490=_0x255515;super(),this['_config']=_0x213cf8,this['_injector']=_0xe6139e,this[_0x48b490(0x116)]=_0x2b2dd5;let {..._0x35f72a}=_0x22904a({},Z,this['_config']);this[_0x48b490(0x116)][_0x48b490(0xcd)](_0x48b490(0xe8),_0x35f72a);}[_0x255515(0xc2)](){const _0x3e7d37=_0x255515;_0x4c4ef5(this['_injector'],_0x49a17a([[H],[G],[Q],[X]],this[_0x3e7d37(0x129)][_0x3e7d37(0xe6)])),_0x2efcc9(this['_injector'],[[Q]]);}[_0x255515(0xa7)](){const _0x73335b=_0x255515;_0x2efcc9(this[_0x73335b(0x10b)],[[X]]);}};V($,'type',_0x104030[_0x255515(0x11c)]),V($,_0x255515(0xab),_0x255515(0x134)),V($,_0x255515(0x125),fe),V($,'version',pe),$=W([_0x51ca48(_0x57b419),U(0x1,_0x2e8c25(_0x301770)),U(0x2,_0x3ceecb)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x12d49e=_0x56aa;(function(_0x5af5c6,_0x361e7e){const _0x424236=_0x56aa,_0xbb81b1=_0x5af5c6();while(!![]){try{const _0xff31b9=-parseInt(_0x424236(0x145))/0x1*(-parseInt(_0x424236(0x170))/0x2)+parseInt(_0x424236(0x104))/0x3*(-parseInt(_0x424236(0x17d))/0x4)+parseInt(_0x424236(0x125))/0x5*(parseInt(_0x424236(0x162))/0x6)+-parseInt(_0x424236(0x16e))/0x7+-parseInt(_0x424236(0x124))/0x8*(parseInt(_0x424236(0x10f))/0x9)+-parseInt(_0x424236(0x133))/0xa*(parseInt(_0x424236(0xeb))/0xb)+parseInt(_0x424236(0x135))/0xc*(parseInt(_0x424236(0x10b))/0xd);if(_0xff31b9===_0x361e7e)break;else _0xbb81b1['push'](_0xbb81b1['shift']());}catch(_0x21151d){_0xbb81b1['push'](_0xbb81b1['shift']());}}}(_0x29ad,0xdd24a));import{CollaborationEvent as _0x2dfd60,parseProtocolChangeset as _0x47a9e1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32c2a9,SessionStatus as _0x52fe0b,UniverCollaborationClientPlugin as _0x21f3e5}from'@univerjs-pro/collaboration-client';import{CommandType as _0x27732d,DependentOn as _0x1b6da4,Disposable as _0x4659c0,DisposableCollection as _0x58bd8e,ICommandService as _0x41f7a1,IConfigService as _0x348818,IUniverInstanceService as _0x1eddd0,Inject as _0x5247da,Injector as _0x408402,Plugin as _0x1502e3,RxDisposable as _0x5ca59e,UniverInstanceType as _0x14abf6,merge as _0x2dd70c,mergeOverrideWithDependencies as _0x18178b,registerDependencies as _0x59bf00,toDisposable as _0x2f05ef,touchDependencies as _0xa55cab}from'@univerjs/core';import{InsertSheetMutation as _0xa910e4,SetWorksheetActiveOperation as _0x58eadc}from'@univerjs/sheets';import{BehaviorSubject as _0x5700c9,Subject as _0x10b404}from'rxjs';import{takeUntil as _0x2af6df,throttleTime as _0x47be7d}from'rxjs/operators';import{SetScrollOperation as _0x548c90,SetZoomRatioOperation as _0x3d3ee9}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x22834b,IUIPartsService as _0x153cdd,connectInjector as _0x234790,useDependency as _0x2ca01c,useObservable as _0xdec5bf}from'@univerjs/ui';import{Button as _0x1fc5f3,Dropdown as _0x5d4586,clsx as _0x256ea0}from'@univerjs/design';import{LiveShareIcon as _0x4b5bb8}from'@univerjs/icons';import{useEffect as _0x590366,useRef as _0x2077b7,useState as _0x4d0fce}from'react';import{Fragment as _0x1b094c,jsx as _0x2e1826,jsxs as _0x53139}from'react/jsx-runtime';function z(_0x1df1a6){'@babel/helpers - typeof';const _0x596588=_0x56aa;return z=typeof Symbol==_0x596588(0x164)&&typeof Symbol[_0x596588(0x160)]=='symbol'?function(_0x500e9c){return typeof _0x500e9c;}:function(_0x49742b){const _0x6068da=_0x596588;return _0x49742b&&typeof Symbol==_0x6068da(0x164)&&_0x49742b[_0x6068da(0x13a)]===Symbol&&_0x49742b!==Symbol[_0x6068da(0x116)]?'symbol':typeof _0x49742b;},z(_0x1df1a6);}function B(_0x4c3a13,_0x4ccb3f){const _0x74e8fc=_0x56aa;if(z(_0x4c3a13)!=_0x74e8fc(0x176)||!_0x4c3a13)return _0x4c3a13;var _0x1fbcc9=_0x4c3a13[Symbol[_0x74e8fc(0x15f)]];if(_0x1fbcc9!==void 0x0){var _0x5d2630=_0x1fbcc9['call'](_0x4c3a13,_0x4ccb3f||_0x74e8fc(0x101));if(z(_0x5d2630)!='object')return _0x5d2630;throw TypeError(_0x74e8fc(0x11e));}return(_0x4ccb3f===_0x74e8fc(0x16b)?String:Number)(_0x4c3a13);}function V(_0x188519){const _0x542c52=_0x56aa;var _0xcd177e=B(_0x188519,_0x542c52(0x16b));return z(_0xcd177e)==_0x542c52(0x166)?_0xcd177e:_0xcd177e+'';}function H(_0x462b49,_0x603c26,_0x126fbd){const _0x2e6fad=_0x56aa;return(_0x603c26=V(_0x603c26))in _0x462b49?Object[_0x2e6fad(0xf4)](_0x462b49,_0x603c26,{'value':_0x126fbd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x462b49[_0x603c26]=_0x126fbd,_0x462b49;}var U=class extends _0x4659c0{constructor(..._0x3fd6f5){super(..._0x3fd6f5),H(this,'_sharedOperations',new Set()),H(this,'_reporters',new Set());}['registerSharedOperation'](_0x226e08){const _0x1a530b=_0x56aa;return this[_0x1a530b(0xfd)][_0x1a530b(0x138)](_0x226e08),_0x2f05ef(()=>this[_0x1a530b(0xfd)][_0x1a530b(0x120)](_0x226e08));}[_0x12d49e(0x169)](_0x116b99){const _0x13bce4=_0x12d49e;return this[_0x13bce4(0x15a)][_0x13bce4(0x138)](_0x116b99),_0x2f05ef(()=>this[_0x13bce4(0x15a)][_0x13bce4(0x120)](_0x116b99));}[_0x12d49e(0x158)](_0xe56dcf){const _0xe5f948=_0x12d49e;return this['_sharedOperations'][_0xe5f948(0x118)](_0xe56dcf);}[_0x12d49e(0x163)](_0x59edf5){const _0x124cc8=_0x12d49e;return Array[_0x124cc8(0x10d)](this[_0x124cc8(0x15a)])[_0x124cc8(0x115)](_0x1aa362=>_0x1aa362(_0x59edf5));}};function W(_0x36d2c6,_0x467d96){return function(_0x559162,_0x4f0bbf){_0x467d96(_0x559162,_0x4f0bbf,_0x36d2c6);};}function G(_0x40f686,_0x211469,_0x2eefbb,_0x33aa77){const _0x2957ac=_0x12d49e;var _0x9179eb=arguments[_0x2957ac(0x129)],_0x271f4a=_0x9179eb<0x3?_0x211469:_0x33aa77===null?_0x33aa77=Object[_0x2957ac(0x11f)](_0x211469,_0x2eefbb):_0x33aa77,_0xf16eb5;if(typeof Reflect=='object'&&typeof Reflect[_0x2957ac(0x117)]==_0x2957ac(0x164))_0x271f4a=Reflect[_0x2957ac(0x117)](_0x40f686,_0x211469,_0x2eefbb,_0x33aa77);else{for(var _0x317cc2=_0x40f686['length']-0x1;_0x317cc2>=0x0;_0x317cc2--)(_0xf16eb5=_0x40f686[_0x317cc2])&&(_0x271f4a=(_0x9179eb<0x3?_0xf16eb5(_0x271f4a):_0x9179eb>0x3?_0xf16eb5(_0x211469,_0x2eefbb,_0x271f4a):_0xf16eb5(_0x211469,_0x2eefbb))||_0x271f4a);}return _0x9179eb>0x3&&_0x271f4a&&Object[_0x2957ac(0xf4)](_0x211469,_0x2eefbb,_0x271f4a),_0x271f4a;}let K=class extends _0x5ca59e{constructor(_0x4917ee,_0x4db5b7,_0x3c3e1e){const _0x5d489d=_0x12d49e;super(),this[_0x5d489d(0x181)]=_0x4917ee,this[_0x5d489d(0x136)]=_0x4db5b7,this[_0x5d489d(0x121)]=_0x3c3e1e,H(this,_0x5d489d(0x132),new Map()),this['_init']();}async[_0x12d49e(0xfe)](_0x47b956){const _0x261a4b=_0x12d49e;return this[_0x261a4b(0x132)]['has'](_0x47b956)||await this[_0x261a4b(0x137)](_0x47b956),this['_entities']['get'](_0x47b956);}['getLiveShareCoordinatorSync'](_0x1ec7d7){const _0x7a971e=_0x12d49e;var _0x328cc7;return(_0x328cc7=this[_0x7a971e(0x132)]['get'](_0x1ec7d7))==null?null:_0x328cc7;}[_0x12d49e(0x154)](){const _0x5b2aba=_0x12d49e;this[_0x5b2aba(0x181)][_0x5b2aba(0x12c)](_0x14abf6[_0x5b2aba(0x157)])[_0x5b2aba(0x13c)](_0x2af6df(this[_0x5b2aba(0x14f)]))['subscribe'](async _0x4f66d7=>{const _0x359d4f=_0x5b2aba;let _0x83bdd8=_0x4f66d7[_0x359d4f(0x13f)][_0x359d4f(0x112)]();this[_0x359d4f(0x132)][_0x359d4f(0x118)](_0x83bdd8)||this[_0x359d4f(0x137)](_0x83bdd8);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x14abf6[_0x5b2aba(0x157)])[_0x5b2aba(0x13c)](_0x2af6df(this['dispose$']))[_0x5b2aba(0x127)](_0x409989=>{const _0x18122b=_0x5b2aba;let _0x90b7b6=_0x409989[_0x18122b(0x112)](),_0x3fca5c=this[_0x18122b(0x132)][_0x18122b(0x16f)](_0x90b7b6);_0x3fca5c==null||_0x3fca5c[_0x18122b(0x100)]();});}async[_0x12d49e(0x137)](_0x43f6b8){const _0x8cdb11=_0x12d49e;let _0x8f0051=await this[_0x8cdb11(0x121)][_0x8cdb11(0x102)](_0x43f6b8),_0x20947e=this[_0x8cdb11(0x136)]['createInstance'](J,_0x43f6b8,_0x8f0051);return _0x20947e[_0x8cdb11(0xfb)](),this[_0x8cdb11(0x132)][_0x8cdb11(0x109)](_0x43f6b8,_0x20947e),_0x20947e;}};K=G([W(0x0,_0x1eddd0),W(0x1,_0x5247da(_0x408402)),W(0x2,_0x5247da(_0x32c2a9))],K);let q=function(_0x455e5f){const _0x405d6c=_0x12d49e;return _0x455e5f[_0x405d6c(0x142)]=_0x405d6c(0x150),_0x455e5f['IDLE']=_0x405d6c(0x141),_0x455e5f[_0x405d6c(0x108)]=_0x405d6c(0xf2),_0x455e5f[_0x405d6c(0x11d)]=_0x405d6c(0x10c),_0x455e5f['PRESENTING']=_0x405d6c(0xf5),_0x455e5f;}({}),J=class extends _0x5ca59e{get['_status'](){const _0x201835=_0x12d49e;return this[_0x201835(0x107)][_0x201835(0x178)]();}constructor(_0x598eb4,_0x37d206,_0x4ca3b5,_0x69c79,_0x14f351){const _0x556c50=_0x12d49e;super(),this['_unitID']=_0x598eb4,this['_collabSession']=_0x37d206,this[_0x556c50(0x10e)]=_0x4ca3b5,this[_0x556c50(0x16c)]=_0x69c79,this['_commandService']=_0x14f351,H(this,_0x556c50(0x107),new _0x5700c9(_0x556c50(0x141))),H(this,_0x556c50(0x113),this['_status$'][_0x556c50(0x12a)]()),H(this,_0x556c50(0x154),!0x1),H(this,_0x556c50(0xed),null),H(this,_0x556c50(0xfc),null);}[_0x12d49e(0x100)](){const _0x5a1d5d=_0x12d49e;var _0x5ad786;(_0x5ad786=this[_0x5a1d5d(0xed)])==null||_0x5ad786[_0x5a1d5d(0x100)](),this[_0x5a1d5d(0x107)][_0x5a1d5d(0xf7)](_0x5a1d5d(0x141)),this['_status$'][_0x5a1d5d(0x148)]();}['getStatus'](){const _0x4ed593=_0x12d49e;return this[_0x4ed593(0xfa)];}[_0x12d49e(0xfb)](){const _0x186bd7=_0x12d49e;this[_0x186bd7(0x154)]||(this['_init']=!0x0,this[_0x186bd7(0x13d)][_0x186bd7(0x14e)][_0x186bd7(0x13c)](_0x2af6df(this[_0x186bd7(0x14f)]))[_0x186bd7(0x127)](_0x4650e9=>{const _0x38beda=_0x186bd7;switch(_0x4650e9){case _0x52fe0b['OFFLINE']:this[_0x38beda(0xf0)]();break;case _0x52fe0b[_0x38beda(0x14c)]:this['_handleOnline']();break;default:}}),this[_0x186bd7(0x13d)][_0x186bd7(0x15e)][_0x186bd7(0x13c)](_0x2af6df(this[_0x186bd7(0x14f)]))[_0x186bd7(0x127)](_0x24618d=>{const _0x1afb64=_0x186bd7;let {eventID:_0x2bca3d}=_0x24618d;switch(_0x2bca3d){case _0x2dfd60[_0x1afb64(0x149)]:this[_0x1afb64(0xf9)](_0x24618d);break;case _0x2dfd60[_0x1afb64(0xf8)]:this[_0x1afb64(0x126)](_0x24618d);break;case _0x2dfd60[_0x1afb64(0x11a)]:this['_handleTerminate']();break;case _0x2dfd60[_0x1afb64(0x111)]:this[_0x1afb64(0x13e)](_0x24618d);break;default:}}));}[_0x12d49e(0x179)](){const _0x8b7b9e=_0x12d49e;this['_collabSession'][_0x8b7b9e(0x155)]({'eventID':_0x2dfd60[_0x8b7b9e(0x140)],'data':{'unitID':this[_0x8b7b9e(0x14d)],'userID':this[_0x8b7b9e(0x13d)][_0x8b7b9e(0x143)]()}},this[_0x8b7b9e(0x14d)]);}['stopPresenting'](){const _0x10cd91=_0x12d49e;this['_status']===_0x10cd91(0xf5)&&(this[_0x10cd91(0x107)][_0x10cd91(0xf7)](_0x10cd91(0x141)),this[_0x10cd91(0x13d)][_0x10cd91(0x155)]({'eventID':_0x2dfd60[_0x10cd91(0x11a)],'data':{'unitID':this[_0x10cd91(0x14d)]}},this[_0x10cd91(0x14d)]));}[_0x12d49e(0x180)](){const _0x242004=_0x12d49e;this[_0x242004(0xfa)]==='not-following'&&(this[_0x242004(0x107)]['next'](_0x242004(0xf2)),this[_0x242004(0x123)]());}['stopFollowing'](){const _0x326dd5=_0x12d49e;this[_0x326dd5(0xfa)]===_0x326dd5(0xf2)&&this['_stopFollowing']();}['_handleNewHost'](_0x374469){const _0x162050=_0x12d49e;let {presenter:_0x5df368}=_0x374469[_0x162050(0xef)],_0x50cb3d=this['_collabSession'][_0x162050(0x143)]();this[_0x162050(0xfc)]=_0x5df368,_0x5df368===_0x50cb3d?(this['_stopFollowing'](),this[_0x162050(0x152)]()):this[_0x162050(0xfa)]!=='not-following'&&(this['_stopPresenting'](),this[_0x162050(0x123)]());}[_0x12d49e(0x165)](){const _0x28b5f8=_0x12d49e;let _0x433c96={'eventID':_0x2dfd60['LIVESHARE_FETCH_OPERATIONS']};this[_0x28b5f8(0x13d)][_0x28b5f8(0x155)](_0x433c96,this[_0x28b5f8(0x14d)]);}[_0x12d49e(0x167)](){const _0x4ce878=_0x12d49e;this[_0x4ce878(0xfc)]=null,this[_0x4ce878(0xfa)]!==_0x4ce878(0xf5)&&this[_0x4ce878(0x15b)]();}['_handleNewChangeSets'](_0x4c4dc1){const _0x312b90=_0x12d49e;if(this['_status']===_0x312b90(0xf2)&&this[_0x312b90(0xfc)]===_0x4c4dc1['data'][_0x312b90(0x182)]){let _0x39e6d4=_0x47a9e1(_0x4c4dc1[_0x312b90(0xef)])[_0x312b90(0x105)][_0x312b90(0x151)]()[_0x312b90(0x173)](_0x1df189=>_0x1df189['id']===_0xa910e4['id']);if(_0x39e6d4){let _0x15f301=_0x39e6d4[_0x312b90(0x17c)][_0x312b90(0x134)],_0x55d94a=_0x39e6d4[_0x312b90(0x17c)][_0x312b90(0x174)]['id'];setTimeout(()=>{const _0x32f359=_0x312b90;this[_0x32f359(0xf3)]['executeCommand'](_0x58eadc['id'],{'unitId':_0x15f301,'subUnitId':_0x55d94a},{'fromCollab':!0x0});});}}}[_0x12d49e(0x152)](){const _0x10346b=_0x12d49e;var _0x24617d;(_0x24617d=this[_0x10346b(0xed)])==null||_0x24617d[_0x10346b(0x100)](),this[_0x10346b(0x107)][_0x10346b(0xf7)]('presenting');let _0x18bdf3=new Map(),_0x4d6144=this[_0x10346b(0xed)]=new _0x58bd8e();_0x4d6144['add'](_0x2f05ef(()=>{const _0x1807d0=_0x10346b;_0x18bdf3[_0x1807d0(0x10a)](({subject:_0xe9fd2b,subscription:_0x588410})=>{const _0x5d9a11=_0x1807d0;_0x588410[_0x5d9a11(0x17e)](),_0xe9fd2b['complete']();}),_0x18bdf3[_0x1807d0(0x11b)]();})),_0x4d6144[_0x10346b(0x138)](this[_0x10346b(0xf3)][_0x10346b(0x106)](_0x5e4287=>{const _0x4788fd=_0x10346b;if(_0x5e4287[_0x4788fd(0x131)]!==_0x27732d['OPERATION']||!this[_0x4788fd(0x16c)][_0x4788fd(0x158)](_0x5e4287['id']))return;let {id:_0x4f5fbb}=_0x5e4287,_0x31aa58;if(_0x18bdf3[_0x4788fd(0x118)](_0x4f5fbb))_0x31aa58=_0x18bdf3[_0x4788fd(0x16f)](_0x4f5fbb)[_0x4788fd(0x110)];else{var _0x30f24b;_0x31aa58=new _0x10b404();let _0x99010d=_0x31aa58[_0x4788fd(0x13c)](_0x47be7d((_0x30f24b=this['_configService'][_0x4788fd(0x139)](_0x4788fd(0x128)))==null?0xc8:_0x30f24b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4788fd(0x127)](_0x2926ed=>{const _0x58ad0c=_0x4788fd;this['_collabSession']['send']({'eventID':_0x2dfd60['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x58ad0c(0x14d)],'operations':{[_0x2926ed['id']]:{'id':_0x2926ed['id'],'params':JSON[_0x58ad0c(0x11c)](_0x2926ed['params'])}}}},this[_0x58ad0c(0x14d)]);});_0x18bdf3[_0x4788fd(0x109)](_0x4f5fbb,{'subject':_0x31aa58,'subscription':_0x99010d});}_0x31aa58[_0x4788fd(0xf7)](_0x5e4287);})),this[_0x10346b(0x16c)][_0x10346b(0x163)](this[_0x10346b(0x14d)])[_0x10346b(0x10a)](_0x1fb644=>this['_collabSession'][_0x10346b(0x155)]({'eventID':_0x2dfd60['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x10346b(0x14d)],'operations':{[_0x1fb644['id']]:{'id':_0x1fb644['id'],'params':JSON[_0x10346b(0x11c)](_0x1fb644[_0x10346b(0x17c)])}}}},this[_0x10346b(0x14d)]));}[_0x12d49e(0x15d)](){const _0x32ae5d=_0x12d49e;var _0x804031;this[_0x32ae5d(0x107)][_0x32ae5d(0xf7)](_0x32ae5d(0x141)),(_0x804031=this[_0x32ae5d(0xed)])==null||_0x804031[_0x32ae5d(0x100)](),this['_commandDisposable']=null;}[_0x12d49e(0x123)](){const _0x2be806=_0x12d49e;var _0x44643d;(_0x44643d=this[_0x2be806(0xed)])==null||_0x44643d[_0x2be806(0x100)](),this[_0x2be806(0x107)][_0x2be806(0xf7)]('following');}[_0x12d49e(0x15b)](){const _0xd265d0=_0x12d49e;var _0xf9bca3;this[_0xd265d0(0x107)][_0xd265d0(0xf7)](_0xd265d0(0x141)),(_0xf9bca3=this[_0xd265d0(0xed)])==null||_0xf9bca3[_0xd265d0(0x100)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x4ea4f8=_0x12d49e;var _0x115742;this[_0x4ea4f8(0x107)][_0x4ea4f8(0xf7)](_0x4ea4f8(0x10c)),(_0x115742=this[_0x4ea4f8(0xed)])==null||_0x115742[_0x4ea4f8(0x100)]();}[_0x12d49e(0x126)](_0x534275){const _0x47e430=_0x12d49e;if([_0x47e430(0xf5),'not-following','offline'][_0x47e430(0x161)](this[_0x47e430(0xfa)])||!_0x534275[_0x47e430(0xef)]['presenter']||_0x534275[_0x47e430(0xef)][_0x47e430(0x159)]===this['_collabSession'][_0x47e430(0x143)]())return;this['_status']==='idle'&&this[_0x47e430(0x123)]();let _0x3e4257=_0x534275[_0x47e430(0xef)][_0x47e430(0x114)];Object[_0x47e430(0xec)](_0x3e4257)[_0x47e430(0x10a)](_0x223354=>{const _0x50eb01=_0x47e430;this[_0x50eb01(0xf3)][_0x50eb01(0x15c)](_0x223354['id'],_0x223354[_0x50eb01(0x17c)]?JSON[_0x50eb01(0x14b)](_0x223354[_0x50eb01(0x17c)]):null,{'fromCollab':!0x0});});}[_0x12d49e(0xf0)](){const _0x46d52e=_0x12d49e;var _0x3c91b0;this[_0x46d52e(0x107)]['next'](_0x46d52e(0x150)),(_0x3c91b0=this[_0x46d52e(0xed)])==null||_0x3c91b0[_0x46d52e(0x100)]();}[_0x12d49e(0x156)](){const _0x5ccdbe=_0x12d49e;this[_0x5ccdbe(0x107)]['next']('idle'),this['_fetchOperations']();}};J=G([W(0x2,_0x348818),W(0x3,_0x5247da(U)),W(0x4,_0x41f7a1)],J);var oe=_0x12d49e(0x16a),se='1.0.0-alpha.3';const Y={};let X=class extends _0x4659c0{constructor(_0xcd1412){const _0x9fcf53=_0x12d49e;super(),this[_0x9fcf53(0x16c)]=_0xcd1412,this[_0x9fcf53(0x154)]();}[_0x12d49e(0x154)](){const _0x5e33bd=_0x12d49e;[_0x3d3ee9['id'],_0x548c90['id'],_0x58eadc['id']][_0x5e33bd(0x10a)](_0x5b6e8c=>{const _0x5bd46e=_0x5e33bd;this['disposeWithMe'](this['_liveShareService'][_0x5bd46e(0x12d)](_0x5b6e8c));});}};X=G([W(0x0,_0x5247da(U))],X);function ce(){const _0x40248c=_0x12d49e;let _0x3fbc85=_0x2ca01c(K),_0x50d4d0=_0x2ca01c(_0x1eddd0),_0x4ac9d3=_0xdec5bf(()=>_0x50d4d0[_0x40248c(0x168)](_0x14abf6[_0x40248c(0x157)]),void 0x0,!0x1,[]),[_0x42268e,_0x17c1d2]=_0x4d0fce(null),[_0xa9689e,_0x18b7da]=_0x4d0fce(_0x40248c(0x141)),_0x2fb899=_0x2077b7(null);return _0x590366(()=>(_0x4ac9d3&&_0x3fbc85[_0x40248c(0xfe)](_0x4ac9d3[_0x40248c(0x112)]())['then'](_0x1c59c2=>{const _0xe1e8f6=_0x40248c;_0x17c1d2(_0x1c59c2),_0x2fb899[_0xe1e8f6(0x13b)]=_0x1c59c2[_0xe1e8f6(0x113)][_0xe1e8f6(0x127)](_0x3b0da2=>{_0x18b7da(_0x3b0da2);});}),()=>{const _0x256803=_0x40248c;var _0x500f63;(_0x500f63=_0x2fb899[_0x256803(0x13b)])==null||_0x500f63[_0x256803(0x17e)](),_0x2fb899['current']=null;}),[_0x4ac9d3,_0x3fbc85]),_0x42268e?_0x2e1826(_0x5d4586,{'align':_0x40248c(0x17f),'disabled':_0xa9689e===_0x40248c(0x150),'className':_0x40248c(0x144),'overlay':_0x2e1826(Z,{'status':_0xa9689e,'coordinator':_0x42268e}),'children':_0x2e1826(_0x40248c(0x175),{'className':_0x256ea0(_0x40248c(0x122),{'univer-cursor-not-allowed':_0xa9689e===_0x40248c(0x150),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xa9689e!==_0x40248c(0x150)}),'type':'button','children':_0x2e1826(_0x4b5bb8,{})})}):null;}function Z(_0xf12cc7){const _0xe8b6a1=_0x12d49e;let {status:_0x5574a7,coordinator:_0xc5d751}=_0xf12cc7;switch(_0x5574a7){case _0xe8b6a1(0x141):return _0x2e1826(le,{'coordinator':_0xc5d751});case'following':return _0x2e1826(ue,{'coordinator':_0xc5d751});case'not-following':return _0x2e1826(de,{'coordinator':_0xc5d751});case _0xe8b6a1(0x150):return _0x2e1826(pe,{});case _0xe8b6a1(0xf5):return _0x2e1826(fe,{'coordinator':_0xc5d751});default:return null;}}function le(_0x347889){const _0x1ef0bc=_0x12d49e;let {coordinator:_0x3f288c}=_0x347889;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x1ef0bc(0x177),{'className':_0x1ef0bc(0x146),'children':'Present\x20this\x20document'}),_0x2e1826(_0x1fc5f3,{'onClick':()=>_0x3f288c[_0x1ef0bc(0x179)](),'children':'Start'})]});}function _0x29ad(){const _0x12240a=['_handleNewHost','_status','init','_presenter','_sharedOperations','getLiveShareCoordinator','Stop\x20following','dispose','default','requireSession','override','452748yIgsgK','mutations','onCommandExecuted','_status$','FOLLOWING','set','forEach','575770stZGgZ','not-following','from','_configService','405APGCvB','subject','NEW_CHANGESETS','getUnitId','status$','operations','map','prototype','decorate','has','text','LIVESHARE_TERMINATE','clear','stringify','NOT_FOLLOWING','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getOwnPropertyDescriptor','delete','_collabSessionService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_startFollowing','180936eEMKwV','3070MxyiFc','_handleOperation','subscribe','SAME_OPERATION_SHARE_INTERVAL','length','asObservable','UNIVER_UNKNOWN','getTypeOfUnitAdded$','registerSharedOperation','registerComponent','UNIVER_LIVE_SHARE_PLUGIN','onStarting','type','_entities','1610rxCgkg','unitId','972teGhAp','_injector','_startLiveShareCoordinator','add','getConfig','constructor','current','pipe','_collabSession','_handleNewChangeSets','unit','LIVESHARE_REQUEST_HOST','idle','OFFLINE','getMemberID','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','1030Fpdstu','univer-mb-3\x20univer-w-full\x20univer-text-sm','_config','complete','LIVESHARE_NEW_HOST','HEADER_MENU','parse','ONLINE','_unitID','sessionStatus$','dispose$','offline','reverse','_startPresenting','_mountLiveShare','_init','send','_handleOnline','UNIVER_SHEET','shouldShareOperation','presenter','_reporters','_beIdle','executeCommand','_stopPresenting','event$','toPrimitive','iterator','includes','7368CsJZCd','getInitialStates','function','_fetchOperations','symbol','_handleTerminate','getCurrentTypeOfUnit$','registerInitialStateReporter','@univerjs-pro/live-share','string','_liveShareService','pluginName','4054624TqWLXY','get','746kEAlTF','live-share.config','_uiPartsService','find','sheet','button','object','div','getValue','tryStartPresenting','stopPresenting','You\x27are\x20offline.','params','40aUoGlQ','unsubscribe','end','startFollowing','_univerInstanceService','memberID','48763RkUsYT','values','_commandDisposable','setConfig','data','_handleOffline','stopFollowing','following','_commandService','defineProperty','presenting','You\x27re\x20not\x20following\x20the\x20presenter','next','LIVESHARE_OPERATION'];_0x29ad=function(){return _0x12240a;};return _0x29ad();}function _0x56aa(_0xe224c0,_0x40afac){_0xe224c0=_0xe224c0-0xeb;const _0x29ad87=_0x29ad();let _0x56aaba=_0x29ad87[_0xe224c0];return _0x56aaba;}function ue(_0x43cfc0){const _0x55bb5d=_0x12d49e;let {coordinator:_0x11fa2d}=_0x43cfc0;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x55bb5d(0x177),{'className':_0x55bb5d(0x146),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x2e1826(_0x1fc5f3,{'onClick':()=>_0x11fa2d[_0x55bb5d(0xf1)](),'children':_0x55bb5d(0xff)})]});}function de(_0x31f80a){const _0x377687=_0x12d49e;let {coordinator:_0x1f4b0e}=_0x31f80a;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x377687(0x177),{'className':_0x377687(0x146),'children':_0x377687(0xf6)}),_0x2e1826(_0x1fc5f3,{'variant':_0x377687(0x119),'onClick':()=>_0x1f4b0e[_0x377687(0x180)](),'children':'Start\x20following'})]});}function fe(_0x5717e0){const _0x41daf2=_0x12d49e;let {coordinator:_0x3da7d0}=_0x5717e0;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x41daf2(0x177),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2e1826(_0x1fc5f3,{'variant':'default','onClick':()=>_0x3da7d0[_0x41daf2(0x17a)](),'children':'Stop\x20presenting'})]});}function pe(){const _0x5938fd=_0x12d49e;return _0x2e1826(_0x1b094c,{'children':_0x5938fd(0x17b)});}let Q=class extends _0x4659c0{constructor(_0x45f985,_0x15120f){const _0x1fbafb=_0x12d49e;super(),this[_0x1fbafb(0x136)]=_0x45f985,this[_0x1fbafb(0x172)]=_0x15120f,this[_0x1fbafb(0x153)]();}[_0x12d49e(0x153)](){const _0x46045c=_0x12d49e;this['disposeWithMe'](this[_0x46045c(0x172)][_0x46045c(0x12e)](_0x22834b[_0x46045c(0x14a)],()=>_0x234790(ce,this[_0x46045c(0x136)])));}};Q=G([W(0x0,_0x5247da(_0x408402)),W(0x1,_0x153cdd)],Q);let $=class extends _0x1502e3{constructor(_0xe98712=Y,_0x574da0,_0x33a96a){const _0x44df31=_0x12d49e;super(),this['_config']=_0xe98712,this['_injector']=_0x574da0,this['_configService']=_0x33a96a;let {..._0x40976a}=_0x2dd70c({},Y,this[_0x44df31(0x147)]);this[_0x44df31(0x10e)][_0x44df31(0xee)](_0x44df31(0x171),_0x40976a);}[_0x12d49e(0x130)](){const _0x5ca9d9=_0x12d49e;_0x59bf00(this['_injector'],_0x18178b([[U],[K],[X],[Q]],this['_config'][_0x5ca9d9(0x103)])),_0xa55cab(this[_0x5ca9d9(0x136)],[[X]]);}['onRendered'](){const _0x373fa8=_0x12d49e;_0xa55cab(this[_0x373fa8(0x136)],[[Q]]);}};H($,'type',_0x14abf6[_0x12d49e(0x12b)]),H($,_0x12d49e(0x16d),_0x12d49e(0x12f)),H($,'packageName',oe),H($,'version',se),$=G([_0x1b6da4(_0x21f3e5),W(0x1,_0x5247da(_0x408402)),W(0x2,_0x348818)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import './global.css';
|
|
2
|
-
export
|
|
3
|
-
export { LiveShareController, LiveShareCoordinator, LiveShareStatus } from './controllers/live-share/live-share.controller';
|
|
4
|
-
export { DesktopLiveShareController } from './controllers/live-share/ui.controller';
|
|
2
|
+
export { LiveShareController, LiveShareStatus, } from './controllers/live-share/live-share.controller';
|
|
5
3
|
export { UniverLiveSharePlugin } from './plugin';
|
|
6
|
-
export { LiveShareService } from './services/live-share.service';
|
|
7
|
-
export { LiveShare } from './views/components/LiveShare';
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xa7ab2e,_0x521669){const _0x555aaa=_0x25d4,_0x4cd563=_0xa7ab2e();while(!![]){try{const _0x194531=-parseInt(_0x555aaa(0x123))/0x1+parseInt(_0x555aaa(0x11c))/0x2+parseInt(_0x555aaa(0x128))/0x3*(-parseInt(_0x555aaa(0x135))/0x4)+-parseInt(_0x555aaa(0x117))/0x5+parseInt(_0x555aaa(0x127))/0x6*(parseInt(_0x555aaa(0x121))/0x7)+-parseInt(_0x555aaa(0x124))/0x8*(-parseInt(_0x555aaa(0x120))/0x9)+parseInt(_0x555aaa(0x142))/0xa*(parseInt(_0x555aaa(0x139))/0xb);if(_0x194531===_0x521669)break;else _0x4cd563['push'](_0x4cd563['shift']());}catch(_0x35d3a2){_0x4cd563['push'](_0x4cd563['shift']());}}}(_0x34e3,0x3fefa),function(_0x3b2228,_0x5d9e2e){const _0x57ff58=_0x25d4;typeof exports==_0x57ff58(0x11e)&&typeof module<'u'?_0x5d9e2e(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x57ff58(0x126)&&define[_0x57ff58(0x11d)]?define([_0x57ff58(0x122),_0x57ff58(0x12e),_0x57ff58(0x11b)],_0x5d9e2e):(_0x3b2228=typeof globalThis<'u'?globalThis:_0x3b2228||self,_0x5d9e2e(_0x3b2228[_0x57ff58(0x141)],_0x3b2228[_0x57ff58(0x12c)],_0x3b2228[_0x57ff58(0x13d)]));}(this,function(_0x3a0e75,_0x4e3387,_0x2d4c57){const _0x485cb3=_0x25d4;function _0x30db42(_0x37c575){'@babel/helpers - typeof';const _0x595a2c=_0x25d4;return _0x30db42=typeof Symbol==_0x595a2c(0x126)&&typeof Symbol['iterator']==_0x595a2c(0x147)?function(_0x5a8ba5){return typeof _0x5a8ba5;}:function(_0x5cd5fb){const _0xab42ab=_0x595a2c;return _0x5cd5fb&&typeof Symbol=='function'&&_0x5cd5fb['constructor']===Symbol&&_0x5cd5fb!==Symbol[_0xab42ab(0x138)]?'symbol':typeof _0x5cd5fb;},_0x30db42(_0x37c575);}function _0x9ef0c8(_0x375f5a,_0x43bf2a){const _0x13e30b=_0x25d4;if(_0x30db42(_0x375f5a)!=_0x13e30b(0x11e)||!_0x375f5a)return _0x375f5a;var _0xd47e75=_0x375f5a[Symbol[_0x13e30b(0x11f)]];if(_0xd47e75!==void 0x0){var _0x1dec81=_0xd47e75[_0x13e30b(0x119)](_0x375f5a,_0x43bf2a||_0x13e30b(0x140));if(_0x30db42(_0x1dec81)!=_0x13e30b(0x11e))return _0x1dec81;throw TypeError(_0x13e30b(0x13c));}return(_0x43bf2a==='string'?String:Number)(_0x375f5a);}function _0x2684ab(_0x35661a){const _0x1b33bc=_0x25d4;var _0x13f8ad=_0x9ef0c8(_0x35661a,_0x1b33bc(0x115));return _0x30db42(_0x13f8ad)==_0x1b33bc(0x147)?_0x13f8ad:_0x13f8ad+'';}function _0x27fd65(_0x46b162,_0x5808ac,_0x2821db){return(_0x5808ac=_0x2684ab(_0x5808ac))in _0x46b162?Object['defineProperty'](_0x46b162,_0x5808ac,{'value':_0x2821db,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46b162[_0x5808ac]=_0x2821db,_0x46b162;}var _0x461c0e=class extends _0x2d4c57['FUniver']{constructor(..._0x4110c6){const _0x228bda=_0x25d4;super(..._0x4110c6),_0x27fd65(this,_0x228bda(0x116),void 0x0);}[_0x485cb3(0x136)](_0x2571f3){const _0x32cd26=_0x485cb3;this[_0x32cd26(0x116)]=_0x2571f3[_0x32cd26(0x11a)](_0x3a0e75[_0x32cd26(0x132)]);}[_0x485cb3(0x12d)](){const _0x250c87=_0x485cb3;var _0x3504c1;let _0x59fb9a=this['_injector'][_0x250c87(0x11a)](_0x4e3387['IUniverInstanceService'])[_0x250c87(0x13a)](_0x4e3387[_0x250c87(0x13f)][_0x250c87(0x144)]);if(!_0x59fb9a)throw Error(_0x250c87(0x137));let _0x2287f6=_0x59fb9a['getUnitId'](),_0x2f65ab=this['_liveShareController'][_0x250c87(0x131)](_0x2287f6);return(_0x3504c1=_0x2f65ab==null?void 0x0:_0x2f65ab['getStatus']())==null?_0x3a0e75['LiveShareStatus'][_0x250c87(0x12b)]:_0x3504c1;}[_0x485cb3(0x143)](){const _0x33adc7=_0x485cb3;let _0x34d14e=this[_0x33adc7(0x125)][_0x33adc7(0x11a)](_0x4e3387[_0x33adc7(0x129)])[_0x33adc7(0x13a)](_0x4e3387[_0x33adc7(0x13f)][_0x33adc7(0x144)]);if(!_0x34d14e)throw Error(_0x33adc7(0x137));let _0x37d344=_0x34d14e[_0x33adc7(0x146)](),_0x5b483b=this['_liveShareController'][_0x33adc7(0x131)](_0x37d344);if(!_0x5b483b)throw Error(_0x33adc7(0x145));_0x5b483b[_0x33adc7(0x143)]();}[_0x485cb3(0x118)](){const _0x42f93a=_0x485cb3;let _0x71ff19=this[_0x42f93a(0x125)][_0x42f93a(0x11a)](_0x4e3387[_0x42f93a(0x129)])[_0x42f93a(0x13a)](_0x4e3387[_0x42f93a(0x13f)][_0x42f93a(0x144)]);if(!_0x71ff19)throw Error(_0x42f93a(0x137));let _0x50ccdc=_0x71ff19[_0x42f93a(0x146)](),_0x4bc686=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x50ccdc);if(!_0x4bc686)throw Error(_0x42f93a(0x145));_0x4bc686['stopFollowing']();}[_0x485cb3(0x148)](){const _0xc178dc=_0x485cb3;let _0x3253c7=this[_0xc178dc(0x125)][_0xc178dc(0x11a)](_0x4e3387['IUniverInstanceService'])[_0xc178dc(0x13a)](_0x4e3387[_0xc178dc(0x13f)][_0xc178dc(0x144)]);if(!_0x3253c7)throw Error(_0xc178dc(0x137));let _0xa12720=_0x3253c7[_0xc178dc(0x146)](),_0x3a45e6=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xa12720);if(!_0x3a45e6)throw Error(_0xc178dc(0x145));_0x3a45e6[_0xc178dc(0x12f)]();}[_0x485cb3(0x134)](){const _0xe20107=_0x485cb3;let _0xbcbf0e=this['_injector'][_0xe20107(0x11a)](_0x4e3387[_0xe20107(0x129)])['getCurrentUnitOfType'](_0x4e3387[_0xe20107(0x13f)]['UNIVER_SHEET']);if(!_0xbcbf0e)throw Error('No\x20active\x20workbook\x20found.');let _0x50bd8f=_0xbcbf0e[_0xe20107(0x146)](),_0x417612=this[_0xe20107(0x116)][_0xe20107(0x131)](_0x50bd8f);if(!_0x417612)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x417612[_0xe20107(0x134)]();}};_0x2d4c57[_0x485cb3(0x13b)][_0x485cb3(0x133)](_0x461c0e);var _0x27e892=class extends _0x2d4c57[_0x485cb3(0x12a)]{get[_0x485cb3(0x13e)](){const _0x32f306=_0x485cb3;return _0x3a0e75[_0x32f306(0x130)];}};_0x2d4c57['FEnum'][_0x485cb3(0x133)](_0x27e892);}));function _0x25d4(_0x453932,_0xa9da3e){_0x453932=_0x453932-0x115;const _0x34e30b=_0x34e3();let _0x25d480=_0x34e30b[_0x453932];return _0x25d480;}function _0x34e3(){const _0x53197b=['@univerjs/core','tryStartPresenting','LiveShareStatus','getLiveShareCoordinatorSync','LiveShareController','extend','stopPresenting','13016jfjSOA','_initialize','No\x20active\x20workbook\x20found.','prototype','7766ehPMBQ','getCurrentUnitOfType','FUniver','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverCoreFacade','LiveShareStatusEnum','UniverInstanceType','default','UniverProLiveShare','7690eIZoKu','startFollowing','UNIVER_SHEET','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getUnitId','symbol','startPresenting','string','_liveShareController','2495095twWRUg','stopFollowing','call','get','@univerjs/core/facade','613204cLZsXx','amd','object','toPrimitive','18BLnymW','259lQQdIX','@univerjs-pro/live-share','35885pWpyYk','1542264EIADcM','_injector','function','8604IuGqhV','453JDpHCt','IUniverInstanceService','FEnum','IDLE','UniverCore','getLiveShareStatus'];_0x34e3=function(){return _0x53197b;};return _0x34e3();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2ff3(_0x31010f,_0x1a8fc0){_0x31010f=_0x31010f-0x119;const _0x53e425=_0x53e4();let _0x2ff327=_0x53e425[_0x31010f];return _0x2ff327;}function _0x53e4(){const _0x25d307=['values','createElement','You\x27are\x20offline.','mask','presenting','NOT_FOLLOWING','Start','subject','UniverIcon','SessionStatus','pipe','replace','getConfig','touchDependencies','BehaviorSubject','SetWorksheetActiveOperation','UniverSheetsUi','none','Present\x20this\x20document','183188uHuqqe','_init','init','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','1em','includes','sheet','idle','react/jsx-runtime','@univerjs/design','constructor','onStarting','IConfigService','executeCommand','override','20mAlKTL','status$','requireSession','xlink:href','UniverLiveSharePlugin','forwardRef','Disposable','tryStartPresenting','amd','DisposableCollection','button','params','memberID','defineProperty','ONLINE','presenter','_handleOperation','default','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','react','parseProtocolChangeset','find','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_unitID','@univerjs-pro/live-share','useRef','UniverCollaborationClientPlugin','delete','dispose','You\x27re\x20presenting\x20the\x20document','use','svg','_handleOnline','getTypeOfUnitAdded$','stopPresenting','fill','_collabSession','Fragment','not-following','evenodd','get','getOwnPropertyDescriptor','trim','rxjs','Plugin','_commandService','_startPresenting','2991600SMweUZ','InsertSheetMutation','registerInitialStateReporter','decorate','@univerjs/ui','UniverProLiveShare','ICommandService','offline','UNIVER_SHEET','LIVESHARE_TERMINATE','Button','28800HXTJAQ','SetScrollOperation','738324Zrtqhi','map','onCommandExecuted','_fetchOperations','getLiveShareCoordinatorSync','disposeWithMe','mergeOverrideWithDependencies','getCurrentTypeOfUnit$','Start\x20following','getLiveShareCoordinator','FOLLOWING','live-share-icon','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','getInitialStates','toDisposable','DependentOn','following','0\x200\x2017\x2017','current','forEach','type','UniverSheets','then','registerSharedOperation','LiveShareService','live-share.config','clsx','@univerjs/sheets','132JlOcGA','Injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getTypeOfUnitDisposed$','_startFollowing','operations','IDLE','function','_commandDisposable','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','_handleOffline','stroke','60YBiAvn','_reporters','@univerjs-pro/collaboration-client','symbol','version','connectInjector','_mountLiveShare','exports','UniverCore','UniverProCollaborationClient','text','attrs','end','url(#$1','_uiPartsService','operators','getStatus','UniverUi','Inject','entries','Dropdown','string','LiveShareIcon','_handleTerminate','LIVESHARE_OPERATION','LiveShareStatus','20hLdKZh','children','stopFollowing','UniverInstanceType','_sharedOperations','SAME_OPERATION_SHARE_INTERVAL','packageName','UNIVER_LIVE_SHARE_PLUGIN','useState','_presenter','UNIVER_UNKNOWN','You\x27re\x20not\x20following\x20the\x20presenter','has','_beIdle','useObservable','merge','NEW_CHANGESETS','set','http://www.w3.org/2000/svg','LIVESHARE_FETCH_OPERATIONS','_status','_injector','_status$','_liveShareService','CollaborationEvent','registerDependencies','UniverProCollaboration','_stopFollowing','takeUntil','complete','toPrimitive','currentColor','1242zUpYdK','defs','_config','Subject','LIVESHARE_REQUEST_HOST','BuiltInUIPart','jsx','getMemberID','subscribe','29099PYnNlH','1289772iiqdeR','startFollowing','mutations','clear','_collabSessionService','from','add','getUnitId','pluginName','call','Stop\x20presenting','UniverDesign','_stopPresenting','DesktopLiveShareController','next','unit','stringify','length','jsxs','substring','reverse','idSuffix','HEADER_MENU','CommandType','React','shouldShareOperation','_univerInstanceService','data','dispose$','rxjs/operators','SetZoomRatioOperation','object','unsubscribe','colorChannel1','tag','_startLiveShareCoordinator','path','send','createInstance','div','defIds','iterator','RxDisposable','31543TNAZtn','_configService','useDependency','_entities'];_0x53e4=function(){return _0x25d307;};return _0x53e4();}(function(_0x5bc56b,_0x5b32ce){const _0x50e402=_0x2ff3,_0xa3766=_0x5bc56b();while(!![]){try{const _0x348a61=-parseInt(_0x50e402(0x1f3))/0x1*(parseInt(_0x50e402(0x184))/0x2)+-parseInt(_0x50e402(0x158))/0x3+-parseInt(_0x50e402(0x20a))/0x4*(-parseInt(_0x50e402(0x19e))/0x5)+-parseInt(_0x50e402(0x1be))/0x6*(-parseInt(_0x50e402(0x1c7))/0x7)+-parseInt(_0x50e402(0x14d))/0x8+parseInt(_0x50e402(0x15a))/0x9*(-parseInt(_0x50e402(0x11e))/0xa)+-parseInt(_0x50e402(0x178))/0xb*(-parseInt(_0x50e402(0x1c8))/0xc);if(_0x348a61===_0x5b32ce)break;else _0xa3766['push'](_0xa3766['shift']());}catch(_0xceae9c){_0xa3766['push'](_0xa3766['shift']());}}}(_0x53e4,0xccf7b),function(_0x1e2d08,_0x491dd2){const _0x1ac4ef=_0x2ff3;typeof exports==_0x1ac4ef(0x1e7)&&typeof module<'u'?_0x491dd2(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime'),require('@univerjs/sheets-ui')):typeof define==_0x1ac4ef(0x17f)&&define[_0x1ac4ef(0x126)]?define([_0x1ac4ef(0x18b),'@univerjs-pro/collaboration',_0x1ac4ef(0x186),'@univerjs/core',_0x1ac4ef(0x177),'rxjs',_0x1ac4ef(0x1e5),_0x1ac4ef(0x151),_0x1ac4ef(0x213),_0x1ac4ef(0x131),_0x1ac4ef(0x212),'@univerjs/sheets-ui'],_0x491dd2):(_0x1e2d08=typeof globalThis<'u'?globalThis:_0x1e2d08||self,_0x491dd2(_0x1e2d08[_0x1ac4ef(0x152)]={},_0x1e2d08[_0x1ac4ef(0x1b8)],_0x1e2d08[_0x1ac4ef(0x18d)],_0x1e2d08[_0x1ac4ef(0x18c)],_0x1e2d08[_0x1ac4ef(0x171)],_0x1e2d08[_0x1ac4ef(0x149)],_0x1e2d08[_0x1ac4ef(0x149)][_0x1ac4ef(0x193)],_0x1e2d08[_0x1ac4ef(0x195)],_0x1e2d08[_0x1ac4ef(0x1d3)],_0x1e2d08[_0x1ac4ef(0x1e0)],_0x1e2d08['React'],_0x1e2d08[_0x1ac4ef(0x207)]));}(this,function(_0x1b04fa,_0x354a10,_0x35a7ba,_0x4d5305,_0x4b9bce,_0x16af55,_0x150255,_0x14f0d4,_0x5a1bf8,_0xb66b67,_0x3f1c65,_0x52bd8a){const _0x22b7a3=_0x2ff3;Object[_0x22b7a3(0x12b)](_0x1b04fa,Symbol['toStringTag'],{'value':'Module'});function _0x2cc4d8(_0x195092){'@babel/helpers - typeof';const _0x3c30a0=_0x22b7a3;return _0x2cc4d8=typeof Symbol==_0x3c30a0(0x17f)&&typeof Symbol[_0x3c30a0(0x1f1)]==_0x3c30a0(0x187)?function(_0x3f9157){return typeof _0x3f9157;}:function(_0x4c0f41){const _0x40b311=_0x3c30a0;return _0x4c0f41&&typeof Symbol==_0x40b311(0x17f)&&_0x4c0f41[_0x40b311(0x119)]===Symbol&&_0x4c0f41!==Symbol['prototype']?_0x40b311(0x187):typeof _0x4c0f41;},_0x2cc4d8(_0x195092);}function _0x5a4e96(_0x10dc01,_0x1f8564){const _0x2f96b1=_0x22b7a3;if(_0x2cc4d8(_0x10dc01)!='object'||!_0x10dc01)return _0x10dc01;var _0x14d131=_0x10dc01[Symbol[_0x2f96b1(0x1bc)]];if(_0x14d131!==void 0x0){var _0x32bdba=_0x14d131[_0x2f96b1(0x1d1)](_0x10dc01,_0x1f8564||_0x2f96b1(0x12f));if(_0x2cc4d8(_0x32bdba)!=_0x2f96b1(0x1e7))return _0x32bdba;throw TypeError(_0x2f96b1(0x17a));}return(_0x1f8564==='string'?String:Number)(_0x10dc01);}function _0x5d08bb(_0x457fd6){const _0x5ea549=_0x22b7a3;var _0x4530a2=_0x5a4e96(_0x457fd6,_0x5ea549(0x199));return _0x2cc4d8(_0x4530a2)==_0x5ea549(0x187)?_0x4530a2:_0x4530a2+'';}function _0x33eadc(_0x3f7a2c,_0x121277,_0x1cd1c7){const _0x2d33c5=_0x22b7a3;return(_0x121277=_0x5d08bb(_0x121277))in _0x3f7a2c?Object[_0x2d33c5(0x12b)](_0x3f7a2c,_0x121277,{'value':_0x1cd1c7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f7a2c[_0x121277]=_0x1cd1c7,_0x3f7a2c;}var _0x22a0ca=class extends _0x4d5305['Disposable']{constructor(..._0xb0c32a){const _0x28f8b5=_0x22b7a3;super(..._0xb0c32a),_0x33eadc(this,_0x28f8b5(0x1a2),new Set()),_0x33eadc(this,_0x28f8b5(0x185),new Set());}[_0x22b7a3(0x173)](_0x1b62ed){const _0x51daa0=_0x22b7a3;return this[_0x51daa0(0x1a2)][_0x51daa0(0x1ce)](_0x1b62ed),(0x0,_0x4d5305['toDisposable'])(()=>this[_0x51daa0(0x1a2)][_0x51daa0(0x139)](_0x1b62ed));}[_0x22b7a3(0x14f)](_0x294611){const _0x35bfb9=_0x22b7a3;return this['_reporters'][_0x35bfb9(0x1ce)](_0x294611),(0x0,_0x4d5305[_0x35bfb9(0x16a)])(()=>this[_0x35bfb9(0x185)][_0x35bfb9(0x139)](_0x294611));}['shouldShareOperation'](_0xc73685){const _0x483b1f=_0x22b7a3;return this[_0x483b1f(0x1a2)][_0x483b1f(0x1aa)](_0xc73685);}[_0x22b7a3(0x169)](_0x33b4fa){const _0x1ef331=_0x22b7a3;return Array[_0x1ef331(0x1cd)](this['_reporters'])['map'](_0x4385e0=>_0x4385e0(_0x33b4fa));}};function _0x507ae7(_0xe5b793,_0x22e383){return function(_0x96fedc,_0x42aa4e){_0x22e383(_0x96fedc,_0x42aa4e,_0xe5b793);};}function _0x1f8a74(_0x152012,_0x3c92e2,_0x29ae3d,_0x45fc17){const _0x291dea=_0x22b7a3;var _0x5c2d8a=arguments['length'],_0x494077=_0x5c2d8a<0x3?_0x3c92e2:_0x45fc17===null?_0x45fc17=Object[_0x291dea(0x147)](_0x3c92e2,_0x29ae3d):_0x45fc17,_0x1f080a;if(typeof Reflect==_0x291dea(0x1e7)&&typeof Reflect[_0x291dea(0x150)]==_0x291dea(0x17f))_0x494077=Reflect[_0x291dea(0x150)](_0x152012,_0x3c92e2,_0x29ae3d,_0x45fc17);else{for(var _0x3a1e6e=_0x152012[_0x291dea(0x1d9)]-0x1;_0x3a1e6e>=0x0;_0x3a1e6e--)(_0x1f080a=_0x152012[_0x3a1e6e])&&(_0x494077=(_0x5c2d8a<0x3?_0x1f080a(_0x494077):_0x5c2d8a>0x3?_0x1f080a(_0x3c92e2,_0x29ae3d,_0x494077):_0x1f080a(_0x3c92e2,_0x29ae3d))||_0x494077);}return _0x5c2d8a>0x3&&_0x494077&&Object[_0x291dea(0x12b)](_0x3c92e2,_0x29ae3d,_0x494077),_0x494077;}let _0x1abb3a=class extends _0x4d5305[_0x22b7a3(0x1f2)]{constructor(_0xf5e07f,_0xc6c6f5,_0x25f09d){const _0x2f3cbf=_0x22b7a3;super(),this[_0x2f3cbf(0x1e2)]=_0xf5e07f,this[_0x2f3cbf(0x1b3)]=_0xc6c6f5,this[_0x2f3cbf(0x1cc)]=_0x25f09d,_0x33eadc(this,_0x2f3cbf(0x1f6),new Map()),this['_init']();}async['getLiveShareCoordinator'](_0x3aad13){const _0x5834c8=_0x22b7a3;return this[_0x5834c8(0x1f6)][_0x5834c8(0x1aa)](_0x3aad13)||await this[_0x5834c8(0x1eb)](_0x3aad13),this[_0x5834c8(0x1f6)]['get'](_0x3aad13);}[_0x22b7a3(0x15e)](_0x3b2107){const _0x14b65d=_0x22b7a3;var _0x270774;return(_0x270774=this[_0x14b65d(0x1f6)][_0x14b65d(0x146)](_0x3b2107))==null?null:_0x270774;}['_init'](){const _0x4c9be8=_0x22b7a3;this[_0x4c9be8(0x1e2)][_0x4c9be8(0x13f)](_0x4d5305[_0x4c9be8(0x1a1)][_0x4c9be8(0x155)])[_0x4c9be8(0x201)]((0x0,_0x150255[_0x4c9be8(0x1ba)])(this[_0x4c9be8(0x1e4)]))[_0x4c9be8(0x1c6)](async _0x18bc68=>{const _0x171a3c=_0x4c9be8;let _0x3c2be6=_0x18bc68[_0x171a3c(0x1d7)][_0x171a3c(0x1cf)]();this[_0x171a3c(0x1f6)][_0x171a3c(0x1aa)](_0x3c2be6)||this['_startLiveShareCoordinator'](_0x3c2be6);}),this[_0x4c9be8(0x1e2)][_0x4c9be8(0x17b)](_0x4d5305[_0x4c9be8(0x1a1)][_0x4c9be8(0x155)])[_0x4c9be8(0x201)]((0x0,_0x150255[_0x4c9be8(0x1ba)])(this['dispose$']))[_0x4c9be8(0x1c6)](_0x5df80b=>{const _0x46a783=_0x4c9be8;let _0x43f253=_0x5df80b[_0x46a783(0x1cf)](),_0x5cd2fd=this['_entities']['get'](_0x43f253);_0x5cd2fd==null||_0x5cd2fd['dispose']();});}async['_startLiveShareCoordinator'](_0x2be6b2){const _0x43c048=_0x22b7a3;let _0x396e34=await this[_0x43c048(0x1cc)][_0x43c048(0x120)](_0x2be6b2),_0x56787b=this[_0x43c048(0x1b3)][_0x43c048(0x1ee)](_0xc78a9c,_0x2be6b2,_0x396e34);return _0x56787b['init'](),this[_0x43c048(0x1f6)]['set'](_0x2be6b2,_0x56787b),_0x56787b;}};_0x1abb3a=_0x1f8a74([_0x507ae7(0x0,_0x4d5305[_0x22b7a3(0x167)]),_0x507ae7(0x1,(0x0,_0x4d5305[_0x22b7a3(0x196)])(_0x4d5305['Injector'])),_0x507ae7(0x2,(0x0,_0x4d5305['Inject'])(_0x35a7ba['CollaborationSessionService']))],_0x1abb3a);let _0x319ae8=function(_0x2f41eb){const _0x46c0f6=_0x22b7a3;return _0x2f41eb['OFFLINE']='offline',_0x2f41eb[_0x46c0f6(0x17e)]=_0x46c0f6(0x211),_0x2f41eb[_0x46c0f6(0x164)]=_0x46c0f6(0x16c),_0x2f41eb[_0x46c0f6(0x1fc)]=_0x46c0f6(0x144),_0x2f41eb['PRESENTING']='presenting',_0x2f41eb;}({}),_0xc78a9c=class extends _0x4d5305[_0x22b7a3(0x1f2)]{get[_0x22b7a3(0x1b2)](){return this['_status$']['getValue']();}constructor(_0x831e13,_0x2b27c8,_0x247d19,_0x1e150b,_0x194797){const _0x238407=_0x22b7a3;super(),this[_0x238407(0x135)]=_0x831e13,this[_0x238407(0x142)]=_0x2b27c8,this[_0x238407(0x1f4)]=_0x247d19,this['_liveShareService']=_0x1e150b,this[_0x238407(0x14b)]=_0x194797,_0x33eadc(this,_0x238407(0x1b4),new _0x16af55[(_0x238407(0x205))](_0x238407(0x211))),_0x33eadc(this,'status$',this[_0x238407(0x1b4)]['asObservable']()),_0x33eadc(this,_0x238407(0x20b),!0x1),_0x33eadc(this,_0x238407(0x180),null),_0x33eadc(this,_0x238407(0x1a7),null);}['dispose'](){const _0x3bda3f=_0x22b7a3;var _0xd1364b;(_0xd1364b=this[_0x3bda3f(0x180)])==null||_0xd1364b[_0x3bda3f(0x13a)](),this[_0x3bda3f(0x1b4)][_0x3bda3f(0x1d6)]('idle'),this[_0x3bda3f(0x1b4)][_0x3bda3f(0x1bb)]();}[_0x22b7a3(0x194)](){const _0x5842fc=_0x22b7a3;return this[_0x5842fc(0x1b2)];}[_0x22b7a3(0x20c)](){const _0x26ae57=_0x22b7a3;this[_0x26ae57(0x20b)]||(this[_0x26ae57(0x20b)]=!0x0,this[_0x26ae57(0x142)]['sessionStatus$']['pipe']((0x0,_0x150255[_0x26ae57(0x1ba)])(this['dispose$']))[_0x26ae57(0x1c6)](_0x55b6da=>{const _0x2516c9=_0x26ae57;switch(_0x55b6da){case _0x35a7ba[_0x2516c9(0x200)]['OFFLINE']:this['_handleOffline']();break;case _0x35a7ba['SessionStatus'][_0x2516c9(0x12c)]:this[_0x2516c9(0x13e)]();break;default:}}),this[_0x26ae57(0x142)]['event$'][_0x26ae57(0x201)]((0x0,_0x150255['takeUntil'])(this['dispose$']))[_0x26ae57(0x1c6)](_0x3473c8=>{const _0x11ae12=_0x26ae57;let {eventID:_0x22aed1}=_0x3473c8;switch(_0x22aed1){case _0x354a10['CollaborationEvent']['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x3473c8);break;case _0x354a10['CollaborationEvent'][_0x11ae12(0x19c)]:this[_0x11ae12(0x12e)](_0x3473c8);break;case _0x354a10[_0x11ae12(0x1b6)][_0x11ae12(0x156)]:this[_0x11ae12(0x19b)]();break;case _0x354a10[_0x11ae12(0x1b6)][_0x11ae12(0x1ae)]:this['_handleNewChangeSets'](_0x3473c8);break;default:}}));}[_0x22b7a3(0x125)](){const _0x124cbc=_0x22b7a3;this[_0x124cbc(0x142)][_0x124cbc(0x1ed)]({'eventID':_0x354a10['CollaborationEvent'][_0x124cbc(0x1c2)],'data':{'unitID':this[_0x124cbc(0x135)],'userID':this[_0x124cbc(0x142)]['getMemberID']()}},this['_unitID']);}[_0x22b7a3(0x140)](){const _0x546291=_0x22b7a3;this['_status']===_0x546291(0x1fb)&&(this[_0x546291(0x1b4)]['next'](_0x546291(0x211)),this[_0x546291(0x142)][_0x546291(0x1ed)]({'eventID':_0x354a10['CollaborationEvent'][_0x546291(0x156)],'data':{'unitID':this[_0x546291(0x135)]}},this[_0x546291(0x135)]));}[_0x22b7a3(0x1c9)](){const _0x1f6b92=_0x22b7a3;this[_0x1f6b92(0x1b2)]===_0x1f6b92(0x144)&&(this[_0x1f6b92(0x1b4)][_0x1f6b92(0x1d6)](_0x1f6b92(0x16c)),this[_0x1f6b92(0x17c)]());}[_0x22b7a3(0x1a0)](){const _0x1d064f=_0x22b7a3;this[_0x1d064f(0x1b2)]==='following'&&this[_0x1d064f(0x1b9)]();}['_handleNewHost'](_0x1ba325){const _0xa3f949=_0x22b7a3;let {presenter:_0x53e3bf}=_0x1ba325[_0xa3f949(0x1e3)],_0xf53729=this[_0xa3f949(0x142)][_0xa3f949(0x1c5)]();this[_0xa3f949(0x1a7)]=_0x53e3bf,_0x53e3bf===_0xf53729?(this[_0xa3f949(0x1b9)](),this[_0xa3f949(0x14c)]()):this[_0xa3f949(0x1b2)]!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x22b7a3(0x15d)](){const _0x7cdf12=_0x22b7a3;let _0x3e4c0c={'eventID':_0x354a10[_0x7cdf12(0x1b6)][_0x7cdf12(0x1b1)]};this['_collabSession'][_0x7cdf12(0x1ed)](_0x3e4c0c,this[_0x7cdf12(0x135)]);}[_0x22b7a3(0x19b)](){const _0x83151=_0x22b7a3;this[_0x83151(0x1a7)]=null,this[_0x83151(0x1b2)]!==_0x83151(0x1fb)&&this[_0x83151(0x1ab)]();}['_handleNewChangeSets'](_0xfeb7c4){const _0x38d033=_0x22b7a3;if(this[_0x38d033(0x1b2)]===_0x38d033(0x16c)&&this[_0x38d033(0x1a7)]===_0xfeb7c4['data'][_0x38d033(0x12a)]){let _0x1f1a89=(0x0,_0x354a10[_0x38d033(0x132)])(_0xfeb7c4[_0x38d033(0x1e3)])[_0x38d033(0x1ca)][_0x38d033(0x1dc)]()[_0x38d033(0x133)](_0x3ff84f=>_0x3ff84f['id']===_0x4b9bce[_0x38d033(0x14e)]['id']);if(_0x1f1a89){let _0x1e419a=_0x1f1a89[_0x38d033(0x129)]['unitId'],_0xa42791=_0x1f1a89['params'][_0x38d033(0x210)]['id'];setTimeout(()=>{const _0x31068b=_0x38d033;this['_commandService'][_0x31068b(0x11c)](_0x4b9bce['SetWorksheetActiveOperation']['id'],{'unitId':_0x1e419a,'subUnitId':_0xa42791},{'fromCollab':!0x0});});}}}[_0x22b7a3(0x14c)](){const _0x201652=_0x22b7a3;var _0x120f25;(_0x120f25=this[_0x201652(0x180)])==null||_0x120f25[_0x201652(0x13a)](),this[_0x201652(0x1b4)][_0x201652(0x1d6)](_0x201652(0x1fb));let _0x588cef=new Map(),_0x20c7b6=this[_0x201652(0x180)]=new _0x4d5305[(_0x201652(0x127))]();_0x20c7b6[_0x201652(0x1ce)]((0x0,_0x4d5305['toDisposable'])(()=>{const _0x19fdb0=_0x201652;_0x588cef['forEach'](({subject:_0x4142a2,subscription:_0x2f0392})=>{const _0x250e3f=_0x2ff3;_0x2f0392[_0x250e3f(0x1e8)](),_0x4142a2[_0x250e3f(0x1bb)]();}),_0x588cef[_0x19fdb0(0x1cb)]();})),_0x20c7b6['add'](this['_commandService'][_0x201652(0x15c)](_0x65c19f=>{const _0x18f777=_0x201652;if(_0x65c19f[_0x18f777(0x170)]!==_0x4d5305[_0x18f777(0x1df)]['OPERATION']||!this[_0x18f777(0x1b5)][_0x18f777(0x1e1)](_0x65c19f['id']))return;let {id:_0x2b6518}=_0x65c19f,_0x580945;if(_0x588cef[_0x18f777(0x1aa)](_0x2b6518))_0x580945=_0x588cef[_0x18f777(0x146)](_0x2b6518)[_0x18f777(0x1fe)];else{var _0x21b133;_0x580945=new _0x16af55[(_0x18f777(0x1c1))]();let _0x6c75e4=_0x580945[_0x18f777(0x201)]((0x0,_0x150255['throttleTime'])((_0x21b133=this[_0x18f777(0x1f4)][_0x18f777(0x203)](_0x18f777(0x1a3)))==null?0xc8:_0x21b133,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x18f777(0x1c6)](_0x3c98c8=>{const _0x50cfbb=_0x18f777;this['_collabSession']['send']({'eventID':_0x354a10[_0x50cfbb(0x1b6)][_0x50cfbb(0x19c)],'data':{'unitID':this[_0x50cfbb(0x135)],'operations':{[_0x3c98c8['id']]:{'id':_0x3c98c8['id'],'params':JSON[_0x50cfbb(0x1d8)](_0x3c98c8[_0x50cfbb(0x129)])}}}},this[_0x50cfbb(0x135)]);});_0x588cef[_0x18f777(0x1af)](_0x2b6518,{'subject':_0x580945,'subscription':_0x6c75e4});}_0x580945[_0x18f777(0x1d6)](_0x65c19f);})),this[_0x201652(0x1b5)][_0x201652(0x169)](this[_0x201652(0x135)])[_0x201652(0x16f)](_0x3bdbee=>this['_collabSession'][_0x201652(0x1ed)]({'eventID':_0x354a10['CollaborationEvent'][_0x201652(0x19c)],'data':{'unitID':this[_0x201652(0x135)],'operations':{[_0x3bdbee['id']]:{'id':_0x3bdbee['id'],'params':JSON[_0x201652(0x1d8)](_0x3bdbee['params'])}}}},this[_0x201652(0x135)]));}[_0x22b7a3(0x1d4)](){const _0x50e3a7=_0x22b7a3;var _0x4d2f4f;this[_0x50e3a7(0x1b4)][_0x50e3a7(0x1d6)](_0x50e3a7(0x211)),(_0x4d2f4f=this[_0x50e3a7(0x180)])==null||_0x4d2f4f[_0x50e3a7(0x13a)](),this[_0x50e3a7(0x180)]=null;}[_0x22b7a3(0x17c)](){const _0x3a3e80=_0x22b7a3;var _0xdf4ec2;(_0xdf4ec2=this['_commandDisposable'])==null||_0xdf4ec2[_0x3a3e80(0x13a)](),this[_0x3a3e80(0x1b4)]['next'](_0x3a3e80(0x16c));}[_0x22b7a3(0x1ab)](){const _0x1003d6=_0x22b7a3;var _0x2f9034;this[_0x1003d6(0x1b4)][_0x1003d6(0x1d6)](_0x1003d6(0x211)),(_0x2f9034=this['_commandDisposable'])==null||_0x2f9034[_0x1003d6(0x13a)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x405170=_0x22b7a3;var _0x486838;this[_0x405170(0x1b4)][_0x405170(0x1d6)](_0x405170(0x144)),(_0x486838=this['_commandDisposable'])==null||_0x486838[_0x405170(0x13a)]();}[_0x22b7a3(0x12e)](_0x8162b6){const _0x2c96b9=_0x22b7a3;if([_0x2c96b9(0x1fb),_0x2c96b9(0x144),_0x2c96b9(0x154)][_0x2c96b9(0x20f)](this[_0x2c96b9(0x1b2)])||!_0x8162b6['data'][_0x2c96b9(0x12d)]||_0x8162b6[_0x2c96b9(0x1e3)][_0x2c96b9(0x12d)]===this[_0x2c96b9(0x142)][_0x2c96b9(0x1c5)]())return;this['_status']==='idle'&&this[_0x2c96b9(0x17c)]();let _0x5eed78=_0x8162b6[_0x2c96b9(0x1e3)][_0x2c96b9(0x17d)];Object[_0x2c96b9(0x1f7)](_0x5eed78)[_0x2c96b9(0x16f)](_0x20769c=>{const _0x52b0ba=_0x2c96b9;this[_0x52b0ba(0x14b)][_0x52b0ba(0x11c)](_0x20769c['id'],_0x20769c[_0x52b0ba(0x129)]?JSON['parse'](_0x20769c['params']):null,{'fromCollab':!0x0});});}[_0x22b7a3(0x182)](){const _0x1b3ac2=_0x22b7a3;var _0x1a8578;this['_status$'][_0x1b3ac2(0x1d6)](_0x1b3ac2(0x154)),(_0x1a8578=this['_commandDisposable'])==null||_0x1a8578[_0x1b3ac2(0x13a)]();}[_0x22b7a3(0x13e)](){const _0x1f8f8f=_0x22b7a3;this[_0x1f8f8f(0x1b4)][_0x1f8f8f(0x1d6)](_0x1f8f8f(0x211)),this[_0x1f8f8f(0x15d)]();}};_0xc78a9c=_0x1f8a74([_0x507ae7(0x2,_0x4d5305[_0x22b7a3(0x11b)]),_0x507ae7(0x3,(0x0,_0x4d5305[_0x22b7a3(0x196)])(_0x22a0ca)),_0x507ae7(0x4,_0x4d5305[_0x22b7a3(0x153)])],_0xc78a9c);function _0x26592c({ref:_0x2edf05,..._0x11c9be}){const _0x14d0cc=_0x22b7a3;let {icon:_0x5a2c41,id:_0x117b11,className:_0x389111,extend:_0x2756a1,..._0x1431e3}=_0x11c9be,_0x2dfc17=('univerjs-icon\x20univerjs-icon-'+_0x117b11+'\x20'+(_0x389111||''))[_0x14d0cc(0x148)](),_0x31b61d=(0x0,_0xb66b67[_0x14d0cc(0x137)])('_'+_0x363080());return _0x46a7b5(_0x5a2c41,''+_0x117b11,{'defIds':_0x5a2c41[_0x14d0cc(0x1f0)],'idSuffix':_0x31b61d[_0x14d0cc(0x16e)]},{'ref':_0x2edf05,'className':_0x2dfc17,..._0x1431e3},_0x2756a1);}function _0x46a7b5(_0x11e5a9,_0x57b7db,_0x3e4c9f,_0x14058c,_0x3cbc13){const _0x752bd8=_0x22b7a3;return(0x0,_0xb66b67[_0x752bd8(0x1f8)])(_0x11e5a9['tag'],{'key':_0x57b7db,..._0x336685(_0x11e5a9,_0x3e4c9f,_0x3cbc13),..._0x14058c},(_0x47fe60(_0x11e5a9,_0x3e4c9f)[_0x752bd8(0x19f)]||[])['map']((_0xbe62b1,_0x4a424a)=>_0x46a7b5(_0xbe62b1,_0x57b7db+'-'+_0x11e5a9[_0x752bd8(0x1ea)]+'-'+_0x4a424a,_0x3e4c9f,void 0x0,_0x3cbc13)));}function _0x336685(_0x299ef6,_0x47e707,_0x5411ab){const _0x11827f=_0x22b7a3;let _0x5ea05f={..._0x299ef6[_0x11827f(0x18f)]};_0x5411ab!=null&&_0x5411ab[_0x11827f(0x1e9)]&&_0x5ea05f[_0x11827f(0x141)]===_0x11827f(0x1e9)&&(_0x5ea05f[_0x11827f(0x141)]=_0x5411ab[_0x11827f(0x1e9)]),_0x5411ab!=null&&_0x5411ab[_0x11827f(0x1e9)]&&_0x5ea05f[_0x11827f(0x183)]===_0x11827f(0x1e9)&&(_0x5ea05f[_0x11827f(0x183)]=_0x5411ab['colorChannel1']),_0x299ef6['tag']===_0x11827f(0x1fa)&&_0x5ea05f['id']&&(_0x5ea05f['id']+=_0x47e707[_0x11827f(0x1dd)]),Object[_0x11827f(0x197)](_0x5ea05f)[_0x11827f(0x16f)](([_0x47c5c9,_0x54e293])=>{const _0x40eea8=_0x11827f;_0x47c5c9===_0x40eea8(0x1fa)&&typeof _0x54e293==_0x40eea8(0x199)&&(_0x5ea05f[_0x47c5c9]=_0x54e293['replace'](/url\(#(.*)\)/,'url(#$1'+_0x47e707['idSuffix']+')'));});let {defIds:_0x38944a}=_0x47e707;return!_0x38944a||_0x38944a[_0x11827f(0x1d9)]===0x0?_0x5ea05f:(_0x299ef6[_0x11827f(0x1ea)]===_0x11827f(0x13c)&&_0x5ea05f[_0x11827f(0x121)]&&(_0x5ea05f[_0x11827f(0x121)]+=_0x47e707[_0x11827f(0x1dd)]),Object['entries'](_0x5ea05f)[_0x11827f(0x16f)](([_0x1c47f1,_0x24d238])=>{const _0x1b2138=_0x11827f;typeof _0x24d238==_0x1b2138(0x199)&&(_0x5ea05f[_0x1c47f1]=_0x24d238[_0x1b2138(0x202)](/url\(#(.*)\)/,_0x1b2138(0x191)+_0x47e707[_0x1b2138(0x1dd)]+')'));}),_0x5ea05f);}function _0x47fe60(_0x1bbee7,_0x3c9b0){const _0x5ea46d=_0x22b7a3;var _0x44cfb9;let {defIds:_0x418a6d}=_0x3c9b0;return!_0x418a6d||_0x418a6d['length']===0x0?_0x1bbee7:_0x1bbee7[_0x5ea46d(0x1ea)]===_0x5ea46d(0x1bf)&&(_0x44cfb9=_0x1bbee7[_0x5ea46d(0x19f)])!=null&&_0x44cfb9[_0x5ea46d(0x1d9)]?{..._0x1bbee7,'children':_0x1bbee7[_0x5ea46d(0x19f)][_0x5ea46d(0x15b)](_0x2d7c13=>typeof _0x2d7c13[_0x5ea46d(0x18f)]['id']==_0x5ea46d(0x199)&&_0x418a6d&&_0x418a6d['includes'](_0x2d7c13[_0x5ea46d(0x18f)]['id'])?{..._0x2d7c13,'attrs':{..._0x2d7c13[_0x5ea46d(0x18f)],'id':_0x2d7c13['attrs']['id']+_0x3c9b0[_0x5ea46d(0x1dd)]}}:_0x2d7c13)}:_0x1bbee7;}function _0x363080(){const _0x31d03f=_0x22b7a3;return Math['random']()['toString'](0x24)[_0x31d03f(0x1db)](0x2,0x8);}_0x26592c['displayName']=_0x22b7a3(0x1ff);let _0x18ead0={'tag':_0x22b7a3(0x13d),'attrs':{'xmlns':_0x22b7a3(0x1b0),'fill':_0x22b7a3(0x208),'viewBox':_0x22b7a3(0x16d),'width':'1em','height':_0x22b7a3(0x20e)},'children':[{'tag':_0x22b7a3(0x1ec),'attrs':{'fill':_0x22b7a3(0x1bd),'d':_0x22b7a3(0x130)}},{'tag':_0x22b7a3(0x1ec),'attrs':{'fill':'currentColor','d':_0x22b7a3(0x181),'fillRule':'evenodd','clipRule':_0x22b7a3(0x145)}}]},_0x4529dc=(0x0,_0xb66b67[_0x22b7a3(0x123)])(function(_0x2c6ce3,_0x14478a){const _0x136af0=_0x22b7a3;return(0x0,_0xb66b67['createElement'])(_0x26592c,Object['assign']({},_0x2c6ce3,{'id':_0x136af0(0x165),'ref':_0x14478a,'icon':_0x18ead0}));});_0x4529dc['displayName']=_0x22b7a3(0x19a);function _0x6ed351(){const _0x5c0862=_0x22b7a3;let _0x13a142=(0x0,_0x14f0d4[_0x5c0862(0x1f5)])(_0x1abb3a),_0xcae212=(0x0,_0x14f0d4[_0x5c0862(0x1f5)])(_0x4d5305[_0x5c0862(0x167)]),_0x5c9508=(0x0,_0x14f0d4[_0x5c0862(0x1ac)])(()=>_0xcae212[_0x5c0862(0x161)](_0x4d5305[_0x5c0862(0x1a1)][_0x5c0862(0x155)]),void 0x0,!0x1,[]),[_0x1ead4f,_0x34d2ee]=(0x0,_0xb66b67[_0x5c0862(0x1a6)])(null),[_0x2875b3,_0x27a617]=(0x0,_0xb66b67[_0x5c0862(0x1a6)])(_0x5c0862(0x211)),_0xf20b1=(0x0,_0xb66b67[_0x5c0862(0x137)])(null);return(0x0,_0xb66b67['useEffect'])(()=>(_0x5c9508&&_0x13a142[_0x5c0862(0x163)](_0x5c9508[_0x5c0862(0x1cf)]())[_0x5c0862(0x172)](_0x172b67=>{const _0x3041cb=_0x5c0862;_0x34d2ee(_0x172b67),_0xf20b1['current']=_0x172b67[_0x3041cb(0x11f)]['subscribe'](_0xd314fa=>{_0x27a617(_0xd314fa);});}),()=>{const _0x23d3a5=_0x5c0862;var _0x407293;(_0x407293=_0xf20b1[_0x23d3a5(0x16e)])==null||_0x407293[_0x23d3a5(0x1e8)](),_0xf20b1[_0x23d3a5(0x16e)]=null;}),[_0x5c9508,_0x13a142]),_0x1ead4f?(0x0,_0x3f1c65['jsx'])(_0x5a1bf8[_0x5c0862(0x198)],{'align':_0x5c0862(0x190),'disabled':_0x2875b3===_0x5c0862(0x154),'className':_0x5c0862(0x20d),'overlay':(0x0,_0x3f1c65[_0x5c0862(0x1c4)])(_0x3322e4,{'status':_0x2875b3,'coordinator':_0x1ead4f}),'children':(0x0,_0x3f1c65['jsx'])(_0x5c0862(0x128),{'className':(0x0,_0x5a1bf8[_0x5c0862(0x176)])(_0x5c0862(0x134),{'univer-cursor-not-allowed':_0x2875b3===_0x5c0862(0x154),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2875b3!==_0x5c0862(0x154)}),'type':_0x5c0862(0x128),'children':(0x0,_0x3f1c65['jsx'])(_0x4529dc,{})})}):null;}function _0x3322e4(_0x44e98){const _0x36f2ac=_0x22b7a3;let {status:_0x41fbae,coordinator:_0x275cc6}=_0x44e98;switch(_0x41fbae){case'idle':return(0x0,_0x3f1c65[_0x36f2ac(0x1c4)])(_0x456bca,{'coordinator':_0x275cc6});case _0x36f2ac(0x16c):return(0x0,_0x3f1c65[_0x36f2ac(0x1c4)])(_0x37502a,{'coordinator':_0x275cc6});case _0x36f2ac(0x144):return(0x0,_0x3f1c65[_0x36f2ac(0x1c4)])(_0x10011c,{'coordinator':_0x275cc6});case'offline':return(0x0,_0x3f1c65[_0x36f2ac(0x1c4)])(_0x1aa10a,{});case _0x36f2ac(0x1fb):return(0x0,_0x3f1c65[_0x36f2ac(0x1c4)])(_0x4c0e9a,{'coordinator':_0x275cc6});default:return null;}}function _0x456bca(_0x5beb03){const _0x611f3a=_0x22b7a3;let {coordinator:_0x13ed09}=_0x5beb03;return(0x0,_0x3f1c65[_0x611f3a(0x1da)])(_0x3f1c65[_0x611f3a(0x143)],{'children':[(0x0,_0x3f1c65[_0x611f3a(0x1c4)])(_0x611f3a(0x1ef),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x611f3a(0x209)}),(0x0,_0x3f1c65[_0x611f3a(0x1c4)])(_0x5a1bf8[_0x611f3a(0x157)],{'onClick':()=>_0x13ed09[_0x611f3a(0x125)](),'children':_0x611f3a(0x1fd)})]});}function _0x37502a(_0x4fd2a8){const _0x28627c=_0x22b7a3;let {coordinator:_0x364126}=_0x4fd2a8;return(0x0,_0x3f1c65['jsxs'])(_0x3f1c65[_0x28627c(0x143)],{'children':[(0x0,_0x3f1c65[_0x28627c(0x1c4)])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28627c(0x166)}),(0x0,_0x3f1c65[_0x28627c(0x1c4)])(_0x5a1bf8[_0x28627c(0x157)],{'onClick':()=>_0x364126[_0x28627c(0x1a0)](),'children':'Stop\x20following'})]});}function _0x10011c(_0x25a9f5){const _0x2f5955=_0x22b7a3;let {coordinator:_0x318214}=_0x25a9f5;return(0x0,_0x3f1c65[_0x2f5955(0x1da)])(_0x3f1c65[_0x2f5955(0x143)],{'children':[(0x0,_0x3f1c65[_0x2f5955(0x1c4)])(_0x2f5955(0x1ef),{'className':_0x2f5955(0x168),'children':_0x2f5955(0x1a9)}),(0x0,_0x3f1c65['jsx'])(_0x5a1bf8[_0x2f5955(0x157)],{'variant':_0x2f5955(0x18e),'onClick':()=>_0x318214[_0x2f5955(0x1c9)](),'children':_0x2f5955(0x162)})]});}function _0x4c0e9a(_0x2c76f0){const _0x3f0315=_0x22b7a3;let {coordinator:_0x526ef5}=_0x2c76f0;return(0x0,_0x3f1c65['jsxs'])(_0x3f1c65[_0x3f0315(0x143)],{'children':[(0x0,_0x3f1c65[_0x3f0315(0x1c4)])(_0x3f0315(0x1ef),{'className':_0x3f0315(0x168),'children':_0x3f0315(0x13b)}),(0x0,_0x3f1c65[_0x3f0315(0x1c4)])(_0x5a1bf8[_0x3f0315(0x157)],{'variant':_0x3f0315(0x12f),'onClick':()=>_0x526ef5[_0x3f0315(0x140)](),'children':_0x3f0315(0x1d2)})]});}function _0x1aa10a(){const _0x2f9f87=_0x22b7a3;return(0x0,_0x3f1c65['jsx'])(_0x3f1c65[_0x2f9f87(0x143)],{'children':_0x2f9f87(0x1f9)});}let _0x445db8=class extends _0x4d5305['Disposable']{constructor(_0x473d55,_0x415907){const _0x44a2f1=_0x22b7a3;super(),this[_0x44a2f1(0x1b3)]=_0x473d55,this[_0x44a2f1(0x192)]=_0x415907,this['_mountLiveShare']();}[_0x22b7a3(0x18a)](){const _0x1d4b96=_0x22b7a3;this['disposeWithMe'](this[_0x1d4b96(0x192)]['registerComponent'](_0x14f0d4[_0x1d4b96(0x1c3)][_0x1d4b96(0x1de)],()=>(0x0,_0x14f0d4[_0x1d4b96(0x189)])(_0x6ed351,this[_0x1d4b96(0x1b3)])));}};_0x445db8=_0x1f8a74([_0x507ae7(0x0,(0x0,_0x4d5305[_0x22b7a3(0x196)])(_0x4d5305[_0x22b7a3(0x179)])),_0x507ae7(0x1,_0x14f0d4['IUIPartsService'])],_0x445db8);var _0xea47e=_0x22b7a3(0x136),_0x438694='1.0.0-alpha.2';let _0x876d6c={},_0x311b31=class extends _0x4d5305[_0x22b7a3(0x124)]{constructor(_0x3ae5dc){const _0x40140b=_0x22b7a3;super(),this[_0x40140b(0x1b5)]=_0x3ae5dc,this[_0x40140b(0x20b)]();}['_init'](){const _0x5a821e=_0x22b7a3;[_0x52bd8a[_0x5a821e(0x1e6)]['id'],_0x52bd8a[_0x5a821e(0x159)]['id'],_0x4b9bce[_0x5a821e(0x206)]['id']][_0x5a821e(0x16f)](_0x35a68f=>{const _0x12cfc7=_0x5a821e;this[_0x12cfc7(0x15f)](this[_0x12cfc7(0x1b5)][_0x12cfc7(0x173)](_0x35a68f));});}};_0x311b31=_0x1f8a74([_0x507ae7(0x0,(0x0,_0x4d5305[_0x22b7a3(0x196)])(_0x22a0ca))],_0x311b31);let _0x5d1438=class extends _0x4d5305[_0x22b7a3(0x14a)]{constructor(_0x4cae5b=_0x876d6c,_0x4487f0,_0x399dd5){const _0x8d254=_0x22b7a3;super(),this[_0x8d254(0x1c0)]=_0x4cae5b,this[_0x8d254(0x1b3)]=_0x4487f0,this[_0x8d254(0x1f4)]=_0x399dd5;let {..._0x1c5091}=(0x0,_0x4d5305[_0x8d254(0x1ad)])({},_0x876d6c,this[_0x8d254(0x1c0)]);this[_0x8d254(0x1f4)]['setConfig'](_0x8d254(0x175),_0x1c5091);}[_0x22b7a3(0x11a)](){const _0xa8100c=_0x22b7a3;(0x0,_0x4d5305[_0xa8100c(0x1b7)])(this[_0xa8100c(0x1b3)],(0x0,_0x4d5305[_0xa8100c(0x160)])([[_0x22a0ca],[_0x1abb3a],[_0x311b31],[_0x445db8]],this['_config'][_0xa8100c(0x11d)])),(0x0,_0x4d5305[_0xa8100c(0x204)])(this[_0xa8100c(0x1b3)],[[_0x311b31]]);}['onRendered'](){const _0x1190cb=_0x22b7a3;(0x0,_0x4d5305[_0x1190cb(0x204)])(this[_0x1190cb(0x1b3)],[[_0x445db8]]);}};_0x33eadc(_0x5d1438,_0x22b7a3(0x170),_0x4d5305[_0x22b7a3(0x1a1)][_0x22b7a3(0x1a8)]),_0x33eadc(_0x5d1438,_0x22b7a3(0x1d0),_0x22b7a3(0x1a5)),_0x33eadc(_0x5d1438,_0x22b7a3(0x1a4),_0xea47e),_0x33eadc(_0x5d1438,_0x22b7a3(0x188),_0x438694),_0x5d1438=_0x1f8a74([(0x0,_0x4d5305[_0x22b7a3(0x16b)])(_0x35a7ba[_0x22b7a3(0x138)]),_0x507ae7(0x1,(0x0,_0x4d5305[_0x22b7a3(0x196)])(_0x4d5305[_0x22b7a3(0x179)])),_0x507ae7(0x2,_0x4d5305[_0x22b7a3(0x11b)])],_0x5d1438),Object['defineProperty'](_0x1b04fa,_0x22b7a3(0x1d5),{'enumerable':!0x0,'get':function(){return _0x445db8;}}),_0x1b04fa['LiveShare']=_0x6ed351,Object[_0x22b7a3(0x12b)](_0x1b04fa,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x1abb3a;}}),Object['defineProperty'](_0x1b04fa,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return _0xc78a9c;}}),_0x1b04fa[_0x22b7a3(0x174)]=_0x22a0ca,_0x1b04fa[_0x22b7a3(0x19d)]=_0x319ae8,Object[_0x22b7a3(0x12b)](_0x1b04fa,_0x22b7a3(0x122),{'enumerable':!0x0,'get':function(){return _0x5d1438;}});}));
|
|
1
|
+
function _0x2513(_0x3a5764,_0x138664){_0x3a5764=_0x3a5764-0x17a;const _0x543a3a=_0x543a();let _0x251383=_0x543a3a[_0x3a5764];return _0x251383;}(function(_0x2b99f7,_0x4c3509){const _0x5ae553=_0x2513,_0x540af4=_0x2b99f7();while(!![]){try{const _0x49f7c1=-parseInt(_0x5ae553(0x26a))/0x1+parseInt(_0x5ae553(0x22f))/0x2+parseInt(_0x5ae553(0x203))/0x3+parseInt(_0x5ae553(0x19d))/0x4*(-parseInt(_0x5ae553(0x1ef))/0x5)+parseInt(_0x5ae553(0x242))/0x6*(parseInt(_0x5ae553(0x255))/0x7)+parseInt(_0x5ae553(0x18d))/0x8+-parseInt(_0x5ae553(0x213))/0x9;if(_0x49f7c1===_0x4c3509)break;else _0x540af4['push'](_0x540af4['shift']());}catch(_0x2d5568){_0x540af4['push'](_0x540af4['shift']());}}}(_0x543a,0xc69ab),function(_0x304b3f,_0x79104b){const _0x53613f=_0x2513;typeof exports==_0x53613f(0x211)&&typeof module<'u'?_0x79104b(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==_0x53613f(0x24e)&&define[_0x53613f(0x1cb)]?define([_0x53613f(0x17d),_0x53613f(0x23f),_0x53613f(0x19f),_0x53613f(0x247),_0x53613f(0x1e6),_0x53613f(0x25e),_0x53613f(0x194),_0x53613f(0x204),_0x53613f(0x1ea),'@univerjs/design',_0x53613f(0x212),_0x53613f(0x21a)],_0x79104b):(_0x304b3f=typeof globalThis<'u'?globalThis:_0x304b3f||self,_0x79104b(_0x304b3f[_0x53613f(0x1c8)]={},_0x304b3f['UniverProCollaboration'],_0x304b3f[_0x53613f(0x18f)],_0x304b3f[_0x53613f(0x263)],_0x304b3f['UniverSheets'],_0x304b3f[_0x53613f(0x25e)],_0x304b3f[_0x53613f(0x25e)][_0x53613f(0x1a5)],_0x304b3f[_0x53613f(0x189)],_0x304b3f[_0x53613f(0x1ec)],_0x304b3f['UniverDesign'],_0x304b3f['React'],_0x304b3f[_0x53613f(0x197)]));}(this,function(_0x22b40d,_0x226c1a,_0x2c5db5,_0x135454,_0x3c1ee6,_0xa8fcb2,_0x627475,_0x58d540,_0x519b13,_0x278a8a,_0xcb2de2,_0x2d0057){const _0x321abe=_0x2513;Object['defineProperty'](_0x22b40d,Symbol[_0x321abe(0x20b)],{'value':_0x321abe(0x1e9)});function _0x4c2785(_0xcca561){'@babel/helpers - typeof';const _0x51731a=_0x321abe;return _0x4c2785=typeof Symbol=='function'&&typeof Symbol[_0x51731a(0x1de)]==_0x51731a(0x226)?function(_0x587e7b){return typeof _0x587e7b;}:function(_0x1b63e6){const _0x56a004=_0x51731a;return _0x1b63e6&&typeof Symbol==_0x56a004(0x24e)&&_0x1b63e6[_0x56a004(0x1e2)]===Symbol&&_0x1b63e6!==Symbol[_0x56a004(0x181)]?_0x56a004(0x226):typeof _0x1b63e6;},_0x4c2785(_0xcca561);}function _0x2266ee(_0xb66463,_0x312e47){const _0x24b776=_0x321abe;if(_0x4c2785(_0xb66463)!=_0x24b776(0x211)||!_0xb66463)return _0xb66463;var _0x5af32f=_0xb66463[Symbol['toPrimitive']];if(_0x5af32f!==void 0x0){var _0x2b1307=_0x5af32f[_0x24b776(0x22d)](_0xb66463,_0x312e47||'default');if(_0x4c2785(_0x2b1307)!=_0x24b776(0x211))return _0x2b1307;throw TypeError(_0x24b776(0x19e));}return(_0x312e47==='string'?String:Number)(_0xb66463);}function _0x37e0df(_0x33075c){var _0x2f9ee6=_0x2266ee(_0x33075c,'string');return _0x4c2785(_0x2f9ee6)=='symbol'?_0x2f9ee6:_0x2f9ee6+'';}function _0x5e8633(_0x4401b2,_0x46cf06,_0x45ddc6){return(_0x46cf06=_0x37e0df(_0x46cf06))in _0x4401b2?Object['defineProperty'](_0x4401b2,_0x46cf06,{'value':_0x45ddc6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4401b2[_0x46cf06]=_0x45ddc6,_0x4401b2;}var _0x32815e=class extends _0x135454[_0x321abe(0x229)]{constructor(..._0x2bbdc1){const _0x36e4b3=_0x321abe;super(..._0x2bbdc1),_0x5e8633(this,'_sharedOperations',new Set()),_0x5e8633(this,_0x36e4b3(0x210),new Set());}['registerSharedOperation'](_0x2decd6){const _0x25e3c7=_0x321abe;return this[_0x25e3c7(0x230)][_0x25e3c7(0x218)](_0x2decd6),(0x0,_0x135454[_0x25e3c7(0x23b)])(()=>this[_0x25e3c7(0x230)][_0x25e3c7(0x1a4)](_0x2decd6));}[_0x321abe(0x228)](_0x2f7bba){const _0x1f38fe=_0x321abe;return this[_0x1f38fe(0x210)]['add'](_0x2f7bba),(0x0,_0x135454[_0x1f38fe(0x23b)])(()=>this[_0x1f38fe(0x210)]['delete'](_0x2f7bba));}[_0x321abe(0x252)](_0x1d6057){return this['_sharedOperations']['has'](_0x1d6057);}[_0x321abe(0x240)](_0x375532){const _0x3d2e1a=_0x321abe;return Array['from'](this[_0x3d2e1a(0x210)])[_0x3d2e1a(0x1ce)](_0x5adeaa=>_0x5adeaa(_0x375532));}};function _0x5b244f(_0x1c0b85,_0x36b313){return function(_0x57896f,_0x513b01){_0x36b313(_0x57896f,_0x513b01,_0x1c0b85);};}function _0x262a5a(_0x39dc3c,_0x5d576d,_0x36c39b,_0x3728a2){const _0x5ad114=_0x321abe;var _0x453f17=arguments[_0x5ad114(0x1ab)],_0x526978=_0x453f17<0x3?_0x5d576d:_0x3728a2===null?_0x3728a2=Object['getOwnPropertyDescriptor'](_0x5d576d,_0x36c39b):_0x3728a2,_0x24e1ea;if(typeof Reflect=='object'&&typeof Reflect[_0x5ad114(0x19a)]==_0x5ad114(0x24e))_0x526978=Reflect[_0x5ad114(0x19a)](_0x39dc3c,_0x5d576d,_0x36c39b,_0x3728a2);else{for(var _0x370fd4=_0x39dc3c[_0x5ad114(0x1ab)]-0x1;_0x370fd4>=0x0;_0x370fd4--)(_0x24e1ea=_0x39dc3c[_0x370fd4])&&(_0x526978=(_0x453f17<0x3?_0x24e1ea(_0x526978):_0x453f17>0x3?_0x24e1ea(_0x5d576d,_0x36c39b,_0x526978):_0x24e1ea(_0x5d576d,_0x36c39b))||_0x526978);}return _0x453f17>0x3&&_0x526978&&Object[_0x5ad114(0x1bc)](_0x5d576d,_0x36c39b,_0x526978),_0x526978;}let _0x319e38=class extends _0x135454[_0x321abe(0x20e)]{constructor(_0x41f7c,_0x4f5f8b,_0x3c451b){const _0x26cd0b=_0x321abe;super(),this[_0x26cd0b(0x1f2)]=_0x41f7c,this[_0x26cd0b(0x1e3)]=_0x4f5f8b,this[_0x26cd0b(0x257)]=_0x3c451b,_0x5e8633(this,_0x26cd0b(0x20d),new Map()),this[_0x26cd0b(0x243)]();}async[_0x321abe(0x20f)](_0x452003){const _0x5f2989=_0x321abe;return this[_0x5f2989(0x20d)][_0x5f2989(0x23c)](_0x452003)||await this[_0x5f2989(0x220)](_0x452003),this[_0x5f2989(0x20d)][_0x5f2989(0x1be)](_0x452003);}['getLiveShareCoordinatorSync'](_0x5a5a2b){const _0x522fd3=_0x321abe;var _0x2d273e;return(_0x2d273e=this[_0x522fd3(0x20d)]['get'](_0x5a5a2b))==null?null:_0x2d273e;}['_init'](){const _0x2501c6=_0x321abe;this[_0x2501c6(0x1f2)][_0x2501c6(0x256)](_0x135454[_0x2501c6(0x262)]['UNIVER_SHEET'])[_0x2501c6(0x19b)]((0x0,_0x627475[_0x2501c6(0x254)])(this[_0x2501c6(0x1c0)]))[_0x2501c6(0x1d7)](async _0x2696c2=>{const _0x377525=_0x2501c6;let _0x193844=_0x2696c2[_0x377525(0x1e5)][_0x377525(0x241)]();this[_0x377525(0x20d)][_0x377525(0x23c)](_0x193844)||this['_startLiveShareCoordinator'](_0x193844);}),this[_0x2501c6(0x1f2)][_0x2501c6(0x264)](_0x135454[_0x2501c6(0x262)]['UNIVER_SHEET'])[_0x2501c6(0x19b)]((0x0,_0x627475[_0x2501c6(0x254)])(this[_0x2501c6(0x1c0)]))['subscribe'](_0xe0eacc=>{const _0x31c3af=_0x2501c6;let _0x3b4554=_0xe0eacc[_0x31c3af(0x241)](),_0x5694c0=this[_0x31c3af(0x20d)][_0x31c3af(0x1be)](_0x3b4554);_0x5694c0==null||_0x5694c0[_0x31c3af(0x209)]();});}async[_0x321abe(0x220)](_0x3840f3){const _0x3452e9=_0x321abe;let _0x40bae4=await this['_collabSessionService'][_0x3452e9(0x268)](_0x3840f3),_0x3b7d6a=this['_injector'][_0x3452e9(0x1b2)](_0x1f6d67,_0x3840f3,_0x40bae4);return _0x3b7d6a[_0x3452e9(0x1f4)](),this['_entities'][_0x3452e9(0x1c9)](_0x3840f3,_0x3b7d6a),_0x3b7d6a;}};_0x319e38=_0x262a5a([_0x5b244f(0x0,_0x135454[_0x321abe(0x17c)]),_0x5b244f(0x1,(0x0,_0x135454['Inject'])(_0x135454[_0x321abe(0x26b)])),_0x5b244f(0x2,(0x0,_0x135454['Inject'])(_0x2c5db5[_0x321abe(0x1da)]))],_0x319e38);let _0x5cfea9=function(_0x520106){const _0x47f7be=_0x321abe;return _0x520106[_0x47f7be(0x23a)]=_0x47f7be(0x215),_0x520106[_0x47f7be(0x235)]=_0x47f7be(0x186),_0x520106[_0x47f7be(0x187)]=_0x47f7be(0x185),_0x520106[_0x47f7be(0x198)]=_0x47f7be(0x1a1),_0x520106[_0x47f7be(0x1dc)]=_0x47f7be(0x195),_0x520106;}({}),_0x1f6d67=class extends _0x135454[_0x321abe(0x20e)]{get[_0x321abe(0x1b0)](){const _0x9f7634=_0x321abe;return this[_0x9f7634(0x1f9)]['getValue']();}constructor(_0xe2b125,_0x47bb13,_0x10c8e9,_0x3195b6,_0x7d7375){const _0x6ed4f4=_0x321abe;super(),this['_unitID']=_0xe2b125,this[_0x6ed4f4(0x1b7)]=_0x47bb13,this[_0x6ed4f4(0x208)]=_0x10c8e9,this[_0x6ed4f4(0x1f0)]=_0x3195b6,this[_0x6ed4f4(0x1a0)]=_0x7d7375,_0x5e8633(this,'_status$',new _0xa8fcb2[(_0x6ed4f4(0x1d8))]('idle')),_0x5e8633(this,_0x6ed4f4(0x253),this[_0x6ed4f4(0x1f9)][_0x6ed4f4(0x21e)]()),_0x5e8633(this,_0x6ed4f4(0x243),!0x1),_0x5e8633(this,_0x6ed4f4(0x24f),null),_0x5e8633(this,'_presenter',null);}[_0x321abe(0x209)](){const _0x4367b0=_0x321abe;var _0x255948;(_0x255948=this[_0x4367b0(0x24f)])==null||_0x255948[_0x4367b0(0x209)](),this[_0x4367b0(0x1f9)][_0x4367b0(0x1bd)](_0x4367b0(0x186)),this[_0x4367b0(0x1f9)]['complete']();}[_0x321abe(0x25a)](){const _0x5f4655=_0x321abe;return this[_0x5f4655(0x1b0)];}['init'](){const _0x4106de=_0x321abe;this[_0x4106de(0x243)]||(this[_0x4106de(0x243)]=!0x0,this['_collabSession'][_0x4106de(0x191)]['pipe']((0x0,_0x627475[_0x4106de(0x254)])(this[_0x4106de(0x1c0)]))[_0x4106de(0x1d7)](_0x59430b=>{const _0x3a760c=_0x4106de;switch(_0x59430b){case _0x2c5db5[_0x3a760c(0x21d)][_0x3a760c(0x23a)]:this[_0x3a760c(0x1bb)]();break;case _0x2c5db5[_0x3a760c(0x21d)][_0x3a760c(0x1ee)]:this[_0x3a760c(0x182)]();break;default:}}),this['_collabSession']['event$'][_0x4106de(0x19b)]((0x0,_0x627475[_0x4106de(0x254)])(this[_0x4106de(0x1c0)]))[_0x4106de(0x1d7)](_0x688b42=>{const _0x14a9b6=_0x4106de;let {eventID:_0x11ab92}=_0x688b42;switch(_0x11ab92){case _0x226c1a[_0x14a9b6(0x18a)][_0x14a9b6(0x1fa)]:this['_handleNewHost'](_0x688b42);break;case _0x226c1a[_0x14a9b6(0x18a)][_0x14a9b6(0x1df)]:this[_0x14a9b6(0x269)](_0x688b42);break;case _0x226c1a[_0x14a9b6(0x18a)][_0x14a9b6(0x184)]:this[_0x14a9b6(0x1a2)]();break;case _0x226c1a['CollaborationEvent'][_0x14a9b6(0x1a7)]:this['_handleNewChangeSets'](_0x688b42);break;default:}}));}['tryStartPresenting'](){const _0x1f1c86=_0x321abe;this[_0x1f1c86(0x1b7)][_0x1f1c86(0x21b)]({'eventID':_0x226c1a[_0x1f1c86(0x18a)][_0x1f1c86(0x18c)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x1f1c86(0x267)]()}},this[_0x1f1c86(0x227)]);}[_0x321abe(0x21c)](){const _0x58d2c3=_0x321abe;this[_0x58d2c3(0x1b0)]===_0x58d2c3(0x195)&&(this[_0x58d2c3(0x1f9)][_0x58d2c3(0x1bd)](_0x58d2c3(0x186)),this['_collabSession'][_0x58d2c3(0x21b)]({'eventID':_0x226c1a[_0x58d2c3(0x18a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x58d2c3(0x227)]}},this[_0x58d2c3(0x227)]));}[_0x321abe(0x1cc)](){const _0x2389f2=_0x321abe;this[_0x2389f2(0x1b0)]===_0x2389f2(0x1a1)&&(this[_0x2389f2(0x1f9)]['next'](_0x2389f2(0x185)),this[_0x2389f2(0x1f3)]());}[_0x321abe(0x20c)](){const _0x3b5dbe=_0x321abe;this['_status']===_0x3b5dbe(0x185)&&this[_0x3b5dbe(0x1ed)]();}[_0x321abe(0x217)](_0x267ec2){const _0x1f4f3a=_0x321abe;let {presenter:_0x545eb6}=_0x267ec2[_0x1f4f3a(0x1c3)],_0x24abaa=this['_collabSession'][_0x1f4f3a(0x267)]();this['_presenter']=_0x545eb6,_0x545eb6===_0x24abaa?(this['_stopFollowing'](),this[_0x1f4f3a(0x21f)]()):this['_status']!==_0x1f4f3a(0x1a1)&&(this[_0x1f4f3a(0x1aa)](),this[_0x1f4f3a(0x1f3)]());}[_0x321abe(0x1ba)](){const _0x3fd5c1=_0x321abe;let _0x2a27e4={'eventID':_0x226c1a[_0x3fd5c1(0x18a)][_0x3fd5c1(0x249)]};this[_0x3fd5c1(0x1b7)]['send'](_0x2a27e4,this[_0x3fd5c1(0x227)]);}[_0x321abe(0x1a2)](){const _0x5ec000=_0x321abe;this['_presenter']=null,this[_0x5ec000(0x1b0)]!=='presenting'&&this[_0x5ec000(0x1c4)]();}['_handleNewChangeSets'](_0x445082){const _0x1ff8c8=_0x321abe;if(this[_0x1ff8c8(0x1b0)]==='following'&&this[_0x1ff8c8(0x1fd)]===_0x445082[_0x1ff8c8(0x1c3)]['memberID']){let _0x384e60=(0x0,_0x226c1a['parseProtocolChangeset'])(_0x445082['data'])[_0x1ff8c8(0x24d)][_0x1ff8c8(0x214)]()['find'](_0x322337=>_0x322337['id']===_0x3c1ee6[_0x1ff8c8(0x1c5)]['id']);if(_0x384e60){let _0x26ccaf=_0x384e60['params'][_0x1ff8c8(0x1dd)],_0xe41abb=_0x384e60[_0x1ff8c8(0x250)][_0x1ff8c8(0x1d1)]['id'];setTimeout(()=>{const _0x330a32=_0x1ff8c8;this[_0x330a32(0x1a0)][_0x330a32(0x1c2)](_0x3c1ee6[_0x330a32(0x1b4)]['id'],{'unitId':_0x26ccaf,'subUnitId':_0xe41abb},{'fromCollab':!0x0});});}}}[_0x321abe(0x21f)](){const _0x5a98a9=_0x321abe;var _0x303c90;(_0x303c90=this['_commandDisposable'])==null||_0x303c90[_0x5a98a9(0x209)](),this[_0x5a98a9(0x1f9)][_0x5a98a9(0x1bd)]('presenting');let _0x24ce45=new Map(),_0xa9e027=this[_0x5a98a9(0x24f)]=new _0x135454['DisposableCollection']();_0xa9e027[_0x5a98a9(0x218)]((0x0,_0x135454[_0x5a98a9(0x23b)])(()=>{const _0x4cefdf=_0x5a98a9;_0x24ce45['forEach'](({subject:_0x2ca484,subscription:_0x4ee42b})=>{const _0x5e5445=_0x2513;_0x4ee42b['unsubscribe'](),_0x2ca484[_0x5e5445(0x244)]();}),_0x24ce45[_0x4cefdf(0x1b5)]();})),_0xa9e027[_0x5a98a9(0x218)](this[_0x5a98a9(0x1a0)][_0x5a98a9(0x1e1)](_0x296f50=>{const _0x4172ea=_0x5a98a9;if(_0x296f50[_0x4172ea(0x1b8)]!==_0x135454[_0x4172ea(0x1cd)][_0x4172ea(0x1d0)]||!this[_0x4172ea(0x1f0)][_0x4172ea(0x252)](_0x296f50['id']))return;let {id:_0x127cd0}=_0x296f50,_0x508e63;if(_0x24ce45['has'](_0x127cd0))_0x508e63=_0x24ce45[_0x4172ea(0x1be)](_0x127cd0)['subject'];else{var _0x5a1be7;_0x508e63=new _0xa8fcb2[(_0x4172ea(0x1cf))]();let _0x44ea3f=_0x508e63[_0x4172ea(0x19b)]((0x0,_0x627475[_0x4172ea(0x205)])((_0x5a1be7=this[_0x4172ea(0x208)][_0x4172ea(0x1a8)](_0x4172ea(0x200)))==null?0xc8:_0x5a1be7,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4172ea(0x1d7)](_0x531977=>{const _0x46c650=_0x4172ea;this[_0x46c650(0x1b7)]['send']({'eventID':_0x226c1a[_0x46c650(0x18a)][_0x46c650(0x1df)],'data':{'unitID':this[_0x46c650(0x227)],'operations':{[_0x531977['id']]:{'id':_0x531977['id'],'params':JSON[_0x46c650(0x216)](_0x531977['params'])}}}},this[_0x46c650(0x227)]);});_0x24ce45[_0x4172ea(0x1c9)](_0x127cd0,{'subject':_0x508e63,'subscription':_0x44ea3f});}_0x508e63[_0x4172ea(0x1bd)](_0x296f50);})),this[_0x5a98a9(0x1f0)][_0x5a98a9(0x240)](this['_unitID'])[_0x5a98a9(0x221)](_0x4b45b3=>this[_0x5a98a9(0x1b7)][_0x5a98a9(0x21b)]({'eventID':_0x226c1a['CollaborationEvent'][_0x5a98a9(0x1df)],'data':{'unitID':this[_0x5a98a9(0x227)],'operations':{[_0x4b45b3['id']]:{'id':_0x4b45b3['id'],'params':JSON[_0x5a98a9(0x216)](_0x4b45b3[_0x5a98a9(0x250)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x3f8a5d=_0x321abe;var _0x5d0e32;this[_0x3f8a5d(0x1f9)][_0x3f8a5d(0x1bd)](_0x3f8a5d(0x186)),(_0x5d0e32=this[_0x3f8a5d(0x24f)])==null||_0x5d0e32[_0x3f8a5d(0x209)](),this[_0x3f8a5d(0x24f)]=null;}[_0x321abe(0x1f3)](){const _0x107b67=_0x321abe;var _0x869ba1;(_0x869ba1=this['_commandDisposable'])==null||_0x869ba1['dispose'](),this['_status$']['next'](_0x107b67(0x185));}[_0x321abe(0x1c4)](){const _0x47324b=_0x321abe;var _0x4ba7f1;this[_0x47324b(0x1f9)][_0x47324b(0x1bd)](_0x47324b(0x186)),(_0x4ba7f1=this[_0x47324b(0x24f)])==null||_0x4ba7f1[_0x47324b(0x209)](),this[_0x47324b(0x24f)]=null;}[_0x321abe(0x1ed)](){const _0x53cf22=_0x321abe;var _0x5c417e;this['_status$'][_0x53cf22(0x1bd)](_0x53cf22(0x1a1)),(_0x5c417e=this[_0x53cf22(0x24f)])==null||_0x5c417e['dispose']();}[_0x321abe(0x269)](_0xe13a5d){const _0x2b288e=_0x321abe;if([_0x2b288e(0x195),_0x2b288e(0x1a1),'offline'][_0x2b288e(0x219)](this[_0x2b288e(0x1b0)])||!_0xe13a5d[_0x2b288e(0x1c3)][_0x2b288e(0x1f5)]||_0xe13a5d[_0x2b288e(0x1c3)][_0x2b288e(0x1f5)]===this[_0x2b288e(0x1b7)]['getMemberID']())return;this[_0x2b288e(0x1b0)]==='idle'&&this[_0x2b288e(0x1f3)]();let _0x1c36a0=_0xe13a5d[_0x2b288e(0x1c3)]['operations'];Object[_0x2b288e(0x23e)](_0x1c36a0)[_0x2b288e(0x221)](_0x5ce5a6=>{const _0x15fece=_0x2b288e;this['_commandService'][_0x15fece(0x1c2)](_0x5ce5a6['id'],_0x5ce5a6[_0x15fece(0x250)]?JSON['parse'](_0x5ce5a6[_0x15fece(0x250)]):null,{'fromCollab':!0x0});});}[_0x321abe(0x1bb)](){const _0x2ef24e=_0x321abe;var _0x2a2050;this[_0x2ef24e(0x1f9)][_0x2ef24e(0x1bd)](_0x2ef24e(0x215)),(_0x2a2050=this[_0x2ef24e(0x24f)])==null||_0x2a2050[_0x2ef24e(0x209)]();}[_0x321abe(0x182)](){const _0x42127b=_0x321abe;this[_0x42127b(0x1f9)][_0x42127b(0x1bd)](_0x42127b(0x186)),this['_fetchOperations']();}};_0x1f6d67=_0x262a5a([_0x5b244f(0x2,_0x135454[_0x321abe(0x233)]),_0x5b244f(0x3,(0x0,_0x135454['Inject'])(_0x32815e)),_0x5b244f(0x4,_0x135454['ICommandService'])],_0x1f6d67);var _0x44ee2d=_0x321abe(0x260),_0x5c93ef=_0x321abe(0x1ad);let _0x17dc8b={},_0x3dfe76=class extends _0x135454[_0x321abe(0x229)]{constructor(_0x4b828a){const _0x4bae6e=_0x321abe;super(),this[_0x4bae6e(0x1f0)]=_0x4b828a,this[_0x4bae6e(0x243)]();}[_0x321abe(0x243)](){const _0x2b4d7f=_0x321abe;[_0x58d540[_0x2b4d7f(0x1f6)]['id'],_0x58d540[_0x2b4d7f(0x231)]['id'],_0x3c1ee6[_0x2b4d7f(0x1b4)]['id']][_0x2b4d7f(0x221)](_0x471f49=>{const _0x8d939a=_0x2b4d7f;this['disposeWithMe'](this[_0x8d939a(0x1f0)][_0x8d939a(0x207)](_0x471f49));});}};_0x3dfe76=_0x262a5a([_0x5b244f(0x0,(0x0,_0x135454['Inject'])(_0x32815e))],_0x3dfe76);function _0x4d6ade({ref:_0x2b980d,..._0x1d76f5}){const _0x5c316d=_0x321abe;let {icon:_0x15c374,id:_0x31fba9,className:_0x2a7a98,extend:_0x128664,..._0x4d3ab5}=_0x1d76f5,_0x4683cf=(_0x5c316d(0x1c7)+_0x31fba9+'\x20'+(_0x2a7a98||''))['trim'](),_0x518cad=(0x0,_0xcb2de2[_0x5c316d(0x261)])('_'+_0x5ad4c3());return _0x1d65db(_0x15c374,''+_0x31fba9,{'defIds':_0x15c374[_0x5c316d(0x1f8)],'idSuffix':_0x518cad['current']},{'ref':_0x2b980d,'className':_0x4683cf,..._0x4d3ab5},_0x128664);}function _0x1d65db(_0x3949ac,_0x362e87,_0xe461ce,_0x499bad,_0x48e536){const _0xe5d862=_0x321abe;return(0x0,_0xcb2de2[_0xe5d862(0x222)])(_0x3949ac[_0xe5d862(0x1b3)],{'key':_0x362e87,..._0xa2b1bd(_0x3949ac,_0xe461ce,_0x48e536),..._0x499bad},(_0x1db5b9(_0x3949ac,_0xe461ce)[_0xe5d862(0x25d)]||[])['map']((_0xee453d,_0x212659)=>_0x1d65db(_0xee453d,_0x362e87+'-'+_0x3949ac[_0xe5d862(0x1b3)]+'-'+_0x212659,_0xe461ce,void 0x0,_0x48e536)));}function _0xa2b1bd(_0x306c1e,_0x1a3f80,_0x206e51){const _0x5a3a46=_0x321abe;let _0x190b52={..._0x306c1e[_0x5a3a46(0x1fe)]};_0x206e51!=null&&_0x206e51[_0x5a3a46(0x193)]&&_0x190b52[_0x5a3a46(0x22e)]===_0x5a3a46(0x193)&&(_0x190b52['fill']=_0x206e51[_0x5a3a46(0x193)]),_0x206e51!=null&&_0x206e51['colorChannel1']&&_0x190b52[_0x5a3a46(0x1ac)]===_0x5a3a46(0x193)&&(_0x190b52[_0x5a3a46(0x1ac)]=_0x206e51[_0x5a3a46(0x193)]),_0x306c1e[_0x5a3a46(0x1b3)]==='mask'&&_0x190b52['id']&&(_0x190b52['id']+=_0x1a3f80[_0x5a3a46(0x265)]),Object[_0x5a3a46(0x232)](_0x190b52)['forEach'](([_0x29288b,_0xa1c026])=>{const _0x13401a=_0x5a3a46;_0x29288b===_0x13401a(0x1a6)&&typeof _0xa1c026==_0x13401a(0x1e8)&&(_0x190b52[_0x29288b]=_0xa1c026[_0x13401a(0x1db)](/url\(#(.*)\)/,'url(#$1'+_0x1a3f80[_0x13401a(0x265)]+')'));});let {defIds:_0x3a5225}=_0x1a3f80;return!_0x3a5225||_0x3a5225[_0x5a3a46(0x1ab)]===0x0?_0x190b52:(_0x306c1e[_0x5a3a46(0x1b3)]==='use'&&_0x190b52['xlink:href']&&(_0x190b52['xlink:href']+=_0x1a3f80[_0x5a3a46(0x265)]),Object[_0x5a3a46(0x232)](_0x190b52)[_0x5a3a46(0x221)](([_0x40d1de,_0x482d14])=>{const _0x5812d0=_0x5a3a46;typeof _0x482d14==_0x5812d0(0x1e8)&&(_0x190b52[_0x40d1de]=_0x482d14[_0x5812d0(0x1db)](/url\(#(.*)\)/,_0x5812d0(0x24a)+_0x1a3f80['idSuffix']+')'));}),_0x190b52);}function _0x1db5b9(_0x214d00,_0x56b40d){const _0x4ac83d=_0x321abe;var _0x4dae3a;let {defIds:_0x1187d4}=_0x56b40d;return!_0x1187d4||_0x1187d4[_0x4ac83d(0x1ab)]===0x0?_0x214d00:_0x214d00[_0x4ac83d(0x1b3)]===_0x4ac83d(0x1c1)&&(_0x4dae3a=_0x214d00[_0x4ac83d(0x25d)])!=null&&_0x4dae3a[_0x4ac83d(0x1ab)]?{..._0x214d00,'children':_0x214d00[_0x4ac83d(0x25d)][_0x4ac83d(0x1ce)](_0x334c88=>typeof _0x334c88[_0x4ac83d(0x1fe)]['id']==_0x4ac83d(0x1e8)&&_0x1187d4&&_0x1187d4[_0x4ac83d(0x219)](_0x334c88[_0x4ac83d(0x1fe)]['id'])?{..._0x334c88,'attrs':{..._0x334c88['attrs'],'id':_0x334c88['attrs']['id']+_0x56b40d[_0x4ac83d(0x265)]}}:_0x334c88)}:_0x214d00;}function _0x5ad4c3(){const _0x3695c2=_0x321abe;return Math[_0x3695c2(0x1b1)]()[_0x3695c2(0x1bf)](0x24)[_0x3695c2(0x1f1)](0x2,0x8);}_0x4d6ade['displayName']='UniverIcon';let _0x3c5841={'tag':_0x321abe(0x246),'attrs':{'xmlns':_0x321abe(0x1f7),'fill':_0x321abe(0x245),'viewBox':'0\x200\x2017\x2017','width':_0x321abe(0x1a9),'height':_0x321abe(0x1a9)},'children':[{'tag':_0x321abe(0x266),'attrs':{'fill':_0x321abe(0x22b),'d':_0x321abe(0x1d3)}},{'tag':_0x321abe(0x266),'attrs':{'fill':_0x321abe(0x22b),'d':_0x321abe(0x1ff),'fillRule':_0x321abe(0x25c),'clipRule':_0x321abe(0x25c)}}]},_0x350b51=(0x0,_0xcb2de2[_0x321abe(0x18e)])(function(_0x3ba527,_0x420826){const _0xd3b778=_0x321abe;return(0x0,_0xcb2de2['createElement'])(_0x4d6ade,Object['assign']({},_0x3ba527,{'id':_0xd3b778(0x22c),'ref':_0x420826,'icon':_0x3c5841}));});_0x350b51[_0x321abe(0x1eb)]=_0x321abe(0x24b);function _0x2d75ec(){const _0x5efc7d=_0x321abe;let _0x363c99=(0x0,_0x519b13['useDependency'])(_0x319e38),_0x1a8827=(0x0,_0x519b13['useDependency'])(_0x135454['IUniverInstanceService']),_0x229539=(0x0,_0x519b13[_0x5efc7d(0x251)])(()=>_0x1a8827['getCurrentTypeOfUnit$'](_0x135454['UniverInstanceType'][_0x5efc7d(0x201)]),void 0x0,!0x1,[]),[_0x214d07,_0x4afaf4]=(0x0,_0xcb2de2[_0x5efc7d(0x17f)])(null),[_0x4239e8,_0x554fa9]=(0x0,_0xcb2de2[_0x5efc7d(0x17f)])(_0x5efc7d(0x186)),_0x381300=(0x0,_0xcb2de2['useRef'])(null);return(0x0,_0xcb2de2[_0x5efc7d(0x237)])(()=>(_0x229539&&_0x363c99[_0x5efc7d(0x20f)](_0x229539[_0x5efc7d(0x241)]())[_0x5efc7d(0x1fc)](_0x267830=>{const _0x86f771=_0x5efc7d;_0x4afaf4(_0x267830),_0x381300[_0x86f771(0x223)]=_0x267830[_0x86f771(0x253)][_0x86f771(0x1d7)](_0x36f081=>{_0x554fa9(_0x36f081);});}),()=>{const _0x4816fc=_0x5efc7d;var _0x43481f;(_0x43481f=_0x381300['current'])==null||_0x43481f['unsubscribe'](),_0x381300[_0x4816fc(0x223)]=null;}),[_0x229539,_0x363c99]),_0x214d07?(0x0,_0x2d0057['jsx'])(_0x278a8a['Dropdown'],{'align':_0x5efc7d(0x188),'disabled':_0x4239e8===_0x5efc7d(0x215),'className':_0x5efc7d(0x17e),'overlay':(0x0,_0x2d0057[_0x5efc7d(0x1e4)])(_0x5c4fd7,{'status':_0x4239e8,'coordinator':_0x214d07}),'children':(0x0,_0x2d0057[_0x5efc7d(0x1e4)])('button',{'className':(0x0,_0x278a8a[_0x5efc7d(0x1c6)])(_0x5efc7d(0x24c),{'univer-cursor-not-allowed':_0x4239e8===_0x5efc7d(0x215),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4239e8!==_0x5efc7d(0x215)}),'type':'button','children':(0x0,_0x2d0057[_0x5efc7d(0x1e4)])(_0x350b51,{})})}):null;}function _0x5c4fd7(_0x3904e5){const _0x432d38=_0x321abe;let {status:_0x3d8aad,coordinator:_0x22ca8e}=_0x3904e5;switch(_0x3d8aad){case _0x432d38(0x186):return(0x0,_0x2d0057[_0x432d38(0x1e4)])(_0x527c08,{'coordinator':_0x22ca8e});case _0x432d38(0x185):return(0x0,_0x2d0057[_0x432d38(0x1e4)])(_0x36b166,{'coordinator':_0x22ca8e});case _0x432d38(0x1a1):return(0x0,_0x2d0057[_0x432d38(0x1e4)])(_0x399326,{'coordinator':_0x22ca8e});case'offline':return(0x0,_0x2d0057['jsx'])(_0xcddfac,{});case _0x432d38(0x195):return(0x0,_0x2d0057[_0x432d38(0x1e4)])(_0x1f39dc,{'coordinator':_0x22ca8e});default:return null;}}function _0x527c08(_0x2fe117){const _0x3139cf=_0x321abe;let {coordinator:_0x58e6cf}=_0x2fe117;return(0x0,_0x2d0057[_0x3139cf(0x23d)])(_0x2d0057[_0x3139cf(0x234)],{'children':[(0x0,_0x2d0057['jsx'])(_0x3139cf(0x19c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3139cf(0x225)}),(0x0,_0x2d0057[_0x3139cf(0x1e4)])(_0x278a8a[_0x3139cf(0x206)],{'onClick':()=>_0x58e6cf['tryStartPresenting'](),'children':'Start'})]});}function _0x36b166(_0x2b1aa7){const _0x3c3d1f=_0x321abe;let {coordinator:_0x287bf2}=_0x2b1aa7;return(0x0,_0x2d0057[_0x3c3d1f(0x23d)])(_0x2d0057[_0x3c3d1f(0x234)],{'children':[(0x0,_0x2d0057[_0x3c3d1f(0x1e4)])(_0x3c3d1f(0x19c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3c3d1f(0x1e7)}),(0x0,_0x2d0057[_0x3c3d1f(0x1e4)])(_0x278a8a[_0x3c3d1f(0x206)],{'onClick':()=>_0x287bf2['stopFollowing'](),'children':_0x3c3d1f(0x258)})]});}function _0x399326(_0xf74f50){const _0x31cbdf=_0x321abe;let {coordinator:_0x530fa5}=_0xf74f50;return(0x0,_0x2d0057[_0x31cbdf(0x23d)])(_0x2d0057[_0x31cbdf(0x234)],{'children':[(0x0,_0x2d0057[_0x31cbdf(0x1e4)])(_0x31cbdf(0x19c),{'className':_0x31cbdf(0x22a),'children':_0x31cbdf(0x196)}),(0x0,_0x2d0057[_0x31cbdf(0x1e4)])(_0x278a8a['Button'],{'variant':_0x31cbdf(0x1d6),'onClick':()=>_0x530fa5[_0x31cbdf(0x1cc)](),'children':_0x31cbdf(0x18b)})]});}function _0x1f39dc(_0x578ea0){const _0x3f08a2=_0x321abe;let {coordinator:_0x41263f}=_0x578ea0;return(0x0,_0x2d0057[_0x3f08a2(0x23d)])(_0x2d0057[_0x3f08a2(0x234)],{'children':[(0x0,_0x2d0057['jsx'])(_0x3f08a2(0x19c),{'className':_0x3f08a2(0x22a),'children':_0x3f08a2(0x1af)}),(0x0,_0x2d0057['jsx'])(_0x278a8a['Button'],{'variant':_0x3f08a2(0x17a),'onClick':()=>_0x41263f[_0x3f08a2(0x21c)](),'children':_0x3f08a2(0x25f)})]});}function _0xcddfac(){const _0x365a06=_0x321abe;return(0x0,_0x2d0057[_0x365a06(0x1e4)])(_0x2d0057[_0x365a06(0x234)],{'children':'You\x27are\x20offline.'});}let _0x4dfc7f=class extends _0x135454[_0x321abe(0x229)]{constructor(_0x3a3270,_0x4b29b0){const _0x4ceb70=_0x321abe;super(),this['_injector']=_0x3a3270,this[_0x4ceb70(0x1e0)]=_0x4b29b0,this[_0x4ceb70(0x20a)]();}[_0x321abe(0x20a)](){const _0xe472df=_0x321abe;this['disposeWithMe'](this[_0xe472df(0x1e0)][_0xe472df(0x248)](_0x519b13[_0xe472df(0x183)][_0xe472df(0x1b9)],()=>(0x0,_0x519b13['connectInjector'])(_0x2d75ec,this['_injector'])));}};_0x4dfc7f=_0x262a5a([_0x5b244f(0x0,(0x0,_0x135454['Inject'])(_0x135454['Injector'])),_0x5b244f(0x1,_0x519b13['IUIPartsService'])],_0x4dfc7f);let _0x1d2fb6=class extends _0x135454[_0x321abe(0x192)]{constructor(_0x14f2e9=_0x17dc8b,_0x14d362,_0x447382){const _0xf6ea33=_0x321abe;super(),this[_0xf6ea33(0x190)]=_0x14f2e9,this[_0xf6ea33(0x1e3)]=_0x14d362,this['_configService']=_0x447382;let {..._0x56da46}=(0x0,_0x135454[_0xf6ea33(0x17b)])({},_0x17dc8b,this[_0xf6ea33(0x190)]);this['_configService'][_0xf6ea33(0x239)](_0xf6ea33(0x1ca),_0x56da46);}[_0x321abe(0x1d5)](){const _0xc42f89=_0x321abe;(0x0,_0x135454[_0xc42f89(0x1d4)])(this[_0xc42f89(0x1e3)],(0x0,_0x135454[_0xc42f89(0x1d9)])([[_0x32815e],[_0x319e38],[_0x3dfe76],[_0x4dfc7f]],this['_config'][_0xc42f89(0x180)])),(0x0,_0x135454['touchDependencies'])(this[_0xc42f89(0x1e3)],[[_0x3dfe76]]);}[_0x321abe(0x224)](){const _0x191e6c=_0x321abe;(0x0,_0x135454[_0x191e6c(0x199)])(this[_0x191e6c(0x1e3)],[[_0x4dfc7f]]);}};_0x5e8633(_0x1d2fb6,_0x321abe(0x1b8),_0x135454[_0x321abe(0x262)][_0x321abe(0x25b)]),_0x5e8633(_0x1d2fb6,_0x321abe(0x1a3),_0x321abe(0x1fb)),_0x5e8633(_0x1d2fb6,_0x321abe(0x1b6),_0x44ee2d),_0x5e8633(_0x1d2fb6,_0x321abe(0x259),_0x5c93ef),_0x1d2fb6=_0x262a5a([(0x0,_0x135454[_0x321abe(0x1ae)])(_0x2c5db5[_0x321abe(0x1d2)]),_0x5b244f(0x1,(0x0,_0x135454[_0x321abe(0x238)])(_0x135454[_0x321abe(0x26b)])),_0x5b244f(0x2,_0x135454[_0x321abe(0x233)])],_0x1d2fb6),Object['defineProperty'](_0x22b40d,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x319e38;}}),_0x22b40d[_0x321abe(0x236)]=_0x5cfea9,Object['defineProperty'](_0x22b40d,_0x321abe(0x202),{'enumerable':!0x0,'get':function(){return _0x1d2fb6;}});}));function _0x543a(){const _0x3af179=['CollaborationSessionService','replace','PRESENTING','unitId','iterator','LIVESHARE_OPERATION','_uiPartsService','onCommandExecuted','constructor','_injector','jsx','unit','@univerjs/sheets','You\x27re\x20following\x20the\x20presenter','string','Module','@univerjs/ui','displayName','UniverUi','_stopFollowing','ONLINE','3197260cHMghw','_liveShareService','substring','_univerInstanceService','_startFollowing','init','presenter','SetZoomRatioOperation','http://www.w3.org/2000/svg','defIds','_status$','LIVESHARE_NEW_HOST','UNIVER_LIVE_SHARE_PLUGIN','then','_presenter','attrs','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','SAME_OPERATION_SHARE_INTERVAL','UNIVER_SHEET','UniverLiveSharePlugin','2022504wygZUa','@univerjs/sheets-ui','throttleTime','Button','registerSharedOperation','_configService','dispose','_mountLiveShare','toStringTag','stopFollowing','_entities','RxDisposable','getLiveShareCoordinator','_reporters','object','react','1215747zfYMmJ','reverse','offline','stringify','_handleNewHost','add','includes','react/jsx-runtime','send','stopPresenting','SessionStatus','asObservable','_startPresenting','_startLiveShareCoordinator','forEach','createElement','current','onRendered','Present\x20this\x20document','symbol','_unitID','registerInitialStateReporter','Disposable','univer-mb-3\x20univer-w-full\x20univer-text-sm','currentColor','live-share-icon','call','fill','740700plhqqe','_sharedOperations','SetScrollOperation','entries','IConfigService','Fragment','IDLE','LiveShareStatus','useEffect','Inject','setConfig','OFFLINE','toDisposable','has','jsxs','values','@univerjs-pro/collaboration','getInitialStates','getUnitId','6154818vtNefn','_init','complete','none','svg','@univerjs/core','registerComponent','LIVESHARE_FETCH_OPERATIONS','url(#$1','LiveShareIcon','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','mutations','function','_commandDisposable','params','useObservable','shouldShareOperation','status$','takeUntil','7cKRAtI','getTypeOfUnitAdded$','_collabSessionService','Stop\x20following','version','getStatus','UNIVER_UNKNOWN','evenodd','children','rxjs','Stop\x20presenting','@univerjs-pro/live-share','useRef','UniverInstanceType','UniverCore','getTypeOfUnitDisposed$','idSuffix','path','getMemberID','requireSession','_handleOperation','136168PcAInc','Injector','default','merge','IUniverInstanceService','exports','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','useState','override','prototype','_handleOnline','BuiltInUIPart','LIVESHARE_TERMINATE','following','idle','FOLLOWING','end','UniverSheetsUi','CollaborationEvent','Start\x20following','LIVESHARE_REQUEST_HOST','2346536PKAJQk','forwardRef','UniverProCollaborationClient','_config','sessionStatus$','Plugin','colorChannel1','rxjs/operators','presenting','You\x27re\x20not\x20following\x20the\x20presenter','React','NOT_FOLLOWING','touchDependencies','decorate','pipe','div','8oiUKoa','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs-pro/collaboration-client','_commandService','not-following','_handleTerminate','pluginName','delete','operators','mask','NEW_CHANGESETS','getConfig','1em','_stopPresenting','length','stroke','1.0.0-alpha.3','DependentOn','You\x27re\x20presenting\x20the\x20document','_status','random','createInstance','tag','SetWorksheetActiveOperation','clear','packageName','_collabSession','type','HEADER_MENU','_fetchOperations','_handleOffline','defineProperty','next','get','toString','dispose$','defs','executeCommand','data','_beIdle','InsertSheetMutation','clsx','univerjs-icon\x20univerjs-icon-','UniverProLiveShare','set','live-share.config','amd','startFollowing','CommandType','map','Subject','OPERATION','sheet','UniverCollaborationClientPlugin','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','registerDependencies','onStarting','text','subscribe','BehaviorSubject','mergeOverrideWithDependencies'];_0x543a=function(){return _0x3af179;};return _0x543a();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.3",
|
|
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,24 @@
|
|
|
62
62
|
"rxjs": ">=7.0.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@univerjs/icons": "1.
|
|
66
|
-
"@univerjs-pro/collaboration": "1.0.0-alpha.
|
|
67
|
-
"@univerjs-pro/collaboration-client": "1.0.0-alpha.
|
|
68
|
-
"@univerjs/core": "1.0.0-alpha.
|
|
69
|
-
"@univerjs/design": "1.0.0-alpha.
|
|
70
|
-
"@univerjs/sheets
|
|
71
|
-
"@univerjs/ui": "1.0.0-alpha.
|
|
72
|
-
"@univerjs/
|
|
65
|
+
"@univerjs/icons": "1.20.0",
|
|
66
|
+
"@univerjs-pro/collaboration": "1.0.0-alpha.3",
|
|
67
|
+
"@univerjs-pro/collaboration-client": "1.0.0-alpha.3",
|
|
68
|
+
"@univerjs/core": "1.0.0-alpha.3",
|
|
69
|
+
"@univerjs/design": "1.0.0-alpha.3",
|
|
70
|
+
"@univerjs/sheets": "1.0.0-alpha.3",
|
|
71
|
+
"@univerjs/sheets-ui": "1.0.0-alpha.3",
|
|
72
|
+
"@univerjs/ui": "1.0.0-alpha.3"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"postcss": "^8.5.
|
|
75
|
+
"postcss": "^8.5.16",
|
|
76
76
|
"react": "18.3.1",
|
|
77
77
|
"rxjs": "7.8.2",
|
|
78
78
|
"tailwindcss": "3.4.17",
|
|
79
79
|
"typescript": "^6.0.3",
|
|
80
|
-
"vitest": "^4.1.
|
|
81
|
-
"@univerjs-infra/shared": "1.0.0-alpha.
|
|
82
|
-
"@univerjs/protocol": "1.0.0-alpha.
|
|
80
|
+
"vitest": "^4.1.10",
|
|
81
|
+
"@univerjs-infra/shared": "1.0.0-alpha.3",
|
|
82
|
+
"@univerjs/protocol": "1.0.0-alpha.3"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
85
85
|
"test": "vitest run",
|