@univerjs-pro/live-share 1.0.0-alpha.2 → 1.0.0-alpha.4
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 _0x5c1b22=_0x21ee;(function(_0x24970e,_0x2bad49){const _0x5ddef5=_0x21ee,_0x125859=_0x24970e();while(!![]){try{const _0x1a2bb1=parseInt(_0x5ddef5(0x1e4))/0x1*(-parseInt(_0x5ddef5(0x1f7))/0x2)+parseInt(_0x5ddef5(0x202))/0x3*(-parseInt(_0x5ddef5(0x1ff))/0x4)+parseInt(_0x5ddef5(0x205))/0x5*(parseInt(_0x5ddef5(0x1e3))/0x6)+-parseInt(_0x5ddef5(0x1df))/0x7+parseInt(_0x5ddef5(0x1de))/0x8*(parseInt(_0x5ddef5(0x1ee))/0x9)+-parseInt(_0x5ddef5(0x204))/0xa*(parseInt(_0x5ddef5(0x200))/0xb)+-parseInt(_0x5ddef5(0x1fc))/0xc*(-parseInt(_0x5ddef5(0x1fa))/0xd);if(_0x1a2bb1===_0x2bad49)break;else _0x125859['push'](_0x125859['shift']());}catch(_0x260d48){_0x125859['push'](_0x125859['shift']());}}}(_0x4f05,0x5ad5d));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x122b1b){'@babel/helpers - typeof';const _0x4d2e53=_0x21ee;return r=typeof Symbol==_0x4d2e53(0x1f6)&&typeof Symbol['iterator']==_0x4d2e53(0x1e8)?function(_0x55cfaa){return typeof _0x55cfaa;}:function(_0xc8711a){const _0x507dfe=_0x4d2e53;return _0xc8711a&&typeof Symbol==_0x507dfe(0x1f6)&&_0xc8711a[_0x507dfe(0x1e5)]===Symbol&&_0xc8711a!==Symbol[_0x507dfe(0x1da)]?_0x507dfe(0x1e8):typeof _0xc8711a;},r(_0x122b1b);}function i(_0x191480,_0x363974){const _0x4e0db6=_0x21ee;if(r(_0x191480)!=_0x4e0db6(0x1fd)||!_0x191480)return _0x191480;var _0x848f49=_0x191480[Symbol[_0x4e0db6(0x1dd)]];if(_0x848f49!==void 0x0){var _0x21bbd1=_0x848f49['call'](_0x191480,_0x363974||_0x4e0db6(0x1e1));if(r(_0x21bbd1)!=_0x4e0db6(0x1fd))return _0x21bbd1;throw TypeError(_0x4e0db6(0x1dc));}return(_0x363974===_0x4e0db6(0x1f0)?String:Number)(_0x191480);}function a(_0x3bc523){const _0x39d330=_0x21ee;var _0x11f0f0=i(_0x3bc523,_0x39d330(0x1f0));return r(_0x11f0f0)==_0x39d330(0x1e8)?_0x11f0f0:_0x11f0f0+'';}function _0x4f05(){const _0x345263=['default','UniverInstanceType','797586eEcwXZ','2203gQEOop','constructor','_liveShareController','tryStartPresenting','symbol','IDLE','LiveShareController','extend','startPresenting','get','63QxbsmH','_injector','string','getLiveShareCoordinatorSync','getStatus','stopPresenting','FUniver','getUnitId','function','220MhNgRb','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','5538ZnuZCw','stopFollowing','27660wSIJOk','object','IUniverInstanceService','888360UkHKUn','6809011LJTrbm','LiveShareStatus','3cuTDhN','getCurrentUnitOfType','10ewuqMp','10xbjQVy','FEnum','UNIVER_SHEET','prototype','No\x20active\x20workbook\x20found.','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','toPrimitive','355744KmwsYD','725102TBYTCt','defineProperty'];_0x4f05=function(){return _0x345263;};return _0x4f05();}function o(_0x266aa3,_0x308c2b,_0x1c4295){const _0x406a0d=_0x21ee;return(_0x308c2b=a(_0x308c2b))in _0x266aa3?Object[_0x406a0d(0x1e0)](_0x266aa3,_0x308c2b,{'value':_0x1c4295,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x266aa3[_0x308c2b]=_0x1c4295,_0x266aa3;}var s=class extends n[_0x5c1b22(0x1f4)]{constructor(..._0x4473f4){super(..._0x4473f4),o(this,'_liveShareController',void 0x0);}['_initialize'](_0x5ba7a3){const _0x3e487d=_0x5c1b22;this['_liveShareController']=_0x5ba7a3['get'](e[_0x3e487d(0x1ea)]);}['getLiveShareStatus'](){const _0x57ea69=_0x5c1b22;var _0xef896c;let _0x216953=this[_0x57ea69(0x1ef)]['get'](t[_0x57ea69(0x1fe)])[_0x57ea69(0x203)](t[_0x57ea69(0x1e2)][_0x57ea69(0x1d9)]);if(!_0x216953)throw Error(_0x57ea69(0x1db));let _0x5dd337=_0x216953[_0x57ea69(0x1f5)](),_0x201c86=this[_0x57ea69(0x1e6)][_0x57ea69(0x1f1)](_0x5dd337);return(_0xef896c=_0x201c86==null?void 0x0:_0x201c86[_0x57ea69(0x1f2)]())==null?e['LiveShareStatus'][_0x57ea69(0x1e9)]:_0xef896c;}[_0x5c1b22(0x1f9)](){const _0x28181f=_0x5c1b22;let _0x4a543b=this[_0x28181f(0x1ef)][_0x28181f(0x1ed)](t[_0x28181f(0x1fe)])[_0x28181f(0x203)](t['UniverInstanceType']['UNIVER_SHEET']);if(!_0x4a543b)throw Error('No\x20active\x20workbook\x20found.');let _0x57ff4a=_0x4a543b[_0x28181f(0x1f5)](),_0x4496fe=this[_0x28181f(0x1e6)][_0x28181f(0x1f1)](_0x57ff4a);if(!_0x4496fe)throw Error(_0x28181f(0x1f8));_0x4496fe[_0x28181f(0x1f9)]();}[_0x5c1b22(0x1fb)](){const _0x57d9fb=_0x5c1b22;let _0x6f64e8=this['_injector'][_0x57d9fb(0x1ed)](t[_0x57d9fb(0x1fe)])[_0x57d9fb(0x203)](t[_0x57d9fb(0x1e2)][_0x57d9fb(0x1d9)]);if(!_0x6f64e8)throw Error(_0x57d9fb(0x1db));let _0x2d468c=_0x6f64e8[_0x57d9fb(0x1f5)](),_0x2d4948=this[_0x57d9fb(0x1e6)][_0x57d9fb(0x1f1)](_0x2d468c);if(!_0x2d4948)throw Error(_0x57d9fb(0x1f8));_0x2d4948[_0x57d9fb(0x1fb)]();}[_0x5c1b22(0x1ec)](){const _0x3246d1=_0x5c1b22;let _0x11ddf0=this[_0x3246d1(0x1ef)][_0x3246d1(0x1ed)](t[_0x3246d1(0x1fe)])[_0x3246d1(0x203)](t[_0x3246d1(0x1e2)][_0x3246d1(0x1d9)]);if(!_0x11ddf0)throw Error(_0x3246d1(0x1db));let _0x5181ec=_0x11ddf0['getUnitId'](),_0xf4c73f=this[_0x3246d1(0x1e6)][_0x3246d1(0x1f1)](_0x5181ec);if(!_0xf4c73f)throw Error(_0x3246d1(0x1f8));_0xf4c73f[_0x3246d1(0x1e7)]();}[_0x5c1b22(0x1f3)](){const _0x291339=_0x5c1b22;let _0xb75311=this['_injector'][_0x291339(0x1ed)](t['IUniverInstanceService'])[_0x291339(0x203)](t[_0x291339(0x1e2)]['UNIVER_SHEET']);if(!_0xb75311)throw Error(_0x291339(0x1db));let _0x46906f=_0xb75311[_0x291339(0x1f5)](),_0x458a9a=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x46906f);if(!_0x458a9a)throw Error(_0x291339(0x1f8));_0x458a9a['stopPresenting']();}};n['FUniver'][_0x5c1b22(0x1eb)](s);var c=class extends n[_0x5c1b22(0x206)]{get['LiveShareStatusEnum'](){const _0x52027f=_0x5c1b22;return e[_0x52027f(0x201)];}};function _0x21ee(_0x5ca770,_0x2733b5){_0x5ca770=_0x5ca770-0x1d9;const _0x4f0581=_0x4f05();let _0x21eec3=_0x4f0581[_0x5ca770];return _0x21eec3;}n[_0x5c1b22(0x206)][_0x5c1b22(0x1eb)](c);
|
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
|
+
function _0x3365(_0x28d180,_0x4f7400){_0x28d180=_0x28d180-0x16d;const _0xa93055=_0xa930();let _0x3365e6=_0xa93055[_0x28d180];return _0x3365e6;}const _0x56be30=_0x3365;(function(_0x40e3d4,_0x5b9b21){const _0x23ecde=_0x3365,_0x16297c=_0x40e3d4();while(!![]){try{const _0x62b387=parseInt(_0x23ecde(0x202))/0x1*(parseInt(_0x23ecde(0x1e9))/0x2)+parseInt(_0x23ecde(0x1b8))/0x3+-parseInt(_0x23ecde(0x1af))/0x4*(parseInt(_0x23ecde(0x1e5))/0x5)+-parseInt(_0x23ecde(0x1ed))/0x6+-parseInt(_0x23ecde(0x17d))/0x7+-parseInt(_0x23ecde(0x16d))/0x8+parseInt(_0x23ecde(0x1b7))/0x9*(parseInt(_0x23ecde(0x1ef))/0xa);if(_0x62b387===_0x5b9b21)break;else _0x16297c['push'](_0x16297c['shift']());}catch(_0x5e4c29){_0x16297c['push'](_0x16297c['shift']());}}}(_0xa930,0xc4d8d),Object[_0x56be30(0x177)](exports,Symbol[_0x56be30(0x224)],{'value':_0x56be30(0x1c8)}));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 _0xa930(){const _0xca5744=['symbol','Inject','CollaborationEvent','BuiltInUIPart','stringify','asObservable','toStringTag','disposeWithMe','9421592TNYITr','_unitID','_collabSessionService','IUIPartsService','PRESENTING','_handleOffline','NEW_CHANGESETS','delete','SessionStatus','registerInitialStateReporter','defineProperty','toDisposable','LIVESHARE_REQUEST_HOST','_entities','InsertSheetMutation','HEADER_MENU','8054319QGPDEA','LIVESHARE_FETCH_OPERATIONS','takeUntil','init','iterator','_collabSession','You\x27re\x20presenting\x20the\x20document','set','mutations','div','OFFLINE','_commandService','UniverCollaborationClientPlugin','prototype','Injector','_stopPresenting','You\x27re\x20not\x20following\x20the\x20presenter','object','SetWorksheetActiveOperation','packageName','getConfig','UNIVER_UNKNOWN','_handleOnline','jsx','sessionStatus$','subscribe','connectInjector','offline','getUnitId','get','function','forEach','dispose$','stopFollowing','unit','_startFollowing','getValue','live-share.config','call','IDLE','onRendered','_uiPartsService','getStatus','registerSharedOperation','length','_status','has','LIVESHARE_OPERATION','event$','pluginName','188KIjORt','1.0.0-alpha.4','getOwnPropertyDescriptor','touchDependencies','getLiveShareCoordinator','includes','startFollowing','_handleOperation','9cXJYQX','4385352qRVpXA','You\x27are\x20offline.','univer-mb-3\x20univer-w-full\x20univer-text-sm','FOLLOWING','LIVESHARE_TERMINATE','_startPresenting','registerComponent','Disposable','_liveShareService','constructor','CollaborationSessionService','stopPresenting','LiveShareStatus','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','onCommandExecuted','Module','BehaviorSubject','LiveShareIcon','You\x27re\x20following\x20the\x20presenter','following','version','getCurrentTypeOfUnit$','getMemberID','Fragment','getTypeOfUnitAdded$','not-following','decorate','_init','subject','_injector','override','getInitialStates','IUniverInstanceService','default','params','Button','parse','requireSession','text','next','from','presenter','registerDependencies','values','108065eAZnbR','_handleTerminate','_config','_univerInstanceService','412UrsVra','memberID','end','add','7478316ZskQps','clsx','23490200AaKoHO','pipe','RxDisposable','dispose','_handleNewChangeSets','mergeOverrideWithDependencies','UniverLiveSharePlugin','idle','send','_beIdle','_handleNewHost','setConfig','string','_presenter','unsubscribe','Present\x20this\x20document','useObservable','Stop\x20following','executeCommand','7699XPijNo','jsxs','button','find','_mountLiveShare','LIVESHARE_NEW_HOST','presenting','_reporters','complete','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','SetZoomRatioOperation','_configService','_stopFollowing','status$','tryStartPresenting','createInstance','IConfigService','_status$','Dropdown','getTypeOfUnitDisposed$','_sharedOperations','onStarting','ONLINE','UniverInstanceType','merge','UNIVER_SHEET','@univerjs-pro/live-share','data'];_0xa930=function(){return _0xca5744;};return _0xa930();}function f(_0x457b33){'@babel/helpers - typeof';const _0x172966=_0x56be30;return f=typeof Symbol==_0x172966(0x19b)&&typeof Symbol[_0x172966(0x181)]==_0x172966(0x21e)?function(_0x2905ea){return typeof _0x2905ea;}:function(_0x50b705){const _0x16114f=_0x172966;return _0x50b705&&typeof Symbol==_0x16114f(0x19b)&&_0x50b705[_0x16114f(0x1c1)]===Symbol&&_0x50b705!==Symbol[_0x16114f(0x18a)]?_0x16114f(0x21e):typeof _0x50b705;},f(_0x457b33);}function p(_0x1be13e,_0x364b09){const _0x33966f=_0x56be30;if(f(_0x1be13e)!=_0x33966f(0x18e)||!_0x1be13e)return _0x1be13e;var _0x13ba0b=_0x1be13e[Symbol['toPrimitive']];if(_0x13ba0b!==void 0x0){var _0x4972f5=_0x13ba0b[_0x33966f(0x1a3)](_0x1be13e,_0x364b09||_0x33966f(0x1da));if(f(_0x4972f5)!=_0x33966f(0x18e))return _0x4972f5;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x364b09===_0x33966f(0x1fb)?String:Number)(_0x1be13e);}function m(_0x13803f){const _0x3e1f59=_0x56be30;var _0x288b80=p(_0x13803f,_0x3e1f59(0x1fb));return f(_0x288b80)=='symbol'?_0x288b80:_0x288b80+'';}function h(_0x8c154f,_0xf9274,_0x577046){const _0x4e9c85=_0x56be30;return(_0xf9274=m(_0xf9274))in _0x8c154f?Object[_0x4e9c85(0x177)](_0x8c154f,_0xf9274,{'value':_0x577046,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x8c154f[_0xf9274]=_0x577046,_0x8c154f;}var g=class extends n[_0x56be30(0x1bf)]{constructor(..._0x48ce32){const _0x3cf651=_0x56be30;super(..._0x48ce32),h(this,_0x3cf651(0x216),new Set()),h(this,_0x3cf651(0x209),new Set());}[_0x56be30(0x1a8)](_0x274155){const _0x34cc7f=_0x56be30;return this[_0x34cc7f(0x216)][_0x34cc7f(0x1ec)](_0x274155),(0x0,n[_0x34cc7f(0x178)])(()=>this['_sharedOperations'][_0x34cc7f(0x174)](_0x274155));}[_0x56be30(0x176)](_0x273a51){const _0x427558=_0x56be30;return this[_0x427558(0x209)]['add'](_0x273a51),(0x0,n[_0x427558(0x178)])(()=>this[_0x427558(0x209)][_0x427558(0x174)](_0x273a51));}['shouldShareOperation'](_0x3f5417){const _0xb79130=_0x56be30;return this[_0xb79130(0x216)][_0xb79130(0x1ab)](_0x3f5417);}[_0x56be30(0x1d8)](_0x2d249b){const _0x30dab2=_0x56be30;return Array[_0x30dab2(0x1e1)](this[_0x30dab2(0x209)])['map'](_0x2ada9e=>_0x2ada9e(_0x2d249b));}};function _(_0x55282f,_0x419f33){return function(_0xdf533,_0x48663a){_0x419f33(_0xdf533,_0x48663a,_0x55282f);};}function v(_0x1abd71,_0x20a499,_0x8587c5,_0x49fd1e){const _0x102ca3=_0x56be30;var _0x1d6267=arguments[_0x102ca3(0x1a9)],_0x19cc54=_0x1d6267<0x3?_0x20a499:_0x49fd1e===null?_0x49fd1e=Object[_0x102ca3(0x1b1)](_0x20a499,_0x8587c5):_0x49fd1e,_0x2de9c4;if(typeof Reflect==_0x102ca3(0x18e)&&typeof Reflect[_0x102ca3(0x1d3)]=='function')_0x19cc54=Reflect[_0x102ca3(0x1d3)](_0x1abd71,_0x20a499,_0x8587c5,_0x49fd1e);else{for(var _0x4a927f=_0x1abd71[_0x102ca3(0x1a9)]-0x1;_0x4a927f>=0x0;_0x4a927f--)(_0x2de9c4=_0x1abd71[_0x4a927f])&&(_0x19cc54=(_0x1d6267<0x3?_0x2de9c4(_0x19cc54):_0x1d6267>0x3?_0x2de9c4(_0x20a499,_0x8587c5,_0x19cc54):_0x2de9c4(_0x20a499,_0x8587c5))||_0x19cc54);}return _0x1d6267>0x3&&_0x19cc54&&Object[_0x102ca3(0x177)](_0x20a499,_0x8587c5,_0x19cc54),_0x19cc54;}let y=class extends n[_0x56be30(0x1f1)]{constructor(_0x4d6956,_0xb7e885,_0x495bd1){const _0x177d12=_0x56be30;super(),this['_univerInstanceService']=_0x4d6956,this[_0x177d12(0x1d6)]=_0xb7e885,this[_0x177d12(0x16f)]=_0x495bd1,h(this,_0x177d12(0x17a),new Map()),this[_0x177d12(0x1d4)]();}async[_0x56be30(0x1b3)](_0x3828b8){const _0x528ed2=_0x56be30;return this[_0x528ed2(0x17a)][_0x528ed2(0x1ab)](_0x3828b8)||await this['_startLiveShareCoordinator'](_0x3828b8),this[_0x528ed2(0x17a)][_0x528ed2(0x19a)](_0x3828b8);}['getLiveShareCoordinatorSync'](_0xd6eeab){const _0x3f3f95=_0x56be30;var _0x3004c6;return(_0x3004c6=this[_0x3f3f95(0x17a)][_0x3f3f95(0x19a)](_0xd6eeab))==null?null:_0x3004c6;}[_0x56be30(0x1d4)](){const _0x230c5a=_0x56be30;this[_0x230c5a(0x1e8)][_0x230c5a(0x1d1)](n[_0x230c5a(0x219)][_0x230c5a(0x21b)])['pipe']((0x0,a['takeUntil'])(this[_0x230c5a(0x19d)]))[_0x230c5a(0x196)](async _0x4ac9e2=>{const _0x2fb599=_0x230c5a;let _0x40ad76=_0x4ac9e2[_0x2fb599(0x19f)]['getUnitId']();this[_0x2fb599(0x17a)][_0x2fb599(0x1ab)](_0x40ad76)||this['_startLiveShareCoordinator'](_0x40ad76);}),this[_0x230c5a(0x1e8)][_0x230c5a(0x215)](n[_0x230c5a(0x219)][_0x230c5a(0x21b)])[_0x230c5a(0x1f0)]((0x0,a[_0x230c5a(0x17f)])(this[_0x230c5a(0x19d)]))['subscribe'](_0x3b372d=>{const _0x578adc=_0x230c5a;let _0xa6b099=_0x3b372d[_0x578adc(0x199)](),_0x4b2961=this[_0x578adc(0x17a)][_0x578adc(0x19a)](_0xa6b099);_0x4b2961==null||_0x4b2961[_0x578adc(0x1f2)]();});}async['_startLiveShareCoordinator'](_0x26e4fa){const _0x16b337=_0x56be30;let _0x408484=await this['_collabSessionService'][_0x16b337(0x1de)](_0x26e4fa),_0x3710f2=this['_injector'][_0x16b337(0x211)](x,_0x26e4fa,_0x408484);return _0x3710f2[_0x16b337(0x180)](),this[_0x16b337(0x17a)][_0x16b337(0x184)](_0x26e4fa,_0x3710f2),_0x3710f2;}};y=v([_(0x0,n[_0x56be30(0x1d9)]),_(0x1,(0x0,n['Inject'])(n[_0x56be30(0x18b)])),_(0x2,(0x0,n[_0x56be30(0x21f)])(t[_0x56be30(0x1c2)]))],y);let b=function(_0x1c23df){const _0x674bfa=_0x56be30;return _0x1c23df[_0x674bfa(0x187)]=_0x674bfa(0x198),_0x1c23df[_0x674bfa(0x1a4)]='idle',_0x1c23df[_0x674bfa(0x1bb)]=_0x674bfa(0x1cc),_0x1c23df['NOT_FOLLOWING']=_0x674bfa(0x1d2),_0x1c23df[_0x674bfa(0x171)]=_0x674bfa(0x208),_0x1c23df;}({}),x=class extends n[_0x56be30(0x1f1)]{get['_status'](){const _0x3840a2=_0x56be30;return this[_0x3840a2(0x213)][_0x3840a2(0x1a1)]();}constructor(_0x593afa,_0x2c943f,_0x590c06,_0x223044,_0x582dc0){const _0x118bfa=_0x56be30;super(),this['_unitID']=_0x593afa,this[_0x118bfa(0x182)]=_0x2c943f,this[_0x118bfa(0x20d)]=_0x590c06,this['_liveShareService']=_0x223044,this[_0x118bfa(0x188)]=_0x582dc0,h(this,'_status$',new i[(_0x118bfa(0x1c9))](_0x118bfa(0x1f6))),h(this,_0x118bfa(0x20f),this[_0x118bfa(0x213)][_0x118bfa(0x223)]()),h(this,_0x118bfa(0x1d4),!0x1),h(this,_0x118bfa(0x1c6),null),h(this,_0x118bfa(0x1fc),null);}[_0x56be30(0x1f2)](){const _0x2eab5b=_0x56be30;var _0x1e3416;(_0x1e3416=this[_0x2eab5b(0x1c6)])==null||_0x1e3416['dispose'](),this[_0x2eab5b(0x213)][_0x2eab5b(0x1e0)](_0x2eab5b(0x1f6)),this[_0x2eab5b(0x213)][_0x2eab5b(0x20a)]();}[_0x56be30(0x1a7)](){const _0x53b604=_0x56be30;return this[_0x53b604(0x1aa)];}['init'](){const _0x506fd6=_0x56be30;this[_0x506fd6(0x1d4)]||(this[_0x506fd6(0x1d4)]=!0x0,this[_0x506fd6(0x182)][_0x506fd6(0x195)][_0x506fd6(0x1f0)]((0x0,a[_0x506fd6(0x17f)])(this['dispose$']))[_0x506fd6(0x196)](_0x1caa59=>{const _0x597ca6=_0x506fd6;switch(_0x1caa59){case t[_0x597ca6(0x175)][_0x597ca6(0x187)]:this[_0x597ca6(0x172)]();break;case t[_0x597ca6(0x175)][_0x597ca6(0x218)]:this[_0x597ca6(0x193)]();break;default:}}),this[_0x506fd6(0x182)][_0x506fd6(0x1ad)][_0x506fd6(0x1f0)]((0x0,a['takeUntil'])(this[_0x506fd6(0x19d)]))['subscribe'](_0xfe3dfb=>{const _0x30fac6=_0x506fd6;let {eventID:_0x508d54}=_0xfe3dfb;switch(_0x508d54){case e[_0x30fac6(0x220)][_0x30fac6(0x207)]:this[_0x30fac6(0x1f9)](_0xfe3dfb);break;case e[_0x30fac6(0x220)][_0x30fac6(0x1ac)]:this[_0x30fac6(0x1b6)](_0xfe3dfb);break;case e[_0x30fac6(0x220)][_0x30fac6(0x1bc)]:this['_handleTerminate']();break;case e[_0x30fac6(0x220)][_0x30fac6(0x173)]:this[_0x30fac6(0x1f3)](_0xfe3dfb);break;default:}}));}['tryStartPresenting'](){const _0x3b6074=_0x56be30;this[_0x3b6074(0x182)][_0x3b6074(0x1f7)]({'eventID':e[_0x3b6074(0x220)][_0x3b6074(0x179)],'data':{'unitID':this[_0x3b6074(0x16e)],'userID':this[_0x3b6074(0x182)][_0x3b6074(0x1cf)]()}},this[_0x3b6074(0x16e)]);}[_0x56be30(0x1c3)](){const _0x5d34fa=_0x56be30;this[_0x5d34fa(0x1aa)]===_0x5d34fa(0x208)&&(this[_0x5d34fa(0x213)][_0x5d34fa(0x1e0)]('idle'),this[_0x5d34fa(0x182)][_0x5d34fa(0x1f7)]({'eventID':e[_0x5d34fa(0x220)][_0x5d34fa(0x1bc)],'data':{'unitID':this[_0x5d34fa(0x16e)]}},this[_0x5d34fa(0x16e)]));}[_0x56be30(0x1b5)](){const _0xd8bfd6=_0x56be30;this[_0xd8bfd6(0x1aa)]===_0xd8bfd6(0x1d2)&&(this['_status$']['next'](_0xd8bfd6(0x1cc)),this[_0xd8bfd6(0x1a0)]());}[_0x56be30(0x19e)](){const _0x395cb0=_0x56be30;this['_status']===_0x395cb0(0x1cc)&&this[_0x395cb0(0x20e)]();}[_0x56be30(0x1f9)](_0x2786cc){const _0x27567e=_0x56be30;let {presenter:_0x55256b}=_0x2786cc[_0x27567e(0x21d)],_0x5c9e47=this[_0x27567e(0x182)]['getMemberID']();this[_0x27567e(0x1fc)]=_0x55256b,_0x55256b===_0x5c9e47?(this[_0x27567e(0x20e)](),this[_0x27567e(0x1bd)]()):this[_0x27567e(0x1aa)]!=='not-following'&&(this['_stopPresenting'](),this[_0x27567e(0x1a0)]());}['_fetchOperations'](){const _0x4d4d64=_0x56be30;let _0x5d202a={'eventID':e[_0x4d4d64(0x220)][_0x4d4d64(0x17e)]};this[_0x4d4d64(0x182)][_0x4d4d64(0x1f7)](_0x5d202a,this['_unitID']);}[_0x56be30(0x1e6)](){const _0x2be823=_0x56be30;this[_0x2be823(0x1fc)]=null,this[_0x2be823(0x1aa)]!==_0x2be823(0x208)&&this[_0x2be823(0x1f8)]();}[_0x56be30(0x1f3)](_0xa5223f){const _0x273cd3=_0x56be30;if(this[_0x273cd3(0x1aa)]===_0x273cd3(0x1cc)&&this['_presenter']===_0xa5223f['data'][_0x273cd3(0x1ea)]){let _0x310418=(0x0,e['parseProtocolChangeset'])(_0xa5223f[_0x273cd3(0x21d)])[_0x273cd3(0x185)]['reverse']()[_0x273cd3(0x205)](_0x3baf54=>_0x3baf54['id']===r[_0x273cd3(0x17b)]['id']);if(_0x310418){let _0x304640=_0x310418['params']['unitId'],_0x2c5919=_0x310418[_0x273cd3(0x1db)]['sheet']['id'];setTimeout(()=>{const _0x4d178b=_0x273cd3;this[_0x4d178b(0x188)][_0x4d178b(0x201)](r[_0x4d178b(0x18f)]['id'],{'unitId':_0x304640,'subUnitId':_0x2c5919},{'fromCollab':!0x0});});}}}[_0x56be30(0x1bd)](){const _0x5d8460=_0x56be30;var _0x4e2053;(_0x4e2053=this[_0x5d8460(0x1c6)])==null||_0x4e2053[_0x5d8460(0x1f2)](),this[_0x5d8460(0x213)][_0x5d8460(0x1e0)]('presenting');let _0x5e1d04=new Map(),_0x2290e9=this[_0x5d8460(0x1c6)]=new n['DisposableCollection']();_0x2290e9[_0x5d8460(0x1ec)]((0x0,n[_0x5d8460(0x178)])(()=>{const _0x5ea514=_0x5d8460;_0x5e1d04[_0x5ea514(0x19c)](({subject:_0x59e644,subscription:_0x415be1})=>{const _0xce5aa7=_0x5ea514;_0x415be1[_0xce5aa7(0x1fd)](),_0x59e644[_0xce5aa7(0x20a)]();}),_0x5e1d04['clear']();})),_0x2290e9['add'](this[_0x5d8460(0x188)][_0x5d8460(0x1c7)](_0x5939b7=>{const _0x20fc1e=_0x5d8460;if(_0x5939b7['type']!==n['CommandType']['OPERATION']||!this[_0x20fc1e(0x1c0)]['shouldShareOperation'](_0x5939b7['id']))return;let {id:_0x2cb095}=_0x5939b7,_0x687b06;if(_0x5e1d04['has'](_0x2cb095))_0x687b06=_0x5e1d04[_0x20fc1e(0x19a)](_0x2cb095)[_0x20fc1e(0x1d5)];else{var _0x2d4882;_0x687b06=new i['Subject']();let _0x2ef1c3=_0x687b06[_0x20fc1e(0x1f0)]((0x0,a['throttleTime'])((_0x2d4882=this[_0x20fc1e(0x20d)][_0x20fc1e(0x191)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2d4882,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x20fc1e(0x196)](_0x5495eb=>{const _0x122e79=_0x20fc1e;this[_0x122e79(0x182)][_0x122e79(0x1f7)]({'eventID':e[_0x122e79(0x220)][_0x122e79(0x1ac)],'data':{'unitID':this['_unitID'],'operations':{[_0x5495eb['id']]:{'id':_0x5495eb['id'],'params':JSON['stringify'](_0x5495eb[_0x122e79(0x1db)])}}}},this[_0x122e79(0x16e)]);});_0x5e1d04[_0x20fc1e(0x184)](_0x2cb095,{'subject':_0x687b06,'subscription':_0x2ef1c3});}_0x687b06[_0x20fc1e(0x1e0)](_0x5939b7);})),this[_0x5d8460(0x1c0)][_0x5d8460(0x1d8)](this['_unitID'])[_0x5d8460(0x19c)](_0x583909=>this[_0x5d8460(0x182)][_0x5d8460(0x1f7)]({'eventID':e[_0x5d8460(0x220)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5d8460(0x16e)],'operations':{[_0x583909['id']]:{'id':_0x583909['id'],'params':JSON[_0x5d8460(0x222)](_0x583909[_0x5d8460(0x1db)])}}}},this['_unitID']));}[_0x56be30(0x18c)](){const _0x5d02e1=_0x56be30;var _0x23d37c;this[_0x5d02e1(0x213)]['next'](_0x5d02e1(0x1f6)),(_0x23d37c=this[_0x5d02e1(0x1c6)])==null||_0x23d37c[_0x5d02e1(0x1f2)](),this['_commandDisposable']=null;}[_0x56be30(0x1a0)](){const _0xcd49ee=_0x56be30;var _0x52699d;(_0x52699d=this['_commandDisposable'])==null||_0x52699d[_0xcd49ee(0x1f2)](),this[_0xcd49ee(0x213)][_0xcd49ee(0x1e0)](_0xcd49ee(0x1cc));}['_beIdle'](){const _0x512cd9=_0x56be30;var _0x4124ed;this[_0x512cd9(0x213)][_0x512cd9(0x1e0)](_0x512cd9(0x1f6)),(_0x4124ed=this[_0x512cd9(0x1c6)])==null||_0x4124ed[_0x512cd9(0x1f2)](),this[_0x512cd9(0x1c6)]=null;}[_0x56be30(0x20e)](){const _0x34cd17=_0x56be30;var _0x34bb33;this[_0x34cd17(0x213)][_0x34cd17(0x1e0)](_0x34cd17(0x1d2)),(_0x34bb33=this[_0x34cd17(0x1c6)])==null||_0x34bb33[_0x34cd17(0x1f2)]();}[_0x56be30(0x1b6)](_0x4fe4bd){const _0x1a43da=_0x56be30;if([_0x1a43da(0x208),_0x1a43da(0x1d2),'offline'][_0x1a43da(0x1b4)](this[_0x1a43da(0x1aa)])||!_0x4fe4bd[_0x1a43da(0x21d)][_0x1a43da(0x1e2)]||_0x4fe4bd[_0x1a43da(0x21d)][_0x1a43da(0x1e2)]===this['_collabSession']['getMemberID']())return;this[_0x1a43da(0x1aa)]===_0x1a43da(0x1f6)&&this['_startFollowing']();let _0x186f96=_0x4fe4bd[_0x1a43da(0x21d)]['operations'];Object[_0x1a43da(0x1e4)](_0x186f96)[_0x1a43da(0x19c)](_0xd9a98c=>{const _0x480d58=_0x1a43da;this[_0x480d58(0x188)][_0x480d58(0x201)](_0xd9a98c['id'],_0xd9a98c['params']?JSON[_0x480d58(0x1dd)](_0xd9a98c[_0x480d58(0x1db)]):null,{'fromCollab':!0x0});});}[_0x56be30(0x172)](){const _0x2637e6=_0x56be30;var _0x10b4d6;this[_0x2637e6(0x213)]['next']('offline'),(_0x10b4d6=this[_0x2637e6(0x1c6)])==null||_0x10b4d6['dispose']();}['_handleOnline'](){const _0x352dea=_0x56be30;this[_0x352dea(0x213)]['next'](_0x352dea(0x1f6)),this['_fetchOperations']();}};x=v([_(0x2,n[_0x56be30(0x212)]),_(0x3,(0x0,n[_0x56be30(0x21f)])(g)),_(0x4,n['ICommandService'])],x);var S=_0x56be30(0x21c),C=_0x56be30(0x1b0);const w={};let T=class extends n[_0x56be30(0x1bf)]{constructor(_0x136539){const _0x18b51a=_0x56be30;super(),this[_0x18b51a(0x1c0)]=_0x136539,this['_init']();}[_0x56be30(0x1d4)](){const _0x27ecf2=_0x56be30;[o[_0x27ecf2(0x20c)]['id'],o['SetScrollOperation']['id'],r[_0x27ecf2(0x18f)]['id']][_0x27ecf2(0x19c)](_0xf086ca=>{const _0x239b93=_0x27ecf2;this[_0x239b93(0x225)](this[_0x239b93(0x1c0)][_0x239b93(0x1a8)](_0xf086ca));});}};T=v([_(0x0,(0x0,n['Inject'])(g))],T);function E(){const _0x1b18ac=_0x56be30;let _0x3307a4=(0x0,s['useDependency'])(y),_0x1b8ae4=(0x0,s['useDependency'])(n[_0x1b18ac(0x1d9)]),_0x20cfac=(0x0,s[_0x1b18ac(0x1ff)])(()=>_0x1b8ae4[_0x1b18ac(0x1ce)](n['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),_0x471a20=(0x0,s[_0x1b18ac(0x1ff)])((0x0,u['useMemo'])(()=>_0x20cfac?(0x0,i['defer'])(()=>(0x0,i['from'])(_0x3307a4[_0x1b18ac(0x1b3)](_0x20cfac[_0x1b18ac(0x199)]()))):(0x0,i['of'])(null),[_0x20cfac,_0x3307a4]),null),_0x17edaa=(0x0,s[_0x1b18ac(0x1ff)])(_0x471a20?()=>_0x471a20[_0x1b18ac(0x20f)]:null,_0x1b18ac(0x1f6),!0x1,[_0x471a20]);return _0x471a20?(0x0,d['jsx'])(c[_0x1b18ac(0x214)],{'align':_0x1b18ac(0x1eb),'disabled':_0x17edaa===_0x1b18ac(0x198),'className':_0x1b18ac(0x20b),'overlay':(0x0,d[_0x1b18ac(0x194)])(D,{'status':_0x17edaa,'coordinator':_0x471a20}),'children':(0x0,d['jsx'])(_0x1b18ac(0x204),{'className':(0x0,c[_0x1b18ac(0x1ee)])(_0x1b18ac(0x1c5),{'univer-cursor-not-allowed':_0x17edaa==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17edaa!==_0x1b18ac(0x198)}),'type':_0x1b18ac(0x204),'children':(0x0,d[_0x1b18ac(0x194)])(l[_0x1b18ac(0x1ca)],{})})}):null;}function D(_0x37090b){const _0x4c9f44=_0x56be30;let {status:_0x316a69,coordinator:_0x2bfdac}=_0x37090b;switch(_0x316a69){case _0x4c9f44(0x1f6):return(0x0,d[_0x4c9f44(0x194)])(O,{'coordinator':_0x2bfdac});case _0x4c9f44(0x1cc):return(0x0,d[_0x4c9f44(0x194)])(k,{'coordinator':_0x2bfdac});case _0x4c9f44(0x1d2):return(0x0,d[_0x4c9f44(0x194)])(A,{'coordinator':_0x2bfdac});case _0x4c9f44(0x198):return(0x0,d[_0x4c9f44(0x194)])(M,{});case _0x4c9f44(0x208):return(0x0,d[_0x4c9f44(0x194)])(j,{'coordinator':_0x2bfdac});default:return null;}}function O(_0x304489){const _0x2fb78e=_0x56be30;let {coordinator:_0xbe7716}=_0x304489;return(0x0,d[_0x2fb78e(0x203)])(d[_0x2fb78e(0x1d0)],{'children':[(0x0,d['jsx'])(_0x2fb78e(0x186),{'className':_0x2fb78e(0x1ba),'children':_0x2fb78e(0x1fe)}),(0x0,d[_0x2fb78e(0x194)])(c[_0x2fb78e(0x1dc)],{'onClick':()=>_0xbe7716[_0x2fb78e(0x210)](),'children':'Start'})]});}function k(_0x57a92d){const _0x4fb0e2=_0x56be30;let {coordinator:_0x426643}=_0x57a92d;return(0x0,d[_0x4fb0e2(0x203)])(d['Fragment'],{'children':[(0x0,d[_0x4fb0e2(0x194)])(_0x4fb0e2(0x186),{'className':_0x4fb0e2(0x1ba),'children':_0x4fb0e2(0x1cb)}),(0x0,d['jsx'])(c['Button'],{'onClick':()=>_0x426643[_0x4fb0e2(0x19e)](),'children':_0x4fb0e2(0x200)})]});}function A(_0x33430d){const _0x4da32a=_0x56be30;let {coordinator:_0x20abd2}=_0x33430d;return(0x0,d[_0x4da32a(0x203)])(d[_0x4da32a(0x1d0)],{'children':[(0x0,d[_0x4da32a(0x194)])(_0x4da32a(0x186),{'className':_0x4da32a(0x1ba),'children':_0x4da32a(0x18d)}),(0x0,d[_0x4da32a(0x194)])(c['Button'],{'variant':_0x4da32a(0x1df),'onClick':()=>_0x20abd2[_0x4da32a(0x1b5)](),'children':'Start\x20following'})]});}function j(_0x5ae515){const _0xbe6b4b=_0x56be30;let {coordinator:_0x21e1bb}=_0x5ae515;return(0x0,d[_0xbe6b4b(0x203)])(d[_0xbe6b4b(0x1d0)],{'children':[(0x0,d[_0xbe6b4b(0x194)])(_0xbe6b4b(0x186),{'className':_0xbe6b4b(0x1ba),'children':_0xbe6b4b(0x183)}),(0x0,d[_0xbe6b4b(0x194)])(c[_0xbe6b4b(0x1dc)],{'variant':_0xbe6b4b(0x1da),'onClick':()=>_0x21e1bb[_0xbe6b4b(0x1c3)](),'children':'Stop\x20presenting'})]});}function M(){const _0x4efe72=_0x56be30;return(0x0,d[_0x4efe72(0x194)])(d['Fragment'],{'children':_0x4efe72(0x1b9)});}let N=class extends n[_0x56be30(0x1bf)]{constructor(_0x3dfe20,_0x3426c1){const _0x5e9ee9=_0x56be30;super(),this[_0x5e9ee9(0x1d6)]=_0x3dfe20,this[_0x5e9ee9(0x1a6)]=_0x3426c1,this[_0x5e9ee9(0x206)]();}[_0x56be30(0x206)](){const _0x908d60=_0x56be30;this[_0x908d60(0x225)](this[_0x908d60(0x1a6)][_0x908d60(0x1be)](s[_0x908d60(0x221)][_0x908d60(0x17c)],()=>(0x0,s[_0x908d60(0x197)])(E,this[_0x908d60(0x1d6)])));}};N=v([_(0x0,(0x0,n[_0x56be30(0x21f)])(n['Injector'])),_(0x1,s[_0x56be30(0x170)])],N);let P=class extends n['Plugin']{constructor(_0x208db4=w,_0x1e2e74,_0x255f7b){const _0xefb613=_0x56be30;super(),this[_0xefb613(0x1e7)]=_0x208db4,this['_injector']=_0x1e2e74,this['_configService']=_0x255f7b;let {..._0x52f35c}=(0x0,n[_0xefb613(0x21a)])({},w,this[_0xefb613(0x1e7)]);this[_0xefb613(0x20d)][_0xefb613(0x1fa)](_0xefb613(0x1a2),_0x52f35c);}[_0x56be30(0x217)](){const _0x2d608b=_0x56be30;(0x0,n[_0x2d608b(0x1e3)])(this[_0x2d608b(0x1d6)],(0x0,n[_0x2d608b(0x1f4)])([[g],[y],[T],[N]],this[_0x2d608b(0x1e7)][_0x2d608b(0x1d7)])),(0x0,n[_0x2d608b(0x1b2)])(this[_0x2d608b(0x1d6)],[[T]]);}[_0x56be30(0x1a5)](){const _0x46c376=_0x56be30;(0x0,n[_0x46c376(0x1b2)])(this[_0x46c376(0x1d6)],[[N]]);}};h(P,'type',n[_0x56be30(0x219)][_0x56be30(0x192)]),h(P,_0x56be30(0x1ae),'UNIVER_LIVE_SHARE_PLUGIN'),h(P,_0x56be30(0x190),S),h(P,_0x56be30(0x1cd),C),P=v([(0x0,n['DependentOn'])(t[_0x56be30(0x189)]),_(0x1,(0x0,n['Inject'])(n[_0x56be30(0x18b)])),_(0x2,n['IConfigService'])],P),Object[_0x56be30(0x177)](exports,'LiveShareController',{'enumerable':!0x0,'get':function(){return y;}}),exports[_0x56be30(0x1c4)]=b,Object[_0x56be30(0x177)](exports,_0x56be30(0x1f5),{'enumerable':!0x0,'get':function(){return P;}});
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4aaef4=_0x532e;function _0x4ca6(){const _0x32518f=['7510xqbesW','64GzlgDL','78saQwko','IDLE','_liveShareController','getStatus','_injector','7ZWQeBD','object','startFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2OtZvhl','string','5079915IaFjYd','921696naJJJr','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','extend','140745tUdQAv','getLiveShareStatus','function','getUnitId','getLiveShareCoordinatorSync','call','tryStartPresenting','850208psGVND','stopPresenting','iterator','_initialize','No\x20active\x20workbook\x20found.','1551cdyLqm','symbol','get','94272KagPRn','toPrimitive','getCurrentUnitOfType','prototype','54zLmsNf','228803NtUzij','default','LiveShareStatusEnum','defineProperty','UNIVER_SHEET'];_0x4ca6=function(){return _0x32518f;};return _0x4ca6();}(function(_0x3db987,_0x577ace){const _0x4f02bb=_0x532e,_0x27f1fb=_0x3db987();while(!![]){try{const _0x418593=-parseInt(_0x4f02bb(0x105))/0x1*(-parseInt(_0x4f02bb(0xeb))/0x2)+parseInt(_0x4f02bb(0x100))/0x3*(-parseInt(_0x4f02bb(0xe1))/0x4)+-parseInt(_0x4f02bb(0xf1))/0x5*(parseInt(_0x4f02bb(0x104))/0x6)+-parseInt(_0x4f02bb(0xe7))/0x7*(parseInt(_0x4f02bb(0xf8))/0x8)+parseInt(_0x4f02bb(0xed))/0x9+-parseInt(_0x4f02bb(0xe0))/0xa*(parseInt(_0x4f02bb(0xfd))/0xb)+-parseInt(_0x4f02bb(0xee))/0xc*(-parseInt(_0x4f02bb(0xe2))/0xd);if(_0x418593===_0x577ace)break;else _0x27f1fb['push'](_0x27f1fb['shift']());}catch(_0x2b3740){_0x27f1fb['push'](_0x27f1fb['shift']());}}}(_0x4ca6,0x45c62));import{LiveShareController as _0x3a7481,LiveShareStatus as _0x3e5d44}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x5b7c09,UniverInstanceType as _0x21739a}from'@univerjs/core';import{FEnum as _0x1fd391,FUniver as _0xcf8219}from'@univerjs/core/facade';function _0x532e(_0x31bf33,_0x4d963a){_0x31bf33=_0x31bf33-0xdd;const _0x4ca655=_0x4ca6();let _0x532efd=_0x4ca655[_0x31bf33];return _0x532efd;}function o(_0x36c0f1){'@babel/helpers - typeof';const _0x354e0f=_0x532e;return o=typeof Symbol=='function'&&typeof Symbol[_0x354e0f(0xfa)]=='symbol'?function(_0x52cdad){return typeof _0x52cdad;}:function(_0x56b435){const _0x481fab=_0x354e0f;return _0x56b435&&typeof Symbol==_0x481fab(0xf3)&&_0x56b435['constructor']===Symbol&&_0x56b435!==Symbol[_0x481fab(0x103)]?_0x481fab(0xfe):typeof _0x56b435;},o(_0x36c0f1);}function s(_0x2c919a,_0x4cc2d2){const _0x42a825=_0x532e;if(o(_0x2c919a)!=_0x42a825(0xe8)||!_0x2c919a)return _0x2c919a;var _0x37716d=_0x2c919a[Symbol[_0x42a825(0x101)]];if(_0x37716d!==void 0x0){var _0x4c2868=_0x37716d[_0x42a825(0xf6)](_0x2c919a,_0x4cc2d2||_0x42a825(0x106));if(o(_0x4c2868)!=_0x42a825(0xe8))return _0x4c2868;throw TypeError(_0x42a825(0xef));}return(_0x4cc2d2===_0x42a825(0xec)?String:Number)(_0x2c919a);}function c(_0x1634c4){const _0x2cc308=_0x532e;var _0x4fd1b9=s(_0x1634c4,_0x2cc308(0xec));return o(_0x4fd1b9)==_0x2cc308(0xfe)?_0x4fd1b9:_0x4fd1b9+'';}function l(_0x1aff40,_0x269549,_0x283dc4){const _0x48a013=_0x532e;return(_0x269549=c(_0x269549))in _0x1aff40?Object[_0x48a013(0xde)](_0x1aff40,_0x269549,{'value':_0x283dc4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1aff40[_0x269549]=_0x283dc4,_0x1aff40;}var u=class extends _0xcf8219{constructor(..._0x3a9526){super(..._0x3a9526),l(this,'_liveShareController',void 0x0);}[_0x4aaef4(0xfb)](_0x3d1afb){const _0xf65a63=_0x4aaef4;this[_0xf65a63(0xe4)]=_0x3d1afb[_0xf65a63(0xff)](_0x3a7481);}[_0x4aaef4(0xf2)](){const _0x81efaf=_0x4aaef4;var _0x21a951;let _0x393ddb=this[_0x81efaf(0xe6)][_0x81efaf(0xff)](_0x5b7c09)[_0x81efaf(0x102)](_0x21739a[_0x81efaf(0xdf)]);if(!_0x393ddb)throw Error(_0x81efaf(0xfc));let _0x59515c=_0x393ddb[_0x81efaf(0xf4)](),_0x267c60=this[_0x81efaf(0xe4)][_0x81efaf(0xf5)](_0x59515c);return(_0x21a951=_0x267c60==null?void 0x0:_0x267c60[_0x81efaf(0xe5)]())==null?_0x3e5d44[_0x81efaf(0xe3)]:_0x21a951;}['startFollowing'](){const _0x5496dd=_0x4aaef4;let _0x4e0909=this['_injector'][_0x5496dd(0xff)](_0x5b7c09)[_0x5496dd(0x102)](_0x21739a['UNIVER_SHEET']);if(!_0x4e0909)throw Error('No\x20active\x20workbook\x20found.');let _0x2ef941=_0x4e0909[_0x5496dd(0xf4)](),_0x4fcf9b=this[_0x5496dd(0xe4)][_0x5496dd(0xf5)](_0x2ef941);if(!_0x4fcf9b)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4fcf9b[_0x5496dd(0xe9)]();}['stopFollowing'](){const _0x127616=_0x4aaef4;let _0x4c4e1d=this[_0x127616(0xe6)][_0x127616(0xff)](_0x5b7c09)['getCurrentUnitOfType'](_0x21739a[_0x127616(0xdf)]);if(!_0x4c4e1d)throw Error(_0x127616(0xfc));let _0x34eca6=_0x4c4e1d[_0x127616(0xf4)](),_0x463bbb=this[_0x127616(0xe4)][_0x127616(0xf5)](_0x34eca6);if(!_0x463bbb)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x463bbb['stopFollowing']();}['startPresenting'](){const _0x2d6ab8=_0x4aaef4;let _0x5d70ea=this[_0x2d6ab8(0xe6)][_0x2d6ab8(0xff)](_0x5b7c09)['getCurrentUnitOfType'](_0x21739a[_0x2d6ab8(0xdf)]);if(!_0x5d70ea)throw Error(_0x2d6ab8(0xfc));let _0x34d9d7=_0x5d70ea[_0x2d6ab8(0xf4)](),_0x2b5dfd=this[_0x2d6ab8(0xe4)][_0x2d6ab8(0xf5)](_0x34d9d7);if(!_0x2b5dfd)throw Error(_0x2d6ab8(0xea));_0x2b5dfd[_0x2d6ab8(0xf7)]();}[_0x4aaef4(0xf9)](){const _0x173acf=_0x4aaef4;let _0x1052e8=this['_injector'][_0x173acf(0xff)](_0x5b7c09)[_0x173acf(0x102)](_0x21739a[_0x173acf(0xdf)]);if(!_0x1052e8)throw Error('No\x20active\x20workbook\x20found.');let _0x25e2b9=_0x1052e8[_0x173acf(0xf4)](),_0x345dd6=this[_0x173acf(0xe4)]['getLiveShareCoordinatorSync'](_0x25e2b9);if(!_0x345dd6)throw Error(_0x173acf(0xea));_0x345dd6['stopPresenting']();}};_0xcf8219[_0x4aaef4(0xf0)](u);var d=class extends _0x1fd391{get[_0x4aaef4(0xdd)](){return _0x3e5d44;}};_0x1fd391[_0x4aaef4(0xf0)](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 _0x6f555b=_0x261d;(function(_0x315005,_0x47b6a4){const _0x3ca634=_0x261d,_0x5d7335=_0x315005();while(!![]){try{const _0x30a435=-parseInt(_0x3ca634(0x1c3))/0x1+parseInt(_0x3ca634(0x1a5))/0x2*(-parseInt(_0x3ca634(0x1cc))/0x3)+parseInt(_0x3ca634(0x1fd))/0x4+-parseInt(_0x3ca634(0x1ea))/0x5+-parseInt(_0x3ca634(0x1e4))/0x6+parseInt(_0x3ca634(0x1a3))/0x7*(-parseInt(_0x3ca634(0x220))/0x8)+parseInt(_0x3ca634(0x206))/0x9;if(_0x30a435===_0x47b6a4)break;else _0x5d7335['push'](_0x5d7335['shift']());}catch(_0x23afb1){_0x5d7335['push'](_0x5d7335['shift']());}}}(_0x326d,0xe4a4c));import{CollaborationEvent as _0x36ebd8,parseProtocolChangeset as _0x47cdb6}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1e5ff4,SessionStatus as _0x12087e,UniverCollaborationClientPlugin as _0x948aaa}from'@univerjs-pro/collaboration-client';function _0x326d(){const _0x4f065a=['event$','LIVESHARE_FETCH_OPERATIONS','getInitialStates','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','disposeWithMe','NEW_CHANGESETS','presenting','idle','_unitID','You\x27re\x20presenting\x20the\x20document','dispose','_handleOnline','getMemberID','reverse','_mountLiveShare','button','_collabSessionService','_handleNewHost','512zNJAVF','onCommandExecuted','prototype','div','_configService','default','operations','getStatus','asObservable','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','_startPresenting','_reporters','@univerjs-pro/live-share','_handleOffline','override','LIVESHARE_TERMINATE','UNIVER_SHEET','getUnitId','PRESENTING','parse','LIVESHARE_OPERATION','_startLiveShareCoordinator','109102dPElBJ','setConfig','146mYPifm','_handleNewChangeSets','onStarting','UNIVER_LIVE_SHARE_PLUGIN','Start','_handleOperation','_sharedOperations','_startFollowing','object','Stop\x20presenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','dispose$','_commandDisposable','LIVESHARE_NEW_HOST','requireSession','_status','defineProperty','version','init','call','_beIdle','UNIVER_UNKNOWN','You\x27are\x20offline.','_init','presenter','_handleTerminate','live-share.config','getTypeOfUnitDisposed$','registerSharedOperation','onRendered','1767182olMLwM','status$','getLiveShareCoordinator','decorate','getCurrentTypeOfUnit$','set','length','has','pipe','69891ECGHtp','mutations','Start\x20following','complete','includes','iterator','unsubscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','IDLE','getLiveShareCoordinatorSync','send','from','OPERATION','_liveShareService','clear','OFFLINE','Present\x20this\x20document','executeCommand','_uiPartsService','registerInitialStateReporter','_stopPresenting','end','function','4225182gmDnKg','shouldShareOperation','getValue','next','getConfig','subscribe','49270XTbtGK','data','_stopFollowing','offline','add','_collabSession','_presenter','symbol','You\x27re\x20not\x20following\x20the\x20presenter','forEach','FOLLOWING','stringify','You\x27re\x20following\x20the\x20presenter','_fetchOperations','get','stopPresenting','_config','tryStartPresenting','LIVESHARE_REQUEST_HOST','7472608zHbYFS','1.0.0-alpha.4','type','string','getOwnPropertyDescriptor','stopFollowing','_status$','_injector','text','38230110FDzPpX','unitId','subject','params','delete','_entities','following','_commandService'];_0x326d=function(){return _0x4f065a;};return _0x326d();}import{CommandType as _0x4e0307,DependentOn as _0x3099e9,Disposable as _0x46999e,DisposableCollection as _0x5ec514,ICommandService as _0x35ab55,IConfigService as _0x52b4ac,IUniverInstanceService as _0x21550a,Inject as _0x28818e,Injector as _0x18620c,Plugin as _0x572057,RxDisposable as _0x1a6fea,UniverInstanceType as _0x203c69,merge as _0x5b8c53,mergeOverrideWithDependencies as _0x2f7b56,registerDependencies as _0x31f0d7,toDisposable as _0x504e8e,touchDependencies as _0x591296}from'@univerjs/core';import{InsertSheetMutation as _0x1b67cb,SetWorksheetActiveOperation as _0x538536}from'@univerjs/sheets';import{BehaviorSubject as _0x3e8934,Subject as _0x7214fd,defer as _0x167d7b,from as _0x9ce90d,of as _0x243cf5}from'rxjs';import{takeUntil as _0x5597d3,throttleTime as _0x4fe322}from'rxjs/operators';import{SetScrollOperation as _0x18fc2b,SetZoomRatioOperation as _0x131898}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x4aa22c,IUIPartsService as _0x45ac3a,connectInjector as _0x1cb2c5,useDependency as _0x1ee678,useObservable as _0x252035}from'@univerjs/ui';import{Button as _0x35e69e,Dropdown as _0x390708,clsx as _0x3d7f89}from'@univerjs/design';import{LiveShareIcon as _0x295a01}from'@univerjs/icons';import{useMemo as _0x4cfce8}from'react';import{Fragment as _0x1019e6,jsx as _0x259d6b,jsxs as _0x12e6ce}from'react/jsx-runtime';function z(_0xccb65a){'@babel/helpers - typeof';const _0x201f13=_0x261d;return z=typeof Symbol==_0x201f13(0x1e3)&&typeof Symbol[_0x201f13(0x1d1)]=='symbol'?function(_0x523a65){return typeof _0x523a65;}:function(_0x1bc8b9){const _0x20e4bf=_0x201f13;return _0x1bc8b9&&typeof Symbol==_0x20e4bf(0x1e3)&&_0x1bc8b9['constructor']===Symbol&&_0x1bc8b9!==Symbol[_0x20e4bf(0x222)]?_0x20e4bf(0x1f1):typeof _0x1bc8b9;},z(_0xccb65a);}function B(_0x5a0c24,_0x27d35f){const _0x281154=_0x261d;if(z(_0x5a0c24)!=_0x281154(0x1ad)||!_0x5a0c24)return _0x5a0c24;var _0x1187a3=_0x5a0c24[Symbol['toPrimitive']];if(_0x1187a3!==void 0x0){var _0x4d7903=_0x1187a3[_0x281154(0x1b8)](_0x5a0c24,_0x27d35f||_0x281154(0x225));if(z(_0x4d7903)!='object')return _0x4d7903;throw TypeError(_0x281154(0x1af));}return(_0x27d35f===_0x281154(0x200)?String:Number)(_0x5a0c24);}function V(_0x2c47aa){const _0x1700ae=_0x261d;var _0x30b008=B(_0x2c47aa,_0x1700ae(0x200));return z(_0x30b008)==_0x1700ae(0x1f1)?_0x30b008:_0x30b008+'';}function H(_0x416913,_0x38eda5,_0x2da8c9){const _0x566239=_0x261d;return(_0x38eda5=V(_0x38eda5))in _0x416913?Object[_0x566239(0x1b5)](_0x416913,_0x38eda5,{'value':_0x2da8c9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x416913[_0x38eda5]=_0x2da8c9,_0x416913;}var U=class extends _0x46999e{constructor(..._0x128891){const _0x1e7e52=_0x261d;super(..._0x128891),H(this,_0x1e7e52(0x1ab),new Set()),H(this,_0x1e7e52(0x22b),new Set());}[_0x6f555b(0x1c1)](_0xbfb8d2){const _0x189681=_0x6f555b;return this[_0x189681(0x1ab)][_0x189681(0x1ee)](_0xbfb8d2),_0x504e8e(()=>this[_0x189681(0x1ab)]['delete'](_0xbfb8d2));}[_0x6f555b(0x1e0)](_0x2e5021){const _0x7e914e=_0x6f555b;return this[_0x7e914e(0x22b)][_0x7e914e(0x1ee)](_0x2e5021),_0x504e8e(()=>this['_reporters'][_0x7e914e(0x20a)](_0x2e5021));}[_0x6f555b(0x1e5)](_0x666ecc){const _0x1cf7ba=_0x6f555b;return this[_0x1cf7ba(0x1ab)][_0x1cf7ba(0x1ca)](_0x666ecc);}[_0x6f555b(0x210)](_0x207fa3){const _0x1f0488=_0x6f555b;return Array[_0x1f0488(0x1d8)](this[_0x1f0488(0x22b)])['map'](_0x4e9bc1=>_0x4e9bc1(_0x207fa3));}};function W(_0x3abcf3,_0x3e6180){return function(_0x42a01c,_0x15beec){_0x3e6180(_0x42a01c,_0x15beec,_0x3abcf3);};}function G(_0x9c986a,_0x13da03,_0xf24af8,_0x4ca499){const _0x1239fc=_0x6f555b;var _0x328910=arguments[_0x1239fc(0x1c9)],_0x9dcb3a=_0x328910<0x3?_0x13da03:_0x4ca499===null?_0x4ca499=Object[_0x1239fc(0x201)](_0x13da03,_0xf24af8):_0x4ca499,_0x2cfb70;if(typeof Reflect==_0x1239fc(0x1ad)&&typeof Reflect[_0x1239fc(0x1c6)]==_0x1239fc(0x1e3))_0x9dcb3a=Reflect[_0x1239fc(0x1c6)](_0x9c986a,_0x13da03,_0xf24af8,_0x4ca499);else{for(var _0x1a4211=_0x9c986a[_0x1239fc(0x1c9)]-0x1;_0x1a4211>=0x0;_0x1a4211--)(_0x2cfb70=_0x9c986a[_0x1a4211])&&(_0x9dcb3a=(_0x328910<0x3?_0x2cfb70(_0x9dcb3a):_0x328910>0x3?_0x2cfb70(_0x13da03,_0xf24af8,_0x9dcb3a):_0x2cfb70(_0x13da03,_0xf24af8))||_0x9dcb3a);}return _0x328910>0x3&&_0x9dcb3a&&Object[_0x1239fc(0x1b5)](_0x13da03,_0xf24af8,_0x9dcb3a),_0x9dcb3a;}let K=class extends _0x1a6fea{constructor(_0x164fc7,_0x6b4e2e,_0x362573){const _0x5594eb=_0x6f555b;super(),this['_univerInstanceService']=_0x164fc7,this[_0x5594eb(0x204)]=_0x6b4e2e,this[_0x5594eb(0x21e)]=_0x362573,H(this,_0x5594eb(0x20b),new Map()),this[_0x5594eb(0x1bc)]();}async[_0x6f555b(0x1c5)](_0x35e96f){const _0x5c163b=_0x6f555b;return this[_0x5c163b(0x20b)][_0x5c163b(0x1ca)](_0x35e96f)||await this['_startLiveShareCoordinator'](_0x35e96f),this[_0x5c163b(0x20b)][_0x5c163b(0x1f8)](_0x35e96f);}[_0x6f555b(0x1d6)](_0x15160e){const _0x3974ca=_0x6f555b;var _0x548488;return(_0x548488=this[_0x3974ca(0x20b)][_0x3974ca(0x1f8)](_0x15160e))==null?null:_0x548488;}['_init'](){const _0x24250c=_0x6f555b;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x203c69[_0x24250c(0x230)])['pipe'](_0x5597d3(this[_0x24250c(0x1b0)]))[_0x24250c(0x1e9)](async _0x2ee67e=>{const _0x39ad77=_0x24250c;let _0x1a18b6=_0x2ee67e['unit']['getUnitId']();this[_0x39ad77(0x20b)][_0x39ad77(0x1ca)](_0x1a18b6)||this[_0x39ad77(0x235)](_0x1a18b6);}),this['_univerInstanceService'][_0x24250c(0x1c0)](_0x203c69[_0x24250c(0x230)])['pipe'](_0x5597d3(this['dispose$']))['subscribe'](_0x2b4708=>{const _0x9571f8=_0x24250c;let _0x898adc=_0x2b4708[_0x9571f8(0x231)](),_0x5dc4ce=this[_0x9571f8(0x20b)][_0x9571f8(0x1f8)](_0x898adc);_0x5dc4ce==null||_0x5dc4ce[_0x9571f8(0x218)]();});}async[_0x6f555b(0x235)](_0x41275c){const _0x232f87=_0x6f555b;let _0x8b3451=await this['_collabSessionService'][_0x232f87(0x1b3)](_0x41275c),_0x3353e8=this[_0x232f87(0x204)]['createInstance'](J,_0x41275c,_0x8b3451);return _0x3353e8[_0x232f87(0x1b7)](),this['_entities'][_0x232f87(0x1c8)](_0x41275c,_0x3353e8),_0x3353e8;}};K=G([W(0x0,_0x21550a),W(0x1,_0x28818e(_0x18620c)),W(0x2,_0x28818e(_0x1e5ff4))],K);let q=function(_0x14c1d0){const _0x3a5812=_0x6f555b;return _0x14c1d0[_0x3a5812(0x1dc)]='offline',_0x14c1d0[_0x3a5812(0x1d5)]=_0x3a5812(0x215),_0x14c1d0[_0x3a5812(0x1f4)]=_0x3a5812(0x20c),_0x14c1d0['NOT_FOLLOWING']=_0x3a5812(0x1d4),_0x14c1d0[_0x3a5812(0x232)]='presenting',_0x14c1d0;}({}),J=class extends _0x1a6fea{get[_0x6f555b(0x1b4)](){const _0x187a60=_0x6f555b;return this['_status$'][_0x187a60(0x1e6)]();}constructor(_0x203874,_0xcd6b60,_0x1511bb,_0x5b6870,_0x5f399f){const _0x833c36=_0x6f555b;super(),this[_0x833c36(0x216)]=_0x203874,this[_0x833c36(0x1ef)]=_0xcd6b60,this[_0x833c36(0x224)]=_0x1511bb,this[_0x833c36(0x1da)]=_0x5b6870,this[_0x833c36(0x20d)]=_0x5f399f,H(this,_0x833c36(0x203),new _0x3e8934('idle')),H(this,_0x833c36(0x1c4),this['_status$'][_0x833c36(0x228)]()),H(this,'_init',!0x1),H(this,_0x833c36(0x1b1),null),H(this,_0x833c36(0x1f0),null);}[_0x6f555b(0x218)](){const _0x42da8d=_0x6f555b;var _0x17db55;(_0x17db55=this['_commandDisposable'])==null||_0x17db55[_0x42da8d(0x218)](),this['_status$'][_0x42da8d(0x1e7)]('idle'),this[_0x42da8d(0x203)][_0x42da8d(0x1cf)]();}[_0x6f555b(0x227)](){const _0x3998fd=_0x6f555b;return this[_0x3998fd(0x1b4)];}[_0x6f555b(0x1b7)](){const _0x20308f=_0x6f555b;this[_0x20308f(0x1bc)]||(this[_0x20308f(0x1bc)]=!0x0,this[_0x20308f(0x1ef)]['sessionStatus$'][_0x20308f(0x1cb)](_0x5597d3(this[_0x20308f(0x1b0)]))[_0x20308f(0x1e9)](_0x16a480=>{const _0xe88e8c=_0x20308f;switch(_0x16a480){case _0x12087e[_0xe88e8c(0x1dc)]:this['_handleOffline']();break;case _0x12087e['ONLINE']:this[_0xe88e8c(0x219)]();break;default:}}),this[_0x20308f(0x1ef)][_0x20308f(0x20e)][_0x20308f(0x1cb)](_0x5597d3(this[_0x20308f(0x1b0)]))[_0x20308f(0x1e9)](_0x1030ce=>{const _0x346ebf=_0x20308f;let {eventID:_0x81170}=_0x1030ce;switch(_0x81170){case _0x36ebd8[_0x346ebf(0x1b2)]:this['_handleNewHost'](_0x1030ce);break;case _0x36ebd8['LIVESHARE_OPERATION']:this[_0x346ebf(0x1aa)](_0x1030ce);break;case _0x36ebd8[_0x346ebf(0x22f)]:this[_0x346ebf(0x1be)]();break;case _0x36ebd8[_0x346ebf(0x213)]:this[_0x346ebf(0x1a6)](_0x1030ce);break;default:}}));}[_0x6f555b(0x1fb)](){const _0x50e899=_0x6f555b;this['_collabSession'][_0x50e899(0x1d7)]({'eventID':_0x36ebd8[_0x50e899(0x1fc)],'data':{'unitID':this['_unitID'],'userID':this[_0x50e899(0x1ef)]['getMemberID']()}},this[_0x50e899(0x216)]);}[_0x6f555b(0x1f9)](){const _0x3f42db=_0x6f555b;this[_0x3f42db(0x1b4)]==='presenting'&&(this[_0x3f42db(0x203)]['next'](_0x3f42db(0x215)),this[_0x3f42db(0x1ef)]['send']({'eventID':_0x36ebd8[_0x3f42db(0x22f)],'data':{'unitID':this[_0x3f42db(0x216)]}},this['_unitID']));}['startFollowing'](){const _0x4235c3=_0x6f555b;this[_0x4235c3(0x1b4)]===_0x4235c3(0x1d4)&&(this[_0x4235c3(0x203)]['next']('following'),this[_0x4235c3(0x1ac)]());}[_0x6f555b(0x202)](){const _0x30f65e=_0x6f555b;this[_0x30f65e(0x1b4)]==='following'&&this['_stopFollowing']();}[_0x6f555b(0x21f)](_0x13a739){const _0x3e2476=_0x6f555b;let {presenter:_0x519a50}=_0x13a739[_0x3e2476(0x1eb)],_0xab587=this[_0x3e2476(0x1ef)][_0x3e2476(0x21a)]();this[_0x3e2476(0x1f0)]=_0x519a50,_0x519a50===_0xab587?(this[_0x3e2476(0x1ec)](),this[_0x3e2476(0x22a)]()):this[_0x3e2476(0x1b4)]!==_0x3e2476(0x1d4)&&(this[_0x3e2476(0x1e1)](),this['_startFollowing']());}[_0x6f555b(0x1f7)](){const _0x116eb6=_0x6f555b;let _0x2ce52a={'eventID':_0x36ebd8[_0x116eb6(0x20f)]};this['_collabSession'][_0x116eb6(0x1d7)](_0x2ce52a,this[_0x116eb6(0x216)]);}[_0x6f555b(0x1be)](){const _0x272a9e=_0x6f555b;this[_0x272a9e(0x1f0)]=null,this[_0x272a9e(0x1b4)]!==_0x272a9e(0x214)&&this[_0x272a9e(0x1b9)]();}[_0x6f555b(0x1a6)](_0x4c50e4){const _0x430cf0=_0x6f555b;if(this[_0x430cf0(0x1b4)]===_0x430cf0(0x20c)&&this[_0x430cf0(0x1f0)]===_0x4c50e4[_0x430cf0(0x1eb)]['memberID']){let _0x538525=_0x47cdb6(_0x4c50e4[_0x430cf0(0x1eb)])[_0x430cf0(0x1cd)][_0x430cf0(0x21b)]()['find'](_0x17d75c=>_0x17d75c['id']===_0x1b67cb['id']);if(_0x538525){let _0x5d5395=_0x538525[_0x430cf0(0x209)][_0x430cf0(0x207)],_0x16c32a=_0x538525[_0x430cf0(0x209)]['sheet']['id'];setTimeout(()=>{const _0x12e7ea=_0x430cf0;this[_0x12e7ea(0x20d)][_0x12e7ea(0x1de)](_0x538536['id'],{'unitId':_0x5d5395,'subUnitId':_0x16c32a},{'fromCollab':!0x0});});}}}[_0x6f555b(0x22a)](){const _0x5a3670=_0x6f555b;var _0x5baf86;(_0x5baf86=this[_0x5a3670(0x1b1)])==null||_0x5baf86[_0x5a3670(0x218)](),this['_status$']['next']('presenting');let _0xffab2d=new Map(),_0x51c9cc=this['_commandDisposable']=new _0x5ec514();_0x51c9cc[_0x5a3670(0x1ee)](_0x504e8e(()=>{const _0x3616db=_0x5a3670;_0xffab2d[_0x3616db(0x1f3)](({subject:_0x11c6a7,subscription:_0x3a6c3b})=>{const _0x140779=_0x3616db;_0x3a6c3b[_0x140779(0x1d2)](),_0x11c6a7[_0x140779(0x1cf)]();}),_0xffab2d[_0x3616db(0x1db)]();})),_0x51c9cc[_0x5a3670(0x1ee)](this[_0x5a3670(0x20d)][_0x5a3670(0x221)](_0x5cb6ff=>{const _0x24a082=_0x5a3670;if(_0x5cb6ff[_0x24a082(0x1ff)]!==_0x4e0307[_0x24a082(0x1d9)]||!this['_liveShareService']['shouldShareOperation'](_0x5cb6ff['id']))return;let {id:_0x53e816}=_0x5cb6ff,_0x4bbd17;if(_0xffab2d['has'](_0x53e816))_0x4bbd17=_0xffab2d[_0x24a082(0x1f8)](_0x53e816)[_0x24a082(0x208)];else{var _0x55dd74;_0x4bbd17=new _0x7214fd();let _0x57ab92=_0x4bbd17['pipe'](_0x4fe322((_0x55dd74=this[_0x24a082(0x224)][_0x24a082(0x1e8)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x55dd74,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2b4dbc=>{const _0x1886fb=_0x24a082;this[_0x1886fb(0x1ef)]['send']({'eventID':_0x36ebd8['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1886fb(0x216)],'operations':{[_0x2b4dbc['id']]:{'id':_0x2b4dbc['id'],'params':JSON[_0x1886fb(0x1f5)](_0x2b4dbc[_0x1886fb(0x209)])}}}},this['_unitID']);});_0xffab2d[_0x24a082(0x1c8)](_0x53e816,{'subject':_0x4bbd17,'subscription':_0x57ab92});}_0x4bbd17[_0x24a082(0x1e7)](_0x5cb6ff);})),this[_0x5a3670(0x1da)][_0x5a3670(0x210)](this[_0x5a3670(0x216)])[_0x5a3670(0x1f3)](_0xc19f40=>this[_0x5a3670(0x1ef)][_0x5a3670(0x1d7)]({'eventID':_0x36ebd8[_0x5a3670(0x234)],'data':{'unitID':this[_0x5a3670(0x216)],'operations':{[_0xc19f40['id']]:{'id':_0xc19f40['id'],'params':JSON[_0x5a3670(0x1f5)](_0xc19f40[_0x5a3670(0x209)])}}}},this[_0x5a3670(0x216)]));}[_0x6f555b(0x1e1)](){const _0x397e79=_0x6f555b;var _0x3b6122;this[_0x397e79(0x203)]['next'](_0x397e79(0x215)),(_0x3b6122=this['_commandDisposable'])==null||_0x3b6122['dispose'](),this['_commandDisposable']=null;}[_0x6f555b(0x1ac)](){const _0x3debc8=_0x6f555b;var _0x4e02ae;(_0x4e02ae=this[_0x3debc8(0x1b1)])==null||_0x4e02ae[_0x3debc8(0x218)](),this[_0x3debc8(0x203)][_0x3debc8(0x1e7)](_0x3debc8(0x20c));}['_beIdle'](){const _0x2445ee=_0x6f555b;var _0x2c99c3;this[_0x2445ee(0x203)]['next']('idle'),(_0x2c99c3=this[_0x2445ee(0x1b1)])==null||_0x2c99c3[_0x2445ee(0x218)](),this['_commandDisposable']=null;}[_0x6f555b(0x1ec)](){const _0x4079cb=_0x6f555b;var _0x170941;this['_status$'][_0x4079cb(0x1e7)](_0x4079cb(0x1d4)),(_0x170941=this[_0x4079cb(0x1b1)])==null||_0x170941[_0x4079cb(0x218)]();}[_0x6f555b(0x1aa)](_0x263403){const _0x2170f9=_0x6f555b;if(['presenting',_0x2170f9(0x1d4),_0x2170f9(0x1ed)][_0x2170f9(0x1d0)](this[_0x2170f9(0x1b4)])||!_0x263403[_0x2170f9(0x1eb)][_0x2170f9(0x1bd)]||_0x263403['data'][_0x2170f9(0x1bd)]===this[_0x2170f9(0x1ef)][_0x2170f9(0x21a)]())return;this['_status']===_0x2170f9(0x215)&&this[_0x2170f9(0x1ac)]();let _0x247cac=_0x263403[_0x2170f9(0x1eb)][_0x2170f9(0x226)];Object['values'](_0x247cac)[_0x2170f9(0x1f3)](_0x4d71d9=>{const _0x380b71=_0x2170f9;this[_0x380b71(0x20d)][_0x380b71(0x1de)](_0x4d71d9['id'],_0x4d71d9[_0x380b71(0x209)]?JSON[_0x380b71(0x233)](_0x4d71d9[_0x380b71(0x209)]):null,{'fromCollab':!0x0});});}[_0x6f555b(0x22d)](){const _0x53dc33=_0x6f555b;var _0x3e2ad0;this[_0x53dc33(0x203)][_0x53dc33(0x1e7)](_0x53dc33(0x1ed)),(_0x3e2ad0=this['_commandDisposable'])==null||_0x3e2ad0[_0x53dc33(0x218)]();}['_handleOnline'](){const _0x41deea=_0x6f555b;this['_status$'][_0x41deea(0x1e7)]('idle'),this[_0x41deea(0x1f7)]();}};J=G([W(0x2,_0x52b4ac),W(0x3,_0x28818e(U)),W(0x4,_0x35ab55)],J);var se=_0x6f555b(0x22c),ce=_0x6f555b(0x1fe);const Y={};let X=class extends _0x46999e{constructor(_0x5bdb2e){const _0x5060a4=_0x6f555b;super(),this[_0x5060a4(0x1da)]=_0x5bdb2e,this[_0x5060a4(0x1bc)]();}['_init'](){const _0x4b596c=_0x6f555b;[_0x131898['id'],_0x18fc2b['id'],_0x538536['id']][_0x4b596c(0x1f3)](_0x41d19f=>{const _0x3aa4df=_0x4b596c;this[_0x3aa4df(0x212)](this[_0x3aa4df(0x1da)][_0x3aa4df(0x1c1)](_0x41d19f));});}};X=G([W(0x0,_0x28818e(U))],X);function Z(){const _0x8372d1=_0x6f555b;let _0x2ab6cd=_0x1ee678(K),_0x4b1139=_0x1ee678(_0x21550a),_0x318bb3=_0x252035(()=>_0x4b1139[_0x8372d1(0x1c7)](_0x203c69[_0x8372d1(0x230)]),void 0x0,!0x1,[]),_0x1892da=_0x252035(_0x4cfce8(()=>_0x318bb3?_0x167d7b(()=>_0x9ce90d(_0x2ab6cd[_0x8372d1(0x1c5)](_0x318bb3[_0x8372d1(0x231)]()))):_0x243cf5(null),[_0x318bb3,_0x2ab6cd]),null),_0x449ac0=_0x252035(_0x1892da?()=>_0x1892da['status$']:null,_0x8372d1(0x215),!0x1,[_0x1892da]);return _0x1892da?_0x259d6b(_0x390708,{'align':_0x8372d1(0x1e2),'disabled':_0x449ac0==='offline','className':_0x8372d1(0x229),'overlay':_0x259d6b(le,{'status':_0x449ac0,'coordinator':_0x1892da}),'children':_0x259d6b(_0x8372d1(0x21d),{'className':_0x3d7f89(_0x8372d1(0x211),{'univer-cursor-not-allowed':_0x449ac0===_0x8372d1(0x1ed),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x449ac0!==_0x8372d1(0x1ed)}),'type':_0x8372d1(0x21d),'children':_0x259d6b(_0x295a01,{})})}):null;}function le(_0x40f80c){const _0x5af244=_0x6f555b;let {status:_0x40b195,coordinator:_0x1c2c04}=_0x40f80c;switch(_0x40b195){case _0x5af244(0x215):return _0x259d6b(ue,{'coordinator':_0x1c2c04});case _0x5af244(0x20c):return _0x259d6b(de,{'coordinator':_0x1c2c04});case _0x5af244(0x1d4):return _0x259d6b(fe,{'coordinator':_0x1c2c04});case _0x5af244(0x1ed):return _0x259d6b(me,{});case _0x5af244(0x214):return _0x259d6b(pe,{'coordinator':_0x1c2c04});default:return null;}}function ue(_0x5c03ad){const _0x3cd729=_0x6f555b;let {coordinator:_0x48f9bf}=_0x5c03ad;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x3cd729(0x223),{'className':_0x3cd729(0x1d3),'children':_0x3cd729(0x1dd)}),_0x259d6b(_0x35e69e,{'onClick':()=>_0x48f9bf[_0x3cd729(0x1fb)](),'children':_0x3cd729(0x1a9)})]});}function de(_0x3c5169){const _0x2acf23=_0x6f555b;let {coordinator:_0x5c8259}=_0x3c5169;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x2acf23(0x223),{'className':_0x2acf23(0x1d3),'children':_0x2acf23(0x1f6)}),_0x259d6b(_0x35e69e,{'onClick':()=>_0x5c8259['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x261d(_0x2fead8,_0x161f5a){_0x2fead8=_0x2fead8-0x1a3;const _0x326d0d=_0x326d();let _0x261de8=_0x326d0d[_0x2fead8];return _0x261de8;}function fe(_0x2d744c){const _0x25c7b2=_0x6f555b;let {coordinator:_0x345ac3}=_0x2d744c;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b('div',{'className':_0x25c7b2(0x1d3),'children':_0x25c7b2(0x1f2)}),_0x259d6b(_0x35e69e,{'variant':_0x25c7b2(0x205),'onClick':()=>_0x345ac3['startFollowing'](),'children':_0x25c7b2(0x1ce)})]});}function pe(_0x45ad0b){const _0x3fd523=_0x6f555b;let {coordinator:_0x3faeb6}=_0x45ad0b;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x3fd523(0x223),{'className':_0x3fd523(0x1d3),'children':_0x3fd523(0x217)}),_0x259d6b(_0x35e69e,{'variant':_0x3fd523(0x225),'onClick':()=>_0x3faeb6[_0x3fd523(0x1f9)](),'children':_0x3fd523(0x1ae)})]});}function me(){const _0x416a58=_0x6f555b;return _0x259d6b(_0x1019e6,{'children':_0x416a58(0x1bb)});}let Q=class extends _0x46999e{constructor(_0x202ea3,_0x20afee){const _0x5cb26e=_0x6f555b;super(),this[_0x5cb26e(0x204)]=_0x202ea3,this['_uiPartsService']=_0x20afee,this['_mountLiveShare']();}[_0x6f555b(0x21c)](){const _0xf62b0=_0x6f555b;this['disposeWithMe'](this[_0xf62b0(0x1df)]['registerComponent'](_0x4aa22c['HEADER_MENU'],()=>_0x1cb2c5(Z,this[_0xf62b0(0x204)])));}};Q=G([W(0x0,_0x28818e(_0x18620c)),W(0x1,_0x45ac3a)],Q);let $=class extends _0x572057{constructor(_0x2f03ef=Y,_0x2fb0bc,_0x1605e7){const _0x4a885f=_0x6f555b;super(),this[_0x4a885f(0x1fa)]=_0x2f03ef,this[_0x4a885f(0x204)]=_0x2fb0bc,this[_0x4a885f(0x224)]=_0x1605e7;let {..._0x5de6eb}=_0x5b8c53({},Y,this[_0x4a885f(0x1fa)]);this[_0x4a885f(0x224)][_0x4a885f(0x1a4)](_0x4a885f(0x1bf),_0x5de6eb);}[_0x6f555b(0x1a7)](){const _0x568e2c=_0x6f555b;_0x31f0d7(this[_0x568e2c(0x204)],_0x2f7b56([[U],[K],[X],[Q]],this['_config'][_0x568e2c(0x22e)])),_0x591296(this['_injector'],[[X]]);}[_0x6f555b(0x1c2)](){const _0xf0db12=_0x6f555b;_0x591296(this[_0xf0db12(0x204)],[[Q]]);}};H($,'type',_0x203c69[_0x6f555b(0x1ba)]),H($,'pluginName',_0x6f555b(0x1a8)),H($,'packageName',se),H($,_0x6f555b(0x1b6),ce),$=G([_0x3099e9(_0x948aaa),W(0x1,_0x28818e(_0x18620c)),W(0x2,_0x52b4ac)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4aaef4=_0x532e;function _0x4ca6(){const _0x32518f=['7510xqbesW','64GzlgDL','78saQwko','IDLE','_liveShareController','getStatus','_injector','7ZWQeBD','object','startFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2OtZvhl','string','5079915IaFjYd','921696naJJJr','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','extend','140745tUdQAv','getLiveShareStatus','function','getUnitId','getLiveShareCoordinatorSync','call','tryStartPresenting','850208psGVND','stopPresenting','iterator','_initialize','No\x20active\x20workbook\x20found.','1551cdyLqm','symbol','get','94272KagPRn','toPrimitive','getCurrentUnitOfType','prototype','54zLmsNf','228803NtUzij','default','LiveShareStatusEnum','defineProperty','UNIVER_SHEET'];_0x4ca6=function(){return _0x32518f;};return _0x4ca6();}(function(_0x3db987,_0x577ace){const _0x4f02bb=_0x532e,_0x27f1fb=_0x3db987();while(!![]){try{const _0x418593=-parseInt(_0x4f02bb(0x105))/0x1*(-parseInt(_0x4f02bb(0xeb))/0x2)+parseInt(_0x4f02bb(0x100))/0x3*(-parseInt(_0x4f02bb(0xe1))/0x4)+-parseInt(_0x4f02bb(0xf1))/0x5*(parseInt(_0x4f02bb(0x104))/0x6)+-parseInt(_0x4f02bb(0xe7))/0x7*(parseInt(_0x4f02bb(0xf8))/0x8)+parseInt(_0x4f02bb(0xed))/0x9+-parseInt(_0x4f02bb(0xe0))/0xa*(parseInt(_0x4f02bb(0xfd))/0xb)+-parseInt(_0x4f02bb(0xee))/0xc*(-parseInt(_0x4f02bb(0xe2))/0xd);if(_0x418593===_0x577ace)break;else _0x27f1fb['push'](_0x27f1fb['shift']());}catch(_0x2b3740){_0x27f1fb['push'](_0x27f1fb['shift']());}}}(_0x4ca6,0x45c62));import{LiveShareController as _0x3a7481,LiveShareStatus as _0x3e5d44}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x5b7c09,UniverInstanceType as _0x21739a}from'@univerjs/core';import{FEnum as _0x1fd391,FUniver as _0xcf8219}from'@univerjs/core/facade';function _0x532e(_0x31bf33,_0x4d963a){_0x31bf33=_0x31bf33-0xdd;const _0x4ca655=_0x4ca6();let _0x532efd=_0x4ca655[_0x31bf33];return _0x532efd;}function o(_0x36c0f1){'@babel/helpers - typeof';const _0x354e0f=_0x532e;return o=typeof Symbol=='function'&&typeof Symbol[_0x354e0f(0xfa)]=='symbol'?function(_0x52cdad){return typeof _0x52cdad;}:function(_0x56b435){const _0x481fab=_0x354e0f;return _0x56b435&&typeof Symbol==_0x481fab(0xf3)&&_0x56b435['constructor']===Symbol&&_0x56b435!==Symbol[_0x481fab(0x103)]?_0x481fab(0xfe):typeof _0x56b435;},o(_0x36c0f1);}function s(_0x2c919a,_0x4cc2d2){const _0x42a825=_0x532e;if(o(_0x2c919a)!=_0x42a825(0xe8)||!_0x2c919a)return _0x2c919a;var _0x37716d=_0x2c919a[Symbol[_0x42a825(0x101)]];if(_0x37716d!==void 0x0){var _0x4c2868=_0x37716d[_0x42a825(0xf6)](_0x2c919a,_0x4cc2d2||_0x42a825(0x106));if(o(_0x4c2868)!=_0x42a825(0xe8))return _0x4c2868;throw TypeError(_0x42a825(0xef));}return(_0x4cc2d2===_0x42a825(0xec)?String:Number)(_0x2c919a);}function c(_0x1634c4){const _0x2cc308=_0x532e;var _0x4fd1b9=s(_0x1634c4,_0x2cc308(0xec));return o(_0x4fd1b9)==_0x2cc308(0xfe)?_0x4fd1b9:_0x4fd1b9+'';}function l(_0x1aff40,_0x269549,_0x283dc4){const _0x48a013=_0x532e;return(_0x269549=c(_0x269549))in _0x1aff40?Object[_0x48a013(0xde)](_0x1aff40,_0x269549,{'value':_0x283dc4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1aff40[_0x269549]=_0x283dc4,_0x1aff40;}var u=class extends _0xcf8219{constructor(..._0x3a9526){super(..._0x3a9526),l(this,'_liveShareController',void 0x0);}[_0x4aaef4(0xfb)](_0x3d1afb){const _0xf65a63=_0x4aaef4;this[_0xf65a63(0xe4)]=_0x3d1afb[_0xf65a63(0xff)](_0x3a7481);}[_0x4aaef4(0xf2)](){const _0x81efaf=_0x4aaef4;var _0x21a951;let _0x393ddb=this[_0x81efaf(0xe6)][_0x81efaf(0xff)](_0x5b7c09)[_0x81efaf(0x102)](_0x21739a[_0x81efaf(0xdf)]);if(!_0x393ddb)throw Error(_0x81efaf(0xfc));let _0x59515c=_0x393ddb[_0x81efaf(0xf4)](),_0x267c60=this[_0x81efaf(0xe4)][_0x81efaf(0xf5)](_0x59515c);return(_0x21a951=_0x267c60==null?void 0x0:_0x267c60[_0x81efaf(0xe5)]())==null?_0x3e5d44[_0x81efaf(0xe3)]:_0x21a951;}['startFollowing'](){const _0x5496dd=_0x4aaef4;let _0x4e0909=this['_injector'][_0x5496dd(0xff)](_0x5b7c09)[_0x5496dd(0x102)](_0x21739a['UNIVER_SHEET']);if(!_0x4e0909)throw Error('No\x20active\x20workbook\x20found.');let _0x2ef941=_0x4e0909[_0x5496dd(0xf4)](),_0x4fcf9b=this[_0x5496dd(0xe4)][_0x5496dd(0xf5)](_0x2ef941);if(!_0x4fcf9b)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4fcf9b[_0x5496dd(0xe9)]();}['stopFollowing'](){const _0x127616=_0x4aaef4;let _0x4c4e1d=this[_0x127616(0xe6)][_0x127616(0xff)](_0x5b7c09)['getCurrentUnitOfType'](_0x21739a[_0x127616(0xdf)]);if(!_0x4c4e1d)throw Error(_0x127616(0xfc));let _0x34eca6=_0x4c4e1d[_0x127616(0xf4)](),_0x463bbb=this[_0x127616(0xe4)][_0x127616(0xf5)](_0x34eca6);if(!_0x463bbb)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x463bbb['stopFollowing']();}['startPresenting'](){const _0x2d6ab8=_0x4aaef4;let _0x5d70ea=this[_0x2d6ab8(0xe6)][_0x2d6ab8(0xff)](_0x5b7c09)['getCurrentUnitOfType'](_0x21739a[_0x2d6ab8(0xdf)]);if(!_0x5d70ea)throw Error(_0x2d6ab8(0xfc));let _0x34d9d7=_0x5d70ea[_0x2d6ab8(0xf4)](),_0x2b5dfd=this[_0x2d6ab8(0xe4)][_0x2d6ab8(0xf5)](_0x34d9d7);if(!_0x2b5dfd)throw Error(_0x2d6ab8(0xea));_0x2b5dfd[_0x2d6ab8(0xf7)]();}[_0x4aaef4(0xf9)](){const _0x173acf=_0x4aaef4;let _0x1052e8=this['_injector'][_0x173acf(0xff)](_0x5b7c09)[_0x173acf(0x102)](_0x21739a[_0x173acf(0xdf)]);if(!_0x1052e8)throw Error('No\x20active\x20workbook\x20found.');let _0x25e2b9=_0x1052e8[_0x173acf(0xf4)](),_0x345dd6=this[_0x173acf(0xe4)]['getLiveShareCoordinatorSync'](_0x25e2b9);if(!_0x345dd6)throw Error(_0x173acf(0xea));_0x345dd6['stopPresenting']();}};_0xcf8219[_0x4aaef4(0xf0)](u);var d=class extends _0x1fd391{get[_0x4aaef4(0xdd)](){return _0x3e5d44;}};_0x1fd391[_0x4aaef4(0xf0)](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 _0x6f555b=_0x261d;(function(_0x315005,_0x47b6a4){const _0x3ca634=_0x261d,_0x5d7335=_0x315005();while(!![]){try{const _0x30a435=-parseInt(_0x3ca634(0x1c3))/0x1+parseInt(_0x3ca634(0x1a5))/0x2*(-parseInt(_0x3ca634(0x1cc))/0x3)+parseInt(_0x3ca634(0x1fd))/0x4+-parseInt(_0x3ca634(0x1ea))/0x5+-parseInt(_0x3ca634(0x1e4))/0x6+parseInt(_0x3ca634(0x1a3))/0x7*(-parseInt(_0x3ca634(0x220))/0x8)+parseInt(_0x3ca634(0x206))/0x9;if(_0x30a435===_0x47b6a4)break;else _0x5d7335['push'](_0x5d7335['shift']());}catch(_0x23afb1){_0x5d7335['push'](_0x5d7335['shift']());}}}(_0x326d,0xe4a4c));import{CollaborationEvent as _0x36ebd8,parseProtocolChangeset as _0x47cdb6}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1e5ff4,SessionStatus as _0x12087e,UniverCollaborationClientPlugin as _0x948aaa}from'@univerjs-pro/collaboration-client';function _0x326d(){const _0x4f065a=['event$','LIVESHARE_FETCH_OPERATIONS','getInitialStates','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','disposeWithMe','NEW_CHANGESETS','presenting','idle','_unitID','You\x27re\x20presenting\x20the\x20document','dispose','_handleOnline','getMemberID','reverse','_mountLiveShare','button','_collabSessionService','_handleNewHost','512zNJAVF','onCommandExecuted','prototype','div','_configService','default','operations','getStatus','asObservable','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','_startPresenting','_reporters','@univerjs-pro/live-share','_handleOffline','override','LIVESHARE_TERMINATE','UNIVER_SHEET','getUnitId','PRESENTING','parse','LIVESHARE_OPERATION','_startLiveShareCoordinator','109102dPElBJ','setConfig','146mYPifm','_handleNewChangeSets','onStarting','UNIVER_LIVE_SHARE_PLUGIN','Start','_handleOperation','_sharedOperations','_startFollowing','object','Stop\x20presenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','dispose$','_commandDisposable','LIVESHARE_NEW_HOST','requireSession','_status','defineProperty','version','init','call','_beIdle','UNIVER_UNKNOWN','You\x27are\x20offline.','_init','presenter','_handleTerminate','live-share.config','getTypeOfUnitDisposed$','registerSharedOperation','onRendered','1767182olMLwM','status$','getLiveShareCoordinator','decorate','getCurrentTypeOfUnit$','set','length','has','pipe','69891ECGHtp','mutations','Start\x20following','complete','includes','iterator','unsubscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','IDLE','getLiveShareCoordinatorSync','send','from','OPERATION','_liveShareService','clear','OFFLINE','Present\x20this\x20document','executeCommand','_uiPartsService','registerInitialStateReporter','_stopPresenting','end','function','4225182gmDnKg','shouldShareOperation','getValue','next','getConfig','subscribe','49270XTbtGK','data','_stopFollowing','offline','add','_collabSession','_presenter','symbol','You\x27re\x20not\x20following\x20the\x20presenter','forEach','FOLLOWING','stringify','You\x27re\x20following\x20the\x20presenter','_fetchOperations','get','stopPresenting','_config','tryStartPresenting','LIVESHARE_REQUEST_HOST','7472608zHbYFS','1.0.0-alpha.4','type','string','getOwnPropertyDescriptor','stopFollowing','_status$','_injector','text','38230110FDzPpX','unitId','subject','params','delete','_entities','following','_commandService'];_0x326d=function(){return _0x4f065a;};return _0x326d();}import{CommandType as _0x4e0307,DependentOn as _0x3099e9,Disposable as _0x46999e,DisposableCollection as _0x5ec514,ICommandService as _0x35ab55,IConfigService as _0x52b4ac,IUniverInstanceService as _0x21550a,Inject as _0x28818e,Injector as _0x18620c,Plugin as _0x572057,RxDisposable as _0x1a6fea,UniverInstanceType as _0x203c69,merge as _0x5b8c53,mergeOverrideWithDependencies as _0x2f7b56,registerDependencies as _0x31f0d7,toDisposable as _0x504e8e,touchDependencies as _0x591296}from'@univerjs/core';import{InsertSheetMutation as _0x1b67cb,SetWorksheetActiveOperation as _0x538536}from'@univerjs/sheets';import{BehaviorSubject as _0x3e8934,Subject as _0x7214fd,defer as _0x167d7b,from as _0x9ce90d,of as _0x243cf5}from'rxjs';import{takeUntil as _0x5597d3,throttleTime as _0x4fe322}from'rxjs/operators';import{SetScrollOperation as _0x18fc2b,SetZoomRatioOperation as _0x131898}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x4aa22c,IUIPartsService as _0x45ac3a,connectInjector as _0x1cb2c5,useDependency as _0x1ee678,useObservable as _0x252035}from'@univerjs/ui';import{Button as _0x35e69e,Dropdown as _0x390708,clsx as _0x3d7f89}from'@univerjs/design';import{LiveShareIcon as _0x295a01}from'@univerjs/icons';import{useMemo as _0x4cfce8}from'react';import{Fragment as _0x1019e6,jsx as _0x259d6b,jsxs as _0x12e6ce}from'react/jsx-runtime';function z(_0xccb65a){'@babel/helpers - typeof';const _0x201f13=_0x261d;return z=typeof Symbol==_0x201f13(0x1e3)&&typeof Symbol[_0x201f13(0x1d1)]=='symbol'?function(_0x523a65){return typeof _0x523a65;}:function(_0x1bc8b9){const _0x20e4bf=_0x201f13;return _0x1bc8b9&&typeof Symbol==_0x20e4bf(0x1e3)&&_0x1bc8b9['constructor']===Symbol&&_0x1bc8b9!==Symbol[_0x20e4bf(0x222)]?_0x20e4bf(0x1f1):typeof _0x1bc8b9;},z(_0xccb65a);}function B(_0x5a0c24,_0x27d35f){const _0x281154=_0x261d;if(z(_0x5a0c24)!=_0x281154(0x1ad)||!_0x5a0c24)return _0x5a0c24;var _0x1187a3=_0x5a0c24[Symbol['toPrimitive']];if(_0x1187a3!==void 0x0){var _0x4d7903=_0x1187a3[_0x281154(0x1b8)](_0x5a0c24,_0x27d35f||_0x281154(0x225));if(z(_0x4d7903)!='object')return _0x4d7903;throw TypeError(_0x281154(0x1af));}return(_0x27d35f===_0x281154(0x200)?String:Number)(_0x5a0c24);}function V(_0x2c47aa){const _0x1700ae=_0x261d;var _0x30b008=B(_0x2c47aa,_0x1700ae(0x200));return z(_0x30b008)==_0x1700ae(0x1f1)?_0x30b008:_0x30b008+'';}function H(_0x416913,_0x38eda5,_0x2da8c9){const _0x566239=_0x261d;return(_0x38eda5=V(_0x38eda5))in _0x416913?Object[_0x566239(0x1b5)](_0x416913,_0x38eda5,{'value':_0x2da8c9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x416913[_0x38eda5]=_0x2da8c9,_0x416913;}var U=class extends _0x46999e{constructor(..._0x128891){const _0x1e7e52=_0x261d;super(..._0x128891),H(this,_0x1e7e52(0x1ab),new Set()),H(this,_0x1e7e52(0x22b),new Set());}[_0x6f555b(0x1c1)](_0xbfb8d2){const _0x189681=_0x6f555b;return this[_0x189681(0x1ab)][_0x189681(0x1ee)](_0xbfb8d2),_0x504e8e(()=>this[_0x189681(0x1ab)]['delete'](_0xbfb8d2));}[_0x6f555b(0x1e0)](_0x2e5021){const _0x7e914e=_0x6f555b;return this[_0x7e914e(0x22b)][_0x7e914e(0x1ee)](_0x2e5021),_0x504e8e(()=>this['_reporters'][_0x7e914e(0x20a)](_0x2e5021));}[_0x6f555b(0x1e5)](_0x666ecc){const _0x1cf7ba=_0x6f555b;return this[_0x1cf7ba(0x1ab)][_0x1cf7ba(0x1ca)](_0x666ecc);}[_0x6f555b(0x210)](_0x207fa3){const _0x1f0488=_0x6f555b;return Array[_0x1f0488(0x1d8)](this[_0x1f0488(0x22b)])['map'](_0x4e9bc1=>_0x4e9bc1(_0x207fa3));}};function W(_0x3abcf3,_0x3e6180){return function(_0x42a01c,_0x15beec){_0x3e6180(_0x42a01c,_0x15beec,_0x3abcf3);};}function G(_0x9c986a,_0x13da03,_0xf24af8,_0x4ca499){const _0x1239fc=_0x6f555b;var _0x328910=arguments[_0x1239fc(0x1c9)],_0x9dcb3a=_0x328910<0x3?_0x13da03:_0x4ca499===null?_0x4ca499=Object[_0x1239fc(0x201)](_0x13da03,_0xf24af8):_0x4ca499,_0x2cfb70;if(typeof Reflect==_0x1239fc(0x1ad)&&typeof Reflect[_0x1239fc(0x1c6)]==_0x1239fc(0x1e3))_0x9dcb3a=Reflect[_0x1239fc(0x1c6)](_0x9c986a,_0x13da03,_0xf24af8,_0x4ca499);else{for(var _0x1a4211=_0x9c986a[_0x1239fc(0x1c9)]-0x1;_0x1a4211>=0x0;_0x1a4211--)(_0x2cfb70=_0x9c986a[_0x1a4211])&&(_0x9dcb3a=(_0x328910<0x3?_0x2cfb70(_0x9dcb3a):_0x328910>0x3?_0x2cfb70(_0x13da03,_0xf24af8,_0x9dcb3a):_0x2cfb70(_0x13da03,_0xf24af8))||_0x9dcb3a);}return _0x328910>0x3&&_0x9dcb3a&&Object[_0x1239fc(0x1b5)](_0x13da03,_0xf24af8,_0x9dcb3a),_0x9dcb3a;}let K=class extends _0x1a6fea{constructor(_0x164fc7,_0x6b4e2e,_0x362573){const _0x5594eb=_0x6f555b;super(),this['_univerInstanceService']=_0x164fc7,this[_0x5594eb(0x204)]=_0x6b4e2e,this[_0x5594eb(0x21e)]=_0x362573,H(this,_0x5594eb(0x20b),new Map()),this[_0x5594eb(0x1bc)]();}async[_0x6f555b(0x1c5)](_0x35e96f){const _0x5c163b=_0x6f555b;return this[_0x5c163b(0x20b)][_0x5c163b(0x1ca)](_0x35e96f)||await this['_startLiveShareCoordinator'](_0x35e96f),this[_0x5c163b(0x20b)][_0x5c163b(0x1f8)](_0x35e96f);}[_0x6f555b(0x1d6)](_0x15160e){const _0x3974ca=_0x6f555b;var _0x548488;return(_0x548488=this[_0x3974ca(0x20b)][_0x3974ca(0x1f8)](_0x15160e))==null?null:_0x548488;}['_init'](){const _0x24250c=_0x6f555b;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x203c69[_0x24250c(0x230)])['pipe'](_0x5597d3(this[_0x24250c(0x1b0)]))[_0x24250c(0x1e9)](async _0x2ee67e=>{const _0x39ad77=_0x24250c;let _0x1a18b6=_0x2ee67e['unit']['getUnitId']();this[_0x39ad77(0x20b)][_0x39ad77(0x1ca)](_0x1a18b6)||this[_0x39ad77(0x235)](_0x1a18b6);}),this['_univerInstanceService'][_0x24250c(0x1c0)](_0x203c69[_0x24250c(0x230)])['pipe'](_0x5597d3(this['dispose$']))['subscribe'](_0x2b4708=>{const _0x9571f8=_0x24250c;let _0x898adc=_0x2b4708[_0x9571f8(0x231)](),_0x5dc4ce=this[_0x9571f8(0x20b)][_0x9571f8(0x1f8)](_0x898adc);_0x5dc4ce==null||_0x5dc4ce[_0x9571f8(0x218)]();});}async[_0x6f555b(0x235)](_0x41275c){const _0x232f87=_0x6f555b;let _0x8b3451=await this['_collabSessionService'][_0x232f87(0x1b3)](_0x41275c),_0x3353e8=this[_0x232f87(0x204)]['createInstance'](J,_0x41275c,_0x8b3451);return _0x3353e8[_0x232f87(0x1b7)](),this['_entities'][_0x232f87(0x1c8)](_0x41275c,_0x3353e8),_0x3353e8;}};K=G([W(0x0,_0x21550a),W(0x1,_0x28818e(_0x18620c)),W(0x2,_0x28818e(_0x1e5ff4))],K);let q=function(_0x14c1d0){const _0x3a5812=_0x6f555b;return _0x14c1d0[_0x3a5812(0x1dc)]='offline',_0x14c1d0[_0x3a5812(0x1d5)]=_0x3a5812(0x215),_0x14c1d0[_0x3a5812(0x1f4)]=_0x3a5812(0x20c),_0x14c1d0['NOT_FOLLOWING']=_0x3a5812(0x1d4),_0x14c1d0[_0x3a5812(0x232)]='presenting',_0x14c1d0;}({}),J=class extends _0x1a6fea{get[_0x6f555b(0x1b4)](){const _0x187a60=_0x6f555b;return this['_status$'][_0x187a60(0x1e6)]();}constructor(_0x203874,_0xcd6b60,_0x1511bb,_0x5b6870,_0x5f399f){const _0x833c36=_0x6f555b;super(),this[_0x833c36(0x216)]=_0x203874,this[_0x833c36(0x1ef)]=_0xcd6b60,this[_0x833c36(0x224)]=_0x1511bb,this[_0x833c36(0x1da)]=_0x5b6870,this[_0x833c36(0x20d)]=_0x5f399f,H(this,_0x833c36(0x203),new _0x3e8934('idle')),H(this,_0x833c36(0x1c4),this['_status$'][_0x833c36(0x228)]()),H(this,'_init',!0x1),H(this,_0x833c36(0x1b1),null),H(this,_0x833c36(0x1f0),null);}[_0x6f555b(0x218)](){const _0x42da8d=_0x6f555b;var _0x17db55;(_0x17db55=this['_commandDisposable'])==null||_0x17db55[_0x42da8d(0x218)](),this['_status$'][_0x42da8d(0x1e7)]('idle'),this[_0x42da8d(0x203)][_0x42da8d(0x1cf)]();}[_0x6f555b(0x227)](){const _0x3998fd=_0x6f555b;return this[_0x3998fd(0x1b4)];}[_0x6f555b(0x1b7)](){const _0x20308f=_0x6f555b;this[_0x20308f(0x1bc)]||(this[_0x20308f(0x1bc)]=!0x0,this[_0x20308f(0x1ef)]['sessionStatus$'][_0x20308f(0x1cb)](_0x5597d3(this[_0x20308f(0x1b0)]))[_0x20308f(0x1e9)](_0x16a480=>{const _0xe88e8c=_0x20308f;switch(_0x16a480){case _0x12087e[_0xe88e8c(0x1dc)]:this['_handleOffline']();break;case _0x12087e['ONLINE']:this[_0xe88e8c(0x219)]();break;default:}}),this[_0x20308f(0x1ef)][_0x20308f(0x20e)][_0x20308f(0x1cb)](_0x5597d3(this[_0x20308f(0x1b0)]))[_0x20308f(0x1e9)](_0x1030ce=>{const _0x346ebf=_0x20308f;let {eventID:_0x81170}=_0x1030ce;switch(_0x81170){case _0x36ebd8[_0x346ebf(0x1b2)]:this['_handleNewHost'](_0x1030ce);break;case _0x36ebd8['LIVESHARE_OPERATION']:this[_0x346ebf(0x1aa)](_0x1030ce);break;case _0x36ebd8[_0x346ebf(0x22f)]:this[_0x346ebf(0x1be)]();break;case _0x36ebd8[_0x346ebf(0x213)]:this[_0x346ebf(0x1a6)](_0x1030ce);break;default:}}));}[_0x6f555b(0x1fb)](){const _0x50e899=_0x6f555b;this['_collabSession'][_0x50e899(0x1d7)]({'eventID':_0x36ebd8[_0x50e899(0x1fc)],'data':{'unitID':this['_unitID'],'userID':this[_0x50e899(0x1ef)]['getMemberID']()}},this[_0x50e899(0x216)]);}[_0x6f555b(0x1f9)](){const _0x3f42db=_0x6f555b;this[_0x3f42db(0x1b4)]==='presenting'&&(this[_0x3f42db(0x203)]['next'](_0x3f42db(0x215)),this[_0x3f42db(0x1ef)]['send']({'eventID':_0x36ebd8[_0x3f42db(0x22f)],'data':{'unitID':this[_0x3f42db(0x216)]}},this['_unitID']));}['startFollowing'](){const _0x4235c3=_0x6f555b;this[_0x4235c3(0x1b4)]===_0x4235c3(0x1d4)&&(this[_0x4235c3(0x203)]['next']('following'),this[_0x4235c3(0x1ac)]());}[_0x6f555b(0x202)](){const _0x30f65e=_0x6f555b;this[_0x30f65e(0x1b4)]==='following'&&this['_stopFollowing']();}[_0x6f555b(0x21f)](_0x13a739){const _0x3e2476=_0x6f555b;let {presenter:_0x519a50}=_0x13a739[_0x3e2476(0x1eb)],_0xab587=this[_0x3e2476(0x1ef)][_0x3e2476(0x21a)]();this[_0x3e2476(0x1f0)]=_0x519a50,_0x519a50===_0xab587?(this[_0x3e2476(0x1ec)](),this[_0x3e2476(0x22a)]()):this[_0x3e2476(0x1b4)]!==_0x3e2476(0x1d4)&&(this[_0x3e2476(0x1e1)](),this['_startFollowing']());}[_0x6f555b(0x1f7)](){const _0x116eb6=_0x6f555b;let _0x2ce52a={'eventID':_0x36ebd8[_0x116eb6(0x20f)]};this['_collabSession'][_0x116eb6(0x1d7)](_0x2ce52a,this[_0x116eb6(0x216)]);}[_0x6f555b(0x1be)](){const _0x272a9e=_0x6f555b;this[_0x272a9e(0x1f0)]=null,this[_0x272a9e(0x1b4)]!==_0x272a9e(0x214)&&this[_0x272a9e(0x1b9)]();}[_0x6f555b(0x1a6)](_0x4c50e4){const _0x430cf0=_0x6f555b;if(this[_0x430cf0(0x1b4)]===_0x430cf0(0x20c)&&this[_0x430cf0(0x1f0)]===_0x4c50e4[_0x430cf0(0x1eb)]['memberID']){let _0x538525=_0x47cdb6(_0x4c50e4[_0x430cf0(0x1eb)])[_0x430cf0(0x1cd)][_0x430cf0(0x21b)]()['find'](_0x17d75c=>_0x17d75c['id']===_0x1b67cb['id']);if(_0x538525){let _0x5d5395=_0x538525[_0x430cf0(0x209)][_0x430cf0(0x207)],_0x16c32a=_0x538525[_0x430cf0(0x209)]['sheet']['id'];setTimeout(()=>{const _0x12e7ea=_0x430cf0;this[_0x12e7ea(0x20d)][_0x12e7ea(0x1de)](_0x538536['id'],{'unitId':_0x5d5395,'subUnitId':_0x16c32a},{'fromCollab':!0x0});});}}}[_0x6f555b(0x22a)](){const _0x5a3670=_0x6f555b;var _0x5baf86;(_0x5baf86=this[_0x5a3670(0x1b1)])==null||_0x5baf86[_0x5a3670(0x218)](),this['_status$']['next']('presenting');let _0xffab2d=new Map(),_0x51c9cc=this['_commandDisposable']=new _0x5ec514();_0x51c9cc[_0x5a3670(0x1ee)](_0x504e8e(()=>{const _0x3616db=_0x5a3670;_0xffab2d[_0x3616db(0x1f3)](({subject:_0x11c6a7,subscription:_0x3a6c3b})=>{const _0x140779=_0x3616db;_0x3a6c3b[_0x140779(0x1d2)](),_0x11c6a7[_0x140779(0x1cf)]();}),_0xffab2d[_0x3616db(0x1db)]();})),_0x51c9cc[_0x5a3670(0x1ee)](this[_0x5a3670(0x20d)][_0x5a3670(0x221)](_0x5cb6ff=>{const _0x24a082=_0x5a3670;if(_0x5cb6ff[_0x24a082(0x1ff)]!==_0x4e0307[_0x24a082(0x1d9)]||!this['_liveShareService']['shouldShareOperation'](_0x5cb6ff['id']))return;let {id:_0x53e816}=_0x5cb6ff,_0x4bbd17;if(_0xffab2d['has'](_0x53e816))_0x4bbd17=_0xffab2d[_0x24a082(0x1f8)](_0x53e816)[_0x24a082(0x208)];else{var _0x55dd74;_0x4bbd17=new _0x7214fd();let _0x57ab92=_0x4bbd17['pipe'](_0x4fe322((_0x55dd74=this[_0x24a082(0x224)][_0x24a082(0x1e8)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x55dd74,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2b4dbc=>{const _0x1886fb=_0x24a082;this[_0x1886fb(0x1ef)]['send']({'eventID':_0x36ebd8['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1886fb(0x216)],'operations':{[_0x2b4dbc['id']]:{'id':_0x2b4dbc['id'],'params':JSON[_0x1886fb(0x1f5)](_0x2b4dbc[_0x1886fb(0x209)])}}}},this['_unitID']);});_0xffab2d[_0x24a082(0x1c8)](_0x53e816,{'subject':_0x4bbd17,'subscription':_0x57ab92});}_0x4bbd17[_0x24a082(0x1e7)](_0x5cb6ff);})),this[_0x5a3670(0x1da)][_0x5a3670(0x210)](this[_0x5a3670(0x216)])[_0x5a3670(0x1f3)](_0xc19f40=>this[_0x5a3670(0x1ef)][_0x5a3670(0x1d7)]({'eventID':_0x36ebd8[_0x5a3670(0x234)],'data':{'unitID':this[_0x5a3670(0x216)],'operations':{[_0xc19f40['id']]:{'id':_0xc19f40['id'],'params':JSON[_0x5a3670(0x1f5)](_0xc19f40[_0x5a3670(0x209)])}}}},this[_0x5a3670(0x216)]));}[_0x6f555b(0x1e1)](){const _0x397e79=_0x6f555b;var _0x3b6122;this[_0x397e79(0x203)]['next'](_0x397e79(0x215)),(_0x3b6122=this['_commandDisposable'])==null||_0x3b6122['dispose'](),this['_commandDisposable']=null;}[_0x6f555b(0x1ac)](){const _0x3debc8=_0x6f555b;var _0x4e02ae;(_0x4e02ae=this[_0x3debc8(0x1b1)])==null||_0x4e02ae[_0x3debc8(0x218)](),this[_0x3debc8(0x203)][_0x3debc8(0x1e7)](_0x3debc8(0x20c));}['_beIdle'](){const _0x2445ee=_0x6f555b;var _0x2c99c3;this[_0x2445ee(0x203)]['next']('idle'),(_0x2c99c3=this[_0x2445ee(0x1b1)])==null||_0x2c99c3[_0x2445ee(0x218)](),this['_commandDisposable']=null;}[_0x6f555b(0x1ec)](){const _0x4079cb=_0x6f555b;var _0x170941;this['_status$'][_0x4079cb(0x1e7)](_0x4079cb(0x1d4)),(_0x170941=this[_0x4079cb(0x1b1)])==null||_0x170941[_0x4079cb(0x218)]();}[_0x6f555b(0x1aa)](_0x263403){const _0x2170f9=_0x6f555b;if(['presenting',_0x2170f9(0x1d4),_0x2170f9(0x1ed)][_0x2170f9(0x1d0)](this[_0x2170f9(0x1b4)])||!_0x263403[_0x2170f9(0x1eb)][_0x2170f9(0x1bd)]||_0x263403['data'][_0x2170f9(0x1bd)]===this[_0x2170f9(0x1ef)][_0x2170f9(0x21a)]())return;this['_status']===_0x2170f9(0x215)&&this[_0x2170f9(0x1ac)]();let _0x247cac=_0x263403[_0x2170f9(0x1eb)][_0x2170f9(0x226)];Object['values'](_0x247cac)[_0x2170f9(0x1f3)](_0x4d71d9=>{const _0x380b71=_0x2170f9;this[_0x380b71(0x20d)][_0x380b71(0x1de)](_0x4d71d9['id'],_0x4d71d9[_0x380b71(0x209)]?JSON[_0x380b71(0x233)](_0x4d71d9[_0x380b71(0x209)]):null,{'fromCollab':!0x0});});}[_0x6f555b(0x22d)](){const _0x53dc33=_0x6f555b;var _0x3e2ad0;this[_0x53dc33(0x203)][_0x53dc33(0x1e7)](_0x53dc33(0x1ed)),(_0x3e2ad0=this['_commandDisposable'])==null||_0x3e2ad0[_0x53dc33(0x218)]();}['_handleOnline'](){const _0x41deea=_0x6f555b;this['_status$'][_0x41deea(0x1e7)]('idle'),this[_0x41deea(0x1f7)]();}};J=G([W(0x2,_0x52b4ac),W(0x3,_0x28818e(U)),W(0x4,_0x35ab55)],J);var se=_0x6f555b(0x22c),ce=_0x6f555b(0x1fe);const Y={};let X=class extends _0x46999e{constructor(_0x5bdb2e){const _0x5060a4=_0x6f555b;super(),this[_0x5060a4(0x1da)]=_0x5bdb2e,this[_0x5060a4(0x1bc)]();}['_init'](){const _0x4b596c=_0x6f555b;[_0x131898['id'],_0x18fc2b['id'],_0x538536['id']][_0x4b596c(0x1f3)](_0x41d19f=>{const _0x3aa4df=_0x4b596c;this[_0x3aa4df(0x212)](this[_0x3aa4df(0x1da)][_0x3aa4df(0x1c1)](_0x41d19f));});}};X=G([W(0x0,_0x28818e(U))],X);function Z(){const _0x8372d1=_0x6f555b;let _0x2ab6cd=_0x1ee678(K),_0x4b1139=_0x1ee678(_0x21550a),_0x318bb3=_0x252035(()=>_0x4b1139[_0x8372d1(0x1c7)](_0x203c69[_0x8372d1(0x230)]),void 0x0,!0x1,[]),_0x1892da=_0x252035(_0x4cfce8(()=>_0x318bb3?_0x167d7b(()=>_0x9ce90d(_0x2ab6cd[_0x8372d1(0x1c5)](_0x318bb3[_0x8372d1(0x231)]()))):_0x243cf5(null),[_0x318bb3,_0x2ab6cd]),null),_0x449ac0=_0x252035(_0x1892da?()=>_0x1892da['status$']:null,_0x8372d1(0x215),!0x1,[_0x1892da]);return _0x1892da?_0x259d6b(_0x390708,{'align':_0x8372d1(0x1e2),'disabled':_0x449ac0==='offline','className':_0x8372d1(0x229),'overlay':_0x259d6b(le,{'status':_0x449ac0,'coordinator':_0x1892da}),'children':_0x259d6b(_0x8372d1(0x21d),{'className':_0x3d7f89(_0x8372d1(0x211),{'univer-cursor-not-allowed':_0x449ac0===_0x8372d1(0x1ed),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x449ac0!==_0x8372d1(0x1ed)}),'type':_0x8372d1(0x21d),'children':_0x259d6b(_0x295a01,{})})}):null;}function le(_0x40f80c){const _0x5af244=_0x6f555b;let {status:_0x40b195,coordinator:_0x1c2c04}=_0x40f80c;switch(_0x40b195){case _0x5af244(0x215):return _0x259d6b(ue,{'coordinator':_0x1c2c04});case _0x5af244(0x20c):return _0x259d6b(de,{'coordinator':_0x1c2c04});case _0x5af244(0x1d4):return _0x259d6b(fe,{'coordinator':_0x1c2c04});case _0x5af244(0x1ed):return _0x259d6b(me,{});case _0x5af244(0x214):return _0x259d6b(pe,{'coordinator':_0x1c2c04});default:return null;}}function ue(_0x5c03ad){const _0x3cd729=_0x6f555b;let {coordinator:_0x48f9bf}=_0x5c03ad;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x3cd729(0x223),{'className':_0x3cd729(0x1d3),'children':_0x3cd729(0x1dd)}),_0x259d6b(_0x35e69e,{'onClick':()=>_0x48f9bf[_0x3cd729(0x1fb)](),'children':_0x3cd729(0x1a9)})]});}function de(_0x3c5169){const _0x2acf23=_0x6f555b;let {coordinator:_0x5c8259}=_0x3c5169;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x2acf23(0x223),{'className':_0x2acf23(0x1d3),'children':_0x2acf23(0x1f6)}),_0x259d6b(_0x35e69e,{'onClick':()=>_0x5c8259['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x261d(_0x2fead8,_0x161f5a){_0x2fead8=_0x2fead8-0x1a3;const _0x326d0d=_0x326d();let _0x261de8=_0x326d0d[_0x2fead8];return _0x261de8;}function fe(_0x2d744c){const _0x25c7b2=_0x6f555b;let {coordinator:_0x345ac3}=_0x2d744c;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b('div',{'className':_0x25c7b2(0x1d3),'children':_0x25c7b2(0x1f2)}),_0x259d6b(_0x35e69e,{'variant':_0x25c7b2(0x205),'onClick':()=>_0x345ac3['startFollowing'](),'children':_0x25c7b2(0x1ce)})]});}function pe(_0x45ad0b){const _0x3fd523=_0x6f555b;let {coordinator:_0x3faeb6}=_0x45ad0b;return _0x12e6ce(_0x1019e6,{'children':[_0x259d6b(_0x3fd523(0x223),{'className':_0x3fd523(0x1d3),'children':_0x3fd523(0x217)}),_0x259d6b(_0x35e69e,{'variant':_0x3fd523(0x225),'onClick':()=>_0x3faeb6[_0x3fd523(0x1f9)](),'children':_0x3fd523(0x1ae)})]});}function me(){const _0x416a58=_0x6f555b;return _0x259d6b(_0x1019e6,{'children':_0x416a58(0x1bb)});}let Q=class extends _0x46999e{constructor(_0x202ea3,_0x20afee){const _0x5cb26e=_0x6f555b;super(),this[_0x5cb26e(0x204)]=_0x202ea3,this['_uiPartsService']=_0x20afee,this['_mountLiveShare']();}[_0x6f555b(0x21c)](){const _0xf62b0=_0x6f555b;this['disposeWithMe'](this[_0xf62b0(0x1df)]['registerComponent'](_0x4aa22c['HEADER_MENU'],()=>_0x1cb2c5(Z,this[_0xf62b0(0x204)])));}};Q=G([W(0x0,_0x28818e(_0x18620c)),W(0x1,_0x45ac3a)],Q);let $=class extends _0x572057{constructor(_0x2f03ef=Y,_0x2fb0bc,_0x1605e7){const _0x4a885f=_0x6f555b;super(),this[_0x4a885f(0x1fa)]=_0x2f03ef,this[_0x4a885f(0x204)]=_0x2fb0bc,this[_0x4a885f(0x224)]=_0x1605e7;let {..._0x5de6eb}=_0x5b8c53({},Y,this[_0x4a885f(0x1fa)]);this[_0x4a885f(0x224)][_0x4a885f(0x1a4)](_0x4a885f(0x1bf),_0x5de6eb);}[_0x6f555b(0x1a7)](){const _0x568e2c=_0x6f555b;_0x31f0d7(this[_0x568e2c(0x204)],_0x2f7b56([[U],[K],[X],[Q]],this['_config'][_0x568e2c(0x22e)])),_0x591296(this['_injector'],[[X]]);}[_0x6f555b(0x1c2)](){const _0xf0db12=_0x6f555b;_0x591296(this[_0xf0db12(0x204)],[[Q]]);}};H($,'type',_0x203c69[_0x6f555b(0x1ba)]),H($,'pluginName',_0x6f555b(0x1a8)),H($,'packageName',se),H($,_0x6f555b(0x1b6),ce),$=G([_0x3099e9(_0x948aaa),W(0x1,_0x28818e(_0x18620c)),W(0x2,_0x52b4ac)],$);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
|
-
function
|
|
1
|
+
function _0xf67e(_0x110a80,_0x4fcd9d){_0x110a80=_0x110a80-0x194;const _0x50c427=_0x50c4();let _0xf67e60=_0x50c427[_0x110a80];return _0xf67e60;}(function(_0x50936a,_0x2cbc72){const _0x4cf434=_0xf67e,_0x1f7aed=_0x50936a();while(!![]){try{const _0x3f8e4e=parseInt(_0x4cf434(0x1c5))/0x1*(parseInt(_0x4cf434(0x1bd))/0x2)+-parseInt(_0x4cf434(0x1ab))/0x3*(-parseInt(_0x4cf434(0x1b8))/0x4)+-parseInt(_0x4cf434(0x1bb))/0x5*(parseInt(_0x4cf434(0x1af))/0x6)+parseInt(_0x4cf434(0x1c1))/0x7+-parseInt(_0x4cf434(0x1a5))/0x8*(-parseInt(_0x4cf434(0x1b4))/0x9)+parseInt(_0x4cf434(0x1aa))/0xa+parseInt(_0x4cf434(0x1ad))/0xb*(-parseInt(_0x4cf434(0x1be))/0xc);if(_0x3f8e4e===_0x2cbc72)break;else _0x1f7aed['push'](_0x1f7aed['shift']());}catch(_0x12f9a5){_0x1f7aed['push'](_0x1f7aed['shift']());}}}(_0x50c4,0xc821e),function(_0x26f31d,_0x53557c){const _0x3828ce=_0xf67e;typeof exports==_0x3828ce(0x1b2)&&typeof module<'u'?_0x53557c(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define=='function'&&define['amd']?define([_0x3828ce(0x1ba),_0x3828ce(0x1a0),_0x3828ce(0x1b3)],_0x53557c):(_0x26f31d=typeof globalThis<'u'?globalThis:_0x26f31d||self,_0x53557c(_0x26f31d[_0x3828ce(0x19a)],_0x26f31d[_0x3828ce(0x1a4)],_0x26f31d[_0x3828ce(0x19c)]));}(this,function(_0x1ee959,_0x56949e,_0x1e4c36){const _0x2739e8=_0xf67e;function _0x30a8ec(_0x3bd71a){'@babel/helpers - typeof';return _0x30a8ec=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x5718f9){return typeof _0x5718f9;}:function(_0x240588){const _0x212b98=_0xf67e;return _0x240588&&typeof Symbol==_0x212b98(0x19e)&&_0x240588[_0x212b98(0x1ae)]===Symbol&&_0x240588!==Symbol[_0x212b98(0x195)]?_0x212b98(0x1a2):typeof _0x240588;},_0x30a8ec(_0x3bd71a);}function _0x26f86e(_0x551fb4,_0xca1620){const _0x3ea07c=_0xf67e;if(_0x30a8ec(_0x551fb4)!=_0x3ea07c(0x1b2)||!_0x551fb4)return _0x551fb4;var _0x1b6708=_0x551fb4[Symbol['toPrimitive']];if(_0x1b6708!==void 0x0){var _0x5ec335=_0x1b6708[_0x3ea07c(0x1c3)](_0x551fb4,_0xca1620||_0x3ea07c(0x1a3));if(_0x30a8ec(_0x5ec335)!='object')return _0x5ec335;throw TypeError(_0x3ea07c(0x199));}return(_0xca1620===_0x3ea07c(0x197)?String:Number)(_0x551fb4);}function _0x4157eb(_0x2cc788){const _0x556ffc=_0xf67e;var _0x383ee4=_0x26f86e(_0x2cc788,_0x556ffc(0x197));return _0x30a8ec(_0x383ee4)==_0x556ffc(0x1a2)?_0x383ee4:_0x383ee4+'';}function _0x40cd56(_0x3a9d65,_0x1818c9,_0x3b9fc2){return(_0x1818c9=_0x4157eb(_0x1818c9))in _0x3a9d65?Object['defineProperty'](_0x3a9d65,_0x1818c9,{'value':_0x3b9fc2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a9d65[_0x1818c9]=_0x3b9fc2,_0x3a9d65;}var _0xd22876=class extends _0x1e4c36[_0x2739e8(0x1c4)]{constructor(..._0x2cb52d){const _0x644767=_0x2739e8;super(..._0x2cb52d),_0x40cd56(this,_0x644767(0x1b9),void 0x0);}[_0x2739e8(0x1a7)](_0x5b19a3){const _0x1ce720=_0x2739e8;this[_0x1ce720(0x1b9)]=_0x5b19a3[_0x1ce720(0x1c0)](_0x1ee959[_0x1ce720(0x19b)]);}[_0x2739e8(0x1a1)](){const _0x2b6ed6=_0x2739e8;var _0x341ef0;let _0x3cb9ba=this[_0x2b6ed6(0x1a8)][_0x2b6ed6(0x1c0)](_0x56949e[_0x2b6ed6(0x1c6)])['getCurrentUnitOfType'](_0x56949e['UniverInstanceType'][_0x2b6ed6(0x1a6)]);if(!_0x3cb9ba)throw Error(_0x2b6ed6(0x1b7));let _0x45ae30=_0x3cb9ba[_0x2b6ed6(0x1bf)](),_0x6bdf12=this[_0x2b6ed6(0x1b9)][_0x2b6ed6(0x1b1)](_0x45ae30);return(_0x341ef0=_0x6bdf12==null?void 0x0:_0x6bdf12[_0x2b6ed6(0x194)]())==null?_0x1ee959[_0x2b6ed6(0x198)][_0x2b6ed6(0x1b0)]:_0x341ef0;}[_0x2739e8(0x1b6)](){const _0x64a7e=_0x2739e8;let _0x3db0fc=this[_0x64a7e(0x1a8)][_0x64a7e(0x1c0)](_0x56949e[_0x64a7e(0x1c6)])[_0x64a7e(0x1b5)](_0x56949e[_0x64a7e(0x1a9)][_0x64a7e(0x1a6)]);if(!_0x3db0fc)throw Error(_0x64a7e(0x1b7));let _0x564712=_0x3db0fc[_0x64a7e(0x1bf)](),_0x3f7fb7=this['_liveShareController'][_0x64a7e(0x1b1)](_0x564712);if(!_0x3f7fb7)throw Error(_0x64a7e(0x1c2));_0x3f7fb7[_0x64a7e(0x1b6)]();}[_0x2739e8(0x196)](){const _0x59f321=_0x2739e8;let _0x41560f=this[_0x59f321(0x1a8)][_0x59f321(0x1c0)](_0x56949e[_0x59f321(0x1c6)])[_0x59f321(0x1b5)](_0x56949e[_0x59f321(0x1a9)][_0x59f321(0x1a6)]);if(!_0x41560f)throw Error(_0x59f321(0x1b7));let _0x487a62=_0x41560f[_0x59f321(0x1bf)](),_0x4733bd=this[_0x59f321(0x1b9)]['getLiveShareCoordinatorSync'](_0x487a62);if(!_0x4733bd)throw Error(_0x59f321(0x1c2));_0x4733bd[_0x59f321(0x196)]();}['startPresenting'](){const _0x4b3a7a=_0x2739e8;let _0x176c5b=this[_0x4b3a7a(0x1a8)][_0x4b3a7a(0x1c0)](_0x56949e['IUniverInstanceService'])[_0x4b3a7a(0x1b5)](_0x56949e[_0x4b3a7a(0x1a9)][_0x4b3a7a(0x1a6)]);if(!_0x176c5b)throw Error(_0x4b3a7a(0x1b7));let _0x2c1c9b=_0x176c5b[_0x4b3a7a(0x1bf)](),_0x478b5e=this[_0x4b3a7a(0x1b9)]['getLiveShareCoordinatorSync'](_0x2c1c9b);if(!_0x478b5e)throw Error(_0x4b3a7a(0x1c2));_0x478b5e['tryStartPresenting']();}[_0x2739e8(0x19f)](){const _0x87f651=_0x2739e8;let _0x5f8eb3=this['_injector']['get'](_0x56949e[_0x87f651(0x1c6)])['getCurrentUnitOfType'](_0x56949e[_0x87f651(0x1a9)][_0x87f651(0x1a6)]);if(!_0x5f8eb3)throw Error(_0x87f651(0x1b7));let _0x5d995f=_0x5f8eb3[_0x87f651(0x1bf)](),_0x11979b=this[_0x87f651(0x1b9)]['getLiveShareCoordinatorSync'](_0x5d995f);if(!_0x11979b)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x11979b['stopPresenting']();}};_0x1e4c36[_0x2739e8(0x1c4)][_0x2739e8(0x1ac)](_0xd22876);var _0x41eb5a=class extends _0x1e4c36['FEnum']{get[_0x2739e8(0x19d)](){const _0x10ca30=_0x2739e8;return _0x1ee959[_0x10ca30(0x198)];}};_0x1e4c36[_0x2739e8(0x1bc)]['extend'](_0x41eb5a);}));function _0x50c4(){const _0x7abde0=['default','UniverCore','3730576NbxbZP','UNIVER_SHEET','_initialize','_injector','UniverInstanceType','9685960DRYUTN','3nCrgnf','extend','33FtPTKc','constructor','66aduwjt','IDLE','getLiveShareCoordinatorSync','object','@univerjs/core/facade','9LTkHiP','getCurrentUnitOfType','startFollowing','No\x20active\x20workbook\x20found.','5909476xwSUJn','_liveShareController','@univerjs-pro/live-share','241765wnVzlq','FEnum','2ewsCPx','14236296unAtpC','getUnitId','get','4526081mkjIeW','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','call','FUniver','1351829RGdUEA','IUniverInstanceService','getStatus','prototype','stopFollowing','string','LiveShareStatus','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverProLiveShare','LiveShareController','UniverCoreFacade','LiveShareStatusEnum','function','stopPresenting','@univerjs/core','getLiveShareStatus','symbol'];_0x50c4=function(){return _0x7abde0;};return _0x50c4();}
|
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 _0x251f(_0x103e44,_0x35f2bc){_0x103e44=_0x103e44-0xad;const _0x4bb79c=_0x4bb7();let _0x251f73=_0x4bb79c[_0x103e44];return _0x251f73;}(function(_0x18a29b,_0x2d7a14){const _0x5005c2=_0x251f,_0xc11726=_0x18a29b();while(!![]){try{const _0x5287e7=parseInt(_0x5005c2(0xb5))/0x1+parseInt(_0x5005c2(0xc9))/0x2*(-parseInt(_0x5005c2(0x152))/0x3)+parseInt(_0x5005c2(0xd2))/0x4+-parseInt(_0x5005c2(0x12b))/0x5+parseInt(_0x5005c2(0xf8))/0x6+-parseInt(_0x5005c2(0x180))/0x7*(-parseInt(_0x5005c2(0xe7))/0x8)+-parseInt(_0x5005c2(0x16c))/0x9;if(_0x5287e7===_0x2d7a14)break;else _0xc11726['push'](_0xc11726['shift']());}catch(_0x3cfa01){_0xc11726['push'](_0xc11726['shift']());}}}(_0x4bb7,0x43e65),function(_0x47a463,_0x4902ce){const _0x52b49b=_0x251f;typeof exports==_0x52b49b(0x166)&&typeof module<'u'?_0x4902ce(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==_0x52b49b(0x12a)&&define[_0x52b49b(0x128)]?define([_0x52b49b(0xec),_0x52b49b(0xdb),_0x52b49b(0x13b),_0x52b49b(0x19a),_0x52b49b(0xb4),'rxjs',_0x52b49b(0x135),'@univerjs/sheets-ui',_0x52b49b(0x134),_0x52b49b(0x178),_0x52b49b(0xd0),'react/jsx-runtime'],_0x4902ce):(_0x47a463=typeof globalThis<'u'?globalThis:_0x47a463||self,_0x4902ce(_0x47a463[_0x52b49b(0x111)]={},_0x47a463[_0x52b49b(0x158)],_0x47a463['UniverProCollaborationClient'],_0x47a463[_0x52b49b(0x121)],_0x47a463['UniverSheets'],_0x47a463['rxjs'],_0x47a463['rxjs']['operators'],_0x47a463[_0x52b49b(0x197)],_0x47a463[_0x52b49b(0x169)],_0x47a463[_0x52b49b(0x19d)],_0x47a463[_0x52b49b(0x129)],_0x47a463[_0x52b49b(0x129)]));}(this,function(_0x1bc38c,_0x40f0b0,_0xa0d61e,_0x3d684b,_0x3663fc,_0x1348da,_0x2a7d2c,_0x3cd628,_0x305bcb,_0x50b419,_0x4a871b,_0x348bf8){const _0x3d538d=_0x251f;Object[_0x3d538d(0x170)](_0x1bc38c,Symbol[_0x3d538d(0xd7)],{'value':_0x3d538d(0x110)});function _0x2695a1(_0x6813b7){'@babel/helpers - typeof';const _0x129325=_0x3d538d;return _0x2695a1=typeof Symbol==_0x129325(0x12a)&&typeof Symbol['iterator']==_0x129325(0x188)?function(_0xfa7194){return typeof _0xfa7194;}:function(_0x5ae81d){const _0x19aec7=_0x129325;return _0x5ae81d&&typeof Symbol==_0x19aec7(0x12a)&&_0x5ae81d[_0x19aec7(0xeb)]===Symbol&&_0x5ae81d!==Symbol[_0x19aec7(0xcc)]?_0x19aec7(0x188):typeof _0x5ae81d;},_0x2695a1(_0x6813b7);}function _0x306940(_0x78ad6d,_0x314f76){const _0x4a90ae=_0x3d538d;if(_0x2695a1(_0x78ad6d)!=_0x4a90ae(0x166)||!_0x78ad6d)return _0x78ad6d;var _0x25b14b=_0x78ad6d[Symbol[_0x4a90ae(0xc2)]];if(_0x25b14b!==void 0x0){var _0x11f9d7=_0x25b14b['call'](_0x78ad6d,_0x314f76||'default');if(_0x2695a1(_0x11f9d7)!=_0x4a90ae(0x166))return _0x11f9d7;throw TypeError(_0x4a90ae(0x103));}return(_0x314f76===_0x4a90ae(0x13e)?String:Number)(_0x78ad6d);}function _0x10eedd(_0x2aab47){const _0x5afdd8=_0x3d538d;var _0x3906a0=_0x306940(_0x2aab47,_0x5afdd8(0x13e));return _0x2695a1(_0x3906a0)=='symbol'?_0x3906a0:_0x3906a0+'';}function _0x19674a(_0x130d03,_0x3889a2,_0x4e5d66){return(_0x3889a2=_0x10eedd(_0x3889a2))in _0x130d03?Object['defineProperty'](_0x130d03,_0x3889a2,{'value':_0x4e5d66,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x130d03[_0x3889a2]=_0x4e5d66,_0x130d03;}var _0x1f3f2f=class extends _0x3d684b['Disposable']{constructor(..._0x25daf3){super(..._0x25daf3),_0x19674a(this,'_sharedOperations',new Set()),_0x19674a(this,'_reporters',new Set());}[_0x3d538d(0x147)](_0x1d2ded){const _0x408a58=_0x3d538d;return this[_0x408a58(0x138)][_0x408a58(0x13d)](_0x1d2ded),(0x0,_0x3d684b[_0x408a58(0x15c)])(()=>this[_0x408a58(0x138)][_0x408a58(0x11d)](_0x1d2ded));}[_0x3d538d(0xdc)](_0x421821){const _0x22894a=_0x3d538d;return this[_0x22894a(0x15f)][_0x22894a(0x13d)](_0x421821),(0x0,_0x3d684b[_0x22894a(0x15c)])(()=>this[_0x22894a(0x15f)][_0x22894a(0x11d)](_0x421821));}['shouldShareOperation'](_0x3c54e7){const _0x168255=_0x3d538d;return this['_sharedOperations'][_0x168255(0x145)](_0x3c54e7);}[_0x3d538d(0x154)](_0x62ea76){const _0x1be684=_0x3d538d;return Array[_0x1be684(0xb8)](this[_0x1be684(0x15f)])[_0x1be684(0xd9)](_0x5494b9=>_0x5494b9(_0x62ea76));}};function _0x513c74(_0x34aac2,_0x23b632){return function(_0x23b64c,_0x171fab){_0x23b632(_0x23b64c,_0x171fab,_0x34aac2);};}function _0x3c6281(_0x2c750a,_0x5d7902,_0xabb86d,_0x251959){const _0x35f4f1=_0x3d538d;var _0x46323f=arguments[_0x35f4f1(0x164)],_0x1bb200=_0x46323f<0x3?_0x5d7902:_0x251959===null?_0x251959=Object[_0x35f4f1(0x195)](_0x5d7902,_0xabb86d):_0x251959,_0x3abf91;if(typeof Reflect==_0x35f4f1(0x166)&&typeof Reflect[_0x35f4f1(0x160)]=='function')_0x1bb200=Reflect[_0x35f4f1(0x160)](_0x2c750a,_0x5d7902,_0xabb86d,_0x251959);else{for(var _0x1c2943=_0x2c750a[_0x35f4f1(0x164)]-0x1;_0x1c2943>=0x0;_0x1c2943--)(_0x3abf91=_0x2c750a[_0x1c2943])&&(_0x1bb200=(_0x46323f<0x3?_0x3abf91(_0x1bb200):_0x46323f>0x3?_0x3abf91(_0x5d7902,_0xabb86d,_0x1bb200):_0x3abf91(_0x5d7902,_0xabb86d))||_0x1bb200);}return _0x46323f>0x3&&_0x1bb200&&Object['defineProperty'](_0x5d7902,_0xabb86d,_0x1bb200),_0x1bb200;}let _0x55e1b9=class extends _0x3d684b[_0x3d538d(0xd1)]{constructor(_0x43e62d,_0x3740ac,_0x4c1c1a){const _0x168c1c=_0x3d538d;super(),this[_0x168c1c(0xc7)]=_0x43e62d,this[_0x168c1c(0xe1)]=_0x3740ac,this[_0x168c1c(0x172)]=_0x4c1c1a,_0x19674a(this,_0x168c1c(0xb2),new Map()),this['_init']();}async['getLiveShareCoordinator'](_0x4c1045){const _0x4f286a=_0x3d538d;return this['_entities'][_0x4f286a(0x145)](_0x4c1045)||await this[_0x4f286a(0xe9)](_0x4c1045),this[_0x4f286a(0xb2)][_0x4f286a(0x125)](_0x4c1045);}[_0x3d538d(0xef)](_0x1b4a74){const _0xf9d407=_0x3d538d;var _0x5f0cec;return(_0x5f0cec=this[_0xf9d407(0xb2)][_0xf9d407(0x125)](_0x1b4a74))==null?null:_0x5f0cec;}[_0x3d538d(0xbd)](){const _0xf35724=_0x3d538d;this[_0xf35724(0xc7)][_0xf35724(0x12f)](_0x3d684b[_0xf35724(0xda)]['UNIVER_SHEET'])['pipe']((0x0,_0x2a7d2c[_0xf35724(0x167)])(this[_0xf35724(0x182)]))['subscribe'](async _0x2ec84d=>{const _0x1efdb8=_0xf35724;let _0x445bb4=_0x2ec84d[_0x1efdb8(0xdd)][_0x1efdb8(0xe8)]();this[_0x1efdb8(0xb2)][_0x1efdb8(0x145)](_0x445bb4)||this[_0x1efdb8(0xe9)](_0x445bb4);}),this[_0xf35724(0xc7)][_0xf35724(0x14c)](_0x3d684b['UniverInstanceType'][_0xf35724(0x116)])[_0xf35724(0xf0)]((0x0,_0x2a7d2c[_0xf35724(0x167)])(this['dispose$']))[_0xf35724(0xad)](_0x30a1a9=>{const _0xdd87d1=_0xf35724;let _0x52b64b=_0x30a1a9[_0xdd87d1(0xe8)](),_0x3a3d2d=this[_0xdd87d1(0xb2)]['get'](_0x52b64b);_0x3a3d2d==null||_0x3a3d2d[_0xdd87d1(0xf9)]();});}async[_0x3d538d(0xe9)](_0x4181a2){const _0x47467a=_0x3d538d;let _0x59ee35=await this[_0x47467a(0x172)][_0x47467a(0x17c)](_0x4181a2),_0x604081=this[_0x47467a(0xe1)][_0x47467a(0x11f)](_0x36ad0e,_0x4181a2,_0x59ee35);return _0x604081[_0x47467a(0xb0)](),this[_0x47467a(0xb2)][_0x47467a(0x136)](_0x4181a2,_0x604081),_0x604081;}};_0x55e1b9=_0x3c6281([_0x513c74(0x0,_0x3d684b[_0x3d538d(0xaf)]),_0x513c74(0x1,(0x0,_0x3d684b[_0x3d538d(0x150)])(_0x3d684b['Injector'])),_0x513c74(0x2,(0x0,_0x3d684b['Inject'])(_0xa0d61e[_0x3d538d(0xc4)]))],_0x55e1b9);let _0x37ee8a=function(_0x2ffa3b){const _0x1e27c9=_0x3d538d;return _0x2ffa3b[_0x1e27c9(0x119)]='offline',_0x2ffa3b[_0x1e27c9(0x16b)]=_0x1e27c9(0xc0),_0x2ffa3b['FOLLOWING']=_0x1e27c9(0xfe),_0x2ffa3b[_0x1e27c9(0x16a)]=_0x1e27c9(0x115),_0x2ffa3b[_0x1e27c9(0xb1)]='presenting',_0x2ffa3b;}({}),_0x36ad0e=class extends _0x3d684b['RxDisposable']{get['_status'](){const _0x12f3ca=_0x3d538d;return this['_status$'][_0x12f3ca(0xb7)]();}constructor(_0x3ab288,_0x490a74,_0x3cbbb9,_0x173ec8,_0x1f02cc){const _0x253614=_0x3d538d;super(),this['_unitID']=_0x3ab288,this['_collabSession']=_0x490a74,this['_configService']=_0x3cbbb9,this[_0x253614(0xc6)]=_0x173ec8,this['_commandService']=_0x1f02cc,_0x19674a(this,_0x253614(0xfd),new _0x1348da['BehaviorSubject']('idle')),_0x19674a(this,'status$',this[_0x253614(0xfd)][_0x253614(0x18b)]()),_0x19674a(this,_0x253614(0xbd),!0x1),_0x19674a(this,_0x253614(0xf6),null),_0x19674a(this,'_presenter',null);}[_0x3d538d(0xf9)](){const _0x55a556=_0x3d538d;var _0x1f653d;(_0x1f653d=this[_0x55a556(0xf6)])==null||_0x1f653d[_0x55a556(0xf9)](),this[_0x55a556(0xfd)]['next'](_0x55a556(0xc0)),this[_0x55a556(0xfd)][_0x55a556(0x139)]();}[_0x3d538d(0x198)](){const _0x14bab6=_0x3d538d;return this[_0x14bab6(0x175)];}[_0x3d538d(0xb0)](){const _0x2a53b0=_0x3d538d;this[_0x2a53b0(0xbd)]||(this[_0x2a53b0(0xbd)]=!0x0,this[_0x2a53b0(0x18e)][_0x2a53b0(0x108)][_0x2a53b0(0xf0)]((0x0,_0x2a7d2c['takeUntil'])(this[_0x2a53b0(0x182)]))[_0x2a53b0(0xad)](_0x261c09=>{const _0x154c16=_0x2a53b0;switch(_0x261c09){case _0xa0d61e['SessionStatus'][_0x154c16(0x119)]:this[_0x154c16(0x10f)]();break;case _0xa0d61e[_0x154c16(0x19c)]['ONLINE']:this[_0x154c16(0x11e)]();break;default:}}),this[_0x2a53b0(0x18e)]['event$']['pipe']((0x0,_0x2a7d2c[_0x2a53b0(0x167)])(this['dispose$']))['subscribe'](_0x3c5a8c=>{const _0x50b55c=_0x2a53b0;let {eventID:_0x5523ee}=_0x3c5a8c;switch(_0x5523ee){case _0x40f0b0['CollaborationEvent'][_0x50b55c(0xf2)]:this[_0x50b55c(0xba)](_0x3c5a8c);break;case _0x40f0b0[_0x50b55c(0xe2)][_0x50b55c(0x16d)]:this[_0x50b55c(0x17f)](_0x3c5a8c);break;case _0x40f0b0['CollaborationEvent'][_0x50b55c(0x184)]:this[_0x50b55c(0xcf)]();break;case _0x40f0b0[_0x50b55c(0xe2)][_0x50b55c(0xd3)]:this[_0x50b55c(0x15d)](_0x3c5a8c);break;default:}}));}['tryStartPresenting'](){const _0x4b1f76=_0x3d538d;this[_0x4b1f76(0x18e)][_0x4b1f76(0x155)]({'eventID':_0x40f0b0['CollaborationEvent'][_0x4b1f76(0x112)],'data':{'unitID':this[_0x4b1f76(0x196)],'userID':this['_collabSession']['getMemberID']()}},this[_0x4b1f76(0x196)]);}[_0x3d538d(0x187)](){const _0x303898=_0x3d538d;this['_status']===_0x303898(0xb9)&&(this[_0x303898(0xfd)][_0x303898(0x177)](_0x303898(0xc0)),this[_0x303898(0x18e)][_0x303898(0x155)]({'eventID':_0x40f0b0[_0x303898(0xe2)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x303898(0x196)]}},this[_0x303898(0x196)]));}[_0x3d538d(0x17a)](){const _0x344b21=_0x3d538d;this[_0x344b21(0x175)]===_0x344b21(0x115)&&(this['_status$'][_0x344b21(0x177)](_0x344b21(0xfe)),this[_0x344b21(0x148)]());}[_0x3d538d(0x15a)](){const _0x5023c9=_0x3d538d;this[_0x5023c9(0x175)]===_0x5023c9(0xfe)&&this['_stopFollowing']();}[_0x3d538d(0xba)](_0x401e15){const _0x3c9c35=_0x3d538d;let {presenter:_0x3ce67d}=_0x401e15['data'],_0x5b7ec2=this[_0x3c9c35(0x18e)][_0x3c9c35(0x11b)]();this['_presenter']=_0x3ce67d,_0x3ce67d===_0x5b7ec2?(this[_0x3c9c35(0x10c)](),this[_0x3c9c35(0xbb)]()):this[_0x3c9c35(0x175)]!==_0x3c9c35(0x115)&&(this['_stopPresenting'](),this[_0x3c9c35(0x148)]());}['_fetchOperations'](){const _0x12a9e5=_0x3d538d;let _0x25b9fc={'eventID':_0x40f0b0[_0x12a9e5(0xe2)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x12a9e5(0x18e)][_0x12a9e5(0x155)](_0x25b9fc,this[_0x12a9e5(0x196)]);}[_0x3d538d(0xcf)](){const _0xe05e=_0x3d538d;this[_0xe05e(0xfc)]=null,this[_0xe05e(0x175)]!==_0xe05e(0xb9)&&this['_beIdle']();}[_0x3d538d(0x15d)](_0x2ef192){const _0x5c974f=_0x3d538d;if(this[_0x5c974f(0x175)]==='following'&&this[_0x5c974f(0xfc)]===_0x2ef192[_0x5c974f(0x15b)][_0x5c974f(0xe3)]){let _0x541ddd=(0x0,_0x40f0b0[_0x5c974f(0x18f)])(_0x2ef192[_0x5c974f(0x15b)])[_0x5c974f(0x146)]['reverse']()[_0x5c974f(0x12d)](_0x9ed707=>_0x9ed707['id']===_0x3663fc['InsertSheetMutation']['id']);if(_0x541ddd){let _0x3176bc=_0x541ddd[_0x5c974f(0x122)][_0x5c974f(0x1a0)],_0x25882b=_0x541ddd[_0x5c974f(0x122)][_0x5c974f(0x144)]['id'];setTimeout(()=>{const _0x5a31c6=_0x5c974f;this[_0x5a31c6(0xe0)][_0x5a31c6(0xf3)](_0x3663fc[_0x5a31c6(0x18d)]['id'],{'unitId':_0x3176bc,'subUnitId':_0x25882b},{'fromCollab':!0x0});});}}}[_0x3d538d(0xbb)](){const _0x5e3610=_0x3d538d;var _0x2e2b00;(_0x2e2b00=this[_0x5e3610(0xf6)])==null||_0x2e2b00[_0x5e3610(0xf9)](),this['_status$'][_0x5e3610(0x177)](_0x5e3610(0xb9));let _0x59ff79=new Map(),_0x5aba87=this[_0x5e3610(0xf6)]=new _0x3d684b[(_0x5e3610(0x161))]();_0x5aba87[_0x5e3610(0x13d)]((0x0,_0x3d684b['toDisposable'])(()=>{const _0x33ae0e=_0x5e3610;_0x59ff79[_0x33ae0e(0xc8)](({subject:_0x1a12d8,subscription:_0xed2408})=>{_0xed2408['unsubscribe'](),_0x1a12d8['complete']();}),_0x59ff79[_0x33ae0e(0x15e)]();})),_0x5aba87[_0x5e3610(0x13d)](this['_commandService'][_0x5e3610(0x193)](_0x20c049=>{const _0x3d5df1=_0x5e3610;if(_0x20c049['type']!==_0x3d684b[_0x3d5df1(0x179)][_0x3d5df1(0x168)]||!this[_0x3d5df1(0xc6)][_0x3d5df1(0x199)](_0x20c049['id']))return;let {id:_0x1c6580}=_0x20c049,_0x2001c5;if(_0x59ff79['has'](_0x1c6580))_0x2001c5=_0x59ff79[_0x3d5df1(0x125)](_0x1c6580)['subject'];else{var _0xb796ba;_0x2001c5=new _0x1348da[(_0x3d5df1(0x157))]();let _0xf82b84=_0x2001c5[_0x3d5df1(0xf0)]((0x0,_0x2a7d2c[_0x3d5df1(0x140)])((_0xb796ba=this[_0x3d5df1(0x18a)][_0x3d5df1(0x194)](_0x3d5df1(0x16f)))==null?0xc8:_0xb796ba,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3d5df1(0xad)](_0xa6dd2a=>{const _0x558659=_0x3d5df1;this[_0x558659(0x18e)][_0x558659(0x155)]({'eventID':_0x40f0b0['CollaborationEvent'][_0x558659(0x16d)],'data':{'unitID':this[_0x558659(0x196)],'operations':{[_0xa6dd2a['id']]:{'id':_0xa6dd2a['id'],'params':JSON['stringify'](_0xa6dd2a[_0x558659(0x122)])}}}},this['_unitID']);});_0x59ff79[_0x3d5df1(0x136)](_0x1c6580,{'subject':_0x2001c5,'subscription':_0xf82b84});}_0x2001c5[_0x3d5df1(0x177)](_0x20c049);})),this[_0x5e3610(0xc6)][_0x5e3610(0x154)](this[_0x5e3610(0x196)])[_0x5e3610(0xc8)](_0x29bf06=>this[_0x5e3610(0x18e)]['send']({'eventID':_0x40f0b0[_0x5e3610(0xe2)][_0x5e3610(0x16d)],'data':{'unitID':this[_0x5e3610(0x196)],'operations':{[_0x29bf06['id']]:{'id':_0x29bf06['id'],'params':JSON[_0x5e3610(0x13a)](_0x29bf06[_0x5e3610(0x122)])}}}},this[_0x5e3610(0x196)]));}[_0x3d538d(0x105)](){const _0x48df35=_0x3d538d;var _0x1637ff;this[_0x48df35(0xfd)][_0x48df35(0x177)](_0x48df35(0xc0)),(_0x1637ff=this['_commandDisposable'])==null||_0x1637ff['dispose'](),this[_0x48df35(0xf6)]=null;}[_0x3d538d(0x148)](){const _0x58fdc7=_0x3d538d;var _0x242fc5;(_0x242fc5=this['_commandDisposable'])==null||_0x242fc5[_0x58fdc7(0xf9)](),this[_0x58fdc7(0xfd)][_0x58fdc7(0x177)](_0x58fdc7(0xfe));}[_0x3d538d(0xe6)](){const _0x422fba=_0x3d538d;var _0x32c334;this['_status$'][_0x422fba(0x177)](_0x422fba(0xc0)),(_0x32c334=this[_0x422fba(0xf6)])==null||_0x32c334[_0x422fba(0xf9)](),this['_commandDisposable']=null;}[_0x3d538d(0x10c)](){const _0x4d650e=_0x3d538d;var _0x1bfda4;this['_status$']['next']('not-following'),(_0x1bfda4=this[_0x4d650e(0xf6)])==null||_0x1bfda4[_0x4d650e(0xf9)]();}[_0x3d538d(0x17f)](_0x2721df){const _0xf5fe18=_0x3d538d;if([_0xf5fe18(0xb9),_0xf5fe18(0x115),_0xf5fe18(0x102)]['includes'](this[_0xf5fe18(0x175)])||!_0x2721df[_0xf5fe18(0x15b)][_0xf5fe18(0x173)]||_0x2721df[_0xf5fe18(0x15b)][_0xf5fe18(0x173)]===this[_0xf5fe18(0x18e)]['getMemberID']())return;this[_0xf5fe18(0x175)]===_0xf5fe18(0xc0)&&this[_0xf5fe18(0x148)]();let _0xf9c1a3=_0x2721df[_0xf5fe18(0x15b)][_0xf5fe18(0x114)];Object[_0xf5fe18(0xae)](_0xf9c1a3)['forEach'](_0xaba3b=>{const _0x218397=_0xf5fe18;this[_0x218397(0xe0)]['executeCommand'](_0xaba3b['id'],_0xaba3b['params']?JSON['parse'](_0xaba3b[_0x218397(0x122)]):null,{'fromCollab':!0x0});});}[_0x3d538d(0x10f)](){const _0x30e862=_0x3d538d;var _0x296166;this[_0x30e862(0xfd)][_0x30e862(0x177)](_0x30e862(0x102)),(_0x296166=this['_commandDisposable'])==null||_0x296166['dispose']();}[_0x3d538d(0x11e)](){const _0x2e9336=_0x3d538d;this[_0x2e9336(0xfd)][_0x2e9336(0x177)](_0x2e9336(0xc0)),this[_0x2e9336(0x13c)]();}};_0x36ad0e=_0x3c6281([_0x513c74(0x2,_0x3d684b[_0x3d538d(0xbc)]),_0x513c74(0x3,(0x0,_0x3d684b['Inject'])(_0x1f3f2f)),_0x513c74(0x4,_0x3d684b['ICommandService'])],_0x36ad0e);var _0x4f6b81=_0x3d538d(0x106),_0x2ce946=_0x3d538d(0xc5);let _0x186880={},_0x372d8e=class extends _0x3d684b[_0x3d538d(0x16e)]{constructor(_0x315039){const _0x589476=_0x3d538d;super(),this[_0x589476(0xc6)]=_0x315039,this[_0x589476(0xbd)]();}[_0x3d538d(0xbd)](){const _0x3cffc6=_0x3d538d;[_0x3cd628[_0x3cffc6(0x192)]['id'],_0x3cd628[_0x3cffc6(0xfa)]['id'],_0x3663fc[_0x3cffc6(0x18d)]['id']][_0x3cffc6(0xc8)](_0x1c45fa=>{const _0x14ec03=_0x3cffc6;this[_0x14ec03(0x10b)](this[_0x14ec03(0xc6)][_0x14ec03(0x147)](_0x1c45fa));});}};_0x372d8e=_0x3c6281([_0x513c74(0x0,(0x0,_0x3d684b[_0x3d538d(0x150)])(_0x1f3f2f))],_0x372d8e);function _0x107567({ref:_0x4c6a2f,..._0x509ad3}){const _0xf9c7d2=_0x3d538d;let {icon:_0x433d11,id:_0x23a230,className:_0x22254c,extend:_0x35ed82,..._0x292d74}=_0x509ad3,_0x2ed815=('univerjs-icon\x20univerjs-icon-'+_0x23a230+'\x20'+(_0x22254c||''))[_0xf9c7d2(0xe4)](),_0x8844a2=(0x0,_0x4a871b[_0xf9c7d2(0x156)])('_'+_0x1eb182());return _0x1d7952(_0x433d11,''+_0x23a230,{'defIds':_0x433d11['defIds'],'idSuffix':_0x8844a2[_0xf9c7d2(0x14d)]},{'ref':_0x4c6a2f,'className':_0x2ed815,..._0x292d74},_0x35ed82);}function _0x1d7952(_0x5c62ab,_0x132b91,_0x375a64,_0x1bc662,_0x55ce18){const _0xa66a53=_0x3d538d;return(0x0,_0x4a871b['createElement'])(_0x5c62ab[_0xa66a53(0xfb)],{'key':_0x132b91,..._0x37adf2(_0x5c62ab,_0x375a64,_0x55ce18),..._0x1bc662},(_0x153234(_0x5c62ab,_0x375a64)[_0xa66a53(0x162)]||[])['map']((_0x560f0c,_0x427b9b)=>_0x1d7952(_0x560f0c,_0x132b91+'-'+_0x5c62ab[_0xa66a53(0xfb)]+'-'+_0x427b9b,_0x375a64,void 0x0,_0x55ce18)));}function _0x37adf2(_0x572bb6,_0x5e75d4,_0x231a07){const _0x29224e=_0x3d538d;let _0x5c13b7={..._0x572bb6['attrs']};_0x231a07!=null&&_0x231a07[_0x29224e(0xed)]&&_0x5c13b7[_0x29224e(0x19f)]===_0x29224e(0xed)&&(_0x5c13b7['fill']=_0x231a07[_0x29224e(0xed)]),_0x231a07!=null&&_0x231a07['colorChannel1']&&_0x5c13b7[_0x29224e(0x189)]==='colorChannel1'&&(_0x5c13b7[_0x29224e(0x189)]=_0x231a07['colorChannel1']),_0x572bb6[_0x29224e(0xfb)]===_0x29224e(0x10d)&&_0x5c13b7['id']&&(_0x5c13b7['id']+=_0x5e75d4[_0x29224e(0x153)]),Object[_0x29224e(0xbf)](_0x5c13b7)[_0x29224e(0xc8)](([_0x5d6fa5,_0x58120d])=>{const _0x59d68a=_0x29224e;_0x5d6fa5===_0x59d68a(0x10d)&&typeof _0x58120d==_0x59d68a(0x13e)&&(_0x5c13b7[_0x5d6fa5]=_0x58120d[_0x59d68a(0x18c)](/url\(#(.*)\)/,_0x59d68a(0xff)+_0x5e75d4[_0x59d68a(0x153)]+')'));});let {defIds:_0x55c7d3}=_0x5e75d4;return!_0x55c7d3||_0x55c7d3[_0x29224e(0x164)]===0x0?_0x5c13b7:(_0x572bb6[_0x29224e(0xfb)]===_0x29224e(0xd8)&&_0x5c13b7[_0x29224e(0x14f)]&&(_0x5c13b7[_0x29224e(0x14f)]+=_0x5e75d4[_0x29224e(0x153)]),Object[_0x29224e(0xbf)](_0x5c13b7)[_0x29224e(0xc8)](([_0x273d88,_0x91ea57])=>{const _0x38f0c1=_0x29224e;typeof _0x91ea57==_0x38f0c1(0x13e)&&(_0x5c13b7[_0x273d88]=_0x91ea57['replace'](/url\(#(.*)\)/,'url(#$1'+_0x5e75d4[_0x38f0c1(0x153)]+')'));}),_0x5c13b7);}function _0x153234(_0x159f2c,_0x26475e){const _0x19f299=_0x3d538d;var _0x595394;let {defIds:_0xa001c9}=_0x26475e;return!_0xa001c9||_0xa001c9[_0x19f299(0x164)]===0x0?_0x159f2c:_0x159f2c[_0x19f299(0xfb)]===_0x19f299(0x183)&&(_0x595394=_0x159f2c[_0x19f299(0x162)])!=null&&_0x595394[_0x19f299(0x164)]?{..._0x159f2c,'children':_0x159f2c[_0x19f299(0x162)][_0x19f299(0xd9)](_0x10b1f2=>typeof _0x10b1f2[_0x19f299(0x14e)]['id']==_0x19f299(0x13e)&&_0xa001c9&&_0xa001c9[_0x19f299(0xd5)](_0x10b1f2['attrs']['id'])?{..._0x10b1f2,'attrs':{..._0x10b1f2[_0x19f299(0x14e)],'id':_0x10b1f2[_0x19f299(0x14e)]['id']+_0x26475e['idSuffix']}}:_0x10b1f2)}:_0x159f2c;}function _0x1eb182(){const _0x2a3bd9=_0x3d538d;return Math[_0x2a3bd9(0x181)]()[_0x2a3bd9(0x14b)](0x24)[_0x2a3bd9(0x14a)](0x2,0x8);}_0x107567[_0x3d538d(0xe5)]='UniverIcon';let _0x1f2d2b={'tag':'svg','attrs':{'xmlns':_0x3d538d(0x17b),'fill':_0x3d538d(0x191),'viewBox':_0x3d538d(0x142),'width':_0x3d538d(0x176),'height':'1em'},'children':[{'tag':_0x3d538d(0x130),'attrs':{'fill':_0x3d538d(0x1a1),'d':_0x3d538d(0x185)}},{'tag':_0x3d538d(0x130),'attrs':{'fill':_0x3d538d(0x1a1),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x3d538d(0x101),'clipRule':'evenodd'}}]},_0x240f2e=(0x0,_0x4a871b[_0x3d538d(0xf5)])(function(_0x204703,_0x572c3e){const _0x1de236=_0x3d538d;return(0x0,_0x4a871b[_0x1de236(0x113)])(_0x107567,Object[_0x1de236(0x117)]({},_0x204703,{'id':_0x1de236(0x143),'ref':_0x572c3e,'icon':_0x1f2d2b}));});_0x240f2e[_0x3d538d(0xe5)]=_0x3d538d(0xf4);function _0x17b45e(){const _0x5f23b1=_0x3d538d;let _0x138aee=(0x0,_0x305bcb[_0x5f23b1(0x151)])(_0x55e1b9),_0x2403bf=(0x0,_0x305bcb[_0x5f23b1(0x151)])(_0x3d684b[_0x5f23b1(0xaf)]),_0x4919ed=(0x0,_0x305bcb[_0x5f23b1(0xde)])(()=>_0x2403bf[_0x5f23b1(0xcd)](_0x3d684b[_0x5f23b1(0xda)][_0x5f23b1(0x116)]),void 0x0,!0x1,[]),_0xc28255=(0x0,_0x305bcb['useObservable'])((0x0,_0x4a871b['useMemo'])(()=>_0x4919ed?(0x0,_0x1348da[_0x5f23b1(0x141)])(()=>(0x0,_0x1348da[_0x5f23b1(0xb8)])(_0x138aee[_0x5f23b1(0x171)](_0x4919ed['getUnitId']()))):(0x0,_0x1348da['of'])(null),[_0x4919ed,_0x138aee]),null),_0x5bf995=(0x0,_0x305bcb[_0x5f23b1(0xde)])(_0xc28255?()=>_0xc28255['status$']:null,_0x5f23b1(0xc0),!0x1,[_0xc28255]);return _0xc28255?(0x0,_0x348bf8[_0x5f23b1(0x17e)])(_0x50b419[_0x5f23b1(0x10e)],{'align':_0x5f23b1(0x104),'disabled':_0x5bf995===_0x5f23b1(0x102),'className':_0x5f23b1(0xb6),'overlay':(0x0,_0x348bf8[_0x5f23b1(0x17e)])(_0x58e3ff,{'status':_0x5bf995,'coordinator':_0xc28255}),'children':(0x0,_0x348bf8[_0x5f23b1(0x17e)])(_0x5f23b1(0xee),{'className':(0x0,_0x50b419[_0x5f23b1(0xf1)])(_0x5f23b1(0xd6),{'univer-cursor-not-allowed':_0x5bf995==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5bf995!==_0x5f23b1(0x102)}),'type':_0x5f23b1(0xee),'children':(0x0,_0x348bf8[_0x5f23b1(0x17e)])(_0x240f2e,{})})}):null;}function _0x58e3ff(_0x36dd2e){const _0x483829=_0x3d538d;let {status:_0x3b6ccb,coordinator:_0x1ccd8f}=_0x36dd2e;switch(_0x3b6ccb){case _0x483829(0xc0):return(0x0,_0x348bf8['jsx'])(_0x59e488,{'coordinator':_0x1ccd8f});case _0x483829(0xfe):return(0x0,_0x348bf8[_0x483829(0x17e)])(_0x232e3f,{'coordinator':_0x1ccd8f});case'not-following':return(0x0,_0x348bf8[_0x483829(0x17e)])(_0x256fa5,{'coordinator':_0x1ccd8f});case'offline':return(0x0,_0x348bf8[_0x483829(0x17e)])(_0x17c928,{});case _0x483829(0xb9):return(0x0,_0x348bf8[_0x483829(0x17e)])(_0x200e9,{'coordinator':_0x1ccd8f});default:return null;}}function _0x59e488(_0x12fc23){const _0x5f34ae=_0x3d538d;let {coordinator:_0x410a34}=_0x12fc23;return(0x0,_0x348bf8[_0x5f34ae(0x13f)])(_0x348bf8[_0x5f34ae(0x163)],{'children':[(0x0,_0x348bf8[_0x5f34ae(0x17e)])(_0x5f34ae(0x131),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5f34ae(0xdf)}),(0x0,_0x348bf8['jsx'])(_0x50b419['Button'],{'onClick':()=>_0x410a34[_0x5f34ae(0xd4)](),'children':_0x5f34ae(0x137)})]});}function _0x232e3f(_0x3e31e9){const _0x4da9a8=_0x3d538d;let {coordinator:_0x392f8f}=_0x3e31e9;return(0x0,_0x348bf8[_0x4da9a8(0x13f)])(_0x348bf8[_0x4da9a8(0x163)],{'children':[(0x0,_0x348bf8[_0x4da9a8(0x17e)])('div',{'className':_0x4da9a8(0x190),'children':_0x4da9a8(0x17d)}),(0x0,_0x348bf8[_0x4da9a8(0x17e)])(_0x50b419[_0x4da9a8(0x124)],{'onClick':()=>_0x392f8f[_0x4da9a8(0x15a)](),'children':_0x4da9a8(0x149)})]});}function _0x256fa5(_0x53f95d){const _0x295642=_0x3d538d;let {coordinator:_0x5aeeab}=_0x53f95d;return(0x0,_0x348bf8[_0x295642(0x13f)])(_0x348bf8[_0x295642(0x163)],{'children':[(0x0,_0x348bf8[_0x295642(0x17e)])(_0x295642(0x131),{'className':_0x295642(0x190),'children':_0x295642(0x11c)}),(0x0,_0x348bf8[_0x295642(0x17e)])(_0x50b419[_0x295642(0x124)],{'variant':_0x295642(0xf7),'onClick':()=>_0x5aeeab['startFollowing'](),'children':_0x295642(0x127)})]});}function _0x200e9(_0x17df15){const _0x13abea=_0x3d538d;let {coordinator:_0x394e1f}=_0x17df15;return(0x0,_0x348bf8[_0x13abea(0x13f)])(_0x348bf8['Fragment'],{'children':[(0x0,_0x348bf8[_0x13abea(0x17e)])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x13abea(0xc1)}),(0x0,_0x348bf8[_0x13abea(0x17e)])(_0x50b419[_0x13abea(0x124)],{'variant':_0x13abea(0x109),'onClick':()=>_0x394e1f['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x17c928(){const _0x182864=_0x3d538d;return(0x0,_0x348bf8['jsx'])(_0x348bf8[_0x182864(0x163)],{'children':_0x182864(0x133)});}let _0x46b47e=class extends _0x3d684b[_0x3d538d(0x16e)]{constructor(_0x24b419,_0x4ad46a){const _0x45059f=_0x3d538d;super(),this[_0x45059f(0xe1)]=_0x24b419,this[_0x45059f(0x118)]=_0x4ad46a,this[_0x45059f(0x126)]();}[_0x3d538d(0x126)](){const _0x8224d5=_0x3d538d;this[_0x8224d5(0x10b)](this[_0x8224d5(0x118)][_0x8224d5(0x174)](_0x305bcb[_0x8224d5(0xc3)][_0x8224d5(0x12e)],()=>(0x0,_0x305bcb[_0x8224d5(0xbe)])(_0x17b45e,this['_injector'])));}};_0x46b47e=_0x3c6281([_0x513c74(0x0,(0x0,_0x3d684b[_0x3d538d(0x150)])(_0x3d684b[_0x3d538d(0x12c)])),_0x513c74(0x1,_0x305bcb[_0x3d538d(0xea)])],_0x46b47e);let _0x491278=class extends _0x3d684b[_0x3d538d(0x120)]{constructor(_0x56be59=_0x186880,_0x13d410,_0x4ed3d9){const _0x423f25=_0x3d538d;super(),this[_0x423f25(0x11a)]=_0x56be59,this[_0x423f25(0xe1)]=_0x13d410,this[_0x423f25(0x18a)]=_0x4ed3d9;let {..._0x3720c0}=(0x0,_0x3d684b[_0x423f25(0x132)])({},_0x186880,this[_0x423f25(0x11a)]);this[_0x423f25(0x18a)]['setConfig'](_0x423f25(0x19e),_0x3720c0);}[_0x3d538d(0x19b)](){const _0x31b0bf=_0x3d538d;(0x0,_0x3d684b['registerDependencies'])(this[_0x31b0bf(0xe1)],(0x0,_0x3d684b['mergeOverrideWithDependencies'])([[_0x1f3f2f],[_0x55e1b9],[_0x372d8e],[_0x46b47e]],this[_0x31b0bf(0x11a)][_0x31b0bf(0x123)])),(0x0,_0x3d684b[_0x31b0bf(0x100)])(this[_0x31b0bf(0xe1)],[[_0x372d8e]]);}['onRendered'](){(0x0,_0x3d684b['touchDependencies'])(this['_injector'],[[_0x46b47e]]);}};_0x19674a(_0x491278,_0x3d538d(0x159),_0x3d684b[_0x3d538d(0xda)][_0x3d538d(0x107)]),_0x19674a(_0x491278,_0x3d538d(0xca),_0x3d538d(0x165)),_0x19674a(_0x491278,_0x3d538d(0xce),_0x4f6b81),_0x19674a(_0x491278,_0x3d538d(0x186),_0x2ce946),_0x491278=_0x3c6281([(0x0,_0x3d684b[_0x3d538d(0x10a)])(_0xa0d61e[_0x3d538d(0xb3)]),_0x513c74(0x1,(0x0,_0x3d684b[_0x3d538d(0x150)])(_0x3d684b[_0x3d538d(0x12c)])),_0x513c74(0x2,_0x3d684b[_0x3d538d(0xbc)])],_0x491278),Object[_0x3d538d(0x170)](_0x1bc38c,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x55e1b9;}}),_0x1bc38c['LiveShareStatus']=_0x37ee8a,Object[_0x3d538d(0x170)](_0x1bc38c,_0x3d538d(0xcb),{'enumerable':!0x0,'get':function(){return _0x491278;}});}));function _0x4bb7(){const _0x40c6aa=['_startPresenting','IConfigService','_init','connectInjector','entries','idle','You\x27re\x20presenting\x20the\x20document','toPrimitive','BuiltInUIPart','CollaborationSessionService','1.0.0-alpha.4','_liveShareService','_univerInstanceService','forEach','4MQhgRJ','pluginName','UniverLiveSharePlugin','prototype','getCurrentTypeOfUnit$','packageName','_handleTerminate','react','RxDisposable','1112640WCuaIR','NEW_CHANGESETS','tryStartPresenting','includes','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','toStringTag','use','map','UniverInstanceType','@univerjs-pro/collaboration','registerInitialStateReporter','unit','useObservable','Present\x20this\x20document','_commandService','_injector','CollaborationEvent','memberID','trim','displayName','_beIdle','4391128hHjciw','getUnitId','_startLiveShareCoordinator','IUIPartsService','constructor','exports','colorChannel1','button','getLiveShareCoordinatorSync','pipe','clsx','LIVESHARE_NEW_HOST','executeCommand','LiveShareIcon','forwardRef','_commandDisposable','text','954450DsvNxN','dispose','SetScrollOperation','tag','_presenter','_status$','following','url(#$1','touchDependencies','evenodd','offline','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','end','_stopPresenting','@univerjs-pro/live-share','UNIVER_UNKNOWN','sessionStatus$','default','DependentOn','disposeWithMe','_stopFollowing','mask','Dropdown','_handleOffline','Module','UniverProLiveShare','LIVESHARE_REQUEST_HOST','createElement','operations','not-following','UNIVER_SHEET','assign','_uiPartsService','OFFLINE','_config','getMemberID','You\x27re\x20not\x20following\x20the\x20presenter','delete','_handleOnline','createInstance','Plugin','UniverCore','params','override','Button','get','_mountLiveShare','Start\x20following','amd','React','function','1170840jhaZoI','Injector','find','HEADER_MENU','getTypeOfUnitAdded$','path','div','merge','You\x27are\x20offline.','@univerjs/ui','rxjs/operators','set','Start','_sharedOperations','complete','stringify','@univerjs-pro/collaboration-client','_fetchOperations','add','string','jsxs','throttleTime','defer','0\x200\x2017\x2017','live-share-icon','sheet','has','mutations','registerSharedOperation','_startFollowing','Stop\x20following','substring','toString','getTypeOfUnitDisposed$','current','attrs','xlink:href','Inject','useDependency','110076CBLLCf','idSuffix','getInitialStates','send','useRef','Subject','UniverProCollaboration','type','stopFollowing','data','toDisposable','_handleNewChangeSets','clear','_reporters','decorate','DisposableCollection','children','Fragment','length','UNIVER_LIVE_SHARE_PLUGIN','object','takeUntil','OPERATION','UniverUi','NOT_FOLLOWING','IDLE','6931062MQoDLK','LIVESHARE_OPERATION','Disposable','SAME_OPERATION_SHARE_INTERVAL','defineProperty','getLiveShareCoordinator','_collabSessionService','presenter','registerComponent','_status','1em','next','@univerjs/design','CommandType','startFollowing','http://www.w3.org/2000/svg','requireSession','You\x27re\x20following\x20the\x20presenter','jsx','_handleOperation','7FneSSy','random','dispose$','defs','LIVESHARE_TERMINATE','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','version','stopPresenting','symbol','stroke','_configService','asObservable','replace','SetWorksheetActiveOperation','_collabSession','parseProtocolChangeset','univer-mb-3\x20univer-w-full\x20univer-text-sm','none','SetZoomRatioOperation','onCommandExecuted','getConfig','getOwnPropertyDescriptor','_unitID','UniverSheetsUi','getStatus','shouldShareOperation','@univerjs/core','onStarting','SessionStatus','UniverDesign','live-share.config','fill','unitId','currentColor','subscribe','values','IUniverInstanceService','init','PRESENTING','_entities','UniverCollaborationClientPlugin','@univerjs/sheets','369661guMYZU','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','getValue','from','presenting','_handleNewHost'];_0x4bb7=function(){return _0x40c6aa;};return _0x4bb7();}
|
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.4",
|
|
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-ui": "1.0.0-alpha.
|
|
71
|
-
"@univerjs/
|
|
72
|
-
"@univerjs/
|
|
65
|
+
"@univerjs/icons": "1.29.0",
|
|
66
|
+
"@univerjs-pro/collaboration": "1.0.0-alpha.4",
|
|
67
|
+
"@univerjs-pro/collaboration-client": "1.0.0-alpha.4",
|
|
68
|
+
"@univerjs/core": "1.0.0-alpha.4",
|
|
69
|
+
"@univerjs/design": "1.0.0-alpha.4",
|
|
70
|
+
"@univerjs/sheets-ui": "1.0.0-alpha.4",
|
|
71
|
+
"@univerjs/sheets": "1.0.0-alpha.4",
|
|
72
|
+
"@univerjs/ui": "1.0.0-alpha.4"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"postcss": "^8.5.
|
|
75
|
+
"postcss": "^8.5.19",
|
|
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.4",
|
|
82
|
+
"@univerjs/protocol": "1.0.0-alpha.4"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
85
85
|
"test": "vitest run",
|