@univerjs-pro/collaboration-client 0.1.17 → 0.2.0

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 _0x50f8(_0x5a0214,_0x4ec5d6){const _0x15abea=_0x15ab();return _0x50f8=function(_0x50f8ae,_0x1857fd){_0x50f8ae=_0x50f8ae-0x158;let _0x352af0=_0x15abea[_0x50f8ae];return _0x352af0;},_0x50f8(_0x5a0214,_0x4ec5d6);}(function(_0x5f52d5,_0x1feff3){const _0x35e2fc=_0x50f8,_0x1460a5=_0x5f52d5();while(!![]){try{const _0x10cfb8=parseInt(_0x35e2fc(0x466))/0x1*(-parseInt(_0x35e2fc(0x314))/0x2)+-parseInt(_0x35e2fc(0x327))/0x3+-parseInt(_0x35e2fc(0x315))/0x4+-parseInt(_0x35e2fc(0x17e))/0x5+parseInt(_0x35e2fc(0x4ea))/0x6+parseInt(_0x35e2fc(0x191))/0x7+parseInt(_0x35e2fc(0x316))/0x8*(parseInt(_0x35e2fc(0x2f9))/0x9);if(_0x10cfb8===_0x1feff3)break;else _0x1460a5['push'](_0x1460a5['shift']());}catch(_0x7b8270){_0x1460a5['push'](_0x1460a5['shift']());}}}(_0x15ab,0x52627),function(_0xbc3d2f,_0xe5602b){const _0x237761=_0x50f8;typeof exports==_0x237761(0x1d8)&&typeof module<'u'?_0xe5602b(exports,require(_0x237761(0x3ad)),require(_0x237761(0x306)),require(_0x237761(0x1ad)),require(_0x237761(0x2ad)),require(_0x237761(0x351)),require('@wendellhu/redi'),require(_0x237761(0x15c)),require(_0x237761(0x45e)),require(_0x237761(0x205)),require(_0x237761(0x310)),require('@univerjs/drawing'),require(_0x237761(0x4cb)),require('lodash/debounce'),require('@univerjs/engine-render'),require(_0x237761(0x1b3)),require(_0x237761(0x4dc)),require(_0x237761(0x31c)),require('clsx'),require(_0x237761(0x1f3))):typeof define==_0x237761(0x3b8)&&define[_0x237761(0x181)]?define(['exports',_0x237761(0x3ad),_0x237761(0x306),_0x237761(0x1ad),_0x237761(0x2ad),_0x237761(0x351),'@wendellhu/redi','rxjs',_0x237761(0x45e),_0x237761(0x205),'@univerjs/network',_0x237761(0x252),_0x237761(0x4cb),_0x237761(0x3bb),_0x237761(0x4d4),'@univerjs/sheets-ui',_0x237761(0x4dc),'react',_0x237761(0x387),'@univerjs/rpc'],_0xe5602b):(_0xbc3d2f=typeof globalThis<'u'?globalThis:_0xbc3d2f||self,_0xe5602b(_0xbc3d2f['UniverCollaborationClient']={},_0xbc3d2f[_0x237761(0x4de)],_0xbc3d2f['UniverSheets'],_0xbc3d2f[_0x237761(0x2bd)],_0xbc3d2f[_0x237761(0x34b)],_0xbc3d2f[_0x237761(0x4d3)],_0xbc3d2f[_0x237761(0x1f6)],_0xbc3d2f[_0x237761(0x15c)],_0xbc3d2f['rxjs'][_0x237761(0x1c5)],_0xbc3d2f['UniverDocs'],_0xbc3d2f['UniverNetwork'],_0xbc3d2f[_0x237761(0x401)],_0xbc3d2f['UniverEngineFormula'],_0xbc3d2f['lodash']['debounce'],_0xbc3d2f['UniverEngineRender'],_0xbc3d2f[_0x237761(0x41b)],_0xbc3d2f[_0x237761(0x4dc)],_0xbc3d2f[_0x237761(0x4d2)],_0xbc3d2f[_0x237761(0x387)],_0xbc3d2f[_0x237761(0x356)]));}(this,function(_0x575351,_0x5019cf,_0x7f012d,_0x478174,_0x5138ef,_0x38ce1a,_0x245a54,_0x54735b,_0x33876a,_0x38fb70,_0x3e6592,_0x11f56d,_0x2440ec,_0x37d11b,_0x56ae03,_0x1bea61,_0x26fb9e,_0x7a0305,_0xb3640c,_0x2cd6ae){'use strict';const _0x46a43e=_0x50f8;var _0x84a086=Object['defineProperty'],_0x5c5bd3=(_0x5822f1,_0x1da75c,_0x159939)=>_0x1da75c in _0x5822f1?_0x84a086(_0x5822f1,_0x1da75c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x159939}):_0x5822f1[_0x1da75c]=_0x159939,_0x3a44bb=(_0x34b7c0,_0x32edf0,_0x13eb2b)=>_0x5c5bd3(_0x34b7c0,typeof _0x32edf0!=_0x46a43e(0x2f4)?_0x32edf0+'':_0x32edf0,_0x13eb2b);const _0xb4801b=_0x46a43e(0x497),_0x47a400=_0x46a43e(0x25a),_0x25d6a7=_0x46a43e(0x487),_0xb347b=_0x46a43e(0x1d2),_0x48a35f=_0x46a43e(0x159),_0x1e3b06=_0x46a43e(0x1a1),_0x2528f8=_0x46a43e(0x459),_0x405e7e=_0x46a43e(0x4ee),_0x17e5f7=_0x46a43e(0x33f),_0x3d3c7a=_0x46a43e(0x23d),_0x4a1864=_0x46a43e(0x20a),_0x3b6bea=_0x46a43e(0x42b),_0x54f928=_0x46a43e(0x1ff),_0xb62ff0=_0x46a43e(0x1e3),_0x39ceb9='/universer-api/oidc/authpage';var _0x2fd8ee=(_0x4caced=>(_0x4caced[_0x4caced[_0x46a43e(0x42e)]=0x0]='UNDEFINED',_0x4caced[_0x4caced['OK']=0x1]='OK',_0x4caced[_0x4caced[_0x46a43e(0x3df)]=0x2]='INTERNAL_ERROR',_0x4caced[_0x4caced[_0x46a43e(0x28d)]=0x3]=_0x46a43e(0x28d),_0x4caced[_0x4caced[_0x46a43e(0x23b)]=0x4]='NOT_FOUND',_0x4caced[_0x4caced[_0x46a43e(0x2f8)]=0x5]=_0x46a43e(0x2f8),_0x4caced[_0x4caced[_0x46a43e(0x342)]=0x6]=_0x46a43e(0x342),_0x4caced[_0x4caced['INVALID_ARGUMENT']=0x7]=_0x46a43e(0x270),_0x4caced[_0x4caced['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x4caced[_0x4caced[_0x46a43e(0x37f)]=0x9]='COMPLETION_FINISHED',_0x4caced[_0x4caced[_0x46a43e(0x2df)]=0x1389]=_0x46a43e(0x2df),_0x4caced[_0x4caced['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4caced[_0x4caced[_0x46a43e(0x266)]=0x1772]=_0x46a43e(0x266),_0x4caced[_0x4caced[_0x46a43e(0x326)]=0x1b59]='APPLY_REJECT',_0x4caced[_0x4caced[_0x46a43e(0x29b)]=0x1b5a]=_0x46a43e(0x29b),_0x4caced[_0x4caced[_0x46a43e(0x3d2)]=0x1b5b]=_0x46a43e(0x3d2),_0x4caced[_0x4caced[_0x46a43e(0x1e1)]=0x1b5c]=_0x46a43e(0x1e1),_0x4caced[_0x4caced[_0x46a43e(0x4d1)]=0x1f41]=_0x46a43e(0x4d1),_0x4caced[_0x4caced[_0x46a43e(0x307)]=0x2329]=_0x46a43e(0x307),_0x4caced[_0x4caced[_0x46a43e(0x4a8)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4caced[_0x4caced['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4caced[_0x4caced[_0x46a43e(0x16f)]=0x232c]=_0x46a43e(0x16f),_0x4caced[_0x4caced[_0x46a43e(0x361)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x4caced[_0x4caced[_0x46a43e(0x398)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4caced[_0x4caced[_0x46a43e(0x3cb)]=0x2712]=_0x46a43e(0x3cb),_0x4caced[_0x4caced[_0x46a43e(0x507)]=-0x1]=_0x46a43e(0x507),_0x4caced))(_0x2fd8ee||{}),_0x4418d5=(_0x1900b2=>(_0x1900b2[_0x1900b2['UNIVER_UNKNOWN']=0x0]=_0x46a43e(0x46e),_0x1900b2[_0x1900b2[_0x46a43e(0x27d)]=0x1]=_0x46a43e(0x27d),_0x1900b2[_0x1900b2[_0x46a43e(0x258)]=0x2]='UNIVER_SHEET',_0x1900b2[_0x1900b2['UNIVER_SLIDE']=0x3]=_0x46a43e(0x33e),_0x1900b2[_0x1900b2['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x1900b2))(_0x4418d5||{}),_0x2bf8f2=(_0x47c72e=>(_0x47c72e[_0x47c72e[_0x46a43e(0x441)]=0x0]=_0x46a43e(0x441),_0x47c72e[_0x47c72e[_0x46a43e(0x30e)]=0x1]=_0x46a43e(0x30e),_0x47c72e[_0x47c72e[_0x46a43e(0x188)]=0x2]=_0x46a43e(0x188),_0x47c72e[_0x47c72e['LEAVE']=0x3]='LEAVE',_0x47c72e[_0x47c72e[_0x46a43e(0x179)]=0x4]=_0x46a43e(0x179),_0x47c72e[_0x47c72e['HEARTBEAT']=0x5]='HEARTBEAT',_0x47c72e[_0x47c72e[_0x46a43e(0x453)]=0x6]=_0x46a43e(0x453),_0x47c72e[_0x47c72e[_0x46a43e(0x507)]=-0x1]='UNRECOGNIZED',_0x47c72e))(_0x2bf8f2||{}),_0x235f27=(_0xd1561e=>(_0xd1561e[_0xd1561e[_0x46a43e(0x3c5)]=0x0]=_0x46a43e(0x3c5),_0xd1561e[_0xd1561e['OK']=0x1]='OK',_0xd1561e[_0xd1561e[_0x46a43e(0x3ee)]=0x2]='FAIL',_0xd1561e[_0xd1561e[_0x46a43e(0x507)]=-0x1]=_0x46a43e(0x507),_0xd1561e))(_0x235f27||{}),_0x516fdb=Object[_0x46a43e(0x1c7)],_0xd65c03=Object[_0x46a43e(0x1e9)],_0xbe61d0=(_0x37af6b,_0xafc489,_0xac7793,_0x185101)=>{const _0x36a0ca=_0x46a43e;for(var _0x16bb78=_0x185101>0x1?void 0x0:_0x185101?_0xd65c03(_0xafc489,_0xac7793):_0xafc489,_0x5ad381=_0x37af6b[_0x36a0ca(0x1bb)]-0x1,_0xf99224;_0x5ad381>=0x0;_0x5ad381--)(_0xf99224=_0x37af6b[_0x5ad381])&&(_0x16bb78=(_0x185101?_0xf99224(_0xafc489,_0xac7793,_0x16bb78):_0xf99224(_0x16bb78))||_0x16bb78);return _0x185101&&_0x16bb78&&_0x516fdb(_0xafc489,_0xac7793,_0x16bb78),_0x16bb78;},_0x4a335c=(_0x42f0a3,_0x11095d)=>(_0x4d954d,_0x54dc12)=>_0x11095d(_0x4d954d,_0x54dc12,_0x42f0a3);let _0x4a6424=class extends _0x5019cf['Disposable']{constructor(_0x5a7b8a,_0x297c96){const _0x358d44=_0x46a43e;super(),_0x3a44bb(this,_0x358d44(0x362),new Map()),(this['_univerInstanceService']=_0x5a7b8a,this['_userManagerService']=_0x297c96,this[_0x358d44(0x3e8)](_0x5019cf[_0x358d44(0x35e)](_0x54735b[_0x358d44(0x3e1)](this[_0x358d44(0x397)][_0x358d44(0x371)](_0x5019cf[_0x358d44(0x28c)][_0x358d44(0x258)])[_0x358d44(0x4b0)](_0x33876a[_0x358d44(0x473)](_0x170250=>_0x170250[_0x358d44(0x2c6)]())),this['_univerInstanceService'][_0x358d44(0x371)](_0x5019cf[_0x358d44(0x28c)][_0x358d44(0x27d)])[_0x358d44(0x4b0)](_0x33876a[_0x358d44(0x473)](_0x3120a8=>_0x3120a8[_0x358d44(0x2c6)]())),this[_0x358d44(0x397)][_0x358d44(0x371)](_0x5019cf['UniverInstanceType']['UNIVER_SLIDE'])[_0x358d44(0x4b0)](_0x33876a[_0x358d44(0x473)](_0xa6d947=>_0xa6d947[_0x358d44(0x2c6)]())))[_0x358d44(0x324)](_0x25334b=>this[_0x358d44(0x1eb)](_0x25334b)))));}[_0x46a43e(0x16c)](_0x29a303){const _0x4f5cab=_0x46a43e;this['_userManagerService'][_0x4f5cab(0x16c)](_0x29a303);}[_0x46a43e(0x373)](){const _0x2dc9cf=_0x46a43e;return this[_0x2dc9cf(0x4a9)][_0x2dc9cf(0x373)]();}['updateMember'](_0x5fe684,_0x4acf9d){const _0x44e69e=_0x46a43e;let _0x1852c8=this['_roomMembers'][_0x44e69e(0x2db)](_0x5fe684);_0x1852c8||(_0x1852c8=new _0x18b0e4(),this['_roomMembers']['set'](_0x5fe684,_0x1852c8)),_0x1852c8[_0x44e69e(0x2f7)](_0x4acf9d);}[_0x46a43e(0x29e)](_0x2fffc3,_0x502b04){const _0x4da7d6=_0x46a43e,_0x35c6d8=this['_roomMembers'][_0x4da7d6(0x2db)](_0x2fffc3);_0x35c6d8&&_0x35c6d8[_0x4da7d6(0x29e)](_0x502b04);}[_0x46a43e(0x17c)](_0x13352e){const _0x508c6d=_0x46a43e;return this[_0x508c6d(0x362)][_0x508c6d(0x2db)](_0x13352e);}[_0x46a43e(0x4b9)](_0x442868,_0x1e56c2){const _0x3cabc6=_0x46a43e,_0xffec29=this[_0x3cabc6(0x362)][_0x3cabc6(0x2db)](_0x442868);if(_0xffec29)return _0xffec29[_0x3cabc6(0x4b9)](_0x1e56c2);}[_0x46a43e(0x1eb)](_0x5e52aa){const _0x68c86f=_0x46a43e,_0x491af1=this[_0x68c86f(0x362)][_0x68c86f(0x2db)](_0x5e52aa);_0x491af1&&(_0x491af1[_0x68c86f(0x173)](),this['_roomMembers'][_0x68c86f(0x352)](_0x5e52aa));}['dispose'](){const _0x540453=_0x46a43e;this['_roomMembers'][_0x540453(0x39a)](_0x5c98a6=>_0x5c98a6['dispose']()),this[_0x540453(0x362)][_0x540453(0x4f4)]();}};_0x4a6424=_0xbe61d0([_0x4a335c(0x0,_0x5019cf['IUniverInstanceService']),_0x4a335c(0x1,_0x245a54['Inject'](_0x5019cf[_0x46a43e(0x3e2)]))],_0x4a6424);class _0x18b0e4 extends _0x5019cf[_0x46a43e(0x32a)]{constructor(){const _0x1eb116=_0x46a43e;super(...arguments),_0x3a44bb(this,_0x1eb116(0x1fe),new Map());}['dispose'](){const _0x257f85=_0x46a43e;this[_0x257f85(0x1fe)]['clear']();}[_0x46a43e(0x2f7)](_0x4e301b){const _0x47953d=_0x46a43e;this[_0x47953d(0x1fe)][_0x47953d(0x3f3)](_0x4e301b[_0x47953d(0x257)],_0x4e301b);}[_0x46a43e(0x29e)](_0x34a7e2){const _0x17571c=_0x46a43e;this[_0x17571c(0x1fe)][_0x17571c(0x352)](_0x34a7e2);}['getMember'](_0x2ef0ca){const _0x3fe52c=_0x46a43e;return this[_0x3fe52c(0x1fe)][_0x3fe52c(0x2db)](_0x2ef0ca);}}function _0x50f340(_0x5cecad){const _0x403a14=_0x46a43e;var _0x513606,_0x29b8d4,_0x2c3bc1,_0x17848b;const _0x16ae3e=_0x5cecad[_0x403a14(0x23f)],_0x18acff=JSON[_0x403a14(0x458)](_0x16ae3e);switch(_0x18acff['cmd']){case _0x2bf8f2['HEARTBEAT']:case _0x2bf8f2[_0x403a14(0x30e)]:{const _0x215ab2=_0x18acff['infoRsp'];return{..._0x18acff,'data':_0x215ab2,'cmd':_0x18acff[_0x403a14(0x1ab)]};}case _0x2bf8f2[_0x403a14(0x188)]:{const _0x3e1520=_0x18acff[_0x403a14(0x2ca)];return{..._0x18acff,'data':_0x3e1520,'cmd':_0x18acff[_0x403a14(0x1ab)]};}case _0x2bf8f2[_0x403a14(0x453)]:{const _0x38bf5b=_0x18acff[_0x403a14(0x21d)];switch(_0x38bf5b[_0x403a14(0x24d)]){case _0x38ce1a[_0x403a14(0x4cc)]['PERMISSION_REJ']:return{..._0x18acff,'data':{..._0x38bf5b,'data':(_0x513606=_0x38bf5b[_0x403a14(0x4ce)])==null?void 0x0:_0x513606['cs']},'cmd':_0x18acff['cmd']};case _0x38ce1a[_0x403a14(0x4cc)][_0x403a14(0x4b7)]:return{..._0x18acff,'data':{..._0x38bf5b,'data':(_0x29b8d4=_0x38bf5b[_0x403a14(0x223)])==null?void 0x0:_0x29b8d4['cs']},'cmd':_0x18acff['cmd']};case _0x38ce1a[_0x403a14(0x4cc)][_0x403a14(0x38d)]:return{..._0x18acff,'data':{..._0x38bf5b,'data':(_0x2c3bc1=_0x38bf5b['newCsEvent'])==null?void 0x0:_0x2c3bc1['cs']},'cmd':_0x18acff['cmd']};case _0x38ce1a[_0x403a14(0x4cc)][_0x403a14(0x2f2)]:return{..._0x18acff,'data':{..._0x38bf5b,'data':(_0x17848b=_0x38bf5b[_0x403a14(0x1ec)])==null?void 0x0:_0x17848b['cs']},'cmd':_0x18acff['cmd']};case _0x38ce1a[_0x403a14(0x4cc)]['UPDATE_CURSOR']:return{..._0x18acff,'data':{..._0x38bf5b,'data':_0x38bf5b[_0x403a14(0x160)]},'cmd':_0x18acff[_0x403a14(0x1ab)]};case _0x38ce1a[_0x403a14(0x4cc)][_0x403a14(0x35a)]:return{..._0x18acff,'data':{..._0x38bf5b,'data':_0x38bf5b[_0x403a14(0x457)]},'cmd':_0x18acff[_0x403a14(0x1ab)]};case _0x38ce1a[_0x403a14(0x4cc)][_0x403a14(0x414)]:return{..._0x18acff,'data':{..._0x38bf5b,'data':_0x38bf5b['leaveEvent']},'cmd':_0x18acff['cmd']};case _0x38ce1a[_0x403a14(0x4cc)][_0x403a14(0x44f)]:return{..._0x18acff,'data':{..._0x38bf5b,'data':_0x38bf5b[_0x403a14(0x312)]},'cmd':_0x18acff[_0x403a14(0x1ab)]};case _0x38ce1a[_0x403a14(0x4cc)]['LIVESHARE_FETCH_OPERATIONS']:case _0x38ce1a['CollaborationEvent'][_0x403a14(0x364)]:return{..._0x18acff,'data':{..._0x38bf5b,'data':_0x38bf5b[_0x403a14(0x311)]},'cmd':_0x18acff['cmd']};case _0x38ce1a[_0x403a14(0x4cc)]['LIVESHARE_TERMINATE']:return{..._0x18acff,'data':{..._0x38bf5b,'data':_0x38bf5b['liveShareNewHost']},'cmd':_0x18acff[_0x403a14(0x1ab)]};case _0x38ce1a[_0x403a14(0x4cc)][_0x403a14(0x470)]:return{..._0x18acff,'data':_0x38bf5b,'cmd':_0x18acff['cmd']};default:return _0x18acff;}}default:return _0x18acff;}}function _0x171c24(_0x4cd27f){const _0x3777f7=_0x46a43e;switch(_0x4cd27f[_0x3777f7(0x1ab)]){case _0x2bf8f2[_0x3777f7(0x2eb)]:case _0x2bf8f2[_0x3777f7(0x30e)]:return JSON['stringify']({'cmd':_0x4cd27f[_0x3777f7(0x1ab)],'routeKey':_0x4cd27f[_0x3777f7(0x1c4)]});case _0x2bf8f2['INGEST']:{let _0x2d9e8f;switch(_0x4cd27f[_0x3777f7(0x23f)][_0x3777f7(0x24d)]){case _0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x403)]:{_0x2d9e8f={'eventID':_0x38ce1a[_0x3777f7(0x4cc)]['UPDATE_CURSOR'],'updateCursorEvent':_0x4cd27f[_0x3777f7(0x23f)][_0x3777f7(0x23f)]};break;}case _0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x414)]:{_0x2d9e8f={'eventID':_0x38ce1a['CollaborationEvent']['USERS_LEAVE'],'leaveEvent':_0x4cd27f[_0x3777f7(0x23f)]['data']};break;}case _0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x35a)]:{_0x2d9e8f={'eventID':_0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x35a)],'joinEvent':_0x4cd27f[_0x3777f7(0x23f)][_0x3777f7(0x23f)]};break;}case _0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x44f)]:{_0x2d9e8f={'eventID':_0x38ce1a['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x4cd27f[_0x3777f7(0x23f)]['data']};break;}case _0x38ce1a['CollaborationEvent'][_0x3777f7(0x364)]:{_0x2d9e8f={'eventID':_0x38ce1a['CollaborationEvent'][_0x3777f7(0x364)],'liveShareOperation':_0x4cd27f[_0x3777f7(0x23f)][_0x3777f7(0x23f)]};break;}case _0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x33b)]:{_0x2d9e8f={'eventID':_0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x33b)],'liveShareTerminate':_0x4cd27f[_0x3777f7(0x23f)]['data']};break;}case _0x38ce1a['CollaborationEvent'][_0x3777f7(0x2ef)]:{_0x2d9e8f={'eventID':_0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x2ef)],'liveShareRequestHost':_0x4cd27f['data'][_0x3777f7(0x23f)]};break;}case _0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x347)]:{_0x2d9e8f={'eventID':_0x38ce1a['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x2d9e8f={'eventID':_0x4cd27f[_0x3777f7(0x23f)][_0x3777f7(0x24d)]};}return JSON[_0x3777f7(0x485)]({'cmd':_0x4cd27f[_0x3777f7(0x1ab)],'routeKey':_0x4cd27f['routeKey'],'collaMsg':_0x2d9e8f});}case _0x2bf8f2[_0x3777f7(0x188)]:return JSON['stringify']({'cmd':_0x4cd27f['cmd'],'routeKey':_0x4cd27f[_0x3777f7(0x1c4)],'joinReq':_0x4cd27f[_0x3777f7(0x23f)]});case _0x2bf8f2[_0x3777f7(0x3ed)]:return JSON[_0x3777f7(0x485)]({'cmd':_0x4cd27f[_0x3777f7(0x1ab)],'routeKey':_0x4cd27f['routeKey'],'leaveReq':_0x4cd27f['data']});default:throw new Error(_0x3777f7(0x211));}}var _0x380a41=Object[_0x46a43e(0x1c7)],_0x4af88a=Object[_0x46a43e(0x1e9)],_0x58008a=(_0x34a331,_0x309072,_0x55613e,_0x46fc2f)=>{for(var _0x4174b8=_0x46fc2f>0x1?void 0x0:_0x46fc2f?_0x4af88a(_0x309072,_0x55613e):_0x309072,_0x362f8d=_0x34a331['length']-0x1,_0x5ddeed;_0x362f8d>=0x0;_0x362f8d--)(_0x5ddeed=_0x34a331[_0x362f8d])&&(_0x4174b8=(_0x46fc2f?_0x5ddeed(_0x309072,_0x55613e,_0x4174b8):_0x5ddeed(_0x4174b8))||_0x4174b8);return _0x46fc2f&&_0x4174b8&&_0x380a41(_0x309072,_0x55613e,_0x4174b8),_0x4174b8;},_0x5437d8=(_0x22043a,_0xff4eaa)=>(_0x1c0ed2,_0x336052)=>_0xff4eaa(_0x1c0ed2,_0x336052,_0x22043a);const _0x2bdb70=_0x245a54[_0x46a43e(0x46a)]('univer-pro.collaboration-client-socket-service');function _0x411259(_0x302b00,_0x2a4b6c,_0x2d6144){const _0x53f69b=_0x46a43e;return _0x302b00+'/'+_0x2a4b6c+_0x53f69b(0x1c9)+_0x2d6144+'/new_changes';}_0x575351[_0x46a43e(0x1b9)]=class{constructor(_0x54e54c,_0x55b819,_0x54de1f,_0x1de48a,_0x44bbe0){const _0x525287=_0x46a43e;this[_0x525287(0x344)]=_0x54e54c,this[_0x525287(0x287)]=_0x55b819,this['_configService']=_0x54de1f,this[_0x525287(0x433)]=_0x1de48a,this['_snapshotServerService']=_0x44bbe0;}[_0x46a43e(0x323)](_0x28cc7){const _0xc8f1e9=_0x46a43e,_0x3fd591=this[_0xc8f1e9(0x287)]['createSocket'](_0x28cc7);if(!_0x3fd591)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x434a28=new _0x5019cf[(_0xc8f1e9(0x446))](),_0x453665=new _0x54735b[(_0xc8f1e9(0x238))]();_0x434a28[_0xc8f1e9(0x43a)](_0x5019cf['toDisposable'](_0x3fd591[_0xc8f1e9(0x1a3)]['subscribe'](_0x407bc0=>_0x453665['next'](_0x407bc0)))),_0x434a28['add'](_0x5019cf[_0xc8f1e9(0x35e)](()=>_0x453665[_0xc8f1e9(0x2ae)]()));const _0xab407d=new _0x54735b['Subject']();_0x434a28[_0xc8f1e9(0x43a)](_0x5019cf['toDisposable'](_0x3fd591[_0xc8f1e9(0x274)]['subscribe'](_0x56c845=>_0xab407d['next'](_0x56c845)))),_0x434a28[_0xc8f1e9(0x43a)](_0x5019cf[_0xc8f1e9(0x35e)](()=>_0xab407d[_0xc8f1e9(0x2ae)]()));const _0x2584ca=new _0x54735b[(_0xc8f1e9(0x238))]();_0x434a28['add'](_0x5019cf[_0xc8f1e9(0x35e)](_0x3fd591[_0xc8f1e9(0x3c7)][_0xc8f1e9(0x324)](_0x40e180=>{const _0x26b76a=_0x50f340(_0x40e180);_0x2584ca['next'](_0x26b76a);}))),_0x434a28[_0xc8f1e9(0x43a)](_0x5019cf[_0xc8f1e9(0x35e)](()=>_0x2584ca['complete']()));const _0x4f6763=()=>{const _0xcf0fe8=_0xc8f1e9;_0xab407d[_0xcf0fe8(0x230)](new Event(_0xcf0fe8(0x2a1))),_0x453665[_0xcf0fe8(0x230)](new CloseEvent(_0xcf0fe8(0x2a1))),_0x1b665d[_0xcf0fe8(0x2af)]();},_0x1b665d={'memberID':'','close$':_0x453665['asObservable'](),'error$':_0xab407d[_0xc8f1e9(0x26a)](),'open$':_0x3fd591[_0xc8f1e9(0x4e1)],'message$':_0x2584ca[_0xc8f1e9(0x26a)](),'send':_0xd740a8=>{const _0x2d195b=_0xc8f1e9;if(_0xd740a8['cmd']===_0x2bf8f2['INGEST']){if(_0xd740a8[_0x2d195b(0x23f)][_0x2d195b(0x24d)]===_0x38ce1a[_0x2d195b(0x4cc)][_0x2d195b(0x399)]){this[_0x2d195b(0x4c8)](_0x1b665d,_0xd740a8[_0x2d195b(0x23f)])[_0x2d195b(0x422)](_0x51dffc=>{const _0x48e95c=_0x2d195b;this[_0x48e95c(0x433)]['error'](_0x51dffc),_0x4f6763();});return;}if(_0xd740a8['data'][_0x2d195b(0x24d)]===_0x38ce1a[_0x2d195b(0x4cc)][_0x2d195b(0x469)]){const _0xf4c977=_0xd740a8['data'];this['_fetchMissChangesets'](_0xf4c977)[_0x2d195b(0x2c5)](_0x1e4fc0=>{const _0x4fe4cf=_0x2d195b;_0x2584ca['next']({'cmd':_0x2bf8f2[_0x4fe4cf(0x453)],'code':_0x235f27['OK'],'routeKey':_0xf4c977[_0x4fe4cf(0x23f)][_0x4fe4cf(0x166)],'routeType':'','data':{'eventID':_0x38ce1a[_0x4fe4cf(0x4cc)][_0x4fe4cf(0x31d)],'data':{'changesets':_0x1e4fc0}}});})[_0x2d195b(0x422)](_0xeabcee=>{const _0x3ec59b=_0x2d195b;this[_0x3ec59b(0x433)]['error'](_0xeabcee),_0x4f6763();});return;}}_0x3fd591['send'](_0x171c24(_0xd740a8));},'close':()=>{const _0x3820d6=_0xc8f1e9;_0x3fd591[_0x3820d6(0x2af)](),_0x434a28[_0x3820d6(0x173)]();}};return _0x1b665d;}async[_0x46a43e(0x4c8)](_0x32ae3f,_0x1648af){const _0x5dc63c=_0x46a43e;var _0x3f5b79;const {unitType:_0x569efe,unitID:_0x473def,changeset:_0x132d95}=_0x1648af['data'],_0x489363={'unitID':_0x473def,'memberID':_0x32ae3f['memberID'],'type':_0x569efe,'changeset':_0x38ce1a['parseChangesetToProtocol'](_0x132d95)},_0x58f873=_0x411259((_0x3f5b79=this[_0x5dc63c(0x317)]['getConfig'](_0x3b6bea))!=null?_0x3f5b79:_0x54f928,_0x569efe,_0x473def);try{await this[_0x5dc63c(0x344)][_0x5dc63c(0x2a6)](_0x58f873,{'body':_0x489363});}catch(_0x3a57ab){throw this['_logService'][_0x5dc63c(0x3a0)](_0x5dc63c(0x284),_0x5dc63c(0x38c)),_0x3a57ab;}}async[_0x46a43e(0x2e2)](_0x4b382c){const _0x1a98dc=_0x46a43e,{unitID:_0x2821ef,from:_0x46e0f4,to:_0x10b91c,unitType:_0x3deb22}=_0x4b382c['data'];return(await this[_0x1a98dc(0x1fd)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x2821ef,'type':_0x3deb22,'from':_0x46e0f4,'to':_0x10b91c}))[_0x1a98dc(0x479)];}},_0x575351[_0x46a43e(0x1b9)]=_0x58008a([_0x5437d8(0x0,_0x245a54[_0x46a43e(0x4b5)](_0x3e6592[_0x46a43e(0x494)])),_0x5437d8(0x1,_0x245a54[_0x46a43e(0x4b5)](_0x3e6592[_0x46a43e(0x28e)])),_0x5437d8(0x2,_0x5019cf[_0x46a43e(0x460)]),_0x5437d8(0x3,_0x5019cf[_0x46a43e(0x4e6)]),_0x5437d8(0x4,_0x5019cf[_0x46a43e(0x1d1)])],_0x575351[_0x46a43e(0x1b9)]);var _0x510f94=Object[_0x46a43e(0x1c7)],_0x24778f=Object[_0x46a43e(0x1e9)],_0x1b5d85=(_0x77f713,_0x3c333e,_0x4ad1db,_0x34659c)=>{const _0x358903=_0x46a43e;for(var _0x5aa9cc=_0x34659c>0x1?void 0x0:_0x34659c?_0x24778f(_0x3c333e,_0x4ad1db):_0x3c333e,_0x155aba=_0x77f713[_0x358903(0x1bb)]-0x1,_0x3b1a35;_0x155aba>=0x0;_0x155aba--)(_0x3b1a35=_0x77f713[_0x155aba])&&(_0x5aa9cc=(_0x34659c?_0x3b1a35(_0x3c333e,_0x4ad1db,_0x5aa9cc):_0x3b1a35(_0x5aa9cc))||_0x5aa9cc);return _0x34659c&&_0x5aa9cc&&_0x510f94(_0x3c333e,_0x4ad1db,_0x5aa9cc),_0x5aa9cc;},_0xddd4c7=(_0x26b8c0,_0x15dda0)=>(_0x335738,_0x28e634)=>_0x15dda0(_0x335738,_0x28e634,_0x26b8c0),_0x1ae891=(_0x18a60c=>(_0x18a60c[_0x18a60c[_0x46a43e(0x298)]=0x0]=_0x46a43e(0x298),_0x18a60c[_0x18a60c[_0x46a43e(0x482)]=0x1]=_0x46a43e(0x482),_0x18a60c[_0x18a60c['OFFLINE']=0x2]=_0x46a43e(0x1b8),_0x18a60c[_0x18a60c[_0x46a43e(0x440)]=0x3]='ONLINE',_0x18a60c))(_0x1ae891||{});_0x575351['CollaborationSession']=class extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(_0xac0a3d,_0x26d36e,_0x107036,_0x378d67,_0x25d344,_0x3c6266,_0x1d2010,_0x163a86){const _0x315024=_0x46a43e;super(),_0x3a44bb(this,_0x315024(0x21f),new _0x54735b[(_0x315024(0x413))](0x0)),_0x3a44bb(this,_0x315024(0x162),this[_0x315024(0x21f)][_0x315024(0x26a)]()),_0x3a44bb(this,_0x315024(0x41c),new _0x54735b[(_0x315024(0x238))]()),_0x3a44bb(this,_0x315024(0x204),this[_0x315024(0x41c)][_0x315024(0x26a)]()),_0x3a44bb(this,_0x315024(0x20d)),_0x3a44bb(this,_0x315024(0x1e6)),_0x3a44bb(this,'_collaborationTimeoutTimer'),(this[_0x315024(0x400)]=_0xac0a3d,this[_0x315024(0x433)]=_0x107036,this[_0x315024(0x32f)]=_0x378d67,this['_messageService']=_0x25d344,this['_configService']=_0x3c6266,this[_0x315024(0x508)]=_0x1d2010,this[_0x315024(0x39b)]=_0x163a86,_0x26d36e[_0x315024(0x4b0)](_0x33876a['takeUntil'](this['dispose$']))[_0x315024(0x324)](_0x21d5fb=>{const _0x5590dc=_0x315024;var _0xc18dee;typeof _0x21d5fb>'u'||(this[_0x5590dc(0x20d)]=_0x21d5fb,_0x21d5fb?(this[_0x5590dc(0x2ee)](_0x21d5fb),this[_0x5590dc(0x1e6)]=this[_0x5590dc(0x20d)][_0x5590dc(0x3c7)][_0x5590dc(0x324)](_0x5d588e=>{const _0x54737d=_0x5590dc;_0x5d588e[_0x54737d(0x1c4)]===this['_unitID']&&this['_onCombEvent'](_0x5d588e);})):(this[_0x5590dc(0x21f)]['next'](0x2),(_0xc18dee=this[_0x5590dc(0x1e6)])==null||_0xc18dee['unsubscribe'](),this[_0x5590dc(0x1e6)]=null));}),this['disposeWithMe'](this[_0x315024(0x32f)]['registerOnClose'](()=>{const _0xcce337=_0x315024;var _0x4ec4c2;(_0x4ec4c2=this['_socket'])==null||_0x4ec4c2[_0xcce337(0x175)]({'cmd':_0x2bf8f2[_0xcce337(0x3ed)],'data':{'roomID':this[_0xcce337(0x400)]}});})));}get['sessionStatus'](){const _0x3a92ec=_0x46a43e;return this[_0x3a92ec(0x21f)][_0x3a92ec(0x250)]();}[_0x46a43e(0x3bf)](){const _0xbbed9d=_0x46a43e;var _0x43f61d,_0xba8e79;return(_0xba8e79=(_0x43f61d=this[_0xbbed9d(0x20d)])==null?void 0x0:_0x43f61d['memberID'])!=null?_0xba8e79:null;}[_0x46a43e(0x173)](){const _0x10c56f=_0x46a43e;super[_0x10c56f(0x173)](),this[_0x10c56f(0x4a5)][_0x10c56f(0x230)](),this[_0x10c56f(0x4a5)]['complete']();}[_0x46a43e(0x47d)](_0x20360a){const _0x141db4=_0x46a43e;_0x20360a[_0x141db4(0x1ab)]===_0x2bf8f2[_0x141db4(0x188)]?this['_onJoinRoomEvent'](_0x20360a):_0x20360a['cmd']===_0x2bf8f2[_0x141db4(0x453)]&&this[_0x141db4(0x3dc)](_0x20360a);}[_0x46a43e(0x2ee)](_0x1c1b73){const _0x2a5650=_0x46a43e;this[_0x2a5650(0x21f)][_0x2a5650(0x230)](0x1),_0x1c1b73[_0x2a5650(0x175)]({'cmd':_0x2bf8f2[_0x2a5650(0x188)],'routeKey':this[_0x2a5650(0x400)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x46a43e(0x489)](_0x2aaf88){const _0x113a7f=_0x46a43e;var _0x74fa1a;if(_0x2aaf88['code']===_0x235f27['FAIL']){this[_0x113a7f(0x206)][_0x113a7f(0x4f6)]({'type':_0x478174[_0x113a7f(0x47f)]['Warning'],'content':this['_localeService']['t']('session.room-full')}),this['_sessionStatus$'][_0x113a7f(0x230)](0x2);return;}this[_0x113a7f(0x21f)][_0x113a7f(0x230)](0x3);const _0x552fe5=(_0x74fa1a=_0x2aaf88[_0x113a7f(0x23f)][_0x113a7f(0x242)][this[_0x113a7f(0x400)]])==null?void 0x0:_0x74fa1a['members'];_0x552fe5&&_0x552fe5[_0x113a7f(0x39a)](_0xe37562=>this[_0x113a7f(0x39b)]['updateMember'](this[_0x113a7f(0x400)],_0xe37562));}[_0x46a43e(0x3dc)](_0x3b44c8){const _0x150002=_0x46a43e;try{const _0xb50816=_0x3b44c8['data'];switch(_0xb50816[_0x150002(0x24d)]){case _0x38ce1a[_0x150002(0x4cc)]['USERS_ENTER']:this[_0x150002(0x4c6)](_0xb50816),this[_0x150002(0x41c)]['next'](_0xb50816);break;case _0x38ce1a['CollaborationEvent'][_0x150002(0x414)]:this[_0x150002(0x45c)](_0xb50816),this[_0x150002(0x41c)][_0x150002(0x230)](_0xb50816);break;case _0x38ce1a['CollaborationEvent']['CHANGESET_ACK']:this[_0x150002(0x331)](),this[_0x150002(0x41c)][_0x150002(0x230)](_0xb50816);break;case _0x38ce1a[_0x150002(0x4cc)][_0x150002(0x470)]:this[_0x150002(0x433)][_0x150002(0x3a0)](_0x150002(0x185)+JSON['stringify'](_0xb50816)),this['_event$'][_0x150002(0x230)](_0xb50816);break;default:this['_event$'][_0x150002(0x230)](_0xb50816);}}catch(_0x4a1dbe){this[_0x150002(0x433)][_0x150002(0x3a0)](_0x4a1dbe,_0x3b44c8);}}[_0x46a43e(0x4c6)](_0x19bd8e){const _0x354847=_0x46a43e;this[_0x354847(0x39b)][_0x354847(0x2f7)](this[_0x354847(0x400)],_0x19bd8e[_0x354847(0x23f)]);}[_0x46a43e(0x45c)](_0x2e9c6d){const _0x34b50b=_0x46a43e;this[_0x34b50b(0x39b)][_0x34b50b(0x29e)](this['_unitID'],_0x2e9c6d[_0x34b50b(0x23f)]['memberID']);}async[_0x46a43e(0x175)](_0x5234ec,_0x167cf6){const _0x2b67f9=_0x46a43e;if(this[_0x2b67f9(0x376)]!==0x3||!this[_0x2b67f9(0x20d)])throw new Error(_0x2b67f9(0x21e));try{_0x5234ec[_0x2b67f9(0x24d)]===_0x38ce1a['CollaborationEvent'][_0x2b67f9(0x38d)]&&this[_0x2b67f9(0x277)](),this[_0x2b67f9(0x20d)][_0x2b67f9(0x175)]({'cmd':_0x2bf8f2[_0x2b67f9(0x179)],'routeKey':_0x167cf6,'routeType':'','data':_0x5234ec});}catch(_0x40a7a2){this['_logService'][_0x2b67f9(0x3a0)](_0x40a7a2);}}[_0x46a43e(0x277)](){const _0x576a77=_0x46a43e;var _0x271f50;this['_collaborationTimeoutTimer']=window[_0x576a77(0x3f5)](()=>{const _0x51d7cf=_0x576a77;this['_collaborationTimeoutTimer']=null,this['_messageService'][_0x51d7cf(0x4f6)]({'type':_0x478174['MessageType'][_0x51d7cf(0x493)],'content':this[_0x51d7cf(0x508)]['t'](_0x51d7cf(0x2de))});},(_0x271f50=this[_0x576a77(0x317)][_0x576a77(0x3ea)](_0x405e7e))!=null?_0x271f50:0x2710);}[_0x46a43e(0x331)](){const _0x580d8b=_0x46a43e;this[_0x580d8b(0x2e3)]&&(clearTimeout(this[_0x580d8b(0x2e3)]),this[_0x580d8b(0x2e3)]=null);}},_0x575351[_0x46a43e(0x1b4)]=_0x1b5d85([_0xddd4c7(0x2,_0x5019cf['ILogService']),_0xddd4c7(0x3,_0x5138ef[_0x46a43e(0x40c)]),_0xddd4c7(0x4,_0x5138ef['IMessageService']),_0xddd4c7(0x5,_0x5019cf[_0x46a43e(0x460)]),_0xddd4c7(0x6,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf[_0x46a43e(0x3a5)])),_0xddd4c7(0x7,_0x245a54['Inject'](_0x4a6424))],_0x575351[_0x46a43e(0x1b4)]),_0x575351[_0x46a43e(0x4be)]=class extends _0x5019cf['Disposable']{constructor(_0x293d32,_0x1cad17,_0x52c753,_0x254da0,_0x441a01,_0x25e6b3){const _0x3479d4=_0x46a43e;super(),_0x3a44bb(this,_0x3479d4(0x199),new _0x54735b[(_0x3479d4(0x413))](void 0x0)),_0x3a44bb(this,_0x3479d4(0x1cf),new Map()),_0x3a44bb(this,_0x3479d4(0x504),new _0x54735b[(_0x3479d4(0x413))](0x0)),_0x3a44bb(this,_0x3479d4(0x1e8),this[_0x3479d4(0x504)]['asObservable']()),_0x3a44bb(this,_0x3479d4(0x49c),!0x1),_0x3a44bb(this,'_sendHeartbeatTimer'),_0x3a44bb(this,_0x3479d4(0x4b6)),_0x3a44bb(this,_0x3479d4(0x369)),_0x3a44bb(this,_0x3479d4(0x41d),0x0),(this[_0x3479d4(0x383)]=_0x293d32,this[_0x3479d4(0x508)]=_0x1cad17,this['_messageService']=_0x52c753,this[_0x3479d4(0x433)]=_0x254da0,this[_0x3479d4(0x317)]=_0x441a01,this[_0x3479d4(0x34c)]=_0x25e6b3);}get['_socket'](){const _0x4f4d5f=_0x46a43e;return this[_0x4f4d5f(0x199)][_0x4f4d5f(0x250)]();}[_0x46a43e(0x173)](){const _0x56a6ba=_0x46a43e;super[_0x56a6ba(0x173)](),this[_0x56a6ba(0x1cf)][_0x56a6ba(0x39a)](_0x1e3d1e=>_0x1e3d1e[_0x56a6ba(0x173)]()),this[_0x56a6ba(0x1cf)][_0x56a6ba(0x4f4)](),this[_0x56a6ba(0x504)]['complete']();}async[_0x46a43e(0x33d)](_0x12c44a){const _0x89753b=_0x46a43e;if(this[_0x89753b(0x1cf)][_0x89753b(0x209)](_0x12c44a))return this[_0x89753b(0x1cf)][_0x89753b(0x2db)](_0x12c44a);this[_0x89753b(0x233)]();const _0x374279=this['_injector'][_0x89753b(0x431)](_0x575351[_0x89753b(0x1b4)],_0x12c44a,this[_0x89753b(0x199)]['asObservable']());return this[_0x89753b(0x1cf)][_0x89753b(0x3f3)](_0x12c44a,_0x374279),_0x374279;}[_0x46a43e(0x4af)](){const _0x1a0529=_0x46a43e;var _0x250a78;const _0x211e73=(_0x250a78=this[_0x1a0529(0x317)][_0x1a0529(0x3ea)](_0x48a35f))!=null?_0x250a78:_0x1e3b06;return this['_socketService'][_0x1a0529(0x323)](_0x211e73);}[_0x46a43e(0x233)](){const _0x275044=_0x46a43e;try{const _0x197ac9=this['_createSocket']();if(_0x197ac9){const _0x1a6fee=_0x197ac9[_0x275044(0x175)];_0x197ac9[_0x275044(0x175)]=_0x4e551e=>(this[_0x275044(0x345)](),_0x1a6fee[_0x275044(0x47a)](_0x197ac9,[_0x4e551e])),_0x197ac9[_0x275044(0x3c7)]['subscribe'](_0x134c01=>this[_0x275044(0x374)](_0x197ac9,_0x134c01)),_0x197ac9[_0x275044(0x274)][_0x275044(0x4b0)](_0x33876a[_0x275044(0x341)](0x1))[_0x275044(0x324)](_0x5083c6=>this[_0x275044(0x433)]['error'](_0x275044(0x329),_0x5083c6)),_0x197ac9[_0x275044(0x4e1)][_0x275044(0x4b0)](_0x33876a['take'](0x1))[_0x275044(0x324)](()=>{this['_onConnectionOpen'](_0x197ac9);}),_0x197ac9[_0x275044(0x1a3)][_0x275044(0x4b0)](_0x33876a[_0x275044(0x341)](0x1))['subscribe'](_0x379657=>{const _0x3cfb2b=_0x275044;this[_0x3cfb2b(0x433)][_0x3cfb2b(0x418)]('[CollaborationSessionService]',_0x3cfb2b(0x158),_0x379657),this[_0x3cfb2b(0x15b)]();});}}catch(_0x169324){this[_0x275044(0x433)][_0x275044(0x3a0)](_0x169324),this[_0x275044(0x15b)]();}}[_0x46a43e(0x168)](_0x331437){const _0x346370=_0x46a43e;this[_0x346370(0x433)][_0x346370(0x418)](_0x346370(0x227),_0x346370(0x4fe)),_0x331437[_0x346370(0x175)]({'cmd':_0x2bf8f2[_0x346370(0x30e)]}),this['_rescheduleHeartbeatEvent']();}['_onConnectionFailed'](){const _0x2f9a8e=_0x46a43e;var _0x2dc7df;this[_0x2f9a8e(0x504)][_0x2f9a8e(0x230)](0x2),this[_0x2f9a8e(0x199)][_0x2f9a8e(0x230)](null),this[_0x2f9a8e(0x1d9)](),this[_0x2f9a8e(0x26e)](),this['_socketReady']=!0x1,this['_retryCount']<((_0x2dc7df=this[_0x2f9a8e(0x317)][_0x2f9a8e(0x3ea)](_0x3d3c7a))!=null?_0x2dc7df:0x3)?(this[_0x2f9a8e(0x37b)](this[_0x2f9a8e(0x41d)]),this['_retryCount']+=0x1):this[_0x2f9a8e(0x206)][_0x2f9a8e(0x4f6)]({'type':_0x478174[_0x2f9a8e(0x47f)][_0x2f9a8e(0x493)],'content':this[_0x2f9a8e(0x508)]['t']('session.connection-failed')});}[_0x46a43e(0x37b)](_0xf7af54){const _0x106143=_0x46a43e;var _0x1adf20;const _0x3e7834=((_0x1adf20=this[_0x106143(0x317)]['getConfig'](_0x17e5f7))!=null?_0x1adf20:0x4e20)*0x2**_0xf7af54;this[_0x106143(0x206)][_0x106143(0x4f6)]({'type':_0x478174[_0x106143(0x47f)][_0x106143(0x1da)],'content':this[_0x106143(0x508)]['t'](_0x106143(0x354))}),this[_0x106143(0x369)]=setTimeout(()=>{const _0x266261=_0x106143;this[_0x266261(0x233)](),clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null;},_0x3e7834);}['_rescheduleHeartbeatEvent'](){const _0x51a97c=_0x46a43e;var _0x595c33;this['_clearHeartbeatTimer'](),this[_0x51a97c(0x1bd)]=setTimeout(()=>this[_0x51a97c(0x29d)](),(_0x595c33=this[_0x51a97c(0x317)][_0x51a97c(0x3ea)](_0x2528f8))!=null?_0x595c33:0x7530);}[_0x46a43e(0x29d)](){const _0x2d1710=_0x46a43e;this[_0x2d1710(0x20d)][_0x2d1710(0x175)]({'cmd':_0x2bf8f2[_0x2d1710(0x2eb)]}),this['_waitForHeartbeatResponse']();}[_0x46a43e(0x496)](){const _0x2d7e74=_0x46a43e;var _0x4035e6;this[_0x2d7e74(0x4b6)]=setTimeout(()=>this[_0x2d7e74(0x15b)](),(_0x4035e6=this[_0x2d7e74(0x317)][_0x2d7e74(0x3ea)](_0x405e7e))!=null?_0x4035e6:0x2710);}[_0x46a43e(0x374)](_0x3cf311,_0x1f004d){const _0x509f39=_0x46a43e,{cmd:_0x4fd455}=_0x1f004d;_0x4fd455===_0x2bf8f2['HELLO']&&!this['_socketReady']&&(_0x3cf311[_0x509f39(0x257)]=_0x1f004d['data'][_0x509f39(0x257)],this['_socket$'][_0x509f39(0x230)](_0x3cf311),this[_0x509f39(0x504)][_0x509f39(0x230)](0x3),this[_0x509f39(0x49c)]=!0x0),_0x4fd455===_0x2bf8f2[_0x509f39(0x2eb)]&&this[_0x509f39(0x1d9)](),this[_0x509f39(0x345)]();}[_0x46a43e(0x26e)](){const _0x23df9b=_0x46a43e;this[_0x23df9b(0x1bd)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x23df9b(0x1bd)]=null);}[_0x46a43e(0x1d9)](){this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}},_0x575351[_0x46a43e(0x4be)]=_0x1b5d85([_0xddd4c7(0x0,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0xddd4c7(0x1,_0x245a54['Inject'](_0x5019cf[_0x46a43e(0x3a5)])),_0xddd4c7(0x2,_0x5138ef['IMessageService']),_0xddd4c7(0x3,_0x5019cf[_0x46a43e(0x4e6)]),_0xddd4c7(0x4,_0x5019cf[_0x46a43e(0x460)]),_0xddd4c7(0x5,_0x2bdb70)],_0x575351[_0x46a43e(0x4be)]);var _0x556688=Object[_0x46a43e(0x1c7)],_0x22361a=Object[_0x46a43e(0x1e9)],_0x4f69c8=(_0x20d61e,_0x7c55d2,_0x517e19,_0x3b5d2f)=>{const _0x1dca7e=_0x46a43e;for(var _0x4ec653=_0x3b5d2f>0x1?void 0x0:_0x3b5d2f?_0x22361a(_0x7c55d2,_0x517e19):_0x7c55d2,_0x32983b=_0x20d61e[_0x1dca7e(0x1bb)]-0x1,_0x12024d;_0x32983b>=0x0;_0x32983b--)(_0x12024d=_0x20d61e[_0x32983b])&&(_0x4ec653=(_0x3b5d2f?_0x12024d(_0x7c55d2,_0x517e19,_0x4ec653):_0x12024d(_0x4ec653))||_0x4ec653);return _0x3b5d2f&&_0x4ec653&&_0x556688(_0x7c55d2,_0x517e19,_0x4ec653),_0x4ec653;},_0x48cd31=(_0x490f53,_0x4acec1)=>(_0x31198c,_0x2a01d8)=>_0x4acec1(_0x31198c,_0x2a01d8,_0x490f53);_0x575351[_0x46a43e(0x2d1)]=class extends _0x5019cf[_0x46a43e(0x32a)]{constructor(_0x127753,_0x338389,_0x48bec0,_0x40585b,_0x2f2c59){const _0x3fa435=_0x46a43e;super(),_0x3a44bb(this,_0x3fa435(0x3c8),new Map()),_0x3a44bb(this,_0x3fa435(0x32e),new Map()),_0x3a44bb(this,'_disabled',!0x1),(this['_configService']=_0x127753,this[_0x3fa435(0x1f8)]=_0x338389,this[_0x3fa435(0x32f)]=_0x48bec0,this[_0x3fa435(0x508)]=_0x40585b,this['_revisionService']=_0x2f2c59,this[_0x3fa435(0x319)]());}[_0x46a43e(0x4a7)](){this['_disabled']=!0x0;}[_0x46a43e(0x16a)](){this['_disabled']=!0x1;}['dispose'](){this['_exhaustSavingTask']()['then'](()=>super['dispose']());}async[_0x46a43e(0x444)](_0x770b71){const _0x2bc9c5=_0x46a43e;return this[_0x2bc9c5(0x2cd)]?null:this[_0x2bc9c5(0x1f8)][_0x2bc9c5(0x4bb)](_0x2c21a8(_0x770b71));}async[_0x46a43e(0x22c)](_0x45d8b6,_0x5d5658){const _0x5bec92=_0x46a43e;return!!this[_0x5bec92(0x1f8)][_0x5bec92(0x182)](_0x45d8b6,_0x5d5658);}['updateOfflineData'](_0x1f90dd,_0x22aa13,_0x352a13,_0x47f133){const _0x32d1de=_0x46a43e,_0x41ca24=this[_0x32d1de(0x4a3)][_0x32d1de(0x1cc)](_0x1f90dd);this[_0x32d1de(0x3c8)][_0x32d1de(0x3f3)](_0x1f90dd,{'unitID':_0x1f90dd,'type':_0x22aa13,'awaitingChangeset':_0x352a13,'mutations':_0x47f133,'rev':_0x41ca24}),this[_0x32d1de(0x32e)]['has'](_0x1f90dd)||this['_scheduleSaving'](_0x1f90dd);}[_0x46a43e(0x2e9)](_0x35f324){const _0x5491f5=_0x46a43e,_0x544695=this[_0x5491f5(0x163)]();_0x544695===0x0?this[_0x5491f5(0x225)](_0x35f324):this[_0x5491f5(0x32e)]['set'](_0x35f324,setTimeout(()=>this[_0x5491f5(0x225)](_0x35f324),_0x544695));}[_0x46a43e(0x163)](){const _0x3cffcb=_0x46a43e;var _0xc9afeb;return(_0xc9afeb=this[_0x3cffcb(0x317)]['getConfig'](_0x4a1864))!=null?_0xc9afeb:0x3e8;}[_0x46a43e(0x225)](_0x428653){const _0x555c2b=_0x46a43e,_0x1be3ba=this[_0x555c2b(0x32e)][_0x555c2b(0x2db)](_0x428653);return _0x1be3ba!==void 0x0&&window[_0x555c2b(0x25c)](_0x1be3ba),this[_0x555c2b(0x1f8)]['setItem'](_0x2c21a8(_0x428653),this[_0x555c2b(0x3c8)][_0x555c2b(0x2db)](_0x428653))['then'](()=>this[_0x555c2b(0x32e)][_0x555c2b(0x352)](_0x428653));}async[_0x46a43e(0x37a)](){const _0xeb2b91=_0x46a43e,_0x1f1b4f=[];this[_0xeb2b91(0x32e)][_0xeb2b91(0x39a)]((_0x40efac,_0x2f5e98)=>{const _0x14b5d9=_0xeb2b91;window['clearTimeout'](_0x40efac),_0x1f1b4f[_0x14b5d9(0x23e)](this['_saveCache'](_0x2f5e98)[_0x14b5d9(0x2c5)](()=>{const _0x29d27c=_0x14b5d9;this[_0x29d27c(0x32e)][_0x29d27c(0x352)](_0x2f5e98);}));}),await Promise['all'](_0x1f1b4f);}[_0x46a43e(0x319)](){this['disposeWithMe'](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x1f3811=_0x50f8;if(this[_0x1f3811(0x32e)][_0x1f3811(0x282)])return this[_0x1f3811(0x508)]['t'](_0x1f3811(0x31a));}));}},_0x575351[_0x46a43e(0x2d1)]=_0x4f69c8([_0x48cd31(0x0,_0x5019cf[_0x46a43e(0x460)]),_0x48cd31(0x1,_0x5019cf[_0x46a43e(0x1f9)]),_0x48cd31(0x2,_0x5138ef[_0x46a43e(0x40c)]),_0x48cd31(0x3,_0x245a54['Inject'](_0x5019cf[_0x46a43e(0x3a5)])),_0x48cd31(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a['RevisionService']))],_0x575351[_0x46a43e(0x2d1)]);function _0x2c21a8(_0x206fa1){const _0x143f94=_0x46a43e;return _0x143f94(0x2b5)+_0x206fa1;}const _0x235b99=_0x245a54['createIdentifier']('univer-pro.collaboration-client.single-active-unit-service');var _0x5c7c4a=(_0x4dc559=>(_0x4dc559[_0x4dc559['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x46a43e(0x42f),_0x4dc559[_0x4dc559['OTHER_CLIENTS_EDITING']=0x1]=_0x46a43e(0x249),_0x4dc559))(_0x5c7c4a||{});const _0x37390f=0x7530,_0x16213c=_0x46a43e(0x357);class _0x23b11a extends _0x5019cf[_0x46a43e(0x32a)]{constructor(){const _0x4503eb=_0x46a43e;super(),_0x3a44bb(this,_0x4503eb(0x3aa),_0x5019cf[_0x4503eb(0x1f7)][_0x4503eb(0x4ae)]()),_0x3a44bb(this,_0x4503eb(0x40b),new Set()),_0x3a44bb(this,_0x4503eb(0x36b),new Map()),_0x3a44bb(this,_0x4503eb(0x18d),null),_0x3a44bb(this,_0x4503eb(0x3fd),new Map()),_0x3a44bb(this,_0x4503eb(0x40d),new Map()),this[_0x4503eb(0x336)]();}[_0x46a43e(0x173)](){const _0x17ba9c=_0x46a43e;super[_0x17ba9c(0x173)](),this[_0x17ba9c(0x3fd)][_0x17ba9c(0x39a)]((_0x230138,_0xdfe8)=>this[_0x17ba9c(0x231)](_0xdfe8)),this[_0x17ba9c(0x18d)]&&window['clearInterval'](this[_0x17ba9c(0x18d)]);}['getUnitStatus$'](_0x5420e5){const _0x4f6598=_0x46a43e;return this[_0x4f6598(0x2ab)](_0x5420e5)['pipe'](_0x54735b[_0x4f6598(0x4ca)]());}[_0x46a43e(0x4f5)](_0x16e6b2){const _0xa6f805=_0x46a43e;this[_0xa6f805(0x40b)][_0xa6f805(0x282)]===0x0&&this[_0xa6f805(0x1a7)](),this[_0xa6f805(0x40b)][_0xa6f805(0x43a)](_0x16e6b2),this[_0xa6f805(0x1cb)]({'type':0x0,'memberID':this[_0xa6f805(0x3aa)],'unitIDs':[_0x16e6b2],'isForwarded':!0x1});}[_0x46a43e(0x39c)](_0x5a3499){const _0x80e0fa=_0x46a43e;this['_selfUnitIDs']['delete'](_0x5a3499),this[_0x80e0fa(0x40b)][_0x80e0fa(0x282)]===0x0&&this[_0x80e0fa(0x18d)]&&window[_0x80e0fa(0x3cd)](this[_0x80e0fa(0x18d)]);}[_0x46a43e(0x336)](){const _0x3b50a9=_0x46a43e;this[_0x3b50a9(0x3e8)](_0x5019cf[_0x3b50a9(0x35e)](_0x54735b[_0x3b50a9(0x4e0)](window,_0x3b50a9(0x3c0))[_0x3b50a9(0x324)](_0x30568c=>{const _0x586749=_0x3b50a9;if(_0x30568c['key']!==_0x16213c||!_0x30568c[_0x586749(0x3cf)])return;const _0x459997=JSON[_0x586749(0x458)](_0x30568c[_0x586749(0x3cf)]);this[_0x586749(0x22e)](_0x459997);}))),window[_0x3b50a9(0x2a9)](_0x3b50a9(0x17b),()=>this[_0x3b50a9(0x1cb)]({'type':0x1,'memberID':this[_0x3b50a9(0x3aa)],'unitIDs':Array[_0x3b50a9(0x380)](this[_0x3b50a9(0x40b)])}));}[_0x46a43e(0x22e)](_0x50e3b9){const _0x339ca0=_0x46a43e;switch(_0x50e3b9[_0x339ca0(0x219)]){case 0x0:this[_0x339ca0(0x3b1)](_0x50e3b9);break;case 0x1:this[_0x339ca0(0x303)](_0x50e3b9);break;case 0x2:this['_handleHeartbeatEvent'](_0x50e3b9);break;}}[_0x46a43e(0x3b1)](_0x232a53){const _0x118498=_0x46a43e,{unitIDs:_0x4dac2d,memberID:_0x584d18,isForwarded:_0x4c1b23}=_0x232a53;_0x4dac2d['forEach'](_0x43512a=>{const _0x5af58f=_0x50f8;if(!_0x4c1b23&&this['_unitOnClients'][_0x5af58f(0x209)](_0x43512a)&&this[_0x5af58f(0x2ab)](_0x43512a)[_0x5af58f(0x230)](0x1),!this[_0x5af58f(0x36b)][_0x5af58f(0x209)](_0x43512a)||!this[_0x5af58f(0x36b)][_0x5af58f(0x2db)](_0x43512a)['has'](_0x584d18)){const _0x1e2504=this[_0x5af58f(0x36b)][_0x5af58f(0x2db)](_0x43512a)||new Set();_0x1e2504[_0x5af58f(0x43a)](_0x584d18),this[_0x5af58f(0x36b)][_0x5af58f(0x3f3)](_0x43512a,_0x1e2504),this[_0x5af58f(0x2b4)](_0x584d18);}}),_0x4c1b23||this[_0x118498(0x1cb)]({'type':0x0,'memberID':this[_0x118498(0x3aa)],'unitIDs':[...this[_0x118498(0x40b)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x288c53){const _0x1aba08=_0x46a43e;this[_0x1aba08(0x231)](_0x288c53);const _0x17c834=window[_0x1aba08(0x3f5)](()=>{const _0x1dbed2=_0x1aba08;this[_0x1dbed2(0x36b)][_0x1dbed2(0x39a)](_0x22214d=>{const _0x2ead55=_0x1dbed2;_0x22214d[_0x2ead55(0x352)](_0x288c53);});},_0x37390f*0x2);this[_0x1aba08(0x3fd)]['set'](_0x288c53,_0x17c834);}[_0x46a43e(0x231)](_0x444edd){const _0x187cb3=_0x46a43e;if(this[_0x187cb3(0x3fd)]['has'](_0x444edd)){const _0x441d8d=this[_0x187cb3(0x3fd)]['get'](_0x444edd);_0x441d8d&&window[_0x187cb3(0x25c)](_0x441d8d),this[_0x187cb3(0x3fd)][_0x187cb3(0x3f3)](_0x444edd,null);}}[_0x46a43e(0x303)](_0x23f504){const _0x1cd690=_0x46a43e,{memberID:_0x22810d,unitIDs:_0x153cb3}=_0x23f504;_0x153cb3[_0x1cd690(0x39a)](_0x2ee990=>{const _0x417c36=_0x1cd690;var _0x103619;const _0xa05ec7=this[_0x417c36(0x36b)][_0x417c36(0x2db)](_0x2ee990);_0xa05ec7&&(_0xa05ec7[_0x417c36(0x352)](_0x22810d),(_0x103619=this[_0x417c36(0x2ab)](_0x2ee990))==null||_0x103619['next'](_0xa05ec7[_0x417c36(0x282)]===0x0?0x0:0x1));}),this[_0x1cd690(0x231)](_0x22810d);}['_handleHeartbeatEvent'](_0x2b80b0){const _0x26f33d=_0x46a43e;this['_scheduleClearOtherTimer'](_0x2b80b0[_0x26f33d(0x257)]);}[_0x46a43e(0x1cb)](_0x56e48e){const _0x38f874=_0x46a43e;localStorage[_0x38f874(0x182)](_0x16213c,JSON[_0x38f874(0x485)](_0x56e48e));}[_0x46a43e(0x1a7)](){const _0x29e7bb=_0x46a43e;this[_0x29e7bb(0x18d)]=window['setInterval'](()=>{const _0x90fd0b=_0x29e7bb;this[_0x90fd0b(0x1cb)]({'type':0x2,'memberID':this[_0x90fd0b(0x3aa)]});},_0x37390f);}[_0x46a43e(0x2ab)](_0x305d69){const _0x25f6a5=_0x46a43e;return this[_0x25f6a5(0x40d)][_0x25f6a5(0x209)](_0x305d69)||this[_0x25f6a5(0x40d)][_0x25f6a5(0x3f3)](_0x305d69,new _0x54735b[(_0x25f6a5(0x413))](0x0)),this['_unitStatus'][_0x25f6a5(0x2db)](_0x305d69);}}var _0x5b47f2=Object[_0x46a43e(0x1c7)],_0x1ee916=Object[_0x46a43e(0x1e9)],_0x1a825a=(_0x37c05e,_0x5f4f8f,_0x4aa8a2,_0x31a879)=>{const _0x29fbeb=_0x46a43e;for(var _0x2f6303=_0x31a879>0x1?void 0x0:_0x31a879?_0x1ee916(_0x5f4f8f,_0x4aa8a2):_0x5f4f8f,_0x55584f=_0x37c05e[_0x29fbeb(0x1bb)]-0x1,_0x4b141a;_0x55584f>=0x0;_0x55584f--)(_0x4b141a=_0x37c05e[_0x55584f])&&(_0x2f6303=(_0x31a879?_0x4b141a(_0x5f4f8f,_0x4aa8a2,_0x2f6303):_0x4b141a(_0x2f6303))||_0x2f6303);return _0x31a879&&_0x2f6303&&_0x5b47f2(_0x5f4f8f,_0x4aa8a2,_0x2f6303),_0x2f6303;},_0x3980f6=(_0x5944ac,_0x14365e)=>(_0x1e7eba,_0x1696d8)=>_0x14365e(_0x1e7eba,_0x1696d8,_0x5944ac);let _0xc2ebf4=class{constructor(_0x24819d,_0xbbcef2){const _0x2cb859=_0x46a43e;this[_0x2cb859(0x383)]=_0x24819d,this[_0x2cb859(0x43f)]=_0xbbcef2;}['transformIMECache'](_0x37bcbd){const _0x434fcd=_0x46a43e;this[_0x434fcd(0x2c8)](_0x37bcbd),this['_transformPreviousActiveRange'](_0x37bcbd);}['transformRemoteChangeset'](_0x2bdd34){const _0xf1a61e=_0x46a43e,_0x371bc9=this[_0xf1a61e(0x383)][_0xf1a61e(0x2db)](_0x38fb70[_0xf1a61e(0x4c1)]),{redoCache:_0x1ee0f6}=_0x371bc9['getUndoRedoMutationParamsCache']();if(_0x1ee0f6[_0xf1a61e(0x1bb)]===0x0)return _0x2bdd34;let _0x58c349=_0x5019cf[_0xf1a61e(0x1f7)][_0xf1a61e(0x2ac)](_0x2bdd34[_0xf1a61e(0x2c2)][0x0]);for(let _0xcd909=0x0;_0xcd909<_0x1ee0f6[_0xf1a61e(0x1bb)];_0xcd909++){const _0x3b534e={'id':_0xf1a61e(0x20c),'params':{..._0x1ee0f6[_0xcd909]}},_0x27407a=this[_0xf1a61e(0x43f)]['transformMutation'](_0x58c349,_0x3b534e,!0x1);if(_0x38ce1a['isTransformMutationFailure'](_0x27407a))throw _0x27407a[_0xf1a61e(0x3a0)];_0x58c349=_0x27407a[_0xf1a61e(0x272)];}return{..._0x5019cf[_0xf1a61e(0x1f7)][_0xf1a61e(0x2ac)](_0x2bdd34),'mutations':[_0x58c349]};}[_0x46a43e(0x2c8)](_0x159bd9){const _0x41981d=_0x46a43e,_0x301093=this[_0x41981d(0x383)][_0x41981d(0x2db)](_0x38fb70[_0x41981d(0x4c1)]),{undoCache:_0x5f4aae,redoCache:_0x205fc0}=_0x301093[_0x41981d(0x31b)]();if(_0x5f4aae[_0x41981d(0x1bb)]===0x0||_0x205fc0['length']===0x0)return;const _0x17ed05=[],_0x30bb9d=[];let _0x5693c1=_0x5019cf[_0x41981d(0x1f7)][_0x41981d(0x2ac)](_0x159bd9[_0x41981d(0x2c2)][0x0]),_0x215dea=_0x5019cf['Tools'][_0x41981d(0x2ac)](_0x159bd9[_0x41981d(0x2c2)][0x0]);for(let _0x6b517a=_0x5f4aae[_0x41981d(0x1bb)]-0x1;_0x6b517a>=0x0;_0x6b517a--){const _0x55fed9={'id':'doc.mutation.rich-text-editing','params':{..._0x5f4aae[_0x6b517a]}},_0x14ba7a={'id':_0x41981d(0x20c),'params':{..._0x205fc0[_0x6b517a]}},_0x5615e5=this['_transformService']['transformMutation'](_0x5693c1,_0x55fed9,!0x1),_0xde2051=this[_0x41981d(0x43f)][_0x41981d(0x432)](_0x215dea,_0x14ba7a,!0x1);if(_0x38ce1a[_0x41981d(0x15e)](_0x5615e5))throw _0x5615e5['error'];if(_0x38ce1a['isTransformMutationFailure'](_0xde2051))throw _0xde2051[_0x41981d(0x3a0)];_0x17ed05[_0x41981d(0x442)](_0x5615e5[_0x41981d(0x35f)]['params']),_0x30bb9d[_0x41981d(0x442)](_0xde2051[_0x41981d(0x35f)][_0x41981d(0x451)]),_0x5693c1=_0x5615e5[_0x41981d(0x272)],_0x215dea=_0xde2051[_0x41981d(0x272)];}_0x301093['setUndoRedoMutationParamsCache']({'undoCache':_0x17ed05,'redoCache':_0x30bb9d});}[_0x46a43e(0x415)](_0x13e44b){const _0x12af0b=_0x46a43e,_0x16b61c=this['_injector'][_0x12af0b(0x2db)](_0x38fb70['IMEInputManagerService']),_0x219840=_0x16b61c[_0x12af0b(0x2bb)]();if(_0x219840==null)return;const _0x22751b=[{'id':_0x12af0b(0x20c),'params':{'unitId':_0x13e44b[_0x12af0b(0x166)],'actions':null,'textRanges':[_0x219840]}}],_0x52e8fe=this['_transformService']['transformMutationsWithChangeset'](_0x13e44b,_0x22751b);if(!_0x38ce1a['isTransformMutationsWithChangesetSuccess'](_0x52e8fe))throw _0x52e8fe['error'];const _0x1684db=_0x52e8fe[_0x12af0b(0x35f)][0x0][_0x12af0b(0x451)]['textRanges'];Array[_0x12af0b(0x4e9)](_0x1684db)&&_0x1684db[_0x12af0b(0x1bb)]&&_0x16b61c[_0x12af0b(0x4cd)](_0x1684db[0x0]);}};_0xc2ebf4=_0x1a825a([_0x3980f6(0x0,_0x245a54['Inject'](_0x245a54[_0x46a43e(0x236)])),_0x3980f6(0x1,_0x38ce1a[_0x46a43e(0x48b)])],_0xc2ebf4);var _0x32e5c2=Object[_0x46a43e(0x1c7)],_0xa16d29=Object[_0x46a43e(0x1e9)],_0x504577=(_0x1c50cc,_0x469024,_0x56dd1f,_0x37134b)=>{const _0xa9d341=_0x46a43e;for(var _0x57d268=_0x37134b>0x1?void 0x0:_0x37134b?_0xa16d29(_0x469024,_0x56dd1f):_0x469024,_0x23e669=_0x1c50cc[_0xa9d341(0x1bb)]-0x1,_0x34c053;_0x23e669>=0x0;_0x23e669--)(_0x34c053=_0x1c50cc[_0x23e669])&&(_0x57d268=(_0x37134b?_0x34c053(_0x469024,_0x56dd1f,_0x57d268):_0x34c053(_0x57d268))||_0x57d268);return _0x37134b&&_0x57d268&&_0x32e5c2(_0x469024,_0x56dd1f,_0x57d268),_0x57d268;},_0x1a7e36=(_0x356dad,_0x56331f)=>(_0x389fcf,_0x4743cc)=>_0x56331f(_0x389fcf,_0x4743cc,_0x356dad);let _0x5cf952=class{constructor(_0x50d1dc,_0x5da5d6){const _0x511e92=_0x46a43e;this[_0x511e92(0x383)]=_0x50d1dc,this['_transformService']=_0x5da5d6;}[_0x46a43e(0x2d6)](_0x71de9f){const _0x50a08a=_0x46a43e;var _0x1b401d;const _0x3f2a1e=this[_0x50a08a(0x383)][_0x50a08a(0x2db)](_0x38fb70['TextSelectionManagerService']),_0x22e751=(_0x1b401d=_0x3f2a1e[_0x50a08a(0x2fc)]())!=null?_0x1b401d:[],_0x33365c=_0x22e751==null?void 0x0:_0x22e751[_0x50a08a(0x473)](_0x38fb70[_0x50a08a(0x318)]);if(_0x33365c['length']===0x0)return;const _0x4fb952=[{'id':_0x50a08a(0x20c),'params':{'unitId':_0x71de9f[_0x50a08a(0x166)],'actions':null,'textRanges':_0x33365c}}],_0x533fab=this['_transformService'][_0x50a08a(0x3ba)](_0x71de9f,_0x4fb952);if(!_0x38ce1a[_0x50a08a(0x41f)](_0x533fab))throw _0x533fab[_0x50a08a(0x3a0)];const _0x34315a=_0x533fab[_0x50a08a(0x35f)][0x0][_0x50a08a(0x451)][_0x50a08a(0x44a)];Array[_0x50a08a(0x4e9)](_0x34315a)&&_0x34315a[_0x50a08a(0x1bb)]&&_0x3f2a1e['replaceTextRanges'](_0x34315a,!0x1);}};_0x5cf952=_0x504577([_0x1a7e36(0x0,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0x1a7e36(0x1,_0x38ce1a[_0x46a43e(0x48b)])],_0x5cf952);function _0x4b67ea(_0x1484ec){let _0x100ba9='';for(const _0x4a0a8e of _0x1484ec){const {startOffset:_0x422db9,endOffset:_0x3f249d,isActive:_0x169856}=_0x4a0a8e;_0x100ba9['length']&&(_0x100ba9+=','),_0x100ba9+=_0x422db9+':'+_0x3f249d+':'+(_0x169856?'1':'0');}return _0x100ba9;}function _0x40ee5f(_0x31429f){const _0x587acf=_0x46a43e,_0x1bd359=_0x31429f[_0x587acf(0x269)](','),_0x421f9f=[];for(const _0x90daf7 of _0x1bd359){const [_0x10c56e,_0x18ddaa,_0x4e27b0]=_0x90daf7[_0x587acf(0x269)](':');_0x421f9f[_0x587acf(0x23e)]({'startOffset':Number(_0x10c56e),'endOffset':Number(_0x18ddaa),'collapsed':_0x10c56e===_0x18ddaa,'isActive':_0x4e27b0==='1'});}return _0x421f9f['some'](_0x40172a=>_0x40172a[_0x587acf(0x279)])||(_0x421f9f[0x0][_0x587acf(0x279)]=!0x0),_0x421f9f;}class _0x141f6f extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(){const _0x560353=_0x46a43e;super(...arguments),_0x3a44bb(this,_0x560353(0x503),new _0x54735b['BehaviorSubject'](null)),_0x3a44bb(this,_0x560353(0x2a5),this[_0x560353(0x503)][_0x560353(0x26a)]());}['syncEditingCollabCursor'](_0x9ff428){const _0x261c3f=_0x46a43e,{unitID:_0x154347,memberID:_0x1c8412,textRanges:_0x309d49}=_0x9ff428,_0x84c36d=_0x4b67ea(_0x309d49),_0x4890a6={'unitID':_0x154347,'memberID':_0x1c8412,'selection':_0x84c36d};this[_0x261c3f(0x503)][_0x261c3f(0x230)](_0x4890a6);}}var _0x55ae9b=Object[_0x46a43e(0x1c7)],_0xd44df2=Object[_0x46a43e(0x1e9)],_0x953aa0=(_0x2489e0,_0x3b4fd7,_0x2fa8de,_0x136c9d)=>{const _0x42f616=_0x46a43e;for(var _0x37c91c=_0x136c9d>0x1?void 0x0:_0x136c9d?_0xd44df2(_0x3b4fd7,_0x2fa8de):_0x3b4fd7,_0x43ef1e=_0x2489e0[_0x42f616(0x1bb)]-0x1,_0x4eb0f1;_0x43ef1e>=0x0;_0x43ef1e--)(_0x4eb0f1=_0x2489e0[_0x43ef1e])&&(_0x37c91c=(_0x136c9d?_0x4eb0f1(_0x3b4fd7,_0x2fa8de,_0x37c91c):_0x4eb0f1(_0x37c91c))||_0x37c91c);return _0x136c9d&&_0x37c91c&&_0x55ae9b(_0x3b4fd7,_0x2fa8de,_0x37c91c),_0x37c91c;},_0x51a808=(_0xe4b08,_0x122740)=>(_0x155ec3,_0x5f0c57)=>_0x122740(_0x155ec3,_0x5f0c57,_0xe4b08);let _0x20cd4b=class{constructor(_0x5b6d47,_0x20e8d6){const _0x511467=_0x46a43e;this[_0x511467(0x383)]=_0x5b6d47,this[_0x511467(0x43f)]=_0x20e8d6;}['transformSelections'](_0x45bdf4){const _0xa711bc=_0x46a43e;var _0x199328,_0xa89cd3,_0x54f22a,_0x127dbf;const _0x480dce=this['_injector'][_0xa711bc(0x2db)](_0x7f012d[_0xa711bc(0x3fe)]),{pluginName:_0x52cabd,unitId:_0x34d808,sheetId:_0x5b73ab}=_0x480dce[_0xa711bc(0x4f0)]()||{},_0x467394=(_0x199328=_0x480dce['getSelections']())!=null?_0x199328:[];if(_0x467394[_0xa711bc(0x1bb)]===0x0||!_0x52cabd||!_0x34d808||!_0x5b73ab)return;const _0x426c18=[{'id':_0x7f012d['SetSelectionsOperation']['id'],'params':{'unitId':_0x34d808,'subUnitId':_0x5b73ab,'pluginName':_0x52cabd,'selections':_0x5019cf[_0xa711bc(0x1f7)][_0xa711bc(0x2ac)](_0x467394)}}],_0x4d88d1=this[_0xa711bc(0x43f)]['transformMutationsWithChangeset'](_0x45bdf4,_0x426c18);if(!_0x38ce1a[_0xa711bc(0x41f)](_0x4d88d1))throw _0x4d88d1[_0xa711bc(0x3a0)];const _0x383c3a=(_0x127dbf=(_0x54f22a=(_0xa89cd3=_0x4d88d1[_0xa711bc(0x35f)][0x0])==null?void 0x0:_0xa89cd3[_0xa711bc(0x451)])==null?void 0x0:_0x54f22a[_0xa711bc(0x4e4)])!=null?_0x127dbf:_0x467394;Array[_0xa711bc(0x4e9)](_0x383c3a)&&_0x383c3a[_0xa711bc(0x1bb)]&&this[_0xa711bc(0x383)][_0xa711bc(0x2db)](_0x5019cf[_0xa711bc(0x3b9)])[_0xa711bc(0x4ac)](_0x7f012d[_0xa711bc(0x27c)]['id'],{'unitId':_0x34d808,'subUnitId':_0x5b73ab,'pluginName':_0x52cabd,'selections':_0x383c3a});}};_0x20cd4b=_0x953aa0([_0x51a808(0x0,_0x245a54['Inject'](_0x245a54[_0x46a43e(0x236)])),_0x51a808(0x1,_0x38ce1a[_0x46a43e(0x48b)])],_0x20cd4b);const _0xe84682=new Set([_0x7f012d[_0x46a43e(0x207)]['id']]);function _0x2ced5e(_0x17e9fe,_0x50f09a,_0xb83b64,_0x1f4f72,_0x200f8d){const _0x47fc5e=_0x46a43e;var _0x1f537e,_0x13825d,_0x1f9a05,_0xb5966a;const _0x11ceb3=[];for(const _0x1a11cb of _0x17e9fe)if(_0xe84682[_0x47fc5e(0x209)](_0x1a11cb['id'])){if(_0x11ceb3[_0x47fc5e(0x1bb)]>0x0)break;_0x11ceb3[_0x47fc5e(0x23e)](_0x1a11cb);break;}else _0x11ceb3[_0x47fc5e(0x23e)](_0x1a11cb);const _0xc9d50c=(_0x13825d=(_0x1f537e=_0x200f8d[_0x47fc5e(0x373)]())==null?void 0x0:_0x1f537e['userID'])!=null?_0x13825d:_0x47fc5e(0x3f4),_0x461d3f=(_0xb5966a=(_0x1f9a05=_0x200f8d[_0x47fc5e(0x373)]())==null?void 0x0:_0x1f9a05[_0x47fc5e(0x257)])!=null?_0xb5966a:'unknown';return{'changeset':{'unitID':_0x50f09a,'type':_0x38ce1a[_0x47fc5e(0x27e)](_0xb83b64[_0x47fc5e(0x22d)](_0x50f09a)),'baseRev':_0x1f4f72[_0x47fc5e(0x1cc)](_0x50f09a),'revision':0x0,'userID':_0xc9d50c,'memberID':_0x461d3f,'mutations':_0x11ceb3},'pendingMutations':_0x17e9fe[_0x47fc5e(0x29f)](_0x11ceb3[_0x47fc5e(0x1bb)])};}function _0x2506bd(_0x50b4c1,_0x27dbe3,_0x56984c,_0x59e2ce,_0x49b961){const _0x438bcf=_0x46a43e;var _0x325ed0,_0x1296ce,_0x35c933,_0x500bcc;const _0x2c421d=[_0x50b4c1[_0x438bcf(0x2e8)]((_0x1078ad,_0x3a0e66)=>{const _0x4ff933=_0x438bcf;var _0x41e9a9;const {id:_0x49ac3d}=_0x1078ad,{id:_0x1952b1,type:_0x366384}=_0x3a0e66,_0x28cf4b=(_0x41e9a9=_0x1078ad['params'])!=null?_0x41e9a9:{'actions':null},_0xa2f835=_0x3a0e66[_0x4ff933(0x451)];if(_0x49ac3d&&_0x49ac3d!==_0x1952b1)throw new Error(_0x4ff933(0x370)+_0x49ac3d+_0x4ff933(0x462)+_0x1952b1+'.');return{..._0x1078ad,'id':_0x1952b1,'type':_0x366384,'params':{'unitId':_0xa2f835['unitId'],'textRanges':_0xa2f835['textRanges'],'actions':_0x5019cf['JSONX']['compose'](_0x28cf4b[_0x4ff933(0x25e)],_0xa2f835[_0x4ff933(0x25e)])}};},{})],_0x28925b=(_0x1296ce=(_0x325ed0=_0x49b961['getCurrentUser']())==null?void 0x0:_0x325ed0[_0x438bcf(0x2f1)])!=null?_0x1296ce:_0x438bcf(0x3f4),_0x56c6d5=(_0x500bcc=(_0x35c933=_0x49b961[_0x438bcf(0x373)]())==null?void 0x0:_0x35c933['memberID'])!=null?_0x500bcc:_0x438bcf(0x3f4);return{'changeset':{'unitID':_0x27dbe3,'type':_0x38ce1a[_0x438bcf(0x27e)](_0x56984c['getUnitType'](_0x27dbe3)),'baseRev':_0x59e2ce[_0x438bcf(0x1cc)](_0x27dbe3),'revision':0x0,'userID':_0x28925b,'memberID':_0x56c6d5,'mutations':_0x2c421d},'pendingMutations':[]};}var _0x1b297f=Object[_0x46a43e(0x1c7)],_0x4a951a=Object[_0x46a43e(0x1e9)],_0x1b88b6=(_0xa5cf6c,_0x14f823,_0x3072c2,_0xe100cb)=>{for(var _0xc34727=_0xe100cb>0x1?void 0x0:_0xe100cb?_0x4a951a(_0x14f823,_0x3072c2):_0x14f823,_0x217fcf=_0xa5cf6c['length']-0x1,_0x26e800;_0x217fcf>=0x0;_0x217fcf--)(_0x26e800=_0xa5cf6c[_0x217fcf])&&(_0xc34727=(_0xe100cb?_0x26e800(_0x14f823,_0x3072c2,_0xc34727):_0x26e800(_0xc34727))||_0xc34727);return _0xe100cb&&_0xc34727&&_0x1b297f(_0x14f823,_0x3072c2,_0xc34727),_0xc34727;},_0x48ae34=(_0x40938a,_0x3f638c)=>(_0x7e6012,_0x12d877)=>_0x3f638c(_0x7e6012,_0x12d877,_0x40938a),_0x348409=(_0x507eeb=>(_0x507eeb['NOT_COLLAB']=_0x46a43e(0x4a6),_0x507eeb[_0x46a43e(0x407)]='synced',_0x507eeb['PENDING']=_0x46a43e(0x37e),_0x507eeb[_0x46a43e(0x224)]='awaiting',_0x507eeb[_0x46a43e(0x203)]='awaiting_with_pending',_0x507eeb[_0x46a43e(0x198)]=_0x46a43e(0x1a2),_0x507eeb[_0x46a43e(0x420)]='conflict',_0x507eeb['OFFLINE']=_0x46a43e(0x4a4),_0x507eeb))(_0x348409||{});class _0x2fb10b{constructor(_0x35a259,_0x1cd84b,_0x19c5eb,_0x3bd0de,_0x281b3d,_0x23b72b,_0x3c0e67,_0x3425a0,_0x1e17c4){const _0x2f8de9=_0x46a43e;_0x3a44bb(this,_0x2f8de9(0x4e8),null),_0x3a44bb(this,'_pendingMutations',[]),(this['unitID']=_0x35a259,this[_0x2f8de9(0x219)]=_0x1cd84b,this[_0x2f8de9(0x4dd)]=_0x281b3d,this[_0x2f8de9(0x34d)]=_0x23b72b,this[_0x2f8de9(0x1d6)]=_0x3c0e67,this[_0x2f8de9(0x4a3)]=_0x3425a0,this[_0x2f8de9(0x36e)]=_0x1e17c4,this['_awaitingChangeset']=_0x19c5eb,this[_0x2f8de9(0x3b7)]=_0x3bd0de);}[_0x46a43e(0x454)](_0x5799f9){const _0x6f6eb4=_0x46a43e,_0x5f222a=this[_0x6f6eb4(0x4a3)][_0x6f6eb4(0x1cc)](this['unitID']);return _0x5799f9[_0x6f6eb4(0x1ca)]>_0x5f222a+0x1?(this[_0x6f6eb4(0x4dd)][_0x6f6eb4(0x2ea)]({'from':_0x5f222a,'to':_0x5799f9['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0xd61958){const _0x2826ad=_0x46a43e;this[_0x2826ad(0x1d6)][_0x2826ad(0x4fb)](this[_0x2826ad(0x166)],_0xd61958);}[_0x46a43e(0x288)](_0xf0753d){const _0x447f1a=_0x46a43e;var _0x28f8ad,_0xacfb4d;(_0xacfb4d=(_0x28f8ad=this[_0x447f1a(0x4dd)])[_0x447f1a(0x49a)])==null||_0xacfb4d['call'](_0x28f8ad,_0xf0753d);}['_transformIMECache'](_0x283082){const _0x58a221=_0x46a43e;var _0xc6f2d4,_0x15fbf1;return(_0x15fbf1=(_0xc6f2d4=this[_0x58a221(0x4dd)])[_0x58a221(0x286)])==null?void 0x0:_0x15fbf1[_0x58a221(0x4fd)](_0xc6f2d4,_0x283082);}[_0x46a43e(0x3dd)](_0x3e640a){const _0x33586b=_0x46a43e;var _0x57262d,_0x50fd31,_0x10355c;return(_0x10355c=(_0x50fd31=(_0x57262d=this[_0x33586b(0x4dd)])[_0x33586b(0x46d)])==null?void 0x0:_0x50fd31[_0x33586b(0x4fd)](_0x57262d,_0x3e640a))!=null?_0x10355c:_0x3e640a;}['_syncEditingCollabCursor'](_0x4de3ea){const _0x111a48=_0x46a43e;var _0x14eef4,_0x2d5cef;if(this[_0x111a48(0x219)]===_0x4418d5['UNIVER_DOC']){const {unitID:_0x1848df,mutations:_0xd9fdfe,memberID:_0x257882}=_0x4de3ea,_0x5c4b72=_0xd9fdfe[0x0][_0x111a48(0x451)][_0x111a48(0x44a)];Array[_0x111a48(0x4e9)](_0x5c4b72)&&_0x5c4b72[_0x111a48(0x1bb)]>0x0&&((_0x2d5cef=(_0x14eef4=this[_0x111a48(0x4dd)])[_0x111a48(0x278)])==null||_0x2d5cef[_0x111a48(0x4fd)](_0x14eef4,{'unitID':_0x1848df,'memberID':_0x257882,'textRanges':_0x5c4b72}));}}[_0x46a43e(0x385)](){const _0x15d0ad=_0x46a43e;this[_0x15d0ad(0x36e)][_0x15d0ad(0x484)](this[_0x15d0ad(0x166)],this[_0x15d0ad(0x219)],this[_0x15d0ad(0x4e8)],this['_pendingMutations']);}[_0x46a43e(0x337)](){const _0x16b63e=_0x46a43e;return this['_revisionService']['getCurrentRevForDocument'](this[_0x16b63e(0x166)]);}[_0x46a43e(0x17d)](){const _0x2d3071=_0x46a43e;this[_0x2d3071(0x4a3)][_0x2d3071(0x4c2)](this['unitID']);}[_0x46a43e(0x408)](_0x7bcf37){const _0x2b3c73=_0x46a43e;var _0x560d87;const _0x5989c8=this[_0x2b3c73(0x3dd)](_0x7bcf37),_0x5929d4=_0x5019cf[_0x2b3c73(0x30d)](_0x5989c8[_0x2b3c73(0x2c2)],this[_0x2b3c73(0x34d)],{'fromCollab':!0x0});if(!_0x5929d4[_0x2b3c73(0x3ec)])throw _0x5929d4[_0x2b3c73(0x3a0)]instanceof Error?_0x5929d4['error']:new Error((_0x560d87=_0x5929d4[_0x2b3c73(0x3a0)])!=null?_0x560d87:_0x2b3c73(0x4fa));this[_0x2b3c73(0x456)](_0x5989c8),this[_0x2b3c73(0x30b)](_0x7bcf37),this[_0x2b3c73(0x288)](_0x5989c8),this[_0x2b3c73(0x1ae)](_0x5989c8),this[_0x2b3c73(0x17d)]();}}let _0x5a53e1=class extends _0x2fb10b{constructor(_0x24bfd8,_0x20ef6b,_0x36c629,_0x3dca71,_0x73c9f5,_0x4a4fb0,_0x4a15b3,_0x3e075b,_0x4151a9){const _0x443444=_0x46a43e;super(_0x24bfd8,_0x20ef6b,null,[],_0x36c629,_0x3e075b,_0x4a15b3,_0x3dca71,_0x73c9f5),_0x3a44bb(this,_0x443444(0x4a1),'synced'),(this[_0x443444(0x383)]=_0x4a4fb0,this[_0x443444(0x433)]=_0x4151a9);}[_0x46a43e(0x378)](_0x3ab491){const _0x137193=_0x46a43e,_0x3c54ac=this[_0x137193(0x383)][_0x137193(0x431)](_0x285dad,this[_0x137193(0x166)],this['type'],[_0x3ab491],this['_handler']);return _0x3c54ac[_0x137193(0x3f1)](),_0x3c54ac[_0x137193(0x385)](),_0x3c54ac;}[_0x46a43e(0x2dc)](_0x2cd22e){const _0x9ac248=_0x46a43e;if(this[_0x9ac248(0x454)](_0x2cd22e))return this[_0x9ac248(0x383)][_0x9ac248(0x431)](_0x28d07c,this[_0x9ac248(0x166)],this['type'],null,[],null,[_0x2cd22e],this[_0x9ac248(0x4dd)]);try{return this[_0x9ac248(0x408)](_0x2cd22e),this;}catch(_0x147a41){return this[_0x9ac248(0x433)][_0x9ac248(0x3a0)]('[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.',_0x147a41),this;}}[_0x46a43e(0x452)](){const _0x1360da=_0x46a43e;throw new Error(_0x1360da(0x332));}['onRemoteRej'](){const _0x19488d=_0x46a43e;throw new Error(_0x19488d(0x3eb));}['toggleOffline'](){const _0xce9cb=_0x46a43e;return this[_0xce9cb(0x383)][_0xce9cb(0x431)](_0x3fc69e,this['unitID'],this[_0xce9cb(0x219)],null,[],this[_0xce9cb(0x4dd)]);}[_0x46a43e(0x2d8)](){return this;}['resend'](){const _0x29e2d8=_0x46a43e;throw new Error(_0x29e2d8(0x3f2));}};_0x5a53e1=_0x1b88b6([_0x48ae34(0x3,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a[_0x46a43e(0x4ad)])),_0x48ae34(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x575351[_0x46a43e(0x2d1)])),_0x48ae34(0x5,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0x48ae34(0x6,_0x5019cf[_0x46a43e(0x33a)]),_0x48ae34(0x7,_0x5019cf[_0x46a43e(0x3b9)]),_0x48ae34(0x8,_0x5019cf[_0x46a43e(0x4e6)])],_0x5a53e1);let _0x285dad=class extends _0x2fb10b{constructor(_0x56abdb,_0x594545,_0x337f21,_0x108bd6,_0xd71ffe,_0x27dbea,_0x238e8b,_0x420d9b,_0x187b3c,_0x1d0176,_0x316758,_0x139332,_0x3c76d9,_0x503899){const _0x214d5e=_0x46a43e;super(_0x56abdb,_0x594545,null,_0x337f21,_0x108bd6,_0x1d0176,_0x503899,_0x27dbea,_0x238e8b),_0x3a44bb(this,_0x214d5e(0x4a1),'pending'),_0x3a44bb(this,_0x214d5e(0x3ce),null),_0x3a44bb(this,_0x214d5e(0x358),null),(this[_0x214d5e(0x383)]=_0xd71ffe,this[_0x214d5e(0x39b)]=_0x420d9b,this[_0x214d5e(0x433)]=_0x187b3c,this[_0x214d5e(0x317)]=_0x316758,this[_0x214d5e(0x43f)]=_0x139332,this[_0x214d5e(0x397)]=_0x3c76d9);}[_0x46a43e(0x378)](_0x2c0c50){const _0x594359=_0x46a43e;return this['_pendingMutations'][_0x594359(0x23e)](_0x2c0c50),this[_0x594359(0x385)](),this;}[_0x46a43e(0x2dc)](_0x994003){const _0x1038e3=_0x46a43e;if(this[_0x1038e3(0x454)](_0x994003))return this[_0x1038e3(0x176)](),this[_0x1038e3(0x383)][_0x1038e3(0x431)](_0x28d07c,this[_0x1038e3(0x166)],this[_0x1038e3(0x219)],null,this[_0x1038e3(0x3b7)],null,[_0x994003],this[_0x1038e3(0x4dd)]);try{const _0xcb6a14=this[_0x1038e3(0x43f)][_0x1038e3(0x3ba)](_0x994003,this[_0x1038e3(0x3b7)]);if(_0x38ce1a[_0x1038e3(0x41f)](_0xcb6a14)){const {c1Prime:_0xd9556a,m2Prime:_0x334dc8}=_0xcb6a14;this[_0x1038e3(0x408)](_0xd9556a);const _0x362496=this[_0x1038e3(0x383)][_0x1038e3(0x431)](_0x285dad,this['unitID'],this[_0x1038e3(0x219)],_0x334dc8,this['_handler']);return this[_0x1038e3(0x176)](),_0x362496[_0x1038e3(0x3f1)](this[_0x1038e3(0x3ce)]?Math[_0x1038e3(0x492)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this[_0x1038e3(0x417)]()),_0x362496;}throw _0xcb6a14[_0x1038e3(0x3a0)];}catch(_0x4a014c){return this[_0x1038e3(0x433)][_0x1038e3(0x3a0)](_0x4a014c),this[_0x1038e3(0x2a8)](!0x1);}}[_0x46a43e(0x452)](){const _0x287179=_0x46a43e;throw new Error(_0x287179(0x4f9));}[_0x46a43e(0x1fb)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x46a43e(0x2d9)](){const _0x4b22be=_0x46a43e;return this[_0x4b22be(0x176)](),this[_0x4b22be(0x383)]['createInstance'](_0x3fc69e,this[_0x4b22be(0x166)],this['type'],null,this[_0x4b22be(0x3b7)],this[_0x4b22be(0x4dd)]);}['toggleOnline'](){return this;}['_schedule'](_0x51f07e){const _0xe2d341=_0x46a43e;_0x51f07e=_0x51f07e!=null?_0x51f07e:this[_0xe2d341(0x417)](),this['_scheduleTimestamp']=new Date()[_0xe2d341(0x322)](),this['_sendingTimer']=setTimeout(()=>{const _0x241d2b=_0xe2d341;this['_clearScheduledTask']();let _0x250a7e=null;switch(this[_0x241d2b(0x219)]){case _0x4418d5[_0x241d2b(0x258)]:{_0x250a7e=_0x2ced5e(this[_0x241d2b(0x3b7)],this[_0x241d2b(0x166)],this[_0x241d2b(0x397)],this[_0x241d2b(0x4a3)],this[_0x241d2b(0x39b)]);break;}case _0x4418d5[_0x241d2b(0x27d)]:{_0x250a7e=_0x2506bd(this['_pendingMutations'],this[_0x241d2b(0x166)],this[_0x241d2b(0x397)],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x241d2b(0x382)+this[_0x241d2b(0x219)]+'\x20in\x20_schedule.');}const {changeset:_0x1cfbe3,pendingMutations:_0x587bb7}=_0x250a7e;this['_handler'][_0x241d2b(0x3e4)](_0x1cfbe3);const _0x45a77d=_0x587bb7[_0x241d2b(0x1bb)]?this[_0x241d2b(0x383)]['createInstance'](_0xf5d66b,this[_0x241d2b(0x166)],this[_0x241d2b(0x219)],_0x1cfbe3,_0x587bb7,this[_0x241d2b(0x4dd)]):this[_0x241d2b(0x383)][_0x241d2b(0x431)](_0xdb51bd,this[_0x241d2b(0x166)],this[_0x241d2b(0x219)],_0x1cfbe3,this[_0x241d2b(0x4dd)]);_0x45a77d[_0x241d2b(0x385)](),this['_handler']['onStateChange'](this,_0x45a77d);},_0x51f07e);}[_0x46a43e(0x417)](){const _0x4e3774=_0x46a43e;var _0x20c323;return(_0x20c323=this[_0x4e3774(0x317)][_0x4e3774(0x3ea)](_0xb347b))!=null?_0x20c323:0x7d0;}[_0x46a43e(0x472)](){const _0x4fc6f4=_0x46a43e;throw new Error(_0x4fc6f4(0x1ac));}[_0x46a43e(0x176)](){const _0x3d3d2f=_0x46a43e;this[_0x3d3d2f(0x358)]!=null&&(clearTimeout(this[_0x3d3d2f(0x358)]),this['_sendingTimer']=null);}[_0x46a43e(0x2a8)](_0x3ef281){const _0x5abdeb=_0x46a43e;return this[_0x5abdeb(0x176)](),this[_0x5abdeb(0x383)][_0x5abdeb(0x431)](_0x5e1998,this['unitID'],this['type'],null,this['_pendingMutations'],this[_0x5abdeb(0x4dd)],_0x3ef281);}};_0x285dad=_0x1b88b6([_0x48ae34(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0x48ae34(0x5,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a[_0x46a43e(0x4ad)])),_0x48ae34(0x6,_0x245a54[_0x46a43e(0x4b5)](_0x575351['LocalCacheService'])),_0x48ae34(0x7,_0x245a54[_0x46a43e(0x4b5)](_0x4a6424)),_0x48ae34(0x8,_0x5019cf[_0x46a43e(0x4e6)]),_0x48ae34(0x9,_0x5019cf[_0x46a43e(0x3b9)]),_0x48ae34(0xa,_0x5019cf[_0x46a43e(0x460)]),_0x48ae34(0xb,_0x38ce1a[_0x46a43e(0x48b)]),_0x48ae34(0xc,_0x5019cf[_0x46a43e(0x4e2)]),_0x48ae34(0xd,_0x5019cf['IUndoRedoService'])],_0x285dad);let _0xdb51bd=class extends _0x2fb10b{constructor(_0x5f0126,_0x1c285b,_0x5deac0,_0x207728,_0x180987,_0x411c63,_0x34c4e9,_0xe2bf9,_0xfd8327,_0x45180f,_0x340bfc){const _0x212c57=_0x46a43e;super(_0x5f0126,_0x1c285b,_0x5deac0,[],_0x207728,_0xe2bf9,_0x340bfc,_0x411c63,_0x34c4e9),_0x3a44bb(this,_0x212c57(0x4a1),_0x212c57(0x28b)),(this[_0x212c57(0x383)]=_0x180987,this[_0x212c57(0x433)]=_0xfd8327,this[_0x212c57(0x43f)]=_0x45180f);}[_0x46a43e(0x378)](_0x1b4acc){const _0x2112b7=_0x46a43e,_0x1c0874=this['_injector']['createInstance'](_0xf5d66b,this[_0x2112b7(0x166)],this[_0x2112b7(0x219)],this[_0x2112b7(0x4e8)],[_0x1b4acc],this['_handler']);return _0x1c0874[_0x2112b7(0x385)](),_0x1c0874;}[_0x46a43e(0x2dc)](_0x42c4cd){const _0x5cfaae=_0x46a43e;if(this[_0x5cfaae(0x454)](_0x42c4cd))return this[_0x5cfaae(0x383)][_0x5cfaae(0x431)](_0x28d07c,this[_0x5cfaae(0x166)],this[_0x5cfaae(0x219)],this[_0x5cfaae(0x4e8)],[],null,[_0x42c4cd],this['_handler']);try{const _0x548026=this[_0x5cfaae(0x43f)][_0x5cfaae(0x1d7)]([_0x42c4cd],[this[_0x5cfaae(0x4e8)]],!0x1);if(_0x38ce1a[_0x5cfaae(0x3f7)](_0x548026)){const {c1Prime:_0x2720de,c2Prime:_0x48448f}=_0x548026;this[_0x5cfaae(0x408)](_0x2720de[0x0]),_0x48448f[0x0][_0x5cfaae(0x167)]=this[_0x5cfaae(0x337)]();const _0xa3770e=this[_0x5cfaae(0x383)][_0x5cfaae(0x431)](_0xdb51bd,this['unitID'],this['type'],_0x48448f[0x0],this[_0x5cfaae(0x4dd)]);return _0xa3770e['_updateLocalCache'](),_0xa3770e;}return this[_0x5cfaae(0x2a8)](!0x1);}catch(_0x46a9ec){return this['_logService'][_0x5cfaae(0x3a0)](_0x46a9ec),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x2c6f96){const _0x1b35b1=_0x46a43e,_0x50da41=this[_0x1b35b1(0x4a3)][_0x1b35b1(0x1cc)](this[_0x1b35b1(0x166)]);if(_0x2c6f96['revision']<_0x50da41-0x1)return this;if(this['_checkMissing'](_0x2c6f96))return this[_0x1b35b1(0x383)][_0x1b35b1(0x431)](_0x28d07c,this[_0x1b35b1(0x166)],this[_0x1b35b1(0x219)],null,[],this[_0x1b35b1(0x4e8)],[],this[_0x1b35b1(0x4dd)]);this[_0x1b35b1(0x17d)]();const _0x4dc8bf=this[_0x1b35b1(0x383)][_0x1b35b1(0x431)](_0x5a53e1,this[_0x1b35b1(0x166)],this[_0x1b35b1(0x219)],this[_0x1b35b1(0x4dd)]);return _0x4dc8bf[_0x1b35b1(0x385)](),_0x4dc8bf;}[_0x46a43e(0x1fb)](_0x383362){const _0x552457=_0x46a43e;return this['_onConflict'](!!(_0x383362!=null&&_0x383362[_0x552457(0x1b2)]));}[_0x46a43e(0x2d9)](){const _0x16ef34=_0x46a43e;return this[_0x16ef34(0x383)][_0x16ef34(0x431)](_0x3fc69e,this['unitID'],this['type'],this[_0x16ef34(0x4e8)],[],this[_0x16ef34(0x4dd)]);}[_0x46a43e(0x2d8)](){return this;}[_0x46a43e(0x472)](){const _0x4f71e8=_0x46a43e;this['_handler'][_0x4f71e8(0x3e4)](this[_0x4f71e8(0x4e8)]);}[_0x46a43e(0x2a8)](_0x6479cd){const _0x1e2a5a=_0x46a43e;return this[_0x1e2a5a(0x383)]['createInstance'](_0x5e1998,this[_0x1e2a5a(0x166)],this[_0x1e2a5a(0x219)],this[_0x1e2a5a(0x4e8)],[],this[_0x1e2a5a(0x4dd)],_0x6479cd);}};_0xdb51bd=_0x1b88b6([_0x48ae34(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0x48ae34(0x5,_0x245a54['Inject'](_0x38ce1a[_0x46a43e(0x4ad)])),_0x48ae34(0x6,_0x245a54[_0x46a43e(0x4b5)](_0x575351['LocalCacheService'])),_0x48ae34(0x7,_0x5019cf[_0x46a43e(0x3b9)]),_0x48ae34(0x8,_0x5019cf['ILogService']),_0x48ae34(0x9,_0x38ce1a[_0x46a43e(0x48b)]),_0x48ae34(0xa,_0x5019cf[_0x46a43e(0x33a)])],_0xdb51bd);let _0xf5d66b=class extends _0x2fb10b{constructor(_0x5d3eab,_0x19eac0,_0x17753a,_0x4d410c,_0x1ccf8d,_0x4b2576,_0x9b7eed,_0x502ba9,_0x5a1b2d,_0x3f3608,_0x28308c,_0x55b41b){const _0x12d46a=_0x46a43e;super(_0x5d3eab,_0x19eac0,_0x17753a,_0x4d410c,_0x1ccf8d,_0x5a1b2d,_0x55b41b,_0x9b7eed,_0x502ba9),_0x3a44bb(this,_0x12d46a(0x4a1),_0x12d46a(0x3af)),(this[_0x12d46a(0x383)]=_0x4b2576,this[_0x12d46a(0x433)]=_0x3f3608,this[_0x12d46a(0x43f)]=_0x28308c);}[_0x46a43e(0x378)](_0x5e357a){return this['_pendingMutations']['push'](_0x5e357a),this;}[_0x46a43e(0x2dc)](_0x2ced1f){const _0xd6e529=_0x46a43e;if(this['_checkMissing'](_0x2ced1f))return this[_0xd6e529(0x383)]['createInstance'](_0x28d07c,this[_0xd6e529(0x166)],this[_0xd6e529(0x219)],this[_0xd6e529(0x4e8)],this[_0xd6e529(0x3b7)],null,[_0x2ced1f],this[_0xd6e529(0x4dd)]);try{const _0x2a6769=this[_0xd6e529(0x43f)]['transformChangesets']([_0x2ced1f],[this[_0xd6e529(0x4e8)]],!0x1);if(_0x38ce1a[_0xd6e529(0x3f7)](_0x2a6769)){const {c1Prime:_0x17b7b9,c2Prime:_0x50159d}=_0x2a6769,_0x5047d7=this[_0xd6e529(0x43f)]['transformMutationsWithChangeset'](_0x17b7b9[0x0],this[_0xd6e529(0x3b7)]);if(_0x38ce1a[_0xd6e529(0x41f)](_0x5047d7)){const {c1Prime:_0x30213c,m2Prime:_0x44ac86}=_0x5047d7;return this['_executeRemoteChangeset'](_0x30213c),_0x50159d[0x0][_0xd6e529(0x167)]=this[_0xd6e529(0x337)](),this['_injector'][_0xd6e529(0x431)](_0xf5d66b,this[_0xd6e529(0x166)],this[_0xd6e529(0x219)],_0x50159d[0x0],_0x44ac86,this[_0xd6e529(0x4dd)]);}throw _0x5047d7['error'];}throw _0x2a6769[_0xd6e529(0x3a0)];}catch(_0x4dcbc7){return this[_0xd6e529(0x433)]['error'](_0x4dcbc7),this[_0xd6e529(0x2a8)](!0x1);}}[_0x46a43e(0x452)](_0x2b5af8){const _0x2c262c=_0x46a43e;if(this['_checkMissing'](_0x2b5af8))return this[_0x2c262c(0x383)][_0x2c262c(0x431)](_0x28d07c,this['unitID'],this[_0x2c262c(0x219)],null,this[_0x2c262c(0x3b7)],this[_0x2c262c(0x4e8)],[],this[_0x2c262c(0x4dd)]);this[_0x2c262c(0x17d)]();const _0x1a015c=this[_0x2c262c(0x383)][_0x2c262c(0x431)](_0x285dad,this['unitID'],this[_0x2c262c(0x219)],this[_0x2c262c(0x3b7)],this['_handler']);return _0x1a015c[_0x2c262c(0x3f1)](),_0x1a015c['_updateLocalCache'](),_0x1a015c;}['onRemoteRej'](_0x32eaf4){const _0x32e132=_0x46a43e;return this[_0x32e132(0x2a8)](!!(_0x32eaf4!=null&&_0x32eaf4[_0x32e132(0x1b2)]));}[_0x46a43e(0x2d9)](){const _0x4cbdf9=_0x46a43e;return this[_0x4cbdf9(0x383)][_0x4cbdf9(0x431)](_0x3fc69e,this[_0x4cbdf9(0x166)],this['type'],this['_awaitingChangeset'],this[_0x4cbdf9(0x3b7)],this['_handler']);}[_0x46a43e(0x2d8)](){return this;}[_0x46a43e(0x472)](){const _0x6376bc=_0x46a43e;this[_0x6376bc(0x4dd)][_0x6376bc(0x3e4)](this[_0x6376bc(0x4e8)]);}[_0x46a43e(0x2a8)](_0x1bc354){const _0x404934=_0x46a43e;return this['_injector'][_0x404934(0x431)](_0x5e1998,this[_0x404934(0x166)],this[_0x404934(0x219)],null,this['_pendingMutations'],this[_0x404934(0x4dd)],_0x1bc354);}};_0xf5d66b=_0x1b88b6([_0x48ae34(0x5,_0x245a54[_0x46a43e(0x4b5)](_0x245a54['Injector'])),_0x48ae34(0x6,_0x245a54['Inject'](_0x38ce1a['RevisionService'])),_0x48ae34(0x7,_0x245a54[_0x46a43e(0x4b5)](_0x575351[_0x46a43e(0x2d1)])),_0x48ae34(0x8,_0x5019cf[_0x46a43e(0x3b9)]),_0x48ae34(0x9,_0x5019cf[_0x46a43e(0x4e6)]),_0x48ae34(0xa,_0x38ce1a[_0x46a43e(0x48b)]),_0x48ae34(0xb,_0x5019cf[_0x46a43e(0x33a)])],_0xf5d66b);let _0x5e1998=class extends _0x2fb10b{constructor(_0x240f91,_0xba7f29,_0x12bbf6,_0x143d91,_0xd3e70a,_0x239d0b=!0x1,_0x336cfa,_0x525b66,_0x46d1ee,_0x5e1cfd,_0xc080a,_0x9194e0,_0x8a1c72){const _0x2a4999=_0x46a43e;super(_0x240f91,_0xba7f29,_0x12bbf6,_0x143d91,_0xd3e70a,_0x525b66,_0x46d1ee,_0xc080a,_0x5e1cfd),_0x3a44bb(this,_0x2a4999(0x4a1),'conflict'),(this['_isPermissionRej']=_0x239d0b,this[_0x2a4999(0x1e0)]=_0x336cfa,this[_0x2a4999(0x508)]=_0x9194e0,this[_0x2a4999(0x2e1)]=_0x8a1c72,this[_0x2a4999(0x275)](),this[_0x2a4999(0x16d)](),this[_0x2a4999(0x4f1)]());}['appendMutation'](){return this;}[_0x46a43e(0x2dc)](){return this;}[_0x46a43e(0x452)](){return this;}['onRemoteRej'](){return this;}[_0x46a43e(0x2d9)](){return this;}[_0x46a43e(0x2d8)](){return this;}[_0x46a43e(0x472)](){const _0x4c433d=_0x46a43e;throw new Error(_0x4c433d(0x405));}[_0x46a43e(0x16d)](){const _0x3e61f4=_0x46a43e;this[_0x3e61f4(0x36e)][_0x3e61f4(0x484)](this[_0x3e61f4(0x166)],this[_0x3e61f4(0x219)],null,[]);}['_showConflictNotification'](){const _0x175b41=_0x46a43e;this[_0x175b41(0x3a6)]?this[_0x175b41(0x2e1)][_0x175b41(0x4f6)]({'title':this[_0x175b41(0x508)]['t'](_0x175b41(0x488)),'content':this[_0x175b41(0x508)]['t'](_0x175b41(0x1c8)),'type':_0x175b41(0x3a0),'duration':0x0}):this['_notificationService'][_0x175b41(0x4f6)]({'title':this[_0x175b41(0x508)]['t'](_0x175b41(0x23a)),'content':this[_0x175b41(0x508)]['t']('conflict.content'),'type':_0x175b41(0x3a0),'duration':0x0});}[_0x46a43e(0x4f1)](){const _0x18d0d5=_0x46a43e;this[_0x18d0d5(0x1e0)][_0x18d0d5(0x37d)](new _0x7f012d['WorkbookEditablePermission'](this[_0x18d0d5(0x166)])['id'],!0x1);}};_0x5e1998=_0x1b88b6([_0x48ae34(0x6,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf[_0x46a43e(0x402)])),_0x48ae34(0x7,_0x5019cf['ICommandService']),_0x48ae34(0x8,_0x5019cf[_0x46a43e(0x33a)]),_0x48ae34(0x9,_0x245a54[_0x46a43e(0x4b5)](_0x575351[_0x46a43e(0x2d1)])),_0x48ae34(0xa,_0x245a54['Inject'](_0x38ce1a[_0x46a43e(0x4ad)])),_0x48ae34(0xb,_0x245a54['Inject'](_0x5019cf[_0x46a43e(0x3a5)])),_0x48ae34(0xc,_0x5138ef['INotificationService'])],_0x5e1998);let _0x3fc69e=class extends _0x2fb10b{constructor(_0x17437b,_0x5559ac,_0x309a89,_0x58f679,_0x138e6c,_0x372a83,_0x47483d,_0x273a6c,_0x5ad740,_0x1059b2){const _0x32a7e1=_0x46a43e;super(_0x17437b,_0x5559ac,_0x309a89,_0x58f679,_0x138e6c,_0x5ad740,_0x1059b2,_0x47483d,_0x273a6c),_0x3a44bb(this,_0x32a7e1(0x4a1),_0x32a7e1(0x4a4)),this['_injector']=_0x372a83;}[_0x46a43e(0x378)](_0xbe072e){const _0x24d2d1=_0x46a43e;return this[_0x24d2d1(0x3b7)][_0x24d2d1(0x23e)](_0xbe072e),this[_0x24d2d1(0x385)](),this;}[_0x46a43e(0x2dc)](_0x370fda){const _0x1a2679=_0x46a43e;throw new Error(_0x1a2679(0x498));}[_0x46a43e(0x452)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x46a43e(0x1fb)](){const _0x266269=_0x46a43e;throw new Error(_0x266269(0x235));}['toggleOffline'](){return this;}[_0x46a43e(0x2d8)](){const _0xdcc31f=_0x46a43e,{_injector:_0x346989,_pendingMutations:_0x5d1837,_awaitingChangeset:_0x7f68eb,unitID:_0x538eb8,_handler:_0x8fa594,type:_0x46fc32}=this,_0x3a12c2=_0x12ba56(_0x346989,_0x538eb8,_0x46fc32,_0x7f68eb,_0x5d1837,_0x8fa594);return _0x3a12c2 instanceof _0x285dad?_0x3a12c2['_schedule']():(_0x3a12c2 instanceof _0xf5d66b||_0x3a12c2 instanceof _0xdb51bd)&&_0x3a12c2[_0xdcc31f(0x472)](),_0x3a12c2;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x3fc69e=_0x1b88b6([_0x48ae34(0x5,_0x245a54[_0x46a43e(0x4b5)](_0x245a54['Injector'])),_0x48ae34(0x6,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a[_0x46a43e(0x4ad)])),_0x48ae34(0x7,_0x245a54[_0x46a43e(0x4b5)](_0x575351['LocalCacheService'])),_0x48ae34(0x8,_0x5019cf[_0x46a43e(0x3b9)]),_0x48ae34(0x9,_0x5019cf['IUndoRedoService'])],_0x3fc69e);let _0x28d07c=class extends _0x2fb10b{constructor(_0x176a54,_0x59fdd6,_0x64339,_0x1efd65,_0x4d7030,_0x235fd0,_0x33e3aa,_0xeb9b3c,_0x333fa1,_0x40f506,_0x5116b0,_0x176654,_0x2696e7,_0x1fb681){const _0x3ff192=_0x46a43e;super(_0x176a54,_0x59fdd6,_0x64339,_0x1efd65,_0x33e3aa,_0x176654,_0x2696e7,_0x333fa1,_0x40f506),_0x3a44bb(this,_0x3ff192(0x4a1),'fetch_missing'),(this[_0x3ff192(0x421)]=_0x4d7030,this[_0x3ff192(0x509)]=_0x235fd0,this['_injector']=_0xeb9b3c,this[_0x3ff192(0x433)]=_0x5116b0,this[_0x3ff192(0x43f)]=_0x1fb681);}[_0x46a43e(0x44e)](_0xdc6fa0){const _0x600fd=_0x46a43e;try{const _0x53ed34=[..._0xdc6fa0,...this[_0x600fd(0x509)]],_0x57b50c=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']]['filter'](_0x594529=>!!_0x594529);let _0x11b7dd,_0x8f0368;if(_0x57b50c[_0x600fd(0x1bb)]){const _0xcd31b8=this[_0x600fd(0x43f)][_0x600fd(0x1d7)](_0x53ed34,_0x57b50c,!0x1);if(!_0x38ce1a[_0x600fd(0x3f7)](_0xcd31b8))throw _0xcd31b8[_0x600fd(0x3a0)];_0x11b7dd=_0xcd31b8[_0x600fd(0x2bc)],_0x8f0368=_0xcd31b8[_0x600fd(0x1e5)];}else _0x11b7dd=_0x53ed34,_0x8f0368=[];let _0x48ca56=this[_0x600fd(0x3b7)];_0x11b7dd[_0x600fd(0x39a)](_0x50d889=>{const _0x4bc919=_0x600fd;let _0xb39a6e;if(_0x48ca56[_0x4bc919(0x1bb)]){const _0x153e44=this['_transformService'][_0x4bc919(0x3ba)](_0x50d889,_0x48ca56);if(!_0x38ce1a['isTransformMutationsWithChangesetSuccess'](_0x153e44))throw _0x153e44[_0x4bc919(0x3a0)];_0xb39a6e=_0x153e44[_0x4bc919(0x2bc)],_0x48ca56=_0x153e44['m2Prime'];}else _0xb39a6e=_0x50d889;this[_0x4bc919(0x408)](_0xb39a6e);}),this[_0x600fd(0x421)]&&this[_0x600fd(0x17d)](),this[_0x600fd(0x4e8)]&&_0x8f0368['length']&&(_0x8f0368[0x0][_0x600fd(0x167)]=this[_0x600fd(0x337)]());let _0x5876d2;if(this[_0x600fd(0x4e8)]&&_0x48ca56['length']!==0x0)_0x5876d2=this[_0x600fd(0x383)][_0x600fd(0x431)](_0xf5d66b,this[_0x600fd(0x166)],this[_0x600fd(0x219)],_0x8f0368[0x0],_0x48ca56,this[_0x600fd(0x4dd)]);else{if(this[_0x600fd(0x4e8)]&&_0x48ca56[_0x600fd(0x1bb)]===0x0)_0x8f0368[0x0][_0x600fd(0x167)]=this[_0x600fd(0x337)](),_0x5876d2=this['_injector']['createInstance'](_0xdb51bd,this[_0x600fd(0x166)],this['type'],_0x8f0368[0x0],this[_0x600fd(0x4dd)]);else{if(_0x48ca56[_0x600fd(0x1bb)]!==0x0){const _0x31ae3f=this[_0x600fd(0x383)][_0x600fd(0x431)](_0x285dad,this[_0x600fd(0x166)],this[_0x600fd(0x219)],_0x48ca56,this[_0x600fd(0x4dd)]);_0x31ae3f[_0x600fd(0x3f1)](),_0x5876d2=_0x31ae3f;}else _0x5876d2=this[_0x600fd(0x383)][_0x600fd(0x431)](_0x5a53e1,this[_0x600fd(0x166)],this[_0x600fd(0x219)],this[_0x600fd(0x4dd)]);}}return _0x5876d2[_0x600fd(0x385)](),_0x5876d2;}catch(_0x7d6fb5){return this[_0x600fd(0x433)][_0x600fd(0x3a0)](_0x600fd(0x45f),_0x600fd(0x1b1),_0x7d6fb5),this[_0x600fd(0x383)][_0x600fd(0x431)](_0x5e1998,this[_0x600fd(0x166)],this[_0x600fd(0x219)],this[_0x600fd(0x4e8)],this[_0x600fd(0x3b7)],this['_handler'],!0x1);}}[_0x46a43e(0x472)](){const _0x5e817e=_0x46a43e;throw new Error(_0x5e817e(0x3f8));}[_0x46a43e(0x378)](_0x497f86){const _0x57ad2a=_0x46a43e;return this[_0x57ad2a(0x3b7)]['push'](_0x497f86),this;}[_0x46a43e(0x2dc)](_0x259b34){const _0x1d1417=_0x46a43e;return this[_0x1d1417(0x509)]['push'](_0x259b34),this;}[_0x46a43e(0x452)](_0x448ccb){const _0x19e508=_0x46a43e;if(this[_0x19e508(0x4e8)])return this[_0x19e508(0x421)]=this[_0x19e508(0x4e8)],this[_0x19e508(0x4e8)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x46a43e(0x1fb)](_0xa4fbf7){const _0x431ec5=_0x46a43e;return this[_0x431ec5(0x2a8)](!!(_0xa4fbf7!=null&&_0xa4fbf7[_0x431ec5(0x1b2)]));}[_0x46a43e(0x2d9)](){const _0x552f2b=_0x46a43e;return this[_0x552f2b(0x383)][_0x552f2b(0x431)](_0x3fc69e,this[_0x552f2b(0x166)],this[_0x552f2b(0x219)],this[_0x552f2b(0x4e8)],this[_0x552f2b(0x3b7)],this['_handler']);}[_0x46a43e(0x2d8)](){return this;}['_onConflict'](_0x161df4){const _0x181236=_0x46a43e;return this[_0x181236(0x383)][_0x181236(0x431)](_0x5e1998,this[_0x181236(0x166)],this['type'],this['_awaitingChangeset'],this[_0x181236(0x3b7)],this['_handler'],_0x161df4);}};_0x28d07c=_0x1b88b6([_0x48ae34(0x7,_0x245a54[_0x46a43e(0x4b5)](_0x245a54['Injector'])),_0x48ae34(0x8,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a[_0x46a43e(0x4ad)])),_0x48ae34(0x9,_0x245a54[_0x46a43e(0x4b5)](_0x575351['LocalCacheService'])),_0x48ae34(0xa,_0x5019cf[_0x46a43e(0x4e6)]),_0x48ae34(0xb,_0x5019cf[_0x46a43e(0x3b9)]),_0x48ae34(0xc,_0x5019cf[_0x46a43e(0x33a)]),_0x48ae34(0xd,_0x38ce1a['ITransformService'])],_0x28d07c);function _0x12ba56(_0x1ab916,_0x1ee636,_0xe154b9,_0x54998e,_0x2975ce,_0x3db330){const _0x15a061=_0x46a43e;return _0x54998e&&_0x2975ce['length']?_0x1ab916[_0x15a061(0x431)](_0xf5d66b,_0x1ee636,_0xe154b9,_0x54998e,_0x2975ce,_0x3db330):_0x54998e?_0x1ab916[_0x15a061(0x431)](_0xdb51bd,_0x1ee636,_0xe154b9,_0x54998e,_0x3db330):_0x2975ce[_0x15a061(0x1bb)]?_0x1ab916[_0x15a061(0x431)](_0x285dad,_0x1ee636,_0xe154b9,_0x2975ce,_0x3db330):_0x1ab916[_0x15a061(0x431)](_0x5a53e1,_0x1ee636,_0xe154b9,_0x3db330);}var _0x2f88c8=Object[_0x46a43e(0x1c7)],_0x202be2=Object[_0x46a43e(0x1e9)],_0x4ee1c7=(_0x4b729e,_0x295994,_0x3c6071,_0x3667d1)=>{for(var _0x507fad=_0x3667d1>0x1?void 0x0:_0x3667d1?_0x202be2(_0x295994,_0x3c6071):_0x295994,_0x2c5a92=_0x4b729e['length']-0x1,_0x2101a8;_0x2c5a92>=0x0;_0x2c5a92--)(_0x2101a8=_0x4b729e[_0x2c5a92])&&(_0x507fad=(_0x3667d1?_0x2101a8(_0x295994,_0x3c6071,_0x507fad):_0x2101a8(_0x507fad))||_0x507fad);return _0x3667d1&&_0x507fad&&_0x2f88c8(_0x295994,_0x3c6071,_0x507fad),_0x507fad;},_0x3ecb27=(_0x47e578,_0x3bb050)=>(_0x18c67b,_0x20ed3c)=>_0x3bb050(_0x18c67b,_0x20ed3c,_0x47e578);_0x575351[_0x46a43e(0x3fb)]=class extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(_0x41941e,_0x6c7de0,_0x5dc4fd){const _0x2aea6e=_0x46a43e;super(),_0x3a44bb(this,_0x2aea6e(0x4ec),new Map()),_0x3a44bb(this,'_entityInit$',new _0x54735b['Subject']()),(this['_injector']=_0x41941e,this['_collabSessionService']=_0x6c7de0,this['_univerInstanceService']=_0x5dc4fd,this['_init']());}['dispose'](){const _0x2c6f58=_0x46a43e;super['dispose'](),this[_0x2c6f58(0x4ec)][_0x2c6f58(0x39a)](_0x4fff90=>_0x4fff90[_0x2c6f58(0x173)]()),this[_0x2c6f58(0x4ec)][_0x2c6f58(0x4f4)]();}[_0x46a43e(0x4f7)](_0x18edbe){const _0x2d77e9=_0x46a43e;var _0x4e8e21;return(_0x4e8e21=this['_entities'][_0x2d77e9(0x2db)](_0x18edbe))!=null?_0x4e8e21:null;}['getCollabEntity$'](_0x15d9d4){const _0x479db1=_0x46a43e,_0x5d4f1f=this[_0x479db1(0x4f7)](_0x15d9d4);return _0x5d4f1f?_0x54735b['of'](_0x5d4f1f):this[_0x479db1(0x1be)][_0x479db1(0x4b0)](_0x33876a[_0x479db1(0x2a4)](_0x130522=>_0x130522[_0x479db1(0x166)]===_0x15d9d4));}[_0x46a43e(0x336)](){const _0x2e42f8=_0x46a43e;this[_0x2e42f8(0x397)][_0x2e42f8(0x1b5)](_0x5019cf[_0x2e42f8(0x28c)]['UNIVER_SHEET'])[_0x2e42f8(0x4b0)](_0x54735b[_0x2e42f8(0x41a)](this[_0x2e42f8(0x4a5)]),_0x33876a[_0x2e42f8(0x47b)](0x10))[_0x2e42f8(0x324)](async _0x136a95=>{const _0x4b962d=_0x2e42f8,_0x1ecf93=_0x136a95[_0x4b962d(0x2c6)](),_0x1f8ea9=await this[_0x4b962d(0x2e7)](_0x1ecf93,_0x4418d5[_0x4b962d(0x258)]);this[_0x4b962d(0x4ec)][_0x4b962d(0x3f3)](_0x1ecf93,_0x1f8ea9);}),this[_0x2e42f8(0x397)][_0x2e42f8(0x1b5)](_0x5019cf['UniverInstanceType'][_0x2e42f8(0x27d)])[_0x2e42f8(0x4b0)](_0x54735b[_0x2e42f8(0x41a)](this[_0x2e42f8(0x4a5)]),_0x33876a[_0x2e42f8(0x47b)](0x10))[_0x2e42f8(0x4b0)](_0x33876a['filter'](_0x13daaf=>!_0x13daaf[_0x2e42f8(0x2c6)]()['startsWith']('__')))['subscribe'](async _0x1e7c01=>{const _0x3da5fb=_0x2e42f8,_0x63e43e=_0x1e7c01[_0x3da5fb(0x2c6)](),_0x3971eb=await this['_startCollaboration'](_0x63e43e,_0x4418d5[_0x3da5fb(0x27d)]);this[_0x3da5fb(0x4ec)]['set'](_0x63e43e,_0x3971eb);}),_0x54735b[_0x2e42f8(0x3e1)](this[_0x2e42f8(0x397)]['getTypeOfUnitDisposed$'](_0x5019cf['UniverInstanceType'][_0x2e42f8(0x258)]),this[_0x2e42f8(0x397)][_0x2e42f8(0x371)](_0x5019cf['UniverInstanceType'][_0x2e42f8(0x27d)]))[_0x2e42f8(0x4b0)](_0x54735b['takeUntil'](this[_0x2e42f8(0x4a5)]))[_0x2e42f8(0x324)](_0x59dace=>{const _0x59bb4a=_0x2e42f8,_0xf70fc3=_0x59dace[_0x59bb4a(0x2c6)](),_0x1747c6=this[_0x59bb4a(0x4ec)][_0x59bb4a(0x2db)](_0xf70fc3);_0x1747c6&&(_0x1747c6[_0x59bb4a(0x173)](),this['_entities'][_0x59bb4a(0x352)](_0xf70fc3));});}async[_0x46a43e(0x2e7)](_0x1e7dcb,_0x2844a0){const _0x4e5c0a=_0x46a43e,_0x4815a5=await this[_0x4e5c0a(0x2b7)][_0x4e5c0a(0x33d)](_0x1e7dcb),_0x39bdca=this[_0x4e5c0a(0x383)][_0x4e5c0a(0x431)](this[_0x4e5c0a(0x19e)](_0x2844a0),_0x1e7dcb,_0x2844a0,_0x4815a5);return await _0x39bdca[_0x4e5c0a(0x3a7)](),this[_0x4e5c0a(0x1be)][_0x4e5c0a(0x230)](_0x39bdca),_0x39bdca;}[_0x46a43e(0x19e)](_0x405b5f){const _0x108b1d=_0x46a43e;switch(_0x405b5f){case _0x4418d5[_0x108b1d(0x27d)]:return _0x2b8edc;case _0x4418d5[_0x108b1d(0x258)]:return _0x21f2b6;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x405b5f);}}},_0x575351[_0x46a43e(0x3fb)]=_0x4ee1c7([_0x5019cf[_0x46a43e(0x3b2)](_0x5019cf[_0x46a43e(0x2ed)][_0x46a43e(0x241)],_0x575351[_0x46a43e(0x3fb)]),_0x3ecb27(0x0,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0x3ecb27(0x1,_0x245a54[_0x46a43e(0x4b5)](_0x575351[_0x46a43e(0x4be)])),_0x3ecb27(0x2,_0x5019cf['IUniverInstanceService'])],_0x575351[_0x46a43e(0x3fb)]);let _0xb2b867=class extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(_0x311b57,_0x45a3e2,_0x4e2f24,_0x352ad8,_0x85cf79,_0x15b25b,_0x502d94,_0x2135e0,_0x2bff26,_0x39c2dc,_0x2f8fd4,_0x15b3ee,_0x10e6ad){const _0x21d580=_0x46a43e;super(),_0x3a44bb(this,_0x21d580(0x48e),new _0x54735b['BehaviorSubject'](null)),_0x3a44bb(this,_0x21d580(0x4a0),this[_0x21d580(0x48e)]['asObservable']()),_0x3a44bb(this,_0x21d580(0x4b4)),_0x3a44bb(this,'_collaborationPaused',!0x1),_0x3a44bb(this,_0x21d580(0x1e8),this[_0x21d580(0x4a0)]['pipe'](_0x33876a['map'](_0x30f093=>_0x30f093?_0x30f093[_0x21d580(0x4a1)]:_0x348409[_0x21d580(0x1b8)]),_0x33876a[_0x21d580(0x247)](0x1))),_0x3a44bb(this,_0x21d580(0x4eb),!0x1),_0x3a44bb(this,'_remoteChangesetQueue',[]),(this[_0x21d580(0x166)]=_0x311b57,this[_0x21d580(0x1c3)]=_0x45a3e2,this['_session']=_0x4e2f24,this['_injector']=_0x352ad8,this[_0x21d580(0x36e)]=_0x85cf79,this['_compressMutationService']=_0x15b25b,this[_0x21d580(0x508)]=_0x502d94,this[_0x21d580(0x4a3)]=_0x2135e0,this[_0x21d580(0x433)]=_0x2bff26,this[_0x21d580(0x34d)]=_0x39c2dc,this[_0x21d580(0x206)]=_0x2f8fd4,this[_0x21d580(0x1e0)]=_0x15b3ee,this['_singleActiveUnitService']=_0x10e6ad);}get['state'](){const _0x29fb0a=_0x46a43e;return this[_0x29fb0a(0x4b4)];}async[_0x46a43e(0x3a7)](){const _0x16fae9=_0x46a43e;if(this[_0x16fae9(0x468)])throw new Error(_0x16fae9(0x481));await this[_0x16fae9(0x336)]();}[_0x46a43e(0x237)](){const _0xec6f40=_0x46a43e;return this[_0xec6f40(0x2c4)]=!0x0,_0x5019cf[_0xec6f40(0x35e)](()=>{const _0x3ac7f5=_0xec6f40;this[_0x3ac7f5(0x2c4)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x2a7852){const _0x89068e=_0x46a43e;this[_0x89068e(0x4b4)]=_0x2a7852,this[_0x89068e(0x48e)]['next'](_0x2a7852);}async[_0x46a43e(0x336)](){const _0x4734f5=_0x46a43e;var _0x1aeaad;return this['_updateState'](await this[_0x4734f5(0x1ee)]()),this[_0x4734f5(0x15a)]&&((_0x1aeaad=this[_0x4734f5(0x15a)])==null||_0x1aeaad[_0x4734f5(0x4f5)](this['unitID']),this[_0x4734f5(0x3e8)](_0x5019cf[_0x4734f5(0x35e)](this[_0x4734f5(0x15a)][_0x4734f5(0x48f)](this[_0x4734f5(0x166)])['subscribe'](_0x4949e7=>{const _0x597326=_0x4734f5;this[_0x597326(0x433)]['debug']('[CollaborationEntity]',_0x597326(0x3b0),_0x4949e7),_0x4949e7===_0x5c7c4a['OTHER_CLIENTS_EDITING']?(this[_0x597326(0x206)][_0x597326(0x4f6)]({'content':this[_0x597326(0x508)]['t'](_0x597326(0x368)),'type':_0x478174['MessageType'][_0x597326(0x1da)]}),this[_0x597326(0x1e0)]['updatePermissionPoint'](new _0x7f012d[(_0x597326(0x195))](this[_0x597326(0x166)])['id'],!0x1)):this['_permissionService'][_0x597326(0x37d)](new _0x7f012d['WorkbookEditablePermission'](this[_0x597326(0x166)])['id'],!0x0);})))),this[_0x4734f5(0x3e8)](_0x5019cf[_0x4734f5(0x35e)](this[_0x4734f5(0x2b8)]['sessionStatus$'][_0x4734f5(0x324)](_0x17d12f=>{const _0x4c07b3=_0x4734f5;_0x17d12f===_0x1ae891[_0x4c07b3(0x440)]?this[_0x4c07b3(0x1ba)]():_0x17d12f===_0x1ae891[_0x4c07b3(0x1b8)]&&this[_0x4c07b3(0x2c0)]();}))),this[_0x4734f5(0x3e8)](_0x5019cf[_0x4734f5(0x35e)](this[_0x4734f5(0x2b8)]['event$'][_0x4734f5(0x324)](_0x52b69e=>{const _0x1625d6=_0x4734f5;try{switch(_0x52b69e[_0x1625d6(0x24d)]){case _0x38ce1a['CollaborationEvent'][_0x1625d6(0x38d)]:{this[_0x1625d6(0x218)](_0x38ce1a[_0x1625d6(0x4db)](_0x52b69e[_0x1625d6(0x23f)]));break;}case _0x38ce1a[_0x1625d6(0x4cc)][_0x1625d6(0x4b7)]:{this[_0x1625d6(0x1bc)](_0x52b69e[_0x1625d6(0x23f)]);break;}case _0x38ce1a[_0x1625d6(0x4cc)][_0x1625d6(0x2f2)]:{this[_0x1625d6(0x4c5)]();break;}case _0x38ce1a[_0x1625d6(0x4cc)][_0x1625d6(0x31d)]:{this[_0x1625d6(0x245)](_0x52b69e[_0x1625d6(0x23f)]['changesets'][_0x1625d6(0x473)](_0x1aba1f=>_0x38ce1a[_0x1625d6(0x4db)](_0x1aba1f)));break;}case _0x38ce1a['CollaborationEvent']['PERMISSION_REJ']:this[_0x1625d6(0x4c5)]({'isPermissionRej':!0x0});}}catch(_0x3b0aa2){throw console[_0x1625d6(0x3a0)](_0x1625d6(0x3e6),_0x3b0aa2),_0x3b0aa2;}}))),this[_0x4734f5(0x4b4)];}[_0x46a43e(0x424)](){const _0x14a8e9=_0x46a43e;this[_0x14a8e9(0x4eb)]=!0x1;}[_0x46a43e(0x4e3)](){const _0x6ab553=_0x46a43e;if(this['_transitionLocked'])throw new Error(_0x6ab553(0x3fa));this[_0x6ab553(0x4eb)]=!0x0;}['_onLocalMutation'](_0x5174dd){const _0x1683ff=_0x46a43e;this[_0x1683ff(0x4e3)](),this[_0x1683ff(0x1af)](this[_0x1683ff(0x4b4)][_0x1683ff(0x378)](_0x5174dd)),this[_0x1683ff(0x424)]();}[_0x46a43e(0x218)](_0x1881ac){const _0xf6e133=_0x46a43e;if(!(_0x1881ac[_0xf6e133(0x1ca)]<=this['_revisionService']['getCurrentRevForDocument'](this[_0xf6e133(0x166)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0xf6e133(0x23e)](_0x1881ac);return;}this[_0xf6e133(0x192)](_0x1881ac);}}['_exhaustRemoteChangesetQueue'](){const _0x5d5f50=_0x46a43e;this[_0x5d5f50(0x281)][_0x5d5f50(0x39a)](_0x57e22f=>this['_applyRemoteChangeset'](_0x57e22f)),this[_0x5d5f50(0x281)]=[];}[_0x46a43e(0x192)](_0x91bcea){const _0x4921c1=_0x46a43e,_0x3779b3=this['_compressMutationService'][_0x4921c1(0x428)]['fetchThroughInterceptors'](this[_0x4921c1(0x261)]['interceptor']['getInterceptPoints']()[_0x4921c1(0x2a7)])(_0x91bcea[_0x4921c1(0x2c2)],null)||_0x91bcea[_0x4921c1(0x2c2)],_0x4f8b2d={..._0x91bcea,'mutations':_0x3779b3};this[_0x4921c1(0x4e3)](),this['_updateState'](this[_0x4921c1(0x4b4)]['onRemoteChangeset'](_0x4f8b2d)),this['_unlockTransition']();}[_0x46a43e(0x1bc)](_0x3cb18d){const _0x4a68c5=_0x46a43e;this[_0x4a68c5(0x4e3)](),this[_0x4a68c5(0x1af)](this['_state'][_0x4a68c5(0x452)](_0x3cb18d)),this[_0x4a68c5(0x424)]();}[_0x46a43e(0x4c5)](_0x488204){const _0x2d9948=_0x46a43e;this[_0x2d9948(0x4e3)](),this[_0x2d9948(0x1af)](this[_0x2d9948(0x4b4)][_0x2d9948(0x1fb)](_0x488204)),this['_unlockTransition']();}['_onFetchMissResult'](_0xc601fb){const _0x52fc33=_0x46a43e;if(!(this['_state']instanceof _0x28d07c))throw new TypeError(_0x52fc33(0x33c));const _0x241a20=_0xc601fb[_0x52fc33(0x473)](_0x2791b3=>{const _0x5a2121=_0x52fc33,_0xf0b90b=this[_0x5a2121(0x261)][_0x5a2121(0x428)][_0x5a2121(0x48a)](this[_0x5a2121(0x261)][_0x5a2121(0x428)][_0x5a2121(0x2c1)]()[_0x5a2121(0x2a7)])(_0x2791b3[_0x5a2121(0x2c2)],null)||_0x2791b3[_0x5a2121(0x2c2)];return{..._0x2791b3,'mutations':_0xf0b90b};});this[_0x52fc33(0x4e3)](),this['_updateState'](this[_0x52fc33(0x4b4)][_0x52fc33(0x44e)](_0x241a20)),this[_0x52fc33(0x424)]();}[_0x46a43e(0x2c0)](){const _0x3659cb=_0x46a43e;this[_0x3659cb(0x4e3)](),this[_0x3659cb(0x1af)](this[_0x3659cb(0x4b4)][_0x3659cb(0x2d9)]()),this['_unlockTransition']();}['_toggleOnline'](){const _0x309c6a=_0x46a43e;this['_lockTransition'](),this['_updateState'](this[_0x309c6a(0x4b4)][_0x309c6a(0x2d8)]()),this[_0x309c6a(0x424)]();}async[_0x46a43e(0x1ee)](){return new Promise(_0x2d6f4b=>{const _0x301457=_0x50f8;this[_0x301457(0x2b8)]['sessionStatus$']['pipe'](_0x33876a[_0x301457(0x341)](0x1))[_0x301457(0x324)](async _0x2e0876=>{const _0x4162bf=_0x301457;_0x2d6f4b(await this[_0x4162bf(0x49b)](_0x2e0876===_0x1ae891[_0x4162bf(0x440)]));});});}[_0x46a43e(0x1a0)](){const _0x360576=_0x46a43e,_0x508cb8=this[_0x360576(0x166)];return{'onStateChange':(_0xc557d8,_0x36661d)=>{const _0x3bb446=_0x360576;if(_0xc557d8!==this['_state'])throw new Error(_0x3bb446(0x325)+_0xc557d8[_0x3bb446(0x4a1)]+_0x3bb446(0x394)+_0x36661d[_0x3bb446(0x4a1)]+_0x3bb446(0x390)+this[_0x3bb446(0x4b4)][_0x3bb446(0x4a1)]);this[_0x3bb446(0x1af)](_0x36661d);},'onSendChangeset':_0x2ffcbd=>{const _0x16cb80=_0x360576,_0x2265c6={'eventID':_0x38ce1a['CollaborationEvent'][_0x16cb80(0x399)],'data':{'unitID':_0x2ffcbd['unitID'],'unitType':this[_0x16cb80(0x1c3)],'changeset':_0x2ffcbd,'memberID':this[_0x16cb80(0x2b8)][_0x16cb80(0x3bf)]()}};this[_0x16cb80(0x2b8)][_0x16cb80(0x175)](_0x2265c6,this[_0x16cb80(0x166)]);},'onMissingChangesets':({from:_0x5d8ea9,to:_0x4db7d6})=>{const _0x50ace7=_0x360576;this[_0x50ace7(0x433)][_0x50ace7(0x418)]('[CollaborationEntity]',_0x50ace7(0x465)+_0x5d8ea9+_0x50ace7(0x2c9)+_0x4db7d6);const _0x10e28c={'eventID':_0x38ce1a[_0x50ace7(0x4cc)][_0x50ace7(0x469)],'data':{'unitID':_0x508cb8,'unitType':this[_0x50ace7(0x1c3)],'from':_0x5d8ea9,'to':_0x4db7d6}};this['_session'][_0x50ace7(0x175)](_0x10e28c,this[_0x50ace7(0x166)]);}};}async[_0x46a43e(0x49b)](_0x5044d0){const _0x5023eb=_0x46a43e;var _0x4d3cc2,_0x2dda30;const _0x299ced=await this[_0x5023eb(0x36e)][_0x5023eb(0x444)](this[_0x5023eb(0x166)]),_0x4502ec=(_0x4d3cc2=_0x299ced==null?void 0x0:_0x299ced[_0x5023eb(0x2c2)])!=null?_0x4d3cc2:[],_0x880010=(_0x2dda30=_0x299ced==null?void 0x0:_0x299ced['awaitingChangeset'])!=null?_0x2dda30:null,_0x4ecec4=this[_0x5023eb(0x166)];try{this[_0x5023eb(0x416)](_0x880010,_0x4502ec);}catch(_0x14984b){this[_0x5023eb(0x433)][_0x5023eb(0x3a0)](_0x14984b);}const _0x383101=this['_createHandler']();if(_0x5044d0){const _0x17ab8d=_0x12ba56(this[_0x5023eb(0x383)],_0x4ecec4,this[_0x5023eb(0x1c3)],_0x880010,_0x4502ec,_0x383101);return _0x17ab8d instanceof _0x285dad?_0x17ab8d[_0x5023eb(0x3f1)]():(_0x17ab8d instanceof _0xf5d66b||_0x17ab8d instanceof _0xdb51bd)&&_0x17ab8d['resend'](),_0x17ab8d;}return this[_0x5023eb(0x383)][_0x5023eb(0x431)](_0x3fc69e,_0x4ecec4,this[_0x5023eb(0x1c3)],_0x880010,_0x4502ec,_0x383101);}[_0x46a43e(0x416)](_0x14963a,_0x320f07){const _0x5de30d=_0x46a43e;var _0x2280f6,_0x45824d;const _0x677580=this[_0x5de30d(0x261)][_0x5de30d(0x428)][_0x5de30d(0x48a)](this['_compressMutationService'][_0x5de30d(0x428)][_0x5de30d(0x2c1)]()[_0x5de30d(0x2a7)]);(_0x2280f6=_0x677580((_0x14963a==null?void 0x0:_0x14963a[_0x5de30d(0x2c2)])||[],null))==null||_0x2280f6[_0x5de30d(0x39a)](_0x3f93a3=>this[_0x5de30d(0x34d)][_0x5de30d(0x4ac)](_0x3f93a3['id'],_0x3f93a3[_0x5de30d(0x451)])),(_0x45824d=_0x677580(_0x320f07||[],null))==null||_0x45824d[_0x5de30d(0x39a)](_0x3a63c5=>this['_commandService']['executeCommand'](_0x3a63c5['id'],_0x3a63c5[_0x5de30d(0x451)]));}};_0xb2b867=_0x4ee1c7([_0x3ecb27(0x3,_0x245a54[_0x46a43e(0x4b5)](_0x245a54['Injector'])),_0x3ecb27(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x575351['LocalCacheService'])),_0x3ecb27(0x5,_0x245a54['Inject'](_0x38ce1a[_0x46a43e(0x2b0)])),_0x3ecb27(0x6,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf[_0x46a43e(0x3a5)])),_0x3ecb27(0x7,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a['RevisionService'])),_0x3ecb27(0x8,_0x5019cf[_0x46a43e(0x4e6)]),_0x3ecb27(0x9,_0x5019cf[_0x46a43e(0x3b9)]),_0x3ecb27(0xa,_0x5138ef['IMessageService']),_0x3ecb27(0xb,_0x5019cf[_0x46a43e(0x402)]),_0x3ecb27(0xc,_0x245a54[_0x46a43e(0x2b9)](_0x235b99))],_0xb2b867);let _0x2b8edc=class extends _0xb2b867{constructor(_0x7da42c,_0x3ed139,_0x250626,_0x4ecf6b,_0x4fcd2d,_0x57884c,_0x343dcc,_0x373e72,_0x434d94,_0x432f7d,_0xb31525,_0x5f04c3,_0x567d77,_0x55ee78,_0x2ea675,_0x3b578c,_0x42c482){const _0x546ce6=_0x46a43e;super(_0x7da42c,_0x3ed139,_0x250626,_0x4ecf6b,_0x4fcd2d,_0x57884c,_0x343dcc,_0x373e72,_0x567d77,_0x55ee78,_0x2ea675,_0x3b578c,_0x42c482),this['unitID']=_0x7da42c,this['type']=_0x3ed139,this[_0x546ce6(0x476)]=_0x250626,this['_docStateChangeManagerService']=_0x434d94,this[_0x546ce6(0x355)]=_0x432f7d,this[_0x546ce6(0x180)]=_0xb31525,this[_0x546ce6(0x2e6)]=_0x5f04c3;}['_createHandler'](){const _0x1589fe=_0x46a43e,_0xde91db=super[_0x1589fe(0x1a0)]();return _0xde91db['onTransformIME']=_0x5ea888=>this[_0x1589fe(0x355)][_0x1589fe(0x226)](_0x5ea888),_0xde91db[_0x1589fe(0x49a)]=_0x39e0ec=>this[_0x1589fe(0x180)][_0x1589fe(0x2d6)](_0x39e0ec),_0xde91db[_0x1589fe(0x278)]=_0x207912=>this[_0x1589fe(0x2e6)]['syncEditingCollabCursor'](_0x207912),_0xde91db[_0x1589fe(0x46d)]=_0x218b2e=>this[_0x1589fe(0x355)]['transformRemoteChangeset'](_0x218b2e),_0xde91db;}async[_0x46a43e(0x336)](){const _0x1002d1=_0x46a43e,_0xd6e270=await super['_init']();return this['_docStateChangeManagerService']['docStateChange$'][_0x1002d1(0x4b0)](_0x54735b[_0x1002d1(0x41a)](this[_0x1002d1(0x4a5)]))[_0x1002d1(0x324)](_0x1e6248=>{const _0x51e30a=_0x1002d1;if(_0x1e6248==null)return;const {unitId:_0xae51a5,redoState:_0x31217c,commandId:_0x26df89}=_0x1e6248;if(_0xae51a5!==this['unitID'])return;const _0x353bbc={'id':_0x26df89,'type':_0x5019cf[_0x51e30a(0x419)][_0x51e30a(0x483)],'params':{'unitId':_0xae51a5,'actions':_0x31217c[_0x51e30a(0x25e)],'textRanges':null}};this[_0x51e30a(0x2fb)](_0x353bbc);}),_0xd6e270;}};_0x2b8edc=_0x4ee1c7([_0x3ecb27(0x3,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0x3ecb27(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x575351[_0x46a43e(0x2d1)])),_0x3ecb27(0x5,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a[_0x46a43e(0x2b0)])),_0x3ecb27(0x6,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf[_0x46a43e(0x3a5)])),_0x3ecb27(0x7,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a[_0x46a43e(0x4ad)])),_0x3ecb27(0x8,_0x245a54[_0x46a43e(0x4b5)](_0x38fb70[_0x46a43e(0x313)])),_0x3ecb27(0x9,_0x245a54[_0x46a43e(0x4b5)](_0xc2ebf4)),_0x3ecb27(0xa,_0x245a54[_0x46a43e(0x4b5)](_0x5cf952)),_0x3ecb27(0xb,_0x245a54[_0x46a43e(0x4b5)](_0x141f6f)),_0x3ecb27(0xc,_0x5019cf['ILogService']),_0x3ecb27(0xd,_0x5019cf[_0x46a43e(0x3b9)]),_0x3ecb27(0xe,_0x5138ef[_0x46a43e(0x434)]),_0x3ecb27(0xf,_0x5019cf['IPermissionService']),_0x3ecb27(0x10,_0x245a54[_0x46a43e(0x2b9)](_0x235b99))],_0x2b8edc);let _0x21f2b6=class extends _0xb2b867{constructor(_0x4c21e8,_0x521ed6,_0x1a7a4a,_0x42acf7,_0x12c6ed,_0x1e3f8b,_0x3d6d47,_0x58550f,_0x4e0229,_0x5975f3,_0x36122d,_0x25a065,_0x3743e0,_0x55acf1){const _0x296b19=_0x46a43e;super(_0x4c21e8,_0x521ed6,_0x1a7a4a,_0x42acf7,_0x12c6ed,_0x1e3f8b,_0x3d6d47,_0x58550f,_0x5975f3,_0x36122d,_0x25a065,_0x3743e0,_0x55acf1),this['unitID']=_0x4c21e8,this[_0x296b19(0x219)]=_0x521ed6,this[_0x296b19(0x476)]=_0x1a7a4a,this['_sheetTransformSelectionsService']=_0x4e0229;}['_createHandler'](){const _0xef58a2=_0x46a43e,_0x8f09b1=super[_0xef58a2(0x1a0)]();return _0x8f09b1[_0xef58a2(0x49a)]=_0x3f1873=>this['_sheetTransformSelectionsService'][_0xef58a2(0x2d6)](_0x3f1873),_0x8f09b1;}async['_init'](){const _0x5b028d=_0x46a43e,_0x100ad4=await super[_0x5b028d(0x336)]();return this[_0x5b028d(0x3e8)](this['_commandService']['onCommandExecuted']((_0x474124,_0x160669)=>{const _0x17b2e7=_0x5b028d;if(_0x474124[_0x17b2e7(0x219)]!==_0x5019cf[_0x17b2e7(0x419)]['MUTATION']||_0x160669!=null&&_0x160669['fromCollab']||_0x160669!=null&&_0x160669[_0x17b2e7(0x1a5)])return;const _0x582ff5=_0x474124['params'];if((_0x582ff5==null?void 0x0:_0x582ff5[_0x17b2e7(0x449)])!==this['unitID'])return;const _0x607c22=_0x474124,_0x2c325f=this[_0x17b2e7(0x261)][_0x17b2e7(0x428)][_0x17b2e7(0x48a)](this['_compressMutationService'][_0x17b2e7(0x428)][_0x17b2e7(0x2c1)]()['COMPRESS_MUTATION_SEND'])([_0x607c22],null)||[_0x607c22];this[_0x17b2e7(0x2fb)](_0x2c325f[0x0]);})),_0x100ad4;}};_0x21f2b6=_0x4ee1c7([_0x3ecb27(0x3,_0x245a54['Inject'](_0x245a54[_0x46a43e(0x236)])),_0x3ecb27(0x4,_0x245a54['Inject'](_0x575351[_0x46a43e(0x2d1)])),_0x3ecb27(0x5,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a[_0x46a43e(0x2b0)])),_0x3ecb27(0x6,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf['LocaleService'])),_0x3ecb27(0x7,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a['RevisionService'])),_0x3ecb27(0x8,_0x245a54['Inject'](_0x20cd4b)),_0x3ecb27(0x9,_0x5019cf[_0x46a43e(0x4e6)]),_0x3ecb27(0xa,_0x5019cf[_0x46a43e(0x3b9)]),_0x3ecb27(0xb,_0x5138ef[_0x46a43e(0x434)]),_0x3ecb27(0xc,_0x5019cf['IPermissionService']),_0x3ecb27(0xd,_0x245a54['Optional'](_0x235b99))],_0x21f2b6);const _0x2a1de2=[_0x46a43e(0x360),_0x46a43e(0x4cf),_0x46a43e(0x194),'red300','blue400',_0x46a43e(0x47c)];class _0x10d691 extends _0x5019cf[_0x46a43e(0x32a)]{constructor(){const _0x109815=_0x46a43e;super(...arguments),_0x3a44bb(this,_0x109815(0x4bc),new Map()),_0x3a44bb(this,_0x109815(0x2a3),0x0);}['assignAColorForMemberID'](_0x3441b2){const _0x4b3c80=_0x46a43e;if(this[_0x4b3c80(0x4bc)][_0x4b3c80(0x209)](_0x3441b2))return this[_0x4b3c80(0x4bc)][_0x4b3c80(0x2db)](_0x3441b2);const _0x3a224a=_0x2a1de2[this['_colorIndex']];return this[_0x4b3c80(0x2a3)]=(this[_0x4b3c80(0x2a3)]+0x1)%_0x2a1de2[_0x4b3c80(0x1bb)],this['_assignedColors']['set'](_0x3441b2,_0x3a224a),_0x3a224a;}}var _0x55ffe6=Object[_0x46a43e(0x1c7)],_0x28d178=Object[_0x46a43e(0x1e9)],_0x5b2249=(_0x645fee,_0x3bbf07,_0x21c1eb,_0x405a60)=>{for(var _0x298205=_0x405a60>0x1?void 0x0:_0x405a60?_0x28d178(_0x3bbf07,_0x21c1eb):_0x3bbf07,_0x3bf487=_0x645fee['length']-0x1,_0x11c02d;_0x3bf487>=0x0;_0x3bf487--)(_0x11c02d=_0x645fee[_0x3bf487])&&(_0x298205=(_0x405a60?_0x11c02d(_0x3bbf07,_0x21c1eb,_0x298205):_0x11c02d(_0x298205))||_0x298205);return _0x405a60&&_0x298205&&_0x55ffe6(_0x3bbf07,_0x21c1eb,_0x298205),_0x298205;},_0x4ab804=(_0x1f6af1,_0x3b3d3d)=>(_0x2083b5,_0x2b0da9)=>_0x3b3d3d(_0x2083b5,_0x2b0da9,_0x1f6af1);const _0x1c04f8=0x12c,_0x1fab8b=0x64,_0x549eaf=()=>{let _0x26b6d6=[],_0x229417=!0x1;return _0x2bf152=>{const _0x1129f2=_0x50f8;_0x26b6d6[_0x1129f2(0x23e)](_0x2bf152),_0x229417||(_0x229417=!0x0,setTimeout(()=>{const _0x2a4d2a=_0x1129f2;_0x26b6d6[_0x2a4d2a(0x39a)](_0x8df80b=>_0x8df80b()),_0x26b6d6=[],_0x229417=!0x1;}));};};let _0x38323c=class extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(_0x4b5dd1,_0x327fad,_0x398cfd,_0x587edb,_0x4f8e62,_0x1c9dcb,_0x5e827c,_0x177701){const _0xb6b79b=_0x46a43e;super(),_0x3a44bb(this,_0xb6b79b(0x248),!0x1),_0x3a44bb(this,_0xb6b79b(0x336),!0x1),_0x3a44bb(this,_0xb6b79b(0x375),new _0x54735b['BehaviorSubject'](new Map())),_0x3a44bb(this,_0xb6b79b(0x379),this[_0xb6b79b(0x375)][_0xb6b79b(0x26a)]()),_0x3a44bb(this,_0xb6b79b(0x26f),new _0x54735b[(_0xb6b79b(0x413))]([])),_0x3a44bb(this,_0xb6b79b(0x24b),this[_0xb6b79b(0x26f)]['pipe'](_0x54735b['debounceTime'](_0x1c04f8))),_0x3a44bb(this,_0xb6b79b(0x280),_0x37d11b((_0xbb66d4,_0x347754)=>{const _0x806b52=_0xb6b79b,_0x22802e={'eventID':_0x38ce1a['CollaborationEvent'][_0x806b52(0x403)],'data':{'unitID':this['unitID'],'memberID':this[_0x806b52(0x2b8)][_0x806b52(0x3bf)](),'selection':_0x2440ec[_0x806b52(0x3ac)](_0xbb66d4,_0x347754[_0x806b52(0x165)])}};this[_0x806b52(0x2b8)]['send'](_0x22802e,this[_0x806b52(0x166)]);},_0x1fab8b)),(this['unitID']=_0x4b5dd1,this[_0xb6b79b(0x2b8)]=_0x327fad,this['_injector']=_0x398cfd,this['_colorAssignService']=_0x587edb,this[_0xb6b79b(0x39b)]=_0x4f8e62,this[_0xb6b79b(0x397)]=_0x1c9dcb,this[_0xb6b79b(0x34d)]=_0x5e827c,this[_0xb6b79b(0x474)]=_0x177701);}get[_0x46a43e(0x2ce)](){const _0x30e43e=_0x46a43e;return this[_0x30e43e(0x375)][_0x30e43e(0x250)]();}get[_0x46a43e(0x3b5)](){const _0x52d149=_0x46a43e;return this[_0x52d149(0x26f)]['getValue']();}[_0x46a43e(0x173)](){const _0x3705ed=_0x46a43e;super['dispose'](),this[_0x3705ed(0x375)][_0x3705ed(0x230)](new Map()),this[_0x3705ed(0x375)]['complete'](),this[_0x3705ed(0x26f)]['next']([]),this['_roomMembers$']['complete']();}[_0x46a43e(0x3a7)](){const _0xde58ba=_0x46a43e;this[_0xde58ba(0x336)]||(this[_0xde58ba(0x336)]=!0x0,this['_session'][_0xde58ba(0x162)][_0xde58ba(0x4b0)](_0x54735b[_0xde58ba(0x41a)](this[_0xde58ba(0x4a5)]))[_0xde58ba(0x324)](_0x5cce05=>{_0x5cce05===_0x1ae891['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this[_0xde58ba(0x2b8)]['event$']['pipe'](_0x54735b['takeUntil'](this[_0xde58ba(0x4a5)]))[_0xde58ba(0x324)](_0x19fbe0=>{const _0x5b6268=_0xde58ba,_0x4fb546=_0x19fbe0['eventID'];_0x4fb546===_0x38ce1a[_0x5b6268(0x4cc)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x19fbe0),_0x4fb546===_0x38ce1a[_0x5b6268(0x4cc)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x19fbe0);}),this['_onRefRangeChange'](),this[_0xde58ba(0x3e8)](this[_0xde58ba(0x34d)][_0xde58ba(0x366)](_0xe75d1=>{const _0x2fe0aa=_0xde58ba;if(this['_online']&&_0xe75d1['id']===_0x7f012d[_0x2fe0aa(0x27c)]['id']&&_0xe75d1[_0x2fe0aa(0x451)]['unitId']===this[_0x2fe0aa(0x166)]){const _0x4b9139=_0xe75d1[_0x2fe0aa(0x451)];this[_0x2fe0aa(0x280)](_0x4b9139['subUnitId'],_0x4b9139[_0x2fe0aa(0x4e4)][0x0]);}})));}[_0x46a43e(0x161)](_0x84001){const _0x38ece5=_0x46a43e;var _0x2d0dac,_0xd1b54c;const {memberID:_0x17b6ca,selection:_0x18887c}=_0x84001['data'],{sheetName:_0x166b36,range:_0x2562b1}=_0x2440ec['deserializeRangeWithSheet'](_0x18887c),_0x4c5bac={'name':(_0xd1b54c=(_0x2d0dac=this[_0x38ece5(0x39b)][_0x38ece5(0x4b9)](this['unitID'],_0x17b6ca))==null?void 0x0:_0x2d0dac['name'])!=null?_0xd1b54c:_0x38ece5(0x3ff),'range':this[_0x38ece5(0x1a4)](_0x166b36,_0x2562b1),'sheetID':_0x166b36,'color':this[_0x38ece5(0x184)][_0x38ece5(0x260)](_0x17b6ca),'selection':_0x18887c},_0x27d9bf=this[_0x38ece5(0x2ce)];_0x27d9bf[_0x38ece5(0x3f3)](_0x17b6ca,_0x4c5bac),this[_0x38ece5(0x375)]['next'](_0x27d9bf);}[_0x46a43e(0x244)](_0x138f35){const _0x4eecbb=_0x46a43e,{memberID:_0x55fddc}=_0x138f35[_0x4eecbb(0x23f)],_0x57337d=this[_0x4eecbb(0x2ce)];_0x57337d[_0x4eecbb(0x352)](_0x55fddc),this[_0x4eecbb(0x375)][_0x4eecbb(0x230)](_0x57337d);}[_0x46a43e(0x1a4)](_0x30fe82,_0x49d70f){const _0x507861=_0x46a43e;var _0x354a26,_0x433893;const _0x3003e7=(_0x433893=(_0x354a26=this['_univerInstanceService'][_0x507861(0x4e5)](this[_0x507861(0x166)]))==null?void 0x0:_0x354a26['getSheetBySheetId'](_0x30fe82))==null?void 0x0:_0x433893[_0x507861(0x437)]();return(_0x3003e7==null?void 0x0:_0x3003e7['find'](_0x18f50a=>_0x5019cf[_0x507861(0x1dd)][_0x507861(0x256)](_0x18f50a,_0x49d70f)))||_0x49d70f;}[_0x46a43e(0x28a)](){const _0x1fac22=_0x46a43e,_0x571cca=new _0x5019cf[(_0x1fac22(0x446))](),_0x2cbb32=_0x549eaf(),_0x38ee92=()=>{const _0x46d328=_0x1fac22;_0x571cca[_0x46d328(0x173)]();const _0x4e5577=(_0x3d6a33,_0x5ddefe,_0x214285,_0x11c46e)=>{const _0x25a848=_0x46d328;let _0x54c51f=[];switch(_0x3d6a33['id']){case _0x7f012d[_0x25a848(0x4b3)]['DeleteRangeMoveLeftCommandId']:{_0x54c51f=_0x7f012d[_0x25a848(0x177)](_0x3d6a33,_0x11c46e);break;}case _0x7f012d[_0x25a848(0x4b3)][_0x25a848(0x2ff)]:{_0x54c51f=_0x7f012d[_0x25a848(0x27a)](_0x3d6a33,_0x11c46e);break;}case _0x7f012d[_0x25a848(0x4b3)][_0x25a848(0x18c)]:{_0x54c51f=_0x7f012d['handleInsertCol'](_0x3d6a33,_0x11c46e);break;}case _0x7f012d[_0x25a848(0x4b3)][_0x25a848(0x4ff)]:{_0x54c51f=_0x7f012d[_0x25a848(0x328)](_0x3d6a33,_0x11c46e);break;}case _0x7f012d[_0x25a848(0x4b3)][_0x25a848(0x1e2)]:{_0x54c51f=_0x7f012d[_0x25a848(0x3a4)](_0x3d6a33,_0x11c46e);break;}case _0x7f012d[_0x25a848(0x4b3)][_0x25a848(0x228)]:{_0x54c51f=_0x7f012d[_0x25a848(0x164)](_0x3d6a33,_0x11c46e);break;}case _0x7f012d[_0x25a848(0x4b3)][_0x25a848(0x3a2)]:{_0x54c51f=_0x7f012d[_0x25a848(0x335)](_0x3d6a33,_0x11c46e);break;}case _0x7f012d[_0x25a848(0x4b3)]['RemoveColCommandId']:{_0x54c51f=_0x7f012d[_0x25a848(0x500)](_0x3d6a33,_0x11c46e);break;}case _0x7f012d[_0x25a848(0x4b3)]['RemoveRowCommandId']:{_0x54c51f=_0x7f012d[_0x25a848(0x183)](_0x3d6a33,_0x11c46e);break;}}const _0x464abb=_0x7f012d[_0x25a848(0x1e7)](_0x54c51f,_0x11c46e),_0x234110=this[_0x25a848(0x2ce)]['get'](_0x5ddefe);if(_0x234110&&_0x464abb){const _0x108900={..._0x234110,'range':_0x464abb};this[_0x25a848(0x2ce)]['set'](_0x5ddefe,_0x108900),_0x2cbb32(()=>{const _0x2bf0aa=_0x25a848,_0x15c827=this[_0x2bf0aa(0x474)]['registerRefRange'](_0x464abb,_0x231525=>(_0x15c827[_0x2bf0aa(0x173)](),_0x4e5577(_0x231525,_0x5ddefe,_0x214285,_0x464abb)));_0x571cca[_0x2bf0aa(0x43a)](_0x15c827);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x46d328(0x39a)]((_0x5b5f13,_0xc5d206)=>{const _0x2d3a51=_0x46d328,{range:_0x2fbeed,sheetID:_0x2c08d6}=_0x5b5f13,_0x2e932e=this[_0x2d3a51(0x474)][_0x2d3a51(0x3b3)](_0x2fbeed,_0x217b2c=>(_0x2e932e[_0x2d3a51(0x173)](),_0x4e5577(_0x217b2c,_0xc5d206,_0x2c08d6,_0x2fbeed)));_0x571cca[_0x2d3a51(0x43a)](_0x2e932e);});};this[_0x1fac22(0x3e8)](_0x5019cf[_0x1fac22(0x35e)](this[_0x1fac22(0x375)][_0x1fac22(0x324)](()=>{_0x38ee92();})));}[_0x46a43e(0x1ba)](){const _0x11b0f3=_0x46a43e;var _0x5015df,_0x2e27df;if(this[_0x11b0f3(0x248)]=!0x0,((_0x5015df=this[_0x11b0f3(0x397)]['getFocusedUnit']())==null?void 0x0:_0x5015df[_0x11b0f3(0x2c6)]())!==this[_0x11b0f3(0x166)])return;const _0x45f73c=(_0x2e27df=this[_0x11b0f3(0x383)][_0x11b0f3(0x2db)](_0x7f012d[_0x11b0f3(0x3fe)])[_0x11b0f3(0x2fc)]())==null?void 0x0:_0x2e27df[0x0],_0x57517f=this[_0x11b0f3(0x397)][_0x11b0f3(0x21c)](_0x5019cf[_0x11b0f3(0x28c)][_0x11b0f3(0x258)])[_0x11b0f3(0x18a)]();_0x45f73c&&_0x57517f&&this[_0x11b0f3(0x280)](_0x57517f[_0x11b0f3(0x35b)](),_0x45f73c);}[_0x46a43e(0x2c0)](){this['_online']=!0x1;}};_0x38323c=_0x5b2249([_0x4ab804(0x2,_0x245a54[_0x46a43e(0x4b5)](_0x245a54['Injector'])),_0x4ab804(0x3,_0x245a54['Inject'](_0x10d691)),_0x4ab804(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x4a6424)),_0x4ab804(0x5,_0x5019cf[_0x46a43e(0x4e2)]),_0x4ab804(0x6,_0x5019cf['ICommandService']),_0x4ab804(0x7,_0x245a54[_0x46a43e(0x4b5)](_0x7f012d[_0x46a43e(0x285)]))],_0x38323c);var _0x22a471=Object[_0x46a43e(0x1c7)],_0x32285b=Object['getOwnPropertyDescriptor'],_0x5dc2b5=(_0x212c45,_0x3bebec,_0x5e2483,_0x1108d0)=>{for(var _0x295ccf=_0x1108d0>0x1?void 0x0:_0x1108d0?_0x32285b(_0x3bebec,_0x5e2483):_0x3bebec,_0xce3802=_0x212c45['length']-0x1,_0x3de1d1;_0xce3802>=0x0;_0xce3802--)(_0x3de1d1=_0x212c45[_0xce3802])&&(_0x295ccf=(_0x1108d0?_0x3de1d1(_0x3bebec,_0x5e2483,_0x295ccf):_0x3de1d1(_0x295ccf))||_0x295ccf);return _0x1108d0&&_0x295ccf&&_0x22a471(_0x3bebec,_0x5e2483,_0x295ccf),_0x295ccf;},_0x5bf0f3=(_0x4120fc,_0x24c1c5)=>(_0x5ebe68,_0x1c169)=>_0x24c1c5(_0x5ebe68,_0x1c169,_0x4120fc);const _0x447abf=0x12c,_0x201f59=0x64;let _0x3a9f16=class extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(_0x389ac5,_0x3b8b09,_0x4d8699,_0x146bf0,_0x365335,_0x3a960e,_0x182259,_0x299b7d,_0x5a85ca){const _0x297910=_0x46a43e;super(),_0x3a44bb(this,'_online',!0x1),_0x3a44bb(this,_0x297910(0x336),!0x1),_0x3a44bb(this,_0x297910(0x375),new _0x54735b[(_0x297910(0x413))](new Map())),_0x3a44bb(this,_0x297910(0x379),this[_0x297910(0x375)][_0x297910(0x26a)]()),_0x3a44bb(this,'_roomMembers$',new _0x54735b['BehaviorSubject']([])),_0x3a44bb(this,_0x297910(0x24b),this[_0x297910(0x26f)][_0x297910(0x4b0)](_0x54735b[_0x297910(0x20e)](_0x447abf))),_0x3a44bb(this,'_updateLocalCursor',_0x37d11b(_0x340d25=>{const _0x2d8748=_0x297910,_0x57f630={'eventID':_0x38ce1a[_0x2d8748(0x4cc)][_0x2d8748(0x403)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x2d8748(0x3bf)](),'selection':_0x4b67ea(_0x340d25)}};this['_session'][_0x2d8748(0x175)](_0x57f630,this[_0x2d8748(0x166)]);},_0x201f59)),(this['unitID']=_0x389ac5,this[_0x297910(0x2b8)]=_0x3b8b09,this[_0x297910(0x383)]=_0x4d8699,this[_0x297910(0x184)]=_0x146bf0,this[_0x297910(0x39b)]=_0x365335,this[_0x297910(0x4da)]=_0x3a960e,this[_0x297910(0x43f)]=_0x182259,this['_univerInstanceService']=_0x299b7d,this[_0x297910(0x34d)]=_0x5a85ca);}get[_0x46a43e(0x2ce)](){const _0xb110ce=_0x46a43e;return this['_cursorInfo$'][_0xb110ce(0x250)]();}get[_0x46a43e(0x3b5)](){const _0x52f015=_0x46a43e;return this[_0x52f015(0x26f)]['getValue']();}[_0x46a43e(0x173)](){const _0x5e7992=_0x46a43e;super[_0x5e7992(0x173)](),this['_cursorInfo$'][_0x5e7992(0x230)](new Map()),this[_0x5e7992(0x375)]['complete'](),this['_roomMembers$'][_0x5e7992(0x230)]([]),this[_0x5e7992(0x26f)][_0x5e7992(0x2ae)]();}[_0x46a43e(0x3a7)](){const _0x574020=_0x46a43e;this[_0x574020(0x336)]||(this[_0x574020(0x336)]=!0x0,this[_0x574020(0x2b8)]['sessionStatus$']['pipe'](_0x54735b['takeUntil'](this['dispose$']))[_0x574020(0x324)](_0x2b49a3=>{const _0x54ea87=_0x574020;_0x2b49a3===_0x1ae891[_0x54ea87(0x440)]?this[_0x54ea87(0x1ba)]():this[_0x54ea87(0x2c0)]();}),this[_0x574020(0x2b8)][_0x574020(0x204)][_0x574020(0x4b0)](_0x54735b[_0x574020(0x41a)](this[_0x574020(0x4a5)]))[_0x574020(0x324)](_0x1bebc5=>{const _0x53ea21=_0x574020,_0x46cf14=_0x1bebc5['eventID'];_0x46cf14===_0x38ce1a['CollaborationEvent'][_0x53ea21(0x403)]&&this[_0x53ea21(0x161)](_0x1bebc5),_0x46cf14===_0x38ce1a[_0x53ea21(0x4cc)][_0x53ea21(0x414)]&&this['_onCursorDelete'](_0x1bebc5);}),this['disposeWithMe'](this[_0x574020(0x34d)][_0x574020(0x366)](_0x50a7eb=>{const _0x4cd807=_0x574020,_0x3f62eb=_0x50a7eb['params'];_0x3f62eb!=null&&this['_online']&&_0x50a7eb['id']===_0x38fb70['SetTextSelectionsOperation']['id']&&_0x3f62eb['unitId']===this[_0x4cd807(0x166)]&&_0x3f62eb[_0x4cd807(0x17f)]===!0x1&&this[_0x4cd807(0x280)](_0x3f62eb['ranges']);})),this[_0x574020(0x4da)]['collabCursorState$'][_0x574020(0x4b0)](_0x54735b['takeUntil'](this[_0x574020(0x4a5)]))[_0x574020(0x324)](_0x374478=>{const _0x5c4ec2=_0x574020;if((_0x374478==null?void 0x0:_0x374478[_0x5c4ec2(0x166)])!==this[_0x5c4ec2(0x166)])return;const _0xe72949={'eventID':_0x38ce1a[_0x5c4ec2(0x4cc)][_0x5c4ec2(0x403)],'data':_0x374478};this[_0x5c4ec2(0x161)](_0xe72949);}),this['disposeWithMe'](this[_0x574020(0x34d)][_0x574020(0x366)](_0x2905f7=>{const _0xa32842=_0x574020;if(_0x2905f7[_0xa32842(0x451)]==null)return;const _0x46ef0c=_0x2905f7[_0xa32842(0x451)];if(_0x2905f7['id']!==_0x38fb70[_0xa32842(0x338)]['id']||_0x46ef0c['unitId']!==this[_0xa32842(0x166)])return;const _0x184699={'id':_0xa32842(0x20c),'params':_0x46ef0c},_0x806138=this[_0xa32842(0x2ce)];for(const [_0x2a003c,_0xb125c0]of _0x806138){const _0x20688a={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0xa32842(0x166)],'actions':null,'textRanges':_0xb125c0['ranges']}},_0x4d4380=this[_0xa32842(0x43f)][_0xa32842(0x432)](_0x184699,_0x20688a,!0x1);if(_0x38ce1a['isTransformMutationFailure'](_0x4d4380))throw _0x4d4380[_0xa32842(0x3a0)];_0x806138[_0xa32842(0x3f3)](_0x2a003c,{..._0xb125c0,'ranges':_0x4d4380[_0xa32842(0x35f)][_0xa32842(0x451)][_0xa32842(0x44a)]});}queueMicrotask(()=>{const _0x95ab68=_0xa32842;this['_cursorInfo$'][_0x95ab68(0x230)](_0x806138);});})));}['_onCursorUpdate'](_0xcfe0ff){const _0x3af8db=_0x46a43e;var _0x4b05d8,_0x1a50ea;const {memberID:_0x49d5d6,selection:_0x12d929}=_0xcfe0ff[_0x3af8db(0x23f)],_0x2560a6=_0x40ee5f(_0x12d929),_0x397615=(_0x1a50ea=(_0x4b05d8=this[_0x3af8db(0x39b)]['getMember'](this[_0x3af8db(0x166)],_0x49d5d6))==null?void 0x0:_0x4b05d8[_0x3af8db(0x450)])!=null?_0x1a50ea:'Unknown\x20user',_0xf4e222={'color':this['_colorAssignService'][_0x3af8db(0x260)](_0x49d5d6),'name':_0x397615,'ranges':_0x2560a6},_0x4dd7e3=this['cursorInfo'];_0x4dd7e3[_0x3af8db(0x3f3)](_0x49d5d6,_0xf4e222),this[_0x3af8db(0x375)][_0x3af8db(0x230)](_0x4dd7e3);}['_onCursorDelete'](_0xf31e0b){const _0x7df2bd=_0x46a43e,{memberID:_0x3c2a5e}=_0xf31e0b[_0x7df2bd(0x23f)],_0x66f05f=this[_0x7df2bd(0x2ce)];_0x66f05f[_0x7df2bd(0x352)](_0x3c2a5e),this['_cursorInfo$'][_0x7df2bd(0x230)](_0x66f05f);}[_0x46a43e(0x1ba)](){const _0x8ce593=_0x46a43e;var _0x1c0040;if(this[_0x8ce593(0x248)]=!0x0,((_0x1c0040=this[_0x8ce593(0x397)]['getFocusedUnit']())==null?void 0x0:_0x1c0040['getUnitId']())!==this[_0x8ce593(0x166)])return;const _0x4d3a8c=this['_injector'][_0x8ce593(0x2db)](_0x38fb70[_0x8ce593(0x3c2)])[_0x8ce593(0x2fc)](),_0x2115ce=_0x4d3a8c==null?void 0x0:_0x4d3a8c[_0x8ce593(0x473)](_0x38fb70[_0x8ce593(0x318)]);Array['isArray'](_0x2115ce)&&_0x2115ce[_0x8ce593(0x1bb)]>0x0&&this[_0x8ce593(0x280)](_0x2115ce);}[_0x46a43e(0x2c0)](){this['_online']=!0x1;}};_0x3a9f16=_0x5dc2b5([_0x5bf0f3(0x2,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0x5bf0f3(0x3,_0x245a54['Inject'](_0x10d691)),_0x5bf0f3(0x4,_0x245a54['Inject'](_0x4a6424)),_0x5bf0f3(0x5,_0x245a54['Inject'](_0x141f6f)),_0x5bf0f3(0x6,_0x38ce1a[_0x46a43e(0x48b)]),_0x5bf0f3(0x7,_0x5019cf[_0x46a43e(0x4e2)]),_0x5bf0f3(0x8,_0x5019cf[_0x46a43e(0x3b9)])],_0x3a9f16);var _0x2c371e=Object[_0x46a43e(0x1c7)],_0x4bb99d=Object[_0x46a43e(0x1e9)],_0x555c89=(_0x5339bd,_0x3f3aa0,_0x55009e,_0x3a93b7)=>{const _0x33fca6=_0x46a43e;for(var _0x394c9d=_0x3a93b7>0x1?void 0x0:_0x3a93b7?_0x4bb99d(_0x3f3aa0,_0x55009e):_0x3f3aa0,_0x56fb12=_0x5339bd[_0x33fca6(0x1bb)]-0x1,_0x35bca4;_0x56fb12>=0x0;_0x56fb12--)(_0x35bca4=_0x5339bd[_0x56fb12])&&(_0x394c9d=(_0x3a93b7?_0x35bca4(_0x3f3aa0,_0x55009e,_0x394c9d):_0x35bca4(_0x394c9d))||_0x394c9d);return _0x3a93b7&&_0x394c9d&&_0x2c371e(_0x3f3aa0,_0x55009e,_0x394c9d),_0x394c9d;},_0x40978b=(_0x103e0b,_0x4895d5)=>(_0x488075,_0x5833d9)=>_0x4895d5(_0x488075,_0x5833d9,_0x103e0b);let _0x4a938f=class extends _0x5019cf['RxDisposable']{constructor(_0x1744ef,_0x40f5a5,_0x31cfea){const _0x542f7d=_0x46a43e;super(),_0x3a44bb(this,_0x542f7d(0x4ec),new Map()),_0x3a44bb(this,_0x542f7d(0x1be),new _0x54735b['Subject']()),(this[_0x542f7d(0x397)]=_0x1744ef,this['_injector']=_0x40f5a5,this[_0x542f7d(0x2b7)]=_0x31cfea,this['_init']());}[_0x46a43e(0x173)](){const _0x4d91e5=_0x46a43e;super[_0x4d91e5(0x173)](),this[_0x4d91e5(0x1be)]['complete'](),this[_0x4d91e5(0x4ec)][_0x4d91e5(0x39a)](_0x41d7db=>_0x41d7db[_0x4d91e5(0x173)]());}[_0x46a43e(0x3a3)](_0x25cc61){const _0x26d5c4=_0x46a43e;return this[_0x26d5c4(0x4ec)][_0x26d5c4(0x209)](_0x25cc61)?this[_0x26d5c4(0x4ec)][_0x26d5c4(0x2db)](_0x25cc61)[_0x26d5c4(0x379)]:this[_0x26d5c4(0x1be)][_0x26d5c4(0x4b0)](_0x54735b[_0x26d5c4(0x2a4)](_0x280485=>_0x280485['unitID']===_0x25cc61),_0x54735b[_0x26d5c4(0x426)](_0x1cf559=>_0x1cf559[_0x26d5c4(0x379)]));}[_0x46a43e(0x336)](){const _0x114d7b=_0x46a43e;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5019cf['UniverInstanceType']['UNIVER_SHEET'])[_0x114d7b(0x4b0)](_0x54735b[_0x114d7b(0x41a)](this[_0x114d7b(0x4a5)]))[_0x114d7b(0x324)](async _0x18c767=>{const _0x283b4a=_0x114d7b,_0x498bea=_0x18c767[_0x283b4a(0x2c6)](),_0xedcc7e=await this[_0x283b4a(0x30a)](_0x498bea);this['_entityInit$'][_0x283b4a(0x230)](_0xedcc7e),this[_0x283b4a(0x4ec)][_0x283b4a(0x3f3)](_0x498bea,_0xedcc7e);}),this[_0x114d7b(0x397)][_0x114d7b(0x1b5)](_0x5019cf['UniverInstanceType'][_0x114d7b(0x27d)])[_0x114d7b(0x4b0)](_0x54735b[_0x114d7b(0x41a)](this[_0x114d7b(0x4a5)]))[_0x114d7b(0x4b0)](_0x54735b[_0x114d7b(0x2a4)](_0x10e632=>!_0x10e632[_0x114d7b(0x2c6)]()['startsWith']('__')))[_0x114d7b(0x324)](async _0x51d97f=>{const _0x440796=_0x114d7b,_0x1186ea=_0x51d97f[_0x440796(0x2c6)](),_0x418e14=await this['_startDocCollabCursor'](_0x1186ea);this['_entityInit$'][_0x440796(0x230)](_0x418e14),this[_0x440796(0x4ec)][_0x440796(0x3f3)](_0x1186ea,_0x418e14);}),_0x54735b[_0x114d7b(0x3e1)](this['_univerInstanceService'][_0x114d7b(0x371)](_0x5019cf[_0x114d7b(0x28c)][_0x114d7b(0x27d)]),this[_0x114d7b(0x397)][_0x114d7b(0x371)](_0x5019cf[_0x114d7b(0x28c)][_0x114d7b(0x258)]))[_0x114d7b(0x4b0)](_0x54735b[_0x114d7b(0x41a)](this[_0x114d7b(0x4a5)]))['subscribe'](_0x1b12b4=>{const _0x3c3a03=_0x114d7b,_0xf8c935=_0x1b12b4['getUnitId'](),_0x1f1b89=this[_0x3c3a03(0x4ec)]['get'](_0xf8c935);_0x1f1b89&&(_0x1f1b89[_0x3c3a03(0x173)](),this[_0x3c3a03(0x4ec)][_0x3c3a03(0x352)](_0xf8c935));});}async[_0x46a43e(0x30a)](_0x446390){const _0x5dddfd=_0x46a43e,_0x3c207c=await this['_collabSessionService'][_0x5dddfd(0x33d)](_0x446390),_0x1d0536=this[_0x5dddfd(0x383)][_0x5dddfd(0x431)](_0x38323c,_0x446390,_0x3c207c);return _0x1d0536[_0x5dddfd(0x3a7)](),_0x1d0536;}async[_0x46a43e(0x299)](_0x295fb2){const _0x7f6004=_0x46a43e,_0x370f1e=await this[_0x7f6004(0x2b7)]['requireSession'](_0x295fb2),_0x3209d5=this[_0x7f6004(0x383)][_0x7f6004(0x431)](_0x3a9f16,_0x295fb2,_0x370f1e);return _0x3209d5[_0x7f6004(0x3a7)](),_0x3209d5;}};_0x4a938f=_0x555c89([_0x5019cf[_0x46a43e(0x3b2)](_0x5019cf[_0x46a43e(0x2ed)]['Starting'],_0x4a938f),_0x40978b(0x0,_0x5019cf['IUniverInstanceService']),_0x40978b(0x1,_0x245a54[_0x46a43e(0x4b5)](_0x245a54['Injector'])),_0x40978b(0x2,_0x245a54[_0x46a43e(0x4b5)](_0x575351['CollaborationSessionService']))],_0x4a938f);const _0x4617f7=0x14,_0xd6959a=0xc8,_0x42e726=0x4,_0xee6bd7=0x5;function _0x27dfec(_0x132c88,_0x5e47e9){const _0x240c23=_0x46a43e;let {radius:_0x1e77e6,width:_0x5b38a2,height:_0x4f1eba}=_0x5e47e9;_0x1e77e6=_0x1e77e6!=null?_0x1e77e6:0x0,_0x5b38a2=_0x5b38a2!=null?_0x5b38a2:0x1e,_0x4f1eba=_0x4f1eba!=null?_0x4f1eba:0x1e;let _0x1fa0ed=0x0,_0x160a36=0x0,_0x569d29=0x0;_0x1fa0ed=_0x160a36=_0x569d29=Math[_0x240c23(0x2fd)](_0x1e77e6,_0x5b38a2/0x2,_0x4f1eba/0x2),_0x132c88['beginPath'](),_0x132c88[_0x240c23(0x4ef)](_0x1fa0ed,0x0),_0x132c88[_0x240c23(0x232)](_0x5b38a2-_0x160a36,0x0),_0x132c88['arc'](_0x5b38a2-_0x160a36,_0x160a36,_0x160a36,Math['PI']*0x3/0x2,0x0,!0x1),_0x132c88[_0x240c23(0x232)](_0x5b38a2,_0x4f1eba-_0x569d29),_0x132c88['arc'](_0x5b38a2-_0x569d29,_0x4f1eba-_0x569d29,_0x569d29,0x0,Math['PI']/0x2,!0x1),_0x132c88[_0x240c23(0x232)](0x0,_0x4f1eba),_0x132c88[_0x240c23(0x232)](0x0,_0x1fa0ed),_0x132c88[_0x240c23(0x4aa)](_0x1fa0ed,_0x1fa0ed,_0x1fa0ed,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x132c88[_0x240c23(0x19d)](),_0x5e47e9[_0x240c23(0x2d2)]&&(_0x132c88[_0x240c23(0x212)](),_0x132c88[_0x240c23(0x308)]=_0x5e47e9[_0x240c23(0x2d2)],_0x5e47e9['fillRule']===_0x240c23(0x2e5)?_0x132c88[_0x240c23(0x2d2)](_0x240c23(0x2e5)):_0x132c88[_0x240c23(0x2d2)](),_0x132c88[_0x240c23(0x36a)]());}class _0x450f66 extends _0x56ae03['Shape']{constructor(_0x370355,_0x42742a){const _0x2d9046=_0x46a43e;super(_0x370355,_0x42742a),_0x3a44bb(this,_0x2d9046(0x3c9)),_0x3a44bb(this,_0x2d9046(0x3ae)),(this['color']=_0x42742a==null?void 0x0:_0x42742a[_0x2d9046(0x3c9)],this['text']=_0x42742a==null?void 0x0:_0x42742a[_0x2d9046(0x3ae)]);}static[_0x46a43e(0x2d3)](_0x3ccb6d,_0x4a1bca){const _0x2aeda9=_0x46a43e,{text:_0x271598,color:_0x593b53}=_0x4a1bca;_0x3ccb6d[_0x2aeda9(0x212)](),_0x3ccb6d['font']=_0x2aeda9(0x262);const _0x59947=_0x3ccb6d['measureText'](_0x271598)[_0x2aeda9(0x412)],_0x307808=Math['min'](_0x59947+0x2*_0x42e726,_0xd6959a);_0x27dfec(_0x3ccb6d,{'height':_0x4617f7,'radius':0x4,'width':_0x307808,'fill':_0x593b53,'evented':!0x1}),_0x3ccb6d['fillStyle']=_0x2aeda9(0x38e);const _0x25134f=_0x42e726,_0xb3cfd5=_0x4617f7-_0xee6bd7,_0x36cc3f=_0xd6959a-0x2*_0x42e726;if(_0x59947>_0x36cc3f){let _0x5a3be6='',_0x109871=0x0;for(const _0x3844e0 of _0x271598){const _0x1ae884=_0x3ccb6d[_0x2aeda9(0x430)](_0x3844e0)[_0x2aeda9(0x412)];if(_0x109871+_0x1ae884<=_0x36cc3f-_0x3ccb6d['measureText'](_0x2aeda9(0x4c9))[_0x2aeda9(0x412)])_0x5a3be6+=_0x3844e0,_0x109871+=_0x1ae884;else{_0x5a3be6+=_0x2aeda9(0x4c9);break;}}_0x3ccb6d['fillText'](_0x5a3be6,_0x25134f,_0xb3cfd5);}else _0x3ccb6d['fillText'](_0x271598,_0x25134f,_0xb3cfd5);_0x3ccb6d[_0x2aeda9(0x36a)]();}['_draw'](_0xfc9215){const _0x2fda3e=_0x46a43e;_0x450f66[_0x2fda3e(0x2d3)](_0xfc9215,this);}}const _0xc6ca79=0x1,_0x36560e=1.5;class _0x985a81 extends _0x56ae03['Shape']{constructor(_0x2f376d,_0x7543f4){const _0x541ce3=_0x46a43e;super(_0x2f376d,_0x7543f4),_0x3a44bb(this,_0x541ce3(0x41e)),_0x3a44bb(this,_0x541ce3(0x363),!0x1),_0x3a44bb(this,_0x541ce3(0x404)),_0x3a44bb(this,_0x541ce3(0x220),''),_0x3a44bb(this,'_labelPosition',_0x541ce3(0x3da)),(_0x7543f4&&this[_0x541ce3(0x171)](_0x7543f4),this[_0x541ce3(0x32c)][_0x541ce3(0x381)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x541ce3(0x305)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x200e5a){const _0x234519=_0x46a43e;var _0x1d201f,_0x10055a,_0x65cee,_0x25b241,_0x143921;this[_0x234519(0x41e)]=(_0x1d201f=_0x200e5a[_0x234519(0x3c9)])!=null?_0x1d201f:this[_0x234519(0x41e)],this[_0x234519(0x363)]=(_0x10055a=_0x200e5a[_0x234519(0x499)])!=null?_0x10055a:this[_0x234519(0x363)],this[_0x234519(0x404)]=(_0x65cee=_0x200e5a['range'])!=null?_0x65cee:this[_0x234519(0x404)],this['_name']=(_0x25b241=_0x200e5a['name'])!=null?_0x25b241:this[_0x234519(0x220)],this[_0x234519(0x2f0)]=(_0x143921=_0x200e5a[_0x234519(0x27b)])!=null?_0x143921:this[_0x234519(0x2f0)],this[_0x234519(0x3d4)]({'width':_0x200e5a[_0x234519(0x412)],'height':_0x200e5a[_0x234519(0x4d8)]});}[_0x46a43e(0x291)](_0x371387){const _0x58cf7f=_0x46a43e,{row:_0x233b35,column:_0x57fd43}=_0x371387;if(_0x233b35>=this[_0x58cf7f(0x404)][_0x58cf7f(0x186)]&&_0x233b35<=this[_0x58cf7f(0x404)][_0x58cf7f(0x1a8)]&&_0x57fd43>=this['_range']['startColumn']&&_0x57fd43<=this[_0x58cf7f(0x404)][_0x58cf7f(0x389)]){this[_0x58cf7f(0x171)]({'hovered':!0x0});return;}this[_0x58cf7f(0x171)]({'hovered':!0x1});}[_0x46a43e(0x15d)](_0x2b590e){return!0x1;}['_draw'](_0x3ce0be){const _0x5d7aa6=_0x46a43e;_0x56ae03[_0x5d7aa6(0x1de)][_0x5d7aa6(0x2d3)](_0x3ce0be,{'width':this['width'],'height':this[_0x5d7aa6(0x4d8)],'strokeWidth':_0x36560e,'stroke':this[_0x5d7aa6(0x41e)],'evented':!0x1}),this[_0x5d7aa6(0x363)]&&(_0x3ce0be[_0x5d7aa6(0x212)](),_0x3ce0be[_0x5d7aa6(0x259)](0x1,0x0,0x0,0x1,this[_0x5d7aa6(0x412)],this[_0x5d7aa6(0x2f0)]===_0x5d7aa6(0x4d5)?0x0:-_0x4617f7),_0x450f66[_0x5d7aa6(0x2d3)](_0x3ce0be,{'text':this[_0x5d7aa6(0x220)],'color':this[_0x5d7aa6(0x41e)]}),_0x3ce0be[_0x5d7aa6(0x36a)]());}}var _0x3d2d47=Object[_0x46a43e(0x1c7)],_0x10bad4=Object[_0x46a43e(0x1e9)],_0x17565b=(_0x4bd1f1,_0x29ca24,_0x5a35e5,_0x2c1788)=>{const _0x161edc=_0x46a43e;for(var _0x4c7387=_0x2c1788>0x1?void 0x0:_0x2c1788?_0x10bad4(_0x29ca24,_0x5a35e5):_0x29ca24,_0x2d5a33=_0x4bd1f1[_0x161edc(0x1bb)]-0x1,_0x166280;_0x2d5a33>=0x0;_0x2d5a33--)(_0x166280=_0x4bd1f1[_0x2d5a33])&&(_0x4c7387=(_0x2c1788?_0x166280(_0x29ca24,_0x5a35e5,_0x4c7387):_0x166280(_0x4c7387))||_0x4c7387);return _0x2c1788&&_0x4c7387&&_0x3d2d47(_0x29ca24,_0x5a35e5,_0x4c7387),_0x4c7387;},_0x270bd7=(_0x5e3bb3,_0x35d0cc)=>(_0x447a28,_0x2712dc)=>_0x35d0cc(_0x447a28,_0x2712dc,_0x5e3bb3);const _0x4588a2=0x1389;let _0x22d685=class extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(_0xe871a1,_0x252cb4,_0x393436,_0xdaf4c8){const _0x25f171=_0x46a43e;super(),_0x3a44bb(this,'_cursors',new Set()),_0x3a44bb(this,_0x25f171(0x221),null),(this[_0x25f171(0x3f6)]=_0xe871a1,this['_univerInstanceService']=_0x252cb4,this[_0x25f171(0x43e)]=_0x393436,this[_0x25f171(0x2da)]=_0xdaf4c8,this[_0x25f171(0x336)]());}get[_0x46a43e(0x243)](){const _0x32d5d7=_0x46a43e;return this[_0x32d5d7(0x43e)]['getRenderById'](this['_univerInstanceService'][_0x32d5d7(0x21c)](_0x5019cf['UniverInstanceType'][_0x32d5d7(0x258)])[_0x32d5d7(0x2c6)]())[_0x32d5d7(0x18f)](_0x1bea61[_0x32d5d7(0x276)]);}get[_0x46a43e(0x22f)](){const _0x13debe=_0x46a43e;return this[_0x13debe(0x397)][_0x13debe(0x21c)](_0x5019cf[_0x13debe(0x28c)][_0x13debe(0x258)])[_0x13debe(0x2c6)]();}['_init'](){const _0x5e7ef7=_0x46a43e;this['_sheetSkeletonManagerService']['currentSkeleton$']['pipe'](_0x33876a[_0x5e7ef7(0x41a)](this['dispose$']),_0x33876a[_0x5e7ef7(0x426)](_0x4e99a8=>{const _0x48f659=_0x5e7ef7;if(_0x4e99a8){const _0x119f29=_0x4e99a8[_0x48f659(0x46c)];return _0x54735b[_0x48f659(0x491)](this['_collabCursorController'][_0x48f659(0x3a3)](this[_0x48f659(0x22f)]),this[_0x48f659(0x2da)][_0x48f659(0x35d)])[_0x48f659(0x4b0)](_0x33876a['map'](([_0x56c164,_0x409689])=>{const _0x5a43ee=_0x48f659,_0x27be1c=new Map();return _0x56c164[_0x5a43ee(0x39a)]((_0x35587e,_0x182120)=>{const _0x495870=_0x5a43ee;if(_0x35587e[_0x495870(0x2cc)]===_0x119f29){const _0x4b5ed4={..._0x35587e};_0x4b5ed4[_0x495870(0x3c9)]=_0x409689[_0x35587e['color']],_0x27be1c[_0x495870(0x3f3)](_0x182120,_0x4b5ed4);}}),{'skeleton':_0x4e99a8,'cursors':_0x27be1c};}));}return _0x54735b['of']({'skeleton':null,'cursors':new Map()});}))[_0x5e7ef7(0x324)](({skeleton:_0x12ef0b,cursors:_0x13ea61})=>{const _0x5b2608=_0x5e7ef7;this[_0x5b2608(0x31e)](),_0x12ef0b&&this[_0x5b2608(0x18e)](_0x12ef0b,_0x13ea61);}),this[_0x5e7ef7(0x243)]['currentSkeleton$'][_0x5e7ef7(0x324)](_0x3cbdde=>{const _0x38b39d=_0x5e7ef7;if(_0x3cbdde==null)return;const {skeleton:_0x5b1ef4}=_0x3cbdde,_0x10afca=this[_0x38b39d(0x43e)][_0x38b39d(0x246)](this['_unitId']),{scene:_0x18f165}=_0x10afca;_0x18f165[_0x38b39d(0x300)][_0x38b39d(0x381)](_0x37d11b(_0x2baff5=>{const _0x317e81=_0x38b39d;var _0x1ac69c,_0x52256a;const {offsetX:_0x4a208e,offsetY:_0x447c20}=_0x2baff5,{x:_0x25359f,y:_0x55846b}=_0x18f165[_0x317e81(0x1b7)](_0x56ae03[_0x317e81(0x193)][_0x317e81(0x475)]([_0x4a208e,_0x447c20])),{scaleX:_0x114281,scaleY:_0x38e230}=_0x18f165[_0x317e81(0x3ef)](),_0x1e4921=_0x18f165[_0x317e81(0x425)](_0x1bea61['VIEWPORT_KEY'][_0x317e81(0x24c)]),_0x1e2e83=_0x18f165[_0x317e81(0x25b)](_0x56ae03[_0x317e81(0x193)][_0x317e81(0x475)]([_0x25359f,_0x55846b]),_0x1e4921),_0x39e104=_0x5b1ef4[_0x317e81(0x4fc)](_0x4a208e,_0x447c20,_0x114281,_0x38e230,_0x1e2e83);((_0x1ac69c=this[_0x317e81(0x221)])==null?void 0x0:_0x1ac69c['column'])===_0x39e104[_0x317e81(0x172)]&&((_0x52256a=this[_0x317e81(0x221)])==null?void 0x0:_0x52256a['row'])===_0x39e104[_0x317e81(0x304)]||this[_0x317e81(0x455)][_0x317e81(0x39a)](_0x37eaf0=>{const _0x404d1e=_0x317e81;_0x37eaf0[_0x404d1e(0x291)](_0x39e104);});},0x64));});}[_0x46a43e(0x18e)](_0x2e415e,_0x48d42e){const _0x4da7a4=_0x46a43e;var _0x2efe92;const _0xbd82d1=(_0x2efe92=this[_0x4da7a4(0x243)][_0x4da7a4(0x4f0)]())==null?void 0x0:_0x2efe92['skeleton'];if(!_0xbd82d1)return;const _0x566384=this[_0x4da7a4(0x4c0)]();if(!_0x566384)return;this[_0x4da7a4(0x455)][_0x4da7a4(0x39a)](_0xf009f6=>{const _0x13b0d2=_0x4da7a4;_0xf009f6[_0x13b0d2(0x320)]();});const {scene:_0x23b9f0}=_0x566384,_0x17f876=_0x45f265(Array[_0x4da7a4(0x380)](_0x48d42e[_0x4da7a4(0x3d8)]()))[_0x4da7a4(0x473)](_0x4ed19c=>{const _0xb09f18=_0x4da7a4,{color:_0x457625,range:_0x2085e1,name:_0x2126fa,selection:_0x15a2c6,sheetID:_0x2e26ec}=_0x4ed19c,{startColumn:_0x20d60c,startRow:_0xe56dc3,endColumn:_0x10a77e,endRow:_0x56a85e}=_0x2085e1,_0x24ef1a=_0x1bea61[_0xb09f18(0x174)](_0xe56dc3,_0x20d60c,_0x23b9f0,_0xbd82d1),_0x1cffe4=_0x1bea61[_0xb09f18(0x174)](_0x56a85e,_0x10a77e,_0x23b9f0,_0xbd82d1),{columnHeaderHeightAndMarginTop:_0x582bb6}=_0xbd82d1,{startX:_0x14b08e,startY:_0x23d188}=_0x24ef1a,{endX:_0x3dfcfb,endY:_0x32d612}=_0x1cffe4,_0x93bf67=_0x3dfcfb-_0x14b08e,_0x54c5f0=_0x32d612-_0x23d188,_0x858cfe={'labelPosition':_0x23d188-_0x582bb6>=_0x4617f7?'top':_0xb09f18(0x4d5),'sheetID':_0x2e26ec,'range':_0x2085e1,'color':_0x457625,'name':_0x2126fa,'selection':_0x15a2c6,'left':_0x14b08e,'top':_0x23d188,'width':_0x93bf67,'height':_0x54c5f0,'evented':!0x1,'zIndex':_0x4588a2};return new _0x985a81(_0x2126fa,_0x858cfe);});_0x23b9f0['addObjects'](_0x17f876,_0xc6ca79),this[_0x4da7a4(0x455)]=new Set(_0x17f876);}[_0x46a43e(0x31e)](){var _0x579fdc;(_0x579fdc=this['_cursors'])==null||_0x579fdc['forEach'](_0x5eff87=>_0x5eff87['dispose']());}[_0x46a43e(0x4c0)](){const _0x298972=_0x46a43e;return _0x1bea61['getSheetObject'](this['_univerInstanceService'],this[_0x298972(0x43e)]);}};_0x22d685=_0x17565b([_0x5019cf[_0x46a43e(0x3b2)](_0x5019cf[_0x46a43e(0x2ed)][_0x46a43e(0x3e9)],_0x22d685),_0x270bd7(0x0,_0x245a54[_0x46a43e(0x4b5)](_0x4a938f)),_0x270bd7(0x1,_0x5019cf[_0x46a43e(0x4e2)]),_0x270bd7(0x2,_0x56ae03[_0x46a43e(0x1db)]),_0x270bd7(0x3,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf[_0x46a43e(0x1a6)]))],_0x22d685);function _0x45f265(_0x1f8479){const _0x3a704c=_0x46a43e,_0x13f3ea=new Map();return _0x1f8479['forEach'](_0x508a5f=>{const _0x475eb3=_0x50f8;if(_0x13f3ea[_0x475eb3(0x209)](_0x508a5f[_0x475eb3(0x348)])){const _0x17c75b=_0x13f3ea[_0x475eb3(0x2db)](_0x508a5f[_0x475eb3(0x348)]);_0x17c75b['name']+=',\x20'+_0x508a5f[_0x475eb3(0x450)];}else _0x13f3ea[_0x475eb3(0x3f3)](_0x508a5f[_0x475eb3(0x348)],_0x508a5f);}),Array[_0x3a704c(0x380)](_0x13f3ea[_0x3a704c(0x3d8)]());}var _0x4e8b30=function(){const _0x22343d=_0x46a43e;return _0x4e8b30=Object[_0x22343d(0x34f)]||function(_0x2e53cd){const _0x1122d7=_0x22343d;for(var _0xa344f1,_0x23ae1d=0x1,_0x2013ff=arguments['length'];_0x23ae1d<_0x2013ff;_0x23ae1d++){_0xa344f1=arguments[_0x23ae1d];for(var _0x123936 in _0xa344f1)Object[_0x1122d7(0x30f)][_0x1122d7(0x21b)]['call'](_0xa344f1,_0x123936)&&(_0x2e53cd[_0x123936]=_0xa344f1[_0x123936]);}return _0x2e53cd;},_0x4e8b30[_0x22343d(0x47a)](this,arguments);},_0x3f97cd=function(_0x14e6ec,_0x485a32){const _0x1fbd98=_0x46a43e;var _0x3ac617={};for(var _0x218391 in _0x14e6ec)Object['prototype'][_0x1fbd98(0x21b)]['call'](_0x14e6ec,_0x218391)&&_0x485a32[_0x1fbd98(0x3c3)](_0x218391)<0x0&&(_0x3ac617[_0x218391]=_0x14e6ec[_0x218391]);if(_0x14e6ec!=null&&typeof Object[_0x1fbd98(0x1fa)]==_0x1fbd98(0x3b8)){for(var _0x3a7ff1=0x0,_0x218391=Object['getOwnPropertySymbols'](_0x14e6ec);_0x3a7ff1<_0x218391['length'];_0x3a7ff1++)_0x485a32[_0x1fbd98(0x3c3)](_0x218391[_0x3a7ff1])<0x0&&Object[_0x1fbd98(0x30f)]['propertyIsEnumerable'][_0x1fbd98(0x4fd)](_0x14e6ec,_0x218391[_0x3a7ff1])&&(_0x3ac617[_0x218391[_0x3a7ff1]]=_0x14e6ec[_0x218391[_0x3a7ff1]]);}return _0x3ac617;},_0x2e3a68=_0x7a0305['forwardRef'](function(_0x84aee0,_0x87c578){const _0x20294e=_0x46a43e;var _0x1cf6a3=_0x84aee0[_0x20294e(0x501)],_0x5565fb=_0x84aee0['id'],_0x3fb9d2=_0x84aee0[_0x20294e(0x349)],_0x46bc87=_0x84aee0[_0x20294e(0x2fa)],_0x85a8cf=_0x3f97cd(_0x84aee0,[_0x20294e(0x501),'id',_0x20294e(0x349),_0x20294e(0x2fa)]),_0x370679=_0x20294e(0x3ca)[_0x20294e(0x3c6)](_0x5565fb,'\x20')[_0x20294e(0x3c6)](_0x3fb9d2||'')[_0x20294e(0x44c)](),_0x4f8dcb=_0x7a0305['useRef']('_'['concat'](_0x2745cd()));return _0x477768(_0x1cf6a3,''[_0x20294e(0x3c6)](_0x5565fb),{'defIds':_0x1cf6a3[_0x20294e(0x34a)],'idSuffix':_0x4f8dcb[_0x20294e(0x3d5)]},_0x4e8b30({'ref':_0x87c578,'className':_0x370679},_0x85a8cf),_0x46bc87);});function _0x477768(_0x4cf628,_0x293a8e,_0xbb7782,_0x14fa0e,_0x4bbd19){const _0x5d4cc6=_0x46a43e;return _0x7a0305[_0x5d4cc6(0x32d)](_0x4cf628[_0x5d4cc6(0x187)],_0x4e8b30(_0x4e8b30({'key':_0x293a8e},_0x257473(_0x4cf628,_0xbb7782,_0x4bbd19)),_0x14fa0e),(_0x18ac37(_0x4cf628,_0xbb7782)['children']||[])[_0x5d4cc6(0x473)](function(_0x10a0ae,_0x1b4e78){const _0x213830=_0x5d4cc6;return _0x477768(_0x10a0ae,''['concat'](_0x293a8e,'-')[_0x213830(0x3c6)](_0x4cf628[_0x213830(0x187)],'-')[_0x213830(0x3c6)](_0x1b4e78),_0xbb7782,void 0x0,_0x4bbd19);}));}function _0x257473(_0x50b684,_0x369fb6,_0x31d47e){const _0x30f832=_0x46a43e;var _0x5db1a5=_0x4e8b30({},_0x50b684['attrs']);_0x31d47e!=null&&_0x31d47e[_0x30f832(0x46b)]&&_0x5db1a5['fill']===_0x30f832(0x46b)&&(_0x5db1a5['fill']=_0x31d47e[_0x30f832(0x46b)]);var _0x1c6128=_0x369fb6['defIds'];return!_0x1c6128||_0x1c6128[_0x30f832(0x1bb)]===0x0||(_0x50b684[_0x30f832(0x187)]===_0x30f832(0x339)&&_0x5db1a5[_0x30f832(0x22a)]&&(_0x5db1a5[_0x30f832(0x22a)]=_0x5db1a5[_0x30f832(0x22a)]+_0x369fb6[_0x30f832(0x1ce)]),Object[_0x30f832(0x410)](_0x5db1a5)[_0x30f832(0x39a)](function(_0x3d3684){const _0x263f53=_0x30f832;var _0x5b1382=_0x3d3684[0x0],_0x23ccef=_0x3d3684[0x1];typeof _0x23ccef=='string'&&(_0x5db1a5[_0x5b1382]=_0x23ccef[_0x263f53(0x439)](/url\(#(.*)\)/,_0x263f53(0x2d4)['concat'](_0x369fb6[_0x263f53(0x1ce)],')')));})),_0x5db1a5;}function _0x18ac37(_0x1692d5,_0x368ecb){const _0x557752=_0x46a43e;var _0x3708f4,_0x329e17=_0x368ecb[_0x557752(0x34a)];return!_0x329e17||_0x329e17[_0x557752(0x1bb)]===0x0?_0x1692d5:_0x1692d5[_0x557752(0x187)]===_0x557752(0x45d)&&(!((_0x3708f4=_0x1692d5[_0x557752(0x264)])===null||_0x3708f4===void 0x0)&&_0x3708f4[_0x557752(0x1bb)])?_0x4e8b30(_0x4e8b30({},_0x1692d5),{'children':_0x1692d5['children']['map'](function(_0x55b8a0){const _0x387956=_0x557752;return typeof _0x55b8a0[_0x387956(0x343)]['id']==_0x387956(0x4ab)&&_0x329e17&&_0x329e17[_0x387956(0x3c3)](_0x55b8a0['attrs']['id'])>-0x1?_0x4e8b30(_0x4e8b30({},_0x55b8a0),{'attrs':_0x4e8b30(_0x4e8b30({},_0x55b8a0[_0x387956(0x343)]),{'id':_0x55b8a0[_0x387956(0x343)]['id']+_0x368ecb[_0x387956(0x1ce)]})}):_0x55b8a0;})}):_0x1692d5;}function _0x2745cd(){const _0x2ecf99=_0x46a43e;return Math['random']()[_0x2ecf99(0x1f2)](0x24)[_0x2ecf99(0x1c6)](0x2,0x8);}_0x2e3a68[_0x46a43e(0x4a2)]='UniverIcon';var _0x3ad01a={'tag':_0x46a43e(0x1d4),'attrs':{'fill':_0x46a43e(0x26c),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x46a43e(0x1c2)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x46a43e(0x283),'d':_0x46a43e(0x2b6),'strokeLinecap':'round','strokeLinejoin':_0x46a43e(0x234),'strokeWidth':1.2}}]},{'tag':_0x46a43e(0x45d),'attrs':{},'children':[{'tag':_0x46a43e(0x1cd),'attrs':{'id':_0x46a43e(0x3b4)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x46a43e(0x2dd)}}]}]}],'defIds':[_0x46a43e(0x3b4)]},_0x820a7=_0x7a0305[_0x46a43e(0x3a1)](function(_0x58f4bc,_0x540790){const _0xbf1464=_0x46a43e;return _0x7a0305[_0xbf1464(0x32d)](_0x2e3a68,Object[_0xbf1464(0x34f)]({},_0x58f4bc,{'id':_0xbf1464(0x4d9),'ref':_0x540790,'icon':_0x3ad01a}));});_0x820a7['displayName']='OffLineSingle';var _0x33d75b={'tag':'svg','attrs':{'fill':'none','viewBox':_0x46a43e(0x3db),'width':_0x46a43e(0x1c2),'height':_0x46a43e(0x1c2)},'children':[{'tag':'g','attrs':{'clipPath':_0x46a43e(0x20f)},'children':[{'tag':_0x46a43e(0x43b),'attrs':{'stroke':_0x46a43e(0x283),'d':_0x46a43e(0x353),'strokeLinecap':_0x46a43e(0x234),'strokeLinejoin':_0x46a43e(0x234),'strokeWidth':1.2}}]},{'tag':_0x46a43e(0x45d),'attrs':{},'children':[{'tag':_0x46a43e(0x1cd),'attrs':{'id':_0x46a43e(0x4f2)},'children':[{'tag':_0x46a43e(0x43b),'attrs':{'fill':_0x46a43e(0x200),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x46a43e(0x4f2)]},_0x503e40=_0x7a0305[_0x46a43e(0x3a1)](function(_0x94b92f,_0x522833){const _0x101b9f=_0x46a43e;return _0x7a0305[_0x101b9f(0x32d)](_0x2e3a68,Object[_0x101b9f(0x34f)]({},_0x94b92f,{'id':_0x101b9f(0x1f5),'ref':_0x522833,'icon':_0x33d75b}));});_0x503e40[_0x46a43e(0x4a2)]=_0x46a43e(0x35c);const _0x5623c8={'onlineStatusIcon':'univer-online-status-icon','onlineStatusTitle':_0x46a43e(0x467),'onlineStatus':_0x46a43e(0x42a),'online':'univer-online','offline':_0x46a43e(0x435)};function _0x151771(_0x58b612){const _0x136e02=_0x46a43e;switch(_0x58b612){case _0x348409[_0x136e02(0x1b8)]:return'collabStatus.offline';case _0x348409[_0x136e02(0x420)]:return _0x136e02(0x267);case _0x348409['FETCH_MISS']:return _0x136e02(0x2e4);case _0x348409[_0x136e02(0x3fc)]:return'collabStatus.notCollab';case _0x348409[_0x136e02(0x365)]:case _0x348409['AWAITING']:case _0x348409[_0x136e02(0x203)]:return _0x136e02(0x19f);case _0x348409[_0x136e02(0x407)]:return _0x136e02(0x20b);}}function _0x263e0e(_0x3cbc61){const _0xbe1f25=_0x46a43e,{status$:_0x513ebd}=_0x3cbc61,_0x4e85e7=_0x5138ef[_0xbe1f25(0x1ed)](_0x513ebd,_0x348409['NOT_COLLAB']),_0x5b46c5=_0x26fb9e[_0xbe1f25(0x321)](_0x5019cf['LocaleService']),_0x454427=_0x4e85e7!==_0x348409[_0xbe1f25(0x1b8)],_0x3bf045=_0x5b46c5['t'](_0x151771(_0x4e85e7)),_0x3ef06d=_0xb3640c(_0x5623c8[_0xbe1f25(0x214)],{[_0x5623c8['online']]:_0x454427,[_0x5623c8[_0xbe1f25(0x4a4)]]:!_0x454427}),_0x4d213e=_0x454427?_0x7a0305[_0xbe1f25(0x32d)](_0x503e40,null):_0x7a0305[_0xbe1f25(0x32d)](_0x820a7,null);return _0x7a0305[_0xbe1f25(0x32d)](_0xbe1f25(0x3ab),{'className':_0x3ef06d},_0x7a0305['createElement']('div',{'className':_0x5623c8['onlineStatusIcon']},_0x4d213e),_0x7a0305['createElement'](_0xbe1f25(0x3ab),{'className':_0x5623c8['onlineStatusTitle']},_0x3bf045));}var _0x50bdb6=Object[_0x46a43e(0x1c7)],_0x195b15=Object['getOwnPropertyDescriptor'],_0x2c5045=(_0x35a41f,_0x57b681,_0x42eff1,_0x57c05f)=>{const _0x189ab2=_0x46a43e;for(var _0x79ddbb=_0x57c05f>0x1?void 0x0:_0x57c05f?_0x195b15(_0x57b681,_0x42eff1):_0x57b681,_0x13539b=_0x35a41f[_0x189ab2(0x1bb)]-0x1,_0x1cca6d;_0x13539b>=0x0;_0x13539b--)(_0x1cca6d=_0x35a41f[_0x13539b])&&(_0x79ddbb=(_0x57c05f?_0x1cca6d(_0x57b681,_0x42eff1,_0x79ddbb):_0x1cca6d(_0x79ddbb))||_0x79ddbb);return _0x57c05f&&_0x79ddbb&&_0x50bdb6(_0x57b681,_0x42eff1,_0x79ddbb),_0x79ddbb;},_0x5da3b5=(_0x49634b,_0x3e0e5a)=>(_0x12a167,_0xf8c223)=>_0x3e0e5a(_0x12a167,_0xf8c223,_0x49634b);_0x575351['DesktopCollaborationStatusDisplayController']=class extends _0x5019cf[_0x46a43e(0x32a)]{constructor(_0x3b697d,_0x23971a,_0x3b1946,_0x1b2b94){const _0x46e5eb=_0x46a43e;super(),_0x3a44bb(this,'_status$',new _0x54735b[(_0x46e5eb(0x413))](_0x348409[_0x46e5eb(0x3fc)])),(this['_univerInstanceService']=_0x3b697d,this['_uiPartsService']=_0x23971a,this[_0x46e5eb(0x383)]=_0x3b1946,this[_0x46e5eb(0x42d)]=_0x1b2b94,this['_initStatusComponent'](),this[_0x46e5eb(0x45a)]());}['_initStatusComponent'](){const _0x138693=_0x46a43e;this['disposeWithMe'](this[_0x138693(0x38b)][_0x138693(0x4bf)](_0x5138ef[_0x138693(0x502)][_0x138693(0x2d5)],()=>_0x26fb9e[_0x138693(0x2f5)](_0x1fe680({'status$':this[_0x138693(0x504)][_0x138693(0x26a)]()}),this[_0x138693(0x383)])));}[_0x46a43e(0x45a)](){const _0x55fc7e=_0x46a43e;this['disposeWithMe'](_0x5019cf[_0x55fc7e(0x35e)](this[_0x55fc7e(0x397)][_0x55fc7e(0x4c3)][_0x55fc7e(0x4b0)](_0x54735b[_0x55fc7e(0x426)](()=>{const _0x3c68d3=_0x55fc7e,_0x326e60=this[_0x3c68d3(0x397)]['getFocusedUnit']();return _0x326e60?this[_0x3c68d3(0x42d)][_0x3c68d3(0x4ed)](_0x326e60[_0x3c68d3(0x2c6)]()):_0x54735b['of'](null);}),_0x54735b['switchMap'](_0x107452=>_0x107452?_0x107452[_0x55fc7e(0x1e8)]:_0x54735b['of'](_0x348409[_0x55fc7e(0x3fc)])))[_0x55fc7e(0x324)](_0x1342fa=>{const _0x55d297=_0x55fc7e;this[_0x55d297(0x504)][_0x55d297(0x230)](_0x1342fa);})));}},_0x575351['DesktopCollaborationStatusDisplayController']=_0x2c5045([_0x5019cf[_0x46a43e(0x3b2)](_0x5019cf[_0x46a43e(0x2ed)][_0x46a43e(0x241)],_0x575351[_0x46a43e(0x265)]),_0x5da3b5(0x0,_0x5019cf[_0x46a43e(0x4e2)]),_0x5da3b5(0x1,_0x5138ef['IUIPartsService']),_0x5da3b5(0x2,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0x5da3b5(0x3,_0x245a54[_0x46a43e(0x4b5)](_0x575351['CollaborationController']))],_0x575351[_0x46a43e(0x265)]);function _0x1fe680(_0x345b0b){const {status$:_0x5e0cc8}=_0x345b0b;return function(){const _0x35c9dd=_0x50f8;return _0x7a0305[_0x35c9dd(0x32d)](_0x263e0e,{'status$':_0x5e0cc8});};}const _0x279dda=_0x245a54[_0x46a43e(0x46a)]('uni.network.url-service');var _0x4d7710=Object[_0x46a43e(0x1c7)],_0x22e76a=Object[_0x46a43e(0x1e9)],_0x36f538=(_0x55f603,_0x3e3848,_0x3b6ce,_0x3e6bd8)=>{const _0x44d01b=_0x46a43e;for(var _0x2a032f=_0x3e6bd8>0x1?void 0x0:_0x3e6bd8?_0x22e76a(_0x3e3848,_0x3b6ce):_0x3e3848,_0x9789a2=_0x55f603[_0x44d01b(0x1bb)]-0x1,_0x3328ea;_0x9789a2>=0x0;_0x9789a2--)(_0x3328ea=_0x55f603[_0x9789a2])&&(_0x2a032f=(_0x3e6bd8?_0x3328ea(_0x3e3848,_0x3b6ce,_0x2a032f):_0x3328ea(_0x2a032f))||_0x2a032f);return _0x3e6bd8&&_0x2a032f&&_0x4d7710(_0x3e3848,_0x3b6ce,_0x2a032f),_0x2a032f;},_0x437fe4=(_0x2eceb9,_0x4fe1f9)=>(_0x150b78,_0x5f3694)=>_0x4fe1f9(_0x150b78,_0x5f3694,_0x2eceb9);_0x575351['DataLoaderController']=class extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(_0x4f0cc6,_0x3aabb6,_0x26583e,_0x4eebd4,_0x37f8d7,_0x545488){const _0x56806e=_0x46a43e;super(),this['_urlService']=_0x4f0cc6,this[_0x56806e(0x433)]=_0x3aabb6,this[_0x56806e(0x34d)]=_0x26583e,this[_0x56806e(0x36e)]=_0x4eebd4,this[_0x56806e(0x295)]=_0x37f8d7,_0x545488?_0x545488==null||_0x545488[_0x56806e(0x2f6)]()[_0x56806e(0x2c5)](()=>this['_init']()):(this[_0x56806e(0x433)][_0x56806e(0x418)](_0x56806e(0x16b),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async['_init'](){const _0x20ccae=_0x46a43e,_0x50b2cf=this[_0x20ccae(0x384)][_0x20ccae(0x4b8)](_0x20ccae(0x15f)),_0x3539ae=this[_0x20ccae(0x384)][_0x20ccae(0x4b8)](_0x20ccae(0x219));if(!_0x50b2cf||!_0x3539ae){this['_logService'][_0x20ccae(0x418)](_0x20ccae(0x16b),_0x20ccae(0x3c1));return;}switch(Number(_0x3539ae)){case _0x4418d5[_0x20ccae(0x258)]:{const _0x4cd324=await this['_loadSheet'](_0x50b2cf);this[_0x20ccae(0x2c7)](_0x4cd324);break;}case _0x4418d5[_0x20ccae(0x27d)]:{await this['_loadDoc'](_0x50b2cf);break;}default:{this['_logService'][_0x20ccae(0x3a0)](_0x20ccae(0x16b),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x46a43e(0x2c7)](_0x331029){const _0x317496=_0x46a43e;await this[_0x317496(0x294)](_0x331029),_0x331029['activeSheet$']['pipe'](_0x54735b[_0x317496(0x41a)](this[_0x317496(0x4a5)]))[_0x317496(0x324)](_0x1114fc=>{_0x1114fc&&this['_updateURLWithCurrentState'](_0x1114fc);}),this['_urlService'][_0x317496(0x391)][_0x317496(0x4b0)](_0x54735b[_0x317496(0x41a)](this[_0x317496(0x4a5)]))[_0x317496(0x324)](()=>this[_0x317496(0x294)](_0x331029));}[_0x46a43e(0x1dc)](_0x5e1986,_0x316c71=!0x1){const _0x3d011a=_0x46a43e,_0x5e7845=this[_0x3d011a(0x384)][_0x3d011a(0x4b8)](_0x3d011a(0x19c));_0x5e1986['getSheetId']()!==_0x5e7845&&this[_0x3d011a(0x384)][_0x3d011a(0x43c)](_0x3d011a(0x19c),_0x5e1986[_0x3d011a(0x35b)](),_0x316c71);}async[_0x46a43e(0x294)](_0x5b18e1){const _0x4265e0=_0x46a43e;var _0x4171b7;const _0x4f5015=this['_urlService'][_0x4265e0(0x4b8)](_0x4265e0(0x19c));if(!_0x4f5015||!_0x5b18e1['getSheetBySheetId'](_0x4f5015)){const _0x56601f=_0x5b18e1[_0x4265e0(0x271)]()[0x0],_0x321069=_0x5b18e1[_0x4265e0(0x392)](_0x56601f);if(!_0x321069)return;this[_0x4265e0(0x1dc)](_0x321069,!0x0),await this[_0x4265e0(0x34d)]['executeCommand'](_0x7f012d[_0x4265e0(0x40f)]['id'],{'unitId':_0x5b18e1[_0x4265e0(0x2c6)](),'subUnitId':_0x56601f});return;}((_0x4171b7=_0x5b18e1[_0x4265e0(0x18a)]())==null?void 0x0:_0x4171b7[_0x4265e0(0x35b)]())!==_0x4f5015&&await this[_0x4265e0(0x34d)][_0x4265e0(0x4ac)](_0x7f012d['SetWorksheetActivateCommand']['id'],{'unitId':_0x5b18e1['getUnitId'](),'subUnitId':_0x4f5015});}async[_0x46a43e(0x18b)](_0xa02d31){const _0x2a7f73=_0x46a43e;let _0x398341=0x0;const _0x3b4976=await this[_0x2a7f73(0x36e)][_0x2a7f73(0x444)](_0xa02d31);return _0x3b4976&&(_0x3b4976['awaitingChangeset']||_0x3b4976[_0x2a7f73(0x2c2)][_0x2a7f73(0x1bb)]!==0x0)&&(_0x398341=_0x3b4976[_0x2a7f73(0x301)]),_0x398341===0x0&&this['_logService'][_0x2a7f73(0x418)](_0x2a7f73(0x16b),_0x2a7f73(0x386)),this[_0x2a7f73(0x295)]['loadSheet'](_0xa02d31,_0x398341);}async[_0x46a43e(0x2d7)](_0x4f8ac5){const _0x388509=_0x46a43e;let _0x4beb07=0x0;const _0x4e9596=await this[_0x388509(0x36e)][_0x388509(0x444)](_0x4f8ac5);return _0x4e9596&&(_0x4e9596[_0x388509(0x4d6)]||_0x4e9596[_0x388509(0x2c2)][_0x388509(0x1bb)]!==0x0)&&(_0x4beb07=_0x4e9596[_0x388509(0x301)]),_0x4beb07===0x0&&this[_0x388509(0x433)][_0x388509(0x418)](_0x388509(0x16b),_0x388509(0x386)),this[_0x388509(0x295)]['loadDoc'](_0x4f8ac5,_0x4beb07);}},_0x575351['DataLoaderController']=_0x36f538([_0x5019cf['OnLifecycle'](_0x5019cf[_0x46a43e(0x2ed)][_0x46a43e(0x241)],_0x575351['DataLoaderController']),_0x437fe4(0x0,_0x279dda),_0x437fe4(0x1,_0x5019cf[_0x46a43e(0x4e6)]),_0x437fe4(0x2,_0x5019cf[_0x46a43e(0x3b9)]),_0x437fe4(0x3,_0x245a54[_0x46a43e(0x4b5)](_0x575351[_0x46a43e(0x2d1)])),_0x437fe4(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a[_0x46a43e(0x406)])),_0x437fe4(0x5,_0x245a54[_0x46a43e(0x2b9)](_0x2cd6ae[_0x46a43e(0x2ec)]))],_0x575351['DataLoaderController']);var _0xdfa314=Object['defineProperty'],_0xa0eac6=Object[_0x46a43e(0x1e9)],_0x5ca0ba=(_0x852c2b,_0x3a2c2b,_0x48e147,_0x3906cb)=>{const _0x41f658=_0x46a43e;for(var _0x582fb0=_0x3906cb>0x1?void 0x0:_0x3906cb?_0xa0eac6(_0x3a2c2b,_0x48e147):_0x3a2c2b,_0x52a71c=_0x852c2b[_0x41f658(0x1bb)]-0x1,_0x3b3c5e;_0x52a71c>=0x0;_0x52a71c--)(_0x3b3c5e=_0x852c2b[_0x52a71c])&&(_0x582fb0=(_0x3906cb?_0x3b3c5e(_0x3a2c2b,_0x48e147,_0x582fb0):_0x3b3c5e(_0x582fb0))||_0x582fb0);return _0x3906cb&&_0x582fb0&&_0xdfa314(_0x3a2c2b,_0x48e147,_0x582fb0),_0x582fb0;},_0x51f38a=(_0x5b72e7,_0xf4cf5a)=>(_0x3805f3,_0x369356)=>_0xf4cf5a(_0x3805f3,_0x369356,_0x5b72e7);const _0x2c666e=_0x46a43e(0x4b1),_0x18120c=_0x46a43e(0x3d7);let _0x5bbd97=class extends _0x5019cf[_0x46a43e(0x32a)]{constructor(_0x11e2ee,_0x1bd7fb){const _0x3e4d28=_0x46a43e;super(),this['_univerInstanceService']=_0x11e2ee,this[_0x3e4d28(0x317)]=_0x1bd7fb,this[_0x3e4d28(0x336)]();}[_0x46a43e(0x336)](){const _0x477bcc=_0x46a43e;this['disposeWithMe'](_0x5019cf[_0x477bcc(0x35e)](this['_univerInstanceService'][_0x477bcc(0x4c3)]['subscribe'](()=>{const _0x259959=_0x477bcc;var _0x442ea5;const _0xeae0b7=this['_univerInstanceService'][_0x259959(0x24f)]();let _0x1b45b2=(_0x442ea5=this['_configService'][_0x259959(0x3ea)](_0x2c666e))!=null?_0x442ea5:_0x18120c;_0xeae0b7 instanceof _0x5019cf[_0x259959(0x395)]&&(_0x1b45b2=_0xeae0b7[_0x259959(0x450)]),document['title']=_0x1b45b2;})));}};_0x5bbd97=_0x5ca0ba([_0x5019cf[_0x46a43e(0x3b2)](_0x5019cf[_0x46a43e(0x2ed)][_0x46a43e(0x1b0)],_0x5bbd97),_0x51f38a(0x0,_0x5019cf[_0x46a43e(0x4e2)]),_0x51f38a(0x1,_0x5019cf[_0x46a43e(0x460)])],_0x5bbd97);var _0xe1f25a=Object[_0x46a43e(0x1c7)],_0x402875=Object['getOwnPropertyDescriptor'],_0x3f7c5b=(_0x222086,_0x3684b1,_0x229aee,_0x4b44eb)=>{for(var _0x3610ad=_0x4b44eb>0x1?void 0x0:_0x4b44eb?_0x402875(_0x3684b1,_0x229aee):_0x3684b1,_0x5acb06=_0x222086['length']-0x1,_0x2a2e34;_0x5acb06>=0x0;_0x5acb06--)(_0x2a2e34=_0x222086[_0x5acb06])&&(_0x3610ad=(_0x4b44eb?_0x2a2e34(_0x3684b1,_0x229aee,_0x3610ad):_0x2a2e34(_0x3610ad))||_0x3610ad);return _0x4b44eb&&_0x3610ad&&_0xe1f25a(_0x3684b1,_0x229aee,_0x3610ad),_0x3610ad;},_0x18c36d=(_0x30743c,_0x34982e)=>(_0x4a1ba7,_0x42dfb4)=>_0x34982e(_0x4a1ba7,_0x42dfb4,_0x30743c);let _0x201e04=class{constructor(_0xf4bee6,_0x36c13f){const _0x4f5f97=_0x46a43e;this[_0x4f5f97(0x317)]=_0xf4bee6,this[_0x4f5f97(0x463)]=_0x36c13f;}async['getUnitOnRev'](_0x4a3b16,_0x3669a0){const _0x5de6eb=_0x46a43e;var _0x46dd7e;const {unitID:_0x592387,type:_0x31bca4,revision:_0x2c0612=0x0}=_0x3669a0,_0x56b088=this[_0x5de6eb(0x2e0)]()+'/'+_0x31bca4+_0x5de6eb(0x1c9)+_0x592387+_0x5de6eb(0x464)+(_0x2c0612===0x1?0x0:_0x2c0612),_0x3cb7db=(await this[_0x5de6eb(0x463)][_0x5de6eb(0x2db)](_0x56b088))['body'],_0x3f9baa=(_0x46dd7e=_0x3cb7db['snapshot'])==null?void 0x0:_0x46dd7e[_0x5de6eb(0x42c)];if(_0x3f9baa){const _0x283ca5=_0x3f9baa==null?void 0x0:_0x3f9baa[_0x5de6eb(0x2b2)],_0x2e5f75=_0x5019cf[_0x5de6eb(0x38f)][_0x5de6eb(0x2d0)](_0x5019cf[_0x5de6eb(0x1ef)](_0x283ca5));_0x3f9baa[_0x5de6eb(0x2b2)]=_0x2e5f75,Object['entries'](_0x3f9baa['sheets'])[_0x5de6eb(0x39a)](([,_0xa75db7])=>{const _0x45e8f2=_0x5de6eb,_0x19119f=_0xa75db7[_0x45e8f2(0x2b2)],_0x12ce14=_0x5019cf[_0x45e8f2(0x38f)][_0x45e8f2(0x2d0)](_0x5019cf[_0x45e8f2(0x1ef)](_0x19119f));_0xa75db7[_0x45e8f2(0x2b2)]=_0x12ce14;});}return _0x3cb7db;}async[_0x46a43e(0x1ea)](_0x472af7,_0x49cfbc){const _0x2b7329=_0x46a43e,{unitID:_0x46c17b,type:_0x5b8934,blockID:_0x309f0f}=_0x49cfbc,_0x442ae4=this[_0x2b7329(0x302)]()+'/'+_0x5b8934+_0x2b7329(0x1c9)+_0x46c17b+'/block/'+_0x309f0f;return(await this[_0x2b7329(0x463)][_0x2b7329(0x2db)](_0x442ae4))[_0x2b7329(0x190)];}async[_0x46a43e(0x346)](_0x322ba4,_0x546504){const _0x591010=_0x46a43e,{unitID:_0x1c4cf5,type:_0x5cd815,from:_0xd0f399,to:_0x4361bf}=_0x546504,_0xf90aca=this[_0x591010(0x302)]()+'/'+_0x5cd815+_0x591010(0x1c9)+_0x1c4cf5+_0x591010(0x296)+_0xd0f399+'&to='+_0x4361bf;return(await this['_httpService'][_0x591010(0x2db)](_0xf90aca))[_0x591010(0x190)];}['_getSnapshotAPIPrefix'](){const _0x3cc7e4=_0x46a43e;var _0x4c6cfb;return(_0x4c6cfb=this[_0x3cc7e4(0x317)][_0x3cc7e4(0x3ea)](_0x25d6a7))!=null?_0x4c6cfb:this[_0x3cc7e4(0x302)]();}['_getAPIPrefix'](){const _0x43c35c=_0x46a43e;var _0x859f98;return(_0x859f98=this[_0x43c35c(0x317)][_0x43c35c(0x3ea)](_0xb4801b))!=null?_0x859f98:_0x47a400;}async[_0x46a43e(0x21a)](_0x174b52,_0x5250bd){const _0x2d9837=_0x46a43e,_0x4d7fde='/universer-api/snapshot/'+_0x5250bd[_0x2d9837(0x219)]+_0x2d9837(0x1c9)+_0x5250bd[_0x2d9837(0x166)]+'/resources';return(await this[_0x2d9837(0x463)][_0x2d9837(0x2db)](_0x4d7fde,{'params':{'resourceId':JSON[_0x2d9837(0x485)](_0x5250bd['resourceIDs'])}}))[_0x2d9837(0x190)];}['saveSnapshot'](){const _0x57ed75=_0x46a43e;throw new Error(_0x57ed75(0x229));}[_0x46a43e(0x178)](){const _0x43a04e=_0x46a43e;throw new Error(_0x43a04e(0x229));}[_0x46a43e(0x4c4)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0x201e04=_0x3f7c5b([_0x18c36d(0x0,_0x5019cf[_0x46a43e(0x460)]),_0x18c36d(0x1,_0x245a54[_0x46a43e(0x4b5)](_0x3e6592[_0x46a43e(0x494)]))],_0x201e04);var _0x49536f=Object[_0x46a43e(0x1c7)],_0x550c4d=Object[_0x46a43e(0x1e9)],_0x2e5bbb=(_0x20ce69,_0x307714,_0x5163df,_0x47df0f)=>{const _0x23cf58=_0x46a43e;for(var _0x3d524a=_0x47df0f>0x1?void 0x0:_0x47df0f?_0x550c4d(_0x307714,_0x5163df):_0x307714,_0x59c7a7=_0x20ce69[_0x23cf58(0x1bb)]-0x1,_0x3b922a;_0x59c7a7>=0x0;_0x59c7a7--)(_0x3b922a=_0x20ce69[_0x59c7a7])&&(_0x3d524a=(_0x47df0f?_0x3b922a(_0x307714,_0x5163df,_0x3d524a):_0x3b922a(_0x3d524a))||_0x3d524a);return _0x47df0f&&_0x3d524a&&_0x49536f(_0x307714,_0x5163df,_0x3d524a),_0x3d524a;},_0x230f1f=(_0x25c015,_0x59eed2)=>(_0x36e05b,_0x2841d0)=>_0x59eed2(_0x36e05b,_0x2841d0,_0x25c015);let _0x18c703=class extends _0x5019cf[_0x46a43e(0x3d6)]{constructor(_0xdf4f25,_0x2ef261,_0x23def7,_0x1eba96,_0x4a3a0f){const _0xfd382c=_0x46a43e;super(_0xdf4f25,_0x2ef261,_0x23def7),this[_0xfd382c(0x43f)]=_0x1eba96,this[_0xfd382c(0x433)]=_0x4a3a0f;}[_0x46a43e(0x4fb)](_0x5a8857,_0x43f20d){const _0x2baa06=_0x46a43e,_0x276e55=this[_0x2baa06(0x39e)](_0x5a8857);if(_0x276e55)try{const _0x36a822=this['_transformStack'](_0x276e55,_0x43f20d);this[_0x2baa06(0x4ba)](_0x5a8857,_0x36a822);}catch(_0x314787){this[_0x2baa06(0x433)][_0x2baa06(0x3a0)](_0x2baa06(0x480),_0x314787),this[_0x2baa06(0x1bf)](_0x5a8857);}const _0xd5710e=this[_0x2baa06(0x423)](_0x5a8857);if(_0xd5710e)try{const _0x293d1e=this[_0x2baa06(0x210)](_0xd5710e,_0x43f20d);this[_0x2baa06(0x4f8)](_0x5a8857,_0x293d1e);}catch(_0x3001e7){this[_0x2baa06(0x433)]['error'](_0x3001e7),this[_0x2baa06(0x197)](_0x5a8857);}}['_clearUndo'](_0x4d765e){const _0x326b24=_0x46a43e,_0x2827d3=this['_getUndoStack'](_0x4d765e);_0x2827d3&&(_0x2827d3[_0x326b24(0x1bb)]=0x0,this[_0x326b24(0x490)]());}[_0x46a43e(0x197)](_0x50467f){const _0x179d90=_0x46a43e,_0x121f66=this[_0x179d90(0x423)](_0x50467f);_0x121f66&&(_0x121f66[_0x179d90(0x1bb)]=0x0,this[_0x179d90(0x490)]());}['_substituteUndoStack'](_0x3e06a6,_0x5e2073){const _0x563ca7=_0x46a43e;this[_0x563ca7(0x292)][_0x563ca7(0x3f3)](_0x3e06a6,_0x5e2073),this[_0x563ca7(0x490)]();}['_substituteRedoStack'](_0x36c5b4,_0x56b688){const _0xede824=_0x46a43e;this['_redoStacks'][_0xede824(0x3f3)](_0x36c5b4,_0x56b688),this['_updateStatus']();}[_0x46a43e(0x210)](_0x5bc8ca,_0x9df9f3){const _0x3a1613=_0x46a43e,_0x46577b=[];let _0x1c2c81=_0x9df9f3,_0x110204=_0x9df9f3;for(let _0x43338f=_0x5bc8ca['length']-0x1;_0x43338f>=0x0;_0x43338f--){const {unitID:_0x1605d3,undoMutations:_0x4d26d0,redoMutations:_0x5e3158}=_0x5bc8ca[_0x43338f],_0x38b03e=this['_transformService'][_0x3a1613(0x3ba)](_0x1c2c81,_0x4d26d0),_0x21e0d7=this['_transformService'][_0x3a1613(0x3ba)](_0x110204,_0x5e3158);if(_0x38ce1a[_0x3a1613(0x396)](_0x38b03e)||_0x38ce1a['isTransformMutationsWithChangesetFailure'](_0x21e0d7)){this[_0x3a1613(0x433)]['error'](_0x3a1613(0x480),_0x3a1613(0x240),_0x38b03e,_0x21e0d7);break;}_0x1c2c81=_0x38b03e[_0x3a1613(0x2bc)],_0x110204=_0x21e0d7[_0x3a1613(0x2bc)],_0x46577b[_0x3a1613(0x23e)]({'unitID':_0x1605d3,'undoMutations':_0x38b03e['m2Prime'],'redoMutations':_0x21e0d7['m2Prime']});}return _0x46577b[_0x3a1613(0x359)]();}};_0x18c703=_0x2e5bbb([_0x230f1f(0x0,_0x5019cf[_0x46a43e(0x4e2)]),_0x230f1f(0x1,_0x5019cf['ICommandService']),_0x230f1f(0x2,_0x5019cf[_0x46a43e(0x2c3)]),_0x230f1f(0x3,_0x38ce1a[_0x46a43e(0x48b)]),_0x230f1f(0x4,_0x5019cf[_0x46a43e(0x4e6)])],_0x18c703);class _0x1fff2a extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(){const _0x1c9cd5=_0x46a43e;super(),_0x3a44bb(this,_0x1c9cd5(0x391)),this[_0x1c9cd5(0x391)]=_0x54735b[_0x1c9cd5(0x4e0)](window,_0x1c9cd5(0x4e7))[_0x1c9cd5(0x4b0)](_0x54735b[_0x1c9cd5(0x41a)](this[_0x1c9cd5(0x4a5)]),_0x54735b[_0x1c9cd5(0x247)](0x1),_0x54735b['mapTo'](void 0x0));}[_0x46a43e(0x43c)](_0x112a27,_0x253f9f,_0x273066=!0x1){const _0x371a55=_0x46a43e,_0x567cf8=new URL(window['location'][_0x371a55(0x486)]);_0x567cf8[_0x371a55(0x44d)][_0x371a55(0x3f3)](_0x112a27,_0x253f9f),_0x273066?window[_0x371a55(0x293)][_0x371a55(0x40a)]('','',_0x567cf8[_0x371a55(0x1f2)]()):window['history'][_0x371a55(0x39f)]('','',_0x567cf8[_0x371a55(0x1f2)]());}['removeParam'](_0x518e1a,_0x476999=!0x1){const _0x4ca99f=_0x46a43e,_0x329d07=new URL(window['location'][_0x4ca99f(0x486)]);_0x329d07[_0x4ca99f(0x44d)]['delete'](_0x518e1a),_0x476999?window[_0x4ca99f(0x293)][_0x4ca99f(0x40a)]('','',_0x329d07[_0x4ca99f(0x1f2)]()):window[_0x4ca99f(0x293)][_0x4ca99f(0x39f)]('','',_0x329d07[_0x4ca99f(0x1f2)]());}[_0x46a43e(0x4b8)](_0x13f139){const _0x36549c=_0x46a43e;var _0x4f40a8;return(_0x4f40a8=new URL(window['location']['href'])[_0x36549c(0x44d)][_0x36549c(0x2db)](_0x13f139))!=null?_0x4f40a8:void 0x0;}}const _0x5c5b74=_0x46a43e(0x3d3),_0x18208a=_0x46a43e(0x2a0),_0x29d25=0x6,_0x1ddebf=1.5,_0x2478ef=0x4,_0x78837f=1.5,_0x37103c='rgba(255,\x20255,\x20255,\x200.01)';class _0x3e4ea2{constructor(_0x24cb5d,_0x4dc353,_0x522178,_0x1b17a1){const _0x455d15=_0x46a43e;_0x3a44bb(this,_0x455d15(0x36c),[]),_0x3a44bb(this,'_anchor',null),_0x3a44bb(this,_0x455d15(0x202),null),_0x3a44bb(this,_0x455d15(0x477),null),_0x3a44bb(this,'_hideTimer',null),_0x3a44bb(this,'_eventUnsubscribe',null),(this[_0x455d15(0x334)]=_0x24cb5d,this[_0x455d15(0x38a)]=_0x4dc353,this['_docSkeleton']=_0x522178,this[_0x455d15(0x34e)]=_0x1b17a1,this['_render']());}set[_0x46a43e(0x28f)](_0x5f5d00){const _0x2d19af=_0x46a43e;_0x5f5d00?(this['_anchorDot']&&this[_0x2d19af(0x477)][_0x2d19af(0x46f)](),this['_textBubble']&&this[_0x2d19af(0x202)][_0x2d19af(0x4f6)]()):(this[_0x2d19af(0x477)]&&this['_anchorDot']['show'](),this[_0x2d19af(0x202)]&&this[_0x2d19af(0x202)][_0x2d19af(0x46f)]());}['dispose'](){const _0x40b8d7=_0x46a43e;for(const _0x28e6fe of this[_0x40b8d7(0x36c)])_0x28e6fe[_0x40b8d7(0x173)]();this[_0x40b8d7(0x202)]&&this[_0x40b8d7(0x202)][_0x40b8d7(0x173)](),this[_0x40b8d7(0x477)]&&this[_0x40b8d7(0x477)][_0x40b8d7(0x173)](),this[_0x40b8d7(0x4f3)]&&this['_anchor'][_0x40b8d7(0x173)](),this['_eventUnsubscribe']&&this[_0x40b8d7(0x29c)]();}['_render'](){const _0x39bd2b=_0x46a43e,{_docSkeleton:_0x3665a8,_document:_0x4f62bd}=this,{color:_0x1d7345,name:_0x10df57,ranges:_0x350d9a}=this['_cursor'],_0x385633=_0x4f62bd[_0x39bd2b(0x438)](),{docsLeft:_0x1fa649,docsTop:_0x51ae81}=_0x385633,_0x4904d2=new _0x56ae03[(_0x39bd2b(0x37c))](_0x385633,_0x3665a8);for(const {startOffset:_0x3fb8ec,endOffset:_0x4a81c4,collapsed:_0x198df5,isActive:_0x377119}of _0x350d9a){const _0x23bd45=_0x3665a8[_0x39bd2b(0x3e3)](_0x3fb8ec),_0x38421b=_0x3665a8['findNodePositionByCharIndex'](_0x4a81c4);if(_0x377119){const {contentBoxPointGroup:_0x580dfe}=_0x4904d2[_0x39bd2b(0x2ba)](_0x38421b,_0x38421b);if(_0x580dfe[_0x39bd2b(0x1bb)]===0x0)continue;this[_0x39bd2b(0x1a9)](_0x1d7345,_0x580dfe,_0x1fa649,_0x51ae81,_0x10df57),this[_0x39bd2b(0x29c)]=this[_0x39bd2b(0x36f)]();}if(!_0x198df5){const {contentBoxPointGroup:_0x227b0b}=_0x4904d2[_0x39bd2b(0x2ba)](_0x23bd45,_0x38421b);if(_0x227b0b[_0x39bd2b(0x1bb)]===0x0)continue;this[_0x39bd2b(0x372)](_0x1d7345,_0x227b0b,_0x1fa649,_0x51ae81);}}}['_drawAnchor'](_0x30d7d3,_0xf146ef,_0x307605,_0x4fe1ad,_0x3e8a74){const _0x403960=_0x46a43e,_0x1b2227=this[_0x403960(0x251)](_0xf146ef),{left:_0x376185,top:_0x4ce72a,height:_0x52659b}=_0x1b2227,_0x1ab52a=this['_getScale'](),_0x1e7363=_0x78837f/_0x1ab52a,_0x14f7c7=new _0x56ae03[(_0x403960(0x1de))](_0x5c5b74+_0x5019cf[_0x403960(0x1f7)][_0x403960(0x4ae)](_0x29d25),{'left':_0x376185+_0x307605-_0x1e7363,'top':_0x4ce72a+_0x4fe1ad,'height':_0x52659b,'width':_0x1ddebf,'fill':_0x30d7d3||_0x56ae03[_0x403960(0x1f1)](_0x5019cf[_0x403960(0x367)][_0x403960(0x47e)],0x0),'strokeWidth':_0x1e7363,'stroke':_0x37103c,'evented':!0x0});this[_0x403960(0x4f3)]=_0x14f7c7,this['_scene'][_0x403960(0x4b2)](_0x14f7c7,_0x56ae03['TEXT_RANGE_LAYER_INDEX']);const _0x4f5fb6=new _0x56ae03[(_0x403960(0x1de))](_0x5c5b74+_0x5019cf['Tools'][_0x403960(0x4ae)](_0x29d25),{'left':_0x376185+_0x307605-_0x1e7363,'top':_0x4ce72a+_0x4fe1ad-_0x2478ef/0x2,'height':_0x2478ef,'width':_0x2478ef,'fill':_0x30d7d3||_0x56ae03[_0x403960(0x1f1)](_0x5019cf[_0x403960(0x367)][_0x403960(0x47e)],0x0),'strokeWidth':0x0,'stroke':_0x30d7d3||_0x56ae03[_0x403960(0x1f1)](_0x5019cf['COLORS'][_0x403960(0x47e)],0x0),'evented':!0x1});this[_0x403960(0x477)]=_0x4f5fb6,this['_scene'][_0x403960(0x4b2)](_0x4f5fb6,_0x56ae03[_0x403960(0x29a)]);const _0x234a5e=new _0x450f66(_0x5c5b74+_0x5019cf[_0x403960(0x1f7)][_0x403960(0x4ae)](_0x29d25),{'left':_0x376185+_0x307605-_0x1e7363,'top':_0x4ce72a+_0x4fe1ad-_0x4617f7,'text':_0x3e8a74,'color':_0x30d7d3});this[_0x403960(0x202)]=_0x234a5e,this['_scene']['addObject'](_0x234a5e,_0x56ae03[_0x403960(0x29a)]),this[_0x403960(0x28f)]=!0x1;}[_0x46a43e(0x36f)](){const _0x2aaeba=_0x46a43e,_0x357b8e=this['_anchor'][_0x2aaeba(0x32c)][_0x2aaeba(0x381)](()=>{const _0x35475a=_0x2aaeba;this[_0x35475a(0x28f)]=!0x0;}),_0x54a95a=this['_anchor'][_0x2aaeba(0x305)][_0x2aaeba(0x381)](()=>{const _0x4f0a45=_0x2aaeba;this[_0x4f0a45(0x461)]&&clearTimeout(this[_0x4f0a45(0x461)]),this[_0x4f0a45(0x461)]=setTimeout(()=>{const _0x2275a5=_0x4f0a45;this[_0x2275a5(0x28f)]=!0x1;},0x7d0);});return()=>{const _0x2a1c25=_0x2aaeba;_0x357b8e[_0x2a1c25(0x1d0)](),_0x54a95a[_0x2a1c25(0x1d0)]();};}[_0x46a43e(0x372)](_0x4ea770,_0x1b5164,_0x208e3e,_0x4a8d29){const _0x459548=_0x46a43e,_0x399f0a=new _0x5019cf[(_0x459548(0x170))](_0x4ea770)['setAlpha'](0.2)[_0x459548(0x2b3)](),_0x23bc50=new _0x56ae03[(_0x459548(0x189))](_0x18208a+_0x5019cf[_0x459548(0x1f7)][_0x459548(0x4ae)](_0x29d25),{'pointsGroup':_0x1b5164,'fill':_0x399f0a||_0x56ae03['getColor'](_0x5019cf['COLORS']['black'],0.2),'left':_0x208e3e,'top':_0x4a8d29,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x459548(0x36c)]['push'](_0x23bc50),this[_0x459548(0x38a)][_0x459548(0x4b2)](_0x23bc50,_0x56ae03[_0x459548(0x29a)]);}[_0x46a43e(0x251)](_0x260864){const _0x3f6dbb=_0x260864[0x0],_0x4413cd=_0x3f6dbb[0x0],_0x4b6b69=_0x3f6dbb[0x2],{x:_0x5d0531,y:_0x4adea9}=_0x4413cd,{x:_0x42d67d,y:_0x5413ff}=_0x4b6b69;return{'left':_0x5d0531,'top':_0x4adea9,'width':_0x42d67d-_0x5d0531,'height':_0x5413ff-_0x4adea9};}[_0x46a43e(0x2fe)](){const _0x1f73a0=_0x46a43e,{scaleX:_0x768e7a,scaleY:_0x3b9d42}=this[_0x1f73a0(0x38a)][_0x1f73a0(0x3ef)]();return Math[_0x1f73a0(0x492)](_0x768e7a,_0x3b9d42);}}var _0x223c74=Object[_0x46a43e(0x1c7)],_0x5538c6=Object[_0x46a43e(0x1e9)],_0x599320=(_0x2f4c99,_0x34fac1,_0x94f53f,_0x2227b5)=>{const _0x2b5482=_0x46a43e;for(var _0x51c957=_0x2227b5>0x1?void 0x0:_0x2227b5?_0x5538c6(_0x34fac1,_0x94f53f):_0x34fac1,_0x95320=_0x2f4c99[_0x2b5482(0x1bb)]-0x1,_0x3a711a;_0x95320>=0x0;_0x95320--)(_0x3a711a=_0x2f4c99[_0x95320])&&(_0x51c957=(_0x2227b5?_0x3a711a(_0x34fac1,_0x94f53f,_0x51c957):_0x3a711a(_0x51c957))||_0x51c957);return _0x2227b5&&_0x51c957&&_0x223c74(_0x34fac1,_0x94f53f,_0x51c957),_0x51c957;},_0x1c789f=(_0x4c7d91,_0x14bda2)=>(_0x24584,_0x401b49)=>_0x14bda2(_0x24584,_0x401b49,_0x4c7d91);let _0x1fd8eb=class extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(_0x476f72,_0x588ca0,_0x36f4b3,_0x413c5e,_0x5a38d1){const _0x41d285=_0x46a43e;super(),_0x3a44bb(this,'_cursors',[]),(this[_0x41d285(0x3f6)]=_0x476f72,this['_univerInstanceService']=_0x588ca0,this[_0x41d285(0x43e)]=_0x36f4b3,this['_docSkeletonManagerService']=_0x413c5e,this[_0x41d285(0x2da)]=_0x5a38d1,this[_0x41d285(0x336)]());}[_0x46a43e(0x336)](){const _0x573173=_0x46a43e;this['_docSkeletonManagerService'][_0x573173(0x2cb)][_0x573173(0x4b0)](_0x33876a[_0x573173(0x41a)](this[_0x573173(0x4a5)]),_0x33876a[_0x573173(0x426)](_0x4fe09c=>{const _0x509cdb=_0x573173;if(_0x4fe09c){const _0x259760=_0x4fe09c['getViewModel']()[_0x509cdb(0x16e)]()[_0x509cdb(0x2c6)]();return _0x54735b[_0x509cdb(0x491)](this[_0x509cdb(0x3f6)][_0x509cdb(0x3a3)](_0x259760),this[_0x509cdb(0x2da)][_0x509cdb(0x35d)])['pipe'](_0x33876a[_0x509cdb(0x473)](([_0x1b9668,_0x1afa1b])=>({'skeleton':_0x4fe09c,'cursors':[..._0x1b9668['values']()][_0x509cdb(0x448)](_0x1c217d=>({..._0x1c217d,'color':_0x1afa1b[_0x1c217d[_0x509cdb(0x3c9)]]}))})));}return _0x54735b['of']({'skeleton':null,'cursors':[]});}))[_0x573173(0x324)](({skeleton:_0x8259ef,cursors:_0x9d5016})=>{const _0x51dfab=_0x573173;this[_0x51dfab(0x31e)](),_0x8259ef&&this[_0x51dfab(0x18e)](_0x8259ef,_0x9d5016);});}[_0x46a43e(0x18e)](_0x287988,_0x2443fb){const _0x3b380f=_0x46a43e,_0x559d70=this[_0x3b380f(0x22b)]();if(_0x559d70==null)return;const {scene:_0x516513,document:_0x40abed}=_0x559d70,_0xdf19cd=_0x2443fb[_0x3b380f(0x473)](_0x5ad43e=>new _0x3e4ea2(_0x5ad43e,_0x516513,_0x287988,_0x40abed));this[_0x3b380f(0x455)]=_0xdf19cd;}['_removeCollabCursors'](){const _0x101a27=_0x46a43e;this[_0x101a27(0x455)][_0x101a27(0x39a)](_0x3e2ff5=>_0x3e2ff5[_0x101a27(0x173)]()),this[_0x101a27(0x455)]=[];}[_0x46a43e(0x22b)](){const _0x1d973d=_0x46a43e;return _0x38fb70['getDocObject'](this[_0x1d973d(0x397)],this['_renderManagerService']);}};_0x1fd8eb=_0x599320([_0x5019cf[_0x46a43e(0x3b2)](_0x5019cf[_0x46a43e(0x2ed)][_0x46a43e(0x3e9)],_0x1fd8eb),_0x1c789f(0x0,_0x245a54[_0x46a43e(0x4b5)](_0x4a938f)),_0x1c789f(0x1,_0x5019cf[_0x46a43e(0x4e2)]),_0x1c789f(0x2,_0x56ae03[_0x46a43e(0x1db)]),_0x1c789f(0x3,_0x245a54[_0x46a43e(0x4b5)](_0x38fb70[_0x46a43e(0x393)])),_0x1c789f(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf['ThemeService']))],_0x1fd8eb);var _0x4e8af4=Object[_0x46a43e(0x1c7)],_0x5216e7=Object[_0x46a43e(0x1e9)],_0x46a084=(_0x40b323,_0x4a5246,_0x5c4eac,_0x4ad088)=>{const _0xba398=_0x46a43e;for(var _0x50e426=_0x4ad088>0x1?void 0x0:_0x4ad088?_0x5216e7(_0x4a5246,_0x5c4eac):_0x4a5246,_0x134f38=_0x40b323[_0xba398(0x1bb)]-0x1,_0x43fd4b;_0x134f38>=0x0;_0x134f38--)(_0x43fd4b=_0x40b323[_0x134f38])&&(_0x50e426=(_0x4ad088?_0x43fd4b(_0x4a5246,_0x5c4eac,_0x50e426):_0x43fd4b(_0x50e426))||_0x50e426);return _0x4ad088&&_0x50e426&&_0x4e8af4(_0x4a5246,_0x5c4eac,_0x50e426),_0x50e426;},_0x38494e=(_0x5f5405,_0x313adf)=>(_0x53ac3a,_0x2439fa)=>_0x313adf(_0x53ac3a,_0x2439fa,_0x5f5405);let _0x58a517=class{constructor(_0x3b6dfe,_0x29b93c,_0x9e8c73){const _0x151bc5=_0x46a43e;this[_0x151bc5(0x317)]=_0x3b6dfe,this['_httpService']=_0x29b93c,this[_0x151bc5(0x44b)]=_0x9e8c73,this['init']();}['init'](){const _0x272482=_0x46a43e;this[_0x272482(0x463)][_0x272482(0x216)]({'priority':0x1,'interceptor':(_0x1eeeb4,_0x4fa1d4)=>_0x4fa1d4(_0x1eeeb4)[_0x272482(0x4b0)](_0x54735b['concatMap'](async _0x5d7567=>{const _0x1e1346=_0x272482,_0x34bba9=_0x5d7567;if(_0x34bba9[_0x1e1346(0x4a1)]===0x191&&window[_0x1e1346(0x289)](this['localeService']['t']('auth.needGotoLoginAlert'))){const _0x2da50e=window[_0x1e1346(0x24e)](window[_0x1e1346(0x217)]['href']);window['location'][_0x1e1346(0x486)]=this[_0x1e1346(0x505)]()+_0x1e1346(0x268)+_0x2da50e;}return _0x34bba9;}))});}[_0x46a43e(0x505)](){const _0x2843f6=_0x46a43e;var _0x363ad5;return(_0x363ad5=this[_0x2843f6(0x317)]['getConfig'](_0xb62ff0))!=null?_0x363ad5:_0x39ceb9;}};_0x58a517=_0x46a084([_0x38494e(0x0,_0x5019cf['IConfigService']),_0x38494e(0x1,_0x245a54[_0x46a43e(0x4b5)](_0x3e6592[_0x46a43e(0x494)])),_0x38494e(0x2,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf[_0x46a43e(0x3a5)]))],_0x58a517);var _0x53e0ad=Object[_0x46a43e(0x1c7)],_0x1b61a8=Object[_0x46a43e(0x1e9)],_0x4879a6=(_0x5b1aac,_0x12b7f0,_0x573ad5,_0x38b816)=>{for(var _0x3eeb37=_0x38b816>0x1?void 0x0:_0x38b816?_0x1b61a8(_0x12b7f0,_0x573ad5):_0x12b7f0,_0x2d3173=_0x5b1aac['length']-0x1,_0x112966;_0x2d3173>=0x0;_0x2d3173--)(_0x112966=_0x5b1aac[_0x2d3173])&&(_0x3eeb37=(_0x38b816?_0x112966(_0x12b7f0,_0x573ad5,_0x3eeb37):_0x112966(_0x3eeb37))||_0x3eeb37);return _0x38b816&&_0x3eeb37&&_0x53e0ad(_0x12b7f0,_0x573ad5,_0x3eeb37),_0x3eeb37;},_0xeaa78c=(_0x456574,_0x57e697)=>(_0x5daf18,_0x16b982)=>_0x57e697(_0x5daf18,_0x16b982,_0x456574);const _0x189f40=_0x46a43e(0x377),_0x9e5796=_0x46a43e(0x254);_0x575351[_0x46a43e(0x253)]=class{constructor(_0x73fcb3,_0x13688c){const _0x5cb042=_0x46a43e;this[_0x5cb042(0x333)]=_0x73fcb3,this[_0x5cb042(0x317)]=_0x13688c;}[_0x46a43e(0x3bc)](){const _0x1c6229=_0x46a43e;var _0x2deb8c;return(_0x2deb8c=this[_0x1c6229(0x317)][_0x1c6229(0x3ea)](_0x189f40))!=null?_0x2deb8c:_0x9e5796;}async['create'](_0x131e25){const _0x556618=_0x46a43e,_0x1c7d64=this['_getAPIPrefixPath']()+'/'+_0x131e25['objectType']+'/object';return(await this[_0x556618(0x333)][_0x556618(0x2a6)](_0x1c7d64,{'body':_0x131e25}))['body']['objectID']||'';}async[_0x46a43e(0x25d)](_0x509d14){const _0x214b66=_0x46a43e,_0x12cfba=this[_0x214b66(0x3bc)]()+'/-/object/list';return(await this[_0x214b66(0x333)]['post'](_0x12cfba,{'body':_0x509d14}))[_0x214b66(0x190)][_0x214b66(0x350)];}async[_0x46a43e(0x26b)](_0x551835){const _0x2423b6=_0x46a43e,_0x2ad63b=this[_0x2423b6(0x3bc)]()+'/'+_0x551835[_0x2423b6(0x3cc)]+_0x2423b6(0x411)+_0x551835[_0x2423b6(0x3a9)];await this[_0x2423b6(0x333)][_0x2423b6(0x409)](_0x2ad63b,{'body':_0x551835});}async[_0x46a43e(0x19a)](_0x425f9a){const _0x3b438e=_0x46a43e,_0x5879dd=this[_0x3b438e(0x3bc)]()+'/'+_0x425f9a[_0x3b438e(0x3cc)]+_0x3b438e(0x411)+_0x425f9a[_0x3b438e(0x3a9)]+'/allowed';return(await this[_0x3b438e(0x333)][_0x3b438e(0x2a6)](_0x5879dd,{'body':_0x425f9a}))['body'][_0x3b438e(0x25e)];}async[_0x46a43e(0x290)](_0x3627b3){const _0x36d40a=_0x46a43e,_0x10cee1=this[_0x36d40a(0x3bc)]()+_0x36d40a(0x2be);return(await this[_0x36d40a(0x333)][_0x36d40a(0x2a6)](_0x10cee1,{'body':{'requests':_0x3627b3}}))[_0x36d40a(0x190)]['objectActions'];}async[_0x46a43e(0x1f0)](_0x1f4032){const _0x4140be=_0x46a43e,_0x55247e=this[_0x4140be(0x3bc)]()+'/'+_0x1f4032[_0x4140be(0x3cc)]+_0x4140be(0x19b),_0x4da844=await this[_0x4140be(0x333)][_0x4140be(0x2a6)](_0x55247e,{'body':_0x1f4032});return{'roles':_0x4da844['body']['roles'],'actions':_0x4da844[_0x4140be(0x190)][_0x4140be(0x25e)]};}async[_0x46a43e(0x3e5)](_0x5e011f){const _0xa53079=_0x46a43e,_0x341d70=this['_getAPIPrefixPath']()+'/collaborator';await this[_0xa53079(0x333)][_0xa53079(0x352)](_0x341d70,{'params':{'collaboratorID':_0x5e011f[_0xa53079(0x43d)],'objectID':_0x5e011f[_0xa53079(0x3a9)],'unitID':_0x5e011f[_0xa53079(0x166)]}});}async[_0x46a43e(0x309)](_0x445888){const _0x580381=_0x46a43e,_0x3d371e=this[_0x580381(0x3bc)]()+_0x580381(0x26d);await this['_HTTPService'][_0x580381(0x208)](_0x3d371e,{'body':_0x445888});}async[_0x46a43e(0x2bf)](_0x5d8b47){const _0x10aa49=_0x46a43e,_0x35bd48=this[_0x10aa49(0x3bc)]()+_0x10aa49(0x26d);await this[_0x10aa49(0x333)]['post'](_0x35bd48,{'body':_0x5d8b47});}async[_0x46a43e(0x3e7)](_0x47f645){const _0x51d0e0=_0x46a43e,_0x27bd5a=this[_0x51d0e0(0x3bc)]()+'/collaborator';return(await this[_0x51d0e0(0x333)][_0x51d0e0(0x2db)](_0x27bd5a,{'params':{'objectID':_0x47f645[_0x51d0e0(0x3a9)],'unitID':_0x47f645[_0x51d0e0(0x166)]}}))[_0x51d0e0(0x190)][_0x51d0e0(0x1df)];}async[_0x46a43e(0x2a2)](_0x1c28b7){const _0x3f4fff=_0x46a43e,_0xb3487a=this['_getAPIPrefixPath']()+_0x3f4fff(0x26d);await this[_0x3f4fff(0x333)][_0x3f4fff(0x409)](_0xb3487a,{'body':_0x1c28b7});}},_0x575351['AuthzIoHttpService']=_0x4879a6([_0xeaa78c(0x0,_0x245a54[_0x46a43e(0x4b5)](_0x3e6592[_0x46a43e(0x494)])),_0xeaa78c(0x1,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf[_0x46a43e(0x460)]))],_0x575351[_0x46a43e(0x253)]);var _0x203421=Object['defineProperty'],_0x40ee38=Object[_0x46a43e(0x1e9)],_0x25045f=(_0x19478d,_0x59638b,_0x2976e9,_0x1eec1a)=>{const _0x5ea692=_0x46a43e;for(var _0x194c32=_0x1eec1a>0x1?void 0x0:_0x1eec1a?_0x40ee38(_0x59638b,_0x2976e9):_0x59638b,_0x2683b9=_0x19478d[_0x5ea692(0x1bb)]-0x1,_0x2ae328;_0x2683b9>=0x0;_0x2683b9--)(_0x2ae328=_0x19478d[_0x2683b9])&&(_0x194c32=(_0x1eec1a?_0x2ae328(_0x59638b,_0x2976e9,_0x194c32):_0x2ae328(_0x194c32))||_0x194c32);return _0x1eec1a&&_0x194c32&&_0x203421(_0x59638b,_0x2976e9,_0x194c32),_0x194c32;},_0x258a1e=(_0x54c684,_0x193bd3)=>(_0x281f2f,_0x43f9ff)=>_0x193bd3(_0x281f2f,_0x43f9ff,_0x54c684);const _0x5d7a8f=['image/png',_0x46a43e(0x263),_0x46a43e(0x3bd),_0x46a43e(0x49f),'image/bmp'],_0x14a658=0x5*0x400*0x400,_0x3842de='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',_0x5a13d8=_0x46a43e(0x27f),_0x460fe6=_0x46a43e(0x3d0),_0x279b2b=_0x46a43e(0x330);let _0x461b27=class{constructor(_0x594e20,_0x408584){const _0x20c417=_0x46a43e;_0x3a44bb(this,_0x20c417(0x255),0x0),_0x3a44bb(this,_0x20c417(0x429),new _0x54735b[(_0x20c417(0x238))]()),_0x3a44bb(this,_0x20c417(0x49e),this[_0x20c417(0x429)]),_0x3a44bb(this,_0x20c417(0x23c),new Map()),(this['_httpService']=_0x594e20,this[_0x20c417(0x317)]=_0x408584);}[_0x46a43e(0x443)](_0x1c458f){const _0xb2d795=_0x46a43e;this[_0xb2d795(0x255)]=_0x1c458f,this[_0xb2d795(0x429)][_0xb2d795(0x230)](_0x1c458f);}[_0x46a43e(0x1aa)](_0x30dc90,_0x2ea06a){const _0x197dfa=_0x46a43e;if(_0x2ea06a===_0x11f56d[_0x197dfa(0x239)]['BASE64']){const _0x4540ca=new Image();return _0x4540ca[_0x197dfa(0x478)]=_0x30dc90,_0x4540ca;}return this[_0x197dfa(0x23c)][_0x197dfa(0x2db)](_0x30dc90);}['addImageSourceCache'](_0x269446,_0x4f5dea,_0xda7d98){const _0x1864cc=_0x46a43e;_0x4f5dea===_0x11f56d[_0x1864cc(0x239)][_0x1864cc(0x4d0)]||_0xda7d98==null||this[_0x1864cc(0x23c)][_0x1864cc(0x3f3)](_0x269446,_0xda7d98);}async['getImage'](_0x104c55){const _0x220fb8=_0x46a43e;try{const _0x467b51=this['_replaceFileID'](this[_0x220fb8(0x388)](),''+_0x104c55),_0x1a332e=(await this[_0x220fb8(0x463)][_0x220fb8(0x2db)](_0x467b51))['body'];return _0x1a332e[_0x220fb8(0x3a0)]&&_0x1a332e['error'][_0x220fb8(0x471)]===_0x2fd8ee['OK']?Promise[_0x220fb8(0x4bd)](_0x1a332e[_0x220fb8(0x3d9)]):Promise[_0x220fb8(0x3a8)](_0x1a332e[_0x220fb8(0x3a0)]);}catch(_0x2756e2){return Promise[_0x220fb8(0x3a8)](_0x2756e2);}}async[_0x46a43e(0x506)](_0xb1943c){const _0x23e377=_0x46a43e;let _0x296420='';if(!_0x5d7a8f['includes'](_0xb1943c[_0x23e377(0x219)]))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x11f56d[_0x23e377(0x196)][_0x23e377(0x447)]));if(_0xb1943c[_0x23e377(0x282)]>_0x14a658)return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x11f56d['ImageUploadStatusType'][_0x23e377(0x2cf)]));try{const _0x50140f=new FormData();_0x50140f[_0x23e377(0x1f4)](_0x23e377(0x4c7),_0xb1943c);const _0x4d5790=this['_getUploadFileURL']()+_0x23e377(0x1d3)+_0xb1943c[_0x23e377(0x282)][_0x23e377(0x1f2)](),_0xad44dd=await(await fetch(_0x4d5790,{'method':_0x23e377(0x495),'body':_0x50140f}))[_0x23e377(0x3f0)]();if(typeof _0xad44dd[_0x23e377(0x30c)]!=_0x23e377(0x4ab))return this['_decreaseWaiting'](),Promise[_0x23e377(0x3a8)](new Error(_0x11f56d[_0x23e377(0x196)][_0x23e377(0x436)]));_0x296420=_0xad44dd['FileId'];}catch{return this[_0x23e377(0x48d)](),Promise[_0x23e377(0x3a8)](new Error(_0x11f56d[_0x23e377(0x196)][_0x23e377(0x436)]));}return new Promise((_0x5e5d0c,_0x44cf9a)=>{const _0x2ce6ec=_0x23e377,_0x5b9b30=new FileReader();_0x5b9b30['readAsDataURL'](_0xb1943c),_0x5b9b30[_0x2ce6ec(0x24a)]=_0x40dec2=>{const _0x4be2bf=_0x2ce6ec;var _0x100720;const _0x115ce8=(_0x100720=_0x40dec2[_0x4be2bf(0x3f9)])==null?void 0x0:_0x100720[_0x4be2bf(0x3ec)];if(_0x115ce8==null){this[_0x4be2bf(0x48d)](),_0x44cf9a(new Error(_0x11f56d[_0x4be2bf(0x196)][_0x4be2bf(0x436)]));return;}const _0x3c4357=_0x5019cf[_0x4be2bf(0x1f7)][_0x4be2bf(0x4ae)](0x6);_0x5e5d0c({'imageId':_0x3c4357,'imageSourceType':_0x11f56d[_0x4be2bf(0x239)][_0x4be2bf(0x17a)],'source':_0x296420,'base64Cache':_0x115ce8,'status':_0x11f56d[_0x4be2bf(0x196)][_0x4be2bf(0x3e0)]}),this['_decreaseWaiting']();};});}[_0x46a43e(0x215)](){const _0x4ef7de=_0x46a43e;var _0x50f127;return(_0x50f127=this[_0x4ef7de(0x317)][_0x4ef7de(0x3ea)](_0x3842de))!=null?_0x50f127:_0x5a13d8;}[_0x46a43e(0x388)](){const _0x4869bc=_0x46a43e;var _0x38126b;return(_0x38126b=this[_0x4869bc(0x317)][_0x4869bc(0x3ea)](_0x460fe6))!=null?_0x38126b:_0x279b2b;}[_0x46a43e(0x169)](_0x39a729,_0x994a58){const _0x5a527b=_0x46a43e;return _0x39a729[_0x5a527b(0x439)]('{fileID}',_0x994a58);}[_0x46a43e(0x48d)](){const _0x56e48f=_0x46a43e;this['_waitCount']-=0x1,this[_0x56e48f(0x429)][_0x56e48f(0x230)](this['_waitCount']);}};_0x461b27=_0x25045f([_0x258a1e(0x0,_0x245a54[_0x46a43e(0x4b5)](_0x3e6592[_0x46a43e(0x494)])),_0x258a1e(0x1,_0x5019cf['IConfigService'])],_0x461b27);var _0x381593=Object[_0x46a43e(0x1c7)],_0x50a92a=Object[_0x46a43e(0x1e9)],_0x4135f0=(_0x58ae09,_0x53f85c,_0x42ee5c)=>_0x53f85c in _0x58ae09?_0x381593(_0x58ae09,_0x53f85c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42ee5c}):_0x58ae09[_0x53f85c]=_0x42ee5c,_0x20c680=(_0x54ab19,_0xcbd57d,_0x37edd4,_0x209365)=>{for(var _0x5f0513=_0x209365>0x1?void 0x0:_0x209365?_0x50a92a(_0xcbd57d,_0x37edd4):_0xcbd57d,_0x2d5ebc=_0x54ab19['length']-0x1,_0x4669aa;_0x2d5ebc>=0x0;_0x2d5ebc--)(_0x4669aa=_0x54ab19[_0x2d5ebc])&&(_0x5f0513=(_0x209365?_0x4669aa(_0xcbd57d,_0x37edd4,_0x5f0513):_0x4669aa(_0x5f0513))||_0x5f0513);return _0x209365&&_0x5f0513&&_0x381593(_0xcbd57d,_0x37edd4,_0x5f0513),_0x5f0513;},_0x4b0e38=(_0x316b00,_0x2e9100)=>(_0x37452e,_0x2f9316)=>_0x2e9100(_0x37452e,_0x2f9316,_0x316b00),_0x4f4e18=(_0x11c77d,_0x24f845,_0x191ab9)=>_0x4135f0(_0x11c77d,_0x24f845+'',_0x191ab9);const _0x5877f9='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x575351[_0x46a43e(0x2f3)]=class extends _0x5019cf['Plugin']{constructor(_0x47f271,_0x547830,_0x1c525d){const _0x32a191=_0x46a43e;super(),this[_0x32a191(0x4d7)]=_0x47f271,this[_0x32a191(0x433)]=_0x547830,this[_0x32a191(0x383)]=_0x1c525d;}[_0x46a43e(0x1fc)](_0x4b1764){const _0x360a82=_0x46a43e;var _0x2f39f0,_0x43181e,_0x211267,_0x2c9d43,_0x15b58e;_0x4b1764[_0x360a82(0x209)](_0x5019cf['IUndoRedoService'])&&this[_0x360a82(0x433)][_0x360a82(0x3a0)](_0x360a82(0x4df),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x132f65=[[_0x5019cf[_0x360a82(0x33a)],{'useClass':_0x18c703}],[_0x575351[_0x360a82(0x4be)]],[_0x10d691],[_0x3e6592[_0x360a82(0x494)]],[_0x279dda,{'useClass':_0x1fff2a}],[_0x4a6424],[_0x575351[_0x360a82(0x2d1)]],[_0x3e6592[_0x360a82(0x28e)]],[_0x20cd4b],[_0x5cf952],[_0xc2ebf4],[_0x141f6f],[_0x58a517],[_0x2bdb70,{'useClass':(_0x43181e=(_0x2f39f0=this['_config'])==null?void 0x0:_0x2f39f0['socketService'])!=null?_0x43181e:_0x575351[_0x360a82(0x1b9)]}],[_0x3e6592['IHTTPImplementation'],{'useClass':_0x3e6592[_0x360a82(0x49d)]}],[_0x5019cf['ISnapshotServerService'],{'useClass':_0x201e04}],[_0x5019cf['IAuthzIoService'],{'useClass':_0x575351[_0x360a82(0x253)]}],[_0x11f56d[_0x360a82(0x427)],{'useClass':_0x461b27}],[_0x575351['CollaborationController']],[_0x575351['DataLoaderController']],[_0x575351['DesktopCollaborationStatusDisplayController']],[_0x5bbd97],[_0x4a938f]];(_0x211267=this[_0x360a82(0x4d7)])!=null&&_0x211267[_0x360a82(0x39d)]&&_0x132f65[_0x360a82(0x23e)]([_0x235b99,{'useClass':_0x23b11a}]),((_0x2c9d43=this[_0x360a82(0x4d7)])==null?void 0x0:_0x2c9d43[_0x360a82(0x340)])==null||this[_0x360a82(0x4d7)][_0x360a82(0x340)][_0x360a82(0x25f)](_0x5019cf[_0x360a82(0x28c)][_0x360a82(0x258)])?_0x132f65[_0x360a82(0x23e)]([_0x22d685]):this['_config'][_0x360a82(0x340)][_0x360a82(0x25f)](_0x5019cf[_0x360a82(0x28c)][_0x360a82(0x27d)])&&_0x132f65[_0x360a82(0x23e)]([_0x1fd8eb]),_0x132f65=_0x5019cf[_0x360a82(0x1c1)](_0x132f65,(_0x15b58e=this[_0x360a82(0x4d7)])==null?void 0x0:_0x15b58e[_0x360a82(0x1d5)]),_0x132f65[_0x360a82(0x39a)](_0x5a07aa=>_0x4b1764['add'](_0x5a07aa)),_0x4b1764[_0x360a82(0x2db)](_0x3e6592[_0x360a82(0x494)])[_0x360a82(0x216)]({'priority':0x14,'interceptor':_0x3e6592[_0x360a82(0x213)]({'maxParallel':0x6})}),this[_0x360a82(0x3d1)]();}['_initModules'](){const _0x32ac6d=_0x46a43e;var _0x1b8bf3,_0x27933a;(_0x1b8bf3=this[_0x32ac6d(0x4d7)])!=null&&_0x1b8bf3[_0x32ac6d(0x3be)]||this[_0x32ac6d(0x383)][_0x32ac6d(0x2db)](_0x575351[_0x32ac6d(0x2d1)])[_0x32ac6d(0x4a7)](),(_0x27933a=this['_config'])!=null&&_0x27933a[_0x32ac6d(0x48c)]&&this[_0x32ac6d(0x383)][_0x32ac6d(0x2db)](_0x58a517);}},_0x4f4e18(_0x575351['UniverCollaborationClientPlugin'],_0x46a43e(0x273),_0x5877f9),_0x575351['UniverCollaborationClientPlugin']=_0x20c680([_0x5019cf[_0x46a43e(0x36d)](_0x38ce1a[_0x46a43e(0x297)]),_0x4b0e38(0x1,_0x5019cf['ILogService']),_0x4b0e38(0x2,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)]))],_0x575351[_0x46a43e(0x2f3)]),_0x575351[_0x46a43e(0x377)]=_0x189f40,_0x575351[_0x46a43e(0x3c4)]=_0x3b6bea,_0x575351[_0x46a43e(0x201)]=_0x48a35f,_0x575351['CollaborationStatus']=_0x348409,_0x575351[_0x46a43e(0x31f)]=_0x263e0e,_0x575351[_0x46a43e(0x2b1)]=_0x2528f8,_0x575351[_0x46a43e(0x3b6)]=_0x405e7e,_0x575351['ICollaborationSocketService']=_0x2bdb70,_0x575351[_0x46a43e(0x32b)]=_0x279dda,_0x575351[_0x46a43e(0x3de)]=_0x4a1864,_0x575351[_0x46a43e(0x1e3)]=_0xb62ff0,_0x575351[_0x46a43e(0x1e4)]=_0xb347b,_0x575351['SNAPSHOT_SERVER_URL_KEY']=_0xb4801b,_0x575351[_0x46a43e(0x487)]=_0x25d6a7,_0x575351[_0x46a43e(0x222)]=_0x1ae891,_0x575351[_0x46a43e(0x1b6)]=_0x1fff2a,_0x575351[_0x46a43e(0x2aa)]=_0x50f340,_0x575351[_0x46a43e(0x445)]=_0x171c24,Object[_0x46a43e(0x1c7)](_0x575351,Symbol[_0x46a43e(0x45b)],{'value':_0x46a43e(0x40e)});}));function _0x15ab(){const _0x3874a6=['\x0aAfter:\x20','Workbook','isTransformMutationsWithChangesetFailure','_univerInstanceService','YUUMI_UNABLE_LOAD_URL','SUBMIT_CHANGESET','forEach','_memberService','disposeUnit','enableSingleActiveInstanceLock','_getUndoStack','pushState','error','forwardRef','MoveRangeCommandId','getCollabCursors$','handleInsertRangeMoveRight','LocaleService','_isPermissionRej','init','reject','objectID','_id','div','serializeRangeWithSheet','@univerjs/core','text','awaiting_with_pending','editing\x20status\x20changed\x20to','_handleJoinEvent','OnLifecycle','registerRefRange','off-line-single_clip0_910_343','roomMembers','HEARTBEAT_TIMEOUT_KEY','_pendingMutations','function','ICommandService','transformMutationsWithChangeset','lodash/debounce','_getAPIPrefixPath','image/jpg','enableOfflineEditing','getMemberID','storage','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','TextSelectionManagerService','indexOf','COLLAB_SUBMIT_CHANGESET_URL_KEY','UNKNOWN_CODE','concat','message$','_cachedData','color','univerjs-icon\x20univerjs-icon-','YUUMI_URL_COL_OUT_OF_RANGE','objectType','clearInterval','_scheduleTimestamp','newValue','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_initModules','APPLY_REVISION_CONFILICT','collab-text-anchor-','transformByState','current','LocalUndoRedoService','Univer','values','url','top','0\x200\x2017\x2016','_onRecvEvent','_transformRemoteChangesetByIMECache','LOCAL_CACHE_INTERVAL_KEY','INTERNAL_ERROR','SUCCUSS','merge','UserManagerService','findNodePositionByCharIndex','onSendChangeset','deleteCollaborator','Error\x20on\x20receiving\x20event','listCollaborators','disposeWithMe','Steady','getConfig','[SyncedState]:\x20received\x20rejection.','result','LEAVE','FAIL','getAncestorScale','json','_schedule','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','set','unknown','setTimeout','_collabCursorController','isTransformChangesetsSuccess','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','target','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','CollaborationController','NOT_COLLAB','_clearOtherTimers','SelectionManagerService','Unknown\x20user','_unitID','UniverDrawing','IPermissionService','UPDATE_CURSOR','_range','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','SnapshotService','SYNCED','_executeRemoteChangeset','put','replaceState','_selfUnitIDs','IBeforeCloseService','_unitStatus','Module','SetWorksheetActivateCommand','entries','/object/','width','BehaviorSubject','USERS_LEAVE','_transformPreviousActiveRange','_replayCachedMutations','_getSendChangesetTimeout','debug','CommandType','takeUntil','UniverSheetsUi','_event$','_retryCount','_color','isTransformMutationsWithChangesetSuccess','CONFLICT','_acknowledgedAwaitingChangeset','catch','_getRedoStack','_unlockTransition','getViewport','switchMap','IImageIoService','interceptor','_change$','univer-online-status','COLLAB_SUBMIT_CHANGESET_URL','workbook','_collaborationController','UNDEFINED','NO_OTHER_CLIENTS_EDITING','measureText','createInstance','transformMutation','_logService','IMessageService','univer-offline','ERROR_IMAGE','getMergeData','getOffsetConfig','replace','add','path','setParam','collaboratorID','_renderManagerService','_transformService','ONLINE','UNKNOWN_CMD','unshift','setWaitCount','loadOfflineData','serializeCombRequest','DisposableCollection','ERROR_IMAGE_TYPE','flatMap','unitId','textRanges','localeService','trim','searchParams','onMissedChangesetFetched','LIVESHARE_NEW_HOST','name','params','onRemoteAck','RECV','_checkMissing','_cursors','_transformIMECache','joinEvent','parse','HEARTBEAT_INTERVAL','_initStatusListener','toStringTag','_onUserLeave','defs','rxjs/operators','[FetchMissState]','IConfigService','_hideTimer','\x20-\x20','_httpService','/rev/','fetching\x20missing\x20changesets\x20from\x20','569046GCqvem','univer-online-status-title','state','FETCH_MISSING','createIdentifier','colorChannel1','sheetId','onTransformRemoteChangesetByIMECache','UNIVER_UNKNOWN','hide','MSG_FOR_ERROR','code','resend','map','_refRangeService','FromArray','session','_anchorDot','src','changesets','apply','delay','gold400','_onCombEvent','black','MessageType','[CollaborationUndoRedoService]','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','JOINING','MUTATION','updateOfflineData','stringify','href','SNAPSHOT_URL_KEY','permission.title','_onJoinRoomEvent','fetchThroughInterceptors','ITransformService','enableAuthServer','_decreaseWaiting','_state$','getUnitStatus$','_updateStatus','combineLatest','max','Error','HTTPService','POST','_waitForHeartbeatResponse','SNAPSHOT_SERVER_URL_KEY','[OfflineState]:\x20received\x20changeset.','hovered','onTransformSelections','_createInitialStateImpl','_socketReady','XHRHTTPImplementation','change$','image/gif','state$','status','displayName','_revisionService','offline','dispose$','not_collab','disableLocalCache','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_userManagerService','arc','string','executeCommand','RevisionService','generateRandomId','_createSocket','pipe','DEFAULT_FILE_NAME','addObject','EffectRefRangId','_state','Inject','_timeoutTimer','CHANGESET_ACK','getParam','getMember','_substituteUndoStack','getItem','_assignedColors','resolve','CollaborationSessionService','registerComponent','_getSheetObject','IMEInputManagerService','incrementRevForDocument','focused$','saveChangeset','_onRemoteRejected','_onUserJoin','file','_submitChangeset','...','distinctUntilChanged','@univerjs/engine-formula','CollaborationEvent','setActiveRange','permissionRejEvent','jiqing500','BASE64','CONNECTOR_DATA_TOO_LARGE','React','UniverCollaboration','@univerjs/engine-render','bottom','awaitingChangeset','_config','height','off-line-single','_syncEditingCollabCursorService','parseProtocolChangeset','@wendellhu/redi/react-bindings','_handler','UniverCore','[UniverCollaborationClientPlugin]','fromEvent','open$','IUniverInstanceService','_lockTransition','selections','getUniverSheetInstance','ILogService','popstate','_awaitingChangeset','isArray','3671598gmhHQX','_transitionLocked','_entities','getCollabEntity$','HEARTBEAT_TIMEOUT','moveTo','getCurrent','_disableEditing','on-line-single_clip0_910_349','_anchor','clear','editingUnit','show','getCollabEntity','_substituteRedoStack','[PendingState]:\x20received\x20acknowledgement.','[CollaborationState]:\x20apply\x20error!','transformUndoRedo','getCellPositionByOffset','call','socket\x20open.','InsertRangeMoveDownCommandId','handleIRemoveCol','icon','BuiltInUIPart','_collabCursorState$','_status$','_getLoginPath','saveImage','UNRECOGNIZED','_localeService','_queuedRemoteChangesets','socket\x20close','COLLAB_WEB_SOCKET_URL','_singleActiveUnitService','_onConnectionFailed','rxjs','triggerDblclick','isTransformMutationFailure','unit','updateCursorEvent','_onCursorUpdate','sessionStatus$','_getSaveTimeout','handleInsertRow','range','unitID','baseRev','_onConnectionOpen','_replaceFileID','enableLocalCache','[DataLoaderController]','setCurrentUser','_clearLocalCache','getDataModel','LICENSE_EXPORT_SIZE_EXCEEDED','ColorKit','setShapeProps','column','dispose','getCoordByCell','send','_clearScheduledTask','handleDeleteRangeMoveLeft','saveSheetBlock','INGEST','UUID','unload','getRoom','_incrementRevisionNumber','833200sJkXpv','isEditing','_docTransformSelectionsService','amd','setItem','handleIRemoveRow','_colorAssignService','save\x20fail\x20reason\x20is\x20','startRow','tag','JOIN','RegularPolygon','getActiveSheet','_loadSheet','InsertColCommandId','_heartbeatTimer','_updateCollabCursors','with','body','1054025PHpwsr','_applyRemoteChangeset','Vector2','verdancy600','WorkbookEditablePermission','ImageUploadStatusType','_clearRedo','FETCH_MISS','_socket$','allowed','/role','subunit','closePath','_getCtorByUniverType','collabStatus.syncing','_createHandler','ws://127.0.0.1:8000/universer-api/comb/connect','fetch_missing','close$','_getMergeRange','onlyLocal','ThemeService','_scheduleHeartbeat','endRow','_drawAnchor','getImageSourceCache','cmd','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','@univerjs/design','_syncEditingCollabCursor','_updateState','Ready','failed\x20to\x20apply\x20missed\x20changesets!','isPermissionRej','@univerjs/sheets-ui','CollaborationSession','getTypeOfUnitAdded$','WebURLService','getRelativeCoord','OFFLINE','CollaborationSocketService','_toggleOnline','length','_onRemoteACK','_sendHeartbeatTimer','_entityInit$','_clearUndo','RxDisposable','mergeOverrideWithDependencies','1em','_type','routeKey','operators','substring','defineProperty','permission.content','/unit/','revision','_send','getCurrentRevForDocument','clipPath','idSuffix','_sessions','unsubscribe','ISnapshotServerService','SEND_CHANGESET_TIMEOUT','?size=','svg','override','_undoRedoService','transformChangesets','object','_clearTimeoutTimer','Warning','IRenderManagerService','_updateURLWithCurrentState','Rectangle','Rect','collaborators','_permissionService','APPLY_PERMISSION_DENIED','InsertRangeMoveRightCommandId','LOGIN_URL_KEY','SEND_CHANGESET_TIMEOUT_KEY','c2Prime','_socketMessageSubscription','runRefRangeMutations','status$','getOwnPropertyDescriptor','getSheetBlock','_removeRoom','csRejEvent','useObservable','_createInitialState','b64DecodeUnicode','listRoles','getColor','toString','@univerjs/rpc','append','on-line-single','@wendellhu/redi','Tools','_localStorageService','ILocalStorageService','getOwnPropertySymbols','onRemoteRej','onStarting','_snapshotServerService','_members','/universer-api/comb','#fff','COLLAB_WEB_SOCKET_URL_KEY','_textBubble','AWAITING_WITH_PENDING','event$','@univerjs/docs','_messageService','InsertSheetMutation','patch','has','LOCAL_CACHE_INTERVAL','collabStatus.synced','doc.mutation.rich-text-editing','_socket','debounceTime','url(#on-line-single_clip0_910_349)','_transformStack','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','save','ThresholdInterceptorFactory','onlineStatus','_getUploadFileURL','registerHTTPInterceptor','location','_onRemoteChangeset','type','getResourcesRequest','hasOwnProperty','getCurrentUnitForType','collaMsg','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_sessionStatus$','_name','_lastPointer','SessionStatus','csAckEvent','AWAITING','_saveCache','transformIMECache','[CollaborationSessionService]','InsertRowCommandId','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','xlink:href','_getDocObject','saveOfflineData','getUnitType','_handleEvent','_unitId','next','_removeClearOtherTimer','lineTo','_tryEnsureSocket','round','[OfflineState]:\x20received\x20rejection.','Injector','pauseCollaboration','Subject','ImageSourceType','conflict.title','NOT_FOUND','_imageSourceCache','RETRY_CONNECTING_MAX_COUNT','push','data','transformStack\x20failed!','Starting','roomInfos','_sheetSkeletonManagerService','_onCursorDelete','_onFetchMissResult','getRenderById','shareReplay','_online','OTHER_CLIENTS_EDITING','onload','roomMembers$','VIEW_MAIN','eventID','encodeURIComponent','getFocusedUnit','getValue','_getAnchorBounding','@univerjs/drawing','AuthzIoHttpService','/universer-api/authz','_waitCount','contains','memberID','UNIVER_SHEET','transform','/universer-api/snapshot','getScrollXYByRelativeCoords','clearTimeout','list','actions','includes','assignAColorForMemberID','_compressMutationService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','image/jpeg','children','DesktopCollaborationStatusDisplayController','SNAPSHOT_HAS_BEEN_REMOVED','collabStatus.conflict','?url=','split','asObservable','update','none','/collaborator','_clearHeartbeatTimer','_roomMembers$','INVALID_ARGUMENT','getUnhiddenWorksheets','m1Prime','pluginName','error$','_showConflictNotification','SheetSkeletonManagerService','_scheduleCollaborationTimeoutTimer','onSyncEditingCollabCursor','isActive','handleDeleteRangeMoveUp','labelPosition','SetSelectionsOperation','UNIVER_DOC','mapDocumentTypeToUniverType','/universer-api/stream/file/upload','_updateLocalCursor','_remoteChangesetQueue','size','currentColor','[CollaborationSession]','RefRangeService','onTransformIME','_ws','_transformSelections','confirm','_onRefRangeChange','awaiting','UniverInstanceType','PERMISSION_DENIED','WebSocketService','_hover','batchAllowed','onMouseMove','_undoStacks','history','_updateSubUnitFromURLParams','_snapshotService','/fetchmissing?from=','UniverCollaborationPlugin','IDLE','_startDocCollabCursor','TEXT_RANGE_LAYER_INDEX','APPLY_NON_SEQUENTIAL_REVISION','_eventUnsubscribe','_sendHeartbeat','removeMember','slice','collab-text-range-','connection\x20error','putCollaborators','_colorIndex','filter','collabCursorState$','post','COMPRESS_MUTATION_APPLY','_onConflict','addEventListener','deserializeToCombResponse','_ensureSubject','deepClone','@univerjs/ui','complete','close','CompressMutationService','HEARTBEAT_INTERVAL_KEY','originalMeta','toRgbString','_scheduleClearOtherTimer','unit-cache-','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','_collabSessionService','_session','Optional','getRangePointData','getActiveRange','c1Prime','UniverDesign','/-/object/-/batch_allowed','createCollaborator','_toggleOffline','getInterceptPoints','mutations','IContextService','_collaborationPaused','then','getUnitId','_setupSubUnitSync','_transformUndoRedoStack','\x20to\x20','joinRsp','currentSkeleton$','sheetID','_disabled','cursorInfo','ERROR_EXCEED_SIZE','encode','LocalCacheService','fill','drawWith','url(#$1','HEADER_MENU','transformSelections','_loadDoc','toggleOnline','toggleOffline','_themeService','get','onRemoteChangeset','M0\x200H16V16H0z','session.collaboration-timeout','CHANGESET_REVISION_CONFILICT','_getSnapshotAPIPrefix','_notificationService','_fetchMissChangesets','_collaborationTimeoutTimer','collabStatus.fetchMiss','evenodd','_docSyncEditingCollabCursorService','_startCollaboration','reduce','_scheduleSaving','onMissingChangesets','HEARTBEAT','IRemoteInstanceService','LifecycleStages','_joinRoom','LIVESHARE_REQUEST_HOST','_labelPosition','userID','CHANGESET_REJ','UniverCollaborationClientPlugin','symbol','connectInjector','whenReady','updateMember','UNAUTHENTICATED','507807oYqnTr','extend','_onLocalMutation','getSelections','min','_getScale','DeleteRangeMoveUpCommandId','onPointerMove$','rev','_getAPIPrefix','_handleLeaveEvent','row','onPointerLeave$','@univerjs/sheets','LICENSE_MAX_UNITS_EXCEEDED','fillStyle','updateCollaborator','_startSheetCollabCursor','_transformUndoredo','FileId','sequenceExecute','HELLO','prototype','@univerjs/network','liveShareOperation','liveShareNewHost','DocStateChangeManagerService','2yyFysE','2145088ySwGpq','160LVJCAN','_configService','serializeTextRange','_setupBeforeClosingHandler','collaboration-client.offline-data-not-saved','getUndoRedoMutationParamsCache','react','PSEUDO_FETCH_MISSING_RESULT','_removeCollabCursors','CollaborationStatusDisplay','makeDirty','useDependency','getTime','createSocket','subscribe','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','APPLY_REJECT','844689jeePbx','handleInsertRangeMoveDown','[CollaborationSessionService]:\x20socket\x20error','Disposable','IURLService','onPointerEnter$','createElement','_saveTaskMap','_beforeCloseService','/universer-api/file/{fileID}/sign-url','_clearCollaborationTimeoutTimer','[SyncedState]:\x20received\x20acknowledgement.','_HTTPService','_cursor','handleMoveRange','_init','_getCurrentRevision','RichTextEditingMutation','use','IUndoRedoService','LIVESHARE_TERMINATE','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','requireSession','UNIVER_SLIDE','RETRY_CONNECTING_INTERVAL','collaborationUniverTypes','take','ALREADY_EXISTS','attrs','_http','_rescheduleHeartbeatEvent','fetchMissingChangesets','LIVESHARE_FETCH_OPERATIONS','selection','className','defIds','UniverUi','_socketService','_commandService','_document','assign','objects','@univerjs-pro/collaboration','delete','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','session.will-retry','_docTransformIMECacheService','UniverRpc','ACTIVE_UNIT_EVENT_CHANNEL','_sendingTimer','reverse','USERS_ENTER','getSheetId','OnLineSingle','currentTheme$','toDisposable','m2Prime','purple300','LICENSE_DISTRO_REJECTED','_roomMembers','_hovered','LIVESHARE_OPERATION','PENDING','onCommandExecuted','COLORS','collaboration.single-unit.warning','_retryConnectingTimer','restore','_unitOnClients','_shapes','DependentOn','_localCacheService','_handleHover','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getTypeOfUnitDisposed$','_drawRange','getCurrentUser','_onMessage','_cursorInfo$','sessionStatus','AUTHZ_URL_KEY','appendMutation','cursorInfo$','_exhaustSavingTask','_scheduleReconnection','NodePositionConvertToCursor','updatePermissionPoint','pending','COMPLETION_FINISHED','from','subscribeEvent','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_injector','_urlService','_updateLocalCache','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','clsx','_getSignURL','endColumn','_scene','_uiPartsService','submit\x20changeset\x20error!','NEW_CHANGESETS','#FFF','textEncoder','\x0aCurrent:\x20','urlChange$','getSheetBySheetId','DocSkeletonManagerService'];_0x15ab=function(){return _0x3874a6;};return _0x15ab();}
1
+ (function(_0x5a0333,_0xf08ba3){const _0x2f0f1e=_0x492d,_0x15fada=_0x5a0333();while(!![]){try{const _0x78c615=-parseInt(_0x2f0f1e(0x3ad))/0x1+parseInt(_0x2f0f1e(0x340))/0x2+parseInt(_0x2f0f1e(0x1b4))/0x3+parseInt(_0x2f0f1e(0x1b8))/0x4+-parseInt(_0x2f0f1e(0x1c3))/0x5*(parseInt(_0x2f0f1e(0x3dc))/0x6)+-parseInt(_0x2f0f1e(0x2d8))/0x7+-parseInt(_0x2f0f1e(0x493))/0x8*(-parseInt(_0x2f0f1e(0x1db))/0x9);if(_0x78c615===_0xf08ba3)break;else _0x15fada['push'](_0x15fada['shift']());}catch(_0x1ffe6f){_0x15fada['push'](_0x15fada['shift']());}}}(_0x23bd,0x683eb),function(_0x2fa430,_0x4f5774){const _0x380162=_0x492d;typeof exports==_0x380162(0x18a)&&typeof module<'u'?_0x4f5774(exports,require(_0x380162(0x38f)),require(_0x380162(0x22d)),require('@univerjs/design'),require('@univerjs/ui'),require(_0x380162(0x256)),require(_0x380162(0x48e)),require(_0x380162(0x1ba)),require(_0x380162(0x302)),require('@univerjs/docs'),require(_0x380162(0x4b2)),require(_0x380162(0x41e)),require(_0x380162(0x28a)),require('lodash/debounce'),require(_0x380162(0x103)),require(_0x380162(0x193)),require(_0x380162(0x128)),require(_0x380162(0x41d)),require(_0x380162(0x259)),require('@univerjs/rpc')):typeof define==_0x380162(0x452)&&define[_0x380162(0x3a2)]?define([_0x380162(0x2b7),_0x380162(0x38f),_0x380162(0x22d),_0x380162(0x2e3),_0x380162(0x219),'@univerjs-pro/collaboration',_0x380162(0x48e),_0x380162(0x1ba),_0x380162(0x302),_0x380162(0x364),_0x380162(0x4b2),_0x380162(0x41e),_0x380162(0x28a),_0x380162(0x2da),_0x380162(0x103),'@univerjs/sheets-ui','@wendellhu/redi/react-bindings',_0x380162(0x41d),_0x380162(0x259),_0x380162(0x35b)],_0x4f5774):(_0x2fa430=typeof globalThis<'u'?globalThis:_0x2fa430||self,_0x4f5774(_0x2fa430[_0x380162(0x3db)]={},_0x2fa430[_0x380162(0x1c4)],_0x2fa430['UniverSheets'],_0x2fa430[_0x380162(0x403)],_0x2fa430[_0x380162(0x1d6)],_0x2fa430[_0x380162(0x1f9)],_0x2fa430['@wendellhu/redi'],_0x2fa430['rxjs'],_0x2fa430[_0x380162(0x1ba)]['operators'],_0x2fa430[_0x380162(0x2a9)],_0x2fa430[_0x380162(0x27c)],_0x2fa430[_0x380162(0x399)],_0x2fa430[_0x380162(0x238)],_0x2fa430['lodash'][_0x380162(0x4ae)],_0x2fa430[_0x380162(0x141)],_0x2fa430[_0x380162(0x3c8)],_0x2fa430[_0x380162(0x128)],_0x2fa430[_0x380162(0x3dd)],_0x2fa430[_0x380162(0x259)],_0x2fa430[_0x380162(0x4a9)]));}(this,function(_0x322d5b,_0x592d59,_0x5e4af3,_0x5063fc,_0x2c52d3,_0x1f6364,_0x1ea985,_0x3c7a49,_0x39f29f,_0x30cc49,_0x490a4f,_0x3b3d9c,_0x475fb6,_0x5e5cd3,_0x5c59d0,_0x1c3859,_0x250089,_0x4f6c5c,_0x4dd75f,_0x5d4b6e){'use strict';const _0x1000c0=_0x492d;var _0x31ddb8=Object[_0x1000c0(0x1a1)],_0x4086f5=(_0x369e63,_0xfa0db5,_0x4dbdea)=>_0xfa0db5 in _0x369e63?_0x31ddb8(_0x369e63,_0xfa0db5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4dbdea}):_0x369e63[_0xfa0db5]=_0x4dbdea,_0x40dfd7=(_0x3191ee,_0x1c7f3a,_0x1f74cd)=>_0x4086f5(_0x3191ee,typeof _0x1c7f3a!='symbol'?_0x1c7f3a+'':_0x1c7f3a,_0x1f74cd);const _0x4ba31f='SNAPSHOT_SERVER_URL_KEY',_0x14ea18='/universer-api/snapshot',_0x3478c0=_0x1000c0(0x380),_0x48f0d1=_0x1000c0(0x4b8),_0x1ed340=_0x1000c0(0x4ce),_0x3a2870='ws://127.0.0.1:8000/universer-api/comb/connect',_0x415ece=_0x1000c0(0x3bc),_0x22e7f5=_0x1000c0(0x1fe),_0x58522e=_0x1000c0(0x313),_0x966ced=_0x1000c0(0x1f6),_0x5cb089=_0x1000c0(0x45e),_0x50bca1='COLLAB_SUBMIT_CHANGESET_URL',_0x2a5647='/universer-api/comb',_0x24179b=_0x1000c0(0x381),_0x21698b=_0x1000c0(0x198);var _0x39c634=(_0x30a466=>(_0x30a466[_0x30a466[_0x1000c0(0x17d)]=0x0]=_0x1000c0(0x17d),_0x30a466[_0x30a466['OK']=0x1]='OK',_0x30a466[_0x30a466['INTERNAL_ERROR']=0x2]=_0x1000c0(0x110),_0x30a466[_0x30a466[_0x1000c0(0x3b4)]=0x3]=_0x1000c0(0x3b4),_0x30a466[_0x30a466[_0x1000c0(0x247)]=0x4]=_0x1000c0(0x247),_0x30a466[_0x30a466['UNAUTHENTICATED']=0x5]=_0x1000c0(0x353),_0x30a466[_0x30a466[_0x1000c0(0x3af)]=0x6]='ALREADY_EXISTS',_0x30a466[_0x30a466[_0x1000c0(0x40f)]=0x7]=_0x1000c0(0x40f),_0x30a466[_0x30a466[_0x1000c0(0x197)]=0x8]=_0x1000c0(0x197),_0x30a466[_0x30a466['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x30a466[_0x30a466[_0x1000c0(0x2f8)]=0x1389]=_0x1000c0(0x2f8),_0x30a466[_0x30a466['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x30a466[_0x30a466[_0x1000c0(0x190)]=0x1772]=_0x1000c0(0x190),_0x30a466[_0x30a466[_0x1000c0(0x4a6)]=0x1b59]='APPLY_REJECT',_0x30a466[_0x30a466[_0x1000c0(0x3a8)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x30a466[_0x30a466[_0x1000c0(0x392)]=0x1b5b]=_0x1000c0(0x392),_0x30a466[_0x30a466[_0x1000c0(0x166)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x30a466[_0x30a466[_0x1000c0(0x2fa)]=0x1f41]=_0x1000c0(0x2fa),_0x30a466[_0x30a466[_0x1000c0(0x499)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x30a466[_0x30a466[_0x1000c0(0x1d7)]=0x232a]=_0x1000c0(0x1d7),_0x30a466[_0x30a466['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x30a466[_0x30a466[_0x1000c0(0x354)]=0x232c]=_0x1000c0(0x354),_0x30a466[_0x30a466['LICENSE_DISTRO_REJECTED']=0x232d]=_0x1000c0(0x355),_0x30a466[_0x30a466[_0x1000c0(0x3e6)]=0x2711]=_0x1000c0(0x3e6),_0x30a466[_0x30a466[_0x1000c0(0x4bc)]=0x2712]=_0x1000c0(0x4bc),_0x30a466[_0x30a466[_0x1000c0(0x324)]=-0x1]='UNRECOGNIZED',_0x30a466))(_0x39c634||{}),_0x376736=(_0x3b9344=>(_0x3b9344[_0x3b9344['UNIVER_UNKNOWN']=0x0]=_0x1000c0(0x4d0),_0x3b9344[_0x3b9344[_0x1000c0(0x119)]=0x1]=_0x1000c0(0x119),_0x3b9344[_0x3b9344['UNIVER_SHEET']=0x2]=_0x1000c0(0x149),_0x3b9344[_0x3b9344[_0x1000c0(0x477)]=0x3]=_0x1000c0(0x477),_0x3b9344[_0x3b9344[_0x1000c0(0x324)]=-0x1]=_0x1000c0(0x324),_0x3b9344))(_0x376736||{}),_0x2f9f5b=(_0x396264=>(_0x396264[_0x396264[_0x1000c0(0x433)]=0x0]=_0x1000c0(0x433),_0x396264[_0x396264[_0x1000c0(0x3a9)]=0x1]=_0x1000c0(0x3a9),_0x396264[_0x396264[_0x1000c0(0x241)]=0x2]=_0x1000c0(0x241),_0x396264[_0x396264[_0x1000c0(0xf7)]=0x3]=_0x1000c0(0xf7),_0x396264[_0x396264[_0x1000c0(0x139)]=0x4]=_0x1000c0(0x139),_0x396264[_0x396264[_0x1000c0(0x3a6)]=0x5]=_0x1000c0(0x3a6),_0x396264[_0x396264[_0x1000c0(0x2ff)]=0x6]='RECV',_0x396264[_0x396264[_0x1000c0(0x324)]=-0x1]='UNRECOGNIZED',_0x396264))(_0x2f9f5b||{}),_0x282d51=(_0x5bd06e=>(_0x5bd06e[_0x5bd06e[_0x1000c0(0x23d)]=0x0]=_0x1000c0(0x23d),_0x5bd06e[_0x5bd06e['OK']=0x1]='OK',_0x5bd06e[_0x5bd06e[_0x1000c0(0x27d)]=0x2]='FAIL',_0x5bd06e[_0x5bd06e[_0x1000c0(0x324)]=-0x1]='UNRECOGNIZED',_0x5bd06e))(_0x282d51||{}),_0x134f94=Object[_0x1000c0(0x1a1)],_0x5e0676=Object[_0x1000c0(0x2d4)],_0x450ba3=(_0x3a661b,_0x371428,_0x2721c1,_0x35e7c5)=>{const _0x8d646a=_0x1000c0;for(var _0xd8acc0=_0x35e7c5>0x1?void 0x0:_0x35e7c5?_0x5e0676(_0x371428,_0x2721c1):_0x371428,_0x2e9a5b=_0x3a661b[_0x8d646a(0x1d8)]-0x1,_0x5e2f61;_0x2e9a5b>=0x0;_0x2e9a5b--)(_0x5e2f61=_0x3a661b[_0x2e9a5b])&&(_0xd8acc0=(_0x35e7c5?_0x5e2f61(_0x371428,_0x2721c1,_0xd8acc0):_0x5e2f61(_0xd8acc0))||_0xd8acc0);return _0x35e7c5&&_0xd8acc0&&_0x134f94(_0x371428,_0x2721c1,_0xd8acc0),_0xd8acc0;},_0x49aa6c=(_0x329345,_0x1db133)=>(_0x5b5caa,_0x1974d0)=>_0x1db133(_0x5b5caa,_0x1974d0,_0x329345);let _0x2539c6=class extends _0x592d59[_0x1000c0(0x450)]{constructor(_0x3d8e61,_0x264a66){const _0x15d745=_0x1000c0;super(),_0x40dfd7(this,_0x15d745(0x299),new Map()),(this['_univerInstanceService']=_0x3d8e61,this['_userManagerService']=_0x264a66,this['disposeWithMe'](_0x592d59[_0x15d745(0x29f)](_0x3c7a49[_0x15d745(0x30f)](this[_0x15d745(0x40b)][_0x15d745(0x341)](_0x592d59['UniverInstanceType'][_0x15d745(0x149)])[_0x15d745(0x161)](_0x39f29f[_0x15d745(0x1f5)](_0x5b84d6=>_0x5b84d6['getUnitId']())),this[_0x15d745(0x40b)][_0x15d745(0x341)](_0x592d59[_0x15d745(0x1b5)][_0x15d745(0x119)])['pipe'](_0x39f29f[_0x15d745(0x1f5)](_0x23083a=>_0x23083a[_0x15d745(0x270)]())),this[_0x15d745(0x40b)][_0x15d745(0x341)](_0x592d59[_0x15d745(0x1b5)][_0x15d745(0x477)])[_0x15d745(0x161)](_0x39f29f['map'](_0x16fc6a=>_0x16fc6a[_0x15d745(0x270)]())))[_0x15d745(0x42f)](_0x224f6f=>this[_0x15d745(0x171)](_0x224f6f)))));}[_0x1000c0(0x3ac)](_0xb64875){const _0x50a543=_0x1000c0;this[_0x50a543(0x13d)][_0x50a543(0x3ac)](_0xb64875);}[_0x1000c0(0x277)](){return this['_userManagerService']['getCurrentUser']();}[_0x1000c0(0x262)](_0x13db29,_0x43bc24){const _0x192b2f=_0x1000c0;let _0x4bf994=this['_roomMembers']['get'](_0x13db29);_0x4bf994||(_0x4bf994=new _0x5ee9c7(),this[_0x192b2f(0x299)]['set'](_0x13db29,_0x4bf994)),_0x4bf994[_0x192b2f(0x262)](_0x43bc24);}[_0x1000c0(0x455)](_0x2473c1,_0x29f636){const _0x41b4be=_0x1000c0,_0x37f1d2=this[_0x41b4be(0x299)][_0x41b4be(0x1de)](_0x2473c1);_0x37f1d2&&_0x37f1d2[_0x41b4be(0x455)](_0x29f636);}[_0x1000c0(0x3e2)](_0x17cd30){const _0x1d25fd=_0x1000c0;return this['_roomMembers'][_0x1d25fd(0x1de)](_0x17cd30);}[_0x1000c0(0x1cc)](_0x2f90ff,_0x260053){const _0x4b765c=_0x1000c0,_0x4619e4=this[_0x4b765c(0x299)][_0x4b765c(0x1de)](_0x2f90ff);if(_0x4619e4)return _0x4619e4[_0x4b765c(0x1cc)](_0x260053);}['_removeRoom'](_0x46cc55){const _0x971bf2=_0x1000c0,_0x158118=this[_0x971bf2(0x299)][_0x971bf2(0x1de)](_0x46cc55);_0x158118&&(_0x158118['dispose'](),this[_0x971bf2(0x299)][_0x971bf2(0x234)](_0x46cc55));}[_0x1000c0(0x36f)](){const _0x502864=_0x1000c0;this['_roomMembers'][_0x502864(0x24b)](_0x2154f8=>_0x2154f8['dispose']()),this['_roomMembers'][_0x502864(0x370)]();}};_0x2539c6=_0x450ba3([_0x49aa6c(0x0,_0x592d59[_0x1000c0(0x305)]),_0x49aa6c(0x1,_0x1ea985['Inject'](_0x592d59[_0x1000c0(0x2dc)]))],_0x2539c6);class _0x5ee9c7 extends _0x592d59['Disposable']{constructor(){super(...arguments),_0x40dfd7(this,'_members',new Map());}[_0x1000c0(0x36f)](){const _0x217119=_0x1000c0;this[_0x217119(0xfa)]['clear']();}[_0x1000c0(0x262)](_0x30f7c9){const _0x1debb2=_0x1000c0;this[_0x1debb2(0xfa)]['set'](_0x30f7c9[_0x1debb2(0x4aa)],_0x30f7c9);}['removeMember'](_0x449509){const _0x5d6a6a=_0x1000c0;this[_0x5d6a6a(0xfa)][_0x5d6a6a(0x234)](_0x449509);}[_0x1000c0(0x1cc)](_0x1bf525){const _0x17c16e=_0x1000c0;return this['_members'][_0x17c16e(0x1de)](_0x1bf525);}}function _0x339084(_0x264d47){const _0x1fa965=_0x1000c0;var _0x8f042e,_0x3366ca,_0x4bb933,_0x1355ff;const _0x35210c=_0x264d47[_0x1fa965(0x314)],_0x1f3911=JSON[_0x1fa965(0x281)](_0x35210c);switch(_0x1f3911[_0x1fa965(0x28c)]){case _0x2f9f5b['HEARTBEAT']:case _0x2f9f5b[_0x1fa965(0x3a9)]:{const _0x1e814d=_0x1f3911['infoRsp'];return{..._0x1f3911,'data':_0x1e814d,'cmd':_0x1f3911[_0x1fa965(0x28c)]};}case _0x2f9f5b[_0x1fa965(0x241)]:{const _0x44a852=_0x1f3911[_0x1fa965(0x163)];return{..._0x1f3911,'data':_0x44a852,'cmd':_0x1f3911[_0x1fa965(0x28c)]};}case _0x2f9f5b[_0x1fa965(0x2ff)]:{const _0x4da477=_0x1f3911[_0x1fa965(0x201)];switch(_0x4da477[_0x1fa965(0x263)]){case _0x1f6364['CollaborationEvent'][_0x1fa965(0x319)]:return{..._0x1f3911,'data':{..._0x4da477,'data':(_0x8f042e=_0x4da477['permissionRejEvent'])==null?void 0x0:_0x8f042e['cs']},'cmd':_0x1f3911['cmd']};case _0x1f6364['CollaborationEvent'][_0x1fa965(0x1d5)]:return{..._0x1f3911,'data':{..._0x4da477,'data':(_0x3366ca=_0x4da477['csAckEvent'])==null?void 0x0:_0x3366ca['cs']},'cmd':_0x1f3911['cmd']};case _0x1f6364[_0x1fa965(0x159)][_0x1fa965(0x274)]:return{..._0x1f3911,'data':{..._0x4da477,'data':(_0x4bb933=_0x4da477[_0x1fa965(0x223)])==null?void 0x0:_0x4bb933['cs']},'cmd':_0x1f3911['cmd']};case _0x1f6364[_0x1fa965(0x159)][_0x1fa965(0x329)]:return{..._0x1f3911,'data':{..._0x4da477,'data':(_0x1355ff=_0x4da477[_0x1fa965(0x14c)])==null?void 0x0:_0x1355ff['cs']},'cmd':_0x1f3911[_0x1fa965(0x28c)]};case _0x1f6364[_0x1fa965(0x159)][_0x1fa965(0x157)]:return{..._0x1f3911,'data':{..._0x4da477,'data':_0x4da477[_0x1fa965(0x462)]},'cmd':_0x1f3911[_0x1fa965(0x28c)]};case _0x1f6364['CollaborationEvent'][_0x1fa965(0x296)]:return{..._0x1f3911,'data':{..._0x4da477,'data':_0x4da477['joinEvent']},'cmd':_0x1f3911[_0x1fa965(0x28c)]};case _0x1f6364[_0x1fa965(0x159)][_0x1fa965(0x133)]:return{..._0x1f3911,'data':{..._0x4da477,'data':_0x4da477[_0x1fa965(0x4bf)]},'cmd':_0x1f3911['cmd']};case _0x1f6364[_0x1fa965(0x159)][_0x1fa965(0x242)]:return{..._0x1f3911,'data':{..._0x4da477,'data':_0x4da477['liveShareNewHost']},'cmd':_0x1f3911[_0x1fa965(0x28c)]};case _0x1f6364[_0x1fa965(0x159)][_0x1fa965(0x47f)]:case _0x1f6364[_0x1fa965(0x159)][_0x1fa965(0x151)]:return{..._0x1f3911,'data':{..._0x4da477,'data':_0x4da477[_0x1fa965(0x19f)]},'cmd':_0x1f3911['cmd']};case _0x1f6364['CollaborationEvent'][_0x1fa965(0x2ed)]:return{..._0x1f3911,'data':{..._0x4da477,'data':_0x4da477[_0x1fa965(0x13c)]},'cmd':_0x1f3911[_0x1fa965(0x28c)]};case _0x1f6364['CollaborationEvent'][_0x1fa965(0x18d)]:return{..._0x1f3911,'data':_0x4da477,'cmd':_0x1f3911['cmd']};case _0x1f6364[_0x1fa965(0x159)][_0x1fa965(0x331)]:return{..._0x1f3911,'data':{..._0x4da477,'data':_0x4da477['commentUpdateEvent']},'cmd':_0x1f3911[_0x1fa965(0x28c)]};default:return _0x1f3911;}}default:return _0x1f3911;}}function _0x488cf7(_0x40b61a){const _0x39b4e7=_0x1000c0;switch(_0x40b61a[_0x39b4e7(0x28c)]){case _0x2f9f5b['HEARTBEAT']:case _0x2f9f5b[_0x39b4e7(0x3a9)]:return JSON['stringify']({'cmd':_0x40b61a[_0x39b4e7(0x28c)],'routeKey':_0x40b61a[_0x39b4e7(0x472)]});case _0x2f9f5b[_0x39b4e7(0x139)]:{let _0x378a90;switch(_0x40b61a[_0x39b4e7(0x314)][_0x39b4e7(0x263)]){case _0x1f6364['CollaborationEvent'][_0x39b4e7(0x157)]:{_0x378a90={'eventID':_0x1f6364[_0x39b4e7(0x159)][_0x39b4e7(0x157)],'updateCursorEvent':_0x40b61a[_0x39b4e7(0x314)][_0x39b4e7(0x314)]};break;}case _0x1f6364[_0x39b4e7(0x159)]['USERS_LEAVE']:{_0x378a90={'eventID':_0x1f6364[_0x39b4e7(0x159)][_0x39b4e7(0x133)],'leaveEvent':_0x40b61a[_0x39b4e7(0x314)][_0x39b4e7(0x314)]};break;}case _0x1f6364[_0x39b4e7(0x159)][_0x39b4e7(0x296)]:{_0x378a90={'eventID':_0x1f6364[_0x39b4e7(0x159)]['USERS_ENTER'],'joinEvent':_0x40b61a['data']['data']};break;}case _0x1f6364[_0x39b4e7(0x159)][_0x39b4e7(0x242)]:{_0x378a90={'eventID':_0x1f6364['CollaborationEvent'][_0x39b4e7(0x242)],'liveShareNewHost':_0x40b61a[_0x39b4e7(0x314)][_0x39b4e7(0x314)]};break;}case _0x1f6364['CollaborationEvent'][_0x39b4e7(0x151)]:{_0x378a90={'eventID':_0x1f6364[_0x39b4e7(0x159)][_0x39b4e7(0x151)],'liveShareOperation':_0x40b61a[_0x39b4e7(0x314)][_0x39b4e7(0x314)]};break;}case _0x1f6364['CollaborationEvent'][_0x39b4e7(0x2ed)]:{_0x378a90={'eventID':_0x1f6364[_0x39b4e7(0x159)][_0x39b4e7(0x2ed)],'liveShareTerminate':_0x40b61a[_0x39b4e7(0x314)]['data']};break;}case _0x1f6364['CollaborationEvent'][_0x39b4e7(0x127)]:{_0x378a90={'eventID':_0x1f6364[_0x39b4e7(0x159)][_0x39b4e7(0x127)],'liveShareRequestHost':_0x40b61a['data']['data']};break;}case _0x1f6364['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:{_0x378a90={'eventID':_0x1f6364['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x378a90={'eventID':_0x40b61a['data'][_0x39b4e7(0x263)]};}return JSON['stringify']({'cmd':_0x40b61a[_0x39b4e7(0x28c)],'routeKey':_0x40b61a[_0x39b4e7(0x472)],'collaMsg':_0x378a90});}case _0x2f9f5b[_0x39b4e7(0x241)]:return JSON[_0x39b4e7(0x199)]({'cmd':_0x40b61a[_0x39b4e7(0x28c)],'routeKey':_0x40b61a[_0x39b4e7(0x472)],'joinReq':_0x40b61a[_0x39b4e7(0x314)]});case _0x2f9f5b['LEAVE']:return JSON[_0x39b4e7(0x199)]({'cmd':_0x40b61a[_0x39b4e7(0x28c)],'routeKey':_0x40b61a[_0x39b4e7(0x472)],'leaveReq':_0x40b61a[_0x39b4e7(0x314)]});default:throw new Error(_0x39b4e7(0xfe));}}var _0x34ff1b=Object[_0x1000c0(0x1a1)],_0x4fbc1d=Object[_0x1000c0(0x2d4)],_0x44b99a=(_0x4208c7,_0x1c89de,_0x556aef,_0x39151b)=>{const _0xb88aa9=_0x1000c0;for(var _0x2ff74c=_0x39151b>0x1?void 0x0:_0x39151b?_0x4fbc1d(_0x1c89de,_0x556aef):_0x1c89de,_0x4e4ff6=_0x4208c7[_0xb88aa9(0x1d8)]-0x1,_0xc11a01;_0x4e4ff6>=0x0;_0x4e4ff6--)(_0xc11a01=_0x4208c7[_0x4e4ff6])&&(_0x2ff74c=(_0x39151b?_0xc11a01(_0x1c89de,_0x556aef,_0x2ff74c):_0xc11a01(_0x2ff74c))||_0x2ff74c);return _0x39151b&&_0x2ff74c&&_0x34ff1b(_0x1c89de,_0x556aef,_0x2ff74c),_0x2ff74c;},_0x58829f=(_0x4f2b20,_0x283982)=>(_0x1c776c,_0x1ce3ef)=>_0x283982(_0x1c776c,_0x1ce3ef,_0x4f2b20);const _0x81d796=_0x1ea985['createIdentifier'](_0x1000c0(0x48d));function _0x5849a5(_0x56b83f,_0x3d35ef,_0x3fb618){const _0x804777=_0x1000c0;return _0x56b83f+'/'+_0x3d35ef+'/unit/'+_0x3fb618+_0x804777(0x45f);}_0x322d5b[_0x1000c0(0x11c)]=class{constructor(_0x5bf115,_0x4c76eb,_0x1a67bf,_0x498676,_0x5a6407){const _0x13c4a9=_0x1000c0;this[_0x13c4a9(0x29a)]=_0x5bf115,this[_0x13c4a9(0x2af)]=_0x4c76eb,this['_configService']=_0x1a67bf,this[_0x13c4a9(0x195)]=_0x498676,this[_0x13c4a9(0x25a)]=_0x5a6407;}['createSocket'](_0x1d66a4){const _0x3db454=_0x1000c0,_0x12f704=this[_0x3db454(0x2af)][_0x3db454(0x25d)](_0x1d66a4);if(!_0x12f704)throw new Error(_0x3db454(0x228));const _0x5b6738=new _0x592d59['DisposableCollection'](),_0xaf9a2a=new _0x3c7a49['Subject']();_0x5b6738[_0x3db454(0x290)](_0x592d59[_0x3db454(0x29f)](_0x12f704['close$']['subscribe'](_0x2aa4ca=>_0xaf9a2a[_0x3db454(0x117)](_0x2aa4ca)))),_0x5b6738[_0x3db454(0x290)](_0x592d59[_0x3db454(0x29f)](()=>_0xaf9a2a[_0x3db454(0x4b5)]()));const _0x20371b=new _0x3c7a49[(_0x3db454(0x33b))]();_0x5b6738[_0x3db454(0x290)](_0x592d59[_0x3db454(0x29f)](_0x12f704[_0x3db454(0x3fb)][_0x3db454(0x42f)](_0x6cc79a=>_0x20371b[_0x3db454(0x117)](_0x6cc79a)))),_0x5b6738[_0x3db454(0x290)](_0x592d59[_0x3db454(0x29f)](()=>_0x20371b[_0x3db454(0x4b5)]()));const _0x30f2e0=new _0x3c7a49[(_0x3db454(0x33b))]();_0x5b6738[_0x3db454(0x290)](_0x592d59[_0x3db454(0x29f)](_0x12f704['message$']['subscribe'](_0x421e88=>{const _0x9b5c4e=_0x3db454,_0x2837a4=_0x339084(_0x421e88);_0x30f2e0[_0x9b5c4e(0x117)](_0x2837a4);}))),_0x5b6738['add'](_0x592d59[_0x3db454(0x29f)](()=>_0x30f2e0['complete']()));const _0x4ef6b1=()=>{const _0x5c0cbe=_0x3db454;_0x20371b[_0x5c0cbe(0x117)](new Event(_0x5c0cbe(0x41a))),_0xaf9a2a[_0x5c0cbe(0x117)](new CloseEvent(_0x5c0cbe(0x41a))),_0x4b9a33['close']();},_0x4b9a33={'memberID':'','close$':_0xaf9a2a[_0x3db454(0x32c)](),'error$':_0x20371b['asObservable'](),'open$':_0x12f704[_0x3db454(0x427)],'message$':_0x30f2e0[_0x3db454(0x32c)](),'send':_0x134964=>{const _0x316734=_0x3db454;if(_0x134964[_0x316734(0x28c)]===_0x2f9f5b[_0x316734(0x139)]){if(_0x134964['data'][_0x316734(0x263)]===_0x1f6364[_0x316734(0x159)][_0x316734(0x311)]){this['_submitChangeset'](_0x4b9a33,_0x134964[_0x316734(0x314)])[_0x316734(0x307)](_0x17a2f1=>{const _0x5b91d6=_0x316734;this['_logService'][_0x5b91d6(0x343)](_0x17a2f1),_0x4ef6b1();});return;}if(_0x134964[_0x316734(0x314)][_0x316734(0x263)]===_0x1f6364['CollaborationEvent'][_0x316734(0x33d)]){const _0x588b57=_0x134964[_0x316734(0x314)];this[_0x316734(0x377)](_0x588b57)[_0x316734(0x441)](_0x1d0663=>{const _0x4de3df=_0x316734;_0x30f2e0[_0x4de3df(0x117)]({'cmd':_0x2f9f5b['RECV'],'code':_0x282d51['OK'],'routeKey':_0x588b57['data']['unitID'],'routeType':'','data':{'eventID':_0x1f6364[_0x4de3df(0x159)][_0x4de3df(0x1e7)],'data':{'changesets':_0x1d0663}}});})[_0x316734(0x307)](_0x20c96a=>{const _0x490790=_0x316734;this[_0x490790(0x195)][_0x490790(0x343)](_0x20c96a),_0x4ef6b1();});return;}}_0x12f704['send'](_0x488cf7(_0x134964));},'close':()=>{const _0x5f14d5=_0x3db454;_0x12f704[_0x5f14d5(0x2f1)](),_0x5b6738[_0x5f14d5(0x36f)]();}};return _0x4b9a33;}async[_0x1000c0(0x16c)](_0x30754d,_0x1c8a1e){const _0xbe4ca5=_0x1000c0;var _0x906942;const {unitType:_0x24b398,unitID:_0x5662a9,changeset:_0x2e5056}=_0x1c8a1e['data'],_0x550866={'unitID':_0x5662a9,'memberID':_0x30754d[_0xbe4ca5(0x4aa)],'type':_0x24b398,'changeset':_0x1f6364[_0xbe4ca5(0x158)](_0x2e5056)},_0x2cc324=_0x5849a5((_0x906942=this[_0xbe4ca5(0x230)][_0xbe4ca5(0x393)](_0x50bca1))!=null?_0x906942:_0x2a5647,_0x24b398,_0x5662a9);try{await this[_0xbe4ca5(0x29a)]['post'](_0x2cc324,{'body':_0x550866});}catch(_0x2392f2){throw this[_0xbe4ca5(0x195)][_0xbe4ca5(0x343)]('[CollaborationSession]',_0xbe4ca5(0x470)),_0x2392f2;}}async[_0x1000c0(0x377)](_0x52920c){const _0x4daea5=_0x1000c0,{unitID:_0x20b0b1,from:_0x4c7fe9,to:_0x58f79d,unitType:_0x416365}=_0x52920c['data'];return(await this[_0x4daea5(0x25a)][_0x4daea5(0x38a)]({'metadata':void 0x0},{'unitID':_0x20b0b1,'type':_0x416365,'from':_0x4c7fe9,'to':_0x58f79d}))[_0x4daea5(0x475)];}},_0x322d5b[_0x1000c0(0x11c)]=_0x44b99a([_0x58829f(0x0,_0x1ea985[_0x1000c0(0x368)](_0x490a4f[_0x1000c0(0x4b0)])),_0x58829f(0x1,_0x1ea985['Inject'](_0x490a4f['WebSocketService'])),_0x58829f(0x2,_0x592d59[_0x1000c0(0x41f)]),_0x58829f(0x3,_0x592d59[_0x1000c0(0x1ef)]),_0x58829f(0x4,_0x592d59[_0x1000c0(0x460)])],_0x322d5b[_0x1000c0(0x11c)]);class _0x3c2f54{constructor(){const _0x3a0226=_0x1000c0;_0x40dfd7(this,'_commentUpdate$',new _0x3c7a49[(_0x3a0226(0x33b))]()),_0x40dfd7(this,_0x3a0226(0x465),this[_0x3a0226(0x3d2)][_0x3a0226(0x32c)]());}[_0x1000c0(0x26d)](_0x2c8e8e){this['_commentUpdate$']['next'](_0x2c8e8e);}}var _0x3069e9=Object['defineProperty'],_0x310c22=Object['getOwnPropertyDescriptor'],_0x3583d0=(_0x2fcd8a,_0x5e86a5,_0x1b76ff,_0x3d7989)=>{const _0x1dc119=_0x1000c0;for(var _0x12fa36=_0x3d7989>0x1?void 0x0:_0x3d7989?_0x310c22(_0x5e86a5,_0x1b76ff):_0x5e86a5,_0x3cb730=_0x2fcd8a[_0x1dc119(0x1d8)]-0x1,_0x2b1cab;_0x3cb730>=0x0;_0x3cb730--)(_0x2b1cab=_0x2fcd8a[_0x3cb730])&&(_0x12fa36=(_0x3d7989?_0x2b1cab(_0x5e86a5,_0x1b76ff,_0x12fa36):_0x2b1cab(_0x12fa36))||_0x12fa36);return _0x3d7989&&_0x12fa36&&_0x3069e9(_0x5e86a5,_0x1b76ff,_0x12fa36),_0x12fa36;},_0x5a7a3c=(_0x1bcf45,_0x30be0e)=>(_0x4617a6,_0x201fa7)=>_0x30be0e(_0x4617a6,_0x201fa7,_0x1bcf45),_0x28f044=(_0x5587c1=>(_0x5587c1[_0x5587c1[_0x1000c0(0x2f4)]=0x0]=_0x1000c0(0x2f4),_0x5587c1[_0x5587c1['JOINING']=0x1]='JOINING',_0x5587c1[_0x5587c1['OFFLINE']=0x2]='OFFLINE',_0x5587c1[_0x5587c1[_0x1000c0(0x243)]=0x3]=_0x1000c0(0x243),_0x5587c1))(_0x28f044||{});_0x322d5b[_0x1000c0(0x2f0)]=class extends _0x592d59[_0x1000c0(0x2cd)]{constructor(_0x22a673,_0x274de5,_0x3aea77,_0x11fcce,_0x527b9f,_0x1ff23f,_0x5dddc6,_0x1d6b38,_0x7e4b47){const _0x1ec8b1=_0x1000c0;super(),_0x40dfd7(this,_0x1ec8b1(0x44d),new _0x3c7a49[(_0x1ec8b1(0x35f))](0x0)),_0x40dfd7(this,_0x1ec8b1(0x2e0),this['_sessionStatus$']['asObservable']()),_0x40dfd7(this,_0x1ec8b1(0x30c),new _0x3c7a49[(_0x1ec8b1(0x33b))]()),_0x40dfd7(this,_0x1ec8b1(0x253),this['_event$'][_0x1ec8b1(0x32c)]()),_0x40dfd7(this,_0x1ec8b1(0x374)),_0x40dfd7(this,_0x1ec8b1(0x16b)),_0x40dfd7(this,'_collaborationTimeoutTimer'),(this[_0x1ec8b1(0x2df)]=_0x22a673,this[_0x1ec8b1(0x195)]=_0x3aea77,this[_0x1ec8b1(0x265)]=_0x11fcce,this[_0x1ec8b1(0x4ca)]=_0x527b9f,this['_configService']=_0x1ff23f,this['_localeService']=_0x5dddc6,this[_0x1ec8b1(0x29e)]=_0x1d6b38,this[_0x1ec8b1(0x318)]=_0x7e4b47,_0x274de5['pipe'](_0x39f29f[_0x1ec8b1(0x3ca)](this['dispose$']))[_0x1ec8b1(0x42f)](_0x40f0bb=>{const _0x5c0a96=_0x1ec8b1;var _0x1d5f74;typeof _0x40f0bb>'u'||(this['_socket']=_0x40f0bb,_0x40f0bb?(this['_joinRoom'](_0x40f0bb),this[_0x5c0a96(0x16b)]=this[_0x5c0a96(0x374)][_0x5c0a96(0x31f)][_0x5c0a96(0x42f)](_0x17c575=>{const _0x5e9e5d=_0x5c0a96;_0x17c575[_0x5e9e5d(0x472)]===this[_0x5e9e5d(0x2df)]&&this[_0x5e9e5d(0x429)](_0x17c575);})):(this[_0x5c0a96(0x44d)][_0x5c0a96(0x117)](0x2),(_0x1d5f74=this[_0x5c0a96(0x16b)])==null||_0x1d5f74[_0x5c0a96(0x22b)](),this[_0x5c0a96(0x16b)]=null));}),this['disposeWithMe'](this[_0x1ec8b1(0x265)][_0x1ec8b1(0x181)](()=>{const _0x341be2=_0x1ec8b1;var _0x2bf44f;(_0x2bf44f=this[_0x341be2(0x374)])==null||_0x2bf44f[_0x341be2(0x16a)]({'cmd':_0x2f9f5b[_0x341be2(0xf7)],'data':{'roomID':this[_0x341be2(0x2df)]}});})));}get[_0x1000c0(0x22e)](){const _0x224090=_0x1000c0;return this[_0x224090(0x44d)]['getValue']();}[_0x1000c0(0x35c)](){const _0x7febe2=_0x1000c0;var _0x21eb2c,_0x4a34cc;return(_0x4a34cc=(_0x21eb2c=this['_socket'])==null?void 0x0:_0x21eb2c[_0x7febe2(0x4aa)])!=null?_0x4a34cc:null;}[_0x1000c0(0x36f)](){const _0x325f81=_0x1000c0;super[_0x325f81(0x36f)](),this[_0x325f81(0x338)][_0x325f81(0x117)](),this[_0x325f81(0x338)][_0x325f81(0x4b5)]();}['_onCombEvent'](_0x155e55){const _0x535909=_0x1000c0;_0x155e55[_0x535909(0x28c)]===_0x2f9f5b['JOIN']?this[_0x535909(0x2f5)](_0x155e55):_0x155e55[_0x535909(0x28c)]===_0x2f9f5b[_0x535909(0x2ff)]&&this[_0x535909(0x124)](_0x155e55);}[_0x1000c0(0x44c)](_0x2aaca3){const _0xb2e7e6=_0x1000c0;this[_0xb2e7e6(0x44d)][_0xb2e7e6(0x117)](0x1),_0x2aaca3[_0xb2e7e6(0x16a)]({'cmd':_0x2f9f5b[_0xb2e7e6(0x241)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x1000c0(0x2f5)](_0x4dbb65){const _0x71d0f=_0x1000c0;var _0x1b6f73;if(_0x4dbb65[_0x71d0f(0x418)]===_0x282d51[_0x71d0f(0x27d)]){this[_0x71d0f(0x4ca)][_0x71d0f(0x2eb)]({'type':_0x5063fc[_0x71d0f(0x3f4)][_0x71d0f(0x173)],'content':this['_localeService']['t']('session.room-full')}),this[_0x71d0f(0x44d)][_0x71d0f(0x117)](0x2);return;}this[_0x71d0f(0x44d)][_0x71d0f(0x117)](0x3);const _0x5c0f3a=(_0x1b6f73=_0x4dbb65[_0x71d0f(0x314)]['roomInfos'][this[_0x71d0f(0x2df)]])==null?void 0x0:_0x1b6f73['members'];_0x5c0f3a&&_0x5c0f3a['forEach'](_0x2c0483=>this[_0x71d0f(0x29e)][_0x71d0f(0x262)](this[_0x71d0f(0x2df)],_0x2c0483));}[_0x1000c0(0x124)](_0x12a4b3){const _0x1045b8=_0x1000c0;try{const _0x760ba4=_0x12a4b3[_0x1045b8(0x314)];switch(_0x760ba4[_0x1045b8(0x263)]){case _0x1f6364[_0x1045b8(0x159)][_0x1045b8(0x296)]:this[_0x1045b8(0x42a)](_0x760ba4),this[_0x1045b8(0x30c)][_0x1045b8(0x117)](_0x760ba4);break;case _0x1f6364['CollaborationEvent'][_0x1045b8(0x133)]:this[_0x1045b8(0x162)](_0x760ba4),this[_0x1045b8(0x30c)][_0x1045b8(0x117)](_0x760ba4);break;case _0x1f6364[_0x1045b8(0x159)][_0x1045b8(0x1d5)]:this[_0x1045b8(0x114)](),this[_0x1045b8(0x30c)][_0x1045b8(0x117)](_0x760ba4);break;case _0x1f6364[_0x1045b8(0x159)][_0x1045b8(0x18d)]:this[_0x1045b8(0x195)][_0x1045b8(0x343)](_0x1045b8(0x250)+JSON[_0x1045b8(0x199)](_0x760ba4)),this[_0x1045b8(0x30c)][_0x1045b8(0x117)](_0x760ba4);break;case _0x1f6364['CollaborationEvent'][_0x1045b8(0x331)]:this[_0x1045b8(0x318)][_0x1045b8(0x26d)](_0x760ba4[_0x1045b8(0x314)]),this[_0x1045b8(0x30c)]['next'](_0x760ba4);break;default:this[_0x1045b8(0x30c)][_0x1045b8(0x117)](_0x760ba4);}}catch(_0x4b6a40){this['_logService'][_0x1045b8(0x343)](_0x4b6a40,_0x12a4b3);}}[_0x1000c0(0x42a)](_0x31ce20){const _0x37289d=_0x1000c0;this['_memberService'][_0x37289d(0x262)](this[_0x37289d(0x2df)],_0x31ce20[_0x37289d(0x314)]);}[_0x1000c0(0x162)](_0x18a5f7){const _0x34dbe3=_0x1000c0;this[_0x34dbe3(0x29e)][_0x34dbe3(0x455)](this['_unitID'],_0x18a5f7[_0x34dbe3(0x314)][_0x34dbe3(0x4aa)]);}async[_0x1000c0(0x16a)](_0x5d226d,_0x20c219){const _0x5b35f8=_0x1000c0;if(this['sessionStatus']!==0x3||!this[_0x5b35f8(0x374)])throw new Error(_0x5b35f8(0x35e));try{_0x5d226d[_0x5b35f8(0x263)]===_0x1f6364['CollaborationEvent'][_0x5b35f8(0x274)]&&this[_0x5b35f8(0x16e)](),this['_socket'][_0x5b35f8(0x16a)]({'cmd':_0x2f9f5b[_0x5b35f8(0x139)],'routeKey':_0x20c219,'routeType':'','data':_0x5d226d});}catch(_0x151808){this[_0x5b35f8(0x195)][_0x5b35f8(0x343)](_0x151808);}}[_0x1000c0(0x16e)](){const _0x1ebbd1=_0x1000c0;var _0x249c71;this[_0x1ebbd1(0x30a)]=window[_0x1ebbd1(0x3c2)](()=>{const _0x1e1fb9=_0x1ebbd1;this['_collaborationTimeoutTimer']=null,this[_0x1e1fb9(0x4ca)]['show']({'type':_0x5063fc[_0x1e1fb9(0x3f4)][_0x1e1fb9(0x447)],'content':this['_localeService']['t'](_0x1e1fb9(0x4b4))});},(_0x249c71=this[_0x1ebbd1(0x230)][_0x1ebbd1(0x393)](_0x22e7f5))!=null?_0x249c71:0x2710);}['_clearCollaborationTimeoutTimer'](){const _0x479e67=_0x1000c0;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x479e67(0x30a)]),this[_0x479e67(0x30a)]=null);}},_0x322d5b[_0x1000c0(0x2f0)]=_0x3583d0([_0x5a7a3c(0x2,_0x592d59[_0x1000c0(0x1ef)]),_0x5a7a3c(0x3,_0x2c52d3[_0x1000c0(0x1dc)]),_0x5a7a3c(0x4,_0x2c52d3[_0x1000c0(0x411)]),_0x5a7a3c(0x5,_0x592d59[_0x1000c0(0x41f)]),_0x5a7a3c(0x6,_0x1ea985[_0x1000c0(0x368)](_0x592d59['LocaleService'])),_0x5a7a3c(0x7,_0x1ea985['Inject'](_0x2539c6)),_0x5a7a3c(0x8,_0x1ea985[_0x1000c0(0x368)](_0x3c2f54))],_0x322d5b['CollaborationSession']),_0x322d5b['CollaborationSessionService']=class extends _0x592d59[_0x1000c0(0x450)]{constructor(_0xa0e42f,_0x297663,_0x513f2a,_0x489465,_0x2e6506,_0x1e5d3f){const _0x61e6d8=_0x1000c0;super(),_0x40dfd7(this,_0x61e6d8(0x123),new _0x3c7a49[(_0x61e6d8(0x35f))](void 0x0)),_0x40dfd7(this,_0x61e6d8(0x417),new Map()),_0x40dfd7(this,_0x61e6d8(0x317),new _0x3c7a49[(_0x61e6d8(0x35f))](0x0)),_0x40dfd7(this,_0x61e6d8(0x3a0),this[_0x61e6d8(0x317)][_0x61e6d8(0x32c)]()),_0x40dfd7(this,_0x61e6d8(0x4a7),!0x1),_0x40dfd7(this,_0x61e6d8(0x18b)),_0x40dfd7(this,_0x61e6d8(0x2f7)),_0x40dfd7(this,'_retryConnectingTimer'),_0x40dfd7(this,_0x61e6d8(0x375),0x0),(this[_0x61e6d8(0x27f)]=_0xa0e42f,this[_0x61e6d8(0x2a1)]=_0x297663,this['_messageService']=_0x513f2a,this['_logService']=_0x489465,this[_0x61e6d8(0x230)]=_0x2e6506,this[_0x61e6d8(0x27b)]=_0x1e5d3f);}get['_socket'](){return this['_socket$']['getValue']();}['dispose'](){const _0x5a8a20=_0x1000c0;super[_0x5a8a20(0x36f)](),this[_0x5a8a20(0x417)][_0x5a8a20(0x24b)](_0x4ed91d=>_0x4ed91d[_0x5a8a20(0x36f)]()),this[_0x5a8a20(0x417)]['clear'](),this[_0x5a8a20(0x317)][_0x5a8a20(0x4b5)]();}async[_0x1000c0(0x1c2)](_0x3dd15c){const _0x1ac435=_0x1000c0;if(this['_sessions'][_0x1ac435(0x321)](_0x3dd15c))return this['_sessions']['get'](_0x3dd15c);this[_0x1ac435(0x495)]();const _0x3505df=this['_injector']['createInstance'](_0x322d5b[_0x1ac435(0x2f0)],_0x3dd15c,this['_socket$']['asObservable']());return this[_0x1ac435(0x417)][_0x1ac435(0x4c2)](_0x3dd15c,_0x3505df),_0x3505df;}[_0x1000c0(0x36c)](){const _0x1af4e5=_0x1000c0;var _0x362719;const _0x4026e9=(_0x362719=this[_0x1af4e5(0x230)]['getConfig'](_0x1ed340))!=null?_0x362719:_0x3a2870;return this[_0x1af4e5(0x27b)][_0x1af4e5(0x25d)](_0x4026e9);}[_0x1000c0(0x495)](){const _0x28c367=_0x1000c0;try{const _0x307d8f=this[_0x28c367(0x36c)]();if(_0x307d8f){const _0x20ecf9=_0x307d8f['send'];_0x307d8f[_0x28c367(0x16a)]=_0x2b4b23=>(this['_rescheduleHeartbeatEvent'](),_0x20ecf9[_0x28c367(0x3f2)](_0x307d8f,[_0x2b4b23])),_0x307d8f[_0x28c367(0x31f)][_0x28c367(0x42f)](_0x1bbeda=>this['_onMessage'](_0x307d8f,_0x1bbeda)),_0x307d8f[_0x28c367(0x3fb)][_0x28c367(0x161)](_0x39f29f[_0x28c367(0x13a)](0x1))['subscribe'](_0x19ab82=>this[_0x28c367(0x195)][_0x28c367(0x343)](_0x28c367(0x405),_0x19ab82)),_0x307d8f['open$'][_0x28c367(0x161)](_0x39f29f['take'](0x1))[_0x28c367(0x42f)](()=>{const _0x3462bd=_0x28c367;this[_0x3462bd(0x386)](_0x307d8f);}),_0x307d8f['close$'][_0x28c367(0x161)](_0x39f29f[_0x28c367(0x13a)](0x1))[_0x28c367(0x42f)](_0x2c4e9e=>{const _0x4a66e0=_0x28c367;this[_0x4a66e0(0x195)][_0x4a66e0(0x384)](_0x4a66e0(0x491),_0x4a66e0(0x41c),_0x2c4e9e),this[_0x4a66e0(0x357)]();});}}catch(_0x429764){this['_logService']['error'](_0x429764),this['_onConnectionFailed']();}}[_0x1000c0(0x386)](_0x228002){const _0x13d05e=_0x1000c0;this[_0x13d05e(0x195)][_0x13d05e(0x384)](_0x13d05e(0x491),_0x13d05e(0x336)),_0x228002[_0x13d05e(0x16a)]({'cmd':_0x2f9f5b['HELLO']}),this[_0x13d05e(0x373)]();}['_onConnectionFailed'](){const _0x1cdddf=_0x1000c0;var _0x40343f;this[_0x1cdddf(0x317)][_0x1cdddf(0x117)](0x2),this['_socket$']['next'](null),this[_0x1cdddf(0x428)](),this[_0x1cdddf(0x2f3)](),this[_0x1cdddf(0x4a7)]=!0x1,this[_0x1cdddf(0x375)]<((_0x40343f=this['_configService'][_0x1cdddf(0x393)](_0x966ced))!=null?_0x40343f:0x3)?(this[_0x1cdddf(0x3f9)](this[_0x1cdddf(0x375)]),this[_0x1cdddf(0x375)]+=0x1):this[_0x1cdddf(0x4ca)][_0x1cdddf(0x2eb)]({'type':_0x5063fc[_0x1cdddf(0x3f4)]['Error'],'content':this['_localeService']['t'](_0x1cdddf(0x28d))});}[_0x1000c0(0x3f9)](_0xf84315){const _0xacf2e6=_0x1000c0;var _0x310e0c;const _0x13a962=((_0x310e0c=this[_0xacf2e6(0x230)][_0xacf2e6(0x393)](_0x58522e))!=null?_0x310e0c:0x4e20)*0x2**_0xf84315;this[_0xacf2e6(0x4ca)]['show']({'type':_0x5063fc[_0xacf2e6(0x3f4)]['Warning'],'content':this[_0xacf2e6(0x2a1)]['t'](_0xacf2e6(0x4d7))}),this[_0xacf2e6(0x410)]=setTimeout(()=>{const _0xbdbf2a=_0xacf2e6;this['_tryEnsureSocket'](),clearTimeout(this[_0xbdbf2a(0x410)]),this['_retryConnectingTimer']=null;},_0x13a962);}['_rescheduleHeartbeatEvent'](){const _0x1fc3ee=_0x1000c0;var _0xf8c5c8;this[_0x1fc3ee(0x2f3)](),this[_0x1fc3ee(0x18b)]=setTimeout(()=>this['_sendHeartbeat'](),(_0xf8c5c8=this[_0x1fc3ee(0x230)][_0x1fc3ee(0x393)](_0x415ece))!=null?_0xf8c5c8:0x7530);}[_0x1000c0(0x10d)](){const _0x47d58f=_0x1000c0;this['_socket'][_0x47d58f(0x16a)]({'cmd':_0x2f9f5b[_0x47d58f(0x3a6)]}),this[_0x47d58f(0x102)]();}[_0x1000c0(0x102)](){const _0x385a3a=_0x1000c0;var _0x29ab23;this[_0x385a3a(0x2f7)]=setTimeout(()=>this[_0x385a3a(0x357)](),(_0x29ab23=this['_configService'][_0x385a3a(0x393)](_0x22e7f5))!=null?_0x29ab23:0x2710);}[_0x1000c0(0x2cc)](_0x3303de,_0x1b89c7){const _0x33e458=_0x1000c0,{cmd:_0x2d75bf}=_0x1b89c7;_0x2d75bf===_0x2f9f5b[_0x33e458(0x3a9)]&&!this[_0x33e458(0x4a7)]&&(_0x3303de['memberID']=_0x1b89c7[_0x33e458(0x314)][_0x33e458(0x4aa)],this[_0x33e458(0x123)][_0x33e458(0x117)](_0x3303de),this[_0x33e458(0x317)][_0x33e458(0x117)](0x3),this[_0x33e458(0x4a7)]=!0x0),_0x2d75bf===_0x2f9f5b[_0x33e458(0x3a6)]&&this[_0x33e458(0x428)](),this[_0x33e458(0x373)]();}[_0x1000c0(0x2f3)](){const _0x5d568d=_0x1000c0;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x5d568d(0x18b)]),this['_sendHeartbeatTimer']=null);}[_0x1000c0(0x428)](){const _0xd4cc98=_0x1000c0;this['_timeoutTimer']!=null&&(clearTimeout(this[_0xd4cc98(0x2f7)]),this[_0xd4cc98(0x2f7)]=null);}},_0x322d5b[_0x1000c0(0x272)]=_0x3583d0([_0x5a7a3c(0x0,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x5a7a3c(0x1,_0x1ea985[_0x1000c0(0x368)](_0x592d59['LocaleService'])),_0x5a7a3c(0x2,_0x2c52d3[_0x1000c0(0x411)]),_0x5a7a3c(0x3,_0x592d59['ILogService']),_0x5a7a3c(0x4,_0x592d59[_0x1000c0(0x41f)]),_0x5a7a3c(0x5,_0x81d796)],_0x322d5b[_0x1000c0(0x272)]);var _0x15128c=Object[_0x1000c0(0x1a1)],_0x586e99=Object['getOwnPropertyDescriptor'],_0x5d7204=(_0x4a5a96,_0x5d5ece,_0x17b0d8,_0x170a34)=>{const _0x1f7309=_0x1000c0;for(var _0x1d4c64=_0x170a34>0x1?void 0x0:_0x170a34?_0x586e99(_0x5d5ece,_0x17b0d8):_0x5d5ece,_0x3a92e1=_0x4a5a96[_0x1f7309(0x1d8)]-0x1,_0x2d5dfd;_0x3a92e1>=0x0;_0x3a92e1--)(_0x2d5dfd=_0x4a5a96[_0x3a92e1])&&(_0x1d4c64=(_0x170a34?_0x2d5dfd(_0x5d5ece,_0x17b0d8,_0x1d4c64):_0x2d5dfd(_0x1d4c64))||_0x1d4c64);return _0x170a34&&_0x1d4c64&&_0x15128c(_0x5d5ece,_0x17b0d8,_0x1d4c64),_0x1d4c64;},_0x1bda07=(_0x3ce9dc,_0x5be1ff)=>(_0x26e46b,_0x11b1f2)=>_0x5be1ff(_0x26e46b,_0x11b1f2,_0x3ce9dc);_0x322d5b[_0x1000c0(0x24c)]=class extends _0x592d59['Disposable']{constructor(_0x397541,_0x4a8ecc,_0x1db94e,_0x3fd105,_0x5a7255){const _0x1df076=_0x1000c0;super(),_0x40dfd7(this,'_cachedData',new Map()),_0x40dfd7(this,_0x1df076(0x2ca),new Map()),_0x40dfd7(this,_0x1df076(0x28f),!0x1),(this[_0x1df076(0x230)]=_0x397541,this['_localStorageService']=_0x4a8ecc,this[_0x1df076(0x265)]=_0x1db94e,this[_0x1df076(0x2a1)]=_0x3fd105,this[_0x1df076(0x1e0)]=_0x5a7255,this['_setupBeforeClosingHandler']());}[_0x1000c0(0x3e8)](){const _0x4b0458=_0x1000c0;this[_0x4b0458(0x28f)]=!0x0;}[_0x1000c0(0x327)](){const _0x3ebed9=_0x1000c0;this[_0x3ebed9(0x28f)]=!0x1;}[_0x1000c0(0x36f)](){const _0x1a1832=_0x1000c0;this['_exhaustSavingTask']()[_0x1a1832(0x441)](()=>super[_0x1a1832(0x36f)]());}async[_0x1000c0(0x239)](_0xa42432){const _0x3de782=_0x1000c0;return this[_0x3de782(0x28f)]?null:this['_localStorageService'][_0x3de782(0x19d)](_0x2e8bda(_0xa42432));}async[_0x1000c0(0x456)](_0x105d5e,_0x4be2bd){return!!this['_localStorageService']['setItem'](_0x105d5e,_0x4be2bd);}[_0x1000c0(0x3cb)](_0x35f34e,_0x121d89,_0xfbd450,_0x4d1c97){const _0x159ffd=_0x1000c0,_0x4fb3f1=this[_0x159ffd(0x1e0)]['getCurrentRevForDocument'](_0x35f34e);this[_0x159ffd(0x1e3)][_0x159ffd(0x4c2)](_0x35f34e,{'unitID':_0x35f34e,'type':_0x121d89,'awaitingChangeset':_0xfbd450,'mutations':_0x4d1c97,'rev':_0x4fb3f1}),this[_0x159ffd(0x2ca)][_0x159ffd(0x321)](_0x35f34e)||this[_0x159ffd(0xfd)](_0x35f34e);}['_scheduleSaving'](_0x1ebde6){const _0x13d528=_0x1000c0,_0x5975c1=this[_0x13d528(0x366)]();_0x5975c1===0x0?this[_0x13d528(0x152)](_0x1ebde6):this[_0x13d528(0x2ca)][_0x13d528(0x4c2)](_0x1ebde6,setTimeout(()=>this[_0x13d528(0x152)](_0x1ebde6),_0x5975c1));}[_0x1000c0(0x366)](){const _0x24d9c7=_0x1000c0;var _0x53d52d;return(_0x53d52d=this[_0x24d9c7(0x230)][_0x24d9c7(0x393)](_0x5cb089))!=null?_0x53d52d:0x3e8;}[_0x1000c0(0x152)](_0x85107d){const _0x13d84e=_0x1000c0,_0x152462=this[_0x13d84e(0x2ca)][_0x13d84e(0x1de)](_0x85107d);return _0x152462!==void 0x0&&window[_0x13d84e(0x451)](_0x152462),this[_0x13d84e(0x218)][_0x13d84e(0x10b)](_0x2e8bda(_0x85107d),this[_0x13d84e(0x1e3)][_0x13d84e(0x1de)](_0x85107d))[_0x13d84e(0x441)](()=>this['_saveTaskMap']['delete'](_0x85107d));}async[_0x1000c0(0x31a)](){const _0x3bdfe2=_0x1000c0,_0x58bc81=[];this['_saveTaskMap'][_0x3bdfe2(0x24b)]((_0x2bc0d3,_0x5da740)=>{const _0x1c05d6=_0x3bdfe2;window[_0x1c05d6(0x451)](_0x2bc0d3),_0x58bc81[_0x1c05d6(0x1a6)](this[_0x1c05d6(0x152)](_0x5da740)['then'](()=>{const _0xf42207=_0x1c05d6;this[_0xf42207(0x2ca)]['delete'](_0x5da740);}));}),await Promise[_0x3bdfe2(0x3a5)](_0x58bc81);}[_0x1000c0(0x46b)](){const _0x514551=_0x1000c0;this['disposeWithMe'](this[_0x514551(0x265)][_0x514551(0x467)](()=>{const _0x478990=_0x514551;if(this['_saveTaskMap']['size'])return this[_0x478990(0x2a1)]['t'](_0x478990(0x408));}));}},_0x322d5b[_0x1000c0(0x24c)]=_0x5d7204([_0x1bda07(0x0,_0x592d59[_0x1000c0(0x41f)]),_0x1bda07(0x1,_0x592d59[_0x1000c0(0x17a)]),_0x1bda07(0x2,_0x2c52d3['IBeforeCloseService']),_0x1bda07(0x3,_0x1ea985['Inject'](_0x592d59[_0x1000c0(0x279)])),_0x1bda07(0x4,_0x1ea985[_0x1000c0(0x368)](_0x1f6364['RevisionService']))],_0x322d5b[_0x1000c0(0x24c)]);function _0x2e8bda(_0x290901){const _0xe4628d=_0x1000c0;return _0xe4628d(0x4d9)+_0x290901;}const _0x1572dd=_0x1ea985[_0x1000c0(0x13b)](_0x1000c0(0x240));var _0x23c43c=(_0x2d0cc6=>(_0x2d0cc6[_0x2d0cc6[_0x1000c0(0x46e)]=0x0]=_0x1000c0(0x46e),_0x2d0cc6[_0x2d0cc6['OTHER_CLIENTS_EDITING']=0x1]=_0x1000c0(0x105),_0x2d0cc6))(_0x23c43c||{});const _0x46cdfb=0x7530,_0x476b1a=_0x1000c0(0x2fe);class _0x24ef9a extends _0x592d59['Disposable']{constructor(){const _0x33e13c=_0x1000c0;super(),_0x40dfd7(this,_0x33e13c(0x425),_0x592d59['Tools']['generateRandomId']()),_0x40dfd7(this,_0x33e13c(0x286),new Set()),_0x40dfd7(this,_0x33e13c(0x1fb),new Map()),_0x40dfd7(this,'_heartbeatTimer',null),_0x40dfd7(this,_0x33e13c(0x226),new Map()),_0x40dfd7(this,_0x33e13c(0x25f),new Map()),this[_0x33e13c(0x224)]();}[_0x1000c0(0x36f)](){const _0x3f26a2=_0x1000c0;super[_0x3f26a2(0x36f)](),this[_0x3f26a2(0x226)][_0x3f26a2(0x24b)]((_0x43c05c,_0x2a1872)=>this[_0x3f26a2(0x1b1)](_0x2a1872)),this[_0x3f26a2(0x40a)]&&window[_0x3f26a2(0x2c9)](this[_0x3f26a2(0x40a)]);}[_0x1000c0(0x1a5)](_0x5d4afc){const _0x297a2a=_0x1000c0;return this[_0x297a2a(0x1f3)](_0x5d4afc)['pipe'](_0x3c7a49[_0x297a2a(0x1cf)]());}[_0x1000c0(0x4ac)](_0x125de8){const _0x2f2874=_0x1000c0;this['_selfUnitIDs'][_0x2f2874(0x237)]===0x0&&this[_0x2f2874(0x490)](),this[_0x2f2874(0x286)][_0x2f2874(0x290)](_0x125de8),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x125de8],'isForwarded':!0x1});}[_0x1000c0(0x2de)](_0x2db8e6){const _0x40f8c4=_0x1000c0;this[_0x40f8c4(0x286)][_0x40f8c4(0x234)](_0x2db8e6),this['_selfUnitIDs'][_0x40f8c4(0x237)]===0x0&&this['_heartbeatTimer']&&window[_0x40f8c4(0x2c9)](this[_0x40f8c4(0x40a)]);}[_0x1000c0(0x224)](){const _0x3ff6f6=_0x1000c0;this[_0x3ff6f6(0x215)](_0x592d59[_0x3ff6f6(0x29f)](_0x3c7a49[_0x3ff6f6(0x43a)](window,'storage')[_0x3ff6f6(0x42f)](_0x5befbc=>{const _0x34d850=_0x3ff6f6;if(_0x5befbc['key']!==_0x476b1a||!_0x5befbc[_0x34d850(0x39c)])return;const _0x3253ac=JSON[_0x34d850(0x281)](_0x5befbc[_0x34d850(0x39c)]);this[_0x34d850(0x352)](_0x3253ac);}))),window[_0x3ff6f6(0x46c)](_0x3ff6f6(0x182),()=>this['_send']({'type':0x1,'memberID':this[_0x3ff6f6(0x425)],'unitIDs':Array[_0x3ff6f6(0x485)](this[_0x3ff6f6(0x286)])}));}[_0x1000c0(0x352)](_0x29c763){const _0x20a233=_0x1000c0;switch(_0x29c763[_0x20a233(0x49b)]){case 0x0:this['_handleJoinEvent'](_0x29c763);break;case 0x1:this[_0x20a233(0x2ef)](_0x29c763);break;case 0x2:this[_0x20a233(0x252)](_0x29c763);break;}}[_0x1000c0(0x2b3)](_0xce7531){const _0x4818b9=_0x1000c0,{unitIDs:_0x529d8e,memberID:_0xe6d3c5,isForwarded:_0x406d72}=_0xce7531;_0x529d8e['forEach'](_0x53d0e4=>{const _0x362973=_0x492d;if(!_0x406d72&&this[_0x362973(0x1fb)][_0x362973(0x321)](_0x53d0e4)&&this[_0x362973(0x1f3)](_0x53d0e4)[_0x362973(0x117)](0x1),!this[_0x362973(0x1fb)][_0x362973(0x321)](_0x53d0e4)||!this[_0x362973(0x1fb)][_0x362973(0x1de)](_0x53d0e4)[_0x362973(0x321)](_0xe6d3c5)){const _0x53c1b1=this['_unitOnClients'][_0x362973(0x1de)](_0x53d0e4)||new Set();_0x53c1b1[_0x362973(0x290)](_0xe6d3c5),this['_unitOnClients'][_0x362973(0x4c2)](_0x53d0e4,_0x53c1b1),this[_0x362973(0x2ab)](_0xe6d3c5);}}),_0x406d72||this['_send']({'type':0x0,'memberID':this[_0x4818b9(0x425)],'unitIDs':[...this[_0x4818b9(0x286)]],'isForwarded':!0x0});}[_0x1000c0(0x2ab)](_0x54c13c){const _0x1ad75f=_0x1000c0;this['_removeClearOtherTimer'](_0x54c13c);const _0x2a2bd4=window['setTimeout'](()=>{const _0x5ed504=_0x492d;this[_0x5ed504(0x1fb)]['forEach'](_0x21f7de=>{const _0x40024f=_0x5ed504;_0x21f7de[_0x40024f(0x234)](_0x54c13c);});},_0x46cdfb*0x2);this[_0x1ad75f(0x226)]['set'](_0x54c13c,_0x2a2bd4);}['_removeClearOtherTimer'](_0x5650db){const _0x27669f=_0x1000c0;if(this['_clearOtherTimers'][_0x27669f(0x321)](_0x5650db)){const _0xf1831b=this[_0x27669f(0x226)]['get'](_0x5650db);_0xf1831b&&window['clearTimeout'](_0xf1831b),this['_clearOtherTimers'][_0x27669f(0x4c2)](_0x5650db,null);}}[_0x1000c0(0x2ef)](_0x1bd5e5){const _0xbae0fc=_0x1000c0,{memberID:_0x4826e8,unitIDs:_0x4cb7b0}=_0x1bd5e5;_0x4cb7b0[_0xbae0fc(0x24b)](_0x39b783=>{const _0x42d6d6=_0xbae0fc;var _0x4d7e62;const _0x170a4c=this[_0x42d6d6(0x1fb)]['get'](_0x39b783);_0x170a4c&&(_0x170a4c[_0x42d6d6(0x234)](_0x4826e8),(_0x4d7e62=this[_0x42d6d6(0x1f3)](_0x39b783))==null||_0x4d7e62[_0x42d6d6(0x117)](_0x170a4c[_0x42d6d6(0x237)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x4826e8);}[_0x1000c0(0x252)](_0x2e9d2b){const _0x5b1dc8=_0x1000c0;this[_0x5b1dc8(0x2ab)](_0x2e9d2b[_0x5b1dc8(0x4aa)]);}[_0x1000c0(0x2b0)](_0x203e8a){const _0x2f1ca0=_0x1000c0;localStorage[_0x2f1ca0(0x10b)](_0x476b1a,JSON[_0x2f1ca0(0x199)](_0x203e8a));}[_0x1000c0(0x490)](){const _0x10a915=_0x1000c0;this[_0x10a915(0x40a)]=window[_0x10a915(0x232)](()=>{const _0x4eae39=_0x10a915;this[_0x4eae39(0x2b0)]({'type':0x2,'memberID':this[_0x4eae39(0x425)]});},_0x46cdfb);}[_0x1000c0(0x1f3)](_0x36ff1d){const _0x310f61=_0x1000c0;return this[_0x310f61(0x25f)][_0x310f61(0x321)](_0x36ff1d)||this[_0x310f61(0x25f)][_0x310f61(0x4c2)](_0x36ff1d,new _0x3c7a49[(_0x310f61(0x35f))](0x0)),this[_0x310f61(0x25f)][_0x310f61(0x1de)](_0x36ff1d);}}var _0x140eab=Object['defineProperty'],_0x4843fb=Object[_0x1000c0(0x2d4)],_0x1ffda1=(_0x3660cd,_0x50de7e,_0x4108de,_0x4e6f47)=>{const _0x235f36=_0x1000c0;for(var _0x6e54ab=_0x4e6f47>0x1?void 0x0:_0x4e6f47?_0x4843fb(_0x50de7e,_0x4108de):_0x50de7e,_0x597373=_0x3660cd[_0x235f36(0x1d8)]-0x1,_0x5164ec;_0x597373>=0x0;_0x597373--)(_0x5164ec=_0x3660cd[_0x597373])&&(_0x6e54ab=(_0x4e6f47?_0x5164ec(_0x50de7e,_0x4108de,_0x6e54ab):_0x5164ec(_0x6e54ab))||_0x6e54ab);return _0x4e6f47&&_0x6e54ab&&_0x140eab(_0x50de7e,_0x4108de,_0x6e54ab),_0x6e54ab;},_0x3afcaf=(_0x12e9ee,_0x37e4bd)=>(_0x5207f2,_0x1f5535)=>_0x37e4bd(_0x5207f2,_0x1f5535,_0x12e9ee);let _0x38f511=class{constructor(_0x56a252,_0x6e38d0){const _0x41dcc1=_0x1000c0;this['_injector']=_0x56a252,this[_0x41dcc1(0x258)]=_0x6e38d0;}['transformIMECache'](_0x354de5){const _0x16be5b=_0x1000c0;this[_0x16be5b(0x13f)](_0x354de5),this[_0x16be5b(0x20c)](_0x354de5);}[_0x1000c0(0x322)](_0x5df327){const _0x173375=_0x1000c0,_0x3251c0=this[_0x173375(0x27f)][_0x173375(0x1de)](_0x30cc49[_0x173375(0x33e)]),{redoCache:_0x24107b}=_0x3251c0[_0x173375(0x326)]();if(_0x24107b[_0x173375(0x1d8)]===0x0)return _0x5df327;let _0x1b706c=_0x592d59[_0x173375(0x33a)][_0x173375(0x2c5)](_0x5df327[_0x173375(0x122)][0x0]);for(let _0x567ad1=0x0;_0x567ad1<_0x24107b[_0x173375(0x1d8)];_0x567ad1++){const _0x22f4bf={'id':_0x173375(0x236),'params':{..._0x24107b[_0x567ad1]}},_0x119652=this[_0x173375(0x258)][_0x173375(0x2aa)](_0x1b706c,_0x22f4bf,!0x1);if(_0x1f6364[_0x173375(0x423)](_0x119652))throw _0x119652[_0x173375(0x343)];_0x1b706c=_0x119652[_0x173375(0x49c)];}return{..._0x592d59[_0x173375(0x33a)][_0x173375(0x2c5)](_0x5df327),'mutations':[_0x1b706c]};}[_0x1000c0(0x13f)](_0x15389e){const _0x30f44f=_0x1000c0,_0x4225f8=this[_0x30f44f(0x27f)]['get'](_0x30cc49[_0x30f44f(0x33e)]),{undoCache:_0x1192d7,redoCache:_0x4c198f}=_0x4225f8['getUndoRedoMutationParamsCache']();if(_0x1192d7['length']===0x0||_0x4c198f[_0x30f44f(0x1d8)]===0x0)return;const _0x28ac2f=[],_0x235fe3=[];let _0x5523f0=_0x592d59[_0x30f44f(0x33a)]['deepClone'](_0x15389e[_0x30f44f(0x122)][0x0]),_0x4b6f97=_0x592d59['Tools'][_0x30f44f(0x2c5)](_0x15389e[_0x30f44f(0x122)][0x0]);for(let _0x28b8b6=_0x1192d7[_0x30f44f(0x1d8)]-0x1;_0x28b8b6>=0x0;_0x28b8b6--){const _0x158061={'id':'doc.mutation.rich-text-editing','params':{..._0x1192d7[_0x28b8b6]}},_0x1715e5={'id':_0x30f44f(0x236),'params':{..._0x4c198f[_0x28b8b6]}},_0x3e940a=this[_0x30f44f(0x258)][_0x30f44f(0x2aa)](_0x5523f0,_0x158061,!0x1),_0x307369=this[_0x30f44f(0x258)][_0x30f44f(0x2aa)](_0x4b6f97,_0x1715e5,!0x1);if(_0x1f6364[_0x30f44f(0x423)](_0x3e940a))throw _0x3e940a[_0x30f44f(0x343)];if(_0x1f6364['isTransformMutationFailure'](_0x307369))throw _0x307369['error'];_0x28ac2f[_0x30f44f(0x143)](_0x3e940a['m2Prime']['params']),_0x235fe3['unshift'](_0x307369[_0x30f44f(0x315)]['params']),_0x5523f0=_0x3e940a[_0x30f44f(0x49c)],_0x4b6f97=_0x307369['m1Prime'];}_0x4225f8['setUndoRedoMutationParamsCache']({'undoCache':_0x28ac2f,'redoCache':_0x235fe3});}['_transformPreviousActiveRange'](_0x563e7e){const _0x29f50d=_0x1000c0,_0x2ac030=this[_0x29f50d(0x27f)][_0x29f50d(0x1de)](_0x30cc49[_0x29f50d(0x33e)]),_0x91ee17=_0x2ac030[_0x29f50d(0x4d2)]();if(_0x91ee17==null)return;const _0x34e5aa=[{'id':_0x29f50d(0x236),'params':{'unitId':_0x563e7e[_0x29f50d(0x10f)],'actions':null,'textRanges':[_0x91ee17]}}],_0x5afd69=this[_0x29f50d(0x258)]['transformMutationsWithChangeset'](_0x563e7e,_0x34e5aa);if(!_0x1f6364[_0x29f50d(0x180)](_0x5afd69))throw _0x5afd69['error'];const _0x203f22=_0x5afd69[_0x29f50d(0x315)][0x0]['params'][_0x29f50d(0x235)];Array['isArray'](_0x203f22)&&_0x203f22[_0x29f50d(0x1d8)]&&_0x2ac030[_0x29f50d(0x2e6)](_0x203f22[0x0]);}};_0x38f511=_0x1ffda1([_0x3afcaf(0x0,_0x1ea985[_0x1000c0(0x368)](_0x1ea985['Injector'])),_0x3afcaf(0x1,_0x1f6364[_0x1000c0(0x34e)])],_0x38f511);var _0x3dcc55=Object[_0x1000c0(0x1a1)],_0x230db0=Object['getOwnPropertyDescriptor'],_0x1d0709=(_0x1459b0,_0xf69e,_0x3d3a52,_0x49f557)=>{const _0x3262eb=_0x1000c0;for(var _0x2da2d6=_0x49f557>0x1?void 0x0:_0x49f557?_0x230db0(_0xf69e,_0x3d3a52):_0xf69e,_0x37297a=_0x1459b0[_0x3262eb(0x1d8)]-0x1,_0x29f5cd;_0x37297a>=0x0;_0x37297a--)(_0x29f5cd=_0x1459b0[_0x37297a])&&(_0x2da2d6=(_0x49f557?_0x29f5cd(_0xf69e,_0x3d3a52,_0x2da2d6):_0x29f5cd(_0x2da2d6))||_0x2da2d6);return _0x49f557&&_0x2da2d6&&_0x3dcc55(_0xf69e,_0x3d3a52,_0x2da2d6),_0x2da2d6;},_0x2c7322=(_0x297b78,_0x5c972b)=>(_0x480454,_0x4c202b)=>_0x5c972b(_0x480454,_0x4c202b,_0x297b78);let _0x12dda8=class{constructor(_0x38bbb4,_0x4a553f){const _0x413151=_0x1000c0;this[_0x413151(0x27f)]=_0x38bbb4,this[_0x413151(0x258)]=_0x4a553f;}[_0x1000c0(0x205)](_0x2b782b){const _0x17bdf6=_0x1000c0;var _0x3ada16;const _0x53bbc3=this[_0x17bdf6(0x27f)][_0x17bdf6(0x1de)](_0x30cc49[_0x17bdf6(0x4c0)]),_0x4bd46e=(_0x3ada16=_0x53bbc3[_0x17bdf6(0x3bb)]())!=null?_0x3ada16:[],_0x5905f7=_0x4bd46e==null?void 0x0:_0x4bd46e[_0x17bdf6(0x1f5)](_0x30cc49[_0x17bdf6(0x174)]);if(_0x5905f7[_0x17bdf6(0x1d8)]===0x0)return;const _0x11c7f5=[{'id':_0x17bdf6(0x236),'params':{'unitId':_0x2b782b[_0x17bdf6(0x10f)],'actions':null,'textRanges':_0x5905f7}}],_0x5b58d7=this['_transformService'][_0x17bdf6(0x436)](_0x2b782b,_0x11c7f5);if(!_0x1f6364[_0x17bdf6(0x180)](_0x5b58d7))throw _0x5b58d7['error'];const _0x2070e6=_0x5b58d7[_0x17bdf6(0x315)][0x0][_0x17bdf6(0x1ec)][_0x17bdf6(0x235)];Array[_0x17bdf6(0x40e)](_0x2070e6)&&_0x2070e6['length']&&_0x53bbc3['replaceTextRanges'](_0x2070e6,!0x1);}};_0x12dda8=_0x1d0709([_0x2c7322(0x0,_0x1ea985[_0x1000c0(0x368)](_0x1ea985['Injector'])),_0x2c7322(0x1,_0x1f6364[_0x1000c0(0x34e)])],_0x12dda8);function _0x3da729(_0x37b072){const _0x332531=_0x1000c0;let _0x10a22f='';for(const _0x36af01 of _0x37b072){const {startOffset:_0x1c3c71,endOffset:_0x34d05d,isActive:_0x5df780}=_0x36af01;_0x10a22f[_0x332531(0x1d8)]&&(_0x10a22f+=','),_0x10a22f+=_0x1c3c71+':'+_0x34d05d+':'+(_0x5df780?'1':'0');}return _0x10a22f;}function _0x23b46f(_0x11dc22){const _0x5d86ac=_0x1000c0,_0x16535b=_0x11dc22[_0x5d86ac(0x486)](','),_0x446423=[];for(const _0x4c3e61 of _0x16535b){const [_0x2f6959,_0x16f268,_0x5c5843]=_0x4c3e61[_0x5d86ac(0x486)](':');_0x446423[_0x5d86ac(0x1a6)]({'startOffset':Number(_0x2f6959),'endOffset':Number(_0x16f268),'collapsed':_0x2f6959===_0x16f268,'isActive':_0x5c5843==='1'});}return _0x446423[_0x5d86ac(0x398)](_0x2ec8c8=>_0x2ec8c8['isActive'])||(_0x446423[0x0][_0x5d86ac(0x14b)]=!0x0),_0x446423;}class _0x148177 extends _0x592d59[_0x1000c0(0x2cd)]{constructor(){const _0x22689e=_0x1000c0;super(...arguments),_0x40dfd7(this,_0x22689e(0x38e),new _0x3c7a49['BehaviorSubject'](null)),_0x40dfd7(this,_0x22689e(0x479),this[_0x22689e(0x38e)][_0x22689e(0x32c)]());}[_0x1000c0(0x43f)](_0x1bef06){const _0xf247fa=_0x1000c0,{unitID:_0x5b2c83,memberID:_0x931747,textRanges:_0x2d49f5}=_0x1bef06,_0x162535=_0x3da729(_0x2d49f5),_0x3ff60e={'unitID':_0x5b2c83,'memberID':_0x931747,'selection':_0x162535};this[_0xf247fa(0x38e)]['next'](_0x3ff60e);}}var _0x50f139=Object[_0x1000c0(0x1a1)],_0x3f7f93=Object[_0x1000c0(0x2d4)],_0x1a2bda=(_0x125f93,_0x5aafce,_0x3ab827,_0x157570)=>{for(var _0x248525=_0x157570>0x1?void 0x0:_0x157570?_0x3f7f93(_0x5aafce,_0x3ab827):_0x5aafce,_0x4ba1cb=_0x125f93['length']-0x1,_0x59d54d;_0x4ba1cb>=0x0;_0x4ba1cb--)(_0x59d54d=_0x125f93[_0x4ba1cb])&&(_0x248525=(_0x157570?_0x59d54d(_0x5aafce,_0x3ab827,_0x248525):_0x59d54d(_0x248525))||_0x248525);return _0x157570&&_0x248525&&_0x50f139(_0x5aafce,_0x3ab827,_0x248525),_0x248525;},_0x5d52cf=(_0x49050f,_0x52bf70)=>(_0x5a3f03,_0x2577db)=>_0x52bf70(_0x5a3f03,_0x2577db,_0x49050f);let _0x20fcca=class{constructor(_0x3ad0b0,_0x34f7ab){const _0x1a6ca5=_0x1000c0;this[_0x1a6ca5(0x27f)]=_0x3ad0b0,this['_transformService']=_0x34f7ab;}['transformSelections'](_0x84a932){const _0x4813a6=_0x1000c0;var _0x334c83,_0x54d2fb,_0x4b43bc,_0x217b64;const _0x294cb3=this[_0x4813a6(0x27f)]['get'](_0x5e4af3[_0x4813a6(0x471)]),{pluginName:_0x4d7d8d,unitId:_0x56464b,sheetId:_0x5b4c76}=_0x294cb3['getCurrent']()||{},_0x7bf24a=(_0x334c83=_0x294cb3[_0x4813a6(0x3bb)]())!=null?_0x334c83:[];if(_0x7bf24a[_0x4813a6(0x1d8)]===0x0||!_0x4d7d8d||!_0x56464b||!_0x5b4c76)return;const _0x4fb0e4=[{'id':_0x5e4af3[_0x4813a6(0x4b6)]['id'],'params':{'unitId':_0x56464b,'subUnitId':_0x5b4c76,'pluginName':_0x4d7d8d,'selections':_0x592d59['Tools'][_0x4813a6(0x2c5)](_0x7bf24a)}}],_0x5664cc=this[_0x4813a6(0x258)][_0x4813a6(0x436)](_0x84a932,_0x4fb0e4);if(!_0x1f6364['isTransformMutationsWithChangesetSuccess'](_0x5664cc))throw _0x5664cc['error'];const _0x595940=(_0x217b64=(_0x4b43bc=(_0x54d2fb=_0x5664cc[_0x4813a6(0x315)][0x0])==null?void 0x0:_0x54d2fb[_0x4813a6(0x1ec)])==null?void 0x0:_0x4b43bc['selections'])!=null?_0x217b64:_0x7bf24a;Array[_0x4813a6(0x40e)](_0x595940)&&_0x595940[_0x4813a6(0x1d8)]&&this[_0x4813a6(0x27f)][_0x4813a6(0x1de)](_0x592d59[_0x4813a6(0x131)])[_0x4813a6(0x19e)](_0x5e4af3[_0x4813a6(0x4b6)]['id'],{'unitId':_0x56464b,'subUnitId':_0x5b4c76,'pluginName':_0x4d7d8d,'selections':_0x595940});}};_0x20fcca=_0x1a2bda([_0x5d52cf(0x0,_0x1ea985[_0x1000c0(0x368)](_0x1ea985['Injector'])),_0x5d52cf(0x1,_0x1f6364[_0x1000c0(0x34e)])],_0x20fcca);const _0x4cc48b=new Set([_0x5e4af3[_0x1000c0(0x437)]['id']]);function _0x1922ea(_0x4ba381,_0x75ce86,_0xd0eff6,_0x1d3ecf,_0x5411ec){const _0x107cbf=_0x1000c0;var _0x56d664,_0x14e30d,_0x418689,_0x3dddb1;const _0x17e081=[];for(const _0x37995b of _0x4ba381)if(_0x4cc48b[_0x107cbf(0x321)](_0x37995b['id'])){if(_0x17e081[_0x107cbf(0x1d8)]>0x0)break;_0x17e081[_0x107cbf(0x1a6)](_0x37995b);break;}else _0x17e081[_0x107cbf(0x1a6)](_0x37995b);const _0x9a9239=(_0x14e30d=(_0x56d664=_0x5411ec[_0x107cbf(0x277)]())==null?void 0x0:_0x56d664[_0x107cbf(0x288)])!=null?_0x14e30d:'unknown',_0x49a774=(_0x3dddb1=(_0x418689=_0x5411ec[_0x107cbf(0x277)]())==null?void 0x0:_0x418689[_0x107cbf(0x4aa)])!=null?_0x3dddb1:_0x107cbf(0x1f2);return{'changeset':{'unitID':_0x75ce86,'type':_0x1f6364[_0x107cbf(0x47e)](_0xd0eff6[_0x107cbf(0x220)](_0x75ce86)),'baseRev':_0x1d3ecf[_0x107cbf(0x335)](_0x75ce86),'revision':0x0,'userID':_0x9a9239,'memberID':_0x49a774,'mutations':_0x17e081},'pendingMutations':_0x4ba381[_0x107cbf(0x440)](_0x17e081[_0x107cbf(0x1d8)])};}function _0x3250b9(_0x5bea72,_0x47a807,_0x5eff48,_0x2318b2,_0x40515a){const _0x372f40=_0x1000c0;var _0x5a23b0,_0x56ae9d,_0x46f86e,_0x475af9;const _0x400d65=[_0x5bea72['reduce']((_0x5d792d,_0x22ddf5)=>{const _0x30154d=_0x492d;var _0x56bc4f;const {id:_0x374eb1}=_0x5d792d,{id:_0x352789,type:_0x6d0388}=_0x22ddf5,_0xb92875=(_0x56bc4f=_0x5d792d['params'])!=null?_0x56bc4f:{'actions':null},_0x5b7bda=_0x22ddf5[_0x30154d(0x1ec)];if(_0x374eb1&&_0x374eb1!==_0x352789)throw new Error(_0x30154d(0x424)+_0x374eb1+'\x20-\x20'+_0x352789+'.');return{..._0x5d792d,'id':_0x352789,'type':_0x6d0388,'params':{'unitId':_0x5b7bda[_0x30154d(0x29b)],'textRanges':_0x5b7bda[_0x30154d(0x235)],'actions':_0x592d59['JSONX']['compose'](_0xb92875['actions'],_0x5b7bda[_0x30154d(0x24f)])}};},{})],_0x468f46=(_0x56ae9d=(_0x5a23b0=_0x40515a['getCurrentUser']())==null?void 0x0:_0x5a23b0[_0x372f40(0x288)])!=null?_0x56ae9d:_0x372f40(0x1f2),_0x2cc85=(_0x475af9=(_0x46f86e=_0x40515a['getCurrentUser']())==null?void 0x0:_0x46f86e[_0x372f40(0x4aa)])!=null?_0x475af9:_0x372f40(0x1f2);return{'changeset':{'unitID':_0x47a807,'type':_0x1f6364['mapDocumentTypeToUniverType'](_0x5eff48[_0x372f40(0x220)](_0x47a807)),'baseRev':_0x2318b2[_0x372f40(0x335)](_0x47a807),'revision':0x0,'userID':_0x468f46,'memberID':_0x2cc85,'mutations':_0x400d65},'pendingMutations':[]};}var _0x53dcec=Object[_0x1000c0(0x1a1)],_0x2673bd=Object[_0x1000c0(0x2d4)],_0x6e6839=(_0xa46667,_0x10c588,_0x3ea3ff,_0x50a472)=>{const _0x338ad9=_0x1000c0;for(var _0x5e1406=_0x50a472>0x1?void 0x0:_0x50a472?_0x2673bd(_0x10c588,_0x3ea3ff):_0x10c588,_0x1fe142=_0xa46667[_0x338ad9(0x1d8)]-0x1,_0x158c61;_0x1fe142>=0x0;_0x1fe142--)(_0x158c61=_0xa46667[_0x1fe142])&&(_0x5e1406=(_0x50a472?_0x158c61(_0x10c588,_0x3ea3ff,_0x5e1406):_0x158c61(_0x5e1406))||_0x5e1406);return _0x50a472&&_0x5e1406&&_0x53dcec(_0x10c588,_0x3ea3ff,_0x5e1406),_0x5e1406;},_0x519360=(_0x73930,_0x1afdc2)=>(_0x21515f,_0x26938a)=>_0x1afdc2(_0x21515f,_0x26938a,_0x73930),_0x3e6f91=(_0x5644ed=>(_0x5644ed[_0x1000c0(0x3c9)]='not_collab',_0x5644ed['SYNCED']='synced',_0x5644ed[_0x1000c0(0x47c)]=_0x1000c0(0x2d6),_0x5644ed[_0x1000c0(0x356)]=_0x1000c0(0x38d),_0x5644ed[_0x1000c0(0x227)]=_0x1000c0(0x390),_0x5644ed[_0x1000c0(0x156)]=_0x1000c0(0x46d),_0x5644ed[_0x1000c0(0x25e)]='conflict',_0x5644ed[_0x1000c0(0x4a5)]='offline',_0x5644ed))(_0x3e6f91||{});class _0x1c822e{constructor(_0x50f153,_0x5f271a,_0x51eff2,_0x4186d9,_0x5bb476,_0x41c51a,_0x400821,_0x77d96b,_0x21f3df){const _0x4d3f11=_0x1000c0;_0x40dfd7(this,_0x4d3f11(0x233),null),_0x40dfd7(this,_0x4d3f11(0x12c),[]),(this['unitID']=_0x50f153,this['type']=_0x5f271a,this[_0x4d3f11(0x2c7)]=_0x5bb476,this[_0x4d3f11(0x401)]=_0x41c51a,this['_undoRedoService']=_0x400821,this[_0x4d3f11(0x1e0)]=_0x77d96b,this[_0x4d3f11(0x140)]=_0x21f3df,this[_0x4d3f11(0x233)]=_0x51eff2,this[_0x4d3f11(0x12c)]=_0x4186d9);}['_checkMissing'](_0x5b1117){const _0x47a12d=_0x1000c0,_0x293301=this['_revisionService'][_0x47a12d(0x335)](this[_0x47a12d(0x10f)]);return _0x5b1117[_0x47a12d(0x2bd)]>_0x293301+0x1?(this[_0x47a12d(0x2c7)][_0x47a12d(0x323)]({'from':_0x293301,'to':_0x5b1117['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x29a30d){const _0x589960=_0x1000c0;this[_0x589960(0x211)][_0x589960(0x382)](this[_0x589960(0x10f)],_0x29a30d);}[_0x1000c0(0x196)](_0x1f41be){const _0x473eee=_0x1000c0;var _0x1cdbc2,_0x5c2b17;(_0x5c2b17=(_0x1cdbc2=this[_0x473eee(0x2c7)])[_0x473eee(0x350)])==null||_0x5c2b17['call'](_0x1cdbc2,_0x1f41be);}[_0x1000c0(0x3c7)](_0x1cc3f4){const _0x86434e=_0x1000c0;var _0x203f85,_0x4f03d7;return(_0x4f03d7=(_0x203f85=this[_0x86434e(0x2c7)])[_0x86434e(0x19a)])==null?void 0x0:_0x4f03d7['call'](_0x203f85,_0x1cc3f4);}[_0x1000c0(0x4b7)](_0xb5828f){const _0x2e22af=_0x1000c0;var _0x42eef7,_0x378727,_0x1db9be;return(_0x1db9be=(_0x378727=(_0x42eef7=this[_0x2e22af(0x2c7)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x378727[_0x2e22af(0x266)](_0x42eef7,_0xb5828f))!=null?_0x1db9be:_0xb5828f;}[_0x1000c0(0x2c4)](_0x1a4102){const _0x2511e6=_0x1000c0;var _0x3bcf09,_0x1e68ba;if(this[_0x2511e6(0x49b)]===_0x376736[_0x2511e6(0x119)]){const {unitID:_0x20afaa,mutations:_0x53590e,memberID:_0xc3b306}=_0x1a4102,_0x4c47f0=_0x53590e[0x0][_0x2511e6(0x1ec)][_0x2511e6(0x235)];Array['isArray'](_0x4c47f0)&&_0x4c47f0['length']>0x0&&((_0x1e68ba=(_0x3bcf09=this[_0x2511e6(0x2c7)])[_0x2511e6(0x289)])==null||_0x1e68ba[_0x2511e6(0x266)](_0x3bcf09,{'unitID':_0x20afaa,'memberID':_0xc3b306,'textRanges':_0x4c47f0}));}}['_updateLocalCache'](){const _0x28908=_0x1000c0;this['_localCacheService'][_0x28908(0x3cb)](this[_0x28908(0x10f)],this[_0x28908(0x49b)],this[_0x28908(0x233)],this[_0x28908(0x12c)]);}[_0x1000c0(0x1e2)](){const _0x56d12a=_0x1000c0;return this[_0x56d12a(0x1e0)][_0x56d12a(0x335)](this[_0x56d12a(0x10f)]);}[_0x1000c0(0x206)](){const _0x24f3ba=_0x1000c0;this[_0x24f3ba(0x1e0)][_0x24f3ba(0x360)](this['unitID']);}[_0x1000c0(0x189)](_0x75ae3){const _0x278ae4=_0x1000c0;var _0x3edc61;const _0xce29b6=this[_0x278ae4(0x4b7)](_0x75ae3),_0x3b3ca3=_0x592d59[_0x278ae4(0x168)](_0xce29b6[_0x278ae4(0x122)],this[_0x278ae4(0x401)],{'fromCollab':!0x0});if(!_0x3b3ca3[_0x278ae4(0x170)])throw _0x3b3ca3['error']instanceof Error?_0x3b3ca3['error']:new Error((_0x3edc61=_0x3b3ca3['error'])!=null?_0x3edc61:_0x278ae4(0x21f));this['_transformIMECache'](_0xce29b6),this[_0x278ae4(0x185)](_0x75ae3),this[_0x278ae4(0x196)](_0xce29b6),this[_0x278ae4(0x2c4)](_0xce29b6),this[_0x278ae4(0x206)]();}}let _0x2db095=class extends _0x1c822e{constructor(_0x336ab5,_0x35a218,_0x3902fb,_0x30f985,_0x1a5e25,_0x5bcef8,_0x5de8d8,_0x33a324,_0x451c68){const _0x49dd69=_0x1000c0;super(_0x336ab5,_0x35a218,null,[],_0x3902fb,_0x33a324,_0x5de8d8,_0x30f985,_0x1a5e25),_0x40dfd7(this,'status',_0x49dd69(0x4cb)),(this[_0x49dd69(0x27f)]=_0x5bcef8,this[_0x49dd69(0x195)]=_0x451c68);}[_0x1000c0(0x107)](_0x1276e2){const _0x1e3ecc=_0x1000c0,_0xa82cb1=this[_0x1e3ecc(0x27f)]['createInstance'](_0x43333f,this[_0x1e3ecc(0x10f)],this[_0x1e3ecc(0x49b)],[_0x1276e2],this[_0x1e3ecc(0x2c7)]);return _0xa82cb1[_0x1e3ecc(0x32e)](),_0xa82cb1[_0x1e3ecc(0x41b)](),_0xa82cb1;}['onRemoteChangeset'](_0x4ea67b){const _0x1f52c3=_0x1000c0;if(this[_0x1f52c3(0x24a)](_0x4ea67b))return this[_0x1f52c3(0x27f)][_0x1f52c3(0x134)](_0x1b8aa3,this[_0x1f52c3(0x10f)],this[_0x1f52c3(0x49b)],null,[],null,[_0x4ea67b],this[_0x1f52c3(0x2c7)]);try{return this[_0x1f52c3(0x189)](_0x4ea67b),this;}catch(_0x4bef9f){return this[_0x1f52c3(0x195)]['error'](_0x1f52c3(0x320),_0x4bef9f),this;}}[_0x1000c0(0x246)](){const _0x56aa27=_0x1000c0;throw new Error(_0x56aa27(0x22c));}[_0x1000c0(0x2f6)](){const _0x468da1=_0x1000c0;throw new Error(_0x468da1(0x1b9));}[_0x1000c0(0x130)](){const _0x2c8ec7=_0x1000c0;return this[_0x2c8ec7(0x27f)][_0x2c8ec7(0x134)](_0x2e26d4,this[_0x2c8ec7(0x10f)],this['type'],null,[],this['_handler']);}[_0x1000c0(0x312)](){return this;}[_0x1000c0(0x113)](){const _0x3f0b54=_0x1000c0;throw new Error(_0x3f0b54(0x213));}};_0x2db095=_0x6e6839([_0x519360(0x3,_0x1ea985[_0x1000c0(0x368)](_0x1f6364[_0x1000c0(0x39d)])),_0x519360(0x4,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x24c)])),_0x519360(0x5,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x519360(0x6,_0x592d59[_0x1000c0(0x116)]),_0x519360(0x7,_0x592d59[_0x1000c0(0x131)]),_0x519360(0x8,_0x592d59['ILogService'])],_0x2db095);let _0x43333f=class extends _0x1c822e{constructor(_0x5ea8be,_0x39e181,_0x50da21,_0x3d18c8,_0x176266,_0x4b949d,_0x5e589d,_0x212589,_0x1e2db3,_0x2e2c21,_0x1d8246,_0x326503,_0x5363b7,_0xe59af8){const _0x2b3a8c=_0x1000c0;super(_0x5ea8be,_0x39e181,null,_0x50da21,_0x3d18c8,_0x2e2c21,_0xe59af8,_0x4b949d,_0x5e589d),_0x40dfd7(this,_0x2b3a8c(0x32f),'pending'),_0x40dfd7(this,_0x2b3a8c(0x4bd),null),_0x40dfd7(this,'_sendingTimer',null),(this[_0x2b3a8c(0x27f)]=_0x176266,this['_memberService']=_0x212589,this[_0x2b3a8c(0x195)]=_0x1e2db3,this[_0x2b3a8c(0x230)]=_0x1d8246,this[_0x2b3a8c(0x258)]=_0x326503,this[_0x2b3a8c(0x40b)]=_0x5363b7);}[_0x1000c0(0x107)](_0x2bb07d){const _0x33ab00=_0x1000c0;return this[_0x33ab00(0x12c)][_0x33ab00(0x1a6)](_0x2bb07d),this['_updateLocalCache'](),this;}[_0x1000c0(0x269)](_0x306f67){const _0x50c281=_0x1000c0;if(this['_checkMissing'](_0x306f67))return this[_0x50c281(0x474)](),this[_0x50c281(0x27f)][_0x50c281(0x134)](_0x1b8aa3,this[_0x50c281(0x10f)],this['type'],null,this['_pendingMutations'],null,[_0x306f67],this[_0x50c281(0x2c7)]);try{const _0x4f2a98=this[_0x50c281(0x258)]['transformMutationsWithChangeset'](_0x306f67,this[_0x50c281(0x12c)]);if(_0x1f6364[_0x50c281(0x180)](_0x4f2a98)){const {c1Prime:_0x374ed0,m2Prime:_0x343f2b}=_0x4f2a98;this['_executeRemoteChangeset'](_0x374ed0);const _0x113a60=this[_0x50c281(0x27f)][_0x50c281(0x134)](_0x43333f,this[_0x50c281(0x10f)],this[_0x50c281(0x49b)],_0x343f2b,this[_0x50c281(0x2c7)]);return this['_clearScheduledTask'](),_0x113a60['_schedule'](this[_0x50c281(0x4bd)]?Math[_0x50c281(0x44e)](0x0,new Date()[_0x50c281(0x4ba)]()-this[_0x50c281(0x4bd)]):this['_getSendChangesetTimeout']()),_0x113a60;}throw _0x4f2a98[_0x50c281(0x343)];}catch(_0x38abb0){return this[_0x50c281(0x195)][_0x50c281(0x343)](_0x38abb0),this[_0x50c281(0x497)](!0x1);}}[_0x1000c0(0x246)](){const _0x4bbb94=_0x1000c0;throw new Error(_0x4bbb94(0x108));}[_0x1000c0(0x2f6)](){const _0x985760=_0x1000c0;throw new Error(_0x985760(0x2e5));}['toggleOffline'](){const _0x3f5504=_0x1000c0;return this[_0x3f5504(0x474)](),this['_injector'][_0x3f5504(0x134)](_0x2e26d4,this[_0x3f5504(0x10f)],this['type'],null,this[_0x3f5504(0x12c)],this[_0x3f5504(0x2c7)]);}['toggleOnline'](){return this;}[_0x1000c0(0x32e)](_0x3ad91c){const _0xb4d141=_0x1000c0;_0x3ad91c=_0x3ad91c!=null?_0x3ad91c:this[_0xb4d141(0x37f)](),this[_0xb4d141(0x4bd)]=new Date()[_0xb4d141(0x4ba)](),this[_0xb4d141(0x1d2)]=setTimeout(()=>{const _0x5e34f0=_0xb4d141;this['_clearScheduledTask']();let _0x34c1e9=null;switch(this['type']){case _0x376736['UNIVER_SHEET']:{_0x34c1e9=_0x1922ea(this[_0x5e34f0(0x12c)],this[_0x5e34f0(0x10f)],this['_univerInstanceService'],this[_0x5e34f0(0x1e0)],this[_0x5e34f0(0x29e)]);break;}case _0x376736[_0x5e34f0(0x119)]:{_0x34c1e9=_0x3250b9(this['_pendingMutations'],this[_0x5e34f0(0x10f)],this[_0x5e34f0(0x40b)],this[_0x5e34f0(0x1e0)],this[_0x5e34f0(0x29e)]);break;}default:throw new Error(_0x5e34f0(0x3f5)+this[_0x5e34f0(0x49b)]+_0x5e34f0(0x3f6));}const {changeset:_0x33b6f2,pendingMutations:_0x422a44}=_0x34c1e9;this['_handler']['onSendChangeset'](_0x33b6f2);const _0xcfb7e9=_0x422a44[_0x5e34f0(0x1d8)]?this[_0x5e34f0(0x27f)][_0x5e34f0(0x134)](_0x330ba1,this['unitID'],this[_0x5e34f0(0x49b)],_0x33b6f2,_0x422a44,this[_0x5e34f0(0x2c7)]):this[_0x5e34f0(0x27f)][_0x5e34f0(0x134)](_0x4c9e17,this[_0x5e34f0(0x10f)],this[_0x5e34f0(0x49b)],_0x33b6f2,this['_handler']);_0xcfb7e9[_0x5e34f0(0x41b)](),this[_0x5e34f0(0x2c7)][_0x5e34f0(0x18e)](this,_0xcfb7e9);},_0x3ad91c);}[_0x1000c0(0x37f)](){const _0x1e1dcf=_0x1000c0;var _0x3b75c7;return(_0x3b75c7=this[_0x1e1dcf(0x230)][_0x1e1dcf(0x393)](_0x48f0d1))!=null?_0x3b75c7:0x7d0;}[_0x1000c0(0x113)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1000c0(0x474)](){const _0x388374=_0x1000c0;this['_sendingTimer']!=null&&(clearTimeout(this[_0x388374(0x1d2)]),this['_sendingTimer']=null);}[_0x1000c0(0x497)](_0xfafaed){const _0xc8b69a=_0x1000c0;return this[_0xc8b69a(0x474)](),this['_injector'][_0xc8b69a(0x134)](_0x1871ec,this[_0xc8b69a(0x10f)],this['type'],null,this[_0xc8b69a(0x12c)],this['_handler'],_0xfafaed);}};_0x43333f=_0x6e6839([_0x519360(0x4,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x519360(0x5,_0x1ea985['Inject'](_0x1f6364[_0x1000c0(0x39d)])),_0x519360(0x6,_0x1ea985['Inject'](_0x322d5b[_0x1000c0(0x24c)])),_0x519360(0x7,_0x1ea985[_0x1000c0(0x368)](_0x2539c6)),_0x519360(0x8,_0x592d59['ILogService']),_0x519360(0x9,_0x592d59[_0x1000c0(0x131)]),_0x519360(0xa,_0x592d59[_0x1000c0(0x41f)]),_0x519360(0xb,_0x1f6364[_0x1000c0(0x34e)]),_0x519360(0xc,_0x592d59['IUniverInstanceService']),_0x519360(0xd,_0x592d59[_0x1000c0(0x116)])],_0x43333f);let _0x4c9e17=class extends _0x1c822e{constructor(_0x27c373,_0xa3434b,_0x2b27af,_0x27fbd1,_0x9f62fd,_0x2f0c5f,_0x14fe7c,_0x40084b,_0x56d0b0,_0x1b850f,_0x529a2f){const _0x27d553=_0x1000c0;super(_0x27c373,_0xa3434b,_0x2b27af,[],_0x27fbd1,_0x40084b,_0x529a2f,_0x2f0c5f,_0x14fe7c),_0x40dfd7(this,'status','awaiting'),(this[_0x27d553(0x27f)]=_0x9f62fd,this[_0x27d553(0x195)]=_0x56d0b0,this[_0x27d553(0x258)]=_0x1b850f);}[_0x1000c0(0x107)](_0x181d1c){const _0xab8e28=_0x1000c0,_0xad61a0=this[_0xab8e28(0x27f)][_0xab8e28(0x134)](_0x330ba1,this[_0xab8e28(0x10f)],this[_0xab8e28(0x49b)],this[_0xab8e28(0x233)],[_0x181d1c],this[_0xab8e28(0x2c7)]);return _0xad61a0[_0xab8e28(0x41b)](),_0xad61a0;}[_0x1000c0(0x269)](_0x18a9b4){const _0x14773b=_0x1000c0;if(this[_0x14773b(0x24a)](_0x18a9b4))return this[_0x14773b(0x27f)][_0x14773b(0x134)](_0x1b8aa3,this[_0x14773b(0x10f)],this['type'],this[_0x14773b(0x233)],[],null,[_0x18a9b4],this['_handler']);try{const _0x54f95f=this['_transformService'][_0x14773b(0x2cb)]([_0x18a9b4],[this['_awaitingChangeset']],!0x1);if(_0x1f6364['isTransformChangesetsSuccess'](_0x54f95f)){const {c1Prime:_0x4efde8,c2Prime:_0x4461df}=_0x54f95f;this[_0x14773b(0x189)](_0x4efde8[0x0]),_0x4461df[0x0][_0x14773b(0x33f)]=this[_0x14773b(0x1e2)]();const _0x562a69=this['_injector'][_0x14773b(0x134)](_0x4c9e17,this['unitID'],this[_0x14773b(0x49b)],_0x4461df[0x0],this['_handler']);return _0x562a69[_0x14773b(0x41b)](),_0x562a69;}return this[_0x14773b(0x497)](!0x1);}catch(_0x831275){return this[_0x14773b(0x195)][_0x14773b(0x343)](_0x831275),this['_onConflict'](!0x1);}}[_0x1000c0(0x246)](_0x25cfdf){const _0x33b00d=_0x1000c0,_0x3ffb5e=this[_0x33b00d(0x1e0)][_0x33b00d(0x335)](this[_0x33b00d(0x10f)]);if(_0x25cfdf[_0x33b00d(0x2bd)]<_0x3ffb5e-0x1)return this;if(this[_0x33b00d(0x24a)](_0x25cfdf))return this[_0x33b00d(0x27f)][_0x33b00d(0x134)](_0x1b8aa3,this[_0x33b00d(0x10f)],this[_0x33b00d(0x49b)],null,[],this[_0x33b00d(0x233)],[],this['_handler']);this[_0x33b00d(0x206)]();const _0x301b17=this['_injector'][_0x33b00d(0x134)](_0x2db095,this[_0x33b00d(0x10f)],this['type'],this[_0x33b00d(0x2c7)]);return _0x301b17[_0x33b00d(0x41b)](),_0x301b17;}['onRemoteRej'](_0x5525bb){const _0x2b3a3d=_0x1000c0;return this[_0x2b3a3d(0x497)](!!(_0x5525bb!=null&&_0x5525bb[_0x2b3a3d(0x2c2)]));}['toggleOffline'](){const _0x349d2d=_0x1000c0;return this[_0x349d2d(0x27f)][_0x349d2d(0x134)](_0x2e26d4,this[_0x349d2d(0x10f)],this[_0x349d2d(0x49b)],this[_0x349d2d(0x233)],[],this[_0x349d2d(0x2c7)]);}[_0x1000c0(0x312)](){return this;}[_0x1000c0(0x113)](){const _0x3ee027=_0x1000c0;this[_0x3ee027(0x2c7)]['onSendChangeset'](this[_0x3ee027(0x233)]);}[_0x1000c0(0x497)](_0x64c3af){const _0x444f11=_0x1000c0;return this[_0x444f11(0x27f)][_0x444f11(0x134)](_0x1871ec,this[_0x444f11(0x10f)],this[_0x444f11(0x49b)],this[_0x444f11(0x233)],[],this[_0x444f11(0x2c7)],_0x64c3af);}};_0x4c9e17=_0x6e6839([_0x519360(0x4,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x519360(0x5,_0x1ea985['Inject'](_0x1f6364[_0x1000c0(0x39d)])),_0x519360(0x6,_0x1ea985[_0x1000c0(0x368)](_0x322d5b['LocalCacheService'])),_0x519360(0x7,_0x592d59['ICommandService']),_0x519360(0x8,_0x592d59['ILogService']),_0x519360(0x9,_0x1f6364[_0x1000c0(0x34e)]),_0x519360(0xa,_0x592d59[_0x1000c0(0x116)])],_0x4c9e17);let _0x330ba1=class extends _0x1c822e{constructor(_0x2abb9d,_0x4175d4,_0x3a6833,_0x35efc5,_0x2a7143,_0x4ea7e3,_0x2a88c4,_0x2109f0,_0x5de13c,_0x2df3b2,_0x40cd64,_0x1b7ea3){const _0x495514=_0x1000c0;super(_0x2abb9d,_0x4175d4,_0x3a6833,_0x35efc5,_0x2a7143,_0x5de13c,_0x1b7ea3,_0x2a88c4,_0x2109f0),_0x40dfd7(this,'status',_0x495514(0x390)),(this[_0x495514(0x27f)]=_0x4ea7e3,this[_0x495514(0x195)]=_0x2df3b2,this[_0x495514(0x258)]=_0x40cd64);}[_0x1000c0(0x107)](_0x58ef48){const _0x47c3d1=_0x1000c0;return this['_pendingMutations'][_0x47c3d1(0x1a6)](_0x58ef48),this;}['onRemoteChangeset'](_0x28f586){const _0xdc1532=_0x1000c0;if(this[_0xdc1532(0x24a)](_0x28f586))return this['_injector'][_0xdc1532(0x134)](_0x1b8aa3,this[_0xdc1532(0x10f)],this[_0xdc1532(0x49b)],this[_0xdc1532(0x233)],this[_0xdc1532(0x12c)],null,[_0x28f586],this[_0xdc1532(0x2c7)]);try{const _0x317894=this[_0xdc1532(0x258)]['transformChangesets']([_0x28f586],[this[_0xdc1532(0x233)]],!0x1);if(_0x1f6364[_0xdc1532(0x39a)](_0x317894)){const {c1Prime:_0x17ee0f,c2Prime:_0x197080}=_0x317894,_0x114dc4=this['_transformService'][_0xdc1532(0x436)](_0x17ee0f[0x0],this[_0xdc1532(0x12c)]);if(_0x1f6364[_0xdc1532(0x180)](_0x114dc4)){const {c1Prime:_0x5be459,m2Prime:_0x229613}=_0x114dc4;return this[_0xdc1532(0x189)](_0x5be459),_0x197080[0x0]['baseRev']=this[_0xdc1532(0x1e2)](),this[_0xdc1532(0x27f)][_0xdc1532(0x134)](_0x330ba1,this[_0xdc1532(0x10f)],this[_0xdc1532(0x49b)],_0x197080[0x0],_0x229613,this[_0xdc1532(0x2c7)]);}throw _0x114dc4[_0xdc1532(0x343)];}throw _0x317894[_0xdc1532(0x343)];}catch(_0x18e087){return this[_0xdc1532(0x195)][_0xdc1532(0x343)](_0x18e087),this[_0xdc1532(0x497)](!0x1);}}[_0x1000c0(0x246)](_0x36a138){const _0x436fa8=_0x1000c0;if(this[_0x436fa8(0x24a)](_0x36a138))return this[_0x436fa8(0x27f)]['createInstance'](_0x1b8aa3,this[_0x436fa8(0x10f)],this['type'],null,this[_0x436fa8(0x12c)],this[_0x436fa8(0x233)],[],this['_handler']);this[_0x436fa8(0x206)]();const _0x348311=this[_0x436fa8(0x27f)][_0x436fa8(0x134)](_0x43333f,this[_0x436fa8(0x10f)],this[_0x436fa8(0x49b)],this[_0x436fa8(0x12c)],this['_handler']);return _0x348311[_0x436fa8(0x32e)](),_0x348311['_updateLocalCache'](),_0x348311;}[_0x1000c0(0x2f6)](_0x17a892){const _0x4d12eb=_0x1000c0;return this['_onConflict'](!!(_0x17a892!=null&&_0x17a892[_0x4d12eb(0x2c2)]));}[_0x1000c0(0x130)](){const _0x544d9c=_0x1000c0;return this['_injector']['createInstance'](_0x2e26d4,this[_0x544d9c(0x10f)],this['type'],this[_0x544d9c(0x233)],this[_0x544d9c(0x12c)],this['_handler']);}['toggleOnline'](){return this;}[_0x1000c0(0x113)](){const _0x3c2afa=_0x1000c0;this[_0x3c2afa(0x2c7)][_0x3c2afa(0x4d1)](this[_0x3c2afa(0x233)]);}[_0x1000c0(0x497)](_0x1d2571){const _0x15b8fb=_0x1000c0;return this['_injector']['createInstance'](_0x1871ec,this[_0x15b8fb(0x10f)],this['type'],null,this[_0x15b8fb(0x12c)],this[_0x15b8fb(0x2c7)],_0x1d2571);}};_0x330ba1=_0x6e6839([_0x519360(0x5,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x519360(0x6,_0x1ea985[_0x1000c0(0x368)](_0x1f6364[_0x1000c0(0x39d)])),_0x519360(0x7,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x24c)])),_0x519360(0x8,_0x592d59[_0x1000c0(0x131)]),_0x519360(0x9,_0x592d59[_0x1000c0(0x1ef)]),_0x519360(0xa,_0x1f6364[_0x1000c0(0x34e)]),_0x519360(0xb,_0x592d59[_0x1000c0(0x116)])],_0x330ba1);let _0x1871ec=class extends _0x1c822e{constructor(_0x457ae6,_0x43f639,_0x3047b7,_0xa31d49,_0x3cb0f2,_0x324244=!0x1,_0x59bf00,_0x51bfd9,_0x29397a,_0x47b318,_0x41c6f6,_0x16e8da,_0x506530){const _0x205096=_0x1000c0;super(_0x457ae6,_0x43f639,_0x3047b7,_0xa31d49,_0x3cb0f2,_0x51bfd9,_0x29397a,_0x41c6f6,_0x47b318),_0x40dfd7(this,'status',_0x205096(0x20a)),(this[_0x205096(0x3bf)]=_0x324244,this[_0x205096(0x147)]=_0x59bf00,this[_0x205096(0x2a1)]=_0x16e8da,this[_0x205096(0x12b)]=_0x506530,this[_0x205096(0x2fd)](),this['_clearLocalCache'](),this[_0x205096(0x15f)]());}[_0x1000c0(0x107)](){return this;}[_0x1000c0(0x269)](){return this;}[_0x1000c0(0x246)](){return this;}[_0x1000c0(0x2f6)](){return this;}[_0x1000c0(0x130)](){return this;}[_0x1000c0(0x312)](){return this;}[_0x1000c0(0x113)](){const _0x5e119f=_0x1000c0;throw new Error(_0x5e119f(0x443));}[_0x1000c0(0x3aa)](){const _0x2b97cf=_0x1000c0;this[_0x2b97cf(0x140)][_0x2b97cf(0x3cb)](this[_0x2b97cf(0x10f)],this[_0x2b97cf(0x49b)],null,[]);}[_0x1000c0(0x2fd)](){const _0x255eb5=_0x1000c0;this['_isPermissionRej']?this[_0x255eb5(0x12b)][_0x255eb5(0x2eb)]({'title':this[_0x255eb5(0x2a1)]['t']('permission.title'),'content':this['_localeService']['t'](_0x255eb5(0x361)),'type':_0x255eb5(0x343),'duration':0x0}):this[_0x255eb5(0x12b)][_0x255eb5(0x2eb)]({'title':this[_0x255eb5(0x2a1)]['t'](_0x255eb5(0x489)),'content':this['_localeService']['t']('conflict.content'),'type':_0x255eb5(0x343),'duration':0x0});}[_0x1000c0(0x15f)](){const _0x262fb2=_0x1000c0;this[_0x262fb2(0x147)][_0x262fb2(0x20d)](new _0x5e4af3[(_0x262fb2(0x304))](this[_0x262fb2(0x10f)])['id'],!0x1);}};_0x1871ec=_0x6e6839([_0x519360(0x6,_0x1ea985[_0x1000c0(0x368)](_0x592d59['IPermissionService'])),_0x519360(0x7,_0x592d59[_0x1000c0(0x131)]),_0x519360(0x8,_0x592d59[_0x1000c0(0x116)]),_0x519360(0x9,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x24c)])),_0x519360(0xa,_0x1ea985[_0x1000c0(0x368)](_0x1f6364['RevisionService'])),_0x519360(0xb,_0x1ea985[_0x1000c0(0x368)](_0x592d59[_0x1000c0(0x279)])),_0x519360(0xc,_0x2c52d3[_0x1000c0(0x165)])],_0x1871ec);let _0x2e26d4=class extends _0x1c822e{constructor(_0x5591da,_0x15984d,_0x5a9fe5,_0x1a01aa,_0x50d07a,_0x21fba9,_0x5c3e82,_0x80e11b,_0x360814,_0xf95a9f){const _0x41df33=_0x1000c0;super(_0x5591da,_0x15984d,_0x5a9fe5,_0x1a01aa,_0x50d07a,_0x360814,_0xf95a9f,_0x5c3e82,_0x80e11b),_0x40dfd7(this,'status',_0x41df33(0x2fb)),this[_0x41df33(0x27f)]=_0x21fba9;}[_0x1000c0(0x107)](_0x18b1b5){const _0xdb9668=_0x1000c0;return this[_0xdb9668(0x12c)][_0xdb9668(0x1a6)](_0x18b1b5),this[_0xdb9668(0x41b)](),this;}['onRemoteChangeset'](_0x4ed6fc){const _0x3e54b3=_0x1000c0;throw new Error(_0x3e54b3(0x435));}['onRemoteAck'](){const _0xd8071=_0x1000c0;throw new Error(_0xd8071(0x20f));}[_0x1000c0(0x2f6)](){const _0x38dbeb=_0x1000c0;throw new Error(_0x38dbeb(0x207));}[_0x1000c0(0x130)](){return this;}[_0x1000c0(0x312)](){const _0x38156b=_0x1000c0,{_injector:_0x42d60a,_pendingMutations:_0x4961da,_awaitingChangeset:_0x251617,unitID:_0xa94cdc,_handler:_0x105a82,type:_0x548b62}=this,_0x4fcf93=_0x304f8d(_0x42d60a,_0xa94cdc,_0x548b62,_0x251617,_0x4961da,_0x105a82);return _0x4fcf93 instanceof _0x43333f?_0x4fcf93[_0x38156b(0x32e)]():(_0x4fcf93 instanceof _0x330ba1||_0x4fcf93 instanceof _0x4c9e17)&&_0x4fcf93[_0x38156b(0x113)](),_0x4fcf93;}[_0x1000c0(0x113)](){const _0x3e98ea=_0x1000c0;throw new Error(_0x3e98ea(0x49f));}};_0x2e26d4=_0x6e6839([_0x519360(0x5,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x519360(0x6,_0x1ea985[_0x1000c0(0x368)](_0x1f6364['RevisionService'])),_0x519360(0x7,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x24c)])),_0x519360(0x8,_0x592d59[_0x1000c0(0x131)]),_0x519360(0x9,_0x592d59['IUndoRedoService'])],_0x2e26d4);let _0x1b8aa3=class extends _0x1c822e{constructor(_0x20cc83,_0x519129,_0x31f5fc,_0x6761e3,_0x4e30a5,_0xa564c4,_0x57f8ba,_0x520aef,_0x52665a,_0x2d5dcc,_0x4aba2c,_0x1b0c82,_0x38223f,_0x567c03){const _0x37be51=_0x1000c0;super(_0x20cc83,_0x519129,_0x31f5fc,_0x6761e3,_0x57f8ba,_0x1b0c82,_0x38223f,_0x52665a,_0x2d5dcc),_0x40dfd7(this,'status',_0x37be51(0x46d)),(this[_0x37be51(0x43e)]=_0x4e30a5,this[_0x37be51(0x3c6)]=_0xa564c4,this[_0x37be51(0x27f)]=_0x520aef,this[_0x37be51(0x195)]=_0x4aba2c,this[_0x37be51(0x258)]=_0x567c03);}[_0x1000c0(0x12f)](_0xf94050){const _0xfd482=_0x1000c0;try{const _0x302c66=[..._0xf94050,...this[_0xfd482(0x3c6)]],_0x21d137=[this['_awaitingChangeset']||this[_0xfd482(0x43e)]][_0xfd482(0x3d5)](_0x5e99f9=>!!_0x5e99f9);let _0x4faa2d,_0x23bb13;if(_0x21d137[_0xfd482(0x1d8)]){const _0x42c66c=this['_transformService'][_0xfd482(0x2cb)](_0x302c66,_0x21d137,!0x1);if(!_0x1f6364[_0xfd482(0x39a)](_0x42c66c))throw _0x42c66c[_0xfd482(0x343)];_0x4faa2d=_0x42c66c[_0xfd482(0x396)],_0x23bb13=_0x42c66c[_0xfd482(0x2b1)];}else _0x4faa2d=_0x302c66,_0x23bb13=[];let _0x3cbd06=this[_0xfd482(0x12c)];_0x4faa2d[_0xfd482(0x24b)](_0x57670e=>{const _0x351cb5=_0xfd482;let _0xc65798;if(_0x3cbd06['length']){const _0x7899f3=this[_0x351cb5(0x258)][_0x351cb5(0x436)](_0x57670e,_0x3cbd06);if(!_0x1f6364[_0x351cb5(0x180)](_0x7899f3))throw _0x7899f3['error'];_0xc65798=_0x7899f3[_0x351cb5(0x396)],_0x3cbd06=_0x7899f3[_0x351cb5(0x315)];}else _0xc65798=_0x57670e;this[_0x351cb5(0x189)](_0xc65798);}),this[_0xfd482(0x43e)]&&this['_incrementRevisionNumber'](),this[_0xfd482(0x233)]&&_0x23bb13[_0xfd482(0x1d8)]&&(_0x23bb13[0x0]['baseRev']=this[_0xfd482(0x1e2)]());let _0x2d4884;if(this['_awaitingChangeset']&&_0x3cbd06[_0xfd482(0x1d8)]!==0x0)_0x2d4884=this[_0xfd482(0x27f)]['createInstance'](_0x330ba1,this[_0xfd482(0x10f)],this[_0xfd482(0x49b)],_0x23bb13[0x0],_0x3cbd06,this[_0xfd482(0x2c7)]);else{if(this['_awaitingChangeset']&&_0x3cbd06[_0xfd482(0x1d8)]===0x0)_0x23bb13[0x0][_0xfd482(0x33f)]=this[_0xfd482(0x1e2)](),_0x2d4884=this['_injector'][_0xfd482(0x134)](_0x4c9e17,this[_0xfd482(0x10f)],this['type'],_0x23bb13[0x0],this[_0xfd482(0x2c7)]);else{if(_0x3cbd06[_0xfd482(0x1d8)]!==0x0){const _0x23b94b=this[_0xfd482(0x27f)][_0xfd482(0x134)](_0x43333f,this[_0xfd482(0x10f)],this['type'],_0x3cbd06,this['_handler']);_0x23b94b[_0xfd482(0x32e)](),_0x2d4884=_0x23b94b;}else _0x2d4884=this[_0xfd482(0x27f)][_0xfd482(0x134)](_0x2db095,this[_0xfd482(0x10f)],this[_0xfd482(0x49b)],this[_0xfd482(0x2c7)]);}}return _0x2d4884[_0xfd482(0x41b)](),_0x2d4884;}catch(_0x1cb7f4){return this[_0xfd482(0x195)][_0xfd482(0x343)](_0xfd482(0x18c),_0xfd482(0x496),_0x1cb7f4),this[_0xfd482(0x27f)][_0xfd482(0x134)](_0x1871ec,this[_0xfd482(0x10f)],this[_0xfd482(0x49b)],this[_0xfd482(0x233)],this[_0xfd482(0x12c)],this[_0xfd482(0x2c7)],!0x1);}}[_0x1000c0(0x113)](){const _0x926278=_0x1000c0;throw new Error(_0x926278(0x186));}[_0x1000c0(0x107)](_0x88dea1){const _0x28ed43=_0x1000c0;return this['_pendingMutations'][_0x28ed43(0x1a6)](_0x88dea1),this;}[_0x1000c0(0x269)](_0x1a817a){const _0x650c6a=_0x1000c0;return this[_0x650c6a(0x3c6)]['push'](_0x1a817a),this;}[_0x1000c0(0x246)](_0x466678){const _0x5db246=_0x1000c0;if(this['_awaitingChangeset'])return this[_0x5db246(0x43e)]=this[_0x5db246(0x233)],this[_0x5db246(0x233)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x1000c0(0x2f6)](_0x3c0ddc){const _0x4578a1=_0x1000c0;return this[_0x4578a1(0x497)](!!(_0x3c0ddc!=null&&_0x3c0ddc[_0x4578a1(0x2c2)]));}[_0x1000c0(0x130)](){const _0x22580f=_0x1000c0;return this[_0x22580f(0x27f)][_0x22580f(0x134)](_0x2e26d4,this[_0x22580f(0x10f)],this[_0x22580f(0x49b)],this[_0x22580f(0x233)],this[_0x22580f(0x12c)],this[_0x22580f(0x2c7)]);}[_0x1000c0(0x312)](){return this;}[_0x1000c0(0x497)](_0x3ce0ba){const _0x3f20a6=_0x1000c0;return this[_0x3f20a6(0x27f)]['createInstance'](_0x1871ec,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x3f20a6(0x12c)],this[_0x3f20a6(0x2c7)],_0x3ce0ba);}};_0x1b8aa3=_0x6e6839([_0x519360(0x7,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x519360(0x8,_0x1ea985[_0x1000c0(0x368)](_0x1f6364[_0x1000c0(0x39d)])),_0x519360(0x9,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x24c)])),_0x519360(0xa,_0x592d59['ILogService']),_0x519360(0xb,_0x592d59[_0x1000c0(0x131)]),_0x519360(0xc,_0x592d59['IUndoRedoService']),_0x519360(0xd,_0x1f6364[_0x1000c0(0x34e)])],_0x1b8aa3);function _0x304f8d(_0x56a781,_0x534ea2,_0x2f9c2a,_0xc48962,_0x10c5da,_0x5c0049){const _0x326e4a=_0x1000c0;return _0xc48962&&_0x10c5da['length']?_0x56a781[_0x326e4a(0x134)](_0x330ba1,_0x534ea2,_0x2f9c2a,_0xc48962,_0x10c5da,_0x5c0049):_0xc48962?_0x56a781['createInstance'](_0x4c9e17,_0x534ea2,_0x2f9c2a,_0xc48962,_0x5c0049):_0x10c5da[_0x326e4a(0x1d8)]?_0x56a781[_0x326e4a(0x134)](_0x43333f,_0x534ea2,_0x2f9c2a,_0x10c5da,_0x5c0049):_0x56a781[_0x326e4a(0x134)](_0x2db095,_0x534ea2,_0x2f9c2a,_0x5c0049);}var _0x2dc850=Object['defineProperty'],_0x145fd5=Object[_0x1000c0(0x2d4)],_0x4a339b=(_0x439ef6,_0x86e620,_0x442cef,_0x36e0ad)=>{const _0x2f35ba=_0x1000c0;for(var _0x2671e9=_0x36e0ad>0x1?void 0x0:_0x36e0ad?_0x145fd5(_0x86e620,_0x442cef):_0x86e620,_0x288423=_0x439ef6[_0x2f35ba(0x1d8)]-0x1,_0x3537e4;_0x288423>=0x0;_0x288423--)(_0x3537e4=_0x439ef6[_0x288423])&&(_0x2671e9=(_0x36e0ad?_0x3537e4(_0x86e620,_0x442cef,_0x2671e9):_0x3537e4(_0x2671e9))||_0x2671e9);return _0x36e0ad&&_0x2671e9&&_0x2dc850(_0x86e620,_0x442cef,_0x2671e9),_0x2671e9;},_0x3f6e97=(_0x36e5c1,_0x585fbc)=>(_0x32f498,_0x38b8d0)=>_0x585fbc(_0x32f498,_0x38b8d0,_0x36e5c1);_0x322d5b[_0x1000c0(0x200)]=class extends _0x592d59[_0x1000c0(0x2cd)]{constructor(_0x138da2,_0x305cbc,_0x4576c2){const _0xb890c3=_0x1000c0;super(),_0x40dfd7(this,_0xb890c3(0x2ce),new Map()),_0x40dfd7(this,_0xb890c3(0x38b),new _0x3c7a49[(_0xb890c3(0x33b))]()),(this['_injector']=_0x138da2,this[_0xb890c3(0x2c8)]=_0x305cbc,this[_0xb890c3(0x40b)]=_0x4576c2,this[_0xb890c3(0x224)]());}[_0x1000c0(0x36f)](){const _0x5666a3=_0x1000c0;super[_0x5666a3(0x36f)](),this['_entities'][_0x5666a3(0x24b)](_0x3c77a6=>_0x3c77a6[_0x5666a3(0x36f)]()),this['_entities'][_0x5666a3(0x370)]();}[_0x1000c0(0x278)](_0x986e10){const _0x4a0c12=_0x1000c0;var _0x123703;return(_0x123703=this[_0x4a0c12(0x2ce)][_0x4a0c12(0x1de)](_0x986e10))!=null?_0x123703:null;}[_0x1000c0(0x4a8)](_0x4bcdcb){const _0x1d660d=_0x1000c0,_0x3d44e2=this[_0x1d660d(0x278)](_0x4bcdcb);return _0x3d44e2?_0x3c7a49['of'](_0x3d44e2):this['_entityInit$'][_0x1d660d(0x161)](_0x39f29f[_0x1d660d(0x3d5)](_0x572091=>_0x572091[_0x1d660d(0x10f)]===_0x4bcdcb));}[_0x1000c0(0x224)](){const _0x2252ae=_0x1000c0;this['_univerInstanceService'][_0x2252ae(0x13e)](_0x592d59[_0x2252ae(0x1b5)][_0x2252ae(0x149)])['pipe'](_0x3c7a49[_0x2252ae(0x3ca)](this[_0x2252ae(0x338)]),_0x39f29f[_0x2252ae(0x204)](0x10))[_0x2252ae(0x42f)](async _0x1459a8=>{const _0x398533=_0x2252ae,_0x4d0914=_0x1459a8['getUnitId'](),_0x3d2f1c=await this[_0x398533(0x1c0)](_0x4d0914,_0x376736[_0x398533(0x149)]);this['_entities'][_0x398533(0x4c2)](_0x4d0914,_0x3d2f1c);}),this['_univerInstanceService'][_0x2252ae(0x13e)](_0x592d59[_0x2252ae(0x1b5)][_0x2252ae(0x119)])[_0x2252ae(0x161)](_0x3c7a49[_0x2252ae(0x3ca)](this[_0x2252ae(0x338)]),_0x39f29f[_0x2252ae(0x204)](0x10))[_0x2252ae(0x161)](_0x39f29f['filter'](_0x1eef55=>!_0x1eef55[_0x2252ae(0x270)]()['startsWith']('__')))[_0x2252ae(0x42f)](async _0x29b200=>{const _0x50352a=_0x2252ae,_0x6e22f2=_0x29b200[_0x50352a(0x270)](),_0x4edc34=await this[_0x50352a(0x1c0)](_0x6e22f2,_0x376736[_0x50352a(0x119)]);this[_0x50352a(0x2ce)]['set'](_0x6e22f2,_0x4edc34);}),_0x3c7a49[_0x2252ae(0x30f)](this[_0x2252ae(0x40b)][_0x2252ae(0x341)](_0x592d59[_0x2252ae(0x1b5)][_0x2252ae(0x149)]),this[_0x2252ae(0x40b)][_0x2252ae(0x341)](_0x592d59[_0x2252ae(0x1b5)][_0x2252ae(0x119)]))[_0x2252ae(0x161)](_0x3c7a49[_0x2252ae(0x3ca)](this['dispose$']))[_0x2252ae(0x42f)](_0x1700dc=>{const _0x58226a=_0x2252ae,_0x2041aa=_0x1700dc[_0x58226a(0x270)](),_0x39f7af=this[_0x58226a(0x2ce)][_0x58226a(0x1de)](_0x2041aa);_0x39f7af&&(_0x39f7af['dispose'](),this['_entities'][_0x58226a(0x234)](_0x2041aa));});}async[_0x1000c0(0x1c0)](_0xd03c38,_0x3cd292){const _0x3f1303=_0x1000c0,_0xe88a99=await this['_collabSessionService']['requireSession'](_0xd03c38),_0x4d3633=this[_0x3f1303(0x27f)][_0x3f1303(0x134)](this['_getCtorByUniverType'](_0x3cd292),_0xd03c38,_0x3cd292,_0xe88a99);return await _0x4d3633[_0x3f1303(0x150)](),this['_entityInit$'][_0x3f1303(0x117)](_0x4d3633),_0x4d3633;}[_0x1000c0(0x26a)](_0x29a81f){const _0x2f0a5f=_0x1000c0;switch(_0x29a81f){case _0x376736[_0x2f0a5f(0x119)]:return _0x297a49;case _0x376736[_0x2f0a5f(0x149)]:return _0x2f64ee;default:throw new Error(_0x2f0a5f(0x1c9)+_0x29a81f);}}},_0x322d5b[_0x1000c0(0x200)]=_0x4a339b([_0x592d59[_0x1000c0(0x47b)](_0x592d59[_0x1000c0(0x1c7)][_0x1000c0(0x17f)],_0x322d5b['CollaborationController']),_0x3f6e97(0x0,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x3f6e97(0x1,_0x1ea985['Inject'](_0x322d5b['CollaborationSessionService'])),_0x3f6e97(0x2,_0x592d59[_0x1000c0(0x305)])],_0x322d5b['CollaborationController']);let _0x5ce0f9=class extends _0x592d59[_0x1000c0(0x2cd)]{constructor(_0x1e40b0,_0x108777,_0x3dec8d,_0x52d718,_0x424561,_0x4e320a,_0x306da8,_0x5603b5,_0x1d9f76,_0x14d944,_0x33293b,_0x11e746,_0x5815af){const _0x112737=_0x1000c0;super(),_0x40dfd7(this,_0x112737(0x342),new _0x3c7a49['BehaviorSubject'](null)),_0x40dfd7(this,_0x112737(0x292),this[_0x112737(0x342)][_0x112737(0x32c)]()),_0x40dfd7(this,'_state'),_0x40dfd7(this,_0x112737(0x1eb),!0x1),_0x40dfd7(this,_0x112737(0x3a0),this[_0x112737(0x292)]['pipe'](_0x39f29f[_0x112737(0x1f5)](_0x3f7dd6=>_0x3f7dd6?_0x3f7dd6[_0x112737(0x32f)]:_0x3e6f91[_0x112737(0x4a5)]),_0x39f29f['shareReplay'](0x1))),_0x40dfd7(this,_0x112737(0x138),!0x1),_0x40dfd7(this,_0x112737(0x347),[]),(this[_0x112737(0x10f)]=_0x1e40b0,this[_0x112737(0x349)]=_0x108777,this[_0x112737(0x3ae)]=_0x3dec8d,this['_injector']=_0x52d718,this['_localCacheService']=_0x424561,this[_0x112737(0x3ab)]=_0x4e320a,this[_0x112737(0x2a1)]=_0x306da8,this[_0x112737(0x1e0)]=_0x5603b5,this[_0x112737(0x195)]=_0x1d9f76,this[_0x112737(0x401)]=_0x14d944,this[_0x112737(0x4ca)]=_0x33293b,this[_0x112737(0x147)]=_0x11e746,this[_0x112737(0x11f)]=_0x5815af);}get[_0x1000c0(0x115)](){const _0x990aca=_0x1000c0;return this[_0x990aca(0x257)];}async[_0x1000c0(0x150)](){const _0x237416=_0x1000c0;if(this[_0x237416(0x115)])throw new Error(_0x237416(0x2b5));await this['_init']();}[_0x1000c0(0x369)](){const _0x5549d1=_0x1000c0;return this['_collaborationPaused']=!0x0,_0x592d59[_0x5549d1(0x29f)](()=>{const _0xa17a22=_0x5549d1;this[_0xa17a22(0x1eb)]=!0x1,this[_0xa17a22(0x2a2)]();});}['_updateState'](_0x1ed908){const _0x3b587e=_0x1000c0;this[_0x3b587e(0x257)]=_0x1ed908,this[_0x3b587e(0x342)]['next'](_0x1ed908);}async[_0x1000c0(0x224)](){const _0x3b11da=_0x1000c0;var _0x10589f;return this[_0x3b11da(0x4c8)](await this[_0x3b11da(0x2bf)]()),this[_0x3b11da(0x11f)]&&((_0x10589f=this[_0x3b11da(0x11f)])==null||_0x10589f['editingUnit'](this['unitID']),this[_0x3b11da(0x215)](_0x592d59['toDisposable'](this[_0x3b11da(0x11f)]['getUnitStatus$'](this[_0x3b11da(0x10f)])['subscribe'](_0x17ef72=>{const _0x89e3db=_0x3b11da;this[_0x89e3db(0x195)][_0x89e3db(0x384)](_0x89e3db(0x1a0),_0x89e3db(0x3b7),_0x17ef72),_0x17ef72===_0x23c43c[_0x89e3db(0x105)]?(this['_messageService']['show']({'content':this[_0x89e3db(0x2a1)]['t'](_0x89e3db(0x372)),'type':_0x5063fc['MessageType'][_0x89e3db(0x173)]}),this[_0x89e3db(0x147)][_0x89e3db(0x20d)](new _0x5e4af3['WorkbookEditablePermission'](this['unitID'])['id'],!0x1)):this['_permissionService'][_0x89e3db(0x20d)](new _0x5e4af3[(_0x89e3db(0x304))](this[_0x89e3db(0x10f)])['id'],!0x0);})))),this['disposeWithMe'](_0x592d59[_0x3b11da(0x29f)](this[_0x3b11da(0x3ae)][_0x3b11da(0x2e0)][_0x3b11da(0x42f)](_0x3f86fd=>{const _0x263921=_0x3b11da;_0x3f86fd===_0x28f044[_0x263921(0x243)]?this[_0x263921(0x473)]():_0x3f86fd===_0x28f044[_0x263921(0x4a5)]&&this[_0x263921(0x15d)]();}))),this[_0x3b11da(0x215)](_0x592d59['toDisposable'](this['_session'][_0x3b11da(0x253)]['subscribe'](_0x358f5b=>{const _0x430431=_0x3b11da;try{switch(_0x358f5b[_0x430431(0x263)]){case _0x1f6364['CollaborationEvent'][_0x430431(0x274)]:{this[_0x430431(0x26e)](_0x1f6364['parseProtocolChangeset'](_0x358f5b[_0x430431(0x314)]));break;}case _0x1f6364[_0x430431(0x159)][_0x430431(0x1d5)]:{this[_0x430431(0x404)](_0x358f5b[_0x430431(0x314)]);break;}case _0x1f6364['CollaborationEvent']['CHANGESET_REJ']:{this[_0x430431(0x176)]();break;}case _0x1f6364[_0x430431(0x159)][_0x430431(0x1e7)]:{this[_0x430431(0x49d)](_0x358f5b[_0x430431(0x314)]['changesets'][_0x430431(0x1f5)](_0x4e8677=>_0x1f6364[_0x430431(0x469)](_0x4e8677)));break;}case _0x1f6364[_0x430431(0x159)][_0x430431(0x319)]:this[_0x430431(0x176)]({'isPermissionRej':!0x0});}}catch(_0x5892cf){throw console[_0x430431(0x343)](_0x430431(0x351),_0x5892cf),_0x5892cf;}}))),this[_0x3b11da(0x257)];}['_unlockTransition'](){const _0x13b37a=_0x1000c0;this[_0x13b37a(0x138)]=!0x1;}[_0x1000c0(0x44b)](){const _0x435f24=_0x1000c0;if(this[_0x435f24(0x138)])throw new Error(_0x435f24(0x487));this[_0x435f24(0x138)]=!0x0;}['_onLocalMutation'](_0x3f8ce7){const _0x7be4dc=_0x1000c0;this['_lockTransition'](),this['_updateState'](this['_state'][_0x7be4dc(0x107)](_0x3f8ce7)),this['_unlockTransition']();}[_0x1000c0(0x26e)](_0x16b740){const _0x4819d3=_0x1000c0;if(!(_0x16b740[_0x4819d3(0x2bd)]<=this[_0x4819d3(0x1e0)][_0x4819d3(0x335)](this['unitID']))){if(this[_0x4819d3(0x1eb)]){this['_remoteChangesetQueue'][_0x4819d3(0x1a6)](_0x16b740);return;}this[_0x4819d3(0x1c8)](_0x16b740);}}[_0x1000c0(0x2a2)](){const _0x4cbf39=_0x1000c0;this[_0x4cbf39(0x347)][_0x4cbf39(0x24b)](_0x2d5f9e=>this['_applyRemoteChangeset'](_0x2d5f9e)),this[_0x4cbf39(0x347)]=[];}[_0x1000c0(0x1c8)](_0x40d5a5){const _0x714a16=_0x1000c0,_0x4cd814=this['_compressMutationService'][_0x714a16(0x183)][_0x714a16(0x385)](this[_0x714a16(0x3ab)][_0x714a16(0x183)][_0x714a16(0x1e1)]()[_0x714a16(0x442)])(_0x40d5a5['mutations'],null)||_0x40d5a5['mutations'],_0x52a634={..._0x40d5a5,'mutations':_0x4cd814};this[_0x714a16(0x44b)](),this[_0x714a16(0x4c8)](this[_0x714a16(0x257)]['onRemoteChangeset'](_0x52a634)),this['_unlockTransition']();}[_0x1000c0(0x404)](_0x1b05da){const _0x37be93=_0x1000c0;this['_lockTransition'](),this[_0x37be93(0x4c8)](this[_0x37be93(0x257)][_0x37be93(0x246)](_0x1b05da)),this[_0x37be93(0x3b9)]();}['_onRemoteRejected'](_0x2ad0d2){const _0x3db58b=_0x1000c0;this[_0x3db58b(0x44b)](),this['_updateState'](this[_0x3db58b(0x257)][_0x3db58b(0x2f6)](_0x2ad0d2)),this['_unlockTransition']();}['_onFetchMissResult'](_0x326782){const _0x5645f9=_0x1000c0;if(!(this['_state']instanceof _0x1b8aa3))throw new TypeError(_0x5645f9(0x112));const _0x35dbc5=_0x326782['map'](_0x4c7688=>{const _0x5a5f9e=_0x5645f9,_0x54eee3=this[_0x5a5f9e(0x3ab)]['interceptor'][_0x5a5f9e(0x385)](this[_0x5a5f9e(0x3ab)][_0x5a5f9e(0x183)][_0x5a5f9e(0x1e1)]()['COMPRESS_MUTATION_APPLY'])(_0x4c7688[_0x5a5f9e(0x122)],null)||_0x4c7688['mutations'];return{..._0x4c7688,'mutations':_0x54eee3};});this['_lockTransition'](),this['_updateState'](this[_0x5645f9(0x257)]['onMissedChangesetFetched'](_0x35dbc5)),this[_0x5645f9(0x3b9)]();}[_0x1000c0(0x15d)](){const _0x250625=_0x1000c0;this['_lockTransition'](),this[_0x250625(0x4c8)](this[_0x250625(0x257)][_0x250625(0x130)]()),this['_unlockTransition']();}[_0x1000c0(0x473)](){const _0x4947a4=_0x1000c0;this[_0x4947a4(0x44b)](),this[_0x4947a4(0x4c8)](this[_0x4947a4(0x257)][_0x4947a4(0x312)]()),this[_0x4947a4(0x3b9)]();}async[_0x1000c0(0x2bf)](){return new Promise(_0x2edfc4=>{const _0x41e418=_0x492d;this[_0x41e418(0x3ae)][_0x41e418(0x2e0)]['pipe'](_0x39f29f[_0x41e418(0x13a)](0x1))[_0x41e418(0x42f)](async _0x5f4edc=>{const _0xd2108c=_0x41e418;_0x2edfc4(await this['_createInitialStateImpl'](_0x5f4edc===_0x28f044[_0xd2108c(0x243)]));});});}[_0x1000c0(0x212)](){const _0x22c86c=_0x1000c0,_0x13ec3a=this[_0x22c86c(0x10f)];return{'onStateChange':(_0x290cca,_0x1a08f1)=>{const _0x27abd4=_0x22c86c;if(_0x290cca!==this['_state'])throw new Error(_0x27abd4(0x255)+_0x290cca['status']+'\x0aAfter:\x20'+_0x1a08f1[_0x27abd4(0x32f)]+'\x0aCurrent:\x20'+this['_state'][_0x27abd4(0x32f)]);this[_0x27abd4(0x4c8)](_0x1a08f1);},'onSendChangeset':_0x5296e2=>{const _0x2a100d=_0x22c86c,_0xc5c05={'eventID':_0x1f6364[_0x2a100d(0x159)][_0x2a100d(0x311)],'data':{'unitID':_0x5296e2[_0x2a100d(0x10f)],'unitType':this[_0x2a100d(0x349)],'changeset':_0x5296e2,'memberID':this['_session']['getMemberID']()}};this['_session'][_0x2a100d(0x16a)](_0xc5c05,this[_0x2a100d(0x10f)]);},'onMissingChangesets':({from:_0x1e8908,to:_0xe04967})=>{const _0x3f964a=_0x22c86c;this['_logService']['debug'](_0x3f964a(0x1a0),_0x3f964a(0x153)+_0x1e8908+_0x3f964a(0x155)+_0xe04967);const _0xb10f={'eventID':_0x1f6364['CollaborationEvent']['FETCH_MISSING'],'data':{'unitID':_0x13ec3a,'unitType':this[_0x3f964a(0x349)],'from':_0x1e8908,'to':_0xe04967}};this[_0x3f964a(0x3ae)]['send'](_0xb10f,this[_0x3f964a(0x10f)]);}};}async[_0x1000c0(0x49a)](_0x20b2f0){const _0x1a5dc3=_0x1000c0;var _0x4fb387,_0xc2a445;const _0x21b478=await this[_0x1a5dc3(0x140)][_0x1a5dc3(0x239)](this[_0x1a5dc3(0x10f)]),_0x3dec93=(_0x4fb387=_0x21b478==null?void 0x0:_0x21b478[_0x1a5dc3(0x122)])!=null?_0x4fb387:[],_0x44624f=(_0xc2a445=_0x21b478==null?void 0x0:_0x21b478[_0x1a5dc3(0x3ba)])!=null?_0xc2a445:null,_0x40843b=this[_0x1a5dc3(0x10f)];try{this[_0x1a5dc3(0xf6)](_0x44624f,_0x3dec93);}catch(_0x59af59){this[_0x1a5dc3(0x195)]['error'](_0x59af59);}const _0x43b8e6=this[_0x1a5dc3(0x212)]();if(_0x20b2f0){const _0x146dcc=_0x304f8d(this['_injector'],_0x40843b,this['_type'],_0x44624f,_0x3dec93,_0x43b8e6);return _0x146dcc instanceof _0x43333f?_0x146dcc[_0x1a5dc3(0x32e)]():(_0x146dcc instanceof _0x330ba1||_0x146dcc instanceof _0x4c9e17)&&_0x146dcc['resend'](),_0x146dcc;}return this['_injector'][_0x1a5dc3(0x134)](_0x2e26d4,_0x40843b,this[_0x1a5dc3(0x349)],_0x44624f,_0x3dec93,_0x43b8e6);}[_0x1000c0(0xf6)](_0x27fa54,_0xcd3281){const _0x51da93=_0x1000c0;var _0x527ef0,_0x14a652;const _0x6445a4=this[_0x51da93(0x3ab)][_0x51da93(0x183)][_0x51da93(0x385)](this['_compressMutationService']['interceptor'][_0x51da93(0x1e1)]()['COMPRESS_MUTATION_APPLY']);(_0x527ef0=_0x6445a4((_0x27fa54==null?void 0x0:_0x27fa54['mutations'])||[],null))==null||_0x527ef0[_0x51da93(0x24b)](_0x440155=>this[_0x51da93(0x401)][_0x51da93(0x19e)](_0x440155['id'],_0x440155[_0x51da93(0x1ec)])),(_0x14a652=_0x6445a4(_0xcd3281||[],null))==null||_0x14a652['forEach'](_0x288ff3=>this[_0x51da93(0x401)][_0x51da93(0x19e)](_0x288ff3['id'],_0x288ff3[_0x51da93(0x1ec)]));}};_0x5ce0f9=_0x4a339b([_0x3f6e97(0x3,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x3f6e97(0x4,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x24c)])),_0x3f6e97(0x5,_0x1ea985['Inject'](_0x1f6364['CompressMutationService'])),_0x3f6e97(0x6,_0x1ea985[_0x1000c0(0x368)](_0x592d59[_0x1000c0(0x279)])),_0x3f6e97(0x7,_0x1ea985[_0x1000c0(0x368)](_0x1f6364[_0x1000c0(0x39d)])),_0x3f6e97(0x8,_0x592d59['ILogService']),_0x3f6e97(0x9,_0x592d59[_0x1000c0(0x131)]),_0x3f6e97(0xa,_0x2c52d3[_0x1000c0(0x411)]),_0x3f6e97(0xb,_0x592d59[_0x1000c0(0x378)]),_0x3f6e97(0xc,_0x1ea985[_0x1000c0(0x49e)](_0x1572dd))],_0x5ce0f9);let _0x297a49=class extends _0x5ce0f9{constructor(_0x2c77dd,_0x52080b,_0x23b02b,_0x5ce13b,_0x450662,_0x3db2d6,_0x2409e1,_0x1a47e0,_0x11b286,_0xf6109,_0xcace73,_0x2ea7a0,_0x466890,_0x487500,_0x4ce19a,_0xa83af7,_0x15a91d){const _0x7dbafb=_0x1000c0;super(_0x2c77dd,_0x52080b,_0x23b02b,_0x5ce13b,_0x450662,_0x3db2d6,_0x2409e1,_0x1a47e0,_0x466890,_0x487500,_0x4ce19a,_0xa83af7,_0x15a91d),this[_0x7dbafb(0x10f)]=_0x2c77dd,this[_0x7dbafb(0x49b)]=_0x52080b,this[_0x7dbafb(0x129)]=_0x23b02b,this['_docStateChangeManagerService']=_0x11b286,this[_0x7dbafb(0x177)]=_0xf6109,this[_0x7dbafb(0x1ea)]=_0xcace73,this[_0x7dbafb(0x23c)]=_0x2ea7a0;}[_0x1000c0(0x212)](){const _0x304753=_0x1000c0,_0x3b10ae=super['_createHandler']();return _0x3b10ae[_0x304753(0x19a)]=_0x1b87c8=>this[_0x304753(0x177)][_0x304753(0x3fe)](_0x1b87c8),_0x3b10ae[_0x304753(0x350)]=_0x1afd50=>this[_0x304753(0x1ea)][_0x304753(0x205)](_0x1afd50),_0x3b10ae[_0x304753(0x289)]=_0x4ae30e=>this['_docSyncEditingCollabCursorService'][_0x304753(0x43f)](_0x4ae30e),_0x3b10ae[_0x304753(0x454)]=_0x1fb03f=>this[_0x304753(0x177)][_0x304753(0x322)](_0x1fb03f),_0x3b10ae;}async[_0x1000c0(0x224)](){const _0x753183=_0x1000c0,_0x3efd3e=await super[_0x753183(0x224)]();return this[_0x753183(0x438)][_0x753183(0x394)][_0x753183(0x161)](_0x3c7a49['takeUntil'](this['dispose$']))['subscribe'](_0x533e39=>{const _0x166797=_0x753183;if(_0x533e39==null)return;const {unitId:_0x40b389,redoState:_0x5e92a7,commandId:_0x5693d8}=_0x533e39;if(_0x40b389!==this[_0x166797(0x10f)])return;const _0x323501={'id':_0x5693d8,'type':_0x592d59[_0x166797(0x137)][_0x166797(0x306)],'params':{'unitId':_0x40b389,'actions':_0x5e92a7[_0x166797(0x24f)],'textRanges':null}};this[_0x166797(0x24d)](_0x323501);}),_0x3efd3e;}};_0x297a49=_0x4a339b([_0x3f6e97(0x3,_0x1ea985['Inject'](_0x1ea985[_0x1000c0(0x3ee)])),_0x3f6e97(0x4,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x24c)])),_0x3f6e97(0x5,_0x1ea985[_0x1000c0(0x368)](_0x1f6364[_0x1000c0(0x458)])),_0x3f6e97(0x6,_0x1ea985[_0x1000c0(0x368)](_0x592d59[_0x1000c0(0x279)])),_0x3f6e97(0x7,_0x1ea985[_0x1000c0(0x368)](_0x1f6364[_0x1000c0(0x39d)])),_0x3f6e97(0x8,_0x1ea985['Inject'](_0x30cc49[_0x1000c0(0x45d)])),_0x3f6e97(0x9,_0x1ea985['Inject'](_0x38f511)),_0x3f6e97(0xa,_0x1ea985[_0x1000c0(0x368)](_0x12dda8)),_0x3f6e97(0xb,_0x1ea985[_0x1000c0(0x368)](_0x148177)),_0x3f6e97(0xc,_0x592d59[_0x1000c0(0x1ef)]),_0x3f6e97(0xd,_0x592d59[_0x1000c0(0x131)]),_0x3f6e97(0xe,_0x2c52d3['IMessageService']),_0x3f6e97(0xf,_0x592d59[_0x1000c0(0x378)]),_0x3f6e97(0x10,_0x1ea985[_0x1000c0(0x49e)](_0x1572dd))],_0x297a49);let _0x2f64ee=class extends _0x5ce0f9{constructor(_0x4f1cda,_0x1b02bd,_0x4c219e,_0x3ccfd3,_0x2273bc,_0x9ee289,_0x29cc4c,_0x278fcd,_0x1ef8ec,_0x13b525,_0x52fa1e,_0x1d5ea6,_0x169e83,_0x5d6686){const _0xeab006=_0x1000c0;super(_0x4f1cda,_0x1b02bd,_0x4c219e,_0x3ccfd3,_0x2273bc,_0x9ee289,_0x29cc4c,_0x278fcd,_0x13b525,_0x52fa1e,_0x1d5ea6,_0x169e83,_0x5d6686),this[_0xeab006(0x10f)]=_0x4f1cda,this[_0xeab006(0x49b)]=_0x1b02bd,this['session']=_0x4c219e,this[_0xeab006(0x19c)]=_0x1ef8ec;}[_0x1000c0(0x212)](){const _0x512644=_0x1000c0,_0x5218b8=super[_0x512644(0x212)]();return _0x5218b8[_0x512644(0x350)]=_0xb16e79=>this['_sheetTransformSelectionsService'][_0x512644(0x205)](_0xb16e79),_0x5218b8;}async[_0x1000c0(0x224)](){const _0xced038=_0x1000c0,_0x58487f=await super[_0xced038(0x224)]();return this[_0xced038(0x215)](this[_0xced038(0x401)]['onCommandExecuted']((_0x547863,_0x3a5d04)=>{const _0x5d7ff4=_0xced038;if(_0x547863[_0x5d7ff4(0x49b)]!==_0x592d59[_0x5d7ff4(0x137)][_0x5d7ff4(0x306)]||_0x3a5d04!=null&&_0x3a5d04[_0x5d7ff4(0x35d)]||_0x3a5d04!=null&&_0x3a5d04['onlyLocal'])return;const _0x52cf70=_0x547863[_0x5d7ff4(0x1ec)];if((_0x52cf70==null?void 0x0:_0x52cf70[_0x5d7ff4(0x29b)])!==this[_0x5d7ff4(0x10f)])return;const _0x15413a=_0x547863,_0x51ebcf=this[_0x5d7ff4(0x3ab)][_0x5d7ff4(0x183)][_0x5d7ff4(0x385)](this[_0x5d7ff4(0x3ab)][_0x5d7ff4(0x183)]['getInterceptPoints']()[_0x5d7ff4(0x1e8)])([_0x15413a],null)||[_0x15413a];this[_0x5d7ff4(0x24d)](_0x51ebcf[0x0]);})),_0x58487f;}};_0x2f64ee=_0x4a339b([_0x3f6e97(0x3,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x3f6e97(0x4,_0x1ea985['Inject'](_0x322d5b[_0x1000c0(0x24c)])),_0x3f6e97(0x5,_0x1ea985['Inject'](_0x1f6364['CompressMutationService'])),_0x3f6e97(0x6,_0x1ea985[_0x1000c0(0x368)](_0x592d59[_0x1000c0(0x279)])),_0x3f6e97(0x7,_0x1ea985[_0x1000c0(0x368)](_0x1f6364['RevisionService'])),_0x3f6e97(0x8,_0x1ea985[_0x1000c0(0x368)](_0x20fcca)),_0x3f6e97(0x9,_0x592d59[_0x1000c0(0x1ef)]),_0x3f6e97(0xa,_0x592d59[_0x1000c0(0x131)]),_0x3f6e97(0xb,_0x2c52d3[_0x1000c0(0x411)]),_0x3f6e97(0xc,_0x592d59[_0x1000c0(0x378)]),_0x3f6e97(0xd,_0x1ea985['Optional'](_0x1572dd))],_0x2f64ee);const _0x3c3633=[_0x1000c0(0x2cf),_0x1000c0(0x167),'verdancy600','red300','blue400',_0x1000c0(0x397)];class _0x3c16e5 extends _0x592d59[_0x1000c0(0x450)]{constructor(){const _0x6b5889=_0x1000c0;super(...arguments),_0x40dfd7(this,_0x6b5889(0x44f),new Map()),_0x40dfd7(this,_0x6b5889(0x14e),0x0);}[_0x1000c0(0x1b3)](_0x207163){const _0x3fc1b1=_0x1000c0;if(this[_0x3fc1b1(0x44f)]['has'](_0x207163))return this[_0x3fc1b1(0x44f)][_0x3fc1b1(0x1de)](_0x207163);const _0x1af538=_0x3c3633[this[_0x3fc1b1(0x14e)]];return this[_0x3fc1b1(0x14e)]=(this[_0x3fc1b1(0x14e)]+0x1)%_0x3c3633[_0x3fc1b1(0x1d8)],this[_0x3fc1b1(0x44f)][_0x3fc1b1(0x4c2)](_0x207163,_0x1af538),_0x1af538;}}var _0x2d4a4f=Object[_0x1000c0(0x1a1)],_0x41363a=Object[_0x1000c0(0x2d4)],_0x155778=(_0x2d937b,_0x2cc78f,_0x334214,_0x30fb2c)=>{for(var _0x1b83e9=_0x30fb2c>0x1?void 0x0:_0x30fb2c?_0x41363a(_0x2cc78f,_0x334214):_0x2cc78f,_0x14acb1=_0x2d937b['length']-0x1,_0x1e158a;_0x14acb1>=0x0;_0x14acb1--)(_0x1e158a=_0x2d937b[_0x14acb1])&&(_0x1b83e9=(_0x30fb2c?_0x1e158a(_0x2cc78f,_0x334214,_0x1b83e9):_0x1e158a(_0x1b83e9))||_0x1b83e9);return _0x30fb2c&&_0x1b83e9&&_0x2d4a4f(_0x2cc78f,_0x334214,_0x1b83e9),_0x1b83e9;},_0x4267db=(_0x5e067f,_0xb78c80)=>(_0x399a80,_0x138b3e)=>_0xb78c80(_0x399a80,_0x138b3e,_0x5e067f);const _0x4ef0b4=0x12c,_0x21eafd=0x64,_0x4d21de=()=>{let _0x1fb71d=[],_0x30fc76=!0x1;return _0x173a7b=>{const _0x4e055c=_0x492d;_0x1fb71d[_0x4e055c(0x1a6)](_0x173a7b),_0x30fc76||(_0x30fc76=!0x0,setTimeout(()=>{const _0x384c46=_0x4e055c;_0x1fb71d[_0x384c46(0x24b)](_0x137b11=>_0x137b11()),_0x1fb71d=[],_0x30fc76=!0x1;}));};};let _0xe51747=class extends _0x592d59[_0x1000c0(0x2cd)]{constructor(_0xd5fcb1,_0x15faa5,_0xc92e8a,_0xeeef91,_0x3e97c7,_0x49ad4e,_0x2e2637,_0x1ff06e){const _0x1f0fcf=_0x1000c0;super(),_0x40dfd7(this,_0x1f0fcf(0x37e),!0x1),_0x40dfd7(this,'_init',!0x1),_0x40dfd7(this,'_cursorInfo$',new _0x3c7a49['BehaviorSubject'](new Map())),_0x40dfd7(this,_0x1f0fcf(0x1ee),this[_0x1f0fcf(0x31d)][_0x1f0fcf(0x32c)]()),_0x40dfd7(this,_0x1f0fcf(0x40c),new _0x3c7a49[(_0x1f0fcf(0x35f))]([])),_0x40dfd7(this,'roomMembers$',this[_0x1f0fcf(0x40c)]['pipe'](_0x3c7a49['debounceTime'](_0x4ef0b4))),_0x40dfd7(this,'_updateLocalCursor',_0x5e5cd3((_0xf3a66e,_0x1607a5)=>{const _0x4ad294=_0x1f0fcf,_0x44c1f8={'eventID':_0x1f6364[_0x4ad294(0x159)][_0x4ad294(0x157)],'data':{'unitID':this[_0x4ad294(0x10f)],'memberID':this[_0x4ad294(0x3ae)][_0x4ad294(0x35c)](),'selection':_0x475fb6[_0x4ad294(0x35a)](_0xf3a66e,_0x1607a5[_0x4ad294(0x3ff)])}};this[_0x4ad294(0x3ae)][_0x4ad294(0x16a)](_0x44c1f8,this[_0x4ad294(0x10f)]);},_0x21eafd)),(this[_0x1f0fcf(0x10f)]=_0xd5fcb1,this['_session']=_0x15faa5,this[_0x1f0fcf(0x27f)]=_0xc92e8a,this[_0x1f0fcf(0x3e4)]=_0xeeef91,this[_0x1f0fcf(0x29e)]=_0x3e97c7,this[_0x1f0fcf(0x40b)]=_0x49ad4e,this['_commandService']=_0x2e2637,this[_0x1f0fcf(0x431)]=_0x1ff06e);}get[_0x1000c0(0x483)](){const _0x1c15f9=_0x1000c0;return this[_0x1c15f9(0x31d)]['getValue']();}get['roomMembers'](){const _0x19e482=_0x1000c0;return this['_roomMembers$'][_0x19e482(0x21e)]();}[_0x1000c0(0x36f)](){const _0x509d27=_0x1000c0;super['dispose'](),this[_0x509d27(0x31d)][_0x509d27(0x117)](new Map()),this[_0x509d27(0x31d)]['complete'](),this[_0x509d27(0x40c)][_0x509d27(0x117)]([]),this['_roomMembers$'][_0x509d27(0x4b5)]();}[_0x1000c0(0x150)](){const _0x3ebf6b=_0x1000c0;this['_init']||(this['_init']=!0x0,this[_0x3ebf6b(0x3ae)][_0x3ebf6b(0x2e0)]['pipe'](_0x3c7a49['takeUntil'](this[_0x3ebf6b(0x338)]))[_0x3ebf6b(0x42f)](_0x30d637=>{const _0x4a858b=_0x3ebf6b;_0x30d637===_0x28f044[_0x4a858b(0x243)]?this[_0x4a858b(0x473)]():this[_0x4a858b(0x15d)]();}),this[_0x3ebf6b(0x3ae)][_0x3ebf6b(0x253)][_0x3ebf6b(0x161)](_0x3c7a49[_0x3ebf6b(0x3ca)](this[_0x3ebf6b(0x338)]))[_0x3ebf6b(0x42f)](_0x6c024f=>{const _0x49e83a=_0x3ebf6b,_0xa8fd6d=_0x6c024f[_0x49e83a(0x263)];_0xa8fd6d===_0x1f6364[_0x49e83a(0x159)][_0x49e83a(0x157)]&&this['_onCursorUpdate'](_0x6c024f),_0xa8fd6d===_0x1f6364[_0x49e83a(0x159)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x6c024f);}),this[_0x3ebf6b(0x2ac)](),this['disposeWithMe'](this[_0x3ebf6b(0x401)][_0x3ebf6b(0x178)](_0x5a3578=>{const _0x5d6a1e=_0x3ebf6b;if(this['_online']&&_0x5a3578['id']===_0x5e4af3[_0x5d6a1e(0x4b6)]['id']&&_0x5a3578[_0x5d6a1e(0x1ec)]['unitId']===this[_0x5d6a1e(0x10f)]){const _0x3d6b2c=_0x5a3578['params'];this['_updateLocalCursor'](_0x3d6b2c[_0x5d6a1e(0x34f)],_0x3d6b2c[_0x5d6a1e(0x21d)][0x0]);}})));}[_0x1000c0(0x3d8)](_0x5d53ab){const _0x1934c6=_0x1000c0;var _0xf65a68,_0x473396;const {memberID:_0x1f08dd,selection:_0x4232ab}=_0x5d53ab[_0x1934c6(0x314)],{sheetName:_0xc34fb7,range:_0x550e8b}=_0x475fb6[_0x1934c6(0x2d9)](_0x4232ab),_0x4ec478={'name':(_0x473396=(_0xf65a68=this['_memberService'][_0x1934c6(0x1cc)](this[_0x1934c6(0x10f)],_0x1f08dd))==null?void 0x0:_0xf65a68[_0x1934c6(0x3e7)])!=null?_0x473396:_0x1934c6(0x2d0),'range':this['_getMergeRange'](_0xc34fb7,_0x550e8b),'sheetID':_0xc34fb7,'color':this['_colorAssignService'][_0x1934c6(0x1b3)](_0x1f08dd),'selection':_0x4232ab},_0x545442=this[_0x1934c6(0x483)];_0x545442[_0x1934c6(0x4c2)](_0x1f08dd,_0x4ec478),this[_0x1934c6(0x31d)][_0x1934c6(0x117)](_0x545442);}[_0x1000c0(0x37d)](_0x1b005c){const _0x26e60b=_0x1000c0,{memberID:_0x471d7d}=_0x1b005c['data'],_0x10a412=this['cursorInfo'];_0x10a412[_0x26e60b(0x234)](_0x471d7d),this[_0x26e60b(0x31d)][_0x26e60b(0x117)](_0x10a412);}['_getMergeRange'](_0x536c7d,_0x29355a){const _0x168f9f=_0x1000c0;var _0x177a19,_0x5d8564;const _0x1428e1=(_0x5d8564=(_0x177a19=this[_0x168f9f(0x40b)][_0x168f9f(0x332)](this[_0x168f9f(0x10f)]))==null?void 0x0:_0x177a19[_0x168f9f(0x1a9)](_0x536c7d))==null?void 0x0:_0x5d8564['getMergeData']();return(_0x1428e1==null?void 0x0:_0x1428e1['find'](_0x44e740=>_0x592d59['Rectangle'][_0x168f9f(0x339)](_0x44e740,_0x29355a)))||_0x29355a;}['_onRefRangeChange'](){const _0x1392da=_0x1000c0,_0x944d7=new _0x592d59['DisposableCollection'](),_0x22b9c1=_0x4d21de(),_0x1b8dad=()=>{const _0xaa26bc=_0x492d;_0x944d7[_0xaa26bc(0x36f)]();const _0x44d6a1=(_0x376ed4,_0x131eef,_0x44378a,_0x1a847f)=>{const _0x2325b0=_0xaa26bc;let _0x5aa981=[];switch(_0x376ed4['id']){case _0x5e4af3[_0x2325b0(0x3e3)][_0x2325b0(0x3cd)]:{_0x5aa981=_0x5e4af3[_0x2325b0(0x16f)](_0x376ed4,_0x1a847f);break;}case _0x5e4af3['EffectRefRangId'][_0x2325b0(0x184)]:{_0x5aa981=_0x5e4af3[_0x2325b0(0x2db)](_0x376ed4,_0x1a847f);break;}case _0x5e4af3['EffectRefRangId'][_0x2325b0(0x1a7)]:{_0x5aa981=_0x5e4af3[_0x2325b0(0x42e)](_0x376ed4,_0x1a847f);break;}case _0x5e4af3['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x5aa981=_0x5e4af3['handleInsertRangeMoveDown'](_0x376ed4,_0x1a847f);break;}case _0x5e4af3[_0x2325b0(0x3e3)][_0x2325b0(0x4d8)]:{_0x5aa981=_0x5e4af3[_0x2325b0(0x1e9)](_0x376ed4,_0x1a847f);break;}case _0x5e4af3[_0x2325b0(0x3e3)][_0x2325b0(0x169)]:{_0x5aa981=_0x5e4af3['handleInsertRow'](_0x376ed4,_0x1a847f);break;}case _0x5e4af3[_0x2325b0(0x3e3)][_0x2325b0(0x365)]:{_0x5aa981=_0x5e4af3[_0x2325b0(0x1d0)](_0x376ed4,_0x1a847f);break;}case _0x5e4af3[_0x2325b0(0x3e3)][_0x2325b0(0x4b9)]:{_0x5aa981=_0x5e4af3[_0x2325b0(0x3f0)](_0x376ed4,_0x1a847f);break;}case _0x5e4af3[_0x2325b0(0x3e3)][_0x2325b0(0x1cb)]:{_0x5aa981=_0x5e4af3[_0x2325b0(0x261)](_0x376ed4,_0x1a847f);break;}}const _0x4074f5=_0x5e4af3[_0x2325b0(0x1aa)](_0x5aa981,_0x1a847f),_0x3fb7ef=this[_0x2325b0(0x483)]['get'](_0x131eef);if(_0x3fb7ef&&_0x4074f5){const _0x137bb7={..._0x3fb7ef,'range':_0x4074f5};this[_0x2325b0(0x483)]['set'](_0x131eef,_0x137bb7),_0x22b9c1(()=>{const _0x3f51d3=_0x2325b0,_0x1dcbca=this[_0x3f51d3(0x431)][_0x3f51d3(0x345)](_0x4074f5,_0x438b24=>(_0x1dcbca['dispose'](),_0x44d6a1(_0x438b24,_0x131eef,_0x44378a,_0x4074f5)));_0x944d7[_0x3f51d3(0x290)](_0x1dcbca);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0xaa26bc(0x24b)]((_0xd380b,_0x5dc3f7)=>{const _0x2932a4=_0xaa26bc,{range:_0x2b1201,sheetID:_0x9b5e0a}=_0xd380b,_0xda224e=this[_0x2932a4(0x431)]['registerRefRange'](_0x2b1201,_0x74d1c5=>(_0xda224e[_0x2932a4(0x36f)](),_0x44d6a1(_0x74d1c5,_0x5dc3f7,_0x9b5e0a,_0x2b1201)));_0x944d7[_0x2932a4(0x290)](_0xda224e);});};this[_0x1392da(0x215)](_0x592d59[_0x1392da(0x29f)](this[_0x1392da(0x31d)][_0x1392da(0x42f)](()=>{_0x1b8dad();})));}[_0x1000c0(0x473)](){const _0x518f76=_0x1000c0;var _0x2298e0,_0x13027e;if(this[_0x518f76(0x37e)]=!0x0,((_0x2298e0=this[_0x518f76(0x40b)]['getFocusedUnit']())==null?void 0x0:_0x2298e0[_0x518f76(0x270)]())!==this[_0x518f76(0x10f)])return;const _0x533a57=(_0x13027e=this[_0x518f76(0x27f)]['get'](_0x5e4af3[_0x518f76(0x471)])[_0x518f76(0x3bb)]())==null?void 0x0:_0x13027e[0x0],_0x4287de=this['_univerInstanceService']['getCurrentUnitForType'](_0x592d59['UniverInstanceType'][_0x518f76(0x149)])[_0x518f76(0x3c5)]();_0x533a57&&_0x4287de&&this[_0x518f76(0x468)](_0x4287de[_0x518f76(0x449)](),_0x533a57);}[_0x1000c0(0x15d)](){const _0x3799df=_0x1000c0;this[_0x3799df(0x37e)]=!0x1;}};_0xe51747=_0x155778([_0x4267db(0x2,_0x1ea985['Inject'](_0x1ea985[_0x1000c0(0x3ee)])),_0x4267db(0x3,_0x1ea985['Inject'](_0x3c16e5)),_0x4267db(0x4,_0x1ea985[_0x1000c0(0x368)](_0x2539c6)),_0x4267db(0x5,_0x592d59[_0x1000c0(0x305)]),_0x4267db(0x6,_0x592d59[_0x1000c0(0x131)]),_0x4267db(0x7,_0x1ea985['Inject'](_0x5e4af3[_0x1000c0(0x45a)]))],_0xe51747);var _0x47516f=Object[_0x1000c0(0x1a1)],_0x337b10=Object['getOwnPropertyDescriptor'],_0x266cfa=(_0x5db51f,_0x17b199,_0x374952,_0x5d8b6b)=>{const _0x372bbd=_0x1000c0;for(var _0xf36936=_0x5d8b6b>0x1?void 0x0:_0x5d8b6b?_0x337b10(_0x17b199,_0x374952):_0x17b199,_0x5a2cf1=_0x5db51f[_0x372bbd(0x1d8)]-0x1,_0x5cfca5;_0x5a2cf1>=0x0;_0x5a2cf1--)(_0x5cfca5=_0x5db51f[_0x5a2cf1])&&(_0xf36936=(_0x5d8b6b?_0x5cfca5(_0x17b199,_0x374952,_0xf36936):_0x5cfca5(_0xf36936))||_0xf36936);return _0x5d8b6b&&_0xf36936&&_0x47516f(_0x17b199,_0x374952,_0xf36936),_0xf36936;},_0x357b8a=(_0x4177c6,_0x52fcd2)=>(_0x540931,_0x3b8ab9)=>_0x52fcd2(_0x540931,_0x3b8ab9,_0x4177c6);const _0x4cba83=0x12c,_0x36c9e1=0x64;let _0x185328=class extends _0x592d59[_0x1000c0(0x2cd)]{constructor(_0x243229,_0x32d829,_0x2f4a31,_0x47da7d,_0x67534,_0x43588f,_0x5a4b2a,_0x56e04b,_0x245a00){const _0x3df9b0=_0x1000c0;super(),_0x40dfd7(this,_0x3df9b0(0x37e),!0x1),_0x40dfd7(this,'_init',!0x1),_0x40dfd7(this,_0x3df9b0(0x31d),new _0x3c7a49[(_0x3df9b0(0x35f))](new Map())),_0x40dfd7(this,'cursorInfo$',this[_0x3df9b0(0x31d)][_0x3df9b0(0x32c)]()),_0x40dfd7(this,_0x3df9b0(0x40c),new _0x3c7a49[(_0x3df9b0(0x35f))]([])),_0x40dfd7(this,'roomMembers$',this[_0x3df9b0(0x40c)][_0x3df9b0(0x161)](_0x3c7a49[_0x3df9b0(0x37b)](_0x4cba83))),_0x40dfd7(this,_0x3df9b0(0x468),_0x5e5cd3(_0x19a9c2=>{const _0x45ad6c=_0x3df9b0,_0x5a9ee9={'eventID':_0x1f6364[_0x45ad6c(0x159)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x45ad6c(0x10f)],'memberID':this[_0x45ad6c(0x3ae)]['getMemberID'](),'selection':_0x3da729(_0x19a9c2)}};this[_0x45ad6c(0x3ae)][_0x45ad6c(0x16a)](_0x5a9ee9,this[_0x45ad6c(0x10f)]);},_0x36c9e1)),(this['unitID']=_0x243229,this['_session']=_0x32d829,this[_0x3df9b0(0x27f)]=_0x2f4a31,this[_0x3df9b0(0x3e4)]=_0x47da7d,this[_0x3df9b0(0x29e)]=_0x67534,this['_syncEditingCollabCursorService']=_0x43588f,this[_0x3df9b0(0x258)]=_0x5a4b2a,this['_univerInstanceService']=_0x56e04b,this['_commandService']=_0x245a00);}get['cursorInfo'](){const _0x277a77=_0x1000c0;return this[_0x277a77(0x31d)]['getValue']();}get[_0x1000c0(0x2a7)](){const _0xdc9959=_0x1000c0;return this[_0xdc9959(0x40c)]['getValue']();}[_0x1000c0(0x36f)](){const _0x5294c3=_0x1000c0;super[_0x5294c3(0x36f)](),this[_0x5294c3(0x31d)][_0x5294c3(0x117)](new Map()),this[_0x5294c3(0x31d)][_0x5294c3(0x4b5)](),this[_0x5294c3(0x40c)][_0x5294c3(0x117)]([]),this[_0x5294c3(0x40c)]['complete']();}[_0x1000c0(0x150)](){const _0x393d0f=_0x1000c0;this[_0x393d0f(0x224)]||(this[_0x393d0f(0x224)]=!0x0,this['_session'][_0x393d0f(0x2e0)][_0x393d0f(0x161)](_0x3c7a49['takeUntil'](this[_0x393d0f(0x338)]))[_0x393d0f(0x42f)](_0x4e7520=>{const _0x58edf5=_0x393d0f;_0x4e7520===_0x28f044[_0x58edf5(0x243)]?this[_0x58edf5(0x473)]():this[_0x58edf5(0x15d)]();}),this[_0x393d0f(0x3ae)][_0x393d0f(0x253)][_0x393d0f(0x161)](_0x3c7a49[_0x393d0f(0x3ca)](this[_0x393d0f(0x338)]))[_0x393d0f(0x42f)](_0x4bc98e=>{const _0x391fba=_0x393d0f,_0x4ee902=_0x4bc98e[_0x391fba(0x263)];_0x4ee902===_0x1f6364[_0x391fba(0x159)][_0x391fba(0x157)]&&this[_0x391fba(0x3d8)](_0x4bc98e),_0x4ee902===_0x1f6364[_0x391fba(0x159)][_0x391fba(0x133)]&&this[_0x391fba(0x37d)](_0x4bc98e);}),this[_0x393d0f(0x215)](this[_0x393d0f(0x401)][_0x393d0f(0x178)](_0x497159=>{const _0xcd10e3=_0x393d0f,_0x32ec81=_0x497159[_0xcd10e3(0x1ec)];_0x32ec81!=null&&this[_0xcd10e3(0x37e)]&&_0x497159['id']===_0x30cc49[_0xcd10e3(0x3df)]['id']&&_0x32ec81['unitId']===this[_0xcd10e3(0x10f)]&&_0x32ec81[_0xcd10e3(0x44a)]===!0x1&&this['_updateLocalCursor'](_0x32ec81[_0xcd10e3(0x1f1)]);})),this[_0x393d0f(0x260)][_0x393d0f(0x479)][_0x393d0f(0x161)](_0x3c7a49['takeUntil'](this[_0x393d0f(0x338)]))['subscribe'](_0x3b1eae=>{const _0x3370b4=_0x393d0f;if((_0x3b1eae==null?void 0x0:_0x3b1eae[_0x3370b4(0x10f)])!==this[_0x3370b4(0x10f)])return;const _0x2a88a2={'eventID':_0x1f6364[_0x3370b4(0x159)][_0x3370b4(0x157)],'data':_0x3b1eae};this[_0x3370b4(0x3d8)](_0x2a88a2);}),this['disposeWithMe'](this['_commandService'][_0x393d0f(0x178)](_0x484621=>{const _0x5a1aa8=_0x393d0f;if(_0x484621[_0x5a1aa8(0x1ec)]==null)return;const _0x3c705a=_0x484621[_0x5a1aa8(0x1ec)];if(_0x484621['id']!==_0x30cc49[_0x5a1aa8(0x48b)]['id']||_0x3c705a[_0x5a1aa8(0x29b)]!==this[_0x5a1aa8(0x10f)])return;const _0x16dd1b={'id':_0x5a1aa8(0x236),'params':_0x3c705a},_0x3f807b=this[_0x5a1aa8(0x483)];for(const [_0xe642af,_0x107d19]of _0x3f807b){const _0x279b5d={'id':_0x5a1aa8(0x236),'params':{'unitId':this[_0x5a1aa8(0x10f)],'actions':null,'textRanges':_0x107d19['ranges']}},_0x188153=this['_transformService'][_0x5a1aa8(0x2aa)](_0x16dd1b,_0x279b5d,!0x1);if(_0x1f6364[_0x5a1aa8(0x423)](_0x188153))throw _0x188153[_0x5a1aa8(0x343)];_0x3f807b[_0x5a1aa8(0x4c2)](_0xe642af,{..._0x107d19,'ranges':_0x188153[_0x5a1aa8(0x315)][_0x5a1aa8(0x1ec)][_0x5a1aa8(0x235)]});}queueMicrotask(()=>{const _0x1163e9=_0x5a1aa8;this['_cursorInfo$'][_0x1163e9(0x117)](_0x3f807b);});})));}[_0x1000c0(0x3d8)](_0x164b87){const _0x5bb543=_0x1000c0;var _0x214cbb,_0x54ac18;const {memberID:_0x4b572d,selection:_0x347efb}=_0x164b87['data'],_0x2d2a64=_0x23b46f(_0x347efb),_0xaa9d20=(_0x54ac18=(_0x214cbb=this['_memberService'][_0x5bb543(0x1cc)](this['unitID'],_0x4b572d))==null?void 0x0:_0x214cbb[_0x5bb543(0x3e7)])!=null?_0x54ac18:_0x5bb543(0x2d0),_0x47f45f={'color':this[_0x5bb543(0x3e4)][_0x5bb543(0x1b3)](_0x4b572d),'name':_0xaa9d20,'ranges':_0x2d2a64},_0x394ca0=this[_0x5bb543(0x483)];_0x394ca0['set'](_0x4b572d,_0x47f45f),this['_cursorInfo$'][_0x5bb543(0x117)](_0x394ca0);}['_onCursorDelete'](_0x3f5ec2){const _0xbea08a=_0x1000c0,{memberID:_0x181f22}=_0x3f5ec2[_0xbea08a(0x314)],_0x440e0e=this[_0xbea08a(0x483)];_0x440e0e[_0xbea08a(0x234)](_0x181f22),this['_cursorInfo$'][_0xbea08a(0x117)](_0x440e0e);}[_0x1000c0(0x473)](){const _0x56f710=_0x1000c0;var _0x5885bc;if(this[_0x56f710(0x37e)]=!0x0,((_0x5885bc=this[_0x56f710(0x40b)][_0x56f710(0x1bb)]())==null?void 0x0:_0x5885bc[_0x56f710(0x270)]())!==this[_0x56f710(0x10f)])return;const _0x597b4e=this[_0x56f710(0x27f)][_0x56f710(0x1de)](_0x30cc49[_0x56f710(0x4c0)])[_0x56f710(0x3bb)](),_0x1df1ca=_0x597b4e==null?void 0x0:_0x597b4e['map'](_0x30cc49[_0x56f710(0x174)]);Array[_0x56f710(0x40e)](_0x1df1ca)&&_0x1df1ca['length']>0x0&&this[_0x56f710(0x468)](_0x1df1ca);}['_toggleOffline'](){const _0x5e804c=_0x1000c0;this[_0x5e804c(0x37e)]=!0x1;}};_0x185328=_0x266cfa([_0x357b8a(0x2,_0x1ea985[_0x1000c0(0x368)](_0x1ea985['Injector'])),_0x357b8a(0x3,_0x1ea985[_0x1000c0(0x368)](_0x3c16e5)),_0x357b8a(0x4,_0x1ea985[_0x1000c0(0x368)](_0x2539c6)),_0x357b8a(0x5,_0x1ea985[_0x1000c0(0x368)](_0x148177)),_0x357b8a(0x6,_0x1f6364[_0x1000c0(0x34e)]),_0x357b8a(0x7,_0x592d59[_0x1000c0(0x305)]),_0x357b8a(0x8,_0x592d59[_0x1000c0(0x131)])],_0x185328);var _0x29d5c9=Object[_0x1000c0(0x1a1)],_0x1254f6=Object['getOwnPropertyDescriptor'],_0x2a1fda=(_0x1b20ab,_0x1ea602,_0x506212,_0x4fb5f3)=>{const _0x421f76=_0x1000c0;for(var _0x1b98c0=_0x4fb5f3>0x1?void 0x0:_0x4fb5f3?_0x1254f6(_0x1ea602,_0x506212):_0x1ea602,_0x5ac6c6=_0x1b20ab[_0x421f76(0x1d8)]-0x1,_0x1a3ab6;_0x5ac6c6>=0x0;_0x5ac6c6--)(_0x1a3ab6=_0x1b20ab[_0x5ac6c6])&&(_0x1b98c0=(_0x4fb5f3?_0x1a3ab6(_0x1ea602,_0x506212,_0x1b98c0):_0x1a3ab6(_0x1b98c0))||_0x1b98c0);return _0x4fb5f3&&_0x1b98c0&&_0x29d5c9(_0x1ea602,_0x506212,_0x1b98c0),_0x1b98c0;},_0x28d58d=(_0x1c2347,_0x5444c5)=>(_0x524189,_0x301456)=>_0x5444c5(_0x524189,_0x301456,_0x1c2347);let _0xc137f8=class extends _0x592d59[_0x1000c0(0x2cd)]{constructor(_0x40a6d9,_0x82539f,_0x47046a){const _0x10d16c=_0x1000c0;super(),_0x40dfd7(this,_0x10d16c(0x2ce),new Map()),_0x40dfd7(this,'_entityInit$',new _0x3c7a49['Subject']()),(this[_0x10d16c(0x40b)]=_0x40a6d9,this[_0x10d16c(0x27f)]=_0x82539f,this[_0x10d16c(0x2c8)]=_0x47046a,this[_0x10d16c(0x224)]());}[_0x1000c0(0x36f)](){const _0x31b9cb=_0x1000c0;super[_0x31b9cb(0x36f)](),this[_0x31b9cb(0x38b)][_0x31b9cb(0x4b5)](),this[_0x31b9cb(0x2ce)][_0x31b9cb(0x24b)](_0x2f8487=>_0x2f8487[_0x31b9cb(0x36f)]());}[_0x1000c0(0x2e1)](_0x5cae1c){const _0x5176ba=_0x1000c0;return this['_entities'][_0x5176ba(0x321)](_0x5cae1c)?this[_0x5176ba(0x2ce)]['get'](_0x5cae1c)[_0x5176ba(0x1ee)]:this['_entityInit$'][_0x5176ba(0x161)](_0x3c7a49[_0x5176ba(0x3d5)](_0x5acace=>_0x5acace['unitID']===_0x5cae1c),_0x3c7a49[_0x5176ba(0x32b)](_0x588845=>_0x588845[_0x5176ba(0x1ee)]));}[_0x1000c0(0x224)](){const _0x34f52b=_0x1000c0;this['_univerInstanceService'][_0x34f52b(0x13e)](_0x592d59[_0x34f52b(0x1b5)][_0x34f52b(0x149)])[_0x34f52b(0x161)](_0x3c7a49[_0x34f52b(0x3ca)](this[_0x34f52b(0x338)]))[_0x34f52b(0x42f)](async _0x2e61db=>{const _0x1656ea=_0x34f52b,_0xfedccb=_0x2e61db[_0x1656ea(0x270)](),_0x5095af=await this[_0x1656ea(0x3a1)](_0xfedccb);this[_0x1656ea(0x38b)][_0x1656ea(0x117)](_0x5095af),this[_0x1656ea(0x2ce)]['set'](_0xfedccb,_0x5095af);}),this[_0x34f52b(0x40b)][_0x34f52b(0x13e)](_0x592d59[_0x34f52b(0x1b5)]['UNIVER_DOC'])['pipe'](_0x3c7a49[_0x34f52b(0x3ca)](this[_0x34f52b(0x338)]))[_0x34f52b(0x161)](_0x3c7a49[_0x34f52b(0x3d5)](_0x488e3a=>!_0x488e3a['getUnitId']()['startsWith']('__')))[_0x34f52b(0x42f)](async _0x8aed7d=>{const _0x54cee0=_0x34f52b,_0x10bd27=_0x8aed7d['getUnitId'](),_0x2f7d23=await this['_startDocCollabCursor'](_0x10bd27);this[_0x54cee0(0x38b)][_0x54cee0(0x117)](_0x2f7d23),this[_0x54cee0(0x2ce)]['set'](_0x10bd27,_0x2f7d23);}),_0x3c7a49['merge'](this[_0x34f52b(0x40b)]['getTypeOfUnitDisposed$'](_0x592d59[_0x34f52b(0x1b5)]['UNIVER_DOC']),this[_0x34f52b(0x40b)][_0x34f52b(0x341)](_0x592d59[_0x34f52b(0x1b5)][_0x34f52b(0x149)]))[_0x34f52b(0x161)](_0x3c7a49[_0x34f52b(0x3ca)](this[_0x34f52b(0x338)]))[_0x34f52b(0x42f)](_0x3fe220=>{const _0x16d675=_0x34f52b,_0x55aeb5=_0x3fe220['getUnitId'](),_0x3fd31e=this['_entities'][_0x16d675(0x1de)](_0x55aeb5);_0x3fd31e&&(_0x3fd31e[_0x16d675(0x36f)](),this[_0x16d675(0x2ce)]['delete'](_0x55aeb5));});}async['_startSheetCollabCursor'](_0x58552f){const _0x367b11=_0x1000c0,_0x6fb22d=await this[_0x367b11(0x2c8)][_0x367b11(0x1c2)](_0x58552f),_0x2ac195=this[_0x367b11(0x27f)][_0x367b11(0x134)](_0xe51747,_0x58552f,_0x6fb22d);return _0x2ac195[_0x367b11(0x150)](),_0x2ac195;}async[_0x1000c0(0x28e)](_0x1ba18d){const _0x5d2e50=_0x1000c0,_0xadc18c=await this['_collabSessionService'][_0x5d2e50(0x1c2)](_0x1ba18d),_0xcc4de3=this['_injector']['createInstance'](_0x185328,_0x1ba18d,_0xadc18c);return _0xcc4de3[_0x5d2e50(0x150)](),_0xcc4de3;}};_0xc137f8=_0x2a1fda([_0x592d59[_0x1000c0(0x47b)](_0x592d59['LifecycleStages']['Starting'],_0xc137f8),_0x28d58d(0x0,_0x592d59[_0x1000c0(0x305)]),_0x28d58d(0x1,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x28d58d(0x2,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x272)]))],_0xc137f8);const _0x201da5=0x14,_0x4e31bd=0xc8,_0x43b144=0x4,_0x388cb9=0x5;function _0x2eccfe(_0x3f07d1,_0x5df09c){const _0x16f816=_0x1000c0;let {radius:_0x4bb854,width:_0xaed3ec,height:_0x21eb56}=_0x5df09c;_0x4bb854=_0x4bb854!=null?_0x4bb854:0x0,_0xaed3ec=_0xaed3ec!=null?_0xaed3ec:0x1e,_0x21eb56=_0x21eb56!=null?_0x21eb56:0x1e;let _0x3978f0=0x0,_0x6f3261=0x0,_0x3fab82=0x0;_0x3978f0=_0x6f3261=_0x3fab82=Math[_0x16f816(0x42d)](_0x4bb854,_0xaed3ec/0x2,_0x21eb56/0x2),_0x3f07d1[_0x16f816(0x3b1)](),_0x3f07d1[_0x16f816(0x2e7)](_0x3978f0,0x0),_0x3f07d1['lineTo'](_0xaed3ec-_0x6f3261,0x0),_0x3f07d1['arc'](_0xaed3ec-_0x6f3261,_0x6f3261,_0x6f3261,Math['PI']*0x3/0x2,0x0,!0x1),_0x3f07d1[_0x16f816(0xfb)](_0xaed3ec,_0x21eb56-_0x3fab82),_0x3f07d1[_0x16f816(0x1f4)](_0xaed3ec-_0x3fab82,_0x21eb56-_0x3fab82,_0x3fab82,0x0,Math['PI']/0x2,!0x1),_0x3f07d1[_0x16f816(0xfb)](0x0,_0x21eb56),_0x3f07d1[_0x16f816(0xfb)](0x0,_0x3978f0),_0x3f07d1['arc'](_0x3978f0,_0x3978f0,_0x3978f0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3f07d1[_0x16f816(0x43b)](),_0x5df09c[_0x16f816(0x15e)]&&(_0x3f07d1[_0x16f816(0x26c)](),_0x3f07d1[_0x16f816(0x48f)]=_0x5df09c[_0x16f816(0x15e)],_0x5df09c[_0x16f816(0x268)]===_0x16f816(0x308)?_0x3f07d1[_0x16f816(0x15e)](_0x16f816(0x308)):_0x3f07d1['fill'](),_0x3f07d1[_0x16f816(0x100)]());}class _0x49ec11 extends _0x5c59d0[_0x1000c0(0x208)]{constructor(_0x4f017e,_0x4f13fc){const _0x47627b=_0x1000c0;super(_0x4f017e,_0x4f13fc),_0x40dfd7(this,_0x47627b(0x2a0)),_0x40dfd7(this,'text'),(this['color']=_0x4f13fc==null?void 0x0:_0x4f13fc[_0x47627b(0x2a0)],this[_0x47627b(0x229)]=_0x4f13fc==null?void 0x0:_0x4f13fc[_0x47627b(0x229)]);}static[_0x1000c0(0x3b6)](_0x3727a9,_0x595209){const _0x3372fc=_0x1000c0,{text:_0x4c4888,color:_0x427f32}=_0x595209;_0x3727a9['save'](),_0x3727a9[_0x3372fc(0x1f8)]=_0x3372fc(0x1b2);const _0x484c1f=_0x3727a9[_0x3372fc(0x3f1)](_0x4c4888)[_0x3372fc(0x464)],_0x31a380=Math['min'](_0x484c1f+0x2*_0x43b144,_0x4e31bd);_0x2eccfe(_0x3727a9,{'height':_0x201da5,'radius':0x4,'width':_0x31a380,'fill':_0x427f32,'evented':!0x1}),_0x3727a9[_0x3372fc(0x48f)]=_0x3372fc(0x121);const _0x424e21=_0x43b144,_0x900bbd=_0x201da5-_0x388cb9,_0xe22e80=_0x4e31bd-0x2*_0x43b144;if(_0x484c1f>_0xe22e80){let _0x7fcdc6='',_0x312ef8=0x0;for(const _0x1ffcaf of _0x4c4888){const _0xe67b42=_0x3727a9['measureText'](_0x1ffcaf)['width'];if(_0x312ef8+_0xe67b42<=_0xe22e80-_0x3727a9[_0x3372fc(0x3f1)](_0x3372fc(0x301))[_0x3372fc(0x464)])_0x7fcdc6+=_0x1ffcaf,_0x312ef8+=_0xe67b42;else{_0x7fcdc6+='...';break;}}_0x3727a9[_0x3372fc(0x4c5)](_0x7fcdc6,_0x424e21,_0x900bbd);}else _0x3727a9['fillText'](_0x4c4888,_0x424e21,_0x900bbd);_0x3727a9[_0x3372fc(0x100)]();}[_0x1000c0(0x120)](_0x59c933){const _0x5534a3=_0x1000c0;_0x49ec11[_0x5534a3(0x3b6)](_0x59c933,this);}}const _0x70a7a7=0x1,_0x57c3e4=1.5;class _0x276b4c extends _0x5c59d0[_0x1000c0(0x208)]{constructor(_0x21ecee,_0x5b7880){const _0x4292db=_0x1000c0;super(_0x21ecee,_0x5b7880),_0x40dfd7(this,_0x4292db(0x4a1)),_0x40dfd7(this,_0x4292db(0x24e),!0x1),_0x40dfd7(this,_0x4292db(0x36e)),_0x40dfd7(this,_0x4292db(0x249),''),_0x40dfd7(this,_0x4292db(0x3c3),_0x4292db(0x43d)),(_0x5b7880&&this[_0x4292db(0x459)](_0x5b7880),this[_0x4292db(0x2e4)][_0x4292db(0x2ea)](()=>this[_0x4292db(0x459)]({'hovered':!0x0})),this[_0x4292db(0x2c0)][_0x4292db(0x2ea)](()=>this[_0x4292db(0x459)]({'hovered':!0x1})));}[_0x1000c0(0x459)](_0x29e8fd){const _0x1602e6=_0x1000c0;var _0x1db54e,_0x40e08a,_0x53dd43,_0x2ff3b2,_0x222ba3;this[_0x1602e6(0x4a1)]=(_0x1db54e=_0x29e8fd['color'])!=null?_0x1db54e:this[_0x1602e6(0x4a1)],this[_0x1602e6(0x24e)]=(_0x40e08a=_0x29e8fd[_0x1602e6(0x448)])!=null?_0x40e08a:this[_0x1602e6(0x24e)],this[_0x1602e6(0x36e)]=(_0x53dd43=_0x29e8fd[_0x1602e6(0x3ff)])!=null?_0x53dd43:this[_0x1602e6(0x36e)],this['_name']=(_0x2ff3b2=_0x29e8fd[_0x1602e6(0x3e7)])!=null?_0x2ff3b2:this[_0x1602e6(0x249)],this['_labelPosition']=(_0x222ba3=_0x29e8fd[_0x1602e6(0x42c)])!=null?_0x222ba3:this['_labelPosition'],this[_0x1602e6(0x48a)]({'width':_0x29e8fd[_0x1602e6(0x464)],'height':_0x29e8fd['height']});}[_0x1000c0(0x191)](_0x20211c){const _0x1461b9=_0x1000c0,{row:_0x390434,column:_0x2b285b}=_0x20211c;if(_0x390434>=this['_range'][_0x1461b9(0x22f)]&&_0x390434<=this[_0x1461b9(0x36e)][_0x1461b9(0x34d)]&&_0x2b285b>=this[_0x1461b9(0x36e)][_0x1461b9(0x4cd)]&&_0x2b285b<=this[_0x1461b9(0x36e)][_0x1461b9(0x101)]){this[_0x1461b9(0x459)]({'hovered':!0x0});return;}this[_0x1461b9(0x459)]({'hovered':!0x1});}[_0x1000c0(0x31b)](_0x42947f){return!0x1;}[_0x1000c0(0x120)](_0x2adcf6){const _0x23e4ca=_0x1000c0;_0x5c59d0[_0x23e4ca(0x29c)]['drawWith'](_0x2adcf6,{'width':this[_0x23e4ca(0x464)],'height':this[_0x23e4ca(0x1ac)],'strokeWidth':_0x57c3e4,'stroke':this[_0x23e4ca(0x4a1)],'evented':!0x1}),this['_hovered']&&(_0x2adcf6[_0x23e4ca(0x26c)](),_0x2adcf6['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x23e4ca(0x3c3)]==='bottom'?0x0:-_0x201da5),_0x49ec11['drawWith'](_0x2adcf6,{'text':this[_0x23e4ca(0x249)],'color':this['_color']}),_0x2adcf6[_0x23e4ca(0x100)]());}}var _0x100b22=Object[_0x1000c0(0x1a1)],_0x5caa41=Object[_0x1000c0(0x2d4)],_0x484bcc=(_0x499e45,_0x17da96,_0x21d558,_0x1ad29f)=>{const _0x18cfd3=_0x1000c0;for(var _0x391c35=_0x1ad29f>0x1?void 0x0:_0x1ad29f?_0x5caa41(_0x17da96,_0x21d558):_0x17da96,_0x14d08e=_0x499e45[_0x18cfd3(0x1d8)]-0x1,_0x44962c;_0x14d08e>=0x0;_0x14d08e--)(_0x44962c=_0x499e45[_0x14d08e])&&(_0x391c35=(_0x1ad29f?_0x44962c(_0x17da96,_0x21d558,_0x391c35):_0x44962c(_0x391c35))||_0x391c35);return _0x1ad29f&&_0x391c35&&_0x100b22(_0x17da96,_0x21d558,_0x391c35),_0x391c35;},_0x52c193=(_0x32d6c3,_0x1e271f)=>(_0x48a7c4,_0x2d29e1)=>_0x1e271f(_0x48a7c4,_0x2d29e1,_0x32d6c3);const _0x1874ac=0x1389;let _0x480b36=class extends _0x592d59[_0x1000c0(0x2cd)]{constructor(_0x3734a8,_0x5d5125,_0x240bfe,_0x194600){const _0x40b99d=_0x1000c0;super(),_0x40dfd7(this,'_cursors',new Set()),_0x40dfd7(this,_0x40b99d(0x3f7),null),(this['_collabCursorController']=_0x3734a8,this[_0x40b99d(0x40b)]=_0x5d5125,this['_renderManagerService']=_0x240bfe,this[_0x40b99d(0x478)]=_0x194600,this[_0x40b99d(0x224)]());}get[_0x1000c0(0x4a0)](){const _0x309b17=_0x1000c0;return this['_renderManagerService'][_0x309b17(0x126)](this['_univerInstanceService']['getCurrentUnitForType'](_0x592d59['UniverInstanceType'][_0x309b17(0x149)])[_0x309b17(0x270)]())['with'](_0x1c3859[_0x309b17(0x363)]);}get[_0x1000c0(0x34c)](){const _0x2264dc=_0x1000c0;return this[_0x2264dc(0x40b)]['getCurrentUnitForType'](_0x592d59[_0x2264dc(0x1b5)][_0x2264dc(0x149)])[_0x2264dc(0x270)]();}[_0x1000c0(0x224)](){const _0x4416fb=_0x1000c0;this[_0x4416fb(0x4a0)][_0x4416fb(0x1d1)][_0x4416fb(0x161)](_0x39f29f[_0x4416fb(0x3ca)](this[_0x4416fb(0x338)]),_0x39f29f[_0x4416fb(0x32b)](_0x22658b=>{const _0x1806fb=_0x4416fb;if(_0x22658b){const _0x184199=_0x22658b[_0x1806fb(0x154)];return _0x3c7a49[_0x1806fb(0x303)](this[_0x1806fb(0x3eb)][_0x1806fb(0x2e1)](this[_0x1806fb(0x34c)]),this[_0x1806fb(0x478)][_0x1806fb(0x1a4)])[_0x1806fb(0x161)](_0x39f29f[_0x1806fb(0x1f5)](([_0x4a9bca,_0x11f6f1])=>{const _0x3eacec=new Map();return _0x4a9bca['forEach']((_0x327b3b,_0x49beff)=>{const _0x4d46e0=_0x492d;if(_0x327b3b[_0x4d46e0(0x1c6)]===_0x184199){const _0x782143={..._0x327b3b};_0x782143[_0x4d46e0(0x2a0)]=_0x11f6f1[_0x327b3b[_0x4d46e0(0x2a0)]],_0x3eacec['set'](_0x49beff,_0x782143);}}),{'skeleton':_0x22658b,'cursors':_0x3eacec};}));}return _0x3c7a49['of']({'skeleton':null,'cursors':new Map()});}))[_0x4416fb(0x42f)](({skeleton:_0x416c87,cursors:_0x41c5d4})=>{const _0x171e85=_0x4416fb;this[_0x171e85(0x4c9)](),_0x416c87&&this[_0x171e85(0x2e2)](_0x416c87,_0x41c5d4);}),this['_sheetSkeletonManagerService'][_0x4416fb(0x1d1)][_0x4416fb(0x42f)](_0x5d84e0=>{const _0x42f85f=_0x4416fb;if(_0x5d84e0==null)return;const {skeleton:_0x1f29de}=_0x5d84e0,_0x3a5fd2=this['_renderManagerService'][_0x42f85f(0x126)](this[_0x42f85f(0x34c)]),{scene:_0x44fcf5}=_0x3a5fd2;_0x44fcf5['onPointerMove$'][_0x42f85f(0x2ea)](_0x5e5cd3(_0x1a9982=>{const _0x2f0665=_0x42f85f;var _0x33ace5,_0xf2977;const {offsetX:_0x2b5b04,offsetY:_0x3d1e7d}=_0x1a9982,{x:_0x57d96f,y:_0x1b3b0f}=_0x44fcf5[_0x2f0665(0x29d)](_0x5c59d0[_0x2f0665(0x104)]['FromArray']([_0x2b5b04,_0x3d1e7d])),{scaleX:_0x5f2f47,scaleY:_0x3509fd}=_0x44fcf5[_0x2f0665(0x3e9)](),_0x39bfdf=_0x44fcf5[_0x2f0665(0x136)](_0x1c3859[_0x2f0665(0x3a7)][_0x2f0665(0x245)]),_0x249852=_0x44fcf5['getScrollXYByRelativeCoords'](_0x5c59d0[_0x2f0665(0x104)][_0x2f0665(0x3d0)]([_0x57d96f,_0x1b3b0f]),_0x39bfdf),_0x4ad695=_0x1f29de[_0x2f0665(0x25c)](_0x2b5b04,_0x3d1e7d,_0x5f2f47,_0x3509fd,_0x249852);((_0x33ace5=this[_0x2f0665(0x3f7)])==null?void 0x0:_0x33ace5[_0x2f0665(0x273)])===_0x4ad695['column']&&((_0xf2977=this[_0x2f0665(0x3f7)])==null?void 0x0:_0xf2977['row'])===_0x4ad695[_0x2f0665(0x225)]||this[_0x2f0665(0x20e)]['forEach'](_0x1faefa=>{const _0x8a1c0e=_0x2f0665;_0x1faefa[_0x8a1c0e(0x191)](_0x4ad695);});},0x64));});}['_updateCollabCursors'](_0x55013e,_0x5caa2d){const _0x441448=_0x1000c0;var _0x534d88;const _0x5e9842=(_0x534d88=this[_0x441448(0x4a0)][_0x441448(0x1af)]())==null?void 0x0:_0x534d88[_0x441448(0x43c)];if(!_0x5e9842)return;const _0x8eb5a7=this[_0x441448(0x4c7)]();if(!_0x8eb5a7)return;this[_0x441448(0x20e)][_0x441448(0x24b)](_0x7111b6=>{const _0x1e3914=_0x441448;_0x7111b6[_0x1e3914(0xf9)]();});const {scene:_0x1b61d5}=_0x8eb5a7,_0x43b33c=_0x4b98c3(Array['from'](_0x5caa2d[_0x441448(0x38c)]()))[_0x441448(0x1f5)](_0x597265=>{const _0xeff27c=_0x441448,{color:_0x1637ed,range:_0x230389,name:_0xa650b2,selection:_0x4bed5a,sheetID:_0xb2dd68}=_0x597265,{startColumn:_0x424e5b,startRow:_0x28b857,endColumn:_0x4de3e3,endRow:_0x4dc91f}=_0x230389,_0x205a1e=_0x1c3859[_0xeff27c(0x295)](_0x28b857,_0x424e5b,_0x1b61d5,_0x5e9842),_0x1192a1=_0x1c3859['getCoordByCell'](_0x4dc91f,_0x4de3e3,_0x1b61d5,_0x5e9842),{columnHeaderHeightAndMarginTop:_0x2fe39d}=_0x5e9842,{startX:_0x1f39b7,startY:_0x5a44d7}=_0x205a1e,{endX:_0x5171c3,endY:_0x15cc5a}=_0x1192a1,_0xfc9944=_0x5171c3-_0x1f39b7,_0x57c518=_0x15cc5a-_0x5a44d7,_0x41ec67={'labelPosition':_0x5a44d7-_0x2fe39d>=_0x201da5?_0xeff27c(0x43d):_0xeff27c(0x334),'sheetID':_0xb2dd68,'range':_0x230389,'color':_0x1637ed,'name':_0xa650b2,'selection':_0x4bed5a,'left':_0x1f39b7,'top':_0x5a44d7,'width':_0xfc9944,'height':_0x57c518,'evented':!0x1,'zIndex':_0x1874ac};return new _0x276b4c(_0xa650b2,_0x41ec67);});_0x1b61d5[_0x441448(0x15b)](_0x43b33c,_0x70a7a7),this['_cursors']=new Set(_0x43b33c);}[_0x1000c0(0x4c9)](){const _0x15eeee=_0x1000c0;var _0x3f28d3;(_0x3f28d3=this['_cursors'])==null||_0x3f28d3[_0x15eeee(0x24b)](_0x389a37=>_0x389a37[_0x15eeee(0x36f)]());}[_0x1000c0(0x4c7)](){const _0x5b5990=_0x1000c0;return _0x1c3859[_0x5b5990(0x132)](this['_univerInstanceService'],this['_renderManagerService']);}};_0x480b36=_0x484bcc([_0x592d59[_0x1000c0(0x47b)](_0x592d59[_0x1000c0(0x1c7)][_0x1000c0(0x4cf)],_0x480b36),_0x52c193(0x0,_0x1ea985[_0x1000c0(0x368)](_0xc137f8)),_0x52c193(0x1,_0x592d59[_0x1000c0(0x305)]),_0x52c193(0x2,_0x5c59d0[_0x1000c0(0x36a)]),_0x52c193(0x3,_0x1ea985[_0x1000c0(0x368)](_0x592d59['ThemeService']))],_0x480b36);function _0x4b98c3(_0x5ed0ef){const _0x322a11=_0x1000c0,_0x5aa7c8=new Map();return _0x5ed0ef['forEach'](_0x5a8782=>{const _0x1379e5=_0x492d;if(_0x5aa7c8['has'](_0x5a8782['selection'])){const _0x2926db=_0x5aa7c8[_0x1379e5(0x1de)](_0x5a8782[_0x1379e5(0x426)]);_0x2926db[_0x1379e5(0x3e7)]+=',\x20'+_0x5a8782[_0x1379e5(0x3e7)];}else _0x5aa7c8[_0x1379e5(0x4c2)](_0x5a8782['selection'],_0x5a8782);}),Array[_0x322a11(0x485)](_0x5aa7c8['values']());}var _0x4031a5=function(){const _0x25b3b4=_0x1000c0;return _0x4031a5=Object[_0x25b3b4(0x2e9)]||function(_0x3e9d6a){const _0x48074a=_0x25b3b4;for(var _0x293862,_0x4dad57=0x1,_0x1e04ea=arguments[_0x48074a(0x1d8)];_0x4dad57<_0x1e04ea;_0x4dad57++){_0x293862=arguments[_0x4dad57];for(var _0xceaa3a in _0x293862)Object[_0x48074a(0x389)][_0x48074a(0x282)]['call'](_0x293862,_0xceaa3a)&&(_0x3e9d6a[_0xceaa3a]=_0x293862[_0xceaa3a]);}return _0x3e9d6a;},_0x4031a5[_0x25b3b4(0x3f2)](this,arguments);},_0x4170ad=function(_0xdbc321,_0x1e9bbf){const _0x32f1c3=_0x1000c0;var _0x59889a={};for(var _0x3ebb51 in _0xdbc321)Object[_0x32f1c3(0x389)]['hasOwnProperty'][_0x32f1c3(0x266)](_0xdbc321,_0x3ebb51)&&_0x1e9bbf[_0x32f1c3(0x2ee)](_0x3ebb51)<0x0&&(_0x59889a[_0x3ebb51]=_0xdbc321[_0x3ebb51]);if(_0xdbc321!=null&&typeof Object[_0x32f1c3(0x481)]==_0x32f1c3(0x452)){for(var _0x42fe6e=0x0,_0x3ebb51=Object[_0x32f1c3(0x481)](_0xdbc321);_0x42fe6e<_0x3ebb51[_0x32f1c3(0x1d8)];_0x42fe6e++)_0x1e9bbf[_0x32f1c3(0x2ee)](_0x3ebb51[_0x42fe6e])<0x0&&Object[_0x32f1c3(0x389)]['propertyIsEnumerable'][_0x32f1c3(0x266)](_0xdbc321,_0x3ebb51[_0x42fe6e])&&(_0x59889a[_0x3ebb51[_0x42fe6e]]=_0xdbc321[_0x3ebb51[_0x42fe6e]]);}return _0x59889a;},_0x5ad723=_0x4f6c5c[_0x1000c0(0x3cc)](function(_0x981d42,_0x20b660){const _0x3528c0=_0x1000c0;var _0x47144d=_0x981d42[_0x3528c0(0x3ec)],_0x2d483d=_0x981d42['id'],_0x30d4be=_0x981d42[_0x3528c0(0x3de)],_0x4f1ff8=_0x981d42[_0x3528c0(0x2c1)],_0x5ce6d3=_0x4170ad(_0x981d42,['icon','id',_0x3528c0(0x3de),_0x3528c0(0x2c1)]),_0x23936b=_0x3528c0(0x3da)[_0x3528c0(0x328)](_0x2d483d,'\x20')['concat'](_0x30d4be||'')[_0x3528c0(0x453)](),_0x38fb18=_0x4f6c5c[_0x3528c0(0x11a)]('_'[_0x3528c0(0x328)](_0x1d7fd0()));return _0x7ddab4(_0x47144d,''['concat'](_0x2d483d),{'defIds':_0x47144d[_0x3528c0(0x1f7)],'idSuffix':_0x38fb18['current']},_0x4031a5({'ref':_0x20b660,'className':_0x23936b},_0x5ce6d3),_0x4f1ff8);});function _0x7ddab4(_0x4fd883,_0x55c68c,_0x1c86ed,_0x26ab23,_0x5727bc){const _0x1f6dd5=_0x1000c0;return _0x4f6c5c[_0x1f6dd5(0x3d3)](_0x4fd883[_0x1f6dd5(0x2d3)],_0x4031a5(_0x4031a5({'key':_0x55c68c},_0x4335f3(_0x4fd883,_0x1c86ed,_0x5727bc)),_0x26ab23),(_0x589d39(_0x4fd883,_0x1c86ed)[_0x1f6dd5(0x251)]||[])[_0x1f6dd5(0x1f5)](function(_0x229b6e,_0x58f4b1){const _0x5e0e15=_0x1f6dd5;return _0x7ddab4(_0x229b6e,''[_0x5e0e15(0x328)](_0x55c68c,'-')[_0x5e0e15(0x328)](_0x4fd883['tag'],'-')[_0x5e0e15(0x328)](_0x58f4b1),_0x1c86ed,void 0x0,_0x5727bc);}));}function _0x4335f3(_0x40a17d,_0x50d2bc,_0x2d152d){const _0x41f32c=_0x1000c0;var _0x858b3b=_0x4031a5({},_0x40a17d['attrs']);_0x2d152d!=null&&_0x2d152d[_0x41f32c(0x14f)]&&_0x858b3b[_0x41f32c(0x15e)]===_0x41f32c(0x14f)&&(_0x858b3b['fill']=_0x2d152d['colorChannel1']);var _0x3076de=_0x50d2bc[_0x41f32c(0x1f7)];return!_0x3076de||_0x3076de[_0x41f32c(0x1d8)]===0x0||(_0x40a17d[_0x41f32c(0x2d3)]===_0x41f32c(0x1e6)&&_0x858b3b[_0x41f32c(0x2d5)]&&(_0x858b3b[_0x41f32c(0x2d5)]=_0x858b3b[_0x41f32c(0x2d5)]+_0x50d2bc['idSuffix']),Object[_0x41f32c(0x10a)](_0x858b3b)[_0x41f32c(0x24b)](function(_0x19d941){const _0x14c3a7=_0x41f32c;var _0x38a260=_0x19d941[0x0],_0xf33f43=_0x19d941[0x1];typeof _0xf33f43=='string'&&(_0x858b3b[_0x38a260]=_0xf33f43[_0x14c3a7(0x164)](/url\(#(.*)\)/,_0x14c3a7(0x4d5)[_0x14c3a7(0x328)](_0x50d2bc['idSuffix'],')')));})),_0x858b3b;}function _0x589d39(_0x302f24,_0x215cc4){const _0x1f35e8=_0x1000c0;var _0x4fe791,_0x240bf3=_0x215cc4[_0x1f35e8(0x1f7)];return!_0x240bf3||_0x240bf3[_0x1f35e8(0x1d8)]===0x0?_0x302f24:_0x302f24[_0x1f35e8(0x2d3)]===_0x1f35e8(0x118)&&(!((_0x4fe791=_0x302f24[_0x1f35e8(0x251)])===null||_0x4fe791===void 0x0)&&_0x4fe791['length'])?_0x4031a5(_0x4031a5({},_0x302f24),{'children':_0x302f24['children'][_0x1f35e8(0x1f5)](function(_0x1adc27){const _0x563042=_0x1f35e8;return typeof _0x1adc27[_0x563042(0x1ce)]['id']==_0x563042(0x422)&&_0x240bf3&&_0x240bf3[_0x563042(0x2ee)](_0x1adc27[_0x563042(0x1ce)]['id'])>-0x1?_0x4031a5(_0x4031a5({},_0x1adc27),{'attrs':_0x4031a5(_0x4031a5({},_0x1adc27[_0x563042(0x1ce)]),{'id':_0x1adc27[_0x563042(0x1ce)]['id']+_0x215cc4[_0x563042(0x3b5)]})}):_0x1adc27;})}):_0x302f24;}function _0x1d7fd0(){const _0x25f04b=_0x1000c0;return Math[_0x25f04b(0x3e5)]()[_0x25f04b(0x4a3)](0x24)['substring'](0x2,0x8);}_0x5ad723[_0x1000c0(0x30d)]='UniverIcon';var _0x3ebc39={'tag':'svg','attrs':{'fill':_0x1000c0(0x2b8),'viewBox':_0x1000c0(0x3e1),'width':'1em','height':_0x1000c0(0x106)},'children':[{'tag':'g','attrs':{'clipPath':_0x1000c0(0x291)},'children':[{'tag':_0x1000c0(0x4da),'attrs':{'stroke':_0x1000c0(0x11e),'d':_0x1000c0(0x146),'strokeLinecap':_0x1000c0(0x2c3),'strokeLinejoin':_0x1000c0(0x2c3),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x1000c0(0x1bf),'d':_0x1000c0(0x359)}}]}]}],'defIds':[_0x1000c0(0x1be)]},_0x187081=_0x4f6c5c[_0x1000c0(0x3cc)](function(_0x2c5d03,_0x533e13){const _0x1148d6=_0x1000c0;return _0x4f6c5c[_0x1148d6(0x3d3)](_0x5ad723,Object[_0x1148d6(0x2e9)]({},_0x2c5d03,{'id':_0x1148d6(0x45b),'ref':_0x533e13,'icon':_0x3ebc39}));});_0x187081[_0x1000c0(0x30d)]=_0x1000c0(0x284);var _0x11bd40={'tag':_0x1000c0(0x145),'attrs':{'fill':_0x1000c0(0x2b8),'viewBox':_0x1000c0(0x3fc),'width':_0x1000c0(0x106),'height':_0x1000c0(0x106)},'children':[{'tag':'g','attrs':{'clipPath':_0x1000c0(0x39f)},'children':[{'tag':_0x1000c0(0x4da),'attrs':{'stroke':_0x1000c0(0x11e),'d':_0x1000c0(0x4d4),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1000c0(0x118),'attrs':{},'children':[{'tag':_0x1000c0(0x3d9),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x1000c0(0x4da),'attrs':{'fill':_0x1000c0(0x1bf),'d':_0x1000c0(0x359),'transform':'translate(.97)'}}]}]}],'defIds':[_0x1000c0(0x309)]},_0xc534e2=_0x4f6c5c[_0x1000c0(0x3cc)](function(_0x411057,_0x56d666){const _0x3618fb=_0x1000c0;return _0x4f6c5c[_0x3618fb(0x3d3)](_0x5ad723,Object[_0x3618fb(0x2e9)]({},_0x411057,{'id':'on-line-single','ref':_0x56d666,'icon':_0x11bd40}));});_0xc534e2[_0x1000c0(0x30d)]=_0x1000c0(0x287);const _0x435b4a={'onlineStatusIcon':'univer-online-status-icon','onlineStatusTitle':'univer-online-status-title','onlineStatus':'univer-online-status','online':_0x1000c0(0x3b2),'offline':_0x1000c0(0x4ad)};function _0x3cbedb(_0x5999c1){const _0x402922=_0x1000c0;switch(_0x5999c1){case _0x3e6f91[_0x402922(0x4a5)]:return _0x402922(0x3d4);case _0x3e6f91[_0x402922(0x25e)]:return _0x402922(0x3f3);case _0x3e6f91[_0x402922(0x156)]:return _0x402922(0x1ed);case _0x3e6f91[_0x402922(0x3c9)]:return _0x402922(0x391);case _0x3e6f91[_0x402922(0x47c)]:case _0x3e6f91[_0x402922(0x356)]:case _0x3e6f91[_0x402922(0x227)]:return _0x402922(0x34b);case _0x3e6f91['SYNCED']:return _0x402922(0x2ae);}}function _0x1d230a(_0x119ebb){const _0x48c5fd=_0x1000c0,{status$:_0x9a6d0a}=_0x119ebb,_0x3a1a2a=_0x2c52d3[_0x48c5fd(0x316)](_0x9a6d0a,_0x3e6f91[_0x48c5fd(0x3c9)]),_0x2a2cfb=_0x250089[_0x48c5fd(0x4c1)](_0x592d59[_0x48c5fd(0x279)]),_0x5a969a=_0x3a1a2a!==_0x3e6f91[_0x48c5fd(0x4a5)],_0x47951c=_0x2a2cfb['t'](_0x3cbedb(_0x3a1a2a)),_0x271959=_0x4dd75f(_0x435b4a[_0x48c5fd(0x148)],{[_0x435b4a[_0x48c5fd(0xfc)]]:_0x5a969a,[_0x435b4a['offline']]:!_0x5a969a}),_0x5d47a4=_0x5a969a?_0x4f6c5c[_0x48c5fd(0x3d3)](_0xc534e2,null):_0x4f6c5c['createElement'](_0x187081,null);return _0x4f6c5c['createElement'](_0x48c5fd(0x254),{'className':_0x271959},_0x4f6c5c['createElement']('div',{'className':_0x435b4a[_0x48c5fd(0x1c1)]},_0x5d47a4),_0x4f6c5c[_0x48c5fd(0x3d3)](_0x48c5fd(0x254),{'className':_0x435b4a[_0x48c5fd(0x3a4)]},_0x47951c));}var _0x43e554=Object['defineProperty'],_0x562965=Object[_0x1000c0(0x2d4)],_0x4bdf56=(_0x52ffef,_0x50d352,_0x12cd08,_0x58298a)=>{const _0x37cb87=_0x1000c0;for(var _0x593de7=_0x58298a>0x1?void 0x0:_0x58298a?_0x562965(_0x50d352,_0x12cd08):_0x50d352,_0x51c3e=_0x52ffef[_0x37cb87(0x1d8)]-0x1,_0x124e36;_0x51c3e>=0x0;_0x51c3e--)(_0x124e36=_0x52ffef[_0x51c3e])&&(_0x593de7=(_0x58298a?_0x124e36(_0x50d352,_0x12cd08,_0x593de7):_0x124e36(_0x593de7))||_0x593de7);return _0x58298a&&_0x593de7&&_0x43e554(_0x50d352,_0x12cd08,_0x593de7),_0x593de7;},_0x34daea=(_0x1a2ea9,_0x1da281)=>(_0x13e0e9,_0x39a7e4)=>_0x1da281(_0x13e0e9,_0x39a7e4,_0x1a2ea9);_0x322d5b[_0x1000c0(0x144)]=class extends _0x592d59[_0x1000c0(0x450)]{constructor(_0x226fa5,_0x38cffb,_0x1d00c2,_0x13d5cd){const _0x45b134=_0x1000c0;super(),_0x40dfd7(this,'_status$',new _0x3c7a49[(_0x45b134(0x35f))](_0x3e6f91[_0x45b134(0x3c9)])),(this[_0x45b134(0x40b)]=_0x226fa5,this[_0x45b134(0x2bc)]=_0x38cffb,this[_0x45b134(0x27f)]=_0x1d00c2,this['_collaborationController']=_0x13d5cd,this[_0x45b134(0x11d)](),this[_0x45b134(0x3b0)]());}[_0x1000c0(0x11d)](){const _0x1100e5=_0x1000c0;this[_0x1100e5(0x215)](this[_0x1100e5(0x2bc)][_0x1100e5(0x14d)](_0x2c52d3[_0x1100e5(0x4c4)][_0x1100e5(0x210)],()=>_0x250089['connectInjector'](_0x1a3fe5({'status$':this[_0x1100e5(0x317)][_0x1100e5(0x32c)]()}),this[_0x1100e5(0x27f)])));}[_0x1000c0(0x3b0)](){const _0x3523d5=_0x1000c0;this['disposeWithMe'](_0x592d59[_0x3523d5(0x29f)](this[_0x3523d5(0x40b)][_0x3523d5(0x21a)]['pipe'](_0x3c7a49['switchMap'](()=>{const _0x219889=_0x3523d5,_0x15c946=this[_0x219889(0x40b)][_0x219889(0x1bb)]();return _0x15c946?this[_0x219889(0x47d)][_0x219889(0x4a8)](_0x15c946[_0x219889(0x270)]()):_0x3c7a49['of'](null);}),_0x3c7a49[_0x3523d5(0x32b)](_0x182cf4=>_0x182cf4?_0x182cf4['status$']:_0x3c7a49['of'](_0x3e6f91['NOT_COLLAB'])))[_0x3523d5(0x42f)](_0x3d97a3=>{const _0x1c54b1=_0x3523d5;this[_0x1c54b1(0x317)][_0x1c54b1(0x117)](_0x3d97a3);})));}},_0x322d5b[_0x1000c0(0x144)]=_0x4bdf56([_0x592d59[_0x1000c0(0x47b)](_0x592d59['LifecycleStages']['Starting'],_0x322d5b[_0x1000c0(0x144)]),_0x34daea(0x0,_0x592d59[_0x1000c0(0x305)]),_0x34daea(0x1,_0x2c52d3['IUIPartsService']),_0x34daea(0x2,_0x1ea985[_0x1000c0(0x368)](_0x1ea985['Injector'])),_0x34daea(0x3,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x200)]))],_0x322d5b[_0x1000c0(0x144)]);function _0x1a3fe5(_0x32c9a7){const {status$:_0x4dea56}=_0x32c9a7;return function(){const _0x2050fa=_0x492d;return _0x4f6c5c[_0x2050fa(0x3d3)](_0x1d230a,{'status$':_0x4dea56});};}const _0x30215f=_0x1ea985[_0x1000c0(0x13b)](_0x1000c0(0x445));var _0x1e86d7=Object[_0x1000c0(0x1a1)],_0x5d714b=Object[_0x1000c0(0x2d4)],_0xbdbb09=(_0x46f68b,_0xb6eaad,_0x46eb1a,_0x369234)=>{const _0x23d9d1=_0x1000c0;for(var _0x1754b3=_0x369234>0x1?void 0x0:_0x369234?_0x5d714b(_0xb6eaad,_0x46eb1a):_0xb6eaad,_0xff42ea=_0x46f68b[_0x23d9d1(0x1d8)]-0x1,_0x1a8148;_0xff42ea>=0x0;_0xff42ea--)(_0x1a8148=_0x46f68b[_0xff42ea])&&(_0x1754b3=(_0x369234?_0x1a8148(_0xb6eaad,_0x46eb1a,_0x1754b3):_0x1a8148(_0x1754b3))||_0x1754b3);return _0x369234&&_0x1754b3&&_0x1e86d7(_0xb6eaad,_0x46eb1a,_0x1754b3),_0x1754b3;},_0x510a3d=(_0x33c140,_0x2f071f)=>(_0x455108,_0x29ed75)=>_0x2f071f(_0x455108,_0x29ed75,_0x33c140);_0x322d5b[_0x1000c0(0x192)]=class extends _0x592d59[_0x1000c0(0x2cd)]{constructor(_0x2268b6,_0x5ad11e,_0x1a60a4,_0x28df6b,_0x1dc0ef,_0x2d139e){const _0x140f18=_0x1000c0;super(),this[_0x140f18(0x3d7)]=_0x2268b6,this[_0x140f18(0x195)]=_0x5ad11e,this[_0x140f18(0x401)]=_0x1a60a4,this[_0x140f18(0x140)]=_0x28df6b,this[_0x140f18(0x26f)]=_0x1dc0ef,_0x2d139e?_0x2d139e==null||_0x2d139e[_0x140f18(0x421)]()['then'](()=>this[_0x140f18(0x224)]()):(this[_0x140f18(0x195)]['debug']('[DataLoaderController]',_0x140f18(0x3a3)),this[_0x140f18(0x224)]());}async[_0x1000c0(0x224)](){const _0x1224ca=_0x1000c0,_0x3fea0e=this[_0x1224ca(0x3d7)][_0x1224ca(0x1a2)](_0x1224ca(0x4be)),_0x316103=this[_0x1224ca(0x3d7)]['getParam'](_0x1224ca(0x49b));if(!_0x3fea0e||!_0x316103){this[_0x1224ca(0x195)]['debug']('[DataLoaderController]',_0x1224ca(0x209));return;}switch(Number(_0x316103)){case _0x376736[_0x1224ca(0x149)]:{const _0x5c9a41=await this['_loadSheet'](_0x3fea0e);this[_0x1224ca(0x2f9)](_0x5c9a41);break;}case _0x376736[_0x1224ca(0x119)]:{await this[_0x1224ca(0x248)](_0x3fea0e);break;}default:{this[_0x1224ca(0x195)][_0x1224ca(0x343)](_0x1224ca(0x36d),_0x1224ca(0x1b6));break;}}}async[_0x1000c0(0x2f9)](_0x152b50){const _0xd24864=_0x1000c0;await this[_0xd24864(0x387)](_0x152b50),_0x152b50[_0xd24864(0x264)]['pipe'](_0x3c7a49[_0xd24864(0x3ca)](this['dispose$']))[_0xd24864(0x42f)](_0x35ebcd=>{_0x35ebcd&&this['_updateURLWithCurrentState'](_0x35ebcd);}),this[_0xd24864(0x3d7)][_0xd24864(0x1b7)]['pipe'](_0x3c7a49[_0xd24864(0x3ca)](this[_0xd24864(0x338)]))[_0xd24864(0x42f)](()=>this[_0xd24864(0x387)](_0x152b50));}[_0x1000c0(0x188)](_0x26b70e,_0xea9d9c=!0x1){const _0x42e49f=_0x1000c0,_0x22ba5a=this[_0x42e49f(0x3d7)][_0x42e49f(0x1a2)](_0x42e49f(0x23a));_0x26b70e[_0x42e49f(0x449)]()!==_0x22ba5a&&this[_0x42e49f(0x3d7)]['setParam']('subunit',_0x26b70e[_0x42e49f(0x449)](),_0xea9d9c);}async['_updateSubUnitFromURLParams'](_0xe855f5){const _0x3c8d72=_0x1000c0;var _0x3af27a;const _0x479a62=this[_0x3c8d72(0x3d7)]['getParam'](_0x3c8d72(0x23a));if(!_0x479a62||!_0xe855f5['getSheetBySheetId'](_0x479a62)){const _0x4b5fd1=_0xe855f5[_0x3c8d72(0x30b)]()[0x0],_0x401ab7=_0xe855f5[_0x3c8d72(0x1a9)](_0x4b5fd1);if(!_0x401ab7)return;this[_0x3c8d72(0x188)](_0x401ab7,!0x0),await this[_0x3c8d72(0x401)][_0x3c8d72(0x19e)](_0x5e4af3[_0x3c8d72(0x388)]['id'],{'unitId':_0xe855f5[_0x3c8d72(0x270)](),'subUnitId':_0x4b5fd1});return;}((_0x3af27a=_0xe855f5[_0x3c8d72(0x3c5)]())==null?void 0x0:_0x3af27a[_0x3c8d72(0x449)]())!==_0x479a62&&await this[_0x3c8d72(0x401)][_0x3c8d72(0x19e)](_0x5e4af3[_0x3c8d72(0x388)]['id'],{'unitId':_0xe855f5[_0x3c8d72(0x270)](),'subUnitId':_0x479a62});}async[_0x1000c0(0x244)](_0x3324a1){const _0x987622=_0x1000c0;let _0x22bf0c=0x0;const _0x55a3ab=await this[_0x987622(0x140)]['loadOfflineData'](_0x3324a1);return _0x55a3ab&&(_0x55a3ab[_0x987622(0x3ba)]||_0x55a3ab['mutations'][_0x987622(0x1d8)]!==0x0)&&(_0x22bf0c=_0x55a3ab[_0x987622(0x4d3)]),_0x22bf0c===0x0&&this[_0x987622(0x195)]['debug']('[DataLoaderController]',_0x987622(0x4bb)),this[_0x987622(0x26f)][_0x987622(0x371)](_0x3324a1,_0x22bf0c);}async[_0x1000c0(0x248)](_0x2649f3){const _0x15f9b7=_0x1000c0;let _0x2086b1=0x0;const _0x5090d2=await this[_0x15f9b7(0x140)][_0x15f9b7(0x239)](_0x2649f3);return _0x5090d2&&(_0x5090d2[_0x15f9b7(0x3ba)]||_0x5090d2[_0x15f9b7(0x122)][_0x15f9b7(0x1d8)]!==0x0)&&(_0x2086b1=_0x5090d2['rev']),_0x2086b1===0x0&&this[_0x15f9b7(0x195)][_0x15f9b7(0x384)](_0x15f9b7(0x36d),_0x15f9b7(0x4bb)),this['_snapshotService']['loadDoc'](_0x2649f3,_0x2086b1);}},_0x322d5b[_0x1000c0(0x192)]=_0xbdbb09([_0x592d59[_0x1000c0(0x47b)](_0x592d59['LifecycleStages']['Starting'],_0x322d5b[_0x1000c0(0x192)]),_0x510a3d(0x0,_0x30215f),_0x510a3d(0x1,_0x592d59[_0x1000c0(0x1ef)]),_0x510a3d(0x2,_0x592d59['ICommandService']),_0x510a3d(0x3,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x24c)])),_0x510a3d(0x4,_0x1ea985[_0x1000c0(0x368)](_0x1f6364[_0x1000c0(0x3ed)])),_0x510a3d(0x5,_0x1ea985[_0x1000c0(0x49e)](_0x5d4b6e[_0x1000c0(0x202)]))],_0x322d5b[_0x1000c0(0x192)]);var _0x1ae2e4=Object['defineProperty'],_0x564f37=Object[_0x1000c0(0x2d4)],_0x85ca93=(_0x121831,_0x7d66d2,_0x5268d1,_0x588a0a)=>{for(var _0x49bf5e=_0x588a0a>0x1?void 0x0:_0x588a0a?_0x564f37(_0x7d66d2,_0x5268d1):_0x7d66d2,_0x157072=_0x121831['length']-0x1,_0x41ea2c;_0x157072>=0x0;_0x157072--)(_0x41ea2c=_0x121831[_0x157072])&&(_0x49bf5e=(_0x588a0a?_0x41ea2c(_0x7d66d2,_0x5268d1,_0x49bf5e):_0x41ea2c(_0x49bf5e))||_0x49bf5e);return _0x588a0a&&_0x49bf5e&&_0x1ae2e4(_0x7d66d2,_0x5268d1,_0x49bf5e),_0x49bf5e;},_0x10f9f1=(_0x586820,_0x2dc0f1)=>(_0x5dc3f9,_0x1dfc5e)=>_0x2dc0f1(_0x5dc3f9,_0x1dfc5e,_0x586820);const _0x50df5f=_0x1000c0(0x1b0),_0x2fd3b2='Univer';let _0x23508c=class extends _0x592d59[_0x1000c0(0x450)]{constructor(_0x3ca605,_0x56f1cf){const _0x59a595=_0x1000c0;super(),this[_0x59a595(0x40b)]=_0x3ca605,this['_configService']=_0x56f1cf,this[_0x59a595(0x224)]();}['_init'](){const _0x3bbe86=_0x1000c0;this[_0x3bbe86(0x215)](_0x592d59[_0x3bbe86(0x29f)](this[_0x3bbe86(0x40b)][_0x3bbe86(0x21a)][_0x3bbe86(0x42f)](()=>{const _0x13a34f=_0x3bbe86;var _0x3b5d9f;const _0x30deb3=this[_0x13a34f(0x40b)][_0x13a34f(0x1bb)]();let _0x2a1faa=(_0x3b5d9f=this[_0x13a34f(0x230)][_0x13a34f(0x393)](_0x50df5f))!=null?_0x3b5d9f:_0x2fd3b2;_0x30deb3 instanceof _0x592d59['Workbook']&&(_0x2a1faa=_0x30deb3[_0x13a34f(0x3e7)]),document[_0x13a34f(0x2a3)]=_0x2a1faa;})));}};_0x23508c=_0x85ca93([_0x592d59[_0x1000c0(0x47b)](_0x592d59[_0x1000c0(0x1c7)][_0x1000c0(0x461)],_0x23508c),_0x10f9f1(0x0,_0x592d59[_0x1000c0(0x305)]),_0x10f9f1(0x1,_0x592d59[_0x1000c0(0x41f)])],_0x23508c);var _0x1f94db=Object[_0x1000c0(0x1a1)],_0xe64a2c=Object['getOwnPropertyDescriptor'],_0x99c184=(_0x4bae7e,_0x253522,_0xb1ef85,_0x4cd05a)=>{const _0x14f535=_0x1000c0;for(var _0x4dbdff=_0x4cd05a>0x1?void 0x0:_0x4cd05a?_0xe64a2c(_0x253522,_0xb1ef85):_0x253522,_0xad01b3=_0x4bae7e[_0x14f535(0x1d8)]-0x1,_0x2d72c9;_0xad01b3>=0x0;_0xad01b3--)(_0x2d72c9=_0x4bae7e[_0xad01b3])&&(_0x4dbdff=(_0x4cd05a?_0x2d72c9(_0x253522,_0xb1ef85,_0x4dbdff):_0x2d72c9(_0x4dbdff))||_0x4dbdff);return _0x4cd05a&&_0x4dbdff&&_0x1f94db(_0x253522,_0xb1ef85,_0x4dbdff),_0x4dbdff;},_0x4d29b6=(_0x443a96,_0x36074a)=>(_0x5f3aa4,_0x11ad21)=>_0x36074a(_0x5f3aa4,_0x11ad21,_0x443a96);let _0x21a4dd=class{constructor(_0x146564,_0x22dfcc){const _0x20b275=_0x1000c0;this[_0x20b275(0x230)]=_0x146564,this[_0x20b275(0x434)]=_0x22dfcc;}async[_0x1000c0(0x15c)](_0x890457,_0x5efeed){const _0x2016e3=_0x1000c0;var _0x4a9aa8;const {unitID:_0x391d67,type:_0x4d3847,revision:_0x287794=0x0}=_0x5efeed,_0x4e41d3=this[_0x2016e3(0x1bd)]()+'/'+_0x4d3847+_0x2016e3(0x3b8)+_0x391d67+_0x2016e3(0x1da)+(_0x287794===0x1?0x0:_0x287794),_0x52c5a3=(await this[_0x2016e3(0x434)][_0x2016e3(0x1de)](_0x4e41d3))['body'],_0x33f8a1=(_0x4a9aa8=_0x52c5a3['snapshot'])==null?void 0x0:_0x4a9aa8[_0x2016e3(0x2b6)];if(_0x33f8a1){const _0xfc2f39=_0x33f8a1==null?void 0x0:_0x33f8a1[_0x2016e3(0x160)],_0x2fcf5d=_0x592d59[_0x2016e3(0x2a4)][_0x2016e3(0x330)](_0x592d59[_0x2016e3(0x3d6)](_0xfc2f39));_0x33f8a1['originalMeta']=_0x2fcf5d,Object['entries'](_0x33f8a1[_0x2016e3(0x3e0)])['forEach'](([,_0x5f316d])=>{const _0x34717b=_0x2016e3,_0x418074=_0x5f316d[_0x34717b(0x160)],_0x4ee2b9=_0x592d59[_0x34717b(0x2a4)][_0x34717b(0x330)](_0x592d59['b64DecodeUnicode'](_0x418074));_0x5f316d[_0x34717b(0x160)]=_0x4ee2b9;});}return _0x52c5a3;}async[_0x1000c0(0x12a)](_0x2aaf6a,_0x5822ba){const _0x49dd37=_0x1000c0,{unitID:_0x338b20,type:_0x2b1b6b,blockID:_0x1febf7}=_0x5822ba,_0xbb2c46=this['_getAPIPrefix']()+'/'+_0x2b1b6b+_0x49dd37(0x3b8)+_0x338b20+_0x49dd37(0x416)+_0x1febf7;return(await this['_httpService'][_0x49dd37(0x1de)](_0xbb2c46))[_0x49dd37(0x3cf)];}async[_0x1000c0(0x38a)](_0x2a4ef4,_0xd1bc4a){const _0x3e5639=_0x1000c0,{unitID:_0xc016df,type:_0x251911,from:_0x498f3b,to:_0x156971}=_0xd1bc4a,_0x349b5d=this[_0x3e5639(0x48c)]()+'/'+_0x251911+_0x3e5639(0x3b8)+_0xc016df+'/fetchmissing?from='+_0x498f3b+'&to='+_0x156971;return(await this[_0x3e5639(0x434)][_0x3e5639(0x1de)](_0x349b5d))['body'];}[_0x1000c0(0x1bd)](){const _0x439bc3=_0x1000c0;var _0x321c8b;return(_0x321c8b=this[_0x439bc3(0x230)][_0x439bc3(0x393)](_0x3478c0))!=null?_0x321c8b:this[_0x439bc3(0x48c)]();}[_0x1000c0(0x48c)](){const _0x5f3d2b=_0x1000c0;var _0x34821a;return(_0x34821a=this[_0x5f3d2b(0x230)][_0x5f3d2b(0x393)](_0x4ba31f))!=null?_0x34821a:_0x14ea18;}async['getResourcesRequest'](_0x6c3f95,_0x393e3d){const _0x344c0b=_0x1000c0,_0x59db32='/universer-api/snapshot/'+_0x393e3d[_0x344c0b(0x49b)]+_0x344c0b(0x3b8)+_0x393e3d[_0x344c0b(0x10f)]+'/resources';return(await this[_0x344c0b(0x434)][_0x344c0b(0x1de)](_0x59db32,{'params':{'resourceId':JSON['stringify'](_0x393e3d[_0x344c0b(0x4b1)])}}))[_0x344c0b(0x3cf)];}['saveSnapshot'](){const _0x1c998d=_0x1000c0;throw new Error(_0x1c998d(0x3ea));}[_0x1000c0(0x4af)](){const _0x2d338f=_0x1000c0;throw new Error(_0x2d338f(0x3ea));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0x21a4dd=_0x99c184([_0x4d29b6(0x0,_0x592d59['IConfigService']),_0x4d29b6(0x1,_0x1ea985[_0x1000c0(0x368)](_0x490a4f[_0x1000c0(0x4b0)]))],_0x21a4dd);var _0x5e09da=Object['defineProperty'],_0x51d61e=Object['getOwnPropertyDescriptor'],_0x45dfa1=(_0x101316,_0x4f0cf7,_0x8b9861,_0x58a2d8)=>{const _0x18d2c6=_0x1000c0;for(var _0x264030=_0x58a2d8>0x1?void 0x0:_0x58a2d8?_0x51d61e(_0x4f0cf7,_0x8b9861):_0x4f0cf7,_0x14bf94=_0x101316[_0x18d2c6(0x1d8)]-0x1,_0x424d36;_0x14bf94>=0x0;_0x14bf94--)(_0x424d36=_0x101316[_0x14bf94])&&(_0x264030=(_0x58a2d8?_0x424d36(_0x4f0cf7,_0x8b9861,_0x264030):_0x424d36(_0x264030))||_0x264030);return _0x58a2d8&&_0x264030&&_0x5e09da(_0x4f0cf7,_0x8b9861,_0x264030),_0x264030;},_0x4c12cc=(_0x407824,_0x464d4f)=>(_0x366c90,_0x415f5c)=>_0x464d4f(_0x366c90,_0x415f5c,_0x407824);let _0x2d43eb=class extends _0x592d59[_0x1000c0(0x10e)]{constructor(_0x560091,_0x3ab7c9,_0x4ae9c9,_0x5a9495,_0x5277db){const _0x982938=_0x1000c0;super(_0x560091,_0x3ab7c9,_0x4ae9c9),this[_0x982938(0x258)]=_0x5a9495,this[_0x982938(0x195)]=_0x5277db;}['transformUndoRedo'](_0x4215db,_0x1a58ae){const _0x12838d=_0x1000c0,_0x40bfc6=this[_0x12838d(0x179)](_0x4215db);if(_0x40bfc6)try{const _0x413561=this[_0x12838d(0x2a8)](_0x40bfc6,_0x1a58ae);this[_0x12838d(0x45c)](_0x4215db,_0x413561);}catch(_0x45ed4b){this[_0x12838d(0x195)][_0x12838d(0x343)]('[CollaborationUndoRedoService]',_0x45ed4b),this[_0x12838d(0x14a)](_0x4215db);}const _0x3069e8=this[_0x12838d(0x4cc)](_0x4215db);if(_0x3069e8)try{const _0xbad0a3=this['_transformStack'](_0x3069e8,_0x1a58ae);this[_0x12838d(0x42b)](_0x4215db,_0xbad0a3);}catch(_0x25c038){this['_logService'][_0x12838d(0x343)](_0x25c038),this[_0x12838d(0x21c)](_0x4215db);}}[_0x1000c0(0x14a)](_0x31aae4){const _0x5c4d72=_0x1000c0,_0x1ab4d6=this[_0x5c4d72(0x179)](_0x31aae4);_0x1ab4d6&&(_0x1ab4d6[_0x5c4d72(0x1d8)]=0x0,this[_0x5c4d72(0x476)]());}[_0x1000c0(0x21c)](_0x479587){const _0x147695=_0x1000c0,_0x54bc5c=this[_0x147695(0x4cc)](_0x479587);_0x54bc5c&&(_0x54bc5c[_0x147695(0x1d8)]=0x0,this[_0x147695(0x476)]());}[_0x1000c0(0x45c)](_0x3229b1,_0x1736b9){const _0x3dd805=_0x1000c0;this[_0x3dd805(0x1f0)][_0x3dd805(0x4c2)](_0x3229b1,_0x1736b9),this[_0x3dd805(0x476)]();}[_0x1000c0(0x42b)](_0x1a35a3,_0x3aaa52){const _0x3504c6=_0x1000c0;this['_redoStacks'][_0x3504c6(0x4c2)](_0x1a35a3,_0x3aaa52),this[_0x3504c6(0x476)]();}['_transformStack'](_0x50ad52,_0x341c40){const _0x283500=_0x1000c0,_0x33c4a3=[];let _0x3368b7=_0x341c40,_0x36f219=_0x341c40;for(let _0x2863cc=_0x50ad52[_0x283500(0x1d8)]-0x1;_0x2863cc>=0x0;_0x2863cc--){const {unitID:_0xfc4b1b,undoMutations:_0x2f7fdb,redoMutations:_0x2aa075}=_0x50ad52[_0x2863cc],_0x5a65fa=this[_0x283500(0x258)][_0x283500(0x436)](_0x3368b7,_0x2f7fdb),_0x59308d=this[_0x283500(0x258)][_0x283500(0x436)](_0x36f219,_0x2aa075);if(_0x1f6364['isTransformMutationsWithChangesetFailure'](_0x5a65fa)||_0x1f6364[_0x283500(0x420)](_0x59308d)){this[_0x283500(0x195)][_0x283500(0x343)]('[CollaborationUndoRedoService]',_0x283500(0x2d1),_0x5a65fa,_0x59308d);break;}_0x3368b7=_0x5a65fa['c1Prime'],_0x36f219=_0x59308d[_0x283500(0x396)],_0x33c4a3[_0x283500(0x1a6)]({'unitID':_0xfc4b1b,'undoMutations':_0x5a65fa['m2Prime'],'redoMutations':_0x59308d[_0x283500(0x315)]});}return _0x33c4a3['reverse']();}};_0x2d43eb=_0x45dfa1([_0x4c12cc(0x0,_0x592d59[_0x1000c0(0x305)]),_0x4c12cc(0x1,_0x592d59['ICommandService']),_0x4c12cc(0x2,_0x592d59[_0x1000c0(0x27e)]),_0x4c12cc(0x3,_0x1f6364[_0x1000c0(0x34e)]),_0x4c12cc(0x4,_0x592d59[_0x1000c0(0x1ef)])],_0x2d43eb);class _0x22522f extends _0x592d59['RxDisposable']{constructor(){const _0x35b81e=_0x1000c0;super(),_0x40dfd7(this,_0x35b81e(0x1b7)),this[_0x35b81e(0x1b7)]=_0x3c7a49['fromEvent'](window,_0x35b81e(0x23e))[_0x35b81e(0x161)](_0x3c7a49[_0x35b81e(0x3ca)](this['dispose$']),_0x3c7a49[_0x35b81e(0x325)](0x1),_0x3c7a49[_0x35b81e(0x1ad)](void 0x0));}[_0x1000c0(0x1ff)](_0x17c375,_0x221d5f,_0x1b97be=!0x1){const _0x49bfb6=_0x1000c0,_0x1918e8=new URL(window[_0x49bfb6(0x283)][_0x49bfb6(0x2b2)]);_0x1918e8['searchParams'][_0x49bfb6(0x4c2)](_0x17c375,_0x221d5f),_0x1b97be?window[_0x49bfb6(0x402)][_0x49bfb6(0x298)]('','',_0x1918e8['toString']()):window[_0x49bfb6(0x402)]['pushState']('','',_0x1918e8[_0x49bfb6(0x4a3)]());}[_0x1000c0(0x2d2)](_0x50a47a,_0x4d0312=!0x1){const _0x569bf=_0x1000c0,_0x575a03=new URL(window[_0x569bf(0x283)][_0x569bf(0x2b2)]);_0x575a03[_0x569bf(0x1a8)][_0x569bf(0x234)](_0x50a47a),_0x4d0312?window['history'][_0x569bf(0x298)]('','',_0x575a03['toString']()):window[_0x569bf(0x402)][_0x569bf(0x172)]('','',_0x575a03[_0x569bf(0x4a3)]());}['getParam'](_0x23e7da){const _0x3c90f5=_0x1000c0;var _0x4f3897;return(_0x4f3897=new URL(window[_0x3c90f5(0x283)][_0x3c90f5(0x2b2)])[_0x3c90f5(0x1a8)][_0x3c90f5(0x1de)](_0x23e7da))!=null?_0x4f3897:void 0x0;}}const _0x21d306=_0x1000c0(0x293),_0x3738bb=_0x1000c0(0x2a5),_0x506bda=0x6,_0x2db71e=1.5,_0x26449b=0x4,_0x28680e=1.5,_0x5ec182=_0x1000c0(0x4c3);class _0x14f476{constructor(_0x1a10c3,_0x512e7f,_0x38537e,_0x2fef5e){const _0x5a7750=_0x1000c0;_0x40dfd7(this,_0x5a7750(0x488),[]),_0x40dfd7(this,'_anchor',null),_0x40dfd7(this,'_textBubble',null),_0x40dfd7(this,_0x5a7750(0x466),null),_0x40dfd7(this,_0x5a7750(0x187),null),_0x40dfd7(this,'_eventUnsubscribe',null),(this['_cursor']=_0x1a10c3,this[_0x5a7750(0x4c6)]=_0x512e7f,this['_docSkeleton']=_0x38537e,this[_0x5a7750(0x3ce)]=_0x2fef5e,this[_0x5a7750(0x19b)]());}set['_hover'](_0x3377c9){const _0x3e1b39=_0x1000c0;_0x3377c9?(this['_anchorDot']&&this[_0x3e1b39(0x466)][_0x3e1b39(0x348)](),this[_0x3e1b39(0x47a)]&&this[_0x3e1b39(0x47a)][_0x3e1b39(0x2eb)]()):(this[_0x3e1b39(0x466)]&&this[_0x3e1b39(0x466)][_0x3e1b39(0x2eb)](),this[_0x3e1b39(0x47a)]&&this[_0x3e1b39(0x47a)]['hide']());}['dispose'](){const _0xcd5e7a=_0x1000c0;for(const _0xf5b4cd of this[_0xcd5e7a(0x488)])_0xf5b4cd[_0xcd5e7a(0x36f)]();this[_0xcd5e7a(0x47a)]&&this[_0xcd5e7a(0x47a)]['dispose'](),this[_0xcd5e7a(0x466)]&&this[_0xcd5e7a(0x466)][_0xcd5e7a(0x36f)](),this[_0xcd5e7a(0x1a3)]&&this[_0xcd5e7a(0x1a3)][_0xcd5e7a(0x36f)](),this[_0xcd5e7a(0x28b)]&&this[_0xcd5e7a(0x28b)]();}[_0x1000c0(0x19b)](){const _0x457551=_0x1000c0,{_docSkeleton:_0xec0150,_document:_0x4c62ee}=this,{color:_0x4c422b,name:_0x52cf13,ranges:_0x5681b6}=this[_0x457551(0x21b)],_0x174850=_0x4c62ee[_0x457551(0x498)](),{docsLeft:_0x160d81,docsTop:_0x330ea0}=_0x174850,_0x18c88e=new _0x5c59d0[(_0x457551(0x34a))](_0x174850,_0xec0150);for(const {startOffset:_0x358719,endOffset:_0x203557,collapsed:_0x392453,isActive:_0x3a8941}of _0x5681b6){const _0x272aa8=_0xec0150[_0x457551(0x3d1)](_0x358719),_0xcfabd6=_0xec0150[_0x457551(0x3d1)](_0x203557);if(_0x3a8941){const {contentBoxPointGroup:_0x1d32e5}=_0x18c88e[_0x457551(0x406)](_0xcfabd6,_0xcfabd6);if(_0x1d32e5[_0x457551(0x1d8)]===0x0)continue;this[_0x457551(0x3b3)](_0x4c422b,_0x1d32e5,_0x160d81,_0x330ea0,_0x52cf13),this[_0x457551(0x28b)]=this[_0x457551(0x4b3)]();}if(!_0x392453){const {contentBoxPointGroup:_0x4d096d}=_0x18c88e[_0x457551(0x406)](_0x272aa8,_0xcfabd6);if(_0x4d096d[_0x457551(0x1d8)]===0x0)continue;this['_drawRange'](_0x4c422b,_0x4d096d,_0x160d81,_0x330ea0);}}}['_drawAnchor'](_0x4efbd6,_0x431724,_0xc507da,_0x18a006,_0x4ebeaf){const _0x3ab92c=_0x1000c0,_0x57a5c2=this[_0x3ab92c(0x18f)](_0x431724),{left:_0x230b5f,top:_0x66113f,height:_0x5c33e3}=_0x57a5c2,_0x108ee3=this[_0x3ab92c(0x217)](),_0x44e71d=_0x28680e/_0x108ee3,_0x562825=new _0x5c59d0[(_0x3ab92c(0x29c))](_0x21d306+_0x592d59['Tools']['generateRandomId'](_0x506bda),{'left':_0x230b5f+_0xc507da-_0x44e71d,'top':_0x66113f+_0x18a006,'height':_0x5c33e3,'width':_0x2db71e,'fill':_0x4efbd6||_0x5c59d0[_0x3ab92c(0x395)](_0x592d59[_0x3ab92c(0x12e)]['black'],0x0),'strokeWidth':_0x44e71d,'stroke':_0x5ec182,'evented':!0x0});this[_0x3ab92c(0x1a3)]=_0x562825,this[_0x3ab92c(0x4c6)][_0x3ab92c(0x32d)](_0x562825,_0x5c59d0['TEXT_RANGE_LAYER_INDEX']);const _0x217340=new _0x5c59d0['Rect'](_0x21d306+_0x592d59[_0x3ab92c(0x33a)][_0x3ab92c(0x275)](_0x506bda),{'left':_0x230b5f+_0xc507da-_0x44e71d,'top':_0x66113f+_0x18a006-_0x26449b/0x2,'height':_0x26449b,'width':_0x26449b,'fill':_0x4efbd6||_0x5c59d0[_0x3ab92c(0x395)](_0x592d59[_0x3ab92c(0x12e)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x4efbd6||_0x5c59d0[_0x3ab92c(0x395)](_0x592d59['COLORS'][_0x3ab92c(0x1fa)],0x0),'evented':!0x1});this[_0x3ab92c(0x466)]=_0x217340,this[_0x3ab92c(0x4c6)][_0x3ab92c(0x32d)](_0x217340,_0x5c59d0['TEXT_RANGE_LAYER_INDEX']);const _0x319f90=new _0x49ec11(_0x21d306+_0x592d59[_0x3ab92c(0x33a)][_0x3ab92c(0x275)](_0x506bda),{'left':_0x230b5f+_0xc507da-_0x44e71d,'top':_0x66113f+_0x18a006-_0x201da5,'text':_0x4ebeaf,'color':_0x4efbd6});this[_0x3ab92c(0x47a)]=_0x319f90,this[_0x3ab92c(0x4c6)][_0x3ab92c(0x32d)](_0x319f90,_0x5c59d0[_0x3ab92c(0x135)]),this[_0x3ab92c(0x10c)]=!0x1;}['_handleHover'](){const _0x458fda=_0x1000c0,_0x334ba6=this['_anchor'][_0x458fda(0x2e4)][_0x458fda(0x2ea)](()=>{this['_hover']=!0x0;}),_0x594b44=this['_anchor'][_0x458fda(0x2c0)][_0x458fda(0x2ea)](()=>{const _0x271317=_0x458fda;this[_0x271317(0x187)]&&clearTimeout(this[_0x271317(0x187)]),this[_0x271317(0x187)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x24c24e=_0x458fda;_0x334ba6[_0x24c24e(0x22b)](),_0x594b44[_0x24c24e(0x22b)]();};}[_0x1000c0(0x294)](_0x539c44,_0x5a4c05,_0x4fc838,_0x476d23){const _0x4aae6c=_0x1000c0,_0x44953e=new _0x592d59[(_0x4aae6c(0x2a6))](_0x539c44)[_0x4aae6c(0x2ec)](0.2)[_0x4aae6c(0x480)](),_0x3ce5b2=new _0x5c59d0[(_0x4aae6c(0x15a))](_0x3738bb+_0x592d59[_0x4aae6c(0x33a)][_0x4aae6c(0x275)](_0x506bda),{'pointsGroup':_0x5a4c05,'fill':_0x44953e||_0x5c59d0[_0x4aae6c(0x395)](_0x592d59[_0x4aae6c(0x12e)][_0x4aae6c(0x1fa)],0.2),'left':_0x4fc838,'top':_0x476d23,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4aae6c(0x1a6)](_0x3ce5b2),this[_0x4aae6c(0x4c6)][_0x4aae6c(0x32d)](_0x3ce5b2,_0x5c59d0['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x55ece6){const _0x35e136=_0x55ece6[0x0],_0x4a7340=_0x35e136[0x0],_0x853833=_0x35e136[0x2],{x:_0x30e4fb,y:_0x57dfc1}=_0x4a7340,{x:_0x20b417,y:_0x4d40c0}=_0x853833;return{'left':_0x30e4fb,'top':_0x57dfc1,'width':_0x20b417-_0x30e4fb,'height':_0x4d40c0-_0x57dfc1};}[_0x1000c0(0x217)](){const _0x1ae755=_0x1000c0,{scaleX:_0x1e0eb3,scaleY:_0x33feb9}=this[_0x1ae755(0x4c6)]['getAncestorScale']();return Math[_0x1ae755(0x44e)](_0x1e0eb3,_0x33feb9);}}var _0x585164=Object[_0x1000c0(0x1a1)],_0x469e28=Object[_0x1000c0(0x2d4)],_0x33f626=(_0x1fc12b,_0x112dd9,_0x27b755,_0x4d3d4e)=>{const _0x2e509e=_0x1000c0;for(var _0x4437ff=_0x4d3d4e>0x1?void 0x0:_0x4d3d4e?_0x469e28(_0x112dd9,_0x27b755):_0x112dd9,_0x4bedbd=_0x1fc12b[_0x2e509e(0x1d8)]-0x1,_0x325a1f;_0x4bedbd>=0x0;_0x4bedbd--)(_0x325a1f=_0x1fc12b[_0x4bedbd])&&(_0x4437ff=(_0x4d3d4e?_0x325a1f(_0x112dd9,_0x27b755,_0x4437ff):_0x325a1f(_0x4437ff))||_0x4437ff);return _0x4d3d4e&&_0x4437ff&&_0x585164(_0x112dd9,_0x27b755,_0x4437ff),_0x4437ff;},_0x2af8ac=(_0xae4afc,_0x2071f0)=>(_0x528fe1,_0x5719f0)=>_0x2071f0(_0x528fe1,_0x5719f0,_0xae4afc);let _0x524941=class extends _0x592d59['RxDisposable']{constructor(_0x2a8d7b,_0x315242,_0x18e412,_0x38b381,_0x3c8a66){const _0x44e9e3=_0x1000c0;super(),_0x40dfd7(this,_0x44e9e3(0x20e),[]),(this[_0x44e9e3(0x3eb)]=_0x2a8d7b,this['_univerInstanceService']=_0x315242,this[_0x44e9e3(0x333)]=_0x18e412,this[_0x44e9e3(0x4a4)]=_0x38b381,this[_0x44e9e3(0x478)]=_0x3c8a66,this['_init']());}[_0x1000c0(0x224)](){const _0x50a96c=_0x1000c0;this[_0x50a96c(0x4a4)][_0x50a96c(0x1d1)]['pipe'](_0x39f29f[_0x50a96c(0x3ca)](this[_0x50a96c(0x338)]),_0x39f29f['switchMap'](_0x1480b9=>{const _0x3e3ca8=_0x50a96c;if(_0x1480b9){const _0x339271=_0x1480b9[_0x3e3ca8(0x267)]()[_0x3e3ca8(0x214)]()[_0x3e3ca8(0x270)]();return _0x3c7a49[_0x3e3ca8(0x303)](this[_0x3e3ca8(0x3eb)]['getCollabCursors$'](_0x339271),this[_0x3e3ca8(0x478)]['currentTheme$'])['pipe'](_0x39f29f[_0x3e3ca8(0x1f5)](([_0x2c7cfa,_0xd55e01])=>({'skeleton':_0x1480b9,'cursors':[..._0x2c7cfa[_0x3e3ca8(0x38c)]()][_0x3e3ca8(0x415)](_0xa8264e=>({..._0xa8264e,'color':_0xd55e01[_0xa8264e[_0x3e3ca8(0x2a0)]]}))})));}return _0x3c7a49['of']({'skeleton':null,'cursors':[]});}))[_0x50a96c(0x42f)](({skeleton:_0x53e98e,cursors:_0x24cdd0})=>{const _0xa5c628=_0x50a96c;this['_removeCollabCursors'](),_0x53e98e&&this[_0xa5c628(0x2e2)](_0x53e98e,_0x24cdd0);});}[_0x1000c0(0x2e2)](_0x8fcdba,_0x167ec9){const _0x433b46=_0x1000c0,_0x3713b3=this[_0x433b46(0x1ae)]();if(_0x3713b3==null)return;const {scene:_0x3d9e4e,document:_0x5bf2ba}=_0x3713b3,_0x3d24f2=_0x167ec9['map'](_0x284499=>new _0x14f476(_0x284499,_0x3d9e4e,_0x8fcdba,_0x5bf2ba));this[_0x433b46(0x20e)]=_0x3d24f2;}[_0x1000c0(0x4c9)](){const _0x1b58a7=_0x1000c0;this['_cursors']['forEach'](_0x32f415=>_0x32f415[_0x1b58a7(0x36f)]()),this[_0x1b58a7(0x20e)]=[];}[_0x1000c0(0x1ae)](){const _0x1001de=_0x1000c0;return _0x30cc49[_0x1001de(0x412)](this[_0x1001de(0x40b)],this[_0x1001de(0x333)]);}};_0x524941=_0x33f626([_0x592d59['OnLifecycle'](_0x592d59[_0x1000c0(0x1c7)][_0x1000c0(0x4cf)],_0x524941),_0x2af8ac(0x0,_0x1ea985[_0x1000c0(0x368)](_0xc137f8)),_0x2af8ac(0x1,_0x592d59['IUniverInstanceService']),_0x2af8ac(0x2,_0x5c59d0[_0x1000c0(0x36a)]),_0x2af8ac(0x3,_0x1ea985[_0x1000c0(0x368)](_0x30cc49[_0x1000c0(0x37c)])),_0x2af8ac(0x4,_0x1ea985[_0x1000c0(0x368)](_0x592d59[_0x1000c0(0x125)]))],_0x524941);var _0x321025=Object[_0x1000c0(0x1a1)],_0x66c3e3=Object[_0x1000c0(0x2d4)],_0x56c29c=(_0x32a2ab,_0x6551c8,_0x3c584d,_0x4a32ea)=>{const _0x171a6d=_0x1000c0;for(var _0x5318b4=_0x4a32ea>0x1?void 0x0:_0x4a32ea?_0x66c3e3(_0x6551c8,_0x3c584d):_0x6551c8,_0x4ef15f=_0x32a2ab[_0x171a6d(0x1d8)]-0x1,_0x4a4e2b;_0x4ef15f>=0x0;_0x4ef15f--)(_0x4a4e2b=_0x32a2ab[_0x4ef15f])&&(_0x5318b4=(_0x4a32ea?_0x4a4e2b(_0x6551c8,_0x3c584d,_0x5318b4):_0x4a4e2b(_0x5318b4))||_0x5318b4);return _0x4a32ea&&_0x5318b4&&_0x321025(_0x6551c8,_0x3c584d,_0x5318b4),_0x5318b4;},_0x1ba060=(_0xb84d92,_0x5658c3)=>(_0xe73b4a,_0x39775f)=>_0x5658c3(_0xe73b4a,_0x39775f,_0xb84d92);let _0x565a53=class{constructor(_0x37effa,_0x5dc2a5,_0x3b3e35){const _0x50f1c8=_0x1000c0;this[_0x50f1c8(0x230)]=_0x37effa,this['_httpService']=_0x5dc2a5,this[_0x50f1c8(0x413)]=_0x3b3e35,this[_0x50f1c8(0x150)]();}['init'](){const _0x1d9367=_0x1000c0;this['_httpService'][_0x1d9367(0x20b)]({'priority':0x1,'interceptor':(_0x44350c,_0x4e5ae5)=>_0x4e5ae5(_0x44350c)[_0x1d9367(0x161)](_0x3c7a49['concatMap'](async _0x30242f=>{const _0x358ed7=_0x1d9367,_0x5e5c99=_0x30242f;if(_0x5e5c99['status']===0x191&&window['confirm'](this[_0x358ed7(0x413)]['t'](_0x358ed7(0x1ca)))){const _0x185174=window[_0x358ed7(0x276)](window[_0x358ed7(0x283)][_0x358ed7(0x2b2)]);window['location'][_0x358ed7(0x2b2)]=this[_0x358ed7(0x3f8)]()+_0x358ed7(0x337)+_0x185174;}return _0x5e5c99;}))});}[_0x1000c0(0x3f8)](){const _0x38d5e4=_0x1000c0;var _0x1e70b7;return(_0x1e70b7=this[_0x38d5e4(0x230)][_0x38d5e4(0x393)](_0x24179b))!=null?_0x1e70b7:_0x21698b;}};_0x565a53=_0x56c29c([_0x1ba060(0x0,_0x592d59[_0x1000c0(0x41f)]),_0x1ba060(0x1,_0x1ea985[_0x1000c0(0x368)](_0x490a4f[_0x1000c0(0x4b0)])),_0x1ba060(0x2,_0x1ea985[_0x1000c0(0x368)](_0x592d59[_0x1000c0(0x279)]))],_0x565a53);var _0x44f474=Object['defineProperty'],_0x81d61c=Object[_0x1000c0(0x2d4)],_0x805759=(_0x20b8c6,_0xa7d94f,_0x29798b,_0x1aac6a)=>{for(var _0x4e1009=_0x1aac6a>0x1?void 0x0:_0x1aac6a?_0x81d61c(_0xa7d94f,_0x29798b):_0xa7d94f,_0x4c557c=_0x20b8c6['length']-0x1,_0x3ed1cc;_0x4c557c>=0x0;_0x4c557c--)(_0x3ed1cc=_0x20b8c6[_0x4c557c])&&(_0x4e1009=(_0x1aac6a?_0x3ed1cc(_0xa7d94f,_0x29798b,_0x4e1009):_0x3ed1cc(_0x4e1009))||_0x4e1009);return _0x1aac6a&&_0x4e1009&&_0x44f474(_0xa7d94f,_0x29798b,_0x4e1009),_0x4e1009;},_0x17dbe9=(_0x1e16d2,_0x588bbf)=>(_0x16b1d8,_0x5759c3)=>_0x588bbf(_0x16b1d8,_0x5759c3,_0x1e16d2);const _0x2b07b8=_0x1000c0(0x463),_0x31d49f='/universer-api/authz';_0x322d5b[_0x1000c0(0x430)]=class{constructor(_0x213d16,_0x1212d6){const _0x53f6d7=_0x1000c0;this[_0x53f6d7(0x2b9)]=_0x213d16,this['_configService']=_0x1212d6;}['_getAPIPrefixPath'](){const _0x7dea57=_0x1000c0;var _0x24733f;return(_0x24733f=this[_0x7dea57(0x230)][_0x7dea57(0x393)](_0x2b07b8))!=null?_0x24733f:_0x31d49f;}async[_0x1000c0(0x3c0)](_0x1f9c08){const _0x4f6ad7=_0x1000c0,_0x3cb453=this['_getAPIPrefixPath']()+'/'+_0x1f9c08['objectType']+_0x4f6ad7(0x194);return(await this[_0x4f6ad7(0x2b9)]['post'](_0x3cb453,{'body':_0x1f9c08}))[_0x4f6ad7(0x3cf)]['objectID']||'';}async[_0x1000c0(0x1df)](_0x5cc3b6){const _0x4ef467=_0x1000c0,_0xec2e15=this['_getAPIPrefixPath']()+'/-/object/list';return(await this['_HTTPService']['post'](_0xec2e15,{'body':_0x5cc3b6}))['body'][_0x4ef467(0x46a)];}async['update'](_0x5c79bb){const _0xfdde05=_0x1000c0,_0x305dbd=this[_0xfdde05(0x2c6)]()+'/'+_0x5c79bb[_0xfdde05(0x2ad)]+_0xfdde05(0x4d6)+_0x5c79bb[_0xfdde05(0x30e)];await this[_0xfdde05(0x2b9)]['put'](_0x305dbd,{'body':_0x5c79bb});}async[_0x1000c0(0x3fd)](_0x2eee16){const _0x20a6d0=_0x1000c0,_0x10ddb3=this['_getAPIPrefixPath']()+'/'+_0x2eee16[_0x20a6d0(0x2ad)]+_0x20a6d0(0x4d6)+_0x2eee16[_0x20a6d0(0x30e)]+'/allowed';return(await this[_0x20a6d0(0x2b9)][_0x20a6d0(0x33c)](_0x10ddb3,{'body':_0x2eee16}))[_0x20a6d0(0x3cf)][_0x20a6d0(0x24f)];}async['batchAllowed'](_0x33621c){const _0x953b74=_0x1000c0,_0x2f2ccc=this[_0x953b74(0x2c6)]()+_0x953b74(0x379);return(await this['_HTTPService']['post'](_0x2f2ccc,{'body':{'requests':_0x33621c}}))[_0x953b74(0x3cf)]['objectActions'];}async[_0x1000c0(0x37a)](_0x53656a){const _0x2e194b=_0x1000c0,_0x9e0493=this['_getAPIPrefixPath']()+'/'+_0x53656a[_0x2e194b(0x2ad)]+_0x2e194b(0x1e5),_0x2c4c37=await this[_0x2e194b(0x2b9)]['post'](_0x9e0493,{'body':_0x53656a});return{'roles':_0x2c4c37[_0x2e194b(0x3cf)][_0x2e194b(0x492)],'actions':_0x2c4c37[_0x2e194b(0x3cf)][_0x2e194b(0x24f)]};}async[_0x1000c0(0xf8)](_0x227d7f){const _0x19bb8d=_0x1000c0,_0x16bfa1=this['_getAPIPrefixPath']()+_0x19bb8d(0x414);await this[_0x19bb8d(0x2b9)]['delete'](_0x16bfa1,{'params':{'collaboratorID':_0x227d7f[_0x19bb8d(0x3bd)],'objectID':_0x227d7f['objectID'],'unitID':_0x227d7f[_0x19bb8d(0x10f)]}});}async[_0x1000c0(0x344)](_0xab6d0c){const _0x13e7d6=_0x1000c0,_0x3874e0=this[_0x13e7d6(0x2c6)]()+_0x13e7d6(0x414);await this[_0x13e7d6(0x2b9)][_0x13e7d6(0x3be)](_0x3874e0,{'body':_0xab6d0c});}async[_0x1000c0(0x203)](_0x4ecbe0){const _0xc6541f=_0x1000c0,_0x39fe00=this[_0xc6541f(0x2c6)]()+'/collaborator';await this[_0xc6541f(0x2b9)][_0xc6541f(0x33c)](_0x39fe00,{'body':_0x4ecbe0});}async[_0x1000c0(0x367)](_0x3c0c44){const _0x169021=_0x1000c0,_0x52be22=this[_0x169021(0x2c6)]()+_0x169021(0x414);return(await this['_HTTPService'][_0x169021(0x1de)](_0x52be22,{'params':{'objectID':_0x3c0c44[_0x169021(0x30e)],'unitID':_0x3c0c44['unitID']}}))[_0x169021(0x3cf)][_0x169021(0x2d7)];}async[_0x1000c0(0x1c5)](_0x3edc18){const _0x32645f=_0x1000c0,_0x4e97ad=this[_0x32645f(0x2c6)]()+_0x32645f(0x414);await this[_0x32645f(0x2b9)]['put'](_0x4e97ad,{'body':_0x3edc18});}},_0x322d5b[_0x1000c0(0x430)]=_0x805759([_0x17dbe9(0x0,_0x1ea985[_0x1000c0(0x368)](_0x490a4f[_0x1000c0(0x4b0)])),_0x17dbe9(0x1,_0x1ea985[_0x1000c0(0x368)](_0x592d59[_0x1000c0(0x41f)]))],_0x322d5b[_0x1000c0(0x430)]);var _0x5c31dc=Object['defineProperty'],_0x4e1ec5=Object['getOwnPropertyDescriptor'],_0x57e363=(_0x3aadf0,_0x1e5f1d,_0xad909a,_0xe7be)=>{const _0x77a2e5=_0x1000c0;for(var _0x5a9245=_0xe7be>0x1?void 0x0:_0xe7be?_0x4e1ec5(_0x1e5f1d,_0xad909a):_0x1e5f1d,_0x3c5987=_0x3aadf0[_0x77a2e5(0x1d8)]-0x1,_0x51f94b;_0x3c5987>=0x0;_0x3c5987--)(_0x51f94b=_0x3aadf0[_0x3c5987])&&(_0x5a9245=(_0xe7be?_0x51f94b(_0x1e5f1d,_0xad909a,_0x5a9245):_0x51f94b(_0x5a9245))||_0x5a9245);return _0xe7be&&_0x5a9245&&_0x5c31dc(_0x1e5f1d,_0xad909a,_0x5a9245),_0x5a9245;},_0x39d37c=(_0x3b58da,_0x3f7fc8)=>(_0x5083dc,_0x45953b)=>_0x3f7fc8(_0x5083dc,_0x45953b,_0x3b58da);const _0x1cd68a=[_0x1000c0(0x2bb),_0x1000c0(0x4a2),_0x1000c0(0x376),_0x1000c0(0x1cd),_0x1000c0(0x1d4)],_0x40c14a=0x5*0x400*0x400,_0x126eaa=_0x1000c0(0x285),_0x1c51e0=_0x1000c0(0x23f),_0x3184f1=_0x1000c0(0x2e8),_0x426cbc=_0x1000c0(0x1bc);let _0x1c3e30=class{constructor(_0x1d6efd,_0x1fabb0){const _0x17c426=_0x1000c0;_0x40dfd7(this,'_waitCount',0x0),_0x40dfd7(this,_0x17c426(0x484),new _0x3c7a49['Subject']()),_0x40dfd7(this,_0x17c426(0x17e),this['_change$']),_0x40dfd7(this,_0x17c426(0x109),new Map()),(this[_0x17c426(0x434)]=_0x1d6efd,this['_configService']=_0x1fabb0);}[_0x1000c0(0x1d3)](_0x60eccb){const _0x2bdeb1=_0x1000c0;this[_0x2bdeb1(0x216)]=_0x60eccb,this[_0x2bdeb1(0x484)][_0x2bdeb1(0x117)](_0x60eccb);}['getImageSourceCache'](_0x23495f,_0x2f72fe){const _0x127aa2=_0x1000c0;if(_0x2f72fe===_0x3b3d9c['ImageSourceType'][_0x127aa2(0x39e)]){const _0xfd706c=new Image();return _0xfd706c[_0x127aa2(0x31c)]=_0x23495f,_0xfd706c;}return this[_0x127aa2(0x109)][_0x127aa2(0x1de)](_0x23495f);}[_0x1000c0(0x2dd)](_0x3969ac,_0x400992,_0x5df407){const _0x2b0db4=_0x1000c0;_0x400992===_0x3b3d9c[_0x2b0db4(0x1d9)]['BASE64']||_0x5df407==null||this[_0x2b0db4(0x109)][_0x2b0db4(0x4c2)](_0x3969ac,_0x5df407);}async[_0x1000c0(0x2be)](_0xe93dc4){const _0x2ef9eb=_0x1000c0;try{const _0x3afdb5=this[_0x2ef9eb(0x39b)](this[_0x2ef9eb(0x25b)](),''+_0xe93dc4),_0x1b0a13=(await this['_httpService']['get'](_0x3afdb5))[_0x2ef9eb(0x3cf)];return _0x1b0a13[_0x2ef9eb(0x343)]&&_0x1b0a13['error']['code']===_0x39c634['OK']?Promise[_0x2ef9eb(0x439)](_0x1b0a13[_0x2ef9eb(0x231)]):Promise[_0x2ef9eb(0x432)](_0x1b0a13[_0x2ef9eb(0x343)]);}catch(_0x5ad112){return Promise['reject'](_0x5ad112);}}async['saveImage'](_0x193d6e){const _0x4d34d4=_0x1000c0;let _0x4a44d5='';if(!_0x1cd68a[_0x4d34d4(0x482)](_0x193d6e[_0x4d34d4(0x49b)]))return this[_0x4d34d4(0x1e4)](),Promise[_0x4d34d4(0x432)](new Error(_0x3b3d9c[_0x4d34d4(0x400)][_0x4d34d4(0x310)]));if(_0x193d6e[_0x4d34d4(0x237)]>_0x40c14a)return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x3b3d9c[_0x4d34d4(0x400)][_0x4d34d4(0x271)]));try{const _0x2b9d58=new FormData();_0x2b9d58[_0x4d34d4(0x1ab)]('file',_0x193d6e);const _0x3589c9=this[_0x4d34d4(0x22a)]()+_0x4d34d4(0x383)+_0x193d6e[_0x4d34d4(0x237)][_0x4d34d4(0x4a3)](),_0x1935a6=await(await fetch(_0x3589c9,{'method':_0x4d34d4(0x221),'body':_0x2b9d58}))[_0x4d34d4(0x23b)]();if(typeof _0x1935a6[_0x4d34d4(0x2f2)]!=_0x4d34d4(0x422))return this[_0x4d34d4(0x1e4)](),Promise[_0x4d34d4(0x432)](new Error(_0x3b3d9c['ImageUploadStatusType'][_0x4d34d4(0x40d)]));_0x4a44d5=_0x1935a6[_0x4d34d4(0x2f2)];}catch{return this[_0x4d34d4(0x1e4)](),Promise['reject'](new Error(_0x3b3d9c[_0x4d34d4(0x400)]['ERROR_IMAGE']));}return new Promise((_0x5e136f,_0x3c2023)=>{const _0x2dd256=_0x4d34d4,_0x768c0a=new FileReader();_0x768c0a[_0x2dd256(0x111)](_0x193d6e),_0x768c0a['onload']=_0xf37bc7=>{const _0x87a17f=_0x2dd256;var _0x1e1b26;const _0x1fcacf=(_0x1e1b26=_0xf37bc7[_0x87a17f(0x2b4)])==null?void 0x0:_0x1e1b26[_0x87a17f(0x170)];if(_0x1fcacf==null){this[_0x87a17f(0x1e4)](),_0x3c2023(new Error(_0x3b3d9c[_0x87a17f(0x400)]['ERROR_IMAGE']));return;}const _0x1498b6=_0x592d59[_0x87a17f(0x33a)][_0x87a17f(0x275)](0x6);_0x5e136f({'imageId':_0x1498b6,'imageSourceType':_0x3b3d9c[_0x87a17f(0x1d9)]['UUID'],'source':_0x4a44d5,'base64Cache':_0x1fcacf,'status':_0x3b3d9c[_0x87a17f(0x400)][_0x87a17f(0x31e)]}),this[_0x87a17f(0x1e4)]();};});}[_0x1000c0(0x22a)](){const _0x27d475=_0x1000c0;var _0x3e6644;return(_0x3e6644=this[_0x27d475(0x230)][_0x27d475(0x393)](_0x126eaa))!=null?_0x3e6644:_0x1c51e0;}['_getSignURL'](){const _0x5de03f=_0x1000c0;var _0x2778cb;return(_0x2778cb=this[_0x5de03f(0x230)][_0x5de03f(0x393)](_0x3184f1))!=null?_0x2778cb:_0x426cbc;}[_0x1000c0(0x39b)](_0x1dbbe3,_0xbcdaf1){const _0x168297=_0x1000c0;return _0x1dbbe3[_0x168297(0x164)]('{fileID}',_0xbcdaf1);}[_0x1000c0(0x1e4)](){const _0x44deb9=_0x1000c0;this[_0x44deb9(0x216)]-=0x1,this[_0x44deb9(0x484)][_0x44deb9(0x117)](this[_0x44deb9(0x216)]);}};_0x1c3e30=_0x57e363([_0x39d37c(0x0,_0x1ea985[_0x1000c0(0x368)](_0x490a4f[_0x1000c0(0x4b0)])),_0x39d37c(0x1,_0x592d59[_0x1000c0(0x41f)])],_0x1c3e30);var _0x490821=Object[_0x1000c0(0x1a1)],_0x5ee236=Object[_0x1000c0(0x2d4)],_0x2370bf=(_0x1eecbb,_0x56c6c6,_0x3ea297)=>_0x56c6c6 in _0x1eecbb?_0x490821(_0x1eecbb,_0x56c6c6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ea297}):_0x1eecbb[_0x56c6c6]=_0x3ea297,_0x540fda=(_0xbf8689,_0x262718,_0x909a0b,_0x68fd6a)=>{for(var _0x48f9a4=_0x68fd6a>0x1?void 0x0:_0x68fd6a?_0x5ee236(_0x262718,_0x909a0b):_0x262718,_0x5ccf4e=_0xbf8689['length']-0x1,_0x1eb740;_0x5ccf4e>=0x0;_0x5ccf4e--)(_0x1eb740=_0xbf8689[_0x5ccf4e])&&(_0x48f9a4=(_0x68fd6a?_0x1eb740(_0x262718,_0x909a0b,_0x48f9a4):_0x1eb740(_0x48f9a4))||_0x48f9a4);return _0x68fd6a&&_0x48f9a4&&_0x490821(_0x262718,_0x909a0b,_0x48f9a4),_0x48f9a4;},_0x5889aa=(_0xa8cd26,_0x231e38)=>(_0x30f17e,_0x2dcdf3)=>_0x231e38(_0x30f17e,_0x2dcdf3,_0xa8cd26),_0x5674a0=(_0x26f970,_0x278be7,_0x113a8b)=>_0x2370bf(_0x26f970,_0x278be7+'',_0x113a8b);const _0x1d21f0='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x322d5b[_0x1000c0(0x32a)]=class extends _0x592d59[_0x1000c0(0x3fa)]{constructor(_0xc4bc2e,_0x137f2f,_0x238577){const _0xdc06a1=_0x1000c0;super(),this[_0xdc06a1(0x362)]=_0xc4bc2e,this['_logService']=_0x137f2f,this['_injector']=_0x238577;}['onStarting'](_0x1c4faf){const _0x1659ef=_0x1000c0;var _0x55a591,_0x200a5a,_0x47ab5b,_0x3dd719,_0x2f9460;_0x1c4faf[_0x1659ef(0x321)](_0x592d59['IUndoRedoService'])&&this[_0x1659ef(0x195)][_0x1659ef(0x343)](_0x1659ef(0x4ab),_0x1659ef(0x46f));let _0x3047c0=[[_0x592d59[_0x1659ef(0x116)],{'useClass':_0x2d43eb}],[_0x322d5b[_0x1659ef(0x272)]],[_0x3c16e5],[_0x490a4f[_0x1659ef(0x4b0)]],[_0x30215f,{'useClass':_0x22522f}],[_0x2539c6],[_0x322d5b[_0x1659ef(0x24c)]],[_0x490a4f[_0x1659ef(0x27a)]],[_0x20fcca],[_0x12dda8],[_0x38f511],[_0x148177],[_0x565a53],[_0x3c2f54],[_0x81d796,{'useClass':(_0x200a5a=(_0x55a591=this['_config'])==null?void 0x0:_0x55a591[_0x1659ef(0x358)])!=null?_0x200a5a:_0x322d5b['CollaborationSocketService']}],[_0x490a4f[_0x1659ef(0x26b)],{'useClass':_0x490a4f[_0x1659ef(0x3c1)]}],[_0x592d59[_0x1659ef(0x460)],{'useClass':_0x21a4dd}],[_0x592d59[_0x1659ef(0x1fc)],{'useClass':_0x322d5b[_0x1659ef(0x430)]}],[_0x3b3d9c[_0x1659ef(0x17c)],{'useClass':_0x1c3e30}],[_0x322d5b['CollaborationController']],[_0x322d5b['DataLoaderController']],[_0x322d5b[_0x1659ef(0x144)]],[_0x23508c],[_0xc137f8]];(_0x47ab5b=this[_0x1659ef(0x362)])!=null&&_0x47ab5b[_0x1659ef(0x419)]&&_0x3047c0['push']([_0x1572dd,{'useClass':_0x24ef9a}]),((_0x3dd719=this[_0x1659ef(0x362)])==null?void 0x0:_0x3dd719['collaborationUniverTypes'])==null||this[_0x1659ef(0x362)][_0x1659ef(0x1dd)][_0x1659ef(0x482)](_0x592d59['UniverInstanceType'][_0x1659ef(0x149)])?_0x3047c0['push']([_0x480b36]):this[_0x1659ef(0x362)][_0x1659ef(0x1dd)][_0x1659ef(0x482)](_0x592d59['UniverInstanceType'][_0x1659ef(0x119)])&&_0x3047c0[_0x1659ef(0x1a6)]([_0x524941]),_0x3047c0=_0x592d59[_0x1659ef(0x444)](_0x3047c0,(_0x2f9460=this[_0x1659ef(0x362)])==null?void 0x0:_0x2f9460[_0x1659ef(0x3c4)]),_0x3047c0['forEach'](_0x278b64=>_0x1c4faf[_0x1659ef(0x290)](_0x278b64)),_0x1c4faf[_0x1659ef(0x1de)](_0x490a4f[_0x1659ef(0x4b0)])[_0x1659ef(0x20b)]({'priority':0x14,'interceptor':_0x490a4f[_0x1659ef(0x17b)]({'maxParallel':0x6})}),this[_0x1659ef(0x175)]();}['_initModules'](){const _0x218620=_0x1000c0;var _0xffc4b8,_0x54a60f;(_0xffc4b8=this[_0x218620(0x362)])!=null&&_0xffc4b8[_0x218620(0x3ef)]||this['_injector'][_0x218620(0x1de)](_0x322d5b['LocalCacheService'])[_0x218620(0x3e8)](),(_0x54a60f=this[_0x218620(0x362)])!=null&&_0x54a60f[_0x218620(0x297)]&&this[_0x218620(0x27f)]['get'](_0x565a53);}},_0x5674a0(_0x322d5b[_0x1000c0(0x32a)],_0x1000c0(0x346),_0x1d21f0),_0x322d5b[_0x1000c0(0x32a)]=_0x540fda([_0x592d59[_0x1000c0(0x280)](_0x1f6364[_0x1000c0(0x16d)]),_0x5889aa(0x1,_0x592d59[_0x1000c0(0x1ef)]),_0x5889aa(0x2,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)]))],_0x322d5b['UniverCollaborationClientPlugin']),_0x322d5b['AUTHZ_URL_KEY']=_0x2b07b8,_0x322d5b[_0x1000c0(0x222)]=_0x50bca1,_0x322d5b['COLLAB_WEB_SOCKET_URL_KEY']=_0x1ed340,_0x322d5b[_0x1000c0(0x409)]=_0x3e6f91,_0x322d5b[_0x1000c0(0xff)]=_0x1d230a,_0x322d5b[_0x1000c0(0x142)]=_0x3c2f54,_0x322d5b[_0x1000c0(0x2fc)]=_0x415ece,_0x322d5b[_0x1000c0(0x300)]=_0x22e7f5,_0x322d5b[_0x1000c0(0x2ba)]=_0x81d796,_0x322d5b[_0x1000c0(0x36b)]=_0x30215f,_0x322d5b[_0x1000c0(0x12d)]=_0x5cb089,_0x322d5b[_0x1000c0(0x381)]=_0x24179b,_0x322d5b[_0x1000c0(0x494)]=_0x48f0d1,_0x322d5b[_0x1000c0(0x457)]=_0x4ba31f,_0x322d5b[_0x1000c0(0x380)]=_0x3478c0,_0x322d5b['SessionStatus']=_0x28f044,_0x322d5b[_0x1000c0(0x1fd)]=_0x22522f,_0x322d5b['deserializeToCombResponse']=_0x339084,_0x322d5b[_0x1000c0(0x11b)]=_0x488cf7,Object['defineProperty'](_0x322d5b,Symbol[_0x1000c0(0x446)],{'value':_0x1000c0(0x407)});}));function _0x492d(_0xc57c64,_0x3f26ef){const _0x23bd23=_0x23bd();return _0x492d=function(_0x492da9,_0x5d9a4a){_0x492da9=_0x492da9-0xf6;let _0x2504a4=_0x23bd23[_0x492da9];return _0x2504a4;},_0x492d(_0xc57c64,_0x3f26ef);}function _0x23bd(){const _0x59b3ec=['isTransformChangesetsSuccess','_replaceFileID','newValue','RevisionService','BASE64','url(#on-line-single_clip0_910_349)','status$','_startSheetCollabCursor','amd','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','onlineStatusTitle','all','HEARTBEAT','VIEWPORT_KEY','APPLY_NON_SEQUENTIAL_REVISION','HELLO','_clearLocalCache','_compressMutationService','setCurrentUser','818676jYcWky','_session','ALREADY_EXISTS','_initStatusListener','beginPath','univer-online','_drawAnchor','PERMISSION_DENIED','idSuffix','drawWith','editing\x20status\x20changed\x20to','/unit/','_unlockTransition','awaitingChangeset','getSelections','HEARTBEAT_INTERVAL','collaboratorID','patch','_isPermissionRej','create','XHRHTTPImplementation','setTimeout','_labelPosition','override','getActiveSheet','_queuedRemoteChangesets','_transformIMECache','UniverSheetsUi','NOT_COLLAB','takeUntil','updateOfflineData','forwardRef','DeleteRangeMoveLeftCommandId','_document','body','FromArray','findNodePositionByCharIndex','_commentUpdate$','createElement','collabStatus.offline','filter','b64DecodeUnicode','_urlService','_onCursorUpdate','clipPath','univerjs-icon\x20univerjs-icon-','UniverCollaborationClient','6qsTrSC','React','className','SetTextSelectionsOperation','sheets','0\x200\x2016\x2016','getRoom','EffectRefRangId','_colorAssignService','random','YUUMI_UNABLE_LOAD_URL','name','disableLocalCache','getAncestorScale','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_collabCursorController','icon','SnapshotService','Injector','enableOfflineEditing','handleIRemoveCol','measureText','apply','collabStatus.conflict','MessageType','[PendingState]:\x20unhandled\x20univer\x20type:\x20','\x20in\x20_schedule.','_lastPointer','_getLoginPath','_scheduleReconnection','Plugin','error$','0\x200\x2017\x2016','allowed','transformIMECache','range','ImageUploadStatusType','_commandService','history','UniverDesign','_onRemoteACK','[CollaborationSessionService]:\x20socket\x20error','getRangePointData','Module','collaboration-client.offline-data-not-saved','CollaborationStatus','_heartbeatTimer','_univerInstanceService','_roomMembers$','ERROR_IMAGE','isArray','INVALID_ARGUMENT','_retryConnectingTimer','IMessageService','getDocObject','localeService','/collaborator','flatMap','/block/','_sessions','code','enableSingleActiveInstanceLock','connection\x20error','_updateLocalCache','socket\x20close','react','@univerjs/drawing','IConfigService','isTransformMutationsWithChangesetFailure','whenReady','string','isTransformMutationFailure','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_id','selection','open$','_clearTimeoutTimer','_onCombEvent','_onUserJoin','_substituteRedoStack','labelPosition','min','handleInsertCol','subscribe','AuthzIoHttpService','_refRangeService','reject','UNKNOWN_CMD','_httpService','[OfflineState]:\x20received\x20changeset.','transformMutationsWithChangeset','InsertSheetMutation','_docStateChangeManagerService','resolve','fromEvent','closePath','skeleton','top','_acknowledgedAwaitingChangeset','syncEditingCollabCursor','slice','then','COMPRESS_MUTATION_APPLY','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','mergeOverrideWithDependencies','uni.network.url-service','toStringTag','Error','hovered','getSheetId','isEditing','_lockTransition','_joinRoom','_sessionStatus$','max','_assignedColors','Disposable','clearTimeout','function','trim','onTransformRemoteChangesetByIMECache','removeMember','saveOfflineData','SNAPSHOT_SERVER_URL_KEY','CompressMutationService','setShapeProps','RefRangeService','off-line-single','_substituteUndoStack','DocStateChangeManagerService','LOCAL_CACHE_INTERVAL','/new_changes','ISnapshotServerService','Ready','updateCursorEvent','AUTHZ_URL_KEY','width','commentUpdate$','_anchorDot','registerBeforeClose','_updateLocalCursor','parseProtocolChangeset','objects','_setupBeforeClosingHandler','addEventListener','fetch_missing','NO_OTHER_CLIENTS_EDITING','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','submit\x20changeset\x20error!','SelectionManagerService','routeKey','_toggleOnline','_clearScheduledTask','changesets','_updateStatus','UNIVER_SLIDE','_themeService','collabCursorState$','_textBubble','OnLifecycle','PENDING','_collaborationController','mapDocumentTypeToUniverType','LIVESHARE_FETCH_OPERATIONS','toRgbString','getOwnPropertySymbols','includes','cursorInfo','_change$','from','split','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','_shapes','conflict.title','transformByState','RichTextEditingMutation','_getAPIPrefix','univer-pro.collaboration-client-socket-service','@wendellhu/redi','fillStyle','_scheduleHeartbeat','[CollaborationSessionService]','roles','3952688ZCBiAp','SEND_CHANGESET_TIMEOUT_KEY','_tryEnsureSocket','failed\x20to\x20apply\x20missed\x20changesets!','_onConflict','getOffsetConfig','LICENSE_MAX_UNITS_EXCEEDED','_createInitialStateImpl','type','m1Prime','_onFetchMissResult','Optional','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_sheetSkeletonManagerService','_color','image/jpeg','toString','_docSkeletonManagerService','OFFLINE','APPLY_REJECT','_socketReady','getCollabEntity$','UniverRpc','memberID','[UniverCollaborationClientPlugin]','editingUnit','univer-offline','debounce','saveSheetBlock','HTTPService','resourceIDs','@univerjs/network','_handleHover','session.collaboration-timeout','complete','SetSelectionsOperation','_transformRemoteChangesetByIMECache','SEND_CHANGESET_TIMEOUT','RemoveColCommandId','getTime','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','YUUMI_URL_COL_OUT_OF_RANGE','_scheduleTimestamp','unit','leaveEvent','TextSelectionManagerService','useDependency','set','rgba(255,\x20255,\x20255,\x200.01)','BuiltInUIPart','fillText','_scene','_getSheetObject','_updateState','_removeCollabCursors','_messageService','synced','_getRedoStack','startColumn','COLLAB_WEB_SOCKET_URL','Steady','UNIVER_UNKNOWN','onSendChangeset','getActiveRange','rev','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','url(#$1','/object/','session.will-retry','InsertRangeMoveRightCommandId','unit-cache-','path','_replayCachedMutations','LEAVE','deleteCollaborator','makeDirty','_members','lineTo','online','_scheduleSaving','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','CollaborationStatusDisplay','restore','endColumn','_waitForHeartbeatResponse','@univerjs/engine-render','Vector2','OTHER_CLIENTS_EDITING','1em','appendMutation','[PendingState]:\x20received\x20acknowledgement.','_imageSourceCache','entries','setItem','_hover','_sendHeartbeat','LocalUndoRedoService','unitID','INTERNAL_ERROR','readAsDataURL','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','resend','_clearCollaborationTimeoutTimer','state','IUndoRedoService','next','defs','UNIVER_DOC','useRef','serializeCombRequest','CollaborationSocketService','_initStatusComponent','currentColor','_singleActiveUnitService','_draw','#FFF','mutations','_socket$','_onRecvEvent','ThemeService','getRenderById','LIVESHARE_REQUEST_HOST','@wendellhu/redi/react-bindings','session','getSheetBlock','_notificationService','_pendingMutations','LOCAL_CACHE_INTERVAL_KEY','COLORS','onMissedChangesetFetched','toggleOffline','ICommandService','getSheetObject','USERS_LEAVE','createInstance','TEXT_RANGE_LAYER_INDEX','getViewport','CommandType','_transitionLocked','INGEST','take','createIdentifier','liveShareNewHost','_userManagerService','getTypeOfUnitAdded$','_transformUndoRedoStack','_localCacheService','UniverEngineRender','CommentService','unshift','DesktopCollaborationStatusDisplayController','svg','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','_permissionService','onlineStatus','UNIVER_SHEET','_clearUndo','isActive','csRejEvent','registerComponent','_colorIndex','colorChannel1','init','LIVESHARE_OPERATION','_saveCache','fetching\x20missing\x20changesets\x20from\x20','sheetId','\x20to\x20','FETCH_MISS','UPDATE_CURSOR','parseChangesetToProtocol','CollaborationEvent','RegularPolygon','addObjects','getUnitOnRev','_toggleOffline','fill','_disableEditing','originalMeta','pipe','_onUserLeave','joinRsp','replace','INotificationService','APPLY_PERMISSION_DENIED','jiqing500','sequenceExecute','InsertRowCommandId','send','_socketMessageSubscription','_submitChangeset','UniverCollaborationPlugin','_scheduleCollaborationTimeoutTimer','handleDeleteRangeMoveLeft','result','_removeRoom','pushState','Warning','serializeTextRange','_initModules','_onRemoteRejected','_docTransformIMECacheService','onCommandExecuted','_getUndoStack','ILocalStorageService','ThresholdInterceptorFactory','IImageIoService','UNDEFINED','change$','Starting','isTransformMutationsWithChangesetSuccess','registerOnClose','unload','interceptor','DeleteRangeMoveUpCommandId','_transformUndoredo','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_hideTimer','_updateURLWithCurrentState','_executeRemoteChangeset','object','_sendHeartbeatTimer','[FetchMissState]','MSG_FOR_ERROR','onStateChange','_getAnchorBounding','SNAPSHOT_HAS_BEEN_REMOVED','onMouseMove','DataLoaderController','@univerjs/sheets-ui','/object','_logService','_transformSelections','TOO_MANY_REQUESTS','/universer-api/oidc/authpage','stringify','onTransformIME','_render','_sheetTransformSelectionsService','getItem','executeCommand','liveShareOperation','[CollaborationEntity]','defineProperty','getParam','_anchor','currentTheme$','getUnitStatus$','push','InsertColCommandId','searchParams','getSheetBySheetId','runRefRangeMutations','append','height','mapTo','_getDocObject','getCurrent','DEFAULT_FILE_NAME','_removeClearOtherTimer','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','assignAColorForMemberID','1241247kexWfE','UniverInstanceType','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','urlChange$','2504292tGueLh','[SyncedState]:\x20received\x20rejection.','rxjs','getFocusedUnit','/universer-api/file/{fileID}/sign-url','_getSnapshotAPIPrefix','off-line-single_clip0_910_343','#fff','_startCollaboration','onlineStatusIcon','requireSession','2829415VhEloN','UniverCore','putCollaborators','sheetID','LifecycleStages','_applyRemoteChangeset','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','auth.needGotoLoginAlert','RemoveRowCommandId','getMember','image/gif','attrs','distinctUntilChanged','handleMoveRange','currentSkeleton$','_sendingTimer','setWaitCount','image/bmp','CHANGESET_ACK','UniverUi','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','length','ImageSourceType','/rev/','18wHQSFE','IBeforeCloseService','collaborationUniverTypes','get','list','_revisionService','getInterceptPoints','_getCurrentRevision','_cachedData','_decreaseWaiting','/role','use','PSEUDO_FETCH_MISSING_RESULT','COMPRESS_MUTATION_SEND','handleInsertRangeMoveRight','_docTransformSelectionsService','_collaborationPaused','params','collabStatus.fetchMiss','cursorInfo$','ILogService','_undoStacks','ranges','unknown','_ensureSubject','arc','map','RETRY_CONNECTING_MAX_COUNT','defIds','font','UniverCollaboration','black','_unitOnClients','IAuthzIoService','WebURLService','HEARTBEAT_TIMEOUT','setParam','CollaborationController','collaMsg','IRemoteInstanceService','createCollaborator','delay','transformSelections','_incrementRevisionNumber','[OfflineState]:\x20received\x20rejection.','Shape','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','conflict','registerHTTPInterceptor','_transformPreviousActiveRange','updatePermissionPoint','_cursors','[OfflineState]:\x20received\x20acknowledgement.','HEADER_MENU','_undoRedoService','_createHandler','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','getDataModel','disposeWithMe','_waitCount','_getScale','_localStorageService','@univerjs/ui','focused$','_cursor','_clearRedo','selections','getValue','[CollaborationState]:\x20apply\x20error!','getUnitType','POST','COLLAB_SUBMIT_CHANGESET_URL_KEY','newCsEvent','_init','row','_clearOtherTimers','AWAITING_WITH_PENDING','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','text','_getUploadFileURL','unsubscribe','[SyncedState]:\x20received\x20acknowledgement.','@univerjs/sheets','sessionStatus','startRow','_configService','url','setInterval','_awaitingChangeset','delete','textRanges','doc.mutation.rich-text-editing','size','UniverEngineFormula','loadOfflineData','subunit','json','_docSyncEditingCollabCursorService','UNKNOWN_CODE','popstate','/universer-api/stream/file/upload','univer-pro.collaboration-client.single-active-unit-service','JOIN','LIVESHARE_NEW_HOST','ONLINE','_loadSheet','VIEW_MAIN','onRemoteAck','NOT_FOUND','_loadDoc','_name','_checkMissing','forEach','LocalCacheService','_onLocalMutation','_hovered','actions','save\x20fail\x20reason\x20is\x20','children','_handleHeartbeatEvent','event$','div','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','@univerjs-pro/collaboration','_state','_transformService','clsx','_snapshotServerService','_getSignURL','getCellPositionByOffset','createSocket','CONFLICT','_unitStatus','_syncEditingCollabCursorService','handleIRemoveRow','updateMember','eventID','activeSheet$','_beforeCloseService','call','getViewModel','fillRule','onRemoteChangeset','_getCtorByUniverType','IHTTPImplementation','save','onCommentUpdate','_onRemoteChangeset','_snapshotService','getUnitId','ERROR_EXCEED_SIZE','CollaborationSessionService','column','NEW_CHANGESETS','generateRandomId','encodeURIComponent','getCurrentUser','getCollabEntity','LocaleService','WebSocketService','_socketService','UniverNetwork','FAIL','IContextService','_injector','DependentOn','parse','hasOwnProperty','location','OffLineSingle','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_selfUnitIDs','OnLineSingle','userID','onSyncEditingCollabCursor','@univerjs/engine-formula','_eventUnsubscribe','cmd','session.connection-failed','_startDocCollabCursor','_disabled','add','url(#off-line-single_clip0_910_343)','state$','collab-text-anchor-','_drawRange','getCoordByCell','USERS_ENTER','enableAuthServer','replaceState','_roomMembers','_http','unitId','Rect','getRelativeCoord','_memberService','toDisposable','color','_localeService','_exhaustRemoteChangesetQueue','title','textEncoder','collab-text-range-','ColorKit','roomMembers','_transformStack','UniverDocs','transformMutation','_scheduleClearOtherTimer','_onRefRangeChange','objectType','collabStatus.synced','_ws','_send','c2Prime','href','_handleJoinEvent','target','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','workbook','exports','none','_HTTPService','ICollaborationSocketService','image/png','_uiPartsService','revision','getImage','_createInitialState','onPointerLeave$','extend','isPermissionRej','round','_syncEditingCollabCursor','deepClone','_getAPIPrefixPath','_handler','_collabSessionService','clearInterval','_saveTaskMap','transformChangesets','_onMessage','RxDisposable','_entities','purple300','Unknown\x20user','transformStack\x20failed!','removeParam','tag','getOwnPropertyDescriptor','xlink:href','pending','collaborators','4489835WFMXiJ','deserializeRangeWithSheet','lodash/debounce','handleDeleteRangeMoveUp','UserManagerService','addImageSourceCache','disposeUnit','_unitID','sessionStatus$','getCollabCursors$','_updateCollabCursors','@univerjs/design','onPointerEnter$','[PendingState]:\x20received\x20rejection.','setActiveRange','moveTo','EXCHANGE_SIGN_URL_SERVER_URL_KEY','assign','subscribeEvent','show','setAlpha','LIVESHARE_TERMINATE','indexOf','_handleLeaveEvent','CollaborationSession','close','FileId','_clearHeartbeatTimer','IDLE','_onJoinRoomEvent','onRemoteRej','_timeoutTimer','CHANGESET_REVISION_CONFILICT','_setupSubUnitSync','CONNECTOR_DATA_TOO_LARGE','offline','HEARTBEAT_INTERVAL_KEY','_showConflictNotification','ACTIVE_UNIT_EVENT_CHANNEL','RECV','HEARTBEAT_TIMEOUT_KEY','...','rxjs/operators','combineLatest','WorkbookEditablePermission','IUniverInstanceService','MUTATION','catch','evenodd','on-line-single_clip0_910_349','_collaborationTimeoutTimer','getUnhiddenWorksheets','_event$','displayName','objectID','merge','ERROR_IMAGE_TYPE','SUBMIT_CHANGESET','toggleOnline','RETRY_CONNECTING_INTERVAL','data','m2Prime','useObservable','_status$','_commentService','PERMISSION_REJ','_exhaustSavingTask','triggerDblclick','src','_cursorInfo$','SUCCUSS','message$','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','has','transformRemoteChangeset','onMissingChangesets','UNRECOGNIZED','shareReplay','getUndoRedoMutationParamsCache','enableLocalCache','concat','CHANGESET_REJ','UniverCollaborationClientPlugin','switchMap','asObservable','addObject','_schedule','status','encode','COMMENT_UPDATE','getUniverSheetInstance','_renderManagerService','bottom','getCurrentRevForDocument','socket\x20open.','?url=','dispose$','contains','Tools','Subject','post','FETCH_MISSING','IMEInputManagerService','baseRev','849914NtqIHA','getTypeOfUnitDisposed$','_state$','error','updateCollaborator','registerRefRange','pluginName','_remoteChangesetQueue','hide','_type','NodePositionConvertToCursor','collabStatus.syncing','_unitId','endRow','ITransformService','subUnitId','onTransformSelections','Error\x20on\x20receiving\x20event','_handleEvent','UNAUTHENTICATED','LICENSE_EXPORT_SIZE_EXCEEDED','LICENSE_DISTRO_REJECTED','AWAITING','_onConnectionFailed','socketService','M0\x200H16V16H0z','serializeRangeWithSheet','@univerjs/rpc','getMemberID','fromCollab','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','BehaviorSubject','incrementRevForDocument','permission.content','_config','SheetSkeletonManagerService','@univerjs/docs','MoveRangeCommandId','_getSaveTimeout','listCollaborators','Inject','pauseCollaboration','IRenderManagerService','IURLService','_createSocket','[DataLoaderController]','_range','dispose','clear','loadSheet','collaboration.single-unit.warning','_rescheduleHeartbeatEvent','_socket','_retryCount','image/jpg','_fetchMissChangesets','IPermissionService','/-/object/-/batch_allowed','listRoles','debounceTime','DocSkeletonManagerService','_onCursorDelete','_online','_getSendChangesetTimeout','SNAPSHOT_URL_KEY','LOGIN_URL_KEY','transformUndoRedo','?size=','debug','fetchThroughInterceptors','_onConnectionOpen','_updateSubUnitFromURLParams','SetWorksheetActivateCommand','prototype','fetchMissingChangesets','_entityInit$','values','awaiting','_collabCursorState$','@univerjs/core','awaiting_with_pending','collabStatus.notCollab','APPLY_REVISION_CONFILICT','getConfig','docStateChange$','getColor','c1Prime','gold400','some','UniverDrawing'];_0x23bd=function(){return _0x59b3ec;};return _0x23bd();}