@univerjs-pro/live-share 0.10.13-nightly.202510290902 → 0.10.14-nightly.202511031023
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x283b0a=_0x2d12;function _0x2d12(_0x22973c,_0x49ebfe){const _0x4860cf=_0x4860();return _0x2d12=function(_0x2d1279,_0x29d589){_0x2d1279=_0x2d1279-0x1bf;let _0x257e40=_0x4860cf[_0x2d1279];return _0x257e40;},_0x2d12(_0x22973c,_0x49ebfe);}(function(_0x56b39c,_0x5dcce7){const _0x2b152f=_0x2d12,_0x1b09ab=_0x56b39c();while(!![]){try{const _0x35b53d=-parseInt(_0x2b152f(0x1c0))/0x1+-parseInt(_0x2b152f(0x1e7))/0x2+-parseInt(_0x2b152f(0x1d0))/0x3*(parseInt(_0x2b152f(0x1d8))/0x4)+-parseInt(_0x2b152f(0x1da))/0x5*(-parseInt(_0x2b152f(0x1e3))/0x6)+-parseInt(_0x2b152f(0x1dd))/0x7*(-parseInt(_0x2b152f(0x1d3))/0x8)+parseInt(_0x2b152f(0x1ca))/0x9+-parseInt(_0x2b152f(0x1c4))/0xa*(-parseInt(_0x2b152f(0x1c7))/0xb);if(_0x35b53d===_0x5dcce7)break;else _0x1b09ab['push'](_0x1b09ab['shift']());}catch(_0x7420e9){_0x1b09ab['push'](_0x1b09ab['shift']());}}}(_0x4860,0x6d329));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d['FRange']{[_0x283b0a(0x1e8)](_0x2930bf,_0x113288,_0xa47da2,_0x4caf2a,_0x417496){const _0x3618ce=_0x283b0a,_0x4b3777=_0x2930bf[_0x3618ce(0x1c5)](n[_0x3618ce(0x1c6)]),_0x3da4f6=_0x2930bf[_0x3618ce(0x1c5)](g[_0x3618ce(0x1de)]),_0xe76598=_0x113288['getUnitId'](),_0x264888=_0x113288[_0x3618ce(0x1c1)](),_0x334027=_0x4b3777[_0x3618ce(0x1c2)](_0xe76598);(_0x334027==null?void 0x0:_0x334027[_0x3618ce(0x1bf)]())!==n[_0x3618ce(0x1e6)]['PRESENTING']||(_0xa47da2[_0x3618ce(0x1e4)]()!==_0x264888[_0x3618ce(0x1e4)]()&&this[_0x3618ce(0x1d2)][_0x3618ce(0x1db)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0xe76598,'subUnitId':_0xa47da2[_0x3618ce(0x1e4)]()}),!_0x3da4f6[_0x3618ce(0x1cc)](_0xe76598))||_0x417496[_0x3618ce(0x1dc)](f[_0x3618ce(0x1d6)]['id'],{'unitId':_0x113288['getUnitId'](),'sheetId':_0xa47da2[_0x3618ce(0x1e4)](),'sheetViewStartRow':_0x4caf2a[_0x3618ce(0x1e1)],'sheetViewStartColumn':_0x4caf2a['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x283b0a(0x1cb)][_0x283b0a(0x1e2)](w);class C extends a['FUniver']{[_0x283b0a(0x1cf)](){const _0x46b679=_0x283b0a;var _0x5184cb,_0x1abb12;const _0x2b7638=this['_injector'][_0x46b679(0x1c5)](n[_0x46b679(0x1c6)]),_0x2fe471=(_0x5184cb=this[_0x46b679(0x1e0)]())==null?void 0x0:_0x5184cb[_0x46b679(0x1d9)]();if(!_0x2fe471)throw new Error(_0x46b679(0x1df));const _0x2bb329=_0x2b7638[_0x46b679(0x1c2)](_0x2fe471);return(_0x1abb12=_0x2bb329==null?void 0x0:_0x2bb329[_0x46b679(0x1bf)]())!=null?_0x1abb12:n[_0x46b679(0x1e6)][_0x46b679(0x1e5)];}[_0x283b0a(0x1c9)](){const _0x235bc9=_0x283b0a;var _0xff9774;const _0x5ed8b5=this[_0x235bc9(0x1ce)][_0x235bc9(0x1c5)](n[_0x235bc9(0x1c6)]),_0x3ee5ce=(_0xff9774=this[_0x235bc9(0x1e0)]())==null?void 0x0:_0xff9774[_0x235bc9(0x1d9)]();if(!_0x3ee5ce)throw new Error('No\x20active\x20workbook\x20found.');const _0x352f14=_0x5ed8b5['getLiveShareCoordinatorSync'](_0x3ee5ce);if(!_0x352f14)throw new Error(_0x235bc9(0x1d5));_0x352f14[_0x235bc9(0x1c9)]();}[_0x283b0a(0x1c8)](){const _0x452631=_0x283b0a;var _0x36a412;const _0x2cf4cb=this[_0x452631(0x1ce)]['get'](n[_0x452631(0x1c6)]),_0x42cf9a=(_0x36a412=this[_0x452631(0x1e0)]())==null?void 0x0:_0x36a412[_0x452631(0x1d9)]();if(!_0x42cf9a)throw new Error(_0x452631(0x1df));const _0xd66b01=_0x2cf4cb['getLiveShareCoordinatorSync'](_0x42cf9a);if(!_0xd66b01)throw new Error(_0x452631(0x1d5));_0xd66b01[_0x452631(0x1c8)]();}[_0x283b0a(0x1d4)](){const _0x3e13af=_0x283b0a;var _0x299e3d;const _0x3d379e=this[_0x3e13af(0x1ce)][_0x3e13af(0x1c5)](n[_0x3e13af(0x1c6)]),_0x3a313b=(_0x299e3d=this[_0x3e13af(0x1e0)]())==null?void 0x0:_0x299e3d[_0x3e13af(0x1d9)]();if(!_0x3a313b)throw new Error(_0x3e13af(0x1df));const _0x1f73ac=_0x3d379e['getLiveShareCoordinatorSync'](_0x3a313b);if(!_0x1f73ac)throw new Error(_0x3e13af(0x1d5));_0x1f73ac[_0x3e13af(0x1cd)]();}[_0x283b0a(0x1d1)](){const _0x6553d8=_0x283b0a;var _0x117842;const _0x541c6b=this[_0x6553d8(0x1ce)][_0x6553d8(0x1c5)](n[_0x6553d8(0x1c6)]),_0x2e7a23=(_0x117842=this['getActiveWorkbook']())==null?void 0x0:_0x117842[_0x6553d8(0x1d9)]();if(!_0x2e7a23)throw new Error(_0x6553d8(0x1df));const _0x340306=_0x541c6b[_0x6553d8(0x1c2)](_0x2e7a23);if(!_0x340306)throw new Error(_0x6553d8(0x1d5));_0x340306[_0x6553d8(0x1d1)]();}}a[_0x283b0a(0x1d7)][_0x283b0a(0x1e2)](C);class L extends a['FEnum']{get['LiveShareStatusEnum'](){const _0x5d21ce=_0x283b0a;return n[_0x5d21ce(0x1e6)];}}function _0x4860(){const _0x1df3de=['6eMZVgP','stopPresenting','_commandService','207160seZrfl','startPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','SetScrollOperation','FUniver','723484sDLTRL','getId','25xolmUG','executeCommand','syncExecuteCommand','63WISzjN','IRenderManagerService','No\x20active\x20workbook\x20found.','getActiveWorkbook','startRow','extend','242364BlHUfM','getSheetId','IDLE','LiveShareStatus','107464RtwHTP','_initialize','getStatus','602334Hcabgl','getActiveSheet','getLiveShareCoordinatorSync','FEnum','2774470QCRvzF','get','LiveShareController','22QLkJAh','stopFollowing','startFollowing','4276458nbNPnE','FRange','getRenderById','tryStartPresenting','_injector','getLiveShareStatus'];_0x4860=function(){return _0x1df3de;};return _0x4860();}a[_0x283b0a(0x1c3)][_0x283b0a(0x1e2)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x3f9ef0=_0x41cd;(function(_0x26b630,_0x2dc4dd){const _0x43877c=_0x41cd,_0x17b84c=_0x26b630();while(!![]){try{const _0x1d970c=parseInt(_0x43877c(0x135))/0x1+-parseInt(_0x43877c(0x188))/0x2+parseInt(_0x43877c(0x179))/0x3+-parseInt(_0x43877c(0x190))/0x4+-parseInt(_0x43877c(0x1a3))/0x5+-parseInt(_0x43877c(0x131))/0x6+parseInt(_0x43877c(0x158))/0x7;if(_0x1d970c===_0x2dc4dd)break;else _0x17b84c['push'](_0x17b84c['shift']());}catch(_0x380f36){_0x17b84c['push'](_0x17b84c['shift']());}}}(_0x118c,0x43629));function _0x41cd(_0x1c0f1e,_0x318581){const _0x118cc9=_0x118c();return _0x41cd=function(_0x41cd3f,_0x1fcc48){_0x41cd3f=_0x41cd3f-0x11d;let _0x23596d=_0x118cc9[_0x41cd3f];return _0x23596d;},_0x41cd(_0x1c0f1e,_0x318581);}var T=Object['defineProperty'],U=(_0x4ea5fa,_0x2ff388,_0x127c7e)=>_0x2ff388 in _0x4ea5fa?T(_0x4ea5fa,_0x2ff388,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x127c7e}):_0x4ea5fa[_0x2ff388]=_0x127c7e,_=(_0x387b01,_0x4711c6,_0x4bf803)=>U(_0x387b01,typeof _0x4711c6!=_0x3f9ef0(0x149)?_0x4711c6+'':_0x4711c6,_0x4bf803);Object[_0x3f9ef0(0x1b1)](exports,Symbol[_0x3f9ef0(0x1a2)],{'value':_0x3f9ef0(0x1ad)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x328080,..._0x1e84a9}){const _0x295526=_0x3f9ef0,{icon:_0x39b5c3,id:_0xc36f5e,className:_0x249ad7,extend:_0x4142cb,..._0x210f71}=_0x1e84a9,_0x165b2d=(_0x295526(0x1cd)+_0xc36f5e+'\x20'+(_0x249ad7||''))[_0x295526(0x1ef)](),_0x3dc11e=v[_0x295526(0x13b)]('_'+H());return j(_0x39b5c3,''+_0xc36f5e,{'defIds':_0x39b5c3[_0x295526(0x13f)],'idSuffix':_0x3dc11e['current']},{'ref':_0x328080,'className':_0x165b2d,..._0x210f71},_0x4142cb);}function j(_0x594671,_0x37e2cb,_0x3e3bab,_0x260657,_0x10ea39){const _0x45b61c=_0x3f9ef0;return v[_0x45b61c(0x136)](_0x594671[_0x45b61c(0x19b)],{'key':_0x37e2cb,...y(_0x594671,_0x3e3bab,_0x10ea39),..._0x260657},(F(_0x594671,_0x3e3bab)[_0x45b61c(0x15f)]||[])['map']((_0x32d6c9,_0x22cf90)=>j(_0x32d6c9,_0x37e2cb+'-'+_0x594671[_0x45b61c(0x19b)]+'-'+_0x22cf90,_0x3e3bab,void 0x0,_0x10ea39)));}function y(_0x45dfb4,_0x1824ad,_0x26f334){const _0x595b8b=_0x3f9ef0,_0x4327c9={..._0x45dfb4[_0x595b8b(0x1d8)]};_0x26f334!=null&&_0x26f334[_0x595b8b(0x14c)]&&_0x4327c9['fill']===_0x595b8b(0x14c)&&(_0x4327c9['fill']=_0x26f334[_0x595b8b(0x14c)]),_0x45dfb4['tag']===_0x595b8b(0x137)&&_0x4327c9['id']&&(_0x4327c9['id']=_0x4327c9['id']+_0x1824ad['idSuffix']),Object['entries'](_0x4327c9)[_0x595b8b(0x1e0)](([_0x15df46,_0x43cf6e])=>{const _0x3c0f2f=_0x595b8b;_0x15df46===_0x3c0f2f(0x137)&&typeof _0x43cf6e==_0x3c0f2f(0x154)&&(_0x4327c9[_0x15df46]=_0x43cf6e[_0x3c0f2f(0x1b6)](/url\(#(.*)\)/,_0x3c0f2f(0x1f2)+_0x1824ad[_0x3c0f2f(0x141)]+')'));});const {defIds:_0x23f317}=_0x1824ad;return!_0x23f317||_0x23f317[_0x595b8b(0x159)]===0x0||(_0x45dfb4[_0x595b8b(0x19b)]==='use'&&_0x4327c9[_0x595b8b(0x126)]&&(_0x4327c9[_0x595b8b(0x126)]=_0x4327c9['xlink:href']+_0x1824ad[_0x595b8b(0x141)]),Object[_0x595b8b(0x163)](_0x4327c9)[_0x595b8b(0x1e0)](([_0x4fcd72,_0x30de02])=>{const _0x34cb25=_0x595b8b;typeof _0x30de02==_0x34cb25(0x154)&&(_0x4327c9[_0x4fcd72]=_0x30de02[_0x34cb25(0x1b6)](/url\(#(.*)\)/,_0x34cb25(0x1f2)+_0x1824ad[_0x34cb25(0x141)]+')'));})),_0x4327c9;}function F(_0x3717d3,_0x85322f){const _0x24613b=_0x3f9ef0;var _0xd7d70e;const {defIds:_0x411daf}=_0x85322f;return!_0x411daf||_0x411daf['length']===0x0?_0x3717d3:_0x3717d3[_0x24613b(0x19b)]===_0x24613b(0x19d)&&((_0xd7d70e=_0x3717d3[_0x24613b(0x15f)])!=null&&_0xd7d70e['length'])?{..._0x3717d3,'children':_0x3717d3[_0x24613b(0x15f)][_0x24613b(0x14e)](_0x2cccac=>typeof _0x2cccac[_0x24613b(0x1d8)]['id']==_0x24613b(0x154)&&_0x411daf&&_0x411daf[_0x24613b(0x17d)](_0x2cccac[_0x24613b(0x1d8)]['id'])?{..._0x2cccac,'attrs':{..._0x2cccac[_0x24613b(0x1d8)],'id':_0x2cccac[_0x24613b(0x1d8)]['id']+_0x85322f[_0x24613b(0x141)]}}:_0x2cccac)}:_0x3717d3;}function H(){const _0x51210c=_0x3f9ef0;return Math[_0x51210c(0x1c5)]()['toString'](0x24)[_0x51210c(0x199)](0x2,0x8);}x['displayName']=_0x3f9ef0(0x1bb);const V={'tag':_0x3f9ef0(0x192),'attrs':{'xmlns':_0x3f9ef0(0x151),'fill':_0x3f9ef0(0x138),'viewBox':_0x3f9ef0(0x1a5),'width':'1em','height':_0x3f9ef0(0x193)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x3f9ef0(0x11e)}},{'tag':_0x3f9ef0(0x1e4),'attrs':{'fill':_0x3f9ef0(0x16f),'d':_0x3f9ef0(0x184),'fillRule':'evenodd','clipRule':_0x3f9ef0(0x1d2)}}]},R=v[_0x3f9ef0(0x1e7)](function(_0x5b4a94,_0x2d14a7){const _0x4726bf=_0x3f9ef0;return v['createElement'](x,Object[_0x4726bf(0x1bf)]({},_0x5b4a94,{'id':_0x4726bf(0x1ca),'ref':_0x2d14a7,'icon':V}));});R['displayName']=_0x3f9ef0(0x172);class E extends o[_0x3f9ef0(0x18c)]{constructor(){const _0x2b42a3=_0x3f9ef0;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x2b42a3(0x1c0),new Set());}[_0x3f9ef0(0x1d7)](_0x45fa15){const _0x42b82d=_0x3f9ef0;return this[_0x42b82d(0x171)][_0x42b82d(0x17e)](_0x45fa15),o[_0x42b82d(0x1f0)](()=>this[_0x42b82d(0x171)]['delete'](_0x45fa15));}[_0x3f9ef0(0x1dd)](_0x2d077c){const _0x31e8e4=_0x3f9ef0;return this[_0x31e8e4(0x1c0)][_0x31e8e4(0x17e)](_0x2d077c),o[_0x31e8e4(0x1f0)](()=>this[_0x31e8e4(0x1c0)][_0x31e8e4(0x16e)](_0x2d077c));}['shouldShareOperation'](_0x45ab8e){const _0x2766e6=_0x3f9ef0;return this[_0x2766e6(0x171)][_0x2766e6(0x17a)](_0x45ab8e);}[_0x3f9ef0(0x14b)](_0x2ff32b){const _0x3be564=_0x3f9ef0;return Array[_0x3be564(0x1c7)](this['_reporters'])['map'](_0x1dd30d=>_0x1dd30d(_0x2ff32b));}}var M=Object[_0x3f9ef0(0x1cb)],P=(_0x3ab9a4,_0x171558,_0x138f30,_0xe3343c)=>{const _0x4bdcd6=_0x3f9ef0;for(var _0x8d602d=_0xe3343c>0x1?void 0x0:_0xe3343c?M(_0x171558,_0x138f30):_0x171558,_0x4e0e34=_0x3ab9a4[_0x4bdcd6(0x159)]-0x1,_0x9e9d76;_0x4e0e34>=0x0;_0x4e0e34--)(_0x9e9d76=_0x3ab9a4[_0x4e0e34])&&(_0x8d602d=_0x9e9d76(_0x8d602d)||_0x8d602d);return _0x8d602d;},S=(_0x10eec0,_0xe47ee3)=>(_0x31faa7,_0x46ebcf)=>_0xe47ee3(_0x31faa7,_0x46ebcf,_0x10eec0);exports['LiveShareController']=class extends o[_0x3f9ef0(0x145)]{constructor(_0x39bc42,_0x10364c,_0x2a5d5b){const _0x3e6dc0=_0x3f9ef0;super(),_(this,_0x3e6dc0(0x139),new Map()),(this['_univerInstanceService']=_0x39bc42,this[_0x3e6dc0(0x174)]=_0x10364c,this[_0x3e6dc0(0x18e)]=_0x2a5d5b,this[_0x3e6dc0(0x1c4)]());}async[_0x3f9ef0(0x142)](_0x5e953b){const _0x25ba3e=_0x3f9ef0;return this[_0x25ba3e(0x139)][_0x25ba3e(0x17a)](_0x5e953b)||await this[_0x25ba3e(0x1e6)](_0x5e953b),this['_entities'][_0x25ba3e(0x1ea)](_0x5e953b);}['getLiveShareCoordinatorSync'](_0x1543df){const _0x39e3c4=_0x3f9ef0;var _0x5c7f52;return(_0x5c7f52=this[_0x39e3c4(0x139)][_0x39e3c4(0x1ea)](_0x1543df))!=null?_0x5c7f52:null;}[_0x3f9ef0(0x1c4)](){const _0x49587e=_0x3f9ef0;this[_0x49587e(0x1b4)]['getTypeOfUnitAdded$'](o[_0x49587e(0x1d9)][_0x49587e(0x167)])['pipe'](I[_0x49587e(0x1ab)](this['dispose$']))[_0x49587e(0x13a)](async _0x23d77c=>{const _0x2032bf=_0x49587e,_0x3d9235=_0x23d77c[_0x2032bf(0x166)]();this[_0x2032bf(0x139)][_0x2032bf(0x17a)](_0x3d9235)||this[_0x2032bf(0x1e6)](_0x3d9235);}),this[_0x49587e(0x1b4)]['getTypeOfUnitDisposed$'](o[_0x49587e(0x1d9)][_0x49587e(0x167)])[_0x49587e(0x1ee)](I['takeUntil'](this[_0x49587e(0x1be)]))['subscribe'](_0x156bdb=>{const _0xab3289=_0x49587e,_0x1aa659=_0x156bdb['getUnitId'](),_0x17e2fb=this[_0xab3289(0x139)][_0xab3289(0x1ea)](_0x1aa659);_0x17e2fb==null||_0x17e2fb[_0xab3289(0x1c1)]();});}async['_startLiveShareCoordinator'](_0x2cc52c){const _0x31cbc9=_0x3f9ef0,_0x1dd2a7=await this[_0x31cbc9(0x18e)]['requireSession'](_0x2cc52c),_0x4ceaa4=this[_0x31cbc9(0x174)][_0x31cbc9(0x1a1)](exports[_0x31cbc9(0x1db)],_0x2cc52c,_0x1dd2a7);return _0x4ceaa4[_0x31cbc9(0x1d6)](),this[_0x31cbc9(0x139)][_0x31cbc9(0x1af)](_0x2cc52c,_0x4ceaa4),_0x4ceaa4;}},exports[_0x3f9ef0(0x12a)]=P([S(0x0,o[_0x3f9ef0(0x1d3)]),S(0x1,o[_0x3f9ef0(0x1c8)](o[_0x3f9ef0(0x1aa)])),S(0x2,o[_0x3f9ef0(0x1c8)](b['CollaborationSessionService']))],exports[_0x3f9ef0(0x12a)]);var u=(_0x4f8b04=>(_0x4f8b04[_0x3f9ef0(0x18d)]='offline',_0x4f8b04[_0x3f9ef0(0x178)]='idle',_0x4f8b04[_0x3f9ef0(0x195)]=_0x3f9ef0(0x120),_0x4f8b04[_0x3f9ef0(0x150)]=_0x3f9ef0(0x168),_0x4f8b04[_0x3f9ef0(0x197)]=_0x3f9ef0(0x169),_0x4f8b04))(u||{});const k=_0x3f9ef0(0x121),q=0xc8;function _0x118c(){const _0x3deef1=['LIVESHARE_TERMINATE','string','_beIdle','LIVESHARE_OPERATION','stopPresenting','3736873zncRyT','length','useEffect','unsubscribe','ONLINE','LIVESHARE_REQUEST_HOST','univer-size-4','children','end','SetZoomRatioOperation','button','entries','override','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getUnitId','UNIVER_SHEET','not-following','presenting','jsxs','merge','stopFollowing','parse','delete','currentColor','_presenter','_sharedOperations','LiveShareIcon','clear','_injector','DesktopLiveShareController','OPERATION','operations','IDLE','1221078XBzRZS','has','Subject','_fetchOperations','includes','add','Stop\x20presenting','stringify','getCurrentTypeOfUnit$','IConfigService','getMemberID','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','offline','_status$','SessionStatus','796258LrSXNs','_handleOffline','disposeWithMe','presenter','Disposable','OFFLINE','_collabSessionService','event$','256876IdENsB','UNIVER_LIVE_SHARE_PLUGIN','svg','1em','univer-mb-3\x20univer-w-full\x20univer-text-sm','FOLLOWING','NEW_CHANGESETS','PRESENTING','_status','substring','startFollowing','tag','InsertSheetMutation','defs','onCommandExecuted','onRendered','_commandDisposable','createInstance','toStringTag','2205075UomJFu','_startFollowing','0\x200\x2017\x2017','UNIVER_UNKNOWN','UniverLiveSharePlugin','You\x27re\x20not\x20following\x20the\x20presenter','You\x27re\x20presenting\x20the\x20document','Injector','takeUntil','_handleNewChangeSets','Module','LiveShare','set','_handleTerminate','defineProperty','find','mutations','_univerInstanceService','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','replace','div','default','type','idle','UniverIcon','_configService','_handleNewHost','dispose$','assign','_reporters','dispose','useState','send','_init','random','Present\x20this\x20document','from','Inject','unitId','live-share-icon','getOwnPropertyDescriptor','live-share.config','univerjs-icon\x20univerjs-icon-','Stop\x20following','_unitID','executeCommand','Start\x20following','evenodd','IUniverInstanceService','sheet','_config','init','registerSharedOperation','attrs','UniverInstanceType','_uiPartsService','LiveShareCoordinator','_liveShareService','registerInitialStateReporter','DependentOn','You\x27re\x20following\x20the\x20presenter','forEach','parseProtocolChangeset','HEADER_MENU','asObservable','path','_handleOperation','_startLiveShareCoordinator','forwardRef','data','text','get','pluginName','LiveShareService','Start','pipe','trim','toDisposable','_collabSession','url(#$1','BuiltInUIPart','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','Fragment','following','SAME_OPERATION_SHARE_INTERVAL','_stopPresenting','useObservable','_commandService','onStarting','xlink:href','setConfig','throttleTime','jsx','LiveShareController','touchDependencies','Button','tryStartPresenting','You\x27are\x20offline.','status$','_stopFollowing','1405716WAyZKc','getConfig','DisposableCollection','useDependency','472793yTxmAB','createElement','mask','none','_entities','subscribe','useRef','params','_handleOnline','SetScrollOperation','defIds','_startPresenting','idSuffix','getLiveShareCoordinator','current','SetWorksheetActiveOperation','RxDisposable','LiveShareStatus','LIVESHARE_FETCH_OPERATIONS','reverse','symbol','next','getInitialStates','colorChannel1','CollaborationEvent','map','registerDependencies','NOT_FOLLOWING','http://www.w3.org/2000/svg','_mountLiveShare'];_0x118c=function(){return _0x3deef1;};return _0x118c();}exports[_0x3f9ef0(0x1db)]=class extends o[_0x3f9ef0(0x145)]{constructor(_0x5a1811,_0x357a7b,_0x58f72f,_0x23777c,_0x47b8ed){const _0x1bf62b=_0x3f9ef0;super(),_(this,_0x1bf62b(0x186),new O['BehaviorSubject'](_0x1bf62b(0x1ba))),_(this,_0x1bf62b(0x12f),this[_0x1bf62b(0x186)][_0x1bf62b(0x1e3)]()),_(this,_0x1bf62b(0x1c4),!0x1),_(this,_0x1bf62b(0x1a0),null),_(this,_0x1bf62b(0x170),null),(this['_unitID']=_0x5a1811,this[_0x1bf62b(0x1f1)]=_0x357a7b,this[_0x1bf62b(0x1bc)]=_0x58f72f,this[_0x1bf62b(0x1dc)]=_0x23777c,this[_0x1bf62b(0x124)]=_0x47b8ed);}get[_0x3f9ef0(0x198)](){const _0x47f250=_0x3f9ef0;return this[_0x47f250(0x186)]['getValue']();}[_0x3f9ef0(0x1c1)](){const _0x3ba9bf=_0x3f9ef0;var _0x7fb619;(_0x7fb619=this[_0x3ba9bf(0x1a0)])==null||_0x7fb619[_0x3ba9bf(0x1c1)](),this[_0x3ba9bf(0x186)][_0x3ba9bf(0x14a)](_0x3ba9bf(0x1ba)),this['_status$']['complete']();}['getStatus'](){return this['_status'];}['init'](){const _0x4cb1dc=_0x3f9ef0;this[_0x4cb1dc(0x1c4)]||(this['_init']=!0x0,this[_0x4cb1dc(0x1f1)]['sessionStatus$'][_0x4cb1dc(0x1ee)](I['takeUntil'](this[_0x4cb1dc(0x1be)]))[_0x4cb1dc(0x13a)](_0x3c08ee=>{const _0x3464f4=_0x4cb1dc;switch(_0x3c08ee){case b[_0x3464f4(0x187)]['OFFLINE']:this[_0x3464f4(0x189)]();break;case b[_0x3464f4(0x187)][_0x3464f4(0x15c)]:this[_0x3464f4(0x13d)]();break;}}),this[_0x4cb1dc(0x1f1)][_0x4cb1dc(0x18f)]['pipe'](I[_0x4cb1dc(0x1ab)](this[_0x4cb1dc(0x1be)]))[_0x4cb1dc(0x13a)](_0x54ab36=>{const _0x45b39d=_0x4cb1dc,{eventID:_0xbd4f51}=_0x54ab36;switch(_0xbd4f51){case d[_0x45b39d(0x14d)]['LIVESHARE_NEW_HOST']:this[_0x45b39d(0x1bd)](_0x54ab36);break;case d[_0x45b39d(0x14d)][_0x45b39d(0x156)]:this[_0x45b39d(0x1e5)](_0x54ab36);break;case d[_0x45b39d(0x14d)][_0x45b39d(0x153)]:this[_0x45b39d(0x1b0)]();break;case d[_0x45b39d(0x14d)][_0x45b39d(0x196)]:this[_0x45b39d(0x1ac)](_0x54ab36);break;}}));}[_0x3f9ef0(0x12d)](){const _0x14bb90=_0x3f9ef0;this[_0x14bb90(0x1f1)]['send']({'eventID':d[_0x14bb90(0x14d)][_0x14bb90(0x15d)],'data':{'unitID':this[_0x14bb90(0x1cf)],'userID':this[_0x14bb90(0x1f1)][_0x14bb90(0x183)]()}},this[_0x14bb90(0x1cf)]);}[_0x3f9ef0(0x157)](){const _0x2102c3=_0x3f9ef0;this[_0x2102c3(0x198)]===_0x2102c3(0x169)&&(this[_0x2102c3(0x186)][_0x2102c3(0x14a)](_0x2102c3(0x1ba)),this[_0x2102c3(0x1f1)][_0x2102c3(0x1c3)]({'eventID':d['CollaborationEvent'][_0x2102c3(0x153)],'data':{'unitID':this[_0x2102c3(0x1cf)]}},this[_0x2102c3(0x1cf)]));}[_0x3f9ef0(0x19a)](){const _0x2f5d4c=_0x3f9ef0;this[_0x2f5d4c(0x198)]===_0x2f5d4c(0x168)&&(this[_0x2f5d4c(0x186)]['next']('following'),this['_startFollowing']());}['stopFollowing'](){this['_status']==='following'&&this['_stopFollowing']();}[_0x3f9ef0(0x1bd)](_0x22dddc){const _0x58e4b0=_0x3f9ef0,{presenter:_0x1f172f}=_0x22dddc['data'],_0x38cfe9=this[_0x58e4b0(0x1f1)][_0x58e4b0(0x183)]();this[_0x58e4b0(0x170)]=_0x1f172f,_0x1f172f===_0x38cfe9?(this[_0x58e4b0(0x130)](),this[_0x58e4b0(0x140)]()):this[_0x58e4b0(0x198)]!==_0x58e4b0(0x168)&&(this[_0x58e4b0(0x122)](),this[_0x58e4b0(0x1a4)]());}[_0x3f9ef0(0x17c)](){const _0x3808c6=_0x3f9ef0,_0x470652={'eventID':d[_0x3808c6(0x14d)][_0x3808c6(0x147)]};this[_0x3808c6(0x1f1)][_0x3808c6(0x1c3)](_0x470652,this[_0x3808c6(0x1cf)]);}[_0x3f9ef0(0x1b0)](){const _0x3e8ed4=_0x3f9ef0;this[_0x3e8ed4(0x170)]=null,this[_0x3e8ed4(0x198)]!==_0x3e8ed4(0x169)&&this[_0x3e8ed4(0x155)]();}[_0x3f9ef0(0x1ac)](_0x43e286){const _0x4d6a6e=_0x3f9ef0;if(this[_0x4d6a6e(0x198)]===_0x4d6a6e(0x120)&&this['_presenter']===_0x43e286[_0x4d6a6e(0x1e8)]['memberID']){const _0x207a68=d[_0x4d6a6e(0x1e1)](_0x43e286[_0x4d6a6e(0x1e8)])[_0x4d6a6e(0x1b3)][_0x4d6a6e(0x148)]()[_0x4d6a6e(0x1b2)](_0x26e496=>_0x26e496['id']===C[_0x4d6a6e(0x19c)]['id']);if(_0x207a68){const _0x63103a=_0x207a68[_0x4d6a6e(0x13c)][_0x4d6a6e(0x1c9)],_0x171129=_0x207a68[_0x4d6a6e(0x13c)][_0x4d6a6e(0x1d4)]['id'];setTimeout(()=>{const _0xb99f00=_0x4d6a6e;this[_0xb99f00(0x124)][_0xb99f00(0x1d0)](C[_0xb99f00(0x144)]['id'],{'unitId':_0x63103a,'subUnitId':_0x171129},{'fromCollab':!0x0});});}}}[_0x3f9ef0(0x140)](){const _0x39c7ca=_0x3f9ef0;this[_0x39c7ca(0x186)]['next'](_0x39c7ca(0x169));const _0x5846dd=new Map(),_0x2e32c3=this[_0x39c7ca(0x1a0)]=new o[(_0x39c7ca(0x133))]();_0x2e32c3['add'](o[_0x39c7ca(0x1f0)](()=>{const _0x531552=_0x39c7ca;_0x5846dd[_0x531552(0x1e0)](_0x48b80c=>_0x48b80c['complete']()),_0x5846dd[_0x531552(0x173)]();})),_0x2e32c3['add'](this[_0x39c7ca(0x124)][_0x39c7ca(0x19e)](_0x42f625=>{const _0x7004cc=_0x39c7ca;var _0x11ef4c;if(_0x42f625[_0x7004cc(0x1b9)]!==o['CommandType'][_0x7004cc(0x176)]||!this[_0x7004cc(0x1dc)]['shouldShareOperation'](_0x42f625['id']))return;const {id:_0x515622}=_0x42f625;let _0x39a939;_0x5846dd['has'](_0x515622)?_0x39a939=_0x5846dd['get'](_0x515622):(_0x39a939=new O[(_0x7004cc(0x17b))](),_0x5846dd[_0x7004cc(0x1af)](_0x515622,_0x39a939),_0x39a939[_0x7004cc(0x1ee)](I[_0x7004cc(0x128)]((_0x11ef4c=this[_0x7004cc(0x1bc)][_0x7004cc(0x132)](k))!=null?_0x11ef4c:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x7004cc(0x13a)](_0x3a4db4=>{const _0x1b75e0=_0x7004cc;this[_0x1b75e0(0x1f1)][_0x1b75e0(0x1c3)]({'eventID':d[_0x1b75e0(0x14d)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1b75e0(0x1cf)],'operations':{[_0x3a4db4['id']]:{'id':_0x3a4db4['id'],'params':JSON['stringify'](_0x3a4db4[_0x1b75e0(0x13c)])}}}},this[_0x1b75e0(0x1cf)]);})),_0x39a939['next'](_0x42f625);})),this[_0x39c7ca(0x1dc)][_0x39c7ca(0x14b)](this[_0x39c7ca(0x1cf)])[_0x39c7ca(0x1e0)](_0x3faf6e=>this[_0x39c7ca(0x1f1)][_0x39c7ca(0x1c3)]({'eventID':d['CollaborationEvent'][_0x39c7ca(0x156)],'data':{'unitID':this[_0x39c7ca(0x1cf)],'operations':{[_0x3faf6e['id']]:{'id':_0x3faf6e['id'],'params':JSON[_0x39c7ca(0x180)](_0x3faf6e[_0x39c7ca(0x13c)])}}}},this[_0x39c7ca(0x1cf)]));}[_0x3f9ef0(0x122)](){const _0xde0960=_0x3f9ef0;var _0x55599f;this[_0xde0960(0x186)][_0xde0960(0x14a)]('idle'),(_0x55599f=this[_0xde0960(0x1a0)])==null||_0x55599f[_0xde0960(0x1c1)](),this[_0xde0960(0x1a0)]=null;}[_0x3f9ef0(0x1a4)](){const _0x3112bf=_0x3f9ef0;var _0x4966ad;(_0x4966ad=this[_0x3112bf(0x1a0)])==null||_0x4966ad[_0x3112bf(0x1c1)](),this[_0x3112bf(0x186)]['next']('following');}['_beIdle'](){const _0x3b2951=_0x3f9ef0;var _0x536881;this[_0x3b2951(0x186)][_0x3b2951(0x14a)](_0x3b2951(0x1ba)),(_0x536881=this['_commandDisposable'])==null||_0x536881['dispose'](),this[_0x3b2951(0x1a0)]=null;}['_stopFollowing'](){const _0x27112a=_0x3f9ef0;var _0x495cc8;this['_status$']['next'](_0x27112a(0x168)),(_0x495cc8=this[_0x27112a(0x1a0)])==null||_0x495cc8[_0x27112a(0x1c1)]();}['_handleOperation'](_0x3c4fc1){const _0x5e3265=_0x3f9ef0;if([_0x5e3265(0x169),_0x5e3265(0x168),_0x5e3265(0x185)][_0x5e3265(0x17d)](this['_status'])||!_0x3c4fc1['data'][_0x5e3265(0x18b)]||_0x3c4fc1[_0x5e3265(0x1e8)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x5e3265(0x198)]===_0x5e3265(0x1ba)&&this['_startFollowing']();const _0x29c7e1=_0x3c4fc1[_0x5e3265(0x1e8)][_0x5e3265(0x177)];Object['values'](_0x29c7e1)[_0x5e3265(0x1e0)](_0x5f2d50=>{const _0x78e2c7=_0x5e3265;this[_0x78e2c7(0x124)]['executeCommand'](_0x5f2d50['id'],_0x5f2d50[_0x78e2c7(0x13c)]?JSON[_0x78e2c7(0x16d)](_0x5f2d50[_0x78e2c7(0x13c)]):null,{'fromCollab':!0x0});});}[_0x3f9ef0(0x189)](){const _0x40d67b=_0x3f9ef0;var _0x52eb8b;this['_status$'][_0x40d67b(0x14a)](_0x40d67b(0x185)),(_0x52eb8b=this[_0x40d67b(0x1a0)])==null||_0x52eb8b[_0x40d67b(0x1c1)]();}[_0x3f9ef0(0x13d)](){const _0x587d67=_0x3f9ef0;this['_status$'][_0x587d67(0x14a)]('idle'),this[_0x587d67(0x17c)]();}},exports[_0x3f9ef0(0x1db)]=P([S(0x2,o[_0x3f9ef0(0x182)]),S(0x3,o[_0x3f9ef0(0x1c8)](E)),S(0x4,o['ICommandService'])],exports[_0x3f9ef0(0x1db)]);function $(){const _0x2304c4=_0x3f9ef0,_0x5b4e2d=p[_0x2304c4(0x134)](exports[_0x2304c4(0x12a)]),_0x2876ee=p[_0x2304c4(0x134)](o[_0x2304c4(0x1d3)]),_0x47a89d=p[_0x2304c4(0x123)](()=>_0x2876ee[_0x2304c4(0x181)](o[_0x2304c4(0x1d9)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x265346,_0x30a775]=v[_0x2304c4(0x1c2)](null),[_0x178fa0,_0x4cf485]=v[_0x2304c4(0x1c2)](u[_0x2304c4(0x178)]),_0x2c9e2b=v[_0x2304c4(0x13b)](null);return v[_0x2304c4(0x15a)](()=>(_0x47a89d&&_0x5b4e2d[_0x2304c4(0x142)](_0x47a89d[_0x2304c4(0x166)]())['then'](_0x570dd9=>{const _0x1fbdd2=_0x2304c4;_0x30a775(_0x570dd9),_0x2c9e2b[_0x1fbdd2(0x143)]=_0x570dd9['status$'][_0x1fbdd2(0x13a)](_0x2faae3=>{_0x4cf485(_0x2faae3);});}),()=>{const _0xb1b241=_0x2304c4;var _0x19bd5a;(_0x19bd5a=_0x2c9e2b[_0xb1b241(0x143)])==null||_0x19bd5a[_0xb1b241(0x15b)](),_0x2c9e2b['current']=null;}),[_0x47a89d,_0x5b4e2d]),_0x265346?l[_0x2304c4(0x129)](f['Dropdown'],{'align':_0x2304c4(0x160),'disabled':_0x178fa0===u[_0x2304c4(0x18d)],'className':_0x2304c4(0x1b5),'overlay':l[_0x2304c4(0x129)](W,{'status':_0x178fa0,'coordinator':_0x265346}),'children':l[_0x2304c4(0x129)](_0x2304c4(0x162),{'className':f['clsx'](_0x2304c4(0x165),{'univer-cursor-not-allowed':_0x178fa0===u[_0x2304c4(0x18d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x178fa0!==u['OFFLINE']}),'type':'button','children':l[_0x2304c4(0x129)](R,{'className':_0x2304c4(0x15e)})})}):null;}function W(_0x5d3478){const _0x3dc847=_0x3f9ef0,{status:_0xffb788,coordinator:_0x5bab2f}=_0x5d3478;switch(_0xffb788){case u['IDLE']:return l[_0x3dc847(0x129)](G,{'coordinator':_0x5bab2f});case u[_0x3dc847(0x195)]:return l[_0x3dc847(0x129)](B,{'coordinator':_0x5bab2f});case u[_0x3dc847(0x150)]:return l[_0x3dc847(0x129)](Y,{'coordinator':_0x5bab2f});case u[_0x3dc847(0x18d)]:return l[_0x3dc847(0x129)](J,{});case u[_0x3dc847(0x197)]:return l[_0x3dc847(0x129)](Z,{'coordinator':_0x5bab2f});default:return null;}}function G(_0xcce522){const _0x37ca9c=_0x3f9ef0,{coordinator:_0xb6990e}=_0xcce522;return l[_0x37ca9c(0x16a)](l[_0x37ca9c(0x11f)],{'children':[l[_0x37ca9c(0x129)](_0x37ca9c(0x1b7),{'className':_0x37ca9c(0x194),'children':_0x37ca9c(0x1c6)}),l[_0x37ca9c(0x129)](f['Button'],{'onClick':()=>_0xb6990e['tryStartPresenting'](),'children':_0x37ca9c(0x1ed)})]});}function B(_0x1200d7){const _0x43cd7c=_0x3f9ef0,{coordinator:_0x3edf3f}=_0x1200d7;return l['jsxs'](l[_0x43cd7c(0x11f)],{'children':[l[_0x43cd7c(0x129)](_0x43cd7c(0x1b7),{'className':_0x43cd7c(0x194),'children':_0x43cd7c(0x1df)}),l[_0x43cd7c(0x129)](f['Button'],{'onClick':()=>_0x3edf3f[_0x43cd7c(0x16c)](),'children':_0x43cd7c(0x1ce)})]});}function Y(_0x2b5222){const _0x1cbe99=_0x3f9ef0,{coordinator:_0xfc5a52}=_0x2b5222;return l[_0x1cbe99(0x16a)](l[_0x1cbe99(0x11f)],{'children':[l[_0x1cbe99(0x129)](_0x1cbe99(0x1b7),{'className':_0x1cbe99(0x194),'children':_0x1cbe99(0x1a8)}),l[_0x1cbe99(0x129)](f['Button'],{'variant':_0x1cbe99(0x1e9),'onClick':()=>_0xfc5a52[_0x1cbe99(0x19a)](),'children':_0x1cbe99(0x1d1)})]});}function Z(_0x59d58f){const _0x266f83=_0x3f9ef0,{coordinator:_0x1663a1}=_0x59d58f;return l[_0x266f83(0x16a)](l[_0x266f83(0x11f)],{'children':[l['jsx'](_0x266f83(0x1b7),{'className':_0x266f83(0x194),'children':_0x266f83(0x1a9)}),l[_0x266f83(0x129)](f[_0x266f83(0x12c)],{'variant':_0x266f83(0x1b8),'onClick':()=>_0x1663a1['stopPresenting'](),'children':_0x266f83(0x17f)})]});}function J(){const _0x138aaf=_0x3f9ef0;return l[_0x138aaf(0x129)](l['Fragment'],{'children':_0x138aaf(0x12e)});}var K=Object[_0x3f9ef0(0x1cb)],z=(_0x43314f,_0xc08de,_0x224202,_0x1c125d)=>{const _0x1b63ed=_0x3f9ef0;for(var _0x2f8b20=_0x1c125d>0x1?void 0x0:_0x1c125d?K(_0xc08de,_0x224202):_0xc08de,_0x1d3030=_0x43314f[_0x1b63ed(0x159)]-0x1,_0x243922;_0x1d3030>=0x0;_0x1d3030--)(_0x243922=_0x43314f[_0x1d3030])&&(_0x2f8b20=_0x243922(_0x2f8b20)||_0x2f8b20);return _0x2f8b20;},L=(_0x49dc8d,_0x98dc32)=>(_0x5627b5,_0x2ccec6)=>_0x98dc32(_0x5627b5,_0x2ccec6,_0x49dc8d);exports[_0x3f9ef0(0x175)]=class extends o[_0x3f9ef0(0x18c)]{constructor(_0x4727ba,_0x5cc03a){const _0x5718e9=_0x3f9ef0;super(),this['_injector']=_0x4727ba,this[_0x5718e9(0x1da)]=_0x5cc03a,this[_0x5718e9(0x152)]();}[_0x3f9ef0(0x152)](){const _0x3bc7d4=_0x3f9ef0;this['disposeWithMe'](this[_0x3bc7d4(0x1da)]['registerComponent'](p[_0x3bc7d4(0x11d)][_0x3bc7d4(0x1e2)],()=>p['connectInjector']($,this[_0x3bc7d4(0x174)])));}},exports[_0x3f9ef0(0x175)]=z([L(0x0,o[_0x3f9ef0(0x1c8)](o[_0x3f9ef0(0x1aa)])),L(0x1,p['IUIPartsService'])],exports[_0x3f9ef0(0x175)]);const Q=_0x3f9ef0(0x1cc),w={};var X=Object[_0x3f9ef0(0x1cb)],ee=(_0x4619ed,_0x36e557,_0x2d4b21,_0x4864b7)=>{const _0x1d1c50=_0x3f9ef0;for(var _0xeef38d=_0x4864b7>0x1?void 0x0:_0x4864b7?X(_0x36e557,_0x2d4b21):_0x36e557,_0x53918c=_0x4619ed[_0x1d1c50(0x159)]-0x1,_0x4ec25b;_0x53918c>=0x0;_0x53918c--)(_0x4ec25b=_0x4619ed[_0x53918c])&&(_0xeef38d=_0x4ec25b(_0xeef38d)||_0xeef38d);return _0xeef38d;},te=(_0x5ebcbc,_0x9fd85b)=>(_0x5b1f4f,_0x59f301)=>_0x9fd85b(_0x5b1f4f,_0x59f301,_0x5ebcbc);let m=class extends o[_0x3f9ef0(0x18c)]{constructor(_0x3314af){const _0x401823=_0x3f9ef0;super(),this[_0x401823(0x1dc)]=_0x3314af,this['_init']();}[_0x3f9ef0(0x1c4)](){const _0x2a97d2=_0x3f9ef0;[D[_0x2a97d2(0x161)]['id'],D[_0x2a97d2(0x13e)]['id'],C[_0x2a97d2(0x144)]['id']][_0x2a97d2(0x1e0)](_0x23a4c3=>{const _0x5543fe=_0x2a97d2;this[_0x5543fe(0x18a)](this[_0x5543fe(0x1dc)][_0x5543fe(0x1d7)](_0x23a4c3));});}};m=ee([te(0x0,o[_0x3f9ef0(0x1c8)](E))],m);var ie=Object['defineProperty'],se=Object['getOwnPropertyDescriptor'],ne=(_0x33c6d2,_0x5088a2,_0xf88ecc)=>_0x5088a2 in _0x33c6d2?ie(_0x33c6d2,_0x5088a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf88ecc}):_0x33c6d2[_0x5088a2]=_0xf88ecc,re=(_0x41b661,_0x3224fb,_0x34c372,_0x40df9b)=>{for(var _0x330cff=_0x40df9b>0x1?void 0x0:_0x40df9b?se(_0x3224fb,_0x34c372):_0x3224fb,_0x37d4fb=_0x41b661['length']-0x1,_0x17ddfd;_0x37d4fb>=0x0;_0x37d4fb--)(_0x17ddfd=_0x41b661[_0x37d4fb])&&(_0x330cff=_0x17ddfd(_0x330cff)||_0x330cff);return _0x330cff;},N=(_0xac2ab1,_0x391199)=>(_0x56bfdc,_0x41f998)=>_0x391199(_0x56bfdc,_0x41f998,_0xac2ab1),A=(_0x38d033,_0x37da3d,_0x4a3c1c)=>ne(_0x38d033,typeof _0x37da3d!=_0x3f9ef0(0x149)?_0x37da3d+'':_0x37da3d,_0x4a3c1c);const oe=_0x3f9ef0(0x191);exports[_0x3f9ef0(0x1a7)]=class extends o['Plugin']{constructor(_0x7ea5d3=w,_0x33039b,_0x1c94fc){const _0x2c69f7=_0x3f9ef0;super(),this[_0x2c69f7(0x1d5)]=_0x7ea5d3,this[_0x2c69f7(0x174)]=_0x33039b,this['_configService']=_0x1c94fc;const {..._0x8353a8}=o[_0x2c69f7(0x16b)]({},w,this[_0x2c69f7(0x1d5)]);this[_0x2c69f7(0x1bc)][_0x2c69f7(0x127)](Q,_0x8353a8);}[_0x3f9ef0(0x125)](){const _0x295a53=_0x3f9ef0;o[_0x295a53(0x14f)](this[_0x295a53(0x174)],o['mergeOverrideWithDependencies']([[E],[exports[_0x295a53(0x12a)]],[m],[exports[_0x295a53(0x175)]]],this[_0x295a53(0x1d5)][_0x295a53(0x164)])),o[_0x295a53(0x12b)](this['_injector'],[[m]]);}[_0x3f9ef0(0x19f)](){const _0x19aaf1=_0x3f9ef0;o[_0x19aaf1(0x12b)](this[_0x19aaf1(0x174)],[[exports[_0x19aaf1(0x175)]]]);}},A(exports[_0x3f9ef0(0x1a7)],_0x3f9ef0(0x1b9),o['UniverInstanceType'][_0x3f9ef0(0x1a6)]),A(exports['UniverLiveSharePlugin'],_0x3f9ef0(0x1eb),oe),exports[_0x3f9ef0(0x1a7)]=re([o[_0x3f9ef0(0x1de)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x3f9ef0(0x1c8)](o[_0x3f9ef0(0x1aa)])),N(0x2,o[_0x3f9ef0(0x182)])],exports['UniverLiveSharePlugin']),exports[_0x3f9ef0(0x1ae)]=$,exports[_0x3f9ef0(0x1ec)]=E,exports[_0x3f9ef0(0x146)]=u;
|
|
1
|
+
'use strict';const _0x541539=_0x2f85;(function(_0x24724b,_0x5c1c30){const _0x1e9b19=_0x2f85,_0x57efdf=_0x24724b();while(!![]){try{const _0x30bbd0=parseInt(_0x1e9b19(0x180))/0x1+-parseInt(_0x1e9b19(0x103))/0x2+-parseInt(_0x1e9b19(0xdf))/0x3+-parseInt(_0x1e9b19(0x16a))/0x4+-parseInt(_0x1e9b19(0xe2))/0x5*(-parseInt(_0x1e9b19(0x197))/0x6)+parseInt(_0x1e9b19(0x135))/0x7*(-parseInt(_0x1e9b19(0x181))/0x8)+parseInt(_0x1e9b19(0x122))/0x9;if(_0x30bbd0===_0x5c1c30)break;else _0x57efdf['push'](_0x57efdf['shift']());}catch(_0x351792){_0x57efdf['push'](_0x57efdf['shift']());}}}(_0x32a3,0x526a8));var T=Object[_0x541539(0x149)],U=(_0x578a3a,_0x162c77,_0x3bb6df)=>_0x162c77 in _0x578a3a?T(_0x578a3a,_0x162c77,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bb6df}):_0x578a3a[_0x162c77]=_0x3bb6df,_=(_0x5518d4,_0x4f8bcf,_0x13cc85)=>U(_0x5518d4,typeof _0x4f8bcf!=_0x541539(0xfa)?_0x4f8bcf+'':_0x4f8bcf,_0x13cc85);Object[_0x541539(0x149)](exports,Symbol[_0x541539(0x179)],{'value':_0x541539(0xf3)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0xf043ee,..._0x2f2dd2}){const _0x19dc80=_0x541539,{icon:_0x20b89f,id:_0x540e99,className:_0x9fcf2f,extend:_0x403878,..._0x5c4037}=_0x2f2dd2,_0x1edcba=(_0x19dc80(0x110)+_0x540e99+'\x20'+(_0x9fcf2f||''))[_0x19dc80(0xf0)](),_0x523a81=v[_0x19dc80(0xff)]('_'+H());return j(_0x20b89f,''+_0x540e99,{'defIds':_0x20b89f[_0x19dc80(0x11a)],'idSuffix':_0x523a81['current']},{'ref':_0xf043ee,'className':_0x1edcba,..._0x5c4037},_0x403878);}function j(_0x457e76,_0x191bd1,_0x100579,_0x82fa0e,_0x4be679){const _0x5424fe=_0x541539;return v[_0x5424fe(0xed)](_0x457e76[_0x5424fe(0x1af)],{'key':_0x191bd1,...y(_0x457e76,_0x100579,_0x4be679),..._0x82fa0e},(F(_0x457e76,_0x100579)['children']||[])['map']((_0x424bc9,_0x3b0e2e)=>j(_0x424bc9,_0x191bd1+'-'+_0x457e76['tag']+'-'+_0x3b0e2e,_0x100579,void 0x0,_0x4be679)));}function y(_0x224550,_0xb0e3c6,_0x5adea0){const _0x333e73=_0x541539,_0x358ff2={..._0x224550[_0x333e73(0x16e)]};_0x5adea0!=null&&_0x5adea0[_0x333e73(0x1aa)]&&_0x358ff2[_0x333e73(0x12a)]===_0x333e73(0x1aa)&&(_0x358ff2[_0x333e73(0x12a)]=_0x5adea0[_0x333e73(0x1aa)]),_0x224550[_0x333e73(0x1af)]==='mask'&&_0x358ff2['id']&&(_0x358ff2['id']=_0x358ff2['id']+_0xb0e3c6[_0x333e73(0x133)]),Object[_0x333e73(0x163)](_0x358ff2)[_0x333e73(0x17e)](([_0x5d6781,_0x421b8b])=>{const _0x278cd3=_0x333e73;_0x5d6781===_0x278cd3(0x174)&&typeof _0x421b8b==_0x278cd3(0x127)&&(_0x358ff2[_0x5d6781]=_0x421b8b[_0x278cd3(0x13d)](/url\(#(.*)\)/,_0x278cd3(0x14a)+_0xb0e3c6[_0x278cd3(0x133)]+')'));});const {defIds:_0xb19e4d}=_0xb0e3c6;return!_0xb19e4d||_0xb19e4d[_0x333e73(0xfd)]===0x0||(_0x224550['tag']===_0x333e73(0xeb)&&_0x358ff2[_0x333e73(0x14f)]&&(_0x358ff2[_0x333e73(0x14f)]=_0x358ff2['xlink:href']+_0xb0e3c6[_0x333e73(0x133)]),Object[_0x333e73(0x163)](_0x358ff2)['forEach'](([_0x2cdf13,_0x25472c])=>{const _0x20937b=_0x333e73;typeof _0x25472c==_0x20937b(0x127)&&(_0x358ff2[_0x2cdf13]=_0x25472c['replace'](/url\(#(.*)\)/,'url(#$1'+_0xb0e3c6[_0x20937b(0x133)]+')'));})),_0x358ff2;}function F(_0xecbecf,_0x561e03){const _0x4baec9=_0x541539;var _0x3232e5;const {defIds:_0x1dfb0e}=_0x561e03;return!_0x1dfb0e||_0x1dfb0e[_0x4baec9(0xfd)]===0x0?_0xecbecf:_0xecbecf['tag']==='defs'&&((_0x3232e5=_0xecbecf[_0x4baec9(0x107)])!=null&&_0x3232e5[_0x4baec9(0xfd)])?{..._0xecbecf,'children':_0xecbecf[_0x4baec9(0x107)][_0x4baec9(0x117)](_0x48b560=>typeof _0x48b560['attrs']['id']==_0x4baec9(0x127)&&_0x1dfb0e&&_0x1dfb0e['includes'](_0x48b560[_0x4baec9(0x16e)]['id'])?{..._0x48b560,'attrs':{..._0x48b560[_0x4baec9(0x16e)],'id':_0x48b560['attrs']['id']+_0x561e03[_0x4baec9(0x133)]}}:_0x48b560)}:_0xecbecf;}function H(){const _0x4fae07=_0x541539;return Math[_0x4fae07(0x18d)]()[_0x4fae07(0x141)](0x24)[_0x4fae07(0x13b)](0x2,0x8);}x[_0x541539(0x128)]=_0x541539(0x193);const V={'tag':'svg','attrs':{'xmlns':_0x541539(0x126),'fill':'none','viewBox':_0x541539(0x112),'width':_0x541539(0x19a),'height':_0x541539(0x19a)},'children':[{'tag':_0x541539(0xfe),'attrs':{'fill':_0x541539(0x164),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x541539(0x145),'fillRule':_0x541539(0x10f),'clipRule':_0x541539(0x10f)}}]},R=v[_0x541539(0x14b)](function(_0x50855e,_0x415d45){const _0x292d76=_0x541539;return v['createElement'](x,Object['assign']({},_0x50855e,{'id':_0x292d76(0x177),'ref':_0x415d45,'icon':V}));});R['displayName']=_0x541539(0x15a);class E extends o[_0x541539(0xe8)]{constructor(){const _0x506e84=_0x541539;super(...arguments),_(this,_0x506e84(0xe5),new Set()),_(this,'_reporters',new Set());}[_0x541539(0x148)](_0x167bc9){const _0x7f5e26=_0x541539;return this[_0x7f5e26(0xe5)]['add'](_0x167bc9),o[_0x7f5e26(0x171)](()=>this[_0x7f5e26(0xe5)][_0x7f5e26(0x19f)](_0x167bc9));}[_0x541539(0x168)](_0x508c88){const _0xe0df7e=_0x541539;return this['_reporters'][_0xe0df7e(0x16c)](_0x508c88),o['toDisposable'](()=>this[_0xe0df7e(0x147)]['delete'](_0x508c88));}[_0x541539(0x10e)](_0x148058){const _0x1ec137=_0x541539;return this[_0x1ec137(0xe5)][_0x1ec137(0x14d)](_0x148058);}['getInitialStates'](_0x5ad004){const _0x320c57=_0x541539;return Array[_0x320c57(0x1a8)](this['_reporters'])[_0x320c57(0x117)](_0x446173=>_0x446173(_0x5ad004));}}function _0x32a3(){const _0xc5d7ef=['map','offline','disposeWithMe','defIds','operations','_injector','executeCommand','createInstance','LiveShareController','RxDisposable','get','11690955QgRoVM','asObservable','Fragment','parseProtocolChangeset','http://www.w3.org/2000/svg','string','displayName','_status$','fill','_stopFollowing','merge','dispose','unitId','_handleTerminate','useObservable','useDependency','status$','idSuffix','connectInjector','2310DgtaCg','current','getInitialStates','OFFLINE','LIVESHARE_NEW_HOST','DesktopLiveShareController','substring','reverse','replace','_uiPartsService','LIVESHARE_FETCH_OPERATIONS','clsx','toString','_commandService','NOT_FOLLOWING','_unitID','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','Stop\x20presenting','_reporters','registerSharedOperation','defineProperty','url(#$1','forwardRef','IUniverInstanceService','has','default','xlink:href','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_TERMINATE','Start','unsubscribe','live-share.config','_collabSession','_beIdle','button','_configService','useState','LiveShareIcon','You\x27re\x20following\x20the\x20presenter','not-following','InsertSheetMutation','UNIVER_SHEET','init','params','Inject','find','entries','currentColor','CollaborationEvent','parse','NEW_CHANGESETS','registerInitialStateReporter','idle','1176680ftTCQR','_startPresenting','add','Plugin','attrs','following','_mountLiveShare','toDisposable','SetWorksheetActiveOperation','data','mask','takeUntil','BuiltInUIPart','live-share-icon','values','toStringTag','override','end','LiveShareStatus','_handleOnline','forEach','mutations','633937PVmGwk','10296fnYtar','CommandType','DependentOn','You\x27re\x20not\x20following\x20the\x20presenter','ONLINE','SessionStatus','onStarting','registerDependencies','LiveShareCoordinator','LiveShareService','getOwnPropertyDescriptor','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','random','stopPresenting','touchDependencies','next','UniverLiveSharePlugin','getValue','UniverIcon','getMemberID','LiveShare','_config','6ctHzxX','_univerInstanceService','_entities','1em','LIVESHARE_OPERATION','type','clear','_liveShareService','delete','requireSession','div','then','Stop\x20following','ICommandService','pipe','_handleOperation','Button','from','getLiveShareCoordinator','colorChannel1','_collabSessionService','HEADER_MENU','send','Subject','tag','UNIVER_LIVE_SHARE_PLUGIN','1032288IOjXlo','UniverInstanceType','getUnitId','158265XzWBWg','stringify','Dropdown','_sharedOperations','Injector','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Disposable','_init','IDLE','use','_handleNewHost','createElement','_fetchOperations','_startFollowing','trim','CollaborationSessionService','stopFollowing','Module','sessionStatus$','_status','setConfig','onRendered','_presenter','IConfigService','symbol','univer-size-4','_handleOffline','length','path','useRef','_handleNewChangeSets','presenting','subscribe','1128066XtoDRN','set','DisposableCollection','jsx','children','mergeOverrideWithDependencies','startFollowing','_commandDisposable','complete','presenter','getStatus','shouldShareOperation','evenodd','univerjs-icon\x20univerjs-icon-','getLiveShareCoordinatorSync','0\x200\x2017\x2017','OPERATION','_startLiveShareCoordinator','FOLLOWING','PRESENTING'];_0x32a3=function(){return _0xc5d7ef;};return _0x32a3();}var M=Object[_0x541539(0x18b)],P=(_0x4bc447,_0x54b2e3,_0x2626d5,_0x23b7c7)=>{const _0x51ecc3=_0x541539;for(var _0x57059a=_0x23b7c7>0x1?void 0x0:_0x23b7c7?M(_0x54b2e3,_0x2626d5):_0x54b2e3,_0xa927d=_0x4bc447[_0x51ecc3(0xfd)]-0x1,_0x2e88f3;_0xa927d>=0x0;_0xa927d--)(_0x2e88f3=_0x4bc447[_0xa927d])&&(_0x57059a=_0x2e88f3(_0x57059a)||_0x57059a);return _0x57059a;},S=(_0x5dd6b5,_0x259c1c)=>(_0x7c4b41,_0x326b56)=>_0x259c1c(_0x7c4b41,_0x326b56,_0x5dd6b5);exports[_0x541539(0x11f)]=class extends o[_0x541539(0x120)]{constructor(_0x2db0c4,_0x4ca0b6,_0x40c855){const _0x4f8644=_0x541539;super(),_(this,_0x4f8644(0x199),new Map()),(this['_univerInstanceService']=_0x2db0c4,this[_0x4f8644(0x11c)]=_0x4ca0b6,this['_collabSessionService']=_0x40c855,this[_0x4f8644(0xe9)]());}async[_0x541539(0x1a9)](_0x533346){const _0x122192=_0x541539;return this[_0x122192(0x199)][_0x122192(0x14d)](_0x533346)||await this['_startLiveShareCoordinator'](_0x533346),this[_0x122192(0x199)][_0x122192(0x121)](_0x533346);}[_0x541539(0x111)](_0x1e90de){const _0x4595fb=_0x541539;var _0x3565c9;return(_0x3565c9=this[_0x4595fb(0x199)][_0x4595fb(0x121)](_0x1e90de))!=null?_0x3565c9:null;}[_0x541539(0xe9)](){const _0x55f5d7=_0x541539;this[_0x55f5d7(0x198)]['getTypeOfUnitAdded$'](o[_0x55f5d7(0xe0)]['UNIVER_SHEET'])[_0x55f5d7(0x1a5)](I[_0x55f5d7(0x175)](this['dispose$']))[_0x55f5d7(0x102)](async _0x2f13c9=>{const _0x242b91=_0x55f5d7,_0x204d4f=_0x2f13c9[_0x242b91(0xe1)]();this[_0x242b91(0x199)][_0x242b91(0x14d)](_0x204d4f)||this[_0x242b91(0x114)](_0x204d4f);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o['UniverInstanceType']['UNIVER_SHEET'])[_0x55f5d7(0x1a5)](I[_0x55f5d7(0x175)](this['dispose$']))['subscribe'](_0x1b4690=>{const _0x468252=_0x55f5d7,_0x52d5a7=_0x1b4690[_0x468252(0xe1)](),_0x49b2a6=this[_0x468252(0x199)][_0x468252(0x121)](_0x52d5a7);_0x49b2a6==null||_0x49b2a6[_0x468252(0x12d)]();});}async[_0x541539(0x114)](_0x9501cc){const _0x226752=_0x541539,_0x265d53=await this[_0x226752(0x1ab)][_0x226752(0x1a0)](_0x9501cc),_0x583407=this[_0x226752(0x11c)][_0x226752(0x11e)](exports[_0x226752(0x189)],_0x9501cc,_0x265d53);return _0x583407[_0x226752(0x15f)](),this['_entities'][_0x226752(0x104)](_0x9501cc,_0x583407),_0x583407;}},exports['LiveShareController']=P([S(0x0,o[_0x541539(0x14c)]),S(0x1,o[_0x541539(0x161)](o['Injector'])),S(0x2,o[_0x541539(0x161)](b[_0x541539(0xf1)]))],exports[_0x541539(0x11f)]);var u=(_0x1a5862=>(_0x1a5862[_0x541539(0x138)]='offline',_0x1a5862['IDLE']=_0x541539(0x169),_0x1a5862[_0x541539(0x115)]='following',_0x1a5862['NOT_FOLLOWING']=_0x541539(0x15c),_0x1a5862['PRESENTING']=_0x541539(0x101),_0x1a5862))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x541539(0x189)]=class extends o['RxDisposable']{constructor(_0xfaedc3,_0x3d576c,_0x50db49,_0x563d1b,_0x11085b){const _0x3e0380=_0x541539;super(),_(this,'_status$',new O['BehaviorSubject'](_0x3e0380(0x169))),_(this,'status$',this[_0x3e0380(0x129)][_0x3e0380(0x123)]()),_(this,_0x3e0380(0xe9),!0x1),_(this,_0x3e0380(0x10a),null),_(this,_0x3e0380(0xf8),null),(this['_unitID']=_0xfaedc3,this[_0x3e0380(0x155)]=_0x3d576c,this[_0x3e0380(0x158)]=_0x50db49,this['_liveShareService']=_0x563d1b,this[_0x3e0380(0x142)]=_0x11085b);}get[_0x541539(0xf5)](){const _0x3a9dbb=_0x541539;return this[_0x3a9dbb(0x129)][_0x3a9dbb(0x192)]();}['dispose'](){const _0x5684ba=_0x541539;var _0x2a4636;(_0x2a4636=this[_0x5684ba(0x10a)])==null||_0x2a4636[_0x5684ba(0x12d)](),this[_0x5684ba(0x129)][_0x5684ba(0x190)](_0x5684ba(0x169)),this[_0x5684ba(0x129)][_0x5684ba(0x10b)]();}[_0x541539(0x10d)](){const _0x314502=_0x541539;return this[_0x314502(0xf5)];}[_0x541539(0x15f)](){const _0x3f33d6=_0x541539;this['_init']||(this[_0x3f33d6(0xe9)]=!0x0,this['_collabSession'][_0x3f33d6(0xf4)][_0x3f33d6(0x1a5)](I[_0x3f33d6(0x175)](this['dispose$']))[_0x3f33d6(0x102)](_0x416e54=>{const _0x4eaad8=_0x3f33d6;switch(_0x416e54){case b[_0x4eaad8(0x186)]['OFFLINE']:this['_handleOffline']();break;case b[_0x4eaad8(0x186)][_0x4eaad8(0x185)]:this[_0x4eaad8(0x17d)]();break;}}),this['_collabSession']['event$']['pipe'](I[_0x3f33d6(0x175)](this['dispose$']))[_0x3f33d6(0x102)](_0x3dfb85=>{const _0x5ef6c9=_0x3f33d6,{eventID:_0x1a31f5}=_0x3dfb85;switch(_0x1a31f5){case d[_0x5ef6c9(0x165)][_0x5ef6c9(0x139)]:this[_0x5ef6c9(0xec)](_0x3dfb85);break;case d[_0x5ef6c9(0x165)][_0x5ef6c9(0x19b)]:this[_0x5ef6c9(0x1a6)](_0x3dfb85);break;case d['CollaborationEvent'][_0x5ef6c9(0x151)]:this[_0x5ef6c9(0x12f)]();break;case d[_0x5ef6c9(0x165)][_0x5ef6c9(0x167)]:this[_0x5ef6c9(0x100)](_0x3dfb85);break;}}));}['tryStartPresenting'](){const _0x2a6dd2=_0x541539;this['_collabSession']['send']({'eventID':d[_0x2a6dd2(0x165)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x2a6dd2(0x155)][_0x2a6dd2(0x194)]()}},this[_0x2a6dd2(0x144)]);}[_0x541539(0x18e)](){const _0x33e98a=_0x541539;this[_0x33e98a(0xf5)]===_0x33e98a(0x101)&&(this[_0x33e98a(0x129)][_0x33e98a(0x190)]('idle'),this[_0x33e98a(0x155)][_0x33e98a(0x1ad)]({'eventID':d[_0x33e98a(0x165)][_0x33e98a(0x151)],'data':{'unitID':this['_unitID']}},this[_0x33e98a(0x144)]));}[_0x541539(0x109)](){const _0x341164=_0x541539;this[_0x341164(0xf5)]===_0x341164(0x15c)&&(this['_status$'][_0x341164(0x190)](_0x341164(0x16f)),this[_0x341164(0xef)]());}['stopFollowing'](){this['_status']==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x40b4bb){const _0x34e12d=_0x541539,{presenter:_0x589bf0}=_0x40b4bb[_0x34e12d(0x173)],_0x4187c6=this[_0x34e12d(0x155)][_0x34e12d(0x194)]();this[_0x34e12d(0xf8)]=_0x589bf0,_0x589bf0===_0x4187c6?(this[_0x34e12d(0x12b)](),this[_0x34e12d(0x16b)]()):this[_0x34e12d(0xf5)]!==_0x34e12d(0x15c)&&(this['_stopPresenting'](),this[_0x34e12d(0xef)]());}['_fetchOperations'](){const _0x112679=_0x541539,_0x579512={'eventID':d[_0x112679(0x165)][_0x112679(0x13f)]};this[_0x112679(0x155)]['send'](_0x579512,this[_0x112679(0x144)]);}[_0x541539(0x12f)](){const _0x3d96a6=_0x541539;this[_0x3d96a6(0xf8)]=null,this[_0x3d96a6(0xf5)]!=='presenting'&&this['_beIdle']();}[_0x541539(0x100)](_0x3211e9){const _0x4ca002=_0x541539;if(this['_status']===_0x4ca002(0x16f)&&this[_0x4ca002(0xf8)]===_0x3211e9[_0x4ca002(0x173)]['memberID']){const _0xb1be98=d[_0x4ca002(0x125)](_0x3211e9['data'])[_0x4ca002(0x17f)][_0x4ca002(0x13c)]()[_0x4ca002(0x162)](_0x22193d=>_0x22193d['id']===C[_0x4ca002(0x15d)]['id']);if(_0xb1be98){const _0x59fd86=_0xb1be98[_0x4ca002(0x160)][_0x4ca002(0x12e)],_0x5d48ca=_0xb1be98[_0x4ca002(0x160)]['sheet']['id'];setTimeout(()=>{const _0x4e21a9=_0x4ca002;this[_0x4e21a9(0x142)][_0x4e21a9(0x11d)](C[_0x4e21a9(0x172)]['id'],{'unitId':_0x59fd86,'subUnitId':_0x5d48ca},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x41fc48=_0x541539;this[_0x41fc48(0x129)][_0x41fc48(0x190)](_0x41fc48(0x101));const _0x5510ed=new Map(),_0x5a8f17=this[_0x41fc48(0x10a)]=new o[(_0x41fc48(0x105))]();_0x5a8f17[_0x41fc48(0x16c)](o[_0x41fc48(0x171)](()=>{const _0x56bd4c=_0x41fc48;_0x5510ed[_0x56bd4c(0x17e)](_0x3bde46=>_0x3bde46[_0x56bd4c(0x10b)]()),_0x5510ed[_0x56bd4c(0x19d)]();})),_0x5a8f17[_0x41fc48(0x16c)](this[_0x41fc48(0x142)]['onCommandExecuted'](_0x4279fd=>{const _0xe33dd8=_0x41fc48;var _0x7655d2;if(_0x4279fd[_0xe33dd8(0x19c)]!==o[_0xe33dd8(0x182)][_0xe33dd8(0x113)]||!this[_0xe33dd8(0x19e)][_0xe33dd8(0x10e)](_0x4279fd['id']))return;const {id:_0x570ba5}=_0x4279fd;let _0x2a722a;_0x5510ed[_0xe33dd8(0x14d)](_0x570ba5)?_0x2a722a=_0x5510ed[_0xe33dd8(0x121)](_0x570ba5):(_0x2a722a=new O[(_0xe33dd8(0x1ae))](),_0x5510ed[_0xe33dd8(0x104)](_0x570ba5,_0x2a722a),_0x2a722a['pipe'](I['throttleTime']((_0x7655d2=this[_0xe33dd8(0x158)]['getConfig'](k))!=null?_0x7655d2:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xe33dd8(0x102)](_0x15bb2c=>{const _0x2ff738=_0xe33dd8;this[_0x2ff738(0x155)][_0x2ff738(0x1ad)]({'eventID':d[_0x2ff738(0x165)][_0x2ff738(0x19b)],'data':{'unitID':this[_0x2ff738(0x144)],'operations':{[_0x15bb2c['id']]:{'id':_0x15bb2c['id'],'params':JSON[_0x2ff738(0xe3)](_0x15bb2c['params'])}}}},this[_0x2ff738(0x144)]);})),_0x2a722a['next'](_0x4279fd);})),this[_0x41fc48(0x19e)][_0x41fc48(0x137)](this[_0x41fc48(0x144)])[_0x41fc48(0x17e)](_0x5308a4=>this[_0x41fc48(0x155)][_0x41fc48(0x1ad)]({'eventID':d[_0x41fc48(0x165)][_0x41fc48(0x19b)],'data':{'unitID':this[_0x41fc48(0x144)],'operations':{[_0x5308a4['id']]:{'id':_0x5308a4['id'],'params':JSON['stringify'](_0x5308a4[_0x41fc48(0x160)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x1ec2e3=_0x541539;var _0x50b990;this['_status$']['next'](_0x1ec2e3(0x169)),(_0x50b990=this[_0x1ec2e3(0x10a)])==null||_0x50b990[_0x1ec2e3(0x12d)](),this[_0x1ec2e3(0x10a)]=null;}[_0x541539(0xef)](){const _0x878f5e=_0x541539;var _0x305b74;(_0x305b74=this[_0x878f5e(0x10a)])==null||_0x305b74[_0x878f5e(0x12d)](),this[_0x878f5e(0x129)][_0x878f5e(0x190)]('following');}[_0x541539(0x156)](){const _0x32346a=_0x541539;var _0x1e9aa5;this[_0x32346a(0x129)]['next'](_0x32346a(0x169)),(_0x1e9aa5=this[_0x32346a(0x10a)])==null||_0x1e9aa5['dispose'](),this[_0x32346a(0x10a)]=null;}[_0x541539(0x12b)](){const _0x44d416=_0x541539;var _0x23fa39;this[_0x44d416(0x129)][_0x44d416(0x190)]('not-following'),(_0x23fa39=this[_0x44d416(0x10a)])==null||_0x23fa39[_0x44d416(0x12d)]();}[_0x541539(0x1a6)](_0x440207){const _0x40d6dc=_0x541539;if([_0x40d6dc(0x101),_0x40d6dc(0x15c),_0x40d6dc(0x118)]['includes'](this['_status'])||!_0x440207[_0x40d6dc(0x173)][_0x40d6dc(0x10c)]||_0x440207['data'][_0x40d6dc(0x10c)]===this['_collabSession'][_0x40d6dc(0x194)]())return;this['_status']===_0x40d6dc(0x169)&&this[_0x40d6dc(0xef)]();const _0x4f24a3=_0x440207['data'][_0x40d6dc(0x11b)];Object[_0x40d6dc(0x178)](_0x4f24a3)[_0x40d6dc(0x17e)](_0xe2fec2=>{const _0x598599=_0x40d6dc;this[_0x598599(0x142)][_0x598599(0x11d)](_0xe2fec2['id'],_0xe2fec2[_0x598599(0x160)]?JSON[_0x598599(0x166)](_0xe2fec2[_0x598599(0x160)]):null,{'fromCollab':!0x0});});}[_0x541539(0xfc)](){const _0x22a9b0=_0x541539;var _0x431e26;this[_0x22a9b0(0x129)][_0x22a9b0(0x190)]('offline'),(_0x431e26=this[_0x22a9b0(0x10a)])==null||_0x431e26[_0x22a9b0(0x12d)]();}[_0x541539(0x17d)](){const _0x35ad62=_0x541539;this[_0x35ad62(0x129)]['next'](_0x35ad62(0x169)),this[_0x35ad62(0xee)]();}},exports[_0x541539(0x189)]=P([S(0x2,o[_0x541539(0xf9)]),S(0x3,o[_0x541539(0x161)](E)),S(0x4,o[_0x541539(0x1a4)])],exports[_0x541539(0x189)]);function $(){const _0x3f4a89=_0x541539,_0x38dab3=p[_0x3f4a89(0x131)](exports[_0x3f4a89(0x11f)]),_0x360283=p[_0x3f4a89(0x131)](o[_0x3f4a89(0x14c)]),_0x57dd99=p[_0x3f4a89(0x130)](()=>_0x360283['getCurrentTypeOfUnit$'](o[_0x3f4a89(0xe0)][_0x3f4a89(0x15e)]),void 0x0,!0x1,[]),[_0x2b6596,_0x2f19f9]=v['useState'](null),[_0x168c25,_0x55598f]=v[_0x3f4a89(0x159)](u[_0x3f4a89(0xea)]),_0x4f03ba=v[_0x3f4a89(0xff)](null);return v['useEffect'](()=>(_0x57dd99&&_0x38dab3[_0x3f4a89(0x1a9)](_0x57dd99[_0x3f4a89(0xe1)]())[_0x3f4a89(0x1a2)](_0x4315c4=>{const _0x193114=_0x3f4a89;_0x2f19f9(_0x4315c4),_0x4f03ba['current']=_0x4315c4[_0x193114(0x132)]['subscribe'](_0x4b9dfa=>{_0x55598f(_0x4b9dfa);});}),()=>{const _0x2f9b5f=_0x3f4a89;var _0x504e4c;(_0x504e4c=_0x4f03ba[_0x2f9b5f(0x136)])==null||_0x504e4c[_0x2f9b5f(0x153)](),_0x4f03ba[_0x2f9b5f(0x136)]=null;}),[_0x57dd99,_0x38dab3]),_0x2b6596?l[_0x3f4a89(0x106)](f[_0x3f4a89(0xe4)],{'align':_0x3f4a89(0x17b),'disabled':_0x168c25===u[_0x3f4a89(0x138)],'className':_0x3f4a89(0x18c),'overlay':l['jsx'](W,{'status':_0x168c25,'coordinator':_0x2b6596}),'children':l['jsx'](_0x3f4a89(0x157),{'className':f[_0x3f4a89(0x140)](_0x3f4a89(0xe7),{'univer-cursor-not-allowed':_0x168c25===u[_0x3f4a89(0x138)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x168c25!==u[_0x3f4a89(0x138)]}),'type':_0x3f4a89(0x157),'children':l[_0x3f4a89(0x106)](R,{'className':_0x3f4a89(0xfb)})})}):null;}function W(_0x121bf1){const _0x20549f=_0x541539,{status:_0x236ef3,coordinator:_0x54b5be}=_0x121bf1;switch(_0x236ef3){case u[_0x20549f(0xea)]:return l[_0x20549f(0x106)](G,{'coordinator':_0x54b5be});case u[_0x20549f(0x115)]:return l[_0x20549f(0x106)](B,{'coordinator':_0x54b5be});case u[_0x20549f(0x143)]:return l['jsx'](Y,{'coordinator':_0x54b5be});case u['OFFLINE']:return l[_0x20549f(0x106)](J,{});case u[_0x20549f(0x116)]:return l['jsx'](Z,{'coordinator':_0x54b5be});default:return null;}}function G(_0x5e1d48){const _0x2fbf26=_0x541539,{coordinator:_0x48244b}=_0x5e1d48;return l['jsxs'](l['Fragment'],{'children':[l[_0x2fbf26(0x106)](_0x2fbf26(0x1a1),{'className':_0x2fbf26(0x150),'children':'Present\x20this\x20document'}),l[_0x2fbf26(0x106)](f[_0x2fbf26(0x1a7)],{'onClick':()=>_0x48244b['tryStartPresenting'](),'children':_0x2fbf26(0x152)})]});}function _0x2f85(_0x138490,_0x27389d){const _0x32a30c=_0x32a3();return _0x2f85=function(_0x2f850a,_0x2413aa){_0x2f850a=_0x2f850a-0xde;let _0x8a58d6=_0x32a30c[_0x2f850a];return _0x8a58d6;},_0x2f85(_0x138490,_0x27389d);}function B(_0x1bd32b){const _0x27fe4a=_0x541539,{coordinator:_0xf5761c}=_0x1bd32b;return l['jsxs'](l[_0x27fe4a(0x124)],{'children':[l[_0x27fe4a(0x106)](_0x27fe4a(0x1a1),{'className':_0x27fe4a(0x150),'children':_0x27fe4a(0x15b)}),l[_0x27fe4a(0x106)](f[_0x27fe4a(0x1a7)],{'onClick':()=>_0xf5761c[_0x27fe4a(0xf2)](),'children':_0x27fe4a(0x1a3)})]});}function Y(_0x45b9a2){const _0x50e176=_0x541539,{coordinator:_0x2e4000}=_0x45b9a2;return l['jsxs'](l[_0x50e176(0x124)],{'children':[l[_0x50e176(0x106)](_0x50e176(0x1a1),{'className':_0x50e176(0x150),'children':_0x50e176(0x184)}),l[_0x50e176(0x106)](f[_0x50e176(0x1a7)],{'variant':'text','onClick':()=>_0x2e4000[_0x50e176(0x109)](),'children':'Start\x20following'})]});}function Z(_0xa84544){const _0x2bd942=_0x541539,{coordinator:_0x33a50f}=_0xa84544;return l['jsxs'](l['Fragment'],{'children':[l[_0x2bd942(0x106)](_0x2bd942(0x1a1),{'className':_0x2bd942(0x150),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x2bd942(0x106)](f[_0x2bd942(0x1a7)],{'variant':_0x2bd942(0x14e),'onClick':()=>_0x33a50f[_0x2bd942(0x18e)](),'children':_0x2bd942(0x146)})]});}function J(){const _0x5f198e=_0x541539;return l[_0x5f198e(0x106)](l[_0x5f198e(0x124)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x541539(0x18b)],z=(_0x731265,_0x2d61ee,_0x4abc01,_0x3ebd91)=>{const _0x24bd9e=_0x541539;for(var _0x3de166=_0x3ebd91>0x1?void 0x0:_0x3ebd91?K(_0x2d61ee,_0x4abc01):_0x2d61ee,_0x53f64f=_0x731265[_0x24bd9e(0xfd)]-0x1,_0x48abe0;_0x53f64f>=0x0;_0x53f64f--)(_0x48abe0=_0x731265[_0x53f64f])&&(_0x3de166=_0x48abe0(_0x3de166)||_0x3de166);return _0x3de166;},L=(_0x322613,_0x526734)=>(_0x109702,_0x371d13)=>_0x526734(_0x109702,_0x371d13,_0x322613);exports[_0x541539(0x13a)]=class extends o['Disposable']{constructor(_0x20ba8a,_0x29f8e7){super(),this['_injector']=_0x20ba8a,this['_uiPartsService']=_0x29f8e7,this['_mountLiveShare']();}[_0x541539(0x170)](){const _0x179b07=_0x541539;this[_0x179b07(0x119)](this[_0x179b07(0x13e)]['registerComponent'](p[_0x179b07(0x176)][_0x179b07(0x1ac)],()=>p[_0x179b07(0x134)]($,this[_0x179b07(0x11c)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x541539(0x161)](o[_0x541539(0xe6)])),L(0x1,p['IUIPartsService'])],exports[_0x541539(0x13a)]);const Q=_0x541539(0x154),w={};var X=Object[_0x541539(0x18b)],ee=(_0x4680f1,_0x3924f4,_0x2c4f13,_0x2d23bd)=>{const _0xb39ca9=_0x541539;for(var _0x30d9d8=_0x2d23bd>0x1?void 0x0:_0x2d23bd?X(_0x3924f4,_0x2c4f13):_0x3924f4,_0x25d052=_0x4680f1[_0xb39ca9(0xfd)]-0x1,_0x23b2f9;_0x25d052>=0x0;_0x25d052--)(_0x23b2f9=_0x4680f1[_0x25d052])&&(_0x30d9d8=_0x23b2f9(_0x30d9d8)||_0x30d9d8);return _0x30d9d8;},te=(_0x315d02,_0x146605)=>(_0xf91beb,_0x53e721)=>_0x146605(_0xf91beb,_0x53e721,_0x315d02);let m=class extends o['Disposable']{constructor(_0x1e6f52){const _0x5380c6=_0x541539;super(),this[_0x5380c6(0x19e)]=_0x1e6f52,this['_init']();}[_0x541539(0xe9)](){const _0x4038cf=_0x541539;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x4038cf(0x172)]['id']][_0x4038cf(0x17e)](_0x33af7e=>{const _0x158ae3=_0x4038cf;this[_0x158ae3(0x119)](this[_0x158ae3(0x19e)][_0x158ae3(0x148)](_0x33af7e));});}};m=ee([te(0x0,o[_0x541539(0x161)](E))],m);var ie=Object[_0x541539(0x149)],se=Object['getOwnPropertyDescriptor'],ne=(_0x40f947,_0x161132,_0x2a07ce)=>_0x161132 in _0x40f947?ie(_0x40f947,_0x161132,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a07ce}):_0x40f947[_0x161132]=_0x2a07ce,re=(_0x2b667f,_0x2cac2b,_0x676ac6,_0x4ecbfb)=>{const _0x2f7a3c=_0x541539;for(var _0x44b6c5=_0x4ecbfb>0x1?void 0x0:_0x4ecbfb?se(_0x2cac2b,_0x676ac6):_0x2cac2b,_0x4e8129=_0x2b667f[_0x2f7a3c(0xfd)]-0x1,_0x4cd900;_0x4e8129>=0x0;_0x4e8129--)(_0x4cd900=_0x2b667f[_0x4e8129])&&(_0x44b6c5=_0x4cd900(_0x44b6c5)||_0x44b6c5);return _0x44b6c5;},N=(_0x511cce,_0x2b4aba)=>(_0x595473,_0x7fe477)=>_0x2b4aba(_0x595473,_0x7fe477,_0x511cce),A=(_0x3f13ab,_0x339d9c,_0x7d1690)=>ne(_0x3f13ab,typeof _0x339d9c!='symbol'?_0x339d9c+'':_0x339d9c,_0x7d1690);const oe=_0x541539(0xde);exports[_0x541539(0x191)]=class extends o[_0x541539(0x16d)]{constructor(_0x1be153=w,_0x5d2097,_0xf1fcf6){const _0x35d8bc=_0x541539;super(),this[_0x35d8bc(0x196)]=_0x1be153,this[_0x35d8bc(0x11c)]=_0x5d2097,this[_0x35d8bc(0x158)]=_0xf1fcf6;const {..._0xc0c9ba}=o[_0x35d8bc(0x12c)]({},w,this[_0x35d8bc(0x196)]);this['_configService'][_0x35d8bc(0xf6)](Q,_0xc0c9ba);}[_0x541539(0x187)](){const _0x28fc9c=_0x541539;o[_0x28fc9c(0x188)](this[_0x28fc9c(0x11c)],o[_0x28fc9c(0x108)]([[E],[exports[_0x28fc9c(0x11f)]],[m],[exports[_0x28fc9c(0x13a)]]],this[_0x28fc9c(0x196)][_0x28fc9c(0x17a)])),o[_0x28fc9c(0x18f)](this[_0x28fc9c(0x11c)],[[m]]);}[_0x541539(0xf7)](){const _0x52dee6=_0x541539;o[_0x52dee6(0x18f)](this[_0x52dee6(0x11c)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x541539(0x191)],_0x541539(0x19c),o[_0x541539(0xe0)]['UNIVER_UNKNOWN']),A(exports[_0x541539(0x191)],'pluginName',oe),exports['UniverLiveSharePlugin']=re([o[_0x541539(0x183)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x541539(0x161)](o[_0x541539(0xe6)])),N(0x2,o[_0x541539(0xf9)])],exports[_0x541539(0x191)]),exports[_0x541539(0x195)]=$,exports[_0x541539(0x18a)]=E,exports[_0x541539(0x17c)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x56d492=_0x483b;function _0x483b(_0x1fd626,_0x3402d4){const _0x477a78=_0x477a();return _0x483b=function(_0x483b35,_0x39af5e){_0x483b35=_0x483b35-0x17c;let _0x3e13c3=_0x477a78[_0x483b35];return _0x3e13c3;},_0x483b(_0x1fd626,_0x3402d4);}(function(_0x55b285,_0x38d1c5){const _0x32c1dd=_0x483b,_0x15cea1=_0x55b285();while(!![]){try{const _0x1aca66=parseInt(_0x32c1dd(0x197))/0x1+parseInt(_0x32c1dd(0x193))/0x2+-parseInt(_0x32c1dd(0x185))/0x3+parseInt(_0x32c1dd(0x18b))/0x4+-parseInt(_0x32c1dd(0x18d))/0x5+-parseInt(_0x32c1dd(0x192))/0x6+-parseInt(_0x32c1dd(0x182))/0x7;if(_0x1aca66===_0x38d1c5)break;else _0x15cea1['push'](_0x15cea1['shift']());}catch(_0x5dfc6f){_0x15cea1['push'](_0x15cea1['shift']());}}}(_0x477a,0xb06a0));import{LiveShareController as _0x4287f8,LiveShareStatus as _0x37b240}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2d3196}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x422e29}from'@univerjs/sheets';import{SetScrollOperation as _0x6b3b23}from'@univerjs/sheets-ui';import{FRange as _0x31ab95}from'@univerjs/sheets/facade';import{FUniver as _0x2acd17,FEnum as _0x54c764}from'@univerjs/core/facade';class I extends _0x31ab95{['_initialize'](_0x4c8ec7,_0x540a9f,_0x2d27e0,_0x5f3693,_0xb00048){const _0x1e6024=_0x483b,_0xcb78=_0x4c8ec7[_0x1e6024(0x17f)](_0x4287f8),_0x27e657=_0x4c8ec7[_0x1e6024(0x17f)](_0x2d3196),_0x426d03=_0x540a9f['getUnitId'](),_0xd66217=_0x540a9f[_0x1e6024(0x180)](),_0x237798=_0xcb78[_0x1e6024(0x18c)](_0x426d03);(_0x237798==null?void 0x0:_0x237798[_0x1e6024(0x18e)]())!==_0x37b240['PRESENTING']||(_0x2d27e0[_0x1e6024(0x18a)]()!==_0xd66217[_0x1e6024(0x18a)]()&&this[_0x1e6024(0x17d)]['executeCommand'](_0x422e29['id'],{'unitId':_0x426d03,'subUnitId':_0x2d27e0['getSheetId']()}),!_0x27e657[_0x1e6024(0x189)](_0x426d03))||_0xb00048[_0x1e6024(0x190)](_0x6b3b23['id'],{'unitId':_0x540a9f[_0x1e6024(0x195)](),'sheetId':_0x2d27e0[_0x1e6024(0x18a)](),'sheetViewStartRow':_0x5f3693[_0x1e6024(0x183)],'sheetViewStartColumn':_0x5f3693[_0x1e6024(0x188)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x31ab95[_0x56d492(0x17e)](I);class m extends _0x2acd17{['getLiveShareStatus'](){const _0x25a2a3=_0x56d492;var _0x180f2a,_0x5c9400;const _0x36d52f=this['_injector'][_0x25a2a3(0x17f)](_0x4287f8),_0x4cfc9b=(_0x180f2a=this[_0x25a2a3(0x186)]())==null?void 0x0:_0x180f2a['getId']();if(!_0x4cfc9b)throw new Error('No\x20active\x20workbook\x20found.');const _0x11f864=_0x36d52f['getLiveShareCoordinatorSync'](_0x4cfc9b);return(_0x5c9400=_0x11f864==null?void 0x0:_0x11f864[_0x25a2a3(0x18e)]())!=null?_0x5c9400:_0x37b240['IDLE'];}[_0x56d492(0x191)](){const _0x31bfec=_0x56d492;var _0x530c3e;const _0x7a4b61=this[_0x31bfec(0x181)][_0x31bfec(0x17f)](_0x4287f8),_0x1e48e5=(_0x530c3e=this['getActiveWorkbook']())==null?void 0x0:_0x530c3e[_0x31bfec(0x196)]();if(!_0x1e48e5)throw new Error('No\x20active\x20workbook\x20found.');const _0x527c15=_0x7a4b61[_0x31bfec(0x18c)](_0x1e48e5);if(!_0x527c15)throw new Error(_0x31bfec(0x194));_0x527c15['startFollowing']();}['stopFollowing'](){const _0x3388ff=_0x56d492;var _0x3877c1;const _0x3b667a=this['_injector'][_0x3388ff(0x17f)](_0x4287f8),_0x26263a=(_0x3877c1=this[_0x3388ff(0x186)]())==null?void 0x0:_0x3877c1[_0x3388ff(0x196)]();if(!_0x26263a)throw new Error(_0x3388ff(0x18f));const _0x4ee44b=_0x3b667a['getLiveShareCoordinatorSync'](_0x26263a);if(!_0x4ee44b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4ee44b['stopFollowing']();}[_0x56d492(0x184)](){const _0x144525=_0x56d492;var _0x4f56f5;const _0x29c7e0=this[_0x144525(0x181)]['get'](_0x4287f8),_0x274865=(_0x4f56f5=this[_0x144525(0x186)]())==null?void 0x0:_0x4f56f5[_0x144525(0x196)]();if(!_0x274865)throw new Error('No\x20active\x20workbook\x20found.');const _0x167d4b=_0x29c7e0[_0x144525(0x18c)](_0x274865);if(!_0x167d4b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x167d4b[_0x144525(0x17c)]();}[_0x56d492(0x187)](){const _0x1ee2b5=_0x56d492;var _0x157e3e;const _0x1e90dd=this['_injector'][_0x1ee2b5(0x17f)](_0x4287f8),_0x1b2294=(_0x157e3e=this['getActiveWorkbook']())==null?void 0x0:_0x157e3e[_0x1ee2b5(0x196)]();if(!_0x1b2294)throw new Error(_0x1ee2b5(0x18f));const _0x242af4=_0x1e90dd[_0x1ee2b5(0x18c)](_0x1b2294);if(!_0x242af4)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x242af4[_0x1ee2b5(0x187)]();}}_0x2acd17[_0x56d492(0x17e)](m);function _0x477a(){const _0x2f21d2=['No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getUnitId','getId','574846oTtjDT','tryStartPresenting','_commandService','extend','get','getActiveSheet','_injector','2291807CCkOCM','startRow','startPresenting','488631cqGdHh','getActiveWorkbook','stopPresenting','startColumn','getRenderById','getSheetId','4989500FWQkzo','getLiveShareCoordinatorSync','3751190iwIfJI','getStatus','No\x20active\x20workbook\x20found.','syncExecuteCommand','startFollowing','7241016DfodAc','2695446iZXFhc'];_0x477a=function(){return _0x2f21d2;};return _0x477a();}class C extends _0x54c764{get['LiveShareStatusEnum'](){return _0x37b240;}}_0x54c764['extend'](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1ff471=_0x7fae;(function(_0x67af08,_0x235412){const _0x359b7c=_0x7fae,_0x47dddf=_0x67af08();while(!![]){try{const _0x30b74c=-parseInt(_0x359b7c(0x23b))/0x1*(-parseInt(_0x359b7c(0x209))/0x2)+-parseInt(_0x359b7c(0x1c2))/0x3*(parseInt(_0x359b7c(0x1d9))/0x4)+parseInt(_0x359b7c(0x248))/0x5*(-parseInt(_0x359b7c(0x1cc))/0x6)+parseInt(_0x359b7c(0x20b))/0x7+-parseInt(_0x359b7c(0x21b))/0x8+-parseInt(_0x359b7c(0x1dd))/0x9+parseInt(_0x359b7c(0x1e9))/0xa;if(_0x30b74c===_0x235412)break;else _0x47dddf['push'](_0x47dddf['shift']());}catch(_0x41425f){_0x47dddf['push'](_0x47dddf['shift']());}}}(_0x5570,0xb8c28));var J=Object[_0x1ff471(0x240)],K=(_0x2bd2c8,_0x35c835,_0x534633)=>_0x35c835 in _0x2bd2c8?J(_0x2bd2c8,_0x35c835,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x534633}):_0x2bd2c8[_0x35c835]=_0x534633,u=(_0x48cfe1,_0xde295,_0x4bdd67)=>K(_0x48cfe1,typeof _0xde295!=_0x1ff471(0x1d4)?_0xde295+'':_0xde295,_0x4bdd67);import{Disposable as _0x5efc82,toDisposable as _0x40b029,IUniverInstanceService as _0x407f4a,Inject as _0x530cef,Injector as _0x342037,IConfigService as _0x495339,ICommandService as _0x244e30,RxDisposable as _0x27b7ba,UniverInstanceType as _0x391209,DisposableCollection as _0x4ea11a,CommandType as _0x3c20aa,DependentOn as _0x148bca,Plugin as _0x41c584,merge as _0x2c2112,registerDependencies as _0x5a0d1b,mergeOverrideWithDependencies as _0x5a4f61,touchDependencies as _0x2d8b65}from'@univerjs/core';import{useDependency as _0x11f1e0,useObservable as _0x1e059b,IUIPartsService as _0x5b30b3,BuiltInUIPart as _0x25f8f5,connectInjector as _0x33fbbf}from'@univerjs/ui';import{jsx as _0x44ff08,jsxs as _0xdeaf32,Fragment as _0x47942b}from'react/jsx-runtime';import{Dropdown as _0x21ed3d,clsx as _0x70919e,Button as _0x4f7539}from'@univerjs/design';import{useRef as _0x4576d0,createElement as _0x241ac0,forwardRef as _0x197dd8,useState as _0x155574,useEffect as _0x5bfbc0}from'react';import{CollaborationEvent as _0xb1447,parseProtocolChangeset as _0x331d5a}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x57c410,SessionStatus as _0x2ea114,UniverCollaborationClientPlugin as _0x18c6f0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x38f5e0,SetWorksheetActiveOperation as _0x5c8388}from'@univerjs/sheets';import{BehaviorSubject as _0x3757b0,Subject as _0x5667a6}from'rxjs';import{takeUntil as _0x1eb310,throttleTime as _0x193b30}from'rxjs/operators';import{SetZoomRatioOperation as _0x55628f,SetScrollOperation as _0x3efdd7}from'@univerjs/sheets-ui';function k({ref:_0x54d3c3,..._0x588c5f}){const _0x442a32=_0x1ff471,{icon:_0x3a593f,id:_0x52a812,className:_0x2b9ded,extend:_0x5d9e52,..._0xc787dc}=_0x588c5f,_0x302977=(_0x442a32(0x1db)+_0x52a812+'\x20'+(_0x2b9ded||''))[_0x442a32(0x1f3)](),_0x2773f6=_0x4576d0('_'+Oe());return G(_0x3a593f,''+_0x52a812,{'defIds':_0x3a593f[_0x442a32(0x1be)],'idSuffix':_0x2773f6[_0x442a32(0x1fc)]},{'ref':_0x54d3c3,'className':_0x302977,..._0xc787dc},_0x5d9e52);}function G(_0x26cd31,_0x51c6a2,_0x103abe,_0x974482,_0x4d40f3){const _0x16ef69=_0x1ff471;return _0x241ac0(_0x26cd31['tag'],{'key':_0x51c6a2,...be(_0x26cd31,_0x103abe,_0x4d40f3),..._0x974482},(Ee(_0x26cd31,_0x103abe)[_0x16ef69(0x1e8)]||[])['map']((_0x3decb9,_0xcda044)=>G(_0x3decb9,_0x51c6a2+'-'+_0x26cd31['tag']+'-'+_0xcda044,_0x103abe,void 0x0,_0x4d40f3)));}function be(_0x2f444c,_0x13f485,_0x51387c){const _0x17eb68=_0x1ff471,_0x324824={..._0x2f444c[_0x17eb68(0x1b3)]};_0x51387c!=null&&_0x51387c[_0x17eb68(0x1a9)]&&_0x324824[_0x17eb68(0x238)]===_0x17eb68(0x1a9)&&(_0x324824[_0x17eb68(0x238)]=_0x51387c[_0x17eb68(0x1a9)]),_0x2f444c[_0x17eb68(0x213)]==='mask'&&_0x324824['id']&&(_0x324824['id']=_0x324824['id']+_0x13f485[_0x17eb68(0x211)]),Object[_0x17eb68(0x216)](_0x324824)[_0x17eb68(0x1ad)](([_0x5ddc4a,_0x4f10f4])=>{const _0x2c57c8=_0x17eb68;_0x5ddc4a==='mask'&&typeof _0x4f10f4==_0x2c57c8(0x239)&&(_0x324824[_0x5ddc4a]=_0x4f10f4['replace'](/url\(#(.*)\)/,'url(#$1'+_0x13f485[_0x2c57c8(0x211)]+')'));});const {defIds:_0x19bfd7}=_0x13f485;return!_0x19bfd7||_0x19bfd7[_0x17eb68(0x233)]===0x0||(_0x2f444c[_0x17eb68(0x213)]===_0x17eb68(0x223)&&_0x324824[_0x17eb68(0x1f9)]&&(_0x324824[_0x17eb68(0x1f9)]=_0x324824[_0x17eb68(0x1f9)]+_0x13f485[_0x17eb68(0x211)]),Object[_0x17eb68(0x216)](_0x324824)[_0x17eb68(0x1ad)](([_0x4fbe80,_0x44586b])=>{const _0x1491e5=_0x17eb68;typeof _0x44586b==_0x1491e5(0x239)&&(_0x324824[_0x4fbe80]=_0x44586b[_0x1491e5(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x13f485[_0x1491e5(0x211)]+')'));})),_0x324824;}function Ee(_0x40f6af,_0xe39401){const _0x16df81=_0x1ff471;var _0x304159;const {defIds:_0x53abff}=_0xe39401;return!_0x53abff||_0x53abff[_0x16df81(0x233)]===0x0?_0x40f6af:_0x40f6af[_0x16df81(0x213)]==='defs'&&((_0x304159=_0x40f6af[_0x16df81(0x1e8)])!=null&&_0x304159[_0x16df81(0x233)])?{..._0x40f6af,'children':_0x40f6af[_0x16df81(0x1e8)][_0x16df81(0x1ab)](_0x2955b0=>typeof _0x2955b0[_0x16df81(0x1b3)]['id']==_0x16df81(0x239)&&_0x53abff&&_0x53abff[_0x16df81(0x1cd)](_0x2955b0[_0x16df81(0x1b3)]['id'])?{..._0x2955b0,'attrs':{..._0x2955b0[_0x16df81(0x1b3)],'id':_0x2955b0['attrs']['id']+_0xe39401['idSuffix']}}:_0x2955b0)}:_0x40f6af;}function Oe(){const _0x3058eb=_0x1ff471;return Math[_0x3058eb(0x1ea)]()[_0x3058eb(0x1a4)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x1ff471(0x20f);const we={'tag':_0x1ff471(0x1bf),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1ff471(0x1ca),'viewBox':_0x1ff471(0x1f2),'width':_0x1ff471(0x1c8),'height':_0x1ff471(0x1c8)},'children':[{'tag':'path','attrs':{'fill':_0x1ff471(0x1fb),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x1ff471(0x1fb),'d':_0x1ff471(0x1d3),'fillRule':_0x1ff471(0x21e),'clipRule':'evenodd'}}]},W=_0x197dd8(function(_0x1a2eaf,_0x3f0300){const _0x515e7e=_0x1ff471;return _0x241ac0(k,Object[_0x515e7e(0x1c1)]({},_0x1a2eaf,{'id':_0x515e7e(0x1c0),'ref':_0x3f0300,'icon':we}));});W['displayName']=_0x1ff471(0x1f7);class L extends _0x5efc82{constructor(){const _0x598f4d=_0x1ff471;super(...arguments),u(this,_0x598f4d(0x1fa),new Set()),u(this,'_reporters',new Set());}['registerSharedOperation'](_0x5e6e0a){const _0x36c790=_0x1ff471;return this['_sharedOperations']['add'](_0x5e6e0a),_0x40b029(()=>this['_sharedOperations'][_0x36c790(0x227)](_0x5e6e0a));}[_0x1ff471(0x1b0)](_0x1bf75a){const _0x22ed6a=_0x1ff471;return this[_0x22ed6a(0x1d2)][_0x22ed6a(0x21a)](_0x1bf75a),_0x40b029(()=>this['_reporters'][_0x22ed6a(0x227)](_0x1bf75a));}[_0x1ff471(0x1ff)](_0x30d843){const _0x444cec=_0x1ff471;return this[_0x444cec(0x1fa)][_0x444cec(0x222)](_0x30d843);}[_0x1ff471(0x1a6)](_0x26d9cd){const _0x12b772=_0x1ff471;return Array[_0x12b772(0x1a7)](this[_0x12b772(0x1d2)])[_0x12b772(0x1ab)](_0x16b419=>_0x16b419(_0x26d9cd));}}var Ne=Object[_0x1ff471(0x1c4)],Y=(_0x19fe3a,_0x147680,_0x34b2f9,_0x1d65c6)=>{const _0x302b59=_0x1ff471;for(var _0x3b5c18=_0x1d65c6>0x1?void 0x0:_0x1d65c6?Ne(_0x147680,_0x34b2f9):_0x147680,_0x4fe29e=_0x19fe3a[_0x302b59(0x233)]-0x1,_0x377afb;_0x4fe29e>=0x0;_0x4fe29e--)(_0x377afb=_0x19fe3a[_0x4fe29e])&&(_0x3b5c18=_0x377afb(_0x3b5c18)||_0x3b5c18);return _0x3b5c18;},_=(_0x346bd6,_0x42fa7c)=>(_0x3bdd66,_0x1146b9)=>_0x42fa7c(_0x3bdd66,_0x1146b9,_0x346bd6);let S=class extends _0x27b7ba{constructor(_0x570829,_0x20eb27,_0xef5d28){const _0x25f2e2=_0x1ff471;super(),u(this,_0x25f2e2(0x1e6),new Map()),(this[_0x25f2e2(0x1fd)]=_0x570829,this[_0x25f2e2(0x1ed)]=_0x20eb27,this[_0x25f2e2(0x1d7)]=_0xef5d28,this[_0x25f2e2(0x1c9)]());}async[_0x1ff471(0x22a)](_0x3ba235){const _0x1e084b=_0x1ff471;return this[_0x1e084b(0x1e6)]['has'](_0x3ba235)||await this[_0x1e084b(0x1fe)](_0x3ba235),this[_0x1e084b(0x1e6)][_0x1e084b(0x1a5)](_0x3ba235);}[_0x1ff471(0x220)](_0xc0e10c){const _0xec5ee5=_0x1ff471;var _0x1e1988;return(_0x1e1988=this[_0xec5ee5(0x1e6)][_0xec5ee5(0x1a5)](_0xc0e10c))!=null?_0x1e1988:null;}[_0x1ff471(0x1c9)](){const _0x4f2120=_0x1ff471;this[_0x4f2120(0x1fd)]['getTypeOfUnitAdded$'](_0x391209[_0x4f2120(0x234)])[_0x4f2120(0x1d0)](_0x1eb310(this[_0x4f2120(0x237)]))[_0x4f2120(0x1eb)](async _0x329f88=>{const _0x5f31fe=_0x4f2120,_0x4b15cf=_0x329f88[_0x5f31fe(0x212)]();this[_0x5f31fe(0x1e6)][_0x5f31fe(0x222)](_0x4b15cf)||this[_0x5f31fe(0x1fe)](_0x4b15cf);}),this[_0x4f2120(0x1fd)][_0x4f2120(0x1de)](_0x391209['UNIVER_SHEET'])[_0x4f2120(0x1d0)](_0x1eb310(this[_0x4f2120(0x237)]))[_0x4f2120(0x1eb)](_0x5bcc72=>{const _0xb0c83f=_0x4f2120,_0xba9db7=_0x5bcc72[_0xb0c83f(0x212)](),_0x4106f5=this[_0xb0c83f(0x1e6)]['get'](_0xba9db7);_0x4106f5==null||_0x4106f5['dispose']();});}async['_startLiveShareCoordinator'](_0x5d8ac4){const _0xeb6207=_0x1ff471,_0x5439d8=await this[_0xeb6207(0x1d7)]['requireSession'](_0x5d8ac4),_0x35d44b=this[_0xeb6207(0x1ed)][_0xeb6207(0x1e2)](N,_0x5d8ac4,_0x5439d8);return _0x35d44b['init'](),this[_0xeb6207(0x1e6)][_0xeb6207(0x214)](_0x5d8ac4,_0x35d44b),_0x35d44b;}};S=Y([_(0x0,_0x407f4a),_(0x1,_0x530cef(_0x342037)),_(0x2,_0x530cef(_0x57c410))],S);var c=(_0x4adbe8=>(_0x4adbe8[_0x1ff471(0x1a2)]=_0x1ff471(0x243),_0x4adbe8['IDLE']='idle',_0x4adbe8[_0x1ff471(0x1b6)]=_0x1ff471(0x21f),_0x4adbe8['NOT_FOLLOWING']=_0x1ff471(0x244),_0x4adbe8[_0x1ff471(0x21c)]=_0x1ff471(0x230),_0x4adbe8))(c||{});const Ce=_0x1ff471(0x1d5),De=0xc8;let N=class extends _0x27b7ba{constructor(_0x4b9732,_0x1fc442,_0x129c59,_0x310a79,_0x16863c){const _0x5b4e4e=_0x1ff471;super(),u(this,_0x5b4e4e(0x23f),new _0x3757b0(_0x5b4e4e(0x1b5))),u(this,'status$',this[_0x5b4e4e(0x23f)]['asObservable']()),u(this,_0x5b4e4e(0x1c9),!0x1),u(this,'_commandDisposable',null),u(this,_0x5b4e4e(0x1a3),null),(this[_0x5b4e4e(0x210)]=_0x4b9732,this[_0x5b4e4e(0x22b)]=_0x1fc442,this['_configService']=_0x129c59,this[_0x5b4e4e(0x1ae)]=_0x310a79,this[_0x5b4e4e(0x228)]=_0x16863c);}get['_status'](){const _0x4afec2=_0x1ff471;return this[_0x4afec2(0x23f)][_0x4afec2(0x217)]();}[_0x1ff471(0x1aa)](){const _0x490e09=_0x1ff471;var _0x1537bf;(_0x1537bf=this[_0x490e09(0x1d1)])==null||_0x1537bf['dispose'](),this[_0x490e09(0x23f)][_0x490e09(0x202)]('idle'),this[_0x490e09(0x23f)]['complete']();}[_0x1ff471(0x246)](){const _0x5ca0e9=_0x1ff471;return this[_0x5ca0e9(0x229)];}[_0x1ff471(0x204)](){const _0xeafc37=_0x1ff471;this['_init']||(this['_init']=!0x0,this['_collabSession']['sessionStatus$'][_0xeafc37(0x1d0)](_0x1eb310(this['dispose$']))[_0xeafc37(0x1eb)](_0x98d964=>{const _0x208f2e=_0xeafc37;switch(_0x98d964){case _0x2ea114[_0x208f2e(0x1a2)]:this[_0x208f2e(0x1bc)]();break;case _0x2ea114[_0x208f2e(0x20d)]:this[_0x208f2e(0x1b7)]();break;}}),this[_0xeafc37(0x22b)][_0xeafc37(0x23e)][_0xeafc37(0x1d0)](_0x1eb310(this[_0xeafc37(0x237)]))[_0xeafc37(0x1eb)](_0x57590c=>{const _0x5e2632=_0xeafc37,{eventID:_0x4e82df}=_0x57590c;switch(_0x4e82df){case _0xb1447['LIVESHARE_NEW_HOST']:this[_0x5e2632(0x1f6)](_0x57590c);break;case _0xb1447['LIVESHARE_OPERATION']:this[_0x5e2632(0x221)](_0x57590c);break;case _0xb1447['LIVESHARE_TERMINATE']:this[_0x5e2632(0x218)]();break;case _0xb1447[_0x5e2632(0x242)]:this['_handleNewChangeSets'](_0x57590c);break;}}));}['tryStartPresenting'](){const _0x22b46b=_0x1ff471;this[_0x22b46b(0x22b)]['send']({'eventID':_0xb1447[_0x22b46b(0x215)],'data':{'unitID':this[_0x22b46b(0x210)],'userID':this[_0x22b46b(0x22b)][_0x22b46b(0x232)]()}},this[_0x22b46b(0x210)]);}['stopPresenting'](){const _0x454ee6=_0x1ff471;this[_0x454ee6(0x229)]===_0x454ee6(0x230)&&(this[_0x454ee6(0x23f)]['next'](_0x454ee6(0x1b5)),this[_0x454ee6(0x22b)][_0x454ee6(0x22c)]({'eventID':_0xb1447[_0x454ee6(0x1f0)],'data':{'unitID':this[_0x454ee6(0x210)]}},this['_unitID']));}[_0x1ff471(0x1e3)](){const _0x216134=_0x1ff471;this[_0x216134(0x229)]===_0x216134(0x244)&&(this[_0x216134(0x23f)][_0x216134(0x202)](_0x216134(0x21f)),this['_startFollowing']());}[_0x1ff471(0x200)](){const _0x1e6a64=_0x1ff471;this['_status']===_0x1e6a64(0x21f)&&this[_0x1e6a64(0x1c6)]();}['_handleNewHost'](_0x485a12){const _0x103ddb=_0x1ff471,{presenter:_0x50273e}=_0x485a12['data'],_0xb41cf5=this['_collabSession'][_0x103ddb(0x232)]();this['_presenter']=_0x50273e,_0x50273e===_0xb41cf5?(this[_0x103ddb(0x1c6)](),this[_0x103ddb(0x219)]()):this[_0x103ddb(0x229)]!==_0x103ddb(0x244)&&(this[_0x103ddb(0x1b2)](),this[_0x103ddb(0x1e1)]());}[_0x1ff471(0x1c5)](){const _0x192748=_0x1ff471,_0x2cdf5d={'eventID':_0xb1447[_0x192748(0x21d)]};this['_collabSession'][_0x192748(0x22c)](_0x2cdf5d,this[_0x192748(0x210)]);}[_0x1ff471(0x218)](){const _0x4a5074=_0x1ff471;this['_presenter']=null,this['_status']!==_0x4a5074(0x230)&&this[_0x4a5074(0x1ac)]();}[_0x1ff471(0x1cb)](_0x4ee193){const _0x3dfc98=_0x1ff471;if(this['_status']==='following'&&this[_0x3dfc98(0x1a3)]===_0x4ee193[_0x3dfc98(0x1ef)][_0x3dfc98(0x22d)]){const _0x1861ce=_0x331d5a(_0x4ee193['data'])[_0x3dfc98(0x249)]['reverse']()[_0x3dfc98(0x20c)](_0x10d34=>_0x10d34['id']===_0x38f5e0['id']);if(_0x1861ce){const _0x5859e8=_0x1861ce[_0x3dfc98(0x1bb)][_0x3dfc98(0x1e7)],_0x21b363=_0x1861ce[_0x3dfc98(0x1bb)][_0x3dfc98(0x1d8)]['id'];setTimeout(()=>{const _0x478ec3=_0x3dfc98;this[_0x478ec3(0x228)][_0x478ec3(0x23a)](_0x5c8388['id'],{'unitId':_0x5859e8,'subUnitId':_0x21b363},{'fromCollab':!0x0});});}}}[_0x1ff471(0x219)](){const _0x488fec=_0x1ff471;this[_0x488fec(0x23f)][_0x488fec(0x202)]('presenting');const _0x2d6ee2=new Map(),_0x21ce20=this[_0x488fec(0x1d1)]=new _0x4ea11a();_0x21ce20['add'](_0x40b029(()=>{const _0x4a657b=_0x488fec;_0x2d6ee2[_0x4a657b(0x1ad)](_0x437cae=>_0x437cae[_0x4a657b(0x203)]()),_0x2d6ee2[_0x4a657b(0x20e)]();})),_0x21ce20[_0x488fec(0x21a)](this['_commandService'][_0x488fec(0x23c)](_0x4ffe17=>{const _0x5f4ba5=_0x488fec;var _0x7cf43b;if(_0x4ffe17[_0x5f4ba5(0x1b9)]!==_0x3c20aa[_0x5f4ba5(0x1e0)]||!this['_liveShareService'][_0x5f4ba5(0x1ff)](_0x4ffe17['id']))return;const {id:_0x5821aa}=_0x4ffe17;let _0x5ab94f;_0x2d6ee2[_0x5f4ba5(0x222)](_0x5821aa)?_0x5ab94f=_0x2d6ee2[_0x5f4ba5(0x1a5)](_0x5821aa):(_0x5ab94f=new _0x5667a6(),_0x2d6ee2[_0x5f4ba5(0x214)](_0x5821aa,_0x5ab94f),_0x5ab94f[_0x5f4ba5(0x1d0)](_0x193b30((_0x7cf43b=this[_0x5f4ba5(0x1b8)][_0x5f4ba5(0x224)](Ce))!=null?_0x7cf43b:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5f4ba5(0x1eb)](_0x417165=>{const _0x3feb3b=_0x5f4ba5;this[_0x3feb3b(0x22b)]['send']({'eventID':_0xb1447[_0x3feb3b(0x1cf)],'data':{'unitID':this[_0x3feb3b(0x210)],'operations':{[_0x417165['id']]:{'id':_0x417165['id'],'params':JSON[_0x3feb3b(0x225)](_0x417165[_0x3feb3b(0x1bb)])}}}},this[_0x3feb3b(0x210)]);})),_0x5ab94f[_0x5f4ba5(0x202)](_0x4ffe17);})),this[_0x488fec(0x1ae)][_0x488fec(0x1a6)](this['_unitID'])[_0x488fec(0x1ad)](_0x407797=>this[_0x488fec(0x22b)][_0x488fec(0x22c)]({'eventID':_0xb1447[_0x488fec(0x1cf)],'data':{'unitID':this[_0x488fec(0x210)],'operations':{[_0x407797['id']]:{'id':_0x407797['id'],'params':JSON[_0x488fec(0x225)](_0x407797['params'])}}}},this[_0x488fec(0x210)]));}[_0x1ff471(0x1b2)](){const _0x3499b0=_0x1ff471;var _0x5e2876;this[_0x3499b0(0x23f)][_0x3499b0(0x202)](_0x3499b0(0x1b5)),(_0x5e2876=this['_commandDisposable'])==null||_0x5e2876[_0x3499b0(0x1aa)](),this['_commandDisposable']=null;}[_0x1ff471(0x1e1)](){const _0x5ca5fa=_0x1ff471;var _0x40e911;(_0x40e911=this[_0x5ca5fa(0x1d1)])==null||_0x40e911[_0x5ca5fa(0x1aa)](),this[_0x5ca5fa(0x23f)][_0x5ca5fa(0x202)](_0x5ca5fa(0x21f));}[_0x1ff471(0x1ac)](){const _0x372a77=_0x1ff471;var _0x45999a;this[_0x372a77(0x23f)][_0x372a77(0x202)](_0x372a77(0x1b5)),(_0x45999a=this[_0x372a77(0x1d1)])==null||_0x45999a[_0x372a77(0x1aa)](),this[_0x372a77(0x1d1)]=null;}[_0x1ff471(0x1c6)](){const _0x3ca668=_0x1ff471;var _0x183a59;this[_0x3ca668(0x23f)]['next'](_0x3ca668(0x244)),(_0x183a59=this[_0x3ca668(0x1d1)])==null||_0x183a59['dispose']();}[_0x1ff471(0x221)](_0x14f9a9){const _0x56de70=_0x1ff471;if([_0x56de70(0x230),_0x56de70(0x244),_0x56de70(0x243)][_0x56de70(0x1cd)](this[_0x56de70(0x229)])||!_0x14f9a9[_0x56de70(0x1ef)][_0x56de70(0x1df)]||_0x14f9a9[_0x56de70(0x1ef)]['presenter']===this[_0x56de70(0x22b)][_0x56de70(0x232)]())return;this[_0x56de70(0x229)]===_0x56de70(0x1b5)&&this[_0x56de70(0x1e1)]();const _0x256a7d=_0x14f9a9[_0x56de70(0x1ef)][_0x56de70(0x1e4)];Object[_0x56de70(0x1dc)](_0x256a7d)['forEach'](_0x1098a5=>{const _0x829016=_0x56de70;this[_0x829016(0x228)]['executeCommand'](_0x1098a5['id'],_0x1098a5['params']?JSON['parse'](_0x1098a5[_0x829016(0x1bb)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4503d7=_0x1ff471;var _0x11193f;this[_0x4503d7(0x23f)][_0x4503d7(0x202)](_0x4503d7(0x243)),(_0x11193f=this[_0x4503d7(0x1d1)])==null||_0x11193f['dispose']();}['_handleOnline'](){const _0x25027b=_0x1ff471;this[_0x25027b(0x23f)][_0x25027b(0x202)](_0x25027b(0x1b5)),this[_0x25027b(0x1c5)]();}};N=Y([_(0x2,_0x495339),_(0x3,_0x530cef(L)),_(0x4,_0x244e30)],N);function Le(){const _0x360dd8=_0x1ff471,_0x480058=_0x11f1e0(S),_0x30294c=_0x11f1e0(_0x407f4a),_0x3103a8=_0x1e059b(()=>_0x30294c[_0x360dd8(0x1b4)](_0x391209['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3fd68c,_0x220472]=_0x155574(null),[_0x56c686,_0x178780]=_0x155574(c[_0x360dd8(0x201)]),_0xef2c91=_0x4576d0(null);return _0x5bfbc0(()=>(_0x3103a8&&_0x480058[_0x360dd8(0x22a)](_0x3103a8['getUnitId']())[_0x360dd8(0x23d)](_0x4a1edd=>{const _0x5e08dd=_0x360dd8;_0x220472(_0x4a1edd),_0xef2c91[_0x5e08dd(0x1fc)]=_0x4a1edd[_0x5e08dd(0x1ce)][_0x5e08dd(0x1eb)](_0x21c8ae=>{_0x178780(_0x21c8ae);});}),()=>{const _0x286259=_0x360dd8;var _0xb4bd9a;(_0xb4bd9a=_0xef2c91[_0x286259(0x1fc)])==null||_0xb4bd9a[_0x286259(0x1bd)](),_0xef2c91[_0x286259(0x1fc)]=null;}),[_0x3103a8,_0x480058]),_0x3fd68c?_0x44ff08(_0x21ed3d,{'align':_0x360dd8(0x1f5),'disabled':_0x56c686===c[_0x360dd8(0x1a2)],'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':_0x44ff08(Re,{'status':_0x56c686,'coordinator':_0x3fd68c}),'children':_0x44ff08(_0x360dd8(0x1c7),{'className':_0x70919e(_0x360dd8(0x236),{'univer-cursor-not-allowed':_0x56c686===c[_0x360dd8(0x1a2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56c686!==c[_0x360dd8(0x1a2)]}),'type':_0x360dd8(0x1c7),'children':_0x44ff08(W,{'className':_0x360dd8(0x205)})})}):null;}function Re(_0x28e239){const _0x39cc04=_0x1ff471,{status:_0x11d2b3,coordinator:_0x3cf1e7}=_0x28e239;switch(_0x11d2b3){case c[_0x39cc04(0x201)]:return _0x44ff08($e,{'coordinator':_0x3cf1e7});case c['FOLLOWING']:return _0x44ff08(xe,{'coordinator':_0x3cf1e7});case c[_0x39cc04(0x1a8)]:return _0x44ff08(Pe,{'coordinator':_0x3cf1e7});case c[_0x39cc04(0x1a2)]:return _0x44ff08(Te,{});case c[_0x39cc04(0x21c)]:return _0x44ff08(Ae,{'coordinator':_0x3cf1e7});default:return null;}}function $e(_0x424685){const _0x367646=_0x1ff471,{coordinator:_0x2e5116}=_0x424685;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x367646(0x241),{'className':_0x367646(0x1b1),'children':_0x367646(0x235)}),_0x44ff08(_0x4f7539,{'onClick':()=>_0x2e5116[_0x367646(0x1f1)](),'children':'Start'})]});}function xe(_0x2e1c24){const _0x4fa2e6=_0x1ff471,{coordinator:_0x54c7c5}=_0x2e1c24;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x4fa2e6(0x241),{'className':_0x4fa2e6(0x1b1),'children':_0x4fa2e6(0x208)}),_0x44ff08(_0x4f7539,{'onClick':()=>_0x54c7c5['stopFollowing'](),'children':_0x4fa2e6(0x1f8)})]});}function Pe(_0x2e475d){const _0x523dff=_0x1ff471,{coordinator:_0x448d74}=_0x2e475d;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x523dff(0x241),{'className':_0x523dff(0x1b1),'children':_0x523dff(0x1af)}),_0x44ff08(_0x4f7539,{'variant':_0x523dff(0x226),'onClick':()=>_0x448d74[_0x523dff(0x1e3)](),'children':_0x523dff(0x1ec)})]});}function Ae(_0x5f022d){const _0x89213b=_0x1ff471,{coordinator:_0x3a058c}=_0x5f022d;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08('div',{'className':_0x89213b(0x1b1),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x44ff08(_0x4f7539,{'variant':_0x89213b(0x207),'onClick':()=>_0x3a058c['stopPresenting'](),'children':_0x89213b(0x231)})]});}function Te(){return _0x44ff08(_0x47942b,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x1ff471(0x1c4)],He=(_0x2f8122,_0x524e5f,_0x361076,_0x36454d)=>{for(var _0x4c0982=_0x36454d>0x1?void 0x0:_0x36454d?Fe(_0x524e5f,_0x361076):_0x524e5f,_0x371a1a=_0x2f8122['length']-0x1,_0x65146f;_0x371a1a>=0x0;_0x371a1a--)(_0x65146f=_0x2f8122[_0x371a1a])&&(_0x4c0982=_0x65146f(_0x4c0982)||_0x4c0982);return _0x4c0982;},A=(_0x275cf4,_0xd2ddea)=>(_0x1c3e8e,_0x198788)=>_0xd2ddea(_0x1c3e8e,_0x198788,_0x275cf4);function _0x7fae(_0x3fcfbd,_0x1f6936){const _0x557056=_0x5570();return _0x7fae=function(_0x7fae7c,_0x38b49c){_0x7fae7c=_0x7fae7c-0x1a2;let _0x5cda0d=_0x557056[_0x7fae7c];return _0x5cda0d;},_0x7fae(_0x3fcfbd,_0x1f6936);}let m=class extends _0x5efc82{constructor(_0x205e68,_0x419cec){const _0x1d14f7=_0x1ff471;super(),this[_0x1d14f7(0x1ed)]=_0x205e68,this[_0x1d14f7(0x247)]=_0x419cec,this[_0x1d14f7(0x206)]();}['_mountLiveShare'](){const _0x54f196=_0x1ff471;this[_0x54f196(0x1c3)](this[_0x54f196(0x247)][_0x54f196(0x1ba)](_0x25f8f5[_0x54f196(0x1f4)],()=>_0x33fbbf(Le,this['_injector'])));}};function _0x5570(){const _0x40f71a=['_stopFollowing','button','1em','_init','none','_handleNewChangeSets','6PLIzZJ','includes','status$','LIVESHARE_OPERATION','pipe','_commandDisposable','_reporters','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','symbol','SAME_OPERATION_SHARE_INTERVAL','replace','_collabSessionService','sheet','4PhrxBd','onRendered','univerjs-icon\x20univerjs-icon-','values','11830554bUmnuc','getTypeOfUnitDisposed$','presenter','OPERATION','_startFollowing','createInstance','startFollowing','operations','override','_entities','unitId','children','28307970NfiiNQ','random','subscribe','Start\x20following','_injector','registerSharedOperation','data','LIVESHARE_TERMINATE','tryStartPresenting','0\x200\x2017\x2017','trim','HEADER_MENU','end','_handleNewHost','LiveShareIcon','Stop\x20following','xlink:href','_sharedOperations','currentColor','current','_univerInstanceService','_startLiveShareCoordinator','shouldShareOperation','stopFollowing','IDLE','next','complete','init','univer-size-4','_mountLiveShare','default','You\x27re\x20following\x20the\x20presenter','2DonwDo','UNIVER_LIVE_SHARE_PLUGIN','9211230eKNjPG','find','ONLINE','clear','UniverIcon','_unitID','idSuffix','getUnitId','tag','set','LIVESHARE_REQUEST_HOST','entries','getValue','_handleTerminate','_startPresenting','add','7099752pkzOlA','PRESENTING','LIVESHARE_FETCH_OPERATIONS','evenodd','following','getLiveShareCoordinatorSync','_handleOperation','has','use','getConfig','stringify','text','delete','_commandService','_status','getLiveShareCoordinator','_collabSession','send','memberID','setConfig','_config','presenting','Stop\x20presenting','getMemberID','length','UNIVER_SHEET','Present\x20this\x20document','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose$','fill','string','executeCommand','567211CHxsmP','onCommandExecuted','then','event$','_status$','defineProperty','div','NEW_CHANGESETS','offline','not-following','onStarting','getStatus','_uiPartsService','5036170qrStPd','mutations','UNIVER_UNKNOWN','OFFLINE','_presenter','toString','get','getInitialStates','from','NOT_FOLLOWING','colorChannel1','dispose','map','_beIdle','forEach','_liveShareService','You\x27re\x20not\x20following\x20the\x20presenter','registerInitialStateReporter','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting','attrs','getCurrentTypeOfUnit$','idle','FOLLOWING','_handleOnline','_configService','type','registerComponent','params','_handleOffline','unsubscribe','defIds','svg','live-share-icon','assign','2243739giwFqR','disposeWithMe','getOwnPropertyDescriptor','_fetchOperations'];_0x5570=function(){return _0x40f71a;};return _0x5570();}m=He([A(0x0,_0x530cef(_0x342037)),A(0x1,_0x5b30b3)],m);const ye='live-share.config',T={};var Ue=Object[_0x1ff471(0x1c4)],Ve=(_0x12667a,_0x4ebed6,_0x7838cc,_0xb0d144)=>{const _0x1495e5=_0x1ff471;for(var _0x520462=_0xb0d144>0x1?void 0x0:_0xb0d144?Ue(_0x4ebed6,_0x7838cc):_0x4ebed6,_0x21e448=_0x12667a[_0x1495e5(0x233)]-0x1,_0x4c7d42;_0x21e448>=0x0;_0x21e448--)(_0x4c7d42=_0x12667a[_0x21e448])&&(_0x520462=_0x4c7d42(_0x520462)||_0x520462);return _0x520462;},je=(_0x4a23d7,_0x367f06)=>(_0x552ec3,_0x15a8de)=>_0x367f06(_0x552ec3,_0x15a8de,_0x4a23d7);let I=class extends _0x5efc82{constructor(_0x3db742){const _0x46d09d=_0x1ff471;super(),this[_0x46d09d(0x1ae)]=_0x3db742,this[_0x46d09d(0x1c9)]();}[_0x1ff471(0x1c9)](){const _0x35b521=_0x1ff471;[_0x55628f['id'],_0x3efdd7['id'],_0x5c8388['id']][_0x35b521(0x1ad)](_0x5a0e25=>{const _0x2fc9c8=_0x35b521;this[_0x2fc9c8(0x1c3)](this[_0x2fc9c8(0x1ae)][_0x2fc9c8(0x1ee)](_0x5a0e25));});}};I=Ve([je(0x0,_0x530cef(L))],I);var Me=Object['defineProperty'],ke=Object[_0x1ff471(0x1c4)],Ge=(_0xfd20bc,_0x40da0c,_0x2633de)=>_0x40da0c in _0xfd20bc?Me(_0xfd20bc,_0x40da0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2633de}):_0xfd20bc[_0x40da0c]=_0x2633de,We=(_0x55b24f,_0x3d18f4,_0x529083,_0x109f13)=>{for(var _0x4094fc=_0x109f13>0x1?void 0x0:_0x109f13?ke(_0x3d18f4,_0x529083):_0x3d18f4,_0x92aaa0=_0x55b24f['length']-0x1,_0x5cc2ca;_0x92aaa0>=0x0;_0x92aaa0--)(_0x5cc2ca=_0x55b24f[_0x92aaa0])&&(_0x4094fc=_0x5cc2ca(_0x4094fc)||_0x4094fc);return _0x4094fc;},F=(_0x6757ab,_0x3f8d09)=>(_0x163397,_0x1447a7)=>_0x3f8d09(_0x163397,_0x1447a7,_0x6757ab),B=(_0x51fc9a,_0x5d0a91,_0x24eba7)=>Ge(_0x51fc9a,typeof _0x5d0a91!=_0x1ff471(0x1d4)?_0x5d0a91+'':_0x5d0a91,_0x24eba7);const Ye=_0x1ff471(0x20a);let b=class extends _0x41c584{constructor(_0x589e7f=T,_0x3a749b,_0x3e0ea5){const _0x4dbeeb=_0x1ff471;super(),this['_config']=_0x589e7f,this[_0x4dbeeb(0x1ed)]=_0x3a749b,this[_0x4dbeeb(0x1b8)]=_0x3e0ea5;const {..._0x2051f2}=_0x2c2112({},T,this[_0x4dbeeb(0x22f)]);this[_0x4dbeeb(0x1b8)][_0x4dbeeb(0x22e)](ye,_0x2051f2);}[_0x1ff471(0x245)](){const _0x1ee846=_0x1ff471;_0x5a0d1b(this[_0x1ee846(0x1ed)],_0x5a4f61([[L],[S],[I],[m]],this[_0x1ee846(0x22f)][_0x1ee846(0x1e5)])),_0x2d8b65(this['_injector'],[[I]]);}[_0x1ff471(0x1da)](){_0x2d8b65(this['_injector'],[[m]]);}};B(b,'type',_0x391209[_0x1ff471(0x24a)]),B(b,'pluginName',Ye),b=We([_0x148bca(_0x18c6f0),F(0x1,_0x530cef(_0x342037)),F(0x2,_0x495339)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x7e354b=_0x12f6;(function(_0x505b9d,_0x295900){const _0x44d169=_0x12f6,_0x1e1f3e=_0x505b9d();while(!![]){try{const _0x6b9215=parseInt(_0x44d169(0x163))/0x1*(-parseInt(_0x44d169(0x16b))/0x2)+-parseInt(_0x44d169(0x1d6))/0x3+parseInt(_0x44d169(0x16d))/0x4+-parseInt(_0x44d169(0x205))/0x5*(parseInt(_0x44d169(0x1b8))/0x6)+-parseInt(_0x44d169(0x1f1))/0x7+-parseInt(_0x44d169(0x17a))/0x8*(parseInt(_0x44d169(0x187))/0x9)+parseInt(_0x44d169(0x1e1))/0xa;if(_0x6b9215===_0x295900)break;else _0x1e1f3e['push'](_0x1e1f3e['shift']());}catch(_0x10ae5d){_0x1e1f3e['push'](_0x1e1f3e['shift']());}}}(_0xb4b9,0xa9c62));var J=Object[_0x7e354b(0x197)],K=(_0x42d9d5,_0x2117d0,_0x30577f)=>_0x2117d0 in _0x42d9d5?J(_0x42d9d5,_0x2117d0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30577f}):_0x42d9d5[_0x2117d0]=_0x30577f,u=(_0x382b4d,_0x37d907,_0x3d83ad)=>K(_0x382b4d,typeof _0x37d907!=_0x7e354b(0x196)?_0x37d907+'':_0x37d907,_0x3d83ad);import{Disposable as _0x347be1,toDisposable as _0x3d4789,IUniverInstanceService as _0x309518,Inject as _0x3da970,Injector as _0x12624f,IConfigService as _0x46c0d3,ICommandService as _0x329504,RxDisposable as _0x29c169,UniverInstanceType as _0x57407e,DisposableCollection as _0x5c4131,CommandType as _0x55d34f,DependentOn as _0x2b4dcb,Plugin as _0x578106,merge as _0x37ec64,registerDependencies as _0x266bf,mergeOverrideWithDependencies as _0x357cc7,touchDependencies as _0x468664}from'@univerjs/core';import{useDependency as _0x52d8b7,useObservable as _0x197c64,IUIPartsService as _0x381d5f,BuiltInUIPart as _0x1da299,connectInjector as _0x3c976a}from'@univerjs/ui';import{jsx as _0x101f75,jsxs as _0x110ad3,Fragment as _0x54296b}from'react/jsx-runtime';import{Dropdown as _0x4a2625,clsx as _0x3ab899,Button as _0x17d00f}from'@univerjs/design';import{useRef as _0x5ada0e,createElement as _0x56a161,forwardRef as _0xde3aa3,useState as _0x4e342b,useEffect as _0x1f3ba1}from'react';import{CollaborationEvent as _0x2c840d,parseProtocolChangeset as _0x21f40d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1662bb,SessionStatus as _0x1e0fe4,UniverCollaborationClientPlugin as _0x48d4a0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x51be66,SetWorksheetActiveOperation as _0x5adc8e}from'@univerjs/sheets';import{BehaviorSubject as _0x4eaa7d,Subject as _0x59ce58}from'rxjs';import{takeUntil as _0xe6e776,throttleTime as _0x29baa8}from'rxjs/operators';import{SetZoomRatioOperation as _0x219de2,SetScrollOperation as _0x4fb794}from'@univerjs/sheets-ui';function k({ref:_0x44547c,..._0x2cf2ca}){const _0x52d28b=_0x7e354b,{icon:_0x489d8d,id:_0x1cc7ba,className:_0x5dd489,extend:_0x52387a,..._0x3f9477}=_0x2cf2ca,_0x2b71f0=(_0x52d28b(0x1ae)+_0x1cc7ba+'\x20'+(_0x5dd489||''))[_0x52d28b(0x199)](),_0x286008=_0x5ada0e('_'+Oe());return G(_0x489d8d,''+_0x1cc7ba,{'defIds':_0x489d8d[_0x52d28b(0x18d)],'idSuffix':_0x286008['current']},{'ref':_0x44547c,'className':_0x2b71f0,..._0x3f9477},_0x52387a);}function _0x12f6(_0x152c44,_0x387d68){const _0xb4b9cc=_0xb4b9();return _0x12f6=function(_0x12f6b1,_0xdf9e3c){_0x12f6b1=_0x12f6b1-0x161;let _0x5a9de4=_0xb4b9cc[_0x12f6b1];return _0x5a9de4;},_0x12f6(_0x152c44,_0x387d68);}function G(_0x301adc,_0x4a7044,_0x2fc2a3,_0x299f0c,_0x1c1e22){const _0x496406=_0x7e354b;return _0x56a161(_0x301adc['tag'],{'key':_0x4a7044,...be(_0x301adc,_0x2fc2a3,_0x1c1e22),..._0x299f0c},(Ee(_0x301adc,_0x2fc2a3)[_0x496406(0x190)]||[])[_0x496406(0x18a)]((_0xabbcaf,_0x217e40)=>G(_0xabbcaf,_0x4a7044+'-'+_0x301adc[_0x496406(0x178)]+'-'+_0x217e40,_0x2fc2a3,void 0x0,_0x1c1e22)));}function be(_0x1228f3,_0x4e1f25,_0x2df930){const _0x5f4062=_0x7e354b,_0x517ff0={..._0x1228f3[_0x5f4062(0x1f5)]};_0x2df930!=null&&_0x2df930[_0x5f4062(0x1ee)]&&_0x517ff0['fill']===_0x5f4062(0x1ee)&&(_0x517ff0['fill']=_0x2df930['colorChannel1']),_0x1228f3[_0x5f4062(0x178)]===_0x5f4062(0x167)&&_0x517ff0['id']&&(_0x517ff0['id']=_0x517ff0['id']+_0x4e1f25[_0x5f4062(0x1e9)]),Object[_0x5f4062(0x1db)](_0x517ff0)[_0x5f4062(0x17e)](([_0x2ab831,_0x2f78b2])=>{const _0x23530d=_0x5f4062;_0x2ab831===_0x23530d(0x167)&&typeof _0x2f78b2==_0x23530d(0x1b1)&&(_0x517ff0[_0x2ab831]=_0x2f78b2[_0x23530d(0x16c)](/url\(#(.*)\)/,'url(#$1'+_0x4e1f25[_0x23530d(0x1e9)]+')'));});const {defIds:_0x30df82}=_0x4e1f25;return!_0x30df82||_0x30df82[_0x5f4062(0x208)]===0x0||(_0x1228f3[_0x5f4062(0x178)]==='use'&&_0x517ff0['xlink:href']&&(_0x517ff0[_0x5f4062(0x184)]=_0x517ff0[_0x5f4062(0x184)]+_0x4e1f25['idSuffix']),Object['entries'](_0x517ff0)['forEach'](([_0x575853,_0x5cdc9b])=>{const _0x105a46=_0x5f4062;typeof _0x5cdc9b==_0x105a46(0x1b1)&&(_0x517ff0[_0x575853]=_0x5cdc9b[_0x105a46(0x16c)](/url\(#(.*)\)/,_0x105a46(0x1ba)+_0x4e1f25[_0x105a46(0x1e9)]+')'));})),_0x517ff0;}function Ee(_0x393e08,_0x514b6e){const _0x471496=_0x7e354b;var _0x42336f;const {defIds:_0x6930da}=_0x514b6e;return!_0x6930da||_0x6930da[_0x471496(0x208)]===0x0?_0x393e08:_0x393e08[_0x471496(0x178)]===_0x471496(0x1cf)&&((_0x42336f=_0x393e08[_0x471496(0x190)])!=null&&_0x42336f[_0x471496(0x208)])?{..._0x393e08,'children':_0x393e08[_0x471496(0x190)][_0x471496(0x18a)](_0x48f3b3=>typeof _0x48f3b3[_0x471496(0x1f5)]['id']=='string'&&_0x6930da&&_0x6930da[_0x471496(0x1ac)](_0x48f3b3['attrs']['id'])?{..._0x48f3b3,'attrs':{..._0x48f3b3[_0x471496(0x1f5)],'id':_0x48f3b3[_0x471496(0x1f5)]['id']+_0x514b6e[_0x471496(0x1e9)]}}:_0x48f3b3)}:_0x393e08;}function Oe(){const _0xa56e89=_0x7e354b;return Math[_0xa56e89(0x209)]()['toString'](0x24)[_0xa56e89(0x19b)](0x2,0x8);}k[_0x7e354b(0x1ef)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x7e354b(0x1d3),'fill':_0x7e354b(0x1dd),'viewBox':_0x7e354b(0x1d7),'width':_0x7e354b(0x1a8),'height':_0x7e354b(0x1a8)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x7e354b(0x175),'d':_0x7e354b(0x1f4),'fillRule':_0x7e354b(0x1a0),'clipRule':_0x7e354b(0x1a0)}}]},W=_0xde3aa3(function(_0x32f649,_0xd0ed6b){const _0x753960=_0x7e354b;return _0x56a161(k,Object['assign']({},_0x32f649,{'id':_0x753960(0x1c8),'ref':_0xd0ed6b,'icon':we}));});W[_0x7e354b(0x1ef)]=_0x7e354b(0x1dc);class L extends _0x347be1{constructor(){const _0x49d96e=_0x7e354b;super(...arguments),u(this,_0x49d96e(0x1c9),new Set()),u(this,'_reporters',new Set());}[_0x7e354b(0x174)](_0x474663){const _0x4707d9=_0x7e354b;return this[_0x4707d9(0x1c9)][_0x4707d9(0x170)](_0x474663),_0x3d4789(()=>this[_0x4707d9(0x1c9)][_0x4707d9(0x192)](_0x474663));}[_0x7e354b(0x1a6)](_0x4297f6){return this['_reporters']['add'](_0x4297f6),_0x3d4789(()=>this['_reporters']['delete'](_0x4297f6));}[_0x7e354b(0x1b5)](_0x3edc50){const _0x2e666e=_0x7e354b;return this['_sharedOperations'][_0x2e666e(0x1a9)](_0x3edc50);}[_0x7e354b(0x1e2)](_0xcc73ed){const _0x4fe48a=_0x7e354b;return Array[_0x4fe48a(0x1fa)](this[_0x4fe48a(0x186)])[_0x4fe48a(0x18a)](_0x4228a=>_0x4228a(_0xcc73ed));}}var Ne=Object[_0x7e354b(0x1f0)],Y=(_0x478fb1,_0x4a592c,_0x36eeaa,_0x5a6790)=>{for(var _0x11ebf9=_0x5a6790>0x1?void 0x0:_0x5a6790?Ne(_0x4a592c,_0x36eeaa):_0x4a592c,_0x15f471=_0x478fb1['length']-0x1,_0x1c7542;_0x15f471>=0x0;_0x15f471--)(_0x1c7542=_0x478fb1[_0x15f471])&&(_0x11ebf9=_0x1c7542(_0x11ebf9)||_0x11ebf9);return _0x11ebf9;},_=(_0x5548bf,_0x86e0d6)=>(_0x517666,_0x37c73b)=>_0x86e0d6(_0x517666,_0x37c73b,_0x5548bf);let S=class extends _0x29c169{constructor(_0x5cbc4d,_0x1067fa,_0x3f4e85){const _0x198348=_0x7e354b;super(),u(this,_0x198348(0x1e3),new Map()),(this[_0x198348(0x1bd)]=_0x5cbc4d,this['_injector']=_0x1067fa,this[_0x198348(0x1f9)]=_0x3f4e85,this[_0x198348(0x173)]());}async['getLiveShareCoordinator'](_0x53f332){const _0x509634=_0x7e354b;return this[_0x509634(0x1e3)][_0x509634(0x1a9)](_0x53f332)||await this[_0x509634(0x1fc)](_0x53f332),this[_0x509634(0x1e3)][_0x509634(0x164)](_0x53f332);}['getLiveShareCoordinatorSync'](_0x3d9a64){const _0x4a1c5f=_0x7e354b;var _0xddcf59;return(_0xddcf59=this[_0x4a1c5f(0x1e3)][_0x4a1c5f(0x164)](_0x3d9a64))!=null?_0xddcf59:null;}['_init'](){const _0x5e79d6=_0x7e354b;this[_0x5e79d6(0x1bd)][_0x5e79d6(0x1fb)](_0x57407e[_0x5e79d6(0x1c6)])[_0x5e79d6(0x18b)](_0xe6e776(this[_0x5e79d6(0x1d5)]))['subscribe'](async _0x333a13=>{const _0x43b86b=_0x5e79d6,_0x5abae5=_0x333a13[_0x43b86b(0x1e6)]();this[_0x43b86b(0x1e3)][_0x43b86b(0x1a9)](_0x5abae5)||this[_0x43b86b(0x1fc)](_0x5abae5);}),this[_0x5e79d6(0x1bd)][_0x5e79d6(0x193)](_0x57407e['UNIVER_SHEET'])[_0x5e79d6(0x18b)](_0xe6e776(this[_0x5e79d6(0x1d5)]))[_0x5e79d6(0x1b7)](_0x546fa4=>{const _0x36ffdb=_0x5e79d6,_0x50ecf4=_0x546fa4[_0x36ffdb(0x1e6)](),_0x1a69ce=this[_0x36ffdb(0x1e3)][_0x36ffdb(0x164)](_0x50ecf4);_0x1a69ce==null||_0x1a69ce[_0x36ffdb(0x1d0)]();});}async[_0x7e354b(0x1fc)](_0x4a1bc9){const _0x44320d=_0x7e354b,_0x47d00d=await this[_0x44320d(0x1f9)][_0x44320d(0x1f7)](_0x4a1bc9),_0x30ebe7=this['_injector'][_0x44320d(0x1de)](N,_0x4a1bc9,_0x47d00d);return _0x30ebe7['init'](),this['_entities']['set'](_0x4a1bc9,_0x30ebe7),_0x30ebe7;}};S=Y([_(0x0,_0x309518),_(0x1,_0x3da970(_0x12624f)),_(0x2,_0x3da970(_0x1662bb))],S);var c=(_0x488490=>(_0x488490[_0x7e354b(0x1d4)]=_0x7e354b(0x1b6),_0x488490[_0x7e354b(0x1df)]='idle',_0x488490[_0x7e354b(0x1f8)]=_0x7e354b(0x1c4),_0x488490['NOT_FOLLOWING']=_0x7e354b(0x1e8),_0x488490['PRESENTING']=_0x7e354b(0x1ab),_0x488490))(c||{});const Ce=_0x7e354b(0x1f2),De=0xc8;let N=class extends _0x29c169{constructor(_0x3a06dd,_0x203175,_0x5d329e,_0x3d74aa,_0x507633){const _0x1e56d8=_0x7e354b;super(),u(this,'_status$',new _0x4eaa7d(_0x1e56d8(0x1bb))),u(this,_0x1e56d8(0x1aa),this[_0x1e56d8(0x1be)][_0x1e56d8(0x1a7)]()),u(this,_0x1e56d8(0x173),!0x1),u(this,_0x1e56d8(0x1b3),null),u(this,'_presenter',null),(this[_0x1e56d8(0x1f3)]=_0x3a06dd,this[_0x1e56d8(0x19a)]=_0x203175,this[_0x1e56d8(0x1d9)]=_0x5d329e,this[_0x1e56d8(0x1bf)]=_0x3d74aa,this['_commandService']=_0x507633);}get['_status'](){const _0x547196=_0x7e354b;return this[_0x547196(0x1be)][_0x547196(0x1a2)]();}[_0x7e354b(0x1d0)](){const _0x1eb207=_0x7e354b;var _0x23ec14;(_0x23ec14=this['_commandDisposable'])==null||_0x23ec14[_0x1eb207(0x1d0)](),this['_status$'][_0x1eb207(0x181)](_0x1eb207(0x1bb)),this[_0x1eb207(0x1be)][_0x1eb207(0x200)]();}['getStatus'](){return this['_status'];}[_0x7e354b(0x18e)](){const _0x3d8511=_0x7e354b;this['_init']||(this['_init']=!0x0,this[_0x3d8511(0x19a)][_0x3d8511(0x19d)][_0x3d8511(0x18b)](_0xe6e776(this[_0x3d8511(0x1d5)]))[_0x3d8511(0x1b7)](_0x49964d=>{const _0x5925c2=_0x3d8511;switch(_0x49964d){case _0x1e0fe4[_0x5925c2(0x1d4)]:this[_0x5925c2(0x202)]();break;case _0x1e0fe4[_0x5925c2(0x198)]:this['_handleOnline']();break;}}),this[_0x3d8511(0x19a)]['event$'][_0x3d8511(0x18b)](_0xe6e776(this['dispose$']))[_0x3d8511(0x1b7)](_0x477cb8=>{const _0x427371=_0x3d8511,{eventID:_0x554d84}=_0x477cb8;switch(_0x554d84){case _0x2c840d[_0x427371(0x1e7)]:this[_0x427371(0x1cd)](_0x477cb8);break;case _0x2c840d[_0x427371(0x1c5)]:this[_0x427371(0x1cb)](_0x477cb8);break;case _0x2c840d[_0x427371(0x1ca)]:this[_0x427371(0x1b9)]();break;case _0x2c840d[_0x427371(0x162)]:this[_0x427371(0x1e5)](_0x477cb8);break;}}));}[_0x7e354b(0x17d)](){const _0x31e83f=_0x7e354b;this[_0x31e83f(0x19a)][_0x31e83f(0x207)]({'eventID':_0x2c840d['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x31e83f(0x1f3)],'userID':this[_0x31e83f(0x19a)]['getMemberID']()}},this[_0x31e83f(0x1f3)]);}[_0x7e354b(0x1d1)](){const _0x574194=_0x7e354b;this[_0x574194(0x17f)]==='presenting'&&(this[_0x574194(0x1be)][_0x574194(0x181)](_0x574194(0x1bb)),this['_collabSession'][_0x574194(0x207)]({'eventID':_0x2c840d['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){const _0x5e0d6d=_0x7e354b;this[_0x5e0d6d(0x17f)]===_0x5e0d6d(0x1e8)&&(this[_0x5e0d6d(0x1be)][_0x5e0d6d(0x181)](_0x5e0d6d(0x1c4)),this['_startFollowing']());}[_0x7e354b(0x168)](){const _0x320f12=_0x7e354b;this['_status']===_0x320f12(0x1c4)&&this[_0x320f12(0x161)]();}['_handleNewHost'](_0x3cba89){const _0x8649bd=_0x7e354b,{presenter:_0x1e1bda}=_0x3cba89[_0x8649bd(0x172)],_0x334a33=this[_0x8649bd(0x19a)][_0x8649bd(0x203)]();this[_0x8649bd(0x1f6)]=_0x1e1bda,_0x1e1bda===_0x334a33?(this['_stopFollowing'](),this[_0x8649bd(0x176)]()):this[_0x8649bd(0x17f)]!=='not-following'&&(this[_0x8649bd(0x1c7)](),this[_0x8649bd(0x17b)]());}[_0x7e354b(0x1e0)](){const _0x505bc1=_0x7e354b,_0x3a40b0={'eventID':_0x2c840d[_0x505bc1(0x165)]};this[_0x505bc1(0x19a)]['send'](_0x3a40b0,this[_0x505bc1(0x1f3)]);}[_0x7e354b(0x1b9)](){const _0x4a9575=_0x7e354b;this[_0x4a9575(0x1f6)]=null,this['_status']!==_0x4a9575(0x1ab)&&this[_0x4a9575(0x1ed)]();}[_0x7e354b(0x1e5)](_0x57eb3){const _0x4ae1f0=_0x7e354b;if(this[_0x4ae1f0(0x17f)]==='following'&&this[_0x4ae1f0(0x1f6)]===_0x57eb3['data'][_0x4ae1f0(0x1da)]){const _0x2a6c6d=_0x21f40d(_0x57eb3['data'])['mutations'][_0x4ae1f0(0x19e)]()[_0x4ae1f0(0x1c1)](_0x3ba71f=>_0x3ba71f['id']===_0x51be66['id']);if(_0x2a6c6d){const _0x2b666f=_0x2a6c6d[_0x4ae1f0(0x1d2)][_0x4ae1f0(0x183)],_0x1f2401=_0x2a6c6d[_0x4ae1f0(0x1d2)]['sheet']['id'];setTimeout(()=>{const _0x123227=_0x4ae1f0;this[_0x123227(0x19c)][_0x123227(0x1c0)](_0x5adc8e['id'],{'unitId':_0x2b666f,'subUnitId':_0x1f2401},{'fromCollab':!0x0});});}}}[_0x7e354b(0x176)](){const _0x155274=_0x7e354b;this[_0x155274(0x1be)][_0x155274(0x181)](_0x155274(0x1ab));const _0x235cbc=new Map(),_0x10fd21=this[_0x155274(0x1b3)]=new _0x5c4131();_0x10fd21[_0x155274(0x170)](_0x3d4789(()=>{const _0x5ba289=_0x155274;_0x235cbc[_0x5ba289(0x17e)](_0x4b2039=>_0x4b2039[_0x5ba289(0x200)]()),_0x235cbc[_0x5ba289(0x1fe)]();})),_0x10fd21[_0x155274(0x170)](this[_0x155274(0x19c)][_0x155274(0x1a1)](_0x48f891=>{const _0x2c86ad=_0x155274;var _0x133bd6;if(_0x48f891[_0x2c86ad(0x1b4)]!==_0x55d34f[_0x2c86ad(0x182)]||!this[_0x2c86ad(0x1bf)][_0x2c86ad(0x1b5)](_0x48f891['id']))return;const {id:_0x293ead}=_0x48f891;let _0x5c828e;_0x235cbc[_0x2c86ad(0x1a9)](_0x293ead)?_0x5c828e=_0x235cbc[_0x2c86ad(0x164)](_0x293ead):(_0x5c828e=new _0x59ce58(),_0x235cbc[_0x2c86ad(0x18f)](_0x293ead,_0x5c828e),_0x5c828e['pipe'](_0x29baa8((_0x133bd6=this[_0x2c86ad(0x1d9)][_0x2c86ad(0x1ff)](Ce))!=null?_0x133bd6:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c86ad(0x1b7)](_0x5883b6=>{const _0x285355=_0x2c86ad;this[_0x285355(0x19a)][_0x285355(0x207)]({'eventID':_0x2c840d[_0x285355(0x1c5)],'data':{'unitID':this[_0x285355(0x1f3)],'operations':{[_0x5883b6['id']]:{'id':_0x5883b6['id'],'params':JSON['stringify'](_0x5883b6[_0x285355(0x1d2)])}}}},this[_0x285355(0x1f3)]);})),_0x5c828e['next'](_0x48f891);})),this['_liveShareService']['getInitialStates'](this['_unitID'])['forEach'](_0x1e3acb=>this[_0x155274(0x19a)][_0x155274(0x207)]({'eventID':_0x2c840d[_0x155274(0x1c5)],'data':{'unitID':this[_0x155274(0x1f3)],'operations':{[_0x1e3acb['id']]:{'id':_0x1e3acb['id'],'params':JSON[_0x155274(0x16f)](_0x1e3acb[_0x155274(0x1d2)])}}}},this['_unitID']));}[_0x7e354b(0x1c7)](){const _0x525e72=_0x7e354b;var _0x72d22f;this[_0x525e72(0x1be)][_0x525e72(0x181)]('idle'),(_0x72d22f=this[_0x525e72(0x1b3)])==null||_0x72d22f[_0x525e72(0x1d0)](),this[_0x525e72(0x1b3)]=null;}[_0x7e354b(0x17b)](){const _0x33735f=_0x7e354b;var _0x3f1474;(_0x3f1474=this[_0x33735f(0x1b3)])==null||_0x3f1474[_0x33735f(0x1d0)](),this['_status$'][_0x33735f(0x181)]('following');}[_0x7e354b(0x1ed)](){const _0x17a8be=_0x7e354b;var _0x502d29;this['_status$'][_0x17a8be(0x181)]('idle'),(_0x502d29=this[_0x17a8be(0x1b3)])==null||_0x502d29[_0x17a8be(0x1d0)](),this[_0x17a8be(0x1b3)]=null;}[_0x7e354b(0x161)](){const _0x25a4a1=_0x7e354b;var _0x5a982b;this[_0x25a4a1(0x1be)][_0x25a4a1(0x181)](_0x25a4a1(0x1e8)),(_0x5a982b=this[_0x25a4a1(0x1b3)])==null||_0x5a982b['dispose']();}[_0x7e354b(0x1cb)](_0x38d5a7){const _0x550d90=_0x7e354b;if([_0x550d90(0x1ab),_0x550d90(0x1e8),_0x550d90(0x1b6)]['includes'](this['_status'])||!_0x38d5a7[_0x550d90(0x172)][_0x550d90(0x188)]||_0x38d5a7[_0x550d90(0x172)][_0x550d90(0x188)]===this[_0x550d90(0x19a)][_0x550d90(0x203)]())return;this[_0x550d90(0x17f)]===_0x550d90(0x1bb)&&this[_0x550d90(0x17b)]();const _0x118bf6=_0x38d5a7['data'][_0x550d90(0x1bc)];Object[_0x550d90(0x169)](_0x118bf6)[_0x550d90(0x17e)](_0x15b6a1=>{const _0x42be81=_0x550d90;this[_0x42be81(0x19c)][_0x42be81(0x1c0)](_0x15b6a1['id'],_0x15b6a1[_0x42be81(0x1d2)]?JSON[_0x42be81(0x17c)](_0x15b6a1['params']):null,{'fromCollab':!0x0});});}[_0x7e354b(0x202)](){const _0x187992=_0x7e354b;var _0x4d4e54;this[_0x187992(0x1be)][_0x187992(0x181)]('offline'),(_0x4d4e54=this[_0x187992(0x1b3)])==null||_0x4d4e54[_0x187992(0x1d0)]();}[_0x7e354b(0x177)](){const _0x591435=_0x7e354b;this[_0x591435(0x1be)]['next'](_0x591435(0x1bb)),this[_0x591435(0x1e0)]();}};N=Y([_(0x2,_0x46c0d3),_(0x3,_0x3da970(L)),_(0x4,_0x329504)],N);function Le(){const _0x5afe55=_0x7e354b,_0x136208=_0x52d8b7(S),_0x1c7de1=_0x52d8b7(_0x309518),_0x4e2e9b=_0x197c64(()=>_0x1c7de1[_0x5afe55(0x1c3)](_0x57407e[_0x5afe55(0x1c6)]),void 0x0,!0x1,[]),[_0x51ff43,_0x313832]=_0x4e342b(null),[_0x3267f0,_0x246351]=_0x4e342b(c[_0x5afe55(0x1df)]),_0x3ce05e=_0x5ada0e(null);return _0x1f3ba1(()=>(_0x4e2e9b&&_0x136208[_0x5afe55(0x1fd)](_0x4e2e9b[_0x5afe55(0x1e6)]())['then'](_0x2daca2=>{const _0x590851=_0x5afe55;_0x313832(_0x2daca2),_0x3ce05e['current']=_0x2daca2[_0x590851(0x1aa)]['subscribe'](_0xe79182=>{_0x246351(_0xe79182);});}),()=>{const _0x4ac3db=_0x5afe55;var _0x3ac9ff;(_0x3ac9ff=_0x3ce05e[_0x4ac3db(0x1cc)])==null||_0x3ac9ff[_0x4ac3db(0x1ad)](),_0x3ce05e['current']=null;}),[_0x4e2e9b,_0x136208]),_0x51ff43?_0x101f75(_0x4a2625,{'align':_0x5afe55(0x18c),'disabled':_0x3267f0===c[_0x5afe55(0x1d4)],'className':_0x5afe55(0x1a4),'overlay':_0x101f75(Re,{'status':_0x3267f0,'coordinator':_0x51ff43}),'children':_0x101f75('button',{'className':_0x3ab899('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3267f0===c[_0x5afe55(0x1d4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3267f0!==c[_0x5afe55(0x1d4)]}),'type':_0x5afe55(0x1eb),'children':_0x101f75(W,{'className':'univer-size-4'})})}):null;}function _0xb4b9(){const _0x133c0e=['registerComponent','getCurrentTypeOfUnit$','following','LIVESHARE_OPERATION','UNIVER_SHEET','_stopPresenting','live-share-icon','_sharedOperations','LIVESHARE_TERMINATE','_handleOperation','current','_handleNewHost','setConfig','defs','dispose','stopPresenting','params','http://www.w3.org/2000/svg','OFFLINE','dispose$','2184435vyRhNn','0\x200\x2017\x2017','Stop\x20following','_configService','memberID','entries','LiveShareIcon','none','createInstance','IDLE','_fetchOperations','23241110abiffV','getInitialStates','_entities','NOT_FOLLOWING','_handleNewChangeSets','getUnitId','LIVESHARE_NEW_HOST','not-following','idSuffix','live-share.config','button','You\x27re\x20presenting\x20the\x20document','_beIdle','colorChannel1','displayName','getOwnPropertyDescriptor','749182OTmWPJ','SAME_OPERATION_SHARE_INTERVAL','_unitID','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','attrs','_presenter','requireSession','FOLLOWING','_collabSessionService','from','getTypeOfUnitAdded$','_startLiveShareCoordinator','getLiveShareCoordinator','clear','getConfig','complete','Stop\x20presenting','_handleOffline','getMemberID','_injector','1525COsXFD','univer-mb-3\x20univer-w-full\x20univer-text-sm','send','length','random','disposeWithMe','_stopFollowing','NEW_CHANGESETS','94OkpBaW','get','LIVESHARE_FETCH_OPERATIONS','You\x27re\x20not\x20following\x20the\x20presenter','mask','stopFollowing','values','Start\x20following','21878UeVTZQ','replace','4109060NzxLnJ','text','stringify','add','onRendered','data','_init','registerSharedOperation','currentColor','_startPresenting','_handleOnline','tag','PRESENTING','83432CmpYaR','_startFollowing','parse','tryStartPresenting','forEach','_status','You\x27are\x20offline.','next','OPERATION','unitId','xlink:href','startFollowing','_reporters','675yhkvAu','presenter','_uiPartsService','map','pipe','end','defIds','init','set','children','pluginName','delete','getTypeOfUnitDisposed$','_mountLiveShare','onStarting','symbol','defineProperty','ONLINE','trim','_collabSession','substring','_commandService','sessionStatus$','reverse','default','evenodd','onCommandExecuted','getValue','div','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','override','registerInitialStateReporter','asObservable','1em','has','status$','presenting','includes','unsubscribe','univerjs-icon\x20univerjs-icon-','Present\x20this\x20document','HEADER_MENU','string','_config','_commandDisposable','type','shouldShareOperation','offline','subscribe','204KTLzuv','_handleTerminate','url(#$1','idle','operations','_univerInstanceService','_status$','_liveShareService','executeCommand','find'];_0xb4b9=function(){return _0x133c0e;};return _0xb4b9();}function Re(_0x3a01e6){const _0x1f4065=_0x7e354b,{status:_0x7a958c,coordinator:_0x401e13}=_0x3a01e6;switch(_0x7a958c){case c[_0x1f4065(0x1df)]:return _0x101f75($e,{'coordinator':_0x401e13});case c['FOLLOWING']:return _0x101f75(xe,{'coordinator':_0x401e13});case c[_0x1f4065(0x1e4)]:return _0x101f75(Pe,{'coordinator':_0x401e13});case c[_0x1f4065(0x1d4)]:return _0x101f75(Te,{});case c[_0x1f4065(0x179)]:return _0x101f75(Ae,{'coordinator':_0x401e13});default:return null;}}function $e(_0x31da09){const _0x33b30f=_0x7e354b,{coordinator:_0x2a9b50}=_0x31da09;return _0x110ad3(_0x54296b,{'children':[_0x101f75(_0x33b30f(0x1a3),{'className':_0x33b30f(0x206),'children':_0x33b30f(0x1af)}),_0x101f75(_0x17d00f,{'onClick':()=>_0x2a9b50['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x456230){const _0x3ffdc6=_0x7e354b,{coordinator:_0x1dacfe}=_0x456230;return _0x110ad3(_0x54296b,{'children':[_0x101f75(_0x3ffdc6(0x1a3),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x101f75(_0x17d00f,{'onClick':()=>_0x1dacfe['stopFollowing'](),'children':_0x3ffdc6(0x1d8)})]});}function Pe(_0x22d922){const _0x265a16=_0x7e354b,{coordinator:_0x2407e8}=_0x22d922;return _0x110ad3(_0x54296b,{'children':[_0x101f75(_0x265a16(0x1a3),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x265a16(0x166)}),_0x101f75(_0x17d00f,{'variant':_0x265a16(0x16e),'onClick':()=>_0x2407e8[_0x265a16(0x185)](),'children':_0x265a16(0x16a)})]});}function Ae(_0x50f2a2){const _0x32467a=_0x7e354b,{coordinator:_0x3ce094}=_0x50f2a2;return _0x110ad3(_0x54296b,{'children':[_0x101f75(_0x32467a(0x1a3),{'className':_0x32467a(0x206),'children':_0x32467a(0x1ec)}),_0x101f75(_0x17d00f,{'variant':_0x32467a(0x19f),'onClick':()=>_0x3ce094[_0x32467a(0x1d1)](),'children':_0x32467a(0x201)})]});}function Te(){const _0x435a7c=_0x7e354b;return _0x101f75(_0x54296b,{'children':_0x435a7c(0x180)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x59fa64,_0xfc2787,_0x57c55c,_0xd6543b)=>{const _0x34c20d=_0x7e354b;for(var _0x5d0a0b=_0xd6543b>0x1?void 0x0:_0xd6543b?Fe(_0xfc2787,_0x57c55c):_0xfc2787,_0x447148=_0x59fa64[_0x34c20d(0x208)]-0x1,_0x2f222c;_0x447148>=0x0;_0x447148--)(_0x2f222c=_0x59fa64[_0x447148])&&(_0x5d0a0b=_0x2f222c(_0x5d0a0b)||_0x5d0a0b);return _0x5d0a0b;},A=(_0xac3ffd,_0x1ef171)=>(_0x44f7d8,_0x594181)=>_0x1ef171(_0x44f7d8,_0x594181,_0xac3ffd);let m=class extends _0x347be1{constructor(_0x288204,_0x2b2fe6){const _0x3bc802=_0x7e354b;super(),this[_0x3bc802(0x204)]=_0x288204,this[_0x3bc802(0x189)]=_0x2b2fe6,this['_mountLiveShare']();}[_0x7e354b(0x194)](){const _0x54e333=_0x7e354b;this[_0x54e333(0x20a)](this[_0x54e333(0x189)][_0x54e333(0x1c2)](_0x1da299[_0x54e333(0x1b0)],()=>_0x3c976a(Le,this[_0x54e333(0x204)])));}};m=He([A(0x0,_0x3da970(_0x12624f)),A(0x1,_0x381d5f)],m);const ye=_0x7e354b(0x1ea),T={};var Ue=Object[_0x7e354b(0x1f0)],Ve=(_0x5e8a2d,_0x66567e,_0x375189,_0x457a24)=>{const _0x4a2180=_0x7e354b;for(var _0x15273d=_0x457a24>0x1?void 0x0:_0x457a24?Ue(_0x66567e,_0x375189):_0x66567e,_0x5aec03=_0x5e8a2d[_0x4a2180(0x208)]-0x1,_0x8fb842;_0x5aec03>=0x0;_0x5aec03--)(_0x8fb842=_0x5e8a2d[_0x5aec03])&&(_0x15273d=_0x8fb842(_0x15273d)||_0x15273d);return _0x15273d;},je=(_0x45a569,_0x35d1aa)=>(_0x5c1b29,_0xac8980)=>_0x35d1aa(_0x5c1b29,_0xac8980,_0x45a569);let I=class extends _0x347be1{constructor(_0x5389d2){const _0x1d7680=_0x7e354b;super(),this[_0x1d7680(0x1bf)]=_0x5389d2,this[_0x1d7680(0x173)]();}[_0x7e354b(0x173)](){const _0x20bf6e=_0x7e354b;[_0x219de2['id'],_0x4fb794['id'],_0x5adc8e['id']][_0x20bf6e(0x17e)](_0x109138=>{const _0x2b52a4=_0x20bf6e;this[_0x2b52a4(0x20a)](this['_liveShareService'][_0x2b52a4(0x174)](_0x109138));});}};I=Ve([je(0x0,_0x3da970(L))],I);var Me=Object['defineProperty'],ke=Object[_0x7e354b(0x1f0)],Ge=(_0x8adde0,_0x2eeee3,_0x34a95c)=>_0x2eeee3 in _0x8adde0?Me(_0x8adde0,_0x2eeee3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34a95c}):_0x8adde0[_0x2eeee3]=_0x34a95c,We=(_0x24334f,_0x4010f5,_0x98ef0b,_0x1487a7)=>{const _0x1e228f=_0x7e354b;for(var _0x432b63=_0x1487a7>0x1?void 0x0:_0x1487a7?ke(_0x4010f5,_0x98ef0b):_0x4010f5,_0x224c76=_0x24334f[_0x1e228f(0x208)]-0x1,_0x176277;_0x224c76>=0x0;_0x224c76--)(_0x176277=_0x24334f[_0x224c76])&&(_0x432b63=_0x176277(_0x432b63)||_0x432b63);return _0x432b63;},F=(_0x1d0242,_0x166883)=>(_0x41c192,_0x126f6b)=>_0x166883(_0x41c192,_0x126f6b,_0x1d0242),B=(_0x314725,_0x23becb,_0x218aa5)=>Ge(_0x314725,typeof _0x23becb!='symbol'?_0x23becb+'':_0x23becb,_0x218aa5);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x578106{constructor(_0x138817=T,_0x59cb13,_0x17e7f0){const _0x43ec91=_0x7e354b;super(),this[_0x43ec91(0x1b2)]=_0x138817,this[_0x43ec91(0x204)]=_0x59cb13,this[_0x43ec91(0x1d9)]=_0x17e7f0;const {..._0x34a654}=_0x37ec64({},T,this[_0x43ec91(0x1b2)]);this['_configService'][_0x43ec91(0x1ce)](ye,_0x34a654);}[_0x7e354b(0x195)](){const _0x575686=_0x7e354b;_0x266bf(this[_0x575686(0x204)],_0x357cc7([[L],[S],[I],[m]],this[_0x575686(0x1b2)][_0x575686(0x1a5)])),_0x468664(this[_0x575686(0x204)],[[I]]);}[_0x7e354b(0x171)](){const _0x13b34f=_0x7e354b;_0x468664(this[_0x13b34f(0x204)],[[m]]);}};B(b,_0x7e354b(0x1b4),_0x57407e['UNIVER_UNKNOWN']),B(b,_0x7e354b(0x191),Ye),b=We([_0x2b4dcb(_0x48d4a0),F(0x1,_0x3da970(_0x12624f)),F(0x2,_0x46c0d3)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x56d492=_0x483b;function _0x483b(_0x1fd626,_0x3402d4){const _0x477a78=_0x477a();return _0x483b=function(_0x483b35,_0x39af5e){_0x483b35=_0x483b35-0x17c;let _0x3e13c3=_0x477a78[_0x483b35];return _0x3e13c3;},_0x483b(_0x1fd626,_0x3402d4);}(function(_0x55b285,_0x38d1c5){const _0x32c1dd=_0x483b,_0x15cea1=_0x55b285();while(!![]){try{const _0x1aca66=parseInt(_0x32c1dd(0x197))/0x1+parseInt(_0x32c1dd(0x193))/0x2+-parseInt(_0x32c1dd(0x185))/0x3+parseInt(_0x32c1dd(0x18b))/0x4+-parseInt(_0x32c1dd(0x18d))/0x5+-parseInt(_0x32c1dd(0x192))/0x6+-parseInt(_0x32c1dd(0x182))/0x7;if(_0x1aca66===_0x38d1c5)break;else _0x15cea1['push'](_0x15cea1['shift']());}catch(_0x5dfc6f){_0x15cea1['push'](_0x15cea1['shift']());}}}(_0x477a,0xb06a0));import{LiveShareController as _0x4287f8,LiveShareStatus as _0x37b240}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2d3196}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x422e29}from'@univerjs/sheets';import{SetScrollOperation as _0x6b3b23}from'@univerjs/sheets-ui';import{FRange as _0x31ab95}from'@univerjs/sheets/facade';import{FUniver as _0x2acd17,FEnum as _0x54c764}from'@univerjs/core/facade';class I extends _0x31ab95{['_initialize'](_0x4c8ec7,_0x540a9f,_0x2d27e0,_0x5f3693,_0xb00048){const _0x1e6024=_0x483b,_0xcb78=_0x4c8ec7[_0x1e6024(0x17f)](_0x4287f8),_0x27e657=_0x4c8ec7[_0x1e6024(0x17f)](_0x2d3196),_0x426d03=_0x540a9f['getUnitId'](),_0xd66217=_0x540a9f[_0x1e6024(0x180)](),_0x237798=_0xcb78[_0x1e6024(0x18c)](_0x426d03);(_0x237798==null?void 0x0:_0x237798[_0x1e6024(0x18e)]())!==_0x37b240['PRESENTING']||(_0x2d27e0[_0x1e6024(0x18a)]()!==_0xd66217[_0x1e6024(0x18a)]()&&this[_0x1e6024(0x17d)]['executeCommand'](_0x422e29['id'],{'unitId':_0x426d03,'subUnitId':_0x2d27e0['getSheetId']()}),!_0x27e657[_0x1e6024(0x189)](_0x426d03))||_0xb00048[_0x1e6024(0x190)](_0x6b3b23['id'],{'unitId':_0x540a9f[_0x1e6024(0x195)](),'sheetId':_0x2d27e0[_0x1e6024(0x18a)](),'sheetViewStartRow':_0x5f3693[_0x1e6024(0x183)],'sheetViewStartColumn':_0x5f3693[_0x1e6024(0x188)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x31ab95[_0x56d492(0x17e)](I);class m extends _0x2acd17{['getLiveShareStatus'](){const _0x25a2a3=_0x56d492;var _0x180f2a,_0x5c9400;const _0x36d52f=this['_injector'][_0x25a2a3(0x17f)](_0x4287f8),_0x4cfc9b=(_0x180f2a=this[_0x25a2a3(0x186)]())==null?void 0x0:_0x180f2a['getId']();if(!_0x4cfc9b)throw new Error('No\x20active\x20workbook\x20found.');const _0x11f864=_0x36d52f['getLiveShareCoordinatorSync'](_0x4cfc9b);return(_0x5c9400=_0x11f864==null?void 0x0:_0x11f864[_0x25a2a3(0x18e)]())!=null?_0x5c9400:_0x37b240['IDLE'];}[_0x56d492(0x191)](){const _0x31bfec=_0x56d492;var _0x530c3e;const _0x7a4b61=this[_0x31bfec(0x181)][_0x31bfec(0x17f)](_0x4287f8),_0x1e48e5=(_0x530c3e=this['getActiveWorkbook']())==null?void 0x0:_0x530c3e[_0x31bfec(0x196)]();if(!_0x1e48e5)throw new Error('No\x20active\x20workbook\x20found.');const _0x527c15=_0x7a4b61[_0x31bfec(0x18c)](_0x1e48e5);if(!_0x527c15)throw new Error(_0x31bfec(0x194));_0x527c15['startFollowing']();}['stopFollowing'](){const _0x3388ff=_0x56d492;var _0x3877c1;const _0x3b667a=this['_injector'][_0x3388ff(0x17f)](_0x4287f8),_0x26263a=(_0x3877c1=this[_0x3388ff(0x186)]())==null?void 0x0:_0x3877c1[_0x3388ff(0x196)]();if(!_0x26263a)throw new Error(_0x3388ff(0x18f));const _0x4ee44b=_0x3b667a['getLiveShareCoordinatorSync'](_0x26263a);if(!_0x4ee44b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4ee44b['stopFollowing']();}[_0x56d492(0x184)](){const _0x144525=_0x56d492;var _0x4f56f5;const _0x29c7e0=this[_0x144525(0x181)]['get'](_0x4287f8),_0x274865=(_0x4f56f5=this[_0x144525(0x186)]())==null?void 0x0:_0x4f56f5[_0x144525(0x196)]();if(!_0x274865)throw new Error('No\x20active\x20workbook\x20found.');const _0x167d4b=_0x29c7e0[_0x144525(0x18c)](_0x274865);if(!_0x167d4b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x167d4b[_0x144525(0x17c)]();}[_0x56d492(0x187)](){const _0x1ee2b5=_0x56d492;var _0x157e3e;const _0x1e90dd=this['_injector'][_0x1ee2b5(0x17f)](_0x4287f8),_0x1b2294=(_0x157e3e=this['getActiveWorkbook']())==null?void 0x0:_0x157e3e[_0x1ee2b5(0x196)]();if(!_0x1b2294)throw new Error(_0x1ee2b5(0x18f));const _0x242af4=_0x1e90dd[_0x1ee2b5(0x18c)](_0x1b2294);if(!_0x242af4)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x242af4[_0x1ee2b5(0x187)]();}}_0x2acd17[_0x56d492(0x17e)](m);function _0x477a(){const _0x2f21d2=['No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getUnitId','getId','574846oTtjDT','tryStartPresenting','_commandService','extend','get','getActiveSheet','_injector','2291807CCkOCM','startRow','startPresenting','488631cqGdHh','getActiveWorkbook','stopPresenting','startColumn','getRenderById','getSheetId','4989500FWQkzo','getLiveShareCoordinatorSync','3751190iwIfJI','getStatus','No\x20active\x20workbook\x20found.','syncExecuteCommand','startFollowing','7241016DfodAc','2695446iZXFhc'];_0x477a=function(){return _0x2f21d2;};return _0x477a();}class C extends _0x54c764{get['LiveShareStatusEnum'](){return _0x37b240;}}_0x54c764['extend'](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1ff471=_0x7fae;(function(_0x67af08,_0x235412){const _0x359b7c=_0x7fae,_0x47dddf=_0x67af08();while(!![]){try{const _0x30b74c=-parseInt(_0x359b7c(0x23b))/0x1*(-parseInt(_0x359b7c(0x209))/0x2)+-parseInt(_0x359b7c(0x1c2))/0x3*(parseInt(_0x359b7c(0x1d9))/0x4)+parseInt(_0x359b7c(0x248))/0x5*(-parseInt(_0x359b7c(0x1cc))/0x6)+parseInt(_0x359b7c(0x20b))/0x7+-parseInt(_0x359b7c(0x21b))/0x8+-parseInt(_0x359b7c(0x1dd))/0x9+parseInt(_0x359b7c(0x1e9))/0xa;if(_0x30b74c===_0x235412)break;else _0x47dddf['push'](_0x47dddf['shift']());}catch(_0x41425f){_0x47dddf['push'](_0x47dddf['shift']());}}}(_0x5570,0xb8c28));var J=Object[_0x1ff471(0x240)],K=(_0x2bd2c8,_0x35c835,_0x534633)=>_0x35c835 in _0x2bd2c8?J(_0x2bd2c8,_0x35c835,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x534633}):_0x2bd2c8[_0x35c835]=_0x534633,u=(_0x48cfe1,_0xde295,_0x4bdd67)=>K(_0x48cfe1,typeof _0xde295!=_0x1ff471(0x1d4)?_0xde295+'':_0xde295,_0x4bdd67);import{Disposable as _0x5efc82,toDisposable as _0x40b029,IUniverInstanceService as _0x407f4a,Inject as _0x530cef,Injector as _0x342037,IConfigService as _0x495339,ICommandService as _0x244e30,RxDisposable as _0x27b7ba,UniverInstanceType as _0x391209,DisposableCollection as _0x4ea11a,CommandType as _0x3c20aa,DependentOn as _0x148bca,Plugin as _0x41c584,merge as _0x2c2112,registerDependencies as _0x5a0d1b,mergeOverrideWithDependencies as _0x5a4f61,touchDependencies as _0x2d8b65}from'@univerjs/core';import{useDependency as _0x11f1e0,useObservable as _0x1e059b,IUIPartsService as _0x5b30b3,BuiltInUIPart as _0x25f8f5,connectInjector as _0x33fbbf}from'@univerjs/ui';import{jsx as _0x44ff08,jsxs as _0xdeaf32,Fragment as _0x47942b}from'react/jsx-runtime';import{Dropdown as _0x21ed3d,clsx as _0x70919e,Button as _0x4f7539}from'@univerjs/design';import{useRef as _0x4576d0,createElement as _0x241ac0,forwardRef as _0x197dd8,useState as _0x155574,useEffect as _0x5bfbc0}from'react';import{CollaborationEvent as _0xb1447,parseProtocolChangeset as _0x331d5a}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x57c410,SessionStatus as _0x2ea114,UniverCollaborationClientPlugin as _0x18c6f0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x38f5e0,SetWorksheetActiveOperation as _0x5c8388}from'@univerjs/sheets';import{BehaviorSubject as _0x3757b0,Subject as _0x5667a6}from'rxjs';import{takeUntil as _0x1eb310,throttleTime as _0x193b30}from'rxjs/operators';import{SetZoomRatioOperation as _0x55628f,SetScrollOperation as _0x3efdd7}from'@univerjs/sheets-ui';function k({ref:_0x54d3c3,..._0x588c5f}){const _0x442a32=_0x1ff471,{icon:_0x3a593f,id:_0x52a812,className:_0x2b9ded,extend:_0x5d9e52,..._0xc787dc}=_0x588c5f,_0x302977=(_0x442a32(0x1db)+_0x52a812+'\x20'+(_0x2b9ded||''))[_0x442a32(0x1f3)](),_0x2773f6=_0x4576d0('_'+Oe());return G(_0x3a593f,''+_0x52a812,{'defIds':_0x3a593f[_0x442a32(0x1be)],'idSuffix':_0x2773f6[_0x442a32(0x1fc)]},{'ref':_0x54d3c3,'className':_0x302977,..._0xc787dc},_0x5d9e52);}function G(_0x26cd31,_0x51c6a2,_0x103abe,_0x974482,_0x4d40f3){const _0x16ef69=_0x1ff471;return _0x241ac0(_0x26cd31['tag'],{'key':_0x51c6a2,...be(_0x26cd31,_0x103abe,_0x4d40f3),..._0x974482},(Ee(_0x26cd31,_0x103abe)[_0x16ef69(0x1e8)]||[])['map']((_0x3decb9,_0xcda044)=>G(_0x3decb9,_0x51c6a2+'-'+_0x26cd31['tag']+'-'+_0xcda044,_0x103abe,void 0x0,_0x4d40f3)));}function be(_0x2f444c,_0x13f485,_0x51387c){const _0x17eb68=_0x1ff471,_0x324824={..._0x2f444c[_0x17eb68(0x1b3)]};_0x51387c!=null&&_0x51387c[_0x17eb68(0x1a9)]&&_0x324824[_0x17eb68(0x238)]===_0x17eb68(0x1a9)&&(_0x324824[_0x17eb68(0x238)]=_0x51387c[_0x17eb68(0x1a9)]),_0x2f444c[_0x17eb68(0x213)]==='mask'&&_0x324824['id']&&(_0x324824['id']=_0x324824['id']+_0x13f485[_0x17eb68(0x211)]),Object[_0x17eb68(0x216)](_0x324824)[_0x17eb68(0x1ad)](([_0x5ddc4a,_0x4f10f4])=>{const _0x2c57c8=_0x17eb68;_0x5ddc4a==='mask'&&typeof _0x4f10f4==_0x2c57c8(0x239)&&(_0x324824[_0x5ddc4a]=_0x4f10f4['replace'](/url\(#(.*)\)/,'url(#$1'+_0x13f485[_0x2c57c8(0x211)]+')'));});const {defIds:_0x19bfd7}=_0x13f485;return!_0x19bfd7||_0x19bfd7[_0x17eb68(0x233)]===0x0||(_0x2f444c[_0x17eb68(0x213)]===_0x17eb68(0x223)&&_0x324824[_0x17eb68(0x1f9)]&&(_0x324824[_0x17eb68(0x1f9)]=_0x324824[_0x17eb68(0x1f9)]+_0x13f485[_0x17eb68(0x211)]),Object[_0x17eb68(0x216)](_0x324824)[_0x17eb68(0x1ad)](([_0x4fbe80,_0x44586b])=>{const _0x1491e5=_0x17eb68;typeof _0x44586b==_0x1491e5(0x239)&&(_0x324824[_0x4fbe80]=_0x44586b[_0x1491e5(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x13f485[_0x1491e5(0x211)]+')'));})),_0x324824;}function Ee(_0x40f6af,_0xe39401){const _0x16df81=_0x1ff471;var _0x304159;const {defIds:_0x53abff}=_0xe39401;return!_0x53abff||_0x53abff[_0x16df81(0x233)]===0x0?_0x40f6af:_0x40f6af[_0x16df81(0x213)]==='defs'&&((_0x304159=_0x40f6af[_0x16df81(0x1e8)])!=null&&_0x304159[_0x16df81(0x233)])?{..._0x40f6af,'children':_0x40f6af[_0x16df81(0x1e8)][_0x16df81(0x1ab)](_0x2955b0=>typeof _0x2955b0[_0x16df81(0x1b3)]['id']==_0x16df81(0x239)&&_0x53abff&&_0x53abff[_0x16df81(0x1cd)](_0x2955b0[_0x16df81(0x1b3)]['id'])?{..._0x2955b0,'attrs':{..._0x2955b0[_0x16df81(0x1b3)],'id':_0x2955b0['attrs']['id']+_0xe39401['idSuffix']}}:_0x2955b0)}:_0x40f6af;}function Oe(){const _0x3058eb=_0x1ff471;return Math[_0x3058eb(0x1ea)]()[_0x3058eb(0x1a4)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x1ff471(0x20f);const we={'tag':_0x1ff471(0x1bf),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1ff471(0x1ca),'viewBox':_0x1ff471(0x1f2),'width':_0x1ff471(0x1c8),'height':_0x1ff471(0x1c8)},'children':[{'tag':'path','attrs':{'fill':_0x1ff471(0x1fb),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x1ff471(0x1fb),'d':_0x1ff471(0x1d3),'fillRule':_0x1ff471(0x21e),'clipRule':'evenodd'}}]},W=_0x197dd8(function(_0x1a2eaf,_0x3f0300){const _0x515e7e=_0x1ff471;return _0x241ac0(k,Object[_0x515e7e(0x1c1)]({},_0x1a2eaf,{'id':_0x515e7e(0x1c0),'ref':_0x3f0300,'icon':we}));});W['displayName']=_0x1ff471(0x1f7);class L extends _0x5efc82{constructor(){const _0x598f4d=_0x1ff471;super(...arguments),u(this,_0x598f4d(0x1fa),new Set()),u(this,'_reporters',new Set());}['registerSharedOperation'](_0x5e6e0a){const _0x36c790=_0x1ff471;return this['_sharedOperations']['add'](_0x5e6e0a),_0x40b029(()=>this['_sharedOperations'][_0x36c790(0x227)](_0x5e6e0a));}[_0x1ff471(0x1b0)](_0x1bf75a){const _0x22ed6a=_0x1ff471;return this[_0x22ed6a(0x1d2)][_0x22ed6a(0x21a)](_0x1bf75a),_0x40b029(()=>this['_reporters'][_0x22ed6a(0x227)](_0x1bf75a));}[_0x1ff471(0x1ff)](_0x30d843){const _0x444cec=_0x1ff471;return this[_0x444cec(0x1fa)][_0x444cec(0x222)](_0x30d843);}[_0x1ff471(0x1a6)](_0x26d9cd){const _0x12b772=_0x1ff471;return Array[_0x12b772(0x1a7)](this[_0x12b772(0x1d2)])[_0x12b772(0x1ab)](_0x16b419=>_0x16b419(_0x26d9cd));}}var Ne=Object[_0x1ff471(0x1c4)],Y=(_0x19fe3a,_0x147680,_0x34b2f9,_0x1d65c6)=>{const _0x302b59=_0x1ff471;for(var _0x3b5c18=_0x1d65c6>0x1?void 0x0:_0x1d65c6?Ne(_0x147680,_0x34b2f9):_0x147680,_0x4fe29e=_0x19fe3a[_0x302b59(0x233)]-0x1,_0x377afb;_0x4fe29e>=0x0;_0x4fe29e--)(_0x377afb=_0x19fe3a[_0x4fe29e])&&(_0x3b5c18=_0x377afb(_0x3b5c18)||_0x3b5c18);return _0x3b5c18;},_=(_0x346bd6,_0x42fa7c)=>(_0x3bdd66,_0x1146b9)=>_0x42fa7c(_0x3bdd66,_0x1146b9,_0x346bd6);let S=class extends _0x27b7ba{constructor(_0x570829,_0x20eb27,_0xef5d28){const _0x25f2e2=_0x1ff471;super(),u(this,_0x25f2e2(0x1e6),new Map()),(this[_0x25f2e2(0x1fd)]=_0x570829,this[_0x25f2e2(0x1ed)]=_0x20eb27,this[_0x25f2e2(0x1d7)]=_0xef5d28,this[_0x25f2e2(0x1c9)]());}async[_0x1ff471(0x22a)](_0x3ba235){const _0x1e084b=_0x1ff471;return this[_0x1e084b(0x1e6)]['has'](_0x3ba235)||await this[_0x1e084b(0x1fe)](_0x3ba235),this[_0x1e084b(0x1e6)][_0x1e084b(0x1a5)](_0x3ba235);}[_0x1ff471(0x220)](_0xc0e10c){const _0xec5ee5=_0x1ff471;var _0x1e1988;return(_0x1e1988=this[_0xec5ee5(0x1e6)][_0xec5ee5(0x1a5)](_0xc0e10c))!=null?_0x1e1988:null;}[_0x1ff471(0x1c9)](){const _0x4f2120=_0x1ff471;this[_0x4f2120(0x1fd)]['getTypeOfUnitAdded$'](_0x391209[_0x4f2120(0x234)])[_0x4f2120(0x1d0)](_0x1eb310(this[_0x4f2120(0x237)]))[_0x4f2120(0x1eb)](async _0x329f88=>{const _0x5f31fe=_0x4f2120,_0x4b15cf=_0x329f88[_0x5f31fe(0x212)]();this[_0x5f31fe(0x1e6)][_0x5f31fe(0x222)](_0x4b15cf)||this[_0x5f31fe(0x1fe)](_0x4b15cf);}),this[_0x4f2120(0x1fd)][_0x4f2120(0x1de)](_0x391209['UNIVER_SHEET'])[_0x4f2120(0x1d0)](_0x1eb310(this[_0x4f2120(0x237)]))[_0x4f2120(0x1eb)](_0x5bcc72=>{const _0xb0c83f=_0x4f2120,_0xba9db7=_0x5bcc72[_0xb0c83f(0x212)](),_0x4106f5=this[_0xb0c83f(0x1e6)]['get'](_0xba9db7);_0x4106f5==null||_0x4106f5['dispose']();});}async['_startLiveShareCoordinator'](_0x5d8ac4){const _0xeb6207=_0x1ff471,_0x5439d8=await this[_0xeb6207(0x1d7)]['requireSession'](_0x5d8ac4),_0x35d44b=this[_0xeb6207(0x1ed)][_0xeb6207(0x1e2)](N,_0x5d8ac4,_0x5439d8);return _0x35d44b['init'](),this[_0xeb6207(0x1e6)][_0xeb6207(0x214)](_0x5d8ac4,_0x35d44b),_0x35d44b;}};S=Y([_(0x0,_0x407f4a),_(0x1,_0x530cef(_0x342037)),_(0x2,_0x530cef(_0x57c410))],S);var c=(_0x4adbe8=>(_0x4adbe8[_0x1ff471(0x1a2)]=_0x1ff471(0x243),_0x4adbe8['IDLE']='idle',_0x4adbe8[_0x1ff471(0x1b6)]=_0x1ff471(0x21f),_0x4adbe8['NOT_FOLLOWING']=_0x1ff471(0x244),_0x4adbe8[_0x1ff471(0x21c)]=_0x1ff471(0x230),_0x4adbe8))(c||{});const Ce=_0x1ff471(0x1d5),De=0xc8;let N=class extends _0x27b7ba{constructor(_0x4b9732,_0x1fc442,_0x129c59,_0x310a79,_0x16863c){const _0x5b4e4e=_0x1ff471;super(),u(this,_0x5b4e4e(0x23f),new _0x3757b0(_0x5b4e4e(0x1b5))),u(this,'status$',this[_0x5b4e4e(0x23f)]['asObservable']()),u(this,_0x5b4e4e(0x1c9),!0x1),u(this,'_commandDisposable',null),u(this,_0x5b4e4e(0x1a3),null),(this[_0x5b4e4e(0x210)]=_0x4b9732,this[_0x5b4e4e(0x22b)]=_0x1fc442,this['_configService']=_0x129c59,this[_0x5b4e4e(0x1ae)]=_0x310a79,this[_0x5b4e4e(0x228)]=_0x16863c);}get['_status'](){const _0x4afec2=_0x1ff471;return this[_0x4afec2(0x23f)][_0x4afec2(0x217)]();}[_0x1ff471(0x1aa)](){const _0x490e09=_0x1ff471;var _0x1537bf;(_0x1537bf=this[_0x490e09(0x1d1)])==null||_0x1537bf['dispose'](),this[_0x490e09(0x23f)][_0x490e09(0x202)]('idle'),this[_0x490e09(0x23f)]['complete']();}[_0x1ff471(0x246)](){const _0x5ca0e9=_0x1ff471;return this[_0x5ca0e9(0x229)];}[_0x1ff471(0x204)](){const _0xeafc37=_0x1ff471;this['_init']||(this['_init']=!0x0,this['_collabSession']['sessionStatus$'][_0xeafc37(0x1d0)](_0x1eb310(this['dispose$']))[_0xeafc37(0x1eb)](_0x98d964=>{const _0x208f2e=_0xeafc37;switch(_0x98d964){case _0x2ea114[_0x208f2e(0x1a2)]:this[_0x208f2e(0x1bc)]();break;case _0x2ea114[_0x208f2e(0x20d)]:this[_0x208f2e(0x1b7)]();break;}}),this[_0xeafc37(0x22b)][_0xeafc37(0x23e)][_0xeafc37(0x1d0)](_0x1eb310(this[_0xeafc37(0x237)]))[_0xeafc37(0x1eb)](_0x57590c=>{const _0x5e2632=_0xeafc37,{eventID:_0x4e82df}=_0x57590c;switch(_0x4e82df){case _0xb1447['LIVESHARE_NEW_HOST']:this[_0x5e2632(0x1f6)](_0x57590c);break;case _0xb1447['LIVESHARE_OPERATION']:this[_0x5e2632(0x221)](_0x57590c);break;case _0xb1447['LIVESHARE_TERMINATE']:this[_0x5e2632(0x218)]();break;case _0xb1447[_0x5e2632(0x242)]:this['_handleNewChangeSets'](_0x57590c);break;}}));}['tryStartPresenting'](){const _0x22b46b=_0x1ff471;this[_0x22b46b(0x22b)]['send']({'eventID':_0xb1447[_0x22b46b(0x215)],'data':{'unitID':this[_0x22b46b(0x210)],'userID':this[_0x22b46b(0x22b)][_0x22b46b(0x232)]()}},this[_0x22b46b(0x210)]);}['stopPresenting'](){const _0x454ee6=_0x1ff471;this[_0x454ee6(0x229)]===_0x454ee6(0x230)&&(this[_0x454ee6(0x23f)]['next'](_0x454ee6(0x1b5)),this[_0x454ee6(0x22b)][_0x454ee6(0x22c)]({'eventID':_0xb1447[_0x454ee6(0x1f0)],'data':{'unitID':this[_0x454ee6(0x210)]}},this['_unitID']));}[_0x1ff471(0x1e3)](){const _0x216134=_0x1ff471;this[_0x216134(0x229)]===_0x216134(0x244)&&(this[_0x216134(0x23f)][_0x216134(0x202)](_0x216134(0x21f)),this['_startFollowing']());}[_0x1ff471(0x200)](){const _0x1e6a64=_0x1ff471;this['_status']===_0x1e6a64(0x21f)&&this[_0x1e6a64(0x1c6)]();}['_handleNewHost'](_0x485a12){const _0x103ddb=_0x1ff471,{presenter:_0x50273e}=_0x485a12['data'],_0xb41cf5=this['_collabSession'][_0x103ddb(0x232)]();this['_presenter']=_0x50273e,_0x50273e===_0xb41cf5?(this[_0x103ddb(0x1c6)](),this[_0x103ddb(0x219)]()):this[_0x103ddb(0x229)]!==_0x103ddb(0x244)&&(this[_0x103ddb(0x1b2)](),this[_0x103ddb(0x1e1)]());}[_0x1ff471(0x1c5)](){const _0x192748=_0x1ff471,_0x2cdf5d={'eventID':_0xb1447[_0x192748(0x21d)]};this['_collabSession'][_0x192748(0x22c)](_0x2cdf5d,this[_0x192748(0x210)]);}[_0x1ff471(0x218)](){const _0x4a5074=_0x1ff471;this['_presenter']=null,this['_status']!==_0x4a5074(0x230)&&this[_0x4a5074(0x1ac)]();}[_0x1ff471(0x1cb)](_0x4ee193){const _0x3dfc98=_0x1ff471;if(this['_status']==='following'&&this[_0x3dfc98(0x1a3)]===_0x4ee193[_0x3dfc98(0x1ef)][_0x3dfc98(0x22d)]){const _0x1861ce=_0x331d5a(_0x4ee193['data'])[_0x3dfc98(0x249)]['reverse']()[_0x3dfc98(0x20c)](_0x10d34=>_0x10d34['id']===_0x38f5e0['id']);if(_0x1861ce){const _0x5859e8=_0x1861ce[_0x3dfc98(0x1bb)][_0x3dfc98(0x1e7)],_0x21b363=_0x1861ce[_0x3dfc98(0x1bb)][_0x3dfc98(0x1d8)]['id'];setTimeout(()=>{const _0x478ec3=_0x3dfc98;this[_0x478ec3(0x228)][_0x478ec3(0x23a)](_0x5c8388['id'],{'unitId':_0x5859e8,'subUnitId':_0x21b363},{'fromCollab':!0x0});});}}}[_0x1ff471(0x219)](){const _0x488fec=_0x1ff471;this[_0x488fec(0x23f)][_0x488fec(0x202)]('presenting');const _0x2d6ee2=new Map(),_0x21ce20=this[_0x488fec(0x1d1)]=new _0x4ea11a();_0x21ce20['add'](_0x40b029(()=>{const _0x4a657b=_0x488fec;_0x2d6ee2[_0x4a657b(0x1ad)](_0x437cae=>_0x437cae[_0x4a657b(0x203)]()),_0x2d6ee2[_0x4a657b(0x20e)]();})),_0x21ce20[_0x488fec(0x21a)](this['_commandService'][_0x488fec(0x23c)](_0x4ffe17=>{const _0x5f4ba5=_0x488fec;var _0x7cf43b;if(_0x4ffe17[_0x5f4ba5(0x1b9)]!==_0x3c20aa[_0x5f4ba5(0x1e0)]||!this['_liveShareService'][_0x5f4ba5(0x1ff)](_0x4ffe17['id']))return;const {id:_0x5821aa}=_0x4ffe17;let _0x5ab94f;_0x2d6ee2[_0x5f4ba5(0x222)](_0x5821aa)?_0x5ab94f=_0x2d6ee2[_0x5f4ba5(0x1a5)](_0x5821aa):(_0x5ab94f=new _0x5667a6(),_0x2d6ee2[_0x5f4ba5(0x214)](_0x5821aa,_0x5ab94f),_0x5ab94f[_0x5f4ba5(0x1d0)](_0x193b30((_0x7cf43b=this[_0x5f4ba5(0x1b8)][_0x5f4ba5(0x224)](Ce))!=null?_0x7cf43b:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5f4ba5(0x1eb)](_0x417165=>{const _0x3feb3b=_0x5f4ba5;this[_0x3feb3b(0x22b)]['send']({'eventID':_0xb1447[_0x3feb3b(0x1cf)],'data':{'unitID':this[_0x3feb3b(0x210)],'operations':{[_0x417165['id']]:{'id':_0x417165['id'],'params':JSON[_0x3feb3b(0x225)](_0x417165[_0x3feb3b(0x1bb)])}}}},this[_0x3feb3b(0x210)]);})),_0x5ab94f[_0x5f4ba5(0x202)](_0x4ffe17);})),this[_0x488fec(0x1ae)][_0x488fec(0x1a6)](this['_unitID'])[_0x488fec(0x1ad)](_0x407797=>this[_0x488fec(0x22b)][_0x488fec(0x22c)]({'eventID':_0xb1447[_0x488fec(0x1cf)],'data':{'unitID':this[_0x488fec(0x210)],'operations':{[_0x407797['id']]:{'id':_0x407797['id'],'params':JSON[_0x488fec(0x225)](_0x407797['params'])}}}},this[_0x488fec(0x210)]));}[_0x1ff471(0x1b2)](){const _0x3499b0=_0x1ff471;var _0x5e2876;this[_0x3499b0(0x23f)][_0x3499b0(0x202)](_0x3499b0(0x1b5)),(_0x5e2876=this['_commandDisposable'])==null||_0x5e2876[_0x3499b0(0x1aa)](),this['_commandDisposable']=null;}[_0x1ff471(0x1e1)](){const _0x5ca5fa=_0x1ff471;var _0x40e911;(_0x40e911=this[_0x5ca5fa(0x1d1)])==null||_0x40e911[_0x5ca5fa(0x1aa)](),this[_0x5ca5fa(0x23f)][_0x5ca5fa(0x202)](_0x5ca5fa(0x21f));}[_0x1ff471(0x1ac)](){const _0x372a77=_0x1ff471;var _0x45999a;this[_0x372a77(0x23f)][_0x372a77(0x202)](_0x372a77(0x1b5)),(_0x45999a=this[_0x372a77(0x1d1)])==null||_0x45999a[_0x372a77(0x1aa)](),this[_0x372a77(0x1d1)]=null;}[_0x1ff471(0x1c6)](){const _0x3ca668=_0x1ff471;var _0x183a59;this[_0x3ca668(0x23f)]['next'](_0x3ca668(0x244)),(_0x183a59=this[_0x3ca668(0x1d1)])==null||_0x183a59['dispose']();}[_0x1ff471(0x221)](_0x14f9a9){const _0x56de70=_0x1ff471;if([_0x56de70(0x230),_0x56de70(0x244),_0x56de70(0x243)][_0x56de70(0x1cd)](this[_0x56de70(0x229)])||!_0x14f9a9[_0x56de70(0x1ef)][_0x56de70(0x1df)]||_0x14f9a9[_0x56de70(0x1ef)]['presenter']===this[_0x56de70(0x22b)][_0x56de70(0x232)]())return;this[_0x56de70(0x229)]===_0x56de70(0x1b5)&&this[_0x56de70(0x1e1)]();const _0x256a7d=_0x14f9a9[_0x56de70(0x1ef)][_0x56de70(0x1e4)];Object[_0x56de70(0x1dc)](_0x256a7d)['forEach'](_0x1098a5=>{const _0x829016=_0x56de70;this[_0x829016(0x228)]['executeCommand'](_0x1098a5['id'],_0x1098a5['params']?JSON['parse'](_0x1098a5[_0x829016(0x1bb)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4503d7=_0x1ff471;var _0x11193f;this[_0x4503d7(0x23f)][_0x4503d7(0x202)](_0x4503d7(0x243)),(_0x11193f=this[_0x4503d7(0x1d1)])==null||_0x11193f['dispose']();}['_handleOnline'](){const _0x25027b=_0x1ff471;this[_0x25027b(0x23f)][_0x25027b(0x202)](_0x25027b(0x1b5)),this[_0x25027b(0x1c5)]();}};N=Y([_(0x2,_0x495339),_(0x3,_0x530cef(L)),_(0x4,_0x244e30)],N);function Le(){const _0x360dd8=_0x1ff471,_0x480058=_0x11f1e0(S),_0x30294c=_0x11f1e0(_0x407f4a),_0x3103a8=_0x1e059b(()=>_0x30294c[_0x360dd8(0x1b4)](_0x391209['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3fd68c,_0x220472]=_0x155574(null),[_0x56c686,_0x178780]=_0x155574(c[_0x360dd8(0x201)]),_0xef2c91=_0x4576d0(null);return _0x5bfbc0(()=>(_0x3103a8&&_0x480058[_0x360dd8(0x22a)](_0x3103a8['getUnitId']())[_0x360dd8(0x23d)](_0x4a1edd=>{const _0x5e08dd=_0x360dd8;_0x220472(_0x4a1edd),_0xef2c91[_0x5e08dd(0x1fc)]=_0x4a1edd[_0x5e08dd(0x1ce)][_0x5e08dd(0x1eb)](_0x21c8ae=>{_0x178780(_0x21c8ae);});}),()=>{const _0x286259=_0x360dd8;var _0xb4bd9a;(_0xb4bd9a=_0xef2c91[_0x286259(0x1fc)])==null||_0xb4bd9a[_0x286259(0x1bd)](),_0xef2c91[_0x286259(0x1fc)]=null;}),[_0x3103a8,_0x480058]),_0x3fd68c?_0x44ff08(_0x21ed3d,{'align':_0x360dd8(0x1f5),'disabled':_0x56c686===c[_0x360dd8(0x1a2)],'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':_0x44ff08(Re,{'status':_0x56c686,'coordinator':_0x3fd68c}),'children':_0x44ff08(_0x360dd8(0x1c7),{'className':_0x70919e(_0x360dd8(0x236),{'univer-cursor-not-allowed':_0x56c686===c[_0x360dd8(0x1a2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56c686!==c[_0x360dd8(0x1a2)]}),'type':_0x360dd8(0x1c7),'children':_0x44ff08(W,{'className':_0x360dd8(0x205)})})}):null;}function Re(_0x28e239){const _0x39cc04=_0x1ff471,{status:_0x11d2b3,coordinator:_0x3cf1e7}=_0x28e239;switch(_0x11d2b3){case c[_0x39cc04(0x201)]:return _0x44ff08($e,{'coordinator':_0x3cf1e7});case c['FOLLOWING']:return _0x44ff08(xe,{'coordinator':_0x3cf1e7});case c[_0x39cc04(0x1a8)]:return _0x44ff08(Pe,{'coordinator':_0x3cf1e7});case c[_0x39cc04(0x1a2)]:return _0x44ff08(Te,{});case c[_0x39cc04(0x21c)]:return _0x44ff08(Ae,{'coordinator':_0x3cf1e7});default:return null;}}function $e(_0x424685){const _0x367646=_0x1ff471,{coordinator:_0x2e5116}=_0x424685;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x367646(0x241),{'className':_0x367646(0x1b1),'children':_0x367646(0x235)}),_0x44ff08(_0x4f7539,{'onClick':()=>_0x2e5116[_0x367646(0x1f1)](),'children':'Start'})]});}function xe(_0x2e1c24){const _0x4fa2e6=_0x1ff471,{coordinator:_0x54c7c5}=_0x2e1c24;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x4fa2e6(0x241),{'className':_0x4fa2e6(0x1b1),'children':_0x4fa2e6(0x208)}),_0x44ff08(_0x4f7539,{'onClick':()=>_0x54c7c5['stopFollowing'](),'children':_0x4fa2e6(0x1f8)})]});}function Pe(_0x2e475d){const _0x523dff=_0x1ff471,{coordinator:_0x448d74}=_0x2e475d;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08(_0x523dff(0x241),{'className':_0x523dff(0x1b1),'children':_0x523dff(0x1af)}),_0x44ff08(_0x4f7539,{'variant':_0x523dff(0x226),'onClick':()=>_0x448d74[_0x523dff(0x1e3)](),'children':_0x523dff(0x1ec)})]});}function Ae(_0x5f022d){const _0x89213b=_0x1ff471,{coordinator:_0x3a058c}=_0x5f022d;return _0xdeaf32(_0x47942b,{'children':[_0x44ff08('div',{'className':_0x89213b(0x1b1),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x44ff08(_0x4f7539,{'variant':_0x89213b(0x207),'onClick':()=>_0x3a058c['stopPresenting'](),'children':_0x89213b(0x231)})]});}function Te(){return _0x44ff08(_0x47942b,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x1ff471(0x1c4)],He=(_0x2f8122,_0x524e5f,_0x361076,_0x36454d)=>{for(var _0x4c0982=_0x36454d>0x1?void 0x0:_0x36454d?Fe(_0x524e5f,_0x361076):_0x524e5f,_0x371a1a=_0x2f8122['length']-0x1,_0x65146f;_0x371a1a>=0x0;_0x371a1a--)(_0x65146f=_0x2f8122[_0x371a1a])&&(_0x4c0982=_0x65146f(_0x4c0982)||_0x4c0982);return _0x4c0982;},A=(_0x275cf4,_0xd2ddea)=>(_0x1c3e8e,_0x198788)=>_0xd2ddea(_0x1c3e8e,_0x198788,_0x275cf4);function _0x7fae(_0x3fcfbd,_0x1f6936){const _0x557056=_0x5570();return _0x7fae=function(_0x7fae7c,_0x38b49c){_0x7fae7c=_0x7fae7c-0x1a2;let _0x5cda0d=_0x557056[_0x7fae7c];return _0x5cda0d;},_0x7fae(_0x3fcfbd,_0x1f6936);}let m=class extends _0x5efc82{constructor(_0x205e68,_0x419cec){const _0x1d14f7=_0x1ff471;super(),this[_0x1d14f7(0x1ed)]=_0x205e68,this[_0x1d14f7(0x247)]=_0x419cec,this[_0x1d14f7(0x206)]();}['_mountLiveShare'](){const _0x54f196=_0x1ff471;this[_0x54f196(0x1c3)](this[_0x54f196(0x247)][_0x54f196(0x1ba)](_0x25f8f5[_0x54f196(0x1f4)],()=>_0x33fbbf(Le,this['_injector'])));}};function _0x5570(){const _0x40f71a=['_stopFollowing','button','1em','_init','none','_handleNewChangeSets','6PLIzZJ','includes','status$','LIVESHARE_OPERATION','pipe','_commandDisposable','_reporters','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','symbol','SAME_OPERATION_SHARE_INTERVAL','replace','_collabSessionService','sheet','4PhrxBd','onRendered','univerjs-icon\x20univerjs-icon-','values','11830554bUmnuc','getTypeOfUnitDisposed$','presenter','OPERATION','_startFollowing','createInstance','startFollowing','operations','override','_entities','unitId','children','28307970NfiiNQ','random','subscribe','Start\x20following','_injector','registerSharedOperation','data','LIVESHARE_TERMINATE','tryStartPresenting','0\x200\x2017\x2017','trim','HEADER_MENU','end','_handleNewHost','LiveShareIcon','Stop\x20following','xlink:href','_sharedOperations','currentColor','current','_univerInstanceService','_startLiveShareCoordinator','shouldShareOperation','stopFollowing','IDLE','next','complete','init','univer-size-4','_mountLiveShare','default','You\x27re\x20following\x20the\x20presenter','2DonwDo','UNIVER_LIVE_SHARE_PLUGIN','9211230eKNjPG','find','ONLINE','clear','UniverIcon','_unitID','idSuffix','getUnitId','tag','set','LIVESHARE_REQUEST_HOST','entries','getValue','_handleTerminate','_startPresenting','add','7099752pkzOlA','PRESENTING','LIVESHARE_FETCH_OPERATIONS','evenodd','following','getLiveShareCoordinatorSync','_handleOperation','has','use','getConfig','stringify','text','delete','_commandService','_status','getLiveShareCoordinator','_collabSession','send','memberID','setConfig','_config','presenting','Stop\x20presenting','getMemberID','length','UNIVER_SHEET','Present\x20this\x20document','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose$','fill','string','executeCommand','567211CHxsmP','onCommandExecuted','then','event$','_status$','defineProperty','div','NEW_CHANGESETS','offline','not-following','onStarting','getStatus','_uiPartsService','5036170qrStPd','mutations','UNIVER_UNKNOWN','OFFLINE','_presenter','toString','get','getInitialStates','from','NOT_FOLLOWING','colorChannel1','dispose','map','_beIdle','forEach','_liveShareService','You\x27re\x20not\x20following\x20the\x20presenter','registerInitialStateReporter','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting','attrs','getCurrentTypeOfUnit$','idle','FOLLOWING','_handleOnline','_configService','type','registerComponent','params','_handleOffline','unsubscribe','defIds','svg','live-share-icon','assign','2243739giwFqR','disposeWithMe','getOwnPropertyDescriptor','_fetchOperations'];_0x5570=function(){return _0x40f71a;};return _0x5570();}m=He([A(0x0,_0x530cef(_0x342037)),A(0x1,_0x5b30b3)],m);const ye='live-share.config',T={};var Ue=Object[_0x1ff471(0x1c4)],Ve=(_0x12667a,_0x4ebed6,_0x7838cc,_0xb0d144)=>{const _0x1495e5=_0x1ff471;for(var _0x520462=_0xb0d144>0x1?void 0x0:_0xb0d144?Ue(_0x4ebed6,_0x7838cc):_0x4ebed6,_0x21e448=_0x12667a[_0x1495e5(0x233)]-0x1,_0x4c7d42;_0x21e448>=0x0;_0x21e448--)(_0x4c7d42=_0x12667a[_0x21e448])&&(_0x520462=_0x4c7d42(_0x520462)||_0x520462);return _0x520462;},je=(_0x4a23d7,_0x367f06)=>(_0x552ec3,_0x15a8de)=>_0x367f06(_0x552ec3,_0x15a8de,_0x4a23d7);let I=class extends _0x5efc82{constructor(_0x3db742){const _0x46d09d=_0x1ff471;super(),this[_0x46d09d(0x1ae)]=_0x3db742,this[_0x46d09d(0x1c9)]();}[_0x1ff471(0x1c9)](){const _0x35b521=_0x1ff471;[_0x55628f['id'],_0x3efdd7['id'],_0x5c8388['id']][_0x35b521(0x1ad)](_0x5a0e25=>{const _0x2fc9c8=_0x35b521;this[_0x2fc9c8(0x1c3)](this[_0x2fc9c8(0x1ae)][_0x2fc9c8(0x1ee)](_0x5a0e25));});}};I=Ve([je(0x0,_0x530cef(L))],I);var Me=Object['defineProperty'],ke=Object[_0x1ff471(0x1c4)],Ge=(_0xfd20bc,_0x40da0c,_0x2633de)=>_0x40da0c in _0xfd20bc?Me(_0xfd20bc,_0x40da0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2633de}):_0xfd20bc[_0x40da0c]=_0x2633de,We=(_0x55b24f,_0x3d18f4,_0x529083,_0x109f13)=>{for(var _0x4094fc=_0x109f13>0x1?void 0x0:_0x109f13?ke(_0x3d18f4,_0x529083):_0x3d18f4,_0x92aaa0=_0x55b24f['length']-0x1,_0x5cc2ca;_0x92aaa0>=0x0;_0x92aaa0--)(_0x5cc2ca=_0x55b24f[_0x92aaa0])&&(_0x4094fc=_0x5cc2ca(_0x4094fc)||_0x4094fc);return _0x4094fc;},F=(_0x6757ab,_0x3f8d09)=>(_0x163397,_0x1447a7)=>_0x3f8d09(_0x163397,_0x1447a7,_0x6757ab),B=(_0x51fc9a,_0x5d0a91,_0x24eba7)=>Ge(_0x51fc9a,typeof _0x5d0a91!=_0x1ff471(0x1d4)?_0x5d0a91+'':_0x5d0a91,_0x24eba7);const Ye=_0x1ff471(0x20a);let b=class extends _0x41c584{constructor(_0x589e7f=T,_0x3a749b,_0x3e0ea5){const _0x4dbeeb=_0x1ff471;super(),this['_config']=_0x589e7f,this[_0x4dbeeb(0x1ed)]=_0x3a749b,this[_0x4dbeeb(0x1b8)]=_0x3e0ea5;const {..._0x2051f2}=_0x2c2112({},T,this[_0x4dbeeb(0x22f)]);this[_0x4dbeeb(0x1b8)][_0x4dbeeb(0x22e)](ye,_0x2051f2);}[_0x1ff471(0x245)](){const _0x1ee846=_0x1ff471;_0x5a0d1b(this[_0x1ee846(0x1ed)],_0x5a4f61([[L],[S],[I],[m]],this[_0x1ee846(0x22f)][_0x1ee846(0x1e5)])),_0x2d8b65(this['_injector'],[[I]]);}[_0x1ff471(0x1da)](){_0x2d8b65(this['_injector'],[[m]]);}};B(b,'type',_0x391209[_0x1ff471(0x24a)]),B(b,'pluginName',Ye),b=We([_0x148bca(_0x18c6f0),F(0x1,_0x530cef(_0x342037)),F(0x2,_0x495339)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x7e354b=_0x12f6;(function(_0x505b9d,_0x295900){const _0x44d169=_0x12f6,_0x1e1f3e=_0x505b9d();while(!![]){try{const _0x6b9215=parseInt(_0x44d169(0x163))/0x1*(-parseInt(_0x44d169(0x16b))/0x2)+-parseInt(_0x44d169(0x1d6))/0x3+parseInt(_0x44d169(0x16d))/0x4+-parseInt(_0x44d169(0x205))/0x5*(parseInt(_0x44d169(0x1b8))/0x6)+-parseInt(_0x44d169(0x1f1))/0x7+-parseInt(_0x44d169(0x17a))/0x8*(parseInt(_0x44d169(0x187))/0x9)+parseInt(_0x44d169(0x1e1))/0xa;if(_0x6b9215===_0x295900)break;else _0x1e1f3e['push'](_0x1e1f3e['shift']());}catch(_0x10ae5d){_0x1e1f3e['push'](_0x1e1f3e['shift']());}}}(_0xb4b9,0xa9c62));var J=Object[_0x7e354b(0x197)],K=(_0x42d9d5,_0x2117d0,_0x30577f)=>_0x2117d0 in _0x42d9d5?J(_0x42d9d5,_0x2117d0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30577f}):_0x42d9d5[_0x2117d0]=_0x30577f,u=(_0x382b4d,_0x37d907,_0x3d83ad)=>K(_0x382b4d,typeof _0x37d907!=_0x7e354b(0x196)?_0x37d907+'':_0x37d907,_0x3d83ad);import{Disposable as _0x347be1,toDisposable as _0x3d4789,IUniverInstanceService as _0x309518,Inject as _0x3da970,Injector as _0x12624f,IConfigService as _0x46c0d3,ICommandService as _0x329504,RxDisposable as _0x29c169,UniverInstanceType as _0x57407e,DisposableCollection as _0x5c4131,CommandType as _0x55d34f,DependentOn as _0x2b4dcb,Plugin as _0x578106,merge as _0x37ec64,registerDependencies as _0x266bf,mergeOverrideWithDependencies as _0x357cc7,touchDependencies as _0x468664}from'@univerjs/core';import{useDependency as _0x52d8b7,useObservable as _0x197c64,IUIPartsService as _0x381d5f,BuiltInUIPart as _0x1da299,connectInjector as _0x3c976a}from'@univerjs/ui';import{jsx as _0x101f75,jsxs as _0x110ad3,Fragment as _0x54296b}from'react/jsx-runtime';import{Dropdown as _0x4a2625,clsx as _0x3ab899,Button as _0x17d00f}from'@univerjs/design';import{useRef as _0x5ada0e,createElement as _0x56a161,forwardRef as _0xde3aa3,useState as _0x4e342b,useEffect as _0x1f3ba1}from'react';import{CollaborationEvent as _0x2c840d,parseProtocolChangeset as _0x21f40d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1662bb,SessionStatus as _0x1e0fe4,UniverCollaborationClientPlugin as _0x48d4a0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x51be66,SetWorksheetActiveOperation as _0x5adc8e}from'@univerjs/sheets';import{BehaviorSubject as _0x4eaa7d,Subject as _0x59ce58}from'rxjs';import{takeUntil as _0xe6e776,throttleTime as _0x29baa8}from'rxjs/operators';import{SetZoomRatioOperation as _0x219de2,SetScrollOperation as _0x4fb794}from'@univerjs/sheets-ui';function k({ref:_0x44547c,..._0x2cf2ca}){const _0x52d28b=_0x7e354b,{icon:_0x489d8d,id:_0x1cc7ba,className:_0x5dd489,extend:_0x52387a,..._0x3f9477}=_0x2cf2ca,_0x2b71f0=(_0x52d28b(0x1ae)+_0x1cc7ba+'\x20'+(_0x5dd489||''))[_0x52d28b(0x199)](),_0x286008=_0x5ada0e('_'+Oe());return G(_0x489d8d,''+_0x1cc7ba,{'defIds':_0x489d8d[_0x52d28b(0x18d)],'idSuffix':_0x286008['current']},{'ref':_0x44547c,'className':_0x2b71f0,..._0x3f9477},_0x52387a);}function _0x12f6(_0x152c44,_0x387d68){const _0xb4b9cc=_0xb4b9();return _0x12f6=function(_0x12f6b1,_0xdf9e3c){_0x12f6b1=_0x12f6b1-0x161;let _0x5a9de4=_0xb4b9cc[_0x12f6b1];return _0x5a9de4;},_0x12f6(_0x152c44,_0x387d68);}function G(_0x301adc,_0x4a7044,_0x2fc2a3,_0x299f0c,_0x1c1e22){const _0x496406=_0x7e354b;return _0x56a161(_0x301adc['tag'],{'key':_0x4a7044,...be(_0x301adc,_0x2fc2a3,_0x1c1e22),..._0x299f0c},(Ee(_0x301adc,_0x2fc2a3)[_0x496406(0x190)]||[])[_0x496406(0x18a)]((_0xabbcaf,_0x217e40)=>G(_0xabbcaf,_0x4a7044+'-'+_0x301adc[_0x496406(0x178)]+'-'+_0x217e40,_0x2fc2a3,void 0x0,_0x1c1e22)));}function be(_0x1228f3,_0x4e1f25,_0x2df930){const _0x5f4062=_0x7e354b,_0x517ff0={..._0x1228f3[_0x5f4062(0x1f5)]};_0x2df930!=null&&_0x2df930[_0x5f4062(0x1ee)]&&_0x517ff0['fill']===_0x5f4062(0x1ee)&&(_0x517ff0['fill']=_0x2df930['colorChannel1']),_0x1228f3[_0x5f4062(0x178)]===_0x5f4062(0x167)&&_0x517ff0['id']&&(_0x517ff0['id']=_0x517ff0['id']+_0x4e1f25[_0x5f4062(0x1e9)]),Object[_0x5f4062(0x1db)](_0x517ff0)[_0x5f4062(0x17e)](([_0x2ab831,_0x2f78b2])=>{const _0x23530d=_0x5f4062;_0x2ab831===_0x23530d(0x167)&&typeof _0x2f78b2==_0x23530d(0x1b1)&&(_0x517ff0[_0x2ab831]=_0x2f78b2[_0x23530d(0x16c)](/url\(#(.*)\)/,'url(#$1'+_0x4e1f25[_0x23530d(0x1e9)]+')'));});const {defIds:_0x30df82}=_0x4e1f25;return!_0x30df82||_0x30df82[_0x5f4062(0x208)]===0x0||(_0x1228f3[_0x5f4062(0x178)]==='use'&&_0x517ff0['xlink:href']&&(_0x517ff0[_0x5f4062(0x184)]=_0x517ff0[_0x5f4062(0x184)]+_0x4e1f25['idSuffix']),Object['entries'](_0x517ff0)['forEach'](([_0x575853,_0x5cdc9b])=>{const _0x105a46=_0x5f4062;typeof _0x5cdc9b==_0x105a46(0x1b1)&&(_0x517ff0[_0x575853]=_0x5cdc9b[_0x105a46(0x16c)](/url\(#(.*)\)/,_0x105a46(0x1ba)+_0x4e1f25[_0x105a46(0x1e9)]+')'));})),_0x517ff0;}function Ee(_0x393e08,_0x514b6e){const _0x471496=_0x7e354b;var _0x42336f;const {defIds:_0x6930da}=_0x514b6e;return!_0x6930da||_0x6930da[_0x471496(0x208)]===0x0?_0x393e08:_0x393e08[_0x471496(0x178)]===_0x471496(0x1cf)&&((_0x42336f=_0x393e08[_0x471496(0x190)])!=null&&_0x42336f[_0x471496(0x208)])?{..._0x393e08,'children':_0x393e08[_0x471496(0x190)][_0x471496(0x18a)](_0x48f3b3=>typeof _0x48f3b3[_0x471496(0x1f5)]['id']=='string'&&_0x6930da&&_0x6930da[_0x471496(0x1ac)](_0x48f3b3['attrs']['id'])?{..._0x48f3b3,'attrs':{..._0x48f3b3[_0x471496(0x1f5)],'id':_0x48f3b3[_0x471496(0x1f5)]['id']+_0x514b6e[_0x471496(0x1e9)]}}:_0x48f3b3)}:_0x393e08;}function Oe(){const _0xa56e89=_0x7e354b;return Math[_0xa56e89(0x209)]()['toString'](0x24)[_0xa56e89(0x19b)](0x2,0x8);}k[_0x7e354b(0x1ef)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x7e354b(0x1d3),'fill':_0x7e354b(0x1dd),'viewBox':_0x7e354b(0x1d7),'width':_0x7e354b(0x1a8),'height':_0x7e354b(0x1a8)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x7e354b(0x175),'d':_0x7e354b(0x1f4),'fillRule':_0x7e354b(0x1a0),'clipRule':_0x7e354b(0x1a0)}}]},W=_0xde3aa3(function(_0x32f649,_0xd0ed6b){const _0x753960=_0x7e354b;return _0x56a161(k,Object['assign']({},_0x32f649,{'id':_0x753960(0x1c8),'ref':_0xd0ed6b,'icon':we}));});W[_0x7e354b(0x1ef)]=_0x7e354b(0x1dc);class L extends _0x347be1{constructor(){const _0x49d96e=_0x7e354b;super(...arguments),u(this,_0x49d96e(0x1c9),new Set()),u(this,'_reporters',new Set());}[_0x7e354b(0x174)](_0x474663){const _0x4707d9=_0x7e354b;return this[_0x4707d9(0x1c9)][_0x4707d9(0x170)](_0x474663),_0x3d4789(()=>this[_0x4707d9(0x1c9)][_0x4707d9(0x192)](_0x474663));}[_0x7e354b(0x1a6)](_0x4297f6){return this['_reporters']['add'](_0x4297f6),_0x3d4789(()=>this['_reporters']['delete'](_0x4297f6));}[_0x7e354b(0x1b5)](_0x3edc50){const _0x2e666e=_0x7e354b;return this['_sharedOperations'][_0x2e666e(0x1a9)](_0x3edc50);}[_0x7e354b(0x1e2)](_0xcc73ed){const _0x4fe48a=_0x7e354b;return Array[_0x4fe48a(0x1fa)](this[_0x4fe48a(0x186)])[_0x4fe48a(0x18a)](_0x4228a=>_0x4228a(_0xcc73ed));}}var Ne=Object[_0x7e354b(0x1f0)],Y=(_0x478fb1,_0x4a592c,_0x36eeaa,_0x5a6790)=>{for(var _0x11ebf9=_0x5a6790>0x1?void 0x0:_0x5a6790?Ne(_0x4a592c,_0x36eeaa):_0x4a592c,_0x15f471=_0x478fb1['length']-0x1,_0x1c7542;_0x15f471>=0x0;_0x15f471--)(_0x1c7542=_0x478fb1[_0x15f471])&&(_0x11ebf9=_0x1c7542(_0x11ebf9)||_0x11ebf9);return _0x11ebf9;},_=(_0x5548bf,_0x86e0d6)=>(_0x517666,_0x37c73b)=>_0x86e0d6(_0x517666,_0x37c73b,_0x5548bf);let S=class extends _0x29c169{constructor(_0x5cbc4d,_0x1067fa,_0x3f4e85){const _0x198348=_0x7e354b;super(),u(this,_0x198348(0x1e3),new Map()),(this[_0x198348(0x1bd)]=_0x5cbc4d,this['_injector']=_0x1067fa,this[_0x198348(0x1f9)]=_0x3f4e85,this[_0x198348(0x173)]());}async['getLiveShareCoordinator'](_0x53f332){const _0x509634=_0x7e354b;return this[_0x509634(0x1e3)][_0x509634(0x1a9)](_0x53f332)||await this[_0x509634(0x1fc)](_0x53f332),this[_0x509634(0x1e3)][_0x509634(0x164)](_0x53f332);}['getLiveShareCoordinatorSync'](_0x3d9a64){const _0x4a1c5f=_0x7e354b;var _0xddcf59;return(_0xddcf59=this[_0x4a1c5f(0x1e3)][_0x4a1c5f(0x164)](_0x3d9a64))!=null?_0xddcf59:null;}['_init'](){const _0x5e79d6=_0x7e354b;this[_0x5e79d6(0x1bd)][_0x5e79d6(0x1fb)](_0x57407e[_0x5e79d6(0x1c6)])[_0x5e79d6(0x18b)](_0xe6e776(this[_0x5e79d6(0x1d5)]))['subscribe'](async _0x333a13=>{const _0x43b86b=_0x5e79d6,_0x5abae5=_0x333a13[_0x43b86b(0x1e6)]();this[_0x43b86b(0x1e3)][_0x43b86b(0x1a9)](_0x5abae5)||this[_0x43b86b(0x1fc)](_0x5abae5);}),this[_0x5e79d6(0x1bd)][_0x5e79d6(0x193)](_0x57407e['UNIVER_SHEET'])[_0x5e79d6(0x18b)](_0xe6e776(this[_0x5e79d6(0x1d5)]))[_0x5e79d6(0x1b7)](_0x546fa4=>{const _0x36ffdb=_0x5e79d6,_0x50ecf4=_0x546fa4[_0x36ffdb(0x1e6)](),_0x1a69ce=this[_0x36ffdb(0x1e3)][_0x36ffdb(0x164)](_0x50ecf4);_0x1a69ce==null||_0x1a69ce[_0x36ffdb(0x1d0)]();});}async[_0x7e354b(0x1fc)](_0x4a1bc9){const _0x44320d=_0x7e354b,_0x47d00d=await this[_0x44320d(0x1f9)][_0x44320d(0x1f7)](_0x4a1bc9),_0x30ebe7=this['_injector'][_0x44320d(0x1de)](N,_0x4a1bc9,_0x47d00d);return _0x30ebe7['init'](),this['_entities']['set'](_0x4a1bc9,_0x30ebe7),_0x30ebe7;}};S=Y([_(0x0,_0x309518),_(0x1,_0x3da970(_0x12624f)),_(0x2,_0x3da970(_0x1662bb))],S);var c=(_0x488490=>(_0x488490[_0x7e354b(0x1d4)]=_0x7e354b(0x1b6),_0x488490[_0x7e354b(0x1df)]='idle',_0x488490[_0x7e354b(0x1f8)]=_0x7e354b(0x1c4),_0x488490['NOT_FOLLOWING']=_0x7e354b(0x1e8),_0x488490['PRESENTING']=_0x7e354b(0x1ab),_0x488490))(c||{});const Ce=_0x7e354b(0x1f2),De=0xc8;let N=class extends _0x29c169{constructor(_0x3a06dd,_0x203175,_0x5d329e,_0x3d74aa,_0x507633){const _0x1e56d8=_0x7e354b;super(),u(this,'_status$',new _0x4eaa7d(_0x1e56d8(0x1bb))),u(this,_0x1e56d8(0x1aa),this[_0x1e56d8(0x1be)][_0x1e56d8(0x1a7)]()),u(this,_0x1e56d8(0x173),!0x1),u(this,_0x1e56d8(0x1b3),null),u(this,'_presenter',null),(this[_0x1e56d8(0x1f3)]=_0x3a06dd,this[_0x1e56d8(0x19a)]=_0x203175,this[_0x1e56d8(0x1d9)]=_0x5d329e,this[_0x1e56d8(0x1bf)]=_0x3d74aa,this['_commandService']=_0x507633);}get['_status'](){const _0x547196=_0x7e354b;return this[_0x547196(0x1be)][_0x547196(0x1a2)]();}[_0x7e354b(0x1d0)](){const _0x1eb207=_0x7e354b;var _0x23ec14;(_0x23ec14=this['_commandDisposable'])==null||_0x23ec14[_0x1eb207(0x1d0)](),this['_status$'][_0x1eb207(0x181)](_0x1eb207(0x1bb)),this[_0x1eb207(0x1be)][_0x1eb207(0x200)]();}['getStatus'](){return this['_status'];}[_0x7e354b(0x18e)](){const _0x3d8511=_0x7e354b;this['_init']||(this['_init']=!0x0,this[_0x3d8511(0x19a)][_0x3d8511(0x19d)][_0x3d8511(0x18b)](_0xe6e776(this[_0x3d8511(0x1d5)]))[_0x3d8511(0x1b7)](_0x49964d=>{const _0x5925c2=_0x3d8511;switch(_0x49964d){case _0x1e0fe4[_0x5925c2(0x1d4)]:this[_0x5925c2(0x202)]();break;case _0x1e0fe4[_0x5925c2(0x198)]:this['_handleOnline']();break;}}),this[_0x3d8511(0x19a)]['event$'][_0x3d8511(0x18b)](_0xe6e776(this['dispose$']))[_0x3d8511(0x1b7)](_0x477cb8=>{const _0x427371=_0x3d8511,{eventID:_0x554d84}=_0x477cb8;switch(_0x554d84){case _0x2c840d[_0x427371(0x1e7)]:this[_0x427371(0x1cd)](_0x477cb8);break;case _0x2c840d[_0x427371(0x1c5)]:this[_0x427371(0x1cb)](_0x477cb8);break;case _0x2c840d[_0x427371(0x1ca)]:this[_0x427371(0x1b9)]();break;case _0x2c840d[_0x427371(0x162)]:this[_0x427371(0x1e5)](_0x477cb8);break;}}));}[_0x7e354b(0x17d)](){const _0x31e83f=_0x7e354b;this[_0x31e83f(0x19a)][_0x31e83f(0x207)]({'eventID':_0x2c840d['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x31e83f(0x1f3)],'userID':this[_0x31e83f(0x19a)]['getMemberID']()}},this[_0x31e83f(0x1f3)]);}[_0x7e354b(0x1d1)](){const _0x574194=_0x7e354b;this[_0x574194(0x17f)]==='presenting'&&(this[_0x574194(0x1be)][_0x574194(0x181)](_0x574194(0x1bb)),this['_collabSession'][_0x574194(0x207)]({'eventID':_0x2c840d['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){const _0x5e0d6d=_0x7e354b;this[_0x5e0d6d(0x17f)]===_0x5e0d6d(0x1e8)&&(this[_0x5e0d6d(0x1be)][_0x5e0d6d(0x181)](_0x5e0d6d(0x1c4)),this['_startFollowing']());}[_0x7e354b(0x168)](){const _0x320f12=_0x7e354b;this['_status']===_0x320f12(0x1c4)&&this[_0x320f12(0x161)]();}['_handleNewHost'](_0x3cba89){const _0x8649bd=_0x7e354b,{presenter:_0x1e1bda}=_0x3cba89[_0x8649bd(0x172)],_0x334a33=this[_0x8649bd(0x19a)][_0x8649bd(0x203)]();this[_0x8649bd(0x1f6)]=_0x1e1bda,_0x1e1bda===_0x334a33?(this['_stopFollowing'](),this[_0x8649bd(0x176)]()):this[_0x8649bd(0x17f)]!=='not-following'&&(this[_0x8649bd(0x1c7)](),this[_0x8649bd(0x17b)]());}[_0x7e354b(0x1e0)](){const _0x505bc1=_0x7e354b,_0x3a40b0={'eventID':_0x2c840d[_0x505bc1(0x165)]};this[_0x505bc1(0x19a)]['send'](_0x3a40b0,this[_0x505bc1(0x1f3)]);}[_0x7e354b(0x1b9)](){const _0x4a9575=_0x7e354b;this[_0x4a9575(0x1f6)]=null,this['_status']!==_0x4a9575(0x1ab)&&this[_0x4a9575(0x1ed)]();}[_0x7e354b(0x1e5)](_0x57eb3){const _0x4ae1f0=_0x7e354b;if(this[_0x4ae1f0(0x17f)]==='following'&&this[_0x4ae1f0(0x1f6)]===_0x57eb3['data'][_0x4ae1f0(0x1da)]){const _0x2a6c6d=_0x21f40d(_0x57eb3['data'])['mutations'][_0x4ae1f0(0x19e)]()[_0x4ae1f0(0x1c1)](_0x3ba71f=>_0x3ba71f['id']===_0x51be66['id']);if(_0x2a6c6d){const _0x2b666f=_0x2a6c6d[_0x4ae1f0(0x1d2)][_0x4ae1f0(0x183)],_0x1f2401=_0x2a6c6d[_0x4ae1f0(0x1d2)]['sheet']['id'];setTimeout(()=>{const _0x123227=_0x4ae1f0;this[_0x123227(0x19c)][_0x123227(0x1c0)](_0x5adc8e['id'],{'unitId':_0x2b666f,'subUnitId':_0x1f2401},{'fromCollab':!0x0});});}}}[_0x7e354b(0x176)](){const _0x155274=_0x7e354b;this[_0x155274(0x1be)][_0x155274(0x181)](_0x155274(0x1ab));const _0x235cbc=new Map(),_0x10fd21=this[_0x155274(0x1b3)]=new _0x5c4131();_0x10fd21[_0x155274(0x170)](_0x3d4789(()=>{const _0x5ba289=_0x155274;_0x235cbc[_0x5ba289(0x17e)](_0x4b2039=>_0x4b2039[_0x5ba289(0x200)]()),_0x235cbc[_0x5ba289(0x1fe)]();})),_0x10fd21[_0x155274(0x170)](this[_0x155274(0x19c)][_0x155274(0x1a1)](_0x48f891=>{const _0x2c86ad=_0x155274;var _0x133bd6;if(_0x48f891[_0x2c86ad(0x1b4)]!==_0x55d34f[_0x2c86ad(0x182)]||!this[_0x2c86ad(0x1bf)][_0x2c86ad(0x1b5)](_0x48f891['id']))return;const {id:_0x293ead}=_0x48f891;let _0x5c828e;_0x235cbc[_0x2c86ad(0x1a9)](_0x293ead)?_0x5c828e=_0x235cbc[_0x2c86ad(0x164)](_0x293ead):(_0x5c828e=new _0x59ce58(),_0x235cbc[_0x2c86ad(0x18f)](_0x293ead,_0x5c828e),_0x5c828e['pipe'](_0x29baa8((_0x133bd6=this[_0x2c86ad(0x1d9)][_0x2c86ad(0x1ff)](Ce))!=null?_0x133bd6:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c86ad(0x1b7)](_0x5883b6=>{const _0x285355=_0x2c86ad;this[_0x285355(0x19a)][_0x285355(0x207)]({'eventID':_0x2c840d[_0x285355(0x1c5)],'data':{'unitID':this[_0x285355(0x1f3)],'operations':{[_0x5883b6['id']]:{'id':_0x5883b6['id'],'params':JSON['stringify'](_0x5883b6[_0x285355(0x1d2)])}}}},this[_0x285355(0x1f3)]);})),_0x5c828e['next'](_0x48f891);})),this['_liveShareService']['getInitialStates'](this['_unitID'])['forEach'](_0x1e3acb=>this[_0x155274(0x19a)][_0x155274(0x207)]({'eventID':_0x2c840d[_0x155274(0x1c5)],'data':{'unitID':this[_0x155274(0x1f3)],'operations':{[_0x1e3acb['id']]:{'id':_0x1e3acb['id'],'params':JSON[_0x155274(0x16f)](_0x1e3acb[_0x155274(0x1d2)])}}}},this['_unitID']));}[_0x7e354b(0x1c7)](){const _0x525e72=_0x7e354b;var _0x72d22f;this[_0x525e72(0x1be)][_0x525e72(0x181)]('idle'),(_0x72d22f=this[_0x525e72(0x1b3)])==null||_0x72d22f[_0x525e72(0x1d0)](),this[_0x525e72(0x1b3)]=null;}[_0x7e354b(0x17b)](){const _0x33735f=_0x7e354b;var _0x3f1474;(_0x3f1474=this[_0x33735f(0x1b3)])==null||_0x3f1474[_0x33735f(0x1d0)](),this['_status$'][_0x33735f(0x181)]('following');}[_0x7e354b(0x1ed)](){const _0x17a8be=_0x7e354b;var _0x502d29;this['_status$'][_0x17a8be(0x181)]('idle'),(_0x502d29=this[_0x17a8be(0x1b3)])==null||_0x502d29[_0x17a8be(0x1d0)](),this[_0x17a8be(0x1b3)]=null;}[_0x7e354b(0x161)](){const _0x25a4a1=_0x7e354b;var _0x5a982b;this[_0x25a4a1(0x1be)][_0x25a4a1(0x181)](_0x25a4a1(0x1e8)),(_0x5a982b=this[_0x25a4a1(0x1b3)])==null||_0x5a982b['dispose']();}[_0x7e354b(0x1cb)](_0x38d5a7){const _0x550d90=_0x7e354b;if([_0x550d90(0x1ab),_0x550d90(0x1e8),_0x550d90(0x1b6)]['includes'](this['_status'])||!_0x38d5a7[_0x550d90(0x172)][_0x550d90(0x188)]||_0x38d5a7[_0x550d90(0x172)][_0x550d90(0x188)]===this[_0x550d90(0x19a)][_0x550d90(0x203)]())return;this[_0x550d90(0x17f)]===_0x550d90(0x1bb)&&this[_0x550d90(0x17b)]();const _0x118bf6=_0x38d5a7['data'][_0x550d90(0x1bc)];Object[_0x550d90(0x169)](_0x118bf6)[_0x550d90(0x17e)](_0x15b6a1=>{const _0x42be81=_0x550d90;this[_0x42be81(0x19c)][_0x42be81(0x1c0)](_0x15b6a1['id'],_0x15b6a1[_0x42be81(0x1d2)]?JSON[_0x42be81(0x17c)](_0x15b6a1['params']):null,{'fromCollab':!0x0});});}[_0x7e354b(0x202)](){const _0x187992=_0x7e354b;var _0x4d4e54;this[_0x187992(0x1be)][_0x187992(0x181)]('offline'),(_0x4d4e54=this[_0x187992(0x1b3)])==null||_0x4d4e54[_0x187992(0x1d0)]();}[_0x7e354b(0x177)](){const _0x591435=_0x7e354b;this[_0x591435(0x1be)]['next'](_0x591435(0x1bb)),this[_0x591435(0x1e0)]();}};N=Y([_(0x2,_0x46c0d3),_(0x3,_0x3da970(L)),_(0x4,_0x329504)],N);function Le(){const _0x5afe55=_0x7e354b,_0x136208=_0x52d8b7(S),_0x1c7de1=_0x52d8b7(_0x309518),_0x4e2e9b=_0x197c64(()=>_0x1c7de1[_0x5afe55(0x1c3)](_0x57407e[_0x5afe55(0x1c6)]),void 0x0,!0x1,[]),[_0x51ff43,_0x313832]=_0x4e342b(null),[_0x3267f0,_0x246351]=_0x4e342b(c[_0x5afe55(0x1df)]),_0x3ce05e=_0x5ada0e(null);return _0x1f3ba1(()=>(_0x4e2e9b&&_0x136208[_0x5afe55(0x1fd)](_0x4e2e9b[_0x5afe55(0x1e6)]())['then'](_0x2daca2=>{const _0x590851=_0x5afe55;_0x313832(_0x2daca2),_0x3ce05e['current']=_0x2daca2[_0x590851(0x1aa)]['subscribe'](_0xe79182=>{_0x246351(_0xe79182);});}),()=>{const _0x4ac3db=_0x5afe55;var _0x3ac9ff;(_0x3ac9ff=_0x3ce05e[_0x4ac3db(0x1cc)])==null||_0x3ac9ff[_0x4ac3db(0x1ad)](),_0x3ce05e['current']=null;}),[_0x4e2e9b,_0x136208]),_0x51ff43?_0x101f75(_0x4a2625,{'align':_0x5afe55(0x18c),'disabled':_0x3267f0===c[_0x5afe55(0x1d4)],'className':_0x5afe55(0x1a4),'overlay':_0x101f75(Re,{'status':_0x3267f0,'coordinator':_0x51ff43}),'children':_0x101f75('button',{'className':_0x3ab899('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3267f0===c[_0x5afe55(0x1d4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3267f0!==c[_0x5afe55(0x1d4)]}),'type':_0x5afe55(0x1eb),'children':_0x101f75(W,{'className':'univer-size-4'})})}):null;}function _0xb4b9(){const _0x133c0e=['registerComponent','getCurrentTypeOfUnit$','following','LIVESHARE_OPERATION','UNIVER_SHEET','_stopPresenting','live-share-icon','_sharedOperations','LIVESHARE_TERMINATE','_handleOperation','current','_handleNewHost','setConfig','defs','dispose','stopPresenting','params','http://www.w3.org/2000/svg','OFFLINE','dispose$','2184435vyRhNn','0\x200\x2017\x2017','Stop\x20following','_configService','memberID','entries','LiveShareIcon','none','createInstance','IDLE','_fetchOperations','23241110abiffV','getInitialStates','_entities','NOT_FOLLOWING','_handleNewChangeSets','getUnitId','LIVESHARE_NEW_HOST','not-following','idSuffix','live-share.config','button','You\x27re\x20presenting\x20the\x20document','_beIdle','colorChannel1','displayName','getOwnPropertyDescriptor','749182OTmWPJ','SAME_OPERATION_SHARE_INTERVAL','_unitID','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','attrs','_presenter','requireSession','FOLLOWING','_collabSessionService','from','getTypeOfUnitAdded$','_startLiveShareCoordinator','getLiveShareCoordinator','clear','getConfig','complete','Stop\x20presenting','_handleOffline','getMemberID','_injector','1525COsXFD','univer-mb-3\x20univer-w-full\x20univer-text-sm','send','length','random','disposeWithMe','_stopFollowing','NEW_CHANGESETS','94OkpBaW','get','LIVESHARE_FETCH_OPERATIONS','You\x27re\x20not\x20following\x20the\x20presenter','mask','stopFollowing','values','Start\x20following','21878UeVTZQ','replace','4109060NzxLnJ','text','stringify','add','onRendered','data','_init','registerSharedOperation','currentColor','_startPresenting','_handleOnline','tag','PRESENTING','83432CmpYaR','_startFollowing','parse','tryStartPresenting','forEach','_status','You\x27are\x20offline.','next','OPERATION','unitId','xlink:href','startFollowing','_reporters','675yhkvAu','presenter','_uiPartsService','map','pipe','end','defIds','init','set','children','pluginName','delete','getTypeOfUnitDisposed$','_mountLiveShare','onStarting','symbol','defineProperty','ONLINE','trim','_collabSession','substring','_commandService','sessionStatus$','reverse','default','evenodd','onCommandExecuted','getValue','div','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','override','registerInitialStateReporter','asObservable','1em','has','status$','presenting','includes','unsubscribe','univerjs-icon\x20univerjs-icon-','Present\x20this\x20document','HEADER_MENU','string','_config','_commandDisposable','type','shouldShareOperation','offline','subscribe','204KTLzuv','_handleTerminate','url(#$1','idle','operations','_univerInstanceService','_status$','_liveShareService','executeCommand','find'];_0xb4b9=function(){return _0x133c0e;};return _0xb4b9();}function Re(_0x3a01e6){const _0x1f4065=_0x7e354b,{status:_0x7a958c,coordinator:_0x401e13}=_0x3a01e6;switch(_0x7a958c){case c[_0x1f4065(0x1df)]:return _0x101f75($e,{'coordinator':_0x401e13});case c['FOLLOWING']:return _0x101f75(xe,{'coordinator':_0x401e13});case c[_0x1f4065(0x1e4)]:return _0x101f75(Pe,{'coordinator':_0x401e13});case c[_0x1f4065(0x1d4)]:return _0x101f75(Te,{});case c[_0x1f4065(0x179)]:return _0x101f75(Ae,{'coordinator':_0x401e13});default:return null;}}function $e(_0x31da09){const _0x33b30f=_0x7e354b,{coordinator:_0x2a9b50}=_0x31da09;return _0x110ad3(_0x54296b,{'children':[_0x101f75(_0x33b30f(0x1a3),{'className':_0x33b30f(0x206),'children':_0x33b30f(0x1af)}),_0x101f75(_0x17d00f,{'onClick':()=>_0x2a9b50['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x456230){const _0x3ffdc6=_0x7e354b,{coordinator:_0x1dacfe}=_0x456230;return _0x110ad3(_0x54296b,{'children':[_0x101f75(_0x3ffdc6(0x1a3),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x101f75(_0x17d00f,{'onClick':()=>_0x1dacfe['stopFollowing'](),'children':_0x3ffdc6(0x1d8)})]});}function Pe(_0x22d922){const _0x265a16=_0x7e354b,{coordinator:_0x2407e8}=_0x22d922;return _0x110ad3(_0x54296b,{'children':[_0x101f75(_0x265a16(0x1a3),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x265a16(0x166)}),_0x101f75(_0x17d00f,{'variant':_0x265a16(0x16e),'onClick':()=>_0x2407e8[_0x265a16(0x185)](),'children':_0x265a16(0x16a)})]});}function Ae(_0x50f2a2){const _0x32467a=_0x7e354b,{coordinator:_0x3ce094}=_0x50f2a2;return _0x110ad3(_0x54296b,{'children':[_0x101f75(_0x32467a(0x1a3),{'className':_0x32467a(0x206),'children':_0x32467a(0x1ec)}),_0x101f75(_0x17d00f,{'variant':_0x32467a(0x19f),'onClick':()=>_0x3ce094[_0x32467a(0x1d1)](),'children':_0x32467a(0x201)})]});}function Te(){const _0x435a7c=_0x7e354b;return _0x101f75(_0x54296b,{'children':_0x435a7c(0x180)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x59fa64,_0xfc2787,_0x57c55c,_0xd6543b)=>{const _0x34c20d=_0x7e354b;for(var _0x5d0a0b=_0xd6543b>0x1?void 0x0:_0xd6543b?Fe(_0xfc2787,_0x57c55c):_0xfc2787,_0x447148=_0x59fa64[_0x34c20d(0x208)]-0x1,_0x2f222c;_0x447148>=0x0;_0x447148--)(_0x2f222c=_0x59fa64[_0x447148])&&(_0x5d0a0b=_0x2f222c(_0x5d0a0b)||_0x5d0a0b);return _0x5d0a0b;},A=(_0xac3ffd,_0x1ef171)=>(_0x44f7d8,_0x594181)=>_0x1ef171(_0x44f7d8,_0x594181,_0xac3ffd);let m=class extends _0x347be1{constructor(_0x288204,_0x2b2fe6){const _0x3bc802=_0x7e354b;super(),this[_0x3bc802(0x204)]=_0x288204,this[_0x3bc802(0x189)]=_0x2b2fe6,this['_mountLiveShare']();}[_0x7e354b(0x194)](){const _0x54e333=_0x7e354b;this[_0x54e333(0x20a)](this[_0x54e333(0x189)][_0x54e333(0x1c2)](_0x1da299[_0x54e333(0x1b0)],()=>_0x3c976a(Le,this[_0x54e333(0x204)])));}};m=He([A(0x0,_0x3da970(_0x12624f)),A(0x1,_0x381d5f)],m);const ye=_0x7e354b(0x1ea),T={};var Ue=Object[_0x7e354b(0x1f0)],Ve=(_0x5e8a2d,_0x66567e,_0x375189,_0x457a24)=>{const _0x4a2180=_0x7e354b;for(var _0x15273d=_0x457a24>0x1?void 0x0:_0x457a24?Ue(_0x66567e,_0x375189):_0x66567e,_0x5aec03=_0x5e8a2d[_0x4a2180(0x208)]-0x1,_0x8fb842;_0x5aec03>=0x0;_0x5aec03--)(_0x8fb842=_0x5e8a2d[_0x5aec03])&&(_0x15273d=_0x8fb842(_0x15273d)||_0x15273d);return _0x15273d;},je=(_0x45a569,_0x35d1aa)=>(_0x5c1b29,_0xac8980)=>_0x35d1aa(_0x5c1b29,_0xac8980,_0x45a569);let I=class extends _0x347be1{constructor(_0x5389d2){const _0x1d7680=_0x7e354b;super(),this[_0x1d7680(0x1bf)]=_0x5389d2,this[_0x1d7680(0x173)]();}[_0x7e354b(0x173)](){const _0x20bf6e=_0x7e354b;[_0x219de2['id'],_0x4fb794['id'],_0x5adc8e['id']][_0x20bf6e(0x17e)](_0x109138=>{const _0x2b52a4=_0x20bf6e;this[_0x2b52a4(0x20a)](this['_liveShareService'][_0x2b52a4(0x174)](_0x109138));});}};I=Ve([je(0x0,_0x3da970(L))],I);var Me=Object['defineProperty'],ke=Object[_0x7e354b(0x1f0)],Ge=(_0x8adde0,_0x2eeee3,_0x34a95c)=>_0x2eeee3 in _0x8adde0?Me(_0x8adde0,_0x2eeee3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34a95c}):_0x8adde0[_0x2eeee3]=_0x34a95c,We=(_0x24334f,_0x4010f5,_0x98ef0b,_0x1487a7)=>{const _0x1e228f=_0x7e354b;for(var _0x432b63=_0x1487a7>0x1?void 0x0:_0x1487a7?ke(_0x4010f5,_0x98ef0b):_0x4010f5,_0x224c76=_0x24334f[_0x1e228f(0x208)]-0x1,_0x176277;_0x224c76>=0x0;_0x224c76--)(_0x176277=_0x24334f[_0x224c76])&&(_0x432b63=_0x176277(_0x432b63)||_0x432b63);return _0x432b63;},F=(_0x1d0242,_0x166883)=>(_0x41c192,_0x126f6b)=>_0x166883(_0x41c192,_0x126f6b,_0x1d0242),B=(_0x314725,_0x23becb,_0x218aa5)=>Ge(_0x314725,typeof _0x23becb!='symbol'?_0x23becb+'':_0x23becb,_0x218aa5);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x578106{constructor(_0x138817=T,_0x59cb13,_0x17e7f0){const _0x43ec91=_0x7e354b;super(),this[_0x43ec91(0x1b2)]=_0x138817,this[_0x43ec91(0x204)]=_0x59cb13,this[_0x43ec91(0x1d9)]=_0x17e7f0;const {..._0x34a654}=_0x37ec64({},T,this[_0x43ec91(0x1b2)]);this['_configService'][_0x43ec91(0x1ce)](ye,_0x34a654);}[_0x7e354b(0x195)](){const _0x575686=_0x7e354b;_0x266bf(this[_0x575686(0x204)],_0x357cc7([[L],[S],[I],[m]],this[_0x575686(0x1b2)][_0x575686(0x1a5)])),_0x468664(this[_0x575686(0x204)],[[I]]);}[_0x7e354b(0x171)](){const _0x13b34f=_0x7e354b;_0x468664(this[_0x13b34f(0x204)],[[m]]);}};B(b,_0x7e354b(0x1b4),_0x57407e['UNIVER_UNKNOWN']),B(b,_0x7e354b(0x191),Ye),b=We([_0x2b4dcb(_0x48d4a0),F(0x1,_0x3da970(_0x12624f)),F(0x2,_0x46c0d3)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2236(_0x5e260d,_0xe0f079){const _0x50fc72=_0x50fc();return _0x2236=function(_0x2236db,_0x157815){_0x2236db=_0x2236db-0x74;let _0x1ceda2=_0x50fc72[_0x2236db];return _0x1ceda2;},_0x2236(_0x5e260d,_0xe0f079);}function _0x50fc(){const _0x2c9395=['getLiveShareCoordinatorSync','extend','executeCommand','UniverSheetsFacade','16119837gbjjOK','3467980OQvmYP','@univerjs-pro/live-share','function','@univerjs/core/facade','9817017XGIWts','2086002FRUSxF','LiveShareController','_initialize','LiveShareStatusEnum','@univerjs/sheets-ui','stopPresenting','5483940aAhZKp','@univerjs/sheets','236xXMuQz','object','UniverEngineRender','SetWorksheetActiveOperation','getLiveShareStatus','startColumn','get','getId','FEnum','stopFollowing','syncExecuteCommand','UniverProLiveShare','getUnitId','@univerjs/engine-render','UniverCoreFacade','startPresenting','61595AqsIYB','16pOCAVY','getStatus','LiveShareStatus','amd','_injector','@univerjs/sheets/facade','IDLE','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UniverSheetsUi','1256056hZkrgk','getSheetId','FUniver','startRow','getActiveWorkbook','startFollowing','getRenderById','UniverSheets','IRenderManagerService'];_0x50fc=function(){return _0x2c9395;};return _0x50fc();}(function(_0x2fde28,_0x14f3a0){const _0x23b033=_0x2236,_0x152b2b=_0x2fde28();while(!![]){try{const _0x56596e=parseInt(_0x23b033(0x8d))/0x1+-parseInt(_0x23b033(0x9b))/0x2+-parseInt(_0x23b033(0xa6))/0x3+-parseInt(_0x23b033(0xa8))/0x4*(-parseInt(_0x23b033(0x82))/0x5)+parseInt(_0x23b033(0xa0))/0x6+-parseInt(_0x23b033(0x9f))/0x7+parseInt(_0x23b033(0x83))/0x8*(parseInt(_0x23b033(0x9a))/0x9);if(_0x56596e===_0x14f3a0)break;else _0x152b2b['push'](_0x152b2b['shift']());}catch(_0x2fdf17){_0x152b2b['push'](_0x152b2b['shift']());}}}(_0x50fc,0xe7869),function(_0x45cb61,_0x3ad071){const _0x3f5d45=_0x2236;typeof exports==_0x3f5d45(0xa9)&&typeof module<'u'?_0x3ad071(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x3f5d45(0x9d)&&define[_0x3f5d45(0x86)]?define([_0x3f5d45(0x9c),_0x3f5d45(0x7f),_0x3f5d45(0xa7),_0x3f5d45(0xa4),_0x3f5d45(0x88),_0x3f5d45(0x9e)],_0x3ad071):(_0x45cb61=typeof globalThis<'u'?globalThis:_0x45cb61||self,_0x3ad071(_0x45cb61[_0x3f5d45(0x7d)],_0x45cb61[_0x3f5d45(0x74)],_0x45cb61[_0x3f5d45(0x94)],_0x45cb61[_0x3f5d45(0x8c)],_0x45cb61[_0x3f5d45(0x99)],_0x45cb61[_0x3f5d45(0x80)]));}(this,function(_0x1b9402,_0x27044b,_0x57d2b3,_0x7d76c4,_0x4eaee5,_0x58832c){'use strict';const _0x4a348e=_0x2236;class _0x4ff0d8 extends _0x4eaee5['FRange']{[_0x4a348e(0xa2)](_0x2c8bce,_0x2aaa87,_0xabbfa9,_0x47272e,_0x1cb07d){const _0x2b1e69=_0x4a348e,_0x206820=_0x2c8bce[_0x2b1e69(0x78)](_0x1b9402[_0x2b1e69(0xa1)]),_0x5d44e9=_0x2c8bce[_0x2b1e69(0x78)](_0x27044b[_0x2b1e69(0x95)]),_0xa3d4a9=_0x2aaa87[_0x2b1e69(0x7e)](),_0x497ee1=_0x2aaa87['getActiveSheet'](),_0xb89d8=_0x206820[_0x2b1e69(0x96)](_0xa3d4a9);(_0xb89d8==null?void 0x0:_0xb89d8[_0x2b1e69(0x84)]())!==_0x1b9402[_0x2b1e69(0x85)]['PRESENTING']||(_0xabbfa9[_0x2b1e69(0x8e)]()!==_0x497ee1['getSheetId']()&&this['_commandService'][_0x2b1e69(0x98)](_0x57d2b3[_0x2b1e69(0x75)]['id'],{'unitId':_0xa3d4a9,'subUnitId':_0xabbfa9['getSheetId']()}),!_0x5d44e9[_0x2b1e69(0x93)](_0xa3d4a9))||_0x1cb07d[_0x2b1e69(0x7c)](_0x7d76c4['SetScrollOperation']['id'],{'unitId':_0x2aaa87[_0x2b1e69(0x7e)](),'sheetId':_0xabbfa9[_0x2b1e69(0x8e)](),'sheetViewStartRow':_0x47272e[_0x2b1e69(0x90)],'sheetViewStartColumn':_0x47272e[_0x2b1e69(0x77)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4eaee5['FRange']['extend'](_0x4ff0d8);class _0x5ac9d9 extends _0x58832c['FUniver']{[_0x4a348e(0x76)](){const _0x2e75ec=_0x4a348e;var _0x2e5e0d,_0x595d94;const _0x414be5=this['_injector'][_0x2e75ec(0x78)](_0x1b9402[_0x2e75ec(0xa1)]),_0x295f64=(_0x2e5e0d=this[_0x2e75ec(0x91)]())==null?void 0x0:_0x2e5e0d[_0x2e75ec(0x79)]();if(!_0x295f64)throw new Error(_0x2e75ec(0x8a));const _0x1cb0bc=_0x414be5[_0x2e75ec(0x96)](_0x295f64);return(_0x595d94=_0x1cb0bc==null?void 0x0:_0x1cb0bc['getStatus']())!=null?_0x595d94:_0x1b9402[_0x2e75ec(0x85)][_0x2e75ec(0x89)];}[_0x4a348e(0x92)](){const _0x31c5f2=_0x4a348e;var _0xdf79a4;const _0x453511=this[_0x31c5f2(0x87)][_0x31c5f2(0x78)](_0x1b9402['LiveShareController']),_0x487bb6=(_0xdf79a4=this['getActiveWorkbook']())==null?void 0x0:_0xdf79a4[_0x31c5f2(0x79)]();if(!_0x487bb6)throw new Error('No\x20active\x20workbook\x20found.');const _0xf49585=_0x453511[_0x31c5f2(0x96)](_0x487bb6);if(!_0xf49585)throw new Error(_0x31c5f2(0x8b));_0xf49585[_0x31c5f2(0x92)]();}['stopFollowing'](){const _0x50e813=_0x4a348e;var _0x36a416;const _0x1d62ea=this['_injector'][_0x50e813(0x78)](_0x1b9402['LiveShareController']),_0xb4888=(_0x36a416=this[_0x50e813(0x91)]())==null?void 0x0:_0x36a416['getId']();if(!_0xb4888)throw new Error(_0x50e813(0x8a));const _0x476d43=_0x1d62ea['getLiveShareCoordinatorSync'](_0xb4888);if(!_0x476d43)throw new Error(_0x50e813(0x8b));_0x476d43[_0x50e813(0x7b)]();}[_0x4a348e(0x81)](){const _0x56b44d=_0x4a348e;var _0x14025d;const _0x3812d4=this[_0x56b44d(0x87)][_0x56b44d(0x78)](_0x1b9402[_0x56b44d(0xa1)]),_0x2e0da3=(_0x14025d=this[_0x56b44d(0x91)]())==null?void 0x0:_0x14025d[_0x56b44d(0x79)]();if(!_0x2e0da3)throw new Error('No\x20active\x20workbook\x20found.');const _0x49f766=_0x3812d4['getLiveShareCoordinatorSync'](_0x2e0da3);if(!_0x49f766)throw new Error(_0x56b44d(0x8b));_0x49f766['tryStartPresenting']();}['stopPresenting'](){const _0x1b7beb=_0x4a348e;var _0x117acd;const _0x2f9681=this[_0x1b7beb(0x87)][_0x1b7beb(0x78)](_0x1b9402['LiveShareController']),_0x2572ba=(_0x117acd=this['getActiveWorkbook']())==null?void 0x0:_0x117acd[_0x1b7beb(0x79)]();if(!_0x2572ba)throw new Error('No\x20active\x20workbook\x20found.');const _0x1e1a75=_0x2f9681['getLiveShareCoordinatorSync'](_0x2572ba);if(!_0x1e1a75)throw new Error(_0x1b7beb(0x8b));_0x1e1a75[_0x1b7beb(0xa5)]();}}_0x58832c[_0x4a348e(0x8f)][_0x4a348e(0x97)](_0x5ac9d9);class _0x5ae597 extends _0x58832c[_0x4a348e(0x7a)]{get[_0x4a348e(0xa3)](){const _0x33bb85=_0x4a348e;return _0x1b9402[_0x33bb85(0x85)];}}_0x58832c['FEnum'][_0x4a348e(0x97)](_0x5ae597);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x161b(_0x1dbaf4,_0x3f0613){const _0x4552ac=_0x4552();return _0x161b=function(_0x161bb5,_0x407708){_0x161bb5=_0x161bb5-0x170;let _0x4363d5=_0x4552ac[_0x161bb5];return _0x4363d5;},_0x161b(_0x1dbaf4,_0x3f0613);}function _0x4552(){const _0x546c9a=['PRESENTING','displayName','onCommandExecuted','executeCommand','none','_liveShareService','885fSmqUe','BehaviorSubject','_presenter','LIVESHARE_NEW_HOST','DesktopLiveShareController','_commandDisposable','SetWorksheetActiveOperation','_mountLiveShare','status$','UniverSheetsUi','FOLLOWING','clear','671qXwNzI','@univerjs/core','LiveShareStatus','171LwpKtW','LiveShare','idSuffix','56412VFmRmV','_collabSession','throttleTime','Inject','defIds','SAME_OPERATION_SHARE_INTERVAL','@univerjs/ui','_handleNewChangeSets','@univerjs-pro/collaboration','rxjs/operators','memberID','colorChannel1','type','mergeOverrideWithDependencies','attrs','LIVESHARE_OPERATION','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','jsx','toString','125NkJyCB','@univerjs/sheets','sheet','UniverLiveSharePlugin','univer-mb-3\x20univer-w-full\x20univer-text-sm','getCurrentTypeOfUnit$','registerDependencies','defineProperty','HEADER_MENU','_entities','amd','fill','set','useState','Present\x20this\x20document','_startPresenting','operators','registerComponent','override','tryStartPresenting','params','_config','currentColor','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Button','useDependency','getTypeOfUnitAdded$','takeUntil','getStatus','OFFLINE','IConfigService','shouldShareOperation','IUIPartsService','pluginName','delete','clsx','http://www.w3.org/2000/svg','CollaborationSessionService','react/jsx-runtime','dispose$','DependentOn','evenodd','14rEiPTB','_collabSessionService','event$','find','presenting','subscribe','RxDisposable','send','mutations','_stopPresenting','_sharedOperations','registerSharedOperation','101GwGrNe','getOwnPropertyDescriptor','toStringTag','_unitID','path','getLiveShareCoordinatorSync','_handleOnline','touchDependencies','UniverCollaborationClientPlugin','148290jNCRcQ','NOT_FOLLOWING','_handleOffline','jsxs','offline','idle','_injector','symbol','LIVESHARE_TERMINATE','React','_startLiveShareCoordinator','get','parse','56kpNdCl','text','assign','next','UniverIcon','pipe','disposeWithMe','2495103EdfGZb','toDisposable','Module','ICommandService','stringify','svg','add','UniverSheets','react','rxjs','IDLE','complete','1em','SetScrollOperation','_commandService','live-share.config','_reporters','Stop\x20presenting','getValue','end','Dropdown','Start\x20following','0\x200\x2017\x2017','_configService','replace','string','dispose','init','_startFollowing','has','@univerjs/design','@univerjs-pro/collaboration-client','default','onRendered','map','button','_handleTerminate','You\x27re\x20not\x20following\x20the\x20presenter','_univerInstanceService','asObservable','current','_fetchOperations','xlink:href','mask','forwardRef','createElement','Fragment','_beIdle','Plugin','forEach','You\x27re\x20following\x20the\x20presenter','63749kXfDjR','LiveShareController','getLiveShareCoordinator','Disposable','NEW_CHANGESETS','getMemberID','live-share-icon','getUnitId','stopFollowing','requireSession','UniverInstanceType','BuiltInUIPart','createInstance','@univerjs/sheets-ui','UniverProCollaboration','tag','div','UNIVER_SHEET','operations','function','includes','DisposableCollection','startFollowing','entries','random','OPERATION','onStarting','setConfig','not-following','You\x27are\x20offline.','_status$','connectInjector','UniverProLiveShare','use','_init','Injector','values','_stopFollowing','trim','data','following','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','UniverProCollaborationClient','_status','_uiPartsService','UniverDesign','CollaborationEvent','LiveShareCoordinator','children','defs','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','useRef','length','useEffect','2458LfaQDc','getConfig','4492qjRCYQ','CommandType','UNIVER_UNKNOWN','InsertSheetMutation','36996XXKHSl','url(#$1','LIVESHARE_FETCH_OPERATIONS'];_0x4552=function(){return _0x546c9a;};return _0x4552();}(function(_0x2f6a00,_0xf9b080){const _0x4f14a7=_0x161b,_0x465fe3=_0x2f6a00();while(!![]){try{const _0x4efc34=parseInt(_0x4f14a7(0x184))/0x1*(parseInt(_0x4f14a7(0x20a))/0x2)+-parseInt(_0x4f14a7(0x219))/0x3*(-parseInt(_0x4f14a7(0x20c))/0x4)+-parseInt(_0x4f14a7(0x23e))/0x5*(-parseInt(_0x4f14a7(0x210))/0x6)+parseInt(_0x4f14a7(0x1d4))/0x7*(-parseInt(_0x4f14a7(0x19a))/0x8)+-parseInt(_0x4f14a7(0x228))/0x9*(parseInt(_0x4f14a7(0x18d))/0xa)+-parseInt(_0x4f14a7(0x225))/0xb*(parseInt(_0x4f14a7(0x22b))/0xc)+parseInt(_0x4f14a7(0x1a1))/0xd*(parseInt(_0x4f14a7(0x178))/0xe);if(_0x4efc34===_0xf9b080)break;else _0x465fe3['push'](_0x465fe3['shift']());}catch(_0x1623d5){_0x465fe3['push'](_0x465fe3['shift']());}}}(_0x4552,0x29512),function(_0x3c3bd0,_0x3866ae){const _0x5d5dda=_0x161b;typeof exports=='object'&&typeof module<'u'?_0x3866ae(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x5d5dda(0x1e7)&&define[_0x5d5dda(0x248)]?define(['exports',_0x5d5dda(0x226),_0x5d5dda(0x231),_0x5d5dda(0x174),_0x5d5dda(0x1bf),_0x5d5dda(0x1a9),_0x5d5dda(0x233),_0x5d5dda(0x1c0),_0x5d5dda(0x23f),'rxjs',_0x5d5dda(0x234),_0x5d5dda(0x1e1)],_0x3866ae):(_0x3c3bd0=typeof globalThis<'u'?globalThis:_0x3c3bd0||self,_0x3866ae(_0x3c3bd0[_0x5d5dda(0x1f4)]={},_0x3c3bd0['UniverCore'],_0x3c3bd0['UniverUi'],_0x3c3bd0['React'],_0x3c3bd0[_0x5d5dda(0x201)],_0x3c3bd0[_0x5d5dda(0x196)],_0x3c3bd0[_0x5d5dda(0x1e2)],_0x3c3bd0[_0x5d5dda(0x1fe)],_0x3c3bd0[_0x5d5dda(0x1a8)],_0x3c3bd0[_0x5d5dda(0x1aa)],_0x3c3bd0[_0x5d5dda(0x1aa)][_0x5d5dda(0x24e)],_0x3c3bd0[_0x5d5dda(0x222)]));}(this,function(_0x2491c7,_0x4042ad,_0xb7e494,_0x487dbc,_0x1656cf,_0x284080,_0x15dce3,_0x1c5d61,_0x1b9810,_0x301d6d,_0x53bd07,_0x5dafdd){'use strict';const _0xe07925=_0x161b;var _0x5ac212=Object[_0xe07925(0x245)],_0x2c39bd=(_0x27ad98,_0x3050a4,_0x24b607)=>_0x3050a4 in _0x27ad98?_0x5ac212(_0x27ad98,_0x3050a4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24b607}):_0x27ad98[_0x3050a4]=_0x24b607,_0x2b73de=(_0x59a309,_0x252e74,_0x4fafbe)=>_0x2c39bd(_0x59a309,typeof _0x252e74!=_0xe07925(0x194)?_0x252e74+'':_0x252e74,_0x4fafbe);function _0x4b1ba9({ref:_0x5983d5,..._0x5a1d5d}){const _0x20edaf=_0xe07925,{icon:_0x49236d,id:_0x352701,className:_0x2567f0,extend:_0x55a75d,..._0x1953c8}=_0x5a1d5d,_0x5a4480=('univerjs-icon\x20univerjs-icon-'+_0x352701+'\x20'+(_0x2567f0||''))[_0x20edaf(0x1fa)](),_0x27fda2=_0x284080[_0x20edaf(0x207)]('_'+_0x4f9bdc());return _0x353424(_0x49236d,''+_0x352701,{'defIds':_0x49236d[_0x20edaf(0x22f)],'idSuffix':_0x27fda2[_0x20edaf(0x1c9)]},{'ref':_0x5983d5,'className':_0x5a4480,..._0x1953c8},_0x55a75d);}function _0x353424(_0x57db41,_0x5b4b4f,_0x42d6a2,_0x5c62fd,_0x2f0612){const _0x272a27=_0xe07925;return _0x284080[_0x272a27(0x1ce)](_0x57db41[_0x272a27(0x1e3)],{'key':_0x5b4b4f,..._0x47b9fd(_0x57db41,_0x42d6a2,_0x2f0612),..._0x5c62fd},(_0x131415(_0x57db41,_0x42d6a2)[_0x272a27(0x204)]||[])[_0x272a27(0x1c3)]((_0xe13379,_0x410000)=>_0x353424(_0xe13379,_0x5b4b4f+'-'+_0x57db41[_0x272a27(0x1e3)]+'-'+_0x410000,_0x42d6a2,void 0x0,_0x2f0612)));}function _0x47b9fd(_0x315a14,_0x311eeb,_0x38ef44){const _0x5df7d6=_0xe07925,_0x466af4={..._0x315a14[_0x5df7d6(0x239)]};_0x38ef44!=null&&_0x38ef44['colorChannel1']&&_0x466af4[_0x5df7d6(0x249)]===_0x5df7d6(0x236)&&(_0x466af4[_0x5df7d6(0x249)]=_0x38ef44[_0x5df7d6(0x236)]),_0x315a14[_0x5df7d6(0x1e3)]===_0x5df7d6(0x1cc)&&_0x466af4['id']&&(_0x466af4['id']=_0x466af4['id']+_0x311eeb[_0x5df7d6(0x22a)]),Object[_0x5df7d6(0x1eb)](_0x466af4)['forEach'](([_0x332d3a,_0x30cf8f])=>{const _0x3bcbc7=_0x5df7d6;_0x332d3a===_0x3bcbc7(0x1cc)&&typeof _0x30cf8f=='string'&&(_0x466af4[_0x332d3a]=_0x30cf8f['replace'](/url\(#(.*)\)/,_0x3bcbc7(0x211)+_0x311eeb[_0x3bcbc7(0x22a)]+')'));});const {defIds:_0x4f6957}=_0x311eeb;return!_0x4f6957||_0x4f6957[_0x5df7d6(0x208)]===0x0||(_0x315a14['tag']===_0x5df7d6(0x1f5)&&_0x466af4[_0x5df7d6(0x1cb)]&&(_0x466af4['xlink:href']=_0x466af4[_0x5df7d6(0x1cb)]+_0x311eeb[_0x5df7d6(0x22a)]),Object[_0x5df7d6(0x1eb)](_0x466af4)[_0x5df7d6(0x1d2)](([_0x4e1edb,_0x10d3f9])=>{const _0x44ecbf=_0x5df7d6;typeof _0x10d3f9==_0x44ecbf(0x1ba)&&(_0x466af4[_0x4e1edb]=_0x10d3f9[_0x44ecbf(0x1b9)](/url\(#(.*)\)/,_0x44ecbf(0x211)+_0x311eeb[_0x44ecbf(0x22a)]+')'));})),_0x466af4;}function _0x131415(_0x50566f,_0x3641fd){const _0x44d6c6=_0xe07925;var _0x116a62;const {defIds:_0x477488}=_0x3641fd;return!_0x477488||_0x477488['length']===0x0?_0x50566f:_0x50566f[_0x44d6c6(0x1e3)]===_0x44d6c6(0x205)&&((_0x116a62=_0x50566f[_0x44d6c6(0x204)])!=null&&_0x116a62[_0x44d6c6(0x208)])?{..._0x50566f,'children':_0x50566f['children'][_0x44d6c6(0x1c3)](_0x16fc6b=>typeof _0x16fc6b[_0x44d6c6(0x239)]['id']=='string'&&_0x477488&&_0x477488[_0x44d6c6(0x1e8)](_0x16fc6b[_0x44d6c6(0x239)]['id'])?{..._0x16fc6b,'attrs':{..._0x16fc6b[_0x44d6c6(0x239)],'id':_0x16fc6b['attrs']['id']+_0x3641fd[_0x44d6c6(0x22a)]}}:_0x16fc6b)}:_0x50566f;}function _0x4f9bdc(){const _0x474af0=_0xe07925;return Math[_0x474af0(0x1ec)]()[_0x474af0(0x23d)](0x24)['substring'](0x2,0x8);}_0x4b1ba9[_0xe07925(0x214)]=_0xe07925(0x19e);const _0x4931fd={'tag':_0xe07925(0x1a6),'attrs':{'xmlns':_0xe07925(0x172),'fill':_0xe07925(0x217),'viewBox':_0xe07925(0x1b7),'width':_0xe07925(0x1ad),'height':_0xe07925(0x1ad)},'children':[{'tag':_0xe07925(0x188),'attrs':{'fill':_0xe07925(0x254),'d':_0xe07925(0x23b)}},{'tag':_0xe07925(0x188),'attrs':{'fill':_0xe07925(0x254),'d':_0xe07925(0x1fd),'fillRule':'evenodd','clipRule':_0xe07925(0x177)}}]},_0x4eee83=_0x284080[_0xe07925(0x1cd)](function(_0x11eb02,_0x16ea42){const _0x478e7c=_0xe07925;return _0x284080[_0x478e7c(0x1ce)](_0x4b1ba9,Object[_0x478e7c(0x19c)]({},_0x11eb02,{'id':_0x478e7c(0x1da),'ref':_0x16ea42,'icon':_0x4931fd}));});_0x4eee83[_0xe07925(0x214)]='LiveShareIcon';class _0x349095 extends _0x4042ad[_0xe07925(0x1d7)]{constructor(){const _0x24a0b5=_0xe07925;super(...arguments),_0x2b73de(this,'_sharedOperations',new Set()),_0x2b73de(this,_0x24a0b5(0x1b1),new Set());}[_0xe07925(0x183)](_0x49bb4a){const _0x326be5=_0xe07925;return this['_sharedOperations'][_0x326be5(0x1a7)](_0x49bb4a),_0x4042ad[_0x326be5(0x1a2)](()=>this[_0x326be5(0x182)]['delete'](_0x49bb4a));}['registerInitialStateReporter'](_0x3f5bd0){const _0x160754=_0xe07925;return this[_0x160754(0x1b1)][_0x160754(0x1a7)](_0x3f5bd0),_0x4042ad[_0x160754(0x1a2)](()=>this[_0x160754(0x1b1)][_0x160754(0x170)](_0x3f5bd0));}[_0xe07925(0x25d)](_0x505b49){const _0xf95b4f=_0xe07925;return this[_0xf95b4f(0x182)][_0xf95b4f(0x1be)](_0x505b49);}['getInitialStates'](_0x5eaa43){const _0x363788=_0xe07925;return Array['from'](this[_0x363788(0x1b1)])['map'](_0x5a37e5=>_0x5a37e5(_0x5eaa43));}}var _0x14874e=Object[_0xe07925(0x185)],_0x2507fd=(_0x57586b,_0x57f2ce,_0x337c3b,_0x4afa70)=>{const _0x5c33f9=_0xe07925;for(var _0x22b41d=_0x4afa70>0x1?void 0x0:_0x4afa70?_0x14874e(_0x57f2ce,_0x337c3b):_0x57f2ce,_0x1373fe=_0x57586b[_0x5c33f9(0x208)]-0x1,_0x12ff93;_0x1373fe>=0x0;_0x1373fe--)(_0x12ff93=_0x57586b[_0x1373fe])&&(_0x22b41d=_0x12ff93(_0x22b41d)||_0x22b41d);return _0x22b41d;},_0x3586da=(_0x306d1a,_0x5d141e)=>(_0x20e10c,_0xff81b2)=>_0x5d141e(_0x20e10c,_0xff81b2,_0x306d1a);_0x2491c7[_0xe07925(0x1d5)]=class extends _0x4042ad[_0xe07925(0x17e)]{constructor(_0x66ae9,_0x207b91,_0x372d17){const _0x1bfd0a=_0xe07925;super(),_0x2b73de(this,_0x1bfd0a(0x247),new Map()),(this[_0x1bfd0a(0x1c7)]=_0x66ae9,this[_0x1bfd0a(0x193)]=_0x207b91,this[_0x1bfd0a(0x179)]=_0x372d17,this[_0x1bfd0a(0x1f6)]());}async['getLiveShareCoordinator'](_0x282a21){const _0x3e82cd=_0xe07925;return this[_0x3e82cd(0x247)][_0x3e82cd(0x1be)](_0x282a21)||await this[_0x3e82cd(0x197)](_0x282a21),this[_0x3e82cd(0x247)][_0x3e82cd(0x198)](_0x282a21);}[_0xe07925(0x189)](_0x271b36){const _0x2da313=_0xe07925;var _0x20b8d7;return(_0x20b8d7=this[_0x2da313(0x247)][_0x2da313(0x198)](_0x271b36))!=null?_0x20b8d7:null;}[_0xe07925(0x1f6)](){const _0x451f49=_0xe07925;this['_univerInstanceService'][_0x451f49(0x258)](_0x4042ad[_0x451f49(0x1de)]['UNIVER_SHEET'])['pipe'](_0x53bd07[_0x451f49(0x259)](this['dispose$']))['subscribe'](async _0x56a978=>{const _0x217198=_0x451f49,_0x2002e7=_0x56a978[_0x217198(0x1db)]();this[_0x217198(0x247)][_0x217198(0x1be)](_0x2002e7)||this[_0x217198(0x197)](_0x2002e7);}),this[_0x451f49(0x1c7)]['getTypeOfUnitDisposed$'](_0x4042ad[_0x451f49(0x1de)][_0x451f49(0x1e5)])[_0x451f49(0x19f)](_0x53bd07[_0x451f49(0x259)](this[_0x451f49(0x175)]))[_0x451f49(0x17d)](_0x53db28=>{const _0x2f6fe5=_0x451f49,_0x3880d7=_0x53db28[_0x2f6fe5(0x1db)](),_0x276077=this['_entities'][_0x2f6fe5(0x198)](_0x3880d7);_0x276077==null||_0x276077['dispose']();});}async[_0xe07925(0x197)](_0x4ffc50){const _0x4ddd44=_0xe07925,_0x42482d=await this['_collabSessionService'][_0x4ddd44(0x1dd)](_0x4ffc50),_0x470cf0=this[_0x4ddd44(0x193)][_0x4ddd44(0x1e0)](_0x2491c7[_0x4ddd44(0x203)],_0x4ffc50,_0x42482d);return _0x470cf0[_0x4ddd44(0x1bc)](),this[_0x4ddd44(0x247)][_0x4ddd44(0x24a)](_0x4ffc50,_0x470cf0),_0x470cf0;}},_0x2491c7['LiveShareController']=_0x2507fd([_0x3586da(0x0,_0x4042ad['IUniverInstanceService']),_0x3586da(0x1,_0x4042ad[_0xe07925(0x22e)](_0x4042ad[_0xe07925(0x1f7)])),_0x3586da(0x2,_0x4042ad[_0xe07925(0x22e)](_0x1c5d61[_0xe07925(0x173)]))],_0x2491c7[_0xe07925(0x1d5)]);var _0x4ab54e=(_0x5cd261=>(_0x5cd261['OFFLINE']=_0xe07925(0x191),_0x5cd261['IDLE']=_0xe07925(0x192),_0x5cd261[_0xe07925(0x223)]=_0xe07925(0x1fc),_0x5cd261[_0xe07925(0x18e)]='not-following',_0x5cd261[_0xe07925(0x213)]=_0xe07925(0x17c),_0x5cd261))(_0x4ab54e||{});const _0x27ee9f=_0xe07925(0x230),_0x1aeee1=0xc8;_0x2491c7[_0xe07925(0x203)]=class extends _0x4042ad[_0xe07925(0x17e)]{constructor(_0x2cad67,_0x6336b9,_0x321583,_0x6a3c57,_0x168fe1){const _0x412856=_0xe07925;super(),_0x2b73de(this,_0x412856(0x1f2),new _0x301d6d[(_0x412856(0x21a))](_0x412856(0x192))),_0x2b73de(this,_0x412856(0x221),this['_status$'][_0x412856(0x1c8)]()),_0x2b73de(this,_0x412856(0x1f6),!0x1),_0x2b73de(this,'_commandDisposable',null),_0x2b73de(this,_0x412856(0x21b),null),(this[_0x412856(0x187)]=_0x2cad67,this['_collabSession']=_0x6336b9,this[_0x412856(0x1b8)]=_0x321583,this[_0x412856(0x218)]=_0x6a3c57,this['_commandService']=_0x168fe1);}get[_0xe07925(0x1ff)](){const _0x1d3d52=_0xe07925;return this[_0x1d3d52(0x1f2)][_0x1d3d52(0x1b3)]();}[_0xe07925(0x1bb)](){const _0x5bd4f9=_0xe07925;var _0x592452;(_0x592452=this[_0x5bd4f9(0x21e)])==null||_0x592452['dispose'](),this['_status$'][_0x5bd4f9(0x19d)](_0x5bd4f9(0x192)),this['_status$'][_0x5bd4f9(0x1ac)]();}[_0xe07925(0x25a)](){const _0x176309=_0xe07925;return this[_0x176309(0x1ff)];}['init'](){const _0x3fbc76=_0xe07925;this[_0x3fbc76(0x1f6)]||(this['_init']=!0x0,this['_collabSession']['sessionStatus$'][_0x3fbc76(0x19f)](_0x53bd07[_0x3fbc76(0x259)](this['dispose$']))[_0x3fbc76(0x17d)](_0x3a32fa=>{const _0x1ef024=_0x3fbc76;switch(_0x3a32fa){case _0x1c5d61['SessionStatus'][_0x1ef024(0x25b)]:this['_handleOffline']();break;case _0x1c5d61['SessionStatus']['ONLINE']:this['_handleOnline']();break;}}),this[_0x3fbc76(0x22c)][_0x3fbc76(0x17a)][_0x3fbc76(0x19f)](_0x53bd07[_0x3fbc76(0x259)](this['dispose$']))[_0x3fbc76(0x17d)](_0x24ad10=>{const _0x204dde=_0x3fbc76,{eventID:_0x5c5919}=_0x24ad10;switch(_0x5c5919){case _0x15dce3[_0x204dde(0x202)][_0x204dde(0x21c)]:this['_handleNewHost'](_0x24ad10);break;case _0x15dce3[_0x204dde(0x202)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x24ad10);break;case _0x15dce3[_0x204dde(0x202)][_0x204dde(0x195)]:this[_0x204dde(0x1c5)]();break;case _0x15dce3[_0x204dde(0x202)][_0x204dde(0x1d8)]:this[_0x204dde(0x232)](_0x24ad10);break;}}));}[_0xe07925(0x251)](){const _0x115eed=_0xe07925;this[_0x115eed(0x22c)][_0x115eed(0x17f)]({'eventID':_0x15dce3['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x115eed(0x187)],'userID':this[_0x115eed(0x22c)][_0x115eed(0x1d9)]()}},this['_unitID']);}['stopPresenting'](){const _0x2d0dc5=_0xe07925;this['_status']===_0x2d0dc5(0x17c)&&(this[_0x2d0dc5(0x1f2)][_0x2d0dc5(0x19d)](_0x2d0dc5(0x192)),this[_0x2d0dc5(0x22c)]['send']({'eventID':_0x15dce3[_0x2d0dc5(0x202)][_0x2d0dc5(0x195)],'data':{'unitID':this[_0x2d0dc5(0x187)]}},this[_0x2d0dc5(0x187)]));}[_0xe07925(0x1ea)](){const _0x37a45c=_0xe07925;this[_0x37a45c(0x1ff)]===_0x37a45c(0x1f0)&&(this[_0x37a45c(0x1f2)]['next'](_0x37a45c(0x1fc)),this[_0x37a45c(0x1bd)]());}[_0xe07925(0x1dc)](){const _0x411713=_0xe07925;this[_0x411713(0x1ff)]===_0x411713(0x1fc)&&this[_0x411713(0x1f9)]();}['_handleNewHost'](_0x429f9b){const _0x289e3c=_0xe07925,{presenter:_0x6b2ccb}=_0x429f9b['data'],_0x3a9d01=this[_0x289e3c(0x22c)][_0x289e3c(0x1d9)]();this[_0x289e3c(0x21b)]=_0x6b2ccb,_0x6b2ccb===_0x3a9d01?(this[_0x289e3c(0x1f9)](),this[_0x289e3c(0x24d)]()):this[_0x289e3c(0x1ff)]!==_0x289e3c(0x1f0)&&(this[_0x289e3c(0x181)](),this['_startFollowing']());}[_0xe07925(0x1ca)](){const _0x5eb70e=_0xe07925,_0x27a228={'eventID':_0x15dce3[_0x5eb70e(0x202)][_0x5eb70e(0x212)]};this['_collabSession']['send'](_0x27a228,this[_0x5eb70e(0x187)]);}[_0xe07925(0x1c5)](){const _0x2bad8f=_0xe07925;this['_presenter']=null,this[_0x2bad8f(0x1ff)]!==_0x2bad8f(0x17c)&&this[_0x2bad8f(0x1d0)]();}[_0xe07925(0x232)](_0x5ab55d){const _0x10fbbd=_0xe07925;if(this['_status']==='following'&&this[_0x10fbbd(0x21b)]===_0x5ab55d[_0x10fbbd(0x1fb)][_0x10fbbd(0x235)]){const _0x128ece=_0x15dce3['parseProtocolChangeset'](_0x5ab55d[_0x10fbbd(0x1fb)])[_0x10fbbd(0x180)]['reverse']()[_0x10fbbd(0x17b)](_0x170207=>_0x170207['id']===_0x1b9810[_0x10fbbd(0x20f)]['id']);if(_0x128ece){const _0x104279=_0x128ece[_0x10fbbd(0x252)]['unitId'],_0x813733=_0x128ece[_0x10fbbd(0x252)][_0x10fbbd(0x240)]['id'];setTimeout(()=>{const _0x55fb7d=_0x10fbbd;this[_0x55fb7d(0x1af)][_0x55fb7d(0x216)](_0x1b9810[_0x55fb7d(0x21f)]['id'],{'unitId':_0x104279,'subUnitId':_0x813733},{'fromCollab':!0x0});});}}}[_0xe07925(0x24d)](){const _0x2aa383=_0xe07925;this[_0x2aa383(0x1f2)][_0x2aa383(0x19d)]('presenting');const _0x732286=new Map(),_0x1d47f6=this[_0x2aa383(0x21e)]=new _0x4042ad[(_0x2aa383(0x1e9))]();_0x1d47f6[_0x2aa383(0x1a7)](_0x4042ad[_0x2aa383(0x1a2)](()=>{const _0x401b91=_0x2aa383;_0x732286[_0x401b91(0x1d2)](_0x228533=>_0x228533[_0x401b91(0x1ac)]()),_0x732286[_0x401b91(0x224)]();})),_0x1d47f6[_0x2aa383(0x1a7)](this[_0x2aa383(0x1af)][_0x2aa383(0x215)](_0x209d2b=>{const _0x149227=_0x2aa383;var _0x4f79bf;if(_0x209d2b[_0x149227(0x237)]!==_0x4042ad[_0x149227(0x20d)][_0x149227(0x1ed)]||!this[_0x149227(0x218)][_0x149227(0x25d)](_0x209d2b['id']))return;const {id:_0x2de7f6}=_0x209d2b;let _0x5f2f2a;_0x732286[_0x149227(0x1be)](_0x2de7f6)?_0x5f2f2a=_0x732286[_0x149227(0x198)](_0x2de7f6):(_0x5f2f2a=new _0x301d6d['Subject'](),_0x732286[_0x149227(0x24a)](_0x2de7f6,_0x5f2f2a),_0x5f2f2a[_0x149227(0x19f)](_0x53bd07[_0x149227(0x22d)]((_0x4f79bf=this['_configService'][_0x149227(0x20b)](_0x27ee9f))!=null?_0x4f79bf:_0x1aeee1,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x149227(0x17d)](_0xb0b402=>{const _0x2d89b1=_0x149227;this['_collabSession']['send']({'eventID':_0x15dce3[_0x2d89b1(0x202)][_0x2d89b1(0x23a)],'data':{'unitID':this[_0x2d89b1(0x187)],'operations':{[_0xb0b402['id']]:{'id':_0xb0b402['id'],'params':JSON['stringify'](_0xb0b402[_0x2d89b1(0x252)])}}}},this[_0x2d89b1(0x187)]);})),_0x5f2f2a[_0x149227(0x19d)](_0x209d2b);})),this[_0x2aa383(0x218)]['getInitialStates'](this[_0x2aa383(0x187)])[_0x2aa383(0x1d2)](_0x288743=>this['_collabSession'][_0x2aa383(0x17f)]({'eventID':_0x15dce3[_0x2aa383(0x202)][_0x2aa383(0x23a)],'data':{'unitID':this['_unitID'],'operations':{[_0x288743['id']]:{'id':_0x288743['id'],'params':JSON[_0x2aa383(0x1a5)](_0x288743['params'])}}}},this['_unitID']));}[_0xe07925(0x181)](){const _0x36eea6=_0xe07925;var _0x5115ee;this[_0x36eea6(0x1f2)][_0x36eea6(0x19d)](_0x36eea6(0x192)),(_0x5115ee=this['_commandDisposable'])==null||_0x5115ee[_0x36eea6(0x1bb)](),this[_0x36eea6(0x21e)]=null;}['_startFollowing'](){const _0x2f5180=_0xe07925;var _0x50d6f4;(_0x50d6f4=this[_0x2f5180(0x21e)])==null||_0x50d6f4[_0x2f5180(0x1bb)](),this['_status$']['next'](_0x2f5180(0x1fc));}[_0xe07925(0x1d0)](){const _0x1a5cea=_0xe07925;var _0x337a64;this[_0x1a5cea(0x1f2)][_0x1a5cea(0x19d)]('idle'),(_0x337a64=this[_0x1a5cea(0x21e)])==null||_0x337a64[_0x1a5cea(0x1bb)](),this['_commandDisposable']=null;}[_0xe07925(0x1f9)](){const _0x48d364=_0xe07925;var _0x5d190c;this['_status$'][_0x48d364(0x19d)](_0x48d364(0x1f0)),(_0x5d190c=this[_0x48d364(0x21e)])==null||_0x5d190c[_0x48d364(0x1bb)]();}['_handleOperation'](_0x2109cd){const _0x3b55f0=_0xe07925;if([_0x3b55f0(0x17c),_0x3b55f0(0x1f0),_0x3b55f0(0x191)][_0x3b55f0(0x1e8)](this[_0x3b55f0(0x1ff)])||!_0x2109cd[_0x3b55f0(0x1fb)]['presenter']||_0x2109cd[_0x3b55f0(0x1fb)]['presenter']===this[_0x3b55f0(0x22c)][_0x3b55f0(0x1d9)]())return;this[_0x3b55f0(0x1ff)]===_0x3b55f0(0x192)&&this[_0x3b55f0(0x1bd)]();const _0x505fd2=_0x2109cd[_0x3b55f0(0x1fb)][_0x3b55f0(0x1e6)];Object[_0x3b55f0(0x1f8)](_0x505fd2)['forEach'](_0x564078=>{const _0x3d8290=_0x3b55f0;this[_0x3d8290(0x1af)][_0x3d8290(0x216)](_0x564078['id'],_0x564078[_0x3d8290(0x252)]?JSON[_0x3d8290(0x199)](_0x564078[_0x3d8290(0x252)]):null,{'fromCollab':!0x0});});}[_0xe07925(0x18f)](){const _0x36ad8b=_0xe07925;var _0x165f89;this[_0x36ad8b(0x1f2)]['next'](_0x36ad8b(0x191)),(_0x165f89=this[_0x36ad8b(0x21e)])==null||_0x165f89[_0x36ad8b(0x1bb)]();}[_0xe07925(0x18a)](){const _0x3d30a6=_0xe07925;this[_0x3d30a6(0x1f2)]['next']('idle'),this[_0x3d30a6(0x1ca)]();}},_0x2491c7[_0xe07925(0x203)]=_0x2507fd([_0x3586da(0x2,_0x4042ad[_0xe07925(0x25c)]),_0x3586da(0x3,_0x4042ad['Inject'](_0x349095)),_0x3586da(0x4,_0x4042ad[_0xe07925(0x1a4)])],_0x2491c7[_0xe07925(0x203)]);function _0xada477(){const _0x4d7d32=_0xe07925,_0x24243a=_0xb7e494[_0x4d7d32(0x257)](_0x2491c7[_0x4d7d32(0x1d5)]),_0xdea182=_0xb7e494[_0x4d7d32(0x257)](_0x4042ad['IUniverInstanceService']),_0x440939=_0xb7e494['useObservable'](()=>_0xdea182[_0x4d7d32(0x243)](_0x4042ad[_0x4d7d32(0x1de)][_0x4d7d32(0x1e5)]),void 0x0,!0x1,[]),[_0x5b2160,_0x5d5a6e]=_0x284080[_0x4d7d32(0x24b)](null),[_0x820bd9,_0xc36e6a]=_0x284080[_0x4d7d32(0x24b)](_0x4ab54e[_0x4d7d32(0x1ab)]),_0x17b997=_0x284080[_0x4d7d32(0x207)](null);return _0x284080[_0x4d7d32(0x209)](()=>(_0x440939&&_0x24243a[_0x4d7d32(0x1d6)](_0x440939[_0x4d7d32(0x1db)]())['then'](_0x5bf23a=>{const _0x5a8ac5=_0x4d7d32;_0x5d5a6e(_0x5bf23a),_0x17b997['current']=_0x5bf23a[_0x5a8ac5(0x221)][_0x5a8ac5(0x17d)](_0x285668=>{_0xc36e6a(_0x285668);});}),()=>{const _0x3a609c=_0x4d7d32;var _0x15fa81;(_0x15fa81=_0x17b997[_0x3a609c(0x1c9)])==null||_0x15fa81['unsubscribe'](),_0x17b997[_0x3a609c(0x1c9)]=null;}),[_0x440939,_0x24243a]),_0x5b2160?_0x487dbc[_0x4d7d32(0x23c)](_0x1656cf[_0x4d7d32(0x1b5)],{'align':_0x4d7d32(0x1b4),'disabled':_0x820bd9===_0x4ab54e[_0x4d7d32(0x25b)],'className':_0x4d7d32(0x206),'overlay':_0x487dbc[_0x4d7d32(0x23c)](_0x28bf40,{'status':_0x820bd9,'coordinator':_0x5b2160}),'children':_0x487dbc['jsx'](_0x4d7d32(0x1c4),{'className':_0x1656cf[_0x4d7d32(0x171)](_0x4d7d32(0x255),{'univer-cursor-not-allowed':_0x820bd9===_0x4ab54e[_0x4d7d32(0x25b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x820bd9!==_0x4ab54e[_0x4d7d32(0x25b)]}),'type':'button','children':_0x487dbc[_0x4d7d32(0x23c)](_0x4eee83,{'className':'univer-size-4'})})}):null;}function _0x28bf40(_0x35f5bd){const _0x4cab20=_0xe07925,{status:_0x4635c9,coordinator:_0x386e6a}=_0x35f5bd;switch(_0x4635c9){case _0x4ab54e[_0x4cab20(0x1ab)]:return _0x487dbc['jsx'](_0x3ea79c,{'coordinator':_0x386e6a});case _0x4ab54e['FOLLOWING']:return _0x487dbc[_0x4cab20(0x23c)](_0x54ed8f,{'coordinator':_0x386e6a});case _0x4ab54e[_0x4cab20(0x18e)]:return _0x487dbc['jsx'](_0x148116,{'coordinator':_0x386e6a});case _0x4ab54e[_0x4cab20(0x25b)]:return _0x487dbc[_0x4cab20(0x23c)](_0x5bf57d,{});case _0x4ab54e['PRESENTING']:return _0x487dbc[_0x4cab20(0x23c)](_0x2fad0c,{'coordinator':_0x386e6a});default:return null;}}function _0x3ea79c(_0x449b2c){const _0x69dae0=_0xe07925,{coordinator:_0x3c1e38}=_0x449b2c;return _0x487dbc['jsxs'](_0x487dbc[_0x69dae0(0x1cf)],{'children':[_0x487dbc[_0x69dae0(0x23c)](_0x69dae0(0x1e4),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x69dae0(0x24c)}),_0x487dbc[_0x69dae0(0x23c)](_0x1656cf[_0x69dae0(0x256)],{'onClick':()=>_0x3c1e38[_0x69dae0(0x251)](),'children':'Start'})]});}function _0x54ed8f(_0x2ce661){const _0x57eb1f=_0xe07925,{coordinator:_0x49184f}=_0x2ce661;return _0x487dbc['jsxs'](_0x487dbc[_0x57eb1f(0x1cf)],{'children':[_0x487dbc['jsx'](_0x57eb1f(0x1e4),{'className':_0x57eb1f(0x242),'children':_0x57eb1f(0x1d3)}),_0x487dbc[_0x57eb1f(0x23c)](_0x1656cf[_0x57eb1f(0x256)],{'onClick':()=>_0x49184f['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x148116(_0x238bff){const _0x375fdb=_0xe07925,{coordinator:_0x2e6e19}=_0x238bff;return _0x487dbc['jsxs'](_0x487dbc[_0x375fdb(0x1cf)],{'children':[_0x487dbc['jsx'](_0x375fdb(0x1e4),{'className':_0x375fdb(0x242),'children':_0x375fdb(0x1c6)}),_0x487dbc[_0x375fdb(0x23c)](_0x1656cf['Button'],{'variant':_0x375fdb(0x19b),'onClick':()=>_0x2e6e19['startFollowing'](),'children':_0x375fdb(0x1b6)})]});}function _0x2fad0c(_0x280695){const _0x3ce87e=_0xe07925,{coordinator:_0xe3b3a3}=_0x280695;return _0x487dbc[_0x3ce87e(0x190)](_0x487dbc['Fragment'],{'children':[_0x487dbc[_0x3ce87e(0x23c)]('div',{'className':_0x3ce87e(0x242),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x487dbc[_0x3ce87e(0x23c)](_0x1656cf[_0x3ce87e(0x256)],{'variant':_0x3ce87e(0x1c1),'onClick':()=>_0xe3b3a3['stopPresenting'](),'children':_0x3ce87e(0x1b2)})]});}function _0x5bf57d(){const _0x1fb1f2=_0xe07925;return _0x487dbc['jsx'](_0x487dbc[_0x1fb1f2(0x1cf)],{'children':_0x1fb1f2(0x1f1)});}var _0x466f5b=Object[_0xe07925(0x185)],_0x490d4f=(_0x3b5480,_0x592390,_0x52b8ef,_0x518fb8)=>{const _0x360a67=_0xe07925;for(var _0x11232d=_0x518fb8>0x1?void 0x0:_0x518fb8?_0x466f5b(_0x592390,_0x52b8ef):_0x592390,_0x25a230=_0x3b5480[_0x360a67(0x208)]-0x1,_0x509efe;_0x25a230>=0x0;_0x25a230--)(_0x509efe=_0x3b5480[_0x25a230])&&(_0x11232d=_0x509efe(_0x11232d)||_0x11232d);return _0x11232d;},_0x451176=(_0x41f50e,_0x403f21)=>(_0x9ceb36,_0x1500d7)=>_0x403f21(_0x9ceb36,_0x1500d7,_0x41f50e);_0x2491c7[_0xe07925(0x21d)]=class extends _0x4042ad['Disposable']{constructor(_0x2d8321,_0x21c899){const _0x43765c=_0xe07925;super(),this[_0x43765c(0x193)]=_0x2d8321,this[_0x43765c(0x200)]=_0x21c899,this[_0x43765c(0x220)]();}[_0xe07925(0x220)](){const _0x35c349=_0xe07925;this[_0x35c349(0x1a0)](this['_uiPartsService'][_0x35c349(0x24f)](_0xb7e494[_0x35c349(0x1df)][_0x35c349(0x246)],()=>_0xb7e494[_0x35c349(0x1f3)](_0xada477,this[_0x35c349(0x193)])));}},_0x2491c7[_0xe07925(0x21d)]=_0x490d4f([_0x451176(0x0,_0x4042ad[_0xe07925(0x22e)](_0x4042ad[_0xe07925(0x1f7)])),_0x451176(0x1,_0xb7e494[_0xe07925(0x25e)])],_0x2491c7[_0xe07925(0x21d)]);const _0x3a1824=_0xe07925(0x1b0),_0x4d63f7={};var _0x4592a9=Object[_0xe07925(0x185)],_0x33b70b=(_0x4ec50d,_0x4aadc3,_0x261332,_0x23d25f)=>{const _0x2ec74f=_0xe07925;for(var _0x59b293=_0x23d25f>0x1?void 0x0:_0x23d25f?_0x4592a9(_0x4aadc3,_0x261332):_0x4aadc3,_0x575bdf=_0x4ec50d[_0x2ec74f(0x208)]-0x1,_0x2c7e35;_0x575bdf>=0x0;_0x575bdf--)(_0x2c7e35=_0x4ec50d[_0x575bdf])&&(_0x59b293=_0x2c7e35(_0x59b293)||_0x59b293);return _0x59b293;},_0x5d85f0=(_0x22be98,_0x64087)=>(_0x4f80d7,_0x5907ac)=>_0x64087(_0x4f80d7,_0x5907ac,_0x22be98);let _0x491240=class extends _0x4042ad[_0xe07925(0x1d7)]{constructor(_0x131648){const _0x98eb08=_0xe07925;super(),this[_0x98eb08(0x218)]=_0x131648,this['_init']();}[_0xe07925(0x1f6)](){const _0x54c90d=_0xe07925;[_0x5dafdd['SetZoomRatioOperation']['id'],_0x5dafdd[_0x54c90d(0x1ae)]['id'],_0x1b9810[_0x54c90d(0x21f)]['id']][_0x54c90d(0x1d2)](_0x21ddfa=>{const _0x37d204=_0x54c90d;this['disposeWithMe'](this[_0x37d204(0x218)]['registerSharedOperation'](_0x21ddfa));});}};_0x491240=_0x33b70b([_0x5d85f0(0x0,_0x4042ad[_0xe07925(0x22e)](_0x349095))],_0x491240);var _0x50eedc=Object[_0xe07925(0x245)],_0x2dfd36=Object[_0xe07925(0x185)],_0x199b14=(_0x1368ed,_0x5558f9,_0x3dac72)=>_0x5558f9 in _0x1368ed?_0x50eedc(_0x1368ed,_0x5558f9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dac72}):_0x1368ed[_0x5558f9]=_0x3dac72,_0x336e50=(_0x114c5b,_0x33f618,_0x38295b,_0x5880e7)=>{for(var _0x2d3a74=_0x5880e7>0x1?void 0x0:_0x5880e7?_0x2dfd36(_0x33f618,_0x38295b):_0x33f618,_0x3c2fc1=_0x114c5b['length']-0x1,_0x55be7a;_0x3c2fc1>=0x0;_0x3c2fc1--)(_0x55be7a=_0x114c5b[_0x3c2fc1])&&(_0x2d3a74=_0x55be7a(_0x2d3a74)||_0x2d3a74);return _0x2d3a74;},_0x3e368d=(_0x5af0d2,_0xf6c673)=>(_0x5c8860,_0xae139b)=>_0xf6c673(_0x5c8860,_0xae139b,_0x5af0d2),_0x580314=(_0x299eac,_0x53e3bc,_0x474830)=>_0x199b14(_0x299eac,typeof _0x53e3bc!=_0xe07925(0x194)?_0x53e3bc+'':_0x53e3bc,_0x474830);const _0x12967c='UNIVER_LIVE_SHARE_PLUGIN';_0x2491c7[_0xe07925(0x241)]=class extends _0x4042ad[_0xe07925(0x1d1)]{constructor(_0x69262=_0x4d63f7,_0x3f8430,_0x5dc628){const _0x421fb6=_0xe07925;super(),this[_0x421fb6(0x253)]=_0x69262,this[_0x421fb6(0x193)]=_0x3f8430,this[_0x421fb6(0x1b8)]=_0x5dc628;const {..._0x3502c5}=_0x4042ad['merge']({},_0x4d63f7,this[_0x421fb6(0x253)]);this[_0x421fb6(0x1b8)][_0x421fb6(0x1ef)](_0x3a1824,_0x3502c5);}[_0xe07925(0x1ee)](){const _0x4c0b47=_0xe07925;_0x4042ad[_0x4c0b47(0x244)](this[_0x4c0b47(0x193)],_0x4042ad[_0x4c0b47(0x238)]([[_0x349095],[_0x2491c7[_0x4c0b47(0x1d5)]],[_0x491240],[_0x2491c7[_0x4c0b47(0x21d)]]],this[_0x4c0b47(0x253)][_0x4c0b47(0x250)])),_0x4042ad[_0x4c0b47(0x18b)](this['_injector'],[[_0x491240]]);}[_0xe07925(0x1c2)](){const _0x361819=_0xe07925;_0x4042ad[_0x361819(0x18b)](this[_0x361819(0x193)],[[_0x2491c7[_0x361819(0x21d)]]]);}},_0x580314(_0x2491c7[_0xe07925(0x241)],_0xe07925(0x237),_0x4042ad[_0xe07925(0x1de)][_0xe07925(0x20e)]),_0x580314(_0x2491c7[_0xe07925(0x241)],_0xe07925(0x25f),_0x12967c),_0x2491c7['UniverLiveSharePlugin']=_0x336e50([_0x4042ad[_0xe07925(0x176)](_0x1c5d61[_0xe07925(0x18c)]),_0x3e368d(0x1,_0x4042ad['Inject'](_0x4042ad[_0xe07925(0x1f7)])),_0x3e368d(0x2,_0x4042ad[_0xe07925(0x25c)])],_0x2491c7['UniverLiveSharePlugin']),_0x2491c7[_0xe07925(0x229)]=_0xada477,_0x2491c7['LiveShareService']=_0x349095,_0x2491c7[_0xe07925(0x227)]=_0x4ab54e,Object['defineProperty'](_0x2491c7,Symbol[_0xe07925(0x186)],{'value':_0xe07925(0x1a3)});}));
|
|
1
|
+
(function(_0x19d719,_0x5d290f){const _0x3730e4=_0x47ef,_0x2e6bb2=_0x19d719();while(!![]){try{const _0x289d24=-parseInt(_0x3730e4(0x196))/0x1+parseInt(_0x3730e4(0x216))/0x2*(-parseInt(_0x3730e4(0x22a))/0x3)+-parseInt(_0x3730e4(0x18b))/0x4*(-parseInt(_0x3730e4(0x232))/0x5)+-parseInt(_0x3730e4(0x225))/0x6*(parseInt(_0x3730e4(0x236))/0x7)+parseInt(_0x3730e4(0x1f4))/0x8+-parseInt(_0x3730e4(0x211))/0x9+parseInt(_0x3730e4(0x1a8))/0xa;if(_0x289d24===_0x5d290f)break;else _0x2e6bb2['push'](_0x2e6bb2['shift']());}catch(_0x209b8a){_0x2e6bb2['push'](_0x2e6bb2['shift']());}}}(_0x26b4,0x52001),function(_0x27a287,_0x3120ae){const _0x19f6b7=_0x47ef;typeof exports==_0x19f6b7(0x1f6)&&typeof module<'u'?_0x3120ae(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x19f6b7(0x176)]?define([_0x19f6b7(0x1cb),_0x19f6b7(0x1d9),_0x19f6b7(0x1e6),_0x19f6b7(0x188),'@univerjs/design',_0x19f6b7(0x22b),'@univerjs-pro/collaboration',_0x19f6b7(0x247),_0x19f6b7(0x1ce),'rxjs',_0x19f6b7(0x242),_0x19f6b7(0x17b)],_0x3120ae):(_0x27a287=typeof globalThis<'u'?globalThis:_0x27a287||self,_0x3120ae(_0x27a287[_0x19f6b7(0x173)]={},_0x27a287[_0x19f6b7(0x1c5)],_0x27a287[_0x19f6b7(0x233)],_0x27a287[_0x19f6b7(0x1bc)],_0x27a287[_0x19f6b7(0x195)],_0x27a287['React'],_0x27a287[_0x19f6b7(0x1cc)],_0x27a287[_0x19f6b7(0x191)],_0x27a287[_0x19f6b7(0x1b2)],_0x27a287[_0x19f6b7(0x1eb)],_0x27a287['rxjs']['operators'],_0x27a287['UniverSheetsUi']));}(this,function(_0x3a763e,_0xfc97e0,_0xe64119,_0x2acd25,_0x298fd8,_0x5b852e,_0x59fa7e,_0x9b511e,_0x556042,_0x11a066,_0x5cb3f2,_0x3b2393){'use strict';const _0x21175a=_0x47ef;var _0x4c4f8d=Object[_0x21175a(0x17f)],_0x19c515=(_0x324d74,_0x2326ee,_0x2edb36)=>_0x2326ee in _0x324d74?_0x4c4f8d(_0x324d74,_0x2326ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2edb36}):_0x324d74[_0x2326ee]=_0x2edb36,_0x433c9c=(_0x517f5b,_0x1ade79,_0x56a4a6)=>_0x19c515(_0x517f5b,typeof _0x1ade79!='symbol'?_0x1ade79+'':_0x1ade79,_0x56a4a6);function _0x567c41({ref:_0x3d9ed6,..._0x189bff}){const _0x19fda9=_0x21175a,{icon:_0xe40563,id:_0x48c7b0,className:_0x5c2dce,extend:_0x587b9b,..._0x10cd6e}=_0x189bff,_0x288ab9=(_0x19fda9(0x171)+_0x48c7b0+'\x20'+(_0x5c2dce||''))[_0x19fda9(0x1c0)](),_0x22e4b1=_0x5b852e[_0x19fda9(0x193)]('_'+_0x10563d());return _0x47ad59(_0xe40563,''+_0x48c7b0,{'defIds':_0xe40563['defIds'],'idSuffix':_0x22e4b1[_0x19fda9(0x237)]},{'ref':_0x3d9ed6,'className':_0x288ab9,..._0x10cd6e},_0x587b9b);}function _0x47ad59(_0x3d7025,_0x56d716,_0x5e0705,_0x80d146,_0x180f38){const _0x140338=_0x21175a;return _0x5b852e['createElement'](_0x3d7025[_0x140338(0x190)],{'key':_0x56d716,..._0x6d1148(_0x3d7025,_0x5e0705,_0x180f38),..._0x80d146},(_0x3f41e8(_0x3d7025,_0x5e0705)['children']||[])['map']((_0x58a369,_0x326a81)=>_0x47ad59(_0x58a369,_0x56d716+'-'+_0x3d7025[_0x140338(0x190)]+'-'+_0x326a81,_0x5e0705,void 0x0,_0x180f38)));}function _0x6d1148(_0x38819e,_0x2b5ec2,_0xa54cac){const _0x1a0a76=_0x21175a,_0x2b58b={..._0x38819e[_0x1a0a76(0x186)]};_0xa54cac!=null&&_0xa54cac['colorChannel1']&&_0x2b58b['fill']===_0x1a0a76(0x1a0)&&(_0x2b58b[_0x1a0a76(0x1df)]=_0xa54cac['colorChannel1']),_0x38819e['tag']===_0x1a0a76(0x1ff)&&_0x2b58b['id']&&(_0x2b58b['id']=_0x2b58b['id']+_0x2b5ec2[_0x1a0a76(0x1f9)]),Object[_0x1a0a76(0x1f3)](_0x2b58b)[_0x1a0a76(0x213)](([_0x76aeef,_0x122604])=>{const _0x21d4fd=_0x1a0a76;_0x76aeef==='mask'&&typeof _0x122604==_0x21d4fd(0x24a)&&(_0x2b58b[_0x76aeef]=_0x122604[_0x21d4fd(0x19d)](/url\(#(.*)\)/,'url(#$1'+_0x2b5ec2[_0x21d4fd(0x1f9)]+')'));});const {defIds:_0x3123d1}=_0x2b5ec2;return!_0x3123d1||_0x3123d1[_0x1a0a76(0x1e9)]===0x0||(_0x38819e['tag']===_0x1a0a76(0x181)&&_0x2b58b['xlink:href']&&(_0x2b58b[_0x1a0a76(0x234)]=_0x2b58b[_0x1a0a76(0x234)]+_0x2b5ec2['idSuffix']),Object[_0x1a0a76(0x1f3)](_0x2b58b)[_0x1a0a76(0x213)](([_0x37477a,_0xe886c6])=>{const _0x1075f2=_0x1a0a76;typeof _0xe886c6==_0x1075f2(0x24a)&&(_0x2b58b[_0x37477a]=_0xe886c6[_0x1075f2(0x19d)](/url\(#(.*)\)/,_0x1075f2(0x229)+_0x2b5ec2[_0x1075f2(0x1f9)]+')'));})),_0x2b58b;}function _0x3f41e8(_0xcaa913,_0x44b122){const _0x19e17e=_0x21175a;var _0x680046;const {defIds:_0x4d1a2c}=_0x44b122;return!_0x4d1a2c||_0x4d1a2c[_0x19e17e(0x1e9)]===0x0?_0xcaa913:_0xcaa913['tag']===_0x19e17e(0x1b0)&&((_0x680046=_0xcaa913[_0x19e17e(0x203)])!=null&&_0x680046[_0x19e17e(0x1e9)])?{..._0xcaa913,'children':_0xcaa913[_0x19e17e(0x203)]['map'](_0x42263a=>typeof _0x42263a[_0x19e17e(0x186)]['id']==_0x19e17e(0x24a)&&_0x4d1a2c&&_0x4d1a2c[_0x19e17e(0x1cf)](_0x42263a[_0x19e17e(0x186)]['id'])?{..._0x42263a,'attrs':{..._0x42263a[_0x19e17e(0x186)],'id':_0x42263a[_0x19e17e(0x186)]['id']+_0x44b122[_0x19e17e(0x1f9)]}}:_0x42263a)}:_0xcaa913;}function _0x10563d(){const _0x4ce5a1=_0x21175a;return Math[_0x4ce5a1(0x1c2)]()[_0x4ce5a1(0x17c)](0x24)[_0x4ce5a1(0x24f)](0x2,0x8);}_0x567c41[_0x21175a(0x1e2)]=_0x21175a(0x207);const _0x1515de={'tag':_0x21175a(0x221),'attrs':{'xmlns':_0x21175a(0x24b),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x21175a(0x217)},'children':[{'tag':_0x21175a(0x23c),'attrs':{'fill':'currentColor','d':_0x21175a(0x17a)}},{'tag':_0x21175a(0x23c),'attrs':{'fill':'currentColor','d':_0x21175a(0x177),'fillRule':_0x21175a(0x187),'clipRule':_0x21175a(0x187)}}]},_0x3a3b5b=_0x5b852e[_0x21175a(0x223)](function(_0x56dae6,_0x2a072d){const _0x28e574=_0x21175a;return _0x5b852e['createElement'](_0x567c41,Object[_0x28e574(0x251)]({},_0x56dae6,{'id':_0x28e574(0x23f),'ref':_0x2a072d,'icon':_0x1515de}));});_0x3a3b5b[_0x21175a(0x1e2)]=_0x21175a(0x21a);class _0x53932d extends _0xfc97e0[_0x21175a(0x18a)]{constructor(){const _0x5478b6=_0x21175a;super(...arguments),_0x433c9c(this,_0x5478b6(0x19c),new Set()),_0x433c9c(this,'_reporters',new Set());}[_0x21175a(0x1da)](_0x31bdb0){const _0x2cfd11=_0x21175a;return this['_sharedOperations'][_0x2cfd11(0x1a3)](_0x31bdb0),_0xfc97e0['toDisposable'](()=>this['_sharedOperations'][_0x2cfd11(0x1af)](_0x31bdb0));}['registerInitialStateReporter'](_0x4d4b30){const _0x3f58a1=_0x21175a;return this[_0x3f58a1(0x214)][_0x3f58a1(0x1a3)](_0x4d4b30),_0xfc97e0[_0x3f58a1(0x1de)](()=>this['_reporters'][_0x3f58a1(0x1af)](_0x4d4b30));}['shouldShareOperation'](_0x3fd05e){const _0x211732=_0x21175a;return this[_0x211732(0x19c)]['has'](_0x3fd05e);}['getInitialStates'](_0x518f60){const _0x45431d=_0x21175a;return Array['from'](this[_0x45431d(0x214)])['map'](_0x311da8=>_0x311da8(_0x518f60));}}var _0x17dfa2=Object[_0x21175a(0x180)],_0x24169a=(_0x273672,_0x1a8bb9,_0x366d45,_0x493aea)=>{const _0x6ef660=_0x21175a;for(var _0x511077=_0x493aea>0x1?void 0x0:_0x493aea?_0x17dfa2(_0x1a8bb9,_0x366d45):_0x1a8bb9,_0x17510a=_0x273672[_0x6ef660(0x1e9)]-0x1,_0x5b1500;_0x17510a>=0x0;_0x17510a--)(_0x5b1500=_0x273672[_0x17510a])&&(_0x511077=_0x5b1500(_0x511077)||_0x511077);return _0x511077;},_0x519b08=(_0x36e360,_0x2e23d)=>(_0x192efc,_0x5ec57a)=>_0x2e23d(_0x192efc,_0x5ec57a,_0x36e360);_0x3a763e[_0x21175a(0x1ec)]=class extends _0xfc97e0[_0x21175a(0x189)]{constructor(_0xffd881,_0x5b999d,_0x5b533b){const _0x8ef10b=_0x21175a;super(),_0x433c9c(this,_0x8ef10b(0x200),new Map()),(this[_0x8ef10b(0x206)]=_0xffd881,this[_0x8ef10b(0x22f)]=_0x5b999d,this[_0x8ef10b(0x253)]=_0x5b533b,this[_0x8ef10b(0x1ee)]());}async['getLiveShareCoordinator'](_0x6f3134){const _0x422550=_0x21175a;return this[_0x422550(0x200)][_0x422550(0x1ad)](_0x6f3134)||await this[_0x422550(0x1ac)](_0x6f3134),this[_0x422550(0x200)]['get'](_0x6f3134);}[_0x21175a(0x219)](_0x5be848){const _0x3f77ba=_0x21175a;var _0xf47232;return(_0xf47232=this['_entities'][_0x3f77ba(0x210)](_0x5be848))!=null?_0xf47232:null;}[_0x21175a(0x1ee)](){const _0x4d3007=_0x21175a;this[_0x4d3007(0x206)]['getTypeOfUnitAdded$'](_0xfc97e0['UniverInstanceType']['UNIVER_SHEET'])[_0x4d3007(0x1d4)](_0x5cb3f2['takeUntil'](this[_0x4d3007(0x1c6)]))['subscribe'](async _0x459e6f=>{const _0xc7039e=_0x4d3007,_0x4d8ce3=_0x459e6f[_0xc7039e(0x224)]();this['_entities'][_0xc7039e(0x1ad)](_0x4d8ce3)||this[_0xc7039e(0x1ac)](_0x4d8ce3);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0xfc97e0[_0x4d3007(0x1cd)][_0x4d3007(0x228)])[_0x4d3007(0x1d4)](_0x5cb3f2[_0x4d3007(0x246)](this[_0x4d3007(0x1c6)]))[_0x4d3007(0x1f5)](_0x1aa985=>{const _0x342c25=_0x4d3007,_0x68eee4=_0x1aa985[_0x342c25(0x224)](),_0x1c0191=this[_0x342c25(0x200)][_0x342c25(0x210)](_0x68eee4);_0x1c0191==null||_0x1c0191[_0x342c25(0x1a5)]();});}async[_0x21175a(0x1ac)](_0xacbc8d){const _0x54d5ae=_0x21175a,_0x169ebb=await this['_collabSessionService'][_0x54d5ae(0x1fc)](_0xacbc8d),_0x76e0bc=this[_0x54d5ae(0x22f)][_0x54d5ae(0x1f1)](_0x3a763e[_0x54d5ae(0x238)],_0xacbc8d,_0x169ebb);return _0x76e0bc[_0x54d5ae(0x17e)](),this['_entities'][_0x54d5ae(0x1dd)](_0xacbc8d,_0x76e0bc),_0x76e0bc;}},_0x3a763e[_0x21175a(0x1ec)]=_0x24169a([_0x519b08(0x0,_0xfc97e0['IUniverInstanceService']),_0x519b08(0x1,_0xfc97e0[_0x21175a(0x194)](_0xfc97e0['Injector'])),_0x519b08(0x2,_0xfc97e0[_0x21175a(0x194)](_0x9b511e['CollaborationSessionService']))],_0x3a763e[_0x21175a(0x1ec)]);var _0x14dadf=(_0x59b544=>(_0x59b544['OFFLINE']=_0x21175a(0x170),_0x59b544[_0x21175a(0x1a1)]=_0x21175a(0x19e),_0x59b544[_0x21175a(0x249)]=_0x21175a(0x19f),_0x59b544[_0x21175a(0x1a7)]=_0x21175a(0x22c),_0x59b544[_0x21175a(0x227)]=_0x21175a(0x1c4),_0x59b544))(_0x14dadf||{});const _0x14d7c1=_0x21175a(0x1d0),_0x5491b0=0xc8;_0x3a763e[_0x21175a(0x238)]=class extends _0xfc97e0[_0x21175a(0x189)]{constructor(_0x41fed7,_0x1602fe,_0x16340f,_0x1f4b14,_0x1f8a75){const _0x217292=_0x21175a;super(),_0x433c9c(this,'_status$',new _0x11a066['BehaviorSubject']('idle')),_0x433c9c(this,'status$',this[_0x217292(0x1c9)][_0x217292(0x18e)]()),_0x433c9c(this,_0x217292(0x1ee),!0x1),_0x433c9c(this,'_commandDisposable',null),_0x433c9c(this,'_presenter',null),(this[_0x217292(0x1bd)]=_0x41fed7,this['_collabSession']=_0x1602fe,this[_0x217292(0x1b1)]=_0x16340f,this[_0x217292(0x20f)]=_0x1f4b14,this[_0x217292(0x239)]=_0x1f8a75);}get[_0x21175a(0x20a)](){const _0xa0ebbf=_0x21175a;return this[_0xa0ebbf(0x1c9)][_0xa0ebbf(0x23b)]();}[_0x21175a(0x1a5)](){const _0x3bd5ae=_0x21175a;var _0x4e85af;(_0x4e85af=this[_0x3bd5ae(0x172)])==null||_0x4e85af[_0x3bd5ae(0x1a5)](),this[_0x3bd5ae(0x1c9)]['next'](_0x3bd5ae(0x19e)),this[_0x3bd5ae(0x1c9)][_0x3bd5ae(0x178)]();}['getStatus'](){return this['_status'];}['init'](){const _0x3af1f1=_0x21175a;this[_0x3af1f1(0x1ee)]||(this[_0x3af1f1(0x1ee)]=!0x0,this[_0x3af1f1(0x19a)]['sessionStatus$']['pipe'](_0x5cb3f2[_0x3af1f1(0x246)](this[_0x3af1f1(0x1c6)]))[_0x3af1f1(0x1f5)](_0xd2d122=>{const _0x49f5d0=_0x3af1f1;switch(_0xd2d122){case _0x9b511e[_0x49f5d0(0x1a6)]['OFFLINE']:this[_0x49f5d0(0x226)]();break;case _0x9b511e[_0x49f5d0(0x1a6)]['ONLINE']:this[_0x49f5d0(0x1f0)]();break;}}),this['_collabSession'][_0x3af1f1(0x1d5)][_0x3af1f1(0x1d4)](_0x5cb3f2[_0x3af1f1(0x246)](this['dispose$']))['subscribe'](_0x35fe2b=>{const _0x35b5b4=_0x3af1f1,{eventID:_0x34a456}=_0x35fe2b;switch(_0x34a456){case _0x59fa7e[_0x35b5b4(0x1c7)]['LIVESHARE_NEW_HOST']:this[_0x35b5b4(0x1e5)](_0x35fe2b);break;case _0x59fa7e['CollaborationEvent'][_0x35b5b4(0x18d)]:this[_0x35b5b4(0x185)](_0x35fe2b);break;case _0x59fa7e[_0x35b5b4(0x1c7)]['LIVESHARE_TERMINATE']:this[_0x35b5b4(0x1d8)]();break;case _0x59fa7e['CollaborationEvent'][_0x35b5b4(0x1dc)]:this['_handleNewChangeSets'](_0x35fe2b);break;}}));}['tryStartPresenting'](){const _0x1f9ff1=_0x21175a;this[_0x1f9ff1(0x19a)][_0x1f9ff1(0x1b3)]({'eventID':_0x59fa7e[_0x1f9ff1(0x1c7)][_0x1f9ff1(0x248)],'data':{'unitID':this[_0x1f9ff1(0x1bd)],'userID':this[_0x1f9ff1(0x19a)][_0x1f9ff1(0x175)]()}},this[_0x1f9ff1(0x1bd)]);}['stopPresenting'](){const _0x29e0d7=_0x21175a;this['_status']===_0x29e0d7(0x1c4)&&(this['_status$'][_0x29e0d7(0x182)](_0x29e0d7(0x19e)),this[_0x29e0d7(0x19a)][_0x29e0d7(0x1b3)]({'eventID':_0x59fa7e[_0x29e0d7(0x1c7)][_0x29e0d7(0x1fd)],'data':{'unitID':this[_0x29e0d7(0x1bd)]}},this[_0x29e0d7(0x1bd)]));}[_0x21175a(0x218)](){const _0x17139d=_0x21175a;this[_0x17139d(0x20a)]===_0x17139d(0x22c)&&(this[_0x17139d(0x1c9)][_0x17139d(0x182)](_0x17139d(0x19f)),this[_0x17139d(0x1d6)]());}['stopFollowing'](){const _0x578eb3=_0x21175a;this[_0x578eb3(0x20a)]===_0x578eb3(0x19f)&&this[_0x578eb3(0x1ab)]();}[_0x21175a(0x1e5)](_0x24965e){const _0x1363b1=_0x21175a,{presenter:_0x7af873}=_0x24965e[_0x1363b1(0x21d)],_0x3108ed=this[_0x1363b1(0x19a)][_0x1363b1(0x175)]();this['_presenter']=_0x7af873,_0x7af873===_0x3108ed?(this['_stopFollowing'](),this[_0x1363b1(0x1ef)]()):this['_status']!=='not-following'&&(this[_0x1363b1(0x199)](),this[_0x1363b1(0x1d6)]());}[_0x21175a(0x201)](){const _0x437acb=_0x21175a,_0x3e83e8={'eventID':_0x59fa7e[_0x437acb(0x1c7)][_0x437acb(0x1f2)]};this[_0x437acb(0x19a)][_0x437acb(0x1b3)](_0x3e83e8,this['_unitID']);}[_0x21175a(0x1d8)](){const _0x5af215=_0x21175a;this[_0x5af215(0x1d2)]=null,this[_0x5af215(0x20a)]!==_0x5af215(0x1c4)&&this[_0x5af215(0x1ca)]();}['_handleNewChangeSets'](_0x2a0c75){const _0x3d48ad=_0x21175a;if(this[_0x3d48ad(0x20a)]===_0x3d48ad(0x19f)&&this['_presenter']===_0x2a0c75[_0x3d48ad(0x21d)][_0x3d48ad(0x231)]){const _0x574e7b=_0x59fa7e[_0x3d48ad(0x1d1)](_0x2a0c75[_0x3d48ad(0x21d)])[_0x3d48ad(0x1d7)][_0x3d48ad(0x198)]()[_0x3d48ad(0x1a9)](_0x202048=>_0x202048['id']===_0x556042[_0x3d48ad(0x23d)]['id']);if(_0x574e7b){const _0x5daebf=_0x574e7b['params'][_0x3d48ad(0x202)],_0x1e525f=_0x574e7b['params']['sheet']['id'];setTimeout(()=>{const _0x3eebe8=_0x3d48ad;this[_0x3eebe8(0x239)][_0x3eebe8(0x179)](_0x556042[_0x3eebe8(0x244)]['id'],{'unitId':_0x5daebf,'subUnitId':_0x1e525f},{'fromCollab':!0x0});});}}}[_0x21175a(0x1ef)](){const _0x5b5385=_0x21175a;this[_0x5b5385(0x1c9)]['next']('presenting');const _0x168531=new Map(),_0x466877=this[_0x5b5385(0x172)]=new _0xfc97e0[(_0x5b5385(0x250))]();_0x466877[_0x5b5385(0x1a3)](_0xfc97e0[_0x5b5385(0x1de)](()=>{const _0x4e80bc=_0x5b5385;_0x168531['forEach'](_0x292b4d=>_0x292b4d[_0x4e80bc(0x178)]()),_0x168531['clear']();})),_0x466877[_0x5b5385(0x1a3)](this['_commandService'][_0x5b5385(0x21e)](_0x2ec185=>{const _0x63e726=_0x5b5385;var _0x5caefe;if(_0x2ec185[_0x63e726(0x1fb)]!==_0xfc97e0[_0x63e726(0x1b8)][_0x63e726(0x220)]||!this[_0x63e726(0x20f)][_0x63e726(0x21c)](_0x2ec185['id']))return;const {id:_0x23b62b}=_0x2ec185;let _0x414c9c;_0x168531[_0x63e726(0x1ad)](_0x23b62b)?_0x414c9c=_0x168531[_0x63e726(0x210)](_0x23b62b):(_0x414c9c=new _0x11a066[(_0x63e726(0x205))](),_0x168531[_0x63e726(0x1dd)](_0x23b62b,_0x414c9c),_0x414c9c['pipe'](_0x5cb3f2[_0x63e726(0x1db)]((_0x5caefe=this['_configService'][_0x63e726(0x24c)](_0x14d7c1))!=null?_0x5caefe:_0x5491b0,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x63e726(0x1f5)](_0x36149a=>{const _0x258c2b=_0x63e726;this[_0x258c2b(0x19a)]['send']({'eventID':_0x59fa7e[_0x258c2b(0x1c7)][_0x258c2b(0x18d)],'data':{'unitID':this['_unitID'],'operations':{[_0x36149a['id']]:{'id':_0x36149a['id'],'params':JSON[_0x258c2b(0x230)](_0x36149a[_0x258c2b(0x1e8)])}}}},this[_0x258c2b(0x1bd)]);})),_0x414c9c[_0x63e726(0x182)](_0x2ec185);})),this['_liveShareService'][_0x5b5385(0x1aa)](this[_0x5b5385(0x1bd)])['forEach'](_0x1c7528=>this[_0x5b5385(0x19a)]['send']({'eventID':_0x59fa7e[_0x5b5385(0x1c7)][_0x5b5385(0x18d)],'data':{'unitID':this[_0x5b5385(0x1bd)],'operations':{[_0x1c7528['id']]:{'id':_0x1c7528['id'],'params':JSON[_0x5b5385(0x230)](_0x1c7528[_0x5b5385(0x1e8)])}}}},this[_0x5b5385(0x1bd)]));}['_stopPresenting'](){const _0x32d494=_0x21175a;var _0x497b08;this['_status$'][_0x32d494(0x182)](_0x32d494(0x19e)),(_0x497b08=this[_0x32d494(0x172)])==null||_0x497b08[_0x32d494(0x1a5)](),this[_0x32d494(0x172)]=null;}[_0x21175a(0x1d6)](){const _0x5e5e84=_0x21175a;var _0x2fe5e2;(_0x2fe5e2=this[_0x5e5e84(0x172)])==null||_0x2fe5e2['dispose'](),this[_0x5e5e84(0x1c9)][_0x5e5e84(0x182)](_0x5e5e84(0x19f));}[_0x21175a(0x1ca)](){const _0x4aaf8b=_0x21175a;var _0x8d259;this['_status$'][_0x4aaf8b(0x182)]('idle'),(_0x8d259=this['_commandDisposable'])==null||_0x8d259[_0x4aaf8b(0x1a5)](),this[_0x4aaf8b(0x172)]=null;}[_0x21175a(0x1ab)](){const _0x33254c=_0x21175a;var _0x3418f0;this[_0x33254c(0x1c9)]['next'](_0x33254c(0x22c)),(_0x3418f0=this[_0x33254c(0x172)])==null||_0x3418f0['dispose']();}[_0x21175a(0x185)](_0x1df391){const _0x15c346=_0x21175a;if([_0x15c346(0x1c4),_0x15c346(0x22c),_0x15c346(0x170)]['includes'](this[_0x15c346(0x20a)])||!_0x1df391[_0x15c346(0x21d)][_0x15c346(0x24d)]||_0x1df391['data'][_0x15c346(0x24d)]===this[_0x15c346(0x19a)][_0x15c346(0x175)]())return;this[_0x15c346(0x20a)]==='idle'&&this[_0x15c346(0x1d6)]();const _0xbacbce=_0x1df391[_0x15c346(0x21d)][_0x15c346(0x1bb)];Object[_0x15c346(0x23e)](_0xbacbce)[_0x15c346(0x213)](_0x121e56=>{const _0x5db96f=_0x15c346;this[_0x5db96f(0x239)][_0x5db96f(0x179)](_0x121e56['id'],_0x121e56[_0x5db96f(0x1e8)]?JSON[_0x5db96f(0x1b7)](_0x121e56[_0x5db96f(0x1e8)]):null,{'fromCollab':!0x0});});}[_0x21175a(0x226)](){const _0x12ca04=_0x21175a;var _0x448f4a;this[_0x12ca04(0x1c9)][_0x12ca04(0x182)](_0x12ca04(0x170)),(_0x448f4a=this['_commandDisposable'])==null||_0x448f4a['dispose']();}[_0x21175a(0x1f0)](){const _0x1234b7=_0x21175a;this['_status$'][_0x1234b7(0x182)](_0x1234b7(0x19e)),this['_fetchOperations']();}},_0x3a763e[_0x21175a(0x238)]=_0x24169a([_0x519b08(0x2,_0xfc97e0[_0x21175a(0x1a2)]),_0x519b08(0x3,_0xfc97e0[_0x21175a(0x194)](_0x53932d)),_0x519b08(0x4,_0xfc97e0['ICommandService'])],_0x3a763e['LiveShareCoordinator']);function _0x32fa9c(){const _0x1f2fa7=_0x21175a,_0x39e6a7=_0xe64119[_0x1f2fa7(0x20e)](_0x3a763e[_0x1f2fa7(0x1ec)]),_0x34382a=_0xe64119[_0x1f2fa7(0x20e)](_0xfc97e0[_0x1f2fa7(0x1e1)]),_0x21b663=_0xe64119['useObservable'](()=>_0x34382a[_0x1f2fa7(0x1f7)](_0xfc97e0[_0x1f2fa7(0x1cd)][_0x1f2fa7(0x228)]),void 0x0,!0x1,[]),[_0x317132,_0x106396]=_0x5b852e['useState'](null),[_0x4af090,_0x3d8fab]=_0x5b852e[_0x1f2fa7(0x1b4)](_0x14dadf[_0x1f2fa7(0x1a1)]),_0x2c2248=_0x5b852e[_0x1f2fa7(0x193)](null);return _0x5b852e[_0x1f2fa7(0x1be)](()=>(_0x21b663&&_0x39e6a7[_0x1f2fa7(0x1c3)](_0x21b663[_0x1f2fa7(0x224)]())[_0x1f2fa7(0x1e0)](_0x44e9e7=>{const _0x2ec4d9=_0x1f2fa7;_0x106396(_0x44e9e7),_0x2c2248['current']=_0x44e9e7[_0x2ec4d9(0x1c8)]['subscribe'](_0xa9dcf2=>{_0x3d8fab(_0xa9dcf2);});}),()=>{const _0x52439f=_0x1f2fa7;var _0x175a03;(_0x175a03=_0x2c2248[_0x52439f(0x237)])==null||_0x175a03[_0x52439f(0x209)](),_0x2c2248[_0x52439f(0x237)]=null;}),[_0x21b663,_0x39e6a7]),_0x317132?_0x2acd25['jsx'](_0x298fd8['Dropdown'],{'align':'end','disabled':_0x4af090===_0x14dadf['OFFLINE'],'className':_0x1f2fa7(0x1d3),'overlay':_0x2acd25[_0x1f2fa7(0x20b)](_0x5d3a44,{'status':_0x4af090,'coordinator':_0x317132}),'children':_0x2acd25['jsx'](_0x1f2fa7(0x1a4),{'className':_0x298fd8[_0x1f2fa7(0x1ed)](_0x1f2fa7(0x1e4),{'univer-cursor-not-allowed':_0x4af090===_0x14dadf[_0x1f2fa7(0x1b6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4af090!==_0x14dadf[_0x1f2fa7(0x1b6)]}),'type':_0x1f2fa7(0x1a4),'children':_0x2acd25[_0x1f2fa7(0x20b)](_0x3a3b5b,{'className':_0x1f2fa7(0x184)})})}):null;}function _0x5d3a44(_0x1b6045){const _0x11e1bc=_0x21175a,{status:_0x1df624,coordinator:_0xc0f77a}=_0x1b6045;switch(_0x1df624){case _0x14dadf[_0x11e1bc(0x1a1)]:return _0x2acd25[_0x11e1bc(0x20b)](_0x4c2354,{'coordinator':_0xc0f77a});case _0x14dadf[_0x11e1bc(0x249)]:return _0x2acd25[_0x11e1bc(0x20b)](_0x16a37e,{'coordinator':_0xc0f77a});case _0x14dadf[_0x11e1bc(0x1a7)]:return _0x2acd25['jsx'](_0x196fd8,{'coordinator':_0xc0f77a});case _0x14dadf[_0x11e1bc(0x1b6)]:return _0x2acd25['jsx'](_0x44957f,{});case _0x14dadf['PRESENTING']:return _0x2acd25[_0x11e1bc(0x20b)](_0x2a4598,{'coordinator':_0xc0f77a});default:return null;}}function _0x4c2354(_0x270b87){const _0xf65522=_0x21175a,{coordinator:_0x2f2cb0}=_0x270b87;return _0x2acd25[_0xf65522(0x192)](_0x2acd25['Fragment'],{'children':[_0x2acd25['jsx'](_0xf65522(0x21b),{'className':_0xf65522(0x243),'children':_0xf65522(0x1f8)}),_0x2acd25[_0xf65522(0x20b)](_0x298fd8[_0xf65522(0x1bf)],{'onClick':()=>_0x2f2cb0[_0xf65522(0x20c)](),'children':_0xf65522(0x1ea)})]});}function _0x16a37e(_0x78e6a7){const _0x478b11=_0x21175a,{coordinator:_0x3b8352}=_0x78e6a7;return _0x2acd25[_0x478b11(0x192)](_0x2acd25[_0x478b11(0x215)],{'children':[_0x2acd25['jsx'](_0x478b11(0x21b),{'className':_0x478b11(0x243),'children':_0x478b11(0x20d)}),_0x2acd25['jsx'](_0x298fd8[_0x478b11(0x1bf)],{'onClick':()=>_0x3b8352[_0x478b11(0x208)](),'children':'Stop\x20following'})]});}function _0x196fd8(_0x7ef329){const _0x2b455a=_0x21175a,{coordinator:_0x2fd0d1}=_0x7ef329;return _0x2acd25[_0x2b455a(0x192)](_0x2acd25[_0x2b455a(0x215)],{'children':[_0x2acd25[_0x2b455a(0x20b)](_0x2b455a(0x21b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2b455a(0x1e3)}),_0x2acd25['jsx'](_0x298fd8[_0x2b455a(0x1bf)],{'variant':_0x2b455a(0x1e7),'onClick':()=>_0x2fd0d1[_0x2b455a(0x218)](),'children':_0x2b455a(0x241)})]});}function _0x2a4598(_0x3ee9e5){const _0x4f1f3b=_0x21175a,{coordinator:_0x300b49}=_0x3ee9e5;return _0x2acd25[_0x4f1f3b(0x192)](_0x2acd25[_0x4f1f3b(0x215)],{'children':[_0x2acd25[_0x4f1f3b(0x20b)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2acd25['jsx'](_0x298fd8[_0x4f1f3b(0x1bf)],{'variant':_0x4f1f3b(0x1c1),'onClick':()=>_0x300b49[_0x4f1f3b(0x197)](),'children':_0x4f1f3b(0x174)})]});}function _0x44957f(){const _0x205d29=_0x21175a;return _0x2acd25[_0x205d29(0x20b)](_0x2acd25[_0x205d29(0x215)],{'children':_0x205d29(0x24e)});}var _0x2cdd3c=Object[_0x21175a(0x180)],_0xfe6bbe=(_0x3d85c3,_0x2dbf08,_0x5ba92c,_0x22e224)=>{for(var _0x11c51=_0x22e224>0x1?void 0x0:_0x22e224?_0x2cdd3c(_0x2dbf08,_0x5ba92c):_0x2dbf08,_0x416857=_0x3d85c3['length']-0x1,_0x3cc7b8;_0x416857>=0x0;_0x416857--)(_0x3cc7b8=_0x3d85c3[_0x416857])&&(_0x11c51=_0x3cc7b8(_0x11c51)||_0x11c51);return _0x11c51;},_0x5b4789=(_0x1586b9,_0x2618ea)=>(_0x597079,_0x4f66b1)=>_0x2618ea(_0x597079,_0x4f66b1,_0x1586b9);_0x3a763e['DesktopLiveShareController']=class extends _0xfc97e0['Disposable']{constructor(_0x2bcb2b,_0x33f49d){const _0x41e77d=_0x21175a;super(),this[_0x41e77d(0x22f)]=_0x2bcb2b,this[_0x41e77d(0x1ba)]=_0x33f49d,this[_0x41e77d(0x1ae)]();}['_mountLiveShare'](){const _0x2b3687=_0x21175a;this[_0x2b3687(0x235)](this[_0x2b3687(0x1ba)]['registerComponent'](_0xe64119['BuiltInUIPart']['HEADER_MENU'],()=>_0xe64119['connectInjector'](_0x32fa9c,this[_0x2b3687(0x22f)])));}},_0x3a763e['DesktopLiveShareController']=_0xfe6bbe([_0x5b4789(0x0,_0xfc97e0['Inject'](_0xfc97e0[_0x21175a(0x17d)])),_0x5b4789(0x1,_0xe64119['IUIPartsService'])],_0x3a763e[_0x21175a(0x245)]);const _0x8419cb=_0x21175a(0x1fa),_0x27eeb2={};var _0x457ff9=Object['getOwnPropertyDescriptor'],_0x54bd23=(_0x55e491,_0x450b91,_0x1301c5,_0x42c7da)=>{const _0x2ea87e=_0x21175a;for(var _0xb7d893=_0x42c7da>0x1?void 0x0:_0x42c7da?_0x457ff9(_0x450b91,_0x1301c5):_0x450b91,_0x29e2d4=_0x55e491[_0x2ea87e(0x1e9)]-0x1,_0x521310;_0x29e2d4>=0x0;_0x29e2d4--)(_0x521310=_0x55e491[_0x29e2d4])&&(_0xb7d893=_0x521310(_0xb7d893)||_0xb7d893);return _0xb7d893;},_0x457df4=(_0x2f2517,_0x592ef3)=>(_0x2a030a,_0x37c1b5)=>_0x592ef3(_0x2a030a,_0x37c1b5,_0x2f2517);let _0x391243=class extends _0xfc97e0['Disposable']{constructor(_0x4be182){const _0x4e129a=_0x21175a;super(),this[_0x4e129a(0x20f)]=_0x4be182,this['_init']();}[_0x21175a(0x1ee)](){const _0x2b0cba=_0x21175a;[_0x3b2393[_0x2b0cba(0x252)]['id'],_0x3b2393[_0x2b0cba(0x212)]['id'],_0x556042[_0x2b0cba(0x244)]['id']][_0x2b0cba(0x213)](_0xee663f=>{const _0x114bbe=_0x2b0cba;this[_0x114bbe(0x235)](this[_0x114bbe(0x20f)][_0x114bbe(0x1da)](_0xee663f));});}};_0x391243=_0x54bd23([_0x457df4(0x0,_0xfc97e0['Inject'](_0x53932d))],_0x391243);var _0x500b4b=Object[_0x21175a(0x17f)],_0x809dc9=Object[_0x21175a(0x180)],_0x57f766=(_0x114b7c,_0x4eb9e1,_0x184523)=>_0x4eb9e1 in _0x114b7c?_0x500b4b(_0x114b7c,_0x4eb9e1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x184523}):_0x114b7c[_0x4eb9e1]=_0x184523,_0x32e17a=(_0x28558d,_0x2d6575,_0x5ce542,_0x4eb667)=>{const _0x5e8c9f=_0x21175a;for(var _0x331600=_0x4eb667>0x1?void 0x0:_0x4eb667?_0x809dc9(_0x2d6575,_0x5ce542):_0x2d6575,_0x477cc8=_0x28558d[_0x5e8c9f(0x1e9)]-0x1,_0x448d87;_0x477cc8>=0x0;_0x477cc8--)(_0x448d87=_0x28558d[_0x477cc8])&&(_0x331600=_0x448d87(_0x331600)||_0x331600);return _0x331600;},_0x594318=(_0x1eb308,_0x414167)=>(_0x14f55a,_0x517bf9)=>_0x414167(_0x14f55a,_0x517bf9,_0x1eb308),_0x5867bd=(_0x362bb6,_0x306d91,_0x1a9911)=>_0x57f766(_0x362bb6,typeof _0x306d91!=_0x21175a(0x1fe)?_0x306d91+'':_0x306d91,_0x1a9911);const _0x4adeec='UNIVER_LIVE_SHARE_PLUGIN';_0x3a763e[_0x21175a(0x222)]=class extends _0xfc97e0[_0x21175a(0x21f)]{constructor(_0x5e8aeb=_0x27eeb2,_0x3a68bc,_0x2ae63b){const _0x357526=_0x21175a;super(),this[_0x357526(0x1b5)]=_0x5e8aeb,this['_injector']=_0x3a68bc,this[_0x357526(0x1b1)]=_0x2ae63b;const {..._0x201ed7}=_0xfc97e0[_0x357526(0x22e)]({},_0x27eeb2,this[_0x357526(0x1b5)]);this['_configService']['setConfig'](_0x8419cb,_0x201ed7);}['onStarting'](){const _0x2655e3=_0x21175a;_0xfc97e0[_0x2655e3(0x18f)](this[_0x2655e3(0x22f)],_0xfc97e0[_0x2655e3(0x183)]([[_0x53932d],[_0x3a763e[_0x2655e3(0x1ec)]],[_0x391243],[_0x3a763e[_0x2655e3(0x245)]]],this[_0x2655e3(0x1b5)][_0x2655e3(0x22d)])),_0xfc97e0[_0x2655e3(0x1b9)](this[_0x2655e3(0x22f)],[[_0x391243]]);}[_0x21175a(0x23a)](){const _0x480aa2=_0x21175a;_0xfc97e0['touchDependencies'](this[_0x480aa2(0x22f)],[[_0x3a763e[_0x480aa2(0x245)]]]);}},_0x5867bd(_0x3a763e['UniverLiveSharePlugin'],_0x21175a(0x1fb),_0xfc97e0[_0x21175a(0x1cd)][_0x21175a(0x240)]),_0x5867bd(_0x3a763e['UniverLiveSharePlugin'],'pluginName',_0x4adeec),_0x3a763e[_0x21175a(0x222)]=_0x32e17a([_0xfc97e0['DependentOn'](_0x9b511e[_0x21175a(0x18c)]),_0x594318(0x1,_0xfc97e0[_0x21175a(0x194)](_0xfc97e0[_0x21175a(0x17d)])),_0x594318(0x2,_0xfc97e0[_0x21175a(0x1a2)])],_0x3a763e['UniverLiveSharePlugin']),_0x3a763e['LiveShare']=_0x32fa9c,_0x3a763e['LiveShareService']=_0x53932d,_0x3a763e[_0x21175a(0x19b)]=_0x14dadf,Object[_0x21175a(0x17f)](_0x3a763e,Symbol['toStringTag'],{'value':_0x21175a(0x204)});}));function _0x47ef(_0xdab002,_0x584905){const _0x26b4c4=_0x26b4();return _0x47ef=function(_0x47ef90,_0x3e2c7d){_0x47ef90=_0x47ef90-0x170;let _0x3ab9f2=_0x26b4c4[_0x47ef90];return _0x3ab9f2;},_0x47ef(_0xdab002,_0x584905);}function _0x26b4(){const _0x5c9c23=['React','_unitID','useEffect','Button','trim','default','random','getLiveShareCoordinator','presenting','UniverCore','dispose$','CollaborationEvent','status$','_status$','_beIdle','exports','UniverProCollaboration','UniverInstanceType','@univerjs/sheets','includes','SAME_OPERATION_SHARE_INTERVAL','parseProtocolChangeset','_presenter','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','pipe','event$','_startFollowing','mutations','_handleTerminate','@univerjs/core','registerSharedOperation','throttleTime','NEW_CHANGESETS','set','toDisposable','fill','then','IUniverInstanceService','displayName','You\x27re\x20not\x20following\x20the\x20presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleNewHost','@univerjs/ui','text','params','length','Start','rxjs','LiveShareController','clsx','_init','_startPresenting','_handleOnline','createInstance','LIVESHARE_FETCH_OPERATIONS','entries','493888kuwYQJ','subscribe','object','getCurrentTypeOfUnit$','Present\x20this\x20document','idSuffix','live-share.config','type','requireSession','LIVESHARE_TERMINATE','symbol','mask','_entities','_fetchOperations','unitId','children','Module','Subject','_univerInstanceService','UniverIcon','stopFollowing','unsubscribe','_status','jsx','tryStartPresenting','You\x27re\x20following\x20the\x20presenter','useDependency','_liveShareService','get','5287851nCULUx','SetScrollOperation','forEach','_reporters','Fragment','19618hvHPgf','1em','startFollowing','getLiveShareCoordinatorSync','LiveShareIcon','div','shouldShareOperation','data','onCommandExecuted','Plugin','OPERATION','svg','UniverLiveSharePlugin','forwardRef','getUnitId','12qZSZfZ','_handleOffline','PRESENTING','UNIVER_SHEET','url(#$1','135qmeZGZ','react','not-following','override','merge','_injector','stringify','memberID','4555HLAiyl','UniverUi','xlink:href','disposeWithMe','1891673mjXxCs','current','LiveShareCoordinator','_commandService','onRendered','getValue','path','InsertSheetMutation','values','live-share-icon','UNIVER_UNKNOWN','Start\x20following','rxjs/operators','univer-mb-3\x20univer-w-full\x20univer-text-sm','SetWorksheetActiveOperation','DesktopLiveShareController','takeUntil','@univerjs-pro/collaboration-client','LIVESHARE_REQUEST_HOST','FOLLOWING','string','http://www.w3.org/2000/svg','getConfig','presenter','You\x27are\x20offline.','substring','DisposableCollection','assign','SetZoomRatioOperation','_collabSessionService','offline','univerjs-icon\x20univerjs-icon-','_commandDisposable','UniverProLiveShare','Stop\x20presenting','getMemberID','amd','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','complete','executeCommand','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','@univerjs/sheets-ui','toString','Injector','init','defineProperty','getOwnPropertyDescriptor','use','next','mergeOverrideWithDependencies','univer-size-4','_handleOperation','attrs','evenodd','react/jsx-runtime','RxDisposable','Disposable','1304cGJWqs','UniverCollaborationClientPlugin','LIVESHARE_OPERATION','asObservable','registerDependencies','tag','UniverProCollaborationClient','jsxs','useRef','Inject','UniverDesign','148955BqvtiN','stopPresenting','reverse','_stopPresenting','_collabSession','LiveShareStatus','_sharedOperations','replace','idle','following','colorChannel1','IDLE','IConfigService','add','button','dispose','SessionStatus','NOT_FOLLOWING','16955280WEUKfm','find','getInitialStates','_stopFollowing','_startLiveShareCoordinator','has','_mountLiveShare','delete','defs','_configService','UniverSheets','send','useState','_config','OFFLINE','parse','CommandType','touchDependencies','_uiPartsService','operations'];_0x26b4=function(){return _0x5c9c23;};return _0x26b4();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.14-nightly.202511031023",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.10.
|
|
61
|
-
"@univerjs-pro/collaboration
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets": "0.10.
|
|
66
|
-
"@univerjs/sheets-ui": "0.10.
|
|
67
|
-
"@univerjs/ui": "0.10.
|
|
60
|
+
"@univerjs-pro/collaboration-client": "0.10.14-nightly.202511031023",
|
|
61
|
+
"@univerjs-pro/collaboration": "0.10.14-nightly.202511031023",
|
|
62
|
+
"@univerjs/core": "0.10.14-nightly.202511031023",
|
|
63
|
+
"@univerjs/design": "0.10.14-nightly.202511031023",
|
|
64
|
+
"@univerjs/engine-render": "0.10.14-nightly.202511031023",
|
|
65
|
+
"@univerjs/sheets": "0.10.14-nightly.202511031023",
|
|
66
|
+
"@univerjs/sheets-ui": "0.10.14-nightly.202511031023",
|
|
67
|
+
"@univerjs/ui": "0.10.14-nightly.202511031023"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
75
|
"vite": "^7.1.12",
|
|
76
76
|
"vitest": "^3.2.4",
|
|
77
|
-
"@univerjs-infra/shared": "0.10.
|
|
77
|
+
"@univerjs-infra/shared": "0.10.14",
|
|
78
78
|
"@univerjs/protocol": "0.1.47"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|