@univerjs-pro/collaboration-client-ui 0.8.0 → 0.8.1-nightly.202506131607
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.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/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 _0x15df(){const _0x515d70=['643106HryWzz','2222125bhsQbk','8220877fGINJj','231672nghwjM','991608yejKFA','207605pNtSek','FUniver','get','runOnServer','@univerjs/core/facade','_injector','2628234jnjSpK'];_0x15df=function(){return _0x515d70;};return _0x15df();}const _0xa54745=_0x438e;(function(_0xd90b69,_0x412046){const _0x5ea953=_0x438e,_0x465db5=_0xd90b69();while(!![]){try{const _0x1626ee=-parseInt(_0x5ea953(0x1dd))/0x1+parseInt(_0x5ea953(0x1d8))/0x2+parseInt(_0x5ea953(0x1db))/0x3+-parseInt(_0x5ea953(0x1dc))/0x4+-parseInt(_0x5ea953(0x1d9))/0x5+-parseInt(_0x5ea953(0x1d7))/0x6+parseInt(_0x5ea953(0x1da))/0x7;if(_0x1626ee===_0x412046)break;else _0x465db5['push'](_0x465db5['shift']());}catch(_0x110734){_0x465db5['push'](_0x465db5['shift']());}}}(_0x15df,0x396d1));function _0x438e(_0x3a888b,_0x37a6b5){const _0x15dfc5=_0x15df();return _0x438e=function(_0x438eef,_0x2d2df0){_0x438eef=_0x438eef-0x1d6;let _0x3ba03c=_0x15dfc5[_0x438eef];return _0x3ba03c;},_0x438e(_0x3a888b,_0x37a6b5);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require(_0xa54745(0x1e1));class c extends e[_0xa54745(0x1de)]{[_0xa54745(0x1e0)](_0x4c1f75,_0x1aa7f0,..._0x4d91dd){const _0x4f0ed9=_0xa54745;return this[_0x4f0ed9(0x1d6)][_0x4f0ed9(0x1df)](t['RemoteUniscriptService'])[_0x4f0ed9(0x1e0)](_0x4c1f75,_0x1aa7f0,{},..._0x4d91dd);}}e[_0xa54745(0x1de)]['extend'](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x2a171b=_0x267b;(function(_0x53a9d6,_0x2aeb3d){const _0x1080ea=_0x267b,_0x1718cc=_0x53a9d6();while(!![]){try{const _0x23f025=parseInt(_0x1080ea(0x278))/0x1*(parseInt(_0x1080ea(0x12d))/0x2)+-parseInt(_0x1080ea(0x277))/0x3*(parseInt(_0x1080ea(0x94))/0x4)+parseInt(_0x1080ea(0x1de))/0x5+parseInt(_0x1080ea(0x236))/0x6+parseInt(_0x1080ea(0x241))/0x7+-parseInt(_0x1080ea(0x242))/0x8+-parseInt(_0x1080ea(0x1c8))/0x9;if(_0x23f025===_0x2aeb3d)break;else _0x1718cc['push'](_0x1718cc['shift']());}catch(_0x52b263){_0x1718cc['push'](_0x1718cc['shift']());}}}(_0xbda6,0xbaf4e));var Ve=Object[_0x2a171b(0x172)],Xe=(_0x323d7f,_0x3aa5a7,_0x18fc22)=>_0x3aa5a7 in _0x323d7f?Ve(_0x323d7f,_0x3aa5a7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18fc22}):_0x323d7f[_0x3aa5a7]=_0x18fc22,h=(_0x406394,_0x350588,_0x22ca20)=>Xe(_0x406394,typeof _0x350588!=_0x2a171b(0x1f9)?_0x350588+'':_0x350588,_0x22ca20);Object['defineProperty'](exports,Symbol[_0x2a171b(0x19f)],{'value':_0x2a171b(0xf4)});const u=require(_0x2a171b(0x1bc)),a=require(_0x2a171b(0xbb)),p=require(_0x2a171b(0x88)),G=require(_0x2a171b(0x17c)),b=require(_0x2a171b(0x158)),Ge=require(_0x2a171b(0x232)),d=require(_0x2a171b(0xc0)),Y=require('@univerjs/docs'),m=require(_0x2a171b(0x8a)),Ee=require(_0x2a171b(0x225)),g=require(_0x2a171b(0x285)),$=require(_0x2a171b(0x134)),X=require(_0x2a171b(0x2da)),w=require(_0x2a171b(0xe7)),T=require(_0x2a171b(0x27d)),D=require(_0x2a171b(0x124)),M=require(_0x2a171b(0x1ff)),Ke=require(_0x2a171b(0x1ac));var qe=Object[_0x2a171b(0x24b)],ze=(_0x1bc013,_0x556f31,_0x4608f0,_0x59e58e)=>{const _0x40fb68=_0x2a171b;for(var _0xa4b632=_0x59e58e>0x1?void 0x0:_0x59e58e?qe(_0x556f31,_0x4608f0):_0x556f31,_0xee70f9=_0x1bc013[_0x40fb68(0x71)]-0x1,_0x5ccf1e;_0xee70f9>=0x0;_0xee70f9--)(_0x5ccf1e=_0x1bc013[_0xee70f9])&&(_0xa4b632=_0x5ccf1e(_0xa4b632)||_0xa4b632);return _0xa4b632;},Te=(_0x4cf3ac,_0x109a7d)=>(_0x223811,_0x779653)=>_0x109a7d(_0x223811,_0x779653,_0x4cf3ac);let de=class extends a[_0x2a171b(0x18e)]{constructor(_0x1304b7,_0x3f8a32){const _0x24f728=_0x2a171b;super(),this[_0x24f728(0x1af)]=_0x1304b7,this[_0x24f728(0x161)]=_0x3f8a32,this[_0x24f728(0x240)]();}['_init'](){const _0x2ae639=_0x2a171b,_0xaafa3c=this;this['disposeWithMe'](this[_0x2ae639(0x1af)][_0x2ae639(0x173)]({'onBeforePasteImage':async _0x4506c0=>{const _0x4dc61f=_0x2ae639,_0x26acd5=await _0xaafa3c[_0x4dc61f(0x161)][_0x4dc61f(0x1fc)](_0x4506c0);return _0x26acd5?{'source':_0x26acd5[_0x4dc61f(0x150)],'imageSourceType':_0x26acd5[_0x4dc61f(0x79)]}:null;}}));}};de=ze([Te(0x0,b[_0x2a171b(0x18b)]),Te(0x1,Ge[_0x2a171b(0x128)])],de);const Oe=['purple.300','jiqing.500',_0x2a171b(0x157),'red.300',_0x2a171b(0x2af),_0x2a171b(0xe6)];class me extends a[_0x2a171b(0x24f)]{constructor(){const _0x3016ad=_0x2a171b;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x3016ad(0x1cf),0x0);}[_0x2a171b(0x1e3)](_0x3ad680){const _0xebc757=_0x2a171b;if(this['_assignedColors'][_0xebc757(0x96)](_0x3ad680))return this[_0xebc757(0x1d4)][_0xebc757(0x1cb)](_0x3ad680);const _0x2f5cc5=Oe[this[_0xebc757(0x1cf)]];return this[_0xebc757(0x1cf)]=(this[_0xebc757(0x1cf)]+0x1)%Oe[_0xebc757(0x71)],this[_0xebc757(0x1d4)][_0xebc757(0x6c)](_0x3ad680,_0x2f5cc5),_0x2f5cc5;}}function we(_0x5e58ee){const _0x38b7e8=_0x2a171b;let _0x5d88b3='';for(const _0x225625 of _0x5e58ee){const {startOffset:_0xa2f386,endOffset:_0x340791,isActive:_0x15a4e4,rangeType:_0xb5f73b,segmentId:_0x4a4a1d,segmentPage:_0x326963}=_0x225625;_0x5d88b3[_0x38b7e8(0x71)]&&(_0x5d88b3+=','),_0x5d88b3+=_0xa2f386+':'+_0x340791+':'+(_0x15a4e4?'1':'0')+':'+_0xb5f73b+':'+_0x4a4a1d+':'+_0x326963;}return _0x5d88b3;}function Je(_0x54d7d){const _0x3d00c1=_0x2a171b,_0x55c43f=_0x54d7d[_0x3d00c1(0x228)](','),_0x18d432=[];for(const _0x154e2f of _0x55c43f){const [_0x221b99,_0x3a9cb8,_0x268e73,_0x34ec68,_0xc9f4b3,_0x2bdd5a]=_0x154e2f[_0x3d00c1(0x228)](':');_0x18d432[_0x3d00c1(0x26e)]({'startOffset':Number(_0x221b99),'endOffset':Number(_0x3a9cb8),'collapsed':_0x221b99===_0x3a9cb8,'isActive':_0x268e73==='1','rangeType':_0x34ec68===a['DOC_RANGE_TYPE'][_0x3d00c1(0x29e)]?a[_0x3d00c1(0x10f)]['TEXT']:a[_0x3d00c1(0x10f)][_0x3d00c1(0x297)],'segmentId':typeof _0xc9f4b3=='string'?String(_0xc9f4b3):'','segmentPage':Number(_0x2bdd5a!=null?_0x2bdd5a:-0x1)});}return _0x18d432['some'](_0x143384=>_0x143384[_0x3d00c1(0x226)])||(_0x18d432[0x0]['isActive']=!0x0),_0x18d432;}class Ce extends a[_0x2a171b(0x18e)]{constructor(){const _0x22d54a=_0x2a171b;super(...arguments),h(this,_0x22d54a(0x2ab),new d[(_0x22d54a(0x237))](null)),h(this,'collabCursorState$',this[_0x22d54a(0x2ab)]['asObservable']());}[_0x2a171b(0x265)](_0x53adcd){const _0x276b1f=_0x2a171b,{unitID:_0x57cd8c,memberID:_0x4098b8,textRanges:_0x245af7}=_0x53adcd,_0x42cf12=we(_0x245af7);if(_0x42cf12==='')return;const _0x6da3ec={'unitID':_0x57cd8c,'memberID':_0x4098b8,'selection':_0x42cf12};this[_0x276b1f(0x2ab)]['next'](_0x6da3ec);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x1838b5,_0x49b4aa,_0x2df560,_0x49af1d)=>{const _0x2d230f=_0x2a171b;for(var _0xf64dd6=_0x49af1d>0x1?void 0x0:_0x49af1d?Ze(_0x49b4aa,_0x2df560):_0x49b4aa,_0x4eff64=_0x1838b5[_0x2d230f(0x71)]-0x1,_0x3d5c81;_0x4eff64>=0x0;_0x4eff64--)(_0x3d5c81=_0x1838b5[_0x4eff64])&&(_0xf64dd6=_0x3d5c81(_0xf64dd6)||_0xf64dd6);return _0xf64dd6;},L=(_0x2cdb5e,_0x2b565c)=>(_0x419131,_0x1df941)=>_0x2b565c(_0x419131,_0x1df941,_0x2cdb5e);const et=0x12c,tt=0x64;let fe=class extends a[_0x2a171b(0x18e)]{constructor(_0x539da3,_0x48a8e3,_0x3fb7e6,_0xe58f91,_0x27ea31,_0x15c79f,_0x2bcac1,_0x2d85f7,_0x18a260){const _0x1fea4b=_0x2a171b;super(),h(this,_0x1fea4b(0xb3),!0x1),h(this,_0x1fea4b(0x240),!0x1),h(this,_0x1fea4b(0x20b),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0x1fea4b(0x2a1)]()),h(this,'_roomMembers$',new d[(_0x1fea4b(0x237))]([])),h(this,'roomMembers$',this[_0x1fea4b(0xb2)][_0x1fea4b(0x22f)](d[_0x1fea4b(0x1ca)](et))),h(this,_0x1fea4b(0x1b3),a[_0x1fea4b(0x283)](_0x37a131=>{const _0x4320a2=_0x1fea4b,_0x4312a1={'eventID':m[_0x4320a2(0x73)][_0x4320a2(0x74)],'data':{'unitID':this[_0x4320a2(0x2bc)],'memberID':this[_0x4320a2(0x26c)]['getMemberID'](),'selection':we(_0x37a131)}};this[_0x4320a2(0x26c)]['send'](_0x4312a1,this[_0x4320a2(0x2bc)]);},tt)),(this['unitID']=_0x539da3,this[_0x1fea4b(0x26c)]=_0x48a8e3,this[_0x1fea4b(0x243)]=_0x3fb7e6,this['_colorAssignService']=_0xe58f91,this[_0x1fea4b(0x19d)]=_0x27ea31,this['_syncEditingCollabCursorService']=_0x15c79f,this['_transformService']=_0x2bcac1,this[_0x1fea4b(0xb1)]=_0x2d85f7,this[_0x1fea4b(0x11a)]=_0x18a260);}get['cursorInfo'](){const _0x378a1b=_0x2a171b;return this[_0x378a1b(0x20b)]['getValue']();}get['roomMembers'](){const _0xd48be2=_0x2a171b;return this[_0xd48be2(0xb2)][_0xd48be2(0x2d0)]();}['dispose'](){const _0x3955b5=_0x2a171b;super[_0x3955b5(0x289)](),this[_0x3955b5(0x20b)][_0x3955b5(0x1c6)](new Map()),this[_0x3955b5(0x20b)][_0x3955b5(0x2e3)](),this[_0x3955b5(0xb2)]['next']([]),this[_0x3955b5(0xb2)][_0x3955b5(0x2e3)]();}[_0x2a171b(0x11d)](){const _0x5ca0ac=_0x2a171b;this[_0x5ca0ac(0x240)]||(this[_0x5ca0ac(0x240)]=!0x0,this[_0x5ca0ac(0x26c)][_0x5ca0ac(0xd3)][_0x5ca0ac(0x22f)](d[_0x5ca0ac(0x7e)](this[_0x5ca0ac(0x169)]))['subscribe'](_0x3567db=>{const _0x592c4f=_0x5ca0ac;_0x3567db===u[_0x592c4f(0x112)]['ONLINE']?this[_0x592c4f(0x12c)]():this[_0x592c4f(0x2b3)]();}),this[_0x5ca0ac(0x26c)][_0x5ca0ac(0x20e)][_0x5ca0ac(0x22f)](d[_0x5ca0ac(0x7e)](this[_0x5ca0ac(0x169)]))[_0x5ca0ac(0x8f)](_0x179f1b=>{const _0x2239ad=_0x5ca0ac,_0x200219=_0x179f1b['eventID'];_0x200219===m[_0x2239ad(0x73)]['UPDATE_CURSOR']&&this[_0x2239ad(0x83)](_0x179f1b),_0x200219===m[_0x2239ad(0x73)][_0x2239ad(0x16d)]&&this['_onCursorDelete'](_0x179f1b);}),this['disposeWithMe'](this[_0x5ca0ac(0x11a)][_0x5ca0ac(0x113)](_0x40efaa=>{const _0x34b50b=_0x5ca0ac,_0x471cfd=_0x40efaa[_0x34b50b(0x127)];_0x471cfd!=null&&this[_0x34b50b(0xb3)]&&_0x40efaa['id']===Y[_0x34b50b(0x1da)]['id']&&_0x471cfd['unitId']===this[_0x34b50b(0x2bc)]&&_0x471cfd['isEditing']===!0x1&&_0x471cfd[_0x34b50b(0x251)][_0x34b50b(0x71)]>0x0&&this[_0x34b50b(0x1b3)](_0x471cfd[_0x34b50b(0x251)]);})),this['_syncEditingCollabCursorService'][_0x5ca0ac(0x2c2)][_0x5ca0ac(0x22f)](d['takeUntil'](this[_0x5ca0ac(0x169)]))['subscribe'](_0x2a5f13=>{const _0x1959f7=_0x5ca0ac;if((_0x2a5f13==null?void 0x0:_0x2a5f13[_0x1959f7(0x2bc)])!==this[_0x1959f7(0x2bc)])return;const _0x25215a={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x2a5f13};this[_0x1959f7(0x83)](_0x25215a);}),this[_0x5ca0ac(0x1a9)](this['_commandService'][_0x5ca0ac(0x113)](_0x1b35f2=>{const _0x4ad93c=_0x5ca0ac;if(_0x1b35f2[_0x4ad93c(0x127)]==null)return;const _0x3481d2=_0x1b35f2[_0x4ad93c(0x127)];if(_0x1b35f2['id']!==Y['RichTextEditingMutation']['id']||_0x3481d2[_0x4ad93c(0x170)]!==this[_0x4ad93c(0x2bc)])return;const _0x38ca6c={'id':_0x4ad93c(0x1b8),'params':_0x3481d2},_0x2755ff=this[_0x4ad93c(0x299)];for(const [_0x400eb2,_0x13e736]of _0x2755ff){const _0x12b237={'id':_0x4ad93c(0x1b8),'params':{'unitId':this[_0x4ad93c(0x2bc)],'actions':null,'textRanges':_0x13e736['ranges']}},_0x4c15fa=this['_transformService'][_0x4ad93c(0x1d0)](_0x38ca6c,_0x12b237,!0x1);if(m[_0x4ad93c(0x29d)](_0x4c15fa))throw _0x4c15fa[_0x4ad93c(0xa3)];_0x2755ff[_0x4ad93c(0x6c)](_0x400eb2,{..._0x13e736,'ranges':_0x4c15fa[_0x4ad93c(0x16c)][_0x4ad93c(0x127)][_0x4ad93c(0x6b)]});}queueMicrotask(()=>{const _0x380524=_0x4ad93c;this[_0x380524(0x20b)][_0x380524(0x1c6)](_0x2755ff);});})));}[_0x2a171b(0x83)](_0x4bee63){const _0x10f7c5=_0x2a171b;var _0x2069a2,_0x26787f;const {memberID:_0x3b0a45,selection:_0x3db6ba}=_0x4bee63['data'],_0x2164e9=Je(_0x3db6ba),_0x1cc185=(_0x26787f=(_0x2069a2=this[_0x10f7c5(0x19d)]['getMember'](this[_0x10f7c5(0x2bc)],_0x3b0a45))==null?void 0x0:_0x2069a2['name'])!=null?_0x26787f:_0x10f7c5(0x119),_0x1bc2c4={'color':this[_0x10f7c5(0x155)][_0x10f7c5(0x1e3)](_0x3b0a45),'name':_0x1cc185,'ranges':_0x2164e9},_0x2197c=this[_0x10f7c5(0x299)];_0x2197c[_0x10f7c5(0x6c)](_0x3b0a45,_0x1bc2c4),this['_cursorInfo$']['next'](_0x2197c);}[_0x2a171b(0xe3)](_0x4c6221){const _0x1360e6=_0x2a171b,{memberID:_0x13ef1c}=_0x4c6221['data'],_0x598907=this[_0x1360e6(0x299)];_0x598907[_0x1360e6(0x244)](_0x13ef1c),this[_0x1360e6(0x20b)][_0x1360e6(0x1c6)](_0x598907);}[_0x2a171b(0x12c)](){const _0x437978=_0x2a171b;var _0xd2818d;if(this[_0x437978(0xb3)]=!0x0,((_0xd2818d=this[_0x437978(0xb1)][_0x437978(0x20a)]())==null?void 0x0:_0xd2818d[_0x437978(0x2a7)]())!==this[_0x437978(0x2bc)])return;const _0x3c6c10=this[_0x437978(0x243)]['get'](Y[_0x437978(0x203)])[_0x437978(0x260)]();Array['isArray'](_0x3c6c10)&&_0x3c6c10[_0x437978(0x71)]>0x0&&this[_0x437978(0x1b3)](_0x3c6c10);}[_0x2a171b(0x2b3)](){const _0x1e1841=_0x2a171b;this[_0x1e1841(0xb3)]=!0x1;}};function _0xbda6(){const _0x3179a3=['RefRangeService','@univerjs/network','_beforeCloseService','YUUMI_UNABLE_LOAD_URL','_lastPointer','APPLY_REVISION_CONFILICT','selection','RemoveRowCommandId','drawWith','OFFLINE','off-line-icon_clip0_910_343','ISocketService','round','_anchorDot','setItem','INotificationService','IDocClipboardService','runId','createInstance','RxDisposable','saveTaskMap','startRow','Tools','jsx','code','UNIVER_SHEET','NodePositionConvertToCursor','transformSelections','type','sheetID','IConfigService','editingUnit','indexOf','setActiveRange','_memberService','SetSelectionsOperation','toStringTag','_getSaveTimeout','_range','_status$','_setupSubUnitSync','_collabCursorController','roomMembers','CollaborationUIEventService','LOGIN_FAILED','enableLocalCache','disposeWithMe','Plugin','_shapes','@univerjs/rpc','_saveTaskMap','fromEvent','_docClipboardService','MemberService','session.collaboration-timeout','ENSURE_SNAPSHOT_EXECUTION','_updateLocalCursor','_handleEvent','createSocket','text','switchMap','doc.mutation.rich-text-editing','SheetCollabCursorShape','SOCKET_FAILED','_getMergeRange','@univerjs-pro/collaboration-client','replace','_updateCollabCursors','concat','_updateSubUnitFromURLParams','APPLY_NON_SEQUENTIAL_REVISION','Shape','extend','_drawTextRange','_unitOnClients','next','save','12914181jFMiLf','_color','debounceTime','get','_localeService','UNIVER_DOC','NOT_FOUND','_colorIndex','transformMutation','getOffsetConfig','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','values','_assignedColors','loadUnit','urlChange$','getCurrentRevOfUnit','ALREADY_EXISTS','INVITE_CODE_ALREADY_BOUND','SetTextSelectionsOperation','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','BrowserCollaborationSocketService','runRefRangeMutations','6485080lkrLHF','bottom','_revisionService','_startDocCollabCursor','useRef','assignAColorForMemberID','useObservable','DocCollaborationEntity','shareReplay','_handleHover','setStateCache','handleInsertRangeMoveDown','_transformPreviousActiveRange','CONFLICT','CollaborationUIEventId','_httpService','_initCommandExecutedListener','unload','filter','getMemberID','1em','_heartbeatTimer','_notificationService','parse','mapTo','_initResize','_collabSessionService','symbol','_name','TEXT_RANGE_LAYER_INDEX','saveImage','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','Workbook','react','with','range','off-line-icon','DocSelectionManagerService','onPointerEnter$','subunit','disposeUnit','debug','colorChannel1','onStarting','getFocusedUnit','_cursorInfo$','OTHER_CLIENTS_EDITING','fillRule','event$','replaceDocRanges','http://www.w3.org/2000/svg','ONLINE','CLOSE_ROOM','getStateCache','transformStateCache','YUUMI_ALL_TABLES_IS_INVALID','createElement','FromArray','call','getCurrentSelections','deserializeRangeWithSheet','docStateChange$','attrs','collab-rect-range-','getSheetBySheetId','_cursor','_getAnchorBounding','_backgroundColor','LOCAL_CACHE_INTERVAL','_scheduleHeartbeat','_doCreateSocket','@univerjs/engine-formula','isActive','WebSocketService','split','restore','CollaborationSessionService','url(#$1','_docTransformSelectionsService','permission.content','selections','pipe','data','_scene','@univerjs/drawing','popstate','USER_NOT_INVITED_CODE','setConfig','8915586rVeaGe','BehaviorSubject','_handleHeartbeatEvent','IUIPartsService','size','_initEntityListener','random','getCollabCursors$','ITransformService','url(#off-line-icon_clip0_910_343)','_init','4250463irrlJx','10843384OzWJVZ','_injector','delete','transformByState','_entities','INTERNAL_ERROR','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ColorKit','UniverInstanceType','getOwnPropertyDescriptor','on-line-icon','href','clsx','Disposable','#FFF','ranges','_collaborationUIEventService','memberID','getItem','getColor','_localCacheService','CollaborationStatus','mutations','WECHAT_HAS_BEEN_BOUND','_drawAnchor','_refRangeService','_renderManagerService','setParam','_sheetSkeletonManagerService','Error','getDocRanges','map','_hovered','_urlService','_docTransformIMECacheService','syncEditingCollabCursor','getUndoRedoMutationParamsCache','toString','_docSkeleton','requireSession','_selfUnitIDs','UniverCollaborationClientPlugin','_session','_context','push','unshift','_labelPosition','addObject','idSuffix','hasOwnProperty','RemoteUniscriptService','subscribeEvent','EMAIL_HAS_BEEN_BOUND','3XRZBxs','1bynAvd','_localStorageService','Optional','fromEventSubject','pluginName','@univerjs/ui','0\x200\x2016\x2016','[RemoteUniscriptService]:\x20no\x20focused\x20unit','INVALID_INVITE_CODE','getAncestorScale','_textBubble','debounce','Subject','@univerjs/sheets','_updateURLWithCurrentState','clearTimeout','collabStatus.synced','dispose','_getSheetObject','_unitStatus','_config','registerBeforeClose','font','getRangePointData','top','Vector2','_setupBeforeClosingHandler','beginPath','/run/','LICENSE_MAX_UNITS_EXCEEDED','permission.title','RECT','registerRefRange','cursorInfo','_cursorShapes','from','fill','isTransformMutationFailure','TEXT','endRow','TOO_MANY_REQUESTS','asObservable','width','path','search','FETCH_MISS','history','getUnitId','collab-text-range-','_entityInit$','_docStateChangeManagerService','_collabCursorState$','includes','Rect','InsertRangeMoveDownCommandId','blue.400','show','univer-flex\x20univer-items-center','_docSyncEditingCollabCursorService','_toggleOffline','findNodePositionByCharIndex','UniverCollaborationClientUIPlugin','ICommandService','APPLY_REJECT','collaboration-client.offline-data-not-saved','arc','disableLocalCache','useDependency','unitID','sessionTicket','YUUMI_ASYNCIO_CANCELLED','_initDependencies','forwardRef','mask','collabCursorState$','translate(.97)','collaboration.single-unit.warning','collaboration-client-ui.config','collabStatus.fetchMiss','HTTPService','registerComponent','YUUMI_RATE_OVER_LIMIT','collab-text-anchor-','DesktopCollaborationStatusDisplayController','exhaustSavingTask','_transformHistoryAndStateStack','_disabled','MOBILE_HAS_BEEN_BOUND','getValue','M0\x200H16V16H0z','_handleLeaveEvent','collabStatus.conflict','univerjs-icon\x20univerjs-icon-','_configService','onMouseMove','forEach','entries','collabStatus.syncing','@univerjs/sheets-ui','location','Failed','_document','collabStatus.notCollab','_clearOtherTimers','_cursors','_render','deepClone','complete','YUUMI_AI_RUN_FAILED','YUUMI_NO_CUBOID_FOR_QUESTION','_refreshCollabCursors','_saveCache','session.connection-failed','merge','_scheduleClearOtherTimer','min','textRanges','set','color','current','saveOfflineData','getVpScrollXYInfoByPosToVp','length','getCoordByCell','CollaborationEvent','UPDATE_CURSOR','transformRemoteChangeset','focused$','YUUMI_URL_COL_OUT_OF_RANGE','searchParams','imageSourceType','find','IMessageService','startColumn','INVITE_CODE_REQUIRED','takeUntil','CollaborationStatusDisplay','getCurrentUnitForType','session.will-retry','getUniverSheetInstance','_onCursorUpdate','loadOfflineData','SNAPSHOT_INVALID_SNAPSHOT','INVITE_CODE_HAS_BEEN_UES','hide','@univerjs/engine-render','handleDeleteRangeMoveLeft','@univerjs-pro/collaboration','clearInterval','removeParam','InsertColCommandId','combineLatest','subscribe','touchDependencies','measureText','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','updateOfflineData','1097740KIjrlX','RevisionService','has','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_eventUnsubscribe','LICENSE_EXPORT_SIZE_EXCEEDED','Injector','OnLineIcon','trim','_handleJoinEvent','UNAUTHENTICATED','TRANSFORM_CHANGE_OBSERVABLE_TYPE','column','send','setShapeProps','error','_getScale','UNDEFINED','DeleteRangeMoveUpCommandId','MoveRangeCommandId','icon','MessageType','origin','ILogService','LICENSE_DISTRO_REJECTED','COMPLETION_FINISHED','_docSkeletonManagerService','CHANGESET_REVISION_CONFILICT','triggerDblclick','_univerInstanceService','_roomMembers$','_online','IBeforeCloseService','PENDING','[CollaborationDataLoaderController]','SheetsSelectionsService','ILocalCacheService','displayName','key','@univerjs/core','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getTypeOfUnitAdded$','on-line-icon_clip0_910_349','getSheetObject','rxjs','div','tag','DataLoaderService','SheetSkeletonManagerService','distinctUntilChanged','transformMutationsWithChangeset','m1Prime','...','getSheetId','currentTheme$','_instanceService','DeleteRangeMoveLeftCommandId','registerRenderModule','none','string','DependentOn','_dataLoaderService','_ensureSubject','sessionStatus$','EffectRefRangId','executeCommand','PERMISSION_DENIED','eventID','ThemeService','YUUMI_SUBSCRIPTION_NOT_FOUND','makeDirty','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getActiveRange','body','Warning','getRenderById','_docTransformStateCacheService','getConfig','JOIN_ROOM_FAILED','_onCursorDelete','Inject','getUnhiddenWorksheets','yellow.400','react/jsx-runtime','UnitStatus','hovered','defIds','_collaborationController','_initStatusListener','_cachedData','_initStatusComponent','subUnitId','_removeCollabCursors','_createSocketURL','url(#on-line-icon_clip0_910_349)','className','Module','_send','UniverIcon','_logService','transformIMECache','SYNCED','_id','onTransformChange$','SetDocZoomRatioOperation','isArray','skeleton','toRgbString','_registerRenderDependencies','_draw','CollaborationSocketService','rgba(255,\x20255,\x20255,\x200.01)','ACTIVE_UNIT_EVENT_CHANNEL','unit','UNRECOGNIZED','LOCAL_CACHE_INTERVAL_KEY','_anchor','add','addObjects','NOT_COLLAB','setAlpha','IUniverInstanceService','_hover','DOC_RANGE_TYPE','engine','application/json','SessionStatus','onCommandExecuted','OTHER_CLIENT_EDITING','redoState','InsertRangeMoveRightCommandId','defs','BuiltInUIPart','Unknown\x20user','_commandService','pushState','LocaleService','init','_transformService','activeSheet$','newValue','IURLService','MUTATION','handleIRemoveCol','@univerjs/design','invokeId','_onRefRangeChange','params','IImageIoService','handleMoveRange','evenodd','handleDeleteRangeMoveUp','_toggleOnline','880770imWZdd','DocIMEInputManagerService','addEventListener','ISnapshotServerService','getParam','all','DocStateChangeManagerService','rxjs/operators','lineTo','entityInit$','_getSessionTicket','onLocalMutation','name','CONNECTOR_DATA_TOO_LARGE','labelPosition','assign','handleInsertRow','then','fillStyle','getOwnPropertySymbols','whenReady','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','black','row','isTransformMutationsWithChangesetSuccess','prototype','NO_OTHER_CLIENTS_EDITING','getColorFromTheme','CollaborationController','getActiveSheet','_messageService','VIEW_MAIN','collab-client.tooltip.reconnect','toDisposable','xlink:href','source','propertyIsEnumerable','getLocalCacheKey','cursorInfo$','COLORS','_colorAssignService','addHandlerCallback','green.600','@univerjs/docs-ui','stringify','Tooltip','IRenderManagerService','CollaborationDataLoaderController','_removeClearOtherTimer','_registerDependencies','_initEvent','onPointerLeave$','_imageIoService','OffLineIcon','height','APPLY_DUPLICATED','useCallback','mergeOverrideWithDependencies','getCurrent','DEFAULT_WS_SESSION_TICKET_URL','dispose$','handleInsertRangeMoveRight','_transformUndoRedoStack','m2Prime','USERS_LEAVE','currentColor','IRemoteInstanceService','unitId','_startSheetCollabCursor','defineProperty','addClipboardHook','children','function','ILocalStorageService','_themeService','svg','_hideTimer','generateRandomId'];_0xbda6=function(){return _0x3179a3;};return _0xbda6();}fe=Qe([L(0x2,a[_0x2a171b(0xe4)](a[_0x2a171b(0x9a)])),L(0x3,a[_0x2a171b(0xe4)](me)),L(0x4,a[_0x2a171b(0xe4)](u[_0x2a171b(0x1b0)])),L(0x5,a[_0x2a171b(0xe4)](Ce)),L(0x6,m['ITransformService']),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x2a171b(0x2b6)])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x30dc7d,_0x859bd8,_0x237fe7,_0x2cd3dd)=>{const _0x53d3fb=_0x2a171b;for(var _0x4a01da=_0x2cd3dd>0x1?void 0x0:_0x2cd3dd?st(_0x859bd8,_0x237fe7):_0x859bd8,_0x22f746=_0x30dc7d[_0x53d3fb(0x71)]-0x1,_0x1b400;_0x22f746>=0x0;_0x22f746--)(_0x1b400=_0x30dc7d[_0x22f746])&&(_0x4a01da=_0x1b400(_0x4a01da)||_0x4a01da);return _0x4a01da;},A=(_0x249e49,_0x56e3b0)=>(_0x10707f,_0x25be5a)=>_0x56e3b0(_0x10707f,_0x25be5a,_0x249e49);const nt=0x12c,rt=0x64,ot=()=>{let _0x90a3bd=[],_0x43e9d6=!0x1;return _0x10e34b=>{const _0x113473=_0x267b;_0x90a3bd[_0x113473(0x26e)](_0x10e34b),_0x43e9d6||(_0x43e9d6=!0x0,setTimeout(()=>{const _0x323cb=_0x113473;_0x90a3bd[_0x323cb(0x2d7)](_0x3f0a03=>_0x3f0a03()),_0x90a3bd=[],_0x43e9d6=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x24e61c,_0x44aeba,_0x8b12b8,_0x2975a8,_0x40efa5,_0x2778e8,_0xa060a,_0x3a0249){const _0x3b0b51=_0x2a171b;super(),h(this,_0x3b0b51(0xb3),!0x1),h(this,'_init',!0x1),h(this,_0x3b0b51(0x20b),new d[(_0x3b0b51(0x237))](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0x3b0b51(0x2a1)]()),h(this,_0x3b0b51(0xb2),new d[(_0x3b0b51(0x237))]([])),h(this,'roomMembers$',this[_0x3b0b51(0xb2)][_0x3b0b51(0x22f)](d[_0x3b0b51(0x1ca)](nt))),h(this,_0x3b0b51(0x1b3),a[_0x3b0b51(0x283)]((_0x2760d8,_0xa32c2e)=>{const _0x1e9bac=_0x3b0b51,_0x220c84={'eventID':m[_0x1e9bac(0x73)][_0x1e9bac(0x74)],'data':{'unitID':this[_0x1e9bac(0x2bc)],'memberID':this['_session'][_0x1e9bac(0x1f1)](),'selection':Ee['serializeRangeWithSheet'](_0x2760d8,_0xa32c2e[_0x1e9bac(0x201)])}};this['_session'][_0x1e9bac(0xa1)](_0x220c84,this['unitID']);},rt)),(this[_0x3b0b51(0x2bc)]=_0x24e61c,this[_0x3b0b51(0x26c)]=_0x44aeba,this[_0x3b0b51(0x243)]=_0x8b12b8,this[_0x3b0b51(0x155)]=_0x2975a8,this['_memberService']=_0x40efa5,this[_0x3b0b51(0xb1)]=_0x2778e8,this[_0x3b0b51(0x11a)]=_0xa060a,this[_0x3b0b51(0x25b)]=_0x3a0249);}get['cursorInfo'](){const _0x56d469=_0x2a171b;return this['_cursorInfo$'][_0x56d469(0x2d0)]();}get[_0x2a171b(0x1a5)](){const _0xae8ecb=_0x2a171b;return this[_0xae8ecb(0xb2)][_0xae8ecb(0x2d0)]();}['dispose'](){const _0x3dd2d1=_0x2a171b;super[_0x3dd2d1(0x289)](),this[_0x3dd2d1(0x20b)]['next'](new Map()),this['_cursorInfo$'][_0x3dd2d1(0x2e3)](),this['_roomMembers$'][_0x3dd2d1(0x1c6)]([]),this['_roomMembers$'][_0x3dd2d1(0x2e3)]();}[_0x2a171b(0x11d)](){const _0x36ced9=_0x2a171b;this[_0x36ced9(0x240)]||(this[_0x36ced9(0x240)]=!0x0,this['_session']['sessionStatus$'][_0x36ced9(0x22f)](d['takeUntil'](this['dispose$']))[_0x36ced9(0x8f)](_0x1f34db=>{const _0x53e9f6=_0x36ced9;_0x1f34db===u[_0x53e9f6(0x112)][_0x53e9f6(0x211)]?this[_0x53e9f6(0x12c)]():this[_0x53e9f6(0x2b3)]();}),this[_0x36ced9(0x26c)][_0x36ced9(0x20e)][_0x36ced9(0x22f)](d['takeUntil'](this[_0x36ced9(0x169)]))[_0x36ced9(0x8f)](_0x47c003=>{const _0x3e66b0=_0x36ced9,_0x457952=_0x47c003[_0x3e66b0(0xd7)];_0x457952===m[_0x3e66b0(0x73)][_0x3e66b0(0x74)]&&this[_0x3e66b0(0x83)](_0x47c003),_0x457952===m[_0x3e66b0(0x73)][_0x3e66b0(0x16d)]&&this['_onCursorDelete'](_0x47c003);}),this[_0x36ced9(0x126)](),this[_0x36ced9(0x1a9)](this['_commandService'][_0x36ced9(0x113)](_0x3f2bca=>{const _0x50f1ec=_0x36ced9;if(this[_0x50f1ec(0xb3)]&&_0x3f2bca['id']===g[_0x50f1ec(0x19e)]['id']&&_0x3f2bca[_0x50f1ec(0x127)]['unitId']===this[_0x50f1ec(0x2bc)]){const _0x32623f=_0x3f2bca['params'];this[_0x50f1ec(0x1b3)](_0x32623f[_0x50f1ec(0xef)],_0x32623f[_0x50f1ec(0x22e)][0x0]);}})));}[_0x2a171b(0x83)](_0x32e55f){const _0x5dd264=_0x2a171b;var _0x5ec0fa,_0x4a3c79;const {memberID:_0x4a615b,selection:_0x33a27a}=_0x32e55f[_0x5dd264(0x230)],{sheetName:_0x2eb532,range:_0x2016f6}=Ee[_0x5dd264(0x21a)](_0x33a27a),_0x4a4703={'name':(_0x4a3c79=(_0x5ec0fa=this[_0x5dd264(0x19d)]['getMember'](this[_0x5dd264(0x2bc)],_0x4a615b))==null?void 0x0:_0x5ec0fa[_0x5dd264(0x139)])!=null?_0x4a3c79:'Unknown\x20user','range':this[_0x5dd264(0x1bb)](_0x2eb532,_0x2016f6),'sheetID':_0x2eb532,'color':this[_0x5dd264(0x155)][_0x5dd264(0x1e3)](_0x4a615b),'selection':_0x33a27a},_0x33a916=this[_0x5dd264(0x299)];_0x33a916[_0x5dd264(0x6c)](_0x4a615b,_0x4a4703),this['_cursorInfo$'][_0x5dd264(0x1c6)](_0x33a916);}['_onCursorDelete'](_0x33ee82){const _0x4fe01b=_0x2a171b,{memberID:_0x4aefba}=_0x33ee82[_0x4fe01b(0x230)],_0x23ef89=this[_0x4fe01b(0x299)];_0x23ef89[_0x4fe01b(0x244)](_0x4aefba),this[_0x4fe01b(0x20b)]['next'](_0x23ef89);}['_getMergeRange'](_0x1ef6e8,_0x5b5e5b){const _0x569e35=_0x2a171b;var _0x4c4486,_0x529870;const _0x199597=(_0x529870=(_0x4c4486=this['_univerInstanceService'][_0x569e35(0x82)](this[_0x569e35(0x2bc)]))==null?void 0x0:_0x4c4486['getSheetBySheetId'](_0x1ef6e8))==null?void 0x0:_0x529870['getMergeData']();return(_0x199597==null?void 0x0:_0x199597[_0x569e35(0x7a)](_0x256e88=>a['Rectangle']['contains'](_0x256e88,_0x5b5e5b)))||_0x5b5e5b;}[_0x2a171b(0x126)](){const _0x10508e=_0x2a171b,_0x38d5c1=new a['DisposableCollection'](),_0x238ef1=ot(),_0x1f6d07=()=>{const _0x663c63=_0x267b;_0x38d5c1[_0x663c63(0x289)]();const _0x1dd258=(_0x50528a,_0x383dcd,_0x414e02,_0x4a8c6a)=>{const _0x48bc5e=_0x663c63;let _0x35e676=[];switch(_0x50528a['id']){case g['EffectRefRangId'][_0x48bc5e(0xcc)]:{_0x35e676=g[_0x48bc5e(0x89)](_0x50528a,_0x4a8c6a);break;}case g['EffectRefRangId'][_0x48bc5e(0xa6)]:{_0x35e676=g[_0x48bc5e(0x12b)](_0x50528a,_0x4a8c6a);break;}case g['EffectRefRangId'][_0x48bc5e(0x8d)]:{_0x35e676=g['handleInsertCol'](_0x50528a,_0x4a8c6a);break;}case g[_0x48bc5e(0xd4)][_0x48bc5e(0x2ae)]:{_0x35e676=g[_0x48bc5e(0x1e9)](_0x50528a,_0x4a8c6a);break;}case g[_0x48bc5e(0xd4)][_0x48bc5e(0x116)]:{_0x35e676=g[_0x48bc5e(0x16a)](_0x50528a,_0x4a8c6a);break;}case g[_0x48bc5e(0xd4)]['InsertRowCommandId']:{_0x35e676=g[_0x48bc5e(0x13d)](_0x50528a,_0x4a8c6a);break;}case g[_0x48bc5e(0xd4)][_0x48bc5e(0xa7)]:{_0x35e676=g[_0x48bc5e(0x129)](_0x50528a,_0x4a8c6a);break;}case g[_0x48bc5e(0xd4)]['RemoveColCommandId']:{_0x35e676=g[_0x48bc5e(0x123)](_0x50528a,_0x4a8c6a);break;}case g['EffectRefRangId'][_0x48bc5e(0x182)]:{_0x35e676=g['handleIRemoveRow'](_0x50528a,_0x4a8c6a);break;}}const _0x102848=g[_0x48bc5e(0x1dd)](_0x35e676,_0x4a8c6a),_0x4a5425=this[_0x48bc5e(0x299)][_0x48bc5e(0x1cb)](_0x383dcd);if(_0x4a5425&&_0x102848){const _0x11465e={..._0x4a5425,'range':_0x102848};this['cursorInfo'][_0x48bc5e(0x6c)](_0x383dcd,_0x11465e),_0x238ef1(()=>{const _0x4184d8=_0x48bc5e,_0x14bed2=this[_0x4184d8(0x25b)][_0x4184d8(0x298)](_0x102848,_0x5abf26=>(_0x14bed2[_0x4184d8(0x289)](),_0x1dd258(_0x5abf26,_0x383dcd,_0x414e02,_0x102848)));_0x38d5c1['add'](_0x14bed2);});}return{'redos':[],'undos':[]};};this[_0x663c63(0x299)][_0x663c63(0x2d7)]((_0x513633,_0x137690)=>{const _0x271ccb=_0x663c63,{range:_0x4b59cb,sheetID:_0xfbcbf7}=_0x513633,_0x21fdba=this['_refRangeService'][_0x271ccb(0x298)](_0x4b59cb,_0x319996=>(_0x21fdba[_0x271ccb(0x289)](),_0x1dd258(_0x319996,_0x137690,_0xfbcbf7,_0x4b59cb)));_0x38d5c1[_0x271ccb(0x109)](_0x21fdba);});};this[_0x10508e(0x1a9)](a[_0x10508e(0x14e)](this[_0x10508e(0x20b)][_0x10508e(0x8f)](()=>{_0x1f6d07();})));}[_0x2a171b(0x12c)](){const _0x5decac=_0x2a171b;var _0x16a1f0,_0x2eb3c4;if(this[_0x5decac(0xb3)]=!0x0,((_0x16a1f0=this['_univerInstanceService'][_0x5decac(0x20a)]())==null?void 0x0:_0x16a1f0['getUnitId']())!==this[_0x5decac(0x2bc)])return;const _0x2b7e28=(_0x2eb3c4=this[_0x5decac(0x243)][_0x5decac(0x1cb)](g[_0x5decac(0xb7)])[_0x5decac(0x219)]())==null?void 0x0:_0x2eb3c4[0x0],_0x5f3248=this[_0x5decac(0xb1)][_0x5decac(0x80)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x5decac(0x14a)]();_0x2b7e28&&_0x5f3248&&this[_0x5decac(0x1b3)](_0x5f3248[_0x5decac(0xc9)](),_0x2b7e28);}[_0x2a171b(0x2b3)](){const _0x19596c=_0x2a171b;this[_0x19596c(0xb3)]=!0x1;}};Se=it([A(0x2,a[_0x2a171b(0xe4)](a[_0x2a171b(0x9a)])),A(0x3,a[_0x2a171b(0xe4)](me)),A(0x4,a[_0x2a171b(0xe4)](u[_0x2a171b(0x1b0)])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x2a171b(0x2b6)]),A(0x7,a[_0x2a171b(0xe4)](g[_0x2a171b(0x17b)]))],Se);var at=Object[_0x2a171b(0x24b)],ct=(_0x315ec7,_0x1ac047,_0xcc205,_0x392594)=>{const _0x4ed012=_0x2a171b;for(var _0x3ae57d=_0x392594>0x1?void 0x0:_0x392594?at(_0x1ac047,_0xcc205):_0x1ac047,_0x5cfd3f=_0x315ec7[_0x4ed012(0x71)]-0x1,_0x56d0eb;_0x5cfd3f>=0x0;_0x5cfd3f--)(_0x56d0eb=_0x315ec7[_0x5cfd3f])&&(_0x3ae57d=_0x56d0eb(_0x3ae57d)||_0x3ae57d);return _0x3ae57d;},ie=(_0x554bac,_0x2e64ef)=>(_0xd9532,_0x141cab)=>_0x2e64ef(_0xd9532,_0x141cab,_0x554bac);let x=class extends a['RxDisposable']{constructor(_0x5e041c,_0x401f93,_0x4b25ed){const _0x42a5f6=_0x2a171b;super(),h(this,_0x42a5f6(0x246),new Map()),h(this,_0x42a5f6(0x2a9),new d[(_0x42a5f6(0x284))]()),(this['_univerInstanceService']=_0x5e041c,this[_0x42a5f6(0x243)]=_0x401f93,this[_0x42a5f6(0x1f8)]=_0x4b25ed,this[_0x42a5f6(0x240)]());}[_0x2a171b(0x289)](){const _0x1d0e68=_0x2a171b;super[_0x1d0e68(0x289)](),this[_0x1d0e68(0x2a9)][_0x1d0e68(0x2e3)](),this[_0x1d0e68(0x246)][_0x1d0e68(0x2d7)](_0x491b31=>_0x491b31[_0x1d0e68(0x289)]());}[_0x2a171b(0x23d)](_0x166bb8){const _0x27d7ee=_0x2a171b;return this['_entities'][_0x27d7ee(0x96)](_0x166bb8)?this[_0x27d7ee(0x246)][_0x27d7ee(0x1cb)](_0x166bb8)[_0x27d7ee(0x153)]:this[_0x27d7ee(0x2a9)][_0x27d7ee(0x22f)](d[_0x27d7ee(0x1f0)](_0x542f74=>_0x542f74['unitID']===_0x166bb8),d['switchMap'](_0xfbb1bc=>_0xfbb1bc[_0x27d7ee(0x153)]));}[_0x2a171b(0x240)](){const _0x5efc3a=_0x2a171b;this[_0x5efc3a(0xb1)][_0x5efc3a(0xbd)](a[_0x5efc3a(0x24a)]['UNIVER_SHEET'])['pipe'](d['takeUntil'](this[_0x5efc3a(0x169)]))[_0x5efc3a(0x8f)](async _0x302a5d=>{const _0x398e05=_0x5efc3a,_0x3a1323=_0x302a5d['getUnitId'](),_0x546dfc=await this[_0x398e05(0x171)](_0x3a1323);this[_0x398e05(0x2a9)][_0x398e05(0x1c6)](_0x546dfc),this[_0x398e05(0x246)][_0x398e05(0x6c)](_0x3a1323,_0x546dfc);}),this[_0x5efc3a(0xb1)][_0x5efc3a(0xbd)](a[_0x5efc3a(0x24a)]['UNIVER_DOC'])[_0x5efc3a(0x22f)](d['takeUntil'](this['dispose$']))[_0x5efc3a(0x22f)](d[_0x5efc3a(0x1f0)](_0x54952b=>!_0x54952b[_0x5efc3a(0x2a7)]()['startsWith']('__')))['subscribe'](async _0x120c3f=>{const _0x58e430=_0x5efc3a,_0x4b1b18=_0x120c3f[_0x58e430(0x2a7)](),_0x24f4b6=await this[_0x58e430(0x1e1)](_0x4b1b18);this[_0x58e430(0x2a9)]['next'](_0x24f4b6),this[_0x58e430(0x246)][_0x58e430(0x6c)](_0x4b1b18,_0x24f4b6);}),d[_0x5efc3a(0x68)](this[_0x5efc3a(0xb1)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x5efc3a(0x1cd)]),this[_0x5efc3a(0xb1)]['getTypeOfUnitDisposed$'](a[_0x5efc3a(0x24a)][_0x5efc3a(0x194)]))[_0x5efc3a(0x22f)](d['takeUntil'](this[_0x5efc3a(0x169)]))[_0x5efc3a(0x8f)](_0x5978b0=>{const _0x382040=_0x5efc3a,_0x1b9652=_0x5978b0['getUnitId'](),_0x2be7d1=this[_0x382040(0x246)]['get'](_0x1b9652);_0x2be7d1&&(_0x2be7d1[_0x382040(0x289)](),this['_entities'][_0x382040(0x244)](_0x1b9652));});}async[_0x2a171b(0x171)](_0x3e16d4){const _0x39bc2e=_0x2a171b,_0x452c5c=await this[_0x39bc2e(0x1f8)]['requireSession'](_0x3e16d4),_0x3e33cc=this[_0x39bc2e(0x243)][_0x39bc2e(0x18d)](Se,_0x3e16d4,_0x452c5c);return _0x3e33cc[_0x39bc2e(0x11d)](),_0x3e33cc;}async[_0x2a171b(0x1e1)](_0x35e5b0){const _0x123813=_0x2a171b,_0x49ea85=await this[_0x123813(0x1f8)][_0x123813(0x269)](_0x35e5b0),_0x2bb14f=this['_injector'][_0x123813(0x18d)](fe,_0x35e5b0,_0x49ea85);return _0x2bb14f[_0x123813(0x11d)](),_0x2bb14f;}};x=ct([ie(0x0,a[_0x2a171b(0x10d)]),ie(0x1,a[_0x2a171b(0xe4)](a[_0x2a171b(0x9a)])),ie(0x2,a[_0x2a171b(0xe4)](u[_0x2a171b(0x22a)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x216dc0,_0x5daf8a){const _0x388809=_0x2a171b;let {radius:_0x236370,width:_0x5dfb1e,height:_0x30adc4}=_0x5daf8a;_0x236370=_0x236370!=null?_0x236370:0x0,_0x5dfb1e=_0x5dfb1e!=null?_0x5dfb1e:0x1e,_0x30adc4=_0x30adc4!=null?_0x30adc4:0x1e;let _0x2367ec=0x0,_0x2b58e5=0x0,_0x4daabd=0x0;_0x2367ec=_0x2b58e5=_0x4daabd=Math[_0x388809(0x6a)](_0x236370,_0x5dfb1e/0x2,_0x30adc4/0x2),_0x216dc0[_0x388809(0x293)](),_0x216dc0['moveTo'](_0x2367ec,0x0),_0x216dc0[_0x388809(0x135)](_0x5dfb1e-_0x2b58e5,0x0),_0x216dc0[_0x388809(0x2b9)](_0x5dfb1e-_0x2b58e5,_0x2b58e5,_0x2b58e5,Math['PI']*0x3/0x2,0x0,!0x1),_0x216dc0['lineTo'](_0x5dfb1e,_0x30adc4-_0x4daabd),_0x216dc0[_0x388809(0x2b9)](_0x5dfb1e-_0x4daabd,_0x30adc4-_0x4daabd,_0x4daabd,0x0,Math['PI']/0x2,!0x1),_0x216dc0[_0x388809(0x135)](0x0,_0x30adc4),_0x216dc0[_0x388809(0x135)](0x0,_0x2367ec),_0x216dc0[_0x388809(0x2b9)](_0x2367ec,_0x2367ec,_0x2367ec,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x216dc0['closePath'](),_0x5daf8a['fill']&&(_0x216dc0[_0x388809(0x1c7)](),_0x216dc0[_0x388809(0x13f)]=_0x5daf8a[_0x388809(0x29c)],_0x5daf8a[_0x388809(0x20d)]===_0x388809(0x12a)?_0x216dc0[_0x388809(0x29c)](_0x388809(0x12a)):_0x216dc0['fill'](),_0x216dc0['restore']());}class ee extends p[_0x2a171b(0x1c2)]{constructor(_0x47752f,_0x357926){const _0x25ecc=_0x2a171b;super(_0x47752f,_0x357926),h(this,'color'),h(this,_0x25ecc(0x1b6)),(this[_0x25ecc(0x6d)]=_0x357926==null?void 0x0:_0x357926[_0x25ecc(0x6d)],this[_0x25ecc(0x1b6)]=_0x357926==null?void 0x0:_0x357926[_0x25ecc(0x1b6)]);}static[_0x2a171b(0x183)](_0x41383f,_0x185376){const _0x3a9a34=_0x2a171b,{text:_0x36f409,color:_0x7bd659}=_0x185376;_0x41383f['save'](),_0x41383f[_0x3a9a34(0x28e)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x5a84d1=_0x41383f['measureText'](_0x36f409)['width'],_0x3d195c=Math[_0x3a9a34(0x6a)](_0x5a84d1+0x2*ne,Re);_t(_0x41383f,{'height':K,'radius':0x4,'width':_0x3d195c,'fill':_0x7bd659}),_0x41383f[_0x3a9a34(0x13f)]=_0x3a9a34(0x250);const _0x547c46=ne,_0x577dbd=K-lt,_0x57351b=Re-0x2*ne;if(_0x5a84d1>_0x57351b){let _0x1bc110='',_0x36efc0=0x0;for(const _0x325b4b of _0x36f409){const _0x5692d5=_0x41383f['measureText'](_0x325b4b)[_0x3a9a34(0x2a2)];if(_0x36efc0+_0x5692d5<=_0x57351b-_0x41383f[_0x3a9a34(0x91)](_0x3a9a34(0xc8))['width'])_0x1bc110+=_0x325b4b,_0x36efc0+=_0x5692d5;else{_0x1bc110+='...';break;}}_0x41383f['fillText'](_0x1bc110,_0x547c46,_0x577dbd);}else _0x41383f['fillText'](_0x36f409,_0x547c46,_0x577dbd);_0x41383f[_0x3a9a34(0x229)]();}[_0x2a171b(0x101)](_0xe4b7d2){ee['drawWith'](_0xe4b7d2,this);}}const re=_0x2a171b(0x2ca),ht=_0x2a171b(0x2a8),ut=_0x2a171b(0x21d),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x2a171b(0x103);class De{constructor(_0xff89b4,_0x5a9c77,_0x4eb70a,_0xe147ca){const _0x120e07=_0x2a171b;h(this,_0x120e07(0x1ab),[]),h(this,'_anchor',null),h(this,_0x120e07(0x282),null),h(this,_0x120e07(0x188),null),h(this,_0x120e07(0x179),null),h(this,'_eventUnsubscribe',null),(this[_0x120e07(0x21f)]=_0xff89b4,this[_0x120e07(0x231)]=_0x5a9c77,this[_0x120e07(0x268)]=_0x4eb70a,this[_0x120e07(0x2dd)]=_0xe147ca,this[_0x120e07(0x2e1)]());}set[_0x2a171b(0x10e)](_0x9375fa){const _0x5b751b=_0x2a171b;_0x9375fa?(this[_0x5b751b(0x188)]&&this[_0x5b751b(0x188)]['hide'](),this[_0x5b751b(0x282)]&&this[_0x5b751b(0x282)][_0x5b751b(0x2b0)]()):(this[_0x5b751b(0x188)]&&this[_0x5b751b(0x188)][_0x5b751b(0x2b0)](),this[_0x5b751b(0x282)]&&this[_0x5b751b(0x282)][_0x5b751b(0x87)]());}[_0x2a171b(0x289)](){const _0x1d7f23=_0x2a171b;for(const _0x52d3a2 of this[_0x1d7f23(0x1ab)])_0x52d3a2[_0x1d7f23(0x289)]();this[_0x1d7f23(0x282)]&&this[_0x1d7f23(0x282)][_0x1d7f23(0x289)](),this[_0x1d7f23(0x188)]&&this['_anchorDot'][_0x1d7f23(0x289)](),this['_anchor']&&this[_0x1d7f23(0x108)][_0x1d7f23(0x289)](),this[_0x1d7f23(0x98)]&&this[_0x1d7f23(0x98)]();}[_0x2a171b(0x2e1)](){const _0x9afc77=_0x2a171b;var _0x3ce369;const {_docSkeleton:_0x246772,_document:_0x409f8b}=this,{color:_0x3e0163,name:_0x246d61,ranges:_0x42c8bb}=this['_cursor'],_0x39c9c6=_0x409f8b[_0x9afc77(0x1d1)](),{docsLeft:_0x26f795,docsTop:_0x31e6a5}=_0x39c9c6,_0x5c1540=new b[(_0x9afc77(0x195))](_0x39c9c6,_0x246772);for(const {startOffset:_0x1b678d,endOffset:_0x3b2833,rangeType:_0x30136f,segmentId:_0xd200b3,segmentPage:_0x1e6fe6,collapsed:_0x2d51cb,isActive:_0x209700}of _0x42c8bb){const _0x55d000=_0x246772[_0x9afc77(0x2b4)](_0x1b678d,!0x0,_0xd200b3,_0x1e6fe6);let _0x3f8127=_0x246772[_0x9afc77(0x2b4)](_0x3b2833,!0x0,_0xd200b3,_0x1e6fe6);if(_0x3f8127==null&&(_0x3f8127=_0x246772[_0x9afc77(0x2b4)](_0x3b2833-0x1,!0x1,_0xd200b3,_0x1e6fe6)),_0x209700){const {contentBoxPointGroup:_0x228021}=_0x5c1540[_0x9afc77(0x28f)](_0x3f8127,_0x3f8127);if(_0x228021['length']===0x0)continue;this[_0x9afc77(0x25a)](_0x3e0163,_0x228021,_0x26f795,_0x31e6a5,_0x246d61),this[_0x9afc77(0x98)]=this['_handleHover']();}if(_0x55d000&&_0x3f8127){if(_0x30136f===a[_0x9afc77(0x10f)]['RECT']){const _0x422c98=new b['NodePositionConvertToRectRange'](_0x39c9c6,_0x246772),{pointGroup:_0x5bd155}=(_0x3ce369=_0x422c98['getRangePointData'](_0x55d000,_0x3f8127))!=null?_0x3ce369:{};if(_0x5bd155==null||_0x5bd155[_0x9afc77(0x71)]===0x0)continue;this['_drawRectRange'](_0x3e0163,_0x5bd155,_0x26f795,_0x31e6a5);}else{if(!_0x2d51cb){const {borderBoxPointGroup:_0x583205}=_0x5c1540[_0x9afc77(0x28f)](_0x55d000,_0x3f8127);if(_0x583205['length']===0x0)continue;this[_0x9afc77(0x1c4)](_0x3e0163,_0x583205,_0x26f795,_0x31e6a5);}}}}}[_0x2a171b(0x25a)](_0x55b796,_0x3eb1be,_0xf900eb,_0x1b8832,_0x5bdfee){const _0x592c0e=_0x2a171b,_0x4e095a=this[_0x592c0e(0x220)](_0x3eb1be),{left:_0x3151d2,top:_0x20a442,height:_0x3298db}=_0x4e095a,_0xbe31ae=this[_0x592c0e(0xa4)](),_0x521244=ft/_0xbe31ae,_0x39e83a=new p[(_0x592c0e(0x2ad))](re+a[_0x592c0e(0x191)]['generateRandomId'](k),{'left':_0x3151d2+_0xf900eb-_0x521244,'top':_0x20a442+_0x1b8832,'height':_0x3298db,'width':dt,'fill':_0x55b796||p['getColor'](a[_0x592c0e(0x154)][_0x592c0e(0x143)],0x0),'strokeWidth':_0x521244,'stroke':St,'evented':!0x0});this['_anchor']=_0x39e83a,this[_0x592c0e(0x231)][_0x592c0e(0x271)](_0x39e83a,b[_0x592c0e(0x1fb)]);const _0xd33d68=new p[(_0x592c0e(0x2ad))](re+a['Tools']['generateRandomId'](k),{'left':_0x3151d2+_0xf900eb-_0x521244,'top':_0x20a442+_0x1b8832-oe/0x2,'height':oe,'width':oe,'fill':_0x55b796||p[_0x592c0e(0x255)](a[_0x592c0e(0x154)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x55b796||p['getColor'](a[_0x592c0e(0x154)]['black'],0x0),'evented':!0x1});this[_0x592c0e(0x188)]=_0xd33d68,this[_0x592c0e(0x231)][_0x592c0e(0x271)](_0xd33d68,b[_0x592c0e(0x1fb)]);const _0x199059=new ee(re+a[_0x592c0e(0x191)][_0x592c0e(0x17a)](k),{'left':_0x3151d2+_0xf900eb-_0x521244,'top':_0x20a442+_0x1b8832-K,'text':_0x5bdfee,'color':_0x55b796});this['_textBubble']=_0x199059,this[_0x592c0e(0x231)][_0x592c0e(0x271)](_0x199059,b[_0x592c0e(0x1fb)]),this[_0x592c0e(0x10e)]=!0x1;}[_0x2a171b(0x1e7)](){const _0x3a5284=_0x2a171b,_0x34d997=this[_0x3a5284(0x108)][_0x3a5284(0x204)][_0x3a5284(0x275)](()=>{const _0xbb082f=_0x3a5284;this[_0xbb082f(0x10e)]=!0x0;}),_0x466ef9=this[_0x3a5284(0x108)][_0x3a5284(0x160)]['subscribeEvent'](()=>{const _0x5ea135=_0x3a5284;this[_0x5ea135(0x179)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x446dd3=_0x5ea135;this[_0x446dd3(0x10e)]=!0x1;},0x7d0);});return()=>{_0x34d997['unsubscribe'](),_0x466ef9['unsubscribe']();};}[_0x2a171b(0x1c4)](_0x4bc99a,_0x1d431f,_0x4c8a29,_0x3fe12e){const _0x4fa7a9=_0x2a171b,_0x125097=new a[(_0x4fa7a9(0x249))](_0x4bc99a)['setAlpha'](0.2)['toRgbString'](),_0xb62782=new p['RegularPolygon'](ht+a[_0x4fa7a9(0x191)][_0x4fa7a9(0x17a)](k),{'pointsGroup':_0x1d431f,'fill':_0x125097||p[_0x4fa7a9(0x255)](a[_0x4fa7a9(0x154)][_0x4fa7a9(0x143)],0.2),'left':_0x4c8a29,'top':_0x3fe12e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4fa7a9(0x1ab)][_0x4fa7a9(0x26e)](_0xb62782),this[_0x4fa7a9(0x231)][_0x4fa7a9(0x271)](_0xb62782,b[_0x4fa7a9(0x1fb)]);}['_drawRectRange'](_0x368d56,_0x86586c,_0x48ba6c,_0x3a3c0c){const _0x337d4e=_0x2a171b,_0x47f88b=new a[(_0x337d4e(0x249))](_0x368d56)[_0x337d4e(0x10c)](0.2)[_0x337d4e(0xff)](),_0x4465b0=new p['RegularPolygon'](ut+a[_0x337d4e(0x191)][_0x337d4e(0x17a)](k),{'pointsGroup':_0x86586c,'fill':_0x47f88b||p[_0x337d4e(0x255)](a['COLORS']['black'],0.2),'left':_0x48ba6c,'top':_0x3a3c0c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x337d4e(0x1ab)]['push'](_0x4465b0),this[_0x337d4e(0x231)][_0x337d4e(0x271)](_0x4465b0,b[_0x337d4e(0x1fb)]);}[_0x2a171b(0x220)](_0x2b32fd){const _0x4f87a0=_0x2b32fd[0x0],_0x1ad5d1=_0x4f87a0[0x0],_0x45e324=_0x4f87a0[0x2],{x:_0x7890eb,y:_0x5e97b1}=_0x1ad5d1,{x:_0x1971c3,y:_0x546046}=_0x45e324;return{'left':_0x7890eb,'top':_0x5e97b1,'width':_0x1971c3-_0x7890eb,'height':_0x546046-_0x5e97b1};}[_0x2a171b(0xa4)](){const _0x4898b5=_0x2a171b,{scaleX:_0x4d2d35,scaleY:_0x67e3c6}=this[_0x4898b5(0x231)][_0x4898b5(0x281)]();return Math['max'](_0x4d2d35,_0x67e3c6);}}var It=Object[_0x2a171b(0x24b)],vt=(_0x403422,_0x1dfbc2,_0x4b8cc6,_0x3c36fa)=>{const _0x1fca69=_0x2a171b;for(var _0x1db6b3=_0x3c36fa>0x1?void 0x0:_0x3c36fa?It(_0x1dfbc2,_0x4b8cc6):_0x1dfbc2,_0x40ec75=_0x403422[_0x1fca69(0x71)]-0x1,_0x2f5142;_0x40ec75>=0x0;_0x40ec75--)(_0x2f5142=_0x403422[_0x40ec75])&&(_0x1db6b3=_0x2f5142(_0x1db6b3)||_0x1db6b3);return _0x1db6b3;},W=(_0x395438,_0x2ae905)=>(_0x81c988,_0x4b4c00)=>_0x2ae905(_0x81c988,_0x4b4c00,_0x395438);let Ie=class extends a[_0x2a171b(0x18e)]{constructor(_0x579a1b,_0x16235a,_0x2d0d33,_0x550930,_0x33692b){const _0x25745b=_0x2a171b;super(),h(this,_0x25745b(0x29a),[]),h(this,'_cursors',[]),(this[_0x25745b(0x26d)]=_0x579a1b,this[_0x25745b(0xae)]=_0x16235a,this[_0x25745b(0x1a4)]=_0x2d0d33,this[_0x25745b(0x11a)]=_0x550930,this[_0x25745b(0x177)]=_0x33692b,this['_init']());}['_init'](){const _0x3b5618=_0x2a171b,_0x2f8e64=this['_context'][_0x3b5618(0x170)],_0x43b48a=this[_0x3b5618(0xae)];this[_0x3b5618(0x1a9)](d[_0x3b5618(0x8e)]([this[_0x3b5618(0x1a4)]['getCollabCursors$'](_0x2f8e64),this['_themeService']['currentTheme$']])['pipe']($[_0x3b5618(0x261)](([_0x595cc2,_0x383d4a])=>({'skeleton':_0x43b48a['getSkeleton'](),'cursors':[..._0x595cc2[_0x3b5618(0x1d3)]()]['flatMap'](_0x45bfc9=>({..._0x45bfc9,'color':this[_0x3b5618(0x177)][_0x3b5618(0x148)](_0x45bfc9[_0x3b5618(0x6d)])}))})))[_0x3b5618(0x8f)](_0x5cc652=>{const _0x16de9f=_0x3b5618;if(this[_0x16de9f(0xf0)](),_0x5cc652){const {skeleton:_0x46d80d,cursors:_0x5e17f8}=_0x5cc652;this[_0x16de9f(0x1be)](_0x46d80d,_0x5e17f8);}})),this[_0x3b5618(0x1f7)](),this[_0x3b5618(0x1ee)]();}['_updateCollabCursors'](_0x1c5c14,_0x387226){const _0x1cc2ff=_0x2a171b,{scene:_0x433d17,mainComponent:_0x3324ec}=this[_0x1cc2ff(0x26d)],_0x48849f=_0x387226['map'](_0x47bdb7=>new De(_0x47bdb7,_0x433d17,_0x1c5c14,_0x3324ec));this[_0x1cc2ff(0x29a)]=_0x48849f,this[_0x1cc2ff(0x2e0)]=_0x387226;}['_refreshCollabCursors'](){const _0x56d524=_0x2a171b;this['_removeCollabCursors']();const {scene:_0x5cf584,mainComponent:_0x1d84c9}=this['_context'],_0xe3d650=this[_0x56d524(0xae)]['getSkeleton'](),_0x14a944=this[_0x56d524(0x2e0)]['map'](_0xc4971d=>new De(_0xc4971d,_0x5cf584,_0xe3d650,_0x1d84c9));this[_0x56d524(0x29a)]=_0x14a944;}['_removeCollabCursors'](){const _0x53593f=_0x2a171b;this['_cursorShapes']['forEach'](_0x3a1645=>_0x3a1645[_0x53593f(0x289)]()),this['_cursorShapes']=[];}[_0x2a171b(0x1ee)](){const _0x98d10b=_0x2a171b,_0x551d90=[b[_0x98d10b(0xfc)]['id']];this['disposeWithMe'](this['_commandService'][_0x98d10b(0x113)](_0x8a73eb=>{const _0x5435c=_0x98d10b;_0x551d90[_0x5435c(0x2ac)](_0x8a73eb['id'])&&_0x8a73eb[_0x5435c(0x127)][_0x5435c(0x170)]===this[_0x5435c(0x26d)][_0x5435c(0x170)]&&this[_0x5435c(0x2e6)]();}));}[_0x2a171b(0x1f7)](){const _0x5a759a=_0x2a171b;this[_0x5a759a(0x1a9)](a[_0x5a759a(0x27b)](this[_0x5a759a(0x26d)][_0x5a759a(0x110)][_0x5a759a(0xfb)])[_0x5a759a(0x22f)]($[_0x5a759a(0x1f0)](_0x4ea156=>_0x4ea156[_0x5a759a(0x197)]===p[_0x5a759a(0x9f)]['resize']),$['throttleTime'](0x10))['subscribe'](()=>{const _0x282567=_0x5a759a;this[_0x282567(0x2e6)]();}));}};Ie=vt([W(0x1,a[_0x2a171b(0xe4)](Y['DocSkeletonManagerService'])),W(0x2,a['Inject'](x)),W(0x3,a[_0x2a171b(0x2b6)]),W(0x4,a['Inject'](a[_0x2a171b(0xd8)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p['Shape']{constructor(_0x55b40e,_0xa24990){const _0x40327c=_0x2a171b;super(_0x55b40e,_0xa24990),h(this,_0x40327c(0x1c9)),h(this,_0x40327c(0x262),!0x1),h(this,'_range'),h(this,'_name',''),h(this,_0x40327c(0x270),_0x40327c(0x290)),h(this,_0x40327c(0x221)),(_0xa24990&&this[_0x40327c(0xa2)](_0xa24990),this['onPointerEnter$'][_0x40327c(0x275)](()=>this[_0x40327c(0xa2)]({'hovered':!0x0})),this[_0x40327c(0x160)][_0x40327c(0x275)](()=>this[_0x40327c(0xa2)]({'hovered':!0x1})));}['setShapeProps'](_0x1bc704){const _0x1b3576=_0x2a171b;var _0x5d991a,_0x4b7704,_0x2e7a60,_0x2354f9,_0x3abe6f,_0x42bae0;this[_0x1b3576(0x1c9)]=(_0x5d991a=_0x1bc704[_0x1b3576(0x6d)])!=null?_0x5d991a:this['_color'],this[_0x1b3576(0x262)]=(_0x4b7704=_0x1bc704[_0x1b3576(0xe9)])!=null?_0x4b7704:this['_hovered'],this[_0x1b3576(0x1a1)]=(_0x2e7a60=_0x1bc704['range'])!=null?_0x2e7a60:this[_0x1b3576(0x1a1)],this[_0x1b3576(0x1fa)]=(_0x2354f9=_0x1bc704[_0x1b3576(0x139)])!=null?_0x2354f9:this[_0x1b3576(0x1fa)],this[_0x1b3576(0x270)]=(_0x3abe6f=_0x1bc704[_0x1b3576(0x13b)])!=null?_0x3abe6f:this['_labelPosition'],this[_0x1b3576(0x221)]=(_0x42bae0=_0x1bc704['backgroundColor'])!=null?_0x42bae0:this[_0x1b3576(0x221)],this[_0x1b3576(0x245)]({'width':_0x1bc704[_0x1b3576(0x2a2)],'height':_0x1bc704[_0x1b3576(0x163)]});}[_0x2a171b(0x2d6)](_0x12be18){const _0x51b370=_0x2a171b,{row:_0x12e325,column:_0x3c3af4}=_0x12be18;if(_0x12e325>=this[_0x51b370(0x1a1)][_0x51b370(0x190)]&&_0x12e325<=this[_0x51b370(0x1a1)][_0x51b370(0x29f)]&&_0x3c3af4>=this[_0x51b370(0x1a1)][_0x51b370(0x7c)]&&_0x3c3af4<=this[_0x51b370(0x1a1)]['endColumn']){this[_0x51b370(0xa2)]({'hovered':!0x0});return;}this[_0x51b370(0xa2)]({'hovered':!0x1});}[_0x2a171b(0xb0)](_0x89ad35){return!0x1;}[_0x2a171b(0x101)](_0x4b96d7){const _0x148b9f=_0x2a171b;p[_0x148b9f(0x2ad)][_0x148b9f(0x183)](_0x4b96d7,{'width':this[_0x148b9f(0x2a2)],'height':this[_0x148b9f(0x163)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x148b9f(0x221)]}),this[_0x148b9f(0x262)]&&(_0x4b96d7[_0x148b9f(0x1c7)](),_0x4b96d7['transform'](0x1,0x0,0x0,0x1,this[_0x148b9f(0x2a2)],this[_0x148b9f(0x270)]===_0x148b9f(0x1df)?0x0:-0x14),ee['drawWith'](_0x4b96d7,{'text':this[_0x148b9f(0x1fa)],'color':this['_color']}),_0x4b96d7[_0x148b9f(0x229)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x314ddc,_0x10d8f5,_0x35165b,_0x4e51d4)=>{for(var _0x26d820=_0x4e51d4>0x1?void 0x0:_0x4e51d4?Ct(_0x10d8f5,_0x35165b):_0x10d8f5,_0x8e2648=_0x314ddc['length']-0x1,_0x52034d;_0x8e2648>=0x0;_0x8e2648--)(_0x52034d=_0x314ddc[_0x8e2648])&&(_0x26d820=_0x52034d(_0x26d820)||_0x26d820);return _0x26d820;},ae=(_0x1356a5,_0x5aeb43)=>(_0x1d83fa,_0x26f50d)=>_0x5aeb43(_0x1d83fa,_0x26f50d,_0x1356a5);const bt=0x1389;let ve=class extends a[_0x2a171b(0x18e)]{constructor(_0x1282e8,_0x545140,_0x3104b7,_0x5c7f85){const _0x58aafe=_0x2a171b;super(),h(this,_0x58aafe(0x2e0),new Set()),h(this,'_lastPointer',null),(this[_0x58aafe(0x26d)]=_0x1282e8,this['_sheetSkeletonManagerService']=_0x545140,this['_collabCursorController']=_0x3104b7,this[_0x58aafe(0x177)]=_0x5c7f85,this[_0x58aafe(0x240)]());}[_0x2a171b(0x240)](){const _0xc4d156=_0x2a171b;this[_0xc4d156(0x25e)]['currentSkeleton$'][_0xc4d156(0x22f)]($[_0xc4d156(0x7e)](this[_0xc4d156(0x169)]),$['switchMap'](_0x2e3b8c=>{const _0x216f9f=_0xc4d156;if(_0x2e3b8c){const _0x45b243=_0x2e3b8c['sheetId'];return d[_0x216f9f(0x8e)](this[_0x216f9f(0x1a4)]['getCollabCursors$'](this[_0x216f9f(0x26d)][_0x216f9f(0x170)]),this[_0x216f9f(0x177)][_0x216f9f(0xca)])[_0x216f9f(0x22f)]($[_0x216f9f(0x261)](([_0x3c0da3,_0x44df1e])=>{const _0x276812=_0x216f9f,_0x4ebc2c=new Map();return _0x3c0da3[_0x276812(0x2d7)]((_0x3330e6,_0xc17f43)=>{const _0x527965=_0x276812;if(_0x3330e6[_0x527965(0x198)]===_0x45b243){const _0x59bf8a={..._0x3330e6};_0x59bf8a['color']=this[_0x527965(0x177)]['getColorFromTheme'](_0x3330e6['color']),_0x4ebc2c[_0x527965(0x6c)](_0xc17f43,_0x59bf8a);}}),{'skeleton':_0x2e3b8c,'cursors':_0x4ebc2c};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0xc4d156(0x8f)](({skeleton:_0x152779,cursors:_0x1b5257})=>{this['_removeCollabCursors'](),_0x152779&&this['_updateCollabCursors'](_0x152779,_0x1b5257);}),this[_0xc4d156(0x25e)]['currentSkeleton$']['subscribe'](_0x367fba=>{const _0x48f3ed=_0xc4d156;if(_0x367fba==null)return;const {skeleton:_0x3e1bf8}=_0x367fba,{scene:_0x103af8}=this['_context'];_0x103af8['onPointerMove$']['subscribeEvent'](a[_0x48f3ed(0x283)](_0x204c72=>{const _0x5c42b6=_0x48f3ed;var _0x1d86be,_0x59a238;const {offsetX:_0x37bfd6,offsetY:_0x54c6b9}=_0x204c72,{x:_0x54696c,y:_0x20711a}=_0x103af8['getRelativeToViewportCoord'](p['Vector2'][_0x5c42b6(0x217)]([_0x37bfd6,_0x54c6b9])),{scaleX:_0x5b9406,scaleY:_0x502c10}=_0x103af8[_0x5c42b6(0x281)](),_0x5ae06f=_0x103af8['getViewport'](p['SHEET_VIEWPORT_KEY'][_0x5c42b6(0x14c)]),_0x1398b3=_0x103af8[_0x5c42b6(0x70)](p[_0x5c42b6(0x291)][_0x5c42b6(0x217)]([_0x54696c,_0x20711a]),_0x5ae06f),_0x4e158d=_0x3e1bf8['getCellPositionByOffset'](_0x37bfd6,_0x54c6b9,_0x5b9406,_0x502c10,_0x1398b3);((_0x1d86be=this[_0x5c42b6(0x17f)])==null?void 0x0:_0x1d86be['column'])===_0x4e158d[_0x5c42b6(0xa0)]&&((_0x59a238=this[_0x5c42b6(0x17f)])==null?void 0x0:_0x59a238[_0x5c42b6(0x144)])===_0x4e158d['row']||this[_0x5c42b6(0x2e0)][_0x5c42b6(0x2d7)](_0x27eaa8=>{const _0x46f400=_0x5c42b6;_0x27eaa8[_0x46f400(0x2d6)](_0x4e158d);});},0x64));});}[_0x2a171b(0x1be)](_0x283b86,_0x3a9458){const _0x104642=_0x2a171b;var _0x4e2abf;const _0xee0cfe=(_0x4e2abf=this[_0x104642(0x25e)][_0x104642(0x167)]())==null?void 0x0:_0x4e2abf[_0x104642(0xfe)];if(!_0xee0cfe)return;const _0x4ff650=this['_getSheetObject']();if(!_0x4ff650)return;this[_0x104642(0x2e0)][_0x104642(0x2d7)](_0x1672cb=>{const _0x2256da=_0x104642;_0x1672cb[_0x2256da(0xda)]();});const {scene:_0xa5f7fb}=_0x4ff650,_0x5853f4=Et(Array[_0x104642(0x29b)](_0x3a9458[_0x104642(0x1d3)]()))[_0x104642(0x261)](_0x27bc5e=>{const _0x46a1d5=_0x104642,{color:_0x1b24a4,range:_0x2a3d89,name:_0x60fd88,selection:_0x497d6b,sheetID:_0x238ad2}=_0x27bc5e,{startColumn:_0x2e0f46,startRow:_0x5df126,endColumn:_0x5444fd,endRow:_0x9b670c}=_0x2a3d89,_0x411eeb=X['getCoordByCell'](_0x5df126,_0x2e0f46,_0xa5f7fb,_0xee0cfe),_0x467388=X[_0x46a1d5(0x72)](_0x9b670c,_0x5444fd,_0xa5f7fb,_0xee0cfe),{columnHeaderHeightAndMarginTop:_0xc7d36b}=_0xee0cfe,{startX:_0x231558,startY:_0x4306b5}=_0x411eeb,{endX:_0x1e10e5,endY:_0x4ae179}=_0x467388,_0x294c54=_0x1e10e5-_0x231558,_0x3c4c12=_0x4ae179-_0x4306b5,_0x4f2261={'labelPosition':_0x4306b5-_0xc7d36b>=K?_0x46a1d5(0x290):_0x46a1d5(0x1df),'sheetID':_0x238ad2,'range':_0x2a3d89,'color':_0x1b24a4,'name':_0x60fd88,'selection':_0x497d6b,'left':_0x231558,'top':_0x4306b5,'width':_0x294c54,'height':_0x3c4c12,'evented':!0x1,'zIndex':bt};return new Pe(_0x60fd88,_0x4f2261);});_0xa5f7fb[_0x104642(0x10a)](_0x5853f4,gt),this['_cursors']=new Set(_0x5853f4);}['_removeCollabCursors'](){const _0x539809=_0x2a171b;var _0x520834;(_0x520834=this[_0x539809(0x2e0)])==null||_0x520834[_0x539809(0x2d7)](_0x5720b6=>_0x5720b6[_0x539809(0x289)]());}[_0x2a171b(0x28a)](){const _0x1c47a5=_0x2a171b;return X[_0x1c47a5(0xbf)](this['_context']['unit'],this[_0x1c47a5(0x26d)]);}};ve=pt([ae(0x1,a[_0x2a171b(0xe4)](X[_0x2a171b(0xc4)])),ae(0x2,a[_0x2a171b(0xe4)](x)),ae(0x3,a['Inject'](a['ThemeService']))],ve);function Et(_0x309839){const _0x1a3f48=_0x2a171b,_0x5aed71=new Map();return _0x309839[_0x1a3f48(0x2d7)](_0x20ee79=>{const _0x4670d6=_0x1a3f48;if(_0x5aed71[_0x4670d6(0x96)](_0x20ee79[_0x4670d6(0x181)])){const _0x5892a2=_0x5aed71[_0x4670d6(0x1cb)](_0x20ee79[_0x4670d6(0x181)]);_0x5892a2['name']+=',\x20'+_0x20ee79[_0x4670d6(0x139)];}else _0x5aed71[_0x4670d6(0x6c)](_0x20ee79['selection'],_0x20ee79);}),Array[_0x1a3f48(0x29b)](_0x5aed71['values']());}var E=function(){const _0x536537=_0x2a171b;return E=Object[_0x536537(0x13c)]||function(_0x351fc6){const _0x28b813=_0x536537;for(var _0x66847b,_0x2b7b44=0x1,_0x58babc=arguments['length'];_0x2b7b44<_0x58babc;_0x2b7b44++){_0x66847b=arguments[_0x2b7b44];for(var _0x2283cf in _0x66847b)Object[_0x28b813(0x146)][_0x28b813(0x273)][_0x28b813(0x218)](_0x66847b,_0x2283cf)&&(_0x351fc6[_0x2283cf]=_0x66847b[_0x2283cf]);}return _0x351fc6;},E['apply'](this,arguments);},Tt=function(_0x1a0759,_0x5510d2){const _0x7db7d8=_0x2a171b;var _0x748e1={};for(var _0x85fe0c in _0x1a0759)Object[_0x7db7d8(0x146)][_0x7db7d8(0x273)][_0x7db7d8(0x218)](_0x1a0759,_0x85fe0c)&&_0x5510d2[_0x7db7d8(0x19b)](_0x85fe0c)<0x0&&(_0x748e1[_0x85fe0c]=_0x1a0759[_0x85fe0c]);if(_0x1a0759!=null&&typeof Object[_0x7db7d8(0x140)]==_0x7db7d8(0x175)){for(var _0x4c6d13=0x0,_0x85fe0c=Object[_0x7db7d8(0x140)](_0x1a0759);_0x4c6d13<_0x85fe0c[_0x7db7d8(0x71)];_0x4c6d13++)_0x5510d2[_0x7db7d8(0x19b)](_0x85fe0c[_0x4c6d13])<0x0&&Object['prototype'][_0x7db7d8(0x151)][_0x7db7d8(0x218)](_0x1a0759,_0x85fe0c[_0x4c6d13])&&(_0x748e1[_0x85fe0c[_0x4c6d13]]=_0x1a0759[_0x85fe0c[_0x4c6d13]]);}return _0x748e1;},pe=M[_0x2a171b(0x2c0)](function(_0x58c6c4,_0x4321b9){const _0x22e49c=_0x2a171b;var _0x27e073=_0x58c6c4[_0x22e49c(0xa8)],_0x2994d7=_0x58c6c4['id'],_0x31d983=_0x58c6c4[_0x22e49c(0xf3)],_0xda71b4=_0x58c6c4[_0x22e49c(0x1c3)],_0x894639=Tt(_0x58c6c4,[_0x22e49c(0xa8),'id',_0x22e49c(0xf3),'extend']),_0x2f6482=_0x22e49c(0x2d4)[_0x22e49c(0x1bf)](_0x2994d7,'\x20')['concat'](_0x31d983||'')[_0x22e49c(0x9c)](),_0x2c9970=M[_0x22e49c(0x1e2)]('_'[_0x22e49c(0x1bf)](Dt()));return Ae(_0x27e073,''['concat'](_0x2994d7),{'defIds':_0x27e073[_0x22e49c(0xea)],'idSuffix':_0x2c9970[_0x22e49c(0x6e)]},E({'ref':_0x4321b9,'className':_0x2f6482},_0x894639),_0xda71b4);});function Ae(_0x6c803,_0x3a6603,_0x4adc45,_0x9108b3,_0x239958){const _0x3f51e6=_0x2a171b;return M[_0x3f51e6(0x216)](_0x6c803[_0x3f51e6(0xc2)],E(E({'key':_0x3a6603},Ot(_0x6c803,_0x4adc45,_0x239958)),_0x9108b3),(Rt(_0x6c803,_0x4adc45)['children']||[])['map'](function(_0x582299,_0x50c3f2){const _0x3da6d9=_0x3f51e6;return Ae(_0x582299,''[_0x3da6d9(0x1bf)](_0x3a6603,'-')[_0x3da6d9(0x1bf)](_0x6c803[_0x3da6d9(0xc2)],'-')[_0x3da6d9(0x1bf)](_0x50c3f2),_0x4adc45,void 0x0,_0x239958);}));}function Ot(_0x44c3c6,_0x558077,_0xa8257){const _0x178a8f=_0x2a171b;var _0x3f727c=E({},_0x44c3c6[_0x178a8f(0x21c)]);_0xa8257!=null&&_0xa8257[_0x178a8f(0x208)]&&_0x3f727c[_0x178a8f(0x29c)]===_0x178a8f(0x208)&&(_0x3f727c[_0x178a8f(0x29c)]=_0xa8257[_0x178a8f(0x208)]),_0x44c3c6[_0x178a8f(0xc2)]===_0x178a8f(0x2c1)&&_0x3f727c['id']&&(_0x3f727c['id']=_0x3f727c['id']+_0x558077[_0x178a8f(0x272)]),Object[_0x178a8f(0x2d8)](_0x3f727c)['forEach'](function(_0x4dc26e){const _0x50a0c1=_0x178a8f;var _0x15f311=_0x4dc26e[0x0],_0x5f2011=_0x4dc26e[0x1];_0x15f311===_0x50a0c1(0x2c1)&&typeof _0x5f2011==_0x50a0c1(0xcf)&&(_0x3f727c[_0x15f311]=_0x5f2011[_0x50a0c1(0x1bd)](/url\(#(.*)\)/,'url(#$1'[_0x50a0c1(0x1bf)](_0x558077[_0x50a0c1(0x272)],')')));});var _0x410bbe=_0x558077[_0x178a8f(0xea)];return!_0x410bbe||_0x410bbe[_0x178a8f(0x71)]===0x0||(_0x44c3c6[_0x178a8f(0xc2)]==='use'&&_0x3f727c[_0x178a8f(0x14f)]&&(_0x3f727c[_0x178a8f(0x14f)]=_0x3f727c[_0x178a8f(0x14f)]+_0x558077[_0x178a8f(0x272)]),Object['entries'](_0x3f727c)[_0x178a8f(0x2d7)](function(_0x271b44){const _0x34d13d=_0x178a8f;var _0x521de9=_0x271b44[0x0],_0x5d323e=_0x271b44[0x1];typeof _0x5d323e==_0x34d13d(0xcf)&&(_0x3f727c[_0x521de9]=_0x5d323e[_0x34d13d(0x1bd)](/url\(#(.*)\)/,_0x34d13d(0x22b)[_0x34d13d(0x1bf)](_0x558077[_0x34d13d(0x272)],')')));})),_0x3f727c;}function Rt(_0x3259db,_0x2c2b34){const _0x883bba=_0x2a171b;var _0x4a223f,_0x47118a=_0x2c2b34['defIds'];return!_0x47118a||_0x47118a[_0x883bba(0x71)]===0x0?_0x3259db:_0x3259db[_0x883bba(0xc2)]===_0x883bba(0x117)&&(!((_0x4a223f=_0x3259db['children'])===null||_0x4a223f===void 0x0)&&_0x4a223f[_0x883bba(0x71)])?E(E({},_0x3259db),{'children':_0x3259db[_0x883bba(0x174)][_0x883bba(0x261)](function(_0x1bf878){const _0x5473f1=_0x883bba;return typeof _0x1bf878[_0x5473f1(0x21c)]['id']==_0x5473f1(0xcf)&&_0x47118a&&_0x47118a[_0x5473f1(0x2ac)](_0x1bf878[_0x5473f1(0x21c)]['id'])?E(E({},_0x1bf878),{'attrs':E(E({},_0x1bf878[_0x5473f1(0x21c)]),{'id':_0x1bf878[_0x5473f1(0x21c)]['id']+_0x2c2b34[_0x5473f1(0x272)]})}):_0x1bf878;})}):_0x3259db;}function Dt(){const _0xa8e0fc=_0x2a171b;return Math[_0xa8e0fc(0x23c)]()[_0xa8e0fc(0x267)](0x24)['substring'](0x2,0x8);}pe[_0x2a171b(0xb9)]=_0x2a171b(0xf6);var Ut={'tag':'svg','attrs':{'xmlns':_0x2a171b(0x210),'fill':_0x2a171b(0xce),'viewBox':_0x2a171b(0x27e),'width':'1em','height':_0x2a171b(0x1f2)},'children':[{'tag':'g','attrs':{'clipPath':_0x2a171b(0x23f)},'children':[{'tag':_0x2a171b(0x2a3),'attrs':{'stroke':_0x2a171b(0x16e),'d':_0x2a171b(0x1db),'strokeLinecap':_0x2a171b(0x187),'strokeLinejoin':_0x2a171b(0x187),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x2a171b(0x2d1)}}]}]}],'defIds':[_0x2a171b(0x185)]},ye=M[_0x2a171b(0x2c0)](function(_0x48d35a,_0x517353){const _0x5bea45=_0x2a171b;return M[_0x5bea45(0x216)](pe,Object[_0x5bea45(0x13c)]({},_0x48d35a,{'id':_0x5bea45(0x202),'ref':_0x517353,'icon':Ut}));});ye[_0x2a171b(0xb9)]=_0x2a171b(0x162);var Nt={'tag':_0x2a171b(0x178),'attrs':{'xmlns':_0x2a171b(0x210),'fill':_0x2a171b(0xce),'viewBox':'0\x200\x2017\x2016','width':_0x2a171b(0x1f2),'height':_0x2a171b(0x1f2)},'children':[{'tag':'g','attrs':{'clipPath':_0x2a171b(0xf2)},'children':[{'tag':_0x2a171b(0x2a3),'attrs':{'stroke':'currentColor','d':_0x2a171b(0x1d2),'strokeLinecap':'round','strokeLinejoin':_0x2a171b(0x187),'strokeWidth':1.2}}]},{'tag':_0x2a171b(0x117),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2a171b(0xbe)},'children':[{'tag':_0x2a171b(0x2a3),'attrs':{'fill':'white','d':_0x2a171b(0x2d1),'transform':_0x2a171b(0x2c3)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M['forwardRef'](function(_0x15ada4,_0x1c73fa){const _0x5b8b95=_0x2a171b;return M['createElement'](pe,Object[_0x5b8b95(0x13c)]({},_0x15ada4,{'id':_0x5b8b95(0x24c),'ref':_0x1c73fa,'icon':Nt}));});$e[_0x2a171b(0xb9)]=_0x2a171b(0x9b);function Mt(_0x2f884a){const _0x4a7cec=_0x2a171b;switch(_0x2f884a){case u[_0x4a7cec(0x257)][_0x4a7cec(0x184)]:return'collabStatus.offline';case u[_0x4a7cec(0x257)][_0x4a7cec(0x1eb)]:return _0x4a7cec(0x2d3);case u[_0x4a7cec(0x257)][_0x4a7cec(0x2a5)]:return _0x4a7cec(0x2c6);case u[_0x4a7cec(0x257)][_0x4a7cec(0x10b)]:return _0x4a7cec(0x2de);case u[_0x4a7cec(0x257)]['AWAITING']:case u[_0x4a7cec(0x257)]['AWAITING_WITH_PENDING']:return _0x4a7cec(0x2d9);case u[_0x4a7cec(0x257)][_0x4a7cec(0xf9)]:case u[_0x4a7cec(0x257)][_0x4a7cec(0xb5)]:return _0x4a7cec(0x288);}}function xe(_0x195e58){const _0x3e90b1=_0x2a171b,{status$:_0x425b37}=_0x195e58,_0x96f672=T[_0x3e90b1(0x1e4)](_0x425b37,u[_0x3e90b1(0x257)][_0x3e90b1(0x10b)]),_0x363b23=T[_0x3e90b1(0x2bb)](a[_0x3e90b1(0x11c)]),_0x3d9d74=T['useDependency'](u[_0x3e90b1(0x22a)]),_0x18babb=_0x96f672!==u[_0x3e90b1(0x257)][_0x3e90b1(0x184)],_0x53f47d=_0x363b23['t'](Mt(_0x96f672)),_0x1a79d8=_0x18babb?w['jsx']($e,{}):w['jsx'](ye,{}),_0x4ffb7e=M[_0x3e90b1(0x165)](()=>{_0x18babb||_0x3d9d74['reconnect']();},[_0x18babb,_0x3d9d74]);function _0x58dc24(){const _0x221ad0=_0x3e90b1;return w['jsxs'](_0x221ad0(0xc1),{'className':_0x221ad0(0x2b1),'onClick':_0x4ffb7e,'children':[w[_0x221ad0(0x192)](_0x221ad0(0xc1),{'className':D[_0x221ad0(0x24e)]('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0x18babb,'univer-text-red-500':!_0x18babb}),'children':_0x1a79d8}),w[_0x221ad0(0x192)](_0x221ad0(0xc1),{'className':_0x221ad0(0x92),'children':_0x53f47d})]});}return _0x18babb?_0x58dc24():w[_0x3e90b1(0x192)](D[_0x3e90b1(0x15a)],{'title':_0x363b23['t'](_0x3e90b1(0x14d)),'children':_0x58dc24()});}var Lt=Object[_0x2a171b(0x24b)],wt=(_0x5488cf,_0x3942b4,_0x5eef25,_0x2dd6db)=>{for(var _0x338cb2=_0x2dd6db>0x1?void 0x0:_0x2dd6db?Lt(_0x3942b4,_0x5eef25):_0x3942b4,_0x2e5cc2=_0x5488cf['length']-0x1,_0x1ab263;_0x2e5cc2>=0x0;_0x2e5cc2--)(_0x1ab263=_0x5488cf[_0x2e5cc2])&&(_0x338cb2=_0x1ab263(_0x338cb2)||_0x338cb2);return _0x338cb2;},V=(_0x40e219,_0x5009f6)=>(_0x42d3d0,_0x296b4b)=>_0x5009f6(_0x42d3d0,_0x296b4b,_0x40e219);exports[_0x2a171b(0x2cb)]=class extends a[_0x2a171b(0x24f)]{constructor(_0x186dc8,_0x4027a3,_0x560f04,_0x2656c8){const _0x29c37d=_0x2a171b;super(),h(this,_0x29c37d(0x1a2),new d['BehaviorSubject'](u[_0x29c37d(0x257)][_0x29c37d(0x10b)])),(this[_0x29c37d(0xb1)]=_0x186dc8,this['_injector']=_0x4027a3,this[_0x29c37d(0xeb)]=_0x560f04,this['_uiPartsService']=_0x2656c8,this[_0x29c37d(0xee)](),this[_0x29c37d(0xec)]());}[_0x2a171b(0xec)](){const _0x454748=_0x2a171b;this['disposeWithMe'](this[_0x454748(0xb1)][_0x454748(0x76)][_0x454748(0x22f)](d[_0x454748(0x1b7)](()=>{const _0x109981=_0x454748,_0x27f46a=this[_0x109981(0xb1)][_0x109981(0x20a)]();return _0x27f46a?this[_0x109981(0xeb)]['getCollabEntity$'](_0x27f46a['getUnitId']()):d['of'](null);}),d[_0x454748(0x1b7)](_0x253fd4=>_0x253fd4?_0x253fd4['status$']:d['of'](u[_0x454748(0x257)][_0x454748(0x10b)])))['subscribe'](_0x522f16=>{const _0x3905ca=_0x454748;this[_0x3905ca(0x1a2)][_0x3905ca(0x1c6)](_0x522f16);}));}[_0x2a171b(0xee)](){const _0xf10893=_0x2a171b;this[_0xf10893(0x1a9)](this['_uiPartsService'][_0xf10893(0x2c8)](T[_0xf10893(0x118)]['HEADER_MENU'],()=>T['connectInjector'](Pt({'status$':this[_0xf10893(0x1a2)]['asObservable']()}),this['_injector'])));}},exports[_0x2a171b(0x2cb)]=wt([V(0x0,a[_0x2a171b(0x10d)]),V(0x1,a[_0x2a171b(0xe4)](a[_0x2a171b(0x9a)])),V(0x2,a[_0x2a171b(0xe4)](u[_0x2a171b(0x149)])),V(0x3,T[_0x2a171b(0x239)])],exports[_0x2a171b(0x2cb)]);function Pt(_0x4b554e){const {status$:_0x267461}=_0x4b554e;return function(){return w['jsx'](xe,{'status$':_0x267461});};}var At=Object[_0x2a171b(0x24b)],yt=(_0x4bacc6,_0x1694ac,_0x3012f4,_0x12e47d)=>{const _0x44397c=_0x2a171b;for(var _0xf7b8a4=_0x12e47d>0x1?void 0x0:_0x12e47d?At(_0x1694ac,_0x3012f4):_0x1694ac,_0x21ab19=_0x4bacc6[_0x44397c(0x71)]-0x1,_0xa9e84e;_0x21ab19>=0x0;_0x21ab19--)(_0xa9e84e=_0x4bacc6[_0x21ab19])&&(_0xf7b8a4=_0xa9e84e(_0xf7b8a4)||_0xf7b8a4);return _0xf7b8a4;},y=(_0x3efac0,_0x3570bf)=>(_0x3c63af,_0xbb49a4)=>_0x3570bf(_0x3c63af,_0xbb49a4,_0x3efac0);let q=class extends a[_0x2a171b(0x24f)]{constructor(_0x4c08ee,_0x2daf2c,_0xb3c64b,_0x4b6e63,_0xdcb134,_0x472223){const _0x21699f=_0x2a171b;super(),this[_0x21699f(0x17d)]=_0x4c08ee,this['_localCacheService']=_0x2daf2c,this['_collaborationUIEventService']=_0xb3c64b,this[_0x21699f(0x14b)]=_0x4b6e63,this[_0x21699f(0x1f4)]=_0xdcb134,this[_0x21699f(0x1cc)]=_0x472223,this[_0x21699f(0x292)](),this[_0x21699f(0x15f)]();}[_0x2a171b(0x292)](){const _0x5a1655=_0x2a171b;this['disposeWithMe'](this[_0x5a1655(0x17d)][_0x5a1655(0x28d)](()=>{const _0x553d0a=_0x5a1655;if(this[_0x553d0a(0x256)][_0x553d0a(0x18f)]['size'])return this[_0x553d0a(0x1cc)]['t'](_0x553d0a(0x2b8));}));}[_0x2a171b(0x15f)](){const _0xa7a4e4=_0x2a171b;this[_0xa7a4e4(0x1a9)](this[_0xa7a4e4(0x252)]['event$']['subscribe'](_0x453607=>{const _0x513008=_0xa7a4e4;_0x453607['id']===u[_0x513008(0x1ec)][_0x513008(0x114)]&&this[_0x513008(0x14b)][_0x513008(0x2b0)]({'type':D[_0x513008(0xa9)][_0x513008(0xde)],'content':this[_0x513008(0x1cc)]['t'](_0x513008(0x2c4))}),_0x453607['id']===u[_0x513008(0x1ec)][_0x513008(0x212)]&&this[_0x513008(0x14b)]['show']({'type':D[_0x513008(0xa9)]['Warning'],'content':this[_0x513008(0x1cc)]['t']('collaboration.closeRoom')}),_0x453607['id']===u[_0x513008(0x1ec)]['PERMISSION_DENIED']&&this[_0x513008(0x1f4)]['show']({'title':this['_localeService']['t'](_0x513008(0x296)),'content':this[_0x513008(0x1cc)]['t'](_0x513008(0x22d)),'type':_0x513008(0xa3),'duration':0x0}),_0x453607['id']===u[_0x513008(0x1ec)][_0x513008(0x1eb)]&&this[_0x513008(0x14b)]['show']({'type':D[_0x513008(0xa9)][_0x513008(0x25f)],'content':this[_0x513008(0x1cc)]['t']('collaboration.closeRoom')+'('+_0x453607['data']+')'}),_0x453607['id']===u[_0x513008(0x1ec)][_0x513008(0xe2)]&&this[_0x513008(0x14b)][_0x513008(0x2b0)]({'type':D[_0x513008(0xa9)][_0x513008(0xde)],'content':this[_0x513008(0x1cc)]['t'](_0x453607['data']||'')}),_0x453607['id']===u[_0x513008(0x1ec)]['SOCKET_FAILED_RETRY']&&this[_0x513008(0x14b)][_0x513008(0x2b0)]({'type':D[_0x513008(0xa9)]['Warning'],'content':this[_0x513008(0x1cc)]['t'](_0x513008(0x81))}),_0x453607['id']===u[_0x513008(0x1ec)][_0x513008(0x1ba)]&&this['_messageService'][_0x513008(0x2b0)]({'type':D['MessageType'][_0x513008(0x25f)],'content':this[_0x513008(0x1cc)]['t'](_0x513008(0x67))}),_0x453607['id']===u[_0x513008(0x1ec)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x513008(0x14b)][_0x513008(0x2b0)]({'type':D[_0x513008(0xa9)][_0x513008(0x25f)],'content':this[_0x513008(0x1cc)]['t'](_0x513008(0x1b1))});}));}};q=yt([y(0x0,T[_0x2a171b(0xb4)]),y(0x1,u[_0x2a171b(0xb8)]),y(0x2,a[_0x2a171b(0xe4)](u[_0x2a171b(0x1a6)])),y(0x3,T[_0x2a171b(0x7b)]),y(0x4,T[_0x2a171b(0x18a)]),y(0x5,a[_0x2a171b(0xe4)](a['LocaleService']))],q);const $t=_0x2a171b(0x2c5),Ue={},be=a['createIdentifier']('uni.network.url-service');var xt=Object[_0x2a171b(0x24b)],jt=(_0x4ad4da,_0x4d5c91,_0x292105,_0x27a76f)=>{const _0x3397f2=_0x2a171b;for(var _0x520f7e=_0x27a76f>0x1?void 0x0:_0x27a76f?xt(_0x4d5c91,_0x292105):_0x4d5c91,_0x59dc5c=_0x4ad4da[_0x3397f2(0x71)]-0x1,_0x366c74;_0x59dc5c>=0x0;_0x59dc5c--)(_0x366c74=_0x4ad4da[_0x59dc5c])&&(_0x520f7e=_0x366c74(_0x520f7e)||_0x520f7e);return _0x520f7e;},H=(_0x5474c1,_0x3cb3f2)=>(_0x3ab6a3,_0x261546)=>_0x3cb3f2(_0x3ab6a3,_0x261546,_0x5474c1);exports[_0x2a171b(0x15c)]=class extends a[_0x2a171b(0x18e)]{constructor(_0x2594b7,_0x43d748,_0x4bcfd8,_0x490006,_0x38fb8d){const _0x50e04c=_0x2a171b;super(),this[_0x50e04c(0x263)]=_0x2594b7,this['_logService']=_0x43d748,this['_commandService']=_0x4bcfd8,this[_0x50e04c(0xd1)]=_0x490006,_0x38fb8d?_0x38fb8d==null||_0x38fb8d[_0x50e04c(0x141)]()[_0x50e04c(0x13e)](()=>this['_init']()):(this[_0x50e04c(0xf7)][_0x50e04c(0x207)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x2a171b(0x240)](){const _0x3ef33f=_0x2a171b,_0x271654=this[_0x3ef33f(0x263)][_0x3ef33f(0x131)](_0x3ef33f(0x105)),_0x1a70c6=this['_urlService'][_0x3ef33f(0x131)](_0x3ef33f(0x197)),_0x7e2b0b=this[_0x3ef33f(0x263)]['getParam']('subunit');if(!_0x271654||!_0x1a70c6){this[_0x3ef33f(0xf7)][_0x3ef33f(0x207)](_0x3ef33f(0xb6),_0x3ef33f(0x142));return;}const _0x9f2dab=await this[_0x3ef33f(0xd1)][_0x3ef33f(0x1d5)](_0x271654,Number(_0x1a70c6),_0x7e2b0b);_0x9f2dab&&_0x9f2dab instanceof a[_0x3ef33f(0x1fe)]&&this[_0x3ef33f(0x1a3)](_0x9f2dab);}async[_0x2a171b(0x1a3)](_0x5f505b){const _0x2eceae=_0x2a171b;await this['_updateSubUnitFromURLParams'](_0x5f505b),_0x5f505b[_0x2eceae(0x11f)][_0x2eceae(0x22f)](d[_0x2eceae(0x7e)](this['dispose$']))[_0x2eceae(0x8f)](_0x396547=>{_0x396547&&this['_updateURLWithCurrentState'](_0x396547);}),this[_0x2eceae(0x263)][_0x2eceae(0x1d6)]['pipe'](d[_0x2eceae(0x7e)](this[_0x2eceae(0x169)]))[_0x2eceae(0x8f)](()=>this['_updateSubUnitFromURLParams'](_0x5f505b));}[_0x2a171b(0x286)](_0x393896,_0x576b16=!0x1){const _0x5986f4=_0x2a171b,_0x221b5c=this[_0x5986f4(0x263)][_0x5986f4(0x131)]('subunit');_0x393896[_0x5986f4(0xc9)]()!==_0x221b5c&&this[_0x5986f4(0x263)]['setParam'](_0x5986f4(0x205),_0x393896['getSheetId'](),_0x576b16);}async[_0x2a171b(0x1c0)](_0x32b2da){const _0x335da8=_0x2a171b;var _0x595792;const _0x22917f=this[_0x335da8(0x263)]['getParam'](_0x335da8(0x205));if(!_0x22917f||!_0x32b2da[_0x335da8(0x21e)](_0x22917f)){const _0x52f189=_0x32b2da[_0x335da8(0xe5)]()[0x0],_0x598073=_0x32b2da['getSheetBySheetId'](_0x52f189);if(!_0x598073)return;this[_0x335da8(0x286)](_0x598073,!0x0),await this[_0x335da8(0x11a)][_0x335da8(0xd5)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x32b2da[_0x335da8(0x2a7)](),'subUnitId':_0x52f189});return;}((_0x595792=_0x32b2da[_0x335da8(0x14a)]())==null?void 0x0:_0x595792['getSheetId']())!==_0x22917f&&await this['_commandService']['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x32b2da[_0x335da8(0x2a7)](),'subUnitId':_0x22917f});}},exports[_0x2a171b(0x15c)]=jt([H(0x0,be),H(0x1,a[_0x2a171b(0xab)]),H(0x2,a['ICommandService']),H(0x3,a[_0x2a171b(0xe4)](u[_0x2a171b(0xc3)])),H(0x4,a[_0x2a171b(0x27a)](Ke[_0x2a171b(0x16f)]))],exports['CollaborationDataLoaderController']);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x57cd33,_0x12b8d1,_0x4b3d88,_0x128d15)=>{for(var _0x724f87=_0x128d15>0x1?void 0x0:_0x128d15?Bt(_0x12b8d1,_0x4b3d88):_0x12b8d1,_0x5b2d8b=_0x57cd33['length']-0x1,_0x44c744;_0x5b2d8b>=0x0;_0x5b2d8b--)(_0x44c744=_0x57cd33[_0x5b2d8b])&&(_0x724f87=_0x44c744(_0x724f87)||_0x724f87);return _0x724f87;},ce=(_0x22e5b6,_0x2801c9)=>(_0x4a9b5a,_0xc8a76c)=>_0x2801c9(_0x4a9b5a,_0xc8a76c,_0x22e5b6);let z=class{constructor(_0x1377e8,_0x2d1fea,_0x5c59e6){const _0x5a73b5=_0x2a171b;this['_injector']=_0x1377e8,this[_0x5a73b5(0x11e)]=_0x2d1fea,this[_0x5a73b5(0x25c)]=_0x5c59e6;}[_0x2a171b(0xf8)](_0x447c49){const _0x4f358c=_0x2a171b;this[_0x4f358c(0x16b)](_0x447c49),this['_transformPreviousActiveRange'](_0x447c49);}['transformRemoteChangeset'](_0x1a44dd){const _0x173a79=_0x2a171b,{unitID:_0x3b9a2c}=_0x1a44dd,_0x1718bb=this['_renderManagerService'][_0x173a79(0xdf)](_0x3b9a2c)[_0x173a79(0x200)](b[_0x173a79(0x12e)]),{redoCache:_0x46d33a}=_0x1718bb[_0x173a79(0x266)]();if(_0x46d33a[_0x173a79(0x71)]===0x0)return _0x1a44dd;let _0x5d698b=a[_0x173a79(0x191)]['deepClone'](_0x1a44dd['mutations'][0x0]);for(let _0x2c0063=0x0;_0x2c0063<_0x46d33a[_0x173a79(0x71)];_0x2c0063++){const _0x40b140={'id':_0x173a79(0x1b8),'params':{..._0x46d33a[_0x2c0063]}},_0x59d813=this[_0x173a79(0x11e)][_0x173a79(0x1d0)](_0x5d698b,_0x40b140,!0x1);if(m[_0x173a79(0x29d)](_0x59d813))throw _0x59d813[_0x173a79(0xa3)];_0x5d698b=_0x59d813[_0x173a79(0xc7)];}return{...a['Tools'][_0x173a79(0x2e2)](_0x1a44dd),'mutations':[_0x5d698b]};}[_0x2a171b(0x16b)](_0x2a15ec){const _0x482483=_0x2a171b,{unitID:_0x45eb0b}=_0x2a15ec,_0x512b2d=this[_0x482483(0x25c)]['getRenderById'](_0x45eb0b)[_0x482483(0x200)](b[_0x482483(0x12e)]),{undoCache:_0x578d31,redoCache:_0x275dbc}=_0x512b2d[_0x482483(0x266)]();if(_0x578d31[_0x482483(0x71)]===0x0||_0x275dbc['length']===0x0)return;const _0x413cfe=[],_0x31de70=[];let _0x43017f=a[_0x482483(0x191)][_0x482483(0x2e2)](_0x2a15ec[_0x482483(0x258)][0x0]),_0x5f4e86=a[_0x482483(0x191)][_0x482483(0x2e2)](_0x2a15ec[_0x482483(0x258)][0x0]);for(let _0x4b468d=_0x578d31['length']-0x1;_0x4b468d>=0x0;_0x4b468d--){const _0xd86d47={'id':_0x482483(0x1b8),'params':{..._0x578d31[_0x4b468d]}},_0x8a5997={'id':_0x482483(0x1b8),'params':{..._0x275dbc[_0x4b468d]}},_0x449c83=this[_0x482483(0x11e)]['transformMutation'](_0x43017f,_0xd86d47,!0x1),_0x5af241=this[_0x482483(0x11e)]['transformMutation'](_0x5f4e86,_0x8a5997,!0x1);if(m[_0x482483(0x29d)](_0x449c83))throw _0x449c83['error'];if(m[_0x482483(0x29d)](_0x5af241))throw _0x5af241[_0x482483(0xa3)];_0x413cfe['unshift'](_0x449c83[_0x482483(0x16c)][_0x482483(0x127)]),_0x31de70[_0x482483(0x26f)](_0x5af241[_0x482483(0x16c)][_0x482483(0x127)]),_0x43017f=_0x449c83['m1Prime'],_0x5f4e86=_0x5af241[_0x482483(0xc7)];}_0x512b2d['setUndoRedoMutationParamsCache']({'undoCache':_0x413cfe,'redoCache':_0x31de70});}[_0x2a171b(0x1ea)](_0x5dcf5c){const _0x4b2591=_0x2a171b,{unitID:_0x354695}=_0x5dcf5c,_0x4a0347=this[_0x4b2591(0x25c)][_0x4b2591(0xdf)](_0x354695)[_0x4b2591(0x200)](b['DocIMEInputManagerService']),_0x4214fc=_0x4a0347[_0x4b2591(0xdc)]();if(_0x4214fc==null)return;const _0x39a3c9=[{'id':_0x4b2591(0x1b8),'params':{'unitId':_0x5dcf5c[_0x4b2591(0x2bc)],'actions':null,'textRanges':[_0x4214fc]}}],_0x2ac898=this[_0x4b2591(0x11e)][_0x4b2591(0xc6)](_0x5dcf5c,_0x39a3c9);if(!m[_0x4b2591(0x145)](_0x2ac898))throw _0x2ac898[_0x4b2591(0xa3)];const _0x45a568=_0x2ac898[_0x4b2591(0x16c)][0x0][_0x4b2591(0x127)][_0x4b2591(0x6b)];Array[_0x4b2591(0xfd)](_0x45a568)&&_0x45a568[_0x4b2591(0x71)]&&_0x4a0347[_0x4b2591(0x19c)](_0x45a568[0x0]);}};z=kt([ce(0x0,a[_0x2a171b(0xe4)](a['Injector'])),ce(0x1,m[_0x2a171b(0x23e)]),ce(0x2,p[_0x2a171b(0x15b)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x43bc28,_0x383140,_0x43d441,_0x21930f)=>{const _0x5b3758=_0x2a171b;for(var _0x4ad334=_0x21930f>0x1?void 0x0:_0x21930f?Ht(_0x383140,_0x43d441):_0x383140,_0x1c3eaf=_0x43bc28[_0x5b3758(0x71)]-0x1,_0x1251cd;_0x1c3eaf>=0x0;_0x1c3eaf--)(_0x1251cd=_0x43bc28[_0x1c3eaf])&&(_0x4ad334=_0x1251cd(_0x4ad334)||_0x4ad334);return _0x4ad334;},le=(_0x29dd07,_0x4d50b6)=>(_0x551884,_0x125f4a)=>_0x4d50b6(_0x551884,_0x125f4a,_0x29dd07);let J=class{constructor(_0x10c43e,_0x4ee26e,_0xab6c23){const _0x55b14f=_0x2a171b;this['_injector']=_0x10c43e,this['_transformService']=_0x4ee26e,this[_0x55b14f(0x2aa)]=_0xab6c23;}[_0x2a171b(0x214)](_0x22fa4a){const _0x2e6a0e=_0x2a171b;this[_0x2e6a0e(0x2cd)](_0x22fa4a);}[_0x2a171b(0x75)](_0x2fb7f7){const _0x53078d=_0x2a171b,{unitID:_0x20bee0}=_0x2fb7f7,{collaboration:_0x5f09c6}=this['_docStateChangeManagerService'][_0x53078d(0x213)](_0x20bee0);if(_0x5f09c6[_0x53078d(0x71)]===0x0)return _0x2fb7f7;let _0x1dd530=a['Tools'][_0x53078d(0x2e2)](_0x2fb7f7[_0x53078d(0x258)][0x0]);for(let _0x250f59=0x0;_0x250f59<_0x5f09c6[_0x53078d(0x71)];_0x250f59++){const _0x889a1={'id':_0x53078d(0x1b8),'params':{'unitId':_0x5f09c6[_0x250f59][_0x53078d(0x170)],..._0x5f09c6[_0x250f59][_0x53078d(0x115)]}},_0x347288=this[_0x53078d(0x11e)][_0x53078d(0x1d0)](_0x1dd530,_0x889a1,!0x1);if(m[_0x53078d(0x29d)](_0x347288))throw _0x347288['error'];_0x1dd530=_0x347288[_0x53078d(0xc7)];}return{...a[_0x53078d(0x191)][_0x53078d(0x2e2)](_0x2fb7f7),'mutations':[_0x1dd530]};}[_0x2a171b(0x2cd)](_0x5f18ae){const _0x1cb969=_0x2a171b,{unitID:_0x49bef6}=_0x5f18ae,{history:_0xc3fbe5,collaboration:_0x260a87}=this[_0x1cb969(0x2aa)][_0x1cb969(0x213)](_0x49bef6);if(_0xc3fbe5['length']===0x0&&_0x260a87[_0x1cb969(0x71)]===0x0)return;const _0x24a410=[],_0x4b6b08=[];let _0x5b7e3e=a['Tools'][_0x1cb969(0x2e2)](_0x5f18ae[_0x1cb969(0x258)][0x0]),_0x438f08=a[_0x1cb969(0x191)][_0x1cb969(0x2e2)](_0x5f18ae[_0x1cb969(0x258)][0x0]);for(let _0x1a5716=_0xc3fbe5[_0x1cb969(0x71)]-0x1;_0x1a5716>=0x0;_0x1a5716--){const _0x15e2f4={'id':_0x1cb969(0x1b8),'params':{'unitId':_0xc3fbe5[_0x1a5716]['unitId'],..._0xc3fbe5[_0x1a5716]['undoState']}},_0x1646eb={'id':_0x1cb969(0x1b8),'params':{'unitId':_0xc3fbe5[_0x1a5716][_0x1cb969(0x170)],..._0xc3fbe5[_0x1a5716][_0x1cb969(0x115)]}},_0x4cb010=this['_transformService'][_0x1cb969(0x1d0)](_0x5b7e3e,_0x15e2f4,!0x1),_0x4ff62e=this[_0x1cb969(0x11e)]['transformMutation'](_0x438f08,_0x1646eb,!0x1);if(m[_0x1cb969(0x29d)](_0x4cb010))throw _0x4cb010[_0x1cb969(0xa3)];if(m[_0x1cb969(0x29d)](_0x4ff62e))throw _0x4ff62e['error'];_0x24a410[_0x1cb969(0x26f)]({..._0xc3fbe5[_0x1a5716],'undoState':_0x4cb010[_0x1cb969(0x16c)]['params'],'redoState':_0x4ff62e[_0x1cb969(0x16c)][_0x1cb969(0x127)]}),_0x5b7e3e=_0x4cb010[_0x1cb969(0xc7)],_0x438f08=_0x4ff62e[_0x1cb969(0xc7)];}_0x5b7e3e=a[_0x1cb969(0x191)]['deepClone'](_0x5f18ae[_0x1cb969(0x258)][0x0]),_0x438f08=a['Tools']['deepClone'](_0x5f18ae[_0x1cb969(0x258)][0x0]);for(let _0x3c9fb8=_0x260a87[_0x1cb969(0x71)]-0x1;_0x3c9fb8>=0x0;_0x3c9fb8--){const _0x2ab0ea={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x260a87[_0x3c9fb8][_0x1cb969(0x170)],..._0x260a87[_0x3c9fb8]['undoState']}},_0x522238={'id':_0x1cb969(0x1b8),'params':{'unitId':_0x260a87[_0x3c9fb8][_0x1cb969(0x170)],..._0x260a87[_0x3c9fb8][_0x1cb969(0x115)]}},_0x35e56e=this[_0x1cb969(0x11e)][_0x1cb969(0x1d0)](_0x5b7e3e,_0x2ab0ea,!0x1),_0x127e48=this[_0x1cb969(0x11e)]['transformMutation'](_0x438f08,_0x522238,!0x1);if(m[_0x1cb969(0x29d)](_0x35e56e))throw _0x35e56e[_0x1cb969(0xa3)];if(m['isTransformMutationFailure'](_0x127e48))throw _0x127e48[_0x1cb969(0xa3)];_0x4b6b08['unshift']({..._0x260a87[_0x3c9fb8],'undoState':_0x35e56e[_0x1cb969(0x16c)][_0x1cb969(0x127)],'redoState':_0x127e48['m2Prime'][_0x1cb969(0x127)]}),_0x5b7e3e=_0x35e56e[_0x1cb969(0xc7)],_0x438f08=_0x127e48[_0x1cb969(0xc7)];}this[_0x1cb969(0x2aa)][_0x1cb969(0x1e8)](_0x49bef6,{'history':_0x24a410,'collaboration':_0x4b6b08});}};function _0x267b(_0x234b9c,_0x1acd9d){const _0xbda65c=_0xbda6();return _0x267b=function(_0x267b84,_0x20058c){_0x267b84=_0x267b84-0x67;let _0x80f274=_0xbda65c[_0x267b84];return _0x80f274;},_0x267b(_0x234b9c,_0x1acd9d);}J=Ft([le(0x0,a[_0x2a171b(0xe4)](a[_0x2a171b(0x9a)])),le(0x1,m[_0x2a171b(0x23e)]),le(0x2,a[_0x2a171b(0xe4)](b[_0x2a171b(0x133)]))],J);var Yt=Object[_0x2a171b(0x24b)],Wt=(_0x32fc55,_0xb51329,_0xb8d583,_0x5bfb1)=>{for(var _0x125e7a=_0x5bfb1>0x1?void 0x0:_0x5bfb1?Yt(_0xb51329,_0xb8d583):_0xb51329,_0x16a8e2=_0x32fc55['length']-0x1,_0x293932;_0x16a8e2>=0x0;_0x16a8e2--)(_0x293932=_0x32fc55[_0x16a8e2])&&(_0x125e7a=_0x293932(_0x125e7a)||_0x125e7a);return _0x125e7a;},Ne=(_0x4491bf,_0x1c2b76)=>(_0x562c92,_0x2e61e9)=>_0x1c2b76(_0x562c92,_0x2e61e9,_0x4491bf);let Z=class{constructor(_0x1368ca,_0x5252b9){const _0xd4feb2=_0x2a171b;this[_0xd4feb2(0x243)]=_0x1368ca,this[_0xd4feb2(0x11e)]=_0x5252b9;}[_0x2a171b(0x196)](_0x5345af){const _0x44f84b=_0x2a171b;var _0x6e39a8;const _0x248d9b=this['_injector'][_0x44f84b(0x1cb)](Y['DocSelectionManagerService']),_0xaa8445=(_0x6e39a8=_0x248d9b['getDocRanges']())!=null?_0x6e39a8:[];if(_0xaa8445['length']===0x0)return;const _0x56c64a=_0x5345af[_0x44f84b(0x2bc)],_0x21c994=[{'id':_0x44f84b(0x1b8),'params':{'unitId':_0x56c64a,'actions':null,'textRanges':_0xaa8445}}],_0x21460c=this[_0x44f84b(0x11e)][_0x44f84b(0xc6)](_0x5345af,_0x21c994);if(!m[_0x44f84b(0x145)](_0x21460c))throw _0x21460c[_0x44f84b(0xa3)];const _0x22e38a=_0x21460c[_0x44f84b(0x16c)][0x0][_0x44f84b(0x127)][_0x44f84b(0x6b)];Array[_0x44f84b(0xfd)](_0x22e38a)&&_0x22e38a[_0x44f84b(0x71)]&&_0x248d9b[_0x44f84b(0x20f)](_0x22e38a,{'unitId':_0x56c64a,'subUnitId':_0x56c64a},!0x1);}};Z=Wt([Ne(0x0,a[_0x2a171b(0xe4)](a[_0x2a171b(0x9a)])),Ne(0x1,m[_0x2a171b(0x23e)])],Z);var Vt=Object[_0x2a171b(0x24b)],Xt=(_0x17703b,_0x1684a4,_0xf4acbd,_0x10341a)=>{const _0x2693c9=_0x2a171b;for(var _0x42c43d=_0x10341a>0x1?void 0x0:_0x10341a?Vt(_0x1684a4,_0xf4acbd):_0x1684a4,_0x122a4b=_0x17703b[_0x2693c9(0x71)]-0x1,_0x18c4f8;_0x122a4b>=0x0;_0x122a4b--)(_0x18c4f8=_0x17703b[_0x122a4b])&&(_0x42c43d=_0x18c4f8(_0x42c43d)||_0x42c43d);return _0x42c43d;},N=(_0x476bc3,_0x35d2c0)=>(_0x4e57bb,_0x5d61c8)=>_0x35d2c0(_0x4e57bb,_0x5d61c8,_0x476bc3);let Q=class extends a[_0x2a171b(0x24f)]{constructor(_0x23eb78,_0x438fdd,_0x348583,_0x5bb486,_0x1684b5,_0x3d77a6,_0x2761d8,_0x893bf0){const _0x5b461e=_0x2a171b;super(),h(this,_0x5b461e(0x1a2),new d['BehaviorSubject'](u[_0x5b461e(0x257)][_0x5b461e(0x10b)])),(this['_docStateChangeManagerService']=_0x23eb78,this['_collaborationController']=_0x438fdd,this[_0x5b461e(0x264)]=_0x348583,this[_0x5b461e(0xe0)]=_0x5bb486,this[_0x5b461e(0x22c)]=_0x1684b5,this[_0x5b461e(0x2b2)]=_0x3d77a6,this[_0x5b461e(0x14b)]=_0x2761d8,this['_localeService']=_0x893bf0,this[_0x5b461e(0x23b)]());}['_initEntityListener'](){const _0xdf9b35=_0x2a171b;this[_0xdf9b35(0x1a9)](this[_0xdf9b35(0xeb)][_0xdf9b35(0x136)]['subscribe'](_0x3e9dc3=>{const _0x1d52f7=_0xdf9b35,_0x29f0ea=this['_docStateChangeManagerService'][_0x1d52f7(0x21b)][_0x1d52f7(0x8f)](_0xcac520=>{const _0x496017=_0x1d52f7;if(_0xcac520==null)return;const {unitId:_0xe16261,redoState:_0x197d07,commandId:_0x2d600b}=_0xcac520;if(_0xe16261!==_0x3e9dc3[_0x496017(0x2bc)])return;const _0x5bb170={'id':_0x2d600b,'type':a['CommandType'][_0x496017(0x122)],'params':{'unitId':_0xe16261,'actions':_0x197d07['actions'],'textRanges':null}};_0x3e9dc3[_0x496017(0x138)](_0x5bb170);});if(_0x3e9dc3['disposeWithMe'](_0x29f0ea),_0x3e9dc3 instanceof u[_0x1d52f7(0x1e5)]){const _0x583032={'onTransformIME':_0x595df4=>this[_0x1d52f7(0x264)][_0x1d52f7(0xf8)](_0x595df4),'onTransformState':_0x43f709=>this[_0x1d52f7(0xe0)][_0x1d52f7(0x214)](_0x43f709),'onTransformSelections':_0x87d68d=>this[_0x1d52f7(0x22c)][_0x1d52f7(0x196)](_0x87d68d),'onSyncEditingCollabCursor':_0x3cf917=>this[_0x1d52f7(0x2b2)][_0x1d52f7(0x265)](_0x3cf917),'onTransformRemoteChangesetByIMECache':_0x3e9f53=>this[_0x1d52f7(0x264)]['transformRemoteChangeset'](_0x3e9f53),'onTransformRemoteChangesetByStateCache':_0xe750fa=>this[_0x1d52f7(0xe0)]['transformRemoteChangeset'](_0xe750fa)};_0x3e9dc3[_0x1d52f7(0x156)](_0x583032);}}));}};Q=Xt([N(0x0,a[_0x2a171b(0xe4)](b[_0x2a171b(0x133)])),N(0x1,a[_0x2a171b(0xe4)](u[_0x2a171b(0x149)])),N(0x2,a[_0x2a171b(0xe4)](z)),N(0x3,a[_0x2a171b(0xe4)](J)),N(0x4,a[_0x2a171b(0xe4)](Z)),N(0x5,a[_0x2a171b(0xe4)](Ce)),N(0x6,T[_0x2a171b(0x7b)]),N(0x7,a[_0x2a171b(0xe4)](a[_0x2a171b(0x11c)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x4ed83a,_0x228d8b,_0x2bdfa2,_0x514b60)=>{const _0x438fc5=_0x2a171b;for(var _0x2a65bc=_0x514b60>0x1?void 0x0:_0x514b60?Gt(_0x228d8b,_0x2bdfa2):_0x228d8b,_0x4a3937=_0x4ed83a[_0x438fc5(0x71)]-0x1,_0x4bea1b;_0x4a3937>=0x0;_0x4a3937--)(_0x4bea1b=_0x4ed83a[_0x4a3937])&&(_0x2a65bc=_0x4bea1b(_0x2a65bc)||_0x2a65bc);return _0x2a65bc;},_e=(_0x1c0cdb,_0x11dfae)=>(_0x8807b7,_0x21adb0)=>_0x11dfae(_0x8807b7,_0x21adb0,_0x1c0cdb);let ge=class extends a[_0x2a171b(0x24f)]{constructor(_0x131306,_0x336dc0,_0x591d74){const _0xdf717f=_0x2a171b;super(),h(this,'_cachedData',new Map()),h(this,_0xdf717f(0x1ad),new Map()),h(this,_0xdf717f(0x2ce),!0x1),(this['_configService']=_0x131306,this[_0xdf717f(0x279)]=_0x336dc0,this[_0xdf717f(0x1e0)]=_0x591d74);}[_0x2a171b(0x2ba)](){const _0x384da6=_0x2a171b;this[_0x384da6(0x2ce)]=!0x0;}[_0x2a171b(0x1a8)](){const _0x283712=_0x2a171b;this[_0x283712(0x2ce)]=!0x1;}get[_0x2a171b(0x18f)](){const _0x1cde75=_0x2a171b;return this[_0x1cde75(0x1ad)];}[_0x2a171b(0x289)](){const _0x24b787=_0x2a171b;this[_0x24b787(0x2cc)]()[_0x24b787(0x13e)](()=>super['dispose']());}async[_0x2a171b(0x84)](_0x52ca15){const _0x111694=_0x2a171b;return this[_0x111694(0x2ce)]?null:this[_0x111694(0x279)][_0x111694(0x254)](u[_0x111694(0x152)](_0x52ca15));}async[_0x2a171b(0x6f)](_0xc6140d,_0x242ba4){const _0x419201=_0x2a171b;return!!this[_0x419201(0x279)][_0x419201(0x189)](_0xc6140d,_0x242ba4);}[_0x2a171b(0x93)](_0x4a8c39,_0x373e6e,_0x41c385,_0x5dd869){const _0x4e318e=_0x2a171b,_0x3bd33c=this['_revisionService'][_0x4e318e(0x1d7)](_0x4a8c39);this[_0x4e318e(0xed)]['set'](_0x4a8c39,{'unitID':_0x4a8c39,'type':_0x373e6e,'awaitingChangeset':_0x41c385,'mutations':_0x5dd869,'rev':_0x3bd33c}),this['_saveTaskMap'][_0x4e318e(0x96)](_0x4a8c39)||this['_scheduleSaving'](_0x4a8c39);}['_scheduleSaving'](_0x5cc46b){const _0x1ab97f=_0x2a171b,_0x52b05d=this[_0x1ab97f(0x1a0)]();_0x52b05d===0x0?this[_0x1ab97f(0x2e7)](_0x5cc46b):this[_0x1ab97f(0x1ad)][_0x1ab97f(0x6c)](_0x5cc46b,setTimeout(()=>this[_0x1ab97f(0x2e7)](_0x5cc46b),_0x52b05d));}[_0x2a171b(0x1a0)](){const _0x2ac8a6=_0x2a171b;var _0x4402ef;return(_0x4402ef=this['_configService'][_0x2ac8a6(0xe1)](u[_0x2ac8a6(0x107)]))!=null?_0x4402ef:u[_0x2ac8a6(0x222)];}['_saveCache'](_0x42af64){const _0xbf7510=_0x2a171b,_0x1125ce=this[_0xbf7510(0x1ad)]['get'](_0x42af64);return _0x1125ce!==void 0x0&&window[_0xbf7510(0x287)](_0x1125ce),this['_localStorageService'][_0xbf7510(0x189)](u[_0xbf7510(0x152)](_0x42af64),this[_0xbf7510(0xed)]['get'](_0x42af64))[_0xbf7510(0x13e)](()=>this[_0xbf7510(0x1ad)][_0xbf7510(0x244)](_0x42af64));}async[_0x2a171b(0x2cc)](){const _0x288a58=_0x2a171b,_0x5d0607=[];this[_0x288a58(0x1ad)]['forEach']((_0x3b996c,_0x360c89)=>{const _0x23f0d1=_0x288a58;window[_0x23f0d1(0x287)](_0x3b996c),_0x5d0607[_0x23f0d1(0x26e)](this[_0x23f0d1(0x2e7)](_0x360c89)[_0x23f0d1(0x13e)](()=>{const _0x43fac6=_0x23f0d1;this[_0x43fac6(0x1ad)][_0x43fac6(0x244)](_0x360c89);}));}),await Promise[_0x288a58(0x132)](_0x5d0607);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x2a171b(0x176)]),_e(0x2,a[_0x2a171b(0xe4)](m[_0x2a171b(0x95)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x224425=_0x2a171b;super(),h(this,_0x224425(0x1d6)),this[_0x224425(0x1d6)]=d['fromEvent'](window,_0x224425(0x233))[_0x224425(0x22f)](d[_0x224425(0x7e)](this[_0x224425(0x169)]),d[_0x224425(0x1e6)](0x1),d[_0x224425(0x1f6)](void 0x0));}[_0x2a171b(0x25d)](_0x9b7cbd,_0x32770c,_0x58d19f=!0x1){const _0x48418e=_0x2a171b,_0x38fa3d=new URL(window[_0x48418e(0x2db)][_0x48418e(0x24d)]);_0x38fa3d['searchParams']['set'](_0x9b7cbd,_0x32770c),_0x58d19f?window[_0x48418e(0x2a6)]['replaceState']('','',_0x38fa3d[_0x48418e(0x267)]()):window[_0x48418e(0x2a6)]['pushState']('','',_0x38fa3d[_0x48418e(0x267)]());}[_0x2a171b(0x8c)](_0x45f3b6,_0x4d2b86=!0x1){const _0x3c92c3=_0x2a171b,_0x281454=new URL(window[_0x3c92c3(0x2db)][_0x3c92c3(0x24d)]);_0x281454[_0x3c92c3(0x78)][_0x3c92c3(0x244)](_0x45f3b6),_0x4d2b86?window[_0x3c92c3(0x2a6)]['replaceState']('','',_0x281454[_0x3c92c3(0x267)]()):window[_0x3c92c3(0x2a6)][_0x3c92c3(0x11b)]('','',_0x281454[_0x3c92c3(0x267)]());}[_0x2a171b(0x131)](_0x45059f){const _0x4c62ab=_0x2a171b;var _0x4ccb31;return(_0x4ccb31=new URL(window['location'][_0x4c62ab(0x24d)])[_0x4c62ab(0x78)][_0x4c62ab(0x1cb)](_0x45059f))!=null?_0x4ccb31:void 0x0;}}var qt=Object[_0x2a171b(0x172)],zt=Object[_0x2a171b(0x24b)],Jt=(_0x576fab,_0x2b95b0,_0x211f7b)=>_0x2b95b0 in _0x576fab?qt(_0x576fab,_0x2b95b0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x211f7b}):_0x576fab[_0x2b95b0]=_0x211f7b,Zt=(_0x54a29a,_0x2a1f6d,_0x14a467,_0x3e4b62)=>{const _0x39fc10=_0x2a171b;for(var _0x1a2b83=_0x3e4b62>0x1?void 0x0:_0x3e4b62?zt(_0x2a1f6d,_0x14a467):_0x2a1f6d,_0x4e1f41=_0x54a29a[_0x39fc10(0x71)]-0x1,_0x4a8b55;_0x4e1f41>=0x0;_0x4e1f41--)(_0x4a8b55=_0x54a29a[_0x4e1f41])&&(_0x1a2b83=_0x4a8b55(_0x1a2b83)||_0x1a2b83);return _0x1a2b83;},he=(_0x1faa88,_0x34c7a5)=>(_0x3b8590,_0x509c97)=>_0x34c7a5(_0x3b8590,_0x509c97,_0x1faa88),Qt=(_0x3524a8,_0x25aecd,_0x3e4440)=>Jt(_0x3524a8,_0x25aecd+'',_0x3e4440);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a[_0x2a171b(0x1aa)]{constructor(_0x4d88a1=Ue,_0x153097,_0x51315a,_0x398209){const _0x2867a0=_0x2a171b;super(),this[_0x2867a0(0x28c)]=_0x4d88a1,this['_renderManagerService']=_0x153097,this[_0x2867a0(0x243)]=_0x51315a,this[_0x2867a0(0x2d5)]=_0x398209;const {..._0x2ea612}=a[_0x2867a0(0x68)]({},Ue,this[_0x2867a0(0x28c)]);this[_0x2867a0(0x2d5)][_0x2867a0(0x235)]($t,_0x2ea612);}[_0x2a171b(0x209)](){const _0x2ef738=_0x2a171b;this[_0x2ef738(0x15e)](),this[_0x2ef738(0x2bf)]();}['onRendered'](){const _0x4168d5=_0x2a171b;this[_0x4168d5(0x100)]();}[_0x2a171b(0x15e)](){const _0xd6d12f=_0x2a171b;var _0x540f99;const _0x3b7843=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0xd6d12f(0x186)],{'useClass':G[_0xd6d12f(0x227)]}],[u['ILocalCacheService'],{'useClass':ge}],[exports[_0xd6d12f(0x2cb)]],[Q],[q],[x],[de],[exports[_0xd6d12f(0x15c)]]];a['registerDependencies'](this[_0xd6d12f(0x243)],a[_0xd6d12f(0x166)](_0x3b7843,(_0x540f99=this[_0xd6d12f(0x28c)])==null?void 0x0:_0x540f99['override']));}[_0x2a171b(0x100)](){const _0x2cb180=_0x2a171b;this[_0x2cb180(0x1a9)](this['_renderManagerService'][_0x2cb180(0xcd)](a[_0x2cb180(0x24a)]['UNIVER_DOC'],[Ie])),this['disposeWithMe'](this['_renderManagerService'][_0x2cb180(0xcd)](a[_0x2cb180(0x24a)][_0x2cb180(0x194)],[ve]));}[_0x2a171b(0x2bf)](){const _0x3399c4=_0x2a171b;a[_0x3399c4(0x90)](this['_injector'],[[x],[exports[_0x3399c4(0x2cb)]],[Q],[q],[exports[_0x3399c4(0x15c)]]]);}},Qt(exports[_0x2a171b(0x2b5)],_0x2a171b(0x27c),es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x2a171b(0xd0)](u[_0x2a171b(0x26b)]),he(0x1,p[_0x2a171b(0x15b)]),he(0x2,a[_0x2a171b(0xe4)](a[_0x2a171b(0x9a)])),he(0x3,a[_0x2a171b(0x199)])],exports[_0x2a171b(0x2b5)]);var ts=Object[_0x2a171b(0x24b)],ss=(_0x1c7597,_0x297d51,_0x345340,_0x372e3a)=>{for(var _0x14862e=_0x372e3a>0x1?void 0x0:_0x372e3a?ts(_0x297d51,_0x345340):_0x297d51,_0x2a53df=_0x1c7597['length']-0x1,_0x173c63;_0x2a53df>=0x0;_0x2a53df--)(_0x173c63=_0x1c7597[_0x2a53df])&&(_0x14862e=_0x173c63(_0x14862e)||_0x14862e);return _0x14862e;},F=(_0x10e744,_0x3fec57)=>(_0x25b2b0,_0x554d34)=>_0x3fec57(_0x25b2b0,_0x554d34,_0x10e744);exports[_0x2a171b(0x1dc)]=class extends u[_0x2a171b(0x102)]{constructor(_0x5aafe2,_0x8314dd,_0x130835,_0xd48d41,_0x292739){super(_0x5aafe2,_0x8314dd,_0x130835,_0xd48d41,_0x292739);}async[_0x2a171b(0x1b5)](_0x141487){const _0x6cc202=_0x2a171b,_0x17a974=await this[_0x6cc202(0x137)](),_0x58d0f3=this[_0x6cc202(0xf1)](_0x141487,_0x17a974);return this[_0x6cc202(0x224)](_0x58d0f3);}[_0x2a171b(0xf1)](_0x2c04c0,_0x161c7f){const _0xf6bf3=_0x2a171b,_0x6017d6=typeof window>'u'?new URL(_0x2c04c0):new URL(_0x2c04c0,window['location'][_0xf6bf3(0xaa)]);_0x6017d6[_0xf6bf3(0x78)][_0xf6bf3(0x6c)](_0xf6bf3(0x2bd),_0x161c7f);const _0x31e066=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xf6bf3(0x2db)][_0xf6bf3(0x2a4)]);return _0x31e066[_0xf6bf3(0x1cb)](_0xf6bf3(0x18c))&&_0x6017d6[_0xf6bf3(0x78)]['set'](_0xf6bf3(0x18c),_0x31e066[_0xf6bf3(0x1cb)](_0xf6bf3(0x18c))),_0x6017d6['toString']();}async['_getSessionTicket'](){const _0x52e2a2=_0x2a171b;var _0x544c0f,_0x3de263,_0x29a169;const _0x20d6df=this[_0x52e2a2(0x2d5)][_0x52e2a2(0xe1)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x1dd32d=(_0x544c0f=_0x20d6df==null?void 0x0:_0x20d6df['wsSessionTicketUrl'])!=null?_0x544c0f:u[_0x52e2a2(0x168)];return(_0x29a169=(_0x3de263=(await this[_0x52e2a2(0x1ed)][_0x52e2a2(0x1cb)](_0x1dd32d,{'headers':{'Content-Type':_0x52e2a2(0x111)}}))['body'])==null?void 0x0:_0x3de263['ticket'])!=null?_0x29a169:'';}},exports[_0x2a171b(0x1dc)]=ss([F(0x0,a[_0x2a171b(0xe4)](a['Injector'])),F(0x1,a['Inject'](G['HTTPService'])),F(0x2,a[_0x2a171b(0x199)]),F(0x3,a[_0x2a171b(0xab)]),F(0x4,m[_0x2a171b(0x130)])],exports[_0x2a171b(0x1dc)]);const Me=0x7530,Le=_0x2a171b(0x104);class is extends a['Disposable']{constructor(){const _0x6cddc4=_0x2a171b;super(),h(this,_0x6cddc4(0xfa),a[_0x6cddc4(0x17a)]()),h(this,'_selfUnitIDs',new Set()),h(this,_0x6cddc4(0x1c5),new Map()),h(this,_0x6cddc4(0x1f3),null),h(this,_0x6cddc4(0x2df),new Map()),h(this,_0x6cddc4(0x28b),new Map()),this[_0x6cddc4(0x240)]();}['dispose'](){const _0x3362c7=_0x2a171b;super[_0x3362c7(0x289)](),this['_clearOtherTimers'][_0x3362c7(0x2d7)]((_0x1c132e,_0x1b3776)=>this['_removeClearOtherTimer'](_0x1b3776)),this['_heartbeatTimer']&&window[_0x3362c7(0x8b)](this[_0x3362c7(0x1f3)]);}['getUnitStatus$'](_0x491bb8){const _0x5b5e32=_0x2a171b;return this[_0x5b5e32(0xd2)](_0x491bb8)['pipe'](d[_0x5b5e32(0xc5)]());}[_0x2a171b(0x19a)](_0x4ef8c0){const _0x49f220=_0x2a171b;this[_0x49f220(0x26a)][_0x49f220(0x23a)]===0x0&&this[_0x49f220(0x223)](),this[_0x49f220(0x26a)]['add'](_0x4ef8c0),this[_0x49f220(0xf5)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x4ef8c0],'isForwarded':!0x1});}[_0x2a171b(0x206)](_0x3756c5){const _0x59f9d2=_0x2a171b;this['_selfUnitIDs']['delete'](_0x3756c5),this[_0x59f9d2(0x26a)][_0x59f9d2(0x23a)]===0x0&&this[_0x59f9d2(0x1f3)]&&window[_0x59f9d2(0x8b)](this[_0x59f9d2(0x1f3)]);}[_0x2a171b(0x240)](){const _0xcc53f=_0x2a171b;this['disposeWithMe'](a[_0xcc53f(0x14e)](d[_0xcc53f(0x1ae)](window,'storage')['subscribe'](_0x578635=>{const _0x4f66ba=_0xcc53f;if(_0x578635[_0x4f66ba(0xba)]!==Le||!_0x578635[_0x4f66ba(0x120)])return;const _0x1208f4=JSON[_0x4f66ba(0x1f5)](_0x578635[_0x4f66ba(0x120)]);this[_0x4f66ba(0x1b4)](_0x1208f4);}))),window[_0xcc53f(0x12f)](_0xcc53f(0x1ef),()=>this[_0xcc53f(0xf5)]({'type':0x1,'memberID':this[_0xcc53f(0xfa)],'unitIDs':Array[_0xcc53f(0x29b)](this[_0xcc53f(0x26a)])}));}[_0x2a171b(0x1b4)](_0x4e9702){const _0x1eda05=_0x2a171b;switch(_0x4e9702[_0x1eda05(0x197)]){case 0x0:this[_0x1eda05(0x9d)](_0x4e9702);break;case 0x1:this[_0x1eda05(0x2d2)](_0x4e9702);break;case 0x2:this[_0x1eda05(0x238)](_0x4e9702);break;}}[_0x2a171b(0x9d)](_0x3aa513){const _0x252a01=_0x2a171b,{unitIDs:_0x55fa1d,memberID:_0x922d6e,isForwarded:_0x360a12}=_0x3aa513;_0x55fa1d[_0x252a01(0x2d7)](_0x118a81=>{const _0x267085=_0x252a01;if(!_0x360a12&&this[_0x267085(0x1c5)][_0x267085(0x96)](_0x118a81)&&this[_0x267085(0xd2)](_0x118a81)[_0x267085(0x1c6)](u[_0x267085(0xe8)][_0x267085(0x20c)]),!this[_0x267085(0x1c5)][_0x267085(0x96)](_0x118a81)||!this[_0x267085(0x1c5)][_0x267085(0x1cb)](_0x118a81)[_0x267085(0x96)](_0x922d6e)){const _0x443d01=this[_0x267085(0x1c5)][_0x267085(0x1cb)](_0x118a81)||new Set();_0x443d01['add'](_0x922d6e),this['_unitOnClients'][_0x267085(0x6c)](_0x118a81,_0x443d01),this['_scheduleClearOtherTimer'](_0x922d6e);}}),_0x360a12||this['_send']({'type':0x0,'memberID':this[_0x252a01(0xfa)],'unitIDs':[...this[_0x252a01(0x26a)]],'isForwarded':!0x0});}[_0x2a171b(0x69)](_0x30daa2){const _0x3282aa=_0x2a171b;this['_removeClearOtherTimer'](_0x30daa2);const _0x42a7eb=window['setTimeout'](()=>{const _0x5e8890=_0x267b;this['_unitOnClients'][_0x5e8890(0x2d7)](_0x14f21c=>{_0x14f21c['delete'](_0x30daa2);});},Me*0x2);this[_0x3282aa(0x2df)]['set'](_0x30daa2,_0x42a7eb);}[_0x2a171b(0x15d)](_0x524f78){const _0x5c1ee7=_0x2a171b;if(this[_0x5c1ee7(0x2df)][_0x5c1ee7(0x96)](_0x524f78)){const _0xaa1610=this[_0x5c1ee7(0x2df)]['get'](_0x524f78);_0xaa1610&&window[_0x5c1ee7(0x287)](_0xaa1610),this[_0x5c1ee7(0x2df)][_0x5c1ee7(0x6c)](_0x524f78,null);}}[_0x2a171b(0x2d2)](_0x4c5694){const _0x543380=_0x2a171b,{memberID:_0x24bc61,unitIDs:_0x522dd7}=_0x4c5694;_0x522dd7[_0x543380(0x2d7)](_0x3ea0ad=>{const _0x1abbd6=_0x543380;var _0x589d5d;const _0x40e3c4=this[_0x1abbd6(0x1c5)][_0x1abbd6(0x1cb)](_0x3ea0ad);_0x40e3c4&&(_0x40e3c4[_0x1abbd6(0x244)](_0x24bc61),(_0x589d5d=this[_0x1abbd6(0xd2)](_0x3ea0ad))==null||_0x589d5d[_0x1abbd6(0x1c6)](_0x40e3c4[_0x1abbd6(0x23a)]===0x0?u[_0x1abbd6(0xe8)]['NO_OTHER_CLIENTS_EDITING']:u[_0x1abbd6(0xe8)][_0x1abbd6(0x20c)]));}),this[_0x543380(0x15d)](_0x24bc61);}['_handleHeartbeatEvent'](_0x538cdf){const _0x4c5adf=_0x2a171b;this[_0x4c5adf(0x69)](_0x538cdf[_0x4c5adf(0x253)]);}[_0x2a171b(0xf5)](_0x475461){const _0x3bf703=_0x2a171b;localStorage['setItem'](Le,JSON[_0x3bf703(0x159)](_0x475461));}['_scheduleHeartbeat'](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x456ae6=_0x267b;this[_0x456ae6(0xf5)]({'type':0x2,'memberID':this['_id']});},Me);}[_0x2a171b(0xd2)](_0x4a3ebf){const _0x554087=_0x2a171b;return this[_0x554087(0x28b)][_0x554087(0x96)](_0x4a3ebf)||this['_unitStatus'][_0x554087(0x6c)](_0x4a3ebf,new d[(_0x554087(0x237))](u[_0x554087(0xe8)][_0x554087(0x147)])),this['_unitStatus'][_0x554087(0x1cb)](_0x4a3ebf);}}var Be=(_0x5990d2=>(_0x5990d2[_0x5990d2[_0x2a171b(0xa5)]=0x0]=_0x2a171b(0xa5),_0x5990d2[_0x5990d2['OK']=0x1]='OK',_0x5990d2[_0x5990d2[_0x2a171b(0x247)]=0x2]='INTERNAL_ERROR',_0x5990d2[_0x5990d2[_0x2a171b(0xd6)]=0x3]=_0x2a171b(0xd6),_0x5990d2[_0x5990d2[_0x2a171b(0x1ce)]=0x4]=_0x2a171b(0x1ce),_0x5990d2[_0x5990d2[_0x2a171b(0x9e)]=0x5]=_0x2a171b(0x9e),_0x5990d2[_0x5990d2[_0x2a171b(0x1d8)]=0x6]=_0x2a171b(0x1d8),_0x5990d2[_0x5990d2['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x5990d2[_0x5990d2[_0x2a171b(0x2a0)]=0x8]=_0x2a171b(0x2a0),_0x5990d2[_0x5990d2[_0x2a171b(0xad)]=0x9]='COMPLETION_FINISHED',_0x5990d2[_0x5990d2[_0x2a171b(0x1a7)]=0xa]=_0x2a171b(0x1a7),_0x5990d2[_0x5990d2[_0x2a171b(0xaf)]=0x1389]=_0x2a171b(0xaf),_0x5990d2[_0x5990d2[_0x2a171b(0x85)]=0x1771]=_0x2a171b(0x85),_0x5990d2[_0x5990d2['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5990d2[_0x5990d2[_0x2a171b(0x1b2)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x5990d2[_0x5990d2[_0x2a171b(0x2b7)]=0x1b59]=_0x2a171b(0x2b7),_0x5990d2[_0x5990d2[_0x2a171b(0x1c1)]=0x1b5a]=_0x2a171b(0x1c1),_0x5990d2[_0x5990d2[_0x2a171b(0x180)]=0x1b5b]=_0x2a171b(0x180),_0x5990d2[_0x5990d2['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x5990d2[_0x5990d2[_0x2a171b(0x164)]=0x1b5d]=_0x2a171b(0x164),_0x5990d2[_0x5990d2[_0x2a171b(0x13a)]=0x1f41]=_0x2a171b(0x13a),_0x5990d2[_0x5990d2[_0x2a171b(0x295)]=0x2329]=_0x2a171b(0x295),_0x5990d2[_0x5990d2[_0x2a171b(0x248)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x5990d2[_0x5990d2['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5990d2[_0x5990d2[_0x2a171b(0x99)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x5990d2[_0x5990d2[_0x2a171b(0xac)]=0x232d]=_0x2a171b(0xac),_0x5990d2[_0x5990d2[_0x2a171b(0x17e)]=0x2711]=_0x2a171b(0x17e),_0x5990d2[_0x5990d2['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x2a171b(0x77),_0x5990d2[_0x5990d2[_0x2a171b(0x2c9)]=0x2713]=_0x2a171b(0x2c9),_0x5990d2[_0x5990d2[_0x2a171b(0xd9)]=0x2714]=_0x2a171b(0xd9),_0x5990d2[_0x5990d2[_0x2a171b(0x2e5)]=0x271a]=_0x2a171b(0x2e5),_0x5990d2[_0x5990d2['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x2a171b(0x2be),_0x5990d2[_0x5990d2[_0x2a171b(0xbc)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x5990d2[_0x5990d2[_0x2a171b(0x215)]=0x271d]=_0x2a171b(0x215),_0x5990d2[_0x5990d2[_0x2a171b(0x97)]=0x271e]=_0x2a171b(0x97),_0x5990d2[_0x5990d2[_0x2a171b(0x2e4)]=0x271f]=_0x2a171b(0x2e4),_0x5990d2[_0x5990d2['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x5990d2[_0x5990d2[_0x2a171b(0x86)]=0x2ee1]=_0x2a171b(0x86),_0x5990d2[_0x5990d2['INVALID_INVITE_CODE']=0x2ee2]=_0x2a171b(0x280),_0x5990d2[_0x5990d2[_0x2a171b(0x7d)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x5990d2[_0x5990d2['USER_NOT_INVITED_CODE']=0x2ee4]=_0x2a171b(0x234),_0x5990d2[_0x5990d2['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x2a171b(0x1d9),_0x5990d2[_0x5990d2[_0x2a171b(0x259)]=0x32c9]=_0x2a171b(0x259),_0x5990d2[_0x5990d2[_0x2a171b(0x2cf)]=0x32ca]=_0x2a171b(0x2cf),_0x5990d2[_0x5990d2[_0x2a171b(0x276)]=0x32cb]=_0x2a171b(0x276),_0x5990d2[_0x5990d2['UNRECOGNIZED']=-0x1]=_0x2a171b(0x106),_0x5990d2))(Be||{}),ns=Object[_0x2a171b(0x24b)],rs=(_0x1d1ea7,_0x637323,_0x2a11af,_0x523a7b)=>{const _0x244f3f=_0x2a171b;for(var _0x3639e5=_0x523a7b>0x1?void 0x0:_0x523a7b?ns(_0x637323,_0x2a11af):_0x637323,_0x2a2a0b=_0x1d1ea7[_0x244f3f(0x71)]-0x1,_0x39492a;_0x2a2a0b>=0x0;_0x2a2a0b--)(_0x39492a=_0x1d1ea7[_0x2a2a0b])&&(_0x3639e5=_0x39492a(_0x3639e5)||_0x3639e5);return _0x3639e5;},ue=(_0x413bf2,_0x39e77e)=>(_0x52772a,_0x2a1355)=>_0x39e77e(_0x52772a,_0x2a1355,_0x413bf2);exports[_0x2a171b(0x274)]=class extends a[_0x2a171b(0x24f)]{constructor(_0x4996ef,_0x28269e,_0x555462){const _0x333611=_0x2a171b;super(),this[_0x333611(0xcb)]=_0x4996ef,this[_0x333611(0x1ed)]=_0x28269e,this[_0x333611(0x2d5)]=_0x555462;}async['runOnServer'](_0x13855d,_0xf525a4,_0xaf48ea,..._0x135ef2){const _0x3e8a6b=_0x2a171b;var _0x1dc4aa,_0xcff2f3,_0x2d7f19,_0x37028f;const _0x10db53=this[_0x3e8a6b(0xcb)][_0x3e8a6b(0x20a)]();if(!_0x10db53)throw new Error(_0x3e8a6b(0x27f));const _0x20c123=((_0x1dc4aa=this[_0x3e8a6b(0x2d5)][_0x3e8a6b(0xe1)](u[_0x3e8a6b(0xdb)]))!=null?_0x1dc4aa:u[_0x3e8a6b(0x1fd)])+'/'+_0x13855d+_0x3e8a6b(0x294)+_0xf525a4,_0x368c2e=new URL(window[_0x3e8a6b(0x2db)][_0x3e8a6b(0x24d)]),_0x13164f={'scriptId':_0x13855d,'runId':(_0xcff2f3=_0x368c2e['searchParams'][_0x3e8a6b(0x1cb)](_0x3e8a6b(0x18c)))!=null?_0xcff2f3:'','function':_0xf525a4,'unitId':_0x10db53[_0x3e8a6b(0x2a7)](),'argsOfFunction':JSON[_0x3e8a6b(0x159)](_0x135ef2),'invokeId':(_0x2d7f19=_0xaf48ea[_0x3e8a6b(0x125)])!=null?_0x2d7f19:'','executionId':(_0x37028f=_0xaf48ea['executionId'])!=null?_0x37028f:''};try{const _0x5613d1=await this[_0x3e8a6b(0x1ed)]['post'](_0x20c123,{'body':_0x13164f});return _0x5613d1[_0x3e8a6b(0xdd)][_0x3e8a6b(0xa3)]&&_0x5613d1[_0x3e8a6b(0xdd)][_0x3e8a6b(0xa3)][_0x3e8a6b(0x193)]!==Be['OK']?_0x3e8a6b(0x2dc):_0x5613d1[_0x3e8a6b(0xdd)]['result'];}catch{return'Failed';}}},exports['RemoteUniscriptService']=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a['Inject'](G[_0x2a171b(0x2c7)])),ue(0x2,a[_0x2a171b(0x199)])],exports[_0x2a171b(0x274)]),exports[_0x2a171b(0x7f)]=xe,exports[_0x2a171b(0x121)]=be,exports[_0x2a171b(0x1b9)]=Pe,exports['WebBrowserSingleActiveUnitService']=is,exports['WebURLService']=je;
|
|
1
|
+
'use strict';const _0x1484f9=_0x1dbb;(function(_0x52e0ea,_0x1aaf8d){const _0x47c9ed=_0x1dbb,_0x103cb3=_0x52e0ea();while(!![]){try{const _0x22b3d4=-parseInt(_0x47c9ed(0x1bf))/0x1*(parseInt(_0x47c9ed(0x266))/0x2)+-parseInt(_0x47c9ed(0x1da))/0x3+parseInt(_0x47c9ed(0x1c4))/0x4*(parseInt(_0x47c9ed(0x100))/0x5)+-parseInt(_0x47c9ed(0x91))/0x6+parseInt(_0x47c9ed(0x2c1))/0x7+parseInt(_0x47c9ed(0x77))/0x8+parseInt(_0x47c9ed(0x20f))/0x9*(parseInt(_0x47c9ed(0x1a7))/0xa);if(_0x22b3d4===_0x1aaf8d)break;else _0x103cb3['push'](_0x103cb3['shift']());}catch(_0x4f8571){_0x103cb3['push'](_0x103cb3['shift']());}}}(_0x2259,0xbef53));var Ve=Object[_0x1484f9(0x209)],Xe=(_0x320628,_0x289e6e,_0x29597e)=>_0x289e6e in _0x320628?Ve(_0x320628,_0x289e6e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29597e}):_0x320628[_0x289e6e]=_0x29597e,h=(_0x147117,_0x26f3f4,_0xd9f336)=>Xe(_0x147117,typeof _0x26f3f4!=_0x1484f9(0x1e7)?_0x26f3f4+'':_0x26f3f4,_0xd9f336);Object[_0x1484f9(0x209)](exports,Symbol[_0x1484f9(0x2d0)],{'value':_0x1484f9(0x27f)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x1484f9(0x7e)),p=require(_0x1484f9(0xbd)),G=require(_0x1484f9(0x143)),b=require(_0x1484f9(0x2ac)),Ge=require(_0x1484f9(0x14d)),d=require('rxjs'),Y=require(_0x1484f9(0x1ea)),m=require(_0x1484f9(0x1bd)),Ee=require(_0x1484f9(0x15e)),g=require(_0x1484f9(0x285)),$=require(_0x1484f9(0x25c)),X=require('@univerjs/sheets-ui'),w=require('react/jsx-runtime'),T=require(_0x1484f9(0x261)),D=require(_0x1484f9(0x1b7)),M=require(_0x1484f9(0x24d)),Ke=require(_0x1484f9(0xb9));var qe=Object[_0x1484f9(0x21b)],ze=(_0x5750ad,_0x29785d,_0x358bde,_0x9d206a)=>{for(var _0x510e85=_0x9d206a>0x1?void 0x0:_0x9d206a?qe(_0x29785d,_0x358bde):_0x29785d,_0xccefc9=_0x5750ad['length']-0x1,_0x1e919d;_0xccefc9>=0x0;_0xccefc9--)(_0x1e919d=_0x5750ad[_0xccefc9])&&(_0x510e85=_0x1e919d(_0x510e85)||_0x510e85);return _0x510e85;},Te=(_0x1c6cca,_0x4ec0e2)=>(_0x24f0a6,_0xd6cc97)=>_0x4ec0e2(_0x24f0a6,_0xd6cc97,_0x1c6cca);let de=class extends a[_0x1484f9(0x1fc)]{constructor(_0x1c7dfe,_0x2fff05){const _0x16b6f5=_0x1484f9;super(),this[_0x16b6f5(0xb5)]=_0x1c7dfe,this[_0x16b6f5(0x145)]=_0x2fff05,this[_0x16b6f5(0x1df)]();}['_init'](){const _0x1cfd68=_0x1484f9,_0x361cd5=this;this[_0x1cfd68(0x161)](this[_0x1cfd68(0xb5)][_0x1cfd68(0x194)]({'onBeforePasteImage':async _0x3e5c0c=>{const _0x562ad2=_0x1cfd68,_0x578379=await _0x361cd5[_0x562ad2(0x145)][_0x562ad2(0x200)](_0x3e5c0c);return _0x578379?{'source':_0x578379[_0x562ad2(0x20b)],'imageSourceType':_0x578379['imageSourceType']}:null;}}));}};de=ze([Te(0x0,b[_0x1484f9(0x1fd)]),Te(0x1,Ge['IImageIoService'])],de);const Oe=[_0x1484f9(0x29b),'jiqing.500',_0x1484f9(0x1e6),'red.300',_0x1484f9(0x2ab),_0x1484f9(0x184)];class me extends a[_0x1484f9(0x293)]{constructor(){const _0x43e2a4=_0x1484f9;super(...arguments),h(this,_0x43e2a4(0x283),new Map()),h(this,_0x43e2a4(0x2a4),0x0);}['assignAColorForMemberID'](_0x1485d3){const _0x1241b3=_0x1484f9;if(this[_0x1241b3(0x283)][_0x1241b3(0x17c)](_0x1485d3))return this[_0x1241b3(0x283)]['get'](_0x1485d3);const _0x51d716=Oe[this[_0x1241b3(0x2a4)]];return this[_0x1241b3(0x2a4)]=(this[_0x1241b3(0x2a4)]+0x1)%Oe[_0x1241b3(0x1fe)],this[_0x1241b3(0x283)][_0x1241b3(0x2df)](_0x1485d3,_0x51d716),_0x51d716;}}function we(_0x3d01ee){const _0x3e8bee=_0x1484f9;let _0x491cec='';for(const _0x4195fa of _0x3d01ee){const {startOffset:_0x44063d,endOffset:_0x39c055,isActive:_0x1dbfac,rangeType:_0x12ab69,segmentId:_0x3da0e6,segmentPage:_0x393120}=_0x4195fa;_0x491cec[_0x3e8bee(0x1fe)]&&(_0x491cec+=','),_0x491cec+=_0x44063d+':'+_0x39c055+':'+(_0x1dbfac?'1':'0')+':'+_0x12ab69+':'+_0x3da0e6+':'+_0x393120;}return _0x491cec;}function _0x2259(){const _0x3c412c=['handleMoveRange','permission.title','UniverCollaborationClientUIPlugin','dispose','currentColor','addClipboardHook','rgba(255,\x20255,\x20255,\x200.01)','resize','sessionStatus$','shareReplay','0\x200\x2016\x2016','Workbook','forEach','roomMembers','_docSkeleton','LOCAL_CACHE_INTERVAL','filter','JOIN_ROOM_FAILED','IUniverInstanceService','round','_localStorageService','_render','call','on-line-icon_clip0_910_349','7110WJFEVi','UniverIcon','MoveRangeCommandId','then','_getAnchorBounding','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_selfUnitIDs','WebSocketService','ICommandService','find','height','backgroundColor','_updateCollabCursors','FromArray','clearTimeout','body','@univerjs/design','evenodd','type','assignAColorForMemberID','UNIVER_SHEET','isActive','@univerjs-pro/collaboration','ITransformService','37433JzUiEx','IRemoteInstanceService','asObservable','OnLineIcon','div','152zQvxvi','onRendered','_config','_initStatusComponent','ILogService','_handleHeartbeatEvent','_toggleOffline','CONNECTOR_DATA_TOO_LARGE','fromEvent','roomMembers$','hasOwnProperty','fillRule','handleInsertRangeMoveRight','FETCH_MISS','fill','fillText','transformMutationsWithChangeset','createInstance','MemberService','clearInterval','show','onMouseMove','125985KjFpgA','handleInsertRow','getSheetBySheetId','_instanceService','dispose$','_init','univer-flex\x20univer-items-center','setParam','setTimeout','HEADER_MENU','_handleJoinEvent','getSheetId','green.600','symbol','displayName','onStarting','@univerjs/docs','Failed','SUBMIT_CHANGESET_TIMEOUT','search','makeDirty','unshift','#FFF','getParam','use','_httpService','touchDependencies','subunit','closePath','runOnServer','getDocRanges','collabStatus.offline','SetWorksheetActivateCommand','debounceTime','RxDisposable','IDocClipboardService','length','WebURLService','saveImage','debug','_saveCache','_collaborationController','LOGIN_FAILED','_transformUndoRedoStack','_setupSubUnitSync','toDisposable','InsertRangeMoveDownCommandId','defineProperty','_getMergeRange','source','_textBubble','split','switchMap','288iYUATO','toString','values','propertyIsEnumerable','_range','0\x200\x2017\x2016','startsWith','CHANGESET_REVISION_CONFILICT','triggerDblclick','_entities','white','TEXT','getOwnPropertyDescriptor','collab-rect-range-','BehaviorSubject','UNRECOGNIZED','requireSession','addHandlerCallback','_refRangeService','_handleEvent','_eventUnsubscribe','path','replaceDocRanges','createIdentifier','endRow','mergeOverrideWithDependencies','onTransformChange$','YUUMI_URL_COL_OUT_OF_RANGE','_startDocCollabCursor','handleInsertRangeMoveDown','apply','unitID','executeCommand','clipPath','MOBILE_HAS_BEEN_BOUND','CONFLICT','OFFLINE','transformByState','url(#off-line-icon_clip0_910_343)','transformStateCache','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','map','_updateSubUnitFromURLParams','collaboration.closeRoom','unsubscribe','ONLINE','max','TEXT_RANGE_LAYER_INDEX','push','getCollabEntity$','m1Prime','get','getColor','getConfig','_configService','syncEditingCollabCursor','getTypeOfUnitDisposed$','RegularPolygon','eventID','_backgroundColor','override','some','react','createElement','_clearOtherTimers','replaceState','ILocalStorageService','Inject','RefRangeService','EffectRefRangId','COLORS','exhaustSavingTask','http://www.w3.org/2000/svg','colorChannel1','selection','RemoveRowCommandId','_dataLoaderService','rxjs/operators','_commandService','session.collaboration-timeout','Tools','permission.content','@univerjs/ui','_handleLeaveEvent','LICENSE_DISTRO_REJECTED','_removeClearOtherTimer','onCommandExecuted','44xDwFhR','findNodePositionByCharIndex','useObservable','disposeUnit','text','_name','prototype','_startSheetCollabCursor','_docStateChangeManagerService','CollaborationSessionService','idSuffix','_onRefRangeChange','random','getTypeOfUnitAdded$','deepClone','isTransformMutationsWithChangesetSuccess','_labelPosition','current','xlink:href','getValue','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getUndoRedoMutationParamsCache','setStateCache','_drawRectRange','_anchor','Module','WebBrowserSingleActiveUnitService','unload','registerRefRange','_assignedColors','IUIPartsService','@univerjs/sheets','_localeService','application/json','_initEntityListener','registerRenderModule','ColorKit','_getScale','getRenderById','_localCacheService','redoState','_notificationService','href','jsxs','_color','Disposable','hide','collabStatus.syncing','_draw','_injector','result','UPDATE_CURSOR','LICENSE_EXPORT_SIZE_EXCEEDED','purple.300','_cursors','origin','_scene','getMergeData','_docTransformStateCacheService','transformRemoteChangeset','DocIMEInputManagerService','_themeService','_colorIndex','BuiltInUIPart','doc.mutation.rich-text-editing','getSkeleton','_collabSessionService','_document','attrs','blue.400','@univerjs/docs-ui','defIds','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','getCoordByCell','color','fromEventSubject','ISocketService','black','DisposableCollection','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','urlChange$','collabStatus.synced','getColorFromTheme','AWAITING_WITH_PENDING','_toggleOnline','setItem','jsx','removeParam','PY_RUNTIME_SCRIPT_ERROR','session.connection-failed','string','3699353BUgJaL','isArray','disableLocalCache','univer-mr-2\x20univer-flex\x20univer-text-xl','UniverInstanceType','RevisionService','trim','EMAIL_HAS_BEEN_BOUND','_beforeCloseService','_createSocketURL','collabStatus.conflict','InsertColCommandId','CLOSE_ROOM','_disabled','loadOfflineData','toStringTag','subscribe','contains','CollaborationSocketService','Unknown\x20user','SOCKET_FAILED','UnitStatus','pluginName','YUUMI_AI_RUN_FAILED','getViewport','location','createSocket','_unitStatus','top','_cursor','set','addObjects','history','VIEW_MAIN','currentSkeleton$','YUUMI_UNABLE_LOAD_URL','assign','cursorInfo','_docTransformIMECacheService','YUUMI_NO_CUBOID_FOR_QUESTION','SheetCollabCursorShape','COMPLETION_FINISHED','MessageType','subscribeEvent','mask','_entityInit$','pushState','bottom','IMessageService','_heartbeatTimer','code','event$','NodePositionConvertToRectRange','beginPath','YUUMI_ASYNCIO_CANCELLED','_uiPartsService','getCellPositionByOffset','RichTextEditingMutation','cursorInfo$','unit','data','defs','setActiveRange','...','measureText','_getSheetObject','from','8560264cErpRt','fillStyle','getAncestorScale','registerDependencies','INVITE_CODE_ALREADY_BOUND','APPLY_REJECT','engine','@univerjs/core','unitId','delete','size','parse','_univerInstanceService','DeleteRangeMoveUpCommandId','getCurrent','AWAITING','handleDeleteRangeMoveUp','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','range','stringify','SOCKET_FAILED_RETRY','focused$','getOwnPropertySymbols','_updateLocalCursor','DataLoaderService','getCurrentUnitForType','7618560ohlbNk','merge','_setupBeforeClosingHandler','init','Optional','SetDocZoomRatioOperation','url(#$1','transformSelections','indexOf','_docSkeletonManagerService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','skeleton','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getOffsetConfig','YUUMI_RATE_OVER_LIMIT','error','useCallback','textRanges','collaboration.single-unit.warning','Injector','_hideTimer','LICENSE_MAX_UNITS_EXCEEDED','add','_removeCollabCursors','isTransformMutationFailure','distinctUntilChanged','CollaborationUIEventId','CollaborationStatus','transformMutation','_cursorInfo$','sessionTicket','function','_doCreateSocket','SetTextSelectionsOperation','width','name','_docClipboardService','getActiveSheet','memberID','drawWith','@univerjs/rpc','transformIMECache','takeUntil','InsertRangeMoveRightCommandId','@univerjs/engine-render','UNAUTHENTICATED','addEventListener','updateOfflineData','getStateCache','_docTransformSelectionsService','useDependency','_anchorDot','getCollabCursors$','INVITE_CODE_REQUIRED','sheetId','IBeforeCloseService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getRangePointData','key','ALREADY_EXISTS','_updateURLWithCurrentState','_messageService','collabCursorState$','complete','getCurrentSelections','getMember','getSheetObject','popstate','_onCursorUpdate','entries','min','_sheetSkeletonManagerService','_transformService','collab-text-anchor-','Error','DesktopCollaborationStatusDisplayController','clsx','onPointerEnter$','_roomMembers$','_registerDependencies','_initEvent','_initCommandExecutedListener','_handleHover','INVALID_ARGUMENT','_unitOnClients','pipe','collabStatus.fetchMiss','_collaborationUIEventService','collab-text-range-','setInterval','M0\x200H16V16H0z','RemoteUniscriptService','BrowserCollaborationSocketService','_drawTextRange','generateRandomId','addObject','1em','send','_memberService','IURLService','_docSyncEditingCollabCursorService','saveTaskMap','className','_saveTaskMap','ranges','_hovered','setShapeProps','Vector2','_collabCursorController','NodePositionConvertToCursor','_getSessionTicket','170550obIuUM','APPLY_DUPLICATED','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','PERMISSION_DENIED','enableLocalCache','onPointerMove$','LICENSE_IMPORT_SIZE_EXCEEDED','replace','_status$','includes','currentTheme$','getLocalCacheKey','_scheduleSaving','tag','throttleTime','NO_OTHER_CLIENTS_EDITING','RECT','_renderManagerService','IRenderManagerService','_refreshCollabCursors','lineTo','combineLatest','extend','PENDING','RemoveColCommandId','_ensureSubject','_initDependencies','concat','with','DocStateChangeManagerService','UNIVER_DOC','on-line-icon','YUUMI_ALL_TABLES_IS_INVALID','UniverCollaborationClientPlugin','font','_collabCursorState$','status$','subUnitId','INVITE_CODE_HAS_BEEN_UES','arc','Rect','_revisionService','_onCursorDelete','registerBeforeClose','all','NOT_FOUND','docStateChange$','serializeRangeWithSheet','_context','TOO_MANY_REQUESTS','off-line-icon_clip0_910_343','USERS_LEAVE','startColumn','toRgbString','m2Prime','APPLY_REVISION_CONFILICT','IConfigService','_shapes','getFocusedUnit','substring','SNAPSHOT_INVALID_SNAPSHOT','NOT_COLLAB','getUnitStatus$','INVALID_INVITE_CODE','selections','INTERNAL_ERROR','_urlService','@univerjs/network','UNDEFINED','_imageIoService','undoState','SHEET_VIEWPORT_KEY','setAlpha','isEditing','activeSheet$','_scheduleClearOtherTimer','children','@univerjs/drawing','[CollaborationDataLoaderController]','off-line-icon','_logService','mutations','column','icon','_id','runId','save','DOC_RANGE_TYPE','_getSaveTimeout','_syncEditingCollabCursorService','row','CollaborationEvent','handleInsertCol','_initStatusListener','@univerjs/engine-formula','translate(.97)','_send','disposeWithMe','restore','searchParams','forwardRef','getItem','getActiveRange','Warning','_session','ILocalCacheService','HTTPService','next','APPLY_PERMISSION_DENIED','_cursorShapes','APPLY_NON_SEQUENTIAL_REVISION','getMemberID','getUnitId','CollaborationDataLoaderController','params','ENSURE_SNAPSHOT_EXECUTION','_hover','_online','startRow','univerjs-icon\x20univerjs-icon-','debounce','SheetSkeletonManagerService','getUnhiddenWorksheets','_drawAnchor','has','SNAPSHOT_HAS_BEEN_REMOVED','_colorAssignService','USER_NOT_INVITED_CODE','ThemeService','storage','registerComponent','getCurrentRevOfUnit','yellow.400','Shape','moveTo','YUUMI_SUBSCRIPTION_NOT_FOUND','onLocalMutation','_lastPointer','svg','ticket','SessionStatus','OTHER_CLIENT_EDITING','LocaleService'];_0x2259=function(){return _0x3c412c;};return _0x2259();}function Je(_0x2cde39){const _0x1ceb2b=_0x1484f9,_0x23e0f6=_0x2cde39[_0x1ceb2b(0x20d)](','),_0x487fc4=[];for(const _0x476f56 of _0x23e0f6){const [_0x40d125,_0x54bc85,_0x45861d,_0x104b13,_0xa48bdd,_0x581aef]=_0x476f56[_0x1ceb2b(0x20d)](':');_0x487fc4[_0x1ceb2b(0x23f)]({'startOffset':Number(_0x40d125),'endOffset':Number(_0x54bc85),'collapsed':_0x40d125===_0x54bc85,'isActive':_0x45861d==='1','rangeType':_0x104b13===a[_0x1ceb2b(0x157)][_0x1ceb2b(0x21a)]?a['DOC_RANGE_TYPE'][_0x1ceb2b(0x21a)]:a[_0x1ceb2b(0x157)]['RECT'],'segmentId':typeof _0xa48bdd==_0x1ceb2b(0x2c0)?String(_0xa48bdd):'','segmentPage':Number(_0x581aef!=null?_0x581aef:-0x1)});}return _0x487fc4[_0x1ceb2b(0x24c)](_0x4ea0cb=>_0x4ea0cb[_0x1ceb2b(0x1bc)])||(_0x487fc4[0x0]['isActive']=!0x0),_0x487fc4;}class Ce extends a['RxDisposable']{constructor(){const _0x262acd=_0x1484f9;super(...arguments),h(this,_0x262acd(0x123),new d[(_0x262acd(0x21d))](null)),h(this,_0x262acd(0xcf),this[_0x262acd(0x123)][_0x262acd(0x1c1)]());}[_0x1484f9(0x246)](_0x4abd1f){const _0x106cc9=_0x1484f9,{unitID:_0x5c0130,memberID:_0x2d4ea3,textRanges:_0x49df0f}=_0x4abd1f,_0x4ceb6d=we(_0x49df0f);if(_0x4ceb6d==='')return;const _0x585976={'unitID':_0x5c0130,'memberID':_0x2d4ea3,'selection':_0x4ceb6d};this[_0x106cc9(0x123)]['next'](_0x585976);}}var Ze=Object[_0x1484f9(0x21b)],Qe=(_0x5092b5,_0xceed54,_0x4ac3f3,_0x3aca36)=>{const _0xa417d=_0x1484f9;for(var _0x78acbe=_0x3aca36>0x1?void 0x0:_0x3aca36?Ze(_0xceed54,_0x4ac3f3):_0xceed54,_0x3c6b2f=_0x5092b5[_0xa417d(0x1fe)]-0x1,_0xbc13ee;_0x3c6b2f>=0x0;_0x3c6b2f--)(_0xbc13ee=_0x5092b5[_0x3c6b2f])&&(_0x78acbe=_0xbc13ee(_0x78acbe)||_0x78acbe);return _0x78acbe;},L=(_0x4039ef,_0x12b234)=>(_0x507684,_0x3571d1)=>_0x12b234(_0x507684,_0x3571d1,_0x4039ef);const et=0x12c,tt=0x64;let fe=class extends a[_0x1484f9(0x1fc)]{constructor(_0x3cfa97,_0x53deef,_0x356172,_0x25981f,_0x42bee0,_0x2beb41,_0x4b8860,_0x22bb3f,_0x177377){const _0x53f9c6=_0x1484f9;super(),h(this,_0x53f9c6(0x175),!0x1),h(this,_0x53f9c6(0x1df),!0x1),h(this,_0x53f9c6(0xae),new d[(_0x53f9c6(0x21d))](new Map())),h(this,_0x53f9c6(0x6e),this[_0x53f9c6(0xae)][_0x53f9c6(0x1c1)]()),h(this,_0x53f9c6(0xdf),new d[(_0x53f9c6(0x21d))]([])),h(this,_0x53f9c6(0x1cd),this[_0x53f9c6(0xdf)][_0x53f9c6(0xe6)](d[_0x53f9c6(0x1fb)](et))),h(this,'_updateLocalCursor',a[_0x53f9c6(0x178)](_0x217d31=>{const _0x1b4a07=_0x53f9c6,_0x122fea={'eventID':m[_0x1b4a07(0x15b)][_0x1b4a07(0x299)],'data':{'unitID':this[_0x1b4a07(0x22e)],'memberID':this[_0x1b4a07(0x168)][_0x1b4a07(0x16f)](),'selection':we(_0x217d31)}};this['_session'][_0x1b4a07(0xf2)](_0x122fea,this[_0x1b4a07(0x22e)]);},tt)),(this[_0x53f9c6(0x22e)]=_0x3cfa97,this[_0x53f9c6(0x168)]=_0x53deef,this[_0x53f9c6(0x297)]=_0x356172,this['_colorAssignService']=_0x25981f,this['_memberService']=_0x42bee0,this[_0x53f9c6(0x159)]=_0x2beb41,this['_transformService']=_0x4b8860,this[_0x53f9c6(0x83)]=_0x22bb3f,this[_0x53f9c6(0x25d)]=_0x177377);}get[_0x1484f9(0x2e6)](){const _0x67aaf9=_0x1484f9;return this[_0x67aaf9(0xae)]['getValue']();}get['roomMembers'](){const _0x3ac988=_0x1484f9;return this[_0x3ac988(0xdf)][_0x3ac988(0x279)]();}[_0x1484f9(0x192)](){const _0x5d97ec=_0x1484f9;super['dispose'](),this[_0x5d97ec(0xae)][_0x5d97ec(0x16b)](new Map()),this['_cursorInfo$'][_0x5d97ec(0xd0)](),this[_0x5d97ec(0xdf)][_0x5d97ec(0x16b)]([]),this[_0x5d97ec(0xdf)][_0x5d97ec(0xd0)]();}[_0x1484f9(0x94)](){const _0x48f4af=_0x1484f9;this['_init']||(this[_0x48f4af(0x1df)]=!0x0,this['_session'][_0x48f4af(0x197)]['pipe'](d[_0x48f4af(0xbb)](this['dispose$']))[_0x48f4af(0x2d1)](_0x580f5e=>{const _0x47da03=_0x48f4af;_0x580f5e===u[_0x47da03(0x18c)][_0x47da03(0x23c)]?this[_0x47da03(0x2ba)]():this['_toggleOffline']();}),this[_0x48f4af(0x168)][_0x48f4af(0x67)]['pipe'](d[_0x48f4af(0xbb)](this['dispose$']))['subscribe'](_0x2582f6=>{const _0x526127=_0x48f4af,_0x574f6e=_0x2582f6[_0x526127(0x249)];_0x574f6e===m[_0x526127(0x15b)][_0x526127(0x299)]&&this[_0x526127(0xd5)](_0x2582f6),_0x574f6e===m['CollaborationEvent'][_0x526127(0x133)]&&this[_0x526127(0x12a)](_0x2582f6);}),this[_0x48f4af(0x161)](this[_0x48f4af(0x25d)][_0x48f4af(0x265)](_0x1a8630=>{const _0x2f2fc4=_0x48f4af,_0x241d3c=_0x1a8630[_0x2f2fc4(0x172)];_0x241d3c!=null&&this['_online']&&_0x1a8630['id']===Y[_0x2f2fc4(0xb2)]['id']&&_0x241d3c[_0x2f2fc4(0x7f)]===this[_0x2f2fc4(0x22e)]&&_0x241d3c[_0x2f2fc4(0x149)]===!0x1&&_0x241d3c[_0x2f2fc4(0xf9)]['length']>0x0&&this[_0x2f2fc4(0x8e)](_0x241d3c[_0x2f2fc4(0xf9)]);})),this[_0x48f4af(0x159)][_0x48f4af(0xcf)][_0x48f4af(0xe6)](d['takeUntil'](this[_0x48f4af(0x1de)]))[_0x48f4af(0x2d1)](_0x3c7797=>{const _0x5cf6d8=_0x48f4af;if((_0x3c7797==null?void 0x0:_0x3c7797[_0x5cf6d8(0x22e)])!==this[_0x5cf6d8(0x22e)])return;const _0x35a4d5={'eventID':m[_0x5cf6d8(0x15b)][_0x5cf6d8(0x299)],'data':_0x3c7797};this['_onCursorUpdate'](_0x35a4d5);}),this[_0x48f4af(0x161)](this['_commandService'][_0x48f4af(0x265)](_0x34a62a=>{const _0x1589fe=_0x48f4af;if(_0x34a62a[_0x1589fe(0x172)]==null)return;const _0xddee8f=_0x34a62a[_0x1589fe(0x172)];if(_0x34a62a['id']!==Y[_0x1589fe(0x6d)]['id']||_0xddee8f['unitId']!==this[_0x1589fe(0x22e)])return;const _0x99c711={'id':_0x1589fe(0x2a6),'params':_0xddee8f},_0x2d3d19=this['cursorInfo'];for(const [_0x343c00,_0x3bb3a9]of _0x2d3d19){const _0x4a148c={'id':_0x1589fe(0x2a6),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3bb3a9['ranges']}},_0x3388d9=this[_0x1589fe(0xd9)]['transformMutation'](_0x99c711,_0x4a148c,!0x1);if(m['isTransformMutationFailure'](_0x3388d9))throw _0x3388d9[_0x1589fe(0xa0)];_0x2d3d19[_0x1589fe(0x2df)](_0x343c00,{..._0x3bb3a9,'ranges':_0x3388d9[_0x1589fe(0x136)][_0x1589fe(0x172)][_0x1589fe(0xa2)]});}queueMicrotask(()=>{const _0x225462=_0x1589fe;this['_cursorInfo$'][_0x225462(0x16b)](_0x2d3d19);});})));}[_0x1484f9(0xd5)](_0x4bbd14){const _0x13a9ac=_0x1484f9;var _0x1ea0ed,_0x56c509;const {memberID:_0x4efef8,selection:_0x56cf08}=_0x4bbd14[_0x13a9ac(0x70)],_0x159039=Je(_0x56cf08),_0x3ef2e0=(_0x56c509=(_0x1ea0ed=this[_0x13a9ac(0xf3)][_0x13a9ac(0xd2)](this[_0x13a9ac(0x22e)],_0x4efef8))==null?void 0x0:_0x1ea0ed[_0x13a9ac(0xb4)])!=null?_0x56c509:'Unknown\x20user',_0x4f3511={'color':this['_colorAssignService'][_0x13a9ac(0x1ba)](_0x4efef8),'name':_0x3ef2e0,'ranges':_0x159039},_0x1f3676=this[_0x13a9ac(0x2e6)];_0x1f3676[_0x13a9ac(0x2df)](_0x4efef8,_0x4f3511),this[_0x13a9ac(0xae)][_0x13a9ac(0x16b)](_0x1f3676);}[_0x1484f9(0x12a)](_0x2d2819){const _0x30e9e4=_0x1484f9,{memberID:_0x3553b9}=_0x2d2819[_0x30e9e4(0x70)],_0x521ed2=this[_0x30e9e4(0x2e6)];_0x521ed2[_0x30e9e4(0x80)](_0x3553b9),this[_0x30e9e4(0xae)][_0x30e9e4(0x16b)](_0x521ed2);}[_0x1484f9(0x2ba)](){const _0x22bad2=_0x1484f9;var _0x5076b7;if(this[_0x22bad2(0x175)]=!0x0,((_0x5076b7=this['_univerInstanceService'][_0x22bad2(0x13a)]())==null?void 0x0:_0x5076b7['getUnitId']())!==this[_0x22bad2(0x22e)])return;const _0x31a32f=this[_0x22bad2(0x297)]['get'](Y['DocSelectionManagerService'])[_0x22bad2(0x1f8)]();Array[_0x22bad2(0x2c2)](_0x31a32f)&&_0x31a32f[_0x22bad2(0x1fe)]>0x0&&this[_0x22bad2(0x8e)](_0x31a32f);}[_0x1484f9(0x1ca)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a['Inject'](a['Injector'])),L(0x3,a[_0x1484f9(0x252)](me)),L(0x4,a[_0x1484f9(0x252)](u[_0x1484f9(0x1d6)])),L(0x5,a[_0x1484f9(0x252)](Ce)),L(0x6,m[_0x1484f9(0x1be)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x1484f9(0x1af)])],fe);var st=Object[_0x1484f9(0x21b)],it=(_0x9749d2,_0x1c437f,_0x445a19,_0x4710b8)=>{const _0x20e230=_0x1484f9;for(var _0x26a6f2=_0x4710b8>0x1?void 0x0:_0x4710b8?st(_0x1c437f,_0x445a19):_0x1c437f,_0x1ecec2=_0x9749d2[_0x20e230(0x1fe)]-0x1,_0xdd6980;_0x1ecec2>=0x0;_0x1ecec2--)(_0xdd6980=_0x9749d2[_0x1ecec2])&&(_0x26a6f2=_0xdd6980(_0x26a6f2)||_0x26a6f2);return _0x26a6f2;},A=(_0x2b7296,_0x593734)=>(_0x367613,_0x4443b5)=>_0x593734(_0x367613,_0x4443b5,_0x2b7296);const nt=0x12c,rt=0x64,ot=()=>{let _0x5df042=[],_0x3e8eb5=!0x1;return _0x578e28=>{const _0x2ba33f=_0x1dbb;_0x5df042[_0x2ba33f(0x23f)](_0x578e28),_0x3e8eb5||(_0x3e8eb5=!0x0,setTimeout(()=>{_0x5df042['forEach'](_0x53ee31=>_0x53ee31()),_0x5df042=[],_0x3e8eb5=!0x1;}));};};let Se=class extends a[_0x1484f9(0x1fc)]{constructor(_0x15e789,_0x5418bc,_0x13f60b,_0x564db0,_0xfa23c,_0x46fef6,_0x2becf1,_0x16e186){const _0x48920f=_0x1484f9;super(),h(this,_0x48920f(0x175),!0x1),h(this,_0x48920f(0x1df),!0x1),h(this,_0x48920f(0xae),new d[(_0x48920f(0x21d))](new Map())),h(this,'cursorInfo$',this[_0x48920f(0xae)][_0x48920f(0x1c1)]()),h(this,_0x48920f(0xdf),new d[(_0x48920f(0x21d))]([])),h(this,_0x48920f(0x1cd),this[_0x48920f(0xdf)]['pipe'](d[_0x48920f(0x1fb)](nt))),h(this,_0x48920f(0x8e),a['debounce']((_0x2a21ad,_0x3cc919)=>{const _0xb00fe5=_0x48920f,_0x1c614d={'eventID':m[_0xb00fe5(0x15b)]['UPDATE_CURSOR'],'data':{'unitID':this[_0xb00fe5(0x22e)],'memberID':this[_0xb00fe5(0x168)]['getMemberID'](),'selection':Ee[_0xb00fe5(0x12f)](_0x2a21ad,_0x3cc919[_0xb00fe5(0x89)])}};this[_0xb00fe5(0x168)][_0xb00fe5(0xf2)](_0x1c614d,this[_0xb00fe5(0x22e)]);},rt)),(this[_0x48920f(0x22e)]=_0x15e789,this[_0x48920f(0x168)]=_0x5418bc,this['_injector']=_0x13f60b,this[_0x48920f(0x17e)]=_0x564db0,this['_memberService']=_0xfa23c,this[_0x48920f(0x83)]=_0x46fef6,this[_0x48920f(0x25d)]=_0x2becf1,this[_0x48920f(0x221)]=_0x16e186);}get[_0x1484f9(0x2e6)](){const _0x9c10a3=_0x1484f9;return this[_0x9c10a3(0xae)][_0x9c10a3(0x279)]();}get[_0x1484f9(0x19c)](){const _0x4ff782=_0x1484f9;return this[_0x4ff782(0xdf)][_0x4ff782(0x279)]();}['dispose'](){const _0x4c1db1=_0x1484f9;super[_0x4c1db1(0x192)](),this[_0x4c1db1(0xae)][_0x4c1db1(0x16b)](new Map()),this[_0x4c1db1(0xae)][_0x4c1db1(0xd0)](),this[_0x4c1db1(0xdf)][_0x4c1db1(0x16b)]([]),this['_roomMembers$'][_0x4c1db1(0xd0)]();}[_0x1484f9(0x94)](){const _0x169d2c=_0x1484f9;this[_0x169d2c(0x1df)]||(this[_0x169d2c(0x1df)]=!0x0,this[_0x169d2c(0x168)][_0x169d2c(0x197)][_0x169d2c(0xe6)](d[_0x169d2c(0xbb)](this[_0x169d2c(0x1de)]))[_0x169d2c(0x2d1)](_0x2c70df=>{const _0x2a99b4=_0x169d2c;_0x2c70df===u[_0x2a99b4(0x18c)][_0x2a99b4(0x23c)]?this[_0x2a99b4(0x2ba)]():this[_0x2a99b4(0x1ca)]();}),this[_0x169d2c(0x168)][_0x169d2c(0x67)][_0x169d2c(0xe6)](d[_0x169d2c(0xbb)](this[_0x169d2c(0x1de)]))[_0x169d2c(0x2d1)](_0x345c29=>{const _0x2ae71e=_0x169d2c,_0x35f6ec=_0x345c29[_0x2ae71e(0x249)];_0x35f6ec===m[_0x2ae71e(0x15b)][_0x2ae71e(0x299)]&&this[_0x2ae71e(0xd5)](_0x345c29),_0x35f6ec===m[_0x2ae71e(0x15b)][_0x2ae71e(0x133)]&&this['_onCursorDelete'](_0x345c29);}),this[_0x169d2c(0x271)](),this[_0x169d2c(0x161)](this['_commandService'][_0x169d2c(0x265)](_0x1e0f58=>{const _0x2bf0a6=_0x169d2c;if(this[_0x2bf0a6(0x175)]&&_0x1e0f58['id']===g['SetSelectionsOperation']['id']&&_0x1e0f58[_0x2bf0a6(0x172)]['unitId']===this[_0x2bf0a6(0x22e)]){const _0x103909=_0x1e0f58['params'];this[_0x2bf0a6(0x8e)](_0x103909[_0x2bf0a6(0x125)],_0x103909[_0x2bf0a6(0x140)][0x0]);}})));}[_0x1484f9(0xd5)](_0xb11db6){const _0x55dfd6=_0x1484f9;var _0x195e15,_0x321152;const {memberID:_0x4dff92,selection:_0x17bc53}=_0xb11db6['data'],{sheetName:_0x212526,range:_0x23d753}=Ee['deserializeRangeWithSheet'](_0x17bc53),_0xd8d5ef={'name':(_0x321152=(_0x195e15=this[_0x55dfd6(0xf3)]['getMember'](this[_0x55dfd6(0x22e)],_0x4dff92))==null?void 0x0:_0x195e15[_0x55dfd6(0xb4)])!=null?_0x321152:_0x55dfd6(0x2d4),'range':this[_0x55dfd6(0x20a)](_0x212526,_0x23d753),'sheetID':_0x212526,'color':this[_0x55dfd6(0x17e)][_0x55dfd6(0x1ba)](_0x4dff92),'selection':_0x17bc53},_0x8cb2d0=this[_0x55dfd6(0x2e6)];_0x8cb2d0[_0x55dfd6(0x2df)](_0x4dff92,_0xd8d5ef),this[_0x55dfd6(0xae)]['next'](_0x8cb2d0);}[_0x1484f9(0x12a)](_0x288d9c){const _0x2e4361=_0x1484f9,{memberID:_0x3d7f7d}=_0x288d9c[_0x2e4361(0x70)],_0x556a33=this[_0x2e4361(0x2e6)];_0x556a33['delete'](_0x3d7f7d),this['_cursorInfo$'][_0x2e4361(0x16b)](_0x556a33);}[_0x1484f9(0x20a)](_0x3c1843,_0x28fa86){const _0xcc9401=_0x1484f9;var _0x1ea857,_0x3b9b67;const _0x507ede=(_0x3b9b67=(_0x1ea857=this[_0xcc9401(0x83)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x1ea857['getSheetBySheetId'](_0x3c1843))==null?void 0x0:_0x3b9b67[_0xcc9401(0x29f)]();return(_0x507ede==null?void 0x0:_0x507ede[_0xcc9401(0x1b0)](_0x718c3f=>a['Rectangle'][_0xcc9401(0x2d2)](_0x718c3f,_0x28fa86)))||_0x28fa86;}[_0x1484f9(0x271)](){const _0x32717f=_0x1484f9,_0x5c0eca=new a[(_0x32717f(0x2b4))](),_0x4a29e5=ot(),_0x13a5ca=()=>{const _0xcd09af=_0x32717f;_0x5c0eca[_0xcd09af(0x192)]();const _0x167adc=(_0x3c0e6f,_0x11bad3,_0x1c54d5,_0x130551)=>{const _0x2ded56=_0xcd09af;let _0x5795b4=[];switch(_0x3c0e6f['id']){case g['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x5795b4=g['handleDeleteRangeMoveLeft'](_0x3c0e6f,_0x130551);break;}case g[_0x2ded56(0x254)][_0x2ded56(0x84)]:{_0x5795b4=g[_0x2ded56(0x87)](_0x3c0e6f,_0x130551);break;}case g[_0x2ded56(0x254)][_0x2ded56(0x2cc)]:{_0x5795b4=g[_0x2ded56(0x15c)](_0x3c0e6f,_0x130551);break;}case g[_0x2ded56(0x254)][_0x2ded56(0x208)]:{_0x5795b4=g[_0x2ded56(0x22c)](_0x3c0e6f,_0x130551);break;}case g[_0x2ded56(0x254)][_0x2ded56(0xbc)]:{_0x5795b4=g[_0x2ded56(0x1d0)](_0x3c0e6f,_0x130551);break;}case g['EffectRefRangId']['InsertRowCommandId']:{_0x5795b4=g[_0x2ded56(0x1db)](_0x3c0e6f,_0x130551);break;}case g[_0x2ded56(0x254)][_0x2ded56(0x1a9)]:{_0x5795b4=g[_0x2ded56(0x18f)](_0x3c0e6f,_0x130551);break;}case g[_0x2ded56(0x254)][_0x2ded56(0x118)]:{_0x5795b4=g['handleIRemoveCol'](_0x3c0e6f,_0x130551);break;}case g['EffectRefRangId'][_0x2ded56(0x25a)]:{_0x5795b4=g['handleIRemoveRow'](_0x3c0e6f,_0x130551);break;}}const _0x365897=g['runRefRangeMutations'](_0x5795b4,_0x130551),_0x366b1c=this[_0x2ded56(0x2e6)][_0x2ded56(0x242)](_0x11bad3);if(_0x366b1c&&_0x365897){const _0x2fa55d={..._0x366b1c,'range':_0x365897};this['cursorInfo'][_0x2ded56(0x2df)](_0x11bad3,_0x2fa55d),_0x4a29e5(()=>{const _0x551474=_0x2ded56,_0xe4264c=this[_0x551474(0x221)][_0x551474(0x282)](_0x365897,_0x2871b3=>(_0xe4264c['dispose'](),_0x167adc(_0x2871b3,_0x11bad3,_0x1c54d5,_0x365897)));_0x5c0eca[_0x551474(0xa7)](_0xe4264c);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0xcd09af(0x19b)]((_0x17cfbc,_0x474ba6)=>{const _0x3827b3=_0xcd09af,{range:_0x57aeca,sheetID:_0x261781}=_0x17cfbc,_0x31d329=this['_refRangeService'][_0x3827b3(0x282)](_0x57aeca,_0x5bcecd=>(_0x31d329[_0x3827b3(0x192)](),_0x167adc(_0x5bcecd,_0x474ba6,_0x261781,_0x57aeca)));_0x5c0eca[_0x3827b3(0xa7)](_0x31d329);});};this[_0x32717f(0x161)](a['toDisposable'](this['_cursorInfo$'][_0x32717f(0x2d1)](()=>{_0x13a5ca();})));}['_toggleOnline'](){const _0x11b37d=_0x1484f9;var _0x57dbad,_0x30cb4a;if(this[_0x11b37d(0x175)]=!0x0,((_0x57dbad=this[_0x11b37d(0x83)][_0x11b37d(0x13a)]())==null?void 0x0:_0x57dbad[_0x11b37d(0x170)]())!==this[_0x11b37d(0x22e)])return;const _0x2d2f2f=(_0x30cb4a=this[_0x11b37d(0x297)][_0x11b37d(0x242)](g['SheetsSelectionsService'])[_0x11b37d(0xd1)]())==null?void 0x0:_0x30cb4a[0x0],_0x4d8ac5=this[_0x11b37d(0x83)][_0x11b37d(0x90)](a[_0x11b37d(0x2c5)][_0x11b37d(0x1bb)])[_0x11b37d(0xb6)]();_0x2d2f2f&&_0x4d8ac5&&this['_updateLocalCursor'](_0x4d8ac5['getSheetId'](),_0x2d2f2f);}[_0x1484f9(0x1ca)](){const _0x330418=_0x1484f9;this[_0x330418(0x175)]=!0x1;}};Se=it([A(0x2,a[_0x1484f9(0x252)](a[_0x1484f9(0xa4)])),A(0x3,a['Inject'](me)),A(0x4,a[_0x1484f9(0x252)](u['MemberService'])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x1484f9(0x1af)]),A(0x7,a[_0x1484f9(0x252)](g[_0x1484f9(0x253)]))],Se);var at=Object[_0x1484f9(0x21b)],ct=(_0xd9cfe,_0x4e975a,_0x4991cc,_0x429048)=>{for(var _0x2ee2b6=_0x429048>0x1?void 0x0:_0x429048?at(_0x4e975a,_0x4991cc):_0x4e975a,_0x439e5c=_0xd9cfe['length']-0x1,_0x213fc0;_0x439e5c>=0x0;_0x439e5c--)(_0x213fc0=_0xd9cfe[_0x439e5c])&&(_0x2ee2b6=_0x213fc0(_0x2ee2b6)||_0x2ee2b6);return _0x2ee2b6;},ie=(_0x5d5d84,_0x496c24)=>(_0x2a97c2,_0x201036)=>_0x496c24(_0x2a97c2,_0x201036,_0x5d5d84);let x=class extends a['RxDisposable']{constructor(_0x16fd00,_0x2571f4,_0x5937e3){const _0x291f97=_0x1484f9;super(),h(this,_0x291f97(0x218),new Map()),h(this,_0x291f97(0x2ee),new d['Subject']()),(this[_0x291f97(0x83)]=_0x16fd00,this[_0x291f97(0x297)]=_0x2571f4,this[_0x291f97(0x2a8)]=_0x5937e3,this[_0x291f97(0x1df)]());}[_0x1484f9(0x192)](){const _0xad6d96=_0x1484f9;super[_0xad6d96(0x192)](),this[_0xad6d96(0x2ee)]['complete'](),this[_0xad6d96(0x218)]['forEach'](_0x5f2942=>_0x5f2942[_0xad6d96(0x192)]());}[_0x1484f9(0xc5)](_0x33091e){const _0x23cbcf=_0x1484f9;return this[_0x23cbcf(0x218)][_0x23cbcf(0x17c)](_0x33091e)?this[_0x23cbcf(0x218)]['get'](_0x33091e)[_0x23cbcf(0x6e)]:this['_entityInit$'][_0x23cbcf(0xe6)](d[_0x23cbcf(0x19f)](_0x5ece33=>_0x5ece33[_0x23cbcf(0x22e)]===_0x33091e),d['switchMap'](_0x2b5f38=>_0x2b5f38[_0x23cbcf(0x6e)]));}['_init'](){const _0x3be1e3=_0x1484f9;this[_0x3be1e3(0x83)][_0x3be1e3(0x273)](a[_0x3be1e3(0x2c5)]['UNIVER_SHEET'])[_0x3be1e3(0xe6)](d[_0x3be1e3(0xbb)](this[_0x3be1e3(0x1de)]))[_0x3be1e3(0x2d1)](async _0x3d103f=>{const _0x3eafa7=_0x3be1e3,_0x39c8c0=_0x3d103f[_0x3eafa7(0x170)](),_0x3f29c0=await this[_0x3eafa7(0x26d)](_0x39c8c0);this['_entityInit$'][_0x3eafa7(0x16b)](_0x3f29c0),this[_0x3eafa7(0x218)][_0x3eafa7(0x2df)](_0x39c8c0,_0x3f29c0);}),this['_univerInstanceService'][_0x3be1e3(0x273)](a[_0x3be1e3(0x2c5)][_0x3be1e3(0x11e)])[_0x3be1e3(0xe6)](d[_0x3be1e3(0xbb)](this[_0x3be1e3(0x1de)]))[_0x3be1e3(0xe6)](d[_0x3be1e3(0x19f)](_0x376a33=>!_0x376a33[_0x3be1e3(0x170)]()[_0x3be1e3(0x215)]('__')))[_0x3be1e3(0x2d1)](async _0x4acc4c=>{const _0x434267=_0x3be1e3,_0x252f7c=_0x4acc4c['getUnitId'](),_0x2e0836=await this[_0x434267(0x22b)](_0x252f7c);this[_0x434267(0x2ee)][_0x434267(0x16b)](_0x2e0836),this[_0x434267(0x218)][_0x434267(0x2df)](_0x252f7c,_0x2e0836);}),d['merge'](this['_univerInstanceService'][_0x3be1e3(0x247)](a['UniverInstanceType'][_0x3be1e3(0x11e)]),this[_0x3be1e3(0x83)][_0x3be1e3(0x247)](a['UniverInstanceType'][_0x3be1e3(0x1bb)]))[_0x3be1e3(0xe6)](d[_0x3be1e3(0xbb)](this[_0x3be1e3(0x1de)]))[_0x3be1e3(0x2d1)](_0x8d1c03=>{const _0x583ed5=_0x3be1e3,_0x3df079=_0x8d1c03['getUnitId'](),_0x4564e6=this['_entities'][_0x583ed5(0x242)](_0x3df079);_0x4564e6&&(_0x4564e6[_0x583ed5(0x192)](),this[_0x583ed5(0x218)][_0x583ed5(0x80)](_0x3df079));});}async[_0x1484f9(0x26d)](_0x4b1c0a){const _0x219aa5=_0x1484f9,_0x21204b=await this['_collabSessionService'][_0x219aa5(0x21f)](_0x4b1c0a),_0x556c99=this[_0x219aa5(0x297)][_0x219aa5(0x1d5)](Se,_0x4b1c0a,_0x21204b);return _0x556c99['init'](),_0x556c99;}async[_0x1484f9(0x22b)](_0x19fc9f){const _0x456068=_0x1484f9,_0x47b91e=await this[_0x456068(0x2a8)][_0x456068(0x21f)](_0x19fc9f),_0xb16f4=this[_0x456068(0x297)][_0x456068(0x1d5)](fe,_0x19fc9f,_0x47b91e);return _0xb16f4['init'](),_0xb16f4;}};x=ct([ie(0x0,a[_0x1484f9(0x1a1)]),ie(0x1,a[_0x1484f9(0x252)](a['Injector'])),ie(0x2,a[_0x1484f9(0x252)](u[_0x1484f9(0x26f)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x4a43ae,_0x4bc6a){const _0x10d0b7=_0x1484f9;let {radius:_0x1802ee,width:_0x300659,height:_0x3fedc9}=_0x4bc6a;_0x1802ee=_0x1802ee!=null?_0x1802ee:0x0,_0x300659=_0x300659!=null?_0x300659:0x1e,_0x3fedc9=_0x3fedc9!=null?_0x3fedc9:0x1e;let _0x36110f=0x0,_0x3c3cd4=0x0,_0x27adcb=0x0;_0x36110f=_0x3c3cd4=_0x27adcb=Math[_0x10d0b7(0xd7)](_0x1802ee,_0x300659/0x2,_0x3fedc9/0x2),_0x4a43ae[_0x10d0b7(0x69)](),_0x4a43ae[_0x10d0b7(0x186)](_0x36110f,0x0),_0x4a43ae[_0x10d0b7(0x114)](_0x300659-_0x3c3cd4,0x0),_0x4a43ae[_0x10d0b7(0x127)](_0x300659-_0x3c3cd4,_0x3c3cd4,_0x3c3cd4,Math['PI']*0x3/0x2,0x0,!0x1),_0x4a43ae['lineTo'](_0x300659,_0x3fedc9-_0x27adcb),_0x4a43ae[_0x10d0b7(0x127)](_0x300659-_0x27adcb,_0x3fedc9-_0x27adcb,_0x27adcb,0x0,Math['PI']/0x2,!0x1),_0x4a43ae[_0x10d0b7(0x114)](0x0,_0x3fedc9),_0x4a43ae[_0x10d0b7(0x114)](0x0,_0x36110f),_0x4a43ae[_0x10d0b7(0x127)](_0x36110f,_0x36110f,_0x36110f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4a43ae[_0x10d0b7(0x1f6)](),_0x4bc6a[_0x10d0b7(0x1d2)]&&(_0x4a43ae[_0x10d0b7(0x156)](),_0x4a43ae[_0x10d0b7(0x78)]=_0x4bc6a[_0x10d0b7(0x1d2)],_0x4bc6a[_0x10d0b7(0x1cf)]==='evenodd'?_0x4a43ae['fill'](_0x10d0b7(0x1b8)):_0x4a43ae[_0x10d0b7(0x1d2)](),_0x4a43ae[_0x10d0b7(0x162)]());}class ee extends p[_0x1484f9(0x185)]{constructor(_0x127b89,_0x60cc35){const _0x23fdc4=_0x1484f9;super(_0x127b89,_0x60cc35),h(this,_0x23fdc4(0x2b0)),h(this,'text'),(this[_0x23fdc4(0x2b0)]=_0x60cc35==null?void 0x0:_0x60cc35[_0x23fdc4(0x2b0)],this[_0x23fdc4(0x26a)]=_0x60cc35==null?void 0x0:_0x60cc35[_0x23fdc4(0x26a)]);}static[_0x1484f9(0xb8)](_0x32e6f1,_0xb3d227){const _0x91cada=_0x1484f9,{text:_0x5997a,color:_0x408bb4}=_0xb3d227;_0x32e6f1[_0x91cada(0x156)](),_0x32e6f1[_0x91cada(0x122)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x512f73=_0x32e6f1[_0x91cada(0x74)](_0x5997a)[_0x91cada(0xb3)],_0x3837c4=Math[_0x91cada(0xd7)](_0x512f73+0x2*ne,Re);_t(_0x32e6f1,{'height':K,'radius':0x4,'width':_0x3837c4,'fill':_0x408bb4}),_0x32e6f1[_0x91cada(0x78)]=_0x91cada(0x1f0);const _0x44e474=ne,_0x52078a=K-lt,_0x15e8e4=Re-0x2*ne;if(_0x512f73>_0x15e8e4){let _0xab26e2='',_0x490a83=0x0;for(const _0x45cb40 of _0x5997a){const _0x4f326a=_0x32e6f1['measureText'](_0x45cb40)[_0x91cada(0xb3)];if(_0x490a83+_0x4f326a<=_0x15e8e4-_0x32e6f1[_0x91cada(0x74)](_0x91cada(0x73))[_0x91cada(0xb3)])_0xab26e2+=_0x45cb40,_0x490a83+=_0x4f326a;else{_0xab26e2+=_0x91cada(0x73);break;}}_0x32e6f1[_0x91cada(0x1d3)](_0xab26e2,_0x44e474,_0x52078a);}else _0x32e6f1['fillText'](_0x5997a,_0x44e474,_0x52078a);_0x32e6f1['restore']();}[_0x1484f9(0x296)](_0x4ea584){const _0x2128c1=_0x1484f9;ee[_0x2128c1(0xb8)](_0x4ea584,this);}}const re=_0x1484f9(0xda),ht=_0x1484f9(0xe9),ut=_0x1484f9(0x21c),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x1484f9(0x195);class De{constructor(_0x1ecbc9,_0x20c2ca,_0x4120d1,_0x13cd63){const _0x1171ce=_0x1484f9;h(this,'_shapes',[]),h(this,_0x1171ce(0x27e),null),h(this,'_textBubble',null),h(this,'_anchorDot',null),h(this,_0x1171ce(0xa5),null),h(this,_0x1171ce(0x223),null),(this['_cursor']=_0x1ecbc9,this[_0x1171ce(0x29e)]=_0x20c2ca,this[_0x1171ce(0x19d)]=_0x4120d1,this[_0x1171ce(0x2a9)]=_0x13cd63,this[_0x1171ce(0x1a4)]());}set[_0x1484f9(0x174)](_0x53bba8){const _0x34f64a=_0x1484f9;_0x53bba8?(this[_0x34f64a(0xc4)]&&this['_anchorDot'][_0x34f64a(0x294)](),this[_0x34f64a(0x20c)]&&this[_0x34f64a(0x20c)][_0x34f64a(0x1d8)]()):(this[_0x34f64a(0xc4)]&&this[_0x34f64a(0xc4)][_0x34f64a(0x1d8)](),this[_0x34f64a(0x20c)]&&this[_0x34f64a(0x20c)][_0x34f64a(0x294)]());}['dispose'](){const _0x5522cb=_0x1484f9;for(const _0x1334ac of this[_0x5522cb(0x139)])_0x1334ac[_0x5522cb(0x192)]();this['_textBubble']&&this[_0x5522cb(0x20c)][_0x5522cb(0x192)](),this['_anchorDot']&&this[_0x5522cb(0xc4)][_0x5522cb(0x192)](),this[_0x5522cb(0x27e)]&&this[_0x5522cb(0x27e)][_0x5522cb(0x192)](),this[_0x5522cb(0x223)]&&this[_0x5522cb(0x223)]();}['_render'](){const _0x1dbb25=_0x1484f9;var _0x547eb3;const {_docSkeleton:_0x513199,_document:_0x249694}=this,{color:_0x4f9c75,name:_0x17755c,ranges:_0xb532f7}=this[_0x1dbb25(0x2de)],_0xd87986=_0x249694[_0x1dbb25(0x9e)](),{docsLeft:_0x30b162,docsTop:_0x1c1b58}=_0xd87986,_0x472604=new b[(_0x1dbb25(0xfe))](_0xd87986,_0x513199);for(const {startOffset:_0x43436b,endOffset:_0x292332,rangeType:_0x3a9735,segmentId:_0x3c245e,segmentPage:_0x1eb7ce,collapsed:_0x168455,isActive:_0x2dddcf}of _0xb532f7){const _0x2ad398=_0x513199['findNodePositionByCharIndex'](_0x43436b,!0x0,_0x3c245e,_0x1eb7ce);let _0x100164=_0x513199['findNodePositionByCharIndex'](_0x292332,!0x0,_0x3c245e,_0x1eb7ce);if(_0x100164==null&&(_0x100164=_0x513199[_0x1dbb25(0x267)](_0x292332-0x1,!0x1,_0x3c245e,_0x1eb7ce)),_0x2dddcf){const {contentBoxPointGroup:_0x126f35}=_0x472604[_0x1dbb25(0xca)](_0x100164,_0x100164);if(_0x126f35[_0x1dbb25(0x1fe)]===0x0)continue;this['_drawAnchor'](_0x4f9c75,_0x126f35,_0x30b162,_0x1c1b58,_0x17755c),this[_0x1dbb25(0x223)]=this[_0x1dbb25(0xe3)]();}if(_0x2ad398&&_0x100164){if(_0x3a9735===a[_0x1dbb25(0x157)][_0x1dbb25(0x110)]){const _0x3c5db4=new b[(_0x1dbb25(0x68))](_0xd87986,_0x513199),{pointGroup:_0xa5e4e4}=(_0x547eb3=_0x3c5db4[_0x1dbb25(0xca)](_0x2ad398,_0x100164))!=null?_0x547eb3:{};if(_0xa5e4e4==null||_0xa5e4e4[_0x1dbb25(0x1fe)]===0x0)continue;this[_0x1dbb25(0x27d)](_0x4f9c75,_0xa5e4e4,_0x30b162,_0x1c1b58);}else{if(!_0x168455){const {borderBoxPointGroup:_0x1360a7}=_0x472604[_0x1dbb25(0xca)](_0x2ad398,_0x100164);if(_0x1360a7[_0x1dbb25(0x1fe)]===0x0)continue;this[_0x1dbb25(0xee)](_0x4f9c75,_0x1360a7,_0x30b162,_0x1c1b58);}}}}}[_0x1484f9(0x17b)](_0x59e092,_0x4452ca,_0x106393,_0x3407fb,_0x5c3708){const _0xbce94a=_0x1484f9,_0x352cd6=this[_0xbce94a(0x1ab)](_0x4452ca),{left:_0x24b488,top:_0x49f568,height:_0x3838e3}=_0x352cd6,_0x13e7a2=this['_getScale'](),_0x7f0ea=ft/_0x13e7a2,_0x34ea4b=new p[(_0xbce94a(0x128))](re+a[_0xbce94a(0x25f)][_0xbce94a(0xef)](k),{'left':_0x24b488+_0x106393-_0x7f0ea,'top':_0x49f568+_0x3407fb,'height':_0x3838e3,'width':dt,'fill':_0x59e092||p[_0xbce94a(0x243)](a[_0xbce94a(0x255)][_0xbce94a(0x2b3)],0x0),'strokeWidth':_0x7f0ea,'stroke':St,'evented':!0x0});this[_0xbce94a(0x27e)]=_0x34ea4b,this['_scene']['addObject'](_0x34ea4b,b[_0xbce94a(0x23e)]);const _0x4cfbbf=new p[(_0xbce94a(0x128))](re+a['Tools'][_0xbce94a(0xef)](k),{'left':_0x24b488+_0x106393-_0x7f0ea,'top':_0x49f568+_0x3407fb-oe/0x2,'height':oe,'width':oe,'fill':_0x59e092||p[_0xbce94a(0x243)](a[_0xbce94a(0x255)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x59e092||p[_0xbce94a(0x243)](a[_0xbce94a(0x255)]['black'],0x0),'evented':!0x1});this[_0xbce94a(0xc4)]=_0x4cfbbf,this['_scene']['addObject'](_0x4cfbbf,b['TEXT_RANGE_LAYER_INDEX']);const _0x2f1c5f=new ee(re+a[_0xbce94a(0x25f)][_0xbce94a(0xef)](k),{'left':_0x24b488+_0x106393-_0x7f0ea,'top':_0x49f568+_0x3407fb-K,'text':_0x5c3708,'color':_0x59e092});this[_0xbce94a(0x20c)]=_0x2f1c5f,this['_scene']['addObject'](_0x2f1c5f,b[_0xbce94a(0x23e)]),this[_0xbce94a(0x174)]=!0x1;}[_0x1484f9(0xe3)](){const _0x364d08=_0x1484f9,_0x400587=this[_0x364d08(0x27e)][_0x364d08(0xde)][_0x364d08(0x2ec)](()=>{const _0x14dffa=_0x364d08;this[_0x14dffa(0x174)]=!0x0;}),_0x28eada=this[_0x364d08(0x27e)]['onPointerLeave$'][_0x364d08(0x2ec)](()=>{const _0x569e74=_0x364d08;this[_0x569e74(0xa5)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x2fafee=_0x569e74;this[_0x2fafee(0x174)]=!0x1;},0x7d0);});return()=>{const _0x1756dc=_0x364d08;_0x400587[_0x1756dc(0x23b)](),_0x28eada['unsubscribe']();};}[_0x1484f9(0xee)](_0x3559aa,_0x47fb8c,_0x51f264,_0x22dc02){const _0x1bc60e=_0x1484f9,_0xb57d0b=new a[(_0x1bc60e(0x28a))](_0x3559aa)[_0x1bc60e(0x148)](0.2)[_0x1bc60e(0x135)](),_0x5b1e9d=new p[(_0x1bc60e(0x248))](ht+a[_0x1bc60e(0x25f)][_0x1bc60e(0xef)](k),{'pointsGroup':_0x47fb8c,'fill':_0xb57d0b||p[_0x1bc60e(0x243)](a[_0x1bc60e(0x255)][_0x1bc60e(0x2b3)],0.2),'left':_0x51f264,'top':_0x22dc02,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1bc60e(0x139)][_0x1bc60e(0x23f)](_0x5b1e9d),this['_scene']['addObject'](_0x5b1e9d,b[_0x1bc60e(0x23e)]);}[_0x1484f9(0x27d)](_0x228555,_0x812d30,_0x15d7c3,_0x545148){const _0x2437cf=_0x1484f9,_0x25da42=new a['ColorKit'](_0x228555)[_0x2437cf(0x148)](0.2)[_0x2437cf(0x135)](),_0x8de10e=new p['RegularPolygon'](ut+a[_0x2437cf(0x25f)][_0x2437cf(0xef)](k),{'pointsGroup':_0x812d30,'fill':_0x25da42||p[_0x2437cf(0x243)](a['COLORS'][_0x2437cf(0x2b3)],0.2),'left':_0x15d7c3,'top':_0x545148,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2437cf(0x139)][_0x2437cf(0x23f)](_0x8de10e),this[_0x2437cf(0x29e)][_0x2437cf(0xf0)](_0x8de10e,b[_0x2437cf(0x23e)]);}['_getAnchorBounding'](_0x5d7570){const _0x46305a=_0x5d7570[0x0],_0x13e362=_0x46305a[0x0],_0x2ddf97=_0x46305a[0x2],{x:_0x5e598b,y:_0x4c98dd}=_0x13e362,{x:_0x130f59,y:_0x4cc594}=_0x2ddf97;return{'left':_0x5e598b,'top':_0x4c98dd,'width':_0x130f59-_0x5e598b,'height':_0x4cc594-_0x4c98dd};}[_0x1484f9(0x28b)](){const _0x8faa03=_0x1484f9,{scaleX:_0x5a3af6,scaleY:_0x1a2049}=this['_scene'][_0x8faa03(0x79)]();return Math[_0x8faa03(0x23d)](_0x5a3af6,_0x1a2049);}}var It=Object[_0x1484f9(0x21b)],vt=(_0x3b6dc8,_0x511967,_0x2740f1,_0x24254a)=>{const _0x5728e9=_0x1484f9;for(var _0x546628=_0x24254a>0x1?void 0x0:_0x24254a?It(_0x511967,_0x2740f1):_0x511967,_0xd45db2=_0x3b6dc8[_0x5728e9(0x1fe)]-0x1,_0x1c50ef;_0xd45db2>=0x0;_0xd45db2--)(_0x1c50ef=_0x3b6dc8[_0xd45db2])&&(_0x546628=_0x1c50ef(_0x546628)||_0x546628);return _0x546628;},W=(_0x43abf5,_0x1d69df)=>(_0x2ec6a5,_0x591326)=>_0x1d69df(_0x2ec6a5,_0x591326,_0x43abf5);let Ie=class extends a[_0x1484f9(0x1fc)]{constructor(_0x2c7d5c,_0x122165,_0x19bd5f,_0x478e8f,_0x55af2d){const _0x4752da=_0x1484f9;super(),h(this,'_cursorShapes',[]),h(this,_0x4752da(0x29c),[]),(this[_0x4752da(0x130)]=_0x2c7d5c,this[_0x4752da(0x9a)]=_0x122165,this['_collabCursorController']=_0x19bd5f,this[_0x4752da(0x25d)]=_0x478e8f,this[_0x4752da(0x2a3)]=_0x55af2d,this[_0x4752da(0x1df)]());}[_0x1484f9(0x1df)](){const _0x4f14a6=_0x1484f9,_0xa2dab3=this[_0x4f14a6(0x130)][_0x4f14a6(0x7f)],_0x2353eb=this[_0x4f14a6(0x9a)];this['disposeWithMe'](d[_0x4f14a6(0x115)]([this[_0x4f14a6(0xfd)][_0x4f14a6(0xc5)](_0xa2dab3),this['_themeService'][_0x4f14a6(0x10a)]])[_0x4f14a6(0xe6)]($[_0x4f14a6(0x238)](([_0x5c07b1,_0x599945])=>({'skeleton':_0x2353eb['getSkeleton'](),'cursors':[..._0x5c07b1['values']()]['flatMap'](_0x33267c=>({..._0x33267c,'color':this[_0x4f14a6(0x2a3)]['getColorFromTheme'](_0x33267c[_0x4f14a6(0x2b0)])}))})))[_0x4f14a6(0x2d1)](_0x46c536=>{const _0x95da09=_0x4f14a6;if(this['_removeCollabCursors'](),_0x46c536){const {skeleton:_0x47be73,cursors:_0x1a2fc1}=_0x46c536;this[_0x95da09(0x1b3)](_0x47be73,_0x1a2fc1);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x1484f9(0x1b3)](_0x708ec5,_0x114ddd){const _0x649199=_0x1484f9,{scene:_0x33f4c7,mainComponent:_0x30f759}=this[_0x649199(0x130)],_0xbbcae5=_0x114ddd[_0x649199(0x238)](_0x446bba=>new De(_0x446bba,_0x33f4c7,_0x708ec5,_0x30f759));this[_0x649199(0x16d)]=_0xbbcae5,this[_0x649199(0x29c)]=_0x114ddd;}[_0x1484f9(0x113)](){const _0x44a752=_0x1484f9;this[_0x44a752(0xa8)]();const {scene:_0x156e2b,mainComponent:_0x2c4b66}=this[_0x44a752(0x130)],_0x532976=this[_0x44a752(0x9a)][_0x44a752(0x2a7)](),_0x533a66=this[_0x44a752(0x29c)]['map'](_0x450822=>new De(_0x450822,_0x156e2b,_0x532976,_0x2c4b66));this[_0x44a752(0x16d)]=_0x533a66;}[_0x1484f9(0xa8)](){const _0x1774b0=_0x1484f9;this['_cursorShapes'][_0x1774b0(0x19b)](_0x2d289b=>_0x2d289b[_0x1774b0(0x192)]()),this[_0x1774b0(0x16d)]=[];}[_0x1484f9(0xe2)](){const _0x6d9d81=_0x1484f9,_0x399c1=[b[_0x6d9d81(0x96)]['id']];this[_0x6d9d81(0x161)](this[_0x6d9d81(0x25d)]['onCommandExecuted'](_0x470f15=>{const _0x311561=_0x6d9d81;_0x399c1[_0x311561(0x109)](_0x470f15['id'])&&_0x470f15['params'][_0x311561(0x7f)]===this[_0x311561(0x130)][_0x311561(0x7f)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x1dedc1=_0x1484f9;this[_0x1dedc1(0x161)](a[_0x1dedc1(0x2b1)](this[_0x1dedc1(0x130)][_0x1dedc1(0x7d)][_0x1dedc1(0x229)])[_0x1dedc1(0xe6)]($[_0x1dedc1(0x19f)](_0x16a227=>_0x16a227[_0x1dedc1(0x1b9)]===p[_0x1dedc1(0x9b)][_0x1dedc1(0x196)]),$[_0x1dedc1(0x10e)](0x10))[_0x1dedc1(0x2d1)](()=>{const _0xb6921c=_0x1dedc1;this[_0xb6921c(0x113)]();}));}};Ie=vt([W(0x1,a[_0x1484f9(0x252)](Y['DocSkeletonManagerService'])),W(0x2,a['Inject'](x)),W(0x3,a[_0x1484f9(0x1af)]),W(0x4,a[_0x1484f9(0x252)](a[_0x1484f9(0x180)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x1484f9(0x185)]{constructor(_0x483ad0,_0x145f39){const _0x424cf0=_0x1484f9;super(_0x483ad0,_0x145f39),h(this,'_color'),h(this,_0x424cf0(0xfa),!0x1),h(this,_0x424cf0(0x213)),h(this,_0x424cf0(0x26b),''),h(this,_0x424cf0(0x276),_0x424cf0(0x2dd)),h(this,_0x424cf0(0x24a)),(_0x145f39&&this[_0x424cf0(0xfb)](_0x145f39),this[_0x424cf0(0xde)]['subscribeEvent'](()=>this[_0x424cf0(0xfb)]({'hovered':!0x0})),this['onPointerLeave$'][_0x424cf0(0x2ec)](()=>this[_0x424cf0(0xfb)]({'hovered':!0x1})));}[_0x1484f9(0xfb)](_0x41522c){const _0x28b244=_0x1484f9;var _0xfb7b04,_0xec2041,_0x558a36,_0x173295,_0x412bb8,_0x387f57;this[_0x28b244(0x292)]=(_0xfb7b04=_0x41522c['color'])!=null?_0xfb7b04:this[_0x28b244(0x292)],this[_0x28b244(0xfa)]=(_0xec2041=_0x41522c['hovered'])!=null?_0xec2041:this[_0x28b244(0xfa)],this['_range']=(_0x558a36=_0x41522c[_0x28b244(0x89)])!=null?_0x558a36:this[_0x28b244(0x213)],this['_name']=(_0x173295=_0x41522c[_0x28b244(0xb4)])!=null?_0x173295:this['_name'],this[_0x28b244(0x276)]=(_0x412bb8=_0x41522c['labelPosition'])!=null?_0x412bb8:this[_0x28b244(0x276)],this[_0x28b244(0x24a)]=(_0x387f57=_0x41522c[_0x28b244(0x1b2)])!=null?_0x387f57:this[_0x28b244(0x24a)],this[_0x28b244(0x234)]({'width':_0x41522c[_0x28b244(0xb3)],'height':_0x41522c[_0x28b244(0x1b1)]});}[_0x1484f9(0x1d9)](_0x4c661c){const _0x460986=_0x1484f9,{row:_0xb17f4c,column:_0x3b6291}=_0x4c661c;if(_0xb17f4c>=this[_0x460986(0x213)][_0x460986(0x176)]&&_0xb17f4c<=this[_0x460986(0x213)][_0x460986(0x227)]&&_0x3b6291>=this[_0x460986(0x213)][_0x460986(0x134)]&&_0x3b6291<=this[_0x460986(0x213)]['endColumn']){this[_0x460986(0xfb)]({'hovered':!0x0});return;}this[_0x460986(0xfb)]({'hovered':!0x1});}[_0x1484f9(0x217)](_0x35b554){return!0x1;}[_0x1484f9(0x296)](_0x2df0da){const _0x308c90=_0x1484f9;p[_0x308c90(0x128)]['drawWith'](_0x2df0da,{'width':this[_0x308c90(0xb3)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x308c90(0x292)],'evented':!0x1,'fill':this[_0x308c90(0x24a)]}),this[_0x308c90(0xfa)]&&(_0x2df0da[_0x308c90(0x156)](),_0x2df0da['transform'](0x1,0x0,0x0,0x1,this[_0x308c90(0xb3)],this[_0x308c90(0x276)]===_0x308c90(0x2f0)?0x0:-0x14),ee[_0x308c90(0xb8)](_0x2df0da,{'text':this['_name'],'color':this[_0x308c90(0x292)]}),_0x2df0da[_0x308c90(0x162)]());}}var Ct=Object[_0x1484f9(0x21b)],pt=(_0x31e0bf,_0x483454,_0x519751,_0x3bd4de)=>{for(var _0x46ffb2=_0x3bd4de>0x1?void 0x0:_0x3bd4de?Ct(_0x483454,_0x519751):_0x483454,_0xef963b=_0x31e0bf['length']-0x1,_0x17cd3a;_0xef963b>=0x0;_0xef963b--)(_0x17cd3a=_0x31e0bf[_0xef963b])&&(_0x46ffb2=_0x17cd3a(_0x46ffb2)||_0x46ffb2);return _0x46ffb2;},ae=(_0xcc908b,_0x5d11de)=>(_0x2bf243,_0x1d4762)=>_0x5d11de(_0x2bf243,_0x1d4762,_0xcc908b);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x4aec67,_0x25dd11,_0x1d93e1,_0x4ac78e){const _0x285521=_0x1484f9;super(),h(this,'_cursors',new Set()),h(this,_0x285521(0x189),null),(this[_0x285521(0x130)]=_0x4aec67,this['_sheetSkeletonManagerService']=_0x25dd11,this[_0x285521(0xfd)]=_0x1d93e1,this['_themeService']=_0x4ac78e,this[_0x285521(0x1df)]());}[_0x1484f9(0x1df)](){const _0x423e48=_0x1484f9;this['_sheetSkeletonManagerService'][_0x423e48(0x2e3)]['pipe']($[_0x423e48(0xbb)](this['dispose$']),$[_0x423e48(0x20e)](_0x4a26c3=>{const _0x2f8743=_0x423e48;if(_0x4a26c3){const _0x7895d4=_0x4a26c3[_0x2f8743(0xc7)];return d['combineLatest'](this[_0x2f8743(0xfd)][_0x2f8743(0xc5)](this['_context'][_0x2f8743(0x7f)]),this['_themeService'][_0x2f8743(0x10a)])[_0x2f8743(0xe6)]($['map'](([_0x17f6f3,_0xe2cc0e])=>{const _0x396829=_0x2f8743,_0x11b8d7=new Map();return _0x17f6f3[_0x396829(0x19b)]((_0x40b4ea,_0x56c924)=>{const _0x43ee61=_0x396829;if(_0x40b4ea['sheetID']===_0x7895d4){const _0x1627e9={..._0x40b4ea};_0x1627e9[_0x43ee61(0x2b0)]=this['_themeService'][_0x43ee61(0x2b8)](_0x40b4ea[_0x43ee61(0x2b0)]),_0x11b8d7['set'](_0x56c924,_0x1627e9);}}),{'skeleton':_0x4a26c3,'cursors':_0x11b8d7};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x423e48(0x2d1)](({skeleton:_0x5bc3e9,cursors:_0x2b55ee})=>{const _0x4a283d=_0x423e48;this['_removeCollabCursors'](),_0x5bc3e9&&this[_0x4a283d(0x1b3)](_0x5bc3e9,_0x2b55ee);}),this[_0x423e48(0xd8)]['currentSkeleton$'][_0x423e48(0x2d1)](_0x56c1bd=>{const _0x5ef2a1=_0x423e48;if(_0x56c1bd==null)return;const {skeleton:_0x220ccf}=_0x56c1bd,{scene:_0x32a56f}=this[_0x5ef2a1(0x130)];_0x32a56f[_0x5ef2a1(0x105)][_0x5ef2a1(0x2ec)](a[_0x5ef2a1(0x178)](_0x283106=>{const _0xa5b53f=_0x5ef2a1;var _0x1193ba,_0x544f84;const {offsetX:_0x33d5fc,offsetY:_0x561232}=_0x283106,{x:_0x245098,y:_0x3c117f}=_0x32a56f['getRelativeToViewportCoord'](p[_0xa5b53f(0xfc)][_0xa5b53f(0x1b4)]([_0x33d5fc,_0x561232])),{scaleX:_0x45c50c,scaleY:_0x5bbec7}=_0x32a56f[_0xa5b53f(0x79)](),_0x437933=_0x32a56f[_0xa5b53f(0x2d9)](p[_0xa5b53f(0x147)][_0xa5b53f(0x2e2)]),_0x109a94=_0x32a56f['getVpScrollXYInfoByPosToVp'](p[_0xa5b53f(0xfc)][_0xa5b53f(0x1b4)]([_0x245098,_0x3c117f]),_0x437933),_0x33ebab=_0x220ccf[_0xa5b53f(0x6c)](_0x33d5fc,_0x561232,_0x45c50c,_0x5bbec7,_0x109a94);((_0x1193ba=this['_lastPointer'])==null?void 0x0:_0x1193ba[_0xa5b53f(0x152)])===_0x33ebab[_0xa5b53f(0x152)]&&((_0x544f84=this[_0xa5b53f(0x189)])==null?void 0x0:_0x544f84[_0xa5b53f(0x15a)])===_0x33ebab[_0xa5b53f(0x15a)]||this['_cursors'][_0xa5b53f(0x19b)](_0x2b36a2=>{const _0x362669=_0xa5b53f;_0x2b36a2[_0x362669(0x1d9)](_0x33ebab);});},0x64));});}[_0x1484f9(0x1b3)](_0x25a8f5,_0x5e4d39){const _0x4f7e9d=_0x1484f9;var _0x4ea011;const _0x5a455b=(_0x4ea011=this[_0x4f7e9d(0xd8)][_0x4f7e9d(0x85)]())==null?void 0x0:_0x4ea011[_0x4f7e9d(0x9c)];if(!_0x5a455b)return;const _0x28adb1=this[_0x4f7e9d(0x75)]();if(!_0x28adb1)return;this['_cursors'][_0x4f7e9d(0x19b)](_0x58f40e=>{const _0x47a9ff=_0x4f7e9d;_0x58f40e[_0x47a9ff(0x1ee)]();});const {scene:_0x40c27c}=_0x28adb1,_0x1a8591=Et(Array[_0x4f7e9d(0x76)](_0x5e4d39[_0x4f7e9d(0x211)]()))[_0x4f7e9d(0x238)](_0x11bcf7=>{const _0x48411b=_0x4f7e9d,{color:_0x100fa7,range:_0xe79916,name:_0x21035c,selection:_0x4c14bd,sheetID:_0x1cbbd5}=_0x11bcf7,{startColumn:_0x2479e0,startRow:_0x28d5f4,endColumn:_0x3df981,endRow:_0x443422}=_0xe79916,_0x11bc93=X[_0x48411b(0x2af)](_0x28d5f4,_0x2479e0,_0x40c27c,_0x5a455b),_0x2e0d65=X[_0x48411b(0x2af)](_0x443422,_0x3df981,_0x40c27c,_0x5a455b),{columnHeaderHeightAndMarginTop:_0x2432ef}=_0x5a455b,{startX:_0x3bbcb2,startY:_0xde7d47}=_0x11bc93,{endX:_0x1fb12f,endY:_0x3b825e}=_0x2e0d65,_0x4e8200=_0x1fb12f-_0x3bbcb2,_0x50fb67=_0x3b825e-_0xde7d47,_0x4ba40d={'labelPosition':_0xde7d47-_0x2432ef>=K?'top':_0x48411b(0x2f0),'sheetID':_0x1cbbd5,'range':_0xe79916,'color':_0x100fa7,'name':_0x21035c,'selection':_0x4c14bd,'left':_0x3bbcb2,'top':_0xde7d47,'width':_0x4e8200,'height':_0x50fb67,'evented':!0x1,'zIndex':bt};return new Pe(_0x21035c,_0x4ba40d);});_0x40c27c[_0x4f7e9d(0x2e0)](_0x1a8591,gt),this[_0x4f7e9d(0x29c)]=new Set(_0x1a8591);}['_removeCollabCursors'](){const _0x5be27a=_0x1484f9;var _0x58d7de;(_0x58d7de=this[_0x5be27a(0x29c)])==null||_0x58d7de[_0x5be27a(0x19b)](_0x57d2c6=>_0x57d2c6[_0x5be27a(0x192)]());}[_0x1484f9(0x75)](){const _0x189562=_0x1484f9;return X[_0x189562(0xd3)](this['_context'][_0x189562(0x6f)],this['_context']);}};ve=pt([ae(0x1,a[_0x1484f9(0x252)](X[_0x1484f9(0x179)])),ae(0x2,a[_0x1484f9(0x252)](x)),ae(0x3,a['Inject'](a[_0x1484f9(0x180)]))],ve);function Et(_0x135368){const _0xc3a478=_0x1484f9,_0xbcbbfe=new Map();return _0x135368['forEach'](_0x458c6b=>{const _0x302ca1=_0x1dbb;if(_0xbcbbfe[_0x302ca1(0x17c)](_0x458c6b[_0x302ca1(0x259)])){const _0x435441=_0xbcbbfe[_0x302ca1(0x242)](_0x458c6b[_0x302ca1(0x259)]);_0x435441[_0x302ca1(0xb4)]+=',\x20'+_0x458c6b[_0x302ca1(0xb4)];}else _0xbcbbfe[_0x302ca1(0x2df)](_0x458c6b[_0x302ca1(0x259)],_0x458c6b);}),Array['from'](_0xbcbbfe[_0xc3a478(0x211)]());}var E=function(){const _0x4a59ee=_0x1484f9;return E=Object[_0x4a59ee(0x2e5)]||function(_0x3d4e93){const _0x35f780=_0x4a59ee;for(var _0x8c8cc3,_0x469cd7=0x1,_0x30e050=arguments[_0x35f780(0x1fe)];_0x469cd7<_0x30e050;_0x469cd7++){_0x8c8cc3=arguments[_0x469cd7];for(var _0x5c4e63 in _0x8c8cc3)Object[_0x35f780(0x26c)][_0x35f780(0x1ce)]['call'](_0x8c8cc3,_0x5c4e63)&&(_0x3d4e93[_0x5c4e63]=_0x8c8cc3[_0x5c4e63]);}return _0x3d4e93;},E[_0x4a59ee(0x22d)](this,arguments);},Tt=function(_0x3ddeb3,_0x370df0){const _0x207cc0=_0x1484f9;var _0x3a4529={};for(var _0xc334c1 in _0x3ddeb3)Object[_0x207cc0(0x26c)][_0x207cc0(0x1ce)]['call'](_0x3ddeb3,_0xc334c1)&&_0x370df0[_0x207cc0(0x99)](_0xc334c1)<0x0&&(_0x3a4529[_0xc334c1]=_0x3ddeb3[_0xc334c1]);if(_0x3ddeb3!=null&&typeof Object['getOwnPropertySymbols']==_0x207cc0(0xb0)){for(var _0x4d2fa1=0x0,_0xc334c1=Object[_0x207cc0(0x8d)](_0x3ddeb3);_0x4d2fa1<_0xc334c1[_0x207cc0(0x1fe)];_0x4d2fa1++)_0x370df0['indexOf'](_0xc334c1[_0x4d2fa1])<0x0&&Object['prototype'][_0x207cc0(0x212)][_0x207cc0(0x1a5)](_0x3ddeb3,_0xc334c1[_0x4d2fa1])&&(_0x3a4529[_0xc334c1[_0x4d2fa1]]=_0x3ddeb3[_0xc334c1[_0x4d2fa1]]);}return _0x3a4529;},pe=M[_0x1484f9(0x164)](function(_0x18aa02,_0x1b3752){const _0x462801=_0x1484f9;var _0x2365a4=_0x18aa02[_0x462801(0x153)],_0x36513e=_0x18aa02['id'],_0x30c01a=_0x18aa02[_0x462801(0xf7)],_0x106be8=_0x18aa02[_0x462801(0x116)],_0x372dd4=Tt(_0x18aa02,[_0x462801(0x153),'id','className',_0x462801(0x116)]),_0x5e3858=_0x462801(0x177)[_0x462801(0x11b)](_0x36513e,'\x20')[_0x462801(0x11b)](_0x30c01a||'')[_0x462801(0x2c7)](),_0x2739a7=M['useRef']('_'[_0x462801(0x11b)](Dt()));return Ae(_0x2365a4,''['concat'](_0x36513e),{'defIds':_0x2365a4[_0x462801(0x2ad)],'idSuffix':_0x2739a7[_0x462801(0x277)]},E({'ref':_0x1b3752,'className':_0x5e3858},_0x372dd4),_0x106be8);});function Ae(_0x3eedd0,_0xbd326a,_0x20f0cb,_0x4c9b2e,_0x3e0f28){const _0x2c0193=_0x1484f9;return M[_0x2c0193(0x24e)](_0x3eedd0[_0x2c0193(0x10d)],E(E({'key':_0xbd326a},Ot(_0x3eedd0,_0x20f0cb,_0x3e0f28)),_0x4c9b2e),(Rt(_0x3eedd0,_0x20f0cb)[_0x2c0193(0x14c)]||[])[_0x2c0193(0x238)](function(_0x300a78,_0x1506ec){const _0x1ee17c=_0x2c0193;return Ae(_0x300a78,''[_0x1ee17c(0x11b)](_0xbd326a,'-')[_0x1ee17c(0x11b)](_0x3eedd0[_0x1ee17c(0x10d)],'-')[_0x1ee17c(0x11b)](_0x1506ec),_0x20f0cb,void 0x0,_0x3e0f28);}));}function Ot(_0x134664,_0x465dc1,_0x157e8b){const _0x1da6c3=_0x1484f9;var _0x21351f=E({},_0x134664[_0x1da6c3(0x2aa)]);_0x157e8b!=null&&_0x157e8b[_0x1da6c3(0x258)]&&_0x21351f[_0x1da6c3(0x1d2)]===_0x1da6c3(0x258)&&(_0x21351f[_0x1da6c3(0x1d2)]=_0x157e8b[_0x1da6c3(0x258)]),_0x134664[_0x1da6c3(0x10d)]===_0x1da6c3(0x2ed)&&_0x21351f['id']&&(_0x21351f['id']=_0x21351f['id']+_0x465dc1['idSuffix']),Object[_0x1da6c3(0xd6)](_0x21351f)[_0x1da6c3(0x19b)](function(_0x259e44){const _0x4f46fc=_0x1da6c3;var _0x2d75d6=_0x259e44[0x0],_0xc3cd58=_0x259e44[0x1];_0x2d75d6===_0x4f46fc(0x2ed)&&typeof _0xc3cd58==_0x4f46fc(0x2c0)&&(_0x21351f[_0x2d75d6]=_0xc3cd58[_0x4f46fc(0x107)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x465dc1[_0x4f46fc(0x270)],')')));});var _0x5dc900=_0x465dc1[_0x1da6c3(0x2ad)];return!_0x5dc900||_0x5dc900[_0x1da6c3(0x1fe)]===0x0||(_0x134664[_0x1da6c3(0x10d)]===_0x1da6c3(0x1f2)&&_0x21351f[_0x1da6c3(0x278)]&&(_0x21351f[_0x1da6c3(0x278)]=_0x21351f['xlink:href']+_0x465dc1[_0x1da6c3(0x270)]),Object[_0x1da6c3(0xd6)](_0x21351f)[_0x1da6c3(0x19b)](function(_0x140333){const _0x426cb7=_0x1da6c3;var _0xd5298=_0x140333[0x0],_0x322170=_0x140333[0x1];typeof _0x322170==_0x426cb7(0x2c0)&&(_0x21351f[_0xd5298]=_0x322170[_0x426cb7(0x107)](/url\(#(.*)\)/,_0x426cb7(0x97)[_0x426cb7(0x11b)](_0x465dc1[_0x426cb7(0x270)],')')));})),_0x21351f;}function Rt(_0x8548f4,_0xffdeb2){const _0x256d68=_0x1484f9;var _0x189e0a,_0x1b7126=_0xffdeb2[_0x256d68(0x2ad)];return!_0x1b7126||_0x1b7126['length']===0x0?_0x8548f4:_0x8548f4['tag']===_0x256d68(0x71)&&(!((_0x189e0a=_0x8548f4[_0x256d68(0x14c)])===null||_0x189e0a===void 0x0)&&_0x189e0a[_0x256d68(0x1fe)])?E(E({},_0x8548f4),{'children':_0x8548f4[_0x256d68(0x14c)][_0x256d68(0x238)](function(_0x5ad889){const _0xc8c77c=_0x256d68;return typeof _0x5ad889[_0xc8c77c(0x2aa)]['id']==_0xc8c77c(0x2c0)&&_0x1b7126&&_0x1b7126[_0xc8c77c(0x109)](_0x5ad889[_0xc8c77c(0x2aa)]['id'])?E(E({},_0x5ad889),{'attrs':E(E({},_0x5ad889['attrs']),{'id':_0x5ad889[_0xc8c77c(0x2aa)]['id']+_0xffdeb2[_0xc8c77c(0x270)]})}):_0x5ad889;})}):_0x8548f4;}function Dt(){const _0x52a46f=_0x1484f9;return Math[_0x52a46f(0x272)]()[_0x52a46f(0x210)](0x24)[_0x52a46f(0x13b)](0x2,0x8);}pe[_0x1484f9(0x1e8)]=_0x1484f9(0x1a8);var Ut={'tag':_0x1484f9(0x18a),'attrs':{'xmlns':_0x1484f9(0x257),'fill':'none','viewBox':_0x1484f9(0x199),'width':_0x1484f9(0xf1),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x1484f9(0x235)},'children':[{'tag':_0x1484f9(0x224),'attrs':{'stroke':_0x1484f9(0x193),'d':_0x1484f9(0x2ae),'strokeLinecap':_0x1484f9(0x1a2),'strokeLinejoin':_0x1484f9(0x1a2),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1484f9(0x230),'attrs':{'id':_0x1484f9(0x132)},'children':[{'tag':_0x1484f9(0x224),'attrs':{'fill':_0x1484f9(0x219),'d':_0x1484f9(0xeb)}}]}]}],'defIds':[_0x1484f9(0x132)]},ye=M[_0x1484f9(0x164)](function(_0x1a1067,_0x157a02){const _0x14c29f=_0x1484f9;return M[_0x14c29f(0x24e)](pe,Object[_0x14c29f(0x2e5)]({},_0x1a1067,{'id':_0x14c29f(0x14f),'ref':_0x157a02,'icon':Ut}));});ye['displayName']='OffLineIcon';var Nt={'tag':_0x1484f9(0x18a),'attrs':{'xmlns':_0x1484f9(0x257),'fill':'none','viewBox':_0x1484f9(0x214),'width':_0x1484f9(0xf1),'height':_0x1484f9(0xf1)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x1484f9(0x237),'strokeLinecap':'round','strokeLinejoin':_0x1484f9(0x1a2),'strokeWidth':1.2}}]},{'tag':_0x1484f9(0x71),'attrs':{},'children':[{'tag':_0x1484f9(0x230),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x1484f9(0x224),'attrs':{'fill':'white','d':_0x1484f9(0xeb),'transform':_0x1484f9(0x15f)}}]}]}],'defIds':[_0x1484f9(0x1a6)]},$e=M[_0x1484f9(0x164)](function(_0x1958da,_0x325abe){const _0x2813d0=_0x1484f9;return M[_0x2813d0(0x24e)](pe,Object['assign']({},_0x1958da,{'id':_0x2813d0(0x11f),'ref':_0x325abe,'icon':Nt}));});$e[_0x1484f9(0x1e8)]=_0x1484f9(0x1c2);function Mt(_0x47ba4e){const _0x4de9af=_0x1484f9;switch(_0x47ba4e){case u[_0x4de9af(0xac)]['OFFLINE']:return _0x4de9af(0x1f9);case u[_0x4de9af(0xac)][_0x4de9af(0x232)]:return _0x4de9af(0x2cb);case u[_0x4de9af(0xac)][_0x4de9af(0x1d1)]:return _0x4de9af(0xe7);case u[_0x4de9af(0xac)][_0x4de9af(0x13d)]:return'collabStatus.notCollab';case u[_0x4de9af(0xac)][_0x4de9af(0x86)]:case u[_0x4de9af(0xac)][_0x4de9af(0x2b9)]:return _0x4de9af(0x295);case u[_0x4de9af(0xac)]['SYNCED']:case u[_0x4de9af(0xac)][_0x4de9af(0x117)]:return _0x4de9af(0x2b7);}}function xe(_0x10f957){const _0x1b20dc=_0x1484f9,{status$:_0x373d84}=_0x10f957,_0x3ef1a8=T[_0x1b20dc(0x268)](_0x373d84,u[_0x1b20dc(0xac)][_0x1b20dc(0x13d)]),_0x2ff3b8=T[_0x1b20dc(0xc3)](a[_0x1b20dc(0x18e)]),_0x285bd2=T['useDependency'](u['CollaborationSessionService']),_0x575379=_0x3ef1a8!==u[_0x1b20dc(0xac)][_0x1b20dc(0x233)],_0x5a1051=_0x2ff3b8['t'](Mt(_0x3ef1a8)),_0x1cd5ff=_0x575379?w[_0x1b20dc(0x2bc)]($e,{}):w[_0x1b20dc(0x2bc)](ye,{}),_0x3168fb=M[_0x1b20dc(0xa1)](()=>{_0x575379||_0x285bd2['reconnect']();},[_0x575379,_0x285bd2]);function _0x5abed9(){const _0x81ea93=_0x1b20dc;return w[_0x81ea93(0x291)](_0x81ea93(0x1c3),{'className':_0x81ea93(0x1e0),'onClick':_0x3168fb,'children':[w[_0x81ea93(0x2bc)](_0x81ea93(0x1c3),{'className':D[_0x81ea93(0xdd)](_0x81ea93(0x2c4),{'univer-text-green-500':_0x575379,'univer-text-red-500':!_0x575379}),'children':_0x1cd5ff}),w[_0x81ea93(0x2bc)]('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x5a1051})]});}return _0x575379?_0x5abed9():w[_0x1b20dc(0x2bc)](D['Tooltip'],{'title':_0x2ff3b8['t']('collab-client.tooltip.reconnect'),'children':_0x5abed9()});}var Lt=Object[_0x1484f9(0x21b)],wt=(_0x1f0290,_0x4b2550,_0x2a14df,_0x3ab129)=>{const _0x3dc9e8=_0x1484f9;for(var _0x298796=_0x3ab129>0x1?void 0x0:_0x3ab129?Lt(_0x4b2550,_0x2a14df):_0x4b2550,_0xe55663=_0x1f0290[_0x3dc9e8(0x1fe)]-0x1,_0x1bd2a8;_0xe55663>=0x0;_0xe55663--)(_0x1bd2a8=_0x1f0290[_0xe55663])&&(_0x298796=_0x1bd2a8(_0x298796)||_0x298796);return _0x298796;},V=(_0x47d398,_0x3f494d)=>(_0x43d47c,_0x37b7c7)=>_0x3f494d(_0x43d47c,_0x37b7c7,_0x47d398);exports[_0x1484f9(0xdc)]=class extends a[_0x1484f9(0x293)]{constructor(_0x2edd15,_0x152580,_0x56d6c9,_0x706db6){const _0x2bc4c8=_0x1484f9;super(),h(this,_0x2bc4c8(0x108),new d[(_0x2bc4c8(0x21d))](u[_0x2bc4c8(0xac)]['NOT_COLLAB'])),(this[_0x2bc4c8(0x83)]=_0x2edd15,this['_injector']=_0x152580,this[_0x2bc4c8(0x203)]=_0x56d6c9,this['_uiPartsService']=_0x706db6,this[_0x2bc4c8(0x1c7)](),this[_0x2bc4c8(0x15d)]());}[_0x1484f9(0x15d)](){const _0x40e25b=_0x1484f9;this[_0x40e25b(0x161)](this[_0x40e25b(0x83)][_0x40e25b(0x8c)]['pipe'](d[_0x40e25b(0x20e)](()=>{const _0x5d94e2=_0x40e25b,_0x3c8f53=this['_univerInstanceService']['getFocusedUnit']();return _0x3c8f53?this['_collaborationController'][_0x5d94e2(0x240)](_0x3c8f53[_0x5d94e2(0x170)]()):d['of'](null);}),d[_0x40e25b(0x20e)](_0x4ae407=>_0x4ae407?_0x4ae407[_0x40e25b(0x124)]:d['of'](u['CollaborationStatus'][_0x40e25b(0x13d)])))[_0x40e25b(0x2d1)](_0x967ac3=>{this['_status$']['next'](_0x967ac3);}));}['_initStatusComponent'](){const _0x32f49c=_0x1484f9;this[_0x32f49c(0x161)](this[_0x32f49c(0x6b)][_0x32f49c(0x182)](T[_0x32f49c(0x2a5)][_0x32f49c(0x1e3)],()=>T['connectInjector'](Pt({'status$':this[_0x32f49c(0x108)][_0x32f49c(0x1c1)]()}),this['_injector'])));}},exports[_0x1484f9(0xdc)]=wt([V(0x0,a[_0x1484f9(0x1a1)]),V(0x1,a[_0x1484f9(0x252)](a['Injector'])),V(0x2,a[_0x1484f9(0x252)](u['CollaborationController'])),V(0x3,T[_0x1484f9(0x284)])],exports['DesktopCollaborationStatusDisplayController']);function Pt(_0xddd683){const {status$:_0xefc7f0}=_0xddd683;return function(){const _0x3acedb=_0x1dbb;return w[_0x3acedb(0x2bc)](xe,{'status$':_0xefc7f0});};}var At=Object[_0x1484f9(0x21b)],yt=(_0x3433b8,_0x47236b,_0x19f2fe,_0x424a56)=>{const _0x8ee7=_0x1484f9;for(var _0x3e3b0e=_0x424a56>0x1?void 0x0:_0x424a56?At(_0x47236b,_0x19f2fe):_0x47236b,_0x1a1781=_0x3433b8[_0x8ee7(0x1fe)]-0x1,_0x3e6a77;_0x1a1781>=0x0;_0x1a1781--)(_0x3e6a77=_0x3433b8[_0x1a1781])&&(_0x3e3b0e=_0x3e6a77(_0x3e3b0e)||_0x3e3b0e);return _0x3e3b0e;},y=(_0x47c891,_0x2e6170)=>(_0x231e75,_0x500a59)=>_0x2e6170(_0x231e75,_0x500a59,_0x47c891);let q=class extends a[_0x1484f9(0x293)]{constructor(_0x3b115e,_0xd589db,_0x3272aa,_0x4f71c0,_0x184d54,_0x193e8d){const _0x569917=_0x1484f9;super(),this[_0x569917(0x2c9)]=_0x3b115e,this[_0x569917(0x28d)]=_0xd589db,this[_0x569917(0xe8)]=_0x3272aa,this[_0x569917(0xce)]=_0x4f71c0,this[_0x569917(0x28f)]=_0x184d54,this[_0x569917(0x286)]=_0x193e8d,this[_0x569917(0x93)](),this[_0x569917(0xe1)]();}[_0x1484f9(0x93)](){const _0x1ca98b=_0x1484f9;this['disposeWithMe'](this[_0x1ca98b(0x2c9)][_0x1ca98b(0x12b)](()=>{const _0x4a5436=_0x1ca98b;if(this[_0x4a5436(0x28d)][_0x4a5436(0xf6)][_0x4a5436(0x81)])return this[_0x4a5436(0x286)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x1484f9(0xe1)](){const _0x20bd8c=_0x1484f9;this[_0x20bd8c(0x161)](this[_0x20bd8c(0xe8)][_0x20bd8c(0x67)][_0x20bd8c(0x2d1)](_0xb04b76=>{const _0x34c30c=_0x20bd8c;_0xb04b76['id']===u[_0x34c30c(0xab)][_0x34c30c(0x18d)]&&this[_0x34c30c(0xce)]['show']({'type':D[_0x34c30c(0x2eb)][_0x34c30c(0x167)],'content':this['_localeService']['t'](_0x34c30c(0xa3))}),_0xb04b76['id']===u[_0x34c30c(0xab)][_0x34c30c(0x2cd)]&&this['_messageService']['show']({'type':D[_0x34c30c(0x2eb)]['Warning'],'content':this['_localeService']['t'](_0x34c30c(0x23a))}),_0xb04b76['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this[_0x34c30c(0x28f)][_0x34c30c(0x1d8)]({'title':this['_localeService']['t'](_0x34c30c(0x190)),'content':this[_0x34c30c(0x286)]['t'](_0x34c30c(0x260)),'type':_0x34c30c(0xa0),'duration':0x0}),_0xb04b76['id']===u[_0x34c30c(0xab)]['CONFLICT']&&this[_0x34c30c(0xce)][_0x34c30c(0x1d8)]({'type':D[_0x34c30c(0x2eb)]['Error'],'content':this['_localeService']['t'](_0x34c30c(0x23a))+'('+_0xb04b76[_0x34c30c(0x70)]+')'}),_0xb04b76['id']===u[_0x34c30c(0xab)][_0x34c30c(0x1a0)]&&this['_messageService']['show']({'type':D['MessageType']['Warning'],'content':this[_0x34c30c(0x286)]['t'](_0xb04b76['data']||'')}),_0xb04b76['id']===u[_0x34c30c(0xab)][_0x34c30c(0x8b)]&&this[_0x34c30c(0xce)]['show']({'type':D[_0x34c30c(0x2eb)][_0x34c30c(0x167)],'content':this[_0x34c30c(0x286)]['t']('session.will-retry')}),_0xb04b76['id']===u[_0x34c30c(0xab)][_0x34c30c(0x2d5)]&&this['_messageService'][_0x34c30c(0x1d8)]({'type':D[_0x34c30c(0x2eb)][_0x34c30c(0xdb)],'content':this[_0x34c30c(0x286)]['t'](_0x34c30c(0x2bf))}),_0xb04b76['id']===u['CollaborationUIEventId'][_0x34c30c(0x1ec)]&&this['_messageService'][_0x34c30c(0x1d8)]({'type':D[_0x34c30c(0x2eb)][_0x34c30c(0xdb)],'content':this[_0x34c30c(0x286)]['t'](_0x34c30c(0x25e))});}));}};q=yt([y(0x0,T[_0x1484f9(0xc8)]),y(0x1,u[_0x1484f9(0x169)]),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,T['IMessageService']),y(0x4,T['INotificationService']),y(0x5,a[_0x1484f9(0x252)](a[_0x1484f9(0x18e)]))],q);const $t='collaboration-client-ui.config',Ue={},be=a[_0x1484f9(0x226)]('uni.network.url-service');var xt=Object['getOwnPropertyDescriptor'],jt=(_0x296094,_0x39c491,_0x5db273,_0xa3ab6d)=>{const _0x33928f=_0x1484f9;for(var _0x443255=_0xa3ab6d>0x1?void 0x0:_0xa3ab6d?xt(_0x39c491,_0x5db273):_0x39c491,_0x46dbf0=_0x296094[_0x33928f(0x1fe)]-0x1,_0x32963a;_0x46dbf0>=0x0;_0x46dbf0--)(_0x32963a=_0x296094[_0x46dbf0])&&(_0x443255=_0x32963a(_0x443255)||_0x443255);return _0x443255;},H=(_0x46bdf6,_0x3dd51e)=>(_0x1f0675,_0x170f11)=>_0x3dd51e(_0x1f0675,_0x170f11,_0x46bdf6);exports[_0x1484f9(0x171)]=class extends a[_0x1484f9(0x1fc)]{constructor(_0x26d3ab,_0x2fb48e,_0xa4db47,_0x2a3cc4,_0x1ae24e){const _0x1c27f5=_0x1484f9;super(),this['_urlService']=_0x26d3ab,this['_logService']=_0x2fb48e,this['_commandService']=_0xa4db47,this[_0x1c27f5(0x25b)]=_0x2a3cc4,_0x1ae24e?_0x1ae24e==null||_0x1ae24e['whenReady']()[_0x1c27f5(0x1aa)](()=>this[_0x1c27f5(0x1df)]()):(this[_0x1c27f5(0x150)][_0x1c27f5(0x201)]('[CollaborationDataLoaderController]',_0x1c27f5(0x9d)),this[_0x1c27f5(0x1df)]());}async[_0x1484f9(0x1df)](){const _0x10f5fc=_0x1484f9,_0x48f198=this[_0x10f5fc(0x142)][_0x10f5fc(0x1f1)](_0x10f5fc(0x6f)),_0x173755=this[_0x10f5fc(0x142)][_0x10f5fc(0x1f1)]('type'),_0x33372f=this[_0x10f5fc(0x142)][_0x10f5fc(0x1f1)](_0x10f5fc(0x1f5));if(!_0x48f198||!_0x173755){this[_0x10f5fc(0x150)][_0x10f5fc(0x201)](_0x10f5fc(0x14e),_0x10f5fc(0x2b5));return;}const _0x3e0021=await this[_0x10f5fc(0x25b)]['loadUnit'](_0x48f198,Number(_0x173755),_0x33372f);_0x3e0021&&_0x3e0021 instanceof a[_0x10f5fc(0x19a)]&&this[_0x10f5fc(0x206)](_0x3e0021);}async[_0x1484f9(0x206)](_0x140d12){const _0x5b47d1=_0x1484f9;await this[_0x5b47d1(0x239)](_0x140d12),_0x140d12[_0x5b47d1(0x14a)][_0x5b47d1(0xe6)](d['takeUntil'](this['dispose$']))[_0x5b47d1(0x2d1)](_0x58f93a=>{const _0x57b2d3=_0x5b47d1;_0x58f93a&&this[_0x57b2d3(0xcd)](_0x58f93a);}),this['_urlService'][_0x5b47d1(0x2b6)][_0x5b47d1(0xe6)](d[_0x5b47d1(0xbb)](this[_0x5b47d1(0x1de)]))[_0x5b47d1(0x2d1)](()=>this[_0x5b47d1(0x239)](_0x140d12));}[_0x1484f9(0xcd)](_0x3f66bc,_0x46226=!0x1){const _0x2b265f=_0x1484f9,_0xbab8fc=this['_urlService'][_0x2b265f(0x1f1)](_0x2b265f(0x1f5));_0x3f66bc[_0x2b265f(0x1e5)]()!==_0xbab8fc&&this[_0x2b265f(0x142)][_0x2b265f(0x1e1)](_0x2b265f(0x1f5),_0x3f66bc[_0x2b265f(0x1e5)](),_0x46226);}async[_0x1484f9(0x239)](_0x1ff9de){const _0x4ca57e=_0x1484f9;var _0x470b49;const _0x4de9b7=this[_0x4ca57e(0x142)][_0x4ca57e(0x1f1)](_0x4ca57e(0x1f5));if(!_0x4de9b7||!_0x1ff9de[_0x4ca57e(0x1dc)](_0x4de9b7)){const _0x2ffb19=_0x1ff9de[_0x4ca57e(0x17a)]()[0x0],_0x86487a=_0x1ff9de['getSheetBySheetId'](_0x2ffb19);if(!_0x86487a)return;this[_0x4ca57e(0xcd)](_0x86487a,!0x0),await this[_0x4ca57e(0x25d)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x1ff9de['getUnitId'](),'subUnitId':_0x2ffb19});return;}((_0x470b49=_0x1ff9de[_0x4ca57e(0xb6)]())==null?void 0x0:_0x470b49[_0x4ca57e(0x1e5)]())!==_0x4de9b7&&await this[_0x4ca57e(0x25d)][_0x4ca57e(0x22f)](g[_0x4ca57e(0x1fa)]['id'],{'unitId':_0x1ff9de['getUnitId'](),'subUnitId':_0x4de9b7});}},exports[_0x1484f9(0x171)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x1484f9(0x1af)]),H(0x3,a[_0x1484f9(0x252)](u[_0x1484f9(0x8f)])),H(0x4,a[_0x1484f9(0x95)](Ke[_0x1484f9(0x1c0)]))],exports[_0x1484f9(0x171)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x2b8efe,_0x4c94fb,_0x803a12,_0x516fe4)=>{const _0x6cc375=_0x1484f9;for(var _0x59899a=_0x516fe4>0x1?void 0x0:_0x516fe4?Bt(_0x4c94fb,_0x803a12):_0x4c94fb,_0x2e75ac=_0x2b8efe[_0x6cc375(0x1fe)]-0x1,_0x1dcd22;_0x2e75ac>=0x0;_0x2e75ac--)(_0x1dcd22=_0x2b8efe[_0x2e75ac])&&(_0x59899a=_0x1dcd22(_0x59899a)||_0x59899a);return _0x59899a;},ce=(_0x1e3307,_0x15700f)=>(_0x4f0641,_0x5c09e6)=>_0x15700f(_0x4f0641,_0x5c09e6,_0x1e3307);let z=class{constructor(_0x4261ca,_0x374a4c,_0x56dd03){const _0x5e74d8=_0x1484f9;this['_injector']=_0x4261ca,this[_0x5e74d8(0xd9)]=_0x374a4c,this['_renderManagerService']=_0x56dd03;}[_0x1484f9(0xba)](_0x541a1c){const _0x5d8bed=_0x1484f9;this[_0x5d8bed(0x205)](_0x541a1c),this['_transformPreviousActiveRange'](_0x541a1c);}[_0x1484f9(0x2a1)](_0x354a8e){const _0x37956a=_0x1484f9,{unitID:_0x3bc9e9}=_0x354a8e,_0x1421ca=this[_0x37956a(0x111)][_0x37956a(0x28c)](_0x3bc9e9)['with'](b[_0x37956a(0x2a2)]),{redoCache:_0x1a0073}=_0x1421ca['getUndoRedoMutationParamsCache']();if(_0x1a0073[_0x37956a(0x1fe)]===0x0)return _0x354a8e;let _0x149247=a[_0x37956a(0x25f)][_0x37956a(0x274)](_0x354a8e['mutations'][0x0]);for(let _0x46b914=0x0;_0x46b914<_0x1a0073[_0x37956a(0x1fe)];_0x46b914++){const _0x216958={'id':_0x37956a(0x2a6),'params':{..._0x1a0073[_0x46b914]}},_0x3520df=this[_0x37956a(0xd9)]['transformMutation'](_0x149247,_0x216958,!0x1);if(m[_0x37956a(0xa9)](_0x3520df))throw _0x3520df[_0x37956a(0xa0)];_0x149247=_0x3520df[_0x37956a(0x241)];}return{...a['Tools'][_0x37956a(0x274)](_0x354a8e),'mutations':[_0x149247]};}[_0x1484f9(0x205)](_0x63a4e2){const _0x337ffc=_0x1484f9,{unitID:_0x4665b4}=_0x63a4e2,_0x1aa112=this[_0x337ffc(0x111)][_0x337ffc(0x28c)](_0x4665b4)[_0x337ffc(0x11c)](b[_0x337ffc(0x2a2)]),{undoCache:_0x20021f,redoCache:_0x15be49}=_0x1aa112[_0x337ffc(0x27b)]();if(_0x20021f[_0x337ffc(0x1fe)]===0x0||_0x15be49[_0x337ffc(0x1fe)]===0x0)return;const _0x5005e1=[],_0x36259b=[];let _0x55247e=a[_0x337ffc(0x25f)]['deepClone'](_0x63a4e2['mutations'][0x0]),_0x169976=a['Tools'][_0x337ffc(0x274)](_0x63a4e2[_0x337ffc(0x151)][0x0]);for(let _0x4a310d=_0x20021f[_0x337ffc(0x1fe)]-0x1;_0x4a310d>=0x0;_0x4a310d--){const _0x508583={'id':_0x337ffc(0x2a6),'params':{..._0x20021f[_0x4a310d]}},_0x1891dc={'id':'doc.mutation.rich-text-editing','params':{..._0x15be49[_0x4a310d]}},_0x46c4f3=this[_0x337ffc(0xd9)][_0x337ffc(0xad)](_0x55247e,_0x508583,!0x1),_0x20b5ca=this[_0x337ffc(0xd9)]['transformMutation'](_0x169976,_0x1891dc,!0x1);if(m[_0x337ffc(0xa9)](_0x46c4f3))throw _0x46c4f3['error'];if(m[_0x337ffc(0xa9)](_0x20b5ca))throw _0x20b5ca[_0x337ffc(0xa0)];_0x5005e1[_0x337ffc(0x1ef)](_0x46c4f3['m2Prime'][_0x337ffc(0x172)]),_0x36259b[_0x337ffc(0x1ef)](_0x20b5ca[_0x337ffc(0x136)][_0x337ffc(0x172)]),_0x55247e=_0x46c4f3[_0x337ffc(0x241)],_0x169976=_0x20b5ca[_0x337ffc(0x241)];}_0x1aa112['setUndoRedoMutationParamsCache']({'undoCache':_0x5005e1,'redoCache':_0x36259b});}['_transformPreviousActiveRange'](_0x408a8a){const _0x59c7ef=_0x1484f9,{unitID:_0x19c4e2}=_0x408a8a,_0x1cfdd5=this['_renderManagerService'][_0x59c7ef(0x28c)](_0x19c4e2)[_0x59c7ef(0x11c)](b[_0x59c7ef(0x2a2)]),_0x307fd1=_0x1cfdd5[_0x59c7ef(0x166)]();if(_0x307fd1==null)return;const _0x175bd3=[{'id':_0x59c7ef(0x2a6),'params':{'unitId':_0x408a8a[_0x59c7ef(0x22e)],'actions':null,'textRanges':[_0x307fd1]}}],_0x15b499=this[_0x59c7ef(0xd9)][_0x59c7ef(0x1d4)](_0x408a8a,_0x175bd3);if(!m[_0x59c7ef(0x275)](_0x15b499))throw _0x15b499[_0x59c7ef(0xa0)];const _0x4ee335=_0x15b499[_0x59c7ef(0x136)][0x0]['params'][_0x59c7ef(0xa2)];Array['isArray'](_0x4ee335)&&_0x4ee335['length']&&_0x1cfdd5[_0x59c7ef(0x72)](_0x4ee335[0x0]);}};z=kt([ce(0x0,a[_0x1484f9(0x252)](a[_0x1484f9(0xa4)])),ce(0x1,m['ITransformService']),ce(0x2,p[_0x1484f9(0x112)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x2fb6aa,_0x24196f,_0x37c1e2,_0x47b59b)=>{const _0x4aa718=_0x1484f9;for(var _0x117f34=_0x47b59b>0x1?void 0x0:_0x47b59b?Ht(_0x24196f,_0x37c1e2):_0x24196f,_0x3a2372=_0x2fb6aa[_0x4aa718(0x1fe)]-0x1,_0x33c906;_0x3a2372>=0x0;_0x3a2372--)(_0x33c906=_0x2fb6aa[_0x3a2372])&&(_0x117f34=_0x33c906(_0x117f34)||_0x117f34);return _0x117f34;},le=(_0x381f72,_0xe7f10a)=>(_0x23e4d5,_0x289625)=>_0xe7f10a(_0x23e4d5,_0x289625,_0x381f72);let J=class{constructor(_0x5ac5b8,_0x327725,_0x12b09e){const _0x5efd84=_0x1484f9;this['_injector']=_0x5ac5b8,this['_transformService']=_0x327725,this[_0x5efd84(0x26e)]=_0x12b09e;}[_0x1484f9(0x236)](_0x323a2a){this['_transformHistoryAndStateStack'](_0x323a2a);}['transformRemoteChangeset'](_0x52b92a){const _0x2b977b=_0x1484f9,{unitID:_0x5ff086}=_0x52b92a,{collaboration:_0x19d8e8}=this[_0x2b977b(0x26e)]['getStateCache'](_0x5ff086);if(_0x19d8e8[_0x2b977b(0x1fe)]===0x0)return _0x52b92a;let _0x3b8c50=a['Tools']['deepClone'](_0x52b92a['mutations'][0x0]);for(let _0x4b3c05=0x0;_0x4b3c05<_0x19d8e8[_0x2b977b(0x1fe)];_0x4b3c05++){const _0x582f48={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x19d8e8[_0x4b3c05]['unitId'],..._0x19d8e8[_0x4b3c05][_0x2b977b(0x28e)]}},_0x2de23e=this[_0x2b977b(0xd9)][_0x2b977b(0xad)](_0x3b8c50,_0x582f48,!0x1);if(m[_0x2b977b(0xa9)](_0x2de23e))throw _0x2de23e[_0x2b977b(0xa0)];_0x3b8c50=_0x2de23e[_0x2b977b(0x241)];}return{...a['Tools'][_0x2b977b(0x274)](_0x52b92a),'mutations':[_0x3b8c50]};}['_transformHistoryAndStateStack'](_0x494068){const _0x3ca5bc=_0x1484f9,{unitID:_0x3380df}=_0x494068,{history:_0x3f71cb,collaboration:_0x42df30}=this['_docStateChangeManagerService'][_0x3ca5bc(0xc1)](_0x3380df);if(_0x3f71cb[_0x3ca5bc(0x1fe)]===0x0&&_0x42df30[_0x3ca5bc(0x1fe)]===0x0)return;const _0x4e2dbb=[],_0x1e0dbb=[];let _0x4e7309=a[_0x3ca5bc(0x25f)][_0x3ca5bc(0x274)](_0x494068[_0x3ca5bc(0x151)][0x0]),_0x2093bd=a[_0x3ca5bc(0x25f)][_0x3ca5bc(0x274)](_0x494068[_0x3ca5bc(0x151)][0x0]);for(let _0x2a0bfa=_0x3f71cb[_0x3ca5bc(0x1fe)]-0x1;_0x2a0bfa>=0x0;_0x2a0bfa--){const _0x1b4298={'id':_0x3ca5bc(0x2a6),'params':{'unitId':_0x3f71cb[_0x2a0bfa][_0x3ca5bc(0x7f)],..._0x3f71cb[_0x2a0bfa]['undoState']}},_0x540b57={'id':_0x3ca5bc(0x2a6),'params':{'unitId':_0x3f71cb[_0x2a0bfa][_0x3ca5bc(0x7f)],..._0x3f71cb[_0x2a0bfa]['redoState']}},_0x230f86=this[_0x3ca5bc(0xd9)][_0x3ca5bc(0xad)](_0x4e7309,_0x1b4298,!0x1),_0x353ce6=this[_0x3ca5bc(0xd9)][_0x3ca5bc(0xad)](_0x2093bd,_0x540b57,!0x1);if(m['isTransformMutationFailure'](_0x230f86))throw _0x230f86[_0x3ca5bc(0xa0)];if(m[_0x3ca5bc(0xa9)](_0x353ce6))throw _0x353ce6[_0x3ca5bc(0xa0)];_0x4e2dbb['unshift']({..._0x3f71cb[_0x2a0bfa],'undoState':_0x230f86[_0x3ca5bc(0x136)]['params'],'redoState':_0x353ce6[_0x3ca5bc(0x136)]['params']}),_0x4e7309=_0x230f86['m1Prime'],_0x2093bd=_0x353ce6[_0x3ca5bc(0x241)];}_0x4e7309=a[_0x3ca5bc(0x25f)][_0x3ca5bc(0x274)](_0x494068[_0x3ca5bc(0x151)][0x0]),_0x2093bd=a['Tools'][_0x3ca5bc(0x274)](_0x494068[_0x3ca5bc(0x151)][0x0]);for(let _0x1ef5a6=_0x42df30[_0x3ca5bc(0x1fe)]-0x1;_0x1ef5a6>=0x0;_0x1ef5a6--){const _0x1a205e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x42df30[_0x1ef5a6][_0x3ca5bc(0x7f)],..._0x42df30[_0x1ef5a6][_0x3ca5bc(0x146)]}},_0x4b0152={'id':_0x3ca5bc(0x2a6),'params':{'unitId':_0x42df30[_0x1ef5a6][_0x3ca5bc(0x7f)],..._0x42df30[_0x1ef5a6][_0x3ca5bc(0x28e)]}},_0x537694=this['_transformService'][_0x3ca5bc(0xad)](_0x4e7309,_0x1a205e,!0x1),_0x28e796=this[_0x3ca5bc(0xd9)][_0x3ca5bc(0xad)](_0x2093bd,_0x4b0152,!0x1);if(m[_0x3ca5bc(0xa9)](_0x537694))throw _0x537694[_0x3ca5bc(0xa0)];if(m[_0x3ca5bc(0xa9)](_0x28e796))throw _0x28e796[_0x3ca5bc(0xa0)];_0x1e0dbb[_0x3ca5bc(0x1ef)]({..._0x42df30[_0x1ef5a6],'undoState':_0x537694['m2Prime'][_0x3ca5bc(0x172)],'redoState':_0x28e796['m2Prime'][_0x3ca5bc(0x172)]}),_0x4e7309=_0x537694['m1Prime'],_0x2093bd=_0x28e796[_0x3ca5bc(0x241)];}this[_0x3ca5bc(0x26e)][_0x3ca5bc(0x27c)](_0x3380df,{'history':_0x4e2dbb,'collaboration':_0x1e0dbb});}};J=Ft([le(0x0,a['Inject'](a[_0x1484f9(0xa4)])),le(0x1,m[_0x1484f9(0x1be)]),le(0x2,a['Inject'](b[_0x1484f9(0x11d)]))],J);var Yt=Object[_0x1484f9(0x21b)],Wt=(_0x17b4c5,_0x21d06b,_0x2bb81d,_0xec6c6a)=>{const _0x504321=_0x1484f9;for(var _0x18d587=_0xec6c6a>0x1?void 0x0:_0xec6c6a?Yt(_0x21d06b,_0x2bb81d):_0x21d06b,_0x4f3070=_0x17b4c5[_0x504321(0x1fe)]-0x1,_0x39f5d5;_0x4f3070>=0x0;_0x4f3070--)(_0x39f5d5=_0x17b4c5[_0x4f3070])&&(_0x18d587=_0x39f5d5(_0x18d587)||_0x18d587);return _0x18d587;},Ne=(_0x1be754,_0x5c3edf)=>(_0x383ae2,_0x123615)=>_0x5c3edf(_0x383ae2,_0x123615,_0x1be754);let Z=class{constructor(_0x296875,_0x45fd8e){const _0x435f8b=_0x1484f9;this[_0x435f8b(0x297)]=_0x296875,this[_0x435f8b(0xd9)]=_0x45fd8e;}['transformSelections'](_0x261d5c){const _0x42ba93=_0x1484f9;var _0x1cc40a;const _0x582027=this[_0x42ba93(0x297)][_0x42ba93(0x242)](Y['DocSelectionManagerService']),_0x1c0a98=(_0x1cc40a=_0x582027[_0x42ba93(0x1f8)]())!=null?_0x1cc40a:[];if(_0x1c0a98['length']===0x0)return;const _0x2181fe=_0x261d5c['unitID'],_0x29f5b4=[{'id':_0x42ba93(0x2a6),'params':{'unitId':_0x2181fe,'actions':null,'textRanges':_0x1c0a98}}],_0x263b33=this[_0x42ba93(0xd9)][_0x42ba93(0x1d4)](_0x261d5c,_0x29f5b4);if(!m[_0x42ba93(0x275)](_0x263b33))throw _0x263b33['error'];const _0x3aa968=_0x263b33['m2Prime'][0x0][_0x42ba93(0x172)][_0x42ba93(0xa2)];Array[_0x42ba93(0x2c2)](_0x3aa968)&&_0x3aa968[_0x42ba93(0x1fe)]&&_0x582027[_0x42ba93(0x225)](_0x3aa968,{'unitId':_0x2181fe,'subUnitId':_0x2181fe},!0x1);}};Z=Wt([Ne(0x0,a[_0x1484f9(0x252)](a[_0x1484f9(0xa4)])),Ne(0x1,m[_0x1484f9(0x1be)])],Z);var Vt=Object[_0x1484f9(0x21b)],Xt=(_0x16c981,_0x2834b3,_0x221cf3,_0xb4d669)=>{const _0x6166b1=_0x1484f9;for(var _0x5cc9ac=_0xb4d669>0x1?void 0x0:_0xb4d669?Vt(_0x2834b3,_0x221cf3):_0x2834b3,_0x7bb98c=_0x16c981[_0x6166b1(0x1fe)]-0x1,_0x46883c;_0x7bb98c>=0x0;_0x7bb98c--)(_0x46883c=_0x16c981[_0x7bb98c])&&(_0x5cc9ac=_0x46883c(_0x5cc9ac)||_0x5cc9ac);return _0x5cc9ac;},N=(_0x4f0593,_0x4e9b60)=>(_0x348648,_0x24e174)=>_0x4e9b60(_0x348648,_0x24e174,_0x4f0593);let Q=class extends a[_0x1484f9(0x293)]{constructor(_0x3810c8,_0x48c8eb,_0x3f415e,_0x1d6827,_0x4c02f6,_0x9571d0,_0x7675c7,_0x1c70ac){const _0x3fda1c=_0x1484f9;super(),h(this,'_status$',new d[(_0x3fda1c(0x21d))](u[_0x3fda1c(0xac)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x3810c8,this[_0x3fda1c(0x203)]=_0x48c8eb,this[_0x3fda1c(0x2e7)]=_0x3f415e,this[_0x3fda1c(0x2a0)]=_0x1d6827,this[_0x3fda1c(0xc2)]=_0x4c02f6,this[_0x3fda1c(0xf5)]=_0x9571d0,this[_0x3fda1c(0xce)]=_0x7675c7,this[_0x3fda1c(0x286)]=_0x1c70ac,this[_0x3fda1c(0x288)]());}[_0x1484f9(0x288)](){const _0x51b7a5=_0x1484f9;this['disposeWithMe'](this['_collaborationController']['entityInit$'][_0x51b7a5(0x2d1)](_0xf0a20a=>{const _0x148262=_0x51b7a5,_0x14e8fc=this[_0x148262(0x26e)][_0x148262(0x12e)][_0x148262(0x2d1)](_0x2a37ca=>{const _0x3dde0e=_0x148262;if(_0x2a37ca==null)return;const {unitId:_0xb85e0c,redoState:_0x1a3792,commandId:_0x37375f}=_0x2a37ca;if(_0xb85e0c!==_0xf0a20a['unitID'])return;const _0x46c96e={'id':_0x37375f,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0xb85e0c,'actions':_0x1a3792['actions'],'textRanges':null}};_0xf0a20a[_0x3dde0e(0x188)](_0x46c96e);});if(_0xf0a20a[_0x148262(0x161)](_0x14e8fc),_0xf0a20a instanceof u['DocCollaborationEntity']){const _0x1945df={'onTransformIME':_0x14a89a=>this[_0x148262(0x2e7)]['transformIMECache'](_0x14a89a),'onTransformState':_0xc7ecba=>this['_docTransformStateCacheService']['transformStateCache'](_0xc7ecba),'onTransformSelections':_0x5bddbd=>this[_0x148262(0xc2)][_0x148262(0x98)](_0x5bddbd),'onSyncEditingCollabCursor':_0x233a3e=>this[_0x148262(0xf5)][_0x148262(0x246)](_0x233a3e),'onTransformRemoteChangesetByIMECache':_0x2b6cfe=>this[_0x148262(0x2e7)][_0x148262(0x2a1)](_0x2b6cfe),'onTransformRemoteChangesetByStateCache':_0x39ac0b=>this[_0x148262(0x2a0)][_0x148262(0x2a1)](_0x39ac0b)};_0xf0a20a[_0x148262(0x220)](_0x1945df);}}));}};Q=Xt([N(0x0,a[_0x1484f9(0x252)](b[_0x1484f9(0x11d)])),N(0x1,a[_0x1484f9(0x252)](u['CollaborationController'])),N(0x2,a[_0x1484f9(0x252)](z)),N(0x3,a[_0x1484f9(0x252)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x1484f9(0x252)](Ce)),N(0x6,T[_0x1484f9(0x2f1)]),N(0x7,a[_0x1484f9(0x252)](a[_0x1484f9(0x18e)]))],Q);function _0x1dbb(_0x8e2038,_0x273c89){const _0x22593d=_0x2259();return _0x1dbb=function(_0x1dbb15,_0x39feb6){_0x1dbb15=_0x1dbb15-0x65;let _0x1a3bb1=_0x22593d[_0x1dbb15];return _0x1a3bb1;},_0x1dbb(_0x8e2038,_0x273c89);}var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x225388,_0x3764e0,_0x54cafa,_0x57f2a1)=>{const _0xa534a3=_0x1484f9;for(var _0x4b704c=_0x57f2a1>0x1?void 0x0:_0x57f2a1?Gt(_0x3764e0,_0x54cafa):_0x3764e0,_0x27ad08=_0x225388[_0xa534a3(0x1fe)]-0x1,_0x24485d;_0x27ad08>=0x0;_0x27ad08--)(_0x24485d=_0x225388[_0x27ad08])&&(_0x4b704c=_0x24485d(_0x4b704c)||_0x4b704c);return _0x4b704c;},_e=(_0x57872b,_0x99044b)=>(_0x3b231d,_0x2540a0)=>_0x99044b(_0x3b231d,_0x2540a0,_0x57872b);let ge=class extends a[_0x1484f9(0x293)]{constructor(_0x4a62fa,_0x502878,_0x229a61){const _0x239390=_0x1484f9;super(),h(this,'_cachedData',new Map()),h(this,_0x239390(0xf8),new Map()),h(this,_0x239390(0x2ce),!0x1),(this['_configService']=_0x4a62fa,this[_0x239390(0x1a3)]=_0x502878,this['_revisionService']=_0x229a61);}[_0x1484f9(0x2c3)](){const _0x231420=_0x1484f9;this[_0x231420(0x2ce)]=!0x0;}[_0x1484f9(0x104)](){const _0x56574c=_0x1484f9;this[_0x56574c(0x2ce)]=!0x1;}get[_0x1484f9(0xf6)](){return this['_saveTaskMap'];}[_0x1484f9(0x192)](){const _0x22c7aa=_0x1484f9;this[_0x22c7aa(0x256)]()[_0x22c7aa(0x1aa)](()=>super[_0x22c7aa(0x192)]());}async[_0x1484f9(0x2cf)](_0x2e7bea){const _0x1efb7c=_0x1484f9;return this[_0x1efb7c(0x2ce)]?null:this[_0x1efb7c(0x1a3)][_0x1efb7c(0x165)](u[_0x1efb7c(0x10b)](_0x2e7bea));}async['saveOfflineData'](_0x55b7f2,_0x16557e){const _0x2b604b=_0x1484f9;return!!this[_0x2b604b(0x1a3)]['setItem'](_0x55b7f2,_0x16557e);}[_0x1484f9(0xc0)](_0x17c060,_0x1e7acb,_0x50d309,_0x3da3bd){const _0x1e892d=_0x1484f9,_0x39d48a=this[_0x1e892d(0x129)][_0x1e892d(0x183)](_0x17c060);this['_cachedData'][_0x1e892d(0x2df)](_0x17c060,{'unitID':_0x17c060,'type':_0x1e7acb,'awaitingChangeset':_0x50d309,'mutations':_0x3da3bd,'rev':_0x39d48a}),this[_0x1e892d(0xf8)][_0x1e892d(0x17c)](_0x17c060)||this[_0x1e892d(0x10c)](_0x17c060);}['_scheduleSaving'](_0x261c17){const _0x2ee473=_0x1484f9,_0x47ed59=this[_0x2ee473(0x158)]();_0x47ed59===0x0?this[_0x2ee473(0x202)](_0x261c17):this[_0x2ee473(0xf8)][_0x2ee473(0x2df)](_0x261c17,setTimeout(()=>this[_0x2ee473(0x202)](_0x261c17),_0x47ed59));}[_0x1484f9(0x158)](){const _0x315921=_0x1484f9;var _0x1da873;return(_0x1da873=this[_0x315921(0x245)][_0x315921(0x244)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x1da873:u[_0x315921(0x19e)];}['_saveCache'](_0x131b10){const _0x419352=_0x1484f9,_0x120237=this[_0x419352(0xf8)][_0x419352(0x242)](_0x131b10);return _0x120237!==void 0x0&&window[_0x419352(0x1b5)](_0x120237),this[_0x419352(0x1a3)][_0x419352(0x2bb)](u[_0x419352(0x10b)](_0x131b10),this['_cachedData'][_0x419352(0x242)](_0x131b10))['then'](()=>this[_0x419352(0xf8)][_0x419352(0x80)](_0x131b10));}async['exhaustSavingTask'](){const _0x346ccf=_0x1484f9,_0x58bd83=[];this[_0x346ccf(0xf8)]['forEach']((_0x3b6db7,_0x36503b)=>{const _0x15796b=_0x346ccf;window[_0x15796b(0x1b5)](_0x3b6db7),_0x58bd83['push'](this[_0x15796b(0x202)](_0x36503b)[_0x15796b(0x1aa)](()=>{const _0x58a8d5=_0x15796b;this[_0x58a8d5(0xf8)][_0x58a8d5(0x80)](_0x36503b);}));}),await Promise[_0x346ccf(0x12c)](_0x58bd83);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x1484f9(0x251)]),_e(0x2,a[_0x1484f9(0x252)](m[_0x1484f9(0x2c6)]))],ge);class je extends a[_0x1484f9(0x1fc)]{constructor(){const _0x2cb2a3=_0x1484f9;super(),h(this,_0x2cb2a3(0x2b6)),this['urlChange$']=d[_0x2cb2a3(0x1cc)](window,_0x2cb2a3(0xd4))[_0x2cb2a3(0xe6)](d[_0x2cb2a3(0xbb)](this[_0x2cb2a3(0x1de)]),d[_0x2cb2a3(0x198)](0x1),d['mapTo'](void 0x0));}[_0x1484f9(0x1e1)](_0x21e7f7,_0x44e970,_0x1113f2=!0x1){const _0xefae79=_0x1484f9,_0x5c919b=new URL(window[_0xefae79(0x2da)]['href']);_0x5c919b[_0xefae79(0x163)][_0xefae79(0x2df)](_0x21e7f7,_0x44e970),_0x1113f2?window[_0xefae79(0x2e1)][_0xefae79(0x250)]('','',_0x5c919b[_0xefae79(0x210)]()):window[_0xefae79(0x2e1)][_0xefae79(0x2ef)]('','',_0x5c919b[_0xefae79(0x210)]());}[_0x1484f9(0x2bd)](_0x28faa6,_0x23c951=!0x1){const _0xfb17c8=_0x1484f9,_0x38f641=new URL(window[_0xfb17c8(0x2da)][_0xfb17c8(0x290)]);_0x38f641[_0xfb17c8(0x163)][_0xfb17c8(0x80)](_0x28faa6),_0x23c951?window[_0xfb17c8(0x2e1)]['replaceState']('','',_0x38f641['toString']()):window[_0xfb17c8(0x2e1)][_0xfb17c8(0x2ef)]('','',_0x38f641['toString']());}[_0x1484f9(0x1f1)](_0x4c452a){const _0x1b0bb0=_0x1484f9;var _0x44af6b;return(_0x44af6b=new URL(window[_0x1b0bb0(0x2da)][_0x1b0bb0(0x290)])[_0x1b0bb0(0x163)]['get'](_0x4c452a))!=null?_0x44af6b:void 0x0;}}var qt=Object[_0x1484f9(0x209)],zt=Object[_0x1484f9(0x21b)],Jt=(_0x38e051,_0x2cdb63,_0x4df189)=>_0x2cdb63 in _0x38e051?qt(_0x38e051,_0x2cdb63,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4df189}):_0x38e051[_0x2cdb63]=_0x4df189,Zt=(_0x56016f,_0x6c8650,_0x170287,_0x4857f7)=>{const _0x3583e1=_0x1484f9;for(var _0x408324=_0x4857f7>0x1?void 0x0:_0x4857f7?zt(_0x6c8650,_0x170287):_0x6c8650,_0x50ad77=_0x56016f[_0x3583e1(0x1fe)]-0x1,_0x2ef0f3;_0x50ad77>=0x0;_0x50ad77--)(_0x2ef0f3=_0x56016f[_0x50ad77])&&(_0x408324=_0x2ef0f3(_0x408324)||_0x408324);return _0x408324;},he=(_0x3d538e,_0x2e941f)=>(_0x1ec563,_0x4c42b4)=>_0x2e941f(_0x1ec563,_0x4c42b4,_0x3d538e),Qt=(_0x290ac5,_0x2740c0,_0x26869b)=>Jt(_0x290ac5,_0x2740c0+'',_0x26869b);const es=_0x1484f9(0xc9);exports[_0x1484f9(0x191)]=class extends a['Plugin']{constructor(_0x11ff4d=Ue,_0x588b1b,_0x3d8f41,_0x1ea9c0){const _0x29e764=_0x1484f9;super(),this['_config']=_0x11ff4d,this['_renderManagerService']=_0x588b1b,this['_injector']=_0x3d8f41,this[_0x29e764(0x245)]=_0x1ea9c0;const {..._0x331cb4}=a[_0x29e764(0x92)]({},Ue,this['_config']);this[_0x29e764(0x245)]['setConfig']($t,_0x331cb4);}[_0x1484f9(0x1e9)](){const _0x2ac004=_0x1484f9;this[_0x2ac004(0xe0)](),this['_initDependencies']();}[_0x1484f9(0x1c5)](){this['_registerRenderDependencies']();}[_0x1484f9(0xe0)](){const _0x4264ee=_0x1484f9;var _0x49dfa5;const _0x4bce5a=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x4264ee(0x2b2)],{'useClass':G[_0x4264ee(0x1ae)]}],[u['ILocalCacheService'],{'useClass':ge}],[exports[_0x4264ee(0xdc)]],[Q],[q],[x],[de],[exports[_0x4264ee(0x171)]]];a[_0x4264ee(0x7a)](this['_injector'],a[_0x4264ee(0x228)](_0x4bce5a,(_0x49dfa5=this[_0x4264ee(0x1c6)])==null?void 0x0:_0x49dfa5[_0x4264ee(0x24b)]));}['_registerRenderDependencies'](){const _0x49ed83=_0x1484f9;this['disposeWithMe'](this[_0x49ed83(0x111)][_0x49ed83(0x289)](a[_0x49ed83(0x2c5)][_0x49ed83(0x11e)],[Ie])),this['disposeWithMe'](this[_0x49ed83(0x111)][_0x49ed83(0x289)](a[_0x49ed83(0x2c5)]['UNIVER_SHEET'],[ve]));}[_0x1484f9(0x11a)](){const _0x3420ce=_0x1484f9;a[_0x3420ce(0x1f4)](this['_injector'],[[x],[exports[_0x3420ce(0xdc)]],[Q],[q],[exports[_0x3420ce(0x171)]]]);}},Qt(exports[_0x1484f9(0x191)],_0x1484f9(0x2d7),es),exports[_0x1484f9(0x191)]=Zt([a['DependentOn'](u[_0x1484f9(0x121)]),he(0x1,p[_0x1484f9(0x112)]),he(0x2,a[_0x1484f9(0x252)](a[_0x1484f9(0xa4)])),he(0x3,a[_0x1484f9(0x138)])],exports[_0x1484f9(0x191)]);var ts=Object[_0x1484f9(0x21b)],ss=(_0x7c4df,_0x29a1a8,_0xdf7cc3,_0x3deb5d)=>{for(var _0x50341e=_0x3deb5d>0x1?void 0x0:_0x3deb5d?ts(_0x29a1a8,_0xdf7cc3):_0x29a1a8,_0x119891=_0x7c4df['length']-0x1,_0x4eed77;_0x119891>=0x0;_0x119891--)(_0x4eed77=_0x7c4df[_0x119891])&&(_0x50341e=_0x4eed77(_0x50341e)||_0x50341e);return _0x50341e;},F=(_0x27d2f9,_0x597e9f)=>(_0xb06d60,_0xe6cc87)=>_0x597e9f(_0xb06d60,_0xe6cc87,_0x27d2f9);exports[_0x1484f9(0xed)]=class extends u[_0x1484f9(0x2d3)]{constructor(_0x3ab888,_0x7c8606,_0x1544bc,_0x3cddb7,_0x55317e){super(_0x3ab888,_0x7c8606,_0x1544bc,_0x3cddb7,_0x55317e);}async[_0x1484f9(0x2db)](_0x1be6b8){const _0x4630ce=_0x1484f9,_0x23b384=await this[_0x4630ce(0xff)](),_0x5c19a3=this[_0x4630ce(0x2ca)](_0x1be6b8,_0x23b384);return this[_0x4630ce(0xb1)](_0x5c19a3);}[_0x1484f9(0x2ca)](_0xcc77cb,_0x100078){const _0xbde4b=_0x1484f9,_0x55fda2=typeof window>'u'?new URL(_0xcc77cb):new URL(_0xcc77cb,window['location'][_0xbde4b(0x29d)]);_0x55fda2[_0xbde4b(0x163)]['set'](_0xbde4b(0xaf),_0x100078);const _0x42ed6a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0xbde4b(0x1ed)]);return _0x42ed6a[_0xbde4b(0x242)]('runId')&&_0x55fda2[_0xbde4b(0x163)][_0xbde4b(0x2df)](_0xbde4b(0x155),_0x42ed6a['get'](_0xbde4b(0x155))),_0x55fda2[_0xbde4b(0x210)]();}async['_getSessionTicket'](){const _0x252657=_0x1484f9;var _0x3f58c3,_0x94c2bd,_0x36f22f;const _0x277317=this[_0x252657(0x245)][_0x252657(0x244)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x490f41=(_0x3f58c3=_0x277317==null?void 0x0:_0x277317['wsSessionTicketUrl'])!=null?_0x3f58c3:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x36f22f=(_0x94c2bd=(await this[_0x252657(0x1f3)][_0x252657(0x242)](_0x490f41,{'headers':{'Content-Type':_0x252657(0x287)}}))[_0x252657(0x1b6)])==null?void 0x0:_0x94c2bd[_0x252657(0x18b)])!=null?_0x36f22f:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a[_0x1484f9(0x252)](a['Injector'])),F(0x1,a[_0x1484f9(0x252)](G[_0x1484f9(0x16a)])),F(0x2,a['IConfigService']),F(0x3,a[_0x1484f9(0x1c8)]),F(0x4,m['ISnapshotServerService'])],exports[_0x1484f9(0xed)]);const Me=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class is extends a[_0x1484f9(0x293)]{constructor(){const _0x488b37=_0x1484f9;super(),h(this,_0x488b37(0x154),a[_0x488b37(0xef)]()),h(this,_0x488b37(0x1ad),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x488b37(0x65),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x488b37(0x2dc),new Map()),this['_init']();}[_0x1484f9(0x192)](){const _0x380cbb=_0x1484f9;super[_0x380cbb(0x192)](),this[_0x380cbb(0x24f)][_0x380cbb(0x19b)]((_0x5186ef,_0x349517)=>this[_0x380cbb(0x264)](_0x349517)),this[_0x380cbb(0x65)]&&window[_0x380cbb(0x1d7)](this[_0x380cbb(0x65)]);}[_0x1484f9(0x13e)](_0x4ef049){const _0x4aae28=_0x1484f9;return this['_ensureSubject'](_0x4ef049)[_0x4aae28(0xe6)](d[_0x4aae28(0xaa)]());}['editingUnit'](_0x118e4f){const _0x49dc5d=_0x1484f9;this[_0x49dc5d(0x1ad)][_0x49dc5d(0x81)]===0x0&&this['_scheduleHeartbeat'](),this[_0x49dc5d(0x1ad)][_0x49dc5d(0xa7)](_0x118e4f),this[_0x49dc5d(0x160)]({'type':0x0,'memberID':this[_0x49dc5d(0x154)],'unitIDs':[_0x118e4f],'isForwarded':!0x1});}[_0x1484f9(0x269)](_0x3674aa){const _0x27f9d5=_0x1484f9;this[_0x27f9d5(0x1ad)][_0x27f9d5(0x80)](_0x3674aa),this['_selfUnitIDs'][_0x27f9d5(0x81)]===0x0&&this[_0x27f9d5(0x65)]&&window[_0x27f9d5(0x1d7)](this[_0x27f9d5(0x65)]);}['_init'](){const _0x374eca=_0x1484f9;this[_0x374eca(0x161)](a[_0x374eca(0x207)](d['fromEvent'](window,_0x374eca(0x181))['subscribe'](_0x4cfea0=>{const _0x2e94f0=_0x374eca;if(_0x4cfea0[_0x2e94f0(0xcb)]!==Le||!_0x4cfea0['newValue'])return;const _0x1079b5=JSON[_0x2e94f0(0x82)](_0x4cfea0['newValue']);this[_0x2e94f0(0x222)](_0x1079b5);}))),window[_0x374eca(0xbf)](_0x374eca(0x281),()=>this[_0x374eca(0x160)]({'type':0x1,'memberID':this[_0x374eca(0x154)],'unitIDs':Array['from'](this[_0x374eca(0x1ad)])}));}['_handleEvent'](_0x6080df){const _0x18af6d=_0x1484f9;switch(_0x6080df[_0x18af6d(0x1b9)]){case 0x0:this['_handleJoinEvent'](_0x6080df);break;case 0x1:this[_0x18af6d(0x262)](_0x6080df);break;case 0x2:this[_0x18af6d(0x1c9)](_0x6080df);break;}}[_0x1484f9(0x1e4)](_0x125f0c){const _0x39a9a0=_0x1484f9,{unitIDs:_0x482252,memberID:_0x5c80e0,isForwarded:_0x2e8d53}=_0x125f0c;_0x482252[_0x39a9a0(0x19b)](_0x36d98e=>{const _0x3852cc=_0x39a9a0;if(!_0x2e8d53&&this[_0x3852cc(0xe5)]['has'](_0x36d98e)&&this[_0x3852cc(0x119)](_0x36d98e)[_0x3852cc(0x16b)](u['UnitStatus']['OTHER_CLIENTS_EDITING']),!this[_0x3852cc(0xe5)][_0x3852cc(0x17c)](_0x36d98e)||!this[_0x3852cc(0xe5)]['get'](_0x36d98e)[_0x3852cc(0x17c)](_0x5c80e0)){const _0x235a5c=this['_unitOnClients'][_0x3852cc(0x242)](_0x36d98e)||new Set();_0x235a5c['add'](_0x5c80e0),this[_0x3852cc(0xe5)][_0x3852cc(0x2df)](_0x36d98e,_0x235a5c),this[_0x3852cc(0x14b)](_0x5c80e0);}}),_0x2e8d53||this[_0x39a9a0(0x160)]({'type':0x0,'memberID':this[_0x39a9a0(0x154)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x1484f9(0x14b)](_0x2c8090){const _0x8afacd=_0x1484f9;this[_0x8afacd(0x264)](_0x2c8090);const _0xf09c87=window[_0x8afacd(0x1e2)](()=>{const _0x214d0b=_0x8afacd;this[_0x214d0b(0xe5)][_0x214d0b(0x19b)](_0x5e7aa6=>{const _0x18f8fe=_0x214d0b;_0x5e7aa6[_0x18f8fe(0x80)](_0x2c8090);});},Me*0x2);this[_0x8afacd(0x24f)][_0x8afacd(0x2df)](_0x2c8090,_0xf09c87);}['_removeClearOtherTimer'](_0x101fff){const _0x5dc855=_0x1484f9;if(this[_0x5dc855(0x24f)][_0x5dc855(0x17c)](_0x101fff)){const _0x5da908=this['_clearOtherTimers'][_0x5dc855(0x242)](_0x101fff);_0x5da908&&window[_0x5dc855(0x1b5)](_0x5da908),this[_0x5dc855(0x24f)]['set'](_0x101fff,null);}}[_0x1484f9(0x262)](_0x2b0e80){const _0x412ffc=_0x1484f9,{memberID:_0x230faf,unitIDs:_0x1b260b}=_0x2b0e80;_0x1b260b[_0x412ffc(0x19b)](_0x366aa0=>{const _0x2f0003=_0x412ffc;var _0x25c111;const _0x122440=this[_0x2f0003(0xe5)][_0x2f0003(0x242)](_0x366aa0);_0x122440&&(_0x122440[_0x2f0003(0x80)](_0x230faf),(_0x25c111=this['_ensureSubject'](_0x366aa0))==null||_0x25c111[_0x2f0003(0x16b)](_0x122440[_0x2f0003(0x81)]===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u[_0x2f0003(0x2d6)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x230faf);}[_0x1484f9(0x1c9)](_0x2154eb){const _0x46ab4c=_0x1484f9;this[_0x46ab4c(0x14b)](_0x2154eb[_0x46ab4c(0xb7)]);}[_0x1484f9(0x160)](_0x3b47ea){const _0x35bc06=_0x1484f9;localStorage['setItem'](Le,JSON[_0x35bc06(0x8a)](_0x3b47ea));}['_scheduleHeartbeat'](){const _0x27979a=_0x1484f9;this[_0x27979a(0x65)]=window[_0x27979a(0xea)](()=>{const _0x1f06ea=_0x27979a;this[_0x1f06ea(0x160)]({'type':0x2,'memberID':this[_0x1f06ea(0x154)]});},Me);}[_0x1484f9(0x119)](_0x2d814e){const _0x2ff263=_0x1484f9;return this[_0x2ff263(0x2dc)][_0x2ff263(0x17c)](_0x2d814e)||this[_0x2ff263(0x2dc)][_0x2ff263(0x2df)](_0x2d814e,new d[(_0x2ff263(0x21d))](u[_0x2ff263(0x2d6)][_0x2ff263(0x10f)])),this['_unitStatus'][_0x2ff263(0x242)](_0x2d814e);}}var Be=(_0x4b39f0=>(_0x4b39f0[_0x4b39f0[_0x1484f9(0x144)]=0x0]=_0x1484f9(0x144),_0x4b39f0[_0x4b39f0['OK']=0x1]='OK',_0x4b39f0[_0x4b39f0[_0x1484f9(0x141)]=0x2]='INTERNAL_ERROR',_0x4b39f0[_0x4b39f0[_0x1484f9(0x103)]=0x3]=_0x1484f9(0x103),_0x4b39f0[_0x4b39f0['NOT_FOUND']=0x4]=_0x1484f9(0x12d),_0x4b39f0[_0x4b39f0['UNAUTHENTICATED']=0x5]=_0x1484f9(0xbe),_0x4b39f0[_0x4b39f0['ALREADY_EXISTS']=0x6]=_0x1484f9(0xcc),_0x4b39f0[_0x4b39f0[_0x1484f9(0xe4)]=0x7]='INVALID_ARGUMENT',_0x4b39f0[_0x4b39f0[_0x1484f9(0x131)]=0x8]=_0x1484f9(0x131),_0x4b39f0[_0x4b39f0[_0x1484f9(0x2ea)]=0x9]=_0x1484f9(0x2ea),_0x4b39f0[_0x4b39f0[_0x1484f9(0x204)]=0xa]=_0x1484f9(0x204),_0x4b39f0[_0x4b39f0[_0x1484f9(0x216)]=0x1389]=_0x1484f9(0x216),_0x4b39f0[_0x4b39f0[_0x1484f9(0x13c)]=0x1771]=_0x1484f9(0x13c),_0x4b39f0[_0x4b39f0[_0x1484f9(0x17d)]=0x1772]=_0x1484f9(0x17d),_0x4b39f0[_0x4b39f0[_0x1484f9(0x173)]=0x1773]=_0x1484f9(0x173),_0x4b39f0[_0x4b39f0[_0x1484f9(0x7c)]=0x1b59]=_0x1484f9(0x7c),_0x4b39f0[_0x4b39f0[_0x1484f9(0x16e)]=0x1b5a]=_0x1484f9(0x16e),_0x4b39f0[_0x4b39f0[_0x1484f9(0x137)]=0x1b5b]=_0x1484f9(0x137),_0x4b39f0[_0x4b39f0[_0x1484f9(0x16c)]=0x1b5c]=_0x1484f9(0x16c),_0x4b39f0[_0x4b39f0[_0x1484f9(0x101)]=0x1b5d]=_0x1484f9(0x101),_0x4b39f0[_0x4b39f0[_0x1484f9(0x1cb)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x4b39f0[_0x4b39f0[_0x1484f9(0xa6)]=0x2329]=_0x1484f9(0xa6),_0x4b39f0[_0x4b39f0['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x1484f9(0x88),_0x4b39f0[_0x4b39f0['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x1484f9(0x106),_0x4b39f0[_0x4b39f0[_0x1484f9(0x29a)]=0x232c]=_0x1484f9(0x29a),_0x4b39f0[_0x4b39f0[_0x1484f9(0x263)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x4b39f0[_0x4b39f0[_0x1484f9(0x2e4)]=0x2711]=_0x1484f9(0x2e4),_0x4b39f0[_0x4b39f0[_0x1484f9(0x22a)]=0x2712]=_0x1484f9(0x22a),_0x4b39f0[_0x4b39f0[_0x1484f9(0x9f)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4b39f0[_0x4b39f0[_0x1484f9(0x187)]=0x2714]=_0x1484f9(0x187),_0x4b39f0[_0x4b39f0[_0x1484f9(0x2e8)]=0x271a]=_0x1484f9(0x2e8),_0x4b39f0[_0x4b39f0[_0x1484f9(0x6a)]=0x271b]=_0x1484f9(0x6a),_0x4b39f0[_0x4b39f0[_0x1484f9(0x1ac)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x4b39f0[_0x4b39f0[_0x1484f9(0x120)]=0x271d]=_0x1484f9(0x120),_0x4b39f0[_0x4b39f0[_0x1484f9(0x102)]=0x271e]=_0x1484f9(0x102),_0x4b39f0[_0x4b39f0['YUUMI_AI_RUN_FAILED']=0x271f]=_0x1484f9(0x2d8),_0x4b39f0[_0x4b39f0[_0x1484f9(0x2be)]=0x2af9]=_0x1484f9(0x2be),_0x4b39f0[_0x4b39f0[_0x1484f9(0x126)]=0x2ee1]=_0x1484f9(0x126),_0x4b39f0[_0x4b39f0[_0x1484f9(0x13f)]=0x2ee2]=_0x1484f9(0x13f),_0x4b39f0[_0x4b39f0[_0x1484f9(0xc6)]=0x2ee3]=_0x1484f9(0xc6),_0x4b39f0[_0x4b39f0['USER_NOT_INVITED_CODE']=0x2ee4]=_0x1484f9(0x17f),_0x4b39f0[_0x4b39f0['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x1484f9(0x7b),_0x4b39f0[_0x4b39f0['WECHAT_HAS_BEEN_BOUND']=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x4b39f0[_0x4b39f0['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x1484f9(0x231),_0x4b39f0[_0x4b39f0[_0x1484f9(0x2c8)]=0x32cb]=_0x1484f9(0x2c8),_0x4b39f0[_0x4b39f0[_0x1484f9(0x21e)]=-0x1]=_0x1484f9(0x21e),_0x4b39f0))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x3659fe,_0x2ac542,_0x4157e2,_0xf7300a)=>{const _0x137b64=_0x1484f9;for(var _0x3a205a=_0xf7300a>0x1?void 0x0:_0xf7300a?ns(_0x2ac542,_0x4157e2):_0x2ac542,_0x315103=_0x3659fe[_0x137b64(0x1fe)]-0x1,_0x4cc0e7;_0x315103>=0x0;_0x315103--)(_0x4cc0e7=_0x3659fe[_0x315103])&&(_0x3a205a=_0x4cc0e7(_0x3a205a)||_0x3a205a);return _0x3a205a;},ue=(_0x591206,_0x1ec500)=>(_0xa1969d,_0x42c316)=>_0x1ec500(_0xa1969d,_0x42c316,_0x591206);exports[_0x1484f9(0xec)]=class extends a[_0x1484f9(0x293)]{constructor(_0x492f41,_0x3fc99d,_0x1452fa){const _0x21e58d=_0x1484f9;super(),this[_0x21e58d(0x1dd)]=_0x492f41,this['_httpService']=_0x3fc99d,this[_0x21e58d(0x245)]=_0x1452fa;}async[_0x1484f9(0x1f7)](_0x121422,_0xeace27,_0x237200,..._0x1be8b9){const _0x2f9a54=_0x1484f9;var _0x353f8b,_0x503b57,_0x2b736e,_0x11e1b0;const _0x445aa4=this[_0x2f9a54(0x1dd)]['getFocusedUnit']();if(!_0x445aa4)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x2b8397=((_0x353f8b=this[_0x2f9a54(0x245)]['getConfig'](u[_0x2f9a54(0x27a)]))!=null?_0x353f8b:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x121422+'/run/'+_0xeace27,_0x1588a8=new URL(window[_0x2f9a54(0x2da)][_0x2f9a54(0x290)]),_0x568afc={'scriptId':_0x121422,'runId':(_0x503b57=_0x1588a8[_0x2f9a54(0x163)][_0x2f9a54(0x242)](_0x2f9a54(0x155)))!=null?_0x503b57:'','function':_0xeace27,'unitId':_0x445aa4[_0x2f9a54(0x170)](),'argsOfFunction':JSON[_0x2f9a54(0x8a)](_0x1be8b9),'invokeId':(_0x2b736e=_0x237200['invokeId'])!=null?_0x2b736e:'','executionId':(_0x11e1b0=_0x237200['executionId'])!=null?_0x11e1b0:''};try{const _0x319ceb=await this[_0x2f9a54(0x1f3)]['post'](_0x2b8397,{'body':_0x568afc});return _0x319ceb['body'][_0x2f9a54(0xa0)]&&_0x319ceb[_0x2f9a54(0x1b6)][_0x2f9a54(0xa0)][_0x2f9a54(0x66)]!==Be['OK']?_0x2f9a54(0x1eb):_0x319ceb[_0x2f9a54(0x1b6)][_0x2f9a54(0x298)];}catch{return _0x2f9a54(0x1eb);}}},exports[_0x1484f9(0xec)]=rs([ue(0x0,a[_0x1484f9(0x1a1)]),ue(0x1,a[_0x1484f9(0x252)](G[_0x1484f9(0x16a)])),ue(0x2,a[_0x1484f9(0x138)])],exports[_0x1484f9(0xec)]),exports['CollaborationStatusDisplay']=xe,exports[_0x1484f9(0xf4)]=be,exports[_0x1484f9(0x2e9)]=Pe,exports[_0x1484f9(0x280)]=is,exports[_0x1484f9(0x1ff)]=je;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x369c(_0x46480a,_0x4e2162){const _0x23d0ef=_0x23d0();return _0x369c=function(_0x369c76,_0x2a6c17){_0x369c76=_0x369c76-0x103;let _0x574f92=_0x23d0ef[_0x369c76];return _0x574f92;},_0x369c(_0x46480a,_0x4e2162);}const _0x4f6ac3=_0x369c;function _0x23d0(){const _0x536e93=['Collaboration\x20Conflict','16tdfhIe','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','1464loHlBC','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1772968siSdld','1331815ahJXaQ','9228986XQfGnY','Click\x20to\x20Reconnect','Edit\x20conflicts','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','1793FsumCd','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Local\x20file','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','19161VGCNto','3nUoeLm','11750sLpxlT','12677amortH','exports','24aiPnhy','1328idvCjo','Syncing\x20server\x20data...','5550FQVPdE'];_0x23d0=function(){return _0x536e93;};return _0x23d0();}(function(_0x1de9fa,_0x1c059f){const _0x21c1c2=_0x369c,_0x759134=_0x1de9fa();while(!![]){try{const _0x2e2d03=parseInt(_0x21c1c2(0x119))/0x1*(-parseInt(_0x21c1c2(0x117))/0x2)+parseInt(_0x21c1c2(0x110))/0x3*(parseInt(_0x21c1c2(0x105))/0x4)+parseInt(_0x21c1c2(0x106))/0x5+-parseInt(_0x21c1c2(0x103))/0x6*(-parseInt(_0x21c1c2(0x112))/0x7)+parseInt(_0x21c1c2(0x115))/0x8*(parseInt(_0x21c1c2(0x10f))/0x9)+-parseInt(_0x21c1c2(0x111))/0xa*(-parseInt(_0x21c1c2(0x10b))/0xb)+parseInt(_0x21c1c2(0x114))/0xc*(-parseInt(_0x21c1c2(0x107))/0xd);if(_0x2e2d03===_0x1c059f)break;else _0x759134['push'](_0x759134['shift']());}catch(_0x3c5f18){_0x759134['push'](_0x759134['shift']());}}}(_0x23d0,0x38af8));const e={'collab-client':{'tooltip':{'reconnect':_0x4f6ac3(0x108)}},'collabStatus':{'fetchMiss':_0x4f6ac3(0x116),'conflict':_0x4f6ac3(0x109),'notCollab':_0x4f6ac3(0x10d),'synced':'Synced','syncing':'Syncing...','offline':_0x4f6ac3(0x10c)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x4f6ac3(0x11b),'room-full':_0x4f6ac3(0x10a),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x4f6ac3(0x118),'content':'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.'},'permission':{'title':'Authentication\x20Error','content':_0x4f6ac3(0x10e)},'collaboration':{'single-unit':{'warning':_0x4f6ac3(0x104)},'closeRoom':_0x4f6ac3(0x11a)},'auth':{'needGotoLoginAlert':_0x4f6ac3(0x11c)}};module[_0x4f6ac3(0x113)]=e;
|