@univerjs-pro/collaboration-client-ui 0.8.2 → 0.8.3-nightly.202506271607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -0
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/ko-KR.d.ts +3 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -17
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x1a49(_0x28af10,_0x53801c){const _0x55d494=_0x55d4();return _0x1a49=function(_0x1a49fc,_0x27ef98){_0x1a49fc=_0x1a49fc-0x109;let _0x4f3d4e=_0x55d494[_0x1a49fc];return _0x4f3d4e;},_0x1a49(_0x28af10,_0x53801c);}function _0x55d4(){const _0x1f449a=['extend','682LvliQc','361428RzIUkh','get','495740aQwoSR','@univerjs-pro/collaboration-client-ui','_injector','5533662vxITzj','395843PqPEgB','18859680PKwPCd','runOnServer','FUniver','7197RuxGrm','1009547NpSCXH','@univerjs/core/facade'];_0x55d4=function(){return _0x1f449a;};return _0x55d4();}const _0x31a233=_0x1a49;(function(_0x1deae3,_0x37f940){const _0x503443=_0x1a49,_0x674155=_0x1deae3();while(!![]){try{const _0x3322c4=-parseInt(_0x503443(0x10f))/0x1+-parseInt(_0x503443(0x117))/0x2*(parseInt(_0x503443(0x113))/0x3)+parseInt(_0x503443(0x109))/0x4+parseInt(_0x503443(0x10b))/0x5+-parseInt(_0x503443(0x10e))/0x6+parseInt(_0x503443(0x114))/0x7+parseInt(_0x503443(0x110))/0x8;if(_0x3322c4===_0x37f940)break;else _0x674155['push'](_0x674155['shift']());}catch(_0x4e2cbf){_0x674155['push'](_0x674155['shift']());}}}(_0x55d4,0x877ff));const t=require(_0x31a233(0x10c)),e=require(_0x31a233(0x115));class c extends e[_0x31a233(0x112)]{['runOnServer'](_0x13fdaf,_0x316f07,..._0xcad609){const _0x3b3323=_0x31a233;return this[_0x3b3323(0x10d)][_0x3b3323(0x10a)](t['RemoteUniscriptService'])[_0x3b3323(0x111)](_0x13fdaf,_0x316f07,{},..._0xcad609);}}e[_0x31a233(0x112)][_0x31a233(0x116)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xe865d9=_0x3cdf;(function(_0xc0252c,_0x5eb75d){const _0xe9f964=_0x3cdf,_0x33d8c4=_0xc0252c();while(!![]){try{const _0x4d61da=parseInt(_0xe9f964(0x35b))/0x1*(-parseInt(_0xe9f964(0x1bc))/0x2)+parseInt(_0xe9f964(0x2ee))/0x3+parseInt(_0xe9f964(0x2ec))/0x4+parseInt(_0xe9f964(0x25d))/0x5*(-parseInt(_0xe9f964(0x123))/0x6)+-parseInt(_0xe9f964(0x1c7))/0x7*(-parseInt(_0xe9f964(0xf9))/0x8)+parseInt(_0xe9f964(0x29d))/0x9*(parseInt(_0xe9f964(0x21c))/0xa)+-parseInt(_0xe9f964(0x23c))/0xb*(parseInt(_0xe9f964(0xf6))/0xc);if(_0x4d61da===_0x5eb75d)break;else _0x33d8c4['push'](_0x33d8c4['shift']());}catch(_0x46b28b){_0x33d8c4['push'](_0x33d8c4['shift']());}}}(_0x3a4a,0x75c5f));var Ve=Object[_0xe865d9(0x307)],Xe=(_0xf8b1b2,_0x196baf,_0x29f70d)=>_0x196baf in _0xf8b1b2?Ve(_0xf8b1b2,_0x196baf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29f70d}):_0xf8b1b2[_0x196baf]=_0x29f70d,h=(_0x17aa9f,_0x1b9f85,_0x3facf3)=>Xe(_0x17aa9f,typeof _0x1b9f85!=_0xe865d9(0x2dc)?_0x1b9f85+'':_0x1b9f85,_0x3facf3);Object[_0xe865d9(0x307)](exports,Symbol[_0xe865d9(0x1d9)],{'value':_0xe865d9(0x2b1)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0xe865d9(0x2af)),p=require(_0xe865d9(0x154)),G=require(_0xe865d9(0x336)),E=require(_0xe865d9(0x2ab)),Ge=require('@univerjs/drawing'),d=require(_0xe865d9(0x1c2)),m=require(_0xe865d9(0x2e2)),Y=require(_0xe865d9(0x21f)),be=require(_0xe865d9(0x38a)),g=require(_0xe865d9(0x1a0)),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require(_0xe865d9(0x341)),O=require(_0xe865d9(0x31d)),D=require(_0xe865d9(0x315)),M=require('react'),Ke=require(_0xe865d9(0x1e1));var qe=Object[_0xe865d9(0x16f)],ze=(_0x3cdbfe,_0x4bc04d,_0x546ace,_0x52530e)=>{const _0xd1ef22=_0xe865d9;for(var _0x444885=_0x52530e>0x1?void 0x0:_0x52530e?qe(_0x4bc04d,_0x546ace):_0x4bc04d,_0x4bfad3=_0x3cdbfe[_0xd1ef22(0x314)]-0x1,_0x3b2a8d;_0x4bfad3>=0x0;_0x4bfad3--)(_0x3b2a8d=_0x3cdbfe[_0x4bfad3])&&(_0x444885=_0x3b2a8d(_0x444885)||_0x444885);return _0x444885;},Oe=(_0x1a4bdc,_0x4d78fe)=>(_0x190b8c,_0xf75c44)=>_0x4d78fe(_0x190b8c,_0xf75c44,_0x1a4bdc);let de=class extends a[_0xe865d9(0x24f)]{constructor(_0x1891bd,_0x1722cf){const _0xb0333f=_0xe865d9;super(),this[_0xb0333f(0x1f3)]=_0x1891bd,this['_imageIoService']=_0x1722cf,this[_0xb0333f(0x2a0)]();}[_0xe865d9(0x2a0)](){const _0x5eb570=_0xe865d9,_0x2bc337=this;this[_0x5eb570(0x11c)](this[_0x5eb570(0x1f3)][_0x5eb570(0x181)]({'onBeforePasteImage':async _0x4c63d2=>{const _0x52c417=_0x5eb570,_0x502ccf=await _0x2bc337[_0x52c417(0x208)][_0x52c417(0x1fa)](_0x4c63d2);return _0x502ccf?{'source':_0x502ccf[_0x52c417(0x298)],'imageSourceType':_0x502ccf[_0x52c417(0x289)]}:null;}}));}};de=ze([Oe(0x0,E[_0xe865d9(0x1dc)]),Oe(0x1,Ge[_0xe865d9(0x302)])],de);const Te=['purple.300','jiqing.500',_0xe865d9(0x149),_0xe865d9(0x328),_0xe865d9(0x236),_0xe865d9(0x312)];class me extends a[_0xe865d9(0x36c)]{constructor(){super(...arguments),h(this,'_assignedColors',new Map()),h(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x2c6a5e){const _0x1892f3=_0xe865d9;if(this[_0x1892f3(0x21b)][_0x1892f3(0x12e)](_0x2c6a5e))return this[_0x1892f3(0x21b)][_0x1892f3(0x1df)](_0x2c6a5e);const _0x5b1c3b=Te[this['_colorIndex']];return this[_0x1892f3(0x130)]=(this['_colorIndex']+0x1)%Te[_0x1892f3(0x314)],this[_0x1892f3(0x21b)][_0x1892f3(0x1c4)](_0x2c6a5e,_0x5b1c3b),_0x5b1c3b;}}function Pe(_0x4040bb){const _0xf48d05=_0xe865d9;let _0x3bfa3a='';for(const _0x148164 of _0x4040bb){const {startOffset:_0x548fc4,endOffset:_0xe961a1,isActive:_0x401fe4,rangeType:_0x2bed1b,segmentId:_0x37bbc0,segmentPage:_0x12731d}=_0x148164;_0x3bfa3a[_0xf48d05(0x314)]&&(_0x3bfa3a+=','),_0x3bfa3a+=_0x548fc4+':'+_0xe961a1+':'+(_0x401fe4?'1':'0')+':'+_0x2bed1b+':'+_0x37bbc0+':'+_0x12731d;}return _0x3bfa3a;}function Je(_0xdacfbb){const _0x3b2471=_0xe865d9,_0x2a4f2d=_0xdacfbb[_0x3b2471(0x2fc)](','),_0x5778bc=[];for(const _0x39d4d2 of _0x2a4f2d){const [_0x1c5e6c,_0x4fea14,_0x354a54,_0x33ff49,_0x5dca20,_0xbeed8b]=_0x39d4d2[_0x3b2471(0x2fc)](':');_0x5778bc[_0x3b2471(0x244)]({'startOffset':Number(_0x1c5e6c),'endOffset':Number(_0x4fea14),'collapsed':_0x1c5e6c===_0x4fea14,'isActive':_0x354a54==='1','rangeType':_0x33ff49===a['DOC_RANGE_TYPE'][_0x3b2471(0x2fe)]?a[_0x3b2471(0x331)][_0x3b2471(0x2fe)]:a[_0x3b2471(0x331)][_0x3b2471(0x109)],'segmentId':typeof _0x5dca20==_0x3b2471(0x290)?String(_0x5dca20):'','segmentPage':Number(_0xbeed8b!=null?_0xbeed8b:-0x1)});}return _0x5778bc[_0x3b2471(0x16b)](_0x2d82ae=>_0x2d82ae[_0x3b2471(0x1b6)])||(_0x5778bc[0x0][_0x3b2471(0x1b6)]=!0x0),_0x5778bc;}class Ce extends a[_0xe865d9(0x24f)]{constructor(){const _0x380987=_0xe865d9;super(...arguments),h(this,'_collabCursorState$',new d['BehaviorSubject'](null)),h(this,_0x380987(0x205),this[_0x380987(0x15b)][_0x380987(0x2f0)]());}[_0xe865d9(0x131)](_0x148187){const _0x15a572=_0xe865d9,{unitID:_0x302512,memberID:_0xa5b1c7,textRanges:_0x73f18d}=_0x148187,_0x5385a1=Pe(_0x73f18d);if(_0x5385a1==='')return;const _0x472892={'unitID':_0x302512,'memberID':_0xa5b1c7,'selection':_0x5385a1};this['_collabCursorState$'][_0x15a572(0x29b)](_0x472892);}}var Ze=Object[_0xe865d9(0x16f)],Qe=(_0x4cdb94,_0x4da394,_0x15a738,_0x561c3d)=>{const _0x4bacbb=_0xe865d9;for(var _0x581ca5=_0x561c3d>0x1?void 0x0:_0x561c3d?Ze(_0x4da394,_0x15a738):_0x4da394,_0x56b090=_0x4cdb94[_0x4bacbb(0x314)]-0x1,_0x1835cb;_0x56b090>=0x0;_0x56b090--)(_0x1835cb=_0x4cdb94[_0x56b090])&&(_0x581ca5=_0x1835cb(_0x581ca5)||_0x581ca5);return _0x581ca5;},L=(_0x464705,_0x39bcb7)=>(_0x217b5c,_0x542ca8)=>_0x39bcb7(_0x217b5c,_0x542ca8,_0x464705);const et=0x12c,tt=0x64;let Ie=class extends a[_0xe865d9(0x24f)]{constructor(_0x1a607e,_0x2ccfd1,_0x200123,_0x4cf95,_0x2a035d,_0x23cdc4,_0x5d275c,_0x19df88,_0x26d0da){const _0x58a3bc=_0xe865d9;super(),h(this,_0x58a3bc(0x256),!0x1),h(this,_0x58a3bc(0x2a0),!0x1),h(this,_0x58a3bc(0x233),new d[(_0x58a3bc(0x273))](new Map())),h(this,_0x58a3bc(0x14a),this[_0x58a3bc(0x233)]['asObservable']()),h(this,_0x58a3bc(0x2ea),new d['BehaviorSubject']([])),h(this,_0x58a3bc(0x24c),this[_0x58a3bc(0x2ea)][_0x58a3bc(0x333)](d['debounceTime'](et))),h(this,_0x58a3bc(0x186),a[_0x58a3bc(0x121)](_0x23fe84=>{const _0x5a8d1c=_0x58a3bc,_0x4147bd={'eventID':m[_0x5a8d1c(0x13e)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x5a8d1c(0x38f)],'memberID':this[_0x5a8d1c(0x31a)]['getMemberID'](),'selection':Pe(_0x23fe84)}};this[_0x5a8d1c(0x31a)][_0x5a8d1c(0x2eb)](_0x4147bd,this[_0x5a8d1c(0x38f)]);},tt)),(this[_0x58a3bc(0x38f)]=_0x1a607e,this['_session']=_0x2ccfd1,this[_0x58a3bc(0x280)]=_0x200123,this[_0x58a3bc(0x157)]=_0x4cf95,this[_0x58a3bc(0x1fc)]=_0x2a035d,this[_0x58a3bc(0x2fb)]=_0x23cdc4,this[_0x58a3bc(0x277)]=_0x5d275c,this['_univerInstanceService']=_0x19df88,this['_commandService']=_0x26d0da);}get[_0xe865d9(0x2e9)](){const _0x4218d8=_0xe865d9;return this[_0x4218d8(0x233)][_0x4218d8(0x2c5)]();}get[_0xe865d9(0x326)](){const _0x2d291b=_0xe865d9;return this[_0x2d291b(0x2ea)]['getValue']();}[_0xe865d9(0x370)](){const _0x4e83fb=_0xe865d9;super[_0x4e83fb(0x370)](),this[_0x4e83fb(0x233)][_0x4e83fb(0x29b)](new Map()),this[_0x4e83fb(0x233)][_0x4e83fb(0x2a5)](),this[_0x4e83fb(0x2ea)][_0x4e83fb(0x29b)]([]),this[_0x4e83fb(0x2ea)][_0x4e83fb(0x2a5)]();}[_0xe865d9(0x1ce)](){const _0x5a5901=_0xe865d9;this[_0x5a5901(0x2a0)]||(this[_0x5a5901(0x2a0)]=!0x0,this['_session'][_0x5a5901(0x18d)]['pipe'](d[_0x5a5901(0x17f)](this[_0x5a5901(0x2b8)]))[_0x5a5901(0x309)](_0x96cd2a=>{const _0x3a9bb3=_0x5a5901;_0x96cd2a===u[_0x3a9bb3(0xfe)][_0x3a9bb3(0x355)]?this[_0x3a9bb3(0x268)]():this[_0x3a9bb3(0x16d)]();}),this[_0x5a5901(0x31a)][_0x5a5901(0x2f4)]['pipe'](d[_0x5a5901(0x17f)](this[_0x5a5901(0x2b8)]))[_0x5a5901(0x309)](_0x2c82f8=>{const _0x4462be=_0x5a5901,_0x2eef1e=_0x2c82f8[_0x4462be(0x180)];_0x2eef1e===m[_0x4462be(0x13e)][_0x4462be(0x17b)]&&this[_0x4462be(0x32f)](_0x2c82f8),_0x2eef1e===m[_0x4462be(0x13e)][_0x4462be(0x165)]&&this[_0x4462be(0x2f8)](_0x2c82f8);}),this[_0x5a5901(0x11c)](this[_0x5a5901(0x100)][_0x5a5901(0x214)](_0x254326=>{const _0x13e7c5=_0x5a5901,_0x4cbb9d=_0x254326[_0x13e7c5(0x18f)];_0x4cbb9d!=null&&this[_0x13e7c5(0x256)]&&_0x254326['id']===Y[_0x13e7c5(0x1f1)]['id']&&_0x4cbb9d[_0x13e7c5(0x251)]===this[_0x13e7c5(0x38f)]&&_0x4cbb9d[_0x13e7c5(0x362)]===!0x1&&_0x4cbb9d[_0x13e7c5(0x385)]['length']>0x0&&this[_0x13e7c5(0x186)](_0x4cbb9d[_0x13e7c5(0x385)]);})),this[_0x5a5901(0x2fb)][_0x5a5901(0x205)][_0x5a5901(0x333)](d['takeUntil'](this[_0x5a5901(0x2b8)]))[_0x5a5901(0x309)](_0x4ffeb8=>{const _0x13c07b=_0x5a5901;if((_0x4ffeb8==null?void 0x0:_0x4ffeb8['unitID'])!==this['unitID'])return;const _0x351cdf={'eventID':m[_0x13c07b(0x13e)][_0x13c07b(0x17b)],'data':_0x4ffeb8};this[_0x13c07b(0x32f)](_0x351cdf);}),this[_0x5a5901(0x11c)](this['_commandService'][_0x5a5901(0x214)](_0x3a34a3=>{const _0x120c14=_0x5a5901;if(_0x3a34a3[_0x120c14(0x18f)]==null)return;const _0x1c2db3=_0x3a34a3['params'];if(_0x3a34a3['id']!==Y[_0x120c14(0x1d7)]['id']||_0x1c2db3[_0x120c14(0x251)]!==this[_0x120c14(0x38f)])return;const _0x53efea={'id':_0x120c14(0x1a3),'params':_0x1c2db3},_0x164cb3=this[_0x120c14(0x2e9)];for(const [_0xed1f00,_0x46c26f]of _0x164cb3){const _0x57bf20={'id':_0x120c14(0x1a3),'params':{'unitId':this[_0x120c14(0x38f)],'actions':null,'textRanges':_0x46c26f[_0x120c14(0x385)]}},_0x479592=this[_0x120c14(0x277)]['transformMutation'](_0x53efea,_0x57bf20,!0x1);if(m['isTransformMutationFailure'](_0x479592))throw _0x479592[_0x120c14(0x2a7)];_0x164cb3[_0x120c14(0x1c4)](_0xed1f00,{..._0x46c26f,'ranges':_0x479592[_0x120c14(0x160)]['params'][_0x120c14(0x1b9)]});}queueMicrotask(()=>{const _0x3e16d9=_0x120c14;this[_0x3e16d9(0x233)][_0x3e16d9(0x29b)](_0x164cb3);});})));}['_onCursorUpdate'](_0x250c7c){const _0x4a0100=_0xe865d9;var _0x4e619b,_0x1197b4;const {memberID:_0xb986db,selection:_0x26476b}=_0x250c7c[_0x4a0100(0xfd)],_0x2a3568=Je(_0x26476b),_0x17a4fd=(_0x1197b4=(_0x4e619b=this[_0x4a0100(0x1fc)][_0x4a0100(0x2c7)](this['unitID'],_0xb986db))==null?void 0x0:_0x4e619b[_0x4a0100(0x297)])!=null?_0x1197b4:'Unknown\x20user',_0x2d211e={'color':this[_0x4a0100(0x157)][_0x4a0100(0x12d)](_0xb986db),'name':_0x17a4fd,'ranges':_0x2a3568},_0x3b354a=this['cursorInfo'];_0x3b354a[_0x4a0100(0x1c4)](_0xb986db,_0x2d211e),this['_cursorInfo$'][_0x4a0100(0x29b)](_0x3b354a);}[_0xe865d9(0x2f8)](_0x4fbe0c){const _0x15d083=_0xe865d9,{memberID:_0x4037e9}=_0x4fbe0c[_0x15d083(0xfd)],_0x1ac062=this[_0x15d083(0x2e9)];_0x1ac062[_0x15d083(0x361)](_0x4037e9),this[_0x15d083(0x233)][_0x15d083(0x29b)](_0x1ac062);}['_toggleOnline'](){const _0x4b5dc4=_0xe865d9;var _0x1c6ac2;if(this[_0x4b5dc4(0x256)]=!0x0,((_0x1c6ac2=this[_0x4b5dc4(0x390)]['getFocusedUnit']())==null?void 0x0:_0x1c6ac2['getUnitId']())!==this[_0x4b5dc4(0x38f)])return;const _0x1a33d0=this[_0x4b5dc4(0x280)]['get'](Y[_0x4b5dc4(0x161)])[_0x4b5dc4(0x203)]();Array['isArray'](_0x1a33d0)&&_0x1a33d0[_0x4b5dc4(0x314)]>0x0&&this[_0x4b5dc4(0x186)](_0x1a33d0);}['_toggleOffline'](){const _0x21287c=_0xe865d9;this[_0x21287c(0x256)]=!0x1;}};Ie=Qe([L(0x2,a[_0xe865d9(0x2d0)](a['Injector'])),L(0x3,a[_0xe865d9(0x2d0)](me)),L(0x4,a['Inject'](u[_0xe865d9(0x313)])),L(0x5,a[_0xe865d9(0x2d0)](Ce)),L(0x6,m[_0xe865d9(0x11b)]),L(0x7,a[_0xe865d9(0x183)]),L(0x8,a['ICommandService'])],Ie);var st=Object[_0xe865d9(0x16f)],it=(_0x46e63a,_0x157e72,_0x20b2f0,_0x255eef)=>{const _0x391f6e=_0xe865d9;for(var _0x187b26=_0x255eef>0x1?void 0x0:_0x255eef?st(_0x157e72,_0x20b2f0):_0x157e72,_0x22af88=_0x46e63a[_0x391f6e(0x314)]-0x1,_0x580038;_0x22af88>=0x0;_0x22af88--)(_0x580038=_0x46e63a[_0x22af88])&&(_0x187b26=_0x580038(_0x187b26)||_0x187b26);return _0x187b26;},A=(_0x8f16f,_0x4e890a)=>(_0x5482b6,_0xcf6bfc)=>_0x4e890a(_0x5482b6,_0xcf6bfc,_0x8f16f);const nt=0x12c,rt=0x64,ot=()=>{let _0x1e8199=[],_0x43601b=!0x1;return _0x33785b=>{const _0x3cb713=_0x3cdf;_0x1e8199[_0x3cb713(0x244)](_0x33785b),_0x43601b||(_0x43601b=!0x0,setTimeout(()=>{_0x1e8199['forEach'](_0x331642=>_0x331642()),_0x1e8199=[],_0x43601b=!0x1;}));};};let Se=class extends a[_0xe865d9(0x24f)]{constructor(_0x29ed1a,_0x31dad2,_0x48f95b,_0x1cad0a,_0x5e2de5,_0x3894dd,_0x79feef,_0x416344){const _0xd39f5d=_0xe865d9;super(),h(this,_0xd39f5d(0x256),!0x1),h(this,_0xd39f5d(0x2a0),!0x1),h(this,_0xd39f5d(0x233),new d[(_0xd39f5d(0x273))](new Map())),h(this,_0xd39f5d(0x14a),this[_0xd39f5d(0x233)][_0xd39f5d(0x2f0)]()),h(this,_0xd39f5d(0x2ea),new d[(_0xd39f5d(0x273))]([])),h(this,_0xd39f5d(0x24c),this[_0xd39f5d(0x2ea)]['pipe'](d[_0xd39f5d(0x169)](nt))),h(this,_0xd39f5d(0x186),a['debounce']((_0x5952d3,_0x1dc7ca)=>{const _0x449973=_0xd39f5d,_0x5cf719={'eventID':m[_0x449973(0x13e)][_0x449973(0x17b)],'data':{'unitID':this[_0x449973(0x38f)],'memberID':this[_0x449973(0x31a)][_0x449973(0x2ad)](),'selection':be[_0x449973(0x2a6)](_0x5952d3,_0x1dc7ca[_0x449973(0xfb)])}};this['_session']['send'](_0x5cf719,this['unitID']);},rt)),(this[_0xd39f5d(0x38f)]=_0x29ed1a,this['_session']=_0x31dad2,this[_0xd39f5d(0x280)]=_0x48f95b,this[_0xd39f5d(0x157)]=_0x1cad0a,this[_0xd39f5d(0x1fc)]=_0x5e2de5,this['_univerInstanceService']=_0x3894dd,this['_commandService']=_0x79feef,this['_refRangeService']=_0x416344);}get[_0xe865d9(0x2e9)](){const _0x3ceaf5=_0xe865d9;return this[_0x3ceaf5(0x233)][_0x3ceaf5(0x2c5)]();}get[_0xe865d9(0x326)](){return this['_roomMembers$']['getValue']();}[_0xe865d9(0x370)](){const _0x3bd1cc=_0xe865d9;super[_0x3bd1cc(0x370)](),this[_0x3bd1cc(0x233)]['next'](new Map()),this[_0x3bd1cc(0x233)][_0x3bd1cc(0x2a5)](),this[_0x3bd1cc(0x2ea)]['next']([]),this[_0x3bd1cc(0x2ea)]['complete']();}['init'](){const _0xf359f=_0xe865d9;this[_0xf359f(0x2a0)]||(this[_0xf359f(0x2a0)]=!0x0,this['_session'][_0xf359f(0x18d)]['pipe'](d[_0xf359f(0x17f)](this[_0xf359f(0x2b8)]))['subscribe'](_0x219aeb=>{const _0x41db1d=_0xf359f;_0x219aeb===u[_0x41db1d(0xfe)]['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this[_0xf359f(0x31a)][_0xf359f(0x2f4)][_0xf359f(0x333)](d['takeUntil'](this[_0xf359f(0x2b8)]))[_0xf359f(0x309)](_0x16a2a2=>{const _0x8f324d=_0xf359f,_0x5bc332=_0x16a2a2[_0x8f324d(0x180)];_0x5bc332===m[_0x8f324d(0x13e)][_0x8f324d(0x17b)]&&this['_onCursorUpdate'](_0x16a2a2),_0x5bc332===m[_0x8f324d(0x13e)]['USERS_LEAVE']&&this[_0x8f324d(0x2f8)](_0x16a2a2);}),this[_0xf359f(0x2c4)](),this[_0xf359f(0x11c)](this[_0xf359f(0x100)][_0xf359f(0x214)](_0x100b60=>{const _0x5421c9=_0xf359f;if(this[_0x5421c9(0x256)]&&_0x100b60['id']===g[_0x5421c9(0x1a4)]['id']&&_0x100b60[_0x5421c9(0x18f)][_0x5421c9(0x251)]===this[_0x5421c9(0x38f)]){const _0x1cefd3=_0x100b60[_0x5421c9(0x18f)];this['_updateLocalCursor'](_0x1cefd3['subUnitId'],_0x1cefd3['selections'][0x0]);}})));}[_0xe865d9(0x32f)](_0xcb3cab){const _0x33faaa=_0xe865d9;var _0x11af4f,_0x1974d0;const {memberID:_0x11339e,selection:_0x1910a2}=_0xcb3cab[_0x33faaa(0xfd)],{sheetName:_0x203072,range:_0x11ccea}=be[_0x33faaa(0x369)](_0x1910a2),_0xad19d6={'name':(_0x1974d0=(_0x11af4f=this[_0x33faaa(0x1fc)][_0x33faaa(0x2c7)](this['unitID'],_0x11339e))==null?void 0x0:_0x11af4f[_0x33faaa(0x297)])!=null?_0x1974d0:_0x33faaa(0x304),'range':this['_getMergeRange'](_0x203072,_0x11ccea),'sheetID':_0x203072,'color':this[_0x33faaa(0x157)][_0x33faaa(0x12d)](_0x11339e),'selection':_0x1910a2},_0x42c843=this[_0x33faaa(0x2e9)];_0x42c843[_0x33faaa(0x1c4)](_0x11339e,_0xad19d6),this[_0x33faaa(0x233)][_0x33faaa(0x29b)](_0x42c843);}['_onCursorDelete'](_0x23b57b){const _0xa1289d=_0xe865d9,{memberID:_0x59ab94}=_0x23b57b[_0xa1289d(0xfd)],_0x414815=this[_0xa1289d(0x2e9)];_0x414815[_0xa1289d(0x361)](_0x59ab94),this[_0xa1289d(0x233)][_0xa1289d(0x29b)](_0x414815);}[_0xe865d9(0x377)](_0x96b241,_0x3621b8){const _0x406f45=_0xe865d9;var _0x45220a,_0x30c0c9;const _0x1903aa=(_0x30c0c9=(_0x45220a=this['_univerInstanceService'][_0x406f45(0x2a9)](this[_0x406f45(0x38f)]))==null?void 0x0:_0x45220a[_0x406f45(0x391)](_0x96b241))==null?void 0x0:_0x30c0c9[_0x406f45(0x250)]();return(_0x1903aa==null?void 0x0:_0x1903aa[_0x406f45(0x135)](_0x14014d=>a[_0x406f45(0x114)][_0x406f45(0x261)](_0x14014d,_0x3621b8)))||_0x3621b8;}[_0xe865d9(0x2c4)](){const _0x48af2e=_0xe865d9,_0x51fab5=new a[(_0x48af2e(0x2f3))](),_0x40dd82=ot(),_0x396246=()=>{const _0x45006d=_0x48af2e;_0x51fab5['dispose']();const _0x43821b=(_0x35e856,_0xb2d89a,_0x24ca17,_0x377193)=>{const _0x2fa9b5=_0x3cdf;let _0x5a4d1a=[];switch(_0x35e856['id']){case g[_0x2fa9b5(0x17c)][_0x2fa9b5(0x2f2)]:{_0x5a4d1a=g[_0x2fa9b5(0x257)](_0x35e856,_0x377193);break;}case g['EffectRefRangId'][_0x2fa9b5(0x113)]:{_0x5a4d1a=g[_0x2fa9b5(0x1cc)](_0x35e856,_0x377193);break;}case g[_0x2fa9b5(0x17c)]['InsertColCommandId']:{_0x5a4d1a=g[_0x2fa9b5(0x29c)](_0x35e856,_0x377193);break;}case g[_0x2fa9b5(0x17c)][_0x2fa9b5(0x33f)]:{_0x5a4d1a=g[_0x2fa9b5(0x2db)](_0x35e856,_0x377193);break;}case g[_0x2fa9b5(0x17c)][_0x2fa9b5(0x193)]:{_0x5a4d1a=g['handleInsertRangeMoveRight'](_0x35e856,_0x377193);break;}case g[_0x2fa9b5(0x17c)][_0x2fa9b5(0x2e7)]:{_0x5a4d1a=g[_0x2fa9b5(0x145)](_0x35e856,_0x377193);break;}case g[_0x2fa9b5(0x17c)][_0x2fa9b5(0x1b8)]:{_0x5a4d1a=g[_0x2fa9b5(0x2b7)](_0x35e856,_0x377193);break;}case g[_0x2fa9b5(0x17c)][_0x2fa9b5(0x320)]:{_0x5a4d1a=g[_0x2fa9b5(0x2f7)](_0x35e856,_0x377193);break;}case g[_0x2fa9b5(0x17c)][_0x2fa9b5(0x35c)]:{_0x5a4d1a=g[_0x2fa9b5(0x22c)](_0x35e856,_0x377193);break;}}const _0x216840=g[_0x2fa9b5(0x37f)](_0x5a4d1a,_0x377193),_0x45f8e0=this['cursorInfo']['get'](_0xb2d89a);if(_0x45f8e0&&_0x216840){const _0xa93de2={..._0x45f8e0,'range':_0x216840};this[_0x2fa9b5(0x2e9)][_0x2fa9b5(0x1c4)](_0xb2d89a,_0xa93de2),_0x40dd82(()=>{const _0x2d97bc=_0x2fa9b5,_0x1da5fc=this[_0x2d97bc(0x17d)][_0x2d97bc(0x294)](_0x216840,_0x4a2e8a=>(_0x1da5fc[_0x2d97bc(0x370)](),_0x43821b(_0x4a2e8a,_0xb2d89a,_0x24ca17,_0x216840)));_0x51fab5[_0x2d97bc(0x20a)](_0x1da5fc);});}return{'redos':[],'undos':[]};};this[_0x45006d(0x2e9)][_0x45006d(0x284)]((_0x56e2fc,_0x191569)=>{const _0xda9257=_0x45006d,{range:_0x26745e,sheetID:_0x2e5424}=_0x56e2fc,_0x2776d6=this['_refRangeService'][_0xda9257(0x294)](_0x26745e,_0x5bb73a=>(_0x2776d6['dispose'](),_0x43821b(_0x5bb73a,_0x191569,_0x2e5424,_0x26745e)));_0x51fab5[_0xda9257(0x20a)](_0x2776d6);});};this['disposeWithMe'](a[_0x48af2e(0x335)](this[_0x48af2e(0x233)][_0x48af2e(0x309)](()=>{_0x396246();})));}[_0xe865d9(0x268)](){const _0x466d6c=_0xe865d9;var _0x2be037,_0x3067b4;if(this[_0x466d6c(0x256)]=!0x0,((_0x2be037=this[_0x466d6c(0x390)][_0x466d6c(0x25b)]())==null?void 0x0:_0x2be037[_0x466d6c(0x2c9)]())!==this[_0x466d6c(0x38f)])return;const _0x2346ea=(_0x3067b4=this[_0x466d6c(0x280)][_0x466d6c(0x1df)](g[_0x466d6c(0x1a7)])[_0x466d6c(0x300)]())==null?void 0x0:_0x3067b4[0x0],_0x55220d=this[_0x466d6c(0x390)][_0x466d6c(0x1ea)](a['UniverInstanceType'][_0x466d6c(0x1f9)])[_0x466d6c(0x36a)]();_0x2346ea&&_0x55220d&&this['_updateLocalCursor'](_0x55220d[_0x466d6c(0x397)](),_0x2346ea);}[_0xe865d9(0x16d)](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0xe865d9(0x2d0)](a[_0xe865d9(0x33d)])),A(0x3,a['Inject'](me)),A(0x4,a[_0xe865d9(0x2d0)](u['MemberService'])),A(0x5,a['IUniverInstanceService']),A(0x6,a['ICommandService']),A(0x7,a[_0xe865d9(0x2d0)](g[_0xe865d9(0x1fd)]))],Se);var at=Object[_0xe865d9(0x16f)],ct=(_0x200a58,_0x1716db,_0x4e7b3d,_0x277986)=>{const _0x1e4748=_0xe865d9;for(var _0x3c92c7=_0x277986>0x1?void 0x0:_0x277986?at(_0x1716db,_0x4e7b3d):_0x1716db,_0x374d26=_0x200a58[_0x1e4748(0x314)]-0x1,_0x583c72;_0x374d26>=0x0;_0x374d26--)(_0x583c72=_0x200a58[_0x374d26])&&(_0x3c92c7=_0x583c72(_0x3c92c7)||_0x3c92c7);return _0x3c92c7;},ie=(_0x28fa6f,_0x101770)=>(_0x2ee06f,_0x37a2f0)=>_0x101770(_0x2ee06f,_0x37a2f0,_0x28fa6f);let x=class extends a[_0xe865d9(0x24f)]{constructor(_0xc54763,_0x564bc2,_0x4389f0){const _0x32bd08=_0xe865d9;super(),h(this,'_entities',new Map()),h(this,_0x32bd08(0x36b),new d[(_0x32bd08(0x1d6))]()),(this[_0x32bd08(0x390)]=_0xc54763,this['_injector']=_0x564bc2,this[_0x32bd08(0x32a)]=_0x4389f0,this[_0x32bd08(0x2a0)]());}['dispose'](){const _0x5eda2c=_0xe865d9;super['dispose'](),this['_entityInit$'][_0x5eda2c(0x2a5)](),this[_0x5eda2c(0x2d3)][_0x5eda2c(0x284)](_0x575c5d=>_0x575c5d[_0x5eda2c(0x370)]());}[_0xe865d9(0x2c0)](_0x48581d){const _0x10f555=_0xe865d9;return this['_entities'][_0x10f555(0x12e)](_0x48581d)?this['_entities'][_0x10f555(0x1df)](_0x48581d)[_0x10f555(0x14a)]:this['_entityInit$'][_0x10f555(0x333)](d[_0x10f555(0x138)](_0x1653b2=>_0x1653b2['unitID']===_0x48581d),d['switchMap'](_0x2cf522=>_0x2cf522[_0x10f555(0x14a)]));}[_0xe865d9(0x2a0)](){const _0x16f600=_0xe865d9;this[_0x16f600(0x390)][_0x16f600(0x170)](a[_0x16f600(0x13b)][_0x16f600(0x1f9)])[_0x16f600(0x333)](d[_0x16f600(0x17f)](this[_0x16f600(0x2b8)]))[_0x16f600(0x309)](async _0x4b50d9=>{const _0x4dde6c=_0x16f600,_0x3aeec0=_0x4b50d9[_0x4dde6c(0x2c9)](),_0x133236=await this[_0x4dde6c(0x32e)](_0x3aeec0);this[_0x4dde6c(0x36b)][_0x4dde6c(0x29b)](_0x133236),this[_0x4dde6c(0x2d3)][_0x4dde6c(0x1c4)](_0x3aeec0,_0x133236);}),this['_univerInstanceService'][_0x16f600(0x170)](a[_0x16f600(0x13b)][_0x16f600(0x150)])[_0x16f600(0x333)](d[_0x16f600(0x17f)](this[_0x16f600(0x2b8)]))[_0x16f600(0x333)](d[_0x16f600(0x138)](_0x1879da=>!_0x1879da['getUnitId']()['startsWith']('__')))[_0x16f600(0x309)](async _0x522d58=>{const _0xc8f9de=_0x16f600,_0xad4dfe=_0x522d58[_0xc8f9de(0x2c9)](),_0x455e80=await this[_0xc8f9de(0x344)](_0xad4dfe);this['_entityInit$'][_0xc8f9de(0x29b)](_0x455e80),this[_0xc8f9de(0x2d3)][_0xc8f9de(0x1c4)](_0xad4dfe,_0x455e80);}),d[_0x16f600(0x2f5)](this[_0x16f600(0x390)][_0x16f600(0x2e5)](a[_0x16f600(0x13b)][_0x16f600(0x150)]),this[_0x16f600(0x390)][_0x16f600(0x2e5)](a[_0x16f600(0x13b)][_0x16f600(0x1f9)]))[_0x16f600(0x333)](d['takeUntil'](this[_0x16f600(0x2b8)]))[_0x16f600(0x309)](_0x51fb2f=>{const _0x545d4c=_0x16f600,_0x2a8791=_0x51fb2f['getUnitId'](),_0xb475d9=this[_0x545d4c(0x2d3)]['get'](_0x2a8791);_0xb475d9&&(_0xb475d9[_0x545d4c(0x370)](),this[_0x545d4c(0x2d3)][_0x545d4c(0x361)](_0x2a8791));});}async['_startSheetCollabCursor'](_0x1977c1){const _0x32a804=_0xe865d9,_0x1a51c0=await this[_0x32a804(0x32a)][_0x32a804(0x327)](_0x1977c1),_0x34f7fe=this[_0x32a804(0x280)]['createInstance'](Se,_0x1977c1,_0x1a51c0);return _0x34f7fe[_0x32a804(0x1ce)](),_0x34f7fe;}async[_0xe865d9(0x344)](_0x4ec4d6){const _0x8da75a=_0xe865d9,_0x554fc1=await this[_0x8da75a(0x32a)]['requireSession'](_0x4ec4d6),_0x5e7ed4=this[_0x8da75a(0x280)][_0x8da75a(0x1be)](Ie,_0x4ec4d6,_0x554fc1);return _0x5e7ed4[_0x8da75a(0x1ce)](),_0x5e7ed4;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0xe865d9(0x2d0)](a[_0xe865d9(0x33d)])),ie(0x2,a[_0xe865d9(0x2d0)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x2d6842,_0x450526){const _0x471870=_0xe865d9;let {radius:_0x4497ec,width:_0x26eeb8,height:_0x49765d}=_0x450526;_0x4497ec=_0x4497ec!=null?_0x4497ec:0x0,_0x26eeb8=_0x26eeb8!=null?_0x26eeb8:0x1e,_0x49765d=_0x49765d!=null?_0x49765d:0x1e;let _0x5dfdca=0x0,_0x292279=0x0,_0x266a91=0x0;_0x5dfdca=_0x292279=_0x266a91=Math['min'](_0x4497ec,_0x26eeb8/0x2,_0x49765d/0x2),_0x2d6842[_0x471870(0x27d)](),_0x2d6842[_0x471870(0x18b)](_0x5dfdca,0x0),_0x2d6842['lineTo'](_0x26eeb8-_0x292279,0x0),_0x2d6842[_0x471870(0x360)](_0x26eeb8-_0x292279,_0x292279,_0x292279,Math['PI']*0x3/0x2,0x0,!0x1),_0x2d6842[_0x471870(0x2b9)](_0x26eeb8,_0x49765d-_0x266a91),_0x2d6842['arc'](_0x26eeb8-_0x266a91,_0x49765d-_0x266a91,_0x266a91,0x0,Math['PI']/0x2,!0x1),_0x2d6842[_0x471870(0x2b9)](0x0,_0x49765d),_0x2d6842[_0x471870(0x2b9)](0x0,_0x5dfdca),_0x2d6842['arc'](_0x5dfdca,_0x5dfdca,_0x5dfdca,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2d6842[_0x471870(0x37e)](),_0x450526[_0x471870(0x1d1)]&&(_0x2d6842[_0x471870(0x248)](),_0x2d6842[_0x471870(0x394)]=_0x450526['fill'],_0x450526[_0x471870(0x2df)]===_0x471870(0x305)?_0x2d6842[_0x471870(0x1d1)]('evenodd'):_0x2d6842[_0x471870(0x1d1)](),_0x2d6842[_0x471870(0x31f)]());}class ee extends p[_0xe865d9(0x2c3)]{constructor(_0x59cc93,_0x601caf){const _0x20feb8=_0xe865d9;super(_0x59cc93,_0x601caf),h(this,_0x20feb8(0x164)),h(this,'text'),(this['color']=_0x601caf==null?void 0x0:_0x601caf[_0x20feb8(0x164)],this['text']=_0x601caf==null?void 0x0:_0x601caf[_0x20feb8(0x2e0)]);}static[_0xe865d9(0x27e)](_0x2ddc57,_0xb0f505){const _0x398bfa=_0xe865d9,{text:_0x409f86,color:_0x40359b}=_0xb0f505;_0x2ddc57['save'](),_0x2ddc57[_0x398bfa(0x299)]=_0x398bfa(0x218);const _0x5bd638=_0x2ddc57[_0x398bfa(0x2b5)](_0x409f86)[_0x398bfa(0x30e)],_0x203237=Math[_0x398bfa(0x2de)](_0x5bd638+0x2*ne,Re);_t(_0x2ddc57,{'height':K,'radius':0x4,'width':_0x203237,'fill':_0x40359b}),_0x2ddc57[_0x398bfa(0x394)]=_0x398bfa(0xfa);const _0x31901f=ne,_0x2cb03d=K-lt,_0x5423c2=Re-0x2*ne;if(_0x5bd638>_0x5423c2){let _0x24bada='',_0x553628=0x0;for(const _0x53d02e of _0x409f86){const _0x2dfad8=_0x2ddc57['measureText'](_0x53d02e)['width'];if(_0x553628+_0x2dfad8<=_0x5423c2-_0x2ddc57[_0x398bfa(0x2b5)](_0x398bfa(0x226))[_0x398bfa(0x30e)])_0x24bada+=_0x53d02e,_0x553628+=_0x2dfad8;else{_0x24bada+=_0x398bfa(0x226);break;}}_0x2ddc57[_0x398bfa(0x30c)](_0x24bada,_0x31901f,_0x2cb03d);}else _0x2ddc57['fillText'](_0x409f86,_0x31901f,_0x2cb03d);_0x2ddc57[_0x398bfa(0x31f)]();}[_0xe865d9(0x392)](_0x4a8a44){ee['drawWith'](_0x4a8a44,this);}}const re=_0xe865d9(0x177),ht='collab-text-range-',ut=_0xe865d9(0x26b),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0xe865d9(0x287);class De{constructor(_0x18c17c,_0x505dcb,_0x59097a,_0x16f677){const _0x1092e1=_0xe865d9;h(this,_0x1092e1(0x288),[]),h(this,_0x1092e1(0x10c),null),h(this,'_textBubble',null),h(this,'_anchorDot',null),h(this,_0x1092e1(0x117),null),h(this,_0x1092e1(0x272),null),(this['_cursor']=_0x18c17c,this['_scene']=_0x505dcb,this['_docSkeleton']=_0x59097a,this[_0x1092e1(0x15f)]=_0x16f677,this[_0x1092e1(0x242)]());}set[_0xe865d9(0x2fd)](_0x2f6682){const _0x16a595=_0xe865d9;_0x2f6682?(this['_anchorDot']&&this['_anchorDot'][_0x16a595(0x23e)](),this[_0x16a595(0x367)]&&this[_0x16a595(0x367)][_0x16a595(0x2d5)]()):(this[_0x16a595(0x28c)]&&this[_0x16a595(0x28c)][_0x16a595(0x2d5)](),this[_0x16a595(0x367)]&&this['_textBubble'][_0x16a595(0x23e)]());}['dispose'](){const _0x164509=_0xe865d9;for(const _0x160e93 of this[_0x164509(0x288)])_0x160e93[_0x164509(0x370)]();this[_0x164509(0x367)]&&this[_0x164509(0x367)][_0x164509(0x370)](),this['_anchorDot']&&this[_0x164509(0x28c)]['dispose'](),this[_0x164509(0x10c)]&&this[_0x164509(0x10c)]['dispose'](),this[_0x164509(0x272)]&&this[_0x164509(0x272)]();}[_0xe865d9(0x242)](){const _0x2e4804=_0xe865d9;var _0x444ac8;const {_docSkeleton:_0x4c810f,_document:_0x279f0d}=this,{color:_0x183428,name:_0x6565ab,ranges:_0x10388f}=this[_0x2e4804(0x22f)],_0x74b1=_0x279f0d[_0x2e4804(0x330)](),{docsLeft:_0x2385b1,docsTop:_0x399e30}=_0x74b1,_0x38cf27=new E[(_0x2e4804(0x345))](_0x74b1,_0x4c810f);for(const {startOffset:_0x3c85cd,endOffset:_0x425bf7,rangeType:_0x2151fd,segmentId:_0x6a72a1,segmentPage:_0x11f4ed,collapsed:_0x1b690f,isActive:_0x382b7a}of _0x10388f){const _0x56bfb7=_0x4c810f[_0x2e4804(0x13d)](_0x3c85cd,!0x0,_0x6a72a1,_0x11f4ed);let _0x3f0c8a=_0x4c810f[_0x2e4804(0x13d)](_0x425bf7,!0x0,_0x6a72a1,_0x11f4ed);if(_0x3f0c8a==null&&(_0x3f0c8a=_0x4c810f[_0x2e4804(0x13d)](_0x425bf7-0x1,!0x1,_0x6a72a1,_0x11f4ed)),_0x382b7a){const {contentBoxPointGroup:_0x36e1be}=_0x38cf27[_0x2e4804(0xf7)](_0x3f0c8a,_0x3f0c8a);if(_0x36e1be[_0x2e4804(0x314)]===0x0)continue;this[_0x2e4804(0x220)](_0x183428,_0x36e1be,_0x2385b1,_0x399e30,_0x6565ab),this[_0x2e4804(0x272)]=this[_0x2e4804(0x192)]();}if(_0x56bfb7&&_0x3f0c8a){if(_0x2151fd===a['DOC_RANGE_TYPE'][_0x2e4804(0x109)]){const _0x2376d6=new E[(_0x2e4804(0x107))](_0x74b1,_0x4c810f),{pointGroup:_0x295e7b}=(_0x444ac8=_0x2376d6[_0x2e4804(0xf7)](_0x56bfb7,_0x3f0c8a))!=null?_0x444ac8:{};if(_0x295e7b==null||_0x295e7b[_0x2e4804(0x314)]===0x0)continue;this[_0x2e4804(0x38e)](_0x183428,_0x295e7b,_0x2385b1,_0x399e30);}else{if(!_0x1b690f){const {borderBoxPointGroup:_0x47326f}=_0x38cf27['getRangePointData'](_0x56bfb7,_0x3f0c8a);if(_0x47326f[_0x2e4804(0x314)]===0x0)continue;this[_0x2e4804(0x30b)](_0x183428,_0x47326f,_0x2385b1,_0x399e30);}}}}}[_0xe865d9(0x220)](_0x5eb2fc,_0x145ab6,_0x46ccbe,_0x2c135a,_0x4c1052){const _0x67ec09=_0xe865d9,_0x22dd0c=this[_0x67ec09(0x378)](_0x145ab6),{left:_0x760759,top:_0x96f205,height:_0x443f82}=_0x22dd0c,_0x25f02d=this[_0x67ec09(0x2a2)](),_0x4b9ba7=It/_0x25f02d,_0xff5eb0=new p[(_0x67ec09(0x28a))](re+a[_0x67ec09(0x1c5)][_0x67ec09(0x239)](k),{'left':_0x760759+_0x46ccbe-_0x4b9ba7,'top':_0x96f205+_0x2c135a,'height':_0x443f82,'width':dt,'fill':_0x5eb2fc||p[_0x67ec09(0x147)](a[_0x67ec09(0x196)]['black'],0x0),'strokeWidth':_0x4b9ba7,'stroke':St,'evented':!0x0});this[_0x67ec09(0x10c)]=_0xff5eb0,this[_0x67ec09(0x20b)][_0x67ec09(0x316)](_0xff5eb0,E[_0x67ec09(0x10f)]);const _0x366b12=new p['Rect'](re+a[_0x67ec09(0x1c5)][_0x67ec09(0x239)](k),{'left':_0x760759+_0x46ccbe-_0x4b9ba7,'top':_0x96f205+_0x2c135a-oe/0x2,'height':oe,'width':oe,'fill':_0x5eb2fc||p[_0x67ec09(0x147)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x5eb2fc||p[_0x67ec09(0x147)](a['COLORS']['black'],0x0),'evented':!0x1});this[_0x67ec09(0x28c)]=_0x366b12,this[_0x67ec09(0x20b)][_0x67ec09(0x316)](_0x366b12,E[_0x67ec09(0x10f)]);const _0x4b93bb=new ee(re+a[_0x67ec09(0x1c5)]['generateRandomId'](k),{'left':_0x760759+_0x46ccbe-_0x4b9ba7,'top':_0x96f205+_0x2c135a-K,'text':_0x4c1052,'color':_0x5eb2fc});this[_0x67ec09(0x367)]=_0x4b93bb,this['_scene'][_0x67ec09(0x316)](_0x4b93bb,E['TEXT_RANGE_LAYER_INDEX']),this[_0x67ec09(0x2fd)]=!0x1;}[_0xe865d9(0x192)](){const _0xf489c5=_0xe865d9,_0x13b2ea=this['_anchor'][_0xf489c5(0x2bd)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x592ce2=this['_anchor'][_0xf489c5(0x136)]['subscribeEvent'](()=>{const _0x1cdadf=_0xf489c5;this[_0x1cdadf(0x117)]&&clearTimeout(this[_0x1cdadf(0x117)]),this[_0x1cdadf(0x117)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x2994e1=_0xf489c5;_0x13b2ea[_0x2994e1(0x381)](),_0x592ce2[_0x2994e1(0x381)]();};}['_drawTextRange'](_0x1a952f,_0x11c7a2,_0x22150c,_0x50068e){const _0x89c332=_0xe865d9,_0xe9935b=new a[(_0x89c332(0x108))](_0x1a952f)[_0x89c332(0x395)](0.2)['toRgbString'](),_0x488d28=new p['RegularPolygon'](ht+a[_0x89c332(0x1c5)][_0x89c332(0x239)](k),{'pointsGroup':_0x11c7a2,'fill':_0xe9935b||p[_0x89c332(0x147)](a[_0x89c332(0x196)][_0x89c332(0x2ef)],0.2),'left':_0x22150c,'top':_0x50068e,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x89c332(0x244)](_0x488d28),this[_0x89c332(0x20b)][_0x89c332(0x316)](_0x488d28,E['TEXT_RANGE_LAYER_INDEX']);}[_0xe865d9(0x38e)](_0x345df8,_0x3695b0,_0x26c540,_0x4d828f){const _0x28a468=_0xe865d9,_0x4d9d48=new a[(_0x28a468(0x108))](_0x345df8)[_0x28a468(0x395)](0.2)[_0x28a468(0x317)](),_0x45dcfe=new p['RegularPolygon'](ut+a[_0x28a468(0x1c5)][_0x28a468(0x239)](k),{'pointsGroup':_0x3695b0,'fill':_0x4d9d48||p[_0x28a468(0x147)](a[_0x28a468(0x196)][_0x28a468(0x2ef)],0.2),'left':_0x26c540,'top':_0x4d828f,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x28a468(0x244)](_0x45dcfe),this[_0x28a468(0x20b)]['addObject'](_0x45dcfe,E[_0x28a468(0x10f)]);}[_0xe865d9(0x378)](_0x2232b3){const _0x8f4860=_0x2232b3[0x0],_0x2c2f30=_0x8f4860[0x0],_0x1cf5f=_0x8f4860[0x2],{x:_0x536081,y:_0x28887f}=_0x2c2f30,{x:_0x4e1531,y:_0xe6f32f}=_0x1cf5f;return{'left':_0x536081,'top':_0x28887f,'width':_0x4e1531-_0x536081,'height':_0xe6f32f-_0x28887f};}[_0xe865d9(0x2a2)](){const _0x42bf9a=_0xe865d9,{scaleX:_0x5cd7fd,scaleY:_0xa327f8}=this[_0x42bf9a(0x20b)][_0x42bf9a(0x368)]();return Math[_0x42bf9a(0x2d7)](_0x5cd7fd,_0xa327f8);}}var ft=Object[_0xe865d9(0x16f)],vt=(_0x37b38b,_0x463d89,_0x5201f2,_0x5a463b)=>{const _0x18c699=_0xe865d9;for(var _0x40abf4=_0x5a463b>0x1?void 0x0:_0x5a463b?ft(_0x463d89,_0x5201f2):_0x463d89,_0x37212e=_0x37b38b[_0x18c699(0x314)]-0x1,_0x4eb084;_0x37212e>=0x0;_0x37212e--)(_0x4eb084=_0x37b38b[_0x37212e])&&(_0x40abf4=_0x4eb084(_0x40abf4)||_0x40abf4);return _0x40abf4;},W=(_0x2613c6,_0x2372fb)=>(_0x14e26e,_0xdd4533)=>_0x2372fb(_0x14e26e,_0xdd4533,_0x2613c6);let fe=class extends a['RxDisposable']{constructor(_0x3ca584,_0x1e5d84,_0xcb6e3f,_0x5066e7,_0x149600){const _0x3559d4=_0xe865d9;super(),h(this,_0x3559d4(0x1db),[]),h(this,_0x3559d4(0x1a8),[]),(this[_0x3559d4(0x267)]=_0x3ca584,this[_0x3559d4(0x14d)]=_0x1e5d84,this[_0x3559d4(0x281)]=_0xcb6e3f,this[_0x3559d4(0x100)]=_0x5066e7,this[_0x3559d4(0x158)]=_0x149600,this[_0x3559d4(0x2a0)]());}[_0xe865d9(0x2a0)](){const _0x431574=_0xe865d9,_0x4df8e2=this['_context'][_0x431574(0x251)],_0x30aa2f=this[_0x431574(0x14d)];this[_0x431574(0x11c)](d[_0x431574(0x1aa)]([this[_0x431574(0x281)][_0x431574(0x2c0)](_0x4df8e2),this[_0x431574(0x158)][_0x431574(0x346)]])[_0x431574(0x333)]($['map'](([_0x1cdb7f,_0x25a1e0])=>({'skeleton':_0x30aa2f[_0x431574(0x14f)](),'cursors':[..._0x1cdb7f[_0x431574(0x303)]()][_0x431574(0x1ca)](_0x3cae88=>({..._0x3cae88,'color':this[_0x431574(0x158)][_0x431574(0x1b7)](_0x3cae88[_0x431574(0x164)])}))})))['subscribe'](_0x1368e5=>{const _0xeb35a4=_0x431574;if(this[_0xeb35a4(0x2bc)](),_0x1368e5){const {skeleton:_0x35cbdc,cursors:_0xb37c8e}=_0x1368e5;this[_0xeb35a4(0x322)](_0x35cbdc,_0xb37c8e);}})),this[_0x431574(0x118)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x21977e,_0x2dcd74){const _0x357778=_0xe865d9,{scene:_0x127b85,mainComponent:_0x3bfea4}=this[_0x357778(0x267)],_0x2d6c60=_0x2dcd74[_0x357778(0x380)](_0x52eedc=>new De(_0x52eedc,_0x127b85,_0x21977e,_0x3bfea4));this[_0x357778(0x1db)]=_0x2d6c60,this[_0x357778(0x1a8)]=_0x2dcd74;}['_refreshCollabCursors'](){const _0x2fb34b=_0xe865d9;this['_removeCollabCursors']();const {scene:_0x2effd8,mainComponent:_0x43ac33}=this[_0x2fb34b(0x267)],_0x20c486=this[_0x2fb34b(0x14d)]['getSkeleton'](),_0x4996e8=this[_0x2fb34b(0x1a8)]['map'](_0x3f7c47=>new De(_0x3f7c47,_0x2effd8,_0x20c486,_0x43ac33));this[_0x2fb34b(0x1db)]=_0x4996e8;}[_0xe865d9(0x2bc)](){const _0x3f2ee5=_0xe865d9;this[_0x3f2ee5(0x1db)][_0x3f2ee5(0x284)](_0x39fc9a=>_0x39fc9a[_0x3f2ee5(0x370)]()),this[_0x3f2ee5(0x1db)]=[];}['_initCommandExecutedListener'](){const _0x27a82f=_0xe865d9,_0x4fe2bd=[E[_0x27a82f(0x172)]['id']];this[_0x27a82f(0x11c)](this['_commandService'][_0x27a82f(0x214)](_0x290210=>{const _0x3f8713=_0x27a82f;_0x4fe2bd[_0x3f8713(0x353)](_0x290210['id'])&&_0x290210['params'][_0x3f8713(0x251)]===this[_0x3f8713(0x267)][_0x3f8713(0x251)]&&this[_0x3f8713(0x143)]();}));}[_0xe865d9(0x118)](){const _0x1cb64e=_0xe865d9;this['disposeWithMe'](a[_0x1cb64e(0x1f0)](this[_0x1cb64e(0x267)][_0x1cb64e(0x2ed)][_0x1cb64e(0x279)])['pipe']($[_0x1cb64e(0x138)](_0x1ab4d9=>_0x1ab4d9[_0x1cb64e(0x102)]===p[_0x1cb64e(0x11f)][_0x1cb64e(0x23a)]),$[_0x1cb64e(0x1bf)](0x10))[_0x1cb64e(0x309)](()=>{const _0x5932db=_0x1cb64e;this[_0x5932db(0x143)]();}));}};fe=vt([W(0x1,a[_0xe865d9(0x2d0)](Y[_0xe865d9(0x156)])),W(0x2,a['Inject'](x)),W(0x3,a['ICommandService']),W(0x4,a[_0xe865d9(0x2d0)](a[_0xe865d9(0x286)]))],fe);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0x18ce25,_0x3a2ba4){const _0x66fb11=_0xe865d9;super(_0x18ce25,_0x3a2ba4),h(this,_0x66fb11(0x32d)),h(this,_0x66fb11(0x2cf),!0x1),h(this,_0x66fb11(0x1af)),h(this,_0x66fb11(0x34a),''),h(this,'_labelPosition',_0x66fb11(0x29e)),h(this,'_backgroundColor'),(_0x3a2ba4&&this[_0x66fb11(0x144)](_0x3a2ba4),this['onPointerEnter$'][_0x66fb11(0x2a8)](()=>this[_0x66fb11(0x144)]({'hovered':!0x0})),this[_0x66fb11(0x136)][_0x66fb11(0x2a8)](()=>this[_0x66fb11(0x144)]({'hovered':!0x1})));}[_0xe865d9(0x144)](_0x47a4a5){const _0x430095=_0xe865d9;var _0x4915c4,_0x4d28ac,_0x3f2603,_0x35d6e3,_0xc59c9d,_0x3205e8;this[_0x430095(0x32d)]=(_0x4915c4=_0x47a4a5[_0x430095(0x164)])!=null?_0x4915c4:this[_0x430095(0x32d)],this['_hovered']=(_0x4d28ac=_0x47a4a5['hovered'])!=null?_0x4d28ac:this[_0x430095(0x2cf)],this[_0x430095(0x1af)]=(_0x3f2603=_0x47a4a5[_0x430095(0xfb)])!=null?_0x3f2603:this[_0x430095(0x1af)],this['_name']=(_0x35d6e3=_0x47a4a5['name'])!=null?_0x35d6e3:this[_0x430095(0x34a)],this[_0x430095(0x2f6)]=(_0xc59c9d=_0x47a4a5[_0x430095(0x389)])!=null?_0xc59c9d:this[_0x430095(0x2f6)],this[_0x430095(0x264)]=(_0x3205e8=_0x47a4a5[_0x430095(0x258)])!=null?_0x3205e8:this[_0x430095(0x264)],this[_0x430095(0x249)]({'width':_0x47a4a5[_0x430095(0x30e)],'height':_0x47a4a5[_0x430095(0x10b)]});}[_0xe865d9(0x101)](_0x31ef3e){const _0x31d72b=_0xe865d9,{row:_0x4854ae,column:_0x5fff8e}=_0x31ef3e;if(_0x4854ae>=this[_0x31d72b(0x1af)][_0x31d72b(0x259)]&&_0x4854ae<=this[_0x31d72b(0x1af)][_0x31d72b(0x2b6)]&&_0x5fff8e>=this[_0x31d72b(0x1af)][_0x31d72b(0x240)]&&_0x5fff8e<=this[_0x31d72b(0x1af)][_0x31d72b(0x125)]){this[_0x31d72b(0x144)]({'hovered':!0x0});return;}this[_0x31d72b(0x144)]({'hovered':!0x1});}[_0xe865d9(0x1e6)](_0x13440a){return!0x1;}[_0xe865d9(0x392)](_0x1b378e){const _0x186868=_0xe865d9;p[_0x186868(0x28a)][_0x186868(0x27e)](_0x1b378e,{'width':this[_0x186868(0x30e)],'height':this[_0x186868(0x10b)],'strokeWidth':mt,'stroke':this[_0x186868(0x32d)],'evented':!0x1,'fill':this[_0x186868(0x264)]}),this[_0x186868(0x2cf)]&&(_0x1b378e[_0x186868(0x248)](),_0x1b378e[_0x186868(0x252)](0x1,0x0,0x0,0x1,this[_0x186868(0x30e)],this[_0x186868(0x2f6)]===_0x186868(0x231)?0x0:-0x14),ee[_0x186868(0x27e)](_0x1b378e,{'text':this['_name'],'color':this[_0x186868(0x32d)]}),_0x1b378e['restore']());}}var Ct=Object[_0xe865d9(0x16f)],pt=(_0x777ac1,_0x5982a1,_0x2c1df2,_0x4cc706)=>{const _0x435f9a=_0xe865d9;for(var _0x12ec48=_0x4cc706>0x1?void 0x0:_0x4cc706?Ct(_0x5982a1,_0x2c1df2):_0x5982a1,_0x10a39a=_0x777ac1[_0x435f9a(0x314)]-0x1,_0x54f9f7;_0x10a39a>=0x0;_0x10a39a--)(_0x54f9f7=_0x777ac1[_0x10a39a])&&(_0x12ec48=_0x54f9f7(_0x12ec48)||_0x12ec48);return _0x12ec48;},ae=(_0x494430,_0x3a8a71)=>(_0x323faf,_0x1e0ddc)=>_0x3a8a71(_0x323faf,_0x1e0ddc,_0x494430);const Et=0x1389;let ve=class extends a[_0xe865d9(0x24f)]{constructor(_0x414748,_0x3649a0,_0x4332d2,_0x586426){const _0xf83b5e=_0xe865d9;super(),h(this,_0xf83b5e(0x1a8),new Set()),h(this,'_lastPointer',null),(this[_0xf83b5e(0x267)]=_0x414748,this[_0xf83b5e(0x329)]=_0x3649a0,this[_0xf83b5e(0x281)]=_0x4332d2,this['_themeService']=_0x586426,this[_0xf83b5e(0x2a0)]());}[_0xe865d9(0x2a0)](){const _0x502be5=_0xe865d9;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x502be5(0x333)]($[_0x502be5(0x17f)](this[_0x502be5(0x2b8)]),$[_0x502be5(0x19f)](_0x46bf2e=>{const _0x1ad48e=_0x502be5;if(_0x46bf2e){const _0x16e775=_0x46bf2e['sheetId'];return d[_0x1ad48e(0x1aa)](this[_0x1ad48e(0x281)][_0x1ad48e(0x2c0)](this[_0x1ad48e(0x267)][_0x1ad48e(0x251)]),this[_0x1ad48e(0x158)]['currentTheme$'])['pipe']($[_0x1ad48e(0x380)](([_0x395198,_0x2ed0ab])=>{const _0xc34ae3=_0x1ad48e,_0x27d773=new Map();return _0x395198[_0xc34ae3(0x284)]((_0x3e035f,_0x85326)=>{const _0x227a75=_0xc34ae3;if(_0x3e035f['sheetID']===_0x16e775){const _0x79de11={..._0x3e035f};_0x79de11[_0x227a75(0x164)]=this[_0x227a75(0x158)][_0x227a75(0x1b7)](_0x3e035f[_0x227a75(0x164)]),_0x27d773[_0x227a75(0x1c4)](_0x85326,_0x79de11);}}),{'skeleton':_0x46bf2e,'cursors':_0x27d773};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x502be5(0x309)](({skeleton:_0x564c86,cursors:_0x547dd8})=>{this['_removeCollabCursors'](),_0x564c86&&this['_updateCollabCursors'](_0x564c86,_0x547dd8);}),this[_0x502be5(0x329)][_0x502be5(0x1d0)][_0x502be5(0x309)](_0x3a39df=>{const _0x3973b1=_0x502be5;if(_0x3a39df==null)return;const {skeleton:_0x2f506f}=_0x3a39df,{scene:_0x21bdba}=this['_context'];_0x21bdba['onPointerMove$'][_0x3973b1(0x2a8)](a['debounce'](_0x20744a=>{const _0x1b5e52=_0x3973b1;var _0x592712,_0x2f19cc;const {offsetX:_0x5da700,offsetY:_0x3523fb}=_0x20744a,{x:_0x22110f,y:_0x5a6623}=_0x21bdba[_0x1b5e52(0x210)](p[_0x1b5e52(0x28e)]['FromArray']([_0x5da700,_0x3523fb])),{scaleX:_0x3782e2,scaleY:_0x4b9317}=_0x21bdba[_0x1b5e52(0x368)](),_0x37acdf=_0x21bdba[_0x1b5e52(0x347)](p[_0x1b5e52(0x2be)][_0x1b5e52(0x28b)]),_0xa490fa=_0x21bdba[_0x1b5e52(0x221)](p[_0x1b5e52(0x28e)]['FromArray']([_0x22110f,_0x5a6623]),_0x37acdf),_0x10941c=_0x2f506f[_0x1b5e52(0x133)](_0x5da700,_0x3523fb,_0x3782e2,_0x4b9317,_0xa490fa);((_0x592712=this[_0x1b5e52(0x321)])==null?void 0x0:_0x592712['column'])===_0x10941c[_0x1b5e52(0x1cf)]&&((_0x2f19cc=this[_0x1b5e52(0x321)])==null?void 0x0:_0x2f19cc[_0x1b5e52(0x127)])===_0x10941c[_0x1b5e52(0x127)]||this['_cursors'][_0x1b5e52(0x284)](_0x4c51a5=>{const _0x1ac31d=_0x1b5e52;_0x4c51a5[_0x1ac31d(0x101)](_0x10941c);});},0x64));});}[_0xe865d9(0x322)](_0x349ccf,_0xe8412c){const _0x36ed5c=_0xe865d9;var _0x2150d7;const _0x1ef719=(_0x2150d7=this[_0x36ed5c(0x329)][_0x36ed5c(0x30d)]())==null?void 0x0:_0x2150d7['skeleton'];if(!_0x1ef719)return;const _0x3308bf=this['_getSheetObject']();if(!_0x3308bf)return;this['_cursors'][_0x36ed5c(0x284)](_0x2577f1=>{const _0x620ba8=_0x36ed5c;_0x2577f1[_0x620ba8(0x11a)]();});const {scene:_0x41a82f}=_0x3308bf,_0x574182=bt(Array[_0x36ed5c(0x1e8)](_0xe8412c[_0x36ed5c(0x303)]()))[_0x36ed5c(0x380)](_0x21b480=>{const _0x30f70f=_0x36ed5c,{color:_0x37a591,range:_0x5dd59c,name:_0x2268b3,selection:_0x20ea36,sheetID:_0x38ef71}=_0x21b480,{startColumn:_0x2b404c,startRow:_0x31bd85,endColumn:_0x1fd60b,endRow:_0x9ebfe9}=_0x5dd59c,_0x3b45b9=X['getCoordByCell'](_0x31bd85,_0x2b404c,_0x41a82f,_0x1ef719),_0x3e8bb2=X[_0x30f70f(0x182)](_0x9ebfe9,_0x1fd60b,_0x41a82f,_0x1ef719),{columnHeaderHeightAndMarginTop:_0x4eb6d8}=_0x1ef719,{startX:_0x569c28,startY:_0x1f9d80}=_0x3b45b9,{endX:_0x346b74,endY:_0x57f8be}=_0x3e8bb2,_0x38ca4e=_0x346b74-_0x569c28,_0x26ebef=_0x57f8be-_0x1f9d80,_0x26e385={'labelPosition':_0x1f9d80-_0x4eb6d8>=K?_0x30f70f(0x29e):_0x30f70f(0x231),'sheetID':_0x38ef71,'range':_0x5dd59c,'color':_0x37a591,'name':_0x2268b3,'selection':_0x20ea36,'left':_0x569c28,'top':_0x1f9d80,'width':_0x38ca4e,'height':_0x26ebef,'evented':!0x1,'zIndex':Et};return new we(_0x2268b3,_0x26e385);});_0x41a82f[_0x36ed5c(0x37b)](_0x574182,gt),this['_cursors']=new Set(_0x574182);}[_0xe865d9(0x2bc)](){const _0x4abc02=_0xe865d9;var _0xfc2aaa;(_0xfc2aaa=this[_0x4abc02(0x1a8)])==null||_0xfc2aaa['forEach'](_0x2bbe0f=>_0x2bbe0f['dispose']());}[_0xe865d9(0x2cc)](){const _0x26fe10=_0xe865d9;return X['getSheetObject'](this[_0x26fe10(0x267)][_0x26fe10(0x319)],this[_0x26fe10(0x267)]);}};ve=pt([ae(0x1,a['Inject'](X[_0xe865d9(0x1ad)])),ae(0x2,a[_0xe865d9(0x2d0)](x)),ae(0x3,a[_0xe865d9(0x2d0)](a[_0xe865d9(0x286)]))],ve);function bt(_0x5896a7){const _0x138138=_0xe865d9,_0x37bed6=new Map();return _0x5896a7['forEach'](_0x522335=>{const _0x1a405c=_0x3cdf;if(_0x37bed6['has'](_0x522335[_0x1a405c(0x184)])){const _0x287c6f=_0x37bed6[_0x1a405c(0x1df)](_0x522335[_0x1a405c(0x184)]);_0x287c6f[_0x1a405c(0x297)]+=',\x20'+_0x522335[_0x1a405c(0x297)];}else _0x37bed6[_0x1a405c(0x1c4)](_0x522335[_0x1a405c(0x184)],_0x522335);}),Array[_0x138138(0x1e8)](_0x37bed6[_0x138138(0x303)]());}var b=function(){const _0x2dae68=_0xe865d9;return b=Object['assign']||function(_0x424a6e){const _0x1289b4=_0x3cdf;for(var _0x2f91d5,_0x5b2f0f=0x1,_0x5a2ec7=arguments[_0x1289b4(0x314)];_0x5b2f0f<_0x5a2ec7;_0x5b2f0f++){_0x2f91d5=arguments[_0x5b2f0f];for(var _0x21f07b in _0x2f91d5)Object[_0x1289b4(0x27b)][_0x1289b4(0x1a9)][_0x1289b4(0x254)](_0x2f91d5,_0x21f07b)&&(_0x424a6e[_0x21f07b]=_0x2f91d5[_0x21f07b]);}return _0x424a6e;},b[_0x2dae68(0x35e)](this,arguments);},Ot=function(_0x38e27c,_0x5078f9){const _0x15e715=_0xe865d9;var _0x235f7a={};for(var _0x498f74 in _0x38e27c)Object[_0x15e715(0x27b)][_0x15e715(0x1a9)]['call'](_0x38e27c,_0x498f74)&&_0x5078f9['indexOf'](_0x498f74)<0x0&&(_0x235f7a[_0x498f74]=_0x38e27c[_0x498f74]);if(_0x38e27c!=null&&typeof Object[_0x15e715(0x1b0)]=='function'){for(var _0x46cd06=0x0,_0x498f74=Object['getOwnPropertySymbols'](_0x38e27c);_0x46cd06<_0x498f74[_0x15e715(0x314)];_0x46cd06++)_0x5078f9[_0x15e715(0x104)](_0x498f74[_0x46cd06])<0x0&&Object[_0x15e715(0x27b)][_0x15e715(0x234)][_0x15e715(0x254)](_0x38e27c,_0x498f74[_0x46cd06])&&(_0x235f7a[_0x498f74[_0x46cd06]]=_0x38e27c[_0x498f74[_0x46cd06]]);}return _0x235f7a;},pe=M[_0xe865d9(0x373)](function(_0x57ce74,_0xe44ac0){const _0x189d35=_0xe865d9;var _0x554748=_0x57ce74[_0x189d35(0x16a)],_0x343484=_0x57ce74['id'],_0x55e981=_0x57ce74[_0x189d35(0x36d)],_0x42f62e=_0x57ce74[_0x189d35(0x16c)],_0x2a2f72=Ot(_0x57ce74,[_0x189d35(0x16a),'id',_0x189d35(0x36d),_0x189d35(0x16c)]),_0x21d0f2=_0x189d35(0x34c)['concat'](_0x343484,'\x20')['concat'](_0x55e981||'')[_0x189d35(0x310)](),_0x4b52b8=M[_0x189d35(0x139)]('_'[_0x189d35(0xf5)](Dt()));return Ae(_0x554748,''[_0x189d35(0xf5)](_0x343484),{'defIds':_0x554748[_0x189d35(0x1ae)],'idSuffix':_0x4b52b8[_0x189d35(0x31b)]},b({'ref':_0xe44ac0,'className':_0x21d0f2},_0x2a2f72),_0x42f62e);});function Ae(_0x53d2a0,_0x13a45c,_0x54442c,_0xfbdc6,_0x469e83){const _0x47731d=_0xe865d9;return M[_0x47731d(0x20f)](_0x53d2a0[_0x47731d(0x245)],b(b({'key':_0x13a45c},Tt(_0x53d2a0,_0x54442c,_0x469e83)),_0xfbdc6),(Rt(_0x53d2a0,_0x54442c)[_0x47731d(0x2bb)]||[])[_0x47731d(0x380)](function(_0x5f1cb7,_0x4b0125){const _0x46930d=_0x47731d;return Ae(_0x5f1cb7,''['concat'](_0x13a45c,'-')[_0x46930d(0xf5)](_0x53d2a0['tag'],'-')[_0x46930d(0xf5)](_0x4b0125),_0x54442c,void 0x0,_0x469e83);}));}function Tt(_0x14531a,_0x15af21,_0x959d1a){const _0x475949=_0xe865d9;var _0x54395f=b({},_0x14531a[_0x475949(0x1bb)]);_0x959d1a!=null&&_0x959d1a[_0x475949(0x225)]&&_0x54395f[_0x475949(0x1d1)]===_0x475949(0x225)&&(_0x54395f['fill']=_0x959d1a['colorChannel1']),_0x14531a[_0x475949(0x245)]==='mask'&&_0x54395f['id']&&(_0x54395f['id']=_0x54395f['id']+_0x15af21[_0x475949(0x36f)]),Object['entries'](_0x54395f)[_0x475949(0x284)](function(_0x4c20b0){const _0x36809f=_0x475949;var _0xcbb221=_0x4c20b0[0x0],_0x517859=_0x4c20b0[0x1];_0xcbb221===_0x36809f(0x2a3)&&typeof _0x517859==_0x36809f(0x290)&&(_0x54395f[_0xcbb221]=_0x517859[_0x36809f(0x384)](/url\(#(.*)\)/,_0x36809f(0x153)['concat'](_0x15af21[_0x36809f(0x36f)],')')));});var _0x3f2d6c=_0x15af21['defIds'];return!_0x3f2d6c||_0x3f2d6c[_0x475949(0x314)]===0x0||(_0x14531a[_0x475949(0x245)]==='use'&&_0x54395f['xlink:href']&&(_0x54395f[_0x475949(0x25e)]=_0x54395f[_0x475949(0x25e)]+_0x15af21['idSuffix']),Object[_0x475949(0x14c)](_0x54395f)[_0x475949(0x284)](function(_0x116823){const _0x54557a=_0x475949;var _0x3c1a5a=_0x116823[0x0],_0x5e667a=_0x116823[0x1];typeof _0x5e667a==_0x54557a(0x290)&&(_0x54395f[_0x3c1a5a]=_0x5e667a[_0x54557a(0x384)](/url\(#(.*)\)/,_0x54557a(0x153)[_0x54557a(0xf5)](_0x15af21[_0x54557a(0x36f)],')')));})),_0x54395f;}function Rt(_0x2186e0,_0x2b8572){const _0x171cd3=_0xe865d9;var _0xdda2b5,_0x3cd5b6=_0x2b8572[_0x171cd3(0x1ae)];return!_0x3cd5b6||_0x3cd5b6[_0x171cd3(0x314)]===0x0?_0x2186e0:_0x2186e0[_0x171cd3(0x245)]==='defs'&&(!((_0xdda2b5=_0x2186e0['children'])===null||_0xdda2b5===void 0x0)&&_0xdda2b5['length'])?b(b({},_0x2186e0),{'children':_0x2186e0[_0x171cd3(0x2bb)]['map'](function(_0x21b755){const _0x264f08=_0x171cd3;return typeof _0x21b755[_0x264f08(0x1bb)]['id']=='string'&&_0x3cd5b6&&_0x3cd5b6[_0x264f08(0x353)](_0x21b755[_0x264f08(0x1bb)]['id'])?b(b({},_0x21b755),{'attrs':b(b({},_0x21b755['attrs']),{'id':_0x21b755[_0x264f08(0x1bb)]['id']+_0x2b8572[_0x264f08(0x36f)]})}):_0x21b755;})}):_0x2186e0;}function Dt(){const _0x585531=_0xe865d9;return Math[_0x585531(0x178)]()['toString'](0x24)['substring'](0x2,0x8);}pe[_0xe865d9(0x179)]='UniverIcon';var Ut={'tag':_0xe865d9(0x111),'attrs':{'xmlns':_0xe865d9(0x2d6),'fill':_0xe865d9(0x22e),'viewBox':_0xe865d9(0x1c8),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xe865d9(0x38c)},'children':[{'tag':_0xe865d9(0x112),'attrs':{'stroke':_0xe865d9(0x26c),'d':_0xe865d9(0x174),'strokeLinecap':_0xe865d9(0x386),'strokeLinejoin':_0xe865d9(0x386),'strokeWidth':1.2}}]},{'tag':_0xe865d9(0x2ff),'attrs':{},'children':[{'tag':_0xe865d9(0x188),'attrs':{'id':_0xe865d9(0x24e)},'children':[{'tag':'path','attrs':{'fill':_0xe865d9(0x35a),'d':_0xe865d9(0x339)}}]}]}],'defIds':[_0xe865d9(0x24e)]},ye=M[_0xe865d9(0x373)](function(_0x272d4c,_0x33b917){const _0x22d37c=_0xe865d9;return M[_0x22d37c(0x20f)](pe,Object[_0x22d37c(0x215)]({},_0x272d4c,{'id':_0x22d37c(0x20d),'ref':_0x33b917,'icon':Ut}));});ye[_0xe865d9(0x179)]=_0xe865d9(0x23f);function _0x3cdf(_0x152b4e,_0x12e476){const _0x3a4acc=_0x3a4a();return _0x3cdf=function(_0x3cdfd6,_0x353677){_0x3cdfd6=_0x3cdfd6-0xf5;let _0x4f8a49=_0x3a4acc[_0x3cdfd6];return _0x4f8a49;},_0x3cdf(_0x152b4e,_0x12e476);}var Nt={'tag':_0xe865d9(0x111),'attrs':{'xmlns':_0xe865d9(0x2d6),'fill':'none','viewBox':_0xe865d9(0x134),'width':_0xe865d9(0x232),'height':_0xe865d9(0x232)},'children':[{'tag':'g','attrs':{'clipPath':_0xe865d9(0x1f7)},'children':[{'tag':_0xe865d9(0x112),'attrs':{'stroke':'currentColor','d':_0xe865d9(0x1d4),'strokeLinecap':_0xe865d9(0x386),'strokeLinejoin':_0xe865d9(0x386),'strokeWidth':1.2}}]},{'tag':_0xe865d9(0x2ff),'attrs':{},'children':[{'tag':_0xe865d9(0x188),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0xe865d9(0x35a),'d':_0xe865d9(0x339),'transform':_0xe865d9(0x1e0)}}]}]}],'defIds':[_0xe865d9(0x337)]},$e=M['forwardRef'](function(_0x3d1d56,_0x33410c){const _0x1d2ea8=_0xe865d9;return M['createElement'](pe,Object['assign']({},_0x3d1d56,{'id':_0x1d2ea8(0x291),'ref':_0x33410c,'icon':Nt}));});$e[_0xe865d9(0x179)]=_0xe865d9(0x1ba);function Mt(_0x4d7e6a){const _0x4e6043=_0xe865d9;switch(_0x4d7e6a){case u['CollaborationStatus'][_0x4e6043(0x262)]:return'collabStatus.offline';case u[_0x4e6043(0x18c)]['CONFLICT']:return _0x4e6043(0x2f9);case u['CollaborationStatus']['FETCH_MISS']:return _0x4e6043(0x379);case u['CollaborationStatus'][_0x4e6043(0x293)]:return'collabStatus.notCollab';case u['CollaborationStatus'][_0x4e6043(0x343)]:case u[_0x4e6043(0x18c)][_0x4e6043(0x1b4)]:return _0x4e6043(0x146);case u[_0x4e6043(0x18c)][_0x4e6043(0x2f1)]:case u[_0x4e6043(0x18c)][_0x4e6043(0x2ac)]:return _0x4e6043(0x1ed);}}function xe(_0x5b685a){const _0x2bf850=_0xe865d9,{status$:_0x3dd00c}=_0x5b685a,_0x1e837d=O[_0x2bf850(0x340)](_0x3dd00c,u['CollaborationStatus'][_0x2bf850(0x293)]),_0x30ab0e=O['useDependency'](a[_0x2bf850(0x10a)]),_0x5d8141=O[_0x2bf850(0x278)](u['CollaborationSessionService']),_0x436ae2=_0x1e837d!==u['CollaborationStatus']['OFFLINE'],_0x156e15=_0x30ab0e['t'](Mt(_0x1e837d)),_0x3f6645=_0x436ae2?P['jsx']($e,{}):P[_0x2bf850(0x19a)](ye,{}),_0x3d8d8d=M[_0x2bf850(0x1cb)](()=>{const _0x41718f=_0x2bf850;_0x436ae2||_0x5d8141[_0x41718f(0x173)]();},[_0x436ae2,_0x5d8141]);function _0x3e6ca6(){const _0x49ce6e=_0x2bf850;return P[_0x49ce6e(0x132)](_0x49ce6e(0x16e),{'className':_0x49ce6e(0x159),'onClick':_0x3d8d8d,'children':[P['jsx'](_0x49ce6e(0x16e),{'className':D[_0x49ce6e(0x1d3)](_0x49ce6e(0x15a),{'univer-text-green-500':_0x436ae2,'univer-text-red-500':!_0x436ae2}),'children':_0x3f6645}),P[_0x49ce6e(0x19a)](_0x49ce6e(0x16e),{'className':_0x49ce6e(0x271),'children':_0x156e15})]});}return _0x436ae2?_0x3e6ca6():P[_0x2bf850(0x19a)](D[_0x2bf850(0x24b)],{'title':_0x30ab0e['t'](_0x2bf850(0x141)),'children':_0x3e6ca6()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0xbbbb10,_0x2fb6b0,_0x5167dd,_0x376416)=>{for(var _0x5b7277=_0x376416>0x1?void 0x0:_0x376416?Lt(_0x2fb6b0,_0x5167dd):_0x2fb6b0,_0x37a667=_0xbbbb10['length']-0x1,_0x59bea3;_0x37a667>=0x0;_0x37a667--)(_0x59bea3=_0xbbbb10[_0x37a667])&&(_0x5b7277=_0x59bea3(_0x5b7277)||_0x5b7277);return _0x5b7277;},V=(_0x3d9970,_0x1cfcb0)=>(_0x162d34,_0x67ad7d)=>_0x1cfcb0(_0x162d34,_0x67ad7d,_0x3d9970);exports[_0xe865d9(0x246)]=class extends a['Disposable']{constructor(_0x39d3d0,_0x1991a3,_0x4b53b1,_0x1db3d9){const _0x3f1e94=_0xe865d9;super(),h(this,'_status$',new d['BehaviorSubject'](u[_0x3f1e94(0x18c)][_0x3f1e94(0x293)])),(this[_0x3f1e94(0x390)]=_0x39d3d0,this[_0x3f1e94(0x280)]=_0x1991a3,this[_0x3f1e94(0x32c)]=_0x4b53b1,this[_0x3f1e94(0x209)]=_0x1db3d9,this['_initStatusComponent'](),this['_initStatusListener']());}[_0xe865d9(0x151)](){const _0x21a24d=_0xe865d9;this['disposeWithMe'](this[_0x21a24d(0x390)][_0x21a24d(0x119)][_0x21a24d(0x333)](d[_0x21a24d(0x19f)](()=>{const _0x44c604=_0x21a24d,_0x568238=this[_0x44c604(0x390)][_0x44c604(0x25b)]();return _0x568238?this['_collaborationController'][_0x44c604(0xf8)](_0x568238[_0x44c604(0x2c9)]()):d['of'](null);}),d[_0x21a24d(0x19f)](_0x5028b3=>_0x5028b3?_0x5028b3['status$']:d['of'](u[_0x21a24d(0x18c)][_0x21a24d(0x293)])))[_0x21a24d(0x309)](_0x1e5500=>{const _0x58db9d=_0x21a24d;this['_status$'][_0x58db9d(0x29b)](_0x1e5500);}));}[_0xe865d9(0x1d5)](){const _0x499e66=_0xe865d9;this[_0x499e66(0x11c)](this[_0x499e66(0x209)]['registerComponent'](O[_0x499e66(0x137)]['HEADER_MENU'],()=>O['connectInjector'](wt({'status$':this['_status$'][_0x499e66(0x2f0)]()}),this[_0x499e66(0x280)])));}},exports[_0xe865d9(0x246)]=Pt([V(0x0,a[_0xe865d9(0x183)]),V(0x1,a['Inject'](a[_0xe865d9(0x33d)])),V(0x2,a[_0xe865d9(0x2d0)](u['CollaborationController'])),V(0x3,O[_0xe865d9(0x1ee)])],exports['DesktopCollaborationStatusDisplayController']);function wt(_0x390f16){const {status$:_0x3ee306}=_0x390f16;return function(){return P['jsx'](xe,{'status$':_0x3ee306});};}var At=Object[_0xe865d9(0x16f)],yt=(_0x1c5f7d,_0x404212,_0x113061,_0x5ea33d)=>{const _0x38bff5=_0xe865d9;for(var _0x22b327=_0x5ea33d>0x1?void 0x0:_0x5ea33d?At(_0x404212,_0x113061):_0x404212,_0x199688=_0x1c5f7d[_0x38bff5(0x314)]-0x1,_0x301f3b;_0x199688>=0x0;_0x199688--)(_0x301f3b=_0x1c5f7d[_0x199688])&&(_0x22b327=_0x301f3b(_0x22b327)||_0x22b327);return _0x22b327;},y=(_0x3ed898,_0x3dc78a)=>(_0x13cc89,_0x50a0e7)=>_0x3dc78a(_0x13cc89,_0x50a0e7,_0x3ed898);let q=class extends a[_0xe865d9(0x36c)]{constructor(_0xf31c46,_0x5941b2,_0x3841e0,_0xc066a8,_0x4477f5,_0x5e4826){const _0x49f538=_0xe865d9;super(),this[_0x49f538(0x382)]=_0xf31c46,this['_localCacheService']=_0x5941b2,this[_0x49f538(0x31c)]=_0x3841e0,this['_messageService']=_0xc066a8,this[_0x49f538(0x1f8)]=_0x4477f5,this['_localeService']=_0x5e4826,this['_setupBeforeClosingHandler'](),this[_0x49f538(0x116)]();}[_0xe865d9(0x1eb)](){const _0x51a7f1=_0xe865d9;this['disposeWithMe'](this[_0x51a7f1(0x382)][_0x51a7f1(0x1c1)](()=>{const _0x2e15d7=_0x51a7f1;if(this[_0x2e15d7(0x292)][_0x2e15d7(0x1ef)][_0x2e15d7(0x1fb)])return this[_0x2e15d7(0x238)]['t'](_0x2e15d7(0x1a2));}));}[_0xe865d9(0x116)](){const _0x200400=_0xe865d9;this['disposeWithMe'](this['_collaborationUIEventService'][_0x200400(0x2f4)][_0x200400(0x309)](_0x2db8c5=>{const _0x3e82b2=_0x200400;_0x2db8c5['id']===u['CollaborationUIEventId'][_0x3e82b2(0x167)]&&this[_0x3e82b2(0x318)][_0x3e82b2(0x2d5)]({'type':D[_0x3e82b2(0x1c6)][_0x3e82b2(0x1bd)],'content':this[_0x3e82b2(0x238)]['t'](_0x3e82b2(0x115))}),_0x2db8c5['id']===u[_0x3e82b2(0x1c0)][_0x3e82b2(0x31e)]&&this['_messageService'][_0x3e82b2(0x2d5)]({'type':D[_0x3e82b2(0x1c6)][_0x3e82b2(0x1bd)],'content':this[_0x3e82b2(0x238)]['t'](_0x3e82b2(0x1f5))}),_0x2db8c5['id']===u[_0x3e82b2(0x1c0)]['PERMISSION_DENIED']&&this[_0x3e82b2(0x1f8)][_0x3e82b2(0x2d5)]({'title':this[_0x3e82b2(0x238)]['t'](_0x3e82b2(0x2d4)),'content':this[_0x3e82b2(0x238)]['t'](_0x3e82b2(0x13c)),'type':'error','duration':0x0}),_0x2db8c5['id']===u[_0x3e82b2(0x1c0)][_0x3e82b2(0x253)]&&this['_messageService'][_0x3e82b2(0x2d5)]({'type':D[_0x3e82b2(0x1c6)][_0x3e82b2(0x14b)],'content':this[_0x3e82b2(0x238)]['t']('collaboration.closeRoom')+'('+_0x2db8c5[_0x3e82b2(0xfd)]+')'}),_0x2db8c5['id']===u['CollaborationUIEventId'][_0x3e82b2(0x15c)]&&this[_0x3e82b2(0x318)][_0x3e82b2(0x2d5)]({'type':D[_0x3e82b2(0x1c6)][_0x3e82b2(0x1bd)],'content':this['_localeService']['t'](_0x2db8c5[_0x3e82b2(0xfd)]||'')}),_0x2db8c5['id']===u[_0x3e82b2(0x1c0)][_0x3e82b2(0x12b)]&&this[_0x3e82b2(0x318)][_0x3e82b2(0x2d5)]({'type':D[_0x3e82b2(0x1c6)][_0x3e82b2(0x1bd)],'content':this[_0x3e82b2(0x238)]['t']('session.will-retry')}),_0x2db8c5['id']===u['CollaborationUIEventId'][_0x3e82b2(0x152)]&&this[_0x3e82b2(0x318)]['show']({'type':D[_0x3e82b2(0x1c6)][_0x3e82b2(0x14b)],'content':this['_localeService']['t'](_0x3e82b2(0x13a))}),_0x2db8c5['id']===u['CollaborationUIEventId'][_0x3e82b2(0x323)]&&this[_0x3e82b2(0x318)][_0x3e82b2(0x2d5)]({'type':D[_0x3e82b2(0x1c6)][_0x3e82b2(0x14b)],'content':this[_0x3e82b2(0x238)]['t'](_0x3e82b2(0x213))});}));}};q=yt([y(0x0,O[_0xe865d9(0x28f)]),y(0x1,u[_0xe865d9(0x10e)]),y(0x2,a[_0xe865d9(0x2d0)](u[_0xe865d9(0x332)])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a[_0xe865d9(0x2d0)](a['LocaleService']))],q);const $t=_0xe865d9(0x216),Ue={},Ee=a[_0xe865d9(0x11d)](_0xe865d9(0x1ac));var xt=Object[_0xe865d9(0x16f)],Bt=(_0x16ba48,_0x4a97a9,_0x183c23,_0xdeba75)=>{const _0x52e79b=_0xe865d9;for(var _0x1ae7fc=_0xdeba75>0x1?void 0x0:_0xdeba75?xt(_0x4a97a9,_0x183c23):_0x4a97a9,_0x5d6dc4=_0x16ba48[_0x52e79b(0x314)]-0x1,_0x459931;_0x5d6dc4>=0x0;_0x5d6dc4--)(_0x459931=_0x16ba48[_0x5d6dc4])&&(_0x1ae7fc=_0x459931(_0x1ae7fc)||_0x1ae7fc);return _0x1ae7fc;},F=(_0x2999cf,_0x2f6aae)=>(_0xf0a8f5,_0x4521b3)=>_0x2f6aae(_0xf0a8f5,_0x4521b3,_0x2999cf);exports[_0xe865d9(0x324)]=class extends a['RxDisposable']{constructor(_0x52b0b2,_0x42ac0a,_0x23128b,_0xaf94bd,_0x13891c){const _0x66880a=_0xe865d9;super(),this[_0x66880a(0x223)]=_0x52b0b2,this[_0x66880a(0x185)]=_0x42ac0a,this[_0x66880a(0x100)]=_0x23128b,this[_0x66880a(0x387)]=_0xaf94bd,_0x13891c?_0x13891c==null||_0x13891c[_0x66880a(0x175)]()[_0x66880a(0x211)](()=>this[_0x66880a(0x2a0)]()):(this['_logService'][_0x66880a(0x356)](_0x66880a(0x241),_0x66880a(0x1d2)),this['_init']());}async[_0xe865d9(0x2a0)](){const _0x5432c7=_0xe865d9,_0x4a9d17=this['_urlService'][_0x5432c7(0x35f)]('unit'),_0xa36cee=this[_0x5432c7(0x223)][_0x5432c7(0x35f)](_0x5432c7(0x102)),_0x1dd6c3=this[_0x5432c7(0x223)][_0x5432c7(0x35f)](_0x5432c7(0x2d8));if(!_0x4a9d17||!_0xa36cee){this['_logService'][_0x5432c7(0x356)](_0x5432c7(0x241),_0x5432c7(0x195));return;}const _0x59c2ac=await this[_0x5432c7(0x387)]['loadUnit'](_0x4a9d17,Number(_0xa36cee),_0x1dd6c3);_0x59c2ac&&_0x59c2ac instanceof a[_0x5432c7(0x1ec)]&&this['_setupSubUnitSync'](_0x59c2ac);}async['_setupSubUnitSync'](_0x1d4c83){const _0x23386e=_0xe865d9;await this[_0x23386e(0x354)](_0x1d4c83),_0x1d4c83[_0x23386e(0x2a1)][_0x23386e(0x333)](d[_0x23386e(0x17f)](this[_0x23386e(0x2b8)]))[_0x23386e(0x309)](_0x53bfbb=>{_0x53bfbb&&this['_updateURLWithCurrentState'](_0x53bfbb);}),this['_urlService'][_0x23386e(0x357)]['pipe'](d[_0x23386e(0x17f)](this[_0x23386e(0x2b8)]))[_0x23386e(0x309)](()=>this['_updateSubUnitFromURLParams'](_0x1d4c83));}['_updateURLWithCurrentState'](_0x74c387,_0x40bef2=!0x1){const _0x2b2e55=_0xe865d9,_0x14cdfe=this[_0x2b2e55(0x223)][_0x2b2e55(0x35f)](_0x2b2e55(0x2d8));_0x74c387[_0x2b2e55(0x397)]()!==_0x14cdfe&&this['_urlService'][_0x2b2e55(0x25a)](_0x2b2e55(0x2d8),_0x74c387['getSheetId'](),_0x40bef2);}async[_0xe865d9(0x354)](_0x31edd1){const _0x5463ee=_0xe865d9;var _0x2c6128;const _0x558cc4=this[_0x5463ee(0x223)][_0x5463ee(0x35f)]('subunit');if(!_0x558cc4||!_0x31edd1['getSheetBySheetId'](_0x558cc4)){const _0x8ee3dd=_0x31edd1[_0x5463ee(0x2b0)]()[0x0],_0x4a43eb=_0x31edd1['getSheetBySheetId'](_0x8ee3dd);if(!_0x4a43eb)return;this[_0x5463ee(0x1cd)](_0x4a43eb,!0x0),await this['_commandService'][_0x5463ee(0x301)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x31edd1[_0x5463ee(0x2c9)](),'subUnitId':_0x8ee3dd});return;}((_0x2c6128=_0x31edd1[_0x5463ee(0x36a)]())==null?void 0x0:_0x2c6128[_0x5463ee(0x397)]())!==_0x558cc4&&await this['_commandService'][_0x5463ee(0x301)](g[_0x5463ee(0x2d2)]['id'],{'unitId':_0x31edd1[_0x5463ee(0x2c9)](),'subUnitId':_0x558cc4});}},exports[_0xe865d9(0x324)]=Bt([F(0x0,Ee),F(0x1,a[_0xe865d9(0x1d8)]),F(0x2,a[_0xe865d9(0x1c3)]),F(0x3,a[_0xe865d9(0x2d0)](u[_0xe865d9(0x23b)])),F(0x4,a[_0xe865d9(0x230)](Ke['IRemoteInstanceService']))],exports['CollaborationDataLoaderController']);var jt=Object[_0xe865d9(0x16f)],kt=(_0x139720,_0x25e4f5,_0x5a6bca,_0x3a5f5f)=>{const _0x1d15e1=_0xe865d9;for(var _0x1732ee=_0x3a5f5f>0x1?void 0x0:_0x3a5f5f?jt(_0x25e4f5,_0x5a6bca):_0x25e4f5,_0x3628f0=_0x139720[_0x1d15e1(0x314)]-0x1,_0x380cf8;_0x3628f0>=0x0;_0x3628f0--)(_0x380cf8=_0x139720[_0x3628f0])&&(_0x1732ee=_0x380cf8(_0x1732ee)||_0x1732ee);return _0x1732ee;},ce=(_0x3677d8,_0x2fa898)=>(_0x4412ed,_0x32f004)=>_0x2fa898(_0x4412ed,_0x32f004,_0x3677d8);let z=class{constructor(_0x2ab3de,_0x3c689d,_0x46f7b2){const _0x312718=_0xe865d9;this['_injector']=_0x2ab3de,this[_0x312718(0x277)]=_0x3c689d,this[_0x312718(0x18e)]=_0x46f7b2;}[_0xe865d9(0x17e)](_0x4f5122){const _0xa74fdb=_0xe865d9;this['_transformUndoRedoStack'](_0x4f5122),this[_0xa74fdb(0x265)](_0x4f5122);}['transformRemoteChangeset'](_0x24ddb5){const _0x246eea=_0xe865d9,{unitID:_0x6f46ec}=_0x24ddb5,_0x342d5f=this[_0x246eea(0x18e)][_0x246eea(0x308)](_0x6f46ec)[_0x246eea(0x19e)](E['DocIMEInputManagerService']),{redoCache:_0x583351}=_0x342d5f[_0x246eea(0x351)]();if(_0x583351[_0x246eea(0x314)]===0x0)return _0x24ddb5;let _0x5c45f1=a[_0x246eea(0x1c5)][_0x246eea(0x171)](_0x24ddb5[_0x246eea(0x306)][0x0]);for(let _0xaa49a5=0x0;_0xaa49a5<_0x583351[_0x246eea(0x314)];_0xaa49a5++){const _0x4f2bac={'id':_0x246eea(0x1a3),'params':{..._0x583351[_0xaa49a5]}},_0x2c4801=this['_transformService'][_0x246eea(0x224)](_0x5c45f1,_0x4f2bac,!0x1);if(m[_0x246eea(0x25c)](_0x2c4801))throw _0x2c4801['error'];_0x5c45f1=_0x2c4801[_0x246eea(0x35d)];}return{...a[_0x246eea(0x1c5)][_0x246eea(0x171)](_0x24ddb5),'mutations':[_0x5c45f1]};}[_0xe865d9(0x325)](_0x5cb1ea){const _0x1833f4=_0xe865d9,{unitID:_0x53b5cf}=_0x5cb1ea,_0xe21414=this[_0x1833f4(0x18e)][_0x1833f4(0x308)](_0x53b5cf)[_0x1833f4(0x19e)](E[_0x1833f4(0x140)]),{undoCache:_0x4f128a,redoCache:_0x808a25}=_0xe21414[_0x1833f4(0x351)]();if(_0x4f128a['length']===0x0||_0x808a25[_0x1833f4(0x314)]===0x0)return;const _0x34d52e=[],_0x2661fb=[];let _0x3e83e5=a[_0x1833f4(0x1c5)][_0x1833f4(0x171)](_0x5cb1ea[_0x1833f4(0x306)][0x0]),_0x37d54f=a[_0x1833f4(0x1c5)][_0x1833f4(0x171)](_0x5cb1ea['mutations'][0x0]);for(let _0x23990e=_0x4f128a[_0x1833f4(0x314)]-0x1;_0x23990e>=0x0;_0x23990e--){const _0x50d741={'id':_0x1833f4(0x1a3),'params':{..._0x4f128a[_0x23990e]}},_0x29fad4={'id':_0x1833f4(0x1a3),'params':{..._0x808a25[_0x23990e]}},_0xb2e316=this[_0x1833f4(0x277)][_0x1833f4(0x224)](_0x3e83e5,_0x50d741,!0x1),_0x3bcede=this[_0x1833f4(0x277)][_0x1833f4(0x224)](_0x37d54f,_0x29fad4,!0x1);if(m[_0x1833f4(0x25c)](_0xb2e316))throw _0xb2e316['error'];if(m[_0x1833f4(0x25c)](_0x3bcede))throw _0x3bcede['error'];_0x34d52e['unshift'](_0xb2e316[_0x1833f4(0x160)][_0x1833f4(0x18f)]),_0x2661fb[_0x1833f4(0x1a1)](_0x3bcede[_0x1833f4(0x160)][_0x1833f4(0x18f)]),_0x3e83e5=_0xb2e316[_0x1833f4(0x35d)],_0x37d54f=_0x3bcede[_0x1833f4(0x35d)];}_0xe21414[_0x1833f4(0x28d)]({'undoCache':_0x34d52e,'redoCache':_0x2661fb});}[_0xe865d9(0x265)](_0xd70a9){const _0x35a87d=_0xe865d9,{unitID:_0x2af042}=_0xd70a9,_0x130c1c=this[_0x35a87d(0x18e)][_0x35a87d(0x308)](_0x2af042)[_0x35a87d(0x19e)](E[_0x35a87d(0x140)]),_0x44f157=_0x130c1c[_0x35a87d(0x2dd)]();if(_0x44f157==null)return;const _0x30ffd5=[{'id':_0x35a87d(0x1a3),'params':{'unitId':_0xd70a9['unitID'],'actions':null,'textRanges':[_0x44f157]}}],_0x530ad5=this[_0x35a87d(0x277)][_0x35a87d(0x23d)](_0xd70a9,_0x30ffd5);if(!m['isTransformMutationsWithChangesetSuccess'](_0x530ad5))throw _0x530ad5[_0x35a87d(0x2a7)];const _0x471dc0=_0x530ad5[_0x35a87d(0x160)][0x0][_0x35a87d(0x18f)][_0x35a87d(0x1b9)];Array[_0x35a87d(0x375)](_0x471dc0)&&_0x471dc0[_0x35a87d(0x314)]&&_0x130c1c[_0x35a87d(0x2cd)](_0x471dc0[0x0]);}};z=kt([ce(0x0,a[_0xe865d9(0x2d0)](a[_0xe865d9(0x33d)])),ce(0x1,m[_0xe865d9(0x11b)]),ce(0x2,p[_0xe865d9(0x29a)])],z);var Ft=Object[_0xe865d9(0x16f)],Ht=(_0x38fcfd,_0x30937b,_0x12eb26,_0x15511c)=>{const _0x59ea7c=_0xe865d9;for(var _0x43295c=_0x15511c>0x1?void 0x0:_0x15511c?Ft(_0x30937b,_0x12eb26):_0x30937b,_0x51437f=_0x38fcfd[_0x59ea7c(0x314)]-0x1,_0x1d2620;_0x51437f>=0x0;_0x51437f--)(_0x1d2620=_0x38fcfd[_0x51437f])&&(_0x43295c=_0x1d2620(_0x43295c)||_0x43295c);return _0x43295c;},le=(_0x563de4,_0xb581a)=>(_0x4ee3e0,_0x145a43)=>_0xb581a(_0x4ee3e0,_0x145a43,_0x563de4);let J=class{constructor(_0x873f77,_0x2e1afa,_0xf3d826){const _0x1eec1a=_0xe865d9;this[_0x1eec1a(0x280)]=_0x873f77,this[_0x1eec1a(0x277)]=_0x2e1afa,this[_0x1eec1a(0x155)]=_0xf3d826;}[_0xe865d9(0x124)](_0x4a36ff){const _0x25f0d0=_0xe865d9;this[_0x25f0d0(0x350)](_0x4a36ff);}[_0xe865d9(0x1b5)](_0x55e90b){const _0x230bdf=_0xe865d9,{unitID:_0x105773}=_0x55e90b,{collaboration:_0x3fdfa3}=this[_0x230bdf(0x155)][_0x230bdf(0x2b2)](_0x105773);if(_0x3fdfa3[_0x230bdf(0x314)]===0x0)return _0x55e90b;let _0x251394=a[_0x230bdf(0x1c5)][_0x230bdf(0x171)](_0x55e90b[_0x230bdf(0x306)][0x0]);for(let _0x1aea1a=0x0;_0x1aea1a<_0x3fdfa3[_0x230bdf(0x314)];_0x1aea1a++){const _0x4fdb00={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3fdfa3[_0x1aea1a][_0x230bdf(0x251)],..._0x3fdfa3[_0x1aea1a]['redoState']}},_0x8d13b4=this[_0x230bdf(0x277)][_0x230bdf(0x224)](_0x251394,_0x4fdb00,!0x1);if(m['isTransformMutationFailure'](_0x8d13b4))throw _0x8d13b4[_0x230bdf(0x2a7)];_0x251394=_0x8d13b4[_0x230bdf(0x35d)];}return{...a[_0x230bdf(0x1c5)][_0x230bdf(0x171)](_0x55e90b),'mutations':[_0x251394]};}[_0xe865d9(0x350)](_0x46a263){const _0x3c461e=_0xe865d9,{unitID:_0x3f2b59}=_0x46a263,{history:_0x2f0bef,collaboration:_0x44a69e}=this[_0x3c461e(0x155)]['getStateCache'](_0x3f2b59);if(_0x2f0bef[_0x3c461e(0x314)]===0x0&&_0x44a69e[_0x3c461e(0x314)]===0x0)return;const _0x5b1135=[],_0x380e99=[];let _0x51bbae=a[_0x3c461e(0x1c5)]['deepClone'](_0x46a263[_0x3c461e(0x306)][0x0]),_0x3e66ce=a['Tools']['deepClone'](_0x46a263[_0x3c461e(0x306)][0x0]);for(let _0x244e62=_0x2f0bef[_0x3c461e(0x314)]-0x1;_0x244e62>=0x0;_0x244e62--){const _0x16c6e7={'id':_0x3c461e(0x1a3),'params':{'unitId':_0x2f0bef[_0x244e62][_0x3c461e(0x251)],..._0x2f0bef[_0x244e62]['undoState']}},_0xe5b60a={'id':_0x3c461e(0x1a3),'params':{'unitId':_0x2f0bef[_0x244e62][_0x3c461e(0x251)],..._0x2f0bef[_0x244e62]['redoState']}},_0x27dd86=this[_0x3c461e(0x277)][_0x3c461e(0x224)](_0x51bbae,_0x16c6e7,!0x1),_0x3cfc78=this[_0x3c461e(0x277)]['transformMutation'](_0x3e66ce,_0xe5b60a,!0x1);if(m[_0x3c461e(0x25c)](_0x27dd86))throw _0x27dd86[_0x3c461e(0x2a7)];if(m[_0x3c461e(0x25c)](_0x3cfc78))throw _0x3cfc78[_0x3c461e(0x2a7)];_0x5b1135[_0x3c461e(0x1a1)]({..._0x2f0bef[_0x244e62],'undoState':_0x27dd86[_0x3c461e(0x160)][_0x3c461e(0x18f)],'redoState':_0x3cfc78[_0x3c461e(0x160)]['params']}),_0x51bbae=_0x27dd86[_0x3c461e(0x35d)],_0x3e66ce=_0x3cfc78['m1Prime'];}_0x51bbae=a['Tools'][_0x3c461e(0x171)](_0x46a263['mutations'][0x0]),_0x3e66ce=a[_0x3c461e(0x1c5)]['deepClone'](_0x46a263[_0x3c461e(0x306)][0x0]);for(let _0x295a97=_0x44a69e['length']-0x1;_0x295a97>=0x0;_0x295a97--){const _0x3a7f5={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x44a69e[_0x295a97][_0x3c461e(0x251)],..._0x44a69e[_0x295a97][_0x3c461e(0x1a5)]}},_0x189fbd={'id':_0x3c461e(0x1a3),'params':{'unitId':_0x44a69e[_0x295a97]['unitId'],..._0x44a69e[_0x295a97][_0x3c461e(0x19c)]}},_0x5904ef=this[_0x3c461e(0x277)]['transformMutation'](_0x51bbae,_0x3a7f5,!0x1),_0x212aaf=this[_0x3c461e(0x277)][_0x3c461e(0x224)](_0x3e66ce,_0x189fbd,!0x1);if(m[_0x3c461e(0x25c)](_0x5904ef))throw _0x5904ef['error'];if(m[_0x3c461e(0x25c)](_0x212aaf))throw _0x212aaf[_0x3c461e(0x2a7)];_0x380e99[_0x3c461e(0x1a1)]({..._0x44a69e[_0x295a97],'undoState':_0x5904ef[_0x3c461e(0x160)]['params'],'redoState':_0x212aaf[_0x3c461e(0x160)][_0x3c461e(0x18f)]}),_0x51bbae=_0x5904ef[_0x3c461e(0x35d)],_0x3e66ce=_0x212aaf['m1Prime'];}this[_0x3c461e(0x155)][_0x3c461e(0x363)](_0x3f2b59,{'history':_0x5b1135,'collaboration':_0x380e99});}};J=Ht([le(0x0,a['Inject'](a[_0xe865d9(0x33d)])),le(0x1,m[_0xe865d9(0x11b)]),le(0x2,a['Inject'](E[_0xe865d9(0x27a)]))],J);var Yt=Object[_0xe865d9(0x16f)],Wt=(_0x4b5bcd,_0x4c7a54,_0x19a8a2,_0x5bed65)=>{const _0x3b704a=_0xe865d9;for(var _0x3a95ea=_0x5bed65>0x1?void 0x0:_0x5bed65?Yt(_0x4c7a54,_0x19a8a2):_0x4c7a54,_0x446361=_0x4b5bcd[_0x3b704a(0x314)]-0x1,_0x3c18b6;_0x446361>=0x0;_0x446361--)(_0x3c18b6=_0x4b5bcd[_0x446361])&&(_0x3a95ea=_0x3c18b6(_0x3a95ea)||_0x3a95ea);return _0x3a95ea;},Ne=(_0x54e819,_0x8d40fb)=>(_0x41e1c6,_0x1924ad)=>_0x8d40fb(_0x41e1c6,_0x1924ad,_0x54e819);let Z=class{constructor(_0x59f2d7,_0x86315){const _0x2dad21=_0xe865d9;this[_0x2dad21(0x280)]=_0x59f2d7,this['_transformService']=_0x86315;}[_0xe865d9(0x207)](_0x141b20){const _0x376e02=_0xe865d9;var _0x3912e2;const _0x2d0646=this[_0x376e02(0x280)][_0x376e02(0x1df)](Y[_0x376e02(0x161)]),_0x13a8f7=(_0x3912e2=_0x2d0646[_0x376e02(0x203)]())!=null?_0x3912e2:[];if(_0x13a8f7[_0x376e02(0x314)]===0x0)return;const _0x2174fe=_0x141b20['unitID'],_0x373b24=[{'id':_0x376e02(0x1a3),'params':{'unitId':_0x2174fe,'actions':null,'textRanges':_0x13a8f7}}],_0xc5a93c=this[_0x376e02(0x277)][_0x376e02(0x23d)](_0x141b20,_0x373b24);if(!m[_0x376e02(0x105)](_0xc5a93c))throw _0xc5a93c['error'];const _0x1f26be=_0xc5a93c['m2Prime'][0x0][_0x376e02(0x18f)]['textRanges'];Array[_0x376e02(0x375)](_0x1f26be)&&_0x1f26be[_0x376e02(0x314)]&&_0x2d0646[_0x376e02(0x2e1)](_0x1f26be,{'unitId':_0x2174fe,'subUnitId':_0x2174fe},!0x1);}};Z=Wt([Ne(0x0,a[_0xe865d9(0x2d0)](a[_0xe865d9(0x33d)])),Ne(0x1,m[_0xe865d9(0x11b)])],Z);var Vt=Object[_0xe865d9(0x16f)],Xt=(_0x582c72,_0x196d46,_0x196e86,_0x2476e5)=>{for(var _0x3b335f=_0x2476e5>0x1?void 0x0:_0x2476e5?Vt(_0x196d46,_0x196e86):_0x196d46,_0x2fed69=_0x582c72['length']-0x1,_0x14a904;_0x2fed69>=0x0;_0x2fed69--)(_0x14a904=_0x582c72[_0x2fed69])&&(_0x3b335f=_0x14a904(_0x3b335f)||_0x3b335f);return _0x3b335f;},N=(_0x1bb3a2,_0x3b595b)=>(_0x3aa6cb,_0x4662b3)=>_0x3b595b(_0x3aa6cb,_0x4662b3,_0x1bb3a2);let Q=class extends a[_0xe865d9(0x36c)]{constructor(_0x1aea3f,_0x2e2199,_0x2953c6,_0x1f20a5,_0x380849,_0x4d0706,_0x5aaaf1,_0x2f3377){const _0x47afe8=_0xe865d9;super(),h(this,_0x47afe8(0x1b3),new d[(_0x47afe8(0x273))](u[_0x47afe8(0x18c)][_0x47afe8(0x293)])),(this[_0x47afe8(0x155)]=_0x1aea3f,this[_0x47afe8(0x32c)]=_0x2e2199,this['_docTransformIMECacheService']=_0x2953c6,this[_0x47afe8(0x2d1)]=_0x1f20a5,this[_0x47afe8(0x2cb)]=_0x380849,this[_0x47afe8(0x20c)]=_0x4d0706,this[_0x47afe8(0x318)]=_0x5aaaf1,this[_0x47afe8(0x238)]=_0x2f3377,this[_0x47afe8(0x2ca)]());}[_0xe865d9(0x2ca)](){const _0x5b658b=_0xe865d9;this[_0x5b658b(0x11c)](this[_0x5b658b(0x32c)][_0x5b658b(0x24d)][_0x5b658b(0x309)](_0x32820a=>{const _0x5bc98c=_0x5b658b,_0x2f1635=this[_0x5bc98c(0x155)]['docStateChange$'][_0x5bc98c(0x309)](_0x38c769=>{const _0x489676=_0x5bc98c;if(_0x38c769==null)return;const {unitId:_0x375208,redoState:_0x2b02c5,commandId:_0x425d70}=_0x38c769;if(_0x375208!==_0x32820a[_0x489676(0x38f)])return;const _0x188ae8={'id':_0x425d70,'type':a[_0x489676(0x15d)][_0x489676(0xff)],'params':{'unitId':_0x375208,'actions':_0x2b02c5['actions'],'textRanges':null}};_0x32820a[_0x489676(0x388)](_0x188ae8);});if(_0x32820a[_0x5bc98c(0x11c)](_0x2f1635),_0x32820a instanceof u['DocCollaborationEntity']){const _0x8e63ab={'onTransformIME':_0x3ff45c=>this[_0x5bc98c(0x21d)][_0x5bc98c(0x17e)](_0x3ff45c),'onTransformState':_0x4074d3=>this[_0x5bc98c(0x2d1)][_0x5bc98c(0x124)](_0x4074d3),'onTransformSelections':_0x213546=>this[_0x5bc98c(0x2cb)][_0x5bc98c(0x207)](_0x213546),'onSyncEditingCollabCursor':_0x3e0c91=>this[_0x5bc98c(0x20c)]['syncEditingCollabCursor'](_0x3e0c91),'onTransformRemoteChangesetByIMECache':_0x2262c6=>this[_0x5bc98c(0x21d)]['transformRemoteChangeset'](_0x2262c6),'onTransformRemoteChangesetByStateCache':_0x43aa1c=>this[_0x5bc98c(0x2d1)][_0x5bc98c(0x1b5)](_0x43aa1c)};_0x32820a['addHandlerCallback'](_0x8e63ab);}}));}};Q=Xt([N(0x0,a[_0xe865d9(0x2d0)](E[_0xe865d9(0x27a)])),N(0x1,a[_0xe865d9(0x2d0)](u['CollaborationController'])),N(0x2,a[_0xe865d9(0x2d0)](z)),N(0x3,a[_0xe865d9(0x2d0)](J)),N(0x4,a[_0xe865d9(0x2d0)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,O[_0xe865d9(0x1e2)]),N(0x7,a[_0xe865d9(0x2d0)](a[_0xe865d9(0x10a)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x673a6c,_0x51b47e,_0x39b280,_0x10dab4)=>{const _0x5a7b2f=_0xe865d9;for(var _0x30e60f=_0x10dab4>0x1?void 0x0:_0x10dab4?Gt(_0x51b47e,_0x39b280):_0x51b47e,_0x4cb865=_0x673a6c[_0x5a7b2f(0x314)]-0x1,_0x15efa3;_0x4cb865>=0x0;_0x4cb865--)(_0x15efa3=_0x673a6c[_0x4cb865])&&(_0x30e60f=_0x15efa3(_0x30e60f)||_0x30e60f);return _0x30e60f;},_e=(_0x486070,_0x2fc447)=>(_0x53b7b5,_0x10e895)=>_0x2fc447(_0x53b7b5,_0x10e895,_0x486070);let ge=class extends a[_0xe865d9(0x36c)]{constructor(_0x486749,_0x52d976,_0x373448){const _0x4ce159=_0xe865d9;super(),h(this,_0x4ce159(0x338),new Map()),h(this,_0x4ce159(0x33b),new Map()),h(this,_0x4ce159(0x2d9),!0x1),(this[_0x4ce159(0x22a)]=_0x486749,this[_0x4ce159(0x176)]=_0x52d976,this[_0x4ce159(0x376)]=_0x373448);}['disableLocalCache'](){const _0x37ecb4=_0xe865d9;this[_0x37ecb4(0x2d9)]=!0x0;}[_0xe865d9(0x1e4)](){this['_disabled']=!0x1;}get[_0xe865d9(0x1ef)](){const _0x2d7951=_0xe865d9;return this[_0x2d7951(0x33b)];}[_0xe865d9(0x370)](){const _0x43acce=_0xe865d9;this[_0x43acce(0x365)]()[_0x43acce(0x211)](()=>super[_0x43acce(0x370)]());}async[_0xe865d9(0x34e)](_0xf2393e){const _0x5e9aff=_0xe865d9;return this[_0x5e9aff(0x2d9)]?null:this[_0x5e9aff(0x176)][_0x5e9aff(0x194)](u[_0x5e9aff(0x2c2)](_0xf2393e));}async[_0xe865d9(0x1fe)](_0x54cfc4,_0x217efb){const _0x2e4bc7=_0xe865d9;return!!this[_0x2e4bc7(0x176)][_0x2e4bc7(0x1f6)](_0x54cfc4,_0x217efb);}[_0xe865d9(0x358)](_0x1b67c6,_0x1d3f1d,_0x5ac5f3,_0x26e98c){const _0x3552c6=_0xe865d9,_0x27687b=this[_0x3552c6(0x376)][_0x3552c6(0x275)](_0x1b67c6);this[_0x3552c6(0x338)]['set'](_0x1b67c6,{'unitID':_0x1b67c6,'type':_0x1d3f1d,'awaitingChangeset':_0x5ac5f3,'mutations':_0x26e98c,'rev':_0x27687b}),this['_saveTaskMap'][_0x3552c6(0x12e)](_0x1b67c6)||this[_0x3552c6(0x352)](_0x1b67c6);}[_0xe865d9(0x352)](_0x455f5b){const _0x195713=_0xe865d9,_0x152402=this['_getSaveTimeout']();_0x152402===0x0?this[_0x195713(0x27f)](_0x455f5b):this[_0x195713(0x33b)][_0x195713(0x1c4)](_0x455f5b,setTimeout(()=>this['_saveCache'](_0x455f5b),_0x152402));}[_0xe865d9(0x1e7)](){const _0xcf9e84=_0xe865d9;var _0x330328;return(_0x330328=this['_configService'][_0xcf9e84(0x371)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x330328:u[_0xcf9e84(0x190)];}[_0xe865d9(0x27f)](_0x6c795e){const _0x2b901f=_0xe865d9,_0x4af3ac=this['_saveTaskMap'][_0x2b901f(0x1df)](_0x6c795e);return _0x4af3ac!==void 0x0&&window[_0x2b901f(0x166)](_0x4af3ac),this[_0x2b901f(0x176)]['setItem'](u[_0x2b901f(0x2c2)](_0x6c795e),this[_0x2b901f(0x338)]['get'](_0x6c795e))[_0x2b901f(0x211)](()=>this[_0x2b901f(0x33b)]['delete'](_0x6c795e));}async['exhaustSavingTask'](){const _0x583e10=_0xe865d9,_0xd9d8b7=[];this[_0x583e10(0x33b)][_0x583e10(0x284)]((_0x3ac7cb,_0x15ef5e)=>{const _0x35363b=_0x583e10;window[_0x35363b(0x166)](_0x3ac7cb),_0xd9d8b7['push'](this['_saveCache'](_0x15ef5e)['then'](()=>{const _0x237d2b=_0x35363b;this[_0x237d2b(0x33b)][_0x237d2b(0x361)](_0x15ef5e);}));}),await Promise['all'](_0xd9d8b7);}};ge=Kt([_e(0x0,a[_0xe865d9(0x11e)]),_e(0x1,a[_0xe865d9(0x359)]),_e(0x2,a[_0xe865d9(0x2d0)](m[_0xe865d9(0x106)]))],ge);class Be extends a['RxDisposable']{constructor(){const _0x1a18dc=_0xe865d9;super(),h(this,'urlChange$'),this['urlChange$']=d[_0x1a18dc(0x22d)](window,'popstate')[_0x1a18dc(0x333)](d[_0x1a18dc(0x17f)](this['dispose$']),d['shareReplay'](0x1),d['mapTo'](void 0x0));}[_0xe865d9(0x25a)](_0x2f62d3,_0x2cf883,_0x334c03=!0x1){const _0x5b1c6b=_0xe865d9,_0x48571b=new URL(window['location']['href']);_0x48571b[_0x5b1c6b(0x19b)][_0x5b1c6b(0x1c4)](_0x2f62d3,_0x2cf883),_0x334c03?window[_0x5b1c6b(0x1da)][_0x5b1c6b(0xfc)]('','',_0x48571b[_0x5b1c6b(0x396)]()):window[_0x5b1c6b(0x1da)]['pushState']('','',_0x48571b[_0x5b1c6b(0x396)]());}[_0xe865d9(0x222)](_0x1c3d9c,_0x34d39e=!0x1){const _0x174732=_0xe865d9,_0x2bc6f1=new URL(window[_0x174732(0x26d)][_0x174732(0x202)]);_0x2bc6f1['searchParams'][_0x174732(0x361)](_0x1c3d9c),_0x34d39e?window['history'][_0x174732(0xfc)]('','',_0x2bc6f1[_0x174732(0x396)]()):window['history'][_0x174732(0x229)]('','',_0x2bc6f1[_0x174732(0x396)]());}[_0xe865d9(0x35f)](_0x832bae){const _0x97464d=_0xe865d9;var _0x4fc681;return(_0x4fc681=new URL(window[_0x97464d(0x26d)]['href'])[_0x97464d(0x19b)][_0x97464d(0x1df)](_0x832bae))!=null?_0x4fc681:void 0x0;}}function _0x3a4a(){const _0x28b1a7=['Optional','bottom','1em','_cursorInfo$','propertyIsEnumerable','HTTPService','blue.400','LICENSE_DISTRO_REJECTED','_localeService','generateRandomId','resize','DataLoaderService','11HbimIj','transformMutationsWithChangeset','hide','OffLineIcon','startColumn','[CollaborationDataLoaderController]','_render','addEventListener','push','tag','DesktopCollaborationStatusDisplayController','YUUMI_NO_CUBOID_FOR_QUESTION','save','transformByState','PERMISSION_DENIED','Tooltip','roomMembers$','entityInit$','off-line-icon_clip0_910_343','RxDisposable','getMergeData','unitId','transform','CONFLICT','call','setInterval','_online','handleDeleteRangeMoveLeft','backgroundColor','startRow','setParam','getFocusedUnit','isTransformMutationFailure','24935XeqDaL','xlink:href','disposeUnit','_handleHeartbeatEvent','contains','OFFLINE','APPLY_DUPLICATED','_backgroundColor','_transformPreviousActiveRange','_removeClearOtherTimer','_context','_toggleOnline','Failed','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','collab-rect-range-','currentColor','location','LOGIN_FAILED','INVITE_CODE_ALREADY_BOUND','YUUMI_ALL_TABLES_IS_INVALID','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_eventUnsubscribe','BehaviorSubject','_handleLeaveEvent','getCurrentRevOfUnit','touchDependencies','_transformService','useDependency','onTransformChange$','DocStateChangeManagerService','prototype','UNAUTHENTICATED','beginPath','drawWith','_saveCache','_injector','_collabCursorController','storage','_registerDependencies','forEach','_initDependencies','ThemeService','rgba(255,\x20255,\x20255,\x200.01)','_shapes','imageSourceType','Rect','VIEW_MAIN','_anchorDot','setUndoRedoMutationParamsCache','Vector2','IBeforeCloseService','string','on-line-icon','_localCacheService','NOT_COLLAB','registerRefRange','_ensureSubject','ALREADY_EXISTS','name','source','font','IRenderManagerService','next','handleInsertCol','841473XjvQQp','top','CHANGESET_REVISION_CONFILICT','_init','activeSheet$','_getScale','mask','IURLService','complete','serializeRangeWithSheet','error','subscribeEvent','getUniverSheetInstance','CollaborationSocketService','@univerjs/docs-ui','PENDING','getMemberID','EMAIL_HAS_BEEN_BOUND','@univerjs/core','getUnhiddenWorksheets','Module','getStateCache','BrowserCollaborationSocketService','pluginName','measureText','endRow','handleMoveRange','dispose$','lineTo','_instanceService','children','_removeCollabCursors','onPointerEnter$','SHEET_VIEWPORT_KEY','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getCollabCursors$','APPLY_PERMISSION_DENIED','getLocalCacheKey','Shape','_onRefRangeChange','getValue','YUUMI_RATE_OVER_LIMIT','getMember','YUUMI_ASYNCIO_CANCELLED','getUnitId','_initEntityListener','_docTransformSelectionsService','_getSheetObject','setActiveRange','override','_hovered','Inject','_docTransformStateCacheService','SetWorksheetActivateCommand','_entities','permission.title','show','http://www.w3.org/2000/svg','max','subunit','_disabled','_config','handleInsertRangeMoveDown','symbol','getActiveRange','min','fillRule','text','replaceDocRanges','@univerjs-pro/collaboration','NOT_FOUND','SNAPSHOT_HAS_BEEN_REMOVED','getTypeOfUnitDisposed$','EMAIL_VERIFY_CODE_MISMATCH','InsertRowCommandId','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','cursorInfo','_roomMembers$','send','1228752IyjHXg','engine','522546GTAXXt','black','asObservable','SYNCED','DeleteRangeMoveLeftCommandId','DisposableCollection','event$','merge','_labelPosition','handleIRemoveCol','_onCursorDelete','collabStatus.conflict','editingUnit','_syncEditingCollabCursorService','split','_hover','TEXT','defs','getCurrentSelections','executeCommand','IImageIoService','values','Unknown\x20user','evenodd','mutations','defineProperty','getRenderById','subscribe','stringify','_drawTextRange','fillText','getCurrent','width','_heartbeatTimer','trim','ISnapshotServerService','yellow.400','MemberService','length','@univerjs/design','addObject','toRgbString','_messageService','unit','_session','current','_collaborationUIEventService','@univerjs/ui','CLOSE_ROOM','restore','RemoveColCommandId','_lastPointer','_updateCollabCursors','SUBMIT_CHANGESET_TIMEOUT','CollaborationDataLoaderController','_transformUndoRedoStack','roomMembers','requireSession','red.300','_sheetSkeletonManagerService','_collabSessionService','PY_RUNTIME_SCRIPT_ERROR','_collaborationController','_color','_startSheetCollabCursor','_onCursorUpdate','getOffsetConfig','DOC_RANGE_TYPE','CollaborationUIEventService','pipe','clearInterval','toDisposable','@univerjs/network','on-line-icon_clip0_910_349','_cachedData','M0\x200H16V16H0z','post','_saveTaskMap','onRendered','Injector','[RemoteUniscriptService]:\x20no\x20focused\x20unit','InsertRangeMoveDownCommandId','useObservable','react/jsx-runtime','YUUMI_TABLE_NOT_FOUND_IN_UNIT','AWAITING','_startDocCollabCursor','NodePositionConvertToCursor','currentTheme$','getViewport','YUUMI_CONNECTOR_URL_NOT_FOUND','registerDependencies','_name','_id','univerjs-icon\x20univerjs-icon-','TOO_MANY_REQUESTS','loadOfflineData','_handleJoinEvent','_transformHistoryAndStateStack','getUndoRedoMutationParamsCache','_scheduleSaving','includes','_updateSubUnitFromURLParams','ONLINE','debug','urlChange$','updateOfflineData','ILocalStorageService','white','241507klcHBC','RemoveRowCommandId','m1Prime','apply','getParam','arc','delete','isEditing','setStateCache','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','exhaustSavingTask','LICENSE_EXPORT_SIZE_EXCEEDED','_textBubble','getAncestorScale','deserializeRangeWithSheet','getActiveSheet','_entityInit$','Disposable','className','_unitOnClients','idSuffix','dispose','getConfig','UNRECOGNIZED','forwardRef','setTimeout','isArray','_revisionService','_getMergeRange','_getAnchorBounding','collabStatus.fetchMiss','_clearOtherTimers','addObjects','OTHER_CLIENTS_EDITING','ACTIVE_UNIT_EVENT_CHANNEL','closePath','runRefRangeMutations','map','unsubscribe','_beforeCloseService','body','replace','ranges','round','_dataLoaderService','onLocalMutation','labelPosition','@univerjs/engine-formula','UniverCollaborationClientUIPlugin','url(#off-line-icon_clip0_910_343)','_scheduleClearOtherTimer','_drawRectRange','unitID','_univerInstanceService','getSheetBySheetId','_draw','CollaborationStatusDisplay','fillStyle','setAlpha','toString','getSheetId','concat','4182216yyRJUM','getRangePointData','getCollabEntity$','975928kEbbTM','#FFF','range','replaceState','data','SessionStatus','MUTATION','_commandService','onMouseMove','type','WebSocketService','indexOf','isTransformMutationsWithChangesetSuccess','RevisionService','NodePositionConvertToRectRange','ColorKit','RECT','LocaleService','height','_anchor','mergeOverrideWithDependencies','ILocalCacheService','TEXT_RANGE_LAYER_INDEX','registerRenderModule','svg','path','DeleteRangeMoveUpCommandId','Rectangle','collaboration.single-unit.warning','_initEvent','_hideTimer','_initResize','focused$','makeDirty','ITransformService','disposeWithMe','createIdentifier','IConfigService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','INVALID_INVITE_CODE','debounce','SheetCollabCursorShape','282IlAgqT','transformStateCache','endColumn','MOBILE_VERIFY_CODE_MISMATCH','row','YUUMI_SUBSCRIPTION_NOT_FOUND','LICENSE_MAX_UNITS_EXCEEDED','INTERNAL_ERROR','SOCKET_FAILED_RETRY','_createSocketURL','assignAColorForMemberID','has','INVITE_CODE_REQUIRED','_colorIndex','syncEditingCollabCursor','jsxs','getCellPositionByOffset','0\x200\x2017\x2016','find','onPointerLeave$','BuiltInUIPart','filter','useRef','session.connection-failed','UniverInstanceType','permission.content','findNodePositionByCharIndex','CollaborationEvent','_unitStatus','DocIMEInputManagerService','collab-client.tooltip.reconnect','ISocketService','_refreshCollabCursors','setShapeProps','handleInsertRow','collabStatus.syncing','getColor','APPLY_REVISION_CONFILICT','green.600','cursorInfo$','Error','entries','_docSkeletonManagerService','invokeId','getSkeleton','UNIVER_DOC','_initStatusListener','SOCKET_FAILED','url(#$1','@univerjs/engine-render','_docStateChangeManagerService','DocSkeletonManagerService','_colorAssignService','_themeService','univer-flex\x20univer-items-center','univer-mr-2\x20univer-flex\x20univer-text-xl','_collabCursorState$','JOIN_ROOM_FAILED','CommandType','unload','_document','m2Prime','DocSelectionManagerService','memberID','ENSURE_SNAPSHOT_EXECUTION','color','USERS_LEAVE','clearTimeout','OTHER_CLIENT_EDITING','COMPLETION_FINISHED','debounceTime','icon','some','extend','_toggleOffline','div','getOwnPropertyDescriptor','getTypeOfUnitAdded$','deepClone','SetDocZoomRatioOperation','reconnect','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','whenReady','_localStorageService','collab-text-anchor-','random','displayName','INVALID_ARGUMENT','UPDATE_CURSOR','EffectRefRangId','_refRangeService','transformIMECache','takeUntil','eventID','addClipboardHook','getCoordByCell','IUniverInstanceService','selection','_logService','_updateLocalCursor','distinctUntilChanged','clipPath','code','RemoteUniscriptService','moveTo','CollaborationStatus','sessionStatus$','_renderManagerService','params','LOCAL_CACHE_INTERVAL','runOnServer','_handleHover','InsertRangeMoveRightCommandId','getItem','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','COLORS','LICENSE_IMPORT_SIZE_EXCEEDED','YUUMI_URL_COL_OUT_OF_RANGE','search','jsx','searchParams','redoState','UnitStatus','with','switchMap','@univerjs/sheets','unshift','collaboration-client.offline-data-not-saved','doc.mutation.rich-text-editing','SetSelectionsOperation','undoState','APPLY_NON_SEQUENTIAL_REVISION','SheetsSelectionsService','_cursors','hasOwnProperty','combineLatest','USER_NOT_INVITED_CODE','uni.network.url-service','SheetSkeletonManagerService','defIds','_range','getOwnPropertySymbols','YUUMI_AI_RUN_FAILED','_handleEvent','_status$','AWAITING_WITH_PENDING','transformRemoteChangeset','isActive','getColorFromTheme','MoveRangeCommandId','textRanges','OnLineIcon','attrs','2rIHWrJ','Warning','createInstance','throttleTime','CollaborationUIEventId','registerBeforeClose','rxjs','ICommandService','set','Tools','MessageType','42GOUiqU','0\x200\x2016\x2016','DependentOn','flatMap','useCallback','handleDeleteRangeMoveUp','_updateURLWithCurrentState','init','column','currentSkeleton$','fill','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','clsx','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','_initStatusComponent','Subject','RichTextEditingMutation','ILogService','toStringTag','history','_cursorShapes','IDocClipboardService','CONNECTOR_DATA_TOO_LARGE','/run/','get','translate(.97)','@univerjs/rpc','IMessageService','_httpService','enableLocalCache','_registerRenderDependencies','triggerDblclick','_getSaveTimeout','from','origin','getCurrentUnitForType','_setupBeforeClosingHandler','Workbook','collabStatus.synced','IUIPartsService','saveTaskMap','fromEventSubject','SetTextSelectionsOperation','_getSessionTicket','_docClipboardService','MOBILE_HAS_BEEN_BOUND','collaboration.closeRoom','setItem','url(#on-line-icon_clip0_910_349)','_notificationService','UNIVER_SHEET','saveImage','size','_memberService','RefRangeService','saveOfflineData','newValue','WebURLService','result','href','getDocRanges','runId','collabCursorState$','_selfUnitIDs','transformSelections','_imageIoService','_uiPartsService','add','_scene','_docSyncEditingCollabCursorService','off-line-icon','APPLY_REJECT','createElement','getRelativeToViewportCoord','then','SNAPSHOT_INVALID_SNAPSHOT','session.collaboration-timeout','onCommandExecuted','assign','collaboration-client-ui.config','_send','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_scheduleHeartbeat','NO_OTHER_CLIENTS_EDITING','_assignedColors','10aKnJJY','_docTransformIMECacheService','onStarting','@univerjs/docs','_drawAnchor','getVpScrollXYInfoByPosToVp','removeParam','_urlService','transformMutation','colorChannel1','...','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','Plugin','pushState','_configService','parse','handleIRemoveRow','fromEvent','none','_cursor'];_0x3a4a=function(){return _0x28b1a7;};return _0x3a4a();}var qt=Object[_0xe865d9(0x307)],zt=Object[_0xe865d9(0x16f)],Jt=(_0x53e2c7,_0x492524,_0xeb0f05)=>_0x492524 in _0x53e2c7?qt(_0x53e2c7,_0x492524,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xeb0f05}):_0x53e2c7[_0x492524]=_0xeb0f05,Zt=(_0x479b9e,_0x4b19f5,_0x4b76fa,_0x7178c6)=>{for(var _0x101104=_0x7178c6>0x1?void 0x0:_0x7178c6?zt(_0x4b19f5,_0x4b76fa):_0x4b19f5,_0x35d0d7=_0x479b9e['length']-0x1,_0x65f799;_0x35d0d7>=0x0;_0x35d0d7--)(_0x65f799=_0x479b9e[_0x35d0d7])&&(_0x101104=_0x65f799(_0x101104)||_0x101104);return _0x101104;},he=(_0x2ae6d9,_0x454b23)=>(_0x26a991,_0x48c7e3)=>_0x454b23(_0x26a991,_0x48c7e3,_0x2ae6d9),Qt=(_0x2896e5,_0x44f239,_0x48bad8)=>Jt(_0x2896e5,_0x44f239+'',_0x48bad8);const es=_0xe865d9(0x227);exports[_0xe865d9(0x38b)]=class extends a[_0xe865d9(0x228)]{constructor(_0x5db97a=Ue,_0x25c777,_0x5a8eee,_0x5505e4){const _0x5b3419=_0xe865d9;super(),this['_config']=_0x5db97a,this['_renderManagerService']=_0x25c777,this[_0x5b3419(0x280)]=_0x5a8eee,this[_0x5b3419(0x22a)]=_0x5505e4;const {..._0x4524eb}=a[_0x5b3419(0x2f5)]({},Ue,this[_0x5b3419(0x2da)]);this[_0x5b3419(0x22a)]['setConfig']($t,_0x4524eb);}[_0xe865d9(0x21e)](){const _0x4f7198=_0xe865d9;this[_0x4f7198(0x283)](),this[_0x4f7198(0x285)]();}[_0xe865d9(0x33c)](){const _0x160f4c=_0xe865d9;this[_0x160f4c(0x1e5)]();}[_0xe865d9(0x283)](){const _0x453736=_0xe865d9;var _0x4f72f9;const _0x1ecd5b=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x453736(0x142)],{'useClass':G[_0x453736(0x103)]}],[u[_0x453736(0x10e)],{'useClass':ge}],[exports[_0x453736(0x246)]],[Q],[q],[x],[de],[exports[_0x453736(0x324)]]];a[_0x453736(0x349)](this[_0x453736(0x280)],a[_0x453736(0x10d)](_0x1ecd5b,(_0x4f72f9=this['_config'])==null?void 0x0:_0x4f72f9[_0x453736(0x2ce)]));}[_0xe865d9(0x1e5)](){const _0x2f6dad=_0xe865d9;this['disposeWithMe'](this[_0x2f6dad(0x18e)][_0x2f6dad(0x110)](a[_0x2f6dad(0x13b)][_0x2f6dad(0x150)],[fe])),this[_0x2f6dad(0x11c)](this[_0x2f6dad(0x18e)][_0x2f6dad(0x110)](a[_0x2f6dad(0x13b)][_0x2f6dad(0x1f9)],[ve]));}['_initDependencies'](){const _0x29e441=_0xe865d9;a[_0x29e441(0x276)](this[_0x29e441(0x280)],[[x],[exports[_0x29e441(0x246)]],[Q],[q],[exports[_0x29e441(0x324)]]]);}},Qt(exports[_0xe865d9(0x38b)],_0xe865d9(0x2b4),es),exports[_0xe865d9(0x38b)]=Zt([a[_0xe865d9(0x1c9)](u['UniverCollaborationClientPlugin']),he(0x1,p['IRenderManagerService']),he(0x2,a[_0xe865d9(0x2d0)](a['Injector'])),he(0x3,a['IConfigService'])],exports[_0xe865d9(0x38b)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x1eab19,_0xc69cf0,_0x365b48,_0x20a316)=>{const _0x3838b0=_0xe865d9;for(var _0xb44833=_0x20a316>0x1?void 0x0:_0x20a316?ts(_0xc69cf0,_0x365b48):_0xc69cf0,_0x4257e0=_0x1eab19[_0x3838b0(0x314)]-0x1,_0x1280a1;_0x4257e0>=0x0;_0x4257e0--)(_0x1280a1=_0x1eab19[_0x4257e0])&&(_0xb44833=_0x1280a1(_0xb44833)||_0xb44833);return _0xb44833;},H=(_0x3aa453,_0x31952d)=>(_0x1201c2,_0x37a8ef)=>_0x31952d(_0x1201c2,_0x37a8ef,_0x3aa453);exports[_0xe865d9(0x2b3)]=class extends u[_0xe865d9(0x2aa)]{constructor(_0x34667b,_0x382bf6,_0x481d59,_0x54df62,_0x344594){super(_0x34667b,_0x382bf6,_0x481d59,_0x54df62,_0x344594);}async['createSocket'](_0xa810e0){const _0x1fcf04=_0xe865d9,_0x4353e5=await this['_getSessionTicket'](),_0x5660d8=this[_0x1fcf04(0x12c)](_0xa810e0,_0x4353e5);return this['_doCreateSocket'](_0x5660d8);}[_0xe865d9(0x12c)](_0x1850f5,_0x25a44b){const _0x44a7ba=_0xe865d9,_0x2afa08=typeof window>'u'?new URL(_0x1850f5):new URL(_0x1850f5,window[_0x44a7ba(0x26d)][_0x44a7ba(0x1e9)]);_0x2afa08['searchParams'][_0x44a7ba(0x1c4)]('sessionTicket',_0x25a44b);const _0x14e761=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x44a7ba(0x26d)][_0x44a7ba(0x199)]);return _0x14e761['get'](_0x44a7ba(0x204))&&_0x2afa08[_0x44a7ba(0x19b)][_0x44a7ba(0x1c4)](_0x44a7ba(0x204),_0x14e761[_0x44a7ba(0x1df)](_0x44a7ba(0x204))),_0x2afa08[_0x44a7ba(0x396)]();}async[_0xe865d9(0x1f2)](){const _0x5e3076=_0xe865d9;var _0x581811,_0x44bc4e,_0xd35a73;const _0x34e729=this[_0x5e3076(0x22a)]['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x1a35dc=(_0x581811=_0x34e729==null?void 0x0:_0x34e729['wsSessionTicketUrl'])!=null?_0x581811:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0xd35a73=(_0x44bc4e=(await this['_httpService'][_0x5e3076(0x1df)](_0x1a35dc,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x44bc4e['ticket'])!=null?_0xd35a73:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a[_0xe865d9(0x2d0)](a[_0xe865d9(0x33d)])),H(0x1,a[_0xe865d9(0x2d0)](G[_0xe865d9(0x235)])),H(0x2,a[_0xe865d9(0x11e)]),H(0x3,a['ILogService']),H(0x4,m[_0xe865d9(0x311)])],exports[_0xe865d9(0x2b3)]);const Me=0x7530,Le=_0xe865d9(0x37d);class is extends a[_0xe865d9(0x36c)]{constructor(){const _0x3449a2=_0xe865d9;super(),h(this,_0x3449a2(0x34b),a['generateRandomId']()),h(this,_0x3449a2(0x206),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x3449a2(0x30f),null),h(this,_0x3449a2(0x37a),new Map()),h(this,_0x3449a2(0x13f),new Map()),this[_0x3449a2(0x2a0)]();}[_0xe865d9(0x370)](){const _0x161eaf=_0xe865d9;super['dispose'](),this[_0x161eaf(0x37a)]['forEach']((_0x13a4a1,_0x2d66fd)=>this[_0x161eaf(0x266)](_0x2d66fd)),this[_0x161eaf(0x30f)]&&window[_0x161eaf(0x334)](this[_0x161eaf(0x30f)]);}['getUnitStatus$'](_0x7657cb){const _0x361973=_0xe865d9;return this['_ensureSubject'](_0x7657cb)['pipe'](d[_0x361973(0x187)]());}[_0xe865d9(0x2fa)](_0x1d32d0){const _0x57f1b9=_0xe865d9;this[_0x57f1b9(0x206)]['size']===0x0&&this[_0x57f1b9(0x219)](),this[_0x57f1b9(0x206)][_0x57f1b9(0x20a)](_0x1d32d0),this[_0x57f1b9(0x217)]({'type':0x0,'memberID':this[_0x57f1b9(0x34b)],'unitIDs':[_0x1d32d0],'isForwarded':!0x1});}[_0xe865d9(0x25f)](_0x2ab1d9){const _0x9bcd9f=_0xe865d9;this['_selfUnitIDs'][_0x9bcd9f(0x361)](_0x2ab1d9),this[_0x9bcd9f(0x206)]['size']===0x0&&this[_0x9bcd9f(0x30f)]&&window['clearInterval'](this[_0x9bcd9f(0x30f)]);}[_0xe865d9(0x2a0)](){const _0x5c80e7=_0xe865d9;this[_0x5c80e7(0x11c)](a[_0x5c80e7(0x335)](d[_0x5c80e7(0x22d)](window,_0x5c80e7(0x282))[_0x5c80e7(0x309)](_0x477321=>{const _0x218136=_0x5c80e7;if(_0x477321['key']!==Le||!_0x477321[_0x218136(0x1ff)])return;const _0x4482e1=JSON[_0x218136(0x22b)](_0x477321[_0x218136(0x1ff)]);this[_0x218136(0x1b2)](_0x4482e1);}))),window[_0x5c80e7(0x243)](_0x5c80e7(0x15e),()=>this[_0x5c80e7(0x217)]({'type':0x1,'memberID':this[_0x5c80e7(0x34b)],'unitIDs':Array[_0x5c80e7(0x1e8)](this[_0x5c80e7(0x206)])}));}['_handleEvent'](_0x50cbe7){const _0x4bbb17=_0xe865d9;switch(_0x50cbe7[_0x4bbb17(0x102)]){case 0x0:this[_0x4bbb17(0x34f)](_0x50cbe7);break;case 0x1:this[_0x4bbb17(0x274)](_0x50cbe7);break;case 0x2:this[_0x4bbb17(0x260)](_0x50cbe7);break;}}['_handleJoinEvent'](_0x440375){const _0x16750f=_0xe865d9,{unitIDs:_0x58181b,memberID:_0xaa5e36,isForwarded:_0x5be1c2}=_0x440375;_0x58181b[_0x16750f(0x284)](_0x405fe7=>{const _0x41f537=_0x16750f;if(!_0x5be1c2&&this[_0x41f537(0x36e)][_0x41f537(0x12e)](_0x405fe7)&&this[_0x41f537(0x295)](_0x405fe7)['next'](u[_0x41f537(0x19d)]['OTHER_CLIENTS_EDITING']),!this[_0x41f537(0x36e)][_0x41f537(0x12e)](_0x405fe7)||!this[_0x41f537(0x36e)][_0x41f537(0x1df)](_0x405fe7)[_0x41f537(0x12e)](_0xaa5e36)){const _0x922727=this['_unitOnClients'][_0x41f537(0x1df)](_0x405fe7)||new Set();_0x922727['add'](_0xaa5e36),this[_0x41f537(0x36e)][_0x41f537(0x1c4)](_0x405fe7,_0x922727),this[_0x41f537(0x38d)](_0xaa5e36);}}),_0x5be1c2||this['_send']({'type':0x0,'memberID':this[_0x16750f(0x34b)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0xe865d9(0x38d)](_0x1b15bc){const _0x17382b=_0xe865d9;this[_0x17382b(0x266)](_0x1b15bc);const _0x2a562c=window[_0x17382b(0x374)](()=>{const _0x1059b4=_0x17382b;this[_0x1059b4(0x36e)][_0x1059b4(0x284)](_0x4601ad=>{const _0x461d8f=_0x1059b4;_0x4601ad[_0x461d8f(0x361)](_0x1b15bc);});},Me*0x2);this[_0x17382b(0x37a)][_0x17382b(0x1c4)](_0x1b15bc,_0x2a562c);}[_0xe865d9(0x266)](_0x19273d){const _0x57aac1=_0xe865d9;if(this['_clearOtherTimers'][_0x57aac1(0x12e)](_0x19273d)){const _0x38d20d=this[_0x57aac1(0x37a)][_0x57aac1(0x1df)](_0x19273d);_0x38d20d&&window[_0x57aac1(0x166)](_0x38d20d),this[_0x57aac1(0x37a)]['set'](_0x19273d,null);}}[_0xe865d9(0x274)](_0x1af3c6){const _0x3d8a0b=_0xe865d9,{memberID:_0x1b9f16,unitIDs:_0x32059a}=_0x1af3c6;_0x32059a[_0x3d8a0b(0x284)](_0x53db0f=>{const _0x19aa50=_0x3d8a0b;var _0x403cb1;const _0x4d236d=this[_0x19aa50(0x36e)]['get'](_0x53db0f);_0x4d236d&&(_0x4d236d['delete'](_0x1b9f16),(_0x403cb1=this[_0x19aa50(0x295)](_0x53db0f))==null||_0x403cb1[_0x19aa50(0x29b)](_0x4d236d[_0x19aa50(0x1fb)]===0x0?u[_0x19aa50(0x19d)][_0x19aa50(0x21a)]:u[_0x19aa50(0x19d)][_0x19aa50(0x37c)]));}),this[_0x3d8a0b(0x266)](_0x1b9f16);}[_0xe865d9(0x260)](_0x145e96){const _0x7c2a5e=_0xe865d9;this[_0x7c2a5e(0x38d)](_0x145e96[_0x7c2a5e(0x162)]);}[_0xe865d9(0x217)](_0x21c3ae){localStorage['setItem'](Le,JSON['stringify'](_0x21c3ae));}[_0xe865d9(0x219)](){const _0xfa33de=_0xe865d9;this[_0xfa33de(0x30f)]=window[_0xfa33de(0x255)](()=>{const _0x39bc9f=_0xfa33de;this[_0x39bc9f(0x217)]({'type':0x2,'memberID':this[_0x39bc9f(0x34b)]});},Me);}[_0xe865d9(0x295)](_0x428a27){const _0x5b5667=_0xe865d9;return this[_0x5b5667(0x13f)][_0x5b5667(0x12e)](_0x428a27)||this[_0x5b5667(0x13f)][_0x5b5667(0x1c4)](_0x428a27,new d[(_0x5b5667(0x273))](u[_0x5b5667(0x19d)][_0x5b5667(0x21a)])),this[_0x5b5667(0x13f)][_0x5b5667(0x1df)](_0x428a27);}}var je=(_0x54e641=>(_0x54e641[_0x54e641['UNDEFINED']=0x0]='UNDEFINED',_0x54e641[_0x54e641['OK']=0x1]='OK',_0x54e641[_0x54e641[_0xe865d9(0x12a)]=0x2]=_0xe865d9(0x12a),_0x54e641[_0x54e641['PERMISSION_DENIED']=0x3]=_0xe865d9(0x24a),_0x54e641[_0x54e641['NOT_FOUND']=0x4]=_0xe865d9(0x2e3),_0x54e641[_0x54e641[_0xe865d9(0x27c)]=0x5]=_0xe865d9(0x27c),_0x54e641[_0x54e641[_0xe865d9(0x296)]=0x6]=_0xe865d9(0x296),_0x54e641[_0x54e641[_0xe865d9(0x17a)]=0x7]=_0xe865d9(0x17a),_0x54e641[_0x54e641[_0xe865d9(0x34d)]=0x8]=_0xe865d9(0x34d),_0x54e641[_0x54e641[_0xe865d9(0x168)]=0x9]=_0xe865d9(0x168),_0x54e641[_0x54e641['LOGIN_FAILED']=0xa]=_0xe865d9(0x26e),_0x54e641[_0x54e641[_0xe865d9(0x126)]=0xb]=_0xe865d9(0x126),_0x54e641[_0x54e641['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x54e641[_0x54e641[_0xe865d9(0x2e6)]=0xd]=_0xe865d9(0x2e6),_0x54e641[_0x54e641[_0xe865d9(0x364)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x54e641[_0x54e641[_0xe865d9(0x29f)]=0x1389]=_0xe865d9(0x29f),_0x54e641[_0x54e641[_0xe865d9(0x212)]=0x1771]=_0xe865d9(0x212),_0x54e641[_0x54e641['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0xe865d9(0x2e4),_0x54e641[_0x54e641[_0xe865d9(0x163)]=0x1773]=_0xe865d9(0x163),_0x54e641[_0x54e641[_0xe865d9(0x20e)]=0x1b59]='APPLY_REJECT',_0x54e641[_0x54e641[_0xe865d9(0x1a6)]=0x1b5a]=_0xe865d9(0x1a6),_0x54e641[_0x54e641['APPLY_REVISION_CONFILICT']=0x1b5b]=_0xe865d9(0x148),_0x54e641[_0x54e641[_0xe865d9(0x2c1)]=0x1b5c]=_0xe865d9(0x2c1),_0x54e641[_0x54e641[_0xe865d9(0x263)]=0x1b5d]=_0xe865d9(0x263),_0x54e641[_0x54e641[_0xe865d9(0x1dd)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x54e641[_0x54e641[_0xe865d9(0x129)]=0x2329]=_0xe865d9(0x129),_0x54e641[_0x54e641['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x54e641[_0x54e641[_0xe865d9(0x197)]=0x232b]=_0xe865d9(0x197),_0x54e641[_0x54e641[_0xe865d9(0x366)]=0x232c]=_0xe865d9(0x366),_0x54e641[_0x54e641[_0xe865d9(0x237)]=0x232d]=_0xe865d9(0x237),_0x54e641[_0x54e641['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x54e641[_0x54e641[_0xe865d9(0x198)]=0x2712]=_0xe865d9(0x198),_0x54e641[_0x54e641[_0xe865d9(0x2c6)]=0x2713]=_0xe865d9(0x2c6),_0x54e641[_0x54e641[_0xe865d9(0x128)]=0x2714]=_0xe865d9(0x128),_0x54e641[_0x54e641[_0xe865d9(0x247)]=0x271a]=_0xe865d9(0x247),_0x54e641[_0x54e641[_0xe865d9(0x2c8)]=0x271b]=_0xe865d9(0x2c8),_0x54e641[_0x54e641['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0xe865d9(0x342),_0x54e641[_0x54e641[_0xe865d9(0x270)]=0x271d]=_0xe865d9(0x270),_0x54e641[_0x54e641[_0xe865d9(0x2e8)]=0x271e]=_0xe865d9(0x2e8),_0x54e641[_0x54e641[_0xe865d9(0x1b1)]=0x271f]=_0xe865d9(0x1b1),_0x54e641[_0x54e641[_0xe865d9(0x348)]=0x2720]=_0xe865d9(0x348),_0x54e641[_0x54e641[_0xe865d9(0x32b)]=0x2af9]=_0xe865d9(0x32b),_0x54e641[_0x54e641['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x54e641[_0x54e641[_0xe865d9(0x120)]=0x2ee2]=_0xe865d9(0x120),_0x54e641[_0x54e641[_0xe865d9(0x12f)]=0x2ee3]=_0xe865d9(0x12f),_0x54e641[_0x54e641[_0xe865d9(0x1ab)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x54e641[_0x54e641[_0xe865d9(0x26f)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x54e641[_0x54e641['WECHAT_HAS_BEEN_BOUND']=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x54e641[_0x54e641[_0xe865d9(0x1f4)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x54e641[_0x54e641['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0xe865d9(0x2ae),_0x54e641[_0x54e641[_0xe865d9(0x372)]=-0x1]=_0xe865d9(0x372),_0x54e641))(je||{}),ns=Object[_0xe865d9(0x16f)],rs=(_0x52c813,_0x3d6708,_0x4f9ee8,_0xb2f086)=>{const _0x1054a7=_0xe865d9;for(var _0x890bcf=_0xb2f086>0x1?void 0x0:_0xb2f086?ns(_0x3d6708,_0x4f9ee8):_0x3d6708,_0x3f7c42=_0x52c813[_0x1054a7(0x314)]-0x1,_0x4d5869;_0x3f7c42>=0x0;_0x3f7c42--)(_0x4d5869=_0x52c813[_0x3f7c42])&&(_0x890bcf=_0x4d5869(_0x890bcf)||_0x890bcf);return _0x890bcf;},ue=(_0x371a8c,_0x1f9301)=>(_0xcb0420,_0x7d5bc3)=>_0x1f9301(_0xcb0420,_0x7d5bc3,_0x371a8c);exports['RemoteUniscriptService']=class extends a[_0xe865d9(0x36c)]{constructor(_0x238932,_0x36e639,_0x388c2b){const _0x5f6cb8=_0xe865d9;super(),this[_0x5f6cb8(0x2ba)]=_0x238932,this[_0x5f6cb8(0x1e3)]=_0x36e639,this[_0x5f6cb8(0x22a)]=_0x388c2b;}async[_0xe865d9(0x191)](_0xf99908,_0x4085e7,_0x11dfca,..._0x5589d3){const _0x4274ba=_0xe865d9;var _0xf7c37f,_0x468c57,_0x4ba43e,_0x39ad33;const _0x196ed2=this[_0x4274ba(0x2ba)][_0x4274ba(0x25b)]();if(!_0x196ed2)throw new Error(_0x4274ba(0x33e));const _0x21f4ac=((_0xf7c37f=this['_configService'][_0x4274ba(0x371)](u[_0x4274ba(0x2bf)]))!=null?_0xf7c37f:u[_0x4274ba(0x26a)])+'/'+_0xf99908+_0x4274ba(0x1de)+_0x4085e7,_0x5ee6f8=new URL(window[_0x4274ba(0x26d)][_0x4274ba(0x202)]),_0x349ab0={'scriptId':_0xf99908,'runId':(_0x468c57=_0x5ee6f8[_0x4274ba(0x19b)][_0x4274ba(0x1df)](_0x4274ba(0x204)))!=null?_0x468c57:'','function':_0x4085e7,'unitId':_0x196ed2['getUnitId'](),'argsOfFunction':JSON[_0x4274ba(0x30a)](_0x5589d3),'invokeId':(_0x4ba43e=_0x11dfca[_0x4274ba(0x14e)])!=null?_0x4ba43e:'','executionId':(_0x39ad33=_0x11dfca['executionId'])!=null?_0x39ad33:''};try{const _0x47b97d=await this['_httpService'][_0x4274ba(0x33a)](_0x21f4ac,{'body':_0x349ab0});return _0x47b97d[_0x4274ba(0x383)][_0x4274ba(0x2a7)]&&_0x47b97d['body'][_0x4274ba(0x2a7)][_0x4274ba(0x189)]!==je['OK']?_0x4274ba(0x269):_0x47b97d['body'][_0x4274ba(0x201)];}catch{return _0x4274ba(0x269);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0xe865d9(0x183)]),ue(0x1,a['Inject'](G['HTTPService'])),ue(0x2,a[_0xe865d9(0x11e)])],exports[_0xe865d9(0x18a)]),exports[_0xe865d9(0x393)]=xe,exports[_0xe865d9(0x2a4)]=Ee,exports[_0xe865d9(0x122)]=we,exports['WebBrowserSingleActiveUnitService']=is,exports[_0xe865d9(0x200)]=Be;
|
|
1
|
+
'use strict';const _0x5f11ba=_0x32ae;(function(_0x293557,_0x21b867){const _0x4385aa=_0x32ae,_0x1ade97=_0x293557();while(!![]){try{const _0x4d7369=parseInt(_0x4385aa(0x1e0))/0x1*(parseInt(_0x4385aa(0x245))/0x2)+-parseInt(_0x4385aa(0x34f))/0x3+-parseInt(_0x4385aa(0x156))/0x4+parseInt(_0x4385aa(0x2b0))/0x5+-parseInt(_0x4385aa(0x12e))/0x6*(parseInt(_0x4385aa(0x2ce))/0x7)+-parseInt(_0x4385aa(0x362))/0x8*(parseInt(_0x4385aa(0x1e4))/0x9)+-parseInt(_0x4385aa(0x354))/0xa*(-parseInt(_0x4385aa(0x1fd))/0xb);if(_0x4d7369===_0x21b867)break;else _0x1ade97['push'](_0x1ade97['shift']());}catch(_0x27de21){_0x1ade97['push'](_0x1ade97['shift']());}}}(_0x26e4,0x7e46e));var Ve=Object[_0x5f11ba(0x104)],Xe=(_0x4e74f3,_0x33016e,_0x1ff4be)=>_0x33016e in _0x4e74f3?Ve(_0x4e74f3,_0x33016e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ff4be}):_0x4e74f3[_0x33016e]=_0x1ff4be,h=(_0x36005f,_0x10b91e,_0x39697f)=>Xe(_0x36005f,typeof _0x10b91e!=_0x5f11ba(0x18d)?_0x10b91e+'':_0x10b91e,_0x39697f);Object[_0x5f11ba(0x104)](exports,Symbol[_0x5f11ba(0x18a)],{'value':_0x5f11ba(0x2ea)});function _0x26e4(){const _0x5dff8c=['getUnitStatus$','UNIVER_SHEET','OFFLINE','urlChange$','_initStatusListener','purple.300','IUIPartsService','setShapeProps','unshift','trim','SheetsSelectionsService','univer-mr-2\x20univer-flex\x20univer-text-xl','BehaviorSubject','getSheetBySheetId','setTimeout','values','transformMutation','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','collabStatus.offline','VIEW_MAIN','_cachedData','Shape','none','on-line-icon_clip0_910_349','MOBILE_VERIFY_CODE_MISMATCH','1fESuoS','handleDeleteRangeMoveLeft','call','_onRefRangeChange','9zbbhzg','MoveRangeCommandId','toString','_initResize','IUniverInstanceService','getOwnPropertySymbols','_name','APPLY_NON_SEQUENTIAL_REVISION','Warning','_onCursorUpdate','takeUntil','contains','getTypeOfUnitDisposed$','selections','exhaustSavingTask','CONFLICT','icon','_localStorageService','ILogService','transformSelections','ALREADY_EXISTS','createIdentifier','LOCAL_CACHE_INTERVAL_KEY','EffectRefRangId','ILocalCacheService','88UbamXE','ISocketService','_handleHeartbeatEvent','collab-text-range-','selection','code','getCurrent','getCurrentRevOfUnit','transformMutationsWithChangeset','_injector','event$','top','reconnect','_collabCursorState$','useDependency','EMAIL_HAS_BEEN_BOUND','lineTo','redoState','extend','mergeOverrideWithDependencies','save','with','memberID','backgroundColor','red.300','_doCreateSocket','toRgbString','getCoordByCell','...','OnLineIcon','activeSheet$','CollaborationSessionService','CollaborationEvent','@univerjs-pro/collaboration-client','switchMap','saveTaskMap','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','ticket','startColumn','transformIMECache','defs','loadOfflineData','replaceState','includes','url(#$1','Rectangle','body','size','_registerDependencies','pushState','defIds','RemoveColCommandId','_draw','complete','_color','MemberService','IConfigService','SetWorksheetActivateCommand','m2Prime','_setupSubUnitSync','_entityInit$','_localCacheService','_startSheetCollabCursor','type','popstate','ISnapshotServerService','currentTheme$','getActiveSheet','replace','_init','M0\x200H16V16H0z','_colorAssignService','658670mwMPib','RegularPolygon','_id','isTransformMutationsWithChangesetSuccess','imageSourceType','UniverCollaborationClientPlugin','undoState','restore','CollaborationStatusDisplay','clearInterval','getConfig','clipPath','assign','_docClipboardService','onStarting','textRanges','_scene','measureText','runRefRangeMutations','_handleHover','tag','fillRule','delete','CollaborationDataLoaderController','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','deepClone','ICommandService','COMPLETION_FINISHED','_docStateChangeManagerService','Disposable','requireSession','getVpScrollXYInfoByPosToVp','getLocalCacheKey','_session','_getAnchorBounding','location','sheetID','ThemeService','getActiveRange','NodePositionConvertToRectRange','saveImage','_docTransformStateCacheService','result','transformStateCache','_updateCollabCursors','handleMoveRange','YUUMI_RATE_OVER_LIMIT','sessionTicket','SOCKET_FAILED','font','FromArray','addObject','YUUMI_ALL_TABLES_IS_INVALID','setInterval','univerjs-icon\x20univerjs-icon-','DependentOn','saveOfflineData','DocStateChangeManagerService','_dataLoaderService','collaboration-client-ui.config','Injector','collaboration-client.offline-data-not-saved','use','add','UNDEFINED','set','YUUMI_ASYNCIO_CANCELLED','column','subunit','_setupBeforeClosingHandler','_docSkeletonManagerService','_renderManagerService','updateOfflineData','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','DEFAULT_WS_SESSION_TICKET_URL','fillText','getStateCache','onPointerMove$','rxjs/operators','permission.content','jiqing.500','name','WebURLService','unload','CONNECTOR_DATA_TOO_LARGE','_updateLocalCursor','getCurrentSelections','YUUMI_URL_COL_OUT_OF_RANGE','generateRandomId','setItem','debounceTime','Tools','on-line-icon','findNodePositionByCharIndex','_refreshCollabCursors','_transformPreviousActiveRange','merge','attrs','fromEvent','handleIRemoveCol','_drawTextRange','LICENSE_EXPORT_SIZE_EXCEEDED','pipe','APPLY_REVISION_CONFILICT','executionId','evenodd','post','3791560kEAPdC','init','UnitStatus','_beforeCloseService','DataLoaderService','getFocusedUnit','makeDirty','RichTextEditingMutation','_logService','collaboration.single-unit.warning','sessionStatus$','@univerjs/engine-formula','RemoteUniscriptService','CHANGESET_REVISION_CONFILICT','onCommandExecuted','forwardRef','asObservable','currentSkeleton$','_imageIoService','setUndoRedoMutationParamsCache','mask','[RemoteUniscriptService]:\x20no\x20focused\x20unit','searchParams','Unknown\x20user','ACTIVE_UNIT_EVENT_CHANNEL','LocaleService','_saveTaskMap','hasOwnProperty','children','setAlpha','516565FsVVQZ','MessageType','_updateURLWithCurrentState','SNAPSHOT_INVALID_SNAPSHOT','PERMISSION_DENIED','SheetCollabCursorShape','TEXT','_lastPointer','setParam','LICENSE_IMPORT_SIZE_EXCEEDED','_saveCache','apply','combineLatest','get','registerComponent','@univerjs/network','color','collab-client.tooltip.reconnect','focused$','_startDocCollabCursor','_anchorDot','next','handleInsertRow','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','BrowserCollaborationSocketService','endColumn','getColor','Module','Rect','0\x200\x2016\x2016','_context','ColorKit','_getSessionTicket','@univerjs/docs','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_httpService','replaceDocRanges','_registerRenderDependencies','getParam','collab-rect-range-','_hover','_clearOtherTimers','getOwnPropertyDescriptor','getSkeleton','_anchor','isTransformMutationFailure','from','beginPath','registerRefRange','UniverCollaborationClientUIPlugin','toDisposable','setActiveRange','createInstance','div','Plugin','doc.mutation.rich-text-editing','forEach','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','useCallback','_render','jsxs','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_handleLeaveEvent','react/jsx-runtime','_assignedColors','removeParam','cursorInfo$','_selfUnitIDs','_handleEvent','colorChannel1','_unitStatus','@univerjs-pro/collaboration','black','session.collaboration-timeout','Vector2','_drawRectRange','arc','off-line-icon_clip0_910_343','_getScale','clsx','min','_hideTimer','_collaborationUIEventService','getSheetId','SUBMIT_CHANGESET_TIMEOUT','history','skeleton','override','_transformService','_ensureSubject','current','clearTimeout','prototype','_range','getOffsetConfig','UNIVER_DOC','_urlService','drawWith','_localeService','collabStatus.synced','assignAColorForMemberID','_config','_themeService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','univer-flex\x20univer-items-center','collaboration.closeRoom','IDocClipboardService','currentColor','SheetSkeletonManagerService','pluginName','getItem','_createSocketURL','_sheetSkeletonManagerService','EMAIL_VERIFY_CODE_MISMATCH','InsertRangeMoveDownCommandId','_toggleOnline','MUTATION','_status$','session.connection-failed','_initDependencies','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_shapes','className','CollaborationUIEventId','UniverIcon','OTHER_CLIENTS_EDITING','filter','_messageService','415554joopmh','Subject','_disabled','unitID','setStateCache','660720GBKITe','getAncestorScale','disableLocalCache','INVITE_CODE_ALREADY_BOUND','then','storage','text','DocCollaborationEntity','UniverInstanceType','permission.title','ENSURE_SNAPSHOT_EXECUTION','TEXT_RANGE_LAYER_INDEX','_entities','getSheetObject','4299416UeOTmb','_send','_uiPartsService','RECT','_drawAnchor','_docTransformSelectionsService','mapTo','WebBrowserSingleActiveUnitService','eventID','SYNCED','debounce','serializeRangeWithSheet','unitId','_document','LOGIN_FAILED','collabCursorState$','width','LICENSE_MAX_UNITS_EXCEEDED','svg','APPLY_REJECT','handleInsertRangeMoveDown','getColorFromTheme','YUUMI_UNABLE_LOAD_URL','HEADER_MENU','_commandService','PY_RUNTIME_SCRIPT_ERROR','WebSocketService','ITransformService','IURLService','dispose','roomMembers','NodePositionConvertToCursor','IMessageService','onPointerEnter$','addEventListener','fromEventSubject','onRendered','getDocRanges','[CollaborationDataLoaderController]','Optional','APPLY_PERMISSION_DENIED','displayName','Error','mutations','fillStyle','throttleTime','params','getUnitId','green.600','triggerDblclick','INVALID_ARGUMENT','row','USERS_LEAVE','rxjs','disposeWithMe','subscribeEvent','onMouseMove','_transformHistoryAndStateStack','defineProperty','labelPosition','runOnServer','enableLocalCache','runId','onPointerLeave$','YUUMI_CONNECTOR_URL_NOT_FOUND','YUUMI_AI_RUN_FAILED','all','HTTPService','@univerjs/drawing','_initEvent','error','_univerInstanceService','_docSkeleton','SetSelectionsOperation','isArray','COLORS','Inject','url(#off-line-icon_clip0_910_343)','translate(.97)','editingUnit','touchDependencies','entries','m1Prime','data','CollaborationController','_docTransformIMECacheService','@univerjs/engine-render','_cursorShapes','transform','handleIRemoveRow','RevisionService','executeCommand','getRenderById','jsx','collabStatus.notCollab','WECHAT_HAS_BEEN_BOUND','DOC_RANGE_TYPE','show','_transformUndoRedoStack','_revisionService','18CkWCYp','distinctUntilChanged','_scheduleSaving','getCollabEntity$','_notificationService','getUndoRedoMutationParamsCache','NOT_COLLAB','subscribe','docStateChange$','_initStatusComponent','CollaborationStatus','LICENSE_DISTRO_REJECTED','_cursorInfo$','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_hovered','hide','SNAPSHOT_HAS_BEEN_REMOVED','syncEditingCollabCursor','_getSaveTimeout','getMemberID','debug','/run/','_collabSessionService','1em','_removeCollabCursors','_online','addClipboardHook','find','split','useObservable','map','_collaborationController','cursorInfo','roomMembers$','height','getMember','ILocalStorageService','_heartbeatTimer','_textBubble','range','806652WKkuEn','@univerjs/ui','UPDATE_CURSOR','entityInit$','Failed','_roomMembers$','_cursors','handleInsertRangeMoveRight','ranges','LOCAL_CACHE_INTERVAL','subUnitId','CollaborationSocketService','_initEntityListener','onLocalMutation','RxDisposable','getCellPositionByOffset','_updateSubUnitFromURLParams','_removeClearOtherTimer','YUUMI_NO_CUBOID_FOR_QUESTION','getTypeOfUnitAdded$','_eventUnsubscribe','unit','_colorIndex','path','getRangePointData','getCurrentUnitForType','DeleteRangeMoveLeftCommandId','registerRenderModule','AWAITING_WITH_PENDING','length','INTERNAL_ERROR','random','application/json','shareReplay','_labelPosition','getRelativeToViewportCoord','_onCursorDelete','isActive','getViewport','session.will-retry','IRenderManagerService','@univerjs/sheets-ui','stringify','createElement','INVALID_INVITE_CODE','_initCommandExecutedListener','_toggleOffline','UNAUTHENTICATED','@univerjs/core','#FFF','_getSheetObject','origin','toStringTag','concat','_collabCursorController','symbol','transformRemoteChangeset','newValue','setConfig','has','string','dispose$','_docSyncEditingCollabCursorService','FETCH_MISS','getValue','_getMergeRange','useRef','flatMap','DocIMEInputManagerService','ONLINE','indexOf','APPLY_DUPLICATED','round','unsubscribe','wsSessionTicketUrl','INVITE_CODE_REQUIRED','fill','_refRangeService','_memberService','status$','_configService','href','collab-text-anchor-','INotificationService','SessionStatus','SetTextSelectionsOperation','closePath','startRow','0\x200\x2017\x2016','Tooltip','bottom','send','_cursor','_scheduleHeartbeat','_scheduleClearOtherTimer','rgba(255,\x20255,\x20255,\x200.01)','http://www.w3.org/2000/svg','addObjects','DesktopCollaborationStatusDisplayController','@univerjs/rpc','_backgroundColor','TOO_MANY_REQUESTS','_unitOnClients','propertyIsEnumerable','push','CollaborationUIEventService','UNRECOGNIZED','_handleJoinEvent','_syncEditingCollabCursorService','NOT_FOUND','idSuffix','NO_OTHER_CLIENTS_EDITING','INVITE_CODE_HAS_BEEN_UES'];_0x26e4=function(){return _0x5dff8c;};return _0x26e4();}const u=require(_0x5f11ba(0x21e)),a=require(_0x5f11ba(0x186)),p=require(_0x5f11ba(0x120)),G=require(_0x5f11ba(0x2dd)),E=require('@univerjs/docs-ui'),Ge=require(_0x5f11ba(0x10e)),d=require(_0x5f11ba(0xff)),m=require(_0x5f11ba(0x316)),Y=require(_0x5f11ba(0x2f0)),be=require(_0x5f11ba(0x2bb)),g=require('@univerjs/sheets'),$=require(_0x5f11ba(0x293)),X=require(_0x5f11ba(0x17f)),P=require(_0x5f11ba(0x30e)),O=require(_0x5f11ba(0x157)),D=require('@univerjs/design'),M=require('react'),Ke=require(_0x5f11ba(0x1b9));var qe=Object[_0x5f11ba(0x2f9)],ze=(_0x4b48fb,_0x10533d,_0xb6cbc5,_0x2a389b)=>{const _0x489cfe=_0x5f11ba;for(var _0x47bcd3=_0x2a389b>0x1?void 0x0:_0x2a389b?qe(_0x10533d,_0xb6cbc5):_0x10533d,_0x2cb457=_0x4b48fb[_0x489cfe(0x173)]-0x1,_0x4d360d;_0x2cb457>=0x0;_0x2cb457--)(_0x4d360d=_0x4b48fb[_0x2cb457])&&(_0x47bcd3=_0x4d360d(_0x47bcd3)||_0x47bcd3);return _0x47bcd3;},Oe=(_0xfdf9ee,_0x12f8e0)=>(_0x7d3f94,_0x5a8b51)=>_0x12f8e0(_0x7d3f94,_0x5a8b51,_0xfdf9ee);let de=class extends a[_0x5f11ba(0x164)]{constructor(_0x4dc978,_0x510849){const _0x4089ca=_0x5f11ba;super(),this['_docClipboardService']=_0x4dc978,this[_0x4089ca(0x2c2)]=_0x510849,this[_0x4089ca(0x242)]();}[_0x5f11ba(0x242)](){const _0x25ac3d=_0x5f11ba,_0x1fece7=this;this['disposeWithMe'](this[_0x25ac3d(0x252)][_0x25ac3d(0x148)]({'onBeforePasteImage':async _0x4e2abb=>{const _0x164df3=_0x25ac3d,_0x4a7111=await _0x1fece7[_0x164df3(0x2c2)][_0x164df3(0x26d)](_0x4e2abb);return _0x4a7111?{'source':_0x4a7111['source'],'imageSourceType':_0x4a7111[_0x164df3(0x249)]}:null;}}));}};de=ze([Oe(0x0,E[_0x5f11ba(0x339)]),Oe(0x1,Ge['IImageIoService'])],de);const Te=[_0x5f11ba(0x1cc),_0x5f11ba(0x295),_0x5f11ba(0xfa),_0x5f11ba(0x215),'blue.400','yellow.400'];class me extends a[_0x5f11ba(0x262)]{constructor(){const _0x4a30ef=_0x5f11ba;super(...arguments),h(this,_0x4a30ef(0x30f),new Map()),h(this,_0x4a30ef(0x16c),0x0);}[_0x5f11ba(0x333)](_0x341521){const _0xe6014d=_0x5f11ba;if(this[_0xe6014d(0x30f)][_0xe6014d(0x191)](_0x341521))return this[_0xe6014d(0x30f)][_0xe6014d(0x2db)](_0x341521);const _0x464c2e=Te[this['_colorIndex']];return this[_0xe6014d(0x16c)]=(this[_0xe6014d(0x16c)]+0x1)%Te['length'],this[_0xe6014d(0x30f)][_0xe6014d(0x286)](_0x341521,_0x464c2e),_0x464c2e;}}function Pe(_0x331d4b){let _0x36e8ee='';for(const _0x27345e of _0x331d4b){const {startOffset:_0x45cc4b,endOffset:_0x497d48,isActive:_0x4b27f5,rangeType:_0x5c4536,segmentId:_0x34b98f,segmentPage:_0x1e4f54}=_0x27345e;_0x36e8ee['length']&&(_0x36e8ee+=','),_0x36e8ee+=_0x45cc4b+':'+_0x497d48+':'+(_0x4b27f5?'1':'0')+':'+_0x5c4536+':'+_0x34b98f+':'+_0x1e4f54;}return _0x36e8ee;}function Je(_0x1d59dd){const _0x5bcb53=_0x5f11ba,_0x4a6de4=_0x1d59dd[_0x5bcb53(0x14a)](','),_0x3e3cc0=[];for(const _0x2f3f5e of _0x4a6de4){const [_0x4cb3eb,_0x2e1a1d,_0x49cbd7,_0x28b2a5,_0x4f67d9,_0x1c58ad]=_0x2f3f5e[_0x5bcb53(0x14a)](':');_0x3e3cc0[_0x5bcb53(0x1be)]({'startOffset':Number(_0x4cb3eb),'endOffset':Number(_0x2e1a1d),'collapsed':_0x4cb3eb===_0x2e1a1d,'isActive':_0x49cbd7==='1','rangeType':_0x28b2a5===a['DOC_RANGE_TYPE'][_0x5bcb53(0x2d4)]?a[_0x5bcb53(0x12a)][_0x5bcb53(0x2d4)]:a[_0x5bcb53(0x12a)][_0x5bcb53(0xcd)],'segmentId':typeof _0x4f67d9==_0x5bcb53(0x192)?String(_0x4f67d9):'','segmentPage':Number(_0x1c58ad!=null?_0x1c58ad:-0x1)});}return _0x3e3cc0['some'](_0x299e6a=>_0x299e6a[_0x5bcb53(0x17b)])||(_0x3e3cc0[0x0][_0x5bcb53(0x17b)]=!0x0),_0x3e3cc0;}class Ce extends a[_0x5f11ba(0x164)]{constructor(){const _0x4948d3=_0x5f11ba;super(...arguments),h(this,'_collabCursorState$',new d['BehaviorSubject'](null)),h(this,_0x4948d3(0xd9),this[_0x4948d3(0x20a)][_0x4948d3(0x2c0)]());}[_0x5f11ba(0x13f)](_0x37af7f){const _0xfde1c4=_0x5f11ba,{unitID:_0x3f52da,memberID:_0x4cd76b,textRanges:_0x10cdf1}=_0x37af7f,_0x3b43a7=Pe(_0x10cdf1);if(_0x3b43a7==='')return;const _0x4ea46d={'unitID':_0x3f52da,'memberID':_0x4cd76b,'selection':_0x3b43a7};this[_0xfde1c4(0x20a)][_0xfde1c4(0x2e3)](_0x4ea46d);}}function _0x32ae(_0x50965d,_0x2998b7){const _0x26e404=_0x26e4();return _0x32ae=function(_0x32ae86,_0x40cd81){_0x32ae86=_0x32ae86-0xcc;let _0x6c3714=_0x26e404[_0x32ae86];return _0x6c3714;},_0x32ae(_0x50965d,_0x2998b7);}var Ze=Object[_0x5f11ba(0x2f9)],Qe=(_0x3b9ccd,_0x2dffd1,_0xdcf507,_0x3f6ebf)=>{const _0x47db47=_0x5f11ba;for(var _0x482992=_0x3f6ebf>0x1?void 0x0:_0x3f6ebf?Ze(_0x2dffd1,_0xdcf507):_0x2dffd1,_0x248584=_0x3b9ccd[_0x47db47(0x173)]-0x1,_0x2cd453;_0x248584>=0x0;_0x248584--)(_0x2cd453=_0x3b9ccd[_0x248584])&&(_0x482992=_0x2cd453(_0x482992)||_0x482992);return _0x482992;},L=(_0x59ae9b,_0x28ffe2)=>(_0x51402d,_0x5c903f)=>_0x28ffe2(_0x51402d,_0x5c903f,_0x59ae9b);const et=0x12c,tt=0x64;let Ie=class extends a['RxDisposable']{constructor(_0x2f819f,_0x322439,_0xe2d01c,_0x238c09,_0x15a6f1,_0x2d1161,_0x4df073,_0x3f99fe,_0x494816){const _0x388abb=_0x5f11ba;super(),h(this,_0x388abb(0x147),!0x1),h(this,_0x388abb(0x242),!0x1),h(this,_0x388abb(0x13a),new d[(_0x388abb(0x1d3))](new Map())),h(this,_0x388abb(0x311),this['_cursorInfo$'][_0x388abb(0x2c0)]()),h(this,'_roomMembers$',new d[(_0x388abb(0x1d3))]([])),h(this,'roomMembers$',this[_0x388abb(0x15b)][_0x388abb(0x2ab)](d[_0x388abb(0x29f)](et))),h(this,'_updateLocalCursor',a[_0x388abb(0xd4)](_0x553b48=>{const _0x17b459=_0x388abb,_0x12f744={'eventID':m[_0x17b459(0x21d)][_0x17b459(0x158)],'data':{'unitID':this[_0x17b459(0x352)],'memberID':this[_0x17b459(0x266)][_0x17b459(0x141)](),'selection':Pe(_0x553b48)}};this[_0x17b459(0x266)][_0x17b459(0x1b1)](_0x12f744,this[_0x17b459(0x352)]);},tt)),(this[_0x388abb(0x352)]=_0x2f819f,this[_0x388abb(0x266)]=_0x322439,this[_0x388abb(0x206)]=_0xe2d01c,this[_0x388abb(0x244)]=_0x238c09,this[_0x388abb(0x1a4)]=_0x15a6f1,this[_0x388abb(0x1c2)]=_0x2d1161,this[_0x388abb(0x327)]=_0x4df073,this['_univerInstanceService']=_0x3f99fe,this[_0x388abb(0xe2)]=_0x494816);}get[_0x5f11ba(0x14e)](){const _0x393c75=_0x5f11ba;return this[_0x393c75(0x13a)]['getValue']();}get[_0x5f11ba(0xe8)](){const _0x332194=_0x5f11ba;return this['_roomMembers$'][_0x332194(0x196)]();}[_0x5f11ba(0xe7)](){const _0x371251=_0x5f11ba;super[_0x371251(0xe7)](),this['_cursorInfo$'][_0x371251(0x2e3)](new Map()),this[_0x371251(0x13a)][_0x371251(0x232)](),this[_0x371251(0x15b)][_0x371251(0x2e3)]([]),this[_0x371251(0x15b)][_0x371251(0x232)]();}['init'](){const _0x41e3e0=_0x5f11ba;this[_0x41e3e0(0x242)]||(this[_0x41e3e0(0x242)]=!0x0,this['_session'][_0x41e3e0(0x2ba)][_0x41e3e0(0x2ab)](d[_0x41e3e0(0x1ee)](this['dispose$']))[_0x41e3e0(0x135)](_0x142fa1=>{const _0x30292e=_0x41e3e0;_0x142fa1===u['SessionStatus'][_0x30292e(0x19b)]?this['_toggleOnline']():this[_0x30292e(0x184)]();}),this[_0x41e3e0(0x266)]['event$'][_0x41e3e0(0x2ab)](d['takeUntil'](this[_0x41e3e0(0x193)]))[_0x41e3e0(0x135)](_0x48b309=>{const _0x2a9f18=_0x41e3e0,_0x48377d=_0x48b309[_0x2a9f18(0xd2)];_0x48377d===m[_0x2a9f18(0x21d)]['UPDATE_CURSOR']&&this[_0x2a9f18(0x1ed)](_0x48b309),_0x48377d===m['CollaborationEvent'][_0x2a9f18(0xfe)]&&this[_0x2a9f18(0x17a)](_0x48b309);}),this[_0x41e3e0(0x100)](this[_0x41e3e0(0xe2)]['onCommandExecuted'](_0x4bcdf2=>{const _0x51e7f2=_0x41e3e0,_0x19c23c=_0x4bcdf2[_0x51e7f2(0xf8)];_0x19c23c!=null&&this['_online']&&_0x4bcdf2['id']===Y[_0x51e7f2(0x1ab)]['id']&&_0x19c23c[_0x51e7f2(0xd6)]===this['unitID']&&_0x19c23c['isEditing']===!0x1&&_0x19c23c[_0x51e7f2(0x15e)][_0x51e7f2(0x173)]>0x0&&this[_0x51e7f2(0x29a)](_0x19c23c[_0x51e7f2(0x15e)]);})),this[_0x41e3e0(0x1c2)][_0x41e3e0(0xd9)][_0x41e3e0(0x2ab)](d['takeUntil'](this[_0x41e3e0(0x193)]))[_0x41e3e0(0x135)](_0x447bc4=>{const _0xdb6146=_0x41e3e0;if((_0x447bc4==null?void 0x0:_0x447bc4[_0xdb6146(0x352)])!==this[_0xdb6146(0x352)])return;const _0x1e8aaa={'eventID':m['CollaborationEvent'][_0xdb6146(0x158)],'data':_0x447bc4};this[_0xdb6146(0x1ed)](_0x1e8aaa);}),this[_0x41e3e0(0x100)](this[_0x41e3e0(0xe2)][_0x41e3e0(0x2be)](_0x4b0b86=>{const _0x56e428=_0x41e3e0;if(_0x4b0b86['params']==null)return;const _0x1cc385=_0x4b0b86[_0x56e428(0xf8)];if(_0x4b0b86['id']!==Y[_0x56e428(0x2b7)]['id']||_0x1cc385['unitId']!==this[_0x56e428(0x352)])return;const _0x32ccda={'id':_0x56e428(0x306),'params':_0x1cc385},_0x2ad602=this['cursorInfo'];for(const [_0x4829eb,_0x4e2a95]of _0x2ad602){const _0xf133e1={'id':_0x56e428(0x306),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x4e2a95[_0x56e428(0x15e)]}},_0x27a445=this['_transformService']['transformMutation'](_0x32ccda,_0xf133e1,!0x1);if(m[_0x56e428(0x2fc)](_0x27a445))throw _0x27a445[_0x56e428(0x110)];_0x2ad602[_0x56e428(0x286)](_0x4829eb,{..._0x4e2a95,'ranges':_0x27a445['m2Prime'][_0x56e428(0xf8)][_0x56e428(0x254)]});}queueMicrotask(()=>{const _0x2d2546=_0x56e428;this[_0x2d2546(0x13a)][_0x2d2546(0x2e3)](_0x2ad602);});})));}[_0x5f11ba(0x1ed)](_0x48c697){const _0x275104=_0x5f11ba;var _0x1c77e1,_0x5492c4;const {memberID:_0x526020,selection:_0x1363f9}=_0x48c697['data'],_0x13620e=Je(_0x1363f9),_0x4e58b9=(_0x5492c4=(_0x1c77e1=this[_0x275104(0x1a4)]['getMember'](this['unitID'],_0x526020))==null?void 0x0:_0x1c77e1[_0x275104(0x296)])!=null?_0x5492c4:_0x275104(0x2c7),_0xb55288={'color':this['_colorAssignService'][_0x275104(0x333)](_0x526020),'name':_0x4e58b9,'ranges':_0x13620e},_0x24a8fb=this[_0x275104(0x14e)];_0x24a8fb[_0x275104(0x286)](_0x526020,_0xb55288),this[_0x275104(0x13a)][_0x275104(0x2e3)](_0x24a8fb);}['_onCursorDelete'](_0x54f2cf){const _0x2d8c8b=_0x5f11ba,{memberID:_0x48e020}=_0x54f2cf['data'],_0x12cf64=this[_0x2d8c8b(0x14e)];_0x12cf64[_0x2d8c8b(0x25b)](_0x48e020),this[_0x2d8c8b(0x13a)][_0x2d8c8b(0x2e3)](_0x12cf64);}['_toggleOnline'](){const _0x3005a9=_0x5f11ba;var _0x1bafeb;if(this[_0x3005a9(0x147)]=!0x0,((_0x1bafeb=this[_0x3005a9(0x111)][_0x3005a9(0x2b5)]())==null?void 0x0:_0x1bafeb[_0x3005a9(0xf9)]())!==this[_0x3005a9(0x352)])return;const _0x3f1515=this['_injector']['get'](Y['DocSelectionManagerService'])[_0x3005a9(0xef)]();Array['isArray'](_0x3f1515)&&_0x3f1515[_0x3005a9(0x173)]>0x0&&this[_0x3005a9(0x29a)](_0x3f1515);}[_0x5f11ba(0x184)](){this['_online']=!0x1;}};Ie=Qe([L(0x2,a['Inject'](a[_0x5f11ba(0x281)])),L(0x3,a['Inject'](me)),L(0x4,a['Inject'](u[_0x5f11ba(0x234)])),L(0x5,a[_0x5f11ba(0x116)](Ce)),L(0x6,m['ITransformService']),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x5f11ba(0x25f)])],Ie);var st=Object['getOwnPropertyDescriptor'],it=(_0x3f9c24,_0x57e102,_0x200635,_0x32d9dd)=>{for(var _0xda13cf=_0x32d9dd>0x1?void 0x0:_0x32d9dd?st(_0x57e102,_0x200635):_0x57e102,_0x3c328e=_0x3f9c24['length']-0x1,_0x2fe180;_0x3c328e>=0x0;_0x3c328e--)(_0x2fe180=_0x3f9c24[_0x3c328e])&&(_0xda13cf=_0x2fe180(_0xda13cf)||_0xda13cf);return _0xda13cf;},A=(_0x4b0905,_0x5e5bd4)=>(_0x3d861c,_0x17be59)=>_0x5e5bd4(_0x3d861c,_0x17be59,_0x4b0905);const nt=0x12c,rt=0x64,ot=()=>{let _0x267b2f=[],_0x42c595=!0x1;return _0x168818=>{const _0x24c31f=_0x32ae;_0x267b2f[_0x24c31f(0x1be)](_0x168818),_0x42c595||(_0x42c595=!0x0,setTimeout(()=>{_0x267b2f['forEach'](_0x31f7b6=>_0x31f7b6()),_0x267b2f=[],_0x42c595=!0x1;}));};};let Se=class extends a[_0x5f11ba(0x164)]{constructor(_0x1aac2a,_0x581c40,_0x49cacc,_0x5edbb8,_0xce0064,_0x53247f,_0x142e07,_0x143506){const _0x586902=_0x5f11ba;super(),h(this,_0x586902(0x147),!0x1),h(this,'_init',!0x1),h(this,_0x586902(0x13a),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0x586902(0x2c0)]()),h(this,_0x586902(0x15b),new d[(_0x586902(0x1d3))]([])),h(this,_0x586902(0x14f),this['_roomMembers$'][_0x586902(0x2ab)](d['debounceTime'](nt))),h(this,_0x586902(0x29a),a[_0x586902(0xd4)]((_0x4ecbd1,_0x32a0fd)=>{const _0x13e7ab=_0x586902,_0x91e694={'eventID':m[_0x13e7ab(0x21d)][_0x13e7ab(0x158)],'data':{'unitID':this['unitID'],'memberID':this[_0x13e7ab(0x266)][_0x13e7ab(0x141)](),'selection':be[_0x13e7ab(0xd5)](_0x4ecbd1,_0x32a0fd[_0x13e7ab(0x155)])}};this['_session']['send'](_0x91e694,this[_0x13e7ab(0x352)]);},rt)),(this[_0x586902(0x352)]=_0x1aac2a,this[_0x586902(0x266)]=_0x581c40,this[_0x586902(0x206)]=_0x49cacc,this['_colorAssignService']=_0x5edbb8,this[_0x586902(0x1a4)]=_0xce0064,this[_0x586902(0x111)]=_0x53247f,this[_0x586902(0xe2)]=_0x142e07,this[_0x586902(0x1a3)]=_0x143506);}get[_0x5f11ba(0x14e)](){const _0x57e1a7=_0x5f11ba;return this[_0x57e1a7(0x13a)][_0x57e1a7(0x196)]();}get[_0x5f11ba(0xe8)](){const _0x39ed73=_0x5f11ba;return this[_0x39ed73(0x15b)][_0x39ed73(0x196)]();}[_0x5f11ba(0xe7)](){const _0x444b9c=_0x5f11ba;super[_0x444b9c(0xe7)](),this[_0x444b9c(0x13a)][_0x444b9c(0x2e3)](new Map()),this[_0x444b9c(0x13a)][_0x444b9c(0x232)](),this[_0x444b9c(0x15b)]['next']([]),this[_0x444b9c(0x15b)][_0x444b9c(0x232)]();}['init'](){const _0x54d061=_0x5f11ba;this[_0x54d061(0x242)]||(this['_init']=!0x0,this['_session'][_0x54d061(0x2ba)]['pipe'](d[_0x54d061(0x1ee)](this[_0x54d061(0x193)]))[_0x54d061(0x135)](_0x48ff35=>{const _0x20995f=_0x54d061;_0x48ff35===u[_0x20995f(0x1aa)][_0x20995f(0x19b)]?this[_0x20995f(0x342)]():this['_toggleOffline']();}),this[_0x54d061(0x266)][_0x54d061(0x207)][_0x54d061(0x2ab)](d['takeUntil'](this[_0x54d061(0x193)]))[_0x54d061(0x135)](_0x4d7ae5=>{const _0x41b60e=_0x54d061,_0x526e95=_0x4d7ae5[_0x41b60e(0xd2)];_0x526e95===m[_0x41b60e(0x21d)][_0x41b60e(0x158)]&&this['_onCursorUpdate'](_0x4d7ae5),_0x526e95===m['CollaborationEvent'][_0x41b60e(0xfe)]&&this[_0x41b60e(0x17a)](_0x4d7ae5);}),this[_0x54d061(0x1e3)](),this[_0x54d061(0x100)](this[_0x54d061(0xe2)][_0x54d061(0x2be)](_0x19e22e=>{const _0x47274f=_0x54d061;if(this['_online']&&_0x19e22e['id']===g[_0x47274f(0x113)]['id']&&_0x19e22e[_0x47274f(0xf8)][_0x47274f(0xd6)]===this[_0x47274f(0x352)]){const _0x311c03=_0x19e22e[_0x47274f(0xf8)];this[_0x47274f(0x29a)](_0x311c03[_0x47274f(0x160)],_0x311c03[_0x47274f(0x1f1)][0x0]);}})));}[_0x5f11ba(0x1ed)](_0x5b146b){const _0x538059=_0x5f11ba;var _0xe40dbe,_0x41c1c4;const {memberID:_0x14f0f8,selection:_0x582ea6}=_0x5b146b['data'],{sheetName:_0x55c81e,range:_0x20e8de}=be['deserializeRangeWithSheet'](_0x582ea6),_0x289667={'name':(_0x41c1c4=(_0xe40dbe=this[_0x538059(0x1a4)][_0x538059(0x151)](this[_0x538059(0x352)],_0x14f0f8))==null?void 0x0:_0xe40dbe['name'])!=null?_0x41c1c4:_0x538059(0x2c7),'range':this[_0x538059(0x197)](_0x55c81e,_0x20e8de),'sheetID':_0x55c81e,'color':this[_0x538059(0x244)][_0x538059(0x333)](_0x14f0f8),'selection':_0x582ea6},_0x84f4c1=this[_0x538059(0x14e)];_0x84f4c1[_0x538059(0x286)](_0x14f0f8,_0x289667),this['_cursorInfo$']['next'](_0x84f4c1);}[_0x5f11ba(0x17a)](_0x5b5d35){const _0x355d24=_0x5f11ba,{memberID:_0xce02f2}=_0x5b5d35['data'],_0x285115=this[_0x355d24(0x14e)];_0x285115[_0x355d24(0x25b)](_0xce02f2),this[_0x355d24(0x13a)][_0x355d24(0x2e3)](_0x285115);}['_getMergeRange'](_0x1339e7,_0x5e4f76){const _0x5678e0=_0x5f11ba;var _0x2bf98b,_0x56af05;const _0x556252=(_0x56af05=(_0x2bf98b=this[_0x5678e0(0x111)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x2bf98b[_0x5678e0(0x1d4)](_0x1339e7))==null?void 0x0:_0x56af05['getMergeData']();return(_0x556252==null?void 0x0:_0x556252[_0x5678e0(0x149)](_0x536fc2=>a[_0x5678e0(0x22a)][_0x5678e0(0x1ef)](_0x536fc2,_0x5e4f76)))||_0x5e4f76;}[_0x5f11ba(0x1e3)](){const _0x39e1ab=_0x5f11ba,_0x3339d5=new a['DisposableCollection'](),_0x25d895=ot(),_0x40af55=()=>{const _0x1c0035=_0x32ae;_0x3339d5[_0x1c0035(0xe7)]();const _0x9832ac=(_0x5620a9,_0x567c52,_0x1e6270,_0x48ff46)=>{const _0x54c529=_0x1c0035;let _0x4216ac=[];switch(_0x5620a9['id']){case g[_0x54c529(0x1fb)][_0x54c529(0x170)]:{_0x4216ac=g[_0x54c529(0x1e1)](_0x5620a9,_0x48ff46);break;}case g[_0x54c529(0x1fb)]['DeleteRangeMoveUpCommandId']:{_0x4216ac=g['handleDeleteRangeMoveUp'](_0x5620a9,_0x48ff46);break;}case g['EffectRefRangId']['InsertColCommandId']:{_0x4216ac=g['handleInsertCol'](_0x5620a9,_0x48ff46);break;}case g[_0x54c529(0x1fb)][_0x54c529(0x341)]:{_0x4216ac=g[_0x54c529(0xde)](_0x5620a9,_0x48ff46);break;}case g[_0x54c529(0x1fb)]['InsertRangeMoveRightCommandId']:{_0x4216ac=g[_0x54c529(0x15d)](_0x5620a9,_0x48ff46);break;}case g['EffectRefRangId']['InsertRowCommandId']:{_0x4216ac=g[_0x54c529(0x2e4)](_0x5620a9,_0x48ff46);break;}case g[_0x54c529(0x1fb)][_0x54c529(0x1e5)]:{_0x4216ac=g[_0x54c529(0x272)](_0x5620a9,_0x48ff46);break;}case g['EffectRefRangId'][_0x54c529(0x230)]:{_0x4216ac=g[_0x54c529(0x2a8)](_0x5620a9,_0x48ff46);break;}case g['EffectRefRangId']['RemoveRowCommandId']:{_0x4216ac=g[_0x54c529(0x123)](_0x5620a9,_0x48ff46);break;}}const _0x1ed5e5=g[_0x54c529(0x257)](_0x4216ac,_0x48ff46),_0x12f7e9=this[_0x54c529(0x14e)]['get'](_0x567c52);if(_0x12f7e9&&_0x1ed5e5){const _0x5d9b49={..._0x12f7e9,'range':_0x1ed5e5};this['cursorInfo'][_0x54c529(0x286)](_0x567c52,_0x5d9b49),_0x25d895(()=>{const _0xad4815=_0x54c529,_0x24ae62=this[_0xad4815(0x1a3)][_0xad4815(0x2ff)](_0x1ed5e5,_0x153fb2=>(_0x24ae62[_0xad4815(0xe7)](),_0x9832ac(_0x153fb2,_0x567c52,_0x1e6270,_0x1ed5e5)));_0x3339d5['add'](_0x24ae62);});}return{'redos':[],'undos':[]};};this[_0x1c0035(0x14e)][_0x1c0035(0x307)]((_0x379eef,_0x2dc523)=>{const _0x4c17c5=_0x1c0035,{range:_0x237eac,sheetID:_0xfb747d}=_0x379eef,_0x39400b=this[_0x4c17c5(0x1a3)][_0x4c17c5(0x2ff)](_0x237eac,_0x55281e=>(_0x39400b['dispose'](),_0x9832ac(_0x55281e,_0x2dc523,_0xfb747d,_0x237eac)));_0x3339d5[_0x4c17c5(0x284)](_0x39400b);});};this[_0x39e1ab(0x100)](a['toDisposable'](this[_0x39e1ab(0x13a)][_0x39e1ab(0x135)](()=>{_0x40af55();})));}[_0x5f11ba(0x342)](){const _0x15296a=_0x5f11ba;var _0x5160d8,_0x114416;if(this['_online']=!0x0,((_0x5160d8=this[_0x15296a(0x111)][_0x15296a(0x2b5)]())==null?void 0x0:_0x5160d8[_0x15296a(0xf9)]())!==this[_0x15296a(0x352)])return;const _0xfb41a3=(_0x114416=this[_0x15296a(0x206)][_0x15296a(0x2db)](g[_0x15296a(0x1d1)])[_0x15296a(0x29b)]())==null?void 0x0:_0x114416[0x0],_0x3f038f=this[_0x15296a(0x111)][_0x15296a(0x16f)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x15296a(0x240)]();_0xfb41a3&&_0x3f038f&&this[_0x15296a(0x29a)](_0x3f038f[_0x15296a(0x322)](),_0xfb41a3);}[_0x5f11ba(0x184)](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0x5f11ba(0x116)](a[_0x5f11ba(0x281)])),A(0x3,a['Inject'](me)),A(0x4,a[_0x5f11ba(0x116)](u['MemberService'])),A(0x5,a[_0x5f11ba(0x1e8)]),A(0x6,a[_0x5f11ba(0x25f)]),A(0x7,a[_0x5f11ba(0x116)](g['RefRangeService']))],Se);var at=Object[_0x5f11ba(0x2f9)],ct=(_0x32a954,_0x3bdf1b,_0x4dc910,_0x25af9e)=>{const _0x52a59c=_0x5f11ba;for(var _0x48093b=_0x25af9e>0x1?void 0x0:_0x25af9e?at(_0x3bdf1b,_0x4dc910):_0x3bdf1b,_0x107bc1=_0x32a954[_0x52a59c(0x173)]-0x1,_0x5cbe7a;_0x107bc1>=0x0;_0x107bc1--)(_0x5cbe7a=_0x32a954[_0x107bc1])&&(_0x48093b=_0x5cbe7a(_0x48093b)||_0x48093b);return _0x48093b;},ie=(_0x29dc8e,_0x3dc9ef)=>(_0x32d176,_0x3dd66a)=>_0x3dc9ef(_0x32d176,_0x3dd66a,_0x29dc8e);let x=class extends a[_0x5f11ba(0x164)]{constructor(_0x1b02b5,_0x3dde4a,_0x1f1ec9){const _0x3fc3a4=_0x5f11ba;super(),h(this,_0x3fc3a4(0x360),new Map()),h(this,'_entityInit$',new d[(_0x3fc3a4(0x350))]()),(this[_0x3fc3a4(0x111)]=_0x1b02b5,this[_0x3fc3a4(0x206)]=_0x3dde4a,this[_0x3fc3a4(0x144)]=_0x1f1ec9,this['_init']());}[_0x5f11ba(0xe7)](){const _0x5bfccb=_0x5f11ba;super['dispose'](),this[_0x5bfccb(0x239)][_0x5bfccb(0x232)](),this[_0x5bfccb(0x360)][_0x5bfccb(0x307)](_0x4c81e4=>_0x4c81e4['dispose']());}['getCollabCursors$'](_0x48e4d9){const _0x3c5e2b=_0x5f11ba;return this[_0x3c5e2b(0x360)]['has'](_0x48e4d9)?this[_0x3c5e2b(0x360)][_0x3c5e2b(0x2db)](_0x48e4d9)[_0x3c5e2b(0x311)]:this['_entityInit$'][_0x3c5e2b(0x2ab)](d[_0x3c5e2b(0x34d)](_0xe6ca3a=>_0xe6ca3a[_0x3c5e2b(0x352)]===_0x48e4d9),d[_0x3c5e2b(0x21f)](_0x10bcb0=>_0x10bcb0['cursorInfo$']));}[_0x5f11ba(0x242)](){const _0x574238=_0x5f11ba;this[_0x574238(0x111)][_0x574238(0x169)](a[_0x574238(0x35c)][_0x574238(0x1c8)])[_0x574238(0x2ab)](d['takeUntil'](this[_0x574238(0x193)]))[_0x574238(0x135)](async _0x28ebbb=>{const _0x5ebc57=_0x574238,_0x2628ac=_0x28ebbb[_0x5ebc57(0xf9)](),_0x24bc16=await this[_0x5ebc57(0x23b)](_0x2628ac);this[_0x5ebc57(0x239)][_0x5ebc57(0x2e3)](_0x24bc16),this['_entities']['set'](_0x2628ac,_0x24bc16);}),this[_0x574238(0x111)][_0x574238(0x169)](a[_0x574238(0x35c)][_0x574238(0x32e)])[_0x574238(0x2ab)](d[_0x574238(0x1ee)](this['dispose$']))[_0x574238(0x2ab)](d[_0x574238(0x34d)](_0x678e22=>!_0x678e22[_0x574238(0xf9)]()['startsWith']('__')))['subscribe'](async _0x54b9bd=>{const _0x52fda2=_0x574238,_0x1aeb2e=_0x54b9bd[_0x52fda2(0xf9)](),_0x17fe86=await this[_0x52fda2(0x2e1)](_0x1aeb2e);this['_entityInit$'][_0x52fda2(0x2e3)](_0x17fe86),this[_0x52fda2(0x360)]['set'](_0x1aeb2e,_0x17fe86);}),d[_0x574238(0x2a5)](this['_univerInstanceService'][_0x574238(0x1f0)](a[_0x574238(0x35c)][_0x574238(0x32e)]),this[_0x574238(0x111)][_0x574238(0x1f0)](a['UniverInstanceType'][_0x574238(0x1c8)]))[_0x574238(0x2ab)](d['takeUntil'](this[_0x574238(0x193)]))[_0x574238(0x135)](_0x31f476=>{const _0x21e3f1=_0x574238,_0x4cad4a=_0x31f476[_0x21e3f1(0xf9)](),_0x5020e2=this[_0x21e3f1(0x360)][_0x21e3f1(0x2db)](_0x4cad4a);_0x5020e2&&(_0x5020e2[_0x21e3f1(0xe7)](),this[_0x21e3f1(0x360)][_0x21e3f1(0x25b)](_0x4cad4a));});}async[_0x5f11ba(0x23b)](_0x352515){const _0x5d9b8d=_0x5f11ba,_0x1a6a8c=await this['_collabSessionService'][_0x5d9b8d(0x263)](_0x352515),_0x447cab=this['_injector'][_0x5d9b8d(0x303)](Se,_0x352515,_0x1a6a8c);return _0x447cab['init'](),_0x447cab;}async[_0x5f11ba(0x2e1)](_0x260886){const _0x11c61e=_0x5f11ba,_0x1be0cc=await this[_0x11c61e(0x144)][_0x11c61e(0x263)](_0x260886),_0x44c811=this['_injector'][_0x11c61e(0x303)](Ie,_0x260886,_0x1be0cc);return _0x44c811[_0x11c61e(0x2b1)](),_0x44c811;}};x=ct([ie(0x0,a[_0x5f11ba(0x1e8)]),ie(0x1,a['Inject'](a[_0x5f11ba(0x281)])),ie(0x2,a[_0x5f11ba(0x116)](u[_0x5f11ba(0x21c)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x4b5c78,_0x5f1cc5){const _0x47c475=_0x5f11ba;let {radius:_0x53dc6f,width:_0x366921,height:_0x3960ba}=_0x5f1cc5;_0x53dc6f=_0x53dc6f!=null?_0x53dc6f:0x0,_0x366921=_0x366921!=null?_0x366921:0x1e,_0x3960ba=_0x3960ba!=null?_0x3960ba:0x1e;let _0x22fa8b=0x0,_0x2a1622=0x0,_0x2ab23d=0x0;_0x22fa8b=_0x2a1622=_0x2ab23d=Math[_0x47c475(0x31f)](_0x53dc6f,_0x366921/0x2,_0x3960ba/0x2),_0x4b5c78[_0x47c475(0x2fe)](),_0x4b5c78['moveTo'](_0x22fa8b,0x0),_0x4b5c78[_0x47c475(0x20d)](_0x366921-_0x2a1622,0x0),_0x4b5c78['arc'](_0x366921-_0x2a1622,_0x2a1622,_0x2a1622,Math['PI']*0x3/0x2,0x0,!0x1),_0x4b5c78[_0x47c475(0x20d)](_0x366921,_0x3960ba-_0x2ab23d),_0x4b5c78[_0x47c475(0x31b)](_0x366921-_0x2ab23d,_0x3960ba-_0x2ab23d,_0x2ab23d,0x0,Math['PI']/0x2,!0x1),_0x4b5c78[_0x47c475(0x20d)](0x0,_0x3960ba),_0x4b5c78[_0x47c475(0x20d)](0x0,_0x22fa8b),_0x4b5c78[_0x47c475(0x31b)](_0x22fa8b,_0x22fa8b,_0x22fa8b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4b5c78[_0x47c475(0x1ac)](),_0x5f1cc5[_0x47c475(0x1a2)]&&(_0x4b5c78[_0x47c475(0x211)](),_0x4b5c78['fillStyle']=_0x5f1cc5[_0x47c475(0x1a2)],_0x5f1cc5[_0x47c475(0x25a)]===_0x47c475(0x2ae)?_0x4b5c78[_0x47c475(0x1a2)](_0x47c475(0x2ae)):_0x4b5c78[_0x47c475(0x1a2)](),_0x4b5c78[_0x47c475(0x24c)]());}class ee extends p[_0x5f11ba(0x1dc)]{constructor(_0x4f033d,_0x1310bf){const _0x35643e=_0x5f11ba;super(_0x4f033d,_0x1310bf),h(this,'color'),h(this,_0x35643e(0x35a)),(this['color']=_0x1310bf==null?void 0x0:_0x1310bf[_0x35643e(0x2de)],this[_0x35643e(0x35a)]=_0x1310bf==null?void 0x0:_0x1310bf[_0x35643e(0x35a)]);}static[_0x5f11ba(0x330)](_0x4216c5,_0x2ed884){const _0x349aae=_0x5f11ba,{text:_0x52b390,color:_0xb583a2}=_0x2ed884;_0x4216c5[_0x349aae(0x211)](),_0x4216c5[_0x349aae(0x276)]=_0x349aae(0x347);const _0x3364e6=_0x4216c5[_0x349aae(0x256)](_0x52b390)['width'],_0x5b7300=Math[_0x349aae(0x31f)](_0x3364e6+0x2*ne,Re);_t(_0x4216c5,{'height':K,'radius':0x4,'width':_0x5b7300,'fill':_0xb583a2}),_0x4216c5[_0x349aae(0xf6)]=_0x349aae(0x187);const _0x5bb562=ne,_0x25f56c=K-lt,_0x524436=Re-0x2*ne;if(_0x3364e6>_0x524436){let _0x5a2c23='',_0xfdf852=0x0;for(const _0x300102 of _0x52b390){const _0xd08f44=_0x4216c5[_0x349aae(0x256)](_0x300102)[_0x349aae(0xda)];if(_0xfdf852+_0xd08f44<=_0x524436-_0x4216c5['measureText'](_0x349aae(0x219))['width'])_0x5a2c23+=_0x300102,_0xfdf852+=_0xd08f44;else{_0x5a2c23+='...';break;}}_0x4216c5[_0x349aae(0x290)](_0x5a2c23,_0x5bb562,_0x25f56c);}else _0x4216c5['fillText'](_0x52b390,_0x5bb562,_0x25f56c);_0x4216c5[_0x349aae(0x24c)]();}[_0x5f11ba(0x231)](_0x351755){ee['drawWith'](_0x351755,this);}}const re=_0x5f11ba(0x1a8),ht=_0x5f11ba(0x200),ut=_0x5f11ba(0x2f6),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x5f11ba(0x1b5);class De{constructor(_0x232af5,_0x41f1c2,_0x139b8d,_0xa6e931){const _0x3e4625=_0x5f11ba;h(this,_0x3e4625(0x348),[]),h(this,_0x3e4625(0x2fb),null),h(this,_0x3e4625(0x154),null),h(this,_0x3e4625(0x2e2),null),h(this,_0x3e4625(0x320),null),h(this,_0x3e4625(0x16a),null),(this[_0x3e4625(0x1b2)]=_0x232af5,this[_0x3e4625(0x255)]=_0x41f1c2,this[_0x3e4625(0x112)]=_0x139b8d,this[_0x3e4625(0xd7)]=_0xa6e931,this[_0x3e4625(0x30a)]());}set[_0x5f11ba(0x2f7)](_0x200379){const _0x184f14=_0x5f11ba;_0x200379?(this['_anchorDot']&&this[_0x184f14(0x2e2)][_0x184f14(0x13d)](),this[_0x184f14(0x154)]&&this[_0x184f14(0x154)][_0x184f14(0x12b)]()):(this[_0x184f14(0x2e2)]&&this[_0x184f14(0x2e2)]['show'](),this[_0x184f14(0x154)]&&this[_0x184f14(0x154)][_0x184f14(0x13d)]());}['dispose'](){const _0x337060=_0x5f11ba;for(const _0x3658de of this[_0x337060(0x348)])_0x3658de[_0x337060(0xe7)]();this[_0x337060(0x154)]&&this['_textBubble'][_0x337060(0xe7)](),this[_0x337060(0x2e2)]&&this[_0x337060(0x2e2)][_0x337060(0xe7)](),this[_0x337060(0x2fb)]&&this[_0x337060(0x2fb)][_0x337060(0xe7)](),this[_0x337060(0x16a)]&&this['_eventUnsubscribe']();}['_render'](){const _0x219584=_0x5f11ba;var _0x38ce25;const {_docSkeleton:_0x1407e2,_document:_0x2e8621}=this,{color:_0x41b2eb,name:_0xcf1937,ranges:_0x4db314}=this['_cursor'],_0x194ec6=_0x2e8621[_0x219584(0x32d)](),{docsLeft:_0x498c69,docsTop:_0x56f2cf}=_0x194ec6,_0x3f7025=new E[(_0x219584(0xe9))](_0x194ec6,_0x1407e2);for(const {startOffset:_0x1f6925,endOffset:_0x53d17c,rangeType:_0x5054c6,segmentId:_0x1e2f6b,segmentPage:_0x120524,collapsed:_0x46a774,isActive:_0x294f7d}of _0x4db314){const _0x460e6b=_0x1407e2['findNodePositionByCharIndex'](_0x1f6925,!0x0,_0x1e2f6b,_0x120524);let _0x10a1a5=_0x1407e2[_0x219584(0x2a2)](_0x53d17c,!0x0,_0x1e2f6b,_0x120524);if(_0x10a1a5==null&&(_0x10a1a5=_0x1407e2['findNodePositionByCharIndex'](_0x53d17c-0x1,!0x1,_0x1e2f6b,_0x120524)),_0x294f7d){const {contentBoxPointGroup:_0x4152d4}=_0x3f7025[_0x219584(0x16e)](_0x10a1a5,_0x10a1a5);if(_0x4152d4['length']===0x0)continue;this['_drawAnchor'](_0x41b2eb,_0x4152d4,_0x498c69,_0x56f2cf,_0xcf1937),this['_eventUnsubscribe']=this[_0x219584(0x258)]();}if(_0x460e6b&&_0x10a1a5){if(_0x5054c6===a[_0x219584(0x12a)][_0x219584(0xcd)]){const _0x5a575f=new E[(_0x219584(0x26c))](_0x194ec6,_0x1407e2),{pointGroup:_0x196caa}=(_0x38ce25=_0x5a575f[_0x219584(0x16e)](_0x460e6b,_0x10a1a5))!=null?_0x38ce25:{};if(_0x196caa==null||_0x196caa[_0x219584(0x173)]===0x0)continue;this['_drawRectRange'](_0x41b2eb,_0x196caa,_0x498c69,_0x56f2cf);}else{if(!_0x46a774){const {borderBoxPointGroup:_0x41f93f}=_0x3f7025[_0x219584(0x16e)](_0x460e6b,_0x10a1a5);if(_0x41f93f[_0x219584(0x173)]===0x0)continue;this[_0x219584(0x2a9)](_0x41b2eb,_0x41f93f,_0x498c69,_0x56f2cf);}}}}}[_0x5f11ba(0xce)](_0x591064,_0x558771,_0xc7fd6e,_0x5e9fab,_0x3fd14f){const _0x4fcac6=_0x5f11ba,_0xc1dfbf=this['_getAnchorBounding'](_0x558771),{left:_0x52ff11,top:_0x26dddd,height:_0x3a73d0}=_0xc1dfbf,_0x5e1c6e=this['_getScale'](),_0x186c9e=It/_0x5e1c6e,_0x2de139=new p[(_0x4fcac6(0x2eb))](re+a[_0x4fcac6(0x2a0)]['generateRandomId'](k),{'left':_0x52ff11+_0xc7fd6e-_0x186c9e,'top':_0x26dddd+_0x5e9fab,'height':_0x3a73d0,'width':dt,'fill':_0x591064||p[_0x4fcac6(0x2e9)](a[_0x4fcac6(0x115)][_0x4fcac6(0x317)],0x0),'strokeWidth':_0x186c9e,'stroke':St,'evented':!0x0});this[_0x4fcac6(0x2fb)]=_0x2de139,this[_0x4fcac6(0x255)][_0x4fcac6(0x278)](_0x2de139,E[_0x4fcac6(0x35f)]);const _0x3b4c2c=new p[(_0x4fcac6(0x2eb))](re+a['Tools'][_0x4fcac6(0x29d)](k),{'left':_0x52ff11+_0xc7fd6e-_0x186c9e,'top':_0x26dddd+_0x5e9fab-oe/0x2,'height':oe,'width':oe,'fill':_0x591064||p[_0x4fcac6(0x2e9)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x591064||p['getColor'](a[_0x4fcac6(0x115)][_0x4fcac6(0x317)],0x0),'evented':!0x1});this['_anchorDot']=_0x3b4c2c,this['_scene'][_0x4fcac6(0x278)](_0x3b4c2c,E[_0x4fcac6(0x35f)]);const _0x1ee493=new ee(re+a[_0x4fcac6(0x2a0)]['generateRandomId'](k),{'left':_0x52ff11+_0xc7fd6e-_0x186c9e,'top':_0x26dddd+_0x5e9fab-K,'text':_0x3fd14f,'color':_0x591064});this['_textBubble']=_0x1ee493,this['_scene'][_0x4fcac6(0x278)](_0x1ee493,E[_0x4fcac6(0x35f)]),this[_0x4fcac6(0x2f7)]=!0x1;}[_0x5f11ba(0x258)](){const _0x2934af=_0x5f11ba,_0x4ce50a=this['_anchor']['onPointerEnter$'][_0x2934af(0x101)](()=>{this['_hover']=!0x0;}),_0x4e80b3=this[_0x2934af(0x2fb)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x13e14b=_0x2934af;this[_0x13e14b(0x320)]&&clearTimeout(this['_hideTimer']),this[_0x13e14b(0x320)]=setTimeout(()=>{const _0x58aa14=_0x13e14b;this[_0x58aa14(0x2f7)]=!0x1;},0x7d0);});return()=>{const _0x4ecbc7=_0x2934af;_0x4ce50a[_0x4ecbc7(0x19f)](),_0x4e80b3[_0x4ecbc7(0x19f)]();};}[_0x5f11ba(0x2a9)](_0x2edc08,_0x29e87b,_0x2e7717,_0xf2bf59){const _0x20ae20=_0x5f11ba,_0x129d01=new a[(_0x20ae20(0x2ee))](_0x2edc08)[_0x20ae20(0x2cd)](0.2)[_0x20ae20(0x217)](),_0x5432b9=new p['RegularPolygon'](ht+a[_0x20ae20(0x2a0)]['generateRandomId'](k),{'pointsGroup':_0x29e87b,'fill':_0x129d01||p['getColor'](a[_0x20ae20(0x115)][_0x20ae20(0x317)],0.2),'left':_0x2e7717,'top':_0xf2bf59,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x5432b9),this[_0x20ae20(0x255)][_0x20ae20(0x278)](_0x5432b9,E[_0x20ae20(0x35f)]);}[_0x5f11ba(0x31a)](_0x1b08a4,_0xccadc4,_0x288b1a,_0x296a60){const _0x351aa8=_0x5f11ba,_0x25ff73=new a['ColorKit'](_0x1b08a4)[_0x351aa8(0x2cd)](0.2)[_0x351aa8(0x217)](),_0x30ac93=new p[(_0x351aa8(0x246))](ut+a[_0x351aa8(0x2a0)][_0x351aa8(0x29d)](k),{'pointsGroup':_0xccadc4,'fill':_0x25ff73||p[_0x351aa8(0x2e9)](a[_0x351aa8(0x115)][_0x351aa8(0x317)],0.2),'left':_0x288b1a,'top':_0x296a60,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x351aa8(0x348)][_0x351aa8(0x1be)](_0x30ac93),this[_0x351aa8(0x255)][_0x351aa8(0x278)](_0x30ac93,E[_0x351aa8(0x35f)]);}[_0x5f11ba(0x267)](_0x35d561){const _0x1caccf=_0x35d561[0x0],_0xe9f034=_0x1caccf[0x0],_0x20dec9=_0x1caccf[0x2],{x:_0x2dfe27,y:_0x383659}=_0xe9f034,{x:_0x2fe993,y:_0xdd520d}=_0x20dec9;return{'left':_0x2dfe27,'top':_0x383659,'width':_0x2fe993-_0x2dfe27,'height':_0xdd520d-_0x383659};}[_0x5f11ba(0x31d)](){const _0x597f58=_0x5f11ba,{scaleX:_0x41accf,scaleY:_0x35265a}=this['_scene'][_0x597f58(0x355)]();return Math['max'](_0x41accf,_0x35265a);}}var ft=Object[_0x5f11ba(0x2f9)],vt=(_0x1245ac,_0x12b914,_0xef0558,_0x2a043e)=>{const _0xe48b17=_0x5f11ba;for(var _0x54d13a=_0x2a043e>0x1?void 0x0:_0x2a043e?ft(_0x12b914,_0xef0558):_0x12b914,_0x583c8b=_0x1245ac[_0xe48b17(0x173)]-0x1,_0x249569;_0x583c8b>=0x0;_0x583c8b--)(_0x249569=_0x1245ac[_0x583c8b])&&(_0x54d13a=_0x249569(_0x54d13a)||_0x54d13a);return _0x54d13a;},W=(_0x1b5115,_0x8446e4)=>(_0xe9a41a,_0x526320)=>_0x8446e4(_0xe9a41a,_0x526320,_0x1b5115);let fe=class extends a[_0x5f11ba(0x164)]{constructor(_0x48db26,_0x44bb9d,_0x39e2df,_0x599339,_0xc3024e){const _0x5af3b2=_0x5f11ba;super(),h(this,_0x5af3b2(0x121),[]),h(this,_0x5af3b2(0x15c),[]),(this[_0x5af3b2(0x2ed)]=_0x48db26,this[_0x5af3b2(0x28b)]=_0x44bb9d,this[_0x5af3b2(0x18c)]=_0x39e2df,this['_commandService']=_0x599339,this[_0x5af3b2(0x335)]=_0xc3024e,this[_0x5af3b2(0x242)]());}['_init'](){const _0x37ac3d=_0x5f11ba,_0xd10231=this['_context']['unitId'],_0x23d477=this[_0x37ac3d(0x28b)];this['disposeWithMe'](d[_0x37ac3d(0x2da)]([this[_0x37ac3d(0x18c)]['getCollabCursors$'](_0xd10231),this[_0x37ac3d(0x335)][_0x37ac3d(0x23f)]])[_0x37ac3d(0x2ab)]($[_0x37ac3d(0x14c)](([_0x50d4c4,_0x5d9119])=>({'skeleton':_0x23d477['getSkeleton'](),'cursors':[..._0x50d4c4['values']()][_0x37ac3d(0x199)](_0x328363=>({..._0x328363,'color':this['_themeService']['getColorFromTheme'](_0x328363['color'])}))})))[_0x37ac3d(0x135)](_0x353c4c=>{const _0x291448=_0x37ac3d;if(this['_removeCollabCursors'](),_0x353c4c){const {skeleton:_0x24c95a,cursors:_0x89e994}=_0x353c4c;this[_0x291448(0x271)](_0x24c95a,_0x89e994);}})),this[_0x37ac3d(0x1e7)](),this[_0x37ac3d(0x183)]();}[_0x5f11ba(0x271)](_0x56dfb6,_0x1ab0c2){const _0x4f9673=_0x5f11ba,{scene:_0x2e3786,mainComponent:_0x5b7f5f}=this['_context'],_0x4be2f7=_0x1ab0c2['map'](_0x4d10e6=>new De(_0x4d10e6,_0x2e3786,_0x56dfb6,_0x5b7f5f));this[_0x4f9673(0x121)]=_0x4be2f7,this[_0x4f9673(0x15c)]=_0x1ab0c2;}[_0x5f11ba(0x2a3)](){const _0x522a13=_0x5f11ba;this['_removeCollabCursors']();const {scene:_0x3358f3,mainComponent:_0xc96a1a}=this[_0x522a13(0x2ed)],_0x2b9723=this[_0x522a13(0x28b)][_0x522a13(0x2fa)](),_0xd15d45=this[_0x522a13(0x15c)][_0x522a13(0x14c)](_0x106f72=>new De(_0x106f72,_0x3358f3,_0x2b9723,_0xc96a1a));this[_0x522a13(0x121)]=_0xd15d45;}['_removeCollabCursors'](){const _0x5538d6=_0x5f11ba;this['_cursorShapes'][_0x5538d6(0x307)](_0x45eb86=>_0x45eb86[_0x5538d6(0xe7)]()),this['_cursorShapes']=[];}[_0x5f11ba(0x183)](){const _0x733083=_0x5f11ba,_0x1d7d4b=[E['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this['_commandService'][_0x733083(0x2be)](_0x4dab30=>{const _0x52f154=_0x733083;_0x1d7d4b[_0x52f154(0x228)](_0x4dab30['id'])&&_0x4dab30[_0x52f154(0xf8)][_0x52f154(0xd6)]===this[_0x52f154(0x2ed)]['unitId']&&this[_0x52f154(0x2a3)]();}));}[_0x5f11ba(0x1e7)](){const _0x15fc61=_0x5f11ba;this[_0x15fc61(0x100)](a[_0x15fc61(0xed)](this['_context']['engine']['onTransformChange$'])[_0x15fc61(0x2ab)]($[_0x15fc61(0x34d)](_0x4867df=>_0x4867df[_0x15fc61(0x23c)]===p[_0x15fc61(0x2f1)]['resize']),$[_0x15fc61(0xf7)](0x10))['subscribe'](()=>{const _0x15d70a=_0x15fc61;this[_0x15d70a(0x2a3)]();}));}};fe=vt([W(0x1,a['Inject'](Y['DocSkeletonManagerService'])),W(0x2,a['Inject'](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x5f11ba(0x116)](a[_0x5f11ba(0x26a)]))],fe);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0x3b0843,_0x3025d0){const _0x464fa0=_0x5f11ba;super(_0x3b0843,_0x3025d0),h(this,_0x464fa0(0x233)),h(this,'_hovered',!0x1),h(this,_0x464fa0(0x32c)),h(this,_0x464fa0(0x1ea),''),h(this,_0x464fa0(0x178),_0x464fa0(0x208)),h(this,_0x464fa0(0x1ba)),(_0x3025d0&&this[_0x464fa0(0x1ce)](_0x3025d0),this[_0x464fa0(0xeb)][_0x464fa0(0x101)](()=>this[_0x464fa0(0x1ce)]({'hovered':!0x0})),this[_0x464fa0(0x109)][_0x464fa0(0x101)](()=>this[_0x464fa0(0x1ce)]({'hovered':!0x1})));}['setShapeProps'](_0x363a47){const _0x220ba5=_0x5f11ba;var _0x19627e,_0x2fcd0b,_0x4fc9a7,_0x48384b,_0xb16730,_0x2ff6a1;this[_0x220ba5(0x233)]=(_0x19627e=_0x363a47[_0x220ba5(0x2de)])!=null?_0x19627e:this['_color'],this[_0x220ba5(0x13c)]=(_0x2fcd0b=_0x363a47['hovered'])!=null?_0x2fcd0b:this['_hovered'],this[_0x220ba5(0x32c)]=(_0x4fc9a7=_0x363a47['range'])!=null?_0x4fc9a7:this[_0x220ba5(0x32c)],this['_name']=(_0x48384b=_0x363a47[_0x220ba5(0x296)])!=null?_0x48384b:this[_0x220ba5(0x1ea)],this[_0x220ba5(0x178)]=(_0xb16730=_0x363a47[_0x220ba5(0x105)])!=null?_0xb16730:this[_0x220ba5(0x178)],this['_backgroundColor']=(_0x2ff6a1=_0x363a47[_0x220ba5(0x214)])!=null?_0x2ff6a1:this[_0x220ba5(0x1ba)],this['transformByState']({'width':_0x363a47[_0x220ba5(0xda)],'height':_0x363a47[_0x220ba5(0x150)]});}[_0x5f11ba(0x102)](_0x52932b){const _0x34d2da=_0x5f11ba,{row:_0x3625ad,column:_0x2cc0be}=_0x52932b;if(_0x3625ad>=this['_range'][_0x34d2da(0x1ad)]&&_0x3625ad<=this[_0x34d2da(0x32c)]['endRow']&&_0x2cc0be>=this[_0x34d2da(0x32c)][_0x34d2da(0x223)]&&_0x2cc0be<=this['_range'][_0x34d2da(0x2e8)]){this[_0x34d2da(0x1ce)]({'hovered':!0x0});return;}this[_0x34d2da(0x1ce)]({'hovered':!0x1});}[_0x5f11ba(0xfb)](_0x1c2db8){return!0x1;}[_0x5f11ba(0x231)](_0x613d98){const _0x260a62=_0x5f11ba;p[_0x260a62(0x2eb)][_0x260a62(0x330)](_0x613d98,{'width':this[_0x260a62(0xda)],'height':this[_0x260a62(0x150)],'strokeWidth':mt,'stroke':this[_0x260a62(0x233)],'evented':!0x1,'fill':this[_0x260a62(0x1ba)]}),this[_0x260a62(0x13c)]&&(_0x613d98['save'](),_0x613d98[_0x260a62(0x122)](0x1,0x0,0x0,0x1,this[_0x260a62(0xda)],this[_0x260a62(0x178)]===_0x260a62(0x1b0)?0x0:-0x14),ee['drawWith'](_0x613d98,{'text':this[_0x260a62(0x1ea)],'color':this['_color']}),_0x613d98[_0x260a62(0x24c)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x7c6298,_0x27e004,_0x283aff,_0x1390b7)=>{const _0x764a47=_0x5f11ba;for(var _0xd93b3=_0x1390b7>0x1?void 0x0:_0x1390b7?Ct(_0x27e004,_0x283aff):_0x27e004,_0x3bf21b=_0x7c6298[_0x764a47(0x173)]-0x1,_0x2f6ff2;_0x3bf21b>=0x0;_0x3bf21b--)(_0x2f6ff2=_0x7c6298[_0x3bf21b])&&(_0xd93b3=_0x2f6ff2(_0xd93b3)||_0xd93b3);return _0xd93b3;},ae=(_0x2df0bc,_0x1b1d47)=>(_0x150413,_0x2c06a3)=>_0x1b1d47(_0x150413,_0x2c06a3,_0x2df0bc);const Et=0x1389;let ve=class extends a[_0x5f11ba(0x164)]{constructor(_0x2fd4b9,_0x2668ca,_0xd07ea8,_0x50e2d8){const _0xb40422=_0x5f11ba;super(),h(this,_0xb40422(0x15c),new Set()),h(this,'_lastPointer',null),(this[_0xb40422(0x2ed)]=_0x2fd4b9,this[_0xb40422(0x33f)]=_0x2668ca,this[_0xb40422(0x18c)]=_0xd07ea8,this[_0xb40422(0x335)]=_0x50e2d8,this[_0xb40422(0x242)]());}[_0x5f11ba(0x242)](){const _0x25f042=_0x5f11ba;this[_0x25f042(0x33f)][_0x25f042(0x2c1)][_0x25f042(0x2ab)]($[_0x25f042(0x1ee)](this[_0x25f042(0x193)]),$[_0x25f042(0x21f)](_0x4b49d6=>{const _0x5dfa02=_0x25f042;if(_0x4b49d6){const _0x36dce2=_0x4b49d6['sheetId'];return d['combineLatest'](this[_0x5dfa02(0x18c)]['getCollabCursors$'](this['_context'][_0x5dfa02(0xd6)]),this[_0x5dfa02(0x335)]['currentTheme$'])['pipe']($[_0x5dfa02(0x14c)](([_0x23124f,_0x40e264])=>{const _0x4d67ab=_0x5dfa02,_0x32f551=new Map();return _0x23124f[_0x4d67ab(0x307)]((_0x4f9001,_0x2f8ff6)=>{const _0x5bd9c3=_0x4d67ab;if(_0x4f9001[_0x5bd9c3(0x269)]===_0x36dce2){const _0x2411cf={..._0x4f9001};_0x2411cf[_0x5bd9c3(0x2de)]=this[_0x5bd9c3(0x335)][_0x5bd9c3(0xdf)](_0x4f9001['color']),_0x32f551['set'](_0x2f8ff6,_0x2411cf);}}),{'skeleton':_0x4b49d6,'cursors':_0x32f551};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x25f042(0x135)](({skeleton:_0xba63da,cursors:_0x499af5})=>{this['_removeCollabCursors'](),_0xba63da&&this['_updateCollabCursors'](_0xba63da,_0x499af5);}),this[_0x25f042(0x33f)]['currentSkeleton$'][_0x25f042(0x135)](_0x130a75=>{const _0x3c334f=_0x25f042;if(_0x130a75==null)return;const {skeleton:_0x402899}=_0x130a75,{scene:_0xad4641}=this[_0x3c334f(0x2ed)];_0xad4641[_0x3c334f(0x292)][_0x3c334f(0x101)](a[_0x3c334f(0xd4)](_0x2df9f0=>{const _0x1d1240=_0x3c334f;var _0xffb216,_0x2c15aa;const {offsetX:_0x1c8efe,offsetY:_0x3664a}=_0x2df9f0,{x:_0x5a29d0,y:_0x349262}=_0xad4641[_0x1d1240(0x179)](p[_0x1d1240(0x319)]['FromArray']([_0x1c8efe,_0x3664a])),{scaleX:_0x4e6624,scaleY:_0x3fdc6a}=_0xad4641[_0x1d1240(0x355)](),_0x427afa=_0xad4641[_0x1d1240(0x17c)](p['SHEET_VIEWPORT_KEY'][_0x1d1240(0x1da)]),_0x21f5e0=_0xad4641[_0x1d1240(0x264)](p[_0x1d1240(0x319)][_0x1d1240(0x277)]([_0x5a29d0,_0x349262]),_0x427afa),_0x1ed954=_0x402899[_0x1d1240(0x165)](_0x1c8efe,_0x3664a,_0x4e6624,_0x3fdc6a,_0x21f5e0);((_0xffb216=this[_0x1d1240(0x2d5)])==null?void 0x0:_0xffb216[_0x1d1240(0x288)])===_0x1ed954[_0x1d1240(0x288)]&&((_0x2c15aa=this['_lastPointer'])==null?void 0x0:_0x2c15aa[_0x1d1240(0xfd)])===_0x1ed954[_0x1d1240(0xfd)]||this[_0x1d1240(0x15c)][_0x1d1240(0x307)](_0x4a4144=>{const _0x5b8626=_0x1d1240;_0x4a4144[_0x5b8626(0x102)](_0x1ed954);});},0x64));});}[_0x5f11ba(0x271)](_0x32ff77,_0x3183cb){const _0x55eeb9=_0x5f11ba;var _0xeb591a;const _0x2ab10e=(_0xeb591a=this['_sheetSkeletonManagerService'][_0x55eeb9(0x203)]())==null?void 0x0:_0xeb591a[_0x55eeb9(0x325)];if(!_0x2ab10e)return;const _0x49b95f=this['_getSheetObject']();if(!_0x49b95f)return;this[_0x55eeb9(0x15c)]['forEach'](_0x32a936=>{const _0x593b5e=_0x55eeb9;_0x32a936[_0x593b5e(0x2b6)]();});const {scene:_0x5c53cd}=_0x49b95f,_0x1c68be=bt(Array['from'](_0x3183cb[_0x55eeb9(0x1d6)]()))[_0x55eeb9(0x14c)](_0x29d336=>{const _0x24a03b=_0x55eeb9,{color:_0x265801,range:_0xcb8684,name:_0x303057,selection:_0x509838,sheetID:_0x2f5995}=_0x29d336,{startColumn:_0x57a24e,startRow:_0x5f4d2a,endColumn:_0xb6ecbe,endRow:_0x1f9617}=_0xcb8684,_0x11f902=X[_0x24a03b(0x218)](_0x5f4d2a,_0x57a24e,_0x5c53cd,_0x2ab10e),_0x4c8c74=X[_0x24a03b(0x218)](_0x1f9617,_0xb6ecbe,_0x5c53cd,_0x2ab10e),{columnHeaderHeightAndMarginTop:_0x2bd098}=_0x2ab10e,{startX:_0x273132,startY:_0xaf181d}=_0x11f902,{endX:_0x25df75,endY:_0x3ba8f1}=_0x4c8c74,_0x559530=_0x25df75-_0x273132,_0x540d62=_0x3ba8f1-_0xaf181d,_0xc5d9b9={'labelPosition':_0xaf181d-_0x2bd098>=K?'top':_0x24a03b(0x1b0),'sheetID':_0x2f5995,'range':_0xcb8684,'color':_0x265801,'name':_0x303057,'selection':_0x509838,'left':_0x273132,'top':_0xaf181d,'width':_0x559530,'height':_0x540d62,'evented':!0x1,'zIndex':Et};return new we(_0x303057,_0xc5d9b9);});_0x5c53cd[_0x55eeb9(0x1b7)](_0x1c68be,gt),this['_cursors']=new Set(_0x1c68be);}[_0x5f11ba(0x146)](){const _0x37bf59=_0x5f11ba;var _0x2a85c1;(_0x2a85c1=this['_cursors'])==null||_0x2a85c1[_0x37bf59(0x307)](_0x283b0d=>_0x283b0d[_0x37bf59(0xe7)]());}[_0x5f11ba(0x188)](){const _0x552e6a=_0x5f11ba;return X[_0x552e6a(0x361)](this[_0x552e6a(0x2ed)][_0x552e6a(0x16b)],this[_0x552e6a(0x2ed)]);}};ve=pt([ae(0x1,a[_0x5f11ba(0x116)](X[_0x5f11ba(0x33b)])),ae(0x2,a[_0x5f11ba(0x116)](x)),ae(0x3,a[_0x5f11ba(0x116)](a[_0x5f11ba(0x26a)]))],ve);function bt(_0x2255a7){const _0x5ce9d3=_0x5f11ba,_0x118244=new Map();return _0x2255a7['forEach'](_0x2d9284=>{const _0x15ab38=_0x32ae;if(_0x118244['has'](_0x2d9284[_0x15ab38(0x201)])){const _0x3945e1=_0x118244[_0x15ab38(0x2db)](_0x2d9284[_0x15ab38(0x201)]);_0x3945e1['name']+=',\x20'+_0x2d9284[_0x15ab38(0x296)];}else _0x118244['set'](_0x2d9284[_0x15ab38(0x201)],_0x2d9284);}),Array[_0x5ce9d3(0x2fd)](_0x118244[_0x5ce9d3(0x1d6)]());}var b=function(){const _0x3bb602=_0x5f11ba;return b=Object['assign']||function(_0x1fa0de){const _0x2adef1=_0x32ae;for(var _0x3ee4be,_0x3bd634=0x1,_0x10a580=arguments[_0x2adef1(0x173)];_0x3bd634<_0x10a580;_0x3bd634++){_0x3ee4be=arguments[_0x3bd634];for(var _0x3c0500 in _0x3ee4be)Object[_0x2adef1(0x32b)]['hasOwnProperty']['call'](_0x3ee4be,_0x3c0500)&&(_0x1fa0de[_0x3c0500]=_0x3ee4be[_0x3c0500]);}return _0x1fa0de;},b[_0x3bb602(0x2d9)](this,arguments);},Ot=function(_0x39ec79,_0x3fb9ad){const _0x63eb43=_0x5f11ba;var _0x395523={};for(var _0x121883 in _0x39ec79)Object['prototype'][_0x63eb43(0x2cb)][_0x63eb43(0x1e2)](_0x39ec79,_0x121883)&&_0x3fb9ad['indexOf'](_0x121883)<0x0&&(_0x395523[_0x121883]=_0x39ec79[_0x121883]);if(_0x39ec79!=null&&typeof Object[_0x63eb43(0x1e9)]=='function'){for(var _0x5d4ba3=0x0,_0x121883=Object[_0x63eb43(0x1e9)](_0x39ec79);_0x5d4ba3<_0x121883['length'];_0x5d4ba3++)_0x3fb9ad[_0x63eb43(0x19c)](_0x121883[_0x5d4ba3])<0x0&&Object[_0x63eb43(0x32b)][_0x63eb43(0x1bd)][_0x63eb43(0x1e2)](_0x39ec79,_0x121883[_0x5d4ba3])&&(_0x395523[_0x121883[_0x5d4ba3]]=_0x39ec79[_0x121883[_0x5d4ba3]]);}return _0x395523;},pe=M[_0x5f11ba(0x2bf)](function(_0x468ecf,_0x4d339d){const _0x26f914=_0x5f11ba;var _0x5e98b2=_0x468ecf['icon'],_0x551543=_0x468ecf['id'],_0x3edda3=_0x468ecf[_0x26f914(0x349)],_0x4bc2fe=_0x468ecf['extend'],_0x52db46=Ot(_0x468ecf,[_0x26f914(0x1f4),'id',_0x26f914(0x349),_0x26f914(0x20f)]),_0xb7b437=_0x26f914(0x27b)[_0x26f914(0x18b)](_0x551543,'\x20')[_0x26f914(0x18b)](_0x3edda3||'')[_0x26f914(0x1d0)](),_0x2625f1=M[_0x26f914(0x198)]('_'[_0x26f914(0x18b)](Dt()));return Ae(_0x5e98b2,''['concat'](_0x551543),{'defIds':_0x5e98b2['defIds'],'idSuffix':_0x2625f1[_0x26f914(0x329)]},b({'ref':_0x4d339d,'className':_0xb7b437},_0x52db46),_0x4bc2fe);});function Ae(_0x58a118,_0x267276,_0x4b9678,_0x23d062,_0x2f8509){const _0xf12451=_0x5f11ba;return M[_0xf12451(0x181)](_0x58a118['tag'],b(b({'key':_0x267276},Tt(_0x58a118,_0x4b9678,_0x2f8509)),_0x23d062),(Rt(_0x58a118,_0x4b9678)[_0xf12451(0x2cc)]||[])[_0xf12451(0x14c)](function(_0x92cc29,_0x14f9b8){const _0x32fb45=_0xf12451;return Ae(_0x92cc29,''[_0x32fb45(0x18b)](_0x267276,'-')[_0x32fb45(0x18b)](_0x58a118[_0x32fb45(0x259)],'-')['concat'](_0x14f9b8),_0x4b9678,void 0x0,_0x2f8509);}));}function Tt(_0x2b5624,_0x481853,_0x2a0843){const _0x11c895=_0x5f11ba;var _0x536b4d=b({},_0x2b5624[_0x11c895(0x2a6)]);_0x2a0843!=null&&_0x2a0843['colorChannel1']&&_0x536b4d['fill']==='colorChannel1'&&(_0x536b4d[_0x11c895(0x1a2)]=_0x2a0843[_0x11c895(0x314)]),_0x2b5624['tag']==='mask'&&_0x536b4d['id']&&(_0x536b4d['id']=_0x536b4d['id']+_0x481853[_0x11c895(0x1c4)]),Object[_0x11c895(0x11b)](_0x536b4d)[_0x11c895(0x307)](function(_0x4eff27){const _0x5825ac=_0x11c895;var _0x3962ce=_0x4eff27[0x0],_0xa4e316=_0x4eff27[0x1];_0x3962ce===_0x5825ac(0x2c4)&&typeof _0xa4e316==_0x5825ac(0x192)&&(_0x536b4d[_0x3962ce]=_0xa4e316['replace'](/url\(#(.*)\)/,_0x5825ac(0x229)['concat'](_0x481853[_0x5825ac(0x1c4)],')')));});var _0x4a5369=_0x481853[_0x11c895(0x22f)];return!_0x4a5369||_0x4a5369[_0x11c895(0x173)]===0x0||(_0x2b5624[_0x11c895(0x259)]===_0x11c895(0x283)&&_0x536b4d['xlink:href']&&(_0x536b4d['xlink:href']=_0x536b4d['xlink:href']+_0x481853[_0x11c895(0x1c4)]),Object['entries'](_0x536b4d)[_0x11c895(0x307)](function(_0x4c0a3c){const _0x53c5b6=_0x11c895;var _0x3da317=_0x4c0a3c[0x0],_0x2c1489=_0x4c0a3c[0x1];typeof _0x2c1489=='string'&&(_0x536b4d[_0x3da317]=_0x2c1489[_0x53c5b6(0x241)](/url\(#(.*)\)/,_0x53c5b6(0x229)[_0x53c5b6(0x18b)](_0x481853[_0x53c5b6(0x1c4)],')')));})),_0x536b4d;}function Rt(_0x12c868,_0x538265){const _0x580f3c=_0x5f11ba;var _0x1571c2,_0x28c3b4=_0x538265[_0x580f3c(0x22f)];return!_0x28c3b4||_0x28c3b4[_0x580f3c(0x173)]===0x0?_0x12c868:_0x12c868['tag']===_0x580f3c(0x225)&&(!((_0x1571c2=_0x12c868[_0x580f3c(0x2cc)])===null||_0x1571c2===void 0x0)&&_0x1571c2[_0x580f3c(0x173)])?b(b({},_0x12c868),{'children':_0x12c868[_0x580f3c(0x2cc)][_0x580f3c(0x14c)](function(_0x42080c){const _0x3d2bd6=_0x580f3c;return typeof _0x42080c[_0x3d2bd6(0x2a6)]['id']==_0x3d2bd6(0x192)&&_0x28c3b4&&_0x28c3b4['includes'](_0x42080c[_0x3d2bd6(0x2a6)]['id'])?b(b({},_0x42080c),{'attrs':b(b({},_0x42080c[_0x3d2bd6(0x2a6)]),{'id':_0x42080c[_0x3d2bd6(0x2a6)]['id']+_0x538265[_0x3d2bd6(0x1c4)]})}):_0x42080c;})}):_0x12c868;}function Dt(){const _0x54feba=_0x5f11ba;return Math[_0x54feba(0x175)]()[_0x54feba(0x1e6)](0x24)['substring'](0x2,0x8);}pe[_0x5f11ba(0xf3)]=_0x5f11ba(0x34b);var Ut={'tag':'svg','attrs':{'xmlns':_0x5f11ba(0x1b6),'fill':_0x5f11ba(0x1dd),'viewBox':_0x5f11ba(0x2ec),'width':_0x5f11ba(0x145),'height':_0x5f11ba(0x145)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f11ba(0x117)},'children':[{'tag':_0x5f11ba(0x16d),'attrs':{'stroke':_0x5f11ba(0x33a),'d':_0x5f11ba(0x308),'strokeLinecap':_0x5f11ba(0x19e),'strokeLinejoin':_0x5f11ba(0x19e),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5f11ba(0x250),'attrs':{'id':_0x5f11ba(0x31c)},'children':[{'tag':_0x5f11ba(0x16d),'attrs':{'fill':'white','d':_0x5f11ba(0x243)}}]}]}],'defIds':[_0x5f11ba(0x31c)]},ye=M['forwardRef'](function(_0x5d5ff8,_0x1de05e){const _0x17d190=_0x5f11ba;return M[_0x17d190(0x181)](pe,Object['assign']({},_0x5d5ff8,{'id':'off-line-icon','ref':_0x1de05e,'icon':Ut}));});ye[_0x5f11ba(0xf3)]='OffLineIcon';var Nt={'tag':_0x5f11ba(0xdc),'attrs':{'xmlns':_0x5f11ba(0x1b6),'fill':'none','viewBox':_0x5f11ba(0x1ae),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x5f11ba(0x19e),'strokeWidth':1.2}}]},{'tag':_0x5f11ba(0x225),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5f11ba(0x1de)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x5f11ba(0x243),'transform':_0x5f11ba(0x118)}}]}]}],'defIds':[_0x5f11ba(0x1de)]},$e=M[_0x5f11ba(0x2bf)](function(_0x14c51d,_0x2b153e){const _0x1d4f24=_0x5f11ba;return M[_0x1d4f24(0x181)](pe,Object[_0x1d4f24(0x251)]({},_0x14c51d,{'id':_0x1d4f24(0x2a1),'ref':_0x2b153e,'icon':Nt}));});$e[_0x5f11ba(0xf3)]=_0x5f11ba(0x21a);function Mt(_0x2f4dae){const _0x28f4e2=_0x5f11ba;switch(_0x2f4dae){case u['CollaborationStatus'][_0x28f4e2(0x1c9)]:return _0x28f4e2(0x1d9);case u['CollaborationStatus'][_0x28f4e2(0x1f3)]:return'collabStatus.conflict';case u[_0x28f4e2(0x138)][_0x28f4e2(0x195)]:return'collabStatus.fetchMiss';case u[_0x28f4e2(0x138)][_0x28f4e2(0x134)]:return _0x28f4e2(0x128);case u[_0x28f4e2(0x138)]['AWAITING']:case u[_0x28f4e2(0x138)][_0x28f4e2(0x172)]:return'collabStatus.syncing';case u[_0x28f4e2(0x138)][_0x28f4e2(0xd3)]:case u[_0x28f4e2(0x138)]['PENDING']:return _0x28f4e2(0x332);}}function xe(_0x2c6ef6){const _0x245263=_0x5f11ba,{status$:_0x5e6bf2}=_0x2c6ef6,_0x228a4c=O[_0x245263(0x14b)](_0x5e6bf2,u['CollaborationStatus'][_0x245263(0x134)]),_0x173caf=O[_0x245263(0x20b)](a['LocaleService']),_0x47c499=O['useDependency'](u[_0x245263(0x21c)]),_0x537879=_0x228a4c!==u[_0x245263(0x138)]['OFFLINE'],_0x329be9=_0x173caf['t'](Mt(_0x228a4c)),_0x1a561c=_0x537879?P['jsx']($e,{}):P[_0x245263(0x127)](ye,{}),_0x489390=M[_0x245263(0x309)](()=>{const _0x31effa=_0x245263;_0x537879||_0x47c499[_0x31effa(0x209)]();},[_0x537879,_0x47c499]);function _0x1bd9d2(){const _0x52c49d=_0x245263;return P[_0x52c49d(0x30b)](_0x52c49d(0x304),{'className':_0x52c49d(0x337),'onClick':_0x489390,'children':[P[_0x52c49d(0x127)](_0x52c49d(0x304),{'className':D[_0x52c49d(0x31e)](_0x52c49d(0x1d2),{'univer-text-green-500':_0x537879,'univer-text-red-500':!_0x537879}),'children':_0x1a561c}),P['jsx'](_0x52c49d(0x304),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x329be9})]});}return _0x537879?_0x1bd9d2():P[_0x245263(0x127)](D[_0x245263(0x1af)],{'title':_0x173caf['t'](_0x245263(0x2df)),'children':_0x1bd9d2()});}var Lt=Object[_0x5f11ba(0x2f9)],Pt=(_0x4cb1cd,_0x1b506a,_0x86afb3,_0x256cfa)=>{for(var _0x35b473=_0x256cfa>0x1?void 0x0:_0x256cfa?Lt(_0x1b506a,_0x86afb3):_0x1b506a,_0x3ffeba=_0x4cb1cd['length']-0x1,_0x9eae92;_0x3ffeba>=0x0;_0x3ffeba--)(_0x9eae92=_0x4cb1cd[_0x3ffeba])&&(_0x35b473=_0x9eae92(_0x35b473)||_0x35b473);return _0x35b473;},V=(_0x27b9da,_0x160945)=>(_0x572bc6,_0x36d4c2)=>_0x160945(_0x572bc6,_0x36d4c2,_0x27b9da);exports[_0x5f11ba(0x1b8)]=class extends a['Disposable']{constructor(_0x3808b7,_0x3a6b08,_0x443d1c,_0x52e24b){const _0x50c069=_0x5f11ba;super(),h(this,'_status$',new d['BehaviorSubject'](u[_0x50c069(0x138)][_0x50c069(0x134)])),(this[_0x50c069(0x111)]=_0x3808b7,this[_0x50c069(0x206)]=_0x3a6b08,this['_collaborationController']=_0x443d1c,this[_0x50c069(0xcc)]=_0x52e24b,this[_0x50c069(0x137)](),this[_0x50c069(0x1cb)]());}['_initStatusListener'](){const _0x94d28a=_0x5f11ba;this[_0x94d28a(0x100)](this[_0x94d28a(0x111)][_0x94d28a(0x2e0)][_0x94d28a(0x2ab)](d[_0x94d28a(0x21f)](()=>{const _0x12fbb4=_0x94d28a,_0xcaa33e=this[_0x12fbb4(0x111)]['getFocusedUnit']();return _0xcaa33e?this['_collaborationController'][_0x12fbb4(0x131)](_0xcaa33e[_0x12fbb4(0xf9)]()):d['of'](null);}),d[_0x94d28a(0x21f)](_0x424c08=>_0x424c08?_0x424c08[_0x94d28a(0x1a5)]:d['of'](u[_0x94d28a(0x138)]['NOT_COLLAB'])))[_0x94d28a(0x135)](_0x44c9df=>{const _0x534999=_0x94d28a;this[_0x534999(0x344)][_0x534999(0x2e3)](_0x44c9df);}));}[_0x5f11ba(0x137)](){const _0x1f733b=_0x5f11ba;this[_0x1f733b(0x100)](this['_uiPartsService'][_0x1f733b(0x2dc)](O['BuiltInUIPart'][_0x1f733b(0xe1)],()=>O['connectInjector'](wt({'status$':this['_status$']['asObservable']()}),this[_0x1f733b(0x206)])));}},exports[_0x5f11ba(0x1b8)]=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a['Inject'](a[_0x5f11ba(0x281)])),V(0x2,a[_0x5f11ba(0x116)](u[_0x5f11ba(0x11e)])),V(0x3,O[_0x5f11ba(0x1cd)])],exports[_0x5f11ba(0x1b8)]);function wt(_0x502154){const {status$:_0x26ddb0}=_0x502154;return function(){const _0x55d0e8=_0x32ae;return P[_0x55d0e8(0x127)](xe,{'status$':_0x26ddb0});};}var At=Object[_0x5f11ba(0x2f9)],yt=(_0x2d73ab,_0x4c1897,_0x297a75,_0x5370b5)=>{const _0x32aead=_0x5f11ba;for(var _0x46fb30=_0x5370b5>0x1?void 0x0:_0x5370b5?At(_0x4c1897,_0x297a75):_0x4c1897,_0x4d4b47=_0x2d73ab[_0x32aead(0x173)]-0x1,_0x48641c;_0x4d4b47>=0x0;_0x4d4b47--)(_0x48641c=_0x2d73ab[_0x4d4b47])&&(_0x46fb30=_0x48641c(_0x46fb30)||_0x46fb30);return _0x46fb30;},y=(_0x4de20b,_0x2635f2)=>(_0x407674,_0x59e045)=>_0x2635f2(_0x407674,_0x59e045,_0x4de20b);let q=class extends a[_0x5f11ba(0x262)]{constructor(_0x51f8d8,_0x441d10,_0x5897b8,_0xfc9d62,_0x181d8a,_0x388d1a){const _0x424cbc=_0x5f11ba;super(),this['_beforeCloseService']=_0x51f8d8,this[_0x424cbc(0x23a)]=_0x441d10,this[_0x424cbc(0x321)]=_0x5897b8,this['_messageService']=_0xfc9d62,this[_0x424cbc(0x132)]=_0x181d8a,this[_0x424cbc(0x331)]=_0x388d1a,this[_0x424cbc(0x28a)](),this[_0x424cbc(0x10f)]();}[_0x5f11ba(0x28a)](){const _0x368018=_0x5f11ba;this[_0x368018(0x100)](this[_0x368018(0x2b3)]['registerBeforeClose'](()=>{const _0xac4bb6=_0x368018;if(this['_localCacheService']['saveTaskMap'][_0xac4bb6(0x22c)])return this[_0xac4bb6(0x331)]['t'](_0xac4bb6(0x282));}));}[_0x5f11ba(0x10f)](){const _0x244bca=_0x5f11ba;this['disposeWithMe'](this[_0x244bca(0x321)]['event$']['subscribe'](_0x3d6c21=>{const _0x526fc1=_0x244bca;_0x3d6c21['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this[_0x526fc1(0x34e)][_0x526fc1(0x12b)]({'type':D[_0x526fc1(0x2cf)][_0x526fc1(0x1ec)],'content':this[_0x526fc1(0x331)]['t'](_0x526fc1(0x2b9))}),_0x3d6c21['id']===u[_0x526fc1(0x34a)]['CLOSE_ROOM']&&this[_0x526fc1(0x34e)][_0x526fc1(0x12b)]({'type':D['MessageType'][_0x526fc1(0x1ec)],'content':this[_0x526fc1(0x331)]['t']('collaboration.closeRoom')}),_0x3d6c21['id']===u['CollaborationUIEventId'][_0x526fc1(0x2d2)]&&this[_0x526fc1(0x132)][_0x526fc1(0x12b)]({'title':this['_localeService']['t'](_0x526fc1(0x35d)),'content':this[_0x526fc1(0x331)]['t'](_0x526fc1(0x294)),'type':'error','duration':0x0}),_0x3d6c21['id']===u[_0x526fc1(0x34a)][_0x526fc1(0x1f3)]&&this[_0x526fc1(0x34e)][_0x526fc1(0x12b)]({'type':D['MessageType'][_0x526fc1(0xf4)],'content':this['_localeService']['t'](_0x526fc1(0x338))+'('+_0x3d6c21[_0x526fc1(0x11d)]+')'}),_0x3d6c21['id']===u[_0x526fc1(0x34a)]['JOIN_ROOM_FAILED']&&this[_0x526fc1(0x34e)][_0x526fc1(0x12b)]({'type':D[_0x526fc1(0x2cf)][_0x526fc1(0x1ec)],'content':this[_0x526fc1(0x331)]['t'](_0x3d6c21[_0x526fc1(0x11d)]||'')}),_0x3d6c21['id']===u[_0x526fc1(0x34a)]['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x526fc1(0x12b)]({'type':D[_0x526fc1(0x2cf)][_0x526fc1(0x1ec)],'content':this[_0x526fc1(0x331)]['t'](_0x526fc1(0x17d))}),_0x3d6c21['id']===u[_0x526fc1(0x34a)][_0x526fc1(0x275)]&&this[_0x526fc1(0x34e)][_0x526fc1(0x12b)]({'type':D[_0x526fc1(0x2cf)][_0x526fc1(0xf4)],'content':this[_0x526fc1(0x331)]['t'](_0x526fc1(0x345))}),_0x3d6c21['id']===u[_0x526fc1(0x34a)][_0x526fc1(0x323)]&&this[_0x526fc1(0x34e)][_0x526fc1(0x12b)]({'type':D['MessageType'][_0x526fc1(0xf4)],'content':this[_0x526fc1(0x331)]['t'](_0x526fc1(0x318))});}));}};q=yt([y(0x0,O['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x5f11ba(0x116)](u[_0x5f11ba(0x1bf)])),y(0x3,O[_0x5f11ba(0xea)]),y(0x4,O[_0x5f11ba(0x1a9)]),y(0x5,a[_0x5f11ba(0x116)](a[_0x5f11ba(0x2c9)]))],q);const $t=_0x5f11ba(0x280),Ue={},Ee=a[_0x5f11ba(0x1f9)]('uni.network.url-service');var xt=Object[_0x5f11ba(0x2f9)],Bt=(_0x4227af,_0x257e52,_0x4737cb,_0x17c05b)=>{for(var _0xf5aa71=_0x17c05b>0x1?void 0x0:_0x17c05b?xt(_0x257e52,_0x4737cb):_0x257e52,_0x390ca0=_0x4227af['length']-0x1,_0x5d6834;_0x390ca0>=0x0;_0x390ca0--)(_0x5d6834=_0x4227af[_0x390ca0])&&(_0xf5aa71=_0x5d6834(_0xf5aa71)||_0xf5aa71);return _0xf5aa71;},F=(_0x2b2425,_0x1a1bff)=>(_0x339f13,_0xbc98f5)=>_0x1a1bff(_0x339f13,_0xbc98f5,_0x2b2425);exports[_0x5f11ba(0x25c)]=class extends a['RxDisposable']{constructor(_0x379725,_0x26eeb0,_0x5ec316,_0x7ebaba,_0x13a4f9){const _0x2c4bdb=_0x5f11ba;super(),this[_0x2c4bdb(0x32f)]=_0x379725,this[_0x2c4bdb(0x2b8)]=_0x26eeb0,this['_commandService']=_0x5ec316,this[_0x2c4bdb(0x27f)]=_0x7ebaba,_0x13a4f9?_0x13a4f9==null||_0x13a4f9['whenReady']()['then'](()=>this[_0x2c4bdb(0x242)]()):(this['_logService']['debug'](_0x2c4bdb(0xf0),_0x2c4bdb(0x25d)),this['_init']());}async['_init'](){const _0x4de748=_0x5f11ba,_0x490c41=this[_0x4de748(0x32f)][_0x4de748(0x2f5)](_0x4de748(0x16b)),_0x119a45=this[_0x4de748(0x32f)][_0x4de748(0x2f5)]('type'),_0x5becc3=this['_urlService'][_0x4de748(0x2f5)](_0x4de748(0x289));if(!_0x490c41||!_0x119a45){this['_logService'][_0x4de748(0x142)]('[CollaborationDataLoaderController]',_0x4de748(0x2e5));return;}const _0x3a6eac=await this[_0x4de748(0x27f)]['loadUnit'](_0x490c41,Number(_0x119a45),_0x5becc3);_0x3a6eac&&_0x3a6eac instanceof a['Workbook']&&this[_0x4de748(0x238)](_0x3a6eac);}async[_0x5f11ba(0x238)](_0x2cc025){const _0x29e889=_0x5f11ba;await this[_0x29e889(0x166)](_0x2cc025),_0x2cc025[_0x29e889(0x21b)][_0x29e889(0x2ab)](d[_0x29e889(0x1ee)](this[_0x29e889(0x193)]))[_0x29e889(0x135)](_0x1e3c5d=>{const _0x208be5=_0x29e889;_0x1e3c5d&&this[_0x208be5(0x2d0)](_0x1e3c5d);}),this[_0x29e889(0x32f)][_0x29e889(0x1ca)]['pipe'](d[_0x29e889(0x1ee)](this[_0x29e889(0x193)]))[_0x29e889(0x135)](()=>this[_0x29e889(0x166)](_0x2cc025));}['_updateURLWithCurrentState'](_0x584387,_0x397adb=!0x1){const _0x4ee686=_0x5f11ba,_0x1d94ae=this['_urlService'][_0x4ee686(0x2f5)](_0x4ee686(0x289));_0x584387[_0x4ee686(0x322)]()!==_0x1d94ae&&this[_0x4ee686(0x32f)][_0x4ee686(0x2d6)](_0x4ee686(0x289),_0x584387['getSheetId'](),_0x397adb);}async[_0x5f11ba(0x166)](_0x59b1e9){const _0x1dd7ba=_0x5f11ba;var _0x4a009a;const _0x1f0ec3=this[_0x1dd7ba(0x32f)]['getParam'](_0x1dd7ba(0x289));if(!_0x1f0ec3||!_0x59b1e9[_0x1dd7ba(0x1d4)](_0x1f0ec3)){const _0x51c25c=_0x59b1e9['getUnhiddenWorksheets']()[0x0],_0x5e7297=_0x59b1e9[_0x1dd7ba(0x1d4)](_0x51c25c);if(!_0x5e7297)return;this[_0x1dd7ba(0x2d0)](_0x5e7297,!0x0),await this[_0x1dd7ba(0xe2)][_0x1dd7ba(0x125)](g[_0x1dd7ba(0x236)]['id'],{'unitId':_0x59b1e9[_0x1dd7ba(0xf9)](),'subUnitId':_0x51c25c});return;}((_0x4a009a=_0x59b1e9[_0x1dd7ba(0x240)]())==null?void 0x0:_0x4a009a['getSheetId']())!==_0x1f0ec3&&await this[_0x1dd7ba(0xe2)][_0x1dd7ba(0x125)](g[_0x1dd7ba(0x236)]['id'],{'unitId':_0x59b1e9['getUnitId'](),'subUnitId':_0x1f0ec3});}},exports[_0x5f11ba(0x25c)]=Bt([F(0x0,Ee),F(0x1,a['ILogService']),F(0x2,a[_0x5f11ba(0x25f)]),F(0x3,a[_0x5f11ba(0x116)](u[_0x5f11ba(0x2b4)])),F(0x4,a[_0x5f11ba(0xf1)](Ke['IRemoteInstanceService']))],exports['CollaborationDataLoaderController']);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x3aa6d3,_0x2511e2,_0x2f00e1,_0x118bdb)=>{const _0x45779d=_0x5f11ba;for(var _0x5d0656=_0x118bdb>0x1?void 0x0:_0x118bdb?jt(_0x2511e2,_0x2f00e1):_0x2511e2,_0x26096d=_0x3aa6d3[_0x45779d(0x173)]-0x1,_0x33657d;_0x26096d>=0x0;_0x26096d--)(_0x33657d=_0x3aa6d3[_0x26096d])&&(_0x5d0656=_0x33657d(_0x5d0656)||_0x5d0656);return _0x5d0656;},ce=(_0x366b16,_0x13f4ed)=>(_0x41546d,_0x3a24ff)=>_0x13f4ed(_0x41546d,_0x3a24ff,_0x366b16);let z=class{constructor(_0x4f9832,_0x292bbf,_0x278136){const _0x4228fd=_0x5f11ba;this['_injector']=_0x4f9832,this[_0x4228fd(0x327)]=_0x292bbf,this[_0x4228fd(0x28c)]=_0x278136;}[_0x5f11ba(0x224)](_0x529276){const _0x421c18=_0x5f11ba;this[_0x421c18(0x12c)](_0x529276),this[_0x421c18(0x2a4)](_0x529276);}[_0x5f11ba(0x18e)](_0x5ba8cb){const _0xd8a1f0=_0x5f11ba,{unitID:_0x59d3eb}=_0x5ba8cb,_0x3d0d32=this[_0xd8a1f0(0x28c)][_0xd8a1f0(0x126)](_0x59d3eb)[_0xd8a1f0(0x212)](E[_0xd8a1f0(0x19a)]),{redoCache:_0x22f914}=_0x3d0d32[_0xd8a1f0(0x133)]();if(_0x22f914[_0xd8a1f0(0x173)]===0x0)return _0x5ba8cb;let _0x481671=a['Tools'][_0xd8a1f0(0x25e)](_0x5ba8cb[_0xd8a1f0(0xf5)][0x0]);for(let _0x232dbf=0x0;_0x232dbf<_0x22f914['length'];_0x232dbf++){const _0x360d8c={'id':_0xd8a1f0(0x306),'params':{..._0x22f914[_0x232dbf]}},_0x62f086=this[_0xd8a1f0(0x327)][_0xd8a1f0(0x1d7)](_0x481671,_0x360d8c,!0x1);if(m['isTransformMutationFailure'](_0x62f086))throw _0x62f086[_0xd8a1f0(0x110)];_0x481671=_0x62f086[_0xd8a1f0(0x11c)];}return{...a[_0xd8a1f0(0x2a0)][_0xd8a1f0(0x25e)](_0x5ba8cb),'mutations':[_0x481671]};}[_0x5f11ba(0x12c)](_0x3673e0){const _0x501392=_0x5f11ba,{unitID:_0x345c4a}=_0x3673e0,_0x52c023=this[_0x501392(0x28c)][_0x501392(0x126)](_0x345c4a)[_0x501392(0x212)](E[_0x501392(0x19a)]),{undoCache:_0x2731c4,redoCache:_0x1ed3c3}=_0x52c023['getUndoRedoMutationParamsCache']();if(_0x2731c4[_0x501392(0x173)]===0x0||_0x1ed3c3['length']===0x0)return;const _0x154f0c=[],_0x6c733c=[];let _0x287db7=a[_0x501392(0x2a0)][_0x501392(0x25e)](_0x3673e0[_0x501392(0xf5)][0x0]),_0x405305=a[_0x501392(0x2a0)][_0x501392(0x25e)](_0x3673e0[_0x501392(0xf5)][0x0]);for(let _0x10bb73=_0x2731c4[_0x501392(0x173)]-0x1;_0x10bb73>=0x0;_0x10bb73--){const _0x209b50={'id':_0x501392(0x306),'params':{..._0x2731c4[_0x10bb73]}},_0x5f2a26={'id':'doc.mutation.rich-text-editing','params':{..._0x1ed3c3[_0x10bb73]}},_0x243433=this[_0x501392(0x327)][_0x501392(0x1d7)](_0x287db7,_0x209b50,!0x1),_0x49b3dd=this['_transformService'][_0x501392(0x1d7)](_0x405305,_0x5f2a26,!0x1);if(m[_0x501392(0x2fc)](_0x243433))throw _0x243433['error'];if(m[_0x501392(0x2fc)](_0x49b3dd))throw _0x49b3dd[_0x501392(0x110)];_0x154f0c['unshift'](_0x243433['m2Prime'][_0x501392(0xf8)]),_0x6c733c[_0x501392(0x1cf)](_0x49b3dd[_0x501392(0x237)]['params']),_0x287db7=_0x243433[_0x501392(0x11c)],_0x405305=_0x49b3dd[_0x501392(0x11c)];}_0x52c023[_0x501392(0x2c3)]({'undoCache':_0x154f0c,'redoCache':_0x6c733c});}['_transformPreviousActiveRange'](_0x3feae6){const _0x3ee00c=_0x5f11ba,{unitID:_0x135dcc}=_0x3feae6,_0x393be5=this['_renderManagerService']['getRenderById'](_0x135dcc)[_0x3ee00c(0x212)](E[_0x3ee00c(0x19a)]),_0x4e74a6=_0x393be5[_0x3ee00c(0x26b)]();if(_0x4e74a6==null)return;const _0x423627=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3feae6[_0x3ee00c(0x352)],'actions':null,'textRanges':[_0x4e74a6]}}],_0xd6c287=this[_0x3ee00c(0x327)][_0x3ee00c(0x205)](_0x3feae6,_0x423627);if(!m[_0x3ee00c(0x248)](_0xd6c287))throw _0xd6c287['error'];const _0x5070c3=_0xd6c287[_0x3ee00c(0x237)][0x0][_0x3ee00c(0xf8)][_0x3ee00c(0x254)];Array[_0x3ee00c(0x114)](_0x5070c3)&&_0x5070c3['length']&&_0x393be5[_0x3ee00c(0x302)](_0x5070c3[0x0]);}};z=kt([ce(0x0,a[_0x5f11ba(0x116)](a[_0x5f11ba(0x281)])),ce(0x1,m[_0x5f11ba(0xe5)]),ce(0x2,p[_0x5f11ba(0x17e)])],z);var Ft=Object[_0x5f11ba(0x2f9)],Ht=(_0x660264,_0x3d0ef3,_0x53dd1e,_0x38f174)=>{const _0x1a2491=_0x5f11ba;for(var _0x1a526e=_0x38f174>0x1?void 0x0:_0x38f174?Ft(_0x3d0ef3,_0x53dd1e):_0x3d0ef3,_0xa8eb67=_0x660264[_0x1a2491(0x173)]-0x1,_0x3b8709;_0xa8eb67>=0x0;_0xa8eb67--)(_0x3b8709=_0x660264[_0xa8eb67])&&(_0x1a526e=_0x3b8709(_0x1a526e)||_0x1a526e);return _0x1a526e;},le=(_0x2c5d58,_0x32bc98)=>(_0x1e6540,_0x26404e)=>_0x32bc98(_0x1e6540,_0x26404e,_0x2c5d58);let J=class{constructor(_0x2c0c02,_0x1f1913,_0x512a93){const _0x210b43=_0x5f11ba;this[_0x210b43(0x206)]=_0x2c0c02,this['_transformService']=_0x1f1913,this['_docStateChangeManagerService']=_0x512a93;}[_0x5f11ba(0x270)](_0x22bab6){const _0x3f78af=_0x5f11ba;this[_0x3f78af(0x103)](_0x22bab6);}[_0x5f11ba(0x18e)](_0x55d013){const _0x5d9c8d=_0x5f11ba,{unitID:_0x189c17}=_0x55d013,{collaboration:_0x432b08}=this['_docStateChangeManagerService'][_0x5d9c8d(0x291)](_0x189c17);if(_0x432b08[_0x5d9c8d(0x173)]===0x0)return _0x55d013;let _0x490a4f=a[_0x5d9c8d(0x2a0)][_0x5d9c8d(0x25e)](_0x55d013['mutations'][0x0]);for(let _0x4f5ef3=0x0;_0x4f5ef3<_0x432b08[_0x5d9c8d(0x173)];_0x4f5ef3++){const _0x47f21d={'id':_0x5d9c8d(0x306),'params':{'unitId':_0x432b08[_0x4f5ef3][_0x5d9c8d(0xd6)],..._0x432b08[_0x4f5ef3][_0x5d9c8d(0x20e)]}},_0x3967c3=this['_transformService']['transformMutation'](_0x490a4f,_0x47f21d,!0x1);if(m[_0x5d9c8d(0x2fc)](_0x3967c3))throw _0x3967c3[_0x5d9c8d(0x110)];_0x490a4f=_0x3967c3[_0x5d9c8d(0x11c)];}return{...a['Tools'][_0x5d9c8d(0x25e)](_0x55d013),'mutations':[_0x490a4f]};}[_0x5f11ba(0x103)](_0x372990){const _0x1fbdaf=_0x5f11ba,{unitID:_0x5413d9}=_0x372990,{history:_0x2030d4,collaboration:_0x49f9bc}=this[_0x1fbdaf(0x261)][_0x1fbdaf(0x291)](_0x5413d9);if(_0x2030d4[_0x1fbdaf(0x173)]===0x0&&_0x49f9bc[_0x1fbdaf(0x173)]===0x0)return;const _0x4ec777=[],_0x51893a=[];let _0x158f29=a[_0x1fbdaf(0x2a0)]['deepClone'](_0x372990['mutations'][0x0]),_0x1593d0=a['Tools'][_0x1fbdaf(0x25e)](_0x372990[_0x1fbdaf(0xf5)][0x0]);for(let _0x19a163=_0x2030d4['length']-0x1;_0x19a163>=0x0;_0x19a163--){const _0x44d273={'id':_0x1fbdaf(0x306),'params':{'unitId':_0x2030d4[_0x19a163]['unitId'],..._0x2030d4[_0x19a163][_0x1fbdaf(0x24b)]}},_0x268e59={'id':_0x1fbdaf(0x306),'params':{'unitId':_0x2030d4[_0x19a163][_0x1fbdaf(0xd6)],..._0x2030d4[_0x19a163][_0x1fbdaf(0x20e)]}},_0x137cf5=this['_transformService'][_0x1fbdaf(0x1d7)](_0x158f29,_0x44d273,!0x1),_0x5128c8=this[_0x1fbdaf(0x327)][_0x1fbdaf(0x1d7)](_0x1593d0,_0x268e59,!0x1);if(m[_0x1fbdaf(0x2fc)](_0x137cf5))throw _0x137cf5[_0x1fbdaf(0x110)];if(m[_0x1fbdaf(0x2fc)](_0x5128c8))throw _0x5128c8[_0x1fbdaf(0x110)];_0x4ec777[_0x1fbdaf(0x1cf)]({..._0x2030d4[_0x19a163],'undoState':_0x137cf5['m2Prime']['params'],'redoState':_0x5128c8['m2Prime']['params']}),_0x158f29=_0x137cf5[_0x1fbdaf(0x11c)],_0x1593d0=_0x5128c8[_0x1fbdaf(0x11c)];}_0x158f29=a[_0x1fbdaf(0x2a0)][_0x1fbdaf(0x25e)](_0x372990[_0x1fbdaf(0xf5)][0x0]),_0x1593d0=a[_0x1fbdaf(0x2a0)][_0x1fbdaf(0x25e)](_0x372990[_0x1fbdaf(0xf5)][0x0]);for(let _0x415dbc=_0x49f9bc[_0x1fbdaf(0x173)]-0x1;_0x415dbc>=0x0;_0x415dbc--){const _0x4e9844={'id':_0x1fbdaf(0x306),'params':{'unitId':_0x49f9bc[_0x415dbc]['unitId'],..._0x49f9bc[_0x415dbc][_0x1fbdaf(0x24b)]}},_0x2f7153={'id':_0x1fbdaf(0x306),'params':{'unitId':_0x49f9bc[_0x415dbc][_0x1fbdaf(0xd6)],..._0x49f9bc[_0x415dbc][_0x1fbdaf(0x20e)]}},_0x122050=this['_transformService'][_0x1fbdaf(0x1d7)](_0x158f29,_0x4e9844,!0x1),_0x32dc46=this[_0x1fbdaf(0x327)][_0x1fbdaf(0x1d7)](_0x1593d0,_0x2f7153,!0x1);if(m[_0x1fbdaf(0x2fc)](_0x122050))throw _0x122050['error'];if(m[_0x1fbdaf(0x2fc)](_0x32dc46))throw _0x32dc46['error'];_0x51893a[_0x1fbdaf(0x1cf)]({..._0x49f9bc[_0x415dbc],'undoState':_0x122050['m2Prime']['params'],'redoState':_0x32dc46[_0x1fbdaf(0x237)][_0x1fbdaf(0xf8)]}),_0x158f29=_0x122050[_0x1fbdaf(0x11c)],_0x1593d0=_0x32dc46[_0x1fbdaf(0x11c)];}this[_0x1fbdaf(0x261)][_0x1fbdaf(0x353)](_0x5413d9,{'history':_0x4ec777,'collaboration':_0x51893a});}};J=Ht([le(0x0,a['Inject'](a[_0x5f11ba(0x281)])),le(0x1,m['ITransformService']),le(0x2,a['Inject'](E[_0x5f11ba(0x27e)]))],J);var Yt=Object[_0x5f11ba(0x2f9)],Wt=(_0x5662c6,_0x3d12b9,_0x20d4f3,_0x28d22b)=>{const _0xf6e4e3=_0x5f11ba;for(var _0x207605=_0x28d22b>0x1?void 0x0:_0x28d22b?Yt(_0x3d12b9,_0x20d4f3):_0x3d12b9,_0xdbf69d=_0x5662c6[_0xf6e4e3(0x173)]-0x1,_0x42c707;_0xdbf69d>=0x0;_0xdbf69d--)(_0x42c707=_0x5662c6[_0xdbf69d])&&(_0x207605=_0x42c707(_0x207605)||_0x207605);return _0x207605;},Ne=(_0x4611cd,_0x5853e8)=>(_0x2a5263,_0x14b532)=>_0x5853e8(_0x2a5263,_0x14b532,_0x4611cd);let Z=class{constructor(_0x457202,_0x50049e){const _0x17d535=_0x5f11ba;this[_0x17d535(0x206)]=_0x457202,this[_0x17d535(0x327)]=_0x50049e;}[_0x5f11ba(0x1f7)](_0x23bf6b){const _0x4adcc4=_0x5f11ba;var _0x5f3c8c;const _0x22fb5e=this[_0x4adcc4(0x206)][_0x4adcc4(0x2db)](Y['DocSelectionManagerService']),_0x14d493=(_0x5f3c8c=_0x22fb5e[_0x4adcc4(0xef)]())!=null?_0x5f3c8c:[];if(_0x14d493[_0x4adcc4(0x173)]===0x0)return;const _0x1c09ef=_0x23bf6b[_0x4adcc4(0x352)],_0xf91874=[{'id':_0x4adcc4(0x306),'params':{'unitId':_0x1c09ef,'actions':null,'textRanges':_0x14d493}}],_0x2a5c94=this['_transformService'][_0x4adcc4(0x205)](_0x23bf6b,_0xf91874);if(!m[_0x4adcc4(0x248)](_0x2a5c94))throw _0x2a5c94['error'];const _0xe84839=_0x2a5c94['m2Prime'][0x0][_0x4adcc4(0xf8)][_0x4adcc4(0x254)];Array[_0x4adcc4(0x114)](_0xe84839)&&_0xe84839[_0x4adcc4(0x173)]&&_0x22fb5e[_0x4adcc4(0x2f3)](_0xe84839,{'unitId':_0x1c09ef,'subUnitId':_0x1c09ef},!0x1);}};Z=Wt([Ne(0x0,a[_0x5f11ba(0x116)](a[_0x5f11ba(0x281)])),Ne(0x1,m[_0x5f11ba(0xe5)])],Z);var Vt=Object[_0x5f11ba(0x2f9)],Xt=(_0x49d0bf,_0x36be78,_0x541c51,_0xba019c)=>{const _0x5ac22e=_0x5f11ba;for(var _0x5006f7=_0xba019c>0x1?void 0x0:_0xba019c?Vt(_0x36be78,_0x541c51):_0x36be78,_0x5e4522=_0x49d0bf[_0x5ac22e(0x173)]-0x1,_0x1f3f47;_0x5e4522>=0x0;_0x5e4522--)(_0x1f3f47=_0x49d0bf[_0x5e4522])&&(_0x5006f7=_0x1f3f47(_0x5006f7)||_0x5006f7);return _0x5006f7;},N=(_0x56f35f,_0x5ce97c)=>(_0x482983,_0x37b3c5)=>_0x5ce97c(_0x482983,_0x37b3c5,_0x56f35f);let Q=class extends a[_0x5f11ba(0x262)]{constructor(_0xb4484a,_0x5e1d19,_0x552527,_0x198262,_0x23087b,_0x294f8c,_0x3b4871,_0x455472){const _0x3e6dff=_0x5f11ba;super(),h(this,_0x3e6dff(0x344),new d['BehaviorSubject'](u[_0x3e6dff(0x138)][_0x3e6dff(0x134)])),(this[_0x3e6dff(0x261)]=_0xb4484a,this[_0x3e6dff(0x14d)]=_0x5e1d19,this[_0x3e6dff(0x11f)]=_0x552527,this[_0x3e6dff(0x26e)]=_0x198262,this[_0x3e6dff(0xcf)]=_0x23087b,this[_0x3e6dff(0x194)]=_0x294f8c,this[_0x3e6dff(0x34e)]=_0x3b4871,this[_0x3e6dff(0x331)]=_0x455472,this[_0x3e6dff(0x162)]());}[_0x5f11ba(0x162)](){const _0x4860b5=_0x5f11ba;this[_0x4860b5(0x100)](this[_0x4860b5(0x14d)][_0x4860b5(0x159)][_0x4860b5(0x135)](_0x2d6394=>{const _0x48c9b3=_0x4860b5,_0x2fdaaa=this[_0x48c9b3(0x261)][_0x48c9b3(0x136)][_0x48c9b3(0x135)](_0x4d0374=>{const _0x1a5080=_0x48c9b3;if(_0x4d0374==null)return;const {unitId:_0x6fa903,redoState:_0x3e048f,commandId:_0x37faf1}=_0x4d0374;if(_0x6fa903!==_0x2d6394['unitID'])return;const _0x3062c1={'id':_0x37faf1,'type':a['CommandType'][_0x1a5080(0x343)],'params':{'unitId':_0x6fa903,'actions':_0x3e048f['actions'],'textRanges':null}};_0x2d6394[_0x1a5080(0x163)](_0x3062c1);});if(_0x2d6394['disposeWithMe'](_0x2fdaaa),_0x2d6394 instanceof u[_0x48c9b3(0x35b)]){const _0x56d073={'onTransformIME':_0x19ac69=>this['_docTransformIMECacheService']['transformIMECache'](_0x19ac69),'onTransformState':_0x70892b=>this[_0x48c9b3(0x26e)][_0x48c9b3(0x270)](_0x70892b),'onTransformSelections':_0x21ec71=>this['_docTransformSelectionsService'][_0x48c9b3(0x1f7)](_0x21ec71),'onSyncEditingCollabCursor':_0x2e811e=>this[_0x48c9b3(0x194)][_0x48c9b3(0x13f)](_0x2e811e),'onTransformRemoteChangesetByIMECache':_0x1b7a41=>this[_0x48c9b3(0x11f)][_0x48c9b3(0x18e)](_0x1b7a41),'onTransformRemoteChangesetByStateCache':_0x5f1fc3=>this[_0x48c9b3(0x26e)][_0x48c9b3(0x18e)](_0x5f1fc3)};_0x2d6394['addHandlerCallback'](_0x56d073);}}));}};Q=Xt([N(0x0,a['Inject'](E[_0x5f11ba(0x27e)])),N(0x1,a[_0x5f11ba(0x116)](u[_0x5f11ba(0x11e)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x5f11ba(0x116)](J)),N(0x4,a[_0x5f11ba(0x116)](Z)),N(0x5,a[_0x5f11ba(0x116)](Ce)),N(0x6,O['IMessageService']),N(0x7,a[_0x5f11ba(0x116)](a[_0x5f11ba(0x2c9)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0xbf6912,_0x80d249,_0x14a8d4,_0x282955)=>{for(var _0x5b128f=_0x282955>0x1?void 0x0:_0x282955?Gt(_0x80d249,_0x14a8d4):_0x80d249,_0x122345=_0xbf6912['length']-0x1,_0x4fb30b;_0x122345>=0x0;_0x122345--)(_0x4fb30b=_0xbf6912[_0x122345])&&(_0x5b128f=_0x4fb30b(_0x5b128f)||_0x5b128f);return _0x5b128f;},_e=(_0x3c3c8f,_0x232070)=>(_0x129d35,_0x65ec3d)=>_0x232070(_0x129d35,_0x65ec3d,_0x3c3c8f);let ge=class extends a['Disposable']{constructor(_0x3c619d,_0x735940,_0x1b6a91){const _0x128ad5=_0x5f11ba;super(),h(this,'_cachedData',new Map()),h(this,_0x128ad5(0x2ca),new Map()),h(this,_0x128ad5(0x351),!0x1),(this[_0x128ad5(0x1a6)]=_0x3c619d,this[_0x128ad5(0x1f5)]=_0x735940,this[_0x128ad5(0x12d)]=_0x1b6a91);}[_0x5f11ba(0x356)](){const _0x4c4891=_0x5f11ba;this[_0x4c4891(0x351)]=!0x0;}[_0x5f11ba(0x107)](){const _0xa84609=_0x5f11ba;this[_0xa84609(0x351)]=!0x1;}get[_0x5f11ba(0x220)](){return this['_saveTaskMap'];}['dispose'](){const _0x25a272=_0x5f11ba;this[_0x25a272(0x1f2)]()[_0x25a272(0x358)](()=>super[_0x25a272(0xe7)]());}async[_0x5f11ba(0x226)](_0x1414fe){const _0x598800=_0x5f11ba;return this['_disabled']?null:this[_0x598800(0x1f5)][_0x598800(0x33d)](u[_0x598800(0x265)](_0x1414fe));}async[_0x5f11ba(0x27d)](_0x1f8dde,_0x4d9a19){const _0x223873=_0x5f11ba;return!!this[_0x223873(0x1f5)][_0x223873(0x29e)](_0x1f8dde,_0x4d9a19);}[_0x5f11ba(0x28d)](_0x16f687,_0x56abe0,_0xe3c426,_0x3f1030){const _0x37f464=_0x5f11ba,_0xf15aa9=this['_revisionService'][_0x37f464(0x204)](_0x16f687);this[_0x37f464(0x1db)][_0x37f464(0x286)](_0x16f687,{'unitID':_0x16f687,'type':_0x56abe0,'awaitingChangeset':_0xe3c426,'mutations':_0x3f1030,'rev':_0xf15aa9}),this[_0x37f464(0x2ca)]['has'](_0x16f687)||this['_scheduleSaving'](_0x16f687);}[_0x5f11ba(0x130)](_0x157bee){const _0x422418=_0x5f11ba,_0x3ef99f=this[_0x422418(0x140)]();_0x3ef99f===0x0?this['_saveCache'](_0x157bee):this['_saveTaskMap'][_0x422418(0x286)](_0x157bee,setTimeout(()=>this[_0x422418(0x2d8)](_0x157bee),_0x3ef99f));}[_0x5f11ba(0x140)](){const _0x326eec=_0x5f11ba;var _0x466d15;return(_0x466d15=this[_0x326eec(0x1a6)][_0x326eec(0x24f)](u[_0x326eec(0x1fa)]))!=null?_0x466d15:u[_0x326eec(0x15f)];}[_0x5f11ba(0x2d8)](_0x3315f1){const _0xa59ee3=_0x5f11ba,_0x439b1b=this[_0xa59ee3(0x2ca)][_0xa59ee3(0x2db)](_0x3315f1);return _0x439b1b!==void 0x0&&window[_0xa59ee3(0x32a)](_0x439b1b),this[_0xa59ee3(0x1f5)]['setItem'](u[_0xa59ee3(0x265)](_0x3315f1),this['_cachedData'][_0xa59ee3(0x2db)](_0x3315f1))[_0xa59ee3(0x358)](()=>this[_0xa59ee3(0x2ca)][_0xa59ee3(0x25b)](_0x3315f1));}async[_0x5f11ba(0x1f2)](){const _0x44e80e=_0x5f11ba,_0xc8e6c5=[];this[_0x44e80e(0x2ca)][_0x44e80e(0x307)]((_0x379dbc,_0x8b726e)=>{const _0x4f6735=_0x44e80e;window['clearTimeout'](_0x379dbc),_0xc8e6c5[_0x4f6735(0x1be)](this[_0x4f6735(0x2d8)](_0x8b726e)['then'](()=>{this['_saveTaskMap']['delete'](_0x8b726e);}));}),await Promise[_0x44e80e(0x10c)](_0xc8e6c5);}};ge=Kt([_e(0x0,a[_0x5f11ba(0x235)]),_e(0x1,a[_0x5f11ba(0x152)]),_e(0x2,a['Inject'](m[_0x5f11ba(0x124)]))],ge);class Be extends a[_0x5f11ba(0x164)]{constructor(){const _0x264ae5=_0x5f11ba;super(),h(this,_0x264ae5(0x1ca)),this[_0x264ae5(0x1ca)]=d['fromEvent'](window,_0x264ae5(0x23d))['pipe'](d[_0x264ae5(0x1ee)](this[_0x264ae5(0x193)]),d[_0x264ae5(0x177)](0x1),d[_0x264ae5(0xd0)](void 0x0));}[_0x5f11ba(0x2d6)](_0x2df765,_0x515128,_0x1a158c=!0x1){const _0x36c22f=_0x5f11ba,_0x1cecf2=new URL(window['location'][_0x36c22f(0x1a7)]);_0x1cecf2[_0x36c22f(0x2c6)]['set'](_0x2df765,_0x515128),_0x1a158c?window[_0x36c22f(0x324)][_0x36c22f(0x227)]('','',_0x1cecf2['toString']()):window[_0x36c22f(0x324)][_0x36c22f(0x22e)]('','',_0x1cecf2[_0x36c22f(0x1e6)]());}[_0x5f11ba(0x310)](_0x57f660,_0x5be971=!0x1){const _0x2f7b6e=_0x5f11ba,_0xad4d01=new URL(window[_0x2f7b6e(0x268)][_0x2f7b6e(0x1a7)]);_0xad4d01[_0x2f7b6e(0x2c6)]['delete'](_0x57f660),_0x5be971?window[_0x2f7b6e(0x324)][_0x2f7b6e(0x227)]('','',_0xad4d01['toString']()):window['history'][_0x2f7b6e(0x22e)]('','',_0xad4d01[_0x2f7b6e(0x1e6)]());}['getParam'](_0x325511){const _0x167afe=_0x5f11ba;var _0x15b7dc;return(_0x15b7dc=new URL(window['location']['href'])[_0x167afe(0x2c6)][_0x167afe(0x2db)](_0x325511))!=null?_0x15b7dc:void 0x0;}}var qt=Object[_0x5f11ba(0x104)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x52d087,_0x26c2e9,_0x555a9f)=>_0x26c2e9 in _0x52d087?qt(_0x52d087,_0x26c2e9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x555a9f}):_0x52d087[_0x26c2e9]=_0x555a9f,Zt=(_0x3bbc1e,_0x13b5b6,_0x538830,_0xd0709f)=>{for(var _0x2116d5=_0xd0709f>0x1?void 0x0:_0xd0709f?zt(_0x13b5b6,_0x538830):_0x13b5b6,_0x355d55=_0x3bbc1e['length']-0x1,_0x258c56;_0x355d55>=0x0;_0x355d55--)(_0x258c56=_0x3bbc1e[_0x355d55])&&(_0x2116d5=_0x258c56(_0x2116d5)||_0x2116d5);return _0x2116d5;},he=(_0x4dbde4,_0x4f4c94)=>(_0x4bb71e,_0x4f5caf)=>_0x4f4c94(_0x4bb71e,_0x4f5caf,_0x4dbde4),Qt=(_0x39d076,_0x17ca4a,_0x216ba6)=>Jt(_0x39d076,_0x17ca4a+'',_0x216ba6);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x5f11ba(0x300)]=class extends a[_0x5f11ba(0x305)]{constructor(_0x16ff07=Ue,_0x26e028,_0x5e754e,_0x12a35f){const _0x492e9c=_0x5f11ba;super(),this['_config']=_0x16ff07,this[_0x492e9c(0x28c)]=_0x26e028,this[_0x492e9c(0x206)]=_0x5e754e,this[_0x492e9c(0x1a6)]=_0x12a35f;const {..._0x579412}=a['merge']({},Ue,this[_0x492e9c(0x334)]);this[_0x492e9c(0x1a6)][_0x492e9c(0x190)]($t,_0x579412);}[_0x5f11ba(0x253)](){const _0xf7a57f=_0x5f11ba;this[_0xf7a57f(0x22d)](),this[_0xf7a57f(0x346)]();}[_0x5f11ba(0xee)](){const _0x4c8e41=_0x5f11ba;this[_0x4c8e41(0x2f4)]();}[_0x5f11ba(0x22d)](){const _0x2e1a04=_0x5f11ba;var _0x830a5f;const _0x2116e8=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x2e1a04(0x1fe)],{'useClass':G[_0x2e1a04(0xe4)]}],[u[_0x2e1a04(0x1fc)],{'useClass':ge}],[exports[_0x2e1a04(0x1b8)]],[Q],[q],[x],[de],[exports[_0x2e1a04(0x25c)]]];a['registerDependencies'](this[_0x2e1a04(0x206)],a[_0x2e1a04(0x210)](_0x2116e8,(_0x830a5f=this[_0x2e1a04(0x334)])==null?void 0x0:_0x830a5f[_0x2e1a04(0x326)]));}[_0x5f11ba(0x2f4)](){const _0x2fe0e9=_0x5f11ba;this[_0x2fe0e9(0x100)](this['_renderManagerService'][_0x2fe0e9(0x171)](a[_0x2fe0e9(0x35c)][_0x2fe0e9(0x32e)],[fe])),this[_0x2fe0e9(0x100)](this[_0x2fe0e9(0x28c)][_0x2fe0e9(0x171)](a[_0x2fe0e9(0x35c)]['UNIVER_SHEET'],[ve]));}[_0x5f11ba(0x346)](){const _0x24513e=_0x5f11ba;a[_0x24513e(0x11a)](this[_0x24513e(0x206)],[[x],[exports[_0x24513e(0x1b8)]],[Q],[q],[exports[_0x24513e(0x25c)]]]);}},Qt(exports[_0x5f11ba(0x300)],_0x5f11ba(0x33c),es),exports[_0x5f11ba(0x300)]=Zt([a[_0x5f11ba(0x27c)](u[_0x5f11ba(0x24a)]),he(0x1,p[_0x5f11ba(0x17e)]),he(0x2,a['Inject'](a['Injector'])),he(0x3,a['IConfigService'])],exports[_0x5f11ba(0x300)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x1ae1f1,_0x5ad412,_0x4e8e52,_0x1d7945)=>{const _0x527b58=_0x5f11ba;for(var _0x497b3c=_0x1d7945>0x1?void 0x0:_0x1d7945?ts(_0x5ad412,_0x4e8e52):_0x5ad412,_0x7ca9c1=_0x1ae1f1[_0x527b58(0x173)]-0x1,_0x26ae62;_0x7ca9c1>=0x0;_0x7ca9c1--)(_0x26ae62=_0x1ae1f1[_0x7ca9c1])&&(_0x497b3c=_0x26ae62(_0x497b3c)||_0x497b3c);return _0x497b3c;},H=(_0xacedab,_0x3551e5)=>(_0xa6aa78,_0xc35d4e)=>_0x3551e5(_0xa6aa78,_0xc35d4e,_0xacedab);exports['BrowserCollaborationSocketService']=class extends u[_0x5f11ba(0x161)]{constructor(_0x21fb63,_0x1779f7,_0x180bcc,_0x383db4,_0x5c5a80){super(_0x21fb63,_0x1779f7,_0x180bcc,_0x383db4,_0x5c5a80);}async['createSocket'](_0x21bbb5){const _0x29c6a4=_0x5f11ba,_0x3bd84e=await this[_0x29c6a4(0x2ef)](),_0x5edcbb=this[_0x29c6a4(0x33e)](_0x21bbb5,_0x3bd84e);return this[_0x29c6a4(0x216)](_0x5edcbb);}[_0x5f11ba(0x33e)](_0x3a36b5,_0x29fa02){const _0x595809=_0x5f11ba,_0x38933b=typeof window>'u'?new URL(_0x3a36b5):new URL(_0x3a36b5,window[_0x595809(0x268)][_0x595809(0x189)]);_0x38933b[_0x595809(0x2c6)][_0x595809(0x286)](_0x595809(0x274),_0x29fa02);const _0x56d293=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x595809(0x268)]['search']);return _0x56d293['get'](_0x595809(0x108))&&_0x38933b[_0x595809(0x2c6)][_0x595809(0x286)](_0x595809(0x108),_0x56d293[_0x595809(0x2db)]('runId')),_0x38933b[_0x595809(0x1e6)]();}async[_0x5f11ba(0x2ef)](){const _0x3cbb63=_0x5f11ba;var _0x48d82e,_0x35a54d,_0xa59fb1;const _0x315f7e=this['_configService']['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x22010f=(_0x48d82e=_0x315f7e==null?void 0x0:_0x315f7e[_0x3cbb63(0x1a0)])!=null?_0x48d82e:u[_0x3cbb63(0x28f)];return(_0xa59fb1=(_0x35a54d=(await this[_0x3cbb63(0x2f2)]['get'](_0x22010f,{'headers':{'Content-Type':_0x3cbb63(0x176)}}))[_0x3cbb63(0x22b)])==null?void 0x0:_0x35a54d[_0x3cbb63(0x222)])!=null?_0xa59fb1:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a[_0x5f11ba(0x116)](a[_0x5f11ba(0x281)])),H(0x1,a[_0x5f11ba(0x116)](G[_0x5f11ba(0x10d)])),H(0x2,a[_0x5f11ba(0x235)]),H(0x3,a[_0x5f11ba(0x1f6)]),H(0x4,m[_0x5f11ba(0x23e)])],exports[_0x5f11ba(0x2e7)]);const Me=0x7530,Le=_0x5f11ba(0x2c8);class is extends a[_0x5f11ba(0x262)]{constructor(){const _0x55ef5c=_0x5f11ba;super(),h(this,_0x55ef5c(0x247),a[_0x55ef5c(0x29d)]()),h(this,_0x55ef5c(0x312),new Set()),h(this,_0x55ef5c(0x1bc),new Map()),h(this,_0x55ef5c(0x153),null),h(this,_0x55ef5c(0x2f8),new Map()),h(this,_0x55ef5c(0x315),new Map()),this[_0x55ef5c(0x242)]();}[_0x5f11ba(0xe7)](){const _0x2bbe97=_0x5f11ba;super['dispose'](),this[_0x2bbe97(0x2f8)]['forEach']((_0x59e844,_0x292779)=>this[_0x2bbe97(0x167)](_0x292779)),this[_0x2bbe97(0x153)]&&window[_0x2bbe97(0x24e)](this[_0x2bbe97(0x153)]);}[_0x5f11ba(0x1c7)](_0x56f6c9){const _0x1079b2=_0x5f11ba;return this[_0x1079b2(0x328)](_0x56f6c9)[_0x1079b2(0x2ab)](d[_0x1079b2(0x12f)]());}[_0x5f11ba(0x119)](_0x5e15a3){const _0x1a8de4=_0x5f11ba;this[_0x1a8de4(0x312)][_0x1a8de4(0x22c)]===0x0&&this[_0x1a8de4(0x1b3)](),this[_0x1a8de4(0x312)][_0x1a8de4(0x284)](_0x5e15a3),this[_0x1a8de4(0x363)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5e15a3],'isForwarded':!0x1});}['disposeUnit'](_0x1ba1b){const _0x54d89a=_0x5f11ba;this[_0x54d89a(0x312)][_0x54d89a(0x25b)](_0x1ba1b),this[_0x54d89a(0x312)][_0x54d89a(0x22c)]===0x0&&this[_0x54d89a(0x153)]&&window[_0x54d89a(0x24e)](this[_0x54d89a(0x153)]);}[_0x5f11ba(0x242)](){const _0x343dc1=_0x5f11ba;this[_0x343dc1(0x100)](a[_0x343dc1(0x301)](d[_0x343dc1(0x2a7)](window,_0x343dc1(0x359))[_0x343dc1(0x135)](_0x3992d8=>{const _0x5e6610=_0x343dc1;if(_0x3992d8['key']!==Le||!_0x3992d8['newValue'])return;const _0x52b616=JSON['parse'](_0x3992d8[_0x5e6610(0x18f)]);this[_0x5e6610(0x313)](_0x52b616);}))),window[_0x343dc1(0xec)](_0x343dc1(0x298),()=>this[_0x343dc1(0x363)]({'type':0x1,'memberID':this[_0x343dc1(0x247)],'unitIDs':Array['from'](this[_0x343dc1(0x312)])}));}['_handleEvent'](_0x17a157){const _0x2c0323=_0x5f11ba;switch(_0x17a157[_0x2c0323(0x23c)]){case 0x0:this['_handleJoinEvent'](_0x17a157);break;case 0x1:this['_handleLeaveEvent'](_0x17a157);break;case 0x2:this[_0x2c0323(0x1ff)](_0x17a157);break;}}[_0x5f11ba(0x1c1)](_0x4f857c){const _0x5d59ae=_0x5f11ba,{unitIDs:_0x1135ef,memberID:_0x354810,isForwarded:_0xb26e7e}=_0x4f857c;_0x1135ef['forEach'](_0xb898bf=>{const _0x52454d=_0x32ae;if(!_0xb26e7e&&this['_unitOnClients']['has'](_0xb898bf)&&this[_0x52454d(0x328)](_0xb898bf)[_0x52454d(0x2e3)](u[_0x52454d(0x2b2)]['OTHER_CLIENTS_EDITING']),!this[_0x52454d(0x1bc)][_0x52454d(0x191)](_0xb898bf)||!this[_0x52454d(0x1bc)][_0x52454d(0x2db)](_0xb898bf)[_0x52454d(0x191)](_0x354810)){const _0x5c738d=this['_unitOnClients'][_0x52454d(0x2db)](_0xb898bf)||new Set();_0x5c738d[_0x52454d(0x284)](_0x354810),this[_0x52454d(0x1bc)][_0x52454d(0x286)](_0xb898bf,_0x5c738d),this[_0x52454d(0x1b4)](_0x354810);}}),_0xb26e7e||this[_0x5d59ae(0x363)]({'type':0x0,'memberID':this[_0x5d59ae(0x247)],'unitIDs':[...this[_0x5d59ae(0x312)]],'isForwarded':!0x0});}[_0x5f11ba(0x1b4)](_0x25191b){const _0x57b629=_0x5f11ba;this[_0x57b629(0x167)](_0x25191b);const _0x38148a=window[_0x57b629(0x1d5)](()=>{const _0x4d1171=_0x57b629;this[_0x4d1171(0x1bc)][_0x4d1171(0x307)](_0x37ad50=>{_0x37ad50['delete'](_0x25191b);});},Me*0x2);this['_clearOtherTimers'][_0x57b629(0x286)](_0x25191b,_0x38148a);}[_0x5f11ba(0x167)](_0x5104ad){const _0x526613=_0x5f11ba;if(this[_0x526613(0x2f8)][_0x526613(0x191)](_0x5104ad)){const _0x53c10f=this[_0x526613(0x2f8)][_0x526613(0x2db)](_0x5104ad);_0x53c10f&&window[_0x526613(0x32a)](_0x53c10f),this[_0x526613(0x2f8)][_0x526613(0x286)](_0x5104ad,null);}}[_0x5f11ba(0x30d)](_0x43c72b){const _0x5b9d1b=_0x5f11ba,{memberID:_0x48ef72,unitIDs:_0x4f0466}=_0x43c72b;_0x4f0466[_0x5b9d1b(0x307)](_0x51c760=>{const _0x54fa3b=_0x5b9d1b;var _0xc173cc;const _0x38bf29=this[_0x54fa3b(0x1bc)]['get'](_0x51c760);_0x38bf29&&(_0x38bf29[_0x54fa3b(0x25b)](_0x48ef72),(_0xc173cc=this[_0x54fa3b(0x328)](_0x51c760))==null||_0xc173cc[_0x54fa3b(0x2e3)](_0x38bf29[_0x54fa3b(0x22c)]===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u['UnitStatus'][_0x54fa3b(0x34c)]));}),this[_0x5b9d1b(0x167)](_0x48ef72);}[_0x5f11ba(0x1ff)](_0x4187df){const _0x4ec210=_0x5f11ba;this['_scheduleClearOtherTimer'](_0x4187df[_0x4ec210(0x213)]);}[_0x5f11ba(0x363)](_0x4a220e){const _0x5bc191=_0x5f11ba;localStorage['setItem'](Le,JSON[_0x5bc191(0x180)](_0x4a220e));}[_0x5f11ba(0x1b3)](){const _0x5f11e7=_0x5f11ba;this[_0x5f11e7(0x153)]=window[_0x5f11e7(0x27a)](()=>{const _0xb91827=_0x5f11e7;this[_0xb91827(0x363)]({'type':0x2,'memberID':this[_0xb91827(0x247)]});},Me);}[_0x5f11ba(0x328)](_0x5d12a7){const _0x24206e=_0x5f11ba;return this['_unitStatus'][_0x24206e(0x191)](_0x5d12a7)||this[_0x24206e(0x315)][_0x24206e(0x286)](_0x5d12a7,new d[(_0x24206e(0x1d3))](u[_0x24206e(0x2b2)][_0x24206e(0x1c5)])),this['_unitStatus'][_0x24206e(0x2db)](_0x5d12a7);}}var je=(_0x36b44b=>(_0x36b44b[_0x36b44b[_0x5f11ba(0x285)]=0x0]=_0x5f11ba(0x285),_0x36b44b[_0x36b44b['OK']=0x1]='OK',_0x36b44b[_0x36b44b[_0x5f11ba(0x174)]=0x2]='INTERNAL_ERROR',_0x36b44b[_0x36b44b['PERMISSION_DENIED']=0x3]=_0x5f11ba(0x2d2),_0x36b44b[_0x36b44b['NOT_FOUND']=0x4]=_0x5f11ba(0x1c3),_0x36b44b[_0x36b44b[_0x5f11ba(0x185)]=0x5]=_0x5f11ba(0x185),_0x36b44b[_0x36b44b[_0x5f11ba(0x1f8)]=0x6]=_0x5f11ba(0x1f8),_0x36b44b[_0x36b44b[_0x5f11ba(0xfc)]=0x7]=_0x5f11ba(0xfc),_0x36b44b[_0x36b44b[_0x5f11ba(0x1bb)]=0x8]='TOO_MANY_REQUESTS',_0x36b44b[_0x36b44b[_0x5f11ba(0x260)]=0x9]=_0x5f11ba(0x260),_0x36b44b[_0x36b44b[_0x5f11ba(0xd8)]=0xa]=_0x5f11ba(0xd8),_0x36b44b[_0x36b44b[_0x5f11ba(0x1df)]=0xb]=_0x5f11ba(0x1df),_0x36b44b[_0x36b44b[_0x5f11ba(0x13b)]=0xc]=_0x5f11ba(0x13b),_0x36b44b[_0x36b44b[_0x5f11ba(0x340)]=0xd]=_0x5f11ba(0x340),_0x36b44b[_0x36b44b[_0x5f11ba(0x28e)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x36b44b[_0x36b44b['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x5f11ba(0x2bd),_0x36b44b[_0x36b44b[_0x5f11ba(0x2d1)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x36b44b[_0x36b44b['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x5f11ba(0x13e),_0x36b44b[_0x36b44b['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x5f11ba(0x35e),_0x36b44b[_0x36b44b[_0x5f11ba(0xdd)]=0x1b59]=_0x5f11ba(0xdd),_0x36b44b[_0x36b44b[_0x5f11ba(0x1eb)]=0x1b5a]=_0x5f11ba(0x1eb),_0x36b44b[_0x36b44b[_0x5f11ba(0x2ac)]=0x1b5b]=_0x5f11ba(0x2ac),_0x36b44b[_0x36b44b['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x5f11ba(0xf2),_0x36b44b[_0x36b44b[_0x5f11ba(0x19d)]=0x1b5d]=_0x5f11ba(0x19d),_0x36b44b[_0x36b44b['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x5f11ba(0x299),_0x36b44b[_0x36b44b[_0x5f11ba(0xdb)]=0x2329]=_0x5f11ba(0xdb),_0x36b44b[_0x36b44b[_0x5f11ba(0x2e6)]=0x232a]=_0x5f11ba(0x2e6),_0x36b44b[_0x36b44b['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x5f11ba(0x2d7),_0x36b44b[_0x36b44b[_0x5f11ba(0x2aa)]=0x232c]=_0x5f11ba(0x2aa),_0x36b44b[_0x36b44b[_0x5f11ba(0x139)]=0x232d]=_0x5f11ba(0x139),_0x36b44b[_0x36b44b[_0x5f11ba(0xe0)]=0x2711]=_0x5f11ba(0xe0),_0x36b44b[_0x36b44b[_0x5f11ba(0x29c)]=0x2712]=_0x5f11ba(0x29c),_0x36b44b[_0x36b44b['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x5f11ba(0x273),_0x36b44b[_0x36b44b['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x36b44b[_0x36b44b[_0x5f11ba(0x168)]=0x271a]=_0x5f11ba(0x168),_0x36b44b[_0x36b44b[_0x5f11ba(0x287)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x36b44b[_0x36b44b['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x5f11ba(0x336),_0x36b44b[_0x36b44b[_0x5f11ba(0x279)]=0x271d]=_0x5f11ba(0x279),_0x36b44b[_0x36b44b[_0x5f11ba(0x1d8)]=0x271e]=_0x5f11ba(0x1d8),_0x36b44b[_0x36b44b[_0x5f11ba(0x10b)]=0x271f]=_0x5f11ba(0x10b),_0x36b44b[_0x36b44b['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x5f11ba(0x10a),_0x36b44b[_0x36b44b[_0x5f11ba(0xe3)]=0x2af9]=_0x5f11ba(0xe3),_0x36b44b[_0x36b44b[_0x5f11ba(0x1c6)]=0x2ee1]=_0x5f11ba(0x1c6),_0x36b44b[_0x36b44b[_0x5f11ba(0x182)]=0x2ee2]=_0x5f11ba(0x182),_0x36b44b[_0x36b44b[_0x5f11ba(0x1a1)]=0x2ee3]=_0x5f11ba(0x1a1),_0x36b44b[_0x36b44b['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x36b44b[_0x36b44b['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x5f11ba(0x357),_0x36b44b[_0x36b44b[_0x5f11ba(0x129)]=0x32c9]=_0x5f11ba(0x129),_0x36b44b[_0x36b44b['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x36b44b[_0x36b44b[_0x5f11ba(0x20c)]=0x32cb]=_0x5f11ba(0x20c),_0x36b44b[_0x36b44b[_0x5f11ba(0x1c0)]=-0x1]=_0x5f11ba(0x1c0),_0x36b44b))(je||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x8a80e9,_0x5c8947,_0x496ac8,_0x1b185d)=>{const _0x1d9428=_0x5f11ba;for(var _0x379404=_0x1b185d>0x1?void 0x0:_0x1b185d?ns(_0x5c8947,_0x496ac8):_0x5c8947,_0x567dd8=_0x8a80e9[_0x1d9428(0x173)]-0x1,_0x402eb0;_0x567dd8>=0x0;_0x567dd8--)(_0x402eb0=_0x8a80e9[_0x567dd8])&&(_0x379404=_0x402eb0(_0x379404)||_0x379404);return _0x379404;},ue=(_0x5d0911,_0x31d61c)=>(_0x57562f,_0x55a9bb)=>_0x31d61c(_0x57562f,_0x55a9bb,_0x5d0911);exports['RemoteUniscriptService']=class extends a[_0x5f11ba(0x262)]{constructor(_0x4c94bf,_0x35e288,_0x39a643){const _0x402efa=_0x5f11ba;super(),this['_instanceService']=_0x4c94bf,this[_0x402efa(0x2f2)]=_0x35e288,this[_0x402efa(0x1a6)]=_0x39a643;}async[_0x5f11ba(0x106)](_0x49817b,_0x3a5799,_0x4bd396,..._0x23114b){const _0x775eed=_0x5f11ba;var _0xa11f93,_0x4fd0ca,_0x5096fe,_0x9a8a40;const _0x425692=this['_instanceService'][_0x775eed(0x2b5)]();if(!_0x425692)throw new Error(_0x775eed(0x2c5));const _0x2841ac=((_0xa11f93=this['_configService'][_0x775eed(0x24f)](u[_0x775eed(0x30c)]))!=null?_0xa11f93:u[_0x775eed(0x221)])+'/'+_0x49817b+_0x775eed(0x143)+_0x3a5799,_0x2ef7ed=new URL(window[_0x775eed(0x268)][_0x775eed(0x1a7)]),_0x13e0a6={'scriptId':_0x49817b,'runId':(_0x4fd0ca=_0x2ef7ed[_0x775eed(0x2c6)]['get'](_0x775eed(0x108)))!=null?_0x4fd0ca:'','function':_0x3a5799,'unitId':_0x425692['getUnitId'](),'argsOfFunction':JSON[_0x775eed(0x180)](_0x23114b),'invokeId':(_0x5096fe=_0x4bd396['invokeId'])!=null?_0x5096fe:'','executionId':(_0x9a8a40=_0x4bd396[_0x775eed(0x2ad)])!=null?_0x9a8a40:''};try{const _0x31c1f0=await this[_0x775eed(0x2f2)][_0x775eed(0x2af)](_0x2841ac,{'body':_0x13e0a6});return _0x31c1f0[_0x775eed(0x22b)][_0x775eed(0x110)]&&_0x31c1f0[_0x775eed(0x22b)][_0x775eed(0x110)][_0x775eed(0x202)]!==je['OK']?_0x775eed(0x15a):_0x31c1f0[_0x775eed(0x22b)][_0x775eed(0x26f)];}catch{return'Failed';}}},exports[_0x5f11ba(0x2bc)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x5f11ba(0x116)](G['HTTPService'])),ue(0x2,a[_0x5f11ba(0x235)])],exports[_0x5f11ba(0x2bc)]),exports[_0x5f11ba(0x24d)]=xe,exports[_0x5f11ba(0xe6)]=Ee,exports[_0x5f11ba(0x2d3)]=we,exports[_0x5f11ba(0xd1)]=is,exports[_0x5f11ba(0x297)]=Be;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x5df8(){const _0x11fe58=['175154uXDGSs','6KUwsiQ','48bThwLy','Authentication\x20Error','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','exports','5514156YpNYei','244SnaNZI','2650392BPUVrq','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Syncing...','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Syncing\x20server\x20data...','Synced','1789461wgLvgR','Connection\x20failed,\x20please\x20check\x20your\x20network.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','11845nKDAjz','Click\x20to\x20Reconnect','8932080djkoqe','Local\x20file','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','6861605AnIoMP','Collaboration\x20Conflict'];_0x5df8=function(){return _0x11fe58;};return _0x5df8();}const _0x545336=_0x5361;(function(_0x314e4a,_0x3a33e0){const _0x35db69=_0x5361,_0x2e6588=_0x314e4a();while(!![]){try{const _0x36308a=-parseInt(_0x35db69(0x1c8))/0x1*(parseInt(_0x35db69(0x1be))/0x2)+-parseInt(_0x35db69(0x1bf))/0x3+parseInt(_0x35db69(0x1bd))/0x4+-parseInt(_0x35db69(0x1b5))/0x5*(-parseInt(_0x35db69(0x1b8))/0x6)+parseInt(_0x35db69(0x1b7))/0x7+parseInt(_0x35db69(0x1b9))/0x8*(parseInt(_0x35db69(0x1c5))/0x9)+-parseInt(_0x35db69(0x1ca))/0xa;if(_0x36308a===_0x3a33e0)break;else _0x2e6588['push'](_0x2e6588['shift']());}catch(_0x179a87){_0x2e6588['push'](_0x2e6588['shift']());}}}(_0x5df8,0xb6656));function _0x5361(_0x3f67f7,_0x1f255b){const _0x5df8f2=_0x5df8();return _0x5361=function(_0x536171,_0x39af73){_0x536171=_0x536171-0x1b3;let _0x4676b4=_0x5df8f2[_0x536171];return _0x4676b4;},_0x5361(_0x3f67f7,_0x1f255b);}const e={'collab-client':{'tooltip':{'reconnect':_0x545336(0x1c9)}},'collabStatus':{'fetchMiss':_0x545336(0x1c3),'conflict':'Edit\x20conflicts','notCollab':_0x545336(0x1cb),'synced':_0x545336(0x1c4),'syncing':_0x545336(0x1c1),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x545336(0x1c6),'will-retry':_0x545336(0x1cd),'room-full':_0x545336(0x1c7),'collaboration-timeout':_0x545336(0x1cc)},'conflict':{'title':_0x545336(0x1b6),'content':_0x545336(0x1c2)},'permission':{'title':_0x545336(0x1ba),'content':_0x545336(0x1bb)},'collaboration':{'single-unit':{'warning':_0x545336(0x1b3)},'closeRoom':_0x545336(0x1c0)},'auth':{'needGotoLoginAlert':_0x545336(0x1b4)}};module[_0x545336(0x1bc)]=e;
|