@univerjs-pro/collaboration-client-ui 0.8.1-nightly.202506141606 → 0.8.1-nightly.202506151606

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/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x565ef3,_0x6f9983){const _0x49a592=_0x14a2,_0x22ed29=_0x565ef3();while(!![]){try{const _0x5828a8=parseInt(_0x49a592(0x267))/0x1+-parseInt(_0x49a592(0x310))/0x2*(-parseInt(_0x49a592(0x23c))/0x3)+-parseInt(_0x49a592(0x3f1))/0x4*(parseInt(_0x49a592(0x255))/0x5)+-parseInt(_0x49a592(0x365))/0x6+-parseInt(_0x49a592(0x430))/0x7+-parseInt(_0x49a592(0x325))/0x8*(parseInt(_0x49a592(0x210))/0x9)+parseInt(_0x49a592(0x31b))/0xa*(parseInt(_0x49a592(0x387))/0xb);if(_0x5828a8===_0x6f9983)break;else _0x22ed29['push'](_0x22ed29['shift']());}catch(_0x3c1f62){_0x22ed29['push'](_0x22ed29['shift']());}}}(_0x10b0,0xe6c5f),function(_0x23a827,_0x509ea3){const _0x4d5be5=_0x14a2;typeof exports==_0x4d5be5(0x223)&&typeof module<'u'?_0x509ea3(exports,require(_0x4d5be5(0x40c)),require(_0x4d5be5(0x343)),require(_0x4d5be5(0x1c4)),require(_0x4d5be5(0x20b)),require('@univerjs/docs-ui'),require(_0x4d5be5(0x1fc)),require(_0x4d5be5(0x3a2)),require('@univerjs/docs'),require(_0x4d5be5(0x1c5)),require(_0x4d5be5(0x327)),require(_0x4d5be5(0x32f)),require('rxjs/operators'),require(_0x4d5be5(0x300)),require(_0x4d5be5(0x286)),require(_0x4d5be5(0x2ed)),require(_0x4d5be5(0x293)),require(_0x4d5be5(0x1ca)),require(_0x4d5be5(0x21b))):typeof define==_0x4d5be5(0x30b)&&define['amd']?define([_0x4d5be5(0x1cd),_0x4d5be5(0x40c),'@univerjs/core',_0x4d5be5(0x1c4),'@univerjs/network',_0x4d5be5(0x1e0),'@univerjs/drawing',_0x4d5be5(0x3a2),'@univerjs/docs',_0x4d5be5(0x1c5),_0x4d5be5(0x327),_0x4d5be5(0x32f),_0x4d5be5(0x40a),_0x4d5be5(0x300),'react/jsx-runtime',_0x4d5be5(0x2ed),_0x4d5be5(0x293),_0x4d5be5(0x1ca),'@univerjs/rpc'],_0x509ea3):(_0x23a827=typeof globalThis<'u'?globalThis:_0x23a827||self,_0x509ea3(_0x23a827[_0x4d5be5(0x413)]={},_0x23a827[_0x4d5be5(0x3db)],_0x23a827[_0x4d5be5(0x23b)],_0x23a827[_0x4d5be5(0x226)],_0x23a827[_0x4d5be5(0x3b0)],_0x23a827[_0x4d5be5(0x37b)],_0x23a827[_0x4d5be5(0x1da)],_0x23a827['rxjs'],_0x23a827[_0x4d5be5(0x217)],_0x23a827[_0x4d5be5(0x3aa)],_0x23a827[_0x4d5be5(0x2c3)],_0x23a827[_0x4d5be5(0x425)],_0x23a827[_0x4d5be5(0x3a2)]['operators'],_0x23a827[_0x4d5be5(0x2a3)],_0x23a827[_0x4d5be5(0x31a)],_0x23a827[_0x4d5be5(0x3ad)],_0x23a827['UniverDesign'],_0x23a827[_0x4d5be5(0x31a)],_0x23a827['UniverRpc']));}(this,function(_0x1bb602,_0x295c2d,_0x54d64a,_0x219175,_0x49f544,_0x29d555,_0xef4d4d,_0x59ff1b,_0x12e053,_0x4491aa,_0x1aaa49,_0x1834a7,_0x1f862b,_0x3ee301,_0x47c70c,_0x22816c,_0x154965,_0x437b2d,_0xb34d2a){'use strict';const _0x4b31f4=_0x14a2;var _0x1a1aae=Object['defineProperty'],_0x46285a=(_0x3756dd,_0x30448b,_0x564afc)=>_0x30448b in _0x3756dd?_0x1a1aae(_0x3756dd,_0x30448b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x564afc}):_0x3756dd[_0x30448b]=_0x564afc,_0xc8c098=(_0xfd53b6,_0x5890c9,_0x3aad87)=>_0x46285a(_0xfd53b6,typeof _0x5890c9!=_0x4b31f4(0x1db)?_0x5890c9+'':_0x5890c9,_0x3aad87),_0x45a4b7=Object[_0x4b31f4(0x2d8)],_0x2157ac=(_0x7feadc,_0xefcc92,_0x233cdb,_0x1db9c1)=>{const _0x179202=_0x4b31f4;for(var _0x15cad9=_0x1db9c1>0x1?void 0x0:_0x1db9c1?_0x45a4b7(_0xefcc92,_0x233cdb):_0xefcc92,_0x31b913=_0x7feadc[_0x179202(0x2ab)]-0x1,_0x3372fd;_0x31b913>=0x0;_0x31b913--)(_0x3372fd=_0x7feadc[_0x31b913])&&(_0x15cad9=_0x3372fd(_0x15cad9)||_0x15cad9);return _0x15cad9;},_0xe336ee=(_0x221b98,_0x175077)=>(_0x3803fb,_0xc39a7b)=>_0x175077(_0x3803fb,_0xc39a7b,_0x221b98);let _0x12ae5b=class extends _0x54d64a[_0x4b31f4(0x42b)]{constructor(_0x149b6d,_0x366b28){const _0x2e8ba6=_0x4b31f4;super(),this[_0x2e8ba6(0x44d)]=_0x149b6d,this[_0x2e8ba6(0x2cd)]=_0x366b28,this[_0x2e8ba6(0x451)]();}['_init'](){const _0x34b8f0=_0x4b31f4,_0x2da48b=this;this[_0x34b8f0(0x204)](this[_0x34b8f0(0x44d)][_0x34b8f0(0x3d2)]({'onBeforePasteImage':async _0x1d7505=>{const _0x385c88=_0x34b8f0,_0x30e271=await _0x2da48b[_0x385c88(0x2cd)][_0x385c88(0x2bf)](_0x1d7505);return _0x30e271?{'source':_0x30e271[_0x385c88(0x28c)],'imageSourceType':_0x30e271[_0x385c88(0x355)]}:null;}}));}};_0x12ae5b=_0x2157ac([_0xe336ee(0x0,_0x29d555[_0x4b31f4(0x3d3)]),_0xe336ee(0x1,_0xef4d4d[_0x4b31f4(0x36d)])],_0x12ae5b);const _0x46fc07=['purple.300',_0x4b31f4(0x2ad),_0x4b31f4(0x206),_0x4b31f4(0x21d),'blue.400',_0x4b31f4(0x31f)];class _0x5f06d2 extends _0x54d64a[_0x4b31f4(0x3be)]{constructor(){const _0x335d04=_0x4b31f4;super(...arguments),_0xc8c098(this,_0x335d04(0x2b8),new Map()),_0xc8c098(this,_0x335d04(0x438),0x0);}[_0x4b31f4(0x247)](_0x587cb9){const _0x15f3b4=_0x4b31f4;if(this[_0x15f3b4(0x2b8)][_0x15f3b4(0x331)](_0x587cb9))return this['_assignedColors'][_0x15f3b4(0x363)](_0x587cb9);const _0x2da84f=_0x46fc07[this['_colorIndex']];return this[_0x15f3b4(0x438)]=(this[_0x15f3b4(0x438)]+0x1)%_0x46fc07[_0x15f3b4(0x2ab)],this[_0x15f3b4(0x2b8)][_0x15f3b4(0x314)](_0x587cb9,_0x2da84f),_0x2da84f;}}function _0x1087c5(_0x9af3bb){const _0x292295=_0x4b31f4;let _0x4a2f6f='';for(const _0x5b870a of _0x9af3bb){const {startOffset:_0x18f06f,endOffset:_0x246603,isActive:_0x58da28,rangeType:_0xb468f1,segmentId:_0xfc5f11,segmentPage:_0x2ae6a1}=_0x5b870a;_0x4a2f6f[_0x292295(0x2ab)]&&(_0x4a2f6f+=','),_0x4a2f6f+=_0x18f06f+':'+_0x246603+':'+(_0x58da28?'1':'0')+':'+_0xb468f1+':'+_0xfc5f11+':'+_0x2ae6a1;}return _0x4a2f6f;}function _0x13b04e(_0x4bfb23){const _0x1594f8=_0x4b31f4,_0x5706f6=_0x4bfb23[_0x1594f8(0x29e)](','),_0x4e6482=[];for(const _0x1a8224 of _0x5706f6){const [_0x3fb12b,_0x3ab15c,_0x4b7d31,_0x3135d9,_0x150109,_0x5aa1dc]=_0x1a8224['split'](':');_0x4e6482[_0x1594f8(0x3e6)]({'startOffset':Number(_0x3fb12b),'endOffset':Number(_0x3ab15c),'collapsed':_0x3fb12b===_0x3ab15c,'isActive':_0x4b7d31==='1','rangeType':_0x3135d9===_0x54d64a[_0x1594f8(0x313)]['TEXT']?_0x54d64a[_0x1594f8(0x313)][_0x1594f8(0x414)]:_0x54d64a[_0x1594f8(0x313)]['RECT'],'segmentId':typeof _0x150109==_0x1594f8(0x25c)?String(_0x150109):'','segmentPage':Number(_0x5aa1dc!=null?_0x5aa1dc:-0x1)});}return _0x4e6482[_0x1594f8(0x389)](_0x442cdf=>_0x442cdf[_0x1594f8(0x35e)])||(_0x4e6482[0x0]['isActive']=!0x0),_0x4e6482;}class _0x116bb1 extends _0x54d64a['RxDisposable']{constructor(){const _0x51f9c2=_0x4b31f4;super(...arguments),_0xc8c098(this,_0x51f9c2(0x2db),new _0x59ff1b[(_0x51f9c2(0x305))](null)),_0xc8c098(this,_0x51f9c2(0x1c3),this[_0x51f9c2(0x2db)][_0x51f9c2(0x3c6)]());}['syncEditingCollabCursor'](_0x51bd03){const _0x21250b=_0x4b31f4,{unitID:_0x22281c,memberID:_0x485e61,textRanges:_0x1c3ea5}=_0x51bd03,_0x1b3ad2=_0x1087c5(_0x1c3ea5);if(_0x1b3ad2==='')return;const _0x3317f4={'unitID':_0x22281c,'memberID':_0x485e61,'selection':_0x1b3ad2};this[_0x21250b(0x2db)][_0x21250b(0x222)](_0x3317f4);}}var _0x51665b=Object[_0x4b31f4(0x2d8)],_0x3573f9=(_0x7e733c,_0x583a95,_0x3b4aac,_0x186572)=>{for(var _0x170468=_0x186572>0x1?void 0x0:_0x186572?_0x51665b(_0x583a95,_0x3b4aac):_0x583a95,_0xa504c5=_0x7e733c['length']-0x1,_0x51e050;_0xa504c5>=0x0;_0xa504c5--)(_0x51e050=_0x7e733c[_0xa504c5])&&(_0x170468=_0x51e050(_0x170468)||_0x170468);return _0x170468;},_0x1d90e6=(_0x9563fd,_0x840caa)=>(_0x1b1cce,_0x4d455a)=>_0x840caa(_0x1b1cce,_0x4d455a,_0x9563fd);const _0x443ecb=0x12c,_0x2467ce=0x64;let _0x5c8366=class extends _0x54d64a[_0x4b31f4(0x42b)]{constructor(_0x5be07f,_0x42c351,_0x38db16,_0x1974d7,_0x3b7a13,_0x4bb17d,_0x593a9d,_0x521c46,_0x59b136){const _0x212e1e=_0x4b31f4;super(),_0xc8c098(this,_0x212e1e(0x2bc),!0x1),_0xc8c098(this,_0x212e1e(0x451),!0x1),_0xc8c098(this,'_cursorInfo$',new _0x59ff1b[(_0x212e1e(0x305))](new Map())),_0xc8c098(this,_0x212e1e(0x3dc),this[_0x212e1e(0x33b)]['asObservable']()),_0xc8c098(this,_0x212e1e(0x39b),new _0x59ff1b['BehaviorSubject']([])),_0xc8c098(this,'roomMembers$',this[_0x212e1e(0x39b)][_0x212e1e(0x3a7)](_0x59ff1b[_0x212e1e(0x2cf)](_0x443ecb))),_0xc8c098(this,_0x212e1e(0x24f),_0x54d64a['debounce'](_0x395b55=>{const _0x5163df=_0x212e1e,_0x44a25a={'eventID':_0x4491aa[_0x5163df(0x237)][_0x5163df(0x3d9)],'data':{'unitID':this[_0x5163df(0x35f)],'memberID':this[_0x5163df(0x345)][_0x5163df(0x291)](),'selection':_0x1087c5(_0x395b55)}};this[_0x5163df(0x345)][_0x5163df(0x334)](_0x44a25a,this[_0x5163df(0x35f)]);},_0x2467ce)),(this[_0x212e1e(0x35f)]=_0x5be07f,this[_0x212e1e(0x345)]=_0x42c351,this[_0x212e1e(0x391)]=_0x38db16,this[_0x212e1e(0x1fa)]=_0x1974d7,this[_0x212e1e(0x1f6)]=_0x3b7a13,this[_0x212e1e(0x264)]=_0x4bb17d,this[_0x212e1e(0x3ed)]=_0x593a9d,this[_0x212e1e(0x3fd)]=_0x521c46,this['_commandService']=_0x59b136);}get['cursorInfo'](){const _0x258da9=_0x4b31f4;return this[_0x258da9(0x33b)]['getValue']();}get[_0x4b31f4(0x43e)](){const _0x1256cf=_0x4b31f4;return this[_0x1256cf(0x39b)][_0x1256cf(0x35b)]();}['dispose'](){const _0x5400ad=_0x4b31f4;super['dispose'](),this[_0x5400ad(0x33b)]['next'](new Map()),this[_0x5400ad(0x33b)][_0x5400ad(0x279)](),this[_0x5400ad(0x39b)][_0x5400ad(0x222)]([]),this[_0x5400ad(0x39b)]['complete']();}['init'](){const _0x18a4d2=_0x4b31f4;this[_0x18a4d2(0x451)]||(this[_0x18a4d2(0x451)]=!0x0,this['_session'][_0x18a4d2(0x41e)][_0x18a4d2(0x3a7)](_0x59ff1b['takeUntil'](this[_0x18a4d2(0x216)]))[_0x18a4d2(0x2fd)](_0x3c527d=>{const _0x207b4f=_0x18a4d2;_0x3c527d===_0x295c2d['SessionStatus'][_0x207b4f(0x2e5)]?this[_0x207b4f(0x22c)]():this['_toggleOffline']();}),this[_0x18a4d2(0x345)][_0x18a4d2(0x241)][_0x18a4d2(0x3a7)](_0x59ff1b[_0x18a4d2(0x450)](this[_0x18a4d2(0x216)]))[_0x18a4d2(0x2fd)](_0x47f89f=>{const _0x252317=_0x18a4d2,_0x176b45=_0x47f89f[_0x252317(0x37c)];_0x176b45===_0x4491aa['CollaborationEvent'][_0x252317(0x3d9)]&&this['_onCursorUpdate'](_0x47f89f),_0x176b45===_0x4491aa[_0x252317(0x237)][_0x252317(0x460)]&&this[_0x252317(0x1d3)](_0x47f89f);}),this[_0x18a4d2(0x204)](this['_commandService'][_0x18a4d2(0x3b8)](_0x3d4dc9=>{const _0x5aba0d=_0x18a4d2,_0x4153d9=_0x3d4dc9['params'];_0x4153d9!=null&&this['_online']&&_0x3d4dc9['id']===_0x12e053[_0x5aba0d(0x1f3)]['id']&&_0x4153d9[_0x5aba0d(0x2d3)]===this['unitID']&&_0x4153d9[_0x5aba0d(0x340)]===!0x1&&_0x4153d9[_0x5aba0d(0x422)][_0x5aba0d(0x2ab)]>0x0&&this[_0x5aba0d(0x24f)](_0x4153d9[_0x5aba0d(0x422)]);})),this[_0x18a4d2(0x264)][_0x18a4d2(0x1c3)][_0x18a4d2(0x3a7)](_0x59ff1b[_0x18a4d2(0x450)](this[_0x18a4d2(0x216)]))[_0x18a4d2(0x2fd)](_0x350613=>{const _0x4a3509=_0x18a4d2;if((_0x350613==null?void 0x0:_0x350613[_0x4a3509(0x35f)])!==this['unitID'])return;const _0x2c9acd={'eventID':_0x4491aa[_0x4a3509(0x237)][_0x4a3509(0x3d9)],'data':_0x350613};this[_0x4a3509(0x3ef)](_0x2c9acd);}),this['disposeWithMe'](this[_0x18a4d2(0x351)]['onCommandExecuted'](_0x1f7423=>{const _0x47f8c8=_0x18a4d2;if(_0x1f7423['params']==null)return;const _0x3e8f4d=_0x1f7423[_0x47f8c8(0x3c8)];if(_0x1f7423['id']!==_0x12e053[_0x47f8c8(0x1d6)]['id']||_0x3e8f4d['unitId']!==this[_0x47f8c8(0x35f)])return;const _0x3c76a2={'id':_0x47f8c8(0x278),'params':_0x3e8f4d},_0x201e90=this[_0x47f8c8(0x2ac)];for(const [_0x1a6e64,_0x386953]of _0x201e90){const _0x51e698={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x47f8c8(0x35f)],'actions':null,'textRanges':_0x386953['ranges']}},_0x37b58b=this['_transformService'][_0x47f8c8(0x28e)](_0x3c76a2,_0x51e698,!0x1);if(_0x4491aa['isTransformMutationFailure'](_0x37b58b))throw _0x37b58b[_0x47f8c8(0x311)];_0x201e90[_0x47f8c8(0x314)](_0x1a6e64,{..._0x386953,'ranges':_0x37b58b[_0x47f8c8(0x295)]['params'][_0x47f8c8(0x2e3)]});}queueMicrotask(()=>{const _0x3b9ebb=_0x47f8c8;this[_0x3b9ebb(0x33b)][_0x3b9ebb(0x222)](_0x201e90);});})));}[_0x4b31f4(0x3ef)](_0x3d9e50){const _0x2679c=_0x4b31f4;var _0x508d45,_0x522975;const {memberID:_0xe12a37,selection:_0x175426}=_0x3d9e50[_0x2679c(0x1dd)],_0x272031=_0x13b04e(_0x175426),_0x5e15fb=(_0x522975=(_0x508d45=this[_0x2679c(0x1f6)][_0x2679c(0x26a)](this[_0x2679c(0x35f)],_0xe12a37))==null?void 0x0:_0x508d45[_0x2679c(0x239)])!=null?_0x522975:_0x2679c(0x257),_0x3a405b={'color':this[_0x2679c(0x1fa)][_0x2679c(0x247)](_0xe12a37),'name':_0x5e15fb,'ranges':_0x272031},_0x18f789=this[_0x2679c(0x2ac)];_0x18f789[_0x2679c(0x314)](_0xe12a37,_0x3a405b),this[_0x2679c(0x33b)][_0x2679c(0x222)](_0x18f789);}[_0x4b31f4(0x1d3)](_0x2f1dfc){const _0x8982bb=_0x4b31f4,{memberID:_0x4310aa}=_0x2f1dfc[_0x8982bb(0x1dd)],_0x10f73f=this['cursorInfo'];_0x10f73f[_0x8982bb(0x22f)](_0x4310aa),this[_0x8982bb(0x33b)][_0x8982bb(0x222)](_0x10f73f);}[_0x4b31f4(0x22c)](){const _0x26093c=_0x4b31f4;var _0x4cd049;if(this[_0x26093c(0x2bc)]=!0x0,((_0x4cd049=this[_0x26093c(0x3fd)][_0x26093c(0x415)]())==null?void 0x0:_0x4cd049['getUnitId']())!==this[_0x26093c(0x35f)])return;const _0x52e37e=this[_0x26093c(0x391)]['get'](_0x12e053[_0x26093c(0x34e)])['getDocRanges']();Array[_0x26093c(0x2a8)](_0x52e37e)&&_0x52e37e[_0x26093c(0x2ab)]>0x0&&this['_updateLocalCursor'](_0x52e37e);}[_0x4b31f4(0x24e)](){this['_online']=!0x1;}};_0x5c8366=_0x3573f9([_0x1d90e6(0x2,_0x54d64a[_0x4b31f4(0x287)](_0x54d64a['Injector'])),_0x1d90e6(0x3,_0x54d64a[_0x4b31f4(0x287)](_0x5f06d2)),_0x1d90e6(0x4,_0x54d64a[_0x4b31f4(0x287)](_0x295c2d[_0x4b31f4(0x243)])),_0x1d90e6(0x5,_0x54d64a['Inject'](_0x116bb1)),_0x1d90e6(0x6,_0x4491aa[_0x4b31f4(0x3a8)]),_0x1d90e6(0x7,_0x54d64a[_0x4b31f4(0x26b)]),_0x1d90e6(0x8,_0x54d64a[_0x4b31f4(0x260)])],_0x5c8366);var _0x467a0d=Object[_0x4b31f4(0x2d8)],_0x50b84e=(_0x2c5347,_0x18b423,_0x4ac518,_0xd9a4fc)=>{const _0x3d76f3=_0x4b31f4;for(var _0x523464=_0xd9a4fc>0x1?void 0x0:_0xd9a4fc?_0x467a0d(_0x18b423,_0x4ac518):_0x18b423,_0x16add6=_0x2c5347[_0x3d76f3(0x2ab)]-0x1,_0x185b6d;_0x16add6>=0x0;_0x16add6--)(_0x185b6d=_0x2c5347[_0x16add6])&&(_0x523464=_0x185b6d(_0x523464)||_0x523464);return _0x523464;},_0x46c5f0=(_0x1a64e5,_0x4c600e)=>(_0x1e6e2a,_0x3a0568)=>_0x4c600e(_0x1e6e2a,_0x3a0568,_0x1a64e5);const _0x4bb6b0=0x12c,_0x325862=0x64,_0x5ce41a=()=>{let _0x34237d=[],_0x224438=!0x1;return _0x5e4124=>{const _0x4d6fc9=_0x14a2;_0x34237d[_0x4d6fc9(0x3e6)](_0x5e4124),_0x224438||(_0x224438=!0x0,setTimeout(()=>{const _0x4fa06e=_0x4d6fc9;_0x34237d[_0x4fa06e(0x377)](_0x64cf54=>_0x64cf54()),_0x34237d=[],_0x224438=!0x1;}));};};let _0x2096e2=class extends _0x54d64a[_0x4b31f4(0x42b)]{constructor(_0x199bf3,_0xe52806,_0x522305,_0x9cb05a,_0x1896ec,_0x2aa674,_0x3331fe,_0x19cc2e){const _0x42c4f8=_0x4b31f4;super(),_0xc8c098(this,_0x42c4f8(0x2bc),!0x1),_0xc8c098(this,_0x42c4f8(0x451),!0x1),_0xc8c098(this,'_cursorInfo$',new _0x59ff1b[(_0x42c4f8(0x305))](new Map())),_0xc8c098(this,_0x42c4f8(0x3dc),this[_0x42c4f8(0x33b)][_0x42c4f8(0x3c6)]()),_0xc8c098(this,_0x42c4f8(0x39b),new _0x59ff1b[(_0x42c4f8(0x305))]([])),_0xc8c098(this,_0x42c4f8(0x3c7),this[_0x42c4f8(0x39b)][_0x42c4f8(0x3a7)](_0x59ff1b['debounceTime'](_0x4bb6b0))),_0xc8c098(this,'_updateLocalCursor',_0x54d64a[_0x42c4f8(0x1d4)]((_0x34ede5,_0x384096)=>{const _0x3e3c28=_0x42c4f8,_0x3b13ce={'eventID':_0x4491aa[_0x3e3c28(0x237)][_0x3e3c28(0x3d9)],'data':{'unitID':this[_0x3e3c28(0x35f)],'memberID':this[_0x3e3c28(0x345)][_0x3e3c28(0x291)](),'selection':_0x1aaa49[_0x3e3c28(0x2b3)](_0x34ede5,_0x384096[_0x3e3c28(0x374)])}};this[_0x3e3c28(0x345)][_0x3e3c28(0x334)](_0x3b13ce,this[_0x3e3c28(0x35f)]);},_0x325862)),(this[_0x42c4f8(0x35f)]=_0x199bf3,this[_0x42c4f8(0x345)]=_0xe52806,this[_0x42c4f8(0x391)]=_0x522305,this[_0x42c4f8(0x1fa)]=_0x9cb05a,this[_0x42c4f8(0x1f6)]=_0x1896ec,this[_0x42c4f8(0x3fd)]=_0x2aa674,this[_0x42c4f8(0x351)]=_0x3331fe,this[_0x42c4f8(0x45f)]=_0x19cc2e);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x368bfb=_0x4b31f4;return this['_roomMembers$'][_0x368bfb(0x35b)]();}[_0x4b31f4(0x32d)](){const _0x58f45=_0x4b31f4;super[_0x58f45(0x32d)](),this[_0x58f45(0x33b)][_0x58f45(0x222)](new Map()),this[_0x58f45(0x33b)][_0x58f45(0x279)](),this[_0x58f45(0x39b)]['next']([]),this[_0x58f45(0x39b)][_0x58f45(0x279)]();}[_0x4b31f4(0x35c)](){const _0x577f28=_0x4b31f4;this[_0x577f28(0x451)]||(this[_0x577f28(0x451)]=!0x0,this['_session'][_0x577f28(0x41e)][_0x577f28(0x3a7)](_0x59ff1b[_0x577f28(0x450)](this[_0x577f28(0x216)]))[_0x577f28(0x2fd)](_0x2151b5=>{const _0x5e6493=_0x577f28;_0x2151b5===_0x295c2d[_0x5e6493(0x3e4)][_0x5e6493(0x2e5)]?this[_0x5e6493(0x22c)]():this[_0x5e6493(0x24e)]();}),this['_session'][_0x577f28(0x241)][_0x577f28(0x3a7)](_0x59ff1b['takeUntil'](this[_0x577f28(0x216)]))[_0x577f28(0x2fd)](_0x4315b9=>{const _0x3d4ec0=_0x577f28,_0x370c54=_0x4315b9[_0x3d4ec0(0x37c)];_0x370c54===_0x4491aa[_0x3d4ec0(0x237)][_0x3d4ec0(0x3d9)]&&this[_0x3d4ec0(0x3ef)](_0x4315b9),_0x370c54===_0x4491aa['CollaborationEvent'][_0x3d4ec0(0x460)]&&this[_0x3d4ec0(0x1d3)](_0x4315b9);}),this[_0x577f28(0x308)](),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x199816=>{const _0x337e17=_0x577f28;if(this[_0x337e17(0x2bc)]&&_0x199816['id']===_0x1834a7[_0x337e17(0x245)]['id']&&_0x199816['params'][_0x337e17(0x2d3)]===this['unitID']){const _0x62cb82=_0x199816[_0x337e17(0x3c8)];this['_updateLocalCursor'](_0x62cb82[_0x337e17(0x427)],_0x62cb82[_0x337e17(0x284)][0x0]);}})));}[_0x4b31f4(0x3ef)](_0x148a35){const _0x411d89=_0x4b31f4;var _0x25a111,_0x3f57f9;const {memberID:_0x237707,selection:_0x30f94b}=_0x148a35[_0x411d89(0x1dd)],{sheetName:_0x389963,range:_0x4468bc}=_0x1aaa49[_0x411d89(0x289)](_0x30f94b),_0x3351d6={'name':(_0x3f57f9=(_0x25a111=this[_0x411d89(0x1f6)][_0x411d89(0x26a)](this[_0x411d89(0x35f)],_0x237707))==null?void 0x0:_0x25a111[_0x411d89(0x239)])!=null?_0x3f57f9:_0x411d89(0x257),'range':this[_0x411d89(0x37d)](_0x389963,_0x4468bc),'sheetID':_0x389963,'color':this['_colorAssignService'][_0x411d89(0x247)](_0x237707),'selection':_0x30f94b},_0x552df8=this[_0x411d89(0x2ac)];_0x552df8['set'](_0x237707,_0x3351d6),this['_cursorInfo$'][_0x411d89(0x222)](_0x552df8);}['_onCursorDelete'](_0x25c77c){const _0x2c5d74=_0x4b31f4,{memberID:_0xb95396}=_0x25c77c[_0x2c5d74(0x1dd)],_0x195825=this['cursorInfo'];_0x195825[_0x2c5d74(0x22f)](_0xb95396),this[_0x2c5d74(0x33b)][_0x2c5d74(0x222)](_0x195825);}[_0x4b31f4(0x37d)](_0x3ffeef,_0x5bc500){const _0x2fcff2=_0x4b31f4;var _0x41153f,_0x2b71f7;const _0x19347b=(_0x2b71f7=(_0x41153f=this[_0x2fcff2(0x3fd)][_0x2fcff2(0x3c5)](this[_0x2fcff2(0x35f)]))==null?void 0x0:_0x41153f[_0x2fcff2(0x362)](_0x3ffeef))==null?void 0x0:_0x2b71f7['getMergeData']();return(_0x19347b==null?void 0x0:_0x19347b[_0x2fcff2(0x2ae)](_0x5a0860=>_0x54d64a[_0x2fcff2(0x1ea)][_0x2fcff2(0x350)](_0x5a0860,_0x5bc500)))||_0x5bc500;}[_0x4b31f4(0x308)](){const _0x4f4cb3=_0x4b31f4,_0x36c551=new _0x54d64a[(_0x4f4cb3(0x3ab))](),_0xf7f9a1=_0x5ce41a(),_0x356e32=()=>{const _0x3cf146=_0x4f4cb3;_0x36c551[_0x3cf146(0x32d)]();const _0x4e3346=(_0x4208a3,_0xbe5db1,_0x1ee234,_0x18fadc)=>{const _0x484fc8=_0x3cf146;let _0x11e1b5=[];switch(_0x4208a3['id']){case _0x1834a7[_0x484fc8(0x457)][_0x484fc8(0x3c0)]:{_0x11e1b5=_0x1834a7[_0x484fc8(0x454)](_0x4208a3,_0x18fadc);break;}case _0x1834a7[_0x484fc8(0x457)][_0x484fc8(0x22a)]:{_0x11e1b5=_0x1834a7[_0x484fc8(0x335)](_0x4208a3,_0x18fadc);break;}case _0x1834a7['EffectRefRangId']['InsertColCommandId']:{_0x11e1b5=_0x1834a7[_0x484fc8(0x34b)](_0x4208a3,_0x18fadc);break;}case _0x1834a7['EffectRefRangId'][_0x484fc8(0x447)]:{_0x11e1b5=_0x1834a7[_0x484fc8(0x29c)](_0x4208a3,_0x18fadc);break;}case _0x1834a7[_0x484fc8(0x457)][_0x484fc8(0x209)]:{_0x11e1b5=_0x1834a7['handleInsertRangeMoveRight'](_0x4208a3,_0x18fadc);break;}case _0x1834a7[_0x484fc8(0x457)][_0x484fc8(0x2af)]:{_0x11e1b5=_0x1834a7[_0x484fc8(0x253)](_0x4208a3,_0x18fadc);break;}case _0x1834a7[_0x484fc8(0x457)][_0x484fc8(0x42e)]:{_0x11e1b5=_0x1834a7['handleMoveRange'](_0x4208a3,_0x18fadc);break;}case _0x1834a7[_0x484fc8(0x457)]['RemoveColCommandId']:{_0x11e1b5=_0x1834a7[_0x484fc8(0x32a)](_0x4208a3,_0x18fadc);break;}case _0x1834a7['EffectRefRangId'][_0x484fc8(0x202)]:{_0x11e1b5=_0x1834a7[_0x484fc8(0x302)](_0x4208a3,_0x18fadc);break;}}const _0x25e5c9=_0x1834a7[_0x484fc8(0x309)](_0x11e1b5,_0x18fadc),_0x580e56=this['cursorInfo'][_0x484fc8(0x363)](_0xbe5db1);if(_0x580e56&&_0x25e5c9){const _0x2d1536={..._0x580e56,'range':_0x25e5c9};this[_0x484fc8(0x2ac)][_0x484fc8(0x314)](_0xbe5db1,_0x2d1536),_0xf7f9a1(()=>{const _0x13ab5e=_0x484fc8,_0x3f6d78=this['_refRangeService'][_0x13ab5e(0x329)](_0x25e5c9,_0x3dd649=>(_0x3f6d78[_0x13ab5e(0x32d)](),_0x4e3346(_0x3dd649,_0xbe5db1,_0x1ee234,_0x25e5c9)));_0x36c551[_0x13ab5e(0x353)](_0x3f6d78);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x3cf146(0x377)]((_0x28d5e7,_0x462ce5)=>{const _0x4004db=_0x3cf146,{range:_0x2bae29,sheetID:_0x4cd8fb}=_0x28d5e7,_0x4282a9=this['_refRangeService'][_0x4004db(0x329)](_0x2bae29,_0x55c5a6=>(_0x4282a9[_0x4004db(0x32d)](),_0x4e3346(_0x55c5a6,_0x462ce5,_0x4cd8fb,_0x2bae29)));_0x36c551[_0x4004db(0x353)](_0x4282a9);});};this[_0x4f4cb3(0x204)](_0x54d64a[_0x4f4cb3(0x32e)](this['_cursorInfo$'][_0x4f4cb3(0x2fd)](()=>{_0x356e32();})));}[_0x4b31f4(0x22c)](){const _0x2edd18=_0x4b31f4;var _0x31f6a3,_0x829e9d;if(this[_0x2edd18(0x2bc)]=!0x0,((_0x31f6a3=this[_0x2edd18(0x3fd)][_0x2edd18(0x415)]())==null?void 0x0:_0x31f6a3[_0x2edd18(0x2ef)]())!==this[_0x2edd18(0x35f)])return;const _0x14a09d=(_0x829e9d=this[_0x2edd18(0x391)][_0x2edd18(0x363)](_0x1834a7['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x829e9d[0x0],_0x4d4afc=this['_univerInstanceService']['getCurrentUnitForType'](_0x54d64a[_0x2edd18(0x1fd)][_0x2edd18(0x41a)])[_0x2edd18(0x380)]();_0x14a09d&&_0x4d4afc&&this[_0x2edd18(0x24f)](_0x4d4afc[_0x2edd18(0x420)](),_0x14a09d);}[_0x4b31f4(0x24e)](){this['_online']=!0x1;}};_0x2096e2=_0x50b84e([_0x46c5f0(0x2,_0x54d64a[_0x4b31f4(0x287)](_0x54d64a[_0x4b31f4(0x317)])),_0x46c5f0(0x3,_0x54d64a[_0x4b31f4(0x287)](_0x5f06d2)),_0x46c5f0(0x4,_0x54d64a[_0x4b31f4(0x287)](_0x295c2d[_0x4b31f4(0x243)])),_0x46c5f0(0x5,_0x54d64a['IUniverInstanceService']),_0x46c5f0(0x6,_0x54d64a[_0x4b31f4(0x260)]),_0x46c5f0(0x7,_0x54d64a[_0x4b31f4(0x287)](_0x1834a7[_0x4b31f4(0x20f)]))],_0x2096e2);var _0x19437f=Object[_0x4b31f4(0x2d8)],_0x5473df=(_0x177c2b,_0x5e96ed,_0x5335d2,_0x1edaf4)=>{const _0x21b50b=_0x4b31f4;for(var _0xfcdbe0=_0x1edaf4>0x1?void 0x0:_0x1edaf4?_0x19437f(_0x5e96ed,_0x5335d2):_0x5e96ed,_0x28b50a=_0x177c2b[_0x21b50b(0x2ab)]-0x1,_0x41f1f5;_0x28b50a>=0x0;_0x28b50a--)(_0x41f1f5=_0x177c2b[_0x28b50a])&&(_0xfcdbe0=_0x41f1f5(_0xfcdbe0)||_0xfcdbe0);return _0xfcdbe0;},_0x417be8=(_0x11928c,_0x331922)=>(_0x20a1ca,_0x1e8b9e)=>_0x331922(_0x20a1ca,_0x1e8b9e,_0x11928c);let _0x5227f6=class extends _0x54d64a['RxDisposable']{constructor(_0x765191,_0x4fae25,_0x39b920){const _0x448ce0=_0x4b31f4;super(),_0xc8c098(this,_0x448ce0(0x1ee),new Map()),_0xc8c098(this,_0x448ce0(0x1d0),new _0x59ff1b[(_0x448ce0(0x231))]()),(this[_0x448ce0(0x3fd)]=_0x765191,this['_injector']=_0x4fae25,this[_0x448ce0(0x3fa)]=_0x39b920,this[_0x448ce0(0x451)]());}[_0x4b31f4(0x32d)](){const _0x525be0=_0x4b31f4;super[_0x525be0(0x32d)](),this[_0x525be0(0x1d0)][_0x525be0(0x279)](),this[_0x525be0(0x1ee)]['forEach'](_0x88a400=>_0x88a400[_0x525be0(0x32d)]());}['getCollabCursors$'](_0x3acf23){const _0x5dd83d=_0x4b31f4;return this['_entities'][_0x5dd83d(0x331)](_0x3acf23)?this[_0x5dd83d(0x1ee)][_0x5dd83d(0x363)](_0x3acf23)[_0x5dd83d(0x3dc)]:this[_0x5dd83d(0x1d0)][_0x5dd83d(0x3a7)](_0x59ff1b[_0x5dd83d(0x423)](_0x535ab8=>_0x535ab8['unitID']===_0x3acf23),_0x59ff1b[_0x5dd83d(0x2da)](_0x107785=>_0x107785['cursorInfo$']));}[_0x4b31f4(0x451)](){const _0x1b04c3=_0x4b31f4;this[_0x1b04c3(0x3fd)][_0x1b04c3(0x307)](_0x54d64a['UniverInstanceType'][_0x1b04c3(0x41a)])['pipe'](_0x59ff1b[_0x1b04c3(0x450)](this[_0x1b04c3(0x216)]))[_0x1b04c3(0x2fd)](async _0x949c96=>{const _0x1b3018=_0x1b04c3,_0x55bc9d=_0x949c96[_0x1b3018(0x2ef)](),_0x573dff=await this[_0x1b3018(0x3fb)](_0x55bc9d);this[_0x1b3018(0x1d0)][_0x1b3018(0x222)](_0x573dff),this[_0x1b3018(0x1ee)]['set'](_0x55bc9d,_0x573dff);}),this[_0x1b04c3(0x3fd)][_0x1b04c3(0x307)](_0x54d64a[_0x1b04c3(0x1fd)][_0x1b04c3(0x298)])[_0x1b04c3(0x3a7)](_0x59ff1b[_0x1b04c3(0x450)](this[_0x1b04c3(0x216)]))[_0x1b04c3(0x3a7)](_0x59ff1b[_0x1b04c3(0x423)](_0x31c7b8=>!_0x31c7b8[_0x1b04c3(0x2ef)]()[_0x1b04c3(0x20d)]('__')))[_0x1b04c3(0x2fd)](async _0x3bed45=>{const _0x150dae=_0x1b04c3,_0x935fa6=_0x3bed45[_0x150dae(0x2ef)](),_0x2272b9=await this[_0x150dae(0x3e3)](_0x935fa6);this['_entityInit$']['next'](_0x2272b9),this[_0x150dae(0x1ee)][_0x150dae(0x314)](_0x935fa6,_0x2272b9);}),_0x59ff1b['merge'](this[_0x1b04c3(0x3fd)][_0x1b04c3(0x316)](_0x54d64a[_0x1b04c3(0x1fd)][_0x1b04c3(0x298)]),this[_0x1b04c3(0x3fd)]['getTypeOfUnitDisposed$'](_0x54d64a[_0x1b04c3(0x1fd)]['UNIVER_SHEET']))['pipe'](_0x59ff1b[_0x1b04c3(0x450)](this['dispose$']))[_0x1b04c3(0x2fd)](_0x59bbd8=>{const _0x3d7efe=_0x1b04c3,_0x19281e=_0x59bbd8[_0x3d7efe(0x2ef)](),_0x44b2b2=this[_0x3d7efe(0x1ee)][_0x3d7efe(0x363)](_0x19281e);_0x44b2b2&&(_0x44b2b2[_0x3d7efe(0x32d)](),this[_0x3d7efe(0x1ee)][_0x3d7efe(0x22f)](_0x19281e));});}async[_0x4b31f4(0x3fb)](_0x4f5c87){const _0x285a65=_0x4b31f4,_0x406a98=await this[_0x285a65(0x3fa)][_0x285a65(0x3ae)](_0x4f5c87),_0x14a883=this[_0x285a65(0x391)][_0x285a65(0x384)](_0x2096e2,_0x4f5c87,_0x406a98);return _0x14a883['init'](),_0x14a883;}async[_0x4b31f4(0x3e3)](_0x26ddce){const _0x506ef9=_0x4b31f4,_0x35aa1e=await this['_collabSessionService'][_0x506ef9(0x3ae)](_0x26ddce),_0x420bde=this['_injector'][_0x506ef9(0x384)](_0x5c8366,_0x26ddce,_0x35aa1e);return _0x420bde['init'](),_0x420bde;}};_0x5227f6=_0x5473df([_0x417be8(0x0,_0x54d64a['IUniverInstanceService']),_0x417be8(0x1,_0x54d64a[_0x4b31f4(0x287)](_0x54d64a[_0x4b31f4(0x317)])),_0x417be8(0x2,_0x54d64a['Inject'](_0x295c2d['CollaborationSessionService']))],_0x5227f6);const _0x41653f=0x14,_0x28352f=0xc8,_0x4ac2fc=0x4,_0x5e4d5f=0x5;function _0xcceeb7(_0x5e621d,_0x295916){const _0x247371=_0x4b31f4;let {radius:_0x3c56c5,width:_0x299f24,height:_0x8960e7}=_0x295916;_0x3c56c5=_0x3c56c5!=null?_0x3c56c5:0x0,_0x299f24=_0x299f24!=null?_0x299f24:0x1e,_0x8960e7=_0x8960e7!=null?_0x8960e7:0x1e;let _0x1fb1f0=0x0,_0x18b77a=0x0,_0x203a8e=0x0;_0x1fb1f0=_0x18b77a=_0x203a8e=Math[_0x247371(0x26c)](_0x3c56c5,_0x299f24/0x2,_0x8960e7/0x2),_0x5e621d[_0x247371(0x2b4)](),_0x5e621d['moveTo'](_0x1fb1f0,0x0),_0x5e621d[_0x247371(0x2a5)](_0x299f24-_0x18b77a,0x0),_0x5e621d[_0x247371(0x3e0)](_0x299f24-_0x18b77a,_0x18b77a,_0x18b77a,Math['PI']*0x3/0x2,0x0,!0x1),_0x5e621d['lineTo'](_0x299f24,_0x8960e7-_0x203a8e),_0x5e621d[_0x247371(0x3e0)](_0x299f24-_0x203a8e,_0x8960e7-_0x203a8e,_0x203a8e,0x0,Math['PI']/0x2,!0x1),_0x5e621d[_0x247371(0x2a5)](0x0,_0x8960e7),_0x5e621d[_0x247371(0x2a5)](0x0,_0x1fb1f0),_0x5e621d[_0x247371(0x3e0)](_0x1fb1f0,_0x1fb1f0,_0x1fb1f0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5e621d[_0x247371(0x3f2)](),_0x295916[_0x247371(0x364)]&&(_0x5e621d[_0x247371(0x256)](),_0x5e621d['fillStyle']=_0x295916[_0x247371(0x364)],_0x295916['fillRule']===_0x247371(0x1d7)?_0x5e621d['fill']('evenodd'):_0x5e621d[_0x247371(0x364)](),_0x5e621d['restore']());}class _0x28ec1e extends _0x219175[_0x4b31f4(0x42c)]{constructor(_0x1348b8,_0x2315fb){const _0x477fe1=_0x4b31f4;super(_0x1348b8,_0x2315fb),_0xc8c098(this,'color'),_0xc8c098(this,'text'),(this[_0x477fe1(0x45b)]=_0x2315fb==null?void 0x0:_0x2315fb[_0x477fe1(0x45b)],this['text']=_0x2315fb==null?void 0x0:_0x2315fb[_0x477fe1(0x31d)]);}static['drawWith'](_0x7638c6,_0x4ac652){const _0x371f36=_0x4b31f4,{text:_0x3a6e32,color:_0x3c0a08}=_0x4ac652;_0x7638c6[_0x371f36(0x256)](),_0x7638c6[_0x371f36(0x1de)]=_0x371f36(0x352);const _0x3c8e1a=_0x7638c6[_0x371f36(0x270)](_0x3a6e32)[_0x371f36(0x43c)],_0x34c6b1=Math[_0x371f36(0x26c)](_0x3c8e1a+0x2*_0x4ac2fc,_0x28352f);_0xcceeb7(_0x7638c6,{'height':_0x41653f,'radius':0x4,'width':_0x34c6b1,'fill':_0x3c0a08}),_0x7638c6[_0x371f36(0x442)]=_0x371f36(0x41f);const _0x1ed330=_0x4ac2fc,_0x4738d7=_0x41653f-_0x5e4d5f,_0x164a3e=_0x28352f-0x2*_0x4ac2fc;if(_0x3c8e1a>_0x164a3e){let _0x591d4a='',_0x12d85c=0x0;for(const _0x11226b of _0x3a6e32){const _0x69f141=_0x7638c6[_0x371f36(0x270)](_0x11226b)[_0x371f36(0x43c)];if(_0x12d85c+_0x69f141<=_0x164a3e-_0x7638c6[_0x371f36(0x270)](_0x371f36(0x3c4))['width'])_0x591d4a+=_0x11226b,_0x12d85c+=_0x69f141;else{_0x591d4a+=_0x371f36(0x3c4);break;}}_0x7638c6[_0x371f36(0x1e1)](_0x591d4a,_0x1ed330,_0x4738d7);}else _0x7638c6[_0x371f36(0x1e1)](_0x3a6e32,_0x1ed330,_0x4738d7);_0x7638c6[_0x371f36(0x1c1)]();}['_draw'](_0x428f95){const _0x30b921=_0x4b31f4;_0x28ec1e[_0x30b921(0x424)](_0x428f95,this);}}const _0x4fad37=_0x4b31f4(0x1e6),_0x16ba36='collab-text-range-',_0x132d3b=_0x4b31f4(0x2e9),_0x4cac63=0x6,_0x3b7990=1.5,_0x41b434=0x4,_0x43f164=1.5,_0x1bc94b=_0x4b31f4(0x45e);class _0x8c9a61{constructor(_0x44eb93,_0x132fc0,_0x1a3d59,_0x49a002){const _0x10706d=_0x4b31f4;_0xc8c098(this,'_shapes',[]),_0xc8c098(this,'_anchor',null),_0xc8c098(this,_0x10706d(0x28a),null),_0xc8c098(this,_0x10706d(0x303),null),_0xc8c098(this,_0x10706d(0x3a0),null),_0xc8c098(this,_0x10706d(0x262),null),(this['_cursor']=_0x44eb93,this[_0x10706d(0x2a4)]=_0x132fc0,this['_docSkeleton']=_0x1a3d59,this[_0x10706d(0x354)]=_0x49a002,this[_0x10706d(0x3d4)]());}set['_hover'](_0x287bd9){const _0x4aa6b6=_0x4b31f4;_0x287bd9?(this[_0x4aa6b6(0x303)]&&this['_anchorDot'][_0x4aa6b6(0x318)](),this[_0x4aa6b6(0x28a)]&&this[_0x4aa6b6(0x28a)][_0x4aa6b6(0x254)]()):(this[_0x4aa6b6(0x303)]&&this[_0x4aa6b6(0x303)][_0x4aa6b6(0x254)](),this['_textBubble']&&this['_textBubble']['hide']());}[_0x4b31f4(0x32d)](){const _0x1ba4f3=_0x4b31f4;for(const _0x5d6534 of this[_0x1ba4f3(0x360)])_0x5d6534['dispose']();this[_0x1ba4f3(0x28a)]&&this['_textBubble'][_0x1ba4f3(0x32d)](),this[_0x1ba4f3(0x303)]&&this[_0x1ba4f3(0x303)]['dispose'](),this[_0x1ba4f3(0x403)]&&this[_0x1ba4f3(0x403)]['dispose'](),this[_0x1ba4f3(0x262)]&&this[_0x1ba4f3(0x262)]();}['_render'](){const _0x90c010=_0x4b31f4;var _0x38143b;const {_docSkeleton:_0x19ea7a,_document:_0x5af7db}=this,{color:_0x184436,name:_0x461400,ranges:_0x2b3b64}=this['_cursor'],_0xd76136=_0x5af7db[_0x90c010(0x3d5)](),{docsLeft:_0x2c78e2,docsTop:_0x180b73}=_0xd76136,_0x2148cd=new _0x29d555[(_0x90c010(0x236))](_0xd76136,_0x19ea7a);for(const {startOffset:_0x21f1b0,endOffset:_0x321a3c,rangeType:_0x52f025,segmentId:_0x5da422,segmentPage:_0xdc7e18,collapsed:_0x23243a,isActive:_0x509745}of _0x2b3b64){const _0x3e095b=_0x19ea7a[_0x90c010(0x3f7)](_0x21f1b0,!0x0,_0x5da422,_0xdc7e18);let _0x40ed22=_0x19ea7a[_0x90c010(0x3f7)](_0x321a3c,!0x0,_0x5da422,_0xdc7e18);if(_0x40ed22==null&&(_0x40ed22=_0x19ea7a[_0x90c010(0x3f7)](_0x321a3c-0x1,!0x1,_0x5da422,_0xdc7e18)),_0x509745){const {contentBoxPointGroup:_0xd93f74}=_0x2148cd['getRangePointData'](_0x40ed22,_0x40ed22);if(_0xd93f74[_0x90c010(0x2ab)]===0x0)continue;this[_0x90c010(0x276)](_0x184436,_0xd93f74,_0x2c78e2,_0x180b73,_0x461400),this[_0x90c010(0x262)]=this[_0x90c010(0x409)]();}if(_0x3e095b&&_0x40ed22){if(_0x52f025===_0x54d64a['DOC_RANGE_TYPE'][_0x90c010(0x249)]){const _0x1c6040=new _0x29d555[(_0x90c010(0x372))](_0xd76136,_0x19ea7a),{pointGroup:_0x2de003}=(_0x38143b=_0x1c6040[_0x90c010(0x358)](_0x3e095b,_0x40ed22))!=null?_0x38143b:{};if(_0x2de003==null||_0x2de003[_0x90c010(0x2ab)]===0x0)continue;this[_0x90c010(0x453)](_0x184436,_0x2de003,_0x2c78e2,_0x180b73);}else{if(!_0x23243a){const {borderBoxPointGroup:_0xacaf72}=_0x2148cd[_0x90c010(0x358)](_0x3e095b,_0x40ed22);if(_0xacaf72[_0x90c010(0x2ab)]===0x0)continue;this[_0x90c010(0x2dc)](_0x184436,_0xacaf72,_0x2c78e2,_0x180b73);}}}}}[_0x4b31f4(0x276)](_0x148336,_0x23a7fa,_0x46ef71,_0x483813,_0x54a200){const _0x4fc4c1=_0x4b31f4,_0x324475=this[_0x4fc4c1(0x39c)](_0x23a7fa),{left:_0x529b44,top:_0x94eec6,height:_0x4df574}=_0x324475,_0x1cbc18=this[_0x4fc4c1(0x30d)](),_0x444cbb=_0x43f164/_0x1cbc18,_0x988e0c=new _0x219175[(_0x4fc4c1(0x32c))](_0x4fad37+_0x54d64a['Tools'][_0x4fc4c1(0x44b)](_0x4cac63),{'left':_0x529b44+_0x46ef71-_0x444cbb,'top':_0x94eec6+_0x483813,'height':_0x4df574,'width':_0x3b7990,'fill':_0x148336||_0x219175[_0x4fc4c1(0x2cc)](_0x54d64a[_0x4fc4c1(0x428)][_0x4fc4c1(0x41d)],0x0),'strokeWidth':_0x444cbb,'stroke':_0x1bc94b,'evented':!0x0});this[_0x4fc4c1(0x403)]=_0x988e0c,this[_0x4fc4c1(0x2a4)][_0x4fc4c1(0x3e1)](_0x988e0c,_0x29d555[_0x4fc4c1(0x26e)]);const _0x1ed3d1=new _0x219175[(_0x4fc4c1(0x32c))](_0x4fad37+_0x54d64a[_0x4fc4c1(0x1d8)]['generateRandomId'](_0x4cac63),{'left':_0x529b44+_0x46ef71-_0x444cbb,'top':_0x94eec6+_0x483813-_0x41b434/0x2,'height':_0x41b434,'width':_0x41b434,'fill':_0x148336||_0x219175[_0x4fc4c1(0x2cc)](_0x54d64a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x148336||_0x219175[_0x4fc4c1(0x2cc)](_0x54d64a['COLORS']['black'],0x0),'evented':!0x1});this[_0x4fc4c1(0x303)]=_0x1ed3d1,this['_scene'][_0x4fc4c1(0x3e1)](_0x1ed3d1,_0x29d555[_0x4fc4c1(0x26e)]);const _0x2418bf=new _0x28ec1e(_0x4fad37+_0x54d64a['Tools']['generateRandomId'](_0x4cac63),{'left':_0x529b44+_0x46ef71-_0x444cbb,'top':_0x94eec6+_0x483813-_0x41653f,'text':_0x54a200,'color':_0x148336});this[_0x4fc4c1(0x28a)]=_0x2418bf,this[_0x4fc4c1(0x2a4)]['addObject'](_0x2418bf,_0x29d555[_0x4fc4c1(0x26e)]),this[_0x4fc4c1(0x248)]=!0x1;}[_0x4b31f4(0x409)](){const _0x4ee1f2=_0x4b31f4,_0x5a7d62=this[_0x4ee1f2(0x403)]['onPointerEnter$'][_0x4ee1f2(0x30a)](()=>{const _0x278b07=_0x4ee1f2;this[_0x278b07(0x248)]=!0x0;}),_0x2d0f75=this[_0x4ee1f2(0x403)]['onPointerLeave$'][_0x4ee1f2(0x30a)](()=>{const _0x218e61=_0x4ee1f2;this[_0x218e61(0x3a0)]&&clearTimeout(this['_hideTimer']),this[_0x218e61(0x3a0)]=setTimeout(()=>{const _0x4f2ac0=_0x218e61;this[_0x4f2ac0(0x248)]=!0x1;},0x7d0);});return()=>{const _0x493f13=_0x4ee1f2;_0x5a7d62['unsubscribe'](),_0x2d0f75[_0x493f13(0x27f)]();};}[_0x4b31f4(0x2dc)](_0x1e4a78,_0x1337fe,_0x348caa,_0x24122f){const _0x27f061=_0x4b31f4,_0x3befa2=new _0x54d64a['ColorKit'](_0x1e4a78)[_0x27f061(0x25f)](0.2)['toRgbString'](),_0x2065d5=new _0x219175[(_0x27f061(0x2ca))](_0x16ba36+_0x54d64a['Tools']['generateRandomId'](_0x4cac63),{'pointsGroup':_0x1337fe,'fill':_0x3befa2||_0x219175['getColor'](_0x54d64a[_0x27f061(0x428)]['black'],0.2),'left':_0x348caa,'top':_0x24122f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x27f061(0x360)][_0x27f061(0x3e6)](_0x2065d5),this[_0x27f061(0x2a4)]['addObject'](_0x2065d5,_0x29d555[_0x27f061(0x26e)]);}[_0x4b31f4(0x453)](_0x3999fe,_0x1b3e22,_0x119c9b,_0x3a898e){const _0x1b888a=_0x4b31f4,_0xcb3e9c=new _0x54d64a['ColorKit'](_0x3999fe)[_0x1b888a(0x25f)](0.2)[_0x1b888a(0x3ea)](),_0x35be7f=new _0x219175[(_0x1b888a(0x2ca))](_0x132d3b+_0x54d64a['Tools'][_0x1b888a(0x44b)](_0x4cac63),{'pointsGroup':_0x1b3e22,'fill':_0xcb3e9c||_0x219175[_0x1b888a(0x2cc)](_0x54d64a[_0x1b888a(0x428)]['black'],0.2),'left':_0x119c9b,'top':_0x3a898e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1b888a(0x360)][_0x1b888a(0x3e6)](_0x35be7f),this['_scene'][_0x1b888a(0x3e1)](_0x35be7f,_0x29d555['TEXT_RANGE_LAYER_INDEX']);}[_0x4b31f4(0x39c)](_0xe42a20){const _0x3ef769=_0xe42a20[0x0],_0x22f889=_0x3ef769[0x0],_0x2cfc4=_0x3ef769[0x2],{x:_0x82c411,y:_0x58fa54}=_0x22f889,{x:_0x45afe1,y:_0x1d7e33}=_0x2cfc4;return{'left':_0x82c411,'top':_0x58fa54,'width':_0x45afe1-_0x82c411,'height':_0x1d7e33-_0x58fa54};}[_0x4b31f4(0x30d)](){const _0xe91bd6=_0x4b31f4,{scaleX:_0x4b0bd7,scaleY:_0x529c49}=this[_0xe91bd6(0x2a4)][_0xe91bd6(0x1fb)]();return Math[_0xe91bd6(0x359)](_0x4b0bd7,_0x529c49);}}var _0x43b179=Object[_0x4b31f4(0x2d8)],_0x3ab704=(_0x410293,_0xd9276b,_0x167767,_0x4d1563)=>{const _0x46b536=_0x4b31f4;for(var _0x3ca5c0=_0x4d1563>0x1?void 0x0:_0x4d1563?_0x43b179(_0xd9276b,_0x167767):_0xd9276b,_0x3bd731=_0x410293[_0x46b536(0x2ab)]-0x1,_0x423ecf;_0x3bd731>=0x0;_0x3bd731--)(_0x423ecf=_0x410293[_0x3bd731])&&(_0x3ca5c0=_0x423ecf(_0x3ca5c0)||_0x3ca5c0);return _0x3ca5c0;},_0x495934=(_0x2afdd6,_0xcbcb4a)=>(_0x4d90e9,_0x5000e9)=>_0xcbcb4a(_0x4d90e9,_0x5000e9,_0x2afdd6);let _0x5227cd=class extends _0x54d64a[_0x4b31f4(0x42b)]{constructor(_0x3d061d,_0x477c12,_0x4dee94,_0x5e79b1,_0x2a9504){const _0xa3c577=_0x4b31f4;super(),_0xc8c098(this,_0xa3c577(0x369),[]),_0xc8c098(this,'_cursors',[]),(this[_0xa3c577(0x24b)]=_0x3d061d,this[_0xa3c577(0x36b)]=_0x477c12,this[_0xa3c577(0x45c)]=_0x4dee94,this[_0xa3c577(0x351)]=_0x5e79b1,this[_0xa3c577(0x3bb)]=_0x2a9504,this[_0xa3c577(0x451)]());}[_0x4b31f4(0x451)](){const _0xb3f06e=_0x4b31f4,_0x5da5bc=this[_0xb3f06e(0x24b)][_0xb3f06e(0x2d3)],_0x3b19c8=this['_docSkeletonManagerService'];this[_0xb3f06e(0x204)](_0x59ff1b[_0xb3f06e(0x416)]([this['_collabCursorController'][_0xb3f06e(0x2a9)](_0x5da5bc),this[_0xb3f06e(0x3bb)][_0xb3f06e(0x3b7)]])[_0xb3f06e(0x3a7)](_0x1f862b['map'](([_0x54ae84,_0x1e1a35])=>({'skeleton':_0x3b19c8[_0xb3f06e(0x3c9)](),'cursors':[..._0x54ae84['values']()][_0xb3f06e(0x23f)](_0x127dca=>({..._0x127dca,'color':this[_0xb3f06e(0x3bb)][_0xb3f06e(0x2e8)](_0x127dca[_0xb3f06e(0x45b)])}))})))[_0xb3f06e(0x2fd)](_0x27aeca=>{const _0x352c9d=_0xb3f06e;if(this['_removeCollabCursors'](),_0x27aeca){const {skeleton:_0x889bef,cursors:_0x3e6102}=_0x27aeca;this[_0x352c9d(0x22b)](_0x889bef,_0x3e6102);}})),this[_0xb3f06e(0x404)](),this[_0xb3f06e(0x397)]();}[_0x4b31f4(0x22b)](_0x3d546e,_0x2192f3){const _0x2fdef9=_0x4b31f4,{scene:_0x435f5c,mainComponent:_0x3e47f7}=this[_0x2fdef9(0x24b)],_0x597688=_0x2192f3[_0x2fdef9(0x215)](_0x2df808=>new _0x8c9a61(_0x2df808,_0x435f5c,_0x3d546e,_0x3e47f7));this[_0x2fdef9(0x369)]=_0x597688,this[_0x2fdef9(0x436)]=_0x2192f3;}[_0x4b31f4(0x37a)](){const _0x159468=_0x4b31f4;this[_0x159468(0x361)]();const {scene:_0x47c95d,mainComponent:_0x1172fe}=this[_0x159468(0x24b)],_0x16fc5f=this['_docSkeletonManagerService'][_0x159468(0x3c9)](),_0x5ebc2f=this[_0x159468(0x436)][_0x159468(0x215)](_0x1240c2=>new _0x8c9a61(_0x1240c2,_0x47c95d,_0x16fc5f,_0x1172fe));this['_cursorShapes']=_0x5ebc2f;}[_0x4b31f4(0x361)](){const _0x5d7df0=_0x4b31f4;this['_cursorShapes'][_0x5d7df0(0x377)](_0x365082=>_0x365082[_0x5d7df0(0x32d)]()),this[_0x5d7df0(0x369)]=[];}[_0x4b31f4(0x397)](){const _0x566341=_0x4b31f4,_0x3faee0=[_0x29d555[_0x566341(0x337)]['id']];this['disposeWithMe'](this[_0x566341(0x351)][_0x566341(0x3b8)](_0x2c6ec9=>{const _0x50cfba=_0x566341;_0x3faee0['includes'](_0x2c6ec9['id'])&&_0x2c6ec9[_0x50cfba(0x3c8)]['unitId']===this[_0x50cfba(0x24b)][_0x50cfba(0x2d3)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x206d6f=_0x4b31f4;this[_0x206d6f(0x204)](_0x54d64a[_0x206d6f(0x357)](this[_0x206d6f(0x24b)][_0x206d6f(0x235)][_0x206d6f(0x417)])[_0x206d6f(0x3a7)](_0x1f862b[_0x206d6f(0x423)](_0x421919=>_0x421919[_0x206d6f(0x34f)]===_0x219175[_0x206d6f(0x3ca)][_0x206d6f(0x2f1)]),_0x1f862b[_0x206d6f(0x3b5)](0x10))['subscribe'](()=>{const _0x1cfcc4=_0x206d6f;this[_0x1cfcc4(0x37a)]();}));}};_0x5227cd=_0x3ab704([_0x495934(0x1,_0x54d64a[_0x4b31f4(0x287)](_0x12e053[_0x4b31f4(0x265)])),_0x495934(0x2,_0x54d64a[_0x4b31f4(0x287)](_0x5227f6)),_0x495934(0x3,_0x54d64a[_0x4b31f4(0x260)]),_0x495934(0x4,_0x54d64a['Inject'](_0x54d64a['ThemeService']))],_0x5227cd);const _0x58c306=0x1,_0x1a670f=1.5;class _0x3aa33d extends _0x219175[_0x4b31f4(0x42c)]{constructor(_0x5a4b95,_0x1b69fe){const _0x5f45f7=_0x4b31f4;super(_0x5a4b95,_0x1b69fe),_0xc8c098(this,_0x5f45f7(0x433)),_0xc8c098(this,'_hovered',!0x1),_0xc8c098(this,'_range'),_0xc8c098(this,_0x5f45f7(0x399),''),_0xc8c098(this,'_labelPosition',_0x5f45f7(0x296)),_0xc8c098(this,_0x5f45f7(0x234)),(_0x1b69fe&&this[_0x5f45f7(0x426)](_0x1b69fe),this[_0x5f45f7(0x33c)]['subscribeEvent'](()=>this[_0x5f45f7(0x426)]({'hovered':!0x0})),this[_0x5f45f7(0x35a)][_0x5f45f7(0x30a)](()=>this[_0x5f45f7(0x426)]({'hovered':!0x1})));}[_0x4b31f4(0x426)](_0x2caac1){const _0x1bf3e1=_0x4b31f4;var _0x4b287d,_0x498b50,_0x426a9f,_0x1623bf,_0x15ecd9,_0x3e293f;this['_color']=(_0x4b287d=_0x2caac1[_0x1bf3e1(0x45b)])!=null?_0x4b287d:this['_color'],this[_0x1bf3e1(0x2bd)]=(_0x498b50=_0x2caac1['hovered'])!=null?_0x498b50:this['_hovered'],this[_0x1bf3e1(0x33f)]=(_0x426a9f=_0x2caac1[_0x1bf3e1(0x374)])!=null?_0x426a9f:this[_0x1bf3e1(0x33f)],this[_0x1bf3e1(0x399)]=(_0x1623bf=_0x2caac1[_0x1bf3e1(0x239)])!=null?_0x1623bf:this['_name'],this[_0x1bf3e1(0x386)]=(_0x15ecd9=_0x2caac1[_0x1bf3e1(0x3ee)])!=null?_0x15ecd9:this['_labelPosition'],this[_0x1bf3e1(0x234)]=(_0x3e293f=_0x2caac1[_0x1bf3e1(0x2b1)])!=null?_0x3e293f:this[_0x1bf3e1(0x234)],this[_0x1bf3e1(0x2c9)]({'width':_0x2caac1['width'],'height':_0x2caac1[_0x1bf3e1(0x285)]});}[_0x4b31f4(0x42d)](_0x1d5fb9){const _0x1095ff=_0x4b31f4,{row:_0x14b3b4,column:_0x3ba283}=_0x1d5fb9;if(_0x14b3b4>=this[_0x1095ff(0x33f)][_0x1095ff(0x312)]&&_0x14b3b4<=this[_0x1095ff(0x33f)]['endRow']&&_0x3ba283>=this['_range'][_0x1095ff(0x225)]&&_0x3ba283<=this['_range']['endColumn']){this[_0x1095ff(0x426)]({'hovered':!0x0});return;}this[_0x1095ff(0x426)]({'hovered':!0x1});}[_0x4b31f4(0x3ac)](_0x38f0eb){return!0x1;}['_draw'](_0x5c7ed2){const _0x1996a7=_0x4b31f4;_0x219175['Rect'][_0x1996a7(0x424)](_0x5c7ed2,{'width':this[_0x1996a7(0x43c)],'height':this[_0x1996a7(0x285)],'strokeWidth':_0x1a670f,'stroke':this[_0x1996a7(0x433)],'evented':!0x1,'fill':this[_0x1996a7(0x234)]}),this[_0x1996a7(0x2bd)]&&(_0x5c7ed2['save'](),_0x5c7ed2['transform'](0x1,0x0,0x0,0x1,this[_0x1996a7(0x43c)],this['_labelPosition']===_0x1996a7(0x3c3)?0x0:-0x14),_0x28ec1e['drawWith'](_0x5c7ed2,{'text':this['_name'],'color':this[_0x1996a7(0x433)]}),_0x5c7ed2[_0x1996a7(0x1c1)]());}}var _0x31b369=Object['getOwnPropertyDescriptor'],_0x65b005=(_0x57c1ee,_0x395ff5,_0x408618,_0x40ba81)=>{const _0x3dce7b=_0x4b31f4;for(var _0x326fe4=_0x40ba81>0x1?void 0x0:_0x40ba81?_0x31b369(_0x395ff5,_0x408618):_0x395ff5,_0x4d3480=_0x57c1ee[_0x3dce7b(0x2ab)]-0x1,_0x35fb50;_0x4d3480>=0x0;_0x4d3480--)(_0x35fb50=_0x57c1ee[_0x4d3480])&&(_0x326fe4=_0x35fb50(_0x326fe4)||_0x326fe4);return _0x326fe4;},_0x1ae4df=(_0x488741,_0x323712)=>(_0x4f9b79,_0x1ebfec)=>_0x323712(_0x4f9b79,_0x1ebfec,_0x488741);const _0x446493=0x1389;let _0x16b5fd=class extends _0x54d64a['RxDisposable']{constructor(_0x2aea7c,_0x502d9a,_0x1a3cb7,_0x5f3de0){const _0x5b941e=_0x4b31f4;super(),_0xc8c098(this,_0x5b941e(0x436),new Set()),_0xc8c098(this,_0x5b941e(0x1c6),null),(this[_0x5b941e(0x24b)]=_0x2aea7c,this[_0x5b941e(0x3b2)]=_0x502d9a,this[_0x5b941e(0x45c)]=_0x1a3cb7,this[_0x5b941e(0x3bb)]=_0x5f3de0,this[_0x5b941e(0x451)]());}[_0x4b31f4(0x451)](){const _0x1b7696=_0x4b31f4;this[_0x1b7696(0x3b2)][_0x1b7696(0x41c)][_0x1b7696(0x3a7)](_0x1f862b[_0x1b7696(0x450)](this[_0x1b7696(0x216)]),_0x1f862b[_0x1b7696(0x2da)](_0x5dea44=>{const _0x464b5b=_0x1b7696;if(_0x5dea44){const _0x360017=_0x5dea44[_0x464b5b(0x401)];return _0x59ff1b[_0x464b5b(0x416)](this[_0x464b5b(0x45c)][_0x464b5b(0x2a9)](this['_context'][_0x464b5b(0x2d3)]),this[_0x464b5b(0x3bb)][_0x464b5b(0x3b7)])[_0x464b5b(0x3a7)](_0x1f862b[_0x464b5b(0x215)](([_0x1dff3c,_0x5f25ae])=>{const _0x2b8ecd=new Map();return _0x1dff3c['forEach']((_0x5d8daf,_0x299755)=>{const _0x13bff7=_0x14a2;if(_0x5d8daf['sheetID']===_0x360017){const _0x13ca7b={..._0x5d8daf};_0x13ca7b['color']=this[_0x13bff7(0x3bb)]['getColorFromTheme'](_0x5d8daf[_0x13bff7(0x45b)]),_0x2b8ecd[_0x13bff7(0x314)](_0x299755,_0x13ca7b);}}),{'skeleton':_0x5dea44,'cursors':_0x2b8ecd};}));}return _0x59ff1b['of']({'skeleton':null,'cursors':new Map()});}))[_0x1b7696(0x2fd)](({skeleton:_0x53ee71,cursors:_0x2556a1})=>{const _0x2b98ea=_0x1b7696;this[_0x2b98ea(0x361)](),_0x53ee71&&this[_0x2b98ea(0x22b)](_0x53ee71,_0x2556a1);}),this['_sheetSkeletonManagerService'][_0x1b7696(0x41c)][_0x1b7696(0x2fd)](_0x292efe=>{const _0x42440a=_0x1b7696;if(_0x292efe==null)return;const {skeleton:_0xae51d9}=_0x292efe,{scene:_0x2880ae}=this[_0x42440a(0x24b)];_0x2880ae[_0x42440a(0x1e9)][_0x42440a(0x30a)](_0x54d64a[_0x42440a(0x1d4)](_0xb7172b=>{const _0xc5d2e4=_0x42440a;var _0x4853f8,_0x395c54;const {offsetX:_0x25e792,offsetY:_0xa824f9}=_0xb7172b,{x:_0x571b72,y:_0x2736ad}=_0x2880ae['getRelativeToViewportCoord'](_0x219175[_0xc5d2e4(0x1e8)]['FromArray']([_0x25e792,_0xa824f9])),{scaleX:_0x4aad46,scaleY:_0x3fb864}=_0x2880ae['getAncestorScale'](),_0x1ef756=_0x2880ae[_0xc5d2e4(0x212)](_0x219175[_0xc5d2e4(0x2a1)]['VIEW_MAIN']),_0x33a07f=_0x2880ae['getVpScrollXYInfoByPosToVp'](_0x219175['Vector2'][_0xc5d2e4(0x322)]([_0x571b72,_0x2736ad]),_0x1ef756),_0x3e2122=_0xae51d9[_0xc5d2e4(0x458)](_0x25e792,_0xa824f9,_0x4aad46,_0x3fb864,_0x33a07f);((_0x4853f8=this[_0xc5d2e4(0x1c6)])==null?void 0x0:_0x4853f8[_0xc5d2e4(0x43f)])===_0x3e2122['column']&&((_0x395c54=this[_0xc5d2e4(0x1c6)])==null?void 0x0:_0x395c54['row'])===_0x3e2122[_0xc5d2e4(0x23e)]||this[_0xc5d2e4(0x436)]['forEach'](_0x4419ef=>{_0x4419ef['onMouseMove'](_0x3e2122);});},0x64));});}['_updateCollabCursors'](_0x3796b0,_0x44a38b){const _0x2a396c=_0x4b31f4;var _0x3804e8;const _0x32b734=(_0x3804e8=this[_0x2a396c(0x3b2)][_0x2a396c(0x394)]())==null?void 0x0:_0x3804e8[_0x2a396c(0x283)];if(!_0x32b734)return;const _0x4123e3=this['_getSheetObject']();if(!_0x4123e3)return;this[_0x2a396c(0x436)][_0x2a396c(0x377)](_0x4982ee=>{_0x4982ee['makeDirty']();});const {scene:_0x3ca3d6}=_0x4123e3,_0x5c2258=_0x2b09ed(Array[_0x2a396c(0x2f4)](_0x44a38b[_0x2a396c(0x356)]()))[_0x2a396c(0x215)](_0x59d942=>{const _0x32c968=_0x2a396c,{color:_0x36d1ba,range:_0x3578b8,name:_0x3b5832,selection:_0x3a427e,sheetID:_0x2a8b29}=_0x59d942,{startColumn:_0x356b4b,startRow:_0x13534e,endColumn:_0x2cbbda,endRow:_0x58035d}=_0x3578b8,_0x3eb99c=_0x3ee301[_0x32c968(0x383)](_0x13534e,_0x356b4b,_0x3ca3d6,_0x32b734),_0xeace73=_0x3ee301[_0x32c968(0x383)](_0x58035d,_0x2cbbda,_0x3ca3d6,_0x32b734),{columnHeaderHeightAndMarginTop:_0x33c53e}=_0x32b734,{startX:_0x114bc9,startY:_0x11b1c1}=_0x3eb99c,{endX:_0x110a54,endY:_0x86c764}=_0xeace73,_0x42ac66=_0x110a54-_0x114bc9,_0xf899f2=_0x86c764-_0x11b1c1,_0x334bf0={'labelPosition':_0x11b1c1-_0x33c53e>=_0x41653f?_0x32c968(0x296):_0x32c968(0x3c3),'sheetID':_0x2a8b29,'range':_0x3578b8,'color':_0x36d1ba,'name':_0x3b5832,'selection':_0x3a427e,'left':_0x114bc9,'top':_0x11b1c1,'width':_0x42ac66,'height':_0xf899f2,'evented':!0x1,'zIndex':_0x446493};return new _0x3aa33d(_0x3b5832,_0x334bf0);});_0x3ca3d6[_0x2a396c(0x2e1)](_0x5c2258,_0x58c306),this[_0x2a396c(0x436)]=new Set(_0x5c2258);}['_removeCollabCursors'](){const _0x3bfd5b=_0x4b31f4;var _0x52d885;(_0x52d885=this[_0x3bfd5b(0x436)])==null||_0x52d885[_0x3bfd5b(0x377)](_0x539fae=>_0x539fae['dispose']());}[_0x4b31f4(0x2c4)](){const _0x2867ff=_0x4b31f4;return _0x3ee301[_0x2867ff(0x2c2)](this[_0x2867ff(0x24b)][_0x2867ff(0x2d0)],this[_0x2867ff(0x24b)]);}};_0x16b5fd=_0x65b005([_0x1ae4df(0x1,_0x54d64a[_0x4b31f4(0x287)](_0x3ee301[_0x4b31f4(0x297)])),_0x1ae4df(0x2,_0x54d64a['Inject'](_0x5227f6)),_0x1ae4df(0x3,_0x54d64a['Inject'](_0x54d64a[_0x4b31f4(0x379)]))],_0x16b5fd);function _0x2b09ed(_0xbfb66a){const _0x4359b8=_0x4b31f4,_0x3d54f3=new Map();return _0xbfb66a[_0x4359b8(0x377)](_0x27a803=>{const _0x2fcae1=_0x4359b8;if(_0x3d54f3[_0x2fcae1(0x331)](_0x27a803[_0x2fcae1(0x440)])){const _0x58d9be=_0x3d54f3[_0x2fcae1(0x363)](_0x27a803[_0x2fcae1(0x440)]);_0x58d9be[_0x2fcae1(0x239)]+=',\x20'+_0x27a803[_0x2fcae1(0x239)];}else _0x3d54f3['set'](_0x27a803[_0x2fcae1(0x440)],_0x27a803);}),Array[_0x4359b8(0x2f4)](_0x3d54f3[_0x4359b8(0x356)]());}var _0x54ad73=function(){const _0x5aef04=_0x4b31f4;return _0x54ad73=Object[_0x5aef04(0x3a4)]||function(_0x3e1fa4){const _0x2e1a7e=_0x5aef04;for(var _0x55fe15,_0x5e29af=0x1,_0x4536c0=arguments[_0x2e1a7e(0x2ab)];_0x5e29af<_0x4536c0;_0x5e29af++){_0x55fe15=arguments[_0x5e29af];for(var _0x34d7f9 in _0x55fe15)Object['prototype'][_0x2e1a7e(0x2ba)][_0x2e1a7e(0x1d9)](_0x55fe15,_0x34d7f9)&&(_0x3e1fa4[_0x34d7f9]=_0x55fe15[_0x34d7f9]);}return _0x3e1fa4;},_0x54ad73[_0x5aef04(0x1ff)](this,arguments);},_0x5c4518=function(_0x3fcd78,_0x501611){const _0x4561fa=_0x4b31f4;var _0x7a436={};for(var _0x1b2ac5 in _0x3fcd78)Object[_0x4561fa(0x3b4)][_0x4561fa(0x2ba)][_0x4561fa(0x1d9)](_0x3fcd78,_0x1b2ac5)&&_0x501611[_0x4561fa(0x45a)](_0x1b2ac5)<0x0&&(_0x7a436[_0x1b2ac5]=_0x3fcd78[_0x1b2ac5]);if(_0x3fcd78!=null&&typeof Object[_0x4561fa(0x1f0)]==_0x4561fa(0x30b)){for(var _0x30e082=0x0,_0x1b2ac5=Object[_0x4561fa(0x1f0)](_0x3fcd78);_0x30e082<_0x1b2ac5[_0x4561fa(0x2ab)];_0x30e082++)_0x501611['indexOf'](_0x1b2ac5[_0x30e082])<0x0&&Object[_0x4561fa(0x3b4)][_0x4561fa(0x261)]['call'](_0x3fcd78,_0x1b2ac5[_0x30e082])&&(_0x7a436[_0x1b2ac5[_0x30e082]]=_0x3fcd78[_0x1b2ac5[_0x30e082]]);}return _0x7a436;},_0x221025=_0x437b2d[_0x4b31f4(0x1ed)](function(_0xa62d04,_0x50130e){const _0x6de75e=_0x4b31f4;var _0xec29ff=_0xa62d04[_0x6de75e(0x341)],_0x5036e5=_0xa62d04['id'],_0x57f253=_0xa62d04[_0x6de75e(0x213)],_0x3b5c12=_0xa62d04['extend'],_0xfff8c5=_0x5c4518(_0xa62d04,[_0x6de75e(0x341),'id','className',_0x6de75e(0x2d4)]),_0x4cd248='univerjs-icon\x20univerjs-icon-'[_0x6de75e(0x385)](_0x5036e5,'\x20')[_0x6de75e(0x385)](_0x57f253||'')[_0x6de75e(0x2dd)](),_0x585e6e=_0x437b2d[_0x6de75e(0x2e2)]('_'[_0x6de75e(0x385)](_0x413ad2()));return _0x3b8c3d(_0xec29ff,''[_0x6de75e(0x385)](_0x5036e5),{'defIds':_0xec29ff[_0x6de75e(0x294)],'idSuffix':_0x585e6e[_0x6de75e(0x395)]},_0x54ad73({'ref':_0x50130e,'className':_0x4cd248},_0xfff8c5),_0x3b5c12);});function _0x3b8c3d(_0x45fb0a,_0x196d94,_0x3ae96d,_0x3cdaa1,_0x393b31){const _0x3514be=_0x4b31f4;return _0x437b2d[_0x3514be(0x2c8)](_0x45fb0a[_0x3514be(0x339)],_0x54ad73(_0x54ad73({'key':_0x196d94},_0x124502(_0x45fb0a,_0x3ae96d,_0x393b31)),_0x3cdaa1),(_0xbd76fe(_0x45fb0a,_0x3ae96d)[_0x3514be(0x205)]||[])['map'](function(_0x2a2421,_0x2b02f8){const _0x512ad7=_0x3514be;return _0x3b8c3d(_0x2a2421,''[_0x512ad7(0x385)](_0x196d94,'-')[_0x512ad7(0x385)](_0x45fb0a[_0x512ad7(0x339)],'-')[_0x512ad7(0x385)](_0x2b02f8),_0x3ae96d,void 0x0,_0x393b31);}));}function _0x124502(_0x40ee1c,_0x3c53d4,_0xeeb54){const _0x2b8596=_0x4b31f4;var _0x3fa504=_0x54ad73({},_0x40ee1c['attrs']);_0xeeb54!=null&&_0xeeb54[_0x2b8596(0x2bb)]&&_0x3fa504[_0x2b8596(0x364)]===_0x2b8596(0x2bb)&&(_0x3fa504[_0x2b8596(0x364)]=_0xeeb54[_0x2b8596(0x2bb)]),_0x40ee1c[_0x2b8596(0x339)]===_0x2b8596(0x30f)&&_0x3fa504['id']&&(_0x3fa504['id']=_0x3fa504['id']+_0x3c53d4[_0x2b8596(0x332)]),Object[_0x2b8596(0x2cb)](_0x3fa504)[_0x2b8596(0x377)](function(_0x28b96a){const _0x3a9e2b=_0x2b8596;var _0x107e10=_0x28b96a[0x0],_0x29be84=_0x28b96a[0x1];_0x107e10===_0x3a9e2b(0x30f)&&typeof _0x29be84==_0x3a9e2b(0x25c)&&(_0x3fa504[_0x107e10]=_0x29be84[_0x3a9e2b(0x432)](/url\(#(.*)\)/,_0x3a9e2b(0x23d)[_0x3a9e2b(0x385)](_0x3c53d4['idSuffix'],')')));});var _0x3e8f99=_0x3c53d4['defIds'];return!_0x3e8f99||_0x3e8f99[_0x2b8596(0x2ab)]===0x0||(_0x40ee1c[_0x2b8596(0x339)]===_0x2b8596(0x3fe)&&_0x3fa504[_0x2b8596(0x240)]&&(_0x3fa504[_0x2b8596(0x240)]=_0x3fa504[_0x2b8596(0x240)]+_0x3c53d4['idSuffix']),Object[_0x2b8596(0x2cb)](_0x3fa504)[_0x2b8596(0x377)](function(_0xcd9cd4){const _0x548277=_0x2b8596;var _0x19f096=_0xcd9cd4[0x0],_0x3a4f5f=_0xcd9cd4[0x1];typeof _0x3a4f5f==_0x548277(0x25c)&&(_0x3fa504[_0x19f096]=_0x3a4f5f[_0x548277(0x432)](/url\(#(.*)\)/,_0x548277(0x23d)['concat'](_0x3c53d4['idSuffix'],')')));})),_0x3fa504;}function _0xbd76fe(_0x1bc6b3,_0x329171){const _0x100a2b=_0x4b31f4;var _0x45a10f,_0x4a5f69=_0x329171[_0x100a2b(0x294)];return!_0x4a5f69||_0x4a5f69[_0x100a2b(0x2ab)]===0x0?_0x1bc6b3:_0x1bc6b3[_0x100a2b(0x339)]===_0x100a2b(0x3ec)&&(!((_0x45a10f=_0x1bc6b3['children'])===null||_0x45a10f===void 0x0)&&_0x45a10f[_0x100a2b(0x2ab)])?_0x54ad73(_0x54ad73({},_0x1bc6b3),{'children':_0x1bc6b3[_0x100a2b(0x205)][_0x100a2b(0x215)](function(_0x32fc0f){const _0x29026b=_0x100a2b;return typeof _0x32fc0f['attrs']['id']=='string'&&_0x4a5f69&&_0x4a5f69[_0x29026b(0x3f9)](_0x32fc0f[_0x29026b(0x2c1)]['id'])?_0x54ad73(_0x54ad73({},_0x32fc0f),{'attrs':_0x54ad73(_0x54ad73({},_0x32fc0f[_0x29026b(0x2c1)]),{'id':_0x32fc0f['attrs']['id']+_0x329171['idSuffix']})}):_0x32fc0f;})}):_0x1bc6b3;}function _0x413ad2(){const _0x208263=_0x4b31f4;return Math[_0x208263(0x25a)]()['toString'](0x24)[_0x208263(0x3bd)](0x2,0x8);}_0x221025['displayName']='UniverIcon';var _0x326537={'tag':'svg','attrs':{'xmlns':_0x4b31f4(0x408),'fill':_0x4b31f4(0x3cb),'viewBox':_0x4b31f4(0x36c),'width':_0x4b31f4(0x246),'height':_0x4b31f4(0x246)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4b31f4(0x2df),'attrs':{'stroke':_0x4b31f4(0x338),'d':_0x4b31f4(0x1f9),'strokeLinecap':_0x4b31f4(0x448),'strokeLinejoin':_0x4b31f4(0x448),'strokeWidth':1.2}}]},{'tag':_0x4b31f4(0x3ec),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4b31f4(0x38d)},'children':[{'tag':_0x4b31f4(0x2df),'attrs':{'fill':_0x4b31f4(0x31e),'d':_0x4b31f4(0x44a)}}]}]}],'defIds':[_0x4b31f4(0x38d)]},_0x124549=_0x437b2d[_0x4b31f4(0x1ed)](function(_0x4b7d46,_0x53bd83){const _0x2bcc6b=_0x4b31f4;return _0x437b2d[_0x2bcc6b(0x2c8)](_0x221025,Object[_0x2bcc6b(0x3a4)]({},_0x4b7d46,{'id':_0x2bcc6b(0x459),'ref':_0x53bd83,'icon':_0x326537}));});_0x124549[_0x4b31f4(0x26d)]='OffLineIcon';var _0x353604={'tag':_0x4b31f4(0x25d),'attrs':{'xmlns':_0x4b31f4(0x408),'fill':_0x4b31f4(0x3cb),'viewBox':'0\x200\x2017\x2016','width':_0x4b31f4(0x246),'height':_0x4b31f4(0x246)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x4b31f4(0x2df),'attrs':{'stroke':_0x4b31f4(0x338),'d':_0x4b31f4(0x2e7),'strokeLinecap':_0x4b31f4(0x448),'strokeLinejoin':_0x4b31f4(0x448),'strokeWidth':1.2}}]},{'tag':_0x4b31f4(0x3ec),'attrs':{},'children':[{'tag':_0x4b31f4(0x3e5),'attrs':{'id':_0x4b31f4(0x2e6)},'children':[{'tag':_0x4b31f4(0x2df),'attrs':{'fill':_0x4b31f4(0x31e),'d':_0x4b31f4(0x44a),'transform':_0x4b31f4(0x3eb)}}]}]}],'defIds':[_0x4b31f4(0x2e6)]},_0x16785d=_0x437b2d['forwardRef'](function(_0x4da836,_0x1841e6){const _0x35e8e1=_0x4b31f4;return _0x437b2d[_0x35e8e1(0x2c8)](_0x221025,Object[_0x35e8e1(0x3a4)]({},_0x4da836,{'id':_0x35e8e1(0x41b),'ref':_0x1841e6,'icon':_0x353604}));});_0x16785d[_0x4b31f4(0x26d)]=_0x4b31f4(0x221);function _0x5b70cc(_0x2c68c7){const _0x1137f3=_0x4b31f4;switch(_0x2c68c7){case _0x295c2d[_0x1137f3(0x258)]['OFFLINE']:return _0x1137f3(0x3d1);case _0x295c2d['CollaborationStatus'][_0x1137f3(0x346)]:return _0x1137f3(0x280);case _0x295c2d[_0x1137f3(0x258)][_0x1137f3(0x277)]:return'collabStatus.fetchMiss';case _0x295c2d['CollaborationStatus'][_0x1137f3(0x443)]:return _0x1137f3(0x328);case _0x295c2d[_0x1137f3(0x258)]['AWAITING']:case _0x295c2d['CollaborationStatus'][_0x1137f3(0x371)]:return _0x1137f3(0x367);case _0x295c2d['CollaborationStatus'][_0x1137f3(0x2de)]:case _0x295c2d[_0x1137f3(0x258)][_0x1137f3(0x336)]:return _0x1137f3(0x21e);}}function _0x28d069(_0x3123ed){const _0x3c6a8f=_0x4b31f4,{status$:_0x123569}=_0x3123ed,_0x991d6e=_0x22816c[_0x3c6a8f(0x315)](_0x123569,_0x295c2d['CollaborationStatus'][_0x3c6a8f(0x443)]),_0x16936c=_0x22816c['useDependency'](_0x54d64a[_0x3c6a8f(0x274)]),_0x1f140e=_0x22816c[_0x3c6a8f(0x382)](_0x295c2d[_0x3c6a8f(0x1d2)]),_0x103fa8=_0x991d6e!==_0x295c2d[_0x3c6a8f(0x258)][_0x3c6a8f(0x1cf)],_0x22e757=_0x16936c['t'](_0x5b70cc(_0x991d6e)),_0x44630a=_0x103fa8?_0x47c70c['jsx'](_0x16785d,{}):_0x47c70c[_0x3c6a8f(0x390)](_0x124549,{}),_0x4ee652=_0x437b2d[_0x3c6a8f(0x333)](()=>{_0x103fa8||_0x1f140e['reconnect']();},[_0x103fa8,_0x1f140e]);function _0x428b2c(){const _0x5f5154=_0x3c6a8f;return _0x47c70c[_0x5f5154(0x388)](_0x5f5154(0x21f),{'className':_0x5f5154(0x349),'onClick':_0x4ee652,'children':[_0x47c70c['jsx'](_0x5f5154(0x21f),{'className':_0x154965[_0x5f5154(0x288)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x103fa8,'univer-text-red-500':!_0x103fa8}),'children':_0x44630a}),_0x47c70c[_0x5f5154(0x390)](_0x5f5154(0x21f),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x22e757})]});}return _0x103fa8?_0x428b2c():_0x47c70c['jsx'](_0x154965[_0x3c6a8f(0x2d1)],{'title':_0x16936c['t'](_0x3c6a8f(0x449)),'children':_0x428b2c()});}var _0x3aaadc=Object[_0x4b31f4(0x2d8)],_0x4e12fe=(_0x36f654,_0xd9e548,_0x22c195,_0xbead2d)=>{const _0x415f70=_0x4b31f4;for(var _0x91918=_0xbead2d>0x1?void 0x0:_0xbead2d?_0x3aaadc(_0xd9e548,_0x22c195):_0xd9e548,_0x43edeb=_0x36f654[_0x415f70(0x2ab)]-0x1,_0x2bd743;_0x43edeb>=0x0;_0x43edeb--)(_0x2bd743=_0x36f654[_0x43edeb])&&(_0x91918=_0x2bd743(_0x91918)||_0x91918);return _0x91918;},_0x534263=(_0xb9313e,_0x2e454f)=>(_0x6e7eee,_0x3b2c6c)=>_0x2e454f(_0x6e7eee,_0x3b2c6c,_0xb9313e);_0x1bb602[_0x4b31f4(0x219)]=class extends _0x54d64a[_0x4b31f4(0x3be)]{constructor(_0x2103bd,_0x1b0b02,_0x123dca,_0x1f1597){const _0x2d13b8=_0x4b31f4;super(),_0xc8c098(this,'_status$',new _0x59ff1b[(_0x2d13b8(0x305))](_0x295c2d[_0x2d13b8(0x258)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x2103bd,this[_0x2d13b8(0x391)]=_0x1b0b02,this['_collaborationController']=_0x123dca,this['_uiPartsService']=_0x1f1597,this[_0x2d13b8(0x27b)](),this[_0x2d13b8(0x2a0)]());}[_0x4b31f4(0x2a0)](){const _0x22693e=_0x4b31f4;this[_0x22693e(0x204)](this['_univerInstanceService'][_0x22693e(0x431)][_0x22693e(0x3a7)](_0x59ff1b[_0x22693e(0x2da)](()=>{const _0x355e05=_0x22693e,_0x1c7bed=this[_0x355e05(0x3fd)][_0x355e05(0x415)]();return _0x1c7bed?this[_0x355e05(0x273)]['getCollabEntity$'](_0x1c7bed[_0x355e05(0x2ef)]()):_0x59ff1b['of'](null);}),_0x59ff1b['switchMap'](_0x1b3f4d=>_0x1b3f4d?_0x1b3f4d[_0x22693e(0x208)]:_0x59ff1b['of'](_0x295c2d['CollaborationStatus'][_0x22693e(0x443)])))[_0x22693e(0x2fd)](_0x39a562=>{const _0xd5a85=_0x22693e;this[_0xd5a85(0x1f7)][_0xd5a85(0x222)](_0x39a562);}));}[_0x4b31f4(0x27b)](){const _0xdaaea1=_0x4b31f4;this[_0xdaaea1(0x204)](this[_0xdaaea1(0x456)][_0xdaaea1(0x2c7)](_0x22816c[_0xdaaea1(0x24c)][_0xdaaea1(0x21a)],()=>_0x22816c[_0xdaaea1(0x2f5)](_0xfd427b({'status$':this['_status$'][_0xdaaea1(0x3c6)]()}),this[_0xdaaea1(0x391)])));}},_0x1bb602[_0x4b31f4(0x219)]=_0x4e12fe([_0x534263(0x0,_0x54d64a[_0x4b31f4(0x26b)]),_0x534263(0x1,_0x54d64a['Inject'](_0x54d64a[_0x4b31f4(0x317)])),_0x534263(0x2,_0x54d64a[_0x4b31f4(0x287)](_0x295c2d[_0x4b31f4(0x21c)])),_0x534263(0x3,_0x22816c['IUIPartsService'])],_0x1bb602['DesktopCollaborationStatusDisplayController']);function _0xfd427b(_0x509913){const {status$:_0x24fde9}=_0x509913;return function(){const _0x3e83fe=_0x14a2;return _0x47c70c[_0x3e83fe(0x390)](_0x28d069,{'status$':_0x24fde9});};}var _0x5534c0=Object[_0x4b31f4(0x2d8)],_0x302963=(_0x23e826,_0x302ebd,_0x130d45,_0x2a3a15)=>{for(var _0x4bd9a9=_0x2a3a15>0x1?void 0x0:_0x2a3a15?_0x5534c0(_0x302ebd,_0x130d45):_0x302ebd,_0x1d364f=_0x23e826['length']-0x1,_0x11e230;_0x1d364f>=0x0;_0x1d364f--)(_0x11e230=_0x23e826[_0x1d364f])&&(_0x4bd9a9=_0x11e230(_0x4bd9a9)||_0x4bd9a9);return _0x4bd9a9;},_0x2c2227=(_0x313b77,_0x856e1d)=>(_0x26cd38,_0x5ca312)=>_0x856e1d(_0x26cd38,_0x5ca312,_0x313b77);let _0x53f29f=class extends _0x54d64a['Disposable']{constructor(_0x5997f1,_0x38014d,_0x2972f9,_0x3a2138,_0x5613c8,_0x584fa1){const _0x7bb086=_0x4b31f4;super(),this[_0x7bb086(0x38a)]=_0x5997f1,this[_0x7bb086(0x437)]=_0x38014d,this[_0x7bb086(0x326)]=_0x2972f9,this['_messageService']=_0x3a2138,this[_0x7bb086(0x301)]=_0x5613c8,this[_0x7bb086(0x40f)]=_0x584fa1,this[_0x7bb086(0x441)](),this[_0x7bb086(0x368)]();}[_0x4b31f4(0x441)](){const _0x16dfe8=_0x4b31f4;this[_0x16dfe8(0x204)](this[_0x16dfe8(0x38a)][_0x16dfe8(0x3dd)](()=>{const _0x20b906=_0x16dfe8;if(this['_localCacheService'][_0x20b906(0x214)]['size'])return this[_0x20b906(0x40f)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x4b31f4(0x368)](){const _0x16a9ea=_0x4b31f4;this[_0x16a9ea(0x204)](this[_0x16a9ea(0x326)][_0x16a9ea(0x241)][_0x16a9ea(0x2fd)](_0x511194=>{const _0x35daa8=_0x16a9ea;_0x511194['id']===_0x295c2d[_0x35daa8(0x2ee)][_0x35daa8(0x1ef)]&&this[_0x35daa8(0x2f3)][_0x35daa8(0x254)]({'type':_0x154965[_0x35daa8(0x1ec)]['Warning'],'content':this[_0x35daa8(0x40f)]['t']('collaboration.single-unit.warning')}),_0x511194['id']===_0x295c2d[_0x35daa8(0x2ee)][_0x35daa8(0x207)]&&this[_0x35daa8(0x2f3)][_0x35daa8(0x254)]({'type':_0x154965[_0x35daa8(0x1ec)][_0x35daa8(0x429)],'content':this[_0x35daa8(0x40f)]['t']('collaboration.closeRoom')}),_0x511194['id']===_0x295c2d[_0x35daa8(0x2ee)]['PERMISSION_DENIED']&&this[_0x35daa8(0x301)][_0x35daa8(0x254)]({'title':this[_0x35daa8(0x40f)]['t'](_0x35daa8(0x324)),'content':this[_0x35daa8(0x40f)]['t'](_0x35daa8(0x3b6)),'type':'error','duration':0x0}),_0x511194['id']===_0x295c2d[_0x35daa8(0x2ee)][_0x35daa8(0x346)]&&this[_0x35daa8(0x2f3)][_0x35daa8(0x254)]({'type':_0x154965['MessageType'][_0x35daa8(0x2b6)],'content':this[_0x35daa8(0x40f)]['t'](_0x35daa8(0x40e))+'('+_0x511194['data']+')'}),_0x511194['id']===_0x295c2d[_0x35daa8(0x2ee)][_0x35daa8(0x43b)]&&this[_0x35daa8(0x2f3)][_0x35daa8(0x254)]({'type':_0x154965[_0x35daa8(0x1ec)]['Warning'],'content':this['_localeService']['t'](_0x511194[_0x35daa8(0x1dd)]||'')}),_0x511194['id']===_0x295c2d[_0x35daa8(0x2ee)][_0x35daa8(0x45d)]&&this[_0x35daa8(0x2f3)][_0x35daa8(0x254)]({'type':_0x154965['MessageType'][_0x35daa8(0x429)],'content':this[_0x35daa8(0x40f)]['t']('session.will-retry')}),_0x511194['id']===_0x295c2d[_0x35daa8(0x2ee)]['SOCKET_FAILED']&&this['_messageService'][_0x35daa8(0x254)]({'type':_0x154965['MessageType'][_0x35daa8(0x2b6)],'content':this['_localeService']['t']('session.connection-failed')}),_0x511194['id']===_0x295c2d[_0x35daa8(0x2ee)][_0x35daa8(0x224)]&&this[_0x35daa8(0x2f3)][_0x35daa8(0x254)]({'type':_0x154965[_0x35daa8(0x1ec)]['Error'],'content':this[_0x35daa8(0x40f)]['t'](_0x35daa8(0x232))});}));}};_0x53f29f=_0x302963([_0x2c2227(0x0,_0x22816c['IBeforeCloseService']),_0x2c2227(0x1,_0x295c2d['ILocalCacheService']),_0x2c2227(0x2,_0x54d64a[_0x4b31f4(0x287)](_0x295c2d[_0x4b31f4(0x330)])),_0x2c2227(0x3,_0x22816c[_0x4b31f4(0x2ff)]),_0x2c2227(0x4,_0x22816c['INotificationService']),_0x2c2227(0x5,_0x54d64a[_0x4b31f4(0x287)](_0x54d64a['LocaleService']))],_0x53f29f);const _0x4a13f3=_0x4b31f4(0x375),_0x281e7f={},_0x5087f2=_0x54d64a['createIdentifier'](_0x4b31f4(0x34a));var _0x5645ad=Object[_0x4b31f4(0x2d8)],_0x48d6f3=(_0x4a97b3,_0x3ef996,_0x1af156,_0x5ac2f8)=>{for(var _0x10454c=_0x5ac2f8>0x1?void 0x0:_0x5ac2f8?_0x5645ad(_0x3ef996,_0x1af156):_0x3ef996,_0x55b07b=_0x4a97b3['length']-0x1,_0xdd6386;_0x55b07b>=0x0;_0x55b07b--)(_0xdd6386=_0x4a97b3[_0x55b07b])&&(_0x10454c=_0xdd6386(_0x10454c)||_0x10454c);return _0x10454c;},_0x4989d8=(_0x153977,_0x10bee4)=>(_0x478183,_0x3e37ab)=>_0x10bee4(_0x478183,_0x3e37ab,_0x153977);_0x1bb602[_0x4b31f4(0x37f)]=class extends _0x54d64a[_0x4b31f4(0x42b)]{constructor(_0x32d426,_0x4c1f4b,_0x2c8a31,_0x4e60ac,_0x37b810){const _0x2be7cc=_0x4b31f4;super(),this[_0x2be7cc(0x227)]=_0x32d426,this[_0x2be7cc(0x3ce)]=_0x4c1f4b,this[_0x2be7cc(0x351)]=_0x2c8a31,this['_dataLoaderService']=_0x4e60ac,_0x37b810?_0x37b810==null||_0x37b810['whenReady']()[_0x2be7cc(0x38f)](()=>this[_0x2be7cc(0x451)]()):(this['_logService'][_0x2be7cc(0x3a1)]('[CollaborationDataLoaderController]',_0x2be7cc(0x2a2)),this[_0x2be7cc(0x451)]());}async[_0x4b31f4(0x451)](){const _0x1ef6ae=_0x4b31f4,_0x12989a=this[_0x1ef6ae(0x227)][_0x1ef6ae(0x2ce)](_0x1ef6ae(0x2d0)),_0x5e6c23=this[_0x1ef6ae(0x227)]['getParam'](_0x1ef6ae(0x34f)),_0x4d2ff7=this['_urlService'][_0x1ef6ae(0x2ce)](_0x1ef6ae(0x271));if(!_0x12989a||!_0x5e6c23){this[_0x1ef6ae(0x3ce)][_0x1ef6ae(0x3a1)](_0x1ef6ae(0x33e),_0x1ef6ae(0x418));return;}const _0x1ce3a7=await this[_0x1ef6ae(0x29b)][_0x1ef6ae(0x306)](_0x12989a,Number(_0x5e6c23),_0x4d2ff7);_0x1ce3a7&&_0x1ce3a7 instanceof _0x54d64a['Workbook']&&this[_0x1ef6ae(0x44e)](_0x1ce3a7);}async[_0x4b31f4(0x44e)](_0x200a29){const _0x223df8=_0x4b31f4;await this[_0x223df8(0x402)](_0x200a29),_0x200a29['activeSheet$']['pipe'](_0x59ff1b[_0x223df8(0x450)](this[_0x223df8(0x216)]))[_0x223df8(0x2fd)](_0x49b218=>{const _0x3bbb24=_0x223df8;_0x49b218&&this[_0x3bbb24(0x3de)](_0x49b218);}),this[_0x223df8(0x227)][_0x223df8(0x1e7)][_0x223df8(0x3a7)](_0x59ff1b[_0x223df8(0x450)](this[_0x223df8(0x216)]))[_0x223df8(0x2fd)](()=>this['_updateSubUnitFromURLParams'](_0x200a29));}[_0x4b31f4(0x3de)](_0x163b3d,_0x3f8f72=!0x1){const _0x66b91a=_0x4b31f4,_0x4c1bca=this[_0x66b91a(0x227)][_0x66b91a(0x2ce)](_0x66b91a(0x271));_0x163b3d[_0x66b91a(0x420)]()!==_0x4c1bca&&this[_0x66b91a(0x227)][_0x66b91a(0x1d5)](_0x66b91a(0x271),_0x163b3d['getSheetId'](),_0x3f8f72);}async[_0x4b31f4(0x402)](_0x559ffa){const _0x1b38b5=_0x4b31f4;var _0x4028c7;const _0x3e1c54=this['_urlService']['getParam'](_0x1b38b5(0x271));if(!_0x3e1c54||!_0x559ffa[_0x1b38b5(0x362)](_0x3e1c54)){const _0x5da689=_0x559ffa[_0x1b38b5(0x3cd)]()[0x0],_0x259ac0=_0x559ffa[_0x1b38b5(0x362)](_0x5da689);if(!_0x259ac0)return;this['_updateURLWithCurrentState'](_0x259ac0,!0x0),await this[_0x1b38b5(0x351)]['executeCommand'](_0x1834a7['SetWorksheetActivateCommand']['id'],{'unitId':_0x559ffa['getUnitId'](),'subUnitId':_0x5da689});return;}((_0x4028c7=_0x559ffa['getActiveSheet']())==null?void 0x0:_0x4028c7['getSheetId']())!==_0x3e1c54&&await this[_0x1b38b5(0x351)][_0x1b38b5(0x2eb)](_0x1834a7[_0x1b38b5(0x3f0)]['id'],{'unitId':_0x559ffa[_0x1b38b5(0x2ef)](),'subUnitId':_0x3e1c54});}},_0x1bb602[_0x4b31f4(0x37f)]=_0x48d6f3([_0x4989d8(0x0,_0x5087f2),_0x4989d8(0x1,_0x54d64a[_0x4b31f4(0x1c7)]),_0x4989d8(0x2,_0x54d64a[_0x4b31f4(0x260)]),_0x4989d8(0x3,_0x54d64a[_0x4b31f4(0x287)](_0x295c2d[_0x4b31f4(0x201)])),_0x4989d8(0x4,_0x54d64a['Optional'](_0xb34d2a[_0x4b31f4(0x2be)]))],_0x1bb602[_0x4b31f4(0x37f)]);var _0xeb6d20=Object[_0x4b31f4(0x2d8)],_0x1ec3a6=(_0x588fcf,_0x5216f0,_0x29a2f0,_0x382587)=>{const _0x55ba77=_0x4b31f4;for(var _0x59693c=_0x382587>0x1?void 0x0:_0x382587?_0xeb6d20(_0x5216f0,_0x29a2f0):_0x5216f0,_0x197290=_0x588fcf[_0x55ba77(0x2ab)]-0x1,_0x360ceb;_0x197290>=0x0;_0x197290--)(_0x360ceb=_0x588fcf[_0x197290])&&(_0x59693c=_0x360ceb(_0x59693c)||_0x59693c);return _0x59693c;},_0x5e9f48=(_0xe4da36,_0x4a6ea0)=>(_0x54be89,_0x56a8f1)=>_0x4a6ea0(_0x54be89,_0x56a8f1,_0xe4da36);let _0x396eec=class{constructor(_0xc493ee,_0x28222d,_0x181bc8){const _0x2db5bb=_0x4b31f4;this[_0x2db5bb(0x391)]=_0xc493ee,this[_0x2db5bb(0x3ed)]=_0x28222d,this[_0x2db5bb(0x1e2)]=_0x181bc8;}['transformIMECache'](_0x2c1c99){const _0xcec31b=_0x4b31f4;this[_0xcec31b(0x381)](_0x2c1c99),this[_0xcec31b(0x392)](_0x2c1c99);}[_0x4b31f4(0x27d)](_0x36ca40){const _0x3a89a5=_0x4b31f4,{unitID:_0x5e4ddc}=_0x36ca40,_0x1e82c5=this[_0x3a89a5(0x1e2)][_0x3a89a5(0x3d6)](_0x5e4ddc)['with'](_0x29d555[_0x3a89a5(0x27e)]),{redoCache:_0x517989}=_0x1e82c5[_0x3a89a5(0x29a)]();if(_0x517989['length']===0x0)return _0x36ca40;let _0x5f3263=_0x54d64a['Tools'][_0x3a89a5(0x3d7)](_0x36ca40[_0x3a89a5(0x410)][0x0]);for(let _0x2529c=0x0;_0x2529c<_0x517989['length'];_0x2529c++){const _0x142d95={'id':_0x3a89a5(0x278),'params':{..._0x517989[_0x2529c]}},_0x2b7da1=this[_0x3a89a5(0x3ed)][_0x3a89a5(0x28e)](_0x5f3263,_0x142d95,!0x1);if(_0x4491aa[_0x3a89a5(0x3da)](_0x2b7da1))throw _0x2b7da1[_0x3a89a5(0x311)];_0x5f3263=_0x2b7da1[_0x3a89a5(0x3e8)];}return{..._0x54d64a[_0x3a89a5(0x1d8)][_0x3a89a5(0x3d7)](_0x36ca40),'mutations':[_0x5f3263]};}[_0x4b31f4(0x381)](_0x106c78){const _0x1ec8d8=_0x4b31f4,{unitID:_0xc1f5aa}=_0x106c78,_0x338884=this[_0x1ec8d8(0x1e2)][_0x1ec8d8(0x3d6)](_0xc1f5aa)['with'](_0x29d555[_0x1ec8d8(0x27e)]),{undoCache:_0x4aaf04,redoCache:_0x34428d}=_0x338884[_0x1ec8d8(0x29a)]();if(_0x4aaf04[_0x1ec8d8(0x2ab)]===0x0||_0x34428d[_0x1ec8d8(0x2ab)]===0x0)return;const _0x57d782=[],_0x434da4=[];let _0x4aa480=_0x54d64a[_0x1ec8d8(0x1d8)][_0x1ec8d8(0x3d7)](_0x106c78[_0x1ec8d8(0x410)][0x0]),_0x3e1f94=_0x54d64a[_0x1ec8d8(0x1d8)][_0x1ec8d8(0x3d7)](_0x106c78['mutations'][0x0]);for(let _0x397b58=_0x4aaf04['length']-0x1;_0x397b58>=0x0;_0x397b58--){const _0x1bc4a6={'id':_0x1ec8d8(0x278),'params':{..._0x4aaf04[_0x397b58]}},_0x36c1b0={'id':_0x1ec8d8(0x278),'params':{..._0x34428d[_0x397b58]}},_0x46ed09=this[_0x1ec8d8(0x3ed)][_0x1ec8d8(0x28e)](_0x4aa480,_0x1bc4a6,!0x1),_0x54536e=this[_0x1ec8d8(0x3ed)][_0x1ec8d8(0x28e)](_0x3e1f94,_0x36c1b0,!0x1);if(_0x4491aa['isTransformMutationFailure'](_0x46ed09))throw _0x46ed09[_0x1ec8d8(0x311)];if(_0x4491aa['isTransformMutationFailure'](_0x54536e))throw _0x54536e[_0x1ec8d8(0x311)];_0x57d782[_0x1ec8d8(0x3d0)](_0x46ed09['m2Prime'][_0x1ec8d8(0x3c8)]),_0x434da4[_0x1ec8d8(0x3d0)](_0x54536e[_0x1ec8d8(0x295)][_0x1ec8d8(0x3c8)]),_0x4aa480=_0x46ed09[_0x1ec8d8(0x3e8)],_0x3e1f94=_0x54536e[_0x1ec8d8(0x3e8)];}_0x338884[_0x1ec8d8(0x2e0)]({'undoCache':_0x57d782,'redoCache':_0x434da4});}[_0x4b31f4(0x392)](_0x22c6ed){const _0x9d79a0=_0x4b31f4,{unitID:_0x4f75a5}=_0x22c6ed,_0x5e733f=this[_0x9d79a0(0x1e2)][_0x9d79a0(0x3d6)](_0x4f75a5)[_0x9d79a0(0x3fc)](_0x29d555['DocIMEInputManagerService']),_0x38da9d=_0x5e733f[_0x9d79a0(0x1cb)]();if(_0x38da9d==null)return;const _0x55e925=[{'id':_0x9d79a0(0x278),'params':{'unitId':_0x22c6ed[_0x9d79a0(0x35f)],'actions':null,'textRanges':[_0x38da9d]}}],_0xbbcc76=this['_transformService'][_0x9d79a0(0x1c9)](_0x22c6ed,_0x55e925);if(!_0x4491aa['isTransformMutationsWithChangesetSuccess'](_0xbbcc76))throw _0xbbcc76['error'];const _0x2d2922=_0xbbcc76[_0x9d79a0(0x295)][0x0][_0x9d79a0(0x3c8)][_0x9d79a0(0x2e3)];Array[_0x9d79a0(0x2a8)](_0x2d2922)&&_0x2d2922[_0x9d79a0(0x2ab)]&&_0x5e733f[_0x9d79a0(0x3ff)](_0x2d2922[0x0]);}};_0x396eec=_0x1ec3a6([_0x5e9f48(0x0,_0x54d64a[_0x4b31f4(0x287)](_0x54d64a[_0x4b31f4(0x317)])),_0x5e9f48(0x1,_0x4491aa[_0x4b31f4(0x3a8)]),_0x5e9f48(0x2,_0x219175[_0x4b31f4(0x3e2)])],_0x396eec);var _0x2a6c4e=Object['getOwnPropertyDescriptor'],_0x44080c=(_0x171ab3,_0x14207a,_0x35b4b3,_0x345f08)=>{const _0x13eced=_0x4b31f4;for(var _0x41b974=_0x345f08>0x1?void 0x0:_0x345f08?_0x2a6c4e(_0x14207a,_0x35b4b3):_0x14207a,_0x32c6fe=_0x171ab3[_0x13eced(0x2ab)]-0x1,_0x1e1174;_0x32c6fe>=0x0;_0x32c6fe--)(_0x1e1174=_0x171ab3[_0x32c6fe])&&(_0x41b974=_0x1e1174(_0x41b974)||_0x41b974);return _0x41b974;},_0x436a47=(_0x42ccf0,_0x36b4b6)=>(_0x47e74b,_0x2f9be9)=>_0x36b4b6(_0x47e74b,_0x2f9be9,_0x42ccf0);let _0x4fe640=class{constructor(_0x2b452e,_0x212cec,_0x3af109){const _0xd0b937=_0x4b31f4;this[_0xd0b937(0x391)]=_0x2b452e,this[_0xd0b937(0x3ed)]=_0x212cec,this[_0xd0b937(0x452)]=_0x3af109;}[_0x4b31f4(0x1e3)](_0x46caf0){const _0x52ded9=_0x4b31f4;this[_0x52ded9(0x398)](_0x46caf0);}['transformRemoteChangeset'](_0x45748e){const _0x3ce565=_0x4b31f4,{unitID:_0x29989d}=_0x45748e,{collaboration:_0x31ba59}=this[_0x3ce565(0x452)][_0x3ce565(0x2f6)](_0x29989d);if(_0x31ba59[_0x3ce565(0x2ab)]===0x0)return _0x45748e;let _0x51737f=_0x54d64a[_0x3ce565(0x1d8)][_0x3ce565(0x3d7)](_0x45748e[_0x3ce565(0x410)][0x0]);for(let _0xa376f8=0x0;_0xa376f8<_0x31ba59[_0x3ce565(0x2ab)];_0xa376f8++){const _0x18e676={'id':_0x3ce565(0x278),'params':{'unitId':_0x31ba59[_0xa376f8][_0x3ce565(0x2d3)],..._0x31ba59[_0xa376f8][_0x3ce565(0x275)]}},_0x32929f=this[_0x3ce565(0x3ed)][_0x3ce565(0x28e)](_0x51737f,_0x18e676,!0x1);if(_0x4491aa[_0x3ce565(0x3da)](_0x32929f))throw _0x32929f['error'];_0x51737f=_0x32929f[_0x3ce565(0x3e8)];}return{..._0x54d64a[_0x3ce565(0x1d8)][_0x3ce565(0x3d7)](_0x45748e),'mutations':[_0x51737f]};}['_transformHistoryAndStateStack'](_0x4f63be){const _0x1cdd30=_0x4b31f4,{unitID:_0x192d19}=_0x4f63be,{history:_0x459b30,collaboration:_0x8c6373}=this[_0x1cdd30(0x452)][_0x1cdd30(0x2f6)](_0x192d19);if(_0x459b30[_0x1cdd30(0x2ab)]===0x0&&_0x8c6373['length']===0x0)return;const _0x5a99d3=[],_0x3ed592=[];let _0x1b0724=_0x54d64a['Tools']['deepClone'](_0x4f63be[_0x1cdd30(0x410)][0x0]),_0xea964=_0x54d64a[_0x1cdd30(0x1d8)]['deepClone'](_0x4f63be[_0x1cdd30(0x410)][0x0]);for(let _0x46d309=_0x459b30['length']-0x1;_0x46d309>=0x0;_0x46d309--){const _0x470800={'id':_0x1cdd30(0x278),'params':{'unitId':_0x459b30[_0x46d309][_0x1cdd30(0x2d3)],..._0x459b30[_0x46d309]['undoState']}},_0x3d70d2={'id':_0x1cdd30(0x278),'params':{'unitId':_0x459b30[_0x46d309][_0x1cdd30(0x2d3)],..._0x459b30[_0x46d309][_0x1cdd30(0x275)]}},_0x586f4a=this[_0x1cdd30(0x3ed)][_0x1cdd30(0x28e)](_0x1b0724,_0x470800,!0x1),_0x590f6c=this[_0x1cdd30(0x3ed)][_0x1cdd30(0x28e)](_0xea964,_0x3d70d2,!0x1);if(_0x4491aa[_0x1cdd30(0x3da)](_0x586f4a))throw _0x586f4a[_0x1cdd30(0x311)];if(_0x4491aa[_0x1cdd30(0x3da)](_0x590f6c))throw _0x590f6c[_0x1cdd30(0x311)];_0x5a99d3[_0x1cdd30(0x3d0)]({..._0x459b30[_0x46d309],'undoState':_0x586f4a[_0x1cdd30(0x295)][_0x1cdd30(0x3c8)],'redoState':_0x590f6c[_0x1cdd30(0x295)]['params']}),_0x1b0724=_0x586f4a[_0x1cdd30(0x3e8)],_0xea964=_0x590f6c[_0x1cdd30(0x3e8)];}_0x1b0724=_0x54d64a[_0x1cdd30(0x1d8)][_0x1cdd30(0x3d7)](_0x4f63be[_0x1cdd30(0x410)][0x0]),_0xea964=_0x54d64a['Tools'][_0x1cdd30(0x3d7)](_0x4f63be[_0x1cdd30(0x410)][0x0]);for(let _0x259c22=_0x8c6373['length']-0x1;_0x259c22>=0x0;_0x259c22--){const _0x528942={'id':_0x1cdd30(0x278),'params':{'unitId':_0x8c6373[_0x259c22]['unitId'],..._0x8c6373[_0x259c22][_0x1cdd30(0x3df)]}},_0x3b80e4={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x8c6373[_0x259c22][_0x1cdd30(0x2d3)],..._0x8c6373[_0x259c22]['redoState']}},_0x9efe40=this['_transformService'][_0x1cdd30(0x28e)](_0x1b0724,_0x528942,!0x1),_0x545fce=this[_0x1cdd30(0x3ed)][_0x1cdd30(0x28e)](_0xea964,_0x3b80e4,!0x1);if(_0x4491aa[_0x1cdd30(0x3da)](_0x9efe40))throw _0x9efe40[_0x1cdd30(0x311)];if(_0x4491aa[_0x1cdd30(0x3da)](_0x545fce))throw _0x545fce[_0x1cdd30(0x311)];_0x3ed592[_0x1cdd30(0x3d0)]({..._0x8c6373[_0x259c22],'undoState':_0x9efe40['m2Prime']['params'],'redoState':_0x545fce['m2Prime'][_0x1cdd30(0x3c8)]}),_0x1b0724=_0x9efe40['m1Prime'],_0xea964=_0x545fce[_0x1cdd30(0x3e8)];}this['_docStateChangeManagerService']['setStateCache'](_0x192d19,{'history':_0x5a99d3,'collaboration':_0x3ed592});}};_0x4fe640=_0x44080c([_0x436a47(0x0,_0x54d64a['Inject'](_0x54d64a['Injector'])),_0x436a47(0x1,_0x4491aa['ITransformService']),_0x436a47(0x2,_0x54d64a['Inject'](_0x29d555[_0x4b31f4(0x396)]))],_0x4fe640);var _0x2389cd=Object[_0x4b31f4(0x2d8)],_0x18f287=(_0x2ff3f7,_0x4b247f,_0xff9334,_0x214024)=>{const _0x2c0ce2=_0x4b31f4;for(var _0x2f365d=_0x214024>0x1?void 0x0:_0x214024?_0x2389cd(_0x4b247f,_0xff9334):_0x4b247f,_0x384500=_0x2ff3f7[_0x2c0ce2(0x2ab)]-0x1,_0x253142;_0x384500>=0x0;_0x384500--)(_0x253142=_0x2ff3f7[_0x384500])&&(_0x2f365d=_0x253142(_0x2f365d)||_0x2f365d);return _0x2f365d;},_0x1ee845=(_0x74a9c5,_0x223029)=>(_0x20129b,_0x481539)=>_0x223029(_0x20129b,_0x481539,_0x74a9c5);let _0x3ef28f=class{constructor(_0x3aab36,_0x598819){const _0x4c793d=_0x4b31f4;this[_0x4c793d(0x391)]=_0x3aab36,this[_0x4c793d(0x3ed)]=_0x598819;}['transformSelections'](_0xcf4ed5){const _0x339bd0=_0x4b31f4;var _0xcc02de;const _0x154bd2=this[_0x339bd0(0x391)][_0x339bd0(0x363)](_0x12e053[_0x339bd0(0x34e)]),_0x32ef3b=(_0xcc02de=_0x154bd2['getDocRanges']())!=null?_0xcc02de:[];if(_0x32ef3b['length']===0x0)return;const _0x570d3d=_0xcf4ed5['unitID'],_0x21f550=[{'id':_0x339bd0(0x278),'params':{'unitId':_0x570d3d,'actions':null,'textRanges':_0x32ef3b}}],_0x19cf57=this[_0x339bd0(0x3ed)][_0x339bd0(0x1c9)](_0xcf4ed5,_0x21f550);if(!_0x4491aa[_0x339bd0(0x27a)](_0x19cf57))throw _0x19cf57[_0x339bd0(0x311)];const _0x37576a=_0x19cf57['m2Prime'][0x0][_0x339bd0(0x3c8)][_0x339bd0(0x2e3)];Array['isArray'](_0x37576a)&&_0x37576a[_0x339bd0(0x2ab)]&&_0x154bd2['replaceDocRanges'](_0x37576a,{'unitId':_0x570d3d,'subUnitId':_0x570d3d},!0x1);}};_0x3ef28f=_0x18f287([_0x1ee845(0x0,_0x54d64a[_0x4b31f4(0x287)](_0x54d64a[_0x4b31f4(0x317)])),_0x1ee845(0x1,_0x4491aa[_0x4b31f4(0x3a8)])],_0x3ef28f);var _0xdccc48=Object['getOwnPropertyDescriptor'],_0x4ec122=(_0x16e4fa,_0x1e6d1e,_0x3dada5,_0x11ca70)=>{const _0x4a02ac=_0x4b31f4;for(var _0x498bbf=_0x11ca70>0x1?void 0x0:_0x11ca70?_0xdccc48(_0x1e6d1e,_0x3dada5):_0x1e6d1e,_0x126d98=_0x16e4fa[_0x4a02ac(0x2ab)]-0x1,_0x25345d;_0x126d98>=0x0;_0x126d98--)(_0x25345d=_0x16e4fa[_0x126d98])&&(_0x498bbf=_0x25345d(_0x498bbf)||_0x498bbf);return _0x498bbf;},_0x5879a=(_0x3dfdd6,_0x158eab)=>(_0x2e3946,_0x3fcea8)=>_0x158eab(_0x2e3946,_0x3fcea8,_0x3dfdd6);let _0x235f8f=class extends _0x54d64a['Disposable']{constructor(_0x3e6ba3,_0x165374,_0x5da012,_0x2a8ebd,_0x2219a6,_0x234337,_0x35b969,_0x54c221){const _0x24d11b=_0x4b31f4;super(),_0xc8c098(this,_0x24d11b(0x1f7),new _0x59ff1b[(_0x24d11b(0x305))](_0x295c2d[_0x24d11b(0x258)][_0x24d11b(0x443)])),(this[_0x24d11b(0x452)]=_0x3e6ba3,this['_collaborationController']=_0x165374,this[_0x24d11b(0x2f2)]=_0x5da012,this[_0x24d11b(0x28d)]=_0x2a8ebd,this[_0x24d11b(0x282)]=_0x2219a6,this[_0x24d11b(0x2fe)]=_0x234337,this[_0x24d11b(0x2f3)]=_0x35b969,this[_0x24d11b(0x40f)]=_0x54c221,this[_0x24d11b(0x20a)]());}[_0x4b31f4(0x20a)](){const _0x30cf63=_0x4b31f4;this[_0x30cf63(0x204)](this[_0x30cf63(0x273)][_0x30cf63(0x30e)]['subscribe'](_0x3f0ebf=>{const _0x1815f9=_0x30cf63,_0x45885f=this['_docStateChangeManagerService'][_0x1815f9(0x2b7)][_0x1815f9(0x2fd)](_0x47662b=>{const _0xa34d56=_0x1815f9;if(_0x47662b==null)return;const {unitId:_0x354b7e,redoState:_0x1e935e,commandId:_0x38851f}=_0x47662b;if(_0x354b7e!==_0x3f0ebf[_0xa34d56(0x35f)])return;const _0x4e248e={'id':_0x38851f,'type':_0x54d64a['CommandType'][_0xa34d56(0x42a)],'params':{'unitId':_0x354b7e,'actions':_0x1e935e[_0xa34d56(0x1dc)],'textRanges':null}};_0x3f0ebf['onLocalMutation'](_0x4e248e);});if(_0x3f0ebf[_0x1815f9(0x204)](_0x45885f),_0x3f0ebf instanceof _0x295c2d[_0x1815f9(0x2f9)]){const _0x155ca0={'onTransformIME':_0xc3c032=>this[_0x1815f9(0x2f2)][_0x1815f9(0x366)](_0xc3c032),'onTransformState':_0xfabdab=>this[_0x1815f9(0x28d)][_0x1815f9(0x1e3)](_0xfabdab),'onTransformSelections':_0x33d5a1=>this[_0x1815f9(0x282)][_0x1815f9(0x36a)](_0x33d5a1),'onSyncEditingCollabCursor':_0x15aa67=>this[_0x1815f9(0x2fe)]['syncEditingCollabCursor'](_0x15aa67),'onTransformRemoteChangesetByIMECache':_0x59e64f=>this[_0x1815f9(0x2f2)]['transformRemoteChangeset'](_0x59e64f),'onTransformRemoteChangesetByStateCache':_0x5a72db=>this[_0x1815f9(0x28d)][_0x1815f9(0x27d)](_0x5a72db)};_0x3f0ebf['addHandlerCallback'](_0x155ca0);}}));}};_0x235f8f=_0x4ec122([_0x5879a(0x0,_0x54d64a['Inject'](_0x29d555[_0x4b31f4(0x396)])),_0x5879a(0x1,_0x54d64a['Inject'](_0x295c2d[_0x4b31f4(0x21c)])),_0x5879a(0x2,_0x54d64a[_0x4b31f4(0x287)](_0x396eec)),_0x5879a(0x3,_0x54d64a['Inject'](_0x4fe640)),_0x5879a(0x4,_0x54d64a[_0x4b31f4(0x287)](_0x3ef28f)),_0x5879a(0x5,_0x54d64a[_0x4b31f4(0x287)](_0x116bb1)),_0x5879a(0x6,_0x22816c['IMessageService']),_0x5879a(0x7,_0x54d64a['Inject'](_0x54d64a[_0x4b31f4(0x274)]))],_0x235f8f);var _0x267b16=Object[_0x4b31f4(0x2d8)],_0x57190c=(_0x2bb4eb,_0x268d33,_0x16c492,_0x51fd61)=>{for(var _0xa9b8dd=_0x51fd61>0x1?void 0x0:_0x51fd61?_0x267b16(_0x268d33,_0x16c492):_0x268d33,_0x552210=_0x2bb4eb['length']-0x1,_0x503f63;_0x552210>=0x0;_0x552210--)(_0x503f63=_0x2bb4eb[_0x552210])&&(_0xa9b8dd=_0x503f63(_0xa9b8dd)||_0xa9b8dd);return _0xa9b8dd;},_0x2390bf=(_0x3fe5d5,_0xcaf6bb)=>(_0x1e10aa,_0xc93ab1)=>_0xcaf6bb(_0x1e10aa,_0xc93ab1,_0x3fe5d5);let _0x503eec=class extends _0x54d64a[_0x4b31f4(0x3be)]{constructor(_0x35fce0,_0x1142a6,_0x121a3d){const _0x1606d1=_0x4b31f4;super(),_0xc8c098(this,'_cachedData',new Map()),_0xc8c098(this,_0x1606d1(0x40b),new Map()),_0xc8c098(this,'_disabled',!0x1),(this[_0x1606d1(0x2f0)]=_0x35fce0,this[_0x1606d1(0x2a6)]=_0x1142a6,this['_revisionService']=_0x121a3d);}[_0x4b31f4(0x2ea)](){const _0x2da058=_0x4b31f4;this[_0x2da058(0x220)]=!0x0;}[_0x4b31f4(0x444)](){const _0x638272=_0x4b31f4;this[_0x638272(0x220)]=!0x1;}get[_0x4b31f4(0x214)](){const _0x3ec91c=_0x4b31f4;return this[_0x3ec91c(0x40b)];}[_0x4b31f4(0x32d)](){const _0x5d7df4=_0x4b31f4;this['exhaustSavingTask']()[_0x5d7df4(0x38f)](()=>super[_0x5d7df4(0x32d)]());}async[_0x4b31f4(0x347)](_0x1d9718){const _0x2aa2f3=_0x4b31f4;return this[_0x2aa2f3(0x220)]?null:this['_localStorageService'][_0x2aa2f3(0x342)](_0x295c2d[_0x2aa2f3(0x2f7)](_0x1d9718));}async[_0x4b31f4(0x3af)](_0x2fc3cd,_0xf5798b){const _0x47ca07=_0x4b31f4;return!!this[_0x47ca07(0x2a6)][_0x47ca07(0x27c)](_0x2fc3cd,_0xf5798b);}[_0x4b31f4(0x34c)](_0x36210d,_0x51136c,_0x35f89f,_0x402148){const _0x1fa694=_0x4b31f4,_0x3f9a47=this[_0x1fa694(0x42f)][_0x1fa694(0x3a6)](_0x36210d);this[_0x1fa694(0x373)][_0x1fa694(0x314)](_0x36210d,{'unitID':_0x36210d,'type':_0x51136c,'awaitingChangeset':_0x35f89f,'mutations':_0x402148,'rev':_0x3f9a47}),this[_0x1fa694(0x40b)]['has'](_0x36210d)||this[_0x1fa694(0x1f4)](_0x36210d);}['_scheduleSaving'](_0x1b3946){const _0x1c92d9=_0x4b31f4,_0x325ff1=this[_0x1c92d9(0x319)]();_0x325ff1===0x0?this[_0x1c92d9(0x3a9)](_0x1b3946):this[_0x1c92d9(0x40b)]['set'](_0x1b3946,setTimeout(()=>this[_0x1c92d9(0x3a9)](_0x1b3946),_0x325ff1));}['_getSaveTimeout'](){const _0x1567d0=_0x4b31f4;var _0x225c71;return(_0x225c71=this[_0x1567d0(0x2f0)][_0x1567d0(0x268)](_0x295c2d['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x225c71:_0x295c2d[_0x1567d0(0x1f8)];}[_0x4b31f4(0x3a9)](_0x54d7b2){const _0x51e3ae=_0x4b31f4,_0x263829=this[_0x51e3ae(0x40b)]['get'](_0x54d7b2);return _0x263829!==void 0x0&&window[_0x51e3ae(0x370)](_0x263829),this[_0x51e3ae(0x2a6)][_0x51e3ae(0x27c)](_0x295c2d[_0x51e3ae(0x2f7)](_0x54d7b2),this['_cachedData']['get'](_0x54d7b2))[_0x51e3ae(0x38f)](()=>this['_saveTaskMap'][_0x51e3ae(0x22f)](_0x54d7b2));}async[_0x4b31f4(0x3c2)](){const _0x898d26=_0x4b31f4,_0x5194e8=[];this['_saveTaskMap']['forEach']((_0x56d0a6,_0x17ef2f)=>{const _0x49783d=_0x14a2;window[_0x49783d(0x370)](_0x56d0a6),_0x5194e8[_0x49783d(0x3e6)](this['_saveCache'](_0x17ef2f)['then'](()=>{const _0x3e259a=_0x49783d;this[_0x3e259a(0x40b)][_0x3e259a(0x22f)](_0x17ef2f);}));}),await Promise[_0x898d26(0x2b5)](_0x5194e8);}};_0x503eec=_0x57190c([_0x2390bf(0x0,_0x54d64a[_0x4b31f4(0x455)]),_0x2390bf(0x1,_0x54d64a['ILocalStorageService']),_0x2390bf(0x2,_0x54d64a[_0x4b31f4(0x287)](_0x4491aa[_0x4b31f4(0x3b1)]))],_0x503eec);class _0x3903b3 extends _0x54d64a[_0x4b31f4(0x42b)]{constructor(){const _0xab9f5a=_0x4b31f4;super(),_0xc8c098(this,_0xab9f5a(0x1e7)),this[_0xab9f5a(0x1e7)]=_0x59ff1b['fromEvent'](window,_0xab9f5a(0x26f))[_0xab9f5a(0x3a7)](_0x59ff1b['takeUntil'](this['dispose$']),_0x59ff1b[_0xab9f5a(0x2d2)](0x1),_0x59ff1b[_0xab9f5a(0x38e)](void 0x0));}[_0x4b31f4(0x1d5)](_0x208464,_0x52355e,_0x49141e=!0x1){const _0x4a4e4e=_0x4b31f4,_0x342f77=new URL(window[_0x4a4e4e(0x272)][_0x4a4e4e(0x25b)]);_0x342f77[_0x4a4e4e(0x1eb)][_0x4a4e4e(0x314)](_0x208464,_0x52355e),_0x49141e?window[_0x4a4e4e(0x1e5)]['replaceState']('','',_0x342f77[_0x4a4e4e(0x405)]()):window[_0x4a4e4e(0x1e5)][_0x4a4e4e(0x3d8)]('','',_0x342f77[_0x4a4e4e(0x405)]());}['removeParam'](_0x1b018f,_0x509c8a=!0x1){const _0x1e0959=_0x4b31f4,_0x1dd07e=new URL(window['location'][_0x1e0959(0x25b)]);_0x1dd07e['searchParams'][_0x1e0959(0x22f)](_0x1b018f),_0x509c8a?window[_0x1e0959(0x1e5)][_0x1e0959(0x39a)]('','',_0x1dd07e[_0x1e0959(0x405)]()):window[_0x1e0959(0x1e5)][_0x1e0959(0x3d8)]('','',_0x1dd07e[_0x1e0959(0x405)]());}[_0x4b31f4(0x2ce)](_0x3cd336){const _0x295377=_0x4b31f4;var _0x5eaad6;return(_0x5eaad6=new URL(window[_0x295377(0x272)][_0x295377(0x25b)])[_0x295377(0x1eb)][_0x295377(0x363)](_0x3cd336))!=null?_0x5eaad6:void 0x0;}}var _0x153b04=Object[_0x4b31f4(0x30c)],_0x58d40e=Object[_0x4b31f4(0x2d8)],_0x42aaf2=(_0xa57590,_0x2b3e9d,_0x42a25d)=>_0x2b3e9d in _0xa57590?_0x153b04(_0xa57590,_0x2b3e9d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42a25d}):_0xa57590[_0x2b3e9d]=_0x42a25d,_0x10c603=(_0x204785,_0x4c7144,_0x3efd7a,_0x40f45c)=>{const _0x162187=_0x4b31f4;for(var _0x596dfb=_0x40f45c>0x1?void 0x0:_0x40f45c?_0x58d40e(_0x4c7144,_0x3efd7a):_0x4c7144,_0x936b89=_0x204785[_0x162187(0x2ab)]-0x1,_0x185dbd;_0x936b89>=0x0;_0x936b89--)(_0x185dbd=_0x204785[_0x936b89])&&(_0x596dfb=_0x185dbd(_0x596dfb)||_0x596dfb);return _0x596dfb;},_0x2af025=(_0x18fc03,_0x12f780)=>(_0x4bf6a8,_0x4aaa2c)=>_0x12f780(_0x4bf6a8,_0x4aaa2c,_0x18fc03),_0x1bb107=(_0x15e7fe,_0x31c6b6,_0x16ff1d)=>_0x42aaf2(_0x15e7fe,_0x31c6b6+'',_0x16ff1d);const _0x3d6866='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';_0x1bb602[_0x4b31f4(0x411)]=class extends _0x54d64a['Plugin']{constructor(_0x48824c=_0x281e7f,_0x291731,_0x165d62,_0x140b9c){const _0x9f2fd0=_0x4b31f4;super(),this[_0x9f2fd0(0x38c)]=_0x48824c,this[_0x9f2fd0(0x1e2)]=_0x291731,this[_0x9f2fd0(0x391)]=_0x165d62,this[_0x9f2fd0(0x2f0)]=_0x140b9c;const {..._0xc6a1db}=_0x54d64a['merge']({},_0x281e7f,this[_0x9f2fd0(0x38c)]);this[_0x9f2fd0(0x2f0)][_0x9f2fd0(0x3bf)](_0x4a13f3,_0xc6a1db);}[_0x4b31f4(0x2fc)](){const _0x158448=_0x4b31f4;this[_0x158448(0x2c6)](),this[_0x158448(0x24a)]();}[_0x4b31f4(0x3cf)](){this['_registerRenderDependencies']();}[_0x4b31f4(0x2c6)](){const _0x250d82=_0x4b31f4;var _0x5c0bfc;const _0x1b43b5=[[_0x5f06d2],[_0x3ef28f],[_0x396eec],[_0x4fe640],[_0x116bb1],[_0x5087f2,{'useClass':_0x3903b3}],[_0x49f544[_0x250d82(0x40d)],{'useClass':_0x49f544[_0x250d82(0x3b9)]}],[_0x295c2d[_0x250d82(0x1f1)],{'useClass':_0x503eec}],[_0x1bb602[_0x250d82(0x219)]],[_0x235f8f],[_0x53f29f],[_0x5227f6],[_0x12ae5b],[_0x1bb602[_0x250d82(0x37f)]]];_0x54d64a['registerDependencies'](this[_0x250d82(0x391)],_0x54d64a[_0x250d82(0x445)](_0x1b43b5,(_0x5c0bfc=this[_0x250d82(0x38c)])==null?void 0x0:_0x5c0bfc[_0x250d82(0x228)]));}[_0x4b31f4(0x34d)](){const _0x34b619=_0x4b31f4;this[_0x34b619(0x204)](this[_0x34b619(0x1e2)][_0x34b619(0x2fa)](_0x54d64a[_0x34b619(0x1fd)][_0x34b619(0x298)],[_0x5227cd])),this[_0x34b619(0x204)](this[_0x34b619(0x1e2)][_0x34b619(0x2fa)](_0x54d64a[_0x34b619(0x1fd)][_0x34b619(0x41a)],[_0x16b5fd]));}[_0x4b31f4(0x24a)](){const _0x27c24c=_0x4b31f4;_0x54d64a[_0x27c24c(0x2aa)](this['_injector'],[[_0x5227f6],[_0x1bb602[_0x27c24c(0x219)]],[_0x235f8f],[_0x53f29f],[_0x1bb602[_0x27c24c(0x37f)]]]);}},_0x1bb107(_0x1bb602['UniverCollaborationClientUIPlugin'],_0x4b31f4(0x39e),_0x3d6866),_0x1bb602[_0x4b31f4(0x411)]=_0x10c603([_0x54d64a[_0x4b31f4(0x36f)](_0x295c2d[_0x4b31f4(0x20e)]),_0x2af025(0x1,_0x219175[_0x4b31f4(0x3e2)]),_0x2af025(0x2,_0x54d64a['Inject'](_0x54d64a[_0x4b31f4(0x317)])),_0x2af025(0x3,_0x54d64a[_0x4b31f4(0x455)])],_0x1bb602['UniverCollaborationClientUIPlugin']);var _0x337e84=Object[_0x4b31f4(0x2d8)],_0x2b8219=(_0x48832b,_0x5ee7b3,_0x30869e,_0xc37a)=>{const _0x3e339f=_0x4b31f4;for(var _0x1ddeab=_0xc37a>0x1?void 0x0:_0xc37a?_0x337e84(_0x5ee7b3,_0x30869e):_0x5ee7b3,_0x51267f=_0x48832b[_0x3e339f(0x2ab)]-0x1,_0x389516;_0x51267f>=0x0;_0x51267f--)(_0x389516=_0x48832b[_0x51267f])&&(_0x1ddeab=_0x389516(_0x1ddeab)||_0x1ddeab);return _0x1ddeab;},_0x2128ce=(_0x117031,_0x56b581)=>(_0x45ccbf,_0x2d7a16)=>_0x56b581(_0x45ccbf,_0x2d7a16,_0x117031);_0x1bb602[_0x4b31f4(0x421)]=class extends _0x295c2d['CollaborationSocketService']{constructor(_0x3e7f99,_0x418e5a,_0x242a05,_0x2cac6f,_0x1ece7){super(_0x3e7f99,_0x418e5a,_0x242a05,_0x2cac6f,_0x1ece7);}async['createSocket'](_0x67bd20){const _0x2666fc=_0x4b31f4,_0x4ff142=await this[_0x2666fc(0x1f5)](),_0x6012e3=this[_0x2666fc(0x435)](_0x67bd20,_0x4ff142);return this[_0x2666fc(0x3f4)](_0x6012e3);}[_0x4b31f4(0x435)](_0x5184d5,_0x4495f5){const _0x2d324e=_0x4b31f4,_0x5bb711=typeof window>'u'?new URL(_0x5184d5):new URL(_0x5184d5,window[_0x2d324e(0x272)][_0x2d324e(0x32b)]);_0x5bb711[_0x2d324e(0x1eb)]['set'](_0x2d324e(0x320),_0x4495f5);const _0x457cfe=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2d324e(0x272)]['search']);return _0x457cfe[_0x2d324e(0x363)](_0x2d324e(0x33d))&&_0x5bb711[_0x2d324e(0x1eb)][_0x2d324e(0x314)]('runId',_0x457cfe[_0x2d324e(0x363)](_0x2d324e(0x33d))),_0x5bb711[_0x2d324e(0x405)]();}async[_0x4b31f4(0x1f5)](){const _0x4b39ff=_0x4b31f4;var _0xba12f6,_0x512b1b,_0x3fe850;const _0x1a393d=this[_0x4b39ff(0x2f0)][_0x4b39ff(0x268)](_0x295c2d[_0x4b39ff(0x3a3)]),_0x373362=(_0xba12f6=_0x1a393d==null?void 0x0:_0x1a393d[_0x4b39ff(0x2c5)])!=null?_0xba12f6:_0x295c2d['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x3fe850=(_0x512b1b=(await this[_0x4b39ff(0x412)][_0x4b39ff(0x363)](_0x373362,{'headers':{'Content-Type':'application/json'}}))[_0x4b39ff(0x230)])==null?void 0x0:_0x512b1b[_0x4b39ff(0x3f8)])!=null?_0x3fe850:'';}},_0x1bb602[_0x4b31f4(0x421)]=_0x2b8219([_0x2128ce(0x0,_0x54d64a[_0x4b31f4(0x287)](_0x54d64a[_0x4b31f4(0x317)])),_0x2128ce(0x1,_0x54d64a[_0x4b31f4(0x287)](_0x49f544[_0x4b31f4(0x233)])),_0x2128ce(0x2,_0x54d64a[_0x4b31f4(0x455)]),_0x2128ce(0x3,_0x54d64a[_0x4b31f4(0x1c7)]),_0x2128ce(0x4,_0x4491aa[_0x4b31f4(0x44f)])],_0x1bb602[_0x4b31f4(0x421)]);const _0x3cf3ae=0x7530,_0x1f8607=_0x4b31f4(0x2d7);class _0x25760f extends _0x54d64a[_0x4b31f4(0x3be)]{constructor(){const _0x2a5de8=_0x4b31f4;super(),_0xc8c098(this,_0x2a5de8(0x400),_0x54d64a['generateRandomId']()),_0xc8c098(this,'_selfUnitIDs',new Set()),_0xc8c098(this,_0x2a5de8(0x203),new Map()),_0xc8c098(this,_0x2a5de8(0x281),null),_0xc8c098(this,'_clearOtherTimers',new Map()),_0xc8c098(this,_0x2a5de8(0x2b0),new Map()),this[_0x2a5de8(0x451)]();}['dispose'](){const _0x377851=_0x4b31f4;super[_0x377851(0x32d)](),this[_0x377851(0x44c)][_0x377851(0x377)]((_0x4ae077,_0x24675b)=>this[_0x377851(0x407)](_0x24675b)),this[_0x377851(0x281)]&&window['clearInterval'](this[_0x377851(0x281)]);}[_0x4b31f4(0x250)](_0xf74171){const _0x13baea=_0x4b31f4;return this[_0x13baea(0x22e)](_0xf74171)[_0x13baea(0x3a7)](_0x59ff1b[_0x13baea(0x3e7)]());}[_0x4b31f4(0x251)](_0x482361){const _0x432836=_0x4b31f4;this[_0x432836(0x3ba)][_0x432836(0x1e4)]===0x0&&this['_scheduleHeartbeat'](),this[_0x432836(0x3ba)][_0x432836(0x353)](_0x482361),this['_send']({'type':0x0,'memberID':this[_0x432836(0x400)],'unitIDs':[_0x482361],'isForwarded':!0x1});}[_0x4b31f4(0x2f8)](_0x4b600f){const _0x3cb520=_0x4b31f4;this[_0x3cb520(0x3ba)]['delete'](_0x4b600f),this[_0x3cb520(0x3ba)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x3cb520(0x36e)](this[_0x3cb520(0x281)]);}[_0x4b31f4(0x451)](){const _0x36eb5c=_0x4b31f4;this[_0x36eb5c(0x204)](_0x54d64a[_0x36eb5c(0x32e)](_0x59ff1b[_0x36eb5c(0x2d9)](window,_0x36eb5c(0x29d))[_0x36eb5c(0x2fd)](_0x23a624=>{const _0x41a380=_0x36eb5c;if(_0x23a624[_0x41a380(0x39f)]!==_0x1f8607||!_0x23a624[_0x41a380(0x31c)])return;const _0x4ec037=JSON[_0x41a380(0x28f)](_0x23a624[_0x41a380(0x31c)]);this[_0x41a380(0x1f2)](_0x4ec037);}))),window['addEventListener']('unload',()=>this[_0x36eb5c(0x3b3)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x36eb5c(0x3ba)])}));}[_0x4b31f4(0x1f2)](_0x682aad){const _0x2f6a20=_0x4b31f4;switch(_0x682aad['type']){case 0x0:this[_0x2f6a20(0x211)](_0x682aad);break;case 0x1:this[_0x2f6a20(0x28b)](_0x682aad);break;case 0x2:this[_0x2f6a20(0x43d)](_0x682aad);break;}}['_handleJoinEvent'](_0x668af5){const _0xf504fe=_0x4b31f4,{unitIDs:_0x4a0bad,memberID:_0x1ed0e9,isForwarded:_0x3a094c}=_0x668af5;_0x4a0bad[_0xf504fe(0x377)](_0x91a679=>{const _0x20eb9f=_0xf504fe;if(!_0x3a094c&&this[_0x20eb9f(0x203)]['has'](_0x91a679)&&this[_0x20eb9f(0x22e)](_0x91a679)['next'](_0x295c2d['UnitStatus']['OTHER_CLIENTS_EDITING']),!this['_unitOnClients'][_0x20eb9f(0x331)](_0x91a679)||!this[_0x20eb9f(0x203)][_0x20eb9f(0x363)](_0x91a679)[_0x20eb9f(0x331)](_0x1ed0e9)){const _0x14911f=this[_0x20eb9f(0x203)][_0x20eb9f(0x363)](_0x91a679)||new Set();_0x14911f[_0x20eb9f(0x353)](_0x1ed0e9),this['_unitOnClients'][_0x20eb9f(0x314)](_0x91a679,_0x14911f),this[_0x20eb9f(0x259)](_0x1ed0e9);}}),_0x3a094c||this[_0xf504fe(0x3b3)]({'type':0x0,'memberID':this[_0xf504fe(0x400)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4b31f4(0x259)](_0x5bde26){const _0x572a8c=_0x4b31f4;this[_0x572a8c(0x407)](_0x5bde26);const _0x3eae5e=window[_0x572a8c(0x266)](()=>{const _0x363d52=_0x572a8c;this[_0x363d52(0x203)][_0x363d52(0x377)](_0x208557=>{const _0xfd2802=_0x363d52;_0x208557[_0xfd2802(0x22f)](_0x5bde26);});},_0x3cf3ae*0x2);this[_0x572a8c(0x44c)]['set'](_0x5bde26,_0x3eae5e);}[_0x4b31f4(0x407)](_0x42f0a8){const _0x196896=_0x4b31f4;if(this[_0x196896(0x44c)][_0x196896(0x331)](_0x42f0a8)){const _0x13639e=this[_0x196896(0x44c)][_0x196896(0x363)](_0x42f0a8);_0x13639e&&window[_0x196896(0x370)](_0x13639e),this[_0x196896(0x44c)][_0x196896(0x314)](_0x42f0a8,null);}}[_0x4b31f4(0x28b)](_0x518e9f){const _0x4ab299=_0x4b31f4,{memberID:_0x4243d5,unitIDs:_0x41d4dd}=_0x518e9f;_0x41d4dd[_0x4ab299(0x377)](_0x2c6d09=>{const _0x5fd38e=_0x4ab299;var _0x18781b;const _0x48fa25=this[_0x5fd38e(0x203)][_0x5fd38e(0x363)](_0x2c6d09);_0x48fa25&&(_0x48fa25['delete'](_0x4243d5),(_0x18781b=this['_ensureSubject'](_0x2c6d09))==null||_0x18781b[_0x5fd38e(0x222)](_0x48fa25[_0x5fd38e(0x1e4)]===0x0?_0x295c2d['UnitStatus'][_0x5fd38e(0x24d)]:_0x295c2d[_0x5fd38e(0x2ec)][_0x5fd38e(0x29f)]));}),this[_0x4ab299(0x407)](_0x4243d5);}[_0x4b31f4(0x43d)](_0x23292c){const _0x4a63d4=_0x4b31f4;this[_0x4a63d4(0x259)](_0x23292c[_0x4a63d4(0x378)]);}[_0x4b31f4(0x3b3)](_0x5a2fa0){const _0x48d4dc=_0x4b31f4;localStorage[_0x48d4dc(0x27c)](_0x1f8607,JSON[_0x48d4dc(0x292)](_0x5a2fa0));}[_0x4b31f4(0x3cc)](){const _0x3fed0a=_0x4b31f4;this[_0x3fed0a(0x281)]=window['setInterval'](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},_0x3cf3ae);}[_0x4b31f4(0x22e)](_0x407d57){const _0x30e64c=_0x4b31f4;return this[_0x30e64c(0x2b0)][_0x30e64c(0x331)](_0x407d57)||this[_0x30e64c(0x2b0)]['set'](_0x407d57,new _0x59ff1b[(_0x30e64c(0x305))](_0x295c2d[_0x30e64c(0x2ec)][_0x30e64c(0x24d)])),this[_0x30e64c(0x2b0)][_0x30e64c(0x363)](_0x407d57);}}var _0x21b470=(_0x19d4e4=>(_0x19d4e4[_0x19d4e4['UNDEFINED']=0x0]=_0x4b31f4(0x393),_0x19d4e4[_0x19d4e4['OK']=0x1]='OK',_0x19d4e4[_0x19d4e4[_0x4b31f4(0x2fb)]=0x2]=_0x4b31f4(0x2fb),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x299)]=0x3]=_0x4b31f4(0x299),_0x19d4e4[_0x19d4e4['NOT_FOUND']=0x4]=_0x4b31f4(0x25e),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x1c8)]=0x5]=_0x4b31f4(0x1c8),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x2b2)]=0x6]=_0x4b31f4(0x2b2),_0x19d4e4[_0x19d4e4['INVALID_ARGUMENT']=0x7]=_0x4b31f4(0x290),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x3a5)]=0x8]=_0x4b31f4(0x3a5),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x22d)]=0x9]=_0x4b31f4(0x22d),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x3e9)]=0xa]=_0x4b31f4(0x3e9),_0x19d4e4[_0x19d4e4['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4b31f4(0x242),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x1cc)]=0x1771]=_0x4b31f4(0x1cc),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x376)]=0x1772]=_0x4b31f4(0x376),_0x19d4e4[_0x19d4e4['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x19d4e4[_0x19d4e4[_0x4b31f4(0x1d1)]=0x1b59]=_0x4b31f4(0x1d1),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x2e4)]=0x1b5a]=_0x4b31f4(0x2e4),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x344)]=0x1b5b]=_0x4b31f4(0x344),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x2c0)]=0x1b5c]=_0x4b31f4(0x2c0),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x446)]=0x1b5d]='APPLY_DUPLICATED',_0x19d4e4[_0x19d4e4[_0x4b31f4(0x2b9)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x19d4e4[_0x19d4e4[_0x4b31f4(0x43a)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x19d4e4[_0x19d4e4[_0x4b31f4(0x238)]=0x232a]=_0x4b31f4(0x238),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x2d6)]=0x232b]=_0x4b31f4(0x2d6),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x439)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x19d4e4[_0x19d4e4[_0x4b31f4(0x244)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x19d4e4[_0x19d4e4[_0x4b31f4(0x229)]=0x2711]=_0x4b31f4(0x229),_0x19d4e4[_0x19d4e4['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x4b31f4(0x39d),_0x19d4e4[_0x19d4e4['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x4b31f4(0x3c1),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x419)]=0x2714]=_0x4b31f4(0x419),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x323)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x19d4e4[_0x19d4e4[_0x4b31f4(0x1df)]=0x271b]=_0x4b31f4(0x1df),_0x19d4e4[_0x19d4e4['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x19d4e4[_0x19d4e4[_0x4b31f4(0x2d5)]=0x271d]=_0x4b31f4(0x2d5),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x1c2)]=0x271e]=_0x4b31f4(0x1c2),_0x19d4e4[_0x19d4e4['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x19d4e4[_0x19d4e4[_0x4b31f4(0x218)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x19d4e4[_0x19d4e4[_0x4b31f4(0x1fe)]=0x2ee1]=_0x4b31f4(0x1fe),_0x19d4e4[_0x19d4e4['INVALID_INVITE_CODE']=0x2ee2]=_0x4b31f4(0x20c),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x35d)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x19d4e4[_0x19d4e4['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x19d4e4[_0x19d4e4[_0x4b31f4(0x1ce)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x19d4e4[_0x19d4e4['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x4b31f4(0x2a7),_0x19d4e4[_0x19d4e4['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x4b31f4(0x406),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x348)]=0x32cb]=_0x4b31f4(0x348),_0x19d4e4[_0x19d4e4[_0x4b31f4(0x3bc)]=-0x1]='UNRECOGNIZED',_0x19d4e4))(_0x21b470||{}),_0x1c7947=Object[_0x4b31f4(0x2d8)],_0x110af3=(_0x300bd1,_0x5edd11,_0x49743b,_0x25d4b8)=>{const _0x51b2bd=_0x4b31f4;for(var _0x37c279=_0x25d4b8>0x1?void 0x0:_0x25d4b8?_0x1c7947(_0x5edd11,_0x49743b):_0x5edd11,_0x1d1b23=_0x300bd1[_0x51b2bd(0x2ab)]-0x1,_0x4be38a;_0x1d1b23>=0x0;_0x1d1b23--)(_0x4be38a=_0x300bd1[_0x1d1b23])&&(_0x37c279=_0x4be38a(_0x37c279)||_0x37c279);return _0x37c279;},_0x20c1b0=(_0xc20d67,_0xd519da)=>(_0x110a4c,_0x1f4b35)=>_0xd519da(_0x110a4c,_0x1f4b35,_0xc20d67);_0x1bb602[_0x4b31f4(0x434)]=class extends _0x54d64a[_0x4b31f4(0x3be)]{constructor(_0x246be5,_0x4fb7f0,_0x457a00){const _0x41f945=_0x4b31f4;super(),this[_0x41f945(0x304)]=_0x246be5,this[_0x41f945(0x412)]=_0x4fb7f0,this[_0x41f945(0x2f0)]=_0x457a00;}async[_0x4b31f4(0x3f6)](_0x108bc6,_0x5540cb,_0x47689d,..._0x1b80b1){const _0x44589d=_0x4b31f4;var _0x12dfcc,_0x43deb4,_0x195c2e,_0x7d561;const _0x41ed71=this[_0x44589d(0x304)][_0x44589d(0x415)]();if(!_0x41ed71)throw new Error(_0x44589d(0x252));const _0x596f67=((_0x12dfcc=this['_configService']['getConfig'](_0x295c2d['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x12dfcc:_0x295c2d[_0x44589d(0x269)])+'/'+_0x108bc6+_0x44589d(0x3f3)+_0x5540cb,_0x4a6386=new URL(window[_0x44589d(0x272)][_0x44589d(0x25b)]),_0x29d073={'scriptId':_0x108bc6,'runId':(_0x43deb4=_0x4a6386[_0x44589d(0x1eb)]['get'](_0x44589d(0x33d)))!=null?_0x43deb4:'','function':_0x5540cb,'unitId':_0x41ed71['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x1b80b1),'invokeId':(_0x195c2e=_0x47689d['invokeId'])!=null?_0x195c2e:'','executionId':(_0x7d561=_0x47689d[_0x44589d(0x37e)])!=null?_0x7d561:''};try{const _0x36eb91=await this[_0x44589d(0x412)]['post'](_0x596f67,{'body':_0x29d073});return _0x36eb91[_0x44589d(0x230)]['error']&&_0x36eb91[_0x44589d(0x230)]['error'][_0x44589d(0x263)]!==_0x21b470['OK']?_0x44589d(0x200):_0x36eb91[_0x44589d(0x230)][_0x44589d(0x321)];}catch{return _0x44589d(0x200);}}},_0x1bb602[_0x4b31f4(0x434)]=_0x110af3([_0x20c1b0(0x0,_0x54d64a[_0x4b31f4(0x26b)]),_0x20c1b0(0x1,_0x54d64a[_0x4b31f4(0x287)](_0x49f544[_0x4b31f4(0x233)])),_0x20c1b0(0x2,_0x54d64a[_0x4b31f4(0x455)])],_0x1bb602[_0x4b31f4(0x434)]),_0x1bb602[_0x4b31f4(0x38b)]=_0x28d069,_0x1bb602[_0x4b31f4(0x23a)]=_0x5087f2,_0x1bb602['SheetCollabCursorShape']=_0x3aa33d,_0x1bb602[_0x4b31f4(0x33a)]=_0x25760f,_0x1bb602['WebURLService']=_0x3903b3,Object[_0x4b31f4(0x30c)](_0x1bb602,Symbol[_0x4b31f4(0x3f5)],{'value':'Module'});}));function _0x14a2(_0x49eac2,_0x4da116){const _0x10b06a=_0x10b0();return _0x14a2=function(_0x14a239,_0xee5c64){_0x14a239=_0x14a239-0x1c1;let _0x50848a=_0x10b06a[_0x14a239];return _0x50848a;},_0x14a2(_0x49eac2,_0x4da116);}function _0x10b0(){const _0x2d5b63=['from','connectInjector','getStateCache','getLocalCacheKey','disposeUnit','DocCollaborationEntity','registerRenderModule','INTERNAL_ERROR','onStarting','subscribe','_docSyncEditingCollabCursorService','IMessageService','@univerjs/sheets-ui','_notificationService','handleIRemoveRow','_anchorDot','_instanceService','BehaviorSubject','loadUnit','getTypeOfUnitAdded$','_onRefRangeChange','runRefRangeMutations','subscribeEvent','function','defineProperty','_getScale','entityInit$','mask','2XoSWbZ','error','startRow','DOC_RANGE_TYPE','set','useObservable','getTypeOfUnitDisposed$','Injector','hide','_getSaveTimeout','React','10odqoJi','newValue','text','white','yellow.400','sessionTicket','result','FromArray','YUUMI_NO_CUBOID_FOR_QUESTION','permission.title','3241928WUDYIK','_collaborationUIEventService','@univerjs/engine-formula','collabStatus.notCollab','registerRefRange','handleIRemoveCol','origin','Rect','dispose','toDisposable','@univerjs/sheets','CollaborationUIEventService','has','idSuffix','useCallback','send','handleDeleteRangeMoveUp','PENDING','SetDocZoomRatioOperation','currentColor','tag','WebBrowserSingleActiveUnitService','_cursorInfo$','onPointerEnter$','runId','[CollaborationDataLoaderController]','_range','isEditing','icon','getItem','@univerjs/core','APPLY_REVISION_CONFILICT','_session','CONFLICT','loadOfflineData','EMAIL_HAS_BEEN_BOUND','univer-flex\x20univer-items-center','uni.network.url-service','handleInsertCol','updateOfflineData','_registerRenderDependencies','DocSelectionManagerService','type','contains','_commandService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','add','_document','imageSourceType','values','fromEventSubject','getRangePointData','max','onPointerLeave$','getValue','init','INVITE_CODE_REQUIRED','isActive','unitID','_shapes','_removeCollabCursors','getSheetBySheetId','get','fill','9525582vKDGHy','transformIMECache','collabStatus.syncing','_initEvent','_cursorShapes','transformSelections','_docSkeletonManagerService','0\x200\x2016\x2016','IImageIoService','clearInterval','DependentOn','clearTimeout','AWAITING_WITH_PENDING','NodePositionConvertToRectRange','_cachedData','range','collaboration-client-ui.config','SNAPSHOT_HAS_BEEN_REMOVED','forEach','memberID','ThemeService','_refreshCollabCursors','UniverDocsUi','eventID','_getMergeRange','executionId','CollaborationDataLoaderController','getActiveSheet','_transformUndoRedoStack','useDependency','getCoordByCell','createInstance','concat','_labelPosition','37518118PEvTfb','jsxs','some','_beforeCloseService','CollaborationStatusDisplay','_config','off-line-icon_clip0_910_343','mapTo','then','jsx','_injector','_transformPreviousActiveRange','UNDEFINED','getCurrent','current','DocStateChangeManagerService','_initCommandExecutedListener','_transformHistoryAndStateStack','_name','replaceState','_roomMembers$','_getAnchorBounding','YUUMI_URL_COL_OUT_OF_RANGE','pluginName','key','_hideTimer','debug','rxjs','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','assign','TOO_MANY_REQUESTS','getCurrentRevOfUnit','pipe','ITransformService','_saveCache','UniverProCollaboration','DisposableCollection','triggerDblclick','UniverUi','requireSession','saveOfflineData','UniverNetwork','RevisionService','_sheetSkeletonManagerService','_send','prototype','throttleTime','permission.content','currentTheme$','onCommandExecuted','WebSocketService','_selfUnitIDs','_themeService','UNRECOGNIZED','substring','Disposable','setConfig','DeleteRangeMoveLeftCommandId','YUUMI_RATE_OVER_LIMIT','exhaustSavingTask','bottom','...','getUniverSheetInstance','asObservable','roomMembers$','params','getSkeleton','TRANSFORM_CHANGE_OBSERVABLE_TYPE','none','_scheduleHeartbeat','getUnhiddenWorksheets','_logService','onRendered','unshift','collabStatus.offline','addClipboardHook','IDocClipboardService','_render','getOffsetConfig','getRenderById','deepClone','pushState','UPDATE_CURSOR','isTransformMutationFailure','UniverProCollaborationClient','cursorInfo$','registerBeforeClose','_updateURLWithCurrentState','undoState','arc','addObject','IRenderManagerService','_startDocCollabCursor','SessionStatus','clipPath','push','distinctUntilChanged','m1Prime','LOGIN_FAILED','toRgbString','translate(.97)','defs','_transformService','labelPosition','_onCursorUpdate','SetWorksheetActivateCommand','6641740LwCaDt','closePath','/run/','_doCreateSocket','toStringTag','runOnServer','findNodePositionByCharIndex','ticket','includes','_collabSessionService','_startSheetCollabCursor','with','_univerInstanceService','use','setActiveRange','_id','sheetId','_updateSubUnitFromURLParams','_anchor','_initResize','toString','MOBILE_HAS_BEEN_BOUND','_removeClearOtherTimer','http://www.w3.org/2000/svg','_handleHover','rxjs/operators','_saveTaskMap','@univerjs-pro/collaboration-client','ISocketService','collaboration.closeRoom','_localeService','mutations','UniverCollaborationClientUIPlugin','_httpService','UniverProCollaborationClientUi','TEXT','getFocusedUnit','combineLatest','onTransformChange$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','YUUMI_SUBSCRIPTION_NOT_FOUND','UNIVER_SHEET','on-line-icon','currentSkeleton$','black','sessionStatus$','#FFF','getSheetId','BrowserCollaborationSocketService','ranges','filter','drawWith','UniverSheets','setShapeProps','subUnitId','COLORS','Warning','MUTATION','RxDisposable','Shape','onMouseMove','MoveRangeCommandId','_revisionService','9682050OBnyns','focused$','replace','_color','RemoteUniscriptService','_createSocketURL','_cursors','_localCacheService','_colorIndex','LICENSE_EXPORT_SIZE_EXCEEDED','LICENSE_MAX_UNITS_EXCEEDED','JOIN_ROOM_FAILED','width','_handleHeartbeatEvent','roomMembers','column','selection','_setupBeforeClosingHandler','fillStyle','NOT_COLLAB','enableLocalCache','mergeOverrideWithDependencies','APPLY_DUPLICATED','InsertRangeMoveDownCommandId','round','collab-client.tooltip.reconnect','M0\x200H16V16H0z','generateRandomId','_clearOtherTimers','_docClipboardService','_setupSubUnitSync','ISnapshotServerService','takeUntil','_init','_docStateChangeManagerService','_drawRectRange','handleDeleteRangeMoveLeft','IConfigService','_uiPartsService','EffectRefRangId','getCellPositionByOffset','off-line-icon','indexOf','color','_collabCursorController','SOCKET_FAILED_RETRY','rgba(255,\x20255,\x20255,\x200.01)','_refRangeService','USERS_LEAVE','restore','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','collabCursorState$','@univerjs/engine-render','@univerjs-pro/collaboration','_lastPointer','ILogService','UNAUTHENTICATED','transformMutationsWithChangeset','react','getActiveRange','SNAPSHOT_INVALID_SNAPSHOT','exports','INVITE_CODE_ALREADY_BOUND','OFFLINE','_entityInit$','APPLY_REJECT','CollaborationSessionService','_onCursorDelete','debounce','setParam','RichTextEditingMutation','evenodd','Tools','call','UniverDrawing','symbol','actions','data','font','YUUMI_ASYNCIO_CANCELLED','@univerjs/docs-ui','fillText','_renderManagerService','transformStateCache','size','history','collab-text-anchor-','urlChange$','Vector2','onPointerMove$','Rectangle','searchParams','MessageType','forwardRef','_entities','OTHER_CLIENT_EDITING','getOwnPropertySymbols','ILocalCacheService','_handleEvent','SetTextSelectionsOperation','_scheduleSaving','_getSessionTicket','_memberService','_status$','LOCAL_CACHE_INTERVAL','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','_colorAssignService','getAncestorScale','@univerjs/drawing','UniverInstanceType','INVITE_CODE_HAS_BEEN_UES','apply','Failed','DataLoaderService','RemoveRowCommandId','_unitOnClients','disposeWithMe','children','green.600','CLOSE_ROOM','status$','InsertRangeMoveRightCommandId','_initEntityListener','@univerjs/network','INVALID_INVITE_CODE','startsWith','UniverCollaborationClientPlugin','RefRangeService','9euepVH','_handleJoinEvent','getViewport','className','saveTaskMap','map','dispose$','UniverDocs','PY_RUNTIME_SCRIPT_ERROR','DesktopCollaborationStatusDisplayController','HEADER_MENU','@univerjs/rpc','CollaborationController','red.300','collabStatus.synced','div','_disabled','OnLineIcon','next','object','SUBMIT_CHANGESET_TIMEOUT','startColumn','UniverEngineRender','_urlService','override','YUUMI_UNABLE_LOAD_URL','DeleteRangeMoveUpCommandId','_updateCollabCursors','_toggleOnline','COMPLETION_FINISHED','_ensureSubject','delete','body','Subject','session.collaboration-timeout','HTTPService','_backgroundColor','engine','NodePositionConvertToCursor','CollaborationEvent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','name','IURLService','UniverCore','3098526flkWIo','url(#$1','row','flatMap','xlink:href','event$','CHANGESET_REVISION_CONFILICT','MemberService','LICENSE_DISTRO_REJECTED','SetSelectionsOperation','1em','assignAColorForMemberID','_hover','RECT','_initDependencies','_context','BuiltInUIPart','NO_OTHER_CLIENTS_EDITING','_toggleOffline','_updateLocalCursor','getUnitStatus$','editingUnit','[RemoteUniscriptService]:\x20no\x20focused\x20unit','handleInsertRow','show','5rSzGTc','save','Unknown\x20user','CollaborationStatus','_scheduleClearOtherTimer','random','href','string','svg','NOT_FOUND','setAlpha','ICommandService','propertyIsEnumerable','_eventUnsubscribe','code','_syncEditingCollabCursorService','DocSkeletonManagerService','setTimeout','1538090pixqBs','getConfig','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getMember','IUniverInstanceService','min','displayName','TEXT_RANGE_LAYER_INDEX','popstate','measureText','subunit','location','_collaborationController','LocaleService','redoState','_drawAnchor','FETCH_MISS','doc.mutation.rich-text-editing','complete','isTransformMutationsWithChangesetSuccess','_initStatusComponent','setItem','transformRemoteChangeset','DocIMEInputManagerService','unsubscribe','collabStatus.conflict','_heartbeatTimer','_docTransformSelectionsService','skeleton','selections','height','react/jsx-runtime','Inject','clsx','deserializeRangeWithSheet','_textBubble','_handleLeaveEvent','source','_docTransformStateCacheService','transformMutation','parse','INVALID_ARGUMENT','getMemberID','stringify','@univerjs/design','defIds','m2Prime','top','SheetSkeletonManagerService','UNIVER_DOC','PERMISSION_DENIED','getUndoRedoMutationParamsCache','_dataLoaderService','handleInsertRangeMoveDown','storage','split','OTHER_CLIENTS_EDITING','_initStatusListener','SHEET_VIEWPORT_KEY','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','UniverSheetsUi','_scene','lineTo','_localStorageService','WECHAT_HAS_BEEN_BOUND','isArray','getCollabCursors$','touchDependencies','length','cursorInfo','jiqing.500','find','InsertRowCommandId','_unitStatus','backgroundColor','ALREADY_EXISTS','serializeRangeWithSheet','beginPath','all','Error','docStateChange$','_assignedColors','CONNECTOR_DATA_TOO_LARGE','hasOwnProperty','colorChannel1','_online','_hovered','IRemoteInstanceService','saveImage','APPLY_PERMISSION_DENIED','attrs','getSheetObject','UniverEngineFormula','_getSheetObject','wsSessionTicketUrl','_registerDependencies','registerComponent','createElement','transformByState','RegularPolygon','entries','getColor','_imageIoService','getParam','debounceTime','unit','Tooltip','shareReplay','unitId','extend','YUUMI_ALL_TABLES_IS_INVALID','LICENSE_IMPORT_SIZE_EXCEEDED','ACTIVE_UNIT_EVENT_CHANNEL','getOwnPropertyDescriptor','fromEvent','switchMap','_collabCursorState$','_drawTextRange','trim','SYNCED','path','setUndoRedoMutationParamsCache','addObjects','useRef','textRanges','APPLY_NON_SEQUENTIAL_REVISION','ONLINE','on-line-icon_clip0_910_349','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','getColorFromTheme','collab-rect-range-','disableLocalCache','executeCommand','UnitStatus','@univerjs/ui','CollaborationUIEventId','getUnitId','_configService','resize','_docTransformIMECacheService','_messageService'];_0x10b0=function(){return _0x2d5b63;};return _0x10b0();}
1
+ function _0xa650(_0xf8f7d8,_0x2376ac){const _0x2b25c3=_0x2b25();return _0xa650=function(_0xa6507c,_0x4140d9){_0xa6507c=_0xa6507c-0x15d;let _0x1874e8=_0x2b25c3[_0xa6507c];return _0x1874e8;},_0xa650(_0xf8f7d8,_0x2376ac);}function _0x2b25(){const _0x3458fd=['OnLineIcon','toString','TOO_MANY_REQUESTS','TEXT_RANGE_LAYER_INDEX','CLOSE_ROOM','_scheduleClearOtherTimer','APPLY_DUPLICATED','collab-text-range-','_roomMembers$','newValue','whenReady','onPointerMove$','dispose','RegularPolygon','_lastPointer','_urlService','asObservable','on-line-icon_clip0_910_349','purple.300','push','_getScale','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','_document','LOGIN_FAILED','handleInsertCol','univer-flex\x20univer-items-center','_removeClearOtherTimer','distinctUntilChanged','LOCAL_CACHE_INTERVAL','pushState','m1Prime','debounce','unsubscribe','redoState','subscribe','attrs','DeleteRangeMoveLeftCommandId','_imageIoService','createInstance','_sheetSkeletonManagerService','getLocalCacheKey','_removeCollabCursors','YUUMI_AI_RUN_FAILED','_unitOnClients','_collaborationController','moveTo','UniverSheetsUi','collaboration-client-ui.config','SNAPSHOT_INVALID_SNAPSHOT','_localStorageService','drawWith','@univerjs/ui','USER_NOT_INVITED_CODE','max','@univerjs/docs-ui','send','Rect','UPDATE_CURSOR','engine','LICENSE_IMPORT_SIZE_EXCEEDED','rxjs/operators','origin','@univerjs/sheets-ui','none','activeSheet$','HEADER_MENU','substring','getUnhiddenWorksheets','wsSessionTicketUrl','setUndoRedoMutationParamsCache','RemoveColCommandId','next','/run/','setShapeProps','getUndoRedoMutationParamsCache','_cursorShapes','getParam','addObject','collabStatus.notCollab','shareReplay','@univerjs/engine-formula','ONLINE','top','off-line-icon','cursorInfo$','CollaborationStatus','_docSkeletonManagerService','getSheetObject','IMessageService','getValue','setAlpha','source','FromArray','setTimeout','toStringTag','UniverDocsUi','runId','Inject','imageSourceType','filter','replaceState','COLORS','ranges','with','white','_draw','_drawRectRange','symbol','collabStatus.fetchMiss','round','getMember','OffLineIcon','editingUnit','_cachedData','toDisposable','InsertRangeMoveDownCommandId','_id','collaboration.single-unit.warning','getActiveRange','toRgbString','forEach','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','ITransformService','complete','collab-rect-range-','createElement','_registerDependencies','apply','eventID','280564QIDlyK','_onCursorDelete','cursorInfo','collabStatus.syncing','DocIMEInputManagerService','stringify','yellow.400','IConfigService','red.300','key','_initDependencies','OFFLINE','defs','getOffsetConfig','executeCommand','_renderManagerService','getUnitStatus$','useCallback','getColor','handleDeleteRangeMoveLeft','_range','flatMap','_transformHistoryAndStateStack','_logService','_handleLeaveEvent','WebBrowserSingleActiveUnitService','contains','transformIMECache','_setupSubUnitSync','currentColor','_getSheetObject','collab-text-anchor-','_getSaveTimeout','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','textRanges','extend','exports','APPLY_REVISION_CONFILICT','handleInsertRow','UniverCore','rxjs','off-line-icon_clip0_910_343','AWAITING_WITH_PENDING','code','_handleEvent','InsertRowCommandId','UNIVER_DOC','size','green.600','registerComponent','_beforeCloseService','_initCommandExecutedListener','delete','mask','_doCreateSocket','defIds','beginPath','_getMergeRange','WebURLService','endColumn','entityInit$','@univerjs-pro/collaboration','width','_getSessionTicket','Failed','SessionStatus','SetSelectionsOperation','session.will-retry','@univerjs/core','collaboration-client.offline-data-not-saved','switchMap','onStarting','some','YUUMI_URL_COL_OUT_OF_RANGE','703997VbYZGs','min','getConfig','unitID','undoState','onCommandExecuted','onLocalMutation','IUniverInstanceService','set','setParam','SNAPSHOT_HAS_BEEN_REMOVED','YUUMI_UNABLE_LOAD_URL','loadOfflineData','body','object','_ensureSubject','DeleteRangeMoveUpCommandId','_cursor','map','RECT','endRow','children','addClipboardHook','React','APPLY_NON_SEQUENTIAL_REVISION','getOwnPropertySymbols','_colorIndex','isTransformMutationFailure','Tooltip','getSkeleton','makeDirty','storage','override','color','YUUMI_NO_CUBOID_FOR_QUESTION','loadUnit','16767675uVqVzH','serializeRangeWithSheet','path','_refRangeService','use','ILogService','getOwnPropertyDescriptor','BehaviorSubject','collab-client.tooltip.reconnect','getDocRanges','@univerjs/drawing','location','[CollaborationDataLoaderController]','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','href','data','_handleHeartbeatEvent','_handleJoinEvent','INVALID_ARGUMENT','blue.400','IRenderManagerService','getSheetBySheetId','docStateChange$','_initResize','clearTimeout','disposeUnit','_entityInit$','call','requireSession','ISnapshotServerService','collabCursorState$','_transformPreviousActiveRange','fill','unload','_clearOtherTimers','Injector','selections','debug','transformByState','setInterval','InsertColCommandId','restore','UniverDesign','PY_RUNTIME_SCRIPT_ERROR','on-line-icon','executionId','USERS_LEAVE','UniverNetwork','INVITE_CODE_ALREADY_BOUND','_session','values','getFocusedUnit','urlChange$','getCurrent','INTERNAL_ERROR','setStateCache','DisposableCollection','INVITE_CODE_REQUIRED','post','CollaborationEvent','merge','from','_labelPosition','@univerjs/engine-render','application/json','ACTIVE_UNIT_EVENT_CHANNEL','ColorKit','INotificationService','RemoteUniscriptService','PERMISSION_DENIED','getSheetId','EffectRefRangId','throttleTime','_uiPartsService','_initEntityListener','_context','ALREADY_EXISTS','skeleton','@univerjs/network','currentTheme$','url(#$1','LICENSE_EXPORT_SIZE_EXCEEDED','transformMutationsWithChangeset','then','_onRefRangeChange','@univerjs/sheets','MemberService','_updateURLWithCurrentState','deepClone','fromEvent','arc','COMPLETION_FINISHED','100xXJgDR','0\x200\x2017\x2016','EMAIL_HAS_BEEN_BOUND','ThemeService','ILocalCacheService','combineLatest','_docTransformStateCacheService','_toggleOffline','all','9546784AzmVnP','hide','disableLocalCache','transformSelections','_cursorInfo$','_dataLoaderService','sessionStatus$','handleIRemoveCol','Optional','_registerRenderDependencies','_setupBeforeClosingHandler','SheetSkeletonManagerService','SetTextSelectionsOperation','MoveRangeCommandId','_onCursorUpdate','getTypeOfUnitDisposed$','collabStatus.synced','backgroundColor','exhaustSavingTask','assign','_shapes','result','fromEventSubject','xlink:href','_disabled','url(#off-line-icon_clip0_910_343)','error','searchParams','displayName','BrowserCollaborationSocketService','RemoveRowCommandId','univerjs-icon\x20univerjs-icon-','@univerjs/docs','MessageType','unitId','isEditing','handleInsertRangeMoveRight','_backgroundColor','permission.content','_collabSessionService','APPLY_REJECT','getTypeOfUnitAdded$','1260841anYsrS','useObservable','pluginName','Disposable','dispose$','runRefRangeMutations','useDependency','setConfig','m2Prime','_heartbeatTimer','ILocalStorageService','_saveCache','init','unshift','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','black','_localeService','SheetsSelectionsService','SOCKET_FAILED_RETRY','INVITE_CODE_HAS_BEEN_UES','idSuffix','UNRECOGNIZED','show','HTTPService','getViewport','subscribeEvent','startColumn','_send','_refreshCollabCursors','icon','SetDocZoomRatioOperation','range','className','getRangePointData','getCoordByCell','length','UNIVER_SHEET','createIdentifier','_startSheetCollabCursor','generateRandomId','_hideTimer','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','_scene','DependentOn','handleMoveRange','UNAUTHENTICATED','Tools','_status$','_entities','Rectangle','LICENSE_DISTRO_REJECTED','_anchorDot','isTransformMutationsWithChangesetSuccess','UniverCollaborationClientUIPlugin','parse','disposeWithMe','UniverDocs','transformStateCache','labelPosition','_localCacheService','Module','_render','CommandType','UniverSheets','CONFLICT','syncEditingCollabCursor','getActiveSheet','params','_injector','replace','subunit','_name','clearInterval','getCollabEntity$','CollaborationUIEventId','status$','getRelativeToViewportCoord','_scheduleHeartbeat','UniverRpc','_transformService','react','forwardRef','_commandService','assignAColorForMemberID','unit','TEXT','YUUMI_TABLE_NOT_FOUND_IN_UNIT','roomMembers$','YUUMI_RATE_OVER_LIMIT','getCurrentUnitForType','InsertRangeMoveRightCommandId','column','type','svg','4000305ehLvoo','measureText','registerRefRange','_docTransformSelectionsService','ticket','INVALID_INVITE_CODE','DocStateChangeManagerService','event$','UNDEFINED','_syncEditingCollabCursorService','getUniverSheetInstance','translate(.97)','roomMembers','CollaborationController','_anchor','session.collaboration-timeout','selection','currentSkeleton$','_selfUnitIDs','random','_handleHover','M0\x200H16V16H0z','YUUMI_ASYNCIO_CANCELLED','registerRenderModule','row','onPointerEnter$','_collabCursorState$','function','Plugin','_docSyncEditingCollabCursorService','IURLService','_initStatusComponent','pipe','CollaborationDataLoaderController','resize','_config','transformMutation','_assignedColors','DOC_RANGE_TYPE','jsx','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','transformRemoteChangeset','sheetId','OTHER_CLIENTS_EDITING','IImageIoService','_getAnchorBounding','div','isArray','DocCollaborationEntity','_updateCollabCursors','rgba(255,\x20255,\x20255,\x200.01)','isActive','getStateCache','findNodePositionByCharIndex','mergeOverrideWithDependencies','VIEW_MAIN','...','APPLY_PERMISSION_DENIED','_eventUnsubscribe','DesktopCollaborationStatusDisplayController','setItem','useRef','ISocketService','_notificationService','_messageService','RevisionService','prototype','colorChannel1','#FFF','saveTaskMap','NOT_COLLAB','_docSkeleton','getAncestorScale','FETCH_MISS','NO_OTHER_CLIENTS_EDITING','_unitStatus','CHANGESET_REVISION_CONFILICT','_hover','onPointerLeave$','connectInjector','tag','0\x200\x2016\x2016','_configService','concat','includes','height','debounceTime','CONNECTOR_DATA_TOO_LARGE','indexOf','string','get','add','UniverInstanceType','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','LOCAL_CACHE_INTERVAL_KEY','popstate','sheetID','SYNCED','permission.title','registerDependencies','deserializeRangeWithSheet','_docStateChangeManagerService','react/jsx-runtime','_memberService','mutations','Unknown\x20user','_hovered','text','evenodd','Error','UnitStatus','MOBILE_HAS_BEEN_BOUND','getMemberID','DocSkeletonManagerService','defineProperty','_collabCursorController','1em','WECHAT_HAS_BEEN_BOUND','_createSocketURL','_toggleOnline','startsWith','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','name','_transformUndoRedoStack','history','RxDisposable','30TxcAMS','@univerjs/design','_color','SetWorksheetActivateCommand','UniverProCollaborationClientUi','_initEvent','DEFAULT_WS_SESSION_TICKET_URL','collaboration.closeRoom','TRANSFORM_CHANGE_OBSERVABLE_TYPE','collabStatus.offline','Shape','_textBubble','_httpService','getRenderById','CollaborationSessionService','ICommandService','_cursors','replaceDocRanges','YUUMI_ALL_TABLES_IS_INVALID','invokeId','doc.mutation.rich-text-editing','getUnitId','registerBeforeClose','@univerjs-pro/collaboration-client','MUTATION','handleIRemoveRow','@univerjs/rpc','CollaborationUIEventService','UniverEngineFormula','Warning','amd','_updateSubUnitFromURLParams','_updateLocalCursor','NOT_FOUND','PENDING','LICENSE_MAX_UNITS_EXCEEDED','_themeService','DocSelectionManagerService','_revisionService','_univerInstanceService','_init','save','takeUntil','_scheduleSaving','_saveTaskMap','Workbook','jsxs','hasOwnProperty','fillRule','clipPath','has','onRendered','493416HnzFgS','onMouseMove','onTransformChange$','operators','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_online','entries','lineTo','_colorAssignService','LocaleService','NodePositionConvertToRectRange','_drawTextRange','getCellPositionByOffset','Subject','SUBMIT_CHANGESET_TIMEOUT','saveImage'];_0x2b25=function(){return _0x3458fd;};return _0x2b25();}(function(_0x2b9317,_0x2e069f){const _0x4a782a=_0xa650,_0x1aaf67=_0x2b9317();while(!![]){try{const _0x193118=parseInt(_0x4a782a(0x202))/0x1+-parseInt(_0x4a782a(0x312))/0x2+parseInt(_0x4a782a(0x260))/0x3+parseInt(_0x4a782a(0x3a3))/0x4*(-parseInt(_0x4a782a(0x1cf))/0x5)+parseInt(_0x4a782a(0x2de))/0x6*(parseInt(_0x4a782a(0x3ed))/0x7)+parseInt(_0x4a782a(0x1d8))/0x8+-parseInt(_0x4a782a(0x173))/0x9;if(_0x193118===_0x2e069f)break;else _0x1aaf67['push'](_0x1aaf67['shift']());}catch(_0x1c6ca5){_0x1aaf67['push'](_0x1aaf67['shift']());}}}(_0x2b25,0xbde94),function(_0x120414,_0x3f8256){const _0x44291f=_0xa650;typeof exports==_0x44291f(0x15d)&&typeof module<'u'?_0x3f8256(exports,require('@univerjs-pro/collaboration-client'),require(_0x44291f(0x3e7)),require('@univerjs/engine-render'),require(_0x44291f(0x1c1)),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require(_0x44291f(0x3cb)),require(_0x44291f(0x1f8)),require(_0x44291f(0x3e0)),require('@univerjs/engine-formula'),require(_0x44291f(0x1c8)),require(_0x44291f(0x35e)),require(_0x44291f(0x360)),require('react/jsx-runtime'),require(_0x44291f(0x355)),require('@univerjs/design'),require('react'),require(_0x44291f(0x2f8))):typeof define=='function'&&define[_0x44291f(0x2fc)]?define([_0x44291f(0x3c7),_0x44291f(0x2f5),_0x44291f(0x3e7),_0x44291f(0x1b2),_0x44291f(0x1c1),_0x44291f(0x358),_0x44291f(0x17d),_0x44291f(0x3cb),'@univerjs/docs',_0x44291f(0x3e0),_0x44291f(0x372),_0x44291f(0x1c8),_0x44291f(0x35e),'@univerjs/sheets-ui',_0x44291f(0x2c6),_0x44291f(0x355),_0x44291f(0x2df),_0x44291f(0x252),_0x44291f(0x2f8)],_0x3f8256):(_0x120414=typeof globalThis<'u'?globalThis:_0x120414||self,_0x3f8256(_0x120414[_0x44291f(0x2e2)]={},_0x120414['UniverProCollaborationClient'],_0x120414[_0x44291f(0x3ca)],_0x120414['UniverEngineRender'],_0x120414[_0x44291f(0x1a2)],_0x120414[_0x44291f(0x381)],_0x120414['UniverDrawing'],_0x120414['rxjs'],_0x120414[_0x44291f(0x23a)],_0x120414['UniverProCollaboration'],_0x120414[_0x44291f(0x2fa)],_0x120414[_0x44291f(0x241)],_0x120414[_0x44291f(0x3cb)][_0x44291f(0x315)],_0x120414[_0x44291f(0x350)],_0x120414[_0x44291f(0x166)],_0x120414['UniverUi'],_0x120414[_0x44291f(0x19d)],_0x120414[_0x44291f(0x166)],_0x120414[_0x44291f(0x250)]));}(this,function(_0x37a429,_0x436a9d,_0x4d5d93,_0x27e953,_0x83de29,_0x3f955c,_0x40c2d3,_0x2ea89f,_0x1781a2,_0x2d957c,_0xded955,_0x4cf27b,_0x4a5380,_0x5da637,_0x4b944a,_0x4b125,_0x553977,_0x17763c,_0x30d0d4){'use strict';const _0x50d51c=_0xa650;var _0x2e7a0b=Object['defineProperty'],_0x173ce5=(_0x4603da,_0x6a1c46,_0xaf269f)=>_0x6a1c46 in _0x4603da?_0x2e7a0b(_0x4603da,_0x6a1c46,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xaf269f}):_0x4603da[_0x6a1c46]=_0xaf269f,_0x5e82ed=(_0x193248,_0x4bdf0d,_0x3fba49)=>_0x173ce5(_0x193248,typeof _0x4bdf0d!=_0x50d51c(0x38d)?_0x4bdf0d+'':_0x4bdf0d,_0x3fba49),_0x8a5509=Object[_0x50d51c(0x179)],_0x25725b=(_0x2a388e,_0x26b77c,_0x1a9435,_0x4705aa)=>{for(var _0x1e5d3b=_0x4705aa>0x1?void 0x0:_0x4705aa?_0x8a5509(_0x26b77c,_0x1a9435):_0x26b77c,_0x745e50=_0x2a388e['length']-0x1,_0x175f8b;_0x745e50>=0x0;_0x745e50--)(_0x175f8b=_0x2a388e[_0x745e50])&&(_0x1e5d3b=_0x175f8b(_0x1e5d3b)||_0x1e5d3b);return _0x1e5d3b;},_0x556e21=(_0x2ad2d0,_0x1a7226)=>(_0x204c5a,_0x2759ec)=>_0x1a7226(_0x204c5a,_0x2759ec,_0x2ad2d0);let _0x4f51dc=class extends _0x4d5d93[_0x50d51c(0x2dd)]{constructor(_0x44d046,_0x474023){const _0x280ce7=_0x50d51c;super(),this['_docClipboardService']=_0x44d046,this[_0x280ce7(0x347)]=_0x474023,this[_0x280ce7(0x306)]();}[_0x50d51c(0x306)](){const _0x3307ef=_0x50d51c,_0x3492d0=this;this[_0x3307ef(0x239)](this['_docClipboardService'][_0x3307ef(0x165)]({'onBeforePasteImage':async _0x23041d=>{const _0x36e445=_0x3307ef,_0x5b99b4=await _0x3492d0[_0x36e445(0x347)][_0x36e445(0x321)](_0x23041d);return _0x5b99b4?{'source':_0x5b99b4[_0x36e445(0x37d)],'imageSourceType':_0x5b99b4[_0x36e445(0x384)]}:null;}}));}};_0x4f51dc=_0x25725b([_0x556e21(0x0,_0x3f955c['IDocClipboardService']),_0x556e21(0x1,_0x40c2d3[_0x50d51c(0x28c)])],_0x4f51dc);const _0x1a7eb5=[_0x50d51c(0x334),'jiqing.500',_0x50d51c(0x3d3),_0x50d51c(0x3ab),_0x50d51c(0x186),_0x50d51c(0x3a9)];class _0x2f0bfe extends _0x4d5d93[_0x50d51c(0x205)]{constructor(){const _0x4d0b13=_0x50d51c;super(...arguments),_0x5e82ed(this,_0x4d0b13(0x285),new Map()),_0x5e82ed(this,_0x4d0b13(0x169),0x0);}[_0x50d51c(0x255)](_0x2047de){const _0x53d395=_0x50d51c;if(this[_0x53d395(0x285)][_0x53d395(0x310)](_0x2047de))return this[_0x53d395(0x285)][_0x53d395(0x2ba)](_0x2047de);const _0x520dea=_0x1a7eb5[this['_colorIndex']];return this[_0x53d395(0x169)]=(this[_0x53d395(0x169)]+0x1)%_0x1a7eb5[_0x53d395(0x225)],this['_assignedColors'][_0x53d395(0x3f5)](_0x2047de,_0x520dea),_0x520dea;}}function _0x479a27(_0x3e955c){const _0xc346dc=_0x50d51c;let _0x3e8b40='';for(const _0x233d2c of _0x3e955c){const {startOffset:_0x22c724,endOffset:_0x69cd9,isActive:_0x446934,rangeType:_0x45d836,segmentId:_0x3d6f18,segmentPage:_0x2648e2}=_0x233d2c;_0x3e8b40[_0xc346dc(0x225)]&&(_0x3e8b40+=','),_0x3e8b40+=_0x22c724+':'+_0x69cd9+':'+(_0x446934?'1':'0')+':'+_0x45d836+':'+_0x3d6f18+':'+_0x2648e2;}return _0x3e8b40;}function _0x4f8b09(_0x4be388){const _0x2c163c=_0x50d51c,_0x4d72a5=_0x4be388['split'](','),_0x4efee4=[];for(const _0x336767 of _0x4d72a5){const [_0x188957,_0x503c89,_0x46df25,_0x5dfa5b,_0x5a7958,_0x3f1db6]=_0x336767['split'](':');_0x4efee4['push']({'startOffset':Number(_0x188957),'endOffset':Number(_0x503c89),'collapsed':_0x188957===_0x503c89,'isActive':_0x46df25==='1','rangeType':_0x5dfa5b===_0x4d5d93['DOC_RANGE_TYPE'][_0x2c163c(0x257)]?_0x4d5d93[_0x2c163c(0x286)][_0x2c163c(0x257)]:_0x4d5d93['DOC_RANGE_TYPE'][_0x2c163c(0x162)],'segmentId':typeof _0x5a7958=='string'?String(_0x5a7958):'','segmentPage':Number(_0x3f1db6!=null?_0x3f1db6:-0x1)});}return _0x4efee4[_0x2c163c(0x3eb)](_0x13cd39=>_0x13cd39[_0x2c163c(0x293)])||(_0x4efee4[0x0]['isActive']=!0x0),_0x4efee4;}class _0x3c2ecf extends _0x4d5d93['RxDisposable']{constructor(){const _0x40d575=_0x50d51c;super(...arguments),_0x5e82ed(this,_0x40d575(0x27a),new _0x2ea89f[(_0x40d575(0x17a))](null)),_0x5e82ed(this,_0x40d575(0x191),this[_0x40d575(0x27a)][_0x40d575(0x332)]());}[_0x50d51c(0x243)](_0x5cd76d){const _0x1b7bf3=_0x50d51c,{unitID:_0x10457d,memberID:_0x295caa,textRanges:_0x3581bf}=_0x5cd76d,_0x442525=_0x479a27(_0x3581bf);if(_0x442525==='')return;const _0x907c45={'unitID':_0x10457d,'memberID':_0x295caa,'selection':_0x442525};this[_0x1b7bf3(0x27a)][_0x1b7bf3(0x369)](_0x907c45);}}var _0x358c61=Object[_0x50d51c(0x179)],_0x3bb970=(_0x2a81fe,_0x19a2bb,_0x8028f7,_0x1e70c3)=>{const _0x561102=_0x50d51c;for(var _0x393a35=_0x1e70c3>0x1?void 0x0:_0x1e70c3?_0x358c61(_0x19a2bb,_0x8028f7):_0x19a2bb,_0x1c40df=_0x2a81fe[_0x561102(0x225)]-0x1,_0x23e7ce;_0x1c40df>=0x0;_0x1c40df--)(_0x23e7ce=_0x2a81fe[_0x1c40df])&&(_0x393a35=_0x23e7ce(_0x393a35)||_0x393a35);return _0x393a35;},_0x36f260=(_0x68c1ce,_0x517d1f)=>(_0xd36fe2,_0x3d3c1a)=>_0x517d1f(_0xd36fe2,_0x3d3c1a,_0x68c1ce);const _0x438e0f=0x12c,_0x28a9f9=0x64;let _0x5db237=class extends _0x4d5d93[_0x50d51c(0x2dd)]{constructor(_0x39b971,_0x4db500,_0x340e49,_0x2e088f,_0x4d415f,_0x6516cc,_0x3b3e8d,_0x424a63,_0x22cb10){const _0x490e95=_0x50d51c;super(),_0x5e82ed(this,_0x490e95(0x317),!0x1),_0x5e82ed(this,_0x490e95(0x306),!0x1),_0x5e82ed(this,_0x490e95(0x1dc),new _0x2ea89f[(_0x490e95(0x17a))](new Map())),_0x5e82ed(this,'cursorInfo$',this['_cursorInfo$'][_0x490e95(0x332)]()),_0x5e82ed(this,_0x490e95(0x32a),new _0x2ea89f[(_0x490e95(0x17a))]([])),_0x5e82ed(this,_0x490e95(0x259),this[_0x490e95(0x32a)][_0x490e95(0x280)](_0x2ea89f[_0x490e95(0x2b6)](_0x438e0f))),_0x5e82ed(this,_0x490e95(0x2fe),_0x4d5d93[_0x490e95(0x341)](_0x4fe201=>{const _0x3b236b=_0x490e95,_0x2ea597={'eventID':_0x2d957c[_0x3b236b(0x1ae)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x3b236b(0x3f0)],'memberID':this[_0x3b236b(0x1a4)]['getMemberID'](),'selection':_0x479a27(_0x4fe201)}};this[_0x3b236b(0x1a4)][_0x3b236b(0x359)](_0x2ea597,this['unitID']);},_0x28a9f9)),(this[_0x490e95(0x3f0)]=_0x39b971,this['_session']=_0x4db500,this[_0x490e95(0x246)]=_0x340e49,this['_colorAssignService']=_0x2e088f,this['_memberService']=_0x4d415f,this[_0x490e95(0x269)]=_0x6516cc,this[_0x490e95(0x251)]=_0x3b3e8d,this[_0x490e95(0x305)]=_0x424a63,this[_0x490e95(0x254)]=_0x22cb10);}get[_0x50d51c(0x3a5)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x44a03d=_0x50d51c;return this[_0x44a03d(0x32a)][_0x44a03d(0x37b)]();}['dispose'](){const _0x10aacf=_0x50d51c;super[_0x10aacf(0x32e)](),this[_0x10aacf(0x1dc)]['next'](new Map()),this[_0x10aacf(0x1dc)]['complete'](),this[_0x10aacf(0x32a)][_0x10aacf(0x369)]([]),this['_roomMembers$'][_0x10aacf(0x39d)]();}[_0x50d51c(0x20e)](){const _0x28cec7=_0x50d51c;this['_init']||(this[_0x28cec7(0x306)]=!0x0,this[_0x28cec7(0x1a4)][_0x28cec7(0x1de)][_0x28cec7(0x280)](_0x2ea89f[_0x28cec7(0x308)](this['dispose$']))[_0x28cec7(0x344)](_0x1a0ac5=>{const _0x58b9f3=_0x28cec7;_0x1a0ac5===_0x436a9d[_0x58b9f3(0x3e4)]['ONLINE']?this[_0x58b9f3(0x2d7)]():this[_0x58b9f3(0x1d6)]();}),this['_session'][_0x28cec7(0x267)][_0x28cec7(0x280)](_0x2ea89f['takeUntil'](this[_0x28cec7(0x206)]))[_0x28cec7(0x344)](_0x1ee3cc=>{const _0x4844af=_0x28cec7,_0x51021c=_0x1ee3cc[_0x4844af(0x3a2)];_0x51021c===_0x2d957c[_0x4844af(0x1ae)][_0x4844af(0x35b)]&&this[_0x4844af(0x1e6)](_0x1ee3cc),_0x51021c===_0x2d957c[_0x4844af(0x1ae)][_0x4844af(0x1a1)]&&this[_0x4844af(0x3a4)](_0x1ee3cc);}),this[_0x28cec7(0x239)](this['_commandService'][_0x28cec7(0x3f2)](_0x2a84d7=>{const _0x31cbad=_0x28cec7,_0x395d66=_0x2a84d7[_0x31cbad(0x245)];_0x395d66!=null&&this[_0x31cbad(0x317)]&&_0x2a84d7['id']===_0x1781a2[_0x31cbad(0x1e4)]['id']&&_0x395d66['unitId']===this['unitID']&&_0x395d66[_0x31cbad(0x1fb)]===!0x1&&_0x395d66[_0x31cbad(0x388)][_0x31cbad(0x225)]>0x0&&this[_0x31cbad(0x2fe)](_0x395d66[_0x31cbad(0x388)]);})),this[_0x28cec7(0x269)][_0x28cec7(0x191)][_0x28cec7(0x280)](_0x2ea89f['takeUntil'](this[_0x28cec7(0x206)]))[_0x28cec7(0x344)](_0x1993fd=>{const _0x4f1fdd=_0x28cec7;if((_0x1993fd==null?void 0x0:_0x1993fd['unitID'])!==this[_0x4f1fdd(0x3f0)])return;const _0x5c33d0={'eventID':_0x2d957c[_0x4f1fdd(0x1ae)][_0x4f1fdd(0x35b)],'data':_0x1993fd};this[_0x4f1fdd(0x1e6)](_0x5c33d0);}),this['disposeWithMe'](this['_commandService'][_0x28cec7(0x3f2)](_0x998640=>{const _0x2b2480=_0x28cec7;if(_0x998640['params']==null)return;const _0x1b93f0=_0x998640[_0x2b2480(0x245)];if(_0x998640['id']!==_0x1781a2['RichTextEditingMutation']['id']||_0x1b93f0['unitId']!==this[_0x2b2480(0x3f0)])return;const _0x1a6273={'id':_0x2b2480(0x2f2),'params':_0x1b93f0},_0x47dadc=this[_0x2b2480(0x3a5)];for(const [_0x2066de,_0x1de524]of _0x47dadc){const _0x11806c={'id':_0x2b2480(0x2f2),'params':{'unitId':this[_0x2b2480(0x3f0)],'actions':null,'textRanges':_0x1de524[_0x2b2480(0x388)]}},_0x19f0fa=this[_0x2b2480(0x251)][_0x2b2480(0x284)](_0x1a6273,_0x11806c,!0x1);if(_0x2d957c[_0x2b2480(0x16a)](_0x19f0fa))throw _0x19f0fa[_0x2b2480(0x1f2)];_0x47dadc[_0x2b2480(0x3f5)](_0x2066de,{..._0x1de524,'ranges':_0x19f0fa[_0x2b2480(0x20a)][_0x2b2480(0x245)]['textRanges']});}queueMicrotask(()=>{const _0x24f87e=_0x2b2480;this[_0x24f87e(0x1dc)][_0x24f87e(0x369)](_0x47dadc);});})));}[_0x50d51c(0x1e6)](_0x484a45){const _0x210f34=_0x50d51c;var _0x156d41,_0x15ef39;const {memberID:_0x57fa5f,selection:_0x5af1ae}=_0x484a45[_0x210f34(0x182)],_0x353400=_0x4f8b09(_0x5af1ae),_0x7358c2=(_0x15ef39=(_0x156d41=this[_0x210f34(0x2c7)][_0x210f34(0x390)](this[_0x210f34(0x3f0)],_0x57fa5f))==null?void 0x0:_0x156d41['name'])!=null?_0x15ef39:_0x210f34(0x2c9),_0x1a77e9={'color':this[_0x210f34(0x31a)][_0x210f34(0x255)](_0x57fa5f),'name':_0x7358c2,'ranges':_0x353400},_0x357b2d=this[_0x210f34(0x3a5)];_0x357b2d[_0x210f34(0x3f5)](_0x57fa5f,_0x1a77e9),this['_cursorInfo$'][_0x210f34(0x369)](_0x357b2d);}['_onCursorDelete'](_0x3ec717){const _0x4da9a6=_0x50d51c,{memberID:_0x2d8422}=_0x3ec717[_0x4da9a6(0x182)],_0x17bc28=this[_0x4da9a6(0x3a5)];_0x17bc28[_0x4da9a6(0x3d7)](_0x2d8422),this['_cursorInfo$']['next'](_0x17bc28);}['_toggleOnline'](){const _0x1a644a=_0x50d51c;var _0x3a24ea;if(this[_0x1a644a(0x317)]=!0x0,((_0x3a24ea=this['_univerInstanceService'][_0x1a644a(0x1a6)]())==null?void 0x0:_0x3a24ea['getUnitId']())!==this[_0x1a644a(0x3f0)])return;const _0x53518b=this[_0x1a644a(0x246)][_0x1a644a(0x2ba)](_0x1781a2[_0x1a644a(0x303)])[_0x1a644a(0x17c)]();Array['isArray'](_0x53518b)&&_0x53518b['length']>0x0&&this['_updateLocalCursor'](_0x53518b);}[_0x50d51c(0x1d6)](){const _0xc6136b=_0x50d51c;this[_0xc6136b(0x317)]=!0x1;}};_0x5db237=_0x3bb970([_0x36f260(0x2,_0x4d5d93[_0x50d51c(0x383)](_0x4d5d93[_0x50d51c(0x196)])),_0x36f260(0x3,_0x4d5d93[_0x50d51c(0x383)](_0x2f0bfe)),_0x36f260(0x4,_0x4d5d93[_0x50d51c(0x383)](_0x436a9d[_0x50d51c(0x1c9)])),_0x36f260(0x5,_0x4d5d93[_0x50d51c(0x383)](_0x3c2ecf)),_0x36f260(0x6,_0x2d957c[_0x50d51c(0x39c)]),_0x36f260(0x7,_0x4d5d93['IUniverInstanceService']),_0x36f260(0x8,_0x4d5d93['ICommandService'])],_0x5db237);var _0x53cbcb=Object['getOwnPropertyDescriptor'],_0x4480c7=(_0x14b951,_0x2c4063,_0x7f6e64,_0x2da4fc)=>{const _0x2843c0=_0x50d51c;for(var _0x438d63=_0x2da4fc>0x1?void 0x0:_0x2da4fc?_0x53cbcb(_0x2c4063,_0x7f6e64):_0x2c4063,_0x823253=_0x14b951[_0x2843c0(0x225)]-0x1,_0x20f33f;_0x823253>=0x0;_0x823253--)(_0x20f33f=_0x14b951[_0x823253])&&(_0x438d63=_0x20f33f(_0x438d63)||_0x438d63);return _0x438d63;},_0x3437d7=(_0x5c058d,_0x252ed6)=>(_0x5e0a6b,_0x25d5d5)=>_0x252ed6(_0x5e0a6b,_0x25d5d5,_0x5c058d);const _0xb00b70=0x12c,_0x23a093=0x64,_0x125253=()=>{let _0x3ca16c=[],_0x28413c=!0x1;return _0x3f1625=>{const _0x1b5759=_0xa650;_0x3ca16c[_0x1b5759(0x335)](_0x3f1625),_0x28413c||(_0x28413c=!0x0,setTimeout(()=>{const _0x196126=_0x1b5759;_0x3ca16c[_0x196126(0x39a)](_0x4bcfb9=>_0x4bcfb9()),_0x3ca16c=[],_0x28413c=!0x1;}));};};let _0x3bfc5e=class extends _0x4d5d93[_0x50d51c(0x2dd)]{constructor(_0x53808b,_0x9db5d5,_0x5cb525,_0x2c7dda,_0x27cea8,_0x5cf949,_0x5851f2,_0x102f6e){const _0x2808ad=_0x50d51c;super(),_0x5e82ed(this,_0x2808ad(0x317),!0x1),_0x5e82ed(this,'_init',!0x1),_0x5e82ed(this,_0x2808ad(0x1dc),new _0x2ea89f['BehaviorSubject'](new Map())),_0x5e82ed(this,'cursorInfo$',this['_cursorInfo$'][_0x2808ad(0x332)]()),_0x5e82ed(this,_0x2808ad(0x32a),new _0x2ea89f[(_0x2808ad(0x17a))]([])),_0x5e82ed(this,'roomMembers$',this[_0x2808ad(0x32a)][_0x2808ad(0x280)](_0x2ea89f[_0x2808ad(0x2b6)](_0xb00b70))),_0x5e82ed(this,_0x2808ad(0x2fe),_0x4d5d93[_0x2808ad(0x341)]((_0x2e34c4,_0x5c0094)=>{const _0x35a75c=_0x2808ad,_0x4a7dcd={'eventID':_0x2d957c[_0x35a75c(0x1ae)][_0x35a75c(0x35b)],'data':{'unitID':this[_0x35a75c(0x3f0)],'memberID':this[_0x35a75c(0x1a4)][_0x35a75c(0x2d0)](),'selection':_0xded955[_0x35a75c(0x174)](_0x2e34c4,_0x5c0094[_0x35a75c(0x221)])}};this[_0x35a75c(0x1a4)]['send'](_0x4a7dcd,this[_0x35a75c(0x3f0)]);},_0x23a093)),(this[_0x2808ad(0x3f0)]=_0x53808b,this[_0x2808ad(0x1a4)]=_0x9db5d5,this['_injector']=_0x5cb525,this[_0x2808ad(0x31a)]=_0x2c7dda,this['_memberService']=_0x27cea8,this[_0x2808ad(0x305)]=_0x5cf949,this[_0x2808ad(0x254)]=_0x5851f2,this[_0x2808ad(0x176)]=_0x102f6e);}get[_0x50d51c(0x3a5)](){const _0x1dd403=_0x50d51c;return this[_0x1dd403(0x1dc)][_0x1dd403(0x37b)]();}get[_0x50d51c(0x26c)](){const _0x10fed7=_0x50d51c;return this['_roomMembers$'][_0x10fed7(0x37b)]();}['dispose'](){const _0x14007c=_0x50d51c;super[_0x14007c(0x32e)](),this['_cursorInfo$'][_0x14007c(0x369)](new Map()),this[_0x14007c(0x1dc)][_0x14007c(0x39d)](),this[_0x14007c(0x32a)][_0x14007c(0x369)]([]),this[_0x14007c(0x32a)]['complete']();}[_0x50d51c(0x20e)](){const _0x4da395=_0x50d51c;this[_0x4da395(0x306)]||(this[_0x4da395(0x306)]=!0x0,this[_0x4da395(0x1a4)][_0x4da395(0x1de)][_0x4da395(0x280)](_0x2ea89f[_0x4da395(0x308)](this[_0x4da395(0x206)]))['subscribe'](_0x4e4b8e=>{const _0x29af37=_0x4da395;_0x4e4b8e===_0x436a9d[_0x29af37(0x3e4)][_0x29af37(0x373)]?this['_toggleOnline']():this[_0x29af37(0x1d6)]();}),this['_session']['event$'][_0x4da395(0x280)](_0x2ea89f[_0x4da395(0x308)](this[_0x4da395(0x206)]))[_0x4da395(0x344)](_0x96c9b2=>{const _0x208430=_0x4da395,_0x1e2e1f=_0x96c9b2[_0x208430(0x3a2)];_0x1e2e1f===_0x2d957c['CollaborationEvent'][_0x208430(0x35b)]&&this['_onCursorUpdate'](_0x96c9b2),_0x1e2e1f===_0x2d957c[_0x208430(0x1ae)][_0x208430(0x1a1)]&&this[_0x208430(0x3a4)](_0x96c9b2);}),this[_0x4da395(0x1c7)](),this['disposeWithMe'](this['_commandService'][_0x4da395(0x3f2)](_0x4c436a=>{const _0x3271ef=_0x4da395;if(this['_online']&&_0x4c436a['id']===_0x4cf27b[_0x3271ef(0x3e5)]['id']&&_0x4c436a[_0x3271ef(0x245)][_0x3271ef(0x1fa)]===this[_0x3271ef(0x3f0)]){const _0x49d16f=_0x4c436a[_0x3271ef(0x245)];this[_0x3271ef(0x2fe)](_0x49d16f['subUnitId'],_0x49d16f[_0x3271ef(0x197)][0x0]);}})));}['_onCursorUpdate'](_0x35fd7f){const _0x4b65b3=_0x50d51c;var _0x14ed33,_0x3ae2d0;const {memberID:_0x20b2de,selection:_0x3829fd}=_0x35fd7f['data'],{sheetName:_0x55abdd,range:_0x48325f}=_0xded955[_0x4b65b3(0x2c4)](_0x3829fd),_0x38c28c={'name':(_0x3ae2d0=(_0x14ed33=this[_0x4b65b3(0x2c7)][_0x4b65b3(0x390)](this[_0x4b65b3(0x3f0)],_0x20b2de))==null?void 0x0:_0x14ed33[_0x4b65b3(0x2da)])!=null?_0x3ae2d0:'Unknown\x20user','range':this['_getMergeRange'](_0x55abdd,_0x48325f),'sheetID':_0x55abdd,'color':this[_0x4b65b3(0x31a)][_0x4b65b3(0x255)](_0x20b2de),'selection':_0x3829fd},_0xf87a9c=this[_0x4b65b3(0x3a5)];_0xf87a9c['set'](_0x20b2de,_0x38c28c),this[_0x4b65b3(0x1dc)][_0x4b65b3(0x369)](_0xf87a9c);}[_0x50d51c(0x3a4)](_0x39932b){const _0xea2a6c=_0x50d51c,{memberID:_0x47af34}=_0x39932b[_0xea2a6c(0x182)],_0xc05c00=this['cursorInfo'];_0xc05c00[_0xea2a6c(0x3d7)](_0x47af34),this[_0xea2a6c(0x1dc)][_0xea2a6c(0x369)](_0xc05c00);}[_0x50d51c(0x3dc)](_0x1faa80,_0x24ce1f){const _0x472fec=_0x50d51c;var _0x51c0d8,_0x6c3fbd;const _0x5ccf9e=(_0x6c3fbd=(_0x51c0d8=this[_0x472fec(0x305)][_0x472fec(0x26a)](this[_0x472fec(0x3f0)]))==null?void 0x0:_0x51c0d8['getSheetBySheetId'](_0x1faa80))==null?void 0x0:_0x6c3fbd['getMergeData']();return(_0x5ccf9e==null?void 0x0:_0x5ccf9e['find'](_0x3f50a0=>_0x4d5d93[_0x472fec(0x233)][_0x472fec(0x3bd)](_0x3f50a0,_0x24ce1f)))||_0x24ce1f;}[_0x50d51c(0x1c7)](){const _0x105c9c=_0x50d51c,_0x2146d1=new _0x4d5d93[(_0x105c9c(0x1ab))](),_0x54aedf=_0x125253(),_0x15acaf=()=>{const _0x2c2783=_0x105c9c;_0x2146d1[_0x2c2783(0x32e)]();const _0x264392=(_0x1f5e44,_0x3771db,_0x212d49,_0x4156cb)=>{const _0x6df782=_0x2c2783;let _0x23bab6=[];switch(_0x1f5e44['id']){case _0x4cf27b[_0x6df782(0x1ba)][_0x6df782(0x346)]:{_0x23bab6=_0x4cf27b[_0x6df782(0x3b6)](_0x1f5e44,_0x4156cb);break;}case _0x4cf27b['EffectRefRangId'][_0x6df782(0x15f)]:{_0x23bab6=_0x4cf27b['handleDeleteRangeMoveUp'](_0x1f5e44,_0x4156cb);break;}case _0x4cf27b[_0x6df782(0x1ba)][_0x6df782(0x19b)]:{_0x23bab6=_0x4cf27b[_0x6df782(0x33a)](_0x1f5e44,_0x4156cb);break;}case _0x4cf27b[_0x6df782(0x1ba)][_0x6df782(0x395)]:{_0x23bab6=_0x4cf27b['handleInsertRangeMoveDown'](_0x1f5e44,_0x4156cb);break;}case _0x4cf27b[_0x6df782(0x1ba)][_0x6df782(0x25c)]:{_0x23bab6=_0x4cf27b[_0x6df782(0x1fc)](_0x1f5e44,_0x4156cb);break;}case _0x4cf27b[_0x6df782(0x1ba)][_0x6df782(0x3d0)]:{_0x23bab6=_0x4cf27b[_0x6df782(0x3c9)](_0x1f5e44,_0x4156cb);break;}case _0x4cf27b[_0x6df782(0x1ba)][_0x6df782(0x1e5)]:{_0x23bab6=_0x4cf27b[_0x6df782(0x22e)](_0x1f5e44,_0x4156cb);break;}case _0x4cf27b[_0x6df782(0x1ba)][_0x6df782(0x368)]:{_0x23bab6=_0x4cf27b[_0x6df782(0x1df)](_0x1f5e44,_0x4156cb);break;}case _0x4cf27b[_0x6df782(0x1ba)][_0x6df782(0x1f6)]:{_0x23bab6=_0x4cf27b[_0x6df782(0x2f7)](_0x1f5e44,_0x4156cb);break;}}const _0x486c5d=_0x4cf27b[_0x6df782(0x207)](_0x23bab6,_0x4156cb),_0x282c83=this['cursorInfo'][_0x6df782(0x2ba)](_0x3771db);if(_0x282c83&&_0x486c5d){const _0xc4d462={..._0x282c83,'range':_0x486c5d};this[_0x6df782(0x3a5)][_0x6df782(0x3f5)](_0x3771db,_0xc4d462),_0x54aedf(()=>{const _0x20cac5=_0x6df782,_0x4a560c=this[_0x20cac5(0x176)][_0x20cac5(0x262)](_0x486c5d,_0x553f19=>(_0x4a560c['dispose'](),_0x264392(_0x553f19,_0x3771db,_0x212d49,_0x486c5d)));_0x2146d1[_0x20cac5(0x2bb)](_0x4a560c);});}return{'redos':[],'undos':[]};};this[_0x2c2783(0x3a5)]['forEach']((_0x4a3384,_0x2b3324)=>{const _0x330f7e=_0x2c2783,{range:_0x108df4,sheetID:_0x16e020}=_0x4a3384,_0x54ca0d=this['_refRangeService'][_0x330f7e(0x262)](_0x108df4,_0x4d21da=>(_0x54ca0d[_0x330f7e(0x32e)](),_0x264392(_0x4d21da,_0x2b3324,_0x16e020,_0x108df4)));_0x2146d1[_0x330f7e(0x2bb)](_0x54ca0d);});};this[_0x105c9c(0x239)](_0x4d5d93[_0x105c9c(0x394)](this[_0x105c9c(0x1dc)]['subscribe'](()=>{_0x15acaf();})));}[_0x50d51c(0x2d7)](){const _0xc711b=_0x50d51c;var _0x5ed042,_0x38847e;if(this[_0xc711b(0x317)]=!0x0,((_0x5ed042=this[_0xc711b(0x305)][_0xc711b(0x1a6)]())==null?void 0x0:_0x5ed042['getUnitId']())!==this[_0xc711b(0x3f0)])return;const _0x37ed9d=(_0x38847e=this['_injector'][_0xc711b(0x2ba)](_0x4cf27b[_0xc711b(0x213)])['getCurrentSelections']())==null?void 0x0:_0x38847e[0x0],_0x2f300b=this[_0xc711b(0x305)][_0xc711b(0x25b)](_0x4d5d93[_0xc711b(0x2bc)]['UNIVER_SHEET'])[_0xc711b(0x244)]();_0x37ed9d&&_0x2f300b&&this['_updateLocalCursor'](_0x2f300b[_0xc711b(0x1b9)](),_0x37ed9d);}[_0x50d51c(0x1d6)](){const _0xf94088=_0x50d51c;this[_0xf94088(0x317)]=!0x1;}};_0x3bfc5e=_0x4480c7([_0x3437d7(0x2,_0x4d5d93['Inject'](_0x4d5d93[_0x50d51c(0x196)])),_0x3437d7(0x3,_0x4d5d93[_0x50d51c(0x383)](_0x2f0bfe)),_0x3437d7(0x4,_0x4d5d93[_0x50d51c(0x383)](_0x436a9d['MemberService'])),_0x3437d7(0x5,_0x4d5d93[_0x50d51c(0x3f4)]),_0x3437d7(0x6,_0x4d5d93[_0x50d51c(0x2ed)]),_0x3437d7(0x7,_0x4d5d93[_0x50d51c(0x383)](_0x4cf27b['RefRangeService']))],_0x3bfc5e);var _0x5a879d=Object['getOwnPropertyDescriptor'],_0x259a7f=(_0x1cd602,_0x4e4678,_0x2a319b,_0xd15cca)=>{const _0x12c61e=_0x50d51c;for(var _0x4cd1a7=_0xd15cca>0x1?void 0x0:_0xd15cca?_0x5a879d(_0x4e4678,_0x2a319b):_0x4e4678,_0x114c48=_0x1cd602[_0x12c61e(0x225)]-0x1,_0x58ebd9;_0x114c48>=0x0;_0x114c48--)(_0x58ebd9=_0x1cd602[_0x114c48])&&(_0x4cd1a7=_0x58ebd9(_0x4cd1a7)||_0x4cd1a7);return _0x4cd1a7;},_0x2b5612=(_0x53ef9d,_0x1c7a7e)=>(_0x2c21ed,_0x34aa09)=>_0x1c7a7e(_0x2c21ed,_0x34aa09,_0x53ef9d);let _0x1a123d=class extends _0x4d5d93[_0x50d51c(0x2dd)]{constructor(_0x1f77eb,_0x38abf9,_0x150353){const _0x2ed17a=_0x50d51c;super(),_0x5e82ed(this,_0x2ed17a(0x232),new Map()),_0x5e82ed(this,_0x2ed17a(0x18d),new _0x2ea89f[(_0x2ed17a(0x31f))]()),(this[_0x2ed17a(0x305)]=_0x1f77eb,this[_0x2ed17a(0x246)]=_0x38abf9,this[_0x2ed17a(0x1ff)]=_0x150353,this[_0x2ed17a(0x306)]());}[_0x50d51c(0x32e)](){const _0x318349=_0x50d51c;super[_0x318349(0x32e)](),this[_0x318349(0x18d)][_0x318349(0x39d)](),this[_0x318349(0x232)][_0x318349(0x39a)](_0x4c9ea4=>_0x4c9ea4[_0x318349(0x32e)]());}['getCollabCursors$'](_0x5c0a2b){const _0x32e0e5=_0x50d51c;return this[_0x32e0e5(0x232)][_0x32e0e5(0x310)](_0x5c0a2b)?this[_0x32e0e5(0x232)]['get'](_0x5c0a2b)[_0x32e0e5(0x376)]:this[_0x32e0e5(0x18d)]['pipe'](_0x2ea89f['filter'](_0x42746b=>_0x42746b[_0x32e0e5(0x3f0)]===_0x5c0a2b),_0x2ea89f['switchMap'](_0x5b5257=>_0x5b5257['cursorInfo$']));}['_init'](){const _0x437f59=_0x50d51c;this['_univerInstanceService'][_0x437f59(0x201)](_0x4d5d93[_0x437f59(0x2bc)][_0x437f59(0x226)])['pipe'](_0x2ea89f['takeUntil'](this[_0x437f59(0x206)]))[_0x437f59(0x344)](async _0x1a4c60=>{const _0x2ffc84=_0x437f59,_0x45dcf7=_0x1a4c60['getUnitId'](),_0x18f198=await this[_0x2ffc84(0x228)](_0x45dcf7);this[_0x2ffc84(0x18d)][_0x2ffc84(0x369)](_0x18f198),this['_entities']['set'](_0x45dcf7,_0x18f198);}),this[_0x437f59(0x305)][_0x437f59(0x201)](_0x4d5d93[_0x437f59(0x2bc)][_0x437f59(0x3d1)])[_0x437f59(0x280)](_0x2ea89f[_0x437f59(0x308)](this[_0x437f59(0x206)]))[_0x437f59(0x280)](_0x2ea89f[_0x437f59(0x385)](_0x30843d=>!_0x30843d['getUnitId']()[_0x437f59(0x2d8)]('__')))[_0x437f59(0x344)](async _0x4114a6=>{const _0x263ea2=_0x437f59,_0x2e811c=_0x4114a6[_0x263ea2(0x2f3)](),_0x73e500=await this['_startDocCollabCursor'](_0x2e811c);this[_0x263ea2(0x18d)][_0x263ea2(0x369)](_0x73e500),this[_0x263ea2(0x232)][_0x263ea2(0x3f5)](_0x2e811c,_0x73e500);}),_0x2ea89f[_0x437f59(0x1af)](this['_univerInstanceService'][_0x437f59(0x1e7)](_0x4d5d93[_0x437f59(0x2bc)][_0x437f59(0x3d1)]),this['_univerInstanceService'][_0x437f59(0x1e7)](_0x4d5d93['UniverInstanceType'][_0x437f59(0x226)]))[_0x437f59(0x280)](_0x2ea89f[_0x437f59(0x308)](this[_0x437f59(0x206)]))['subscribe'](_0xef4a3d=>{const _0x55dc62=_0x437f59,_0x59b7ff=_0xef4a3d[_0x55dc62(0x2f3)](),_0x26ce86=this[_0x55dc62(0x232)]['get'](_0x59b7ff);_0x26ce86&&(_0x26ce86[_0x55dc62(0x32e)](),this[_0x55dc62(0x232)][_0x55dc62(0x3d7)](_0x59b7ff));});}async[_0x50d51c(0x228)](_0x2bc8be){const _0x310ac4=_0x50d51c,_0x1decb4=await this[_0x310ac4(0x1ff)][_0x310ac4(0x18f)](_0x2bc8be),_0x3bfa67=this[_0x310ac4(0x246)]['createInstance'](_0x3bfc5e,_0x2bc8be,_0x1decb4);return _0x3bfa67[_0x310ac4(0x20e)](),_0x3bfa67;}async['_startDocCollabCursor'](_0x3d16df){const _0x4fd5a4=_0x50d51c,_0x59c666=await this[_0x4fd5a4(0x1ff)]['requireSession'](_0x3d16df),_0x1f6b3f=this[_0x4fd5a4(0x246)][_0x4fd5a4(0x348)](_0x5db237,_0x3d16df,_0x59c666);return _0x1f6b3f[_0x4fd5a4(0x20e)](),_0x1f6b3f;}};_0x1a123d=_0x259a7f([_0x2b5612(0x0,_0x4d5d93[_0x50d51c(0x3f4)]),_0x2b5612(0x1,_0x4d5d93[_0x50d51c(0x383)](_0x4d5d93[_0x50d51c(0x196)])),_0x2b5612(0x2,_0x4d5d93['Inject'](_0x436a9d[_0x50d51c(0x2ec)]))],_0x1a123d);const _0x4e9a71=0x14,_0x1b390d=0xc8,_0x2bd059=0x4,_0xe6c50b=0x5;function _0x414a3f(_0x3e9e36,_0xbd9a21){const _0x57818a=_0x50d51c;let {radius:_0x3a7a82,width:_0x533ec7,height:_0x543e06}=_0xbd9a21;_0x3a7a82=_0x3a7a82!=null?_0x3a7a82:0x0,_0x533ec7=_0x533ec7!=null?_0x533ec7:0x1e,_0x543e06=_0x543e06!=null?_0x543e06:0x1e;let _0x3e6109=0x0,_0x4469fe=0x0,_0xa5253c=0x0;_0x3e6109=_0x4469fe=_0xa5253c=Math[_0x57818a(0x3ee)](_0x3a7a82,_0x533ec7/0x2,_0x543e06/0x2),_0x3e9e36[_0x57818a(0x3db)](),_0x3e9e36[_0x57818a(0x34f)](_0x3e6109,0x0),_0x3e9e36[_0x57818a(0x319)](_0x533ec7-_0x4469fe,0x0),_0x3e9e36[_0x57818a(0x1cd)](_0x533ec7-_0x4469fe,_0x4469fe,_0x4469fe,Math['PI']*0x3/0x2,0x0,!0x1),_0x3e9e36[_0x57818a(0x319)](_0x533ec7,_0x543e06-_0xa5253c),_0x3e9e36['arc'](_0x533ec7-_0xa5253c,_0x543e06-_0xa5253c,_0xa5253c,0x0,Math['PI']/0x2,!0x1),_0x3e9e36[_0x57818a(0x319)](0x0,_0x543e06),_0x3e9e36[_0x57818a(0x319)](0x0,_0x3e6109),_0x3e9e36[_0x57818a(0x1cd)](_0x3e6109,_0x3e6109,_0x3e6109,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3e9e36['closePath'](),_0xbd9a21[_0x57818a(0x193)]&&(_0x3e9e36[_0x57818a(0x307)](),_0x3e9e36['fillStyle']=_0xbd9a21[_0x57818a(0x193)],_0xbd9a21[_0x57818a(0x30e)]===_0x57818a(0x2cc)?_0x3e9e36[_0x57818a(0x193)]('evenodd'):_0x3e9e36[_0x57818a(0x193)](),_0x3e9e36[_0x57818a(0x19c)]());}class _0x326687 extends _0x27e953[_0x50d51c(0x2e8)]{constructor(_0x56515e,_0x37d399){const _0x21e2cd=_0x50d51c;super(_0x56515e,_0x37d399),_0x5e82ed(this,'color'),_0x5e82ed(this,'text'),(this[_0x21e2cd(0x170)]=_0x37d399==null?void 0x0:_0x37d399[_0x21e2cd(0x170)],this['text']=_0x37d399==null?void 0x0:_0x37d399[_0x21e2cd(0x2cb)]);}static['drawWith'](_0x19584a,_0x2058bd){const _0x43653a=_0x50d51c,{text:_0x5b0864,color:_0xbdba3f}=_0x2058bd;_0x19584a['save'](),_0x19584a['font']=_0x43653a(0x210);const _0x45d380=_0x19584a[_0x43653a(0x261)](_0x5b0864)[_0x43653a(0x3e1)],_0xaae7e9=Math[_0x43653a(0x3ee)](_0x45d380+0x2*_0x2bd059,_0x1b390d);_0x414a3f(_0x19584a,{'height':_0x4e9a71,'radius':0x4,'width':_0xaae7e9,'fill':_0xbdba3f}),_0x19584a['fillStyle']=_0x43653a(0x2a4);const _0x3689ee=_0x2bd059,_0x636e89=_0x4e9a71-_0xe6c50b,_0x3d1d8f=_0x1b390d-0x2*_0x2bd059;if(_0x45d380>_0x3d1d8f){let _0x522576='',_0x241132=0x0;for(const _0x4f7a17 of _0x5b0864){const _0x1fea15=_0x19584a[_0x43653a(0x261)](_0x4f7a17)[_0x43653a(0x3e1)];if(_0x241132+_0x1fea15<=_0x3d1d8f-_0x19584a[_0x43653a(0x261)](_0x43653a(0x298))[_0x43653a(0x3e1)])_0x522576+=_0x4f7a17,_0x241132+=_0x1fea15;else{_0x522576+=_0x43653a(0x298);break;}}_0x19584a['fillText'](_0x522576,_0x3689ee,_0x636e89);}else _0x19584a['fillText'](_0x5b0864,_0x3689ee,_0x636e89);_0x19584a[_0x43653a(0x19c)]();}[_0x50d51c(0x38b)](_0x4b869b){const _0xbc1b4f=_0x50d51c;_0x326687[_0xbc1b4f(0x354)](_0x4b869b,this);}}const _0x308d38=_0x50d51c(0x3c2),_0x50bbf2=_0x50d51c(0x329),_0x552342=_0x50d51c(0x39e),_0x552097=0x6,_0x5af04a=1.5,_0xe54507=0x4,_0x3482e7=1.5,_0xcdadf2=_0x50d51c(0x292);class _0x29fde3{constructor(_0x1e1075,_0x488644,_0x202de9,_0xf1051a){const _0x27923e=_0x50d51c;_0x5e82ed(this,_0x27923e(0x1ec),[]),_0x5e82ed(this,'_anchor',null),_0x5e82ed(this,_0x27923e(0x2e9),null),_0x5e82ed(this,_0x27923e(0x235),null),_0x5e82ed(this,_0x27923e(0x22a),null),_0x5e82ed(this,_0x27923e(0x29a),null),(this[_0x27923e(0x160)]=_0x1e1075,this[_0x27923e(0x22c)]=_0x488644,this[_0x27923e(0x2a7)]=_0x202de9,this[_0x27923e(0x338)]=_0xf1051a,this['_render']());}set[_0x50d51c(0x2ad)](_0x11be49){const _0x273a9d=_0x50d51c;_0x11be49?(this[_0x273a9d(0x235)]&&this[_0x273a9d(0x235)]['hide'](),this[_0x273a9d(0x2e9)]&&this[_0x273a9d(0x2e9)][_0x273a9d(0x218)]()):(this[_0x273a9d(0x235)]&&this['_anchorDot']['show'](),this[_0x273a9d(0x2e9)]&&this[_0x273a9d(0x2e9)][_0x273a9d(0x1d9)]());}[_0x50d51c(0x32e)](){const _0x2deffc=_0x50d51c;for(const _0x1d902c of this['_shapes'])_0x1d902c['dispose']();this['_textBubble']&&this[_0x2deffc(0x2e9)][_0x2deffc(0x32e)](),this[_0x2deffc(0x235)]&&this[_0x2deffc(0x235)]['dispose'](),this['_anchor']&&this[_0x2deffc(0x26e)][_0x2deffc(0x32e)](),this[_0x2deffc(0x29a)]&&this[_0x2deffc(0x29a)]();}[_0x50d51c(0x23f)](){const _0x41dd30=_0x50d51c;var _0x3030f5;const {_docSkeleton:_0x553ca0,_document:_0x1ca2d2}=this,{color:_0x146063,name:_0x210dcf,ranges:_0x3f7d10}=this[_0x41dd30(0x160)],_0x396f19=_0x1ca2d2[_0x41dd30(0x3b0)](),{docsLeft:_0x211f90,docsTop:_0x34e23c}=_0x396f19,_0x4dc65b=new _0x3f955c['NodePositionConvertToCursor'](_0x396f19,_0x553ca0);for(const {startOffset:_0x52bb89,endOffset:_0x4352f2,rangeType:_0x54dd61,segmentId:_0x1d2446,segmentPage:_0xb153f,collapsed:_0x28ceba,isActive:_0x199e01}of _0x3f7d10){const _0x2fd3fa=_0x553ca0['findNodePositionByCharIndex'](_0x52bb89,!0x0,_0x1d2446,_0xb153f);let _0x306be3=_0x553ca0[_0x41dd30(0x295)](_0x4352f2,!0x0,_0x1d2446,_0xb153f);if(_0x306be3==null&&(_0x306be3=_0x553ca0[_0x41dd30(0x295)](_0x4352f2-0x1,!0x1,_0x1d2446,_0xb153f)),_0x199e01){const {contentBoxPointGroup:_0x416671}=_0x4dc65b[_0x41dd30(0x223)](_0x306be3,_0x306be3);if(_0x416671['length']===0x0)continue;this['_drawAnchor'](_0x146063,_0x416671,_0x211f90,_0x34e23c,_0x210dcf),this[_0x41dd30(0x29a)]=this[_0x41dd30(0x274)]();}if(_0x2fd3fa&&_0x306be3){if(_0x54dd61===_0x4d5d93[_0x41dd30(0x286)][_0x41dd30(0x162)]){const _0x490c1a=new _0x3f955c[(_0x41dd30(0x31c))](_0x396f19,_0x553ca0),{pointGroup:_0x5d2f69}=(_0x3030f5=_0x490c1a[_0x41dd30(0x223)](_0x2fd3fa,_0x306be3))!=null?_0x3030f5:{};if(_0x5d2f69==null||_0x5d2f69[_0x41dd30(0x225)]===0x0)continue;this[_0x41dd30(0x38c)](_0x146063,_0x5d2f69,_0x211f90,_0x34e23c);}else{if(!_0x28ceba){const {borderBoxPointGroup:_0x3c387b}=_0x4dc65b[_0x41dd30(0x223)](_0x2fd3fa,_0x306be3);if(_0x3c387b[_0x41dd30(0x225)]===0x0)continue;this['_drawTextRange'](_0x146063,_0x3c387b,_0x211f90,_0x34e23c);}}}}}['_drawAnchor'](_0x5a6bb1,_0x2695c7,_0x707cbd,_0x2ac67f,_0x5d78dd){const _0x4d54e9=_0x50d51c,_0x19bf55=this[_0x4d54e9(0x28d)](_0x2695c7),{left:_0x547952,top:_0x1e7f46,height:_0x2cc640}=_0x19bf55,_0x55f662=this['_getScale'](),_0x404efd=_0x3482e7/_0x55f662,_0x34101b=new _0x27e953[(_0x4d54e9(0x35a))](_0x308d38+_0x4d5d93[_0x4d54e9(0x230)]['generateRandomId'](_0x552097),{'left':_0x547952+_0x707cbd-_0x404efd,'top':_0x1e7f46+_0x2ac67f,'height':_0x2cc640,'width':_0x5af04a,'fill':_0x5a6bb1||_0x27e953['getColor'](_0x4d5d93[_0x4d54e9(0x387)][_0x4d54e9(0x211)],0x0),'strokeWidth':_0x404efd,'stroke':_0xcdadf2,'evented':!0x0});this[_0x4d54e9(0x26e)]=_0x34101b,this['_scene'][_0x4d54e9(0x36f)](_0x34101b,_0x3f955c[_0x4d54e9(0x325)]);const _0x563cd8=new _0x27e953[(_0x4d54e9(0x35a))](_0x308d38+_0x4d5d93[_0x4d54e9(0x230)]['generateRandomId'](_0x552097),{'left':_0x547952+_0x707cbd-_0x404efd,'top':_0x1e7f46+_0x2ac67f-_0xe54507/0x2,'height':_0xe54507,'width':_0xe54507,'fill':_0x5a6bb1||_0x27e953[_0x4d54e9(0x3b5)](_0x4d5d93[_0x4d54e9(0x387)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x5a6bb1||_0x27e953[_0x4d54e9(0x3b5)](_0x4d5d93[_0x4d54e9(0x387)][_0x4d54e9(0x211)],0x0),'evented':!0x1});this[_0x4d54e9(0x235)]=_0x563cd8,this[_0x4d54e9(0x22c)][_0x4d54e9(0x36f)](_0x563cd8,_0x3f955c[_0x4d54e9(0x325)]);const _0x4691d7=new _0x326687(_0x308d38+_0x4d5d93[_0x4d54e9(0x230)][_0x4d54e9(0x229)](_0x552097),{'left':_0x547952+_0x707cbd-_0x404efd,'top':_0x1e7f46+_0x2ac67f-_0x4e9a71,'text':_0x5d78dd,'color':_0x5a6bb1});this[_0x4d54e9(0x2e9)]=_0x4691d7,this['_scene'][_0x4d54e9(0x36f)](_0x4691d7,_0x3f955c['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x50d51c(0x274)](){const _0x217dd2=_0x50d51c,_0x258cef=this[_0x217dd2(0x26e)][_0x217dd2(0x279)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x5afaf0=this[_0x217dd2(0x26e)][_0x217dd2(0x2ae)][_0x217dd2(0x21b)](()=>{const _0x5432b9=_0x217dd2;this['_hideTimer']&&clearTimeout(this[_0x5432b9(0x22a)]),this[_0x5432b9(0x22a)]=setTimeout(()=>{const _0x28e005=_0x5432b9;this[_0x28e005(0x2ad)]=!0x1;},0x7d0);});return()=>{const _0x2c0c1f=_0x217dd2;_0x258cef[_0x2c0c1f(0x342)](),_0x5afaf0[_0x2c0c1f(0x342)]();};}[_0x50d51c(0x31d)](_0x30b0f5,_0x46cca6,_0x1d2b88,_0x1337e9){const _0x18bd20=_0x50d51c,_0x5b9b67=new _0x4d5d93[(_0x18bd20(0x1b5))](_0x30b0f5)[_0x18bd20(0x37c)](0.2)[_0x18bd20(0x399)](),_0x448e73=new _0x27e953[(_0x18bd20(0x32f))](_0x50bbf2+_0x4d5d93[_0x18bd20(0x230)]['generateRandomId'](_0x552097),{'pointsGroup':_0x46cca6,'fill':_0x5b9b67||_0x27e953[_0x18bd20(0x3b5)](_0x4d5d93[_0x18bd20(0x387)]['black'],0.2),'left':_0x1d2b88,'top':_0x1337e9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x18bd20(0x1ec)][_0x18bd20(0x335)](_0x448e73),this[_0x18bd20(0x22c)][_0x18bd20(0x36f)](_0x448e73,_0x3f955c[_0x18bd20(0x325)]);}['_drawRectRange'](_0x505521,_0x926fcb,_0x436fbc,_0x3e5b4a){const _0xb4424d=_0x50d51c,_0x9c79a8=new _0x4d5d93[(_0xb4424d(0x1b5))](_0x505521)['setAlpha'](0.2)['toRgbString'](),_0x1382f5=new _0x27e953[(_0xb4424d(0x32f))](_0x552342+_0x4d5d93[_0xb4424d(0x230)]['generateRandomId'](_0x552097),{'pointsGroup':_0x926fcb,'fill':_0x9c79a8||_0x27e953[_0xb4424d(0x3b5)](_0x4d5d93['COLORS'][_0xb4424d(0x211)],0.2),'left':_0x436fbc,'top':_0x3e5b4a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0xb4424d(0x335)](_0x1382f5),this[_0xb4424d(0x22c)][_0xb4424d(0x36f)](_0x1382f5,_0x3f955c[_0xb4424d(0x325)]);}[_0x50d51c(0x28d)](_0x558a5a){const _0x1e16d6=_0x558a5a[0x0],_0x13aa4b=_0x1e16d6[0x0],_0x5d16b3=_0x1e16d6[0x2],{x:_0x472653,y:_0x3a2d0b}=_0x13aa4b,{x:_0x761a5e,y:_0x4c3a26}=_0x5d16b3;return{'left':_0x472653,'top':_0x3a2d0b,'width':_0x761a5e-_0x472653,'height':_0x4c3a26-_0x3a2d0b};}[_0x50d51c(0x336)](){const _0x3cf31c=_0x50d51c,{scaleX:_0x383485,scaleY:_0x5cab2e}=this[_0x3cf31c(0x22c)]['getAncestorScale']();return Math[_0x3cf31c(0x357)](_0x383485,_0x5cab2e);}}var _0x383eb7=Object[_0x50d51c(0x179)],_0x26ba97=(_0x1ec523,_0x3e2874,_0x3fcc4f,_0x4369e4)=>{const _0x412b29=_0x50d51c;for(var _0x22fc4c=_0x4369e4>0x1?void 0x0:_0x4369e4?_0x383eb7(_0x3e2874,_0x3fcc4f):_0x3e2874,_0x25d79d=_0x1ec523[_0x412b29(0x225)]-0x1,_0x40e527;_0x25d79d>=0x0;_0x25d79d--)(_0x40e527=_0x1ec523[_0x25d79d])&&(_0x22fc4c=_0x40e527(_0x22fc4c)||_0x22fc4c);return _0x22fc4c;},_0x5b68aa=(_0xe5c6dd,_0x5ad16f)=>(_0x5c0b4b,_0x17810a)=>_0x5ad16f(_0x5c0b4b,_0x17810a,_0xe5c6dd);let _0x41efac=class extends _0x4d5d93['RxDisposable']{constructor(_0x4dd880,_0x1d7880,_0xceaf0,_0x3f4fbc,_0x196000){const _0x42b5f5=_0x50d51c;super(),_0x5e82ed(this,_0x42b5f5(0x36d),[]),_0x5e82ed(this,'_cursors',[]),(this['_context']=_0x4dd880,this[_0x42b5f5(0x378)]=_0x1d7880,this['_collabCursorController']=_0xceaf0,this[_0x42b5f5(0x254)]=_0x3f4fbc,this['_themeService']=_0x196000,this[_0x42b5f5(0x306)]());}[_0x50d51c(0x306)](){const _0x5d67d7=_0x50d51c,_0x4f8879=this[_0x5d67d7(0x1be)][_0x5d67d7(0x1fa)],_0x2725c1=this['_docSkeletonManagerService'];this[_0x5d67d7(0x239)](_0x2ea89f['combineLatest']([this[_0x5d67d7(0x2d3)]['getCollabCursors$'](_0x4f8879),this[_0x5d67d7(0x302)][_0x5d67d7(0x1c2)]])[_0x5d67d7(0x280)](_0x4a5380[_0x5d67d7(0x161)](([_0xe633fe,_0x4c134d])=>({'skeleton':_0x2725c1[_0x5d67d7(0x16c)](),'cursors':[..._0xe633fe['values']()][_0x5d67d7(0x3b8)](_0x3dd768=>({..._0x3dd768,'color':this[_0x5d67d7(0x302)]['getColorFromTheme'](_0x3dd768['color'])}))})))[_0x5d67d7(0x344)](_0x43c3e5=>{const _0x5bcee2=_0x5d67d7;if(this[_0x5bcee2(0x34b)](),_0x43c3e5){const {skeleton:_0x1c99f2,cursors:_0x200040}=_0x43c3e5;this[_0x5bcee2(0x291)](_0x1c99f2,_0x200040);}})),this[_0x5d67d7(0x18a)](),this[_0x5d67d7(0x3d6)]();}[_0x50d51c(0x291)](_0x218aee,_0x8e3fe4){const _0x51114c=_0x50d51c,{scene:_0x346c25,mainComponent:_0x28d07d}=this['_context'],_0x4be1df=_0x8e3fe4[_0x51114c(0x161)](_0x5cbb93=>new _0x29fde3(_0x5cbb93,_0x346c25,_0x218aee,_0x28d07d));this[_0x51114c(0x36d)]=_0x4be1df,this[_0x51114c(0x2ee)]=_0x8e3fe4;}['_refreshCollabCursors'](){const _0x5f2945=_0x50d51c;this['_removeCollabCursors']();const {scene:_0x2156fe,mainComponent:_0xe747ab}=this['_context'],_0x329024=this[_0x5f2945(0x378)]['getSkeleton'](),_0x15f428=this[_0x5f2945(0x2ee)]['map'](_0x4e8dac=>new _0x29fde3(_0x4e8dac,_0x2156fe,_0x329024,_0xe747ab));this[_0x5f2945(0x36d)]=_0x15f428;}['_removeCollabCursors'](){const _0x508af8=_0x50d51c;this[_0x508af8(0x36d)][_0x508af8(0x39a)](_0x2c27cd=>_0x2c27cd[_0x508af8(0x32e)]()),this[_0x508af8(0x36d)]=[];}[_0x50d51c(0x3d6)](){const _0xa8e3e=_0x50d51c,_0x20103a=[_0x3f955c[_0xa8e3e(0x220)]['id']];this[_0xa8e3e(0x239)](this['_commandService'][_0xa8e3e(0x3f2)](_0x23dd10=>{const _0x1f498d=_0xa8e3e;_0x20103a[_0x1f498d(0x2b4)](_0x23dd10['id'])&&_0x23dd10[_0x1f498d(0x245)][_0x1f498d(0x1fa)]===this[_0x1f498d(0x1be)][_0x1f498d(0x1fa)]&&this[_0x1f498d(0x21e)]();}));}['_initResize'](){const _0x93b285=_0x50d51c;this[_0x93b285(0x239)](_0x4d5d93[_0x93b285(0x1ee)](this[_0x93b285(0x1be)][_0x93b285(0x35c)][_0x93b285(0x314)])[_0x93b285(0x280)](_0x4a5380[_0x93b285(0x385)](_0x8df62b=>_0x8df62b[_0x93b285(0x25e)]===_0x27e953[_0x93b285(0x2e6)][_0x93b285(0x282)]),_0x4a5380[_0x93b285(0x1bb)](0x10))[_0x93b285(0x344)](()=>{const _0x257bae=_0x93b285;this[_0x257bae(0x21e)]();}));}};_0x41efac=_0x26ba97([_0x5b68aa(0x1,_0x4d5d93[_0x50d51c(0x383)](_0x1781a2[_0x50d51c(0x2d1)])),_0x5b68aa(0x2,_0x4d5d93['Inject'](_0x1a123d)),_0x5b68aa(0x3,_0x4d5d93[_0x50d51c(0x2ed)]),_0x5b68aa(0x4,_0x4d5d93[_0x50d51c(0x383)](_0x4d5d93['ThemeService']))],_0x41efac);const _0x4cfb02=0x1,_0x1f4aff=1.5;class _0x4aa7cb extends _0x27e953[_0x50d51c(0x2e8)]{constructor(_0x387a9e,_0x82c61e){const _0x1c2810=_0x50d51c;super(_0x387a9e,_0x82c61e),_0x5e82ed(this,_0x1c2810(0x2e0)),_0x5e82ed(this,_0x1c2810(0x2ca),!0x1),_0x5e82ed(this,_0x1c2810(0x3b7)),_0x5e82ed(this,'_name',''),_0x5e82ed(this,_0x1c2810(0x1b1),_0x1c2810(0x374)),_0x5e82ed(this,'_backgroundColor'),(_0x82c61e&&this[_0x1c2810(0x36b)](_0x82c61e),this[_0x1c2810(0x279)][_0x1c2810(0x21b)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x1c2810(0x2ae)]['subscribeEvent'](()=>this[_0x1c2810(0x36b)]({'hovered':!0x1})));}[_0x50d51c(0x36b)](_0x3e85b0){const _0x557d56=_0x50d51c;var _0x485a94,_0x10efa4,_0x551ebd,_0x5bc185,_0x35c348,_0x587c08;this[_0x557d56(0x2e0)]=(_0x485a94=_0x3e85b0[_0x557d56(0x170)])!=null?_0x485a94:this[_0x557d56(0x2e0)],this[_0x557d56(0x2ca)]=(_0x10efa4=_0x3e85b0['hovered'])!=null?_0x10efa4:this[_0x557d56(0x2ca)],this[_0x557d56(0x3b7)]=(_0x551ebd=_0x3e85b0[_0x557d56(0x221)])!=null?_0x551ebd:this[_0x557d56(0x3b7)],this['_name']=(_0x5bc185=_0x3e85b0[_0x557d56(0x2da)])!=null?_0x5bc185:this['_name'],this[_0x557d56(0x1b1)]=(_0x35c348=_0x3e85b0[_0x557d56(0x23c)])!=null?_0x35c348:this['_labelPosition'],this['_backgroundColor']=(_0x587c08=_0x3e85b0[_0x557d56(0x1e9)])!=null?_0x587c08:this[_0x557d56(0x1fd)],this[_0x557d56(0x199)]({'width':_0x3e85b0[_0x557d56(0x3e1)],'height':_0x3e85b0[_0x557d56(0x2b5)]});}[_0x50d51c(0x313)](_0xdd4122){const _0x4417ce=_0x50d51c,{row:_0x5a2039,column:_0x4b8866}=_0xdd4122;if(_0x5a2039>=this[_0x4417ce(0x3b7)]['startRow']&&_0x5a2039<=this['_range'][_0x4417ce(0x163)]&&_0x4b8866>=this[_0x4417ce(0x3b7)][_0x4417ce(0x21c)]&&_0x4b8866<=this[_0x4417ce(0x3b7)][_0x4417ce(0x3de)]){this[_0x4417ce(0x36b)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x1c88c4){return!0x1;}[_0x50d51c(0x38b)](_0xa7886d){const _0x59ec68=_0x50d51c;_0x27e953[_0x59ec68(0x35a)]['drawWith'](_0xa7886d,{'width':this[_0x59ec68(0x3e1)],'height':this[_0x59ec68(0x2b5)],'strokeWidth':_0x1f4aff,'stroke':this[_0x59ec68(0x2e0)],'evented':!0x1,'fill':this[_0x59ec68(0x1fd)]}),this[_0x59ec68(0x2ca)]&&(_0xa7886d[_0x59ec68(0x307)](),_0xa7886d['transform'](0x1,0x0,0x0,0x1,this[_0x59ec68(0x3e1)],this['_labelPosition']==='bottom'?0x0:-0x14),_0x326687[_0x59ec68(0x354)](_0xa7886d,{'text':this[_0x59ec68(0x249)],'color':this[_0x59ec68(0x2e0)]}),_0xa7886d[_0x59ec68(0x19c)]());}}var _0x293953=Object['getOwnPropertyDescriptor'],_0x15ca20=(_0x3ed300,_0x43db06,_0x11fd75,_0x2fd1b0)=>{for(var _0x4c4abb=_0x2fd1b0>0x1?void 0x0:_0x2fd1b0?_0x293953(_0x43db06,_0x11fd75):_0x43db06,_0x3075c4=_0x3ed300['length']-0x1,_0x13bcb8;_0x3075c4>=0x0;_0x3075c4--)(_0x13bcb8=_0x3ed300[_0x3075c4])&&(_0x4c4abb=_0x13bcb8(_0x4c4abb)||_0x4c4abb);return _0x4c4abb;},_0x30c4dc=(_0x4b915a,_0x55d271)=>(_0x536c9f,_0x7bcf06)=>_0x55d271(_0x536c9f,_0x7bcf06,_0x4b915a);const _0x3d90bb=0x1389;let _0x526942=class extends _0x4d5d93[_0x50d51c(0x2dd)]{constructor(_0x156141,_0x2bbc1e,_0x482477,_0x1d5bcb){const _0x588726=_0x50d51c;super(),_0x5e82ed(this,_0x588726(0x2ee),new Set()),_0x5e82ed(this,_0x588726(0x330),null),(this[_0x588726(0x1be)]=_0x156141,this[_0x588726(0x349)]=_0x2bbc1e,this[_0x588726(0x2d3)]=_0x482477,this[_0x588726(0x302)]=_0x1d5bcb,this['_init']());}[_0x50d51c(0x306)](){const _0x4b0742=_0x50d51c;this[_0x4b0742(0x349)][_0x4b0742(0x271)]['pipe'](_0x4a5380['takeUntil'](this[_0x4b0742(0x206)]),_0x4a5380[_0x4b0742(0x3e9)](_0x58e42f=>{const _0x1b5349=_0x4b0742;if(_0x58e42f){const _0x3cfbf5=_0x58e42f[_0x1b5349(0x28a)];return _0x2ea89f[_0x1b5349(0x1d4)](this['_collabCursorController']['getCollabCursors$'](this[_0x1b5349(0x1be)][_0x1b5349(0x1fa)]),this[_0x1b5349(0x302)][_0x1b5349(0x1c2)])['pipe'](_0x4a5380[_0x1b5349(0x161)](([_0x393db5,_0x524575])=>{const _0x51e899=_0x1b5349,_0x1dc85c=new Map();return _0x393db5[_0x51e899(0x39a)]((_0x45c8cc,_0x1497a4)=>{const _0x2271f5=_0x51e899;if(_0x45c8cc[_0x2271f5(0x2c0)]===_0x3cfbf5){const _0xeee5a4={..._0x45c8cc};_0xeee5a4[_0x2271f5(0x170)]=this[_0x2271f5(0x302)]['getColorFromTheme'](_0x45c8cc['color']),_0x1dc85c[_0x2271f5(0x3f5)](_0x1497a4,_0xeee5a4);}}),{'skeleton':_0x58e42f,'cursors':_0x1dc85c};}));}return _0x2ea89f['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x12cd7e,cursors:_0x462f66})=>{const _0x44a814=_0x4b0742;this[_0x44a814(0x34b)](),_0x12cd7e&&this[_0x44a814(0x291)](_0x12cd7e,_0x462f66);}),this[_0x4b0742(0x349)][_0x4b0742(0x271)][_0x4b0742(0x344)](_0x4b0250=>{const _0x460a08=_0x4b0742;if(_0x4b0250==null)return;const {skeleton:_0x235859}=_0x4b0250,{scene:_0x3da3fa}=this[_0x460a08(0x1be)];_0x3da3fa[_0x460a08(0x32d)][_0x460a08(0x21b)](_0x4d5d93[_0x460a08(0x341)](_0x155c46=>{const _0x1ca7b1=_0x460a08;var _0x1f06c9,_0x50ea90;const {offsetX:_0x58e1c1,offsetY:_0xfa24c5}=_0x155c46,{x:_0x5e0e09,y:_0x251c39}=_0x3da3fa[_0x1ca7b1(0x24e)](_0x27e953['Vector2'][_0x1ca7b1(0x37e)]([_0x58e1c1,_0xfa24c5])),{scaleX:_0x3439ae,scaleY:_0x111f84}=_0x3da3fa[_0x1ca7b1(0x2a8)](),_0x2706af=_0x3da3fa[_0x1ca7b1(0x21a)](_0x27e953['SHEET_VIEWPORT_KEY'][_0x1ca7b1(0x297)]),_0x134959=_0x3da3fa['getVpScrollXYInfoByPosToVp'](_0x27e953['Vector2'][_0x1ca7b1(0x37e)]([_0x5e0e09,_0x251c39]),_0x2706af),_0x563935=_0x235859[_0x1ca7b1(0x31e)](_0x58e1c1,_0xfa24c5,_0x3439ae,_0x111f84,_0x134959);((_0x1f06c9=this[_0x1ca7b1(0x330)])==null?void 0x0:_0x1f06c9[_0x1ca7b1(0x25d)])===_0x563935[_0x1ca7b1(0x25d)]&&((_0x50ea90=this[_0x1ca7b1(0x330)])==null?void 0x0:_0x50ea90[_0x1ca7b1(0x278)])===_0x563935['row']||this['_cursors'][_0x1ca7b1(0x39a)](_0x5e685e=>{const _0x350441=_0x1ca7b1;_0x5e685e[_0x350441(0x313)](_0x563935);});},0x64));});}['_updateCollabCursors'](_0x263b5d,_0x165f52){const _0x5e02e2=_0x50d51c;var _0x2f75a7;const _0x2b32a2=(_0x2f75a7=this['_sheetSkeletonManagerService'][_0x5e02e2(0x1a8)]())==null?void 0x0:_0x2f75a7[_0x5e02e2(0x1c0)];if(!_0x2b32a2)return;const _0x54be41=this[_0x5e02e2(0x3c1)]();if(!_0x54be41)return;this['_cursors']['forEach'](_0x5de2dc=>{const _0x48d714=_0x5e02e2;_0x5de2dc[_0x48d714(0x16d)]();});const {scene:_0x4c47ef}=_0x54be41,_0xc2b2d8=_0x5c880e(Array[_0x5e02e2(0x1b0)](_0x165f52['values']()))[_0x5e02e2(0x161)](_0x4e729=>{const _0x3c54e9=_0x5e02e2,{color:_0xd304c7,range:_0x7f3fd2,name:_0x4e6b72,selection:_0x5c21dd,sheetID:_0x307ca0}=_0x4e729,{startColumn:_0x129182,startRow:_0x5d136c,endColumn:_0x4be579,endRow:_0x215e45}=_0x7f3fd2,_0x169300=_0x5da637['getCoordByCell'](_0x5d136c,_0x129182,_0x4c47ef,_0x2b32a2),_0xb8094e=_0x5da637[_0x3c54e9(0x224)](_0x215e45,_0x4be579,_0x4c47ef,_0x2b32a2),{columnHeaderHeightAndMarginTop:_0x4ff155}=_0x2b32a2,{startX:_0x384738,startY:_0x51e423}=_0x169300,{endX:_0x5a8c38,endY:_0x19a3ea}=_0xb8094e,_0x448984=_0x5a8c38-_0x384738,_0x1277c8=_0x19a3ea-_0x51e423,_0x573b39={'labelPosition':_0x51e423-_0x4ff155>=_0x4e9a71?_0x3c54e9(0x374):'bottom','sheetID':_0x307ca0,'range':_0x7f3fd2,'color':_0xd304c7,'name':_0x4e6b72,'selection':_0x5c21dd,'left':_0x384738,'top':_0x51e423,'width':_0x448984,'height':_0x1277c8,'evented':!0x1,'zIndex':_0x3d90bb};return new _0x4aa7cb(_0x4e6b72,_0x573b39);});_0x4c47ef['addObjects'](_0xc2b2d8,_0x4cfb02),this[_0x5e02e2(0x2ee)]=new Set(_0xc2b2d8);}[_0x50d51c(0x34b)](){var _0x1484bb;(_0x1484bb=this['_cursors'])==null||_0x1484bb['forEach'](_0x2e0ea4=>_0x2e0ea4['dispose']());}['_getSheetObject'](){const _0x307cc5=_0x50d51c;return _0x5da637[_0x307cc5(0x379)](this[_0x307cc5(0x1be)][_0x307cc5(0x256)],this['_context']);}};_0x526942=_0x15ca20([_0x30c4dc(0x1,_0x4d5d93[_0x50d51c(0x383)](_0x5da637[_0x50d51c(0x1e3)])),_0x30c4dc(0x2,_0x4d5d93[_0x50d51c(0x383)](_0x1a123d)),_0x30c4dc(0x3,_0x4d5d93['Inject'](_0x4d5d93[_0x50d51c(0x1d2)]))],_0x526942);function _0x5c880e(_0x28318f){const _0x5d3541=_0x50d51c,_0x46334b=new Map();return _0x28318f['forEach'](_0x2fdd3a=>{const _0x2e3d97=_0xa650;if(_0x46334b['has'](_0x2fdd3a[_0x2e3d97(0x270)])){const _0x3a3952=_0x46334b['get'](_0x2fdd3a[_0x2e3d97(0x270)]);_0x3a3952[_0x2e3d97(0x2da)]+=',\x20'+_0x2fdd3a[_0x2e3d97(0x2da)];}else _0x46334b[_0x2e3d97(0x3f5)](_0x2fdd3a['selection'],_0x2fdd3a);}),Array[_0x5d3541(0x1b0)](_0x46334b[_0x5d3541(0x1a5)]());}var _0x3ecba9=function(){const _0x436259=_0x50d51c;return _0x3ecba9=Object[_0x436259(0x1eb)]||function(_0x3ddb2a){const _0x2f3f36=_0x436259;for(var _0x13679e,_0x3efda1=0x1,_0x547a1a=arguments['length'];_0x3efda1<_0x547a1a;_0x3efda1++){_0x13679e=arguments[_0x3efda1];for(var _0x3e750f in _0x13679e)Object[_0x2f3f36(0x2a2)][_0x2f3f36(0x30d)][_0x2f3f36(0x18e)](_0x13679e,_0x3e750f)&&(_0x3ddb2a[_0x3e750f]=_0x13679e[_0x3e750f]);}return _0x3ddb2a;},_0x3ecba9[_0x436259(0x3a1)](this,arguments);},_0x424d8c=function(_0x38c964,_0x3d2290){const _0x28195c=_0x50d51c;var _0x32c89e={};for(var _0x16f20e in _0x38c964)Object[_0x28195c(0x2a2)]['hasOwnProperty'][_0x28195c(0x18e)](_0x38c964,_0x16f20e)&&_0x3d2290[_0x28195c(0x2b8)](_0x16f20e)<0x0&&(_0x32c89e[_0x16f20e]=_0x38c964[_0x16f20e]);if(_0x38c964!=null&&typeof Object[_0x28195c(0x168)]==_0x28195c(0x27b)){for(var _0x36c9cd=0x0,_0x16f20e=Object[_0x28195c(0x168)](_0x38c964);_0x36c9cd<_0x16f20e[_0x28195c(0x225)];_0x36c9cd++)_0x3d2290[_0x28195c(0x2b8)](_0x16f20e[_0x36c9cd])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x38c964,_0x16f20e[_0x36c9cd])&&(_0x32c89e[_0x16f20e[_0x36c9cd]]=_0x38c964[_0x16f20e[_0x36c9cd]]);}return _0x32c89e;},_0x20bef5=_0x17763c[_0x50d51c(0x253)](function(_0xed9d13,_0x3c7b38){const _0x3455b2=_0x50d51c;var _0x52a335=_0xed9d13[_0x3455b2(0x21f)],_0xccedc3=_0xed9d13['id'],_0x26b133=_0xed9d13['className'],_0x31cb9a=_0xed9d13[_0x3455b2(0x3c6)],_0xc11d16=_0x424d8c(_0xed9d13,[_0x3455b2(0x21f),'id',_0x3455b2(0x222),'extend']),_0x470d8f=_0x3455b2(0x1f7)[_0x3455b2(0x2b3)](_0xccedc3,'\x20')[_0x3455b2(0x2b3)](_0x26b133||'')['trim'](),_0x13bc48=_0x17763c[_0x3455b2(0x29d)]('_'['concat'](_0x1f0bff()));return _0x13eba8(_0x52a335,''[_0x3455b2(0x2b3)](_0xccedc3),{'defIds':_0x52a335[_0x3455b2(0x3da)],'idSuffix':_0x13bc48['current']},_0x3ecba9({'ref':_0x3c7b38,'className':_0x470d8f},_0xc11d16),_0x31cb9a);});function _0x13eba8(_0x458d3b,_0x3a033a,_0x62df55,_0x46f198,_0x5c76bd){const _0x53e8d8=_0x50d51c;return _0x17763c[_0x53e8d8(0x39f)](_0x458d3b['tag'],_0x3ecba9(_0x3ecba9({'key':_0x3a033a},_0xc92bc(_0x458d3b,_0x62df55,_0x5c76bd)),_0x46f198),(_0x31e96e(_0x458d3b,_0x62df55)[_0x53e8d8(0x164)]||[])[_0x53e8d8(0x161)](function(_0x2f06eb,_0x2d2657){const _0x2ca0d0=_0x53e8d8;return _0x13eba8(_0x2f06eb,''[_0x2ca0d0(0x2b3)](_0x3a033a,'-')[_0x2ca0d0(0x2b3)](_0x458d3b[_0x2ca0d0(0x2b0)],'-')[_0x2ca0d0(0x2b3)](_0x2d2657),_0x62df55,void 0x0,_0x5c76bd);}));}function _0xc92bc(_0x4f6ec9,_0x56925f,_0x40a17a){const _0x23366f=_0x50d51c;var _0x169d79=_0x3ecba9({},_0x4f6ec9[_0x23366f(0x345)]);_0x40a17a!=null&&_0x40a17a[_0x23366f(0x2a3)]&&_0x169d79['fill']===_0x23366f(0x2a3)&&(_0x169d79[_0x23366f(0x193)]=_0x40a17a[_0x23366f(0x2a3)]),_0x4f6ec9[_0x23366f(0x2b0)]===_0x23366f(0x3d8)&&_0x169d79['id']&&(_0x169d79['id']=_0x169d79['id']+_0x56925f[_0x23366f(0x216)]),Object[_0x23366f(0x318)](_0x169d79)[_0x23366f(0x39a)](function(_0xaf09e9){const _0x4095d8=_0x23366f;var _0x2ee144=_0xaf09e9[0x0],_0x157872=_0xaf09e9[0x1];_0x2ee144==='mask'&&typeof _0x157872==_0x4095d8(0x2b9)&&(_0x169d79[_0x2ee144]=_0x157872[_0x4095d8(0x247)](/url\(#(.*)\)/,_0x4095d8(0x1c3)[_0x4095d8(0x2b3)](_0x56925f[_0x4095d8(0x216)],')')));});var _0xab2ffa=_0x56925f['defIds'];return!_0xab2ffa||_0xab2ffa[_0x23366f(0x225)]===0x0||(_0x4f6ec9[_0x23366f(0x2b0)]===_0x23366f(0x177)&&_0x169d79[_0x23366f(0x1ef)]&&(_0x169d79[_0x23366f(0x1ef)]=_0x169d79[_0x23366f(0x1ef)]+_0x56925f[_0x23366f(0x216)]),Object[_0x23366f(0x318)](_0x169d79)['forEach'](function(_0x3c8e28){const _0xf85544=_0x23366f;var _0xdddc1e=_0x3c8e28[0x0],_0x5d2262=_0x3c8e28[0x1];typeof _0x5d2262==_0xf85544(0x2b9)&&(_0x169d79[_0xdddc1e]=_0x5d2262[_0xf85544(0x247)](/url\(#(.*)\)/,_0xf85544(0x1c3)[_0xf85544(0x2b3)](_0x56925f[_0xf85544(0x216)],')')));})),_0x169d79;}function _0x31e96e(_0x139bfe,_0x121878){const _0x1f239c=_0x50d51c;var _0x3c3b4c,_0x21eed6=_0x121878[_0x1f239c(0x3da)];return!_0x21eed6||_0x21eed6[_0x1f239c(0x225)]===0x0?_0x139bfe:_0x139bfe[_0x1f239c(0x2b0)]===_0x1f239c(0x3af)&&(!((_0x3c3b4c=_0x139bfe[_0x1f239c(0x164)])===null||_0x3c3b4c===void 0x0)&&_0x3c3b4c['length'])?_0x3ecba9(_0x3ecba9({},_0x139bfe),{'children':_0x139bfe[_0x1f239c(0x164)][_0x1f239c(0x161)](function(_0x13a8b7){const _0x688326=_0x1f239c;return typeof _0x13a8b7['attrs']['id']==_0x688326(0x2b9)&&_0x21eed6&&_0x21eed6[_0x688326(0x2b4)](_0x13a8b7[_0x688326(0x345)]['id'])?_0x3ecba9(_0x3ecba9({},_0x13a8b7),{'attrs':_0x3ecba9(_0x3ecba9({},_0x13a8b7[_0x688326(0x345)]),{'id':_0x13a8b7[_0x688326(0x345)]['id']+_0x121878[_0x688326(0x216)]})}):_0x13a8b7;})}):_0x139bfe;}function _0x1f0bff(){const _0x23b5db=_0x50d51c;return Math[_0x23b5db(0x273)]()[_0x23b5db(0x323)](0x24)[_0x23b5db(0x364)](0x2,0x8);}_0x20bef5[_0x50d51c(0x1f4)]='UniverIcon';var _0x430dd6={'tag':_0x50d51c(0x25f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x50d51c(0x361),'viewBox':_0x50d51c(0x2b1),'width':_0x50d51c(0x2d4),'height':_0x50d51c(0x2d4)},'children':[{'tag':'g','attrs':{'clipPath':_0x50d51c(0x1f1)},'children':[{'tag':_0x50d51c(0x175),'attrs':{'stroke':_0x50d51c(0x3c0),'d':_0x50d51c(0x22b),'strokeLinecap':_0x50d51c(0x38f),'strokeLinejoin':_0x50d51c(0x38f),'strokeWidth':1.2}}]},{'tag':_0x50d51c(0x3af),'attrs':{},'children':[{'tag':_0x50d51c(0x30f),'attrs':{'id':_0x50d51c(0x3cc)},'children':[{'tag':_0x50d51c(0x175),'attrs':{'fill':_0x50d51c(0x38a),'d':_0x50d51c(0x275)}}]}]}],'defIds':[_0x50d51c(0x3cc)]},_0x4d57ad=_0x17763c[_0x50d51c(0x253)](function(_0x5127d2,_0x2e9029){const _0x481949=_0x50d51c;return _0x17763c[_0x481949(0x39f)](_0x20bef5,Object[_0x481949(0x1eb)]({},_0x5127d2,{'id':_0x481949(0x375),'ref':_0x2e9029,'icon':_0x430dd6}));});_0x4d57ad[_0x50d51c(0x1f4)]=_0x50d51c(0x391);var _0x4445b5={'tag':_0x50d51c(0x25f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x50d51c(0x1d0),'width':_0x50d51c(0x2d4),'height':_0x50d51c(0x2d4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x50d51c(0x337),'strokeLinecap':_0x50d51c(0x38f),'strokeLinejoin':_0x50d51c(0x38f),'strokeWidth':1.2}}]},{'tag':_0x50d51c(0x3af),'attrs':{},'children':[{'tag':_0x50d51c(0x30f),'attrs':{'id':_0x50d51c(0x333)},'children':[{'tag':_0x50d51c(0x175),'attrs':{'fill':_0x50d51c(0x38a),'d':_0x50d51c(0x275),'transform':_0x50d51c(0x26b)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x4ca280=_0x17763c[_0x50d51c(0x253)](function(_0xb1e0b6,_0x5c3d5c){const _0x2ee17c=_0x50d51c;return _0x17763c[_0x2ee17c(0x39f)](_0x20bef5,Object['assign']({},_0xb1e0b6,{'id':_0x2ee17c(0x19f),'ref':_0x5c3d5c,'icon':_0x4445b5}));});_0x4ca280[_0x50d51c(0x1f4)]=_0x50d51c(0x322);function _0x4969a2(_0x47520e){const _0xb2abae=_0x50d51c;switch(_0x47520e){case _0x436a9d[_0xb2abae(0x377)][_0xb2abae(0x3ae)]:return _0xb2abae(0x2e7);case _0x436a9d['CollaborationStatus'][_0xb2abae(0x242)]:return'collabStatus.conflict';case _0x436a9d['CollaborationStatus'][_0xb2abae(0x2a9)]:return _0xb2abae(0x38e);case _0x436a9d[_0xb2abae(0x377)][_0xb2abae(0x2a6)]:return _0xb2abae(0x370);case _0x436a9d[_0xb2abae(0x377)]['AWAITING']:case _0x436a9d[_0xb2abae(0x377)][_0xb2abae(0x3cd)]:return _0xb2abae(0x3a6);case _0x436a9d[_0xb2abae(0x377)][_0xb2abae(0x2c1)]:case _0x436a9d[_0xb2abae(0x377)][_0xb2abae(0x300)]:return _0xb2abae(0x1e8);}}function _0x104452(_0x14adbe){const _0x4984a8=_0x50d51c,{status$:_0x2a98e4}=_0x14adbe,_0x15d624=_0x4b125[_0x4984a8(0x203)](_0x2a98e4,_0x436a9d[_0x4984a8(0x377)]['NOT_COLLAB']),_0x43fcc8=_0x4b125[_0x4984a8(0x208)](_0x4d5d93[_0x4984a8(0x31b)]),_0x2c8ee5=_0x4b125[_0x4984a8(0x208)](_0x436a9d[_0x4984a8(0x2ec)]),_0x2fdb0b=_0x15d624!==_0x436a9d['CollaborationStatus']['OFFLINE'],_0x16fc08=_0x43fcc8['t'](_0x4969a2(_0x15d624)),_0x537146=_0x2fdb0b?_0x4b944a[_0x4984a8(0x287)](_0x4ca280,{}):_0x4b944a['jsx'](_0x4d57ad,{}),_0x5f0cd7=_0x17763c[_0x4984a8(0x3b4)](()=>{_0x2fdb0b||_0x2c8ee5['reconnect']();},[_0x2fdb0b,_0x2c8ee5]);function _0x3049c5(){const _0x134fe4=_0x4984a8;return _0x4b944a[_0x134fe4(0x30c)]('div',{'className':_0x134fe4(0x33b),'onClick':_0x5f0cd7,'children':[_0x4b944a['jsx']('div',{'className':_0x553977['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x2fdb0b,'univer-text-red-500':!_0x2fdb0b}),'children':_0x537146}),_0x4b944a['jsx'](_0x134fe4(0x28e),{'className':_0x134fe4(0x180),'children':_0x16fc08})]});}return _0x2fdb0b?_0x3049c5():_0x4b944a['jsx'](_0x553977[_0x4984a8(0x16b)],{'title':_0x43fcc8['t'](_0x4984a8(0x17b)),'children':_0x3049c5()});}var _0x2e57e5=Object['getOwnPropertyDescriptor'],_0x33e5f4=(_0x4f98ca,_0x113c91,_0x1e26b2,_0x530904)=>{for(var _0xb5bc09=_0x530904>0x1?void 0x0:_0x530904?_0x2e57e5(_0x113c91,_0x1e26b2):_0x113c91,_0x1ff636=_0x4f98ca['length']-0x1,_0x102aa1;_0x1ff636>=0x0;_0x1ff636--)(_0x102aa1=_0x4f98ca[_0x1ff636])&&(_0xb5bc09=_0x102aa1(_0xb5bc09)||_0xb5bc09);return _0xb5bc09;},_0x4cfdd1=(_0x4da705,_0x132725)=>(_0x131dd5,_0x3c6e33)=>_0x132725(_0x131dd5,_0x3c6e33,_0x4da705);_0x37a429['DesktopCollaborationStatusDisplayController']=class extends _0x4d5d93['Disposable']{constructor(_0x5973f8,_0x371ad0,_0x20442a,_0x5bc964){const _0x45dc63=_0x50d51c;super(),_0x5e82ed(this,_0x45dc63(0x231),new _0x2ea89f[(_0x45dc63(0x17a))](_0x436a9d[_0x45dc63(0x377)][_0x45dc63(0x2a6)])),(this['_univerInstanceService']=_0x5973f8,this[_0x45dc63(0x246)]=_0x371ad0,this[_0x45dc63(0x34e)]=_0x20442a,this[_0x45dc63(0x1bc)]=_0x5bc964,this[_0x45dc63(0x27f)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x2c6e90=_0x50d51c;this['disposeWithMe'](this['_univerInstanceService']['focused$'][_0x2c6e90(0x280)](_0x2ea89f[_0x2c6e90(0x3e9)](()=>{const _0xfc7cb=_0x2c6e90,_0x103bda=this[_0xfc7cb(0x305)][_0xfc7cb(0x1a6)]();return _0x103bda?this[_0xfc7cb(0x34e)][_0xfc7cb(0x24b)](_0x103bda[_0xfc7cb(0x2f3)]()):_0x2ea89f['of'](null);}),_0x2ea89f['switchMap'](_0x13938a=>_0x13938a?_0x13938a[_0x2c6e90(0x24d)]:_0x2ea89f['of'](_0x436a9d[_0x2c6e90(0x377)][_0x2c6e90(0x2a6)])))['subscribe'](_0x12d6bd=>{const _0x19bc65=_0x2c6e90;this[_0x19bc65(0x231)][_0x19bc65(0x369)](_0x12d6bd);}));}['_initStatusComponent'](){const _0x2e4c89=_0x50d51c;this[_0x2e4c89(0x239)](this['_uiPartsService'][_0x2e4c89(0x3d4)](_0x4b125['BuiltInUIPart'][_0x2e4c89(0x363)],()=>_0x4b125[_0x2e4c89(0x2af)](_0x25402e({'status$':this[_0x2e4c89(0x231)][_0x2e4c89(0x332)]()}),this['_injector'])));}},_0x37a429[_0x50d51c(0x29b)]=_0x33e5f4([_0x4cfdd1(0x0,_0x4d5d93[_0x50d51c(0x3f4)]),_0x4cfdd1(0x1,_0x4d5d93[_0x50d51c(0x383)](_0x4d5d93[_0x50d51c(0x196)])),_0x4cfdd1(0x2,_0x4d5d93['Inject'](_0x436a9d['CollaborationController'])),_0x4cfdd1(0x3,_0x4b125['IUIPartsService'])],_0x37a429['DesktopCollaborationStatusDisplayController']);function _0x25402e(_0x44e0ca){const {status$:_0x4321a9}=_0x44e0ca;return function(){return _0x4b944a['jsx'](_0x104452,{'status$':_0x4321a9});};}var _0x153c0f=Object['getOwnPropertyDescriptor'],_0x55fc57=(_0x5b9d60,_0xc0dc63,_0x5c4bca,_0x4d4bbd)=>{for(var _0x1ec8da=_0x4d4bbd>0x1?void 0x0:_0x4d4bbd?_0x153c0f(_0xc0dc63,_0x5c4bca):_0xc0dc63,_0xe7a66d=_0x5b9d60['length']-0x1,_0x1b9dca;_0xe7a66d>=0x0;_0xe7a66d--)(_0x1b9dca=_0x5b9d60[_0xe7a66d])&&(_0x1ec8da=_0x1b9dca(_0x1ec8da)||_0x1ec8da);return _0x1ec8da;},_0x5deb40=(_0x582bfa,_0x1fa9a1)=>(_0x50c8d6,_0xd0c990)=>_0x1fa9a1(_0x50c8d6,_0xd0c990,_0x582bfa);let _0x76523c=class extends _0x4d5d93['Disposable']{constructor(_0x5cc929,_0x1180a9,_0x48ee55,_0x590ad5,_0x112115,_0x3fc1e6){const _0x38526a=_0x50d51c;super(),this[_0x38526a(0x3d5)]=_0x5cc929,this[_0x38526a(0x23d)]=_0x1180a9,this['_collaborationUIEventService']=_0x48ee55,this[_0x38526a(0x2a0)]=_0x590ad5,this[_0x38526a(0x29f)]=_0x112115,this[_0x38526a(0x212)]=_0x3fc1e6,this[_0x38526a(0x1e2)](),this[_0x38526a(0x2e3)]();}[_0x50d51c(0x1e2)](){const _0x426172=_0x50d51c;this['disposeWithMe'](this[_0x426172(0x3d5)][_0x426172(0x2f4)](()=>{const _0x134882=_0x426172;if(this[_0x134882(0x23d)]['saveTaskMap'][_0x134882(0x3d2)])return this[_0x134882(0x212)]['t'](_0x134882(0x3e8));}));}[_0x50d51c(0x2e3)](){const _0x4803de=_0x50d51c;this[_0x4803de(0x239)](this['_collaborationUIEventService'][_0x4803de(0x267)][_0x4803de(0x344)](_0x3d44c2=>{const _0x3765d1=_0x4803de;_0x3d44c2['id']===_0x436a9d[_0x3765d1(0x24c)]['OTHER_CLIENT_EDITING']&&this[_0x3765d1(0x2a0)]['show']({'type':_0x553977[_0x3765d1(0x1f9)][_0x3765d1(0x2fb)],'content':this[_0x3765d1(0x212)]['t'](_0x3765d1(0x397))}),_0x3d44c2['id']===_0x436a9d['CollaborationUIEventId'][_0x3765d1(0x326)]&&this[_0x3765d1(0x2a0)][_0x3765d1(0x218)]({'type':_0x553977['MessageType'][_0x3765d1(0x2fb)],'content':this[_0x3765d1(0x212)]['t'](_0x3765d1(0x2e5))}),_0x3d44c2['id']===_0x436a9d[_0x3765d1(0x24c)]['PERMISSION_DENIED']&&this['_notificationService'][_0x3765d1(0x218)]({'title':this['_localeService']['t'](_0x3765d1(0x2c2)),'content':this[_0x3765d1(0x212)]['t'](_0x3765d1(0x1fe)),'type':_0x3765d1(0x1f2),'duration':0x0}),_0x3d44c2['id']===_0x436a9d[_0x3765d1(0x24c)][_0x3765d1(0x242)]&&this['_messageService']['show']({'type':_0x553977[_0x3765d1(0x1f9)][_0x3765d1(0x2cd)],'content':this[_0x3765d1(0x212)]['t'](_0x3765d1(0x2e5))+'('+_0x3d44c2[_0x3765d1(0x182)]+')'}),_0x3d44c2['id']===_0x436a9d[_0x3765d1(0x24c)]['JOIN_ROOM_FAILED']&&this[_0x3765d1(0x2a0)][_0x3765d1(0x218)]({'type':_0x553977[_0x3765d1(0x1f9)][_0x3765d1(0x2fb)],'content':this[_0x3765d1(0x212)]['t'](_0x3d44c2[_0x3765d1(0x182)]||'')}),_0x3d44c2['id']===_0x436a9d[_0x3765d1(0x24c)][_0x3765d1(0x214)]&&this[_0x3765d1(0x2a0)][_0x3765d1(0x218)]({'type':_0x553977[_0x3765d1(0x1f9)]['Warning'],'content':this[_0x3765d1(0x212)]['t'](_0x3765d1(0x3e6))}),_0x3d44c2['id']===_0x436a9d[_0x3765d1(0x24c)]['SOCKET_FAILED']&&this['_messageService'][_0x3765d1(0x218)]({'type':_0x553977[_0x3765d1(0x1f9)][_0x3765d1(0x2cd)],'content':this[_0x3765d1(0x212)]['t']('session.connection-failed')}),_0x3d44c2['id']===_0x436a9d[_0x3765d1(0x24c)][_0x3765d1(0x320)]&&this[_0x3765d1(0x2a0)][_0x3765d1(0x218)]({'type':_0x553977[_0x3765d1(0x1f9)][_0x3765d1(0x2cd)],'content':this[_0x3765d1(0x212)]['t'](_0x3765d1(0x26f))});}));}};_0x76523c=_0x55fc57([_0x5deb40(0x0,_0x4b125['IBeforeCloseService']),_0x5deb40(0x1,_0x436a9d['ILocalCacheService']),_0x5deb40(0x2,_0x4d5d93[_0x50d51c(0x383)](_0x436a9d[_0x50d51c(0x2f9)])),_0x5deb40(0x3,_0x4b125[_0x50d51c(0x37a)]),_0x5deb40(0x4,_0x4b125[_0x50d51c(0x1b6)]),_0x5deb40(0x5,_0x4d5d93[_0x50d51c(0x383)](_0x4d5d93[_0x50d51c(0x31b)]))],_0x76523c);const _0x38556f=_0x50d51c(0x351),_0x3b5cca={},_0x373d67=_0x4d5d93[_0x50d51c(0x227)]('uni.network.url-service');var _0x5f5ca6=Object[_0x50d51c(0x179)],_0x1a7bd4=(_0x1bcb73,_0x5caf06,_0x11f6f6,_0x2e0eaf)=>{const _0x37eb29=_0x50d51c;for(var _0x558698=_0x2e0eaf>0x1?void 0x0:_0x2e0eaf?_0x5f5ca6(_0x5caf06,_0x11f6f6):_0x5caf06,_0x13d64d=_0x1bcb73[_0x37eb29(0x225)]-0x1,_0x1530c1;_0x13d64d>=0x0;_0x13d64d--)(_0x1530c1=_0x1bcb73[_0x13d64d])&&(_0x558698=_0x1530c1(_0x558698)||_0x558698);return _0x558698;},_0x2f52ae=(_0x4d738b,_0x22ed84)=>(_0x10c9d8,_0x18e71d)=>_0x22ed84(_0x10c9d8,_0x18e71d,_0x4d738b);_0x37a429['CollaborationDataLoaderController']=class extends _0x4d5d93[_0x50d51c(0x2dd)]{constructor(_0x418b54,_0x28a639,_0x49ac37,_0x4fa0af,_0x56307c){const _0x28a1d9=_0x50d51c;super(),this[_0x28a1d9(0x331)]=_0x418b54,this[_0x28a1d9(0x3ba)]=_0x28a639,this[_0x28a1d9(0x254)]=_0x49ac37,this[_0x28a1d9(0x1dd)]=_0x4fa0af,_0x56307c?_0x56307c==null||_0x56307c[_0x28a1d9(0x32c)]()[_0x28a1d9(0x1c6)](()=>this['_init']()):(this['_logService'][_0x28a1d9(0x198)]('[CollaborationDataLoaderController]',_0x28a1d9(0x2bd)),this[_0x28a1d9(0x306)]());}async[_0x50d51c(0x306)](){const _0x101116=_0x50d51c,_0xb4000e=this[_0x101116(0x331)]['getParam']('unit'),_0x25be9e=this[_0x101116(0x331)][_0x101116(0x36e)](_0x101116(0x25e)),_0x2eb4c5=this['_urlService'][_0x101116(0x36e)]('subunit');if(!_0xb4000e||!_0x25be9e){this['_logService'][_0x101116(0x198)](_0x101116(0x17f),_0x101116(0x39b));return;}const _0x16c8b2=await this['_dataLoaderService'][_0x101116(0x172)](_0xb4000e,Number(_0x25be9e),_0x2eb4c5);_0x16c8b2&&_0x16c8b2 instanceof _0x4d5d93[_0x101116(0x30b)]&&this[_0x101116(0x3bf)](_0x16c8b2);}async[_0x50d51c(0x3bf)](_0x44decf){const _0x4a3946=_0x50d51c;await this[_0x4a3946(0x2fd)](_0x44decf),_0x44decf[_0x4a3946(0x362)]['pipe'](_0x2ea89f['takeUntil'](this[_0x4a3946(0x206)]))[_0x4a3946(0x344)](_0x1c242f=>{const _0xaff212=_0x4a3946;_0x1c242f&&this[_0xaff212(0x1ca)](_0x1c242f);}),this[_0x4a3946(0x331)][_0x4a3946(0x1a7)][_0x4a3946(0x280)](_0x2ea89f[_0x4a3946(0x308)](this[_0x4a3946(0x206)]))[_0x4a3946(0x344)](()=>this[_0x4a3946(0x2fd)](_0x44decf));}[_0x50d51c(0x1ca)](_0x330cd8,_0x5ed7e5=!0x1){const _0x45f323=_0x50d51c,_0x4457c6=this[_0x45f323(0x331)][_0x45f323(0x36e)](_0x45f323(0x248));_0x330cd8[_0x45f323(0x1b9)]()!==_0x4457c6&&this[_0x45f323(0x331)]['setParam'](_0x45f323(0x248),_0x330cd8[_0x45f323(0x1b9)](),_0x5ed7e5);}async[_0x50d51c(0x2fd)](_0x6baa2f){const _0x422bfd=_0x50d51c;var _0x282f48;const _0x245585=this[_0x422bfd(0x331)][_0x422bfd(0x36e)](_0x422bfd(0x248));if(!_0x245585||!_0x6baa2f['getSheetBySheetId'](_0x245585)){const _0x458cb4=_0x6baa2f[_0x422bfd(0x365)]()[0x0],_0x4bfa6d=_0x6baa2f[_0x422bfd(0x188)](_0x458cb4);if(!_0x4bfa6d)return;this[_0x422bfd(0x1ca)](_0x4bfa6d,!0x0),await this[_0x422bfd(0x254)][_0x422bfd(0x3b1)](_0x4cf27b['SetWorksheetActivateCommand']['id'],{'unitId':_0x6baa2f[_0x422bfd(0x2f3)](),'subUnitId':_0x458cb4});return;}((_0x282f48=_0x6baa2f[_0x422bfd(0x244)]())==null?void 0x0:_0x282f48[_0x422bfd(0x1b9)]())!==_0x245585&&await this[_0x422bfd(0x254)][_0x422bfd(0x3b1)](_0x4cf27b[_0x422bfd(0x2e1)]['id'],{'unitId':_0x6baa2f[_0x422bfd(0x2f3)](),'subUnitId':_0x245585});}},_0x37a429['CollaborationDataLoaderController']=_0x1a7bd4([_0x2f52ae(0x0,_0x373d67),_0x2f52ae(0x1,_0x4d5d93[_0x50d51c(0x178)]),_0x2f52ae(0x2,_0x4d5d93['ICommandService']),_0x2f52ae(0x3,_0x4d5d93[_0x50d51c(0x383)](_0x436a9d['DataLoaderService'])),_0x2f52ae(0x4,_0x4d5d93[_0x50d51c(0x1e0)](_0x30d0d4['IRemoteInstanceService']))],_0x37a429[_0x50d51c(0x281)]);var _0x33c889=Object[_0x50d51c(0x179)],_0x2bde24=(_0x52f258,_0x4cca75,_0x38cd20,_0x2dcaa0)=>{const _0x2e9c75=_0x50d51c;for(var _0x224c44=_0x2dcaa0>0x1?void 0x0:_0x2dcaa0?_0x33c889(_0x4cca75,_0x38cd20):_0x4cca75,_0x1b7ed5=_0x52f258[_0x2e9c75(0x225)]-0x1,_0x39a55d;_0x1b7ed5>=0x0;_0x1b7ed5--)(_0x39a55d=_0x52f258[_0x1b7ed5])&&(_0x224c44=_0x39a55d(_0x224c44)||_0x224c44);return _0x224c44;},_0x56522e=(_0x41b4c1,_0x11bb64)=>(_0x4d1fb2,_0x13e9b6)=>_0x11bb64(_0x4d1fb2,_0x13e9b6,_0x41b4c1);let _0x45ee50=class{constructor(_0xc386ea,_0x47a0c4,_0x4c7160){const _0x4ecdd1=_0x50d51c;this[_0x4ecdd1(0x246)]=_0xc386ea,this['_transformService']=_0x47a0c4,this[_0x4ecdd1(0x3b2)]=_0x4c7160;}[_0x50d51c(0x3be)](_0x58c8ce){const _0x18de39=_0x50d51c;this[_0x18de39(0x2db)](_0x58c8ce),this[_0x18de39(0x192)](_0x58c8ce);}[_0x50d51c(0x289)](_0x196e51){const _0x13ae95=_0x50d51c,{unitID:_0x3e8774}=_0x196e51,_0x554929=this[_0x13ae95(0x3b2)]['getRenderById'](_0x3e8774)[_0x13ae95(0x389)](_0x3f955c[_0x13ae95(0x3a7)]),{redoCache:_0x296df3}=_0x554929[_0x13ae95(0x36c)]();if(_0x296df3[_0x13ae95(0x225)]===0x0)return _0x196e51;let _0x52a090=_0x4d5d93[_0x13ae95(0x230)][_0x13ae95(0x1cb)](_0x196e51['mutations'][0x0]);for(let _0x52d9b6=0x0;_0x52d9b6<_0x296df3[_0x13ae95(0x225)];_0x52d9b6++){const _0x285589={'id':_0x13ae95(0x2f2),'params':{..._0x296df3[_0x52d9b6]}},_0x620d89=this[_0x13ae95(0x251)][_0x13ae95(0x284)](_0x52a090,_0x285589,!0x1);if(_0x2d957c['isTransformMutationFailure'](_0x620d89))throw _0x620d89[_0x13ae95(0x1f2)];_0x52a090=_0x620d89[_0x13ae95(0x340)];}return{..._0x4d5d93[_0x13ae95(0x230)]['deepClone'](_0x196e51),'mutations':[_0x52a090]};}[_0x50d51c(0x2db)](_0x3a2701){const _0x2c524b=_0x50d51c,{unitID:_0x45a378}=_0x3a2701,_0x288709=this['_renderManagerService'][_0x2c524b(0x2eb)](_0x45a378)[_0x2c524b(0x389)](_0x3f955c[_0x2c524b(0x3a7)]),{undoCache:_0x2b550c,redoCache:_0x4fe778}=_0x288709[_0x2c524b(0x36c)]();if(_0x2b550c[_0x2c524b(0x225)]===0x0||_0x4fe778[_0x2c524b(0x225)]===0x0)return;const _0x265705=[],_0x2a14b6=[];let _0x81e9a3=_0x4d5d93[_0x2c524b(0x230)][_0x2c524b(0x1cb)](_0x3a2701['mutations'][0x0]),_0xef02e0=_0x4d5d93[_0x2c524b(0x230)][_0x2c524b(0x1cb)](_0x3a2701['mutations'][0x0]);for(let _0x41365c=_0x2b550c[_0x2c524b(0x225)]-0x1;_0x41365c>=0x0;_0x41365c--){const _0x40eeb5={'id':'doc.mutation.rich-text-editing','params':{..._0x2b550c[_0x41365c]}},_0x50c9b9={'id':_0x2c524b(0x2f2),'params':{..._0x4fe778[_0x41365c]}},_0x584c73=this[_0x2c524b(0x251)]['transformMutation'](_0x81e9a3,_0x40eeb5,!0x1),_0x2cf13e=this['_transformService'][_0x2c524b(0x284)](_0xef02e0,_0x50c9b9,!0x1);if(_0x2d957c[_0x2c524b(0x16a)](_0x584c73))throw _0x584c73[_0x2c524b(0x1f2)];if(_0x2d957c[_0x2c524b(0x16a)](_0x2cf13e))throw _0x2cf13e['error'];_0x265705[_0x2c524b(0x20f)](_0x584c73[_0x2c524b(0x20a)][_0x2c524b(0x245)]),_0x2a14b6[_0x2c524b(0x20f)](_0x2cf13e['m2Prime'][_0x2c524b(0x245)]),_0x81e9a3=_0x584c73[_0x2c524b(0x340)],_0xef02e0=_0x2cf13e['m1Prime'];}_0x288709[_0x2c524b(0x367)]({'undoCache':_0x265705,'redoCache':_0x2a14b6});}['_transformPreviousActiveRange'](_0x5628b8){const _0x36ce70=_0x50d51c,{unitID:_0x45b7b7}=_0x5628b8,_0x1248e5=this[_0x36ce70(0x3b2)][_0x36ce70(0x2eb)](_0x45b7b7)[_0x36ce70(0x389)](_0x3f955c['DocIMEInputManagerService']),_0x50aae8=_0x1248e5[_0x36ce70(0x398)]();if(_0x50aae8==null)return;const _0x320cab=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5628b8[_0x36ce70(0x3f0)],'actions':null,'textRanges':[_0x50aae8]}}],_0x40d84b=this[_0x36ce70(0x251)][_0x36ce70(0x1c5)](_0x5628b8,_0x320cab);if(!_0x2d957c[_0x36ce70(0x236)](_0x40d84b))throw _0x40d84b[_0x36ce70(0x1f2)];const _0x2634ae=_0x40d84b['m2Prime'][0x0][_0x36ce70(0x245)][_0x36ce70(0x3c5)];Array[_0x36ce70(0x28f)](_0x2634ae)&&_0x2634ae['length']&&_0x1248e5['setActiveRange'](_0x2634ae[0x0]);}};_0x45ee50=_0x2bde24([_0x56522e(0x0,_0x4d5d93[_0x50d51c(0x383)](_0x4d5d93[_0x50d51c(0x196)])),_0x56522e(0x1,_0x2d957c[_0x50d51c(0x39c)]),_0x56522e(0x2,_0x27e953['IRenderManagerService'])],_0x45ee50);var _0x201174=Object[_0x50d51c(0x179)],_0x3cf0df=(_0x6ad4de,_0x5de760,_0x3080fd,_0x2a24d7)=>{const _0x2da68e=_0x50d51c;for(var _0x3fbc7d=_0x2a24d7>0x1?void 0x0:_0x2a24d7?_0x201174(_0x5de760,_0x3080fd):_0x5de760,_0x11ed9c=_0x6ad4de[_0x2da68e(0x225)]-0x1,_0xc115e1;_0x11ed9c>=0x0;_0x11ed9c--)(_0xc115e1=_0x6ad4de[_0x11ed9c])&&(_0x3fbc7d=_0xc115e1(_0x3fbc7d)||_0x3fbc7d);return _0x3fbc7d;},_0x519c73=(_0x2d4275,_0x57a980)=>(_0x3fd805,_0x31ab5c)=>_0x57a980(_0x3fd805,_0x31ab5c,_0x2d4275);let _0x5d0e0a=class{constructor(_0x2f7f14,_0x270aec,_0x2de82e){const _0x554e45=_0x50d51c;this[_0x554e45(0x246)]=_0x2f7f14,this['_transformService']=_0x270aec,this[_0x554e45(0x2c5)]=_0x2de82e;}[_0x50d51c(0x23b)](_0x178cbc){const _0x4a379f=_0x50d51c;this[_0x4a379f(0x3b9)](_0x178cbc);}['transformRemoteChangeset'](_0x1f9c1d){const _0x585bae=_0x50d51c,{unitID:_0x4c8757}=_0x1f9c1d,{collaboration:_0xb0f84b}=this['_docStateChangeManagerService'][_0x585bae(0x294)](_0x4c8757);if(_0xb0f84b['length']===0x0)return _0x1f9c1d;let _0xc3572d=_0x4d5d93[_0x585bae(0x230)][_0x585bae(0x1cb)](_0x1f9c1d['mutations'][0x0]);for(let _0x2b8b4b=0x0;_0x2b8b4b<_0xb0f84b['length'];_0x2b8b4b++){const _0x17a81a={'id':_0x585bae(0x2f2),'params':{'unitId':_0xb0f84b[_0x2b8b4b][_0x585bae(0x1fa)],..._0xb0f84b[_0x2b8b4b][_0x585bae(0x343)]}},_0x4a3d05=this[_0x585bae(0x251)][_0x585bae(0x284)](_0xc3572d,_0x17a81a,!0x1);if(_0x2d957c[_0x585bae(0x16a)](_0x4a3d05))throw _0x4a3d05[_0x585bae(0x1f2)];_0xc3572d=_0x4a3d05[_0x585bae(0x340)];}return{..._0x4d5d93[_0x585bae(0x230)][_0x585bae(0x1cb)](_0x1f9c1d),'mutations':[_0xc3572d]};}[_0x50d51c(0x3b9)](_0x2fd0ea){const _0xa03319=_0x50d51c,{unitID:_0x3157ee}=_0x2fd0ea,{history:_0x1655b8,collaboration:_0x5e57fa}=this[_0xa03319(0x2c5)][_0xa03319(0x294)](_0x3157ee);if(_0x1655b8[_0xa03319(0x225)]===0x0&&_0x5e57fa[_0xa03319(0x225)]===0x0)return;const _0xadf91a=[],_0x337f07=[];let _0x4f0a33=_0x4d5d93[_0xa03319(0x230)]['deepClone'](_0x2fd0ea[_0xa03319(0x2c8)][0x0]),_0x126f82=_0x4d5d93[_0xa03319(0x230)][_0xa03319(0x1cb)](_0x2fd0ea[_0xa03319(0x2c8)][0x0]);for(let _0x926a5e=_0x1655b8['length']-0x1;_0x926a5e>=0x0;_0x926a5e--){const _0xe0c46e={'id':_0xa03319(0x2f2),'params':{'unitId':_0x1655b8[_0x926a5e][_0xa03319(0x1fa)],..._0x1655b8[_0x926a5e][_0xa03319(0x3f1)]}},_0x3b6690={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1655b8[_0x926a5e]['unitId'],..._0x1655b8[_0x926a5e][_0xa03319(0x343)]}},_0x24cbef=this['_transformService'][_0xa03319(0x284)](_0x4f0a33,_0xe0c46e,!0x1),_0x2a8c08=this['_transformService']['transformMutation'](_0x126f82,_0x3b6690,!0x1);if(_0x2d957c[_0xa03319(0x16a)](_0x24cbef))throw _0x24cbef[_0xa03319(0x1f2)];if(_0x2d957c[_0xa03319(0x16a)](_0x2a8c08))throw _0x2a8c08[_0xa03319(0x1f2)];_0xadf91a[_0xa03319(0x20f)]({..._0x1655b8[_0x926a5e],'undoState':_0x24cbef[_0xa03319(0x20a)][_0xa03319(0x245)],'redoState':_0x2a8c08[_0xa03319(0x20a)][_0xa03319(0x245)]}),_0x4f0a33=_0x24cbef[_0xa03319(0x340)],_0x126f82=_0x2a8c08[_0xa03319(0x340)];}_0x4f0a33=_0x4d5d93['Tools'][_0xa03319(0x1cb)](_0x2fd0ea[_0xa03319(0x2c8)][0x0]),_0x126f82=_0x4d5d93['Tools'][_0xa03319(0x1cb)](_0x2fd0ea['mutations'][0x0]);for(let _0x6f99d=_0x5e57fa[_0xa03319(0x225)]-0x1;_0x6f99d>=0x0;_0x6f99d--){const _0x18be02={'id':_0xa03319(0x2f2),'params':{'unitId':_0x5e57fa[_0x6f99d]['unitId'],..._0x5e57fa[_0x6f99d][_0xa03319(0x3f1)]}},_0x17d02f={'id':_0xa03319(0x2f2),'params':{'unitId':_0x5e57fa[_0x6f99d]['unitId'],..._0x5e57fa[_0x6f99d][_0xa03319(0x343)]}},_0x3bf5d9=this[_0xa03319(0x251)]['transformMutation'](_0x4f0a33,_0x18be02,!0x1),_0x424087=this[_0xa03319(0x251)]['transformMutation'](_0x126f82,_0x17d02f,!0x1);if(_0x2d957c[_0xa03319(0x16a)](_0x3bf5d9))throw _0x3bf5d9['error'];if(_0x2d957c[_0xa03319(0x16a)](_0x424087))throw _0x424087[_0xa03319(0x1f2)];_0x337f07[_0xa03319(0x20f)]({..._0x5e57fa[_0x6f99d],'undoState':_0x3bf5d9['m2Prime'][_0xa03319(0x245)],'redoState':_0x424087[_0xa03319(0x20a)][_0xa03319(0x245)]}),_0x4f0a33=_0x3bf5d9['m1Prime'],_0x126f82=_0x424087[_0xa03319(0x340)];}this['_docStateChangeManagerService'][_0xa03319(0x1aa)](_0x3157ee,{'history':_0xadf91a,'collaboration':_0x337f07});}};_0x5d0e0a=_0x3cf0df([_0x519c73(0x0,_0x4d5d93[_0x50d51c(0x383)](_0x4d5d93[_0x50d51c(0x196)])),_0x519c73(0x1,_0x2d957c['ITransformService']),_0x519c73(0x2,_0x4d5d93[_0x50d51c(0x383)](_0x3f955c[_0x50d51c(0x266)]))],_0x5d0e0a);var _0x10d609=Object[_0x50d51c(0x179)],_0x396a43=(_0x5c31f3,_0x5d179a,_0x3e92c1,_0x2e148d)=>{const _0x48e8e3=_0x50d51c;for(var _0x483752=_0x2e148d>0x1?void 0x0:_0x2e148d?_0x10d609(_0x5d179a,_0x3e92c1):_0x5d179a,_0x456226=_0x5c31f3[_0x48e8e3(0x225)]-0x1,_0x70653f;_0x456226>=0x0;_0x456226--)(_0x70653f=_0x5c31f3[_0x456226])&&(_0x483752=_0x70653f(_0x483752)||_0x483752);return _0x483752;},_0x7ef3fc=(_0x30ec1d,_0x368d16)=>(_0x1e077a,_0x300ea7)=>_0x368d16(_0x1e077a,_0x300ea7,_0x30ec1d);let _0x2f031e=class{constructor(_0x5e5c25,_0x471281){const _0x5c1ed3=_0x50d51c;this['_injector']=_0x5e5c25,this[_0x5c1ed3(0x251)]=_0x471281;}[_0x50d51c(0x1db)](_0x3763b7){const _0x2693c7=_0x50d51c;var _0xe258d;const _0x16eda6=this[_0x2693c7(0x246)]['get'](_0x1781a2[_0x2693c7(0x303)]),_0x5efaa0=(_0xe258d=_0x16eda6[_0x2693c7(0x17c)]())!=null?_0xe258d:[];if(_0x5efaa0[_0x2693c7(0x225)]===0x0)return;const _0x47a616=_0x3763b7['unitID'],_0x4dc814=[{'id':_0x2693c7(0x2f2),'params':{'unitId':_0x47a616,'actions':null,'textRanges':_0x5efaa0}}],_0x434716=this[_0x2693c7(0x251)][_0x2693c7(0x1c5)](_0x3763b7,_0x4dc814);if(!_0x2d957c['isTransformMutationsWithChangesetSuccess'](_0x434716))throw _0x434716['error'];const _0x33222d=_0x434716[_0x2693c7(0x20a)][0x0][_0x2693c7(0x245)][_0x2693c7(0x3c5)];Array[_0x2693c7(0x28f)](_0x33222d)&&_0x33222d[_0x2693c7(0x225)]&&_0x16eda6[_0x2693c7(0x2ef)](_0x33222d,{'unitId':_0x47a616,'subUnitId':_0x47a616},!0x1);}};_0x2f031e=_0x396a43([_0x7ef3fc(0x0,_0x4d5d93[_0x50d51c(0x383)](_0x4d5d93['Injector'])),_0x7ef3fc(0x1,_0x2d957c[_0x50d51c(0x39c)])],_0x2f031e);var _0x4d6112=Object['getOwnPropertyDescriptor'],_0x211da6=(_0x16d5ab,_0x152831,_0x1336fb,_0x18b4b9)=>{const _0x1181cc=_0x50d51c;for(var _0x265199=_0x18b4b9>0x1?void 0x0:_0x18b4b9?_0x4d6112(_0x152831,_0x1336fb):_0x152831,_0x206265=_0x16d5ab[_0x1181cc(0x225)]-0x1,_0x3c49;_0x206265>=0x0;_0x206265--)(_0x3c49=_0x16d5ab[_0x206265])&&(_0x265199=_0x3c49(_0x265199)||_0x265199);return _0x265199;},_0x5bf2b7=(_0x5bddc4,_0x2566da)=>(_0x17347d,_0x431b36)=>_0x2566da(_0x17347d,_0x431b36,_0x5bddc4);let _0x2b502e=class extends _0x4d5d93['Disposable']{constructor(_0x4a966c,_0x43690c,_0x5eb14e,_0x4d7dc0,_0x3fecb5,_0x3b0cfe,_0x4520fb,_0x585fb9){const _0x4a3096=_0x50d51c;super(),_0x5e82ed(this,_0x4a3096(0x231),new _0x2ea89f[(_0x4a3096(0x17a))](_0x436a9d[_0x4a3096(0x377)][_0x4a3096(0x2a6)])),(this[_0x4a3096(0x2c5)]=_0x4a966c,this[_0x4a3096(0x34e)]=_0x43690c,this['_docTransformIMECacheService']=_0x5eb14e,this[_0x4a3096(0x1d5)]=_0x4d7dc0,this[_0x4a3096(0x263)]=_0x3fecb5,this[_0x4a3096(0x27d)]=_0x3b0cfe,this[_0x4a3096(0x2a0)]=_0x4520fb,this[_0x4a3096(0x212)]=_0x585fb9,this[_0x4a3096(0x1bd)]());}[_0x50d51c(0x1bd)](){const _0x17730a=_0x50d51c;this[_0x17730a(0x239)](this[_0x17730a(0x34e)][_0x17730a(0x3df)][_0x17730a(0x344)](_0xbc4844=>{const _0x424fc3=_0x17730a,_0x1592cd=this[_0x424fc3(0x2c5)][_0x424fc3(0x189)][_0x424fc3(0x344)](_0x5d0897=>{const _0x5b292a=_0x424fc3;if(_0x5d0897==null)return;const {unitId:_0x48a58f,redoState:_0x60262c,commandId:_0x38f42d}=_0x5d0897;if(_0x48a58f!==_0xbc4844['unitID'])return;const _0x5ee066={'id':_0x38f42d,'type':_0x4d5d93[_0x5b292a(0x240)][_0x5b292a(0x2f6)],'params':{'unitId':_0x48a58f,'actions':_0x60262c['actions'],'textRanges':null}};_0xbc4844[_0x5b292a(0x3f3)](_0x5ee066);});if(_0xbc4844[_0x424fc3(0x239)](_0x1592cd),_0xbc4844 instanceof _0x436a9d[_0x424fc3(0x290)]){const _0x5e4640={'onTransformIME':_0x2822d4=>this['_docTransformIMECacheService']['transformIMECache'](_0x2822d4),'onTransformState':_0x2002bc=>this[_0x424fc3(0x1d5)][_0x424fc3(0x23b)](_0x2002bc),'onTransformSelections':_0x15c600=>this[_0x424fc3(0x263)]['transformSelections'](_0x15c600),'onSyncEditingCollabCursor':_0x1a5c45=>this[_0x424fc3(0x27d)][_0x424fc3(0x243)](_0x1a5c45),'onTransformRemoteChangesetByIMECache':_0x325296=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x325296),'onTransformRemoteChangesetByStateCache':_0x248ff1=>this['_docTransformStateCacheService'][_0x424fc3(0x289)](_0x248ff1)};_0xbc4844['addHandlerCallback'](_0x5e4640);}}));}};_0x2b502e=_0x211da6([_0x5bf2b7(0x0,_0x4d5d93[_0x50d51c(0x383)](_0x3f955c['DocStateChangeManagerService'])),_0x5bf2b7(0x1,_0x4d5d93[_0x50d51c(0x383)](_0x436a9d[_0x50d51c(0x26d)])),_0x5bf2b7(0x2,_0x4d5d93['Inject'](_0x45ee50)),_0x5bf2b7(0x3,_0x4d5d93[_0x50d51c(0x383)](_0x5d0e0a)),_0x5bf2b7(0x4,_0x4d5d93[_0x50d51c(0x383)](_0x2f031e)),_0x5bf2b7(0x5,_0x4d5d93[_0x50d51c(0x383)](_0x3c2ecf)),_0x5bf2b7(0x6,_0x4b125['IMessageService']),_0x5bf2b7(0x7,_0x4d5d93[_0x50d51c(0x383)](_0x4d5d93['LocaleService']))],_0x2b502e);var _0x563a77=Object[_0x50d51c(0x179)],_0x3f6938=(_0x33280c,_0x5c45b8,_0x5a2ecd,_0x8bacb)=>{for(var _0x420b85=_0x8bacb>0x1?void 0x0:_0x8bacb?_0x563a77(_0x5c45b8,_0x5a2ecd):_0x5c45b8,_0x410281=_0x33280c['length']-0x1,_0x545b59;_0x410281>=0x0;_0x410281--)(_0x545b59=_0x33280c[_0x410281])&&(_0x420b85=_0x545b59(_0x420b85)||_0x420b85);return _0x420b85;},_0x52444d=(_0x3b25b4,_0x4239da)=>(_0xfca069,_0x181421)=>_0x4239da(_0xfca069,_0x181421,_0x3b25b4);let _0xd66183=class extends _0x4d5d93[_0x50d51c(0x205)]{constructor(_0x29ed91,_0x246be0,_0x3d6a98){const _0x1d4460=_0x50d51c;super(),_0x5e82ed(this,_0x1d4460(0x393),new Map()),_0x5e82ed(this,_0x1d4460(0x30a),new Map()),_0x5e82ed(this,_0x1d4460(0x1f0),!0x1),(this[_0x1d4460(0x2b2)]=_0x29ed91,this[_0x1d4460(0x353)]=_0x246be0,this[_0x1d4460(0x304)]=_0x3d6a98);}[_0x50d51c(0x1da)](){const _0x5971d7=_0x50d51c;this[_0x5971d7(0x1f0)]=!0x0;}['enableLocalCache'](){const _0x2237cd=_0x50d51c;this[_0x2237cd(0x1f0)]=!0x1;}get[_0x50d51c(0x2a5)](){const _0x31660e=_0x50d51c;return this[_0x31660e(0x30a)];}['dispose'](){const _0xabf0e0=_0x50d51c;this[_0xabf0e0(0x1ea)]()['then'](()=>super[_0xabf0e0(0x32e)]());}async[_0x50d51c(0x3f9)](_0x3e7ba4){const _0x235bcf=_0x50d51c;return this[_0x235bcf(0x1f0)]?null:this[_0x235bcf(0x353)]['getItem'](_0x436a9d[_0x235bcf(0x34a)](_0x3e7ba4));}async['saveOfflineData'](_0x17eade,_0x347cfc){const _0x61d99c=_0x50d51c;return!!this['_localStorageService'][_0x61d99c(0x29c)](_0x17eade,_0x347cfc);}['updateOfflineData'](_0x1e7b12,_0x22fa5a,_0x3a8ac5,_0xcb685){const _0x53086b=_0x50d51c,_0xc2956c=this[_0x53086b(0x304)]['getCurrentRevOfUnit'](_0x1e7b12);this[_0x53086b(0x393)][_0x53086b(0x3f5)](_0x1e7b12,{'unitID':_0x1e7b12,'type':_0x22fa5a,'awaitingChangeset':_0x3a8ac5,'mutations':_0xcb685,'rev':_0xc2956c}),this['_saveTaskMap'][_0x53086b(0x310)](_0x1e7b12)||this['_scheduleSaving'](_0x1e7b12);}[_0x50d51c(0x309)](_0x479696){const _0x3f7472=_0x50d51c,_0x536a4b=this[_0x3f7472(0x3c3)]();_0x536a4b===0x0?this['_saveCache'](_0x479696):this[_0x3f7472(0x30a)]['set'](_0x479696,setTimeout(()=>this[_0x3f7472(0x20d)](_0x479696),_0x536a4b));}[_0x50d51c(0x3c3)](){const _0x4e2503=_0x50d51c;var _0x11ebf2;return(_0x11ebf2=this[_0x4e2503(0x2b2)]['getConfig'](_0x436a9d[_0x4e2503(0x2be)]))!=null?_0x11ebf2:_0x436a9d[_0x4e2503(0x33e)];}[_0x50d51c(0x20d)](_0xf6fc2c){const _0x2b0cf7=_0x50d51c,_0x2169d2=this[_0x2b0cf7(0x30a)][_0x2b0cf7(0x2ba)](_0xf6fc2c);return _0x2169d2!==void 0x0&&window['clearTimeout'](_0x2169d2),this['_localStorageService']['setItem'](_0x436a9d[_0x2b0cf7(0x34a)](_0xf6fc2c),this[_0x2b0cf7(0x393)][_0x2b0cf7(0x2ba)](_0xf6fc2c))['then'](()=>this['_saveTaskMap'][_0x2b0cf7(0x3d7)](_0xf6fc2c));}async[_0x50d51c(0x1ea)](){const _0x236f8e=_0x50d51c,_0x5dd413=[];this[_0x236f8e(0x30a)][_0x236f8e(0x39a)]((_0x547c2d,_0x3e5df4)=>{const _0x2ae8a1=_0x236f8e;window[_0x2ae8a1(0x18b)](_0x547c2d),_0x5dd413[_0x2ae8a1(0x335)](this['_saveCache'](_0x3e5df4)[_0x2ae8a1(0x1c6)](()=>{const _0x5a719d=_0x2ae8a1;this[_0x5a719d(0x30a)]['delete'](_0x3e5df4);}));}),await Promise[_0x236f8e(0x1d7)](_0x5dd413);}};_0xd66183=_0x3f6938([_0x52444d(0x0,_0x4d5d93[_0x50d51c(0x3aa)]),_0x52444d(0x1,_0x4d5d93[_0x50d51c(0x20c)]),_0x52444d(0x2,_0x4d5d93[_0x50d51c(0x383)](_0x2d957c[_0x50d51c(0x2a1)]))],_0xd66183);class _0x1391c2 extends _0x4d5d93[_0x50d51c(0x2dd)]{constructor(){const _0x52102b=_0x50d51c;super(),_0x5e82ed(this,_0x52102b(0x1a7)),this['urlChange$']=_0x2ea89f[_0x52102b(0x1cc)](window,_0x52102b(0x2bf))[_0x52102b(0x280)](_0x2ea89f[_0x52102b(0x308)](this[_0x52102b(0x206)]),_0x2ea89f[_0x52102b(0x371)](0x1),_0x2ea89f['mapTo'](void 0x0));}[_0x50d51c(0x3f6)](_0x3fe7c8,_0x4119d7,_0x3a836d=!0x1){const _0x41596a=_0x50d51c,_0x534f40=new URL(window[_0x41596a(0x17e)]['href']);_0x534f40[_0x41596a(0x1f3)][_0x41596a(0x3f5)](_0x3fe7c8,_0x4119d7),_0x3a836d?window[_0x41596a(0x2dc)][_0x41596a(0x386)]('','',_0x534f40[_0x41596a(0x323)]()):window[_0x41596a(0x2dc)][_0x41596a(0x33f)]('','',_0x534f40[_0x41596a(0x323)]());}['removeParam'](_0x3c662c,_0x17900d=!0x1){const _0x177fdc=_0x50d51c,_0x446dbc=new URL(window['location'][_0x177fdc(0x181)]);_0x446dbc[_0x177fdc(0x1f3)][_0x177fdc(0x3d7)](_0x3c662c),_0x17900d?window['history']['replaceState']('','',_0x446dbc[_0x177fdc(0x323)]()):window[_0x177fdc(0x2dc)]['pushState']('','',_0x446dbc[_0x177fdc(0x323)]());}[_0x50d51c(0x36e)](_0x3f3351){const _0x103b28=_0x50d51c;var _0x5eb2a9;return(_0x5eb2a9=new URL(window['location'][_0x103b28(0x181)])['searchParams'][_0x103b28(0x2ba)](_0x3f3351))!=null?_0x5eb2a9:void 0x0;}}var _0x2bbfbe=Object[_0x50d51c(0x2d2)],_0x397a99=Object[_0x50d51c(0x179)],_0x24ba94=(_0x4ecdf5,_0x4a4eea,_0x38d507)=>_0x4a4eea in _0x4ecdf5?_0x2bbfbe(_0x4ecdf5,_0x4a4eea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38d507}):_0x4ecdf5[_0x4a4eea]=_0x38d507,_0x24286b=(_0x25d178,_0x3d42d4,_0x18dba3,_0x448cef)=>{const _0x2bc66b=_0x50d51c;for(var _0x4cd2b0=_0x448cef>0x1?void 0x0:_0x448cef?_0x397a99(_0x3d42d4,_0x18dba3):_0x3d42d4,_0x13aed1=_0x25d178[_0x2bc66b(0x225)]-0x1,_0x4051d5;_0x13aed1>=0x0;_0x13aed1--)(_0x4051d5=_0x25d178[_0x13aed1])&&(_0x4cd2b0=_0x4051d5(_0x4cd2b0)||_0x4cd2b0);return _0x4cd2b0;},_0x4f7375=(_0x2a15a7,_0x539960)=>(_0x95fbba,_0x3976f9)=>_0x539960(_0x95fbba,_0x3976f9,_0x2a15a7),_0x543222=(_0x2bf0e0,_0x49c1fd,_0x3e8949)=>_0x24ba94(_0x2bf0e0,_0x49c1fd+'',_0x3e8949);const _0x29cdb0=_0x50d51c(0x288);_0x37a429['UniverCollaborationClientUIPlugin']=class extends _0x4d5d93[_0x50d51c(0x27c)]{constructor(_0x4b34e2=_0x3b5cca,_0x2f84fb,_0x27e0c8,_0x2bee2e){const _0x1c87b9=_0x50d51c;super(),this['_config']=_0x4b34e2,this['_renderManagerService']=_0x2f84fb,this[_0x1c87b9(0x246)]=_0x27e0c8,this[_0x1c87b9(0x2b2)]=_0x2bee2e;const {..._0x40cb67}=_0x4d5d93['merge']({},_0x3b5cca,this[_0x1c87b9(0x283)]);this[_0x1c87b9(0x2b2)][_0x1c87b9(0x209)](_0x38556f,_0x40cb67);}[_0x50d51c(0x3ea)](){const _0x29aad3=_0x50d51c;this[_0x29aad3(0x3a0)](),this[_0x29aad3(0x3ad)]();}[_0x50d51c(0x311)](){this['_registerRenderDependencies']();}[_0x50d51c(0x3a0)](){const _0x33afdc=_0x50d51c;var _0x3addd9;const _0x5078f5=[[_0x2f0bfe],[_0x2f031e],[_0x45ee50],[_0x5d0e0a],[_0x3c2ecf],[_0x373d67,{'useClass':_0x1391c2}],[_0x83de29[_0x33afdc(0x29e)],{'useClass':_0x83de29['WebSocketService']}],[_0x436a9d[_0x33afdc(0x1d3)],{'useClass':_0xd66183}],[_0x37a429[_0x33afdc(0x29b)]],[_0x2b502e],[_0x76523c],[_0x1a123d],[_0x4f51dc],[_0x37a429['CollaborationDataLoaderController']]];_0x4d5d93[_0x33afdc(0x2c3)](this[_0x33afdc(0x246)],_0x4d5d93[_0x33afdc(0x296)](_0x5078f5,(_0x3addd9=this[_0x33afdc(0x283)])==null?void 0x0:_0x3addd9[_0x33afdc(0x16f)]));}[_0x50d51c(0x1e1)](){const _0x354a9d=_0x50d51c;this['disposeWithMe'](this[_0x354a9d(0x3b2)][_0x354a9d(0x277)](_0x4d5d93[_0x354a9d(0x2bc)]['UNIVER_DOC'],[_0x41efac])),this[_0x354a9d(0x239)](this[_0x354a9d(0x3b2)]['registerRenderModule'](_0x4d5d93['UniverInstanceType'][_0x354a9d(0x226)],[_0x526942]));}[_0x50d51c(0x3ad)](){const _0x189fd4=_0x50d51c;_0x4d5d93['touchDependencies'](this[_0x189fd4(0x246)],[[_0x1a123d],[_0x37a429[_0x189fd4(0x29b)]],[_0x2b502e],[_0x76523c],[_0x37a429[_0x189fd4(0x281)]]]);}},_0x543222(_0x37a429['UniverCollaborationClientUIPlugin'],_0x50d51c(0x204),_0x29cdb0),_0x37a429[_0x50d51c(0x237)]=_0x24286b([_0x4d5d93[_0x50d51c(0x22d)](_0x436a9d['UniverCollaborationClientPlugin']),_0x4f7375(0x1,_0x27e953[_0x50d51c(0x187)]),_0x4f7375(0x2,_0x4d5d93[_0x50d51c(0x383)](_0x4d5d93[_0x50d51c(0x196)])),_0x4f7375(0x3,_0x4d5d93[_0x50d51c(0x3aa)])],_0x37a429['UniverCollaborationClientUIPlugin']);var _0x26fbc0=Object[_0x50d51c(0x179)],_0x4db3e6=(_0x58be3d,_0x488b6d,_0x2d9a50,_0x9cd5bc)=>{const _0x52621b=_0x50d51c;for(var _0x43b26e=_0x9cd5bc>0x1?void 0x0:_0x9cd5bc?_0x26fbc0(_0x488b6d,_0x2d9a50):_0x488b6d,_0x3fd380=_0x58be3d[_0x52621b(0x225)]-0x1,_0x5516fb;_0x3fd380>=0x0;_0x3fd380--)(_0x5516fb=_0x58be3d[_0x3fd380])&&(_0x43b26e=_0x5516fb(_0x43b26e)||_0x43b26e);return _0x43b26e;},_0x2c322f=(_0x583e71,_0x560191)=>(_0x537093,_0x31c24a)=>_0x560191(_0x537093,_0x31c24a,_0x583e71);_0x37a429[_0x50d51c(0x1f5)]=class extends _0x436a9d['CollaborationSocketService']{constructor(_0x4596b7,_0x59b7af,_0x141e14,_0x1d31da,_0x4d8ab8){super(_0x4596b7,_0x59b7af,_0x141e14,_0x1d31da,_0x4d8ab8);}async['createSocket'](_0x3f4c5f){const _0x4649e8=_0x50d51c,_0x353b02=await this[_0x4649e8(0x3e2)](),_0x339c1e=this[_0x4649e8(0x2d6)](_0x3f4c5f,_0x353b02);return this[_0x4649e8(0x3d9)](_0x339c1e);}[_0x50d51c(0x2d6)](_0x3561ad,_0x26d6af){const _0x44d2d0=_0x50d51c,_0x5706c9=typeof window>'u'?new URL(_0x3561ad):new URL(_0x3561ad,window[_0x44d2d0(0x17e)][_0x44d2d0(0x35f)]);_0x5706c9['searchParams'][_0x44d2d0(0x3f5)]('sessionTicket',_0x26d6af);const _0x422000=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x44d2d0(0x17e)]['search']);return _0x422000[_0x44d2d0(0x2ba)](_0x44d2d0(0x382))&&_0x5706c9[_0x44d2d0(0x1f3)]['set']('runId',_0x422000[_0x44d2d0(0x2ba)](_0x44d2d0(0x382))),_0x5706c9[_0x44d2d0(0x323)]();}async[_0x50d51c(0x3e2)](){const _0x4eb89e=_0x50d51c;var _0x1b806d,_0x1d9f6f,_0x244530;const _0x488f68=this[_0x4eb89e(0x2b2)]['getConfig'](_0x436a9d['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x47f2e3=(_0x1b806d=_0x488f68==null?void 0x0:_0x488f68[_0x4eb89e(0x366)])!=null?_0x1b806d:_0x436a9d[_0x4eb89e(0x2e4)];return(_0x244530=(_0x1d9f6f=(await this[_0x4eb89e(0x2ea)][_0x4eb89e(0x2ba)](_0x47f2e3,{'headers':{'Content-Type':_0x4eb89e(0x1b3)}}))[_0x4eb89e(0x3fa)])==null?void 0x0:_0x1d9f6f[_0x4eb89e(0x264)])!=null?_0x244530:'';}},_0x37a429[_0x50d51c(0x1f5)]=_0x4db3e6([_0x2c322f(0x0,_0x4d5d93['Inject'](_0x4d5d93['Injector'])),_0x2c322f(0x1,_0x4d5d93['Inject'](_0x83de29[_0x50d51c(0x219)])),_0x2c322f(0x2,_0x4d5d93[_0x50d51c(0x3aa)]),_0x2c322f(0x3,_0x4d5d93['ILogService']),_0x2c322f(0x4,_0x2d957c[_0x50d51c(0x190)])],_0x37a429[_0x50d51c(0x1f5)]);const _0x2cb5ec=0x7530,_0x49f5f7=_0x50d51c(0x1b4);class _0x46117c extends _0x4d5d93[_0x50d51c(0x205)]{constructor(){const _0x42e26a=_0x50d51c;super(),_0x5e82ed(this,_0x42e26a(0x396),_0x4d5d93[_0x42e26a(0x229)]()),_0x5e82ed(this,_0x42e26a(0x272),new Set()),_0x5e82ed(this,'_unitOnClients',new Map()),_0x5e82ed(this,_0x42e26a(0x20b),null),_0x5e82ed(this,_0x42e26a(0x195),new Map()),_0x5e82ed(this,_0x42e26a(0x2ab),new Map()),this[_0x42e26a(0x306)]();}[_0x50d51c(0x32e)](){const _0x17cc4e=_0x50d51c;super[_0x17cc4e(0x32e)](),this[_0x17cc4e(0x195)][_0x17cc4e(0x39a)]((_0x523c3f,_0x3539b7)=>this[_0x17cc4e(0x33c)](_0x3539b7)),this[_0x17cc4e(0x20b)]&&window[_0x17cc4e(0x24a)](this[_0x17cc4e(0x20b)]);}[_0x50d51c(0x3b3)](_0x4f4ead){const _0x139a4e=_0x50d51c;return this[_0x139a4e(0x15e)](_0x4f4ead)[_0x139a4e(0x280)](_0x2ea89f[_0x139a4e(0x33d)]());}[_0x50d51c(0x392)](_0x149b2b){const _0x5da67d=_0x50d51c;this[_0x5da67d(0x272)][_0x5da67d(0x3d2)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x5da67d(0x2bb)](_0x149b2b),this[_0x5da67d(0x21d)]({'type':0x0,'memberID':this[_0x5da67d(0x396)],'unitIDs':[_0x149b2b],'isForwarded':!0x1});}[_0x50d51c(0x18c)](_0x4bddbd){const _0x4fd1e3=_0x50d51c;this['_selfUnitIDs'][_0x4fd1e3(0x3d7)](_0x4bddbd),this[_0x4fd1e3(0x272)][_0x4fd1e3(0x3d2)]===0x0&&this[_0x4fd1e3(0x20b)]&&window[_0x4fd1e3(0x24a)](this[_0x4fd1e3(0x20b)]);}[_0x50d51c(0x306)](){const _0x3cad77=_0x50d51c;this[_0x3cad77(0x239)](_0x4d5d93[_0x3cad77(0x394)](_0x2ea89f['fromEvent'](window,_0x3cad77(0x16e))[_0x3cad77(0x344)](_0x3cd53f=>{const _0x20f170=_0x3cad77;if(_0x3cd53f[_0x20f170(0x3ac)]!==_0x49f5f7||!_0x3cd53f['newValue'])return;const _0x4c3529=JSON[_0x20f170(0x238)](_0x3cd53f[_0x20f170(0x32b)]);this[_0x20f170(0x3cf)](_0x4c3529);}))),window['addEventListener'](_0x3cad77(0x194),()=>this[_0x3cad77(0x21d)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x3cad77(0x1b0)](this[_0x3cad77(0x272)])}));}[_0x50d51c(0x3cf)](_0x4ef502){const _0x3db1d5=_0x50d51c;switch(_0x4ef502['type']){case 0x0:this[_0x3db1d5(0x184)](_0x4ef502);break;case 0x1:this[_0x3db1d5(0x3bb)](_0x4ef502);break;case 0x2:this[_0x3db1d5(0x183)](_0x4ef502);break;}}[_0x50d51c(0x184)](_0x11015a){const _0x49e8b0=_0x50d51c,{unitIDs:_0x45b823,memberID:_0x53aa37,isForwarded:_0x5991ba}=_0x11015a;_0x45b823['forEach'](_0x460a17=>{const _0x2ec4a9=_0xa650;if(!_0x5991ba&&this[_0x2ec4a9(0x34d)][_0x2ec4a9(0x310)](_0x460a17)&&this['_ensureSubject'](_0x460a17)[_0x2ec4a9(0x369)](_0x436a9d[_0x2ec4a9(0x2ce)][_0x2ec4a9(0x28b)]),!this[_0x2ec4a9(0x34d)][_0x2ec4a9(0x310)](_0x460a17)||!this[_0x2ec4a9(0x34d)][_0x2ec4a9(0x2ba)](_0x460a17)[_0x2ec4a9(0x310)](_0x53aa37)){const _0x166748=this[_0x2ec4a9(0x34d)][_0x2ec4a9(0x2ba)](_0x460a17)||new Set();_0x166748['add'](_0x53aa37),this[_0x2ec4a9(0x34d)]['set'](_0x460a17,_0x166748),this[_0x2ec4a9(0x327)](_0x53aa37);}}),_0x5991ba||this[_0x49e8b0(0x21d)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x50d51c(0x327)](_0x21ff3b){const _0x6a62b6=_0x50d51c;this[_0x6a62b6(0x33c)](_0x21ff3b);const _0x564c11=window[_0x6a62b6(0x37f)](()=>{const _0x5a9c1a=_0x6a62b6;this[_0x5a9c1a(0x34d)]['forEach'](_0x282e69=>{const _0x1c15e8=_0x5a9c1a;_0x282e69[_0x1c15e8(0x3d7)](_0x21ff3b);});},_0x2cb5ec*0x2);this[_0x6a62b6(0x195)][_0x6a62b6(0x3f5)](_0x21ff3b,_0x564c11);}['_removeClearOtherTimer'](_0xf0bd9c){const _0x350094=_0x50d51c;if(this[_0x350094(0x195)][_0x350094(0x310)](_0xf0bd9c)){const _0x5b17f8=this[_0x350094(0x195)][_0x350094(0x2ba)](_0xf0bd9c);_0x5b17f8&&window[_0x350094(0x18b)](_0x5b17f8),this['_clearOtherTimers'][_0x350094(0x3f5)](_0xf0bd9c,null);}}[_0x50d51c(0x3bb)](_0xaba00c){const _0xd574f4=_0x50d51c,{memberID:_0x5927e0,unitIDs:_0x416152}=_0xaba00c;_0x416152[_0xd574f4(0x39a)](_0x4c77d5=>{const _0x5402d0=_0xd574f4;var _0x11ce6c;const _0x2444c8=this[_0x5402d0(0x34d)][_0x5402d0(0x2ba)](_0x4c77d5);_0x2444c8&&(_0x2444c8['delete'](_0x5927e0),(_0x11ce6c=this[_0x5402d0(0x15e)](_0x4c77d5))==null||_0x11ce6c[_0x5402d0(0x369)](_0x2444c8['size']===0x0?_0x436a9d[_0x5402d0(0x2ce)][_0x5402d0(0x2aa)]:_0x436a9d[_0x5402d0(0x2ce)][_0x5402d0(0x28b)]));}),this['_removeClearOtherTimer'](_0x5927e0);}[_0x50d51c(0x183)](_0x1c2c7d){const _0x306fe5=_0x50d51c;this[_0x306fe5(0x327)](_0x1c2c7d['memberID']);}['_send'](_0x60d474){const _0x3b2394=_0x50d51c;localStorage[_0x3b2394(0x29c)](_0x49f5f7,JSON['stringify'](_0x60d474));}[_0x50d51c(0x24f)](){const _0x314d3d=_0x50d51c;this[_0x314d3d(0x20b)]=window[_0x314d3d(0x19a)](()=>{const _0x2d33f2=_0x314d3d;this[_0x2d33f2(0x21d)]({'type':0x2,'memberID':this['_id']});},_0x2cb5ec);}[_0x50d51c(0x15e)](_0x304f7c){const _0x181f81=_0x50d51c;return this[_0x181f81(0x2ab)][_0x181f81(0x310)](_0x304f7c)||this[_0x181f81(0x2ab)][_0x181f81(0x3f5)](_0x304f7c,new _0x2ea89f[(_0x181f81(0x17a))](_0x436a9d[_0x181f81(0x2ce)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x181f81(0x2ba)](_0x304f7c);}}var _0x3ed9f3=(_0x2d9e73=>(_0x2d9e73[_0x2d9e73[_0x50d51c(0x268)]=0x0]=_0x50d51c(0x268),_0x2d9e73[_0x2d9e73['OK']=0x1]='OK',_0x2d9e73[_0x2d9e73[_0x50d51c(0x1a9)]=0x2]='INTERNAL_ERROR',_0x2d9e73[_0x2d9e73['PERMISSION_DENIED']=0x3]=_0x50d51c(0x1b8),_0x2d9e73[_0x2d9e73['NOT_FOUND']=0x4]=_0x50d51c(0x2ff),_0x2d9e73[_0x2d9e73['UNAUTHENTICATED']=0x5]=_0x50d51c(0x22f),_0x2d9e73[_0x2d9e73[_0x50d51c(0x1bf)]=0x6]=_0x50d51c(0x1bf),_0x2d9e73[_0x2d9e73[_0x50d51c(0x185)]=0x7]='INVALID_ARGUMENT',_0x2d9e73[_0x2d9e73['TOO_MANY_REQUESTS']=0x8]=_0x50d51c(0x324),_0x2d9e73[_0x2d9e73[_0x50d51c(0x1ce)]=0x9]=_0x50d51c(0x1ce),_0x2d9e73[_0x2d9e73[_0x50d51c(0x339)]=0xa]=_0x50d51c(0x339),_0x2d9e73[_0x2d9e73[_0x50d51c(0x2ac)]=0x1389]=_0x50d51c(0x2ac),_0x2d9e73[_0x2d9e73[_0x50d51c(0x352)]=0x1771]=_0x50d51c(0x352),_0x2d9e73[_0x2d9e73[_0x50d51c(0x3f7)]=0x1772]=_0x50d51c(0x3f7),_0x2d9e73[_0x2d9e73['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x2d9e73[_0x2d9e73[_0x50d51c(0x200)]=0x1b59]=_0x50d51c(0x200),_0x2d9e73[_0x2d9e73['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x50d51c(0x167),_0x2d9e73[_0x2d9e73['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x50d51c(0x3c8),_0x2d9e73[_0x2d9e73['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x50d51c(0x299),_0x2d9e73[_0x2d9e73[_0x50d51c(0x328)]=0x1b5d]=_0x50d51c(0x328),_0x2d9e73[_0x2d9e73['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x50d51c(0x2b7),_0x2d9e73[_0x2d9e73[_0x50d51c(0x301)]=0x2329]=_0x50d51c(0x301),_0x2d9e73[_0x2d9e73[_0x50d51c(0x316)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2d9e73[_0x2d9e73[_0x50d51c(0x35d)]=0x232b]=_0x50d51c(0x35d),_0x2d9e73[_0x2d9e73[_0x50d51c(0x1c4)]=0x232c]=_0x50d51c(0x1c4),_0x2d9e73[_0x2d9e73[_0x50d51c(0x234)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x2d9e73[_0x2d9e73[_0x50d51c(0x3f8)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2d9e73[_0x2d9e73['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x50d51c(0x3ec),_0x2d9e73[_0x2d9e73[_0x50d51c(0x25a)]=0x2713]=_0x50d51c(0x25a),_0x2d9e73[_0x2d9e73['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2d9e73[_0x2d9e73[_0x50d51c(0x171)]=0x271a]=_0x50d51c(0x171),_0x2d9e73[_0x2d9e73[_0x50d51c(0x276)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x2d9e73[_0x2d9e73[_0x50d51c(0x258)]=0x271c]=_0x50d51c(0x258),_0x2d9e73[_0x2d9e73[_0x50d51c(0x2f0)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x2d9e73[_0x2d9e73['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x50d51c(0x3c4),_0x2d9e73[_0x2d9e73['YUUMI_AI_RUN_FAILED']=0x271f]=_0x50d51c(0x34c),_0x2d9e73[_0x2d9e73[_0x50d51c(0x19e)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x2d9e73[_0x2d9e73[_0x50d51c(0x215)]=0x2ee1]=_0x50d51c(0x215),_0x2d9e73[_0x2d9e73[_0x50d51c(0x265)]=0x2ee2]=_0x50d51c(0x265),_0x2d9e73[_0x2d9e73[_0x50d51c(0x1ac)]=0x2ee3]=_0x50d51c(0x1ac),_0x2d9e73[_0x2d9e73[_0x50d51c(0x356)]=0x2ee4]=_0x50d51c(0x356),_0x2d9e73[_0x2d9e73[_0x50d51c(0x1a3)]=0x2ee5]=_0x50d51c(0x1a3),_0x2d9e73[_0x2d9e73[_0x50d51c(0x2d5)]=0x32c9]=_0x50d51c(0x2d5),_0x2d9e73[_0x2d9e73['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x50d51c(0x2cf),_0x2d9e73[_0x2d9e73['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x50d51c(0x1d1),_0x2d9e73[_0x2d9e73[_0x50d51c(0x217)]=-0x1]=_0x50d51c(0x217),_0x2d9e73))(_0x3ed9f3||{}),_0x363bea=Object[_0x50d51c(0x179)],_0x226e1d=(_0x57a84a,_0x303cf3,_0x35d480,_0x543be0)=>{const _0x5433e7=_0x50d51c;for(var _0x918c82=_0x543be0>0x1?void 0x0:_0x543be0?_0x363bea(_0x303cf3,_0x35d480):_0x303cf3,_0x42cf59=_0x57a84a[_0x5433e7(0x225)]-0x1,_0x5ea054;_0x42cf59>=0x0;_0x42cf59--)(_0x5ea054=_0x57a84a[_0x42cf59])&&(_0x918c82=_0x5ea054(_0x918c82)||_0x918c82);return _0x918c82;},_0x138a59=(_0x3e00b4,_0x53152b)=>(_0x5b868b,_0x1d4d6e)=>_0x53152b(_0x5b868b,_0x1d4d6e,_0x3e00b4);_0x37a429[_0x50d51c(0x1b7)]=class extends _0x4d5d93[_0x50d51c(0x205)]{constructor(_0x2f918f,_0x5ebc70,_0x17acd8){const _0x34ef45=_0x50d51c;super(),this['_instanceService']=_0x2f918f,this[_0x34ef45(0x2ea)]=_0x5ebc70,this[_0x34ef45(0x2b2)]=_0x17acd8;}async['runOnServer'](_0x3ff4fc,_0xa3762e,_0x115cc3,..._0x14aa92){const _0x1921d1=_0x50d51c;var _0x4685f7,_0x5df1c8,_0x2baed0,_0x4bbb62;const _0xcf190e=this['_instanceService'][_0x1921d1(0x1a6)]();if(!_0xcf190e)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x2b44c5=((_0x4685f7=this['_configService'][_0x1921d1(0x3ef)](_0x436a9d['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x4685f7:_0x436a9d[_0x1921d1(0x2d9)])+'/'+_0x3ff4fc+_0x1921d1(0x36a)+_0xa3762e,_0x545e27=new URL(window[_0x1921d1(0x17e)][_0x1921d1(0x181)]),_0x51dc09={'scriptId':_0x3ff4fc,'runId':(_0x5df1c8=_0x545e27[_0x1921d1(0x1f3)][_0x1921d1(0x2ba)](_0x1921d1(0x382)))!=null?_0x5df1c8:'','function':_0xa3762e,'unitId':_0xcf190e['getUnitId'](),'argsOfFunction':JSON[_0x1921d1(0x3a8)](_0x14aa92),'invokeId':(_0x2baed0=_0x115cc3[_0x1921d1(0x2f1)])!=null?_0x2baed0:'','executionId':(_0x4bbb62=_0x115cc3[_0x1921d1(0x1a0)])!=null?_0x4bbb62:''};try{const _0x2db523=await this['_httpService'][_0x1921d1(0x1ad)](_0x2b44c5,{'body':_0x51dc09});return _0x2db523[_0x1921d1(0x3fa)]['error']&&_0x2db523['body'][_0x1921d1(0x1f2)][_0x1921d1(0x3ce)]!==_0x3ed9f3['OK']?_0x1921d1(0x3e3):_0x2db523[_0x1921d1(0x3fa)][_0x1921d1(0x1ed)];}catch{return _0x1921d1(0x3e3);}}},_0x37a429[_0x50d51c(0x1b7)]=_0x226e1d([_0x138a59(0x0,_0x4d5d93[_0x50d51c(0x3f4)]),_0x138a59(0x1,_0x4d5d93[_0x50d51c(0x383)](_0x83de29[_0x50d51c(0x219)])),_0x138a59(0x2,_0x4d5d93['IConfigService'])],_0x37a429[_0x50d51c(0x1b7)]),_0x37a429['CollaborationStatusDisplay']=_0x104452,_0x37a429[_0x50d51c(0x27e)]=_0x373d67,_0x37a429['SheetCollabCursorShape']=_0x4aa7cb,_0x37a429[_0x50d51c(0x3bc)]=_0x46117c,_0x37a429[_0x50d51c(0x3dd)]=_0x1391c2,Object[_0x50d51c(0x2d2)](_0x37a429,Symbol[_0x50d51c(0x380)],{'value':_0x50d51c(0x23e)});}));