@univerjs-pro/live-share 0.11.0-nightly.202511151013 → 0.12.0-nightly.202511220628
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';
|
|
1
|
+
'use strict';const _0x2baaa7=_0x597f;(function(_0x5a0a4f,_0x58625e){const _0x1a6896=_0x597f,_0x5e83bf=_0x5a0a4f();while(!![]){try{const _0x5bc319=parseInt(_0x1a6896(0xc6))/0x1*(-parseInt(_0x1a6896(0xd5))/0x2)+-parseInt(_0x1a6896(0xe4))/0x3*(-parseInt(_0x1a6896(0xde))/0x4)+-parseInt(_0x1a6896(0xd3))/0x5+-parseInt(_0x1a6896(0xdd))/0x6+-parseInt(_0x1a6896(0xc7))/0x7*(parseInt(_0x1a6896(0xc5))/0x8)+-parseInt(_0x1a6896(0xdb))/0x9+parseInt(_0x1a6896(0xe7))/0xa;if(_0x5bc319===_0x58625e)break;else _0x5e83bf['push'](_0x5e83bf['shift']());}catch(_0xe71e89){_0x5e83bf['push'](_0x5e83bf['shift']());}}}(_0x2d50,0x78c0d));function _0x597f(_0x45edfc,_0x2b4221){const _0x2d5051=_0x2d50();return _0x597f=function(_0x597ff8,_0x1965da){_0x597ff8=_0x597ff8-0xc5;let _0x269476=_0x2d5051[_0x597ff8];return _0x269476;},_0x597f(_0x45edfc,_0x2b4221);}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[_0x2baaa7(0xd1)]{[_0x2baaa7(0xe6)](_0x2e81db,_0x32c042,_0x946bad,_0x64906a,_0x445d49){const _0x2421ee=_0x2baaa7,_0x4df819=_0x2e81db[_0x2421ee(0xca)](n[_0x2421ee(0xe1)]),_0x4e8185=_0x2e81db[_0x2421ee(0xca)](g['IRenderManagerService']),_0x14bdd0=_0x32c042['getUnitId'](),_0x246ae2=_0x32c042[_0x2421ee(0xe3)](),_0x2efe6d=_0x4df819[_0x2421ee(0xd4)](_0x14bdd0);(_0x2efe6d==null?void 0x0:_0x2efe6d[_0x2421ee(0xcf)]())!==n[_0x2421ee(0xce)]['PRESENTING']||(_0x946bad[_0x2421ee(0xcd)]()!==_0x246ae2[_0x2421ee(0xcd)]()&&this['_commandService'][_0x2421ee(0xc9)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x14bdd0,'subUnitId':_0x946bad[_0x2421ee(0xcd)]()}),!_0x4e8185['getRenderById'](_0x14bdd0))||_0x445d49[_0x2421ee(0xe8)](f[_0x2421ee(0xcb)]['id'],{'unitId':_0x32c042[_0x2421ee(0xe9)](),'sheetId':_0x946bad[_0x2421ee(0xcd)](),'sheetViewStartRow':_0x64906a[_0x2421ee(0xdc)],'sheetViewStartColumn':_0x64906a['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x2d50(){const _0x480e5c=['7608717vTPELr','startRow','1597788EzhZQe','172456vlXMZo','No\x20active\x20workbook\x20found.','_injector','LiveShareController','getId','getActiveSheet','3qOqNTS','stopFollowing','_initialize','28868030bymiAV','syncExecuteCommand','getUnitId','2160YxvHWE','4861yaWMzn','1386oKHtJs','getLiveShareStatus','executeCommand','get','SetScrollOperation','extend','getSheetId','LiveShareStatus','getStatus','FEnum','FRange','stopPresenting','1514010CWBBnL','getLiveShareCoordinatorSync','398LScHVN','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','IDLE','getActiveWorkbook','FUniver','startFollowing'];_0x2d50=function(){return _0x480e5c;};return _0x2d50();}d[_0x2baaa7(0xd1)][_0x2baaa7(0xcc)](w);class C extends a[_0x2baaa7(0xd9)]{[_0x2baaa7(0xc8)](){const _0x559dc2=_0x2baaa7;var _0x125732,_0x5b91e0;const _0x58d61f=this[_0x559dc2(0xe0)][_0x559dc2(0xca)](n[_0x559dc2(0xe1)]),_0x41af6a=(_0x125732=this['getActiveWorkbook']())==null?void 0x0:_0x125732[_0x559dc2(0xe2)]();if(!_0x41af6a)throw new Error('No\x20active\x20workbook\x20found.');const _0x41599f=_0x58d61f[_0x559dc2(0xd4)](_0x41af6a);return(_0x5b91e0=_0x41599f==null?void 0x0:_0x41599f['getStatus']())!=null?_0x5b91e0:n[_0x559dc2(0xce)][_0x559dc2(0xd7)];}[_0x2baaa7(0xda)](){const _0x43b824=_0x2baaa7;var _0x198e3b;const _0x456e78=this['_injector']['get'](n['LiveShareController']),_0x2a226a=(_0x198e3b=this['getActiveWorkbook']())==null?void 0x0:_0x198e3b[_0x43b824(0xe2)]();if(!_0x2a226a)throw new Error(_0x43b824(0xdf));const _0x147564=_0x456e78[_0x43b824(0xd4)](_0x2a226a);if(!_0x147564)throw new Error(_0x43b824(0xd6));_0x147564['startFollowing']();}['stopFollowing'](){const _0x413313=_0x2baaa7;var _0x2b2a94;const _0x5e83e5=this[_0x413313(0xe0)]['get'](n[_0x413313(0xe1)]),_0x51593a=(_0x2b2a94=this[_0x413313(0xd8)]())==null?void 0x0:_0x2b2a94[_0x413313(0xe2)]();if(!_0x51593a)throw new Error(_0x413313(0xdf));const _0x394e93=_0x5e83e5[_0x413313(0xd4)](_0x51593a);if(!_0x394e93)throw new Error(_0x413313(0xd6));_0x394e93[_0x413313(0xe5)]();}['startPresenting'](){const _0x21f830=_0x2baaa7;var _0x1bce52;const _0x26f35f=this[_0x21f830(0xe0)][_0x21f830(0xca)](n[_0x21f830(0xe1)]),_0x6ce748=(_0x1bce52=this['getActiveWorkbook']())==null?void 0x0:_0x1bce52[_0x21f830(0xe2)]();if(!_0x6ce748)throw new Error('No\x20active\x20workbook\x20found.');const _0x60f4da=_0x26f35f[_0x21f830(0xd4)](_0x6ce748);if(!_0x60f4da)throw new Error(_0x21f830(0xd6));_0x60f4da['tryStartPresenting']();}[_0x2baaa7(0xd2)](){const _0x5cc31a=_0x2baaa7;var _0x5dfe2a;const _0x5896e9=this[_0x5cc31a(0xe0)][_0x5cc31a(0xca)](n[_0x5cc31a(0xe1)]),_0xa3932b=(_0x5dfe2a=this[_0x5cc31a(0xd8)]())==null?void 0x0:_0x5dfe2a[_0x5cc31a(0xe2)]();if(!_0xa3932b)throw new Error(_0x5cc31a(0xdf));const _0x33d833=_0x5896e9[_0x5cc31a(0xd4)](_0xa3932b);if(!_0x33d833)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x33d833[_0x5cc31a(0xd2)]();}}a['FUniver']['extend'](C);class L extends a[_0x2baaa7(0xd0)]{get['LiveShareStatusEnum'](){const _0x3b713a=_0x2baaa7;return n[_0x3b713a(0xce)];}}a['FEnum'][_0x2baaa7(0xcc)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x286937=_0x4e45;(function(_0x32649d,_0x5a4d66){const _0x7e6b8a=_0x4e45,_0xb56f85=_0x32649d();while(!![]){try{const _0x4300c3=-parseInt(_0x7e6b8a(0x11b))/0x1+-parseInt(_0x7e6b8a(0x139))/0x2+-parseInt(_0x7e6b8a(0x15a))/0x3*(-parseInt(_0x7e6b8a(0x17d))/0x4)+parseInt(_0x7e6b8a(0xc0))/0x5*(parseInt(_0x7e6b8a(0x16c))/0x6)+-parseInt(_0x7e6b8a(0x180))/0x7+parseInt(_0x7e6b8a(0xc8))/0x8*(-parseInt(_0x7e6b8a(0x15d))/0x9)+parseInt(_0x7e6b8a(0xe2))/0xa;if(_0x4300c3===_0x5a4d66)break;else _0xb56f85['push'](_0xb56f85['shift']());}catch(_0x179627){_0xb56f85['push'](_0xb56f85['shift']());}}}(_0x158b,0x2881a));var T=Object['defineProperty'],U=(_0x4a7c4b,_0x2a89ea,_0x2b3728)=>_0x2a89ea in _0x4a7c4b?T(_0x4a7c4b,_0x2a89ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b3728}):_0x4a7c4b[_0x2a89ea]=_0x2b3728,_=(_0x5b9624,_0x440621,_0x28408e)=>U(_0x5b9624,typeof _0x440621!=_0x286937(0x184)?_0x440621+'':_0x440621,_0x28408e);Object['defineProperty'](exports,Symbol[_0x286937(0x104)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x2ab3e5,..._0x2f80e5}){const _0x590750=_0x286937,{icon:_0x142449,id:_0x281639,className:_0xd55491,extend:_0x5e3240,..._0x5baf8f}=_0x2f80e5,_0x255a46=(_0x590750(0xf7)+_0x281639+'\x20'+(_0xd55491||''))[_0x590750(0x117)](),_0x4668f0=v['useRef']('_'+H());return j(_0x142449,''+_0x281639,{'defIds':_0x142449[_0x590750(0x110)],'idSuffix':_0x4668f0[_0x590750(0xc7)]},{'ref':_0x2ab3e5,'className':_0x255a46,..._0x5baf8f},_0x5e3240);}function j(_0x22c48b,_0x1c5d34,_0x25de3f,_0x2b1233,_0xf4e1d7){const _0x3332b5=_0x286937;return v[_0x3332b5(0x171)](_0x22c48b[_0x3332b5(0x10f)],{'key':_0x1c5d34,...y(_0x22c48b,_0x25de3f,_0xf4e1d7),..._0x2b1233},(F(_0x22c48b,_0x25de3f)[_0x3332b5(0x12d)]||[])[_0x3332b5(0x122)]((_0x5098ee,_0x1873bc)=>j(_0x5098ee,_0x1c5d34+'-'+_0x22c48b[_0x3332b5(0x10f)]+'-'+_0x1873bc,_0x25de3f,void 0x0,_0xf4e1d7)));}function y(_0xcdc85e,_0x492b50,_0x477643){const _0x528310=_0x286937,_0x510869={..._0xcdc85e[_0x528310(0x128)]};_0x477643!=null&&_0x477643[_0x528310(0x129)]&&_0x510869[_0x528310(0xb7)]===_0x528310(0x129)&&(_0x510869['fill']=_0x477643[_0x528310(0x129)]),_0xcdc85e['tag']===_0x528310(0xf3)&&_0x510869['id']&&(_0x510869['id']=_0x510869['id']+_0x492b50[_0x528310(0x185)]),Object[_0x528310(0x160)](_0x510869)[_0x528310(0x183)](([_0x51fd53,_0x23d1f2])=>{const _0x2edd53=_0x528310;_0x51fd53==='mask'&&typeof _0x23d1f2==_0x2edd53(0xfa)&&(_0x510869[_0x51fd53]=_0x23d1f2[_0x2edd53(0x178)](/url\(#(.*)\)/,_0x2edd53(0x11f)+_0x492b50[_0x2edd53(0x185)]+')'));});const {defIds:_0x37ad2c}=_0x492b50;return!_0x37ad2c||_0x37ad2c[_0x528310(0x10e)]===0x0||(_0xcdc85e['tag']===_0x528310(0xd1)&&_0x510869[_0x528310(0xc3)]&&(_0x510869[_0x528310(0xc3)]=_0x510869[_0x528310(0xc3)]+_0x492b50[_0x528310(0x185)]),Object[_0x528310(0x160)](_0x510869)[_0x528310(0x183)](([_0xc90a82,_0x3c3d35])=>{const _0x535ceb=_0x528310;typeof _0x3c3d35==_0x535ceb(0xfa)&&(_0x510869[_0xc90a82]=_0x3c3d35[_0x535ceb(0x178)](/url\(#(.*)\)/,_0x535ceb(0x11f)+_0x492b50[_0x535ceb(0x185)]+')'));})),_0x510869;}function F(_0x2fc76a,_0x4468f0){const _0xfc7bb8=_0x286937;var _0x2acc82;const {defIds:_0x2b1126}=_0x4468f0;return!_0x2b1126||_0x2b1126['length']===0x0?_0x2fc76a:_0x2fc76a[_0xfc7bb8(0x10f)]===_0xfc7bb8(0x150)&&((_0x2acc82=_0x2fc76a['children'])!=null&&_0x2acc82[_0xfc7bb8(0x10e)])?{..._0x2fc76a,'children':_0x2fc76a[_0xfc7bb8(0x12d)]['map'](_0x4e461c=>typeof _0x4e461c[_0xfc7bb8(0x128)]['id']==_0xfc7bb8(0xfa)&&_0x2b1126&&_0x2b1126[_0xfc7bb8(0x162)](_0x4e461c[_0xfc7bb8(0x128)]['id'])?{..._0x4e461c,'attrs':{..._0x4e461c[_0xfc7bb8(0x128)],'id':_0x4e461c['attrs']['id']+_0x4468f0[_0xfc7bb8(0x185)]}}:_0x4e461c)}:_0x2fc76a;}function H(){const _0x31870e=_0x286937;return Math[_0x31870e(0x126)]()[_0x31870e(0x105)](0x24)[_0x31870e(0x14b)](0x2,0x8);}x[_0x286937(0xe8)]=_0x286937(0x127);const V={'tag':_0x286937(0x136),'attrs':{'xmlns':_0x286937(0x16f),'fill':_0x286937(0x17a),'viewBox':'0\x200\x2017\x2017','width':_0x286937(0x16a),'height':_0x286937(0x16a)},'children':[{'tag':_0x286937(0xcc),'attrs':{'fill':_0x286937(0x172),'d':_0x286937(0xbe)}},{'tag':_0x286937(0xcc),'attrs':{'fill':_0x286937(0x172),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x286937(0xdb)}}]},R=v[_0x286937(0x114)](function(_0x51e9c2,_0x1e7c7d){const _0x4269ca=_0x286937;return v[_0x4269ca(0x171)](x,Object[_0x4269ca(0x158)]({},_0x51e9c2,{'id':_0x4269ca(0xf5),'ref':_0x1e7c7d,'icon':V}));});R[_0x286937(0xe8)]='LiveShareIcon';class E extends o[_0x286937(0xfb)]{constructor(){const _0x4cd332=_0x286937;super(...arguments),_(this,_0x4cd332(0xdd),new Set()),_(this,'_reporters',new Set());}[_0x286937(0x131)](_0x27d9c0){const _0x5ccfc6=_0x286937;return this[_0x5ccfc6(0xdd)][_0x5ccfc6(0x166)](_0x27d9c0),o[_0x5ccfc6(0x134)](()=>this[_0x5ccfc6(0xdd)][_0x5ccfc6(0x113)](_0x27d9c0));}[_0x286937(0x173)](_0x2c4cc9){const _0x5c2042=_0x286937;return this[_0x5c2042(0x174)][_0x5c2042(0x166)](_0x2c4cc9),o[_0x5c2042(0x134)](()=>this['_reporters']['delete'](_0x2c4cc9));}['shouldShareOperation'](_0x3f01f3){const _0x4ec4d4=_0x286937;return this[_0x4ec4d4(0xdd)]['has'](_0x3f01f3);}[_0x286937(0x119)](_0x2aff00){const _0x27149b=_0x286937;return Array[_0x27149b(0x12b)](this[_0x27149b(0x174)])[_0x27149b(0x122)](_0x5f00b0=>_0x5f00b0(_0x2aff00));}}var M=Object[_0x286937(0x111)],P=(_0x2cf151,_0x1f27fa,_0x57440b,_0x2c0e69)=>{const _0xd3b3ac=_0x286937;for(var _0x4b9148=_0x2c0e69>0x1?void 0x0:_0x2c0e69?M(_0x1f27fa,_0x57440b):_0x1f27fa,_0x57e200=_0x2cf151[_0xd3b3ac(0x10e)]-0x1,_0x457444;_0x57e200>=0x0;_0x57e200--)(_0x457444=_0x2cf151[_0x57e200])&&(_0x4b9148=_0x457444(_0x4b9148)||_0x4b9148);return _0x4b9148;},S=(_0x2e294c,_0x53ea0d)=>(_0x500104,_0x227acd)=>_0x53ea0d(_0x500104,_0x227acd,_0x2e294c);exports['LiveShareController']=class extends o[_0x286937(0xed)]{constructor(_0x4dc28d,_0x211788,_0xac5abb){const _0x4d5c71=_0x286937;super(),_(this,'_entities',new Map()),(this[_0x4d5c71(0x124)]=_0x4dc28d,this[_0x4d5c71(0x18b)]=_0x211788,this[_0x4d5c71(0x157)]=_0xac5abb,this[_0x4d5c71(0x188)]());}async[_0x286937(0xc6)](_0x6a324a){const _0x4abd40=_0x286937;return this['_entities'][_0x4abd40(0xbb)](_0x6a324a)||await this[_0x4abd40(0xeb)](_0x6a324a),this[_0x4abd40(0x186)][_0x4abd40(0x10c)](_0x6a324a);}[_0x286937(0x164)](_0x40c95e){const _0x58e4c2=_0x286937;var _0x5824c4;return(_0x5824c4=this[_0x58e4c2(0x186)][_0x58e4c2(0x10c)](_0x40c95e))!=null?_0x5824c4:null;}[_0x286937(0x188)](){const _0x26bb70=_0x286937;this[_0x26bb70(0x124)]['getTypeOfUnitAdded$'](o[_0x26bb70(0x103)]['UNIVER_SHEET'])[_0x26bb70(0xea)](I['takeUntil'](this['dispose$']))[_0x26bb70(0x138)](async _0x31c67e=>{const _0x4c11da=_0x26bb70,_0x5f127a=_0x31c67e[_0x4c11da(0xcd)]();this[_0x4c11da(0x186)][_0x4c11da(0xbb)](_0x5f127a)||this[_0x4c11da(0xeb)](_0x5f127a);}),this['_univerInstanceService'][_0x26bb70(0x17b)](o[_0x26bb70(0x103)][_0x26bb70(0xc4)])[_0x26bb70(0xea)](I[_0x26bb70(0xc9)](this[_0x26bb70(0xdc)]))[_0x26bb70(0x138)](_0xb9e470=>{const _0x373dea=_0x26bb70,_0x5639ed=_0xb9e470['getUnitId'](),_0x37de13=this['_entities'][_0x373dea(0x10c)](_0x5639ed);_0x37de13==null||_0x37de13[_0x373dea(0xf0)]();});}async['_startLiveShareCoordinator'](_0x74833c){const _0x191cf3=_0x286937,_0x2438a1=await this['_collabSessionService'][_0x191cf3(0xb5)](_0x74833c),_0x227f6e=this[_0x191cf3(0x18b)][_0x191cf3(0xec)](exports[_0x191cf3(0x142)],_0x74833c,_0x2438a1);return _0x227f6e[_0x191cf3(0x18c)](),this[_0x191cf3(0x186)][_0x191cf3(0xd9)](_0x74833c,_0x227f6e),_0x227f6e;}},exports['LiveShareController']=P([S(0x0,o[_0x286937(0xbc)]),S(0x1,o[_0x286937(0xdf)](o[_0x286937(0x14e)])),S(0x2,o[_0x286937(0xdf)](b[_0x286937(0xbd)]))],exports[_0x286937(0x151)]);var u=(_0x44c409=>(_0x44c409[_0x286937(0x102)]=_0x286937(0x17c),_0x44c409['IDLE']=_0x286937(0x154),_0x44c409[_0x286937(0xd6)]='following',_0x44c409[_0x286937(0x16b)]='not-following',_0x44c409[_0x286937(0x11d)]=_0x286937(0x15c),_0x44c409))(u||{});function _0x158b(){const _0x4a15a7=['getMemberID','set','override','evenodd','dispose$','_sharedOperations','ONLINE','Inject','startFollowing','stopPresenting','3109580WDiWyI','IDLE','onCommandExecuted','presenter','_stopFollowing','_beIdle','displayName','UNIVER_UNKNOWN','pipe','_startLiveShareCoordinator','createInstance','RxDisposable','_collabSession','useState','dispose','sessionStatus$','registerDependencies','mask','values','live-share-icon','unsubscribe','univerjs-icon\x20univerjs-icon-','status$','IUIPartsService','string','Disposable','LiveShareService','next','LIVESHARE_NEW_HOST','_handleTerminate','Fragment','div','OFFLINE','UniverInstanceType','toStringTag','toString','_status$','BuiltInUIPart','useDependency','_status','live-share.config','_unitID','get','sheet','length','tag','defIds','getOwnPropertyDescriptor','_commandDisposable','delete','forwardRef','complete','onRendered','trim','LIVESHARE_TERMINATE','getInitialStates','_startFollowing','199827CkoRJd','SetZoomRatioOperation','PRESENTING','_fetchOperations','url(#$1','UniverCollaborationClientPlugin','LIVESHARE_OPERATION','map','find','_univerInstanceService','stopFollowing','random','UniverIcon','attrs','colorChannel1','DesktopLiveShareController','from','data','children','Subject','_configService','SetWorksheetActiveOperation','registerSharedOperation','useObservable','unitId','toDisposable','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','svg','You\x27re\x20presenting\x20the\x20document','subscribe','231924MJPWvy','_handleOperation','SAME_OPERATION_SHARE_INTERVAL','touchDependencies','disposeWithMe','You\x27are\x20offline.','_commandService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','default','LiveShareCoordinator','_startPresenting','mutations','throttleTime','HEADER_MENU','UNIVER_LIVE_SHARE_PLUGIN','Stop\x20following','setConfig','shouldShareOperation','substring','Stop\x20presenting','useEffect','Injector','jsx','defs','LiveShareController','_config','stringify','idle','You\x27re\x20not\x20following\x20the\x20presenter','_presenter','_collabSessionService','assign','DisposableCollection','3Vlhzyk','connectInjector','presenting','18XNjEXc','reverse','send','entries','getStatus','includes','Button','getLiveShareCoordinatorSync','clsx','add','SessionStatus','defineProperty','_stopPresenting','1em','NOT_FOLLOWING','18GcnbNl','You\x27re\x20following\x20the\x20presenter','parseProtocolChangeset','http://www.w3.org/2000/svg','not-following','createElement','currentColor','registerInitialStateReporter','_reporters','following','Present\x20this\x20document','CollaborationEvent','replace','IConfigService','none','getTypeOfUnitDisposed$','offline','813208pkZKpf','_liveShareService','end','57099UFcBSO','InsertSheetMutation','NEW_CHANGESETS','forEach','symbol','idSuffix','_entities','univer-mb-3\x20univer-w-full\x20univer-text-sm','_init','getConfig','memberID','_injector','init','_handleNewChangeSets','requireSession','LiveShare','fill','LIVESHARE_REQUEST_HOST','_uiPartsService','DependentOn','has','IUniverInstanceService','CollaborationSessionService','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_handleNewHost','464390hJFzir','BehaviorSubject','jsxs','xlink:href','UNIVER_SHEET','button','getLiveShareCoordinator','current','1212136mXPYIr','takeUntil','params','mergeOverrideWithDependencies','path','getUnitId','UniverLiveSharePlugin','type','_handleOffline','use','_mountLiveShare','tryStartPresenting','_handleOnline','clear','FOLLOWING','merge'];_0x158b=function(){return _0x4a15a7;};return _0x158b();}const k=_0x286937(0x13b),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x286937(0xed)]{constructor(_0x338e0d,_0x1f572f,_0x34f303,_0x5ca9db,_0x3399fe){const _0x355593=_0x286937;super(),_(this,_0x355593(0x106),new O[(_0x355593(0xc1))](_0x355593(0x154))),_(this,_0x355593(0xf8),this['_status$']['asObservable']()),_(this,'_init',!0x1),_(this,_0x355593(0x112),null),_(this,_0x355593(0x156),null),(this[_0x355593(0x10b)]=_0x338e0d,this[_0x355593(0xee)]=_0x1f572f,this[_0x355593(0x12f)]=_0x34f303,this[_0x355593(0x17e)]=_0x5ca9db,this['_commandService']=_0x3399fe);}get[_0x286937(0x109)](){const _0xb1c9c6=_0x286937;return this[_0xb1c9c6(0x106)]['getValue']();}['dispose'](){const _0x286148=_0x286937;var _0x2342d7;(_0x2342d7=this[_0x286148(0x112)])==null||_0x2342d7[_0x286148(0xf0)](),this[_0x286148(0x106)]['next']('idle'),this['_status$'][_0x286148(0x115)]();}[_0x286937(0x161)](){const _0x31e17c=_0x286937;return this[_0x31e17c(0x109)];}[_0x286937(0x18c)](){const _0x541040=_0x286937;this[_0x541040(0x188)]||(this['_init']=!0x0,this['_collabSession'][_0x541040(0xf1)][_0x541040(0xea)](I[_0x541040(0xc9)](this[_0x541040(0xdc)]))['subscribe'](_0x4c0c21=>{const _0x26422b=_0x541040;switch(_0x4c0c21){case b[_0x26422b(0x167)]['OFFLINE']:this[_0x26422b(0xd0)]();break;case b[_0x26422b(0x167)][_0x26422b(0xde)]:this[_0x26422b(0xd4)]();break;}}),this['_collabSession']['event$'][_0x541040(0xea)](I[_0x541040(0xc9)](this[_0x541040(0xdc)]))[_0x541040(0x138)](_0xc5c272=>{const _0x59f729=_0x541040,{eventID:_0x4f6739}=_0xc5c272;switch(_0x4f6739){case d[_0x59f729(0x177)][_0x59f729(0xfe)]:this[_0x59f729(0xbf)](_0xc5c272);break;case d[_0x59f729(0x177)][_0x59f729(0x121)]:this[_0x59f729(0x13a)](_0xc5c272);break;case d[_0x59f729(0x177)][_0x59f729(0x118)]:this[_0x59f729(0xff)]();break;case d[_0x59f729(0x177)][_0x59f729(0x182)]:this[_0x59f729(0xb4)](_0xc5c272);break;}}));}[_0x286937(0xd3)](){const _0xf7a365=_0x286937;this[_0xf7a365(0xee)][_0xf7a365(0x15f)]({'eventID':d[_0xf7a365(0x177)][_0xf7a365(0xb8)],'data':{'unitID':this[_0xf7a365(0x10b)],'userID':this[_0xf7a365(0xee)][_0xf7a365(0xd8)]()}},this[_0xf7a365(0x10b)]);}[_0x286937(0xe1)](){const _0x77d9c9=_0x286937;this[_0x77d9c9(0x109)]===_0x77d9c9(0x15c)&&(this['_status$'][_0x77d9c9(0xfd)](_0x77d9c9(0x154)),this['_collabSession']['send']({'eventID':d[_0x77d9c9(0x177)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x286937(0xe0)](){const _0x289c0d=_0x286937;this[_0x289c0d(0x109)]===_0x289c0d(0x170)&&(this[_0x289c0d(0x106)][_0x289c0d(0xfd)](_0x289c0d(0x175)),this[_0x289c0d(0x11a)]());}[_0x286937(0x125)](){const _0x27b8a8=_0x286937;this['_status']===_0x27b8a8(0x175)&&this['_stopFollowing']();}[_0x286937(0xbf)](_0x5ee7ee){const _0x59ef7b=_0x286937,{presenter:_0x67c70f}=_0x5ee7ee[_0x59ef7b(0x12c)],_0x532e69=this['_collabSession'][_0x59ef7b(0xd8)]();this[_0x59ef7b(0x156)]=_0x67c70f,_0x67c70f===_0x532e69?(this[_0x59ef7b(0xe6)](),this[_0x59ef7b(0x143)]()):this[_0x59ef7b(0x109)]!=='not-following'&&(this[_0x59ef7b(0x169)](),this[_0x59ef7b(0x11a)]());}[_0x286937(0x11e)](){const _0x2e6ff2=_0x286937,_0x5af39a={'eventID':d[_0x2e6ff2(0x177)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x2e6ff2(0xee)][_0x2e6ff2(0x15f)](_0x5af39a,this[_0x2e6ff2(0x10b)]);}[_0x286937(0xff)](){const _0x4cec83=_0x286937;this[_0x4cec83(0x156)]=null,this['_status']!==_0x4cec83(0x15c)&&this[_0x4cec83(0xe7)]();}[_0x286937(0xb4)](_0x5382a6){const _0x5678ef=_0x286937;if(this[_0x5678ef(0x109)]===_0x5678ef(0x175)&&this[_0x5678ef(0x156)]===_0x5382a6['data'][_0x5678ef(0x18a)]){const _0x5dd8dc=d[_0x5678ef(0x16e)](_0x5382a6[_0x5678ef(0x12c)])[_0x5678ef(0x144)][_0x5678ef(0x15e)]()[_0x5678ef(0x123)](_0x52f781=>_0x52f781['id']===C[_0x5678ef(0x181)]['id']);if(_0x5dd8dc){const _0xebbe4b=_0x5dd8dc[_0x5678ef(0xca)][_0x5678ef(0x133)],_0x285d19=_0x5dd8dc[_0x5678ef(0xca)][_0x5678ef(0x10d)]['id'];setTimeout(()=>{const _0x421b86=_0x5678ef;this[_0x421b86(0x13f)]['executeCommand'](C[_0x421b86(0x130)]['id'],{'unitId':_0xebbe4b,'subUnitId':_0x285d19},{'fromCollab':!0x0});});}}}[_0x286937(0x143)](){const _0x338e60=_0x286937;this[_0x338e60(0x106)][_0x338e60(0xfd)](_0x338e60(0x15c));const _0x43ebc4=new Map(),_0xf918d0=this['_commandDisposable']=new o[(_0x338e60(0x159))]();_0xf918d0[_0x338e60(0x166)](o[_0x338e60(0x134)](()=>{const _0x59be45=_0x338e60;_0x43ebc4['forEach'](_0x2b278f=>_0x2b278f['complete']()),_0x43ebc4[_0x59be45(0xd5)]();})),_0xf918d0[_0x338e60(0x166)](this[_0x338e60(0x13f)][_0x338e60(0xe4)](_0x1b52c1=>{const _0x249f92=_0x338e60;var _0x257c62;if(_0x1b52c1[_0x249f92(0xcf)]!==o['CommandType']['OPERATION']||!this[_0x249f92(0x17e)][_0x249f92(0x14a)](_0x1b52c1['id']))return;const {id:_0x432500}=_0x1b52c1;let _0x54a7a8;_0x43ebc4['has'](_0x432500)?_0x54a7a8=_0x43ebc4['get'](_0x432500):(_0x54a7a8=new O[(_0x249f92(0x12e))](),_0x43ebc4['set'](_0x432500,_0x54a7a8),_0x54a7a8[_0x249f92(0xea)](I[_0x249f92(0x145)]((_0x257c62=this[_0x249f92(0x12f)][_0x249f92(0x189)](k))!=null?_0x257c62:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x249f92(0x138)](_0xd5ae89=>{const _0x5498a8=_0x249f92;this[_0x5498a8(0xee)][_0x5498a8(0x15f)]({'eventID':d[_0x5498a8(0x177)][_0x5498a8(0x121)],'data':{'unitID':this[_0x5498a8(0x10b)],'operations':{[_0xd5ae89['id']]:{'id':_0xd5ae89['id'],'params':JSON['stringify'](_0xd5ae89[_0x5498a8(0xca)])}}}},this[_0x5498a8(0x10b)]);})),_0x54a7a8[_0x249f92(0xfd)](_0x1b52c1);})),this[_0x338e60(0x17e)]['getInitialStates'](this['_unitID'])[_0x338e60(0x183)](_0x5d452e=>this['_collabSession'][_0x338e60(0x15f)]({'eventID':d[_0x338e60(0x177)][_0x338e60(0x121)],'data':{'unitID':this[_0x338e60(0x10b)],'operations':{[_0x5d452e['id']]:{'id':_0x5d452e['id'],'params':JSON[_0x338e60(0x153)](_0x5d452e['params'])}}}},this[_0x338e60(0x10b)]));}[_0x286937(0x169)](){const _0x31062c=_0x286937;var _0x55740a;this['_status$'][_0x31062c(0xfd)](_0x31062c(0x154)),(_0x55740a=this[_0x31062c(0x112)])==null||_0x55740a[_0x31062c(0xf0)](),this[_0x31062c(0x112)]=null;}[_0x286937(0x11a)](){const _0x4a15a9=_0x286937;var _0x3ed257;(_0x3ed257=this[_0x4a15a9(0x112)])==null||_0x3ed257[_0x4a15a9(0xf0)](),this[_0x4a15a9(0x106)][_0x4a15a9(0xfd)](_0x4a15a9(0x175));}[_0x286937(0xe7)](){const _0x3a7413=_0x286937;var _0x52e181;this['_status$']['next']('idle'),(_0x52e181=this[_0x3a7413(0x112)])==null||_0x52e181[_0x3a7413(0xf0)](),this[_0x3a7413(0x112)]=null;}[_0x286937(0xe6)](){const _0x172ded=_0x286937;var _0x5d5aa0;this['_status$']['next'](_0x172ded(0x170)),(_0x5d5aa0=this[_0x172ded(0x112)])==null||_0x5d5aa0[_0x172ded(0xf0)]();}[_0x286937(0x13a)](_0x55eb0b){const _0x17170=_0x286937;if([_0x17170(0x15c),_0x17170(0x170),_0x17170(0x17c)][_0x17170(0x162)](this['_status'])||!_0x55eb0b[_0x17170(0x12c)][_0x17170(0xe5)]||_0x55eb0b[_0x17170(0x12c)][_0x17170(0xe5)]===this[_0x17170(0xee)]['getMemberID']())return;this[_0x17170(0x109)]==='idle'&&this[_0x17170(0x11a)]();const _0x30c235=_0x55eb0b['data']['operations'];Object[_0x17170(0xf4)](_0x30c235)[_0x17170(0x183)](_0x3e50e8=>{this['_commandService']['executeCommand'](_0x3e50e8['id'],_0x3e50e8['params']?JSON['parse'](_0x3e50e8['params']):null,{'fromCollab':!0x0});});}[_0x286937(0xd0)](){const _0x575643=_0x286937;var _0x162e1c;this[_0x575643(0x106)][_0x575643(0xfd)](_0x575643(0x17c)),(_0x162e1c=this['_commandDisposable'])==null||_0x162e1c['dispose']();}[_0x286937(0xd4)](){const _0x526991=_0x286937;this[_0x526991(0x106)][_0x526991(0xfd)]('idle'),this['_fetchOperations']();}},exports[_0x286937(0x142)]=P([S(0x2,o[_0x286937(0x179)]),S(0x3,o[_0x286937(0xdf)](E)),S(0x4,o['ICommandService'])],exports[_0x286937(0x142)]);function $(){const _0x45187c=_0x286937,_0x30d68e=p[_0x45187c(0x108)](exports[_0x45187c(0x151)]),_0x5681f0=p[_0x45187c(0x108)](o[_0x45187c(0xbc)]),_0x231f06=p[_0x45187c(0x132)](()=>_0x5681f0['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x45187c(0xc4)]),void 0x0,!0x1,[]),[_0x5640ab,_0x5b8565]=v[_0x45187c(0xef)](null),[_0x43c787,_0x16000f]=v[_0x45187c(0xef)](u[_0x45187c(0xe3)]),_0x4b6a13=v['useRef'](null);return v[_0x45187c(0x14d)](()=>(_0x231f06&&_0x30d68e['getLiveShareCoordinator'](_0x231f06['getUnitId']())['then'](_0x507611=>{const _0x5505da=_0x45187c;_0x5b8565(_0x507611),_0x4b6a13['current']=_0x507611['status$'][_0x5505da(0x138)](_0x4a1316=>{_0x16000f(_0x4a1316);});}),()=>{const _0x143971=_0x45187c;var _0x17d2bf;(_0x17d2bf=_0x4b6a13[_0x143971(0xc7)])==null||_0x17d2bf[_0x143971(0xf6)](),_0x4b6a13[_0x143971(0xc7)]=null;}),[_0x231f06,_0x30d68e]),_0x5640ab?l['jsx'](f['Dropdown'],{'align':_0x45187c(0x17f),'disabled':_0x43c787===u[_0x45187c(0x102)],'className':_0x45187c(0x135),'overlay':l[_0x45187c(0x14f)](W,{'status':_0x43c787,'coordinator':_0x5640ab}),'children':l[_0x45187c(0x14f)](_0x45187c(0xc5),{'className':f[_0x45187c(0x165)](_0x45187c(0x140),{'univer-cursor-not-allowed':_0x43c787===u[_0x45187c(0x102)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x43c787!==u[_0x45187c(0x102)]}),'type':_0x45187c(0xc5),'children':l['jsx'](R,{'className':'univer-size-4'})})}):null;}function W(_0x918dbb){const _0x166e21=_0x286937,{status:_0x101132,coordinator:_0x22b4c1}=_0x918dbb;switch(_0x101132){case u[_0x166e21(0xe3)]:return l[_0x166e21(0x14f)](G,{'coordinator':_0x22b4c1});case u[_0x166e21(0xd6)]:return l['jsx'](B,{'coordinator':_0x22b4c1});case u['NOT_FOLLOWING']:return l[_0x166e21(0x14f)](Y,{'coordinator':_0x22b4c1});case u['OFFLINE']:return l['jsx'](J,{});case u['PRESENTING']:return l[_0x166e21(0x14f)](Z,{'coordinator':_0x22b4c1});default:return null;}}function G(_0x5d279b){const _0x415d44=_0x286937,{coordinator:_0x21244f}=_0x5d279b;return l[_0x415d44(0xc2)](l['Fragment'],{'children':[l[_0x415d44(0x14f)](_0x415d44(0x101),{'className':_0x415d44(0x187),'children':_0x415d44(0x176)}),l['jsx'](f[_0x415d44(0x163)],{'onClick':()=>_0x21244f[_0x415d44(0xd3)](),'children':'Start'})]});}function B(_0x56c1db){const _0x184109=_0x286937,{coordinator:_0x4ba151}=_0x56c1db;return l[_0x184109(0xc2)](l['Fragment'],{'children':[l[_0x184109(0x14f)](_0x184109(0x101),{'className':_0x184109(0x187),'children':_0x184109(0x16d)}),l['jsx'](f['Button'],{'onClick':()=>_0x4ba151[_0x184109(0x125)](),'children':_0x184109(0x148)})]});}function Y(_0x26f7a3){const _0x15085c=_0x286937,{coordinator:_0x2115a9}=_0x26f7a3;return l[_0x15085c(0xc2)](l['Fragment'],{'children':[l[_0x15085c(0x14f)](_0x15085c(0x101),{'className':_0x15085c(0x187),'children':_0x15085c(0x155)}),l[_0x15085c(0x14f)](f[_0x15085c(0x163)],{'variant':'text','onClick':()=>_0x2115a9[_0x15085c(0xe0)](),'children':'Start\x20following'})]});}function Z(_0x2a92da){const _0x32ff20=_0x286937,{coordinator:_0x42d6fa}=_0x2a92da;return l['jsxs'](l[_0x32ff20(0x100)],{'children':[l[_0x32ff20(0x14f)](_0x32ff20(0x101),{'className':_0x32ff20(0x187),'children':_0x32ff20(0x137)}),l[_0x32ff20(0x14f)](f['Button'],{'variant':_0x32ff20(0x141),'onClick':()=>_0x42d6fa[_0x32ff20(0xe1)](),'children':_0x32ff20(0x14c)})]});}function J(){const _0x3e510b=_0x286937;return l[_0x3e510b(0x14f)](l[_0x3e510b(0x100)],{'children':_0x3e510b(0x13e)});}function _0x4e45(_0x4cbc3d,_0xe27694){const _0x158bf1=_0x158b();return _0x4e45=function(_0x4e4540,_0x3116fc){_0x4e4540=_0x4e4540-0xb4;let _0x38aee1=_0x158bf1[_0x4e4540];return _0x38aee1;},_0x4e45(_0x4cbc3d,_0xe27694);}var K=Object[_0x286937(0x111)],z=(_0xa886d3,_0xa61e17,_0x30d05e,_0x315ad2)=>{const _0x22c6b=_0x286937;for(var _0x18b02d=_0x315ad2>0x1?void 0x0:_0x315ad2?K(_0xa61e17,_0x30d05e):_0xa61e17,_0x56a5b6=_0xa886d3[_0x22c6b(0x10e)]-0x1,_0x305c8f;_0x56a5b6>=0x0;_0x56a5b6--)(_0x305c8f=_0xa886d3[_0x56a5b6])&&(_0x18b02d=_0x305c8f(_0x18b02d)||_0x18b02d);return _0x18b02d;},L=(_0x47716b,_0x5e252e)=>(_0x2e8b14,_0x129d2e)=>_0x5e252e(_0x2e8b14,_0x129d2e,_0x47716b);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0x178e56,_0x2d3e19){const _0x48b4c7=_0x286937;super(),this[_0x48b4c7(0x18b)]=_0x178e56,this[_0x48b4c7(0xb9)]=_0x2d3e19,this['_mountLiveShare']();}[_0x286937(0xd2)](){const _0x387f61=_0x286937;this[_0x387f61(0x13d)](this[_0x387f61(0xb9)]['registerComponent'](p[_0x387f61(0x107)][_0x387f61(0x146)],()=>p[_0x387f61(0x15b)]($,this[_0x387f61(0x18b)])));}},exports[_0x286937(0x12a)]=z([L(0x0,o[_0x286937(0xdf)](o[_0x286937(0x14e)])),L(0x1,p[_0x286937(0xf9)])],exports[_0x286937(0x12a)]);const Q=_0x286937(0x10a),w={};var X=Object[_0x286937(0x111)],ee=(_0x4b942d,_0x3cdcfc,_0x1da7fd,_0x172fc2)=>{const _0x301b37=_0x286937;for(var _0x1ffd72=_0x172fc2>0x1?void 0x0:_0x172fc2?X(_0x3cdcfc,_0x1da7fd):_0x3cdcfc,_0x5e818b=_0x4b942d[_0x301b37(0x10e)]-0x1,_0x580fc3;_0x5e818b>=0x0;_0x5e818b--)(_0x580fc3=_0x4b942d[_0x5e818b])&&(_0x1ffd72=_0x580fc3(_0x1ffd72)||_0x1ffd72);return _0x1ffd72;},te=(_0x459780,_0x3ad60c)=>(_0x325c50,_0x2f6ee4)=>_0x3ad60c(_0x325c50,_0x2f6ee4,_0x459780);let m=class extends o[_0x286937(0xfb)]{constructor(_0x359f35){const _0x5269e0=_0x286937;super(),this[_0x5269e0(0x17e)]=_0x359f35,this['_init']();}['_init'](){const _0xe489a6=_0x286937;[D[_0xe489a6(0x11c)]['id'],D['SetScrollOperation']['id'],C[_0xe489a6(0x130)]['id']]['forEach'](_0xf06ad4=>{const _0x3cb842=_0xe489a6;this['disposeWithMe'](this[_0x3cb842(0x17e)][_0x3cb842(0x131)](_0xf06ad4));});}};m=ee([te(0x0,o[_0x286937(0xdf)](E))],m);var ie=Object[_0x286937(0x168)],se=Object[_0x286937(0x111)],ne=(_0x2d6204,_0xee05e3,_0x58213e)=>_0xee05e3 in _0x2d6204?ie(_0x2d6204,_0xee05e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58213e}):_0x2d6204[_0xee05e3]=_0x58213e,re=(_0x311b5b,_0x54b7ac,_0x18a3c5,_0x1f50c4)=>{for(var _0x31ad16=_0x1f50c4>0x1?void 0x0:_0x1f50c4?se(_0x54b7ac,_0x18a3c5):_0x54b7ac,_0x318401=_0x311b5b['length']-0x1,_0x7968c5;_0x318401>=0x0;_0x318401--)(_0x7968c5=_0x311b5b[_0x318401])&&(_0x31ad16=_0x7968c5(_0x31ad16)||_0x31ad16);return _0x31ad16;},N=(_0x32feee,_0x28366)=>(_0x3a521e,_0x46d9ac)=>_0x28366(_0x3a521e,_0x46d9ac,_0x32feee),A=(_0xc9469,_0x5ab12a,_0x20aa93)=>ne(_0xc9469,typeof _0x5ab12a!=_0x286937(0x184)?_0x5ab12a+'':_0x5ab12a,_0x20aa93);const oe=_0x286937(0x147);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x59b45f=w,_0x1286de,_0x4dfa3c){const _0x5746df=_0x286937;super(),this[_0x5746df(0x152)]=_0x59b45f,this['_injector']=_0x1286de,this['_configService']=_0x4dfa3c;const {..._0x1a949b}=o[_0x5746df(0xd7)]({},w,this[_0x5746df(0x152)]);this['_configService'][_0x5746df(0x149)](Q,_0x1a949b);}['onStarting'](){const _0x1ccfc9=_0x286937;o[_0x1ccfc9(0xf2)](this[_0x1ccfc9(0x18b)],o[_0x1ccfc9(0xcb)]([[E],[exports[_0x1ccfc9(0x151)]],[m],[exports['DesktopLiveShareController']]],this[_0x1ccfc9(0x152)][_0x1ccfc9(0xda)])),o['touchDependencies'](this[_0x1ccfc9(0x18b)],[[m]]);}[_0x286937(0x116)](){const _0x9cc075=_0x286937;o[_0x9cc075(0x13c)](this[_0x9cc075(0x18b)],[[exports[_0x9cc075(0x12a)]]]);}},A(exports[_0x286937(0xce)],'type',o[_0x286937(0x103)][_0x286937(0xe9)]),A(exports[_0x286937(0xce)],'pluginName',oe),exports[_0x286937(0xce)]=re([o[_0x286937(0xba)](b[_0x286937(0x120)]),N(0x1,o[_0x286937(0xdf)](o['Injector'])),N(0x2,o[_0x286937(0x179)])],exports['UniverLiveSharePlugin']),exports[_0x286937(0xb6)]=$,exports[_0x286937(0xfc)]=E,exports['LiveShareStatus']=u;
|
|
1
|
+
'use strict';const _0x280d0f=_0x2669;(function(_0x2c86e8,_0x7099e7){const _0x43e952=_0x2669,_0x2e65d1=_0x2c86e8();while(!![]){try{const _0x3340f6=-parseInt(_0x43e952(0x19a))/0x1*(-parseInt(_0x43e952(0x180))/0x2)+-parseInt(_0x43e952(0x138))/0x3+parseInt(_0x43e952(0x1ad))/0x4+-parseInt(_0x43e952(0x17b))/0x5+parseInt(_0x43e952(0x146))/0x6+-parseInt(_0x43e952(0x1d3))/0x7*(parseInt(_0x43e952(0x18d))/0x8)+-parseInt(_0x43e952(0x1c0))/0x9*(-parseInt(_0x43e952(0x1c9))/0xa);if(_0x3340f6===_0x7099e7)break;else _0x2e65d1['push'](_0x2e65d1['shift']());}catch(_0x3bbcd0){_0x2e65d1['push'](_0x2e65d1['shift']());}}}(_0x1347,0x5e873));var T=Object[_0x280d0f(0x1d5)],U=(_0x384ac0,_0xb50372,_0x9a29e7)=>_0xb50372 in _0x384ac0?T(_0x384ac0,_0xb50372,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x9a29e7}):_0x384ac0[_0xb50372]=_0x9a29e7,_=(_0x13c000,_0x3b3df8,_0x56db04)=>U(_0x13c000,typeof _0x3b3df8!='symbol'?_0x3b3df8+'':_0x3b3df8,_0x56db04);Object[_0x280d0f(0x1d5)](exports,Symbol[_0x280d0f(0x14c)],{'value':_0x280d0f(0x1e3)});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:_0x24abb5,..._0x44225b}){const _0x89e6ef=_0x280d0f,{icon:_0x8fdcc,id:_0x47c16c,className:_0x4a5a26,extend:_0x46b4a8,..._0x4a4ba8}=_0x44225b,_0x31802e=(_0x89e6ef(0x16a)+_0x47c16c+'\x20'+(_0x4a5a26||''))[_0x89e6ef(0x19d)](),_0xd6a83=v[_0x89e6ef(0x1b5)]('_'+H());return j(_0x8fdcc,''+_0x47c16c,{'defIds':_0x8fdcc[_0x89e6ef(0x174)],'idSuffix':_0xd6a83[_0x89e6ef(0x162)]},{'ref':_0x24abb5,'className':_0x31802e,..._0x4a4ba8},_0x46b4a8);}function j(_0x6535f0,_0x37e4cf,_0x532222,_0x4d495b,_0x503640){const _0x6b0c5f=_0x280d0f;return v['createElement'](_0x6535f0[_0x6b0c5f(0x1d1)],{'key':_0x37e4cf,...y(_0x6535f0,_0x532222,_0x503640),..._0x4d495b},(F(_0x6535f0,_0x532222)['children']||[])[_0x6b0c5f(0x1e2)]((_0x126f70,_0x4cebea)=>j(_0x126f70,_0x37e4cf+'-'+_0x6535f0[_0x6b0c5f(0x1d1)]+'-'+_0x4cebea,_0x532222,void 0x0,_0x503640)));}function y(_0xa0a9ae,_0x56c6a8,_0x1421d6){const _0x574d07=_0x280d0f,_0x480b74={..._0xa0a9ae[_0x574d07(0x1b0)]};_0x1421d6!=null&&_0x1421d6[_0x574d07(0x147)]&&_0x480b74[_0x574d07(0x1e6)]===_0x574d07(0x147)&&(_0x480b74[_0x574d07(0x1e6)]=_0x1421d6[_0x574d07(0x147)]),_0xa0a9ae[_0x574d07(0x1d1)]===_0x574d07(0x207)&&_0x480b74['id']&&(_0x480b74['id']=_0x480b74['id']+_0x56c6a8[_0x574d07(0x14d)]),Object[_0x574d07(0x156)](_0x480b74)[_0x574d07(0x1be)](([_0x40a1d2,_0x123a8b])=>{const _0x143f0e=_0x574d07;_0x40a1d2===_0x143f0e(0x207)&&typeof _0x123a8b==_0x143f0e(0x15d)&&(_0x480b74[_0x40a1d2]=_0x123a8b['replace'](/url\(#(.*)\)/,_0x143f0e(0x1e1)+_0x56c6a8[_0x143f0e(0x14d)]+')'));});const {defIds:_0x375983}=_0x56c6a8;return!_0x375983||_0x375983[_0x574d07(0x195)]===0x0||(_0xa0a9ae[_0x574d07(0x1d1)]===_0x574d07(0x1f5)&&_0x480b74[_0x574d07(0x209)]&&(_0x480b74['xlink:href']=_0x480b74[_0x574d07(0x209)]+_0x56c6a8['idSuffix']),Object[_0x574d07(0x156)](_0x480b74)['forEach'](([_0x5a3e02,_0x12a644])=>{const _0x237725=_0x574d07;typeof _0x12a644==_0x237725(0x15d)&&(_0x480b74[_0x5a3e02]=_0x12a644[_0x237725(0x1e5)](/url\(#(.*)\)/,_0x237725(0x1e1)+_0x56c6a8[_0x237725(0x14d)]+')'));})),_0x480b74;}function F(_0x302fbc,_0x8d399f){const _0x4bb3c7=_0x280d0f;var _0x1b7794;const {defIds:_0xa6274e}=_0x8d399f;return!_0xa6274e||_0xa6274e[_0x4bb3c7(0x195)]===0x0?_0x302fbc:_0x302fbc[_0x4bb3c7(0x1d1)]==='defs'&&((_0x1b7794=_0x302fbc[_0x4bb3c7(0x1da)])!=null&&_0x1b7794['length'])?{..._0x302fbc,'children':_0x302fbc[_0x4bb3c7(0x1da)][_0x4bb3c7(0x1e2)](_0x52bdda=>typeof _0x52bdda[_0x4bb3c7(0x1b0)]['id']==_0x4bb3c7(0x15d)&&_0xa6274e&&_0xa6274e['includes'](_0x52bdda[_0x4bb3c7(0x1b0)]['id'])?{..._0x52bdda,'attrs':{..._0x52bdda['attrs'],'id':_0x52bdda['attrs']['id']+_0x8d399f[_0x4bb3c7(0x14d)]}}:_0x52bdda)}:_0x302fbc;}function H(){const _0x50423b=_0x280d0f;return Math[_0x50423b(0x1d9)]()[_0x50423b(0x143)](0x24)[_0x50423b(0x1f3)](0x2,0x8);}x['displayName']=_0x280d0f(0x14a);const V={'tag':_0x280d0f(0x144),'attrs':{'xmlns':_0x280d0f(0x1a2),'fill':_0x280d0f(0x178),'viewBox':_0x280d0f(0x1ec),'width':_0x280d0f(0x133),'height':_0x280d0f(0x133)},'children':[{'tag':_0x280d0f(0x1a0),'attrs':{'fill':_0x280d0f(0x13f),'d':_0x280d0f(0x181)}},{'tag':_0x280d0f(0x1a0),'attrs':{'fill':'currentColor','d':_0x280d0f(0x182),'fillRule':'evenodd','clipRule':_0x280d0f(0x1fb)}}]},R=v[_0x280d0f(0x1c7)](function(_0x2c4d5d,_0x5ae915){const _0x1a66ed=_0x280d0f;return v[_0x1a66ed(0x13c)](x,Object[_0x1a66ed(0x1f6)]({},_0x2c4d5d,{'id':'live-share-icon','ref':_0x5ae915,'icon':V}));});R[_0x280d0f(0x134)]=_0x280d0f(0x131);class E extends o['Disposable']{constructor(){const _0x583f4f=_0x280d0f;super(...arguments),_(this,_0x583f4f(0x18a),new Set()),_(this,_0x583f4f(0x15b),new Set());}['registerSharedOperation'](_0x430b08){const _0x426b47=_0x280d0f;return this[_0x426b47(0x18a)][_0x426b47(0x193)](_0x430b08),o[_0x426b47(0x177)](()=>this['_sharedOperations'][_0x426b47(0x185)](_0x430b08));}[_0x280d0f(0x1fa)](_0xacd760){const _0x231c4f=_0x280d0f;return this[_0x231c4f(0x15b)][_0x231c4f(0x193)](_0xacd760),o[_0x231c4f(0x177)](()=>this[_0x231c4f(0x15b)]['delete'](_0xacd760));}[_0x280d0f(0x1f9)](_0x5a697f){const _0x3e5dbc=_0x280d0f;return this[_0x3e5dbc(0x18a)][_0x3e5dbc(0x187)](_0x5a697f);}[_0x280d0f(0x16e)](_0x30f0d8){const _0xac1422=_0x280d0f;return Array[_0xac1422(0x1b2)](this[_0xac1422(0x15b)])[_0xac1422(0x1e2)](_0x532f49=>_0x532f49(_0x30f0d8));}}var M=Object[_0x280d0f(0x151)],P=(_0xdd55ee,_0x359429,_0x4371cd,_0x157e53)=>{const _0x282314=_0x280d0f;for(var _0x4b50ae=_0x157e53>0x1?void 0x0:_0x157e53?M(_0x359429,_0x4371cd):_0x359429,_0x2aeb6a=_0xdd55ee[_0x282314(0x195)]-0x1,_0xe5ef89;_0x2aeb6a>=0x0;_0x2aeb6a--)(_0xe5ef89=_0xdd55ee[_0x2aeb6a])&&(_0x4b50ae=_0xe5ef89(_0x4b50ae)||_0x4b50ae);return _0x4b50ae;},S=(_0x15e804,_0xda37c8)=>(_0x2c5268,_0x5620dc)=>_0xda37c8(_0x2c5268,_0x5620dc,_0x15e804);exports[_0x280d0f(0x1aa)]=class extends o['RxDisposable']{constructor(_0x4542e1,_0x4cece6,_0x39d3da){const _0x1e8c5c=_0x280d0f;super(),_(this,_0x1e8c5c(0x203),new Map()),(this['_univerInstanceService']=_0x4542e1,this[_0x1e8c5c(0x1bd)]=_0x4cece6,this[_0x1e8c5c(0x1e0)]=_0x39d3da,this[_0x1e8c5c(0x1dc)]());}async[_0x280d0f(0x145)](_0x2e964e){const _0x5ca9ba=_0x280d0f;return this['_entities'][_0x5ca9ba(0x187)](_0x2e964e)||await this[_0x5ca9ba(0x204)](_0x2e964e),this['_entities'][_0x5ca9ba(0x130)](_0x2e964e);}[_0x280d0f(0x15a)](_0x2dd47a){const _0x4ede48=_0x280d0f;var _0x481262;return(_0x481262=this['_entities'][_0x4ede48(0x130)](_0x2dd47a))!=null?_0x481262:null;}[_0x280d0f(0x1dc)](){const _0x213d6d=_0x280d0f;this[_0x213d6d(0x1c5)][_0x213d6d(0x1fd)](o[_0x213d6d(0x20c)][_0x213d6d(0x1e4)])['pipe'](I[_0x213d6d(0x15e)](this[_0x213d6d(0x189)]))[_0x213d6d(0x1a7)](async _0x53ec3e=>{const _0x2ecc24=_0x213d6d,_0x8a36b9=_0x53ec3e[_0x2ecc24(0x1d6)]();this[_0x2ecc24(0x203)][_0x2ecc24(0x187)](_0x8a36b9)||this[_0x2ecc24(0x204)](_0x8a36b9);}),this['_univerInstanceService'][_0x213d6d(0x1db)](o['UniverInstanceType'][_0x213d6d(0x1e4)])[_0x213d6d(0x208)](I[_0x213d6d(0x15e)](this[_0x213d6d(0x189)]))[_0x213d6d(0x1a7)](_0x5696bc=>{const _0xe05219=_0x213d6d,_0x24ff2d=_0x5696bc[_0xe05219(0x1d6)](),_0x2bd9cd=this[_0xe05219(0x203)][_0xe05219(0x130)](_0x24ff2d);_0x2bd9cd==null||_0x2bd9cd[_0xe05219(0x1d8)]();});}async[_0x280d0f(0x204)](_0x1aaac5){const _0x1cde60=_0x280d0f,_0x2f816b=await this[_0x1cde60(0x1e0)]['requireSession'](_0x1aaac5),_0x134b5b=this[_0x1cde60(0x1bd)][_0x1cde60(0x1bf)](exports[_0x1cde60(0x1f2)],_0x1aaac5,_0x2f816b);return _0x134b5b[_0x1cde60(0x14e)](),this[_0x1cde60(0x203)]['set'](_0x1aaac5,_0x134b5b),_0x134b5b;}},exports[_0x280d0f(0x1aa)]=P([S(0x0,o[_0x280d0f(0x14b)]),S(0x1,o[_0x280d0f(0x1e7)](o['Injector'])),S(0x2,o[_0x280d0f(0x1e7)](b[_0x280d0f(0x1c8)]))],exports[_0x280d0f(0x1aa)]);var u=(_0x61be75=>(_0x61be75[_0x280d0f(0x154)]=_0x280d0f(0x1b7),_0x61be75[_0x280d0f(0x172)]=_0x280d0f(0x1ee),_0x61be75['FOLLOWING']=_0x280d0f(0x1ac),_0x61be75['NOT_FOLLOWING']=_0x280d0f(0x1cc),_0x61be75[_0x280d0f(0x15c)]='presenting',_0x61be75))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x280d0f(0x1ef)]{constructor(_0x45b741,_0x4f30d7,_0x5956f8,_0x1e72e1,_0x2ad5f2){const _0x21c1f8=_0x280d0f;super(),_(this,_0x21c1f8(0x18e),new O[(_0x21c1f8(0x19e))]('idle')),_(this,_0x21c1f8(0x1cb),this[_0x21c1f8(0x18e)][_0x21c1f8(0x166)]()),_(this,_0x21c1f8(0x1dc),!0x1),_(this,_0x21c1f8(0x1b1),null),_(this,_0x21c1f8(0x171),null),(this[_0x21c1f8(0x1b6)]=_0x45b741,this[_0x21c1f8(0x1ea)]=_0x4f30d7,this['_configService']=_0x5956f8,this['_liveShareService']=_0x1e72e1,this[_0x21c1f8(0x1d4)]=_0x2ad5f2);}get[_0x280d0f(0x1f8)](){const _0x196876=_0x280d0f;return this[_0x196876(0x18e)][_0x196876(0x159)]();}['dispose'](){const _0x15764c=_0x280d0f;var _0x471d57;(_0x471d57=this[_0x15764c(0x1b1)])==null||_0x471d57[_0x15764c(0x1d8)](),this[_0x15764c(0x18e)][_0x15764c(0x148)](_0x15764c(0x1ee)),this[_0x15764c(0x18e)][_0x15764c(0x1b8)]();}[_0x280d0f(0x194)](){const _0x31fe18=_0x280d0f;return this[_0x31fe18(0x1f8)];}[_0x280d0f(0x14e)](){const _0x254f27=_0x280d0f;this[_0x254f27(0x1dc)]||(this[_0x254f27(0x1dc)]=!0x0,this[_0x254f27(0x1ea)]['sessionStatus$'][_0x254f27(0x208)](I[_0x254f27(0x15e)](this[_0x254f27(0x189)]))[_0x254f27(0x1a7)](_0x17740f=>{const _0x2243c6=_0x254f27;switch(_0x17740f){case b[_0x2243c6(0x198)]['OFFLINE']:this[_0x2243c6(0x1df)]();break;case b['SessionStatus'][_0x2243c6(0x1a1)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x254f27(0x1b3)]['pipe'](I[_0x254f27(0x15e)](this[_0x254f27(0x189)]))['subscribe'](_0x348168=>{const _0x2110ab=_0x254f27,{eventID:_0x3f0060}=_0x348168;switch(_0x3f0060){case d[_0x2110ab(0x197)][_0x2110ab(0x1b9)]:this['_handleNewHost'](_0x348168);break;case d[_0x2110ab(0x197)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x348168);break;case d[_0x2110ab(0x197)]['LIVESHARE_TERMINATE']:this[_0x2110ab(0x1ba)]();break;case d[_0x2110ab(0x197)][_0x2110ab(0x176)]:this[_0x2110ab(0x192)](_0x348168);break;}}));}[_0x280d0f(0x188)](){const _0x9ff012=_0x280d0f;this[_0x9ff012(0x1ea)][_0x9ff012(0x142)]({'eventID':d[_0x9ff012(0x197)][_0x9ff012(0x190)],'data':{'unitID':this[_0x9ff012(0x1b6)],'userID':this['_collabSession'][_0x9ff012(0x136)]()}},this[_0x9ff012(0x1b6)]);}[_0x280d0f(0x1a3)](){const _0xb6187b=_0x280d0f;this[_0xb6187b(0x1f8)]==='presenting'&&(this[_0xb6187b(0x18e)]['next'](_0xb6187b(0x1ee)),this[_0xb6187b(0x1ea)][_0xb6187b(0x142)]({'eventID':d[_0xb6187b(0x197)][_0xb6187b(0x1d0)],'data':{'unitID':this['_unitID']}},this[_0xb6187b(0x1b6)]));}[_0x280d0f(0x1d2)](){const _0x261d41=_0x280d0f;this[_0x261d41(0x1f8)]===_0x261d41(0x1cc)&&(this[_0x261d41(0x18e)][_0x261d41(0x148)](_0x261d41(0x1ac)),this[_0x261d41(0x1c1)]());}['stopFollowing'](){const _0x414380=_0x280d0f;this['_status']===_0x414380(0x1ac)&&this[_0x414380(0x1cd)]();}[_0x280d0f(0x175)](_0x346100){const _0x2a8d6d=_0x280d0f,{presenter:_0x55cede}=_0x346100[_0x2a8d6d(0x18b)],_0x4671b8=this['_collabSession'][_0x2a8d6d(0x136)]();this[_0x2a8d6d(0x171)]=_0x55cede,_0x55cede===_0x4671b8?(this[_0x2a8d6d(0x1cd)](),this['_startPresenting']()):this[_0x2a8d6d(0x1f8)]!==_0x2a8d6d(0x1cc)&&(this[_0x2a8d6d(0x157)](),this['_startFollowing']());}[_0x280d0f(0x149)](){const _0x2fe99d=_0x280d0f,_0x514778={'eventID':d[_0x2fe99d(0x197)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x2fe99d(0x1ea)]['send'](_0x514778,this[_0x2fe99d(0x1b6)]);}[_0x280d0f(0x1ba)](){const _0x5d99f7=_0x280d0f;this[_0x5d99f7(0x171)]=null,this[_0x5d99f7(0x1f8)]!==_0x5d99f7(0x16c)&&this[_0x5d99f7(0x1fc)]();}['_handleNewChangeSets'](_0x7e5bdc){const _0x5d36a4=_0x280d0f;if(this[_0x5d36a4(0x1f8)]===_0x5d36a4(0x1ac)&&this[_0x5d36a4(0x171)]===_0x7e5bdc[_0x5d36a4(0x18b)][_0x5d36a4(0x1dd)]){const _0x3e1be5=d['parseProtocolChangeset'](_0x7e5bdc['data'])[_0x5d36a4(0x1a5)][_0x5d36a4(0x14f)]()[_0x5d36a4(0x1f0)](_0x513216=>_0x513216['id']===C['InsertSheetMutation']['id']);if(_0x3e1be5){const _0x13b6cb=_0x3e1be5[_0x5d36a4(0x19f)][_0x5d36a4(0x199)],_0x35d6ce=_0x3e1be5[_0x5d36a4(0x19f)][_0x5d36a4(0x20b)]['id'];setTimeout(()=>{const _0x332688=_0x5d36a4;this[_0x332688(0x1d4)][_0x332688(0x153)](C[_0x332688(0x1a9)]['id'],{'unitId':_0x13b6cb,'subUnitId':_0x35d6ce},{'fromCollab':!0x0});});}}}[_0x280d0f(0x1ce)](){const _0x3b61f6=_0x280d0f;this[_0x3b61f6(0x18e)][_0x3b61f6(0x148)](_0x3b61f6(0x16c));const _0x560e03=new Map(),_0x30574b=this[_0x3b61f6(0x1b1)]=new o[(_0x3b61f6(0x1c2))]();_0x30574b[_0x3b61f6(0x193)](o[_0x3b61f6(0x177)](()=>{const _0x6fd4d6=_0x3b61f6;_0x560e03[_0x6fd4d6(0x1be)](_0xab95d7=>_0xab95d7[_0x6fd4d6(0x1b8)]()),_0x560e03[_0x6fd4d6(0x1bb)]();})),_0x30574b[_0x3b61f6(0x193)](this[_0x3b61f6(0x1d4)][_0x3b61f6(0x1fe)](_0x4acccc=>{const _0x25ba43=_0x3b61f6;var _0x2de424;if(_0x4acccc[_0x25ba43(0x1a4)]!==o[_0x25ba43(0x1af)]['OPERATION']||!this['_liveShareService'][_0x25ba43(0x1f9)](_0x4acccc['id']))return;const {id:_0x138cce}=_0x4acccc;let _0x22b2dc;_0x560e03['has'](_0x138cce)?_0x22b2dc=_0x560e03[_0x25ba43(0x130)](_0x138cce):(_0x22b2dc=new O[(_0x25ba43(0x1c3))](),_0x560e03[_0x25ba43(0x18f)](_0x138cce,_0x22b2dc),_0x22b2dc[_0x25ba43(0x208)](I[_0x25ba43(0x1a8)]((_0x2de424=this[_0x25ba43(0x17f)][_0x25ba43(0x201)](k))!=null?_0x2de424:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x25ba43(0x1a7)](_0x8ee3c7=>{const _0x2d141f=_0x25ba43;this[_0x2d141f(0x1ea)][_0x2d141f(0x142)]({'eventID':d[_0x2d141f(0x197)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2d141f(0x1b6)],'operations':{[_0x8ee3c7['id']]:{'id':_0x8ee3c7['id'],'params':JSON[_0x2d141f(0x191)](_0x8ee3c7[_0x2d141f(0x19f)])}}}},this[_0x2d141f(0x1b6)]);})),_0x22b2dc[_0x25ba43(0x148)](_0x4acccc);})),this[_0x3b61f6(0x1f7)][_0x3b61f6(0x16e)](this['_unitID'])[_0x3b61f6(0x1be)](_0x5809a1=>this['_collabSession'][_0x3b61f6(0x142)]({'eventID':d[_0x3b61f6(0x197)][_0x3b61f6(0x16b)],'data':{'unitID':this[_0x3b61f6(0x1b6)],'operations':{[_0x5809a1['id']]:{'id':_0x5809a1['id'],'params':JSON[_0x3b61f6(0x191)](_0x5809a1[_0x3b61f6(0x19f)])}}}},this[_0x3b61f6(0x1b6)]));}[_0x280d0f(0x157)](){const _0x165144=_0x280d0f;var _0x2b8ba3;this['_status$'][_0x165144(0x148)](_0x165144(0x1ee)),(_0x2b8ba3=this[_0x165144(0x1b1)])==null||_0x2b8ba3[_0x165144(0x1d8)](),this[_0x165144(0x1b1)]=null;}[_0x280d0f(0x1c1)](){const _0x59abf2=_0x280d0f;var _0x5516af;(_0x5516af=this[_0x59abf2(0x1b1)])==null||_0x5516af[_0x59abf2(0x1d8)](),this[_0x59abf2(0x18e)][_0x59abf2(0x148)](_0x59abf2(0x1ac));}['_beIdle'](){const _0x6b9344=_0x280d0f;var _0x18ea65;this[_0x6b9344(0x18e)]['next'](_0x6b9344(0x1ee)),(_0x18ea65=this[_0x6b9344(0x1b1)])==null||_0x18ea65[_0x6b9344(0x1d8)](),this[_0x6b9344(0x1b1)]=null;}[_0x280d0f(0x1cd)](){const _0x45d9f5=_0x280d0f;var _0x28d356;this[_0x45d9f5(0x18e)]['next'](_0x45d9f5(0x1cc)),(_0x28d356=this[_0x45d9f5(0x1b1)])==null||_0x28d356[_0x45d9f5(0x1d8)]();}['_handleOperation'](_0x239481){const _0x12a7ef=_0x280d0f;if([_0x12a7ef(0x16c),_0x12a7ef(0x1cc),'offline'][_0x12a7ef(0x1ae)](this['_status'])||!_0x239481[_0x12a7ef(0x18b)][_0x12a7ef(0x200)]||_0x239481[_0x12a7ef(0x18b)][_0x12a7ef(0x200)]===this[_0x12a7ef(0x1ea)][_0x12a7ef(0x136)]())return;this[_0x12a7ef(0x1f8)]===_0x12a7ef(0x1ee)&&this[_0x12a7ef(0x1c1)]();const _0x2cfdc4=_0x239481['data'][_0x12a7ef(0x186)];Object['values'](_0x2cfdc4)[_0x12a7ef(0x1be)](_0x1820e1=>{const _0x1f2006=_0x12a7ef;this[_0x1f2006(0x1d4)][_0x1f2006(0x153)](_0x1820e1['id'],_0x1820e1[_0x1f2006(0x19f)]?JSON['parse'](_0x1820e1[_0x1f2006(0x19f)]):null,{'fromCollab':!0x0});});}[_0x280d0f(0x1df)](){const _0x8b47a4=_0x280d0f;var _0x354012;this[_0x8b47a4(0x18e)][_0x8b47a4(0x148)](_0x8b47a4(0x1b7)),(_0x354012=this[_0x8b47a4(0x1b1)])==null||_0x354012[_0x8b47a4(0x1d8)]();}[_0x280d0f(0x155)](){const _0x3480d8=_0x280d0f;this[_0x3480d8(0x18e)][_0x3480d8(0x148)](_0x3480d8(0x1ee)),this[_0x3480d8(0x149)]();}},exports[_0x280d0f(0x1f2)]=P([S(0x2,o['IConfigService']),S(0x3,o[_0x280d0f(0x1e7)](E)),S(0x4,o['ICommandService'])],exports[_0x280d0f(0x1f2)]);function $(){const _0x5c86cf=_0x280d0f,_0x243167=p['useDependency'](exports[_0x5c86cf(0x1aa)]),_0x12fe5b=p[_0x5c86cf(0x179)](o[_0x5c86cf(0x14b)]),_0x3fadc5=p[_0x5c86cf(0x170)](()=>_0x12fe5b[_0x5c86cf(0x19c)](o[_0x5c86cf(0x20c)][_0x5c86cf(0x1e4)]),void 0x0,!0x1,[]),[_0x37df18,_0x40be17]=v[_0x5c86cf(0x168)](null),[_0x344f23,_0x37eee3]=v['useState'](u[_0x5c86cf(0x172)]),_0x3d82ba=v['useRef'](null);return v['useEffect'](()=>(_0x3fadc5&&_0x243167[_0x5c86cf(0x145)](_0x3fadc5['getUnitId']())[_0x5c86cf(0x202)](_0xdd3262=>{const _0x3d1522=_0x5c86cf;_0x40be17(_0xdd3262),_0x3d82ba[_0x3d1522(0x162)]=_0xdd3262[_0x3d1522(0x1cb)]['subscribe'](_0x4e8db6=>{_0x37eee3(_0x4e8db6);});}),()=>{const _0x3987da=_0x5c86cf;var _0x11e0e8;(_0x11e0e8=_0x3d82ba[_0x3987da(0x162)])==null||_0x11e0e8[_0x3987da(0x141)](),_0x3d82ba['current']=null;}),[_0x3fadc5,_0x243167]),_0x37df18?l['jsx'](f['Dropdown'],{'align':_0x5c86cf(0x163),'disabled':_0x344f23===u[_0x5c86cf(0x154)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l['jsx'](W,{'status':_0x344f23,'coordinator':_0x37df18}),'children':l[_0x5c86cf(0x161)](_0x5c86cf(0x132),{'className':f[_0x5c86cf(0x16d)](_0x5c86cf(0x1ca),{'univer-cursor-not-allowed':_0x344f23===u[_0x5c86cf(0x154)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x344f23!==u[_0x5c86cf(0x154)]}),'type':'button','children':l[_0x5c86cf(0x161)](R,{'className':'univer-size-4'})})}):null;}function W(_0x3342d5){const _0x2a2f1c=_0x280d0f,{status:_0x16509c,coordinator:_0x586a23}=_0x3342d5;switch(_0x16509c){case u[_0x2a2f1c(0x172)]:return l[_0x2a2f1c(0x161)](G,{'coordinator':_0x586a23});case u[_0x2a2f1c(0x1ab)]:return l[_0x2a2f1c(0x161)](B,{'coordinator':_0x586a23});case u['NOT_FOLLOWING']:return l[_0x2a2f1c(0x161)](Y,{'coordinator':_0x586a23});case u[_0x2a2f1c(0x154)]:return l[_0x2a2f1c(0x161)](J,{});case u[_0x2a2f1c(0x15c)]:return l[_0x2a2f1c(0x161)](Z,{'coordinator':_0x586a23});default:return null;}}function G(_0x4edb7c){const _0x479b1e=_0x280d0f,{coordinator:_0x335139}=_0x4edb7c;return l[_0x479b1e(0x13e)](l[_0x479b1e(0x20a)],{'children':[l[_0x479b1e(0x161)](_0x479b1e(0x1e8),{'className':_0x479b1e(0x205),'children':_0x479b1e(0x1de)}),l[_0x479b1e(0x161)](f['Button'],{'onClick':()=>_0x335139[_0x479b1e(0x188)](),'children':_0x479b1e(0x1cf)})]});}function B(_0x45acba){const _0x107bdc=_0x280d0f,{coordinator:_0x5deed1}=_0x45acba;return l[_0x107bdc(0x13e)](l[_0x107bdc(0x20a)],{'children':[l[_0x107bdc(0x161)](_0x107bdc(0x1e8),{'className':_0x107bdc(0x205),'children':_0x107bdc(0x1c6)}),l[_0x107bdc(0x161)](f['Button'],{'onClick':()=>_0x5deed1[_0x107bdc(0x1a6)](),'children':_0x107bdc(0x13d)})]});}function Y(_0x5aa503){const _0x23f241=_0x280d0f,{coordinator:_0x2cff2e}=_0x5aa503;return l['jsxs'](l[_0x23f241(0x20a)],{'children':[l[_0x23f241(0x161)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x23f241(0x1b4)}),l['jsx'](f['Button'],{'variant':_0x23f241(0x15f),'onClick':()=>_0x2cff2e[_0x23f241(0x1d2)](),'children':'Start\x20following'})]});}function Z(_0x38f215){const _0x4de3fe=_0x280d0f,{coordinator:_0x1da4e8}=_0x38f215;return l[_0x4de3fe(0x13e)](l[_0x4de3fe(0x20a)],{'children':[l[_0x4de3fe(0x161)]('div',{'className':_0x4de3fe(0x205),'children':_0x4de3fe(0x1f4)}),l[_0x4de3fe(0x161)](f[_0x4de3fe(0x139)],{'variant':_0x4de3fe(0x164),'onClick':()=>_0x1da4e8[_0x4de3fe(0x1a3)](),'children':_0x4de3fe(0x158)})]});}function _0x1347(){const _0x16e518=['getCurrentTypeOfUnit$','trim','BehaviorSubject','params','path','ONLINE','http://www.w3.org/2000/svg','stopPresenting','type','mutations','stopFollowing','subscribe','throttleTime','SetWorksheetActiveOperation','LiveShareController','FOLLOWING','following','2011244GIfAYn','includes','CommandType','attrs','_commandDisposable','from','event$','You\x27re\x20not\x20following\x20the\x20presenter','useRef','_unitID','offline','complete','LIVESHARE_NEW_HOST','_handleTerminate','clear','UniverLiveSharePlugin','_injector','forEach','createInstance','7227LPsIXl','_startFollowing','DisposableCollection','Subject','touchDependencies','_univerInstanceService','You\x27re\x20following\x20the\x20presenter','forwardRef','CollaborationSessionService','9830pOTnxG','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','status$','not-following','_stopFollowing','_startPresenting','Start','LIVESHARE_TERMINATE','tag','startFollowing','931OXHWvw','_commandService','defineProperty','getUnitId','override','dispose','random','children','getTypeOfUnitDisposed$','_init','memberID','Present\x20this\x20document','_handleOffline','_collabSessionService','url(#$1','map','Module','UNIVER_SHEET','replace','fill','Inject','div','_uiPartsService','_collabSession','Disposable','0\x200\x2017\x2017','connectInjector','idle','RxDisposable','find','UNIVER_UNKNOWN','LiveShareCoordinator','substring','You\x27re\x20presenting\x20the\x20document','use','assign','_liveShareService','_status','shouldShareOperation','registerInitialStateReporter','evenodd','_beIdle','getTypeOfUnitAdded$','onCommandExecuted','onStarting','presenter','getConfig','then','_entities','_startLiveShareCoordinator','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverCollaborationClientPlugin','mask','pipe','xlink:href','Fragment','sheet','UniverInstanceType','get','LiveShareIcon','button','1em','displayName','_config','getMemberID','LiveShareStatus','2307453PqlITe','Button','IConfigService','SetZoomRatioOperation','createElement','Stop\x20following','jsxs','currentColor','IUIPartsService','unsubscribe','send','toString','svg','getLiveShareCoordinator','2320668nFdwPi','colorChannel1','next','_fetchOperations','UniverIcon','IUniverInstanceService','toStringTag','idSuffix','init','reverse','DependentOn','getOwnPropertyDescriptor','BuiltInUIPart','executeCommand','OFFLINE','_handleOnline','entries','_stopPresenting','Stop\x20presenting','getValue','getLiveShareCoordinatorSync','_reporters','PRESENTING','string','takeUntil','text','_mountLiveShare','jsx','current','end','default','registerComponent','asObservable','LiveShareService','useState','onRendered','univerjs-icon\x20univerjs-icon-','LIVESHARE_OPERATION','presenting','clsx','getInitialStates','registerSharedOperation','useObservable','_presenter','IDLE','LiveShare','defIds','_handleNewHost','NEW_CHANGESETS','toDisposable','none','useDependency','DesktopLiveShareController','2013250lqUInB','live-share.config','Injector','symbol','_configService','2dAVCPR','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','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','HEADER_MENU','pluginName','delete','operations','has','tryStartPresenting','dispose$','_sharedOperations','data','merge','15856SESYye','_status$','set','LIVESHARE_REQUEST_HOST','stringify','_handleNewChangeSets','add','getStatus','length','disposeWithMe','CollaborationEvent','SessionStatus','unitId','143656kTNEzP','setConfig'];_0x1347=function(){return _0x16e518;};return _0x1347();}function J(){const _0x14c6fb=_0x280d0f;return l[_0x14c6fb(0x161)](l[_0x14c6fb(0x20a)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x280d0f(0x151)],z=(_0x575d46,_0x54b9b4,_0x7ef4c0,_0x3ac8bd)=>{const _0x43dc33=_0x280d0f;for(var _0x527e47=_0x3ac8bd>0x1?void 0x0:_0x3ac8bd?K(_0x54b9b4,_0x7ef4c0):_0x54b9b4,_0xc8d76c=_0x575d46[_0x43dc33(0x195)]-0x1,_0x4ab7f4;_0xc8d76c>=0x0;_0xc8d76c--)(_0x4ab7f4=_0x575d46[_0xc8d76c])&&(_0x527e47=_0x4ab7f4(_0x527e47)||_0x527e47);return _0x527e47;},L=(_0x27c26d,_0xa5ecad)=>(_0x4e52f0,_0x38dd98)=>_0xa5ecad(_0x4e52f0,_0x38dd98,_0x27c26d);exports[_0x280d0f(0x17a)]=class extends o[_0x280d0f(0x1eb)]{constructor(_0x2d3457,_0x36b536){const _0x71ab1f=_0x280d0f;super(),this[_0x71ab1f(0x1bd)]=_0x2d3457,this['_uiPartsService']=_0x36b536,this[_0x71ab1f(0x160)]();}[_0x280d0f(0x160)](){const _0x1f1e7d=_0x280d0f;this['disposeWithMe'](this[_0x1f1e7d(0x1e9)][_0x1f1e7d(0x165)](p[_0x1f1e7d(0x152)][_0x1f1e7d(0x183)],()=>p[_0x1f1e7d(0x1ed)]($,this[_0x1f1e7d(0x1bd)])));}},exports[_0x280d0f(0x17a)]=z([L(0x0,o[_0x280d0f(0x1e7)](o[_0x280d0f(0x17d)])),L(0x1,p[_0x280d0f(0x140)])],exports[_0x280d0f(0x17a)]);const Q=_0x280d0f(0x17c),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x36f09e,_0x58c188,_0x3af2c2,_0x8271d3)=>{const _0x38c9ac=_0x280d0f;for(var _0x4ba9d9=_0x8271d3>0x1?void 0x0:_0x8271d3?X(_0x58c188,_0x3af2c2):_0x58c188,_0x410442=_0x36f09e[_0x38c9ac(0x195)]-0x1,_0x32781b;_0x410442>=0x0;_0x410442--)(_0x32781b=_0x36f09e[_0x410442])&&(_0x4ba9d9=_0x32781b(_0x4ba9d9)||_0x4ba9d9);return _0x4ba9d9;},te=(_0x58f31b,_0x41653f)=>(_0x5b43bd,_0x5f4992)=>_0x41653f(_0x5b43bd,_0x5f4992,_0x58f31b);let m=class extends o['Disposable']{constructor(_0x561987){const _0x114be6=_0x280d0f;super(),this[_0x114be6(0x1f7)]=_0x561987,this[_0x114be6(0x1dc)]();}[_0x280d0f(0x1dc)](){const _0x235d2c=_0x280d0f;[D[_0x235d2c(0x13b)]['id'],D['SetScrollOperation']['id'],C[_0x235d2c(0x1a9)]['id']][_0x235d2c(0x1be)](_0x5046d0=>{const _0x4db692=_0x235d2c;this[_0x4db692(0x196)](this[_0x4db692(0x1f7)][_0x4db692(0x16f)](_0x5046d0));});}};function _0x2669(_0x3dbf18,_0x1cc6a4){const _0x134725=_0x1347();return _0x2669=function(_0x266903,_0x5018e2){_0x266903=_0x266903-0x130;let _0x5b5bc7=_0x134725[_0x266903];return _0x5b5bc7;},_0x2669(_0x3dbf18,_0x1cc6a4);}m=ee([te(0x0,o[_0x280d0f(0x1e7)](E))],m);var ie=Object[_0x280d0f(0x1d5)],se=Object[_0x280d0f(0x151)],ne=(_0x3dfc23,_0x5bc18,_0x35db24)=>_0x5bc18 in _0x3dfc23?ie(_0x3dfc23,_0x5bc18,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35db24}):_0x3dfc23[_0x5bc18]=_0x35db24,re=(_0x398b96,_0x42a854,_0x3f3fad,_0xafbc4f)=>{const _0x34cacf=_0x280d0f;for(var _0x2fed33=_0xafbc4f>0x1?void 0x0:_0xafbc4f?se(_0x42a854,_0x3f3fad):_0x42a854,_0x41a69b=_0x398b96[_0x34cacf(0x195)]-0x1,_0x166ea7;_0x41a69b>=0x0;_0x41a69b--)(_0x166ea7=_0x398b96[_0x41a69b])&&(_0x2fed33=_0x166ea7(_0x2fed33)||_0x2fed33);return _0x2fed33;},N=(_0x227e91,_0x4c1c26)=>(_0xcb3332,_0xc30a8e)=>_0x4c1c26(_0xcb3332,_0xc30a8e,_0x227e91),A=(_0x4929ef,_0x4f2de3,_0x52e427)=>ne(_0x4929ef,typeof _0x4f2de3!=_0x280d0f(0x17e)?_0x4f2de3+'':_0x4f2de3,_0x52e427);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x3a5655=w,_0x39d3c2,_0x1990c0){const _0x2ee4c9=_0x280d0f;super(),this['_config']=_0x3a5655,this['_injector']=_0x39d3c2,this[_0x2ee4c9(0x17f)]=_0x1990c0;const {..._0x25534a}=o[_0x2ee4c9(0x18c)]({},w,this[_0x2ee4c9(0x135)]);this['_configService'][_0x2ee4c9(0x19b)](Q,_0x25534a);}[_0x280d0f(0x1ff)](){const _0x228002=_0x280d0f;o['registerDependencies'](this['_injector'],o['mergeOverrideWithDependencies']([[E],[exports[_0x228002(0x1aa)]],[m],[exports[_0x228002(0x17a)]]],this[_0x228002(0x135)][_0x228002(0x1d7)])),o[_0x228002(0x1c4)](this[_0x228002(0x1bd)],[[m]]);}[_0x280d0f(0x169)](){const _0x93af7f=_0x280d0f;o[_0x93af7f(0x1c4)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x280d0f(0x1bc)],_0x280d0f(0x1a4),o[_0x280d0f(0x20c)][_0x280d0f(0x1f1)]),A(exports[_0x280d0f(0x1bc)],_0x280d0f(0x184),oe),exports[_0x280d0f(0x1bc)]=re([o[_0x280d0f(0x150)](b[_0x280d0f(0x206)]),N(0x1,o['Inject'](o[_0x280d0f(0x17d)])),N(0x2,o[_0x280d0f(0x13a)])],exports[_0x280d0f(0x1bc)]),exports[_0x280d0f(0x173)]=$,exports[_0x280d0f(0x167)]=E,exports[_0x280d0f(0x137)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x44cc11=_0x571d;function _0x4b38(){const _0xf2252=['startColumn','getActiveWorkbook','stopPresenting','getRenderById','tryStartPresenting','extend','116318jvJVSX','738160hJNFiS','7232706lifezH','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_injector','startFollowing','startRow','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','getStatus','startPresenting','getActiveSheet','getUnitId','_commandService','stopFollowing','4374349GDTyYo','16733412jgtuIg','executeCommand','510KalXPg','getSheetId','_initialize','7552cohDOt','getId','get','LiveShareStatusEnum','69Itphcn','IDLE','350644ZBKWaQ'];_0x4b38=function(){return _0xf2252;};return _0x4b38();}(function(_0x1ffa5a,_0x2963cc){const _0x1c75f1=_0x571d,_0x409b7f=_0x1ffa5a();while(!![]){try{const _0x4d8ede=-parseInt(_0x1c75f1(0x97))/0x1+-parseInt(_0x1c75f1(0x7c))/0x2*(-parseInt(_0x1c75f1(0x95))/0x3)+parseInt(_0x1c75f1(0x91))/0x4*(-parseInt(_0x1c75f1(0x8e))/0x5)+parseInt(_0x1c75f1(0x7e))/0x6+parseInt(_0x1c75f1(0x8b))/0x7+parseInt(_0x1c75f1(0x7d))/0x8+-parseInt(_0x1c75f1(0x8c))/0x9;if(_0x4d8ede===_0x2963cc)break;else _0x409b7f['push'](_0x409b7f['shift']());}catch(_0x51bc1e){_0x409b7f['push'](_0x409b7f['shift']());}}}(_0x4b38,0xd16c5));import{LiveShareController as _0x313d25,LiveShareStatus as _0x580825}from'@univerjs-pro/live-share';function _0x571d(_0x1f4573,_0x25e91f){const _0x4b3887=_0x4b38();return _0x571d=function(_0x571dba,_0x5d8bd6){_0x571dba=_0x571dba-0x79;let _0xd79ff0=_0x4b3887[_0x571dba];return _0xd79ff0;},_0x571d(_0x1f4573,_0x25e91f);}import{IRenderManagerService as _0x4b094b}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3c1ff9}from'@univerjs/sheets';import{SetScrollOperation as _0x5b0dc0}from'@univerjs/sheets-ui';import{FRange as _0x13eaa2}from'@univerjs/sheets/facade';import{FUniver as _0x7c51a5,FEnum as _0x1b964c}from'@univerjs/core/facade';class I extends _0x13eaa2{[_0x44cc11(0x90)](_0x39c304,_0x283a50,_0x4b916e,_0x33ec3c,_0x5c80a4){const _0x51b103=_0x44cc11,_0x268fd0=_0x39c304[_0x51b103(0x93)](_0x313d25),_0x5d3fb1=_0x39c304[_0x51b103(0x93)](_0x4b094b),_0x437c79=_0x283a50['getUnitId'](),_0x2381ab=_0x283a50[_0x51b103(0x87)](),_0x24d15e=_0x268fd0[_0x51b103(0x83)](_0x437c79);(_0x24d15e==null?void 0x0:_0x24d15e[_0x51b103(0x85)]())!==_0x580825['PRESENTING']||(_0x4b916e[_0x51b103(0x8f)]()!==_0x2381ab[_0x51b103(0x8f)]()&&this[_0x51b103(0x89)][_0x51b103(0x8d)](_0x3c1ff9['id'],{'unitId':_0x437c79,'subUnitId':_0x4b916e['getSheetId']()}),!_0x5d3fb1[_0x51b103(0x79)](_0x437c79))||_0x5c80a4['syncExecuteCommand'](_0x5b0dc0['id'],{'unitId':_0x283a50[_0x51b103(0x88)](),'sheetId':_0x4b916e[_0x51b103(0x8f)](),'sheetViewStartRow':_0x33ec3c[_0x51b103(0x82)],'sheetViewStartColumn':_0x33ec3c[_0x51b103(0x98)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x13eaa2[_0x44cc11(0x7b)](I);class m extends _0x7c51a5{['getLiveShareStatus'](){const _0x4729bb=_0x44cc11;var _0x266f06,_0x5d2937;const _0x2751aa=this['_injector']['get'](_0x313d25),_0x3a8d0d=(_0x266f06=this['getActiveWorkbook']())==null?void 0x0:_0x266f06[_0x4729bb(0x92)]();if(!_0x3a8d0d)throw new Error('No\x20active\x20workbook\x20found.');const _0x3ee693=_0x2751aa[_0x4729bb(0x83)](_0x3a8d0d);return(_0x5d2937=_0x3ee693==null?void 0x0:_0x3ee693[_0x4729bb(0x85)]())!=null?_0x5d2937:_0x580825[_0x4729bb(0x96)];}[_0x44cc11(0x81)](){const _0x5d261e=_0x44cc11;var _0xd5a86d;const _0x6c94c8=this[_0x5d261e(0x80)][_0x5d261e(0x93)](_0x313d25),_0x56ff5a=(_0xd5a86d=this[_0x5d261e(0x99)]())==null?void 0x0:_0xd5a86d['getId']();if(!_0x56ff5a)throw new Error('No\x20active\x20workbook\x20found.');const _0x401d30=_0x6c94c8[_0x5d261e(0x83)](_0x56ff5a);if(!_0x401d30)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x401d30[_0x5d261e(0x81)]();}[_0x44cc11(0x8a)](){const _0x5b3d2f=_0x44cc11;var _0x346103;const _0xcb4cd6=this[_0x5b3d2f(0x80)][_0x5b3d2f(0x93)](_0x313d25),_0x312b92=(_0x346103=this[_0x5b3d2f(0x99)]())==null?void 0x0:_0x346103[_0x5b3d2f(0x92)]();if(!_0x312b92)throw new Error(_0x5b3d2f(0x84));const _0x116a00=_0xcb4cd6[_0x5b3d2f(0x83)](_0x312b92);if(!_0x116a00)throw new Error(_0x5b3d2f(0x7f));_0x116a00[_0x5b3d2f(0x8a)]();}[_0x44cc11(0x86)](){const _0x27bd85=_0x44cc11;var _0x4c0fbb;const _0x1221c4=this[_0x27bd85(0x80)][_0x27bd85(0x93)](_0x313d25),_0x388df1=(_0x4c0fbb=this[_0x27bd85(0x99)]())==null?void 0x0:_0x4c0fbb[_0x27bd85(0x92)]();if(!_0x388df1)throw new Error(_0x27bd85(0x84));const _0x27320c=_0x1221c4[_0x27bd85(0x83)](_0x388df1);if(!_0x27320c)throw new Error(_0x27bd85(0x7f));_0x27320c[_0x27bd85(0x7a)]();}[_0x44cc11(0x9a)](){const _0xe26281=_0x44cc11;var _0x3504fc;const _0x4b788d=this[_0xe26281(0x80)][_0xe26281(0x93)](_0x313d25),_0x5189e8=(_0x3504fc=this[_0xe26281(0x99)]())==null?void 0x0:_0x3504fc[_0xe26281(0x92)]();if(!_0x5189e8)throw new Error(_0xe26281(0x84));const _0x822424=_0x4b788d[_0xe26281(0x83)](_0x5189e8);if(!_0x822424)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x822424[_0xe26281(0x9a)]();}}_0x7c51a5[_0x44cc11(0x7b)](m);class C extends _0x1b964c{get[_0x44cc11(0x94)](){return _0x580825;}}_0x1b964c[_0x44cc11(0x7b)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x466b10=_0x2fc8;(function(_0x3626d1,_0x23da67){const _0x45aec7=_0x2fc8,_0x8e61fd=_0x3626d1();while(!![]){try{const _0x48c8d8=parseInt(_0x45aec7(0x219))/0x1+-parseInt(_0x45aec7(0x1d6))/0x2+parseInt(_0x45aec7(0x242))/0x3*(parseInt(_0x45aec7(0x257))/0x4)+parseInt(_0x45aec7(0x254))/0x5+parseInt(_0x45aec7(0x277))/0x6*(-parseInt(_0x45aec7(0x213))/0x7)+-parseInt(_0x45aec7(0x233))/0x8+parseInt(_0x45aec7(0x25c))/0x9*(-parseInt(_0x45aec7(0x1f3))/0xa);if(_0x48c8d8===_0x23da67)break;else _0x8e61fd['push'](_0x8e61fd['shift']());}catch(_0xebfcd1){_0x8e61fd['push'](_0x8e61fd['shift']());}}}(_0x357a,0xbf71a));var J=Object[_0x466b10(0x264)],K=(_0xe41e0b,_0x53190b,_0x5dfba6)=>_0x53190b in _0xe41e0b?J(_0xe41e0b,_0x53190b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dfba6}):_0xe41e0b[_0x53190b]=_0x5dfba6,u=(_0x534186,_0x439d01,_0x13b7be)=>K(_0x534186,typeof _0x439d01!='symbol'?_0x439d01+'':_0x439d01,_0x13b7be);import{Disposable as _0x420bef,toDisposable as _0x2eefa6,IUniverInstanceService as _0x2136d5,Inject as _0xb810a1,Injector as _0x42925d,IConfigService as _0x534aaa,ICommandService as _0x462048,RxDisposable as _0x42c56f,UniverInstanceType as _0x5da7e1,DisposableCollection as _0x5c3901,CommandType as _0x5c0f1e,DependentOn as _0x426f35,Plugin as _0x1ab38a,merge as _0x153f93,registerDependencies as _0x40c418,mergeOverrideWithDependencies as _0x26a6d8,touchDependencies as _0x321cc3}from'@univerjs/core';import{useDependency as _0x57b7f1,useObservable as _0x2f47a8,IUIPartsService as _0x13733b,BuiltInUIPart as _0x325241,connectInjector as _0x5e2acd}from'@univerjs/ui';import{jsx as _0x284072,jsxs as _0x2842a9,Fragment as _0x3f7b64}from'react/jsx-runtime';import{Dropdown as _0x4d67da,clsx as _0x3b0bb0,Button as _0x55525b}from'@univerjs/design';import{useRef as _0x42cbc5,createElement as _0x345555,forwardRef as _0x3c8360,useState as _0x34edd8,useEffect as _0x2e4dde}from'react';import{CollaborationEvent as _0x4f8dac,parseProtocolChangeset as _0x1aca7c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32ee9c,SessionStatus as _0x2c2d1f,UniverCollaborationClientPlugin as _0x27fd59}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x27298e,SetWorksheetActiveOperation as _0x1cd2eb}from'@univerjs/sheets';import{BehaviorSubject as _0x4e0347,Subject as _0x5885a2}from'rxjs';import{takeUntil as _0x2b8aab,throttleTime as _0x3853a5}from'rxjs/operators';import{SetZoomRatioOperation as _0x54dcf4,SetScrollOperation as _0x59b67c}from'@univerjs/sheets-ui';function k({ref:_0x56e881,..._0x8a0ea0}){const _0x4313f2=_0x466b10,{icon:_0xdffd6,id:_0x3a411c,className:_0x3857f2,extend:_0x437451,..._0x472013}=_0x8a0ea0,_0x49a098=('univerjs-icon\x20univerjs-icon-'+_0x3a411c+'\x20'+(_0x3857f2||''))['trim'](),_0x1bf568=_0x42cbc5('_'+Oe());return G(_0xdffd6,''+_0x3a411c,{'defIds':_0xdffd6[_0x4313f2(0x1e9)],'idSuffix':_0x1bf568[_0x4313f2(0x260)]},{'ref':_0x56e881,'className':_0x49a098,..._0x472013},_0x437451);}function G(_0x36dab8,_0x14e2ad,_0x388ceb,_0xe44f09,_0x31239d){const _0x457d2f=_0x466b10;return _0x345555(_0x36dab8[_0x457d2f(0x1d5)],{'key':_0x14e2ad,...be(_0x36dab8,_0x388ceb,_0x31239d),..._0xe44f09},(Ee(_0x36dab8,_0x388ceb)[_0x457d2f(0x1da)]||[])['map']((_0x143ae9,_0x2fb417)=>G(_0x143ae9,_0x14e2ad+'-'+_0x36dab8[_0x457d2f(0x1d5)]+'-'+_0x2fb417,_0x388ceb,void 0x0,_0x31239d)));}function be(_0x193212,_0x5225b8,_0x52778d){const _0x144ca5=_0x466b10,_0x4e407c={..._0x193212[_0x144ca5(0x23e)]};_0x52778d!=null&&_0x52778d[_0x144ca5(0x252)]&&_0x4e407c[_0x144ca5(0x269)]==='colorChannel1'&&(_0x4e407c[_0x144ca5(0x269)]=_0x52778d['colorChannel1']),_0x193212[_0x144ca5(0x1d5)]==='mask'&&_0x4e407c['id']&&(_0x4e407c['id']=_0x4e407c['id']+_0x5225b8[_0x144ca5(0x20f)]),Object[_0x144ca5(0x24c)](_0x4e407c)[_0x144ca5(0x21f)](([_0x337893,_0x589733])=>{const _0x2f5315=_0x144ca5;_0x337893==='mask'&&typeof _0x589733==_0x2f5315(0x25e)&&(_0x4e407c[_0x337893]=_0x589733['replace'](/url\(#(.*)\)/,_0x2f5315(0x273)+_0x5225b8[_0x2f5315(0x20f)]+')'));});const {defIds:_0x253c66}=_0x5225b8;return!_0x253c66||_0x253c66[_0x144ca5(0x225)]===0x0||(_0x193212['tag']==='use'&&_0x4e407c['xlink:href']&&(_0x4e407c[_0x144ca5(0x1d8)]=_0x4e407c['xlink:href']+_0x5225b8[_0x144ca5(0x20f)]),Object[_0x144ca5(0x24c)](_0x4e407c)[_0x144ca5(0x21f)](([_0x5581e5,_0x171030])=>{const _0x32af2b=_0x144ca5;typeof _0x171030==_0x32af2b(0x25e)&&(_0x4e407c[_0x5581e5]=_0x171030[_0x32af2b(0x22a)](/url\(#(.*)\)/,_0x32af2b(0x273)+_0x5225b8[_0x32af2b(0x20f)]+')'));})),_0x4e407c;}function _0x357a(){const _0x1c4ba2=['_status','disposeWithMe','getMemberID','univer-size-4','get','OPERATION','getUnitId','asObservable','attrs','event$','displayName','PRESENTING','3165MfJiok','You\x27are\x20offline.','UNIVER_SHEET','getConfig','_handleTerminate','getValue','LIVESHARE_OPERATION','init','LIVESHARE_REQUEST_HOST','NOT_FOLLOWING','entries','getOwnPropertyDescriptor','UNIVER_UNKNOWN','params','status$','_configService','colorChannel1','NEW_CHANGESETS','506440UAbPaJ','_init','stopPresenting','3032UyPZYu','complete','You\x27re\x20presenting\x20the\x20document','memberID','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','30798qOIaYn','unitId','string','_startFollowing','current','evenodd','live-share.config','_unitID','defineProperty','1em','mutations','getTypeOfUnitDisposed$','getCurrentTypeOfUnit$','fill','type','following','none','presenting','setConfig','IDLE','_sharedOperations','getInitialStates','You\x27re\x20not\x20following\x20the\x20presenter','url(#$1','_beIdle','_presenter','data','1608414RAbKHp','delete','_stopFollowing','_commandDisposable','tag','261130MtvYBC','LIVESHARE_TERMINATE','xlink:href','symbol','children','_startPresenting','values','next','onCommandExecuted','Start','FOLLOWING','_mountLiveShare','registerSharedOperation','LIVESHARE_FETCH_OPERATIONS','_status$','has','startFollowing','default','currentColor','defIds','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','univer-mb-3\x20univer-w-full\x20univer-text-sm','override','subscribe','includes','button','HEADER_MENU','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','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','730MDRAmK','_config','_collabSession','dispose','OFFLINE','offline','add','idle','Present\x20this\x20document','onStarting','defs','text','_reporters','send','_handleNewHost','UniverIcon','getTypeOfUnitAdded$','div','assign','tryStartPresenting','reverse','LIVESHARE_NEW_HOST','requireSession','_handleOnline','shouldShareOperation','executeCommand','_collabSessionService','http://www.w3.org/2000/svg','idSuffix','_handleOffline','set','dispose$','28FjsQDi','getLiveShareCoordinator','path','_handleNewChangeSets','You\x27re\x20following\x20the\x20presenter','_univerInstanceService','1405489RARwvP','Stop\x20following','end','pipe','getStatus','createInstance','forEach','_uiPartsService','not-following','presenter','_handleOperation','_liveShareService','length','_stopPresenting','_fetchOperations','stopFollowing','sheet','replace','parse','0\x200\x2017\x2017','_startLiveShareCoordinator','_commandService','SAME_OPERATION_SHARE_INTERVAL','onRendered','_injector','toString','557328kyMpoS','_entities','pluginName'];_0x357a=function(){return _0x1c4ba2;};return _0x357a();}function Ee(_0x48c89a,_0x1479e5){const _0xdca510=_0x466b10;var _0x3b9069;const {defIds:_0x476edd}=_0x1479e5;return!_0x476edd||_0x476edd[_0xdca510(0x225)]===0x0?_0x48c89a:_0x48c89a[_0xdca510(0x1d5)]===_0xdca510(0x1fd)&&((_0x3b9069=_0x48c89a[_0xdca510(0x1da)])!=null&&_0x3b9069[_0xdca510(0x225)])?{..._0x48c89a,'children':_0x48c89a['children']['map'](_0x5eadee=>typeof _0x5eadee[_0xdca510(0x23e)]['id']==_0xdca510(0x25e)&&_0x476edd&&_0x476edd[_0xdca510(0x1ee)](_0x5eadee[_0xdca510(0x23e)]['id'])?{..._0x5eadee,'attrs':{..._0x5eadee[_0xdca510(0x23e)],'id':_0x5eadee[_0xdca510(0x23e)]['id']+_0x1479e5[_0xdca510(0x20f)]}}:_0x5eadee)}:_0x48c89a;}function Oe(){const _0x2e54c3=_0x466b10;return Math['random']()[_0x2e54c3(0x232)](0x24)['substring'](0x2,0x8);}k[_0x466b10(0x240)]=_0x466b10(0x202);const we={'tag':'svg','attrs':{'xmlns':_0x466b10(0x20e),'fill':_0x466b10(0x26c),'viewBox':_0x466b10(0x22c),'width':_0x466b10(0x265),'height':_0x466b10(0x265)},'children':[{'tag':_0x466b10(0x215),'attrs':{'fill':'currentColor','d':_0x466b10(0x25b)}},{'tag':_0x466b10(0x215),'attrs':{'fill':_0x466b10(0x1e8),'d':_0x466b10(0x1f1),'fillRule':_0x466b10(0x261),'clipRule':_0x466b10(0x261)}}]},W=_0x3c8360(function(_0x85f375,_0x1fb5b6){const _0x238ac1=_0x466b10;return _0x345555(k,Object[_0x238ac1(0x205)]({},_0x85f375,{'id':'live-share-icon','ref':_0x1fb5b6,'icon':we}));});W[_0x466b10(0x240)]='LiveShareIcon';class L extends _0x420bef{constructor(){const _0x534244=_0x466b10;super(...arguments),u(this,_0x534244(0x270),new Set()),u(this,_0x534244(0x1ff),new Set());}['registerSharedOperation'](_0x283131){const _0xec1a2e=_0x466b10;return this[_0xec1a2e(0x270)]['add'](_0x283131),_0x2eefa6(()=>this[_0xec1a2e(0x270)][_0xec1a2e(0x1d2)](_0x283131));}['registerInitialStateReporter'](_0x2bcae4){const _0x5d9c51=_0x466b10;return this[_0x5d9c51(0x1ff)][_0x5d9c51(0x1f9)](_0x2bcae4),_0x2eefa6(()=>this[_0x5d9c51(0x1ff)][_0x5d9c51(0x1d2)](_0x2bcae4));}[_0x466b10(0x20b)](_0x27b4e1){const _0x22a577=_0x466b10;return this[_0x22a577(0x270)][_0x22a577(0x1e5)](_0x27b4e1);}[_0x466b10(0x271)](_0x21cfca){const _0x28622f=_0x466b10;return Array['from'](this[_0x28622f(0x1ff)])['map'](_0xae5419=>_0xae5419(_0x21cfca));}}function _0x2fc8(_0x4eae40,_0x1bf369){const _0x357a1e=_0x357a();return _0x2fc8=function(_0x2fc8b5,_0x285da0){_0x2fc8b5=_0x2fc8b5-0x1d2;let _0x4f78d4=_0x357a1e[_0x2fc8b5];return _0x4f78d4;},_0x2fc8(_0x4eae40,_0x1bf369);}var Ne=Object[_0x466b10(0x24d)],Y=(_0x247e4e,_0x5ab1bf,_0x2311d0,_0x3039bc)=>{for(var _0xd525ca=_0x3039bc>0x1?void 0x0:_0x3039bc?Ne(_0x5ab1bf,_0x2311d0):_0x5ab1bf,_0x250c14=_0x247e4e['length']-0x1,_0x4acf00;_0x250c14>=0x0;_0x250c14--)(_0x4acf00=_0x247e4e[_0x250c14])&&(_0xd525ca=_0x4acf00(_0xd525ca)||_0xd525ca);return _0xd525ca;},_=(_0x4cff14,_0x134983)=>(_0x177e5d,_0x400f5e)=>_0x134983(_0x177e5d,_0x400f5e,_0x4cff14);let S=class extends _0x42c56f{constructor(_0x12aa1b,_0x3369ed,_0x3b2100){const _0x538447=_0x466b10;super(),u(this,'_entities',new Map()),(this[_0x538447(0x218)]=_0x12aa1b,this[_0x538447(0x231)]=_0x3369ed,this[_0x538447(0x20d)]=_0x3b2100,this[_0x538447(0x255)]());}async[_0x466b10(0x214)](_0x4cc403){const _0x3a8be6=_0x466b10;return this[_0x3a8be6(0x234)]['has'](_0x4cc403)||await this[_0x3a8be6(0x22d)](_0x4cc403),this[_0x3a8be6(0x234)][_0x3a8be6(0x23a)](_0x4cc403);}['getLiveShareCoordinatorSync'](_0x4d60ac){const _0x294aee=_0x466b10;var _0x5080d1;return(_0x5080d1=this[_0x294aee(0x234)][_0x294aee(0x23a)](_0x4d60ac))!=null?_0x5080d1:null;}[_0x466b10(0x255)](){const _0x462bfb=_0x466b10;this[_0x462bfb(0x218)][_0x462bfb(0x203)](_0x5da7e1[_0x462bfb(0x244)])[_0x462bfb(0x21c)](_0x2b8aab(this[_0x462bfb(0x212)]))[_0x462bfb(0x1ed)](async _0x2a6ec0=>{const _0x53687e=_0x462bfb,_0x351f05=_0x2a6ec0[_0x53687e(0x23c)]();this[_0x53687e(0x234)][_0x53687e(0x1e5)](_0x351f05)||this[_0x53687e(0x22d)](_0x351f05);}),this[_0x462bfb(0x218)][_0x462bfb(0x267)](_0x5da7e1[_0x462bfb(0x244)])[_0x462bfb(0x21c)](_0x2b8aab(this['dispose$']))['subscribe'](_0x4fe067=>{const _0xab9415=_0x462bfb,_0x974fbe=_0x4fe067['getUnitId'](),_0x5cbd94=this[_0xab9415(0x234)][_0xab9415(0x23a)](_0x974fbe);_0x5cbd94==null||_0x5cbd94[_0xab9415(0x1f6)]();});}async[_0x466b10(0x22d)](_0x23b9ed){const _0x4d6911=_0x466b10,_0x537694=await this[_0x4d6911(0x20d)][_0x4d6911(0x209)](_0x23b9ed),_0x11c03c=this[_0x4d6911(0x231)][_0x4d6911(0x21e)](N,_0x23b9ed,_0x537694);return _0x11c03c[_0x4d6911(0x249)](),this[_0x4d6911(0x234)][_0x4d6911(0x211)](_0x23b9ed,_0x11c03c),_0x11c03c;}};S=Y([_(0x0,_0x2136d5),_(0x1,_0xb810a1(_0x42925d)),_(0x2,_0xb810a1(_0x32ee9c))],S);var c=(_0x7d2b6b=>(_0x7d2b6b[_0x466b10(0x1f7)]=_0x466b10(0x1f8),_0x7d2b6b[_0x466b10(0x26f)]=_0x466b10(0x1fa),_0x7d2b6b['FOLLOWING']='following',_0x7d2b6b['NOT_FOLLOWING']='not-following',_0x7d2b6b[_0x466b10(0x241)]=_0x466b10(0x26d),_0x7d2b6b))(c||{});const Ce=_0x466b10(0x22f),De=0xc8;let N=class extends _0x42c56f{constructor(_0xa665c2,_0x391052,_0x56364f,_0x58779e,_0x90e7d2){const _0x1141fa=_0x466b10;super(),u(this,_0x1141fa(0x1e4),new _0x4e0347(_0x1141fa(0x1fa))),u(this,'status$',this[_0x1141fa(0x1e4)][_0x1141fa(0x23d)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this[_0x1141fa(0x263)]=_0xa665c2,this[_0x1141fa(0x1f5)]=_0x391052,this[_0x1141fa(0x251)]=_0x56364f,this[_0x1141fa(0x224)]=_0x58779e,this[_0x1141fa(0x22e)]=_0x90e7d2);}get[_0x466b10(0x236)](){const _0x5853e1=_0x466b10;return this[_0x5853e1(0x1e4)][_0x5853e1(0x247)]();}['dispose'](){const _0x1698e1=_0x466b10;var _0x148295;(_0x148295=this[_0x1698e1(0x1d4)])==null||_0x148295[_0x1698e1(0x1f6)](),this[_0x1698e1(0x1e4)][_0x1698e1(0x1dd)](_0x1698e1(0x1fa)),this[_0x1698e1(0x1e4)][_0x1698e1(0x258)]();}[_0x466b10(0x21d)](){const _0x28440c=_0x466b10;return this[_0x28440c(0x236)];}[_0x466b10(0x249)](){const _0x3c242e=_0x466b10;this['_init']||(this[_0x3c242e(0x255)]=!0x0,this[_0x3c242e(0x1f5)]['sessionStatus$']['pipe'](_0x2b8aab(this[_0x3c242e(0x212)]))[_0x3c242e(0x1ed)](_0x4d7096=>{const _0x4393dd=_0x3c242e;switch(_0x4d7096){case _0x2c2d1f[_0x4393dd(0x1f7)]:this[_0x4393dd(0x210)]();break;case _0x2c2d1f['ONLINE']:this['_handleOnline']();break;}}),this[_0x3c242e(0x1f5)][_0x3c242e(0x23f)]['pipe'](_0x2b8aab(this['dispose$']))[_0x3c242e(0x1ed)](_0x1a3914=>{const _0x5541c8=_0x3c242e,{eventID:_0x33595d}=_0x1a3914;switch(_0x33595d){case _0x4f8dac[_0x5541c8(0x208)]:this['_handleNewHost'](_0x1a3914);break;case _0x4f8dac[_0x5541c8(0x248)]:this[_0x5541c8(0x223)](_0x1a3914);break;case _0x4f8dac[_0x5541c8(0x1d7)]:this[_0x5541c8(0x246)]();break;case _0x4f8dac[_0x5541c8(0x253)]:this['_handleNewChangeSets'](_0x1a3914);break;}}));}[_0x466b10(0x206)](){const _0x1d3e1b=_0x466b10;this[_0x1d3e1b(0x1f5)][_0x1d3e1b(0x200)]({'eventID':_0x4f8dac[_0x1d3e1b(0x24a)],'data':{'unitID':this[_0x1d3e1b(0x263)],'userID':this[_0x1d3e1b(0x1f5)]['getMemberID']()}},this['_unitID']);}[_0x466b10(0x256)](){const _0x14b4e3=_0x466b10;this[_0x14b4e3(0x236)]==='presenting'&&(this[_0x14b4e3(0x1e4)][_0x14b4e3(0x1dd)](_0x14b4e3(0x1fa)),this[_0x14b4e3(0x1f5)][_0x14b4e3(0x200)]({'eventID':_0x4f8dac['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x14b4e3(0x263)]}},this['_unitID']));}[_0x466b10(0x1e6)](){const _0x3deff0=_0x466b10;this['_status']===_0x3deff0(0x221)&&(this[_0x3deff0(0x1e4)][_0x3deff0(0x1dd)]('following'),this[_0x3deff0(0x25f)]());}[_0x466b10(0x228)](){const _0x1759eb=_0x466b10;this[_0x1759eb(0x236)]===_0x1759eb(0x26b)&&this[_0x1759eb(0x1d3)]();}[_0x466b10(0x201)](_0x3122bb){const _0x1ecd4d=_0x466b10,{presenter:_0x2f0213}=_0x3122bb[_0x1ecd4d(0x276)],_0x27ea90=this[_0x1ecd4d(0x1f5)]['getMemberID']();this['_presenter']=_0x2f0213,_0x2f0213===_0x27ea90?(this['_stopFollowing'](),this[_0x1ecd4d(0x1db)]()):this[_0x1ecd4d(0x236)]!=='not-following'&&(this[_0x1ecd4d(0x226)](),this[_0x1ecd4d(0x25f)]());}[_0x466b10(0x227)](){const _0x199c73=_0x466b10,_0x3ce07e={'eventID':_0x4f8dac[_0x199c73(0x1e3)]};this['_collabSession'][_0x199c73(0x200)](_0x3ce07e,this[_0x199c73(0x263)]);}['_handleTerminate'](){const _0x546a9d=_0x466b10;this[_0x546a9d(0x275)]=null,this[_0x546a9d(0x236)]!==_0x546a9d(0x26d)&&this[_0x546a9d(0x274)]();}[_0x466b10(0x216)](_0xe39262){const _0x3db4de=_0x466b10;if(this[_0x3db4de(0x236)]===_0x3db4de(0x26b)&&this[_0x3db4de(0x275)]===_0xe39262[_0x3db4de(0x276)][_0x3db4de(0x25a)]){const _0x3dc36c=_0x1aca7c(_0xe39262[_0x3db4de(0x276)])[_0x3db4de(0x266)][_0x3db4de(0x207)]()['find'](_0x57ae51=>_0x57ae51['id']===_0x27298e['id']);if(_0x3dc36c){const _0x154067=_0x3dc36c[_0x3db4de(0x24f)][_0x3db4de(0x25d)],_0x262a15=_0x3dc36c[_0x3db4de(0x24f)][_0x3db4de(0x229)]['id'];setTimeout(()=>{const _0x8cdea2=_0x3db4de;this[_0x8cdea2(0x22e)][_0x8cdea2(0x20c)](_0x1cd2eb['id'],{'unitId':_0x154067,'subUnitId':_0x262a15},{'fromCollab':!0x0});});}}}[_0x466b10(0x1db)](){const _0x36c0f2=_0x466b10;this['_status$'][_0x36c0f2(0x1dd)](_0x36c0f2(0x26d));const _0x353dee=new Map(),_0x5321c8=this[_0x36c0f2(0x1d4)]=new _0x5c3901();_0x5321c8[_0x36c0f2(0x1f9)](_0x2eefa6(()=>{const _0x20851a=_0x36c0f2;_0x353dee[_0x20851a(0x21f)](_0x3fa4c0=>_0x3fa4c0['complete']()),_0x353dee['clear']();})),_0x5321c8[_0x36c0f2(0x1f9)](this[_0x36c0f2(0x22e)][_0x36c0f2(0x1de)](_0x147d71=>{const _0x59fc17=_0x36c0f2;var _0xf4dac5;if(_0x147d71[_0x59fc17(0x26a)]!==_0x5c0f1e[_0x59fc17(0x23b)]||!this[_0x59fc17(0x224)][_0x59fc17(0x20b)](_0x147d71['id']))return;const {id:_0x3503f5}=_0x147d71;let _0x292949;_0x353dee[_0x59fc17(0x1e5)](_0x3503f5)?_0x292949=_0x353dee[_0x59fc17(0x23a)](_0x3503f5):(_0x292949=new _0x5885a2(),_0x353dee[_0x59fc17(0x211)](_0x3503f5,_0x292949),_0x292949[_0x59fc17(0x21c)](_0x3853a5((_0xf4dac5=this[_0x59fc17(0x251)][_0x59fc17(0x245)](Ce))!=null?_0xf4dac5:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59fc17(0x1ed)](_0xda6466=>{const _0x303ecc=_0x59fc17;this[_0x303ecc(0x1f5)]['send']({'eventID':_0x4f8dac['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0xda6466['id']]:{'id':_0xda6466['id'],'params':JSON['stringify'](_0xda6466[_0x303ecc(0x24f)])}}}},this[_0x303ecc(0x263)]);})),_0x292949['next'](_0x147d71);})),this['_liveShareService'][_0x36c0f2(0x271)](this['_unitID'])[_0x36c0f2(0x21f)](_0x5400a4=>this['_collabSession'][_0x36c0f2(0x200)]({'eventID':_0x4f8dac[_0x36c0f2(0x248)],'data':{'unitID':this[_0x36c0f2(0x263)],'operations':{[_0x5400a4['id']]:{'id':_0x5400a4['id'],'params':JSON['stringify'](_0x5400a4[_0x36c0f2(0x24f)])}}}},this[_0x36c0f2(0x263)]));}['_stopPresenting'](){const _0x156e4a=_0x466b10;var _0x1fb473;this[_0x156e4a(0x1e4)][_0x156e4a(0x1dd)](_0x156e4a(0x1fa)),(_0x1fb473=this[_0x156e4a(0x1d4)])==null||_0x1fb473[_0x156e4a(0x1f6)](),this[_0x156e4a(0x1d4)]=null;}[_0x466b10(0x25f)](){const _0xb65f8a=_0x466b10;var _0x3f7e3d;(_0x3f7e3d=this[_0xb65f8a(0x1d4)])==null||_0x3f7e3d[_0xb65f8a(0x1f6)](),this[_0xb65f8a(0x1e4)][_0xb65f8a(0x1dd)](_0xb65f8a(0x26b));}['_beIdle'](){const _0xbd18fb=_0x466b10;var _0x52a3d5;this[_0xbd18fb(0x1e4)][_0xbd18fb(0x1dd)]('idle'),(_0x52a3d5=this[_0xbd18fb(0x1d4)])==null||_0x52a3d5['dispose'](),this[_0xbd18fb(0x1d4)]=null;}['_stopFollowing'](){const _0x20f90b=_0x466b10;var _0x1b118d;this[_0x20f90b(0x1e4)][_0x20f90b(0x1dd)]('not-following'),(_0x1b118d=this[_0x20f90b(0x1d4)])==null||_0x1b118d[_0x20f90b(0x1f6)]();}[_0x466b10(0x223)](_0x1457a9){const _0x6a1fde=_0x466b10;if([_0x6a1fde(0x26d),_0x6a1fde(0x221),_0x6a1fde(0x1f8)]['includes'](this[_0x6a1fde(0x236)])||!_0x1457a9['data'][_0x6a1fde(0x222)]||_0x1457a9[_0x6a1fde(0x276)][_0x6a1fde(0x222)]===this[_0x6a1fde(0x1f5)][_0x6a1fde(0x238)]())return;this[_0x6a1fde(0x236)]==='idle'&&this['_startFollowing']();const _0x490f4e=_0x1457a9[_0x6a1fde(0x276)]['operations'];Object[_0x6a1fde(0x1dc)](_0x490f4e)[_0x6a1fde(0x21f)](_0x51ea88=>{const _0x36017c=_0x6a1fde;this[_0x36017c(0x22e)][_0x36017c(0x20c)](_0x51ea88['id'],_0x51ea88[_0x36017c(0x24f)]?JSON[_0x36017c(0x22b)](_0x51ea88[_0x36017c(0x24f)]):null,{'fromCollab':!0x0});});}[_0x466b10(0x210)](){const _0x99c559=_0x466b10;var _0x273f2d;this[_0x99c559(0x1e4)][_0x99c559(0x1dd)](_0x99c559(0x1f8)),(_0x273f2d=this[_0x99c559(0x1d4)])==null||_0x273f2d['dispose']();}[_0x466b10(0x20a)](){const _0x1b8c42=_0x466b10;this['_status$'][_0x1b8c42(0x1dd)](_0x1b8c42(0x1fa)),this['_fetchOperations']();}};N=Y([_(0x2,_0x534aaa),_(0x3,_0xb810a1(L)),_(0x4,_0x462048)],N);function Le(){const _0x3f93f9=_0x466b10,_0x10611e=_0x57b7f1(S),_0x1816dc=_0x57b7f1(_0x2136d5),_0x276c7a=_0x2f47a8(()=>_0x1816dc[_0x3f93f9(0x268)](_0x5da7e1[_0x3f93f9(0x244)]),void 0x0,!0x1,[]),[_0x156f8b,_0x3e5743]=_0x34edd8(null),[_0x4b5522,_0x5283c2]=_0x34edd8(c[_0x3f93f9(0x26f)]),_0x223344=_0x42cbc5(null);return _0x2e4dde(()=>(_0x276c7a&&_0x10611e['getLiveShareCoordinator'](_0x276c7a[_0x3f93f9(0x23c)]())['then'](_0xb3fff9=>{const _0x2a6217=_0x3f93f9;_0x3e5743(_0xb3fff9),_0x223344[_0x2a6217(0x260)]=_0xb3fff9[_0x2a6217(0x250)]['subscribe'](_0x2f145d=>{_0x5283c2(_0x2f145d);});}),()=>{const _0x4d2de4=_0x3f93f9;var _0x3e5943;(_0x3e5943=_0x223344[_0x4d2de4(0x260)])==null||_0x3e5943['unsubscribe'](),_0x223344[_0x4d2de4(0x260)]=null;}),[_0x276c7a,_0x10611e]),_0x156f8b?_0x284072(_0x4d67da,{'align':_0x3f93f9(0x21b),'disabled':_0x4b5522===c['OFFLINE'],'className':_0x3f93f9(0x1ea),'overlay':_0x284072(Re,{'status':_0x4b5522,'coordinator':_0x156f8b}),'children':_0x284072(_0x3f93f9(0x1ef),{'className':_0x3b0bb0(_0x3f93f9(0x1f2),{'univer-cursor-not-allowed':_0x4b5522===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4b5522!==c[_0x3f93f9(0x1f7)]}),'type':_0x3f93f9(0x1ef),'children':_0x284072(W,{'className':_0x3f93f9(0x239)})})}):null;}function Re(_0x3a0ee2){const _0x26f4be=_0x466b10,{status:_0x41654e,coordinator:_0x3bf71f}=_0x3a0ee2;switch(_0x41654e){case c[_0x26f4be(0x26f)]:return _0x284072($e,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x1e0)]:return _0x284072(xe,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x24b)]:return _0x284072(Pe,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x1f7)]:return _0x284072(Te,{});case c[_0x26f4be(0x241)]:return _0x284072(Ae,{'coordinator':_0x3bf71f});default:return null;}}function $e(_0x3665d1){const _0x92b163=_0x466b10,{coordinator:_0x2ad800}=_0x3665d1;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x92b163(0x204),{'className':_0x92b163(0x1eb),'children':_0x92b163(0x1fb)}),_0x284072(_0x55525b,{'onClick':()=>_0x2ad800['tryStartPresenting'](),'children':_0x92b163(0x1df)})]});}function xe(_0x7fa473){const _0x20cb4c=_0x466b10,{coordinator:_0x4c3d9e}=_0x7fa473;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x20cb4c(0x204),{'className':_0x20cb4c(0x1eb),'children':_0x20cb4c(0x217)}),_0x284072(_0x55525b,{'onClick':()=>_0x4c3d9e[_0x20cb4c(0x228)](),'children':_0x20cb4c(0x21a)})]});}function Pe(_0x5839f4){const _0x5ce9d5=_0x466b10,{coordinator:_0x1e8ea5}=_0x5839f4;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x5ce9d5(0x204),{'className':_0x5ce9d5(0x1eb),'children':_0x5ce9d5(0x272)}),_0x284072(_0x55525b,{'variant':_0x5ce9d5(0x1fe),'onClick':()=>_0x1e8ea5[_0x5ce9d5(0x1e6)](),'children':'Start\x20following'})]});}function Ae(_0x2a2a29){const _0x20e38d=_0x466b10,{coordinator:_0x2f847f}=_0x2a2a29;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x20e38d(0x204),{'className':_0x20e38d(0x1eb),'children':_0x20e38d(0x259)}),_0x284072(_0x55525b,{'variant':_0x20e38d(0x1e7),'onClick':()=>_0x2f847f[_0x20e38d(0x256)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x404097=_0x466b10;return _0x284072(_0x3f7b64,{'children':_0x404097(0x243)});}var Fe=Object[_0x466b10(0x24d)],He=(_0x3af4a8,_0x54c977,_0x45f71f,_0x18468e)=>{const _0x59dd6d=_0x466b10;for(var _0x482524=_0x18468e>0x1?void 0x0:_0x18468e?Fe(_0x54c977,_0x45f71f):_0x54c977,_0x43c9fc=_0x3af4a8[_0x59dd6d(0x225)]-0x1,_0x502c84;_0x43c9fc>=0x0;_0x43c9fc--)(_0x502c84=_0x3af4a8[_0x43c9fc])&&(_0x482524=_0x502c84(_0x482524)||_0x482524);return _0x482524;},A=(_0x35aba6,_0xf7c588)=>(_0x35d55c,_0x2aa1df)=>_0xf7c588(_0x35d55c,_0x2aa1df,_0x35aba6);let m=class extends _0x420bef{constructor(_0x404c5e,_0x1dc60f){const _0x212348=_0x466b10;super(),this[_0x212348(0x231)]=_0x404c5e,this['_uiPartsService']=_0x1dc60f,this[_0x212348(0x1e1)]();}[_0x466b10(0x1e1)](){const _0x15d5d9=_0x466b10;this[_0x15d5d9(0x237)](this[_0x15d5d9(0x220)]['registerComponent'](_0x325241[_0x15d5d9(0x1f0)],()=>_0x5e2acd(Le,this[_0x15d5d9(0x231)])));}};m=He([A(0x0,_0xb810a1(_0x42925d)),A(0x1,_0x13733b)],m);const ye=_0x466b10(0x262),T={};var Ue=Object[_0x466b10(0x24d)],Ve=(_0x46324b,_0x6736d6,_0x582f21,_0x3e0ae3)=>{const _0x24f45b=_0x466b10;for(var _0x35e3c2=_0x3e0ae3>0x1?void 0x0:_0x3e0ae3?Ue(_0x6736d6,_0x582f21):_0x6736d6,_0x2e3ba0=_0x46324b[_0x24f45b(0x225)]-0x1,_0xf878c0;_0x2e3ba0>=0x0;_0x2e3ba0--)(_0xf878c0=_0x46324b[_0x2e3ba0])&&(_0x35e3c2=_0xf878c0(_0x35e3c2)||_0x35e3c2);return _0x35e3c2;},je=(_0x5d8027,_0x4b18db)=>(_0x1c10e9,_0x8d8840)=>_0x4b18db(_0x1c10e9,_0x8d8840,_0x5d8027);let I=class extends _0x420bef{constructor(_0x1331c2){const _0x199c97=_0x466b10;super(),this[_0x199c97(0x224)]=_0x1331c2,this[_0x199c97(0x255)]();}[_0x466b10(0x255)](){[_0x54dcf4['id'],_0x59b67c['id'],_0x1cd2eb['id']]['forEach'](_0x208667=>{const _0xbbf640=_0x2fc8;this[_0xbbf640(0x237)](this['_liveShareService'][_0xbbf640(0x1e2)](_0x208667));});}};I=Ve([je(0x0,_0xb810a1(L))],I);var Me=Object[_0x466b10(0x264)],ke=Object[_0x466b10(0x24d)],Ge=(_0x2721e2,_0x3f4edc,_0x421d52)=>_0x3f4edc in _0x2721e2?Me(_0x2721e2,_0x3f4edc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x421d52}):_0x2721e2[_0x3f4edc]=_0x421d52,We=(_0x4bc93a,_0x3dba69,_0x577d56,_0x4a8b14)=>{const _0x462c7c=_0x466b10;for(var _0x3a2089=_0x4a8b14>0x1?void 0x0:_0x4a8b14?ke(_0x3dba69,_0x577d56):_0x3dba69,_0x293090=_0x4bc93a[_0x462c7c(0x225)]-0x1,_0x577587;_0x293090>=0x0;_0x293090--)(_0x577587=_0x4bc93a[_0x293090])&&(_0x3a2089=_0x577587(_0x3a2089)||_0x3a2089);return _0x3a2089;},F=(_0x96b8f6,_0x27683f)=>(_0x30d0bc,_0x3f9793)=>_0x27683f(_0x30d0bc,_0x3f9793,_0x96b8f6),B=(_0x3c5f67,_0x36697a,_0x629966)=>Ge(_0x3c5f67,typeof _0x36697a!=_0x466b10(0x1d9)?_0x36697a+'':_0x36697a,_0x629966);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x1ab38a{constructor(_0x595ff1=T,_0xe2e66f,_0x27027b){const _0x1b79f1=_0x466b10;super(),this['_config']=_0x595ff1,this[_0x1b79f1(0x231)]=_0xe2e66f,this['_configService']=_0x27027b;const {..._0x1ca6ef}=_0x153f93({},T,this[_0x1b79f1(0x1f4)]);this[_0x1b79f1(0x251)][_0x1b79f1(0x26e)](ye,_0x1ca6ef);}[_0x466b10(0x1fc)](){const _0x10f164=_0x466b10;_0x40c418(this[_0x10f164(0x231)],_0x26a6d8([[L],[S],[I],[m]],this[_0x10f164(0x1f4)][_0x10f164(0x1ec)])),_0x321cc3(this[_0x10f164(0x231)],[[I]]);}[_0x466b10(0x230)](){const _0x46d3c8=_0x466b10;_0x321cc3(this[_0x46d3c8(0x231)],[[m]]);}};B(b,_0x466b10(0x26a),_0x5da7e1[_0x466b10(0x24e)]),B(b,_0x466b10(0x235),Ye),b=We([_0x426f35(_0x27fd59),F(0x1,_0xb810a1(_0x42925d)),F(0x2,_0x534aaa)],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 _0x120a2b=_0x26b9;(function(_0x53f5f9,_0x3bafdc){const _0x2abc08=_0x26b9,_0x2ca953=_0x53f5f9();while(!![]){try{const _0xcb96f3=-parseInt(_0x2abc08(0x100))/0x1*(parseInt(_0x2abc08(0x10c))/0x2)+-parseInt(_0x2abc08(0xaa))/0x3+parseInt(_0x2abc08(0xb8))/0x4*(-parseInt(_0x2abc08(0xd8))/0x5)+-parseInt(_0x2abc08(0xba))/0x6+-parseInt(_0x2abc08(0x7a))/0x7+-parseInt(_0x2abc08(0x94))/0x8*(parseInt(_0x2abc08(0xc1))/0x9)+parseInt(_0x2abc08(0x6b))/0xa;if(_0xcb96f3===_0x3bafdc)break;else _0x2ca953['push'](_0x2ca953['shift']());}catch(_0x5bea76){_0x2ca953['push'](_0x2ca953['shift']());}}}(_0x33a5,0xe3c20));var J=Object['defineProperty'],K=(_0x5aec59,_0x13ca00,_0x4b0ae4)=>_0x13ca00 in _0x5aec59?J(_0x5aec59,_0x13ca00,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b0ae4}):_0x5aec59[_0x13ca00]=_0x4b0ae4,u=(_0x881185,_0x3b3059,_0x539026)=>K(_0x881185,typeof _0x3b3059!=_0x120a2b(0x101)?_0x3b3059+'':_0x3b3059,_0x539026);import{Disposable as _0x10e724,toDisposable as _0xecf4ac,IUniverInstanceService as _0x4f9501,Inject as _0x664ed,Injector as _0x401650,IConfigService as _0x2ed083,ICommandService as _0x135622,RxDisposable as _0x5c1fea,UniverInstanceType as _0x3d4707,DisposableCollection as _0x19993a,CommandType as _0x3476fb,DependentOn as _0x4f1006,Plugin as _0x59667f,merge as _0xfda1f7,registerDependencies as _0x565181,mergeOverrideWithDependencies as _0x33514b,touchDependencies as _0x13d42a}from'@univerjs/core';function _0x26b9(_0x593ca5,_0x2aaf2b){const _0x33a512=_0x33a5();return _0x26b9=function(_0x26b935,_0x346bc3){_0x26b935=_0x26b935-0x6a;let _0x36a114=_0x33a512[_0x26b935];return _0x36a114;},_0x26b9(_0x593ca5,_0x2aaf2b);}import{useDependency as _0x31a3bf,useObservable as _0x1747f3,IUIPartsService as _0x369c81,BuiltInUIPart as _0x10896f,connectInjector as _0x176107}from'@univerjs/ui';import{jsx as _0x2afce9,jsxs as _0x3b072f,Fragment as _0xe9ebfb}from'react/jsx-runtime';import{Dropdown as _0xe72b8,clsx as _0x26a9c1,Button as _0x2ce32f}from'@univerjs/design';import{useRef as _0x2d670c,createElement as _0x31ddf7,forwardRef as _0x4ebddd,useState as _0x1c978f,useEffect as _0x14c993}from'react';import{CollaborationEvent as _0x433ed7,parseProtocolChangeset as _0x289710}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x507a8b,SessionStatus as _0x2fb0b9,UniverCollaborationClientPlugin as _0x1e5f88}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x528955,SetWorksheetActiveOperation as _0x38317b}from'@univerjs/sheets';import{BehaviorSubject as _0x3ecabd,Subject as _0x5c5fdd}from'rxjs';import{takeUntil as _0xb8a7e7,throttleTime as _0x58391f}from'rxjs/operators';import{SetZoomRatioOperation as _0xefa49d,SetScrollOperation as _0x4dd920}from'@univerjs/sheets-ui';function k({ref:_0x531bb1,..._0x37f1e4}){const _0x328225=_0x120a2b,{icon:_0x791cb1,id:_0x56471c,className:_0x28298a,extend:_0x496f10,..._0x3e2e0e}=_0x37f1e4,_0x54923c=(_0x328225(0x9a)+_0x56471c+'\x20'+(_0x28298a||''))[_0x328225(0xe6)](),_0xfd9e0e=_0x2d670c('_'+Oe());return G(_0x791cb1,''+_0x56471c,{'defIds':_0x791cb1['defIds'],'idSuffix':_0xfd9e0e[_0x328225(0xc3)]},{'ref':_0x531bb1,'className':_0x54923c,..._0x3e2e0e},_0x496f10);}function G(_0x268017,_0x3c0cad,_0x4918b6,_0x5d2c6e,_0x5b4827){const _0x5ddc65=_0x120a2b;return _0x31ddf7(_0x268017[_0x5ddc65(0x8f)],{'key':_0x3c0cad,...be(_0x268017,_0x4918b6,_0x5b4827),..._0x5d2c6e},(Ee(_0x268017,_0x4918b6)[_0x5ddc65(0xf2)]||[])[_0x5ddc65(0x83)]((_0x56c7ef,_0x1031c3)=>G(_0x56c7ef,_0x3c0cad+'-'+_0x268017[_0x5ddc65(0x8f)]+'-'+_0x1031c3,_0x4918b6,void 0x0,_0x5b4827)));}function be(_0x4c63d5,_0x25f124,_0x26f969){const _0x556b5a=_0x120a2b,_0x5d28ef={..._0x4c63d5[_0x556b5a(0x90)]};_0x26f969!=null&&_0x26f969[_0x556b5a(0x10b)]&&_0x5d28ef[_0x556b5a(0xee)]==='colorChannel1'&&(_0x5d28ef[_0x556b5a(0xee)]=_0x26f969['colorChannel1']),_0x4c63d5[_0x556b5a(0x8f)]===_0x556b5a(0x9d)&&_0x5d28ef['id']&&(_0x5d28ef['id']=_0x5d28ef['id']+_0x25f124['idSuffix']),Object[_0x556b5a(0xf9)](_0x5d28ef)[_0x556b5a(0x79)](([_0x41037a,_0x377b0c])=>{const _0x38dd7f=_0x556b5a;_0x41037a===_0x38dd7f(0x9d)&&typeof _0x377b0c==_0x38dd7f(0x10a)&&(_0x5d28ef[_0x41037a]=_0x377b0c[_0x38dd7f(0x107)](/url\(#(.*)\)/,_0x38dd7f(0xda)+_0x25f124[_0x38dd7f(0xbb)]+')'));});const {defIds:_0x4eccee}=_0x25f124;return!_0x4eccee||_0x4eccee[_0x556b5a(0xa6)]===0x0||(_0x4c63d5[_0x556b5a(0x8f)]==='use'&&_0x5d28ef[_0x556b5a(0xca)]&&(_0x5d28ef[_0x556b5a(0xca)]=_0x5d28ef[_0x556b5a(0xca)]+_0x25f124['idSuffix']),Object[_0x556b5a(0xf9)](_0x5d28ef)[_0x556b5a(0x79)](([_0x3eaad4,_0x4c248f])=>{const _0x4cf940=_0x556b5a;typeof _0x4c248f==_0x4cf940(0x10a)&&(_0x5d28ef[_0x3eaad4]=_0x4c248f[_0x4cf940(0x107)](/url\(#(.*)\)/,_0x4cf940(0xda)+_0x25f124[_0x4cf940(0xbb)]+')'));})),_0x5d28ef;}function Ee(_0x31b646,_0x18c57e){const _0x40c462=_0x120a2b;var _0x3340f1;const {defIds:_0x582a67}=_0x18c57e;return!_0x582a67||_0x582a67['length']===0x0?_0x31b646:_0x31b646[_0x40c462(0x8f)]===_0x40c462(0xd9)&&((_0x3340f1=_0x31b646[_0x40c462(0xf2)])!=null&&_0x3340f1[_0x40c462(0xa6)])?{..._0x31b646,'children':_0x31b646[_0x40c462(0xf2)][_0x40c462(0x83)](_0x4f92e9=>typeof _0x4f92e9[_0x40c462(0x90)]['id']=='string'&&_0x582a67&&_0x582a67[_0x40c462(0xcb)](_0x4f92e9[_0x40c462(0x90)]['id'])?{..._0x4f92e9,'attrs':{..._0x4f92e9[_0x40c462(0x90)],'id':_0x4f92e9[_0x40c462(0x90)]['id']+_0x18c57e['idSuffix']}}:_0x4f92e9)}:_0x31b646;}function Oe(){const _0x3db730=_0x120a2b;return Math[_0x3db730(0xb6)]()['toString'](0x24)[_0x3db730(0xb5)](0x2,0x8);}k[_0x120a2b(0x77)]=_0x120a2b(0xac);const we={'tag':_0x120a2b(0xd3),'attrs':{'xmlns':_0x120a2b(0xf5),'fill':_0x120a2b(0xde),'viewBox':_0x120a2b(0xfe),'width':_0x120a2b(0xc9),'height':_0x120a2b(0xc9)},'children':[{'tag':_0x120a2b(0x106),'attrs':{'fill':'currentColor','d':_0x120a2b(0xa7)}},{'tag':_0x120a2b(0x106),'attrs':{'fill':_0x120a2b(0xc0),'d':_0x120a2b(0x6d),'fillRule':_0x120a2b(0x97),'clipRule':_0x120a2b(0x97)}}]},W=_0x4ebddd(function(_0x5c0f69,_0x3c1549){const _0x2eb2e5=_0x120a2b;return _0x31ddf7(k,Object[_0x2eb2e5(0x8e)]({},_0x5c0f69,{'id':_0x2eb2e5(0x96),'ref':_0x3c1549,'icon':we}));});W[_0x120a2b(0x77)]=_0x120a2b(0xf7);class L extends _0x10e724{constructor(){const _0x32ce2d=_0x120a2b;super(...arguments),u(this,_0x32ce2d(0xe1),new Set()),u(this,_0x32ce2d(0xec),new Set());}[_0x120a2b(0x111)](_0x2a9046){const _0x3623b2=_0x120a2b;return this[_0x3623b2(0xe1)][_0x3623b2(0x103)](_0x2a9046),_0xecf4ac(()=>this[_0x3623b2(0xe1)][_0x3623b2(0xa4)](_0x2a9046));}[_0x120a2b(0xa8)](_0x5a48f9){const _0x331f3c=_0x120a2b;return this[_0x331f3c(0xec)][_0x331f3c(0x103)](_0x5a48f9),_0xecf4ac(()=>this[_0x331f3c(0xec)][_0x331f3c(0xa4)](_0x5a48f9));}[_0x120a2b(0xf4)](_0x3584e9){const _0x14e6ac=_0x120a2b;return this[_0x14e6ac(0xe1)][_0x14e6ac(0xe5)](_0x3584e9);}['getInitialStates'](_0x4f1bc3){const _0x559b77=_0x120a2b;return Array['from'](this['_reporters'])[_0x559b77(0x83)](_0x9f0075=>_0x9f0075(_0x4f1bc3));}}var Ne=Object[_0x120a2b(0x7e)],Y=(_0x4444f4,_0x4544e7,_0x37c29d,_0x2a448f)=>{const _0x117db8=_0x120a2b;for(var _0x263a5b=_0x2a448f>0x1?void 0x0:_0x2a448f?Ne(_0x4544e7,_0x37c29d):_0x4544e7,_0x4cf82e=_0x4444f4[_0x117db8(0xa6)]-0x1,_0x5a15d2;_0x4cf82e>=0x0;_0x4cf82e--)(_0x5a15d2=_0x4444f4[_0x4cf82e])&&(_0x263a5b=_0x5a15d2(_0x263a5b)||_0x263a5b);return _0x263a5b;},_=(_0x44c7c7,_0x3ae792)=>(_0x1255c9,_0x95eb53)=>_0x3ae792(_0x1255c9,_0x95eb53,_0x44c7c7);let S=class extends _0x5c1fea{constructor(_0x49501a,_0x573dba,_0x3febec){const _0x3cda10=_0x120a2b;super(),u(this,'_entities',new Map()),(this[_0x3cda10(0xbd)]=_0x49501a,this[_0x3cda10(0xfd)]=_0x573dba,this[_0x3cda10(0xab)]=_0x3febec,this['_init']());}async['getLiveShareCoordinator'](_0x17f588){const _0x4b35ff=_0x120a2b;return this[_0x4b35ff(0xc7)][_0x4b35ff(0xe5)](_0x17f588)||await this[_0x4b35ff(0xa2)](_0x17f588),this[_0x4b35ff(0xc7)]['get'](_0x17f588);}[_0x120a2b(0x93)](_0x11211a){const _0x4bd6ff=_0x120a2b;var _0x509f44;return(_0x509f44=this['_entities'][_0x4bd6ff(0xfa)](_0x11211a))!=null?_0x509f44:null;}[_0x120a2b(0x84)](){const _0x457397=_0x120a2b;this[_0x457397(0xbd)][_0x457397(0xeb)](_0x3d4707[_0x457397(0xd0)])[_0x457397(0xcd)](_0xb8a7e7(this[_0x457397(0x88)]))[_0x457397(0x6e)](async _0x2c725c=>{const _0x4d0ee7=_0x457397,_0x3efd52=_0x2c725c[_0x4d0ee7(0x99)]();this[_0x4d0ee7(0xc7)]['has'](_0x3efd52)||this['_startLiveShareCoordinator'](_0x3efd52);}),this[_0x457397(0xbd)][_0x457397(0x9b)](_0x3d4707[_0x457397(0xd0)])[_0x457397(0xcd)](_0xb8a7e7(this['dispose$']))[_0x457397(0x6e)](_0xef4b1f=>{const _0x46daf=_0x457397,_0x1d0fe8=_0xef4b1f[_0x46daf(0x99)](),_0x3e173a=this[_0x46daf(0xc7)]['get'](_0x1d0fe8);_0x3e173a==null||_0x3e173a['dispose']();});}async[_0x120a2b(0xa2)](_0xdbc3d7){const _0x36237b=_0x120a2b,_0x4f8ff0=await this['_collabSessionService'][_0x36237b(0xbf)](_0xdbc3d7),_0x1f85ca=this[_0x36237b(0xfd)][_0x36237b(0x92)](N,_0xdbc3d7,_0x4f8ff0);return _0x1f85ca[_0x36237b(0xf1)](),this[_0x36237b(0xc7)][_0x36237b(0xbe)](_0xdbc3d7,_0x1f85ca),_0x1f85ca;}};S=Y([_(0x0,_0x4f9501),_(0x1,_0x664ed(_0x401650)),_(0x2,_0x664ed(_0x507a8b))],S);var c=(_0x272c8e=>(_0x272c8e[_0x120a2b(0x98)]=_0x120a2b(0xbc),_0x272c8e[_0x120a2b(0xe9)]=_0x120a2b(0x6c),_0x272c8e[_0x120a2b(0xdd)]=_0x120a2b(0xfc),_0x272c8e['NOT_FOLLOWING']=_0x120a2b(0xce),_0x272c8e[_0x120a2b(0xb1)]=_0x120a2b(0x10f),_0x272c8e))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x5c1fea{constructor(_0x47990c,_0x240b24,_0x37f971,_0xe39edd,_0x349276){const _0x545f70=_0x120a2b;super(),u(this,'_status$',new _0x3ecabd('idle')),u(this,'status$',this[_0x545f70(0xb0)][_0x545f70(0xa9)]()),u(this,_0x545f70(0x84),!0x1),u(this,'_commandDisposable',null),u(this,_0x545f70(0x73),null),(this[_0x545f70(0xd1)]=_0x47990c,this['_collabSession']=_0x240b24,this[_0x545f70(0x71)]=_0x37f971,this[_0x545f70(0xaf)]=_0xe39edd,this[_0x545f70(0xed)]=_0x349276);}get[_0x120a2b(0x80)](){const _0x5d93a6=_0x120a2b;return this[_0x5d93a6(0xb0)][_0x5d93a6(0x7f)]();}[_0x120a2b(0xf3)](){const _0x318e54=_0x120a2b;var _0x5b49f3;(_0x5b49f3=this[_0x318e54(0xc5)])==null||_0x5b49f3[_0x318e54(0xf3)](),this[_0x318e54(0xb0)][_0x318e54(0xdc)](_0x318e54(0x6c)),this[_0x318e54(0xb0)][_0x318e54(0x104)]();}[_0x120a2b(0xae)](){const _0x47c849=_0x120a2b;return this[_0x47c849(0x80)];}[_0x120a2b(0xf1)](){const _0x218bae=_0x120a2b;this[_0x218bae(0x84)]||(this[_0x218bae(0x84)]=!0x0,this[_0x218bae(0x82)][_0x218bae(0xfb)][_0x218bae(0xcd)](_0xb8a7e7(this[_0x218bae(0x88)]))['subscribe'](_0x2d672a=>{const _0x4ff1b8=_0x218bae;switch(_0x2d672a){case _0x2fb0b9[_0x4ff1b8(0x98)]:this['_handleOffline']();break;case _0x2fb0b9[_0x4ff1b8(0xf6)]:this[_0x4ff1b8(0x7c)]();break;}}),this[_0x218bae(0x82)]['event$']['pipe'](_0xb8a7e7(this[_0x218bae(0x88)]))['subscribe'](_0x1201b9=>{const _0x4bc30d=_0x218bae,{eventID:_0x1be1cc}=_0x1201b9;switch(_0x1be1cc){case _0x433ed7[_0x4bc30d(0x95)]:this[_0x4bc30d(0x9c)](_0x1201b9);break;case _0x433ed7[_0x4bc30d(0xd7)]:this[_0x4bc30d(0xdb)](_0x1201b9);break;case _0x433ed7[_0x4bc30d(0xe3)]:this[_0x4bc30d(0x85)]();break;case _0x433ed7[_0x4bc30d(0x72)]:this['_handleNewChangeSets'](_0x1201b9);break;}}));}[_0x120a2b(0xcc)](){const _0x56d836=_0x120a2b;this[_0x56d836(0x82)][_0x56d836(0xc2)]({'eventID':_0x433ed7[_0x56d836(0x70)],'data':{'unitID':this[_0x56d836(0xd1)],'userID':this['_collabSession'][_0x56d836(0x7d)]()}},this[_0x56d836(0xd1)]);}[_0x120a2b(0x110)](){const _0x531d35=_0x120a2b;this[_0x531d35(0x80)]===_0x531d35(0x10f)&&(this[_0x531d35(0xb0)][_0x531d35(0xdc)](_0x531d35(0x6c)),this[_0x531d35(0x82)]['send']({'eventID':_0x433ed7['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x120a2b(0xc6)](){const _0x1a29e2=_0x120a2b;this['_status']===_0x1a29e2(0xce)&&(this[_0x1a29e2(0xb0)][_0x1a29e2(0xdc)](_0x1a29e2(0xfc)),this[_0x1a29e2(0x75)]());}[_0x120a2b(0x108)](){const _0x23c3cd=_0x120a2b;this[_0x23c3cd(0x80)]===_0x23c3cd(0xfc)&&this['_stopFollowing']();}['_handleNewHost'](_0x562927){const _0x52edc2=_0x120a2b,{presenter:_0x5d017b}=_0x562927[_0x52edc2(0xcf)],_0x307e38=this[_0x52edc2(0x82)][_0x52edc2(0x7d)]();this[_0x52edc2(0x73)]=_0x5d017b,_0x5d017b===_0x307e38?(this[_0x52edc2(0xdf)](),this[_0x52edc2(0x105)]()):this[_0x52edc2(0x80)]!==_0x52edc2(0xce)&&(this[_0x52edc2(0x76)](),this[_0x52edc2(0x75)]());}[_0x120a2b(0xa0)](){const _0x4bcbc9=_0x120a2b,_0x3e186b={'eventID':_0x433ed7[_0x4bcbc9(0x87)]};this['_collabSession']['send'](_0x3e186b,this[_0x4bcbc9(0xd1)]);}[_0x120a2b(0x85)](){const _0x11c43e=_0x120a2b;this[_0x11c43e(0x73)]=null,this[_0x11c43e(0x80)]!==_0x11c43e(0x10f)&&this['_beIdle']();}[_0x120a2b(0xa3)](_0x2ead8e){const _0x530eea=_0x120a2b;if(this['_status']==='following'&&this[_0x530eea(0x73)]===_0x2ead8e[_0x530eea(0xcf)]['memberID']){const _0x496aeb=_0x289710(_0x2ead8e[_0x530eea(0xcf)])['mutations']['reverse']()[_0x530eea(0x10d)](_0x378144=>_0x378144['id']===_0x528955['id']);if(_0x496aeb){const _0x53e397=_0x496aeb['params']['unitId'],_0x2e67ba=_0x496aeb[_0x530eea(0xff)][_0x530eea(0xb2)]['id'];setTimeout(()=>{const _0x4ed03c=_0x530eea;this[_0x4ed03c(0xed)][_0x4ed03c(0x81)](_0x38317b['id'],{'unitId':_0x53e397,'subUnitId':_0x2e67ba},{'fromCollab':!0x0});});}}}[_0x120a2b(0x105)](){const _0x11aca7=_0x120a2b;this[_0x11aca7(0xb0)][_0x11aca7(0xdc)](_0x11aca7(0x10f));const _0x2a724e=new Map(),_0x3fb228=this[_0x11aca7(0xc5)]=new _0x19993a();_0x3fb228[_0x11aca7(0x103)](_0xecf4ac(()=>{const _0x4356ee=_0x11aca7;_0x2a724e[_0x4356ee(0x79)](_0x1a11b3=>_0x1a11b3[_0x4356ee(0x104)]()),_0x2a724e['clear']();})),_0x3fb228[_0x11aca7(0x103)](this['_commandService']['onCommandExecuted'](_0x3b7c5b=>{const _0xb070a=_0x11aca7;var _0x56eca9;if(_0x3b7c5b[_0xb070a(0x74)]!==_0x3476fb[_0xb070a(0x109)]||!this['_liveShareService']['shouldShareOperation'](_0x3b7c5b['id']))return;const {id:_0x4b5d25}=_0x3b7c5b;let _0x471d2d;_0x2a724e[_0xb070a(0xe5)](_0x4b5d25)?_0x471d2d=_0x2a724e[_0xb070a(0xfa)](_0x4b5d25):(_0x471d2d=new _0x5c5fdd(),_0x2a724e[_0xb070a(0xbe)](_0x4b5d25,_0x471d2d),_0x471d2d[_0xb070a(0xcd)](_0x58391f((_0x56eca9=this['_configService'][_0xb070a(0x91)](Ce))!=null?_0x56eca9:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1d3958=>{const _0x3aced7=_0xb070a;this[_0x3aced7(0x82)][_0x3aced7(0xc2)]({'eventID':_0x433ed7[_0x3aced7(0xd7)],'data':{'unitID':this['_unitID'],'operations':{[_0x1d3958['id']]:{'id':_0x1d3958['id'],'params':JSON[_0x3aced7(0x7b)](_0x1d3958[_0x3aced7(0xff)])}}}},this[_0x3aced7(0xd1)]);})),_0x471d2d[_0xb070a(0xdc)](_0x3b7c5b);})),this[_0x11aca7(0xaf)][_0x11aca7(0xd4)](this['_unitID'])[_0x11aca7(0x79)](_0x5da544=>this[_0x11aca7(0x82)][_0x11aca7(0xc2)]({'eventID':_0x433ed7[_0x11aca7(0xd7)],'data':{'unitID':this['_unitID'],'operations':{[_0x5da544['id']]:{'id':_0x5da544['id'],'params':JSON[_0x11aca7(0x7b)](_0x5da544[_0x11aca7(0xff)])}}}},this[_0x11aca7(0xd1)]));}[_0x120a2b(0x76)](){const _0x342452=_0x120a2b;var _0x27bd64;this['_status$'][_0x342452(0xdc)](_0x342452(0x6c)),(_0x27bd64=this['_commandDisposable'])==null||_0x27bd64[_0x342452(0xf3)](),this[_0x342452(0xc5)]=null;}[_0x120a2b(0x75)](){const _0x436a9e=_0x120a2b;var _0x5c4981;(_0x5c4981=this[_0x436a9e(0xc5)])==null||_0x5c4981[_0x436a9e(0xf3)](),this[_0x436a9e(0xb0)][_0x436a9e(0xdc)](_0x436a9e(0xfc));}[_0x120a2b(0xd6)](){const _0x41f5c1=_0x120a2b;var _0x968e67;this[_0x41f5c1(0xb0)][_0x41f5c1(0xdc)](_0x41f5c1(0x6c)),(_0x968e67=this[_0x41f5c1(0xc5)])==null||_0x968e67[_0x41f5c1(0xf3)](),this[_0x41f5c1(0xc5)]=null;}[_0x120a2b(0xdf)](){const _0x15f675=_0x120a2b;var _0x54cb18;this[_0x15f675(0xb0)]['next']('not-following'),(_0x54cb18=this['_commandDisposable'])==null||_0x54cb18[_0x15f675(0xf3)]();}[_0x120a2b(0xdb)](_0x18daef){const _0x27d8af=_0x120a2b;if([_0x27d8af(0x10f),_0x27d8af(0xce),'offline'][_0x27d8af(0xcb)](this['_status'])||!_0x18daef[_0x27d8af(0xcf)][_0x27d8af(0x8a)]||_0x18daef[_0x27d8af(0xcf)][_0x27d8af(0x8a)]===this[_0x27d8af(0x82)]['getMemberID']())return;this[_0x27d8af(0x80)]===_0x27d8af(0x6c)&&this['_startFollowing']();const _0x399f57=_0x18daef[_0x27d8af(0xcf)][_0x27d8af(0xe0)];Object[_0x27d8af(0xb4)](_0x399f57)['forEach'](_0x59e36c=>{const _0x48a273=_0x27d8af;this['_commandService'][_0x48a273(0x81)](_0x59e36c['id'],_0x59e36c['params']?JSON['parse'](_0x59e36c[_0x48a273(0xff)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4844ac=_0x120a2b;var _0x59e07e;this['_status$'][_0x4844ac(0xdc)]('offline'),(_0x59e07e=this[_0x4844ac(0xc5)])==null||_0x59e07e[_0x4844ac(0xf3)]();}['_handleOnline'](){const _0x1c60d5=_0x120a2b;this['_status$'][_0x1c60d5(0xdc)]('idle'),this[_0x1c60d5(0xa0)]();}};N=Y([_(0x2,_0x2ed083),_(0x3,_0x664ed(L)),_(0x4,_0x135622)],N);function Le(){const _0x463f39=_0x120a2b,_0x46a9e9=_0x31a3bf(S),_0x39a1d8=_0x31a3bf(_0x4f9501),_0x1b4d32=_0x1747f3(()=>_0x39a1d8[_0x463f39(0xb3)](_0x3d4707[_0x463f39(0xd0)]),void 0x0,!0x1,[]),[_0x19aaaa,_0x2885fb]=_0x1c978f(null),[_0x405f72,_0x44e2cb]=_0x1c978f(c[_0x463f39(0xe9)]),_0x45b225=_0x2d670c(null);return _0x14c993(()=>(_0x1b4d32&&_0x46a9e9[_0x463f39(0x6a)](_0x1b4d32[_0x463f39(0x99)]())[_0x463f39(0xa1)](_0x3c85d1=>{const _0x4eeaeb=_0x463f39;_0x2885fb(_0x3c85d1),_0x45b225['current']=_0x3c85d1[_0x4eeaeb(0x8d)][_0x4eeaeb(0x6e)](_0x40e140=>{_0x44e2cb(_0x40e140);});}),()=>{const _0x777e1e=_0x463f39;var _0x18c64d;(_0x18c64d=_0x45b225[_0x777e1e(0xc3)])==null||_0x18c64d['unsubscribe'](),_0x45b225[_0x777e1e(0xc3)]=null;}),[_0x1b4d32,_0x46a9e9]),_0x19aaaa?_0x2afce9(_0xe72b8,{'align':_0x463f39(0xc8),'disabled':_0x405f72===c[_0x463f39(0x98)],'className':_0x463f39(0xc4),'overlay':_0x2afce9(Re,{'status':_0x405f72,'coordinator':_0x19aaaa}),'children':_0x2afce9(_0x463f39(0xe2),{'className':_0x26a9c1(_0x463f39(0xa5),{'univer-cursor-not-allowed':_0x405f72===c[_0x463f39(0x98)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x405f72!==c[_0x463f39(0x98)]}),'type':_0x463f39(0xe2),'children':_0x2afce9(W,{'className':_0x463f39(0xd5)})})}):null;}function Re(_0xed9dca){const _0x158508=_0x120a2b,{status:_0x2a6a68,coordinator:_0x4c5fcb}=_0xed9dca;switch(_0x2a6a68){case c[_0x158508(0xe9)]:return _0x2afce9($e,{'coordinator':_0x4c5fcb});case c[_0x158508(0xdd)]:return _0x2afce9(xe,{'coordinator':_0x4c5fcb});case c[_0x158508(0x8b)]:return _0x2afce9(Pe,{'coordinator':_0x4c5fcb});case c[_0x158508(0x98)]:return _0x2afce9(Te,{});case c[_0x158508(0xb1)]:return _0x2afce9(Ae,{'coordinator':_0x4c5fcb});default:return null;}}function $e(_0x3acaff){const _0x560af8=_0x120a2b,{coordinator:_0x2308e4}=_0x3acaff;return _0x3b072f(_0xe9ebfb,{'children':[_0x2afce9(_0x560af8(0xef),{'className':_0x560af8(0xe8),'children':_0x560af8(0x102)}),_0x2afce9(_0x2ce32f,{'onClick':()=>_0x2308e4[_0x560af8(0xcc)](),'children':_0x560af8(0x89)})]});}function xe(_0x5bff8f){const _0x3bd514=_0x120a2b,{coordinator:_0x54bf65}=_0x5bff8f;return _0x3b072f(_0xe9ebfb,{'children':[_0x2afce9(_0x3bd514(0xef),{'className':_0x3bd514(0xe8),'children':_0x3bd514(0xb7)}),_0x2afce9(_0x2ce32f,{'onClick':()=>_0x54bf65[_0x3bd514(0x108)](),'children':'Stop\x20following'})]});}function Pe(_0x59df18){const _0x58873b=_0x120a2b,{coordinator:_0x47bf72}=_0x59df18;return _0x3b072f(_0xe9ebfb,{'children':[_0x2afce9(_0x58873b(0xef),{'className':_0x58873b(0xe8),'children':_0x58873b(0x9e)}),_0x2afce9(_0x2ce32f,{'variant':_0x58873b(0x10e),'onClick':()=>_0x47bf72['startFollowing'](),'children':_0x58873b(0xd2)})]});}function Ae(_0x84d2bc){const _0x4de0f3=_0x120a2b,{coordinator:_0x362b06}=_0x84d2bc;return _0x3b072f(_0xe9ebfb,{'children':[_0x2afce9(_0x4de0f3(0xef),{'className':_0x4de0f3(0xe8),'children':_0x4de0f3(0xe4)}),_0x2afce9(_0x2ce32f,{'variant':_0x4de0f3(0x9f),'onClick':()=>_0x362b06[_0x4de0f3(0x110)](),'children':_0x4de0f3(0x86)})]});}function Te(){return _0x2afce9(_0xe9ebfb,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x120a2b(0x7e)],He=(_0x4ae75e,_0x4376df,_0x38cf38,_0x83c59e)=>{for(var _0x1f0a87=_0x83c59e>0x1?void 0x0:_0x83c59e?Fe(_0x4376df,_0x38cf38):_0x4376df,_0x1a21a2=_0x4ae75e['length']-0x1,_0x4778cf;_0x1a21a2>=0x0;_0x1a21a2--)(_0x4778cf=_0x4ae75e[_0x1a21a2])&&(_0x1f0a87=_0x4778cf(_0x1f0a87)||_0x1f0a87);return _0x1f0a87;},A=(_0x312b5c,_0x225ce6)=>(_0x43ab94,_0x51269d)=>_0x225ce6(_0x43ab94,_0x51269d,_0x312b5c);let m=class extends _0x10e724{constructor(_0x1a62d5,_0x42bb1e){const _0x1d6151=_0x120a2b;super(),this[_0x1d6151(0xfd)]=_0x1a62d5,this[_0x1d6151(0xea)]=_0x42bb1e,this['_mountLiveShare']();}[_0x120a2b(0x8c)](){const _0x14eb27=_0x120a2b;this[_0x14eb27(0xb9)](this['_uiPartsService']['registerComponent'](_0x10896f[_0x14eb27(0xe7)],()=>_0x176107(Le,this[_0x14eb27(0xfd)])));}};m=He([A(0x0,_0x664ed(_0x401650)),A(0x1,_0x369c81)],m);const ye='live-share.config',T={};var Ue=Object[_0x120a2b(0x7e)],Ve=(_0x2bd9f4,_0xf7cd02,_0x5e5089,_0x587a76)=>{const _0x3a8b67=_0x120a2b;for(var _0x1f02c5=_0x587a76>0x1?void 0x0:_0x587a76?Ue(_0xf7cd02,_0x5e5089):_0xf7cd02,_0x48b4bd=_0x2bd9f4[_0x3a8b67(0xa6)]-0x1,_0x3ab503;_0x48b4bd>=0x0;_0x48b4bd--)(_0x3ab503=_0x2bd9f4[_0x48b4bd])&&(_0x1f02c5=_0x3ab503(_0x1f02c5)||_0x1f02c5);return _0x1f02c5;},je=(_0x40a5e9,_0x36b3a4)=>(_0x32d55d,_0x2b5845)=>_0x36b3a4(_0x32d55d,_0x2b5845,_0x40a5e9);let I=class extends _0x10e724{constructor(_0x4c9ab1){const _0x2483f0=_0x120a2b;super(),this[_0x2483f0(0xaf)]=_0x4c9ab1,this[_0x2483f0(0x84)]();}[_0x120a2b(0x84)](){[_0xefa49d['id'],_0x4dd920['id'],_0x38317b['id']]['forEach'](_0xfdcfc=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0xfdcfc));});}};I=Ve([je(0x0,_0x664ed(L))],I);var Me=Object[_0x120a2b(0x78)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x193fc4,_0x537f5e,_0x4736eb)=>_0x537f5e in _0x193fc4?Me(_0x193fc4,_0x537f5e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4736eb}):_0x193fc4[_0x537f5e]=_0x4736eb,We=(_0xb6ad85,_0x570301,_0x342c8b,_0x111d4c)=>{const _0x1f5071=_0x120a2b;for(var _0x5622b5=_0x111d4c>0x1?void 0x0:_0x111d4c?ke(_0x570301,_0x342c8b):_0x570301,_0x2f76c6=_0xb6ad85[_0x1f5071(0xa6)]-0x1,_0x106e20;_0x2f76c6>=0x0;_0x2f76c6--)(_0x106e20=_0xb6ad85[_0x2f76c6])&&(_0x5622b5=_0x106e20(_0x5622b5)||_0x5622b5);return _0x5622b5;},F=(_0x2bcb6f,_0x33cfcd)=>(_0x21554f,_0x4cd5c0)=>_0x33cfcd(_0x21554f,_0x4cd5c0,_0x2bcb6f),B=(_0x20712b,_0x34edbb,_0x220a71)=>Ge(_0x20712b,typeof _0x34edbb!='symbol'?_0x34edbb+'':_0x34edbb,_0x220a71);const Ye='UNIVER_LIVE_SHARE_PLUGIN';function _0x33a5(){const _0x5782a6=['length','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','registerInitialStateReporter','asObservable','1180479wgzaGz','_collabSessionService','UniverIcon','_config','getStatus','_liveShareService','_status$','PRESENTING','sheet','getCurrentTypeOfUnit$','values','substring','random','You\x27re\x20following\x20the\x20presenter','92SToogS','disposeWithMe','2889060TmwNEm','idSuffix','offline','_univerInstanceService','set','requireSession','currentColor','236646KnKrXj','send','current','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','_commandDisposable','startFollowing','_entities','end','1em','xlink:href','includes','tryStartPresenting','pipe','not-following','data','UNIVER_SHEET','_unitID','Start\x20following','svg','getInitialStates','univer-size-4','_beIdle','LIVESHARE_OPERATION','24820PBrotd','defs','url(#$1','_handleOperation','next','FOLLOWING','none','_stopFollowing','operations','_sharedOperations','button','LIVESHARE_TERMINATE','You\x27re\x20presenting\x20the\x20document','has','trim','HEADER_MENU','univer-mb-3\x20univer-w-full\x20univer-text-sm','IDLE','_uiPartsService','getTypeOfUnitAdded$','_reporters','_commandService','fill','div','setConfig','init','children','dispose','shouldShareOperation','http://www.w3.org/2000/svg','ONLINE','LiveShareIcon','UNIVER_UNKNOWN','entries','get','sessionStatus$','following','_injector','0\x200\x2017\x2017','params','102977Pvsocy','symbol','Present\x20this\x20document','add','complete','_startPresenting','path','replace','stopFollowing','OPERATION','string','colorChannel1','24WjYjTh','find','text','presenting','stopPresenting','registerSharedOperation','getLiveShareCoordinator','47369070vUdLjc','idle','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','subscribe','pluginName','LIVESHARE_REQUEST_HOST','_configService','NEW_CHANGESETS','_presenter','type','_startFollowing','_stopPresenting','displayName','defineProperty','forEach','8476972eputGt','stringify','_handleOnline','getMemberID','getOwnPropertyDescriptor','getValue','_status','executeCommand','_collabSession','map','_init','_handleTerminate','Stop\x20presenting','LIVESHARE_FETCH_OPERATIONS','dispose$','Start','presenter','NOT_FOLLOWING','_mountLiveShare','status$','assign','tag','attrs','getConfig','createInstance','getLiveShareCoordinatorSync','112Hvkpim','LIVESHARE_NEW_HOST','live-share-icon','evenodd','OFFLINE','getUnitId','univerjs-icon\x20univerjs-icon-','getTypeOfUnitDisposed$','_handleNewHost','mask','You\x27re\x20not\x20following\x20the\x20presenter','default','_fetchOperations','then','_startLiveShareCoordinator','_handleNewChangeSets','delete','univer-border-none\x20univer-text-gray-600\x20univer-outline-none'];_0x33a5=function(){return _0x5782a6;};return _0x33a5();}let b=class extends _0x59667f{constructor(_0x21d3f9=T,_0x555017,_0x4239cb){const _0x8b7857=_0x120a2b;super(),this[_0x8b7857(0xad)]=_0x21d3f9,this[_0x8b7857(0xfd)]=_0x555017,this['_configService']=_0x4239cb;const {..._0x436cd3}=_0xfda1f7({},T,this['_config']);this[_0x8b7857(0x71)][_0x8b7857(0xf0)](ye,_0x436cd3);}['onStarting'](){const _0x543d6c=_0x120a2b;_0x565181(this[_0x543d6c(0xfd)],_0x33514b([[L],[S],[I],[m]],this[_0x543d6c(0xad)]['override'])),_0x13d42a(this[_0x543d6c(0xfd)],[[I]]);}['onRendered'](){const _0xc97bac=_0x120a2b;_0x13d42a(this[_0xc97bac(0xfd)],[[m]]);}};B(b,'type',_0x3d4707[_0x120a2b(0xf8)]),B(b,_0x120a2b(0x6f),Ye),b=We([_0x4f1006(_0x1e5f88),F(0x1,_0x664ed(_0x401650)),F(0x2,_0x2ed083)],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 _0x44cc11=_0x571d;function _0x4b38(){const _0xf2252=['startColumn','getActiveWorkbook','stopPresenting','getRenderById','tryStartPresenting','extend','116318jvJVSX','738160hJNFiS','7232706lifezH','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_injector','startFollowing','startRow','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','getStatus','startPresenting','getActiveSheet','getUnitId','_commandService','stopFollowing','4374349GDTyYo','16733412jgtuIg','executeCommand','510KalXPg','getSheetId','_initialize','7552cohDOt','getId','get','LiveShareStatusEnum','69Itphcn','IDLE','350644ZBKWaQ'];_0x4b38=function(){return _0xf2252;};return _0x4b38();}(function(_0x1ffa5a,_0x2963cc){const _0x1c75f1=_0x571d,_0x409b7f=_0x1ffa5a();while(!![]){try{const _0x4d8ede=-parseInt(_0x1c75f1(0x97))/0x1+-parseInt(_0x1c75f1(0x7c))/0x2*(-parseInt(_0x1c75f1(0x95))/0x3)+parseInt(_0x1c75f1(0x91))/0x4*(-parseInt(_0x1c75f1(0x8e))/0x5)+parseInt(_0x1c75f1(0x7e))/0x6+parseInt(_0x1c75f1(0x8b))/0x7+parseInt(_0x1c75f1(0x7d))/0x8+-parseInt(_0x1c75f1(0x8c))/0x9;if(_0x4d8ede===_0x2963cc)break;else _0x409b7f['push'](_0x409b7f['shift']());}catch(_0x51bc1e){_0x409b7f['push'](_0x409b7f['shift']());}}}(_0x4b38,0xd16c5));import{LiveShareController as _0x313d25,LiveShareStatus as _0x580825}from'@univerjs-pro/live-share';function _0x571d(_0x1f4573,_0x25e91f){const _0x4b3887=_0x4b38();return _0x571d=function(_0x571dba,_0x5d8bd6){_0x571dba=_0x571dba-0x79;let _0xd79ff0=_0x4b3887[_0x571dba];return _0xd79ff0;},_0x571d(_0x1f4573,_0x25e91f);}import{IRenderManagerService as _0x4b094b}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3c1ff9}from'@univerjs/sheets';import{SetScrollOperation as _0x5b0dc0}from'@univerjs/sheets-ui';import{FRange as _0x13eaa2}from'@univerjs/sheets/facade';import{FUniver as _0x7c51a5,FEnum as _0x1b964c}from'@univerjs/core/facade';class I extends _0x13eaa2{[_0x44cc11(0x90)](_0x39c304,_0x283a50,_0x4b916e,_0x33ec3c,_0x5c80a4){const _0x51b103=_0x44cc11,_0x268fd0=_0x39c304[_0x51b103(0x93)](_0x313d25),_0x5d3fb1=_0x39c304[_0x51b103(0x93)](_0x4b094b),_0x437c79=_0x283a50['getUnitId'](),_0x2381ab=_0x283a50[_0x51b103(0x87)](),_0x24d15e=_0x268fd0[_0x51b103(0x83)](_0x437c79);(_0x24d15e==null?void 0x0:_0x24d15e[_0x51b103(0x85)]())!==_0x580825['PRESENTING']||(_0x4b916e[_0x51b103(0x8f)]()!==_0x2381ab[_0x51b103(0x8f)]()&&this[_0x51b103(0x89)][_0x51b103(0x8d)](_0x3c1ff9['id'],{'unitId':_0x437c79,'subUnitId':_0x4b916e['getSheetId']()}),!_0x5d3fb1[_0x51b103(0x79)](_0x437c79))||_0x5c80a4['syncExecuteCommand'](_0x5b0dc0['id'],{'unitId':_0x283a50[_0x51b103(0x88)](),'sheetId':_0x4b916e[_0x51b103(0x8f)](),'sheetViewStartRow':_0x33ec3c[_0x51b103(0x82)],'sheetViewStartColumn':_0x33ec3c[_0x51b103(0x98)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x13eaa2[_0x44cc11(0x7b)](I);class m extends _0x7c51a5{['getLiveShareStatus'](){const _0x4729bb=_0x44cc11;var _0x266f06,_0x5d2937;const _0x2751aa=this['_injector']['get'](_0x313d25),_0x3a8d0d=(_0x266f06=this['getActiveWorkbook']())==null?void 0x0:_0x266f06[_0x4729bb(0x92)]();if(!_0x3a8d0d)throw new Error('No\x20active\x20workbook\x20found.');const _0x3ee693=_0x2751aa[_0x4729bb(0x83)](_0x3a8d0d);return(_0x5d2937=_0x3ee693==null?void 0x0:_0x3ee693[_0x4729bb(0x85)]())!=null?_0x5d2937:_0x580825[_0x4729bb(0x96)];}[_0x44cc11(0x81)](){const _0x5d261e=_0x44cc11;var _0xd5a86d;const _0x6c94c8=this[_0x5d261e(0x80)][_0x5d261e(0x93)](_0x313d25),_0x56ff5a=(_0xd5a86d=this[_0x5d261e(0x99)]())==null?void 0x0:_0xd5a86d['getId']();if(!_0x56ff5a)throw new Error('No\x20active\x20workbook\x20found.');const _0x401d30=_0x6c94c8[_0x5d261e(0x83)](_0x56ff5a);if(!_0x401d30)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x401d30[_0x5d261e(0x81)]();}[_0x44cc11(0x8a)](){const _0x5b3d2f=_0x44cc11;var _0x346103;const _0xcb4cd6=this[_0x5b3d2f(0x80)][_0x5b3d2f(0x93)](_0x313d25),_0x312b92=(_0x346103=this[_0x5b3d2f(0x99)]())==null?void 0x0:_0x346103[_0x5b3d2f(0x92)]();if(!_0x312b92)throw new Error(_0x5b3d2f(0x84));const _0x116a00=_0xcb4cd6[_0x5b3d2f(0x83)](_0x312b92);if(!_0x116a00)throw new Error(_0x5b3d2f(0x7f));_0x116a00[_0x5b3d2f(0x8a)]();}[_0x44cc11(0x86)](){const _0x27bd85=_0x44cc11;var _0x4c0fbb;const _0x1221c4=this[_0x27bd85(0x80)][_0x27bd85(0x93)](_0x313d25),_0x388df1=(_0x4c0fbb=this[_0x27bd85(0x99)]())==null?void 0x0:_0x4c0fbb[_0x27bd85(0x92)]();if(!_0x388df1)throw new Error(_0x27bd85(0x84));const _0x27320c=_0x1221c4[_0x27bd85(0x83)](_0x388df1);if(!_0x27320c)throw new Error(_0x27bd85(0x7f));_0x27320c[_0x27bd85(0x7a)]();}[_0x44cc11(0x9a)](){const _0xe26281=_0x44cc11;var _0x3504fc;const _0x4b788d=this[_0xe26281(0x80)][_0xe26281(0x93)](_0x313d25),_0x5189e8=(_0x3504fc=this[_0xe26281(0x99)]())==null?void 0x0:_0x3504fc[_0xe26281(0x92)]();if(!_0x5189e8)throw new Error(_0xe26281(0x84));const _0x822424=_0x4b788d[_0xe26281(0x83)](_0x5189e8);if(!_0x822424)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x822424[_0xe26281(0x9a)]();}}_0x7c51a5[_0x44cc11(0x7b)](m);class C extends _0x1b964c{get[_0x44cc11(0x94)](){return _0x580825;}}_0x1b964c[_0x44cc11(0x7b)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x466b10=_0x2fc8;(function(_0x3626d1,_0x23da67){const _0x45aec7=_0x2fc8,_0x8e61fd=_0x3626d1();while(!![]){try{const _0x48c8d8=parseInt(_0x45aec7(0x219))/0x1+-parseInt(_0x45aec7(0x1d6))/0x2+parseInt(_0x45aec7(0x242))/0x3*(parseInt(_0x45aec7(0x257))/0x4)+parseInt(_0x45aec7(0x254))/0x5+parseInt(_0x45aec7(0x277))/0x6*(-parseInt(_0x45aec7(0x213))/0x7)+-parseInt(_0x45aec7(0x233))/0x8+parseInt(_0x45aec7(0x25c))/0x9*(-parseInt(_0x45aec7(0x1f3))/0xa);if(_0x48c8d8===_0x23da67)break;else _0x8e61fd['push'](_0x8e61fd['shift']());}catch(_0xebfcd1){_0x8e61fd['push'](_0x8e61fd['shift']());}}}(_0x357a,0xbf71a));var J=Object[_0x466b10(0x264)],K=(_0xe41e0b,_0x53190b,_0x5dfba6)=>_0x53190b in _0xe41e0b?J(_0xe41e0b,_0x53190b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dfba6}):_0xe41e0b[_0x53190b]=_0x5dfba6,u=(_0x534186,_0x439d01,_0x13b7be)=>K(_0x534186,typeof _0x439d01!='symbol'?_0x439d01+'':_0x439d01,_0x13b7be);import{Disposable as _0x420bef,toDisposable as _0x2eefa6,IUniverInstanceService as _0x2136d5,Inject as _0xb810a1,Injector as _0x42925d,IConfigService as _0x534aaa,ICommandService as _0x462048,RxDisposable as _0x42c56f,UniverInstanceType as _0x5da7e1,DisposableCollection as _0x5c3901,CommandType as _0x5c0f1e,DependentOn as _0x426f35,Plugin as _0x1ab38a,merge as _0x153f93,registerDependencies as _0x40c418,mergeOverrideWithDependencies as _0x26a6d8,touchDependencies as _0x321cc3}from'@univerjs/core';import{useDependency as _0x57b7f1,useObservable as _0x2f47a8,IUIPartsService as _0x13733b,BuiltInUIPart as _0x325241,connectInjector as _0x5e2acd}from'@univerjs/ui';import{jsx as _0x284072,jsxs as _0x2842a9,Fragment as _0x3f7b64}from'react/jsx-runtime';import{Dropdown as _0x4d67da,clsx as _0x3b0bb0,Button as _0x55525b}from'@univerjs/design';import{useRef as _0x42cbc5,createElement as _0x345555,forwardRef as _0x3c8360,useState as _0x34edd8,useEffect as _0x2e4dde}from'react';import{CollaborationEvent as _0x4f8dac,parseProtocolChangeset as _0x1aca7c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32ee9c,SessionStatus as _0x2c2d1f,UniverCollaborationClientPlugin as _0x27fd59}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x27298e,SetWorksheetActiveOperation as _0x1cd2eb}from'@univerjs/sheets';import{BehaviorSubject as _0x4e0347,Subject as _0x5885a2}from'rxjs';import{takeUntil as _0x2b8aab,throttleTime as _0x3853a5}from'rxjs/operators';import{SetZoomRatioOperation as _0x54dcf4,SetScrollOperation as _0x59b67c}from'@univerjs/sheets-ui';function k({ref:_0x56e881,..._0x8a0ea0}){const _0x4313f2=_0x466b10,{icon:_0xdffd6,id:_0x3a411c,className:_0x3857f2,extend:_0x437451,..._0x472013}=_0x8a0ea0,_0x49a098=('univerjs-icon\x20univerjs-icon-'+_0x3a411c+'\x20'+(_0x3857f2||''))['trim'](),_0x1bf568=_0x42cbc5('_'+Oe());return G(_0xdffd6,''+_0x3a411c,{'defIds':_0xdffd6[_0x4313f2(0x1e9)],'idSuffix':_0x1bf568[_0x4313f2(0x260)]},{'ref':_0x56e881,'className':_0x49a098,..._0x472013},_0x437451);}function G(_0x36dab8,_0x14e2ad,_0x388ceb,_0xe44f09,_0x31239d){const _0x457d2f=_0x466b10;return _0x345555(_0x36dab8[_0x457d2f(0x1d5)],{'key':_0x14e2ad,...be(_0x36dab8,_0x388ceb,_0x31239d),..._0xe44f09},(Ee(_0x36dab8,_0x388ceb)[_0x457d2f(0x1da)]||[])['map']((_0x143ae9,_0x2fb417)=>G(_0x143ae9,_0x14e2ad+'-'+_0x36dab8[_0x457d2f(0x1d5)]+'-'+_0x2fb417,_0x388ceb,void 0x0,_0x31239d)));}function be(_0x193212,_0x5225b8,_0x52778d){const _0x144ca5=_0x466b10,_0x4e407c={..._0x193212[_0x144ca5(0x23e)]};_0x52778d!=null&&_0x52778d[_0x144ca5(0x252)]&&_0x4e407c[_0x144ca5(0x269)]==='colorChannel1'&&(_0x4e407c[_0x144ca5(0x269)]=_0x52778d['colorChannel1']),_0x193212[_0x144ca5(0x1d5)]==='mask'&&_0x4e407c['id']&&(_0x4e407c['id']=_0x4e407c['id']+_0x5225b8[_0x144ca5(0x20f)]),Object[_0x144ca5(0x24c)](_0x4e407c)[_0x144ca5(0x21f)](([_0x337893,_0x589733])=>{const _0x2f5315=_0x144ca5;_0x337893==='mask'&&typeof _0x589733==_0x2f5315(0x25e)&&(_0x4e407c[_0x337893]=_0x589733['replace'](/url\(#(.*)\)/,_0x2f5315(0x273)+_0x5225b8[_0x2f5315(0x20f)]+')'));});const {defIds:_0x253c66}=_0x5225b8;return!_0x253c66||_0x253c66[_0x144ca5(0x225)]===0x0||(_0x193212['tag']==='use'&&_0x4e407c['xlink:href']&&(_0x4e407c[_0x144ca5(0x1d8)]=_0x4e407c['xlink:href']+_0x5225b8[_0x144ca5(0x20f)]),Object[_0x144ca5(0x24c)](_0x4e407c)[_0x144ca5(0x21f)](([_0x5581e5,_0x171030])=>{const _0x32af2b=_0x144ca5;typeof _0x171030==_0x32af2b(0x25e)&&(_0x4e407c[_0x5581e5]=_0x171030[_0x32af2b(0x22a)](/url\(#(.*)\)/,_0x32af2b(0x273)+_0x5225b8[_0x32af2b(0x20f)]+')'));})),_0x4e407c;}function _0x357a(){const _0x1c4ba2=['_status','disposeWithMe','getMemberID','univer-size-4','get','OPERATION','getUnitId','asObservable','attrs','event$','displayName','PRESENTING','3165MfJiok','You\x27are\x20offline.','UNIVER_SHEET','getConfig','_handleTerminate','getValue','LIVESHARE_OPERATION','init','LIVESHARE_REQUEST_HOST','NOT_FOLLOWING','entries','getOwnPropertyDescriptor','UNIVER_UNKNOWN','params','status$','_configService','colorChannel1','NEW_CHANGESETS','506440UAbPaJ','_init','stopPresenting','3032UyPZYu','complete','You\x27re\x20presenting\x20the\x20document','memberID','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','30798qOIaYn','unitId','string','_startFollowing','current','evenodd','live-share.config','_unitID','defineProperty','1em','mutations','getTypeOfUnitDisposed$','getCurrentTypeOfUnit$','fill','type','following','none','presenting','setConfig','IDLE','_sharedOperations','getInitialStates','You\x27re\x20not\x20following\x20the\x20presenter','url(#$1','_beIdle','_presenter','data','1608414RAbKHp','delete','_stopFollowing','_commandDisposable','tag','261130MtvYBC','LIVESHARE_TERMINATE','xlink:href','symbol','children','_startPresenting','values','next','onCommandExecuted','Start','FOLLOWING','_mountLiveShare','registerSharedOperation','LIVESHARE_FETCH_OPERATIONS','_status$','has','startFollowing','default','currentColor','defIds','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','univer-mb-3\x20univer-w-full\x20univer-text-sm','override','subscribe','includes','button','HEADER_MENU','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','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','730MDRAmK','_config','_collabSession','dispose','OFFLINE','offline','add','idle','Present\x20this\x20document','onStarting','defs','text','_reporters','send','_handleNewHost','UniverIcon','getTypeOfUnitAdded$','div','assign','tryStartPresenting','reverse','LIVESHARE_NEW_HOST','requireSession','_handleOnline','shouldShareOperation','executeCommand','_collabSessionService','http://www.w3.org/2000/svg','idSuffix','_handleOffline','set','dispose$','28FjsQDi','getLiveShareCoordinator','path','_handleNewChangeSets','You\x27re\x20following\x20the\x20presenter','_univerInstanceService','1405489RARwvP','Stop\x20following','end','pipe','getStatus','createInstance','forEach','_uiPartsService','not-following','presenter','_handleOperation','_liveShareService','length','_stopPresenting','_fetchOperations','stopFollowing','sheet','replace','parse','0\x200\x2017\x2017','_startLiveShareCoordinator','_commandService','SAME_OPERATION_SHARE_INTERVAL','onRendered','_injector','toString','557328kyMpoS','_entities','pluginName'];_0x357a=function(){return _0x1c4ba2;};return _0x357a();}function Ee(_0x48c89a,_0x1479e5){const _0xdca510=_0x466b10;var _0x3b9069;const {defIds:_0x476edd}=_0x1479e5;return!_0x476edd||_0x476edd[_0xdca510(0x225)]===0x0?_0x48c89a:_0x48c89a[_0xdca510(0x1d5)]===_0xdca510(0x1fd)&&((_0x3b9069=_0x48c89a[_0xdca510(0x1da)])!=null&&_0x3b9069[_0xdca510(0x225)])?{..._0x48c89a,'children':_0x48c89a['children']['map'](_0x5eadee=>typeof _0x5eadee[_0xdca510(0x23e)]['id']==_0xdca510(0x25e)&&_0x476edd&&_0x476edd[_0xdca510(0x1ee)](_0x5eadee[_0xdca510(0x23e)]['id'])?{..._0x5eadee,'attrs':{..._0x5eadee[_0xdca510(0x23e)],'id':_0x5eadee[_0xdca510(0x23e)]['id']+_0x1479e5[_0xdca510(0x20f)]}}:_0x5eadee)}:_0x48c89a;}function Oe(){const _0x2e54c3=_0x466b10;return Math['random']()[_0x2e54c3(0x232)](0x24)['substring'](0x2,0x8);}k[_0x466b10(0x240)]=_0x466b10(0x202);const we={'tag':'svg','attrs':{'xmlns':_0x466b10(0x20e),'fill':_0x466b10(0x26c),'viewBox':_0x466b10(0x22c),'width':_0x466b10(0x265),'height':_0x466b10(0x265)},'children':[{'tag':_0x466b10(0x215),'attrs':{'fill':'currentColor','d':_0x466b10(0x25b)}},{'tag':_0x466b10(0x215),'attrs':{'fill':_0x466b10(0x1e8),'d':_0x466b10(0x1f1),'fillRule':_0x466b10(0x261),'clipRule':_0x466b10(0x261)}}]},W=_0x3c8360(function(_0x85f375,_0x1fb5b6){const _0x238ac1=_0x466b10;return _0x345555(k,Object[_0x238ac1(0x205)]({},_0x85f375,{'id':'live-share-icon','ref':_0x1fb5b6,'icon':we}));});W[_0x466b10(0x240)]='LiveShareIcon';class L extends _0x420bef{constructor(){const _0x534244=_0x466b10;super(...arguments),u(this,_0x534244(0x270),new Set()),u(this,_0x534244(0x1ff),new Set());}['registerSharedOperation'](_0x283131){const _0xec1a2e=_0x466b10;return this[_0xec1a2e(0x270)]['add'](_0x283131),_0x2eefa6(()=>this[_0xec1a2e(0x270)][_0xec1a2e(0x1d2)](_0x283131));}['registerInitialStateReporter'](_0x2bcae4){const _0x5d9c51=_0x466b10;return this[_0x5d9c51(0x1ff)][_0x5d9c51(0x1f9)](_0x2bcae4),_0x2eefa6(()=>this[_0x5d9c51(0x1ff)][_0x5d9c51(0x1d2)](_0x2bcae4));}[_0x466b10(0x20b)](_0x27b4e1){const _0x22a577=_0x466b10;return this[_0x22a577(0x270)][_0x22a577(0x1e5)](_0x27b4e1);}[_0x466b10(0x271)](_0x21cfca){const _0x28622f=_0x466b10;return Array['from'](this[_0x28622f(0x1ff)])['map'](_0xae5419=>_0xae5419(_0x21cfca));}}function _0x2fc8(_0x4eae40,_0x1bf369){const _0x357a1e=_0x357a();return _0x2fc8=function(_0x2fc8b5,_0x285da0){_0x2fc8b5=_0x2fc8b5-0x1d2;let _0x4f78d4=_0x357a1e[_0x2fc8b5];return _0x4f78d4;},_0x2fc8(_0x4eae40,_0x1bf369);}var Ne=Object[_0x466b10(0x24d)],Y=(_0x247e4e,_0x5ab1bf,_0x2311d0,_0x3039bc)=>{for(var _0xd525ca=_0x3039bc>0x1?void 0x0:_0x3039bc?Ne(_0x5ab1bf,_0x2311d0):_0x5ab1bf,_0x250c14=_0x247e4e['length']-0x1,_0x4acf00;_0x250c14>=0x0;_0x250c14--)(_0x4acf00=_0x247e4e[_0x250c14])&&(_0xd525ca=_0x4acf00(_0xd525ca)||_0xd525ca);return _0xd525ca;},_=(_0x4cff14,_0x134983)=>(_0x177e5d,_0x400f5e)=>_0x134983(_0x177e5d,_0x400f5e,_0x4cff14);let S=class extends _0x42c56f{constructor(_0x12aa1b,_0x3369ed,_0x3b2100){const _0x538447=_0x466b10;super(),u(this,'_entities',new Map()),(this[_0x538447(0x218)]=_0x12aa1b,this[_0x538447(0x231)]=_0x3369ed,this[_0x538447(0x20d)]=_0x3b2100,this[_0x538447(0x255)]());}async[_0x466b10(0x214)](_0x4cc403){const _0x3a8be6=_0x466b10;return this[_0x3a8be6(0x234)]['has'](_0x4cc403)||await this[_0x3a8be6(0x22d)](_0x4cc403),this[_0x3a8be6(0x234)][_0x3a8be6(0x23a)](_0x4cc403);}['getLiveShareCoordinatorSync'](_0x4d60ac){const _0x294aee=_0x466b10;var _0x5080d1;return(_0x5080d1=this[_0x294aee(0x234)][_0x294aee(0x23a)](_0x4d60ac))!=null?_0x5080d1:null;}[_0x466b10(0x255)](){const _0x462bfb=_0x466b10;this[_0x462bfb(0x218)][_0x462bfb(0x203)](_0x5da7e1[_0x462bfb(0x244)])[_0x462bfb(0x21c)](_0x2b8aab(this[_0x462bfb(0x212)]))[_0x462bfb(0x1ed)](async _0x2a6ec0=>{const _0x53687e=_0x462bfb,_0x351f05=_0x2a6ec0[_0x53687e(0x23c)]();this[_0x53687e(0x234)][_0x53687e(0x1e5)](_0x351f05)||this[_0x53687e(0x22d)](_0x351f05);}),this[_0x462bfb(0x218)][_0x462bfb(0x267)](_0x5da7e1[_0x462bfb(0x244)])[_0x462bfb(0x21c)](_0x2b8aab(this['dispose$']))['subscribe'](_0x4fe067=>{const _0xab9415=_0x462bfb,_0x974fbe=_0x4fe067['getUnitId'](),_0x5cbd94=this[_0xab9415(0x234)][_0xab9415(0x23a)](_0x974fbe);_0x5cbd94==null||_0x5cbd94[_0xab9415(0x1f6)]();});}async[_0x466b10(0x22d)](_0x23b9ed){const _0x4d6911=_0x466b10,_0x537694=await this[_0x4d6911(0x20d)][_0x4d6911(0x209)](_0x23b9ed),_0x11c03c=this[_0x4d6911(0x231)][_0x4d6911(0x21e)](N,_0x23b9ed,_0x537694);return _0x11c03c[_0x4d6911(0x249)](),this[_0x4d6911(0x234)][_0x4d6911(0x211)](_0x23b9ed,_0x11c03c),_0x11c03c;}};S=Y([_(0x0,_0x2136d5),_(0x1,_0xb810a1(_0x42925d)),_(0x2,_0xb810a1(_0x32ee9c))],S);var c=(_0x7d2b6b=>(_0x7d2b6b[_0x466b10(0x1f7)]=_0x466b10(0x1f8),_0x7d2b6b[_0x466b10(0x26f)]=_0x466b10(0x1fa),_0x7d2b6b['FOLLOWING']='following',_0x7d2b6b['NOT_FOLLOWING']='not-following',_0x7d2b6b[_0x466b10(0x241)]=_0x466b10(0x26d),_0x7d2b6b))(c||{});const Ce=_0x466b10(0x22f),De=0xc8;let N=class extends _0x42c56f{constructor(_0xa665c2,_0x391052,_0x56364f,_0x58779e,_0x90e7d2){const _0x1141fa=_0x466b10;super(),u(this,_0x1141fa(0x1e4),new _0x4e0347(_0x1141fa(0x1fa))),u(this,'status$',this[_0x1141fa(0x1e4)][_0x1141fa(0x23d)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this[_0x1141fa(0x263)]=_0xa665c2,this[_0x1141fa(0x1f5)]=_0x391052,this[_0x1141fa(0x251)]=_0x56364f,this[_0x1141fa(0x224)]=_0x58779e,this[_0x1141fa(0x22e)]=_0x90e7d2);}get[_0x466b10(0x236)](){const _0x5853e1=_0x466b10;return this[_0x5853e1(0x1e4)][_0x5853e1(0x247)]();}['dispose'](){const _0x1698e1=_0x466b10;var _0x148295;(_0x148295=this[_0x1698e1(0x1d4)])==null||_0x148295[_0x1698e1(0x1f6)](),this[_0x1698e1(0x1e4)][_0x1698e1(0x1dd)](_0x1698e1(0x1fa)),this[_0x1698e1(0x1e4)][_0x1698e1(0x258)]();}[_0x466b10(0x21d)](){const _0x28440c=_0x466b10;return this[_0x28440c(0x236)];}[_0x466b10(0x249)](){const _0x3c242e=_0x466b10;this['_init']||(this[_0x3c242e(0x255)]=!0x0,this[_0x3c242e(0x1f5)]['sessionStatus$']['pipe'](_0x2b8aab(this[_0x3c242e(0x212)]))[_0x3c242e(0x1ed)](_0x4d7096=>{const _0x4393dd=_0x3c242e;switch(_0x4d7096){case _0x2c2d1f[_0x4393dd(0x1f7)]:this[_0x4393dd(0x210)]();break;case _0x2c2d1f['ONLINE']:this['_handleOnline']();break;}}),this[_0x3c242e(0x1f5)][_0x3c242e(0x23f)]['pipe'](_0x2b8aab(this['dispose$']))[_0x3c242e(0x1ed)](_0x1a3914=>{const _0x5541c8=_0x3c242e,{eventID:_0x33595d}=_0x1a3914;switch(_0x33595d){case _0x4f8dac[_0x5541c8(0x208)]:this['_handleNewHost'](_0x1a3914);break;case _0x4f8dac[_0x5541c8(0x248)]:this[_0x5541c8(0x223)](_0x1a3914);break;case _0x4f8dac[_0x5541c8(0x1d7)]:this[_0x5541c8(0x246)]();break;case _0x4f8dac[_0x5541c8(0x253)]:this['_handleNewChangeSets'](_0x1a3914);break;}}));}[_0x466b10(0x206)](){const _0x1d3e1b=_0x466b10;this[_0x1d3e1b(0x1f5)][_0x1d3e1b(0x200)]({'eventID':_0x4f8dac[_0x1d3e1b(0x24a)],'data':{'unitID':this[_0x1d3e1b(0x263)],'userID':this[_0x1d3e1b(0x1f5)]['getMemberID']()}},this['_unitID']);}[_0x466b10(0x256)](){const _0x14b4e3=_0x466b10;this[_0x14b4e3(0x236)]==='presenting'&&(this[_0x14b4e3(0x1e4)][_0x14b4e3(0x1dd)](_0x14b4e3(0x1fa)),this[_0x14b4e3(0x1f5)][_0x14b4e3(0x200)]({'eventID':_0x4f8dac['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x14b4e3(0x263)]}},this['_unitID']));}[_0x466b10(0x1e6)](){const _0x3deff0=_0x466b10;this['_status']===_0x3deff0(0x221)&&(this[_0x3deff0(0x1e4)][_0x3deff0(0x1dd)]('following'),this[_0x3deff0(0x25f)]());}[_0x466b10(0x228)](){const _0x1759eb=_0x466b10;this[_0x1759eb(0x236)]===_0x1759eb(0x26b)&&this[_0x1759eb(0x1d3)]();}[_0x466b10(0x201)](_0x3122bb){const _0x1ecd4d=_0x466b10,{presenter:_0x2f0213}=_0x3122bb[_0x1ecd4d(0x276)],_0x27ea90=this[_0x1ecd4d(0x1f5)]['getMemberID']();this['_presenter']=_0x2f0213,_0x2f0213===_0x27ea90?(this['_stopFollowing'](),this[_0x1ecd4d(0x1db)]()):this[_0x1ecd4d(0x236)]!=='not-following'&&(this[_0x1ecd4d(0x226)](),this[_0x1ecd4d(0x25f)]());}[_0x466b10(0x227)](){const _0x199c73=_0x466b10,_0x3ce07e={'eventID':_0x4f8dac[_0x199c73(0x1e3)]};this['_collabSession'][_0x199c73(0x200)](_0x3ce07e,this[_0x199c73(0x263)]);}['_handleTerminate'](){const _0x546a9d=_0x466b10;this[_0x546a9d(0x275)]=null,this[_0x546a9d(0x236)]!==_0x546a9d(0x26d)&&this[_0x546a9d(0x274)]();}[_0x466b10(0x216)](_0xe39262){const _0x3db4de=_0x466b10;if(this[_0x3db4de(0x236)]===_0x3db4de(0x26b)&&this[_0x3db4de(0x275)]===_0xe39262[_0x3db4de(0x276)][_0x3db4de(0x25a)]){const _0x3dc36c=_0x1aca7c(_0xe39262[_0x3db4de(0x276)])[_0x3db4de(0x266)][_0x3db4de(0x207)]()['find'](_0x57ae51=>_0x57ae51['id']===_0x27298e['id']);if(_0x3dc36c){const _0x154067=_0x3dc36c[_0x3db4de(0x24f)][_0x3db4de(0x25d)],_0x262a15=_0x3dc36c[_0x3db4de(0x24f)][_0x3db4de(0x229)]['id'];setTimeout(()=>{const _0x8cdea2=_0x3db4de;this[_0x8cdea2(0x22e)][_0x8cdea2(0x20c)](_0x1cd2eb['id'],{'unitId':_0x154067,'subUnitId':_0x262a15},{'fromCollab':!0x0});});}}}[_0x466b10(0x1db)](){const _0x36c0f2=_0x466b10;this['_status$'][_0x36c0f2(0x1dd)](_0x36c0f2(0x26d));const _0x353dee=new Map(),_0x5321c8=this[_0x36c0f2(0x1d4)]=new _0x5c3901();_0x5321c8[_0x36c0f2(0x1f9)](_0x2eefa6(()=>{const _0x20851a=_0x36c0f2;_0x353dee[_0x20851a(0x21f)](_0x3fa4c0=>_0x3fa4c0['complete']()),_0x353dee['clear']();})),_0x5321c8[_0x36c0f2(0x1f9)](this[_0x36c0f2(0x22e)][_0x36c0f2(0x1de)](_0x147d71=>{const _0x59fc17=_0x36c0f2;var _0xf4dac5;if(_0x147d71[_0x59fc17(0x26a)]!==_0x5c0f1e[_0x59fc17(0x23b)]||!this[_0x59fc17(0x224)][_0x59fc17(0x20b)](_0x147d71['id']))return;const {id:_0x3503f5}=_0x147d71;let _0x292949;_0x353dee[_0x59fc17(0x1e5)](_0x3503f5)?_0x292949=_0x353dee[_0x59fc17(0x23a)](_0x3503f5):(_0x292949=new _0x5885a2(),_0x353dee[_0x59fc17(0x211)](_0x3503f5,_0x292949),_0x292949[_0x59fc17(0x21c)](_0x3853a5((_0xf4dac5=this[_0x59fc17(0x251)][_0x59fc17(0x245)](Ce))!=null?_0xf4dac5:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59fc17(0x1ed)](_0xda6466=>{const _0x303ecc=_0x59fc17;this[_0x303ecc(0x1f5)]['send']({'eventID':_0x4f8dac['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0xda6466['id']]:{'id':_0xda6466['id'],'params':JSON['stringify'](_0xda6466[_0x303ecc(0x24f)])}}}},this[_0x303ecc(0x263)]);})),_0x292949['next'](_0x147d71);})),this['_liveShareService'][_0x36c0f2(0x271)](this['_unitID'])[_0x36c0f2(0x21f)](_0x5400a4=>this['_collabSession'][_0x36c0f2(0x200)]({'eventID':_0x4f8dac[_0x36c0f2(0x248)],'data':{'unitID':this[_0x36c0f2(0x263)],'operations':{[_0x5400a4['id']]:{'id':_0x5400a4['id'],'params':JSON['stringify'](_0x5400a4[_0x36c0f2(0x24f)])}}}},this[_0x36c0f2(0x263)]));}['_stopPresenting'](){const _0x156e4a=_0x466b10;var _0x1fb473;this[_0x156e4a(0x1e4)][_0x156e4a(0x1dd)](_0x156e4a(0x1fa)),(_0x1fb473=this[_0x156e4a(0x1d4)])==null||_0x1fb473[_0x156e4a(0x1f6)](),this[_0x156e4a(0x1d4)]=null;}[_0x466b10(0x25f)](){const _0xb65f8a=_0x466b10;var _0x3f7e3d;(_0x3f7e3d=this[_0xb65f8a(0x1d4)])==null||_0x3f7e3d[_0xb65f8a(0x1f6)](),this[_0xb65f8a(0x1e4)][_0xb65f8a(0x1dd)](_0xb65f8a(0x26b));}['_beIdle'](){const _0xbd18fb=_0x466b10;var _0x52a3d5;this[_0xbd18fb(0x1e4)][_0xbd18fb(0x1dd)]('idle'),(_0x52a3d5=this[_0xbd18fb(0x1d4)])==null||_0x52a3d5['dispose'](),this[_0xbd18fb(0x1d4)]=null;}['_stopFollowing'](){const _0x20f90b=_0x466b10;var _0x1b118d;this[_0x20f90b(0x1e4)][_0x20f90b(0x1dd)]('not-following'),(_0x1b118d=this[_0x20f90b(0x1d4)])==null||_0x1b118d[_0x20f90b(0x1f6)]();}[_0x466b10(0x223)](_0x1457a9){const _0x6a1fde=_0x466b10;if([_0x6a1fde(0x26d),_0x6a1fde(0x221),_0x6a1fde(0x1f8)]['includes'](this[_0x6a1fde(0x236)])||!_0x1457a9['data'][_0x6a1fde(0x222)]||_0x1457a9[_0x6a1fde(0x276)][_0x6a1fde(0x222)]===this[_0x6a1fde(0x1f5)][_0x6a1fde(0x238)]())return;this[_0x6a1fde(0x236)]==='idle'&&this['_startFollowing']();const _0x490f4e=_0x1457a9[_0x6a1fde(0x276)]['operations'];Object[_0x6a1fde(0x1dc)](_0x490f4e)[_0x6a1fde(0x21f)](_0x51ea88=>{const _0x36017c=_0x6a1fde;this[_0x36017c(0x22e)][_0x36017c(0x20c)](_0x51ea88['id'],_0x51ea88[_0x36017c(0x24f)]?JSON[_0x36017c(0x22b)](_0x51ea88[_0x36017c(0x24f)]):null,{'fromCollab':!0x0});});}[_0x466b10(0x210)](){const _0x99c559=_0x466b10;var _0x273f2d;this[_0x99c559(0x1e4)][_0x99c559(0x1dd)](_0x99c559(0x1f8)),(_0x273f2d=this[_0x99c559(0x1d4)])==null||_0x273f2d['dispose']();}[_0x466b10(0x20a)](){const _0x1b8c42=_0x466b10;this['_status$'][_0x1b8c42(0x1dd)](_0x1b8c42(0x1fa)),this['_fetchOperations']();}};N=Y([_(0x2,_0x534aaa),_(0x3,_0xb810a1(L)),_(0x4,_0x462048)],N);function Le(){const _0x3f93f9=_0x466b10,_0x10611e=_0x57b7f1(S),_0x1816dc=_0x57b7f1(_0x2136d5),_0x276c7a=_0x2f47a8(()=>_0x1816dc[_0x3f93f9(0x268)](_0x5da7e1[_0x3f93f9(0x244)]),void 0x0,!0x1,[]),[_0x156f8b,_0x3e5743]=_0x34edd8(null),[_0x4b5522,_0x5283c2]=_0x34edd8(c[_0x3f93f9(0x26f)]),_0x223344=_0x42cbc5(null);return _0x2e4dde(()=>(_0x276c7a&&_0x10611e['getLiveShareCoordinator'](_0x276c7a[_0x3f93f9(0x23c)]())['then'](_0xb3fff9=>{const _0x2a6217=_0x3f93f9;_0x3e5743(_0xb3fff9),_0x223344[_0x2a6217(0x260)]=_0xb3fff9[_0x2a6217(0x250)]['subscribe'](_0x2f145d=>{_0x5283c2(_0x2f145d);});}),()=>{const _0x4d2de4=_0x3f93f9;var _0x3e5943;(_0x3e5943=_0x223344[_0x4d2de4(0x260)])==null||_0x3e5943['unsubscribe'](),_0x223344[_0x4d2de4(0x260)]=null;}),[_0x276c7a,_0x10611e]),_0x156f8b?_0x284072(_0x4d67da,{'align':_0x3f93f9(0x21b),'disabled':_0x4b5522===c['OFFLINE'],'className':_0x3f93f9(0x1ea),'overlay':_0x284072(Re,{'status':_0x4b5522,'coordinator':_0x156f8b}),'children':_0x284072(_0x3f93f9(0x1ef),{'className':_0x3b0bb0(_0x3f93f9(0x1f2),{'univer-cursor-not-allowed':_0x4b5522===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4b5522!==c[_0x3f93f9(0x1f7)]}),'type':_0x3f93f9(0x1ef),'children':_0x284072(W,{'className':_0x3f93f9(0x239)})})}):null;}function Re(_0x3a0ee2){const _0x26f4be=_0x466b10,{status:_0x41654e,coordinator:_0x3bf71f}=_0x3a0ee2;switch(_0x41654e){case c[_0x26f4be(0x26f)]:return _0x284072($e,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x1e0)]:return _0x284072(xe,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x24b)]:return _0x284072(Pe,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x1f7)]:return _0x284072(Te,{});case c[_0x26f4be(0x241)]:return _0x284072(Ae,{'coordinator':_0x3bf71f});default:return null;}}function $e(_0x3665d1){const _0x92b163=_0x466b10,{coordinator:_0x2ad800}=_0x3665d1;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x92b163(0x204),{'className':_0x92b163(0x1eb),'children':_0x92b163(0x1fb)}),_0x284072(_0x55525b,{'onClick':()=>_0x2ad800['tryStartPresenting'](),'children':_0x92b163(0x1df)})]});}function xe(_0x7fa473){const _0x20cb4c=_0x466b10,{coordinator:_0x4c3d9e}=_0x7fa473;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x20cb4c(0x204),{'className':_0x20cb4c(0x1eb),'children':_0x20cb4c(0x217)}),_0x284072(_0x55525b,{'onClick':()=>_0x4c3d9e[_0x20cb4c(0x228)](),'children':_0x20cb4c(0x21a)})]});}function Pe(_0x5839f4){const _0x5ce9d5=_0x466b10,{coordinator:_0x1e8ea5}=_0x5839f4;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x5ce9d5(0x204),{'className':_0x5ce9d5(0x1eb),'children':_0x5ce9d5(0x272)}),_0x284072(_0x55525b,{'variant':_0x5ce9d5(0x1fe),'onClick':()=>_0x1e8ea5[_0x5ce9d5(0x1e6)](),'children':'Start\x20following'})]});}function Ae(_0x2a2a29){const _0x20e38d=_0x466b10,{coordinator:_0x2f847f}=_0x2a2a29;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x20e38d(0x204),{'className':_0x20e38d(0x1eb),'children':_0x20e38d(0x259)}),_0x284072(_0x55525b,{'variant':_0x20e38d(0x1e7),'onClick':()=>_0x2f847f[_0x20e38d(0x256)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x404097=_0x466b10;return _0x284072(_0x3f7b64,{'children':_0x404097(0x243)});}var Fe=Object[_0x466b10(0x24d)],He=(_0x3af4a8,_0x54c977,_0x45f71f,_0x18468e)=>{const _0x59dd6d=_0x466b10;for(var _0x482524=_0x18468e>0x1?void 0x0:_0x18468e?Fe(_0x54c977,_0x45f71f):_0x54c977,_0x43c9fc=_0x3af4a8[_0x59dd6d(0x225)]-0x1,_0x502c84;_0x43c9fc>=0x0;_0x43c9fc--)(_0x502c84=_0x3af4a8[_0x43c9fc])&&(_0x482524=_0x502c84(_0x482524)||_0x482524);return _0x482524;},A=(_0x35aba6,_0xf7c588)=>(_0x35d55c,_0x2aa1df)=>_0xf7c588(_0x35d55c,_0x2aa1df,_0x35aba6);let m=class extends _0x420bef{constructor(_0x404c5e,_0x1dc60f){const _0x212348=_0x466b10;super(),this[_0x212348(0x231)]=_0x404c5e,this['_uiPartsService']=_0x1dc60f,this[_0x212348(0x1e1)]();}[_0x466b10(0x1e1)](){const _0x15d5d9=_0x466b10;this[_0x15d5d9(0x237)](this[_0x15d5d9(0x220)]['registerComponent'](_0x325241[_0x15d5d9(0x1f0)],()=>_0x5e2acd(Le,this[_0x15d5d9(0x231)])));}};m=He([A(0x0,_0xb810a1(_0x42925d)),A(0x1,_0x13733b)],m);const ye=_0x466b10(0x262),T={};var Ue=Object[_0x466b10(0x24d)],Ve=(_0x46324b,_0x6736d6,_0x582f21,_0x3e0ae3)=>{const _0x24f45b=_0x466b10;for(var _0x35e3c2=_0x3e0ae3>0x1?void 0x0:_0x3e0ae3?Ue(_0x6736d6,_0x582f21):_0x6736d6,_0x2e3ba0=_0x46324b[_0x24f45b(0x225)]-0x1,_0xf878c0;_0x2e3ba0>=0x0;_0x2e3ba0--)(_0xf878c0=_0x46324b[_0x2e3ba0])&&(_0x35e3c2=_0xf878c0(_0x35e3c2)||_0x35e3c2);return _0x35e3c2;},je=(_0x5d8027,_0x4b18db)=>(_0x1c10e9,_0x8d8840)=>_0x4b18db(_0x1c10e9,_0x8d8840,_0x5d8027);let I=class extends _0x420bef{constructor(_0x1331c2){const _0x199c97=_0x466b10;super(),this[_0x199c97(0x224)]=_0x1331c2,this[_0x199c97(0x255)]();}[_0x466b10(0x255)](){[_0x54dcf4['id'],_0x59b67c['id'],_0x1cd2eb['id']]['forEach'](_0x208667=>{const _0xbbf640=_0x2fc8;this[_0xbbf640(0x237)](this['_liveShareService'][_0xbbf640(0x1e2)](_0x208667));});}};I=Ve([je(0x0,_0xb810a1(L))],I);var Me=Object[_0x466b10(0x264)],ke=Object[_0x466b10(0x24d)],Ge=(_0x2721e2,_0x3f4edc,_0x421d52)=>_0x3f4edc in _0x2721e2?Me(_0x2721e2,_0x3f4edc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x421d52}):_0x2721e2[_0x3f4edc]=_0x421d52,We=(_0x4bc93a,_0x3dba69,_0x577d56,_0x4a8b14)=>{const _0x462c7c=_0x466b10;for(var _0x3a2089=_0x4a8b14>0x1?void 0x0:_0x4a8b14?ke(_0x3dba69,_0x577d56):_0x3dba69,_0x293090=_0x4bc93a[_0x462c7c(0x225)]-0x1,_0x577587;_0x293090>=0x0;_0x293090--)(_0x577587=_0x4bc93a[_0x293090])&&(_0x3a2089=_0x577587(_0x3a2089)||_0x3a2089);return _0x3a2089;},F=(_0x96b8f6,_0x27683f)=>(_0x30d0bc,_0x3f9793)=>_0x27683f(_0x30d0bc,_0x3f9793,_0x96b8f6),B=(_0x3c5f67,_0x36697a,_0x629966)=>Ge(_0x3c5f67,typeof _0x36697a!=_0x466b10(0x1d9)?_0x36697a+'':_0x36697a,_0x629966);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x1ab38a{constructor(_0x595ff1=T,_0xe2e66f,_0x27027b){const _0x1b79f1=_0x466b10;super(),this['_config']=_0x595ff1,this[_0x1b79f1(0x231)]=_0xe2e66f,this['_configService']=_0x27027b;const {..._0x1ca6ef}=_0x153f93({},T,this[_0x1b79f1(0x1f4)]);this[_0x1b79f1(0x251)][_0x1b79f1(0x26e)](ye,_0x1ca6ef);}[_0x466b10(0x1fc)](){const _0x10f164=_0x466b10;_0x40c418(this[_0x10f164(0x231)],_0x26a6d8([[L],[S],[I],[m]],this[_0x10f164(0x1f4)][_0x10f164(0x1ec)])),_0x321cc3(this[_0x10f164(0x231)],[[I]]);}[_0x466b10(0x230)](){const _0x46d3c8=_0x466b10;_0x321cc3(this[_0x46d3c8(0x231)],[[m]]);}};B(b,_0x466b10(0x26a),_0x5da7e1[_0x466b10(0x24e)]),B(b,_0x466b10(0x235),Ye),b=We([_0x426f35(_0x27fd59),F(0x1,_0xb810a1(_0x42925d)),F(0x2,_0x534aaa)],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 _0x120a2b=_0x26b9;(function(_0x53f5f9,_0x3bafdc){const _0x2abc08=_0x26b9,_0x2ca953=_0x53f5f9();while(!![]){try{const _0xcb96f3=-parseInt(_0x2abc08(0x100))/0x1*(parseInt(_0x2abc08(0x10c))/0x2)+-parseInt(_0x2abc08(0xaa))/0x3+parseInt(_0x2abc08(0xb8))/0x4*(-parseInt(_0x2abc08(0xd8))/0x5)+-parseInt(_0x2abc08(0xba))/0x6+-parseInt(_0x2abc08(0x7a))/0x7+-parseInt(_0x2abc08(0x94))/0x8*(parseInt(_0x2abc08(0xc1))/0x9)+parseInt(_0x2abc08(0x6b))/0xa;if(_0xcb96f3===_0x3bafdc)break;else _0x2ca953['push'](_0x2ca953['shift']());}catch(_0x5bea76){_0x2ca953['push'](_0x2ca953['shift']());}}}(_0x33a5,0xe3c20));var J=Object['defineProperty'],K=(_0x5aec59,_0x13ca00,_0x4b0ae4)=>_0x13ca00 in _0x5aec59?J(_0x5aec59,_0x13ca00,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b0ae4}):_0x5aec59[_0x13ca00]=_0x4b0ae4,u=(_0x881185,_0x3b3059,_0x539026)=>K(_0x881185,typeof _0x3b3059!=_0x120a2b(0x101)?_0x3b3059+'':_0x3b3059,_0x539026);import{Disposable as _0x10e724,toDisposable as _0xecf4ac,IUniverInstanceService as _0x4f9501,Inject as _0x664ed,Injector as _0x401650,IConfigService as _0x2ed083,ICommandService as _0x135622,RxDisposable as _0x5c1fea,UniverInstanceType as _0x3d4707,DisposableCollection as _0x19993a,CommandType as _0x3476fb,DependentOn as _0x4f1006,Plugin as _0x59667f,merge as _0xfda1f7,registerDependencies as _0x565181,mergeOverrideWithDependencies as _0x33514b,touchDependencies as _0x13d42a}from'@univerjs/core';function _0x26b9(_0x593ca5,_0x2aaf2b){const _0x33a512=_0x33a5();return _0x26b9=function(_0x26b935,_0x346bc3){_0x26b935=_0x26b935-0x6a;let _0x36a114=_0x33a512[_0x26b935];return _0x36a114;},_0x26b9(_0x593ca5,_0x2aaf2b);}import{useDependency as _0x31a3bf,useObservable as _0x1747f3,IUIPartsService as _0x369c81,BuiltInUIPart as _0x10896f,connectInjector as _0x176107}from'@univerjs/ui';import{jsx as _0x2afce9,jsxs as _0x3b072f,Fragment as _0xe9ebfb}from'react/jsx-runtime';import{Dropdown as _0xe72b8,clsx as _0x26a9c1,Button as _0x2ce32f}from'@univerjs/design';import{useRef as _0x2d670c,createElement as _0x31ddf7,forwardRef as _0x4ebddd,useState as _0x1c978f,useEffect as _0x14c993}from'react';import{CollaborationEvent as _0x433ed7,parseProtocolChangeset as _0x289710}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x507a8b,SessionStatus as _0x2fb0b9,UniverCollaborationClientPlugin as _0x1e5f88}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x528955,SetWorksheetActiveOperation as _0x38317b}from'@univerjs/sheets';import{BehaviorSubject as _0x3ecabd,Subject as _0x5c5fdd}from'rxjs';import{takeUntil as _0xb8a7e7,throttleTime as _0x58391f}from'rxjs/operators';import{SetZoomRatioOperation as _0xefa49d,SetScrollOperation as _0x4dd920}from'@univerjs/sheets-ui';function k({ref:_0x531bb1,..._0x37f1e4}){const _0x328225=_0x120a2b,{icon:_0x791cb1,id:_0x56471c,className:_0x28298a,extend:_0x496f10,..._0x3e2e0e}=_0x37f1e4,_0x54923c=(_0x328225(0x9a)+_0x56471c+'\x20'+(_0x28298a||''))[_0x328225(0xe6)](),_0xfd9e0e=_0x2d670c('_'+Oe());return G(_0x791cb1,''+_0x56471c,{'defIds':_0x791cb1['defIds'],'idSuffix':_0xfd9e0e[_0x328225(0xc3)]},{'ref':_0x531bb1,'className':_0x54923c,..._0x3e2e0e},_0x496f10);}function G(_0x268017,_0x3c0cad,_0x4918b6,_0x5d2c6e,_0x5b4827){const _0x5ddc65=_0x120a2b;return _0x31ddf7(_0x268017[_0x5ddc65(0x8f)],{'key':_0x3c0cad,...be(_0x268017,_0x4918b6,_0x5b4827),..._0x5d2c6e},(Ee(_0x268017,_0x4918b6)[_0x5ddc65(0xf2)]||[])[_0x5ddc65(0x83)]((_0x56c7ef,_0x1031c3)=>G(_0x56c7ef,_0x3c0cad+'-'+_0x268017[_0x5ddc65(0x8f)]+'-'+_0x1031c3,_0x4918b6,void 0x0,_0x5b4827)));}function be(_0x4c63d5,_0x25f124,_0x26f969){const _0x556b5a=_0x120a2b,_0x5d28ef={..._0x4c63d5[_0x556b5a(0x90)]};_0x26f969!=null&&_0x26f969[_0x556b5a(0x10b)]&&_0x5d28ef[_0x556b5a(0xee)]==='colorChannel1'&&(_0x5d28ef[_0x556b5a(0xee)]=_0x26f969['colorChannel1']),_0x4c63d5[_0x556b5a(0x8f)]===_0x556b5a(0x9d)&&_0x5d28ef['id']&&(_0x5d28ef['id']=_0x5d28ef['id']+_0x25f124['idSuffix']),Object[_0x556b5a(0xf9)](_0x5d28ef)[_0x556b5a(0x79)](([_0x41037a,_0x377b0c])=>{const _0x38dd7f=_0x556b5a;_0x41037a===_0x38dd7f(0x9d)&&typeof _0x377b0c==_0x38dd7f(0x10a)&&(_0x5d28ef[_0x41037a]=_0x377b0c[_0x38dd7f(0x107)](/url\(#(.*)\)/,_0x38dd7f(0xda)+_0x25f124[_0x38dd7f(0xbb)]+')'));});const {defIds:_0x4eccee}=_0x25f124;return!_0x4eccee||_0x4eccee[_0x556b5a(0xa6)]===0x0||(_0x4c63d5[_0x556b5a(0x8f)]==='use'&&_0x5d28ef[_0x556b5a(0xca)]&&(_0x5d28ef[_0x556b5a(0xca)]=_0x5d28ef[_0x556b5a(0xca)]+_0x25f124['idSuffix']),Object[_0x556b5a(0xf9)](_0x5d28ef)[_0x556b5a(0x79)](([_0x3eaad4,_0x4c248f])=>{const _0x4cf940=_0x556b5a;typeof _0x4c248f==_0x4cf940(0x10a)&&(_0x5d28ef[_0x3eaad4]=_0x4c248f[_0x4cf940(0x107)](/url\(#(.*)\)/,_0x4cf940(0xda)+_0x25f124[_0x4cf940(0xbb)]+')'));})),_0x5d28ef;}function Ee(_0x31b646,_0x18c57e){const _0x40c462=_0x120a2b;var _0x3340f1;const {defIds:_0x582a67}=_0x18c57e;return!_0x582a67||_0x582a67['length']===0x0?_0x31b646:_0x31b646[_0x40c462(0x8f)]===_0x40c462(0xd9)&&((_0x3340f1=_0x31b646[_0x40c462(0xf2)])!=null&&_0x3340f1[_0x40c462(0xa6)])?{..._0x31b646,'children':_0x31b646[_0x40c462(0xf2)][_0x40c462(0x83)](_0x4f92e9=>typeof _0x4f92e9[_0x40c462(0x90)]['id']=='string'&&_0x582a67&&_0x582a67[_0x40c462(0xcb)](_0x4f92e9[_0x40c462(0x90)]['id'])?{..._0x4f92e9,'attrs':{..._0x4f92e9[_0x40c462(0x90)],'id':_0x4f92e9[_0x40c462(0x90)]['id']+_0x18c57e['idSuffix']}}:_0x4f92e9)}:_0x31b646;}function Oe(){const _0x3db730=_0x120a2b;return Math[_0x3db730(0xb6)]()['toString'](0x24)[_0x3db730(0xb5)](0x2,0x8);}k[_0x120a2b(0x77)]=_0x120a2b(0xac);const we={'tag':_0x120a2b(0xd3),'attrs':{'xmlns':_0x120a2b(0xf5),'fill':_0x120a2b(0xde),'viewBox':_0x120a2b(0xfe),'width':_0x120a2b(0xc9),'height':_0x120a2b(0xc9)},'children':[{'tag':_0x120a2b(0x106),'attrs':{'fill':'currentColor','d':_0x120a2b(0xa7)}},{'tag':_0x120a2b(0x106),'attrs':{'fill':_0x120a2b(0xc0),'d':_0x120a2b(0x6d),'fillRule':_0x120a2b(0x97),'clipRule':_0x120a2b(0x97)}}]},W=_0x4ebddd(function(_0x5c0f69,_0x3c1549){const _0x2eb2e5=_0x120a2b;return _0x31ddf7(k,Object[_0x2eb2e5(0x8e)]({},_0x5c0f69,{'id':_0x2eb2e5(0x96),'ref':_0x3c1549,'icon':we}));});W[_0x120a2b(0x77)]=_0x120a2b(0xf7);class L extends _0x10e724{constructor(){const _0x32ce2d=_0x120a2b;super(...arguments),u(this,_0x32ce2d(0xe1),new Set()),u(this,_0x32ce2d(0xec),new Set());}[_0x120a2b(0x111)](_0x2a9046){const _0x3623b2=_0x120a2b;return this[_0x3623b2(0xe1)][_0x3623b2(0x103)](_0x2a9046),_0xecf4ac(()=>this[_0x3623b2(0xe1)][_0x3623b2(0xa4)](_0x2a9046));}[_0x120a2b(0xa8)](_0x5a48f9){const _0x331f3c=_0x120a2b;return this[_0x331f3c(0xec)][_0x331f3c(0x103)](_0x5a48f9),_0xecf4ac(()=>this[_0x331f3c(0xec)][_0x331f3c(0xa4)](_0x5a48f9));}[_0x120a2b(0xf4)](_0x3584e9){const _0x14e6ac=_0x120a2b;return this[_0x14e6ac(0xe1)][_0x14e6ac(0xe5)](_0x3584e9);}['getInitialStates'](_0x4f1bc3){const _0x559b77=_0x120a2b;return Array['from'](this['_reporters'])[_0x559b77(0x83)](_0x9f0075=>_0x9f0075(_0x4f1bc3));}}var Ne=Object[_0x120a2b(0x7e)],Y=(_0x4444f4,_0x4544e7,_0x37c29d,_0x2a448f)=>{const _0x117db8=_0x120a2b;for(var _0x263a5b=_0x2a448f>0x1?void 0x0:_0x2a448f?Ne(_0x4544e7,_0x37c29d):_0x4544e7,_0x4cf82e=_0x4444f4[_0x117db8(0xa6)]-0x1,_0x5a15d2;_0x4cf82e>=0x0;_0x4cf82e--)(_0x5a15d2=_0x4444f4[_0x4cf82e])&&(_0x263a5b=_0x5a15d2(_0x263a5b)||_0x263a5b);return _0x263a5b;},_=(_0x44c7c7,_0x3ae792)=>(_0x1255c9,_0x95eb53)=>_0x3ae792(_0x1255c9,_0x95eb53,_0x44c7c7);let S=class extends _0x5c1fea{constructor(_0x49501a,_0x573dba,_0x3febec){const _0x3cda10=_0x120a2b;super(),u(this,'_entities',new Map()),(this[_0x3cda10(0xbd)]=_0x49501a,this[_0x3cda10(0xfd)]=_0x573dba,this[_0x3cda10(0xab)]=_0x3febec,this['_init']());}async['getLiveShareCoordinator'](_0x17f588){const _0x4b35ff=_0x120a2b;return this[_0x4b35ff(0xc7)][_0x4b35ff(0xe5)](_0x17f588)||await this[_0x4b35ff(0xa2)](_0x17f588),this[_0x4b35ff(0xc7)]['get'](_0x17f588);}[_0x120a2b(0x93)](_0x11211a){const _0x4bd6ff=_0x120a2b;var _0x509f44;return(_0x509f44=this['_entities'][_0x4bd6ff(0xfa)](_0x11211a))!=null?_0x509f44:null;}[_0x120a2b(0x84)](){const _0x457397=_0x120a2b;this[_0x457397(0xbd)][_0x457397(0xeb)](_0x3d4707[_0x457397(0xd0)])[_0x457397(0xcd)](_0xb8a7e7(this[_0x457397(0x88)]))[_0x457397(0x6e)](async _0x2c725c=>{const _0x4d0ee7=_0x457397,_0x3efd52=_0x2c725c[_0x4d0ee7(0x99)]();this[_0x4d0ee7(0xc7)]['has'](_0x3efd52)||this['_startLiveShareCoordinator'](_0x3efd52);}),this[_0x457397(0xbd)][_0x457397(0x9b)](_0x3d4707[_0x457397(0xd0)])[_0x457397(0xcd)](_0xb8a7e7(this['dispose$']))[_0x457397(0x6e)](_0xef4b1f=>{const _0x46daf=_0x457397,_0x1d0fe8=_0xef4b1f[_0x46daf(0x99)](),_0x3e173a=this[_0x46daf(0xc7)]['get'](_0x1d0fe8);_0x3e173a==null||_0x3e173a['dispose']();});}async[_0x120a2b(0xa2)](_0xdbc3d7){const _0x36237b=_0x120a2b,_0x4f8ff0=await this['_collabSessionService'][_0x36237b(0xbf)](_0xdbc3d7),_0x1f85ca=this[_0x36237b(0xfd)][_0x36237b(0x92)](N,_0xdbc3d7,_0x4f8ff0);return _0x1f85ca[_0x36237b(0xf1)](),this[_0x36237b(0xc7)][_0x36237b(0xbe)](_0xdbc3d7,_0x1f85ca),_0x1f85ca;}};S=Y([_(0x0,_0x4f9501),_(0x1,_0x664ed(_0x401650)),_(0x2,_0x664ed(_0x507a8b))],S);var c=(_0x272c8e=>(_0x272c8e[_0x120a2b(0x98)]=_0x120a2b(0xbc),_0x272c8e[_0x120a2b(0xe9)]=_0x120a2b(0x6c),_0x272c8e[_0x120a2b(0xdd)]=_0x120a2b(0xfc),_0x272c8e['NOT_FOLLOWING']=_0x120a2b(0xce),_0x272c8e[_0x120a2b(0xb1)]=_0x120a2b(0x10f),_0x272c8e))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x5c1fea{constructor(_0x47990c,_0x240b24,_0x37f971,_0xe39edd,_0x349276){const _0x545f70=_0x120a2b;super(),u(this,'_status$',new _0x3ecabd('idle')),u(this,'status$',this[_0x545f70(0xb0)][_0x545f70(0xa9)]()),u(this,_0x545f70(0x84),!0x1),u(this,'_commandDisposable',null),u(this,_0x545f70(0x73),null),(this[_0x545f70(0xd1)]=_0x47990c,this['_collabSession']=_0x240b24,this[_0x545f70(0x71)]=_0x37f971,this[_0x545f70(0xaf)]=_0xe39edd,this[_0x545f70(0xed)]=_0x349276);}get[_0x120a2b(0x80)](){const _0x5d93a6=_0x120a2b;return this[_0x5d93a6(0xb0)][_0x5d93a6(0x7f)]();}[_0x120a2b(0xf3)](){const _0x318e54=_0x120a2b;var _0x5b49f3;(_0x5b49f3=this[_0x318e54(0xc5)])==null||_0x5b49f3[_0x318e54(0xf3)](),this[_0x318e54(0xb0)][_0x318e54(0xdc)](_0x318e54(0x6c)),this[_0x318e54(0xb0)][_0x318e54(0x104)]();}[_0x120a2b(0xae)](){const _0x47c849=_0x120a2b;return this[_0x47c849(0x80)];}[_0x120a2b(0xf1)](){const _0x218bae=_0x120a2b;this[_0x218bae(0x84)]||(this[_0x218bae(0x84)]=!0x0,this[_0x218bae(0x82)][_0x218bae(0xfb)][_0x218bae(0xcd)](_0xb8a7e7(this[_0x218bae(0x88)]))['subscribe'](_0x2d672a=>{const _0x4ff1b8=_0x218bae;switch(_0x2d672a){case _0x2fb0b9[_0x4ff1b8(0x98)]:this['_handleOffline']();break;case _0x2fb0b9[_0x4ff1b8(0xf6)]:this[_0x4ff1b8(0x7c)]();break;}}),this[_0x218bae(0x82)]['event$']['pipe'](_0xb8a7e7(this[_0x218bae(0x88)]))['subscribe'](_0x1201b9=>{const _0x4bc30d=_0x218bae,{eventID:_0x1be1cc}=_0x1201b9;switch(_0x1be1cc){case _0x433ed7[_0x4bc30d(0x95)]:this[_0x4bc30d(0x9c)](_0x1201b9);break;case _0x433ed7[_0x4bc30d(0xd7)]:this[_0x4bc30d(0xdb)](_0x1201b9);break;case _0x433ed7[_0x4bc30d(0xe3)]:this[_0x4bc30d(0x85)]();break;case _0x433ed7[_0x4bc30d(0x72)]:this['_handleNewChangeSets'](_0x1201b9);break;}}));}[_0x120a2b(0xcc)](){const _0x56d836=_0x120a2b;this[_0x56d836(0x82)][_0x56d836(0xc2)]({'eventID':_0x433ed7[_0x56d836(0x70)],'data':{'unitID':this[_0x56d836(0xd1)],'userID':this['_collabSession'][_0x56d836(0x7d)]()}},this[_0x56d836(0xd1)]);}[_0x120a2b(0x110)](){const _0x531d35=_0x120a2b;this[_0x531d35(0x80)]===_0x531d35(0x10f)&&(this[_0x531d35(0xb0)][_0x531d35(0xdc)](_0x531d35(0x6c)),this[_0x531d35(0x82)]['send']({'eventID':_0x433ed7['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x120a2b(0xc6)](){const _0x1a29e2=_0x120a2b;this['_status']===_0x1a29e2(0xce)&&(this[_0x1a29e2(0xb0)][_0x1a29e2(0xdc)](_0x1a29e2(0xfc)),this[_0x1a29e2(0x75)]());}[_0x120a2b(0x108)](){const _0x23c3cd=_0x120a2b;this[_0x23c3cd(0x80)]===_0x23c3cd(0xfc)&&this['_stopFollowing']();}['_handleNewHost'](_0x562927){const _0x52edc2=_0x120a2b,{presenter:_0x5d017b}=_0x562927[_0x52edc2(0xcf)],_0x307e38=this[_0x52edc2(0x82)][_0x52edc2(0x7d)]();this[_0x52edc2(0x73)]=_0x5d017b,_0x5d017b===_0x307e38?(this[_0x52edc2(0xdf)](),this[_0x52edc2(0x105)]()):this[_0x52edc2(0x80)]!==_0x52edc2(0xce)&&(this[_0x52edc2(0x76)](),this[_0x52edc2(0x75)]());}[_0x120a2b(0xa0)](){const _0x4bcbc9=_0x120a2b,_0x3e186b={'eventID':_0x433ed7[_0x4bcbc9(0x87)]};this['_collabSession']['send'](_0x3e186b,this[_0x4bcbc9(0xd1)]);}[_0x120a2b(0x85)](){const _0x11c43e=_0x120a2b;this[_0x11c43e(0x73)]=null,this[_0x11c43e(0x80)]!==_0x11c43e(0x10f)&&this['_beIdle']();}[_0x120a2b(0xa3)](_0x2ead8e){const _0x530eea=_0x120a2b;if(this['_status']==='following'&&this[_0x530eea(0x73)]===_0x2ead8e[_0x530eea(0xcf)]['memberID']){const _0x496aeb=_0x289710(_0x2ead8e[_0x530eea(0xcf)])['mutations']['reverse']()[_0x530eea(0x10d)](_0x378144=>_0x378144['id']===_0x528955['id']);if(_0x496aeb){const _0x53e397=_0x496aeb['params']['unitId'],_0x2e67ba=_0x496aeb[_0x530eea(0xff)][_0x530eea(0xb2)]['id'];setTimeout(()=>{const _0x4ed03c=_0x530eea;this[_0x4ed03c(0xed)][_0x4ed03c(0x81)](_0x38317b['id'],{'unitId':_0x53e397,'subUnitId':_0x2e67ba},{'fromCollab':!0x0});});}}}[_0x120a2b(0x105)](){const _0x11aca7=_0x120a2b;this[_0x11aca7(0xb0)][_0x11aca7(0xdc)](_0x11aca7(0x10f));const _0x2a724e=new Map(),_0x3fb228=this[_0x11aca7(0xc5)]=new _0x19993a();_0x3fb228[_0x11aca7(0x103)](_0xecf4ac(()=>{const _0x4356ee=_0x11aca7;_0x2a724e[_0x4356ee(0x79)](_0x1a11b3=>_0x1a11b3[_0x4356ee(0x104)]()),_0x2a724e['clear']();})),_0x3fb228[_0x11aca7(0x103)](this['_commandService']['onCommandExecuted'](_0x3b7c5b=>{const _0xb070a=_0x11aca7;var _0x56eca9;if(_0x3b7c5b[_0xb070a(0x74)]!==_0x3476fb[_0xb070a(0x109)]||!this['_liveShareService']['shouldShareOperation'](_0x3b7c5b['id']))return;const {id:_0x4b5d25}=_0x3b7c5b;let _0x471d2d;_0x2a724e[_0xb070a(0xe5)](_0x4b5d25)?_0x471d2d=_0x2a724e[_0xb070a(0xfa)](_0x4b5d25):(_0x471d2d=new _0x5c5fdd(),_0x2a724e[_0xb070a(0xbe)](_0x4b5d25,_0x471d2d),_0x471d2d[_0xb070a(0xcd)](_0x58391f((_0x56eca9=this['_configService'][_0xb070a(0x91)](Ce))!=null?_0x56eca9:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1d3958=>{const _0x3aced7=_0xb070a;this[_0x3aced7(0x82)][_0x3aced7(0xc2)]({'eventID':_0x433ed7[_0x3aced7(0xd7)],'data':{'unitID':this['_unitID'],'operations':{[_0x1d3958['id']]:{'id':_0x1d3958['id'],'params':JSON[_0x3aced7(0x7b)](_0x1d3958[_0x3aced7(0xff)])}}}},this[_0x3aced7(0xd1)]);})),_0x471d2d[_0xb070a(0xdc)](_0x3b7c5b);})),this[_0x11aca7(0xaf)][_0x11aca7(0xd4)](this['_unitID'])[_0x11aca7(0x79)](_0x5da544=>this[_0x11aca7(0x82)][_0x11aca7(0xc2)]({'eventID':_0x433ed7[_0x11aca7(0xd7)],'data':{'unitID':this['_unitID'],'operations':{[_0x5da544['id']]:{'id':_0x5da544['id'],'params':JSON[_0x11aca7(0x7b)](_0x5da544[_0x11aca7(0xff)])}}}},this[_0x11aca7(0xd1)]));}[_0x120a2b(0x76)](){const _0x342452=_0x120a2b;var _0x27bd64;this['_status$'][_0x342452(0xdc)](_0x342452(0x6c)),(_0x27bd64=this['_commandDisposable'])==null||_0x27bd64[_0x342452(0xf3)](),this[_0x342452(0xc5)]=null;}[_0x120a2b(0x75)](){const _0x436a9e=_0x120a2b;var _0x5c4981;(_0x5c4981=this[_0x436a9e(0xc5)])==null||_0x5c4981[_0x436a9e(0xf3)](),this[_0x436a9e(0xb0)][_0x436a9e(0xdc)](_0x436a9e(0xfc));}[_0x120a2b(0xd6)](){const _0x41f5c1=_0x120a2b;var _0x968e67;this[_0x41f5c1(0xb0)][_0x41f5c1(0xdc)](_0x41f5c1(0x6c)),(_0x968e67=this[_0x41f5c1(0xc5)])==null||_0x968e67[_0x41f5c1(0xf3)](),this[_0x41f5c1(0xc5)]=null;}[_0x120a2b(0xdf)](){const _0x15f675=_0x120a2b;var _0x54cb18;this[_0x15f675(0xb0)]['next']('not-following'),(_0x54cb18=this['_commandDisposable'])==null||_0x54cb18[_0x15f675(0xf3)]();}[_0x120a2b(0xdb)](_0x18daef){const _0x27d8af=_0x120a2b;if([_0x27d8af(0x10f),_0x27d8af(0xce),'offline'][_0x27d8af(0xcb)](this['_status'])||!_0x18daef[_0x27d8af(0xcf)][_0x27d8af(0x8a)]||_0x18daef[_0x27d8af(0xcf)][_0x27d8af(0x8a)]===this[_0x27d8af(0x82)]['getMemberID']())return;this[_0x27d8af(0x80)]===_0x27d8af(0x6c)&&this['_startFollowing']();const _0x399f57=_0x18daef[_0x27d8af(0xcf)][_0x27d8af(0xe0)];Object[_0x27d8af(0xb4)](_0x399f57)['forEach'](_0x59e36c=>{const _0x48a273=_0x27d8af;this['_commandService'][_0x48a273(0x81)](_0x59e36c['id'],_0x59e36c['params']?JSON['parse'](_0x59e36c[_0x48a273(0xff)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4844ac=_0x120a2b;var _0x59e07e;this['_status$'][_0x4844ac(0xdc)]('offline'),(_0x59e07e=this[_0x4844ac(0xc5)])==null||_0x59e07e[_0x4844ac(0xf3)]();}['_handleOnline'](){const _0x1c60d5=_0x120a2b;this['_status$'][_0x1c60d5(0xdc)]('idle'),this[_0x1c60d5(0xa0)]();}};N=Y([_(0x2,_0x2ed083),_(0x3,_0x664ed(L)),_(0x4,_0x135622)],N);function Le(){const _0x463f39=_0x120a2b,_0x46a9e9=_0x31a3bf(S),_0x39a1d8=_0x31a3bf(_0x4f9501),_0x1b4d32=_0x1747f3(()=>_0x39a1d8[_0x463f39(0xb3)](_0x3d4707[_0x463f39(0xd0)]),void 0x0,!0x1,[]),[_0x19aaaa,_0x2885fb]=_0x1c978f(null),[_0x405f72,_0x44e2cb]=_0x1c978f(c[_0x463f39(0xe9)]),_0x45b225=_0x2d670c(null);return _0x14c993(()=>(_0x1b4d32&&_0x46a9e9[_0x463f39(0x6a)](_0x1b4d32[_0x463f39(0x99)]())[_0x463f39(0xa1)](_0x3c85d1=>{const _0x4eeaeb=_0x463f39;_0x2885fb(_0x3c85d1),_0x45b225['current']=_0x3c85d1[_0x4eeaeb(0x8d)][_0x4eeaeb(0x6e)](_0x40e140=>{_0x44e2cb(_0x40e140);});}),()=>{const _0x777e1e=_0x463f39;var _0x18c64d;(_0x18c64d=_0x45b225[_0x777e1e(0xc3)])==null||_0x18c64d['unsubscribe'](),_0x45b225[_0x777e1e(0xc3)]=null;}),[_0x1b4d32,_0x46a9e9]),_0x19aaaa?_0x2afce9(_0xe72b8,{'align':_0x463f39(0xc8),'disabled':_0x405f72===c[_0x463f39(0x98)],'className':_0x463f39(0xc4),'overlay':_0x2afce9(Re,{'status':_0x405f72,'coordinator':_0x19aaaa}),'children':_0x2afce9(_0x463f39(0xe2),{'className':_0x26a9c1(_0x463f39(0xa5),{'univer-cursor-not-allowed':_0x405f72===c[_0x463f39(0x98)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x405f72!==c[_0x463f39(0x98)]}),'type':_0x463f39(0xe2),'children':_0x2afce9(W,{'className':_0x463f39(0xd5)})})}):null;}function Re(_0xed9dca){const _0x158508=_0x120a2b,{status:_0x2a6a68,coordinator:_0x4c5fcb}=_0xed9dca;switch(_0x2a6a68){case c[_0x158508(0xe9)]:return _0x2afce9($e,{'coordinator':_0x4c5fcb});case c[_0x158508(0xdd)]:return _0x2afce9(xe,{'coordinator':_0x4c5fcb});case c[_0x158508(0x8b)]:return _0x2afce9(Pe,{'coordinator':_0x4c5fcb});case c[_0x158508(0x98)]:return _0x2afce9(Te,{});case c[_0x158508(0xb1)]:return _0x2afce9(Ae,{'coordinator':_0x4c5fcb});default:return null;}}function $e(_0x3acaff){const _0x560af8=_0x120a2b,{coordinator:_0x2308e4}=_0x3acaff;return _0x3b072f(_0xe9ebfb,{'children':[_0x2afce9(_0x560af8(0xef),{'className':_0x560af8(0xe8),'children':_0x560af8(0x102)}),_0x2afce9(_0x2ce32f,{'onClick':()=>_0x2308e4[_0x560af8(0xcc)](),'children':_0x560af8(0x89)})]});}function xe(_0x5bff8f){const _0x3bd514=_0x120a2b,{coordinator:_0x54bf65}=_0x5bff8f;return _0x3b072f(_0xe9ebfb,{'children':[_0x2afce9(_0x3bd514(0xef),{'className':_0x3bd514(0xe8),'children':_0x3bd514(0xb7)}),_0x2afce9(_0x2ce32f,{'onClick':()=>_0x54bf65[_0x3bd514(0x108)](),'children':'Stop\x20following'})]});}function Pe(_0x59df18){const _0x58873b=_0x120a2b,{coordinator:_0x47bf72}=_0x59df18;return _0x3b072f(_0xe9ebfb,{'children':[_0x2afce9(_0x58873b(0xef),{'className':_0x58873b(0xe8),'children':_0x58873b(0x9e)}),_0x2afce9(_0x2ce32f,{'variant':_0x58873b(0x10e),'onClick':()=>_0x47bf72['startFollowing'](),'children':_0x58873b(0xd2)})]});}function Ae(_0x84d2bc){const _0x4de0f3=_0x120a2b,{coordinator:_0x362b06}=_0x84d2bc;return _0x3b072f(_0xe9ebfb,{'children':[_0x2afce9(_0x4de0f3(0xef),{'className':_0x4de0f3(0xe8),'children':_0x4de0f3(0xe4)}),_0x2afce9(_0x2ce32f,{'variant':_0x4de0f3(0x9f),'onClick':()=>_0x362b06[_0x4de0f3(0x110)](),'children':_0x4de0f3(0x86)})]});}function Te(){return _0x2afce9(_0xe9ebfb,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x120a2b(0x7e)],He=(_0x4ae75e,_0x4376df,_0x38cf38,_0x83c59e)=>{for(var _0x1f0a87=_0x83c59e>0x1?void 0x0:_0x83c59e?Fe(_0x4376df,_0x38cf38):_0x4376df,_0x1a21a2=_0x4ae75e['length']-0x1,_0x4778cf;_0x1a21a2>=0x0;_0x1a21a2--)(_0x4778cf=_0x4ae75e[_0x1a21a2])&&(_0x1f0a87=_0x4778cf(_0x1f0a87)||_0x1f0a87);return _0x1f0a87;},A=(_0x312b5c,_0x225ce6)=>(_0x43ab94,_0x51269d)=>_0x225ce6(_0x43ab94,_0x51269d,_0x312b5c);let m=class extends _0x10e724{constructor(_0x1a62d5,_0x42bb1e){const _0x1d6151=_0x120a2b;super(),this[_0x1d6151(0xfd)]=_0x1a62d5,this[_0x1d6151(0xea)]=_0x42bb1e,this['_mountLiveShare']();}[_0x120a2b(0x8c)](){const _0x14eb27=_0x120a2b;this[_0x14eb27(0xb9)](this['_uiPartsService']['registerComponent'](_0x10896f[_0x14eb27(0xe7)],()=>_0x176107(Le,this[_0x14eb27(0xfd)])));}};m=He([A(0x0,_0x664ed(_0x401650)),A(0x1,_0x369c81)],m);const ye='live-share.config',T={};var Ue=Object[_0x120a2b(0x7e)],Ve=(_0x2bd9f4,_0xf7cd02,_0x5e5089,_0x587a76)=>{const _0x3a8b67=_0x120a2b;for(var _0x1f02c5=_0x587a76>0x1?void 0x0:_0x587a76?Ue(_0xf7cd02,_0x5e5089):_0xf7cd02,_0x48b4bd=_0x2bd9f4[_0x3a8b67(0xa6)]-0x1,_0x3ab503;_0x48b4bd>=0x0;_0x48b4bd--)(_0x3ab503=_0x2bd9f4[_0x48b4bd])&&(_0x1f02c5=_0x3ab503(_0x1f02c5)||_0x1f02c5);return _0x1f02c5;},je=(_0x40a5e9,_0x36b3a4)=>(_0x32d55d,_0x2b5845)=>_0x36b3a4(_0x32d55d,_0x2b5845,_0x40a5e9);let I=class extends _0x10e724{constructor(_0x4c9ab1){const _0x2483f0=_0x120a2b;super(),this[_0x2483f0(0xaf)]=_0x4c9ab1,this[_0x2483f0(0x84)]();}[_0x120a2b(0x84)](){[_0xefa49d['id'],_0x4dd920['id'],_0x38317b['id']]['forEach'](_0xfdcfc=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0xfdcfc));});}};I=Ve([je(0x0,_0x664ed(L))],I);var Me=Object[_0x120a2b(0x78)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x193fc4,_0x537f5e,_0x4736eb)=>_0x537f5e in _0x193fc4?Me(_0x193fc4,_0x537f5e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4736eb}):_0x193fc4[_0x537f5e]=_0x4736eb,We=(_0xb6ad85,_0x570301,_0x342c8b,_0x111d4c)=>{const _0x1f5071=_0x120a2b;for(var _0x5622b5=_0x111d4c>0x1?void 0x0:_0x111d4c?ke(_0x570301,_0x342c8b):_0x570301,_0x2f76c6=_0xb6ad85[_0x1f5071(0xa6)]-0x1,_0x106e20;_0x2f76c6>=0x0;_0x2f76c6--)(_0x106e20=_0xb6ad85[_0x2f76c6])&&(_0x5622b5=_0x106e20(_0x5622b5)||_0x5622b5);return _0x5622b5;},F=(_0x2bcb6f,_0x33cfcd)=>(_0x21554f,_0x4cd5c0)=>_0x33cfcd(_0x21554f,_0x4cd5c0,_0x2bcb6f),B=(_0x20712b,_0x34edbb,_0x220a71)=>Ge(_0x20712b,typeof _0x34edbb!='symbol'?_0x34edbb+'':_0x34edbb,_0x220a71);const Ye='UNIVER_LIVE_SHARE_PLUGIN';function _0x33a5(){const _0x5782a6=['length','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','registerInitialStateReporter','asObservable','1180479wgzaGz','_collabSessionService','UniverIcon','_config','getStatus','_liveShareService','_status$','PRESENTING','sheet','getCurrentTypeOfUnit$','values','substring','random','You\x27re\x20following\x20the\x20presenter','92SToogS','disposeWithMe','2889060TmwNEm','idSuffix','offline','_univerInstanceService','set','requireSession','currentColor','236646KnKrXj','send','current','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','_commandDisposable','startFollowing','_entities','end','1em','xlink:href','includes','tryStartPresenting','pipe','not-following','data','UNIVER_SHEET','_unitID','Start\x20following','svg','getInitialStates','univer-size-4','_beIdle','LIVESHARE_OPERATION','24820PBrotd','defs','url(#$1','_handleOperation','next','FOLLOWING','none','_stopFollowing','operations','_sharedOperations','button','LIVESHARE_TERMINATE','You\x27re\x20presenting\x20the\x20document','has','trim','HEADER_MENU','univer-mb-3\x20univer-w-full\x20univer-text-sm','IDLE','_uiPartsService','getTypeOfUnitAdded$','_reporters','_commandService','fill','div','setConfig','init','children','dispose','shouldShareOperation','http://www.w3.org/2000/svg','ONLINE','LiveShareIcon','UNIVER_UNKNOWN','entries','get','sessionStatus$','following','_injector','0\x200\x2017\x2017','params','102977Pvsocy','symbol','Present\x20this\x20document','add','complete','_startPresenting','path','replace','stopFollowing','OPERATION','string','colorChannel1','24WjYjTh','find','text','presenting','stopPresenting','registerSharedOperation','getLiveShareCoordinator','47369070vUdLjc','idle','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','subscribe','pluginName','LIVESHARE_REQUEST_HOST','_configService','NEW_CHANGESETS','_presenter','type','_startFollowing','_stopPresenting','displayName','defineProperty','forEach','8476972eputGt','stringify','_handleOnline','getMemberID','getOwnPropertyDescriptor','getValue','_status','executeCommand','_collabSession','map','_init','_handleTerminate','Stop\x20presenting','LIVESHARE_FETCH_OPERATIONS','dispose$','Start','presenter','NOT_FOLLOWING','_mountLiveShare','status$','assign','tag','attrs','getConfig','createInstance','getLiveShareCoordinatorSync','112Hvkpim','LIVESHARE_NEW_HOST','live-share-icon','evenodd','OFFLINE','getUnitId','univerjs-icon\x20univerjs-icon-','getTypeOfUnitDisposed$','_handleNewHost','mask','You\x27re\x20not\x20following\x20the\x20presenter','default','_fetchOperations','then','_startLiveShareCoordinator','_handleNewChangeSets','delete','univer-border-none\x20univer-text-gray-600\x20univer-outline-none'];_0x33a5=function(){return _0x5782a6;};return _0x33a5();}let b=class extends _0x59667f{constructor(_0x21d3f9=T,_0x555017,_0x4239cb){const _0x8b7857=_0x120a2b;super(),this[_0x8b7857(0xad)]=_0x21d3f9,this[_0x8b7857(0xfd)]=_0x555017,this['_configService']=_0x4239cb;const {..._0x436cd3}=_0xfda1f7({},T,this['_config']);this[_0x8b7857(0x71)][_0x8b7857(0xf0)](ye,_0x436cd3);}['onStarting'](){const _0x543d6c=_0x120a2b;_0x565181(this[_0x543d6c(0xfd)],_0x33514b([[L],[S],[I],[m]],this[_0x543d6c(0xad)]['override'])),_0x13d42a(this[_0x543d6c(0xfd)],[[I]]);}['onRendered'](){const _0xc97bac=_0x120a2b;_0x13d42a(this[_0xc97bac(0xfd)],[[m]]);}};B(b,'type',_0x3d4707[_0x120a2b(0xf8)]),B(b,_0x120a2b(0x6f),Ye),b=We([_0x4f1006(_0x1e5f88),F(0x1,_0x664ed(_0x401650)),F(0x2,_0x2ed083)],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 _0x3454(){const _0xfb3749=['stopFollowing','get','startFollowing','LiveShareStatusEnum','syncExecuteCommand','682512pIUrtP','stopPresenting','3998313AZUHFm','LiveShareController','getLiveShareCoordinatorSync','getId','PRESENTING','@univerjs/sheets-ui','function','_injector','5466248GNzLXL','24798dzgCVT','startColumn','FRange','SetScrollOperation','UniverSheetsUi','amd','executeCommand','LiveShareStatus','_initialize','No\x20active\x20workbook\x20found.','UniverEngineRender','startRow','getSheetId','SetWorksheetActiveOperation','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1UvpXBX','UniverSheets','getActiveWorkbook','getUnitId','15wQAFAW','@univerjs/core/facade','UniverProLiveShare','7872770NgSDij','object','FEnum','1870799RDJwmw','1134426TOGsLW','tryStartPresenting','extend','128OrIUDq','getLiveShareStatus','FUniver','getRenderById','UniverCoreFacade','getStatus'];_0x3454=function(){return _0xfb3749;};return _0x3454();}function _0x1d3b(_0x5afd3a,_0x435b71){const _0x345446=_0x3454();return _0x1d3b=function(_0x1d3bdc,_0xa51d80){_0x1d3bdc=_0x1d3bdc-0x163;let _0x484684=_0x345446[_0x1d3bdc];return _0x484684;},_0x1d3b(_0x5afd3a,_0x435b71);}(function(_0x3739c2,_0x33ec43){const _0x3fcdeb=_0x1d3b,_0x2b5ebe=_0x3739c2();while(!![]){try{const _0x75d0a1=parseInt(_0x3fcdeb(0x190))/0x1*(parseInt(_0x3fcdeb(0x168))/0x2)+parseInt(_0x3fcdeb(0x181))/0x3*(-parseInt(_0x3fcdeb(0x16b))/0x4)+-parseInt(_0x3fcdeb(0x194))/0x5*(-parseInt(_0x3fcdeb(0x176))/0x6)+parseInt(_0x3fcdeb(0x167))/0x7+parseInt(_0x3fcdeb(0x180))/0x8+-parseInt(_0x3fcdeb(0x178))/0x9+-parseInt(_0x3fcdeb(0x164))/0xa;if(_0x75d0a1===_0x33ec43)break;else _0x2b5ebe['push'](_0x2b5ebe['shift']());}catch(_0x31be9f){_0x2b5ebe['push'](_0x2b5ebe['shift']());}}}(_0x3454,0x589d1),function(_0x38cdd4,_0x33054d){const _0x557441=_0x1d3b;typeof exports==_0x557441(0x165)&&typeof module<'u'?_0x33054d(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==_0x557441(0x17e)&&define[_0x557441(0x186)]?define(['@univerjs-pro/live-share','@univerjs/engine-render','@univerjs/sheets',_0x557441(0x17d),'@univerjs/sheets/facade',_0x557441(0x195)],_0x33054d):(_0x38cdd4=typeof globalThis<'u'?globalThis:_0x38cdd4||self,_0x33054d(_0x38cdd4[_0x557441(0x163)],_0x38cdd4[_0x557441(0x18b)],_0x38cdd4[_0x557441(0x191)],_0x38cdd4[_0x557441(0x185)],_0x38cdd4['UniverSheetsFacade'],_0x38cdd4[_0x557441(0x16f)]));}(this,function(_0x5bf104,_0x155de7,_0x4d258b,_0x7e8e67,_0x3414b0,_0x106617){'use strict';const _0x1e6ed9=_0x1d3b;class _0x56f481 extends _0x3414b0[_0x1e6ed9(0x183)]{[_0x1e6ed9(0x189)](_0x139846,_0x399fb0,_0x1cab56,_0x3fc2d8,_0x369598){const _0x5cfa2b=_0x1e6ed9,_0x1d5c6d=_0x139846[_0x5cfa2b(0x172)](_0x5bf104[_0x5cfa2b(0x179)]),_0x47e1d6=_0x139846[_0x5cfa2b(0x172)](_0x155de7['IRenderManagerService']),_0x2b8a4e=_0x399fb0['getUnitId'](),_0x11ab18=_0x399fb0['getActiveSheet'](),_0x51e2df=_0x1d5c6d[_0x5cfa2b(0x17a)](_0x2b8a4e);(_0x51e2df==null?void 0x0:_0x51e2df[_0x5cfa2b(0x170)]())!==_0x5bf104[_0x5cfa2b(0x188)][_0x5cfa2b(0x17c)]||(_0x1cab56[_0x5cfa2b(0x18d)]()!==_0x11ab18[_0x5cfa2b(0x18d)]()&&this['_commandService'][_0x5cfa2b(0x187)](_0x4d258b[_0x5cfa2b(0x18e)]['id'],{'unitId':_0x2b8a4e,'subUnitId':_0x1cab56[_0x5cfa2b(0x18d)]()}),!_0x47e1d6[_0x5cfa2b(0x16e)](_0x2b8a4e))||_0x369598[_0x5cfa2b(0x175)](_0x7e8e67[_0x5cfa2b(0x184)]['id'],{'unitId':_0x399fb0[_0x5cfa2b(0x193)](),'sheetId':_0x1cab56[_0x5cfa2b(0x18d)](),'sheetViewStartRow':_0x3fc2d8[_0x5cfa2b(0x18c)],'sheetViewStartColumn':_0x3fc2d8[_0x5cfa2b(0x182)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3414b0[_0x1e6ed9(0x183)][_0x1e6ed9(0x16a)](_0x56f481);class _0x2aebdd extends _0x106617[_0x1e6ed9(0x16d)]{[_0x1e6ed9(0x16c)](){const _0x1cd819=_0x1e6ed9;var _0x17b429,_0x4587ce;const _0x355cf2=this[_0x1cd819(0x17f)][_0x1cd819(0x172)](_0x5bf104[_0x1cd819(0x179)]),_0x26c0d4=(_0x17b429=this[_0x1cd819(0x192)]())==null?void 0x0:_0x17b429[_0x1cd819(0x17b)]();if(!_0x26c0d4)throw new Error(_0x1cd819(0x18a));const _0x15c818=_0x355cf2[_0x1cd819(0x17a)](_0x26c0d4);return(_0x4587ce=_0x15c818==null?void 0x0:_0x15c818[_0x1cd819(0x170)]())!=null?_0x4587ce:_0x5bf104['LiveShareStatus']['IDLE'];}[_0x1e6ed9(0x173)](){const _0x505b58=_0x1e6ed9;var _0x31e395;const _0x31799a=this[_0x505b58(0x17f)][_0x505b58(0x172)](_0x5bf104[_0x505b58(0x179)]),_0x2673fe=(_0x31e395=this['getActiveWorkbook']())==null?void 0x0:_0x31e395[_0x505b58(0x17b)]();if(!_0x2673fe)throw new Error(_0x505b58(0x18a));const _0x2a125d=_0x31799a[_0x505b58(0x17a)](_0x2673fe);if(!_0x2a125d)throw new Error(_0x505b58(0x18f));_0x2a125d[_0x505b58(0x173)]();}[_0x1e6ed9(0x171)](){const _0xa45829=_0x1e6ed9;var _0x1d0563;const _0x2ce8b9=this[_0xa45829(0x17f)][_0xa45829(0x172)](_0x5bf104[_0xa45829(0x179)]),_0x49f3c7=(_0x1d0563=this[_0xa45829(0x192)]())==null?void 0x0:_0x1d0563[_0xa45829(0x17b)]();if(!_0x49f3c7)throw new Error(_0xa45829(0x18a));const _0x33a34a=_0x2ce8b9['getLiveShareCoordinatorSync'](_0x49f3c7);if(!_0x33a34a)throw new Error(_0xa45829(0x18f));_0x33a34a[_0xa45829(0x171)]();}['startPresenting'](){const _0x36627f=_0x1e6ed9;var _0x33986c;const _0x1db53f=this[_0x36627f(0x17f)][_0x36627f(0x172)](_0x5bf104['LiveShareController']),_0x1d021a=(_0x33986c=this[_0x36627f(0x192)]())==null?void 0x0:_0x33986c['getId']();if(!_0x1d021a)throw new Error(_0x36627f(0x18a));const _0x14c5b9=_0x1db53f[_0x36627f(0x17a)](_0x1d021a);if(!_0x14c5b9)throw new Error(_0x36627f(0x18f));_0x14c5b9[_0x36627f(0x169)]();}[_0x1e6ed9(0x177)](){const _0x420e32=_0x1e6ed9;var _0x1e42d5;const _0x537bc3=this[_0x420e32(0x17f)][_0x420e32(0x172)](_0x5bf104['LiveShareController']),_0x557005=(_0x1e42d5=this[_0x420e32(0x192)]())==null?void 0x0:_0x1e42d5[_0x420e32(0x17b)]();if(!_0x557005)throw new Error(_0x420e32(0x18a));const _0x4310e5=_0x537bc3[_0x420e32(0x17a)](_0x557005);if(!_0x4310e5)throw new Error(_0x420e32(0x18f));_0x4310e5[_0x420e32(0x177)]();}}_0x106617[_0x1e6ed9(0x16d)][_0x1e6ed9(0x16a)](_0x2aebdd);class _0x6605b0 extends _0x106617[_0x1e6ed9(0x166)]{get[_0x1e6ed9(0x174)](){const _0x2e0bc6=_0x1e6ed9;return _0x5bf104[_0x2e0bc6(0x188)];}}_0x106617[_0x1e6ed9(0x166)][_0x1e6ed9(0x16a)](_0x6605b0);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x26be(_0x3c0141,_0x47df5e){const _0x40528d=_0x4052();return _0x26be=function(_0x26be72,_0xc68b0e){_0x26be72=_0x26be72-0x1a3;let _0x2f769d=_0x40528d[_0x26be72];return _0x2f769d;},_0x26be(_0x3c0141,_0x47df5e);}function _0x4052(){const _0x46e57a=['@univerjs/ui','univer-size-4','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','CollaborationEvent','delete','presenter','_unitID','LiveShareController','LIVESHARE_TERMINATE','send','UniverSheetsUi','unsubscribe','Fragment','12cVRLRD','registerComponent','react/jsx-runtime','Subject','current','getUnitId','takeUntil','_startFollowing','getValue','_liveShareService','sheet','operators','_beIdle','add','IUniverInstanceService','LiveShareService','getTypeOfUnitDisposed$','You\x27re\x20not\x20following\x20the\x20presenter','mergeOverrideWithDependencies','assign','tryStartPresenting','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','_uiPartsService','LiveShareIcon','defineProperty','LiveShareStatus','shouldShareOperation','ICommandService','set','DisposableCollection','asObservable','You\x27re\x20presenting\x20the\x20document','DependentOn','117954wkvIqs','@univerjs-pro/collaboration','onStarting','_handleOnline','InsertSheetMutation','has','_injector','executeCommand','UniverLiveSharePlugin','requireSession','complete','toDisposable','colorChannel1','getConfig','Disposable','useDependency','@univerjs-pro/collaboration-client','idSuffix','SessionStatus','default','length','useRef','substring','button','currentColor','IDLE','react','IConfigService','onRendered','setConfig','getMemberID','LiveShareCoordinator','forwardRef','values','_fetchOperations','_reporters','_handleOperation','subscribe','toString','following','text','tag','0\x200\x2017\x2017','Injector','from','clsx','_sharedOperations','dispose','createElement','getLiveShareCoordinatorSync','exports','http://www.w3.org/2000/svg','5618696stLPUj','204ExeLEr','pipe','_entities','rxjs','symbol','getLiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UniverIcon','Start','div','registerDependencies','_config','function','NOT_FOLLOWING','xlink:href','React','_init','UNIVER_LIVE_SHARE_PLUGIN','UniverSheets','entries','_handleNewChangeSets','idle','not-following','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','then','mask','svg','displayName','_startLiveShareCoordinator','_handleNewHost','attrs','defs','throttleTime','NEW_CHANGESETS','CollaborationSessionService','live-share.config','live-share-icon','sessionStatus$','override','Start\x20following','_presenter','_univerInstanceService','type','_startPresenting','data','presenting','getCurrentTypeOfUnit$','getInitialStates','LIVESHARE_OPERATION','status$','getTypeOfUnitAdded$','_configService','_status$','37490FoEZjI','Inject','get','42LHrpTE','UniverProCollaboration','BuiltInUIPart','SetWorksheetActiveOperation','evenodd','replace','parseProtocolChangeset','Present\x20this\x20document','event$','You\x27are\x20offline.','10dppwOk','_commandService','SetScrollOperation','startFollowing','CommandType','onCommandExecuted','getOwnPropertyDescriptor','url(#$1','stopPresenting','params','UniverCollaborationClientPlugin','UniverDesign','LIVESHARE_REQUEST_HOST','Stop\x20following','Button','forEach','mutations','3592281OeSsrJ','object','@univerjs/core','SAME_OPERATION_SHARE_INTERVAL','merge','_collabSession','Module','FOLLOWING','jsxs','_mountLiveShare','map','IUIPartsService','LIVESHARE_NEW_HOST','34xthsFG','RxDisposable','OFFLINE','next','HEADER_MENU','includes','@univerjs/design','174660eZLHwG','UNIVER_UNKNOWN','path','useState','40160LFfBUu','jsx','_handleOffline','dispose$','reverse','children','_stopPresenting','LIVESHARE_FETCH_OPERATIONS','registerSharedOperation','_handleTerminate','stringify','useEffect','UniverCore','UniverInstanceType','_commandDisposable','LiveShare','4781367AShDde','_stopFollowing','fill','createInstance','stopFollowing','1em','rxjs/operators','univer-mb-3\x20univer-w-full\x20univer-text-sm','clear','getStatus','univerjs-icon\x20univerjs-icon-','_collabSessionService','offline','touchDependencies','UNIVER_SHEET','_status','DesktopLiveShareController','PRESENTING','init'];_0x4052=function(){return _0x46e57a;};return _0x4052();}(function(_0x57d463,_0x32093e){const _0x19ff1e=_0x26be,_0x17ecf2=_0x57d463();while(!![]){try{const _0x55fea0=parseInt(_0x19ff1e(0x1b3))/0x1*(-parseInt(_0x19ff1e(0x1de))/0x2)+-parseInt(_0x19ff1e(0x26f))/0x3*(-parseInt(_0x19ff1e(0x1e9))/0x4)+parseInt(_0x19ff1e(0x1e5))/0x5+-parseInt(_0x19ff1e(0x23a))/0x6*(-parseInt(_0x19ff1e(0x1b6))/0x7)+-parseInt(_0x19ff1e(0x26e))/0x8+-parseInt(_0x19ff1e(0x1f9))/0x9*(-parseInt(_0x19ff1e(0x1c0))/0xa)+-parseInt(_0x19ff1e(0x1d1))/0xb*(-parseInt(_0x19ff1e(0x219))/0xc);if(_0x55fea0===_0x32093e)break;else _0x17ecf2['push'](_0x17ecf2['shift']());}catch(_0x1590f7){_0x17ecf2['push'](_0x17ecf2['shift']());}}}(_0x4052,0x565ed),function(_0x316cfc,_0x1de4c1){const _0xa0b79=_0x26be;typeof exports==_0xa0b79(0x1d2)&&typeof module<'u'?_0x1de4c1(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==_0xa0b79(0x27b)&&define['amd']?define([_0xa0b79(0x26c),_0xa0b79(0x1d3),_0xa0b79(0x20c),_0xa0b79(0x21b),_0xa0b79(0x1e4),_0xa0b79(0x254),_0xa0b79(0x23b),_0xa0b79(0x24a),'@univerjs/sheets','rxjs',_0xa0b79(0x1ff),'@univerjs/sheets-ui'],_0x1de4c1):(_0x316cfc=typeof globalThis<'u'?globalThis:_0x316cfc||self,_0x1de4c1(_0x316cfc['UniverProLiveShare']={},_0x316cfc[_0xa0b79(0x1f5)],_0x316cfc['UniverUi'],_0x316cfc[_0xa0b79(0x27e)],_0x316cfc[_0xa0b79(0x1cb)],_0x316cfc['React'],_0x316cfc[_0xa0b79(0x1b7)],_0x316cfc['UniverProCollaborationClient'],_0x316cfc[_0xa0b79(0x281)],_0x316cfc[_0xa0b79(0x272)],_0x316cfc[_0xa0b79(0x272)][_0xa0b79(0x224)],_0x316cfc[_0xa0b79(0x216)]));}(this,function(_0x13d81c,_0x1d786e,_0xf1bd4c,_0x35cb2b,_0x446433,_0x8c7f55,_0x1fca55,_0xc0c90e,_0x15e0c1,_0x321dc8,_0x3c765f,_0x2dd477){'use strict';const _0x2a0c15=_0x26be;var _0x353feb=Object[_0x2a0c15(0x231)],_0x4329df=(_0x161b67,_0x262591,_0x303180)=>_0x262591 in _0x161b67?_0x353feb(_0x161b67,_0x262591,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x303180}):_0x161b67[_0x262591]=_0x303180,_0x2a87fc=(_0xcc9999,_0x3e28d2,_0x58ab3b)=>_0x4329df(_0xcc9999,typeof _0x3e28d2!=_0x2a0c15(0x273)?_0x3e28d2+'':_0x3e28d2,_0x58ab3b);function _0x22604d({ref:_0x4f3e07,..._0x2c8da8}){const _0x1695fe=_0x2a0c15,{icon:_0x46a881,id:_0x5867dd,className:_0x35be50,extend:_0x273420,..._0xbd261a}=_0x2c8da8,_0x1f06f7=(_0x1695fe(0x203)+_0x5867dd+'\x20'+(_0x35be50||''))['trim'](),_0x9d07b7=_0x8c7f55[_0x1695fe(0x24f)]('_'+_0x3c5743());return _0x90bea2(_0x46a881,''+_0x5867dd,{'defIds':_0x46a881['defIds'],'idSuffix':_0x9d07b7[_0x1695fe(0x21d)]},{'ref':_0x4f3e07,'className':_0x1f06f7,..._0xbd261a},_0x273420);}function _0x90bea2(_0x30bc8f,_0x56229b,_0x453a5c,_0xa94e2e,_0x11cf72){const _0x2d280f=_0x2a0c15;return _0x8c7f55[_0x2d280f(0x26a)](_0x30bc8f[_0x2d280f(0x263)],{'key':_0x56229b,..._0x43c647(_0x30bc8f,_0x453a5c,_0x11cf72),..._0xa94e2e},(_0x4c2eb6(_0x30bc8f,_0x453a5c)['children']||[])[_0x2d280f(0x1db)]((_0x20041d,_0x1fe60c)=>_0x90bea2(_0x20041d,_0x56229b+'-'+_0x30bc8f['tag']+'-'+_0x1fe60c,_0x453a5c,void 0x0,_0x11cf72)));}function _0x43c647(_0x589de6,_0x3bcca6,_0x47b444){const _0x4ac327=_0x2a0c15,_0x25405d={..._0x589de6['attrs']};_0x47b444!=null&&_0x47b444[_0x4ac327(0x246)]&&_0x25405d[_0x4ac327(0x1fb)]===_0x4ac327(0x246)&&(_0x25405d['fill']=_0x47b444['colorChannel1']),_0x589de6[_0x4ac327(0x263)]===_0x4ac327(0x288)&&_0x25405d['id']&&(_0x25405d['id']=_0x25405d['id']+_0x3bcca6[_0x4ac327(0x24b)]),Object[_0x4ac327(0x282)](_0x25405d)['forEach'](([_0x5c59b4,_0x5a4200])=>{const _0x448a27=_0x4ac327;_0x5c59b4==='mask'&&typeof _0x5a4200=='string'&&(_0x25405d[_0x5c59b4]=_0x5a4200['replace'](/url\(#(.*)\)/,_0x448a27(0x1c7)+_0x3bcca6['idSuffix']+')'));});const {defIds:_0x427f75}=_0x3bcca6;return!_0x427f75||_0x427f75[_0x4ac327(0x24e)]===0x0||(_0x589de6['tag']==='use'&&_0x25405d[_0x4ac327(0x27d)]&&(_0x25405d[_0x4ac327(0x27d)]=_0x25405d[_0x4ac327(0x27d)]+_0x3bcca6[_0x4ac327(0x24b)]),Object[_0x4ac327(0x282)](_0x25405d)[_0x4ac327(0x1cf)](([_0x2d58fd,_0x1267cb])=>{const _0x4aaf62=_0x4ac327;typeof _0x1267cb=='string'&&(_0x25405d[_0x2d58fd]=_0x1267cb[_0x4aaf62(0x1bb)](/url\(#(.*)\)/,_0x4aaf62(0x1c7)+_0x3bcca6[_0x4aaf62(0x24b)]+')'));})),_0x25405d;}function _0x4c2eb6(_0x29adf2,_0x58a08c){const _0x520c23=_0x2a0c15;var _0x8ae63c;const {defIds:_0x5c6099}=_0x58a08c;return!_0x5c6099||_0x5c6099[_0x520c23(0x24e)]===0x0?_0x29adf2:_0x29adf2[_0x520c23(0x263)]===_0x520c23(0x28e)&&((_0x8ae63c=_0x29adf2[_0x520c23(0x1ee)])!=null&&_0x8ae63c[_0x520c23(0x24e)])?{..._0x29adf2,'children':_0x29adf2[_0x520c23(0x1ee)][_0x520c23(0x1db)](_0x378434=>typeof _0x378434[_0x520c23(0x28d)]['id']=='string'&&_0x5c6099&&_0x5c6099[_0x520c23(0x1e3)](_0x378434['attrs']['id'])?{..._0x378434,'attrs':{..._0x378434[_0x520c23(0x28d)],'id':_0x378434[_0x520c23(0x28d)]['id']+_0x58a08c[_0x520c23(0x24b)]}}:_0x378434)}:_0x29adf2;}function _0x3c5743(){const _0x445d50=_0x2a0c15;return Math['random']()[_0x445d50(0x260)](0x24)[_0x445d50(0x250)](0x2,0x8);}_0x22604d[_0x2a0c15(0x28a)]=_0x2a0c15(0x276);const _0xa31d67={'tag':_0x2a0c15(0x289),'attrs':{'xmlns':_0x2a0c15(0x26d),'fill':'none','viewBox':_0x2a0c15(0x264),'width':_0x2a0c15(0x1fe),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x2a0c15(0x252),'d':_0x2a0c15(0x22e)}},{'tag':_0x2a0c15(0x1e7),'attrs':{'fill':'currentColor','d':_0x2a0c15(0x20e),'fillRule':_0x2a0c15(0x1ba),'clipRule':'evenodd'}}]},_0x54d1c5=_0x8c7f55[_0x2a0c15(0x25a)](function(_0x13eb99,_0x1aa48a){const _0x3f0261=_0x2a0c15;return _0x8c7f55['createElement'](_0x22604d,Object[_0x3f0261(0x22c)]({},_0x13eb99,{'id':_0x3f0261(0x293),'ref':_0x1aa48a,'icon':_0xa31d67}));});_0x54d1c5[_0x2a0c15(0x28a)]=_0x2a0c15(0x230);class _0x46fbca extends _0x1d786e[_0x2a0c15(0x248)]{constructor(){const _0x40eba5=_0x2a0c15;super(...arguments),_0x2a87fc(this,_0x40eba5(0x268),new Set()),_0x2a87fc(this,_0x40eba5(0x25d),new Set());}['registerSharedOperation'](_0x36c987){const _0x4f4717=_0x2a0c15;return this['_sharedOperations'][_0x4f4717(0x226)](_0x36c987),_0x1d786e[_0x4f4717(0x245)](()=>this['_sharedOperations']['delete'](_0x36c987));}['registerInitialStateReporter'](_0xe85188){const _0x215b37=_0x2a0c15;return this[_0x215b37(0x25d)][_0x215b37(0x226)](_0xe85188),_0x1d786e[_0x215b37(0x245)](()=>this[_0x215b37(0x25d)][_0x215b37(0x210)](_0xe85188));}[_0x2a0c15(0x233)](_0x5ed5e0){const _0x23785a=_0x2a0c15;return this[_0x23785a(0x268)][_0x23785a(0x23f)](_0x5ed5e0);}[_0x2a0c15(0x1ad)](_0x55df76){const _0x3696cc=_0x2a0c15;return Array[_0x3696cc(0x266)](this[_0x3696cc(0x25d)])[_0x3696cc(0x1db)](_0x2ee763=>_0x2ee763(_0x55df76));}}var _0x358647=Object[_0x2a0c15(0x1c6)],_0x28ac43=(_0x11622e,_0x3bef8c,_0xb46b36,_0x547b4a)=>{const _0x4fb9ee=_0x2a0c15;for(var _0x4e36a0=_0x547b4a>0x1?void 0x0:_0x547b4a?_0x358647(_0x3bef8c,_0xb46b36):_0x3bef8c,_0x1fc924=_0x11622e[_0x4fb9ee(0x24e)]-0x1,_0x5711e4;_0x1fc924>=0x0;_0x1fc924--)(_0x5711e4=_0x11622e[_0x1fc924])&&(_0x4e36a0=_0x5711e4(_0x4e36a0)||_0x4e36a0);return _0x4e36a0;},_0x2dac69=(_0x248e24,_0x3c62e5)=>(_0xd6baa6,_0x159396)=>_0x3c62e5(_0xd6baa6,_0x159396,_0x248e24);_0x13d81c[_0x2a0c15(0x213)]=class extends _0x1d786e[_0x2a0c15(0x1df)]{constructor(_0x14022f,_0x2c4fd6,_0x477bfc){const _0x4e8239=_0x2a0c15;super(),_0x2a87fc(this,'_entities',new Map()),(this[_0x4e8239(0x1a7)]=_0x14022f,this[_0x4e8239(0x240)]=_0x2c4fd6,this[_0x4e8239(0x204)]=_0x477bfc,this[_0x4e8239(0x27f)]());}async[_0x2a0c15(0x274)](_0x30175e){const _0x5b09ae=_0x2a0c15;return this[_0x5b09ae(0x271)][_0x5b09ae(0x23f)](_0x30175e)||await this[_0x5b09ae(0x28b)](_0x30175e),this[_0x5b09ae(0x271)][_0x5b09ae(0x1b5)](_0x30175e);}[_0x2a0c15(0x26b)](_0x29ef99){const _0xbcd3ef=_0x2a0c15;var _0x2cd477;return(_0x2cd477=this[_0xbcd3ef(0x271)][_0xbcd3ef(0x1b5)](_0x29ef99))!=null?_0x2cd477:null;}['_init'](){const _0x21f1ff=_0x2a0c15;this[_0x21f1ff(0x1a7)][_0x21f1ff(0x1b0)](_0x1d786e[_0x21f1ff(0x1f6)][_0x21f1ff(0x207)])[_0x21f1ff(0x270)](_0x3c765f[_0x21f1ff(0x21f)](this[_0x21f1ff(0x1ec)]))[_0x21f1ff(0x25f)](async _0x2de74f=>{const _0x5f567e=_0x21f1ff,_0x70080f=_0x2de74f[_0x5f567e(0x21e)]();this[_0x5f567e(0x271)][_0x5f567e(0x23f)](_0x70080f)||this[_0x5f567e(0x28b)](_0x70080f);}),this[_0x21f1ff(0x1a7)][_0x21f1ff(0x229)](_0x1d786e[_0x21f1ff(0x1f6)][_0x21f1ff(0x207)])[_0x21f1ff(0x270)](_0x3c765f['takeUntil'](this[_0x21f1ff(0x1ec)]))[_0x21f1ff(0x25f)](_0x18d737=>{const _0x33811d=_0x21f1ff,_0x310136=_0x18d737['getUnitId'](),_0x343ad6=this[_0x33811d(0x271)][_0x33811d(0x1b5)](_0x310136);_0x343ad6==null||_0x343ad6['dispose']();});}async[_0x2a0c15(0x28b)](_0x15a94f){const _0x5cdaed=_0x2a0c15,_0x3fb1e6=await this[_0x5cdaed(0x204)][_0x5cdaed(0x243)](_0x15a94f),_0x5e285e=this[_0x5cdaed(0x240)][_0x5cdaed(0x1fc)](_0x13d81c[_0x5cdaed(0x259)],_0x15a94f,_0x3fb1e6);return _0x5e285e[_0x5cdaed(0x20b)](),this[_0x5cdaed(0x271)][_0x5cdaed(0x235)](_0x15a94f,_0x5e285e),_0x5e285e;}},_0x13d81c[_0x2a0c15(0x213)]=_0x28ac43([_0x2dac69(0x0,_0x1d786e[_0x2a0c15(0x227)]),_0x2dac69(0x1,_0x1d786e[_0x2a0c15(0x1b4)](_0x1d786e[_0x2a0c15(0x265)])),_0x2dac69(0x2,_0x1d786e[_0x2a0c15(0x1b4)](_0xc0c90e[_0x2a0c15(0x291)]))],_0x13d81c[_0x2a0c15(0x213)]);var _0x70cee6=(_0x428f7d=>(_0x428f7d[_0x2a0c15(0x1e0)]='offline',_0x428f7d[_0x2a0c15(0x253)]=_0x2a0c15(0x284),_0x428f7d[_0x2a0c15(0x1d8)]=_0x2a0c15(0x261),_0x428f7d[_0x2a0c15(0x27c)]=_0x2a0c15(0x285),_0x428f7d[_0x2a0c15(0x20a)]=_0x2a0c15(0x1ab),_0x428f7d))(_0x70cee6||{});const _0x643444=_0x2a0c15(0x1d4),_0x5e1e7e=0xc8;_0x13d81c[_0x2a0c15(0x259)]=class extends _0x1d786e[_0x2a0c15(0x1df)]{constructor(_0x47066f,_0xb9394e,_0x17f695,_0x5aaedf,_0x1a6a89){const _0x3a2ec6=_0x2a0c15;super(),_0x2a87fc(this,'_status$',new _0x321dc8['BehaviorSubject'](_0x3a2ec6(0x284))),_0x2a87fc(this,_0x3a2ec6(0x1af),this['_status$'][_0x3a2ec6(0x237)]()),_0x2a87fc(this,'_init',!0x1),_0x2a87fc(this,_0x3a2ec6(0x1f7),null),_0x2a87fc(this,_0x3a2ec6(0x1a6),null),(this[_0x3a2ec6(0x212)]=_0x47066f,this[_0x3a2ec6(0x1d6)]=_0xb9394e,this[_0x3a2ec6(0x1b1)]=_0x17f695,this['_liveShareService']=_0x5aaedf,this[_0x3a2ec6(0x1c1)]=_0x1a6a89);}get[_0x2a0c15(0x208)](){const _0x474bc6=_0x2a0c15;return this[_0x474bc6(0x1b2)][_0x474bc6(0x221)]();}['dispose'](){const _0x24acf0=_0x2a0c15;var _0x2265b8;(_0x2265b8=this[_0x24acf0(0x1f7)])==null||_0x2265b8[_0x24acf0(0x269)](),this[_0x24acf0(0x1b2)][_0x24acf0(0x1e1)](_0x24acf0(0x284)),this[_0x24acf0(0x1b2)][_0x24acf0(0x244)]();}[_0x2a0c15(0x202)](){const _0x44f95f=_0x2a0c15;return this[_0x44f95f(0x208)];}[_0x2a0c15(0x20b)](){const _0x2d93ea=_0x2a0c15;this[_0x2d93ea(0x27f)]||(this['_init']=!0x0,this[_0x2d93ea(0x1d6)][_0x2d93ea(0x1a3)]['pipe'](_0x3c765f['takeUntil'](this[_0x2d93ea(0x1ec)]))[_0x2d93ea(0x25f)](_0x5c0c4b=>{const _0x3bd6fb=_0x2d93ea;switch(_0x5c0c4b){case _0xc0c90e[_0x3bd6fb(0x24c)][_0x3bd6fb(0x1e0)]:this[_0x3bd6fb(0x1eb)]();break;case _0xc0c90e[_0x3bd6fb(0x24c)]['ONLINE']:this[_0x3bd6fb(0x23d)]();break;}}),this['_collabSession'][_0x2d93ea(0x1be)][_0x2d93ea(0x270)](_0x3c765f[_0x2d93ea(0x21f)](this[_0x2d93ea(0x1ec)]))[_0x2d93ea(0x25f)](_0x5081db=>{const _0x43ba68=_0x2d93ea,{eventID:_0x65b0a6}=_0x5081db;switch(_0x65b0a6){case _0x1fca55['CollaborationEvent'][_0x43ba68(0x1dd)]:this[_0x43ba68(0x28c)](_0x5081db);break;case _0x1fca55['CollaborationEvent'][_0x43ba68(0x1ae)]:this[_0x43ba68(0x25e)](_0x5081db);break;case _0x1fca55[_0x43ba68(0x20f)][_0x43ba68(0x214)]:this['_handleTerminate']();break;case _0x1fca55['CollaborationEvent'][_0x43ba68(0x290)]:this[_0x43ba68(0x283)](_0x5081db);break;}}));}[_0x2a0c15(0x22d)](){const _0x37f708=_0x2a0c15;this['_collabSession'][_0x37f708(0x215)]({'eventID':_0x1fca55[_0x37f708(0x20f)][_0x37f708(0x1cc)],'data':{'unitID':this[_0x37f708(0x212)],'userID':this[_0x37f708(0x1d6)][_0x37f708(0x258)]()}},this[_0x37f708(0x212)]);}[_0x2a0c15(0x1c8)](){const _0x21e68c=_0x2a0c15;this[_0x21e68c(0x208)]===_0x21e68c(0x1ab)&&(this[_0x21e68c(0x1b2)][_0x21e68c(0x1e1)](_0x21e68c(0x284)),this[_0x21e68c(0x1d6)][_0x21e68c(0x215)]({'eventID':_0x1fca55[_0x21e68c(0x20f)][_0x21e68c(0x214)],'data':{'unitID':this['_unitID']}},this[_0x21e68c(0x212)]));}[_0x2a0c15(0x1c3)](){const _0x12d261=_0x2a0c15;this['_status']===_0x12d261(0x285)&&(this[_0x12d261(0x1b2)]['next']('following'),this[_0x12d261(0x220)]());}[_0x2a0c15(0x1fd)](){const _0x5a821a=_0x2a0c15;this['_status']===_0x5a821a(0x261)&&this['_stopFollowing']();}['_handleNewHost'](_0x780630){const _0x107a6a=_0x2a0c15,{presenter:_0x4aade3}=_0x780630[_0x107a6a(0x1aa)],_0x34190b=this['_collabSession'][_0x107a6a(0x258)]();this[_0x107a6a(0x1a6)]=_0x4aade3,_0x4aade3===_0x34190b?(this['_stopFollowing'](),this[_0x107a6a(0x1a9)]()):this['_status']!==_0x107a6a(0x285)&&(this[_0x107a6a(0x1ef)](),this[_0x107a6a(0x220)]());}[_0x2a0c15(0x25c)](){const _0x417804=_0x2a0c15,_0x372c54={'eventID':_0x1fca55['CollaborationEvent'][_0x417804(0x1f0)]};this[_0x417804(0x1d6)][_0x417804(0x215)](_0x372c54,this[_0x417804(0x212)]);}[_0x2a0c15(0x1f2)](){const _0x3e7076=_0x2a0c15;this[_0x3e7076(0x1a6)]=null,this[_0x3e7076(0x208)]!==_0x3e7076(0x1ab)&&this[_0x3e7076(0x225)]();}[_0x2a0c15(0x283)](_0x5e56ac){const _0x47b453=_0x2a0c15;if(this[_0x47b453(0x208)]===_0x47b453(0x261)&&this[_0x47b453(0x1a6)]===_0x5e56ac[_0x47b453(0x1aa)]['memberID']){const _0x1c4dbc=_0x1fca55[_0x47b453(0x1bc)](_0x5e56ac[_0x47b453(0x1aa)])[_0x47b453(0x1d0)][_0x47b453(0x1ed)]()['find'](_0x4ddc54=>_0x4ddc54['id']===_0x15e0c1[_0x47b453(0x23e)]['id']);if(_0x1c4dbc){const _0x38e7da=_0x1c4dbc[_0x47b453(0x1c9)]['unitId'],_0x2c80bb=_0x1c4dbc['params'][_0x47b453(0x223)]['id'];setTimeout(()=>{const _0x14bea8=_0x47b453;this[_0x14bea8(0x1c1)][_0x14bea8(0x241)](_0x15e0c1['SetWorksheetActiveOperation']['id'],{'unitId':_0x38e7da,'subUnitId':_0x2c80bb},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1ed31a=_0x2a0c15;this[_0x1ed31a(0x1b2)][_0x1ed31a(0x1e1)]('presenting');const _0x381218=new Map(),_0xdee7ef=this['_commandDisposable']=new _0x1d786e[(_0x1ed31a(0x236))]();_0xdee7ef[_0x1ed31a(0x226)](_0x1d786e[_0x1ed31a(0x245)](()=>{const _0x4583db=_0x1ed31a;_0x381218[_0x4583db(0x1cf)](_0x589092=>_0x589092[_0x4583db(0x244)]()),_0x381218[_0x4583db(0x201)]();})),_0xdee7ef[_0x1ed31a(0x226)](this[_0x1ed31a(0x1c1)][_0x1ed31a(0x1c5)](_0x4f9b0c=>{const _0x2d1815=_0x1ed31a;var _0x2ca498;if(_0x4f9b0c[_0x2d1815(0x1a8)]!==_0x1d786e[_0x2d1815(0x1c4)]['OPERATION']||!this[_0x2d1815(0x222)][_0x2d1815(0x233)](_0x4f9b0c['id']))return;const {id:_0xfad404}=_0x4f9b0c;let _0x51fd30;_0x381218['has'](_0xfad404)?_0x51fd30=_0x381218[_0x2d1815(0x1b5)](_0xfad404):(_0x51fd30=new _0x321dc8[(_0x2d1815(0x21c))](),_0x381218[_0x2d1815(0x235)](_0xfad404,_0x51fd30),_0x51fd30[_0x2d1815(0x270)](_0x3c765f[_0x2d1815(0x28f)]((_0x2ca498=this[_0x2d1815(0x1b1)][_0x2d1815(0x247)](_0x643444))!=null?_0x2ca498:_0x5e1e7e,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x71f91a=>{const _0x2015c5=_0x2d1815;this['_collabSession'][_0x2015c5(0x215)]({'eventID':_0x1fca55[_0x2015c5(0x20f)][_0x2015c5(0x1ae)],'data':{'unitID':this[_0x2015c5(0x212)],'operations':{[_0x71f91a['id']]:{'id':_0x71f91a['id'],'params':JSON[_0x2015c5(0x1f3)](_0x71f91a[_0x2015c5(0x1c9)])}}}},this['_unitID']);})),_0x51fd30[_0x2d1815(0x1e1)](_0x4f9b0c);})),this[_0x1ed31a(0x222)][_0x1ed31a(0x1ad)](this[_0x1ed31a(0x212)])[_0x1ed31a(0x1cf)](_0x43dec5=>this['_collabSession'][_0x1ed31a(0x215)]({'eventID':_0x1fca55['CollaborationEvent'][_0x1ed31a(0x1ae)],'data':{'unitID':this[_0x1ed31a(0x212)],'operations':{[_0x43dec5['id']]:{'id':_0x43dec5['id'],'params':JSON[_0x1ed31a(0x1f3)](_0x43dec5[_0x1ed31a(0x1c9)])}}}},this['_unitID']));}[_0x2a0c15(0x1ef)](){const _0x580bf3=_0x2a0c15;var _0x1f9c25;this[_0x580bf3(0x1b2)][_0x580bf3(0x1e1)](_0x580bf3(0x284)),(_0x1f9c25=this['_commandDisposable'])==null||_0x1f9c25[_0x580bf3(0x269)](),this[_0x580bf3(0x1f7)]=null;}[_0x2a0c15(0x220)](){const _0x5b1329=_0x2a0c15;var _0x71e9ca;(_0x71e9ca=this[_0x5b1329(0x1f7)])==null||_0x71e9ca['dispose'](),this[_0x5b1329(0x1b2)][_0x5b1329(0x1e1)]('following');}['_beIdle'](){const _0x511c5f=_0x2a0c15;var _0xf8c16d;this['_status$'][_0x511c5f(0x1e1)](_0x511c5f(0x284)),(_0xf8c16d=this[_0x511c5f(0x1f7)])==null||_0xf8c16d['dispose'](),this[_0x511c5f(0x1f7)]=null;}[_0x2a0c15(0x1fa)](){const _0xb0378a=_0x2a0c15;var _0x18fbf2;this[_0xb0378a(0x1b2)][_0xb0378a(0x1e1)](_0xb0378a(0x285)),(_0x18fbf2=this[_0xb0378a(0x1f7)])==null||_0x18fbf2[_0xb0378a(0x269)]();}['_handleOperation'](_0x14337d){const _0x39ab2e=_0x2a0c15;if([_0x39ab2e(0x1ab),'not-following',_0x39ab2e(0x205)][_0x39ab2e(0x1e3)](this[_0x39ab2e(0x208)])||!_0x14337d[_0x39ab2e(0x1aa)]['presenter']||_0x14337d['data'][_0x39ab2e(0x211)]===this[_0x39ab2e(0x1d6)]['getMemberID']())return;this[_0x39ab2e(0x208)]===_0x39ab2e(0x284)&&this[_0x39ab2e(0x220)]();const _0x46de2b=_0x14337d[_0x39ab2e(0x1aa)]['operations'];Object[_0x39ab2e(0x25b)](_0x46de2b)[_0x39ab2e(0x1cf)](_0x52ec24=>{const _0xe9b51f=_0x39ab2e;this[_0xe9b51f(0x1c1)][_0xe9b51f(0x241)](_0x52ec24['id'],_0x52ec24[_0xe9b51f(0x1c9)]?JSON['parse'](_0x52ec24[_0xe9b51f(0x1c9)]):null,{'fromCollab':!0x0});});}[_0x2a0c15(0x1eb)](){const _0x33e1d4=_0x2a0c15;var _0xffa5f8;this['_status$'][_0x33e1d4(0x1e1)](_0x33e1d4(0x205)),(_0xffa5f8=this[_0x33e1d4(0x1f7)])==null||_0xffa5f8[_0x33e1d4(0x269)]();}['_handleOnline'](){const _0x4f7233=_0x2a0c15;this[_0x4f7233(0x1b2)][_0x4f7233(0x1e1)](_0x4f7233(0x284)),this[_0x4f7233(0x25c)]();}},_0x13d81c[_0x2a0c15(0x259)]=_0x28ac43([_0x2dac69(0x2,_0x1d786e[_0x2a0c15(0x255)]),_0x2dac69(0x3,_0x1d786e[_0x2a0c15(0x1b4)](_0x46fbca)),_0x2dac69(0x4,_0x1d786e[_0x2a0c15(0x234)])],_0x13d81c[_0x2a0c15(0x259)]);function _0xef583f(){const _0x54b932=_0x2a0c15,_0x15bce0=_0xf1bd4c[_0x54b932(0x249)](_0x13d81c[_0x54b932(0x213)]),_0x39586c=_0xf1bd4c['useDependency'](_0x1d786e[_0x54b932(0x227)]),_0x8704a9=_0xf1bd4c['useObservable'](()=>_0x39586c[_0x54b932(0x1ac)](_0x1d786e['UniverInstanceType'][_0x54b932(0x207)]),void 0x0,!0x1,[]),[_0x381fe6,_0x2c4a19]=_0x8c7f55[_0x54b932(0x1e8)](null),[_0x1defb8,_0x386795]=_0x8c7f55[_0x54b932(0x1e8)](_0x70cee6[_0x54b932(0x253)]),_0x3fcd05=_0x8c7f55['useRef'](null);return _0x8c7f55[_0x54b932(0x1f4)](()=>(_0x8704a9&&_0x15bce0[_0x54b932(0x274)](_0x8704a9['getUnitId']())[_0x54b932(0x287)](_0x29abbc=>{const _0x2a6b75=_0x54b932;_0x2c4a19(_0x29abbc),_0x3fcd05[_0x2a6b75(0x21d)]=_0x29abbc['status$']['subscribe'](_0x3e6f76=>{_0x386795(_0x3e6f76);});}),()=>{const _0x314e21=_0x54b932;var _0x428f60;(_0x428f60=_0x3fcd05['current'])==null||_0x428f60[_0x314e21(0x217)](),_0x3fcd05[_0x314e21(0x21d)]=null;}),[_0x8704a9,_0x15bce0]),_0x381fe6?_0x35cb2b[_0x54b932(0x1ea)](_0x446433['Dropdown'],{'align':'end','disabled':_0x1defb8===_0x70cee6[_0x54b932(0x1e0)],'className':_0x54b932(0x286),'overlay':_0x35cb2b['jsx'](_0x3913ab,{'status':_0x1defb8,'coordinator':_0x381fe6}),'children':_0x35cb2b[_0x54b932(0x1ea)](_0x54b932(0x251),{'className':_0x446433[_0x54b932(0x267)](_0x54b932(0x275),{'univer-cursor-not-allowed':_0x1defb8===_0x70cee6['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1defb8!==_0x70cee6[_0x54b932(0x1e0)]}),'type':_0x54b932(0x251),'children':_0x35cb2b[_0x54b932(0x1ea)](_0x54d1c5,{'className':_0x54b932(0x20d)})})}):null;}function _0x3913ab(_0x10eecc){const _0x131ba0=_0x2a0c15,{status:_0x3cccc3,coordinator:_0x3d5195}=_0x10eecc;switch(_0x3cccc3){case _0x70cee6['IDLE']:return _0x35cb2b[_0x131ba0(0x1ea)](_0x1af99f,{'coordinator':_0x3d5195});case _0x70cee6[_0x131ba0(0x1d8)]:return _0x35cb2b[_0x131ba0(0x1ea)](_0x81f35c,{'coordinator':_0x3d5195});case _0x70cee6['NOT_FOLLOWING']:return _0x35cb2b[_0x131ba0(0x1ea)](_0x3777fd,{'coordinator':_0x3d5195});case _0x70cee6[_0x131ba0(0x1e0)]:return _0x35cb2b[_0x131ba0(0x1ea)](_0x391148,{});case _0x70cee6[_0x131ba0(0x20a)]:return _0x35cb2b[_0x131ba0(0x1ea)](_0x2e2d93,{'coordinator':_0x3d5195});default:return null;}}function _0x1af99f(_0x58cfc5){const _0x5bdf5d=_0x2a0c15,{coordinator:_0x4cc052}=_0x58cfc5;return _0x35cb2b[_0x5bdf5d(0x1d9)](_0x35cb2b[_0x5bdf5d(0x218)],{'children':[_0x35cb2b['jsx'](_0x5bdf5d(0x278),{'className':_0x5bdf5d(0x200),'children':_0x5bdf5d(0x1bd)}),_0x35cb2b['jsx'](_0x446433[_0x5bdf5d(0x1ce)],{'onClick':()=>_0x4cc052[_0x5bdf5d(0x22d)](),'children':_0x5bdf5d(0x277)})]});}function _0x81f35c(_0x285ec6){const _0x3c8896=_0x2a0c15,{coordinator:_0x46b516}=_0x285ec6;return _0x35cb2b[_0x3c8896(0x1d9)](_0x35cb2b['Fragment'],{'children':[_0x35cb2b[_0x3c8896(0x1ea)](_0x3c8896(0x278),{'className':_0x3c8896(0x200),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x35cb2b[_0x3c8896(0x1ea)](_0x446433[_0x3c8896(0x1ce)],{'onClick':()=>_0x46b516['stopFollowing'](),'children':_0x3c8896(0x1cd)})]});}function _0x3777fd(_0x48dd43){const _0x5efba6=_0x2a0c15,{coordinator:_0x2cf45f}=_0x48dd43;return _0x35cb2b['jsxs'](_0x35cb2b[_0x5efba6(0x218)],{'children':[_0x35cb2b[_0x5efba6(0x1ea)](_0x5efba6(0x278),{'className':_0x5efba6(0x200),'children':_0x5efba6(0x22a)}),_0x35cb2b[_0x5efba6(0x1ea)](_0x446433[_0x5efba6(0x1ce)],{'variant':_0x5efba6(0x262),'onClick':()=>_0x2cf45f['startFollowing'](),'children':_0x5efba6(0x1a5)})]});}function _0x2e2d93(_0x4471b5){const _0x1fb6f8=_0x2a0c15,{coordinator:_0x5179ba}=_0x4471b5;return _0x35cb2b[_0x1fb6f8(0x1d9)](_0x35cb2b['Fragment'],{'children':[_0x35cb2b[_0x1fb6f8(0x1ea)](_0x1fb6f8(0x278),{'className':_0x1fb6f8(0x200),'children':_0x1fb6f8(0x238)}),_0x35cb2b['jsx'](_0x446433[_0x1fb6f8(0x1ce)],{'variant':_0x1fb6f8(0x24d),'onClick':()=>_0x5179ba[_0x1fb6f8(0x1c8)](),'children':'Stop\x20presenting'})]});}function _0x391148(){const _0x5649b4=_0x2a0c15;return _0x35cb2b['jsx'](_0x35cb2b[_0x5649b4(0x218)],{'children':_0x5649b4(0x1bf)});}var _0xa3449c=Object['getOwnPropertyDescriptor'],_0x1ca773=(_0x373787,_0x53cdf7,_0x52e7ef,_0x5a5548)=>{const _0x1590d7=_0x2a0c15;for(var _0x2be4f5=_0x5a5548>0x1?void 0x0:_0x5a5548?_0xa3449c(_0x53cdf7,_0x52e7ef):_0x53cdf7,_0x1d1467=_0x373787[_0x1590d7(0x24e)]-0x1,_0x3d2629;_0x1d1467>=0x0;_0x1d1467--)(_0x3d2629=_0x373787[_0x1d1467])&&(_0x2be4f5=_0x3d2629(_0x2be4f5)||_0x2be4f5);return _0x2be4f5;},_0x11fd78=(_0x3ba0c6,_0x23f79e)=>(_0xbdf2a1,_0x39d912)=>_0x23f79e(_0xbdf2a1,_0x39d912,_0x3ba0c6);_0x13d81c['DesktopLiveShareController']=class extends _0x1d786e[_0x2a0c15(0x248)]{constructor(_0x3c9be7,_0x2dd18d){const _0x1363d0=_0x2a0c15;super(),this[_0x1363d0(0x240)]=_0x3c9be7,this[_0x1363d0(0x22f)]=_0x2dd18d,this[_0x1363d0(0x1da)]();}['_mountLiveShare'](){const _0x48778f=_0x2a0c15;this['disposeWithMe'](this[_0x48778f(0x22f)][_0x48778f(0x21a)](_0xf1bd4c[_0x48778f(0x1b8)][_0x48778f(0x1e2)],()=>_0xf1bd4c['connectInjector'](_0xef583f,this[_0x48778f(0x240)])));}},_0x13d81c[_0x2a0c15(0x209)]=_0x1ca773([_0x11fd78(0x0,_0x1d786e[_0x2a0c15(0x1b4)](_0x1d786e[_0x2a0c15(0x265)])),_0x11fd78(0x1,_0xf1bd4c[_0x2a0c15(0x1dc)])],_0x13d81c[_0x2a0c15(0x209)]);const _0x5535d6=_0x2a0c15(0x292),_0x5cce89={};var _0x54b9a6=Object[_0x2a0c15(0x1c6)],_0x4ce6ad=(_0x46720d,_0xe500e,_0x39dbaf,_0x4327fd)=>{for(var _0x26bd40=_0x4327fd>0x1?void 0x0:_0x4327fd?_0x54b9a6(_0xe500e,_0x39dbaf):_0xe500e,_0x49d1ea=_0x46720d['length']-0x1,_0x5cf95f;_0x49d1ea>=0x0;_0x49d1ea--)(_0x5cf95f=_0x46720d[_0x49d1ea])&&(_0x26bd40=_0x5cf95f(_0x26bd40)||_0x26bd40);return _0x26bd40;},_0xc2ffa1=(_0xf581ba,_0x43c989)=>(_0x1c353b,_0x3a5dda)=>_0x43c989(_0x1c353b,_0x3a5dda,_0xf581ba);let _0xc7a29a=class extends _0x1d786e[_0x2a0c15(0x248)]{constructor(_0x3e8790){const _0x279cf9=_0x2a0c15;super(),this['_liveShareService']=_0x3e8790,this[_0x279cf9(0x27f)]();}[_0x2a0c15(0x27f)](){const _0x667d63=_0x2a0c15;[_0x2dd477['SetZoomRatioOperation']['id'],_0x2dd477[_0x667d63(0x1c2)]['id'],_0x15e0c1[_0x667d63(0x1b9)]['id']][_0x667d63(0x1cf)](_0x4e9f64=>{const _0x133d6f=_0x667d63;this['disposeWithMe'](this[_0x133d6f(0x222)][_0x133d6f(0x1f1)](_0x4e9f64));});}};_0xc7a29a=_0x4ce6ad([_0xc2ffa1(0x0,_0x1d786e[_0x2a0c15(0x1b4)](_0x46fbca))],_0xc7a29a);var _0x1d5a55=Object[_0x2a0c15(0x231)],_0x50a886=Object['getOwnPropertyDescriptor'],_0x5d7325=(_0x2a2518,_0x5ee9eb,_0x5bcbe8)=>_0x5ee9eb in _0x2a2518?_0x1d5a55(_0x2a2518,_0x5ee9eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bcbe8}):_0x2a2518[_0x5ee9eb]=_0x5bcbe8,_0x4174bc=(_0x150226,_0x21b484,_0x2e97f4,_0x26c0e6)=>{for(var _0x40635d=_0x26c0e6>0x1?void 0x0:_0x26c0e6?_0x50a886(_0x21b484,_0x2e97f4):_0x21b484,_0x146c02=_0x150226['length']-0x1,_0xfa26c;_0x146c02>=0x0;_0x146c02--)(_0xfa26c=_0x150226[_0x146c02])&&(_0x40635d=_0xfa26c(_0x40635d)||_0x40635d);return _0x40635d;},_0x491cb3=(_0x108616,_0x3e7059)=>(_0x28cc18,_0x241441)=>_0x3e7059(_0x28cc18,_0x241441,_0x108616),_0x8c5b43=(_0x3b2002,_0x30a267,_0x450631)=>_0x5d7325(_0x3b2002,typeof _0x30a267!=_0x2a0c15(0x273)?_0x30a267+'':_0x30a267,_0x450631);const _0x3b4b49=_0x2a0c15(0x280);_0x13d81c[_0x2a0c15(0x242)]=class extends _0x1d786e['Plugin']{constructor(_0x502160=_0x5cce89,_0x616d46,_0x44857a){const _0x4efc51=_0x2a0c15;super(),this[_0x4efc51(0x27a)]=_0x502160,this['_injector']=_0x616d46,this[_0x4efc51(0x1b1)]=_0x44857a;const {..._0x329833}=_0x1d786e[_0x4efc51(0x1d5)]({},_0x5cce89,this[_0x4efc51(0x27a)]);this[_0x4efc51(0x1b1)][_0x4efc51(0x257)](_0x5535d6,_0x329833);}[_0x2a0c15(0x23c)](){const _0x28d571=_0x2a0c15;_0x1d786e[_0x28d571(0x279)](this['_injector'],_0x1d786e[_0x28d571(0x22b)]([[_0x46fbca],[_0x13d81c[_0x28d571(0x213)]],[_0xc7a29a],[_0x13d81c[_0x28d571(0x209)]]],this[_0x28d571(0x27a)][_0x28d571(0x1a4)])),_0x1d786e[_0x28d571(0x206)](this[_0x28d571(0x240)],[[_0xc7a29a]]);}[_0x2a0c15(0x256)](){const _0x1a1cea=_0x2a0c15;_0x1d786e['touchDependencies'](this[_0x1a1cea(0x240)],[[_0x13d81c['DesktopLiveShareController']]]);}},_0x8c5b43(_0x13d81c['UniverLiveSharePlugin'],_0x2a0c15(0x1a8),_0x1d786e[_0x2a0c15(0x1f6)][_0x2a0c15(0x1e6)]),_0x8c5b43(_0x13d81c[_0x2a0c15(0x242)],'pluginName',_0x3b4b49),_0x13d81c['UniverLiveSharePlugin']=_0x4174bc([_0x1d786e[_0x2a0c15(0x239)](_0xc0c90e[_0x2a0c15(0x1ca)]),_0x491cb3(0x1,_0x1d786e[_0x2a0c15(0x1b4)](_0x1d786e['Injector'])),_0x491cb3(0x2,_0x1d786e[_0x2a0c15(0x255)])],_0x13d81c['UniverLiveSharePlugin']),_0x13d81c[_0x2a0c15(0x1f8)]=_0xef583f,_0x13d81c[_0x2a0c15(0x228)]=_0x46fbca,_0x13d81c[_0x2a0c15(0x232)]=_0x70cee6,Object['defineProperty'](_0x13d81c,Symbol['toStringTag'],{'value':_0x2a0c15(0x1d7)});}));
|
|
1
|
+
function _0x2c52(){const _0xffd266=['clsx','connectInjector','getConfig','SetWorksheetActiveOperation','62763ejEjvI','Dropdown','UniverDesign','evenodd','_collabSession','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','executeCommand','then','jsxs','getStatus','live-share-icon','Disposable','getUnitId','@univerjs/ui','asObservable','@univerjs-pro/collaboration-client','_stopPresenting','DisposableCollection','dispose$','get','_injector','takeUntil','Subject','UniverInstanceType','4esEyOZ','text','react/jsx-runtime','button','_handleNewChangeSets','send','delete','CollaborationEvent','clear','_univerInstanceService','Present\x20this\x20document','pipe','next','UNIVER_SHEET','sessionStatus$','symbol','@univerjs/sheets','defs','_status','_handleOffline','registerDependencies','LiveShareService','univerjs-icon\x20univerjs-icon-','1854480YiLFTE','toDisposable','UNIVER_LIVE_SHARE_PLUGIN','59832hciTtb','jsx','stringify','LIVESHARE_NEW_HOST','useDependency','_configService','26814gezcvv','forwardRef','dispose','div','873384ZxSzrQ','_sharedOperations','registerSharedOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','rxjs/operators','length','init','IDLE','React','http://www.w3.org/2000/svg','has','type','PRESENTING','data','LIVESHARE_OPERATION','OFFLINE','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','stopFollowing','rxjs','merge','ONLINE','ICommandService','params','toStringTag','1em','DependentOn','entries','Plugin','tag','tryStartPresenting','current','substring','UniverCore','forEach','12IEaioP','SetScrollOperation','idSuffix','SAME_OPERATION_SHARE_INTERVAL','getOwnPropertyDescriptor','UniverProCollaborationClient','UniverProLiveShare','getTypeOfUnitDisposed$','registerComponent','You\x27re\x20following\x20the\x20presenter','BehaviorSubject','override','map','HEADER_MENU','InsertSheetMutation','LIVESHARE_FETCH_OPERATIONS','string','NOT_FOLLOWING','10662784mCLsVe','presenter','Button','Fragment','url(#$1','getLiveShareCoordinator','45pKpuYu','OPERATION','Start','Stop\x20presenting','presenting','onRendered','6634420uyKshB','fill','_config','You\x27are\x20offline.','_stopFollowing','_mountLiveShare','245WjSmBx','_init','@univerjs/sheets-ui','createElement','event$','getInitialStates','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','disposeWithMe','shouldShareOperation','_presenter','_handleNewHost','@univerjs/design','end','_fetchOperations','getLiveShareCoordinatorSync','colorChannel1','_reporters','FOLLOWING','useRef','currentColor','_commandDisposable','startFollowing','_handleOperation','_unitID','You\x27re\x20presenting\x20the\x20document','requireSession','includes','following','LiveShareCoordinator','IConfigService','getMemberID','set','attrs','_status$','complete','operations','Injector','0\x200\x2017\x2017','useState','assign','Module','add','mergeOverrideWithDependencies','_startFollowing','stopPresenting','LIVESHARE_TERMINATE','svg','SessionStatus','UniverLiveSharePlugin','Inject','@univerjs/core','Stop\x20following','random','unsubscribe','_startPresenting','default','defineProperty','object','idle','_beIdle','univer-size-4','trim','UniverUi','setConfig','useEffect','IUIPartsService','mask','sheet','LiveShareIcon','You\x27re\x20not\x20following\x20the\x20presenter','UniverIcon','touchDependencies','UniverSheets','find','Start\x20following','none','_commandService','operators','live-share.config','_entities','LiveShareController','_handleOnline','NEW_CHANGESETS','UNIVER_UNKNOWN','defIds','DesktopLiveShareController','displayName','exports','createInstance','subscribe','path','offline','xlink:href','replace','4AFCuCg','BuiltInUIPart','UniverCollaborationClientPlugin','_liveShareService','pluginName','throttleTime','RxDisposable','IUniverInstanceService','_startLiveShareCoordinator','not-following','mutations'];_0x2c52=function(){return _0xffd266;};return _0x2c52();}function _0x1219(_0x2bee0b,_0x5e6781){const _0x2c52d9=_0x2c52();return _0x1219=function(_0x12192f,_0x478a7b){_0x12192f=_0x12192f-0xea;let _0x3cb6b8=_0x2c52d9[_0x12192f];return _0x3cb6b8;},_0x1219(_0x2bee0b,_0x5e6781);}(function(_0x531725,_0x3da08c){const _0x49cba7=_0x1219,_0x582fec=_0x531725();while(!![]){try{const _0x31040f=-parseInt(_0x49cba7(0x125))/0x1+parseInt(_0x49cba7(0x116))/0x2*(parseInt(_0x49cba7(0x161))/0x3)+-parseInt(_0x49cba7(0x13d))/0x4*(-parseInt(_0x49cba7(0x154))/0x5)+parseInt(_0x49cba7(0x15d))/0x6*(-parseInt(_0x49cba7(0x1a8))/0x7)+-parseInt(_0x49cba7(0x157))/0x8*(parseInt(_0x49cba7(0x19c))/0x9)+parseInt(_0x49cba7(0x1a2))/0xa+-parseInt(_0x49cba7(0x196))/0xb*(parseInt(_0x49cba7(0x184))/0xc);if(_0x31040f===_0x3da08c)break;else _0x582fec['push'](_0x582fec['shift']());}catch(_0x55ae7d){_0x582fec['push'](_0x582fec['shift']());}}}(_0x2c52,0x5f615),function(_0xdea920,_0x314c2d){const _0x1aee48=_0x1219;typeof exports==_0x1aee48(0xf1)&&typeof module<'u'?_0x314c2d(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['amd']?define([_0x1aee48(0x10f),_0x1aee48(0xea),_0x1aee48(0x132),_0x1aee48(0x13f),_0x1aee48(0x1b3),'react','@univerjs-pro/collaboration',_0x1aee48(0x134),_0x1aee48(0x14d),_0x1aee48(0x174),_0x1aee48(0x166),_0x1aee48(0x1aa)],_0x314c2d):(_0xdea920=typeof globalThis<'u'?globalThis:_0xdea920||self,_0x314c2d(_0xdea920[_0x1aee48(0x18a)]={},_0xdea920[_0x1aee48(0x182)],_0xdea920[_0x1aee48(0xf6)],_0xdea920[_0x1aee48(0x16a)],_0xdea920[_0x1aee48(0x127)],_0xdea920[_0x1aee48(0x16a)],_0xdea920['UniverProCollaboration'],_0xdea920[_0x1aee48(0x189)],_0xdea920[_0x1aee48(0x100)],_0xdea920[_0x1aee48(0x174)],_0xdea920[_0x1aee48(0x174)][_0x1aee48(0x105)],_0xdea920['UniverSheetsUi']));}(this,function(_0x519f60,_0x3b8586,_0x28aa20,_0x5b8318,_0x19dd6f,_0x4fb086,_0x286a58,_0x38f205,_0x24cc03,_0x2abecc,_0x206d6a,_0x5c66b5){'use strict';const _0x49bce0=_0x1219;var _0x5453cb=Object['defineProperty'],_0xf7dd71=(_0x548b78,_0x4b38b8,_0x263865)=>_0x4b38b8 in _0x548b78?_0x5453cb(_0x548b78,_0x4b38b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x263865}):_0x548b78[_0x4b38b8]=_0x263865,_0x505fe2=(_0x4ad8c6,_0x2f6eda,_0x2e2454)=>_0xf7dd71(_0x4ad8c6,typeof _0x2f6eda!=_0x49bce0(0x14c)?_0x2f6eda+'':_0x2f6eda,_0x2e2454);function _0x4d5b0d({ref:_0x11ddc4,..._0x48ed7a}){const _0x2fc855=_0x49bce0,{icon:_0x3b6e9a,id:_0x4d693f,className:_0x3beb2f,extend:_0x5e2b9a,..._0x2d41ed}=_0x48ed7a,_0x5a29d2=(_0x2fc855(0x153)+_0x4d693f+'\x20'+(_0x3beb2f||''))[_0x2fc855(0xf5)](),_0x2a889a=_0x4fb086[_0x2fc855(0x1ba)]('_'+_0x4c5a8e());return _0x5055ff(_0x3b6e9a,''+_0x4d693f,{'defIds':_0x3b6e9a[_0x2fc855(0x10c)],'idSuffix':_0x2a889a[_0x2fc855(0x180)]},{'ref':_0x11ddc4,'className':_0x5a29d2,..._0x2d41ed},_0x5e2b9a);}function _0x5055ff(_0x332541,_0x57ade3,_0x4b31ce,_0x5333a4,_0xc347d0){const _0x4b5c41=_0x49bce0;return _0x4fb086[_0x4b5c41(0x1ab)](_0x332541[_0x4b5c41(0x17e)],{'key':_0x57ade3,..._0x44803c(_0x332541,_0x4b31ce,_0xc347d0),..._0x5333a4},(_0x41b8bb(_0x332541,_0x4b31ce)['children']||[])[_0x4b5c41(0x190)]((_0x2881c9,_0x5d38fc)=>_0x5055ff(_0x2881c9,_0x57ade3+'-'+_0x332541[_0x4b5c41(0x17e)]+'-'+_0x5d38fc,_0x4b31ce,void 0x0,_0xc347d0)));}function _0x44803c(_0x238794,_0x3b1b4c,_0x120156){const _0x5654f2=_0x49bce0,_0x20f53b={..._0x238794[_0x5654f2(0x1c8)]};_0x120156!=null&&_0x120156['colorChannel1']&&_0x20f53b['fill']===_0x5654f2(0x1b7)&&(_0x20f53b[_0x5654f2(0x1a3)]=_0x120156['colorChannel1']),_0x238794['tag']===_0x5654f2(0xfa)&&_0x20f53b['id']&&(_0x20f53b['id']=_0x20f53b['id']+_0x3b1b4c[_0x5654f2(0x186)]),Object[_0x5654f2(0x17c)](_0x20f53b)[_0x5654f2(0x183)](([_0x34e174,_0x1147ea])=>{const _0x4b2331=_0x5654f2;_0x34e174===_0x4b2331(0xfa)&&typeof _0x1147ea==_0x4b2331(0x194)&&(_0x20f53b[_0x34e174]=_0x1147ea[_0x4b2331(0x115)](/url\(#(.*)\)/,'url(#$1'+_0x3b1b4c['idSuffix']+')'));});const {defIds:_0x58c4b5}=_0x3b1b4c;return!_0x58c4b5||_0x58c4b5[_0x5654f2(0x167)]===0x0||(_0x238794[_0x5654f2(0x17e)]==='use'&&_0x20f53b[_0x5654f2(0x114)]&&(_0x20f53b[_0x5654f2(0x114)]=_0x20f53b[_0x5654f2(0x114)]+_0x3b1b4c[_0x5654f2(0x186)]),Object[_0x5654f2(0x17c)](_0x20f53b)['forEach'](([_0x1485f1,_0x310bd1])=>{const _0x3a9ba3=_0x5654f2;typeof _0x310bd1=='string'&&(_0x20f53b[_0x1485f1]=_0x310bd1['replace'](/url\(#(.*)\)/,_0x3a9ba3(0x19a)+_0x3b1b4c[_0x3a9ba3(0x186)]+')'));})),_0x20f53b;}function _0x41b8bb(_0x46f435,_0x45d017){const _0x1df71a=_0x49bce0;var _0x48b331;const {defIds:_0x186016}=_0x45d017;return!_0x186016||_0x186016['length']===0x0?_0x46f435:_0x46f435['tag']===_0x1df71a(0x14e)&&((_0x48b331=_0x46f435['children'])!=null&&_0x48b331[_0x1df71a(0x167)])?{..._0x46f435,'children':_0x46f435['children'][_0x1df71a(0x190)](_0x75ea84=>typeof _0x75ea84['attrs']['id']=='string'&&_0x186016&&_0x186016[_0x1df71a(0x1c2)](_0x75ea84[_0x1df71a(0x1c8)]['id'])?{..._0x75ea84,'attrs':{..._0x75ea84[_0x1df71a(0x1c8)],'id':_0x75ea84[_0x1df71a(0x1c8)]['id']+_0x45d017['idSuffix']}}:_0x75ea84)}:_0x46f435;}function _0x4c5a8e(){const _0x5b0d63=_0x49bce0;return Math[_0x5b0d63(0xec)]()['toString'](0x24)[_0x5b0d63(0x181)](0x2,0x8);}_0x4d5b0d[_0x49bce0(0x10e)]=_0x49bce0(0xfe);const _0x1e6db4={'tag':_0x49bce0(0x1d6),'attrs':{'xmlns':_0x49bce0(0x16b),'fill':_0x49bce0(0x103),'viewBox':_0x49bce0(0x1cd),'width':_0x49bce0(0x17a),'height':_0x49bce0(0x17a)},'children':[{'tag':_0x49bce0(0x112),'attrs':{'fill':_0x49bce0(0x1bb),'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':_0x49bce0(0x112),'attrs':{'fill':_0x49bce0(0x1bb),'d':_0x49bce0(0x12a),'fillRule':_0x49bce0(0x128),'clipRule':'evenodd'}}]},_0xcff326=_0x4fb086[_0x49bce0(0x15e)](function(_0x407ead,_0x26689a){const _0x1ae726=_0x49bce0;return _0x4fb086[_0x1ae726(0x1ab)](_0x4d5b0d,Object[_0x1ae726(0x1cf)]({},_0x407ead,{'id':_0x1ae726(0x12f),'ref':_0x26689a,'icon':_0x1e6db4}));});_0xcff326[_0x49bce0(0x10e)]=_0x49bce0(0xfc);class _0x29808c extends _0x3b8586['Disposable']{constructor(){const _0x4ed08d=_0x49bce0;super(...arguments),_0x505fe2(this,_0x4ed08d(0x162),new Set()),_0x505fe2(this,_0x4ed08d(0x1b8),new Set());}[_0x49bce0(0x163)](_0x38fefc){const _0x99910=_0x49bce0;return this['_sharedOperations'][_0x99910(0x1d1)](_0x38fefc),_0x3b8586[_0x99910(0x155)](()=>this[_0x99910(0x162)][_0x99910(0x143)](_0x38fefc));}['registerInitialStateReporter'](_0x4b1c83){const _0x19092f=_0x49bce0;return this['_reporters'][_0x19092f(0x1d1)](_0x4b1c83),_0x3b8586[_0x19092f(0x155)](()=>this[_0x19092f(0x1b8)]['delete'](_0x4b1c83));}[_0x49bce0(0x1b0)](_0x2eb8e0){const _0x5f4511=_0x49bce0;return this[_0x5f4511(0x162)][_0x5f4511(0x16c)](_0x2eb8e0);}['getInitialStates'](_0x3fb3e8){return Array['from'](this['_reporters'])['map'](_0x1432d7=>_0x1432d7(_0x3fb3e8));}}var _0x2ddd2e=Object[_0x49bce0(0x188)],_0x1fa393=(_0x355dc7,_0x28da7c,_0x8fbd0,_0x3e103f)=>{for(var _0x1e7983=_0x3e103f>0x1?void 0x0:_0x3e103f?_0x2ddd2e(_0x28da7c,_0x8fbd0):_0x28da7c,_0x48f197=_0x355dc7['length']-0x1,_0x1e9b3d;_0x48f197>=0x0;_0x48f197--)(_0x1e9b3d=_0x355dc7[_0x48f197])&&(_0x1e7983=_0x1e9b3d(_0x1e7983)||_0x1e7983);return _0x1e7983;},_0x490e9=(_0x4e2ace,_0x3d2153)=>(_0x1dac52,_0x5e8443)=>_0x3d2153(_0x1dac52,_0x5e8443,_0x4e2ace);_0x519f60[_0x49bce0(0x108)]=class extends _0x3b8586[_0x49bce0(0x11c)]{constructor(_0x2417e6,_0x3bcabd,_0x34a4ac){const _0x57f42f=_0x49bce0;super(),_0x505fe2(this,_0x57f42f(0x107),new Map()),(this[_0x57f42f(0x146)]=_0x2417e6,this[_0x57f42f(0x139)]=_0x3bcabd,this['_collabSessionService']=_0x34a4ac,this[_0x57f42f(0x1a9)]());}async[_0x49bce0(0x19b)](_0x594d66){const _0x4e5631=_0x49bce0;return this[_0x4e5631(0x107)]['has'](_0x594d66)||await this[_0x4e5631(0x11e)](_0x594d66),this['_entities'][_0x4e5631(0x138)](_0x594d66);}[_0x49bce0(0x1b6)](_0x503260){const _0x31533e=_0x49bce0;var _0x177bd3;return(_0x177bd3=this['_entities'][_0x31533e(0x138)](_0x503260))!=null?_0x177bd3:null;}['_init'](){const _0x40f07f=_0x49bce0;this[_0x40f07f(0x146)]['getTypeOfUnitAdded$'](_0x3b8586[_0x40f07f(0x13c)][_0x40f07f(0x14a)])[_0x40f07f(0x148)](_0x206d6a[_0x40f07f(0x13a)](this[_0x40f07f(0x137)]))['subscribe'](async _0x1d04aa=>{const _0x57eee9=_0x40f07f,_0x9f7c43=_0x1d04aa['getUnitId']();this[_0x57eee9(0x107)]['has'](_0x9f7c43)||this[_0x57eee9(0x11e)](_0x9f7c43);}),this[_0x40f07f(0x146)][_0x40f07f(0x18b)](_0x3b8586['UniverInstanceType'][_0x40f07f(0x14a)])[_0x40f07f(0x148)](_0x206d6a[_0x40f07f(0x13a)](this[_0x40f07f(0x137)]))[_0x40f07f(0x111)](_0xa36e9b=>{const _0x19bbd1=_0x40f07f,_0x467b67=_0xa36e9b[_0x19bbd1(0x131)](),_0x1eb0c0=this[_0x19bbd1(0x107)][_0x19bbd1(0x138)](_0x467b67);_0x1eb0c0==null||_0x1eb0c0[_0x19bbd1(0x15f)]();});}async[_0x49bce0(0x11e)](_0x12ee49){const _0x1b537a=_0x49bce0,_0x132f3c=await this['_collabSessionService'][_0x1b537a(0x1c1)](_0x12ee49),_0x4016ef=this[_0x1b537a(0x139)][_0x1b537a(0x110)](_0x519f60['LiveShareCoordinator'],_0x12ee49,_0x132f3c);return _0x4016ef[_0x1b537a(0x168)](),this[_0x1b537a(0x107)][_0x1b537a(0x1c7)](_0x12ee49,_0x4016ef),_0x4016ef;}},_0x519f60['LiveShareController']=_0x1fa393([_0x490e9(0x0,_0x3b8586[_0x49bce0(0x11d)]),_0x490e9(0x1,_0x3b8586[_0x49bce0(0x1d9)](_0x3b8586[_0x49bce0(0x1cc)])),_0x490e9(0x2,_0x3b8586['Inject'](_0x38f205['CollaborationSessionService']))],_0x519f60[_0x49bce0(0x108)]);var _0x19e733=(_0x11457d=>(_0x11457d['OFFLINE']=_0x49bce0(0x113),_0x11457d['IDLE']=_0x49bce0(0xf2),_0x11457d[_0x49bce0(0x1b9)]=_0x49bce0(0x1c3),_0x11457d[_0x49bce0(0x195)]=_0x49bce0(0x11f),_0x11457d[_0x49bce0(0x16e)]=_0x49bce0(0x1a0),_0x11457d))(_0x19e733||{});const _0x32d44f=_0x49bce0(0x187),_0x3efed1=0xc8;_0x519f60['LiveShareCoordinator']=class extends _0x3b8586[_0x49bce0(0x11c)]{constructor(_0x116022,_0x339892,_0x431aae,_0x255d44,_0x3c0162){const _0x4570a3=_0x49bce0;super(),_0x505fe2(this,_0x4570a3(0x1c9),new _0x2abecc[(_0x4570a3(0x18e))]('idle')),_0x505fe2(this,'status$',this[_0x4570a3(0x1c9)][_0x4570a3(0x133)]()),_0x505fe2(this,'_init',!0x1),_0x505fe2(this,_0x4570a3(0x1bc),null),_0x505fe2(this,_0x4570a3(0x1b1),null),(this[_0x4570a3(0x1bf)]=_0x116022,this['_collabSession']=_0x339892,this[_0x4570a3(0x15c)]=_0x431aae,this[_0x4570a3(0x119)]=_0x255d44,this[_0x4570a3(0x104)]=_0x3c0162);}get[_0x49bce0(0x14f)](){const _0x141b78=_0x49bce0;return this[_0x141b78(0x1c9)][_0x141b78(0x165)]();}[_0x49bce0(0x15f)](){const _0x3de04c=_0x49bce0;var _0x40348a;(_0x40348a=this[_0x3de04c(0x1bc)])==null||_0x40348a['dispose'](),this['_status$'][_0x3de04c(0x149)]('idle'),this['_status$'][_0x3de04c(0x1ca)]();}[_0x49bce0(0x12e)](){const _0x100d5a=_0x49bce0;return this[_0x100d5a(0x14f)];}[_0x49bce0(0x168)](){const _0x5a8489=_0x49bce0;this[_0x5a8489(0x1a9)]||(this[_0x5a8489(0x1a9)]=!0x0,this[_0x5a8489(0x129)][_0x5a8489(0x14b)][_0x5a8489(0x148)](_0x206d6a['takeUntil'](this[_0x5a8489(0x137)]))[_0x5a8489(0x111)](_0xc8137a=>{const _0x34d7b8=_0x5a8489;switch(_0xc8137a){case _0x38f205['SessionStatus'][_0x34d7b8(0x171)]:this[_0x34d7b8(0x150)]();break;case _0x38f205[_0x34d7b8(0x1d7)][_0x34d7b8(0x176)]:this[_0x34d7b8(0x109)]();break;}}),this[_0x5a8489(0x129)][_0x5a8489(0x1ac)][_0x5a8489(0x148)](_0x206d6a[_0x5a8489(0x13a)](this[_0x5a8489(0x137)]))['subscribe'](_0x3b8fd5=>{const _0x59bbf0=_0x5a8489,{eventID:_0x42bbad}=_0x3b8fd5;switch(_0x42bbad){case _0x286a58[_0x59bbf0(0x144)][_0x59bbf0(0x15a)]:this[_0x59bbf0(0x1b2)](_0x3b8fd5);break;case _0x286a58[_0x59bbf0(0x144)]['LIVESHARE_OPERATION']:this[_0x59bbf0(0x1be)](_0x3b8fd5);break;case _0x286a58['CollaborationEvent'][_0x59bbf0(0x1d5)]:this['_handleTerminate']();break;case _0x286a58[_0x59bbf0(0x144)][_0x59bbf0(0x10a)]:this[_0x59bbf0(0x141)](_0x3b8fd5);break;}}));}[_0x49bce0(0x17f)](){const _0x381948=_0x49bce0;this[_0x381948(0x129)][_0x381948(0x142)]({'eventID':_0x286a58[_0x381948(0x144)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x381948(0x1bf)],'userID':this[_0x381948(0x129)][_0x381948(0x1c6)]()}},this[_0x381948(0x1bf)]);}[_0x49bce0(0x1d4)](){const _0x1c15be=_0x49bce0;this[_0x1c15be(0x14f)]===_0x1c15be(0x1a0)&&(this[_0x1c15be(0x1c9)][_0x1c15be(0x149)](_0x1c15be(0xf2)),this[_0x1c15be(0x129)][_0x1c15be(0x142)]({'eventID':_0x286a58['CollaborationEvent'][_0x1c15be(0x1d5)],'data':{'unitID':this['_unitID']}},this[_0x1c15be(0x1bf)]));}[_0x49bce0(0x1bd)](){const _0x2080e6=_0x49bce0;this['_status']===_0x2080e6(0x11f)&&(this[_0x2080e6(0x1c9)][_0x2080e6(0x149)](_0x2080e6(0x1c3)),this[_0x2080e6(0x1d3)]());}[_0x49bce0(0x173)](){const _0x4e500f=_0x49bce0;this['_status']==='following'&&this[_0x4e500f(0x1a6)]();}['_handleNewHost'](_0x150114){const _0xbde9bd=_0x49bce0,{presenter:_0x30aaac}=_0x150114[_0xbde9bd(0x16f)],_0x487f0d=this[_0xbde9bd(0x129)][_0xbde9bd(0x1c6)]();this[_0xbde9bd(0x1b1)]=_0x30aaac,_0x30aaac===_0x487f0d?(this[_0xbde9bd(0x1a6)](),this[_0xbde9bd(0xee)]()):this[_0xbde9bd(0x14f)]!==_0xbde9bd(0x11f)&&(this['_stopPresenting'](),this[_0xbde9bd(0x1d3)]());}[_0x49bce0(0x1b5)](){const _0x553a22=_0x49bce0,_0x56f4db={'eventID':_0x286a58[_0x553a22(0x144)][_0x553a22(0x193)]};this[_0x553a22(0x129)]['send'](_0x56f4db,this[_0x553a22(0x1bf)]);}['_handleTerminate'](){const _0x2f91a6=_0x49bce0;this[_0x2f91a6(0x1b1)]=null,this[_0x2f91a6(0x14f)]!==_0x2f91a6(0x1a0)&&this[_0x2f91a6(0xf3)]();}[_0x49bce0(0x141)](_0x41a846){const _0x1d8376=_0x49bce0;if(this[_0x1d8376(0x14f)]===_0x1d8376(0x1c3)&&this[_0x1d8376(0x1b1)]===_0x41a846[_0x1d8376(0x16f)]['memberID']){const _0x26f3a6=_0x286a58['parseProtocolChangeset'](_0x41a846[_0x1d8376(0x16f)])[_0x1d8376(0x120)]['reverse']()[_0x1d8376(0x101)](_0x2930c3=>_0x2930c3['id']===_0x24cc03[_0x1d8376(0x192)]['id']);if(_0x26f3a6){const _0x17ef4a=_0x26f3a6['params']['unitId'],_0x409fff=_0x26f3a6[_0x1d8376(0x178)][_0x1d8376(0xfb)]['id'];setTimeout(()=>{const _0x1a3479=_0x1d8376;this['_commandService'][_0x1a3479(0x12b)](_0x24cc03[_0x1a3479(0x124)]['id'],{'unitId':_0x17ef4a,'subUnitId':_0x409fff},{'fromCollab':!0x0});});}}}[_0x49bce0(0xee)](){const _0x3e7806=_0x49bce0;this[_0x3e7806(0x1c9)][_0x3e7806(0x149)](_0x3e7806(0x1a0));const _0x4ecb84=new Map(),_0x222332=this['_commandDisposable']=new _0x3b8586[(_0x3e7806(0x136))]();_0x222332[_0x3e7806(0x1d1)](_0x3b8586[_0x3e7806(0x155)](()=>{const _0x5917fd=_0x3e7806;_0x4ecb84['forEach'](_0x4513de=>_0x4513de[_0x5917fd(0x1ca)]()),_0x4ecb84[_0x5917fd(0x145)]();})),_0x222332[_0x3e7806(0x1d1)](this[_0x3e7806(0x104)]['onCommandExecuted'](_0x59d941=>{const _0x1bb27a=_0x3e7806;var _0xda0066;if(_0x59d941['type']!==_0x3b8586['CommandType'][_0x1bb27a(0x19d)]||!this['_liveShareService']['shouldShareOperation'](_0x59d941['id']))return;const {id:_0x19ff7c}=_0x59d941;let _0x51e36c;_0x4ecb84[_0x1bb27a(0x16c)](_0x19ff7c)?_0x51e36c=_0x4ecb84[_0x1bb27a(0x138)](_0x19ff7c):(_0x51e36c=new _0x2abecc[(_0x1bb27a(0x13b))](),_0x4ecb84[_0x1bb27a(0x1c7)](_0x19ff7c,_0x51e36c),_0x51e36c[_0x1bb27a(0x148)](_0x206d6a[_0x1bb27a(0x11b)]((_0xda0066=this[_0x1bb27a(0x15c)][_0x1bb27a(0x123)](_0x32d44f))!=null?_0xda0066:_0x3efed1,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5ecc3c=>{const _0x61959a=_0x1bb27a;this['_collabSession']['send']({'eventID':_0x286a58[_0x61959a(0x144)][_0x61959a(0x170)],'data':{'unitID':this[_0x61959a(0x1bf)],'operations':{[_0x5ecc3c['id']]:{'id':_0x5ecc3c['id'],'params':JSON[_0x61959a(0x159)](_0x5ecc3c[_0x61959a(0x178)])}}}},this[_0x61959a(0x1bf)]);})),_0x51e36c['next'](_0x59d941);})),this['_liveShareService'][_0x3e7806(0x1ad)](this[_0x3e7806(0x1bf)])[_0x3e7806(0x183)](_0x565bab=>this['_collabSession'][_0x3e7806(0x142)]({'eventID':_0x286a58[_0x3e7806(0x144)][_0x3e7806(0x170)],'data':{'unitID':this[_0x3e7806(0x1bf)],'operations':{[_0x565bab['id']]:{'id':_0x565bab['id'],'params':JSON[_0x3e7806(0x159)](_0x565bab[_0x3e7806(0x178)])}}}},this[_0x3e7806(0x1bf)]));}[_0x49bce0(0x135)](){const _0x5ccd6e=_0x49bce0;var _0x3d7b1c;this[_0x5ccd6e(0x1c9)][_0x5ccd6e(0x149)](_0x5ccd6e(0xf2)),(_0x3d7b1c=this[_0x5ccd6e(0x1bc)])==null||_0x3d7b1c[_0x5ccd6e(0x15f)](),this[_0x5ccd6e(0x1bc)]=null;}[_0x49bce0(0x1d3)](){const _0x5c833c=_0x49bce0;var _0x26eadb;(_0x26eadb=this[_0x5c833c(0x1bc)])==null||_0x26eadb['dispose'](),this['_status$'][_0x5c833c(0x149)](_0x5c833c(0x1c3));}[_0x49bce0(0xf3)](){const _0x1472c5=_0x49bce0;var _0x21c2a5;this[_0x1472c5(0x1c9)][_0x1472c5(0x149)](_0x1472c5(0xf2)),(_0x21c2a5=this[_0x1472c5(0x1bc)])==null||_0x21c2a5[_0x1472c5(0x15f)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x3ca080=_0x49bce0;var _0x3ff734;this['_status$']['next']('not-following'),(_0x3ff734=this[_0x3ca080(0x1bc)])==null||_0x3ff734[_0x3ca080(0x15f)]();}['_handleOperation'](_0x5a2e10){const _0x5dab5a=_0x49bce0;if([_0x5dab5a(0x1a0),_0x5dab5a(0x11f),_0x5dab5a(0x113)][_0x5dab5a(0x1c2)](this[_0x5dab5a(0x14f)])||!_0x5a2e10['data'][_0x5dab5a(0x197)]||_0x5a2e10[_0x5dab5a(0x16f)][_0x5dab5a(0x197)]===this[_0x5dab5a(0x129)][_0x5dab5a(0x1c6)]())return;this[_0x5dab5a(0x14f)]===_0x5dab5a(0xf2)&&this[_0x5dab5a(0x1d3)]();const _0x437c55=_0x5a2e10['data'][_0x5dab5a(0x1cb)];Object['values'](_0x437c55)['forEach'](_0x5872ca=>{const _0x3581be=_0x5dab5a;this[_0x3581be(0x104)][_0x3581be(0x12b)](_0x5872ca['id'],_0x5872ca[_0x3581be(0x178)]?JSON['parse'](_0x5872ca[_0x3581be(0x178)]):null,{'fromCollab':!0x0});});}[_0x49bce0(0x150)](){const _0x38225d=_0x49bce0;var _0x306ecd;this[_0x38225d(0x1c9)]['next'](_0x38225d(0x113)),(_0x306ecd=this['_commandDisposable'])==null||_0x306ecd[_0x38225d(0x15f)]();}[_0x49bce0(0x109)](){const _0x299a8b=_0x49bce0;this[_0x299a8b(0x1c9)][_0x299a8b(0x149)](_0x299a8b(0xf2)),this[_0x299a8b(0x1b5)]();}},_0x519f60[_0x49bce0(0x1c4)]=_0x1fa393([_0x490e9(0x2,_0x3b8586[_0x49bce0(0x1c5)]),_0x490e9(0x3,_0x3b8586['Inject'](_0x29808c)),_0x490e9(0x4,_0x3b8586[_0x49bce0(0x177)])],_0x519f60[_0x49bce0(0x1c4)]);function _0x10db4c(){const _0x1eed3c=_0x49bce0,_0x2c5158=_0x28aa20[_0x1eed3c(0x15b)](_0x519f60['LiveShareController']),_0x7c3383=_0x28aa20[_0x1eed3c(0x15b)](_0x3b8586[_0x1eed3c(0x11d)]),_0x385453=_0x28aa20['useObservable'](()=>_0x7c3383['getCurrentTypeOfUnit$'](_0x3b8586['UniverInstanceType'][_0x1eed3c(0x14a)]),void 0x0,!0x1,[]),[_0x52ea26,_0x299f25]=_0x4fb086[_0x1eed3c(0x1ce)](null),[_0x2212d4,_0x5a9375]=_0x4fb086[_0x1eed3c(0x1ce)](_0x19e733[_0x1eed3c(0x169)]),_0xce88d5=_0x4fb086[_0x1eed3c(0x1ba)](null);return _0x4fb086[_0x1eed3c(0xf8)](()=>(_0x385453&&_0x2c5158[_0x1eed3c(0x19b)](_0x385453[_0x1eed3c(0x131)]())[_0x1eed3c(0x12c)](_0x12a2d0=>{const _0x3c47c6=_0x1eed3c;_0x299f25(_0x12a2d0),_0xce88d5[_0x3c47c6(0x180)]=_0x12a2d0['status$']['subscribe'](_0x2a9f6e=>{_0x5a9375(_0x2a9f6e);});}),()=>{const _0xd95b02=_0x1eed3c;var _0x4ea880;(_0x4ea880=_0xce88d5[_0xd95b02(0x180)])==null||_0x4ea880[_0xd95b02(0xed)](),_0xce88d5[_0xd95b02(0x180)]=null;}),[_0x385453,_0x2c5158]),_0x52ea26?_0x5b8318[_0x1eed3c(0x158)](_0x19dd6f[_0x1eed3c(0x126)],{'align':_0x1eed3c(0x1b4),'disabled':_0x2212d4===_0x19e733['OFFLINE'],'className':_0x1eed3c(0x172),'overlay':_0x5b8318[_0x1eed3c(0x158)](_0x198fea,{'status':_0x2212d4,'coordinator':_0x52ea26}),'children':_0x5b8318[_0x1eed3c(0x158)](_0x1eed3c(0x140),{'className':_0x19dd6f[_0x1eed3c(0x121)](_0x1eed3c(0x1ae),{'univer-cursor-not-allowed':_0x2212d4===_0x19e733[_0x1eed3c(0x171)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2212d4!==_0x19e733['OFFLINE']}),'type':'button','children':_0x5b8318[_0x1eed3c(0x158)](_0xcff326,{'className':_0x1eed3c(0xf4)})})}):null;}function _0x198fea(_0x42811d){const _0x1edf00=_0x49bce0,{status:_0x4e30e4,coordinator:_0x4e1b63}=_0x42811d;switch(_0x4e30e4){case _0x19e733['IDLE']:return _0x5b8318[_0x1edf00(0x158)](_0x2aa89d,{'coordinator':_0x4e1b63});case _0x19e733['FOLLOWING']:return _0x5b8318['jsx'](_0xde0470,{'coordinator':_0x4e1b63});case _0x19e733[_0x1edf00(0x195)]:return _0x5b8318[_0x1edf00(0x158)](_0x17f10b,{'coordinator':_0x4e1b63});case _0x19e733[_0x1edf00(0x171)]:return _0x5b8318['jsx'](_0x36d907,{});case _0x19e733['PRESENTING']:return _0x5b8318[_0x1edf00(0x158)](_0x25693c,{'coordinator':_0x4e1b63});default:return null;}}function _0x2aa89d(_0x122846){const _0x49844f=_0x49bce0,{coordinator:_0x6442e7}=_0x122846;return _0x5b8318['jsxs'](_0x5b8318[_0x49844f(0x199)],{'children':[_0x5b8318['jsx'](_0x49844f(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x49844f(0x147)}),_0x5b8318['jsx'](_0x19dd6f[_0x49844f(0x198)],{'onClick':()=>_0x6442e7[_0x49844f(0x17f)](),'children':_0x49844f(0x19e)})]});}function _0xde0470(_0x5ebd30){const _0x12a1a6=_0x49bce0,{coordinator:_0x226cb6}=_0x5ebd30;return _0x5b8318[_0x12a1a6(0x12d)](_0x5b8318[_0x12a1a6(0x199)],{'children':[_0x5b8318[_0x12a1a6(0x158)](_0x12a1a6(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x12a1a6(0x18d)}),_0x5b8318[_0x12a1a6(0x158)](_0x19dd6f['Button'],{'onClick':()=>_0x226cb6[_0x12a1a6(0x173)](),'children':_0x12a1a6(0xeb)})]});}function _0x17f10b(_0x3b1b64){const _0x36fbfb=_0x49bce0,{coordinator:_0xbcb08a}=_0x3b1b64;return _0x5b8318['jsxs'](_0x5b8318[_0x36fbfb(0x199)],{'children':[_0x5b8318[_0x36fbfb(0x158)](_0x36fbfb(0x160),{'className':_0x36fbfb(0x164),'children':_0x36fbfb(0xfd)}),_0x5b8318[_0x36fbfb(0x158)](_0x19dd6f[_0x36fbfb(0x198)],{'variant':_0x36fbfb(0x13e),'onClick':()=>_0xbcb08a['startFollowing'](),'children':_0x36fbfb(0x102)})]});}function _0x25693c(_0x5cc9ad){const _0x559725=_0x49bce0,{coordinator:_0x304d00}=_0x5cc9ad;return _0x5b8318[_0x559725(0x12d)](_0x5b8318['Fragment'],{'children':[_0x5b8318[_0x559725(0x158)](_0x559725(0x160),{'className':_0x559725(0x164),'children':_0x559725(0x1c0)}),_0x5b8318[_0x559725(0x158)](_0x19dd6f[_0x559725(0x198)],{'variant':_0x559725(0xef),'onClick':()=>_0x304d00[_0x559725(0x1d4)](),'children':_0x559725(0x19f)})]});}function _0x36d907(){const _0x706a38=_0x49bce0;return _0x5b8318[_0x706a38(0x158)](_0x5b8318[_0x706a38(0x199)],{'children':_0x706a38(0x1a5)});}var _0x470e15=Object[_0x49bce0(0x188)],_0xe46705=(_0x37d66b,_0x2a43d0,_0x234364,_0x4ab845)=>{for(var _0x19b742=_0x4ab845>0x1?void 0x0:_0x4ab845?_0x470e15(_0x2a43d0,_0x234364):_0x2a43d0,_0x17ecd5=_0x37d66b['length']-0x1,_0x2a0fbb;_0x17ecd5>=0x0;_0x17ecd5--)(_0x2a0fbb=_0x37d66b[_0x17ecd5])&&(_0x19b742=_0x2a0fbb(_0x19b742)||_0x19b742);return _0x19b742;},_0x195699=(_0x438e92,_0x2acd66)=>(_0x1858c3,_0x45afcd)=>_0x2acd66(_0x1858c3,_0x45afcd,_0x438e92);_0x519f60[_0x49bce0(0x10d)]=class extends _0x3b8586[_0x49bce0(0x130)]{constructor(_0x2d79e9,_0x121514){const _0x4ce287=_0x49bce0;super(),this[_0x4ce287(0x139)]=_0x2d79e9,this['_uiPartsService']=_0x121514,this[_0x4ce287(0x1a7)]();}[_0x49bce0(0x1a7)](){const _0x1b1bc8=_0x49bce0;this[_0x1b1bc8(0x1af)](this['_uiPartsService'][_0x1b1bc8(0x18c)](_0x28aa20[_0x1b1bc8(0x117)][_0x1b1bc8(0x191)],()=>_0x28aa20[_0x1b1bc8(0x122)](_0x10db4c,this[_0x1b1bc8(0x139)])));}},_0x519f60[_0x49bce0(0x10d)]=_0xe46705([_0x195699(0x0,_0x3b8586[_0x49bce0(0x1d9)](_0x3b8586[_0x49bce0(0x1cc)])),_0x195699(0x1,_0x28aa20[_0x49bce0(0xf9)])],_0x519f60[_0x49bce0(0x10d)]);const _0x34a057=_0x49bce0(0x106),_0x2c3a2e={};var _0x5dc112=Object[_0x49bce0(0x188)],_0xbda23c=(_0x5afcf2,_0x2135cb,_0x1f9a40,_0x396eda)=>{const _0xdb2d26=_0x49bce0;for(var _0x4a4aab=_0x396eda>0x1?void 0x0:_0x396eda?_0x5dc112(_0x2135cb,_0x1f9a40):_0x2135cb,_0x158acc=_0x5afcf2[_0xdb2d26(0x167)]-0x1,_0x3ce18a;_0x158acc>=0x0;_0x158acc--)(_0x3ce18a=_0x5afcf2[_0x158acc])&&(_0x4a4aab=_0x3ce18a(_0x4a4aab)||_0x4a4aab);return _0x4a4aab;},_0x3d84c7=(_0x4a0dc4,_0x3f98f6)=>(_0x3b1103,_0x41b65d)=>_0x3f98f6(_0x3b1103,_0x41b65d,_0x4a0dc4);let _0x225fb5=class extends _0x3b8586[_0x49bce0(0x130)]{constructor(_0x4397c0){const _0x391709=_0x49bce0;super(),this['_liveShareService']=_0x4397c0,this[_0x391709(0x1a9)]();}[_0x49bce0(0x1a9)](){const _0x246420=_0x49bce0;[_0x5c66b5['SetZoomRatioOperation']['id'],_0x5c66b5[_0x246420(0x185)]['id'],_0x24cc03['SetWorksheetActiveOperation']['id']][_0x246420(0x183)](_0x3117d6=>{const _0x581bea=_0x246420;this[_0x581bea(0x1af)](this[_0x581bea(0x119)]['registerSharedOperation'](_0x3117d6));});}};_0x225fb5=_0xbda23c([_0x3d84c7(0x0,_0x3b8586[_0x49bce0(0x1d9)](_0x29808c))],_0x225fb5);var _0x4d2a1e=Object[_0x49bce0(0xf0)],_0x3c45bb=Object[_0x49bce0(0x188)],_0x207512=(_0x1ea27a,_0x16d283,_0x2adfb5)=>_0x16d283 in _0x1ea27a?_0x4d2a1e(_0x1ea27a,_0x16d283,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2adfb5}):_0x1ea27a[_0x16d283]=_0x2adfb5,_0xe7da1d=(_0x131c98,_0x598543,_0xd422e2,_0x4c041d)=>{const _0x127191=_0x49bce0;for(var _0x360879=_0x4c041d>0x1?void 0x0:_0x4c041d?_0x3c45bb(_0x598543,_0xd422e2):_0x598543,_0x3d18fb=_0x131c98[_0x127191(0x167)]-0x1,_0x5624ec;_0x3d18fb>=0x0;_0x3d18fb--)(_0x5624ec=_0x131c98[_0x3d18fb])&&(_0x360879=_0x5624ec(_0x360879)||_0x360879);return _0x360879;},_0x36943a=(_0x54ec7f,_0x103949)=>(_0x27a431,_0x58c137)=>_0x103949(_0x27a431,_0x58c137,_0x54ec7f),_0x17c927=(_0x51561a,_0x2852da,_0x1cf353)=>_0x207512(_0x51561a,typeof _0x2852da!=_0x49bce0(0x14c)?_0x2852da+'':_0x2852da,_0x1cf353);const _0xf00184=_0x49bce0(0x156);_0x519f60[_0x49bce0(0x1d8)]=class extends _0x3b8586[_0x49bce0(0x17d)]{constructor(_0xddf32c=_0x2c3a2e,_0x21a0ea,_0x42bf8f){const _0x408e4b=_0x49bce0;super(),this['_config']=_0xddf32c,this[_0x408e4b(0x139)]=_0x21a0ea,this[_0x408e4b(0x15c)]=_0x42bf8f;const {..._0x7b788b}=_0x3b8586[_0x408e4b(0x175)]({},_0x2c3a2e,this[_0x408e4b(0x1a4)]);this['_configService'][_0x408e4b(0xf7)](_0x34a057,_0x7b788b);}['onStarting'](){const _0x403efe=_0x49bce0;_0x3b8586[_0x403efe(0x151)](this[_0x403efe(0x139)],_0x3b8586[_0x403efe(0x1d2)]([[_0x29808c],[_0x519f60[_0x403efe(0x108)]],[_0x225fb5],[_0x519f60[_0x403efe(0x10d)]]],this[_0x403efe(0x1a4)][_0x403efe(0x18f)])),_0x3b8586['touchDependencies'](this[_0x403efe(0x139)],[[_0x225fb5]]);}[_0x49bce0(0x1a1)](){const _0x3c37db=_0x49bce0;_0x3b8586[_0x3c37db(0xff)](this[_0x3c37db(0x139)],[[_0x519f60[_0x3c37db(0x10d)]]]);}},_0x17c927(_0x519f60[_0x49bce0(0x1d8)],_0x49bce0(0x16d),_0x3b8586['UniverInstanceType'][_0x49bce0(0x10b)]),_0x17c927(_0x519f60[_0x49bce0(0x1d8)],_0x49bce0(0x11a),_0xf00184),_0x519f60[_0x49bce0(0x1d8)]=_0xe7da1d([_0x3b8586[_0x49bce0(0x17b)](_0x38f205[_0x49bce0(0x118)]),_0x36943a(0x1,_0x3b8586['Inject'](_0x3b8586[_0x49bce0(0x1cc)])),_0x36943a(0x2,_0x3b8586[_0x49bce0(0x1c5)])],_0x519f60[_0x49bce0(0x1d8)]),_0x519f60['LiveShare']=_0x10db4c,_0x519f60[_0x49bce0(0x152)]=_0x29808c,_0x519f60['LiveShareStatus']=_0x19e733,Object[_0x49bce0(0xf0)](_0x519f60,Symbol[_0x49bce0(0x179)],{'value':_0x49bce0(0x1d0)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0-nightly.202511220628",
|
|
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.
|
|
61
|
-
"@univerjs
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/engine-render": "0.
|
|
65
|
-
"@univerjs/sheets
|
|
66
|
-
"@univerjs/ui": "0.
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.0-nightly.202511220628",
|
|
61
|
+
"@univerjs/design": "0.12.0-nightly.202511220628",
|
|
62
|
+
"@univerjs-pro/collaboration-client": "0.12.0-nightly.202511220628",
|
|
63
|
+
"@univerjs/core": "0.12.0-nightly.202511220628",
|
|
64
|
+
"@univerjs/engine-render": "0.12.0-nightly.202511220628",
|
|
65
|
+
"@univerjs/sheets": "0.12.0-nightly.202511220628",
|
|
66
|
+
"@univerjs/sheets-ui": "0.12.0-nightly.202511220628",
|
|
67
|
+
"@univerjs/ui": "0.12.0-nightly.202511220628"
|
|
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.2.2",
|
|
76
76
|
"vitest": "^3.2.4",
|
|
77
|
-
"@univerjs-infra/shared": "0.
|
|
77
|
+
"@univerjs-infra/shared": "0.12.0",
|
|
78
78
|
"@univerjs/protocol": "0.1.47"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|