@univerjs-pro/live-share 0.16.0 → 0.16.1

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 _0x5b7617=_0x26e4;function _0x26e4(_0x4d35f8,_0x12d70b){_0x4d35f8=_0x4d35f8-0x1d3;const _0x294969=_0x2949();let _0x26e4f8=_0x294969[_0x4d35f8];return _0x26e4f8;}(function(_0x19b405,_0x11bbbb){const _0x172d19=_0x26e4,_0x1a248a=_0x19b405();while(!![]){try{const _0x39e8be=parseInt(_0x172d19(0x1de))/0x1*(-parseInt(_0x172d19(0x1dc))/0x2)+parseInt(_0x172d19(0x1e9))/0x3*(-parseInt(_0x172d19(0x1da))/0x4)+-parseInt(_0x172d19(0x1e0))/0x5+parseInt(_0x172d19(0x1e1))/0x6+-parseInt(_0x172d19(0x1ea))/0x7+parseInt(_0x172d19(0x1d9))/0x8*(-parseInt(_0x172d19(0x1ec))/0x9)+parseInt(_0x172d19(0x1d3))/0xa;if(_0x39e8be===_0x11bbbb)break;else _0x1a248a['push'](_0x1a248a['shift']());}catch(_0x287931){_0x1a248a['push'](_0x1a248a['shift']());}}}(_0x2949,0xed190));var h=Object[_0x5b7617(0x1e5)],u=(_0x3596a4,_0x301355,_0x43ef6f)=>_0x301355 in _0x3596a4?h(_0x3596a4,_0x301355,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43ef6f}):_0x3596a4[_0x301355]=_0x43ef6f,S=(_0x4a1833,_0x17a074,_0x5a604c)=>u(_0x4a1833,typeof _0x17a074!=_0x5b7617(0x1d8)?_0x17a074+'':_0x17a074,_0x5a604c);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');function _0x2949(){const _0x413430=['LiveShareController','3NEkgBG','5171061BWaeDg','getStatus','7839QsaHTx','get','UNIVER_SHEET','LiveShareStatusEnum','No\x20active\x20workbook\x20found.','startPresenting','_liveShareController','FUniver','FEnum','stopPresenting','UniverInstanceType','stopFollowing','60369320Fgrzan','getCurrentUnitOfType','getLiveShareCoordinatorSync','startFollowing','tryStartPresenting','symbol','13560PDalQc','2944248qlomWr','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','954076nQdPmi','IUniverInstanceService','4EkkNCZ','getUnitId','6570520XmxZkr','6645636YXuujw','_initialize','_injector','extend','defineProperty','LiveShareStatus','IDLE'];_0x2949=function(){return _0x413430;};return _0x2949();}class I extends c[_0x5b7617(0x1f3)]{constructor(){const _0x5f48ea=_0x5b7617;super(...arguments),S(this,_0x5f48ea(0x1f2));}[_0x5b7617(0x1e2)](_0x29d681){const _0x371c91=_0x5b7617;this[_0x371c91(0x1f2)]=_0x29d681['get'](s[_0x371c91(0x1e8)]);}['getLiveShareStatus'](){const _0x466399=_0x5b7617;var _0x48038a;const _0x3dc2db=this[_0x466399(0x1e3)][_0x466399(0x1ed)](n[_0x466399(0x1dd)])['getCurrentUnitOfType'](n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x3dc2db)throw new Error('No\x20active\x20workbook\x20found.');const _0x1fb115=_0x3dc2db[_0x466399(0x1df)](),_0x5222e3=this[_0x466399(0x1f2)][_0x466399(0x1d5)](_0x1fb115);return(_0x48038a=_0x5222e3==null?void 0x0:_0x5222e3[_0x466399(0x1eb)]())!=null?_0x48038a:s[_0x466399(0x1e6)][_0x466399(0x1e7)];}[_0x5b7617(0x1d6)](){const _0x18d677=_0x5b7617,_0x40ccef=this['_injector'][_0x18d677(0x1ed)](n[_0x18d677(0x1dd)])[_0x18d677(0x1d4)](n[_0x18d677(0x1f6)][_0x18d677(0x1ee)]);if(!_0x40ccef)throw new Error(_0x18d677(0x1f0));const _0x5dcf0a=_0x40ccef[_0x18d677(0x1df)](),_0x3b88eb=this[_0x18d677(0x1f2)]['getLiveShareCoordinatorSync'](_0x5dcf0a);if(!_0x3b88eb)throw new Error(_0x18d677(0x1db));_0x3b88eb[_0x18d677(0x1d6)]();}[_0x5b7617(0x1f7)](){const _0x156753=_0x5b7617,_0x4bfb6d=this[_0x156753(0x1e3)]['get'](n['IUniverInstanceService'])['getCurrentUnitOfType'](n[_0x156753(0x1f6)]['UNIVER_SHEET']);if(!_0x4bfb6d)throw new Error(_0x156753(0x1f0));const _0x454483=_0x4bfb6d[_0x156753(0x1df)](),_0x9060ae=this['_liveShareController'][_0x156753(0x1d5)](_0x454483);if(!_0x9060ae)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x9060ae['stopFollowing']();}[_0x5b7617(0x1f1)](){const _0x351608=_0x5b7617,_0x278e6a=this[_0x351608(0x1e3)][_0x351608(0x1ed)](n[_0x351608(0x1dd)])[_0x351608(0x1d4)](n[_0x351608(0x1f6)]['UNIVER_SHEET']);if(!_0x278e6a)throw new Error(_0x351608(0x1f0));const _0x4a4202=_0x278e6a[_0x351608(0x1df)](),_0x43e11c=this[_0x351608(0x1f2)][_0x351608(0x1d5)](_0x4a4202);if(!_0x43e11c)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x43e11c[_0x351608(0x1d7)]();}['stopPresenting'](){const _0x4fe85b=_0x5b7617,_0x4eea09=this[_0x4fe85b(0x1e3)][_0x4fe85b(0x1ed)](n['IUniverInstanceService'])[_0x4fe85b(0x1d4)](n[_0x4fe85b(0x1f6)][_0x4fe85b(0x1ee)]);if(!_0x4eea09)throw new Error(_0x4fe85b(0x1f0));const _0x5e373d=_0x4eea09[_0x4fe85b(0x1df)](),_0x1f76b4=this[_0x4fe85b(0x1f2)][_0x4fe85b(0x1d5)](_0x5e373d);if(!_0x1f76b4)throw new Error(_0x4fe85b(0x1db));_0x1f76b4[_0x4fe85b(0x1f5)]();}}c[_0x5b7617(0x1f3)][_0x5b7617(0x1e4)](I);class l extends c[_0x5b7617(0x1f4)]{get[_0x5b7617(0x1ef)](){const _0x5a1330=_0x5b7617;return s[_0x5a1330(0x1e6)];}}c[_0x5b7617(0x1f4)][_0x5b7617(0x1e4)](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 _0x391e2f=_0x11c4;(function(_0x2f75d4,_0x6878b9){const _0x275d62=_0x11c4,_0x3f72be=_0x2f75d4();while(!![]){try{const _0x2d35e9=parseInt(_0x275d62(0x22d))/0x1*(parseInt(_0x275d62(0x1b6))/0x2)+-parseInt(_0x275d62(0x237))/0x3*(-parseInt(_0x275d62(0x19b))/0x4)+parseInt(_0x275d62(0x1da))/0x5*(parseInt(_0x275d62(0x203))/0x6)+-parseInt(_0x275d62(0x1fb))/0x7+parseInt(_0x275d62(0x186))/0x8*(parseInt(_0x275d62(0x184))/0x9)+-parseInt(_0x275d62(0x1ec))/0xa+parseInt(_0x275d62(0x1b9))/0xb*(-parseInt(_0x275d62(0x1db))/0xc);if(_0x2d35e9===_0x6878b9)break;else _0x3f72be['push'](_0x3f72be['shift']());}catch(_0x2f0b99){_0x3f72be['push'](_0x3f72be['shift']());}}}(_0x40ca,0x2b064));var T=Object[_0x391e2f(0x1c5)],U=(_0x21d130,_0x29da5f,_0xf30c5)=>_0x29da5f in _0x21d130?T(_0x21d130,_0x29da5f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf30c5}):_0x21d130[_0x29da5f]=_0xf30c5,_=(_0x2830d6,_0x586475,_0x32d0ce)=>U(_0x2830d6,typeof _0x586475!='symbol'?_0x586475+'':_0x586475,_0x32d0ce);Object[_0x391e2f(0x1c5)](exports,Symbol[_0x391e2f(0x1cf)],{'value':_0x391e2f(0x222)});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:_0x4848e1,..._0x1cca5c}){const _0x49678f=_0x391e2f,{icon:_0x4b2f77,id:_0x509e5e,className:_0xfdf8b8,extend:_0x30294b,..._0x3ce6fd}=_0x1cca5c,_0x4cfa02=(_0x49678f(0x169)+_0x509e5e+'\x20'+(_0xfdf8b8||''))[_0x49678f(0x167)](),_0x12ca6f=v['useRef']('_'+H());return j(_0x4b2f77,''+_0x509e5e,{'defIds':_0x4b2f77[_0x49678f(0x17a)],'idSuffix':_0x12ca6f[_0x49678f(0x229)]},{'ref':_0x4848e1,'className':_0x4cfa02,..._0x3ce6fd},_0x30294b);}function j(_0x5bc828,_0x3d8a8c,_0xc9a6be,_0x10bf64,_0x44d3c7){const _0x4eb857=_0x391e2f;return v['createElement'](_0x5bc828[_0x4eb857(0x236)],{'key':_0x3d8a8c,...y(_0x5bc828,_0xc9a6be,_0x44d3c7),..._0x10bf64},(F(_0x5bc828,_0xc9a6be)['children']||[])[_0x4eb857(0x171)]((_0x360c3d,_0x26dae9)=>j(_0x360c3d,_0x3d8a8c+'-'+_0x5bc828['tag']+'-'+_0x26dae9,_0xc9a6be,void 0x0,_0x44d3c7)));}function y(_0x232b64,_0x344de7,_0x3d55ee){const _0x1b6a56=_0x391e2f,_0xe720f0={..._0x232b64[_0x1b6a56(0x161)]};_0x3d55ee!=null&&_0x3d55ee[_0x1b6a56(0x212)]&&_0xe720f0[_0x1b6a56(0x1fd)]==='colorChannel1'&&(_0xe720f0[_0x1b6a56(0x1fd)]=_0x3d55ee[_0x1b6a56(0x212)]),_0x232b64['tag']===_0x1b6a56(0x1aa)&&_0xe720f0['id']&&(_0xe720f0['id']=_0xe720f0['id']+_0x344de7[_0x1b6a56(0x1c4)]),Object[_0x1b6a56(0x20b)](_0xe720f0)[_0x1b6a56(0x1eb)](([_0x1157aa,_0x3be7dd])=>{const _0x5352aa=_0x1b6a56;_0x1157aa==='mask'&&typeof _0x3be7dd==_0x5352aa(0x20d)&&(_0xe720f0[_0x1157aa]=_0x3be7dd[_0x5352aa(0x221)](/url\(#(.*)\)/,'url(#$1'+_0x344de7['idSuffix']+')'));});const {defIds:_0x7972cf}=_0x344de7;return!_0x7972cf||_0x7972cf['length']===0x0||(_0x232b64[_0x1b6a56(0x236)]===_0x1b6a56(0x18d)&&_0xe720f0['xlink:href']&&(_0xe720f0[_0x1b6a56(0x215)]=_0xe720f0[_0x1b6a56(0x215)]+_0x344de7[_0x1b6a56(0x1c4)]),Object['entries'](_0xe720f0)[_0x1b6a56(0x1eb)](([_0x1f5c40,_0x404f55])=>{const _0x3af807=_0x1b6a56;typeof _0x404f55=='string'&&(_0xe720f0[_0x1f5c40]=_0x404f55[_0x3af807(0x221)](/url\(#(.*)\)/,_0x3af807(0x1fc)+_0x344de7[_0x3af807(0x1c4)]+')'));})),_0xe720f0;}function F(_0x5eb9bc,_0x175d78){const _0x3f454f=_0x391e2f;var _0x559090;const {defIds:_0x3be92e}=_0x175d78;return!_0x3be92e||_0x3be92e[_0x3f454f(0x22a)]===0x0?_0x5eb9bc:_0x5eb9bc[_0x3f454f(0x236)]===_0x3f454f(0x1c7)&&((_0x559090=_0x5eb9bc[_0x3f454f(0x1ae)])!=null&&_0x559090[_0x3f454f(0x22a)])?{..._0x5eb9bc,'children':_0x5eb9bc['children'][_0x3f454f(0x171)](_0x27ac06=>typeof _0x27ac06[_0x3f454f(0x161)]['id']==_0x3f454f(0x20d)&&_0x3be92e&&_0x3be92e[_0x3f454f(0x1a5)](_0x27ac06[_0x3f454f(0x161)]['id'])?{..._0x27ac06,'attrs':{..._0x27ac06[_0x3f454f(0x161)],'id':_0x27ac06[_0x3f454f(0x161)]['id']+_0x175d78[_0x3f454f(0x1c4)]}}:_0x27ac06)}:_0x5eb9bc;}function H(){const _0x5b8ddc=_0x391e2f;return Math[_0x5b8ddc(0x22b)]()['toString'](0x24)[_0x5b8ddc(0x21a)](0x2,0x8);}x[_0x391e2f(0x219)]=_0x391e2f(0x1c3);const V={'tag':'svg','attrs':{'xmlns':_0x391e2f(0x1ea),'fill':_0x391e2f(0x224),'viewBox':'0\x200\x2017\x2017','width':_0x391e2f(0x1d1),'height':_0x391e2f(0x1d1)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x391e2f(0x16a)}},{'tag':_0x391e2f(0x1d2),'attrs':{'fill':_0x391e2f(0x218),'d':_0x391e2f(0x1b3),'fillRule':_0x391e2f(0x1c0),'clipRule':_0x391e2f(0x1c0)}}]},R=v['forwardRef'](function(_0x2ad740,_0x6dd58d){const _0x978795=_0x391e2f;return v[_0x978795(0x1b8)](x,Object[_0x978795(0x1c2)]({},_0x2ad740,{'id':_0x978795(0x1a7),'ref':_0x6dd58d,'icon':V}));});R[_0x391e2f(0x219)]=_0x391e2f(0x1e2);class E extends o[_0x391e2f(0x1a0)]{constructor(){const _0x5f3ab2=_0x391e2f;super(...arguments),_(this,_0x5f3ab2(0x21c),new Set()),_(this,_0x5f3ab2(0x226),new Set());}['registerSharedOperation'](_0x30b771){const _0x15a840=_0x391e2f;return this[_0x15a840(0x21c)][_0x15a840(0x1f3)](_0x30b771),o[_0x15a840(0x1de)](()=>this['_sharedOperations'][_0x15a840(0x1d4)](_0x30b771));}[_0x391e2f(0x19d)](_0x27b836){const _0x32dbb4=_0x391e2f;return this[_0x32dbb4(0x226)][_0x32dbb4(0x1f3)](_0x27b836),o['toDisposable'](()=>this[_0x32dbb4(0x226)][_0x32dbb4(0x1d4)](_0x27b836));}[_0x391e2f(0x170)](_0x7b6ab0){const _0x113f23=_0x391e2f;return this[_0x113f23(0x21c)]['has'](_0x7b6ab0);}[_0x391e2f(0x1ab)](_0x427123){const _0x44355b=_0x391e2f;return Array[_0x44355b(0x197)](this[_0x44355b(0x226)])[_0x44355b(0x171)](_0x77c9d3=>_0x77c9d3(_0x427123));}}var M=Object[_0x391e2f(0x23a)],P=(_0x2ea23f,_0x484f6d,_0x379bbb,_0x22d905)=>{const _0x5c0fa4=_0x391e2f;for(var _0x22f8ce=_0x22d905>0x1?void 0x0:_0x22d905?M(_0x484f6d,_0x379bbb):_0x484f6d,_0x2f7901=_0x2ea23f[_0x5c0fa4(0x22a)]-0x1,_0x1f6693;_0x2f7901>=0x0;_0x2f7901--)(_0x1f6693=_0x2ea23f[_0x2f7901])&&(_0x22f8ce=_0x1f6693(_0x22f8ce)||_0x22f8ce);return _0x22f8ce;},S=(_0x39b57a,_0x2e7152)=>(_0x6d86ce,_0x1d8c44)=>_0x2e7152(_0x6d86ce,_0x1d8c44,_0x39b57a);exports[_0x391e2f(0x1cc)]=class extends o[_0x391e2f(0x23b)]{constructor(_0x115a37,_0x4b2411,_0x43aed3){const _0x268a3d=_0x391e2f;super(),_(this,_0x268a3d(0x1d9),new Map()),(this[_0x268a3d(0x176)]=_0x115a37,this[_0x268a3d(0x202)]=_0x4b2411,this[_0x268a3d(0x15e)]=_0x43aed3,this[_0x268a3d(0x174)]());}async[_0x391e2f(0x23d)](_0x227c14){const _0x2eea9a=_0x391e2f;return this['_entities']['has'](_0x227c14)||await this[_0x2eea9a(0x162)](_0x227c14),this[_0x2eea9a(0x1d9)][_0x2eea9a(0x205)](_0x227c14);}[_0x391e2f(0x18b)](_0x39020c){const _0xef772b=_0x391e2f;var _0x4278ef;return(_0x4278ef=this[_0xef772b(0x1d9)][_0xef772b(0x205)](_0x39020c))!=null?_0x4278ef:null;}[_0x391e2f(0x174)](){const _0x4502a0=_0x391e2f;this[_0x4502a0(0x176)][_0x4502a0(0x217)](o[_0x4502a0(0x233)][_0x4502a0(0x228)])[_0x4502a0(0x23c)](I[_0x4502a0(0x201)](this['dispose$']))['subscribe'](async _0x218e1e=>{const _0x4caf38=_0x4502a0,_0x4ec1c3=_0x218e1e['getUnitId']();this['_entities'][_0x4caf38(0x18c)](_0x4ec1c3)||this[_0x4caf38(0x162)](_0x4ec1c3);}),this['_univerInstanceService'][_0x4502a0(0x177)](o[_0x4502a0(0x233)][_0x4502a0(0x228)])[_0x4502a0(0x23c)](I['takeUntil'](this[_0x4502a0(0x1d0)]))['subscribe'](_0x341bf4=>{const _0x1c7ec5=_0x4502a0,_0x7d7a76=_0x341bf4['getUnitId'](),_0x418a88=this[_0x1c7ec5(0x1d9)][_0x1c7ec5(0x205)](_0x7d7a76);_0x418a88==null||_0x418a88[_0x1c7ec5(0x216)]();});}async[_0x391e2f(0x162)](_0x5edbf0){const _0x3a71e3=_0x391e2f,_0x5901b0=await this['_collabSessionService'][_0x3a71e3(0x19e)](_0x5edbf0),_0x4de060=this[_0x3a71e3(0x202)][_0x3a71e3(0x1e6)](exports[_0x3a71e3(0x1e3)],_0x5edbf0,_0x5901b0);return _0x4de060['init'](),this[_0x3a71e3(0x1d9)][_0x3a71e3(0x160)](_0x5edbf0,_0x4de060),_0x4de060;}},exports[_0x391e2f(0x1cc)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x391e2f(0x1c1)](o[_0x391e2f(0x1bb)])),S(0x2,o[_0x391e2f(0x1c1)](b[_0x391e2f(0x16d)]))],exports[_0x391e2f(0x1cc)]);var u=(_0x4fd48a=>(_0x4fd48a[_0x391e2f(0x238)]='offline',_0x4fd48a[_0x391e2f(0x21e)]=_0x391e2f(0x1a2),_0x4fd48a['FOLLOWING']=_0x391e2f(0x16e),_0x4fd48a[_0x391e2f(0x193)]=_0x391e2f(0x1a8),_0x4fd48a['PRESENTING']='presenting',_0x4fd48a))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x391e2f(0x1e3)]=class extends o[_0x391e2f(0x23b)]{constructor(_0xca29bf,_0x63af86,_0x4a3530,_0x670472,_0x5e8b14){const _0x201341=_0x391e2f;super(),_(this,_0x201341(0x168),new O[(_0x201341(0x1ff))](_0x201341(0x1a2))),_(this,_0x201341(0x188),this['_status$'][_0x201341(0x1ed)]()),_(this,_0x201341(0x174),!0x1),_(this,_0x201341(0x1b2),null),_(this,_0x201341(0x1f7),null),(this['_unitID']=_0xca29bf,this['_collabSession']=_0x63af86,this[_0x201341(0x1dd)]=_0x4a3530,this[_0x201341(0x165)]=_0x670472,this['_commandService']=_0x5e8b14);}get['_status'](){const _0x293e39=_0x391e2f;return this[_0x293e39(0x168)][_0x293e39(0x1ef)]();}[_0x391e2f(0x216)](){const _0x43ebf9=_0x391e2f;var _0x4b50b6;(_0x4b50b6=this[_0x43ebf9(0x1b2)])==null||_0x4b50b6[_0x43ebf9(0x216)](),this[_0x43ebf9(0x168)]['next'](_0x43ebf9(0x1a2)),this[_0x43ebf9(0x168)]['complete']();}[_0x391e2f(0x19a)](){const _0x806dab=_0x391e2f;return this[_0x806dab(0x163)];}[_0x391e2f(0x17d)](){const _0x35d832=_0x391e2f;this['_init']||(this[_0x35d832(0x174)]=!0x0,this[_0x35d832(0x182)][_0x35d832(0x239)]['pipe'](I['takeUntil'](this['dispose$']))[_0x35d832(0x1b7)](_0x5b26ab=>{const _0x9b9f43=_0x35d832;switch(_0x5b26ab){case b[_0x9b9f43(0x1ee)]['OFFLINE']:this[_0x9b9f43(0x210)]();break;case b[_0x9b9f43(0x1ee)][_0x9b9f43(0x1cd)]:this[_0x9b9f43(0x1df)]();break;}}),this[_0x35d832(0x182)]['event$'][_0x35d832(0x23c)](I[_0x35d832(0x201)](this['dispose$']))[_0x35d832(0x1b7)](_0x417296=>{const _0x251cab=_0x35d832,{eventID:_0x5dbd84}=_0x417296;switch(_0x5dbd84){case d[_0x251cab(0x1b0)][_0x251cab(0x213)]:this[_0x251cab(0x1be)](_0x417296);break;case d[_0x251cab(0x1b0)][_0x251cab(0x196)]:this[_0x251cab(0x1f8)](_0x417296);break;case d[_0x251cab(0x1b0)][_0x251cab(0x1ba)]:this['_handleTerminate']();break;case d[_0x251cab(0x1b0)][_0x251cab(0x16f)]:this['_handleNewChangeSets'](_0x417296);break;}}));}[_0x391e2f(0x181)](){const _0x228340=_0x391e2f;this[_0x228340(0x182)][_0x228340(0x190)]({'eventID':d[_0x228340(0x1b0)][_0x228340(0x1d6)],'data':{'unitID':this[_0x228340(0x208)],'userID':this[_0x228340(0x182)][_0x228340(0x187)]()}},this['_unitID']);}['stopPresenting'](){const _0x50ee32=_0x391e2f;this[_0x50ee32(0x163)]===_0x50ee32(0x1a6)&&(this[_0x50ee32(0x168)][_0x50ee32(0x194)](_0x50ee32(0x1a2)),this[_0x50ee32(0x182)][_0x50ee32(0x190)]({'eventID':d[_0x50ee32(0x1b0)][_0x50ee32(0x1ba)],'data':{'unitID':this[_0x50ee32(0x208)]}},this[_0x50ee32(0x208)]));}[_0x391e2f(0x21f)](){const _0xab5ed6=_0x391e2f;this[_0xab5ed6(0x163)]==='not-following'&&(this[_0xab5ed6(0x168)]['next'](_0xab5ed6(0x16e)),this[_0xab5ed6(0x189)]());}['stopFollowing'](){const _0x477e2a=_0x391e2f;this[_0x477e2a(0x163)]===_0x477e2a(0x16e)&&this[_0x477e2a(0x191)]();}['_handleNewHost'](_0x5a5870){const _0xd5fc5e=_0x391e2f,{presenter:_0x55377a}=_0x5a5870['data'],_0x51524a=this[_0xd5fc5e(0x182)][_0xd5fc5e(0x187)]();this[_0xd5fc5e(0x1f7)]=_0x55377a,_0x55377a===_0x51524a?(this[_0xd5fc5e(0x191)](),this[_0xd5fc5e(0x1a1)]()):this[_0xd5fc5e(0x163)]!=='not-following'&&(this[_0xd5fc5e(0x180)](),this[_0xd5fc5e(0x189)]());}['_fetchOperations'](){const _0x31de84=_0x391e2f,_0x16c60f={'eventID':d[_0x31de84(0x1b0)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x31de84(0x182)][_0x31de84(0x190)](_0x16c60f,this[_0x31de84(0x208)]);}['_handleTerminate'](){const _0x5bb6dc=_0x391e2f;this['_presenter']=null,this[_0x5bb6dc(0x163)]!==_0x5bb6dc(0x1a6)&&this['_beIdle']();}[_0x391e2f(0x1f9)](_0x392a30){const _0x3f62e5=_0x391e2f;if(this[_0x3f62e5(0x163)]===_0x3f62e5(0x16e)&&this[_0x3f62e5(0x1f7)]===_0x392a30[_0x3f62e5(0x17c)][_0x3f62e5(0x1d7)]){const _0x538fd6=d[_0x3f62e5(0x166)](_0x392a30['data'])[_0x3f62e5(0x1c8)]['reverse']()[_0x3f62e5(0x1fa)](_0x3122a6=>_0x3122a6['id']===C[_0x3f62e5(0x1ca)]['id']);if(_0x538fd6){const _0x26cc3f=_0x538fd6['params'][_0x3f62e5(0x185)],_0x21ac3f=_0x538fd6[_0x3f62e5(0x223)][_0x3f62e5(0x178)]['id'];setTimeout(()=>{const _0x4237af=_0x3f62e5;this[_0x4237af(0x23e)][_0x4237af(0x1e4)](C[_0x4237af(0x225)]['id'],{'unitId':_0x26cc3f,'subUnitId':_0x21ac3f},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x58530e=_0x391e2f;this['_status$'][_0x58530e(0x194)]('presenting');const _0x243789=new Map(),_0x77962e=this[_0x58530e(0x1b2)]=new o['DisposableCollection']();_0x77962e[_0x58530e(0x1f3)](o[_0x58530e(0x1de)](()=>{const _0x187a64=_0x58530e;_0x243789[_0x187a64(0x1eb)](_0x4d5106=>_0x4d5106[_0x187a64(0x1f4)]()),_0x243789[_0x187a64(0x220)]();})),_0x77962e['add'](this['_commandService']['onCommandExecuted'](_0x541a91=>{const _0x23a3e2=_0x58530e;var _0x2e627d;if(_0x541a91[_0x23a3e2(0x195)]!==o[_0x23a3e2(0x231)][_0x23a3e2(0x1f1)]||!this[_0x23a3e2(0x165)][_0x23a3e2(0x170)](_0x541a91['id']))return;const {id:_0x139200}=_0x541a91;let _0x5dcb5e;_0x243789['has'](_0x139200)?_0x5dcb5e=_0x243789['get'](_0x139200):(_0x5dcb5e=new O[(_0x23a3e2(0x22c))](),_0x243789[_0x23a3e2(0x160)](_0x139200,_0x5dcb5e),_0x5dcb5e['pipe'](I[_0x23a3e2(0x1b4)]((_0x2e627d=this['_configService'][_0x23a3e2(0x22f)](k))!=null?_0x2e627d:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x23a3e2(0x1b7)](_0x3a08dd=>{const _0x4acadc=_0x23a3e2;this[_0x4acadc(0x182)]['send']({'eventID':d['CollaborationEvent'][_0x4acadc(0x196)],'data':{'unitID':this[_0x4acadc(0x208)],'operations':{[_0x3a08dd['id']]:{'id':_0x3a08dd['id'],'params':JSON[_0x4acadc(0x211)](_0x3a08dd[_0x4acadc(0x223)])}}}},this[_0x4acadc(0x208)]);})),_0x5dcb5e[_0x23a3e2(0x194)](_0x541a91);})),this[_0x58530e(0x165)][_0x58530e(0x1ab)](this[_0x58530e(0x208)])['forEach'](_0x53331c=>this[_0x58530e(0x182)][_0x58530e(0x190)]({'eventID':d[_0x58530e(0x1b0)][_0x58530e(0x196)],'data':{'unitID':this[_0x58530e(0x208)],'operations':{[_0x53331c['id']]:{'id':_0x53331c['id'],'params':JSON[_0x58530e(0x211)](_0x53331c[_0x58530e(0x223)])}}}},this[_0x58530e(0x208)]));}[_0x391e2f(0x180)](){const _0x1a29bb=_0x391e2f;var _0x3ce555;this[_0x1a29bb(0x168)][_0x1a29bb(0x194)]('idle'),(_0x3ce555=this[_0x1a29bb(0x1b2)])==null||_0x3ce555['dispose'](),this[_0x1a29bb(0x1b2)]=null;}[_0x391e2f(0x189)](){const _0x25dd55=_0x391e2f;var _0x32541e;(_0x32541e=this['_commandDisposable'])==null||_0x32541e[_0x25dd55(0x216)](),this[_0x25dd55(0x168)][_0x25dd55(0x194)](_0x25dd55(0x16e));}[_0x391e2f(0x207)](){const _0x34f3b0=_0x391e2f;var _0xf7cfc1;this[_0x34f3b0(0x168)][_0x34f3b0(0x194)](_0x34f3b0(0x1a2)),(_0xf7cfc1=this['_commandDisposable'])==null||_0xf7cfc1[_0x34f3b0(0x216)](),this[_0x34f3b0(0x1b2)]=null;}[_0x391e2f(0x191)](){const _0x79b2bd=_0x391e2f;var _0x59996f;this['_status$'][_0x79b2bd(0x194)](_0x79b2bd(0x1a8)),(_0x59996f=this[_0x79b2bd(0x1b2)])==null||_0x59996f[_0x79b2bd(0x216)]();}['_handleOperation'](_0xf3845a){const _0x5e191b=_0x391e2f;if([_0x5e191b(0x1a6),_0x5e191b(0x1a8),_0x5e191b(0x214)][_0x5e191b(0x1a5)](this[_0x5e191b(0x163)])||!_0xf3845a[_0x5e191b(0x17c)][_0x5e191b(0x1f5)]||_0xf3845a['data']['presenter']===this[_0x5e191b(0x182)]['getMemberID']())return;this[_0x5e191b(0x163)]===_0x5e191b(0x1a2)&&this[_0x5e191b(0x189)]();const _0x5e0a47=_0xf3845a['data'][_0x5e191b(0x17b)];Object[_0x5e191b(0x230)](_0x5e0a47)[_0x5e191b(0x1eb)](_0x43524d=>{const _0x35b282=_0x5e191b;this[_0x35b282(0x23e)][_0x35b282(0x1e4)](_0x43524d['id'],_0x43524d[_0x35b282(0x223)]?JSON[_0x35b282(0x21b)](_0x43524d[_0x35b282(0x223)]):null,{'fromCollab':!0x0});});}[_0x391e2f(0x210)](){const _0x3eb596=_0x391e2f;var _0x5af6c6;this[_0x3eb596(0x168)]['next'](_0x3eb596(0x214)),(_0x5af6c6=this[_0x3eb596(0x1b2)])==null||_0x5af6c6[_0x3eb596(0x216)]();}[_0x391e2f(0x1df)](){const _0xfb4826=_0x391e2f;this[_0xfb4826(0x168)]['next'](_0xfb4826(0x1a2)),this[_0xfb4826(0x17f)]();}},exports[_0x391e2f(0x1e3)]=P([S(0x2,o['IConfigService']),S(0x3,o[_0x391e2f(0x1c1)](E)),S(0x4,o[_0x391e2f(0x192)])],exports[_0x391e2f(0x1e3)]);function $(){const _0x422c5a=_0x391e2f,_0x9e98c=p['useDependency'](exports['LiveShareController']),_0x27b713=p[_0x422c5a(0x1e1)](o[_0x422c5a(0x1ad)]),_0x5201c0=p[_0x422c5a(0x175)](()=>_0x27b713[_0x422c5a(0x17e)](o[_0x422c5a(0x233)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3c5118,_0x1d0b53]=v[_0x422c5a(0x1bf)](null),[_0x511e27,_0xeef1dc]=v['useState'](u[_0x422c5a(0x21e)]),_0x426de4=v[_0x422c5a(0x1d5)](null);return v['useEffect'](()=>(_0x5201c0&&_0x9e98c['getLiveShareCoordinator'](_0x5201c0[_0x422c5a(0x198)]())[_0x422c5a(0x204)](_0x59dc4f=>{const _0x11b7b8=_0x422c5a;_0x1d0b53(_0x59dc4f),_0x426de4['current']=_0x59dc4f[_0x11b7b8(0x188)]['subscribe'](_0x22640a=>{_0xeef1dc(_0x22640a);});}),()=>{const _0x5091d2=_0x422c5a;var _0x5a9763;(_0x5a9763=_0x426de4['current'])==null||_0x5a9763[_0x5091d2(0x234)](),_0x426de4['current']=null;}),[_0x5201c0,_0x9e98c]),_0x3c5118?l[_0x422c5a(0x1af)](f[_0x422c5a(0x1e0)],{'align':_0x422c5a(0x1f6),'disabled':_0x511e27===u[_0x422c5a(0x238)],'className':_0x422c5a(0x19c),'overlay':l[_0x422c5a(0x1af)](W,{'status':_0x511e27,'coordinator':_0x3c5118}),'children':l[_0x422c5a(0x1af)](_0x422c5a(0x206),{'className':f['clsx'](_0x422c5a(0x172),{'univer-cursor-not-allowed':_0x511e27===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x511e27!==u[_0x422c5a(0x238)]}),'type':'button','children':l[_0x422c5a(0x1af)](R,{'className':'univer-size-4'})})}):null;}function W(_0x368a39){const _0x4b02b8=_0x391e2f,{status:_0x1da33,coordinator:_0x1cb29b}=_0x368a39;switch(_0x1da33){case u['IDLE']:return l[_0x4b02b8(0x1af)](G,{'coordinator':_0x1cb29b});case u[_0x4b02b8(0x164)]:return l[_0x4b02b8(0x1af)](B,{'coordinator':_0x1cb29b});case u[_0x4b02b8(0x193)]:return l[_0x4b02b8(0x1af)](Y,{'coordinator':_0x1cb29b});case u[_0x4b02b8(0x238)]:return l['jsx'](J,{});case u[_0x4b02b8(0x1f2)]:return l[_0x4b02b8(0x1af)](Z,{'coordinator':_0x1cb29b});default:return null;}}function G(_0x477fab){const _0x323b63=_0x391e2f,{coordinator:_0x3d2b04}=_0x477fab;return l['jsxs'](l[_0x323b63(0x18a)],{'children':[l[_0x323b63(0x1af)]('div',{'className':_0x323b63(0x1dc),'children':_0x323b63(0x1bd)}),l[_0x323b63(0x1af)](f[_0x323b63(0x1b1)],{'onClick':()=>_0x3d2b04[_0x323b63(0x181)](),'children':'Start'})]});}function B(_0xcf253f){const _0x396d28=_0x391e2f,{coordinator:_0x5a4a35}=_0xcf253f;return l[_0x396d28(0x1c9)](l[_0x396d28(0x18a)],{'children':[l[_0x396d28(0x1af)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x396d28(0x18e)}),l[_0x396d28(0x1af)](f[_0x396d28(0x1b1)],{'onClick':()=>_0x5a4a35['stopFollowing'](),'children':_0x396d28(0x1e5)})]});}function Y(_0x3c5382){const _0x42c857=_0x391e2f,{coordinator:_0x449809}=_0x3c5382;return l['jsxs'](l[_0x42c857(0x18a)],{'children':[l['jsx'](_0x42c857(0x235),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x42c857(0x16c)}),l[_0x42c857(0x1af)](f['Button'],{'variant':_0x42c857(0x199),'onClick':()=>_0x449809['startFollowing'](),'children':_0x42c857(0x1bc)})]});}function Z(_0x577143){const _0x24ae97=_0x391e2f,{coordinator:_0x2c9804}=_0x577143;return l[_0x24ae97(0x1c9)](l[_0x24ae97(0x18a)],{'children':[l[_0x24ae97(0x1af)](_0x24ae97(0x235),{'className':_0x24ae97(0x1dc),'children':_0x24ae97(0x1e7)}),l[_0x24ae97(0x1af)](f[_0x24ae97(0x1b1)],{'variant':'default','onClick':()=>_0x2c9804[_0x24ae97(0x200)](),'children':_0x24ae97(0x1c6)})]});}function J(){const _0x1ff830=_0x391e2f;return l[_0x1ff830(0x1af)](l['Fragment'],{'children':_0x1ff830(0x179)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x13c448,_0x16c0db,_0x4ea4dd,_0x22440b)=>{for(var _0x3d7656=_0x22440b>0x1?void 0x0:_0x22440b?K(_0x16c0db,_0x4ea4dd):_0x16c0db,_0x121bef=_0x13c448['length']-0x1,_0x270746;_0x121bef>=0x0;_0x121bef--)(_0x270746=_0x13c448[_0x121bef])&&(_0x3d7656=_0x270746(_0x3d7656)||_0x3d7656);return _0x3d7656;},L=(_0x343fcf,_0x453083)=>(_0x470441,_0x5245e6)=>_0x453083(_0x470441,_0x5245e6,_0x343fcf);exports[_0x391e2f(0x1a4)]=class extends o[_0x391e2f(0x1a0)]{constructor(_0x2bdc3b,_0x1e3f97){const _0x11b2ee=_0x391e2f;super(),this['_injector']=_0x2bdc3b,this['_uiPartsService']=_0x1e3f97,this[_0x11b2ee(0x209)]();}[_0x391e2f(0x209)](){const _0x2e2da6=_0x391e2f;this[_0x2e2da6(0x1b5)](this[_0x2e2da6(0x232)][_0x2e2da6(0x1d3)](p[_0x2e2da6(0x173)][_0x2e2da6(0x19f)],()=>p[_0x2e2da6(0x1f0)]($,this['_injector'])));}},exports[_0x391e2f(0x1a4)]=z([L(0x0,o['Inject'](o[_0x391e2f(0x1bb)])),L(0x1,p['IUIPartsService'])],exports[_0x391e2f(0x1a4)]);function _0x40ca(){const _0x5e80cf=['unsubscribe','div','tag','12CRyuYg','OFFLINE','sessionStatus$','getOwnPropertyDescriptor','RxDisposable','pipe','getLiveShareCoordinator','_commandService','_collabSessionService','UNIVER_LIVE_SHARE_PLUGIN','set','attrs','_startLiveShareCoordinator','_status','FOLLOWING','_liveShareService','parseProtocolChangeset','trim','_status$','univerjs-icon\x20univerjs-icon-','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','SetScrollOperation','You\x27re\x20not\x20following\x20the\x20presenter','CollaborationSessionService','following','NEW_CHANGESETS','shouldShareOperation','map','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','BuiltInUIPart','_init','useObservable','_univerInstanceService','getTypeOfUnitDisposed$','sheet','You\x27are\x20offline.','defIds','operations','data','init','getCurrentTypeOfUnit$','_fetchOperations','_stopPresenting','tryStartPresenting','_collabSession','live-share.config','9846HnrLlp','unitId','928fgkZpp','getMemberID','status$','_startFollowing','Fragment','getLiveShareCoordinatorSync','has','use','You\x27re\x20following\x20the\x20presenter','symbol','send','_stopFollowing','ICommandService','NOT_FOLLOWING','next','type','LIVESHARE_OPERATION','from','getUnitId','text','getStatus','132092nvXDGP','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','registerInitialStateReporter','requireSession','HEADER_MENU','Disposable','_startPresenting','idle','merge','DesktopLiveShareController','includes','presenting','live-share-icon','not-following','mergeOverrideWithDependencies','mask','getInitialStates','SetZoomRatioOperation','IUniverInstanceService','children','jsx','CollaborationEvent','Button','_commandDisposable','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','throttleTime','disposeWithMe','170ShrQKs','subscribe','createElement','2083147dypveO','LIVESHARE_TERMINATE','Injector','Start\x20following','Present\x20this\x20document','_handleNewHost','useState','evenodd','Inject','assign','UniverIcon','idSuffix','defineProperty','Stop\x20presenting','defs','mutations','jsxs','InsertSheetMutation','UniverLiveSharePlugin','LiveShareController','ONLINE','onStarting','toStringTag','dispose$','1em','path','registerComponent','delete','useRef','LIVESHARE_REQUEST_HOST','memberID','touchDependencies','_entities','150ezgViB','12lCZZij','univer-mb-3\x20univer-w-full\x20univer-text-sm','_configService','toDisposable','_handleOnline','Dropdown','useDependency','LiveShareIcon','LiveShareCoordinator','executeCommand','Stop\x20following','createInstance','You\x27re\x20presenting\x20the\x20document','override','IConfigService','http://www.w3.org/2000/svg','forEach','1478400aHwueD','asObservable','SessionStatus','getValue','connectInjector','OPERATION','PRESENTING','add','complete','presenter','end','_presenter','_handleOperation','_handleNewChangeSets','find','963242AnNzTm','url(#$1','fill','setConfig','BehaviorSubject','stopPresenting','takeUntil','_injector','9306DfCfZY','then','get','button','_beIdle','_unitID','_mountLiveShare','pluginName','entries','UNIVER_UNKNOWN','string','Plugin','onRendered','_handleOffline','stringify','colorChannel1','LIVESHARE_NEW_HOST','offline','xlink:href','dispose','getTypeOfUnitAdded$','currentColor','displayName','substring','parse','_sharedOperations','UniverCollaborationClientPlugin','IDLE','startFollowing','clear','replace','Module','params','none','SetWorksheetActiveOperation','_reporters','_config','UNIVER_SHEET','current','length','random','Subject','4065HbCrRC','LiveShare','getConfig','values','CommandType','_uiPartsService','UniverInstanceType'];_0x40ca=function(){return _0x5e80cf;};return _0x40ca();}const Q=_0x391e2f(0x183),w={};var X=Object[_0x391e2f(0x23a)],ee=(_0x616786,_0x4e64c0,_0x2ab577,_0x547959)=>{for(var _0x23ff70=_0x547959>0x1?void 0x0:_0x547959?X(_0x4e64c0,_0x2ab577):_0x4e64c0,_0x2e719e=_0x616786['length']-0x1,_0x201caf;_0x2e719e>=0x0;_0x2e719e--)(_0x201caf=_0x616786[_0x2e719e])&&(_0x23ff70=_0x201caf(_0x23ff70)||_0x23ff70);return _0x23ff70;},te=(_0x52cd75,_0x2ec3c7)=>(_0x299a20,_0x4c59f9)=>_0x2ec3c7(_0x299a20,_0x4c59f9,_0x52cd75);function _0x11c4(_0x2186d1,_0x5bae98){_0x2186d1=_0x2186d1-0x15e;const _0x40ca65=_0x40ca();let _0x11c43b=_0x40ca65[_0x2186d1];return _0x11c43b;}let m=class extends o[_0x391e2f(0x1a0)]{constructor(_0x64bf0a){const _0x47ce21=_0x391e2f;super(),this[_0x47ce21(0x165)]=_0x64bf0a,this['_init']();}[_0x391e2f(0x174)](){const _0x7cc0e9=_0x391e2f;[D[_0x7cc0e9(0x1ac)]['id'],D[_0x7cc0e9(0x16b)]['id'],C[_0x7cc0e9(0x225)]['id']][_0x7cc0e9(0x1eb)](_0x5194e2=>{const _0x1aba26=_0x7cc0e9;this[_0x1aba26(0x1b5)](this[_0x1aba26(0x165)]['registerSharedOperation'](_0x5194e2));});}};m=ee([te(0x0,o[_0x391e2f(0x1c1)](E))],m);var ie=Object[_0x391e2f(0x1c5)],se=Object[_0x391e2f(0x23a)],ne=(_0x1fa42a,_0x2fe900,_0x163400)=>_0x2fe900 in _0x1fa42a?ie(_0x1fa42a,_0x2fe900,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x163400}):_0x1fa42a[_0x2fe900]=_0x163400,re=(_0x4e0ffd,_0x13906d,_0xe13c88,_0x40cc12)=>{const _0x218da2=_0x391e2f;for(var _0x300716=_0x40cc12>0x1?void 0x0:_0x40cc12?se(_0x13906d,_0xe13c88):_0x13906d,_0x3c2153=_0x4e0ffd[_0x218da2(0x22a)]-0x1,_0x35f1f1;_0x3c2153>=0x0;_0x3c2153--)(_0x35f1f1=_0x4e0ffd[_0x3c2153])&&(_0x300716=_0x35f1f1(_0x300716)||_0x300716);return _0x300716;},N=(_0x61a2dc,_0x4028c9)=>(_0x198cbe,_0x11340e)=>_0x4028c9(_0x198cbe,_0x11340e,_0x61a2dc),A=(_0x328320,_0x40f259,_0xd212f7)=>ne(_0x328320,typeof _0x40f259!=_0x391e2f(0x18f)?_0x40f259+'':_0x40f259,_0xd212f7);const oe=_0x391e2f(0x15f);exports[_0x391e2f(0x1cb)]=class extends o[_0x391e2f(0x20e)]{constructor(_0x562a94=w,_0x147b29,_0x5b1b5a){const _0x47b0e5=_0x391e2f;super(),this[_0x47b0e5(0x227)]=_0x562a94,this[_0x47b0e5(0x202)]=_0x147b29,this['_configService']=_0x5b1b5a;const {..._0x5c1f71}=o[_0x47b0e5(0x1a3)]({},w,this[_0x47b0e5(0x227)]);this[_0x47b0e5(0x1dd)][_0x47b0e5(0x1fe)](Q,_0x5c1f71);}[_0x391e2f(0x1ce)](){const _0x59a1a0=_0x391e2f;o['registerDependencies'](this[_0x59a1a0(0x202)],o[_0x59a1a0(0x1a9)]([[E],[exports[_0x59a1a0(0x1cc)]],[m],[exports[_0x59a1a0(0x1a4)]]],this[_0x59a1a0(0x227)][_0x59a1a0(0x1e8)])),o[_0x59a1a0(0x1d8)](this[_0x59a1a0(0x202)],[[m]]);}[_0x391e2f(0x20f)](){const _0x4095e2=_0x391e2f;o['touchDependencies'](this[_0x4095e2(0x202)],[[exports[_0x4095e2(0x1a4)]]]);}},A(exports[_0x391e2f(0x1cb)],_0x391e2f(0x195),o[_0x391e2f(0x233)][_0x391e2f(0x20c)]),A(exports['UniverLiveSharePlugin'],_0x391e2f(0x20a),oe),exports[_0x391e2f(0x1cb)]=re([o['DependentOn'](b[_0x391e2f(0x21d)]),N(0x1,o['Inject'](o[_0x391e2f(0x1bb)])),N(0x2,o[_0x391e2f(0x1e9)])],exports[_0x391e2f(0x1cb)]),exports[_0x391e2f(0x22e)]=$,exports['LiveShareService']=E,exports['LiveShareStatus']=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 _0xf0c268=_0x3d3f;(function(_0x46d303,_0x1d0a1d){const _0xbdf7cd=_0x3d3f,_0x3a8402=_0x46d303();while(!![]){try{const _0x38a504=parseInt(_0xbdf7cd(0x141))/0x1*(parseInt(_0xbdf7cd(0x13d))/0x2)+-parseInt(_0xbdf7cd(0x12a))/0x3+parseInt(_0xbdf7cd(0x137))/0x4+parseInt(_0xbdf7cd(0x13a))/0x5*(parseInt(_0xbdf7cd(0x133))/0x6)+-parseInt(_0xbdf7cd(0x131))/0x7*(-parseInt(_0xbdf7cd(0x134))/0x8)+-parseInt(_0xbdf7cd(0x146))/0x9*(-parseInt(_0xbdf7cd(0x13b))/0xa)+-parseInt(_0xbdf7cd(0x13c))/0xb;if(_0x38a504===_0x1d0a1d)break;else _0x3a8402['push'](_0x3a8402['shift']());}catch(_0x4d809d){_0x3a8402['push'](_0x3a8402['shift']());}}}(_0x1aea,0x82d01));var l=Object[_0xf0c268(0x12e)],w=(_0xf92bb9,_0x487c97,_0x3591fc)=>_0x487c97 in _0xf92bb9?l(_0xf92bb9,_0x487c97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3591fc}):_0xf92bb9[_0x487c97]=_0x3591fc,v=(_0xccafc3,_0xa88d61,_0x42ed66)=>w(_0xccafc3,typeof _0xa88d61!='symbol'?_0xa88d61+'':_0xa88d61,_0x42ed66);import{LiveShareController as _0x2f1eee,LiveShareStatus as _0xf0edf1}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x3a818b,UniverInstanceType as _0xb9f39e}from'@univerjs/core';import{FUniver as _0x1baacb,FEnum as _0x4a0172}from'@univerjs/core/facade';class g extends _0x1baacb{constructor(){const _0x32934c=_0xf0c268;super(...arguments),v(this,_0x32934c(0x143));}[_0xf0c268(0x145)](_0x20830e){const _0x36f891=_0xf0c268;this[_0x36f891(0x143)]=_0x20830e[_0x36f891(0x129)](_0x2f1eee);}[_0xf0c268(0x136)](){const _0x3f68d9=_0xf0c268;var _0x5f5d6a;const _0x5d1b30=this[_0x3f68d9(0x138)][_0x3f68d9(0x129)](_0x3a818b)[_0x3f68d9(0x130)](_0xb9f39e['UNIVER_SHEET']);if(!_0x5d1b30)throw new Error(_0x3f68d9(0x12b));const _0x1a9e44=_0x5d1b30['getUnitId'](),_0x378218=this[_0x3f68d9(0x143)]['getLiveShareCoordinatorSync'](_0x1a9e44);return(_0x5f5d6a=_0x378218==null?void 0x0:_0x378218['getStatus']())!=null?_0x5f5d6a:_0xf0edf1['IDLE'];}[_0xf0c268(0x144)](){const _0x2f36c5=_0xf0c268,_0x15609d=this[_0x2f36c5(0x138)][_0x2f36c5(0x129)](_0x3a818b)[_0x2f36c5(0x130)](_0xb9f39e[_0x2f36c5(0x13e)]);if(!_0x15609d)throw new Error(_0x2f36c5(0x12b));const _0x29c1db=_0x15609d[_0x2f36c5(0x12d)](),_0x4485c6=this[_0x2f36c5(0x143)][_0x2f36c5(0x142)](_0x29c1db);if(!_0x4485c6)throw new Error(_0x2f36c5(0x12c));_0x4485c6[_0x2f36c5(0x144)]();}['stopFollowing'](){const _0x470a99=_0xf0c268,_0x3ab606=this[_0x470a99(0x138)][_0x470a99(0x129)](_0x3a818b)[_0x470a99(0x130)](_0xb9f39e[_0x470a99(0x13e)]);if(!_0x3ab606)throw new Error(_0x470a99(0x12b));const _0x22d364=_0x3ab606[_0x470a99(0x12d)](),_0x55b70b=this['_liveShareController'][_0x470a99(0x142)](_0x22d364);if(!_0x55b70b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x55b70b[_0x470a99(0x135)]();}[_0xf0c268(0x132)](){const _0x367712=_0xf0c268,_0x10f30c=this[_0x367712(0x138)]['get'](_0x3a818b)[_0x367712(0x130)](_0xb9f39e[_0x367712(0x13e)]);if(!_0x10f30c)throw new Error('No\x20active\x20workbook\x20found.');const _0x3ac138=_0x10f30c[_0x367712(0x12d)](),_0x110cb5=this[_0x367712(0x143)]['getLiveShareCoordinatorSync'](_0x3ac138);if(!_0x110cb5)throw new Error(_0x367712(0x12c));_0x110cb5[_0x367712(0x12f)]();}['stopPresenting'](){const _0x1d686e=_0xf0c268,_0x167196=this[_0x1d686e(0x138)][_0x1d686e(0x129)](_0x3a818b)[_0x1d686e(0x130)](_0xb9f39e[_0x1d686e(0x13e)]);if(!_0x167196)throw new Error('No\x20active\x20workbook\x20found.');const _0x4c1654=_0x167196[_0x1d686e(0x12d)](),_0xa5974a=this['_liveShareController'][_0x1d686e(0x142)](_0x4c1654);if(!_0xa5974a)throw new Error(_0x1d686e(0x12c));_0xa5974a[_0x1d686e(0x140)]();}}function _0x3d3f(_0x3f3b91,_0x590b54){_0x3f3b91=_0x3f3b91-0x129;const _0x1aeac8=_0x1aea();let _0x3d3f20=_0x1aeac8[_0x3f3b91];return _0x3d3f20;}_0x1baacb[_0xf0c268(0x13f)](g);function _0x1aea(){const _0x289f86=['87460KRyXLG','UNIVER_SHEET','extend','stopPresenting','20orBfXH','getLiveShareCoordinatorSync','_liveShareController','startFollowing','_initialize','8328141ogriEY','get','405267CKyCqE','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getUnitId','defineProperty','tryStartPresenting','getCurrentUnitOfType','11361OnNrjV','startPresenting','12JjFTeC','592QwTGEL','stopFollowing','getLiveShareStatus','3407320hShdeT','_injector','LiveShareStatusEnum','2065475ExIMBA','10CQtSRc','32198903MTyfER'];_0x1aea=function(){return _0x289f86;};return _0x1aea();}class f extends _0x4a0172{get[_0xf0c268(0x139)](){return _0xf0edf1;}}_0x4a0172['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 _0x58be21=_0xaac7;(function(_0x2f2700,_0x568d5d){const _0x5f16ec=_0xaac7,_0x3b026e=_0x2f2700();while(!![]){try{const _0x5f265c=parseInt(_0x5f16ec(0x15d))/0x1*(-parseInt(_0x5f16ec(0x1b8))/0x2)+-parseInt(_0x5f16ec(0x1ac))/0x3+parseInt(_0x5f16ec(0x1e2))/0x4+-parseInt(_0x5f16ec(0x1b3))/0x5+-parseInt(_0x5f16ec(0x198))/0x6*(parseInt(_0x5f16ec(0x153))/0x7)+-parseInt(_0x5f16ec(0x1d7))/0x8*(parseInt(_0x5f16ec(0x169))/0x9)+parseInt(_0x5f16ec(0x1e5))/0xa*(parseInt(_0x5f16ec(0x1d8))/0xb);if(_0x5f265c===_0x568d5d)break;else _0x3b026e['push'](_0x3b026e['shift']());}catch(_0x458e94){_0x3b026e['push'](_0x3b026e['shift']());}}}(_0x2306,0x3c7bc));var J=Object[_0x58be21(0x155)],K=(_0x1920f7,_0x2809bc,_0x236793)=>_0x2809bc in _0x1920f7?J(_0x1920f7,_0x2809bc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x236793}):_0x1920f7[_0x2809bc]=_0x236793,u=(_0x4cacab,_0x2b6593,_0x583c30)=>K(_0x4cacab,typeof _0x2b6593!=_0x58be21(0x1a0)?_0x2b6593+'':_0x2b6593,_0x583c30);import{Disposable as _0x547c04,toDisposable as _0x590fc1,Inject as _0x18c588,Injector as _0x3b9bd8,RxDisposable as _0x42deb7,UniverInstanceType as _0x509fea,DisposableCollection as _0x4ff43e,CommandType as _0x9accce,IUniverInstanceService as _0x36a4cd,IConfigService as _0x3e291d,ICommandService as _0x532c3a,DependentOn as _0x523668,Plugin as _0x2006da,merge as _0x5d8dd9,registerDependencies as _0x2d528c,mergeOverrideWithDependencies as _0x447eb4,touchDependencies as _0x10a22a}from'@univerjs/core';import{useDependency as _0x4e9683,useObservable as _0x244005,BuiltInUIPart as _0x3290a0,connectInjector as _0x260eda,IUIPartsService as _0x35a79c}from'@univerjs/ui';import{jsx as _0x1ab26e,jsxs as _0x21b027,Fragment as _0x13995b}from'react/jsx-runtime';import{Dropdown as _0x2dbba2,clsx as _0x2c54d3,Button as _0x380710}from'@univerjs/design';import{useRef as _0x55dbd9,createElement as _0x33cec9,forwardRef as _0x463c3d,useState as _0x113df0,useEffect as _0x5cde6f}from'react';import{CollaborationEvent as _0x38bd9d,parseProtocolChangeset as _0x2e8d75}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x400127,SessionStatus as _0x44c041,UniverCollaborationClientPlugin as _0x31fc54}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4e391f,SetWorksheetActiveOperation as _0xa47d15}from'@univerjs/sheets';import{BehaviorSubject as _0x454a39,Subject as _0x207475}from'rxjs';import{takeUntil as _0x20d7f9,throttleTime as _0x4d919c}from'rxjs/operators';import{SetZoomRatioOperation as _0x1d5e61,SetScrollOperation as _0x3b9e17}from'@univerjs/sheets-ui';function k({ref:_0x3935e9,..._0x470905}){const _0x1a3225=_0x58be21,{icon:_0x348689,id:_0x1f5f0d,className:_0x20d50a,extend:_0x32da29,..._0x1fff24}=_0x470905,_0x493e98=('univerjs-icon\x20univerjs-icon-'+_0x1f5f0d+'\x20'+(_0x20d50a||''))[_0x1a3225(0x1dc)](),_0x2761d0=_0x55dbd9('_'+Oe());return G(_0x348689,''+_0x1f5f0d,{'defIds':_0x348689[_0x1a3225(0x1de)],'idSuffix':_0x2761d0[_0x1a3225(0x184)]},{'ref':_0x3935e9,'className':_0x493e98,..._0x1fff24},_0x32da29);}function G(_0xfc34d5,_0x189a90,_0xd8a4ae,_0x2ce4e0,_0x39d43c){const _0x31f884=_0x58be21;return _0x33cec9(_0xfc34d5['tag'],{'key':_0x189a90,...be(_0xfc34d5,_0xd8a4ae,_0x39d43c),..._0x2ce4e0},(Ee(_0xfc34d5,_0xd8a4ae)[_0x31f884(0x1f2)]||[])['map']((_0xd9cc97,_0x15f1e7)=>G(_0xd9cc97,_0x189a90+'-'+_0xfc34d5[_0x31f884(0x1e3)]+'-'+_0x15f1e7,_0xd8a4ae,void 0x0,_0x39d43c)));}function _0xaac7(_0x461b57,_0x27e777){_0x461b57=_0x461b57-0x14f;const _0x230691=_0x2306();let _0xaac768=_0x230691[_0x461b57];return _0xaac768;}function be(_0x4e6185,_0x46e2e6,_0x343c87){const _0x21d200=_0x58be21,_0x3f3900={..._0x4e6185[_0x21d200(0x1da)]};_0x343c87!=null&&_0x343c87[_0x21d200(0x1ad)]&&_0x3f3900['fill']===_0x21d200(0x1ad)&&(_0x3f3900['fill']=_0x343c87[_0x21d200(0x1ad)]),_0x4e6185[_0x21d200(0x1e3)]===_0x21d200(0x1ec)&&_0x3f3900['id']&&(_0x3f3900['id']=_0x3f3900['id']+_0x46e2e6[_0x21d200(0x17f)]),Object['entries'](_0x3f3900)[_0x21d200(0x1ca)](([_0x55ae9a,_0x28c415])=>{const _0x2bada1=_0x21d200;_0x55ae9a===_0x2bada1(0x1ec)&&typeof _0x28c415==_0x2bada1(0x1cd)&&(_0x3f3900[_0x55ae9a]=_0x28c415['replace'](/url\(#(.*)\)/,'url(#$1'+_0x46e2e6['idSuffix']+')'));});const {defIds:_0x2a9882}=_0x46e2e6;return!_0x2a9882||_0x2a9882['length']===0x0||(_0x4e6185[_0x21d200(0x1e3)]===_0x21d200(0x173)&&_0x3f3900[_0x21d200(0x1ce)]&&(_0x3f3900[_0x21d200(0x1ce)]=_0x3f3900[_0x21d200(0x1ce)]+_0x46e2e6[_0x21d200(0x17f)]),Object[_0x21d200(0x15e)](_0x3f3900)[_0x21d200(0x1ca)](([_0x5e36fa,_0x491aaf])=>{const _0x176ff4=_0x21d200;typeof _0x491aaf==_0x176ff4(0x1cd)&&(_0x3f3900[_0x5e36fa]=_0x491aaf['replace'](/url\(#(.*)\)/,'url(#$1'+_0x46e2e6['idSuffix']+')'));})),_0x3f3900;}function Ee(_0x509c65,_0x107cdf){const _0x2c86a6=_0x58be21;var _0x53f76d;const {defIds:_0x54c0a8}=_0x107cdf;return!_0x54c0a8||_0x54c0a8[_0x2c86a6(0x1b5)]===0x0?_0x509c65:_0x509c65[_0x2c86a6(0x1e3)]===_0x2c86a6(0x1c7)&&((_0x53f76d=_0x509c65[_0x2c86a6(0x1f2)])!=null&&_0x53f76d[_0x2c86a6(0x1b5)])?{..._0x509c65,'children':_0x509c65['children']['map'](_0x1e50cd=>typeof _0x1e50cd[_0x2c86a6(0x1da)]['id']==_0x2c86a6(0x1cd)&&_0x54c0a8&&_0x54c0a8[_0x2c86a6(0x17d)](_0x1e50cd[_0x2c86a6(0x1da)]['id'])?{..._0x1e50cd,'attrs':{..._0x1e50cd[_0x2c86a6(0x1da)],'id':_0x1e50cd[_0x2c86a6(0x1da)]['id']+_0x107cdf[_0x2c86a6(0x17f)]}}:_0x1e50cd)}:_0x509c65;}function Oe(){const _0x35957b=_0x58be21;return Math[_0x35957b(0x186)]()[_0x35957b(0x1d1)](0x24)[_0x35957b(0x1fb)](0x2,0x8);}k['displayName']=_0x58be21(0x1a5);const we={'tag':_0x58be21(0x1e7),'attrs':{'xmlns':_0x58be21(0x1af),'fill':_0x58be21(0x181),'viewBox':_0x58be21(0x19b),'width':_0x58be21(0x1e1),'height':_0x58be21(0x1e1)},'children':[{'tag':_0x58be21(0x1f4),'attrs':{'fill':_0x58be21(0x1c5),'d':_0x58be21(0x174)}},{'tag':_0x58be21(0x1f4),'attrs':{'fill':_0x58be21(0x1c5),'d':_0x58be21(0x1c8),'fillRule':'evenodd','clipRule':'evenodd'}}]},W=_0x463c3d(function(_0x27318e,_0x2bac17){const _0x237136=_0x58be21;return _0x33cec9(k,Object[_0x237136(0x194)]({},_0x27318e,{'id':_0x237136(0x1ed),'ref':_0x2bac17,'icon':we}));});W['displayName']=_0x58be21(0x1a8);class L extends _0x547c04{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x58be21(0x1b9)](_0x16e3b4){const _0x3cb6d1=_0x58be21;return this['_sharedOperations'][_0x3cb6d1(0x1f8)](_0x16e3b4),_0x590fc1(()=>this[_0x3cb6d1(0x165)][_0x3cb6d1(0x158)](_0x16e3b4));}['registerInitialStateReporter'](_0x2fb14f){const _0x46e70c=_0x58be21;return this[_0x46e70c(0x182)][_0x46e70c(0x1f8)](_0x2fb14f),_0x590fc1(()=>this[_0x46e70c(0x182)][_0x46e70c(0x158)](_0x2fb14f));}[_0x58be21(0x19e)](_0x13fef3){const _0x5ccaf7=_0x58be21;return this[_0x5ccaf7(0x165)][_0x5ccaf7(0x191)](_0x13fef3);}[_0x58be21(0x1e8)](_0x556d59){const _0x14283c=_0x58be21;return Array[_0x14283c(0x1a7)](this[_0x14283c(0x182)])[_0x14283c(0x183)](_0x33636a=>_0x33636a(_0x556d59));}}var Ne=Object[_0x58be21(0x1d2)],Y=(_0x24ee50,_0x36b5a9,_0x21a2b3,_0x152bb9)=>{for(var _0x542bfc=_0x152bb9>0x1?void 0x0:_0x152bb9?Ne(_0x36b5a9,_0x21a2b3):_0x36b5a9,_0x4f8ae6=_0x24ee50['length']-0x1,_0x189c00;_0x4f8ae6>=0x0;_0x4f8ae6--)(_0x189c00=_0x24ee50[_0x4f8ae6])&&(_0x542bfc=_0x189c00(_0x542bfc)||_0x542bfc);return _0x542bfc;},_=(_0x30c595,_0xf067cd)=>(_0x4839d4,_0x158bff)=>_0xf067cd(_0x4839d4,_0x158bff,_0x30c595);let S=class extends _0x42deb7{constructor(_0x336ba6,_0x31c4c6,_0x3372b0){const _0x37b61c=_0x58be21;super(),u(this,_0x37b61c(0x1f1),new Map()),(this[_0x37b61c(0x15b)]=_0x336ba6,this[_0x37b61c(0x1a2)]=_0x31c4c6,this[_0x37b61c(0x1e6)]=_0x3372b0,this[_0x37b61c(0x1b7)]());}async[_0x58be21(0x1f6)](_0x9bf26c){const _0x50f6d4=_0x58be21;return this['_entities']['has'](_0x9bf26c)||await this[_0x50f6d4(0x1d9)](_0x9bf26c),this[_0x50f6d4(0x1f1)][_0x50f6d4(0x185)](_0x9bf26c);}[_0x58be21(0x1a1)](_0x12361c){const _0x5692b8=_0x58be21;var _0x2c8c3e;return(_0x2c8c3e=this[_0x5692b8(0x1f1)][_0x5692b8(0x185)](_0x12361c))!=null?_0x2c8c3e:null;}[_0x58be21(0x1b7)](){const _0x4c92e6=_0x58be21;this[_0x4c92e6(0x15b)]['getTypeOfUnitAdded$'](_0x509fea[_0x4c92e6(0x1bf)])[_0x4c92e6(0x160)](_0x20d7f9(this[_0x4c92e6(0x196)]))[_0x4c92e6(0x1e9)](async _0xf06ef5=>{const _0x3538f6=_0x4c92e6,_0x43b2ab=_0xf06ef5[_0x3538f6(0x1d5)]();this[_0x3538f6(0x1f1)][_0x3538f6(0x191)](_0x43b2ab)||this[_0x3538f6(0x1d9)](_0x43b2ab);}),this[_0x4c92e6(0x15b)][_0x4c92e6(0x1f0)](_0x509fea['UNIVER_SHEET'])[_0x4c92e6(0x160)](_0x20d7f9(this['dispose$']))['subscribe'](_0x223db8=>{const _0x40e3a1=_0x4c92e6,_0x447ef4=_0x223db8[_0x40e3a1(0x1d5)](),_0x23ac25=this[_0x40e3a1(0x1f1)][_0x40e3a1(0x185)](_0x447ef4);_0x23ac25==null||_0x23ac25['dispose']();});}async[_0x58be21(0x1d9)](_0x15c841){const _0x1823fa=_0x58be21,_0x12093b=await this[_0x1823fa(0x1e6)][_0x1823fa(0x1b2)](_0x15c841),_0x1453c9=this[_0x1823fa(0x1a2)][_0x1823fa(0x1cf)](N,_0x15c841,_0x12093b);return _0x1453c9[_0x1823fa(0x1c2)](),this['_entities']['set'](_0x15c841,_0x1453c9),_0x1453c9;}};S=Y([_(0x0,_0x36a4cd),_(0x1,_0x18c588(_0x3b9bd8)),_(0x2,_0x18c588(_0x400127))],S);var c=(_0x316506=>(_0x316506['OFFLINE']='offline',_0x316506[_0x58be21(0x1c0)]='idle',_0x316506[_0x58be21(0x1d4)]=_0x58be21(0x179),_0x316506['NOT_FOLLOWING']=_0x58be21(0x19c),_0x316506['PRESENTING']=_0x58be21(0x197),_0x316506))(c||{});const Ce=_0x58be21(0x17c),De=0xc8;let N=class extends _0x42deb7{constructor(_0x33d7be,_0x4bd656,_0x4dd956,_0x41f4c6,_0x4d9efe){const _0x5af76b=_0x58be21;super(),u(this,_0x5af76b(0x190),new _0x454a39(_0x5af76b(0x1a9))),u(this,_0x5af76b(0x1c6),this[_0x5af76b(0x190)][_0x5af76b(0x1a3)]()),u(this,'_init',!0x1),u(this,_0x5af76b(0x1bd),null),u(this,'_presenter',null),(this['_unitID']=_0x33d7be,this[_0x5af76b(0x177)]=_0x4bd656,this[_0x5af76b(0x1be)]=_0x4dd956,this[_0x5af76b(0x1f9)]=_0x41f4c6,this[_0x5af76b(0x19d)]=_0x4d9efe);}get['_status'](){const _0xc4addf=_0x58be21;return this[_0xc4addf(0x190)][_0xc4addf(0x1a6)]();}[_0x58be21(0x178)](){const _0x9cf060=_0x58be21;var _0x39bd09;(_0x39bd09=this[_0x9cf060(0x1bd)])==null||_0x39bd09[_0x9cf060(0x178)](),this['_status$'][_0x9cf060(0x1d0)](_0x9cf060(0x1a9)),this[_0x9cf060(0x190)]['complete']();}[_0x58be21(0x1b6)](){const _0x44ff67=_0x58be21;return this[_0x44ff67(0x1c1)];}['init'](){const _0x938c1d=_0x58be21;this[_0x938c1d(0x1b7)]||(this[_0x938c1d(0x1b7)]=!0x0,this[_0x938c1d(0x177)]['sessionStatus$'][_0x938c1d(0x160)](_0x20d7f9(this[_0x938c1d(0x196)]))[_0x938c1d(0x1e9)](_0x3cd0d7=>{const _0x164f6a=_0x938c1d;switch(_0x3cd0d7){case _0x44c041[_0x164f6a(0x1e4)]:this[_0x164f6a(0x171)]();break;case _0x44c041[_0x164f6a(0x154)]:this[_0x164f6a(0x162)]();break;}}),this[_0x938c1d(0x177)][_0x938c1d(0x172)][_0x938c1d(0x160)](_0x20d7f9(this[_0x938c1d(0x196)]))[_0x938c1d(0x1e9)](_0x413ca8=>{const _0x17d641=_0x938c1d,{eventID:_0x3b51ad}=_0x413ca8;switch(_0x3b51ad){case _0x38bd9d[_0x17d641(0x189)]:this[_0x17d641(0x18b)](_0x413ca8);break;case _0x38bd9d[_0x17d641(0x163)]:this['_handleOperation'](_0x413ca8);break;case _0x38bd9d['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x38bd9d[_0x17d641(0x14f)]:this['_handleNewChangeSets'](_0x413ca8);break;}}));}[_0x58be21(0x168)](){const _0x229155=_0x58be21;this[_0x229155(0x177)][_0x229155(0x18c)]({'eventID':_0x38bd9d[_0x229155(0x16f)],'data':{'unitID':this[_0x229155(0x1d3)],'userID':this[_0x229155(0x177)]['getMemberID']()}},this[_0x229155(0x1d3)]);}[_0x58be21(0x18a)](){const _0x42c270=_0x58be21;this[_0x42c270(0x1c1)]===_0x42c270(0x197)&&(this['_status$'][_0x42c270(0x1d0)](_0x42c270(0x1a9)),this['_collabSession'][_0x42c270(0x18c)]({'eventID':_0x38bd9d[_0x42c270(0x175)],'data':{'unitID':this['_unitID']}},this[_0x42c270(0x1d3)]));}['startFollowing'](){const _0x57e2b6=_0x58be21;this['_status']===_0x57e2b6(0x19c)&&(this[_0x57e2b6(0x190)][_0x57e2b6(0x1d0)](_0x57e2b6(0x179)),this[_0x57e2b6(0x161)]());}[_0x58be21(0x16a)](){const _0x4b889c=_0x58be21;this[_0x4b889c(0x1c1)]===_0x4b889c(0x179)&&this[_0x4b889c(0x1ba)]();}[_0x58be21(0x18b)](_0x2b875d){const _0x5207a5=_0x58be21,{presenter:_0x5db7f3}=_0x2b875d[_0x5207a5(0x16c)],_0x689d45=this[_0x5207a5(0x177)]['getMemberID']();this[_0x5207a5(0x1c3)]=_0x5db7f3,_0x5db7f3===_0x689d45?(this['_stopFollowing'](),this[_0x5207a5(0x187)]()):this[_0x5207a5(0x1c1)]!==_0x5207a5(0x19c)&&(this[_0x5207a5(0x1cb)](),this[_0x5207a5(0x161)]());}[_0x58be21(0x1cc)](){const _0x1e496a=_0x58be21,_0x58e253={'eventID':_0x38bd9d[_0x1e496a(0x1ee)]};this[_0x1e496a(0x177)]['send'](_0x58e253,this['_unitID']);}[_0x58be21(0x1df)](){const _0x25cae7=_0x58be21;this[_0x25cae7(0x1c3)]=null,this[_0x25cae7(0x1c1)]!==_0x25cae7(0x197)&&this[_0x25cae7(0x1ab)]();}[_0x58be21(0x18f)](_0x755cc5){const _0x4e150d=_0x58be21;if(this[_0x4e150d(0x1c1)]===_0x4e150d(0x179)&&this[_0x4e150d(0x1c3)]===_0x755cc5[_0x4e150d(0x16c)][_0x4e150d(0x188)]){const _0x351478=_0x2e8d75(_0x755cc5['data'])['mutations'][_0x4e150d(0x19f)]()[_0x4e150d(0x1ae)](_0x548e33=>_0x548e33['id']===_0x4e391f['id']);if(_0x351478){const _0x2c19f1=_0x351478[_0x4e150d(0x1db)][_0x4e150d(0x195)],_0x300148=_0x351478[_0x4e150d(0x1db)][_0x4e150d(0x192)]['id'];setTimeout(()=>{const _0x5d920c=_0x4e150d;this[_0x5d920c(0x19d)][_0x5d920c(0x156)](_0xa47d15['id'],{'unitId':_0x2c19f1,'subUnitId':_0x300148},{'fromCollab':!0x0});});}}}[_0x58be21(0x187)](){const _0x5cef56=_0x58be21;this[_0x5cef56(0x190)][_0x5cef56(0x1d0)]('presenting');const _0x110727=new Map(),_0x864e4=this[_0x5cef56(0x1bd)]=new _0x4ff43e();_0x864e4[_0x5cef56(0x1f8)](_0x590fc1(()=>{const _0x22ae66=_0x5cef56;_0x110727[_0x22ae66(0x1ca)](_0x34772c=>_0x34772c['complete']()),_0x110727[_0x22ae66(0x1bc)]();})),_0x864e4['add'](this[_0x5cef56(0x19d)][_0x5cef56(0x1d6)](_0x46a4b5=>{const _0x3c4a3b=_0x5cef56;var _0x34ca34;if(_0x46a4b5['type']!==_0x9accce[_0x3c4a3b(0x1fa)]||!this[_0x3c4a3b(0x1f9)][_0x3c4a3b(0x19e)](_0x46a4b5['id']))return;const {id:_0x2dea53}=_0x46a4b5;let _0x125a78;_0x110727[_0x3c4a3b(0x191)](_0x2dea53)?_0x125a78=_0x110727[_0x3c4a3b(0x185)](_0x2dea53):(_0x125a78=new _0x207475(),_0x110727[_0x3c4a3b(0x1f5)](_0x2dea53,_0x125a78),_0x125a78[_0x3c4a3b(0x160)](_0x4d919c((_0x34ca34=this[_0x3c4a3b(0x1be)][_0x3c4a3b(0x1e0)](Ce))!=null?_0x34ca34:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3c4a3b(0x1e9)](_0x3aaf5b=>{const _0x952dd0=_0x3c4a3b;this[_0x952dd0(0x177)][_0x952dd0(0x18c)]({'eventID':_0x38bd9d[_0x952dd0(0x163)],'data':{'unitID':this[_0x952dd0(0x1d3)],'operations':{[_0x3aaf5b['id']]:{'id':_0x3aaf5b['id'],'params':JSON['stringify'](_0x3aaf5b[_0x952dd0(0x1db)])}}}},this['_unitID']);})),_0x125a78['next'](_0x46a4b5);})),this[_0x5cef56(0x1f9)][_0x5cef56(0x1e8)](this[_0x5cef56(0x1d3)])[_0x5cef56(0x1ca)](_0x200044=>this[_0x5cef56(0x177)][_0x5cef56(0x18c)]({'eventID':_0x38bd9d[_0x5cef56(0x163)],'data':{'unitID':this[_0x5cef56(0x1d3)],'operations':{[_0x200044['id']]:{'id':_0x200044['id'],'params':JSON[_0x5cef56(0x1f7)](_0x200044[_0x5cef56(0x1db)])}}}},this['_unitID']));}[_0x58be21(0x1cb)](){const _0x30bca6=_0x58be21;var _0x8202d6;this[_0x30bca6(0x190)][_0x30bca6(0x1d0)](_0x30bca6(0x1a9)),(_0x8202d6=this[_0x30bca6(0x1bd)])==null||_0x8202d6[_0x30bca6(0x178)](),this[_0x30bca6(0x1bd)]=null;}[_0x58be21(0x161)](){const _0x34042b=_0x58be21;var _0x29c62f;(_0x29c62f=this[_0x34042b(0x1bd)])==null||_0x29c62f[_0x34042b(0x178)](),this['_status$'][_0x34042b(0x1d0)]('following');}[_0x58be21(0x1ab)](){const _0x2b6325=_0x58be21;var _0x2d5deb;this[_0x2b6325(0x190)]['next'](_0x2b6325(0x1a9)),(_0x2d5deb=this[_0x2b6325(0x1bd)])==null||_0x2d5deb['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x9ee783=_0x58be21;var _0x32f8fa;this[_0x9ee783(0x190)][_0x9ee783(0x1d0)](_0x9ee783(0x19c)),(_0x32f8fa=this['_commandDisposable'])==null||_0x32f8fa[_0x9ee783(0x178)]();}[_0x58be21(0x199)](_0x1336b0){const _0x3d0d04=_0x58be21;if([_0x3d0d04(0x197),_0x3d0d04(0x19c),_0x3d0d04(0x1eb)][_0x3d0d04(0x17d)](this[_0x3d0d04(0x1c1)])||!_0x1336b0[_0x3d0d04(0x16c)][_0x3d0d04(0x16d)]||_0x1336b0[_0x3d0d04(0x16c)][_0x3d0d04(0x16d)]===this['_collabSession'][_0x3d0d04(0x15f)]())return;this[_0x3d0d04(0x1c1)]===_0x3d0d04(0x1a9)&&this[_0x3d0d04(0x161)]();const _0x4a8f03=_0x1336b0[_0x3d0d04(0x16c)]['operations'];Object['values'](_0x4a8f03)['forEach'](_0x33f46e=>{const _0x2673de=_0x3d0d04;this[_0x2673de(0x19d)][_0x2673de(0x156)](_0x33f46e['id'],_0x33f46e[_0x2673de(0x1db)]?JSON[_0x2673de(0x180)](_0x33f46e[_0x2673de(0x1db)]):null,{'fromCollab':!0x0});});}[_0x58be21(0x171)](){const _0x3716d6=_0x58be21;var _0x5e0857;this[_0x3716d6(0x190)][_0x3716d6(0x1d0)]('offline'),(_0x5e0857=this[_0x3716d6(0x1bd)])==null||_0x5e0857[_0x3716d6(0x178)]();}[_0x58be21(0x162)](){const _0x2ee202=_0x58be21;this['_status$'][_0x2ee202(0x1d0)](_0x2ee202(0x1a9)),this[_0x2ee202(0x1cc)]();}};N=Y([_(0x2,_0x3e291d),_(0x3,_0x18c588(L)),_(0x4,_0x532c3a)],N);function Le(){const _0x6e8f76=_0x58be21,_0xdf9fed=_0x4e9683(S),_0x34d628=_0x4e9683(_0x36a4cd),_0x15e335=_0x244005(()=>_0x34d628['getCurrentTypeOfUnit$'](_0x509fea[_0x6e8f76(0x1bf)]),void 0x0,!0x1,[]),[_0x11ed75,_0x161cf6]=_0x113df0(null),[_0x174253,_0x54116b]=_0x113df0(c[_0x6e8f76(0x1c0)]),_0x3b293e=_0x55dbd9(null);return _0x5cde6f(()=>(_0x15e335&&_0xdf9fed[_0x6e8f76(0x1f6)](_0x15e335[_0x6e8f76(0x1d5)]())[_0x6e8f76(0x164)](_0x49be4e=>{const _0x32b466=_0x6e8f76;_0x161cf6(_0x49be4e),_0x3b293e[_0x32b466(0x184)]=_0x49be4e[_0x32b466(0x1c6)][_0x32b466(0x1e9)](_0x4b6216=>{_0x54116b(_0x4b6216);});}),()=>{const _0x2f8ada=_0x6e8f76;var _0x3560e7;(_0x3560e7=_0x3b293e[_0x2f8ada(0x184)])==null||_0x3560e7[_0x2f8ada(0x157)](),_0x3b293e[_0x2f8ada(0x184)]=null;}),[_0x15e335,_0xdf9fed]),_0x11ed75?_0x1ab26e(_0x2dbba2,{'align':'end','disabled':_0x174253===c[_0x6e8f76(0x1e4)],'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':_0x1ab26e(Re,{'status':_0x174253,'coordinator':_0x11ed75}),'children':_0x1ab26e(_0x6e8f76(0x159),{'className':_0x2c54d3(_0x6e8f76(0x1dd),{'univer-cursor-not-allowed':_0x174253===c[_0x6e8f76(0x1e4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x174253!==c[_0x6e8f76(0x1e4)]}),'type':_0x6e8f76(0x159),'children':_0x1ab26e(W,{'className':'univer-size-4'})})}):null;}function Re(_0x379685){const _0x340e13=_0x58be21,{status:_0x3f426b,coordinator:_0x2454f8}=_0x379685;switch(_0x3f426b){case c[_0x340e13(0x1c0)]:return _0x1ab26e($e,{'coordinator':_0x2454f8});case c[_0x340e13(0x1d4)]:return _0x1ab26e(xe,{'coordinator':_0x2454f8});case c[_0x340e13(0x151)]:return _0x1ab26e(Pe,{'coordinator':_0x2454f8});case c['OFFLINE']:return _0x1ab26e(Te,{});case c[_0x340e13(0x17e)]:return _0x1ab26e(Ae,{'coordinator':_0x2454f8});default:return null;}}function $e(_0x23e936){const _0x39f462=_0x58be21,{coordinator:_0x526b8a}=_0x23e936;return _0x21b027(_0x13995b,{'children':[_0x1ab26e(_0x39f462(0x193),{'className':_0x39f462(0x17b),'children':_0x39f462(0x176)}),_0x1ab26e(_0x380710,{'onClick':()=>_0x526b8a[_0x39f462(0x168)](),'children':_0x39f462(0x170)})]});}function xe(_0x4731bb){const _0x4e8536=_0x58be21,{coordinator:_0x41302b}=_0x4731bb;return _0x21b027(_0x13995b,{'children':[_0x1ab26e(_0x4e8536(0x193),{'className':_0x4e8536(0x17b),'children':_0x4e8536(0x1b4)}),_0x1ab26e(_0x380710,{'onClick':()=>_0x41302b['stopFollowing'](),'children':_0x4e8536(0x16e)})]});}function Pe(_0x41fb48){const _0x3d99fc=_0x58be21,{coordinator:_0x197e17}=_0x41fb48;return _0x21b027(_0x13995b,{'children':[_0x1ab26e(_0x3d99fc(0x193),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1ab26e(_0x380710,{'variant':_0x3d99fc(0x1aa),'onClick':()=>_0x197e17[_0x3d99fc(0x16b)](),'children':_0x3d99fc(0x18d)})]});}function Ae(_0x1bfa8a){const _0x4c733c=_0x58be21,{coordinator:_0x1ba2d0}=_0x1bfa8a;return _0x21b027(_0x13995b,{'children':[_0x1ab26e(_0x4c733c(0x193),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4c733c(0x166)}),_0x1ab26e(_0x380710,{'variant':_0x4c733c(0x17a),'onClick':()=>_0x1ba2d0[_0x4c733c(0x18a)](),'children':_0x4c733c(0x1b1)})]});}function Te(){const _0x9ccbd6=_0x58be21;return _0x1ab26e(_0x13995b,{'children':_0x9ccbd6(0x15c)});}var Fe=Object[_0x58be21(0x1d2)],He=(_0x4ec54a,_0x1aa59d,_0x5c9ae4,_0x478b46)=>{const _0x4d8a7b=_0x58be21;for(var _0x1c832a=_0x478b46>0x1?void 0x0:_0x478b46?Fe(_0x1aa59d,_0x5c9ae4):_0x1aa59d,_0x3c32be=_0x4ec54a[_0x4d8a7b(0x1b5)]-0x1,_0x5b1f8b;_0x3c32be>=0x0;_0x3c32be--)(_0x5b1f8b=_0x4ec54a[_0x3c32be])&&(_0x1c832a=_0x5b1f8b(_0x1c832a)||_0x1c832a);return _0x1c832a;},A=(_0x438ef3,_0xa434f9)=>(_0x5b73cb,_0x1ada39)=>_0xa434f9(_0x5b73cb,_0x1ada39,_0x438ef3);let m=class extends _0x547c04{constructor(_0x29de5a,_0x3f7caf){const _0xfa37ee=_0x58be21;super(),this['_injector']=_0x29de5a,this[_0xfa37ee(0x19a)]=_0x3f7caf,this[_0xfa37ee(0x1ea)]();}[_0x58be21(0x1ea)](){const _0x2f4ee9=_0x58be21;this[_0x2f4ee9(0x167)](this[_0x2f4ee9(0x19a)][_0x2f4ee9(0x18e)](_0x3290a0[_0x2f4ee9(0x1ef)],()=>_0x260eda(Le,this[_0x2f4ee9(0x1a2)])));}};m=He([A(0x0,_0x18c588(_0x3b9bd8)),A(0x1,_0x35a79c)],m);const ye=_0x58be21(0x15a),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x29dfb3,_0x192cac,_0x5e0e41,_0x3b4e0c)=>{const _0x7d7afd=_0x58be21;for(var _0xf733c4=_0x3b4e0c>0x1?void 0x0:_0x3b4e0c?Ue(_0x192cac,_0x5e0e41):_0x192cac,_0x2346f1=_0x29dfb3[_0x7d7afd(0x1b5)]-0x1,_0x5c728b;_0x2346f1>=0x0;_0x2346f1--)(_0x5c728b=_0x29dfb3[_0x2346f1])&&(_0xf733c4=_0x5c728b(_0xf733c4)||_0xf733c4);return _0xf733c4;},je=(_0x2b01b9,_0x9666e0)=>(_0x2ee68c,_0x284bb2)=>_0x9666e0(_0x2ee68c,_0x284bb2,_0x2b01b9);let I=class extends _0x547c04{constructor(_0x47fd2b){const _0x5e42ee=_0x58be21;super(),this[_0x5e42ee(0x1f9)]=_0x47fd2b,this[_0x5e42ee(0x1b7)]();}[_0x58be21(0x1b7)](){const _0x11297e=_0x58be21;[_0x1d5e61['id'],_0x3b9e17['id'],_0xa47d15['id']][_0x11297e(0x1ca)](_0x134d82=>{const _0x16c6a0=_0x11297e;this['disposeWithMe'](this[_0x16c6a0(0x1f9)][_0x16c6a0(0x1b9)](_0x134d82));});}};I=Ve([je(0x0,_0x18c588(L))],I);function _0x2306(){const _0x51f625=['requireSession','834145HfMaOX','You\x27re\x20following\x20the\x20presenter','length','getStatus','_init','183342bsReZN','registerSharedOperation','_stopFollowing','onStarting','clear','_commandDisposable','_configService','UNIVER_SHEET','IDLE','_status','init','_presenter','onRendered','currentColor','status$','defs','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','setConfig','forEach','_stopPresenting','_fetchOperations','string','xlink:href','createInstance','next','toString','getOwnPropertyDescriptor','_unitID','FOLLOWING','getUnitId','onCommandExecuted','226976nIyajQ','6967477XgqbKw','_startLiveShareCoordinator','attrs','params','trim','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','defIds','_handleTerminate','getConfig','1em','13512dpZWOX','tag','OFFLINE','20qlhoGt','_collabSessionService','svg','getInitialStates','subscribe','_mountLiveShare','offline','mask','live-share-icon','LIVESHARE_FETCH_OPERATIONS','HEADER_MENU','getTypeOfUnitDisposed$','_entities','children','override','path','set','getLiveShareCoordinator','stringify','add','_liveShareService','OPERATION','substring','NEW_CHANGESETS','UNIVER_LIVE_SHARE_PLUGIN','NOT_FOLLOWING','type','1499134YTNZAB','ONLINE','defineProperty','executeCommand','unsubscribe','delete','button','live-share.config','_univerInstanceService','You\x27are\x20offline.','1sWaAHA','entries','getMemberID','pipe','_startFollowing','_handleOnline','LIVESHARE_OPERATION','then','_sharedOperations','You\x27re\x20presenting\x20the\x20document','disposeWithMe','tryStartPresenting','36wcfPnK','stopFollowing','startFollowing','data','presenter','Stop\x20following','LIVESHARE_REQUEST_HOST','Start','_handleOffline','event$','use','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','LIVESHARE_TERMINATE','Present\x20this\x20document','_collabSession','dispose','following','default','univer-mb-3\x20univer-w-full\x20univer-text-sm','SAME_OPERATION_SHARE_INTERVAL','includes','PRESENTING','idSuffix','parse','none','_reporters','map','current','get','random','_startPresenting','memberID','LIVESHARE_NEW_HOST','stopPresenting','_handleNewHost','send','Start\x20following','registerComponent','_handleNewChangeSets','_status$','has','sheet','div','assign','unitId','dispose$','presenting','12NYuzix','_handleOperation','_uiPartsService','0\x200\x2017\x2017','not-following','_commandService','shouldShareOperation','reverse','symbol','getLiveShareCoordinatorSync','_injector','asObservable','UNIVER_UNKNOWN','UniverIcon','getValue','from','LiveShareIcon','idle','text','_beIdle','666420mCKaAs','colorChannel1','find','http://www.w3.org/2000/svg','_config','Stop\x20presenting'];_0x2306=function(){return _0x51f625;};return _0x2306();}var Me=Object[_0x58be21(0x155)],ke=Object[_0x58be21(0x1d2)],Ge=(_0x250725,_0x385734,_0xbe8c76)=>_0x385734 in _0x250725?Me(_0x250725,_0x385734,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbe8c76}):_0x250725[_0x385734]=_0xbe8c76,We=(_0x466264,_0x556e4c,_0x3ae1c7,_0xf7c6c4)=>{const _0x4ee645=_0x58be21;for(var _0x4ee4e3=_0xf7c6c4>0x1?void 0x0:_0xf7c6c4?ke(_0x556e4c,_0x3ae1c7):_0x556e4c,_0x3fd3d4=_0x466264[_0x4ee645(0x1b5)]-0x1,_0x1935c5;_0x3fd3d4>=0x0;_0x3fd3d4--)(_0x1935c5=_0x466264[_0x3fd3d4])&&(_0x4ee4e3=_0x1935c5(_0x4ee4e3)||_0x4ee4e3);return _0x4ee4e3;},F=(_0xfbea65,_0xc7c761)=>(_0x46875a,_0x399167)=>_0xc7c761(_0x46875a,_0x399167,_0xfbea65),B=(_0x467e22,_0x2b7147,_0x32af21)=>Ge(_0x467e22,typeof _0x2b7147!=_0x58be21(0x1a0)?_0x2b7147+'':_0x2b7147,_0x32af21);const Ye=_0x58be21(0x150);let b=class extends _0x2006da{constructor(_0x4e81d2=T,_0x473467,_0x5d16f6){const _0x24a1e3=_0x58be21;super(),this[_0x24a1e3(0x1b0)]=_0x4e81d2,this[_0x24a1e3(0x1a2)]=_0x473467,this[_0x24a1e3(0x1be)]=_0x5d16f6;const {..._0x5aad84}=_0x5d8dd9({},T,this['_config']);this[_0x24a1e3(0x1be)][_0x24a1e3(0x1c9)](ye,_0x5aad84);}[_0x58be21(0x1bb)](){const _0x4c97e2=_0x58be21;_0x2d528c(this['_injector'],_0x447eb4([[L],[S],[I],[m]],this[_0x4c97e2(0x1b0)][_0x4c97e2(0x1f3)])),_0x10a22a(this[_0x4c97e2(0x1a2)],[[I]]);}[_0x58be21(0x1c4)](){const _0x559a02=_0x58be21;_0x10a22a(this[_0x559a02(0x1a2)],[[m]]);}};B(b,_0x58be21(0x152),_0x509fea[_0x58be21(0x1a4)]),B(b,'pluginName',Ye),b=We([_0x523668(_0x31fc54),F(0x1,_0x18c588(_0x3b9bd8)),F(0x2,_0x3e291d)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _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 _0xf0c268=_0x3d3f;(function(_0x46d303,_0x1d0a1d){const _0xbdf7cd=_0x3d3f,_0x3a8402=_0x46d303();while(!![]){try{const _0x38a504=parseInt(_0xbdf7cd(0x141))/0x1*(parseInt(_0xbdf7cd(0x13d))/0x2)+-parseInt(_0xbdf7cd(0x12a))/0x3+parseInt(_0xbdf7cd(0x137))/0x4+parseInt(_0xbdf7cd(0x13a))/0x5*(parseInt(_0xbdf7cd(0x133))/0x6)+-parseInt(_0xbdf7cd(0x131))/0x7*(-parseInt(_0xbdf7cd(0x134))/0x8)+-parseInt(_0xbdf7cd(0x146))/0x9*(-parseInt(_0xbdf7cd(0x13b))/0xa)+-parseInt(_0xbdf7cd(0x13c))/0xb;if(_0x38a504===_0x1d0a1d)break;else _0x3a8402['push'](_0x3a8402['shift']());}catch(_0x4d809d){_0x3a8402['push'](_0x3a8402['shift']());}}}(_0x1aea,0x82d01));var l=Object[_0xf0c268(0x12e)],w=(_0xf92bb9,_0x487c97,_0x3591fc)=>_0x487c97 in _0xf92bb9?l(_0xf92bb9,_0x487c97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3591fc}):_0xf92bb9[_0x487c97]=_0x3591fc,v=(_0xccafc3,_0xa88d61,_0x42ed66)=>w(_0xccafc3,typeof _0xa88d61!='symbol'?_0xa88d61+'':_0xa88d61,_0x42ed66);import{LiveShareController as _0x2f1eee,LiveShareStatus as _0xf0edf1}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x3a818b,UniverInstanceType as _0xb9f39e}from'@univerjs/core';import{FUniver as _0x1baacb,FEnum as _0x4a0172}from'@univerjs/core/facade';class g extends _0x1baacb{constructor(){const _0x32934c=_0xf0c268;super(...arguments),v(this,_0x32934c(0x143));}[_0xf0c268(0x145)](_0x20830e){const _0x36f891=_0xf0c268;this[_0x36f891(0x143)]=_0x20830e[_0x36f891(0x129)](_0x2f1eee);}[_0xf0c268(0x136)](){const _0x3f68d9=_0xf0c268;var _0x5f5d6a;const _0x5d1b30=this[_0x3f68d9(0x138)][_0x3f68d9(0x129)](_0x3a818b)[_0x3f68d9(0x130)](_0xb9f39e['UNIVER_SHEET']);if(!_0x5d1b30)throw new Error(_0x3f68d9(0x12b));const _0x1a9e44=_0x5d1b30['getUnitId'](),_0x378218=this[_0x3f68d9(0x143)]['getLiveShareCoordinatorSync'](_0x1a9e44);return(_0x5f5d6a=_0x378218==null?void 0x0:_0x378218['getStatus']())!=null?_0x5f5d6a:_0xf0edf1['IDLE'];}[_0xf0c268(0x144)](){const _0x2f36c5=_0xf0c268,_0x15609d=this[_0x2f36c5(0x138)][_0x2f36c5(0x129)](_0x3a818b)[_0x2f36c5(0x130)](_0xb9f39e[_0x2f36c5(0x13e)]);if(!_0x15609d)throw new Error(_0x2f36c5(0x12b));const _0x29c1db=_0x15609d[_0x2f36c5(0x12d)](),_0x4485c6=this[_0x2f36c5(0x143)][_0x2f36c5(0x142)](_0x29c1db);if(!_0x4485c6)throw new Error(_0x2f36c5(0x12c));_0x4485c6[_0x2f36c5(0x144)]();}['stopFollowing'](){const _0x470a99=_0xf0c268,_0x3ab606=this[_0x470a99(0x138)][_0x470a99(0x129)](_0x3a818b)[_0x470a99(0x130)](_0xb9f39e[_0x470a99(0x13e)]);if(!_0x3ab606)throw new Error(_0x470a99(0x12b));const _0x22d364=_0x3ab606[_0x470a99(0x12d)](),_0x55b70b=this['_liveShareController'][_0x470a99(0x142)](_0x22d364);if(!_0x55b70b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x55b70b[_0x470a99(0x135)]();}[_0xf0c268(0x132)](){const _0x367712=_0xf0c268,_0x10f30c=this[_0x367712(0x138)]['get'](_0x3a818b)[_0x367712(0x130)](_0xb9f39e[_0x367712(0x13e)]);if(!_0x10f30c)throw new Error('No\x20active\x20workbook\x20found.');const _0x3ac138=_0x10f30c[_0x367712(0x12d)](),_0x110cb5=this[_0x367712(0x143)]['getLiveShareCoordinatorSync'](_0x3ac138);if(!_0x110cb5)throw new Error(_0x367712(0x12c));_0x110cb5[_0x367712(0x12f)]();}['stopPresenting'](){const _0x1d686e=_0xf0c268,_0x167196=this[_0x1d686e(0x138)][_0x1d686e(0x129)](_0x3a818b)[_0x1d686e(0x130)](_0xb9f39e[_0x1d686e(0x13e)]);if(!_0x167196)throw new Error('No\x20active\x20workbook\x20found.');const _0x4c1654=_0x167196[_0x1d686e(0x12d)](),_0xa5974a=this['_liveShareController'][_0x1d686e(0x142)](_0x4c1654);if(!_0xa5974a)throw new Error(_0x1d686e(0x12c));_0xa5974a[_0x1d686e(0x140)]();}}function _0x3d3f(_0x3f3b91,_0x590b54){_0x3f3b91=_0x3f3b91-0x129;const _0x1aeac8=_0x1aea();let _0x3d3f20=_0x1aeac8[_0x3f3b91];return _0x3d3f20;}_0x1baacb[_0xf0c268(0x13f)](g);function _0x1aea(){const _0x289f86=['87460KRyXLG','UNIVER_SHEET','extend','stopPresenting','20orBfXH','getLiveShareCoordinatorSync','_liveShareController','startFollowing','_initialize','8328141ogriEY','get','405267CKyCqE','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getUnitId','defineProperty','tryStartPresenting','getCurrentUnitOfType','11361OnNrjV','startPresenting','12JjFTeC','592QwTGEL','stopFollowing','getLiveShareStatus','3407320hShdeT','_injector','LiveShareStatusEnum','2065475ExIMBA','10CQtSRc','32198903MTyfER'];_0x1aea=function(){return _0x289f86;};return _0x1aea();}class f extends _0x4a0172{get[_0xf0c268(0x139)](){return _0xf0edf1;}}_0x4a0172['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 _0x58be21=_0xaac7;(function(_0x2f2700,_0x568d5d){const _0x5f16ec=_0xaac7,_0x3b026e=_0x2f2700();while(!![]){try{const _0x5f265c=parseInt(_0x5f16ec(0x15d))/0x1*(-parseInt(_0x5f16ec(0x1b8))/0x2)+-parseInt(_0x5f16ec(0x1ac))/0x3+parseInt(_0x5f16ec(0x1e2))/0x4+-parseInt(_0x5f16ec(0x1b3))/0x5+-parseInt(_0x5f16ec(0x198))/0x6*(parseInt(_0x5f16ec(0x153))/0x7)+-parseInt(_0x5f16ec(0x1d7))/0x8*(parseInt(_0x5f16ec(0x169))/0x9)+parseInt(_0x5f16ec(0x1e5))/0xa*(parseInt(_0x5f16ec(0x1d8))/0xb);if(_0x5f265c===_0x568d5d)break;else _0x3b026e['push'](_0x3b026e['shift']());}catch(_0x458e94){_0x3b026e['push'](_0x3b026e['shift']());}}}(_0x2306,0x3c7bc));var J=Object[_0x58be21(0x155)],K=(_0x1920f7,_0x2809bc,_0x236793)=>_0x2809bc in _0x1920f7?J(_0x1920f7,_0x2809bc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x236793}):_0x1920f7[_0x2809bc]=_0x236793,u=(_0x4cacab,_0x2b6593,_0x583c30)=>K(_0x4cacab,typeof _0x2b6593!=_0x58be21(0x1a0)?_0x2b6593+'':_0x2b6593,_0x583c30);import{Disposable as _0x547c04,toDisposable as _0x590fc1,Inject as _0x18c588,Injector as _0x3b9bd8,RxDisposable as _0x42deb7,UniverInstanceType as _0x509fea,DisposableCollection as _0x4ff43e,CommandType as _0x9accce,IUniverInstanceService as _0x36a4cd,IConfigService as _0x3e291d,ICommandService as _0x532c3a,DependentOn as _0x523668,Plugin as _0x2006da,merge as _0x5d8dd9,registerDependencies as _0x2d528c,mergeOverrideWithDependencies as _0x447eb4,touchDependencies as _0x10a22a}from'@univerjs/core';import{useDependency as _0x4e9683,useObservable as _0x244005,BuiltInUIPart as _0x3290a0,connectInjector as _0x260eda,IUIPartsService as _0x35a79c}from'@univerjs/ui';import{jsx as _0x1ab26e,jsxs as _0x21b027,Fragment as _0x13995b}from'react/jsx-runtime';import{Dropdown as _0x2dbba2,clsx as _0x2c54d3,Button as _0x380710}from'@univerjs/design';import{useRef as _0x55dbd9,createElement as _0x33cec9,forwardRef as _0x463c3d,useState as _0x113df0,useEffect as _0x5cde6f}from'react';import{CollaborationEvent as _0x38bd9d,parseProtocolChangeset as _0x2e8d75}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x400127,SessionStatus as _0x44c041,UniverCollaborationClientPlugin as _0x31fc54}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4e391f,SetWorksheetActiveOperation as _0xa47d15}from'@univerjs/sheets';import{BehaviorSubject as _0x454a39,Subject as _0x207475}from'rxjs';import{takeUntil as _0x20d7f9,throttleTime as _0x4d919c}from'rxjs/operators';import{SetZoomRatioOperation as _0x1d5e61,SetScrollOperation as _0x3b9e17}from'@univerjs/sheets-ui';function k({ref:_0x3935e9,..._0x470905}){const _0x1a3225=_0x58be21,{icon:_0x348689,id:_0x1f5f0d,className:_0x20d50a,extend:_0x32da29,..._0x1fff24}=_0x470905,_0x493e98=('univerjs-icon\x20univerjs-icon-'+_0x1f5f0d+'\x20'+(_0x20d50a||''))[_0x1a3225(0x1dc)](),_0x2761d0=_0x55dbd9('_'+Oe());return G(_0x348689,''+_0x1f5f0d,{'defIds':_0x348689[_0x1a3225(0x1de)],'idSuffix':_0x2761d0[_0x1a3225(0x184)]},{'ref':_0x3935e9,'className':_0x493e98,..._0x1fff24},_0x32da29);}function G(_0xfc34d5,_0x189a90,_0xd8a4ae,_0x2ce4e0,_0x39d43c){const _0x31f884=_0x58be21;return _0x33cec9(_0xfc34d5['tag'],{'key':_0x189a90,...be(_0xfc34d5,_0xd8a4ae,_0x39d43c),..._0x2ce4e0},(Ee(_0xfc34d5,_0xd8a4ae)[_0x31f884(0x1f2)]||[])['map']((_0xd9cc97,_0x15f1e7)=>G(_0xd9cc97,_0x189a90+'-'+_0xfc34d5[_0x31f884(0x1e3)]+'-'+_0x15f1e7,_0xd8a4ae,void 0x0,_0x39d43c)));}function _0xaac7(_0x461b57,_0x27e777){_0x461b57=_0x461b57-0x14f;const _0x230691=_0x2306();let _0xaac768=_0x230691[_0x461b57];return _0xaac768;}function be(_0x4e6185,_0x46e2e6,_0x343c87){const _0x21d200=_0x58be21,_0x3f3900={..._0x4e6185[_0x21d200(0x1da)]};_0x343c87!=null&&_0x343c87[_0x21d200(0x1ad)]&&_0x3f3900['fill']===_0x21d200(0x1ad)&&(_0x3f3900['fill']=_0x343c87[_0x21d200(0x1ad)]),_0x4e6185[_0x21d200(0x1e3)]===_0x21d200(0x1ec)&&_0x3f3900['id']&&(_0x3f3900['id']=_0x3f3900['id']+_0x46e2e6[_0x21d200(0x17f)]),Object['entries'](_0x3f3900)[_0x21d200(0x1ca)](([_0x55ae9a,_0x28c415])=>{const _0x2bada1=_0x21d200;_0x55ae9a===_0x2bada1(0x1ec)&&typeof _0x28c415==_0x2bada1(0x1cd)&&(_0x3f3900[_0x55ae9a]=_0x28c415['replace'](/url\(#(.*)\)/,'url(#$1'+_0x46e2e6['idSuffix']+')'));});const {defIds:_0x2a9882}=_0x46e2e6;return!_0x2a9882||_0x2a9882['length']===0x0||(_0x4e6185[_0x21d200(0x1e3)]===_0x21d200(0x173)&&_0x3f3900[_0x21d200(0x1ce)]&&(_0x3f3900[_0x21d200(0x1ce)]=_0x3f3900[_0x21d200(0x1ce)]+_0x46e2e6[_0x21d200(0x17f)]),Object[_0x21d200(0x15e)](_0x3f3900)[_0x21d200(0x1ca)](([_0x5e36fa,_0x491aaf])=>{const _0x176ff4=_0x21d200;typeof _0x491aaf==_0x176ff4(0x1cd)&&(_0x3f3900[_0x5e36fa]=_0x491aaf['replace'](/url\(#(.*)\)/,'url(#$1'+_0x46e2e6['idSuffix']+')'));})),_0x3f3900;}function Ee(_0x509c65,_0x107cdf){const _0x2c86a6=_0x58be21;var _0x53f76d;const {defIds:_0x54c0a8}=_0x107cdf;return!_0x54c0a8||_0x54c0a8[_0x2c86a6(0x1b5)]===0x0?_0x509c65:_0x509c65[_0x2c86a6(0x1e3)]===_0x2c86a6(0x1c7)&&((_0x53f76d=_0x509c65[_0x2c86a6(0x1f2)])!=null&&_0x53f76d[_0x2c86a6(0x1b5)])?{..._0x509c65,'children':_0x509c65['children']['map'](_0x1e50cd=>typeof _0x1e50cd[_0x2c86a6(0x1da)]['id']==_0x2c86a6(0x1cd)&&_0x54c0a8&&_0x54c0a8[_0x2c86a6(0x17d)](_0x1e50cd[_0x2c86a6(0x1da)]['id'])?{..._0x1e50cd,'attrs':{..._0x1e50cd[_0x2c86a6(0x1da)],'id':_0x1e50cd[_0x2c86a6(0x1da)]['id']+_0x107cdf[_0x2c86a6(0x17f)]}}:_0x1e50cd)}:_0x509c65;}function Oe(){const _0x35957b=_0x58be21;return Math[_0x35957b(0x186)]()[_0x35957b(0x1d1)](0x24)[_0x35957b(0x1fb)](0x2,0x8);}k['displayName']=_0x58be21(0x1a5);const we={'tag':_0x58be21(0x1e7),'attrs':{'xmlns':_0x58be21(0x1af),'fill':_0x58be21(0x181),'viewBox':_0x58be21(0x19b),'width':_0x58be21(0x1e1),'height':_0x58be21(0x1e1)},'children':[{'tag':_0x58be21(0x1f4),'attrs':{'fill':_0x58be21(0x1c5),'d':_0x58be21(0x174)}},{'tag':_0x58be21(0x1f4),'attrs':{'fill':_0x58be21(0x1c5),'d':_0x58be21(0x1c8),'fillRule':'evenodd','clipRule':'evenodd'}}]},W=_0x463c3d(function(_0x27318e,_0x2bac17){const _0x237136=_0x58be21;return _0x33cec9(k,Object[_0x237136(0x194)]({},_0x27318e,{'id':_0x237136(0x1ed),'ref':_0x2bac17,'icon':we}));});W['displayName']=_0x58be21(0x1a8);class L extends _0x547c04{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x58be21(0x1b9)](_0x16e3b4){const _0x3cb6d1=_0x58be21;return this['_sharedOperations'][_0x3cb6d1(0x1f8)](_0x16e3b4),_0x590fc1(()=>this[_0x3cb6d1(0x165)][_0x3cb6d1(0x158)](_0x16e3b4));}['registerInitialStateReporter'](_0x2fb14f){const _0x46e70c=_0x58be21;return this[_0x46e70c(0x182)][_0x46e70c(0x1f8)](_0x2fb14f),_0x590fc1(()=>this[_0x46e70c(0x182)][_0x46e70c(0x158)](_0x2fb14f));}[_0x58be21(0x19e)](_0x13fef3){const _0x5ccaf7=_0x58be21;return this[_0x5ccaf7(0x165)][_0x5ccaf7(0x191)](_0x13fef3);}[_0x58be21(0x1e8)](_0x556d59){const _0x14283c=_0x58be21;return Array[_0x14283c(0x1a7)](this[_0x14283c(0x182)])[_0x14283c(0x183)](_0x33636a=>_0x33636a(_0x556d59));}}var Ne=Object[_0x58be21(0x1d2)],Y=(_0x24ee50,_0x36b5a9,_0x21a2b3,_0x152bb9)=>{for(var _0x542bfc=_0x152bb9>0x1?void 0x0:_0x152bb9?Ne(_0x36b5a9,_0x21a2b3):_0x36b5a9,_0x4f8ae6=_0x24ee50['length']-0x1,_0x189c00;_0x4f8ae6>=0x0;_0x4f8ae6--)(_0x189c00=_0x24ee50[_0x4f8ae6])&&(_0x542bfc=_0x189c00(_0x542bfc)||_0x542bfc);return _0x542bfc;},_=(_0x30c595,_0xf067cd)=>(_0x4839d4,_0x158bff)=>_0xf067cd(_0x4839d4,_0x158bff,_0x30c595);let S=class extends _0x42deb7{constructor(_0x336ba6,_0x31c4c6,_0x3372b0){const _0x37b61c=_0x58be21;super(),u(this,_0x37b61c(0x1f1),new Map()),(this[_0x37b61c(0x15b)]=_0x336ba6,this[_0x37b61c(0x1a2)]=_0x31c4c6,this[_0x37b61c(0x1e6)]=_0x3372b0,this[_0x37b61c(0x1b7)]());}async[_0x58be21(0x1f6)](_0x9bf26c){const _0x50f6d4=_0x58be21;return this['_entities']['has'](_0x9bf26c)||await this[_0x50f6d4(0x1d9)](_0x9bf26c),this[_0x50f6d4(0x1f1)][_0x50f6d4(0x185)](_0x9bf26c);}[_0x58be21(0x1a1)](_0x12361c){const _0x5692b8=_0x58be21;var _0x2c8c3e;return(_0x2c8c3e=this[_0x5692b8(0x1f1)][_0x5692b8(0x185)](_0x12361c))!=null?_0x2c8c3e:null;}[_0x58be21(0x1b7)](){const _0x4c92e6=_0x58be21;this[_0x4c92e6(0x15b)]['getTypeOfUnitAdded$'](_0x509fea[_0x4c92e6(0x1bf)])[_0x4c92e6(0x160)](_0x20d7f9(this[_0x4c92e6(0x196)]))[_0x4c92e6(0x1e9)](async _0xf06ef5=>{const _0x3538f6=_0x4c92e6,_0x43b2ab=_0xf06ef5[_0x3538f6(0x1d5)]();this[_0x3538f6(0x1f1)][_0x3538f6(0x191)](_0x43b2ab)||this[_0x3538f6(0x1d9)](_0x43b2ab);}),this[_0x4c92e6(0x15b)][_0x4c92e6(0x1f0)](_0x509fea['UNIVER_SHEET'])[_0x4c92e6(0x160)](_0x20d7f9(this['dispose$']))['subscribe'](_0x223db8=>{const _0x40e3a1=_0x4c92e6,_0x447ef4=_0x223db8[_0x40e3a1(0x1d5)](),_0x23ac25=this[_0x40e3a1(0x1f1)][_0x40e3a1(0x185)](_0x447ef4);_0x23ac25==null||_0x23ac25['dispose']();});}async[_0x58be21(0x1d9)](_0x15c841){const _0x1823fa=_0x58be21,_0x12093b=await this[_0x1823fa(0x1e6)][_0x1823fa(0x1b2)](_0x15c841),_0x1453c9=this[_0x1823fa(0x1a2)][_0x1823fa(0x1cf)](N,_0x15c841,_0x12093b);return _0x1453c9[_0x1823fa(0x1c2)](),this['_entities']['set'](_0x15c841,_0x1453c9),_0x1453c9;}};S=Y([_(0x0,_0x36a4cd),_(0x1,_0x18c588(_0x3b9bd8)),_(0x2,_0x18c588(_0x400127))],S);var c=(_0x316506=>(_0x316506['OFFLINE']='offline',_0x316506[_0x58be21(0x1c0)]='idle',_0x316506[_0x58be21(0x1d4)]=_0x58be21(0x179),_0x316506['NOT_FOLLOWING']=_0x58be21(0x19c),_0x316506['PRESENTING']=_0x58be21(0x197),_0x316506))(c||{});const Ce=_0x58be21(0x17c),De=0xc8;let N=class extends _0x42deb7{constructor(_0x33d7be,_0x4bd656,_0x4dd956,_0x41f4c6,_0x4d9efe){const _0x5af76b=_0x58be21;super(),u(this,_0x5af76b(0x190),new _0x454a39(_0x5af76b(0x1a9))),u(this,_0x5af76b(0x1c6),this[_0x5af76b(0x190)][_0x5af76b(0x1a3)]()),u(this,'_init',!0x1),u(this,_0x5af76b(0x1bd),null),u(this,'_presenter',null),(this['_unitID']=_0x33d7be,this[_0x5af76b(0x177)]=_0x4bd656,this[_0x5af76b(0x1be)]=_0x4dd956,this[_0x5af76b(0x1f9)]=_0x41f4c6,this[_0x5af76b(0x19d)]=_0x4d9efe);}get['_status'](){const _0xc4addf=_0x58be21;return this[_0xc4addf(0x190)][_0xc4addf(0x1a6)]();}[_0x58be21(0x178)](){const _0x9cf060=_0x58be21;var _0x39bd09;(_0x39bd09=this[_0x9cf060(0x1bd)])==null||_0x39bd09[_0x9cf060(0x178)](),this['_status$'][_0x9cf060(0x1d0)](_0x9cf060(0x1a9)),this[_0x9cf060(0x190)]['complete']();}[_0x58be21(0x1b6)](){const _0x44ff67=_0x58be21;return this[_0x44ff67(0x1c1)];}['init'](){const _0x938c1d=_0x58be21;this[_0x938c1d(0x1b7)]||(this[_0x938c1d(0x1b7)]=!0x0,this[_0x938c1d(0x177)]['sessionStatus$'][_0x938c1d(0x160)](_0x20d7f9(this[_0x938c1d(0x196)]))[_0x938c1d(0x1e9)](_0x3cd0d7=>{const _0x164f6a=_0x938c1d;switch(_0x3cd0d7){case _0x44c041[_0x164f6a(0x1e4)]:this[_0x164f6a(0x171)]();break;case _0x44c041[_0x164f6a(0x154)]:this[_0x164f6a(0x162)]();break;}}),this[_0x938c1d(0x177)][_0x938c1d(0x172)][_0x938c1d(0x160)](_0x20d7f9(this[_0x938c1d(0x196)]))[_0x938c1d(0x1e9)](_0x413ca8=>{const _0x17d641=_0x938c1d,{eventID:_0x3b51ad}=_0x413ca8;switch(_0x3b51ad){case _0x38bd9d[_0x17d641(0x189)]:this[_0x17d641(0x18b)](_0x413ca8);break;case _0x38bd9d[_0x17d641(0x163)]:this['_handleOperation'](_0x413ca8);break;case _0x38bd9d['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x38bd9d[_0x17d641(0x14f)]:this['_handleNewChangeSets'](_0x413ca8);break;}}));}[_0x58be21(0x168)](){const _0x229155=_0x58be21;this[_0x229155(0x177)][_0x229155(0x18c)]({'eventID':_0x38bd9d[_0x229155(0x16f)],'data':{'unitID':this[_0x229155(0x1d3)],'userID':this[_0x229155(0x177)]['getMemberID']()}},this[_0x229155(0x1d3)]);}[_0x58be21(0x18a)](){const _0x42c270=_0x58be21;this[_0x42c270(0x1c1)]===_0x42c270(0x197)&&(this['_status$'][_0x42c270(0x1d0)](_0x42c270(0x1a9)),this['_collabSession'][_0x42c270(0x18c)]({'eventID':_0x38bd9d[_0x42c270(0x175)],'data':{'unitID':this['_unitID']}},this[_0x42c270(0x1d3)]));}['startFollowing'](){const _0x57e2b6=_0x58be21;this['_status']===_0x57e2b6(0x19c)&&(this[_0x57e2b6(0x190)][_0x57e2b6(0x1d0)](_0x57e2b6(0x179)),this[_0x57e2b6(0x161)]());}[_0x58be21(0x16a)](){const _0x4b889c=_0x58be21;this[_0x4b889c(0x1c1)]===_0x4b889c(0x179)&&this[_0x4b889c(0x1ba)]();}[_0x58be21(0x18b)](_0x2b875d){const _0x5207a5=_0x58be21,{presenter:_0x5db7f3}=_0x2b875d[_0x5207a5(0x16c)],_0x689d45=this[_0x5207a5(0x177)]['getMemberID']();this[_0x5207a5(0x1c3)]=_0x5db7f3,_0x5db7f3===_0x689d45?(this['_stopFollowing'](),this[_0x5207a5(0x187)]()):this[_0x5207a5(0x1c1)]!==_0x5207a5(0x19c)&&(this[_0x5207a5(0x1cb)](),this[_0x5207a5(0x161)]());}[_0x58be21(0x1cc)](){const _0x1e496a=_0x58be21,_0x58e253={'eventID':_0x38bd9d[_0x1e496a(0x1ee)]};this[_0x1e496a(0x177)]['send'](_0x58e253,this['_unitID']);}[_0x58be21(0x1df)](){const _0x25cae7=_0x58be21;this[_0x25cae7(0x1c3)]=null,this[_0x25cae7(0x1c1)]!==_0x25cae7(0x197)&&this[_0x25cae7(0x1ab)]();}[_0x58be21(0x18f)](_0x755cc5){const _0x4e150d=_0x58be21;if(this[_0x4e150d(0x1c1)]===_0x4e150d(0x179)&&this[_0x4e150d(0x1c3)]===_0x755cc5[_0x4e150d(0x16c)][_0x4e150d(0x188)]){const _0x351478=_0x2e8d75(_0x755cc5['data'])['mutations'][_0x4e150d(0x19f)]()[_0x4e150d(0x1ae)](_0x548e33=>_0x548e33['id']===_0x4e391f['id']);if(_0x351478){const _0x2c19f1=_0x351478[_0x4e150d(0x1db)][_0x4e150d(0x195)],_0x300148=_0x351478[_0x4e150d(0x1db)][_0x4e150d(0x192)]['id'];setTimeout(()=>{const _0x5d920c=_0x4e150d;this[_0x5d920c(0x19d)][_0x5d920c(0x156)](_0xa47d15['id'],{'unitId':_0x2c19f1,'subUnitId':_0x300148},{'fromCollab':!0x0});});}}}[_0x58be21(0x187)](){const _0x5cef56=_0x58be21;this[_0x5cef56(0x190)][_0x5cef56(0x1d0)]('presenting');const _0x110727=new Map(),_0x864e4=this[_0x5cef56(0x1bd)]=new _0x4ff43e();_0x864e4[_0x5cef56(0x1f8)](_0x590fc1(()=>{const _0x22ae66=_0x5cef56;_0x110727[_0x22ae66(0x1ca)](_0x34772c=>_0x34772c['complete']()),_0x110727[_0x22ae66(0x1bc)]();})),_0x864e4['add'](this[_0x5cef56(0x19d)][_0x5cef56(0x1d6)](_0x46a4b5=>{const _0x3c4a3b=_0x5cef56;var _0x34ca34;if(_0x46a4b5['type']!==_0x9accce[_0x3c4a3b(0x1fa)]||!this[_0x3c4a3b(0x1f9)][_0x3c4a3b(0x19e)](_0x46a4b5['id']))return;const {id:_0x2dea53}=_0x46a4b5;let _0x125a78;_0x110727[_0x3c4a3b(0x191)](_0x2dea53)?_0x125a78=_0x110727[_0x3c4a3b(0x185)](_0x2dea53):(_0x125a78=new _0x207475(),_0x110727[_0x3c4a3b(0x1f5)](_0x2dea53,_0x125a78),_0x125a78[_0x3c4a3b(0x160)](_0x4d919c((_0x34ca34=this[_0x3c4a3b(0x1be)][_0x3c4a3b(0x1e0)](Ce))!=null?_0x34ca34:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3c4a3b(0x1e9)](_0x3aaf5b=>{const _0x952dd0=_0x3c4a3b;this[_0x952dd0(0x177)][_0x952dd0(0x18c)]({'eventID':_0x38bd9d[_0x952dd0(0x163)],'data':{'unitID':this[_0x952dd0(0x1d3)],'operations':{[_0x3aaf5b['id']]:{'id':_0x3aaf5b['id'],'params':JSON['stringify'](_0x3aaf5b[_0x952dd0(0x1db)])}}}},this['_unitID']);})),_0x125a78['next'](_0x46a4b5);})),this[_0x5cef56(0x1f9)][_0x5cef56(0x1e8)](this[_0x5cef56(0x1d3)])[_0x5cef56(0x1ca)](_0x200044=>this[_0x5cef56(0x177)][_0x5cef56(0x18c)]({'eventID':_0x38bd9d[_0x5cef56(0x163)],'data':{'unitID':this[_0x5cef56(0x1d3)],'operations':{[_0x200044['id']]:{'id':_0x200044['id'],'params':JSON[_0x5cef56(0x1f7)](_0x200044[_0x5cef56(0x1db)])}}}},this['_unitID']));}[_0x58be21(0x1cb)](){const _0x30bca6=_0x58be21;var _0x8202d6;this[_0x30bca6(0x190)][_0x30bca6(0x1d0)](_0x30bca6(0x1a9)),(_0x8202d6=this[_0x30bca6(0x1bd)])==null||_0x8202d6[_0x30bca6(0x178)](),this[_0x30bca6(0x1bd)]=null;}[_0x58be21(0x161)](){const _0x34042b=_0x58be21;var _0x29c62f;(_0x29c62f=this[_0x34042b(0x1bd)])==null||_0x29c62f[_0x34042b(0x178)](),this['_status$'][_0x34042b(0x1d0)]('following');}[_0x58be21(0x1ab)](){const _0x2b6325=_0x58be21;var _0x2d5deb;this[_0x2b6325(0x190)]['next'](_0x2b6325(0x1a9)),(_0x2d5deb=this[_0x2b6325(0x1bd)])==null||_0x2d5deb['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x9ee783=_0x58be21;var _0x32f8fa;this[_0x9ee783(0x190)][_0x9ee783(0x1d0)](_0x9ee783(0x19c)),(_0x32f8fa=this['_commandDisposable'])==null||_0x32f8fa[_0x9ee783(0x178)]();}[_0x58be21(0x199)](_0x1336b0){const _0x3d0d04=_0x58be21;if([_0x3d0d04(0x197),_0x3d0d04(0x19c),_0x3d0d04(0x1eb)][_0x3d0d04(0x17d)](this[_0x3d0d04(0x1c1)])||!_0x1336b0[_0x3d0d04(0x16c)][_0x3d0d04(0x16d)]||_0x1336b0[_0x3d0d04(0x16c)][_0x3d0d04(0x16d)]===this['_collabSession'][_0x3d0d04(0x15f)]())return;this[_0x3d0d04(0x1c1)]===_0x3d0d04(0x1a9)&&this[_0x3d0d04(0x161)]();const _0x4a8f03=_0x1336b0[_0x3d0d04(0x16c)]['operations'];Object['values'](_0x4a8f03)['forEach'](_0x33f46e=>{const _0x2673de=_0x3d0d04;this[_0x2673de(0x19d)][_0x2673de(0x156)](_0x33f46e['id'],_0x33f46e[_0x2673de(0x1db)]?JSON[_0x2673de(0x180)](_0x33f46e[_0x2673de(0x1db)]):null,{'fromCollab':!0x0});});}[_0x58be21(0x171)](){const _0x3716d6=_0x58be21;var _0x5e0857;this[_0x3716d6(0x190)][_0x3716d6(0x1d0)]('offline'),(_0x5e0857=this[_0x3716d6(0x1bd)])==null||_0x5e0857[_0x3716d6(0x178)]();}[_0x58be21(0x162)](){const _0x2ee202=_0x58be21;this['_status$'][_0x2ee202(0x1d0)](_0x2ee202(0x1a9)),this[_0x2ee202(0x1cc)]();}};N=Y([_(0x2,_0x3e291d),_(0x3,_0x18c588(L)),_(0x4,_0x532c3a)],N);function Le(){const _0x6e8f76=_0x58be21,_0xdf9fed=_0x4e9683(S),_0x34d628=_0x4e9683(_0x36a4cd),_0x15e335=_0x244005(()=>_0x34d628['getCurrentTypeOfUnit$'](_0x509fea[_0x6e8f76(0x1bf)]),void 0x0,!0x1,[]),[_0x11ed75,_0x161cf6]=_0x113df0(null),[_0x174253,_0x54116b]=_0x113df0(c[_0x6e8f76(0x1c0)]),_0x3b293e=_0x55dbd9(null);return _0x5cde6f(()=>(_0x15e335&&_0xdf9fed[_0x6e8f76(0x1f6)](_0x15e335[_0x6e8f76(0x1d5)]())[_0x6e8f76(0x164)](_0x49be4e=>{const _0x32b466=_0x6e8f76;_0x161cf6(_0x49be4e),_0x3b293e[_0x32b466(0x184)]=_0x49be4e[_0x32b466(0x1c6)][_0x32b466(0x1e9)](_0x4b6216=>{_0x54116b(_0x4b6216);});}),()=>{const _0x2f8ada=_0x6e8f76;var _0x3560e7;(_0x3560e7=_0x3b293e[_0x2f8ada(0x184)])==null||_0x3560e7[_0x2f8ada(0x157)](),_0x3b293e[_0x2f8ada(0x184)]=null;}),[_0x15e335,_0xdf9fed]),_0x11ed75?_0x1ab26e(_0x2dbba2,{'align':'end','disabled':_0x174253===c[_0x6e8f76(0x1e4)],'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':_0x1ab26e(Re,{'status':_0x174253,'coordinator':_0x11ed75}),'children':_0x1ab26e(_0x6e8f76(0x159),{'className':_0x2c54d3(_0x6e8f76(0x1dd),{'univer-cursor-not-allowed':_0x174253===c[_0x6e8f76(0x1e4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x174253!==c[_0x6e8f76(0x1e4)]}),'type':_0x6e8f76(0x159),'children':_0x1ab26e(W,{'className':'univer-size-4'})})}):null;}function Re(_0x379685){const _0x340e13=_0x58be21,{status:_0x3f426b,coordinator:_0x2454f8}=_0x379685;switch(_0x3f426b){case c[_0x340e13(0x1c0)]:return _0x1ab26e($e,{'coordinator':_0x2454f8});case c[_0x340e13(0x1d4)]:return _0x1ab26e(xe,{'coordinator':_0x2454f8});case c[_0x340e13(0x151)]:return _0x1ab26e(Pe,{'coordinator':_0x2454f8});case c['OFFLINE']:return _0x1ab26e(Te,{});case c[_0x340e13(0x17e)]:return _0x1ab26e(Ae,{'coordinator':_0x2454f8});default:return null;}}function $e(_0x23e936){const _0x39f462=_0x58be21,{coordinator:_0x526b8a}=_0x23e936;return _0x21b027(_0x13995b,{'children':[_0x1ab26e(_0x39f462(0x193),{'className':_0x39f462(0x17b),'children':_0x39f462(0x176)}),_0x1ab26e(_0x380710,{'onClick':()=>_0x526b8a[_0x39f462(0x168)](),'children':_0x39f462(0x170)})]});}function xe(_0x4731bb){const _0x4e8536=_0x58be21,{coordinator:_0x41302b}=_0x4731bb;return _0x21b027(_0x13995b,{'children':[_0x1ab26e(_0x4e8536(0x193),{'className':_0x4e8536(0x17b),'children':_0x4e8536(0x1b4)}),_0x1ab26e(_0x380710,{'onClick':()=>_0x41302b['stopFollowing'](),'children':_0x4e8536(0x16e)})]});}function Pe(_0x41fb48){const _0x3d99fc=_0x58be21,{coordinator:_0x197e17}=_0x41fb48;return _0x21b027(_0x13995b,{'children':[_0x1ab26e(_0x3d99fc(0x193),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1ab26e(_0x380710,{'variant':_0x3d99fc(0x1aa),'onClick':()=>_0x197e17[_0x3d99fc(0x16b)](),'children':_0x3d99fc(0x18d)})]});}function Ae(_0x1bfa8a){const _0x4c733c=_0x58be21,{coordinator:_0x1ba2d0}=_0x1bfa8a;return _0x21b027(_0x13995b,{'children':[_0x1ab26e(_0x4c733c(0x193),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4c733c(0x166)}),_0x1ab26e(_0x380710,{'variant':_0x4c733c(0x17a),'onClick':()=>_0x1ba2d0[_0x4c733c(0x18a)](),'children':_0x4c733c(0x1b1)})]});}function Te(){const _0x9ccbd6=_0x58be21;return _0x1ab26e(_0x13995b,{'children':_0x9ccbd6(0x15c)});}var Fe=Object[_0x58be21(0x1d2)],He=(_0x4ec54a,_0x1aa59d,_0x5c9ae4,_0x478b46)=>{const _0x4d8a7b=_0x58be21;for(var _0x1c832a=_0x478b46>0x1?void 0x0:_0x478b46?Fe(_0x1aa59d,_0x5c9ae4):_0x1aa59d,_0x3c32be=_0x4ec54a[_0x4d8a7b(0x1b5)]-0x1,_0x5b1f8b;_0x3c32be>=0x0;_0x3c32be--)(_0x5b1f8b=_0x4ec54a[_0x3c32be])&&(_0x1c832a=_0x5b1f8b(_0x1c832a)||_0x1c832a);return _0x1c832a;},A=(_0x438ef3,_0xa434f9)=>(_0x5b73cb,_0x1ada39)=>_0xa434f9(_0x5b73cb,_0x1ada39,_0x438ef3);let m=class extends _0x547c04{constructor(_0x29de5a,_0x3f7caf){const _0xfa37ee=_0x58be21;super(),this['_injector']=_0x29de5a,this[_0xfa37ee(0x19a)]=_0x3f7caf,this[_0xfa37ee(0x1ea)]();}[_0x58be21(0x1ea)](){const _0x2f4ee9=_0x58be21;this[_0x2f4ee9(0x167)](this[_0x2f4ee9(0x19a)][_0x2f4ee9(0x18e)](_0x3290a0[_0x2f4ee9(0x1ef)],()=>_0x260eda(Le,this[_0x2f4ee9(0x1a2)])));}};m=He([A(0x0,_0x18c588(_0x3b9bd8)),A(0x1,_0x35a79c)],m);const ye=_0x58be21(0x15a),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x29dfb3,_0x192cac,_0x5e0e41,_0x3b4e0c)=>{const _0x7d7afd=_0x58be21;for(var _0xf733c4=_0x3b4e0c>0x1?void 0x0:_0x3b4e0c?Ue(_0x192cac,_0x5e0e41):_0x192cac,_0x2346f1=_0x29dfb3[_0x7d7afd(0x1b5)]-0x1,_0x5c728b;_0x2346f1>=0x0;_0x2346f1--)(_0x5c728b=_0x29dfb3[_0x2346f1])&&(_0xf733c4=_0x5c728b(_0xf733c4)||_0xf733c4);return _0xf733c4;},je=(_0x2b01b9,_0x9666e0)=>(_0x2ee68c,_0x284bb2)=>_0x9666e0(_0x2ee68c,_0x284bb2,_0x2b01b9);let I=class extends _0x547c04{constructor(_0x47fd2b){const _0x5e42ee=_0x58be21;super(),this[_0x5e42ee(0x1f9)]=_0x47fd2b,this[_0x5e42ee(0x1b7)]();}[_0x58be21(0x1b7)](){const _0x11297e=_0x58be21;[_0x1d5e61['id'],_0x3b9e17['id'],_0xa47d15['id']][_0x11297e(0x1ca)](_0x134d82=>{const _0x16c6a0=_0x11297e;this['disposeWithMe'](this[_0x16c6a0(0x1f9)][_0x16c6a0(0x1b9)](_0x134d82));});}};I=Ve([je(0x0,_0x18c588(L))],I);function _0x2306(){const _0x51f625=['requireSession','834145HfMaOX','You\x27re\x20following\x20the\x20presenter','length','getStatus','_init','183342bsReZN','registerSharedOperation','_stopFollowing','onStarting','clear','_commandDisposable','_configService','UNIVER_SHEET','IDLE','_status','init','_presenter','onRendered','currentColor','status$','defs','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','setConfig','forEach','_stopPresenting','_fetchOperations','string','xlink:href','createInstance','next','toString','getOwnPropertyDescriptor','_unitID','FOLLOWING','getUnitId','onCommandExecuted','226976nIyajQ','6967477XgqbKw','_startLiveShareCoordinator','attrs','params','trim','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','defIds','_handleTerminate','getConfig','1em','13512dpZWOX','tag','OFFLINE','20qlhoGt','_collabSessionService','svg','getInitialStates','subscribe','_mountLiveShare','offline','mask','live-share-icon','LIVESHARE_FETCH_OPERATIONS','HEADER_MENU','getTypeOfUnitDisposed$','_entities','children','override','path','set','getLiveShareCoordinator','stringify','add','_liveShareService','OPERATION','substring','NEW_CHANGESETS','UNIVER_LIVE_SHARE_PLUGIN','NOT_FOLLOWING','type','1499134YTNZAB','ONLINE','defineProperty','executeCommand','unsubscribe','delete','button','live-share.config','_univerInstanceService','You\x27are\x20offline.','1sWaAHA','entries','getMemberID','pipe','_startFollowing','_handleOnline','LIVESHARE_OPERATION','then','_sharedOperations','You\x27re\x20presenting\x20the\x20document','disposeWithMe','tryStartPresenting','36wcfPnK','stopFollowing','startFollowing','data','presenter','Stop\x20following','LIVESHARE_REQUEST_HOST','Start','_handleOffline','event$','use','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','LIVESHARE_TERMINATE','Present\x20this\x20document','_collabSession','dispose','following','default','univer-mb-3\x20univer-w-full\x20univer-text-sm','SAME_OPERATION_SHARE_INTERVAL','includes','PRESENTING','idSuffix','parse','none','_reporters','map','current','get','random','_startPresenting','memberID','LIVESHARE_NEW_HOST','stopPresenting','_handleNewHost','send','Start\x20following','registerComponent','_handleNewChangeSets','_status$','has','sheet','div','assign','unitId','dispose$','presenting','12NYuzix','_handleOperation','_uiPartsService','0\x200\x2017\x2017','not-following','_commandService','shouldShareOperation','reverse','symbol','getLiveShareCoordinatorSync','_injector','asObservable','UNIVER_UNKNOWN','UniverIcon','getValue','from','LiveShareIcon','idle','text','_beIdle','666420mCKaAs','colorChannel1','find','http://www.w3.org/2000/svg','_config','Stop\x20presenting'];_0x2306=function(){return _0x51f625;};return _0x2306();}var Me=Object[_0x58be21(0x155)],ke=Object[_0x58be21(0x1d2)],Ge=(_0x250725,_0x385734,_0xbe8c76)=>_0x385734 in _0x250725?Me(_0x250725,_0x385734,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbe8c76}):_0x250725[_0x385734]=_0xbe8c76,We=(_0x466264,_0x556e4c,_0x3ae1c7,_0xf7c6c4)=>{const _0x4ee645=_0x58be21;for(var _0x4ee4e3=_0xf7c6c4>0x1?void 0x0:_0xf7c6c4?ke(_0x556e4c,_0x3ae1c7):_0x556e4c,_0x3fd3d4=_0x466264[_0x4ee645(0x1b5)]-0x1,_0x1935c5;_0x3fd3d4>=0x0;_0x3fd3d4--)(_0x1935c5=_0x466264[_0x3fd3d4])&&(_0x4ee4e3=_0x1935c5(_0x4ee4e3)||_0x4ee4e3);return _0x4ee4e3;},F=(_0xfbea65,_0xc7c761)=>(_0x46875a,_0x399167)=>_0xc7c761(_0x46875a,_0x399167,_0xfbea65),B=(_0x467e22,_0x2b7147,_0x32af21)=>Ge(_0x467e22,typeof _0x2b7147!=_0x58be21(0x1a0)?_0x2b7147+'':_0x2b7147,_0x32af21);const Ye=_0x58be21(0x150);let b=class extends _0x2006da{constructor(_0x4e81d2=T,_0x473467,_0x5d16f6){const _0x24a1e3=_0x58be21;super(),this[_0x24a1e3(0x1b0)]=_0x4e81d2,this[_0x24a1e3(0x1a2)]=_0x473467,this[_0x24a1e3(0x1be)]=_0x5d16f6;const {..._0x5aad84}=_0x5d8dd9({},T,this['_config']);this[_0x24a1e3(0x1be)][_0x24a1e3(0x1c9)](ye,_0x5aad84);}[_0x58be21(0x1bb)](){const _0x4c97e2=_0x58be21;_0x2d528c(this['_injector'],_0x447eb4([[L],[S],[I],[m]],this[_0x4c97e2(0x1b0)][_0x4c97e2(0x1f3)])),_0x10a22a(this[_0x4c97e2(0x1a2)],[[I]]);}[_0x58be21(0x1c4)](){const _0x559a02=_0x58be21;_0x10a22a(this[_0x559a02(0x1a2)],[[m]]);}};B(b,_0x58be21(0x152),_0x509fea[_0x58be21(0x1a4)]),B(b,'pluginName',Ye),b=We([_0x523668(_0x31fc54),F(0x1,_0x18c588(_0x3b9bd8)),F(0x2,_0x3e291d)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _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 _0x5c5f(_0x44f27c,_0x4393c3){_0x44f27c=_0x44f27c-0x1ec;const _0x103d8c=_0x103d();let _0x5c5f49=_0x103d8c[_0x44f27c];return _0x5c5f49;}(function(_0x37a198,_0x531409){const _0x5279f7=_0x5c5f,_0x5e455e=_0x37a198();while(!![]){try{const _0x8900cb=parseInt(_0x5279f7(0x1f6))/0x1+parseInt(_0x5279f7(0x20f))/0x2*(-parseInt(_0x5279f7(0x1f2))/0x3)+-parseInt(_0x5279f7(0x203))/0x4*(parseInt(_0x5279f7(0x1f0))/0x5)+parseInt(_0x5279f7(0x1fa))/0x6*(parseInt(_0x5279f7(0x206))/0x7)+-parseInt(_0x5279f7(0x205))/0x8+-parseInt(_0x5279f7(0x1fc))/0x9*(-parseInt(_0x5279f7(0x1f3))/0xa)+parseInt(_0x5279f7(0x202))/0xb*(parseInt(_0x5279f7(0x20e))/0xc);if(_0x8900cb===_0x531409)break;else _0x5e455e['push'](_0x5e455e['shift']());}catch(_0x29ba24){_0x5e455e['push'](_0x5e455e['shift']());}}}(_0x103d,0xc9f5b),function(_0x138ea6,_0x45ded5){const _0x5bd65d=_0x5c5f;typeof exports==_0x5bd65d(0x204)&&typeof module<'u'?_0x45ded5(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x5bd65d(0x208)&&define[_0x5bd65d(0x1f7)]?define([_0x5bd65d(0x20d),_0x5bd65d(0x1fe),'@univerjs/core/facade'],_0x45ded5):(_0x138ea6=typeof globalThis<'u'?globalThis:_0x138ea6||self,_0x45ded5(_0x138ea6[_0x5bd65d(0x212)],_0x138ea6['UniverCore'],_0x138ea6[_0x5bd65d(0x20c)]));}(this,function(_0x2e7298,_0x159446,_0x287012){'use strict';const _0x46c45d=_0x5c5f;var _0x3890fd=Object[_0x46c45d(0x207)],_0x34c0d4=(_0x137e91,_0x42e31a,_0x3ef683)=>_0x42e31a in _0x137e91?_0x3890fd(_0x137e91,_0x42e31a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ef683}):_0x137e91[_0x42e31a]=_0x3ef683,_0x5ea4eb=(_0x3773ea,_0x45e129,_0x3b3326)=>_0x34c0d4(_0x3773ea,typeof _0x45e129!='symbol'?_0x45e129+'':_0x45e129,_0x3b3326);class _0x2406f8 extends _0x287012[_0x46c45d(0x1ef)]{constructor(){super(...arguments),_0x5ea4eb(this,'_liveShareController');}['_initialize'](_0x57a021){const _0x319a3e=_0x46c45d;this[_0x319a3e(0x216)]=_0x57a021['get'](_0x2e7298['LiveShareController']);}[_0x46c45d(0x1ff)](){const _0x26d3e4=_0x46c45d;var _0x3df807;const _0x4c75f7=this[_0x26d3e4(0x1fb)][_0x26d3e4(0x1ec)](_0x159446[_0x26d3e4(0x200)])[_0x26d3e4(0x20b)](_0x159446[_0x26d3e4(0x201)][_0x26d3e4(0x215)]);if(!_0x4c75f7)throw new Error(_0x26d3e4(0x1ee));const _0x2d93b8=_0x4c75f7['getUnitId'](),_0x2dfe0d=this[_0x26d3e4(0x216)][_0x26d3e4(0x214)](_0x2d93b8);return(_0x3df807=_0x2dfe0d==null?void 0x0:_0x2dfe0d[_0x26d3e4(0x20a)]())!=null?_0x3df807:_0x2e7298[_0x26d3e4(0x1f8)][_0x26d3e4(0x1f1)];}[_0x46c45d(0x1f5)](){const _0x2332a0=_0x46c45d,_0x27078d=this[_0x2332a0(0x1fb)]['get'](_0x159446[_0x2332a0(0x200)])[_0x2332a0(0x20b)](_0x159446[_0x2332a0(0x201)][_0x2332a0(0x215)]);if(!_0x27078d)throw new Error(_0x2332a0(0x1ee));const _0x3dff38=_0x27078d[_0x2332a0(0x1f4)](),_0x1fa106=this[_0x2332a0(0x216)][_0x2332a0(0x214)](_0x3dff38);if(!_0x1fa106)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1fa106[_0x2332a0(0x1f5)]();}[_0x46c45d(0x1ed)](){const _0x3eb39f=_0x46c45d,_0x3df49b=this[_0x3eb39f(0x1fb)][_0x3eb39f(0x1ec)](_0x159446['IUniverInstanceService'])[_0x3eb39f(0x20b)](_0x159446['UniverInstanceType'][_0x3eb39f(0x215)]);if(!_0x3df49b)throw new Error(_0x3eb39f(0x1ee));const _0x32f909=_0x3df49b[_0x3eb39f(0x1f4)](),_0x2c065d=this[_0x3eb39f(0x216)][_0x3eb39f(0x214)](_0x32f909);if(!_0x2c065d)throw new Error(_0x3eb39f(0x210));_0x2c065d['stopFollowing']();}[_0x46c45d(0x213)](){const _0x3c7eba=_0x46c45d,_0x2c63cc=this[_0x3c7eba(0x1fb)][_0x3c7eba(0x1ec)](_0x159446[_0x3c7eba(0x200)])[_0x3c7eba(0x20b)](_0x159446[_0x3c7eba(0x201)]['UNIVER_SHEET']);if(!_0x2c63cc)throw new Error(_0x3c7eba(0x1ee));const _0x1f7c3f=_0x2c63cc[_0x3c7eba(0x1f4)](),_0x8eab8a=this[_0x3c7eba(0x216)][_0x3c7eba(0x214)](_0x1f7c3f);if(!_0x8eab8a)throw new Error(_0x3c7eba(0x210));_0x8eab8a[_0x3c7eba(0x211)]();}['stopPresenting'](){const _0x4bf67f=_0x46c45d,_0x496447=this[_0x4bf67f(0x1fb)][_0x4bf67f(0x1ec)](_0x159446[_0x4bf67f(0x200)])[_0x4bf67f(0x20b)](_0x159446[_0x4bf67f(0x201)]['UNIVER_SHEET']);if(!_0x496447)throw new Error(_0x4bf67f(0x1ee));const _0x271e5d=_0x496447[_0x4bf67f(0x1f4)](),_0x3c98e8=this['_liveShareController'][_0x4bf67f(0x214)](_0x271e5d);if(!_0x3c98e8)throw new Error(_0x4bf67f(0x210));_0x3c98e8[_0x4bf67f(0x209)]();}}_0x287012[_0x46c45d(0x1ef)][_0x46c45d(0x1fd)](_0x2406f8);class _0xa4ebb3 extends _0x287012['FEnum']{get[_0x46c45d(0x1f9)](){const _0x163e61=_0x46c45d;return _0x2e7298[_0x163e61(0x1f8)];}}_0x287012['FEnum'][_0x46c45d(0x1fd)](_0xa4ebb3);}));function _0x103d(){const _0x25fc2e=['getLiveShareCoordinatorSync','UNIVER_SHEET','_liveShareController','get','stopFollowing','No\x20active\x20workbook\x20found.','FUniver','15435OYwRfw','IDLE','10308IjheSL','10pxEiiQ','getUnitId','startFollowing','297606GyFfOG','amd','LiveShareStatus','LiveShareStatusEnum','62148ijPHik','_injector','706050fiKVpl','extend','@univerjs/core','getLiveShareStatus','IUniverInstanceService','UniverInstanceType','19800zJghzn','1796HLEOxa','object','12214528xFrstq','917GFMwKg','defineProperty','function','stopPresenting','getStatus','getCurrentUnitOfType','UniverCoreFacade','@univerjs-pro/live-share','22956SMjMTV','836NEzlSO','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','tryStartPresenting','UniverProLiveShare','startPresenting'];_0x103d=function(){return _0x25fc2e;};return _0x103d();}
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 _0x427f(){const _0x402156=['getInitialStates','171859TssEsY','shouldShareOperation','random','createElement','HEADER_MENU','find','PRESENTING','Plugin','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','_handleNewChangeSets','next','2152098jzdiTc','use','complete','clsx','16xGjPaU','_collabSession','onStarting','univer-mb-3\x20univer-w-full\x20univer-text-sm','sessionStatus$','idSuffix','set','memberID','mask','mergeOverrideWithDependencies','substring','SetWorksheetActiveOperation','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','getCurrentTypeOfUnit$','has','end','_handleTerminate','assign','IUniverInstanceService','forEach','SetScrollOperation','UNIVER_UNKNOWN','OPERATION','UniverInstanceType','rxjs/operators','_uiPartsService','LiveShareController','NOT_FOLLOWING','asObservable','defIds','presenting','requireSession','LIVESHARE_NEW_HOST','BehaviorSubject','entries','@univerjs/sheets','tryStartPresenting','SessionStatus','http://www.w3.org/2000/svg','UniverProLiveShare','LIVESHARE_TERMINATE','exports','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinator','tag','Present\x20this\x20document','82yUhPWb','colorChannel1','getStatus','status$','getUnitId','string','OFFLINE','defs','Inject','FOLLOWING','_configService','_presenter','21537yIdWBS','CollaborationEvent','trim','_status','params','_entities','1436184KORIfP','Fragment','You\x27re\x20presenting\x20the\x20document','DisposableCollection','sheet','children','Subject','_init','UniverProCollaboration','offline','DependentOn','svg','object','1em','_beIdle','UniverIcon','init','_config','rxjs','forwardRef','_handleOffline','univer-size-4','connectInjector','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','Disposable','get','button','useDependency','_handleOperation','LiveShareCoordinator','live-share.config','jsxs','toDisposable','react','pipe','onRendered','You\x27re\x20not\x20following\x20the\x20presenter','event$','presenter','0\x200\x2017\x2017','IConfigService','div','jsx','dispose$','_mountLiveShare','idle','InsertSheetMutation','_liveShareService','UniverUi','Dropdown','_startLiveShareCoordinator','UNIVER_SHEET','amd','UniverSheetsUi','operations','registerInitialStateReporter','_univerInstanceService','values','ONLINE','_stopFollowing','RxDisposable','14154650waoOUA','add','@univerjs/design','merge','CommandType','UniverSheets','stopFollowing','registerComponent','univerjs-icon\x20univerjs-icon-','symbol','touchDependencies','current','defineProperty','onCommandExecuted','UniverLiveSharePlugin','LiveShare','registerDependencies','_collabSessionService','useState','UniverDesign','path','registerSharedOperation','getMemberID','then','UniverProCollaborationClient','Start\x20following','unsubscribe','text','_reporters','_injector','_stopPresenting','executeCommand','takeUntil','_unitID','includes','toString','UniverCollaborationClientPlugin','Stop\x20presenting','_fetchOperations','stringify','unitId','_sharedOperations','pluginName','fill','toStringTag','_handleOnline','_startPresenting','getLiveShareCoordinatorSync','useEffect','attrs','currentColor','url(#$1','LiveShareStatus','replace','parse','IDLE','21147aKIeEU','subscribe','data','type','@univerjs-pro/collaboration','evenodd','1000ceABDN','dispose','LIVESHARE_OPERATION','_status$','following','disposeWithMe','displayName','_startFollowing','throttleTime','stopPresenting','not-following','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','@univerjs/ui','send','createInstance','CollaborationSessionService','Button','getTypeOfUnitAdded$','_commandService','UniverCore','DesktopLiveShareController','getOwnPropertyDescriptor','length','You\x27re\x20following\x20the\x20presenter','map','_commandDisposable','_handleNewHost','181010gpShEb','reverse','SetZoomRatioOperation','xlink:href'];_0x427f=function(){return _0x402156;};return _0x427f();}function _0x472b(_0x31af83,_0x328f95){_0x31af83=_0x31af83-0xf4;const _0x427f68=_0x427f();let _0x472b45=_0x427f68[_0x31af83];return _0x472b45;}(function(_0x530783,_0x4fb72f){const _0x16978f=_0x472b,_0x442304=_0x530783();while(!![]){try{const _0x5eb7cb=-parseInt(_0x16978f(0x1c9))/0x1+parseInt(_0x16978f(0x11c))/0x2*(-parseInt(_0x16978f(0x128))/0x3)+parseInt(_0x16978f(0x1d8))/0x4*(parseInt(_0x16978f(0x1c4))/0x5)+-parseInt(_0x16978f(0x12e))/0x6+-parseInt(_0x16978f(0x1a3))/0x7*(parseInt(_0x16978f(0x1a9))/0x8)+-parseInt(_0x16978f(0x1d4))/0x9+parseInt(_0x16978f(0x16b))/0xa;if(_0x5eb7cb===_0x4fb72f)break;else _0x442304['push'](_0x442304['shift']());}catch(_0x2fa7ac){_0x442304['push'](_0x442304['shift']());}}}(_0x427f,0x3a18c),function(_0x35b737,_0x1119ce){const _0x3710ec=_0x472b;typeof exports==_0x3710ec(0x13a)&&typeof module<'u'?_0x1119ce(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[_0x3710ec(0x162)]?define([_0x3710ec(0x117),'@univerjs/core',_0x3710ec(0x1b5),'react/jsx-runtime',_0x3710ec(0x16d),_0x3710ec(0x14f),_0x3710ec(0x1a7),'@univerjs-pro/collaboration-client',_0x3710ec(0x111),_0x3710ec(0x140),_0x3710ec(0x106),'@univerjs/sheets-ui'],_0x1119ce):(_0x35b737=typeof globalThis<'u'?globalThis:_0x35b737||self,_0x1119ce(_0x35b737[_0x3710ec(0x115)]={},_0x35b737[_0x3710ec(0x1bc)],_0x35b737[_0x3710ec(0x15e)],_0x35b737['React'],_0x35b737[_0x3710ec(0x17e)],_0x35b737['React'],_0x35b737[_0x3710ec(0x136)],_0x35b737[_0x3710ec(0x183)],_0x35b737[_0x3710ec(0x170)],_0x35b737[_0x3710ec(0x140)],_0x35b737[_0x3710ec(0x140)]['operators'],_0x35b737[_0x3710ec(0x163)]));}(this,function(_0x3a76e2,_0x236774,_0x2c8dd9,_0x2be8ca,_0x5a8125,_0xef9dde,_0x1390ae,_0x172967,_0x35849c,_0x6c1aef,_0x51626c,_0x2d195e){'use strict';const _0x581f0c=_0x472b;var _0xdcdca=Object[_0x581f0c(0x177)],_0x15bd91=(_0x260d0c,_0x45da44,_0x394e8e)=>_0x45da44 in _0x260d0c?_0xdcdca(_0x260d0c,_0x45da44,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x394e8e}):_0x260d0c[_0x45da44]=_0x394e8e,_0x486a28=(_0x4650d6,_0xa075f2,_0x440953)=>_0x15bd91(_0x4650d6,typeof _0xa075f2!=_0x581f0c(0x174)?_0xa075f2+'':_0xa075f2,_0x440953);function _0x273c79({ref:_0x133e18,..._0x287133}){const _0x418f54=_0x581f0c,{icon:_0x43fc1b,id:_0x590591,className:_0x4f8d7d,extend:_0x5594e3,..._0x38138f}=_0x287133,_0x55ffd9=(_0x418f54(0x173)+_0x590591+'\x20'+(_0x4f8d7d||''))[_0x418f54(0x12a)](),_0x68ea39=_0xef9dde['useRef']('_'+_0x376c6c());return _0x192ec5(_0x43fc1b,''+_0x590591,{'defIds':_0x43fc1b[_0x418f54(0x10b)],'idSuffix':_0x68ea39[_0x418f54(0x176)]},{'ref':_0x133e18,'className':_0x55ffd9,..._0x38138f},_0x5594e3);}function _0x192ec5(_0x15cb12,_0x222128,_0x8ea4ba,_0x202d44,_0x325c26){const _0x44f25d=_0x581f0c;return _0xef9dde[_0x44f25d(0x1cc)](_0x15cb12['tag'],{'key':_0x222128,..._0x2f2a29(_0x15cb12,_0x8ea4ba,_0x325c26),..._0x202d44},(_0x521410(_0x15cb12,_0x8ea4ba)[_0x44f25d(0x133)]||[])['map']((_0x53e284,_0x2a1cd5)=>_0x192ec5(_0x53e284,_0x222128+'-'+_0x15cb12[_0x44f25d(0x11a)]+'-'+_0x2a1cd5,_0x8ea4ba,void 0x0,_0x325c26)));}function _0x2f2a29(_0x53cd87,_0x5ab7d3,_0x3308ef){const _0x39c3b1=_0x581f0c,_0x4d7446={..._0x53cd87[_0x39c3b1(0x19c)]};_0x3308ef!=null&&_0x3308ef['colorChannel1']&&_0x4d7446[_0x39c3b1(0x196)]===_0x39c3b1(0x11d)&&(_0x4d7446[_0x39c3b1(0x196)]=_0x3308ef[_0x39c3b1(0x11d)]),_0x53cd87['tag']===_0x39c3b1(0xf6)&&_0x4d7446['id']&&(_0x4d7446['id']=_0x4d7446['id']+_0x5ab7d3[_0x39c3b1(0x1dd)]),Object[_0x39c3b1(0x110)](_0x4d7446)[_0x39c3b1(0x101)](([_0x4cf079,_0x2c2a5f])=>{const _0x4724e2=_0x39c3b1;_0x4cf079===_0x4724e2(0xf6)&&typeof _0x2c2a5f=='string'&&(_0x4d7446[_0x4cf079]=_0x2c2a5f[_0x4724e2(0x1a0)](/url\(#(.*)\)/,_0x4724e2(0x19e)+_0x5ab7d3['idSuffix']+')'));});const {defIds:_0x2fa30b}=_0x5ab7d3;return!_0x2fa30b||_0x2fa30b['length']===0x0||(_0x53cd87['tag']===_0x39c3b1(0x1d5)&&_0x4d7446[_0x39c3b1(0x1c7)]&&(_0x4d7446['xlink:href']=_0x4d7446[_0x39c3b1(0x1c7)]+_0x5ab7d3[_0x39c3b1(0x1dd)]),Object[_0x39c3b1(0x110)](_0x4d7446)[_0x39c3b1(0x101)](([_0x5e1176,_0x4b15e2])=>{const _0x357a47=_0x39c3b1;typeof _0x4b15e2=='string'&&(_0x4d7446[_0x5e1176]=_0x4b15e2[_0x357a47(0x1a0)](/url\(#(.*)\)/,_0x357a47(0x19e)+_0x5ab7d3['idSuffix']+')'));})),_0x4d7446;}function _0x521410(_0x2aedd7,_0x26bb4a){const _0x442110=_0x581f0c;var _0x4faa3d;const {defIds:_0x2367d4}=_0x26bb4a;return!_0x2367d4||_0x2367d4[_0x442110(0x1bf)]===0x0?_0x2aedd7:_0x2aedd7[_0x442110(0x11a)]===_0x442110(0x123)&&((_0x4faa3d=_0x2aedd7['children'])!=null&&_0x4faa3d['length'])?{..._0x2aedd7,'children':_0x2aedd7['children'][_0x442110(0x1c1)](_0x3c05a9=>typeof _0x3c05a9[_0x442110(0x19c)]['id']==_0x442110(0x121)&&_0x2367d4&&_0x2367d4[_0x442110(0x18d)](_0x3c05a9['attrs']['id'])?{..._0x3c05a9,'attrs':{..._0x3c05a9[_0x442110(0x19c)],'id':_0x3c05a9[_0x442110(0x19c)]['id']+_0x26bb4a[_0x442110(0x1dd)]}}:_0x3c05a9)}:_0x2aedd7;}function _0x376c6c(){const _0xa3eda=_0x581f0c;return Math[_0xa3eda(0x1cb)]()[_0xa3eda(0x18e)](0x24)[_0xa3eda(0xf8)](0x2,0x8);}_0x273c79[_0x581f0c(0x1af)]=_0x581f0c(0x13d);const _0xb067d3={'tag':_0x581f0c(0x139),'attrs':{'xmlns':_0x581f0c(0x114),'fill':'none','viewBox':_0x581f0c(0x155),'width':_0x581f0c(0x13b),'height':_0x581f0c(0x13b)},'children':[{'tag':_0x581f0c(0x17f),'attrs':{'fill':_0x581f0c(0x19d),'d':_0x581f0c(0x1d1)}},{'tag':_0x581f0c(0x17f),'attrs':{'fill':_0x581f0c(0x19d),'d':_0x581f0c(0x145),'fillRule':_0x581f0c(0x1a8),'clipRule':_0x581f0c(0x1a8)}}]},_0x31dea7=_0xef9dde[_0x581f0c(0x141)](function(_0x4c8438,_0x2c7ad1){const _0x239991=_0x581f0c;return _0xef9dde[_0x239991(0x1cc)](_0x273c79,Object[_0x239991(0xff)]({},_0x4c8438,{'id':'live-share-icon','ref':_0x2c7ad1,'icon':_0xb067d3}));});_0x31dea7[_0x581f0c(0x1af)]='LiveShareIcon';class _0x4f28ce extends _0x236774[_0x581f0c(0x146)]{constructor(){const _0x2b1d71=_0x581f0c;super(...arguments),_0x486a28(this,_0x2b1d71(0x194),new Set()),_0x486a28(this,_0x2b1d71(0x187),new Set());}[_0x581f0c(0x180)](_0x47ca40){const _0x24ddd6=_0x581f0c;return this[_0x24ddd6(0x194)][_0x24ddd6(0x16c)](_0x47ca40),_0x236774[_0x24ddd6(0x14e)](()=>this[_0x24ddd6(0x194)]['delete'](_0x47ca40));}[_0x581f0c(0x165)](_0x2809ec){const _0xcc069=_0x581f0c;return this[_0xcc069(0x187)]['add'](_0x2809ec),_0x236774['toDisposable'](()=>this['_reporters']['delete'](_0x2809ec));}[_0x581f0c(0x1ca)](_0xa0303e){const _0x21bf5a=_0x581f0c;return this[_0x21bf5a(0x194)][_0x21bf5a(0xfc)](_0xa0303e);}[_0x581f0c(0x1c8)](_0x53aaaa){return Array['from'](this['_reporters'])['map'](_0x4fb599=>_0x4fb599(_0x53aaaa));}}var _0x16e20a=Object[_0x581f0c(0x1be)],_0x1ced8c=(_0x2c1c75,_0x5e15e3,_0x5e4512,_0x3747d6)=>{const _0x38ae07=_0x581f0c;for(var _0x4c7612=_0x3747d6>0x1?void 0x0:_0x3747d6?_0x16e20a(_0x5e15e3,_0x5e4512):_0x5e15e3,_0x190049=_0x2c1c75[_0x38ae07(0x1bf)]-0x1,_0x3ceead;_0x190049>=0x0;_0x190049--)(_0x3ceead=_0x2c1c75[_0x190049])&&(_0x4c7612=_0x3ceead(_0x4c7612)||_0x4c7612);return _0x4c7612;},_0x1c48a0=(_0x4ca6e9,_0x2c4737)=>(_0x1b1576,_0x2dc74a)=>_0x2c4737(_0x1b1576,_0x2dc74a,_0x4ca6e9);_0x3a76e2[_0x581f0c(0x108)]=class extends _0x236774[_0x581f0c(0x16a)]{constructor(_0x188911,_0x565d84,_0xce5256){const _0x37ae0d=_0x581f0c;super(),_0x486a28(this,_0x37ae0d(0x12d),new Map()),(this['_univerInstanceService']=_0x188911,this[_0x37ae0d(0x188)]=_0x565d84,this[_0x37ae0d(0x17c)]=_0xce5256,this[_0x37ae0d(0x135)]());}async[_0x581f0c(0x119)](_0x4c025c){const _0x4c4b58=_0x581f0c;return this[_0x4c4b58(0x12d)]['has'](_0x4c025c)||await this[_0x4c4b58(0x160)](_0x4c025c),this[_0x4c4b58(0x12d)][_0x4c4b58(0x147)](_0x4c025c);}[_0x581f0c(0x19a)](_0x4613ff){const _0x24cc29=_0x581f0c;var _0x402c38;return(_0x402c38=this[_0x24cc29(0x12d)][_0x24cc29(0x147)](_0x4613ff))!=null?_0x402c38:null;}[_0x581f0c(0x135)](){const _0x35eda3=_0x581f0c;this[_0x35eda3(0x166)][_0x35eda3(0x1ba)](_0x236774['UniverInstanceType'][_0x35eda3(0x161)])[_0x35eda3(0x150)](_0x51626c[_0x35eda3(0x18b)](this[_0x35eda3(0x159)]))['subscribe'](async _0x365010=>{const _0x537394=_0x35eda3,_0x4e5551=_0x365010[_0x537394(0x120)]();this[_0x537394(0x12d)][_0x537394(0xfc)](_0x4e5551)||this['_startLiveShareCoordinator'](_0x4e5551);}),this[_0x35eda3(0x166)]['getTypeOfUnitDisposed$'](_0x236774[_0x35eda3(0x105)][_0x35eda3(0x161)])[_0x35eda3(0x150)](_0x51626c['takeUntil'](this['dispose$']))[_0x35eda3(0x1a4)](_0x557e1b=>{const _0x3cd9e0=_0x35eda3,_0x22b2d4=_0x557e1b[_0x3cd9e0(0x120)](),_0x7d0ae=this[_0x3cd9e0(0x12d)][_0x3cd9e0(0x147)](_0x22b2d4);_0x7d0ae==null||_0x7d0ae[_0x3cd9e0(0x1aa)]();});}async['_startLiveShareCoordinator'](_0x504d40){const _0x519acf=_0x581f0c,_0x392655=await this[_0x519acf(0x17c)][_0x519acf(0x10d)](_0x504d40),_0x5cc3f1=this[_0x519acf(0x188)][_0x519acf(0x1b7)](_0x3a76e2[_0x519acf(0x14b)],_0x504d40,_0x392655);return _0x5cc3f1[_0x519acf(0x13e)](),this['_entities'][_0x519acf(0xf4)](_0x504d40,_0x5cc3f1),_0x5cc3f1;}},_0x3a76e2['LiveShareController']=_0x1ced8c([_0x1c48a0(0x0,_0x236774[_0x581f0c(0x100)]),_0x1c48a0(0x1,_0x236774[_0x581f0c(0x124)](_0x236774['Injector'])),_0x1c48a0(0x2,_0x236774['Inject'](_0x172967[_0x581f0c(0x1b8)]))],_0x3a76e2[_0x581f0c(0x108)]);var _0x39bb62=(_0x3839d2=>(_0x3839d2[_0x581f0c(0x122)]=_0x581f0c(0x137),_0x3839d2['IDLE']=_0x581f0c(0x15b),_0x3839d2[_0x581f0c(0x125)]=_0x581f0c(0x1ad),_0x3839d2[_0x581f0c(0x109)]='not-following',_0x3839d2[_0x581f0c(0x1cf)]=_0x581f0c(0x10c),_0x3839d2))(_0x39bb62||{});const _0x3bc5be='SAME_OPERATION_SHARE_INTERVAL',_0x4aa07d=0xc8;_0x3a76e2['LiveShareCoordinator']=class extends _0x236774[_0x581f0c(0x16a)]{constructor(_0x117f68,_0x283488,_0x273abe,_0x50ef4a,_0x48dac4){const _0x31043f=_0x581f0c;super(),_0x486a28(this,_0x31043f(0x1ac),new _0x6c1aef[(_0x31043f(0x10f))](_0x31043f(0x15b))),_0x486a28(this,_0x31043f(0x11f),this['_status$'][_0x31043f(0x10a)]()),_0x486a28(this,_0x31043f(0x135),!0x1),_0x486a28(this,_0x31043f(0x1c2),null),_0x486a28(this,'_presenter',null),(this[_0x31043f(0x18c)]=_0x117f68,this[_0x31043f(0x1d9)]=_0x283488,this[_0x31043f(0x126)]=_0x273abe,this['_liveShareService']=_0x50ef4a,this[_0x31043f(0x1bb)]=_0x48dac4);}get[_0x581f0c(0x12b)](){const _0x527e44=_0x581f0c;return this[_0x527e44(0x1ac)]['getValue']();}[_0x581f0c(0x1aa)](){const _0x1260b0=_0x581f0c;var _0xb22b42;(_0xb22b42=this[_0x1260b0(0x1c2)])==null||_0xb22b42['dispose'](),this[_0x1260b0(0x1ac)][_0x1260b0(0x1d3)](_0x1260b0(0x15b)),this[_0x1260b0(0x1ac)]['complete']();}[_0x581f0c(0x11e)](){const _0x351171=_0x581f0c;return this[_0x351171(0x12b)];}[_0x581f0c(0x13e)](){const _0x45e23c=_0x581f0c;this[_0x45e23c(0x135)]||(this[_0x45e23c(0x135)]=!0x0,this[_0x45e23c(0x1d9)][_0x45e23c(0x1dc)][_0x45e23c(0x150)](_0x51626c[_0x45e23c(0x18b)](this[_0x45e23c(0x159)]))[_0x45e23c(0x1a4)](_0x44a07b=>{const _0x109b28=_0x45e23c;switch(_0x44a07b){case _0x172967[_0x109b28(0x113)][_0x109b28(0x122)]:this['_handleOffline']();break;case _0x172967[_0x109b28(0x113)][_0x109b28(0x168)]:this[_0x109b28(0x198)]();break;}}),this['_collabSession'][_0x45e23c(0x153)][_0x45e23c(0x150)](_0x51626c[_0x45e23c(0x18b)](this[_0x45e23c(0x159)]))['subscribe'](_0xd0146c=>{const _0xc430b0=_0x45e23c,{eventID:_0x23aa39}=_0xd0146c;switch(_0x23aa39){case _0x1390ae[_0xc430b0(0x129)][_0xc430b0(0x10e)]:this[_0xc430b0(0x1c3)](_0xd0146c);break;case _0x1390ae[_0xc430b0(0x129)]['LIVESHARE_OPERATION']:this[_0xc430b0(0x14a)](_0xd0146c);break;case _0x1390ae[_0xc430b0(0x129)][_0xc430b0(0x116)]:this['_handleTerminate']();break;case _0x1390ae[_0xc430b0(0x129)]['NEW_CHANGESETS']:this[_0xc430b0(0x1d2)](_0xd0146c);break;}}));}[_0x581f0c(0x112)](){const _0x49a58c=_0x581f0c;this[_0x49a58c(0x1d9)][_0x49a58c(0x1b6)]({'eventID':_0x1390ae[_0x49a58c(0x129)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x49a58c(0x18c)],'userID':this[_0x49a58c(0x1d9)][_0x49a58c(0x181)]()}},this[_0x49a58c(0x18c)]);}[_0x581f0c(0x1b2)](){const _0x2cdf33=_0x581f0c;this[_0x2cdf33(0x12b)]==='presenting'&&(this[_0x2cdf33(0x1ac)][_0x2cdf33(0x1d3)](_0x2cdf33(0x15b)),this['_collabSession'][_0x2cdf33(0x1b6)]({'eventID':_0x1390ae[_0x2cdf33(0x129)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2cdf33(0x18c)]}},this[_0x2cdf33(0x18c)]));}['startFollowing'](){const _0x4aa66c=_0x581f0c;this[_0x4aa66c(0x12b)]===_0x4aa66c(0x1b3)&&(this['_status$'][_0x4aa66c(0x1d3)]('following'),this[_0x4aa66c(0x1b0)]());}[_0x581f0c(0x171)](){const _0xb268ee=_0x581f0c;this[_0xb268ee(0x12b)]==='following'&&this[_0xb268ee(0x169)]();}[_0x581f0c(0x1c3)](_0x3448f9){const _0x31c994=_0x581f0c,{presenter:_0x163fe4}=_0x3448f9[_0x31c994(0x1a5)],_0x3b3d75=this[_0x31c994(0x1d9)][_0x31c994(0x181)]();this['_presenter']=_0x163fe4,_0x163fe4===_0x3b3d75?(this[_0x31c994(0x169)](),this[_0x31c994(0x199)]()):this[_0x31c994(0x12b)]!==_0x31c994(0x1b3)&&(this[_0x31c994(0x189)](),this[_0x31c994(0x1b0)]());}['_fetchOperations'](){const _0x163e26=_0x581f0c,_0x51e10a={'eventID':_0x1390ae[_0x163e26(0x129)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x163e26(0x1b6)](_0x51e10a,this[_0x163e26(0x18c)]);}[_0x581f0c(0xfe)](){const _0x501f26=_0x581f0c;this[_0x501f26(0x127)]=null,this['_status']!==_0x501f26(0x10c)&&this['_beIdle']();}['_handleNewChangeSets'](_0x5b01af){const _0xb5d752=_0x581f0c;if(this[_0xb5d752(0x12b)]===_0xb5d752(0x1ad)&&this[_0xb5d752(0x127)]===_0x5b01af[_0xb5d752(0x1a5)][_0xb5d752(0xf5)]){const _0x10b6f1=_0x1390ae['parseProtocolChangeset'](_0x5b01af[_0xb5d752(0x1a5)])['mutations'][_0xb5d752(0x1c5)]()[_0xb5d752(0x1ce)](_0x42449c=>_0x42449c['id']===_0x35849c[_0xb5d752(0x15c)]['id']);if(_0x10b6f1){const _0x53845f=_0x10b6f1[_0xb5d752(0x12c)][_0xb5d752(0x193)],_0x20a87b=_0x10b6f1[_0xb5d752(0x12c)][_0xb5d752(0x132)]['id'];setTimeout(()=>{const _0x50089a=_0xb5d752;this['_commandService']['executeCommand'](_0x35849c[_0x50089a(0xf9)]['id'],{'unitId':_0x53845f,'subUnitId':_0x20a87b},{'fromCollab':!0x0});});}}}[_0x581f0c(0x199)](){const _0x3df0ef=_0x581f0c;this[_0x3df0ef(0x1ac)][_0x3df0ef(0x1d3)](_0x3df0ef(0x10c));const _0xbf8016=new Map(),_0x5f28b4=this[_0x3df0ef(0x1c2)]=new _0x236774[(_0x3df0ef(0x131))]();_0x5f28b4[_0x3df0ef(0x16c)](_0x236774[_0x3df0ef(0x14e)](()=>{const _0x629ccf=_0x3df0ef;_0xbf8016[_0x629ccf(0x101)](_0x511919=>_0x511919[_0x629ccf(0x1d6)]()),_0xbf8016['clear']();})),_0x5f28b4[_0x3df0ef(0x16c)](this['_commandService'][_0x3df0ef(0x178)](_0x4160bd=>{const _0x553859=_0x3df0ef;var _0x39f327;if(_0x4160bd['type']!==_0x236774[_0x553859(0x16f)][_0x553859(0x104)]||!this[_0x553859(0x15d)][_0x553859(0x1ca)](_0x4160bd['id']))return;const {id:_0x327da1}=_0x4160bd;let _0x1408d5;_0xbf8016[_0x553859(0xfc)](_0x327da1)?_0x1408d5=_0xbf8016['get'](_0x327da1):(_0x1408d5=new _0x6c1aef[(_0x553859(0x134))](),_0xbf8016[_0x553859(0xf4)](_0x327da1,_0x1408d5),_0x1408d5['pipe'](_0x51626c[_0x553859(0x1b1)]((_0x39f327=this[_0x553859(0x126)]['getConfig'](_0x3bc5be))!=null?_0x39f327:_0x4aa07d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x553859(0x1a4)](_0x235dca=>{const _0xbeb5fd=_0x553859;this[_0xbeb5fd(0x1d9)][_0xbeb5fd(0x1b6)]({'eventID':_0x1390ae[_0xbeb5fd(0x129)][_0xbeb5fd(0x1ab)],'data':{'unitID':this[_0xbeb5fd(0x18c)],'operations':{[_0x235dca['id']]:{'id':_0x235dca['id'],'params':JSON[_0xbeb5fd(0x192)](_0x235dca[_0xbeb5fd(0x12c)])}}}},this['_unitID']);})),_0x1408d5[_0x553859(0x1d3)](_0x4160bd);})),this[_0x3df0ef(0x15d)][_0x3df0ef(0x1c8)](this['_unitID'])['forEach'](_0x4b7671=>this[_0x3df0ef(0x1d9)][_0x3df0ef(0x1b6)]({'eventID':_0x1390ae[_0x3df0ef(0x129)][_0x3df0ef(0x1ab)],'data':{'unitID':this[_0x3df0ef(0x18c)],'operations':{[_0x4b7671['id']]:{'id':_0x4b7671['id'],'params':JSON[_0x3df0ef(0x192)](_0x4b7671[_0x3df0ef(0x12c)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x5782a4=_0x581f0c;var _0xddc1b2;this[_0x5782a4(0x1ac)][_0x5782a4(0x1d3)]('idle'),(_0xddc1b2=this[_0x5782a4(0x1c2)])==null||_0xddc1b2['dispose'](),this[_0x5782a4(0x1c2)]=null;}['_startFollowing'](){const _0x193dec=_0x581f0c;var _0x434a2e;(_0x434a2e=this[_0x193dec(0x1c2)])==null||_0x434a2e[_0x193dec(0x1aa)](),this[_0x193dec(0x1ac)][_0x193dec(0x1d3)](_0x193dec(0x1ad));}[_0x581f0c(0x13c)](){const _0x34d931=_0x581f0c;var _0x4e7f7f;this[_0x34d931(0x1ac)][_0x34d931(0x1d3)](_0x34d931(0x15b)),(_0x4e7f7f=this[_0x34d931(0x1c2)])==null||_0x4e7f7f[_0x34d931(0x1aa)](),this[_0x34d931(0x1c2)]=null;}['_stopFollowing'](){const _0x559d5d=_0x581f0c;var _0x314526;this[_0x559d5d(0x1ac)][_0x559d5d(0x1d3)](_0x559d5d(0x1b3)),(_0x314526=this[_0x559d5d(0x1c2)])==null||_0x314526[_0x559d5d(0x1aa)]();}[_0x581f0c(0x14a)](_0x3a2c23){const _0x385c86=_0x581f0c;if([_0x385c86(0x10c),'not-following',_0x385c86(0x137)][_0x385c86(0x18d)](this[_0x385c86(0x12b)])||!_0x3a2c23['data'][_0x385c86(0x154)]||_0x3a2c23[_0x385c86(0x1a5)][_0x385c86(0x154)]===this[_0x385c86(0x1d9)][_0x385c86(0x181)]())return;this[_0x385c86(0x12b)]===_0x385c86(0x15b)&&this[_0x385c86(0x1b0)]();const _0x381f48=_0x3a2c23[_0x385c86(0x1a5)][_0x385c86(0x164)];Object[_0x385c86(0x167)](_0x381f48)[_0x385c86(0x101)](_0x15527a=>{const _0x3f615f=_0x385c86;this[_0x3f615f(0x1bb)][_0x3f615f(0x18a)](_0x15527a['id'],_0x15527a['params']?JSON[_0x3f615f(0x1a1)](_0x15527a['params']):null,{'fromCollab':!0x0});});}[_0x581f0c(0x142)](){const _0xe8c4b6=_0x581f0c;var _0x4e6ca0;this[_0xe8c4b6(0x1ac)][_0xe8c4b6(0x1d3)](_0xe8c4b6(0x137)),(_0x4e6ca0=this[_0xe8c4b6(0x1c2)])==null||_0x4e6ca0['dispose']();}[_0x581f0c(0x198)](){const _0x84d9bb=_0x581f0c;this['_status$'][_0x84d9bb(0x1d3)](_0x84d9bb(0x15b)),this[_0x84d9bb(0x191)]();}},_0x3a76e2[_0x581f0c(0x14b)]=_0x1ced8c([_0x1c48a0(0x2,_0x236774[_0x581f0c(0x156)]),_0x1c48a0(0x3,_0x236774['Inject'](_0x4f28ce)),_0x1c48a0(0x4,_0x236774['ICommandService'])],_0x3a76e2[_0x581f0c(0x14b)]);function _0x124edd(){const _0x4e0085=_0x581f0c,_0x35f72c=_0x2c8dd9['useDependency'](_0x3a76e2[_0x4e0085(0x108)]),_0x187bc9=_0x2c8dd9[_0x4e0085(0x149)](_0x236774[_0x4e0085(0x100)]),_0x967f4b=_0x2c8dd9['useObservable'](()=>_0x187bc9[_0x4e0085(0xfb)](_0x236774['UniverInstanceType'][_0x4e0085(0x161)]),void 0x0,!0x1,[]),[_0x3246ea,_0x4610cc]=_0xef9dde[_0x4e0085(0x17d)](null),[_0x3d8040,_0x237a21]=_0xef9dde['useState'](_0x39bb62[_0x4e0085(0x1a2)]),_0x414174=_0xef9dde['useRef'](null);return _0xef9dde[_0x4e0085(0x19b)](()=>(_0x967f4b&&_0x35f72c[_0x4e0085(0x119)](_0x967f4b['getUnitId']())[_0x4e0085(0x182)](_0x218842=>{const _0x2c947b=_0x4e0085;_0x4610cc(_0x218842),_0x414174[_0x2c947b(0x176)]=_0x218842[_0x2c947b(0x11f)][_0x2c947b(0x1a4)](_0x632418=>{_0x237a21(_0x632418);});}),()=>{const _0x55fba8=_0x4e0085;var _0x1b5ac9;(_0x1b5ac9=_0x414174['current'])==null||_0x1b5ac9[_0x55fba8(0x185)](),_0x414174[_0x55fba8(0x176)]=null;}),[_0x967f4b,_0x35f72c]),_0x3246ea?_0x2be8ca[_0x4e0085(0x158)](_0x5a8125[_0x4e0085(0x15f)],{'align':_0x4e0085(0xfd),'disabled':_0x3d8040===_0x39bb62[_0x4e0085(0x122)],'className':_0x4e0085(0xfa),'overlay':_0x2be8ca[_0x4e0085(0x158)](_0xc21b9d,{'status':_0x3d8040,'coordinator':_0x3246ea}),'children':_0x2be8ca[_0x4e0085(0x158)](_0x4e0085(0x148),{'className':_0x5a8125[_0x4e0085(0x1d7)](_0x4e0085(0x1b4),{'univer-cursor-not-allowed':_0x3d8040===_0x39bb62[_0x4e0085(0x122)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3d8040!==_0x39bb62[_0x4e0085(0x122)]}),'type':_0x4e0085(0x148),'children':_0x2be8ca[_0x4e0085(0x158)](_0x31dea7,{'className':_0x4e0085(0x143)})})}):null;}function _0xc21b9d(_0x13a783){const _0x237f83=_0x581f0c,{status:_0x43c144,coordinator:_0x3aa21d}=_0x13a783;switch(_0x43c144){case _0x39bb62[_0x237f83(0x1a2)]:return _0x2be8ca[_0x237f83(0x158)](_0x394e57,{'coordinator':_0x3aa21d});case _0x39bb62[_0x237f83(0x125)]:return _0x2be8ca[_0x237f83(0x158)](_0x596072,{'coordinator':_0x3aa21d});case _0x39bb62[_0x237f83(0x109)]:return _0x2be8ca[_0x237f83(0x158)](_0x391b35,{'coordinator':_0x3aa21d});case _0x39bb62[_0x237f83(0x122)]:return _0x2be8ca[_0x237f83(0x158)](_0x33dd8e,{});case _0x39bb62[_0x237f83(0x1cf)]:return _0x2be8ca[_0x237f83(0x158)](_0x319f1d,{'coordinator':_0x3aa21d});default:return null;}}function _0x394e57(_0x314f6c){const _0x321b5f=_0x581f0c,{coordinator:_0x175f71}=_0x314f6c;return _0x2be8ca[_0x321b5f(0x14d)](_0x2be8ca[_0x321b5f(0x12f)],{'children':[_0x2be8ca[_0x321b5f(0x158)](_0x321b5f(0x157),{'className':_0x321b5f(0x1db),'children':_0x321b5f(0x11b)}),_0x2be8ca['jsx'](_0x5a8125['Button'],{'onClick':()=>_0x175f71[_0x321b5f(0x112)](),'children':'Start'})]});}function _0x596072(_0x2e88f9){const _0x491789=_0x581f0c,{coordinator:_0x235e99}=_0x2e88f9;return _0x2be8ca[_0x491789(0x14d)](_0x2be8ca[_0x491789(0x12f)],{'children':[_0x2be8ca[_0x491789(0x158)](_0x491789(0x157),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x491789(0x1c0)}),_0x2be8ca[_0x491789(0x158)](_0x5a8125[_0x491789(0x1b9)],{'onClick':()=>_0x235e99[_0x491789(0x171)](),'children':'Stop\x20following'})]});}function _0x391b35(_0x558ecb){const _0x191140=_0x581f0c,{coordinator:_0x4afeeb}=_0x558ecb;return _0x2be8ca[_0x191140(0x14d)](_0x2be8ca['Fragment'],{'children':[_0x2be8ca['jsx'](_0x191140(0x157),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x191140(0x152)}),_0x2be8ca['jsx'](_0x5a8125[_0x191140(0x1b9)],{'variant':_0x191140(0x186),'onClick':()=>_0x4afeeb['startFollowing'](),'children':_0x191140(0x184)})]});}function _0x319f1d(_0x5c844c){const _0xf09df4=_0x581f0c,{coordinator:_0x1bc6a8}=_0x5c844c;return _0x2be8ca['jsxs'](_0x2be8ca['Fragment'],{'children':[_0x2be8ca['jsx'](_0xf09df4(0x157),{'className':_0xf09df4(0x1db),'children':_0xf09df4(0x130)}),_0x2be8ca['jsx'](_0x5a8125[_0xf09df4(0x1b9)],{'variant':'default','onClick':()=>_0x1bc6a8[_0xf09df4(0x1b2)](),'children':_0xf09df4(0x190)})]});}function _0x33dd8e(){const _0x719b66=_0x581f0c;return _0x2be8ca[_0x719b66(0x158)](_0x2be8ca['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x33753e=Object['getOwnPropertyDescriptor'],_0x386b5b=(_0x259c11,_0xb9382d,_0x4bfd3a,_0x2bd582)=>{for(var _0x2503e5=_0x2bd582>0x1?void 0x0:_0x2bd582?_0x33753e(_0xb9382d,_0x4bfd3a):_0xb9382d,_0x4861b7=_0x259c11['length']-0x1,_0x4b4193;_0x4861b7>=0x0;_0x4861b7--)(_0x4b4193=_0x259c11[_0x4861b7])&&(_0x2503e5=_0x4b4193(_0x2503e5)||_0x2503e5);return _0x2503e5;},_0x280e3a=(_0x95ec21,_0x523949)=>(_0x3e58d4,_0x16b19c)=>_0x523949(_0x3e58d4,_0x16b19c,_0x95ec21);_0x3a76e2[_0x581f0c(0x1bd)]=class extends _0x236774[_0x581f0c(0x146)]{constructor(_0x493a38,_0x2940af){const _0x5073e7=_0x581f0c;super(),this[_0x5073e7(0x188)]=_0x493a38,this[_0x5073e7(0x107)]=_0x2940af,this[_0x5073e7(0x15a)]();}['_mountLiveShare'](){const _0x283d11=_0x581f0c;this[_0x283d11(0x1ae)](this[_0x283d11(0x107)][_0x283d11(0x172)](_0x2c8dd9['BuiltInUIPart'][_0x283d11(0x1cd)],()=>_0x2c8dd9[_0x283d11(0x144)](_0x124edd,this[_0x283d11(0x188)])));}},_0x3a76e2[_0x581f0c(0x1bd)]=_0x386b5b([_0x280e3a(0x0,_0x236774['Inject'](_0x236774['Injector'])),_0x280e3a(0x1,_0x2c8dd9['IUIPartsService'])],_0x3a76e2['DesktopLiveShareController']);const _0x5d96b9=_0x581f0c(0x14c),_0x518282={};var _0x5df39a=Object[_0x581f0c(0x1be)],_0x2aafd3=(_0x24e4b5,_0x3d3c9d,_0x1d13e8,_0x160665)=>{const _0x2bf6d7=_0x581f0c;for(var _0x5d1b63=_0x160665>0x1?void 0x0:_0x160665?_0x5df39a(_0x3d3c9d,_0x1d13e8):_0x3d3c9d,_0x21fd82=_0x24e4b5[_0x2bf6d7(0x1bf)]-0x1,_0x387e0b;_0x21fd82>=0x0;_0x21fd82--)(_0x387e0b=_0x24e4b5[_0x21fd82])&&(_0x5d1b63=_0x387e0b(_0x5d1b63)||_0x5d1b63);return _0x5d1b63;},_0x16cdfd=(_0xdbbae8,_0x17d69c)=>(_0x405ce3,_0x5158a7)=>_0x17d69c(_0x405ce3,_0x5158a7,_0xdbbae8);let _0x4b713a=class extends _0x236774[_0x581f0c(0x146)]{constructor(_0x41c284){const _0x2cc4cb=_0x581f0c;super(),this[_0x2cc4cb(0x15d)]=_0x41c284,this[_0x2cc4cb(0x135)]();}[_0x581f0c(0x135)](){const _0x1619bb=_0x581f0c;[_0x2d195e[_0x1619bb(0x1c6)]['id'],_0x2d195e[_0x1619bb(0x102)]['id'],_0x35849c[_0x1619bb(0xf9)]['id']]['forEach'](_0x302777=>{const _0x3862e2=_0x1619bb;this[_0x3862e2(0x1ae)](this['_liveShareService'][_0x3862e2(0x180)](_0x302777));});}};_0x4b713a=_0x2aafd3([_0x16cdfd(0x0,_0x236774[_0x581f0c(0x124)](_0x4f28ce))],_0x4b713a);var _0x320559=Object[_0x581f0c(0x177)],_0x44f016=Object[_0x581f0c(0x1be)],_0x9368b0=(_0x332c8f,_0x59e757,_0x2f6748)=>_0x59e757 in _0x332c8f?_0x320559(_0x332c8f,_0x59e757,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f6748}):_0x332c8f[_0x59e757]=_0x2f6748,_0x3ed954=(_0x4a04ef,_0x2f3803,_0x32fff0,_0x72e457)=>{const _0x5d2d3c=_0x581f0c;for(var _0x328f0c=_0x72e457>0x1?void 0x0:_0x72e457?_0x44f016(_0x2f3803,_0x32fff0):_0x2f3803,_0x8004d6=_0x4a04ef[_0x5d2d3c(0x1bf)]-0x1,_0x5fb60f;_0x8004d6>=0x0;_0x8004d6--)(_0x5fb60f=_0x4a04ef[_0x8004d6])&&(_0x328f0c=_0x5fb60f(_0x328f0c)||_0x328f0c);return _0x328f0c;},_0x56674d=(_0x3bfd51,_0x4f9182)=>(_0x130181,_0x5b0e53)=>_0x4f9182(_0x130181,_0x5b0e53,_0x3bfd51),_0x12db3d=(_0x158e34,_0x246c6a,_0x433d59)=>_0x9368b0(_0x158e34,typeof _0x246c6a!=_0x581f0c(0x174)?_0x246c6a+'':_0x246c6a,_0x433d59);const _0x4d24f6=_0x581f0c(0x118);_0x3a76e2[_0x581f0c(0x179)]=class extends _0x236774[_0x581f0c(0x1d0)]{constructor(_0x354d88=_0x518282,_0x531bef,_0x3ca641){const _0x5611ce=_0x581f0c;super(),this['_config']=_0x354d88,this[_0x5611ce(0x188)]=_0x531bef,this[_0x5611ce(0x126)]=_0x3ca641;const {..._0x26b94c}=_0x236774[_0x5611ce(0x16e)]({},_0x518282,this['_config']);this[_0x5611ce(0x126)]['setConfig'](_0x5d96b9,_0x26b94c);}[_0x581f0c(0x1da)](){const _0x3964fd=_0x581f0c;_0x236774[_0x3964fd(0x17b)](this['_injector'],_0x236774[_0x3964fd(0xf7)]([[_0x4f28ce],[_0x3a76e2[_0x3964fd(0x108)]],[_0x4b713a],[_0x3a76e2['DesktopLiveShareController']]],this[_0x3964fd(0x13f)]['override'])),_0x236774[_0x3964fd(0x175)](this[_0x3964fd(0x188)],[[_0x4b713a]]);}[_0x581f0c(0x151)](){const _0x9228b1=_0x581f0c;_0x236774[_0x9228b1(0x175)](this[_0x9228b1(0x188)],[[_0x3a76e2[_0x9228b1(0x1bd)]]]);}},_0x12db3d(_0x3a76e2['UniverLiveSharePlugin'],_0x581f0c(0x1a6),_0x236774[_0x581f0c(0x105)][_0x581f0c(0x103)]),_0x12db3d(_0x3a76e2[_0x581f0c(0x179)],_0x581f0c(0x195),_0x4d24f6),_0x3a76e2[_0x581f0c(0x179)]=_0x3ed954([_0x236774[_0x581f0c(0x138)](_0x172967[_0x581f0c(0x18f)]),_0x56674d(0x1,_0x236774['Inject'](_0x236774['Injector'])),_0x56674d(0x2,_0x236774['IConfigService'])],_0x3a76e2[_0x581f0c(0x179)]),_0x3a76e2[_0x581f0c(0x17a)]=_0x124edd,_0x3a76e2['LiveShareService']=_0x4f28ce,_0x3a76e2[_0x581f0c(0x19f)]=_0x39bb62,Object[_0x581f0c(0x177)](_0x3a76e2,Symbol[_0x581f0c(0x197)],{'value':'Module'});}));
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",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,13 +57,13 @@
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",
61
+ "@univerjs/core": "0.16.1",
62
+ "@univerjs-pro/collaboration-client": "0.16.1",
63
+ "@univerjs/design": "0.16.1",
64
+ "@univerjs/sheets": "0.16.1",
65
+ "@univerjs/sheets-ui": "0.16.1",
66
+ "@univerjs/ui": "0.16.1"
67
67
  },
68
68
  "devDependencies": {
69
69
  "postcss": "^8.5.6",
@@ -74,7 +74,7 @@
74
74
  "vite": "^7.3.1",
75
75
  "vitest": "^4.0.18",
76
76
  "@univerjs/protocol": "0.1.48",
77
- "@univerjs-infra/shared": "0.16.0"
77
+ "@univerjs-infra/shared": "0.16.1"
78
78
  },
79
79
  "scripts": {
80
80
  "test": "vitest run",