@univerjs-pro/collaboration-client-ui 0.7.0 → 0.8.0-nightly.202505261607
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/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/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.css +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/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/locale/en-US.d.ts +38 -2
- package/lib/types/locale/fa-IR.d.ts +2 -2
- package/lib/types/locale/fr-FR.d.ts +2 -2
- package/lib/types/locale/ru-RU.d.ts +2 -2
- package/lib/types/locale/vi-VN.d.ts +2 -2
- package/lib/types/locale/zh-CN.d.ts +3 -39
- package/lib/types/locale/zh-TW.d.ts +2 -2
- 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/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 +18 -18
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x3758(){const _0x515cb1=['@univerjs/core/facade','runOnServer','10316016IBWqlm','get','4310400svcHCs','RemoteUniscriptService','1694118VpnvZW','extend','3404304uzGIsD','119bkKKCK','6654784KBnxrL','@univerjs-pro/collaboration-client-ui','1380152qYlAcn','812650GTXZkv'];_0x3758=function(){return _0x515cb1;};return _0x3758();}const _0x365d8f=_0xe3e9;function _0xe3e9(_0x199be4,_0x30e995){const _0x37583f=_0x3758();return _0xe3e9=function(_0xe3e9ae,_0x53e97e){_0xe3e9ae=_0xe3e9ae-0x16c;let _0x267621=_0x37583f[_0xe3e9ae];return _0x267621;},_0xe3e9(_0x199be4,_0x30e995);}(function(_0x4957ee,_0x54ab3c){const _0xe92688=_0xe3e9,_0x2f60f1=_0x4957ee();while(!![]){try{const _0x41766f=parseInt(_0xe92688(0x16e))/0x1+-parseInt(_0xe92688(0x175))/0x2+-parseInt(_0xe92688(0x177))/0x3+-parseInt(_0xe92688(0x179))/0x4+-parseInt(_0xe92688(0x173))/0x5+parseInt(_0xe92688(0x171))/0x6+parseInt(_0xe92688(0x178))/0x7*(parseInt(_0xe92688(0x16d))/0x8);if(_0x41766f===_0x54ab3c)break;else _0x2f60f1['push'](_0x2f60f1['shift']());}catch(_0x2a4cbb){_0x2f60f1['push'](_0x2f60f1['shift']());}}}(_0x3758,0xe9b16));const t=require(_0x365d8f(0x16c)),e=require(_0x365d8f(0x16f));class c extends e['FUniver']{[_0x365d8f(0x170)](_0x1c70c7,_0x3f3abc,..._0x209313){const _0x7668d6=_0x365d8f;return this['_injector'][_0x7668d6(0x172)](t[_0x7668d6(0x174)])[_0x7668d6(0x170)](_0x1c70c7,_0x3f3abc,{},..._0x209313);}}e['FUniver'][_0x365d8f(0x176)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x314074=_0x391f;(function(_0x6117de,_0x4208ef){const _0x401f04=_0x391f,_0x4883dc=_0x6117de();while(!![]){try{const _0x1f3b6c=parseInt(_0x401f04(0x26f))/0x1+-parseInt(_0x401f04(0x228))/0x2+-parseInt(_0x401f04(0x249))/0x3+parseInt(_0x401f04(0x1c6))/0x4*(-parseInt(_0x401f04(0x2cc))/0x5)+-parseInt(_0x401f04(0x1da))/0x6+parseInt(_0x401f04(0x177))/0x7*(parseInt(_0x401f04(0x1f4))/0x8)+-parseInt(_0x401f04(0x9b))/0x9*(-parseInt(_0x401f04(0x251))/0xa);if(_0x1f3b6c===_0x4208ef)break;else _0x4883dc['push'](_0x4883dc['shift']());}catch(_0x3b809f){_0x4883dc['push'](_0x4883dc['shift']());}}}(_0x34cf,0xaa2ce));var Ve=Object['defineProperty'],Xe=(_0x5b5e88,_0x4bd607,_0x59b5cf)=>_0x4bd607 in _0x5b5e88?Ve(_0x5b5e88,_0x4bd607,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59b5cf}):_0x5b5e88[_0x4bd607]=_0x59b5cf,h=(_0x3f5334,_0x41fb90,_0x3dde44)=>Xe(_0x3f5334,typeof _0x41fb90!=_0x314074(0x14b)?_0x41fb90+'':_0x41fb90,_0x3dde44);Object[_0x314074(0x2a0)](exports,Symbol['toStringTag'],{'value':'Module'});const u=require(_0x314074(0x23a)),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require(_0x314074(0x201)),b=require(_0x314074(0x148)),Ge=require(_0x314074(0x214)),d=require('rxjs'),Y=require(_0x314074(0x155)),m=require('@univerjs-pro/collaboration'),Ee=require(_0x314074(0x167)),g=require(_0x314074(0x22f)),$=require(_0x314074(0x2a5)),X=require(_0x314074(0x2f1)),P=require(_0x314074(0x19b)),T=require(_0x314074(0x221)),D=require(_0x314074(0x29b)),M=require(_0x314074(0x191)),Ke=require(_0x314074(0x2b3));var qe=Object['getOwnPropertyDescriptor'],ze=(_0x16933d,_0x45596d,_0x509ad1,_0x1915c4)=>{const _0x58dbca=_0x314074;for(var _0x1cbd1a=_0x1915c4>0x1?void 0x0:_0x1915c4?qe(_0x45596d,_0x509ad1):_0x45596d,_0x367413=_0x16933d[_0x58dbca(0xbe)]-0x1,_0x4c5da0;_0x367413>=0x0;_0x367413--)(_0x4c5da0=_0x16933d[_0x367413])&&(_0x1cbd1a=_0x4c5da0(_0x1cbd1a)||_0x1cbd1a);return _0x1cbd1a;},Te=(_0x471a43,_0x3c6ceb)=>(_0x37e286,_0x1f0aad)=>_0x3c6ceb(_0x37e286,_0x1f0aad,_0x471a43);let de=class extends a[_0x314074(0x13e)]{constructor(_0x32b079,_0x1780aa){const _0x30e0e9=_0x314074;super(),this['_docClipboardService']=_0x32b079,this[_0x30e0e9(0x2a4)]=_0x1780aa,this[_0x30e0e9(0x121)]();}[_0x314074(0x121)](){const _0x2ccb89=_0x314074,_0x75df28=this;this[_0x2ccb89(0x2af)](this[_0x2ccb89(0x157)]['addClipboardHook']({'onBeforePasteImage':async _0x4f604d=>{const _0x1dc804=await _0x75df28['_imageIoService']['saveImage'](_0x4f604d);return _0x1dc804?{'source':_0x1dc804['source'],'imageSourceType':_0x1dc804['imageSourceType']}:null;}}));}};de=ze([Te(0x0,b[_0x314074(0x292)]),Te(0x1,Ge[_0x314074(0xd4)])],de);const Oe=[_0x314074(0x2e7),'jiqing.500','green.600',_0x314074(0x2f9),_0x314074(0x1e4),_0x314074(0xad)];class me extends a[_0x314074(0x14a)]{constructor(){const _0x358768=_0x314074;super(...arguments),h(this,_0x358768(0x24e),new Map()),h(this,_0x358768(0x2ec),0x0);}[_0x314074(0xa7)](_0xddba40){const _0xe20c7c=_0x314074;if(this['_assignedColors']['has'](_0xddba40))return this[_0xe20c7c(0x24e)][_0xe20c7c(0x176)](_0xddba40);const _0x43e84f=Oe[this[_0xe20c7c(0x2ec)]];return this['_colorIndex']=(this[_0xe20c7c(0x2ec)]+0x1)%Oe['length'],this[_0xe20c7c(0x24e)]['set'](_0xddba40,_0x43e84f),_0x43e84f;}}function Pe(_0x185af8){const _0x5ebec2=_0x314074;let _0x3fb6a5='';for(const _0x4426ff of _0x185af8){const {startOffset:_0x1e6dc3,endOffset:_0x586eb7,isActive:_0x381da7,rangeType:_0x9894df,segmentId:_0x1c1022,segmentPage:_0x1d62f5}=_0x4426ff;_0x3fb6a5[_0x5ebec2(0xbe)]&&(_0x3fb6a5+=','),_0x3fb6a5+=_0x1e6dc3+':'+_0x586eb7+':'+(_0x381da7?'1':'0')+':'+_0x9894df+':'+_0x1c1022+':'+_0x1d62f5;}return _0x3fb6a5;}function Je(_0x425ea5){const _0x3aaa1c=_0x314074,_0x29c0ed=_0x425ea5['split'](','),_0x1f2059=[];for(const _0x401260 of _0x29c0ed){const [_0x5ad741,_0x2d4eba,_0xa1c637,_0x33aa4d,_0xde6a9d,_0x5e1fdd]=_0x401260['split'](':');_0x1f2059[_0x3aaa1c(0x1fa)]({'startOffset':Number(_0x5ad741),'endOffset':Number(_0x2d4eba),'collapsed':_0x5ad741===_0x2d4eba,'isActive':_0xa1c637==='1','rangeType':_0x33aa4d===a['DOC_RANGE_TYPE'][_0x3aaa1c(0x282)]?a['DOC_RANGE_TYPE']['TEXT']:a['DOC_RANGE_TYPE'][_0x3aaa1c(0x1fe)],'segmentId':typeof _0xde6a9d==_0x3aaa1c(0x10c)?String(_0xde6a9d):'','segmentPage':Number(_0x5e1fdd!=null?_0x5e1fdd:-0x1)});}return _0x1f2059['some'](_0x4c6f79=>_0x4c6f79['isActive'])||(_0x1f2059[0x0][_0x3aaa1c(0x240)]=!0x0),_0x1f2059;}class Ce extends a[_0x314074(0x13e)]{constructor(){const _0x1e448c=_0x314074;super(...arguments),h(this,'_collabCursorState$',new d[(_0x1e448c(0x1b3))](null)),h(this,_0x1e448c(0x203),this['_collabCursorState$'][_0x1e448c(0x1e9)]());}[_0x314074(0x186)](_0x4bd752){const _0x25aee4=_0x314074,{unitID:_0x3f039a,memberID:_0x563c1f,textRanges:_0x4781a5}=_0x4bd752,_0x1b50ac=Pe(_0x4781a5);if(_0x1b50ac==='')return;const _0x44204b={'unitID':_0x3f039a,'memberID':_0x563c1f,'selection':_0x1b50ac};this[_0x25aee4(0x2dd)][_0x25aee4(0x13c)](_0x44204b);}}var Ze=Object[_0x314074(0xb7)],Qe=(_0x3cc2c8,_0x519ae1,_0x5c069c,_0x3cdf67)=>{const _0x129ac7=_0x314074;for(var _0x418142=_0x3cdf67>0x1?void 0x0:_0x3cdf67?Ze(_0x519ae1,_0x5c069c):_0x519ae1,_0x2eb104=_0x3cc2c8[_0x129ac7(0xbe)]-0x1,_0x3ecad0;_0x2eb104>=0x0;_0x2eb104--)(_0x3ecad0=_0x3cc2c8[_0x2eb104])&&(_0x418142=_0x3ecad0(_0x418142)||_0x418142);return _0x418142;},L=(_0x191876,_0x53caa9)=>(_0x200472,_0x267359)=>_0x53caa9(_0x200472,_0x267359,_0x191876);const et=0x12c,tt=0x64;let fe=class extends a[_0x314074(0x13e)]{constructor(_0xe89d6c,_0x3ca576,_0x53d7a3,_0x379ccd,_0xa3ce7c,_0x1c637f,_0xb10491,_0x2f03e3,_0x42d815){const _0x1c4671=_0x314074;super(),h(this,'_online',!0x1),h(this,_0x1c4671(0x121),!0x1),h(this,_0x1c4671(0x1eb),new d['BehaviorSubject'](new Map())),h(this,_0x1c4671(0xfe),this['_cursorInfo$']['asObservable']()),h(this,'_roomMembers$',new d[(_0x1c4671(0x1b3))]([])),h(this,_0x1c4671(0x24b),this[_0x1c4671(0x16f)][_0x1c4671(0xb2)](d[_0x1c4671(0x22e)](et))),h(this,_0x1c4671(0x265),a[_0x1c4671(0xdd)](_0x1498c2=>{const _0x48f1c8=_0x1c4671,_0x424a84={'eventID':m[_0x48f1c8(0x226)][_0x48f1c8(0x19d)],'data':{'unitID':this[_0x48f1c8(0x1b9)],'memberID':this[_0x48f1c8(0x212)][_0x48f1c8(0x188)](),'selection':Pe(_0x1498c2)}};this[_0x48f1c8(0x212)][_0x48f1c8(0x285)](_0x424a84,this[_0x48f1c8(0x1b9)]);},tt)),(this[_0x1c4671(0x1b9)]=_0xe89d6c,this[_0x1c4671(0x212)]=_0x3ca576,this[_0x1c4671(0x1cf)]=_0x53d7a3,this[_0x1c4671(0x23f)]=_0x379ccd,this['_memberService']=_0xa3ce7c,this[_0x1c4671(0x2ff)]=_0x1c637f,this[_0x1c4671(0x231)]=_0xb10491,this[_0x1c4671(0x11f)]=_0x2f03e3,this[_0x1c4671(0x135)]=_0x42d815);}get[_0x314074(0x90)](){const _0x50f76=_0x314074;return this[_0x50f76(0x1eb)]['getValue']();}get[_0x314074(0xda)](){const _0x305432=_0x314074;return this[_0x305432(0x16f)][_0x305432(0x16b)]();}['dispose'](){const _0x7df62d=_0x314074;super[_0x7df62d(0x218)](),this[_0x7df62d(0x1eb)]['next'](new Map()),this[_0x7df62d(0x1eb)]['complete'](),this['_roomMembers$'][_0x7df62d(0x13c)]([]),this[_0x7df62d(0x16f)]['complete']();}[_0x314074(0x267)](){const _0x547df0=_0x314074;this[_0x547df0(0x121)]||(this[_0x547df0(0x121)]=!0x0,this[_0x547df0(0x212)][_0x547df0(0x19e)][_0x547df0(0xb2)](d[_0x547df0(0x1b7)](this['dispose$']))[_0x547df0(0x112)](_0x3376ed=>{const _0x4eed60=_0x547df0;_0x3376ed===u[_0x4eed60(0x11b)][_0x4eed60(0x2dc)]?this[_0x4eed60(0x2db)]():this[_0x4eed60(0x1ae)]();}),this[_0x547df0(0x212)][_0x547df0(0x151)][_0x547df0(0xb2)](d[_0x547df0(0x1b7)](this[_0x547df0(0xd2)]))[_0x547df0(0x112)](_0x6c4c35=>{const _0x1895b6=_0x547df0,_0x1c4fda=_0x6c4c35[_0x1895b6(0xa3)];_0x1c4fda===m['CollaborationEvent'][_0x1895b6(0x19d)]&&this[_0x1895b6(0x1d3)](_0x6c4c35),_0x1c4fda===m[_0x1895b6(0x226)][_0x1895b6(0x286)]&&this[_0x1895b6(0x24c)](_0x6c4c35);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x30b45f=>{const _0x1585a4=_0x547df0,_0x2406a1=_0x30b45f[_0x1585a4(0x239)];_0x2406a1!=null&&this[_0x1585a4(0x262)]&&_0x30b45f['id']===Y[_0x1585a4(0x259)]['id']&&_0x2406a1[_0x1585a4(0xe4)]===this[_0x1585a4(0x1b9)]&&_0x2406a1[_0x1585a4(0x1a3)]===!0x1&&_0x2406a1[_0x1585a4(0x2a9)][_0x1585a4(0xbe)]>0x0&&this[_0x1585a4(0x265)](_0x2406a1[_0x1585a4(0x2a9)]);})),this['_syncEditingCollabCursorService'][_0x547df0(0x203)]['pipe'](d[_0x547df0(0x1b7)](this[_0x547df0(0xd2)]))[_0x547df0(0x112)](_0x486c20=>{const _0x4dc02d=_0x547df0;if((_0x486c20==null?void 0x0:_0x486c20['unitID'])!==this[_0x4dc02d(0x1b9)])return;const _0x25a264={'eventID':m[_0x4dc02d(0x226)][_0x4dc02d(0x19d)],'data':_0x486c20};this[_0x4dc02d(0x1d3)](_0x25a264);}),this[_0x547df0(0x2af)](this[_0x547df0(0x135)]['onCommandExecuted'](_0x1b0802=>{const _0x183ea3=_0x547df0;if(_0x1b0802[_0x183ea3(0x239)]==null)return;const _0x42ab54=_0x1b0802['params'];if(_0x1b0802['id']!==Y[_0x183ea3(0x2d3)]['id']||_0x42ab54['unitId']!==this[_0x183ea3(0x1b9)])return;const _0x37d5c6={'id':'doc.mutation.rich-text-editing','params':_0x42ab54},_0x425d1d=this[_0x183ea3(0x90)];for(const [_0x590b2e,_0x470254]of _0x425d1d){const _0xe39f5d={'id':_0x183ea3(0x178),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x470254['ranges']}},_0x44b7f5=this[_0x183ea3(0x231)][_0x183ea3(0x1a8)](_0x37d5c6,_0xe39f5d,!0x1);if(m['isTransformMutationFailure'](_0x44b7f5))throw _0x44b7f5[_0x183ea3(0x2b5)];_0x425d1d[_0x183ea3(0x1bc)](_0x590b2e,{..._0x470254,'ranges':_0x44b7f5[_0x183ea3(0x2e4)][_0x183ea3(0x239)][_0x183ea3(0x2fe)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x425d1d);});})));}['_onCursorUpdate'](_0x2506ce){const _0x15aa57=_0x314074;var _0x4a85ab,_0x3be34c;const {memberID:_0x3c6c1c,selection:_0xad90c}=_0x2506ce[_0x15aa57(0xd1)],_0x5f417d=Je(_0xad90c),_0x1476da=(_0x3be34c=(_0x4a85ab=this[_0x15aa57(0x2ef)]['getMember'](this['unitID'],_0x3c6c1c))==null?void 0x0:_0x4a85ab['name'])!=null?_0x3be34c:_0x15aa57(0x2ea),_0x1fe788={'color':this[_0x15aa57(0x23f)][_0x15aa57(0xa7)](_0x3c6c1c),'name':_0x1476da,'ranges':_0x5f417d},_0x46b4a5=this[_0x15aa57(0x90)];_0x46b4a5['set'](_0x3c6c1c,_0x1fe788),this[_0x15aa57(0x1eb)][_0x15aa57(0x13c)](_0x46b4a5);}[_0x314074(0x24c)](_0x11b86e){const _0xaa2227=_0x314074,{memberID:_0x369076}=_0x11b86e['data'],_0x4cc54b=this[_0xaa2227(0x90)];_0x4cc54b['delete'](_0x369076),this[_0xaa2227(0x1eb)][_0xaa2227(0x13c)](_0x4cc54b);}['_toggleOnline'](){const _0x5ac1ba=_0x314074;var _0x306397;if(this['_online']=!0x0,((_0x306397=this[_0x5ac1ba(0x11f)]['getFocusedUnit']())==null?void 0x0:_0x306397['getUnitId']())!==this['unitID'])return;const _0xd52c0a=this[_0x5ac1ba(0x1cf)][_0x5ac1ba(0x176)](Y['DocSelectionManagerService'])['getDocRanges']();Array[_0x5ac1ba(0x2ab)](_0xd52c0a)&&_0xd52c0a[_0x5ac1ba(0xbe)]>0x0&&this[_0x5ac1ba(0x265)](_0xd52c0a);}[_0x314074(0x1ae)](){const _0x1cf1a5=_0x314074;this[_0x1cf1a5(0x262)]=!0x1;}};fe=Qe([L(0x2,a[_0x314074(0x1d5)](a['Injector'])),L(0x3,a[_0x314074(0x1d5)](me)),L(0x4,a[_0x314074(0x1d5)](u[_0x314074(0x130)])),L(0x5,a[_0x314074(0x1d5)](Ce)),L(0x6,m[_0x314074(0x131)]),L(0x7,a[_0x314074(0xb4)]),L(0x8,a[_0x314074(0x94)])],fe);var st=Object[_0x314074(0xb7)],it=(_0x5e366b,_0x89b749,_0x47cb8b,_0x52e719)=>{const _0x5468ec=_0x314074;for(var _0x1710bd=_0x52e719>0x1?void 0x0:_0x52e719?st(_0x89b749,_0x47cb8b):_0x89b749,_0x146df9=_0x5e366b[_0x5468ec(0xbe)]-0x1,_0x20025b;_0x146df9>=0x0;_0x146df9--)(_0x20025b=_0x5e366b[_0x146df9])&&(_0x1710bd=_0x20025b(_0x1710bd)||_0x1710bd);return _0x1710bd;},w=(_0x58a52c,_0x70ecea)=>(_0x5af6ab,_0x7b1581)=>_0x70ecea(_0x5af6ab,_0x7b1581,_0x58a52c);const nt=0x12c,rt=0x64,ot=()=>{let _0x5152bf=[],_0x2355e3=!0x1;return _0x52a372=>{const _0x912594=_0x391f;_0x5152bf[_0x912594(0x1fa)](_0x52a372),_0x2355e3||(_0x2355e3=!0x0,setTimeout(()=>{const _0x287d2d=_0x912594;_0x5152bf[_0x287d2d(0x1ca)](_0x1e5100=>_0x1e5100()),_0x5152bf=[],_0x2355e3=!0x1;}));};};let Se=class extends a[_0x314074(0x13e)]{constructor(_0x37af5b,_0x3134cd,_0x3f85f4,_0x5cccde,_0x4bf770,_0x637ef5,_0x2098f1,_0x23210c){const _0x32d809=_0x314074;super(),h(this,_0x32d809(0x262),!0x1),h(this,_0x32d809(0x121),!0x1),h(this,_0x32d809(0x1eb),new d[(_0x32d809(0x1b3))](new Map())),h(this,_0x32d809(0xfe),this[_0x32d809(0x1eb)][_0x32d809(0x1e9)]()),h(this,_0x32d809(0x16f),new d[(_0x32d809(0x1b3))]([])),h(this,_0x32d809(0x24b),this[_0x32d809(0x16f)]['pipe'](d[_0x32d809(0x22e)](nt))),h(this,_0x32d809(0x265),a['debounce']((_0x31e769,_0x53fbaf)=>{const _0x2040b1=_0x32d809,_0x2c8bd7={'eventID':m[_0x2040b1(0x226)][_0x2040b1(0x19d)],'data':{'unitID':this['unitID'],'memberID':this[_0x2040b1(0x212)]['getMemberID'](),'selection':Ee[_0x2040b1(0xc8)](_0x31e769,_0x53fbaf[_0x2040b1(0xd9)])}};this[_0x2040b1(0x212)][_0x2040b1(0x285)](_0x2c8bd7,this['unitID']);},rt)),(this[_0x32d809(0x1b9)]=_0x37af5b,this['_session']=_0x3134cd,this[_0x32d809(0x1cf)]=_0x3f85f4,this['_colorAssignService']=_0x5cccde,this[_0x32d809(0x2ef)]=_0x4bf770,this[_0x32d809(0x11f)]=_0x637ef5,this[_0x32d809(0x135)]=_0x2098f1,this[_0x32d809(0x28f)]=_0x23210c);}get[_0x314074(0x90)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x39a458=_0x314074;return this[_0x39a458(0x16f)][_0x39a458(0x16b)]();}['dispose'](){const _0x4522ea=_0x314074;super[_0x4522ea(0x218)](),this[_0x4522ea(0x1eb)][_0x4522ea(0x13c)](new Map()),this['_cursorInfo$']['complete'](),this[_0x4522ea(0x16f)][_0x4522ea(0x13c)]([]),this['_roomMembers$']['complete']();}[_0x314074(0x267)](){const _0x46889d=_0x314074;this[_0x46889d(0x121)]||(this[_0x46889d(0x121)]=!0x0,this[_0x46889d(0x212)][_0x46889d(0x19e)]['pipe'](d[_0x46889d(0x1b7)](this[_0x46889d(0xd2)]))[_0x46889d(0x112)](_0x342e81=>{const _0x9a360b=_0x46889d;_0x342e81===u[_0x9a360b(0x11b)][_0x9a360b(0x2dc)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x46889d(0x212)][_0x46889d(0x151)][_0x46889d(0xb2)](d['takeUntil'](this[_0x46889d(0xd2)]))[_0x46889d(0x112)](_0x39897c=>{const _0xdf0ff4=_0x46889d,_0x273649=_0x39897c[_0xdf0ff4(0xa3)];_0x273649===m[_0xdf0ff4(0x226)][_0xdf0ff4(0x19d)]&&this[_0xdf0ff4(0x1d3)](_0x39897c),_0x273649===m[_0xdf0ff4(0x226)][_0xdf0ff4(0x286)]&&this[_0xdf0ff4(0x24c)](_0x39897c);}),this[_0x46889d(0x11e)](),this[_0x46889d(0x2af)](this[_0x46889d(0x135)]['onCommandExecuted'](_0x3e93c9=>{const _0x26e350=_0x46889d;if(this['_online']&&_0x3e93c9['id']===g[_0x26e350(0x154)]['id']&&_0x3e93c9[_0x26e350(0x239)][_0x26e350(0xe4)]===this[_0x26e350(0x1b9)]){const _0x251260=_0x3e93c9[_0x26e350(0x239)];this[_0x26e350(0x265)](_0x251260[_0x26e350(0x15f)],_0x251260[_0x26e350(0x15d)][0x0]);}})));}[_0x314074(0x1d3)](_0x3963ea){const _0x376480=_0x314074;var _0x4f9f13,_0x1e5f29;const {memberID:_0x50fc10,selection:_0x6a1a3f}=_0x3963ea[_0x376480(0xd1)],{sheetName:_0x2f2926,range:_0x36bc9c}=Ee['deserializeRangeWithSheet'](_0x6a1a3f),_0x32e39e={'name':(_0x1e5f29=(_0x4f9f13=this['_memberService'][_0x376480(0x160)](this['unitID'],_0x50fc10))==null?void 0x0:_0x4f9f13[_0x376480(0x2f8)])!=null?_0x1e5f29:_0x376480(0x2ea),'range':this[_0x376480(0x25a)](_0x2f2926,_0x36bc9c),'sheetID':_0x2f2926,'color':this[_0x376480(0x23f)][_0x376480(0xa7)](_0x50fc10),'selection':_0x6a1a3f},_0x23e4dd=this['cursorInfo'];_0x23e4dd[_0x376480(0x1bc)](_0x50fc10,_0x32e39e),this[_0x376480(0x1eb)][_0x376480(0x13c)](_0x23e4dd);}[_0x314074(0x24c)](_0x586fb9){const _0x2a9c02=_0x314074,{memberID:_0x3a2791}=_0x586fb9['data'],_0x1dc1f3=this['cursorInfo'];_0x1dc1f3[_0x2a9c02(0x142)](_0x3a2791),this[_0x2a9c02(0x1eb)][_0x2a9c02(0x13c)](_0x1dc1f3);}['_getMergeRange'](_0x544060,_0x198155){const _0x334f9a=_0x314074;var _0x55e60e,_0x42a840;const _0x574d94=(_0x42a840=(_0x55e60e=this[_0x334f9a(0x11f)][_0x334f9a(0xfd)](this[_0x334f9a(0x1b9)]))==null?void 0x0:_0x55e60e[_0x334f9a(0x205)](_0x544060))==null?void 0x0:_0x42a840['getMergeData']();return(_0x574d94==null?void 0x0:_0x574d94['find'](_0x333c6e=>a['Rectangle'][_0x334f9a(0x162)](_0x333c6e,_0x198155)))||_0x198155;}[_0x314074(0x11e)](){const _0x2e8c69=_0x314074,_0x29d574=new a['DisposableCollection'](),_0x1f3abb=ot(),_0x3460a6=()=>{const _0x89ffc=_0x391f;_0x29d574[_0x89ffc(0x218)]();const _0x31e916=(_0x1559a9,_0x223e6c,_0x363a1f,_0x55c305)=>{const _0x56b5e2=_0x89ffc;let _0x1d85ca=[];switch(_0x1559a9['id']){case g[_0x56b5e2(0xf5)][_0x56b5e2(0x1ec)]:{_0x1d85ca=g[_0x56b5e2(0x1be)](_0x1559a9,_0x55c305);break;}case g[_0x56b5e2(0xf5)][_0x56b5e2(0xae)]:{_0x1d85ca=g['handleDeleteRangeMoveUp'](_0x1559a9,_0x55c305);break;}case g[_0x56b5e2(0xf5)][_0x56b5e2(0xba)]:{_0x1d85ca=g[_0x56b5e2(0x141)](_0x1559a9,_0x55c305);break;}case g[_0x56b5e2(0xf5)][_0x56b5e2(0x16d)]:{_0x1d85ca=g[_0x56b5e2(0x1c3)](_0x1559a9,_0x55c305);break;}case g['EffectRefRangId'][_0x56b5e2(0x1bf)]:{_0x1d85ca=g[_0x56b5e2(0x2a3)](_0x1559a9,_0x55c305);break;}case g[_0x56b5e2(0xf5)][_0x56b5e2(0x1e2)]:{_0x1d85ca=g[_0x56b5e2(0x290)](_0x1559a9,_0x55c305);break;}case g[_0x56b5e2(0xf5)][_0x56b5e2(0x2cf)]:{_0x1d85ca=g['handleMoveRange'](_0x1559a9,_0x55c305);break;}case g[_0x56b5e2(0xf5)][_0x56b5e2(0x264)]:{_0x1d85ca=g[_0x56b5e2(0x2e5)](_0x1559a9,_0x55c305);break;}case g[_0x56b5e2(0xf5)]['RemoveRowCommandId']:{_0x1d85ca=g['handleIRemoveRow'](_0x1559a9,_0x55c305);break;}}const _0x2b5e31=g['runRefRangeMutations'](_0x1d85ca,_0x55c305),_0x105f5b=this['cursorInfo'][_0x56b5e2(0x176)](_0x223e6c);if(_0x105f5b&&_0x2b5e31){const _0x43d5ef={..._0x105f5b,'range':_0x2b5e31};this[_0x56b5e2(0x90)][_0x56b5e2(0x1bc)](_0x223e6c,_0x43d5ef),_0x1f3abb(()=>{const _0xc1116b=_0x56b5e2,_0x23f2c9=this['_refRangeService'][_0xc1116b(0x99)](_0x2b5e31,_0x27d28d=>(_0x23f2c9['dispose'](),_0x31e916(_0x27d28d,_0x223e6c,_0x363a1f,_0x2b5e31)));_0x29d574[_0xc1116b(0x24a)](_0x23f2c9);});}return{'redos':[],'undos':[]};};this[_0x89ffc(0x90)][_0x89ffc(0x1ca)]((_0x1790de,_0x7d43c3)=>{const _0x5aa0d0=_0x89ffc,{range:_0x11cc35,sheetID:_0x505b9f}=_0x1790de,_0x516157=this['_refRangeService'][_0x5aa0d0(0x99)](_0x11cc35,_0x553ada=>(_0x516157[_0x5aa0d0(0x218)](),_0x31e916(_0x553ada,_0x7d43c3,_0x505b9f,_0x11cc35)));_0x29d574[_0x5aa0d0(0x24a)](_0x516157);});};this['disposeWithMe'](a[_0x2e8c69(0x2f7)](this[_0x2e8c69(0x1eb)]['subscribe'](()=>{_0x3460a6();})));}[_0x314074(0x2db)](){const _0x1ae3c7=_0x314074;var _0x3fda46,_0x1a06ab;if(this[_0x1ae3c7(0x262)]=!0x0,((_0x3fda46=this[_0x1ae3c7(0x11f)]['getFocusedUnit']())==null?void 0x0:_0x3fda46[_0x1ae3c7(0x302)]())!==this[_0x1ae3c7(0x1b9)])return;const _0x397c82=(_0x1a06ab=this[_0x1ae3c7(0x1cf)][_0x1ae3c7(0x176)](g[_0x1ae3c7(0x30a)])[_0x1ae3c7(0x215)]())==null?void 0x0:_0x1a06ab[0x0],_0x45cef3=this['_univerInstanceService'][_0x1ae3c7(0x27e)](a[_0x1ae3c7(0x273)][_0x1ae3c7(0x12b)])['getActiveSheet']();_0x397c82&&_0x45cef3&&this[_0x1ae3c7(0x265)](_0x45cef3[_0x1ae3c7(0xdc)](),_0x397c82);}['_toggleOffline'](){const _0x400ee3=_0x314074;this[_0x400ee3(0x262)]=!0x1;}};Se=it([w(0x2,a['Inject'](a['Injector'])),w(0x3,a['Inject'](me)),w(0x4,a[_0x314074(0x1d5)](u['MemberService'])),w(0x5,a[_0x314074(0xb4)]),w(0x6,a[_0x314074(0x94)]),w(0x7,a['Inject'](g[_0x314074(0x2c0)]))],Se);var at=Object[_0x314074(0xb7)],ct=(_0x2fc541,_0xc6c96,_0x282996,_0x172687)=>{const _0x5a8ab5=_0x314074;for(var _0x238c50=_0x172687>0x1?void 0x0:_0x172687?at(_0xc6c96,_0x282996):_0xc6c96,_0x10c363=_0x2fc541[_0x5a8ab5(0xbe)]-0x1,_0x310410;_0x10c363>=0x0;_0x10c363--)(_0x310410=_0x2fc541[_0x10c363])&&(_0x238c50=_0x310410(_0x238c50)||_0x238c50);return _0x238c50;},ie=(_0x151e3e,_0x185092)=>(_0x2b15ff,_0x3c4f3d)=>_0x185092(_0x2b15ff,_0x3c4f3d,_0x151e3e);let x=class extends a['RxDisposable']{constructor(_0x35bc62,_0x1210eb,_0x72ee63){const _0x7ee506=_0x314074;super(),h(this,'_entities',new Map()),h(this,'_entityInit$',new d['Subject']()),(this[_0x7ee506(0x11f)]=_0x35bc62,this['_injector']=_0x1210eb,this['_collabSessionService']=_0x72ee63,this[_0x7ee506(0x121)]());}[_0x314074(0x218)](){const _0x16d3d8=_0x314074;super[_0x16d3d8(0x218)](),this[_0x16d3d8(0x219)][_0x16d3d8(0x1fb)](),this[_0x16d3d8(0x271)][_0x16d3d8(0x1ca)](_0x4f6a83=>_0x4f6a83[_0x16d3d8(0x218)]());}[_0x314074(0x2bb)](_0x24b59){const _0x688efe=_0x314074;return this['_entities'][_0x688efe(0x199)](_0x24b59)?this['_entities'][_0x688efe(0x176)](_0x24b59)['cursorInfo$']:this[_0x688efe(0x219)]['pipe'](d[_0x688efe(0x158)](_0x12f727=>_0x12f727[_0x688efe(0x1b9)]===_0x24b59),d[_0x688efe(0x134)](_0x23cc90=>_0x23cc90[_0x688efe(0xfe)]));}[_0x314074(0x121)](){const _0x265765=_0x314074;this[_0x265765(0x11f)][_0x265765(0x1f1)](a['UniverInstanceType'][_0x265765(0x12b)])[_0x265765(0xb2)](d[_0x265765(0x1b7)](this[_0x265765(0xd2)]))['subscribe'](async _0x186ca7=>{const _0x3841c1=_0x265765,_0x35adb6=_0x186ca7[_0x3841c1(0x302)](),_0x71f1d=await this[_0x3841c1(0x299)](_0x35adb6);this[_0x3841c1(0x219)][_0x3841c1(0x13c)](_0x71f1d),this[_0x3841c1(0x271)][_0x3841c1(0x1bc)](_0x35adb6,_0x71f1d);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x265765(0x1c2)])[_0x265765(0xb2)](d[_0x265765(0x1b7)](this[_0x265765(0xd2)]))[_0x265765(0xb2)](d[_0x265765(0x158)](_0x5ea88f=>!_0x5ea88f[_0x265765(0x302)]()['startsWith']('__')))['subscribe'](async _0x3ad335=>{const _0x6fbcd=_0x265765,_0x4cc067=_0x3ad335[_0x6fbcd(0x302)](),_0x214960=await this[_0x6fbcd(0xb8)](_0x4cc067);this[_0x6fbcd(0x219)][_0x6fbcd(0x13c)](_0x214960),this['_entities']['set'](_0x4cc067,_0x214960);}),d[_0x265765(0xa8)](this[_0x265765(0x11f)][_0x265765(0x2ae)](a[_0x265765(0x273)][_0x265765(0x1c2)]),this[_0x265765(0x11f)][_0x265765(0x2ae)](a['UniverInstanceType']['UNIVER_SHEET']))['pipe'](d[_0x265765(0x1b7)](this[_0x265765(0xd2)]))[_0x265765(0x112)](_0x244c6c=>{const _0x565e10=_0x265765,_0x48de49=_0x244c6c[_0x565e10(0x302)](),_0xb4b958=this[_0x565e10(0x271)][_0x565e10(0x176)](_0x48de49);_0xb4b958&&(_0xb4b958[_0x565e10(0x218)](),this[_0x565e10(0x271)][_0x565e10(0x142)](_0x48de49));});}async[_0x314074(0x299)](_0x254788){const _0x241a75=_0x314074,_0x39b134=await this['_collabSessionService'][_0x241a75(0x182)](_0x254788),_0x237598=this[_0x241a75(0x1cf)][_0x241a75(0x2c1)](Se,_0x254788,_0x39b134);return _0x237598[_0x241a75(0x267)](),_0x237598;}async[_0x314074(0xb8)](_0x4b9516){const _0xf61e21=_0x314074,_0x406822=await this['_collabSessionService']['requireSession'](_0x4b9516),_0x1d90ed=this[_0xf61e21(0x1cf)][_0xf61e21(0x2c1)](fe,_0x4b9516,_0x406822);return _0x1d90ed[_0xf61e21(0x267)](),_0x1d90ed;}};x=ct([ie(0x0,a[_0x314074(0xb4)]),ie(0x1,a[_0x314074(0x1d5)](a['Injector'])),ie(0x2,a[_0x314074(0x1d5)](u[_0x314074(0xbb)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x4190d0,_0x489337){const _0x3c7ffa=_0x314074;let {radius:_0x3dbbb6,width:_0x3a63be,height:_0x1b86b2}=_0x489337;_0x3dbbb6=_0x3dbbb6!=null?_0x3dbbb6:0x0,_0x3a63be=_0x3a63be!=null?_0x3a63be:0x1e,_0x1b86b2=_0x1b86b2!=null?_0x1b86b2:0x1e;let _0x31dbe7=0x0,_0x5dd305=0x0,_0x13bc60=0x0;_0x31dbe7=_0x5dd305=_0x13bc60=Math[_0x3c7ffa(0x1ff)](_0x3dbbb6,_0x3a63be/0x2,_0x1b86b2/0x2),_0x4190d0['beginPath'](),_0x4190d0[_0x3c7ffa(0x1ac)](_0x31dbe7,0x0),_0x4190d0['lineTo'](_0x3a63be-_0x5dd305,0x0),_0x4190d0[_0x3c7ffa(0x263)](_0x3a63be-_0x5dd305,_0x5dd305,_0x5dd305,Math['PI']*0x3/0x2,0x0,!0x1),_0x4190d0[_0x3c7ffa(0x164)](_0x3a63be,_0x1b86b2-_0x13bc60),_0x4190d0['arc'](_0x3a63be-_0x13bc60,_0x1b86b2-_0x13bc60,_0x13bc60,0x0,Math['PI']/0x2,!0x1),_0x4190d0[_0x3c7ffa(0x164)](0x0,_0x1b86b2),_0x4190d0[_0x3c7ffa(0x164)](0x0,_0x31dbe7),_0x4190d0[_0x3c7ffa(0x263)](_0x31dbe7,_0x31dbe7,_0x31dbe7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4190d0[_0x3c7ffa(0x129)](),_0x489337[_0x3c7ffa(0x123)]&&(_0x4190d0[_0x3c7ffa(0x168)](),_0x4190d0[_0x3c7ffa(0x1e6)]=_0x489337[_0x3c7ffa(0x123)],_0x489337[_0x3c7ffa(0x1f7)]===_0x3c7ffa(0x243)?_0x4190d0['fill'](_0x3c7ffa(0x243)):_0x4190d0[_0x3c7ffa(0x123)](),_0x4190d0[_0x3c7ffa(0x93)]());}class ee extends p[_0x314074(0x238)]{constructor(_0x2f34d6,_0x22ee96){const _0x36d607=_0x314074;super(_0x2f34d6,_0x22ee96),h(this,_0x36d607(0x2be)),h(this,_0x36d607(0xd3)),(this[_0x36d607(0x2be)]=_0x22ee96==null?void 0x0:_0x22ee96[_0x36d607(0x2be)],this['text']=_0x22ee96==null?void 0x0:_0x22ee96['text']);}static[_0x314074(0x181)](_0x5752a5,_0x2c2a81){const _0x20011f=_0x314074,{text:_0x22cb04,color:_0xf6ae83}=_0x2c2a81;_0x5752a5[_0x20011f(0x168)](),_0x5752a5['font']=_0x20011f(0xdf);const _0x2f1c07=_0x5752a5['measureText'](_0x22cb04)['width'],_0x2d95d6=Math[_0x20011f(0x1ff)](_0x2f1c07+0x2*ne,Re);_t(_0x5752a5,{'height':K,'radius':0x4,'width':_0x2d95d6,'fill':_0xf6ae83}),_0x5752a5['fillStyle']=_0x20011f(0x2ba);const _0x3159c8=ne,_0x2240c9=K-lt,_0x502da3=Re-0x2*ne;if(_0x2f1c07>_0x502da3){let _0x1b18c3='',_0x1bc83a=0x0;for(const _0x556ccc of _0x22cb04){const _0xbe10fb=_0x5752a5['measureText'](_0x556ccc)['width'];if(_0x1bc83a+_0xbe10fb<=_0x502da3-_0x5752a5[_0x20011f(0x104)](_0x20011f(0x1ab))['width'])_0x1b18c3+=_0x556ccc,_0x1bc83a+=_0xbe10fb;else{_0x1b18c3+='...';break;}}_0x5752a5[_0x20011f(0x12e)](_0x1b18c3,_0x3159c8,_0x2240c9);}else _0x5752a5[_0x20011f(0x12e)](_0x22cb04,_0x3159c8,_0x2240c9);_0x5752a5[_0x20011f(0x93)]();}[_0x314074(0x102)](_0x48fb12){const _0x4e285b=_0x314074;ee[_0x4e285b(0x181)](_0x48fb12,this);}}const re='collab-text-anchor-',ht='collab-text-range-',ut=_0x314074(0x2bc),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x314074(0x20c);class De{constructor(_0x239f0b,_0xee7b0a,_0x5e9017,_0x2885a0){const _0x4bc9e1=_0x314074;h(this,_0x4bc9e1(0x1fc),[]),h(this,_0x4bc9e1(0x23e),null),h(this,_0x4bc9e1(0x2b9),null),h(this,_0x4bc9e1(0x15e),null),h(this,_0x4bc9e1(0xd0),null),h(this,_0x4bc9e1(0x283),null),(this[_0x4bc9e1(0x1f6)]=_0x239f0b,this[_0x4bc9e1(0x307)]=_0xee7b0a,this[_0x4bc9e1(0xf9)]=_0x5e9017,this[_0x4bc9e1(0x1d8)]=_0x2885a0,this['_render']());}set[_0x314074(0x2d7)](_0x1e0aa0){const _0x404a5d=_0x314074;_0x1e0aa0?(this[_0x404a5d(0x15e)]&&this[_0x404a5d(0x15e)][_0x404a5d(0x28a)](),this[_0x404a5d(0x2b9)]&&this[_0x404a5d(0x2b9)]['show']()):(this[_0x404a5d(0x15e)]&&this['_anchorDot'][_0x404a5d(0x277)](),this[_0x404a5d(0x2b9)]&&this[_0x404a5d(0x2b9)][_0x404a5d(0x28a)]());}[_0x314074(0x218)](){const _0xc375de=_0x314074;for(const _0x5b0d6a of this[_0xc375de(0x1fc)])_0x5b0d6a[_0xc375de(0x218)]();this[_0xc375de(0x2b9)]&&this[_0xc375de(0x2b9)]['dispose'](),this[_0xc375de(0x15e)]&&this[_0xc375de(0x15e)][_0xc375de(0x218)](),this[_0xc375de(0x23e)]&&this[_0xc375de(0x23e)][_0xc375de(0x218)](),this[_0xc375de(0x283)]&&this[_0xc375de(0x283)]();}['_render'](){const _0x4f7bf4=_0x314074;var _0x374013;const {_docSkeleton:_0x3eb2ea,_document:_0x56c01e}=this,{color:_0x15a41d,name:_0x15ce63,ranges:_0x5b125b}=this['_cursor'],_0x327bc9=_0x56c01e[_0x4f7bf4(0x12d)](),{docsLeft:_0x4fc9ae,docsTop:_0x759e4e}=_0x327bc9,_0x3e4825=new b[(_0x4f7bf4(0x19a))](_0x327bc9,_0x3eb2ea);for(const {startOffset:_0x2a90e4,endOffset:_0x56b204,rangeType:_0x4cc08b,segmentId:_0x4d0c1f,segmentPage:_0x52db52,collapsed:_0x3ccc10,isActive:_0x3f9d77}of _0x5b125b){const _0x4e68ec=_0x3eb2ea[_0x4f7bf4(0x13b)](_0x2a90e4,!0x0,_0x4d0c1f,_0x52db52);let _0x3f8fc1=_0x3eb2ea[_0x4f7bf4(0x13b)](_0x56b204,!0x0,_0x4d0c1f,_0x52db52);if(_0x3f8fc1==null&&(_0x3f8fc1=_0x3eb2ea[_0x4f7bf4(0x13b)](_0x56b204-0x1,!0x1,_0x4d0c1f,_0x52db52)),_0x3f9d77){const {contentBoxPointGroup:_0x441ece}=_0x3e4825['getRangePointData'](_0x3f8fc1,_0x3f8fc1);if(_0x441ece[_0x4f7bf4(0xbe)]===0x0)continue;this['_drawAnchor'](_0x15a41d,_0x441ece,_0x4fc9ae,_0x759e4e,_0x15ce63),this[_0x4f7bf4(0x283)]=this[_0x4f7bf4(0x1b5)]();}if(_0x4e68ec&&_0x3f8fc1){if(_0x4cc08b===a[_0x4f7bf4(0x252)][_0x4f7bf4(0x1fe)]){const _0x55774b=new b[(_0x4f7bf4(0x2d2))](_0x327bc9,_0x3eb2ea),{pointGroup:_0x408dfa}=(_0x374013=_0x55774b[_0x4f7bf4(0xe0)](_0x4e68ec,_0x3f8fc1))!=null?_0x374013:{};if(_0x408dfa==null||_0x408dfa[_0x4f7bf4(0xbe)]===0x0)continue;this[_0x4f7bf4(0x233)](_0x15a41d,_0x408dfa,_0x4fc9ae,_0x759e4e);}else{if(!_0x3ccc10){const {borderBoxPointGroup:_0x378a5e}=_0x3e4825[_0x4f7bf4(0xe0)](_0x4e68ec,_0x3f8fc1);if(_0x378a5e[_0x4f7bf4(0xbe)]===0x0)continue;this['_drawTextRange'](_0x15a41d,_0x378a5e,_0x4fc9ae,_0x759e4e);}}}}}[_0x314074(0x253)](_0x2686ea,_0x54815d,_0x2bb900,_0x1db599,_0x18fd44){const _0x481299=_0x314074,_0x37b870=this['_getAnchorBounding'](_0x54815d),{left:_0x2809f0,top:_0x1b613e,height:_0x12afe9}=_0x37b870,_0x3f8af9=this[_0x481299(0x17a)](),_0x473f6a=ft/_0x3f8af9,_0x57ea3d=new p[(_0x481299(0x29f))](re+a['Tools'][_0x481299(0xd7)](k),{'left':_0x2809f0+_0x2bb900-_0x473f6a,'top':_0x1b613e+_0x1db599,'height':_0x12afe9,'width':dt,'fill':_0x2686ea||p[_0x481299(0x229)](a[_0x481299(0x1f3)][_0x481299(0x30d)],0x0),'strokeWidth':_0x473f6a,'stroke':St,'evented':!0x0});this[_0x481299(0x23e)]=_0x57ea3d,this[_0x481299(0x307)]['addObject'](_0x57ea3d,b[_0x481299(0x294)]);const _0x1b5499=new p[(_0x481299(0x29f))](re+a[_0x481299(0x144)][_0x481299(0xd7)](k),{'left':_0x2809f0+_0x2bb900-_0x473f6a,'top':_0x1b613e+_0x1db599-oe/0x2,'height':oe,'width':oe,'fill':_0x2686ea||p['getColor'](a['COLORS'][_0x481299(0x30d)],0x0),'strokeWidth':0x0,'stroke':_0x2686ea||p[_0x481299(0x229)](a[_0x481299(0x1f3)][_0x481299(0x30d)],0x0),'evented':!0x1});this[_0x481299(0x15e)]=_0x1b5499,this[_0x481299(0x307)][_0x481299(0x2ce)](_0x1b5499,b['TEXT_RANGE_LAYER_INDEX']);const _0x4228cd=new ee(re+a[_0x481299(0x144)][_0x481299(0xd7)](k),{'left':_0x2809f0+_0x2bb900-_0x473f6a,'top':_0x1b613e+_0x1db599-K,'text':_0x18fd44,'color':_0x2686ea});this[_0x481299(0x2b9)]=_0x4228cd,this[_0x481299(0x307)]['addObject'](_0x4228cd,b[_0x481299(0x294)]),this[_0x481299(0x2d7)]=!0x1;}[_0x314074(0x1b5)](){const _0x2f18b7=_0x314074,_0xfb7038=this[_0x2f18b7(0x23e)][_0x2f18b7(0x138)][_0x2f18b7(0x234)](()=>{this['_hover']=!0x0;}),_0x2c79fa=this['_anchor'][_0x2f18b7(0x1dc)]['subscribeEvent'](()=>{const _0x1d7a46=_0x2f18b7;this['_hideTimer']&&clearTimeout(this[_0x1d7a46(0xd0)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1e8ec9=_0x2f18b7;_0xfb7038[_0x1e8ec9(0x256)](),_0x2c79fa['unsubscribe']();};}[_0x314074(0x1e3)](_0x27df9e,_0x4ca3ec,_0xe11498,_0x10266e){const _0x8bb0b9=_0x314074,_0x587a3b=new a['ColorKit'](_0x27df9e)['setAlpha'](0.2)[_0x8bb0b9(0x2bf)](),_0x26a859=new p[(_0x8bb0b9(0x30f))](ht+a[_0x8bb0b9(0x144)][_0x8bb0b9(0xd7)](k),{'pointsGroup':_0x4ca3ec,'fill':_0x587a3b||p[_0x8bb0b9(0x229)](a[_0x8bb0b9(0x1f3)][_0x8bb0b9(0x30d)],0.2),'left':_0xe11498,'top':_0x10266e,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x26a859),this['_scene'][_0x8bb0b9(0x2ce)](_0x26a859,b[_0x8bb0b9(0x294)]);}['_drawRectRange'](_0x6b94e9,_0xf7bbc0,_0xdedc94,_0x42b412){const _0x535563=_0x314074,_0x25bc19=new a[(_0x535563(0x118))](_0x6b94e9)[_0x535563(0x24f)](0.2)[_0x535563(0x2bf)](),_0x2847a0=new p[(_0x535563(0x30f))](ut+a[_0x535563(0x144)]['generateRandomId'](k),{'pointsGroup':_0xf7bbc0,'fill':_0x25bc19||p['getColor'](a[_0x535563(0x1f3)]['black'],0.2),'left':_0xdedc94,'top':_0x42b412,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x535563(0x1fc)][_0x535563(0x1fa)](_0x2847a0),this[_0x535563(0x307)][_0x535563(0x2ce)](_0x2847a0,b['TEXT_RANGE_LAYER_INDEX']);}[_0x314074(0x126)](_0x22e26d){const _0x46e555=_0x22e26d[0x0],_0x5378d8=_0x46e555[0x0],_0x4aa36a=_0x46e555[0x2],{x:_0x57ee61,y:_0x688279}=_0x5378d8,{x:_0x5a0543,y:_0x14f963}=_0x4aa36a;return{'left':_0x57ee61,'top':_0x688279,'width':_0x5a0543-_0x57ee61,'height':_0x14f963-_0x688279};}[_0x314074(0x17a)](){const _0x3a10e0=_0x314074,{scaleX:_0x10bbbb,scaleY:_0x1b6551}=this['_scene'][_0x3a10e0(0x165)]();return Math['max'](_0x10bbbb,_0x1b6551);}}var It=Object[_0x314074(0xb7)],vt=(_0x2b0fac,_0x52e811,_0x4d1cc6,_0x30d93a)=>{const _0x1083b2=_0x314074;for(var _0x38e7c2=_0x30d93a>0x1?void 0x0:_0x30d93a?It(_0x52e811,_0x4d1cc6):_0x52e811,_0x187cd5=_0x2b0fac[_0x1083b2(0xbe)]-0x1,_0x5c2be7;_0x187cd5>=0x0;_0x187cd5--)(_0x5c2be7=_0x2b0fac[_0x187cd5])&&(_0x38e7c2=_0x5c2be7(_0x38e7c2)||_0x38e7c2);return _0x38e7c2;},W=(_0x147e1d,_0x4d185b)=>(_0x36377e,_0x170788)=>_0x4d185b(_0x36377e,_0x170788,_0x147e1d);let Ie=class extends a['RxDisposable']{constructor(_0x5cefb3,_0x47c6bc,_0x2148d9,_0x54e14a,_0x23b0cc){const _0x50d673=_0x314074;super(),h(this,'_cursorShapes',[]),h(this,_0x50d673(0xe3),[]),(this[_0x50d673(0x30c)]=_0x5cefb3,this[_0x50d673(0x145)]=_0x47c6bc,this[_0x50d673(0xa9)]=_0x2148d9,this[_0x50d673(0x135)]=_0x54e14a,this['_themeService']=_0x23b0cc,this['_init']());}[_0x314074(0x121)](){const _0x34ef96=_0x314074,_0x3f5d6c=this[_0x34ef96(0x30c)][_0x34ef96(0xe4)],_0x5a75c1=this['_docSkeletonManagerService'];this[_0x34ef96(0x2af)](d[_0x34ef96(0x2fb)]([this[_0x34ef96(0xa9)][_0x34ef96(0x2bb)](_0x3f5d6c),this[_0x34ef96(0x1ce)]['currentTheme$']])[_0x34ef96(0xb2)]($[_0x34ef96(0xa5)](([_0x4cc3fd,_0x4de26e])=>({'skeleton':_0x5a75c1[_0x34ef96(0x185)](),'cursors':[..._0x4cc3fd['values']()][_0x34ef96(0x235)](_0x580d99=>({..._0x580d99,'color':this[_0x34ef96(0x1ce)][_0x34ef96(0x113)](_0x580d99[_0x34ef96(0x2be)])}))})))[_0x34ef96(0x112)](_0x1f56f7=>{if(this['_removeCollabCursors'](),_0x1f56f7){const {skeleton:_0x1da6f3,cursors:_0x316ce6}=_0x1f56f7;this['_updateCollabCursors'](_0x1da6f3,_0x316ce6);}})),this[_0x34ef96(0xe5)](),this['_initCommandExecutedListener']();}[_0x314074(0x137)](_0x2effe0,_0xa104ba){const _0x566315=_0x314074,{scene:_0xf73a92,mainComponent:_0x80ae56}=this[_0x566315(0x30c)],_0x53a17d=_0xa104ba[_0x566315(0xa5)](_0x470614=>new De(_0x470614,_0xf73a92,_0x2effe0,_0x80ae56));this[_0x566315(0x1af)]=_0x53a17d,this[_0x566315(0xe3)]=_0xa104ba;}[_0x314074(0x147)](){const _0x30a685=_0x314074;this[_0x30a685(0x17c)]();const {scene:_0x35a014,mainComponent:_0x15ebb3}=this[_0x30a685(0x30c)],_0x24451e=this[_0x30a685(0x145)]['getSkeleton'](),_0xbfee61=this[_0x30a685(0xe3)][_0x30a685(0xa5)](_0x392a9d=>new De(_0x392a9d,_0x35a014,_0x24451e,_0x15ebb3));this['_cursorShapes']=_0xbfee61;}[_0x314074(0x17c)](){const _0x4ff10=_0x314074;this['_cursorShapes'][_0x4ff10(0x1ca)](_0x4fa4f6=>_0x4fa4f6[_0x4ff10(0x218)]()),this[_0x4ff10(0x1af)]=[];}[_0x314074(0x224)](){const _0x4188fa=_0x314074,_0x2482a0=[b[_0x4188fa(0x28b)]['id']];this[_0x4188fa(0x2af)](this[_0x4188fa(0x135)][_0x4188fa(0x298)](_0x6f235f=>{const _0x2e831a=_0x4188fa;_0x2482a0[_0x2e831a(0x1c1)](_0x6f235f['id'])&&_0x6f235f[_0x2e831a(0x239)]['unitId']===this[_0x2e831a(0x30c)]['unitId']&&this[_0x2e831a(0x147)]();}));}[_0x314074(0xe5)](){const _0x549b2c=_0x314074;this['disposeWithMe'](a[_0x549b2c(0x2e2)](this[_0x549b2c(0x30c)][_0x549b2c(0x2de)][_0x549b2c(0x21f)])[_0x549b2c(0xb2)]($[_0x549b2c(0x158)](_0x50cad7=>_0x50cad7[_0x549b2c(0x269)]===p[_0x549b2c(0x2eb)][_0x549b2c(0xc6)]),$[_0x549b2c(0x297)](0x10))[_0x549b2c(0x112)](()=>{const _0x5e62a8=_0x549b2c;this[_0x5e62a8(0x147)]();}));}};Ie=vt([W(0x1,a[_0x314074(0x1d5)](Y[_0x314074(0x2c6)])),W(0x2,a[_0x314074(0x1d5)](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x314074(0x1d5)](a[_0x314074(0x169)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x314074(0x238)]{constructor(_0x148e29,_0x326f42){const _0x1f1530=_0x314074;super(_0x148e29,_0x326f42),h(this,'_color'),h(this,_0x1f1530(0x12a),!0x1),h(this,'_range'),h(this,_0x1f1530(0x1d6),''),h(this,_0x1f1530(0x9d),_0x1f1530(0xed)),h(this,_0x1f1530(0x211)),(_0x326f42&&this[_0x1f1530(0x2c7)](_0x326f42),this[_0x1f1530(0x138)]['subscribeEvent'](()=>this[_0x1f1530(0x2c7)]({'hovered':!0x0})),this[_0x1f1530(0x1dc)][_0x1f1530(0x234)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x314074(0x2c7)](_0x3fae5c){const _0x44e7df=_0x314074;var _0x99dd7,_0x4b0cc5,_0x2318b3,_0x2ff357,_0xf3dcbb,_0x500571;this[_0x44e7df(0x1b6)]=(_0x99dd7=_0x3fae5c[_0x44e7df(0x2be)])!=null?_0x99dd7:this[_0x44e7df(0x1b6)],this[_0x44e7df(0x12a)]=(_0x4b0cc5=_0x3fae5c[_0x44e7df(0x2a2)])!=null?_0x4b0cc5:this[_0x44e7df(0x12a)],this[_0x44e7df(0x258)]=(_0x2318b3=_0x3fae5c[_0x44e7df(0xd9)])!=null?_0x2318b3:this['_range'],this[_0x44e7df(0x1d6)]=(_0x2ff357=_0x3fae5c[_0x44e7df(0x2f8)])!=null?_0x2ff357:this[_0x44e7df(0x1d6)],this[_0x44e7df(0x9d)]=(_0xf3dcbb=_0x3fae5c[_0x44e7df(0xf8)])!=null?_0xf3dcbb:this[_0x44e7df(0x9d)],this[_0x44e7df(0x211)]=(_0x500571=_0x3fae5c[_0x44e7df(0x1c8)])!=null?_0x500571:this[_0x44e7df(0x211)],this[_0x44e7df(0x23c)]({'width':_0x3fae5c[_0x44e7df(0x1d1)],'height':_0x3fae5c[_0x44e7df(0x2e9)]});}[_0x314074(0x11c)](_0x5a8597){const _0x3c6369=_0x314074,{row:_0x14791d,column:_0x413d02}=_0x5a8597;if(_0x14791d>=this[_0x3c6369(0x258)][_0x3c6369(0xf2)]&&_0x14791d<=this[_0x3c6369(0x258)][_0x3c6369(0x1a0)]&&_0x413d02>=this['_range']['startColumn']&&_0x413d02<=this[_0x3c6369(0x258)][_0x3c6369(0x250)]){this[_0x3c6369(0x2c7)]({'hovered':!0x0});return;}this[_0x3c6369(0x2c7)]({'hovered':!0x1});}['triggerDblclick'](_0x4eb2b5){return!0x1;}['_draw'](_0x9edbf){const _0x223402=_0x314074;p['Rect']['drawWith'](_0x9edbf,{'width':this[_0x223402(0x1d1)],'height':this[_0x223402(0x2e9)],'strokeWidth':mt,'stroke':this[_0x223402(0x1b6)],'evented':!0x1,'fill':this[_0x223402(0x211)]}),this[_0x223402(0x12a)]&&(_0x9edbf['save'](),_0x9edbf[_0x223402(0x268)](0x1,0x0,0x0,0x1,this[_0x223402(0x1d1)],this[_0x223402(0x9d)]===_0x223402(0x2e6)?0x0:-0x14),ee[_0x223402(0x181)](_0x9edbf,{'text':this[_0x223402(0x1d6)],'color':this[_0x223402(0x1b6)]}),_0x9edbf[_0x223402(0x93)]());}}var Ct=Object[_0x314074(0xb7)],pt=(_0x2d75d3,_0x1b4d1,_0x5e1164,_0x52476e)=>{const _0x34142d=_0x314074;for(var _0x14c6a0=_0x52476e>0x1?void 0x0:_0x52476e?Ct(_0x1b4d1,_0x5e1164):_0x1b4d1,_0x323505=_0x2d75d3[_0x34142d(0xbe)]-0x1,_0x3fea55;_0x323505>=0x0;_0x323505--)(_0x3fea55=_0x2d75d3[_0x323505])&&(_0x14c6a0=_0x3fea55(_0x14c6a0)||_0x14c6a0);return _0x14c6a0;},ae=(_0x2f49ef,_0x5a78d0)=>(_0x59815d,_0x22875a)=>_0x5a78d0(_0x59815d,_0x22875a,_0x2f49ef);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x36690c,_0x24d3ef,_0x10eeef,_0x45fc03){const _0x412f03=_0x314074;super(),h(this,_0x412f03(0xe3),new Set()),h(this,_0x412f03(0x196),null),(this[_0x412f03(0x30c)]=_0x36690c,this[_0x412f03(0x26a)]=_0x24d3ef,this['_collabCursorController']=_0x10eeef,this['_themeService']=_0x45fc03,this[_0x412f03(0x121)]());}['_init'](){const _0x14ce45=_0x314074;this[_0x14ce45(0x26a)][_0x14ce45(0x125)][_0x14ce45(0xb2)]($['takeUntil'](this[_0x14ce45(0xd2)]),$[_0x14ce45(0x134)](_0x5c6718=>{const _0x13198b=_0x14ce45;if(_0x5c6718){const _0x46d42b=_0x5c6718[_0x13198b(0x124)];return d['combineLatest'](this[_0x13198b(0xa9)][_0x13198b(0x2bb)](this[_0x13198b(0x30c)][_0x13198b(0xe4)]),this['_themeService']['currentTheme$'])['pipe']($[_0x13198b(0xa5)](([_0x5db7d2,_0x113da4])=>{const _0x5714e0=new Map();return _0x5db7d2['forEach']((_0x5f3db4,_0xdd0251)=>{const _0xcb3c7e=_0x391f;if(_0x5f3db4[_0xcb3c7e(0x10b)]===_0x46d42b){const _0x4e8214={..._0x5f3db4};_0x4e8214[_0xcb3c7e(0x2be)]=this[_0xcb3c7e(0x1ce)][_0xcb3c7e(0x113)](_0x5f3db4[_0xcb3c7e(0x2be)]),_0x5714e0[_0xcb3c7e(0x1bc)](_0xdd0251,_0x4e8214);}}),{'skeleton':_0x5c6718,'cursors':_0x5714e0};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x366b22,cursors:_0x5799c2})=>{const _0x17eb29=_0x14ce45;this['_removeCollabCursors'](),_0x366b22&&this[_0x17eb29(0x137)](_0x366b22,_0x5799c2);}),this[_0x14ce45(0x26a)][_0x14ce45(0x125)][_0x14ce45(0x112)](_0x91b8ee=>{const _0x127210=_0x14ce45;if(_0x91b8ee==null)return;const {skeleton:_0x4f7020}=_0x91b8ee,{scene:_0xb7e66}=this[_0x127210(0x30c)];_0xb7e66[_0x127210(0x1ad)][_0x127210(0x234)](a[_0x127210(0xdd)](_0x59f20a=>{const _0x119559=_0x127210;var _0x25bbd2,_0x8f6cbb;const {offsetX:_0x4aeb2e,offsetY:_0x3daf01}=_0x59f20a,{x:_0x20c2a6,y:_0xa406f3}=_0xb7e66[_0x119559(0x20b)](p[_0x119559(0x236)][_0x119559(0x150)]([_0x4aeb2e,_0x3daf01])),{scaleX:_0x1a2f6a,scaleY:_0x59ed50}=_0xb7e66[_0x119559(0x165)](),_0x5361aa=_0xb7e66['getViewport'](p[_0x119559(0xc4)][_0x119559(0x206)]),_0x4e5f1d=_0xb7e66['getVpScrollXYInfoByPosToVp'](p['Vector2'][_0x119559(0x150)]([_0x20c2a6,_0xa406f3]),_0x5361aa),_0x32918f=_0x4f7020[_0x119559(0xcb)](_0x4aeb2e,_0x3daf01,_0x1a2f6a,_0x59ed50,_0x4e5f1d);((_0x25bbd2=this[_0x119559(0x196)])==null?void 0x0:_0x25bbd2['column'])===_0x32918f[_0x119559(0x189)]&&((_0x8f6cbb=this[_0x119559(0x196)])==null?void 0x0:_0x8f6cbb[_0x119559(0x25d)])===_0x32918f[_0x119559(0x25d)]||this['_cursors']['forEach'](_0x2829fc=>{const _0x4f250f=_0x119559;_0x2829fc[_0x4f250f(0x11c)](_0x32918f);});},0x64));});}[_0x314074(0x137)](_0x1393e4,_0x568056){const _0x52124d=_0x314074;var _0x56e8e2;const _0x3ccf75=(_0x56e8e2=this[_0x52124d(0x26a)]['getCurrent']())==null?void 0x0:_0x56e8e2[_0x52124d(0x26d)];if(!_0x3ccf75)return;const _0x41c70b=this[_0x52124d(0x1e1)]();if(!_0x41c70b)return;this[_0x52124d(0xe3)]['forEach'](_0x360320=>{const _0x23a30f=_0x52124d;_0x360320[_0x23a30f(0x1b2)]();});const {scene:_0x218fbd}=_0x41c70b,_0x2a5eab=Et(Array[_0x52124d(0x1ef)](_0x568056[_0x52124d(0x2fd)]()))[_0x52124d(0xa5)](_0x53ad8d=>{const _0x6a649a=_0x52124d,{color:_0x519f1f,range:_0x22a45c,name:_0x2560f1,selection:_0x406549,sheetID:_0x32410b}=_0x53ad8d,{startColumn:_0x2dfc5f,startRow:_0x17dc41,endColumn:_0x32bbc9,endRow:_0x94c12f}=_0x22a45c,_0x198506=X['getCoordByCell'](_0x17dc41,_0x2dfc5f,_0x218fbd,_0x3ccf75),_0x122073=X[_0x6a649a(0x29a)](_0x94c12f,_0x32bbc9,_0x218fbd,_0x3ccf75),{columnHeaderHeightAndMarginTop:_0x5c02e5}=_0x3ccf75,{startX:_0x1b9952,startY:_0x3f0913}=_0x198506,{endX:_0x14dd46,endY:_0x13342f}=_0x122073,_0x2a47f3=_0x14dd46-_0x1b9952,_0x36bec8=_0x13342f-_0x3f0913,_0x102fb1={'labelPosition':_0x3f0913-_0x5c02e5>=K?'top':'bottom','sheetID':_0x32410b,'range':_0x22a45c,'color':_0x519f1f,'name':_0x2560f1,'selection':_0x406549,'left':_0x1b9952,'top':_0x3f0913,'width':_0x2a47f3,'height':_0x36bec8,'evented':!0x1,'zIndex':bt};return new Ae(_0x2560f1,_0x102fb1);});_0x218fbd['addObjects'](_0x2a5eab,gt),this[_0x52124d(0xe3)]=new Set(_0x2a5eab);}[_0x314074(0x17c)](){const _0x4d881b=_0x314074;var _0x3b8873;(_0x3b8873=this[_0x4d881b(0xe3)])==null||_0x3b8873[_0x4d881b(0x1ca)](_0x1eda0d=>_0x1eda0d['dispose']());}['_getSheetObject'](){const _0x5e7660=_0x314074;return X[_0x5e7660(0x21a)](this[_0x5e7660(0x30c)][_0x5e7660(0x10a)],this[_0x5e7660(0x30c)]);}};ve=pt([ae(0x1,a[_0x314074(0x1d5)](X[_0x314074(0x1df)])),ae(0x2,a[_0x314074(0x1d5)](x)),ae(0x3,a[_0x314074(0x1d5)](a[_0x314074(0x169)]))],ve);function Et(_0x5f32ec){const _0x418570=_0x314074,_0x44be1c=new Map();return _0x5f32ec[_0x418570(0x1ca)](_0x732467=>{const _0x4f4d03=_0x418570;if(_0x44be1c[_0x4f4d03(0x199)](_0x732467[_0x4f4d03(0x1d0)])){const _0x652080=_0x44be1c[_0x4f4d03(0x176)](_0x732467[_0x4f4d03(0x1d0)]);_0x652080[_0x4f4d03(0x2f8)]+=',\x20'+_0x732467[_0x4f4d03(0x2f8)];}else _0x44be1c['set'](_0x732467[_0x4f4d03(0x1d0)],_0x732467);}),Array[_0x418570(0x1ef)](_0x44be1c[_0x418570(0x2fd)]());}var E=function(){const _0x163e6c=_0x314074;return E=Object[_0x163e6c(0x103)]||function(_0x71e7df){const _0x1ed7c3=_0x163e6c;for(var _0x1cf299,_0x8eaa42=0x1,_0x5104f7=arguments[_0x1ed7c3(0xbe)];_0x8eaa42<_0x5104f7;_0x8eaa42++){_0x1cf299=arguments[_0x8eaa42];for(var _0x44f9d6 in _0x1cf299)Object['prototype'][_0x1ed7c3(0xb3)][_0x1ed7c3(0x1b4)](_0x1cf299,_0x44f9d6)&&(_0x71e7df[_0x44f9d6]=_0x1cf299[_0x44f9d6]);}return _0x71e7df;},E['apply'](this,arguments);},Tt=function(_0x179bad,_0x4ee521){const _0x7bd9c1=_0x314074;var _0x21bb79={};for(var _0x122b10 in _0x179bad)Object['prototype'][_0x7bd9c1(0xb3)][_0x7bd9c1(0x1b4)](_0x179bad,_0x122b10)&&_0x4ee521['indexOf'](_0x122b10)<0x0&&(_0x21bb79[_0x122b10]=_0x179bad[_0x122b10]);if(_0x179bad!=null&&typeof Object['getOwnPropertySymbols']==_0x7bd9c1(0x10d)){for(var _0x33a575=0x0,_0x122b10=Object[_0x7bd9c1(0x227)](_0x179bad);_0x33a575<_0x122b10[_0x7bd9c1(0xbe)];_0x33a575++)_0x4ee521[_0x7bd9c1(0x106)](_0x122b10[_0x33a575])<0x0&&Object['prototype'][_0x7bd9c1(0x1b1)][_0x7bd9c1(0x1b4)](_0x179bad,_0x122b10[_0x33a575])&&(_0x21bb79[_0x122b10[_0x33a575]]=_0x179bad[_0x122b10[_0x33a575]]);}return _0x21bb79;},pe=M[_0x314074(0x100)](function(_0x4bcaba,_0x2ac8d0){const _0x2f65a3=_0x314074;var _0x36791c=_0x4bcaba[_0x2f65a3(0x2e1)],_0x870abf=_0x4bcaba['id'],_0x5d2f4f=_0x4bcaba[_0x2f65a3(0xc1)],_0x15d63c=_0x4bcaba[_0x2f65a3(0x1aa)],_0x37f1b0=Tt(_0x4bcaba,[_0x2f65a3(0x2e1),'id',_0x2f65a3(0xc1),_0x2f65a3(0x1aa)]),_0x390eaa='univerjs-icon\x20univerjs-icon-'['concat'](_0x870abf,'\x20')[_0x2f65a3(0x242)](_0x5d2f4f||'')[_0x2f65a3(0x19c)](),_0x2fc5ed=M['useRef']('_'[_0x2f65a3(0x242)](Dt()));return we(_0x36791c,''[_0x2f65a3(0x242)](_0x870abf),{'defIds':_0x36791c[_0x2f65a3(0x23d)],'idSuffix':_0x2fc5ed[_0x2f65a3(0x96)]},E({'ref':_0x2ac8d0,'className':_0x390eaa},_0x37f1b0),_0x15d63c);});function we(_0x11ba73,_0x23600f,_0x49baf5,_0x424480,_0x54d3f7){const _0x2ced18=_0x314074;return M[_0x2ced18(0x184)](_0x11ba73[_0x2ced18(0x311)],E(E({'key':_0x23600f},Ot(_0x11ba73,_0x49baf5,_0x54d3f7)),_0x424480),(Rt(_0x11ba73,_0x49baf5)[_0x2ced18(0x248)]||[])[_0x2ced18(0xa5)](function(_0x1119d7,_0x98bd89){const _0x56e828=_0x2ced18;return we(_0x1119d7,''[_0x56e828(0x242)](_0x23600f,'-')[_0x56e828(0x242)](_0x11ba73[_0x56e828(0x311)],'-')['concat'](_0x98bd89),_0x49baf5,void 0x0,_0x54d3f7);}));}function Ot(_0x32cf8a,_0x82679,_0x4b1af7){const _0x2c569a=_0x314074;var _0x6e972b=E({},_0x32cf8a['attrs']);_0x4b1af7!=null&&_0x4b1af7[_0x2c569a(0x241)]&&_0x6e972b[_0x2c569a(0x123)]===_0x2c569a(0x241)&&(_0x6e972b[_0x2c569a(0x123)]=_0x4b1af7['colorChannel1']),_0x32cf8a[_0x2c569a(0x311)]===_0x2c569a(0x295)&&_0x6e972b['id']&&(_0x6e972b['id']=_0x6e972b['id']+_0x82679[_0x2c569a(0xc5)]),Object[_0x2c569a(0x18b)](_0x6e972b)[_0x2c569a(0x1ca)](function(_0x1f7591){const _0x5297e7=_0x2c569a;var _0xbb26bd=_0x1f7591[0x0],_0x2b6acd=_0x1f7591[0x1];_0xbb26bd===_0x5297e7(0x295)&&typeof _0x2b6acd==_0x5297e7(0x10c)&&(_0x6e972b[_0xbb26bd]=_0x2b6acd[_0x5297e7(0x101)](/url\(#(.*)\)/,_0x5297e7(0x18a)[_0x5297e7(0x242)](_0x82679[_0x5297e7(0xc5)],')')));});var _0x59372e=_0x82679['defIds'];return!_0x59372e||_0x59372e[_0x2c569a(0xbe)]===0x0||(_0x32cf8a[_0x2c569a(0x311)]==='use'&&_0x6e972b[_0x2c569a(0x225)]&&(_0x6e972b[_0x2c569a(0x225)]=_0x6e972b[_0x2c569a(0x225)]+_0x82679['idSuffix']),Object[_0x2c569a(0x18b)](_0x6e972b)[_0x2c569a(0x1ca)](function(_0x8c81f2){const _0x27b74e=_0x2c569a;var _0xcbf002=_0x8c81f2[0x0],_0x215470=_0x8c81f2[0x1];typeof _0x215470=='string'&&(_0x6e972b[_0xcbf002]=_0x215470[_0x27b74e(0x101)](/url\(#(.*)\)/,_0x27b74e(0x18a)[_0x27b74e(0x242)](_0x82679[_0x27b74e(0xc5)],')')));})),_0x6e972b;}function Rt(_0x1a8f07,_0x310730){const _0x8178d6=_0x314074;var _0x58eff7,_0x45bb53=_0x310730['defIds'];return!_0x45bb53||_0x45bb53[_0x8178d6(0xbe)]===0x0?_0x1a8f07:_0x1a8f07[_0x8178d6(0x311)]===_0x8178d6(0xec)&&(!((_0x58eff7=_0x1a8f07[_0x8178d6(0x248)])===null||_0x58eff7===void 0x0)&&_0x58eff7[_0x8178d6(0xbe)])?E(E({},_0x1a8f07),{'children':_0x1a8f07[_0x8178d6(0x248)]['map'](function(_0x5de26e){const _0x5f1406=_0x8178d6;return typeof _0x5de26e[_0x5f1406(0x300)]['id']==_0x5f1406(0x10c)&&_0x45bb53&&_0x45bb53[_0x5f1406(0x106)](_0x5de26e[_0x5f1406(0x300)]['id'])>-0x1?E(E({},_0x5de26e),{'attrs':E(E({},_0x5de26e[_0x5f1406(0x300)]),{'id':_0x5de26e[_0x5f1406(0x300)]['id']+_0x310730[_0x5f1406(0xc5)]})}):_0x5de26e;})}):_0x1a8f07;}function Dt(){const _0x18e291=_0x314074;return Math[_0x18e291(0x110)]()[_0x18e291(0x1bb)](0x24)[_0x18e291(0x187)](0x2,0x8);}pe['displayName']=_0x314074(0x190);var Ut={'tag':'svg','attrs':{'fill':_0x314074(0xe7),'viewBox':_0x314074(0x2ad),'width':_0x314074(0xe8),'height':_0x314074(0xe8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x314074(0x310),'attrs':{'stroke':_0x314074(0x107),'d':'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','strokeLinecap':_0x314074(0x24d),'strokeLinejoin':_0x314074(0x24d),'strokeWidth':1.2}}]},{'tag':_0x314074(0xec),'attrs':{},'children':[{'tag':_0x314074(0x2f2),'attrs':{'id':_0x314074(0x28c)},'children':[{'tag':_0x314074(0x310),'attrs':{'fill':_0x314074(0x15b),'d':_0x314074(0xfb)}}]}]}],'defIds':[_0x314074(0x28c)]},ye=M[_0x314074(0x100)](function(_0x554192,_0x59c338){const _0x2d6189=_0x314074;return M[_0x2d6189(0x184)](pe,Object['assign']({},_0x554192,{'id':'off-line-single','ref':_0x59c338,'icon':Ut}));});ye['displayName']='OffLineSingle';var Nt={'tag':'svg','attrs':{'fill':_0x314074(0xe7),'viewBox':_0x314074(0x128),'width':_0x314074(0xe8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x314074(0x2e0)},'children':[{'tag':_0x314074(0x310),'attrs':{'stroke':_0x314074(0x107),'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':_0x314074(0x24d),'strokeLinejoin':_0x314074(0x24d),'strokeWidth':1.2}}]},{'tag':_0x314074(0xec),'attrs':{},'children':[{'tag':_0x314074(0x2f2),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x314074(0x310),'attrs':{'fill':_0x314074(0x15b),'d':_0x314074(0xfb),'transform':_0x314074(0xf7)}}]}]}],'defIds':['on-line-single_clip0_910_349']},$e=M[_0x314074(0x100)](function(_0x285e1c,_0x300ef8){const _0x105f09=_0x314074;return M[_0x105f09(0x184)](pe,Object[_0x105f09(0x103)]({},_0x285e1c,{'id':_0x105f09(0x29c),'ref':_0x300ef8,'icon':Nt}));});$e[_0x314074(0xcd)]=_0x314074(0x132);function Mt(_0x329f60){const _0x5322d4=_0x314074;switch(_0x329f60){case u[_0x5322d4(0x21e)][_0x5322d4(0x127)]:return _0x5322d4(0x15c);case u[_0x5322d4(0x21e)][_0x5322d4(0x23b)]:return _0x5322d4(0x1cd);case u['CollaborationStatus'][_0x5322d4(0x274)]:return'collabStatus.fetchMiss';case u['CollaborationStatus'][_0x5322d4(0x2a1)]:return _0x5322d4(0x266);case u[_0x5322d4(0x21e)][_0x5322d4(0x10e)]:case u[_0x5322d4(0x21e)]['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u['CollaborationStatus'][_0x5322d4(0x1d7)]:case u[_0x5322d4(0x21e)][_0x5322d4(0x291)]:return _0x5322d4(0x276);}}function xe(_0x42b4b4){const _0x15dc4f=_0x314074,{status$:_0x4e9f6b}=_0x42b4b4,_0xc77cf6=T['useObservable'](_0x4e9f6b,u[_0x15dc4f(0x21e)]['NOT_COLLAB']),_0x3b1f0c=T[_0x15dc4f(0x2ee)](a[_0x15dc4f(0x1a9)]),_0x56520b=T[_0x15dc4f(0x2ee)](u[_0x15dc4f(0xbb)]),_0x3cb9fd=_0xc77cf6!==u[_0x15dc4f(0x21e)][_0x15dc4f(0x127)],_0x158e8c=_0x3b1f0c['t'](Mt(_0xc77cf6)),_0x6edcb3=_0x3cb9fd?P['jsx']($e,{}):P[_0x15dc4f(0x245)](ye,{}),_0x26f854=M[_0x15dc4f(0x2f3)](()=>{_0x3cb9fd||_0x56520b['reconnect']();},[_0x3cb9fd,_0x56520b]);function _0xa4fab8(){const _0x158a2a=_0x15dc4f;return P[_0x158a2a(0x246)](_0x158a2a(0x140),{'className':'univer-flex\x20univer-items-center','onClick':_0x26f854,'children':[P['jsx']('div',{'className':D[_0x158a2a(0x198)](_0x158a2a(0x2c3),{'univer-text-green-500':_0x3cb9fd,'univer-text-red-500':!_0x3cb9fd}),'children':_0x6edcb3}),P[_0x158a2a(0x245)](_0x158a2a(0x140),{'className':_0x158a2a(0x136),'children':_0x158e8c})]});}return _0x3cb9fd?_0xa4fab8():P['jsx'](D[_0x15dc4f(0x2f4)],{'title':_0x3b1f0c['t'](_0x15dc4f(0x2d4)),'children':_0xa4fab8()});}var Lt=Object[_0x314074(0xb7)],Pt=(_0x2d0f69,_0x10d62a,_0x48babb,_0x1ead71)=>{for(var _0x29a076=_0x1ead71>0x1?void 0x0:_0x1ead71?Lt(_0x10d62a,_0x48babb):_0x10d62a,_0x38baff=_0x2d0f69['length']-0x1,_0xb15ee;_0x38baff>=0x0;_0x38baff--)(_0xb15ee=_0x2d0f69[_0x38baff])&&(_0x29a076=_0xb15ee(_0x29a076)||_0x29a076);return _0x29a076;},V=(_0x49123b,_0x465271)=>(_0x3cf9e4,_0x31cabc)=>_0x465271(_0x3cf9e4,_0x31cabc,_0x49123b);exports[_0x314074(0x14e)]=class extends a['Disposable']{constructor(_0x107e0e,_0x270595,_0x2c57f9,_0x379620){const _0x49d1bf=_0x314074;super(),h(this,'_status$',new d['BehaviorSubject'](u[_0x49d1bf(0x21e)]['NOT_COLLAB'])),(this[_0x49d1bf(0x11f)]=_0x107e0e,this[_0x49d1bf(0x1cf)]=_0x270595,this[_0x49d1bf(0x159)]=_0x2c57f9,this[_0x49d1bf(0x217)]=_0x379620,this['_initStatusComponent'](),this[_0x49d1bf(0xff)]());}[_0x314074(0xff)](){const _0xf88e39=_0x314074;this['disposeWithMe'](this['_univerInstanceService']['focused$'][_0xf88e39(0xb2)](d[_0xf88e39(0x134)](()=>{const _0x18dd5a=_0xf88e39,_0x3a4048=this[_0x18dd5a(0x11f)][_0x18dd5a(0x28d)]();return _0x3a4048?this[_0x18dd5a(0x159)][_0x18dd5a(0xea)](_0x3a4048[_0x18dd5a(0x302)]()):d['of'](null);}),d[_0xf88e39(0x134)](_0x3a060e=>_0x3a060e?_0x3a060e[_0xf88e39(0xab)]:d['of'](u[_0xf88e39(0x21e)][_0xf88e39(0x2a1)])))[_0xf88e39(0x112)](_0x2bb983=>{const _0x5509c1=_0xf88e39;this[_0x5509c1(0x1dd)][_0x5509c1(0x13c)](_0x2bb983);}));}[_0x314074(0x9f)](){const _0x824967=_0x314074;this[_0x824967(0x2af)](this[_0x824967(0x217)][_0x824967(0xbf)](T[_0x824967(0x91)][_0x824967(0x16a)],()=>T['connectInjector'](At({'status$':this[_0x824967(0x1dd)][_0x824967(0x1e9)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a[_0x314074(0xb4)]),V(0x1,a[_0x314074(0x1d5)](a['Injector'])),V(0x2,a[_0x314074(0x1d5)](u[_0x314074(0xd8)])),V(0x3,T[_0x314074(0x122)])],exports['DesktopCollaborationStatusDisplayController']);function At(_0x280f02){const {status$:_0x1b7bfe}=_0x280f02;return function(){const _0x7ad94b=_0x391f;return P[_0x7ad94b(0x245)](xe,{'status$':_0x1b7bfe});};}var wt=Object[_0x314074(0xb7)],yt=(_0x15d1d2,_0x1316ac,_0x510a1e,_0x53c868)=>{const _0x71f7d2=_0x314074;for(var _0x204abb=_0x53c868>0x1?void 0x0:_0x53c868?wt(_0x1316ac,_0x510a1e):_0x1316ac,_0x104d47=_0x15d1d2[_0x71f7d2(0xbe)]-0x1,_0x44e7b7;_0x104d47>=0x0;_0x104d47--)(_0x44e7b7=_0x15d1d2[_0x104d47])&&(_0x204abb=_0x44e7b7(_0x204abb)||_0x204abb);return _0x204abb;},y=(_0x24ce85,_0x55dcb0)=>(_0x452ffa,_0x20b657)=>_0x55dcb0(_0x452ffa,_0x20b657,_0x24ce85);let q=class extends a[_0x314074(0x14a)]{constructor(_0xe73ab6,_0x1e247d,_0x308b3f,_0x2177d1,_0x27cb1c,_0x523184){const _0xc5732a=_0x314074;super(),this[_0xc5732a(0x1a5)]=_0xe73ab6,this[_0xc5732a(0x161)]=_0x1e247d,this[_0xc5732a(0x296)]=_0x308b3f,this[_0xc5732a(0x119)]=_0x2177d1,this[_0xc5732a(0x13a)]=_0x27cb1c,this[_0xc5732a(0x166)]=_0x523184,this[_0xc5732a(0x2ca)](),this['_initEvent']();}[_0x314074(0x2ca)](){const _0x114f19=_0x314074;this[_0x114f19(0x2af)](this[_0x114f19(0x1a5)][_0x114f19(0x16c)](()=>{const _0x3a22a8=_0x114f19;if(this[_0x3a22a8(0x161)]['saveTaskMap'][_0x3a22a8(0x152)])return this['_localeService']['t'](_0x3a22a8(0x1c7));}));}[_0x314074(0xca)](){const _0x40dbec=_0x314074;this[_0x40dbec(0x2af)](this[_0x40dbec(0x296)]['event$'][_0x40dbec(0x112)](_0x7864b0=>{const _0xfb925b=_0x40dbec;_0x7864b0['id']===u[_0xfb925b(0x1f8)]['OTHER_CLIENT_EDITING']&&this[_0xfb925b(0x119)][_0xfb925b(0x277)]({'type':D[_0xfb925b(0xc9)][_0xfb925b(0xf4)],'content':this[_0xfb925b(0x166)]['t'](_0xfb925b(0x28e))}),_0x7864b0['id']===u['CollaborationUIEventId'][_0xfb925b(0x1b0)]&&this[_0xfb925b(0x119)][_0xfb925b(0x277)]({'type':D[_0xfb925b(0xc9)][_0xfb925b(0xf4)],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x7864b0['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this['_notificationService'][_0xfb925b(0x277)]({'title':this['_localeService']['t'](_0xfb925b(0xf6)),'content':this[_0xfb925b(0x166)]['t']('permission.content'),'type':'error','duration':0x0}),_0x7864b0['id']===u[_0xfb925b(0x1f8)]['CONFLICT']&&this[_0xfb925b(0x119)][_0xfb925b(0x277)]({'type':D[_0xfb925b(0xc9)]['Error'],'content':this[_0xfb925b(0x166)]['t'](_0xfb925b(0x2f6))+'('+_0x7864b0[_0xfb925b(0xd1)]+')'}),_0x7864b0['id']===u[_0xfb925b(0x1f8)]['JOIN_ROOM_FAILED']&&this[_0xfb925b(0x119)]['show']({'type':D['MessageType']['Warning'],'content':this[_0xfb925b(0x166)]['t'](_0x7864b0['data']||'')}),_0x7864b0['id']===u[_0xfb925b(0x1f8)]['SOCKET_FAILED_RETRY']&&this[_0xfb925b(0x119)][_0xfb925b(0x277)]({'type':D[_0xfb925b(0xc9)][_0xfb925b(0xf4)],'content':this[_0xfb925b(0x166)]['t'](_0xfb925b(0x1a6))}),_0x7864b0['id']===u[_0xfb925b(0x1f8)][_0xfb925b(0x1d2)]&&this['_messageService'][_0xfb925b(0x277)]({'type':D[_0xfb925b(0xc9)][_0xfb925b(0x9a)],'content':this[_0xfb925b(0x166)]['t'](_0xfb925b(0x304))}),_0x7864b0['id']===u[_0xfb925b(0x1f8)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0xfb925b(0x119)][_0xfb925b(0x277)]({'type':D[_0xfb925b(0xc9)]['Error'],'content':this[_0xfb925b(0x166)]['t'](_0xfb925b(0x303))});}));}};q=yt([y(0x0,T[_0x314074(0x153)]),y(0x1,u[_0x314074(0x139)]),y(0x2,a['Inject'](u[_0x314074(0x1d4)])),y(0x3,T['IMessageService']),y(0x4,T['INotificationService']),y(0x5,a[_0x314074(0x1d5)](a[_0x314074(0x1a9)]))],q);const $t=_0x314074(0x2a8),Ue={},be=a[_0x314074(0x29d)]('uni.network.url-service');var xt=Object[_0x314074(0xb7)],jt=(_0x3845bb,_0x5e8c11,_0x40e376,_0x1e6ef8)=>{const _0x440846=_0x314074;for(var _0xfc93bd=_0x1e6ef8>0x1?void 0x0:_0x1e6ef8?xt(_0x5e8c11,_0x40e376):_0x5e8c11,_0x91d20a=_0x3845bb[_0x440846(0xbe)]-0x1,_0x201fd9;_0x91d20a>=0x0;_0x91d20a--)(_0x201fd9=_0x3845bb[_0x91d20a])&&(_0xfc93bd=_0x201fd9(_0xfc93bd)||_0xfc93bd);return _0xfc93bd;},H=(_0x1c7073,_0x527387)=>(_0xc7a9fc,_0x34232b)=>_0x527387(_0xc7a9fc,_0x34232b,_0x1c7073);exports[_0x314074(0x202)]=class extends a['RxDisposable']{constructor(_0x53f8b1,_0x16e5f6,_0x42a725,_0x3159a8,_0x3b0c30){const _0x3ab622=_0x314074;super(),this[_0x3ab622(0x95)]=_0x53f8b1,this['_logService']=_0x16e5f6,this[_0x3ab622(0x135)]=_0x42a725,this[_0x3ab622(0x27f)]=_0x3159a8,_0x3b0c30?_0x3b0c30==null||_0x3b0c30[_0x3ab622(0x11a)]()['then'](()=>this[_0x3ab622(0x121)]()):(this[_0x3ab622(0x19f)][_0x3ab622(0xe2)](_0x3ab622(0xbd),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x3ab622(0x121)]());}async[_0x314074(0x121)](){const _0x5efa26=_0x314074,_0x32561b=this['_urlService'][_0x5efa26(0x10f)](_0x5efa26(0x10a)),_0x544ca4=this[_0x5efa26(0x95)]['getParam']('type'),_0xc83d2a=this[_0x5efa26(0x95)]['getParam']('subunit');if(!_0x32561b||!_0x544ca4){this['_logService'][_0x5efa26(0xe2)](_0x5efa26(0xbd),_0x5efa26(0x25f));return;}const _0xb0a925=await this['_dataLoaderService']['loadUnit'](_0x32561b,Number(_0x544ca4),_0xc83d2a);_0xb0a925&&_0xb0a925 instanceof a['Workbook']&&this[_0x5efa26(0x163)](_0xb0a925);}async[_0x314074(0x163)](_0x165eb3){const _0x1486aa=_0x314074;await this[_0x1486aa(0x174)](_0x165eb3),_0x165eb3[_0x1486aa(0x2da)][_0x1486aa(0xb2)](d[_0x1486aa(0x1b7)](this[_0x1486aa(0xd2)]))[_0x1486aa(0x112)](_0x1377cb=>{_0x1377cb&&this['_updateURLWithCurrentState'](_0x1377cb);}),this['_urlService'][_0x1486aa(0x2b8)][_0x1486aa(0xb2)](d[_0x1486aa(0x1b7)](this[_0x1486aa(0xd2)]))['subscribe'](()=>this[_0x1486aa(0x174)](_0x165eb3));}[_0x314074(0xa4)](_0x14fb57,_0x521026=!0x1){const _0xc9119e=_0x314074,_0x18f928=this[_0xc9119e(0x95)][_0xc9119e(0x10f)](_0xc9119e(0x2b1));_0x14fb57[_0xc9119e(0xdc)]()!==_0x18f928&&this[_0xc9119e(0x95)][_0xc9119e(0xaa)](_0xc9119e(0x2b1),_0x14fb57[_0xc9119e(0xdc)](),_0x521026);}async[_0x314074(0x174)](_0x4d272c){const _0x515ac1=_0x314074;var _0x7177ff;const _0x338d55=this[_0x515ac1(0x95)][_0x515ac1(0x10f)](_0x515ac1(0x2b1));if(!_0x338d55||!_0x4d272c[_0x515ac1(0x205)](_0x338d55)){const _0x396b53=_0x4d272c[_0x515ac1(0x1db)]()[0x0],_0x2b1571=_0x4d272c[_0x515ac1(0x205)](_0x396b53);if(!_0x2b1571)return;this[_0x515ac1(0xa4)](_0x2b1571,!0x0),await this['_commandService']['executeCommand'](g[_0x515ac1(0x1ed)]['id'],{'unitId':_0x4d272c[_0x515ac1(0x302)](),'subUnitId':_0x396b53});return;}((_0x7177ff=_0x4d272c[_0x515ac1(0x2d1)]())==null?void 0x0:_0x7177ff[_0x515ac1(0xdc)]())!==_0x338d55&&await this[_0x515ac1(0x135)][_0x515ac1(0x2d8)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x4d272c['getUnitId'](),'subUnitId':_0x338d55});}},exports[_0x314074(0x202)]=jt([H(0x0,be),H(0x1,a[_0x314074(0x15a)]),H(0x2,a[_0x314074(0x94)]),H(0x3,a[_0x314074(0x1d5)](u['DataLoaderService'])),H(0x4,a[_0x314074(0x194)](Ke[_0x314074(0x2b4)]))],exports['CollaborationDataLoaderController']);var Bt=Object[_0x314074(0xb7)],kt=(_0x7957ec,_0x1652a0,_0x3a7408,_0x7bfb2)=>{const _0x59a1b2=_0x314074;for(var _0x3667aa=_0x7bfb2>0x1?void 0x0:_0x7bfb2?Bt(_0x1652a0,_0x3a7408):_0x1652a0,_0x18d816=_0x7957ec[_0x59a1b2(0xbe)]-0x1,_0x555dc7;_0x18d816>=0x0;_0x18d816--)(_0x555dc7=_0x7957ec[_0x18d816])&&(_0x3667aa=_0x555dc7(_0x3667aa)||_0x3667aa);return _0x3667aa;},ce=(_0x4381c1,_0x23515d)=>(_0x4deee2,_0x585dfe)=>_0x23515d(_0x4deee2,_0x585dfe,_0x4381c1);let z=class{constructor(_0x119cf8,_0x2148c5,_0x1c2ad3){const _0x1a5622=_0x314074;this[_0x1a5622(0x1cf)]=_0x119cf8,this[_0x1a5622(0x231)]=_0x2148c5,this[_0x1a5622(0xe1)]=_0x1c2ad3;}['transformIMECache'](_0x5646cc){const _0x4ecfed=_0x314074;this[_0x4ecfed(0x22a)](_0x5646cc),this['_transformPreviousActiveRange'](_0x5646cc);}[_0x314074(0x1c0)](_0x52f2d6){const _0x3b3b8d=_0x314074,{unitID:_0x4f1430}=_0x52f2d6,_0x2dadb3=this[_0x3b3b8d(0xe1)][_0x3b3b8d(0x17d)](_0x4f1430)[_0x3b3b8d(0xaf)](b['DocIMEInputManagerService']),{redoCache:_0x41d5a0}=_0x2dadb3[_0x3b3b8d(0x208)]();if(_0x41d5a0[_0x3b3b8d(0xbe)]===0x0)return _0x52f2d6;let _0x22c093=a['Tools'][_0x3b3b8d(0x172)](_0x52f2d6['mutations'][0x0]);for(let _0x4b595e=0x0;_0x4b595e<_0x41d5a0[_0x3b3b8d(0xbe)];_0x4b595e++){const _0x593318={'id':_0x3b3b8d(0x178),'params':{..._0x41d5a0[_0x4b595e]}},_0x54fc4b=this['_transformService']['transformMutation'](_0x22c093,_0x593318,!0x1);if(m[_0x3b3b8d(0x2fc)](_0x54fc4b))throw _0x54fc4b[_0x3b3b8d(0x2b5)];_0x22c093=_0x54fc4b['m1Prime'];}return{...a[_0x3b3b8d(0x144)][_0x3b3b8d(0x172)](_0x52f2d6),'mutations':[_0x22c093]};}[_0x314074(0x22a)](_0x521172){const _0x1de1e8=_0x314074,{unitID:_0x411b9e}=_0x521172,_0x307e11=this[_0x1de1e8(0xe1)][_0x1de1e8(0x17d)](_0x411b9e)[_0x1de1e8(0xaf)](b[_0x1de1e8(0xdb)]),{undoCache:_0x30245f,redoCache:_0x3aac8f}=_0x307e11[_0x1de1e8(0x208)]();if(_0x30245f[_0x1de1e8(0xbe)]===0x0||_0x3aac8f['length']===0x0)return;const _0x1fea42=[],_0x169c61=[];let _0x15cadd=a[_0x1de1e8(0x144)]['deepClone'](_0x521172[_0x1de1e8(0x26b)][0x0]),_0x50b90c=a[_0x1de1e8(0x144)][_0x1de1e8(0x172)](_0x521172[_0x1de1e8(0x26b)][0x0]);for(let _0x1f31e3=_0x30245f[_0x1de1e8(0xbe)]-0x1;_0x1f31e3>=0x0;_0x1f31e3--){const _0x1f0708={'id':_0x1de1e8(0x178),'params':{..._0x30245f[_0x1f31e3]}},_0x1d46cf={'id':_0x1de1e8(0x178),'params':{..._0x3aac8f[_0x1f31e3]}},_0x2db867=this[_0x1de1e8(0x231)]['transformMutation'](_0x15cadd,_0x1f0708,!0x1),_0x4ae426=this[_0x1de1e8(0x231)][_0x1de1e8(0x1a8)](_0x50b90c,_0x1d46cf,!0x1);if(m[_0x1de1e8(0x2fc)](_0x2db867))throw _0x2db867[_0x1de1e8(0x2b5)];if(m[_0x1de1e8(0x2fc)](_0x4ae426))throw _0x4ae426['error'];_0x1fea42[_0x1de1e8(0x2bd)](_0x2db867[_0x1de1e8(0x2e4)][_0x1de1e8(0x239)]),_0x169c61[_0x1de1e8(0x2bd)](_0x4ae426[_0x1de1e8(0x2e4)][_0x1de1e8(0x239)]),_0x15cadd=_0x2db867[_0x1de1e8(0x2fa)],_0x50b90c=_0x4ae426[_0x1de1e8(0x2fa)];}_0x307e11[_0x1de1e8(0x12f)]({'undoCache':_0x1fea42,'redoCache':_0x169c61});}[_0x314074(0x17b)](_0x570fe6){const _0x254661=_0x314074,{unitID:_0x10d816}=_0x570fe6,_0x255b7d=this[_0x254661(0xe1)][_0x254661(0x17d)](_0x10d816)[_0x254661(0xaf)](b['DocIMEInputManagerService']),_0x7578da=_0x255b7d[_0x254661(0x26c)]();if(_0x7578da==null)return;const _0x163cdb=[{'id':_0x254661(0x178),'params':{'unitId':_0x570fe6['unitID'],'actions':null,'textRanges':[_0x7578da]}}],_0x397335=this[_0x254661(0x231)][_0x254661(0x92)](_0x570fe6,_0x163cdb);if(!m[_0x254661(0x1cc)](_0x397335))throw _0x397335['error'];const _0x19a9d3=_0x397335[_0x254661(0x2e4)][0x0]['params']['textRanges'];Array[_0x254661(0x2ab)](_0x19a9d3)&&_0x19a9d3['length']&&_0x255b7d[_0x254661(0x216)](_0x19a9d3[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0x314074(0x108)])),ce(0x1,m[_0x314074(0x131)]),ce(0x2,p[_0x314074(0xfa)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x4521a3,_0x5db84f,_0x344174,_0x2c31bd)=>{for(var _0x345223=_0x2c31bd>0x1?void 0x0:_0x2c31bd?Ht(_0x5db84f,_0x344174):_0x5db84f,_0x5003ab=_0x4521a3['length']-0x1,_0x5eb419;_0x5003ab>=0x0;_0x5003ab--)(_0x5eb419=_0x4521a3[_0x5003ab])&&(_0x345223=_0x5eb419(_0x345223)||_0x345223);return _0x345223;},le=(_0x2bcc12,_0x215732)=>(_0x432ce7,_0x68463c)=>_0x215732(_0x432ce7,_0x68463c,_0x2bcc12);let J=class{constructor(_0x5cf17e,_0x5b2e08,_0x5a1cad){const _0x5e212e=_0x314074;this[_0x5e212e(0x1cf)]=_0x5cf17e,this[_0x5e212e(0x231)]=_0x5b2e08,this[_0x5e212e(0x195)]=_0x5a1cad;}[_0x314074(0x309)](_0x20a656){const _0x4fc910=_0x314074;this[_0x4fc910(0x146)](_0x20a656);}[_0x314074(0x1c0)](_0xba733c){const _0x12eb7c=_0x314074,{unitID:_0x690ad1}=_0xba733c,{collaboration:_0x1ac3ec}=this['_docStateChangeManagerService'][_0x12eb7c(0x244)](_0x690ad1);if(_0x1ac3ec['length']===0x0)return _0xba733c;let _0x284a68=a[_0x12eb7c(0x144)][_0x12eb7c(0x172)](_0xba733c[_0x12eb7c(0x26b)][0x0]);for(let _0x5dcf35=0x0;_0x5dcf35<_0x1ac3ec[_0x12eb7c(0xbe)];_0x5dcf35++){const _0x49b3ea={'id':_0x12eb7c(0x178),'params':{'unitId':_0x1ac3ec[_0x5dcf35][_0x12eb7c(0xe4)],..._0x1ac3ec[_0x5dcf35][_0x12eb7c(0x25e)]}},_0x4b0496=this['_transformService'][_0x12eb7c(0x1a8)](_0x284a68,_0x49b3ea,!0x1);if(m['isTransformMutationFailure'](_0x4b0496))throw _0x4b0496[_0x12eb7c(0x2b5)];_0x284a68=_0x4b0496['m1Prime'];}return{...a[_0x12eb7c(0x144)][_0x12eb7c(0x172)](_0xba733c),'mutations':[_0x284a68]};}[_0x314074(0x146)](_0x10feb4){const _0x2be0f1=_0x314074,{unitID:_0x56b2d7}=_0x10feb4,{history:_0x55d545,collaboration:_0x382a14}=this[_0x2be0f1(0x195)][_0x2be0f1(0x244)](_0x56b2d7);if(_0x55d545[_0x2be0f1(0xbe)]===0x0&&_0x382a14[_0x2be0f1(0xbe)]===0x0)return;const _0x5a8081=[],_0x31bfbb=[];let _0x1bc3c4=a[_0x2be0f1(0x144)][_0x2be0f1(0x172)](_0x10feb4[_0x2be0f1(0x26b)][0x0]),_0x4f3c1d=a[_0x2be0f1(0x144)][_0x2be0f1(0x172)](_0x10feb4[_0x2be0f1(0x26b)][0x0]);for(let _0x25c797=_0x55d545['length']-0x1;_0x25c797>=0x0;_0x25c797--){const _0x2f691c={'id':_0x2be0f1(0x178),'params':{'unitId':_0x55d545[_0x25c797]['unitId'],..._0x55d545[_0x25c797]['undoState']}},_0x51e4c3={'id':_0x2be0f1(0x178),'params':{'unitId':_0x55d545[_0x25c797][_0x2be0f1(0xe4)],..._0x55d545[_0x25c797]['redoState']}},_0x3c8930=this[_0x2be0f1(0x231)][_0x2be0f1(0x1a8)](_0x1bc3c4,_0x2f691c,!0x1),_0x2236c7=this[_0x2be0f1(0x231)][_0x2be0f1(0x1a8)](_0x4f3c1d,_0x51e4c3,!0x1);if(m[_0x2be0f1(0x2fc)](_0x3c8930))throw _0x3c8930[_0x2be0f1(0x2b5)];if(m[_0x2be0f1(0x2fc)](_0x2236c7))throw _0x2236c7[_0x2be0f1(0x2b5)];_0x5a8081[_0x2be0f1(0x2bd)]({..._0x55d545[_0x25c797],'undoState':_0x3c8930[_0x2be0f1(0x2e4)][_0x2be0f1(0x239)],'redoState':_0x2236c7[_0x2be0f1(0x2e4)][_0x2be0f1(0x239)]}),_0x1bc3c4=_0x3c8930[_0x2be0f1(0x2fa)],_0x4f3c1d=_0x2236c7[_0x2be0f1(0x2fa)];}_0x1bc3c4=a[_0x2be0f1(0x144)][_0x2be0f1(0x172)](_0x10feb4[_0x2be0f1(0x26b)][0x0]),_0x4f3c1d=a[_0x2be0f1(0x144)][_0x2be0f1(0x172)](_0x10feb4[_0x2be0f1(0x26b)][0x0]);for(let _0xef8a47=_0x382a14['length']-0x1;_0xef8a47>=0x0;_0xef8a47--){const _0x20e799={'id':_0x2be0f1(0x178),'params':{'unitId':_0x382a14[_0xef8a47][_0x2be0f1(0xe4)],..._0x382a14[_0xef8a47][_0x2be0f1(0x29e)]}},_0x57ade4={'id':_0x2be0f1(0x178),'params':{'unitId':_0x382a14[_0xef8a47]['unitId'],..._0x382a14[_0xef8a47][_0x2be0f1(0x25e)]}},_0x1aff11=this[_0x2be0f1(0x231)][_0x2be0f1(0x1a8)](_0x1bc3c4,_0x20e799,!0x1),_0x24c93d=this[_0x2be0f1(0x231)][_0x2be0f1(0x1a8)](_0x4f3c1d,_0x57ade4,!0x1);if(m['isTransformMutationFailure'](_0x1aff11))throw _0x1aff11['error'];if(m[_0x2be0f1(0x2fc)](_0x24c93d))throw _0x24c93d['error'];_0x31bfbb[_0x2be0f1(0x2bd)]({..._0x382a14[_0xef8a47],'undoState':_0x1aff11[_0x2be0f1(0x2e4)][_0x2be0f1(0x239)],'redoState':_0x24c93d[_0x2be0f1(0x2e4)]['params']}),_0x1bc3c4=_0x1aff11[_0x2be0f1(0x2fa)],_0x4f3c1d=_0x24c93d['m1Prime'];}this[_0x2be0f1(0x195)][_0x2be0f1(0x20f)](_0x56b2d7,{'history':_0x5a8081,'collaboration':_0x31bfbb});}};J=Ft([le(0x0,a[_0x314074(0x1d5)](a[_0x314074(0x108)])),le(0x1,m['ITransformService']),le(0x2,a['Inject'](b[_0x314074(0x111)]))],J);var Yt=Object[_0x314074(0xb7)],Wt=(_0x3b07ae,_0x130ab5,_0x16baa9,_0x9aad0d)=>{const _0x492ef0=_0x314074;for(var _0x4430c6=_0x9aad0d>0x1?void 0x0:_0x9aad0d?Yt(_0x130ab5,_0x16baa9):_0x130ab5,_0x112d23=_0x3b07ae[_0x492ef0(0xbe)]-0x1,_0x4b0759;_0x112d23>=0x0;_0x112d23--)(_0x4b0759=_0x3b07ae[_0x112d23])&&(_0x4430c6=_0x4b0759(_0x4430c6)||_0x4430c6);return _0x4430c6;},Ne=(_0x5dd9aa,_0x5ec105)=>(_0x4d70ae,_0x247e8b)=>_0x5ec105(_0x4d70ae,_0x247e8b,_0x5dd9aa);let Z=class{constructor(_0x3f43fd,_0x3a36c9){const _0x2d75cd=_0x314074;this[_0x2d75cd(0x1cf)]=_0x3f43fd,this[_0x2d75cd(0x231)]=_0x3a36c9;}[_0x314074(0xa1)](_0x55e8c7){const _0x7050ca=_0x314074;var _0x3c62ef;const _0x3c6ed4=this[_0x7050ca(0x1cf)][_0x7050ca(0x176)](Y[_0x7050ca(0x2aa)]),_0x443dd6=(_0x3c62ef=_0x3c6ed4['getDocRanges']())!=null?_0x3c62ef:[];if(_0x443dd6['length']===0x0)return;const _0x19fb79=_0x55e8c7[_0x7050ca(0x1b9)],_0x3d10ff=[{'id':_0x7050ca(0x178),'params':{'unitId':_0x19fb79,'actions':null,'textRanges':_0x443dd6}}],_0x1ef3ce=this[_0x7050ca(0x231)][_0x7050ca(0x92)](_0x55e8c7,_0x3d10ff);if(!m[_0x7050ca(0x1cc)](_0x1ef3ce))throw _0x1ef3ce[_0x7050ca(0x2b5)];const _0x3f7a54=_0x1ef3ce[_0x7050ca(0x2e4)][0x0]['params']['textRanges'];Array[_0x7050ca(0x2ab)](_0x3f7a54)&&_0x3f7a54[_0x7050ca(0xbe)]&&_0x3c6ed4[_0x7050ca(0x30b)](_0x3f7a54,{'unitId':_0x19fb79,'subUnitId':_0x19fb79},!0x1);}};Z=Wt([Ne(0x0,a[_0x314074(0x1d5)](a['Injector'])),Ne(0x1,m[_0x314074(0x131)])],Z);var Vt=Object[_0x314074(0xb7)],Xt=(_0x2b3d08,_0x242bc1,_0x6872d2,_0x3be226)=>{const _0x3e8df=_0x314074;for(var _0x1c52de=_0x3be226>0x1?void 0x0:_0x3be226?Vt(_0x242bc1,_0x6872d2):_0x242bc1,_0x1f9cc9=_0x2b3d08[_0x3e8df(0xbe)]-0x1,_0x3485e4;_0x1f9cc9>=0x0;_0x1f9cc9--)(_0x3485e4=_0x2b3d08[_0x1f9cc9])&&(_0x1c52de=_0x3485e4(_0x1c52de)||_0x1c52de);return _0x1c52de;},N=(_0x4da38b,_0x2b8f35)=>(_0x548f11,_0x97536f)=>_0x2b8f35(_0x548f11,_0x97536f,_0x4da38b);let Q=class extends a[_0x314074(0x14a)]{constructor(_0x485bf5,_0x2dbe1f,_0x27e5c8,_0x5cf116,_0x565f77,_0xf83a93,_0x18ac2e,_0x5c8cce){const _0x197d39=_0x314074;super(),h(this,_0x197d39(0x1dd),new d[(_0x197d39(0x1b3))](u[_0x197d39(0x21e)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x485bf5,this[_0x197d39(0x159)]=_0x2dbe1f,this['_docTransformIMECacheService']=_0x27e5c8,this[_0x197d39(0x255)]=_0x5cf116,this[_0x197d39(0xeb)]=_0x565f77,this['_docSyncEditingCollabCursorService']=_0xf83a93,this[_0x197d39(0x119)]=_0x18ac2e,this[_0x197d39(0x166)]=_0x5c8cce,this[_0x197d39(0x1c5)]());}[_0x314074(0x1c5)](){const _0x5dd898=_0x314074;this[_0x5dd898(0x2af)](this[_0x5dd898(0x159)][_0x5dd898(0xee)]['subscribe'](_0x2afae3=>{const _0x15802c=_0x5dd898,_0x46b84b=this[_0x15802c(0x195)][_0x15802c(0xce)][_0x15802c(0x112)](_0x18bdf6=>{const _0xb9814c=_0x15802c;if(_0x18bdf6==null)return;const {unitId:_0x326a40,redoState:_0x4c910d,commandId:_0x540afc}=_0x18bdf6;if(_0x326a40!==_0x2afae3[_0xb9814c(0x1b9)])return;const _0x3e37af={'id':_0x540afc,'type':a[_0xb9814c(0x2df)]['MUTATION'],'params':{'unitId':_0x326a40,'actions':_0x4c910d[_0xb9814c(0x1ba)],'textRanges':null}};_0x2afae3[_0xb9814c(0xc3)](_0x3e37af);});if(_0x2afae3[_0x15802c(0x2af)](_0x46b84b),_0x2afae3 instanceof u[_0x15802c(0xd5)]){const _0xe59bf3={'onTransformIME':_0x1d4b2d=>this[_0x15802c(0x2c5)][_0x15802c(0x13d)](_0x1d4b2d),'onTransformState':_0x5c3db2=>this[_0x15802c(0x255)][_0x15802c(0x309)](_0x5c3db2),'onTransformSelections':_0x296c96=>this[_0x15802c(0xeb)][_0x15802c(0xa1)](_0x296c96),'onSyncEditingCollabCursor':_0x54fd44=>this[_0x15802c(0xde)][_0x15802c(0x186)](_0x54fd44),'onTransformRemoteChangesetByIMECache':_0x18b58d=>this[_0x15802c(0x2c5)]['transformRemoteChangeset'](_0x18b58d),'onTransformRemoteChangesetByStateCache':_0xb6f35=>this[_0x15802c(0x255)]['transformRemoteChangeset'](_0xb6f35)};_0x2afae3[_0x15802c(0xa6)](_0xe59bf3);}}));}};function _0x34cf(){const _0x1c308a=['onPointerMove$','_toggleOffline','_cursorShapes','CLOSE_ROOM','propertyIsEnumerable','makeDirty','BehaviorSubject','call','_handleHover','_color','takeUntil','_handleLeaveEvent','unitID','actions','toString','set','saveTaskMap','handleDeleteRangeMoveLeft','InsertRangeMoveRightCommandId','transformRemoteChangeset','includes','UNIVER_DOC','handleInsertRangeMoveDown','LICENSE_EXPORT_SIZE_EXCEEDED','_initEntityListener','2291964xTpsha','collaboration-client.offline-data-not-saved','backgroundColor','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','forEach','editingUnit','isTransformMutationsWithChangesetSuccess','collabStatus.conflict','_themeService','_injector','selection','width','SOCKET_FAILED','_onCursorUpdate','CollaborationUIEventService','Inject','_name','SYNCED','_document','origin','682746ZLechC','getUnhiddenWorksheets','onPointerLeave$','_status$','PERMISSION_DENIED','SheetSkeletonManagerService','_scheduleHeartbeat','_getSheetObject','InsertRowCommandId','_drawTextRange','blue.400','HTTPService','fillStyle','searchParams','TOO_MANY_REQUESTS','asObservable','popstate','_cursorInfo$','DeleteRangeMoveLeftCommandId','SetWorksheetActivateCommand','LICENSE_MAX_UNITS_EXCEEDED','from','code','getTypeOfUnitAdded$','application/json','COLORS','512xYGJTC','NOT_FOUND','_cursor','fillRule','CollaborationUIEventId','parse','push','complete','_shapes','UNRECOGNIZED','RECT','min','ISocketService','@univerjs/network','CollaborationDataLoaderController','collabCursorState$','mapTo','getSheetBySheetId','VIEW_MAIN','href','getUndoRedoMutationParamsCache','INTERNAL_ERROR','executionId','getRelativeToViewportCoord','rgba(255,\x20255,\x20255,\x200.01)','_getSessionTicket','YUUMI_NO_CUBOID_FOR_QUESTION','setStateCache','UniverCollaborationClientPlugin','_backgroundColor','_session','getUnitStatus$','@univerjs/drawing','getCurrentSelections','setActiveRange','_uiPartsService','dispose','_entityInit$','getSheetObject','removeParam','getCurrentRevOfUnit','LICENSE_IMPORT_SIZE_EXCEEDED','CollaborationStatus','onTransformChange$','_configService','@univerjs/ui','CHANGESET_REVISION_CONFILICT','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_initCommandExecutedListener','xlink:href','CollaborationEvent','getOwnPropertySymbols','2183146ScVfGH','getColor','_transformUndoRedoStack','_doCreateSocket','YUUMI_ASYNCIO_CANCELLED','INVALID_ARGUMENT','debounceTime','@univerjs/sheets','ACTIVE_UNIT_EVENT_CHANNEL','_transformService','getItem','_drawRectRange','subscribeEvent','flatMap','Vector2','RevisionService','Shape','params','@univerjs-pro/collaboration-client','CONFLICT','transformByState','defIds','_anchor','_colorAssignService','isActive','colorChannel1','concat','evenodd','getStateCache','jsx','jsxs','YUUMI_TABLE_NOT_FOUND_IN_UNIT','children','3417660bEHKpm','add','roomMembers$','_onCursorDelete','round','_assignedColors','setAlpha','endColumn','29354110HFwLFR','DOC_RANGE_TYPE','_drawAnchor','LICENSE_DISTRO_REJECTED','_docTransformStateCacheService','unsubscribe','_revisionService','_range','SetTextSelectionsOperation','_getMergeRange','_initDependencies','onStarting','row','redoState','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','location','_online','arc','RemoveColCommandId','_updateLocalCursor','collabStatus.notCollab','init','transform','type','_sheetSkeletonManagerService','mutations','getActiveRange','skeleton','LOCAL_CACHE_INTERVAL','13986EpiavJ','body','_entities','_saveTaskMap','UniverInstanceType','FETCH_MISS','APPLY_NON_SEQUENTIAL_REVISION','collabStatus.synced','show','stringify','touchDependencies','Failed','UNDEFINED','YUUMI_RATE_OVER_LIMIT','disableLocalCache','getCurrentUnitForType','_dataLoaderService','getConfig','ENSURE_SNAPSHOT_EXECUTION','TEXT','_eventUnsubscribe','runId','send','USERS_LEAVE','WebBrowserSingleActiveUnitService','clearTimeout','distinctUntilChanged','hide','SetDocZoomRatioOperation','off-line-single_clip0_910_343','getFocusedUnit','collaboration.single-unit.warning','_refRangeService','handleInsertRow','PENDING','IDocClipboardService','newValue','TEXT_RANGE_LAYER_INDEX','mask','_collaborationUIEventService','throttleTime','onCommandExecuted','_startSheetCollabCursor','getCoordByCell','@univerjs/design','on-line-single','createIdentifier','undoState','Rect','defineProperty','NOT_COLLAB','hovered','handleInsertRangeMoveRight','_imageIoService','rxjs/operators','saveOfflineData','_scheduleClearOtherTimer','collaboration-client-ui.config','ranges','DocSelectionManagerService','isArray','_handleEvent','0\x200\x2016\x2016','getTypeOfUnitDisposed$','disposeWithMe','NO_OTHER_CLIENTS_EDITING','subunit','_scheduleSaving','@univerjs/rpc','IRemoteInstanceService','error','YUUMI_URL_COL_OUT_OF_RANGE','override','urlChange$','_textBubble','#FFF','getCollabCursors$','collab-rect-range-','unshift','color','toRgbString','RefRangeService','createInstance','CollaborationSocketService','univer-flex\x20univer-mr-2\x20univer-text-xl','EMAIL_HAS_BEEN_BOUND','_docTransformIMECacheService','DocSkeletonManagerService','setShapeProps','setConfig','replaceState','_setupBeforeClosingHandler','ILocalStorageService','5uTAZit','_selfUnitIDs','addObject','MoveRangeCommandId','_handleHeartbeatEvent','getActiveSheet','NodePositionConvertToRectRange','RichTextEditingMutation','collab-client.tooltip.reconnect','_send','DEFAULT_WS_SESSION_TICKET_URL','_hover','executeCommand','all','activeSheet$','_toggleOnline','ONLINE','_collabCursorState$','engine','CommandType','url(#on-line-single_clip0_910_349)','icon','fromEventSubject','addEventListener','m2Prime','handleIRemoveCol','bottom','purple.300','getLocalCacheKey','height','Unknown\x20user','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_colorIndex','_registerDependencies','useDependency','_memberService','_registerRenderDependencies','@univerjs/sheets-ui','clipPath','useCallback','Tooltip','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','collaboration.closeRoom','toDisposable','name','red.300','m1Prime','combineLatest','isTransformMutationFailure','values','textRanges','_syncEditingCollabCursorService','attrs','[RemoteUniscriptService]:\x20no\x20focused\x20unit','getUnitId','session.collaboration-timeout','session.connection-failed','RemoteUniscriptService','createSocket','_scene','enableLocalCache','transformStateCache','SheetsSelectionsService','replaceDocRanges','_context','black','INVALID_INVITE_CODE','RegularPolygon','path','tag','cursorInfo','BuiltInUIPart','transformMutationsWithChangeset','restore','ICommandService','_urlService','current','INVITE_CODE_ALREADY_BOUND','SheetCollabCursorShape','registerRefRange','Error','9RTfTrJ','sessionTicket','_labelPosition','runOnServer','_initStatusComponent','OTHER_CLIENTS_EDITING','transformSelections','_config','eventID','_updateURLWithCurrentState','map','addHandlerCallback','assignAColorForMemberID','merge','_collabCursorController','setParam','status$','then','yellow.400','DeleteRangeMoveUpCommandId','with','setItem','setInterval','pipe','hasOwnProperty','IUniverInstanceService','WECHAT_HAS_BEEN_BOUND','onRendered','getOwnPropertyDescriptor','_startDocCollabCursor','_unitOnClients','InsertColCommandId','CollaborationSessionService','_instanceService','[CollaborationDataLoaderController]','length','registerComponent','PY_RUNTIME_SCRIPT_ERROR','className','shareReplay','onLocalMutation','SHEET_VIEWPORT_KEY','idSuffix','resize','UniverCollaborationClientUIPlugin','serializeRangeWithSheet','MessageType','_initEvent','getCellPositionByOffset','_id','displayName','docStateChange$','CONNECTOR_DATA_TOO_LARGE','_hideTimer','data','dispose$','text','IImageIoService','DocCollaborationEntity','SNAPSHOT_HAS_BEEN_REMOVED','generateRandomId','CollaborationController','range','roomMembers','DocIMEInputManagerService','getSheetId','debounce','_docSyncEditingCollabCursorService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getRangePointData','_renderManagerService','debug','_cursors','unitId','_initResize','ISnapshotServerService','none','1em','IConfigService','getCollabEntity$','_docTransformSelectionsService','defs','top','entityInit$','updateOfflineData','_heartbeatTimer','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','startRow','_cachedData','Warning','EffectRefRangId','permission.title','translate(.97)','labelPosition','_docSkeleton','IRenderManagerService','M0\x200H16V16H0z','WebSocketService','getUniverSheetInstance','cursorInfo$','_initStatusListener','forwardRef','replace','_draw','assign','measureText','BrowserCollaborationSocketService','indexOf','currentColor','Injector','_getSaveTimeout','unit','sheetID','string','function','AWAITING','getParam','random','DocStateChangeManagerService','subscribe','getColorFromTheme','INVITE_CODE_REQUIRED','YUUMI_ALL_TABLES_IS_INVALID','Plugin','_clearOtherTimers','ColorKit','_messageService','whenReady','SessionStatus','onMouseMove','_unitStatus','_onRefRangeChange','_univerInstanceService','exhaustSavingTask','_init','IUIPartsService','fill','sheetId','currentSkeleton$','_getAnchorBounding','OFFLINE','0\x200\x2017\x2016','closePath','_hovered','UNIVER_SHEET','unload','getOffsetConfig','fillText','setUndoRedoMutationParamsCache','MemberService','ITransformService','OnLineSingle','APPLY_DUPLICATED','switchMap','_commandService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:univer-text-gray-200','_updateCollabCursors','onPointerEnter$','ILocalCacheService','_notificationService','findNodePositionByCharIndex','next','transformIMECache','RxDisposable','_localStorageService','div','handleInsertCol','delete','disposeUnit','Tools','_docSkeletonManagerService','_transformHistoryAndStateStack','_refreshCollabCursors','@univerjs/docs-ui','_saveCache','Disposable','symbol','COMPLETION_FINISHED','UNAUTHENTICATED','DesktopCollaborationStatusDisplayController','storage','FromArray','event$','size','IBeforeCloseService','SetSelectionsOperation','@univerjs/docs','UnitStatus','_docClipboardService','filter','_collaborationController','ILogService','#fff','collabStatus.offline','selections','_anchorDot','subUnitId','getMember','_localCacheService','contains','_setupSubUnitSync','lineTo','getAncestorScale','_localeService','@univerjs/engine-formula','save','ThemeService','HEADER_MENU','getValue','registerBeforeClose','InsertRangeMoveDownCommandId','ALREADY_EXISTS','_roomMembers$','registerDependencies','USER_NOT_INVITED_CODE','deepClone','YUUMI_AI_RUN_FAILED','_updateSubUnitFromURLParams','_ensureSubject','get','72758cIQkCK','doc.mutation.rich-text-editing','YUUMI_SUBSCRIPTION_NOT_FOUND','_getScale','_transformPreviousActiveRange','_removeCollabCursors','getRenderById','CollaborationStatusDisplay','_removeClearOtherTimer','APPLY_PERMISSION_DENIED','drawWith','requireSession','history','createElement','getSkeleton','syncEditingCollabCursor','substring','getMemberID','column','url(#$1','entries','MOBILE_HAS_BEEN_BOUND','setTimeout','APPLY_REJECT','_handleJoinEvent','UniverIcon','react','INVITE_CODE_HAS_BEEN_UES','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Optional','_docStateChangeManagerService','_lastPointer','result','clsx','has','NodePositionConvertToCursor','react/jsx-runtime','trim','UPDATE_CURSOR','sessionStatus$','_logService','endRow','_httpService','IURLService','isEditing','YUUMI_UNABLE_LOAD_URL','_beforeCloseService','session.will-retry','_disabled','transformMutation','LocaleService','extend','...','moveTo'];_0x34cf=function(){return _0x1c308a;};return _0x34cf();}Q=Xt([N(0x0,a[_0x314074(0x1d5)](b[_0x314074(0x111)])),N(0x1,a[_0x314074(0x1d5)](u[_0x314074(0xd8)])),N(0x2,a[_0x314074(0x1d5)](z)),N(0x3,a[_0x314074(0x1d5)](J)),N(0x4,a[_0x314074(0x1d5)](Z)),N(0x5,a[_0x314074(0x1d5)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x314074(0x1d5)](a[_0x314074(0x1a9)]))],Q);var Gt=Object[_0x314074(0xb7)],Kt=(_0x139ca7,_0x1fe5ae,_0x4b70ed,_0x58e776)=>{const _0x4de15b=_0x314074;for(var _0x18b059=_0x58e776>0x1?void 0x0:_0x58e776?Gt(_0x1fe5ae,_0x4b70ed):_0x1fe5ae,_0x110676=_0x139ca7[_0x4de15b(0xbe)]-0x1,_0x31ded9;_0x110676>=0x0;_0x110676--)(_0x31ded9=_0x139ca7[_0x110676])&&(_0x18b059=_0x31ded9(_0x18b059)||_0x18b059);return _0x18b059;},_e=(_0x519d9b,_0x205ee0)=>(_0x2e64c9,_0xf60c23)=>_0x205ee0(_0x2e64c9,_0xf60c23,_0x519d9b);let ge=class extends a[_0x314074(0x14a)]{constructor(_0x2ca6de,_0x102087,_0x97ab64){const _0xd38a05=_0x314074;super(),h(this,'_cachedData',new Map()),h(this,_0xd38a05(0x272),new Map()),h(this,_0xd38a05(0x1a7),!0x1),(this[_0xd38a05(0x220)]=_0x2ca6de,this['_localStorageService']=_0x102087,this[_0xd38a05(0x257)]=_0x97ab64);}[_0x314074(0x27d)](){const _0xdd0eb9=_0x314074;this[_0xdd0eb9(0x1a7)]=!0x0;}[_0x314074(0x308)](){const _0x58a36d=_0x314074;this[_0x58a36d(0x1a7)]=!0x1;}get[_0x314074(0x1bd)](){const _0x5de190=_0x314074;return this[_0x5de190(0x272)];}[_0x314074(0x218)](){const _0x4d55a9=_0x314074;this[_0x4d55a9(0x120)]()[_0x4d55a9(0xac)](()=>super[_0x4d55a9(0x218)]());}async['loadOfflineData'](_0x188b74){const _0x55f519=_0x314074;return this[_0x55f519(0x1a7)]?null:this[_0x55f519(0x13f)][_0x55f519(0x232)](u[_0x55f519(0x2e8)](_0x188b74));}async[_0x314074(0x2a6)](_0x235984,_0x2608a2){const _0x10e834=_0x314074;return!!this[_0x10e834(0x13f)][_0x10e834(0xb0)](_0x235984,_0x2608a2);}[_0x314074(0xef)](_0x6d0524,_0x36ffe4,_0x203871,_0x3435f2){const _0x51503b=_0x314074,_0x101be7=this['_revisionService'][_0x51503b(0x21c)](_0x6d0524);this[_0x51503b(0xf3)]['set'](_0x6d0524,{'unitID':_0x6d0524,'type':_0x36ffe4,'awaitingChangeset':_0x203871,'mutations':_0x3435f2,'rev':_0x101be7}),this['_saveTaskMap'][_0x51503b(0x199)](_0x6d0524)||this[_0x51503b(0x2b2)](_0x6d0524);}[_0x314074(0x2b2)](_0x49e0b8){const _0x472172=_0x314074,_0x5dcff6=this[_0x472172(0x109)]();_0x5dcff6===0x0?this[_0x472172(0x149)](_0x49e0b8):this[_0x472172(0x272)][_0x472172(0x1bc)](_0x49e0b8,setTimeout(()=>this[_0x472172(0x149)](_0x49e0b8),_0x5dcff6));}['_getSaveTimeout'](){const _0x2942d3=_0x314074;var _0x14f3c9;return(_0x14f3c9=this[_0x2942d3(0x220)][_0x2942d3(0x280)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x14f3c9:u[_0x2942d3(0x26e)];}[_0x314074(0x149)](_0x1574f1){const _0x2298e2=_0x314074,_0x320fc6=this[_0x2298e2(0x272)][_0x2298e2(0x176)](_0x1574f1);return _0x320fc6!==void 0x0&&window[_0x2298e2(0x288)](_0x320fc6),this[_0x2298e2(0x13f)][_0x2298e2(0xb0)](u[_0x2298e2(0x2e8)](_0x1574f1),this['_cachedData'][_0x2298e2(0x176)](_0x1574f1))[_0x2298e2(0xac)](()=>this[_0x2298e2(0x272)][_0x2298e2(0x142)](_0x1574f1));}async[_0x314074(0x120)](){const _0x4f46a9=_0x314074,_0xb9c43e=[];this[_0x4f46a9(0x272)][_0x4f46a9(0x1ca)]((_0x4e267f,_0x2edc2b)=>{const _0x531509=_0x4f46a9;window[_0x531509(0x288)](_0x4e267f),_0xb9c43e[_0x531509(0x1fa)](this[_0x531509(0x149)](_0x2edc2b)[_0x531509(0xac)](()=>{const _0x636033=_0x531509;this[_0x636033(0x272)]['delete'](_0x2edc2b);}));}),await Promise[_0x4f46a9(0x2d9)](_0xb9c43e);}};ge=Kt([_e(0x0,a[_0x314074(0xe9)]),_e(0x1,a[_0x314074(0x2cb)]),_e(0x2,a['Inject'](m[_0x314074(0x237)]))],ge);function _0x391f(_0xa22d20,_0x517c95){const _0x34cf13=_0x34cf();return _0x391f=function(_0x391f43,_0x28a0a3){_0x391f43=_0x391f43-0x90;let _0xfe1686=_0x34cf13[_0x391f43];return _0xfe1686;},_0x391f(_0xa22d20,_0x517c95);}class je extends a[_0x314074(0x13e)]{constructor(){const _0x42c39a=_0x314074;super(),h(this,_0x42c39a(0x2b8)),this[_0x42c39a(0x2b8)]=d['fromEvent'](window,_0x42c39a(0x1ea))[_0x42c39a(0xb2)](d[_0x42c39a(0x1b7)](this[_0x42c39a(0xd2)]),d[_0x42c39a(0xc2)](0x1),d[_0x42c39a(0x204)](void 0x0));}[_0x314074(0xaa)](_0x40240f,_0x5c59be,_0x3aacae=!0x1){const _0x318705=_0x314074,_0x3b7efa=new URL(window[_0x318705(0x261)]['href']);_0x3b7efa[_0x318705(0x1e7)][_0x318705(0x1bc)](_0x40240f,_0x5c59be),_0x3aacae?window[_0x318705(0x183)][_0x318705(0x2c9)]('','',_0x3b7efa[_0x318705(0x1bb)]()):window['history']['pushState']('','',_0x3b7efa[_0x318705(0x1bb)]());}[_0x314074(0x21b)](_0x3c4f0b,_0x1e8ef1=!0x1){const _0x35cb55=_0x314074,_0x2ad511=new URL(window['location']['href']);_0x2ad511[_0x35cb55(0x1e7)]['delete'](_0x3c4f0b),_0x1e8ef1?window[_0x35cb55(0x183)][_0x35cb55(0x2c9)]('','',_0x2ad511[_0x35cb55(0x1bb)]()):window[_0x35cb55(0x183)]['pushState']('','',_0x2ad511['toString']());}[_0x314074(0x10f)](_0x297eeb){const _0x44445d=_0x314074;var _0x2e0cfb;return(_0x2e0cfb=new URL(window['location'][_0x44445d(0x207)])[_0x44445d(0x1e7)]['get'](_0x297eeb))!=null?_0x2e0cfb:void 0x0;}}var qt=Object[_0x314074(0x2a0)],zt=Object[_0x314074(0xb7)],Jt=(_0x46a304,_0x5c9682,_0x574a0f)=>_0x5c9682 in _0x46a304?qt(_0x46a304,_0x5c9682,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x574a0f}):_0x46a304[_0x5c9682]=_0x574a0f,Zt=(_0x20b617,_0x3acb92,_0x3ad1e1,_0x248376)=>{for(var _0x2f3941=_0x248376>0x1?void 0x0:_0x248376?zt(_0x3acb92,_0x3ad1e1):_0x3acb92,_0x223cd1=_0x20b617['length']-0x1,_0x30b188;_0x223cd1>=0x0;_0x223cd1--)(_0x30b188=_0x20b617[_0x223cd1])&&(_0x2f3941=_0x30b188(_0x2f3941)||_0x2f3941);return _0x2f3941;},he=(_0x4f30d0,_0x5da9d2)=>(_0x11fc61,_0x41f347)=>_0x5da9d2(_0x11fc61,_0x41f347,_0x4f30d0),Qt=(_0x401131,_0x3b8344,_0x446799)=>Jt(_0x401131,_0x3b8344+'',_0x446799);const es=_0x314074(0x260);exports[_0x314074(0xc7)]=class extends a[_0x314074(0x116)]{constructor(_0x4a4043=Ue,_0x3eb4d9,_0x5ce426,_0x1fa68a){const _0x411179=_0x314074;super(),this[_0x411179(0xa2)]=_0x4a4043,this[_0x411179(0xe1)]=_0x3eb4d9,this[_0x411179(0x1cf)]=_0x5ce426,this[_0x411179(0x220)]=_0x1fa68a;const {..._0xad1f4}=a[_0x411179(0xa8)]({},Ue,this['_config']);this[_0x411179(0x220)][_0x411179(0x2c8)]($t,_0xad1f4);}[_0x314074(0x25c)](){const _0x56245f=_0x314074;this[_0x56245f(0x2ed)](),this[_0x56245f(0x25b)]();}[_0x314074(0xb6)](){this['_registerRenderDependencies']();}[_0x314074(0x2ed)](){const _0x3d9c15=_0x314074;var _0x1278b0;const _0x1990e4=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x3d9c15(0x200)],{'useClass':G[_0x3d9c15(0xfc)]}],[u['ILocalCacheService'],{'useClass':ge}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x3d9c15(0x170)](this['_injector'],a['mergeOverrideWithDependencies'](_0x1990e4,(_0x1278b0=this[_0x3d9c15(0xa2)])==null?void 0x0:_0x1278b0[_0x3d9c15(0x2b7)]));}[_0x314074(0x2f0)](){const _0x1f1a5b=_0x314074;this[_0x1f1a5b(0x2af)](this[_0x1f1a5b(0xe1)]['registerRenderModule'](a[_0x1f1a5b(0x273)][_0x1f1a5b(0x1c2)],[Ie])),this[_0x1f1a5b(0x2af)](this[_0x1f1a5b(0xe1)]['registerRenderModule'](a[_0x1f1a5b(0x273)][_0x1f1a5b(0x12b)],[ve]));}[_0x314074(0x25b)](){const _0x1c7b02=_0x314074;a[_0x1c7b02(0x279)](this['_injector'],[[x],[exports[_0x1c7b02(0x14e)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x314074(0xc7)],'pluginName',es),exports['UniverCollaborationClientUIPlugin']=Zt([a['DependentOn'](u[_0x314074(0x210)]),he(0x1,p[_0x314074(0xfa)]),he(0x2,a['Inject'](a[_0x314074(0x108)])),he(0x3,a[_0x314074(0xe9)])],exports[_0x314074(0xc7)]);var ts=Object[_0x314074(0xb7)],ss=(_0x19e345,_0x5c2c6b,_0x28bd58,_0x565e9c)=>{const _0x468444=_0x314074;for(var _0xf19204=_0x565e9c>0x1?void 0x0:_0x565e9c?ts(_0x5c2c6b,_0x28bd58):_0x5c2c6b,_0x3ab9e4=_0x19e345[_0x468444(0xbe)]-0x1,_0x1b8aae;_0x3ab9e4>=0x0;_0x3ab9e4--)(_0x1b8aae=_0x19e345[_0x3ab9e4])&&(_0xf19204=_0x1b8aae(_0xf19204)||_0xf19204);return _0xf19204;},F=(_0x54bee1,_0x5958f3)=>(_0x1bff0a,_0x3047f6)=>_0x5958f3(_0x1bff0a,_0x3047f6,_0x54bee1);exports[_0x314074(0x105)]=class extends u[_0x314074(0x2c2)]{constructor(_0x5cb936,_0x369647,_0x5d3a78,_0x4d559a,_0x4914ed){super(_0x5cb936,_0x369647,_0x5d3a78,_0x4d559a,_0x4914ed);}async[_0x314074(0x306)](_0x3ab994){const _0x49d45a=_0x314074,_0x4f2fc7=await this[_0x49d45a(0x20d)](),_0x2106e2=this['_createSocketURL'](_0x3ab994,_0x4f2fc7);return this[_0x49d45a(0x22b)](_0x2106e2);}['_createSocketURL'](_0x58c787,_0x3d78af){const _0xd758a4=_0x314074,_0x1c0f39=typeof window>'u'?new URL(_0x58c787):new URL(_0x58c787,window[_0xd758a4(0x261)][_0xd758a4(0x1d9)]);_0x1c0f39[_0xd758a4(0x1e7)][_0xd758a4(0x1bc)](_0xd758a4(0x9c),_0x3d78af);const _0x4d9cc5=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x4d9cc5[_0xd758a4(0x176)](_0xd758a4(0x284))&&_0x1c0f39['searchParams'][_0xd758a4(0x1bc)](_0xd758a4(0x284),_0x4d9cc5[_0xd758a4(0x176)](_0xd758a4(0x284))),_0x1c0f39['toString']();}async[_0x314074(0x20d)](){const _0x4abe51=_0x314074;var _0x261ba4,_0x31dfe7,_0x296736;const _0x5b6623=this[_0x4abe51(0x220)][_0x4abe51(0x280)](u[_0x4abe51(0x193)]),_0x29a1e9=(_0x261ba4=_0x5b6623==null?void 0x0:_0x5b6623['wsSessionTicketUrl'])!=null?_0x261ba4:u[_0x4abe51(0x2d6)];return(_0x296736=(_0x31dfe7=(await this[_0x4abe51(0x1a1)][_0x4abe51(0x176)](_0x29a1e9,{'headers':{'Content-Type':_0x4abe51(0x1f2)}}))[_0x4abe51(0x270)])==null?void 0x0:_0x31dfe7['ticket'])!=null?_0x296736:'';}},exports[_0x314074(0x105)]=ss([F(0x0,a[_0x314074(0x1d5)](a[_0x314074(0x108)])),F(0x1,a['Inject'](G[_0x314074(0x1e5)])),F(0x2,a[_0x314074(0xe9)]),F(0x3,a[_0x314074(0x15a)]),F(0x4,m[_0x314074(0xe6)])],exports[_0x314074(0x105)]);const Me=0x7530,Le=_0x314074(0x230);class is extends a[_0x314074(0x14a)]{constructor(){const _0x3a9af5=_0x314074;super(),h(this,_0x3a9af5(0xcc),a[_0x3a9af5(0xd7)]()),h(this,_0x3a9af5(0x2cd),new Set()),h(this,_0x3a9af5(0xb9),new Map()),h(this,'_heartbeatTimer',null),h(this,_0x3a9af5(0x117),new Map()),h(this,_0x3a9af5(0x11d),new Map()),this['_init']();}[_0x314074(0x218)](){const _0x30d61b=_0x314074;super[_0x30d61b(0x218)](),this[_0x30d61b(0x117)][_0x30d61b(0x1ca)]((_0x19f634,_0x464df4)=>this[_0x30d61b(0x17f)](_0x464df4)),this[_0x30d61b(0xf0)]&&window['clearInterval'](this[_0x30d61b(0xf0)]);}[_0x314074(0x213)](_0x3522dd){const _0x425e06=_0x314074;return this[_0x425e06(0x175)](_0x3522dd)[_0x425e06(0xb2)](d[_0x425e06(0x289)]());}[_0x314074(0x1cb)](_0x28c959){const _0x190951=_0x314074;this['_selfUnitIDs'][_0x190951(0x152)]===0x0&&this[_0x190951(0x1e0)](),this['_selfUnitIDs'][_0x190951(0x24a)](_0x28c959),this[_0x190951(0x2d5)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x28c959],'isForwarded':!0x1});}[_0x314074(0x143)](_0x3267e3){const _0x2c062d=_0x314074;this[_0x2c062d(0x2cd)][_0x2c062d(0x142)](_0x3267e3),this[_0x2c062d(0x2cd)][_0x2c062d(0x152)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x2c062d(0xf0)]);}[_0x314074(0x121)](){const _0x41da88=_0x314074;this[_0x41da88(0x2af)](a[_0x41da88(0x2f7)](d['fromEvent'](window,_0x41da88(0x14f))['subscribe'](_0x2e957a=>{const _0x2e9761=_0x41da88;if(_0x2e957a['key']!==Le||!_0x2e957a['newValue'])return;const _0x239660=JSON[_0x2e9761(0x1f9)](_0x2e957a[_0x2e9761(0x293)]);this['_handleEvent'](_0x239660);}))),window[_0x41da88(0x2e3)](_0x41da88(0x12c),()=>this['_send']({'type':0x1,'memberID':this[_0x41da88(0xcc)],'unitIDs':Array['from'](this[_0x41da88(0x2cd)])}));}[_0x314074(0x2ac)](_0x1f8c47){const _0x535af4=_0x314074;switch(_0x1f8c47[_0x535af4(0x269)]){case 0x0:this['_handleJoinEvent'](_0x1f8c47);break;case 0x1:this[_0x535af4(0x1b8)](_0x1f8c47);break;case 0x2:this[_0x535af4(0x2d0)](_0x1f8c47);break;}}[_0x314074(0x18f)](_0x207126){const _0x418dea=_0x314074,{unitIDs:_0x3cfe8a,memberID:_0x509d4e,isForwarded:_0x133050}=_0x207126;_0x3cfe8a[_0x418dea(0x1ca)](_0x3bc9bc=>{const _0x547c2a=_0x418dea;if(!_0x133050&&this[_0x547c2a(0xb9)][_0x547c2a(0x199)](_0x3bc9bc)&&this['_ensureSubject'](_0x3bc9bc)[_0x547c2a(0x13c)](u[_0x547c2a(0x156)]['OTHER_CLIENTS_EDITING']),!this[_0x547c2a(0xb9)][_0x547c2a(0x199)](_0x3bc9bc)||!this[_0x547c2a(0xb9)]['get'](_0x3bc9bc)['has'](_0x509d4e)){const _0x181d84=this[_0x547c2a(0xb9)]['get'](_0x3bc9bc)||new Set();_0x181d84[_0x547c2a(0x24a)](_0x509d4e),this[_0x547c2a(0xb9)][_0x547c2a(0x1bc)](_0x3bc9bc,_0x181d84),this[_0x547c2a(0x2a7)](_0x509d4e);}}),_0x133050||this[_0x418dea(0x2d5)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x418dea(0x2cd)]],'isForwarded':!0x0});}[_0x314074(0x2a7)](_0x1d6799){const _0x543665=_0x314074;this[_0x543665(0x17f)](_0x1d6799);const _0x4aa19=window[_0x543665(0x18d)](()=>{const _0x30d1ae=_0x543665;this[_0x30d1ae(0xb9)][_0x30d1ae(0x1ca)](_0x2dea15=>{const _0x235a6b=_0x30d1ae;_0x2dea15[_0x235a6b(0x142)](_0x1d6799);});},Me*0x2);this[_0x543665(0x117)]['set'](_0x1d6799,_0x4aa19);}[_0x314074(0x17f)](_0x28bceb){const _0x95c3be=_0x314074;if(this[_0x95c3be(0x117)][_0x95c3be(0x199)](_0x28bceb)){const _0x783328=this[_0x95c3be(0x117)][_0x95c3be(0x176)](_0x28bceb);_0x783328&&window[_0x95c3be(0x288)](_0x783328),this[_0x95c3be(0x117)][_0x95c3be(0x1bc)](_0x28bceb,null);}}[_0x314074(0x1b8)](_0x4fb3ac){const _0x5c44af=_0x314074,{memberID:_0x2a1a4a,unitIDs:_0xcedeff}=_0x4fb3ac;_0xcedeff[_0x5c44af(0x1ca)](_0x4f7b85=>{const _0x27a5a0=_0x5c44af;var _0x5a095c;const _0x238956=this[_0x27a5a0(0xb9)][_0x27a5a0(0x176)](_0x4f7b85);_0x238956&&(_0x238956['delete'](_0x2a1a4a),(_0x5a095c=this[_0x27a5a0(0x175)](_0x4f7b85))==null||_0x5a095c[_0x27a5a0(0x13c)](_0x238956[_0x27a5a0(0x152)]===0x0?u[_0x27a5a0(0x156)]['NO_OTHER_CLIENTS_EDITING']:u['UnitStatus'][_0x27a5a0(0xa0)]));}),this[_0x5c44af(0x17f)](_0x2a1a4a);}[_0x314074(0x2d0)](_0x5337e3){const _0x28347c=_0x314074;this[_0x28347c(0x2a7)](_0x5337e3['memberID']);}[_0x314074(0x2d5)](_0x2d1ed5){const _0x28d423=_0x314074;localStorage[_0x28d423(0xb0)](Le,JSON[_0x28d423(0x278)](_0x2d1ed5));}[_0x314074(0x1e0)](){const _0x3447cb=_0x314074;this[_0x3447cb(0xf0)]=window[_0x3447cb(0xb1)](()=>{const _0x2c0f40=_0x3447cb;this[_0x2c0f40(0x2d5)]({'type':0x2,'memberID':this[_0x2c0f40(0xcc)]});},Me);}[_0x314074(0x175)](_0x8310e7){const _0x952ca4=_0x314074;return this[_0x952ca4(0x11d)][_0x952ca4(0x199)](_0x8310e7)||this[_0x952ca4(0x11d)]['set'](_0x8310e7,new d['BehaviorSubject'](u[_0x952ca4(0x156)][_0x952ca4(0x2b0)])),this[_0x952ca4(0x11d)]['get'](_0x8310e7);}}var Be=(_0x57943c=>(_0x57943c[_0x57943c[_0x314074(0x27b)]=0x0]=_0x314074(0x27b),_0x57943c[_0x57943c['OK']=0x1]='OK',_0x57943c[_0x57943c['INTERNAL_ERROR']=0x2]=_0x314074(0x209),_0x57943c[_0x57943c[_0x314074(0x1de)]=0x3]=_0x314074(0x1de),_0x57943c[_0x57943c[_0x314074(0x1f5)]=0x4]=_0x314074(0x1f5),_0x57943c[_0x57943c['UNAUTHENTICATED']=0x5]=_0x314074(0x14d),_0x57943c[_0x57943c[_0x314074(0x16e)]=0x6]=_0x314074(0x16e),_0x57943c[_0x57943c[_0x314074(0x22d)]=0x7]=_0x314074(0x22d),_0x57943c[_0x57943c[_0x314074(0x1e8)]=0x8]=_0x314074(0x1e8),_0x57943c[_0x57943c[_0x314074(0x14c)]=0x9]=_0x314074(0x14c),_0x57943c[_0x57943c['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x57943c[_0x57943c[_0x314074(0x222)]=0x1389]=_0x314074(0x222),_0x57943c[_0x57943c['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x57943c[_0x57943c[_0x314074(0xd6)]=0x1772]=_0x314074(0xd6),_0x57943c[_0x57943c[_0x314074(0x281)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x57943c[_0x57943c[_0x314074(0x18e)]=0x1b59]=_0x314074(0x18e),_0x57943c[_0x57943c[_0x314074(0x275)]=0x1b5a]=_0x314074(0x275),_0x57943c[_0x57943c['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x57943c[_0x57943c['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x314074(0x180),_0x57943c[_0x57943c[_0x314074(0x133)]=0x1b5d]='APPLY_DUPLICATED',_0x57943c[_0x57943c[_0x314074(0xcf)]=0x1f41]=_0x314074(0xcf),_0x57943c[_0x57943c[_0x314074(0x1ee)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x57943c[_0x57943c['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x314074(0x2f5),_0x57943c[_0x57943c['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x314074(0x21d),_0x57943c[_0x57943c['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x314074(0x1c4),_0x57943c[_0x57943c[_0x314074(0x254)]=0x232d]=_0x314074(0x254),_0x57943c[_0x57943c['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x314074(0x1a4),_0x57943c[_0x57943c[_0x314074(0x2b6)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x57943c[_0x57943c[_0x314074(0x27c)]=0x2713]=_0x314074(0x27c),_0x57943c[_0x57943c[_0x314074(0x179)]=0x2714]=_0x314074(0x179),_0x57943c[_0x57943c['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x314074(0x20e),_0x57943c[_0x57943c[_0x314074(0x22c)]=0x271b]=_0x314074(0x22c),_0x57943c[_0x57943c[_0x314074(0x247)]=0x271c]=_0x314074(0x247),_0x57943c[_0x57943c[_0x314074(0x115)]=0x271d]=_0x314074(0x115),_0x57943c[_0x57943c[_0x314074(0x223)]=0x271e]=_0x314074(0x223),_0x57943c[_0x57943c[_0x314074(0x173)]=0x271f]=_0x314074(0x173),_0x57943c[_0x57943c[_0x314074(0xc0)]=0x2af9]=_0x314074(0xc0),_0x57943c[_0x57943c[_0x314074(0x192)]=0x2ee1]=_0x314074(0x192),_0x57943c[_0x57943c[_0x314074(0x30e)]=0x2ee2]='INVALID_INVITE_CODE',_0x57943c[_0x57943c[_0x314074(0x114)]=0x2ee3]=_0x314074(0x114),_0x57943c[_0x57943c[_0x314074(0x171)]=0x2ee4]=_0x314074(0x171),_0x57943c[_0x57943c['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x314074(0x97),_0x57943c[_0x57943c[_0x314074(0xb5)]=0x32c9]=_0x314074(0xb5),_0x57943c[_0x57943c[_0x314074(0x18c)]=0x32ca]=_0x314074(0x18c),_0x57943c[_0x57943c[_0x314074(0x2c4)]=0x32cb]=_0x314074(0x2c4),_0x57943c[_0x57943c['UNRECOGNIZED']=-0x1]=_0x314074(0x1fd),_0x57943c))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x536df1,_0x354ae1,_0x183ec1,_0xe82414)=>{for(var _0x4da72a=_0xe82414>0x1?void 0x0:_0xe82414?ns(_0x354ae1,_0x183ec1):_0x354ae1,_0x14d1e3=_0x536df1['length']-0x1,_0x301c46;_0x14d1e3>=0x0;_0x14d1e3--)(_0x301c46=_0x536df1[_0x14d1e3])&&(_0x4da72a=_0x301c46(_0x4da72a)||_0x4da72a);return _0x4da72a;},ue=(_0x1b714a,_0x468fcf)=>(_0x5e4a01,_0x396c7b)=>_0x468fcf(_0x5e4a01,_0x396c7b,_0x1b714a);exports[_0x314074(0x305)]=class extends a[_0x314074(0x14a)]{constructor(_0x4dc64d,_0x4d32fd,_0x70b03f){const _0x14d946=_0x314074;super(),this[_0x14d946(0xbc)]=_0x4dc64d,this[_0x14d946(0x1a1)]=_0x4d32fd,this[_0x14d946(0x220)]=_0x70b03f;}async[_0x314074(0x9e)](_0x341bb8,_0x208f7f,_0x260bf2,..._0x138fa2){const _0x3a07bb=_0x314074;var _0x4d03aa,_0x48ce41,_0x29d7bc,_0xbb962d;const _0x5be602=this['_instanceService']['getFocusedUnit']();if(!_0x5be602)throw new Error(_0x3a07bb(0x301));const _0x5b0311=((_0x4d03aa=this['_configService'][_0x3a07bb(0x280)](u[_0x3a07bb(0xf1)]))!=null?_0x4d03aa:u[_0x3a07bb(0x1c9)])+'/'+_0x341bb8+'/run/'+_0x208f7f,_0x2b011d=new URL(window[_0x3a07bb(0x261)][_0x3a07bb(0x207)]),_0x5231f3={'scriptId':_0x341bb8,'runId':(_0x48ce41=_0x2b011d[_0x3a07bb(0x1e7)][_0x3a07bb(0x176)](_0x3a07bb(0x284)))!=null?_0x48ce41:'','function':_0x208f7f,'unitId':_0x5be602[_0x3a07bb(0x302)](),'argsOfFunction':JSON[_0x3a07bb(0x278)](_0x138fa2),'invokeId':(_0x29d7bc=_0x260bf2['invokeId'])!=null?_0x29d7bc:'','executionId':(_0xbb962d=_0x260bf2[_0x3a07bb(0x20a)])!=null?_0xbb962d:''};try{const _0x4c8245=await this['_httpService']['post'](_0x5b0311,{'body':_0x5231f3});return _0x4c8245[_0x3a07bb(0x270)][_0x3a07bb(0x2b5)]&&_0x4c8245[_0x3a07bb(0x270)]['error'][_0x3a07bb(0x1f0)]!==Be['OK']?_0x3a07bb(0x27a):_0x4c8245[_0x3a07bb(0x270)][_0x3a07bb(0x197)];}catch{return _0x3a07bb(0x27a);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x314074(0x1d5)](G[_0x314074(0x1e5)])),ue(0x2,a['IConfigService'])],exports[_0x314074(0x305)]),exports[_0x314074(0x17e)]=xe,exports[_0x314074(0x1a2)]=be,exports[_0x314074(0x98)]=Ae,exports[_0x314074(0x287)]=is,exports['WebURLService']=je;
|
|
1
|
+
'use strict';const _0x2f2715=_0x330b;(function(_0x4b4484,_0x4477f9){const _0x19a3d3=_0x330b,_0x1f84f3=_0x4b4484();while(!![]){try{const _0x2a3a87=parseInt(_0x19a3d3(0x248))/0x1+parseInt(_0x19a3d3(0x379))/0x2*(parseInt(_0x19a3d3(0x220))/0x3)+-parseInt(_0x19a3d3(0x13f))/0x4+parseInt(_0x19a3d3(0x307))/0x5*(parseInt(_0x19a3d3(0x31a))/0x6)+-parseInt(_0x19a3d3(0x221))/0x7+-parseInt(_0x19a3d3(0x2af))/0x8*(parseInt(_0x19a3d3(0x29b))/0x9)+-parseInt(_0x19a3d3(0x247))/0xa*(-parseInt(_0x19a3d3(0x16f))/0xb);if(_0x2a3a87===_0x4477f9)break;else _0x1f84f3['push'](_0x1f84f3['shift']());}catch(_0x5d78d2){_0x1f84f3['push'](_0x1f84f3['shift']());}}}(_0xdf25,0x50d92));var Ve=Object[_0x2f2715(0x3a2)],Xe=(_0x1caec3,_0x4c7332,_0x552e56)=>_0x4c7332 in _0x1caec3?Ve(_0x1caec3,_0x4c7332,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x552e56}):_0x1caec3[_0x4c7332]=_0x552e56,h=(_0x1bf61d,_0x6fdd8d,_0xc2729f)=>Xe(_0x1bf61d,typeof _0x6fdd8d!=_0x2f2715(0x22f)?_0x6fdd8d+'':_0x6fdd8d,_0xc2729f);Object[_0x2f2715(0x3a2)](exports,Symbol[_0x2f2715(0x238)],{'value':_0x2f2715(0x35a)});const u=require(_0x2f2715(0x2f6)),a=require(_0x2f2715(0x297)),p=require(_0x2f2715(0x1e0)),G=require(_0x2f2715(0x2dd)),b=require(_0x2f2715(0x264)),Ge=require(_0x2f2715(0x1ac)),d=require(_0x2f2715(0x1eb)),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Ee=require(_0x2f2715(0x39d)),g=require(_0x2f2715(0x2f1)),$=require(_0x2f2715(0x282)),X=require(_0x2f2715(0x2b8)),P=require('react/jsx-runtime'),T=require(_0x2f2715(0x2e6)),D=require(_0x2f2715(0x29e)),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object['getOwnPropertyDescriptor'],ze=(_0x4e8e48,_0x576cd1,_0x4736f3,_0x2695e4)=>{const _0x1b31b4=_0x2f2715;for(var _0x42435d=_0x2695e4>0x1?void 0x0:_0x2695e4?qe(_0x576cd1,_0x4736f3):_0x576cd1,_0x149568=_0x4e8e48[_0x1b31b4(0x159)]-0x1,_0x52373d;_0x149568>=0x0;_0x149568--)(_0x52373d=_0x4e8e48[_0x149568])&&(_0x42435d=_0x52373d(_0x42435d)||_0x42435d);return _0x42435d;},Te=(_0x430996,_0x1d99fc)=>(_0x99ab66,_0x557237)=>_0x1d99fc(_0x99ab66,_0x557237,_0x430996);let de=class extends a['RxDisposable']{constructor(_0x390fc9,_0x46d3c4){super(),this['_docClipboardService']=_0x390fc9,this['_imageIoService']=_0x46d3c4,this['_init']();}[_0x2f2715(0x1cb)](){const _0x2546ec=_0x2f2715,_0x378fd1=this;this['disposeWithMe'](this['_docClipboardService'][_0x2546ec(0x195)]({'onBeforePasteImage':async _0x4b24dc=>{const _0x43683e=_0x2546ec,_0x400d1e=await _0x378fd1[_0x43683e(0x355)]['saveImage'](_0x4b24dc);return _0x400d1e?{'source':_0x400d1e[_0x43683e(0x147)],'imageSourceType':_0x400d1e[_0x43683e(0x315)]}:null;}}));}};de=ze([Te(0x0,b[_0x2f2715(0x1e3)]),Te(0x1,Ge[_0x2f2715(0x365)])],de);const Oe=[_0x2f2715(0x1b9),'jiqing.500',_0x2f2715(0x2c9),_0x2f2715(0x162),_0x2f2715(0x1f5),'yellow.400'];class me extends a[_0x2f2715(0x24a)]{constructor(){const _0x19267f=_0x2f2715;super(...arguments),h(this,_0x19267f(0x2d9),new Map()),h(this,_0x19267f(0x33e),0x0);}[_0x2f2715(0x2e8)](_0x13aea7){const _0x32b242=_0x2f2715;if(this[_0x32b242(0x2d9)][_0x32b242(0x156)](_0x13aea7))return this[_0x32b242(0x2d9)]['get'](_0x13aea7);const _0x277ada=Oe[this[_0x32b242(0x33e)]];return this[_0x32b242(0x33e)]=(this['_colorIndex']+0x1)%Oe[_0x32b242(0x159)],this[_0x32b242(0x2d9)]['set'](_0x13aea7,_0x277ada),_0x277ada;}}function Pe(_0x49b4aa){const _0x4ae287=_0x2f2715;let _0x3c05c1='';for(const _0x3b96d1 of _0x49b4aa){const {startOffset:_0x247c87,endOffset:_0x23c003,isActive:_0x144435,rangeType:_0x444d8f,segmentId:_0x3ee09a,segmentPage:_0x507e1b}=_0x3b96d1;_0x3c05c1[_0x4ae287(0x159)]&&(_0x3c05c1+=','),_0x3c05c1+=_0x247c87+':'+_0x23c003+':'+(_0x144435?'1':'0')+':'+_0x444d8f+':'+_0x3ee09a+':'+_0x507e1b;}return _0x3c05c1;}function Je(_0x4f31a9){const _0x60bb29=_0x2f2715,_0x5b1739=_0x4f31a9[_0x60bb29(0x2b4)](','),_0x2ae1aa=[];for(const _0x142c66 of _0x5b1739){const [_0x31e0b2,_0x2739b8,_0x3a19ce,_0xe46be2,_0xa7ddee,_0x4b1c92]=_0x142c66[_0x60bb29(0x2b4)](':');_0x2ae1aa['push']({'startOffset':Number(_0x31e0b2),'endOffset':Number(_0x2739b8),'collapsed':_0x31e0b2===_0x2739b8,'isActive':_0x3a19ce==='1','rangeType':_0xe46be2===a[_0x60bb29(0x175)][_0x60bb29(0x345)]?a[_0x60bb29(0x175)][_0x60bb29(0x345)]:a[_0x60bb29(0x175)]['RECT'],'segmentId':typeof _0xa7ddee==_0x60bb29(0x367)?String(_0xa7ddee):'','segmentPage':Number(_0x4b1c92!=null?_0x4b1c92:-0x1)});}return _0x2ae1aa[_0x60bb29(0x3ab)](_0x290550=>_0x290550[_0x60bb29(0x35d)])||(_0x2ae1aa[0x0][_0x60bb29(0x35d)]=!0x0),_0x2ae1aa;}class Ce extends a[_0x2f2715(0x33d)]{constructor(){const _0x9f913f=_0x2f2715;super(...arguments),h(this,_0x9f913f(0x177),new d[(_0x9f913f(0x388))](null)),h(this,_0x9f913f(0x34a),this[_0x9f913f(0x177)][_0x9f913f(0x1b6)]());}['syncEditingCollabCursor'](_0xdbd447){const _0x4eafd9=_0x2f2715,{unitID:_0xf96ba2,memberID:_0x3119fe,textRanges:_0x2b8ff3}=_0xdbd447,_0x2fefb9=Pe(_0x2b8ff3);if(_0x2fefb9==='')return;const _0x28a900={'unitID':_0xf96ba2,'memberID':_0x3119fe,'selection':_0x2fefb9};this[_0x4eafd9(0x177)][_0x4eafd9(0x14b)](_0x28a900);}}var Ze=Object[_0x2f2715(0x3a5)],Qe=(_0x554f7c,_0x2b8bc8,_0x413e0e,_0x2a4d3c)=>{const _0x5ecfb9=_0x2f2715;for(var _0xd5250=_0x2a4d3c>0x1?void 0x0:_0x2a4d3c?Ze(_0x2b8bc8,_0x413e0e):_0x2b8bc8,_0x44812a=_0x554f7c[_0x5ecfb9(0x159)]-0x1,_0x525c46;_0x44812a>=0x0;_0x44812a--)(_0x525c46=_0x554f7c[_0x44812a])&&(_0xd5250=_0x525c46(_0xd5250)||_0xd5250);return _0xd5250;},L=(_0x45677a,_0x187aa2)=>(_0x349c78,_0x38c121)=>_0x187aa2(_0x349c78,_0x38c121,_0x45677a);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x4305be,_0x551c39,_0x38dd34,_0x2dbfb4,_0x33b105,_0x23e6e0,_0x4532e5,_0x1cdc79,_0x552a44){const _0x3b5797=_0x2f2715;super(),h(this,_0x3b5797(0x1b3),!0x1),h(this,_0x3b5797(0x1cb),!0x1),h(this,_0x3b5797(0x1b4),new d['BehaviorSubject'](new Map())),h(this,_0x3b5797(0x1af),this[_0x3b5797(0x1b4)][_0x3b5797(0x1b6)]()),h(this,_0x3b5797(0x209),new d[(_0x3b5797(0x388))]([])),h(this,'roomMembers$',this[_0x3b5797(0x209)][_0x3b5797(0x231)](d[_0x3b5797(0x38f)](et))),h(this,_0x3b5797(0x39c),a['debounce'](_0xf11257=>{const _0x104962=_0x3b5797,_0x49a219={'eventID':m['CollaborationEvent'][_0x104962(0x357)],'data':{'unitID':this[_0x104962(0x3bb)],'memberID':this[_0x104962(0x300)][_0x104962(0x372)](),'selection':Pe(_0xf11257)}};this[_0x104962(0x300)][_0x104962(0x392)](_0x49a219,this[_0x104962(0x3bb)]);},tt)),(this[_0x3b5797(0x3bb)]=_0x4305be,this[_0x3b5797(0x300)]=_0x551c39,this[_0x3b5797(0x2da)]=_0x38dd34,this['_colorAssignService']=_0x2dbfb4,this[_0x3b5797(0x325)]=_0x33b105,this[_0x3b5797(0x3b2)]=_0x23e6e0,this[_0x3b5797(0x20a)]=_0x4532e5,this[_0x3b5797(0x267)]=_0x1cdc79,this[_0x3b5797(0x19a)]=_0x552a44);}get[_0x2f2715(0x186)](){const _0x98878f=_0x2f2715;return this[_0x98878f(0x1b4)][_0x98878f(0x27d)]();}get[_0x2f2715(0x187)](){const _0x1b2866=_0x2f2715;return this['_roomMembers$'][_0x1b2866(0x27d)]();}[_0x2f2715(0x215)](){const _0x14fa23=_0x2f2715;super[_0x14fa23(0x215)](),this[_0x14fa23(0x1b4)][_0x14fa23(0x14b)](new Map()),this[_0x14fa23(0x1b4)][_0x14fa23(0x1c4)](),this[_0x14fa23(0x209)][_0x14fa23(0x14b)]([]),this['_roomMembers$'][_0x14fa23(0x1c4)]();}[_0x2f2715(0x347)](){const _0xb462fc=_0x2f2715;this[_0xb462fc(0x1cb)]||(this[_0xb462fc(0x1cb)]=!0x0,this[_0xb462fc(0x300)][_0xb462fc(0x2fb)][_0xb462fc(0x231)](d['takeUntil'](this[_0xb462fc(0x23a)]))[_0xb462fc(0x185)](_0x163212=>{const _0x198ce6=_0xb462fc;_0x163212===u[_0x198ce6(0x2ba)][_0x198ce6(0x141)]?this[_0x198ce6(0x193)]():this[_0x198ce6(0x343)]();}),this[_0xb462fc(0x300)]['event$'][_0xb462fc(0x231)](d['takeUntil'](this['dispose$']))[_0xb462fc(0x185)](_0x2aabce=>{const _0x371ebe=_0xb462fc,_0x23e666=_0x2aabce['eventID'];_0x23e666===m[_0x371ebe(0x23c)][_0x371ebe(0x357)]&&this[_0x371ebe(0x19c)](_0x2aabce),_0x23e666===m['CollaborationEvent'][_0x371ebe(0x2ee)]&&this[_0x371ebe(0x189)](_0x2aabce);}),this[_0xb462fc(0x1d4)](this[_0xb462fc(0x19a)]['onCommandExecuted'](_0x643b6b=>{const _0x1f6159=_0xb462fc,_0x28d5d7=_0x643b6b[_0x1f6159(0x203)];_0x28d5d7!=null&&this[_0x1f6159(0x1b3)]&&_0x643b6b['id']===Y['SetTextSelectionsOperation']['id']&&_0x28d5d7[_0x1f6159(0x17b)]===this[_0x1f6159(0x3bb)]&&_0x28d5d7[_0x1f6159(0x222)]===!0x1&&_0x28d5d7[_0x1f6159(0x269)][_0x1f6159(0x159)]>0x0&&this[_0x1f6159(0x39c)](_0x28d5d7[_0x1f6159(0x269)]);})),this[_0xb462fc(0x3b2)][_0xb462fc(0x34a)][_0xb462fc(0x231)](d[_0xb462fc(0x378)](this[_0xb462fc(0x23a)]))[_0xb462fc(0x185)](_0x3af011=>{const _0x5f4b70=_0xb462fc;if((_0x3af011==null?void 0x0:_0x3af011[_0x5f4b70(0x3bb)])!==this[_0x5f4b70(0x3bb)])return;const _0x13b9b5={'eventID':m[_0x5f4b70(0x23c)][_0x5f4b70(0x357)],'data':_0x3af011};this[_0x5f4b70(0x19c)](_0x13b9b5);}),this[_0xb462fc(0x1d4)](this[_0xb462fc(0x19a)]['onCommandExecuted'](_0x436769=>{const _0x34fd3f=_0xb462fc;if(_0x436769[_0x34fd3f(0x203)]==null)return;const _0x3affd0=_0x436769['params'];if(_0x436769['id']!==Y[_0x34fd3f(0x37c)]['id']||_0x3affd0[_0x34fd3f(0x17b)]!==this[_0x34fd3f(0x3bb)])return;const _0x44a6ec={'id':_0x34fd3f(0x184),'params':_0x3affd0},_0x35ba90=this['cursorInfo'];for(const [_0x29be6f,_0x1df0c8]of _0x35ba90){const _0x58699a={'id':_0x34fd3f(0x184),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1df0c8[_0x34fd3f(0x269)]}},_0x4efe0f=this[_0x34fd3f(0x20a)][_0x34fd3f(0x20b)](_0x44a6ec,_0x58699a,!0x1);if(m[_0x34fd3f(0x1fc)](_0x4efe0f))throw _0x4efe0f[_0x34fd3f(0x20e)];_0x35ba90['set'](_0x29be6f,{..._0x1df0c8,'ranges':_0x4efe0f[_0x34fd3f(0x13c)][_0x34fd3f(0x203)][_0x34fd3f(0x353)]});}queueMicrotask(()=>{const _0x4a48be=_0x34fd3f;this[_0x4a48be(0x1b4)][_0x4a48be(0x14b)](_0x35ba90);});})));}['_onCursorUpdate'](_0x508037){const _0x4eacc1=_0x2f2715;var _0x59db5d,_0x56ac55;const {memberID:_0xfd1adf,selection:_0x751032}=_0x508037[_0x4eacc1(0x346)],_0x225eb9=Je(_0x751032),_0x18d4bc=(_0x56ac55=(_0x59db5d=this['_memberService'][_0x4eacc1(0x143)](this['unitID'],_0xfd1adf))==null?void 0x0:_0x59db5d['name'])!=null?_0x56ac55:_0x4eacc1(0x180),_0x39a1e8={'color':this[_0x4eacc1(0x229)][_0x4eacc1(0x2e8)](_0xfd1adf),'name':_0x18d4bc,'ranges':_0x225eb9},_0x18eb2e=this[_0x4eacc1(0x186)];_0x18eb2e[_0x4eacc1(0x2bc)](_0xfd1adf,_0x39a1e8),this['_cursorInfo$'][_0x4eacc1(0x14b)](_0x18eb2e);}[_0x2f2715(0x189)](_0x3cebf1){const _0x2722a3=_0x2f2715,{memberID:_0x22a9a4}=_0x3cebf1['data'],_0x3e2ffc=this[_0x2722a3(0x186)];_0x3e2ffc[_0x2722a3(0x1e1)](_0x22a9a4),this[_0x2722a3(0x1b4)]['next'](_0x3e2ffc);}['_toggleOnline'](){const _0xa7ca88=_0x2f2715;var _0x2a1af6;if(this[_0xa7ca88(0x1b3)]=!0x0,((_0x2a1af6=this[_0xa7ca88(0x267)][_0xa7ca88(0x18b)]())==null?void 0x0:_0x2a1af6[_0xa7ca88(0x24d)]())!==this['unitID'])return;const _0x36b83b=this[_0xa7ca88(0x2da)][_0xa7ca88(0x2f7)](Y['DocSelectionManagerService'])[_0xa7ca88(0x2d3)]();Array[_0xa7ca88(0x2a2)](_0x36b83b)&&_0x36b83b['length']>0x0&&this[_0xa7ca88(0x39c)](_0x36b83b);}['_toggleOffline'](){const _0xc2ef3e=_0x2f2715;this[_0xc2ef3e(0x1b3)]=!0x1;}};fe=Qe([L(0x2,a[_0x2f2715(0x1e2)](a['Injector'])),L(0x3,a[_0x2f2715(0x1e2)](me)),L(0x4,a['Inject'](u[_0x2f2715(0x24e)])),L(0x5,a[_0x2f2715(0x1e2)](Ce)),L(0x6,m['ITransformService']),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x2f2715(0x35b)])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x3b73e2,_0x318cd1,_0x53e075,_0x53a021)=>{const _0x495e5b=_0x2f2715;for(var _0xdcefb3=_0x53a021>0x1?void 0x0:_0x53a021?st(_0x318cd1,_0x53e075):_0x318cd1,_0x590b06=_0x3b73e2[_0x495e5b(0x159)]-0x1,_0x138968;_0x590b06>=0x0;_0x590b06--)(_0x138968=_0x3b73e2[_0x590b06])&&(_0xdcefb3=_0x138968(_0xdcefb3)||_0xdcefb3);return _0xdcefb3;},w=(_0x31cb58,_0x104326)=>(_0x410f98,_0x320ea2)=>_0x104326(_0x410f98,_0x320ea2,_0x31cb58);const nt=0x12c,rt=0x64,ot=()=>{let _0x5837e7=[],_0x4e85be=!0x1;return _0x158778=>{const _0x1ad991=_0x330b;_0x5837e7[_0x1ad991(0x1f6)](_0x158778),_0x4e85be||(_0x4e85be=!0x0,setTimeout(()=>{const _0x2464ac=_0x1ad991;_0x5837e7[_0x2464ac(0x265)](_0xd1d715=>_0xd1d715()),_0x5837e7=[],_0x4e85be=!0x1;}));};};let Se=class extends a[_0x2f2715(0x33d)]{constructor(_0x234c01,_0x1835cd,_0x3aabfd,_0x57f61c,_0xb3ce6d,_0x3dae83,_0x284080,_0x3a8281){const _0x2e22f1=_0x2f2715;super(),h(this,_0x2e22f1(0x1b3),!0x1),h(this,'_init',!0x1),h(this,_0x2e22f1(0x1b4),new d[(_0x2e22f1(0x388))](new Map())),h(this,_0x2e22f1(0x1af),this[_0x2e22f1(0x1b4)][_0x2e22f1(0x1b6)]()),h(this,_0x2e22f1(0x209),new d[(_0x2e22f1(0x388))]([])),h(this,_0x2e22f1(0x324),this[_0x2e22f1(0x209)][_0x2e22f1(0x231)](d['debounceTime'](nt))),h(this,_0x2e22f1(0x39c),a['debounce']((_0x253143,_0x4020d9)=>{const _0x15d38b=_0x2e22f1,_0x443d83={'eventID':m[_0x15d38b(0x23c)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x15d38b(0x300)]['getMemberID'](),'selection':Ee[_0x15d38b(0x2a3)](_0x253143,_0x4020d9[_0x15d38b(0x257)])}};this[_0x15d38b(0x300)]['send'](_0x443d83,this[_0x15d38b(0x3bb)]);},rt)),(this[_0x2e22f1(0x3bb)]=_0x234c01,this[_0x2e22f1(0x300)]=_0x1835cd,this[_0x2e22f1(0x2da)]=_0x3aabfd,this['_colorAssignService']=_0x57f61c,this[_0x2e22f1(0x325)]=_0xb3ce6d,this[_0x2e22f1(0x267)]=_0x3dae83,this['_commandService']=_0x284080,this[_0x2e22f1(0x1ee)]=_0x3a8281);}get[_0x2f2715(0x186)](){const _0x3f832b=_0x2f2715;return this[_0x3f832b(0x1b4)][_0x3f832b(0x27d)]();}get['roomMembers'](){const _0x50b9ff=_0x2f2715;return this[_0x50b9ff(0x209)][_0x50b9ff(0x27d)]();}[_0x2f2715(0x215)](){const _0x135ddd=_0x2f2715;super[_0x135ddd(0x215)](),this[_0x135ddd(0x1b4)][_0x135ddd(0x14b)](new Map()),this['_cursorInfo$'][_0x135ddd(0x1c4)](),this['_roomMembers$'][_0x135ddd(0x14b)]([]),this[_0x135ddd(0x209)][_0x135ddd(0x1c4)]();}[_0x2f2715(0x347)](){const _0x4805b4=_0x2f2715;this['_init']||(this['_init']=!0x0,this[_0x4805b4(0x300)][_0x4805b4(0x2fb)]['pipe'](d[_0x4805b4(0x378)](this[_0x4805b4(0x23a)]))[_0x4805b4(0x185)](_0x19dab9=>{const _0x3621ec=_0x4805b4;_0x19dab9===u[_0x3621ec(0x2ba)]['ONLINE']?this[_0x3621ec(0x193)]():this['_toggleOffline']();}),this[_0x4805b4(0x300)][_0x4805b4(0x218)][_0x4805b4(0x231)](d['takeUntil'](this['dispose$']))['subscribe'](_0xf9b295=>{const _0x11570b=_0x4805b4,_0x3fddb5=_0xf9b295['eventID'];_0x3fddb5===m[_0x11570b(0x23c)]['UPDATE_CURSOR']&&this[_0x11570b(0x19c)](_0xf9b295),_0x3fddb5===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x11570b(0x189)](_0xf9b295);}),this[_0x4805b4(0x1d9)](),this['disposeWithMe'](this[_0x4805b4(0x19a)][_0x4805b4(0x2ec)](_0x37fe11=>{const _0x3737db=_0x4805b4;if(this[_0x3737db(0x1b3)]&&_0x37fe11['id']===g[_0x3737db(0x2d7)]['id']&&_0x37fe11[_0x3737db(0x203)]['unitId']===this[_0x3737db(0x3bb)]){const _0xf1ab23=_0x37fe11[_0x3737db(0x203)];this['_updateLocalCursor'](_0xf1ab23[_0x3737db(0x1d8)],_0xf1ab23['selections'][0x0]);}})));}[_0x2f2715(0x19c)](_0xb86fc2){const _0x40a14b=_0x2f2715;var _0x15d58e,_0x75d5b8;const {memberID:_0x788a1d,selection:_0x4ad837}=_0xb86fc2['data'],{sheetName:_0x1b6acd,range:_0x4dbb20}=Ee[_0x40a14b(0x178)](_0x4ad837),_0x1264bd={'name':(_0x75d5b8=(_0x15d58e=this['_memberService'][_0x40a14b(0x143)](this['unitID'],_0x788a1d))==null?void 0x0:_0x15d58e[_0x40a14b(0x3bc)])!=null?_0x75d5b8:_0x40a14b(0x180),'range':this['_getMergeRange'](_0x1b6acd,_0x4dbb20),'sheetID':_0x1b6acd,'color':this[_0x40a14b(0x229)]['assignAColorForMemberID'](_0x788a1d),'selection':_0x4ad837},_0x39462e=this[_0x40a14b(0x186)];_0x39462e[_0x40a14b(0x2bc)](_0x788a1d,_0x1264bd),this['_cursorInfo$'][_0x40a14b(0x14b)](_0x39462e);}[_0x2f2715(0x189)](_0x39f1a0){const _0x6c8af6=_0x2f2715,{memberID:_0x3d00f2}=_0x39f1a0['data'],_0x469cd6=this[_0x6c8af6(0x186)];_0x469cd6['delete'](_0x3d00f2),this[_0x6c8af6(0x1b4)][_0x6c8af6(0x14b)](_0x469cd6);}[_0x2f2715(0x145)](_0x188a3d,_0x45e325){const _0x308130=_0x2f2715;var _0x256952,_0x2da93d;const _0x3b3384=(_0x2da93d=(_0x256952=this[_0x308130(0x267)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x256952['getSheetBySheetId'](_0x188a3d))==null?void 0x0:_0x2da93d[_0x308130(0x327)]();return(_0x3b3384==null?void 0x0:_0x3b3384['find'](_0x528f3a=>a[_0x308130(0x214)]['contains'](_0x528f3a,_0x45e325)))||_0x45e325;}['_onRefRangeChange'](){const _0x480fcb=_0x2f2715,_0xa4f4c3=new a['DisposableCollection'](),_0x30022b=ot(),_0xb8c62=()=>{const _0x3cbb04=_0x330b;_0xa4f4c3[_0x3cbb04(0x215)]();const _0x32247f=(_0xeea082,_0x14dfbc,_0x387ac5,_0x3729b8)=>{const _0x228691=_0x3cbb04;let _0x5c627a=[];switch(_0xeea082['id']){case g['EffectRefRangId'][_0x228691(0x1a7)]:{_0x5c627a=g['handleDeleteRangeMoveLeft'](_0xeea082,_0x3729b8);break;}case g[_0x228691(0x33c)][_0x228691(0x35f)]:{_0x5c627a=g['handleDeleteRangeMoveUp'](_0xeea082,_0x3729b8);break;}case g['EffectRefRangId']['InsertColCommandId']:{_0x5c627a=g[_0x228691(0x26c)](_0xeea082,_0x3729b8);break;}case g['EffectRefRangId'][_0x228691(0x1ff)]:{_0x5c627a=g[_0x228691(0x299)](_0xeea082,_0x3729b8);break;}case g['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x5c627a=g[_0x228691(0x34d)](_0xeea082,_0x3729b8);break;}case g[_0x228691(0x33c)][_0x228691(0x377)]:{_0x5c627a=g[_0x228691(0x302)](_0xeea082,_0x3729b8);break;}case g[_0x228691(0x33c)][_0x228691(0x366)]:{_0x5c627a=g['handleMoveRange'](_0xeea082,_0x3729b8);break;}case g[_0x228691(0x33c)][_0x228691(0x32c)]:{_0x5c627a=g[_0x228691(0x354)](_0xeea082,_0x3729b8);break;}case g[_0x228691(0x33c)]['RemoveRowCommandId']:{_0x5c627a=g[_0x228691(0x274)](_0xeea082,_0x3729b8);break;}}const _0x219ff0=g[_0x228691(0x2b9)](_0x5c627a,_0x3729b8),_0x2d4287=this[_0x228691(0x186)][_0x228691(0x2f7)](_0x14dfbc);if(_0x2d4287&&_0x219ff0){const _0x47641c={..._0x2d4287,'range':_0x219ff0};this[_0x228691(0x186)]['set'](_0x14dfbc,_0x47641c),_0x30022b(()=>{const _0x3fd55f=_0x228691,_0x156c25=this[_0x3fd55f(0x1ee)][_0x3fd55f(0x13b)](_0x219ff0,_0x3bded0=>(_0x156c25[_0x3fd55f(0x215)](),_0x32247f(_0x3bded0,_0x14dfbc,_0x387ac5,_0x219ff0)));_0xa4f4c3[_0x3fd55f(0x239)](_0x156c25);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x3cbb04(0x265)]((_0xfd2a2,_0x7e61ba)=>{const _0x10377d=_0x3cbb04,{range:_0xe6e839,sheetID:_0x594785}=_0xfd2a2,_0x40584=this[_0x10377d(0x1ee)][_0x10377d(0x13b)](_0xe6e839,_0x7c3b49=>(_0x40584[_0x10377d(0x215)](),_0x32247f(_0x7c3b49,_0x7e61ba,_0x594785,_0xe6e839)));_0xa4f4c3['add'](_0x40584);});};this[_0x480fcb(0x1d4)](a['toDisposable'](this['_cursorInfo$']['subscribe'](()=>{_0xb8c62();})));}[_0x2f2715(0x193)](){const _0x2adbf8=_0x2f2715;var _0x1e43b3,_0x5cb73c;if(this[_0x2adbf8(0x1b3)]=!0x0,((_0x1e43b3=this[_0x2adbf8(0x267)]['getFocusedUnit']())==null?void 0x0:_0x1e43b3[_0x2adbf8(0x24d)]())!==this[_0x2adbf8(0x3bb)])return;const _0x5ab5e5=(_0x5cb73c=this[_0x2adbf8(0x2da)]['get'](g['SheetsSelectionsService'])[_0x2adbf8(0x2e9)]())==null?void 0x0:_0x5cb73c[0x0],_0x29c494=this['_univerInstanceService']['getCurrentUnitForType'](a['UniverInstanceType']['UNIVER_SHEET'])[_0x2adbf8(0x38b)]();_0x5ab5e5&&_0x29c494&&this[_0x2adbf8(0x39c)](_0x29c494[_0x2adbf8(0x36c)](),_0x5ab5e5);}[_0x2f2715(0x343)](){const _0x36b053=_0x2f2715;this[_0x36b053(0x1b3)]=!0x1;}};Se=it([w(0x2,a[_0x2f2715(0x1e2)](a[_0x2f2715(0x1f1)])),w(0x3,a['Inject'](me)),w(0x4,a[_0x2f2715(0x1e2)](u[_0x2f2715(0x24e)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x2f2715(0x35b)]),w(0x7,a[_0x2f2715(0x1e2)](g['RefRangeService']))],Se);var at=Object[_0x2f2715(0x3a5)],ct=(_0x53b0e5,_0x2f19c3,_0x3ad567,_0x29127d)=>{const _0x4975cd=_0x2f2715;for(var _0x49c774=_0x29127d>0x1?void 0x0:_0x29127d?at(_0x2f19c3,_0x3ad567):_0x2f19c3,_0x463c87=_0x53b0e5[_0x4975cd(0x159)]-0x1,_0x4e87c6;_0x463c87>=0x0;_0x463c87--)(_0x4e87c6=_0x53b0e5[_0x463c87])&&(_0x49c774=_0x4e87c6(_0x49c774)||_0x49c774);return _0x49c774;},ie=(_0x5c3786,_0x1c7815)=>(_0x1b56c2,_0x4143e3)=>_0x1c7815(_0x1b56c2,_0x4143e3,_0x5c3786);let x=class extends a[_0x2f2715(0x33d)]{constructor(_0x5945c9,_0x234f6d,_0x1ba479){const _0xe30953=_0x2f2715;super(),h(this,_0xe30953(0x19e),new Map()),h(this,'_entityInit$',new d[(_0xe30953(0x375))]()),(this[_0xe30953(0x267)]=_0x5945c9,this['_injector']=_0x234f6d,this[_0xe30953(0x397)]=_0x1ba479,this[_0xe30953(0x1cb)]());}[_0x2f2715(0x215)](){const _0x309656=_0x2f2715;super[_0x309656(0x215)](),this[_0x309656(0x320)][_0x309656(0x1c4)](),this[_0x309656(0x19e)]['forEach'](_0x3934d7=>_0x3934d7[_0x309656(0x215)]());}[_0x2f2715(0x21f)](_0x30d98f){const _0x574538=_0x2f2715;return this['_entities'][_0x574538(0x156)](_0x30d98f)?this[_0x574538(0x19e)][_0x574538(0x2f7)](_0x30d98f)[_0x574538(0x1af)]:this['_entityInit$'][_0x574538(0x231)](d[_0x574538(0x1ef)](_0x5c584b=>_0x5c584b[_0x574538(0x3bb)]===_0x30d98f),d[_0x574538(0x2fd)](_0x514bf4=>_0x514bf4[_0x574538(0x1af)]));}[_0x2f2715(0x1cb)](){const _0x528119=_0x2f2715;this[_0x528119(0x267)][_0x528119(0x278)](a[_0x528119(0x17a)][_0x528119(0x3a9)])[_0x528119(0x231)](d['takeUntil'](this['dispose$']))[_0x528119(0x185)](async _0x59e26f=>{const _0x5ec17b=_0x528119,_0x2aabfb=_0x59e26f[_0x5ec17b(0x24d)](),_0x3d28c5=await this[_0x5ec17b(0x169)](_0x2aabfb);this[_0x5ec17b(0x320)][_0x5ec17b(0x14b)](_0x3d28c5),this[_0x5ec17b(0x19e)][_0x5ec17b(0x2bc)](_0x2aabfb,_0x3d28c5);}),this[_0x528119(0x267)][_0x528119(0x278)](a['UniverInstanceType'][_0x528119(0x223)])[_0x528119(0x231)](d[_0x528119(0x378)](this[_0x528119(0x23a)]))[_0x528119(0x231)](d[_0x528119(0x1ef)](_0x124e15=>!_0x124e15[_0x528119(0x24d)]()[_0x528119(0x22e)]('__')))[_0x528119(0x185)](async _0x1b17a3=>{const _0xbafcd1=_0x528119,_0x3a06aa=_0x1b17a3[_0xbafcd1(0x24d)](),_0x46371a=await this[_0xbafcd1(0x1da)](_0x3a06aa);this['_entityInit$'][_0xbafcd1(0x14b)](_0x46371a),this[_0xbafcd1(0x19e)][_0xbafcd1(0x2bc)](_0x3a06aa,_0x46371a);}),d['merge'](this[_0x528119(0x267)][_0x528119(0x293)](a['UniverInstanceType'][_0x528119(0x223)]),this[_0x528119(0x267)][_0x528119(0x293)](a[_0x528119(0x17a)][_0x528119(0x3a9)]))[_0x528119(0x231)](d['takeUntil'](this[_0x528119(0x23a)]))[_0x528119(0x185)](_0x46eda1=>{const _0x5e09e5=_0x528119,_0x3ee4d8=_0x46eda1[_0x5e09e5(0x24d)](),_0x32f682=this[_0x5e09e5(0x19e)][_0x5e09e5(0x2f7)](_0x3ee4d8);_0x32f682&&(_0x32f682[_0x5e09e5(0x215)](),this[_0x5e09e5(0x19e)][_0x5e09e5(0x1e1)](_0x3ee4d8));});}async['_startSheetCollabCursor'](_0xf3b539){const _0x39d81e=_0x2f2715,_0x50fbb3=await this[_0x39d81e(0x397)][_0x39d81e(0x25a)](_0xf3b539),_0xd315d1=this['_injector'][_0x39d81e(0x290)](Se,_0xf3b539,_0x50fbb3);return _0xd315d1[_0x39d81e(0x347)](),_0xd315d1;}async[_0x2f2715(0x1da)](_0x27d25f){const _0x21cb40=_0x2f2715,_0x40f538=await this[_0x21cb40(0x397)][_0x21cb40(0x25a)](_0x27d25f),_0x528231=this['_injector']['createInstance'](fe,_0x27d25f,_0x40f538);return _0x528231[_0x21cb40(0x347)](),_0x528231;}};x=ct([ie(0x0,a[_0x2f2715(0x383)]),ie(0x1,a['Inject'](a[_0x2f2715(0x1f1)])),ie(0x2,a['Inject'](u[_0x2f2715(0x153)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x522751,_0x123506){const _0x5b5dac=_0x2f2715;let {radius:_0x115ada,width:_0x5a5a71,height:_0x4810c8}=_0x123506;_0x115ada=_0x115ada!=null?_0x115ada:0x0,_0x5a5a71=_0x5a5a71!=null?_0x5a5a71:0x1e,_0x4810c8=_0x4810c8!=null?_0x4810c8:0x1e;let _0x19c4af=0x0,_0x2d5fd2=0x0,_0x4fefdb=0x0;_0x19c4af=_0x2d5fd2=_0x4fefdb=Math[_0x5b5dac(0x295)](_0x115ada,_0x5a5a71/0x2,_0x4810c8/0x2),_0x522751[_0x5b5dac(0x1fd)](),_0x522751[_0x5b5dac(0x254)](_0x19c4af,0x0),_0x522751[_0x5b5dac(0x291)](_0x5a5a71-_0x2d5fd2,0x0),_0x522751[_0x5b5dac(0x2cd)](_0x5a5a71-_0x2d5fd2,_0x2d5fd2,_0x2d5fd2,Math['PI']*0x3/0x2,0x0,!0x1),_0x522751['lineTo'](_0x5a5a71,_0x4810c8-_0x4fefdb),_0x522751['arc'](_0x5a5a71-_0x4fefdb,_0x4810c8-_0x4fefdb,_0x4fefdb,0x0,Math['PI']/0x2,!0x1),_0x522751['lineTo'](0x0,_0x4810c8),_0x522751['lineTo'](0x0,_0x19c4af),_0x522751[_0x5b5dac(0x2cd)](_0x19c4af,_0x19c4af,_0x19c4af,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x522751[_0x5b5dac(0x329)](),_0x123506[_0x5b5dac(0x338)]&&(_0x522751[_0x5b5dac(0x233)](),_0x522751[_0x5b5dac(0x334)]=_0x123506[_0x5b5dac(0x338)],_0x123506[_0x5b5dac(0x359)]===_0x5b5dac(0x2c3)?_0x522751[_0x5b5dac(0x338)](_0x5b5dac(0x2c3)):_0x522751['fill'](),_0x522751[_0x5b5dac(0x312)]());}class ee extends p[_0x2f2715(0x2b5)]{constructor(_0x87a324,_0x1d5414){const _0x12b6e9=_0x2f2715;super(_0x87a324,_0x1d5414),h(this,_0x12b6e9(0x244)),h(this,_0x12b6e9(0x1a2)),(this[_0x12b6e9(0x244)]=_0x1d5414==null?void 0x0:_0x1d5414[_0x12b6e9(0x244)],this['text']=_0x1d5414==null?void 0x0:_0x1d5414[_0x12b6e9(0x1a2)]);}static[_0x2f2715(0x328)](_0x336e57,_0x34da80){const _0x136764=_0x2f2715,{text:_0x4b9b6b,color:_0x3a4fc2}=_0x34da80;_0x336e57[_0x136764(0x233)](),_0x336e57[_0x136764(0x16b)]=_0x136764(0x2c0);const _0x69d1d5=_0x336e57['measureText'](_0x4b9b6b)['width'],_0x506ba9=Math[_0x136764(0x295)](_0x69d1d5+0x2*ne,Re);_t(_0x336e57,{'height':K,'radius':0x4,'width':_0x506ba9,'fill':_0x3a4fc2}),_0x336e57[_0x136764(0x334)]=_0x136764(0x2c2);const _0x3f992d=ne,_0x220a7d=K-lt,_0x103a10=Re-0x2*ne;if(_0x69d1d5>_0x103a10){let _0x48a414='',_0x508f15=0x0;for(const _0x18fe36 of _0x4b9b6b){const _0x1da21d=_0x336e57[_0x136764(0x31b)](_0x18fe36)[_0x136764(0x2f4)];if(_0x508f15+_0x1da21d<=_0x103a10-_0x336e57[_0x136764(0x31b)](_0x136764(0x21a))['width'])_0x48a414+=_0x18fe36,_0x508f15+=_0x1da21d;else{_0x48a414+=_0x136764(0x21a);break;}}_0x336e57['fillText'](_0x48a414,_0x3f992d,_0x220a7d);}else _0x336e57[_0x136764(0x263)](_0x4b9b6b,_0x3f992d,_0x220a7d);_0x336e57[_0x136764(0x312)]();}['_draw'](_0x3a0188){const _0x448e53=_0x2f2715;ee[_0x448e53(0x328)](_0x3a0188,this);}}const re=_0x2f2715(0x13d),ht=_0x2f2715(0x2fe),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x2f2715(0x266);class De{constructor(_0x2c8226,_0x132f3b,_0x242d07,_0x1728e3){const _0xa07731=_0x2f2715;h(this,_0xa07731(0x391),[]),h(this,_0xa07731(0x217),null),h(this,'_textBubble',null),h(this,_0xa07731(0x2c6),null),h(this,_0xa07731(0x259),null),h(this,_0xa07731(0x1d5),null),(this[_0xa07731(0x2c8)]=_0x2c8226,this[_0xa07731(0x1d3)]=_0x132f3b,this[_0xa07731(0x1d2)]=_0x242d07,this[_0xa07731(0x1fb)]=_0x1728e3,this[_0xa07731(0x2f8)]());}set[_0x2f2715(0x252)](_0x27079c){const _0x144c2f=_0x2f2715;_0x27079c?(this[_0x144c2f(0x2c6)]&&this[_0x144c2f(0x2c6)][_0x144c2f(0x240)](),this[_0x144c2f(0x1cd)]&&this[_0x144c2f(0x1cd)][_0x144c2f(0x2b6)]()):(this[_0x144c2f(0x2c6)]&&this['_anchorDot'][_0x144c2f(0x2b6)](),this[_0x144c2f(0x1cd)]&&this[_0x144c2f(0x1cd)][_0x144c2f(0x240)]());}[_0x2f2715(0x215)](){const _0x2f3d9e=_0x2f2715;for(const _0x2f5c7f of this['_shapes'])_0x2f5c7f[_0x2f3d9e(0x215)]();this[_0x2f3d9e(0x1cd)]&&this[_0x2f3d9e(0x1cd)]['dispose'](),this[_0x2f3d9e(0x2c6)]&&this[_0x2f3d9e(0x2c6)][_0x2f3d9e(0x215)](),this[_0x2f3d9e(0x217)]&&this['_anchor'][_0x2f3d9e(0x215)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x2f2715(0x2f8)](){const _0x1e9382=_0x2f2715;var _0xf5bbda;const {_docSkeleton:_0x5a222f,_document:_0x158c2f}=this,{color:_0x8032bc,name:_0x423699,ranges:_0x219a9d}=this[_0x1e9382(0x2c8)],_0x48c117=_0x158c2f[_0x1e9382(0x191)](),{docsLeft:_0x2b3b18,docsTop:_0x4569cf}=_0x48c117,_0x20f77c=new b[(_0x1e9382(0x149))](_0x48c117,_0x5a222f);for(const {startOffset:_0x44d275,endOffset:_0x4bf302,rangeType:_0x152576,segmentId:_0x3d42d1,segmentPage:_0x16c240,collapsed:_0x3e6025,isActive:_0x46e3bd}of _0x219a9d){const _0x3bc798=_0x5a222f[_0x1e9382(0x33b)](_0x44d275,!0x0,_0x3d42d1,_0x16c240);let _0x1a35ff=_0x5a222f['findNodePositionByCharIndex'](_0x4bf302,!0x0,_0x3d42d1,_0x16c240);if(_0x1a35ff==null&&(_0x1a35ff=_0x5a222f[_0x1e9382(0x33b)](_0x4bf302-0x1,!0x1,_0x3d42d1,_0x16c240)),_0x46e3bd){const {contentBoxPointGroup:_0x42f4a5}=_0x20f77c[_0x1e9382(0x1e9)](_0x1a35ff,_0x1a35ff);if(_0x42f4a5[_0x1e9382(0x159)]===0x0)continue;this[_0x1e9382(0x18c)](_0x8032bc,_0x42f4a5,_0x2b3b18,_0x4569cf,_0x423699),this['_eventUnsubscribe']=this[_0x1e9382(0x26e)]();}if(_0x3bc798&&_0x1a35ff){if(_0x152576===a[_0x1e9382(0x175)][_0x1e9382(0x2a0)]){const _0xfcf26a=new b[(_0x1e9382(0x14a))](_0x48c117,_0x5a222f),{pointGroup:_0x87e9a7}=(_0xf5bbda=_0xfcf26a[_0x1e9382(0x1e9)](_0x3bc798,_0x1a35ff))!=null?_0xf5bbda:{};if(_0x87e9a7==null||_0x87e9a7[_0x1e9382(0x159)]===0x0)continue;this[_0x1e9382(0x1ea)](_0x8032bc,_0x87e9a7,_0x2b3b18,_0x4569cf);}else{if(!_0x3e6025){const {borderBoxPointGroup:_0x1e537d}=_0x20f77c['getRangePointData'](_0x3bc798,_0x1a35ff);if(_0x1e537d[_0x1e9382(0x159)]===0x0)continue;this['_drawTextRange'](_0x8032bc,_0x1e537d,_0x2b3b18,_0x4569cf);}}}}}['_drawAnchor'](_0x37990b,_0x3f2bdd,_0x2e03e1,_0x24b1fc,_0x5709ae){const _0x21c7cc=_0x2f2715,_0x57c644=this[_0x21c7cc(0x2b0)](_0x3f2bdd),{left:_0x13886f,top:_0x414476,height:_0x1f4fce}=_0x57c644,_0x3d9aa8=this[_0x21c7cc(0x32e)](),_0x157974=ft/_0x3d9aa8,_0x51182c=new p['Rect'](re+a[_0x21c7cc(0x196)][_0x21c7cc(0x160)](k),{'left':_0x13886f+_0x2e03e1-_0x157974,'top':_0x414476+_0x24b1fc,'height':_0x1f4fce,'width':dt,'fill':_0x37990b||p['getColor'](a['COLORS']['black'],0x0),'strokeWidth':_0x157974,'stroke':St,'evented':!0x0});this[_0x21c7cc(0x217)]=_0x51182c,this['_scene'][_0x21c7cc(0x207)](_0x51182c,b[_0x21c7cc(0x352)]);const _0x9526aa=new p['Rect'](re+a['Tools']['generateRandomId'](k),{'left':_0x13886f+_0x2e03e1-_0x157974,'top':_0x414476+_0x24b1fc-oe/0x2,'height':oe,'width':oe,'fill':_0x37990b||p[_0x21c7cc(0x163)](a[_0x21c7cc(0x154)][_0x21c7cc(0x1c7)],0x0),'strokeWidth':0x0,'stroke':_0x37990b||p[_0x21c7cc(0x163)](a[_0x21c7cc(0x154)][_0x21c7cc(0x1c7)],0x0),'evented':!0x1});this[_0x21c7cc(0x2c6)]=_0x9526aa,this[_0x21c7cc(0x1d3)][_0x21c7cc(0x207)](_0x9526aa,b[_0x21c7cc(0x352)]);const _0x3a891e=new ee(re+a[_0x21c7cc(0x196)][_0x21c7cc(0x160)](k),{'left':_0x13886f+_0x2e03e1-_0x157974,'top':_0x414476+_0x24b1fc-K,'text':_0x5709ae,'color':_0x37990b});this[_0x21c7cc(0x1cd)]=_0x3a891e,this[_0x21c7cc(0x1d3)]['addObject'](_0x3a891e,b[_0x21c7cc(0x352)]),this[_0x21c7cc(0x252)]=!0x1;}['_handleHover'](){const _0x298ee1=_0x2f2715,_0x586880=this[_0x298ee1(0x217)]['onPointerEnter$'][_0x298ee1(0x1a0)](()=>{this['_hover']=!0x0;}),_0x4d08f5=this[_0x298ee1(0x217)][_0x298ee1(0x36d)][_0x298ee1(0x1a0)](()=>{const _0x2ed8b3=_0x298ee1;this['_hideTimer']&&clearTimeout(this[_0x2ed8b3(0x259)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x56a82e=_0x298ee1;_0x586880[_0x56a82e(0x319)](),_0x4d08f5[_0x56a82e(0x319)]();};}[_0x2f2715(0x158)](_0x22285b,_0x52ada2,_0x4b403b,_0x9ac839){const _0x149a10=_0x2f2715,_0x51ab9a=new a['ColorKit'](_0x22285b)[_0x149a10(0x37f)](0.2)['toRgbString'](),_0x2060c6=new p['RegularPolygon'](ht+a['Tools'][_0x149a10(0x160)](k),{'pointsGroup':_0x52ada2,'fill':_0x51ab9a||p['getColor'](a[_0x149a10(0x154)][_0x149a10(0x1c7)],0.2),'left':_0x4b403b,'top':_0x9ac839,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x149a10(0x391)]['push'](_0x2060c6),this[_0x149a10(0x1d3)][_0x149a10(0x207)](_0x2060c6,b['TEXT_RANGE_LAYER_INDEX']);}[_0x2f2715(0x1ea)](_0x40d4a4,_0x2c5ce6,_0x3ee2e8,_0x2f79c9){const _0x253baa=_0x2f2715,_0x230b62=new a['ColorKit'](_0x40d4a4)[_0x253baa(0x37f)](0.2)[_0x253baa(0x2ae)](),_0x23983e=new p[(_0x253baa(0x170))](ut+a[_0x253baa(0x196)][_0x253baa(0x160)](k),{'pointsGroup':_0x2c5ce6,'fill':_0x230b62||p[_0x253baa(0x163)](a[_0x253baa(0x154)][_0x253baa(0x1c7)],0.2),'left':_0x3ee2e8,'top':_0x2f79c9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x253baa(0x391)][_0x253baa(0x1f6)](_0x23983e),this[_0x253baa(0x1d3)][_0x253baa(0x207)](_0x23983e,b[_0x253baa(0x352)]);}[_0x2f2715(0x2b0)](_0x4bfd10){const _0x3f9941=_0x4bfd10[0x0],_0x26c65e=_0x3f9941[0x0],_0x399787=_0x3f9941[0x2],{x:_0x3932c4,y:_0x1dddef}=_0x26c65e,{x:_0x1abaea,y:_0x5aead7}=_0x399787;return{'left':_0x3932c4,'top':_0x1dddef,'width':_0x1abaea-_0x3932c4,'height':_0x5aead7-_0x1dddef};}['_getScale'](){const {scaleX:_0x4f34b9,scaleY:_0x4333e9}=this['_scene']['getAncestorScale']();return Math['max'](_0x4f34b9,_0x4333e9);}}var It=Object[_0x2f2715(0x3a5)],vt=(_0x1c2bad,_0x4e1528,_0x1a0b6f,_0x3a4e9a)=>{const _0x29b9e1=_0x2f2715;for(var _0x58d880=_0x3a4e9a>0x1?void 0x0:_0x3a4e9a?It(_0x4e1528,_0x1a0b6f):_0x4e1528,_0x3d80e8=_0x1c2bad[_0x29b9e1(0x159)]-0x1,_0x2e596b;_0x3d80e8>=0x0;_0x3d80e8--)(_0x2e596b=_0x1c2bad[_0x3d80e8])&&(_0x58d880=_0x2e596b(_0x58d880)||_0x58d880);return _0x58d880;},W=(_0x2d3d9c,_0xc300f1)=>(_0xce2c1f,_0x4978e5)=>_0xc300f1(_0xce2c1f,_0x4978e5,_0x2d3d9c);function _0x330b(_0x207e74,_0x9a91f2){const _0xdf2577=_0xdf25();return _0x330b=function(_0x330bcb,_0x1f4f12){_0x330bcb=_0x330bcb-0x138;let _0x30b0d6=_0xdf2577[_0x330bcb];return _0x30b0d6;},_0x330b(_0x207e74,_0x9a91f2);}let Ie=class extends a[_0x2f2715(0x33d)]{constructor(_0x1a0213,_0x2cbac8,_0x2d1a34,_0x28acb4,_0x33a4e5){const _0x1f8e15=_0x2f2715;super(),h(this,_0x1f8e15(0x256),[]),h(this,_0x1f8e15(0x2ab),[]),(this[_0x1f8e15(0x25c)]=_0x1a0213,this[_0x1f8e15(0x29d)]=_0x2cbac8,this[_0x1f8e15(0x179)]=_0x2d1a34,this[_0x1f8e15(0x19a)]=_0x28acb4,this[_0x1f8e15(0x13e)]=_0x33a4e5,this[_0x1f8e15(0x1cb)]());}[_0x2f2715(0x1cb)](){const _0x48f8ed=_0x2f2715,_0x34d555=this[_0x48f8ed(0x25c)][_0x48f8ed(0x17b)],_0x4670d2=this[_0x48f8ed(0x29d)];this[_0x48f8ed(0x1d4)](d[_0x48f8ed(0x15d)]([this[_0x48f8ed(0x179)][_0x48f8ed(0x21f)](_0x34d555),this['_themeService'][_0x48f8ed(0x1dd)]])[_0x48f8ed(0x231)]($[_0x48f8ed(0x31d)](([_0x3e09f4,_0x3aa6f0])=>({'skeleton':_0x4670d2[_0x48f8ed(0x376)](),'cursors':[..._0x3e09f4[_0x48f8ed(0x25e)]()][_0x48f8ed(0x2f2)](_0x26fe7b=>({..._0x26fe7b,'color':this[_0x48f8ed(0x13e)][_0x48f8ed(0x146)](_0x26fe7b[_0x48f8ed(0x244)])}))})))[_0x48f8ed(0x185)](_0x107a78=>{const _0x4fd780=_0x48f8ed;if(this[_0x4fd780(0x225)](),_0x107a78){const {skeleton:_0x5ce53d,cursors:_0x353071}=_0x107a78;this[_0x4fd780(0x1f3)](_0x5ce53d,_0x353071);}})),this[_0x48f8ed(0x273)](),this[_0x48f8ed(0x192)]();}[_0x2f2715(0x1f3)](_0x40e1ca,_0x47990e){const _0x340934=_0x2f2715,{scene:_0x7cce5a,mainComponent:_0x499e45}=this[_0x340934(0x25c)],_0x597490=_0x47990e[_0x340934(0x31d)](_0x5a4ae7=>new De(_0x5a4ae7,_0x7cce5a,_0x40e1ca,_0x499e45));this[_0x340934(0x256)]=_0x597490,this[_0x340934(0x2ab)]=_0x47990e;}[_0x2f2715(0x317)](){const _0x525339=_0x2f2715;this[_0x525339(0x225)]();const {scene:_0x2ec263,mainComponent:_0x4693b5}=this[_0x525339(0x25c)],_0x4df5e1=this[_0x525339(0x29d)][_0x525339(0x376)](),_0x59fe77=this[_0x525339(0x2ab)][_0x525339(0x31d)](_0x270193=>new De(_0x270193,_0x2ec263,_0x4df5e1,_0x4693b5));this[_0x525339(0x256)]=_0x59fe77;}[_0x2f2715(0x225)](){const _0x48c723=_0x2f2715;this['_cursorShapes']['forEach'](_0x1d96f9=>_0x1d96f9[_0x48c723(0x215)]()),this[_0x48c723(0x256)]=[];}[_0x2f2715(0x192)](){const _0x4479ea=_0x2f2715,_0x12f302=[b['SetDocZoomRatioOperation']['id']];this[_0x4479ea(0x1d4)](this['_commandService'][_0x4479ea(0x2ec)](_0x2e16f7=>{const _0x437fbe=_0x4479ea;_0x12f302[_0x437fbe(0x14f)](_0x2e16f7['id'])&&_0x2e16f7['params'][_0x437fbe(0x17b)]===this['_context'][_0x437fbe(0x17b)]&&this[_0x437fbe(0x317)]();}));}[_0x2f2715(0x273)](){const _0x14aa03=_0x2f2715;this[_0x14aa03(0x1d4)](a[_0x14aa03(0x33a)](this[_0x14aa03(0x25c)]['engine'][_0x14aa03(0x211)])[_0x14aa03(0x231)]($[_0x14aa03(0x1ef)](_0x1eab47=>_0x1eab47[_0x14aa03(0x2e7)]===p[_0x14aa03(0x25f)][_0x14aa03(0x2f0)]),$[_0x14aa03(0x2c7)](0x10))['subscribe'](()=>{const _0x2627cc=_0x14aa03;this[_0x2627cc(0x317)]();}));}};Ie=vt([W(0x1,a[_0x2f2715(0x1e2)](Y[_0x2f2715(0x1a8)])),W(0x2,a[_0x2f2715(0x1e2)](x)),W(0x3,a[_0x2f2715(0x35b)]),W(0x4,a[_0x2f2715(0x1e2)](a['ThemeService']))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x2f2715(0x2b5)]{constructor(_0x2d9fa9,_0x4d617d){const _0x5ea94a=_0x2f2715;super(_0x2d9fa9,_0x4d617d),h(this,'_color'),h(this,_0x5ea94a(0x18d),!0x1),h(this,_0x5ea94a(0x27e)),h(this,'_name',''),h(this,_0x5ea94a(0x258),_0x5ea94a(0x13a)),h(this,_0x5ea94a(0x1db)),(_0x4d617d&&this[_0x5ea94a(0x1b8)](_0x4d617d),this[_0x5ea94a(0x226)][_0x5ea94a(0x1a0)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x5ea94a(0x36d)][_0x5ea94a(0x1a0)](()=>this[_0x5ea94a(0x1b8)]({'hovered':!0x1})));}[_0x2f2715(0x1b8)](_0x320572){const _0x1669f5=_0x2f2715;var _0x118bce,_0x5a7342,_0x2320b6,_0x4c8f23,_0x2d090a,_0x4f733a;this['_color']=(_0x118bce=_0x320572[_0x1669f5(0x244)])!=null?_0x118bce:this[_0x1669f5(0x16a)],this[_0x1669f5(0x18d)]=(_0x5a7342=_0x320572['hovered'])!=null?_0x5a7342:this[_0x1669f5(0x18d)],this[_0x1669f5(0x27e)]=(_0x2320b6=_0x320572[_0x1669f5(0x257)])!=null?_0x2320b6:this[_0x1669f5(0x27e)],this[_0x1669f5(0x26a)]=(_0x4c8f23=_0x320572[_0x1669f5(0x3bc)])!=null?_0x4c8f23:this[_0x1669f5(0x26a)],this[_0x1669f5(0x258)]=(_0x2d090a=_0x320572['labelPosition'])!=null?_0x2d090a:this[_0x1669f5(0x258)],this['_backgroundColor']=(_0x4f733a=_0x320572[_0x1669f5(0x2bf)])!=null?_0x4f733a:this[_0x1669f5(0x1db)],this[_0x1669f5(0x331)]({'width':_0x320572[_0x1669f5(0x2f4)],'height':_0x320572[_0x1669f5(0x389)]});}[_0x2f2715(0x255)](_0xd6c294){const _0x352269=_0x2f2715,{row:_0x47b99d,column:_0xdcf965}=_0xd6c294;if(_0x47b99d>=this[_0x352269(0x27e)][_0x352269(0x1ed)]&&_0x47b99d<=this[_0x352269(0x27e)][_0x352269(0x176)]&&_0xdcf965>=this[_0x352269(0x27e)][_0x352269(0x311)]&&_0xdcf965<=this[_0x352269(0x27e)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x352269(0x1b8)]({'hovered':!0x1});}['triggerDblclick'](_0x34fefc){return!0x1;}[_0x2f2715(0x35e)](_0x1badc4){const _0x3817ed=_0x2f2715;p[_0x3817ed(0x26b)][_0x3817ed(0x328)](_0x1badc4,{'width':this['width'],'height':this[_0x3817ed(0x389)],'strokeWidth':mt,'stroke':this[_0x3817ed(0x16a)],'evented':!0x1,'fill':this[_0x3817ed(0x1db)]}),this[_0x3817ed(0x18d)]&&(_0x1badc4['save'](),_0x1badc4[_0x3817ed(0x1f2)](0x1,0x0,0x0,0x1,this[_0x3817ed(0x2f4)],this[_0x3817ed(0x258)]==='bottom'?0x0:-0x14),ee[_0x3817ed(0x328)](_0x1badc4,{'text':this[_0x3817ed(0x26a)],'color':this[_0x3817ed(0x16a)]}),_0x1badc4[_0x3817ed(0x312)]());}}var Ct=Object[_0x2f2715(0x3a5)],pt=(_0x20eb19,_0x439056,_0x1b494e,_0x1b3038)=>{for(var _0x306add=_0x1b3038>0x1?void 0x0:_0x1b3038?Ct(_0x439056,_0x1b494e):_0x439056,_0x1516bc=_0x20eb19['length']-0x1,_0x2e6b6e;_0x1516bc>=0x0;_0x1516bc--)(_0x2e6b6e=_0x20eb19[_0x1516bc])&&(_0x306add=_0x2e6b6e(_0x306add)||_0x306add);return _0x306add;},ae=(_0x2af1dc,_0x19d899)=>(_0x13eb59,_0xb6c6a0)=>_0x19d899(_0x13eb59,_0xb6c6a0,_0x2af1dc);const bt=0x1389;let ve=class extends a[_0x2f2715(0x33d)]{constructor(_0x2d1599,_0x26cd02,_0x26695a,_0x1c8077){const _0x42e66b=_0x2f2715;super(),h(this,_0x42e66b(0x2ab),new Set()),h(this,'_lastPointer',null),(this['_context']=_0x2d1599,this[_0x42e66b(0x3b6)]=_0x26cd02,this['_collabCursorController']=_0x26695a,this[_0x42e66b(0x13e)]=_0x1c8077,this['_init']());}['_init'](){const _0x3de13a=_0x2f2715;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x3de13a(0x231)]($['takeUntil'](this[_0x3de13a(0x23a)]),$[_0x3de13a(0x2fd)](_0x56863d=>{const _0x3e4684=_0x3de13a;if(_0x56863d){const _0x2835f3=_0x56863d[_0x3e4684(0x1c3)];return d[_0x3e4684(0x15d)](this['_collabCursorController']['getCollabCursors$'](this[_0x3e4684(0x25c)][_0x3e4684(0x17b)]),this[_0x3e4684(0x13e)][_0x3e4684(0x1dd)])[_0x3e4684(0x231)]($[_0x3e4684(0x31d)](([_0x106b42,_0x41c251])=>{const _0x389e98=new Map();return _0x106b42['forEach']((_0x2dff49,_0x2b3af0)=>{const _0x5a2497=_0x330b;if(_0x2dff49[_0x5a2497(0x360)]===_0x2835f3){const _0x2ba958={..._0x2dff49};_0x2ba958[_0x5a2497(0x244)]=this[_0x5a2497(0x13e)][_0x5a2497(0x146)](_0x2dff49[_0x5a2497(0x244)]),_0x389e98[_0x5a2497(0x2bc)](_0x2b3af0,_0x2ba958);}}),{'skeleton':_0x56863d,'cursors':_0x389e98};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3de13a(0x185)](({skeleton:_0x2ab6f9,cursors:_0x1e516e})=>{const _0x16e9e5=_0x3de13a;this[_0x16e9e5(0x225)](),_0x2ab6f9&&this['_updateCollabCursors'](_0x2ab6f9,_0x1e516e);}),this['_sheetSkeletonManagerService'][_0x3de13a(0x342)][_0x3de13a(0x185)](_0x56e39f=>{const _0x294707=_0x3de13a;if(_0x56e39f==null)return;const {skeleton:_0x5b7dfb}=_0x56e39f,{scene:_0x4276bf}=this[_0x294707(0x25c)];_0x4276bf['onPointerMove$'][_0x294707(0x1a0)](a[_0x294707(0x14c)](_0x44c596=>{const _0x522795=_0x294707;var _0x292e5f,_0x5c1c15;const {offsetX:_0x2699c1,offsetY:_0x3d4748}=_0x44c596,{x:_0x5c0174,y:_0x5a5762}=_0x4276bf[_0x522795(0x1f4)](p[_0x522795(0x2d8)]['FromArray']([_0x2699c1,_0x3d4748])),{scaleX:_0x55a036,scaleY:_0x116a5a}=_0x4276bf[_0x522795(0x2cb)](),_0x124efd=_0x4276bf[_0x522795(0x276)](p[_0x522795(0x34b)][_0x522795(0x36b)]),_0x5a9db4=_0x4276bf['getVpScrollXYInfoByPosToVp'](p['Vector2'][_0x522795(0x1c1)]([_0x5c0174,_0x5a5762]),_0x124efd),_0x4e3ea9=_0x5b7dfb['getCellPositionByOffset'](_0x2699c1,_0x3d4748,_0x55a036,_0x116a5a,_0x5a9db4);((_0x292e5f=this['_lastPointer'])==null?void 0x0:_0x292e5f[_0x522795(0x1a6)])===_0x4e3ea9[_0x522795(0x1a6)]&&((_0x5c1c15=this['_lastPointer'])==null?void 0x0:_0x5c1c15['row'])===_0x4e3ea9['row']||this[_0x522795(0x2ab)][_0x522795(0x265)](_0x2ca52a=>{const _0x49548d=_0x522795;_0x2ca52a[_0x49548d(0x255)](_0x4e3ea9);});},0x64));});}[_0x2f2715(0x1f3)](_0x21a189,_0xc9130a){const _0x28f12c=_0x2f2715;var _0x4b98d4;const _0x22222d=(_0x4b98d4=this[_0x28f12c(0x3b6)][_0x28f12c(0x301)]())==null?void 0x0:_0x4b98d4[_0x28f12c(0x3a4)];if(!_0x22222d)return;const _0x4ea929=this[_0x28f12c(0x1a1)]();if(!_0x4ea929)return;this[_0x28f12c(0x2ab)][_0x28f12c(0x265)](_0x4f11a8=>{const _0x4ea821=_0x28f12c;_0x4f11a8[_0x4ea821(0x28a)]();});const {scene:_0x44e340}=_0x4ea929,_0x2eaab9=Et(Array[_0x28f12c(0x2d0)](_0xc9130a[_0x28f12c(0x25e)]()))[_0x28f12c(0x31d)](_0x217dbb=>{const _0x4d9a0a=_0x28f12c,{color:_0x5948a1,range:_0x420ee7,name:_0x9fbc1f,selection:_0x1628b1,sheetID:_0x36e201}=_0x217dbb,{startColumn:_0x3e7957,startRow:_0x38e278,endColumn:_0x24060f,endRow:_0x301fca}=_0x420ee7,_0x287294=X[_0x4d9a0a(0x3b4)](_0x38e278,_0x3e7957,_0x44e340,_0x22222d),_0x1bf916=X[_0x4d9a0a(0x3b4)](_0x301fca,_0x24060f,_0x44e340,_0x22222d),{columnHeaderHeightAndMarginTop:_0x13d019}=_0x22222d,{startX:_0x2561ad,startY:_0x5d4500}=_0x287294,{endX:_0x26a30b,endY:_0x583922}=_0x1bf916,_0x59421f=_0x26a30b-_0x2561ad,_0x574beb=_0x583922-_0x5d4500,_0x5f40f9={'labelPosition':_0x5d4500-_0x13d019>=K?_0x4d9a0a(0x13a):'bottom','sheetID':_0x36e201,'range':_0x420ee7,'color':_0x5948a1,'name':_0x9fbc1f,'selection':_0x1628b1,'left':_0x2561ad,'top':_0x5d4500,'width':_0x59421f,'height':_0x574beb,'evented':!0x1,'zIndex':bt};return new Ae(_0x9fbc1f,_0x5f40f9);});_0x44e340[_0x28f12c(0x1bf)](_0x2eaab9,gt),this[_0x28f12c(0x2ab)]=new Set(_0x2eaab9);}[_0x2f2715(0x225)](){const _0x4f58a1=_0x2f2715;var _0x492976;(_0x492976=this[_0x4f58a1(0x2ab)])==null||_0x492976[_0x4f58a1(0x265)](_0x262d85=>_0x262d85['dispose']());}[_0x2f2715(0x1a1)](){const _0x3bdc58=_0x2f2715;return X[_0x3bdc58(0x399)](this[_0x3bdc58(0x25c)]['unit'],this['_context']);}};ve=pt([ae(0x1,a[_0x2f2715(0x1e2)](X[_0x2f2715(0x197)])),ae(0x2,a[_0x2f2715(0x1e2)](x)),ae(0x3,a[_0x2f2715(0x1e2)](a[_0x2f2715(0x1b0)]))],ve);function Et(_0x33ed55){const _0x429b4c=_0x2f2715,_0xb627e6=new Map();return _0x33ed55['forEach'](_0x8d7a32=>{const _0x402fed=_0x330b;if(_0xb627e6[_0x402fed(0x156)](_0x8d7a32[_0x402fed(0x24b)])){const _0x493671=_0xb627e6[_0x402fed(0x2f7)](_0x8d7a32[_0x402fed(0x24b)]);_0x493671[_0x402fed(0x3bc)]+=',\x20'+_0x8d7a32[_0x402fed(0x3bc)];}else _0xb627e6[_0x402fed(0x2bc)](_0x8d7a32[_0x402fed(0x24b)],_0x8d7a32);}),Array[_0x429b4c(0x2d0)](_0xb627e6[_0x429b4c(0x25e)]());}var E=function(){const _0x217426=_0x2f2715;return E=Object[_0x217426(0x358)]||function(_0x2fc60f){const _0x590e5c=_0x217426;for(var _0xc25368,_0x3779d7=0x1,_0x42c95d=arguments['length'];_0x3779d7<_0x42c95d;_0x3779d7++){_0xc25368=arguments[_0x3779d7];for(var _0x504553 in _0xc25368)Object[_0x590e5c(0x1d1)]['hasOwnProperty']['call'](_0xc25368,_0x504553)&&(_0x2fc60f[_0x504553]=_0xc25368[_0x504553]);}return _0x2fc60f;},E[_0x217426(0x2ea)](this,arguments);},Tt=function(_0x415b8a,_0x3212cf){const _0x5d75a1=_0x2f2715;var _0x489233={};for(var _0x16caca in _0x415b8a)Object[_0x5d75a1(0x1d1)][_0x5d75a1(0x30c)][_0x5d75a1(0x39f)](_0x415b8a,_0x16caca)&&_0x3212cf[_0x5d75a1(0x3a1)](_0x16caca)<0x0&&(_0x489233[_0x16caca]=_0x415b8a[_0x16caca]);if(_0x415b8a!=null&&typeof Object['getOwnPropertySymbols']==_0x5d75a1(0x1a3)){for(var _0x42aad2=0x0,_0x16caca=Object['getOwnPropertySymbols'](_0x415b8a);_0x42aad2<_0x16caca[_0x5d75a1(0x159)];_0x42aad2++)_0x3212cf[_0x5d75a1(0x3a1)](_0x16caca[_0x42aad2])<0x0&&Object[_0x5d75a1(0x1d1)][_0x5d75a1(0x32d)][_0x5d75a1(0x39f)](_0x415b8a,_0x16caca[_0x42aad2])&&(_0x489233[_0x16caca[_0x42aad2]]=_0x415b8a[_0x16caca[_0x42aad2]]);}return _0x489233;},pe=M[_0x2f2715(0x268)](function(_0xf55fb7,_0x334719){const _0x5de91c=_0x2f2715;var _0x4bfc14=_0xf55fb7[_0x5de91c(0x339)],_0x4468fa=_0xf55fb7['id'],_0x566cf0=_0xf55fb7[_0x5de91c(0x28f)],_0x231bc8=_0xf55fb7[_0x5de91c(0x2eb)],_0x20180a=Tt(_0xf55fb7,[_0x5de91c(0x339),'id',_0x5de91c(0x28f),_0x5de91c(0x2eb)]),_0x176305=_0x5de91c(0x2ef)['concat'](_0x4468fa,'\x20')['concat'](_0x566cf0||'')['trim'](),_0x373527=M[_0x5de91c(0x340)]('_'[_0x5de91c(0x395)](Dt()));return we(_0x4bfc14,''[_0x5de91c(0x395)](_0x4468fa),{'defIds':_0x4bfc14[_0x5de91c(0x369)],'idSuffix':_0x373527[_0x5de91c(0x1df)]},E({'ref':_0x334719,'className':_0x176305},_0x20180a),_0x231bc8);});function we(_0x50b6e8,_0x330f8d,_0x283e62,_0x2638df,_0xb2b452){const _0x41ea74=_0x2f2715;return M[_0x41ea74(0x29a)](_0x50b6e8[_0x41ea74(0x2a5)],E(E({'key':_0x330f8d},Ot(_0x50b6e8,_0x283e62,_0xb2b452)),_0x2638df),(Rt(_0x50b6e8,_0x283e62)[_0x41ea74(0x316)]||[])[_0x41ea74(0x31d)](function(_0x3e2e99,_0x418cd7){const _0x220293=_0x41ea74;return we(_0x3e2e99,''['concat'](_0x330f8d,'-')[_0x220293(0x395)](_0x50b6e8[_0x220293(0x2a5)],'-')['concat'](_0x418cd7),_0x283e62,void 0x0,_0xb2b452);}));}function Ot(_0x21c52f,_0x657af6,_0x428c8e){const _0xafe8f9=_0x2f2715;var _0x5c21a9=E({},_0x21c52f[_0xafe8f9(0x31f)]);_0x428c8e!=null&&_0x428c8e[_0xafe8f9(0x287)]&&_0x5c21a9['fill']===_0xafe8f9(0x287)&&(_0x5c21a9[_0xafe8f9(0x338)]=_0x428c8e[_0xafe8f9(0x287)]),_0x21c52f['tag']===_0xafe8f9(0x17e)&&_0x5c21a9['id']&&(_0x5c21a9['id']=_0x5c21a9['id']+_0x657af6[_0xafe8f9(0x19d)]),Object[_0xafe8f9(0x1cc)](_0x5c21a9)[_0xafe8f9(0x265)](function(_0x406c50){const _0x573a29=_0xafe8f9;var _0x278dff=_0x406c50[0x0],_0x1c4e07=_0x406c50[0x1];_0x278dff===_0x573a29(0x17e)&&typeof _0x1c4e07=='string'&&(_0x5c21a9[_0x278dff]=_0x1c4e07[_0x573a29(0x165)](/url\(#(.*)\)/,_0x573a29(0x1b2)[_0x573a29(0x395)](_0x657af6[_0x573a29(0x19d)],')')));});var _0x1636e6=_0x657af6[_0xafe8f9(0x369)];return!_0x1636e6||_0x1636e6[_0xafe8f9(0x159)]===0x0||(_0x21c52f[_0xafe8f9(0x2a5)]==='use'&&_0x5c21a9[_0xafe8f9(0x283)]&&(_0x5c21a9['xlink:href']=_0x5c21a9[_0xafe8f9(0x283)]+_0x657af6[_0xafe8f9(0x19d)]),Object[_0xafe8f9(0x1cc)](_0x5c21a9)['forEach'](function(_0x44056d){const _0xe62340=_0xafe8f9;var _0x350984=_0x44056d[0x0],_0x1cfd3d=_0x44056d[0x1];typeof _0x1cfd3d==_0xe62340(0x367)&&(_0x5c21a9[_0x350984]=_0x1cfd3d[_0xe62340(0x165)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x657af6['idSuffix'],')')));})),_0x5c21a9;}function Rt(_0x1909eb,_0x49fe8c){const _0x518fca=_0x2f2715;var _0x322c11,_0x36a7f8=_0x49fe8c['defIds'];return!_0x36a7f8||_0x36a7f8[_0x518fca(0x159)]===0x0?_0x1909eb:_0x1909eb[_0x518fca(0x2a5)]==='defs'&&(!((_0x322c11=_0x1909eb[_0x518fca(0x316)])===null||_0x322c11===void 0x0)&&_0x322c11[_0x518fca(0x159)])?E(E({},_0x1909eb),{'children':_0x1909eb[_0x518fca(0x316)]['map'](function(_0x37ee6f){const _0x1dfd3e=_0x518fca;return typeof _0x37ee6f['attrs']['id']==_0x1dfd3e(0x367)&&_0x36a7f8&&_0x36a7f8['indexOf'](_0x37ee6f['attrs']['id'])>-0x1?E(E({},_0x37ee6f),{'attrs':E(E({},_0x37ee6f[_0x1dfd3e(0x31f)]),{'id':_0x37ee6f[_0x1dfd3e(0x31f)]['id']+_0x49fe8c[_0x1dfd3e(0x19d)]})}):_0x37ee6f;})}):_0x1909eb;}function Dt(){const _0x13486f=_0x2f2715;return Math[_0x13486f(0x321)]()['toString'](0x24)[_0x13486f(0x1fe)](0x2,0x8);}pe['displayName']='UniverIcon';var Ut={'tag':_0x2f2715(0x243),'attrs':{'fill':'none','viewBox':_0x2f2715(0x1a5),'width':_0x2f2715(0x1aa),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2f2715(0x172)},'children':[{'tag':_0x2f2715(0x2b7),'attrs':{'stroke':'currentColor','d':_0x2f2715(0x210),'strokeLinecap':'round','strokeLinejoin':_0x2f2715(0x260),'strokeWidth':1.2}}]},{'tag':_0x2f2715(0x3a0),'attrs':{},'children':[{'tag':_0x2f2715(0x2fa),'attrs':{'id':_0x2f2715(0x34f)},'children':[{'tag':_0x2f2715(0x2b7),'attrs':{'fill':_0x2f2715(0x164),'d':_0x2f2715(0x288)}}]}]}],'defIds':[_0x2f2715(0x34f)]},ye=M[_0x2f2715(0x268)](function(_0x35c63e,_0x160f1c){const _0x46c848=_0x2f2715;return M[_0x46c848(0x29a)](pe,Object['assign']({},_0x35c63e,{'id':_0x46c848(0x280),'ref':_0x160f1c,'icon':Ut}));});ye[_0x2f2715(0x17d)]='OffLineSingle';var Nt={'tag':_0x2f2715(0x243),'attrs':{'fill':_0x2f2715(0x39e),'viewBox':_0x2f2715(0x2a8),'width':_0x2f2715(0x1aa),'height':_0x2f2715(0x1aa)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x2f2715(0x2b7),'attrs':{'stroke':_0x2f2715(0x16d),'d':_0x2f2715(0x322),'strokeLinecap':_0x2f2715(0x260),'strokeLinejoin':_0x2f2715(0x260),'strokeWidth':1.2}}]},{'tag':_0x2f2715(0x3a0),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2f2715(0x37d)},'children':[{'tag':_0x2f2715(0x2b7),'attrs':{'fill':_0x2f2715(0x164),'d':_0x2f2715(0x288),'transform':_0x2f2715(0x285)}}]}]}],'defIds':[_0x2f2715(0x37d)]},$e=M[_0x2f2715(0x268)](function(_0x4746af,_0x2e7bb2){const _0x4c840a=_0x2f2715;return M[_0x4c840a(0x29a)](pe,Object[_0x4c840a(0x358)]({},_0x4746af,{'id':_0x4c840a(0x2d2),'ref':_0x2e7bb2,'icon':Nt}));});$e[_0x2f2715(0x17d)]=_0x2f2715(0x351);function Mt(_0x33a9a2){const _0x2618a6=_0x2f2715;switch(_0x33a9a2){case u[_0x2618a6(0x38d)][_0x2618a6(0x1b7)]:return _0x2618a6(0x28b);case u[_0x2618a6(0x38d)]['CONFLICT']:return _0x2618a6(0x167);case u['CollaborationStatus'][_0x2618a6(0x30d)]:return _0x2618a6(0x382);case u[_0x2618a6(0x38d)][_0x2618a6(0x22c)]:return'collabStatus.notCollab';case u[_0x2618a6(0x38d)][_0x2618a6(0x1bd)]:case u[_0x2618a6(0x38d)]['AWAITING_WITH_PENDING']:return _0x2618a6(0x261);case u[_0x2618a6(0x38d)][_0x2618a6(0x2dc)]:case u['CollaborationStatus'][_0x2618a6(0x2e4)]:return'collabStatus.synced';}}function xe(_0x50cd0f){const _0x1d6f1b=_0x2f2715,{status$:_0x518bb9}=_0x50cd0f,_0x38b182=T[_0x1d6f1b(0x16c)](_0x518bb9,u[_0x1d6f1b(0x38d)][_0x1d6f1b(0x22c)]),_0x5ee947=T[_0x1d6f1b(0x15c)](a['LocaleService']),_0x331415=T[_0x1d6f1b(0x15c)](u[_0x1d6f1b(0x153)]),_0x4ba438=_0x38b182!==u[_0x1d6f1b(0x38d)][_0x1d6f1b(0x1b7)],_0x1cd66b=_0x5ee947['t'](Mt(_0x38b182)),_0x27f1ec=_0x4ba438?P[_0x1d6f1b(0x168)]($e,{}):P[_0x1d6f1b(0x168)](ye,{}),_0x249827=M[_0x1d6f1b(0x241)](()=>{_0x4ba438||_0x331415['reconnect']();},[_0x4ba438,_0x331415]);function _0x496d5f(){const _0x19fdbc=_0x1d6f1b;return P['jsxs'](_0x19fdbc(0x361),{'className':_0x19fdbc(0x20f),'onClick':_0x249827,'children':[P[_0x19fdbc(0x168)](_0x19fdbc(0x361),{'className':D['clsx'](_0x19fdbc(0x30e),{'univer-text-green-500':_0x4ba438,'univer-text-red-500':!_0x4ba438}),'children':_0x27f1ec}),P[_0x19fdbc(0x168)]('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1cd66b})]});}return _0x4ba438?_0x496d5f():P[_0x1d6f1b(0x168)](D[_0x1d6f1b(0x246)],{'title':_0x5ee947['t'](_0x1d6f1b(0x34c)),'children':_0x496d5f()});}var Lt=Object[_0x2f2715(0x3a5)],Pt=(_0x435acb,_0x417f90,_0x3db740,_0x27082b)=>{const _0x46e05d=_0x2f2715;for(var _0x230211=_0x27082b>0x1?void 0x0:_0x27082b?Lt(_0x417f90,_0x3db740):_0x417f90,_0x11e046=_0x435acb[_0x46e05d(0x159)]-0x1,_0x123f9e;_0x11e046>=0x0;_0x11e046--)(_0x123f9e=_0x435acb[_0x11e046])&&(_0x230211=_0x123f9e(_0x230211)||_0x230211);return _0x230211;},V=(_0x2e1c6c,_0xcfbb1)=>(_0x4066fe,_0x1c6acd)=>_0xcfbb1(_0x4066fe,_0x1c6acd,_0x2e1c6c);exports[_0x2f2715(0x30a)]=class extends a['Disposable']{constructor(_0x4c78c9,_0x4fdae2,_0x1f05fa,_0xe584f){const _0x13e415=_0x2f2715;super(),h(this,_0x13e415(0x2c4),new d[(_0x13e415(0x388))](u[_0x13e415(0x38d)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x4c78c9,this['_injector']=_0x4fdae2,this[_0x13e415(0x34e)]=_0x1f05fa,this[_0x13e415(0x23b)]=_0xe584f,this['_initStatusComponent'](),this[_0x13e415(0x23f)]());}[_0x2f2715(0x23f)](){const _0x2bdef8=_0x2f2715;this[_0x2bdef8(0x1d4)](this[_0x2bdef8(0x267)][_0x2bdef8(0x333)][_0x2bdef8(0x231)](d[_0x2bdef8(0x2fd)](()=>{const _0x5247de=_0x2bdef8,_0x1ba417=this[_0x5247de(0x267)][_0x5247de(0x18b)]();return _0x1ba417?this[_0x5247de(0x34e)][_0x5247de(0x373)](_0x1ba417[_0x5247de(0x24d)]()):d['of'](null);}),d[_0x2bdef8(0x2fd)](_0xad1d8e=>_0xad1d8e?_0xad1d8e[_0x2bdef8(0x212)]:d['of'](u[_0x2bdef8(0x38d)][_0x2bdef8(0x22c)])))[_0x2bdef8(0x185)](_0x5360f5=>{const _0x412025=_0x2bdef8;this['_status$'][_0x412025(0x14b)](_0x5360f5);}));}['_initStatusComponent'](){const _0x2369a9=_0x2f2715;this[_0x2369a9(0x1d4)](this[_0x2369a9(0x23b)][_0x2369a9(0x18e)](T[_0x2369a9(0x249)][_0x2369a9(0x2db)],()=>T[_0x2369a9(0x2c5)](At({'status$':this['_status$'][_0x2369a9(0x1b6)]()}),this[_0x2369a9(0x2da)])));}},exports[_0x2f2715(0x30a)]=Pt([V(0x0,a[_0x2f2715(0x383)]),V(0x1,a[_0x2f2715(0x1e2)](a['Injector'])),V(0x2,a['Inject'](u[_0x2f2715(0x2b1)])),V(0x3,T[_0x2f2715(0x330)])],exports['DesktopCollaborationStatusDisplayController']);function At(_0x5201c7){const {status$:_0x83a091}=_0x5201c7;return function(){const _0x2caaf4=_0x330b;return P[_0x2caaf4(0x168)](xe,{'status$':_0x83a091});};}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x5c10f9,_0x308a32,_0x1d62cf,_0x5e7240)=>{const _0x4fb3d4=_0x2f2715;for(var _0x33f513=_0x5e7240>0x1?void 0x0:_0x5e7240?wt(_0x308a32,_0x1d62cf):_0x308a32,_0x17e98a=_0x5c10f9[_0x4fb3d4(0x159)]-0x1,_0x3a75a7;_0x17e98a>=0x0;_0x17e98a--)(_0x3a75a7=_0x5c10f9[_0x17e98a])&&(_0x33f513=_0x3a75a7(_0x33f513)||_0x33f513);return _0x33f513;},y=(_0x5eb68b,_0x51140d)=>(_0x2985a1,_0x1cd30a)=>_0x51140d(_0x2985a1,_0x1cd30a,_0x5eb68b);let q=class extends a['Disposable']{constructor(_0x1bc947,_0x2338ea,_0x1d14b1,_0x25820a,_0x176a77,_0x94cdca){const _0x1be8a0=_0x2f2715;super(),this['_beforeCloseService']=_0x1bc947,this[_0x1be8a0(0x1ce)]=_0x2338ea,this[_0x1be8a0(0x3aa)]=_0x1d14b1,this[_0x1be8a0(0x227)]=_0x25820a,this['_notificationService']=_0x176a77,this['_localeService']=_0x94cdca,this[_0x1be8a0(0x390)](),this[_0x1be8a0(0x386)]();}[_0x2f2715(0x390)](){const _0x283fd4=_0x2f2715;this[_0x283fd4(0x1d4)](this[_0x283fd4(0x370)][_0x283fd4(0x279)](()=>{const _0x57b8e8=_0x283fd4;if(this['_localCacheService'][_0x57b8e8(0x188)][_0x57b8e8(0x1b5)])return this[_0x57b8e8(0x1b1)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x2f2715(0x386)](){const _0x1fa67c=_0x2f2715;this[_0x1fa67c(0x1d4)](this[_0x1fa67c(0x3aa)][_0x1fa67c(0x218)]['subscribe'](_0x38793d=>{const _0x3cdadc=_0x1fa67c;_0x38793d['id']===u[_0x3cdadc(0x2e5)][_0x3cdadc(0x337)]&&this['_messageService']['show']({'type':D[_0x3cdadc(0x1a9)][_0x3cdadc(0x349)],'content':this[_0x3cdadc(0x1b1)]['t'](_0x3cdadc(0x289))}),_0x38793d['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x3cdadc(0x227)]['show']({'type':D['MessageType'][_0x3cdadc(0x349)],'content':this[_0x3cdadc(0x1b1)]['t'](_0x3cdadc(0x1d7))}),_0x38793d['id']===u[_0x3cdadc(0x2e5)][_0x3cdadc(0x3ae)]&&this['_notificationService']['show']({'title':this[_0x3cdadc(0x1b1)]['t'](_0x3cdadc(0x309)),'content':this[_0x3cdadc(0x1b1)]['t'](_0x3cdadc(0x284)),'type':_0x3cdadc(0x20e),'duration':0x0}),_0x38793d['id']===u[_0x3cdadc(0x2e5)][_0x3cdadc(0x3ad)]&&this[_0x3cdadc(0x227)][_0x3cdadc(0x2b6)]({'type':D['MessageType'][_0x3cdadc(0x2e2)],'content':this[_0x3cdadc(0x1b1)]['t']('collaboration.closeRoom')+'('+_0x38793d[_0x3cdadc(0x346)]+')'}),_0x38793d['id']===u['CollaborationUIEventId'][_0x3cdadc(0x29f)]&&this[_0x3cdadc(0x227)][_0x3cdadc(0x2b6)]({'type':D[_0x3cdadc(0x1a9)]['Warning'],'content':this[_0x3cdadc(0x1b1)]['t'](_0x38793d[_0x3cdadc(0x346)]||'')}),_0x38793d['id']===u['CollaborationUIEventId'][_0x3cdadc(0x275)]&&this[_0x3cdadc(0x227)][_0x3cdadc(0x2b6)]({'type':D['MessageType'][_0x3cdadc(0x349)],'content':this[_0x3cdadc(0x1b1)]['t']('session.will-retry')}),_0x38793d['id']===u[_0x3cdadc(0x2e5)][_0x3cdadc(0x230)]&&this[_0x3cdadc(0x227)][_0x3cdadc(0x2b6)]({'type':D[_0x3cdadc(0x1a9)][_0x3cdadc(0x2e2)],'content':this[_0x3cdadc(0x1b1)]['t'](_0x3cdadc(0x2d5))}),_0x38793d['id']===u[_0x3cdadc(0x2e5)][_0x3cdadc(0x2de)]&&this[_0x3cdadc(0x227)][_0x3cdadc(0x2b6)]({'type':D[_0x3cdadc(0x1a9)][_0x3cdadc(0x2e2)],'content':this['_localeService']['t'](_0x3cdadc(0x26f))});}));}};q=yt([y(0x0,T[_0x2f2715(0x39a)]),y(0x1,u[_0x2f2715(0x28e)]),y(0x2,a[_0x2f2715(0x1e2)](u[_0x2f2715(0x183)])),y(0x3,T['IMessageService']),y(0x4,T[_0x2f2715(0x182)]),y(0x5,a['Inject'](a[_0x2f2715(0x27a)]))],q);const $t='collaboration-client-ui.config',Ue={},be=a[_0x2f2715(0x14d)](_0x2f2715(0x1bc));var xt=Object[_0x2f2715(0x3a5)],jt=(_0x555a57,_0x4c98ad,_0x451001,_0x3fd76f)=>{const _0x2bd1c5=_0x2f2715;for(var _0x48354e=_0x3fd76f>0x1?void 0x0:_0x3fd76f?xt(_0x4c98ad,_0x451001):_0x4c98ad,_0x534e49=_0x555a57[_0x2bd1c5(0x159)]-0x1,_0x4c5c44;_0x534e49>=0x0;_0x534e49--)(_0x4c5c44=_0x555a57[_0x534e49])&&(_0x48354e=_0x4c5c44(_0x48354e)||_0x48354e);return _0x48354e;},H=(_0x33acac,_0x3472ca)=>(_0x231003,_0x19de5b)=>_0x3472ca(_0x231003,_0x19de5b,_0x33acac);exports[_0x2f2715(0x140)]=class extends a[_0x2f2715(0x33d)]{constructor(_0x1b5606,_0x5ce56a,_0x21d054,_0x581247,_0x1ba89b){const _0x42f70b=_0x2f2715;super(),this[_0x42f70b(0x2bd)]=_0x1b5606,this[_0x42f70b(0x228)]=_0x5ce56a,this[_0x42f70b(0x19a)]=_0x21d054,this['_dataLoaderService']=_0x581247,_0x1ba89b?_0x1ba89b==null||_0x1ba89b['whenReady']()['then'](()=>this[_0x42f70b(0x1cb)]()):(this['_logService']['debug'](_0x42f70b(0x3a3),_0x42f70b(0x15a)),this[_0x42f70b(0x1cb)]());}async[_0x2f2715(0x1cb)](){const _0x8720ac=_0x2f2715,_0x26bd42=this['_urlService']['getParam']('unit'),_0x36c954=this[_0x8720ac(0x2bd)]['getParam'](_0x8720ac(0x2e7)),_0x5b530b=this['_urlService'][_0x8720ac(0x30f)](_0x8720ac(0x245));if(!_0x26bd42||!_0x36c954){this['_logService'][_0x8720ac(0x15f)](_0x8720ac(0x3a3),_0x8720ac(0x1c5));return;}const _0x4e14b3=await this[_0x8720ac(0x3b7)][_0x8720ac(0x398)](_0x26bd42,Number(_0x36c954),_0x5b530b);_0x4e14b3&&_0x4e14b3 instanceof a['Workbook']&&this[_0x8720ac(0x3a8)](_0x4e14b3);}async[_0x2f2715(0x3a8)](_0x2285f2){const _0x5b3527=_0x2f2715;await this['_updateSubUnitFromURLParams'](_0x2285f2),_0x2285f2[_0x5b3527(0x204)][_0x5b3527(0x231)](d['takeUntil'](this[_0x5b3527(0x23a)]))[_0x5b3527(0x185)](_0xfe47b=>{const _0x5a5800=_0x5b3527;_0xfe47b&&this[_0x5a5800(0x38e)](_0xfe47b);}),this[_0x5b3527(0x2bd)][_0x5b3527(0x27c)][_0x5b3527(0x231)](d[_0x5b3527(0x378)](this['dispose$']))[_0x5b3527(0x185)](()=>this['_updateSubUnitFromURLParams'](_0x2285f2));}[_0x2f2715(0x38e)](_0x376d52,_0x4f89a1=!0x1){const _0x4c8a2b=_0x2f2715,_0xa3a1c4=this[_0x4c8a2b(0x2bd)]['getParam'](_0x4c8a2b(0x245));_0x376d52[_0x4c8a2b(0x36c)]()!==_0xa3a1c4&&this[_0x4c8a2b(0x2bd)][_0x4c8a2b(0x19f)](_0x4c8a2b(0x245),_0x376d52[_0x4c8a2b(0x36c)](),_0x4f89a1);}async[_0x2f2715(0x2ed)](_0x136687){const _0x3fa85c=_0x2f2715;var _0x571808;const _0x31c6ae=this[_0x3fa85c(0x2bd)][_0x3fa85c(0x30f)](_0x3fa85c(0x245));if(!_0x31c6ae||!_0x136687[_0x3fa85c(0x2ca)](_0x31c6ae)){const _0x41a952=_0x136687[_0x3fa85c(0x29c)]()[0x0],_0x34950b=_0x136687[_0x3fa85c(0x2ca)](_0x41a952);if(!_0x34950b)return;this[_0x3fa85c(0x38e)](_0x34950b,!0x0),await this[_0x3fa85c(0x19a)][_0x3fa85c(0x2b3)](g[_0x3fa85c(0x3a7)]['id'],{'unitId':_0x136687[_0x3fa85c(0x24d)](),'subUnitId':_0x41a952});return;}((_0x571808=_0x136687[_0x3fa85c(0x38b)]())==null?void 0x0:_0x571808[_0x3fa85c(0x36c)]())!==_0x31c6ae&&await this[_0x3fa85c(0x19a)]['executeCommand'](g[_0x3fa85c(0x3a7)]['id'],{'unitId':_0x136687['getUnitId'](),'subUnitId':_0x31c6ae});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x2f2715(0x35b)]),H(0x3,a['Inject'](u[_0x2f2715(0x1a4)])),H(0x4,a[_0x2f2715(0x363)](Ke[_0x2f2715(0x292)]))],exports[_0x2f2715(0x140)]);var Bt=Object[_0x2f2715(0x3a5)],kt=(_0x4c5520,_0x5419c4,_0x2f356f,_0xb1e3fb)=>{const _0x4017db=_0x2f2715;for(var _0x5c0d64=_0xb1e3fb>0x1?void 0x0:_0xb1e3fb?Bt(_0x5419c4,_0x2f356f):_0x5419c4,_0x34fed4=_0x4c5520[_0x4017db(0x159)]-0x1,_0x1c77c7;_0x34fed4>=0x0;_0x34fed4--)(_0x1c77c7=_0x4c5520[_0x34fed4])&&(_0x5c0d64=_0x1c77c7(_0x5c0d64)||_0x5c0d64);return _0x5c0d64;},ce=(_0x3ae0c6,_0x3fe913)=>(_0x2bc769,_0x454a08)=>_0x3fe913(_0x2bc769,_0x454a08,_0x3ae0c6);let z=class{constructor(_0x354000,_0x5f37fb,_0x1a9b22){const _0x39848b=_0x2f2715;this[_0x39848b(0x2da)]=_0x354000,this[_0x39848b(0x20a)]=_0x5f37fb,this[_0x39848b(0x27f)]=_0x1a9b22;}[_0x2f2715(0x1f0)](_0x112324){const _0x83c91e=_0x2f2715;this['_transformUndoRedoStack'](_0x112324),this[_0x83c91e(0x3b0)](_0x112324);}[_0x2f2715(0x142)](_0x32cbf8){const _0x517eba=_0x2f2715,{unitID:_0x2ef21d}=_0x32cbf8,_0x149562=this['_renderManagerService']['getRenderById'](_0x2ef21d)[_0x517eba(0x384)](b[_0x517eba(0x173)]),{redoCache:_0x188584}=_0x149562[_0x517eba(0x235)]();if(_0x188584['length']===0x0)return _0x32cbf8;let _0x451c10=a[_0x517eba(0x196)][_0x517eba(0x1e8)](_0x32cbf8[_0x517eba(0x3ba)][0x0]);for(let _0x557c60=0x0;_0x557c60<_0x188584[_0x517eba(0x159)];_0x557c60++){const _0x117efc={'id':'doc.mutation.rich-text-editing','params':{..._0x188584[_0x557c60]}},_0x57818e=this[_0x517eba(0x20a)][_0x517eba(0x20b)](_0x451c10,_0x117efc,!0x1);if(m['isTransformMutationFailure'](_0x57818e))throw _0x57818e['error'];_0x451c10=_0x57818e[_0x517eba(0x310)];}return{...a[_0x517eba(0x196)][_0x517eba(0x1e8)](_0x32cbf8),'mutations':[_0x451c10]};}[_0x2f2715(0x17f)](_0x20854b){const _0x117cf2=_0x2f2715,{unitID:_0x5a591f}=_0x20854b,_0x331691=this[_0x117cf2(0x27f)][_0x117cf2(0x332)](_0x5a591f)[_0x117cf2(0x384)](b[_0x117cf2(0x173)]),{undoCache:_0x14f4ef,redoCache:_0x569c5f}=_0x331691[_0x117cf2(0x235)]();if(_0x14f4ef[_0x117cf2(0x159)]===0x0||_0x569c5f[_0x117cf2(0x159)]===0x0)return;const _0x596a32=[],_0x5ed73e=[];let _0x4626dd=a[_0x117cf2(0x196)][_0x117cf2(0x1e8)](_0x20854b[_0x117cf2(0x3ba)][0x0]),_0x222345=a['Tools'][_0x117cf2(0x1e8)](_0x20854b[_0x117cf2(0x3ba)][0x0]);for(let _0x307b3a=_0x14f4ef[_0x117cf2(0x159)]-0x1;_0x307b3a>=0x0;_0x307b3a--){const _0xe64ea6={'id':_0x117cf2(0x184),'params':{..._0x14f4ef[_0x307b3a]}},_0x530ff3={'id':_0x117cf2(0x184),'params':{..._0x569c5f[_0x307b3a]}},_0x12d742=this[_0x117cf2(0x20a)]['transformMutation'](_0x4626dd,_0xe64ea6,!0x1),_0x2d581c=this['_transformService']['transformMutation'](_0x222345,_0x530ff3,!0x1);if(m[_0x117cf2(0x1fc)](_0x12d742))throw _0x12d742[_0x117cf2(0x20e)];if(m[_0x117cf2(0x1fc)](_0x2d581c))throw _0x2d581c[_0x117cf2(0x20e)];_0x596a32['unshift'](_0x12d742[_0x117cf2(0x13c)][_0x117cf2(0x203)]),_0x5ed73e[_0x117cf2(0x1e7)](_0x2d581c[_0x117cf2(0x13c)][_0x117cf2(0x203)]),_0x4626dd=_0x12d742[_0x117cf2(0x310)],_0x222345=_0x2d581c[_0x117cf2(0x310)];}_0x331691[_0x117cf2(0x362)]({'undoCache':_0x596a32,'redoCache':_0x5ed73e});}['_transformPreviousActiveRange'](_0x35b82c){const _0x15c515=_0x2f2715,{unitID:_0x3f121c}=_0x35b82c,_0x1913ba=this[_0x15c515(0x27f)]['getRenderById'](_0x3f121c)[_0x15c515(0x384)](b[_0x15c515(0x173)]),_0x11cdc9=_0x1913ba[_0x15c515(0x21c)]();if(_0x11cdc9==null)return;const _0x35a88f=[{'id':_0x15c515(0x184),'params':{'unitId':_0x35b82c[_0x15c515(0x3bb)],'actions':null,'textRanges':[_0x11cdc9]}}],_0x22b92c=this[_0x15c515(0x20a)][_0x15c515(0x335)](_0x35b82c,_0x35a88f);if(!m[_0x15c515(0x298)](_0x22b92c))throw _0x22b92c['error'];const _0x101982=_0x22b92c[_0x15c515(0x13c)][0x0][_0x15c515(0x203)][_0x15c515(0x353)];Array[_0x15c515(0x2a2)](_0x101982)&&_0x101982[_0x15c515(0x159)]&&_0x1913ba['setActiveRange'](_0x101982[0x0]);}};z=kt([ce(0x0,a[_0x2f2715(0x1e2)](a[_0x2f2715(0x1f1)])),ce(0x1,m[_0x2f2715(0x2f3)]),ce(0x2,p['IRenderManagerService'])],z);var Ht=Object[_0x2f2715(0x3a5)],Ft=(_0x27729d,_0xc765d1,_0x59af37,_0x1279c1)=>{for(var _0x364bee=_0x1279c1>0x1?void 0x0:_0x1279c1?Ht(_0xc765d1,_0x59af37):_0xc765d1,_0x4287a3=_0x27729d['length']-0x1,_0x23b607;_0x4287a3>=0x0;_0x4287a3--)(_0x23b607=_0x27729d[_0x4287a3])&&(_0x364bee=_0x23b607(_0x364bee)||_0x364bee);return _0x364bee;},le=(_0x105c27,_0x494209)=>(_0x588ea4,_0x42ea62)=>_0x494209(_0x588ea4,_0x42ea62,_0x105c27);let J=class{constructor(_0x474a64,_0x36a8c4,_0x29f6fa){const _0xeda651=_0x2f2715;this[_0xeda651(0x2da)]=_0x474a64,this[_0xeda651(0x20a)]=_0x36a8c4,this[_0xeda651(0x1e5)]=_0x29f6fa;}[_0x2f2715(0x37a)](_0x54478d){const _0x4a37ba=_0x2f2715;this[_0x4a37ba(0x144)](_0x54478d);}[_0x2f2715(0x142)](_0x200f56){const _0x40849c=_0x2f2715,{unitID:_0x1f49ad}=_0x200f56,{collaboration:_0x496edf}=this[_0x40849c(0x1e5)][_0x40849c(0x234)](_0x1f49ad);if(_0x496edf['length']===0x0)return _0x200f56;let _0x16069a=a[_0x40849c(0x196)][_0x40849c(0x1e8)](_0x200f56[_0x40849c(0x3ba)][0x0]);for(let _0x4eca1c=0x0;_0x4eca1c<_0x496edf[_0x40849c(0x159)];_0x4eca1c++){const _0x26afcc={'id':_0x40849c(0x184),'params':{'unitId':_0x496edf[_0x4eca1c][_0x40849c(0x17b)],..._0x496edf[_0x4eca1c][_0x40849c(0x2d6)]}},_0x23bda4=this[_0x40849c(0x20a)]['transformMutation'](_0x16069a,_0x26afcc,!0x1);if(m['isTransformMutationFailure'](_0x23bda4))throw _0x23bda4['error'];_0x16069a=_0x23bda4[_0x40849c(0x310)];}return{...a['Tools']['deepClone'](_0x200f56),'mutations':[_0x16069a]};}[_0x2f2715(0x144)](_0x12ba99){const _0x23eb99=_0x2f2715,{unitID:_0x35fa6a}=_0x12ba99,{history:_0x50087b,collaboration:_0x133bc1}=this[_0x23eb99(0x1e5)][_0x23eb99(0x234)](_0x35fa6a);if(_0x50087b[_0x23eb99(0x159)]===0x0&&_0x133bc1[_0x23eb99(0x159)]===0x0)return;const _0x3fb6ec=[],_0x14b928=[];let _0x224892=a[_0x23eb99(0x196)][_0x23eb99(0x1e8)](_0x12ba99[_0x23eb99(0x3ba)][0x0]),_0x10e5e4=a[_0x23eb99(0x196)][_0x23eb99(0x1e8)](_0x12ba99[_0x23eb99(0x3ba)][0x0]);for(let _0x514751=_0x50087b[_0x23eb99(0x159)]-0x1;_0x514751>=0x0;_0x514751--){const _0x512370={'id':_0x23eb99(0x184),'params':{'unitId':_0x50087b[_0x514751][_0x23eb99(0x17b)],..._0x50087b[_0x514751][_0x23eb99(0x1f7)]}},_0x282671={'id':_0x23eb99(0x184),'params':{'unitId':_0x50087b[_0x514751]['unitId'],..._0x50087b[_0x514751]['redoState']}},_0x4e2a78=this[_0x23eb99(0x20a)][_0x23eb99(0x20b)](_0x224892,_0x512370,!0x1),_0x4b928b=this[_0x23eb99(0x20a)][_0x23eb99(0x20b)](_0x10e5e4,_0x282671,!0x1);if(m[_0x23eb99(0x1fc)](_0x4e2a78))throw _0x4e2a78[_0x23eb99(0x20e)];if(m[_0x23eb99(0x1fc)](_0x4b928b))throw _0x4b928b[_0x23eb99(0x20e)];_0x3fb6ec['unshift']({..._0x50087b[_0x514751],'undoState':_0x4e2a78[_0x23eb99(0x13c)][_0x23eb99(0x203)],'redoState':_0x4b928b[_0x23eb99(0x13c)]['params']}),_0x224892=_0x4e2a78['m1Prime'],_0x10e5e4=_0x4b928b[_0x23eb99(0x310)];}_0x224892=a[_0x23eb99(0x196)][_0x23eb99(0x1e8)](_0x12ba99[_0x23eb99(0x3ba)][0x0]),_0x10e5e4=a[_0x23eb99(0x196)][_0x23eb99(0x1e8)](_0x12ba99[_0x23eb99(0x3ba)][0x0]);for(let _0x3944e3=_0x133bc1[_0x23eb99(0x159)]-0x1;_0x3944e3>=0x0;_0x3944e3--){const _0x3e0862={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x133bc1[_0x3944e3]['unitId'],..._0x133bc1[_0x3944e3][_0x23eb99(0x1f7)]}},_0x5051a0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x133bc1[_0x3944e3][_0x23eb99(0x17b)],..._0x133bc1[_0x3944e3]['redoState']}},_0x454eb3=this[_0x23eb99(0x20a)][_0x23eb99(0x20b)](_0x224892,_0x3e0862,!0x1),_0x58eb0d=this[_0x23eb99(0x20a)][_0x23eb99(0x20b)](_0x10e5e4,_0x5051a0,!0x1);if(m[_0x23eb99(0x1fc)](_0x454eb3))throw _0x454eb3[_0x23eb99(0x20e)];if(m['isTransformMutationFailure'](_0x58eb0d))throw _0x58eb0d[_0x23eb99(0x20e)];_0x14b928[_0x23eb99(0x1e7)]({..._0x133bc1[_0x3944e3],'undoState':_0x454eb3['m2Prime'][_0x23eb99(0x203)],'redoState':_0x58eb0d[_0x23eb99(0x13c)]['params']}),_0x224892=_0x454eb3[_0x23eb99(0x310)],_0x10e5e4=_0x58eb0d[_0x23eb99(0x310)];}this[_0x23eb99(0x1e5)][_0x23eb99(0x393)](_0x35fa6a,{'history':_0x3fb6ec,'collaboration':_0x14b928});}};J=Ft([le(0x0,a['Inject'](a['Injector'])),le(0x1,m[_0x2f2715(0x2f3)]),le(0x2,a[_0x2f2715(0x1e2)](b[_0x2f2715(0x37b)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x521992,_0x368053,_0xdd8e3e,_0xdfbd22)=>{const _0x54edd8=_0x2f2715;for(var _0x2d7f00=_0xdfbd22>0x1?void 0x0:_0xdfbd22?Yt(_0x368053,_0xdd8e3e):_0x368053,_0x3e4845=_0x521992[_0x54edd8(0x159)]-0x1,_0xaedf8f;_0x3e4845>=0x0;_0x3e4845--)(_0xaedf8f=_0x521992[_0x3e4845])&&(_0x2d7f00=_0xaedf8f(_0x2d7f00)||_0x2d7f00);return _0x2d7f00;},Ne=(_0x432dc2,_0x185368)=>(_0x9b1f1f,_0x37731c)=>_0x185368(_0x9b1f1f,_0x37731c,_0x432dc2);let Z=class{constructor(_0x28e949,_0x4dd7de){const _0x4d0a99=_0x2f2715;this[_0x4d0a99(0x2da)]=_0x28e949,this[_0x4d0a99(0x20a)]=_0x4dd7de;}['transformSelections'](_0x526ece){const _0x19c903=_0x2f2715;var _0x5a8ae6;const _0x5bccb0=this[_0x19c903(0x2da)][_0x19c903(0x2f7)](Y[_0x19c903(0x166)]),_0x492626=(_0x5a8ae6=_0x5bccb0['getDocRanges']())!=null?_0x5a8ae6:[];if(_0x492626[_0x19c903(0x159)]===0x0)return;const _0x41e977=_0x526ece[_0x19c903(0x3bb)],_0x179248=[{'id':_0x19c903(0x184),'params':{'unitId':_0x41e977,'actions':null,'textRanges':_0x492626}}],_0x56f1bb=this[_0x19c903(0x20a)]['transformMutationsWithChangeset'](_0x526ece,_0x179248);if(!m[_0x19c903(0x298)](_0x56f1bb))throw _0x56f1bb[_0x19c903(0x20e)];const _0x2c291f=_0x56f1bb[_0x19c903(0x13c)][0x0][_0x19c903(0x203)][_0x19c903(0x353)];Array['isArray'](_0x2c291f)&&_0x2c291f[_0x19c903(0x159)]&&_0x5bccb0[_0x19c903(0x199)](_0x2c291f,{'unitId':_0x41e977,'subUnitId':_0x41e977},!0x1);}};Z=Wt([Ne(0x0,a[_0x2f2715(0x1e2)](a[_0x2f2715(0x1f1)])),Ne(0x1,m[_0x2f2715(0x2f3)])],Z);var Vt=Object[_0x2f2715(0x3a5)],Xt=(_0x51c854,_0x3767e9,_0x48f928,_0x329f7f)=>{for(var _0x4e8159=_0x329f7f>0x1?void 0x0:_0x329f7f?Vt(_0x3767e9,_0x48f928):_0x3767e9,_0x177261=_0x51c854['length']-0x1,_0x8a354f;_0x177261>=0x0;_0x177261--)(_0x8a354f=_0x51c854[_0x177261])&&(_0x4e8159=_0x8a354f(_0x4e8159)||_0x4e8159);return _0x4e8159;},N=(_0x4523ce,_0xe69fef)=>(_0x4e11cd,_0x49ac98)=>_0xe69fef(_0x4e11cd,_0x49ac98,_0x4523ce);let Q=class extends a[_0x2f2715(0x24a)]{constructor(_0x1bc551,_0x3ab078,_0x4cf04a,_0x52e6cc,_0x1a3812,_0x4c2502,_0x327415,_0x2bacd7){const _0x241bd9=_0x2f2715;super(),h(this,_0x241bd9(0x2c4),new d[(_0x241bd9(0x388))](u[_0x241bd9(0x38d)][_0x241bd9(0x22c)])),(this[_0x241bd9(0x1e5)]=_0x1bc551,this[_0x241bd9(0x34e)]=_0x3ab078,this['_docTransformIMECacheService']=_0x4cf04a,this[_0x241bd9(0x25d)]=_0x52e6cc,this[_0x241bd9(0x2df)]=_0x1a3812,this[_0x241bd9(0x14e)]=_0x4c2502,this['_messageService']=_0x327415,this['_localeService']=_0x2bacd7,this[_0x241bd9(0x2f5)]());}[_0x2f2715(0x2f5)](){const _0x3ff1ec=_0x2f2715;this[_0x3ff1ec(0x1d4)](this[_0x3ff1ec(0x34e)][_0x3ff1ec(0x181)][_0x3ff1ec(0x185)](_0x2a1284=>{const _0x3ab59e=_0x3ff1ec,_0x285bdb=this[_0x3ab59e(0x1e5)][_0x3ab59e(0x28d)][_0x3ab59e(0x185)](_0x43196d=>{const _0x526ead=_0x3ab59e;if(_0x43196d==null)return;const {unitId:_0x44eeb4,redoState:_0x20ab38,commandId:_0x578954}=_0x43196d;if(_0x44eeb4!==_0x2a1284[_0x526ead(0x3bb)])return;const _0x31b97a={'id':_0x578954,'type':a['CommandType'][_0x526ead(0x387)],'params':{'unitId':_0x44eeb4,'actions':_0x20ab38[_0x526ead(0x2e3)],'textRanges':null}};_0x2a1284[_0x526ead(0x1f9)](_0x31b97a);});if(_0x2a1284[_0x3ab59e(0x1d4)](_0x285bdb),_0x2a1284 instanceof u['DocCollaborationEntity']){const _0x230acc={'onTransformIME':_0x23e3a5=>this['_docTransformIMECacheService'][_0x3ab59e(0x1f0)](_0x23e3a5),'onTransformState':_0x3e43f0=>this['_docTransformStateCacheService'][_0x3ab59e(0x37a)](_0x3e43f0),'onTransformSelections':_0x869ce1=>this[_0x3ab59e(0x2df)][_0x3ab59e(0x216)](_0x869ce1),'onSyncEditingCollabCursor':_0x3065a4=>this[_0x3ab59e(0x14e)][_0x3ab59e(0x3b8)](_0x3065a4),'onTransformRemoteChangesetByIMECache':_0x25345f=>this[_0x3ab59e(0x15b)]['transformRemoteChangeset'](_0x25345f),'onTransformRemoteChangesetByStateCache':_0x3fc8b1=>this[_0x3ab59e(0x25d)][_0x3ab59e(0x142)](_0x3fc8b1)};_0x2a1284[_0x3ab59e(0x208)](_0x230acc);}}));}};Q=Xt([N(0x0,a[_0x2f2715(0x1e2)](b[_0x2f2715(0x37b)])),N(0x1,a['Inject'](u[_0x2f2715(0x2b1)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x2f2715(0x1e2)](J)),N(0x4,a[_0x2f2715(0x1e2)](Z)),N(0x5,a[_0x2f2715(0x1e2)](Ce)),N(0x6,T[_0x2f2715(0x2a1)]),N(0x7,a['Inject'](a[_0x2f2715(0x27a)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x12add4,_0x54ffd4,_0x1ecce6,_0xafd704)=>{const _0x5300c7=_0x2f2715;for(var _0x4b08ef=_0xafd704>0x1?void 0x0:_0xafd704?Gt(_0x54ffd4,_0x1ecce6):_0x54ffd4,_0x3db48c=_0x12add4[_0x5300c7(0x159)]-0x1,_0x3e8587;_0x3db48c>=0x0;_0x3db48c--)(_0x3e8587=_0x12add4[_0x3db48c])&&(_0x4b08ef=_0x3e8587(_0x4b08ef)||_0x4b08ef);return _0x4b08ef;},_e=(_0x4fad11,_0x43a9b2)=>(_0x2bb669,_0x573bb6)=>_0x43a9b2(_0x2bb669,_0x573bb6,_0x4fad11);let ge=class extends a['Disposable']{constructor(_0x3d45f3,_0x45a2a8,_0x3623fb){const _0x27adbf=_0x2f2715;super(),h(this,_0x27adbf(0x306),new Map()),h(this,_0x27adbf(0x253),new Map()),h(this,_0x27adbf(0x1e4),!0x1),(this[_0x27adbf(0x1f8)]=_0x3d45f3,this[_0x27adbf(0x20c)]=_0x45a2a8,this[_0x27adbf(0x277)]=_0x3623fb);}['disableLocalCache'](){const _0x2edb1c=_0x2f2715;this[_0x2edb1c(0x1e4)]=!0x0;}[_0x2f2715(0x1ca)](){const _0x3f5c94=_0x2f2715;this[_0x3f5c94(0x1e4)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}['dispose'](){const _0x3a3b14=_0x2f2715;this[_0x3a3b14(0x155)]()[_0x3a3b14(0x206)](()=>super[_0x3a3b14(0x215)]());}async[_0x2f2715(0x308)](_0x31b584){const _0x14e6ef=_0x2f2715;return this[_0x14e6ef(0x1e4)]?null:this['_localStorageService'][_0x14e6ef(0x194)](u[_0x14e6ef(0x250)](_0x31b584));}async[_0x2f2715(0x3a6)](_0x369b97,_0x493ffa){const _0x187eb6=_0x2f2715;return!!this[_0x187eb6(0x20c)]['setItem'](_0x369b97,_0x493ffa);}[_0x2f2715(0x200)](_0x273435,_0xad658f,_0xa0dcd,_0x59084a){const _0x1c35cb=_0x2f2715,_0x3807fd=this[_0x1c35cb(0x277)][_0x1c35cb(0x152)](_0x273435);this[_0x1c35cb(0x306)][_0x1c35cb(0x2bc)](_0x273435,{'unitID':_0x273435,'type':_0xad658f,'awaitingChangeset':_0xa0dcd,'mutations':_0x59084a,'rev':_0x3807fd}),this[_0x1c35cb(0x253)]['has'](_0x273435)||this['_scheduleSaving'](_0x273435);}['_scheduleSaving'](_0x1993a5){const _0x54a7b4=_0x2f2715,_0x473c05=this[_0x54a7b4(0x19b)]();_0x473c05===0x0?this['_saveCache'](_0x1993a5):this[_0x54a7b4(0x253)][_0x54a7b4(0x2bc)](_0x1993a5,setTimeout(()=>this['_saveCache'](_0x1993a5),_0x473c05));}['_getSaveTimeout'](){const _0x224219=_0x2f2715;var _0x5ad7e9;return(_0x5ad7e9=this[_0x224219(0x1f8)]['getConfig'](u[_0x224219(0x251)]))!=null?_0x5ad7e9:u['LOCAL_CACHE_INTERVAL'];}[_0x2f2715(0x18a)](_0x38214f){const _0x5db4cb=_0x2f2715,_0x5988c1=this[_0x5db4cb(0x253)][_0x5db4cb(0x2f7)](_0x38214f);return _0x5988c1!==void 0x0&&window['clearTimeout'](_0x5988c1),this[_0x5db4cb(0x20c)]['setItem'](u[_0x5db4cb(0x250)](_0x38214f),this[_0x5db4cb(0x306)][_0x5db4cb(0x2f7)](_0x38214f))[_0x5db4cb(0x206)](()=>this[_0x5db4cb(0x253)][_0x5db4cb(0x1e1)](_0x38214f));}async['exhaustSavingTask'](){const _0x19785c=_0x2f2715,_0x425d7b=[];this[_0x19785c(0x253)]['forEach']((_0x1c0633,_0x58b5a0)=>{const _0x346eda=_0x19785c;window[_0x346eda(0x138)](_0x1c0633),_0x425d7b[_0x346eda(0x1f6)](this['_saveCache'](_0x58b5a0)[_0x346eda(0x206)](()=>{const _0x43bcd7=_0x346eda;this[_0x43bcd7(0x253)][_0x43bcd7(0x1e1)](_0x58b5a0);}));}),await Promise[_0x19785c(0x1c6)](_0x425d7b);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x2f2715(0x344)]),_e(0x2,a['Inject'](m['RevisionService']))],ge);class je extends a[_0x2f2715(0x33d)]{constructor(){const _0x2397a5=_0x2f2715;super(),h(this,'urlChange$'),this[_0x2397a5(0x27c)]=d['fromEvent'](window,_0x2397a5(0x3b5))[_0x2397a5(0x231)](d[_0x2397a5(0x378)](this[_0x2397a5(0x23a)]),d[_0x2397a5(0x27b)](0x1),d[_0x2397a5(0x1d6)](void 0x0));}[_0x2f2715(0x19f)](_0x2e4f1a,_0x3b48f4,_0x3a721c=!0x1){const _0x5976e8=_0x2f2715,_0x5d5671=new URL(window[_0x5976e8(0x341)][_0x5976e8(0x2ce)]);_0x5d5671[_0x5976e8(0x326)][_0x5976e8(0x2bc)](_0x2e4f1a,_0x3b48f4),_0x3a721c?window[_0x5976e8(0x1ba)][_0x5976e8(0x385)]('','',_0x5d5671[_0x5976e8(0x1de)]()):window[_0x5976e8(0x1ba)][_0x5976e8(0x23e)]('','',_0x5d5671[_0x5976e8(0x1de)]());}[_0x2f2715(0x16e)](_0x590472,_0x123f62=!0x1){const _0x16571c=_0x2f2715,_0x13380e=new URL(window['location'][_0x16571c(0x2ce)]);_0x13380e[_0x16571c(0x326)][_0x16571c(0x1e1)](_0x590472),_0x123f62?window['history'][_0x16571c(0x385)]('','',_0x13380e['toString']()):window[_0x16571c(0x1ba)][_0x16571c(0x23e)]('','',_0x13380e[_0x16571c(0x1de)]());}['getParam'](_0x1358fc){const _0x2a1d01=_0x2f2715;var _0x50511a;return(_0x50511a=new URL(window[_0x2a1d01(0x341)][_0x2a1d01(0x2ce)])[_0x2a1d01(0x326)]['get'](_0x1358fc))!=null?_0x50511a:void 0x0;}}var qt=Object[_0x2f2715(0x3a2)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x24b014,_0x3f89b4,_0x467784)=>_0x3f89b4 in _0x24b014?qt(_0x24b014,_0x3f89b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x467784}):_0x24b014[_0x3f89b4]=_0x467784,Zt=(_0x5cec5c,_0x4a3ef1,_0x44d0b4,_0x34e318)=>{for(var _0x5689f5=_0x34e318>0x1?void 0x0:_0x34e318?zt(_0x4a3ef1,_0x44d0b4):_0x4a3ef1,_0x181ef4=_0x5cec5c['length']-0x1,_0x4d9cb5;_0x181ef4>=0x0;_0x181ef4--)(_0x4d9cb5=_0x5cec5c[_0x181ef4])&&(_0x5689f5=_0x4d9cb5(_0x5689f5)||_0x5689f5);return _0x5689f5;},he=(_0x4e33b1,_0x253128)=>(_0x36afaf,_0x5033d8)=>_0x253128(_0x36afaf,_0x5033d8,_0x4e33b1),Qt=(_0x5d3297,_0x283a36,_0x4d10cd)=>Jt(_0x5d3297,_0x283a36+'',_0x4d10cd);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x2f2715(0x394)]=class extends a['Plugin']{constructor(_0x22ace7=Ue,_0x3271b3,_0x3b8033,_0x2370ea){const _0x84bf68=_0x2f2715;super(),this[_0x84bf68(0x2b2)]=_0x22ace7,this[_0x84bf68(0x27f)]=_0x3271b3,this[_0x84bf68(0x2da)]=_0x3b8033,this[_0x84bf68(0x1f8)]=_0x2370ea;const {..._0x53a73a}=a[_0x84bf68(0x2ff)]({},Ue,this['_config']);this[_0x84bf68(0x1f8)]['setConfig']($t,_0x53a73a);}[_0x2f2715(0x303)](){const _0x34080f=_0x2f2715;this[_0x34080f(0x23d)](),this[_0x34080f(0x190)]();}[_0x2f2715(0x294)](){this['_registerRenderDependencies']();}[_0x2f2715(0x23d)](){const _0x40dbe5=_0x2f2715;var _0x5e5ffb;const _0x5ab4b1=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G['ISocketService'],{'useClass':G[_0x40dbe5(0x2ad)]}],[u[_0x40dbe5(0x28e)],{'useClass':ge}],[exports[_0x40dbe5(0x30a)]],[Q],[q],[x],[de],[exports[_0x40dbe5(0x140)]]];a[_0x40dbe5(0x262)](this[_0x40dbe5(0x2da)],a['mergeOverrideWithDependencies'](_0x5ab4b1,(_0x5e5ffb=this[_0x40dbe5(0x2b2)])==null?void 0x0:_0x5e5ffb[_0x40dbe5(0x22d)]));}[_0x2f2715(0x171)](){const _0x5f1e81=_0x2f2715;this[_0x5f1e81(0x1d4)](this['_renderManagerService'][_0x5f1e81(0x36a)](a['UniverInstanceType'][_0x5f1e81(0x223)],[Ie])),this[_0x5f1e81(0x1d4)](this[_0x5f1e81(0x27f)][_0x5f1e81(0x36a)](a[_0x5f1e81(0x17a)][_0x5f1e81(0x3a9)],[ve]));}[_0x2f2715(0x190)](){const _0x1d5555=_0x2f2715;a[_0x1d5555(0x25b)](this[_0x1d5555(0x2da)],[[x],[exports[_0x1d5555(0x30a)]],[Q],[q],[exports[_0x1d5555(0x140)]]]);}},Qt(exports[_0x2f2715(0x394)],_0x2f2715(0x380),es),exports[_0x2f2715(0x394)]=Zt([a['DependentOn'](u[_0x2f2715(0x364)]),he(0x1,p['IRenderManagerService']),he(0x2,a['Inject'](a[_0x2f2715(0x1f1)])),he(0x3,a[_0x2f2715(0x1c0)])],exports[_0x2f2715(0x394)]);var ts=Object[_0x2f2715(0x3a5)],ss=(_0x1bcf21,_0x522539,_0x21d4d0,_0x1793ed)=>{const _0x4633e9=_0x2f2715;for(var _0x5036ca=_0x1793ed>0x1?void 0x0:_0x1793ed?ts(_0x522539,_0x21d4d0):_0x522539,_0xc47c7f=_0x1bcf21[_0x4633e9(0x159)]-0x1,_0x58be70;_0xc47c7f>=0x0;_0xc47c7f--)(_0x58be70=_0x1bcf21[_0xc47c7f])&&(_0x5036ca=_0x58be70(_0x5036ca)||_0x5036ca);return _0x5036ca;},F=(_0x2ff402,_0x5a16d4)=>(_0x544b60,_0x47fa4e)=>_0x5a16d4(_0x544b60,_0x47fa4e,_0x2ff402);exports[_0x2f2715(0x32b)]=class extends u[_0x2f2715(0x396)]{constructor(_0x2846af,_0xf70f6c,_0x56cd49,_0x2bc017,_0xd359ee){super(_0x2846af,_0xf70f6c,_0x56cd49,_0x2bc017,_0xd359ee);}async[_0x2f2715(0x2bb)](_0x2cc491){const _0x4d904d=_0x2f2715,_0x4322d4=await this[_0x4d904d(0x2c1)](),_0x191db4=this[_0x4d904d(0x2cc)](_0x2cc491,_0x4322d4);return this[_0x4d904d(0x38c)](_0x191db4);}[_0x2f2715(0x2cc)](_0x556884,_0x5a4c52){const _0x1584ad=_0x2f2715,_0x170ab6=typeof window>'u'?new URL(_0x556884):new URL(_0x556884,window['location']['origin']);_0x170ab6[_0x1584ad(0x326)]['set'](_0x1584ad(0x174),_0x5a4c52);const _0x2e3414=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1584ad(0x33f)]);return _0x2e3414[_0x1584ad(0x2f7)](_0x1584ad(0x39b))&&_0x170ab6[_0x1584ad(0x326)]['set'](_0x1584ad(0x39b),_0x2e3414[_0x1584ad(0x2f7)](_0x1584ad(0x39b))),_0x170ab6[_0x1584ad(0x1de)]();}async[_0x2f2715(0x2c1)](){const _0x251875=_0x2f2715;var _0x5775df,_0x2f544f,_0x1692e5;const _0x1cd57c=this[_0x251875(0x1f8)][_0x251875(0x3af)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x24af8f=(_0x5775df=_0x1cd57c==null?void 0x0:_0x1cd57c['wsSessionTicketUrl'])!=null?_0x5775df:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x1692e5=(_0x2f544f=(await this[_0x251875(0x3b3)][_0x251875(0x2f7)](_0x24af8f,{'headers':{'Content-Type':_0x251875(0x3ac)}}))['body'])==null?void 0x0:_0x2f544f['ticket'])!=null?_0x1692e5:'';}},exports[_0x2f2715(0x32b)]=ss([F(0x0,a['Inject'](a['Injector'])),F(0x1,a[_0x2f2715(0x1e2)](G[_0x2f2715(0x21e)])),F(0x2,a[_0x2f2715(0x1c0)]),F(0x3,a['ILogService']),F(0x4,m[_0x2f2715(0x323)])],exports[_0x2f2715(0x32b)]);const Me=0x7530,Le=_0x2f2715(0x242);function _0xdf25(){const _0x2cc6c9=['_name','Rect','handleInsertCol','WebURLService','_handleHover','session.collaboration-timeout','invokeId','result','YUUMI_ALL_TABLES_IS_INVALID','_initResize','handleIRemoveRow','SOCKET_FAILED_RETRY','getViewport','_revisionService','getTypeOfUnitAdded$','registerBeforeClose','LocaleService','shareReplay','urlChange$','getValue','_range','_renderManagerService','off-line-single','INVITE_CODE_ALREADY_BOUND','rxjs/operators','xlink:href','permission.content','translate(.97)','YUUMI_UNABLE_LOAD_URL','colorChannel1','M0\x200H16V16H0z','collaboration.single-unit.warning','makeDirty','collabStatus.offline','WebBrowserSingleActiveUnitService','docStateChange$','ILocalCacheService','className','createInstance','lineTo','IRemoteInstanceService','getTypeOfUnitDisposed$','onRendered','min','APPLY_REVISION_CONFILICT','@univerjs/core','isTransformMutationsWithChangesetSuccess','handleInsertRangeMoveDown','createElement','9YXxlWr','getUnhiddenWorksheets','_docSkeletonManagerService','@univerjs/design','JOIN_ROOM_FAILED','RECT','IMessageService','isArray','serializeRangeWithSheet','key','tag','NOT_FOUND','_handleHeartbeatEvent','0\x200\x2017\x2016','code','addEventListener','_cursors','_send','WebSocketService','toRgbString','1042936TQZBvH','_getAnchorBounding','CollaborationController','_config','executeCommand','split','Shape','show','path','@univerjs/sheets-ui','runRefRangeMutations','SessionStatus','createSocket','set','_urlService','ENSURE_SNAPSHOT_EXECUTION','backgroundColor','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_getSessionTicket','#FFF','evenodd','_status$','connectInjector','_anchorDot','throttleTime','_cursor','green.600','getSheetBySheetId','getAncestorScale','_createSocketURL','arc','href','SheetCollabCursorShape','from','CONNECTOR_DATA_TOO_LARGE','on-line-single','getDocRanges','LOGIN_FAILED','session.connection-failed','redoState','SetSelectionsOperation','Vector2','_assignedColors','_injector','HEADER_MENU','SYNCED','@univerjs/network','SUBMIT_CHANGESET_TIMEOUT','_docTransformSelectionsService','stringify','EMAIL_HAS_BEEN_BOUND','Error','actions','PENDING','CollaborationUIEventId','@univerjs/ui','type','assignAColorForMemberID','getCurrentSelections','apply','extend','onCommandExecuted','_updateSubUnitFromURLParams','USERS_LEAVE','univerjs-icon\x20univerjs-icon-','resize','@univerjs/sheets','flatMap','ITransformService','width','_initEntityListener','@univerjs-pro/collaboration-client','get','_render','_handleLeaveEvent','clipPath','sessionStatus$','OTHER_CLIENTS_EDITING','switchMap','collab-text-range-','merge','_session','getCurrent','handleInsertRow','onStarting','SNAPSHOT_HAS_BEEN_REMOVED','APPLY_PERMISSION_DENIED','_cachedData','1270calpRA','loadOfflineData','permission.title','DesktopCollaborationStatusDisplayController','YUUMI_NO_CUBOID_FOR_QUESTION','hasOwnProperty','FETCH_MISS','univer-flex\x20univer-mr-2\x20univer-text-xl','getParam','m1Prime','startColumn','restore','post','YUUMI_TABLE_NOT_FOUND_IN_UNIT','imageSourceType','children','_refreshCollabCursors','memberID','unsubscribe','12072gJCiez','measureText','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','map','_selfUnitIDs','attrs','_entityInit$','random','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','ISnapshotServerService','roomMembers$','_memberService','searchParams','getMergeData','drawWith','closePath','executionId','BrowserCollaborationSocketService','RemoveColCommandId','propertyIsEnumerable','_getScale','newValue','IUIPartsService','transformByState','getRenderById','focused$','fillStyle','transformMutationsWithChangeset','UNAUTHENTICATED','OTHER_CLIENT_EDITING','fill','icon','fromEventSubject','findNodePositionByCharIndex','EffectRefRangId','RxDisposable','_colorIndex','search','useRef','location','currentSkeleton$','_toggleOffline','ILocalStorageService','TEXT','data','init','YUUMI_URL_COL_OUT_OF_RANGE','Warning','collabCursorState$','SHEET_VIEWPORT_KEY','collab-client.tooltip.reconnect','handleInsertRangeMoveRight','_collaborationController','off-line-single_clip0_910_343','body','OnLineSingle','TEXT_RANGE_LAYER_INDEX','textRanges','handleIRemoveCol','_imageIoService','YUUMI_SUBSCRIPTION_NOT_FOUND','UPDATE_CURSOR','assign','fillRule','Module','ICommandService','_instanceService','isActive','_draw','DeleteRangeMoveUpCommandId','sheetID','div','setUndoRedoMutationParamsCache','Optional','UniverCollaborationClientPlugin','IImageIoService','MoveRangeCommandId','string','INVITE_CODE_HAS_BEEN_UES','defIds','registerRenderModule','VIEW_MAIN','getSheetId','onPointerLeave$','TOO_MANY_REQUESTS','NO_OTHER_CLIENTS_EDITING','_beforeCloseService','RemoteUniscriptService','getMemberID','getCollabEntity$','LICENSE_IMPORT_SIZE_EXCEEDED','Subject','getSkeleton','InsertRowCommandId','takeUntil','7706jvxAWW','transformStateCache','DocStateChangeManagerService','RichTextEditingMutation','on-line-single_clip0_910_349','YUUMI_ASYNCIO_CANCELLED','setAlpha','pluginName','MOBILE_HAS_BEEN_BOUND','collabStatus.fetchMiss','IUniverInstanceService','with','replaceState','_initEvent','MUTATION','BehaviorSubject','height','UnitStatus','getActiveSheet','_doCreateSocket','CollaborationStatus','_updateURLWithCurrentState','debounceTime','_setupBeforeClosingHandler','_shapes','send','setStateCache','UniverCollaborationClientUIPlugin','concat','CollaborationSocketService','_collabSessionService','loadUnit','getSheetObject','IBeforeCloseService','runId','_updateLocalCursor','@univerjs/engine-formula','none','call','defs','indexOf','defineProperty','[CollaborationDataLoaderController]','skeleton','getOwnPropertyDescriptor','saveOfflineData','SetWorksheetActivateCommand','_setupSubUnitSync','UNIVER_SHEET','_collaborationUIEventService','some','application/json','CONFLICT','PERMISSION_DENIED','getConfig','_transformPreviousActiveRange','SNAPSHOT_INVALID_SNAPSHOT','_syncEditingCollabCursorService','_httpService','getCoordByCell','popstate','_sheetSkeletonManagerService','_dataLoaderService','syncEditingCollabCursor','IURLService','mutations','unitID','name','UNRECOGNIZED','clearTimeout','PY_RUNTIME_SCRIPT_ERROR','top','registerRefRange','m2Prime','collab-text-anchor-','_themeService','1171988xgmFDX','CollaborationDataLoaderController','ONLINE','transformRemoteChangeset','getMember','_transformHistoryAndStateStack','_getMergeRange','getColorFromTheme','source','LICENSE_MAX_UNITS_EXCEEDED','NodePositionConvertToCursor','NodePositionConvertToRectRange','next','debounce','createIdentifier','_docSyncEditingCollabCursorService','includes','_clearOtherTimers','LICENSE_DISTRO_REJECTED','getCurrentRevOfUnit','CollaborationSessionService','COLORS','exhaustSavingTask','has','toDisposable','_drawTextRange','length','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_docTransformIMECacheService','useDependency','combineLatest','_unitOnClients','debug','generateRandomId','COMPLETION_FINISHED','red.300','getColor','#fff','replace','DocSelectionManagerService','collabStatus.conflict','jsx','_startSheetCollabCursor','_color','font','useObservable','currentColor','removeParam','11MrMitY','RegularPolygon','_registerRenderDependencies','url(#off-line-single_clip0_910_343)','DocIMEInputManagerService','sessionTicket','DOC_RANGE_TYPE','endRow','_collabCursorState$','deserializeRangeWithSheet','_collabCursorController','UniverInstanceType','unitId','WECHAT_HAS_BEEN_BOUND','displayName','mask','_transformUndoRedoStack','Unknown\x20user','entityInit$','INotificationService','CollaborationUIEventService','doc.mutation.rich-text-editing','subscribe','cursorInfo','roomMembers','saveTaskMap','_onCursorDelete','_saveCache','getFocusedUnit','_drawAnchor','_hovered','registerComponent','parse','_initDependencies','getOffsetConfig','_initCommandExecutedListener','_toggleOnline','getItem','addClipboardHook','Tools','SheetSkeletonManagerService','setItem','replaceDocRanges','_commandService','_getSaveTimeout','_onCursorUpdate','idSuffix','_entities','setParam','subscribeEvent','_getSheetObject','text','function','DataLoaderService','0\x200\x2016\x2016','column','DeleteRangeMoveLeftCommandId','DocSkeletonManagerService','MessageType','1em','[RemoteUniscriptService]:\x20no\x20focused\x20unit','@univerjs/drawing','getUnitStatus$','_handleEvent','cursorInfo$','ThemeService','_localeService','url(#$1','_online','_cursorInfo$','size','asObservable','OFFLINE','setShapeProps','purple.300','history','Failed','uni.network.url-service','AWAITING','runOnServer','addObjects','IConfigService','FromArray','_heartbeatTimer','sheetId','complete','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','all','black','setInterval','APPLY_DUPLICATED','enableLocalCache','_init','entries','_textBubble','_localCacheService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','LICENSE_EXPORT_SIZE_EXCEEDED','prototype','_docSkeleton','_scene','disposeWithMe','_eventUnsubscribe','mapTo','collaboration.closeRoom','subUnitId','_onRefRangeChange','_startDocCollabCursor','_backgroundColor','CHANGESET_REVISION_CONFILICT','currentTheme$','toString','current','@univerjs/engine-render','delete','Inject','IDocClipboardService','_disabled','_docStateChangeManagerService','_scheduleClearOtherTimer','unshift','deepClone','getRangePointData','_drawRectRange','rxjs','clearInterval','startRow','_refRangeService','filter','transformIMECache','Injector','transform','_updateCollabCursors','getRelativeToViewportCoord','blue.400','push','undoState','_configService','onLocalMutation','YUUMI_RATE_OVER_LIMIT','_document','isTransformMutationFailure','beginPath','substring','InsertRangeMoveDownCommandId','updateOfflineData','UNDEFINED','USER_NOT_INVITED_CODE','params','activeSheet$','YUUMI_AI_RUN_FAILED','then','addObject','addHandlerCallback','_roomMembers$','_transformService','transformMutation','_localStorageService','INVALID_ARGUMENT','error','univer-flex\x20univer-items-center','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','onTransformChange$','status$','_unitStatus','Rectangle','dispose','transformSelections','_anchor','event$','fromEvent','...','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getActiveRange','APPLY_NON_SEQUENTIAL_REVISION','HTTPService','getCollabCursors$','219LnJfJp','1260231GnWjsN','isEditing','UNIVER_DOC','INVITE_CODE_REQUIRED','_removeCollabCursors','onPointerEnter$','_messageService','_logService','_colorAssignService','_ensureSubject','/run/','NOT_COLLAB','override','startsWith','symbol','SOCKET_FAILED','pipe','storage','save','getStateCache','getUndoRedoMutationParamsCache','INVALID_INVITE_CODE','APPLY_REJECT','toStringTag','add','dispose$','_uiPartsService','CollaborationEvent','_registerDependencies','pushState','_initStatusListener','hide','useCallback','ACTIVE_UNIT_EVENT_CHANNEL','svg','color','subunit','Tooltip','119810fxYBLx','130253zOLffG','BuiltInUIPart','Disposable','selection','_id','getUnitId','MemberService','_removeClearOtherTimer','getLocalCacheKey','LOCAL_CACHE_INTERVAL_KEY','_hover','_saveTaskMap','moveTo','onMouseMove','_cursorShapes','range','_labelPosition','_hideTimer','requireSession','touchDependencies','_context','_docTransformStateCacheService','values','TRANSFORM_CHANGE_OBSERVABLE_TYPE','round','collabStatus.syncing','registerDependencies','fillText','@univerjs/docs-ui','forEach','rgba(255,\x20255,\x20255,\x200.01)','_univerInstanceService','forwardRef','ranges'];_0xdf25=function(){return _0x2cc6c9;};return _0xdf25();}class is extends a[_0x2f2715(0x24a)]{constructor(){const _0x2e261e=_0x2f2715;super(),h(this,_0x2e261e(0x24c),a[_0x2e261e(0x160)]()),h(this,'_selfUnitIDs',new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x2e261e(0x1c2),null),h(this,_0x2e261e(0x150),new Map()),h(this,_0x2e261e(0x213),new Map()),this['_init']();}['dispose'](){const _0xcaf131=_0x2f2715;super['dispose'](),this['_clearOtherTimers'][_0xcaf131(0x265)]((_0x4e297c,_0x3ac5ee)=>this[_0xcaf131(0x24f)](_0x3ac5ee)),this[_0xcaf131(0x1c2)]&&window[_0xcaf131(0x1ec)](this[_0xcaf131(0x1c2)]);}[_0x2f2715(0x1ad)](_0x1c6a24){const _0x11154f=_0x2f2715;return this[_0x11154f(0x22a)](_0x1c6a24)[_0x11154f(0x231)](d['distinctUntilChanged']());}['editingUnit'](_0xb898a2){const _0x54f2aa=_0x2f2715;this[_0x54f2aa(0x31e)][_0x54f2aa(0x1b5)]===0x0&&this['_scheduleHeartbeat'](),this[_0x54f2aa(0x31e)][_0x54f2aa(0x239)](_0xb898a2),this[_0x54f2aa(0x2ac)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xb898a2],'isForwarded':!0x1});}['disposeUnit'](_0x1dc5e3){const _0x204c73=_0x2f2715;this[_0x204c73(0x31e)]['delete'](_0x1dc5e3),this['_selfUnitIDs'][_0x204c73(0x1b5)]===0x0&&this[_0x204c73(0x1c2)]&&window[_0x204c73(0x1ec)](this[_0x204c73(0x1c2)]);}[_0x2f2715(0x1cb)](){const _0x372055=_0x2f2715;this[_0x372055(0x1d4)](a[_0x372055(0x157)](d[_0x372055(0x219)](window,_0x372055(0x232))[_0x372055(0x185)](_0x283032=>{const _0x2a7c32=_0x372055;if(_0x283032[_0x2a7c32(0x2a4)]!==Le||!_0x283032[_0x2a7c32(0x32f)])return;const _0x3e20aa=JSON[_0x2a7c32(0x18f)](_0x283032[_0x2a7c32(0x32f)]);this[_0x2a7c32(0x1ae)](_0x3e20aa);}))),window[_0x372055(0x2aa)]('unload',()=>this[_0x372055(0x2ac)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x372055(0x2d0)](this['_selfUnitIDs'])}));}[_0x2f2715(0x1ae)](_0x2dc3e5){const _0xc20e26=_0x2f2715;switch(_0x2dc3e5['type']){case 0x0:this['_handleJoinEvent'](_0x2dc3e5);break;case 0x1:this[_0xc20e26(0x2f9)](_0x2dc3e5);break;case 0x2:this[_0xc20e26(0x2a7)](_0x2dc3e5);break;}}['_handleJoinEvent'](_0x532e6c){const _0x104e22=_0x2f2715,{unitIDs:_0x39ff93,memberID:_0x5c3221,isForwarded:_0x45f7c9}=_0x532e6c;_0x39ff93[_0x104e22(0x265)](_0x4ae8b8=>{const _0x444931=_0x104e22;if(!_0x45f7c9&&this[_0x444931(0x15e)][_0x444931(0x156)](_0x4ae8b8)&&this[_0x444931(0x22a)](_0x4ae8b8)['next'](u[_0x444931(0x38a)][_0x444931(0x2fc)]),!this['_unitOnClients'][_0x444931(0x156)](_0x4ae8b8)||!this[_0x444931(0x15e)]['get'](_0x4ae8b8)[_0x444931(0x156)](_0x5c3221)){const _0x135306=this[_0x444931(0x15e)][_0x444931(0x2f7)](_0x4ae8b8)||new Set();_0x135306['add'](_0x5c3221),this[_0x444931(0x15e)][_0x444931(0x2bc)](_0x4ae8b8,_0x135306),this['_scheduleClearOtherTimer'](_0x5c3221);}}),_0x45f7c9||this[_0x104e22(0x2ac)]({'type':0x0,'memberID':this[_0x104e22(0x24c)],'unitIDs':[...this[_0x104e22(0x31e)]],'isForwarded':!0x0});}[_0x2f2715(0x1e6)](_0x58b8de){const _0x17afb1=_0x2f2715;this['_removeClearOtherTimer'](_0x58b8de);const _0x1589ce=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0x192dec=>{const _0x212102=_0x330b;_0x192dec[_0x212102(0x1e1)](_0x58b8de);});},Me*0x2);this[_0x17afb1(0x150)][_0x17afb1(0x2bc)](_0x58b8de,_0x1589ce);}['_removeClearOtherTimer'](_0x69a7a){const _0x35bd0a=_0x2f2715;if(this[_0x35bd0a(0x150)]['has'](_0x69a7a)){const _0x4f3160=this['_clearOtherTimers']['get'](_0x69a7a);_0x4f3160&&window[_0x35bd0a(0x138)](_0x4f3160),this['_clearOtherTimers'][_0x35bd0a(0x2bc)](_0x69a7a,null);}}[_0x2f2715(0x2f9)](_0x213056){const {memberID:_0x32dd6d,unitIDs:_0x292c59}=_0x213056;_0x292c59['forEach'](_0x5861b0=>{const _0x294147=_0x330b;var _0x31846d;const _0x40a946=this['_unitOnClients']['get'](_0x5861b0);_0x40a946&&(_0x40a946[_0x294147(0x1e1)](_0x32dd6d),(_0x31846d=this[_0x294147(0x22a)](_0x5861b0))==null||_0x31846d['next'](_0x40a946[_0x294147(0x1b5)]===0x0?u[_0x294147(0x38a)][_0x294147(0x36f)]:u['UnitStatus'][_0x294147(0x2fc)]));}),this['_removeClearOtherTimer'](_0x32dd6d);}[_0x2f2715(0x2a7)](_0x4bfe4b){const _0x4d879e=_0x2f2715;this[_0x4d879e(0x1e6)](_0x4bfe4b[_0x4d879e(0x318)]);}['_send'](_0x172e0a){const _0x12ca14=_0x2f2715;localStorage[_0x12ca14(0x198)](Le,JSON[_0x12ca14(0x2e0)](_0x172e0a));}['_scheduleHeartbeat'](){const _0x55f2a0=_0x2f2715;this[_0x55f2a0(0x1c2)]=window[_0x55f2a0(0x1c8)](()=>{const _0x376f36=_0x55f2a0;this[_0x376f36(0x2ac)]({'type':0x2,'memberID':this[_0x376f36(0x24c)]});},Me);}[_0x2f2715(0x22a)](_0x42b2a4){const _0x5e433e=_0x2f2715;return this[_0x5e433e(0x213)]['has'](_0x42b2a4)||this[_0x5e433e(0x213)][_0x5e433e(0x2bc)](_0x42b2a4,new d['BehaviorSubject'](u[_0x5e433e(0x38a)][_0x5e433e(0x36f)])),this[_0x5e433e(0x213)]['get'](_0x42b2a4);}}var Be=(_0x511422=>(_0x511422[_0x511422[_0x2f2715(0x201)]=0x0]=_0x2f2715(0x201),_0x511422[_0x511422['OK']=0x1]='OK',_0x511422[_0x511422['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x511422[_0x511422['PERMISSION_DENIED']=0x3]=_0x2f2715(0x3ae),_0x511422[_0x511422[_0x2f2715(0x2a6)]=0x4]=_0x2f2715(0x2a6),_0x511422[_0x511422['UNAUTHENTICATED']=0x5]=_0x2f2715(0x336),_0x511422[_0x511422['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x511422[_0x511422['INVALID_ARGUMENT']=0x7]=_0x2f2715(0x20d),_0x511422[_0x511422[_0x2f2715(0x36e)]=0x8]=_0x2f2715(0x36e),_0x511422[_0x511422[_0x2f2715(0x161)]=0x9]=_0x2f2715(0x161),_0x511422[_0x511422[_0x2f2715(0x2d4)]=0xa]=_0x2f2715(0x2d4),_0x511422[_0x511422[_0x2f2715(0x1dc)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x511422[_0x511422[_0x2f2715(0x3b1)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x511422[_0x511422[_0x2f2715(0x304)]=0x1772]=_0x2f2715(0x304),_0x511422[_0x511422[_0x2f2715(0x2be)]=0x1773]=_0x2f2715(0x2be),_0x511422[_0x511422[_0x2f2715(0x237)]=0x1b59]=_0x2f2715(0x237),_0x511422[_0x511422['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x2f2715(0x21d),_0x511422[_0x511422[_0x2f2715(0x296)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x511422[_0x511422[_0x2f2715(0x305)]=0x1b5c]=_0x2f2715(0x305),_0x511422[_0x511422[_0x2f2715(0x1c9)]=0x1b5d]=_0x2f2715(0x1c9),_0x511422[_0x511422[_0x2f2715(0x2d1)]=0x1f41]=_0x2f2715(0x2d1),_0x511422[_0x511422[_0x2f2715(0x148)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x511422[_0x511422[_0x2f2715(0x21b)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x511422[_0x511422[_0x2f2715(0x374)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x511422[_0x511422[_0x2f2715(0x1d0)]=0x232c]=_0x2f2715(0x1d0),_0x511422[_0x511422[_0x2f2715(0x151)]=0x232d]=_0x2f2715(0x151),_0x511422[_0x511422[_0x2f2715(0x286)]=0x2711]=_0x2f2715(0x286),_0x511422[_0x511422['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x2f2715(0x348),_0x511422[_0x511422[_0x2f2715(0x1fa)]=0x2713]=_0x2f2715(0x1fa),_0x511422[_0x511422[_0x2f2715(0x356)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x511422[_0x511422[_0x2f2715(0x30b)]=0x271a]=_0x2f2715(0x30b),_0x511422[_0x511422[_0x2f2715(0x37e)]=0x271b]=_0x2f2715(0x37e),_0x511422[_0x511422[_0x2f2715(0x314)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x511422[_0x511422[_0x2f2715(0x272)]=0x271d]=_0x2f2715(0x272),_0x511422[_0x511422[_0x2f2715(0x31c)]=0x271e]=_0x2f2715(0x31c),_0x511422[_0x511422[_0x2f2715(0x205)]=0x271f]=_0x2f2715(0x205),_0x511422[_0x511422[_0x2f2715(0x139)]=0x2af9]=_0x2f2715(0x139),_0x511422[_0x511422[_0x2f2715(0x368)]=0x2ee1]=_0x2f2715(0x368),_0x511422[_0x511422[_0x2f2715(0x236)]=0x2ee2]='INVALID_INVITE_CODE',_0x511422[_0x511422[_0x2f2715(0x224)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x511422[_0x511422['USER_NOT_INVITED_CODE']=0x2ee4]=_0x2f2715(0x202),_0x511422[_0x511422[_0x2f2715(0x281)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x511422[_0x511422[_0x2f2715(0x17c)]=0x32c9]=_0x2f2715(0x17c),_0x511422[_0x511422[_0x2f2715(0x381)]=0x32ca]=_0x2f2715(0x381),_0x511422[_0x511422[_0x2f2715(0x2e1)]=0x32cb]=_0x2f2715(0x2e1),_0x511422[_0x511422['UNRECOGNIZED']=-0x1]=_0x2f2715(0x3bd),_0x511422))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x398041,_0x2cd4e5,_0x17b847,_0x5a6b50)=>{const _0x409376=_0x2f2715;for(var _0x679f0a=_0x5a6b50>0x1?void 0x0:_0x5a6b50?ns(_0x2cd4e5,_0x17b847):_0x2cd4e5,_0x3916c3=_0x398041[_0x409376(0x159)]-0x1,_0x426b10;_0x3916c3>=0x0;_0x3916c3--)(_0x426b10=_0x398041[_0x3916c3])&&(_0x679f0a=_0x426b10(_0x679f0a)||_0x679f0a);return _0x679f0a;},ue=(_0x40a6b9,_0x3cf81c)=>(_0x264f6c,_0x3494f2)=>_0x3cf81c(_0x264f6c,_0x3494f2,_0x40a6b9);exports['RemoteUniscriptService']=class extends a[_0x2f2715(0x24a)]{constructor(_0x12c3f2,_0x2e3b8a,_0x32430f){const _0x23cd1f=_0x2f2715;super(),this['_instanceService']=_0x12c3f2,this[_0x23cd1f(0x3b3)]=_0x2e3b8a,this[_0x23cd1f(0x1f8)]=_0x32430f;}async[_0x2f2715(0x1be)](_0x13a742,_0x533071,_0x1cca6c,..._0x364548){const _0x44c3a2=_0x2f2715;var _0x36d109,_0x5e1bf5,_0x5070ce,_0x3f3927;const _0x13de1f=this[_0x44c3a2(0x35c)][_0x44c3a2(0x18b)]();if(!_0x13de1f)throw new Error(_0x44c3a2(0x1ab));const _0x243a9c=((_0x36d109=this[_0x44c3a2(0x1f8)]['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x36d109:u[_0x44c3a2(0x1cf)])+'/'+_0x13a742+_0x44c3a2(0x22b)+_0x533071,_0x38d899=new URL(window[_0x44c3a2(0x341)][_0x44c3a2(0x2ce)]),_0x333740={'scriptId':_0x13a742,'runId':(_0x5e1bf5=_0x38d899[_0x44c3a2(0x326)][_0x44c3a2(0x2f7)]('runId'))!=null?_0x5e1bf5:'','function':_0x533071,'unitId':_0x13de1f['getUnitId'](),'argsOfFunction':JSON[_0x44c3a2(0x2e0)](_0x364548),'invokeId':(_0x5070ce=_0x1cca6c[_0x44c3a2(0x270)])!=null?_0x5070ce:'','executionId':(_0x3f3927=_0x1cca6c[_0x44c3a2(0x32a)])!=null?_0x3f3927:''};try{const _0x1370d1=await this[_0x44c3a2(0x3b3)][_0x44c3a2(0x313)](_0x243a9c,{'body':_0x333740});return _0x1370d1[_0x44c3a2(0x350)][_0x44c3a2(0x20e)]&&_0x1370d1[_0x44c3a2(0x350)][_0x44c3a2(0x20e)][_0x44c3a2(0x2a9)]!==Be['OK']?_0x44c3a2(0x1bb):_0x1370d1[_0x44c3a2(0x350)][_0x44c3a2(0x271)];}catch{return _0x44c3a2(0x1bb);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0x2f2715(0x383)]),ue(0x1,a[_0x2f2715(0x1e2)](G[_0x2f2715(0x21e)])),ue(0x2,a[_0x2f2715(0x1c0)])],exports[_0x2f2715(0x371)]),exports['CollaborationStatusDisplay']=xe,exports[_0x2f2715(0x3b9)]=be,exports[_0x2f2715(0x2cf)]=Ae,exports[_0x2f2715(0x28c)]=is,exports[_0x2f2715(0x26d)]=je;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x4ec8(){const _0xf1c2ef=['Local\x20file','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','5KVScHf','1331104mdTEXN','10jPRLQf','3789498AVNKaO','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Click\x20to\x20Reconnect','2793984ZjqAor','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','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.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','7fUKAIc','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Edit\x20conflicts','24iXaTCd','4547691rFhAVK','11651783oALetE','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','3lzcHJe','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Syncing...','468357hsNAhu','Authentication\x20Error','642662IdupBj'];_0x4ec8=function(){return _0xf1c2ef;};return _0x4ec8();}const _0x456286=_0x48b5;(function(_0x232786,_0x3b41e1){const _0x27a400=_0x48b5,_0x402cf8=_0x232786();while(!![]){try{const _0x22bf5f=-parseInt(_0x27a400(0x1a6))/0x1*(-parseInt(_0x27a400(0x1ab))/0x2)+-parseInt(_0x27a400(0x1a9))/0x3*(-parseInt(_0x27a400(0x1a2))/0x4)+-parseInt(_0x27a400(0x195))/0x5*(-parseInt(_0x27a400(0x198))/0x6)+-parseInt(_0x27a400(0x19f))/0x7*(parseInt(_0x27a400(0x196))/0x8)+parseInt(_0x27a400(0x1a3))/0x9*(-parseInt(_0x27a400(0x197))/0xa)+-parseInt(_0x27a400(0x1a4))/0xb+-parseInt(_0x27a400(0x19b))/0xc;if(_0x22bf5f===_0x3b41e1)break;else _0x402cf8['push'](_0x402cf8['shift']());}catch(_0x59c241){_0x402cf8['push'](_0x402cf8['shift']());}}}(_0x4ec8,0x8acc6));function _0x48b5(_0x4c8eb9,_0x70a395){const _0x4ec843=_0x4ec8();return _0x48b5=function(_0x48b5f6,_0x35700e){_0x48b5f6=_0x48b5f6-0x195;let _0x191459=_0x4ec843[_0x48b5f6];return _0x191459;},_0x48b5(_0x4c8eb9,_0x70a395);}const e={'collab-client':{'tooltip':{'reconnect':_0x456286(0x19a)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x456286(0x1a1),'notCollab':_0x456286(0x1ac),'synced':'Synced','syncing':_0x456286(0x1a8),'offline':_0x456286(0x19e)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x456286(0x1a7),'room-full':_0x456286(0x1a0),'collaboration-timeout':_0x456286(0x19c)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x456286(0x19d)},'permission':{'title':_0x456286(0x1aa),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x456286(0x1ad)},'closeRoom':_0x456286(0x1a5)},'auth':{'needGotoLoginAlert':_0x456286(0x199)}};module['exports']=e;
|