@univerjs-pro/live-share 0.16.0 → 0.16.1-insiders.20260311-074e8ca

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0xa713d9=_0x7869;(function(_0x3b8230,_0x47da68){const _0x50dc7a=_0x7869,_0x351c2d=_0x3b8230();while(!![]){try{const _0x592769=-parseInt(_0x50dc7a(0x1ca))/0x1*(-parseInt(_0x50dc7a(0x1d4))/0x2)+parseInt(_0x50dc7a(0x1d0))/0x3*(parseInt(_0x50dc7a(0x1da))/0x4)+parseInt(_0x50dc7a(0x1c4))/0x5+parseInt(_0x50dc7a(0x1d2))/0x6*(-parseInt(_0x50dc7a(0x1c2))/0x7)+parseInt(_0x50dc7a(0x1ce))/0x8+-parseInt(_0x50dc7a(0x1c6))/0x9+-parseInt(_0x50dc7a(0x1d3))/0xa*(parseInt(_0x50dc7a(0x1df))/0xb);if(_0x592769===_0x47da68)break;else _0x351c2d['push'](_0x351c2d['shift']());}catch(_0x866479){_0x351c2d['push'](_0x351c2d['shift']());}}}(_0x5242,0x89e3b));function _0x7869(_0x1621a3,_0x1e57ce){_0x1621a3=_0x1621a3-0x1c0;const _0x52420e=_0x5242();let _0x78694e=_0x52420e[_0x1621a3];return _0x78694e;}var h=Object[_0xa713d9(0x1c8)],u=(_0xa3b9f1,_0x49b33d,_0x44280f)=>_0x49b33d in _0xa3b9f1?h(_0xa3b9f1,_0x49b33d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44280f}):_0xa3b9f1[_0x49b33d]=_0x44280f,S=(_0xd4c759,_0x38910c,_0x40c952)=>u(_0xd4c759,typeof _0x38910c!=_0xa713d9(0x1d6)?_0x38910c+'':_0x38910c,_0x40c952);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');function _0x5242(){const _0x1fefe4=['IUniverInstanceService','946iJrHXD','No\x20active\x20workbook\x20found.','stopPresenting','_injector','IDLE','139181myiHak','FUniver','2588140EYUXNB','getLiveShareCoordinatorSync','685278tbOtbW','UniverInstanceType','defineProperty','startPresenting','111806gSftiN','getUnitId','LiveShareController','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','7003656uyjvLB','startFollowing','21504AlTFAZ','stopFollowing','324UxcPWC','94630IRHimC','8COSZgM','LiveShareStatus','symbol','getStatus','get','extend','384GsPzdc','getCurrentUnitOfType','_liveShareController','UNIVER_SHEET'];_0x5242=function(){return _0x1fefe4;};return _0x5242();}class I extends c['FUniver']{constructor(){super(...arguments),S(this,'_liveShareController');}['_initialize'](_0x1a5a44){const _0x1d389a=_0xa713d9;this[_0x1d389a(0x1dc)]=_0x1a5a44[_0x1d389a(0x1d8)](s[_0x1d389a(0x1cc)]);}['getLiveShareStatus'](){const _0x41937e=_0xa713d9;var _0x1dc919;const _0x312d38=this[_0x41937e(0x1c0)][_0x41937e(0x1d8)](n[_0x41937e(0x1de)])[_0x41937e(0x1db)](n[_0x41937e(0x1c7)]['UNIVER_SHEET']);if(!_0x312d38)throw new Error(_0x41937e(0x1e0));const _0x56310b=_0x312d38[_0x41937e(0x1cb)](),_0x5e77e5=this['_liveShareController'][_0x41937e(0x1c5)](_0x56310b);return(_0x1dc919=_0x5e77e5==null?void 0x0:_0x5e77e5[_0x41937e(0x1d7)]())!=null?_0x1dc919:s[_0x41937e(0x1d5)][_0x41937e(0x1c1)];}[_0xa713d9(0x1cf)](){const _0x3c91f3=_0xa713d9,_0x3a86ae=this[_0x3c91f3(0x1c0)]['get'](n[_0x3c91f3(0x1de)])['getCurrentUnitOfType'](n['UniverInstanceType'][_0x3c91f3(0x1dd)]);if(!_0x3a86ae)throw new Error('No\x20active\x20workbook\x20found.');const _0x32f5ac=_0x3a86ae['getUnitId'](),_0x51005a=this[_0x3c91f3(0x1dc)][_0x3c91f3(0x1c5)](_0x32f5ac);if(!_0x51005a)throw new Error(_0x3c91f3(0x1cd));_0x51005a[_0x3c91f3(0x1cf)]();}[_0xa713d9(0x1d1)](){const _0x3a15e8=_0xa713d9,_0x15d72d=this['_injector'][_0x3a15e8(0x1d8)](n[_0x3a15e8(0x1de)])['getCurrentUnitOfType'](n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x15d72d)throw new Error(_0x3a15e8(0x1e0));const _0x2ed55f=_0x15d72d[_0x3a15e8(0x1cb)](),_0x44cced=this[_0x3a15e8(0x1dc)][_0x3a15e8(0x1c5)](_0x2ed55f);if(!_0x44cced)throw new Error(_0x3a15e8(0x1cd));_0x44cced[_0x3a15e8(0x1d1)]();}[_0xa713d9(0x1c9)](){const _0x3e4288=_0xa713d9,_0x5d2d0b=this['_injector']['get'](n[_0x3e4288(0x1de)])['getCurrentUnitOfType'](n[_0x3e4288(0x1c7)][_0x3e4288(0x1dd)]);if(!_0x5d2d0b)throw new Error(_0x3e4288(0x1e0));const _0x56d29b=_0x5d2d0b[_0x3e4288(0x1cb)](),_0x3fad47=this['_liveShareController'][_0x3e4288(0x1c5)](_0x56d29b);if(!_0x3fad47)throw new Error(_0x3e4288(0x1cd));_0x3fad47['tryStartPresenting']();}[_0xa713d9(0x1e1)](){const _0x651aff=_0xa713d9,_0x4e1c25=this[_0x651aff(0x1c0)]['get'](n[_0x651aff(0x1de)])[_0x651aff(0x1db)](n[_0x651aff(0x1c7)][_0x651aff(0x1dd)]);if(!_0x4e1c25)throw new Error(_0x651aff(0x1e0));const _0x45e2ba=_0x4e1c25[_0x651aff(0x1cb)](),_0x56f1b1=this['_liveShareController'][_0x651aff(0x1c5)](_0x45e2ba);if(!_0x56f1b1)throw new Error(_0x651aff(0x1cd));_0x56f1b1[_0x651aff(0x1e1)]();}}c[_0xa713d9(0x1c3)][_0xa713d9(0x1d9)](I);class l extends c['FEnum']{get['LiveShareStatusEnum'](){const _0x2c8ecc=_0xa713d9;return s[_0x2c8ecc(0x1d5)];}}c['FEnum'][_0xa713d9(0x1d9)](l);
1
+ 'use strict';const _0x1af94d=_0x37c2;(function(_0x5156b8,_0xd708a6){const _0xe3343f=_0x37c2,_0x333b39=_0x5156b8();while(!![]){try{const _0x26accf=-parseInt(_0xe3343f(0x16f))/0x1+parseInt(_0xe3343f(0x173))/0x2*(-parseInt(_0xe3343f(0x172))/0x3)+parseInt(_0xe3343f(0x184))/0x4*(-parseInt(_0xe3343f(0x17b))/0x5)+parseInt(_0xe3343f(0x181))/0x6+-parseInt(_0xe3343f(0x177))/0x7+-parseInt(_0xe3343f(0x16b))/0x8+-parseInt(_0xe3343f(0x18a))/0x9*(-parseInt(_0xe3343f(0x17e))/0xa);if(_0x26accf===_0xd708a6)break;else _0x333b39['push'](_0x333b39['shift']());}catch(_0x2f1cdc){_0x333b39['push'](_0x333b39['shift']());}}}(_0x4dc0,0x2e53a));var h=Object[_0x1af94d(0x18d)],u=(_0x3a3eb2,_0x17ea54,_0x3d0f58)=>_0x17ea54 in _0x3a3eb2?h(_0x3a3eb2,_0x17ea54,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d0f58}):_0x3a3eb2[_0x17ea54]=_0x3d0f58,S=(_0x5be5b9,_0x33d292,_0x1590a0)=>u(_0x5be5b9,typeof _0x33d292!=_0x1af94d(0x171)?_0x33d292+'':_0x33d292,_0x1590a0);function _0x4dc0(){const _0x9ac687=['FUniver','5ydzLox','IUniverInstanceService','getCurrentUnitOfType','11109530sCXoZt','No\x20active\x20workbook\x20found.','IDLE','642666IfVukX','getUnitId','stopPresenting','1046692sHsYEQ','_liveShareController','UniverInstanceType','stopFollowing','FEnum','_initialize','9KFOOEd','startFollowing','LiveShareStatus','defineProperty','getLiveShareCoordinatorSync','405384TYUazZ','UNIVER_SHEET','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','227033GTeYUn','extend','symbol','376449gVeUCh','2ymTuDE','tryStartPresenting','get','getStatus','2544136IYzjgc','LiveShareStatusEnum','getLiveShareStatus'];_0x4dc0=function(){return _0x9ac687;};return _0x4dc0();}function _0x37c2(_0xfc1eea,_0x3f72d3){_0xfc1eea=_0xfc1eea-0x16a;const _0x4dc00b=_0x4dc0();let _0x37c290=_0x4dc00b[_0xfc1eea];return _0x37c290;}const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');class I extends c[_0x1af94d(0x17a)]{constructor(){super(...arguments),S(this,'_liveShareController');}[_0x1af94d(0x189)](_0x3c3bf7){this['_liveShareController']=_0x3c3bf7['get'](s['LiveShareController']);}[_0x1af94d(0x179)](){const _0x3ee819=_0x1af94d;var _0x391dd1;const _0x1138cd=this[_0x3ee819(0x16d)][_0x3ee819(0x175)](n[_0x3ee819(0x17c)])[_0x3ee819(0x17d)](n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x1138cd)throw new Error(_0x3ee819(0x17f));const _0xe14907=_0x1138cd[_0x3ee819(0x182)](),_0x1968b4=this[_0x3ee819(0x185)]['getLiveShareCoordinatorSync'](_0xe14907);return(_0x391dd1=_0x1968b4==null?void 0x0:_0x1968b4[_0x3ee819(0x176)]())!=null?_0x391dd1:s[_0x3ee819(0x18c)][_0x3ee819(0x180)];}[_0x1af94d(0x18b)](){const _0x4f7e8e=_0x1af94d,_0x22b40e=this[_0x4f7e8e(0x16d)][_0x4f7e8e(0x175)](n[_0x4f7e8e(0x17c)])['getCurrentUnitOfType'](n[_0x4f7e8e(0x186)][_0x4f7e8e(0x16c)]);if(!_0x22b40e)throw new Error(_0x4f7e8e(0x17f));const _0x637dc7=_0x22b40e['getUnitId'](),_0x37ba0a=this['_liveShareController'][_0x4f7e8e(0x16a)](_0x637dc7);if(!_0x37ba0a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x37ba0a[_0x4f7e8e(0x18b)]();}[_0x1af94d(0x187)](){const _0x9de6fe=_0x1af94d,_0x4c5852=this[_0x9de6fe(0x16d)]['get'](n[_0x9de6fe(0x17c)])[_0x9de6fe(0x17d)](n[_0x9de6fe(0x186)]['UNIVER_SHEET']);if(!_0x4c5852)throw new Error(_0x9de6fe(0x17f));const _0x4128aa=_0x4c5852[_0x9de6fe(0x182)](),_0x52b81a=this[_0x9de6fe(0x185)][_0x9de6fe(0x16a)](_0x4128aa);if(!_0x52b81a)throw new Error(_0x9de6fe(0x16e));_0x52b81a[_0x9de6fe(0x187)]();}['startPresenting'](){const _0x1665a8=_0x1af94d,_0x4f8b60=this[_0x1665a8(0x16d)]['get'](n[_0x1665a8(0x17c)])['getCurrentUnitOfType'](n[_0x1665a8(0x186)]['UNIVER_SHEET']);if(!_0x4f8b60)throw new Error(_0x1665a8(0x17f));const _0x2fc57e=_0x4f8b60[_0x1665a8(0x182)](),_0x25cca0=this['_liveShareController'][_0x1665a8(0x16a)](_0x2fc57e);if(!_0x25cca0)throw new Error(_0x1665a8(0x16e));_0x25cca0[_0x1665a8(0x174)]();}[_0x1af94d(0x183)](){const _0x2b2167=_0x1af94d,_0x5b4f24=this[_0x2b2167(0x16d)]['get'](n[_0x2b2167(0x17c)])[_0x2b2167(0x17d)](n[_0x2b2167(0x186)][_0x2b2167(0x16c)]);if(!_0x5b4f24)throw new Error('No\x20active\x20workbook\x20found.');const _0x125d74=_0x5b4f24[_0x2b2167(0x182)](),_0x537493=this['_liveShareController'][_0x2b2167(0x16a)](_0x125d74);if(!_0x537493)throw new Error(_0x2b2167(0x16e));_0x537493[_0x2b2167(0x183)]();}}c[_0x1af94d(0x17a)][_0x1af94d(0x170)](I);class l extends c[_0x1af94d(0x188)]{get[_0x1af94d(0x178)](){const _0x39795d=_0x1af94d;return s[_0x39795d(0x18c)];}}c[_0x1af94d(0x188)][_0x1af94d(0x170)](l);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x490488=_0x3b91;(function(_0xf5f4,_0x52bda8){const _0x499941=_0x3b91,_0x24a186=_0xf5f4();while(!![]){try{const _0x560e24=parseInt(_0x499941(0x13f))/0x1*(-parseInt(_0x499941(0xd4))/0x2)+-parseInt(_0x499941(0x6e))/0x3*(-parseInt(_0x499941(0xaf))/0x4)+-parseInt(_0x499941(0xe5))/0x5+parseInt(_0x499941(0xcd))/0x6+-parseInt(_0x499941(0x92))/0x7+-parseInt(_0x499941(0x12c))/0x8+-parseInt(_0x499941(0xa7))/0x9*(-parseInt(_0x499941(0xec))/0xa);if(_0x560e24===_0x52bda8)break;else _0x24a186['push'](_0x24a186['shift']());}catch(_0x3e1198){_0x24a186['push'](_0x24a186['shift']());}}}(_0x51bc,0xf3b75));var T=Object[_0x490488(0xc2)],U=(_0x148702,_0x5c9d3d,_0x1e5e40)=>_0x5c9d3d in _0x148702?T(_0x148702,_0x5c9d3d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e5e40}):_0x148702[_0x5c9d3d]=_0x1e5e40,_=(_0x184d22,_0x59c41c,_0x1de69c)=>U(_0x184d22,typeof _0x59c41c!='symbol'?_0x59c41c+'':_0x59c41c,_0x1de69c);Object[_0x490488(0xc2)](exports,Symbol[_0x490488(0x124)],{'value':_0x490488(0x143)});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:_0x195ae9,..._0xf516aa}){const _0x5056ba=_0x490488,{icon:_0x29d347,id:_0x2c6eee,className:_0x3d7d3f,extend:_0x2a9f2d,..._0xfe84f0}=_0xf516aa,_0x21179e=(_0x5056ba(0xfc)+_0x2c6eee+'\x20'+(_0x3d7d3f||''))['trim'](),_0x4c513b=v[_0x5056ba(0xce)]('_'+H());return j(_0x29d347,''+_0x2c6eee,{'defIds':_0x29d347[_0x5056ba(0xbd)],'idSuffix':_0x4c513b['current']},{'ref':_0x195ae9,'className':_0x21179e,..._0xfe84f0},_0x2a9f2d);}function j(_0x335eb4,_0x1699e6,_0x55f700,_0x192332,_0x146781){const _0x116304=_0x490488;return v[_0x116304(0x98)](_0x335eb4[_0x116304(0xc6)],{'key':_0x1699e6,...y(_0x335eb4,_0x55f700,_0x146781),..._0x192332},(F(_0x335eb4,_0x55f700)[_0x116304(0xaa)]||[])[_0x116304(0x85)]((_0x15478b,_0x4dbcac)=>j(_0x15478b,_0x1699e6+'-'+_0x335eb4[_0x116304(0xc6)]+'-'+_0x4dbcac,_0x55f700,void 0x0,_0x146781)));}function y(_0xcadb42,_0x25c07a,_0x2affc1){const _0x1d2cc9=_0x490488,_0x2c3490={..._0xcadb42[_0x1d2cc9(0xdf)]};_0x2affc1!=null&&_0x2affc1[_0x1d2cc9(0x93)]&&_0x2c3490[_0x1d2cc9(0x97)]===_0x1d2cc9(0x93)&&(_0x2c3490['fill']=_0x2affc1[_0x1d2cc9(0x93)]),_0xcadb42[_0x1d2cc9(0xc6)]===_0x1d2cc9(0xf7)&&_0x2c3490['id']&&(_0x2c3490['id']=_0x2c3490['id']+_0x25c07a[_0x1d2cc9(0x11a)]),Object[_0x1d2cc9(0xb7)](_0x2c3490)[_0x1d2cc9(0x9c)](([_0x1925a4,_0x54313e])=>{const _0x5f53de=_0x1d2cc9;_0x1925a4==='mask'&&typeof _0x54313e=='string'&&(_0x2c3490[_0x1925a4]=_0x54313e[_0x5f53de(0xf3)](/url\(#(.*)\)/,_0x5f53de(0xc0)+_0x25c07a[_0x5f53de(0x11a)]+')'));});const {defIds:_0x1ee689}=_0x25c07a;return!_0x1ee689||_0x1ee689[_0x1d2cc9(0x79)]===0x0||(_0xcadb42[_0x1d2cc9(0xc6)]===_0x1d2cc9(0xd0)&&_0x2c3490[_0x1d2cc9(0x134)]&&(_0x2c3490['xlink:href']=_0x2c3490['xlink:href']+_0x25c07a['idSuffix']),Object[_0x1d2cc9(0xb7)](_0x2c3490)['forEach'](([_0x45aaf6,_0x5df890])=>{const _0x39cf8f=_0x1d2cc9;typeof _0x5df890==_0x39cf8f(0xa1)&&(_0x2c3490[_0x45aaf6]=_0x5df890[_0x39cf8f(0xf3)](/url\(#(.*)\)/,'url(#$1'+_0x25c07a[_0x39cf8f(0x11a)]+')'));})),_0x2c3490;}function F(_0xdf1b7c,_0x254008){const _0x24d422=_0x490488;var _0x88790d;const {defIds:_0x4da16a}=_0x254008;return!_0x4da16a||_0x4da16a['length']===0x0?_0xdf1b7c:_0xdf1b7c['tag']===_0x24d422(0x75)&&((_0x88790d=_0xdf1b7c[_0x24d422(0xaa)])!=null&&_0x88790d['length'])?{..._0xdf1b7c,'children':_0xdf1b7c[_0x24d422(0xaa)][_0x24d422(0x85)](_0x1db5cc=>typeof _0x1db5cc[_0x24d422(0xdf)]['id']=='string'&&_0x4da16a&&_0x4da16a['includes'](_0x1db5cc[_0x24d422(0xdf)]['id'])?{..._0x1db5cc,'attrs':{..._0x1db5cc[_0x24d422(0xdf)],'id':_0x1db5cc[_0x24d422(0xdf)]['id']+_0x254008[_0x24d422(0x11a)]}}:_0x1db5cc)}:_0xdf1b7c;}function H(){const _0x113310=_0x490488;return Math['random']()[_0x113310(0x8e)](0x24)[_0x113310(0x8b)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':_0x490488(0x7d),'attrs':{'xmlns':_0x490488(0xf9),'fill':_0x490488(0xe6),'viewBox':_0x490488(0x9e),'width':'1em','height':_0x490488(0x74)},'children':[{'tag':_0x490488(0xe2),'attrs':{'fill':_0x490488(0x110),'d':_0x490488(0xcf)}},{'tag':_0x490488(0xe2),'attrs':{'fill':'currentColor','d':_0x490488(0xc8),'fillRule':'evenodd','clipRule':_0x490488(0x109)}}]},R=v[_0x490488(0x116)](function(_0x4a9ff9,_0xe464b9){const _0xf70c76=_0x490488;return v[_0xf70c76(0x98)](x,Object[_0xf70c76(0x71)]({},_0x4a9ff9,{'id':_0xf70c76(0x11f),'ref':_0xe464b9,'icon':V}));});R['displayName']=_0x490488(0x10e);class E extends o[_0x490488(0xa0)]{constructor(){const _0xfd84f6=_0x490488;super(...arguments),_(this,_0xfd84f6(0x6d),new Set()),_(this,_0xfd84f6(0x76),new Set());}['registerSharedOperation'](_0x345d28){const _0x53ec1e=_0x490488;return this[_0x53ec1e(0x6d)][_0x53ec1e(0xe3)](_0x345d28),o[_0x53ec1e(0xd6)](()=>this['_sharedOperations'][_0x53ec1e(0xf6)](_0x345d28));}[_0x490488(0xd1)](_0x258995){const _0x4f1935=_0x490488;return this[_0x4f1935(0x76)][_0x4f1935(0xe3)](_0x258995),o['toDisposable'](()=>this[_0x4f1935(0x76)][_0x4f1935(0xf6)](_0x258995));}['shouldShareOperation'](_0x42f1f0){const _0x298a00=_0x490488;return this[_0x298a00(0x6d)][_0x298a00(0xfd)](_0x42f1f0);}[_0x490488(0x9b)](_0x5677c1){const _0x1e4a74=_0x490488;return Array['from'](this[_0x1e4a74(0x76)])[_0x1e4a74(0x85)](_0x5119d3=>_0x5119d3(_0x5677c1));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x5c1cde,_0x1d4411,_0x1c755b,_0x40e8c4)=>{const _0x267809=_0x490488;for(var _0x2c0188=_0x40e8c4>0x1?void 0x0:_0x40e8c4?M(_0x1d4411,_0x1c755b):_0x1d4411,_0x582e5d=_0x5c1cde[_0x267809(0x79)]-0x1,_0x5f428b;_0x582e5d>=0x0;_0x582e5d--)(_0x5f428b=_0x5c1cde[_0x582e5d])&&(_0x2c0188=_0x5f428b(_0x2c0188)||_0x2c0188);return _0x2c0188;},S=(_0x638bae,_0x4648b6)=>(_0x585dd8,_0x540ee3)=>_0x4648b6(_0x585dd8,_0x540ee3,_0x638bae);exports[_0x490488(0x7c)]=class extends o[_0x490488(0x13a)]{constructor(_0x263ae8,_0x59e386,_0x5059b2){const _0x4b79e6=_0x490488;super(),_(this,_0x4b79e6(0x112),new Map()),(this[_0x4b79e6(0x10b)]=_0x263ae8,this[_0x4b79e6(0x119)]=_0x59e386,this[_0x4b79e6(0x7b)]=_0x5059b2,this[_0x4b79e6(0xe9)]());}async[_0x490488(0x12f)](_0x4323d2){const _0x3106ea=_0x490488;return this['_entities']['has'](_0x4323d2)||await this[_0x3106ea(0x118)](_0x4323d2),this['_entities'][_0x3106ea(0x9f)](_0x4323d2);}[_0x490488(0x140)](_0x25e708){const _0x3abae5=_0x490488;var _0x384a3c;return(_0x384a3c=this[_0x3abae5(0x112)]['get'](_0x25e708))!=null?_0x384a3c:null;}[_0x490488(0xe9)](){const _0x149c69=_0x490488;this[_0x149c69(0x10b)]['getTypeOfUnitAdded$'](o[_0x149c69(0x6f)][_0x149c69(0xd8)])[_0x149c69(0xf5)](I[_0x149c69(0xb1)](this[_0x149c69(0xdb)]))[_0x149c69(0x113)](async _0x45197b=>{const _0xabb79f=_0x149c69,_0x44c8dc=_0x45197b[_0xabb79f(0xe4)]();this[_0xabb79f(0x112)][_0xabb79f(0xfd)](_0x44c8dc)||this[_0xabb79f(0x118)](_0x44c8dc);}),this[_0x149c69(0x10b)][_0x149c69(0x107)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x149c69(0xf5)](I['takeUntil'](this[_0x149c69(0xdb)]))[_0x149c69(0x113)](_0x340696=>{const _0x4b2e35=_0x149c69,_0x1cd521=_0x340696[_0x4b2e35(0xe4)](),_0x2ec39f=this['_entities'][_0x4b2e35(0x9f)](_0x1cd521);_0x2ec39f==null||_0x2ec39f[_0x4b2e35(0xfa)]();});}async['_startLiveShareCoordinator'](_0x5cdb13){const _0x5a29db=_0x490488,_0x2dced4=await this[_0x5a29db(0x7b)]['requireSession'](_0x5cdb13),_0xb5127c=this[_0x5a29db(0x119)][_0x5a29db(0x82)](exports['LiveShareCoordinator'],_0x5cdb13,_0x2dced4);return _0xb5127c[_0x5a29db(0xf4)](),this['_entities'][_0x5a29db(0x106)](_0x5cdb13,_0xb5127c),_0xb5127c;}},exports[_0x490488(0x7c)]=P([S(0x0,o[_0x490488(0xbf)]),S(0x1,o[_0x490488(0x115)](o[_0x490488(0xa8)])),S(0x2,o['Inject'](b['CollaborationSessionService']))],exports[_0x490488(0x7c)]);var u=(_0x581a8b=>(_0x581a8b[_0x490488(0xa2)]=_0x490488(0xbe),_0x581a8b[_0x490488(0xe1)]=_0x490488(0x8f),_0x581a8b[_0x490488(0x8d)]=_0x490488(0xcb),_0x581a8b[_0x490488(0x91)]=_0x490488(0xc7),_0x581a8b['PRESENTING']=_0x490488(0xa3),_0x581a8b))(u||{});const k=_0x490488(0x130),q=0xc8;exports[_0x490488(0x7f)]=class extends o['RxDisposable']{constructor(_0x321647,_0x493ed6,_0x2a3de0,_0x219234,_0x28907f){const _0x4142cb=_0x490488;super(),_(this,_0x4142cb(0xad),new O[(_0x4142cb(0x99))]('idle')),_(this,_0x4142cb(0x138),this['_status$'][_0x4142cb(0x70)]()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,_0x4142cb(0x128),null),(this['_unitID']=_0x321647,this['_collabSession']=_0x493ed6,this[_0x4142cb(0xa5)]=_0x2a3de0,this[_0x4142cb(0x13e)]=_0x219234,this[_0x4142cb(0x103)]=_0x28907f);}get[_0x490488(0xb9)](){const _0x9dd68f=_0x490488;return this[_0x9dd68f(0xad)][_0x9dd68f(0x10c)]();}[_0x490488(0xfa)](){const _0x466651=_0x490488;var _0x5165de;(_0x5165de=this[_0x466651(0x9a)])==null||_0x5165de[_0x466651(0xfa)](),this[_0x466651(0xad)]['next'](_0x466651(0x8f)),this[_0x466651(0xad)][_0x466651(0x100)]();}[_0x490488(0xe8)](){const _0x5ac4ea=_0x490488;return this[_0x5ac4ea(0xb9)];}[_0x490488(0xf4)](){const _0xfc2b72=_0x490488;this[_0xfc2b72(0xe9)]||(this[_0xfc2b72(0xe9)]=!0x0,this[_0xfc2b72(0xc4)][_0xfc2b72(0xe0)][_0xfc2b72(0xf5)](I[_0xfc2b72(0xb1)](this[_0xfc2b72(0xdb)]))['subscribe'](_0x3d5dfa=>{const _0x2a479d=_0xfc2b72;switch(_0x3d5dfa){case b[_0x2a479d(0xf2)]['OFFLINE']:this[_0x2a479d(0x78)]();break;case b[_0x2a479d(0xf2)][_0x2a479d(0x95)]:this['_handleOnline']();break;}}),this[_0xfc2b72(0xc4)][_0xfc2b72(0x131)][_0xfc2b72(0xf5)](I['takeUntil'](this[_0xfc2b72(0xdb)]))['subscribe'](_0x5881c8=>{const _0x3a1009=_0xfc2b72,{eventID:_0x5ba381}=_0x5881c8;switch(_0x5ba381){case d[_0x3a1009(0x10f)][_0x3a1009(0xac)]:this[_0x3a1009(0x73)](_0x5881c8);break;case d[_0x3a1009(0x10f)][_0x3a1009(0xc5)]:this[_0x3a1009(0x132)](_0x5881c8);break;case d[_0x3a1009(0x10f)][_0x3a1009(0xa6)]:this[_0x3a1009(0x8c)]();break;case d['CollaborationEvent'][_0x3a1009(0xb6)]:this[_0x3a1009(0x86)](_0x5881c8);break;}}));}[_0x490488(0x11e)](){const _0x27ed96=_0x490488;this[_0x27ed96(0xc4)][_0x27ed96(0xdd)]({'eventID':d['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x27ed96(0xf1)],'userID':this[_0x27ed96(0xc4)][_0x27ed96(0x87)]()}},this['_unitID']);}['stopPresenting'](){const _0x5ecb56=_0x490488;this[_0x5ecb56(0xb9)]==='presenting'&&(this[_0x5ecb56(0xad)]['next']('idle'),this[_0x5ecb56(0xc4)]['send']({'eventID':d[_0x5ecb56(0x10f)][_0x5ecb56(0xa6)],'data':{'unitID':this[_0x5ecb56(0xf1)]}},this[_0x5ecb56(0xf1)]));}[_0x490488(0xdc)](){const _0x4da4a9=_0x490488;this[_0x4da4a9(0xb9)]==='not-following'&&(this['_status$'][_0x4da4a9(0xd7)](_0x4da4a9(0xcb)),this[_0x4da4a9(0x122)]());}[_0x490488(0x125)](){const _0x16c1f3=_0x490488;this[_0x16c1f3(0xb9)]==='following'&&this['_stopFollowing']();}[_0x490488(0x73)](_0x4635d1){const _0x4dca69=_0x490488,{presenter:_0x5275f1}=_0x4635d1[_0x4dca69(0xb5)],_0x36e218=this[_0x4dca69(0xc4)]['getMemberID']();this['_presenter']=_0x5275f1,_0x5275f1===_0x36e218?(this['_stopFollowing'](),this[_0x4dca69(0x7e)]()):this[_0x4dca69(0xb9)]!=='not-following'&&(this[_0x4dca69(0x117)](),this[_0x4dca69(0x122)]());}[_0x490488(0x126)](){const _0x125aeb=_0x490488,_0x4e3fce={'eventID':d[_0x125aeb(0x10f)][_0x125aeb(0x111)]};this[_0x125aeb(0xc4)]['send'](_0x4e3fce,this[_0x125aeb(0xf1)]);}[_0x490488(0x8c)](){const _0x2de1bc=_0x490488;this[_0x2de1bc(0x128)]=null,this[_0x2de1bc(0xb9)]!==_0x2de1bc(0xa3)&&this['_beIdle']();}[_0x490488(0x86)](_0x398bf9){const _0x3a03bd=_0x490488;if(this[_0x3a03bd(0xb9)]==='following'&&this[_0x3a03bd(0x128)]===_0x398bf9[_0x3a03bd(0xb5)]['memberID']){const _0x4c908f=d['parseProtocolChangeset'](_0x398bf9[_0x3a03bd(0xb5)])[_0x3a03bd(0xfb)][_0x3a03bd(0xde)]()[_0x3a03bd(0x10a)](_0xf3c649=>_0xf3c649['id']===C[_0x3a03bd(0xed)]['id']);if(_0x4c908f){const _0x284644=_0x4c908f[_0x3a03bd(0x101)][_0x3a03bd(0xd9)],_0x3b7ec5=_0x4c908f['params'][_0x3a03bd(0x136)]['id'];setTimeout(()=>{const _0x38ad99=_0x3a03bd;this[_0x38ad99(0x103)][_0x38ad99(0xbb)](C[_0x38ad99(0x8a)]['id'],{'unitId':_0x284644,'subUnitId':_0x3b7ec5},{'fromCollab':!0x0});});}}}[_0x490488(0x7e)](){const _0x1a20fe=_0x490488;this[_0x1a20fe(0xad)][_0x1a20fe(0xd7)](_0x1a20fe(0xa3));const _0x1fb764=new Map(),_0x14504d=this['_commandDisposable']=new o['DisposableCollection']();_0x14504d[_0x1a20fe(0xe3)](o[_0x1a20fe(0xd6)](()=>{const _0x425834=_0x1a20fe;_0x1fb764[_0x425834(0x9c)](_0x117af8=>_0x117af8[_0x425834(0x100)]()),_0x1fb764[_0x425834(0x88)]();})),_0x14504d['add'](this[_0x1a20fe(0x103)][_0x1a20fe(0xba)](_0xb415b7=>{const _0x53571c=_0x1a20fe;var _0x1d59eb;if(_0xb415b7[_0x53571c(0xef)]!==o[_0x53571c(0xe7)][_0x53571c(0xcc)]||!this[_0x53571c(0x13e)][_0x53571c(0x84)](_0xb415b7['id']))return;const {id:_0x59850e}=_0xb415b7;let _0x3565f0;_0x1fb764['has'](_0x59850e)?_0x3565f0=_0x1fb764[_0x53571c(0x9f)](_0x59850e):(_0x3565f0=new O[(_0x53571c(0x114))](),_0x1fb764[_0x53571c(0x106)](_0x59850e,_0x3565f0),_0x3565f0[_0x53571c(0xf5)](I[_0x53571c(0x80)]((_0x1d59eb=this['_configService'][_0x53571c(0x81)](k))!=null?_0x1d59eb:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x53571c(0x113)](_0x25f3ed=>{const _0xefa1cb=_0x53571c;this[_0xefa1cb(0xc4)]['send']({'eventID':d[_0xefa1cb(0x10f)][_0xefa1cb(0xc5)],'data':{'unitID':this[_0xefa1cb(0xf1)],'operations':{[_0x25f3ed['id']]:{'id':_0x25f3ed['id'],'params':JSON[_0xefa1cb(0xfe)](_0x25f3ed[_0xefa1cb(0x101)])}}}},this[_0xefa1cb(0xf1)]);})),_0x3565f0[_0x53571c(0xd7)](_0xb415b7);})),this[_0x1a20fe(0x13e)]['getInitialStates'](this['_unitID'])[_0x1a20fe(0x9c)](_0x34a5e6=>this[_0x1a20fe(0xc4)][_0x1a20fe(0xdd)]({'eventID':d[_0x1a20fe(0x10f)][_0x1a20fe(0xc5)],'data':{'unitID':this[_0x1a20fe(0xf1)],'operations':{[_0x34a5e6['id']]:{'id':_0x34a5e6['id'],'params':JSON[_0x1a20fe(0xfe)](_0x34a5e6[_0x1a20fe(0x101)])}}}},this[_0x1a20fe(0xf1)]));}[_0x490488(0x117)](){const _0x43fbb7=_0x490488;var _0x12e411;this[_0x43fbb7(0xad)]['next'](_0x43fbb7(0x8f)),(_0x12e411=this[_0x43fbb7(0x9a)])==null||_0x12e411['dispose'](),this[_0x43fbb7(0x9a)]=null;}[_0x490488(0x122)](){const _0x329061=_0x490488;var _0x3dc55b;(_0x3dc55b=this['_commandDisposable'])==null||_0x3dc55b['dispose'](),this[_0x329061(0xad)][_0x329061(0xd7)]('following');}[_0x490488(0xb2)](){const _0x19f8bf=_0x490488;var _0x418496;this[_0x19f8bf(0xad)][_0x19f8bf(0xd7)](_0x19f8bf(0x8f)),(_0x418496=this[_0x19f8bf(0x9a)])==null||_0x418496[_0x19f8bf(0xfa)](),this[_0x19f8bf(0x9a)]=null;}['_stopFollowing'](){const _0x33e8b4=_0x490488;var _0x5b56a3;this[_0x33e8b4(0xad)][_0x33e8b4(0xd7)]('not-following'),(_0x5b56a3=this[_0x33e8b4(0x9a)])==null||_0x5b56a3[_0x33e8b4(0xfa)]();}[_0x490488(0x132)](_0x303c5c){const _0x591647=_0x490488;if([_0x591647(0xa3),_0x591647(0xc7),'offline'][_0x591647(0xd5)](this[_0x591647(0xb9)])||!_0x303c5c[_0x591647(0xb5)]['presenter']||_0x303c5c['data']['presenter']===this[_0x591647(0xc4)]['getMemberID']())return;this[_0x591647(0xb9)]===_0x591647(0x8f)&&this[_0x591647(0x122)]();const _0x353e5b=_0x303c5c[_0x591647(0xb5)][_0x591647(0x10d)];Object[_0x591647(0x77)](_0x353e5b)['forEach'](_0x5cc486=>{const _0x370c70=_0x591647;this[_0x370c70(0x103)][_0x370c70(0xbb)](_0x5cc486['id'],_0x5cc486['params']?JSON['parse'](_0x5cc486[_0x370c70(0x101)]):null,{'fromCollab':!0x0});});}[_0x490488(0x78)](){const _0x4a2ac3=_0x490488;var _0x329814;this['_status$'][_0x4a2ac3(0xd7)]('offline'),(_0x329814=this[_0x4a2ac3(0x9a)])==null||_0x329814[_0x4a2ac3(0xfa)]();}[_0x490488(0x12e)](){const _0x287a05=_0x490488;this[_0x287a05(0xad)][_0x287a05(0xd7)]('idle'),this[_0x287a05(0x126)]();}},exports[_0x490488(0x7f)]=P([S(0x2,o[_0x490488(0xd3)]),S(0x3,o[_0x490488(0x115)](E)),S(0x4,o[_0x490488(0xee)])],exports[_0x490488(0x7f)]);function $(){const _0x47abe7=_0x490488,_0x1c00f6=p[_0x47abe7(0x13c)](exports[_0x47abe7(0x7c)]),_0x3649f0=p['useDependency'](o['IUniverInstanceService']),_0x5eeb9f=p[_0x47abe7(0x102)](()=>_0x3649f0[_0x47abe7(0x123)](o[_0x47abe7(0x6f)][_0x47abe7(0xd8)]),void 0x0,!0x1,[]),[_0x5e8409,_0x50f769]=v[_0x47abe7(0xff)](null),[_0x21af1e,_0x5a72c8]=v['useState'](u[_0x47abe7(0xe1)]),_0x425f67=v['useRef'](null);return v['useEffect'](()=>(_0x5eeb9f&&_0x1c00f6['getLiveShareCoordinator'](_0x5eeb9f[_0x47abe7(0xe4)]())['then'](_0x580ad0=>{const _0x53738e=_0x47abe7;_0x50f769(_0x580ad0),_0x425f67['current']=_0x580ad0[_0x53738e(0x138)][_0x53738e(0x113)](_0x4cb02d=>{_0x5a72c8(_0x4cb02d);});}),()=>{var _0x2b634c;(_0x2b634c=_0x425f67['current'])==null||_0x2b634c['unsubscribe'](),_0x425f67['current']=null;}),[_0x5eeb9f,_0x1c00f6]),_0x5e8409?l[_0x47abe7(0x94)](f[_0x47abe7(0x72)],{'align':'end','disabled':_0x21af1e===u[_0x47abe7(0xa2)],'className':_0x47abe7(0x105),'overlay':l[_0x47abe7(0x94)](W,{'status':_0x21af1e,'coordinator':_0x5e8409}),'children':l[_0x47abe7(0x94)](_0x47abe7(0x11d),{'className':f['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x21af1e===u[_0x47abe7(0xa2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x21af1e!==u['OFFLINE']}),'type':'button','children':l[_0x47abe7(0x94)](R,{'className':_0x47abe7(0xb0)})})}):null;}function W(_0x5a3735){const _0x352020=_0x490488,{status:_0x3ecab3,coordinator:_0x5d7812}=_0x5a3735;switch(_0x3ecab3){case u['IDLE']:return l[_0x352020(0x94)](G,{'coordinator':_0x5d7812});case u[_0x352020(0x8d)]:return l[_0x352020(0x94)](B,{'coordinator':_0x5d7812});case u['NOT_FOLLOWING']:return l[_0x352020(0x94)](Y,{'coordinator':_0x5d7812});case u['OFFLINE']:return l[_0x352020(0x94)](J,{});case u[_0x352020(0xb3)]:return l[_0x352020(0x94)](Z,{'coordinator':_0x5d7812});default:return null;}}function G(_0x296f96){const _0x549857=_0x490488,{coordinator:_0x1ad7d2}=_0x296f96;return l[_0x549857(0x9d)](l[_0x549857(0x7a)],{'children':[l[_0x549857(0x94)](_0x549857(0xc1),{'className':_0x549857(0xeb),'children':_0x549857(0x96)}),l[_0x549857(0x94)](f[_0x549857(0x127)],{'onClick':()=>_0x1ad7d2['tryStartPresenting'](),'children':_0x549857(0xd2)})]});}function B(_0x16444c){const _0x3bd942=_0x490488,{coordinator:_0x467473}=_0x16444c;return l[_0x3bd942(0x9d)](l['Fragment'],{'children':[l[_0x3bd942(0x94)](_0x3bd942(0xc1),{'className':_0x3bd942(0xeb),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x3bd942(0x94)](f[_0x3bd942(0x127)],{'onClick':()=>_0x467473['stopFollowing'](),'children':_0x3bd942(0xf0)})]});}function Y(_0x5627f4){const _0x4dc2c4=_0x490488,{coordinator:_0x33749b}=_0x5627f4;return l[_0x4dc2c4(0x9d)](l[_0x4dc2c4(0x7a)],{'children':[l['jsx'](_0x4dc2c4(0xc1),{'className':_0x4dc2c4(0xeb),'children':_0x4dc2c4(0x12d)}),l[_0x4dc2c4(0x94)](f['Button'],{'variant':_0x4dc2c4(0xc9),'onClick':()=>_0x33749b[_0x4dc2c4(0xdc)](),'children':_0x4dc2c4(0x83)})]});}function Z(_0xa80fd1){const _0x14625a=_0x490488,{coordinator:_0x8a236d}=_0xa80fd1;return l[_0x14625a(0x9d)](l[_0x14625a(0x7a)],{'children':[l['jsx'](_0x14625a(0xc1),{'className':_0x14625a(0xeb),'children':_0x14625a(0xab)}),l[_0x14625a(0x94)](f[_0x14625a(0x127)],{'variant':_0x14625a(0xc3),'onClick':()=>_0x8a236d[_0x14625a(0xbc)](),'children':'Stop\x20presenting'})]});}function J(){const _0x63ccd0=_0x490488;return l['jsx'](l[_0x63ccd0(0x7a)],{'children':_0x63ccd0(0x133)});}var K=Object[_0x490488(0xca)],z=(_0x1c3ffb,_0x85d5ac,_0x4987bd,_0x4e871f)=>{const _0x267233=_0x490488;for(var _0x2e6421=_0x4e871f>0x1?void 0x0:_0x4e871f?K(_0x85d5ac,_0x4987bd):_0x85d5ac,_0x1efa4d=_0x1c3ffb[_0x267233(0x79)]-0x1,_0x5d355e;_0x1efa4d>=0x0;_0x1efa4d--)(_0x5d355e=_0x1c3ffb[_0x1efa4d])&&(_0x2e6421=_0x5d355e(_0x2e6421)||_0x2e6421);return _0x2e6421;},L=(_0x27f441,_0x3ef214)=>(_0x517850,_0xeede5c)=>_0x3ef214(_0x517850,_0xeede5c,_0x27f441);exports['DesktopLiveShareController']=class extends o[_0x490488(0xa0)]{constructor(_0x1c5875,_0x4b19e1){const _0x241552=_0x490488;super(),this[_0x241552(0x119)]=_0x1c5875,this[_0x241552(0x139)]=_0x4b19e1,this[_0x241552(0xb4)]();}[_0x490488(0xb4)](){const _0x398e44=_0x490488;this[_0x398e44(0xa4)](this[_0x398e44(0x139)][_0x398e44(0x13b)](p[_0x398e44(0x13d)][_0x398e44(0x90)],()=>p[_0x398e44(0xae)]($,this[_0x398e44(0x119)])));}},exports['DesktopLiveShareController']=z([L(0x0,o['Inject'](o['Injector'])),L(0x1,p[_0x490488(0x108)])],exports[_0x490488(0x89)]);const Q=_0x490488(0xda),w={};var X=Object[_0x490488(0xca)],ee=(_0x92d16a,_0xa161fc,_0x5314b6,_0xbabeba)=>{const _0x10abe3=_0x490488;for(var _0x3c2c04=_0xbabeba>0x1?void 0x0:_0xbabeba?X(_0xa161fc,_0x5314b6):_0xa161fc,_0x95406c=_0x92d16a[_0x10abe3(0x79)]-0x1,_0x43672d;_0x95406c>=0x0;_0x95406c--)(_0x43672d=_0x92d16a[_0x95406c])&&(_0x3c2c04=_0x43672d(_0x3c2c04)||_0x3c2c04);return _0x3c2c04;},te=(_0x1a7971,_0x506cd0)=>(_0xf981d8,_0x4e3b00)=>_0x506cd0(_0xf981d8,_0x4e3b00,_0x1a7971);let m=class extends o[_0x490488(0xa0)]{constructor(_0x439453){const _0x5e79db=_0x490488;super(),this[_0x5e79db(0x13e)]=_0x439453,this[_0x5e79db(0xe9)]();}[_0x490488(0xe9)](){const _0x68b2d2=_0x490488;[D[_0x68b2d2(0xf8)]['id'],D[_0x68b2d2(0x142)]['id'],C[_0x68b2d2(0x8a)]['id']][_0x68b2d2(0x9c)](_0x4df513=>{const _0x1a54e7=_0x68b2d2;this['disposeWithMe'](this[_0x1a54e7(0x13e)][_0x1a54e7(0x135)](_0x4df513));});}};m=ee([te(0x0,o[_0x490488(0x115)](E))],m);function _0x51bc(){const _0x1f8665=['NEW_CHANGESETS','entries','UniverCollaborationClientPlugin','_status','onCommandExecuted','executeCommand','stopPresenting','defIds','offline','IUniverInstanceService','url(#$1','div','defineProperty','default','_collabSession','LIVESHARE_OPERATION','tag','not-following','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','text','getOwnPropertyDescriptor','following','OPERATION','10986912VTQmQp','useRef','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','use','registerInitialStateReporter','Start','IConfigService','1250YZQctU','includes','toDisposable','next','UNIVER_SHEET','unitId','live-share.config','dispose$','startFollowing','send','reverse','attrs','sessionStatus$','IDLE','path','add','getUnitId','3064670rqqfzW','none','CommandType','getStatus','_init','Plugin','univer-mb-3\x20univer-w-full\x20univer-text-sm','980LoYKFi','InsertSheetMutation','ICommandService','type','Stop\x20following','_unitID','SessionStatus','replace','init','pipe','delete','mask','SetZoomRatioOperation','http://www.w3.org/2000/svg','dispose','mutations','univerjs-icon\x20univerjs-icon-','has','stringify','useState','complete','params','useObservable','_commandService','onRendered','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','set','getTypeOfUnitDisposed$','IUIPartsService','evenodd','find','_univerInstanceService','getValue','operations','LiveShareIcon','CollaborationEvent','currentColor','LIVESHARE_FETCH_OPERATIONS','_entities','subscribe','Subject','Inject','forwardRef','_stopPresenting','_startLiveShareCoordinator','_injector','idSuffix','onStarting','LiveShareStatus','button','tryStartPresenting','live-share-icon','registerDependencies','merge','_startFollowing','getCurrentTypeOfUnit$','toStringTag','stopFollowing','_fetchOperations','Button','_presenter','_config','pluginName','LiveShare','11021928WTXnMw','You\x27re\x20not\x20following\x20the\x20presenter','_handleOnline','getLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','event$','_handleOperation','You\x27are\x20offline.','xlink:href','registerSharedOperation','sheet','mergeOverrideWithDependencies','status$','_uiPartsService','RxDisposable','registerComponent','useDependency','BuiltInUIPart','_liveShareService','1014avPmUg','getLiveShareCoordinatorSync','UniverLiveSharePlugin','SetScrollOperation','Module','_sharedOperations','2198307UXVFkw','UniverInstanceType','asObservable','assign','Dropdown','_handleNewHost','1em','defs','_reporters','values','_handleOffline','length','Fragment','_collabSessionService','LiveShareController','svg','_startPresenting','LiveShareCoordinator','throttleTime','getConfig','createInstance','Start\x20following','shouldShareOperation','map','_handleNewChangeSets','getMemberID','clear','DesktopLiveShareController','SetWorksheetActiveOperation','substring','_handleTerminate','FOLLOWING','toString','idle','HEADER_MENU','NOT_FOLLOWING','1001063XYXiqu','colorChannel1','jsx','ONLINE','Present\x20this\x20document','fill','createElement','BehaviorSubject','_commandDisposable','getInitialStates','forEach','jsxs','0\x200\x2017\x2017','get','Disposable','string','OFFLINE','presenting','disposeWithMe','_configService','LIVESHARE_TERMINATE','110367KFBXgY','Injector','UNIVER_LIVE_SHARE_PLUGIN','children','You\x27re\x20presenting\x20the\x20document','LIVESHARE_NEW_HOST','_status$','connectInjector','4TRMuZR','univer-size-4','takeUntil','_beIdle','PRESENTING','_mountLiveShare','data'];_0x51bc=function(){return _0x1f8665;};return _0x51bc();}var ie=Object[_0x490488(0xc2)],se=Object['getOwnPropertyDescriptor'],ne=(_0x17d319,_0x99f6a8,_0x28e27f)=>_0x99f6a8 in _0x17d319?ie(_0x17d319,_0x99f6a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28e27f}):_0x17d319[_0x99f6a8]=_0x28e27f,re=(_0x59c681,_0x16ff57,_0x380e4c,_0x3f8be8)=>{for(var _0x528206=_0x3f8be8>0x1?void 0x0:_0x3f8be8?se(_0x16ff57,_0x380e4c):_0x16ff57,_0x107496=_0x59c681['length']-0x1,_0x534ba0;_0x107496>=0x0;_0x107496--)(_0x534ba0=_0x59c681[_0x107496])&&(_0x528206=_0x534ba0(_0x528206)||_0x528206);return _0x528206;},N=(_0x3800cc,_0x3d19e2)=>(_0x18f940,_0x3c2bda)=>_0x3d19e2(_0x18f940,_0x3c2bda,_0x3800cc),A=(_0x5e702d,_0x2461bf,_0x57d0a6)=>ne(_0x5e702d,typeof _0x2461bf!='symbol'?_0x2461bf+'':_0x2461bf,_0x57d0a6);function _0x3b91(_0x14e157,_0x3f80a7){_0x14e157=_0x14e157-0x6d;const _0x51bc61=_0x51bc();let _0x3b914e=_0x51bc61[_0x14e157];return _0x3b914e;}const oe=_0x490488(0xa9);exports[_0x490488(0x141)]=class extends o[_0x490488(0xea)]{constructor(_0x4c86e3=w,_0x258e4f,_0x4784a3){const _0x2bd7cc=_0x490488;super(),this[_0x2bd7cc(0x129)]=_0x4c86e3,this['_injector']=_0x258e4f,this['_configService']=_0x4784a3;const {..._0x12590d}=o[_0x2bd7cc(0x121)]({},w,this['_config']);this[_0x2bd7cc(0xa5)]['setConfig'](Q,_0x12590d);}[_0x490488(0x11b)](){const _0x462bee=_0x490488;o[_0x462bee(0x120)](this[_0x462bee(0x119)],o[_0x462bee(0x137)]([[E],[exports[_0x462bee(0x7c)]],[m],[exports[_0x462bee(0x89)]]],this[_0x462bee(0x129)]['override'])),o['touchDependencies'](this[_0x462bee(0x119)],[[m]]);}[_0x490488(0x104)](){const _0x173c84=_0x490488;o['touchDependencies'](this['_injector'],[[exports[_0x173c84(0x89)]]]);}},A(exports[_0x490488(0x141)],_0x490488(0xef),o['UniverInstanceType']['UNIVER_UNKNOWN']),A(exports['UniverLiveSharePlugin'],_0x490488(0x12a),oe),exports['UniverLiveSharePlugin']=re([o['DependentOn'](b[_0x490488(0xb8)]),N(0x1,o['Inject'](o[_0x490488(0xa8)])),N(0x2,o[_0x490488(0xd3)])],exports['UniverLiveSharePlugin']),exports[_0x490488(0x12b)]=$,exports['LiveShareService']=E,exports[_0x490488(0x11c)]=u;
1
+ 'use strict';const _0x42576c=_0x4c4c;(function(_0x48faa7,_0x2f7b64){const _0x473cd2=_0x4c4c,_0x16ca9a=_0x48faa7();while(!![]){try{const _0x11227a=parseInt(_0x473cd2(0x18d))/0x1+parseInt(_0x473cd2(0x1aa))/0x2+parseInt(_0x473cd2(0x205))/0x3+-parseInt(_0x473cd2(0x1ed))/0x4+parseInt(_0x473cd2(0x1f3))/0x5*(-parseInt(_0x473cd2(0x21c))/0x6)+parseInt(_0x473cd2(0x15e))/0x7+parseInt(_0x473cd2(0x1ae))/0x8*(-parseInt(_0x473cd2(0x1b0))/0x9);if(_0x11227a===_0x2f7b64)break;else _0x16ca9a['push'](_0x16ca9a['shift']());}catch(_0x50d9fa){_0x16ca9a['push'](_0x16ca9a['shift']());}}}(_0x4b8b,0xe988a));function _0x4c4c(_0x26ae36,_0x112527){_0x26ae36=_0x26ae36-0x151;const _0x4b8baa=_0x4b8b();let _0x4c4c8d=_0x4b8baa[_0x26ae36];return _0x4c4c8d;}var A=Object[_0x42576c(0x154)],y=(_0x2f386d,_0x4beecc,_0x3f77ee)=>_0x4beecc in _0x2f386d?A(_0x2f386d,_0x4beecc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f77ee}):_0x2f386d[_0x4beecc]=_0x3f77ee,_=(_0x91fca1,_0x1f6024,_0x3351fb)=>y(_0x91fca1,typeof _0x1f6024!=_0x42576c(0x167)?_0x1f6024+'':_0x1f6024,_0x3351fb);Object[_0x42576c(0x154)](exports,Symbol['toStringTag'],{'value':_0x42576c(0x19c)});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'),O=require('@univerjs/sheets'),L=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function _0x4b8b(){const _0x1f2e6e=['_liveShareService','IUniverInstanceService','parseProtocolChangeset','tryStartPresenting','xlink:href','map','_uiPartsService','FOLLOWING','1851375fYdqVP','IUIPartsService','includes','connectInjector','CollaborationSessionService','_commandService','delete','_handleNewHost','createInstance','Disposable','idle','SessionStatus','LiveShare','useState','Fragment','Module','_handleTerminate','Start','getInitialStates','_status','getCurrentTypeOfUnit$','getValue','not-following','onStarting','createElement','find','tag','_stopFollowing','ICommandService','215236PtKmvY','jsx','0.16.1-insiders.20260311-074e8ca','IDLE','288mZPVxJ','UniverInstanceType','149508pFdxLX','add','_config','univer-mb-3\x20univer-w-full\x20univer-text-sm','_collabSession','override','getUnitId','executeCommand','1em','status$','_handleOffline','toString','LiveShareStatus','http://www.w3.org/2000/svg','idSuffix','jsxs','LiveShareIcon','univerjs-icon\x20univerjs-icon-','defs','live-share-icon','CollaborationEvent','sheet','BuiltInUIPart','text','pluginName','Stop\x20following','merge','current','HEADER_MENU','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','_reporters','dispose$','UniverLiveSharePlugin','startFollowing','_startPresenting','getTypeOfUnitAdded$','forEach','packageName','stringify','UNIVER_SHEET','path','_entities','_handleOperation','use','UniverCollaborationClientPlugin','evenodd','LiveShareCoordinator','registerSharedOperation','OFFLINE','InsertSheetMutation','init','send','Stop\x20presenting','registerComponent','_collabSessionService','Injector','_startLiveShareCoordinator','parse','string','get','offline','7585540JsBPzZ','colorChannel1','data','NEW_CHANGESETS','div','SetWorksheetActiveOperation','5FmhcBb','sessionStatus$','Inject','end','presenting','entries','disposeWithMe','Plugin','RxDisposable','forwardRef','next','LIVESHARE_OPERATION','currentColor','stopPresenting','memberID','univer-size-4','DesktopLiveShareController','assign','3910116YicyAl','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','stopFollowing','then','_status$','_mountLiveShare','BehaviorSubject','url(#$1','children','length','mutations','svg','getConfig','live-share.config','getTypeOfUnitDisposed$','complete','has','_injector','_presenter','CommandType','toDisposable','LIVESHARE_REQUEST_HOST','7237122YvDzno','presenter','Start\x20following','attrs','reverse','You\x27re\x20presenting\x20the\x20document','_univerInstanceService','defineProperty','following','PRESENTING','_handleOnline','version','IConfigService','Subject','UNIVER_UNKNOWN','useRef','replace','9763551AbjRSW','clear','Button','_startFollowing','_handleNewChangeSets','UNIVER_LIVE_SHARE_PLUGIN','displayName','dispose','subscribe','symbol','You\x27are\x20offline.','registerInitialStateReporter','LIVESHARE_FETCH_OPERATIONS','set','LIVESHARE_NEW_HOST','_beIdle','_stopPresenting','_init','takeUntil','pipe','none','getOwnPropertyDescriptor','You\x27re\x20following\x20the\x20presenter','params','unitId','SAME_OPERATION_SHARE_INTERVAL','LiveShareController','unsubscribe','default','_sharedOperations','LIVESHARE_TERMINATE','_unitID','setConfig','shouldShareOperation','mask','NOT_FOLLOWING','_configService','getLiveShareCoordinator','onRendered'];_0x4b8b=function(){return _0x1f2e6e;};return _0x4b8b();}function j({ref:_0x4bdbe5,..._0x10d1f4}){const _0x399866=_0x42576c,{icon:_0x59facc,id:_0x58cedf,className:_0x4b028c,extend:_0x17f6ef,..._0x27b626}=_0x10d1f4,_0x1b5221=(_0x399866(0x1c1)+_0x58cedf+'\x20'+(_0x4b028c||''))['trim'](),_0xbefda3=v[_0x399866(0x15c)]('_'+V());return R(_0x59facc,''+_0x58cedf,{'defIds':_0x59facc['defIds'],'idSuffix':_0xbefda3[_0x399866(0x1cb)]},{'ref':_0x4bdbe5,'className':_0x1b5221,..._0x27b626},_0x17f6ef);}function R(_0x28986a,_0x57deaa,_0x46f246,_0x8a8cc9,_0x45f333){const _0x369fef=_0x42576c;return v[_0x369fef(0x1a5)](_0x28986a[_0x369fef(0x1a7)],{'key':_0x57deaa,...F(_0x28986a,_0x46f246,_0x45f333),..._0x8a8cc9},(H(_0x28986a,_0x46f246)['children']||[])['map']((_0x404532,_0xca7adc)=>R(_0x404532,_0x57deaa+'-'+_0x28986a[_0x369fef(0x1a7)]+'-'+_0xca7adc,_0x46f246,void 0x0,_0x45f333)));}function F(_0x1a66d9,_0x16ebbd,_0x3603dd){const _0x4f4484=_0x42576c,_0x17ba2c={..._0x1a66d9[_0x4f4484(0x21f)]};_0x3603dd!=null&&_0x3603dd['colorChannel1']&&_0x17ba2c['fill']==='colorChannel1'&&(_0x17ba2c['fill']=_0x3603dd[_0x4f4484(0x1ee)]),_0x1a66d9[_0x4f4484(0x1a7)]===_0x4f4484(0x180)&&_0x17ba2c['id']&&(_0x17ba2c['id']=_0x17ba2c['id']+_0x16ebbd['idSuffix']),Object[_0x4f4484(0x1f8)](_0x17ba2c)['forEach'](([_0x118ece,_0xc352e0])=>{const _0x264b83=_0x4f4484;_0x118ece==='mask'&&typeof _0xc352e0==_0x264b83(0x1ea)&&(_0x17ba2c[_0x118ece]=_0xc352e0[_0x264b83(0x15d)](/url\(#(.*)\)/,_0x264b83(0x20d)+_0x16ebbd[_0x264b83(0x1be)]+')'));});const {defIds:_0xb7f928}=_0x16ebbd;return!_0xb7f928||_0xb7f928[_0x4f4484(0x20f)]===0x0||(_0x1a66d9[_0x4f4484(0x1a7)]===_0x4f4484(0x1db)&&_0x17ba2c[_0x4f4484(0x189)]&&(_0x17ba2c[_0x4f4484(0x189)]=_0x17ba2c[_0x4f4484(0x189)]+_0x16ebbd[_0x4f4484(0x1be)]),Object[_0x4f4484(0x1f8)](_0x17ba2c)[_0x4f4484(0x1d4)](([_0x2c7efd,_0x26f336])=>{const _0xb86bb8=_0x4f4484;typeof _0x26f336==_0xb86bb8(0x1ea)&&(_0x17ba2c[_0x2c7efd]=_0x26f336[_0xb86bb8(0x15d)](/url\(#(.*)\)/,_0xb86bb8(0x20d)+_0x16ebbd[_0xb86bb8(0x1be)]+')'));})),_0x17ba2c;}function H(_0xca9427,_0x303967){const _0x3b3e63=_0x42576c;var _0x1ac6cc;const {defIds:_0x161501}=_0x303967;return!_0x161501||_0x161501[_0x3b3e63(0x20f)]===0x0?_0xca9427:_0xca9427[_0x3b3e63(0x1a7)]===_0x3b3e63(0x1c2)&&((_0x1ac6cc=_0xca9427[_0x3b3e63(0x20e)])!=null&&_0x1ac6cc[_0x3b3e63(0x20f)])?{..._0xca9427,'children':_0xca9427[_0x3b3e63(0x20e)][_0x3b3e63(0x18a)](_0x1c69e4=>typeof _0x1c69e4['attrs']['id']=='string'&&_0x161501&&_0x161501[_0x3b3e63(0x18f)](_0x1c69e4[_0x3b3e63(0x21f)]['id'])?{..._0x1c69e4,'attrs':{..._0x1c69e4[_0x3b3e63(0x21f)],'id':_0x1c69e4[_0x3b3e63(0x21f)]['id']+_0x303967[_0x3b3e63(0x1be)]}}:_0x1c69e4)}:_0xca9427;}function V(){const _0xb56796=_0x42576c;return Math['random']()[_0xb56796(0x1bb)](0x24)['substring'](0x2,0x8);}j[_0x42576c(0x164)]='UniverIcon';const k={'tag':_0x42576c(0x211),'attrs':{'xmlns':_0x42576c(0x1bd),'fill':_0x42576c(0x172),'viewBox':'0\x200\x2017\x2017','width':_0x42576c(0x1b8),'height':_0x42576c(0x1b8)},'children':[{'tag':'path','attrs':{'fill':_0x42576c(0x1ff),'d':_0x42576c(0x1cd)}},{'tag':_0x42576c(0x1d8),'attrs':{'fill':_0x42576c(0x1ff),'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':_0x42576c(0x1dd),'clipRule':_0x42576c(0x1dd)}}]},P=v[_0x42576c(0x1fc)](function(_0x2e462e,_0x53ed50){const _0x1b4c9c=_0x42576c;return v[_0x1b4c9c(0x1a5)](j,Object[_0x1b4c9c(0x204)]({},_0x2e462e,{'id':_0x1b4c9c(0x1c3),'ref':_0x53ed50,'icon':k}));});P[_0x42576c(0x164)]=_0x42576c(0x1c0);class E extends o[_0x42576c(0x196)]{constructor(){const _0x4f9e49=_0x42576c;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x4f9e49(0x1ce),new Set());}[_0x42576c(0x1df)](_0x9795b2){const _0x2278d4=_0x42576c;return this[_0x2278d4(0x17b)][_0x2278d4(0x1b1)](_0x9795b2),o[_0x2278d4(0x21a)](()=>this['_sharedOperations']['delete'](_0x9795b2));}[_0x42576c(0x169)](_0x4d6e05){const _0x3c35ab=_0x42576c;return this[_0x3c35ab(0x1ce)][_0x3c35ab(0x1b1)](_0x4d6e05),o[_0x3c35ab(0x21a)](()=>this['_reporters'][_0x3c35ab(0x193)](_0x4d6e05));}['shouldShareOperation'](_0x3330d3){const _0x1a78f5=_0x42576c;return this[_0x1a78f5(0x17b)][_0x1a78f5(0x216)](_0x3330d3);}['getInitialStates'](_0x464918){const _0x13967b=_0x42576c;return Array['from'](this[_0x13967b(0x1ce)])[_0x13967b(0x18a)](_0x579362=>_0x579362(_0x464918));}}var M=Object[_0x42576c(0x173)],$=(_0x27c697,_0x3b92dd,_0x395bb5,_0x50fc39)=>{const _0x271162=_0x42576c;for(var _0x42d34e=_0x50fc39>0x1?void 0x0:_0x50fc39?M(_0x3b92dd,_0x395bb5):_0x3b92dd,_0x3880d6=_0x27c697[_0x271162(0x20f)]-0x1,_0x389ecc;_0x3880d6>=0x0;_0x3880d6--)(_0x389ecc=_0x27c697[_0x3880d6])&&(_0x42d34e=_0x389ecc(_0x42d34e)||_0x42d34e);return _0x42d34e;},S=(_0x487dc1,_0x146d8a)=>(_0x3d9153,_0x3d77f3)=>_0x146d8a(_0x3d9153,_0x3d77f3,_0x487dc1);exports['LiveShareController']=class extends o[_0x42576c(0x1fb)]{constructor(_0x3dba97,_0x1815f5,_0x545df7){const _0x247e99=_0x42576c;super(),_(this,_0x247e99(0x1d9),new Map()),(this[_0x247e99(0x153)]=_0x3dba97,this[_0x247e99(0x217)]=_0x1815f5,this[_0x247e99(0x1e6)]=_0x545df7,this['_init']());}async['getLiveShareCoordinator'](_0x3ca336){const _0x606aba=_0x42576c;return this['_entities'][_0x606aba(0x216)](_0x3ca336)||await this[_0x606aba(0x1e8)](_0x3ca336),this['_entities']['get'](_0x3ca336);}['getLiveShareCoordinatorSync'](_0x11afb0){const _0x1e5437=_0x42576c;var _0xa09290;return(_0xa09290=this[_0x1e5437(0x1d9)][_0x1e5437(0x1eb)](_0x11afb0))!=null?_0xa09290:null;}[_0x42576c(0x16f)](){const _0x7bcc2c=_0x42576c;this['_univerInstanceService'][_0x7bcc2c(0x1d3)](o[_0x7bcc2c(0x1af)][_0x7bcc2c(0x1d7)])[_0x7bcc2c(0x171)](I[_0x7bcc2c(0x170)](this[_0x7bcc2c(0x1cf)]))[_0x7bcc2c(0x166)](async _0x50b250=>{const _0x43e561=_0x7bcc2c,_0x5e80de=_0x50b250['getUnitId']();this[_0x43e561(0x1d9)]['has'](_0x5e80de)||this['_startLiveShareCoordinator'](_0x5e80de);}),this[_0x7bcc2c(0x153)][_0x7bcc2c(0x214)](o[_0x7bcc2c(0x1af)][_0x7bcc2c(0x1d7)])[_0x7bcc2c(0x171)](I[_0x7bcc2c(0x170)](this[_0x7bcc2c(0x1cf)]))[_0x7bcc2c(0x166)](_0xe61241=>{const _0xfe4218=_0x7bcc2c,_0x32a8d8=_0xe61241[_0xfe4218(0x1b6)](),_0x232cb0=this[_0xfe4218(0x1d9)][_0xfe4218(0x1eb)](_0x32a8d8);_0x232cb0==null||_0x232cb0[_0xfe4218(0x165)]();});}async[_0x42576c(0x1e8)](_0x2002de){const _0x56acfe=_0x42576c,_0x5873fc=await this[_0x56acfe(0x1e6)]['requireSession'](_0x2002de),_0x3042fb=this[_0x56acfe(0x217)][_0x56acfe(0x195)](exports['LiveShareCoordinator'],_0x2002de,_0x5873fc);return _0x3042fb[_0x56acfe(0x1e2)](),this['_entities'][_0x56acfe(0x16b)](_0x2002de,_0x3042fb),_0x3042fb;}},exports[_0x42576c(0x178)]=$([S(0x0,o[_0x42576c(0x186)]),S(0x1,o[_0x42576c(0x1f5)](o[_0x42576c(0x1e7)])),S(0x2,o['Inject'](b[_0x42576c(0x191)]))],exports['LiveShareController']);var u=(_0x5d16da=>(_0x5d16da[_0x42576c(0x1e0)]=_0x42576c(0x1ec),_0x5d16da['IDLE']=_0x42576c(0x197),_0x5d16da[_0x42576c(0x18c)]=_0x42576c(0x155),_0x5d16da['NOT_FOLLOWING']=_0x42576c(0x1a3),_0x5d16da['PRESENTING']=_0x42576c(0x1f7),_0x5d16da))(u||{});const q=_0x42576c(0x177),W=0xc8;exports[_0x42576c(0x1de)]=class extends o[_0x42576c(0x1fb)]{constructor(_0x257193,_0x4f4e11,_0x4464e8,_0xf6f66c,_0x282b95){const _0x80d551=_0x42576c;super(),_(this,_0x80d551(0x20a),new L[(_0x80d551(0x20c))](_0x80d551(0x197))),_(this,'status$',this[_0x80d551(0x20a)]['asObservable']()),_(this,_0x80d551(0x16f),!0x1),_(this,_0x80d551(0x207),null),_(this,_0x80d551(0x218),null),(this[_0x80d551(0x17d)]=_0x257193,this[_0x80d551(0x1b4)]=_0x4f4e11,this[_0x80d551(0x182)]=_0x4464e8,this['_liveShareService']=_0xf6f66c,this[_0x80d551(0x192)]=_0x282b95);}get['_status'](){const _0x59a2e6=_0x42576c;return this[_0x59a2e6(0x20a)][_0x59a2e6(0x1a2)]();}[_0x42576c(0x165)](){const _0x378d6e=_0x42576c;var _0x465cd8;(_0x465cd8=this[_0x378d6e(0x207)])==null||_0x465cd8[_0x378d6e(0x165)](),this[_0x378d6e(0x20a)][_0x378d6e(0x1fd)]('idle'),this[_0x378d6e(0x20a)][_0x378d6e(0x215)]();}['getStatus'](){const _0x5938ce=_0x42576c;return this[_0x5938ce(0x1a0)];}[_0x42576c(0x1e2)](){const _0x392057=_0x42576c;this[_0x392057(0x16f)]||(this[_0x392057(0x16f)]=!0x0,this[_0x392057(0x1b4)][_0x392057(0x1f4)][_0x392057(0x171)](I[_0x392057(0x170)](this[_0x392057(0x1cf)]))[_0x392057(0x166)](_0x178fbe=>{const _0x34a0f1=_0x392057;switch(_0x178fbe){case b[_0x34a0f1(0x198)][_0x34a0f1(0x1e0)]:this[_0x34a0f1(0x1ba)]();break;case b[_0x34a0f1(0x198)]['ONLINE']:this[_0x34a0f1(0x157)]();break;}}),this[_0x392057(0x1b4)]['event$'][_0x392057(0x171)](I[_0x392057(0x170)](this['dispose$']))[_0x392057(0x166)](_0x567382=>{const _0x420462=_0x392057,{eventID:_0x1c1df7}=_0x567382;switch(_0x1c1df7){case d[_0x420462(0x1c4)][_0x420462(0x16c)]:this[_0x420462(0x194)](_0x567382);break;case d['CollaborationEvent'][_0x420462(0x1fe)]:this[_0x420462(0x1da)](_0x567382);break;case d[_0x420462(0x1c4)][_0x420462(0x17c)]:this['_handleTerminate']();break;case d[_0x420462(0x1c4)][_0x420462(0x1f0)]:this['_handleNewChangeSets'](_0x567382);break;}}));}['tryStartPresenting'](){const _0x2e2174=_0x42576c;this[_0x2e2174(0x1b4)]['send']({'eventID':d[_0x2e2174(0x1c4)][_0x2e2174(0x21b)],'data':{'unitID':this[_0x2e2174(0x17d)],'userID':this[_0x2e2174(0x1b4)]['getMemberID']()}},this[_0x2e2174(0x17d)]);}[_0x42576c(0x200)](){const _0x4e4f99=_0x42576c;this['_status']===_0x4e4f99(0x1f7)&&(this[_0x4e4f99(0x20a)][_0x4e4f99(0x1fd)](_0x4e4f99(0x197)),this[_0x4e4f99(0x1b4)][_0x4e4f99(0x1e3)]({'eventID':d[_0x4e4f99(0x1c4)][_0x4e4f99(0x17c)],'data':{'unitID':this[_0x4e4f99(0x17d)]}},this['_unitID']));}['startFollowing'](){const _0xd6370=_0x42576c;this['_status']==='not-following'&&(this['_status$']['next'](_0xd6370(0x155)),this[_0xd6370(0x161)]());}[_0x42576c(0x208)](){const _0xddf490=_0x42576c;this[_0xddf490(0x1a0)]===_0xddf490(0x155)&&this[_0xddf490(0x1a8)]();}['_handleNewHost'](_0x15fab9){const _0x488f0b=_0x42576c,{presenter:_0x57fa7e}=_0x15fab9[_0x488f0b(0x1ef)],_0x303f00=this[_0x488f0b(0x1b4)]['getMemberID']();this[_0x488f0b(0x218)]=_0x57fa7e,_0x57fa7e===_0x303f00?(this[_0x488f0b(0x1a8)](),this['_startPresenting']()):this['_status']!==_0x488f0b(0x1a3)&&(this[_0x488f0b(0x16e)](),this[_0x488f0b(0x161)]());}['_fetchOperations'](){const _0x31cb77=_0x42576c,_0x317957={'eventID':d[_0x31cb77(0x1c4)][_0x31cb77(0x16a)]};this[_0x31cb77(0x1b4)][_0x31cb77(0x1e3)](_0x317957,this[_0x31cb77(0x17d)]);}[_0x42576c(0x19d)](){const _0x34a2b6=_0x42576c;this[_0x34a2b6(0x218)]=null,this[_0x34a2b6(0x1a0)]!=='presenting'&&this[_0x34a2b6(0x16d)]();}[_0x42576c(0x162)](_0x4a7f57){const _0x3d1804=_0x42576c;if(this[_0x3d1804(0x1a0)]===_0x3d1804(0x155)&&this[_0x3d1804(0x218)]===_0x4a7f57[_0x3d1804(0x1ef)][_0x3d1804(0x201)]){const _0x769e46=d[_0x3d1804(0x187)](_0x4a7f57[_0x3d1804(0x1ef)])[_0x3d1804(0x210)][_0x3d1804(0x151)]()[_0x3d1804(0x1a6)](_0x13a40b=>_0x13a40b['id']===O[_0x3d1804(0x1e1)]['id']);if(_0x769e46){const _0x2f9202=_0x769e46[_0x3d1804(0x175)][_0x3d1804(0x176)],_0x30051d=_0x769e46[_0x3d1804(0x175)][_0x3d1804(0x1c5)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](O['SetWorksheetActiveOperation']['id'],{'unitId':_0x2f9202,'subUnitId':_0x30051d},{'fromCollab':!0x0});});}}}[_0x42576c(0x1d2)](){const _0x23c124=_0x42576c;this[_0x23c124(0x20a)][_0x23c124(0x1fd)](_0x23c124(0x1f7));const _0x24732d=new Map(),_0x5a59cb=this[_0x23c124(0x207)]=new o['DisposableCollection']();_0x5a59cb[_0x23c124(0x1b1)](o[_0x23c124(0x21a)](()=>{const _0x1c8937=_0x23c124;_0x24732d[_0x1c8937(0x1d4)](_0x33c787=>_0x33c787['complete']()),_0x24732d[_0x1c8937(0x15f)]();})),_0x5a59cb['add'](this['_commandService']['onCommandExecuted'](_0x50986e=>{const _0x5a5410=_0x23c124;var _0x50db06;if(_0x50986e['type']!==o[_0x5a5410(0x219)]['OPERATION']||!this[_0x5a5410(0x185)][_0x5a5410(0x17f)](_0x50986e['id']))return;const {id:_0x6c5733}=_0x50986e;let _0x2f0473;_0x24732d['has'](_0x6c5733)?_0x2f0473=_0x24732d[_0x5a5410(0x1eb)](_0x6c5733):(_0x2f0473=new L[(_0x5a5410(0x15a))](),_0x24732d[_0x5a5410(0x16b)](_0x6c5733,_0x2f0473),_0x2f0473['pipe'](I['throttleTime']((_0x50db06=this['_configService'][_0x5a5410(0x212)](q))!=null?_0x50db06:W,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5a5410(0x166)](_0x3ae251=>{const _0x170c6d=_0x5a5410;this['_collabSession'][_0x170c6d(0x1e3)]({'eventID':d[_0x170c6d(0x1c4)][_0x170c6d(0x1fe)],'data':{'unitID':this[_0x170c6d(0x17d)],'operations':{[_0x3ae251['id']]:{'id':_0x3ae251['id'],'params':JSON[_0x170c6d(0x1d6)](_0x3ae251[_0x170c6d(0x175)])}}}},this[_0x170c6d(0x17d)]);})),_0x2f0473[_0x5a5410(0x1fd)](_0x50986e);})),this[_0x23c124(0x185)][_0x23c124(0x19f)](this[_0x23c124(0x17d)])[_0x23c124(0x1d4)](_0x5c6347=>this[_0x23c124(0x1b4)][_0x23c124(0x1e3)]({'eventID':d[_0x23c124(0x1c4)][_0x23c124(0x1fe)],'data':{'unitID':this['_unitID'],'operations':{[_0x5c6347['id']]:{'id':_0x5c6347['id'],'params':JSON[_0x23c124(0x1d6)](_0x5c6347['params'])}}}},this[_0x23c124(0x17d)]));}[_0x42576c(0x16e)](){const _0x282609=_0x42576c;var _0x3ae9ba;this[_0x282609(0x20a)]['next'](_0x282609(0x197)),(_0x3ae9ba=this['_commandDisposable'])==null||_0x3ae9ba[_0x282609(0x165)](),this[_0x282609(0x207)]=null;}[_0x42576c(0x161)](){const _0x53898f=_0x42576c;var _0x52959e;(_0x52959e=this[_0x53898f(0x207)])==null||_0x52959e[_0x53898f(0x165)](),this[_0x53898f(0x20a)][_0x53898f(0x1fd)]('following');}[_0x42576c(0x16d)](){const _0x18ae27=_0x42576c;var _0x14f662;this[_0x18ae27(0x20a)][_0x18ae27(0x1fd)](_0x18ae27(0x197)),(_0x14f662=this['_commandDisposable'])==null||_0x14f662[_0x18ae27(0x165)](),this[_0x18ae27(0x207)]=null;}[_0x42576c(0x1a8)](){const _0x55823c=_0x42576c;var _0x5627be;this['_status$']['next'](_0x55823c(0x1a3)),(_0x5627be=this[_0x55823c(0x207)])==null||_0x5627be[_0x55823c(0x165)]();}[_0x42576c(0x1da)](_0x297418){const _0x5380ca=_0x42576c;if(['presenting','not-following',_0x5380ca(0x1ec)][_0x5380ca(0x18f)](this[_0x5380ca(0x1a0)])||!_0x297418[_0x5380ca(0x1ef)][_0x5380ca(0x21d)]||_0x297418[_0x5380ca(0x1ef)][_0x5380ca(0x21d)]===this[_0x5380ca(0x1b4)]['getMemberID']())return;this[_0x5380ca(0x1a0)]==='idle'&&this[_0x5380ca(0x161)]();const _0x4dd55d=_0x297418['data']['operations'];Object['values'](_0x4dd55d)[_0x5380ca(0x1d4)](_0x23b303=>{const _0x37dcdf=_0x5380ca;this[_0x37dcdf(0x192)][_0x37dcdf(0x1b7)](_0x23b303['id'],_0x23b303[_0x37dcdf(0x175)]?JSON[_0x37dcdf(0x1e9)](_0x23b303[_0x37dcdf(0x175)]):null,{'fromCollab':!0x0});});}[_0x42576c(0x1ba)](){const _0x1085fd=_0x42576c;var _0x599b50;this[_0x1085fd(0x20a)][_0x1085fd(0x1fd)](_0x1085fd(0x1ec)),(_0x599b50=this[_0x1085fd(0x207)])==null||_0x599b50[_0x1085fd(0x165)]();}['_handleOnline'](){const _0x12b718=_0x42576c;this[_0x12b718(0x20a)]['next'](_0x12b718(0x197)),this['_fetchOperations']();}},exports[_0x42576c(0x1de)]=$([S(0x2,o[_0x42576c(0x159)]),S(0x3,o[_0x42576c(0x1f5)](E)),S(0x4,o[_0x42576c(0x1a9)])],exports['LiveShareCoordinator']);function U(){const _0x469d7f=_0x42576c,_0xa7f4ab=p['useDependency'](exports[_0x469d7f(0x178)]),_0x4cdb08=p['useDependency'](o[_0x469d7f(0x186)]),_0x161ca0=p['useObservable'](()=>_0x4cdb08[_0x469d7f(0x1a1)](o[_0x469d7f(0x1af)][_0x469d7f(0x1d7)]),void 0x0,!0x1,[]),[_0x4b6fea,_0x840647]=v[_0x469d7f(0x19a)](null),[_0x1c0c4c,_0x1378e2]=v['useState'](u[_0x469d7f(0x1ad)]),_0x36a8a6=v['useRef'](null);return v['useEffect'](()=>(_0x161ca0&&_0xa7f4ab[_0x469d7f(0x183)](_0x161ca0[_0x469d7f(0x1b6)]())[_0x469d7f(0x209)](_0x3bd996=>{const _0x40d0e6=_0x469d7f;_0x840647(_0x3bd996),_0x36a8a6[_0x40d0e6(0x1cb)]=_0x3bd996[_0x40d0e6(0x1b9)]['subscribe'](_0x34e3a2=>{_0x1378e2(_0x34e3a2);});}),()=>{const _0x4fc5de=_0x469d7f;var _0x4493e4;(_0x4493e4=_0x36a8a6[_0x4fc5de(0x1cb)])==null||_0x4493e4[_0x4fc5de(0x179)](),_0x36a8a6[_0x4fc5de(0x1cb)]=null;}),[_0x161ca0,_0xa7f4ab]),_0x4b6fea?l[_0x469d7f(0x1ab)](f['Dropdown'],{'align':_0x469d7f(0x1f6),'disabled':_0x1c0c4c===u[_0x469d7f(0x1e0)],'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[_0x469d7f(0x1ab)](G,{'status':_0x1c0c4c,'coordinator':_0x4b6fea}),'children':l[_0x469d7f(0x1ab)]('button',{'className':f['clsx'](_0x469d7f(0x206),{'univer-cursor-not-allowed':_0x1c0c4c===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1c0c4c!==u[_0x469d7f(0x1e0)]}),'type':'button','children':l[_0x469d7f(0x1ab)](P,{'className':_0x469d7f(0x202)})})}):null;}function G(_0x343a76){const _0x2e2eb1=_0x42576c,{status:_0x3aa930,coordinator:_0x9247ed}=_0x343a76;switch(_0x3aa930){case u['IDLE']:return l[_0x2e2eb1(0x1ab)](B,{'coordinator':_0x9247ed});case u[_0x2e2eb1(0x18c)]:return l[_0x2e2eb1(0x1ab)](Y,{'coordinator':_0x9247ed});case u[_0x2e2eb1(0x181)]:return l['jsx'](Z,{'coordinator':_0x9247ed});case u[_0x2e2eb1(0x1e0)]:return l[_0x2e2eb1(0x1ab)](K,{});case u[_0x2e2eb1(0x156)]:return l['jsx'](J,{'coordinator':_0x9247ed});default:return null;}}function B(_0x38b98d){const _0x47a650=_0x42576c,{coordinator:_0x131b42}=_0x38b98d;return l[_0x47a650(0x1bf)](l['Fragment'],{'children':[l[_0x47a650(0x1ab)]('div',{'className':_0x47a650(0x1b3),'children':'Present\x20this\x20document'}),l[_0x47a650(0x1ab)](f[_0x47a650(0x160)],{'onClick':()=>_0x131b42[_0x47a650(0x188)](),'children':_0x47a650(0x19e)})]});}function Y(_0x4e5c9a){const _0x2d85f2=_0x42576c,{coordinator:_0x3d1ae0}=_0x4e5c9a;return l['jsxs'](l[_0x2d85f2(0x19b)],{'children':[l['jsx'](_0x2d85f2(0x1f1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2d85f2(0x174)}),l['jsx'](f[_0x2d85f2(0x160)],{'onClick':()=>_0x3d1ae0[_0x2d85f2(0x208)](),'children':_0x2d85f2(0x1c9)})]});}function Z(_0xdce53a){const _0x20b458=_0x42576c,{coordinator:_0x4f6f38}=_0xdce53a;return l[_0x20b458(0x1bf)](l['Fragment'],{'children':[l['jsx'](_0x20b458(0x1f1),{'className':_0x20b458(0x1b3),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x20b458(0x1ab)](f['Button'],{'variant':_0x20b458(0x1c7),'onClick':()=>_0x4f6f38[_0x20b458(0x1d1)](),'children':_0x20b458(0x21e)})]});}function J(_0x53ebcb){const _0x2bc740=_0x42576c,{coordinator:_0x5187c8}=_0x53ebcb;return l[_0x2bc740(0x1bf)](l['Fragment'],{'children':[l[_0x2bc740(0x1ab)](_0x2bc740(0x1f1),{'className':_0x2bc740(0x1b3),'children':_0x2bc740(0x152)}),l[_0x2bc740(0x1ab)](f[_0x2bc740(0x160)],{'variant':_0x2bc740(0x17a),'onClick':()=>_0x5187c8[_0x2bc740(0x200)](),'children':_0x2bc740(0x1e4)})]});}function K(){const _0x4dace2=_0x42576c;return l['jsx'](l[_0x4dace2(0x19b)],{'children':_0x4dace2(0x168)});}var z=Object[_0x42576c(0x173)],Q=(_0x427990,_0xe0a779,_0x4dd248,_0x3753a5)=>{const _0x5554b2=_0x42576c;for(var _0x1e4467=_0x3753a5>0x1?void 0x0:_0x3753a5?z(_0xe0a779,_0x4dd248):_0xe0a779,_0x232994=_0x427990[_0x5554b2(0x20f)]-0x1,_0x3e5e4a;_0x232994>=0x0;_0x232994--)(_0x3e5e4a=_0x427990[_0x232994])&&(_0x1e4467=_0x3e5e4a(_0x1e4467)||_0x1e4467);return _0x1e4467;},w=(_0x1b459f,_0x159ac3)=>(_0x243fc0,_0x108e4e)=>_0x159ac3(_0x243fc0,_0x108e4e,_0x1b459f);exports[_0x42576c(0x203)]=class extends o[_0x42576c(0x196)]{constructor(_0x2ea00f,_0x1aed6c){const _0x463217=_0x42576c;super(),this[_0x463217(0x217)]=_0x2ea00f,this[_0x463217(0x18b)]=_0x1aed6c,this[_0x463217(0x20b)]();}[_0x42576c(0x20b)](){const _0x14f8e6=_0x42576c;this[_0x14f8e6(0x1f9)](this[_0x14f8e6(0x18b)][_0x14f8e6(0x1e5)](p[_0x14f8e6(0x1c6)][_0x14f8e6(0x1cc)],()=>p[_0x14f8e6(0x190)](U,this['_injector'])));}},exports[_0x42576c(0x203)]=Q([w(0x0,o['Inject'](o[_0x42576c(0x1e7)])),w(0x1,p[_0x42576c(0x18e)])],exports[_0x42576c(0x203)]);const X='@univerjs-pro/live-share',ee=_0x42576c(0x1ac),T={'name':X,'version':ee},te=_0x42576c(0x213),N={};var ie=Object['getOwnPropertyDescriptor'],ne=(_0x56ed1c,_0x36ba94,_0xd9313a,_0x3c36f0)=>{const _0x157e9d=_0x42576c;for(var _0x160e71=_0x3c36f0>0x1?void 0x0:_0x3c36f0?ie(_0x36ba94,_0xd9313a):_0x36ba94,_0x35456c=_0x56ed1c[_0x157e9d(0x20f)]-0x1,_0x49761a;_0x35456c>=0x0;_0x35456c--)(_0x49761a=_0x56ed1c[_0x35456c])&&(_0x160e71=_0x49761a(_0x160e71)||_0x160e71);return _0x160e71;},se=(_0x5797fd,_0x5e89c4)=>(_0x49c92a,_0x86d291)=>_0x5e89c4(_0x49c92a,_0x86d291,_0x5797fd);let m=class extends o['Disposable']{constructor(_0x1eb70f){const _0x4387e1=_0x42576c;super(),this[_0x4387e1(0x185)]=_0x1eb70f,this[_0x4387e1(0x16f)]();}['_init'](){const _0x368d72=_0x42576c;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],O[_0x368d72(0x1f2)]['id']][_0x368d72(0x1d4)](_0x16b243=>{const _0x2ff4f4=_0x368d72;this[_0x2ff4f4(0x1f9)](this['_liveShareService']['registerSharedOperation'](_0x16b243));});}};m=ne([se(0x0,o[_0x42576c(0x1f5)](E))],m);var re=Object[_0x42576c(0x154)],oe=Object['getOwnPropertyDescriptor'],ae=(_0x37b19f,_0x154443,_0x191bf6)=>_0x154443 in _0x37b19f?re(_0x37b19f,_0x154443,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x191bf6}):_0x37b19f[_0x154443]=_0x191bf6,le=(_0x197ebb,_0x1a192c,_0x1a9e20,_0x9f34ca)=>{const _0x8a2a9c=_0x42576c;for(var _0x4c93a9=_0x9f34ca>0x1?void 0x0:_0x9f34ca?oe(_0x1a192c,_0x1a9e20):_0x1a192c,_0x35fa62=_0x197ebb[_0x8a2a9c(0x20f)]-0x1,_0x1a683c;_0x35fa62>=0x0;_0x35fa62--)(_0x1a683c=_0x197ebb[_0x35fa62])&&(_0x4c93a9=_0x1a683c(_0x4c93a9)||_0x4c93a9);return _0x4c93a9;},x=(_0x5bd4a3,_0x52f47a)=>(_0x21b7d8,_0x47a10e)=>_0x52f47a(_0x21b7d8,_0x47a10e,_0x5bd4a3),C=(_0x92359d,_0x49bb0e,_0x10da88)=>ae(_0x92359d,typeof _0x49bb0e!=_0x42576c(0x167)?_0x49bb0e+'':_0x49bb0e,_0x10da88);exports['UniverLiveSharePlugin']=class extends o[_0x42576c(0x1fa)]{constructor(_0x6499c6=N,_0x259cdb,_0x12f6c4){const _0xd69114=_0x42576c;super(),this[_0xd69114(0x1b2)]=_0x6499c6,this['_injector']=_0x259cdb,this[_0xd69114(0x182)]=_0x12f6c4;const {..._0xf653ce}=o[_0xd69114(0x1ca)]({},N,this['_config']);this[_0xd69114(0x182)][_0xd69114(0x17e)](te,_0xf653ce);}[_0x42576c(0x1a4)](){const _0x5b049e=_0x42576c;o['registerDependencies'](this[_0x5b049e(0x217)],o['mergeOverrideWithDependencies']([[E],[exports[_0x5b049e(0x178)]],[m],[exports[_0x5b049e(0x203)]]],this[_0x5b049e(0x1b2)][_0x5b049e(0x1b5)])),o['touchDependencies'](this[_0x5b049e(0x217)],[[m]]);}[_0x42576c(0x184)](){const _0xd2d15e=_0x42576c;o['touchDependencies'](this[_0xd2d15e(0x217)],[[exports[_0xd2d15e(0x203)]]]);}},C(exports[_0x42576c(0x1d0)],'type',o[_0x42576c(0x1af)][_0x42576c(0x15b)]),C(exports[_0x42576c(0x1d0)],_0x42576c(0x1c8),_0x42576c(0x163)),C(exports[_0x42576c(0x1d0)],_0x42576c(0x1d5),T['name']),C(exports[_0x42576c(0x1d0)],_0x42576c(0x158),T[_0x42576c(0x158)]),exports['UniverLiveSharePlugin']=le([o['DependentOn'](b[_0x42576c(0x1dc)]),x(0x1,o[_0x42576c(0x1f5)](o['Injector'])),x(0x2,o[_0x42576c(0x159)])],exports[_0x42576c(0x1d0)]),exports[_0x42576c(0x199)]=U,exports['LiveShareService']=E,exports[_0x42576c(0x1bc)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x5e9a76=_0x40bb;(function(_0x4acd0e,_0x50cef3){const _0x407a14=_0x40bb,_0x40047e=_0x4acd0e();while(!![]){try{const _0x27d1ec=-parseInt(_0x407a14(0x1e0))/0x1+parseInt(_0x407a14(0x1cd))/0x2+parseInt(_0x407a14(0x1cc))/0x3+parseInt(_0x407a14(0x1da))/0x4*(parseInt(_0x407a14(0x1ce))/0x5)+-parseInt(_0x407a14(0x1d9))/0x6+-parseInt(_0x407a14(0x1d5))/0x7+parseInt(_0x407a14(0x1e3))/0x8;if(_0x27d1ec===_0x50cef3)break;else _0x40047e['push'](_0x40047e['shift']());}catch(_0x54b68d){_0x40047e['push'](_0x40047e['shift']());}}}(_0x3fd7,0x45716));var l=Object['defineProperty'],w=(_0x462f7b,_0x41fe11,_0x55dce8)=>_0x41fe11 in _0x462f7b?l(_0x462f7b,_0x41fe11,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55dce8}):_0x462f7b[_0x41fe11]=_0x55dce8,v=(_0x1a6c30,_0x3461e0,_0x495e7e)=>w(_0x1a6c30,typeof _0x3461e0!=_0x5e9a76(0x1cb)?_0x3461e0+'':_0x3461e0,_0x495e7e);import{LiveShareController as _0x1dbf9d,LiveShareStatus as _0x4380dc}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x51564f,UniverInstanceType as _0x183327}from'@univerjs/core';import{FUniver as _0x479d17,FEnum as _0x33e008}from'@univerjs/core/facade';class g extends _0x479d17{constructor(){const _0x43b238=_0x5e9a76;super(...arguments),v(this,_0x43b238(0x1d2));}[_0x5e9a76(0x1d6)](_0x389d08){const _0x12a6e2=_0x5e9a76;this[_0x12a6e2(0x1d2)]=_0x389d08[_0x12a6e2(0x1de)](_0x1dbf9d);}[_0x5e9a76(0x1dc)](){const _0x2f4793=_0x5e9a76;var _0x44bcee;const _0x149dd5=this[_0x2f4793(0x1df)][_0x2f4793(0x1de)](_0x51564f)[_0x2f4793(0x1e1)](_0x183327[_0x2f4793(0x1cf)]);if(!_0x149dd5)throw new Error(_0x2f4793(0x1dd));const _0x8e99d6=_0x149dd5[_0x2f4793(0x1d3)](),_0xc79d3d=this[_0x2f4793(0x1d2)][_0x2f4793(0x1e4)](_0x8e99d6);return(_0x44bcee=_0xc79d3d==null?void 0x0:_0xc79d3d['getStatus']())!=null?_0x44bcee:_0x4380dc[_0x2f4793(0x1d8)];}[_0x5e9a76(0x1e6)](){const _0xc5e20f=_0x5e9a76,_0x3c4d7c=this[_0xc5e20f(0x1df)][_0xc5e20f(0x1de)](_0x51564f)['getCurrentUnitOfType'](_0x183327['UNIVER_SHEET']);if(!_0x3c4d7c)throw new Error(_0xc5e20f(0x1dd));const _0x4396f6=_0x3c4d7c[_0xc5e20f(0x1d3)](),_0x4e667b=this[_0xc5e20f(0x1d2)][_0xc5e20f(0x1e4)](_0x4396f6);if(!_0x4e667b)throw new Error(_0xc5e20f(0x1d7));_0x4e667b[_0xc5e20f(0x1e6)]();}['stopFollowing'](){const _0x2d21f6=_0x5e9a76,_0x3c5f32=this['_injector'][_0x2d21f6(0x1de)](_0x51564f)[_0x2d21f6(0x1e1)](_0x183327[_0x2d21f6(0x1cf)]);if(!_0x3c5f32)throw new Error('No\x20active\x20workbook\x20found.');const _0x435019=_0x3c5f32['getUnitId'](),_0x57af1a=this['_liveShareController'][_0x2d21f6(0x1e4)](_0x435019);if(!_0x57af1a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x57af1a[_0x2d21f6(0x1d4)]();}[_0x5e9a76(0x1e2)](){const _0x50259c=_0x5e9a76,_0x3902bf=this[_0x50259c(0x1df)][_0x50259c(0x1de)](_0x51564f)[_0x50259c(0x1e1)](_0x183327[_0x50259c(0x1cf)]);if(!_0x3902bf)throw new Error('No\x20active\x20workbook\x20found.');const _0x2025bd=_0x3902bf[_0x50259c(0x1d3)](),_0x257cdd=this[_0x50259c(0x1d2)]['getLiveShareCoordinatorSync'](_0x2025bd);if(!_0x257cdd)throw new Error(_0x50259c(0x1d7));_0x257cdd[_0x50259c(0x1db)]();}[_0x5e9a76(0x1e5)](){const _0x1cb10d=_0x5e9a76,_0x4f7b23=this['_injector']['get'](_0x51564f)[_0x1cb10d(0x1e1)](_0x183327[_0x1cb10d(0x1cf)]);if(!_0x4f7b23)throw new Error(_0x1cb10d(0x1dd));const _0x5e98cc=_0x4f7b23[_0x1cb10d(0x1d3)](),_0x42547c=this[_0x1cb10d(0x1d2)][_0x1cb10d(0x1e4)](_0x5e98cc);if(!_0x42547c)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x42547c[_0x1cb10d(0x1e5)]();}}function _0x40bb(_0x15b909,_0x6fb504){_0x15b909=_0x15b909-0x1cb;const _0x3fd737=_0x3fd7();let _0x40bbe8=_0x3fd737[_0x15b909];return _0x40bbe8;}function _0x3fd7(){const _0x594eff=['150750TNnpEX','19764HblXsh','tryStartPresenting','getLiveShareStatus','No\x20active\x20workbook\x20found.','get','_injector','415568jPVBpT','getCurrentUnitOfType','startPresenting','3812456vGwnTV','getLiveShareCoordinatorSync','stopPresenting','startFollowing','symbol','571164tZQaMC','99950fVJnUV','245MzDmgX','UNIVER_SHEET','LiveShareStatusEnum','extend','_liveShareController','getUnitId','stopFollowing','1637286AByRKd','_initialize','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','IDLE'];_0x3fd7=function(){return _0x594eff;};return _0x3fd7();}_0x479d17[_0x5e9a76(0x1d1)](g);class f extends _0x33e008{get[_0x5e9a76(0x1d0)](){return _0x4380dc;}}_0x33e008[_0x5e9a76(0x1d1)](f);
1
+ const _0x523532=_0x1dd6;(function(_0x51e5a6,_0x3030aa){const _0x34328b=_0x1dd6,_0xc94aa3=_0x51e5a6();while(!![]){try{const _0x398270=parseInt(_0x34328b(0x1a4))/0x1+parseInt(_0x34328b(0x1a2))/0x2*(parseInt(_0x34328b(0x1a1))/0x3)+-parseInt(_0x34328b(0x19c))/0x4+parseInt(_0x34328b(0x195))/0x5+-parseInt(_0x34328b(0x1a3))/0x6+-parseInt(_0x34328b(0x18f))/0x7+-parseInt(_0x34328b(0x192))/0x8;if(_0x398270===_0x3030aa)break;else _0xc94aa3['push'](_0xc94aa3['shift']());}catch(_0x554337){_0xc94aa3['push'](_0xc94aa3['shift']());}}}(_0x51bc,0x9b8c2));var l=Object[_0x523532(0x19a)],w=(_0x48411b,_0x33e7b3,_0x74a1cd)=>_0x33e7b3 in _0x48411b?l(_0x48411b,_0x33e7b3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x74a1cd}):_0x48411b[_0x33e7b3]=_0x74a1cd,v=(_0x233b03,_0x11a1d7,_0x39b760)=>w(_0x233b03,typeof _0x11a1d7!='symbol'?_0x11a1d7+'':_0x11a1d7,_0x39b760);import{LiveShareController as _0x53f9da,LiveShareStatus as _0xe6e54d}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x4c9414,UniverInstanceType as _0x5d1dae}from'@univerjs/core';import{FUniver as _0x2af63b,FEnum as _0x24e39f}from'@univerjs/core/facade';class g extends _0x2af63b{constructor(){const _0x4fb08a=_0x523532;super(...arguments),v(this,_0x4fb08a(0x19f));}[_0x523532(0x19b)](_0x3ac212){const _0x2f869c=_0x523532;this['_liveShareController']=_0x3ac212[_0x2f869c(0x197)](_0x53f9da);}[_0x523532(0x18e)](){const _0x4facd4=_0x523532;var _0x2dab09;const _0x7b2470=this[_0x4facd4(0x1a0)][_0x4facd4(0x197)](_0x4c9414)[_0x4facd4(0x194)](_0x5d1dae[_0x4facd4(0x1a5)]);if(!_0x7b2470)throw new Error(_0x4facd4(0x190));const _0x32515b=_0x7b2470[_0x4facd4(0x18d)](),_0x342c66=this['_liveShareController'][_0x4facd4(0x1a6)](_0x32515b);return(_0x2dab09=_0x342c66==null?void 0x0:_0x342c66['getStatus']())!=null?_0x2dab09:_0xe6e54d[_0x4facd4(0x196)];}['startFollowing'](){const _0x13b79f=_0x523532,_0x225a19=this[_0x13b79f(0x1a0)][_0x13b79f(0x197)](_0x4c9414)[_0x13b79f(0x194)](_0x5d1dae['UNIVER_SHEET']);if(!_0x225a19)throw new Error(_0x13b79f(0x190));const _0x42399a=_0x225a19[_0x13b79f(0x18d)](),_0xe3a94e=this[_0x13b79f(0x19f)][_0x13b79f(0x1a6)](_0x42399a);if(!_0xe3a94e)throw new Error(_0x13b79f(0x193));_0xe3a94e['startFollowing']();}['stopFollowing'](){const _0x1a9b12=_0x523532,_0x5b7918=this[_0x1a9b12(0x1a0)][_0x1a9b12(0x197)](_0x4c9414)[_0x1a9b12(0x194)](_0x5d1dae[_0x1a9b12(0x1a5)]);if(!_0x5b7918)throw new Error('No\x20active\x20workbook\x20found.');const _0x215375=_0x5b7918[_0x1a9b12(0x18d)](),_0x459e67=this[_0x1a9b12(0x19f)][_0x1a9b12(0x1a6)](_0x215375);if(!_0x459e67)throw new Error(_0x1a9b12(0x193));_0x459e67[_0x1a9b12(0x199)]();}[_0x523532(0x191)](){const _0x157615=_0x523532,_0x4fc77e=this['_injector'][_0x157615(0x197)](_0x4c9414)['getCurrentUnitOfType'](_0x5d1dae[_0x157615(0x1a5)]);if(!_0x4fc77e)throw new Error(_0x157615(0x190));const _0x1fa3b6=_0x4fc77e[_0x157615(0x18d)](),_0xddb3a3=this['_liveShareController'][_0x157615(0x1a6)](_0x1fa3b6);if(!_0xddb3a3)throw new Error(_0x157615(0x193));_0xddb3a3[_0x157615(0x19e)]();}['stopPresenting'](){const _0x40b99d=_0x523532,_0x19e02b=this[_0x40b99d(0x1a0)][_0x40b99d(0x197)](_0x4c9414)[_0x40b99d(0x194)](_0x5d1dae['UNIVER_SHEET']);if(!_0x19e02b)throw new Error(_0x40b99d(0x190));const _0x3993ae=_0x19e02b[_0x40b99d(0x18d)](),_0x2b72cc=this[_0x40b99d(0x19f)]['getLiveShareCoordinatorSync'](_0x3993ae);if(!_0x2b72cc)throw new Error(_0x40b99d(0x193));_0x2b72cc[_0x40b99d(0x198)]();}}function _0x51bc(){const _0x5ae797=['IDLE','get','stopPresenting','stopFollowing','defineProperty','_initialize','2949128aqVAeP','extend','tryStartPresenting','_liveShareController','_injector','3023679oVbcVp','2cqUbxC','1301586qMgSbM','1225147ZGaxgv','UNIVER_SHEET','getLiveShareCoordinatorSync','getUnitId','getLiveShareStatus','7259168yiHurE','No\x20active\x20workbook\x20found.','startPresenting','2263888cYEYfq','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getCurrentUnitOfType','3391525omZFKn'];_0x51bc=function(){return _0x5ae797;};return _0x51bc();}_0x2af63b[_0x523532(0x19d)](g);class f extends _0x24e39f{get['LiveShareStatusEnum'](){return _0xe6e54d;}}function _0x1dd6(_0x5ca2e9,_0xe3f1e0){_0x5ca2e9=_0x5ca2e9-0x18d;const _0x51bcc1=_0x51bc();let _0x1dd6ce=_0x51bcc1[_0x5ca2e9];return _0x1dd6ce;}_0x24e39f['extend'](f);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x29b382=_0x263b;(function(_0x1ce8e6,_0x292858){const _0x2fd5f1=_0x263b,_0x1c6ba2=_0x1ce8e6();while(!![]){try{const _0x398829=parseInt(_0x2fd5f1(0x10b))/0x1+-parseInt(_0x2fd5f1(0xe5))/0x2*(parseInt(_0x2fd5f1(0x137))/0x3)+parseInt(_0x2fd5f1(0x12d))/0x4+parseInt(_0x2fd5f1(0x123))/0x5*(parseInt(_0x2fd5f1(0xd3))/0x6)+-parseInt(_0x2fd5f1(0x14b))/0x7*(parseInt(_0x2fd5f1(0xaf))/0x8)+parseInt(_0x2fd5f1(0xeb))/0x9+-parseInt(_0x2fd5f1(0x12e))/0xa*(parseInt(_0x2fd5f1(0x129))/0xb);if(_0x398829===_0x292858)break;else _0x1c6ba2['push'](_0x1c6ba2['shift']());}catch(_0x59b1d4){_0x1c6ba2['push'](_0x1c6ba2['shift']());}}}(_0x40b0,0x9d948));var J=Object['defineProperty'],K=(_0x4e65f1,_0xe9b685,_0x46b73a)=>_0xe9b685 in _0x4e65f1?J(_0x4e65f1,_0xe9b685,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46b73a}):_0x4e65f1[_0xe9b685]=_0x46b73a,u=(_0xc5cc48,_0x556804,_0xf06fcf)=>K(_0xc5cc48,typeof _0x556804!=_0x29b382(0x13d)?_0x556804+'':_0x556804,_0xf06fcf);import{Disposable as _0x54703,toDisposable as _0x73bcdc,Inject as _0x4473be,Injector as _0x567548,RxDisposable as _0x1fd51a,UniverInstanceType as _0x146358,DisposableCollection as _0x1960ad,CommandType as _0x4d19c4,IUniverInstanceService as _0x4c2f77,IConfigService as _0x28d418,ICommandService as _0x344f5e,DependentOn as _0x18815f,Plugin as _0x51513e,merge as _0x3675e2,registerDependencies as _0x563134,mergeOverrideWithDependencies as _0x2e4cdf,touchDependencies as _0x5d1821}from'@univerjs/core';import{useDependency as _0x3a5ae3,useObservable as _0x5d50ae,BuiltInUIPart as _0x5162da,connectInjector as _0x28a5b4,IUIPartsService as _0x689301}from'@univerjs/ui';import{jsx as _0x380609,jsxs as _0x290402,Fragment as _0x382570}from'react/jsx-runtime';import{Dropdown as _0x4d6704,clsx as _0x9d875,Button as _0xfebf7c}from'@univerjs/design';import{useRef as _0x3cec89,createElement as _0x39a169,forwardRef as _0x2c0538,useState as _0x885ddc,useEffect as _0x1d338e}from'react';import{CollaborationEvent as _0x42ea0b,parseProtocolChangeset as _0x5c427d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1989c5,SessionStatus as _0x32c3ff,UniverCollaborationClientPlugin as _0x43b951}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1e8650,SetWorksheetActiveOperation as _0x173dc8}from'@univerjs/sheets';import{BehaviorSubject as _0x588d75,Subject as _0x159389}from'rxjs';import{takeUntil as _0x41ca2b,throttleTime as _0xf172dd}from'rxjs/operators';import{SetZoomRatioOperation as _0x410861,SetScrollOperation as _0x46540b}from'@univerjs/sheets-ui';function k({ref:_0x39ecd6,..._0x18f897}){const _0x469718=_0x29b382,{icon:_0x578422,id:_0x3c8fd3,className:_0x12c834,extend:_0x589e45,..._0x32067d}=_0x18f897,_0x2b007e=(_0x469718(0xf9)+_0x3c8fd3+'\x20'+(_0x12c834||''))['trim'](),_0x160c12=_0x3cec89('_'+Oe());return G(_0x578422,''+_0x3c8fd3,{'defIds':_0x578422['defIds'],'idSuffix':_0x160c12[_0x469718(0x14c)]},{'ref':_0x39ecd6,'className':_0x2b007e,..._0x32067d},_0x589e45);}function G(_0x2c72d9,_0xd9c0a6,_0x52bc0f,_0x2f5f1f,_0x24ee5f){const _0x4c6621=_0x29b382;return _0x39a169(_0x2c72d9[_0x4c6621(0x135)],{'key':_0xd9c0a6,...be(_0x2c72d9,_0x52bc0f,_0x24ee5f),..._0x2f5f1f},(Ee(_0x2c72d9,_0x52bc0f)[_0x4c6621(0xfd)]||[])[_0x4c6621(0x141)]((_0x2679f2,_0x240771)=>G(_0x2679f2,_0xd9c0a6+'-'+_0x2c72d9[_0x4c6621(0x135)]+'-'+_0x240771,_0x52bc0f,void 0x0,_0x24ee5f)));}function be(_0x1d96a6,_0xf7f7dc,_0x2ae165){const _0x24cb72=_0x29b382,_0x28c261={..._0x1d96a6[_0x24cb72(0xdd)]};_0x2ae165!=null&&_0x2ae165[_0x24cb72(0xdf)]&&_0x28c261[_0x24cb72(0x119)]==='colorChannel1'&&(_0x28c261['fill']=_0x2ae165[_0x24cb72(0xdf)]),_0x1d96a6[_0x24cb72(0x135)]===_0x24cb72(0x11e)&&_0x28c261['id']&&(_0x28c261['id']=_0x28c261['id']+_0xf7f7dc[_0x24cb72(0xcb)]),Object[_0x24cb72(0x109)](_0x28c261)[_0x24cb72(0xc8)](([_0x51324d,_0x46e47c])=>{const _0x1a4117=_0x24cb72;_0x51324d==='mask'&&typeof _0x46e47c==_0x1a4117(0xda)&&(_0x28c261[_0x51324d]=_0x46e47c[_0x1a4117(0x147)](/url\(#(.*)\)/,'url(#$1'+_0xf7f7dc[_0x1a4117(0xcb)]+')'));});const {defIds:_0x1dc3a7}=_0xf7f7dc;return!_0x1dc3a7||_0x1dc3a7[_0x24cb72(0x140)]===0x0||(_0x1d96a6[_0x24cb72(0x135)]===_0x24cb72(0x149)&&_0x28c261[_0x24cb72(0x112)]&&(_0x28c261[_0x24cb72(0x112)]=_0x28c261[_0x24cb72(0x112)]+_0xf7f7dc[_0x24cb72(0xcb)]),Object['entries'](_0x28c261)[_0x24cb72(0xc8)](([_0x306597,_0x11d680])=>{const _0x50a44b=_0x24cb72;typeof _0x11d680==_0x50a44b(0xda)&&(_0x28c261[_0x306597]=_0x11d680[_0x50a44b(0x147)](/url\(#(.*)\)/,_0x50a44b(0xd5)+_0xf7f7dc[_0x50a44b(0xcb)]+')'));})),_0x28c261;}function Ee(_0x3bce5b,_0x5be26b){const _0x134cbc=_0x29b382;var _0x421156;const {defIds:_0x248bdd}=_0x5be26b;return!_0x248bdd||_0x248bdd['length']===0x0?_0x3bce5b:_0x3bce5b[_0x134cbc(0x135)]===_0x134cbc(0x148)&&((_0x421156=_0x3bce5b[_0x134cbc(0xfd)])!=null&&_0x421156[_0x134cbc(0x140)])?{..._0x3bce5b,'children':_0x3bce5b[_0x134cbc(0xfd)][_0x134cbc(0x141)](_0x1ed1b5=>typeof _0x1ed1b5[_0x134cbc(0xdd)]['id']==_0x134cbc(0xda)&&_0x248bdd&&_0x248bdd['includes'](_0x1ed1b5[_0x134cbc(0xdd)]['id'])?{..._0x1ed1b5,'attrs':{..._0x1ed1b5['attrs'],'id':_0x1ed1b5[_0x134cbc(0xdd)]['id']+_0x5be26b['idSuffix']}}:_0x1ed1b5)}:_0x3bce5b;}function Oe(){const _0x5902a2=_0x29b382;return Math[_0x5902a2(0xd1)]()[_0x5902a2(0xd6)](0x24)[_0x5902a2(0xb9)](0x2,0x8);}k[_0x29b382(0xe7)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x29b382(0xc4),'fill':_0x29b382(0xf1),'viewBox':_0x29b382(0x13b),'width':_0x29b382(0xde),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x29b382(0xd0),'d':_0x29b382(0xf0)}},{'tag':_0x29b382(0xce),'attrs':{'fill':_0x29b382(0xd0),'d':_0x29b382(0x10f),'fillRule':_0x29b382(0x12c),'clipRule':_0x29b382(0x12c)}}]},W=_0x2c0538(function(_0x4d6226,_0x503cfc){const _0x3074c8=_0x29b382;return _0x39a169(k,Object[_0x3074c8(0x127)]({},_0x4d6226,{'id':_0x3074c8(0x146),'ref':_0x503cfc,'icon':we}));});W[_0x29b382(0xe7)]=_0x29b382(0xe8);class L extends _0x54703{constructor(){const _0x2e8c52=_0x29b382;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x2e8c52(0x126),new Set());}['registerSharedOperation'](_0xc73c3b){const _0x88d94b=_0x29b382;return this[_0x88d94b(0xe4)][_0x88d94b(0xcd)](_0xc73c3b),_0x73bcdc(()=>this[_0x88d94b(0xe4)][_0x88d94b(0xa6)](_0xc73c3b));}[_0x29b382(0x100)](_0x51074d){const _0x339e68=_0x29b382;return this['_reporters'][_0x339e68(0xcd)](_0x51074d),_0x73bcdc(()=>this[_0x339e68(0x126)][_0x339e68(0xa6)](_0x51074d));}[_0x29b382(0x115)](_0x1b0409){const _0x1eb0a4=_0x29b382;return this[_0x1eb0a4(0xe4)]['has'](_0x1b0409);}[_0x29b382(0x108)](_0x54f214){return Array['from'](this['_reporters'])['map'](_0x3797c2=>_0x3797c2(_0x54f214));}}function _0x263b(_0x217ea8,_0x93f07e){_0x217ea8=_0x217ea8-0xa6;const _0x40b001=_0x40b0();let _0x263b9e=_0x40b001[_0x217ea8];return _0x263b9e;}var Ne=Object[_0x29b382(0x105)],Y=(_0x3bdf39,_0x2ce51a,_0x48feb3,_0x477b32)=>{const _0x2bcb83=_0x29b382;for(var _0x5d320b=_0x477b32>0x1?void 0x0:_0x477b32?Ne(_0x2ce51a,_0x48feb3):_0x2ce51a,_0x4da31e=_0x3bdf39[_0x2bcb83(0x140)]-0x1,_0x3a31f4;_0x4da31e>=0x0;_0x4da31e--)(_0x3a31f4=_0x3bdf39[_0x4da31e])&&(_0x5d320b=_0x3a31f4(_0x5d320b)||_0x5d320b);return _0x5d320b;},_=(_0x41aa5c,_0x3e390b)=>(_0x175c9f,_0x4fc452)=>_0x3e390b(_0x175c9f,_0x4fc452,_0x41aa5c);let S=class extends _0x1fd51a{constructor(_0x24c49b,_0x1a4f58,_0x4b8a47){const _0x1b78b1=_0x29b382;super(),u(this,_0x1b78b1(0xe3),new Map()),(this[_0x1b78b1(0x13e)]=_0x24c49b,this[_0x1b78b1(0xcf)]=_0x1a4f58,this[_0x1b78b1(0x12f)]=_0x4b8a47,this[_0x1b78b1(0xc2)]());}async[_0x29b382(0x14a)](_0x37dabe){const _0x5888c0=_0x29b382;return this[_0x5888c0(0xe3)][_0x5888c0(0x132)](_0x37dabe)||await this['_startLiveShareCoordinator'](_0x37dabe),this[_0x5888c0(0xe3)]['get'](_0x37dabe);}[_0x29b382(0xcc)](_0x48086c){const _0x8aca06=_0x29b382;var _0x5af918;return(_0x5af918=this[_0x8aca06(0xe3)][_0x8aca06(0xb1)](_0x48086c))!=null?_0x5af918:null;}[_0x29b382(0xc2)](){const _0x36e23=_0x29b382;this[_0x36e23(0x13e)][_0x36e23(0x113)](_0x146358['UNIVER_SHEET'])[_0x36e23(0x12a)](_0x41ca2b(this[_0x36e23(0xf3)]))['subscribe'](async _0x55c54f=>{const _0x45146a=_0x36e23,_0x578a58=_0x55c54f['getUnitId']();this[_0x45146a(0xe3)][_0x45146a(0x132)](_0x578a58)||this[_0x45146a(0xae)](_0x578a58);}),this['_univerInstanceService'][_0x36e23(0xab)](_0x146358['UNIVER_SHEET'])[_0x36e23(0x12a)](_0x41ca2b(this['dispose$']))['subscribe'](_0x4a5626=>{const _0x234bbc=_0x36e23,_0x55f85a=_0x4a5626[_0x234bbc(0x120)](),_0x254b3d=this[_0x234bbc(0xe3)]['get'](_0x55f85a);_0x254b3d==null||_0x254b3d['dispose']();});}async[_0x29b382(0xae)](_0x443bf3){const _0x599137=_0x29b382,_0x3a7e49=await this['_collabSessionService'][_0x599137(0xf4)](_0x443bf3),_0x40dd42=this['_injector'][_0x599137(0x125)](N,_0x443bf3,_0x3a7e49);return _0x40dd42['init'](),this[_0x599137(0xe3)][_0x599137(0x102)](_0x443bf3,_0x40dd42),_0x40dd42;}};S=Y([_(0x0,_0x4c2f77),_(0x1,_0x4473be(_0x567548)),_(0x2,_0x4473be(_0x1989c5))],S);var c=(_0x20b90f=>(_0x20b90f[_0x29b382(0xf2)]='offline',_0x20b90f[_0x29b382(0x11b)]=_0x29b382(0x14f),_0x20b90f[_0x29b382(0xea)]=_0x29b382(0xb5),_0x20b90f[_0x29b382(0xf6)]='not-following',_0x20b90f[_0x29b382(0xf7)]='presenting',_0x20b90f))(c||{});const Ce=_0x29b382(0x11a),De=0xc8;let N=class extends _0x1fd51a{constructor(_0x597052,_0x373bc7,_0x39b7c3,_0xe6295,_0x48b918){const _0x44884a=_0x29b382;super(),u(this,_0x44884a(0xee),new _0x588d75(_0x44884a(0x14f))),u(this,'status$',this[_0x44884a(0xee)][_0x44884a(0xca)]()),u(this,_0x44884a(0xc2),!0x1),u(this,_0x44884a(0x122),null),u(this,_0x44884a(0x13a),null),(this['_unitID']=_0x597052,this[_0x44884a(0xf8)]=_0x373bc7,this['_configService']=_0x39b7c3,this['_liveShareService']=_0xe6295,this[_0x44884a(0xad)]=_0x48b918);}get['_status'](){const _0x2c695b=_0x29b382;return this[_0x2c695b(0xee)][_0x2c695b(0x116)]();}[_0x29b382(0x131)](){const _0x33243c=_0x29b382;var _0x2fd904;(_0x2fd904=this['_commandDisposable'])==null||_0x2fd904[_0x33243c(0x131)](),this[_0x33243c(0xee)][_0x33243c(0xa8)](_0x33243c(0x14f)),this[_0x33243c(0xee)][_0x33243c(0x14e)]();}[_0x29b382(0xba)](){return this['_status'];}[_0x29b382(0x101)](){const _0x12e442=_0x29b382;this[_0x12e442(0xc2)]||(this[_0x12e442(0xc2)]=!0x0,this[_0x12e442(0xf8)]['sessionStatus$'][_0x12e442(0x12a)](_0x41ca2b(this['dispose$']))[_0x12e442(0xe0)](_0x575b93=>{const _0x47c24f=_0x12e442;switch(_0x575b93){case _0x32c3ff[_0x47c24f(0xf2)]:this['_handleOffline']();break;case _0x32c3ff[_0x47c24f(0xe2)]:this[_0x47c24f(0x121)]();break;}}),this[_0x12e442(0xf8)][_0x12e442(0x136)][_0x12e442(0x12a)](_0x41ca2b(this['dispose$']))['subscribe'](_0x47bf58=>{const _0x24933a=_0x12e442,{eventID:_0xe5d565}=_0x47bf58;switch(_0xe5d565){case _0x42ea0b[_0x24933a(0x107)]:this[_0x24933a(0x10d)](_0x47bf58);break;case _0x42ea0b['LIVESHARE_OPERATION']:this[_0x24933a(0xe6)](_0x47bf58);break;case _0x42ea0b[_0x24933a(0xbb)]:this['_handleTerminate']();break;case _0x42ea0b[_0x24933a(0xc6)]:this['_handleNewChangeSets'](_0x47bf58);break;}}));}[_0x29b382(0x150)](){const _0x586645=_0x29b382;this['_collabSession'][_0x586645(0xb4)]({'eventID':_0x42ea0b['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x586645(0xe9)]()}},this[_0x586645(0xd2)]);}['stopPresenting'](){const _0x19950f=_0x29b382;this[_0x19950f(0xfc)]==='presenting'&&(this[_0x19950f(0xee)][_0x19950f(0xa8)]('idle'),this['_collabSession']['send']({'eventID':_0x42ea0b[_0x19950f(0xbb)],'data':{'unitID':this[_0x19950f(0xd2)]}},this[_0x19950f(0xd2)]));}[_0x29b382(0xdb)](){const _0x1fd060=_0x29b382;this[_0x1fd060(0xfc)]==='not-following'&&(this[_0x1fd060(0xee)][_0x1fd060(0xa8)]('following'),this['_startFollowing']());}[_0x29b382(0x10a)](){const _0x1c5abb=_0x29b382;this[_0x1c5abb(0xfc)]===_0x1c5abb(0xb5)&&this[_0x1c5abb(0x11c)]();}['_handleNewHost'](_0x383a11){const _0x153dae=_0x29b382,{presenter:_0x2d195c}=_0x383a11['data'],_0x197ebf=this[_0x153dae(0xf8)][_0x153dae(0xe9)]();this['_presenter']=_0x2d195c,_0x2d195c===_0x197ebf?(this[_0x153dae(0x11c)](),this[_0x153dae(0x10c)]()):this[_0x153dae(0xfc)]!==_0x153dae(0xac)&&(this[_0x153dae(0xd4)](),this[_0x153dae(0x133)]());}[_0x29b382(0xb6)](){const _0x34568b=_0x29b382,_0x1fe1f5={'eventID':_0x42ea0b[_0x34568b(0x139)]};this['_collabSession'][_0x34568b(0xb4)](_0x1fe1f5,this[_0x34568b(0xd2)]);}[_0x29b382(0xc9)](){const _0x387883=_0x29b382;this[_0x387883(0x13a)]=null,this['_status']!==_0x387883(0x144)&&this[_0x387883(0x11f)]();}[_0x29b382(0x134)](_0x37dcd6){const _0x1cb319=_0x29b382;if(this['_status']===_0x1cb319(0xb5)&&this['_presenter']===_0x37dcd6['data']['memberID']){const _0x3ee52c=_0x5c427d(_0x37dcd6[_0x1cb319(0xb2)])[_0x1cb319(0xaa)][_0x1cb319(0xd9)]()[_0x1cb319(0x104)](_0x57a900=>_0x57a900['id']===_0x1e8650['id']);if(_0x3ee52c){const _0x10f065=_0x3ee52c['params'][_0x1cb319(0x114)],_0x11d92d=_0x3ee52c[_0x1cb319(0xbc)][_0x1cb319(0xfa)]['id'];setTimeout(()=>{const _0x3bdfb5=_0x1cb319;this[_0x3bdfb5(0xad)]['executeCommand'](_0x173dc8['id'],{'unitId':_0x10f065,'subUnitId':_0x11d92d},{'fromCollab':!0x0});});}}}[_0x29b382(0x10c)](){const _0x5039cb=_0x29b382;this[_0x5039cb(0xee)][_0x5039cb(0xa8)](_0x5039cb(0x144));const _0x5e59a9=new Map(),_0x1404c1=this[_0x5039cb(0x122)]=new _0x1960ad();_0x1404c1[_0x5039cb(0xcd)](_0x73bcdc(()=>{const _0x1c0de9=_0x5039cb;_0x5e59a9[_0x1c0de9(0xc8)](_0x282a9d=>_0x282a9d[_0x1c0de9(0x14e)]()),_0x5e59a9['clear']();})),_0x1404c1['add'](this[_0x5039cb(0xad)][_0x5039cb(0xbf)](_0x51fa24=>{const _0x484a=_0x5039cb;var _0x36b3e8;if(_0x51fa24[_0x484a(0x124)]!==_0x4d19c4[_0x484a(0xc3)]||!this['_liveShareService'][_0x484a(0x115)](_0x51fa24['id']))return;const {id:_0x4666fd}=_0x51fa24;let _0x3a22c9;_0x5e59a9[_0x484a(0x132)](_0x4666fd)?_0x3a22c9=_0x5e59a9[_0x484a(0xb1)](_0x4666fd):(_0x3a22c9=new _0x159389(),_0x5e59a9[_0x484a(0x102)](_0x4666fd,_0x3a22c9),_0x3a22c9[_0x484a(0x12a)](_0xf172dd((_0x36b3e8=this[_0x484a(0x145)][_0x484a(0x13f)](Ce))!=null?_0x36b3e8:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x484a(0xe0)](_0x369ed4=>{const _0x378d1b=_0x484a;this[_0x378d1b(0xf8)][_0x378d1b(0xb4)]({'eventID':_0x42ea0b[_0x378d1b(0x13c)],'data':{'unitID':this[_0x378d1b(0xd2)],'operations':{[_0x369ed4['id']]:{'id':_0x369ed4['id'],'params':JSON['stringify'](_0x369ed4[_0x378d1b(0xbc)])}}}},this[_0x378d1b(0xd2)]);})),_0x3a22c9['next'](_0x51fa24);})),this[_0x5039cb(0xc5)]['getInitialStates'](this[_0x5039cb(0xd2)])[_0x5039cb(0xc8)](_0x184e0d=>this[_0x5039cb(0xf8)][_0x5039cb(0xb4)]({'eventID':_0x42ea0b['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5039cb(0xd2)],'operations':{[_0x184e0d['id']]:{'id':_0x184e0d['id'],'params':JSON[_0x5039cb(0xc0)](_0x184e0d[_0x5039cb(0xbc)])}}}},this[_0x5039cb(0xd2)]));}[_0x29b382(0xd4)](){const _0x4804e5=_0x29b382;var _0x37b52d;this[_0x4804e5(0xee)][_0x4804e5(0xa8)](_0x4804e5(0x14f)),(_0x37b52d=this[_0x4804e5(0x122)])==null||_0x37b52d['dispose'](),this[_0x4804e5(0x122)]=null;}[_0x29b382(0x133)](){const _0x1019a0=_0x29b382;var _0xae0f05;(_0xae0f05=this[_0x1019a0(0x122)])==null||_0xae0f05[_0x1019a0(0x131)](),this['_status$'][_0x1019a0(0xa8)](_0x1019a0(0xb5));}[_0x29b382(0x11f)](){const _0x59bcc0=_0x29b382;var _0x59b04c;this[_0x59bcc0(0xee)][_0x59bcc0(0xa8)](_0x59bcc0(0x14f)),(_0x59b04c=this[_0x59bcc0(0x122)])==null||_0x59b04c[_0x59bcc0(0x131)](),this[_0x59bcc0(0x122)]=null;}[_0x29b382(0x11c)](){const _0x1fdcb4=_0x29b382;var _0x30c30a;this[_0x1fdcb4(0xee)][_0x1fdcb4(0xa8)](_0x1fdcb4(0xac)),(_0x30c30a=this[_0x1fdcb4(0x122)])==null||_0x30c30a['dispose']();}[_0x29b382(0xe6)](_0x1208b5){const _0x2d05b0=_0x29b382;if([_0x2d05b0(0x144),_0x2d05b0(0xac),'offline'][_0x2d05b0(0xdc)](this['_status'])||!_0x1208b5[_0x2d05b0(0xb2)][_0x2d05b0(0xb0)]||_0x1208b5[_0x2d05b0(0xb2)][_0x2d05b0(0xb0)]===this[_0x2d05b0(0xf8)][_0x2d05b0(0xe9)]())return;this[_0x2d05b0(0xfc)]===_0x2d05b0(0x14f)&&this[_0x2d05b0(0x133)]();const _0x41070c=_0x1208b5[_0x2d05b0(0xb2)][_0x2d05b0(0xc7)];Object['values'](_0x41070c)[_0x2d05b0(0xc8)](_0x37aa98=>{const _0x2f45c1=_0x2d05b0;this[_0x2f45c1(0xad)]['executeCommand'](_0x37aa98['id'],_0x37aa98[_0x2f45c1(0xbc)]?JSON['parse'](_0x37aa98[_0x2f45c1(0xbc)]):null,{'fromCollab':!0x0});});}[_0x29b382(0xc1)](){const _0x203d21=_0x29b382;var _0x177381;this['_status$'][_0x203d21(0xa8)](_0x203d21(0xb7)),(_0x177381=this['_commandDisposable'])==null||_0x177381['dispose']();}['_handleOnline'](){const _0x48a199=_0x29b382;this[_0x48a199(0xee)][_0x48a199(0xa8)](_0x48a199(0x14f)),this[_0x48a199(0xb6)]();}};N=Y([_(0x2,_0x28d418),_(0x3,_0x4473be(L)),_(0x4,_0x344f5e)],N);function _0x40b0(){const _0x25c4b1=['next','disposeWithMe','mutations','getTypeOfUnitDisposed$','not-following','_commandService','_startLiveShareCoordinator','47704HrXqZW','presenter','get','data','You\x27re\x20following\x20the\x20presenter','send','following','_fetchOperations','offline','status$','substring','getStatus','LIVESHARE_TERMINATE','params','unsubscribe','text','onCommandExecuted','stringify','_handleOffline','_init','OPERATION','http://www.w3.org/2000/svg','_liveShareService','NEW_CHANGESETS','operations','forEach','_handleTerminate','asObservable','idSuffix','getLiveShareCoordinatorSync','add','path','_injector','currentColor','random','_unitID','90XJRjHP','_stopPresenting','url(#$1','toString','_config','Start','reverse','string','startFollowing','includes','attrs','1em','colorChannel1','subscribe','end','ONLINE','_entities','_sharedOperations','84YrRMJC','_handleOperation','displayName','LiveShareIcon','getMemberID','FOLLOWING','3303450xAwLKe','_uiPartsService','HEADER_MENU','_status$','onStarting','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','none','OFFLINE','dispose$','requireSession','univer-mb-3\x20univer-w-full\x20univer-text-sm','NOT_FOLLOWING','PRESENTING','_collabSession','univerjs-icon\x20univerjs-icon-','sheet','Stop\x20following','_status','children','setConfig','You\x27re\x20presenting\x20the\x20document','registerInitialStateReporter','init','set','getCurrentTypeOfUnit$','find','getOwnPropertyDescriptor','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_NEW_HOST','getInitialStates','entries','stopFollowing','401146zaeKNQ','_startPresenting','_handleNewHost','button','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','Start\x20following','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','xlink:href','getTypeOfUnitAdded$','unitId','shouldShareOperation','getValue','registerSharedOperation','then','fill','SAME_OPERATION_SHARE_INTERVAL','IDLE','_stopFollowing','UNIVER_UNKNOWN','mask','_beIdle','getUnitId','_handleOnline','_commandDisposable','140730wOyQeL','type','createInstance','_reporters','assign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','132DhiMcT','pipe','div','evenodd','1741212oQNgGf','521960SpumcA','_collabSessionService','stopPresenting','dispose','has','_startFollowing','_handleNewChangeSets','tag','event$','24000nwRvKx','_mountLiveShare','LIVESHARE_FETCH_OPERATIONS','_presenter','0\x200\x2017\x2017','LIVESHARE_OPERATION','symbol','_univerInstanceService','getConfig','length','map','You\x27re\x20not\x20following\x20the\x20presenter','univer-size-4','presenting','_configService','live-share-icon','replace','defs','use','getLiveShareCoordinator','21KtMYyZ','current','override','complete','idle','tryStartPresenting','delete','You\x27are\x20offline.'];_0x40b0=function(){return _0x25c4b1;};return _0x40b0();}function Le(){const _0x38b7c3=_0x29b382,_0x58b041=_0x3a5ae3(S),_0x1cc606=_0x3a5ae3(_0x4c2f77),_0x284194=_0x5d50ae(()=>_0x1cc606[_0x38b7c3(0x103)](_0x146358['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xa3212f,_0x3500d6]=_0x885ddc(null),[_0x23d18d,_0x17ae61]=_0x885ddc(c[_0x38b7c3(0x11b)]),_0x4e5c8a=_0x3cec89(null);return _0x1d338e(()=>(_0x284194&&_0x58b041[_0x38b7c3(0x14a)](_0x284194[_0x38b7c3(0x120)]())[_0x38b7c3(0x118)](_0xda110f=>{const _0x77c91b=_0x38b7c3;_0x3500d6(_0xda110f),_0x4e5c8a['current']=_0xda110f[_0x77c91b(0xb8)][_0x77c91b(0xe0)](_0x1064ec=>{_0x17ae61(_0x1064ec);});}),()=>{const _0x393ba9=_0x38b7c3;var _0x4e7f6f;(_0x4e7f6f=_0x4e5c8a[_0x393ba9(0x14c)])==null||_0x4e7f6f[_0x393ba9(0xbd)](),_0x4e5c8a[_0x393ba9(0x14c)]=null;}),[_0x284194,_0x58b041]),_0xa3212f?_0x380609(_0x4d6704,{'align':_0x38b7c3(0xe1),'disabled':_0x23d18d===c[_0x38b7c3(0xf2)],'className':_0x38b7c3(0x111),'overlay':_0x380609(Re,{'status':_0x23d18d,'coordinator':_0xa3212f}),'children':_0x380609(_0x38b7c3(0x10e),{'className':_0x9d875(_0x38b7c3(0x128),{'univer-cursor-not-allowed':_0x23d18d===c[_0x38b7c3(0xf2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x23d18d!==c['OFFLINE']}),'type':'button','children':_0x380609(W,{'className':_0x38b7c3(0x143)})})}):null;}function Re(_0x19e596){const _0x1c4ea4=_0x29b382,{status:_0x2847db,coordinator:_0x1f69de}=_0x19e596;switch(_0x2847db){case c[_0x1c4ea4(0x11b)]:return _0x380609($e,{'coordinator':_0x1f69de});case c[_0x1c4ea4(0xea)]:return _0x380609(xe,{'coordinator':_0x1f69de});case c['NOT_FOLLOWING']:return _0x380609(Pe,{'coordinator':_0x1f69de});case c[_0x1c4ea4(0xf2)]:return _0x380609(Te,{});case c[_0x1c4ea4(0xf7)]:return _0x380609(Ae,{'coordinator':_0x1f69de});default:return null;}}function $e(_0x30f591){const _0x51431e=_0x29b382,{coordinator:_0x4bb996}=_0x30f591;return _0x290402(_0x382570,{'children':[_0x380609(_0x51431e(0x12b),{'className':_0x51431e(0xf5),'children':'Present\x20this\x20document'}),_0x380609(_0xfebf7c,{'onClick':()=>_0x4bb996[_0x51431e(0x150)](),'children':_0x51431e(0xd8)})]});}function xe(_0x116905){const _0x134561=_0x29b382,{coordinator:_0x109b8a}=_0x116905;return _0x290402(_0x382570,{'children':[_0x380609(_0x134561(0x12b),{'className':_0x134561(0xf5),'children':_0x134561(0xb3)}),_0x380609(_0xfebf7c,{'onClick':()=>_0x109b8a[_0x134561(0x10a)](),'children':_0x134561(0xfb)})]});}function Pe(_0xda8120){const _0x1cb289=_0x29b382,{coordinator:_0x5cb90d}=_0xda8120;return _0x290402(_0x382570,{'children':[_0x380609(_0x1cb289(0x12b),{'className':_0x1cb289(0xf5),'children':_0x1cb289(0x142)}),_0x380609(_0xfebf7c,{'variant':_0x1cb289(0xbe),'onClick':()=>_0x5cb90d['startFollowing'](),'children':_0x1cb289(0x110)})]});}function Ae(_0x5510ef){const _0x1d9f02=_0x29b382,{coordinator:_0x427663}=_0x5510ef;return _0x290402(_0x382570,{'children':[_0x380609(_0x1d9f02(0x12b),{'className':_0x1d9f02(0xf5),'children':_0x1d9f02(0xff)}),_0x380609(_0xfebf7c,{'variant':'default','onClick':()=>_0x427663[_0x1d9f02(0x130)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x17d2d3=_0x29b382;return _0x380609(_0x382570,{'children':_0x17d2d3(0xa7)});}var Fe=Object[_0x29b382(0x105)],He=(_0x1df3b9,_0x33e242,_0x2cf850,_0xf89be6)=>{for(var _0x176077=_0xf89be6>0x1?void 0x0:_0xf89be6?Fe(_0x33e242,_0x2cf850):_0x33e242,_0x8399ca=_0x1df3b9['length']-0x1,_0x56ba6f;_0x8399ca>=0x0;_0x8399ca--)(_0x56ba6f=_0x1df3b9[_0x8399ca])&&(_0x176077=_0x56ba6f(_0x176077)||_0x176077);return _0x176077;},A=(_0x3d38e0,_0x11846c)=>(_0xaa142a,_0x394496)=>_0x11846c(_0xaa142a,_0x394496,_0x3d38e0);let m=class extends _0x54703{constructor(_0x3309a3,_0x188fd4){const _0x5bc62b=_0x29b382;super(),this[_0x5bc62b(0xcf)]=_0x3309a3,this[_0x5bc62b(0xec)]=_0x188fd4,this['_mountLiveShare']();}[_0x29b382(0x138)](){const _0x4dfb9c=_0x29b382;this[_0x4dfb9c(0xa9)](this['_uiPartsService']['registerComponent'](_0x5162da[_0x4dfb9c(0xed)],()=>_0x28a5b4(Le,this[_0x4dfb9c(0xcf)])));}};m=He([A(0x0,_0x4473be(_0x567548)),A(0x1,_0x689301)],m);const ye='live-share.config',T={};var Ue=Object[_0x29b382(0x105)],Ve=(_0x18e990,_0x3ec5af,_0xda84cc,_0x35e64e)=>{const _0x2da150=_0x29b382;for(var _0x47c7be=_0x35e64e>0x1?void 0x0:_0x35e64e?Ue(_0x3ec5af,_0xda84cc):_0x3ec5af,_0x5e0618=_0x18e990[_0x2da150(0x140)]-0x1,_0x11f2d4;_0x5e0618>=0x0;_0x5e0618--)(_0x11f2d4=_0x18e990[_0x5e0618])&&(_0x47c7be=_0x11f2d4(_0x47c7be)||_0x47c7be);return _0x47c7be;},je=(_0x20def7,_0x48bd48)=>(_0x5a2439,_0x179e7f)=>_0x48bd48(_0x5a2439,_0x179e7f,_0x20def7);let I=class extends _0x54703{constructor(_0x4cf2cc){const _0x1a3e4c=_0x29b382;super(),this[_0x1a3e4c(0xc5)]=_0x4cf2cc,this[_0x1a3e4c(0xc2)]();}[_0x29b382(0xc2)](){const _0x1088da=_0x29b382;[_0x410861['id'],_0x46540b['id'],_0x173dc8['id']][_0x1088da(0xc8)](_0x6f173a=>{const _0x2f5b0a=_0x1088da;this[_0x2f5b0a(0xa9)](this[_0x2f5b0a(0xc5)][_0x2f5b0a(0x117)](_0x6f173a));});}};I=Ve([je(0x0,_0x4473be(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x5797f2,_0x16506c,_0x46067a)=>_0x16506c in _0x5797f2?Me(_0x5797f2,_0x16506c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46067a}):_0x5797f2[_0x16506c]=_0x46067a,We=(_0x5cef4b,_0x4bba7d,_0x4e6667,_0x2870da)=>{const _0x5153d7=_0x29b382;for(var _0x3fa6ec=_0x2870da>0x1?void 0x0:_0x2870da?ke(_0x4bba7d,_0x4e6667):_0x4bba7d,_0x49f1a2=_0x5cef4b[_0x5153d7(0x140)]-0x1,_0x1953a1;_0x49f1a2>=0x0;_0x49f1a2--)(_0x1953a1=_0x5cef4b[_0x49f1a2])&&(_0x3fa6ec=_0x1953a1(_0x3fa6ec)||_0x3fa6ec);return _0x3fa6ec;},F=(_0xb922c9,_0x300a09)=>(_0x254366,_0xb060b0)=>_0x300a09(_0x254366,_0xb060b0,_0xb922c9),B=(_0x396164,_0x1b0651,_0x56953a)=>Ge(_0x396164,typeof _0x1b0651!='symbol'?_0x1b0651+'':_0x1b0651,_0x56953a);const Ye=_0x29b382(0x106);let b=class extends _0x51513e{constructor(_0x31741f=T,_0x12d955,_0x3724a7){const _0x423e64=_0x29b382;super(),this['_config']=_0x31741f,this[_0x423e64(0xcf)]=_0x12d955,this[_0x423e64(0x145)]=_0x3724a7;const {..._0x1e90a3}=_0x3675e2({},T,this['_config']);this['_configService'][_0x423e64(0xfe)](ye,_0x1e90a3);}[_0x29b382(0xef)](){const _0x20bad6=_0x29b382;_0x563134(this['_injector'],_0x2e4cdf([[L],[S],[I],[m]],this[_0x20bad6(0xd7)][_0x20bad6(0x14d)])),_0x5d1821(this[_0x20bad6(0xcf)],[[I]]);}['onRendered'](){const _0x255054=_0x29b382;_0x5d1821(this[_0x255054(0xcf)],[[m]]);}};B(b,_0x29b382(0x124),_0x146358[_0x29b382(0x11d)]),B(b,'pluginName',Ye),b=We([_0x18815f(_0x43b951),F(0x1,_0x4473be(_0x567548)),F(0x2,_0x28d418)],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 _0x5820cf=_0x309d;(function(_0xd29215,_0x5733eb){const _0x175b07=_0x309d,_0x1156cc=_0xd29215();while(!![]){try{const _0x1861bf=parseInt(_0x175b07(0x217))/0x1+parseInt(_0x175b07(0x21e))/0x2+parseInt(_0x175b07(0x228))/0x3+-parseInt(_0x175b07(0x1e5))/0x4*(-parseInt(_0x175b07(0x211))/0x5)+parseInt(_0x175b07(0x1df))/0x6*(-parseInt(_0x175b07(0x264))/0x7)+-parseInt(_0x175b07(0x1ef))/0x8+-parseInt(_0x175b07(0x221))/0x9;if(_0x1861bf===_0x5733eb)break;else _0x1156cc['push'](_0x1156cc['shift']());}catch(_0x304913){_0x1156cc['push'](_0x1156cc['shift']());}}}(_0x36f5,0x5bc18));var K=Object[_0x5820cf(0x265)],q=(_0x40483d,_0x13a9eb,_0x24dbaa)=>_0x13a9eb in _0x40483d?K(_0x40483d,_0x13a9eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24dbaa}):_0x40483d[_0x13a9eb]=_0x24dbaa,u=(_0x3f7fab,_0x4f2648,_0x15a005)=>q(_0x3f7fab,typeof _0x4f2648!=_0x5820cf(0x1ed)?_0x4f2648+'':_0x4f2648,_0x15a005);import{Disposable as _0x2e331c,toDisposable as _0x69e3dc,Inject as _0x4bad93,Injector as _0x7b2f8,RxDisposable as _0x1a37bd,UniverInstanceType as _0x491e7c,DisposableCollection as _0xf22f9f,CommandType as _0x1c2ebe,IUniverInstanceService as _0x40c6de,IConfigService as _0x4d5e12,ICommandService as _0x4c31ff,DependentOn as _0x333705,Plugin as _0x1ffb76,merge as _0x815cbc,registerDependencies as _0x1f00c5,mergeOverrideWithDependencies as _0x14b8bb,touchDependencies as _0x4b7b0b}from'@univerjs/core';import{useDependency as _0x52aa82,useObservable as _0x5a7db5,BuiltInUIPart as _0x505dc0,connectInjector as _0x2f564f,IUIPartsService as _0x282d33}from'@univerjs/ui';import{jsx as _0x4df6fe,jsxs as _0x59a1e9,Fragment as _0x5b584b}from'react/jsx-runtime';import{Dropdown as _0x41be20,clsx as _0x375136,Button as _0x29c228}from'@univerjs/design';import{useRef as _0xc474d8,createElement as _0x361498,forwardRef as _0x4ecc29,useState as _0xb694f4,useEffect as _0x3e5b3e}from'react';import{CollaborationEvent as _0x36abd7,parseProtocolChangeset as _0x15732f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3a467a,SessionStatus as _0x109e7c,UniverCollaborationClientPlugin as _0x5b162f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x50fae9,SetWorksheetActiveOperation as _0x166425}from'@univerjs/sheets';import{BehaviorSubject as _0x8bc77b,Subject as _0x3d5e73}from'rxjs';import{takeUntil as _0x45a8a0,throttleTime as _0x3abd8f}from'rxjs/operators';import{SetZoomRatioOperation as _0x2a5d38,SetScrollOperation as _0x28a689}from'@univerjs/sheets-ui';function W({ref:_0x35db9a,..._0x4a7a0b}){const _0x3b3f54=_0x5820cf,{icon:_0x56eb49,id:_0x5b8989,className:_0x6c5443,extend:_0x1c2d07,..._0x1e1845}=_0x4a7a0b,_0x4ab888=('univerjs-icon\x20univerjs-icon-'+_0x5b8989+'\x20'+(_0x6c5443||''))[_0x3b3f54(0x24c)](),_0xfd3ccc=_0xc474d8('_'+we());return G(_0x56eb49,''+_0x5b8989,{'defIds':_0x56eb49['defIds'],'idSuffix':_0xfd3ccc['current']},{'ref':_0x35db9a,'className':_0x4ab888,..._0x1e1845},_0x1c2d07);}function G(_0x2849e0,_0x2ae0ae,_0x3a7bbf,_0x36aed9,_0x2c38d5){const _0xf62b34=_0x5820cf;return _0x361498(_0x2849e0[_0xf62b34(0x1e4)],{'key':_0x2ae0ae,...Ee(_0x2849e0,_0x3a7bbf,_0x2c38d5),..._0x36aed9},(Oe(_0x2849e0,_0x3a7bbf)[_0xf62b34(0x206)]||[])[_0xf62b34(0x1ea)]((_0x454f1c,_0x493df2)=>G(_0x454f1c,_0x2ae0ae+'-'+_0x2849e0['tag']+'-'+_0x493df2,_0x3a7bbf,void 0x0,_0x2c38d5)));}function Ee(_0x419ff5,_0x454b47,_0x24c338){const _0x3164ba=_0x5820cf,_0x1b1cbe={..._0x419ff5['attrs']};_0x24c338!=null&&_0x24c338[_0x3164ba(0x1f5)]&&_0x1b1cbe[_0x3164ba(0x22e)]===_0x3164ba(0x1f5)&&(_0x1b1cbe['fill']=_0x24c338[_0x3164ba(0x1f5)]),_0x419ff5[_0x3164ba(0x1e4)]===_0x3164ba(0x223)&&_0x1b1cbe['id']&&(_0x1b1cbe['id']=_0x1b1cbe['id']+_0x454b47[_0x3164ba(0x1e9)]),Object['entries'](_0x1b1cbe)[_0x3164ba(0x222)](([_0x5af8ba,_0x4648f3])=>{const _0x23e3f3=_0x3164ba;_0x5af8ba===_0x23e3f3(0x223)&&typeof _0x4648f3=='string'&&(_0x1b1cbe[_0x5af8ba]=_0x4648f3[_0x23e3f3(0x208)](/url\(#(.*)\)/,_0x23e3f3(0x1f1)+_0x454b47[_0x23e3f3(0x1e9)]+')'));});const {defIds:_0x329422}=_0x454b47;return!_0x329422||_0x329422[_0x3164ba(0x1e1)]===0x0||(_0x419ff5[_0x3164ba(0x1e4)]==='use'&&_0x1b1cbe[_0x3164ba(0x22c)]&&(_0x1b1cbe[_0x3164ba(0x22c)]=_0x1b1cbe['xlink:href']+_0x454b47[_0x3164ba(0x1e9)]),Object[_0x3164ba(0x227)](_0x1b1cbe)['forEach'](([_0x1cb3ff,_0x47cc3e])=>{const _0x77c51a=_0x3164ba;typeof _0x47cc3e=='string'&&(_0x1b1cbe[_0x1cb3ff]=_0x47cc3e['replace'](/url\(#(.*)\)/,_0x77c51a(0x1f1)+_0x454b47[_0x77c51a(0x1e9)]+')'));})),_0x1b1cbe;}function Oe(_0x4255d1,_0x3be832){const _0x28ab62=_0x5820cf;var _0x52283f;const {defIds:_0x53cc67}=_0x3be832;return!_0x53cc67||_0x53cc67[_0x28ab62(0x1e1)]===0x0?_0x4255d1:_0x4255d1['tag']===_0x28ab62(0x216)&&((_0x52283f=_0x4255d1['children'])!=null&&_0x52283f[_0x28ab62(0x1e1)])?{..._0x4255d1,'children':_0x4255d1['children'][_0x28ab62(0x1ea)](_0x10fe99=>typeof _0x10fe99[_0x28ab62(0x1f0)]['id']==_0x28ab62(0x1d9)&&_0x53cc67&&_0x53cc67['includes'](_0x10fe99[_0x28ab62(0x1f0)]['id'])?{..._0x10fe99,'attrs':{..._0x10fe99['attrs'],'id':_0x10fe99[_0x28ab62(0x1f0)]['id']+_0x3be832[_0x28ab62(0x1e9)]}}:_0x10fe99)}:_0x4255d1;}function we(){const _0x3f163e=_0x5820cf;return Math[_0x3f163e(0x1f9)]()[_0x3f163e(0x250)](0x24)[_0x3f163e(0x1f8)](0x2,0x8);}W[_0x5820cf(0x1f7)]=_0x5820cf(0x1f2);const Ne={'tag':_0x5820cf(0x256),'attrs':{'xmlns':_0x5820cf(0x278),'fill':_0x5820cf(0x21d),'viewBox':_0x5820cf(0x251),'width':_0x5820cf(0x1db),'height':_0x5820cf(0x1db)},'children':[{'tag':'path','attrs':{'fill':_0x5820cf(0x24e),'d':_0x5820cf(0x243)}},{'tag':_0x5820cf(0x20a),'attrs':{'fill':_0x5820cf(0x24e),'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':_0x5820cf(0x272)}}]},Y=_0x4ecc29(function(_0x42cc85,_0x36770d){const _0xb60965=_0x5820cf;return _0x361498(W,Object[_0xb60965(0x27a)]({},_0x42cc85,{'id':_0xb60965(0x23e),'ref':_0x36770d,'icon':Ne}));});Y[_0x5820cf(0x1f7)]=_0x5820cf(0x261);class R extends _0x2e331c{constructor(){const _0x3a8d34=_0x5820cf;super(...arguments),u(this,_0x3a8d34(0x202),new Set()),u(this,_0x3a8d34(0x27b),new Set());}['registerSharedOperation'](_0x14a931){const _0x1935db=_0x5820cf;return this[_0x1935db(0x202)][_0x1935db(0x21b)](_0x14a931),_0x69e3dc(()=>this['_sharedOperations']['delete'](_0x14a931));}[_0x5820cf(0x220)](_0x5c3303){const _0xbe4f8e=_0x5820cf;return this[_0xbe4f8e(0x27b)][_0xbe4f8e(0x21b)](_0x5c3303),_0x69e3dc(()=>this[_0xbe4f8e(0x27b)][_0xbe4f8e(0x1f4)](_0x5c3303));}['shouldShareOperation'](_0xdcb308){const _0x163b67=_0x5820cf;return this['_sharedOperations'][_0x163b67(0x1fa)](_0xdcb308);}[_0x5820cf(0x215)](_0x4f2d4c){const _0x553d0b=_0x5820cf;return Array[_0x553d0b(0x253)](this[_0x553d0b(0x27b)])['map'](_0x578299=>_0x578299(_0x4f2d4c));}}var Ce=Object[_0x5820cf(0x260)],B=(_0x507252,_0x1c7f77,_0x32f868,_0x161f3f)=>{const _0x4740ce=_0x5820cf;for(var _0x3e3f5d=_0x161f3f>0x1?void 0x0:_0x161f3f?Ce(_0x1c7f77,_0x32f868):_0x1c7f77,_0x217fb2=_0x507252[_0x4740ce(0x1e1)]-0x1,_0x259448;_0x217fb2>=0x0;_0x217fb2--)(_0x259448=_0x507252[_0x217fb2])&&(_0x3e3f5d=_0x259448(_0x3e3f5d)||_0x3e3f5d);return _0x3e3f5d;},_=(_0x26f838,_0x3f7951)=>(_0x353734,_0x3ca87d)=>_0x3f7951(_0x353734,_0x3ca87d,_0x26f838);let m=class extends _0x1a37bd{constructor(_0x3c8600,_0x443de6,_0x5836d7){const _0x17487f=_0x5820cf;super(),u(this,'_entities',new Map()),(this[_0x17487f(0x1ec)]=_0x3c8600,this['_injector']=_0x443de6,this[_0x17487f(0x218)]=_0x5836d7,this['_init']());}async[_0x5820cf(0x1de)](_0x16e9db){const _0x363a31=_0x5820cf;return this[_0x363a31(0x231)][_0x363a31(0x1fa)](_0x16e9db)||await this['_startLiveShareCoordinator'](_0x16e9db),this[_0x363a31(0x231)][_0x363a31(0x219)](_0x16e9db);}['getLiveShareCoordinatorSync'](_0x19f1f6){const _0x1fc1e6=_0x5820cf;var _0x3b354f;return(_0x3b354f=this[_0x1fc1e6(0x231)][_0x1fc1e6(0x219)](_0x19f1f6))!=null?_0x3b354f:null;}['_init'](){const _0x2474c7=_0x5820cf;this[_0x2474c7(0x1ec)]['getTypeOfUnitAdded$'](_0x491e7c['UNIVER_SHEET'])[_0x2474c7(0x23a)](_0x45a8a0(this['dispose$']))[_0x2474c7(0x226)](async _0x4f9001=>{const _0x1dab96=_0x2474c7,_0x3153fc=_0x4f9001[_0x1dab96(0x210)]();this[_0x1dab96(0x231)][_0x1dab96(0x1fa)](_0x3153fc)||this['_startLiveShareCoordinator'](_0x3153fc);}),this[_0x2474c7(0x1ec)][_0x2474c7(0x1f6)](_0x491e7c['UNIVER_SHEET'])[_0x2474c7(0x23a)](_0x45a8a0(this[_0x2474c7(0x248)]))[_0x2474c7(0x226)](_0x474899=>{const _0x114e15=_0x2474c7,_0x21e03d=_0x474899[_0x114e15(0x210)](),_0x59eac2=this[_0x114e15(0x231)]['get'](_0x21e03d);_0x59eac2==null||_0x59eac2['dispose']();});}async[_0x5820cf(0x1e6)](_0x22da47){const _0x53f63c=_0x5820cf,_0xc9ad37=await this[_0x53f63c(0x218)]['requireSession'](_0x22da47),_0x2e2e33=this[_0x53f63c(0x274)][_0x53f63c(0x266)](C,_0x22da47,_0xc9ad37);return _0x2e2e33[_0x53f63c(0x257)](),this['_entities']['set'](_0x22da47,_0x2e2e33),_0x2e2e33;}};m=B([_(0x0,_0x40c6de),_(0x1,_0x4bad93(_0x7b2f8)),_(0x2,_0x4bad93(_0x3a467a))],m);var c=(_0x57982e=>(_0x57982e[_0x5820cf(0x246)]=_0x5820cf(0x24a),_0x57982e[_0x5820cf(0x201)]=_0x5820cf(0x209),_0x57982e[_0x5820cf(0x22a)]='following',_0x57982e['NOT_FOLLOWING']=_0x5820cf(0x276),_0x57982e['PRESENTING']='presenting',_0x57982e))(c||{});const De='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x1a37bd{constructor(_0x440b36,_0x5b1d41,_0x552b02,_0x1dc176,_0x6d7463){const _0x412804=_0x5820cf;super(),u(this,_0x412804(0x232),new _0x8bc77b(_0x412804(0x209))),u(this,'status$',this['_status$']['asObservable']()),u(this,'_init',!0x1),u(this,_0x412804(0x235),null),u(this,_0x412804(0x22b),null),(this['_unitID']=_0x440b36,this[_0x412804(0x20f)]=_0x5b1d41,this[_0x412804(0x25d)]=_0x552b02,this[_0x412804(0x229)]=_0x1dc176,this[_0x412804(0x1dd)]=_0x6d7463);}get[_0x5820cf(0x241)](){const _0x478f90=_0x5820cf;return this['_status$'][_0x478f90(0x263)]();}[_0x5820cf(0x1e3)](){const _0x97282a=_0x5820cf;var _0x4c8730;(_0x4c8730=this[_0x97282a(0x235)])==null||_0x4c8730['dispose'](),this['_status$'][_0x97282a(0x259)](_0x97282a(0x209)),this['_status$'][_0x97282a(0x22f)]();}[_0x5820cf(0x254)](){return this['_status'];}[_0x5820cf(0x257)](){const _0x12d7b7=_0x5820cf;this[_0x12d7b7(0x21f)]||(this['_init']=!0x0,this[_0x12d7b7(0x20f)][_0x12d7b7(0x1fc)][_0x12d7b7(0x23a)](_0x45a8a0(this['dispose$']))[_0x12d7b7(0x226)](_0x1562ca=>{const _0x59184a=_0x12d7b7;switch(_0x1562ca){case _0x109e7c[_0x59184a(0x246)]:this[_0x59184a(0x1eb)]();break;case _0x109e7c['ONLINE']:this['_handleOnline']();break;}}),this[_0x12d7b7(0x20f)][_0x12d7b7(0x271)][_0x12d7b7(0x23a)](_0x45a8a0(this[_0x12d7b7(0x248)]))['subscribe'](_0x224248=>{const _0x185b0c=_0x12d7b7,{eventID:_0x25156d}=_0x224248;switch(_0x25156d){case _0x36abd7[_0x185b0c(0x277)]:this[_0x185b0c(0x25a)](_0x224248);break;case _0x36abd7[_0x185b0c(0x207)]:this['_handleOperation'](_0x224248);break;case _0x36abd7[_0x185b0c(0x25b)]:this[_0x185b0c(0x1d5)]();break;case _0x36abd7['NEW_CHANGESETS']:this[_0x185b0c(0x1d7)](_0x224248);break;}}));}[_0x5820cf(0x244)](){const _0x54f24d=_0x5820cf;this[_0x54f24d(0x20f)][_0x54f24d(0x233)]({'eventID':_0x36abd7[_0x54f24d(0x273)],'data':{'unitID':this[_0x54f24d(0x275)],'userID':this[_0x54f24d(0x20f)][_0x54f24d(0x236)]()}},this[_0x54f24d(0x275)]);}[_0x5820cf(0x239)](){const _0x410a3b=_0x5820cf;this['_status']===_0x410a3b(0x262)&&(this[_0x410a3b(0x232)][_0x410a3b(0x259)](_0x410a3b(0x209)),this[_0x410a3b(0x20f)][_0x410a3b(0x233)]({'eventID':_0x36abd7['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x410a3b(0x275)]}},this[_0x410a3b(0x275)]));}[_0x5820cf(0x1ee)](){const _0x111435=_0x5820cf;this[_0x111435(0x241)]===_0x111435(0x276)&&(this[_0x111435(0x232)][_0x111435(0x259)](_0x111435(0x212)),this['_startFollowing']());}['stopFollowing'](){const _0x2a26a6=_0x5820cf;this[_0x2a26a6(0x241)]===_0x2a26a6(0x212)&&this[_0x2a26a6(0x20c)]();}[_0x5820cf(0x25a)](_0x1c8c82){const _0x8a2204=_0x5820cf,{presenter:_0x190155}=_0x1c8c82[_0x8a2204(0x1d6)],_0x3e0e65=this[_0x8a2204(0x20f)][_0x8a2204(0x236)]();this[_0x8a2204(0x22b)]=_0x190155,_0x190155===_0x3e0e65?(this[_0x8a2204(0x20c)](),this['_startPresenting']()):this['_status']!==_0x8a2204(0x276)&&(this[_0x8a2204(0x23f)](),this[_0x8a2204(0x230)]());}[_0x5820cf(0x242)](){const _0x54a1d5=_0x5820cf,_0x57b36b={'eventID':_0x36abd7['LIVESHARE_FETCH_OPERATIONS']};this[_0x54a1d5(0x20f)][_0x54a1d5(0x233)](_0x57b36b,this[_0x54a1d5(0x275)]);}[_0x5820cf(0x1d5)](){const _0x27a3e6=_0x5820cf;this[_0x27a3e6(0x22b)]=null,this[_0x27a3e6(0x241)]!==_0x27a3e6(0x262)&&this[_0x27a3e6(0x203)]();}[_0x5820cf(0x1d7)](_0x498e69){const _0x1c06b8=_0x5820cf;if(this[_0x1c06b8(0x241)]==='following'&&this[_0x1c06b8(0x22b)]===_0x498e69[_0x1c06b8(0x1d6)][_0x1c06b8(0x255)]){const _0x3dd9c8=_0x15732f(_0x498e69['data'])[_0x1c06b8(0x1d8)][_0x1c06b8(0x24f)]()['find'](_0x1b06dc=>_0x1b06dc['id']===_0x50fae9['id']);if(_0x3dd9c8){const _0x3b2ed8=_0x3dd9c8[_0x1c06b8(0x26c)]['unitId'],_0x1fe577=_0x3dd9c8[_0x1c06b8(0x26c)][_0x1c06b8(0x268)]['id'];setTimeout(()=>{const _0x7797e8=_0x1c06b8;this['_commandService'][_0x7797e8(0x1da)](_0x166425['id'],{'unitId':_0x3b2ed8,'subUnitId':_0x1fe577},{'fromCollab':!0x0});});}}}[_0x5820cf(0x279)](){const _0x3f0bd9=_0x5820cf;this[_0x3f0bd9(0x232)][_0x3f0bd9(0x259)](_0x3f0bd9(0x262));const _0x3933ff=new Map(),_0x3b0597=this['_commandDisposable']=new _0xf22f9f();_0x3b0597[_0x3f0bd9(0x21b)](_0x69e3dc(()=>{const _0x47af15=_0x3f0bd9;_0x3933ff[_0x47af15(0x222)](_0x4bd256=>_0x4bd256[_0x47af15(0x22f)]()),_0x3933ff[_0x47af15(0x205)]();})),_0x3b0597[_0x3f0bd9(0x21b)](this[_0x3f0bd9(0x1dd)]['onCommandExecuted'](_0x37753d=>{const _0x2ac4b9=_0x3f0bd9;var _0x213376;if(_0x37753d[_0x2ac4b9(0x23c)]!==_0x1c2ebe['OPERATION']||!this[_0x2ac4b9(0x229)][_0x2ac4b9(0x1fb)](_0x37753d['id']))return;const {id:_0x3382e4}=_0x37753d;let _0x37798d;_0x3933ff[_0x2ac4b9(0x1fa)](_0x3382e4)?_0x37798d=_0x3933ff[_0x2ac4b9(0x219)](_0x3382e4):(_0x37798d=new _0x3d5e73(),_0x3933ff[_0x2ac4b9(0x26b)](_0x3382e4,_0x37798d),_0x37798d[_0x2ac4b9(0x23a)](_0x3abd8f((_0x213376=this[_0x2ac4b9(0x25d)][_0x2ac4b9(0x1fd)](De))!=null?_0x213376:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5649f5=>{const _0x16e86f=_0x2ac4b9;this['_collabSession'][_0x16e86f(0x233)]({'eventID':_0x36abd7[_0x16e86f(0x207)],'data':{'unitID':this['_unitID'],'operations':{[_0x5649f5['id']]:{'id':_0x5649f5['id'],'params':JSON[_0x16e86f(0x24b)](_0x5649f5['params'])}}}},this['_unitID']);})),_0x37798d[_0x2ac4b9(0x259)](_0x37753d);})),this['_liveShareService'][_0x3f0bd9(0x215)](this[_0x3f0bd9(0x275)])['forEach'](_0x576cca=>this[_0x3f0bd9(0x20f)]['send']({'eventID':_0x36abd7[_0x3f0bd9(0x207)],'data':{'unitID':this[_0x3f0bd9(0x275)],'operations':{[_0x576cca['id']]:{'id':_0x576cca['id'],'params':JSON[_0x3f0bd9(0x24b)](_0x576cca['params'])}}}},this[_0x3f0bd9(0x275)]));}[_0x5820cf(0x23f)](){const _0x2130ac=_0x5820cf;var _0x1fbfca;this['_status$']['next'](_0x2130ac(0x209)),(_0x1fbfca=this[_0x2130ac(0x235)])==null||_0x1fbfca[_0x2130ac(0x1e3)](),this[_0x2130ac(0x235)]=null;}[_0x5820cf(0x230)](){const _0x533f8f=_0x5820cf;var _0x432822;(_0x432822=this[_0x533f8f(0x235)])==null||_0x432822['dispose'](),this['_status$']['next'](_0x533f8f(0x212));}['_beIdle'](){const _0x535822=_0x5820cf;var _0x35d44f;this[_0x535822(0x232)][_0x535822(0x259)](_0x535822(0x209)),(_0x35d44f=this['_commandDisposable'])==null||_0x35d44f['dispose'](),this[_0x535822(0x235)]=null;}[_0x5820cf(0x20c)](){const _0xb847e6=_0x5820cf;var _0x190ca0;this[_0xb847e6(0x232)][_0xb847e6(0x259)](_0xb847e6(0x276)),(_0x190ca0=this[_0xb847e6(0x235)])==null||_0x190ca0[_0xb847e6(0x1e3)]();}[_0x5820cf(0x1e8)](_0x5656b0){const _0x264615=_0x5820cf;if([_0x264615(0x262),'not-following',_0x264615(0x24a)][_0x264615(0x1e7)](this[_0x264615(0x241)])||!_0x5656b0[_0x264615(0x1d6)][_0x264615(0x224)]||_0x5656b0['data'][_0x264615(0x224)]===this[_0x264615(0x20f)]['getMemberID']())return;this[_0x264615(0x241)]==='idle'&&this[_0x264615(0x230)]();const _0x2ae903=_0x5656b0[_0x264615(0x1d6)][_0x264615(0x247)];Object[_0x264615(0x26d)](_0x2ae903)[_0x264615(0x222)](_0x437e9d=>{const _0x7a9f8c=_0x264615;this[_0x7a9f8c(0x1dd)][_0x7a9f8c(0x1da)](_0x437e9d['id'],_0x437e9d[_0x7a9f8c(0x26c)]?JSON['parse'](_0x437e9d[_0x7a9f8c(0x26c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x1a1b8f=_0x5820cf;var _0x36cad8;this[_0x1a1b8f(0x232)]['next'](_0x1a1b8f(0x24a)),(_0x36cad8=this['_commandDisposable'])==null||_0x36cad8['dispose']();}[_0x5820cf(0x21c)](){const _0x231775=_0x5820cf;this['_status$'][_0x231775(0x259)](_0x231775(0x209)),this[_0x231775(0x242)]();}};C=B([_(0x2,_0x4d5e12),_(0x3,_0x4bad93(R)),_(0x4,_0x4c31ff)],C);function Re(){const _0x523722=_0x5820cf,_0x182b96=_0x52aa82(m),_0x2cc71e=_0x52aa82(_0x40c6de),_0x375e87=_0x5a7db5(()=>_0x2cc71e['getCurrentTypeOfUnit$'](_0x491e7c['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x536aef,_0x5eec40]=_0xb694f4(null),[_0x54e634,_0x42fcc6]=_0xb694f4(c['IDLE']),_0x193e0c=_0xc474d8(null);return _0x3e5b3e(()=>(_0x375e87&&_0x182b96[_0x523722(0x1de)](_0x375e87['getUnitId']())[_0x523722(0x270)](_0x3b1a69=>{const _0x459d55=_0x523722;_0x5eec40(_0x3b1a69),_0x193e0c[_0x459d55(0x1f3)]=_0x3b1a69[_0x459d55(0x1e0)][_0x459d55(0x226)](_0x49706d=>{_0x42fcc6(_0x49706d);});}),()=>{var _0xcc4ea4;(_0xcc4ea4=_0x193e0c['current'])==null||_0xcc4ea4['unsubscribe'](),_0x193e0c['current']=null;}),[_0x375e87,_0x182b96]),_0x536aef?_0x4df6fe(_0x41be20,{'align':_0x523722(0x21a),'disabled':_0x54e634===c[_0x523722(0x246)],'className':_0x523722(0x269),'overlay':_0x4df6fe($e,{'status':_0x54e634,'coordinator':_0x536aef}),'children':_0x4df6fe('button',{'className':_0x375136(_0x523722(0x24d),{'univer-cursor-not-allowed':_0x54e634===c[_0x523722(0x246)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x54e634!==c[_0x523722(0x246)]}),'type':_0x523722(0x1fe),'children':_0x4df6fe(Y,{'className':_0x523722(0x213)})})}):null;}function $e(_0x227d50){const _0x5067fe=_0x5820cf,{status:_0x4a8b01,coordinator:_0x581095}=_0x227d50;switch(_0x4a8b01){case c[_0x5067fe(0x201)]:return _0x4df6fe(xe,{'coordinator':_0x581095});case c[_0x5067fe(0x22a)]:return _0x4df6fe(Pe,{'coordinator':_0x581095});case c[_0x5067fe(0x26a)]:return _0x4df6fe(Ae,{'coordinator':_0x581095});case c[_0x5067fe(0x246)]:return _0x4df6fe(Fe,{});case c[_0x5067fe(0x225)]:return _0x4df6fe(Te,{'coordinator':_0x581095});default:return null;}}function xe(_0x3a5fd5){const _0x405e9f=_0x5820cf,{coordinator:_0x3e4865}=_0x3a5fd5;return _0x59a1e9(_0x5b584b,{'children':[_0x4df6fe(_0x405e9f(0x240),{'className':_0x405e9f(0x249),'children':'Present\x20this\x20document'}),_0x4df6fe(_0x29c228,{'onClick':()=>_0x3e4865[_0x405e9f(0x244)](),'children':_0x405e9f(0x25c)})]});}function Pe(_0x23a7d5){const _0x127cb8=_0x5820cf,{coordinator:_0x31b5d0}=_0x23a7d5;return _0x59a1e9(_0x5b584b,{'children':[_0x4df6fe(_0x127cb8(0x240),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x127cb8(0x267)}),_0x4df6fe(_0x29c228,{'onClick':()=>_0x31b5d0[_0x127cb8(0x1dc)](),'children':_0x127cb8(0x26e)})]});}function Ae(_0xa0a837){const _0x761675=_0x5820cf,{coordinator:_0x3e3aa4}=_0xa0a837;return _0x59a1e9(_0x5b584b,{'children':[_0x4df6fe(_0x761675(0x240),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4df6fe(_0x29c228,{'variant':_0x761675(0x23d),'onClick':()=>_0x3e3aa4[_0x761675(0x1ee)](),'children':_0x761675(0x234)})]});}function Te(_0x38f53d){const _0x2cd618=_0x5820cf,{coordinator:_0x1403ff}=_0x38f53d;return _0x59a1e9(_0x5b584b,{'children':[_0x4df6fe('div',{'className':_0x2cd618(0x249),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4df6fe(_0x29c228,{'variant':'default','onClick':()=>_0x1403ff['stopPresenting'](),'children':_0x2cd618(0x25f)})]});}function _0x36f5(){const _0x26942f=['1214180ZLrkIt','_startLiveShareCoordinator','includes','_handleOperation','idSuffix','map','_handleOffline','_univerInstanceService','symbol','startFollowing','3345184ksDwsz','attrs','url(#$1','UniverIcon','current','delete','colorChannel1','getTypeOfUnitDisposed$','displayName','substring','random','has','shouldShareOperation','sessionStatus$','getConfig','button','live-share.config','You\x27are\x20offline.','IDLE','_sharedOperations','_beIdle','UNIVER_LIVE_SHARE_PLUGIN','clear','children','LIVESHARE_OPERATION','replace','idle','path','0.16.1-insiders.20260311-074e8ca','_stopFollowing','@univerjs-pro/live-share','onStarting','_collabSession','getUnitId','5mCYDvx','following','univer-size-4','HEADER_MENU','getInitialStates','defs','89150RuSGpK','_collabSessionService','get','end','add','_handleOnline','none','592920eSTrkc','_init','registerInitialStateReporter','31617xphCFf','forEach','mask','presenter','PRESENTING','subscribe','entries','2100819MXRAZv','_liveShareService','FOLLOWING','_presenter','xlink:href','version','fill','complete','_startFollowing','_entities','_status$','send','Start\x20following','_commandDisposable','getMemberID','_mountLiveShare','disposeWithMe','stopPresenting','pipe','name','type','text','live-share-icon','_stopPresenting','div','_status','_fetchOperations','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','tryStartPresenting','_config','OFFLINE','operations','dispose$','univer-mb-3\x20univer-w-full\x20univer-text-sm','offline','stringify','trim','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','currentColor','reverse','toString','0\x200\x2017\x2017','setConfig','from','getStatus','memberID','svg','init','override','next','_handleNewHost','LIVESHARE_TERMINATE','Start','_configService','registerComponent','Stop\x20presenting','getOwnPropertyDescriptor','LiveShareIcon','presenting','getValue','4143545ZmUfOh','defineProperty','createInstance','You\x27re\x20following\x20the\x20presenter','sheet','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','NOT_FOLLOWING','set','params','values','Stop\x20following','_uiPartsService','then','event$','evenodd','LIVESHARE_REQUEST_HOST','_injector','_unitID','not-following','LIVESHARE_NEW_HOST','http://www.w3.org/2000/svg','_startPresenting','assign','_reporters','_handleTerminate','data','_handleNewChangeSets','mutations','string','executeCommand','1em','stopFollowing','_commandService','getLiveShareCoordinator','6VCxeAB','status$','length','UNIVER_UNKNOWN','dispose','tag'];_0x36f5=function(){return _0x26942f;};return _0x36f5();}function Fe(){const _0x56f987=_0x5820cf;return _0x4df6fe(_0x5b584b,{'children':_0x56f987(0x200)});}var He=Object['getOwnPropertyDescriptor'],ye=(_0x2c9a65,_0x4288b6,_0x20ccc4,_0x3ce715)=>{for(var _0x38c5b6=_0x3ce715>0x1?void 0x0:_0x3ce715?He(_0x4288b6,_0x20ccc4):_0x4288b6,_0x39ffd0=_0x2c9a65['length']-0x1,_0x384a29;_0x39ffd0>=0x0;_0x39ffd0--)(_0x384a29=_0x2c9a65[_0x39ffd0])&&(_0x38c5b6=_0x384a29(_0x38c5b6)||_0x38c5b6);return _0x38c5b6;},T=(_0x78cf7d,_0x588b3c)=>(_0x519b46,_0xee9c4)=>_0x588b3c(_0x519b46,_0xee9c4,_0x78cf7d);let I=class extends _0x2e331c{constructor(_0x324408,_0x4df62b){const _0x488995=_0x5820cf;super(),this[_0x488995(0x274)]=_0x324408,this[_0x488995(0x26f)]=_0x4df62b,this[_0x488995(0x237)]();}[_0x5820cf(0x237)](){const _0x17acdf=_0x5820cf;this[_0x17acdf(0x238)](this['_uiPartsService'][_0x17acdf(0x25e)](_0x505dc0[_0x17acdf(0x214)],()=>_0x2f564f(Re,this[_0x17acdf(0x274)])));}};function _0x309d(_0x572dfb,_0x2b98b0){_0x572dfb=_0x572dfb-0x1d5;const _0x36f556=_0x36f5();let _0x309dfa=_0x36f556[_0x572dfb];return _0x309dfa;}I=ye([T(0x0,_0x4bad93(_0x7b2f8)),T(0x1,_0x282d33)],I);const je=_0x5820cf(0x20d),Ue=_0x5820cf(0x20b),Z={'name':je,'version':Ue},Ve=_0x5820cf(0x1ff),F={};var Me=Object['getOwnPropertyDescriptor'],ke=(_0x2dcd99,_0x3bcd96,_0x287f67,_0x3acd58)=>{const _0x98ea43=_0x5820cf;for(var _0x6d9ece=_0x3acd58>0x1?void 0x0:_0x3acd58?Me(_0x3bcd96,_0x287f67):_0x3bcd96,_0x393ee3=_0x2dcd99[_0x98ea43(0x1e1)]-0x1,_0x6ab9e0;_0x393ee3>=0x0;_0x393ee3--)(_0x6ab9e0=_0x2dcd99[_0x393ee3])&&(_0x6d9ece=_0x6ab9e0(_0x6d9ece)||_0x6d9ece);return _0x6d9ece;},We=(_0xe739b7,_0x58053d)=>(_0x32f796,_0x4a9555)=>_0x58053d(_0x32f796,_0x4a9555,_0xe739b7);let b=class extends _0x2e331c{constructor(_0x173143){const _0x5d0db0=_0x5820cf;super(),this[_0x5d0db0(0x229)]=_0x173143,this['_init']();}[_0x5820cf(0x21f)](){const _0x5e6a4b=_0x5820cf;[_0x2a5d38['id'],_0x28a689['id'],_0x166425['id']][_0x5e6a4b(0x222)](_0x318d89=>{const _0x45d1b0=_0x5e6a4b;this[_0x45d1b0(0x238)](this[_0x45d1b0(0x229)]['registerSharedOperation'](_0x318d89));});}};b=ke([We(0x0,_0x4bad93(R))],b);var Ge=Object[_0x5820cf(0x265)],Ye=Object[_0x5820cf(0x260)],Be=(_0xb926b0,_0x56060b,_0x2b99b1)=>_0x56060b in _0xb926b0?Ge(_0xb926b0,_0x56060b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b99b1}):_0xb926b0[_0x56060b]=_0x2b99b1,Ze=(_0x1f7fd1,_0x31079a,_0x91cf38,_0x1887f1)=>{for(var _0x5aa01d=_0x1887f1>0x1?void 0x0:_0x1887f1?Ye(_0x31079a,_0x91cf38):_0x31079a,_0xfde50e=_0x1f7fd1['length']-0x1,_0x5db8a8;_0xfde50e>=0x0;_0xfde50e--)(_0x5db8a8=_0x1f7fd1[_0xfde50e])&&(_0x5aa01d=_0x5db8a8(_0x5aa01d)||_0x5aa01d);return _0x5aa01d;},H=(_0x2ad4ae,_0x4fa550)=>(_0x3ad184,_0x492a01)=>_0x4fa550(_0x3ad184,_0x492a01,_0x2ad4ae),w=(_0x630d7,_0x448f66,_0x2a8579)=>Be(_0x630d7,typeof _0x448f66!='symbol'?_0x448f66+'':_0x448f66,_0x2a8579);let f=class extends _0x1ffb76{constructor(_0x1b23ae=F,_0x4a2726,_0x11858a){const _0x2500bf=_0x5820cf;super(),this[_0x2500bf(0x245)]=_0x1b23ae,this['_injector']=_0x4a2726,this[_0x2500bf(0x25d)]=_0x11858a;const {..._0x191f49}=_0x815cbc({},F,this[_0x2500bf(0x245)]);this[_0x2500bf(0x25d)][_0x2500bf(0x252)](Ve,_0x191f49);}[_0x5820cf(0x20e)](){const _0xe17f8b=_0x5820cf;_0x1f00c5(this['_injector'],_0x14b8bb([[R],[m],[b],[I]],this[_0xe17f8b(0x245)][_0xe17f8b(0x258)])),_0x4b7b0b(this['_injector'],[[b]]);}['onRendered'](){const _0xe5a11a=_0x5820cf;_0x4b7b0b(this[_0xe5a11a(0x274)],[[I]]);}};w(f,_0x5820cf(0x23c),_0x491e7c[_0x5820cf(0x1e2)]),w(f,'pluginName',_0x5820cf(0x204)),w(f,'packageName',Z[_0x5820cf(0x23b)]),w(f,_0x5820cf(0x22d),Z[_0x5820cf(0x22d)]),f=Ze([_0x333705(_0x5b162f),H(0x1,_0x4bad93(_0x7b2f8)),H(0x2,_0x4d5e12)],f);export{I as DesktopLiveShareController,Re as LiveShare,m as LiveShareController,C as LiveShareCoordinator,R as LiveShareService,c as LiveShareStatus,f as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x5e9a76=_0x40bb;(function(_0x4acd0e,_0x50cef3){const _0x407a14=_0x40bb,_0x40047e=_0x4acd0e();while(!![]){try{const _0x27d1ec=-parseInt(_0x407a14(0x1e0))/0x1+parseInt(_0x407a14(0x1cd))/0x2+parseInt(_0x407a14(0x1cc))/0x3+parseInt(_0x407a14(0x1da))/0x4*(parseInt(_0x407a14(0x1ce))/0x5)+-parseInt(_0x407a14(0x1d9))/0x6+-parseInt(_0x407a14(0x1d5))/0x7+parseInt(_0x407a14(0x1e3))/0x8;if(_0x27d1ec===_0x50cef3)break;else _0x40047e['push'](_0x40047e['shift']());}catch(_0x54b68d){_0x40047e['push'](_0x40047e['shift']());}}}(_0x3fd7,0x45716));var l=Object['defineProperty'],w=(_0x462f7b,_0x41fe11,_0x55dce8)=>_0x41fe11 in _0x462f7b?l(_0x462f7b,_0x41fe11,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55dce8}):_0x462f7b[_0x41fe11]=_0x55dce8,v=(_0x1a6c30,_0x3461e0,_0x495e7e)=>w(_0x1a6c30,typeof _0x3461e0!=_0x5e9a76(0x1cb)?_0x3461e0+'':_0x3461e0,_0x495e7e);import{LiveShareController as _0x1dbf9d,LiveShareStatus as _0x4380dc}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x51564f,UniverInstanceType as _0x183327}from'@univerjs/core';import{FUniver as _0x479d17,FEnum as _0x33e008}from'@univerjs/core/facade';class g extends _0x479d17{constructor(){const _0x43b238=_0x5e9a76;super(...arguments),v(this,_0x43b238(0x1d2));}[_0x5e9a76(0x1d6)](_0x389d08){const _0x12a6e2=_0x5e9a76;this[_0x12a6e2(0x1d2)]=_0x389d08[_0x12a6e2(0x1de)](_0x1dbf9d);}[_0x5e9a76(0x1dc)](){const _0x2f4793=_0x5e9a76;var _0x44bcee;const _0x149dd5=this[_0x2f4793(0x1df)][_0x2f4793(0x1de)](_0x51564f)[_0x2f4793(0x1e1)](_0x183327[_0x2f4793(0x1cf)]);if(!_0x149dd5)throw new Error(_0x2f4793(0x1dd));const _0x8e99d6=_0x149dd5[_0x2f4793(0x1d3)](),_0xc79d3d=this[_0x2f4793(0x1d2)][_0x2f4793(0x1e4)](_0x8e99d6);return(_0x44bcee=_0xc79d3d==null?void 0x0:_0xc79d3d['getStatus']())!=null?_0x44bcee:_0x4380dc[_0x2f4793(0x1d8)];}[_0x5e9a76(0x1e6)](){const _0xc5e20f=_0x5e9a76,_0x3c4d7c=this[_0xc5e20f(0x1df)][_0xc5e20f(0x1de)](_0x51564f)['getCurrentUnitOfType'](_0x183327['UNIVER_SHEET']);if(!_0x3c4d7c)throw new Error(_0xc5e20f(0x1dd));const _0x4396f6=_0x3c4d7c[_0xc5e20f(0x1d3)](),_0x4e667b=this[_0xc5e20f(0x1d2)][_0xc5e20f(0x1e4)](_0x4396f6);if(!_0x4e667b)throw new Error(_0xc5e20f(0x1d7));_0x4e667b[_0xc5e20f(0x1e6)]();}['stopFollowing'](){const _0x2d21f6=_0x5e9a76,_0x3c5f32=this['_injector'][_0x2d21f6(0x1de)](_0x51564f)[_0x2d21f6(0x1e1)](_0x183327[_0x2d21f6(0x1cf)]);if(!_0x3c5f32)throw new Error('No\x20active\x20workbook\x20found.');const _0x435019=_0x3c5f32['getUnitId'](),_0x57af1a=this['_liveShareController'][_0x2d21f6(0x1e4)](_0x435019);if(!_0x57af1a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x57af1a[_0x2d21f6(0x1d4)]();}[_0x5e9a76(0x1e2)](){const _0x50259c=_0x5e9a76,_0x3902bf=this[_0x50259c(0x1df)][_0x50259c(0x1de)](_0x51564f)[_0x50259c(0x1e1)](_0x183327[_0x50259c(0x1cf)]);if(!_0x3902bf)throw new Error('No\x20active\x20workbook\x20found.');const _0x2025bd=_0x3902bf[_0x50259c(0x1d3)](),_0x257cdd=this[_0x50259c(0x1d2)]['getLiveShareCoordinatorSync'](_0x2025bd);if(!_0x257cdd)throw new Error(_0x50259c(0x1d7));_0x257cdd[_0x50259c(0x1db)]();}[_0x5e9a76(0x1e5)](){const _0x1cb10d=_0x5e9a76,_0x4f7b23=this['_injector']['get'](_0x51564f)[_0x1cb10d(0x1e1)](_0x183327[_0x1cb10d(0x1cf)]);if(!_0x4f7b23)throw new Error(_0x1cb10d(0x1dd));const _0x5e98cc=_0x4f7b23[_0x1cb10d(0x1d3)](),_0x42547c=this[_0x1cb10d(0x1d2)][_0x1cb10d(0x1e4)](_0x5e98cc);if(!_0x42547c)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x42547c[_0x1cb10d(0x1e5)]();}}function _0x40bb(_0x15b909,_0x6fb504){_0x15b909=_0x15b909-0x1cb;const _0x3fd737=_0x3fd7();let _0x40bbe8=_0x3fd737[_0x15b909];return _0x40bbe8;}function _0x3fd7(){const _0x594eff=['150750TNnpEX','19764HblXsh','tryStartPresenting','getLiveShareStatus','No\x20active\x20workbook\x20found.','get','_injector','415568jPVBpT','getCurrentUnitOfType','startPresenting','3812456vGwnTV','getLiveShareCoordinatorSync','stopPresenting','startFollowing','symbol','571164tZQaMC','99950fVJnUV','245MzDmgX','UNIVER_SHEET','LiveShareStatusEnum','extend','_liveShareController','getUnitId','stopFollowing','1637286AByRKd','_initialize','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','IDLE'];_0x3fd7=function(){return _0x594eff;};return _0x3fd7();}_0x479d17[_0x5e9a76(0x1d1)](g);class f extends _0x33e008{get[_0x5e9a76(0x1d0)](){return _0x4380dc;}}_0x33e008[_0x5e9a76(0x1d1)](f);
1
+ const _0x523532=_0x1dd6;(function(_0x51e5a6,_0x3030aa){const _0x34328b=_0x1dd6,_0xc94aa3=_0x51e5a6();while(!![]){try{const _0x398270=parseInt(_0x34328b(0x1a4))/0x1+parseInt(_0x34328b(0x1a2))/0x2*(parseInt(_0x34328b(0x1a1))/0x3)+-parseInt(_0x34328b(0x19c))/0x4+parseInt(_0x34328b(0x195))/0x5+-parseInt(_0x34328b(0x1a3))/0x6+-parseInt(_0x34328b(0x18f))/0x7+-parseInt(_0x34328b(0x192))/0x8;if(_0x398270===_0x3030aa)break;else _0xc94aa3['push'](_0xc94aa3['shift']());}catch(_0x554337){_0xc94aa3['push'](_0xc94aa3['shift']());}}}(_0x51bc,0x9b8c2));var l=Object[_0x523532(0x19a)],w=(_0x48411b,_0x33e7b3,_0x74a1cd)=>_0x33e7b3 in _0x48411b?l(_0x48411b,_0x33e7b3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x74a1cd}):_0x48411b[_0x33e7b3]=_0x74a1cd,v=(_0x233b03,_0x11a1d7,_0x39b760)=>w(_0x233b03,typeof _0x11a1d7!='symbol'?_0x11a1d7+'':_0x11a1d7,_0x39b760);import{LiveShareController as _0x53f9da,LiveShareStatus as _0xe6e54d}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x4c9414,UniverInstanceType as _0x5d1dae}from'@univerjs/core';import{FUniver as _0x2af63b,FEnum as _0x24e39f}from'@univerjs/core/facade';class g extends _0x2af63b{constructor(){const _0x4fb08a=_0x523532;super(...arguments),v(this,_0x4fb08a(0x19f));}[_0x523532(0x19b)](_0x3ac212){const _0x2f869c=_0x523532;this['_liveShareController']=_0x3ac212[_0x2f869c(0x197)](_0x53f9da);}[_0x523532(0x18e)](){const _0x4facd4=_0x523532;var _0x2dab09;const _0x7b2470=this[_0x4facd4(0x1a0)][_0x4facd4(0x197)](_0x4c9414)[_0x4facd4(0x194)](_0x5d1dae[_0x4facd4(0x1a5)]);if(!_0x7b2470)throw new Error(_0x4facd4(0x190));const _0x32515b=_0x7b2470[_0x4facd4(0x18d)](),_0x342c66=this['_liveShareController'][_0x4facd4(0x1a6)](_0x32515b);return(_0x2dab09=_0x342c66==null?void 0x0:_0x342c66['getStatus']())!=null?_0x2dab09:_0xe6e54d[_0x4facd4(0x196)];}['startFollowing'](){const _0x13b79f=_0x523532,_0x225a19=this[_0x13b79f(0x1a0)][_0x13b79f(0x197)](_0x4c9414)[_0x13b79f(0x194)](_0x5d1dae['UNIVER_SHEET']);if(!_0x225a19)throw new Error(_0x13b79f(0x190));const _0x42399a=_0x225a19[_0x13b79f(0x18d)](),_0xe3a94e=this[_0x13b79f(0x19f)][_0x13b79f(0x1a6)](_0x42399a);if(!_0xe3a94e)throw new Error(_0x13b79f(0x193));_0xe3a94e['startFollowing']();}['stopFollowing'](){const _0x1a9b12=_0x523532,_0x5b7918=this[_0x1a9b12(0x1a0)][_0x1a9b12(0x197)](_0x4c9414)[_0x1a9b12(0x194)](_0x5d1dae[_0x1a9b12(0x1a5)]);if(!_0x5b7918)throw new Error('No\x20active\x20workbook\x20found.');const _0x215375=_0x5b7918[_0x1a9b12(0x18d)](),_0x459e67=this[_0x1a9b12(0x19f)][_0x1a9b12(0x1a6)](_0x215375);if(!_0x459e67)throw new Error(_0x1a9b12(0x193));_0x459e67[_0x1a9b12(0x199)]();}[_0x523532(0x191)](){const _0x157615=_0x523532,_0x4fc77e=this['_injector'][_0x157615(0x197)](_0x4c9414)['getCurrentUnitOfType'](_0x5d1dae[_0x157615(0x1a5)]);if(!_0x4fc77e)throw new Error(_0x157615(0x190));const _0x1fa3b6=_0x4fc77e[_0x157615(0x18d)](),_0xddb3a3=this['_liveShareController'][_0x157615(0x1a6)](_0x1fa3b6);if(!_0xddb3a3)throw new Error(_0x157615(0x193));_0xddb3a3[_0x157615(0x19e)]();}['stopPresenting'](){const _0x40b99d=_0x523532,_0x19e02b=this[_0x40b99d(0x1a0)][_0x40b99d(0x197)](_0x4c9414)[_0x40b99d(0x194)](_0x5d1dae['UNIVER_SHEET']);if(!_0x19e02b)throw new Error(_0x40b99d(0x190));const _0x3993ae=_0x19e02b[_0x40b99d(0x18d)](),_0x2b72cc=this[_0x40b99d(0x19f)]['getLiveShareCoordinatorSync'](_0x3993ae);if(!_0x2b72cc)throw new Error(_0x40b99d(0x193));_0x2b72cc[_0x40b99d(0x198)]();}}function _0x51bc(){const _0x5ae797=['IDLE','get','stopPresenting','stopFollowing','defineProperty','_initialize','2949128aqVAeP','extend','tryStartPresenting','_liveShareController','_injector','3023679oVbcVp','2cqUbxC','1301586qMgSbM','1225147ZGaxgv','UNIVER_SHEET','getLiveShareCoordinatorSync','getUnitId','getLiveShareStatus','7259168yiHurE','No\x20active\x20workbook\x20found.','startPresenting','2263888cYEYfq','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getCurrentUnitOfType','3391525omZFKn'];_0x51bc=function(){return _0x5ae797;};return _0x51bc();}_0x2af63b[_0x523532(0x19d)](g);class f extends _0x24e39f{get['LiveShareStatusEnum'](){return _0xe6e54d;}}function _0x1dd6(_0x5ca2e9,_0xe3f1e0){_0x5ca2e9=_0x5ca2e9-0x18d;const _0x51bcc1=_0x51bc();let _0x1dd6ce=_0x51bcc1[_0x5ca2e9];return _0x1dd6ce;}_0x24e39f['extend'](f);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x29b382=_0x263b;(function(_0x1ce8e6,_0x292858){const _0x2fd5f1=_0x263b,_0x1c6ba2=_0x1ce8e6();while(!![]){try{const _0x398829=parseInt(_0x2fd5f1(0x10b))/0x1+-parseInt(_0x2fd5f1(0xe5))/0x2*(parseInt(_0x2fd5f1(0x137))/0x3)+parseInt(_0x2fd5f1(0x12d))/0x4+parseInt(_0x2fd5f1(0x123))/0x5*(parseInt(_0x2fd5f1(0xd3))/0x6)+-parseInt(_0x2fd5f1(0x14b))/0x7*(parseInt(_0x2fd5f1(0xaf))/0x8)+parseInt(_0x2fd5f1(0xeb))/0x9+-parseInt(_0x2fd5f1(0x12e))/0xa*(parseInt(_0x2fd5f1(0x129))/0xb);if(_0x398829===_0x292858)break;else _0x1c6ba2['push'](_0x1c6ba2['shift']());}catch(_0x59b1d4){_0x1c6ba2['push'](_0x1c6ba2['shift']());}}}(_0x40b0,0x9d948));var J=Object['defineProperty'],K=(_0x4e65f1,_0xe9b685,_0x46b73a)=>_0xe9b685 in _0x4e65f1?J(_0x4e65f1,_0xe9b685,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46b73a}):_0x4e65f1[_0xe9b685]=_0x46b73a,u=(_0xc5cc48,_0x556804,_0xf06fcf)=>K(_0xc5cc48,typeof _0x556804!=_0x29b382(0x13d)?_0x556804+'':_0x556804,_0xf06fcf);import{Disposable as _0x54703,toDisposable as _0x73bcdc,Inject as _0x4473be,Injector as _0x567548,RxDisposable as _0x1fd51a,UniverInstanceType as _0x146358,DisposableCollection as _0x1960ad,CommandType as _0x4d19c4,IUniverInstanceService as _0x4c2f77,IConfigService as _0x28d418,ICommandService as _0x344f5e,DependentOn as _0x18815f,Plugin as _0x51513e,merge as _0x3675e2,registerDependencies as _0x563134,mergeOverrideWithDependencies as _0x2e4cdf,touchDependencies as _0x5d1821}from'@univerjs/core';import{useDependency as _0x3a5ae3,useObservable as _0x5d50ae,BuiltInUIPart as _0x5162da,connectInjector as _0x28a5b4,IUIPartsService as _0x689301}from'@univerjs/ui';import{jsx as _0x380609,jsxs as _0x290402,Fragment as _0x382570}from'react/jsx-runtime';import{Dropdown as _0x4d6704,clsx as _0x9d875,Button as _0xfebf7c}from'@univerjs/design';import{useRef as _0x3cec89,createElement as _0x39a169,forwardRef as _0x2c0538,useState as _0x885ddc,useEffect as _0x1d338e}from'react';import{CollaborationEvent as _0x42ea0b,parseProtocolChangeset as _0x5c427d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1989c5,SessionStatus as _0x32c3ff,UniverCollaborationClientPlugin as _0x43b951}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1e8650,SetWorksheetActiveOperation as _0x173dc8}from'@univerjs/sheets';import{BehaviorSubject as _0x588d75,Subject as _0x159389}from'rxjs';import{takeUntil as _0x41ca2b,throttleTime as _0xf172dd}from'rxjs/operators';import{SetZoomRatioOperation as _0x410861,SetScrollOperation as _0x46540b}from'@univerjs/sheets-ui';function k({ref:_0x39ecd6,..._0x18f897}){const _0x469718=_0x29b382,{icon:_0x578422,id:_0x3c8fd3,className:_0x12c834,extend:_0x589e45,..._0x32067d}=_0x18f897,_0x2b007e=(_0x469718(0xf9)+_0x3c8fd3+'\x20'+(_0x12c834||''))['trim'](),_0x160c12=_0x3cec89('_'+Oe());return G(_0x578422,''+_0x3c8fd3,{'defIds':_0x578422['defIds'],'idSuffix':_0x160c12[_0x469718(0x14c)]},{'ref':_0x39ecd6,'className':_0x2b007e,..._0x32067d},_0x589e45);}function G(_0x2c72d9,_0xd9c0a6,_0x52bc0f,_0x2f5f1f,_0x24ee5f){const _0x4c6621=_0x29b382;return _0x39a169(_0x2c72d9[_0x4c6621(0x135)],{'key':_0xd9c0a6,...be(_0x2c72d9,_0x52bc0f,_0x24ee5f),..._0x2f5f1f},(Ee(_0x2c72d9,_0x52bc0f)[_0x4c6621(0xfd)]||[])[_0x4c6621(0x141)]((_0x2679f2,_0x240771)=>G(_0x2679f2,_0xd9c0a6+'-'+_0x2c72d9[_0x4c6621(0x135)]+'-'+_0x240771,_0x52bc0f,void 0x0,_0x24ee5f)));}function be(_0x1d96a6,_0xf7f7dc,_0x2ae165){const _0x24cb72=_0x29b382,_0x28c261={..._0x1d96a6[_0x24cb72(0xdd)]};_0x2ae165!=null&&_0x2ae165[_0x24cb72(0xdf)]&&_0x28c261[_0x24cb72(0x119)]==='colorChannel1'&&(_0x28c261['fill']=_0x2ae165[_0x24cb72(0xdf)]),_0x1d96a6[_0x24cb72(0x135)]===_0x24cb72(0x11e)&&_0x28c261['id']&&(_0x28c261['id']=_0x28c261['id']+_0xf7f7dc[_0x24cb72(0xcb)]),Object[_0x24cb72(0x109)](_0x28c261)[_0x24cb72(0xc8)](([_0x51324d,_0x46e47c])=>{const _0x1a4117=_0x24cb72;_0x51324d==='mask'&&typeof _0x46e47c==_0x1a4117(0xda)&&(_0x28c261[_0x51324d]=_0x46e47c[_0x1a4117(0x147)](/url\(#(.*)\)/,'url(#$1'+_0xf7f7dc[_0x1a4117(0xcb)]+')'));});const {defIds:_0x1dc3a7}=_0xf7f7dc;return!_0x1dc3a7||_0x1dc3a7[_0x24cb72(0x140)]===0x0||(_0x1d96a6[_0x24cb72(0x135)]===_0x24cb72(0x149)&&_0x28c261[_0x24cb72(0x112)]&&(_0x28c261[_0x24cb72(0x112)]=_0x28c261[_0x24cb72(0x112)]+_0xf7f7dc[_0x24cb72(0xcb)]),Object['entries'](_0x28c261)[_0x24cb72(0xc8)](([_0x306597,_0x11d680])=>{const _0x50a44b=_0x24cb72;typeof _0x11d680==_0x50a44b(0xda)&&(_0x28c261[_0x306597]=_0x11d680[_0x50a44b(0x147)](/url\(#(.*)\)/,_0x50a44b(0xd5)+_0xf7f7dc[_0x50a44b(0xcb)]+')'));})),_0x28c261;}function Ee(_0x3bce5b,_0x5be26b){const _0x134cbc=_0x29b382;var _0x421156;const {defIds:_0x248bdd}=_0x5be26b;return!_0x248bdd||_0x248bdd['length']===0x0?_0x3bce5b:_0x3bce5b[_0x134cbc(0x135)]===_0x134cbc(0x148)&&((_0x421156=_0x3bce5b[_0x134cbc(0xfd)])!=null&&_0x421156[_0x134cbc(0x140)])?{..._0x3bce5b,'children':_0x3bce5b[_0x134cbc(0xfd)][_0x134cbc(0x141)](_0x1ed1b5=>typeof _0x1ed1b5[_0x134cbc(0xdd)]['id']==_0x134cbc(0xda)&&_0x248bdd&&_0x248bdd['includes'](_0x1ed1b5[_0x134cbc(0xdd)]['id'])?{..._0x1ed1b5,'attrs':{..._0x1ed1b5['attrs'],'id':_0x1ed1b5[_0x134cbc(0xdd)]['id']+_0x5be26b['idSuffix']}}:_0x1ed1b5)}:_0x3bce5b;}function Oe(){const _0x5902a2=_0x29b382;return Math[_0x5902a2(0xd1)]()[_0x5902a2(0xd6)](0x24)[_0x5902a2(0xb9)](0x2,0x8);}k[_0x29b382(0xe7)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x29b382(0xc4),'fill':_0x29b382(0xf1),'viewBox':_0x29b382(0x13b),'width':_0x29b382(0xde),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x29b382(0xd0),'d':_0x29b382(0xf0)}},{'tag':_0x29b382(0xce),'attrs':{'fill':_0x29b382(0xd0),'d':_0x29b382(0x10f),'fillRule':_0x29b382(0x12c),'clipRule':_0x29b382(0x12c)}}]},W=_0x2c0538(function(_0x4d6226,_0x503cfc){const _0x3074c8=_0x29b382;return _0x39a169(k,Object[_0x3074c8(0x127)]({},_0x4d6226,{'id':_0x3074c8(0x146),'ref':_0x503cfc,'icon':we}));});W[_0x29b382(0xe7)]=_0x29b382(0xe8);class L extends _0x54703{constructor(){const _0x2e8c52=_0x29b382;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x2e8c52(0x126),new Set());}['registerSharedOperation'](_0xc73c3b){const _0x88d94b=_0x29b382;return this[_0x88d94b(0xe4)][_0x88d94b(0xcd)](_0xc73c3b),_0x73bcdc(()=>this[_0x88d94b(0xe4)][_0x88d94b(0xa6)](_0xc73c3b));}[_0x29b382(0x100)](_0x51074d){const _0x339e68=_0x29b382;return this['_reporters'][_0x339e68(0xcd)](_0x51074d),_0x73bcdc(()=>this[_0x339e68(0x126)][_0x339e68(0xa6)](_0x51074d));}[_0x29b382(0x115)](_0x1b0409){const _0x1eb0a4=_0x29b382;return this[_0x1eb0a4(0xe4)]['has'](_0x1b0409);}[_0x29b382(0x108)](_0x54f214){return Array['from'](this['_reporters'])['map'](_0x3797c2=>_0x3797c2(_0x54f214));}}function _0x263b(_0x217ea8,_0x93f07e){_0x217ea8=_0x217ea8-0xa6;const _0x40b001=_0x40b0();let _0x263b9e=_0x40b001[_0x217ea8];return _0x263b9e;}var Ne=Object[_0x29b382(0x105)],Y=(_0x3bdf39,_0x2ce51a,_0x48feb3,_0x477b32)=>{const _0x2bcb83=_0x29b382;for(var _0x5d320b=_0x477b32>0x1?void 0x0:_0x477b32?Ne(_0x2ce51a,_0x48feb3):_0x2ce51a,_0x4da31e=_0x3bdf39[_0x2bcb83(0x140)]-0x1,_0x3a31f4;_0x4da31e>=0x0;_0x4da31e--)(_0x3a31f4=_0x3bdf39[_0x4da31e])&&(_0x5d320b=_0x3a31f4(_0x5d320b)||_0x5d320b);return _0x5d320b;},_=(_0x41aa5c,_0x3e390b)=>(_0x175c9f,_0x4fc452)=>_0x3e390b(_0x175c9f,_0x4fc452,_0x41aa5c);let S=class extends _0x1fd51a{constructor(_0x24c49b,_0x1a4f58,_0x4b8a47){const _0x1b78b1=_0x29b382;super(),u(this,_0x1b78b1(0xe3),new Map()),(this[_0x1b78b1(0x13e)]=_0x24c49b,this[_0x1b78b1(0xcf)]=_0x1a4f58,this[_0x1b78b1(0x12f)]=_0x4b8a47,this[_0x1b78b1(0xc2)]());}async[_0x29b382(0x14a)](_0x37dabe){const _0x5888c0=_0x29b382;return this[_0x5888c0(0xe3)][_0x5888c0(0x132)](_0x37dabe)||await this['_startLiveShareCoordinator'](_0x37dabe),this[_0x5888c0(0xe3)]['get'](_0x37dabe);}[_0x29b382(0xcc)](_0x48086c){const _0x8aca06=_0x29b382;var _0x5af918;return(_0x5af918=this[_0x8aca06(0xe3)][_0x8aca06(0xb1)](_0x48086c))!=null?_0x5af918:null;}[_0x29b382(0xc2)](){const _0x36e23=_0x29b382;this[_0x36e23(0x13e)][_0x36e23(0x113)](_0x146358['UNIVER_SHEET'])[_0x36e23(0x12a)](_0x41ca2b(this[_0x36e23(0xf3)]))['subscribe'](async _0x55c54f=>{const _0x45146a=_0x36e23,_0x578a58=_0x55c54f['getUnitId']();this[_0x45146a(0xe3)][_0x45146a(0x132)](_0x578a58)||this[_0x45146a(0xae)](_0x578a58);}),this['_univerInstanceService'][_0x36e23(0xab)](_0x146358['UNIVER_SHEET'])[_0x36e23(0x12a)](_0x41ca2b(this['dispose$']))['subscribe'](_0x4a5626=>{const _0x234bbc=_0x36e23,_0x55f85a=_0x4a5626[_0x234bbc(0x120)](),_0x254b3d=this[_0x234bbc(0xe3)]['get'](_0x55f85a);_0x254b3d==null||_0x254b3d['dispose']();});}async[_0x29b382(0xae)](_0x443bf3){const _0x599137=_0x29b382,_0x3a7e49=await this['_collabSessionService'][_0x599137(0xf4)](_0x443bf3),_0x40dd42=this['_injector'][_0x599137(0x125)](N,_0x443bf3,_0x3a7e49);return _0x40dd42['init'](),this[_0x599137(0xe3)][_0x599137(0x102)](_0x443bf3,_0x40dd42),_0x40dd42;}};S=Y([_(0x0,_0x4c2f77),_(0x1,_0x4473be(_0x567548)),_(0x2,_0x4473be(_0x1989c5))],S);var c=(_0x20b90f=>(_0x20b90f[_0x29b382(0xf2)]='offline',_0x20b90f[_0x29b382(0x11b)]=_0x29b382(0x14f),_0x20b90f[_0x29b382(0xea)]=_0x29b382(0xb5),_0x20b90f[_0x29b382(0xf6)]='not-following',_0x20b90f[_0x29b382(0xf7)]='presenting',_0x20b90f))(c||{});const Ce=_0x29b382(0x11a),De=0xc8;let N=class extends _0x1fd51a{constructor(_0x597052,_0x373bc7,_0x39b7c3,_0xe6295,_0x48b918){const _0x44884a=_0x29b382;super(),u(this,_0x44884a(0xee),new _0x588d75(_0x44884a(0x14f))),u(this,'status$',this[_0x44884a(0xee)][_0x44884a(0xca)]()),u(this,_0x44884a(0xc2),!0x1),u(this,_0x44884a(0x122),null),u(this,_0x44884a(0x13a),null),(this['_unitID']=_0x597052,this[_0x44884a(0xf8)]=_0x373bc7,this['_configService']=_0x39b7c3,this['_liveShareService']=_0xe6295,this[_0x44884a(0xad)]=_0x48b918);}get['_status'](){const _0x2c695b=_0x29b382;return this[_0x2c695b(0xee)][_0x2c695b(0x116)]();}[_0x29b382(0x131)](){const _0x33243c=_0x29b382;var _0x2fd904;(_0x2fd904=this['_commandDisposable'])==null||_0x2fd904[_0x33243c(0x131)](),this[_0x33243c(0xee)][_0x33243c(0xa8)](_0x33243c(0x14f)),this[_0x33243c(0xee)][_0x33243c(0x14e)]();}[_0x29b382(0xba)](){return this['_status'];}[_0x29b382(0x101)](){const _0x12e442=_0x29b382;this[_0x12e442(0xc2)]||(this[_0x12e442(0xc2)]=!0x0,this[_0x12e442(0xf8)]['sessionStatus$'][_0x12e442(0x12a)](_0x41ca2b(this['dispose$']))[_0x12e442(0xe0)](_0x575b93=>{const _0x47c24f=_0x12e442;switch(_0x575b93){case _0x32c3ff[_0x47c24f(0xf2)]:this['_handleOffline']();break;case _0x32c3ff[_0x47c24f(0xe2)]:this[_0x47c24f(0x121)]();break;}}),this[_0x12e442(0xf8)][_0x12e442(0x136)][_0x12e442(0x12a)](_0x41ca2b(this['dispose$']))['subscribe'](_0x47bf58=>{const _0x24933a=_0x12e442,{eventID:_0xe5d565}=_0x47bf58;switch(_0xe5d565){case _0x42ea0b[_0x24933a(0x107)]:this[_0x24933a(0x10d)](_0x47bf58);break;case _0x42ea0b['LIVESHARE_OPERATION']:this[_0x24933a(0xe6)](_0x47bf58);break;case _0x42ea0b[_0x24933a(0xbb)]:this['_handleTerminate']();break;case _0x42ea0b[_0x24933a(0xc6)]:this['_handleNewChangeSets'](_0x47bf58);break;}}));}[_0x29b382(0x150)](){const _0x586645=_0x29b382;this['_collabSession'][_0x586645(0xb4)]({'eventID':_0x42ea0b['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x586645(0xe9)]()}},this[_0x586645(0xd2)]);}['stopPresenting'](){const _0x19950f=_0x29b382;this[_0x19950f(0xfc)]==='presenting'&&(this[_0x19950f(0xee)][_0x19950f(0xa8)]('idle'),this['_collabSession']['send']({'eventID':_0x42ea0b[_0x19950f(0xbb)],'data':{'unitID':this[_0x19950f(0xd2)]}},this[_0x19950f(0xd2)]));}[_0x29b382(0xdb)](){const _0x1fd060=_0x29b382;this[_0x1fd060(0xfc)]==='not-following'&&(this[_0x1fd060(0xee)][_0x1fd060(0xa8)]('following'),this['_startFollowing']());}[_0x29b382(0x10a)](){const _0x1c5abb=_0x29b382;this[_0x1c5abb(0xfc)]===_0x1c5abb(0xb5)&&this[_0x1c5abb(0x11c)]();}['_handleNewHost'](_0x383a11){const _0x153dae=_0x29b382,{presenter:_0x2d195c}=_0x383a11['data'],_0x197ebf=this[_0x153dae(0xf8)][_0x153dae(0xe9)]();this['_presenter']=_0x2d195c,_0x2d195c===_0x197ebf?(this[_0x153dae(0x11c)](),this[_0x153dae(0x10c)]()):this[_0x153dae(0xfc)]!==_0x153dae(0xac)&&(this[_0x153dae(0xd4)](),this[_0x153dae(0x133)]());}[_0x29b382(0xb6)](){const _0x34568b=_0x29b382,_0x1fe1f5={'eventID':_0x42ea0b[_0x34568b(0x139)]};this['_collabSession'][_0x34568b(0xb4)](_0x1fe1f5,this[_0x34568b(0xd2)]);}[_0x29b382(0xc9)](){const _0x387883=_0x29b382;this[_0x387883(0x13a)]=null,this['_status']!==_0x387883(0x144)&&this[_0x387883(0x11f)]();}[_0x29b382(0x134)](_0x37dcd6){const _0x1cb319=_0x29b382;if(this['_status']===_0x1cb319(0xb5)&&this['_presenter']===_0x37dcd6['data']['memberID']){const _0x3ee52c=_0x5c427d(_0x37dcd6[_0x1cb319(0xb2)])[_0x1cb319(0xaa)][_0x1cb319(0xd9)]()[_0x1cb319(0x104)](_0x57a900=>_0x57a900['id']===_0x1e8650['id']);if(_0x3ee52c){const _0x10f065=_0x3ee52c['params'][_0x1cb319(0x114)],_0x11d92d=_0x3ee52c[_0x1cb319(0xbc)][_0x1cb319(0xfa)]['id'];setTimeout(()=>{const _0x3bdfb5=_0x1cb319;this[_0x3bdfb5(0xad)]['executeCommand'](_0x173dc8['id'],{'unitId':_0x10f065,'subUnitId':_0x11d92d},{'fromCollab':!0x0});});}}}[_0x29b382(0x10c)](){const _0x5039cb=_0x29b382;this[_0x5039cb(0xee)][_0x5039cb(0xa8)](_0x5039cb(0x144));const _0x5e59a9=new Map(),_0x1404c1=this[_0x5039cb(0x122)]=new _0x1960ad();_0x1404c1[_0x5039cb(0xcd)](_0x73bcdc(()=>{const _0x1c0de9=_0x5039cb;_0x5e59a9[_0x1c0de9(0xc8)](_0x282a9d=>_0x282a9d[_0x1c0de9(0x14e)]()),_0x5e59a9['clear']();})),_0x1404c1['add'](this[_0x5039cb(0xad)][_0x5039cb(0xbf)](_0x51fa24=>{const _0x484a=_0x5039cb;var _0x36b3e8;if(_0x51fa24[_0x484a(0x124)]!==_0x4d19c4[_0x484a(0xc3)]||!this['_liveShareService'][_0x484a(0x115)](_0x51fa24['id']))return;const {id:_0x4666fd}=_0x51fa24;let _0x3a22c9;_0x5e59a9[_0x484a(0x132)](_0x4666fd)?_0x3a22c9=_0x5e59a9[_0x484a(0xb1)](_0x4666fd):(_0x3a22c9=new _0x159389(),_0x5e59a9[_0x484a(0x102)](_0x4666fd,_0x3a22c9),_0x3a22c9[_0x484a(0x12a)](_0xf172dd((_0x36b3e8=this[_0x484a(0x145)][_0x484a(0x13f)](Ce))!=null?_0x36b3e8:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x484a(0xe0)](_0x369ed4=>{const _0x378d1b=_0x484a;this[_0x378d1b(0xf8)][_0x378d1b(0xb4)]({'eventID':_0x42ea0b[_0x378d1b(0x13c)],'data':{'unitID':this[_0x378d1b(0xd2)],'operations':{[_0x369ed4['id']]:{'id':_0x369ed4['id'],'params':JSON['stringify'](_0x369ed4[_0x378d1b(0xbc)])}}}},this[_0x378d1b(0xd2)]);})),_0x3a22c9['next'](_0x51fa24);})),this[_0x5039cb(0xc5)]['getInitialStates'](this[_0x5039cb(0xd2)])[_0x5039cb(0xc8)](_0x184e0d=>this[_0x5039cb(0xf8)][_0x5039cb(0xb4)]({'eventID':_0x42ea0b['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5039cb(0xd2)],'operations':{[_0x184e0d['id']]:{'id':_0x184e0d['id'],'params':JSON[_0x5039cb(0xc0)](_0x184e0d[_0x5039cb(0xbc)])}}}},this[_0x5039cb(0xd2)]));}[_0x29b382(0xd4)](){const _0x4804e5=_0x29b382;var _0x37b52d;this[_0x4804e5(0xee)][_0x4804e5(0xa8)](_0x4804e5(0x14f)),(_0x37b52d=this[_0x4804e5(0x122)])==null||_0x37b52d['dispose'](),this[_0x4804e5(0x122)]=null;}[_0x29b382(0x133)](){const _0x1019a0=_0x29b382;var _0xae0f05;(_0xae0f05=this[_0x1019a0(0x122)])==null||_0xae0f05[_0x1019a0(0x131)](),this['_status$'][_0x1019a0(0xa8)](_0x1019a0(0xb5));}[_0x29b382(0x11f)](){const _0x59bcc0=_0x29b382;var _0x59b04c;this[_0x59bcc0(0xee)][_0x59bcc0(0xa8)](_0x59bcc0(0x14f)),(_0x59b04c=this[_0x59bcc0(0x122)])==null||_0x59b04c[_0x59bcc0(0x131)](),this[_0x59bcc0(0x122)]=null;}[_0x29b382(0x11c)](){const _0x1fdcb4=_0x29b382;var _0x30c30a;this[_0x1fdcb4(0xee)][_0x1fdcb4(0xa8)](_0x1fdcb4(0xac)),(_0x30c30a=this[_0x1fdcb4(0x122)])==null||_0x30c30a['dispose']();}[_0x29b382(0xe6)](_0x1208b5){const _0x2d05b0=_0x29b382;if([_0x2d05b0(0x144),_0x2d05b0(0xac),'offline'][_0x2d05b0(0xdc)](this['_status'])||!_0x1208b5[_0x2d05b0(0xb2)][_0x2d05b0(0xb0)]||_0x1208b5[_0x2d05b0(0xb2)][_0x2d05b0(0xb0)]===this[_0x2d05b0(0xf8)][_0x2d05b0(0xe9)]())return;this[_0x2d05b0(0xfc)]===_0x2d05b0(0x14f)&&this[_0x2d05b0(0x133)]();const _0x41070c=_0x1208b5[_0x2d05b0(0xb2)][_0x2d05b0(0xc7)];Object['values'](_0x41070c)[_0x2d05b0(0xc8)](_0x37aa98=>{const _0x2f45c1=_0x2d05b0;this[_0x2f45c1(0xad)]['executeCommand'](_0x37aa98['id'],_0x37aa98[_0x2f45c1(0xbc)]?JSON['parse'](_0x37aa98[_0x2f45c1(0xbc)]):null,{'fromCollab':!0x0});});}[_0x29b382(0xc1)](){const _0x203d21=_0x29b382;var _0x177381;this['_status$'][_0x203d21(0xa8)](_0x203d21(0xb7)),(_0x177381=this['_commandDisposable'])==null||_0x177381['dispose']();}['_handleOnline'](){const _0x48a199=_0x29b382;this[_0x48a199(0xee)][_0x48a199(0xa8)](_0x48a199(0x14f)),this[_0x48a199(0xb6)]();}};N=Y([_(0x2,_0x28d418),_(0x3,_0x4473be(L)),_(0x4,_0x344f5e)],N);function _0x40b0(){const _0x25c4b1=['next','disposeWithMe','mutations','getTypeOfUnitDisposed$','not-following','_commandService','_startLiveShareCoordinator','47704HrXqZW','presenter','get','data','You\x27re\x20following\x20the\x20presenter','send','following','_fetchOperations','offline','status$','substring','getStatus','LIVESHARE_TERMINATE','params','unsubscribe','text','onCommandExecuted','stringify','_handleOffline','_init','OPERATION','http://www.w3.org/2000/svg','_liveShareService','NEW_CHANGESETS','operations','forEach','_handleTerminate','asObservable','idSuffix','getLiveShareCoordinatorSync','add','path','_injector','currentColor','random','_unitID','90XJRjHP','_stopPresenting','url(#$1','toString','_config','Start','reverse','string','startFollowing','includes','attrs','1em','colorChannel1','subscribe','end','ONLINE','_entities','_sharedOperations','84YrRMJC','_handleOperation','displayName','LiveShareIcon','getMemberID','FOLLOWING','3303450xAwLKe','_uiPartsService','HEADER_MENU','_status$','onStarting','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','none','OFFLINE','dispose$','requireSession','univer-mb-3\x20univer-w-full\x20univer-text-sm','NOT_FOLLOWING','PRESENTING','_collabSession','univerjs-icon\x20univerjs-icon-','sheet','Stop\x20following','_status','children','setConfig','You\x27re\x20presenting\x20the\x20document','registerInitialStateReporter','init','set','getCurrentTypeOfUnit$','find','getOwnPropertyDescriptor','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_NEW_HOST','getInitialStates','entries','stopFollowing','401146zaeKNQ','_startPresenting','_handleNewHost','button','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','Start\x20following','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','xlink:href','getTypeOfUnitAdded$','unitId','shouldShareOperation','getValue','registerSharedOperation','then','fill','SAME_OPERATION_SHARE_INTERVAL','IDLE','_stopFollowing','UNIVER_UNKNOWN','mask','_beIdle','getUnitId','_handleOnline','_commandDisposable','140730wOyQeL','type','createInstance','_reporters','assign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','132DhiMcT','pipe','div','evenodd','1741212oQNgGf','521960SpumcA','_collabSessionService','stopPresenting','dispose','has','_startFollowing','_handleNewChangeSets','tag','event$','24000nwRvKx','_mountLiveShare','LIVESHARE_FETCH_OPERATIONS','_presenter','0\x200\x2017\x2017','LIVESHARE_OPERATION','symbol','_univerInstanceService','getConfig','length','map','You\x27re\x20not\x20following\x20the\x20presenter','univer-size-4','presenting','_configService','live-share-icon','replace','defs','use','getLiveShareCoordinator','21KtMYyZ','current','override','complete','idle','tryStartPresenting','delete','You\x27are\x20offline.'];_0x40b0=function(){return _0x25c4b1;};return _0x40b0();}function Le(){const _0x38b7c3=_0x29b382,_0x58b041=_0x3a5ae3(S),_0x1cc606=_0x3a5ae3(_0x4c2f77),_0x284194=_0x5d50ae(()=>_0x1cc606[_0x38b7c3(0x103)](_0x146358['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xa3212f,_0x3500d6]=_0x885ddc(null),[_0x23d18d,_0x17ae61]=_0x885ddc(c[_0x38b7c3(0x11b)]),_0x4e5c8a=_0x3cec89(null);return _0x1d338e(()=>(_0x284194&&_0x58b041[_0x38b7c3(0x14a)](_0x284194[_0x38b7c3(0x120)]())[_0x38b7c3(0x118)](_0xda110f=>{const _0x77c91b=_0x38b7c3;_0x3500d6(_0xda110f),_0x4e5c8a['current']=_0xda110f[_0x77c91b(0xb8)][_0x77c91b(0xe0)](_0x1064ec=>{_0x17ae61(_0x1064ec);});}),()=>{const _0x393ba9=_0x38b7c3;var _0x4e7f6f;(_0x4e7f6f=_0x4e5c8a[_0x393ba9(0x14c)])==null||_0x4e7f6f[_0x393ba9(0xbd)](),_0x4e5c8a[_0x393ba9(0x14c)]=null;}),[_0x284194,_0x58b041]),_0xa3212f?_0x380609(_0x4d6704,{'align':_0x38b7c3(0xe1),'disabled':_0x23d18d===c[_0x38b7c3(0xf2)],'className':_0x38b7c3(0x111),'overlay':_0x380609(Re,{'status':_0x23d18d,'coordinator':_0xa3212f}),'children':_0x380609(_0x38b7c3(0x10e),{'className':_0x9d875(_0x38b7c3(0x128),{'univer-cursor-not-allowed':_0x23d18d===c[_0x38b7c3(0xf2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x23d18d!==c['OFFLINE']}),'type':'button','children':_0x380609(W,{'className':_0x38b7c3(0x143)})})}):null;}function Re(_0x19e596){const _0x1c4ea4=_0x29b382,{status:_0x2847db,coordinator:_0x1f69de}=_0x19e596;switch(_0x2847db){case c[_0x1c4ea4(0x11b)]:return _0x380609($e,{'coordinator':_0x1f69de});case c[_0x1c4ea4(0xea)]:return _0x380609(xe,{'coordinator':_0x1f69de});case c['NOT_FOLLOWING']:return _0x380609(Pe,{'coordinator':_0x1f69de});case c[_0x1c4ea4(0xf2)]:return _0x380609(Te,{});case c[_0x1c4ea4(0xf7)]:return _0x380609(Ae,{'coordinator':_0x1f69de});default:return null;}}function $e(_0x30f591){const _0x51431e=_0x29b382,{coordinator:_0x4bb996}=_0x30f591;return _0x290402(_0x382570,{'children':[_0x380609(_0x51431e(0x12b),{'className':_0x51431e(0xf5),'children':'Present\x20this\x20document'}),_0x380609(_0xfebf7c,{'onClick':()=>_0x4bb996[_0x51431e(0x150)](),'children':_0x51431e(0xd8)})]});}function xe(_0x116905){const _0x134561=_0x29b382,{coordinator:_0x109b8a}=_0x116905;return _0x290402(_0x382570,{'children':[_0x380609(_0x134561(0x12b),{'className':_0x134561(0xf5),'children':_0x134561(0xb3)}),_0x380609(_0xfebf7c,{'onClick':()=>_0x109b8a[_0x134561(0x10a)](),'children':_0x134561(0xfb)})]});}function Pe(_0xda8120){const _0x1cb289=_0x29b382,{coordinator:_0x5cb90d}=_0xda8120;return _0x290402(_0x382570,{'children':[_0x380609(_0x1cb289(0x12b),{'className':_0x1cb289(0xf5),'children':_0x1cb289(0x142)}),_0x380609(_0xfebf7c,{'variant':_0x1cb289(0xbe),'onClick':()=>_0x5cb90d['startFollowing'](),'children':_0x1cb289(0x110)})]});}function Ae(_0x5510ef){const _0x1d9f02=_0x29b382,{coordinator:_0x427663}=_0x5510ef;return _0x290402(_0x382570,{'children':[_0x380609(_0x1d9f02(0x12b),{'className':_0x1d9f02(0xf5),'children':_0x1d9f02(0xff)}),_0x380609(_0xfebf7c,{'variant':'default','onClick':()=>_0x427663[_0x1d9f02(0x130)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x17d2d3=_0x29b382;return _0x380609(_0x382570,{'children':_0x17d2d3(0xa7)});}var Fe=Object[_0x29b382(0x105)],He=(_0x1df3b9,_0x33e242,_0x2cf850,_0xf89be6)=>{for(var _0x176077=_0xf89be6>0x1?void 0x0:_0xf89be6?Fe(_0x33e242,_0x2cf850):_0x33e242,_0x8399ca=_0x1df3b9['length']-0x1,_0x56ba6f;_0x8399ca>=0x0;_0x8399ca--)(_0x56ba6f=_0x1df3b9[_0x8399ca])&&(_0x176077=_0x56ba6f(_0x176077)||_0x176077);return _0x176077;},A=(_0x3d38e0,_0x11846c)=>(_0xaa142a,_0x394496)=>_0x11846c(_0xaa142a,_0x394496,_0x3d38e0);let m=class extends _0x54703{constructor(_0x3309a3,_0x188fd4){const _0x5bc62b=_0x29b382;super(),this[_0x5bc62b(0xcf)]=_0x3309a3,this[_0x5bc62b(0xec)]=_0x188fd4,this['_mountLiveShare']();}[_0x29b382(0x138)](){const _0x4dfb9c=_0x29b382;this[_0x4dfb9c(0xa9)](this['_uiPartsService']['registerComponent'](_0x5162da[_0x4dfb9c(0xed)],()=>_0x28a5b4(Le,this[_0x4dfb9c(0xcf)])));}};m=He([A(0x0,_0x4473be(_0x567548)),A(0x1,_0x689301)],m);const ye='live-share.config',T={};var Ue=Object[_0x29b382(0x105)],Ve=(_0x18e990,_0x3ec5af,_0xda84cc,_0x35e64e)=>{const _0x2da150=_0x29b382;for(var _0x47c7be=_0x35e64e>0x1?void 0x0:_0x35e64e?Ue(_0x3ec5af,_0xda84cc):_0x3ec5af,_0x5e0618=_0x18e990[_0x2da150(0x140)]-0x1,_0x11f2d4;_0x5e0618>=0x0;_0x5e0618--)(_0x11f2d4=_0x18e990[_0x5e0618])&&(_0x47c7be=_0x11f2d4(_0x47c7be)||_0x47c7be);return _0x47c7be;},je=(_0x20def7,_0x48bd48)=>(_0x5a2439,_0x179e7f)=>_0x48bd48(_0x5a2439,_0x179e7f,_0x20def7);let I=class extends _0x54703{constructor(_0x4cf2cc){const _0x1a3e4c=_0x29b382;super(),this[_0x1a3e4c(0xc5)]=_0x4cf2cc,this[_0x1a3e4c(0xc2)]();}[_0x29b382(0xc2)](){const _0x1088da=_0x29b382;[_0x410861['id'],_0x46540b['id'],_0x173dc8['id']][_0x1088da(0xc8)](_0x6f173a=>{const _0x2f5b0a=_0x1088da;this[_0x2f5b0a(0xa9)](this[_0x2f5b0a(0xc5)][_0x2f5b0a(0x117)](_0x6f173a));});}};I=Ve([je(0x0,_0x4473be(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x5797f2,_0x16506c,_0x46067a)=>_0x16506c in _0x5797f2?Me(_0x5797f2,_0x16506c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46067a}):_0x5797f2[_0x16506c]=_0x46067a,We=(_0x5cef4b,_0x4bba7d,_0x4e6667,_0x2870da)=>{const _0x5153d7=_0x29b382;for(var _0x3fa6ec=_0x2870da>0x1?void 0x0:_0x2870da?ke(_0x4bba7d,_0x4e6667):_0x4bba7d,_0x49f1a2=_0x5cef4b[_0x5153d7(0x140)]-0x1,_0x1953a1;_0x49f1a2>=0x0;_0x49f1a2--)(_0x1953a1=_0x5cef4b[_0x49f1a2])&&(_0x3fa6ec=_0x1953a1(_0x3fa6ec)||_0x3fa6ec);return _0x3fa6ec;},F=(_0xb922c9,_0x300a09)=>(_0x254366,_0xb060b0)=>_0x300a09(_0x254366,_0xb060b0,_0xb922c9),B=(_0x396164,_0x1b0651,_0x56953a)=>Ge(_0x396164,typeof _0x1b0651!='symbol'?_0x1b0651+'':_0x1b0651,_0x56953a);const Ye=_0x29b382(0x106);let b=class extends _0x51513e{constructor(_0x31741f=T,_0x12d955,_0x3724a7){const _0x423e64=_0x29b382;super(),this['_config']=_0x31741f,this[_0x423e64(0xcf)]=_0x12d955,this[_0x423e64(0x145)]=_0x3724a7;const {..._0x1e90a3}=_0x3675e2({},T,this['_config']);this['_configService'][_0x423e64(0xfe)](ye,_0x1e90a3);}[_0x29b382(0xef)](){const _0x20bad6=_0x29b382;_0x563134(this['_injector'],_0x2e4cdf([[L],[S],[I],[m]],this[_0x20bad6(0xd7)][_0x20bad6(0x14d)])),_0x5d1821(this[_0x20bad6(0xcf)],[[I]]);}['onRendered'](){const _0x255054=_0x29b382;_0x5d1821(this[_0x255054(0xcf)],[[m]]);}};B(b,_0x29b382(0x124),_0x146358[_0x29b382(0x11d)]),B(b,'pluginName',Ye),b=We([_0x18815f(_0x43b951),F(0x1,_0x4473be(_0x567548)),F(0x2,_0x28d418)],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 _0x5820cf=_0x309d;(function(_0xd29215,_0x5733eb){const _0x175b07=_0x309d,_0x1156cc=_0xd29215();while(!![]){try{const _0x1861bf=parseInt(_0x175b07(0x217))/0x1+parseInt(_0x175b07(0x21e))/0x2+parseInt(_0x175b07(0x228))/0x3+-parseInt(_0x175b07(0x1e5))/0x4*(-parseInt(_0x175b07(0x211))/0x5)+parseInt(_0x175b07(0x1df))/0x6*(-parseInt(_0x175b07(0x264))/0x7)+-parseInt(_0x175b07(0x1ef))/0x8+-parseInt(_0x175b07(0x221))/0x9;if(_0x1861bf===_0x5733eb)break;else _0x1156cc['push'](_0x1156cc['shift']());}catch(_0x304913){_0x1156cc['push'](_0x1156cc['shift']());}}}(_0x36f5,0x5bc18));var K=Object[_0x5820cf(0x265)],q=(_0x40483d,_0x13a9eb,_0x24dbaa)=>_0x13a9eb in _0x40483d?K(_0x40483d,_0x13a9eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24dbaa}):_0x40483d[_0x13a9eb]=_0x24dbaa,u=(_0x3f7fab,_0x4f2648,_0x15a005)=>q(_0x3f7fab,typeof _0x4f2648!=_0x5820cf(0x1ed)?_0x4f2648+'':_0x4f2648,_0x15a005);import{Disposable as _0x2e331c,toDisposable as _0x69e3dc,Inject as _0x4bad93,Injector as _0x7b2f8,RxDisposable as _0x1a37bd,UniverInstanceType as _0x491e7c,DisposableCollection as _0xf22f9f,CommandType as _0x1c2ebe,IUniverInstanceService as _0x40c6de,IConfigService as _0x4d5e12,ICommandService as _0x4c31ff,DependentOn as _0x333705,Plugin as _0x1ffb76,merge as _0x815cbc,registerDependencies as _0x1f00c5,mergeOverrideWithDependencies as _0x14b8bb,touchDependencies as _0x4b7b0b}from'@univerjs/core';import{useDependency as _0x52aa82,useObservable as _0x5a7db5,BuiltInUIPart as _0x505dc0,connectInjector as _0x2f564f,IUIPartsService as _0x282d33}from'@univerjs/ui';import{jsx as _0x4df6fe,jsxs as _0x59a1e9,Fragment as _0x5b584b}from'react/jsx-runtime';import{Dropdown as _0x41be20,clsx as _0x375136,Button as _0x29c228}from'@univerjs/design';import{useRef as _0xc474d8,createElement as _0x361498,forwardRef as _0x4ecc29,useState as _0xb694f4,useEffect as _0x3e5b3e}from'react';import{CollaborationEvent as _0x36abd7,parseProtocolChangeset as _0x15732f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3a467a,SessionStatus as _0x109e7c,UniverCollaborationClientPlugin as _0x5b162f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x50fae9,SetWorksheetActiveOperation as _0x166425}from'@univerjs/sheets';import{BehaviorSubject as _0x8bc77b,Subject as _0x3d5e73}from'rxjs';import{takeUntil as _0x45a8a0,throttleTime as _0x3abd8f}from'rxjs/operators';import{SetZoomRatioOperation as _0x2a5d38,SetScrollOperation as _0x28a689}from'@univerjs/sheets-ui';function W({ref:_0x35db9a,..._0x4a7a0b}){const _0x3b3f54=_0x5820cf,{icon:_0x56eb49,id:_0x5b8989,className:_0x6c5443,extend:_0x1c2d07,..._0x1e1845}=_0x4a7a0b,_0x4ab888=('univerjs-icon\x20univerjs-icon-'+_0x5b8989+'\x20'+(_0x6c5443||''))[_0x3b3f54(0x24c)](),_0xfd3ccc=_0xc474d8('_'+we());return G(_0x56eb49,''+_0x5b8989,{'defIds':_0x56eb49['defIds'],'idSuffix':_0xfd3ccc['current']},{'ref':_0x35db9a,'className':_0x4ab888,..._0x1e1845},_0x1c2d07);}function G(_0x2849e0,_0x2ae0ae,_0x3a7bbf,_0x36aed9,_0x2c38d5){const _0xf62b34=_0x5820cf;return _0x361498(_0x2849e0[_0xf62b34(0x1e4)],{'key':_0x2ae0ae,...Ee(_0x2849e0,_0x3a7bbf,_0x2c38d5),..._0x36aed9},(Oe(_0x2849e0,_0x3a7bbf)[_0xf62b34(0x206)]||[])[_0xf62b34(0x1ea)]((_0x454f1c,_0x493df2)=>G(_0x454f1c,_0x2ae0ae+'-'+_0x2849e0['tag']+'-'+_0x493df2,_0x3a7bbf,void 0x0,_0x2c38d5)));}function Ee(_0x419ff5,_0x454b47,_0x24c338){const _0x3164ba=_0x5820cf,_0x1b1cbe={..._0x419ff5['attrs']};_0x24c338!=null&&_0x24c338[_0x3164ba(0x1f5)]&&_0x1b1cbe[_0x3164ba(0x22e)]===_0x3164ba(0x1f5)&&(_0x1b1cbe['fill']=_0x24c338[_0x3164ba(0x1f5)]),_0x419ff5[_0x3164ba(0x1e4)]===_0x3164ba(0x223)&&_0x1b1cbe['id']&&(_0x1b1cbe['id']=_0x1b1cbe['id']+_0x454b47[_0x3164ba(0x1e9)]),Object['entries'](_0x1b1cbe)[_0x3164ba(0x222)](([_0x5af8ba,_0x4648f3])=>{const _0x23e3f3=_0x3164ba;_0x5af8ba===_0x23e3f3(0x223)&&typeof _0x4648f3=='string'&&(_0x1b1cbe[_0x5af8ba]=_0x4648f3[_0x23e3f3(0x208)](/url\(#(.*)\)/,_0x23e3f3(0x1f1)+_0x454b47[_0x23e3f3(0x1e9)]+')'));});const {defIds:_0x329422}=_0x454b47;return!_0x329422||_0x329422[_0x3164ba(0x1e1)]===0x0||(_0x419ff5[_0x3164ba(0x1e4)]==='use'&&_0x1b1cbe[_0x3164ba(0x22c)]&&(_0x1b1cbe[_0x3164ba(0x22c)]=_0x1b1cbe['xlink:href']+_0x454b47[_0x3164ba(0x1e9)]),Object[_0x3164ba(0x227)](_0x1b1cbe)['forEach'](([_0x1cb3ff,_0x47cc3e])=>{const _0x77c51a=_0x3164ba;typeof _0x47cc3e=='string'&&(_0x1b1cbe[_0x1cb3ff]=_0x47cc3e['replace'](/url\(#(.*)\)/,_0x77c51a(0x1f1)+_0x454b47[_0x77c51a(0x1e9)]+')'));})),_0x1b1cbe;}function Oe(_0x4255d1,_0x3be832){const _0x28ab62=_0x5820cf;var _0x52283f;const {defIds:_0x53cc67}=_0x3be832;return!_0x53cc67||_0x53cc67[_0x28ab62(0x1e1)]===0x0?_0x4255d1:_0x4255d1['tag']===_0x28ab62(0x216)&&((_0x52283f=_0x4255d1['children'])!=null&&_0x52283f[_0x28ab62(0x1e1)])?{..._0x4255d1,'children':_0x4255d1['children'][_0x28ab62(0x1ea)](_0x10fe99=>typeof _0x10fe99[_0x28ab62(0x1f0)]['id']==_0x28ab62(0x1d9)&&_0x53cc67&&_0x53cc67['includes'](_0x10fe99[_0x28ab62(0x1f0)]['id'])?{..._0x10fe99,'attrs':{..._0x10fe99['attrs'],'id':_0x10fe99[_0x28ab62(0x1f0)]['id']+_0x3be832[_0x28ab62(0x1e9)]}}:_0x10fe99)}:_0x4255d1;}function we(){const _0x3f163e=_0x5820cf;return Math[_0x3f163e(0x1f9)]()[_0x3f163e(0x250)](0x24)[_0x3f163e(0x1f8)](0x2,0x8);}W[_0x5820cf(0x1f7)]=_0x5820cf(0x1f2);const Ne={'tag':_0x5820cf(0x256),'attrs':{'xmlns':_0x5820cf(0x278),'fill':_0x5820cf(0x21d),'viewBox':_0x5820cf(0x251),'width':_0x5820cf(0x1db),'height':_0x5820cf(0x1db)},'children':[{'tag':'path','attrs':{'fill':_0x5820cf(0x24e),'d':_0x5820cf(0x243)}},{'tag':_0x5820cf(0x20a),'attrs':{'fill':_0x5820cf(0x24e),'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':_0x5820cf(0x272)}}]},Y=_0x4ecc29(function(_0x42cc85,_0x36770d){const _0xb60965=_0x5820cf;return _0x361498(W,Object[_0xb60965(0x27a)]({},_0x42cc85,{'id':_0xb60965(0x23e),'ref':_0x36770d,'icon':Ne}));});Y[_0x5820cf(0x1f7)]=_0x5820cf(0x261);class R extends _0x2e331c{constructor(){const _0x3a8d34=_0x5820cf;super(...arguments),u(this,_0x3a8d34(0x202),new Set()),u(this,_0x3a8d34(0x27b),new Set());}['registerSharedOperation'](_0x14a931){const _0x1935db=_0x5820cf;return this[_0x1935db(0x202)][_0x1935db(0x21b)](_0x14a931),_0x69e3dc(()=>this['_sharedOperations']['delete'](_0x14a931));}[_0x5820cf(0x220)](_0x5c3303){const _0xbe4f8e=_0x5820cf;return this[_0xbe4f8e(0x27b)][_0xbe4f8e(0x21b)](_0x5c3303),_0x69e3dc(()=>this[_0xbe4f8e(0x27b)][_0xbe4f8e(0x1f4)](_0x5c3303));}['shouldShareOperation'](_0xdcb308){const _0x163b67=_0x5820cf;return this['_sharedOperations'][_0x163b67(0x1fa)](_0xdcb308);}[_0x5820cf(0x215)](_0x4f2d4c){const _0x553d0b=_0x5820cf;return Array[_0x553d0b(0x253)](this[_0x553d0b(0x27b)])['map'](_0x578299=>_0x578299(_0x4f2d4c));}}var Ce=Object[_0x5820cf(0x260)],B=(_0x507252,_0x1c7f77,_0x32f868,_0x161f3f)=>{const _0x4740ce=_0x5820cf;for(var _0x3e3f5d=_0x161f3f>0x1?void 0x0:_0x161f3f?Ce(_0x1c7f77,_0x32f868):_0x1c7f77,_0x217fb2=_0x507252[_0x4740ce(0x1e1)]-0x1,_0x259448;_0x217fb2>=0x0;_0x217fb2--)(_0x259448=_0x507252[_0x217fb2])&&(_0x3e3f5d=_0x259448(_0x3e3f5d)||_0x3e3f5d);return _0x3e3f5d;},_=(_0x26f838,_0x3f7951)=>(_0x353734,_0x3ca87d)=>_0x3f7951(_0x353734,_0x3ca87d,_0x26f838);let m=class extends _0x1a37bd{constructor(_0x3c8600,_0x443de6,_0x5836d7){const _0x17487f=_0x5820cf;super(),u(this,'_entities',new Map()),(this[_0x17487f(0x1ec)]=_0x3c8600,this['_injector']=_0x443de6,this[_0x17487f(0x218)]=_0x5836d7,this['_init']());}async[_0x5820cf(0x1de)](_0x16e9db){const _0x363a31=_0x5820cf;return this[_0x363a31(0x231)][_0x363a31(0x1fa)](_0x16e9db)||await this['_startLiveShareCoordinator'](_0x16e9db),this[_0x363a31(0x231)][_0x363a31(0x219)](_0x16e9db);}['getLiveShareCoordinatorSync'](_0x19f1f6){const _0x1fc1e6=_0x5820cf;var _0x3b354f;return(_0x3b354f=this[_0x1fc1e6(0x231)][_0x1fc1e6(0x219)](_0x19f1f6))!=null?_0x3b354f:null;}['_init'](){const _0x2474c7=_0x5820cf;this[_0x2474c7(0x1ec)]['getTypeOfUnitAdded$'](_0x491e7c['UNIVER_SHEET'])[_0x2474c7(0x23a)](_0x45a8a0(this['dispose$']))[_0x2474c7(0x226)](async _0x4f9001=>{const _0x1dab96=_0x2474c7,_0x3153fc=_0x4f9001[_0x1dab96(0x210)]();this[_0x1dab96(0x231)][_0x1dab96(0x1fa)](_0x3153fc)||this['_startLiveShareCoordinator'](_0x3153fc);}),this[_0x2474c7(0x1ec)][_0x2474c7(0x1f6)](_0x491e7c['UNIVER_SHEET'])[_0x2474c7(0x23a)](_0x45a8a0(this[_0x2474c7(0x248)]))[_0x2474c7(0x226)](_0x474899=>{const _0x114e15=_0x2474c7,_0x21e03d=_0x474899[_0x114e15(0x210)](),_0x59eac2=this[_0x114e15(0x231)]['get'](_0x21e03d);_0x59eac2==null||_0x59eac2['dispose']();});}async[_0x5820cf(0x1e6)](_0x22da47){const _0x53f63c=_0x5820cf,_0xc9ad37=await this[_0x53f63c(0x218)]['requireSession'](_0x22da47),_0x2e2e33=this[_0x53f63c(0x274)][_0x53f63c(0x266)](C,_0x22da47,_0xc9ad37);return _0x2e2e33[_0x53f63c(0x257)](),this['_entities']['set'](_0x22da47,_0x2e2e33),_0x2e2e33;}};m=B([_(0x0,_0x40c6de),_(0x1,_0x4bad93(_0x7b2f8)),_(0x2,_0x4bad93(_0x3a467a))],m);var c=(_0x57982e=>(_0x57982e[_0x5820cf(0x246)]=_0x5820cf(0x24a),_0x57982e[_0x5820cf(0x201)]=_0x5820cf(0x209),_0x57982e[_0x5820cf(0x22a)]='following',_0x57982e['NOT_FOLLOWING']=_0x5820cf(0x276),_0x57982e['PRESENTING']='presenting',_0x57982e))(c||{});const De='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x1a37bd{constructor(_0x440b36,_0x5b1d41,_0x552b02,_0x1dc176,_0x6d7463){const _0x412804=_0x5820cf;super(),u(this,_0x412804(0x232),new _0x8bc77b(_0x412804(0x209))),u(this,'status$',this['_status$']['asObservable']()),u(this,'_init',!0x1),u(this,_0x412804(0x235),null),u(this,_0x412804(0x22b),null),(this['_unitID']=_0x440b36,this[_0x412804(0x20f)]=_0x5b1d41,this[_0x412804(0x25d)]=_0x552b02,this[_0x412804(0x229)]=_0x1dc176,this[_0x412804(0x1dd)]=_0x6d7463);}get[_0x5820cf(0x241)](){const _0x478f90=_0x5820cf;return this['_status$'][_0x478f90(0x263)]();}[_0x5820cf(0x1e3)](){const _0x97282a=_0x5820cf;var _0x4c8730;(_0x4c8730=this[_0x97282a(0x235)])==null||_0x4c8730['dispose'](),this['_status$'][_0x97282a(0x259)](_0x97282a(0x209)),this['_status$'][_0x97282a(0x22f)]();}[_0x5820cf(0x254)](){return this['_status'];}[_0x5820cf(0x257)](){const _0x12d7b7=_0x5820cf;this[_0x12d7b7(0x21f)]||(this['_init']=!0x0,this[_0x12d7b7(0x20f)][_0x12d7b7(0x1fc)][_0x12d7b7(0x23a)](_0x45a8a0(this['dispose$']))[_0x12d7b7(0x226)](_0x1562ca=>{const _0x59184a=_0x12d7b7;switch(_0x1562ca){case _0x109e7c[_0x59184a(0x246)]:this[_0x59184a(0x1eb)]();break;case _0x109e7c['ONLINE']:this['_handleOnline']();break;}}),this[_0x12d7b7(0x20f)][_0x12d7b7(0x271)][_0x12d7b7(0x23a)](_0x45a8a0(this[_0x12d7b7(0x248)]))['subscribe'](_0x224248=>{const _0x185b0c=_0x12d7b7,{eventID:_0x25156d}=_0x224248;switch(_0x25156d){case _0x36abd7[_0x185b0c(0x277)]:this[_0x185b0c(0x25a)](_0x224248);break;case _0x36abd7[_0x185b0c(0x207)]:this['_handleOperation'](_0x224248);break;case _0x36abd7[_0x185b0c(0x25b)]:this[_0x185b0c(0x1d5)]();break;case _0x36abd7['NEW_CHANGESETS']:this[_0x185b0c(0x1d7)](_0x224248);break;}}));}[_0x5820cf(0x244)](){const _0x54f24d=_0x5820cf;this[_0x54f24d(0x20f)][_0x54f24d(0x233)]({'eventID':_0x36abd7[_0x54f24d(0x273)],'data':{'unitID':this[_0x54f24d(0x275)],'userID':this[_0x54f24d(0x20f)][_0x54f24d(0x236)]()}},this[_0x54f24d(0x275)]);}[_0x5820cf(0x239)](){const _0x410a3b=_0x5820cf;this['_status']===_0x410a3b(0x262)&&(this[_0x410a3b(0x232)][_0x410a3b(0x259)](_0x410a3b(0x209)),this[_0x410a3b(0x20f)][_0x410a3b(0x233)]({'eventID':_0x36abd7['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x410a3b(0x275)]}},this[_0x410a3b(0x275)]));}[_0x5820cf(0x1ee)](){const _0x111435=_0x5820cf;this[_0x111435(0x241)]===_0x111435(0x276)&&(this[_0x111435(0x232)][_0x111435(0x259)](_0x111435(0x212)),this['_startFollowing']());}['stopFollowing'](){const _0x2a26a6=_0x5820cf;this[_0x2a26a6(0x241)]===_0x2a26a6(0x212)&&this[_0x2a26a6(0x20c)]();}[_0x5820cf(0x25a)](_0x1c8c82){const _0x8a2204=_0x5820cf,{presenter:_0x190155}=_0x1c8c82[_0x8a2204(0x1d6)],_0x3e0e65=this[_0x8a2204(0x20f)][_0x8a2204(0x236)]();this[_0x8a2204(0x22b)]=_0x190155,_0x190155===_0x3e0e65?(this[_0x8a2204(0x20c)](),this['_startPresenting']()):this['_status']!==_0x8a2204(0x276)&&(this[_0x8a2204(0x23f)](),this[_0x8a2204(0x230)]());}[_0x5820cf(0x242)](){const _0x54a1d5=_0x5820cf,_0x57b36b={'eventID':_0x36abd7['LIVESHARE_FETCH_OPERATIONS']};this[_0x54a1d5(0x20f)][_0x54a1d5(0x233)](_0x57b36b,this[_0x54a1d5(0x275)]);}[_0x5820cf(0x1d5)](){const _0x27a3e6=_0x5820cf;this[_0x27a3e6(0x22b)]=null,this[_0x27a3e6(0x241)]!==_0x27a3e6(0x262)&&this[_0x27a3e6(0x203)]();}[_0x5820cf(0x1d7)](_0x498e69){const _0x1c06b8=_0x5820cf;if(this[_0x1c06b8(0x241)]==='following'&&this[_0x1c06b8(0x22b)]===_0x498e69[_0x1c06b8(0x1d6)][_0x1c06b8(0x255)]){const _0x3dd9c8=_0x15732f(_0x498e69['data'])[_0x1c06b8(0x1d8)][_0x1c06b8(0x24f)]()['find'](_0x1b06dc=>_0x1b06dc['id']===_0x50fae9['id']);if(_0x3dd9c8){const _0x3b2ed8=_0x3dd9c8[_0x1c06b8(0x26c)]['unitId'],_0x1fe577=_0x3dd9c8[_0x1c06b8(0x26c)][_0x1c06b8(0x268)]['id'];setTimeout(()=>{const _0x7797e8=_0x1c06b8;this['_commandService'][_0x7797e8(0x1da)](_0x166425['id'],{'unitId':_0x3b2ed8,'subUnitId':_0x1fe577},{'fromCollab':!0x0});});}}}[_0x5820cf(0x279)](){const _0x3f0bd9=_0x5820cf;this[_0x3f0bd9(0x232)][_0x3f0bd9(0x259)](_0x3f0bd9(0x262));const _0x3933ff=new Map(),_0x3b0597=this['_commandDisposable']=new _0xf22f9f();_0x3b0597[_0x3f0bd9(0x21b)](_0x69e3dc(()=>{const _0x47af15=_0x3f0bd9;_0x3933ff[_0x47af15(0x222)](_0x4bd256=>_0x4bd256[_0x47af15(0x22f)]()),_0x3933ff[_0x47af15(0x205)]();})),_0x3b0597[_0x3f0bd9(0x21b)](this[_0x3f0bd9(0x1dd)]['onCommandExecuted'](_0x37753d=>{const _0x2ac4b9=_0x3f0bd9;var _0x213376;if(_0x37753d[_0x2ac4b9(0x23c)]!==_0x1c2ebe['OPERATION']||!this[_0x2ac4b9(0x229)][_0x2ac4b9(0x1fb)](_0x37753d['id']))return;const {id:_0x3382e4}=_0x37753d;let _0x37798d;_0x3933ff[_0x2ac4b9(0x1fa)](_0x3382e4)?_0x37798d=_0x3933ff[_0x2ac4b9(0x219)](_0x3382e4):(_0x37798d=new _0x3d5e73(),_0x3933ff[_0x2ac4b9(0x26b)](_0x3382e4,_0x37798d),_0x37798d[_0x2ac4b9(0x23a)](_0x3abd8f((_0x213376=this[_0x2ac4b9(0x25d)][_0x2ac4b9(0x1fd)](De))!=null?_0x213376:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5649f5=>{const _0x16e86f=_0x2ac4b9;this['_collabSession'][_0x16e86f(0x233)]({'eventID':_0x36abd7[_0x16e86f(0x207)],'data':{'unitID':this['_unitID'],'operations':{[_0x5649f5['id']]:{'id':_0x5649f5['id'],'params':JSON[_0x16e86f(0x24b)](_0x5649f5['params'])}}}},this['_unitID']);})),_0x37798d[_0x2ac4b9(0x259)](_0x37753d);})),this['_liveShareService'][_0x3f0bd9(0x215)](this[_0x3f0bd9(0x275)])['forEach'](_0x576cca=>this[_0x3f0bd9(0x20f)]['send']({'eventID':_0x36abd7[_0x3f0bd9(0x207)],'data':{'unitID':this[_0x3f0bd9(0x275)],'operations':{[_0x576cca['id']]:{'id':_0x576cca['id'],'params':JSON[_0x3f0bd9(0x24b)](_0x576cca['params'])}}}},this[_0x3f0bd9(0x275)]));}[_0x5820cf(0x23f)](){const _0x2130ac=_0x5820cf;var _0x1fbfca;this['_status$']['next'](_0x2130ac(0x209)),(_0x1fbfca=this[_0x2130ac(0x235)])==null||_0x1fbfca[_0x2130ac(0x1e3)](),this[_0x2130ac(0x235)]=null;}[_0x5820cf(0x230)](){const _0x533f8f=_0x5820cf;var _0x432822;(_0x432822=this[_0x533f8f(0x235)])==null||_0x432822['dispose'](),this['_status$']['next'](_0x533f8f(0x212));}['_beIdle'](){const _0x535822=_0x5820cf;var _0x35d44f;this[_0x535822(0x232)][_0x535822(0x259)](_0x535822(0x209)),(_0x35d44f=this['_commandDisposable'])==null||_0x35d44f['dispose'](),this[_0x535822(0x235)]=null;}[_0x5820cf(0x20c)](){const _0xb847e6=_0x5820cf;var _0x190ca0;this[_0xb847e6(0x232)][_0xb847e6(0x259)](_0xb847e6(0x276)),(_0x190ca0=this[_0xb847e6(0x235)])==null||_0x190ca0[_0xb847e6(0x1e3)]();}[_0x5820cf(0x1e8)](_0x5656b0){const _0x264615=_0x5820cf;if([_0x264615(0x262),'not-following',_0x264615(0x24a)][_0x264615(0x1e7)](this[_0x264615(0x241)])||!_0x5656b0[_0x264615(0x1d6)][_0x264615(0x224)]||_0x5656b0['data'][_0x264615(0x224)]===this[_0x264615(0x20f)]['getMemberID']())return;this[_0x264615(0x241)]==='idle'&&this[_0x264615(0x230)]();const _0x2ae903=_0x5656b0[_0x264615(0x1d6)][_0x264615(0x247)];Object[_0x264615(0x26d)](_0x2ae903)[_0x264615(0x222)](_0x437e9d=>{const _0x7a9f8c=_0x264615;this[_0x7a9f8c(0x1dd)][_0x7a9f8c(0x1da)](_0x437e9d['id'],_0x437e9d[_0x7a9f8c(0x26c)]?JSON['parse'](_0x437e9d[_0x7a9f8c(0x26c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x1a1b8f=_0x5820cf;var _0x36cad8;this[_0x1a1b8f(0x232)]['next'](_0x1a1b8f(0x24a)),(_0x36cad8=this['_commandDisposable'])==null||_0x36cad8['dispose']();}[_0x5820cf(0x21c)](){const _0x231775=_0x5820cf;this['_status$'][_0x231775(0x259)](_0x231775(0x209)),this[_0x231775(0x242)]();}};C=B([_(0x2,_0x4d5e12),_(0x3,_0x4bad93(R)),_(0x4,_0x4c31ff)],C);function Re(){const _0x523722=_0x5820cf,_0x182b96=_0x52aa82(m),_0x2cc71e=_0x52aa82(_0x40c6de),_0x375e87=_0x5a7db5(()=>_0x2cc71e['getCurrentTypeOfUnit$'](_0x491e7c['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x536aef,_0x5eec40]=_0xb694f4(null),[_0x54e634,_0x42fcc6]=_0xb694f4(c['IDLE']),_0x193e0c=_0xc474d8(null);return _0x3e5b3e(()=>(_0x375e87&&_0x182b96[_0x523722(0x1de)](_0x375e87['getUnitId']())[_0x523722(0x270)](_0x3b1a69=>{const _0x459d55=_0x523722;_0x5eec40(_0x3b1a69),_0x193e0c[_0x459d55(0x1f3)]=_0x3b1a69[_0x459d55(0x1e0)][_0x459d55(0x226)](_0x49706d=>{_0x42fcc6(_0x49706d);});}),()=>{var _0xcc4ea4;(_0xcc4ea4=_0x193e0c['current'])==null||_0xcc4ea4['unsubscribe'](),_0x193e0c['current']=null;}),[_0x375e87,_0x182b96]),_0x536aef?_0x4df6fe(_0x41be20,{'align':_0x523722(0x21a),'disabled':_0x54e634===c[_0x523722(0x246)],'className':_0x523722(0x269),'overlay':_0x4df6fe($e,{'status':_0x54e634,'coordinator':_0x536aef}),'children':_0x4df6fe('button',{'className':_0x375136(_0x523722(0x24d),{'univer-cursor-not-allowed':_0x54e634===c[_0x523722(0x246)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x54e634!==c[_0x523722(0x246)]}),'type':_0x523722(0x1fe),'children':_0x4df6fe(Y,{'className':_0x523722(0x213)})})}):null;}function $e(_0x227d50){const _0x5067fe=_0x5820cf,{status:_0x4a8b01,coordinator:_0x581095}=_0x227d50;switch(_0x4a8b01){case c[_0x5067fe(0x201)]:return _0x4df6fe(xe,{'coordinator':_0x581095});case c[_0x5067fe(0x22a)]:return _0x4df6fe(Pe,{'coordinator':_0x581095});case c[_0x5067fe(0x26a)]:return _0x4df6fe(Ae,{'coordinator':_0x581095});case c[_0x5067fe(0x246)]:return _0x4df6fe(Fe,{});case c[_0x5067fe(0x225)]:return _0x4df6fe(Te,{'coordinator':_0x581095});default:return null;}}function xe(_0x3a5fd5){const _0x405e9f=_0x5820cf,{coordinator:_0x3e4865}=_0x3a5fd5;return _0x59a1e9(_0x5b584b,{'children':[_0x4df6fe(_0x405e9f(0x240),{'className':_0x405e9f(0x249),'children':'Present\x20this\x20document'}),_0x4df6fe(_0x29c228,{'onClick':()=>_0x3e4865[_0x405e9f(0x244)](),'children':_0x405e9f(0x25c)})]});}function Pe(_0x23a7d5){const _0x127cb8=_0x5820cf,{coordinator:_0x31b5d0}=_0x23a7d5;return _0x59a1e9(_0x5b584b,{'children':[_0x4df6fe(_0x127cb8(0x240),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x127cb8(0x267)}),_0x4df6fe(_0x29c228,{'onClick':()=>_0x31b5d0[_0x127cb8(0x1dc)](),'children':_0x127cb8(0x26e)})]});}function Ae(_0xa0a837){const _0x761675=_0x5820cf,{coordinator:_0x3e3aa4}=_0xa0a837;return _0x59a1e9(_0x5b584b,{'children':[_0x4df6fe(_0x761675(0x240),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4df6fe(_0x29c228,{'variant':_0x761675(0x23d),'onClick':()=>_0x3e3aa4[_0x761675(0x1ee)](),'children':_0x761675(0x234)})]});}function Te(_0x38f53d){const _0x2cd618=_0x5820cf,{coordinator:_0x1403ff}=_0x38f53d;return _0x59a1e9(_0x5b584b,{'children':[_0x4df6fe('div',{'className':_0x2cd618(0x249),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4df6fe(_0x29c228,{'variant':'default','onClick':()=>_0x1403ff['stopPresenting'](),'children':_0x2cd618(0x25f)})]});}function _0x36f5(){const _0x26942f=['1214180ZLrkIt','_startLiveShareCoordinator','includes','_handleOperation','idSuffix','map','_handleOffline','_univerInstanceService','symbol','startFollowing','3345184ksDwsz','attrs','url(#$1','UniverIcon','current','delete','colorChannel1','getTypeOfUnitDisposed$','displayName','substring','random','has','shouldShareOperation','sessionStatus$','getConfig','button','live-share.config','You\x27are\x20offline.','IDLE','_sharedOperations','_beIdle','UNIVER_LIVE_SHARE_PLUGIN','clear','children','LIVESHARE_OPERATION','replace','idle','path','0.16.1-insiders.20260311-074e8ca','_stopFollowing','@univerjs-pro/live-share','onStarting','_collabSession','getUnitId','5mCYDvx','following','univer-size-4','HEADER_MENU','getInitialStates','defs','89150RuSGpK','_collabSessionService','get','end','add','_handleOnline','none','592920eSTrkc','_init','registerInitialStateReporter','31617xphCFf','forEach','mask','presenter','PRESENTING','subscribe','entries','2100819MXRAZv','_liveShareService','FOLLOWING','_presenter','xlink:href','version','fill','complete','_startFollowing','_entities','_status$','send','Start\x20following','_commandDisposable','getMemberID','_mountLiveShare','disposeWithMe','stopPresenting','pipe','name','type','text','live-share-icon','_stopPresenting','div','_status','_fetchOperations','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','tryStartPresenting','_config','OFFLINE','operations','dispose$','univer-mb-3\x20univer-w-full\x20univer-text-sm','offline','stringify','trim','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','currentColor','reverse','toString','0\x200\x2017\x2017','setConfig','from','getStatus','memberID','svg','init','override','next','_handleNewHost','LIVESHARE_TERMINATE','Start','_configService','registerComponent','Stop\x20presenting','getOwnPropertyDescriptor','LiveShareIcon','presenting','getValue','4143545ZmUfOh','defineProperty','createInstance','You\x27re\x20following\x20the\x20presenter','sheet','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','NOT_FOLLOWING','set','params','values','Stop\x20following','_uiPartsService','then','event$','evenodd','LIVESHARE_REQUEST_HOST','_injector','_unitID','not-following','LIVESHARE_NEW_HOST','http://www.w3.org/2000/svg','_startPresenting','assign','_reporters','_handleTerminate','data','_handleNewChangeSets','mutations','string','executeCommand','1em','stopFollowing','_commandService','getLiveShareCoordinator','6VCxeAB','status$','length','UNIVER_UNKNOWN','dispose','tag'];_0x36f5=function(){return _0x26942f;};return _0x36f5();}function Fe(){const _0x56f987=_0x5820cf;return _0x4df6fe(_0x5b584b,{'children':_0x56f987(0x200)});}var He=Object['getOwnPropertyDescriptor'],ye=(_0x2c9a65,_0x4288b6,_0x20ccc4,_0x3ce715)=>{for(var _0x38c5b6=_0x3ce715>0x1?void 0x0:_0x3ce715?He(_0x4288b6,_0x20ccc4):_0x4288b6,_0x39ffd0=_0x2c9a65['length']-0x1,_0x384a29;_0x39ffd0>=0x0;_0x39ffd0--)(_0x384a29=_0x2c9a65[_0x39ffd0])&&(_0x38c5b6=_0x384a29(_0x38c5b6)||_0x38c5b6);return _0x38c5b6;},T=(_0x78cf7d,_0x588b3c)=>(_0x519b46,_0xee9c4)=>_0x588b3c(_0x519b46,_0xee9c4,_0x78cf7d);let I=class extends _0x2e331c{constructor(_0x324408,_0x4df62b){const _0x488995=_0x5820cf;super(),this[_0x488995(0x274)]=_0x324408,this[_0x488995(0x26f)]=_0x4df62b,this[_0x488995(0x237)]();}[_0x5820cf(0x237)](){const _0x17acdf=_0x5820cf;this[_0x17acdf(0x238)](this['_uiPartsService'][_0x17acdf(0x25e)](_0x505dc0[_0x17acdf(0x214)],()=>_0x2f564f(Re,this[_0x17acdf(0x274)])));}};function _0x309d(_0x572dfb,_0x2b98b0){_0x572dfb=_0x572dfb-0x1d5;const _0x36f556=_0x36f5();let _0x309dfa=_0x36f556[_0x572dfb];return _0x309dfa;}I=ye([T(0x0,_0x4bad93(_0x7b2f8)),T(0x1,_0x282d33)],I);const je=_0x5820cf(0x20d),Ue=_0x5820cf(0x20b),Z={'name':je,'version':Ue},Ve=_0x5820cf(0x1ff),F={};var Me=Object['getOwnPropertyDescriptor'],ke=(_0x2dcd99,_0x3bcd96,_0x287f67,_0x3acd58)=>{const _0x98ea43=_0x5820cf;for(var _0x6d9ece=_0x3acd58>0x1?void 0x0:_0x3acd58?Me(_0x3bcd96,_0x287f67):_0x3bcd96,_0x393ee3=_0x2dcd99[_0x98ea43(0x1e1)]-0x1,_0x6ab9e0;_0x393ee3>=0x0;_0x393ee3--)(_0x6ab9e0=_0x2dcd99[_0x393ee3])&&(_0x6d9ece=_0x6ab9e0(_0x6d9ece)||_0x6d9ece);return _0x6d9ece;},We=(_0xe739b7,_0x58053d)=>(_0x32f796,_0x4a9555)=>_0x58053d(_0x32f796,_0x4a9555,_0xe739b7);let b=class extends _0x2e331c{constructor(_0x173143){const _0x5d0db0=_0x5820cf;super(),this[_0x5d0db0(0x229)]=_0x173143,this['_init']();}[_0x5820cf(0x21f)](){const _0x5e6a4b=_0x5820cf;[_0x2a5d38['id'],_0x28a689['id'],_0x166425['id']][_0x5e6a4b(0x222)](_0x318d89=>{const _0x45d1b0=_0x5e6a4b;this[_0x45d1b0(0x238)](this[_0x45d1b0(0x229)]['registerSharedOperation'](_0x318d89));});}};b=ke([We(0x0,_0x4bad93(R))],b);var Ge=Object[_0x5820cf(0x265)],Ye=Object[_0x5820cf(0x260)],Be=(_0xb926b0,_0x56060b,_0x2b99b1)=>_0x56060b in _0xb926b0?Ge(_0xb926b0,_0x56060b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b99b1}):_0xb926b0[_0x56060b]=_0x2b99b1,Ze=(_0x1f7fd1,_0x31079a,_0x91cf38,_0x1887f1)=>{for(var _0x5aa01d=_0x1887f1>0x1?void 0x0:_0x1887f1?Ye(_0x31079a,_0x91cf38):_0x31079a,_0xfde50e=_0x1f7fd1['length']-0x1,_0x5db8a8;_0xfde50e>=0x0;_0xfde50e--)(_0x5db8a8=_0x1f7fd1[_0xfde50e])&&(_0x5aa01d=_0x5db8a8(_0x5aa01d)||_0x5aa01d);return _0x5aa01d;},H=(_0x2ad4ae,_0x4fa550)=>(_0x3ad184,_0x492a01)=>_0x4fa550(_0x3ad184,_0x492a01,_0x2ad4ae),w=(_0x630d7,_0x448f66,_0x2a8579)=>Be(_0x630d7,typeof _0x448f66!='symbol'?_0x448f66+'':_0x448f66,_0x2a8579);let f=class extends _0x1ffb76{constructor(_0x1b23ae=F,_0x4a2726,_0x11858a){const _0x2500bf=_0x5820cf;super(),this[_0x2500bf(0x245)]=_0x1b23ae,this['_injector']=_0x4a2726,this[_0x2500bf(0x25d)]=_0x11858a;const {..._0x191f49}=_0x815cbc({},F,this[_0x2500bf(0x245)]);this[_0x2500bf(0x25d)][_0x2500bf(0x252)](Ve,_0x191f49);}[_0x5820cf(0x20e)](){const _0xe17f8b=_0x5820cf;_0x1f00c5(this['_injector'],_0x14b8bb([[R],[m],[b],[I]],this[_0xe17f8b(0x245)][_0xe17f8b(0x258)])),_0x4b7b0b(this['_injector'],[[b]]);}['onRendered'](){const _0xe5a11a=_0x5820cf;_0x4b7b0b(this[_0xe5a11a(0x274)],[[I]]);}};w(f,_0x5820cf(0x23c),_0x491e7c[_0x5820cf(0x1e2)]),w(f,'pluginName',_0x5820cf(0x204)),w(f,'packageName',Z[_0x5820cf(0x23b)]),w(f,_0x5820cf(0x22d),Z[_0x5820cf(0x22d)]),f=Ze([_0x333705(_0x5b162f),H(0x1,_0x4bad93(_0x7b2f8)),H(0x2,_0x4d5e12)],f);export{I as DesktopLiveShareController,Re as LiveShare,m as LiveShareController,C as LiveShareCoordinator,R as LiveShareService,c as LiveShareStatus,f as UniverLiveSharePlugin};
@@ -6,6 +6,8 @@ export declare class UniverLiveSharePlugin extends Plugin {
6
6
  private readonly _configService;
7
7
  static type: UniverInstanceType;
8
8
  static pluginName: string;
9
+ static packageName: string;
10
+ static version: string;
9
11
  constructor(_config: IUniverLiveShareConfig | undefined, _injector: Injector, _configService: IConfigService);
10
12
  onStarting(): void;
11
13
  onRendered(): void;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x1954(){const _0x260c7a=['UniverInstanceType','LiveShareController','object','23286100bKufII','IUniverInstanceService','12TyrwfG','UNIVER_SHEET','UniverProLiveShare','@univerjs/core/facade','stopFollowing','FEnum','get','startFollowing','225ZSNgvu','245020BRvwAg','getCurrentUnitOfType','function','_injector','No\x20active\x20workbook\x20found.','IDLE','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','symbol','stopPresenting','startPresenting','extend','1140318QBdZMW','11TpJwlw','getLiveShareCoordinatorSync','79328YyiAIK','96BGvnlp','LiveShareStatus','482496IoZhOX','defineProperty','_liveShareController','getUnitId','FUniver','2185652KIhJlz','1527OTSANz','UniverCoreFacade'];_0x1954=function(){return _0x260c7a;};return _0x1954();}function _0x1ebe(_0x441587,_0x42f03f){_0x441587=_0x441587-0xff;const _0x19540a=_0x1954();let _0x1ebee0=_0x19540a[_0x441587];return _0x1ebee0;}(function(_0x23d3ea,_0x56f932){const _0x497589=_0x1ebe,_0x53f08b=_0x23d3ea();while(!![]){try{const _0x15666d=parseInt(_0x497589(0x11d))/0x1+-parseInt(_0x497589(0x11a))/0x2+parseInt(_0x497589(0xff))/0x3*(-parseInt(_0x497589(0x106))/0x4)+-parseInt(_0x497589(0x10f))/0x5*(-parseInt(_0x497589(0x11e))/0x6)+-parseInt(_0x497589(0x125))/0x7+parseInt(_0x497589(0x120))/0x8*(-parseInt(_0x497589(0x10e))/0x9)+-parseInt(_0x497589(0x104))/0xa*(-parseInt(_0x497589(0x11b))/0xb);if(_0x15666d===_0x56f932)break;else _0x53f08b['push'](_0x53f08b['shift']());}catch(_0x17cddf){_0x53f08b['push'](_0x53f08b['shift']());}}}(_0x1954,0xc3618),function(_0x50f922,_0x33353e){const _0x5b8464=_0x1ebe;typeof exports==_0x5b8464(0x103)&&typeof module<'u'?_0x33353e(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x5b8464(0x111)&&define['amd']?define(['@univerjs-pro/live-share','@univerjs/core',_0x5b8464(0x109)],_0x33353e):(_0x50f922=typeof globalThis<'u'?globalThis:_0x50f922||self,_0x33353e(_0x50f922[_0x5b8464(0x108)],_0x50f922['UniverCore'],_0x50f922[_0x5b8464(0x100)]));}(this,function(_0x2bc2cb,_0x13cc92,_0x4d2baf){'use strict';const _0x15df72=_0x1ebe;var _0x332ad3=Object[_0x15df72(0x121)],_0x24300c=(_0x2c7ea6,_0x3488e1,_0x416507)=>_0x3488e1 in _0x2c7ea6?_0x332ad3(_0x2c7ea6,_0x3488e1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x416507}):_0x2c7ea6[_0x3488e1]=_0x416507,_0x5ee615=(_0x1f96af,_0x46026f,_0x3ff172)=>_0x24300c(_0x1f96af,typeof _0x46026f!=_0x15df72(0x116)?_0x46026f+'':_0x46026f,_0x3ff172);class _0x5695c1 extends _0x4d2baf[_0x15df72(0x124)]{constructor(){const _0x30a4f8=_0x15df72;super(...arguments),_0x5ee615(this,_0x30a4f8(0x122));}['_initialize'](_0x468ba4){const _0x2c60be=_0x15df72;this[_0x2c60be(0x122)]=_0x468ba4[_0x2c60be(0x10c)](_0x2bc2cb[_0x2c60be(0x102)]);}['getLiveShareStatus'](){const _0x4abc77=_0x15df72;var _0x3c1e20;const _0x18bfc8=this[_0x4abc77(0x112)]['get'](_0x13cc92['IUniverInstanceService'])[_0x4abc77(0x110)](_0x13cc92['UniverInstanceType'][_0x4abc77(0x107)]);if(!_0x18bfc8)throw new Error(_0x4abc77(0x113));const _0x57eb35=_0x18bfc8[_0x4abc77(0x123)](),_0x2b8507=this[_0x4abc77(0x122)]['getLiveShareCoordinatorSync'](_0x57eb35);return(_0x3c1e20=_0x2b8507==null?void 0x0:_0x2b8507['getStatus']())!=null?_0x3c1e20:_0x2bc2cb[_0x4abc77(0x11f)][_0x4abc77(0x114)];}[_0x15df72(0x10d)](){const _0x1bb03b=_0x15df72,_0x51f1c5=this[_0x1bb03b(0x112)][_0x1bb03b(0x10c)](_0x13cc92[_0x1bb03b(0x105)])[_0x1bb03b(0x110)](_0x13cc92[_0x1bb03b(0x101)][_0x1bb03b(0x107)]);if(!_0x51f1c5)throw new Error(_0x1bb03b(0x113));const _0x489be2=_0x51f1c5['getUnitId'](),_0x17b114=this[_0x1bb03b(0x122)]['getLiveShareCoordinatorSync'](_0x489be2);if(!_0x17b114)throw new Error(_0x1bb03b(0x115));_0x17b114[_0x1bb03b(0x10d)]();}[_0x15df72(0x10a)](){const _0x27ce00=_0x15df72,_0x58a2d3=this['_injector'][_0x27ce00(0x10c)](_0x13cc92[_0x27ce00(0x105)])[_0x27ce00(0x110)](_0x13cc92[_0x27ce00(0x101)][_0x27ce00(0x107)]);if(!_0x58a2d3)throw new Error(_0x27ce00(0x113));const _0x2b4409=_0x58a2d3[_0x27ce00(0x123)](),_0x36ea43=this[_0x27ce00(0x122)]['getLiveShareCoordinatorSync'](_0x2b4409);if(!_0x36ea43)throw new Error(_0x27ce00(0x115));_0x36ea43[_0x27ce00(0x10a)]();}[_0x15df72(0x118)](){const _0xe3e83b=_0x15df72,_0x598d06=this[_0xe3e83b(0x112)][_0xe3e83b(0x10c)](_0x13cc92[_0xe3e83b(0x105)])[_0xe3e83b(0x110)](_0x13cc92[_0xe3e83b(0x101)][_0xe3e83b(0x107)]);if(!_0x598d06)throw new Error(_0xe3e83b(0x113));const _0xd63754=_0x598d06[_0xe3e83b(0x123)](),_0x4eb096=this[_0xe3e83b(0x122)]['getLiveShareCoordinatorSync'](_0xd63754);if(!_0x4eb096)throw new Error(_0xe3e83b(0x115));_0x4eb096['tryStartPresenting']();}[_0x15df72(0x117)](){const _0x5965ee=_0x15df72,_0x5bd65b=this[_0x5965ee(0x112)]['get'](_0x13cc92[_0x5965ee(0x105)])['getCurrentUnitOfType'](_0x13cc92['UniverInstanceType'][_0x5965ee(0x107)]);if(!_0x5bd65b)throw new Error(_0x5965ee(0x113));const _0x2f8430=_0x5bd65b[_0x5965ee(0x123)](),_0x199089=this['_liveShareController'][_0x5965ee(0x11c)](_0x2f8430);if(!_0x199089)throw new Error(_0x5965ee(0x115));_0x199089[_0x5965ee(0x117)]();}}_0x4d2baf[_0x15df72(0x124)][_0x15df72(0x119)](_0x5695c1);class _0x3376b7 extends _0x4d2baf['FEnum']{get['LiveShareStatusEnum'](){const _0x223016=_0x15df72;return _0x2bc2cb[_0x223016(0x11f)];}}_0x4d2baf[_0x15df72(0x10b)][_0x15df72(0x119)](_0x3376b7);}));
1
+ function _0x2bbd(){const _0x32210d=['@univerjs/core','symbol','startPresenting','FUniver','startFollowing','stopPresenting','getStatus','tryStartPresenting','11eHKABY','UNIVER_SHEET','LiveShareStatusEnum','972158KJZghG','80ZVWdYy','_liveShareController','913329kPtOYw','UniverInstanceType','105645UkfNaS','UniverCore','@univerjs/core/facade','IUniverInstanceService','12bcKrNI','137208njccGW','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','FEnum','107122VxJMns','4763394ZdbYaC','get','UniverProLiveShare','getCurrentUnitOfType','_injector','21yrNHAo','5218210wpIqga','10aeNnsG','LiveShareStatus','getLiveShareCoordinatorSync','_initialize','stopFollowing','getUnitId','No\x20active\x20workbook\x20found.'];_0x2bbd=function(){return _0x32210d;};return _0x2bbd();}function _0x516e(_0x13630b,_0x24e97b){_0x13630b=_0x13630b-0x14b;const _0x2bbd94=_0x2bbd();let _0x516e2d=_0x2bbd94[_0x13630b];return _0x516e2d;}(function(_0x50e9f7,_0x4ac484){const _0x3d1e8c=_0x516e,_0x2fe5a6=_0x50e9f7();while(!![]){try{const _0x475c03=parseInt(_0x3d1e8c(0x16a))/0x1*(-parseInt(_0x3d1e8c(0x153))/0x2)+-parseInt(_0x3d1e8c(0x14b))/0x3*(parseInt(_0x3d1e8c(0x16e))/0x4)+parseInt(_0x3d1e8c(0x15b))/0x5*(parseInt(_0x3d1e8c(0x154))/0x6)+parseInt(_0x3d1e8c(0x159))/0x7*(parseInt(_0x3d1e8c(0x150))/0x8)+-parseInt(_0x3d1e8c(0x170))/0x9+parseInt(_0x3d1e8c(0x15a))/0xa+-parseInt(_0x3d1e8c(0x16d))/0xb*(-parseInt(_0x3d1e8c(0x14f))/0xc);if(_0x475c03===_0x4ac484)break;else _0x2fe5a6['push'](_0x2fe5a6['shift']());}catch(_0x2c2638){_0x2fe5a6['push'](_0x2fe5a6['shift']());}}}(_0x2bbd,0xd09e2),function(_0x16ab5c,_0xad22ce){const _0x203434=_0x516e;typeof exports=='object'&&typeof module<'u'?_0xad22ce(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define=='function'&&define['amd']?define(['@univerjs-pro/live-share',_0x203434(0x162),_0x203434(0x14d)],_0xad22ce):(_0x16ab5c=typeof globalThis<'u'?globalThis:_0x16ab5c||self,_0xad22ce(_0x16ab5c[_0x203434(0x156)],_0x16ab5c[_0x203434(0x14c)],_0x16ab5c['UniverCoreFacade']));}(this,function(_0x599c9b,_0x281c01,_0x2d4b4d){'use strict';const _0x429c99=_0x516e;var _0x157b3d=Object['defineProperty'],_0xee9ea8=(_0x189d58,_0x2c3016,_0x5373e5)=>_0x2c3016 in _0x189d58?_0x157b3d(_0x189d58,_0x2c3016,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5373e5}):_0x189d58[_0x2c3016]=_0x5373e5,_0x4bc2b1=(_0x5c912d,_0x1aff18,_0x179d88)=>_0xee9ea8(_0x5c912d,typeof _0x1aff18!=_0x429c99(0x163)?_0x1aff18+'':_0x1aff18,_0x179d88);class _0x4f702a extends _0x2d4b4d[_0x429c99(0x165)]{constructor(){super(...arguments),_0x4bc2b1(this,'_liveShareController');}[_0x429c99(0x15e)](_0x2c12b3){const _0x56ea97=_0x429c99;this['_liveShareController']=_0x2c12b3[_0x56ea97(0x155)](_0x599c9b['LiveShareController']);}['getLiveShareStatus'](){const _0x246abf=_0x429c99;var _0x327874;const _0xc60dcc=this[_0x246abf(0x158)][_0x246abf(0x155)](_0x281c01[_0x246abf(0x14e)])[_0x246abf(0x157)](_0x281c01[_0x246abf(0x171)]['UNIVER_SHEET']);if(!_0xc60dcc)throw new Error(_0x246abf(0x161));const _0x4b6f33=_0xc60dcc[_0x246abf(0x160)](),_0x324fc2=this['_liveShareController'][_0x246abf(0x15d)](_0x4b6f33);return(_0x327874=_0x324fc2==null?void 0x0:_0x324fc2[_0x246abf(0x168)]())!=null?_0x327874:_0x599c9b['LiveShareStatus']['IDLE'];}[_0x429c99(0x166)](){const _0x325292=_0x429c99,_0x285efa=this['_injector']['get'](_0x281c01[_0x325292(0x14e)])[_0x325292(0x157)](_0x281c01['UniverInstanceType']['UNIVER_SHEET']);if(!_0x285efa)throw new Error(_0x325292(0x161));const _0x2a72aa=_0x285efa[_0x325292(0x160)](),_0x2f3645=this[_0x325292(0x16f)][_0x325292(0x15d)](_0x2a72aa);if(!_0x2f3645)throw new Error(_0x325292(0x151));_0x2f3645[_0x325292(0x166)]();}[_0x429c99(0x15f)](){const _0x36e223=_0x429c99,_0x4363c0=this[_0x36e223(0x158)][_0x36e223(0x155)](_0x281c01[_0x36e223(0x14e)])['getCurrentUnitOfType'](_0x281c01['UniverInstanceType'][_0x36e223(0x16b)]);if(!_0x4363c0)throw new Error('No\x20active\x20workbook\x20found.');const _0x425efd=_0x4363c0['getUnitId'](),_0xf7e74a=this[_0x36e223(0x16f)]['getLiveShareCoordinatorSync'](_0x425efd);if(!_0xf7e74a)throw new Error(_0x36e223(0x151));_0xf7e74a[_0x36e223(0x15f)]();}[_0x429c99(0x164)](){const _0x4b1952=_0x429c99,_0x1f2952=this['_injector'][_0x4b1952(0x155)](_0x281c01[_0x4b1952(0x14e)])['getCurrentUnitOfType'](_0x281c01[_0x4b1952(0x171)][_0x4b1952(0x16b)]);if(!_0x1f2952)throw new Error('No\x20active\x20workbook\x20found.');const _0x104a39=_0x1f2952[_0x4b1952(0x160)](),_0x32f56c=this[_0x4b1952(0x16f)][_0x4b1952(0x15d)](_0x104a39);if(!_0x32f56c)throw new Error(_0x4b1952(0x151));_0x32f56c[_0x4b1952(0x169)]();}[_0x429c99(0x167)](){const _0x5ed7cc=_0x429c99,_0x3f9a83=this[_0x5ed7cc(0x158)]['get'](_0x281c01[_0x5ed7cc(0x14e)])['getCurrentUnitOfType'](_0x281c01[_0x5ed7cc(0x171)][_0x5ed7cc(0x16b)]);if(!_0x3f9a83)throw new Error(_0x5ed7cc(0x161));const _0x345e30=_0x3f9a83['getUnitId'](),_0x38df62=this[_0x5ed7cc(0x16f)][_0x5ed7cc(0x15d)](_0x345e30);if(!_0x38df62)throw new Error(_0x5ed7cc(0x151));_0x38df62[_0x5ed7cc(0x167)]();}}_0x2d4b4d[_0x429c99(0x165)]['extend'](_0x4f702a);class _0x2728ff extends _0x2d4b4d[_0x429c99(0x152)]{get[_0x429c99(0x16c)](){const _0x4eec5d=_0x429c99;return _0x599c9b[_0x4eec5d(0x15c)];}}_0x2d4b4d[_0x429c99(0x152)]['extend'](_0x2728ff);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x29b4(_0xa54781,_0x20fe08){_0xa54781=_0xa54781-0x158;const _0x311c3f=_0x311c();let _0x29b41c=_0x311c3f[_0xa54781];return _0x29b41c;}function _0x311c(){const _0x59d37f=['LiveShareStatus','defineProperty','_configService','subscribe','live-share.config','button','Injector','registerInitialStateReporter','tag','185044IcLWRl','next','Fragment','set','LiveShareService','DisposableCollection','_commandService','SetWorksheetActiveOperation','path','UNIVER_SHEET','_sharedOperations','init','_unitID','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_REQUEST_HOST','LiveShareController','svg','_beIdle','_status','length','startFollowing','registerSharedOperation','useEffect','complete','trim','You\x27re\x20not\x20following\x20the\x20presenter','tryStartPresenting','getTypeOfUnitDisposed$','CommandType','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','colorChannel1','event$','http://www.w3.org/2000/svg','RxDisposable','_reporters','idle','_liveShareService','includes','SessionStatus','IDLE','UniverProLiveShare','ONLINE','FOLLOWING','569688RyqYLk','setConfig','194925qRRPQJ','_presenter','jsx','Stop\x20presenting','has','_handleOffline','getOwnPropertyDescriptor','UniverUi','30CtxWJy','_startLiveShareCoordinator','DesktopLiveShareController','NOT_FOLLOWING','merge','createElement','clear','rxjs/operators','presenter','_handleNewChangeSets','xlink:href','mergeOverrideWithDependencies','evenodd','not-following','33DTNKeq','HEADER_MENU','Plugin','Dropdown','89248YFpvFP','dispose$','type','UniverCore','string','BuiltInUIPart','_univerInstanceService','div','Present\x20this\x20document','override','useRef','_config','exports','takeUntil','UniverSheets','text','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','getValue','react','IUIPartsService','presenting','UniverDesign','forwardRef','@univerjs/design','defs','url(#$1','values','reverse','following','getInitialStates','OPERATION','attrs','OFFLINE','542313odnEiG','onCommandExecuted','object','Disposable','Start','sheet','ICommandService','createInstance','_stopPresenting','amd','touchDependencies','Start\x20following','pluginName','registerDependencies','_uiPartsService','onStarting','connectInjector','_stopFollowing','shouldShareOperation','toStringTag','asObservable','LIVESHARE_OPERATION','_collabSessionService','LiveShareCoordinator','Inject','_entities','_handleTerminate','status$','_mountLiveShare','pipe','none','useObservable','getUnitId','displayName','memberID','getLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','toDisposable','BehaviorSubject','24fnjtFA','add','disposeWithMe','getStatus','random','You\x27re\x20presenting\x20the\x20document','IUniverInstanceService','symbol','delete','UniverInstanceType','@univerjs/ui','getMemberID','dispose','send','_handleOnline','clsx','20hnvQXx','_commandDisposable','UniverProCollaboration','_fetchOperations','_handleOperation','UniverLiveSharePlugin','operators','React','3059940FtJEfJ','Stop\x20following','UNIVER_LIVE_SHARE_PLUGIN','children','data','_startPresenting','_collabSession','params','current','Button','stringify','getTypeOfUnitAdded$','Subject','UNIVER_UNKNOWN','replace','2619764JAscYr','from','stopFollowing','getConfig','_status$','IConfigService','stopPresenting','offline','_injector','fill','getCurrentTypeOfUnit$','You\x27are\x20offline.','@univerjs-pro/collaboration-client','1em','entries','onRendered','_startFollowing','executeCommand','currentColor','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','@univerjs/sheets-ui','useState','CollaborationEvent','_handleNewHost','SetZoomRatioOperation','Module','UniverSheetsUi','rxjs','PRESENTING','idSuffix','useDependency','use','assign','forEach','get','jsxs','find','_init','sessionStatus$'];_0x311c=function(){return _0x59d37f;};return _0x311c();}(function(_0x5a2232,_0x29588d){const _0x44004e=_0x29b4,_0x233eb4=_0x5a2232();while(!![]){try{const _0x1af87f=-parseInt(_0x44004e(0x1b2))/0x1+-parseInt(_0x44004e(0x185))/0x2+-parseInt(_0x44004e(0x1ba))/0x3*(parseInt(_0x44004e(0x1cc))/0x4)+-parseInt(_0x44004e(0x224))/0x5*(-parseInt(_0x44004e(0x1b0))/0x6)+-parseInt(_0x44004e(0x23b))/0x7+parseInt(_0x44004e(0x214))/0x8*(-parseInt(_0x44004e(0x1ed))/0x9)+parseInt(_0x44004e(0x22c))/0xa*(parseInt(_0x44004e(0x1c8))/0xb);if(_0x1af87f===_0x29588d)break;else _0x233eb4['push'](_0x233eb4['shift']());}catch(_0x3316bc){_0x233eb4['push'](_0x233eb4['shift']());}}}(_0x311c,0x38af8),function(_0x423b51,_0x468074){const _0x18f01c=_0x29b4;typeof exports==_0x18f01c(0x1ef)&&typeof module<'u'?_0x468074(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[_0x18f01c(0x1f6)]?define([_0x18f01c(0x1d8),'@univerjs/core',_0x18f01c(0x21e),'react/jsx-runtime',_0x18f01c(0x1e3),_0x18f01c(0x1de),'@univerjs-pro/collaboration',_0x18f01c(0x161),'@univerjs/sheets',_0x18f01c(0x170),_0x18f01c(0x1c1),_0x18f01c(0x169)],_0x468074):(_0x423b51=typeof globalThis<'u'?globalThis:_0x423b51||self,_0x468074(_0x423b51[_0x18f01c(0x1ad)]={},_0x423b51[_0x18f01c(0x1cf)],_0x423b51[_0x18f01c(0x1b9)],_0x423b51['React'],_0x423b51[_0x18f01c(0x1e1)],_0x423b51[_0x18f01c(0x22b)],_0x423b51[_0x18f01c(0x226)],_0x423b51['UniverProCollaborationClient'],_0x423b51[_0x18f01c(0x1da)],_0x423b51['rxjs'],_0x423b51[_0x18f01c(0x170)][_0x18f01c(0x22a)],_0x423b51[_0x18f01c(0x16f)]));}(this,function(_0x58e433,_0x367506,_0x4d3b49,_0x330319,_0x565884,_0x228ca9,_0x445828,_0x41d7d3,_0x413e8c,_0x417a0a,_0x44af1a,_0x2d6db0){'use strict';const _0x5ee196=_0x29b4;var _0x1f4fec=Object['defineProperty'],_0x882113=(_0x5763c4,_0x48a86,_0x322a8b)=>_0x48a86 in _0x5763c4?_0x1f4fec(_0x5763c4,_0x48a86,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x322a8b}):_0x5763c4[_0x48a86]=_0x322a8b,_0x5b076a=(_0xbeb296,_0x943f34,_0x4d53dd)=>_0x882113(_0xbeb296,typeof _0x943f34!=_0x5ee196(0x21b)?_0x943f34+'':_0x943f34,_0x4d53dd);function _0x27b3d8({ref:_0x582cc1,..._0x5ee6e8}){const _0x59f9bc=_0x5ee196,{icon:_0x417be9,id:_0xcdac54,className:_0x38f23b,extend:_0x2b96f4,..._0x369ddd}=_0x5ee6e8,_0x3d59d6=('univerjs-icon\x20univerjs-icon-'+_0xcdac54+'\x20'+(_0x38f23b||''))[_0x59f9bc(0x19d)](),_0x1a9507=_0x228ca9[_0x59f9bc(0x1d6)]('_'+_0x48f63e());return _0x25b8a6(_0x417be9,''+_0xcdac54,{'defIds':_0x417be9['defIds'],'idSuffix':_0x1a9507['current']},{'ref':_0x582cc1,'className':_0x3d59d6,..._0x369ddd},_0x2b96f4);}function _0x25b8a6(_0xb70ede,_0x1fafc4,_0x1614c9,_0x349ae2,_0xd4e14d){const _0x5da222=_0x5ee196;return _0x228ca9[_0x5da222(0x1bf)](_0xb70ede[_0x5da222(0x184)],{'key':_0x1fafc4,..._0x1abe9f(_0xb70ede,_0x1614c9,_0xd4e14d),..._0x349ae2},(_0x280d4c(_0xb70ede,_0x1614c9)[_0x5da222(0x22f)]||[])['map']((_0x2762ea,_0x421947)=>_0x25b8a6(_0x2762ea,_0x1fafc4+'-'+_0xb70ede['tag']+'-'+_0x421947,_0x1614c9,void 0x0,_0xd4e14d)));}function _0x1abe9f(_0x4bd72b,_0x17dd4e,_0x34bf8a){const _0x44d6e9=_0x5ee196,_0x4bca32={..._0x4bd72b[_0x44d6e9(0x1eb)]};_0x34bf8a!=null&&_0x34bf8a[_0x44d6e9(0x1a3)]&&_0x4bca32[_0x44d6e9(0x15e)]===_0x44d6e9(0x1a3)&&(_0x4bca32[_0x44d6e9(0x15e)]=_0x34bf8a[_0x44d6e9(0x1a3)]),_0x4bd72b[_0x44d6e9(0x184)]==='mask'&&_0x4bca32['id']&&(_0x4bca32['id']=_0x4bca32['id']+_0x17dd4e[_0x44d6e9(0x172)]),Object[_0x44d6e9(0x163)](_0x4bca32)[_0x44d6e9(0x176)](([_0x4474c7,_0x20665d])=>{const _0x1e45b9=_0x44d6e9;_0x4474c7==='mask'&&typeof _0x20665d==_0x1e45b9(0x1d0)&&(_0x4bca32[_0x4474c7]=_0x20665d[_0x1e45b9(0x23a)](/url\(#(.*)\)/,_0x1e45b9(0x1e5)+_0x17dd4e[_0x1e45b9(0x172)]+')'));});const {defIds:_0xfb570a}=_0x17dd4e;return!_0xfb570a||_0xfb570a[_0x44d6e9(0x198)]===0x0||(_0x4bd72b['tag']===_0x44d6e9(0x174)&&_0x4bca32[_0x44d6e9(0x1c4)]&&(_0x4bca32['xlink:href']=_0x4bca32['xlink:href']+_0x17dd4e[_0x44d6e9(0x172)]),Object[_0x44d6e9(0x163)](_0x4bca32)[_0x44d6e9(0x176)](([_0x18b576,_0x2c49aa])=>{const _0x217b9a=_0x44d6e9;typeof _0x2c49aa=='string'&&(_0x4bca32[_0x18b576]=_0x2c49aa[_0x217b9a(0x23a)](/url\(#(.*)\)/,'url(#$1'+_0x17dd4e[_0x217b9a(0x172)]+')'));})),_0x4bca32;}function _0x280d4c(_0x1e1a7f,_0x50fca1){const _0x8c59e1=_0x5ee196;var _0x42b534;const {defIds:_0x256d27}=_0x50fca1;return!_0x256d27||_0x256d27[_0x8c59e1(0x198)]===0x0?_0x1e1a7f:_0x1e1a7f[_0x8c59e1(0x184)]===_0x8c59e1(0x1e4)&&((_0x42b534=_0x1e1a7f['children'])!=null&&_0x42b534[_0x8c59e1(0x198)])?{..._0x1e1a7f,'children':_0x1e1a7f[_0x8c59e1(0x22f)]['map'](_0x2e29bd=>typeof _0x2e29bd[_0x8c59e1(0x1eb)]['id']==_0x8c59e1(0x1d0)&&_0x256d27&&_0x256d27[_0x8c59e1(0x1aa)](_0x2e29bd['attrs']['id'])?{..._0x2e29bd,'attrs':{..._0x2e29bd['attrs'],'id':_0x2e29bd[_0x8c59e1(0x1eb)]['id']+_0x50fca1[_0x8c59e1(0x172)]}}:_0x2e29bd)}:_0x1e1a7f;}function _0x48f63e(){const _0x564a4d=_0x5ee196;return Math[_0x564a4d(0x218)]()['toString'](0x24)['substring'](0x2,0x8);}_0x27b3d8[_0x5ee196(0x20e)]='UniverIcon';const _0x8c7530={'tag':_0x5ee196(0x195),'attrs':{'xmlns':_0x5ee196(0x1a5),'fill':_0x5ee196(0x20b),'viewBox':'0\x200\x2017\x2017','width':_0x5ee196(0x162),'height':'1em'},'children':[{'tag':_0x5ee196(0x18d),'attrs':{'fill':_0x5ee196(0x167),'d':_0x5ee196(0x1dc)}},{'tag':_0x5ee196(0x18d),'attrs':{'fill':_0x5ee196(0x167),'d':_0x5ee196(0x168),'fillRule':_0x5ee196(0x1c6),'clipRule':'evenodd'}}]},_0x2832a0=_0x228ca9[_0x5ee196(0x1e2)](function(_0x4fd8af,_0x72dd2f){const _0x5da65c=_0x5ee196;return _0x228ca9[_0x5da65c(0x1bf)](_0x27b3d8,Object[_0x5da65c(0x175)]({},_0x4fd8af,{'id':'live-share-icon','ref':_0x72dd2f,'icon':_0x8c7530}));});_0x2832a0['displayName']='LiveShareIcon';class _0x5f5b0c extends _0x367506[_0x5ee196(0x1f0)]{constructor(){const _0x2f33ae=_0x5ee196;super(...arguments),_0x5b076a(this,_0x2f33ae(0x18f),new Set()),_0x5b076a(this,_0x2f33ae(0x1a7),new Set());}[_0x5ee196(0x19a)](_0x3ba75e){const _0x127477=_0x5ee196;return this[_0x127477(0x18f)][_0x127477(0x215)](_0x3ba75e),_0x367506['toDisposable'](()=>this['_sharedOperations'][_0x127477(0x21c)](_0x3ba75e));}[_0x5ee196(0x183)](_0x563374){const _0x29e30b=_0x5ee196;return this['_reporters'][_0x29e30b(0x215)](_0x563374),_0x367506[_0x29e30b(0x212)](()=>this[_0x29e30b(0x1a7)][_0x29e30b(0x21c)](_0x563374));}[_0x5ee196(0x1ff)](_0x285e2f){const _0x2fb560=_0x5ee196;return this[_0x2fb560(0x18f)][_0x2fb560(0x1b6)](_0x285e2f);}[_0x5ee196(0x1e9)](_0x8bc88c){const _0x3887ac=_0x5ee196;return Array[_0x3887ac(0x23c)](this[_0x3887ac(0x1a7)])['map'](_0x4f10bf=>_0x4f10bf(_0x8bc88c));}}var _0x59e39a=Object[_0x5ee196(0x1b8)],_0x806730=(_0x292801,_0x57885d,_0x5475f7,_0x3cb6e8)=>{for(var _0x4f6e1d=_0x3cb6e8>0x1?void 0x0:_0x3cb6e8?_0x59e39a(_0x57885d,_0x5475f7):_0x57885d,_0x5627b2=_0x292801['length']-0x1,_0x34b54d;_0x5627b2>=0x0;_0x5627b2--)(_0x34b54d=_0x292801[_0x5627b2])&&(_0x4f6e1d=_0x34b54d(_0x4f6e1d)||_0x4f6e1d);return _0x4f6e1d;},_0x567390=(_0x2fe58f,_0x4355fb)=>(_0x4a77c9,_0xd4232a)=>_0x4355fb(_0x4a77c9,_0xd4232a,_0x2fe58f);_0x58e433[_0x5ee196(0x194)]=class extends _0x367506[_0x5ee196(0x1a6)]{constructor(_0x44fb21,_0x5d69d7,_0x50162d){const _0xfd6318=_0x5ee196;super(),_0x5b076a(this,_0xfd6318(0x206),new Map()),(this[_0xfd6318(0x1d2)]=_0x44fb21,this[_0xfd6318(0x15d)]=_0x5d69d7,this[_0xfd6318(0x203)]=_0x50162d,this[_0xfd6318(0x17a)]());}async[_0x5ee196(0x210)](_0x188e27){const _0x19f534=_0x5ee196;return this['_entities'][_0x19f534(0x1b6)](_0x188e27)||await this[_0x19f534(0x1bb)](_0x188e27),this[_0x19f534(0x206)][_0x19f534(0x177)](_0x188e27);}['getLiveShareCoordinatorSync'](_0x4cd45b){const _0x3b2cc7=_0x5ee196;var _0x24a987;return(_0x24a987=this[_0x3b2cc7(0x206)][_0x3b2cc7(0x177)](_0x4cd45b))!=null?_0x24a987:null;}['_init'](){const _0x38cb68=_0x5ee196;this[_0x38cb68(0x1d2)][_0x38cb68(0x237)](_0x367506['UniverInstanceType'][_0x38cb68(0x18e)])[_0x38cb68(0x20a)](_0x44af1a[_0x38cb68(0x1d9)](this[_0x38cb68(0x1cd)]))[_0x38cb68(0x17f)](async _0x34743c=>{const _0x1c43fb=_0x38cb68,_0x2ae98a=_0x34743c[_0x1c43fb(0x20d)]();this['_entities']['has'](_0x2ae98a)||this[_0x1c43fb(0x1bb)](_0x2ae98a);}),this[_0x38cb68(0x1d2)][_0x38cb68(0x1a0)](_0x367506[_0x38cb68(0x21d)][_0x38cb68(0x18e)])['pipe'](_0x44af1a[_0x38cb68(0x1d9)](this['dispose$']))['subscribe'](_0x28b15f=>{const _0xbb9017=_0x38cb68,_0xfc5b96=_0x28b15f[_0xbb9017(0x20d)](),_0x24cb99=this[_0xbb9017(0x206)][_0xbb9017(0x177)](_0xfc5b96);_0x24cb99==null||_0x24cb99['dispose']();});}async[_0x5ee196(0x1bb)](_0x456736){const _0x12e376=_0x5ee196,_0x5d0c5f=await this[_0x12e376(0x203)]['requireSession'](_0x456736),_0x4a1ec8=this[_0x12e376(0x15d)][_0x12e376(0x1f4)](_0x58e433[_0x12e376(0x204)],_0x456736,_0x5d0c5f);return _0x4a1ec8[_0x12e376(0x190)](),this[_0x12e376(0x206)][_0x12e376(0x188)](_0x456736,_0x4a1ec8),_0x4a1ec8;}},_0x58e433['LiveShareController']=_0x806730([_0x567390(0x0,_0x367506[_0x5ee196(0x21a)]),_0x567390(0x1,_0x367506['Inject'](_0x367506[_0x5ee196(0x182)])),_0x567390(0x2,_0x367506[_0x5ee196(0x205)](_0x41d7d3['CollaborationSessionService']))],_0x58e433[_0x5ee196(0x194)]);var _0x38cfeb=(_0xa2183f=>(_0xa2183f[_0x5ee196(0x1ec)]='offline',_0xa2183f['IDLE']=_0x5ee196(0x1a8),_0xa2183f[_0x5ee196(0x1af)]=_0x5ee196(0x1e8),_0xa2183f[_0x5ee196(0x1bd)]=_0x5ee196(0x1c7),_0xa2183f[_0x5ee196(0x171)]=_0x5ee196(0x1e0),_0xa2183f))(_0x38cfeb||{});const _0x1eef87=_0x5ee196(0x211),_0xd73e38=0xc8;_0x58e433['LiveShareCoordinator']=class extends _0x367506[_0x5ee196(0x1a6)]{constructor(_0x43cadb,_0x690919,_0x1c4947,_0x24abd9,_0x24e78e){const _0x558f2a=_0x5ee196;super(),_0x5b076a(this,'_status$',new _0x417a0a[(_0x558f2a(0x213))](_0x558f2a(0x1a8))),_0x5b076a(this,_0x558f2a(0x208),this[_0x558f2a(0x159)][_0x558f2a(0x201)]()),_0x5b076a(this,_0x558f2a(0x17a),!0x1),_0x5b076a(this,_0x558f2a(0x225),null),_0x5b076a(this,_0x558f2a(0x1b3),null),(this[_0x558f2a(0x191)]=_0x43cadb,this[_0x558f2a(0x232)]=_0x690919,this[_0x558f2a(0x17e)]=_0x1c4947,this['_liveShareService']=_0x24abd9,this['_commandService']=_0x24e78e);}get['_status'](){const _0x4ba4f0=_0x5ee196;return this[_0x4ba4f0(0x159)][_0x4ba4f0(0x1dd)]();}['dispose'](){const _0x593e8a=_0x5ee196;var _0x571b83;(_0x571b83=this[_0x593e8a(0x225)])==null||_0x571b83['dispose'](),this[_0x593e8a(0x159)]['next'](_0x593e8a(0x1a8)),this[_0x593e8a(0x159)][_0x593e8a(0x19c)]();}[_0x5ee196(0x217)](){return this['_status'];}[_0x5ee196(0x190)](){const _0x28e24c=_0x5ee196;this[_0x28e24c(0x17a)]||(this[_0x28e24c(0x17a)]=!0x0,this['_collabSession'][_0x28e24c(0x17b)][_0x28e24c(0x20a)](_0x44af1a['takeUntil'](this[_0x28e24c(0x1cd)]))[_0x28e24c(0x17f)](_0x1c0cf5=>{const _0x48cbd3=_0x28e24c;switch(_0x1c0cf5){case _0x41d7d3[_0x48cbd3(0x1ab)][_0x48cbd3(0x1ec)]:this[_0x48cbd3(0x1b7)]();break;case _0x41d7d3[_0x48cbd3(0x1ab)][_0x48cbd3(0x1ae)]:this[_0x48cbd3(0x222)]();break;}}),this[_0x28e24c(0x232)][_0x28e24c(0x1a4)][_0x28e24c(0x20a)](_0x44af1a[_0x28e24c(0x1d9)](this[_0x28e24c(0x1cd)]))[_0x28e24c(0x17f)](_0x1a0767=>{const _0x24c567=_0x28e24c,{eventID:_0x55e710}=_0x1a0767;switch(_0x55e710){case _0x445828['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x24c567(0x16c)](_0x1a0767);break;case _0x445828[_0x24c567(0x16b)][_0x24c567(0x202)]:this['_handleOperation'](_0x1a0767);break;case _0x445828['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x24c567(0x207)]();break;case _0x445828['CollaborationEvent']['NEW_CHANGESETS']:this[_0x24c567(0x1c3)](_0x1a0767);break;}}));}[_0x5ee196(0x19f)](){const _0x5135bd=_0x5ee196;this[_0x5135bd(0x232)]['send']({'eventID':_0x445828['CollaborationEvent'][_0x5135bd(0x193)],'data':{'unitID':this['_unitID'],'userID':this[_0x5135bd(0x232)][_0x5135bd(0x21f)]()}},this['_unitID']);}['stopPresenting'](){const _0x4780a7=_0x5ee196;this[_0x4780a7(0x197)]===_0x4780a7(0x1e0)&&(this[_0x4780a7(0x159)][_0x4780a7(0x186)](_0x4780a7(0x1a8)),this[_0x4780a7(0x232)][_0x4780a7(0x221)]({'eventID':_0x445828[_0x4780a7(0x16b)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x4780a7(0x191)]}},this[_0x4780a7(0x191)]));}[_0x5ee196(0x199)](){const _0xfea06b=_0x5ee196;this[_0xfea06b(0x197)]==='not-following'&&(this[_0xfea06b(0x159)][_0xfea06b(0x186)](_0xfea06b(0x1e8)),this['_startFollowing']());}[_0x5ee196(0x23d)](){const _0x1fea4e=_0x5ee196;this['_status']==='following'&&this[_0x1fea4e(0x1fe)]();}[_0x5ee196(0x16c)](_0x2e6ea1){const _0x11474a=_0x5ee196,{presenter:_0x232d67}=_0x2e6ea1[_0x11474a(0x230)],_0x29ec14=this[_0x11474a(0x232)]['getMemberID']();this[_0x11474a(0x1b3)]=_0x232d67,_0x232d67===_0x29ec14?(this[_0x11474a(0x1fe)](),this['_startPresenting']()):this[_0x11474a(0x197)]!==_0x11474a(0x1c7)&&(this['_stopPresenting'](),this[_0x11474a(0x165)]());}['_fetchOperations'](){const _0x5dca28=_0x5ee196,_0x4c8324={'eventID':_0x445828['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x5dca28(0x232)][_0x5dca28(0x221)](_0x4c8324,this[_0x5dca28(0x191)]);}[_0x5ee196(0x207)](){const _0x67fc1e=_0x5ee196;this[_0x67fc1e(0x1b3)]=null,this[_0x67fc1e(0x197)]!==_0x67fc1e(0x1e0)&&this[_0x67fc1e(0x196)]();}['_handleNewChangeSets'](_0x31531a){const _0x32285c=_0x5ee196;if(this['_status']===_0x32285c(0x1e8)&&this[_0x32285c(0x1b3)]===_0x31531a['data'][_0x32285c(0x20f)]){const _0x37a7e3=_0x445828['parseProtocolChangeset'](_0x31531a['data'])['mutations'][_0x32285c(0x1e7)]()[_0x32285c(0x179)](_0x425dc4=>_0x425dc4['id']===_0x413e8c['InsertSheetMutation']['id']);if(_0x37a7e3){const _0x381f82=_0x37a7e3[_0x32285c(0x233)]['unitId'],_0x2a78e7=_0x37a7e3[_0x32285c(0x233)][_0x32285c(0x1f2)]['id'];setTimeout(()=>{const _0xc3ea4e=_0x32285c;this['_commandService'][_0xc3ea4e(0x166)](_0x413e8c[_0xc3ea4e(0x18c)]['id'],{'unitId':_0x381f82,'subUnitId':_0x2a78e7},{'fromCollab':!0x0});});}}}[_0x5ee196(0x231)](){const _0x2014c3=_0x5ee196;this[_0x2014c3(0x159)][_0x2014c3(0x186)](_0x2014c3(0x1e0));const _0x4f1d66=new Map(),_0xf0f655=this[_0x2014c3(0x225)]=new _0x367506[(_0x2014c3(0x18a))]();_0xf0f655[_0x2014c3(0x215)](_0x367506[_0x2014c3(0x212)](()=>{const _0x5957cb=_0x2014c3;_0x4f1d66[_0x5957cb(0x176)](_0x1944eb=>_0x1944eb[_0x5957cb(0x19c)]()),_0x4f1d66[_0x5957cb(0x1c0)]();})),_0xf0f655['add'](this[_0x2014c3(0x18b)][_0x2014c3(0x1ee)](_0x1ebb3c=>{const _0xb7216f=_0x2014c3;var _0x4002da;if(_0x1ebb3c['type']!==_0x367506[_0xb7216f(0x1a1)][_0xb7216f(0x1ea)]||!this[_0xb7216f(0x1a9)][_0xb7216f(0x1ff)](_0x1ebb3c['id']))return;const {id:_0x22dbfb}=_0x1ebb3c;let _0x5a5c75;_0x4f1d66[_0xb7216f(0x1b6)](_0x22dbfb)?_0x5a5c75=_0x4f1d66[_0xb7216f(0x177)](_0x22dbfb):(_0x5a5c75=new _0x417a0a[(_0xb7216f(0x238))](),_0x4f1d66[_0xb7216f(0x188)](_0x22dbfb,_0x5a5c75),_0x5a5c75[_0xb7216f(0x20a)](_0x44af1a['throttleTime']((_0x4002da=this['_configService'][_0xb7216f(0x158)](_0x1eef87))!=null?_0x4002da:_0xd73e38,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xb7216f(0x17f)](_0x1e4fb1=>{const _0xb77d33=_0xb7216f;this[_0xb77d33(0x232)][_0xb77d33(0x221)]({'eventID':_0x445828['CollaborationEvent'][_0xb77d33(0x202)],'data':{'unitID':this[_0xb77d33(0x191)],'operations':{[_0x1e4fb1['id']]:{'id':_0x1e4fb1['id'],'params':JSON['stringify'](_0x1e4fb1[_0xb77d33(0x233)])}}}},this['_unitID']);})),_0x5a5c75[_0xb7216f(0x186)](_0x1ebb3c);})),this['_liveShareService']['getInitialStates'](this[_0x2014c3(0x191)])[_0x2014c3(0x176)](_0x5e21c2=>this[_0x2014c3(0x232)]['send']({'eventID':_0x445828[_0x2014c3(0x16b)][_0x2014c3(0x202)],'data':{'unitID':this['_unitID'],'operations':{[_0x5e21c2['id']]:{'id':_0x5e21c2['id'],'params':JSON[_0x2014c3(0x236)](_0x5e21c2[_0x2014c3(0x233)])}}}},this[_0x2014c3(0x191)]));}[_0x5ee196(0x1f5)](){const _0xb6f6ff=_0x5ee196;var _0x9bf6d9;this['_status$'][_0xb6f6ff(0x186)](_0xb6f6ff(0x1a8)),(_0x9bf6d9=this[_0xb6f6ff(0x225)])==null||_0x9bf6d9[_0xb6f6ff(0x220)](),this[_0xb6f6ff(0x225)]=null;}[_0x5ee196(0x165)](){const _0x16aaf9=_0x5ee196;var _0x57dbfd;(_0x57dbfd=this[_0x16aaf9(0x225)])==null||_0x57dbfd[_0x16aaf9(0x220)](),this[_0x16aaf9(0x159)][_0x16aaf9(0x186)](_0x16aaf9(0x1e8));}[_0x5ee196(0x196)](){const _0x4dd8aa=_0x5ee196;var _0x73c20b;this[_0x4dd8aa(0x159)]['next'](_0x4dd8aa(0x1a8)),(_0x73c20b=this[_0x4dd8aa(0x225)])==null||_0x73c20b[_0x4dd8aa(0x220)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x53792a=_0x5ee196;var _0x3a2c69;this[_0x53792a(0x159)][_0x53792a(0x186)]('not-following'),(_0x3a2c69=this[_0x53792a(0x225)])==null||_0x3a2c69[_0x53792a(0x220)]();}[_0x5ee196(0x228)](_0x3e00c9){const _0x4bed1f=_0x5ee196;if([_0x4bed1f(0x1e0),_0x4bed1f(0x1c7),_0x4bed1f(0x15c)]['includes'](this['_status'])||!_0x3e00c9[_0x4bed1f(0x230)]['presenter']||_0x3e00c9[_0x4bed1f(0x230)][_0x4bed1f(0x1c2)]===this[_0x4bed1f(0x232)][_0x4bed1f(0x21f)]())return;this[_0x4bed1f(0x197)]===_0x4bed1f(0x1a8)&&this[_0x4bed1f(0x165)]();const _0x3fce23=_0x3e00c9[_0x4bed1f(0x230)]['operations'];Object[_0x4bed1f(0x1e6)](_0x3fce23)[_0x4bed1f(0x176)](_0x1a3c9a=>{const _0x4586bf=_0x4bed1f;this['_commandService']['executeCommand'](_0x1a3c9a['id'],_0x1a3c9a[_0x4586bf(0x233)]?JSON['parse'](_0x1a3c9a['params']):null,{'fromCollab':!0x0});});}[_0x5ee196(0x1b7)](){const _0x24ed2a=_0x5ee196;var _0x36d4bb;this['_status$'][_0x24ed2a(0x186)]('offline'),(_0x36d4bb=this[_0x24ed2a(0x225)])==null||_0x36d4bb[_0x24ed2a(0x220)]();}[_0x5ee196(0x222)](){const _0x1bbc7d=_0x5ee196;this[_0x1bbc7d(0x159)][_0x1bbc7d(0x186)](_0x1bbc7d(0x1a8)),this[_0x1bbc7d(0x227)]();}},_0x58e433[_0x5ee196(0x204)]=_0x806730([_0x567390(0x2,_0x367506[_0x5ee196(0x15a)]),_0x567390(0x3,_0x367506['Inject'](_0x5f5b0c)),_0x567390(0x4,_0x367506[_0x5ee196(0x1f3)])],_0x58e433['LiveShareCoordinator']);function _0x46904a(){const _0x2ab99f=_0x5ee196,_0x2e8b06=_0x4d3b49[_0x2ab99f(0x173)](_0x58e433[_0x2ab99f(0x194)]),_0x1346c9=_0x4d3b49[_0x2ab99f(0x173)](_0x367506[_0x2ab99f(0x21a)]),_0x3f534d=_0x4d3b49[_0x2ab99f(0x20c)](()=>_0x1346c9[_0x2ab99f(0x15f)](_0x367506[_0x2ab99f(0x21d)][_0x2ab99f(0x18e)]),void 0x0,!0x1,[]),[_0xe87f02,_0x3545e9]=_0x228ca9[_0x2ab99f(0x16a)](null),[_0x255f99,_0x46c504]=_0x228ca9[_0x2ab99f(0x16a)](_0x38cfeb[_0x2ab99f(0x1ac)]),_0x41e962=_0x228ca9['useRef'](null);return _0x228ca9[_0x2ab99f(0x19b)](()=>(_0x3f534d&&_0x2e8b06[_0x2ab99f(0x210)](_0x3f534d[_0x2ab99f(0x20d)]())['then'](_0x442264=>{const _0x5581f0=_0x2ab99f;_0x3545e9(_0x442264),_0x41e962[_0x5581f0(0x234)]=_0x442264['status$'][_0x5581f0(0x17f)](_0x32d7db=>{_0x46c504(_0x32d7db);});}),()=>{const _0x314709=_0x2ab99f;var _0x1b0068;(_0x1b0068=_0x41e962[_0x314709(0x234)])==null||_0x1b0068['unsubscribe'](),_0x41e962[_0x314709(0x234)]=null;}),[_0x3f534d,_0x2e8b06]),_0xe87f02?_0x330319[_0x2ab99f(0x1b4)](_0x565884[_0x2ab99f(0x1cb)],{'align':'end','disabled':_0x255f99===_0x38cfeb[_0x2ab99f(0x1ec)],'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':_0x330319[_0x2ab99f(0x1b4)](_0x41b56d,{'status':_0x255f99,'coordinator':_0xe87f02}),'children':_0x330319[_0x2ab99f(0x1b4)](_0x2ab99f(0x181),{'className':_0x565884[_0x2ab99f(0x223)](_0x2ab99f(0x1a2),{'univer-cursor-not-allowed':_0x255f99===_0x38cfeb['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x255f99!==_0x38cfeb[_0x2ab99f(0x1ec)]}),'type':_0x2ab99f(0x181),'children':_0x330319[_0x2ab99f(0x1b4)](_0x2832a0,{'className':'univer-size-4'})})}):null;}function _0x41b56d(_0x26cae6){const _0x5c1046=_0x5ee196,{status:_0x55edf6,coordinator:_0x42d01a}=_0x26cae6;switch(_0x55edf6){case _0x38cfeb['IDLE']:return _0x330319[_0x5c1046(0x1b4)](_0x36899d,{'coordinator':_0x42d01a});case _0x38cfeb['FOLLOWING']:return _0x330319[_0x5c1046(0x1b4)](_0xe95186,{'coordinator':_0x42d01a});case _0x38cfeb[_0x5c1046(0x1bd)]:return _0x330319[_0x5c1046(0x1b4)](_0x17420b,{'coordinator':_0x42d01a});case _0x38cfeb[_0x5c1046(0x1ec)]:return _0x330319[_0x5c1046(0x1b4)](_0x1b9f8b,{});case _0x38cfeb[_0x5c1046(0x171)]:return _0x330319[_0x5c1046(0x1b4)](_0x15440f,{'coordinator':_0x42d01a});default:return null;}}function _0x36899d(_0x362f03){const _0x2c479d=_0x5ee196,{coordinator:_0x57b5f6}=_0x362f03;return _0x330319[_0x2c479d(0x178)](_0x330319[_0x2c479d(0x187)],{'children':[_0x330319[_0x2c479d(0x1b4)](_0x2c479d(0x1d3),{'className':_0x2c479d(0x192),'children':_0x2c479d(0x1d4)}),_0x330319[_0x2c479d(0x1b4)](_0x565884[_0x2c479d(0x235)],{'onClick':()=>_0x57b5f6[_0x2c479d(0x19f)](),'children':_0x2c479d(0x1f1)})]});}function _0xe95186(_0x38d2c9){const _0x5e5867=_0x5ee196,{coordinator:_0x5e784f}=_0x38d2c9;return _0x330319['jsxs'](_0x330319[_0x5e5867(0x187)],{'children':[_0x330319[_0x5e5867(0x1b4)](_0x5e5867(0x1d3),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x330319[_0x5e5867(0x1b4)](_0x565884[_0x5e5867(0x235)],{'onClick':()=>_0x5e784f[_0x5e5867(0x23d)](),'children':_0x5e5867(0x22d)})]});}function _0x17420b(_0x319aa0){const _0x38b2de=_0x5ee196,{coordinator:_0x5d9dbd}=_0x319aa0;return _0x330319[_0x38b2de(0x178)](_0x330319['Fragment'],{'children':[_0x330319[_0x38b2de(0x1b4)](_0x38b2de(0x1d3),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x38b2de(0x19e)}),_0x330319[_0x38b2de(0x1b4)](_0x565884[_0x38b2de(0x235)],{'variant':_0x38b2de(0x1db),'onClick':()=>_0x5d9dbd[_0x38b2de(0x199)](),'children':_0x38b2de(0x1f8)})]});}function _0x15440f(_0x545c68){const _0x3f411f=_0x5ee196,{coordinator:_0x5764bd}=_0x545c68;return _0x330319[_0x3f411f(0x178)](_0x330319[_0x3f411f(0x187)],{'children':[_0x330319['jsx']('div',{'className':_0x3f411f(0x192),'children':_0x3f411f(0x219)}),_0x330319[_0x3f411f(0x1b4)](_0x565884[_0x3f411f(0x235)],{'variant':'default','onClick':()=>_0x5764bd[_0x3f411f(0x15b)](),'children':_0x3f411f(0x1b5)})]});}function _0x1b9f8b(){const _0x26551a=_0x5ee196;return _0x330319[_0x26551a(0x1b4)](_0x330319['Fragment'],{'children':_0x26551a(0x160)});}var _0x434359=Object[_0x5ee196(0x1b8)],_0x1d51cf=(_0x4174b3,_0x30ee60,_0x592692,_0x587dd3)=>{const _0x3cc10d=_0x5ee196;for(var _0x25958e=_0x587dd3>0x1?void 0x0:_0x587dd3?_0x434359(_0x30ee60,_0x592692):_0x30ee60,_0x4df04d=_0x4174b3[_0x3cc10d(0x198)]-0x1,_0x4761ac;_0x4df04d>=0x0;_0x4df04d--)(_0x4761ac=_0x4174b3[_0x4df04d])&&(_0x25958e=_0x4761ac(_0x25958e)||_0x25958e);return _0x25958e;},_0x2fa334=(_0x5eceb6,_0x5a4db5)=>(_0x6c59e3,_0x242f15)=>_0x5a4db5(_0x6c59e3,_0x242f15,_0x5eceb6);_0x58e433['DesktopLiveShareController']=class extends _0x367506[_0x5ee196(0x1f0)]{constructor(_0x524208,_0x335fb3){const _0x101287=_0x5ee196;super(),this['_injector']=_0x524208,this[_0x101287(0x1fb)]=_0x335fb3,this[_0x101287(0x209)]();}[_0x5ee196(0x209)](){const _0x57723e=_0x5ee196;this[_0x57723e(0x216)](this[_0x57723e(0x1fb)]['registerComponent'](_0x4d3b49[_0x57723e(0x1d1)][_0x57723e(0x1c9)],()=>_0x4d3b49[_0x57723e(0x1fd)](_0x46904a,this[_0x57723e(0x15d)])));}},_0x58e433[_0x5ee196(0x1bc)]=_0x1d51cf([_0x2fa334(0x0,_0x367506[_0x5ee196(0x205)](_0x367506['Injector'])),_0x2fa334(0x1,_0x4d3b49[_0x5ee196(0x1df)])],_0x58e433[_0x5ee196(0x1bc)]);const _0x4fbf9f=_0x5ee196(0x180),_0x323061={};var _0x5bf946=Object[_0x5ee196(0x1b8)],_0x4b954e=(_0x474916,_0x4ccd4e,_0x3d36cd,_0x5ca9b9)=>{const _0x5d6511=_0x5ee196;for(var _0x5d69fd=_0x5ca9b9>0x1?void 0x0:_0x5ca9b9?_0x5bf946(_0x4ccd4e,_0x3d36cd):_0x4ccd4e,_0x133a83=_0x474916[_0x5d6511(0x198)]-0x1,_0x53a415;_0x133a83>=0x0;_0x133a83--)(_0x53a415=_0x474916[_0x133a83])&&(_0x5d69fd=_0x53a415(_0x5d69fd)||_0x5d69fd);return _0x5d69fd;},_0x2bf3ef=(_0x5961a9,_0x13b625)=>(_0x177b2d,_0x45a526)=>_0x13b625(_0x177b2d,_0x45a526,_0x5961a9);let _0xca94c1=class extends _0x367506['Disposable']{constructor(_0x254032){const _0x45aea9=_0x5ee196;super(),this['_liveShareService']=_0x254032,this[_0x45aea9(0x17a)]();}['_init'](){const _0x5b0410=_0x5ee196;[_0x2d6db0[_0x5b0410(0x16d)]['id'],_0x2d6db0['SetScrollOperation']['id'],_0x413e8c[_0x5b0410(0x18c)]['id']][_0x5b0410(0x176)](_0x25148f=>{const _0x146ce9=_0x5b0410;this[_0x146ce9(0x216)](this[_0x146ce9(0x1a9)]['registerSharedOperation'](_0x25148f));});}};_0xca94c1=_0x4b954e([_0x2bf3ef(0x0,_0x367506[_0x5ee196(0x205)](_0x5f5b0c))],_0xca94c1);var _0x53671f=Object['defineProperty'],_0x33a891=Object[_0x5ee196(0x1b8)],_0x4f899b=(_0x2b3e56,_0x3bc008,_0x237052)=>_0x3bc008 in _0x2b3e56?_0x53671f(_0x2b3e56,_0x3bc008,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x237052}):_0x2b3e56[_0x3bc008]=_0x237052,_0x314900=(_0x1fefa9,_0x130591,_0x3786c5,_0x168c98)=>{for(var _0x29a9d0=_0x168c98>0x1?void 0x0:_0x168c98?_0x33a891(_0x130591,_0x3786c5):_0x130591,_0x129de2=_0x1fefa9['length']-0x1,_0x2f3006;_0x129de2>=0x0;_0x129de2--)(_0x2f3006=_0x1fefa9[_0x129de2])&&(_0x29a9d0=_0x2f3006(_0x29a9d0)||_0x29a9d0);return _0x29a9d0;},_0x91a780=(_0x5c3ac6,_0x361de0)=>(_0x347340,_0x31d981)=>_0x361de0(_0x347340,_0x31d981,_0x5c3ac6),_0x45eec5=(_0x754153,_0x1111d4,_0x1e2580)=>_0x4f899b(_0x754153,typeof _0x1111d4!=_0x5ee196(0x21b)?_0x1111d4+'':_0x1111d4,_0x1e2580);const _0x3a480c=_0x5ee196(0x22e);_0x58e433[_0x5ee196(0x229)]=class extends _0x367506[_0x5ee196(0x1ca)]{constructor(_0x51a816=_0x323061,_0x51c120,_0x5d0fd3){const _0x52ed02=_0x5ee196;super(),this[_0x52ed02(0x1d7)]=_0x51a816,this[_0x52ed02(0x15d)]=_0x51c120,this[_0x52ed02(0x17e)]=_0x5d0fd3;const {..._0x494341}=_0x367506[_0x52ed02(0x1be)]({},_0x323061,this[_0x52ed02(0x1d7)]);this['_configService'][_0x52ed02(0x1b1)](_0x4fbf9f,_0x494341);}[_0x5ee196(0x1fc)](){const _0x4eaec7=_0x5ee196;_0x367506[_0x4eaec7(0x1fa)](this[_0x4eaec7(0x15d)],_0x367506[_0x4eaec7(0x1c5)]([[_0x5f5b0c],[_0x58e433['LiveShareController']],[_0xca94c1],[_0x58e433[_0x4eaec7(0x1bc)]]],this[_0x4eaec7(0x1d7)][_0x4eaec7(0x1d5)])),_0x367506[_0x4eaec7(0x1f7)](this['_injector'],[[_0xca94c1]]);}[_0x5ee196(0x164)](){const _0x3cb91=_0x5ee196;_0x367506[_0x3cb91(0x1f7)](this['_injector'],[[_0x58e433[_0x3cb91(0x1bc)]]]);}},_0x45eec5(_0x58e433['UniverLiveSharePlugin'],_0x5ee196(0x1ce),_0x367506[_0x5ee196(0x21d)][_0x5ee196(0x239)]),_0x45eec5(_0x58e433['UniverLiveSharePlugin'],_0x5ee196(0x1f9),_0x3a480c),_0x58e433[_0x5ee196(0x229)]=_0x314900([_0x367506['DependentOn'](_0x41d7d3['UniverCollaborationClientPlugin']),_0x91a780(0x1,_0x367506[_0x5ee196(0x205)](_0x367506['Injector'])),_0x91a780(0x2,_0x367506[_0x5ee196(0x15a)])],_0x58e433[_0x5ee196(0x229)]),_0x58e433['LiveShare']=_0x46904a,_0x58e433[_0x5ee196(0x189)]=_0x5f5b0c,_0x58e433[_0x5ee196(0x17c)]=_0x38cfeb,Object[_0x5ee196(0x17d)](_0x58e433,Symbol[_0x5ee196(0x200)],{'value':_0x5ee196(0x16e)});}));
1
+ (function(_0x5542e5,_0x19f696){const _0x515e44=_0x2844,_0x33b4a6=_0x5542e5();while(!![]){try{const _0xdeee85=parseInt(_0x515e44(0x195))/0x1*(-parseInt(_0x515e44(0x1fd))/0x2)+-parseInt(_0x515e44(0x1b6))/0x3+parseInt(_0x515e44(0x15f))/0x4*(parseInt(_0x515e44(0x163))/0x5)+-parseInt(_0x515e44(0x1ec))/0x6*(parseInt(_0x515e44(0x1aa))/0x7)+-parseInt(_0x515e44(0x1e1))/0x8*(-parseInt(_0x515e44(0x183))/0x9)+parseInt(_0x515e44(0x1a1))/0xa+-parseInt(_0x515e44(0x19d))/0xb*(-parseInt(_0x515e44(0x227))/0xc);if(_0xdeee85===_0x19f696)break;else _0x33b4a6['push'](_0x33b4a6['shift']());}catch(_0x48f622){_0x33b4a6['push'](_0x33b4a6['shift']());}}}(_0x442e,0x5ab13),function(_0x10dff4,_0x2d00b5){const _0x50ca3b=_0x2844;typeof exports==_0x50ca3b(0x199)&&typeof module<'u'?_0x2d00b5(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([_0x50ca3b(0x17f),_0x50ca3b(0x167),_0x50ca3b(0x14d),_0x50ca3b(0x1f2),'@univerjs/design',_0x50ca3b(0x1dd),_0x50ca3b(0x1ce),_0x50ca3b(0x18f),'@univerjs/sheets',_0x50ca3b(0x228),_0x50ca3b(0x182),'@univerjs/sheets-ui'],_0x2d00b5):(_0x10dff4=typeof globalThis<'u'?globalThis:_0x10dff4||self,_0x2d00b5(_0x10dff4[_0x50ca3b(0x20e)]={},_0x10dff4['UniverCore'],_0x10dff4['UniverUi'],_0x10dff4[_0x50ca3b(0x202)],_0x10dff4[_0x50ca3b(0x1c5)],_0x10dff4[_0x50ca3b(0x202)],_0x10dff4[_0x50ca3b(0x1fc)],_0x10dff4['UniverProCollaborationClient'],_0x10dff4[_0x50ca3b(0x1b3)],_0x10dff4[_0x50ca3b(0x228)],_0x10dff4[_0x50ca3b(0x228)][_0x50ca3b(0x1d4)],_0x10dff4[_0x50ca3b(0x224)]));}(this,function(_0x29f8e1,_0x143943,_0x164674,_0x29a50b,_0x22b3bf,_0x55b5d6,_0x5a67ed,_0xbda863,_0x5ea23d,_0x9597c3,_0x379b71,_0xfc0cd2){'use strict';const _0x25bf0e=_0x2844;var _0xe96f37=Object[_0x25bf0e(0x1df)],_0x2cffa4=(_0x260210,_0x1a8025,_0x90bc6c)=>_0x1a8025 in _0x260210?_0xe96f37(_0x260210,_0x1a8025,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x90bc6c}):_0x260210[_0x1a8025]=_0x90bc6c,_0x390c4f=(_0x543755,_0x117022,_0x5f5d4d)=>_0x2cffa4(_0x543755,typeof _0x117022!='symbol'?_0x117022+'':_0x117022,_0x5f5d4d);function _0x341b15({ref:_0xa61f1a,..._0x17e925}){const _0x3a9a37=_0x25bf0e,{icon:_0x41a0b4,id:_0x21bec5,className:_0x1b155c,extend:_0x4cf075,..._0xaade97}=_0x17e925,_0x548486=(_0x3a9a37(0x225)+_0x21bec5+'\x20'+(_0x1b155c||''))['trim'](),_0x2eb167=_0x55b5d6[_0x3a9a37(0x214)]('_'+_0x47dbde());return _0x47ebac(_0x41a0b4,''+_0x21bec5,{'defIds':_0x41a0b4[_0x3a9a37(0x147)],'idSuffix':_0x2eb167[_0x3a9a37(0x1d2)]},{'ref':_0xa61f1a,'className':_0x548486,..._0xaade97},_0x4cf075);}function _0x47ebac(_0x4f3a25,_0x519b50,_0x2fd611,_0x3fae2b,_0x4706f9){const _0xea8c0=_0x25bf0e;return _0x55b5d6['createElement'](_0x4f3a25['tag'],{'key':_0x519b50,..._0x311d9c(_0x4f3a25,_0x2fd611,_0x4706f9),..._0x3fae2b},(_0x322de4(_0x4f3a25,_0x2fd611)['children']||[])[_0xea8c0(0x149)]((_0x1d9cfd,_0x3b4b61)=>_0x47ebac(_0x1d9cfd,_0x519b50+'-'+_0x4f3a25[_0xea8c0(0x213)]+'-'+_0x3b4b61,_0x2fd611,void 0x0,_0x4706f9)));}function _0x311d9c(_0x314c16,_0x10bb13,_0x47e345){const _0x126334=_0x25bf0e,_0x52c70f={..._0x314c16[_0x126334(0x1bb)]};_0x47e345!=null&&_0x47e345[_0x126334(0x140)]&&_0x52c70f[_0x126334(0x1c3)]==='colorChannel1'&&(_0x52c70f['fill']=_0x47e345[_0x126334(0x140)]),_0x314c16['tag']===_0x126334(0x20d)&&_0x52c70f['id']&&(_0x52c70f['id']=_0x52c70f['id']+_0x10bb13[_0x126334(0x203)]),Object['entries'](_0x52c70f)[_0x126334(0x1cb)](([_0x415e6a,_0x457560])=>{const _0x57a80c=_0x126334;_0x415e6a==='mask'&&typeof _0x457560=='string'&&(_0x52c70f[_0x415e6a]=_0x457560[_0x57a80c(0x1a8)](/url\(#(.*)\)/,_0x57a80c(0x223)+_0x10bb13[_0x57a80c(0x203)]+')'));});const {defIds:_0x3f103e}=_0x10bb13;return!_0x3f103e||_0x3f103e[_0x126334(0x18d)]===0x0||(_0x314c16[_0x126334(0x213)]===_0x126334(0x1c9)&&_0x52c70f[_0x126334(0x191)]&&(_0x52c70f[_0x126334(0x191)]=_0x52c70f[_0x126334(0x191)]+_0x10bb13[_0x126334(0x203)]),Object[_0x126334(0x1d5)](_0x52c70f)[_0x126334(0x1cb)](([_0x527715,_0x28d844])=>{const _0x2f5435=_0x126334;typeof _0x28d844==_0x2f5435(0x219)&&(_0x52c70f[_0x527715]=_0x28d844[_0x2f5435(0x1a8)](/url\(#(.*)\)/,'url(#$1'+_0x10bb13[_0x2f5435(0x203)]+')'));})),_0x52c70f;}function _0x322de4(_0x16c20e,_0x595a04){const _0x107fb1=_0x25bf0e;var _0x445c79;const {defIds:_0x49bfac}=_0x595a04;return!_0x49bfac||_0x49bfac[_0x107fb1(0x18d)]===0x0?_0x16c20e:_0x16c20e['tag']==='defs'&&((_0x445c79=_0x16c20e['children'])!=null&&_0x445c79[_0x107fb1(0x18d)])?{..._0x16c20e,'children':_0x16c20e[_0x107fb1(0x229)][_0x107fb1(0x149)](_0x1dd485=>typeof _0x1dd485[_0x107fb1(0x1bb)]['id']==_0x107fb1(0x219)&&_0x49bfac&&_0x49bfac[_0x107fb1(0x16f)](_0x1dd485[_0x107fb1(0x1bb)]['id'])?{..._0x1dd485,'attrs':{..._0x1dd485['attrs'],'id':_0x1dd485['attrs']['id']+_0x595a04[_0x107fb1(0x203)]}}:_0x1dd485)}:_0x16c20e;}function _0x47dbde(){const _0x255cfc=_0x25bf0e;return Math[_0x255cfc(0x1c4)]()[_0x255cfc(0x1cf)](0x24)[_0x255cfc(0x176)](0x2,0x8);}_0x341b15[_0x25bf0e(0x1dc)]=_0x25bf0e(0x145);const _0x53128a={'tag':'svg','attrs':{'xmlns':_0x25bf0e(0x1e6),'fill':_0x25bf0e(0x1ed),'viewBox':_0x25bf0e(0x148),'width':_0x25bf0e(0x1a2),'height':_0x25bf0e(0x1a2)},'children':[{'tag':_0x25bf0e(0x211),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x25bf0e(0x211),'attrs':{'fill':_0x25bf0e(0x1a5),'d':_0x25bf0e(0x1d7),'fillRule':'evenodd','clipRule':_0x25bf0e(0x1fb)}}]},_0x3d74bf=_0x55b5d6[_0x25bf0e(0x197)](function(_0x73e28e,_0x1adb13){const _0x22ca16=_0x25bf0e;return _0x55b5d6[_0x22ca16(0x22a)](_0x341b15,Object[_0x22ca16(0x19c)]({},_0x73e28e,{'id':_0x22ca16(0x19f),'ref':_0x1adb13,'icon':_0x53128a}));});_0x3d74bf[_0x25bf0e(0x1dc)]=_0x25bf0e(0x17e);class _0x234b1b extends _0x143943[_0x25bf0e(0x1f5)]{constructor(){const _0x53107b=_0x25bf0e;super(...arguments),_0x390c4f(this,_0x53107b(0x177),new Set()),_0x390c4f(this,_0x53107b(0x180),new Set());}[_0x25bf0e(0x17c)](_0x51ee2c){const _0x4227d2=_0x25bf0e;return this[_0x4227d2(0x177)][_0x4227d2(0x187)](_0x51ee2c),_0x143943[_0x4227d2(0x1fa)](()=>this['_sharedOperations']['delete'](_0x51ee2c));}[_0x25bf0e(0x160)](_0x2c8b05){const _0x161189=_0x25bf0e;return this[_0x161189(0x180)][_0x161189(0x187)](_0x2c8b05),_0x143943['toDisposable'](()=>this['_reporters'][_0x161189(0x161)](_0x2c8b05));}[_0x25bf0e(0x17b)](_0x10d519){const _0x33867d=_0x25bf0e;return this[_0x33867d(0x177)][_0x33867d(0x1ff)](_0x10d519);}[_0x25bf0e(0x21a)](_0x360473){const _0x5e31a4=_0x25bf0e;return Array[_0x5e31a4(0x15c)](this[_0x5e31a4(0x180)])[_0x5e31a4(0x149)](_0x4731f5=>_0x4731f5(_0x360473));}}var _0x3c6790=Object[_0x25bf0e(0x1ea)],_0x1742c5=(_0x3aac20,_0x4b87ef,_0x3a74ff,_0x4dfc32)=>{const _0x4980ae=_0x25bf0e;for(var _0x484f88=_0x4dfc32>0x1?void 0x0:_0x4dfc32?_0x3c6790(_0x4b87ef,_0x3a74ff):_0x4b87ef,_0x5f11ed=_0x3aac20[_0x4980ae(0x18d)]-0x1,_0x41b1a3;_0x5f11ed>=0x0;_0x5f11ed--)(_0x41b1a3=_0x3aac20[_0x5f11ed])&&(_0x484f88=_0x41b1a3(_0x484f88)||_0x484f88);return _0x484f88;},_0x418fdc=(_0x9e5868,_0x4990db)=>(_0xd9da43,_0x58eb7a)=>_0x4990db(_0xd9da43,_0x58eb7a,_0x9e5868);_0x29f8e1[_0x25bf0e(0x1c8)]=class extends _0x143943[_0x25bf0e(0x168)]{constructor(_0x54744e,_0x2ebb87,_0x908d7c){const _0x54afaa=_0x25bf0e;super(),_0x390c4f(this,_0x54afaa(0x1a9),new Map()),(this['_univerInstanceService']=_0x54744e,this[_0x54afaa(0x174)]=_0x2ebb87,this[_0x54afaa(0x166)]=_0x908d7c,this[_0x54afaa(0x1b4)]());}async[_0x25bf0e(0x16b)](_0x4c9f92){const _0xe5ac18=_0x25bf0e;return this[_0xe5ac18(0x1a9)][_0xe5ac18(0x1ff)](_0x4c9f92)||await this['_startLiveShareCoordinator'](_0x4c9f92),this[_0xe5ac18(0x1a9)][_0xe5ac18(0x1b2)](_0x4c9f92);}[_0x25bf0e(0x1ab)](_0x2b03dd){const _0x3127b4=_0x25bf0e;var _0x290f1c;return(_0x290f1c=this['_entities'][_0x3127b4(0x1b2)](_0x2b03dd))!=null?_0x290f1c:null;}[_0x25bf0e(0x1b4)](){const _0x2b4b18=_0x25bf0e;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x143943[_0x2b4b18(0x20c)][_0x2b4b18(0x1d0)])[_0x2b4b18(0x204)](_0x379b71[_0x2b4b18(0x150)](this[_0x2b4b18(0x217)]))[_0x2b4b18(0x158)](async _0x5c2a2f=>{const _0x483b91=_0x2b4b18,_0x135142=_0x5c2a2f[_0x483b91(0x169)]();this[_0x483b91(0x1a9)][_0x483b91(0x1ff)](_0x135142)||this[_0x483b91(0x1ba)](_0x135142);}),this['_univerInstanceService'][_0x2b4b18(0x1ae)](_0x143943['UniverInstanceType']['UNIVER_SHEET'])['pipe'](_0x379b71[_0x2b4b18(0x150)](this['dispose$']))['subscribe'](_0x84c276=>{const _0x3d1051=_0x2b4b18,_0x56a719=_0x84c276[_0x3d1051(0x169)](),_0x5b8637=this[_0x3d1051(0x1a9)][_0x3d1051(0x1b2)](_0x56a719);_0x5b8637==null||_0x5b8637[_0x3d1051(0x1a6)]();});}async[_0x25bf0e(0x1ba)](_0x16ea2f){const _0x1c7b87=_0x25bf0e,_0x5a1d63=await this[_0x1c7b87(0x166)][_0x1c7b87(0x14b)](_0x16ea2f),_0xeaf22a=this[_0x1c7b87(0x174)][_0x1c7b87(0x16a)](_0x29f8e1[_0x1c7b87(0x157)],_0x16ea2f,_0x5a1d63);return _0xeaf22a[_0x1c7b87(0x155)](),this['_entities'][_0x1c7b87(0x1be)](_0x16ea2f,_0xeaf22a),_0xeaf22a;}},_0x29f8e1['LiveShareController']=_0x1742c5([_0x418fdc(0x0,_0x143943['IUniverInstanceService']),_0x418fdc(0x1,_0x143943[_0x25bf0e(0x201)](_0x143943[_0x25bf0e(0x170)])),_0x418fdc(0x2,_0x143943[_0x25bf0e(0x201)](_0xbda863[_0x25bf0e(0x215)]))],_0x29f8e1[_0x25bf0e(0x1c8)]);var _0x28237d=(_0x168bfa=>(_0x168bfa['OFFLINE']=_0x25bf0e(0x165),_0x168bfa[_0x25bf0e(0x22b)]=_0x25bf0e(0x1e2),_0x168bfa[_0x25bf0e(0x188)]='following',_0x168bfa[_0x25bf0e(0x1f0)]='not-following',_0x168bfa['PRESENTING']=_0x25bf0e(0x17d),_0x168bfa))(_0x28237d||{});const _0x53eea1=_0x25bf0e(0x216),_0x4bb780=0xc8;_0x29f8e1['LiveShareCoordinator']=class extends _0x143943[_0x25bf0e(0x168)]{constructor(_0x557b3d,_0x305a72,_0x5c9062,_0x26606d,_0x483b70){const _0x4d307e=_0x25bf0e;super(),_0x390c4f(this,_0x4d307e(0x179),new _0x9597c3[(_0x4d307e(0x20f))](_0x4d307e(0x1e2))),_0x390c4f(this,_0x4d307e(0x1f9),this[_0x4d307e(0x179)][_0x4d307e(0x16c)]()),_0x390c4f(this,_0x4d307e(0x1b4),!0x1),_0x390c4f(this,_0x4d307e(0x159),null),_0x390c4f(this,'_presenter',null),(this[_0x4d307e(0x15d)]=_0x557b3d,this[_0x4d307e(0x16d)]=_0x305a72,this[_0x4d307e(0x151)]=_0x5c9062,this['_liveShareService']=_0x26606d,this[_0x4d307e(0x1ac)]=_0x483b70);}get['_status'](){const _0x1ea310=_0x25bf0e;return this[_0x1ea310(0x179)][_0x1ea310(0x1e0)]();}[_0x25bf0e(0x1a6)](){const _0x3102fc=_0x25bf0e;var _0xd39e5b;(_0xd39e5b=this[_0x3102fc(0x159)])==null||_0xd39e5b[_0x3102fc(0x1a6)](),this[_0x3102fc(0x179)][_0x3102fc(0x1a3)](_0x3102fc(0x1e2)),this['_status$']['complete']();}['getStatus'](){return this['_status'];}[_0x25bf0e(0x155)](){const _0x1932fe=_0x25bf0e;this['_init']||(this[_0x1932fe(0x1b4)]=!0x0,this[_0x1932fe(0x16d)]['sessionStatus$']['pipe'](_0x379b71[_0x1932fe(0x150)](this['dispose$']))[_0x1932fe(0x158)](_0x5d13d0=>{const _0x27c827=_0x1932fe;switch(_0x5d13d0){case _0xbda863[_0x27c827(0x20a)][_0x27c827(0x1af)]:this['_handleOffline']();break;case _0xbda863[_0x27c827(0x20a)]['ONLINE']:this[_0x27c827(0x186)]();break;}}),this[_0x1932fe(0x16d)][_0x1932fe(0x18a)][_0x1932fe(0x204)](_0x379b71['takeUntil'](this[_0x1932fe(0x217)]))[_0x1932fe(0x158)](_0x570d8e=>{const _0x19da78=_0x1932fe,{eventID:_0x2a8090}=_0x570d8e;switch(_0x2a8090){case _0x5a67ed[_0x19da78(0x198)][_0x19da78(0x1fe)]:this[_0x19da78(0x152)](_0x570d8e);break;case _0x5a67ed[_0x19da78(0x198)][_0x19da78(0x19a)]:this[_0x19da78(0x1db)](_0x570d8e);break;case _0x5a67ed[_0x19da78(0x198)]['LIVESHARE_TERMINATE']:this[_0x19da78(0x173)]();break;case _0x5a67ed[_0x19da78(0x198)][_0x19da78(0x1ad)]:this[_0x19da78(0x18e)](_0x570d8e);break;}}));}[_0x25bf0e(0x21d)](){const _0x35cfb3=_0x25bf0e;this[_0x35cfb3(0x16d)]['send']({'eventID':_0x5a67ed[_0x35cfb3(0x198)][_0x35cfb3(0x21e)],'data':{'unitID':this['_unitID'],'userID':this[_0x35cfb3(0x16d)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x3914be=_0x25bf0e;this['_status']===_0x3914be(0x17d)&&(this[_0x3914be(0x179)]['next'](_0x3914be(0x1e2)),this[_0x3914be(0x16d)]['send']({'eventID':_0x5a67ed[_0x3914be(0x198)][_0x3914be(0x1d1)],'data':{'unitID':this[_0x3914be(0x15d)]}},this[_0x3914be(0x15d)]));}['startFollowing'](){const _0x1f8c80=_0x25bf0e;this[_0x1f8c80(0x1b8)]===_0x1f8c80(0x141)&&(this['_status$'][_0x1f8c80(0x1a3)](_0x1f8c80(0x15e)),this[_0x1f8c80(0x206)]());}['stopFollowing'](){const _0x6912e9=_0x25bf0e;this[_0x6912e9(0x1b8)]==='following'&&this['_stopFollowing']();}[_0x25bf0e(0x152)](_0x55a9dd){const _0x40b773=_0x25bf0e,{presenter:_0x306969}=_0x55a9dd[_0x40b773(0x1e7)],_0x66e118=this['_collabSession']['getMemberID']();this[_0x40b773(0x193)]=_0x306969,_0x306969===_0x66e118?(this[_0x40b773(0x185)](),this['_startPresenting']()):this[_0x40b773(0x1b8)]!=='not-following'&&(this[_0x40b773(0x196)](),this[_0x40b773(0x206)]());}[_0x25bf0e(0x20b)](){const _0x3796c5=_0x25bf0e,_0x5e9b59={'eventID':_0x5a67ed[_0x3796c5(0x198)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x3796c5(0x1f7)](_0x5e9b59,this['_unitID']);}['_handleTerminate'](){const _0x55f406=_0x25bf0e;this[_0x55f406(0x193)]=null,this['_status']!==_0x55f406(0x17d)&&this[_0x55f406(0x1e9)]();}[_0x25bf0e(0x18e)](_0x57f2c3){const _0x41ef57=_0x25bf0e;if(this['_status']==='following'&&this[_0x41ef57(0x193)]===_0x57f2c3[_0x41ef57(0x1e7)][_0x41ef57(0x1b1)]){const _0x201dc7=_0x5a67ed[_0x41ef57(0x153)](_0x57f2c3[_0x41ef57(0x1e7)])[_0x41ef57(0x1c1)][_0x41ef57(0x22d)]()[_0x41ef57(0x1a0)](_0x54e343=>_0x54e343['id']===_0x5ea23d['InsertSheetMutation']['id']);if(_0x201dc7){const _0x481762=_0x201dc7[_0x41ef57(0x1da)]['unitId'],_0x53fd32=_0x201dc7['params']['sheet']['id'];setTimeout(()=>{const _0xfe36a9=_0x41ef57;this[_0xfe36a9(0x1ac)]['executeCommand'](_0x5ea23d['SetWorksheetActiveOperation']['id'],{'unitId':_0x481762,'subUnitId':_0x53fd32},{'fromCollab':!0x0});});}}}[_0x25bf0e(0x19b)](){const _0x4354ee=_0x25bf0e;this[_0x4354ee(0x179)][_0x4354ee(0x1a3)](_0x4354ee(0x17d));const _0x27c664=new Map(),_0x2d817b=this[_0x4354ee(0x159)]=new _0x143943[(_0x4354ee(0x15a))]();_0x2d817b[_0x4354ee(0x187)](_0x143943[_0x4354ee(0x1fa)](()=>{const _0x56b728=_0x4354ee;_0x27c664[_0x56b728(0x1cb)](_0x50608d=>_0x50608d[_0x56b728(0x208)]()),_0x27c664['clear']();})),_0x2d817b[_0x4354ee(0x187)](this[_0x4354ee(0x1ac)]['onCommandExecuted'](_0x2af9b7=>{const _0x5d00a1=_0x4354ee;var _0x1ba6f6;if(_0x2af9b7[_0x5d00a1(0x18c)]!==_0x143943[_0x5d00a1(0x1f4)][_0x5d00a1(0x1e5)]||!this[_0x5d00a1(0x221)][_0x5d00a1(0x17b)](_0x2af9b7['id']))return;const {id:_0x46b92b}=_0x2af9b7;let _0x3f8727;_0x27c664['has'](_0x46b92b)?_0x3f8727=_0x27c664[_0x5d00a1(0x1b2)](_0x46b92b):(_0x3f8727=new _0x9597c3[(_0x5d00a1(0x1bd))](),_0x27c664[_0x5d00a1(0x1be)](_0x46b92b,_0x3f8727),_0x3f8727[_0x5d00a1(0x204)](_0x379b71[_0x5d00a1(0x226)]((_0x1ba6f6=this[_0x5d00a1(0x151)][_0x5d00a1(0x1cd)](_0x53eea1))!=null?_0x1ba6f6:_0x4bb780,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5d00a1(0x158)](_0x1b7ced=>{const _0x295846=_0x5d00a1;this[_0x295846(0x16d)][_0x295846(0x1f7)]({'eventID':_0x5a67ed[_0x295846(0x198)][_0x295846(0x19a)],'data':{'unitID':this['_unitID'],'operations':{[_0x1b7ced['id']]:{'id':_0x1b7ced['id'],'params':JSON[_0x295846(0x164)](_0x1b7ced[_0x295846(0x1da)])}}}},this[_0x295846(0x15d)]);})),_0x3f8727[_0x5d00a1(0x1a3)](_0x2af9b7);})),this[_0x4354ee(0x221)][_0x4354ee(0x21a)](this[_0x4354ee(0x15d)])[_0x4354ee(0x1cb)](_0x33e66f=>this[_0x4354ee(0x16d)][_0x4354ee(0x1f7)]({'eventID':_0x5a67ed[_0x4354ee(0x198)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4354ee(0x15d)],'operations':{[_0x33e66f['id']]:{'id':_0x33e66f['id'],'params':JSON[_0x4354ee(0x164)](_0x33e66f[_0x4354ee(0x1da)])}}}},this[_0x4354ee(0x15d)]));}[_0x25bf0e(0x196)](){const _0x5a03a0=_0x25bf0e;var _0x495719;this[_0x5a03a0(0x179)][_0x5a03a0(0x1a3)]('idle'),(_0x495719=this[_0x5a03a0(0x159)])==null||_0x495719[_0x5a03a0(0x1a6)](),this[_0x5a03a0(0x159)]=null;}[_0x25bf0e(0x206)](){const _0x536e60=_0x25bf0e;var _0x2c9955;(_0x2c9955=this[_0x536e60(0x159)])==null||_0x2c9955[_0x536e60(0x1a6)](),this[_0x536e60(0x179)][_0x536e60(0x1a3)](_0x536e60(0x15e));}['_beIdle'](){const _0x549936=_0x25bf0e;var _0x6db5bb;this[_0x549936(0x179)][_0x549936(0x1a3)](_0x549936(0x1e2)),(_0x6db5bb=this[_0x549936(0x159)])==null||_0x6db5bb['dispose'](),this['_commandDisposable']=null;}[_0x25bf0e(0x185)](){const _0x7382e7=_0x25bf0e;var _0x175e1c;this[_0x7382e7(0x179)]['next'](_0x7382e7(0x141)),(_0x175e1c=this['_commandDisposable'])==null||_0x175e1c['dispose']();}['_handleOperation'](_0x13efd4){const _0x5b1564=_0x25bf0e;if([_0x5b1564(0x17d),_0x5b1564(0x141),'offline'][_0x5b1564(0x16f)](this[_0x5b1564(0x1b8)])||!_0x13efd4[_0x5b1564(0x1e7)][_0x5b1564(0x184)]||_0x13efd4[_0x5b1564(0x1e7)][_0x5b1564(0x184)]===this[_0x5b1564(0x16d)][_0x5b1564(0x22c)]())return;this[_0x5b1564(0x1b8)]===_0x5b1564(0x1e2)&&this['_startFollowing']();const _0x50ccb7=_0x13efd4[_0x5b1564(0x1e7)][_0x5b1564(0x190)];Object[_0x5b1564(0x172)](_0x50ccb7)['forEach'](_0x1a5559=>{const _0x34a6cb=_0x5b1564;this[_0x34a6cb(0x1ac)][_0x34a6cb(0x142)](_0x1a5559['id'],_0x1a5559[_0x34a6cb(0x1da)]?JSON[_0x34a6cb(0x1d6)](_0x1a5559[_0x34a6cb(0x1da)]):null,{'fromCollab':!0x0});});}[_0x25bf0e(0x194)](){const _0x282e24=_0x25bf0e;var _0x2bea0e;this[_0x282e24(0x179)]['next'](_0x282e24(0x165)),(_0x2bea0e=this[_0x282e24(0x159)])==null||_0x2bea0e[_0x282e24(0x1a6)]();}[_0x25bf0e(0x186)](){const _0x4c8abe=_0x25bf0e;this['_status$']['next']('idle'),this[_0x4c8abe(0x20b)]();}},_0x29f8e1[_0x25bf0e(0x157)]=_0x1742c5([_0x418fdc(0x2,_0x143943[_0x25bf0e(0x1cc)]),_0x418fdc(0x3,_0x143943['Inject'](_0x234b1b)),_0x418fdc(0x4,_0x143943[_0x25bf0e(0x1bc)])],_0x29f8e1[_0x25bf0e(0x157)]);function _0x30ff4a(){const _0x5dc4a7=_0x25bf0e,_0x345fda=_0x164674[_0x5dc4a7(0x21c)](_0x29f8e1['LiveShareController']),_0x5372fe=_0x164674['useDependency'](_0x143943[_0x5dc4a7(0x146)]),_0x1f4716=_0x164674['useObservable'](()=>_0x5372fe[_0x5dc4a7(0x143)](_0x143943[_0x5dc4a7(0x20c)][_0x5dc4a7(0x1d0)]),void 0x0,!0x1,[]),[_0xe86585,_0x211459]=_0x55b5d6[_0x5dc4a7(0x209)](null),[_0x11f7ea,_0x8d138]=_0x55b5d6[_0x5dc4a7(0x209)](_0x28237d[_0x5dc4a7(0x22b)]),_0x3a733e=_0x55b5d6['useRef'](null);return _0x55b5d6[_0x5dc4a7(0x19e)](()=>(_0x1f4716&&_0x345fda[_0x5dc4a7(0x16b)](_0x1f4716[_0x5dc4a7(0x169)]())[_0x5dc4a7(0x200)](_0x3efb71=>{const _0xb23cbf=_0x5dc4a7;_0x211459(_0x3efb71),_0x3a733e[_0xb23cbf(0x1d2)]=_0x3efb71['status$'][_0xb23cbf(0x158)](_0xa06d45=>{_0x8d138(_0xa06d45);});}),()=>{const _0x1df09a=_0x5dc4a7;var _0xd41976;(_0xd41976=_0x3a733e[_0x1df09a(0x1d2)])==null||_0xd41976[_0x1df09a(0x14a)](),_0x3a733e[_0x1df09a(0x1d2)]=null;}),[_0x1f4716,_0x345fda]),_0xe86585?_0x29a50b[_0x5dc4a7(0x192)](_0x22b3bf[_0x5dc4a7(0x189)],{'align':'end','disabled':_0x11f7ea===_0x28237d['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x29a50b[_0x5dc4a7(0x192)](_0x54e517,{'status':_0x11f7ea,'coordinator':_0xe86585}),'children':_0x29a50b[_0x5dc4a7(0x192)](_0x5dc4a7(0x1e3),{'className':_0x22b3bf[_0x5dc4a7(0x162)](_0x5dc4a7(0x1c2),{'univer-cursor-not-allowed':_0x11f7ea===_0x28237d[_0x5dc4a7(0x1af)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11f7ea!==_0x28237d[_0x5dc4a7(0x1af)]}),'type':_0x5dc4a7(0x1e3),'children':_0x29a50b['jsx'](_0x3d74bf,{'className':'univer-size-4'})})}):null;}function _0x54e517(_0x1a0d42){const _0x550710=_0x25bf0e,{status:_0x8d705b,coordinator:_0x1f51cf}=_0x1a0d42;switch(_0x8d705b){case _0x28237d[_0x550710(0x22b)]:return _0x29a50b['jsx'](_0x3528b8,{'coordinator':_0x1f51cf});case _0x28237d[_0x550710(0x188)]:return _0x29a50b['jsx'](_0x993541,{'coordinator':_0x1f51cf});case _0x28237d[_0x550710(0x1f0)]:return _0x29a50b[_0x550710(0x192)](_0x8dcd6,{'coordinator':_0x1f51cf});case _0x28237d[_0x550710(0x1af)]:return _0x29a50b[_0x550710(0x192)](_0x2d7e20,{});case _0x28237d['PRESENTING']:return _0x29a50b['jsx'](_0x3d8418,{'coordinator':_0x1f51cf});default:return null;}}function _0x3528b8(_0x1bdbc1){const _0x2bb87b=_0x25bf0e,{coordinator:_0x4f9619}=_0x1bdbc1;return _0x29a50b[_0x2bb87b(0x1b5)](_0x29a50b[_0x2bb87b(0x1b0)],{'children':[_0x29a50b[_0x2bb87b(0x192)]('div',{'className':_0x2bb87b(0x1ef),'children':_0x2bb87b(0x1de)}),_0x29a50b['jsx'](_0x22b3bf[_0x2bb87b(0x154)],{'onClick':()=>_0x4f9619[_0x2bb87b(0x21d)](),'children':_0x2bb87b(0x1f6)})]});}function _0x993541(_0x4162c6){const _0x22546d=_0x25bf0e,{coordinator:_0x1c2184}=_0x4162c6;return _0x29a50b['jsxs'](_0x29a50b[_0x22546d(0x1b0)],{'children':[_0x29a50b['jsx'](_0x22546d(0x15b),{'className':_0x22546d(0x1ef),'children':_0x22546d(0x22e)}),_0x29a50b[_0x22546d(0x192)](_0x22b3bf[_0x22546d(0x154)],{'onClick':()=>_0x1c2184[_0x22546d(0x1b9)](),'children':_0x22546d(0x1a4)})]});}function _0x8dcd6(_0x2304dd){const _0x3cfdda=_0x25bf0e,{coordinator:_0x2c9778}=_0x2304dd;return _0x29a50b['jsxs'](_0x29a50b[_0x3cfdda(0x1b0)],{'children':[_0x29a50b[_0x3cfdda(0x192)]('div',{'className':_0x3cfdda(0x1ef),'children':_0x3cfdda(0x175)}),_0x29a50b[_0x3cfdda(0x192)](_0x22b3bf['Button'],{'variant':_0x3cfdda(0x18b),'onClick':()=>_0x2c9778[_0x3cfdda(0x1eb)](),'children':'Start\x20following'})]});}function _0x3d8418(_0x4631d9){const _0x5f379b=_0x25bf0e,{coordinator:_0x4e1cdd}=_0x4631d9;return _0x29a50b[_0x5f379b(0x1b5)](_0x29a50b[_0x5f379b(0x1b0)],{'children':[_0x29a50b[_0x5f379b(0x192)](_0x5f379b(0x15b),{'className':_0x5f379b(0x1ef),'children':_0x5f379b(0x222)}),_0x29a50b['jsx'](_0x22b3bf[_0x5f379b(0x154)],{'variant':_0x5f379b(0x1b7),'onClick':()=>_0x4e1cdd[_0x5f379b(0x212)](),'children':_0x5f379b(0x1c6)})]});}function _0x2d7e20(){const _0x19fbe7=_0x25bf0e;return _0x29a50b[_0x19fbe7(0x192)](_0x29a50b[_0x19fbe7(0x1b0)],{'children':_0x19fbe7(0x14e)});}var _0x4ec699=Object[_0x25bf0e(0x1ea)],_0xacd4b1=(_0x4caa3d,_0x3a04d3,_0x72f246,_0x11016e)=>{const _0x2fd38a=_0x25bf0e;for(var _0x50f0e6=_0x11016e>0x1?void 0x0:_0x11016e?_0x4ec699(_0x3a04d3,_0x72f246):_0x3a04d3,_0x4aa2ae=_0x4caa3d[_0x2fd38a(0x18d)]-0x1,_0x59eec0;_0x4aa2ae>=0x0;_0x4aa2ae--)(_0x59eec0=_0x4caa3d[_0x4aa2ae])&&(_0x50f0e6=_0x59eec0(_0x50f0e6)||_0x50f0e6);return _0x50f0e6;},_0x1159e1=(_0x43c5d4,_0x101c03)=>(_0x3598dc,_0x3de1f9)=>_0x101c03(_0x3598dc,_0x3de1f9,_0x43c5d4);_0x29f8e1[_0x25bf0e(0x21b)]=class extends _0x143943[_0x25bf0e(0x1f5)]{constructor(_0x501436,_0x33132f){const _0x604e7=_0x25bf0e;super(),this[_0x604e7(0x174)]=_0x501436,this['_uiPartsService']=_0x33132f,this[_0x604e7(0x1c0)]();}[_0x25bf0e(0x1c0)](){const _0x4aa7b9=_0x25bf0e;this[_0x4aa7b9(0x210)](this[_0x4aa7b9(0x1ca)]['registerComponent'](_0x164674[_0x4aa7b9(0x171)][_0x4aa7b9(0x21f)],()=>_0x164674[_0x4aa7b9(0x181)](_0x30ff4a,this[_0x4aa7b9(0x174)])));}},_0x29f8e1['DesktopLiveShareController']=_0xacd4b1([_0x1159e1(0x0,_0x143943['Inject'](_0x143943[_0x25bf0e(0x170)])),_0x1159e1(0x1,_0x164674['IUIPartsService'])],_0x29f8e1[_0x25bf0e(0x21b)]);const _0xcfa61c={'name':_0x25bf0e(0x1d8),'version':_0x25bf0e(0x16e)},_0x360396=_0x25bf0e(0x1f1),_0x2308d2={};var _0x380360=Object[_0x25bf0e(0x1ea)],_0x45bd3f=(_0x9b6c2b,_0x4a9ff7,_0x13ed9b,_0x340305)=>{const _0x109296=_0x25bf0e;for(var _0x22e2d3=_0x340305>0x1?void 0x0:_0x340305?_0x380360(_0x4a9ff7,_0x13ed9b):_0x4a9ff7,_0x3ea017=_0x9b6c2b[_0x109296(0x18d)]-0x1,_0x382f81;_0x3ea017>=0x0;_0x3ea017--)(_0x382f81=_0x9b6c2b[_0x3ea017])&&(_0x22e2d3=_0x382f81(_0x22e2d3)||_0x22e2d3);return _0x22e2d3;},_0x49ad5c=(_0x5c5e24,_0x129f4b)=>(_0x2e744c,_0x2e4d85)=>_0x129f4b(_0x2e744c,_0x2e4d85,_0x5c5e24);let _0x2a8c91=class extends _0x143943[_0x25bf0e(0x1f5)]{constructor(_0x236a63){const _0x340ffa=_0x25bf0e;super(),this[_0x340ffa(0x221)]=_0x236a63,this[_0x340ffa(0x1b4)]();}['_init'](){const _0x596862=_0x25bf0e;[_0xfc0cd2['SetZoomRatioOperation']['id'],_0xfc0cd2[_0x596862(0x17a)]['id'],_0x5ea23d[_0x596862(0x220)]['id']][_0x596862(0x1cb)](_0x5e93d7=>{const _0x483128=_0x596862;this[_0x483128(0x210)](this[_0x483128(0x221)][_0x483128(0x17c)](_0x5e93d7));});}};_0x2a8c91=_0x45bd3f([_0x49ad5c(0x0,_0x143943['Inject'](_0x234b1b))],_0x2a8c91);var _0x3f00ec=Object[_0x25bf0e(0x1df)],_0x43d900=Object[_0x25bf0e(0x1ea)],_0x3246ce=(_0x5f02db,_0x25b5ee,_0x234136)=>_0x25b5ee in _0x5f02db?_0x3f00ec(_0x5f02db,_0x25b5ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x234136}):_0x5f02db[_0x25b5ee]=_0x234136,_0x27e32b=(_0x51cd53,_0x290cab,_0x3901c7,_0x399cb5)=>{const _0x3af6e2=_0x25bf0e;for(var _0x1a6cb7=_0x399cb5>0x1?void 0x0:_0x399cb5?_0x43d900(_0x290cab,_0x3901c7):_0x290cab,_0x39b5b7=_0x51cd53[_0x3af6e2(0x18d)]-0x1,_0x5ea447;_0x39b5b7>=0x0;_0x39b5b7--)(_0x5ea447=_0x51cd53[_0x39b5b7])&&(_0x1a6cb7=_0x5ea447(_0x1a6cb7)||_0x1a6cb7);return _0x1a6cb7;},_0x40e908=(_0x5edc2a,_0x2e97d8)=>(_0x5217f3,_0x1d648a)=>_0x2e97d8(_0x5217f3,_0x1d648a,_0x5edc2a),_0x25c24b=(_0x334b6b,_0x4fd30d,_0x56b30d)=>_0x3246ce(_0x334b6b,typeof _0x4fd30d!=_0x25bf0e(0x14f)?_0x4fd30d+'':_0x4fd30d,_0x56b30d);_0x29f8e1[_0x25bf0e(0x1f8)]=class extends _0x143943['Plugin']{constructor(_0x4928f7=_0x2308d2,_0x4b3969,_0x35c168){const _0x40a327=_0x25bf0e;super(),this[_0x40a327(0x1ee)]=_0x4928f7,this[_0x40a327(0x174)]=_0x4b3969,this[_0x40a327(0x151)]=_0x35c168;const {..._0x703536}=_0x143943[_0x40a327(0x144)]({},_0x2308d2,this[_0x40a327(0x1ee)]);this[_0x40a327(0x151)][_0x40a327(0x14c)](_0x360396,_0x703536);}['onStarting'](){const _0x444279=_0x25bf0e;_0x143943[_0x444279(0x205)](this[_0x444279(0x174)],_0x143943[_0x444279(0x218)]([[_0x234b1b],[_0x29f8e1[_0x444279(0x1c8)]],[_0x2a8c91],[_0x29f8e1[_0x444279(0x21b)]]],this[_0x444279(0x1ee)]['override'])),_0x143943['touchDependencies'](this[_0x444279(0x174)],[[_0x2a8c91]]);}[_0x25bf0e(0x1e4)](){const _0x5d673e=_0x25bf0e;_0x143943[_0x5d673e(0x1f3)](this[_0x5d673e(0x174)],[[_0x29f8e1[_0x5d673e(0x21b)]]]);}},_0x25c24b(_0x29f8e1['UniverLiveSharePlugin'],_0x25bf0e(0x18c),_0x143943[_0x25bf0e(0x20c)]['UNIVER_UNKNOWN']),_0x25c24b(_0x29f8e1['UniverLiveSharePlugin'],_0x25bf0e(0x178),_0x25bf0e(0x156)),_0x25c24b(_0x29f8e1['UniverLiveSharePlugin'],'packageName',_0xcfa61c[_0x25bf0e(0x1a7)]),_0x25c24b(_0x29f8e1['UniverLiveSharePlugin'],'version',_0xcfa61c[_0x25bf0e(0x207)]),_0x29f8e1[_0x25bf0e(0x1f8)]=_0x27e32b([_0x143943['DependentOn'](_0xbda863[_0x25bf0e(0x1e8)]),_0x40e908(0x1,_0x143943['Inject'](_0x143943['Injector'])),_0x40e908(0x2,_0x143943[_0x25bf0e(0x1cc)])],_0x29f8e1[_0x25bf0e(0x1f8)]),_0x29f8e1[_0x25bf0e(0x1bf)]=_0x30ff4a,_0x29f8e1[_0x25bf0e(0x1d9)]=_0x234b1b,_0x29f8e1[_0x25bf0e(0x1d3)]=_0x28237d,Object['defineProperty'](_0x29f8e1,Symbol[_0x25bf0e(0x1c7)],{'value':'Module'});}));function _0x2844(_0x273f3c,_0x358c62){_0x273f3c=_0x273f3c-0x140;const _0x442ee8=_0x442e();let _0x2844d7=_0x442ee8[_0x273f3c];return _0x2844d7;}function _0x442e(){const _0x16164f=['_status$','SetScrollOperation','shouldShareOperation','registerSharedOperation','presenting','LiveShareIcon','exports','_reporters','connectInjector','rxjs/operators','45UoDvAr','presenter','_stopFollowing','_handleOnline','add','FOLLOWING','Dropdown','event$','text','type','length','_handleNewChangeSets','@univerjs-pro/collaboration-client','operations','xlink:href','jsx','_presenter','_handleOffline','14WxTNsS','_stopPresenting','forwardRef','CollaborationEvent','object','LIVESHARE_OPERATION','_startPresenting','assign','12771zhbvkf','useEffect','live-share-icon','find','72790kzbUQq','1em','next','Stop\x20following','currentColor','dispose','name','replace','_entities','13118usIjHl','getLiveShareCoordinatorSync','_commandService','NEW_CHANGESETS','getTypeOfUnitDisposed$','OFFLINE','Fragment','memberID','get','UniverSheets','_init','jsxs','2195904MzXWGk','default','_status','stopFollowing','_startLiveShareCoordinator','attrs','ICommandService','Subject','set','LiveShare','_mountLiveShare','mutations','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','fill','random','UniverDesign','Stop\x20presenting','toStringTag','LiveShareController','use','_uiPartsService','forEach','IConfigService','getConfig','@univerjs-pro/collaboration','toString','UNIVER_SHEET','LIVESHARE_TERMINATE','current','LiveShareStatus','operators','entries','parse','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','@univerjs-pro/live-share','LiveShareService','params','_handleOperation','displayName','react','Present\x20this\x20document','defineProperty','getValue','43528zlXeov','idle','button','onRendered','OPERATION','http://www.w3.org/2000/svg','data','UniverCollaborationClientPlugin','_beIdle','getOwnPropertyDescriptor','startFollowing','1434dpbeol','none','_config','univer-mb-3\x20univer-w-full\x20univer-text-sm','NOT_FOLLOWING','live-share.config','react/jsx-runtime','touchDependencies','CommandType','Disposable','Start','send','UniverLiveSharePlugin','status$','toDisposable','evenodd','UniverProCollaboration','8354jhepCw','LIVESHARE_NEW_HOST','has','then','Inject','React','idSuffix','pipe','registerDependencies','_startFollowing','version','complete','useState','SessionStatus','_fetchOperations','UniverInstanceType','mask','UniverProLiveShare','BehaviorSubject','disposeWithMe','path','stopPresenting','tag','useRef','CollaborationSessionService','SAME_OPERATION_SHARE_INTERVAL','dispose$','mergeOverrideWithDependencies','string','getInitialStates','DesktopLiveShareController','useDependency','tryStartPresenting','LIVESHARE_REQUEST_HOST','HEADER_MENU','SetWorksheetActiveOperation','_liveShareService','You\x27re\x20presenting\x20the\x20document','url(#$1','UniverSheetsUi','univerjs-icon\x20univerjs-icon-','throttleTime','10668QvFwMT','rxjs','children','createElement','IDLE','getMemberID','reverse','You\x27re\x20following\x20the\x20presenter','colorChannel1','not-following','executeCommand','getCurrentTypeOfUnit$','merge','UniverIcon','IUniverInstanceService','defIds','0\x200\x2017\x2017','map','unsubscribe','requireSession','setConfig','@univerjs/ui','You\x27are\x20offline.','symbol','takeUntil','_configService','_handleNewHost','parseProtocolChangeset','Button','init','UNIVER_LIVE_SHARE_PLUGIN','LiveShareCoordinator','subscribe','_commandDisposable','DisposableCollection','div','from','_unitID','following','4jrpNEW','registerInitialStateReporter','delete','clsx','2715970CspRkG','stringify','offline','_collabSessionService','@univerjs/core','RxDisposable','getUnitId','createInstance','getLiveShareCoordinator','asObservable','_collabSession','0.16.1-insiders.20260311-074e8ca','includes','Injector','BuiltInUIPart','values','_handleTerminate','_injector','You\x27re\x20not\x20following\x20the\x20presenter','substring','_sharedOperations','pluginName'];_0x442e=function(){return _0x16164f;};return _0x442e();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.16.0",
3
+ "version": "0.16.1-insiders.20260311-074e8ca",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,24 +57,24 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.1.1",
60
- "@univerjs-pro/collaboration": "0.16.0",
61
- "@univerjs/core": "0.16.0",
62
- "@univerjs/sheets": "0.16.0",
63
- "@univerjs/ui": "0.16.0",
64
- "@univerjs/sheets-ui": "0.16.0",
65
- "@univerjs/design": "0.16.0",
66
- "@univerjs-pro/collaboration-client": "0.16.0"
60
+ "@univerjs-pro/collaboration": "0.16.1-insiders.20260311-074e8ca",
61
+ "@univerjs/core": "0.16.1-insiders.20260311-074e8ca",
62
+ "@univerjs-pro/collaboration-client": "0.16.1-insiders.20260311-074e8ca",
63
+ "@univerjs/sheets": "0.16.1-insiders.20260311-074e8ca",
64
+ "@univerjs/design": "0.16.1-insiders.20260311-074e8ca",
65
+ "@univerjs/ui": "0.16.1-insiders.20260311-074e8ca",
66
+ "@univerjs/sheets-ui": "0.16.1-insiders.20260311-074e8ca"
67
67
  },
68
68
  "devDependencies": {
69
- "postcss": "^8.5.6",
69
+ "postcss": "^8.5.8",
70
70
  "react": "18.3.1",
71
71
  "rxjs": "7.8.2",
72
72
  "tailwindcss": "^3.4.17",
73
73
  "typescript": "^5.9.3",
74
74
  "vite": "^7.3.1",
75
75
  "vitest": "^4.0.18",
76
- "@univerjs/protocol": "0.1.48",
77
- "@univerjs-infra/shared": "0.16.0"
76
+ "@univerjs-infra/shared": "0.16.1",
77
+ "@univerjs/protocol": "0.1.48"
78
78
  },
79
79
  "scripts": {
80
80
  "test": "vitest run",