@univerjs-pro/collaboration-client 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +1 -0
- package/lib/types/index.d.ts +4 -0
- package/lib/types/models/cursor.d.ts +3 -1
- package/lib/types/services/auth-server/authz-io-http.service.d.ts +3 -2
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +2 -0
- package/lib/types/services/local-cache/local-cache.service.d.ts +1 -1
- package/lib/types/views/shapes/sheet-collab-cursor.shape.d.ts +1 -0
- package/lib/umd/index.js +1 -1
- package/package.json +35 -35
package/lib/umd/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(_0x46c624,_0x122ac4){const _0x3c19a5=_0x18a3,_0x25bfad=_0x46c624();while(!![]){try{const _0x1f0665=-parseInt(_0x3c19a5(0x154))/0x1*(parseInt(_0x3c19a5(0x339))/0x2)+parseInt(_0x3c19a5(0x1f2))/0x3*(parseInt(_0x3c19a5(0x323))/0x4)+-parseInt(_0x3c19a5(0x18b))/0x5+parseInt(_0x3c19a5(0xb5))/0x6*(-parseInt(_0x3c19a5(0x491))/0x7)+parseInt(_0x3c19a5(0x343))/0x8+parseInt(_0x3c19a5(0x2b2))/0x9+parseInt(_0x3c19a5(0x181))/0xa*(-parseInt(_0x3c19a5(0x1ac))/0xb);if(_0x1f0665===_0x122ac4)break;else _0x25bfad['push'](_0x25bfad['shift']());}catch(_0x4ecc76){_0x25bfad['push'](_0x25bfad['shift']());}}}(_0x2b26,0xe0e39),function(_0x2c9dd5,_0x4ed45d){const _0x54f7b2=_0x18a3;typeof exports=='object'&&typeof module<'u'?_0x4ed45d(exports,require('@univerjs/core'),require(_0x54f7b2(0xf9)),require(_0x54f7b2(0x110)),require('@univerjs/ui'),require(_0x54f7b2(0x180)),require(_0x54f7b2(0x452)),require(_0x54f7b2(0x36a)),require(_0x54f7b2(0x1d1)),require(_0x54f7b2(0x158)),require('@univerjs/network'),require('@univerjs/drawing'),require(_0x54f7b2(0x454)),require(_0x54f7b2(0x125)),require('@univerjs/engine-render'),require(_0x54f7b2(0x489)),require('@wendellhu/redi/react-bindings'),require(_0x54f7b2(0x270)),require(_0x54f7b2(0xdf)),require(_0x54f7b2(0x136))):typeof define==_0x54f7b2(0x37f)&&define[_0x54f7b2(0x2a7)]?define([_0x54f7b2(0x2f4),'@univerjs/core',_0x54f7b2(0xf9),'@univerjs/design',_0x54f7b2(0x1e4),'@univerjs-pro/collaboration',_0x54f7b2(0x452),_0x54f7b2(0x36a),_0x54f7b2(0x1d1),_0x54f7b2(0x158),_0x54f7b2(0x341),'@univerjs/drawing',_0x54f7b2(0x454),_0x54f7b2(0x125),_0x54f7b2(0x196),'@univerjs/sheets-ui',_0x54f7b2(0x1e3),_0x54f7b2(0x270),_0x54f7b2(0xdf),'@univerjs/rpc'],_0x4ed45d):(_0x2c9dd5=typeof globalThis<'u'?globalThis:_0x2c9dd5||self,_0x4ed45d(_0x2c9dd5['UniverCollaborationClient']={},_0x2c9dd5[_0x54f7b2(0x3e9)],_0x2c9dd5[_0x54f7b2(0x20f)],_0x2c9dd5['UniverDesign'],_0x2c9dd5[_0x54f7b2(0xee)],_0x2c9dd5[_0x54f7b2(0x3ed)],_0x2c9dd5[_0x54f7b2(0x452)],_0x2c9dd5[_0x54f7b2(0x36a)],_0x2c9dd5[_0x54f7b2(0x36a)][_0x54f7b2(0x45e)],_0x2c9dd5[_0x54f7b2(0x1b9)],_0x2c9dd5[_0x54f7b2(0x36f)],_0x2c9dd5[_0x54f7b2(0xe3)],_0x2c9dd5[_0x54f7b2(0x473)],_0x2c9dd5[_0x54f7b2(0x2d0)][_0x54f7b2(0x30f)],_0x2c9dd5['UniverEngineRender'],_0x2c9dd5[_0x54f7b2(0xf6)],_0x2c9dd5[_0x54f7b2(0x1e3)],_0x2c9dd5[_0x54f7b2(0x471)],_0x2c9dd5[_0x54f7b2(0xdf)],_0x2c9dd5['UniverRpc']));}(this,function(_0x488928,_0x1c7e0a,_0x213e0a,_0x3ce12d,_0x1fdc42,_0x1aa573,_0x4fa573,_0xf632fb,_0x2c2667,_0x1e7311,_0x2954d5,_0xc2a4f2,_0x124410,_0x3c7f92,_0x5ae3fd,_0x15965e,_0x8de590,_0x4e1c10,_0x10fbf6,_0x3c56f8){'use strict';const _0x5d4ae1=_0x18a3;var _0x3bbb15=Object[_0x5d4ae1(0x428)],_0xa8ed25=(_0x216e6b,_0x1554c0,_0x5a9951)=>_0x1554c0 in _0x216e6b?_0x3bbb15(_0x216e6b,_0x1554c0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a9951}):_0x216e6b[_0x1554c0]=_0x5a9951,_0x2308c9=(_0x46bf28,_0x48a213,_0x442d8e)=>_0xa8ed25(_0x46bf28,typeof _0x48a213!='symbol'?_0x48a213+'':_0x48a213,_0x442d8e);const _0x7cbdce=_0x5d4ae1(0x126),_0x1b349b=_0x5d4ae1(0xeb),_0x523aed=_0x5d4ae1(0x3f7),_0xedbb72=_0x5d4ae1(0x19e),_0x3eb7d7=_0x5d4ae1(0x34a),_0x46e52f=_0x5d4ae1(0x42a),_0x1f2c6f=_0x5d4ae1(0x221),_0x4ec6b1=_0x5d4ae1(0x44b),_0x16c186='RETRY_CONNECTING_INTERVAL',_0x4f576e=_0x5d4ae1(0x1de),_0x2d5df7='LOCAL_CACHE_INTERVAL',_0x4e8e4a=_0x5d4ae1(0x104),_0x1e2c0d=_0x5d4ae1(0x419),_0x5b8cb3='LOGIN_URL_KEY',_0x45679c=_0x5d4ae1(0x13e);var _0x104c3e=(_0x2d6aae=>(_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x42b)]=0x0]='UNDEFINED',_0x2d6aae[_0x2d6aae['OK']=0x1]='OK',_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x2ab)]=0x2]=_0x5d4ae1(0x2ab),_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x2d6)]=0x3]=_0x5d4ae1(0x2d6),_0x2d6aae[_0x2d6aae['NOT_FOUND']=0x4]=_0x5d4ae1(0x222),_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x30c)]=0x5]=_0x5d4ae1(0x30c),_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x364)]=0x6]=_0x5d4ae1(0x364),_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x477)]=0x7]='INVALID_ARGUMENT',_0x2d6aae[_0x2d6aae['TOO_MANY_REQUESTS']=0x8]=_0x5d4ae1(0x3c1),_0x2d6aae[_0x2d6aae['COMPLETION_FINISHED']=0x9]=_0x5d4ae1(0x367),_0x2d6aae[_0x2d6aae[_0x5d4ae1(0xf7)]=0x1389]=_0x5d4ae1(0xf7),_0x2d6aae[_0x2d6aae['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x5d4ae1(0xf8),_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x35e)]=0x1772]=_0x5d4ae1(0x35e),_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x1b5)]=0x1b59]=_0x5d4ae1(0x1b5),_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x450)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x10b)]=0x1b5b]=_0x5d4ae1(0x10b),_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x297)]=0x1b5c]=_0x5d4ae1(0x297),_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x448)]=0x1f41]=_0x5d4ae1(0x448),_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x389)]=0x2329]=_0x5d4ae1(0x389),_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x2b0)]=0x232a]=_0x5d4ae1(0x2b0),_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x3b8)]=0x232b]=_0x5d4ae1(0x3b8),_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x239)]=0x232c]=_0x5d4ae1(0x239),_0x2d6aae[_0x2d6aae['LICENSE_DISTRO_REJECTED']=0x232d]=_0x5d4ae1(0x30a),_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x35a)]=0x2711]=_0x5d4ae1(0x35a),_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x24e)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2d6aae[_0x2d6aae[_0x5d4ae1(0x316)]=-0x1]=_0x5d4ae1(0x316),_0x2d6aae))(_0x104c3e||{}),_0x38246c=(_0x369d0c=>(_0x369d0c[_0x369d0c[_0x5d4ae1(0x16c)]=0x0]=_0x5d4ae1(0x16c),_0x369d0c[_0x369d0c[_0x5d4ae1(0xe0)]=0x1]=_0x5d4ae1(0xe0),_0x369d0c[_0x369d0c[_0x5d4ae1(0xfd)]=0x2]='UNIVER_SHEET',_0x369d0c[_0x369d0c[_0x5d4ae1(0x1c0)]=0x3]=_0x5d4ae1(0x1c0),_0x369d0c[_0x369d0c[_0x5d4ae1(0x316)]=-0x1]='UNRECOGNIZED',_0x369d0c))(_0x38246c||{}),_0x453a1c=(_0x281882=>(_0x281882[_0x281882['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x281882[_0x281882[_0x5d4ae1(0x23c)]=0x1]=_0x5d4ae1(0x23c),_0x281882[_0x281882[_0x5d4ae1(0x3f9)]=0x2]=_0x5d4ae1(0x3f9),_0x281882[_0x281882['LEAVE']=0x3]=_0x5d4ae1(0x318),_0x281882[_0x281882[_0x5d4ae1(0x38b)]=0x4]=_0x5d4ae1(0x38b),_0x281882[_0x281882[_0x5d4ae1(0x33f)]=0x5]=_0x5d4ae1(0x33f),_0x281882[_0x281882['RECV']=0x6]=_0x5d4ae1(0x48d),_0x281882[_0x281882[_0x5d4ae1(0x316)]=-0x1]=_0x5d4ae1(0x316),_0x281882))(_0x453a1c||{}),_0x36d3b1=(_0x2f5d17=>(_0x2f5d17[_0x2f5d17[_0x5d4ae1(0x11a)]=0x0]=_0x5d4ae1(0x11a),_0x2f5d17[_0x2f5d17['OK']=0x1]='OK',_0x2f5d17[_0x2f5d17['FAIL']=0x2]=_0x5d4ae1(0x273),_0x2f5d17[_0x2f5d17[_0x5d4ae1(0x316)]=-0x1]='UNRECOGNIZED',_0x2f5d17))(_0x36d3b1||{}),_0x19d27a=Object['defineProperty'],_0x53208a=Object['getOwnPropertyDescriptor'],_0x49a48c=(_0x50535f,_0x4ebe27,_0x41b860,_0x44054e)=>{const _0x13e71d=_0x5d4ae1;for(var _0xf254b4=_0x44054e>0x1?void 0x0:_0x44054e?_0x53208a(_0x4ebe27,_0x41b860):_0x4ebe27,_0x456bdd=_0x50535f[_0x13e71d(0x30d)]-0x1,_0x508002;_0x456bdd>=0x0;_0x456bdd--)(_0x508002=_0x50535f[_0x456bdd])&&(_0xf254b4=(_0x44054e?_0x508002(_0x4ebe27,_0x41b860,_0xf254b4):_0x508002(_0xf254b4))||_0xf254b4);return _0x44054e&&_0xf254b4&&_0x19d27a(_0x4ebe27,_0x41b860,_0xf254b4),_0xf254b4;},_0x3fc31b=(_0x2f2278,_0x2efc7a)=>(_0x4b2ea6,_0x52ab36)=>_0x2efc7a(_0x4b2ea6,_0x52ab36,_0x2f2278);let _0x1fece3=class extends _0x1c7e0a['Disposable']{constructor(_0x5884d3,_0x110f25){const _0x936ee9=_0x5d4ae1;super(),_0x2308c9(this,'_roomMembers',new Map()),(this[_0x936ee9(0x2aa)]=_0x5884d3,this[_0x936ee9(0x14c)]=_0x110f25,this[_0x936ee9(0xf2)](_0x1c7e0a['toDisposable'](_0xf632fb[_0x936ee9(0xca)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1c7e0a[_0x936ee9(0x22d)][_0x936ee9(0xfd)])['pipe'](_0x2c2667[_0x936ee9(0x324)](_0x28d173=>_0x28d173['getUnitId']())),this[_0x936ee9(0x2aa)][_0x936ee9(0x3a1)](_0x1c7e0a[_0x936ee9(0x22d)]['UNIVER_DOC'])[_0x936ee9(0x272)](_0x2c2667['map'](_0x435fbf=>_0x435fbf[_0x936ee9(0x37d)]())),this['_univerInstanceService'][_0x936ee9(0x3a1)](_0x1c7e0a[_0x936ee9(0x22d)][_0x936ee9(0x1c0)])[_0x936ee9(0x272)](_0x2c2667[_0x936ee9(0x324)](_0x39b934=>_0x39b934['getUnitId']())))[_0x936ee9(0x41c)](_0x17f3d5=>this[_0x936ee9(0x2fc)](_0x17f3d5)))));}['setCurrentUser'](_0x595724){const _0x1f72a4=_0x5d4ae1;this['_userManagerService'][_0x1f72a4(0x3c5)](_0x595724);}[_0x5d4ae1(0x46c)](){const _0x4d9ce=_0x5d4ae1;return this[_0x4d9ce(0x14c)][_0x4d9ce(0x46c)]();}[_0x5d4ae1(0x20e)](_0x4eba77,_0x433d17){const _0x2a4978=_0x5d4ae1;let _0x4b918e=this[_0x2a4978(0x3d9)][_0x2a4978(0xec)](_0x4eba77);_0x4b918e||(_0x4b918e=new _0x155fa3(),this[_0x2a4978(0x3d9)][_0x2a4978(0x36b)](_0x4eba77,_0x4b918e)),_0x4b918e[_0x2a4978(0x20e)](_0x433d17);}['removeMember'](_0x3fba9e,_0x3e4c73){const _0x3872fe=_0x5d4ae1,_0x522e97=this[_0x3872fe(0x3d9)][_0x3872fe(0xec)](_0x3fba9e);_0x522e97&&_0x522e97[_0x3872fe(0x232)](_0x3e4c73);}['getRoom'](_0x13812){const _0x5f3643=_0x5d4ae1;return this[_0x5f3643(0x3d9)][_0x5f3643(0xec)](_0x13812);}[_0x5d4ae1(0x233)](_0x1e2fda,_0x48bee3){const _0x560e3f=_0x5d4ae1,_0x52d3c8=this['_roomMembers'][_0x560e3f(0xec)](_0x1e2fda);if(_0x52d3c8)return _0x52d3c8[_0x560e3f(0x233)](_0x48bee3);}[_0x5d4ae1(0x2fc)](_0x45d512){const _0x4e27a1=_0x5d4ae1,_0x26e729=this[_0x4e27a1(0x3d9)][_0x4e27a1(0xec)](_0x45d512);_0x26e729&&(_0x26e729[_0x4e27a1(0x26d)](),this[_0x4e27a1(0x3d9)][_0x4e27a1(0x1f0)](_0x45d512));}[_0x5d4ae1(0x26d)](){const _0x2e5d85=_0x5d4ae1;this['_roomMembers'][_0x2e5d85(0x32c)](_0x17f783=>_0x17f783[_0x2e5d85(0x26d)]()),this[_0x2e5d85(0x3d9)][_0x2e5d85(0x2c6)]();}};_0x1fece3=_0x49a48c([_0x3fc31b(0x0,_0x1c7e0a[_0x5d4ae1(0x2e9)]),_0x3fc31b(0x1,_0x4fa573[_0x5d4ae1(0x274)](_0x1c7e0a[_0x5d4ae1(0x467)]))],_0x1fece3);class _0x155fa3 extends _0x1c7e0a[_0x5d4ae1(0x284)]{constructor(){const _0x4b58ac=_0x5d4ae1;super(...arguments),_0x2308c9(this,_0x4b58ac(0x478),new Map());}[_0x5d4ae1(0x26d)](){const _0x290f42=_0x5d4ae1;this[_0x290f42(0x478)][_0x290f42(0x2c6)]();}[_0x5d4ae1(0x20e)](_0x5a819f){const _0x5ae052=_0x5d4ae1;this[_0x5ae052(0x478)][_0x5ae052(0x36b)](_0x5a819f[_0x5ae052(0x2ad)],_0x5a819f);}[_0x5d4ae1(0x232)](_0x41181b){const _0x13d8be=_0x5d4ae1;this[_0x13d8be(0x478)]['delete'](_0x41181b);}[_0x5d4ae1(0x233)](_0xf94c0f){const _0x5ccdaa=_0x5d4ae1;return this[_0x5ccdaa(0x478)]['get'](_0xf94c0f);}}function _0x13c8b5(_0x23d197){const _0x149521=_0x5d4ae1;var _0xcfde16,_0x50ba6e,_0x5d9ac3,_0x1dd725;const _0x378db7=_0x23d197[_0x149521(0x12b)],_0x1a6ba1=JSON[_0x149521(0x134)](_0x378db7);switch(_0x1a6ba1[_0x149521(0x41a)]){case _0x453a1c['HEARTBEAT']:case _0x453a1c[_0x149521(0x23c)]:{const _0x4e8ec3=_0x1a6ba1['infoRsp'];return{..._0x1a6ba1,'data':_0x4e8ec3,'cmd':_0x1a6ba1['cmd']};}case _0x453a1c[_0x149521(0x3f9)]:{const _0x348df3=_0x1a6ba1['joinRsp'];return{..._0x1a6ba1,'data':_0x348df3,'cmd':_0x1a6ba1[_0x149521(0x41a)]};}case _0x453a1c['RECV']:{const _0x375676=_0x1a6ba1[_0x149521(0x317)];switch(_0x375676[_0x149521(0x2f5)]){case _0x1aa573['CollaborationEvent']['PERMISSION_REJ']:return{..._0x1a6ba1,'data':{..._0x375676,'data':(_0xcfde16=_0x375676[_0x149521(0x22e)])==null?void 0x0:_0xcfde16['cs']},'cmd':_0x1a6ba1[_0x149521(0x41a)]};case _0x1aa573[_0x149521(0x168)][_0x149521(0x485)]:return{..._0x1a6ba1,'data':{..._0x375676,'data':(_0x50ba6e=_0x375676['csAckEvent'])==null?void 0x0:_0x50ba6e['cs']},'cmd':_0x1a6ba1[_0x149521(0x41a)]};case _0x1aa573['CollaborationEvent'][_0x149521(0x214)]:return{..._0x1a6ba1,'data':{..._0x375676,'data':(_0x5d9ac3=_0x375676['newCsEvent'])==null?void 0x0:_0x5d9ac3['cs']},'cmd':_0x1a6ba1['cmd']};case _0x1aa573[_0x149521(0x168)]['CHANGESET_REJ']:return{..._0x1a6ba1,'data':{..._0x375676,'data':(_0x1dd725=_0x375676[_0x149521(0x1a3)])==null?void 0x0:_0x1dd725['cs']},'cmd':_0x1a6ba1[_0x149521(0x41a)]};case _0x1aa573['CollaborationEvent'][_0x149521(0x3d0)]:return{..._0x1a6ba1,'data':{..._0x375676,'data':_0x375676[_0x149521(0x3cf)]},'cmd':_0x1a6ba1[_0x149521(0x41a)]};case _0x1aa573['CollaborationEvent'][_0x149521(0x251)]:return{..._0x1a6ba1,'data':{..._0x375676,'data':_0x375676[_0x149521(0x45b)]},'cmd':_0x1a6ba1[_0x149521(0x41a)]};case _0x1aa573[_0x149521(0x168)][_0x149521(0xe9)]:return{..._0x1a6ba1,'data':{..._0x375676,'data':_0x375676[_0x149521(0x325)]},'cmd':_0x1a6ba1['cmd']};case _0x1aa573[_0x149521(0x168)][_0x149521(0x340)]:return{..._0x1a6ba1,'data':{..._0x375676,'data':_0x375676[_0x149521(0x3d8)]},'cmd':_0x1a6ba1[_0x149521(0x41a)]};case _0x1aa573['CollaborationEvent'][_0x149521(0x408)]:case _0x1aa573[_0x149521(0x168)][_0x149521(0x487)]:return{..._0x1a6ba1,'data':{..._0x375676,'data':_0x375676[_0x149521(0x3a5)]},'cmd':_0x1a6ba1['cmd']};case _0x1aa573['CollaborationEvent'][_0x149521(0x25d)]:return{..._0x1a6ba1,'data':{..._0x375676,'data':_0x375676[_0x149521(0x3d8)]},'cmd':_0x1a6ba1[_0x149521(0x41a)]};case _0x1aa573[_0x149521(0x168)][_0x149521(0x337)]:return{..._0x1a6ba1,'data':_0x375676,'cmd':_0x1a6ba1[_0x149521(0x41a)]};case _0x1aa573['CollaborationEvent'][_0x149521(0x130)]:return{..._0x1a6ba1,'data':{..._0x375676,'data':_0x375676[_0x149521(0x342)]},'cmd':_0x1a6ba1[_0x149521(0x41a)]};case _0x1aa573[_0x149521(0x168)]['UPDATE_PERMISSION_OBJ']:return{..._0x1a6ba1,'data':{..._0x375676,'data':_0x375676['updatePermissionObjEvent']},'cmd':_0x1a6ba1[_0x149521(0x41a)]};case _0x1aa573['CollaborationEvent']['SHOULD_CLOSE_CONN']:return{..._0x1a6ba1,'data':{..._0x375676,'data':_0x375676['shouldCloseConn']},'cmd':_0x1a6ba1['cmd']};default:return _0x1a6ba1;}}default:return _0x1a6ba1;}}function _0x27edc0(_0x425008){const _0x2d01d6=_0x5d4ae1;switch(_0x425008['cmd']){case _0x453a1c[_0x2d01d6(0x33f)]:case _0x453a1c[_0x2d01d6(0x23c)]:return JSON['stringify']({'cmd':_0x425008['cmd'],'routeKey':_0x425008[_0x2d01d6(0x345)]});case _0x453a1c[_0x2d01d6(0x38b)]:{let _0x30d405;switch(_0x425008[_0x2d01d6(0x12b)][_0x2d01d6(0x2f5)]){case _0x1aa573['CollaborationEvent'][_0x2d01d6(0x3d0)]:{_0x30d405={'eventID':_0x1aa573[_0x2d01d6(0x168)][_0x2d01d6(0x3d0)],'updateCursorEvent':_0x425008[_0x2d01d6(0x12b)][_0x2d01d6(0x12b)]};break;}case _0x1aa573['CollaborationEvent'][_0x2d01d6(0xe9)]:{_0x30d405={'eventID':_0x1aa573[_0x2d01d6(0x168)][_0x2d01d6(0xe9)],'leaveEvent':_0x425008[_0x2d01d6(0x12b)][_0x2d01d6(0x12b)]};break;}case _0x1aa573[_0x2d01d6(0x168)]['USERS_ENTER']:{_0x30d405={'eventID':_0x1aa573[_0x2d01d6(0x168)][_0x2d01d6(0x251)],'joinEvent':_0x425008[_0x2d01d6(0x12b)][_0x2d01d6(0x12b)]};break;}case _0x1aa573[_0x2d01d6(0x168)]['LIVESHARE_NEW_HOST']:{_0x30d405={'eventID':_0x1aa573['CollaborationEvent'][_0x2d01d6(0x340)],'liveShareNewHost':_0x425008[_0x2d01d6(0x12b)][_0x2d01d6(0x12b)]};break;}case _0x1aa573['CollaborationEvent'][_0x2d01d6(0x487)]:{_0x30d405={'eventID':_0x1aa573[_0x2d01d6(0x168)][_0x2d01d6(0x487)],'liveShareOperation':_0x425008[_0x2d01d6(0x12b)]['data']};break;}case _0x1aa573[_0x2d01d6(0x168)][_0x2d01d6(0x25d)]:{_0x30d405={'eventID':_0x1aa573[_0x2d01d6(0x168)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x425008[_0x2d01d6(0x12b)][_0x2d01d6(0x12b)]};break;}case _0x1aa573[_0x2d01d6(0x168)][_0x2d01d6(0xff)]:{_0x30d405={'eventID':_0x1aa573[_0x2d01d6(0x168)][_0x2d01d6(0xff)],'liveShareRequestHost':_0x425008[_0x2d01d6(0x12b)][_0x2d01d6(0x12b)]};break;}case _0x1aa573[_0x2d01d6(0x168)]['LIVESHARE_FETCH_OPERATIONS']:{_0x30d405={'eventID':_0x1aa573[_0x2d01d6(0x168)][_0x2d01d6(0x408)]};break;}default:_0x30d405={'eventID':_0x425008[_0x2d01d6(0x12b)][_0x2d01d6(0x2f5)]};}return JSON['stringify']({'cmd':_0x425008[_0x2d01d6(0x41a)],'routeKey':_0x425008[_0x2d01d6(0x345)],'collaMsg':_0x30d405});}case _0x453a1c['JOIN']:return JSON[_0x2d01d6(0x18a)]({'cmd':_0x425008[_0x2d01d6(0x41a)],'routeKey':_0x425008[_0x2d01d6(0x345)],'joinReq':_0x425008[_0x2d01d6(0x12b)]});case _0x453a1c['LEAVE']:return JSON[_0x2d01d6(0x18a)]({'cmd':_0x425008[_0x2d01d6(0x41a)],'routeKey':_0x425008[_0x2d01d6(0x345)],'leaveReq':_0x425008[_0x2d01d6(0x12b)]});default:throw new Error(_0x2d01d6(0xfa));}}var _0xbea816=Object[_0x5d4ae1(0x428)],_0x51b346=Object[_0x5d4ae1(0x23a)],_0x512eff=(_0x5486c8,_0xfdf9b1,_0x463014,_0x32c7fd)=>{for(var _0x110336=_0x32c7fd>0x1?void 0x0:_0x32c7fd?_0x51b346(_0xfdf9b1,_0x463014):_0xfdf9b1,_0x49495f=_0x5486c8['length']-0x1,_0x3e4456;_0x49495f>=0x0;_0x49495f--)(_0x3e4456=_0x5486c8[_0x49495f])&&(_0x110336=(_0x32c7fd?_0x3e4456(_0xfdf9b1,_0x463014,_0x110336):_0x3e4456(_0x110336))||_0x110336);return _0x32c7fd&&_0x110336&&_0xbea816(_0xfdf9b1,_0x463014,_0x110336),_0x110336;},_0x2dcbee=(_0x37e9e7,_0x134207)=>(_0x5d7f84,_0x3b03d5)=>_0x134207(_0x5d7f84,_0x3b03d5,_0x37e9e7);const _0x176724=_0x4fa573['createIdentifier'](_0x5d4ae1(0x288));function _0x4ba9e1(_0x48ff0c,_0x2ee216,_0x130f61){const _0x2ff0f2=_0x5d4ae1;return _0x48ff0c+'/'+_0x2ee216+_0x2ff0f2(0x144)+_0x130f61+'/new_changes';}_0x488928[_0x5d4ae1(0x35c)]=class{constructor(_0x3bae09,_0x9702c,_0x4a6f3b,_0xc84f3e,_0x57179e){const _0x381444=_0x5d4ae1;this[_0x381444(0x1f8)]=_0x3bae09,this[_0x381444(0x253)]=_0x9702c,this[_0x381444(0x432)]=_0x4a6f3b,this[_0x381444(0x38d)]=_0xc84f3e,this[_0x381444(0x483)]=_0x57179e;}[_0x5d4ae1(0x3ae)](_0x5671b4){const _0x341ea5=_0x5d4ae1,_0x55c5eb=this['_ws'][_0x341ea5(0x3ae)](_0x5671b4);if(!_0x55c5eb)throw new Error(_0x341ea5(0x258));const _0x1ef96f=new _0x1c7e0a['DisposableCollection'](),_0x54e558=new _0xf632fb[(_0x341ea5(0x1b7))]();_0x1ef96f['add'](_0x1c7e0a[_0x341ea5(0x2e6)](_0x55c5eb[_0x341ea5(0x312)][_0x341ea5(0x41c)](_0x274d1f=>_0x54e558[_0x341ea5(0x2b1)](_0x274d1f)))),_0x1ef96f['add'](_0x1c7e0a[_0x341ea5(0x2e6)](()=>_0x54e558[_0x341ea5(0x35f)]()));const _0xae8578=new _0xf632fb[(_0x341ea5(0x1b7))]();_0x1ef96f[_0x341ea5(0x3b0)](_0x1c7e0a[_0x341ea5(0x2e6)](_0x55c5eb[_0x341ea5(0x1e0)][_0x341ea5(0x41c)](_0x5a45c4=>_0xae8578[_0x341ea5(0x2b1)](_0x5a45c4)))),_0x1ef96f['add'](_0x1c7e0a[_0x341ea5(0x2e6)](()=>_0xae8578[_0x341ea5(0x35f)]()));const _0x5e0b64=new _0xf632fb['Subject']();_0x1ef96f[_0x341ea5(0x3b0)](_0x1c7e0a['toDisposable'](_0x55c5eb['message$'][_0x341ea5(0x41c)](_0x5d7789=>{const _0x2a93dd=_0x341ea5,_0x3858ad=_0x13c8b5(_0x5d7789);_0x5e0b64[_0x2a93dd(0x2b1)](_0x3858ad);}))),_0x1ef96f[_0x341ea5(0x3b0)](_0x1c7e0a[_0x341ea5(0x2e6)](()=>_0x5e0b64[_0x341ea5(0x35f)]()));const _0xe0e9d=()=>{const _0x5b2aa2=_0x341ea5;_0xae8578[_0x5b2aa2(0x2b1)](new Event(_0x5b2aa2(0x15d))),_0x54e558[_0x5b2aa2(0x2b1)](new CloseEvent(_0x5b2aa2(0x15d))),_0x504bd3[_0x5b2aa2(0x192)]();},_0x504bd3={'memberID':'','close$':_0x54e558[_0x341ea5(0x1b6)](),'error$':_0xae8578[_0x341ea5(0x1b6)](),'open$':_0x55c5eb['open$'],'message$':_0x5e0b64[_0x341ea5(0x1b6)](),'send':_0x3d569f=>{const _0x3aa95f=_0x341ea5;if(_0x3d569f[_0x3aa95f(0x41a)]===_0x453a1c['INGEST']){if(_0x3d569f['data'][_0x3aa95f(0x2f5)]===_0x1aa573['CollaborationEvent'][_0x3aa95f(0x42d)]){this[_0x3aa95f(0x26c)](_0x504bd3,_0x3d569f[_0x3aa95f(0x12b)])[_0x3aa95f(0x231)](_0x3811ca=>{const _0x60df5c=_0x3aa95f;this[_0x60df5c(0x38d)]['error'](_0x3811ca),_0xe0e9d();});return;}if(_0x3d569f[_0x3aa95f(0x12b)][_0x3aa95f(0x2f5)]===_0x1aa573[_0x3aa95f(0x168)]['FETCH_MISSING']){const _0x1af2f7=_0x3d569f[_0x3aa95f(0x12b)];this['_fetchMissChangesets'](_0x1af2f7)[_0x3aa95f(0x394)](_0x2992f5=>{const _0x47aae3=_0x3aa95f;_0x5e0b64[_0x47aae3(0x2b1)]({'cmd':_0x453a1c[_0x47aae3(0x48d)],'code':_0x36d3b1['OK'],'routeKey':_0x1af2f7[_0x47aae3(0x12b)][_0x47aae3(0x306)],'routeType':'','data':{'eventID':_0x1aa573[_0x47aae3(0x168)][_0x47aae3(0x362)],'data':{'changesets':_0x2992f5}}});})['catch'](_0x990bb6=>{const _0x109c61=_0x3aa95f;this[_0x109c61(0x38d)][_0x109c61(0x34d)](_0x990bb6),_0xe0e9d();});return;}}_0x55c5eb[_0x3aa95f(0x455)](_0x27edc0(_0x3d569f));},'close':()=>{const _0x5030cc=_0x341ea5;_0x55c5eb[_0x5030cc(0x192)](),_0x1ef96f['dispose']();}};return _0x504bd3;}async['_submitChangeset'](_0x2f8023,_0x3219cd){const _0x9c6e33=_0x5d4ae1;var _0x4e8cd3;const {unitType:_0x1af71f,unitID:_0x491afc,changeset:_0x17fd79}=_0x3219cd['data'],_0x101c88={'unitID':_0x491afc,'memberID':_0x2f8023[_0x9c6e33(0x2ad)],'type':_0x1af71f,'changeset':_0x1aa573[_0x9c6e33(0x329)](_0x17fd79)},_0x1aa1cb=_0x4ba9e1((_0x4e8cd3=this['_configService'][_0x9c6e33(0x30e)](_0x4e8e4a))!=null?_0x4e8cd3:_0x1e2c0d,_0x1af71f,_0x491afc);try{await this[_0x9c6e33(0x1f8)][_0x9c6e33(0x1ca)](_0x1aa1cb,{'body':_0x101c88});}catch(_0x3c1a9b){throw this[_0x9c6e33(0x38d)][_0x9c6e33(0x34d)](_0x9c6e33(0x289),_0x9c6e33(0x320)),_0x3c1a9b;}}async['_fetchMissChangesets'](_0x126a8b){const _0x57a7a7=_0x5d4ae1,{unitID:_0x4feafe,from:_0x150854,to:_0x339db3,unitType:_0x2dee27}=_0x126a8b[_0x57a7a7(0x12b)];return(await this[_0x57a7a7(0x483)][_0x57a7a7(0xe6)]({'metadata':void 0x0},{'unitID':_0x4feafe,'type':_0x2dee27,'from':_0x150854,'to':_0x339db3}))['changesets'];}},_0x488928['CollaborationSocketService']=_0x512eff([_0x2dcbee(0x0,_0x4fa573[_0x5d4ae1(0x274)](_0x2954d5[_0x5d4ae1(0x14e)])),_0x2dcbee(0x1,_0x4fa573[_0x5d4ae1(0x274)](_0x2954d5['WebSocketService'])),_0x2dcbee(0x2,_0x1c7e0a[_0x5d4ae1(0x13b)]),_0x2dcbee(0x3,_0x1c7e0a[_0x5d4ae1(0x3d7)]),_0x2dcbee(0x4,_0x1c7e0a[_0x5d4ae1(0x36d)])],_0x488928[_0x5d4ae1(0x35c)]);class _0x4625c2{constructor(){const _0x9fd686=_0x5d4ae1;_0x2308c9(this,_0x9fd686(0x43b),new _0xf632fb[(_0x9fd686(0x1b7))]()),_0x2308c9(this,_0x9fd686(0xce),this[_0x9fd686(0x43b)][_0x9fd686(0x1b6)]());}[_0x5d4ae1(0xda)](_0x50cae0){const _0x2dfe12=_0x5d4ae1;this[_0x2dfe12(0x43b)]['next'](_0x50cae0);}}var _0x449749=Object[_0x5d4ae1(0x428)],_0x5f2d90=Object['getOwnPropertyDescriptor'],_0x3bfb1c=(_0x267e99,_0x48dd50,_0x4a96ef,_0x2ed426)=>{const _0x3f0bf8=_0x5d4ae1;for(var _0x44a708=_0x2ed426>0x1?void 0x0:_0x2ed426?_0x5f2d90(_0x48dd50,_0x4a96ef):_0x48dd50,_0x3e0d04=_0x267e99[_0x3f0bf8(0x30d)]-0x1,_0x5eced0;_0x3e0d04>=0x0;_0x3e0d04--)(_0x5eced0=_0x267e99[_0x3e0d04])&&(_0x44a708=(_0x2ed426?_0x5eced0(_0x48dd50,_0x4a96ef,_0x44a708):_0x5eced0(_0x44a708))||_0x44a708);return _0x2ed426&&_0x44a708&&_0x449749(_0x48dd50,_0x4a96ef,_0x44a708),_0x44a708;},_0x502958=(_0x49aa44,_0x57ff8c)=>(_0x56c578,_0xcc9b2d)=>_0x57ff8c(_0x56c578,_0xcc9b2d,_0x49aa44),_0x3ea00b=(_0xd0493a=>(_0xd0493a[_0xd0493a[_0x5d4ae1(0xc5)]=0x0]=_0x5d4ae1(0xc5),_0xd0493a[_0xd0493a[_0x5d4ae1(0x42e)]=0x1]=_0x5d4ae1(0x42e),_0xd0493a[_0xd0493a[_0x5d4ae1(0x1e5)]=0x2]='OFFLINE',_0xd0493a[_0xd0493a[_0x5d4ae1(0x358)]=0x3]=_0x5d4ae1(0x358),_0xd0493a))(_0x3ea00b||{});_0x488928['CollaborationSession']=class extends _0x1c7e0a[_0x5d4ae1(0x2bb)]{constructor(_0x204a1c,_0x46975f,_0x82aa7,_0x326762,_0x5bdd12,_0x380069,_0x444367,_0x48a017,_0x556e49){const _0x559d0a=_0x5d4ae1;super(),_0x2308c9(this,_0x559d0a(0x310),new _0xf632fb[(_0x559d0a(0x195))](0x0)),_0x2308c9(this,_0x559d0a(0x407),this[_0x559d0a(0x310)][_0x559d0a(0x1b6)]()),_0x2308c9(this,_0x559d0a(0x2e8),new _0xf632fb[(_0x559d0a(0x1b7))]()),_0x2308c9(this,_0x559d0a(0xf0),this[_0x559d0a(0x2e8)][_0x559d0a(0x1b6)]()),_0x2308c9(this,'_socket'),_0x2308c9(this,_0x559d0a(0x209)),_0x2308c9(this,_0x559d0a(0x3de)),(this['_unitID']=_0x204a1c,this[_0x559d0a(0x38d)]=_0x82aa7,this[_0x559d0a(0x2db)]=_0x326762,this[_0x559d0a(0x1c9)]=_0x5bdd12,this[_0x559d0a(0x432)]=_0x380069,this[_0x559d0a(0x13a)]=_0x444367,this['_memberService']=_0x48a017,this[_0x559d0a(0x133)]=_0x556e49,_0x46975f[_0x559d0a(0x272)](_0x2c2667[_0x559d0a(0x360)](this[_0x559d0a(0x40c)]))['subscribe'](_0x1a0061=>{const _0x14df9a=_0x559d0a;var _0x7023fb;typeof _0x1a0061>'u'||(this[_0x14df9a(0x44a)]=_0x1a0061,_0x1a0061?(this['_joinRoom'](_0x1a0061),this['_socketMessageSubscription']=this[_0x14df9a(0x44a)]['message$']['subscribe'](_0x81c212=>{const _0x114f4d=_0x14df9a;_0x81c212[_0x114f4d(0x345)]===this[_0x114f4d(0x2c0)]&&this[_0x114f4d(0x234)](_0x81c212);})):(this[_0x14df9a(0x310)][_0x14df9a(0x2b1)](0x2),(_0x7023fb=this[_0x14df9a(0x209)])==null||_0x7023fb[_0x14df9a(0x21e)](),this['_socketMessageSubscription']=null));}),this['disposeWithMe'](this[_0x559d0a(0x2db)][_0x559d0a(0x44e)](()=>{const _0x7712=_0x559d0a;var _0x4ba287;(_0x4ba287=this[_0x7712(0x44a)])==null||_0x4ba287[_0x7712(0x455)]({'cmd':_0x453a1c[_0x7712(0x318)],'data':{'roomID':this[_0x7712(0x2c0)]}});})));}get[_0x5d4ae1(0x417)](){const _0x24c328=_0x5d4ae1;return this[_0x24c328(0x310)]['getValue']();}[_0x5d4ae1(0x412)](){const _0x1b3382=_0x5d4ae1;var _0x54fbe1,_0x1c62d0;return(_0x1c62d0=(_0x54fbe1=this[_0x1b3382(0x44a)])==null?void 0x0:_0x54fbe1[_0x1b3382(0x2ad)])!=null?_0x1c62d0:null;}[_0x5d4ae1(0x26d)](){const _0x1a0455=_0x5d4ae1;super[_0x1a0455(0x26d)](),this[_0x1a0455(0x40c)]['next'](),this[_0x1a0455(0x40c)][_0x1a0455(0x35f)]();}['_onCombEvent'](_0x117896){const _0x3589ab=_0x5d4ae1;_0x117896[_0x3589ab(0x41a)]===_0x453a1c[_0x3589ab(0x3f9)]?this[_0x3589ab(0x2d3)](_0x117896):_0x117896[_0x3589ab(0x41a)]===_0x453a1c[_0x3589ab(0x48d)]&&this[_0x3589ab(0x206)](_0x117896);}[_0x5d4ae1(0x285)](_0x58be44){const _0x29c4d1=_0x5d4ae1;this[_0x29c4d1(0x310)][_0x29c4d1(0x2b1)](0x1),_0x58be44[_0x29c4d1(0x455)]({'cmd':_0x453a1c['JOIN'],'routeKey':this[_0x29c4d1(0x2c0)],'routeType':'','data':{'rooms':[{'roomID':this[_0x29c4d1(0x2c0)]}]}});}[_0x5d4ae1(0x2d3)](_0x616f17){const _0x3a3469=_0x5d4ae1;var _0x5c7a92;if(_0x616f17['code']===_0x36d3b1[_0x3a3469(0x273)]){this[_0x3a3469(0x1c9)][_0x3a3469(0x3fc)]({'type':_0x3ce12d['MessageType']['Warning'],'content':this[_0x3a3469(0x13a)]['t'](_0x3a3469(0x189))}),this[_0x3a3469(0x310)]['next'](0x2);return;}this['_sessionStatus$'][_0x3a3469(0x2b1)](0x3);const _0x2cc78f=(_0x5c7a92=_0x616f17[_0x3a3469(0x12b)]['roomInfos'][this[_0x3a3469(0x2c0)]])==null?void 0x0:_0x5c7a92[_0x3a3469(0xdc)];_0x2cc78f&&_0x2cc78f[_0x3a3469(0x32c)](_0x2b06c9=>this[_0x3a3469(0xe7)][_0x3a3469(0x20e)](this['_unitID'],_0x2b06c9));}['_onRecvEvent'](_0x105784){const _0x553a48=_0x5d4ae1;try{const _0x15df01=_0x105784[_0x553a48(0x12b)];switch(_0x15df01[_0x553a48(0x2f5)]){case _0x1aa573['CollaborationEvent'][_0x553a48(0x251)]:this[_0x553a48(0x282)](_0x15df01),this[_0x553a48(0x2e8)][_0x553a48(0x2b1)](_0x15df01);break;case _0x1aa573['CollaborationEvent']['USERS_LEAVE']:this[_0x553a48(0xd9)](_0x15df01),this[_0x553a48(0x2e8)][_0x553a48(0x2b1)](_0x15df01);break;case _0x1aa573[_0x553a48(0x168)]['CHANGESET_ACK']:this[_0x553a48(0x17a)](),this[_0x553a48(0x2e8)][_0x553a48(0x2b1)](_0x15df01);break;case _0x1aa573['CollaborationEvent']['MSG_FOR_ERROR']:this['_logService']['error'](_0x553a48(0x15f)+JSON['stringify'](_0x15df01)),this[_0x553a48(0x2e8)][_0x553a48(0x2b1)](_0x15df01);break;case _0x1aa573['CollaborationEvent'][_0x553a48(0x130)]:this['_commentService'][_0x553a48(0xda)](_0x15df01[_0x553a48(0x12b)]),this['_event$']['next'](_0x15df01);break;default:this['_event$']['next'](_0x15df01);}}catch(_0x565a42){this[_0x553a48(0x38d)]['error'](_0x565a42,_0x105784);}}[_0x5d4ae1(0x282)](_0x5c39df){const _0x476dad=_0x5d4ae1;this[_0x476dad(0xe7)][_0x476dad(0x20e)](this[_0x476dad(0x2c0)],_0x5c39df[_0x476dad(0x12b)]);}['_onUserLeave'](_0x56c3ab){const _0x5764b5=_0x5d4ae1;this['_memberService']['removeMember'](this['_unitID'],_0x56c3ab[_0x5764b5(0x12b)][_0x5764b5(0x2ad)]);}async[_0x5d4ae1(0x455)](_0x5e044b,_0x4742e4){const _0x44dae0=_0x5d4ae1;if(this['sessionStatus']!==0x3||!this['_socket'])throw new Error(_0x44dae0(0x113));try{_0x5e044b['eventID']===_0x1aa573['CollaborationEvent'][_0x44dae0(0x214)]&&this[_0x44dae0(0x38c)](),this[_0x44dae0(0x44a)][_0x44dae0(0x455)]({'cmd':_0x453a1c[_0x44dae0(0x38b)],'routeKey':_0x4742e4,'routeType':'','data':_0x5e044b});}catch(_0x508da5){this[_0x44dae0(0x38d)][_0x44dae0(0x34d)](_0x508da5);}}[_0x5d4ae1(0x38c)](){const _0x4bbf31=_0x5d4ae1;var _0xc5854;this[_0x4bbf31(0x3de)]=window[_0x4bbf31(0xc9)](()=>{const _0x256bd0=_0x4bbf31;this['_collaborationTimeoutTimer']=null,this[_0x256bd0(0x1c9)][_0x256bd0(0x3fc)]({'type':_0x3ce12d['MessageType'][_0x256bd0(0x212)],'content':this[_0x256bd0(0x13a)]['t'](_0x256bd0(0x23d))});},(_0xc5854=this[_0x4bbf31(0x432)]['getConfig'](_0x4ec6b1))!=null?_0xc5854:0x2710);}[_0x5d4ae1(0x17a)](){const _0x331069=_0x5d4ae1;this[_0x331069(0x3de)]&&(clearTimeout(this[_0x331069(0x3de)]),this[_0x331069(0x3de)]=null);}},_0x488928[_0x5d4ae1(0x433)]=_0x3bfb1c([_0x502958(0x2,_0x1c7e0a[_0x5d4ae1(0x3d7)]),_0x502958(0x3,_0x1fdc42['IBeforeCloseService']),_0x502958(0x4,_0x1fdc42[_0x5d4ae1(0x350)]),_0x502958(0x5,_0x1c7e0a[_0x5d4ae1(0x13b)]),_0x502958(0x6,_0x4fa573[_0x5d4ae1(0x274)](_0x1c7e0a['LocaleService'])),_0x502958(0x7,_0x4fa573[_0x5d4ae1(0x274)](_0x1fece3)),_0x502958(0x8,_0x4fa573['Inject'](_0x4625c2))],_0x488928[_0x5d4ae1(0x433)]),_0x488928[_0x5d4ae1(0x139)]=class extends _0x1c7e0a[_0x5d4ae1(0x284)]{constructor(_0x41a8f2,_0x5315b6,_0x21021a,_0x1dbee6,_0x70fc73,_0x596dcc){const _0x53e9d5=_0x5d4ae1;super(),_0x2308c9(this,_0x53e9d5(0xde),new _0xf632fb[(_0x53e9d5(0x195))](void 0x0)),_0x2308c9(this,'_sessions',new Map()),_0x2308c9(this,_0x53e9d5(0x2a2),new _0xf632fb[(_0x53e9d5(0x195))](0x0)),_0x2308c9(this,'status$',this[_0x53e9d5(0x2a2)]['asObservable']()),_0x2308c9(this,'_socketReady',!0x1),_0x2308c9(this,_0x53e9d5(0x29c)),_0x2308c9(this,_0x53e9d5(0x1b1)),_0x2308c9(this,'_retryConnectingTimer'),_0x2308c9(this,_0x53e9d5(0x32f),0x0),(this[_0x53e9d5(0x12f)]=_0x41a8f2,this[_0x53e9d5(0x13a)]=_0x5315b6,this[_0x53e9d5(0x1c9)]=_0x21021a,this['_logService']=_0x1dbee6,this['_configService']=_0x70fc73,this['_socketService']=_0x596dcc);}get['_socket'](){const _0x8f1c75=_0x5d4ae1;return this[_0x8f1c75(0xde)][_0x8f1c75(0x3c9)]();}[_0x5d4ae1(0x26d)](){const _0x51e385=_0x5d4ae1;super[_0x51e385(0x26d)](),this[_0x51e385(0x23e)]['forEach'](_0x4a2e7a=>_0x4a2e7a['dispose']()),this[_0x51e385(0x23e)][_0x51e385(0x2c6)](),this['_status$'][_0x51e385(0x35f)]();}async[_0x5d4ae1(0x444)](_0x3fbaef){const _0x58a126=_0x5d4ae1;if(this[_0x58a126(0x23e)]['has'](_0x3fbaef))return this[_0x58a126(0x23e)][_0x58a126(0xec)](_0x3fbaef);this['_tryEnsureSocket']();const _0x5b09a6=this[_0x58a126(0x12f)]['createInstance'](_0x488928[_0x58a126(0x433)],_0x3fbaef,this[_0x58a126(0xde)][_0x58a126(0x1b6)]());return this['_sessions'][_0x58a126(0x36b)](_0x3fbaef,_0x5b09a6),_0x5b09a6;}[_0x5d4ae1(0x1b0)](){const _0x196b82=_0x5d4ae1;var _0x2c3a00;const _0x298e71=(_0x2c3a00=this[_0x196b82(0x432)][_0x196b82(0x30e)](_0x3eb7d7))!=null?_0x2c3a00:_0x46e52f;return this['_socketService'][_0x196b82(0x3ae)](_0x298e71);}[_0x5d4ae1(0x247)](){const _0x2d1c35=_0x5d4ae1;try{const _0x165d97=this[_0x2d1c35(0x1b0)]();if(_0x165d97){const _0x19afef=_0x165d97[_0x2d1c35(0x455)];_0x165d97[_0x2d1c35(0x455)]=_0x138e38=>(this['_rescheduleHeartbeatEvent'](),_0x19afef['apply'](_0x165d97,[_0x138e38])),_0x165d97[_0x2d1c35(0x2f6)]['subscribe'](_0x599238=>this[_0x2d1c35(0x47f)](_0x165d97,_0x599238)),_0x165d97['error$'][_0x2d1c35(0x272)](_0x2c2667[_0x2d1c35(0x365)](0x1))[_0x2d1c35(0x41c)](_0x4d9692=>this[_0x2d1c35(0x38d)]['error']('[CollaborationSessionService]:\x20socket\x20error',_0x4d9692)),_0x165d97[_0x2d1c35(0x405)][_0x2d1c35(0x272)](_0x2c2667[_0x2d1c35(0x365)](0x1))[_0x2d1c35(0x41c)](()=>{const _0x44d73f=_0x2d1c35;this[_0x44d73f(0x440)](_0x165d97);}),_0x165d97[_0x2d1c35(0x312)]['pipe'](_0x2c2667[_0x2d1c35(0x365)](0x1))[_0x2d1c35(0x41c)](_0x16a6a6=>{const _0x48d9d3=_0x2d1c35;this[_0x48d9d3(0x38d)][_0x48d9d3(0x248)](_0x48d9d3(0x420),'socket\x20close',_0x16a6a6),this[_0x48d9d3(0x190)]();});}}catch(_0xe314f7){this[_0x2d1c35(0x38d)]['error'](_0xe314f7),this[_0x2d1c35(0x190)]();}}[_0x5d4ae1(0x440)](_0x4af3e0){const _0x3db724=_0x5d4ae1;this['_logService'][_0x3db724(0x248)](_0x3db724(0x420),'socket\x20open.'),_0x4af3e0[_0x3db724(0x455)]({'cmd':_0x453a1c[_0x3db724(0x23c)]}),this['_rescheduleHeartbeatEvent']();}[_0x5d4ae1(0x190)](){const _0x200247=_0x5d4ae1;var _0x48342e;this['_status$'][_0x200247(0x2b1)](0x2),this['_socket$'][_0x200247(0x2b1)](null),this[_0x200247(0x218)](),this['_clearHeartbeatTimer'](),this[_0x200247(0xe1)]=!0x1,this[_0x200247(0x32f)]<((_0x48342e=this[_0x200247(0x432)][_0x200247(0x30e)](_0x4f576e))!=null?_0x48342e:0x3)?(this['_scheduleReconnection'](this[_0x200247(0x32f)]),this[_0x200247(0x32f)]+=0x1):this[_0x200247(0x1c9)][_0x200247(0x3fc)]({'type':_0x3ce12d[_0x200247(0xd7)]['Error'],'content':this['_localeService']['t'](_0x200247(0x39a))});}[_0x5d4ae1(0x3b4)](_0x321340){const _0x28e6c2=_0x5d4ae1;var _0x58b105;const _0x6ced4d=((_0x58b105=this[_0x28e6c2(0x432)][_0x28e6c2(0x30e)](_0x16c186))!=null?_0x58b105:0x4e20)*0x2**_0x321340;this[_0x28e6c2(0x1c9)][_0x28e6c2(0x3fc)]({'type':_0x3ce12d[_0x28e6c2(0xd7)]['Warning'],'content':this['_localeService']['t'](_0x28e6c2(0x11c))}),this[_0x28e6c2(0x2df)]=setTimeout(()=>{const _0x4c8dbb=_0x28e6c2;this[_0x4c8dbb(0x247)](),clearTimeout(this[_0x4c8dbb(0x2df)]),this[_0x4c8dbb(0x2df)]=null;},_0x6ced4d);}[_0x5d4ae1(0x2e1)](){const _0x3c2a6c=_0x5d4ae1;var _0x5e620e;this[_0x3c2a6c(0x372)](),this[_0x3c2a6c(0x29c)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x5e620e=this[_0x3c2a6c(0x432)]['getConfig'](_0x1f2c6f))!=null?_0x5e620e:0x7530);}[_0x5d4ae1(0x122)](){const _0x4cce78=_0x5d4ae1;this[_0x4cce78(0x44a)]['send']({'cmd':_0x453a1c[_0x4cce78(0x33f)]}),this['_waitForHeartbeatResponse']();}[_0x5d4ae1(0x2ec)](){const _0x4868ba=_0x5d4ae1;var _0x3aff42;this[_0x4868ba(0x1b1)]=setTimeout(()=>this[_0x4868ba(0x190)](),(_0x3aff42=this[_0x4868ba(0x432)]['getConfig'](_0x4ec6b1))!=null?_0x3aff42:0x2710);}['_onMessage'](_0x32deca,_0x33c260){const _0x46628a=_0x5d4ae1,{cmd:_0x36062b}=_0x33c260;_0x36062b===_0x453a1c[_0x46628a(0x23c)]&&!this[_0x46628a(0xe1)]&&(_0x32deca[_0x46628a(0x2ad)]=_0x33c260[_0x46628a(0x12b)][_0x46628a(0x2ad)],this['_socket$'][_0x46628a(0x2b1)](_0x32deca),this[_0x46628a(0x2a2)]['next'](0x3),this[_0x46628a(0xe1)]=!0x0),_0x36062b===_0x453a1c['HEARTBEAT']&&this[_0x46628a(0x218)](),this[_0x46628a(0x2e1)]();}[_0x5d4ae1(0x372)](){const _0x3bfcff=_0x5d4ae1;this[_0x3bfcff(0x29c)]!=null&&(clearTimeout(this[_0x3bfcff(0x29c)]),this[_0x3bfcff(0x29c)]=null);}[_0x5d4ae1(0x218)](){const _0x5887be=_0x5d4ae1;this[_0x5887be(0x1b1)]!=null&&(clearTimeout(this[_0x5887be(0x1b1)]),this[_0x5887be(0x1b1)]=null);}},_0x488928[_0x5d4ae1(0x139)]=_0x3bfb1c([_0x502958(0x0,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573[_0x5d4ae1(0x38e)])),_0x502958(0x1,_0x4fa573['Inject'](_0x1c7e0a[_0x5d4ae1(0x476)])),_0x502958(0x2,_0x1fdc42[_0x5d4ae1(0x350)]),_0x502958(0x3,_0x1c7e0a[_0x5d4ae1(0x3d7)]),_0x502958(0x4,_0x1c7e0a[_0x5d4ae1(0x13b)]),_0x502958(0x5,_0x176724)],_0x488928[_0x5d4ae1(0x139)]);var _0x59579e=Object[_0x5d4ae1(0x428)],_0x153558=Object['getOwnPropertyDescriptor'],_0x25b1c2=(_0x3190d1,_0x18ecb1,_0x19b716,_0xb938d6)=>{const _0x4f2035=_0x5d4ae1;for(var _0x2d8210=_0xb938d6>0x1?void 0x0:_0xb938d6?_0x153558(_0x18ecb1,_0x19b716):_0x18ecb1,_0x45f568=_0x3190d1[_0x4f2035(0x30d)]-0x1,_0x485324;_0x45f568>=0x0;_0x45f568--)(_0x485324=_0x3190d1[_0x45f568])&&(_0x2d8210=(_0xb938d6?_0x485324(_0x18ecb1,_0x19b716,_0x2d8210):_0x485324(_0x2d8210))||_0x2d8210);return _0xb938d6&&_0x2d8210&&_0x59579e(_0x18ecb1,_0x19b716,_0x2d8210),_0x2d8210;},_0x1e0d3b=(_0x5718b8,_0x1362a7)=>(_0x40a373,_0x5eed43)=>_0x1362a7(_0x40a373,_0x5eed43,_0x5718b8);_0x488928['LocalCacheService']=class extends _0x1c7e0a['Disposable']{constructor(_0x266102,_0x1f7465,_0x1b1edb,_0x41b3ed,_0x5b1ac2){const _0x3ac84e=_0x5d4ae1;super(),_0x2308c9(this,'_cachedData',new Map()),_0x2308c9(this,_0x3ac84e(0x48b),new Map()),_0x2308c9(this,_0x3ac84e(0x100),!0x1),(this['_configService']=_0x266102,this[_0x3ac84e(0x43a)]=_0x1f7465,this[_0x3ac84e(0x2db)]=_0x1b1edb,this[_0x3ac84e(0x13a)]=_0x41b3ed,this[_0x3ac84e(0x227)]=_0x5b1ac2,this['_setupBeforeClosingHandler']());}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x5d4ae1(0x39e)](){const _0x30e6ae=_0x5d4ae1;this[_0x30e6ae(0x100)]=!0x1;}[_0x5d4ae1(0x26d)](){const _0xc6a92f=_0x5d4ae1;this[_0xc6a92f(0x2a3)]()[_0xc6a92f(0x394)](()=>super[_0xc6a92f(0x26d)]());}async['loadOfflineData'](_0x517632){const _0x4bcfeb=_0x5d4ae1;return this[_0x4bcfeb(0x100)]?null:this[_0x4bcfeb(0x43a)][_0x4bcfeb(0x39f)](_0x5edd78(_0x517632));}async[_0x5d4ae1(0x304)](_0x10fbe0,_0x510a27){const _0x47de5a=_0x5d4ae1;return!!this[_0x47de5a(0x43a)]['setItem'](_0x10fbe0,_0x510a27);}['updateOfflineData'](_0x1f10e1,_0x4e5f1a,_0xbb1977,_0x2a3a76){const _0x442a36=_0x5d4ae1,_0x5a85e5=this['_revisionService'][_0x442a36(0x18e)](_0x1f10e1);this[_0x442a36(0x1f5)][_0x442a36(0x36b)](_0x1f10e1,{'unitID':_0x1f10e1,'type':_0x4e5f1a,'awaitingChangeset':_0xbb1977,'mutations':_0x2a3a76,'rev':_0x5a85e5}),this[_0x442a36(0x48b)][_0x442a36(0x3d3)](_0x1f10e1)||this[_0x442a36(0xbb)](_0x1f10e1);}[_0x5d4ae1(0xbb)](_0x5611c3){const _0x35d02a=_0x5d4ae1,_0x61f22a=this['_getSaveTimeout']();_0x61f22a===0x0?this['_saveCache'](_0x5611c3):this[_0x35d02a(0x48b)]['set'](_0x5611c3,setTimeout(()=>this[_0x35d02a(0x1bb)](_0x5611c3),_0x61f22a));}[_0x5d4ae1(0x34f)](){const _0x45c37e=_0x5d4ae1;var _0x279d4a;return(_0x279d4a=this[_0x45c37e(0x432)][_0x45c37e(0x30e)](_0x2d5df7))!=null?_0x279d4a:0x3e8;}[_0x5d4ae1(0x1bb)](_0x4d53d4){const _0x5a0c6d=_0x5d4ae1,_0x2c667d=this['_saveTaskMap'][_0x5a0c6d(0xec)](_0x4d53d4);return _0x2c667d!==void 0x0&&window[_0x5a0c6d(0x3b2)](_0x2c667d),this[_0x5a0c6d(0x43a)][_0x5a0c6d(0x250)](_0x5edd78(_0x4d53d4),this[_0x5a0c6d(0x1f5)][_0x5a0c6d(0xec)](_0x4d53d4))[_0x5a0c6d(0x394)](()=>this[_0x5a0c6d(0x48b)][_0x5a0c6d(0x1f0)](_0x4d53d4));}async['_exhaustSavingTask'](){const _0x27e366=_0x5d4ae1,_0x2bac2a=[];this['_saveTaskMap'][_0x27e366(0x32c)]((_0x4d271e,_0x75db0a)=>{const _0x289fdb=_0x27e366;window[_0x289fdb(0x3b2)](_0x4d271e),_0x2bac2a[_0x289fdb(0x21f)](this[_0x289fdb(0x1bb)](_0x75db0a)[_0x289fdb(0x394)](()=>{const _0xce59b8=_0x289fdb;this[_0xce59b8(0x48b)][_0xce59b8(0x1f0)](_0x75db0a);}));}),await Promise['all'](_0x2bac2a);}['_setupBeforeClosingHandler'](){const _0x4e2c68=_0x5d4ae1;this['disposeWithMe'](this['_beforeCloseService'][_0x4e2c68(0x1d5)](()=>{const _0x317f45=_0x4e2c68;if(this[_0x317f45(0x48b)][_0x317f45(0x2b7)])return this[_0x317f45(0x13a)]['t'](_0x317f45(0x2a9));}));}},_0x488928[_0x5d4ae1(0x296)]=_0x25b1c2([_0x1e0d3b(0x0,_0x1c7e0a[_0x5d4ae1(0x13b)]),_0x1e0d3b(0x1,_0x1c7e0a['ILocalStorageService']),_0x1e0d3b(0x2,_0x1fdc42['IBeforeCloseService']),_0x1e0d3b(0x3,_0x4fa573[_0x5d4ae1(0x274)](_0x1c7e0a['LocaleService'])),_0x1e0d3b(0x4,_0x4fa573[_0x5d4ae1(0x274)](_0x1aa573[_0x5d4ae1(0x183)]))],_0x488928[_0x5d4ae1(0x296)]);function _0x5edd78(_0x51434b){return'unit-cache-'+_0x51434b;}const _0x3a78a1=_0x4fa573['createIdentifier'](_0x5d4ae1(0x268));var _0x5d2b88=(_0x43fb99=>(_0x43fb99[_0x43fb99[_0x5d4ae1(0x226)]=0x0]=_0x5d4ae1(0x226),_0x43fb99[_0x43fb99[_0x5d4ae1(0x191)]=0x1]=_0x5d4ae1(0x191),_0x43fb99))(_0x5d2b88||{});const _0x1a92fc=0x7530,_0x4b9572=_0x5d4ae1(0x32b);class _0x1893ed extends _0x1c7e0a[_0x5d4ae1(0x284)]{constructor(){const _0x21e145=_0x5d4ae1;super(),_0x2308c9(this,_0x21e145(0x46e),_0x1c7e0a[_0x21e145(0x2de)][_0x21e145(0x331)]()),_0x2308c9(this,_0x21e145(0x1a8),new Set()),_0x2308c9(this,'_unitOnClients',new Map()),_0x2308c9(this,_0x21e145(0x3e7),null),_0x2308c9(this,'_clearOtherTimers',new Map()),_0x2308c9(this,_0x21e145(0x1ef),new Map()),this['_init']();}[_0x5d4ae1(0x26d)](){const _0x1485cc=_0x5d4ae1;super[_0x1485cc(0x26d)](),this[_0x1485cc(0x330)][_0x1485cc(0x32c)]((_0x19fcf4,_0x28f74b)=>this[_0x1485cc(0x123)](_0x28f74b)),this['_heartbeatTimer']&&window[_0x1485cc(0x24c)](this[_0x1485cc(0x3e7)]);}[_0x5d4ae1(0x308)](_0x5cb224){const _0x441f94=_0x5d4ae1;return this[_0x441f94(0x20a)](_0x5cb224)[_0x441f94(0x272)](_0xf632fb['distinctUntilChanged']());}[_0x5d4ae1(0xb4)](_0x43c734){const _0x3e05ca=_0x5d4ae1;this[_0x3e05ca(0x1a8)]['size']===0x0&&this[_0x3e05ca(0x128)](),this['_selfUnitIDs'][_0x3e05ca(0x3b0)](_0x43c734),this[_0x3e05ca(0x2f7)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x43c734],'isForwarded':!0x1});}[_0x5d4ae1(0x2ba)](_0x46a30a){const _0x53df84=_0x5d4ae1;this['_selfUnitIDs']['delete'](_0x46a30a),this[_0x53df84(0x1a8)][_0x53df84(0x2b7)]===0x0&&this['_heartbeatTimer']&&window[_0x53df84(0x24c)](this[_0x53df84(0x3e7)]);}[_0x5d4ae1(0x3c0)](){const _0x38136b=_0x5d4ae1;this[_0x38136b(0xf2)](_0x1c7e0a['toDisposable'](_0xf632fb[_0x38136b(0x41b)](window,'storage')[_0x38136b(0x41c)](_0x4d8c2f=>{const _0x210fd0=_0x38136b;if(_0x4d8c2f[_0x210fd0(0x2d9)]!==_0x4b9572||!_0x4d8c2f[_0x210fd0(0x165)])return;const _0x5da08d=JSON[_0x210fd0(0x134)](_0x4d8c2f[_0x210fd0(0x165)]);this[_0x210fd0(0x458)](_0x5da08d);}))),window[_0x38136b(0x366)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x38136b(0x46e)],'unitIDs':Array[_0x38136b(0x35b)](this[_0x38136b(0x1a8)])}));}[_0x5d4ae1(0x458)](_0x40480e){const _0x5cb9b1=_0x5d4ae1;switch(_0x40480e['type']){case 0x0:this['_handleJoinEvent'](_0x40480e);break;case 0x1:this[_0x5cb9b1(0x276)](_0x40480e);break;case 0x2:this['_handleHeartbeatEvent'](_0x40480e);break;}}['_handleJoinEvent'](_0x338fc2){const _0x5804b6=_0x5d4ae1,{unitIDs:_0x169d09,memberID:_0x251399,isForwarded:_0x17d027}=_0x338fc2;_0x169d09[_0x5804b6(0x32c)](_0x22672b=>{const _0xaa4f0f=_0x5804b6;if(!_0x17d027&&this['_unitOnClients'][_0xaa4f0f(0x3d3)](_0x22672b)&&this['_ensureSubject'](_0x22672b)[_0xaa4f0f(0x2b1)](0x1),!this[_0xaa4f0f(0x229)][_0xaa4f0f(0x3d3)](_0x22672b)||!this['_unitOnClients'][_0xaa4f0f(0xec)](_0x22672b)[_0xaa4f0f(0x3d3)](_0x251399)){const _0x43d1a9=this['_unitOnClients'][_0xaa4f0f(0xec)](_0x22672b)||new Set();_0x43d1a9[_0xaa4f0f(0x3b0)](_0x251399),this[_0xaa4f0f(0x229)][_0xaa4f0f(0x36b)](_0x22672b,_0x43d1a9),this['_scheduleClearOtherTimer'](_0x251399);}}),_0x17d027||this[_0x5804b6(0x2f7)]({'type':0x0,'memberID':this[_0x5804b6(0x46e)],'unitIDs':[...this[_0x5804b6(0x1a8)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4a77d1){const _0xa8df54=_0x5d4ae1;this[_0xa8df54(0x123)](_0x4a77d1);const _0x2a1345=window['setTimeout'](()=>{const _0x21965b=_0xa8df54;this[_0x21965b(0x229)]['forEach'](_0x4beeb0=>{const _0x2cd4dd=_0x21965b;_0x4beeb0[_0x2cd4dd(0x1f0)](_0x4a77d1);});},_0x1a92fc*0x2);this['_clearOtherTimers']['set'](_0x4a77d1,_0x2a1345);}[_0x5d4ae1(0x123)](_0x593c7b){const _0x481b5e=_0x5d4ae1;if(this[_0x481b5e(0x330)][_0x481b5e(0x3d3)](_0x593c7b)){const _0x29da05=this[_0x481b5e(0x330)]['get'](_0x593c7b);_0x29da05&&window[_0x481b5e(0x3b2)](_0x29da05),this['_clearOtherTimers'][_0x481b5e(0x36b)](_0x593c7b,null);}}['_handleLeaveEvent'](_0x59d121){const {memberID:_0x1977e3,unitIDs:_0x3eb5eb}=_0x59d121;_0x3eb5eb['forEach'](_0x18e34b=>{const _0x5dc333=_0x18a3;var _0x15b3a3;const _0x4fb769=this['_unitOnClients'][_0x5dc333(0xec)](_0x18e34b);_0x4fb769&&(_0x4fb769[_0x5dc333(0x1f0)](_0x1977e3),(_0x15b3a3=this[_0x5dc333(0x20a)](_0x18e34b))==null||_0x15b3a3['next'](_0x4fb769[_0x5dc333(0x2b7)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x1977e3);}['_handleHeartbeatEvent'](_0x2a59a6){const _0x12c1d1=_0x5d4ae1;this['_scheduleClearOtherTimer'](_0x2a59a6[_0x12c1d1(0x2ad)]);}[_0x5d4ae1(0x2f7)](_0x1c58d7){const _0x371bea=_0x5d4ae1;localStorage[_0x371bea(0x250)](_0x4b9572,JSON[_0x371bea(0x18a)](_0x1c58d7));}['_scheduleHeartbeat'](){const _0x46c6cb=_0x5d4ae1;this['_heartbeatTimer']=window[_0x46c6cb(0x2a4)](()=>{const _0xa4534a=_0x46c6cb;this[_0xa4534a(0x2f7)]({'type':0x2,'memberID':this['_id']});},_0x1a92fc);}[_0x5d4ae1(0x20a)](_0xc9199e){const _0x15418c=_0x5d4ae1;return this[_0x15418c(0x1ef)][_0x15418c(0x3d3)](_0xc9199e)||this['_unitStatus'][_0x15418c(0x36b)](_0xc9199e,new _0xf632fb[(_0x15418c(0x195))](0x0)),this[_0x15418c(0x1ef)]['get'](_0xc9199e);}}var _0xff9ad4=Object[_0x5d4ae1(0x428)],_0x1196aa=Object[_0x5d4ae1(0x23a)],_0x5cd77b=(_0x381a74,_0x5cb42b,_0x4a6621,_0x2c0fe1)=>{const _0x398e94=_0x5d4ae1;for(var _0x314a16=_0x2c0fe1>0x1?void 0x0:_0x2c0fe1?_0x1196aa(_0x5cb42b,_0x4a6621):_0x5cb42b,_0x46334b=_0x381a74[_0x398e94(0x30d)]-0x1,_0x431c00;_0x46334b>=0x0;_0x46334b--)(_0x431c00=_0x381a74[_0x46334b])&&(_0x314a16=(_0x2c0fe1?_0x431c00(_0x5cb42b,_0x4a6621,_0x314a16):_0x431c00(_0x314a16))||_0x314a16);return _0x2c0fe1&&_0x314a16&&_0xff9ad4(_0x5cb42b,_0x4a6621,_0x314a16),_0x314a16;},_0x234d28=(_0x319c64,_0xf1e199)=>(_0x17c680,_0x4ba0a6)=>_0xf1e199(_0x17c680,_0x4ba0a6,_0x319c64);let _0x3ca91f=class{constructor(_0x1ae8b0,_0x19fde0){const _0x8e7495=_0x5d4ae1;this[_0x8e7495(0x12f)]=_0x1ae8b0,this[_0x8e7495(0x143)]=_0x19fde0;}['transformIMECache'](_0x2c0fc1){const _0x52615f=_0x5d4ae1;this[_0x52615f(0x1ed)](_0x2c0fc1),this[_0x52615f(0x167)](_0x2c0fc1);}[_0x5d4ae1(0x301)](_0x586203){const _0x2dd8df=_0x5d4ae1,_0x3f351b=this[_0x2dd8df(0x12f)][_0x2dd8df(0xec)](_0x1e7311['IMEInputManagerService']),{redoCache:_0x50a562}=_0x3f351b[_0x2dd8df(0x396)]();if(_0x50a562['length']===0x0)return _0x586203;let _0xeb6aae=_0x1c7e0a['Tools'][_0x2dd8df(0x311)](_0x586203['mutations'][0x0]);for(let _0x4a6605=0x0;_0x4a6605<_0x50a562[_0x2dd8df(0x30d)];_0x4a6605++){const _0x3c4a3e={'id':'doc.mutation.rich-text-editing','params':{..._0x50a562[_0x4a6605]}},_0x48a8f6=this['_transformService']['transformMutation'](_0xeb6aae,_0x3c4a3e,!0x1);if(_0x1aa573[_0x2dd8df(0x1ff)](_0x48a8f6))throw _0x48a8f6[_0x2dd8df(0x34d)];_0xeb6aae=_0x48a8f6['m1Prime'];}return{..._0x1c7e0a[_0x2dd8df(0x2de)][_0x2dd8df(0x311)](_0x586203),'mutations':[_0xeb6aae]};}['_transformUndoRedoStack'](_0x2d2097){const _0x15543d=_0x5d4ae1,_0x268ee0=this['_injector'][_0x15543d(0xec)](_0x1e7311[_0x15543d(0x260)]),{undoCache:_0x2c683c,redoCache:_0x58b54d}=_0x268ee0[_0x15543d(0x396)]();if(_0x2c683c['length']===0x0||_0x58b54d[_0x15543d(0x30d)]===0x0)return;const _0x1492ef=[],_0x28e46e=[];let _0x9cee47=_0x1c7e0a['Tools'][_0x15543d(0x311)](_0x2d2097[_0x15543d(0x27d)][0x0]),_0x26344c=_0x1c7e0a['Tools']['deepClone'](_0x2d2097[_0x15543d(0x27d)][0x0]);for(let _0x4547bc=_0x2c683c[_0x15543d(0x30d)]-0x1;_0x4547bc>=0x0;_0x4547bc--){const _0x15c7f5={'id':_0x15543d(0xcc),'params':{..._0x2c683c[_0x4547bc]}},_0x2d8de5={'id':'doc.mutation.rich-text-editing','params':{..._0x58b54d[_0x4547bc]}},_0x4e3e79=this[_0x15543d(0x143)][_0x15543d(0x451)](_0x9cee47,_0x15c7f5,!0x1),_0x527cfd=this[_0x15543d(0x143)][_0x15543d(0x451)](_0x26344c,_0x2d8de5,!0x1);if(_0x1aa573[_0x15543d(0x1ff)](_0x4e3e79))throw _0x4e3e79[_0x15543d(0x34d)];if(_0x1aa573[_0x15543d(0x1ff)](_0x527cfd))throw _0x527cfd[_0x15543d(0x34d)];_0x1492ef[_0x15543d(0x2e5)](_0x4e3e79['m2Prime']['params']),_0x28e46e[_0x15543d(0x2e5)](_0x527cfd[_0x15543d(0x374)]['params']),_0x9cee47=_0x4e3e79[_0x15543d(0x2a5)],_0x26344c=_0x527cfd[_0x15543d(0x2a5)];}_0x268ee0[_0x15543d(0x129)]({'undoCache':_0x1492ef,'redoCache':_0x28e46e});}[_0x5d4ae1(0x167)](_0x5528c7){const _0x2a088d=_0x5d4ae1,_0x324992=this[_0x2a088d(0x12f)][_0x2a088d(0xec)](_0x1e7311[_0x2a088d(0x260)]),_0x52ff57=_0x324992[_0x2a088d(0x150)]();if(_0x52ff57==null)return;const _0xdbf2e4=[{'id':_0x2a088d(0xcc),'params':{'unitId':_0x5528c7[_0x2a088d(0x306)],'actions':null,'textRanges':[_0x52ff57]}}],_0x5819f0=this[_0x2a088d(0x143)][_0x2a088d(0x204)](_0x5528c7,_0xdbf2e4);if(!_0x1aa573[_0x2a088d(0x37e)](_0x5819f0))throw _0x5819f0[_0x2a088d(0x34d)];const _0x4e70c5=_0x5819f0[_0x2a088d(0x374)][0x0][_0x2a088d(0x121)][_0x2a088d(0x3a9)];Array[_0x2a088d(0x31d)](_0x4e70c5)&&_0x4e70c5[_0x2a088d(0x30d)]&&_0x324992['setActiveRange'](_0x4e70c5[0x0]);}};_0x3ca91f=_0x5cd77b([_0x234d28(0x0,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573['Injector'])),_0x234d28(0x1,_0x1aa573[_0x5d4ae1(0x38a)])],_0x3ca91f);var _0xe2264e=Object[_0x5d4ae1(0x428)],_0xf9e274=Object[_0x5d4ae1(0x23a)],_0x2d9cfb=(_0x59ca08,_0x214a10,_0x2d4c34,_0x4906a3)=>{const _0x435f03=_0x5d4ae1;for(var _0x557bc=_0x4906a3>0x1?void 0x0:_0x4906a3?_0xf9e274(_0x214a10,_0x2d4c34):_0x214a10,_0x838311=_0x59ca08[_0x435f03(0x30d)]-0x1,_0x214cb6;_0x838311>=0x0;_0x838311--)(_0x214cb6=_0x59ca08[_0x838311])&&(_0x557bc=(_0x4906a3?_0x214cb6(_0x214a10,_0x2d4c34,_0x557bc):_0x214cb6(_0x557bc))||_0x557bc);return _0x4906a3&&_0x557bc&&_0xe2264e(_0x214a10,_0x2d4c34,_0x557bc),_0x557bc;},_0x33b7ec=(_0x374551,_0x4254a6)=>(_0x42cb91,_0x13a2f6)=>_0x4254a6(_0x42cb91,_0x13a2f6,_0x374551);let _0x3fe7af=class{constructor(_0x2f9e37,_0x5abbbf){const _0xf30203=_0x5d4ae1;this[_0xf30203(0x12f)]=_0x2f9e37,this[_0xf30203(0x143)]=_0x5abbbf;}[_0x5d4ae1(0x2bc)](_0x58497b){const _0x369bc7=_0x5d4ae1;var _0x3af865;const _0x525d8f=this[_0x369bc7(0x12f)][_0x369bc7(0xec)](_0x1e7311['TextSelectionManagerService']),_0x33bf1a=(_0x3af865=_0x525d8f[_0x369bc7(0x3ec)]())!=null?_0x3af865:[],_0x27170b=_0x33bf1a==null?void 0x0:_0x33bf1a[_0x369bc7(0x324)](_0x1e7311[_0x369bc7(0x107)]);if(_0x27170b[_0x369bc7(0x30d)]===0x0)return;const _0xf99895=[{'id':_0x369bc7(0xcc),'params':{'unitId':_0x58497b[_0x369bc7(0x306)],'actions':null,'textRanges':_0x27170b}}],_0x102549=this[_0x369bc7(0x143)][_0x369bc7(0x204)](_0x58497b,_0xf99895);if(!_0x1aa573[_0x369bc7(0x37e)](_0x102549))throw _0x102549[_0x369bc7(0x34d)];const _0x3e3ae1=_0x102549[_0x369bc7(0x374)][0x0]['params']['textRanges'];Array[_0x369bc7(0x31d)](_0x3e3ae1)&&_0x3e3ae1[_0x369bc7(0x30d)]&&_0x525d8f[_0x369bc7(0x27a)](_0x3e3ae1,!0x1);}};_0x3fe7af=_0x2d9cfb([_0x33b7ec(0x0,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573['Injector'])),_0x33b7ec(0x1,_0x1aa573[_0x5d4ae1(0x38a)])],_0x3fe7af);function _0x566a5f(_0xba0f7c){let _0x4dc355='';for(const _0x1e51a4 of _0xba0f7c){const {startOffset:_0x45e965,endOffset:_0x4ed7b7,isActive:_0x2176e3}=_0x1e51a4;_0x4dc355['length']&&(_0x4dc355+=','),_0x4dc355+=_0x45e965+':'+_0x4ed7b7+':'+(_0x2176e3?'1':'0');}return _0x4dc355;}function _0x4de411(_0x1b31ae){const _0x1b288e=_0x5d4ae1,_0x404c50=_0x1b31ae[_0x1b288e(0x24f)](','),_0xd6fc6b=[];for(const _0x54144b of _0x404c50){const [_0x4da322,_0x284a72,_0x42a747]=_0x54144b[_0x1b288e(0x24f)](':');_0xd6fc6b[_0x1b288e(0x21f)]({'startOffset':Number(_0x4da322),'endOffset':Number(_0x284a72),'collapsed':_0x4da322===_0x284a72,'isActive':_0x42a747==='1'});}return _0xd6fc6b['some'](_0x306b3f=>_0x306b3f[_0x1b288e(0x15a)])||(_0xd6fc6b[0x0]['isActive']=!0x0),_0xd6fc6b;}class _0x22361d extends _0x1c7e0a['RxDisposable']{constructor(){const _0x562ccf=_0x5d4ae1;super(...arguments),_0x2308c9(this,'_collabCursorState$',new _0xf632fb[(_0x562ccf(0x195))](null)),_0x2308c9(this,_0x562ccf(0x38f),this[_0x562ccf(0x42c)][_0x562ccf(0x1b6)]());}['syncEditingCollabCursor'](_0x439c60){const _0x5af614=_0x5d4ae1,{unitID:_0x4a185a,memberID:_0x590ff2,textRanges:_0x503a20}=_0x439c60,_0x245a39=_0x566a5f(_0x503a20),_0x152663={'unitID':_0x4a185a,'memberID':_0x590ff2,'selection':_0x245a39};this['_collabCursorState$'][_0x5af614(0x2b1)](_0x152663);}}var _0x4d5e9a=Object['defineProperty'],_0x50713c=Object[_0x5d4ae1(0x23a)],_0x26fd3d=(_0x50ce25,_0x1fe195,_0x50e3de,_0x514702)=>{for(var _0x2645dc=_0x514702>0x1?void 0x0:_0x514702?_0x50713c(_0x1fe195,_0x50e3de):_0x1fe195,_0x216956=_0x50ce25['length']-0x1,_0x2a41c2;_0x216956>=0x0;_0x216956--)(_0x2a41c2=_0x50ce25[_0x216956])&&(_0x2645dc=(_0x514702?_0x2a41c2(_0x1fe195,_0x50e3de,_0x2645dc):_0x2a41c2(_0x2645dc))||_0x2645dc);return _0x514702&&_0x2645dc&&_0x4d5e9a(_0x1fe195,_0x50e3de,_0x2645dc),_0x2645dc;},_0x172b3b=(_0xa233f4,_0x3c0aaa)=>(_0x4093a7,_0x2975ad)=>_0x3c0aaa(_0x4093a7,_0x2975ad,_0xa233f4);function _0x43bfdd(_0x31ef66){const _0x476ff6=_0x5d4ae1,{unitID:_0x363444,mutations:_0x4fe38d}=_0x31ef66;return{'unitId':_0x363444,'subUnitId':_0x4fe38d[0x0][_0x476ff6(0x121)][_0x476ff6(0x486)]};}let _0x54a41f=class{constructor(_0x4d50cf,_0xf4ddc0){const _0x1acc60=_0x5d4ae1;this['_injector']=_0x4d50cf,this[_0x1acc60(0x143)]=_0xf4ddc0;}[_0x5d4ae1(0x2bc)](_0x5f3948){const _0x3c604d=_0x5d4ae1;var _0x1dce75,_0x26ae38,_0x4f8b41;const _0x36edf3=this[_0x3c604d(0x12f)][_0x3c604d(0xec)](_0x213e0a['SheetsSelectionsService']),{unitId:_0x5b6a12,subUnitId:_0x37977d}=_0x43bfdd(_0x5f3948),_0x4e0fa7=_0x36edf3[_0x3c604d(0x2e2)](_0x5b6a12)[_0x3c604d(0x3ec)]();if(_0x4e0fa7[_0x3c604d(0x30d)]===0x0||!_0x5b6a12||!_0x37977d)return;const _0x2d8a1d=[{'id':_0x213e0a[_0x3c604d(0x335)]['id'],'params':{'unitId':_0x5b6a12,'subUnitId':_0x37977d,'selections':_0x1c7e0a[_0x3c604d(0x2de)][_0x3c604d(0x311)](_0x4e0fa7)}}],_0x37e5a6=this[_0x3c604d(0x143)]['transformMutationsWithChangeset'](_0x5f3948,_0x2d8a1d);if(!_0x1aa573[_0x3c604d(0x37e)](_0x37e5a6))throw _0x37e5a6['error'];const _0x5695d3=(_0x4f8b41=(_0x26ae38=(_0x1dce75=_0x37e5a6['m2Prime'][0x0])==null?void 0x0:_0x1dce75[_0x3c604d(0x121)])==null?void 0x0:_0x26ae38[_0x3c604d(0x10c)])!=null?_0x4f8b41:_0x4e0fa7;Array['isArray'](_0x5695d3)&&_0x5695d3['length']&&this[_0x3c604d(0x12f)]['get'](_0x1c7e0a[_0x3c604d(0x264)])[_0x3c604d(0x464)](_0x213e0a[_0x3c604d(0x335)]['id'],{'unitId':_0x5b6a12,'subUnitId':_0x37977d,'selections':_0x5695d3});}};_0x54a41f=_0x26fd3d([_0x172b3b(0x0,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573['Injector'])),_0x172b3b(0x1,_0x1aa573[_0x5d4ae1(0x38a)])],_0x54a41f);const _0x22e541=new Set([_0x213e0a['InsertSheetMutation']['id']]);function _0x300ae4(_0x48e513,_0x305f6f,_0x4f58f9,_0x25b294,_0x2675f0){const _0x3c498d=_0x5d4ae1;var _0xe57fe1,_0x17cfac,_0x4acc4c,_0x22f9c4;const _0x312c3d=[];for(const _0x56a886 of _0x48e513)if(_0x22e541[_0x3c498d(0x3d3)](_0x56a886['id'])){if(_0x312c3d[_0x3c498d(0x30d)]>0x0)break;_0x312c3d['push'](_0x56a886);break;}else _0x312c3d[_0x3c498d(0x21f)](_0x56a886);const _0x57984d=(_0x17cfac=(_0xe57fe1=_0x2675f0[_0x3c498d(0x46c)]())==null?void 0x0:_0xe57fe1[_0x3c498d(0x42f)])!=null?_0x17cfac:_0x3c498d(0x415),_0x42642c=(_0x22f9c4=(_0x4acc4c=_0x2675f0['getCurrentUser']())==null?void 0x0:_0x4acc4c[_0x3c498d(0x2ad)])!=null?_0x22f9c4:'unknown';return{'changeset':{'unitID':_0x305f6f,'type':_0x1aa573['mapDocumentTypeToUniverType'](_0x4f58f9[_0x3c498d(0x43f)](_0x305f6f)),'baseRev':_0x25b294[_0x3c498d(0x18e)](_0x305f6f),'revision':0x0,'userID':_0x57984d,'memberID':_0x42642c,'mutations':_0x312c3d},'pendingMutations':_0x48e513[_0x3c498d(0x3e1)](_0x312c3d['length'])};}function _0x907403(_0x2ae87e,_0x2b8e63,_0x54f478,_0xd40ad4,_0x4de2b8){const _0x21b113=_0x5d4ae1;var _0x517277,_0xca7d72,_0x2bb91f,_0x2444cd;const _0x289e2f=[_0x2ae87e[_0x21b113(0xcb)]((_0x314667,_0x420ce9)=>{const _0x1d7b5a=_0x21b113;var _0x51206f;const {id:_0x2bbce5}=_0x314667,{id:_0x583292,type:_0x18523b}=_0x420ce9,_0x59e772=(_0x51206f=_0x314667[_0x1d7b5a(0x121)])!=null?_0x51206f:{'actions':null},_0x4df866=_0x420ce9[_0x1d7b5a(0x121)];if(_0x2bbce5&&_0x2bbce5!==_0x583292)throw new Error(_0x1d7b5a(0x370)+_0x2bbce5+'\x20-\x20'+_0x583292+'.');return{..._0x314667,'id':_0x583292,'type':_0x18523b,'params':{'unitId':_0x4df866[_0x1d7b5a(0x386)],'textRanges':_0x4df866[_0x1d7b5a(0x3a9)],'actions':_0x1c7e0a['JSONX']['compose'](_0x59e772[_0x1d7b5a(0x401)],_0x4df866['actions'])}};},{})],_0x3fee7b=(_0xca7d72=(_0x517277=_0x4de2b8['getCurrentUser']())==null?void 0x0:_0x517277['userID'])!=null?_0xca7d72:_0x21b113(0x415),_0x3fd966=(_0x2444cd=(_0x2bb91f=_0x4de2b8[_0x21b113(0x46c)]())==null?void 0x0:_0x2bb91f[_0x21b113(0x2ad)])!=null?_0x2444cd:'unknown';return{'changeset':{'unitID':_0x2b8e63,'type':_0x1aa573[_0x21b113(0x3d1)](_0x54f478[_0x21b113(0x43f)](_0x2b8e63)),'baseRev':_0xd40ad4[_0x21b113(0x18e)](_0x2b8e63),'revision':0x0,'userID':_0x3fee7b,'memberID':_0x3fd966,'mutations':_0x289e2f},'pendingMutations':[]};}var _0x181c81=Object[_0x5d4ae1(0x428)],_0x2e8ac4=Object[_0x5d4ae1(0x23a)],_0x56271e=(_0x178599,_0x433c32,_0x470a66,_0x2c4bf8)=>{const _0x4699c7=_0x5d4ae1;for(var _0x2773c3=_0x2c4bf8>0x1?void 0x0:_0x2c4bf8?_0x2e8ac4(_0x433c32,_0x470a66):_0x433c32,_0x4e89ac=_0x178599[_0x4699c7(0x30d)]-0x1,_0x3a7e30;_0x4e89ac>=0x0;_0x4e89ac--)(_0x3a7e30=_0x178599[_0x4e89ac])&&(_0x2773c3=(_0x2c4bf8?_0x3a7e30(_0x433c32,_0x470a66,_0x2773c3):_0x3a7e30(_0x2773c3))||_0x2773c3);return _0x2c4bf8&&_0x2773c3&&_0x181c81(_0x433c32,_0x470a66,_0x2773c3),_0x2773c3;},_0x4baee0=(_0x586c6f,_0x24d332)=>(_0x3b2217,_0x496b5d)=>_0x24d332(_0x3b2217,_0x496b5d,_0x586c6f),_0x340600=(_0x4a9769=>(_0x4a9769[_0x5d4ae1(0x1ec)]='not_collab',_0x4a9769[_0x5d4ae1(0x3ce)]=_0x5d4ae1(0x171),_0x4a9769[_0x5d4ae1(0x135)]='pending',_0x4a9769[_0x5d4ae1(0x19a)]=_0x5d4ae1(0x112),_0x4a9769[_0x5d4ae1(0x205)]=_0x5d4ae1(0x162),_0x4a9769[_0x5d4ae1(0x22a)]=_0x5d4ae1(0x2d4),_0x4a9769[_0x5d4ae1(0x1f1)]=_0x5d4ae1(0x105),_0x4a9769[_0x5d4ae1(0x1e5)]=_0x5d4ae1(0xf5),_0x4a9769))(_0x340600||{});class _0x45334a{constructor(_0x30d2c5,_0x4d2c45,_0x418d5e,_0x37805e,_0x2715a6,_0x3209d4,_0x3b10d4,_0x70795a,_0x4c8b52){const _0xdc02=_0x5d4ae1;_0x2308c9(this,_0xdc02(0x3c7),null),_0x2308c9(this,_0xdc02(0x1b4),[]),(this[_0xdc02(0x306)]=_0x30d2c5,this[_0xdc02(0x302)]=_0x4d2c45,this[_0xdc02(0x237)]=_0x2715a6,this['_commandService']=_0x3209d4,this[_0xdc02(0x371)]=_0x3b10d4,this['_revisionService']=_0x70795a,this[_0xdc02(0x25a)]=_0x4c8b52,this[_0xdc02(0x3c7)]=_0x418d5e,this['_pendingMutations']=_0x37805e);}[_0x5d4ae1(0x314)](_0x239cd1){const _0x1ae00a=_0x5d4ae1,_0x4fc30d=this['_revisionService'][_0x1ae00a(0x18e)](this['unitID']);return _0x239cd1[_0x1ae00a(0x46f)]>_0x4fc30d+0x1?(this[_0x1ae00a(0x237)]['onMissingChangesets']({'from':_0x4fc30d,'to':_0x239cd1[_0x1ae00a(0x46f)]-0x1}),!0x0):!0x1;}[_0x5d4ae1(0x36c)](_0x28304e){const _0x280469=_0x5d4ae1;this[_0x280469(0x371)][_0x280469(0x193)](this['unitID'],_0x28304e);}[_0x5d4ae1(0x2fb)](_0x116d44){const _0x378f4e=_0x5d4ae1;var _0x5288b0,_0xbeff32;(_0xbeff32=(_0x5288b0=this['_handler'])['onTransformSelections'])==null||_0xbeff32[_0x378f4e(0xb1)](_0x5288b0,_0x116d44);}[_0x5d4ae1(0x1f4)](_0x55df50){const _0x125ca4=_0x5d4ae1;var _0x28259,_0x3b37b2;return(_0x3b37b2=(_0x28259=this['_handler'])[_0x125ca4(0x1aa)])==null?void 0x0:_0x3b37b2[_0x125ca4(0xb1)](_0x28259,_0x55df50);}['_transformRemoteChangesetByIMECache'](_0x34ce62){const _0x16ef6e=_0x5d4ae1;var _0x26621d,_0x1f647b,_0x3e25b8;return(_0x3e25b8=(_0x1f647b=(_0x26621d=this[_0x16ef6e(0x237)])[_0x16ef6e(0x1e8)])==null?void 0x0:_0x1f647b[_0x16ef6e(0xb1)](_0x26621d,_0x34ce62))!=null?_0x3e25b8:_0x34ce62;}['_syncEditingCollabCursor'](_0x33f787){const _0x4ce9b9=_0x5d4ae1;var _0x3aa7cc,_0x52bd18;if(this[_0x4ce9b9(0x302)]===_0x38246c['UNIVER_DOC']){const {unitID:_0x268672,mutations:_0x5395f0,memberID:_0x35cbd4}=_0x33f787,_0x18c5ff=_0x5395f0[0x0][_0x4ce9b9(0x121)][_0x4ce9b9(0x3a9)];Array[_0x4ce9b9(0x31d)](_0x18c5ff)&&_0x18c5ff[_0x4ce9b9(0x30d)]>0x0&&((_0x52bd18=(_0x3aa7cc=this[_0x4ce9b9(0x237)])[_0x4ce9b9(0x18d)])==null||_0x52bd18[_0x4ce9b9(0xb1)](_0x3aa7cc,{'unitID':_0x268672,'memberID':_0x35cbd4,'textRanges':_0x18c5ff}));}}[_0x5d4ae1(0x31e)](){const _0x2b3e47=_0x5d4ae1;this['_localCacheService'][_0x2b3e47(0xbd)](this[_0x2b3e47(0x306)],this['type'],this[_0x2b3e47(0x3c7)],this[_0x2b3e47(0x1b4)]);}[_0x5d4ae1(0x111)](){const _0x37bd93=_0x5d4ae1;return this['_revisionService'][_0x37bd93(0x18e)](this[_0x37bd93(0x306)]);}[_0x5d4ae1(0x41e)](){const _0xbffd0f=_0x5d4ae1;this[_0xbffd0f(0x227)][_0xbffd0f(0x442)](this['unitID']);}[_0x5d4ae1(0x21a)](_0x420eff){const _0x1d03a9=_0x5d4ae1;var _0x34b425;const _0x4225a8=this[_0x1d03a9(0x461)](_0x420eff),_0x56ed16=_0x1c7e0a[_0x1d03a9(0x34b)](_0x4225a8['mutations'],this[_0x1d03a9(0x28d)],{'fromCollab':!0x0});if(!_0x56ed16[_0x1d03a9(0x425)])throw _0x56ed16['error']instanceof Error?_0x56ed16['error']:new Error((_0x34b425=_0x56ed16[_0x1d03a9(0x34d)])!=null?_0x34b425:_0x1d03a9(0x3df));this['_transformIMECache'](_0x4225a8),this[_0x1d03a9(0x36c)](_0x420eff),this[_0x1d03a9(0x2fb)](_0x4225a8),this['_syncEditingCollabCursor'](_0x4225a8),this['_incrementRevisionNumber']();}}let _0x50ebe9=class extends _0x45334a{constructor(_0x337a57,_0x40af3a,_0x81fd31,_0x2ac967,_0x3fb9d9,_0x20c881,_0x70d33d,_0x2da05a,_0x1c574c){const _0x6cdbc2=_0x5d4ae1;super(_0x337a57,_0x40af3a,null,[],_0x81fd31,_0x2da05a,_0x70d33d,_0x2ac967,_0x3fb9d9),_0x2308c9(this,_0x6cdbc2(0x3cd),_0x6cdbc2(0x171)),(this[_0x6cdbc2(0x12f)]=_0x20c881,this[_0x6cdbc2(0x38d)]=_0x1c574c);}['appendMutation'](_0x56ead7){const _0x5e6f12=_0x5d4ae1,_0xe6490f=this[_0x5e6f12(0x12f)][_0x5e6f12(0xd0)](_0x305b7b,this[_0x5e6f12(0x306)],this[_0x5e6f12(0x302)],[_0x56ead7],this[_0x5e6f12(0x237)]);return _0xe6490f[_0x5e6f12(0x46a)](),_0xe6490f[_0x5e6f12(0x31e)](),_0xe6490f;}[_0x5d4ae1(0x40b)](_0x15252f){const _0x3d4209=_0x5d4ae1;if(this[_0x3d4209(0x314)](_0x15252f))return this['_injector'][_0x3d4209(0xd0)](_0x307304,this[_0x3d4209(0x306)],this[_0x3d4209(0x302)],null,[],null,[_0x15252f],this[_0x3d4209(0x237)]);try{return this[_0x3d4209(0x21a)](_0x15252f),this;}catch(_0x34d112){return this[_0x3d4209(0x38d)][_0x3d4209(0x34d)](_0x3d4209(0x307),_0x34d112),this;}}[_0x5d4ae1(0x102)](){const _0x105340=_0x5d4ae1;throw new Error(_0x105340(0x1fa));}['onRemoteRej'](){const _0xe94f26=_0x5d4ae1;throw new Error(_0xe94f26(0x17b));}[_0x5d4ae1(0x1ba)](){const _0x5c05a6=_0x5d4ae1;return this[_0x5c05a6(0x12f)]['createInstance'](_0x5bbdd1,this[_0x5c05a6(0x306)],this[_0x5c05a6(0x302)],null,[],this[_0x5c05a6(0x237)]);}[_0x5d4ae1(0x484)](){return this;}[_0x5d4ae1(0x1b2)](){const _0x4eb8e4=_0x5d4ae1;throw new Error(_0x4eb8e4(0x2f8));}};_0x50ebe9=_0x56271e([_0x4baee0(0x3,_0x4fa573[_0x5d4ae1(0x274)](_0x1aa573[_0x5d4ae1(0x183)])),_0x4baee0(0x4,_0x4fa573[_0x5d4ae1(0x274)](_0x488928['LocalCacheService'])),_0x4baee0(0x5,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573[_0x5d4ae1(0x38e)])),_0x4baee0(0x6,_0x1c7e0a[_0x5d4ae1(0x3ba)]),_0x4baee0(0x7,_0x1c7e0a[_0x5d4ae1(0x264)]),_0x4baee0(0x8,_0x1c7e0a[_0x5d4ae1(0x3d7)])],_0x50ebe9);let _0x305b7b=class extends _0x45334a{constructor(_0x54e68f,_0x326403,_0x9fe82e,_0x5ee3d1,_0x50a762,_0x5c62da,_0x4c3c01,_0x5210a0,_0x4f6cd1,_0x153fad,_0x18a68f,_0x4014d6,_0x4e8aaf,_0x313e0f){const _0x41c6ee=_0x5d4ae1;super(_0x54e68f,_0x326403,null,_0x9fe82e,_0x5ee3d1,_0x153fad,_0x313e0f,_0x5c62da,_0x4c3c01),_0x2308c9(this,_0x41c6ee(0x3cd),'pending'),_0x2308c9(this,'_scheduleTimestamp',null),_0x2308c9(this,_0x41c6ee(0xed),null),(this[_0x41c6ee(0x12f)]=_0x50a762,this[_0x41c6ee(0xe7)]=_0x5210a0,this[_0x41c6ee(0x38d)]=_0x4f6cd1,this[_0x41c6ee(0x432)]=_0x18a68f,this[_0x41c6ee(0x143)]=_0x4014d6,this[_0x41c6ee(0x2aa)]=_0x4e8aaf);}['appendMutation'](_0x5e622b){const _0x46be0d=_0x5d4ae1;return this[_0x46be0d(0x1b4)][_0x46be0d(0x21f)](_0x5e622b),this['_updateLocalCache'](),this;}[_0x5d4ae1(0x40b)](_0x243b70){const _0x512fa4=_0x5d4ae1;if(this[_0x512fa4(0x314)](_0x243b70))return this[_0x512fa4(0x298)](),this[_0x512fa4(0x12f)]['createInstance'](_0x307304,this['unitID'],this[_0x512fa4(0x302)],null,this[_0x512fa4(0x1b4)],null,[_0x243b70],this[_0x512fa4(0x237)]);try{const _0x26622d=this[_0x512fa4(0x143)]['transformMutationsWithChangeset'](_0x243b70,this['_pendingMutations']);if(_0x1aa573[_0x512fa4(0x37e)](_0x26622d)){const {c1Prime:_0x5959b1,m2Prime:_0x5f55db}=_0x26622d;this[_0x512fa4(0x21a)](_0x5959b1);const _0x4f93fd=this[_0x512fa4(0x12f)][_0x512fa4(0xd0)](_0x305b7b,this[_0x512fa4(0x306)],this[_0x512fa4(0x302)],_0x5f55db,this['_handler']);return this[_0x512fa4(0x298)](),_0x4f93fd[_0x512fa4(0x46a)](this[_0x512fa4(0x406)]?Math[_0x512fa4(0x347)](0x0,new Date()[_0x512fa4(0x1e2)]()-this[_0x512fa4(0x406)]):this[_0x512fa4(0xd5)]()),_0x4f93fd;}throw _0x26622d['error'];}catch(_0x23536f){return this[_0x512fa4(0x38d)][_0x512fa4(0x34d)](_0x23536f),this[_0x512fa4(0x34c)](!0x1);}}[_0x5d4ae1(0x102)](){const _0x8e41ed=_0x5d4ae1;throw new Error(_0x8e41ed(0x32d));}[_0x5d4ae1(0x1e6)](){const _0x289fa3=_0x5d4ae1;throw new Error(_0x289fa3(0x447));}[_0x5d4ae1(0x1ba)](){const _0x17e8b3=_0x5d4ae1;return this[_0x17e8b3(0x298)](),this[_0x17e8b3(0x12f)][_0x17e8b3(0xd0)](_0x5bbdd1,this[_0x17e8b3(0x306)],this[_0x17e8b3(0x302)],null,this['_pendingMutations'],this['_handler']);}[_0x5d4ae1(0x484)](){return this;}[_0x5d4ae1(0x46a)](_0x55d7df){const _0x2c7703=_0x5d4ae1;_0x55d7df=_0x55d7df!=null?_0x55d7df:this[_0x2c7703(0xd5)](),this[_0x2c7703(0x406)]=new Date()['getTime'](),this[_0x2c7703(0xed)]=setTimeout(()=>{const _0x431dc4=_0x2c7703;this[_0x431dc4(0x298)]();let _0x11340c=null;switch(this[_0x431dc4(0x302)]){case _0x38246c['UNIVER_SHEET']:{_0x11340c=_0x300ae4(this[_0x431dc4(0x1b4)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x431dc4(0xe7)]);break;}case _0x38246c['UNIVER_DOC']:{_0x11340c=_0x907403(this[_0x431dc4(0x1b4)],this['unitID'],this['_univerInstanceService'],this[_0x431dc4(0x227)],this[_0x431dc4(0xe7)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x431dc4(0x302)]+_0x431dc4(0x29b));}const {changeset:_0x3ec780,pendingMutations:_0x3b0010}=_0x11340c;this['_handler'][_0x431dc4(0x3a4)](_0x3ec780);const _0x1cfaac=_0x3b0010[_0x431dc4(0x30d)]?this[_0x431dc4(0x12f)][_0x431dc4(0xd0)](_0x5483a3,this[_0x431dc4(0x306)],this[_0x431dc4(0x302)],_0x3ec780,_0x3b0010,this[_0x431dc4(0x237)]):this[_0x431dc4(0x12f)][_0x431dc4(0xd0)](_0x51f360,this[_0x431dc4(0x306)],this[_0x431dc4(0x302)],_0x3ec780,this[_0x431dc4(0x237)]);_0x1cfaac[_0x431dc4(0x31e)](),this[_0x431dc4(0x237)][_0x431dc4(0x344)](this,_0x1cfaac);},_0x55d7df);}[_0x5d4ae1(0xd5)](){const _0x5a26ea=_0x5d4ae1;var _0x1bca3e;return(_0x1bca3e=this[_0x5a26ea(0x432)][_0x5a26ea(0x30e)](_0xedbb72))!=null?_0x1bca3e:0x7d0;}[_0x5d4ae1(0x1b2)](){const _0x499f36=_0x5d4ae1;throw new Error(_0x499f36(0x457));}[_0x5d4ae1(0x298)](){const _0x3084a6=_0x5d4ae1;this['_sendingTimer']!=null&&(clearTimeout(this[_0x3084a6(0xed)]),this[_0x3084a6(0xed)]=null);}[_0x5d4ae1(0x34c)](_0x6c8ff2){const _0x34865b=_0x5d4ae1;return this[_0x34865b(0x298)](),this[_0x34865b(0x12f)][_0x34865b(0xd0)](_0x4e84bf,this[_0x34865b(0x306)],this[_0x34865b(0x302)],null,this[_0x34865b(0x1b4)],this[_0x34865b(0x237)],_0x6c8ff2);}};_0x305b7b=_0x56271e([_0x4baee0(0x4,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573[_0x5d4ae1(0x38e)])),_0x4baee0(0x5,_0x4fa573['Inject'](_0x1aa573[_0x5d4ae1(0x183)])),_0x4baee0(0x6,_0x4fa573[_0x5d4ae1(0x274)](_0x488928[_0x5d4ae1(0x296)])),_0x4baee0(0x7,_0x4fa573[_0x5d4ae1(0x274)](_0x1fece3)),_0x4baee0(0x8,_0x1c7e0a['ILogService']),_0x4baee0(0x9,_0x1c7e0a[_0x5d4ae1(0x264)]),_0x4baee0(0xa,_0x1c7e0a[_0x5d4ae1(0x13b)]),_0x4baee0(0xb,_0x1aa573[_0x5d4ae1(0x38a)]),_0x4baee0(0xc,_0x1c7e0a['IUniverInstanceService']),_0x4baee0(0xd,_0x1c7e0a[_0x5d4ae1(0x3ba)])],_0x305b7b);let _0x51f360=class extends _0x45334a{constructor(_0x4bec87,_0x8fb1ec,_0x14b384,_0x897fa6,_0x286bdf,_0x330d7b,_0x502e91,_0x52749d,_0x499a4a,_0x1fcb10,_0x7b4c27){const _0xbc55fb=_0x5d4ae1;super(_0x4bec87,_0x8fb1ec,_0x14b384,[],_0x897fa6,_0x52749d,_0x7b4c27,_0x330d7b,_0x502e91),_0x2308c9(this,_0xbc55fb(0x3cd),_0xbc55fb(0x112)),(this[_0xbc55fb(0x12f)]=_0x286bdf,this['_logService']=_0x499a4a,this[_0xbc55fb(0x143)]=_0x1fcb10);}[_0x5d4ae1(0x287)](_0x39914e){const _0x1a94bb=_0x5d4ae1,_0x376a78=this[_0x1a94bb(0x12f)][_0x1a94bb(0xd0)](_0x5483a3,this['unitID'],this['type'],this['_awaitingChangeset'],[_0x39914e],this[_0x1a94bb(0x237)]);return _0x376a78[_0x1a94bb(0x31e)](),_0x376a78;}['onRemoteChangeset'](_0x48c164){const _0x625ed2=_0x5d4ae1;if(this['_checkMissing'](_0x48c164))return this[_0x625ed2(0x12f)][_0x625ed2(0xd0)](_0x307304,this[_0x625ed2(0x306)],this['type'],this[_0x625ed2(0x3c7)],[],null,[_0x48c164],this['_handler']);try{const _0x21e651=this[_0x625ed2(0x143)][_0x625ed2(0x3d2)]([_0x48c164],[this[_0x625ed2(0x3c7)]],!0x1);if(_0x1aa573[_0x625ed2(0x3e5)](_0x21e651)){const {c1Prime:_0x590788,c2Prime:_0xc769a7}=_0x21e651;this['_executeRemoteChangeset'](_0x590788[0x0]),_0xc769a7[0x0][_0x625ed2(0x207)]=this['_getCurrentRevision']();const _0x36ffdf=this[_0x625ed2(0x12f)][_0x625ed2(0xd0)](_0x51f360,this[_0x625ed2(0x306)],this[_0x625ed2(0x302)],_0xc769a7[0x0],this[_0x625ed2(0x237)]);return _0x36ffdf['_updateLocalCache'](),_0x36ffdf;}return this['_onConflict'](!0x1);}catch(_0x54cf13){return this[_0x625ed2(0x38d)][_0x625ed2(0x34d)](_0x54cf13),this[_0x625ed2(0x34c)](!0x1);}}[_0x5d4ae1(0x102)](_0x31af5e){const _0x4270ef=_0x5d4ae1,_0x4911be=this[_0x4270ef(0x227)][_0x4270ef(0x18e)](this[_0x4270ef(0x306)]);if(_0x31af5e[_0x4270ef(0x46f)]<_0x4911be-0x1)return this;if(this['_checkMissing'](_0x31af5e))return this[_0x4270ef(0x12f)][_0x4270ef(0xd0)](_0x307304,this[_0x4270ef(0x306)],this['type'],null,[],this[_0x4270ef(0x3c7)],[],this[_0x4270ef(0x237)]);this[_0x4270ef(0x41e)]();const _0x2ee146=this[_0x4270ef(0x12f)][_0x4270ef(0xd0)](_0x50ebe9,this['unitID'],this[_0x4270ef(0x302)],this['_handler']);return _0x2ee146[_0x4270ef(0x31e)](),_0x2ee146;}[_0x5d4ae1(0x1e6)](_0x50ad59){const _0x2bf418=_0x5d4ae1;return this[_0x2bf418(0x34c)](!!(_0x50ad59!=null&&_0x50ad59[_0x2bf418(0x294)]));}[_0x5d4ae1(0x1ba)](){const _0x149bc0=_0x5d4ae1;return this['_injector'][_0x149bc0(0xd0)](_0x5bbdd1,this[_0x149bc0(0x306)],this['type'],this[_0x149bc0(0x3c7)],[],this[_0x149bc0(0x237)]);}[_0x5d4ae1(0x484)](){return this;}['resend'](){const _0x4e9ab6=_0x5d4ae1;this[_0x4e9ab6(0x237)][_0x4e9ab6(0x3a4)](this[_0x4e9ab6(0x3c7)]);}[_0x5d4ae1(0x34c)](_0x154fdf){const _0x4d9ef3=_0x5d4ae1;return this[_0x4d9ef3(0x12f)][_0x4d9ef3(0xd0)](_0x4e84bf,this[_0x4d9ef3(0x306)],this[_0x4d9ef3(0x302)],this[_0x4d9ef3(0x3c7)],[],this['_handler'],_0x154fdf);}};_0x51f360=_0x56271e([_0x4baee0(0x4,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573[_0x5d4ae1(0x38e)])),_0x4baee0(0x5,_0x4fa573[_0x5d4ae1(0x274)](_0x1aa573['RevisionService'])),_0x4baee0(0x6,_0x4fa573[_0x5d4ae1(0x274)](_0x488928[_0x5d4ae1(0x296)])),_0x4baee0(0x7,_0x1c7e0a[_0x5d4ae1(0x264)]),_0x4baee0(0x8,_0x1c7e0a['ILogService']),_0x4baee0(0x9,_0x1aa573[_0x5d4ae1(0x38a)]),_0x4baee0(0xa,_0x1c7e0a[_0x5d4ae1(0x3ba)])],_0x51f360);let _0x5483a3=class extends _0x45334a{constructor(_0x144f19,_0x455969,_0x411a58,_0x4e3485,_0x5c37fb,_0xe5b136,_0x4209e9,_0x1820bb,_0x2e055f,_0x1c0d7f,_0x2dfe5f,_0x46c643){const _0x4d168c=_0x5d4ae1;super(_0x144f19,_0x455969,_0x411a58,_0x4e3485,_0x5c37fb,_0x2e055f,_0x46c643,_0x4209e9,_0x1820bb),_0x2308c9(this,_0x4d168c(0x3cd),_0x4d168c(0x162)),(this[_0x4d168c(0x12f)]=_0xe5b136,this['_logService']=_0x1c0d7f,this[_0x4d168c(0x143)]=_0x2dfe5f);}[_0x5d4ae1(0x287)](_0x313062){const _0x27ac9a=_0x5d4ae1;return this[_0x27ac9a(0x1b4)]['push'](_0x313062),this;}[_0x5d4ae1(0x40b)](_0x4cf550){const _0x474d71=_0x5d4ae1;if(this[_0x474d71(0x314)](_0x4cf550))return this[_0x474d71(0x12f)][_0x474d71(0xd0)](_0x307304,this[_0x474d71(0x306)],this['type'],this[_0x474d71(0x3c7)],this[_0x474d71(0x1b4)],null,[_0x4cf550],this[_0x474d71(0x237)]);try{const _0x19d5e4=this[_0x474d71(0x143)][_0x474d71(0x3d2)]([_0x4cf550],[this[_0x474d71(0x3c7)]],!0x1);if(_0x1aa573[_0x474d71(0x3e5)](_0x19d5e4)){const {c1Prime:_0x1b39b5,c2Prime:_0x302307}=_0x19d5e4,_0x2c5f3c=this['_transformService']['transformMutationsWithChangeset'](_0x1b39b5[0x0],this[_0x474d71(0x1b4)]);if(_0x1aa573[_0x474d71(0x37e)](_0x2c5f3c)){const {c1Prime:_0x163952,m2Prime:_0x30b240}=_0x2c5f3c;return this[_0x474d71(0x21a)](_0x163952),_0x302307[0x0][_0x474d71(0x207)]=this[_0x474d71(0x111)](),this[_0x474d71(0x12f)]['createInstance'](_0x5483a3,this[_0x474d71(0x306)],this[_0x474d71(0x302)],_0x302307[0x0],_0x30b240,this[_0x474d71(0x237)]);}throw _0x2c5f3c[_0x474d71(0x34d)];}throw _0x19d5e4[_0x474d71(0x34d)];}catch(_0x45198e){return this[_0x474d71(0x38d)]['error'](_0x45198e),this[_0x474d71(0x34c)](!0x1);}}['onRemoteAck'](_0x1c1e38){const _0x46f7fa=_0x5d4ae1;if(this['_checkMissing'](_0x1c1e38))return this['_injector'][_0x46f7fa(0xd0)](_0x307304,this[_0x46f7fa(0x306)],this['type'],null,this[_0x46f7fa(0x1b4)],this['_awaitingChangeset'],[],this[_0x46f7fa(0x237)]);this[_0x46f7fa(0x41e)]();const _0x46cc5d=this[_0x46f7fa(0x12f)][_0x46f7fa(0xd0)](_0x305b7b,this['unitID'],this['type'],this[_0x46f7fa(0x1b4)],this['_handler']);return _0x46cc5d[_0x46f7fa(0x46a)](),_0x46cc5d[_0x46f7fa(0x31e)](),_0x46cc5d;}['onRemoteRej'](_0x26341b){const _0x44cfc1=_0x5d4ae1;return this[_0x44cfc1(0x34c)](!!(_0x26341b!=null&&_0x26341b[_0x44cfc1(0x294)]));}[_0x5d4ae1(0x1ba)](){const _0x4b0253=_0x5d4ae1;return this[_0x4b0253(0x12f)]['createInstance'](_0x5bbdd1,this[_0x4b0253(0x306)],this[_0x4b0253(0x302)],this['_awaitingChangeset'],this[_0x4b0253(0x1b4)],this[_0x4b0253(0x237)]);}['toggleOnline'](){return this;}[_0x5d4ae1(0x1b2)](){const _0x3d7f0b=_0x5d4ae1;this[_0x3d7f0b(0x237)]['onSendChangeset'](this[_0x3d7f0b(0x3c7)]);}[_0x5d4ae1(0x34c)](_0x365a6e){const _0x3cbe0f=_0x5d4ae1;return this[_0x3cbe0f(0x12f)][_0x3cbe0f(0xd0)](_0x4e84bf,this[_0x3cbe0f(0x306)],this['type'],null,this[_0x3cbe0f(0x1b4)],this[_0x3cbe0f(0x237)],_0x365a6e);}};_0x5483a3=_0x56271e([_0x4baee0(0x5,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573[_0x5d4ae1(0x38e)])),_0x4baee0(0x6,_0x4fa573[_0x5d4ae1(0x274)](_0x1aa573[_0x5d4ae1(0x183)])),_0x4baee0(0x7,_0x4fa573['Inject'](_0x488928[_0x5d4ae1(0x296)])),_0x4baee0(0x8,_0x1c7e0a[_0x5d4ae1(0x264)]),_0x4baee0(0x9,_0x1c7e0a[_0x5d4ae1(0x3d7)]),_0x4baee0(0xa,_0x1aa573[_0x5d4ae1(0x38a)]),_0x4baee0(0xb,_0x1c7e0a[_0x5d4ae1(0x3ba)])],_0x5483a3);let _0x4e84bf=class extends _0x45334a{constructor(_0x52d047,_0x16d542,_0x10f0f3,_0x4ddac9,_0x177e14,_0x4fe24b=!0x1,_0x3708a5,_0x5c9dd9,_0x152dc0,_0x337a14,_0x2d07b0,_0x1cf28a,_0x1d84d1){const _0x1f6671=_0x5d4ae1;super(_0x52d047,_0x16d542,_0x10f0f3,_0x4ddac9,_0x177e14,_0x5c9dd9,_0x152dc0,_0x2d07b0,_0x337a14),_0x2308c9(this,_0x1f6671(0x3cd),_0x1f6671(0x105)),(this[_0x1f6671(0x416)]=_0x4fe24b,this[_0x1f6671(0x319)]=_0x3708a5,this['_localeService']=_0x1cf28a,this[_0x1f6671(0xc6)]=_0x1d84d1,this[_0x1f6671(0xd6)](),this[_0x1f6671(0x46d)](),this[_0x1f6671(0x336)]());}['appendMutation'](){return this;}[_0x5d4ae1(0x40b)](){return this;}[_0x5d4ae1(0x102)](){return this;}[_0x5d4ae1(0x1e6)](){return this;}[_0x5d4ae1(0x1ba)](){return this;}[_0x5d4ae1(0x484)](){return this;}[_0x5d4ae1(0x1b2)](){const _0x5eafa9=_0x5d4ae1;throw new Error(_0x5eafa9(0x16f));}[_0x5d4ae1(0x46d)](){const _0x5263cd=_0x5d4ae1;this[_0x5263cd(0x25a)][_0x5263cd(0xbd)](this[_0x5263cd(0x306)],this[_0x5263cd(0x302)],null,[]);}['_showConflictNotification'](){const _0x49e223=_0x5d4ae1;this[_0x49e223(0x416)]?this[_0x49e223(0xc6)][_0x49e223(0x3fc)]({'title':this[_0x49e223(0x13a)]['t']('permission.title'),'content':this[_0x49e223(0x13a)]['t'](_0x49e223(0x309)),'type':_0x49e223(0x34d),'duration':0x0}):this[_0x49e223(0xc6)][_0x49e223(0x3fc)]({'title':this[_0x49e223(0x13a)]['t'](_0x49e223(0xba)),'content':this[_0x49e223(0x13a)]['t'](_0x49e223(0x2fe)),'type':_0x49e223(0x34d),'duration':0x0});}[_0x5d4ae1(0x336)](){const _0x5af6b7=_0x5d4ae1;this[_0x5af6b7(0x319)][_0x5af6b7(0x283)](new _0x213e0a[(_0x5af6b7(0x152))](this[_0x5af6b7(0x306)])['id'],!0x1);}};_0x4e84bf=_0x56271e([_0x4baee0(0x6,_0x4fa573[_0x5d4ae1(0x274)](_0x1c7e0a[_0x5d4ae1(0x2eb)])),_0x4baee0(0x7,_0x1c7e0a[_0x5d4ae1(0x264)]),_0x4baee0(0x8,_0x1c7e0a[_0x5d4ae1(0x3ba)]),_0x4baee0(0x9,_0x4fa573[_0x5d4ae1(0x274)](_0x488928[_0x5d4ae1(0x296)])),_0x4baee0(0xa,_0x4fa573[_0x5d4ae1(0x274)](_0x1aa573[_0x5d4ae1(0x183)])),_0x4baee0(0xb,_0x4fa573[_0x5d4ae1(0x274)](_0x1c7e0a[_0x5d4ae1(0x476)])),_0x4baee0(0xc,_0x1fdc42[_0x5d4ae1(0x14a)])],_0x4e84bf);let _0x5bbdd1=class extends _0x45334a{constructor(_0x51a8ca,_0x39ab34,_0x4cb99f,_0x140521,_0x2fdf88,_0x4eff91,_0x47bd50,_0x3cac0a,_0x5f1375,_0x5e96c3){const _0x257853=_0x5d4ae1;super(_0x51a8ca,_0x39ab34,_0x4cb99f,_0x140521,_0x2fdf88,_0x5f1375,_0x5e96c3,_0x47bd50,_0x3cac0a),_0x2308c9(this,_0x257853(0x3cd),_0x257853(0xf5)),this[_0x257853(0x12f)]=_0x4eff91;}[_0x5d4ae1(0x287)](_0x1a65a5){const _0x4d21c3=_0x5d4ae1;return this[_0x4d21c3(0x1b4)][_0x4d21c3(0x21f)](_0x1a65a5),this['_updateLocalCache'](),this;}[_0x5d4ae1(0x40b)](_0x152122){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0xb9c5aa=_0x5d4ae1;throw new Error(_0xb9c5aa(0x418));}['onRemoteRej'](){const _0x2a4125=_0x5d4ae1;throw new Error(_0x2a4125(0x266));}[_0x5d4ae1(0x1ba)](){return this;}[_0x5d4ae1(0x484)](){const _0x1157ba=_0x5d4ae1,{_injector:_0x182aef,_pendingMutations:_0x1d7a61,_awaitingChangeset:_0x8b0664,unitID:_0x3939e2,_handler:_0x50cf1e,type:_0x1ccfa4}=this,_0x4c40e4=_0x2c4e79(_0x182aef,_0x3939e2,_0x1ccfa4,_0x8b0664,_0x1d7a61,_0x50cf1e);return _0x4c40e4 instanceof _0x305b7b?_0x4c40e4[_0x1157ba(0x46a)]():(_0x4c40e4 instanceof _0x5483a3||_0x4c40e4 instanceof _0x51f360)&&_0x4c40e4[_0x1157ba(0x1b2)](),_0x4c40e4;}[_0x5d4ae1(0x1b2)](){const _0x157bfe=_0x5d4ae1;throw new Error(_0x157bfe(0x41d));}};_0x5bbdd1=_0x56271e([_0x4baee0(0x5,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573[_0x5d4ae1(0x38e)])),_0x4baee0(0x6,_0x4fa573[_0x5d4ae1(0x274)](_0x1aa573[_0x5d4ae1(0x183)])),_0x4baee0(0x7,_0x4fa573['Inject'](_0x488928[_0x5d4ae1(0x296)])),_0x4baee0(0x8,_0x1c7e0a[_0x5d4ae1(0x264)]),_0x4baee0(0x9,_0x1c7e0a['IUndoRedoService'])],_0x5bbdd1);let _0x307304=class extends _0x45334a{constructor(_0x11745e,_0x43c51c,_0x3550b0,_0x30b7c8,_0x1c8171,_0x26753a,_0x394dfb,_0x17a975,_0xa7e0b9,_0x11409d,_0x17efab,_0x1117ed,_0xf5a75d,_0x2c182d){const _0x531954=_0x5d4ae1;super(_0x11745e,_0x43c51c,_0x3550b0,_0x30b7c8,_0x394dfb,_0x1117ed,_0xf5a75d,_0xa7e0b9,_0x11409d),_0x2308c9(this,'status',_0x531954(0x2d4)),(this[_0x531954(0x1bf)]=_0x1c8171,this[_0x531954(0x3e0)]=_0x26753a,this['_injector']=_0x17a975,this[_0x531954(0x38d)]=_0x17efab,this[_0x531954(0x143)]=_0x2c182d);}['onMissedChangesetFetched'](_0x2d9deb){const _0x4dceaf=_0x5d4ae1;try{const _0xe7c2e1=[..._0x2d9deb,...this[_0x4dceaf(0x3e0)]],_0x1d96eb=[this[_0x4dceaf(0x3c7)]||this[_0x4dceaf(0x1bf)]]['filter'](_0x36217b=>!!_0x36217b);let _0x18b384,_0x31395f;if(_0x1d96eb[_0x4dceaf(0x30d)]){const _0x5aecf7=this[_0x4dceaf(0x143)][_0x4dceaf(0x3d2)](_0xe7c2e1,_0x1d96eb,!0x1);if(!_0x1aa573[_0x4dceaf(0x3e5)](_0x5aecf7))throw _0x5aecf7['error'];_0x18b384=_0x5aecf7[_0x4dceaf(0x292)],_0x31395f=_0x5aecf7[_0x4dceaf(0x361)];}else _0x18b384=_0xe7c2e1,_0x31395f=[];let _0x264c23=this[_0x4dceaf(0x1b4)];_0x18b384[_0x4dceaf(0x32c)](_0x4953b5=>{const _0x435809=_0x4dceaf;let _0x28363b;if(_0x264c23[_0x435809(0x30d)]){const _0x82b5b5=this[_0x435809(0x143)][_0x435809(0x204)](_0x4953b5,_0x264c23);if(!_0x1aa573['isTransformMutationsWithChangesetSuccess'](_0x82b5b5))throw _0x82b5b5[_0x435809(0x34d)];_0x28363b=_0x82b5b5[_0x435809(0x292)],_0x264c23=_0x82b5b5['m2Prime'];}else _0x28363b=_0x4953b5;this['_executeRemoteChangeset'](_0x28363b);}),this['_acknowledgedAwaitingChangeset']&&this[_0x4dceaf(0x41e)](),this[_0x4dceaf(0x3c7)]&&_0x31395f[_0x4dceaf(0x30d)]&&(_0x31395f[0x0][_0x4dceaf(0x207)]=this[_0x4dceaf(0x111)]());let _0x55f272;if(this[_0x4dceaf(0x3c7)]&&_0x264c23['length']!==0x0)_0x55f272=this['_injector']['createInstance'](_0x5483a3,this[_0x4dceaf(0x306)],this[_0x4dceaf(0x302)],_0x31395f[0x0],_0x264c23,this['_handler']);else{if(this[_0x4dceaf(0x3c7)]&&_0x264c23[_0x4dceaf(0x30d)]===0x0)_0x31395f[0x0]['baseRev']=this[_0x4dceaf(0x111)](),_0x55f272=this['_injector']['createInstance'](_0x51f360,this['unitID'],this[_0x4dceaf(0x302)],_0x31395f[0x0],this[_0x4dceaf(0x237)]);else{if(_0x264c23[_0x4dceaf(0x30d)]!==0x0){const _0x3fecf0=this[_0x4dceaf(0x12f)][_0x4dceaf(0xd0)](_0x305b7b,this[_0x4dceaf(0x306)],this[_0x4dceaf(0x302)],_0x264c23,this[_0x4dceaf(0x237)]);_0x3fecf0[_0x4dceaf(0x46a)](),_0x55f272=_0x3fecf0;}else _0x55f272=this[_0x4dceaf(0x12f)][_0x4dceaf(0xd0)](_0x50ebe9,this['unitID'],this[_0x4dceaf(0x302)],this['_handler']);}}return _0x55f272['_updateLocalCache'](),_0x55f272;}catch(_0x46164a){return this['_logService']['error'](_0x4dceaf(0x1bc),'failed\x20to\x20apply\x20missed\x20changesets!',_0x46164a),this[_0x4dceaf(0x12f)]['createInstance'](_0x4e84bf,this[_0x4dceaf(0x306)],this[_0x4dceaf(0x302)],this[_0x4dceaf(0x3c7)],this[_0x4dceaf(0x1b4)],this[_0x4dceaf(0x237)],!0x1);}}[_0x5d4ae1(0x1b2)](){const _0xc4d73a=_0x5d4ae1;throw new Error(_0xc4d73a(0x1df));}[_0x5d4ae1(0x287)](_0x4d3018){return this['_pendingMutations']['push'](_0x4d3018),this;}[_0x5d4ae1(0x40b)](_0x5f2094){const _0xbfbb15=_0x5d4ae1;return this['_queuedRemoteChangesets'][_0xbfbb15(0x21f)](_0x5f2094),this;}[_0x5d4ae1(0x102)](_0x554eff){const _0x369ed4=_0x5d4ae1;if(this[_0x369ed4(0x3c7)])return this['_acknowledgedAwaitingChangeset']=this[_0x369ed4(0x3c7)],this[_0x369ed4(0x3c7)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x5a8fc4){const _0x232ce5=_0x5d4ae1;return this['_onConflict'](!!(_0x5a8fc4!=null&&_0x5a8fc4[_0x232ce5(0x294)]));}[_0x5d4ae1(0x1ba)](){const _0xd689b8=_0x5d4ae1;return this[_0xd689b8(0x12f)][_0xd689b8(0xd0)](_0x5bbdd1,this[_0xd689b8(0x306)],this[_0xd689b8(0x302)],this[_0xd689b8(0x3c7)],this['_pendingMutations'],this[_0xd689b8(0x237)]);}[_0x5d4ae1(0x484)](){return this;}['_onConflict'](_0x2782e9){const _0x4d641f=_0x5d4ae1;return this[_0x4d641f(0x12f)][_0x4d641f(0xd0)](_0x4e84bf,this['unitID'],this[_0x4d641f(0x302)],this[_0x4d641f(0x3c7)],this[_0x4d641f(0x1b4)],this['_handler'],_0x2782e9);}};_0x307304=_0x56271e([_0x4baee0(0x7,_0x4fa573['Inject'](_0x4fa573[_0x5d4ae1(0x38e)])),_0x4baee0(0x8,_0x4fa573['Inject'](_0x1aa573[_0x5d4ae1(0x183)])),_0x4baee0(0x9,_0x4fa573[_0x5d4ae1(0x274)](_0x488928[_0x5d4ae1(0x296)])),_0x4baee0(0xa,_0x1c7e0a[_0x5d4ae1(0x3d7)]),_0x4baee0(0xb,_0x1c7e0a[_0x5d4ae1(0x264)]),_0x4baee0(0xc,_0x1c7e0a[_0x5d4ae1(0x3ba)]),_0x4baee0(0xd,_0x1aa573[_0x5d4ae1(0x38a)])],_0x307304);function _0x2c4e79(_0x5d5bd4,_0x24e2d5,_0x57384d,_0x48a14a,_0xb5983f,_0x43079f){const _0x416045=_0x5d4ae1;return _0x48a14a&&_0xb5983f[_0x416045(0x30d)]?_0x5d5bd4[_0x416045(0xd0)](_0x5483a3,_0x24e2d5,_0x57384d,_0x48a14a,_0xb5983f,_0x43079f):_0x48a14a?_0x5d5bd4[_0x416045(0xd0)](_0x51f360,_0x24e2d5,_0x57384d,_0x48a14a,_0x43079f):_0xb5983f[_0x416045(0x30d)]?_0x5d5bd4[_0x416045(0xd0)](_0x305b7b,_0x24e2d5,_0x57384d,_0xb5983f,_0x43079f):_0x5d5bd4[_0x416045(0xd0)](_0x50ebe9,_0x24e2d5,_0x57384d,_0x43079f);}var _0x2b6541=Object[_0x5d4ae1(0x428)],_0x55e70a=Object[_0x5d4ae1(0x23a)],_0x21ce2b=(_0x522ad1,_0x4aee8b,_0x36a1d1,_0xfb7004)=>{for(var _0x4d1406=_0xfb7004>0x1?void 0x0:_0xfb7004?_0x55e70a(_0x4aee8b,_0x36a1d1):_0x4aee8b,_0x35ea06=_0x522ad1['length']-0x1,_0x208980;_0x35ea06>=0x0;_0x35ea06--)(_0x208980=_0x522ad1[_0x35ea06])&&(_0x4d1406=(_0xfb7004?_0x208980(_0x4aee8b,_0x36a1d1,_0x4d1406):_0x208980(_0x4d1406))||_0x4d1406);return _0xfb7004&&_0x4d1406&&_0x2b6541(_0x4aee8b,_0x36a1d1,_0x4d1406),_0x4d1406;},_0x5802e5=(_0x1c4917,_0x502c2e)=>(_0x57aff2,_0x706228)=>_0x502c2e(_0x57aff2,_0x706228,_0x1c4917);_0x488928['CollaborationController']=class extends _0x1c7e0a[_0x5d4ae1(0x2bb)]{constructor(_0x3e212f,_0x2153ae,_0xe18b3d){const _0x2f53bf=_0x5d4ae1;super(),_0x2308c9(this,_0x2f53bf(0x3be),new Map()),_0x2308c9(this,'_entityInit$',new _0xf632fb[(_0x2f53bf(0x1b7))]()),(this['_injector']=_0x3e212f,this['_collabSessionService']=_0x2153ae,this['_univerInstanceService']=_0xe18b3d,this[_0x2f53bf(0x3c0)]());}[_0x5d4ae1(0x26d)](){const _0x33c933=_0x5d4ae1;super[_0x33c933(0x26d)](),this[_0x33c933(0x3be)][_0x33c933(0x32c)](_0x13b15f=>_0x13b15f[_0x33c933(0x26d)]()),this[_0x33c933(0x3be)]['clear']();}[_0x5d4ae1(0x2b4)](_0x59deb9){const _0x3f48e7=_0x5d4ae1;var _0x4b5fc0;return(_0x4b5fc0=this[_0x3f48e7(0x3be)][_0x3f48e7(0xec)](_0x59deb9))!=null?_0x4b5fc0:null;}[_0x5d4ae1(0x1a2)](_0x723600){const _0x2b1771=_0x5d4ae1,_0x79fc79=this[_0x2b1771(0x2b4)](_0x723600);return _0x79fc79?_0xf632fb['of'](_0x79fc79):this[_0x2b1771(0x25b)]['pipe'](_0x2c2667[_0x2b1771(0x23f)](_0x4342c4=>_0x4342c4[_0x2b1771(0x306)]===_0x723600));}[_0x5d4ae1(0x3c0)](){const _0x22be7a=_0x5d4ae1;this['_univerInstanceService'][_0x22be7a(0x17e)](_0x1c7e0a[_0x22be7a(0x22d)][_0x22be7a(0xfd)])['pipe'](_0xf632fb['takeUntil'](this[_0x22be7a(0x40c)]),_0x2c2667[_0x22be7a(0x376)](0x10))[_0x22be7a(0x41c)](async _0x1cc38c=>{const _0x103b12=_0x22be7a,_0x101bb5=_0x1cc38c['getUnitId'](),_0x5e80ba=await this[_0x103b12(0x32e)](_0x101bb5,_0x38246c[_0x103b12(0xfd)]);this[_0x103b12(0x3be)][_0x103b12(0x36b)](_0x101bb5,_0x5e80ba);}),this[_0x22be7a(0x2aa)]['getTypeOfUnitAdded$'](_0x1c7e0a[_0x22be7a(0x22d)][_0x22be7a(0xe0)])[_0x22be7a(0x272)](_0xf632fb[_0x22be7a(0x360)](this['dispose$']),_0x2c2667[_0x22be7a(0x376)](0x10))[_0x22be7a(0x272)](_0x2c2667[_0x22be7a(0x23f)](_0x3176ba=>!_0x3176ba[_0x22be7a(0x37d)]()[_0x22be7a(0x228)]('__')))['subscribe'](async _0x294994=>{const _0x240c93=_0x22be7a,_0x419099=_0x294994[_0x240c93(0x37d)](),_0x1574dd=await this[_0x240c93(0x32e)](_0x419099,_0x38246c[_0x240c93(0xe0)]);this['_entities'][_0x240c93(0x36b)](_0x419099,_0x1574dd);}),_0xf632fb[_0x22be7a(0xca)](this[_0x22be7a(0x2aa)][_0x22be7a(0x3a1)](_0x1c7e0a[_0x22be7a(0x22d)][_0x22be7a(0xfd)]),this[_0x22be7a(0x2aa)][_0x22be7a(0x3a1)](_0x1c7e0a['UniverInstanceType'][_0x22be7a(0xe0)]))['pipe'](_0xf632fb[_0x22be7a(0x360)](this[_0x22be7a(0x40c)]))[_0x22be7a(0x41c)](_0x2c0c96=>{const _0x116b4d=_0x22be7a,_0x1a32b9=_0x2c0c96[_0x116b4d(0x37d)](),_0x2c42cf=this[_0x116b4d(0x3be)]['get'](_0x1a32b9);_0x2c42cf&&(_0x2c42cf[_0x116b4d(0x26d)](),this[_0x116b4d(0x3be)][_0x116b4d(0x1f0)](_0x1a32b9));});}async[_0x5d4ae1(0x32e)](_0x110779,_0x2f1dbf){const _0x4c475=_0x5d4ae1,_0x4c8ef0=await this[_0x4c475(0x3f2)][_0x4c475(0x444)](_0x110779),_0xa496a3=this['_injector'][_0x4c475(0xd0)](this[_0x4c475(0x2e7)](_0x2f1dbf),_0x110779,_0x2f1dbf,_0x4c8ef0);return await _0xa496a3[_0x4c475(0x2d7)](),this[_0x4c475(0x25b)]['next'](_0xa496a3),_0xa496a3;}['_getCtorByUniverType'](_0x3f3ef8){const _0x30e0db=_0x5d4ae1;switch(_0x3f3ef8){case _0x38246c[_0x30e0db(0xe0)]:return _0x55aaa2;case _0x38246c[_0x30e0db(0xfd)]:return _0x1c388b;default:throw new Error(_0x30e0db(0x44c)+_0x3f3ef8);}}},_0x488928['CollaborationController']=_0x21ce2b([_0x1c7e0a[_0x5d4ae1(0x466)](_0x1c7e0a[_0x5d4ae1(0x25f)]['Starting'],_0x488928['CollaborationController']),_0x5802e5(0x0,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573[_0x5d4ae1(0x38e)])),_0x5802e5(0x1,_0x4fa573['Inject'](_0x488928['CollaborationSessionService'])),_0x5802e5(0x2,_0x1c7e0a[_0x5d4ae1(0x2e9)])],_0x488928[_0x5d4ae1(0x427)]);let _0x4e1c4a=class extends _0x1c7e0a['RxDisposable']{constructor(_0x81e823,_0x5764ad,_0x2822fa,_0x3cca34,_0x360e1c,_0x444760,_0x40019f,_0x146544,_0x5c65af,_0x19a8a4,_0x4240d9,_0x1d33d6,_0x22c225){const _0x541e5a=_0x5d4ae1;super(),_0x2308c9(this,_0x541e5a(0x210),new _0xf632fb[(_0x541e5a(0x195))](null)),_0x2308c9(this,'state$',this[_0x541e5a(0x210)][_0x541e5a(0x1b6)]()),_0x2308c9(this,_0x541e5a(0x48f)),_0x2308c9(this,_0x541e5a(0x22b),!0x1),_0x2308c9(this,_0x541e5a(0x137),this['state$'][_0x541e5a(0x272)](_0x2c2667[_0x541e5a(0x324)](_0x8468e3=>_0x8468e3?_0x8468e3[_0x541e5a(0x3cd)]:_0x340600[_0x541e5a(0x1e5)]),_0x2c2667['shareReplay'](0x1))),_0x2308c9(this,_0x541e5a(0x388),!0x1),_0x2308c9(this,_0x541e5a(0x173),[]),(this[_0x541e5a(0x306)]=_0x81e823,this[_0x541e5a(0x188)]=_0x5764ad,this[_0x541e5a(0x375)]=_0x2822fa,this[_0x541e5a(0x12f)]=_0x3cca34,this[_0x541e5a(0x25a)]=_0x360e1c,this[_0x541e5a(0x29e)]=_0x444760,this[_0x541e5a(0x13a)]=_0x40019f,this['_revisionService']=_0x146544,this[_0x541e5a(0x38d)]=_0x5c65af,this[_0x541e5a(0x28d)]=_0x19a8a4,this[_0x541e5a(0x1c9)]=_0x4240d9,this[_0x541e5a(0x319)]=_0x1d33d6,this[_0x541e5a(0x200)]=_0x22c225);}get[_0x5d4ae1(0x271)](){const _0x20cfff=_0x5d4ae1;return this[_0x20cfff(0x48f)];}async[_0x5d4ae1(0x2d7)](){const _0x24f0d4=_0x5d4ae1;if(this[_0x24f0d4(0x271)])throw new Error(_0x24f0d4(0x2bd));await this[_0x24f0d4(0x3c0)]();}[_0x5d4ae1(0x1fb)](){const _0x2cc6f9=_0x5d4ae1;return this[_0x2cc6f9(0x22b)]=!0x0,_0x1c7e0a[_0x2cc6f9(0x2e6)](()=>{const _0x505586=_0x2cc6f9;this['_collaborationPaused']=!0x1,this[_0x505586(0x3d6)]();});}[_0x5d4ae1(0x211)](_0xc3842a){const _0x267158=_0x5d4ae1;this[_0x267158(0x48f)]=_0xc3842a,this[_0x267158(0x210)]['next'](_0xc3842a);}async[_0x5d4ae1(0x3c0)](){const _0x4256e8=_0x5d4ae1;var _0x3a9c87;return this['_updateState'](await this[_0x4256e8(0x238)]()),this[_0x4256e8(0x200)]&&((_0x3a9c87=this[_0x4256e8(0x200)])==null||_0x3a9c87[_0x4256e8(0xb4)](this['unitID']),this['disposeWithMe'](_0x1c7e0a['toDisposable'](this[_0x4256e8(0x200)][_0x4256e8(0x308)](this['unitID'])[_0x4256e8(0x41c)](_0xeda2e=>{const _0x1060fc=_0x4256e8;this[_0x1060fc(0x38d)][_0x1060fc(0x248)](_0x1060fc(0x101),_0x1060fc(0x300),_0xeda2e),_0xeda2e===_0x5d2b88[_0x1060fc(0x191)]?(this['_messageService'][_0x1060fc(0x3fc)]({'content':this['_localeService']['t'](_0x1060fc(0x1a7)),'type':_0x3ce12d[_0x1060fc(0xd7)]['Warning']}),this[_0x1060fc(0x319)]['updatePermissionPoint'](new _0x213e0a[(_0x1060fc(0x152))](this[_0x1060fc(0x306)])['id'],!0x1)):this['_permissionService'][_0x1060fc(0x283)](new _0x213e0a['WorkbookEditablePermission'](this[_0x1060fc(0x306)])['id'],!0x0);})))),this[_0x4256e8(0xf2)](_0x1c7e0a[_0x4256e8(0x2e6)](this[_0x4256e8(0x375)][_0x4256e8(0x407)][_0x4256e8(0x41c)](_0x17adad=>{const _0x1d47f0=_0x4256e8;_0x17adad===_0x3ea00b['ONLINE']?this[_0x1d47f0(0x169)]():_0x17adad===_0x3ea00b['OFFLINE']&&this[_0x1d47f0(0x40f)]();}))),this[_0x4256e8(0xf2)](_0x1c7e0a[_0x4256e8(0x2e6)](this['_session'][_0x4256e8(0xf0)][_0x4256e8(0x41c)](_0x473e1d=>{const _0x3c7647=_0x4256e8;try{switch(_0x473e1d['eventID']){case _0x1aa573['CollaborationEvent'][_0x3c7647(0x214)]:{this[_0x3c7647(0x1d6)](_0x1aa573[_0x3c7647(0x352)](_0x473e1d['data']));break;}case _0x1aa573[_0x3c7647(0x168)][_0x3c7647(0x485)]:{this[_0x3c7647(0x151)](_0x473e1d[_0x3c7647(0x12b)]);break;}case _0x1aa573[_0x3c7647(0x168)][_0x3c7647(0x19f)]:{this[_0x3c7647(0x40e)]();break;}case _0x1aa573[_0x3c7647(0x168)][_0x3c7647(0x362)]:{this[_0x3c7647(0x39c)](_0x473e1d['data'][_0x3c7647(0x157)][_0x3c7647(0x324)](_0x4d89f7=>_0x1aa573[_0x3c7647(0x352)](_0x4d89f7)));break;}case _0x1aa573['CollaborationEvent'][_0x3c7647(0x11e)]:this[_0x3c7647(0x40e)]({'isPermissionRej':!0x0});}}catch(_0x27edb4){throw console[_0x3c7647(0x34d)]('Error\x20on\x20receiving\x20event',_0x27edb4),_0x27edb4;}}))),this[_0x4256e8(0x48f)];}['_unlockTransition'](){const _0x56c2cd=_0x5d4ae1;this[_0x56c2cd(0x388)]=!0x1;}[_0x5d4ae1(0x116)](){const _0x1476dd=_0x5d4ae1;if(this[_0x1476dd(0x388)])throw new Error(_0x1476dd(0x252));this[_0x1476dd(0x388)]=!0x0;}[_0x5d4ae1(0x213)](_0x45cb0c){const _0x1e6cc0=_0x5d4ae1;this[_0x1e6cc0(0x116)](),this[_0x1e6cc0(0x211)](this[_0x1e6cc0(0x48f)][_0x1e6cc0(0x287)](_0x45cb0c)),this[_0x1e6cc0(0x3f4)]();}[_0x5d4ae1(0x1d6)](_0x49dac7){const _0x1cea4f=_0x5d4ae1;if(!(_0x49dac7[_0x1cea4f(0x46f)]<=this['_revisionService'][_0x1cea4f(0x18e)](this['unitID']))){if(this[_0x1cea4f(0x22b)]){this['_remoteChangesetQueue']['push'](_0x49dac7);return;}this['_applyRemoteChangeset'](_0x49dac7);}}['_exhaustRemoteChangesetQueue'](){const _0xb235d8=_0x5d4ae1;this[_0xb235d8(0x173)][_0xb235d8(0x32c)](_0x5c0679=>this[_0xb235d8(0x223)](_0x5c0679)),this[_0xb235d8(0x173)]=[];}[_0x5d4ae1(0x223)](_0x13820a){const _0x38cdce=_0x5d4ae1,_0x5a551f=this['_compressMutationService'][_0x38cdce(0x17c)][_0x38cdce(0x456)](this[_0x38cdce(0x29e)][_0x38cdce(0x17c)]['getInterceptPoints']()[_0x38cdce(0x262)])(_0x13820a[_0x38cdce(0x27d)],null)||_0x13820a['mutations'],_0x1687af={..._0x13820a,'mutations':_0x5a551f};this[_0x38cdce(0x116)](),this[_0x38cdce(0x211)](this[_0x38cdce(0x48f)][_0x38cdce(0x40b)](_0x1687af)),this[_0x38cdce(0x3f4)]();}[_0x5d4ae1(0x151)](_0x2c8783){const _0x992763=_0x5d4ae1;this[_0x992763(0x116)](),this[_0x992763(0x211)](this[_0x992763(0x48f)][_0x992763(0x102)](_0x2c8783)),this[_0x992763(0x3f4)]();}[_0x5d4ae1(0x40e)](_0x2728a4){const _0x2c7397=_0x5d4ae1;this['_lockTransition'](),this[_0x2c7397(0x211)](this[_0x2c7397(0x48f)][_0x2c7397(0x1e6)](_0x2728a4)),this[_0x2c7397(0x3f4)]();}['_onFetchMissResult'](_0x59489d){const _0x4babf7=_0x5d4ae1;if(!(this['_state']instanceof _0x307304))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x5ce774=_0x59489d[_0x4babf7(0x324)](_0x4d17e7=>{const _0x2ac208=_0x4babf7,_0xb58b21=this['_compressMutationService'][_0x2ac208(0x17c)]['fetchThroughInterceptors'](this[_0x2ac208(0x29e)][_0x2ac208(0x17c)]['getInterceptPoints']()[_0x2ac208(0x262)])(_0x4d17e7[_0x2ac208(0x27d)],null)||_0x4d17e7['mutations'];return{..._0x4d17e7,'mutations':_0xb58b21};});this[_0x4babf7(0x116)](),this[_0x4babf7(0x211)](this['_state'][_0x4babf7(0x355)](_0x5ce774)),this['_unlockTransition']();}['_toggleOffline'](){const _0x416167=_0x5d4ae1;this[_0x416167(0x116)](),this[_0x416167(0x211)](this[_0x416167(0x48f)]['toggleOffline']()),this['_unlockTransition']();}[_0x5d4ae1(0x169)](){const _0x4afae1=_0x5d4ae1;this[_0x4afae1(0x116)](),this[_0x4afae1(0x211)](this[_0x4afae1(0x48f)][_0x4afae1(0x484)]()),this[_0x4afae1(0x3f4)]();}async['_createInitialState'](){return new Promise(_0x9ea54=>{const _0x4842c6=_0x18a3;this['_session'][_0x4842c6(0x407)]['pipe'](_0x2c2667[_0x4842c6(0x365)](0x1))[_0x4842c6(0x41c)](async _0x4c44d5=>{const _0x3dbe17=_0x4842c6;_0x9ea54(await this[_0x3dbe17(0x1c7)](_0x4c44d5===_0x3ea00b[_0x3dbe17(0x358)]));});});}[_0x5d4ae1(0x2cb)](){const _0x1b078e=this['unitID'];return{'onStateChange':(_0x555c1d,_0xff8cef)=>{const _0x4773ea=_0x18a3;if(_0x555c1d!==this['_state'])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x555c1d[_0x4773ea(0x3cd)]+_0x4773ea(0x278)+_0xff8cef['status']+_0x4773ea(0x215)+this[_0x4773ea(0x48f)][_0x4773ea(0x3cd)]);this[_0x4773ea(0x211)](_0xff8cef);},'onSendChangeset':_0x315b21=>{const _0x4389a5=_0x18a3,_0xb26a4d={'eventID':_0x1aa573[_0x4389a5(0x168)][_0x4389a5(0x42d)],'data':{'unitID':_0x315b21['unitID'],'unitType':this[_0x4389a5(0x188)],'changeset':_0x315b21,'memberID':this[_0x4389a5(0x375)][_0x4389a5(0x412)]()}};this['_session'][_0x4389a5(0x455)](_0xb26a4d,this['unitID']);},'onMissingChangesets':({from:_0x34a290,to:_0x4cf7cf})=>{const _0x481876=_0x18a3;this[_0x481876(0x38d)]['debug'](_0x481876(0x101),'fetching\x20missing\x20changesets\x20from\x20'+_0x34a290+'\x20to\x20'+_0x4cf7cf);const _0xdb5d20={'eventID':_0x1aa573[_0x481876(0x168)][_0x481876(0x2c8)],'data':{'unitID':_0x1b078e,'unitType':this['_type'],'from':_0x34a290,'to':_0x4cf7cf}};this[_0x481876(0x375)][_0x481876(0x455)](_0xdb5d20,this[_0x481876(0x306)]);}};}async[_0x5d4ae1(0x1c7)](_0x2abf74){const _0x42e249=_0x5d4ae1;var _0x456731,_0x5237d7;const _0x2d8cbc=await this['_localCacheService']['loadOfflineData'](this[_0x42e249(0x306)]),_0x579d67=(_0x456731=_0x2d8cbc==null?void 0x0:_0x2d8cbc[_0x42e249(0x27d)])!=null?_0x456731:[],_0x3ea4a7=(_0x5237d7=_0x2d8cbc==null?void 0x0:_0x2d8cbc[_0x42e249(0x2ef)])!=null?_0x5237d7:null,_0x34ceea=this[_0x42e249(0x306)];try{this[_0x42e249(0x277)](_0x3ea4a7,_0x579d67);}catch(_0xfd1da0){this['_logService']['error'](_0xfd1da0);}const _0x3cf351=this[_0x42e249(0x2cb)]();if(_0x2abf74){const _0x103277=_0x2c4e79(this[_0x42e249(0x12f)],_0x34ceea,this[_0x42e249(0x188)],_0x3ea4a7,_0x579d67,_0x3cf351);return _0x103277 instanceof _0x305b7b?_0x103277[_0x42e249(0x46a)]():(_0x103277 instanceof _0x5483a3||_0x103277 instanceof _0x51f360)&&_0x103277['resend'](),_0x103277;}return this['_injector'][_0x42e249(0xd0)](_0x5bbdd1,_0x34ceea,this[_0x42e249(0x188)],_0x3ea4a7,_0x579d67,_0x3cf351);}[_0x5d4ae1(0x277)](_0x9a7213,_0x2d4246){const _0x5dfb8b=_0x5d4ae1;var _0x2298ff,_0x29ea8d;const _0x25a2ba=this[_0x5dfb8b(0x29e)][_0x5dfb8b(0x17c)]['fetchThroughInterceptors'](this[_0x5dfb8b(0x29e)]['interceptor'][_0x5dfb8b(0x145)]()[_0x5dfb8b(0x262)]);(_0x2298ff=_0x25a2ba((_0x9a7213==null?void 0x0:_0x9a7213[_0x5dfb8b(0x27d)])||[],null))==null||_0x2298ff[_0x5dfb8b(0x32c)](_0x2e12fc=>this[_0x5dfb8b(0x28d)]['executeCommand'](_0x2e12fc['id'],_0x2e12fc[_0x5dfb8b(0x121)])),(_0x29ea8d=_0x25a2ba(_0x2d4246||[],null))==null||_0x29ea8d[_0x5dfb8b(0x32c)](_0x28937f=>this[_0x5dfb8b(0x28d)][_0x5dfb8b(0x464)](_0x28937f['id'],_0x28937f[_0x5dfb8b(0x121)]));}};_0x4e1c4a=_0x21ce2b([_0x5802e5(0x3,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573['Injector'])),_0x5802e5(0x4,_0x4fa573['Inject'](_0x488928['LocalCacheService'])),_0x5802e5(0x5,_0x4fa573[_0x5d4ae1(0x274)](_0x1aa573[_0x5d4ae1(0x1d4)])),_0x5802e5(0x6,_0x4fa573[_0x5d4ae1(0x274)](_0x1c7e0a[_0x5d4ae1(0x476)])),_0x5802e5(0x7,_0x4fa573[_0x5d4ae1(0x274)](_0x1aa573['RevisionService'])),_0x5802e5(0x8,_0x1c7e0a[_0x5d4ae1(0x3d7)]),_0x5802e5(0x9,_0x1c7e0a[_0x5d4ae1(0x264)]),_0x5802e5(0xa,_0x1fdc42['IMessageService']),_0x5802e5(0xb,_0x1c7e0a[_0x5d4ae1(0x2eb)]),_0x5802e5(0xc,_0x4fa573[_0x5d4ae1(0x468)](_0x3a78a1))],_0x4e1c4a);let _0x55aaa2=class extends _0x4e1c4a{constructor(_0x3ed6c0,_0x3cf116,_0x191673,_0x2875a1,_0x47c28b,_0x12c389,_0x157130,_0x281f51,_0x68e7a2,_0x508a6d,_0x1b8b6b,_0xdf057c,_0xf9ffd9,_0x448a1e,_0x533a79,_0x4dec32,_0x14987e){const _0x4c4b66=_0x5d4ae1;super(_0x3ed6c0,_0x3cf116,_0x191673,_0x2875a1,_0x47c28b,_0x12c389,_0x157130,_0x281f51,_0xf9ffd9,_0x448a1e,_0x533a79,_0x4dec32,_0x14987e),this[_0x4c4b66(0x306)]=_0x3ed6c0,this[_0x4c4b66(0x302)]=_0x3cf116,this[_0x4c4b66(0x1af)]=_0x191673,this['_docStateChangeManagerService']=_0x68e7a2,this[_0x4c4b66(0xcf)]=_0x508a6d,this[_0x4c4b66(0x3c3)]=_0x1b8b6b,this[_0x4c4b66(0x28f)]=_0xdf057c;}[_0x5d4ae1(0x2cb)](){const _0x4b8810=_0x5d4ae1,_0xd7fdc0=super[_0x4b8810(0x2cb)]();return _0xd7fdc0[_0x4b8810(0x1aa)]=_0x20b5a7=>this[_0x4b8810(0xcf)]['transformIMECache'](_0x20b5a7),_0xd7fdc0[_0x4b8810(0x198)]=_0x5d3244=>this['_docTransformSelectionsService']['transformSelections'](_0x5d3244),_0xd7fdc0['onSyncEditingCollabCursor']=_0x322377=>this['_docSyncEditingCollabCursorService'][_0x4b8810(0x1e9)](_0x322377),_0xd7fdc0[_0x4b8810(0x1e8)]=_0x4e092a=>this['_docTransformIMECacheService'][_0x4b8810(0x301)](_0x4e092a),_0xd7fdc0;}async[_0x5d4ae1(0x3c0)](){const _0x404646=_0x5d4ae1,_0x5e62fb=await super[_0x404646(0x3c0)]();return this['_docStateChangeManagerService']['docStateChange$'][_0x404646(0x272)](_0xf632fb[_0x404646(0x360)](this[_0x404646(0x40c)]))[_0x404646(0x41c)](_0x581200=>{const _0x56e522=_0x404646;if(_0x581200==null)return;const {unitId:_0x45b257,redoState:_0x2e92aa,commandId:_0x1f1085}=_0x581200;if(_0x45b257!==this[_0x56e522(0x306)])return;const _0x2d2e14={'id':_0x1f1085,'type':_0x1c7e0a[_0x56e522(0x16b)][_0x56e522(0x16e)],'params':{'unitId':_0x45b257,'actions':_0x2e92aa[_0x56e522(0x401)],'textRanges':null}};this['_onLocalMutation'](_0x2d2e14);}),_0x5e62fb;}};_0x55aaa2=_0x21ce2b([_0x5802e5(0x3,_0x4fa573['Inject'](_0x4fa573[_0x5d4ae1(0x38e)])),_0x5802e5(0x4,_0x4fa573[_0x5d4ae1(0x274)](_0x488928[_0x5d4ae1(0x296)])),_0x5802e5(0x5,_0x4fa573[_0x5d4ae1(0x274)](_0x1aa573[_0x5d4ae1(0x1d4)])),_0x5802e5(0x6,_0x4fa573[_0x5d4ae1(0x274)](_0x1c7e0a[_0x5d4ae1(0x476)])),_0x5802e5(0x7,_0x4fa573['Inject'](_0x1aa573[_0x5d4ae1(0x183)])),_0x5802e5(0x8,_0x4fa573[_0x5d4ae1(0x274)](_0x1e7311[_0x5d4ae1(0x326)])),_0x5802e5(0x9,_0x4fa573['Inject'](_0x3ca91f)),_0x5802e5(0xa,_0x4fa573[_0x5d4ae1(0x274)](_0x3fe7af)),_0x5802e5(0xb,_0x4fa573[_0x5d4ae1(0x274)](_0x22361d)),_0x5802e5(0xc,_0x1c7e0a[_0x5d4ae1(0x3d7)]),_0x5802e5(0xd,_0x1c7e0a[_0x5d4ae1(0x264)]),_0x5802e5(0xe,_0x1fdc42[_0x5d4ae1(0x350)]),_0x5802e5(0xf,_0x1c7e0a[_0x5d4ae1(0x2eb)]),_0x5802e5(0x10,_0x4fa573[_0x5d4ae1(0x468)](_0x3a78a1))],_0x55aaa2);let _0x1c388b=class extends _0x4e1c4a{constructor(_0x344554,_0x3d798b,_0x176ca4,_0x2857d2,_0x27eca7,_0xf781ae,_0x338f39,_0x26c4c7,_0x13435e,_0x4f392e,_0x395bf0,_0x3fe539,_0x3b920c,_0xa7361b){const _0x5edff9=_0x5d4ae1;super(_0x344554,_0x3d798b,_0x176ca4,_0x2857d2,_0x27eca7,_0xf781ae,_0x338f39,_0x26c4c7,_0x4f392e,_0x395bf0,_0x3fe539,_0x3b920c,_0xa7361b),this[_0x5edff9(0x306)]=_0x344554,this['type']=_0x3d798b,this['session']=_0x176ca4,this[_0x5edff9(0x153)]=_0x13435e;}[_0x5d4ae1(0x2cb)](){const _0x10aca0=_0x5d4ae1,_0x11b194=super[_0x10aca0(0x2cb)]();return _0x11b194[_0x10aca0(0x198)]=_0x4763b8=>this[_0x10aca0(0x153)][_0x10aca0(0x2bc)](_0x4763b8),_0x11b194;}async[_0x5d4ae1(0x3c0)](){const _0x303df4=_0x5d4ae1,_0x6f2f4=await super[_0x303df4(0x3c0)]();return this[_0x303df4(0xf2)](this['_commandService'][_0x303df4(0x281)]((_0xb571a4,_0x36a51f)=>{const _0x2c1960=_0x303df4;if(_0xb571a4[_0x2c1960(0x302)]!==_0x1c7e0a[_0x2c1960(0x16b)][_0x2c1960(0x16e)]||_0x36a51f!=null&&_0x36a51f[_0x2c1960(0xc3)]||_0x36a51f!=null&&_0x36a51f['onlyLocal'])return;const _0x4d345b=_0xb571a4['params'];if((_0x4d345b==null?void 0x0:_0x4d345b[_0x2c1960(0x386)])!==this['unitID'])return;const _0x472c4f=_0xb571a4,_0x4a769c=this[_0x2c1960(0x29e)][_0x2c1960(0x17c)]['fetchThroughInterceptors'](this[_0x2c1960(0x29e)]['interceptor'][_0x2c1960(0x145)]()[_0x2c1960(0x3f6)])([_0x472c4f],null)||[_0x472c4f];this[_0x2c1960(0x213)](_0x4a769c[0x0]);})),_0x6f2f4;}};_0x1c388b=_0x21ce2b([_0x5802e5(0x3,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573[_0x5d4ae1(0x38e)])),_0x5802e5(0x4,_0x4fa573[_0x5d4ae1(0x274)](_0x488928[_0x5d4ae1(0x296)])),_0x5802e5(0x5,_0x4fa573[_0x5d4ae1(0x274)](_0x1aa573['CompressMutationService'])),_0x5802e5(0x6,_0x4fa573[_0x5d4ae1(0x274)](_0x1c7e0a[_0x5d4ae1(0x476)])),_0x5802e5(0x7,_0x4fa573[_0x5d4ae1(0x274)](_0x1aa573[_0x5d4ae1(0x183)])),_0x5802e5(0x8,_0x4fa573['Inject'](_0x54a41f)),_0x5802e5(0x9,_0x1c7e0a[_0x5d4ae1(0x3d7)]),_0x5802e5(0xa,_0x1c7e0a['ICommandService']),_0x5802e5(0xb,_0x1fdc42['IMessageService']),_0x5802e5(0xc,_0x1c7e0a[_0x5d4ae1(0x2eb)]),_0x5802e5(0xd,_0x4fa573[_0x5d4ae1(0x468)](_0x3a78a1))],_0x1c388b);const _0x48e81a=[_0x5d4ae1(0x108),_0x5d4ae1(0x470),_0x5d4ae1(0x2cd),_0x5d4ae1(0x11f),_0x5d4ae1(0x313),_0x5d4ae1(0x3db)];class _0x1157e2 extends _0x1c7e0a[_0x5d4ae1(0x284)]{constructor(){const _0x1364f5=_0x5d4ae1;super(...arguments),_0x2308c9(this,_0x1364f5(0x429),new Map()),_0x2308c9(this,_0x1364f5(0x349),0x0);}[_0x5d4ae1(0x124)](_0x9b2447){const _0x46e552=_0x5d4ae1;if(this['_assignedColors'][_0x46e552(0x3d3)](_0x9b2447))return this[_0x46e552(0x429)][_0x46e552(0xec)](_0x9b2447);const _0x160902=_0x48e81a[this[_0x46e552(0x349)]];return this[_0x46e552(0x349)]=(this[_0x46e552(0x349)]+0x1)%_0x48e81a[_0x46e552(0x30d)],this[_0x46e552(0x429)][_0x46e552(0x36b)](_0x9b2447,_0x160902),_0x160902;}}var _0x178422=Object['defineProperty'],_0x69f779=Object[_0x5d4ae1(0x23a)],_0x3b6c51=(_0x30f7ca,_0x183e47,_0x10bda2,_0x1f682e)=>{const _0x3c4869=_0x5d4ae1;for(var _0x2983a3=_0x1f682e>0x1?void 0x0:_0x1f682e?_0x69f779(_0x183e47,_0x10bda2):_0x183e47,_0x2e5ce4=_0x30f7ca[_0x3c4869(0x30d)]-0x1,_0x1529e0;_0x2e5ce4>=0x0;_0x2e5ce4--)(_0x1529e0=_0x30f7ca[_0x2e5ce4])&&(_0x2983a3=(_0x1f682e?_0x1529e0(_0x183e47,_0x10bda2,_0x2983a3):_0x1529e0(_0x2983a3))||_0x2983a3);return _0x1f682e&&_0x2983a3&&_0x178422(_0x183e47,_0x10bda2,_0x2983a3),_0x2983a3;},_0x2e03ec=(_0x5f3e4f,_0x451186)=>(_0x694114,_0x2f80ea)=>_0x451186(_0x694114,_0x2f80ea,_0x5f3e4f);const _0x927347=0x12c,_0x52a863=0x64,_0x17549d=()=>{let _0x314e94=[],_0x33954c=!0x1;return _0x3d0ac8=>{const _0x5dc5d4=_0x18a3;_0x314e94[_0x5dc5d4(0x21f)](_0x3d0ac8),_0x33954c||(_0x33954c=!0x0,setTimeout(()=>{const _0x346127=_0x5dc5d4;_0x314e94[_0x346127(0x32c)](_0x14e5f7=>_0x14e5f7()),_0x314e94=[],_0x33954c=!0x1;}));};};let _0x5dd597=class extends _0x1c7e0a[_0x5d4ae1(0x2bb)]{constructor(_0x46b61a,_0x253a10,_0x1a2b2a,_0xd6355a,_0x235b6c,_0x417883,_0x41fd0d,_0x2172d2){const _0x164c92=_0x5d4ae1;super(),_0x2308c9(this,_0x164c92(0x2ff),!0x1),_0x2308c9(this,_0x164c92(0x3c0),!0x1),_0x2308c9(this,_0x164c92(0x15c),new _0xf632fb['BehaviorSubject'](new Map())),_0x2308c9(this,_0x164c92(0x244),this[_0x164c92(0x15c)][_0x164c92(0x1b6)]()),_0x2308c9(this,_0x164c92(0x184),new _0xf632fb[(_0x164c92(0x195))]([])),_0x2308c9(this,_0x164c92(0xbe),this['_roomMembers$']['pipe'](_0xf632fb[_0x164c92(0x441)](_0x927347))),_0x2308c9(this,'_updateLocalCursor',_0x3c7f92((_0xb6e208,_0x2d98b4)=>{const _0x2581e8=_0x164c92,_0x36fa30={'eventID':_0x1aa573['CollaborationEvent'][_0x2581e8(0x3d0)],'data':{'unitID':this[_0x2581e8(0x306)],'memberID':this['_session'][_0x2581e8(0x412)](),'selection':_0x124410[_0x2581e8(0xc7)](_0xb6e208,_0x2d98b4[_0x2581e8(0x1d9)])}};this[_0x2581e8(0x375)][_0x2581e8(0x455)](_0x36fa30,this['unitID']);},_0x52a863)),(this['unitID']=_0x46b61a,this[_0x164c92(0x375)]=_0x253a10,this[_0x164c92(0x12f)]=_0x1a2b2a,this[_0x164c92(0xfe)]=_0xd6355a,this[_0x164c92(0xe7)]=_0x235b6c,this[_0x164c92(0x2aa)]=_0x417883,this[_0x164c92(0x28d)]=_0x41fd0d,this[_0x164c92(0x436)]=_0x2172d2);}get[_0x5d4ae1(0x27c)](){const _0x2c6692=_0x5d4ae1;return this[_0x2c6692(0x15c)][_0x2c6692(0x3c9)]();}get['roomMembers'](){const _0x4bb13e=_0x5d4ae1;return this['_roomMembers$'][_0x4bb13e(0x3c9)]();}['dispose'](){const _0x62e7c0=_0x5d4ae1;super[_0x62e7c0(0x26d)](),this['_cursorInfo$'][_0x62e7c0(0x2b1)](new Map()),this['_cursorInfo$']['complete'](),this[_0x62e7c0(0x184)][_0x62e7c0(0x2b1)]([]),this[_0x62e7c0(0x184)]['complete']();}['init'](){const _0x33b177=_0x5d4ae1;this[_0x33b177(0x3c0)]||(this[_0x33b177(0x3c0)]=!0x0,this[_0x33b177(0x375)]['sessionStatus$'][_0x33b177(0x272)](_0xf632fb['takeUntil'](this[_0x33b177(0x40c)]))['subscribe'](_0x5ea7ad=>{const _0x2f59c8=_0x33b177;_0x5ea7ad===_0x3ea00b[_0x2f59c8(0x358)]?this[_0x2f59c8(0x169)]():this[_0x2f59c8(0x40f)]();}),this[_0x33b177(0x375)][_0x33b177(0xf0)][_0x33b177(0x272)](_0xf632fb[_0x33b177(0x360)](this[_0x33b177(0x40c)]))[_0x33b177(0x41c)](_0x547776=>{const _0x28f1b0=_0x33b177,_0x2b647e=_0x547776[_0x28f1b0(0x2f5)];_0x2b647e===_0x1aa573['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x28f1b0(0x24d)](_0x547776),_0x2b647e===_0x1aa573[_0x28f1b0(0x168)][_0x28f1b0(0xe9)]&&this[_0x28f1b0(0x3f8)](_0x547776);}),this[_0x33b177(0x411)](),this['disposeWithMe'](this['_commandService'][_0x33b177(0x281)](_0x153928=>{const _0x2818ac=_0x33b177;if(this[_0x2818ac(0x2ff)]&&_0x153928['id']===_0x213e0a[_0x2818ac(0x335)]['id']&&_0x153928[_0x2818ac(0x121)][_0x2818ac(0x386)]===this[_0x2818ac(0x306)]){const _0x732950=_0x153928[_0x2818ac(0x121)];this[_0x2818ac(0x334)](_0x732950[_0x2818ac(0x486)],_0x732950[_0x2818ac(0x10c)][0x0]);}})));}[_0x5d4ae1(0x24d)](_0x132226){const _0x32f2ac=_0x5d4ae1;var _0x2407ae,_0x449781;const {memberID:_0x542627,selection:_0x228835}=_0x132226['data'],{sheetName:_0x5b72d8,range:_0x504707}=_0x124410[_0x32f2ac(0x1dd)](_0x228835),_0x22011b={'name':(_0x449781=(_0x2407ae=this[_0x32f2ac(0xe7)][_0x32f2ac(0x233)](this['unitID'],_0x542627))==null?void 0x0:_0x2407ae[_0x32f2ac(0x295)])!=null?_0x449781:'Unknown\x20user','range':this[_0x32f2ac(0x459)](_0x5b72d8,_0x504707),'sheetID':_0x5b72d8,'color':this[_0x32f2ac(0xfe)]['assignAColorForMemberID'](_0x542627),'selection':_0x228835},_0x52ef0f=this[_0x32f2ac(0x27c)];_0x52ef0f[_0x32f2ac(0x36b)](_0x542627,_0x22011b),this[_0x32f2ac(0x15c)][_0x32f2ac(0x2b1)](_0x52ef0f);}[_0x5d4ae1(0x3f8)](_0x297029){const _0x440614=_0x5d4ae1,{memberID:_0xfb0864}=_0x297029[_0x440614(0x12b)],_0x511db4=this[_0x440614(0x27c)];_0x511db4['delete'](_0xfb0864),this[_0x440614(0x15c)][_0x440614(0x2b1)](_0x511db4);}['_getMergeRange'](_0x43f9b8,_0x5323c8){const _0x17b1c9=_0x5d4ae1;var _0x116a10,_0x2d58b9;const _0x6339bb=(_0x2d58b9=(_0x116a10=this[_0x17b1c9(0x2aa)][_0x17b1c9(0x3b7)](this[_0x17b1c9(0x306)]))==null?void 0x0:_0x116a10[_0x17b1c9(0x230)](_0x43f9b8))==null?void 0x0:_0x2d58b9['getMergeData']();return(_0x6339bb==null?void 0x0:_0x6339bb[_0x17b1c9(0x481)](_0x4f9703=>_0x1c7e0a['Rectangle'][_0x17b1c9(0x197)](_0x4f9703,_0x5323c8)))||_0x5323c8;}['_onRefRangeChange'](){const _0x5e4a1d=_0x5d4ae1,_0x5a3a4f=new _0x1c7e0a[(_0x5e4a1d(0x2da))](),_0x3d3bee=_0x17549d(),_0x1320f7=()=>{const _0x478159=_0x5e4a1d;_0x5a3a4f[_0x478159(0x26d)]();const _0x52571f=(_0x300b9,_0xcdeb48,_0x494135,_0x516470)=>{const _0x49236a=_0x478159;let _0x3762ff=[];switch(_0x300b9['id']){case _0x213e0a[_0x49236a(0xef)][_0x49236a(0x242)]:{_0x3762ff=_0x213e0a[_0x49236a(0x241)](_0x300b9,_0x516470);break;}case _0x213e0a[_0x49236a(0xef)][_0x49236a(0x26f)]:{_0x3762ff=_0x213e0a[_0x49236a(0x1c5)](_0x300b9,_0x516470);break;}case _0x213e0a[_0x49236a(0xef)][_0x49236a(0x138)]:{_0x3762ff=_0x213e0a[_0x49236a(0x18f)](_0x300b9,_0x516470);break;}case _0x213e0a[_0x49236a(0xef)][_0x49236a(0x482)]:{_0x3762ff=_0x213e0a[_0x49236a(0x2c2)](_0x300b9,_0x516470);break;}case _0x213e0a[_0x49236a(0xef)][_0x49236a(0x22c)]:{_0x3762ff=_0x213e0a['handleInsertRangeMoveRight'](_0x300b9,_0x516470);break;}case _0x213e0a[_0x49236a(0xef)][_0x49236a(0x2ee)]:{_0x3762ff=_0x213e0a[_0x49236a(0x245)](_0x300b9,_0x516470);break;}case _0x213e0a[_0x49236a(0xef)]['MoveRangeCommandId']:{_0x3762ff=_0x213e0a[_0x49236a(0x2ed)](_0x300b9,_0x516470);break;}case _0x213e0a[_0x49236a(0xef)][_0x49236a(0x1cd)]:{_0x3762ff=_0x213e0a[_0x49236a(0x32a)](_0x300b9,_0x516470);break;}case _0x213e0a['EffectRefRangId'][_0x49236a(0x398)]:{_0x3762ff=_0x213e0a['handleIRemoveRow'](_0x300b9,_0x516470);break;}}const _0x3bd6cd=_0x213e0a['runRefRangeMutations'](_0x3762ff,_0x516470),_0x249579=this[_0x49236a(0x27c)][_0x49236a(0xec)](_0xcdeb48);if(_0x249579&&_0x3bd6cd){const _0x202af3={..._0x249579,'range':_0x3bd6cd};this[_0x49236a(0x27c)][_0x49236a(0x36b)](_0xcdeb48,_0x202af3),_0x3d3bee(()=>{const _0x2fc874=_0x49236a,_0x442384=this[_0x2fc874(0x436)][_0x2fc874(0x460)](_0x3bd6cd,_0x1d6e32=>(_0x442384[_0x2fc874(0x26d)](),_0x52571f(_0x1d6e32,_0xcdeb48,_0x494135,_0x3bd6cd)));_0x5a3a4f[_0x2fc874(0x3b0)](_0x442384);});}return{'redos':[],'undos':[]};};this[_0x478159(0x27c)][_0x478159(0x32c)]((_0x159d4d,_0x18ffa1)=>{const _0x2d5dd9=_0x478159,{range:_0x15f65d,sheetID:_0xec1173}=_0x159d4d,_0x24b075=this[_0x2d5dd9(0x436)][_0x2d5dd9(0x460)](_0x15f65d,_0x2b3d7c=>(_0x24b075[_0x2d5dd9(0x26d)](),_0x52571f(_0x2b3d7c,_0x18ffa1,_0xec1173,_0x15f65d)));_0x5a3a4f['add'](_0x24b075);});};this[_0x5e4a1d(0xf2)](_0x1c7e0a[_0x5e4a1d(0x2e6)](this[_0x5e4a1d(0x15c)][_0x5e4a1d(0x41c)](()=>{_0x1320f7();})));}[_0x5d4ae1(0x169)](){const _0x10ad67=_0x5d4ae1;var _0x2819cb,_0x3155c9;if(this[_0x10ad67(0x2ff)]=!0x0,((_0x2819cb=this[_0x10ad67(0x2aa)]['getFocusedUnit']())==null?void 0x0:_0x2819cb[_0x10ad67(0x37d)]())!==this[_0x10ad67(0x306)])return;const _0x498e46=(_0x3155c9=this[_0x10ad67(0x12f)][_0x10ad67(0xec)](_0x213e0a['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x3155c9[0x0],_0x3205dd=this[_0x10ad67(0x2aa)]['getCurrentUnitForType'](_0x1c7e0a[_0x10ad67(0x22d)]['UNIVER_SHEET'])[_0x10ad67(0x48e)]();_0x498e46&&_0x3205dd&&this[_0x10ad67(0x334)](_0x3205dd[_0x10ad67(0x1ad)](),_0x498e46);}[_0x5d4ae1(0x40f)](){const _0x55d56a=_0x5d4ae1;this[_0x55d56a(0x2ff)]=!0x1;}};_0x5dd597=_0x3b6c51([_0x2e03ec(0x2,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573[_0x5d4ae1(0x38e)])),_0x2e03ec(0x3,_0x4fa573[_0x5d4ae1(0x274)](_0x1157e2)),_0x2e03ec(0x4,_0x4fa573[_0x5d4ae1(0x274)](_0x1fece3)),_0x2e03ec(0x5,_0x1c7e0a[_0x5d4ae1(0x2e9)]),_0x2e03ec(0x6,_0x1c7e0a[_0x5d4ae1(0x264)]),_0x2e03ec(0x7,_0x4fa573['Inject'](_0x213e0a[_0x5d4ae1(0x3fa)]))],_0x5dd597);var _0x166380=Object[_0x5d4ae1(0x428)],_0x737cef=Object['getOwnPropertyDescriptor'],_0x11e617=(_0x2deaf1,_0x1453ea,_0x32aedd,_0x3b7b6a)=>{const _0x111ec9=_0x5d4ae1;for(var _0x3658f7=_0x3b7b6a>0x1?void 0x0:_0x3b7b6a?_0x737cef(_0x1453ea,_0x32aedd):_0x1453ea,_0x1575de=_0x2deaf1[_0x111ec9(0x30d)]-0x1,_0x7508a2;_0x1575de>=0x0;_0x1575de--)(_0x7508a2=_0x2deaf1[_0x1575de])&&(_0x3658f7=(_0x3b7b6a?_0x7508a2(_0x1453ea,_0x32aedd,_0x3658f7):_0x7508a2(_0x3658f7))||_0x3658f7);return _0x3b7b6a&&_0x3658f7&&_0x166380(_0x1453ea,_0x32aedd,_0x3658f7),_0x3658f7;},_0x2ef89c=(_0xdf9cf5,_0xb8e713)=>(_0x134d22,_0x1046a9)=>_0xb8e713(_0x134d22,_0x1046a9,_0xdf9cf5);const _0xf12456=0x12c,_0x45c084=0x64;let _0x53f585=class extends _0x1c7e0a[_0x5d4ae1(0x2bb)]{constructor(_0x4e14ed,_0xb0a48,_0x3e4785,_0x1578b2,_0x4a652d,_0x2876c1,_0x3dae39,_0x4732bf,_0x246c31){const _0x56a7fb=_0x5d4ae1;super(),_0x2308c9(this,_0x56a7fb(0x2ff),!0x1),_0x2308c9(this,_0x56a7fb(0x3c0),!0x1),_0x2308c9(this,_0x56a7fb(0x15c),new _0xf632fb[(_0x56a7fb(0x195))](new Map())),_0x2308c9(this,'cursorInfo$',this[_0x56a7fb(0x15c)][_0x56a7fb(0x1b6)]()),_0x2308c9(this,_0x56a7fb(0x184),new _0xf632fb[(_0x56a7fb(0x195))]([])),_0x2308c9(this,_0x56a7fb(0xbe),this[_0x56a7fb(0x184)][_0x56a7fb(0x272)](_0xf632fb[_0x56a7fb(0x441)](_0xf12456))),_0x2308c9(this,_0x56a7fb(0x334),_0x3c7f92(_0x69d68e=>{const _0x1ec312=_0x56a7fb,_0x1ae93a={'eventID':_0x1aa573[_0x1ec312(0x168)][_0x1ec312(0x3d0)],'data':{'unitID':this[_0x1ec312(0x306)],'memberID':this['_session'][_0x1ec312(0x412)](),'selection':_0x566a5f(_0x69d68e)}};this[_0x1ec312(0x375)]['send'](_0x1ae93a,this[_0x1ec312(0x306)]);},_0x45c084)),(this['unitID']=_0x4e14ed,this['_session']=_0xb0a48,this[_0x56a7fb(0x12f)]=_0x3e4785,this[_0x56a7fb(0xfe)]=_0x1578b2,this['_memberService']=_0x4a652d,this['_syncEditingCollabCursorService']=_0x2876c1,this[_0x56a7fb(0x143)]=_0x3dae39,this['_univerInstanceService']=_0x4732bf,this[_0x56a7fb(0x28d)]=_0x246c31);}get[_0x5d4ae1(0x27c)](){const _0x4b0d6e=_0x5d4ae1;return this[_0x4b0d6e(0x15c)]['getValue']();}get[_0x5d4ae1(0x31c)](){const _0x28fc6e=_0x5d4ae1;return this[_0x28fc6e(0x184)][_0x28fc6e(0x3c9)]();}['dispose'](){const _0x4fc00b=_0x5d4ae1;super['dispose'](),this[_0x4fc00b(0x15c)][_0x4fc00b(0x2b1)](new Map()),this[_0x4fc00b(0x15c)]['complete'](),this[_0x4fc00b(0x184)][_0x4fc00b(0x2b1)]([]),this[_0x4fc00b(0x184)][_0x4fc00b(0x35f)]();}[_0x5d4ae1(0x2d7)](){const _0x1d5194=_0x5d4ae1;this[_0x1d5194(0x3c0)]||(this[_0x1d5194(0x3c0)]=!0x0,this[_0x1d5194(0x375)]['sessionStatus$'][_0x1d5194(0x272)](_0xf632fb['takeUntil'](this['dispose$']))[_0x1d5194(0x41c)](_0x21ae68=>{const _0x5d5e67=_0x1d5194;_0x21ae68===_0x3ea00b[_0x5d5e67(0x358)]?this[_0x5d5e67(0x169)]():this[_0x5d5e67(0x40f)]();}),this[_0x1d5194(0x375)]['event$']['pipe'](_0xf632fb[_0x1d5194(0x360)](this['dispose$']))[_0x1d5194(0x41c)](_0x3c90d5=>{const _0x1d0ee2=_0x1d5194,_0x9ace35=_0x3c90d5[_0x1d0ee2(0x2f5)];_0x9ace35===_0x1aa573[_0x1d0ee2(0x168)]['UPDATE_CURSOR']&&this[_0x1d0ee2(0x24d)](_0x3c90d5),_0x9ace35===_0x1aa573[_0x1d0ee2(0x168)][_0x1d0ee2(0xe9)]&&this[_0x1d0ee2(0x3f8)](_0x3c90d5);}),this['disposeWithMe'](this[_0x1d5194(0x28d)][_0x1d5194(0x281)](_0x4076ec=>{const _0x197edf=_0x1d5194,_0x4ae540=_0x4076ec[_0x197edf(0x121)];_0x4ae540!=null&&this[_0x197edf(0x2ff)]&&_0x4076ec['id']===_0x1e7311[_0x197edf(0x3ca)]['id']&&_0x4ae540[_0x197edf(0x386)]===this['unitID']&&_0x4ae540[_0x197edf(0x141)]===!0x1&&this['_updateLocalCursor'](_0x4ae540[_0x197edf(0x446)]);})),this[_0x1d5194(0x224)][_0x1d5194(0x38f)][_0x1d5194(0x272)](_0xf632fb[_0x1d5194(0x360)](this['dispose$']))[_0x1d5194(0x41c)](_0x10897d=>{const _0x2cc422=_0x1d5194;if((_0x10897d==null?void 0x0:_0x10897d[_0x2cc422(0x306)])!==this[_0x2cc422(0x306)])return;const _0x3e928c={'eventID':_0x1aa573[_0x2cc422(0x168)][_0x2cc422(0x3d0)],'data':_0x10897d};this[_0x2cc422(0x24d)](_0x3e928c);}),this['disposeWithMe'](this[_0x1d5194(0x28d)][_0x1d5194(0x281)](_0x22794c=>{const _0xd624fb=_0x1d5194;if(_0x22794c[_0xd624fb(0x121)]==null)return;const _0x42a773=_0x22794c[_0xd624fb(0x121)];if(_0x22794c['id']!==_0x1e7311['RichTextEditingMutation']['id']||_0x42a773[_0xd624fb(0x386)]!==this[_0xd624fb(0x306)])return;const _0x5c3d07={'id':_0xd624fb(0xcc),'params':_0x42a773},_0x358498=this['cursorInfo'];for(const [_0x5b164e,_0x2feaf6]of _0x358498){const _0x5a408f={'id':_0xd624fb(0xcc),'params':{'unitId':this[_0xd624fb(0x306)],'actions':null,'textRanges':_0x2feaf6[_0xd624fb(0x446)]}},_0x5e338d=this[_0xd624fb(0x143)][_0xd624fb(0x451)](_0x5c3d07,_0x5a408f,!0x1);if(_0x1aa573[_0xd624fb(0x1ff)](_0x5e338d))throw _0x5e338d['error'];_0x358498[_0xd624fb(0x36b)](_0x5b164e,{..._0x2feaf6,'ranges':_0x5e338d[_0xd624fb(0x374)]['params']['textRanges']});}queueMicrotask(()=>{const _0x3ab901=_0xd624fb;this[_0x3ab901(0x15c)][_0x3ab901(0x2b1)](_0x358498);});})));}[_0x5d4ae1(0x24d)](_0x5abbbb){const _0x2db8f0=_0x5d4ae1;var _0x52fad9,_0xe765d5;const {memberID:_0x2f1492,selection:_0x438bc5}=_0x5abbbb[_0x2db8f0(0x12b)],_0x7b0c4c=_0x4de411(_0x438bc5),_0x2ee1a5=(_0xe765d5=(_0x52fad9=this[_0x2db8f0(0xe7)][_0x2db8f0(0x233)](this[_0x2db8f0(0x306)],_0x2f1492))==null?void 0x0:_0x52fad9[_0x2db8f0(0x295)])!=null?_0xe765d5:'Unknown\x20user',_0x1ad624={'color':this[_0x2db8f0(0xfe)]['assignAColorForMemberID'](_0x2f1492),'name':_0x2ee1a5,'ranges':_0x7b0c4c},_0x753ef5=this['cursorInfo'];_0x753ef5['set'](_0x2f1492,_0x1ad624),this[_0x2db8f0(0x15c)][_0x2db8f0(0x2b1)](_0x753ef5);}[_0x5d4ae1(0x3f8)](_0x2dfea5){const _0x540752=_0x5d4ae1,{memberID:_0x45929a}=_0x2dfea5[_0x540752(0x12b)],_0x325ae0=this[_0x540752(0x27c)];_0x325ae0[_0x540752(0x1f0)](_0x45929a),this[_0x540752(0x15c)][_0x540752(0x2b1)](_0x325ae0);}[_0x5d4ae1(0x169)](){const _0x1c5471=_0x5d4ae1;var _0x3dd90a;if(this[_0x1c5471(0x2ff)]=!0x0,((_0x3dd90a=this[_0x1c5471(0x2aa)][_0x1c5471(0x1cc)]())==null?void 0x0:_0x3dd90a['getUnitId']())!==this[_0x1c5471(0x306)])return;const _0x4977ce=this['_injector'][_0x1c5471(0xec)](_0x1e7311[_0x1c5471(0x1b8)])[_0x1c5471(0x3ec)](),_0x7f99be=_0x4977ce==null?void 0x0:_0x4977ce[_0x1c5471(0x324)](_0x1e7311[_0x1c5471(0x107)]);Array[_0x1c5471(0x31d)](_0x7f99be)&&_0x7f99be['length']>0x0&&this['_updateLocalCursor'](_0x7f99be);}[_0x5d4ae1(0x40f)](){const _0x33c564=_0x5d4ae1;this[_0x33c564(0x2ff)]=!0x1;}};_0x53f585=_0x11e617([_0x2ef89c(0x2,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573[_0x5d4ae1(0x38e)])),_0x2ef89c(0x3,_0x4fa573['Inject'](_0x1157e2)),_0x2ef89c(0x4,_0x4fa573['Inject'](_0x1fece3)),_0x2ef89c(0x5,_0x4fa573['Inject'](_0x22361d)),_0x2ef89c(0x6,_0x1aa573[_0x5d4ae1(0x38a)]),_0x2ef89c(0x7,_0x1c7e0a[_0x5d4ae1(0x2e9)]),_0x2ef89c(0x8,_0x1c7e0a[_0x5d4ae1(0x264)])],_0x53f585);var _0x543cdd=Object[_0x5d4ae1(0x428)],_0x4a12f4=Object['getOwnPropertyDescriptor'],_0x3e9dbc=(_0x434c7b,_0x5c62fc,_0x294ade,_0x4ed261)=>{const _0x4cfd66=_0x5d4ae1;for(var _0x90a997=_0x4ed261>0x1?void 0x0:_0x4ed261?_0x4a12f4(_0x5c62fc,_0x294ade):_0x5c62fc,_0x309c7e=_0x434c7b[_0x4cfd66(0x30d)]-0x1,_0x2d4d46;_0x309c7e>=0x0;_0x309c7e--)(_0x2d4d46=_0x434c7b[_0x309c7e])&&(_0x90a997=(_0x4ed261?_0x2d4d46(_0x5c62fc,_0x294ade,_0x90a997):_0x2d4d46(_0x90a997))||_0x90a997);return _0x4ed261&&_0x90a997&&_0x543cdd(_0x5c62fc,_0x294ade,_0x90a997),_0x90a997;},_0x291f21=(_0x5ce5ad,_0x2feb86)=>(_0x105228,_0x5ad5da)=>_0x2feb86(_0x105228,_0x5ad5da,_0x5ce5ad);let _0x4a2232=class extends _0x1c7e0a['RxDisposable']{constructor(_0x2c7be8,_0x1b0833,_0x5ecfa6){const _0x55aff2=_0x5d4ae1;super(),_0x2308c9(this,'_entities',new Map()),_0x2308c9(this,_0x55aff2(0x25b),new _0xf632fb[(_0x55aff2(0x1b7))]()),(this['_univerInstanceService']=_0x2c7be8,this[_0x55aff2(0x12f)]=_0x1b0833,this[_0x55aff2(0x3f2)]=_0x5ecfa6,this[_0x55aff2(0x3c0)]());}['dispose'](){const _0x5d3401=_0x5d4ae1;super[_0x5d3401(0x26d)](),this[_0x5d3401(0x25b)][_0x5d3401(0x35f)](),this[_0x5d3401(0x3be)]['forEach'](_0x16c494=>_0x16c494[_0x5d3401(0x26d)]());}[_0x5d4ae1(0x14b)](_0x5ac35f){const _0x1013e2=_0x5d4ae1;return this[_0x1013e2(0x3be)][_0x1013e2(0x3d3)](_0x5ac35f)?this[_0x1013e2(0x3be)][_0x1013e2(0xec)](_0x5ac35f)['cursorInfo$']:this[_0x1013e2(0x25b)][_0x1013e2(0x272)](_0xf632fb[_0x1013e2(0x23f)](_0x32546a=>_0x32546a['unitID']===_0x5ac35f),_0xf632fb['switchMap'](_0x40025f=>_0x40025f[_0x1013e2(0x244)]));}[_0x5d4ae1(0x3c0)](){const _0xf0a351=_0x5d4ae1;this[_0xf0a351(0x2aa)]['getTypeOfUnitAdded$'](_0x1c7e0a[_0xf0a351(0x22d)]['UNIVER_SHEET'])['pipe'](_0xf632fb[_0xf0a351(0x360)](this['dispose$']))[_0xf0a351(0x41c)](async _0x5456ba=>{const _0x15dcc5=_0xf0a351,_0xf33230=_0x5456ba[_0x15dcc5(0x37d)](),_0xd49d63=await this['_startSheetCollabCursor'](_0xf33230);this['_entityInit$'][_0x15dcc5(0x2b1)](_0xd49d63),this['_entities'][_0x15dcc5(0x36b)](_0xf33230,_0xd49d63);}),this[_0xf0a351(0x2aa)][_0xf0a351(0x17e)](_0x1c7e0a[_0xf0a351(0x22d)][_0xf0a351(0xe0)])[_0xf0a351(0x272)](_0xf632fb[_0xf0a351(0x360)](this[_0xf0a351(0x40c)]))[_0xf0a351(0x272)](_0xf632fb[_0xf0a351(0x23f)](_0x58987a=>!_0x58987a[_0xf0a351(0x37d)]()[_0xf0a351(0x228)]('__')))['subscribe'](async _0x1bdaeb=>{const _0x4f4160=_0xf0a351,_0x20476d=_0x1bdaeb[_0x4f4160(0x37d)](),_0x25ff42=await this[_0x4f4160(0x472)](_0x20476d);this[_0x4f4160(0x25b)][_0x4f4160(0x2b1)](_0x25ff42),this[_0x4f4160(0x3be)]['set'](_0x20476d,_0x25ff42);}),_0xf632fb[_0xf0a351(0xca)](this[_0xf0a351(0x2aa)][_0xf0a351(0x3a1)](_0x1c7e0a[_0xf0a351(0x22d)]['UNIVER_DOC']),this[_0xf0a351(0x2aa)][_0xf0a351(0x3a1)](_0x1c7e0a[_0xf0a351(0x22d)]['UNIVER_SHEET']))[_0xf0a351(0x272)](_0xf632fb[_0xf0a351(0x360)](this[_0xf0a351(0x40c)]))['subscribe'](_0x4fb312=>{const _0x412c8d=_0xf0a351,_0x4a32bf=_0x4fb312['getUnitId'](),_0x27cc89=this['_entities'][_0x412c8d(0xec)](_0x4a32bf);_0x27cc89&&(_0x27cc89[_0x412c8d(0x26d)](),this[_0x412c8d(0x3be)][_0x412c8d(0x1f0)](_0x4a32bf));});}async[_0x5d4ae1(0x332)](_0x5e8940){const _0x1daab0=_0x5d4ae1,_0x31a04e=await this[_0x1daab0(0x3f2)][_0x1daab0(0x444)](_0x5e8940),_0x2897a1=this[_0x1daab0(0x12f)][_0x1daab0(0xd0)](_0x5dd597,_0x5e8940,_0x31a04e);return _0x2897a1[_0x1daab0(0x2d7)](),_0x2897a1;}async[_0x5d4ae1(0x472)](_0x28de2b){const _0x19cedc=_0x5d4ae1,_0x5e540b=await this['_collabSessionService'][_0x19cedc(0x444)](_0x28de2b),_0x52e42c=this[_0x19cedc(0x12f)]['createInstance'](_0x53f585,_0x28de2b,_0x5e540b);return _0x52e42c['init'](),_0x52e42c;}};_0x4a2232=_0x3e9dbc([_0x1c7e0a[_0x5d4ae1(0x466)](_0x1c7e0a['LifecycleStages'][_0x5d4ae1(0xf4)],_0x4a2232),_0x291f21(0x0,_0x1c7e0a[_0x5d4ae1(0x2e9)]),_0x291f21(0x1,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573['Injector'])),_0x291f21(0x2,_0x4fa573['Inject'](_0x488928[_0x5d4ae1(0x139)]))],_0x4a2232);const _0x77a5c9=0x14,_0x132292=0xc8,_0x5d2668=0x4,_0x18fadf=0x5;function _0x1a7970(_0x21e47d,_0x12ca1b){const _0x2df847=_0x5d4ae1;let {radius:_0x45cb87,width:_0x13e01a,height:_0x33f965}=_0x12ca1b;_0x45cb87=_0x45cb87!=null?_0x45cb87:0x0,_0x13e01a=_0x13e01a!=null?_0x13e01a:0x1e,_0x33f965=_0x33f965!=null?_0x33f965:0x1e;let _0xb2ab9f=0x0,_0x42f693=0x0,_0x215614=0x0;_0xb2ab9f=_0x42f693=_0x215614=Math[_0x2df847(0x194)](_0x45cb87,_0x13e01a/0x2,_0x33f965/0x2),_0x21e47d[_0x2df847(0x40a)](),_0x21e47d[_0x2df847(0x2c3)](_0xb2ab9f,0x0),_0x21e47d[_0x2df847(0x43e)](_0x13e01a-_0x42f693,0x0),_0x21e47d['arc'](_0x13e01a-_0x42f693,_0x42f693,_0x42f693,Math['PI']*0x3/0x2,0x0,!0x1),_0x21e47d[_0x2df847(0x43e)](_0x13e01a,_0x33f965-_0x215614),_0x21e47d[_0x2df847(0x15e)](_0x13e01a-_0x215614,_0x33f965-_0x215614,_0x215614,0x0,Math['PI']/0x2,!0x1),_0x21e47d[_0x2df847(0x43e)](0x0,_0x33f965),_0x21e47d[_0x2df847(0x43e)](0x0,_0xb2ab9f),_0x21e47d[_0x2df847(0x15e)](_0xb2ab9f,_0xb2ab9f,_0xb2ab9f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x21e47d[_0x2df847(0x267)](),_0x12ca1b[_0x2df847(0xd2)]&&(_0x21e47d[_0x2df847(0xea)](),_0x21e47d['fillStyle']=_0x12ca1b[_0x2df847(0xd2)],_0x12ca1b[_0x2df847(0x47a)]===_0x2df847(0xd4)?_0x21e47d['fill'](_0x2df847(0xd4)):_0x21e47d[_0x2df847(0xd2)](),_0x21e47d[_0x2df847(0x1a4)]());}class _0x278a01 extends _0x5ae3fd[_0x5d4ae1(0x351)]{constructor(_0x2c2de8,_0x3b388b){const _0x3a4f96=_0x5d4ae1;super(_0x2c2de8,_0x3b388b),_0x2308c9(this,'color'),_0x2308c9(this,'text'),(this[_0x3a4f96(0x1b3)]=_0x3b388b==null?void 0x0:_0x3b388b[_0x3a4f96(0x1b3)],this['text']=_0x3b388b==null?void 0x0:_0x3b388b[_0x3a4f96(0x3f1)]);}static[_0x5d4ae1(0x2d2)](_0x40dce4,_0x59d27){const _0x126fd1=_0x5d4ae1,{text:_0x4f096d,color:_0x2d2d2b}=_0x59d27;_0x40dce4['save'](),_0x40dce4[_0x126fd1(0x235)]=_0x126fd1(0x424);const _0x4aa0c5=_0x40dce4[_0x126fd1(0x44f)](_0x4f096d)['width'],_0x5e7090=Math[_0x126fd1(0x194)](_0x4aa0c5+0x2*_0x5d2668,_0x132292);_0x1a7970(_0x40dce4,{'height':_0x77a5c9,'radius':0x4,'width':_0x5e7090,'fill':_0x2d2d2b,'evented':!0x1}),_0x40dce4['fillStyle']=_0x126fd1(0x3c4);const _0x5b7ebe=_0x5d2668,_0xc68c5f=_0x77a5c9-_0x18fadf,_0x485c65=_0x132292-0x2*_0x5d2668;if(_0x4aa0c5>_0x485c65){let _0x423158='',_0x2a61e4=0x0;for(const _0xa30bd1 of _0x4f096d){const _0x6f0e8e=_0x40dce4[_0x126fd1(0x44f)](_0xa30bd1)['width'];if(_0x2a61e4+_0x6f0e8e<=_0x485c65-_0x40dce4[_0x126fd1(0x44f)](_0x126fd1(0x305))[_0x126fd1(0x172)])_0x423158+=_0xa30bd1,_0x2a61e4+=_0x6f0e8e;else{_0x423158+=_0x126fd1(0x305);break;}}_0x40dce4[_0x126fd1(0x3c8)](_0x423158,_0x5b7ebe,_0xc68c5f);}else _0x40dce4[_0x126fd1(0x3c8)](_0x4f096d,_0x5b7ebe,_0xc68c5f);_0x40dce4[_0x126fd1(0x1a4)]();}[_0x5d4ae1(0x1c4)](_0x2aa0a7){const _0x163673=_0x5d4ae1;_0x278a01[_0x163673(0x2d2)](_0x2aa0a7,this);}}const _0x34928e=0x1,_0x1feebb=1.5;class _0x47a450 extends _0x5ae3fd[_0x5d4ae1(0x351)]{constructor(_0x4be9fa,_0x53988e){const _0xabe596=_0x5d4ae1;super(_0x4be9fa,_0x53988e),_0x2308c9(this,_0xabe596(0x469)),_0x2308c9(this,'_hovered',!0x1),_0x2308c9(this,'_range'),_0x2308c9(this,_0xabe596(0x40d),''),_0x2308c9(this,_0xabe596(0x431),_0xabe596(0x45c)),(_0x53988e&&this[_0xabe596(0x474)](_0x53988e),this['onPointerEnter$'][_0xabe596(0x39d)](()=>this[_0xabe596(0x474)]({'hovered':!0x0})),this[_0xabe596(0x10e)][_0xabe596(0x39d)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x5d4ae1(0x474)](_0x4cf777){const _0x1d5cbd=_0x5d4ae1;var _0x534d26,_0x21b1bf,_0x4dbdc5,_0x4f0d5b,_0x369d6e;this['_color']=(_0x534d26=_0x4cf777[_0x1d5cbd(0x1b3)])!=null?_0x534d26:this[_0x1d5cbd(0x469)],this['_hovered']=(_0x21b1bf=_0x4cf777[_0x1d5cbd(0x25c)])!=null?_0x21b1bf:this[_0x1d5cbd(0x2a1)],this['_range']=(_0x4dbdc5=_0x4cf777[_0x1d5cbd(0x1d9)])!=null?_0x4dbdc5:this['_range'],this[_0x1d5cbd(0x40d)]=(_0x4f0d5b=_0x4cf777[_0x1d5cbd(0x295)])!=null?_0x4f0d5b:this['_name'],this[_0x1d5cbd(0x431)]=(_0x369d6e=_0x4cf777[_0x1d5cbd(0x142)])!=null?_0x369d6e:this['_labelPosition'],this[_0x1d5cbd(0x465)]({'width':_0x4cf777[_0x1d5cbd(0x172)],'height':_0x4cf777[_0x1d5cbd(0x3eb)]});}['onMouseMove'](_0xf7e4f9){const _0x2771f9=_0x5d4ae1,{row:_0x3c50f3,column:_0x4c4ebf}=_0xf7e4f9;if(_0x3c50f3>=this[_0x2771f9(0xdd)][_0x2771f9(0x479)]&&_0x3c50f3<=this[_0x2771f9(0xdd)][_0x2771f9(0x356)]&&_0x4c4ebf>=this[_0x2771f9(0xdd)][_0x2771f9(0x3bd)]&&_0x4c4ebf<=this[_0x2771f9(0xdd)][_0x2771f9(0x3b3)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x2771f9(0x474)]({'hovered':!0x1});}[_0x5d4ae1(0x333)](_0x50ad02){return!0x1;}[_0x5d4ae1(0x1c4)](_0x2c94e4){const _0x240995=_0x5d4ae1;_0x5ae3fd[_0x240995(0x146)]['drawWith'](_0x2c94e4,{'width':this[_0x240995(0x172)],'height':this[_0x240995(0x3eb)],'strokeWidth':_0x1feebb,'stroke':this['_color'],'evented':!0x1}),this['_hovered']&&(_0x2c94e4[_0x240995(0xea)](),_0x2c94e4[_0x240995(0x3b6)](0x1,0x0,0x0,0x1,this[_0x240995(0x172)],this['_labelPosition']===_0x240995(0x426)?0x0:-_0x77a5c9),_0x278a01[_0x240995(0x2d2)](_0x2c94e4,{'text':this[_0x240995(0x40d)],'color':this['_color']}),_0x2c94e4[_0x240995(0x1a4)]());}}var _0x3efec7=Object['defineProperty'],_0x441970=Object[_0x5d4ae1(0x23a)],_0x12c2e2=(_0x19a9ae,_0x353224,_0x4098cc,_0x5da552)=>{const _0x4ddaa7=_0x5d4ae1;for(var _0xf58cab=_0x5da552>0x1?void 0x0:_0x5da552?_0x441970(_0x353224,_0x4098cc):_0x353224,_0xf17375=_0x19a9ae[_0x4ddaa7(0x30d)]-0x1,_0x3fb166;_0xf17375>=0x0;_0xf17375--)(_0x3fb166=_0x19a9ae[_0xf17375])&&(_0xf58cab=(_0x5da552?_0x3fb166(_0x353224,_0x4098cc,_0xf58cab):_0x3fb166(_0xf58cab))||_0xf58cab);return _0x5da552&&_0xf58cab&&_0x3efec7(_0x353224,_0x4098cc,_0xf58cab),_0xf58cab;},_0x34f3fb=(_0x3d6e4b,_0x43b361)=>(_0x45df90,_0x135362)=>_0x43b361(_0x45df90,_0x135362,_0x3d6e4b);const _0x38c7a6=0x1389;let _0x4c0615=class extends _0x1c7e0a[_0x5d4ae1(0x2bb)]{constructor(_0x549b22,_0x1fcaf5,_0x2fc93b,_0x42134e){const _0x2835f8=_0x5d4ae1;super(),_0x2308c9(this,_0x2835f8(0x421),new Set()),_0x2308c9(this,_0x2835f8(0x208),null),(this[_0x2835f8(0x1f6)]=_0x549b22,this[_0x2835f8(0x2aa)]=_0x1fcaf5,this[_0x2835f8(0x2ce)]=_0x2fc93b,this[_0x2835f8(0x27e)]=_0x42134e,this[_0x2835f8(0x3c0)]());}get['_sheetSkeletonManagerService'](){const _0xd5062c=_0x5d4ae1;return this[_0xd5062c(0x2ce)][_0xd5062c(0x203)](this[_0xd5062c(0x2aa)][_0xd5062c(0x15b)](_0x1c7e0a['UniverInstanceType'][_0xd5062c(0xfd)])[_0xd5062c(0x37d)]())[_0xd5062c(0x3a7)](_0x15965e[_0xd5062c(0x31f)]);}get[_0x5d4ae1(0x106)](){const _0x523eb8=_0x5d4ae1;return this[_0x523eb8(0x2aa)][_0x523eb8(0x15b)](_0x1c7e0a[_0x523eb8(0x22d)]['UNIVER_SHEET'])[_0x523eb8(0x37d)]();}[_0x5d4ae1(0x3c0)](){const _0x4db126=_0x5d4ae1;this[_0x4db126(0x393)][_0x4db126(0x3a0)][_0x4db126(0x272)](_0x2c2667['takeUntil'](this[_0x4db126(0x40c)]),_0x2c2667['switchMap'](_0x381525=>{const _0x16ecea=_0x4db126;if(_0x381525){const _0x31a723=_0x381525[_0x16ecea(0x127)];return _0xf632fb[_0x16ecea(0x3e3)](this[_0x16ecea(0x1f6)]['getCollabCursors$'](this[_0x16ecea(0x106)]),this[_0x16ecea(0x27e)]['currentTheme$'])['pipe'](_0x2c2667[_0x16ecea(0x324)](([_0x17c3ea,_0x3bff40])=>{const _0x4f6b40=_0x16ecea,_0x4569b4=new Map();return _0x17c3ea[_0x4f6b40(0x32c)]((_0x40ee63,_0x2cfdef)=>{const _0x1fa511=_0x4f6b40;if(_0x40ee63[_0x1fa511(0x400)]===_0x31a723){const _0x3e87ea={..._0x40ee63};_0x3e87ea[_0x1fa511(0x1b3)]=_0x3bff40[_0x40ee63['color']],_0x4569b4[_0x1fa511(0x36b)](_0x2cfdef,_0x3e87ea);}}),{'skeleton':_0x381525,'cursors':_0x4569b4};}));}return _0xf632fb['of']({'skeleton':null,'cursors':new Map()});}))[_0x4db126(0x41c)](({skeleton:_0x2920a5,cursors:_0x22b1d4})=>{const _0x2653f7=_0x4db126;this[_0x2653f7(0x1eb)](),_0x2920a5&&this['_updateCollabCursors'](_0x2920a5,_0x22b1d4);}),this['_sheetSkeletonManagerService'][_0x4db126(0x3a0)][_0x4db126(0x41c)](_0x44f626=>{const _0x1b597e=_0x4db126;if(_0x44f626==null)return;const {skeleton:_0x6f4ea8}=_0x44f626,_0x173f7b=this['_renderManagerService']['getRenderById'](this[_0x1b597e(0x106)]),{scene:_0x2f0757}=_0x173f7b;_0x2f0757[_0x1b597e(0x33c)][_0x1b597e(0x39d)](_0x3c7f92(_0x3a62ea=>{const _0x438bda=_0x1b597e;var _0x4e1827,_0xaf7b12;const {offsetX:_0x5830b5,offsetY:_0x23aa45}=_0x3a62ea,{x:_0x1b8012,y:_0x440391}=_0x2f0757[_0x438bda(0x12c)](_0x5ae3fd[_0x438bda(0x48c)][_0x438bda(0x2fd)]([_0x5830b5,_0x23aa45])),{scaleX:_0x234259,scaleY:_0x148b3e}=_0x2f0757['getAncestorScale'](),_0x4469dc=_0x2f0757[_0x438bda(0x148)](_0x15965e[_0x438bda(0x1ea)][_0x438bda(0x3dd)]),_0x433122=_0x2f0757[_0x438bda(0x346)](_0x5ae3fd[_0x438bda(0x48c)][_0x438bda(0x2fd)]([_0x1b8012,_0x440391]),_0x4469dc),_0x29d5be=_0x6f4ea8[_0x438bda(0x161)](_0x5830b5,_0x23aa45,_0x234259,_0x148b3e,_0x433122);((_0x4e1827=this[_0x438bda(0x208)])==null?void 0x0:_0x4e1827[_0x438bda(0x387)])===_0x29d5be[_0x438bda(0x387)]&&((_0xaf7b12=this['_lastPointer'])==null?void 0x0:_0xaf7b12['row'])===_0x29d5be[_0x438bda(0xc4)]||this[_0x438bda(0x421)]['forEach'](_0x16af62=>{const _0x8cddc=_0x438bda;_0x16af62[_0x8cddc(0x3bb)](_0x29d5be);});},0x64));});}['_updateCollabCursors'](_0x2e73e5,_0x4466e7){const _0x43aa8d=_0x5d4ae1;var _0x183d00;const _0x2dc53b=(_0x183d00=this[_0x43aa8d(0x393)]['getCurrent']())==null?void 0x0:_0x183d00[_0x43aa8d(0x3af)];if(!_0x2dc53b)return;const _0x430944=this[_0x43aa8d(0x488)]();if(!_0x430944)return;this['_cursors'][_0x43aa8d(0x32c)](_0xb0688a=>{const _0x55b2f4=_0x43aa8d;_0xb0688a[_0x55b2f4(0x3ab)]();});const {scene:_0x488b18}=_0x430944,_0x26293e=_0x312def(Array[_0x43aa8d(0x35b)](_0x4466e7['values']()))[_0x43aa8d(0x324)](_0x15b108=>{const _0x4c5ecf=_0x43aa8d,{color:_0x1438a2,range:_0x19a26b,name:_0x548320,selection:_0x2d7dd0,sheetID:_0x223f1c}=_0x15b108,{startColumn:_0x24a24c,startRow:_0x295fb8,endColumn:_0x1f756e,endRow:_0x22db25}=_0x19a26b,_0x2aae1b=_0x15965e['getCoordByCell'](_0x295fb8,_0x24a24c,_0x488b18,_0x2dc53b),_0x1cb99d=_0x15965e['getCoordByCell'](_0x22db25,_0x1f756e,_0x488b18,_0x2dc53b),{columnHeaderHeightAndMarginTop:_0x4aa81f}=_0x2dc53b,{startX:_0x5ada48,startY:_0x35997e}=_0x2aae1b,{endX:_0x49bca8,endY:_0x5de041}=_0x1cb99d,_0x4f939b=_0x49bca8-_0x5ada48,_0x70d64c=_0x5de041-_0x35997e,_0x142362={'labelPosition':_0x35997e-_0x4aa81f>=_0x77a5c9?_0x4c5ecf(0x45c):_0x4c5ecf(0x426),'sheetID':_0x223f1c,'range':_0x19a26b,'color':_0x1438a2,'name':_0x548320,'selection':_0x2d7dd0,'left':_0x5ada48,'top':_0x35997e,'width':_0x4f939b,'height':_0x70d64c,'evented':!0x1,'zIndex':_0x38c7a6};return new _0x47a450(_0x548320,_0x142362);});_0x488b18[_0x43aa8d(0x219)](_0x26293e,_0x34928e),this[_0x43aa8d(0x421)]=new Set(_0x26293e);}[_0x5d4ae1(0x1eb)](){const _0x2b7dd8=_0x5d4ae1;var _0xb9fbaa;(_0xb9fbaa=this[_0x2b7dd8(0x421)])==null||_0xb9fbaa[_0x2b7dd8(0x32c)](_0x2631e6=>_0x2631e6[_0x2b7dd8(0x26d)]());}[_0x5d4ae1(0x488)](){const _0x3619ba=_0x5d4ae1;return _0x15965e[_0x3619ba(0x3fd)](this['_univerInstanceService'],this[_0x3619ba(0x2ce)]);}};_0x4c0615=_0x12c2e2([_0x1c7e0a[_0x5d4ae1(0x466)](_0x1c7e0a['LifecycleStages'][_0x5d4ae1(0x290)],_0x4c0615),_0x34f3fb(0x0,_0x4fa573[_0x5d4ae1(0x274)](_0x4a2232)),_0x34f3fb(0x1,_0x1c7e0a[_0x5d4ae1(0x2e9)]),_0x34f3fb(0x2,_0x5ae3fd['IRenderManagerService']),_0x34f3fb(0x3,_0x4fa573['Inject'](_0x1c7e0a[_0x5d4ae1(0x12d)]))],_0x4c0615);function _0x312def(_0x4cd686){const _0x56c27f=_0x5d4ae1,_0x4399c7=new Map();return _0x4cd686[_0x56c27f(0x32c)](_0x3380a6=>{const _0x25ec86=_0x56c27f;if(_0x4399c7[_0x25ec86(0x3d3)](_0x3380a6[_0x25ec86(0x2f2)])){const _0x2e0b20=_0x4399c7[_0x25ec86(0xec)](_0x3380a6[_0x25ec86(0x2f2)]);_0x2e0b20[_0x25ec86(0x295)]+=',\x20'+_0x3380a6[_0x25ec86(0x295)];}else _0x4399c7[_0x25ec86(0x36b)](_0x3380a6[_0x25ec86(0x2f2)],_0x3380a6);}),Array[_0x56c27f(0x35b)](_0x4399c7[_0x56c27f(0x275)]());}var _0x4e0d09=function(){const _0x287976=_0x5d4ae1;return _0x4e0d09=Object[_0x287976(0x2dc)]||function(_0x1e1659){const _0x33c099=_0x287976;for(var _0x9181ef,_0x3eea26=0x1,_0xbad8c=arguments['length'];_0x3eea26<_0xbad8c;_0x3eea26++){_0x9181ef=arguments[_0x3eea26];for(var _0x13d77f in _0x9181ef)Object['prototype'][_0x33c099(0x2d8)][_0x33c099(0xb1)](_0x9181ef,_0x13d77f)&&(_0x1e1659[_0x13d77f]=_0x9181ef[_0x13d77f]);}return _0x1e1659;},_0x4e0d09[_0x287976(0x249)](this,arguments);},_0x24e9a0=function(_0x179e7b,_0x210384){const _0x612b7d=_0x5d4ae1;var _0x4e8e23={};for(var _0x1c881f in _0x179e7b)Object[_0x612b7d(0x321)][_0x612b7d(0x2d8)][_0x612b7d(0xb1)](_0x179e7b,_0x1c881f)&&_0x210384[_0x612b7d(0x3d4)](_0x1c881f)<0x0&&(_0x4e8e23[_0x1c881f]=_0x179e7b[_0x1c881f]);if(_0x179e7b!=null&&typeof Object[_0x612b7d(0x43d)]==_0x612b7d(0x37f)){for(var _0x4c099a=0x0,_0x1c881f=Object[_0x612b7d(0x43d)](_0x179e7b);_0x4c099a<_0x1c881f[_0x612b7d(0x30d)];_0x4c099a++)_0x210384['indexOf'](_0x1c881f[_0x4c099a])<0x0&&Object[_0x612b7d(0x321)]['propertyIsEnumerable']['call'](_0x179e7b,_0x1c881f[_0x4c099a])&&(_0x4e8e23[_0x1c881f[_0x4c099a]]=_0x179e7b[_0x1c881f[_0x4c099a]]);}return _0x4e8e23;},_0x33e1ca=_0x4e1c10['forwardRef'](function(_0x2a4550,_0x5ae4d1){const _0x59d0e3=_0x5d4ae1;var _0x4cea34=_0x2a4550[_0x59d0e3(0x199)],_0x515cad=_0x2a4550['id'],_0x3457ce=_0x2a4550[_0x59d0e3(0x2b8)],_0x504c6c=_0x2a4550[_0x59d0e3(0x47c)],_0x48ab5f=_0x24e9a0(_0x2a4550,[_0x59d0e3(0x199),'id',_0x59d0e3(0x2b8),'extend']),_0x10eaf0='univerjs-icon\x20univerjs-icon-'['concat'](_0x515cad,'\x20')[_0x59d0e3(0x109)](_0x3457ce||'')[_0x59d0e3(0x373)](),_0x240481=_0x4e1c10[_0x59d0e3(0x2e4)]('_'['concat'](_0x50cb67()));return _0x4e5600(_0x4cea34,''[_0x59d0e3(0x109)](_0x515cad),{'defIds':_0x4cea34['defIds'],'idSuffix':_0x240481[_0x59d0e3(0x246)]},_0x4e0d09({'ref':_0x5ae4d1,'className':_0x10eaf0},_0x48ab5f),_0x504c6c);});function _0x4e5600(_0x29ab5c,_0x5a0101,_0x324f93,_0x29acb9,_0x4d1e64){const _0x57da6e=_0x5d4ae1;return _0x4e1c10[_0x57da6e(0x177)](_0x29ab5c[_0x57da6e(0x1a9)],_0x4e0d09(_0x4e0d09({'key':_0x5a0101},_0x32234d(_0x29ab5c,_0x324f93,_0x4d1e64)),_0x29acb9),(_0x4407d2(_0x29ab5c,_0x324f93)[_0x57da6e(0x33a)]||[])[_0x57da6e(0x324)](function(_0x3b0c4f,_0x7074cc){const _0x2d5dfc=_0x57da6e;return _0x4e5600(_0x3b0c4f,''[_0x2d5dfc(0x109)](_0x5a0101,'-')['concat'](_0x29ab5c['tag'],'-')[_0x2d5dfc(0x109)](_0x7074cc),_0x324f93,void 0x0,_0x4d1e64);}));}function _0x32234d(_0x124617,_0xc4e85d,_0x465dcb){const _0x5f3a5a=_0x5d4ae1;var _0x2db806=_0x4e0d09({},_0x124617[_0x5f3a5a(0x119)]);_0x465dcb!=null&&_0x465dcb[_0x5f3a5a(0xb8)]&&_0x2db806[_0x5f3a5a(0xd2)]===_0x5f3a5a(0xb8)&&(_0x2db806['fill']=_0x465dcb[_0x5f3a5a(0xb8)]);var _0xc04a6b=_0xc4e85d[_0x5f3a5a(0x1dc)];return!_0xc04a6b||_0xc04a6b['length']===0x0||(_0x124617[_0x5f3a5a(0x1a9)]===_0x5f3a5a(0x359)&&_0x2db806[_0x5f3a5a(0x397)]&&(_0x2db806[_0x5f3a5a(0x397)]=_0x2db806[_0x5f3a5a(0x397)]+_0xc4e85d['idSuffix']),Object[_0x5f3a5a(0x1d2)](_0x2db806)[_0x5f3a5a(0x32c)](function(_0x308dff){const _0x431b7a=_0x5f3a5a;var _0x3e82eb=_0x308dff[0x0],_0x388d82=_0x308dff[0x1];typeof _0x388d82==_0x431b7a(0xbf)&&(_0x2db806[_0x3e82eb]=_0x388d82[_0x431b7a(0x257)](/url\(#(.*)\)/,_0x431b7a(0x13c)[_0x431b7a(0x109)](_0xc4e85d['idSuffix'],')')));})),_0x2db806;}function _0x4407d2(_0x3f8d1d,_0x2694ba){const _0x6d71f9=_0x5d4ae1;var _0x5178d2,_0x190e01=_0x2694ba[_0x6d71f9(0x1dc)];return!_0x190e01||_0x190e01['length']===0x0?_0x3f8d1d:_0x3f8d1d['tag']===_0x6d71f9(0x117)&&(!((_0x5178d2=_0x3f8d1d[_0x6d71f9(0x33a)])===null||_0x5178d2===void 0x0)&&_0x5178d2[_0x6d71f9(0x30d)])?_0x4e0d09(_0x4e0d09({},_0x3f8d1d),{'children':_0x3f8d1d['children'][_0x6d71f9(0x324)](function(_0x59ddf0){const _0x373f68=_0x6d71f9;return typeof _0x59ddf0[_0x373f68(0x119)]['id']=='string'&&_0x190e01&&_0x190e01[_0x373f68(0x3d4)](_0x59ddf0[_0x373f68(0x119)]['id'])>-0x1?_0x4e0d09(_0x4e0d09({},_0x59ddf0),{'attrs':_0x4e0d09(_0x4e0d09({},_0x59ddf0[_0x373f68(0x119)]),{'id':_0x59ddf0[_0x373f68(0x119)]['id']+_0x2694ba[_0x373f68(0x385)]})}):_0x59ddf0;})}):_0x3f8d1d;}function _0x50cb67(){const _0xf34818=_0x5d4ae1;return Math[_0xf34818(0x357)]()['toString'](0x24)['substring'](0x2,0x8);}_0x33e1ca['displayName']=_0x5d4ae1(0x265);var _0x1bef9f={'tag':_0x5d4ae1(0x2f0),'attrs':{'fill':_0x5d4ae1(0x315),'viewBox':_0x5d4ae1(0x115),'width':_0x5d4ae1(0x3f5),'height':_0x5d4ae1(0x3f5)},'children':[{'tag':'g','attrs':{'clipPath':_0x5d4ae1(0x3b1)},'children':[{'tag':_0x5d4ae1(0x445),'attrs':{'stroke':_0x5d4ae1(0x163),'d':_0x5d4ae1(0x291),'strokeLinecap':_0x5d4ae1(0x33e),'strokeLinejoin':_0x5d4ae1(0x33e),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5d4ae1(0x395),'attrs':{'id':_0x5d4ae1(0x11d)},'children':[{'tag':_0x5d4ae1(0x445),'attrs':{'fill':_0x5d4ae1(0x45d),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5d4ae1(0x11d)]},_0x356e22=_0x4e1c10[_0x5d4ae1(0xfb)](function(_0x23c7c9,_0x1579b7){const _0xe99320=_0x5d4ae1;return _0x4e1c10[_0xe99320(0x177)](_0x33e1ca,Object[_0xe99320(0x2dc)]({},_0x23c7c9,{'id':_0xe99320(0x22f),'ref':_0x1579b7,'icon':_0x1bef9f}));});_0x356e22[_0x5d4ae1(0x383)]=_0x5d4ae1(0x1da);var _0x2f0ff7={'tag':'svg','attrs':{'fill':'none','viewBox':_0x5d4ae1(0x37c),'width':_0x5d4ae1(0x3f5),'height':_0x5d4ae1(0x3f5)},'children':[{'tag':'g','attrs':{'clipPath':_0x5d4ae1(0xf1)},'children':[{'tag':_0x5d4ae1(0x445),'attrs':{'stroke':_0x5d4ae1(0x163),'d':_0x5d4ae1(0xbc),'strokeLinecap':_0x5d4ae1(0x33e),'strokeLinejoin':_0x5d4ae1(0x33e),'strokeWidth':1.2}}]},{'tag':_0x5d4ae1(0x117),'attrs':{},'children':[{'tag':_0x5d4ae1(0x395),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x5d4ae1(0x445),'attrs':{'fill':_0x5d4ae1(0x45d),'d':_0x5d4ae1(0xd8),'transform':_0x5d4ae1(0x12a)}}]}]}],'defIds':[_0x5d4ae1(0x18c)]},_0x478f43=_0x4e1c10[_0x5d4ae1(0xfb)](function(_0x390204,_0x5669cf){const _0x256947=_0x5d4ae1;return _0x4e1c10[_0x256947(0x177)](_0x33e1ca,Object[_0x256947(0x2dc)]({},_0x390204,{'id':'on-line-single','ref':_0x5669cf,'icon':_0x2f0ff7}));});_0x478f43[_0x5d4ae1(0x383)]=_0x5d4ae1(0x175);const _0x44897b={'onlineStatusIcon':_0x5d4ae1(0x2c9),'onlineStatusTitle':_0x5d4ae1(0x2f1),'onlineStatus':_0x5d4ae1(0x1d8),'online':_0x5d4ae1(0x391),'offline':'univer-offline'};function _0x585ce5(_0x25ef61){const _0x8c46fd=_0x5d4ae1;switch(_0x25ef61){case _0x340600[_0x8c46fd(0x1e5)]:return _0x8c46fd(0x3ff);case _0x340600['CONFLICT']:return _0x8c46fd(0x348);case _0x340600['FETCH_MISS']:return'collabStatus.fetchMiss';case _0x340600[_0x8c46fd(0x1ec)]:return _0x8c46fd(0xb7);case _0x340600[_0x8c46fd(0x135)]:case _0x340600['AWAITING']:case _0x340600[_0x8c46fd(0x205)]:return _0x8c46fd(0x27f);case _0x340600[_0x8c46fd(0x3ce)]:return _0x8c46fd(0xb3);}}function _0x925375(_0x53c672){const _0x2ce40a=_0x5d4ae1,{status$:_0x46775f}=_0x53c672,_0x32225e=_0x1fdc42[_0x2ce40a(0x1c3)](_0x46775f,_0x340600[_0x2ce40a(0x1ec)]),_0x37a508=_0x8de590[_0x2ce40a(0x1ab)](_0x1c7e0a[_0x2ce40a(0x476)]),_0x19bc0c=_0x32225e!==_0x340600[_0x2ce40a(0x1e5)],_0x5461e8=_0x37a508['t'](_0x585ce5(_0x32225e)),_0x1ebb38=_0x10fbf6(_0x44897b[_0x2ce40a(0x368)],{[_0x44897b[_0x2ce40a(0x216)]]:_0x19bc0c,[_0x44897b[_0x2ce40a(0xf5)]]:!_0x19bc0c}),_0x528f76=_0x19bc0c?_0x4e1c10[_0x2ce40a(0x177)](_0x478f43,null):_0x4e1c10['createElement'](_0x356e22,null);return _0x4e1c10[_0x2ce40a(0x177)](_0x2ce40a(0x103),{'className':_0x1ebb38},_0x4e1c10[_0x2ce40a(0x177)]('div',{'className':_0x44897b[_0x2ce40a(0x399)]},_0x528f76),_0x4e1c10[_0x2ce40a(0x177)](_0x2ce40a(0x103),{'className':_0x44897b[_0x2ce40a(0x280)]},_0x5461e8));}var _0x542489=Object[_0x5d4ae1(0x428)],_0x3abbc2=Object[_0x5d4ae1(0x23a)],_0x4efe60=(_0x4f2933,_0x5a4486,_0x29be38,_0x515d46)=>{const _0x24ac6b=_0x5d4ae1;for(var _0x1f9328=_0x515d46>0x1?void 0x0:_0x515d46?_0x3abbc2(_0x5a4486,_0x29be38):_0x5a4486,_0x2baf76=_0x4f2933[_0x24ac6b(0x30d)]-0x1,_0x74185a;_0x2baf76>=0x0;_0x2baf76--)(_0x74185a=_0x4f2933[_0x2baf76])&&(_0x1f9328=(_0x515d46?_0x74185a(_0x5a4486,_0x29be38,_0x1f9328):_0x74185a(_0x1f9328))||_0x1f9328);return _0x515d46&&_0x1f9328&&_0x542489(_0x5a4486,_0x29be38,_0x1f9328),_0x1f9328;},_0x1bee0f=(_0x544994,_0x123f4d)=>(_0x483984,_0x179da9)=>_0x123f4d(_0x483984,_0x179da9,_0x544994);_0x488928[_0x5d4ae1(0x1c8)]=class extends _0x1c7e0a[_0x5d4ae1(0x284)]{constructor(_0x11657d,_0x359962,_0x24c79d,_0x35cf1d){const _0x1abb62=_0x5d4ae1;super(),_0x2308c9(this,'_status$',new _0xf632fb[(_0x1abb62(0x195))](_0x340600[_0x1abb62(0x1ec)])),(this['_univerInstanceService']=_0x11657d,this[_0x1abb62(0x453)]=_0x359962,this[_0x1abb62(0x12f)]=_0x24c79d,this[_0x1abb62(0x1ce)]=_0x35cf1d,this[_0x1abb62(0x28b)](),this['_initStatusListener']());}[_0x5d4ae1(0x28b)](){const _0x41d2a1=_0x5d4ae1;this['disposeWithMe'](this['_uiPartsService'][_0x41d2a1(0x377)](_0x1fdc42[_0x41d2a1(0x31b)][_0x41d2a1(0x14f)],()=>_0x8de590[_0x41d2a1(0x3e8)](_0x38e0a4({'status$':this[_0x41d2a1(0x2a2)]['asObservable']()}),this[_0x41d2a1(0x12f)])));}[_0x5d4ae1(0xe8)](){const _0x115e02=_0x5d4ae1;this[_0x115e02(0xf2)](_0x1c7e0a[_0x115e02(0x2e6)](this['_univerInstanceService'][_0x115e02(0x114)]['pipe'](_0xf632fb[_0x115e02(0x384)](()=>{const _0x14d482=_0x115e02,_0xde39d7=this[_0x14d482(0x2aa)]['getFocusedUnit']();return _0xde39d7?this[_0x14d482(0x1ce)][_0x14d482(0x1a2)](_0xde39d7[_0x14d482(0x37d)]()):_0xf632fb['of'](null);}),_0xf632fb['switchMap'](_0x52cab1=>_0x52cab1?_0x52cab1[_0x115e02(0x137)]:_0xf632fb['of'](_0x340600[_0x115e02(0x1ec)])))[_0x115e02(0x41c)](_0x4dd995=>{const _0x268821=_0x115e02;this[_0x268821(0x2a2)]['next'](_0x4dd995);})));}},_0x488928[_0x5d4ae1(0x1c8)]=_0x4efe60([_0x1c7e0a['OnLifecycle'](_0x1c7e0a['LifecycleStages'][_0x5d4ae1(0xf4)],_0x488928[_0x5d4ae1(0x1c8)]),_0x1bee0f(0x0,_0x1c7e0a[_0x5d4ae1(0x2e9)]),_0x1bee0f(0x1,_0x1fdc42[_0x5d4ae1(0x327)]),_0x1bee0f(0x2,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573['Injector'])),_0x1bee0f(0x3,_0x4fa573[_0x5d4ae1(0x274)](_0x488928[_0x5d4ae1(0x427)]))],_0x488928['DesktopCollaborationStatusDisplayController']);function _0x38e0a4(_0x26541b){const {status$:_0xa3d11}=_0x26541b;return function(){const _0x1db36e=_0x18a3;return _0x4e1c10[_0x1db36e(0x177)](_0x925375,{'status$':_0xa3d11});};}const _0x6ad376=_0x4fa573[_0x5d4ae1(0x160)](_0x5d4ae1(0x3e4));var _0x546918=Object[_0x5d4ae1(0x428)],_0x4bb036=Object[_0x5d4ae1(0x23a)],_0x2e139e=(_0x4eb0ae,_0x3b24e4,_0x5083ec,_0x4619cc)=>{for(var _0x410a30=_0x4619cc>0x1?void 0x0:_0x4619cc?_0x4bb036(_0x3b24e4,_0x5083ec):_0x3b24e4,_0x10cd80=_0x4eb0ae['length']-0x1,_0x5e9d08;_0x10cd80>=0x0;_0x10cd80--)(_0x5e9d08=_0x4eb0ae[_0x10cd80])&&(_0x410a30=(_0x4619cc?_0x5e9d08(_0x3b24e4,_0x5083ec,_0x410a30):_0x5e9d08(_0x410a30))||_0x410a30);return _0x4619cc&&_0x410a30&&_0x546918(_0x3b24e4,_0x5083ec,_0x410a30),_0x410a30;},_0x8f1551=(_0x2a21c7,_0x13cda9)=>(_0x336b23,_0x5393a2)=>_0x13cda9(_0x336b23,_0x5393a2,_0x2a21c7);_0x488928['DataLoaderController']=class extends _0x1c7e0a['RxDisposable']{constructor(_0x591747,_0x1f5040,_0x1bda38,_0x3d2663,_0x564ad5,_0x2d19b9){const _0x31a4c6=_0x5d4ae1;super(),this[_0x31a4c6(0x3cb)]=_0x591747,this[_0x31a4c6(0x38d)]=_0x1f5040,this[_0x31a4c6(0x28d)]=_0x1bda38,this[_0x31a4c6(0x25a)]=_0x3d2663,this['_snapshotService']=_0x564ad5,_0x2d19b9?_0x2d19b9==null||_0x2d19b9[_0x31a4c6(0x25e)]()[_0x31a4c6(0x394)](()=>this[_0x31a4c6(0x3c0)]()):(this[_0x31a4c6(0x38d)][_0x31a4c6(0x248)](_0x31a4c6(0x3cc),_0x31a4c6(0x26e)),this[_0x31a4c6(0x3c0)]());}async[_0x5d4ae1(0x3c0)](){const _0x51a161=_0x5d4ae1,_0x595d0a=this[_0x51a161(0x3cb)][_0x51a161(0x3b5)](_0x51a161(0x422)),_0x360537=this[_0x51a161(0x3cb)]['getParam']('type');if(!_0x595d0a||!_0x360537){this[_0x51a161(0x38d)][_0x51a161(0x248)]('[DataLoaderController]',_0x51a161(0x155));return;}switch(Number(_0x360537)){case _0x38246c[_0x51a161(0xfd)]:{const _0x4f2dc4=await this['_loadSheet'](_0x595d0a);this[_0x51a161(0x225)](_0x4f2dc4);break;}case _0x38246c[_0x51a161(0xe0)]:{await this['_loadDoc'](_0x595d0a);break;}default:{this[_0x51a161(0x38d)][_0x51a161(0x34d)](_0x51a161(0x3cc),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x5d4ae1(0x225)](_0x3e42e2){const _0x134748=_0x5d4ae1;await this[_0x134748(0x149)](_0x3e42e2),_0x3e42e2[_0x134748(0x2ca)][_0x134748(0x272)](_0xf632fb[_0x134748(0x360)](this[_0x134748(0x40c)]))['subscribe'](_0x2114ee=>{const _0x13cf05=_0x134748;_0x2114ee&&this[_0x13cf05(0x2dd)](_0x2114ee);}),this[_0x134748(0x3cb)][_0x134748(0x118)][_0x134748(0x272)](_0xf632fb[_0x134748(0x360)](this[_0x134748(0x40c)]))[_0x134748(0x41c)](()=>this[_0x134748(0x149)](_0x3e42e2));}['_updateURLWithCurrentState'](_0x3eb885,_0x3aa918=!0x1){const _0x54f0d5=_0x5d4ae1,_0x45a650=this[_0x54f0d5(0x3cb)]['getParam'](_0x54f0d5(0x2be));_0x3eb885[_0x54f0d5(0x1ad)]()!==_0x45a650&&this['_urlService'][_0x54f0d5(0x1e7)](_0x54f0d5(0x2be),_0x3eb885[_0x54f0d5(0x1ad)](),_0x3aa918);}async[_0x5d4ae1(0x149)](_0x57e7a0){const _0x22c1da=_0x5d4ae1;var _0x18e92d;const _0x2c7f89=this[_0x22c1da(0x3cb)][_0x22c1da(0x3b5)](_0x22c1da(0x2be));if(!_0x2c7f89||!_0x57e7a0[_0x22c1da(0x230)](_0x2c7f89)){const _0xb0550=_0x57e7a0['getUnhiddenWorksheets']()[0x0],_0x32785e=_0x57e7a0[_0x22c1da(0x230)](_0xb0550);if(!_0x32785e)return;this[_0x22c1da(0x2dd)](_0x32785e,!0x0),await this[_0x22c1da(0x28d)][_0x22c1da(0x464)](_0x213e0a['SetWorksheetActivateCommand']['id'],{'unitId':_0x57e7a0[_0x22c1da(0x37d)](),'subUnitId':_0xb0550});return;}((_0x18e92d=_0x57e7a0[_0x22c1da(0x48e)]())==null?void 0x0:_0x18e92d[_0x22c1da(0x1ad)]())!==_0x2c7f89&&await this[_0x22c1da(0x28d)][_0x22c1da(0x464)](_0x213e0a[_0x22c1da(0x13d)]['id'],{'unitId':_0x57e7a0[_0x22c1da(0x37d)](),'subUnitId':_0x2c7f89});}async['_loadSheet'](_0x44514d){const _0x52afca=_0x5d4ae1;let _0x1e6235=0x0;const _0x8e32af=await this['_localCacheService']['loadOfflineData'](_0x44514d);return _0x8e32af&&(_0x8e32af['awaitingChangeset']||_0x8e32af[_0x52afca(0x27d)][_0x52afca(0x30d)]!==0x0)&&(_0x1e6235=_0x8e32af[_0x52afca(0x1e1)]),_0x1e6235===0x0&&this['_logService'][_0x52afca(0x248)](_0x52afca(0x3cc),_0x52afca(0x3fb)),this[_0x52afca(0x10f)]['loadSheet'](_0x44514d,_0x1e6235);}async[_0x5d4ae1(0x3b9)](_0x41c0c2){const _0x3ca279=_0x5d4ae1;let _0x4a664d=0x0;const _0x545150=await this[_0x3ca279(0x25a)][_0x3ca279(0x185)](_0x41c0c2);return _0x545150&&(_0x545150[_0x3ca279(0x2ef)]||_0x545150[_0x3ca279(0x27d)]['length']!==0x0)&&(_0x4a664d=_0x545150[_0x3ca279(0x1e1)]),_0x4a664d===0x0&&this['_logService'][_0x3ca279(0x248)](_0x3ca279(0x3cc),_0x3ca279(0x3fb)),this['_snapshotService'][_0x3ca279(0x10a)](_0x41c0c2,_0x4a664d);}},_0x488928[_0x5d4ae1(0x2b6)]=_0x2e139e([_0x1c7e0a['OnLifecycle'](_0x1c7e0a[_0x5d4ae1(0x25f)][_0x5d4ae1(0xf4)],_0x488928[_0x5d4ae1(0x2b6)]),_0x8f1551(0x0,_0x6ad376),_0x8f1551(0x1,_0x1c7e0a[_0x5d4ae1(0x3d7)]),_0x8f1551(0x2,_0x1c7e0a[_0x5d4ae1(0x264)]),_0x8f1551(0x3,_0x4fa573[_0x5d4ae1(0x274)](_0x488928[_0x5d4ae1(0x296)])),_0x8f1551(0x4,_0x4fa573[_0x5d4ae1(0x274)](_0x1aa573[_0x5d4ae1(0x28a)])),_0x8f1551(0x5,_0x4fa573[_0x5d4ae1(0x468)](_0x3c56f8['IRemoteInstanceService']))],_0x488928[_0x5d4ae1(0x2b6)]);var _0xb98cb0=Object[_0x5d4ae1(0x428)],_0x519f14=Object[_0x5d4ae1(0x23a)],_0x2e4d22=(_0x2ee406,_0x52c402,_0x225e6c,_0x45ed6e)=>{const _0x3f67cd=_0x5d4ae1;for(var _0x45fddf=_0x45ed6e>0x1?void 0x0:_0x45ed6e?_0x519f14(_0x52c402,_0x225e6c):_0x52c402,_0x1a406f=_0x2ee406[_0x3f67cd(0x30d)]-0x1,_0x949e3d;_0x1a406f>=0x0;_0x1a406f--)(_0x949e3d=_0x2ee406[_0x1a406f])&&(_0x45fddf=(_0x45ed6e?_0x949e3d(_0x52c402,_0x225e6c,_0x45fddf):_0x949e3d(_0x45fddf))||_0x45fddf);return _0x45ed6e&&_0x45fddf&&_0xb98cb0(_0x52c402,_0x225e6c,_0x45fddf),_0x45fddf;},_0x5a56c5=(_0x5bb76a,_0x14232c)=>(_0x3c3dbc,_0x80d0a2)=>_0x14232c(_0x3c3dbc,_0x80d0a2,_0x5bb76a);const _0x215c68=_0x5d4ae1(0x1ee),_0x207855=_0x5d4ae1(0x437);let _0x38f41e=class extends _0x1c7e0a[_0x5d4ae1(0x284)]{constructor(_0x5e8d40,_0x1625a8){const _0x985495=_0x5d4ae1;super(),this[_0x985495(0x2aa)]=_0x5e8d40,this['_configService']=_0x1625a8,this[_0x985495(0x3c0)]();}['_init'](){const _0xae62e4=_0x5d4ae1;this[_0xae62e4(0xf2)](_0x1c7e0a[_0xae62e4(0x2e6)](this[_0xae62e4(0x2aa)][_0xae62e4(0x114)][_0xae62e4(0x41c)](()=>{const _0x42845f=_0xae62e4;var _0x79afb6;const _0xe94ca9=this[_0x42845f(0x2aa)][_0x42845f(0x1cc)]();let _0x3108d8=(_0x79afb6=this['_configService'][_0x42845f(0x30e)](_0x215c68))!=null?_0x79afb6:_0x207855;_0xe94ca9 instanceof _0x1c7e0a[_0x42845f(0x255)]&&(_0x3108d8=_0xe94ca9[_0x42845f(0x295)]),document['title']=_0x3108d8;})));}};_0x38f41e=_0x2e4d22([_0x1c7e0a[_0x5d4ae1(0x466)](_0x1c7e0a[_0x5d4ae1(0x25f)]['Ready'],_0x38f41e),_0x5a56c5(0x0,_0x1c7e0a[_0x5d4ae1(0x2e9)]),_0x5a56c5(0x1,_0x1c7e0a[_0x5d4ae1(0x13b)])],_0x38f41e);var _0x2dbc5d=Object[_0x5d4ae1(0x428)],_0x235635=Object[_0x5d4ae1(0x23a)],_0x1692bb=(_0x344e55,_0x3396bf,_0x1556e9,_0x3e3636)=>{const _0x6963a5=_0x5d4ae1;for(var _0x10f07b=_0x3e3636>0x1?void 0x0:_0x3e3636?_0x235635(_0x3396bf,_0x1556e9):_0x3396bf,_0x32fcba=_0x344e55[_0x6963a5(0x30d)]-0x1,_0x346136;_0x32fcba>=0x0;_0x32fcba--)(_0x346136=_0x344e55[_0x32fcba])&&(_0x10f07b=(_0x3e3636?_0x346136(_0x3396bf,_0x1556e9,_0x10f07b):_0x346136(_0x10f07b))||_0x10f07b);return _0x3e3636&&_0x10f07b&&_0x2dbc5d(_0x3396bf,_0x1556e9,_0x10f07b),_0x10f07b;},_0x3fc4f5=(_0x3b36,_0x45636a)=>(_0x4839bf,_0x22d2ab)=>_0x45636a(_0x4839bf,_0x22d2ab,_0x3b36);let _0x48a2d0=class{constructor(_0xfaa31a,_0x7aedd0){const _0x53339a=_0x5d4ae1;this[_0x53339a(0x432)]=_0xfaa31a,this[_0x53339a(0x2b9)]=_0x7aedd0;}async[_0x5d4ae1(0x1d0)](_0x362a68,_0x38691f){const _0x458dbb=_0x5d4ae1;var _0x2379f8;const {unitID:_0x5babed,type:_0x5ba38d,revision:_0xf6249f=0x0}=_0x38691f,_0x26a2df=this[_0x458dbb(0x147)]()+'/'+_0x5ba38d+_0x458dbb(0x144)+_0x5babed+_0x458dbb(0x256)+(_0xf6249f===0x1?0x0:_0xf6249f),_0xee58eb=(await this[_0x458dbb(0x2b9)][_0x458dbb(0xec)](_0x26a2df))[_0x458dbb(0x201)],_0x1ea88e=(_0x2379f8=_0xee58eb[_0x458dbb(0xfc)])==null?void 0x0:_0x2379f8[_0x458dbb(0x269)];if(_0x1ea88e){const _0x4044e7=_0x1ea88e==null?void 0x0:_0x1ea88e[_0x458dbb(0xb6)],_0x4d6d26=_0x1c7e0a[_0x458dbb(0x1f3)][_0x458dbb(0x480)](_0x1c7e0a[_0x458dbb(0x41f)](_0x4044e7));_0x1ea88e[_0x458dbb(0xb6)]=_0x4d6d26,Object[_0x458dbb(0x1d2)](_0x1ea88e[_0x458dbb(0xc0)])[_0x458dbb(0x32c)](([,_0x3e290f])=>{const _0x328dcc=_0x458dbb,_0x2769e5=_0x3e290f[_0x328dcc(0xb6)],_0x5e707f=_0x1c7e0a['textEncoder']['encode'](_0x1c7e0a[_0x328dcc(0x41f)](_0x2769e5));_0x3e290f[_0x328dcc(0xb6)]=_0x5e707f;});}return _0xee58eb;}async[_0x5d4ae1(0x3fe)](_0x4bf52f,_0x2d884c){const _0x227a0e=_0x5d4ae1,{unitID:_0x4b5547,type:_0xef4886,blockID:_0x27b21e}=_0x2d884c,_0x2fbdea=this['_getAPIPrefix']()+'/'+_0xef4886+'/unit/'+_0x4b5547+_0x227a0e(0x3e6)+_0x27b21e;return(await this[_0x227a0e(0x2b9)][_0x227a0e(0xec)](_0x2fbdea))['body'];}async[_0x5d4ae1(0xe6)](_0x22b972,_0x593a81){const _0x30d323=_0x5d4ae1,{unitID:_0x3fe3d6,type:_0x12f90b,from:_0x22d1ee,to:_0x3346ef}=_0x593a81,_0x2ec996=this[_0x30d323(0x392)]()+'/'+_0x12f90b+_0x30d323(0x144)+_0x3fe3d6+'/fetchmissing?from='+_0x22d1ee+_0x30d323(0x47d)+_0x3346ef;return(await this[_0x30d323(0x2b9)][_0x30d323(0xec)](_0x2ec996))[_0x30d323(0x201)];}['_getSnapshotAPIPrefix'](){const _0x5209cb=_0x5d4ae1;var _0x59fb6e;return(_0x59fb6e=this[_0x5209cb(0x432)][_0x5209cb(0x30e)](_0x523aed))!=null?_0x59fb6e:this[_0x5209cb(0x392)]();}[_0x5d4ae1(0x392)](){const _0x319265=_0x5d4ae1;var _0x576154;return(_0x576154=this['_configService'][_0x319265(0x30e)](_0x7cbdce))!=null?_0x576154:_0x1b349b;}async[_0x5d4ae1(0x3a6)](_0x485722,_0x5ababa){const _0x40960e=_0x5d4ae1,_0x2844d4=_0x40960e(0x3ad)+_0x5ababa[_0x40960e(0x302)]+_0x40960e(0x144)+_0x5ababa['unitID']+_0x40960e(0x179);return(await this[_0x40960e(0x2b9)][_0x40960e(0xec)](_0x2844d4,{'params':{'resourceId':JSON['stringify'](_0x5ababa[_0x40960e(0x3f3)])}}))[_0x40960e(0x201)];}[_0x5d4ae1(0x303)](){const _0x1128d8=_0x5d4ae1;throw new Error(_0x1128d8(0x443));}[_0x5d4ae1(0x17f)](){const _0x262e29=_0x5d4ae1;throw new Error(_0x262e29(0x443));}[_0x5d4ae1(0x1f7)](){const _0x4aa4ab=_0x5d4ae1;throw new Error(_0x4aa4ab(0x443));}};_0x48a2d0=_0x1692bb([_0x3fc4f5(0x0,_0x1c7e0a[_0x5d4ae1(0x13b)]),_0x3fc4f5(0x1,_0x4fa573[_0x5d4ae1(0x274)](_0x2954d5['HTTPService']))],_0x48a2d0);var _0x562e31=Object['defineProperty'],_0x405d26=Object[_0x5d4ae1(0x23a)],_0x24a5f8=(_0x3c28a1,_0x2e360f,_0x3ae231,_0x13cfa0)=>{const _0x39b3af=_0x5d4ae1;for(var _0x14b91f=_0x13cfa0>0x1?void 0x0:_0x13cfa0?_0x405d26(_0x2e360f,_0x3ae231):_0x2e360f,_0x4f8788=_0x3c28a1[_0x39b3af(0x30d)]-0x1,_0x59c1ea;_0x4f8788>=0x0;_0x4f8788--)(_0x59c1ea=_0x3c28a1[_0x4f8788])&&(_0x14b91f=(_0x13cfa0?_0x59c1ea(_0x2e360f,_0x3ae231,_0x14b91f):_0x59c1ea(_0x14b91f))||_0x14b91f);return _0x13cfa0&&_0x14b91f&&_0x562e31(_0x2e360f,_0x3ae231,_0x14b91f),_0x14b91f;},_0x294599=(_0x364676,_0x398b3a)=>(_0x2f10ee,_0x3497f2)=>_0x398b3a(_0x2f10ee,_0x3497f2,_0x364676);let _0x3b3fce=class extends _0x1c7e0a['LocalUndoRedoService']{constructor(_0x446efc,_0x1a131c,_0x46ae25,_0x1690ed,_0x4407bc){const _0x17e06c=_0x5d4ae1;super(_0x446efc,_0x1a131c,_0x46ae25),this['_transformService']=_0x1690ed,this[_0x17e06c(0x38d)]=_0x4407bc;}[_0x5d4ae1(0x193)](_0x169b18,_0x470c53){const _0x387f03=_0x5d4ae1,_0x433863=this['_getUndoStack'](_0x169b18);if(_0x433863)try{const _0x101270=this[_0x387f03(0x2cf)](_0x433863,_0x470c53);this[_0x387f03(0xd1)](_0x169b18,_0x101270);}catch(_0x2c7369){this[_0x387f03(0x38d)][_0x387f03(0x34d)](_0x387f03(0x3bc),_0x2c7369),this[_0x387f03(0x2bf)](_0x169b18);}const _0x440dc2=this[_0x387f03(0x2c5)](_0x169b18);if(_0x440dc2)try{const _0x324b2b=this[_0x387f03(0x2cf)](_0x440dc2,_0x470c53);this[_0x387f03(0x164)](_0x169b18,_0x324b2b);}catch(_0x7353f6){this[_0x387f03(0x38d)][_0x387f03(0x34d)](_0x7353f6),this[_0x387f03(0x43c)](_0x169b18);}}['_clearUndo'](_0x22f71d){const _0x3b2dec=_0x5d4ae1,_0xcd129a=this['_getUndoStack'](_0x22f71d);_0xcd129a&&(_0xcd129a[_0x3b2dec(0x30d)]=0x0,this['_updateStatus']());}[_0x5d4ae1(0x43c)](_0x4cdfbc){const _0x5a77ce=_0x5d4ae1,_0x50b04c=this[_0x5a77ce(0x2c5)](_0x4cdfbc);_0x50b04c&&(_0x50b04c['length']=0x0,this['_updateStatus']());}[_0x5d4ae1(0xd1)](_0x227feb,_0x450403){const _0x218eeb=_0x5d4ae1;this[_0x218eeb(0x21b)][_0x218eeb(0x36b)](_0x227feb,_0x450403),this[_0x218eeb(0x380)]();}[_0x5d4ae1(0x164)](_0x224b44,_0x422b87){const _0x1101e9=_0x5d4ae1;this[_0x1101e9(0x2b3)][_0x1101e9(0x36b)](_0x224b44,_0x422b87),this[_0x1101e9(0x380)]();}[_0x5d4ae1(0x2cf)](_0x2793e3,_0x1b517f){const _0x37864f=_0x5d4ae1,_0x34e195=[];let _0x4e95f1=_0x1b517f,_0x58f2da=_0x1b517f;for(let _0x151ab6=_0x2793e3[_0x37864f(0x30d)]-0x1;_0x151ab6>=0x0;_0x151ab6--){const {unitID:_0x111ac2,undoMutations:_0x3aec2b,redoMutations:_0x5b7ee5}=_0x2793e3[_0x151ab6],_0x307ba2=this[_0x37864f(0x143)][_0x37864f(0x204)](_0x4e95f1,_0x3aec2b),_0x228c35=this[_0x37864f(0x143)][_0x37864f(0x204)](_0x58f2da,_0x5b7ee5);if(_0x1aa573[_0x37864f(0x166)](_0x307ba2)||_0x1aa573[_0x37864f(0x166)](_0x228c35)){this[_0x37864f(0x38d)]['error']('[CollaborationUndoRedoService]',_0x37864f(0x1d7),_0x307ba2,_0x228c35);break;}_0x4e95f1=_0x307ba2[_0x37864f(0x292)],_0x58f2da=_0x228c35[_0x37864f(0x292)],_0x34e195[_0x37864f(0x21f)]({'unitID':_0x111ac2,'undoMutations':_0x307ba2[_0x37864f(0x374)],'redoMutations':_0x228c35[_0x37864f(0x374)]});}return _0x34e195['reverse']();}};_0x3b3fce=_0x24a5f8([_0x294599(0x0,_0x1c7e0a[_0x5d4ae1(0x2e9)]),_0x294599(0x1,_0x1c7e0a[_0x5d4ae1(0x264)]),_0x294599(0x2,_0x1c7e0a[_0x5d4ae1(0xf3)]),_0x294599(0x3,_0x1aa573[_0x5d4ae1(0x38a)]),_0x294599(0x4,_0x1c7e0a[_0x5d4ae1(0x3d7)])],_0x3b3fce);class _0x5a1c14 extends _0x1c7e0a['RxDisposable']{constructor(){const _0x536882=_0x5d4ae1;super(),_0x2308c9(this,_0x536882(0x118)),this[_0x536882(0x118)]=_0xf632fb[_0x536882(0x41b)](window,_0x536882(0x120))['pipe'](_0xf632fb[_0x536882(0x360)](this['dispose$']),_0xf632fb[_0x536882(0x28c)](0x1),_0xf632fb[_0x536882(0x19c)](void 0x0));}[_0x5d4ae1(0x1e7)](_0x10b2c9,_0x34ccbf,_0x4780fd=!0x1){const _0x24e1fb=_0x5d4ae1,_0x314dec=new URL(window[_0x24e1fb(0x29a)][_0x24e1fb(0x2e0)]);_0x314dec[_0x24e1fb(0x21c)][_0x24e1fb(0x36b)](_0x10b2c9,_0x34ccbf),_0x4780fd?window['history']['replaceState']('','',_0x314dec[_0x24e1fb(0x35d)]()):window[_0x24e1fb(0x254)][_0x24e1fb(0x423)]('','',_0x314dec['toString']());}['removeParam'](_0x33fe8a,_0x1a6a3d=!0x1){const _0x302899=_0x5d4ae1,_0x4124ec=new URL(window['location'][_0x302899(0x2e0)]);_0x4124ec[_0x302899(0x21c)][_0x302899(0x1f0)](_0x33fe8a),_0x1a6a3d?window[_0x302899(0x254)]['replaceState']('','',_0x4124ec[_0x302899(0x35d)]()):window[_0x302899(0x254)]['pushState']('','',_0x4124ec['toString']());}[_0x5d4ae1(0x3b5)](_0x173d42){const _0x27d414=_0x5d4ae1;var _0x3ab93d;return(_0x3ab93d=new URL(window[_0x27d414(0x29a)]['href'])[_0x27d414(0x21c)]['get'](_0x173d42))!=null?_0x3ab93d:void 0x0;}}const _0x49ed5d=_0x5d4ae1(0x2c4),_0x45bb06='collab-text-range-',_0x4c81b3=0x6,_0x136bd8=1.5,_0x57e301=0x4,_0x4f03b9=1.5,_0x3fe9f4=_0x5d4ae1(0x322);class _0x3be62d{constructor(_0x1eef9a,_0x43d5ec,_0x1ac486,_0x43cfc0){const _0x4b8ffc=_0x5d4ae1;_0x2308c9(this,'_shapes',[]),_0x2308c9(this,_0x4b8ffc(0x439),null),_0x2308c9(this,'_textBubble',null),_0x2308c9(this,_0x4b8ffc(0x338),null),_0x2308c9(this,_0x4b8ffc(0x21d),null),_0x2308c9(this,_0x4b8ffc(0x2d1),null),(this[_0x4b8ffc(0x279)]=_0x1eef9a,this['_scene']=_0x43d5ec,this[_0x4b8ffc(0x1fc)]=_0x1ac486,this[_0x4b8ffc(0xb2)]=_0x43cfc0,this[_0x4b8ffc(0x390)]());}set[_0x5d4ae1(0x13f)](_0x577897){const _0x260e85=_0x5d4ae1;_0x577897?(this[_0x260e85(0x338)]&&this[_0x260e85(0x338)]['hide'](),this[_0x260e85(0x19b)]&&this[_0x260e85(0x19b)][_0x260e85(0x3fc)]()):(this[_0x260e85(0x338)]&&this[_0x260e85(0x338)][_0x260e85(0x3fc)](),this[_0x260e85(0x19b)]&&this[_0x260e85(0x19b)]['hide']());}[_0x5d4ae1(0x26d)](){const _0xf86dea=_0x5d4ae1;for(const _0x4ac514 of this[_0xf86dea(0x369)])_0x4ac514[_0xf86dea(0x26d)]();this[_0xf86dea(0x19b)]&&this[_0xf86dea(0x19b)][_0xf86dea(0x26d)](),this[_0xf86dea(0x338)]&&this[_0xf86dea(0x338)]['dispose'](),this[_0xf86dea(0x439)]&&this['_anchor'][_0xf86dea(0x26d)](),this[_0xf86dea(0x2d1)]&&this[_0xf86dea(0x2d1)]();}[_0x5d4ae1(0x390)](){const _0x4f767e=_0x5d4ae1,{_docSkeleton:_0x47b132,_document:_0x2bf7bb}=this,{color:_0x12bfc9,name:_0x162eac,ranges:_0x46fc86}=this[_0x4f767e(0x279)],_0x5bdac4=_0x2bf7bb[_0x4f767e(0x45f)](),{docsLeft:_0x131275,docsTop:_0x2e2694}=_0x5bdac4,_0x16c7f0=new _0x5ae3fd[(_0x4f767e(0x202))](_0x5bdac4,_0x47b132);for(const {startOffset:_0x1c8bb0,endOffset:_0x8c6480,collapsed:_0x4b120c,isActive:_0x1c2b7b}of _0x46fc86){const _0x5b9f68=_0x47b132[_0x4f767e(0x462)](_0x1c8bb0),_0x3ae28d=_0x47b132[_0x4f767e(0x462)](_0x8c6480);if(_0x1c2b7b){const {contentBoxPointGroup:_0x1d8f95}=_0x16c7f0[_0x4f767e(0x11b)](_0x3ae28d,_0x3ae28d);if(_0x1d8f95[_0x4f767e(0x30d)]===0x0)continue;this[_0x4f767e(0x33b)](_0x12bfc9,_0x1d8f95,_0x131275,_0x2e2694,_0x162eac),this[_0x4f767e(0x2d1)]=this[_0x4f767e(0x403)]();}if(!_0x4b120c){const {contentBoxPointGroup:_0x4254ee}=_0x16c7f0['getRangePointData'](_0x5b9f68,_0x3ae28d);if(_0x4254ee['length']===0x0)continue;this['_drawRange'](_0x12bfc9,_0x4254ee,_0x131275,_0x2e2694);}}}[_0x5d4ae1(0x33b)](_0x4cc37e,_0x2c4450,_0x4a2122,_0x58836f,_0x4b4d30){const _0x21f49c=_0x5d4ae1,_0x475b75=this[_0x21f49c(0x404)](_0x2c4450),{left:_0x12d558,top:_0x1ede85,height:_0x340f14}=_0x475b75,_0x261b75=this[_0x21f49c(0x2ac)](),_0x451eec=_0x4f03b9/_0x261b75,_0x466d97=new _0x5ae3fd[(_0x21f49c(0x146))](_0x49ed5d+_0x1c7e0a[_0x21f49c(0x2de)][_0x21f49c(0x331)](_0x4c81b3),{'left':_0x12d558+_0x4a2122-_0x451eec,'top':_0x1ede85+_0x58836f,'height':_0x340f14,'width':_0x136bd8,'fill':_0x4cc37e||_0x5ae3fd[_0x21f49c(0x2d5)](_0x1c7e0a['COLORS'][_0x21f49c(0x463)],0x0),'strokeWidth':_0x451eec,'stroke':_0x3fe9f4,'evented':!0x0});this['_anchor']=_0x466d97,this['_scene']['addObject'](_0x466d97,_0x5ae3fd[_0x21f49c(0x1a5)]);const _0x42c6ca=new _0x5ae3fd['Rect'](_0x49ed5d+_0x1c7e0a[_0x21f49c(0x2de)][_0x21f49c(0x331)](_0x4c81b3),{'left':_0x12d558+_0x4a2122-_0x451eec,'top':_0x1ede85+_0x58836f-_0x57e301/0x2,'height':_0x57e301,'width':_0x57e301,'fill':_0x4cc37e||_0x5ae3fd[_0x21f49c(0x2d5)](_0x1c7e0a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x4cc37e||_0x5ae3fd['getColor'](_0x1c7e0a['COLORS']['black'],0x0),'evented':!0x1});this[_0x21f49c(0x338)]=_0x42c6ca,this['_scene'][_0x21f49c(0x3ea)](_0x42c6ca,_0x5ae3fd[_0x21f49c(0x1a5)]);const _0x2fcfbf=new _0x278a01(_0x49ed5d+_0x1c7e0a[_0x21f49c(0x2de)][_0x21f49c(0x331)](_0x4c81b3),{'left':_0x12d558+_0x4a2122-_0x451eec,'top':_0x1ede85+_0x58836f-_0x77a5c9,'text':_0x4b4d30,'color':_0x4cc37e});this[_0x21f49c(0x19b)]=_0x2fcfbf,this['_scene']['addObject'](_0x2fcfbf,_0x5ae3fd[_0x21f49c(0x1a5)]),this['_hover']=!0x1;}[_0x5d4ae1(0x403)](){const _0x2d1145=_0x5d4ae1,_0x503d03=this[_0x2d1145(0x439)][_0x2d1145(0x220)][_0x2d1145(0x39d)](()=>{const _0x48bdf1=_0x2d1145;this[_0x48bdf1(0x13f)]=!0x0;}),_0x383412=this[_0x2d1145(0x439)][_0x2d1145(0x10e)][_0x2d1145(0x39d)](()=>{const _0x4550a4=_0x2d1145;this[_0x4550a4(0x21d)]&&clearTimeout(this[_0x4550a4(0x21d)]),this['_hideTimer']=setTimeout(()=>{const _0x59aa22=_0x4550a4;this[_0x59aa22(0x13f)]=!0x1;},0x7d0);});return()=>{const _0x27c47e=_0x2d1145;_0x503d03[_0x27c47e(0x21e)](),_0x383412['unsubscribe']();};}[_0x5d4ae1(0x293)](_0x36dd80,_0x5eb0ef,_0x5c75ca,_0x5679ab){const _0x4a578c=_0x5d4ae1,_0xceea3a=new _0x1c7e0a[(_0x4a578c(0x16a))](_0x36dd80)[_0x4a578c(0xe2)](0.2)['toRgbString'](),_0x183fff=new _0x5ae3fd['RegularPolygon'](_0x45bb06+_0x1c7e0a[_0x4a578c(0x2de)][_0x4a578c(0x331)](_0x4c81b3),{'pointsGroup':_0x5eb0ef,'fill':_0xceea3a||_0x5ae3fd[_0x4a578c(0x2d5)](_0x1c7e0a['COLORS']['black'],0.2),'left':_0x5c75ca,'top':_0x5679ab,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a578c(0x369)][_0x4a578c(0x21f)](_0x183fff),this[_0x4a578c(0x2a8)][_0x4a578c(0x3ea)](_0x183fff,_0x5ae3fd['TEXT_RANGE_LAYER_INDEX']);}[_0x5d4ae1(0x404)](_0x11839a){const _0x34384f=_0x11839a[0x0],_0x597aee=_0x34384f[0x0],_0x470b0c=_0x34384f[0x2],{x:_0x44cf31,y:_0x46f318}=_0x597aee,{x:_0x281794,y:_0x24bd00}=_0x470b0c;return{'left':_0x44cf31,'top':_0x46f318,'width':_0x281794-_0x44cf31,'height':_0x24bd00-_0x46f318};}[_0x5d4ae1(0x2ac)](){const _0x196df7=_0x5d4ae1,{scaleX:_0x5efe8b,scaleY:_0x3f03a6}=this[_0x196df7(0x2a8)][_0x196df7(0x217)]();return Math['max'](_0x5efe8b,_0x3f03a6);}}var _0x321fa8=Object[_0x5d4ae1(0x428)],_0x7ae790=Object[_0x5d4ae1(0x23a)],_0x1bd6c3=(_0x8c6014,_0x24f772,_0x1a4e87,_0x38bb5d)=>{const _0x3ea033=_0x5d4ae1;for(var _0x450c4a=_0x38bb5d>0x1?void 0x0:_0x38bb5d?_0x7ae790(_0x24f772,_0x1a4e87):_0x24f772,_0x163a70=_0x8c6014[_0x3ea033(0x30d)]-0x1,_0x45932e;_0x163a70>=0x0;_0x163a70--)(_0x45932e=_0x8c6014[_0x163a70])&&(_0x450c4a=(_0x38bb5d?_0x45932e(_0x24f772,_0x1a4e87,_0x450c4a):_0x45932e(_0x450c4a))||_0x450c4a);return _0x38bb5d&&_0x450c4a&&_0x321fa8(_0x24f772,_0x1a4e87,_0x450c4a),_0x450c4a;},_0x47b9=(_0x163218,_0x36f5d0)=>(_0x4f85a0,_0x26d6a2)=>_0x36f5d0(_0x4f85a0,_0x26d6a2,_0x163218);let _0x2b66dd=class extends _0x1c7e0a[_0x5d4ae1(0x2bb)]{constructor(_0x482b4f,_0x2f2486,_0x38de59,_0x30a13e,_0x20c2ee){const _0x430757=_0x5d4ae1;super(),_0x2308c9(this,_0x430757(0x421),[]),(this[_0x430757(0x1f6)]=_0x482b4f,this[_0x430757(0x2aa)]=_0x2f2486,this[_0x430757(0x2ce)]=_0x38de59,this['_docSkeletonManagerService']=_0x30a13e,this[_0x430757(0x27e)]=_0x20c2ee,this[_0x430757(0x3c0)]());}[_0x5d4ae1(0x3c0)](){const _0x5297b4=_0x5d4ae1;this['_docSkeletonManagerService'][_0x5297b4(0x3a0)][_0x5297b4(0x272)](_0x2c2667[_0x5297b4(0x360)](this['dispose$']),_0x2c2667[_0x5297b4(0x384)](_0x156126=>{const _0x2a4f39=_0x5297b4;if(_0x156126){const _0x3be868=_0x156126[_0x2a4f39(0x187)]()[_0x2a4f39(0x3aa)]()[_0x2a4f39(0x37d)]();return _0xf632fb[_0x2a4f39(0x3e3)](this['_collabCursorController'][_0x2a4f39(0x14b)](_0x3be868),this['_themeService'][_0x2a4f39(0xc1)])[_0x2a4f39(0x272)](_0x2c2667[_0x2a4f39(0x324)](([_0x284f3b,_0x107544])=>({'skeleton':_0x156126,'cursors':[..._0x284f3b['values']()][_0x2a4f39(0xe5)](_0x2bfb7b=>({..._0x2bfb7b,'color':_0x107544[_0x2bfb7b['color']]}))})));}return _0xf632fb['of']({'skeleton':null,'cursors':[]});}))[_0x5297b4(0x41c)](({skeleton:_0x3e7251,cursors:_0x165e2f})=>{this['_removeCollabCursors'](),_0x3e7251&&this['_updateCollabCursors'](_0x3e7251,_0x165e2f);});}[_0x5d4ae1(0x402)](_0x44792b,_0x3b8115){const _0x2e34de=_0x5d4ae1,_0xda18f2=this[_0x2e34de(0x430)]();if(_0xda18f2==null)return;const {scene:_0x46d758,document:_0x1b8224}=_0xda18f2,_0x59b02a=_0x3b8115[_0x2e34de(0x324)](_0x5a2a16=>new _0x3be62d(_0x5a2a16,_0x46d758,_0x44792b,_0x1b8224));this['_cursors']=_0x59b02a;}[_0x5d4ae1(0x1eb)](){const _0x270703=_0x5d4ae1;this['_cursors'][_0x270703(0x32c)](_0x4f03d7=>_0x4f03d7[_0x270703(0x26d)]()),this['_cursors']=[];}[_0x5d4ae1(0x430)](){const _0x24059c=_0x5d4ae1;return _0x1e7311[_0x24059c(0x1cb)](this[_0x24059c(0x2aa)],this[_0x24059c(0x2ce)]);}};_0x2b66dd=_0x1bd6c3([_0x1c7e0a[_0x5d4ae1(0x466)](_0x1c7e0a[_0x5d4ae1(0x25f)][_0x5d4ae1(0x290)],_0x2b66dd),_0x47b9(0x0,_0x4fa573['Inject'](_0x4a2232)),_0x47b9(0x1,_0x1c7e0a['IUniverInstanceService']),_0x47b9(0x2,_0x5ae3fd['IRenderManagerService']),_0x47b9(0x3,_0x4fa573[_0x5d4ae1(0x274)](_0x1e7311[_0x5d4ae1(0x409)])),_0x47b9(0x4,_0x4fa573[_0x5d4ae1(0x274)](_0x1c7e0a[_0x5d4ae1(0x12d)]))],_0x2b66dd);var _0x39f3e3=Object[_0x5d4ae1(0x428)],_0x594e51=Object[_0x5d4ae1(0x23a)],_0x47eeca=(_0x1460ce,_0x6d9422,_0x575c0b,_0xd1309)=>{const _0x3c9802=_0x5d4ae1;for(var _0x125a4d=_0xd1309>0x1?void 0x0:_0xd1309?_0x594e51(_0x6d9422,_0x575c0b):_0x6d9422,_0x545e3b=_0x1460ce[_0x3c9802(0x30d)]-0x1,_0x43d375;_0x545e3b>=0x0;_0x545e3b--)(_0x43d375=_0x1460ce[_0x545e3b])&&(_0x125a4d=(_0xd1309?_0x43d375(_0x6d9422,_0x575c0b,_0x125a4d):_0x43d375(_0x125a4d))||_0x125a4d);return _0xd1309&&_0x125a4d&&_0x39f3e3(_0x6d9422,_0x575c0b,_0x125a4d),_0x125a4d;},_0x579356=(_0x22f392,_0xa17a9f)=>(_0x50264a,_0x1bd1b3)=>_0xa17a9f(_0x50264a,_0x1bd1b3,_0x22f392);let _0x3b6526=class{constructor(_0x5c9219,_0x404805,_0x4a64e8){const _0x44dc44=_0x5d4ae1;this[_0x44dc44(0x432)]=_0x5c9219,this['_httpService']=_0x404805,this[_0x44dc44(0x1c6)]=_0x4a64e8,this[_0x44dc44(0x2d7)]();}[_0x5d4ae1(0x2d7)](){const _0x185e12=_0x5d4ae1;this[_0x185e12(0x2b9)][_0x185e12(0x1c1)]({'priority':0x1,'interceptor':(_0x3549c8,_0x44e7b8)=>_0x44e7b8(_0x3549c8)[_0x185e12(0x272)](_0xf632fb[_0x185e12(0x381)](async _0x160c64=>{const _0x19ad69=_0x185e12,_0x290a4e=_0x160c64;if(_0x290a4e['status']===0x191&&window[_0x19ad69(0x140)](this[_0x19ad69(0x1c6)]['t']('auth.needGotoLoginAlert'))){const _0x31c59e=window[_0x19ad69(0x31a)](window[_0x19ad69(0x29a)][_0x19ad69(0x2e0)]);window[_0x19ad69(0x29a)][_0x19ad69(0x2e0)]=this[_0x19ad69(0x30b)]()+_0x19ad69(0x379)+_0x31c59e;}return _0x290a4e;}))});}[_0x5d4ae1(0x30b)](){const _0x389eac=_0x5d4ae1;var _0x6df650;return(_0x6df650=this[_0x389eac(0x432)]['getConfig'](_0x5b8cb3))!=null?_0x6df650:_0x45679c;}};_0x3b6526=_0x47eeca([_0x579356(0x0,_0x1c7e0a[_0x5d4ae1(0x13b)]),_0x579356(0x1,_0x4fa573[_0x5d4ae1(0x274)](_0x2954d5['HTTPService'])),_0x579356(0x2,_0x4fa573[_0x5d4ae1(0x274)](_0x1c7e0a[_0x5d4ae1(0x476)]))],_0x3b6526);var _0x587145=Object[_0x5d4ae1(0x428)],_0x3fefe2=Object[_0x5d4ae1(0x23a)],_0x30f645=(_0x52a232,_0x3249f1,_0x59ab56,_0x118044)=>{const _0x29b88f=_0x5d4ae1;for(var _0x47db9d=_0x118044>0x1?void 0x0:_0x118044?_0x3fefe2(_0x3249f1,_0x59ab56):_0x3249f1,_0x322df5=_0x52a232[_0x29b88f(0x30d)]-0x1,_0x44ded6;_0x322df5>=0x0;_0x322df5--)(_0x44ded6=_0x52a232[_0x322df5])&&(_0x47db9d=(_0x118044?_0x44ded6(_0x3249f1,_0x59ab56,_0x47db9d):_0x44ded6(_0x47db9d))||_0x47db9d);return _0x118044&&_0x47db9d&&_0x587145(_0x3249f1,_0x59ab56,_0x47db9d),_0x47db9d;},_0xf0a4d2=(_0x22bb48,_0x59d086)=>(_0x156f40,_0x4c8ac0)=>_0x59d086(_0x156f40,_0x4c8ac0,_0x22bb48);const _0x2a9272=_0x5d4ae1(0xd3),_0x24bb12=_0x5d4ae1(0x414);_0x488928[_0x5d4ae1(0x3ee)]=class{constructor(_0x20621f,_0x46030e){const _0x2034c0=_0x5d4ae1;this[_0x2034c0(0x3ef)]=_0x20621f,this[_0x2034c0(0x432)]=_0x46030e;}[_0x5d4ae1(0x413)](){const _0x39b269=_0x5d4ae1;var _0x1c0cbb;return(_0x1c0cbb=this[_0x39b269(0x432)][_0x39b269(0x30e)](_0x2a9272))!=null?_0x1c0cbb:_0x24bb12;}async[_0x5d4ae1(0xdb)](_0x29f0df){const _0xbbd796=_0x5d4ae1,_0x7c5a01=this[_0xbbd796(0x413)]()+'/'+_0x29f0df['objectType']+_0xbbd796(0x435);return(await this['_HTTPService'][_0xbbd796(0x1ca)](_0x7c5a01,{'body':_0x29f0df}))[_0xbbd796(0x201)]['objectID']||'';}async[_0x5d4ae1(0x1cf)](_0x4b10e2){const _0x2f816f=_0x5d4ae1,_0x6725c6=this[_0x2f816f(0x413)]()+_0x2f816f(0x3c2);return(await this['_HTTPService'][_0x2f816f(0x1ca)](_0x6725c6,{'body':_0x4b10e2}))[_0x2f816f(0x201)][_0x2f816f(0x47b)];}async[_0x5d4ae1(0xcd)](_0x386c21){const _0x4d474c=_0x5d4ae1,_0x647abe=this[_0x4d474c(0x413)]()+'/'+_0x386c21[_0x4d474c(0x24a)]+_0x4d474c(0x29f)+_0x386c21[_0x4d474c(0x2c7)];await this[_0x4d474c(0x3ef)][_0x4d474c(0x1a0)](_0x647abe,{'body':_0x386c21});}async[_0x5d4ae1(0x27b)](_0x521bc4){const _0x3ba7af=_0x5d4ae1,_0x4d724d=this[_0x3ba7af(0x413)]()+'/'+_0x521bc4['objectType']+_0x3ba7af(0x29f)+_0x521bc4['objectID']+_0x3ba7af(0x354);return(await this['_HTTPService']['post'](_0x4d724d,{'body':_0x521bc4}))[_0x3ba7af(0x201)]['actions'];}async[_0x5d4ae1(0x2a0)](_0x3a9955){const _0x1d3adf=_0x5d4ae1,_0x15530d=this[_0x1d3adf(0x413)]()+_0x1d3adf(0x46b);return(await this['_HTTPService'][_0x1d3adf(0x1ca)](_0x15530d,{'body':{'requests':_0x3a9955}}))[_0x1d3adf(0x201)][_0x1d3adf(0x1bd)];}async['listRoles'](_0x48e93c){const _0xa2fb8c=_0x5d4ae1,_0x33a346=this[_0xa2fb8c(0x413)]()+'/'+_0x48e93c[_0xa2fb8c(0x24a)]+'/role',_0x5153e0=await this['_HTTPService'][_0xa2fb8c(0x1ca)](_0x33a346,{'body':_0x48e93c});return{'roles':_0x5153e0[_0xa2fb8c(0x201)][_0xa2fb8c(0x3c6)],'actions':_0x5153e0['body'][_0xa2fb8c(0x401)]};}async[_0x5d4ae1(0x240)](_0x49dc72){const _0x4255db=_0x5d4ae1,_0x8df552=this[_0x4255db(0x413)]()+_0x4255db(0x44d);await this['_HTTPService']['delete'](_0x8df552,{'params':{'collaboratorID':_0x49dc72[_0x4255db(0xe4)],'objectID':_0x49dc72[_0x4255db(0x2c7)],'unitID':_0x49dc72[_0x4255db(0x306)]}});}async[_0x5d4ae1(0x1db)](_0x11dfa1){const _0x180657=_0x5d4ae1,_0x54f3e9=this['_getAPIPrefixPath']()+_0x180657(0x44d);await this['_HTTPService'][_0x180657(0x1c2)](_0x54f3e9,{'body':_0x11dfa1});}async[_0x5d4ae1(0x261)](_0x372afa){const _0x190c02=_0x5d4ae1,_0x31e49f=this[_0x190c02(0x413)]()+'/collaborator';await this[_0x190c02(0x3ef)][_0x190c02(0x1ca)](_0x31e49f,{'body':_0x372afa});}async[_0x5d4ae1(0xc2)](_0x1730e8){const _0x1b39e3=_0x5d4ae1,_0x2e7c66=this[_0x1b39e3(0x413)]()+_0x1b39e3(0x44d);return(await this[_0x1b39e3(0x3ef)][_0x1b39e3(0xec)](_0x2e7c66,{'params':{'objectID':_0x1730e8[_0x1b39e3(0x2c7)],'unitID':_0x1730e8[_0x1b39e3(0x306)]}}))[_0x1b39e3(0x201)][_0x1b39e3(0x299)];}async['putCollaborators'](_0x37be96){const _0x3240be=_0x5d4ae1,_0x4a13bb=this[_0x3240be(0x413)]()+_0x3240be(0x44d);await this[_0x3240be(0x3ef)]['put'](_0x4a13bb,{'body':_0x37be96});}},_0x488928[_0x5d4ae1(0x3ee)]=_0x30f645([_0xf0a4d2(0x0,_0x4fa573['Inject'](_0x2954d5[_0x5d4ae1(0x14e)])),_0xf0a4d2(0x1,_0x4fa573['Inject'](_0x1c7e0a[_0x5d4ae1(0x13b)]))],_0x488928[_0x5d4ae1(0x3ee)]);var _0x4129fc=Object[_0x5d4ae1(0x428)],_0x1577d5=Object[_0x5d4ae1(0x23a)],_0x4fc6e2=(_0x21a4f6,_0x1dee23,_0xad3b61,_0x247b80)=>{const _0x35bfa1=_0x5d4ae1;for(var _0x25c4ac=_0x247b80>0x1?void 0x0:_0x247b80?_0x1577d5(_0x1dee23,_0xad3b61):_0x1dee23,_0x1dc379=_0x21a4f6[_0x35bfa1(0x30d)]-0x1,_0x1a768b;_0x1dc379>=0x0;_0x1dc379--)(_0x1a768b=_0x21a4f6[_0x1dc379])&&(_0x25c4ac=(_0x247b80?_0x1a768b(_0x1dee23,_0xad3b61,_0x25c4ac):_0x1a768b(_0x25c4ac))||_0x25c4ac);return _0x247b80&&_0x25c4ac&&_0x4129fc(_0x1dee23,_0xad3b61,_0x25c4ac),_0x25c4ac;},_0x1382fe=(_0x1aec4c,_0x4866ed)=>(_0x347321,_0x3dadb3)=>_0x4866ed(_0x347321,_0x3dadb3,_0x1aec4c);const _0xc5476e=['image/png',_0x5d4ae1(0x39b),_0x5d4ae1(0x186),_0x5d4ae1(0xb0),_0x5d4ae1(0x3dc)],_0x43b5ac=0x5*0x400*0x400,_0x47902a=_0x5d4ae1(0x132),_0x32a16e=_0x5d4ae1(0x3ac),_0x41d3b9=_0x5d4ae1(0x2ae),_0x5a5ae1=_0x5d4ae1(0x24b);let _0x4945fc=class{constructor(_0x363bee,_0x230575){const _0x599e27=_0x5d4ae1;_0x2308c9(this,_0x599e27(0x1f9),0x0),_0x2308c9(this,'_change$',new _0xf632fb[(_0x599e27(0x1b7))]()),_0x2308c9(this,'change$',this[_0x599e27(0x47e)]),_0x2308c9(this,'_imageSourceCache',new Map()),(this[_0x599e27(0x2b9)]=_0x363bee,this[_0x599e27(0x432)]=_0x230575);}[_0x5d4ae1(0x178)](_0x2dd993){const _0xdd9f83=_0x5d4ae1;this[_0xdd9f83(0x1f9)]=_0x2dd993,this[_0xdd9f83(0x47e)]['next'](_0x2dd993);}[_0x5d4ae1(0x490)](_0x4ee811,_0x42c766){const _0x236450=_0x5d4ae1;if(_0x42c766===_0xc2a4f2[_0x236450(0x3d5)][_0x236450(0x14d)]){const _0x4b428f=new Image();return _0x4b428f[_0x236450(0x3a8)]=_0x4ee811,_0x4b428f;}return this[_0x236450(0x328)]['get'](_0x4ee811);}[_0x5d4ae1(0x1a1)](_0x3c6905,_0x7c0eca,_0x5e41c2){const _0xd3fc1e=_0x5d4ae1;_0x7c0eca===_0xc2a4f2[_0xd3fc1e(0x3d5)][_0xd3fc1e(0x14d)]||_0x5e41c2==null||this['_imageSourceCache'][_0xd3fc1e(0x36b)](_0x3c6905,_0x5e41c2);}async[_0x5d4ae1(0xb9)](_0xcb6edc){const _0x1a9d9a=_0x5d4ae1;try{const _0x4fcf7e=this[_0x1a9d9a(0x3bf)](this[_0x1a9d9a(0x263)](),''+_0xcb6edc),_0x42be2a=(await this['_httpService'][_0x1a9d9a(0xec)](_0x4fcf7e))[_0x1a9d9a(0x201)];return _0x42be2a[_0x1a9d9a(0x34d)]&&_0x42be2a[_0x1a9d9a(0x34d)][_0x1a9d9a(0x17d)]===_0x104c3e['OK']?Promise[_0x1a9d9a(0x434)](_0x42be2a[_0x1a9d9a(0x170)]):Promise['reject'](_0x42be2a[_0x1a9d9a(0x34d)]);}catch(_0x255377){return Promise[_0x1a9d9a(0x182)](_0x255377);}}async[_0x5d4ae1(0x45a)](_0x3e0773){const _0x138de5=_0x5d4ae1;let _0x26e864='';if(!_0xc5476e[_0x138de5(0x29d)](_0x3e0773[_0x138de5(0x302)]))return this[_0x138de5(0x37b)](),Promise['reject'](new Error(_0xc2a4f2[_0x138de5(0x286)][_0x138de5(0x1fd)]));if(_0x3e0773[_0x138de5(0x2b7)]>_0x43b5ac)return this[_0x138de5(0x37b)](),Promise[_0x138de5(0x182)](new Error(_0xc2a4f2[_0x138de5(0x286)]['ERROR_EXCEED_SIZE']));try{const _0xdf2e66=new FormData();_0xdf2e66[_0x138de5(0x28e)](_0x138de5(0x382),_0x3e0773);const _0xdb3429=this['_getUploadFileURL']()+_0x138de5(0x3f0)+_0x3e0773[_0x138de5(0x2b7)][_0x138de5(0x35d)](),_0x263978=await(await fetch(_0xdb3429,{'method':_0x138de5(0x259),'body':_0xdf2e66}))['json']();if(typeof _0x263978[_0x138de5(0x176)]!='string')return this['_decreaseWaiting'](),Promise[_0x138de5(0x182)](new Error(_0xc2a4f2[_0x138de5(0x286)]['ERROR_IMAGE']));_0x26e864=_0x263978[_0x138de5(0x176)];}catch{return this[_0x138de5(0x37b)](),Promise[_0x138de5(0x182)](new Error(_0xc2a4f2['ImageUploadStatusType'][_0x138de5(0x36e)]));}return new Promise((_0x539b39,_0x531964)=>{const _0x2d2b22=new FileReader();_0x2d2b22['readAsDataURL'](_0x3e0773),_0x2d2b22['onload']=_0x48b6a7=>{const _0x14c8f8=_0x18a3;var _0x3fe64d;const _0x1a2385=(_0x3fe64d=_0x48b6a7[_0x14c8f8(0x3e2)])==null?void 0x0:_0x3fe64d[_0x14c8f8(0x425)];if(_0x1a2385==null){this[_0x14c8f8(0x37b)](),_0x531964(new Error(_0xc2a4f2[_0x14c8f8(0x286)][_0x14c8f8(0x36e)]));return;}const _0x48272c=_0x1c7e0a['Tools']['generateRandomId'](0x6);_0x539b39({'imageId':_0x48272c,'imageSourceType':_0xc2a4f2[_0x14c8f8(0x3d5)][_0x14c8f8(0x2c1)],'source':_0x26e864,'base64Cache':_0x1a2385,'status':_0xc2a4f2['ImageUploadStatusType'][_0x14c8f8(0x26b)]}),this[_0x14c8f8(0x37b)]();};});}[_0x5d4ae1(0x1fe)](){const _0x453c08=_0x5d4ae1;var _0x378bda;return(_0x378bda=this[_0x453c08(0x432)]['getConfig'](_0x47902a))!=null?_0x378bda:_0x32a16e;}[_0x5d4ae1(0x263)](){const _0x265a7d=_0x5d4ae1;var _0x46df7c;return(_0x46df7c=this[_0x265a7d(0x432)]['getConfig'](_0x41d3b9))!=null?_0x46df7c:_0x5a5ae1;}[_0x5d4ae1(0x3bf)](_0x5e8651,_0x4c9824){const _0x2443b0=_0x5d4ae1;return _0x5e8651[_0x2443b0(0x257)](_0x2443b0(0xc8),_0x4c9824);}[_0x5d4ae1(0x37b)](){const _0x16cc8b=_0x5d4ae1;this[_0x16cc8b(0x1f9)]-=0x1,this['_change$'][_0x16cc8b(0x2b1)](this[_0x16cc8b(0x1f9)]);}};_0x4945fc=_0x4fc6e2([_0x1382fe(0x0,_0x4fa573[_0x5d4ae1(0x274)](_0x2954d5['HTTPService'])),_0x1382fe(0x1,_0x1c7e0a[_0x5d4ae1(0x13b)])],_0x4945fc);var _0x57e6dc=Object[_0x5d4ae1(0x428)],_0x26e48f=Object[_0x5d4ae1(0x23a)],_0x4e12e0=(_0x369323,_0x4dbd0e,_0x8f46bf,_0x94bc91)=>{const _0x1213f1=_0x5d4ae1;for(var _0x36d1d1=_0x94bc91>0x1?void 0x0:_0x94bc91?_0x26e48f(_0x4dbd0e,_0x8f46bf):_0x4dbd0e,_0x3549b1=_0x369323[_0x1213f1(0x30d)]-0x1,_0x67063d;_0x3549b1>=0x0;_0x3549b1--)(_0x67063d=_0x369323[_0x3549b1])&&(_0x36d1d1=(_0x94bc91?_0x67063d(_0x4dbd0e,_0x8f46bf,_0x36d1d1):_0x67063d(_0x36d1d1))||_0x36d1d1);return _0x94bc91&&_0x36d1d1&&_0x57e6dc(_0x4dbd0e,_0x8f46bf,_0x36d1d1),_0x36d1d1;},_0x377f24=(_0x2e0917,_0x1ed39e)=>(_0x23e7b6,_0x5d48ce)=>_0x1ed39e(_0x23e7b6,_0x5d48ce,_0x2e0917);let _0x2905bb=class extends _0x1c7e0a[_0x5d4ae1(0x2bb)]{constructor(_0x4fa2b6,_0xab7edf,_0x2c0c23,_0x50630f,_0x3788fa){const _0x14831f=_0x5d4ae1;super(),this[_0x14831f(0x12f)]=_0x4fa2b6,this[_0x14831f(0x2aa)]=_0xab7edf,this['_permissionService']=_0x2c0c23,this['_collaborationSessionService']=_0x50630f,this[_0x14831f(0x13a)]=_0x3788fa,this[_0x14831f(0x1ae)](),this[_0x14831f(0x2fa)]();}['_initCloseConn'](){const _0x5417bf=_0x5d4ae1,_0x5337d5=async _0x4a58e2=>{const _0x2a5bd6=_0x18a3;(await this[_0x2a5bd6(0x2f3)][_0x2a5bd6(0x444)](_0x4a58e2))[_0x2a5bd6(0xf0)][_0x2a5bd6(0x272)](_0x2c2667[_0x2a5bd6(0x23f)](_0x4641f2=>_0x4641f2[_0x2a5bd6(0x2f5)]===_0x1aa573[_0x2a5bd6(0x168)][_0x2a5bd6(0x363)]),_0x2c2667[_0x2a5bd6(0x360)](this[_0x2a5bd6(0x40c)]))[_0x2a5bd6(0x41c)](_0x5d79b5=>{const _0x244362=_0x2a5bd6,_0x4aee3f=_0x5d79b5,{reason:_0x51b601}=_0x4aee3f[_0x244362(0x12b)];this[_0x244362(0x12f)][_0x244362(0xec)](_0x1fdc42[_0x244362(0x350)])[_0x244362(0x3fc)]({'type':_0x3ce12d[_0x244362(0xd7)][_0x244362(0x212)],'content':this[_0x244362(0x13a)]['t'](_0x244362(0x3da))+'('+_0x51b601+')'}),this[_0x244362(0x319)][_0x244362(0x283)](new _0x213e0a[(_0x244362(0x152))](_0x4a58e2)['id'],!0x1);});};_0xf632fb[_0x5417bf(0xca)](this[_0x5417bf(0x2aa)][_0x5417bf(0x17e)](_0x1c7e0a[_0x5417bf(0x22d)][_0x5417bf(0xfd)]),this[_0x5417bf(0x2aa)][_0x5417bf(0x17e)](_0x1c7e0a[_0x5417bf(0x22d)][_0x5417bf(0xe0)]))[_0x5417bf(0x272)](_0x2c2667[_0x5417bf(0x324)](_0x227c72=>_0x227c72[_0x5417bf(0x37d)]()),_0x2c2667['filter'](_0x37f8f5=>!_0x1c7e0a[_0x5417bf(0x2af)](_0x37f8f5)),_0x2c2667[_0x5417bf(0x360)](this['dispose$']))[_0x5417bf(0x41c)](_0x265097=>{_0x5337d5(_0x265097);});}[_0x5d4ae1(0x1ae)](){const _0x58040d=_0x5d4ae1,_0x5d466f=async _0x56c880=>{const _0x14abc4=_0x18a3;(await this[_0x14abc4(0x2f3)]['requireSession'](_0x56c880))[_0x14abc4(0xf0)][_0x14abc4(0x272)](_0x2c2667[_0x14abc4(0x23f)](_0x44e28c=>_0x44e28c[_0x14abc4(0x2f5)]===_0x1aa573['CollaborationEvent'][_0x14abc4(0x33d)]),_0x2c2667[_0x14abc4(0x360)](this['dispose$']))[_0x14abc4(0x41c)](_0x18a100=>{const _0x8e13d8=_0x14abc4,_0x29d3f8=_0x18a100,{objectId:_0x57e0fb}=_0x29d3f8[_0x8e13d8(0x12b)];_0x57e0fb===_0x56c880&&this[_0x8e13d8(0x12f)][_0x8e13d8(0xec)](_0x15965e[_0x8e13d8(0x23b)])['initWorkbookPermissionChange'](_0x56c880);});};_0xf632fb[_0x58040d(0xca)](this[_0x58040d(0x2aa)][_0x58040d(0x17e)](_0x1c7e0a[_0x58040d(0x22d)][_0x58040d(0xfd)]),this[_0x58040d(0x2aa)][_0x58040d(0x17e)](_0x1c7e0a['UniverInstanceType']['UNIVER_DOC']))[_0x58040d(0x272)](_0x2c2667[_0x58040d(0x324)](_0x3e6c01=>_0x3e6c01['getUnitId']()),_0x2c2667[_0x58040d(0x23f)](_0x8fcbfa=>!_0x1c7e0a[_0x58040d(0x2af)](_0x8fcbfa)),_0x2c2667[_0x58040d(0x360)](this[_0x58040d(0x40c)]))['subscribe'](_0x2fe4b=>{_0x5d466f(_0x2fe4b);});}};_0x2905bb=_0x4e12e0([_0x1c7e0a[_0x5d4ae1(0x466)](_0x1c7e0a[_0x5d4ae1(0x25f)]['Starting'],_0x2905bb),_0x377f24(0x0,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573['Injector'])),_0x377f24(0x1,_0x1c7e0a[_0x5d4ae1(0x2e9)]),_0x377f24(0x2,_0x1c7e0a[_0x5d4ae1(0x2eb)]),_0x377f24(0x3,_0x4fa573['Inject'](_0x488928[_0x5d4ae1(0x139)])),_0x377f24(0x4,_0x4fa573[_0x5d4ae1(0x274)](_0x1c7e0a['LocaleService']))],_0x2905bb);var _0x5dfbc0=Object['defineProperty'],_0x47995d=Object[_0x5d4ae1(0x23a)],_0x7cb40d=(_0x4a1b84,_0x5e19d5,_0x5a230)=>_0x5e19d5 in _0x4a1b84?_0x5dfbc0(_0x4a1b84,_0x5e19d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a230}):_0x4a1b84[_0x5e19d5]=_0x5a230,_0x47b0e5=(_0x1c3be7,_0x54222a,_0x40f238,_0x22fc2b)=>{const _0x408ed6=_0x5d4ae1;for(var _0x39f17a=_0x22fc2b>0x1?void 0x0:_0x22fc2b?_0x47995d(_0x54222a,_0x40f238):_0x54222a,_0x199ae8=_0x1c3be7[_0x408ed6(0x30d)]-0x1,_0x3c1253;_0x199ae8>=0x0;_0x199ae8--)(_0x3c1253=_0x1c3be7[_0x199ae8])&&(_0x39f17a=(_0x22fc2b?_0x3c1253(_0x54222a,_0x40f238,_0x39f17a):_0x3c1253(_0x39f17a))||_0x39f17a);return _0x22fc2b&&_0x39f17a&&_0x5dfbc0(_0x54222a,_0x40f238,_0x39f17a),_0x39f17a;},_0x536a78=(_0x325f1b,_0x2a4343)=>(_0x38d41b,_0x1d2684)=>_0x2a4343(_0x38d41b,_0x1d2684,_0x325f1b),_0x396e7d=(_0x109fcd,_0x5c6820,_0x526b02)=>_0x7cb40d(_0x109fcd,_0x5c6820+'',_0x526b02);const _0x1c47f6='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x488928[_0x5d4ae1(0x243)]=class extends _0x1c7e0a[_0x5d4ae1(0x159)]{constructor(_0x38ee53,_0x8b9162,_0x470a8e){const _0x202827=_0x5d4ae1;super(),this['_config']=_0x38ee53,this['_logService']=_0x8b9162,this[_0x202827(0x12f)]=_0x470a8e;}[_0x5d4ae1(0x16d)](_0x26fae4){const _0x1dfd9a=_0x5d4ae1;var _0x217c33,_0x5e276f,_0x5ac4f3,_0x203890,_0x38afcd;_0x26fae4[_0x1dfd9a(0x3d3)](_0x1c7e0a[_0x1dfd9a(0x3ba)])&&this[_0x1dfd9a(0x38d)][_0x1dfd9a(0x34d)](_0x1dfd9a(0x1a6),_0x1dfd9a(0x438));let _0x62e8ef=[[_0x1c7e0a[_0x1dfd9a(0x3ba)],{'useClass':_0x3b3fce}],[_0x488928['CollaborationSessionService']],[_0x1157e2],[_0x2954d5[_0x1dfd9a(0x14e)]],[_0x6ad376,{'useClass':_0x5a1c14}],[_0x1fece3],[_0x488928[_0x1dfd9a(0x296)]],[_0x2954d5['WebSocketService']],[_0x54a41f],[_0x3fe7af],[_0x3ca91f],[_0x22361d],[_0x3b6526],[_0x4625c2],[_0x2905bb],[_0x176724,{'useClass':(_0x5e276f=(_0x217c33=this[_0x1dfd9a(0x3a2)])==null?void 0x0:_0x217c33[_0x1dfd9a(0x37a)])!=null?_0x5e276f:_0x488928[_0x1dfd9a(0x35c)]}],[_0x2954d5[_0x1dfd9a(0x20b)],{'useClass':_0x2954d5['XHRHTTPImplementation']}],[_0x1c7e0a[_0x1dfd9a(0x36d)],{'useClass':_0x48a2d0}],[_0x1c7e0a[_0x1dfd9a(0x1be)],{'useClass':_0x488928[_0x1dfd9a(0x3ee)]}],[_0xc2a4f2[_0x1dfd9a(0x12e)],{'useClass':_0x4945fc}],[_0x488928[_0x1dfd9a(0x427)]],[_0x488928[_0x1dfd9a(0x2b6)]],[_0x488928['DesktopCollaborationStatusDisplayController']],[_0x38f41e],[_0x4a2232]];(_0x5ac4f3=this[_0x1dfd9a(0x3a2)])!=null&&_0x5ac4f3[_0x1dfd9a(0x26a)]&&_0x62e8ef['push']([_0x3a78a1,{'useClass':_0x1893ed}]),((_0x203890=this['_config'])==null?void 0x0:_0x203890[_0x1dfd9a(0x2b5)])==null||this[_0x1dfd9a(0x3a2)]['collaborationUniverTypes'][_0x1dfd9a(0x29d)](_0x1c7e0a[_0x1dfd9a(0x22d)][_0x1dfd9a(0xfd)])?_0x62e8ef[_0x1dfd9a(0x21f)]([_0x4c0615]):this[_0x1dfd9a(0x3a2)][_0x1dfd9a(0x2b5)][_0x1dfd9a(0x29d)](_0x1c7e0a[_0x1dfd9a(0x22d)][_0x1dfd9a(0xe0)])&&_0x62e8ef[_0x1dfd9a(0x21f)]([_0x2b66dd]),_0x62e8ef=_0x1c7e0a[_0x1dfd9a(0x2a6)](_0x62e8ef,(_0x38afcd=this[_0x1dfd9a(0x3a2)])==null?void 0x0:_0x38afcd[_0x1dfd9a(0x20d)]),_0x62e8ef['forEach'](_0x1862fb=>_0x26fae4[_0x1dfd9a(0x3b0)](_0x1862fb)),_0x26fae4[_0x1dfd9a(0xec)](_0x2954d5[_0x1dfd9a(0x14e)])[_0x1dfd9a(0x1c1)]({'priority':0x14,'interceptor':_0x2954d5[_0x1dfd9a(0x19d)]({'maxParallel':0x6})}),this['_initModules']();}[_0x5d4ae1(0x174)](){const _0x18c7ae=_0x5d4ae1;var _0x28f9a7,_0x4cb96c;(_0x28f9a7=this[_0x18c7ae(0x3a2)])!=null&&_0x28f9a7[_0x18c7ae(0x48a)]||this['_injector'][_0x18c7ae(0xec)](_0x488928[_0x18c7ae(0x296)])[_0x18c7ae(0x236)](),(_0x4cb96c=this[_0x18c7ae(0x3a2)])!=null&&_0x4cb96c[_0x18c7ae(0x2ea)]&&this['_injector']['get'](_0x3b6526);}},_0x396e7d(_0x488928['UniverCollaborationClientPlugin'],_0x5d4ae1(0x449),_0x1c47f6),_0x488928[_0x5d4ae1(0x243)]=_0x47b0e5([_0x1c7e0a[_0x5d4ae1(0x131)](_0x1aa573[_0x5d4ae1(0x2cc)]),_0x536a78(0x1,_0x1c7e0a[_0x5d4ae1(0x3d7)]),_0x536a78(0x2,_0x4fa573[_0x5d4ae1(0x274)](_0x4fa573[_0x5d4ae1(0x38e)]))],_0x488928['UniverCollaborationClientPlugin']),_0x488928[_0x5d4ae1(0xd3)]=_0x2a9272,_0x488928['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0x4e8e4a,_0x488928['COLLAB_WEB_SOCKET_URL_KEY']=_0x3eb7d7,_0x488928[_0x5d4ae1(0x20c)]=_0x340600,_0x488928[_0x5d4ae1(0x2e3)]=_0x925375,_0x488928['CommentService']=_0x4625c2,_0x488928['HEARTBEAT_INTERVAL_KEY']=_0x1f2c6f,_0x488928[_0x5d4ae1(0x2f9)]=_0x4ec6b1,_0x488928[_0x5d4ae1(0x353)]=_0x176724,_0x488928['IURLService']=_0x6ad376,_0x488928[_0x5d4ae1(0x156)]=_0x2d5df7,_0x488928['LOGIN_URL_KEY']=_0x5b8cb3,_0x488928[_0x5d4ae1(0x410)]=_0xedbb72,_0x488928[_0x5d4ae1(0x126)]=_0x7cbdce,_0x488928[_0x5d4ae1(0x3f7)]=_0x523aed,_0x488928[_0x5d4ae1(0x475)]=_0x3ea00b,_0x488928[_0x5d4ae1(0x10d)]=_0x5a1c14,_0x488928[_0x5d4ae1(0x1d3)]=_0x13c8b5,_0x488928[_0x5d4ae1(0x34e)]=_0x27edc0,Object[_0x5d4ae1(0x428)](_0x488928,Symbol[_0x5d4ae1(0x378)],{'value':_0x5d4ae1(0x3a3)});}));function _0x18a3(_0x4583fc,_0x35950d){const _0x2b26a2=_0x2b26();return _0x18a3=function(_0x18a310,_0x24a2bf){_0x18a310=_0x18a310-0xb0;let _0x1d4c83=_0x2b26a2[_0x18a310];return _0x1d4c83;},_0x18a3(_0x4583fc,_0x35950d);}function _0x2b26(){const _0x5e7d50=['onPointerMove$','UPDATE_PERMISSION_OBJ','round','HEARTBEAT','LIVESHARE_NEW_HOST','@univerjs/network','commentUpdateEvent','10540544LFfXiD','onStateChange','routeKey','getVpScrollXYInfoByPosToVp','max','collabStatus.conflict','_colorIndex','COLLAB_WEB_SOCKET_URL','sequenceExecute','_onConflict','error','serializeCombRequest','_getSaveTimeout','IMessageService','Shape','parseProtocolChangeset','ICollaborationSocketService','/allowed','onMissedChangesetFetched','endRow','random','ONLINE','use','YUUMI_UNABLE_LOAD_URL','from','CollaborationSocketService','toString','SNAPSHOT_HAS_BEEN_REMOVED','complete','takeUntil','c2Prime','PSEUDO_FETCH_MISSING_RESULT','SHOULD_CLOSE_CONN','ALREADY_EXISTS','take','addEventListener','COMPLETION_FINISHED','onlineStatus','_shapes','rxjs','set','_transformUndoredo','ISnapshotServerService','ERROR_IMAGE','UniverNetwork','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_undoRedoService','_clearHeartbeatTimer','trim','m2Prime','_session','delay','registerComponent','toStringTag','?url=','socketService','_decreaseWaiting','0\x200\x2017\x2016','getUnitId','isTransformMutationsWithChangesetSuccess','function','_updateStatus','concatMap','file','displayName','switchMap','idSuffix','unitId','column','_transitionLocked','LICENSE_MAX_UNITS_EXCEEDED','ITransformService','INGEST','_scheduleCollaborationTimeoutTimer','_logService','Injector','collabCursorState$','_render','univer-online','_getAPIPrefix','_sheetSkeletonManagerService','then','clipPath','getUndoRedoMutationParamsCache','xlink:href','RemoveRowCommandId','onlineStatusIcon','session.connection-failed','image/jpeg','_onFetchMissResult','subscribeEvent','enableLocalCache','getItem','currentSkeleton$','getTypeOfUnitDisposed$','_config','Module','onSendChangeset','liveShareOperation','getResourcesRequest','with','src','textRanges','getDataModel','makeDirty','/universer-api/stream/file/upload','/universer-api/snapshot/','createSocket','skeleton','add','url(#off-line-single_clip0_910_343)','clearTimeout','endColumn','_scheduleReconnection','getParam','transform','getUniverSheetInstance','LICENSE_IMPORT_SIZE_EXCEEDED','_loadDoc','IUndoRedoService','onMouseMove','[CollaborationUndoRedoService]','startColumn','_entities','_replaceFileID','_init','TOO_MANY_REQUESTS','/-/object/list','_docTransformSelectionsService','#FFF','setCurrentUser','roles','_awaitingChangeset','fillText','getValue','SetTextSelectionsOperation','_urlService','[DataLoaderController]','status','SYNCED','updateCursorEvent','UPDATE_CURSOR','mapDocumentTypeToUniverType','transformChangesets','has','indexOf','ImageSourceType','_exhaustRemoteChangesetQueue','ILogService','liveShareNewHost','_roomMembers','collaboration.closeRoom','gold400','image/bmp','VIEW_MAIN','_collaborationTimeoutTimer','[CollaborationState]:\x20apply\x20error!','_queuedRemoteChangesets','slice','target','combineLatest','uni.network.url-service','isTransformChangesetsSuccess','/block/','_heartbeatTimer','connectInjector','UniverCore','addObject','height','getCurrentSelections','UniverCollaboration','AuthzIoHttpService','_HTTPService','?size=','text','_collabSessionService','resourceIDs','_unlockTransition','1em','COMPRESS_MUTATION_SEND','SNAPSHOT_URL_KEY','_onCursorDelete','JOIN','RefRangeService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','show','getSheetObject','getSheetBlock','collabStatus.offline','sheetID','actions','_updateCollabCursors','_handleHover','_getAnchorBounding','open$','_scheduleTimestamp','sessionStatus$','LIVESHARE_FETCH_OPERATIONS','DocSkeletonManagerService','beginPath','onRemoteChangeset','dispose$','_name','_onRemoteRejected','_toggleOffline','SEND_CHANGESET_TIMEOUT_KEY','_onRefRangeChange','getMemberID','_getAPIPrefixPath','/universer-api/authz','unknown','_isPermissionRej','sessionStatus','[OfflineState]:\x20received\x20acknowledgement.','/universer-api/comb','cmd','fromEvent','subscribe','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_incrementRevisionNumber','b64DecodeUnicode','[CollaborationSessionService]','_cursors','unit','pushState','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','result','bottom','CollaborationController','defineProperty','_assignedColors','ws://127.0.0.1:8000/universer-api/comb/connect','UNDEFINED','_collabCursorState$','SUBMIT_CHANGESET','JOINING','userID','_getDocObject','_labelPosition','_configService','CollaborationSession','resolve','/object','_refRangeService','Univer','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_anchor','_localStorageService','_commentUpdate$','_clearRedo','getOwnPropertySymbols','lineTo','getUnitType','_onConnectionOpen','debounceTime','incrementRevForDocument','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','requireSession','path','ranges','[PendingState]:\x20received\x20rejection.','CONNECTOR_DATA_TOO_LARGE','pluginName','_socket','HEARTBEAT_TIMEOUT','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','/collaborator','registerOnClose','measureText','APPLY_NON_SEQUENTIAL_REVISION','transformMutation','@wendellhu/redi','_uiPartsService','@univerjs/engine-formula','send','fetchThroughInterceptors','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_handleEvent','_getMergeRange','saveImage','joinEvent','top','#fff','operators','getOffsetConfig','registerRefRange','_transformRemoteChangesetByIMECache','findNodePositionByCharIndex','black','executeCommand','transformByState','OnLifecycle','UserManagerService','Optional','_color','_schedule','/-/object/-/batch_allowed','getCurrentUser','_clearLocalCache','_id','revision','jiqing500','React','_startDocCollabCursor','UniverEngineFormula','setShapeProps','SessionStatus','LocaleService','INVALID_ARGUMENT','_members','startRow','fillRule','objects','extend','&to=','_change$','_onMessage','encode','find','InsertRangeMoveDownCommandId','_snapshotServerService','toggleOnline','CHANGESET_ACK','subUnitId','LIVESHARE_OPERATION','_getSheetObject','@univerjs/sheets-ui','enableOfflineEditing','_saveTaskMap','Vector2','RECV','getActiveSheet','_state','getImageSourceCache','7756oWWHmz','image/gif','call','_document','collabStatus.synced','editingUnit','726lZKaVc','originalMeta','collabStatus.notCollab','colorChannel1','getImage','conflict.title','_scheduleSaving','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','updateOfflineData','roomMembers$','string','sheets','currentTheme$','listCollaborators','fromCollab','row','IDLE','_notificationService','serializeRangeWithSheet','{fileID}','setTimeout','merge','reduce','doc.mutation.rich-text-editing','update','commentUpdate$','_docTransformIMECacheService','createInstance','_substituteUndoStack','fill','AUTHZ_URL_KEY','evenodd','_getSendChangesetTimeout','_showConflictNotification','MessageType','M0\x200H16V16H0z','_onUserLeave','onCommentUpdate','create','members','_range','_socket$','clsx','UNIVER_DOC','_socketReady','setAlpha','UniverDrawing','collaboratorID','flatMap','fetchMissingChangesets','_memberService','_initStatusListener','USERS_LEAVE','save','/universer-api/snapshot','get','_sendingTimer','UniverUi','EffectRefRangId','event$','url(#on-line-single_clip0_910_349)','disposeWithMe','IContextService','Starting','offline','UniverSheetsUi','CHANGESET_REVISION_CONFILICT','SNAPSHOT_INVALID_SNAPSHOT','@univerjs/sheets','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','forwardRef','snapshot','UNIVER_SHEET','_colorAssignService','LIVESHARE_REQUEST_HOST','_disabled','[CollaborationEntity]','onRemoteAck','div','COLLAB_SUBMIT_CHANGESET_URL','conflict','_unitId','serializeTextRange','purple300','concat','loadDoc','APPLY_REVISION_CONFILICT','selections','WebURLService','onPointerLeave$','_snapshotService','@univerjs/design','_getCurrentRevision','awaiting','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','focused$','0\x200\x2016\x2016','_lockTransition','defs','urlChange$','attrs','UNKNOWN_CODE','getRangePointData','session.will-retry','off-line-single_clip0_910_343','PERMISSION_REJ','red300','popstate','params','_sendHeartbeat','_removeClearOtherTimer','assignAColorForMemberID','lodash/debounce','SNAPSHOT_SERVER_URL_KEY','sheetId','_scheduleHeartbeat','setUndoRedoMutationParamsCache','translate(.97)','data','getRelativeToViewportCoord','ThemeService','IImageIoService','_injector','COMMENT_UPDATE','DependentOn','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_commentService','parse','PENDING','@univerjs/rpc','status$','InsertColCommandId','CollaborationSessionService','_localeService','IConfigService','url(#$1','SetWorksheetActivateCommand','/universer-api/oidc/authpage','_hover','confirm','isEditing','labelPosition','_transformService','/unit/','getInterceptPoints','Rect','_getSnapshotAPIPrefix','getViewport','_updateSubUnitFromURLParams','INotificationService','getCollabCursors$','_userManagerService','BASE64','HTTPService','HEADER_MENU','getActiveRange','_onRemoteACK','WorkbookEditablePermission','_sheetTransformSelectionsService','195746tWYfOf','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','LOCAL_CACHE_INTERVAL_KEY','changesets','@univerjs/docs','Plugin','isActive','getCurrentUnitForType','_cursorInfo$','connection\x20error','arc','save\x20fail\x20reason\x20is\x20','createIdentifier','getCellPositionByOffset','awaiting_with_pending','currentColor','_substituteRedoStack','newValue','isTransformMutationsWithChangesetFailure','_transformPreviousActiveRange','CollaborationEvent','_toggleOnline','ColorKit','CommandType','UNIVER_UNKNOWN','onStarting','MUTATION','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','url','synced','width','_remoteChangesetQueue','_initModules','OnLineSingle','FileId','createElement','setWaitCount','/resources','_clearCollaborationTimeoutTimer','[SyncedState]:\x20received\x20rejection.','interceptor','code','getTypeOfUnitAdded$','saveSheetBlock','@univerjs-pro/collaboration','2318350FCmnNc','reject','RevisionService','_roomMembers$','loadOfflineData','image/jpg','getViewModel','_type','session.room-full','stringify','2075395lZOpMb','on-line-single_clip0_910_349','onSyncEditingCollabCursor','getCurrentRevForDocument','handleInsertCol','_onConnectionFailed','OTHER_CLIENTS_EDITING','close','transformUndoRedo','min','BehaviorSubject','@univerjs/engine-render','contains','onTransformSelections','icon','AWAITING','_textBubble','mapTo','ThresholdInterceptorFactory','SEND_CHANGESET_TIMEOUT','CHANGESET_REJ','put','addImageSourceCache','getCollabEntity$','csRejEvent','restore','TEXT_RANGE_LAYER_INDEX','[UniverCollaborationClientPlugin]','collaboration.single-unit.warning','_selfUnitIDs','tag','onTransformIME','useDependency','11ezAlvP','getSheetId','_initUnitPermissionChange','session','_createSocket','_timeoutTimer','resend','color','_pendingMutations','APPLY_REJECT','asObservable','Subject','TextSelectionManagerService','UniverDocs','toggleOffline','_saveCache','[FetchMissState]','objectActions','IAuthzIoService','_acknowledgedAwaitingChangeset','UNIVER_SLIDE','registerHTTPInterceptor','patch','useObservable','_draw','handleDeleteRangeMoveUp','localeService','_createInitialStateImpl','DesktopCollaborationStatusDisplayController','_messageService','post','getDocObject','getFocusedUnit','RemoveColCommandId','_collaborationController','list','getUnitOnRev','rxjs/operators','entries','deserializeToCombResponse','CompressMutationService','registerBeforeClose','_onRemoteChangeset','transformStack\x20failed!','univer-online-status','range','OffLineSingle','updateCollaborator','defIds','deserializeRangeWithSheet','RETRY_CONNECTING_MAX_COUNT','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','error$','rev','getTime','@wendellhu/redi/react-bindings','@univerjs/ui','OFFLINE','onRemoteRej','setParam','onTransformRemoteChangesetByIMECache','syncEditingCollabCursor','VIEWPORT_KEY','_removeCollabCursors','NOT_COLLAB','_transformUndoRedoStack','DEFAULT_FILE_NAME','_unitStatus','delete','CONFLICT','3052821zrVxjj','textEncoder','_transformIMECache','_cachedData','_collabCursorController','saveChangeset','_http','_waitCount','[SyncedState]:\x20received\x20acknowledgement.','pauseCollaboration','_docSkeleton','ERROR_IMAGE_TYPE','_getUploadFileURL','isTransformMutationFailure','_singleActiveUnitService','body','NodePositionConvertToCursor','getRenderById','transformMutationsWithChangeset','AWAITING_WITH_PENDING','_onRecvEvent','baseRev','_lastPointer','_socketMessageSubscription','_ensureSubject','IHTTPImplementation','CollaborationStatus','override','updateMember','UniverSheets','_state$','_updateState','Error','_onLocalMutation','NEW_CHANGESETS','\x0aCurrent:\x20','online','getAncestorScale','_clearTimeoutTimer','addObjects','_executeRemoteChangeset','_undoStacks','searchParams','_hideTimer','unsubscribe','push','onPointerEnter$','HEARTBEAT_INTERVAL','NOT_FOUND','_applyRemoteChangeset','_syncEditingCollabCursorService','_setupSubUnitSync','NO_OTHER_CLIENTS_EDITING','_revisionService','startsWith','_unitOnClients','FETCH_MISS','_collaborationPaused','InsertRangeMoveRightCommandId','UniverInstanceType','permissionRejEvent','off-line-single','getSheetBySheetId','catch','removeMember','getMember','_onCombEvent','font','disableLocalCache','_handler','_createInitialState','LICENSE_EXPORT_SIZE_EXCEEDED','getOwnPropertyDescriptor','SheetPermissionInitController','HELLO','session.collaboration-timeout','_sessions','filter','deleteCollaborator','handleDeleteRangeMoveLeft','DeleteRangeMoveLeftCommandId','UniverCollaborationClientPlugin','cursorInfo$','handleInsertRow','current','_tryEnsureSocket','debug','apply','objectType','/universer-api/file/{fileID}/sign-url','clearInterval','_onCursorUpdate','YUUMI_URL_COL_OUT_OF_RANGE','split','setItem','USERS_ENTER','[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.','_ws','history','Workbook','/rev/','replace','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','POST','_localCacheService','_entityInit$','hovered','LIVESHARE_TERMINATE','whenReady','LifecycleStages','IMEInputManagerService','createCollaborator','COMPRESS_MUTATION_APPLY','_getSignURL','ICommandService','UniverIcon','[OfflineState]:\x20received\x20rejection.','closePath','univer-pro.collaboration-client.single-active-unit-service','workbook','enableSingleActiveInstanceLock','SUCCUSS','_submitChangeset','dispose','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','DeleteRangeMoveUpCommandId','react','state','pipe','FAIL','Inject','values','_handleLeaveEvent','_replayCachedMutations','\x0aAfter:\x20','_cursor','replaceTextRanges','allowed','cursorInfo','mutations','_themeService','collabStatus.syncing','onlineStatusTitle','onCommandExecuted','_onUserJoin','updatePermissionPoint','Disposable','_joinRoom','ImageUploadStatusType','appendMutation','univer-pro.collaboration-client-socket-service','[CollaborationSession]','SnapshotService','_initStatusComponent','shareReplay','_commandService','append','_docSyncEditingCollabCursorService','Steady','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','c1Prime','_drawRange','isPermissionRej','name','LocalCacheService','APPLY_PERMISSION_DENIED','_clearScheduledTask','collaborators','location','\x20in\x20_schedule.','_sendHeartbeatTimer','includes','_compressMutationService','/object/','batchAllowed','_hovered','_status$','_exhaustSavingTask','setInterval','m1Prime','mergeOverrideWithDependencies','amd','_scene','collaboration-client.offline-data-not-saved','_univerInstanceService','INTERNAL_ERROR','_getScale','memberID','EXCHANGE_SIGN_URL_SERVER_URL_KEY','isInternalEditorID','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','next','8396280foXcPg','_redoStacks','getCollabEntity','collaborationUniverTypes','DataLoaderController','size','className','_httpService','disposeUnit','RxDisposable','transformSelections','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','subunit','_clearUndo','_unitID','UUID','handleInsertRangeMoveDown','moveTo','collab-text-anchor-','_getRedoStack','clear','objectID','FETCH_MISSING','univer-online-status-icon','activeSheet$','_createHandler','UniverCollaborationPlugin','verdancy600','_renderManagerService','_transformStack','lodash','_eventUnsubscribe','drawWith','_onJoinRoomEvent','fetch_missing','getColor','PERMISSION_DENIED','init','hasOwnProperty','key','DisposableCollection','_beforeCloseService','assign','_updateURLWithCurrentState','Tools','_retryConnectingTimer','href','_rescheduleHeartbeatEvent','getWorkbookSelections','CollaborationStatusDisplay','useRef','unshift','toDisposable','_getCtorByUniverType','_event$','IUniverInstanceService','enableAuthServer','IPermissionService','_waitForHeartbeatResponse','handleMoveRange','InsertRowCommandId','awaitingChangeset','svg','univer-online-status-title','selection','_collaborationSessionService','exports','eventID','message$','_send','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','HEARTBEAT_TIMEOUT_KEY','_initCloseConn','_transformSelections','_removeRoom','FromArray','conflict.content','_online','editing\x20status\x20changed\x20to','transformRemoteChangeset','type','saveSnapshot','saveOfflineData','...','unitID','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','getUnitStatus$','permission.content','LICENSE_DISTRO_REJECTED','_getLoginPath','UNAUTHENTICATED','length','getConfig','debounce','_sessionStatus$','deepClone','close$','blue400','_checkMissing','none','UNRECOGNIZED','collaMsg','LEAVE','_permissionService','encodeURIComponent','BuiltInUIPart','roomMembers','isArray','_updateLocalCache','SheetSkeletonManagerService','submit\x20changeset\x20error!','prototype','rgba(255,\x20255,\x20255,\x200.01)','4hrQSQZ','map','leaveEvent','DocStateChangeManagerService','IUIPartsService','_imageSourceCache','parseChangesetToProtocol','handleIRemoveCol','ACTIVE_UNIT_EVENT_CHANNEL','forEach','[PendingState]:\x20received\x20acknowledgement.','_startCollaboration','_retryCount','_clearOtherTimers','generateRandomId','_startSheetCollabCursor','triggerDblclick','_updateLocalCursor','SetSelectionsOperation','_disableEditing','MSG_FOR_ERROR','_anchorDot','16YstyzG','children','_drawAnchor'];_0x2b26=function(){return _0x5e7d50;};return _0x2b26();}
|
1
|
+
function _0x4e3f(){const _0x4720aa=['@univerjs/design','_initModules','symbol','UniverNetwork','OnLifecycle','random','amd','roles','clsx','_univerInstanceService','open$','shouldCloseConn','_initStatusComponent','defineProperty','getValue','NOT_COLLAB','[CollaborationUndoRedoService]','getItem','LocalUndoRedoService','rxjs/operators','CommentService','textRanges','baseRev','_change$','reduce','offline','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_getCurrentRevision','members','_revisionService','interceptor','getCurrentUser','Optional','collaboration-client.offline-data-not-saved','_startDocCollabCursor','collaborationUniverTypes','getCollabEntity','_imageSourceCache','headers','error$','_schedule','_updateLocalCursor','status$','_transformSelections','_queuedRemoteChangesets','_injector','pipe','_snapshotServerService','setInterval','href','batchAllowed','isArray','_http','INVALID_ARGUMENT','serializeTextRange','EffectRefRangId','syncEditingCollabCursor','arc','registerOnClose','unitId','with','_disabled','_range','_createSocket','[OfflineState]:\x20received\x20rejection.','push','_logService','transformSelections','DEFAULT_FILE_NAME','SheetsSelectionsService','ILocalStorageService','all','unitID','asObservable','connection\x20error','_hideTimer','c1Prime','getUndoRedoMutationParamsCache','UniverSheets','_onLocalMutation','joinRsp','liveShareOperation','UniverUi','color','HEADER_MENU','toStringTag','_substituteUndoStack','getSheetObject','univer-pro.collaboration-client.single-active-unit-service','unload','_toggleOffline','_clearUndo','HTTPService','_getSendChangesetTimeout','editing\x20status\x20changed\x20to','getUnitType','userID','size','ALREADY_EXISTS','transformRemoteChangeset','take','_memberService','UNIVER_SLIDE','CollaborationStatusDisplay','_entityInit$','_initStatusListener','min','_collabSessionService','JOINING','_clearHeartbeatTimer','params','updateOfflineData','99fGRIcT','_urlService','fillStyle','sheets','getImageSourceCache','SetWorksheetActivateCommand','APPLY_REJECT','onRemoteChangeset','getDocObject','UNRECOGNIZED','IMessageService','transform','FETCH_MISSING','add','_getAPIPrefixPath','transformByState','toString','toRgbString','catch','_getMergeRange','_collaborationController','_onConflict','data','VIEWPORT_KEY','hovered','_HTTPService','[OfflineState]:\x20received\x20changeset.','IUndoRedoService','onTransformSelections','Tools','ICollaborationSocketService','_unlockTransition','row','createElement','popstate','createIdentifier','xlink:href','_onUserLeave','_docSyncEditingCollabCursorService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_updateState','defIds','clear','Starting','@univerjs/docs','_onRecvEvent','VIEW_MAIN','_saveCache','change$','443975lLQplB','name','ERROR_IMAGE','[DataLoaderController]','AuthzIoHttpService','title','code','textEncoder','@univerjs-pro/collaboration','_sendHeartbeatTimer','LIVESHARE_OPERATION','dispose','_cursorInfo$','APPLY_REVISION_CONFILICT','_initUnitPermissionChange','_scheduleClearOtherTimer','saveOfflineData','disposeWithMe','reverse','\x20to\x20','_sessions','OffLineSingle','labelPosition','SYNCED','/object','auth.needGotoLoginAlert','_handleJoinEvent','PERMISSION_REJ','_removeRoom','_undoStacks','json','createSocket','_onCursorUpdate','takeUntil','append','ColorKit','_clearRedo','_applyRemoteChangeset','1293180arngcp','CHANGESET_ACK','key','_initCloseConn','fetch_missing','_acknowledgedAwaitingChangeset','NodePositionConvertToCursor','onTransformIME','fromEvent','HEARTBEAT_TIMEOUT_KEY','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','LICENSE_DISTRO_REJECTED','JSONX','_tryEnsureSocket','SNAPSHOT_INVALID_SNAPSHOT','SetSelectionsOperation','_clearOtherTimers','SNAPSHOT_HAS_BEEN_REMOVED','selection','getColor','Disposable','DataLoaderController','TextSelectionManagerService','onlyLocal','univer-offline','getTime','collab-text-anchor-','state','show','SHOULD_CLOSE_CONN','debounce','isPermissionRej','DesktopCollaborationStatusDisplayController','_clearCollaborationTimeoutTimer','image/bmp','getCoordByCell','resend','operators','COLLAB_SUBMIT_CHANGESET_URL_KEY','file','UNIVER_DOC','onStateChange','subscribe','endColumn','currentTheme$','_localCacheService','/allowed','Rect','_drawAnchor','[CollaborationSession]','IImageIoService','newValue','_sendHeartbeat','_redoStacks','/universer-api/authz','_saveTaskMap','awaiting','initWorkbookPermissionChange','_compressMutationService','_awaitingChangeset','closeSession','deserializeToCombResponse','revision','AUTHZ_URL_KEY','EXCHANGE_SIGN_URL_SERVER_URL_KEY','some','apply','_onFetchMissResult','listCollaborators','text','RxDisposable','DocStateChangeManagerService','React','YUUMI_URL_COL_OUT_OF_RANGE','_roomMembers$','_collaborationSessionService','CollaborationController','[PendingState]:\x20received\x20acknowledgement.','_labelPosition','_ws','exports','getViewModel','ImageUploadStatusType','changesets','/rev/','status','displayName','setTimeout','_init','black','RETRY_CONNECTING_INTERVAL','toDisposable','onRemoteAck','/-/object/-/batch_allowed','enableOfflineEditing','FAIL','pending','ImageIoService','_handler','PENDING','_lockTransition','MSG_FOR_ERROR','\x20-\x20','disableLocalCache','parseChangesetToProtocol','debounceTime','updatePermissionObjEvent','children','collaboration.closeRoom','on-line-single_clip0_910_349','_renderManagerService','UNDEFINED','transformStack\x20failed!','RevisionService','createCollaborator','@wendellhu/redi/react-bindings','svg','_onConnectionOpen','Subject','_removeClearOtherTimer','InsertColCommandId','failed\x20to\x20apply\x20missed\x20changesets!','height','event$','handleDeleteRangeMoveLeft','getUnhiddenWorksheets','OnLineSingle','_decreaseWaiting','UniverCollaborationClientPlugin','className','setCurrentUser','_getSignURL','pushState','mutations','isTransformMutationsWithChangesetSuccess','PSEUDO_FETCH_MISSING_RESULT','YUUMI_UNABLE_LOAD_URL','COLLAB_WEB_SOCKET_URL_KEY','_drawRange','InsertRangeMoveDownCommandId','focused$','startsWith','LICENSE_IMPORT_SIZE_EXCEEDED','reject','round','_socket','USERS_LEAVE','has','_color','SessionStatus','handleInsertRangeMoveDown','getDataModel','MessageType','_refRangeService','LEAVE','getTypeOfUnitDisposed$','location','getActiveSheet','_state','_handleLeaveEvent','socket\x20close','#FFF','UPDATE_PERMISSION_OBJ','max','onPointerMove$','compose','propertyIsEnumerable','_localStorageService','ONLINE','[SyncedState]:\x20received\x20rejection.','0\x200\x2016\x2016','setParam','loadSheet','LICENSE_MAX_UNITS_EXCEEDED','[CollaborationSessionService]','fromCollab','LOGIN_URL_KEY','LIVESHARE_NEW_HOST','stringify','whenReady','fillRule','parse','complete','getViewport','LICENSE_EXPORT_SIZE_EXCEEDED','_getLoginPath','measureText','getUnitOnRev','_status$','OTHER_CLIENTS_EDITING','get','_anchorDot','setItem','SetTextSelectionsOperation','listRoles','isTransformChangesetsSuccess','objectType','UniverRpc','_scene','UNAUTHENTICATED','mapTo','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_retryCount','selections','_render','beginPath','LocalCacheService','permission.title','[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.','useRef','list','online','_getDocObject','putCollaborators','/block/','setShapeProps','deleteCollaborator','endRow','NOT_FOUND','_messageService','readAsDataURL','setActiveRange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','ThemeService','_scheduleSaving','memberID','then','_fetchMissChangesets','image/jpg','_updateLocalCache','IRenderManagerService','restore','getAncestorScale','_onJoinRoomEvent','current','_clearScheduledTask','#fff','[PendingState]:\x20unhandled\x20univer\x20type:\x20','icon','shareReplay','url(#$1','HELLO','HEARTBEAT_TIMEOUT','bottom','delay','_hovered','_substituteRedoStack','getOwnPropertyDescriptor','collabCursorState$','_waitForHeartbeatResponse','HEARTBEAT_INTERVAL','&to=','send','slice','INGEST','ImageSourceType','DocSkeletonManagerService','getActiveRange','error','updateCollaborator','[UniverCollaborationClientPlugin]','WebSocketService','transformIMECache','gold400','_unitID','socketService','_colorIndex','fill','LIVESHARE_TERMINATE','exhaustSavingTask','_localeService','_handleEvent','from','_getAnchorBounding','_socketReady','top','startRow','_cursors','_transformUndoRedoStack','incrementRevForDocument','_singleActiveUnitService','_replayCachedMutations','_startCollaboration','unit','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','merge','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','c2Prime','@univerjs/ui','use','WebURLService','onlineStatus','3069300ORpRjM','FileId','@univerjs/engine-render','commentUpdate$','_removeCollabCursors','Module','forEach','getCurrentSelections','commentUpdateEvent','_docTransformIMECacheService','verdancy600','COMPRESS_MUTATION_APPLY','\x20in\x20_schedule.','roomInfos','_online','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','@univerjs/sheets','doc.mutation.rich-text-editing','resolve','not_collab','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','handleInsertCol','_socketMessageSubscription','on-line-single','_unitOnClients','findNodePositionByCharIndex','mergeOverrideWithDependencies','updatePermissionPoint','colorChannel1','_handleHeartbeatEvent','onCommentUpdate','4nfvfbs','makeDirty','saveChangeset','create','SheetCollabCursorShape','_shapes','CollaborationSessionService','RegularPolygon','Warning','POST','_lastPointer','setAlpha','_disableEditing','COMPRESS_MUTATION_SEND','/-/object/list','_collabCursorController','CommandType','sheetId','permission.content','getCollabEntity$','CONFLICT','IMEInputManagerService','WorkbookEditablePermission','save','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','react','_getRedoStack','@univerjs/rpc','awaitingChangeset','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','switchMap','onlineStatusTitle','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[CollaborationEntity]','UniverCollaborationPlugin','_createInitialState','split','UNKNOWN_CMD','[CollaborationSessionService]:\x20socket\x20error','DeleteRangeMoveLeftCommandId','flatMap','includes','synced','originalMeta','22463AmkUyA','_getSaveTimeout','COMPLETION_FINISHED','attrs','trim','serializeCombRequest','_state$','_initMergeInterceptor','resourceIDs','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_transformStack','getParam','toggleOnline','sessionStatus','SUBMIT_CHANGESET','unshift','_cursor','_exhaustRemoteChangesetQueue','COLORS','LIVESHARE_REQUEST_HOST','update','UniverEngineFormula','onMouseMove','_loadSheet','collaMsg','createInstance','_clearLocalCache','/new_changes','evenodd','clearInterval','MUTATION','onTransformRemoteChangesetByIMECache','Workbook','NO_OTHER_CLIENTS_EDITING','_document','IPermissionService','getConfig','BuiltInUIPart','infoRsp','put','triggerDblclick','_pendingMutations','_collaborationTimeoutTimer','\x0aCurrent:\x20','_executeRemoteChangeset','_onRefRangeChange','objectActions','/collaborator','_onCursorDelete','unknown','_getCtorByUniverType','_getUndoStack','getRoom','XHRHTTPImplementation','image/jpeg','onSyncEditingCollabCursor','\x0aAfter:\x20','getFocusedUnit','tag','/universer-api/snapshot/','CHANGESET_REVISION_CONFILICT','indexOf','parseProtocolChangeset','method','path','_transitionLocked','transformChangesets','5367555EzVRjU','_members','deepClone','_userManagerService','combineLatest','session.connection-failed','localeService','_cachedData','_beforeCloseService','values','_assignedColors','pluginName','_waitCount','_ensureSubject','Ready','_socket$','collabStatus.offline','_transformRemoteChangesetByIMECache','TOO_MANY_REQUESTS','urlChange$','hide','_onConnectionFailed','20067iuvKsH','_colorAssignService','_clearTimeoutTimer','UPDATE_CURSOR','univer-online','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','currentSkeleton$','_unitId','_updateURLWithCurrentState','LocaleService','IURLService','entries','SheetPermissionInitController','setWaitCount','/fetchmissing?from=','hasOwnProperty','addObject','editingUnit','Shape','mapDocumentTypeToUniverType','getInterceptPoints','/universer-api/stream/file/upload','isTransformMutationsWithChangesetFailure','_transformService','MoveRangeCommandId','_httpService','setUndoRedoMutationParamsCache','getMergeData','searchParams','transformUndoRedo','onRemoteRej','_entities','rgba(255,\x20255,\x20255,\x200.01)','_collabCursorState$','b64DecodeUnicode','set','encodeURIComponent','getRangePointData','_anchor','sequenceExecute','_commentService','UniverDesign','/object/','IUniverInstanceService','lodash/debounce','replaceTextRanges','assignAColorForMemberID','snapshot','CollaborationSession','ITransformService','_docTransformSelectionsService','RECV','getSheetBySheetId','BASE64','saveSnapshot','rxjs','close','connectInjector','getUnitStatus$','_handleHover','substring','init','idSuffix','Injector','addEventListener','ILogService','IDLE','unsubscribe','_replaceFileID','getSheetId','?size=','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','_getSheetObject','url','getCellPositionByOffset','removeParam','LIVESHARE_FETCH_OPERATIONS','_setupSubUnitSync','UNIVER_COLLABORATION_CLIENT_PLUGIN','off-line-single_clip0_910_343','FromArray','history','InsertRangeMoveRightCommandId','off-line-single','isActive','APPLY_PERMISSION_DENIED','SNAPSHOT_SERVER_URL_KEY','1em','getVpScrollXYInfoByPosToVp','updateMember','_permissionService','post','M0\x200H16V16H0z','RemoveRowCommandId','_type','28LGCPzk','IHTTPImplementation','column','_isPermissionRej','UNIVER_UNKNOWN','...','_syncEditingCollabCursor','getTypeOfUnitAdded$','_timeoutTimer','IContextService','registerBeforeClose','result','_heartbeatTimer','useDependency','loadOfflineData','executeCommand','call','body','Error','width','TEXT_RANGE_LAYER_INDEX','patch','docStateChange$','closePath','roomMembers$','_commentUpdate$','_incrementRevisionNumber','isTransformMutationFailure','_snapshotService','_event$','_name','requireSession','sessionStatus$','div','COLLAB_WEB_SOCKET_URL','_onRemoteRejected','dispose$','find','map','UNIVER_SHEET','generateRandomId','appendMutation','actions','csAckEvent','InsertRowCommandId','_eventUnsubscribe','_sheetTransformSelectionsService','_session','CompressMutationService','isInternalEditorID','translate(.97)','liveShareNewHost','subunit','handleDeleteRangeMoveUp','JOIN','collabStatus.conflict','@univerjs/engine-formula','addObjects','collabStatus.synced','prototype','extend','LifecycleStages','m1Prime','session.will-retry','_toggleOnline','onCommandExecuted','_onCombEvent','CollaborationSocketService','UUID','ICommandService','blue400','collaboration.single-unit.warning','Inject','joinEvent','getMemberID','SheetCollaborationEntity','handleInsertRangeMoveRight','fetchThroughInterceptors','_scheduleReconnection','image/gif','@univerjs/sheets-ui','_id','onSendChangeset','_backgroundColor','removeMember','_sendingTimer','CollaborationEvent','transformMutation','_docStateChangeManagerService','_config','session','IUIPartsService','CHANGESET_REJ','_hover','src','BehaviorSubject','AWAITING_WITH_PENDING','cmd','_roomMembers','_loadDoc','@univerjs/network','RemoveColCommandId','_send','_socketService','next','forwardRef','getMember','DisposableCollection','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','length','registerRefRange','subscribeEvent','@wendellhu/redi','Plugin','onPointerEnter$','[SyncedState]:\x20received\x20acknowledgement.','ISnapshotServerService','/unit/','concatMap','Unknown\x20user','addImageSourceCache','cursorInfo$','_collaborationPaused','getCollabCursors$','replaceState','_scheduleHeartbeat','delete','@univerjs/core','debug','Vector2','_docSkeletonManagerService','deserializeRangeWithSheet','action','_scheduleTimestamp','onMissedChangesetFetched','IRemoteInstanceService','_draw','concat','_sheetSkeletonManagerService','_onRemoteACK','IConfigService','range','UniverInstanceType','UniverDocs','saveSheetBlock','cursorInfo','_selfUnitIDs','save\x20fail\x20reason\x20is\x20','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','serializeRangeWithSheet','_getSnapshotAPIPrefix','_setupBeforeClosingHandler','/universer-api/comb','fillText','_commandService','objectID','LOCAL_CACHE_INTERVAL','getRenderById','USERS_ENTER','clearTimeout','function','disposeUnit','image/png','sheetID','currentColor','SNAPSHOT_URL_KEY','routeKey','_updateCollabCursors','registerComponent','@univerjs/drawing','target','toggleOffline','newCsEvent','UniverDrawing','_retryConnectingTimer','collabStatus.notCollab','eventID','requestParams','type','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','message$','_sessionStatus$','string','NEW_CHANGESETS','defs','assign','HEARTBEAT','_joinRoom','state$','confirm','FETCH_MISS','conflict.content','OFFLINE','getCurrentRevForDocument','_themeService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_submitChangeset','_scheduleCollaborationTimeoutTimer','8UqfLin','_getUploadFileURL','SEND_CHANGESET_TIMEOUT','_configService','m2Prime','UNKNOWN_CODE','RefRangeService','getUnitId','_syncEditingCollabCursorService','filter','APPLY_NON_SEQUENTIAL_REVISION','_startSheetCollabCursor','UniverCollaborationClient','_remoteChangesetQueue','_undoRedoService','lineTo','_onMessage','_createInitialStateImpl','_getScale','fetchMissingChangesets','encode','_updateSubUnitFromURLParams','registerHTTPInterceptor','subUnitId','skeleton','_createHandler','awaiting_with_pending','PERMISSION_DENIED','getCurrentUnitForType','[FetchMissState]','DependentOn','_getAPIPrefix','_onRemoteChangeset','SnapshotServerOverHTTPService','drawWith','/role','CollaborationStatus','_updateStatus','none','_unitStatus','COMMENT_UPDATE','_rescheduleHeartbeatEvent','submit\x20changeset\x20error!','close$','transformMutationsWithChangeset','567070dMJdpt','ranges','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','_checkMissing','getResourcesRequest','ERROR_EXCEED_SIZE','univer-online-status-title','INTERNAL_ERROR','UniverIcon','_notificationService','_textBubble','_transformIMECache'];_0x4e3f=function(){return _0x4720aa;};return _0x4e3f();}function _0x2301(_0x589ac2,_0x554653){const _0x4e3f1c=_0x4e3f();return _0x2301=function(_0x230114,_0x389d3a){_0x230114=_0x230114-0x130;let _0x13cf3d=_0x4e3f1c[_0x230114];return _0x13cf3d;},_0x2301(_0x589ac2,_0x554653);}(function(_0x495513,_0x3bc793){const _0x3ad2a9=_0x2301,_0x57d99c=_0x495513();while(!![]){try{const _0x44e1e1=parseInt(_0x3ad2a9(0x192))/0x1*(parseInt(_0x3ad2a9(0x24a))/0x2)+parseInt(_0x3ad2a9(0x1eb))/0x3*(-parseInt(_0x3ad2a9(0x166))/0x4)+-parseInt(_0x3ad2a9(0x33d))/0x5+-parseInt(_0x3ad2a9(0x147))/0x6+parseInt(_0x3ad2a9(0x3ea))/0x7+parseInt(_0x3ad2a9(0x310))/0x8*(-parseInt(_0x3ad2a9(0x1d5))/0x9)+-parseInt(_0x3ad2a9(0x410))/0xa*(-parseInt(_0x3ad2a9(0x3b9))/0xb);if(_0x44e1e1===_0x3bc793)break;else _0x57d99c['push'](_0x57d99c['shift']());}catch(_0x55f3c9){_0x57d99c['push'](_0x57d99c['shift']());}}}(_0x4e3f,0x4c979),function(_0x42561d,_0x40450b){const _0x3f3736=_0x2301;typeof exports=='object'&&typeof module<'u'?_0x40450b(exports,require(_0x3f3736(0x2c9)),require('@univerjs/sheets'),require(_0x3f3736(0x349)),require(_0x3f3736(0x143)),require('@univerjs-pro/collaboration'),require(_0x3f3736(0x2ba)),require(_0x3f3736(0x222)),require(_0x3f3736(0x35c)),require(_0x3f3736(0x3e5)),require(_0x3f3736(0x2ae)),require(_0x3f3736(0x2f3)),require(_0x3f3736(0x282)),require('lodash/debounce'),require(_0x3f3736(0x149)),require(_0x3f3736(0x29a)),require('@wendellhu/redi/react-bindings'),require(_0x3f3736(0x17f)),require('clsx'),require(_0x3f3736(0x181))):typeof define==_0x3f3736(0x2ea)&&define[_0x3f3736(0x34f)]?define([_0x3f3736(0x460),_0x3f3736(0x2c9),_0x3f3736(0x157),_0x3f3736(0x349),_0x3f3736(0x143),_0x3f3736(0x3f2),_0x3f3736(0x2ba),_0x3f3736(0x222),'rxjs/operators',_0x3f3736(0x3e5),_0x3f3736(0x2ae),'@univerjs/drawing',_0x3f3736(0x282),_0x3f3736(0x217),'@univerjs/engine-render',_0x3f3736(0x29a),_0x3f3736(0x483),'react',_0x3f3736(0x351),_0x3f3736(0x181)],_0x40450b):(_0x42561d=typeof globalThis<'u'?globalThis:_0x42561d||self,_0x40450b(_0x42561d[_0x3f3736(0x31c)]={},_0x42561d['UniverCore'],_0x42561d[_0x3f3736(0x397)],_0x42561d[_0x3f3736(0x214)],_0x42561d[_0x3f3736(0x39b)],_0x42561d['UniverCollaboration'],_0x42561d[_0x3f3736(0x2ba)],_0x42561d[_0x3f3736(0x222)],_0x42561d[_0x3f3736(0x222)][_0x3f3736(0x435)],_0x42561d[_0x3f3736(0x2d9)],_0x42561d[_0x3f3736(0x34c)],_0x42561d[_0x3f3736(0x2f7)],_0x42561d[_0x3f3736(0x1a7)],_0x42561d['lodash'][_0x3f3736(0x42e)],_0x42561d['UniverEngineRender'],_0x42561d['UniverSheetsUi'],_0x42561d[_0x3f3736(0x483)],_0x42561d[_0x3f3736(0x458)],_0x42561d[_0x3f3736(0x351)],_0x42561d[_0x3f3736(0x4d5)]));}(this,function(_0x99db31,_0x495bbc,_0x344713,_0x153393,_0x510d97,_0x2a1cda,_0xff0938,_0x11b67e,_0x3e7fcd,_0x257327,_0x19613,_0x2369bd,_0x4da4df,_0x5be5a1,_0x4ec763,_0x3630b0,_0x3dcb78,_0x593db6,_0x592c4d,_0x1ffb28){'use strict';const _0x4b1ec3=_0x2301;var _0x26e2f4=Object[_0x4b1ec3(0x356)],_0x34aa51=(_0x2da2ef,_0x538bcd,_0x1a3ef4)=>_0x538bcd in _0x2da2ef?_0x26e2f4(_0x2da2ef,_0x538bcd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a3ef4}):_0x2da2ef[_0x538bcd]=_0x1a3ef4,_0x5d8027=(_0x5e3634,_0x3d90c0,_0x4aa926)=>_0x34aa51(_0x5e3634,typeof _0x3d90c0!=_0x4b1ec3(0x34b)?_0x3d90c0+'':_0x3d90c0,_0x4aa926);const _0xd3e7a0=_0x4b1ec3(0x241),_0x6829da='/universer-api/snapshot',_0x53202c=_0x4b1ec3(0x2ef),_0x432ad5=_0x4b1ec3(0x312),_0x10840c=_0x4b1ec3(0x26c),_0x156730='ws://127.0.0.1:8000/universer-api/comb/connect',_0x2d4fc5=_0x4b1ec3(0x50a),_0x137805=_0x4b1ec3(0x502),_0x59a48f=_0x4b1ec3(0x46a),_0x556fbe='RETRY_CONNECTING_MAX_COUNT',_0x514191=_0x4b1ec3(0x2e6),_0x339c6c='COLLAB_SUBMIT_CHANGESET_URL',_0x2dd5c6=_0x4b1ec3(0x2e2),_0x517cd6='LOGIN_URL_KEY',_0x5d76ae='/universer-api/oidc/authpage';var _0x357dad=(_0x4a9449=>(_0x4a9449[_0x4a9449['UNDEFINED']=0x0]=_0x4b1ec3(0x47f),_0x4a9449[_0x4a9449['OK']=0x1]='OK',_0x4a9449[_0x4a9449[_0x4b1ec3(0x344)]=0x2]=_0x4b1ec3(0x344),_0x4a9449[_0x4a9449[_0x4b1ec3(0x32b)]=0x3]='PERMISSION_DENIED',_0x4a9449[_0x4a9449[_0x4b1ec3(0x4ea)]=0x4]=_0x4b1ec3(0x4ea),_0x4a9449[_0x4a9449[_0x4b1ec3(0x4d7)]=0x5]=_0x4b1ec3(0x4d7),_0x4a9449[_0x4a9449[_0x4b1ec3(0x3ab)]=0x6]=_0x4b1ec3(0x3ab),_0x4a9449[_0x4a9449[_0x4b1ec3(0x37e)]=0x7]=_0x4b1ec3(0x37e),_0x4a9449[_0x4a9449['TOO_MANY_REQUESTS']=0x8]=_0x4b1ec3(0x1e7),_0x4a9449[_0x4a9449[_0x4b1ec3(0x194)]=0x9]=_0x4b1ec3(0x194),_0x4a9449[_0x4a9449['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4b1ec3(0x1ce),_0x4a9449[_0x4a9449[_0x4b1ec3(0x41e)]=0x1771]=_0x4b1ec3(0x41e),_0x4a9449[_0x4a9449[_0x4b1ec3(0x421)]=0x1772]=_0x4b1ec3(0x421),_0x4a9449[_0x4a9449[_0x4b1ec3(0x3bf)]=0x1b59]='APPLY_REJECT',_0x4a9449[_0x4a9449[_0x4b1ec3(0x31a)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4a9449[_0x4a9449[_0x4b1ec3(0x3f7)]=0x1b5b]=_0x4b1ec3(0x3f7),_0x4a9449[_0x4a9449[_0x4b1ec3(0x240)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x4a9449[_0x4a9449['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x4a9449[_0x4a9449['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4b1ec3(0x4bd),_0x4a9449[_0x4a9449[_0x4b1ec3(0x363)]=0x232a]=_0x4b1ec3(0x363),_0x4a9449[_0x4a9449[_0x4b1ec3(0x49e)]=0x232b]=_0x4b1ec3(0x49e),_0x4a9449[_0x4a9449[_0x4b1ec3(0x4c8)]=0x232c]=_0x4b1ec3(0x4c8),_0x4a9449[_0x4a9449[_0x4b1ec3(0x41b)]=0x232d]=_0x4b1ec3(0x41b),_0x4a9449[_0x4a9449['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4b1ec3(0x498),_0x4a9449[_0x4a9449['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x4b1ec3(0x459),_0x4a9449[_0x4a9449[_0x4b1ec3(0x3c2)]=-0x1]=_0x4b1ec3(0x3c2),_0x4a9449))(_0x357dad||{}),_0x1ffbf2=(_0x50f7a5=>(_0x50f7a5[_0x50f7a5[_0x4b1ec3(0x24e)]=0x0]=_0x4b1ec3(0x24e),_0x50f7a5[_0x50f7a5[_0x4b1ec3(0x438)]=0x1]=_0x4b1ec3(0x438),_0x50f7a5[_0x50f7a5[_0x4b1ec3(0x271)]=0x2]=_0x4b1ec3(0x271),_0x50f7a5[_0x50f7a5[_0x4b1ec3(0x3af)]=0x3]='UNIVER_SLIDE',_0x50f7a5[_0x50f7a5[_0x4b1ec3(0x3c2)]=-0x1]=_0x4b1ec3(0x3c2),_0x50f7a5))(_0x1ffbf2||{}),_0x3dfcc2=(_0x5cc285=>(_0x5cc285[_0x5cc285[_0x4b1ec3(0x18b)]=0x0]='UNKNOWN_CMD',_0x5cc285[_0x5cc285[_0x4b1ec3(0x501)]=0x1]=_0x4b1ec3(0x501),_0x5cc285[_0x5cc285[_0x4b1ec3(0x280)]=0x2]=_0x4b1ec3(0x280),_0x5cc285[_0x5cc285[_0x4b1ec3(0x4aa)]=0x3]=_0x4b1ec3(0x4aa),_0x5cc285[_0x5cc285[_0x4b1ec3(0x50e)]=0x4]=_0x4b1ec3(0x50e),_0x5cc285[_0x5cc285[_0x4b1ec3(0x304)]=0x5]='HEARTBEAT',_0x5cc285[_0x5cc285[_0x4b1ec3(0x21e)]=0x6]=_0x4b1ec3(0x21e),_0x5cc285[_0x5cc285[_0x4b1ec3(0x3c2)]=-0x1]=_0x4b1ec3(0x3c2),_0x5cc285))(_0x3dfcc2||{}),_0xb11f76=(_0x19daf6=>(_0x19daf6[_0x19daf6[_0x4b1ec3(0x315)]=0x0]='UNKNOWN_CODE',_0x19daf6[_0x19daf6['OK']=0x1]='OK',_0x19daf6[_0x19daf6[_0x4b1ec3(0x46f)]=0x2]='FAIL',_0x19daf6[_0x19daf6[_0x4b1ec3(0x3c2)]=-0x1]=_0x4b1ec3(0x3c2),_0x19daf6))(_0xb11f76||{}),_0x144fc5=Object[_0x4b1ec3(0x356)],_0x31c161=Object[_0x4b1ec3(0x507)],_0x3ff82a=(_0x326a1b,_0x23df09,_0x4670dd,_0x171b71)=>{const _0x40e557=_0x4b1ec3;for(var _0x2ed949=_0x171b71>0x1?void 0x0:_0x171b71?_0x31c161(_0x23df09,_0x4670dd):_0x23df09,_0x5a7135=_0x326a1b[_0x40e557(0x2b7)]-0x1,_0x20355e;_0x5a7135>=0x0;_0x5a7135--)(_0x20355e=_0x326a1b[_0x5a7135])&&(_0x2ed949=(_0x171b71?_0x20355e(_0x23df09,_0x4670dd,_0x2ed949):_0x20355e(_0x2ed949))||_0x2ed949);return _0x171b71&&_0x2ed949&&_0x144fc5(_0x23df09,_0x4670dd,_0x2ed949),_0x2ed949;},_0x531d22=(_0x578f58,_0x3f82ff)=>(_0xebe658,_0xc957b4)=>_0x3f82ff(_0xebe658,_0xc957b4,_0x578f58);let _0x384a59=class extends _0x495bbc[_0x4b1ec3(0x424)]{constructor(_0x43527d,_0x187563){const _0x404e74=_0x4b1ec3;super(),_0x5d8027(this,_0x404e74(0x2ac),new Map()),(this[_0x404e74(0x352)]=_0x43527d,this['_userManagerService']=_0x187563,this[_0x404e74(0x3fb)](_0x495bbc[_0x404e74(0x46b)](_0x11b67e['merge'](this[_0x404e74(0x352)]['getTypeOfUnitDisposed$'](_0x495bbc['UniverInstanceType'][_0x404e74(0x271)])['pipe'](_0x3e7fcd[_0x404e74(0x270)](_0x4753b8=>_0x4753b8[_0x404e74(0x317)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x495bbc[_0x404e74(0x2d8)]['UNIVER_DOC'])[_0x404e74(0x377)](_0x3e7fcd[_0x404e74(0x270)](_0x11e45a=>_0x11e45a[_0x404e74(0x317)]())),this['_univerInstanceService'][_0x404e74(0x4ab)](_0x495bbc[_0x404e74(0x2d8)][_0x404e74(0x3af)])[_0x404e74(0x377)](_0x3e7fcd['map'](_0x3d4ad2=>_0x3d4ad2['getUnitId']())))[_0x404e74(0x43a)](_0x2bfb68=>this[_0x404e74(0x406)](_0x2bfb68)))));}[_0x4b1ec3(0x492)](_0x126cbd){const _0x344da9=_0x4b1ec3;this[_0x344da9(0x1d8)][_0x344da9(0x492)](_0x126cbd);}[_0x4b1ec3(0x368)](){const _0x2608e7=_0x4b1ec3;return this[_0x2608e7(0x1d8)]['getCurrentUser']();}[_0x4b1ec3(0x244)](_0xeb4ed3,_0x29831f){const _0x501968=_0x4b1ec3;let _0x5e9a3a=this[_0x501968(0x2ac)][_0x501968(0x4ce)](_0xeb4ed3);_0x5e9a3a||(_0x5e9a3a=new _0x4dff48(),this[_0x501968(0x2ac)][_0x501968(0x20e)](_0xeb4ed3,_0x5e9a3a)),_0x5e9a3a[_0x501968(0x244)](_0x29831f);}[_0x4b1ec3(0x29e)](_0x4c4305,_0x3f8a59){const _0x2a49dd=_0x4b1ec3,_0x42bf65=this[_0x2a49dd(0x2ac)][_0x2a49dd(0x4ce)](_0x4c4305);_0x42bf65&&_0x42bf65['removeMember'](_0x3f8a59);}[_0x4b1ec3(0x1c6)](_0x4ceabf){const _0x1a6f1e=_0x4b1ec3;return this[_0x1a6f1e(0x2ac)][_0x1a6f1e(0x4ce)](_0x4ceabf);}[_0x4b1ec3(0x2b4)](_0x12fb1b,_0x1a7562){const _0x442f69=_0x4b1ec3,_0xefe6f3=this[_0x442f69(0x2ac)]['get'](_0x12fb1b);if(_0xefe6f3)return _0xefe6f3[_0x442f69(0x2b4)](_0x1a7562);}[_0x4b1ec3(0x406)](_0x39c11b){const _0x7adedb=_0x4b1ec3,_0x5a0b11=this[_0x7adedb(0x2ac)][_0x7adedb(0x4ce)](_0x39c11b);_0x5a0b11&&(_0x5a0b11[_0x7adedb(0x3f5)](),this[_0x7adedb(0x2ac)]['delete'](_0x39c11b));}[_0x4b1ec3(0x3f5)](){const _0x1c8534=_0x4b1ec3;this[_0x1c8534(0x2ac)]['forEach'](_0x51ae08=>_0x51ae08[_0x1c8534(0x3f5)]()),this[_0x1c8534(0x2ac)][_0x1c8534(0x3e3)]();}};_0x384a59=_0x3ff82a([_0x531d22(0x0,_0x495bbc['IUniverInstanceService']),_0x531d22(0x1,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc['UserManagerService']))],_0x384a59);class _0x4dff48 extends _0x495bbc[_0x4b1ec3(0x424)]{constructor(){const _0x170e7c=_0x4b1ec3;super(...arguments),_0x5d8027(this,_0x170e7c(0x1d6),new Map());}[_0x4b1ec3(0x3f5)](){const _0x5e3f8b=_0x4b1ec3;this[_0x5e3f8b(0x1d6)][_0x5e3f8b(0x3e3)]();}[_0x4b1ec3(0x244)](_0x3a71fe){const _0x14d4e5=_0x4b1ec3;this[_0x14d4e5(0x1d6)][_0x14d4e5(0x20e)](_0x3a71fe[_0x14d4e5(0x4f1)],_0x3a71fe);}[_0x4b1ec3(0x29e)](_0x287f1b){const _0x435e50=_0x4b1ec3;this['_members'][_0x435e50(0x2c8)](_0x287f1b);}[_0x4b1ec3(0x2b4)](_0x48413d){const _0x485f73=_0x4b1ec3;return this[_0x485f73(0x1d6)][_0x485f73(0x4ce)](_0x48413d);}}function _0x3ee14d(_0x5beb0f){const _0x20f2f3=_0x4b1ec3;var _0x58fcf6,_0x521145,_0x5416b4,_0x149d85;const _0x2386e9=_0x5beb0f['data'],_0x38818a=JSON[_0x20f2f3(0x4c5)](_0x2386e9);switch(_0x38818a[_0x20f2f3(0x2ab)]){case _0x3dfcc2[_0x20f2f3(0x304)]:case _0x3dfcc2[_0x20f2f3(0x501)]:{const _0x23534f=_0x38818a[_0x20f2f3(0x1b8)];return{..._0x38818a,'data':_0x23534f,'cmd':_0x38818a[_0x20f2f3(0x2ab)]};}case _0x3dfcc2['JOIN']:{const _0x3e9186=_0x38818a[_0x20f2f3(0x399)];return{..._0x38818a,'data':_0x3e9186,'cmd':_0x38818a['cmd']};}case _0x3dfcc2[_0x20f2f3(0x21e)]:{const _0x76af18=_0x38818a[_0x20f2f3(0x1aa)];switch(_0x76af18[_0x20f2f3(0x2fa)]){case _0x2a1cda['CollaborationEvent']['PERMISSION_REJ']:return{..._0x38818a,'data':{..._0x76af18,'data':(_0x58fcf6=_0x76af18['permissionRejEvent'])==null?void 0x0:_0x58fcf6['cs']},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda['CollaborationEvent']['CHANGESET_ACK']:return{..._0x38818a,'data':{..._0x76af18,'data':(_0x521145=_0x76af18[_0x20f2f3(0x275)])==null?void 0x0:_0x521145['cs']},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda[_0x20f2f3(0x2a0)][_0x20f2f3(0x301)]:return{..._0x38818a,'data':{..._0x76af18,'data':(_0x5416b4=_0x76af18[_0x20f2f3(0x2f6)])==null?void 0x0:_0x5416b4['cs']},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda[_0x20f2f3(0x2a0)]['CHANGESET_REJ']:return{..._0x38818a,'data':{..._0x76af18,'data':(_0x149d85=_0x76af18['csRejEvent'])==null?void 0x0:_0x149d85['cs']},'cmd':_0x38818a['cmd']};case _0x2a1cda[_0x20f2f3(0x2a0)][_0x20f2f3(0x1ee)]:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18['updateCursorEvent']},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda['CollaborationEvent'][_0x20f2f3(0x2e8)]:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18[_0x20f2f3(0x293)]},'cmd':_0x38818a['cmd']};case _0x2a1cda[_0x20f2f3(0x2a0)][_0x20f2f3(0x4a2)]:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18['leaveEvent']},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18[_0x20f2f3(0x27d)]},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda['CollaborationEvent'][_0x20f2f3(0x237)]:case _0x2a1cda[_0x20f2f3(0x2a0)]['LIVESHARE_OPERATION']:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18[_0x20f2f3(0x39a)]},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda[_0x20f2f3(0x2a0)]['LIVESHARE_TERMINATE']:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18[_0x20f2f3(0x27d)]},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda['CollaborationEvent'][_0x20f2f3(0x475)]:return{..._0x38818a,'data':_0x76af18,'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda[_0x20f2f3(0x2a0)]['COMMENT_UPDATE']:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18[_0x20f2f3(0x14f)]},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18[_0x20f2f3(0x47a)]},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda['CollaborationEvent'][_0x20f2f3(0x42d)]:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18[_0x20f2f3(0x354)]},'cmd':_0x38818a['cmd']};default:return _0x38818a;}}default:return _0x38818a;}}function _0xbba3c4(_0x267bed){const _0x2f62c9=_0x4b1ec3;switch(_0x267bed[_0x2f62c9(0x2ab)]){case _0x3dfcc2[_0x2f62c9(0x304)]:case _0x3dfcc2[_0x2f62c9(0x501)]:return JSON[_0x2f62c9(0x4c2)]({'cmd':_0x267bed[_0x2f62c9(0x2ab)],'routeKey':_0x267bed[_0x2f62c9(0x2f0)]});case _0x3dfcc2[_0x2f62c9(0x50e)]:{let _0x250845;switch(_0x267bed['data'][_0x2f62c9(0x2fa)]){case _0x2a1cda[_0x2f62c9(0x2a0)]['UPDATE_CURSOR']:{_0x250845={'eventID':_0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x1ee)],'updateCursorEvent':_0x267bed[_0x2f62c9(0x3cf)][_0x2f62c9(0x3cf)]};break;}case _0x2a1cda[_0x2f62c9(0x2a0)]['USERS_LEAVE']:{_0x250845={'eventID':_0x2a1cda[_0x2f62c9(0x2a0)]['USERS_LEAVE'],'leaveEvent':_0x267bed['data']['data']};break;}case _0x2a1cda['CollaborationEvent'][_0x2f62c9(0x2e8)]:{_0x250845={'eventID':_0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x2e8)],'joinEvent':_0x267bed[_0x2f62c9(0x3cf)]['data']};break;}case _0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x4c1)]:{_0x250845={'eventID':_0x2a1cda[_0x2f62c9(0x2a0)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x267bed[_0x2f62c9(0x3cf)]['data']};break;}case _0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x3f4)]:{_0x250845={'eventID':_0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x3f4)],'liveShareOperation':_0x267bed['data'][_0x2f62c9(0x3cf)]};break;}case _0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x51c)]:{_0x250845={'eventID':_0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x51c)],'liveShareTerminate':_0x267bed[_0x2f62c9(0x3cf)][_0x2f62c9(0x3cf)]};break;}case _0x2a1cda['CollaborationEvent'][_0x2f62c9(0x1a5)]:{_0x250845={'eventID':_0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x1a5)],'liveShareRequestHost':_0x267bed[_0x2f62c9(0x3cf)]['data']};break;}case _0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x237)]:{_0x250845={'eventID':_0x2a1cda['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x250845={'eventID':_0x267bed[_0x2f62c9(0x3cf)][_0x2f62c9(0x2fa)]};}return JSON[_0x2f62c9(0x4c2)]({'cmd':_0x267bed['cmd'],'routeKey':_0x267bed['routeKey'],'collaMsg':_0x250845});}case _0x3dfcc2[_0x2f62c9(0x280)]:return JSON[_0x2f62c9(0x4c2)]({'cmd':_0x267bed['cmd'],'routeKey':_0x267bed[_0x2f62c9(0x2f0)],'joinReq':_0x267bed[_0x2f62c9(0x3cf)]});case _0x3dfcc2['LEAVE']:return JSON[_0x2f62c9(0x4c2)]({'cmd':_0x267bed['cmd'],'routeKey':_0x267bed['routeKey'],'leaveReq':_0x267bed['data']});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var _0x1cdf4f=Object['defineProperty'],_0x2db4fc=Object[_0x4b1ec3(0x507)],_0x3f2604=(_0x2d5ac2,_0x2d3618,_0x34801d,_0xa9761f)=>{const _0x38d9a3=_0x4b1ec3;for(var _0x56e3fd=_0xa9761f>0x1?void 0x0:_0xa9761f?_0x2db4fc(_0x2d3618,_0x34801d):_0x2d3618,_0x104707=_0x2d5ac2[_0x38d9a3(0x2b7)]-0x1,_0xa5aa40;_0x104707>=0x0;_0x104707--)(_0xa5aa40=_0x2d5ac2[_0x104707])&&(_0x56e3fd=(_0xa9761f?_0xa5aa40(_0x2d3618,_0x34801d,_0x56e3fd):_0xa5aa40(_0x56e3fd))||_0x56e3fd);return _0xa9761f&&_0x56e3fd&&_0x1cdf4f(_0x2d3618,_0x34801d,_0x56e3fd),_0x56e3fd;},_0x547906=(_0x5a4c5a,_0x165551)=>(_0x4677e0,_0x35d508)=>_0x165551(_0x4677e0,_0x35d508,_0x5a4c5a);const _0x564797=_0xff0938[_0x4b1ec3(0x3dc)]('univer-pro.collaboration-client-socket-service');function _0x1ea087(_0x567482,_0x481b6b,_0x21a369){const _0x4c03d6=_0x4b1ec3;return _0x567482+'/'+_0x481b6b+_0x4c03d6(0x2bf)+_0x21a369+_0x4c03d6(0x1ad);}_0x99db31[_0x4b1ec3(0x28d)]=class{constructor(_0x1301a3,_0x4a2c7b,_0x4ccbc2,_0x37e92b,_0x489c0c){const _0x37f78a=_0x4b1ec3;this[_0x37f78a(0x37d)]=_0x1301a3,this[_0x37f78a(0x45f)]=_0x4a2c7b,this['_configService']=_0x4ccbc2,this[_0x37f78a(0x38b)]=_0x37e92b,this[_0x37f78a(0x378)]=_0x489c0c;}[_0x4b1ec3(0x409)](_0x34552c){const _0x46b9d4=_0x4b1ec3,_0x4cdda4=this[_0x46b9d4(0x45f)]['createSocket'](_0x34552c);if(!_0x4cdda4)throw new Error(_0x46b9d4(0x1f0));const _0x596df4=new _0x495bbc[(_0x46b9d4(0x2b5))](),_0x2a60a1=new _0x11b67e[(_0x46b9d4(0x486))]();_0x596df4[_0x46b9d4(0x3c6)](_0x495bbc[_0x46b9d4(0x46b)](_0x4cdda4[_0x46b9d4(0x33b)]['subscribe'](_0x393c21=>_0x2a60a1[_0x46b9d4(0x2b2)](_0x393c21)))),_0x596df4[_0x46b9d4(0x3c6)](_0x495bbc[_0x46b9d4(0x46b)](()=>_0x2a60a1[_0x46b9d4(0x4c6)]()));const _0x23b6c9=new _0x11b67e[(_0x46b9d4(0x486))]();_0x596df4['add'](_0x495bbc[_0x46b9d4(0x46b)](_0x4cdda4['error$']['subscribe'](_0x48836d=>_0x23b6c9[_0x46b9d4(0x2b2)](_0x48836d)))),_0x596df4['add'](_0x495bbc[_0x46b9d4(0x46b)](()=>_0x23b6c9['complete']()));const _0x1c878e=new _0x11b67e[(_0x46b9d4(0x486))]();_0x596df4[_0x46b9d4(0x3c6)](_0x495bbc[_0x46b9d4(0x46b)](_0x4cdda4[_0x46b9d4(0x2fe)][_0x46b9d4(0x43a)](_0x27021d=>{const _0x13e7c4=_0x3ee14d(_0x27021d);_0x1c878e['next'](_0x13e7c4);}))),_0x596df4['add'](_0x495bbc[_0x46b9d4(0x46b)](()=>_0x1c878e['complete']()));const _0x135849=()=>{const _0x63827a=_0x46b9d4;_0x23b6c9['next'](new Event(_0x63827a(0x393))),_0x2a60a1[_0x63827a(0x2b2)](new CloseEvent(_0x63827a(0x393))),_0x4f5c0c[_0x63827a(0x223)]();},_0x4f5c0c={'memberID':'','close$':_0x2a60a1[_0x46b9d4(0x392)](),'error$':_0x23b6c9[_0x46b9d4(0x392)](),'open$':_0x4cdda4[_0x46b9d4(0x353)],'message$':_0x1c878e[_0x46b9d4(0x392)](),'send':_0x3db809=>{const _0x4e29a0=_0x46b9d4;if(_0x3db809[_0x4e29a0(0x2ab)]===_0x3dfcc2[_0x4e29a0(0x50e)]){if(_0x3db809[_0x4e29a0(0x3cf)]['eventID']===_0x2a1cda[_0x4e29a0(0x2a0)]['SUBMIT_CHANGESET']){this[_0x4e29a0(0x30e)](_0x4f5c0c,_0x3db809[_0x4e29a0(0x3cf)])['catch'](_0x1216ad=>{const _0x266302=_0x4e29a0;this[_0x266302(0x38b)][_0x266302(0x512)](_0x1216ad),_0x135849();});return;}if(_0x3db809['data'][_0x4e29a0(0x2fa)]===_0x2a1cda[_0x4e29a0(0x2a0)][_0x4e29a0(0x3c5)]){const _0x3ba7e1=_0x3db809[_0x4e29a0(0x3cf)];this[_0x4e29a0(0x4f3)](_0x3ba7e1)['then'](_0xbac584=>{const _0x1f48e2=_0x4e29a0;_0x1c878e[_0x1f48e2(0x2b2)]({'cmd':_0x3dfcc2[_0x1f48e2(0x21e)],'code':_0xb11f76['OK'],'routeKey':_0x3ba7e1[_0x1f48e2(0x3cf)][_0x1f48e2(0x391)],'routeType':'','data':{'eventID':_0x2a1cda[_0x1f48e2(0x2a0)][_0x1f48e2(0x497)],'data':{'changesets':_0xbac584}}});})[_0x4e29a0(0x3cb)](_0x58ef44=>{const _0x1014c5=_0x4e29a0;this[_0x1014c5(0x38b)][_0x1014c5(0x512)](_0x58ef44),_0x135849();});return;}}_0x4cdda4[_0x4e29a0(0x50c)](_0xbba3c4(_0x3db809));},'close':()=>{const _0x5b4825=_0x46b9d4;_0x4cdda4['close'](),_0x596df4[_0x5b4825(0x3f5)]();}};return _0x4f5c0c;}async[_0x4b1ec3(0x30e)](_0x87ae70,_0x2ef8b1){const _0xd11ac0=_0x4b1ec3;var _0x5379aa;const {unitType:_0x1bfb82,unitID:_0x5912f0,changeset:_0x2fbe5a}=_0x2ef8b1['data'],_0x5a70b2={'unitID':_0x5912f0,'memberID':_0x87ae70[_0xd11ac0(0x4f1)],'type':_0x1bfb82,'changeset':_0x2a1cda[_0xd11ac0(0x478)](_0x2fbe5a)},_0x5eb925=_0x1ea087((_0x5379aa=this[_0xd11ac0(0x313)][_0xd11ac0(0x1b6)](_0x339c6c))!=null?_0x5379aa:_0x2dd5c6,_0x1bfb82,_0x5912f0);try{await this[_0xd11ac0(0x37d)][_0xd11ac0(0x246)](_0x5eb925,{'body':_0x5a70b2});}catch(_0x310237){throw this[_0xd11ac0(0x38b)][_0xd11ac0(0x512)](_0xd11ac0(0x441),_0xd11ac0(0x33a)),_0x310237;}}async['_fetchMissChangesets'](_0xcf87a3){const _0x397440=_0x4b1ec3,{unitID:_0x3a56da,from:_0x45e610,to:_0xf72760,unitType:_0x5106c8}=_0xcf87a3[_0x397440(0x3cf)];return(await this[_0x397440(0x378)][_0x397440(0x323)]({'metadata':void 0x0},{'unitID':_0x3a56da,'type':_0x5106c8,'from':_0x45e610,'to':_0xf72760}))[_0x397440(0x463)];}},_0x99db31[_0x4b1ec3(0x28d)]=_0x3f2604([_0x547906(0x0,_0xff0938['Inject'](_0x19613[_0x4b1ec3(0x3a5)])),_0x547906(0x1,_0xff0938['Inject'](_0x19613[_0x4b1ec3(0x515)])),_0x547906(0x2,_0x495bbc['IConfigService']),_0x547906(0x3,_0x495bbc[_0x4b1ec3(0x22c)]),_0x547906(0x4,_0x495bbc[_0x4b1ec3(0x2be)])],_0x99db31[_0x4b1ec3(0x28d)]);class _0x30b255{constructor(){const _0x38bc5e=_0x4b1ec3;_0x5d8027(this,_0x38bc5e(0x263),new _0x11b67e['Subject']()),_0x5d8027(this,_0x38bc5e(0x14a),this[_0x38bc5e(0x263)]['asObservable']());}[_0x4b1ec3(0x165)](_0x26c98c){const _0x141caa=_0x4b1ec3;this['_commentUpdate$'][_0x141caa(0x2b2)](_0x26c98c);}}var _0x3fef71=Object[_0x4b1ec3(0x356)],_0x581d9c=Object[_0x4b1ec3(0x507)],_0x3638c5=(_0x3867cc,_0x26a9ed,_0x1a3958,_0x4e18b1)=>{const _0xf6cd8d=_0x4b1ec3;for(var _0x56089b=_0x4e18b1>0x1?void 0x0:_0x4e18b1?_0x581d9c(_0x26a9ed,_0x1a3958):_0x26a9ed,_0x3c93c8=_0x3867cc[_0xf6cd8d(0x2b7)]-0x1,_0x489491;_0x3c93c8>=0x0;_0x3c93c8--)(_0x489491=_0x3867cc[_0x3c93c8])&&(_0x56089b=(_0x4e18b1?_0x489491(_0x26a9ed,_0x1a3958,_0x56089b):_0x489491(_0x56089b))||_0x56089b);return _0x4e18b1&&_0x56089b&&_0x3fef71(_0x26a9ed,_0x1a3958,_0x56089b),_0x56089b;},_0x194489=(_0x51f87d,_0x56f5e2)=>(_0x227d17,_0x101b21)=>_0x56f5e2(_0x227d17,_0x101b21,_0x51f87d),_0x36bc51=(_0x5ec4e5=>(_0x5ec4e5[_0x5ec4e5[_0x4b1ec3(0x22d)]=0x0]='IDLE',_0x5ec4e5[_0x5ec4e5['JOINING']=0x1]=_0x4b1ec3(0x3b5),_0x5ec4e5[_0x5ec4e5[_0x4b1ec3(0x30a)]=0x2]=_0x4b1ec3(0x30a),_0x5ec4e5[_0x5ec4e5[_0x4b1ec3(0x4b8)]=0x3]=_0x4b1ec3(0x4b8),_0x5ec4e5))(_0x36bc51||{});_0x99db31[_0x4b1ec3(0x21b)]=class extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(_0x19bce5,_0x141102,_0x440ca5,_0x1d3db9,_0x1abdbe,_0x3daf7f,_0x43d890,_0x441f19,_0x45a066){const _0x11bd08=_0x4b1ec3;super(),_0x5d8027(this,'_sessionStatus$',new _0x11b67e['BehaviorSubject'](0x0)),_0x5d8027(this,_0x11bd08(0x26a),this[_0x11bd08(0x2ff)][_0x11bd08(0x392)]()),_0x5d8027(this,'_event$',new _0x11b67e['Subject']()),_0x5d8027(this,_0x11bd08(0x48b),this[_0x11bd08(0x267)][_0x11bd08(0x392)]()),_0x5d8027(this,_0x11bd08(0x4a1)),_0x5d8027(this,_0x11bd08(0x15d)),_0x5d8027(this,_0x11bd08(0x1bc)),(this[_0x11bd08(0x518)]=_0x19bce5,this[_0x11bd08(0x38b)]=_0x440ca5,this[_0x11bd08(0x1dd)]=_0x1d3db9,this['_messageService']=_0x1abdbe,this[_0x11bd08(0x313)]=_0x3daf7f,this[_0x11bd08(0x131)]=_0x43d890,this[_0x11bd08(0x3ae)]=_0x441f19,this[_0x11bd08(0x213)]=_0x45a066,_0x141102[_0x11bd08(0x377)](_0x3e7fcd[_0x11bd08(0x40b)](this['dispose$']))[_0x11bd08(0x43a)](_0x5b120a=>{const _0x5e0cad=_0x11bd08;var _0x3d13e;typeof _0x5b120a>'u'||(this[_0x5e0cad(0x4a1)]=_0x5b120a,_0x5b120a?(this[_0x5e0cad(0x305)](_0x5b120a),this['_socketMessageSubscription']=this[_0x5e0cad(0x4a1)][_0x5e0cad(0x2fe)][_0x5e0cad(0x43a)](_0x3cc727=>{const _0x182d9a=_0x5e0cad;_0x3cc727[_0x182d9a(0x2f0)]===this[_0x182d9a(0x518)]&&this[_0x182d9a(0x28c)](_0x3cc727);})):(this[_0x5e0cad(0x2ff)]['next'](0x2),(_0x3d13e=this[_0x5e0cad(0x15d)])==null||_0x3d13e[_0x5e0cad(0x22e)](),this[_0x5e0cad(0x15d)]=null));}),this[_0x11bd08(0x3fb)](this[_0x11bd08(0x1dd)][_0x11bd08(0x383)](()=>{const _0xd67d69=_0x11bd08;var _0x297ae2;(_0x297ae2=this[_0xd67d69(0x4a1)])==null||_0x297ae2[_0xd67d69(0x50c)]({'cmd':_0x3dfcc2[_0xd67d69(0x4aa)],'data':{'roomID':this[_0xd67d69(0x518)]}});})));}get[_0x4b1ec3(0x19f)](){const _0x30716d=_0x4b1ec3;return this[_0x30716d(0x2ff)]['getValue']();}['getMemberID'](){const _0x43d512=_0x4b1ec3;var _0x206446,_0x541295;return(_0x541295=(_0x206446=this[_0x43d512(0x4a1)])==null?void 0x0:_0x206446['memberID'])!=null?_0x541295:null;}[_0x4b1ec3(0x3f5)](){const _0x4190b1=_0x4b1ec3;super['dispose'](),this[_0x4190b1(0x26e)][_0x4190b1(0x2b2)](),this[_0x4190b1(0x26e)][_0x4190b1(0x4c6)]();}[_0x4b1ec3(0x223)](){const _0x5a1df2=_0x4b1ec3;var _0x12d993,_0x5e1021;(_0x12d993=this[_0x5a1df2(0x4a1)])==null||_0x12d993[_0x5a1df2(0x50c)]({'cmd':_0x3dfcc2[_0x5a1df2(0x4aa)],'data':{'roomID':this[_0x5a1df2(0x518)]}}),this[_0x5a1df2(0x267)][_0x5a1df2(0x4c6)](),this['_sessionStatus$'][_0x5a1df2(0x4c6)](),(_0x5e1021=this[_0x5a1df2(0x4a1)])==null||_0x5e1021['close'](),this[_0x5a1df2(0x3f5)]();}[_0x4b1ec3(0x28c)](_0x28c878){const _0x1216f1=_0x4b1ec3;_0x28c878[_0x1216f1(0x2ab)]===_0x3dfcc2[_0x1216f1(0x280)]?this[_0x1216f1(0x4f9)](_0x28c878):_0x28c878[_0x1216f1(0x2ab)]===_0x3dfcc2[_0x1216f1(0x21e)]&&this[_0x1216f1(0x3e6)](_0x28c878);}[_0x4b1ec3(0x305)](_0x3e824d){const _0x21b366=_0x4b1ec3;this[_0x21b366(0x2ff)][_0x21b366(0x2b2)](0x1),_0x3e824d['send']({'cmd':_0x3dfcc2[_0x21b366(0x280)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x4b1ec3(0x4f9)](_0x1740cb){const _0x293f50=_0x4b1ec3;var _0x456a90;if(_0x1740cb[_0x293f50(0x3f0)]===_0xb11f76['FAIL']){this[_0x293f50(0x4eb)]['show']({'type':_0x153393['MessageType'][_0x293f50(0x16e)],'content':this[_0x293f50(0x131)]['t']('session.room-full')}),this[_0x293f50(0x2ff)][_0x293f50(0x2b2)](0x2);return;}this[_0x293f50(0x2ff)][_0x293f50(0x2b2)](0x3);const _0x3529f9=(_0x456a90=_0x1740cb[_0x293f50(0x3cf)][_0x293f50(0x154)][this[_0x293f50(0x518)]])==null?void 0x0:_0x456a90[_0x293f50(0x365)];_0x3529f9&&_0x3529f9[_0x293f50(0x14d)](_0x5ad339=>this[_0x293f50(0x3ae)][_0x293f50(0x244)](this[_0x293f50(0x518)],_0x5ad339));}[_0x4b1ec3(0x3e6)](_0x5cffd0){const _0x2a1f79=_0x4b1ec3;try{const _0x5d8d32=_0x5cffd0[_0x2a1f79(0x3cf)];switch(_0x5d8d32[_0x2a1f79(0x2fa)]){case _0x2a1cda[_0x2a1f79(0x2a0)]['USERS_ENTER']:this['_onUserJoin'](_0x5d8d32),this['_event$']['next'](_0x5d8d32);break;case _0x2a1cda['CollaborationEvent']['USERS_LEAVE']:this[_0x2a1f79(0x3de)](_0x5d8d32),this[_0x2a1f79(0x267)]['next'](_0x5d8d32);break;case _0x2a1cda[_0x2a1f79(0x2a0)]['CHANGESET_ACK']:this['_clearCollaborationTimeoutTimer'](),this[_0x2a1f79(0x267)][_0x2a1f79(0x2b2)](_0x5d8d32);break;case _0x2a1cda['CollaborationEvent'][_0x2a1f79(0x475)]:this['_logService'][_0x2a1f79(0x512)](_0x2a1f79(0x2dd)+JSON[_0x2a1f79(0x4c2)](_0x5d8d32)),this['_event$'][_0x2a1f79(0x2b2)](_0x5d8d32);break;case _0x2a1cda[_0x2a1f79(0x2a0)][_0x2a1f79(0x338)]:this[_0x2a1f79(0x213)][_0x2a1f79(0x165)](_0x5d8d32[_0x2a1f79(0x3cf)]),this[_0x2a1f79(0x267)][_0x2a1f79(0x2b2)](_0x5d8d32);break;default:this[_0x2a1f79(0x267)][_0x2a1f79(0x2b2)](_0x5d8d32);}}catch(_0xfc8f64){this[_0x2a1f79(0x38b)][_0x2a1f79(0x512)](_0xfc8f64,_0x5cffd0);}}['_onUserJoin'](_0x2328cf){const _0x22c636=_0x4b1ec3;this['_memberService']['updateMember'](this[_0x22c636(0x518)],_0x2328cf[_0x22c636(0x3cf)]);}['_onUserLeave'](_0x41a22f){const _0x38f8de=_0x4b1ec3;this[_0x38f8de(0x3ae)]['removeMember'](this[_0x38f8de(0x518)],_0x41a22f[_0x38f8de(0x3cf)]['memberID']);}async[_0x4b1ec3(0x50c)](_0x2f2a01,_0x12f7bc){const _0x3d2d76=_0x4b1ec3;if(this[_0x3d2d76(0x19f)]!==0x3||!this[_0x3d2d76(0x4a1)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x2f2a01[_0x3d2d76(0x2fa)]===_0x2a1cda[_0x3d2d76(0x2a0)][_0x3d2d76(0x301)]&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x3d2d76(0x4a1)][_0x3d2d76(0x50c)]({'cmd':_0x3dfcc2[_0x3d2d76(0x50e)],'routeKey':_0x12f7bc,'routeType':'','data':_0x2f2a01});}catch(_0x22e561){this[_0x3d2d76(0x38b)][_0x3d2d76(0x512)](_0x22e561);}}[_0x4b1ec3(0x30f)](){const _0x5b0b01=_0x4b1ec3;var _0x54c863;this['_collaborationTimeoutTimer']=window[_0x5b0b01(0x467)](()=>{const _0x418f96=_0x5b0b01;this[_0x418f96(0x1bc)]=null,this[_0x418f96(0x4eb)][_0x418f96(0x42c)]({'type':_0x153393[_0x418f96(0x4a8)][_0x418f96(0x25c)],'content':this['_localeService']['t']('session.collaboration-timeout')});},(_0x54c863=this['_configService'][_0x5b0b01(0x1b6)](_0x137805))!=null?_0x54c863:0x2710);}[_0x4b1ec3(0x431)](){const _0x38d969=_0x4b1ec3;this[_0x38d969(0x1bc)]&&(clearTimeout(this[_0x38d969(0x1bc)]),this[_0x38d969(0x1bc)]=null);}},_0x99db31[_0x4b1ec3(0x21b)]=_0x3638c5([_0x194489(0x2,_0x495bbc[_0x4b1ec3(0x22c)]),_0x194489(0x3,_0x510d97['IBeforeCloseService']),_0x194489(0x4,_0x510d97[_0x4b1ec3(0x3c3)]),_0x194489(0x5,_0x495bbc[_0x4b1ec3(0x2d6)]),_0x194489(0x6,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc[_0x4b1ec3(0x1f4)])),_0x194489(0x7,_0xff0938['Inject'](_0x384a59)),_0x194489(0x8,_0xff0938[_0x4b1ec3(0x292)](_0x30b255))],_0x99db31[_0x4b1ec3(0x21b)]),_0x99db31[_0x4b1ec3(0x16c)]=class extends _0x495bbc[_0x4b1ec3(0x424)]{constructor(_0x55f3ff,_0x30ccb7,_0x59999d,_0x94d59d,_0x102441,_0x374bf9){const _0x37c1db=_0x4b1ec3;super(),_0x5d8027(this,'_socket$',new _0x11b67e[(_0x37c1db(0x2a9))](void 0x0)),_0x5d8027(this,_0x37c1db(0x3fe),new Map()),_0x5d8027(this,_0x37c1db(0x4cc),new _0x11b67e[(_0x37c1db(0x2a9))](0x0)),_0x5d8027(this,_0x37c1db(0x373),this['_status$'][_0x37c1db(0x392)]()),_0x5d8027(this,'_socketReady',!0x1),_0x5d8027(this,'_sendHeartbeatTimer'),_0x5d8027(this,_0x37c1db(0x252)),_0x5d8027(this,_0x37c1db(0x2f8)),_0x5d8027(this,_0x37c1db(0x4da),0x0),(this[_0x37c1db(0x376)]=_0x55f3ff,this[_0x37c1db(0x131)]=_0x30ccb7,this[_0x37c1db(0x4eb)]=_0x59999d,this[_0x37c1db(0x38b)]=_0x94d59d,this[_0x37c1db(0x313)]=_0x102441,this[_0x37c1db(0x2b1)]=_0x374bf9);}get[_0x4b1ec3(0x4a1)](){const _0xf8a6dd=_0x4b1ec3;return this[_0xf8a6dd(0x1e4)][_0xf8a6dd(0x357)]();}[_0x4b1ec3(0x3f5)](){const _0x1f21cf=_0x4b1ec3;super[_0x1f21cf(0x3f5)](),this[_0x1f21cf(0x3fe)][_0x1f21cf(0x14d)](_0x2bc23c=>_0x2bc23c[_0x1f21cf(0x3f5)]()),this[_0x1f21cf(0x3fe)][_0x1f21cf(0x3e3)](),this[_0x1f21cf(0x4cc)][_0x1f21cf(0x4c6)]();}async[_0x4b1ec3(0x269)](_0x4cdd08){const _0x5a9cee=_0x4b1ec3;if(this[_0x5a9cee(0x3fe)][_0x5a9cee(0x4a3)](_0x4cdd08))return this[_0x5a9cee(0x3fe)][_0x5a9cee(0x4ce)](_0x4cdd08);this[_0x5a9cee(0x41d)]();const _0x55fc72=this[_0x5a9cee(0x376)][_0x5a9cee(0x1ab)](_0x99db31[_0x5a9cee(0x21b)],_0x4cdd08,this['_socket$'][_0x5a9cee(0x392)]());return this[_0x5a9cee(0x3fe)][_0x5a9cee(0x20e)](_0x4cdd08,_0x55fc72),_0x55fc72;}[_0x4b1ec3(0x44c)](_0x3050de){const _0x645330=_0x4b1ec3;var _0x27eda4;const _0x16c401=this[_0x645330(0x3fe)]['get'](_0x3050de);_0x16c401&&(this[_0x645330(0x3fe)]['delete'](_0x3050de),_0x16c401[_0x645330(0x223)]()),this['_sessions'][_0x645330(0x3aa)]||(_0x27eda4=this[_0x645330(0x4a1)])==null||_0x27eda4[_0x645330(0x223)]();}[_0x4b1ec3(0x388)](){const _0x219259=_0x4b1ec3;var _0xa30b3e;const _0x1d3f4e=(_0xa30b3e=this[_0x219259(0x313)][_0x219259(0x1b6)](_0x10840c))!=null?_0xa30b3e:_0x156730;return this[_0x219259(0x2b1)][_0x219259(0x409)](_0x1d3f4e);}['_tryEnsureSocket'](){const _0x5d18b4=_0x4b1ec3;try{const _0x1c1d83=this[_0x5d18b4(0x388)]();if(_0x1c1d83){const _0x5d0a24=_0x1c1d83['send'];_0x1c1d83['send']=_0x556753=>(this[_0x5d18b4(0x339)](),_0x5d0a24[_0x5d18b4(0x452)](_0x1c1d83,[_0x556753])),_0x1c1d83[_0x5d18b4(0x2fe)][_0x5d18b4(0x43a)](_0x23a187=>this[_0x5d18b4(0x320)](_0x1c1d83,_0x23a187)),_0x1c1d83[_0x5d18b4(0x370)][_0x5d18b4(0x377)](_0x3e7fcd['take'](0x1))['subscribe'](_0xca6f61=>this[_0x5d18b4(0x38b)][_0x5d18b4(0x512)](_0x5d18b4(0x18c),_0xca6f61)),_0x1c1d83[_0x5d18b4(0x353)][_0x5d18b4(0x377)](_0x3e7fcd['take'](0x1))[_0x5d18b4(0x43a)](()=>{const _0x5c9d26=_0x5d18b4;this[_0x5c9d26(0x485)](_0x1c1d83);}),_0x1c1d83[_0x5d18b4(0x33b)][_0x5d18b4(0x377)](_0x3e7fcd[_0x5d18b4(0x3ad)](0x1))[_0x5d18b4(0x43a)](_0x23b771=>{const _0xdc872a=_0x5d18b4;this[_0xdc872a(0x38b)][_0xdc872a(0x2ca)](_0xdc872a(0x4be),_0xdc872a(0x4b0),_0x23b771),this[_0xdc872a(0x1ea)]();});}}catch(_0x5a7fb6){this[_0x5d18b4(0x38b)][_0x5d18b4(0x512)](_0x5a7fb6),this[_0x5d18b4(0x1ea)]();}}[_0x4b1ec3(0x485)](_0x312f0c){const _0x122836=_0x4b1ec3;this[_0x122836(0x38b)][_0x122836(0x2ca)](_0x122836(0x4be),'socket\x20open.'),_0x312f0c[_0x122836(0x50c)]({'cmd':_0x3dfcc2[_0x122836(0x501)]}),this[_0x122836(0x339)]();}[_0x4b1ec3(0x1ea)](){const _0x40b39a=_0x4b1ec3;var _0x4a3471;this[_0x40b39a(0x4cc)]['next'](0x2),this[_0x40b39a(0x1e4)][_0x40b39a(0x2b2)](null),this[_0x40b39a(0x1ed)](),this[_0x40b39a(0x3b6)](),this[_0x40b39a(0x135)]=!0x1,this[_0x40b39a(0x4da)]<((_0x4a3471=this[_0x40b39a(0x313)][_0x40b39a(0x1b6)](_0x556fbe))!=null?_0x4a3471:0x3)?(this[_0x40b39a(0x298)](this['_retryCount']),this[_0x40b39a(0x4da)]+=0x1):this[_0x40b39a(0x4eb)]['show']({'type':_0x153393[_0x40b39a(0x4a8)][_0x40b39a(0x25c)],'content':this[_0x40b39a(0x131)]['t'](_0x40b39a(0x1da))});}[_0x4b1ec3(0x298)](_0x4708da){const _0x515f4e=_0x4b1ec3;var _0x4e8f67;const _0x18ecdd=((_0x4e8f67=this['_configService']['getConfig'](_0x59a48f))!=null?_0x4e8f67:0x4e20)*0x2**_0x4708da;this['_messageService'][_0x515f4e(0x42c)]({'type':_0x153393[_0x515f4e(0x4a8)][_0x515f4e(0x16e)],'content':this[_0x515f4e(0x131)]['t'](_0x515f4e(0x289))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x53f7dc=_0x515f4e;this[_0x53f7dc(0x41d)](),clearTimeout(this[_0x53f7dc(0x2f8)]),this['_retryConnectingTimer']=null;},_0x18ecdd);}['_rescheduleHeartbeatEvent'](){const _0x14da68=_0x4b1ec3;var _0x2ef4dd;this[_0x14da68(0x3b6)](),this[_0x14da68(0x3f3)]=setTimeout(()=>this[_0x14da68(0x444)](),(_0x2ef4dd=this[_0x14da68(0x313)][_0x14da68(0x1b6)](_0x2d4fc5))!=null?_0x2ef4dd:0x7530);}[_0x4b1ec3(0x444)](){const _0x1e94bc=_0x4b1ec3;this[_0x1e94bc(0x4a1)][_0x1e94bc(0x50c)]({'cmd':_0x3dfcc2[_0x1e94bc(0x304)]}),this[_0x1e94bc(0x509)]();}[_0x4b1ec3(0x509)](){const _0x556508=_0x4b1ec3;var _0x466bdc;this[_0x556508(0x252)]=setTimeout(()=>this[_0x556508(0x1ea)](),(_0x466bdc=this[_0x556508(0x313)][_0x556508(0x1b6)](_0x137805))!=null?_0x466bdc:0x2710);}[_0x4b1ec3(0x320)](_0x501777,_0x3df7e3){const _0x3d5963=_0x4b1ec3,{cmd:_0x2dd368}=_0x3df7e3;_0x2dd368===_0x3dfcc2[_0x3d5963(0x501)]&&!this[_0x3d5963(0x135)]&&(_0x501777[_0x3d5963(0x4f1)]=_0x3df7e3['data'][_0x3d5963(0x4f1)],this[_0x3d5963(0x1e4)][_0x3d5963(0x2b2)](_0x501777),this[_0x3d5963(0x4cc)][_0x3d5963(0x2b2)](0x3),this[_0x3d5963(0x135)]=!0x0),_0x2dd368===_0x3dfcc2[_0x3d5963(0x304)]&&this[_0x3d5963(0x1ed)](),this[_0x3d5963(0x339)]();}[_0x4b1ec3(0x3b6)](){const _0x175d4a=_0x4b1ec3;this[_0x175d4a(0x3f3)]!=null&&(clearTimeout(this[_0x175d4a(0x3f3)]),this['_sendHeartbeatTimer']=null);}[_0x4b1ec3(0x1ed)](){const _0x5ed231=_0x4b1ec3;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x5ed231(0x252)]),this['_timeoutTimer']=null);}},_0x99db31[_0x4b1ec3(0x16c)]=_0x3638c5([_0x194489(0x0,_0xff0938[_0x4b1ec3(0x292)](_0xff0938['Injector'])),_0x194489(0x1,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc['LocaleService'])),_0x194489(0x2,_0x510d97[_0x4b1ec3(0x3c3)]),_0x194489(0x3,_0x495bbc[_0x4b1ec3(0x22c)]),_0x194489(0x4,_0x495bbc[_0x4b1ec3(0x2d6)]),_0x194489(0x5,_0x564797)],_0x99db31[_0x4b1ec3(0x16c)]);var _0x164b52=Object[_0x4b1ec3(0x356)],_0x2cc64a=Object['getOwnPropertyDescriptor'],_0x47d9aa=(_0x409a20,_0x294bd2,_0x186198,_0x26c68d)=>{const _0x240322=_0x4b1ec3;for(var _0x4b34e3=_0x26c68d>0x1?void 0x0:_0x26c68d?_0x2cc64a(_0x294bd2,_0x186198):_0x294bd2,_0xc75ab9=_0x409a20[_0x240322(0x2b7)]-0x1,_0x7fff88;_0xc75ab9>=0x0;_0xc75ab9--)(_0x7fff88=_0x409a20[_0xc75ab9])&&(_0x4b34e3=(_0x26c68d?_0x7fff88(_0x294bd2,_0x186198,_0x4b34e3):_0x7fff88(_0x4b34e3))||_0x4b34e3);return _0x26c68d&&_0x4b34e3&&_0x164b52(_0x294bd2,_0x186198,_0x4b34e3),_0x4b34e3;},_0x11923a=(_0x391d5a,_0x3a6465)=>(_0x5c3639,_0x10b04b)=>_0x3a6465(_0x5c3639,_0x10b04b,_0x391d5a);_0x99db31['LocalCacheService']=class extends _0x495bbc[_0x4b1ec3(0x424)]{constructor(_0x494680,_0x441c91,_0x5928bc,_0x31439a,_0x3e3a29){const _0x25813e=_0x4b1ec3;super(),_0x5d8027(this,_0x25813e(0x1dc),new Map()),_0x5d8027(this,_0x25813e(0x447),new Map()),_0x5d8027(this,_0x25813e(0x386),!0x1),(this['_configService']=_0x494680,this[_0x25813e(0x4b7)]=_0x441c91,this[_0x25813e(0x1dd)]=_0x5928bc,this[_0x25813e(0x131)]=_0x31439a,this['_revisionService']=_0x3e3a29,this[_0x25813e(0x2e1)]());}[_0x4b1ec3(0x477)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x186274=_0x4b1ec3;this[_0x186274(0x386)]=!0x1;}[_0x4b1ec3(0x3f5)](){const _0x5091a7=_0x4b1ec3;this[_0x5091a7(0x130)]()[_0x5091a7(0x4f2)](()=>super[_0x5091a7(0x3f5)]());}async['loadOfflineData'](_0x559e5b){const _0x41b945=_0x4b1ec3;return this[_0x41b945(0x386)]?null:this['_localStorageService'][_0x41b945(0x35a)](_0x2691f9(_0x559e5b));}async[_0x4b1ec3(0x3fa)](_0x4064ee,_0x69d7a1){const _0x3676be=_0x4b1ec3;return!!this['_localStorageService'][_0x3676be(0x4d0)](_0x4064ee,_0x69d7a1);}[_0x4b1ec3(0x3b8)](_0x35b7df,_0x4454c6,_0x3ef3dc,_0x32ec2e){const _0x392066=_0x4b1ec3,_0x49f052=this[_0x392066(0x366)]['getCurrentRevForDocument'](_0x35b7df);this[_0x392066(0x1dc)][_0x392066(0x20e)](_0x35b7df,{'unitID':_0x35b7df,'type':_0x4454c6,'awaitingChangeset':_0x3ef3dc,'mutations':_0x32ec2e,'rev':_0x49f052}),this['_saveTaskMap'][_0x392066(0x4a3)](_0x35b7df)||this[_0x392066(0x4f0)](_0x35b7df);}['_scheduleSaving'](_0x110b02){const _0x419df2=_0x4b1ec3,_0x486983=this[_0x419df2(0x193)]();_0x486983===0x0?this[_0x419df2(0x3e8)](_0x110b02):this['_saveTaskMap'][_0x419df2(0x20e)](_0x110b02,setTimeout(()=>this[_0x419df2(0x3e8)](_0x110b02),_0x486983));}[_0x4b1ec3(0x193)](){const _0x1e81cb=_0x4b1ec3;var _0x1e572d;return(_0x1e572d=this[_0x1e81cb(0x313)][_0x1e81cb(0x1b6)](_0x514191))!=null?_0x1e572d:0x3e8;}['_saveCache'](_0x4977a8){const _0x5f2d8b=_0x4b1ec3,_0xc5f39=this[_0x5f2d8b(0x447)][_0x5f2d8b(0x4ce)](_0x4977a8);return _0xc5f39!==void 0x0&&window[_0x5f2d8b(0x2e9)](_0xc5f39),this[_0x5f2d8b(0x4b7)]['setItem'](_0x2691f9(_0x4977a8),this[_0x5f2d8b(0x1dc)][_0x5f2d8b(0x4ce)](_0x4977a8))[_0x5f2d8b(0x4f2)](()=>this['_saveTaskMap'][_0x5f2d8b(0x2c8)](_0x4977a8));}async['exhaustSavingTask'](){const _0x116c2b=_0x4b1ec3,_0x313d51=[];this[_0x116c2b(0x447)]['forEach']((_0x359c48,_0x2c418d)=>{const _0x42fa67=_0x116c2b;window['clearTimeout'](_0x359c48),_0x313d51[_0x42fa67(0x38a)](this['_saveCache'](_0x2c418d)[_0x42fa67(0x4f2)](()=>{const _0x3561b4=_0x42fa67;this[_0x3561b4(0x447)]['delete'](_0x2c418d);}));}),await Promise[_0x116c2b(0x390)](_0x313d51);}['_setupBeforeClosingHandler'](){const _0x38912d=_0x4b1ec3;this[_0x38912d(0x3fb)](this[_0x38912d(0x1dd)][_0x38912d(0x254)](()=>{const _0x512f5d=_0x38912d;if(this[_0x512f5d(0x447)][_0x512f5d(0x3aa)])return this[_0x512f5d(0x131)]['t'](_0x512f5d(0x36a));}));}},_0x99db31['LocalCacheService']=_0x47d9aa([_0x11923a(0x0,_0x495bbc[_0x4b1ec3(0x2d6)]),_0x11923a(0x1,_0x495bbc[_0x4b1ec3(0x38f)]),_0x11923a(0x2,_0x510d97['IBeforeCloseService']),_0x11923a(0x3,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc['LocaleService'])),_0x11923a(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x481)]))],_0x99db31[_0x4b1ec3(0x4de)]);function _0x2691f9(_0x551253){return'unit-cache-'+_0x551253;}const _0x110bf8=_0xff0938[_0x4b1ec3(0x3dc)](_0x4b1ec3(0x3a1));var _0x59b30c=(_0x49e40f=>(_0x49e40f[_0x49e40f[_0x4b1ec3(0x1b3)]=0x0]=_0x4b1ec3(0x1b3),_0x49e40f[_0x49e40f['OTHER_CLIENTS_EDITING']=0x1]=_0x4b1ec3(0x4cd),_0x49e40f))(_0x59b30c||{});const _0x26f7cf=0x7530,_0x563803='ACTIVE_UNIT_EVENT_CHANNEL';class _0x251974 extends _0x495bbc[_0x4b1ec3(0x424)]{constructor(){const _0x3ed393=_0x4b1ec3;super(),_0x5d8027(this,_0x3ed393(0x29b),_0x495bbc[_0x3ed393(0x3d6)][_0x3ed393(0x272)]()),_0x5d8027(this,_0x3ed393(0x2dc),new Set()),_0x5d8027(this,_0x3ed393(0x15f),new Map()),_0x5d8027(this,_0x3ed393(0x256),null),_0x5d8027(this,_0x3ed393(0x420),new Map()),_0x5d8027(this,_0x3ed393(0x337),new Map()),this[_0x3ed393(0x468)]();}[_0x4b1ec3(0x3f5)](){const _0x29f8e7=_0x4b1ec3;super[_0x29f8e7(0x3f5)](),this['_clearOtherTimers'][_0x29f8e7(0x14d)]((_0x317ccc,_0xab40b3)=>this[_0x29f8e7(0x487)](_0xab40b3)),this[_0x29f8e7(0x256)]&&window['clearInterval'](this[_0x29f8e7(0x256)]);}[_0x4b1ec3(0x225)](_0x456cbe){const _0x2b7361=_0x4b1ec3;return this[_0x2b7361(0x1e2)](_0x456cbe)[_0x2b7361(0x377)](_0x11b67e['distinctUntilChanged']());}['editingUnit'](_0x13fa1d){const _0x3191fe=_0x4b1ec3;this[_0x3191fe(0x2dc)][_0x3191fe(0x3aa)]===0x0&&this[_0x3191fe(0x2c7)](),this[_0x3191fe(0x2dc)]['add'](_0x13fa1d),this[_0x3191fe(0x2b0)]({'type':0x0,'memberID':this[_0x3191fe(0x29b)],'unitIDs':[_0x13fa1d],'isForwarded':!0x1});}[_0x4b1ec3(0x2eb)](_0x295d9d){const _0x2a231a=_0x4b1ec3;this[_0x2a231a(0x2dc)][_0x2a231a(0x2c8)](_0x295d9d),this[_0x2a231a(0x2dc)][_0x2a231a(0x3aa)]===0x0&&this['_heartbeatTimer']&&window[_0x2a231a(0x1af)](this[_0x2a231a(0x256)]);}['_init'](){const _0x2f5f9c=_0x4b1ec3;this['disposeWithMe'](_0x495bbc[_0x2f5f9c(0x46b)](_0x11b67e[_0x2f5f9c(0x418)](window,'storage')['subscribe'](_0xb2f2a=>{const _0x170d96=_0x2f5f9c;if(_0xb2f2a[_0x170d96(0x412)]!==_0x563803||!_0xb2f2a[_0x170d96(0x443)])return;const _0x55971e=JSON[_0x170d96(0x4c5)](_0xb2f2a['newValue']);this['_handleEvent'](_0x55971e);}))),window[_0x2f5f9c(0x22b)](_0x2f5f9c(0x3a2),()=>this[_0x2f5f9c(0x2b0)]({'type':0x1,'memberID':this[_0x2f5f9c(0x29b)],'unitIDs':Array['from'](this[_0x2f5f9c(0x2dc)])}));}[_0x4b1ec3(0x132)](_0x535c66){const _0x5720c1=_0x4b1ec3;switch(_0x535c66[_0x5720c1(0x2fc)]){case 0x0:this[_0x5720c1(0x404)](_0x535c66);break;case 0x1:this[_0x5720c1(0x4af)](_0x535c66);break;case 0x2:this[_0x5720c1(0x164)](_0x535c66);break;}}[_0x4b1ec3(0x404)](_0x47e18b){const _0x380c4b=_0x4b1ec3,{unitIDs:_0x3286ea,memberID:_0x315cff,isForwarded:_0x342bb8}=_0x47e18b;_0x3286ea[_0x380c4b(0x14d)](_0x4c9c0d=>{const _0x5b3bd0=_0x380c4b;if(!_0x342bb8&&this[_0x5b3bd0(0x15f)][_0x5b3bd0(0x4a3)](_0x4c9c0d)&&this[_0x5b3bd0(0x1e2)](_0x4c9c0d)[_0x5b3bd0(0x2b2)](0x1),!this['_unitOnClients'][_0x5b3bd0(0x4a3)](_0x4c9c0d)||!this[_0x5b3bd0(0x15f)]['get'](_0x4c9c0d)['has'](_0x315cff)){const _0x3f7cd6=this[_0x5b3bd0(0x15f)][_0x5b3bd0(0x4ce)](_0x4c9c0d)||new Set();_0x3f7cd6['add'](_0x315cff),this[_0x5b3bd0(0x15f)]['set'](_0x4c9c0d,_0x3f7cd6),this[_0x5b3bd0(0x3f9)](_0x315cff);}}),_0x342bb8||this[_0x380c4b(0x2b0)]({'type':0x0,'memberID':this[_0x380c4b(0x29b)],'unitIDs':[...this[_0x380c4b(0x2dc)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2642a8){const _0x582235=_0x4b1ec3;this[_0x582235(0x487)](_0x2642a8);const _0x60b9e6=window[_0x582235(0x467)](()=>{const _0x4d7251=_0x582235;this['_unitOnClients'][_0x4d7251(0x14d)](_0x5c9603=>{const _0x2ce4cb=_0x4d7251;_0x5c9603[_0x2ce4cb(0x2c8)](_0x2642a8);});},_0x26f7cf*0x2);this['_clearOtherTimers']['set'](_0x2642a8,_0x60b9e6);}[_0x4b1ec3(0x487)](_0x1ad3aa){const _0x117ef0=_0x4b1ec3;if(this['_clearOtherTimers'][_0x117ef0(0x4a3)](_0x1ad3aa)){const _0x518e9b=this['_clearOtherTimers']['get'](_0x1ad3aa);_0x518e9b&&window[_0x117ef0(0x2e9)](_0x518e9b),this[_0x117ef0(0x420)][_0x117ef0(0x20e)](_0x1ad3aa,null);}}['_handleLeaveEvent'](_0x419236){const _0x1b697e=_0x4b1ec3,{memberID:_0x4ddab7,unitIDs:_0x16e2cd}=_0x419236;_0x16e2cd['forEach'](_0x170908=>{const _0x53ff71=_0x2301;var _0x539072;const _0x156822=this['_unitOnClients'][_0x53ff71(0x4ce)](_0x170908);_0x156822&&(_0x156822['delete'](_0x4ddab7),(_0x539072=this[_0x53ff71(0x1e2)](_0x170908))==null||_0x539072[_0x53ff71(0x2b2)](_0x156822[_0x53ff71(0x3aa)]===0x0?0x0:0x1));}),this[_0x1b697e(0x487)](_0x4ddab7);}[_0x4b1ec3(0x164)](_0x38baf0){const _0x5d91a1=_0x4b1ec3;this[_0x5d91a1(0x3f9)](_0x38baf0[_0x5d91a1(0x4f1)]);}[_0x4b1ec3(0x2b0)](_0x29c068){const _0x48180b=_0x4b1ec3;localStorage[_0x48180b(0x4d0)](_0x563803,JSON['stringify'](_0x29c068));}[_0x4b1ec3(0x2c7)](){const _0x515a10=_0x4b1ec3;this[_0x515a10(0x256)]=window[_0x515a10(0x379)](()=>{const _0x3e8049=_0x515a10;this['_send']({'type':0x2,'memberID':this[_0x3e8049(0x29b)]});},_0x26f7cf);}[_0x4b1ec3(0x1e2)](_0x4fbfe3){const _0x24137a=_0x4b1ec3;return this[_0x24137a(0x337)][_0x24137a(0x4a3)](_0x4fbfe3)||this[_0x24137a(0x337)][_0x24137a(0x20e)](_0x4fbfe3,new _0x11b67e['BehaviorSubject'](0x0)),this[_0x24137a(0x337)][_0x24137a(0x4ce)](_0x4fbfe3);}}var _0xe62cdf=Object['defineProperty'],_0x25df9b=Object[_0x4b1ec3(0x507)],_0x515d1d=(_0x56f651,_0x17810e,_0x1002e1,_0x50596c)=>{const _0x4c22c5=_0x4b1ec3;for(var _0x39731a=_0x50596c>0x1?void 0x0:_0x50596c?_0x25df9b(_0x17810e,_0x1002e1):_0x17810e,_0x271da0=_0x56f651[_0x4c22c5(0x2b7)]-0x1,_0x27b637;_0x271da0>=0x0;_0x271da0--)(_0x27b637=_0x56f651[_0x271da0])&&(_0x39731a=(_0x50596c?_0x27b637(_0x17810e,_0x1002e1,_0x39731a):_0x27b637(_0x39731a))||_0x39731a);return _0x50596c&&_0x39731a&&_0xe62cdf(_0x17810e,_0x1002e1,_0x39731a),_0x39731a;},_0x2667ec=(_0x11a6ad,_0x587449)=>(_0xa0792c,_0x2d000b)=>_0x587449(_0xa0792c,_0x2d000b,_0x11a6ad);let _0x527642=class{constructor(_0xcab591,_0x508bb3){const _0x54292e=_0x4b1ec3;this[_0x54292e(0x376)]=_0xcab591,this['_transformService']=_0x508bb3;}[_0x4b1ec3(0x516)](_0xdf442d){const _0x1ca0de=_0x4b1ec3;this[_0x1ca0de(0x139)](_0xdf442d),this['_transformPreviousActiveRange'](_0xdf442d);}[_0x4b1ec3(0x3ac)](_0x46d70c){const _0x2e70ac=_0x4b1ec3,_0x120432=this[_0x2e70ac(0x376)]['get'](_0x257327['IMEInputManagerService']),{redoCache:_0x25bea9}=_0x120432[_0x2e70ac(0x396)]();if(_0x25bea9['length']===0x0)return _0x46d70c;let _0x424bd7=_0x495bbc[_0x2e70ac(0x3d6)]['deepClone'](_0x46d70c[_0x2e70ac(0x495)][0x0]);for(let _0x416366=0x0;_0x416366<_0x25bea9[_0x2e70ac(0x2b7)];_0x416366++){const _0x1f23ea={'id':'doc.mutation.rich-text-editing','params':{..._0x25bea9[_0x416366]}},_0x491387=this['_transformService'][_0x2e70ac(0x2a1)](_0x424bd7,_0x1f23ea,!0x1);if(_0x2a1cda[_0x2e70ac(0x265)](_0x491387))throw _0x491387[_0x2e70ac(0x512)];_0x424bd7=_0x491387[_0x2e70ac(0x288)];}return{..._0x495bbc[_0x2e70ac(0x3d6)][_0x2e70ac(0x1d7)](_0x46d70c),'mutations':[_0x424bd7]};}[_0x4b1ec3(0x139)](_0x71319b){const _0x5a215a=_0x4b1ec3,_0x22f637=this['_injector'][_0x5a215a(0x4ce)](_0x257327[_0x5a215a(0x17b)]),{undoCache:_0x282a2d,redoCache:_0x32c616}=_0x22f637[_0x5a215a(0x396)]();if(_0x282a2d[_0x5a215a(0x2b7)]===0x0||_0x32c616['length']===0x0)return;const _0x52f00d=[],_0x31c670=[];let _0x46d57d=_0x495bbc[_0x5a215a(0x3d6)][_0x5a215a(0x1d7)](_0x71319b['mutations'][0x0]),_0x1cb4e2=_0x495bbc[_0x5a215a(0x3d6)][_0x5a215a(0x1d7)](_0x71319b[_0x5a215a(0x495)][0x0]);for(let _0x1e2038=_0x282a2d['length']-0x1;_0x1e2038>=0x0;_0x1e2038--){const _0xcc9bb5={'id':_0x5a215a(0x158),'params':{..._0x282a2d[_0x1e2038]}},_0x52c0bf={'id':'doc.mutation.rich-text-editing','params':{..._0x32c616[_0x1e2038]}},_0x4da720=this[_0x5a215a(0x202)][_0x5a215a(0x2a1)](_0x46d57d,_0xcc9bb5,!0x1),_0x5117a4=this['_transformService']['transformMutation'](_0x1cb4e2,_0x52c0bf,!0x1);if(_0x2a1cda['isTransformMutationFailure'](_0x4da720))throw _0x4da720[_0x5a215a(0x512)];if(_0x2a1cda['isTransformMutationFailure'](_0x5117a4))throw _0x5117a4[_0x5a215a(0x512)];_0x52f00d[_0x5a215a(0x1a1)](_0x4da720[_0x5a215a(0x314)]['params']),_0x31c670[_0x5a215a(0x1a1)](_0x5117a4[_0x5a215a(0x314)][_0x5a215a(0x3b7)]),_0x46d57d=_0x4da720[_0x5a215a(0x288)],_0x1cb4e2=_0x5117a4[_0x5a215a(0x288)];}_0x22f637[_0x5a215a(0x205)]({'undoCache':_0x52f00d,'redoCache':_0x31c670});}['_transformPreviousActiveRange'](_0x4b93cc){const _0x116ce9=_0x4b1ec3,_0x582674=this['_injector'][_0x116ce9(0x4ce)](_0x257327[_0x116ce9(0x17b)]),_0x4598ba=_0x582674[_0x116ce9(0x511)]();if(_0x4598ba==null)return;const _0x3b34c9=[{'id':_0x116ce9(0x158),'params':{'unitId':_0x4b93cc[_0x116ce9(0x391)],'actions':null,'textRanges':[_0x4598ba]}}],_0x7816ef=this[_0x116ce9(0x202)][_0x116ce9(0x33c)](_0x4b93cc,_0x3b34c9);if(!_0x2a1cda[_0x116ce9(0x496)](_0x7816ef))throw _0x7816ef[_0x116ce9(0x512)];const _0x2fb7e6=_0x7816ef[_0x116ce9(0x314)][0x0][_0x116ce9(0x3b7)][_0x116ce9(0x35e)];Array['isArray'](_0x2fb7e6)&&_0x2fb7e6[_0x116ce9(0x2b7)]&&_0x582674[_0x116ce9(0x4ed)](_0x2fb7e6[0x0]);}};_0x527642=_0x515d1d([_0x2667ec(0x0,_0xff0938['Inject'](_0xff0938[_0x4b1ec3(0x22a)])),_0x2667ec(0x1,_0x2a1cda[_0x4b1ec3(0x21c)])],_0x527642);var _0x40b98c=Object[_0x4b1ec3(0x356)],_0x111bc4=Object[_0x4b1ec3(0x507)],_0xd0695e=(_0x39dba2,_0x419349,_0x35d4ea,_0x2651b4)=>{for(var _0xe13b0=_0x2651b4>0x1?void 0x0:_0x2651b4?_0x111bc4(_0x419349,_0x35d4ea):_0x419349,_0x3ff65a=_0x39dba2['length']-0x1,_0x86f7e5;_0x3ff65a>=0x0;_0x3ff65a--)(_0x86f7e5=_0x39dba2[_0x3ff65a])&&(_0xe13b0=(_0x2651b4?_0x86f7e5(_0x419349,_0x35d4ea,_0xe13b0):_0x86f7e5(_0xe13b0))||_0xe13b0);return _0x2651b4&&_0xe13b0&&_0x40b98c(_0x419349,_0x35d4ea,_0xe13b0),_0xe13b0;},_0x3c7fcf=(_0x3cb886,_0x5488fb)=>(_0x562b73,_0x59d3b3)=>_0x5488fb(_0x562b73,_0x59d3b3,_0x3cb886);let _0x2fb5e2=class{constructor(_0x2a2ec0,_0x1bd13c){const _0x5588c2=_0x4b1ec3;this['_injector']=_0x2a2ec0,this[_0x5588c2(0x202)]=_0x1bd13c;}['transformSelections'](_0x4dbb02){const _0x41333d=_0x4b1ec3;var _0x11266a;const _0x3dccd6=this[_0x41333d(0x376)][_0x41333d(0x4ce)](_0x257327[_0x41333d(0x426)]),_0x4c29bd=(_0x11266a=_0x3dccd6[_0x41333d(0x14e)]())!=null?_0x11266a:[],_0x3b2f45=_0x4c29bd==null?void 0x0:_0x4c29bd[_0x41333d(0x270)](_0x257327[_0x41333d(0x37f)]);if(_0x3b2f45[_0x41333d(0x2b7)]===0x0)return;const _0x10f12f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4dbb02[_0x41333d(0x391)],'actions':null,'textRanges':_0x3b2f45}}],_0x1a4eff=this[_0x41333d(0x202)][_0x41333d(0x33c)](_0x4dbb02,_0x10f12f);if(!_0x2a1cda['isTransformMutationsWithChangesetSuccess'](_0x1a4eff))throw _0x1a4eff[_0x41333d(0x512)];const _0x51843c=_0x1a4eff[_0x41333d(0x314)][0x0][_0x41333d(0x3b7)][_0x41333d(0x35e)];Array['isArray'](_0x51843c)&&_0x51843c[_0x41333d(0x2b7)]&&_0x3dccd6[_0x41333d(0x218)](_0x51843c,!0x1);}};_0x2fb5e2=_0xd0695e([_0x3c7fcf(0x0,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0x3c7fcf(0x1,_0x2a1cda[_0x4b1ec3(0x21c)])],_0x2fb5e2);function _0x36c929(_0x2a1b13){const _0x180641=_0x4b1ec3;let _0x29efce='';for(const _0x22610c of _0x2a1b13){const {startOffset:_0x29cf8,endOffset:_0x2a6831,isActive:_0x649c93}=_0x22610c;_0x29efce[_0x180641(0x2b7)]&&(_0x29efce+=','),_0x29efce+=_0x29cf8+':'+_0x2a6831+':'+(_0x649c93?'1':'0');}return _0x29efce;}function _0x14579a(_0x520710){const _0x2ae7dd=_0x4b1ec3,_0x193b3f=_0x520710[_0x2ae7dd(0x18a)](','),_0x559982=[];for(const _0x189a88 of _0x193b3f){const [_0xa3daf7,_0x2ccde6,_0x6a42c0]=_0x189a88[_0x2ae7dd(0x18a)](':');_0x559982[_0x2ae7dd(0x38a)]({'startOffset':Number(_0xa3daf7),'endOffset':Number(_0x2ccde6),'collapsed':_0xa3daf7===_0x2ccde6,'isActive':_0x6a42c0==='1'});}return _0x559982[_0x2ae7dd(0x451)](_0x5bc14b=>_0x5bc14b[_0x2ae7dd(0x23f)])||(_0x559982[0x0][_0x2ae7dd(0x23f)]=!0x0),_0x559982;}class _0x4095fc extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(){const _0x3564ae=_0x4b1ec3;super(...arguments),_0x5d8027(this,'_collabCursorState$',new _0x11b67e[(_0x3564ae(0x2a9))](null)),_0x5d8027(this,_0x3564ae(0x508),this[_0x3564ae(0x20c)][_0x3564ae(0x392)]());}[_0x4b1ec3(0x381)](_0x59cb67){const _0x40d26a=_0x4b1ec3,{unitID:_0x3ba1ca,memberID:_0x156dbf,textRanges:_0x4b43a6}=_0x59cb67,_0x2dcb7b=_0x36c929(_0x4b43a6),_0x3f8409={'unitID':_0x3ba1ca,'memberID':_0x156dbf,'selection':_0x2dcb7b};this[_0x40d26a(0x20c)][_0x40d26a(0x2b2)](_0x3f8409);}}var _0x18fb74=Object[_0x4b1ec3(0x356)],_0x3eb596=Object[_0x4b1ec3(0x507)],_0x1e282=(_0x7c5643,_0x3353b1,_0x599ca5,_0x16993e)=>{for(var _0x54efe5=_0x16993e>0x1?void 0x0:_0x16993e?_0x3eb596(_0x3353b1,_0x599ca5):_0x3353b1,_0x297043=_0x7c5643['length']-0x1,_0x39c255;_0x297043>=0x0;_0x297043--)(_0x39c255=_0x7c5643[_0x297043])&&(_0x54efe5=(_0x16993e?_0x39c255(_0x3353b1,_0x599ca5,_0x54efe5):_0x39c255(_0x54efe5))||_0x54efe5);return _0x16993e&&_0x54efe5&&_0x18fb74(_0x3353b1,_0x599ca5,_0x54efe5),_0x54efe5;},_0x3816ff=(_0x468502,_0x25df53)=>(_0x278737,_0x45934c)=>_0x25df53(_0x278737,_0x45934c,_0x468502);function _0x582e3f(_0x474e26){const _0x4c0555=_0x4b1ec3,{unitID:_0x305465,mutations:_0xa27c8d}=_0x474e26;return{'unitId':_0x305465,'subUnitId':_0xa27c8d[0x0][_0x4c0555(0x3b7)][_0x4c0555(0x327)]};}let _0x56fa9d=class{constructor(_0xf83d77,_0x1092ff){const _0x445a8c=_0x4b1ec3;this[_0x445a8c(0x376)]=_0xf83d77,this[_0x445a8c(0x202)]=_0x1092ff;}[_0x4b1ec3(0x38c)](_0x5a8d11){const _0x36242c=_0x4b1ec3;var _0x5a00b4,_0x5f3453,_0x1d8570;const _0x471b63=this[_0x36242c(0x376)]['get'](_0x344713[_0x36242c(0x38e)]),{unitId:_0x5e3ce2,subUnitId:_0x153cd8}=_0x582e3f(_0x5a8d11),_0x50301a=_0x471b63['getWorkbookSelections'](_0x5e3ce2)['getCurrentSelections']();if(_0x50301a[_0x36242c(0x2b7)]===0x0||!_0x5e3ce2||!_0x153cd8)return;const _0xbd4dc=[{'id':_0x344713[_0x36242c(0x41f)]['id'],'params':{'unitId':_0x5e3ce2,'subUnitId':_0x153cd8,'selections':_0x495bbc['Tools'][_0x36242c(0x1d7)](_0x50301a)}}],_0x3a9fc2=this[_0x36242c(0x202)][_0x36242c(0x33c)](_0x5a8d11,_0xbd4dc);if(!_0x2a1cda['isTransformMutationsWithChangesetSuccess'](_0x3a9fc2))throw _0x3a9fc2[_0x36242c(0x512)];const _0x57ec3f=(_0x1d8570=(_0x5f3453=(_0x5a00b4=_0x3a9fc2[_0x36242c(0x314)][0x0])==null?void 0x0:_0x5a00b4[_0x36242c(0x3b7)])==null?void 0x0:_0x5f3453[_0x36242c(0x4db)])!=null?_0x1d8570:_0x50301a;Array[_0x36242c(0x37c)](_0x57ec3f)&&_0x57ec3f[_0x36242c(0x2b7)]&&this[_0x36242c(0x376)][_0x36242c(0x4ce)](_0x495bbc['ICommandService'])[_0x36242c(0x259)](_0x344713['SetSelectionsOperation']['id'],{'unitId':_0x5e3ce2,'subUnitId':_0x153cd8,'selections':_0x57ec3f});}};_0x56fa9d=_0x1e282([_0x3816ff(0x0,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0x3816ff(0x1,_0x2a1cda['ITransformService'])],_0x56fa9d);const _0x541ecf=new Set([_0x344713['InsertSheetMutation']['id']]);function _0x531e45(_0x1b28b2,_0x3e7360,_0x27df79,_0x5aa7c8,_0x305ee6){const _0x523a9d=_0x4b1ec3;var _0x1674ed,_0x3517e7,_0x3bbbbb,_0x3b648b;const _0x36c4c2=[];for(const _0x403064 of _0x1b28b2)if(_0x541ecf['has'](_0x403064['id'])){if(_0x36c4c2[_0x523a9d(0x2b7)]>0x0)break;_0x36c4c2['push'](_0x403064);break;}else _0x36c4c2[_0x523a9d(0x38a)](_0x403064);const _0x4bae3d=(_0x3517e7=(_0x1674ed=_0x305ee6[_0x523a9d(0x368)]())==null?void 0x0:_0x1674ed['userID'])!=null?_0x3517e7:_0x523a9d(0x1c3),_0x4f0e1e=(_0x3b648b=(_0x3bbbbb=_0x305ee6['getCurrentUser']())==null?void 0x0:_0x3bbbbb[_0x523a9d(0x4f1)])!=null?_0x3b648b:_0x523a9d(0x1c3);return{'changeset':{'unitID':_0x3e7360,'type':_0x2a1cda[_0x523a9d(0x1fe)](_0x27df79['getUnitType'](_0x3e7360)),'baseRev':_0x5aa7c8[_0x523a9d(0x30b)](_0x3e7360),'revision':0x0,'userID':_0x4bae3d,'memberID':_0x4f0e1e,'mutations':_0x36c4c2},'pendingMutations':_0x1b28b2[_0x523a9d(0x50d)](_0x36c4c2['length'])};}function _0x417c68(_0x587432,_0x37469b,_0x304dc9,_0xb14d0a,_0x5bc136){const _0x43fd1a=_0x4b1ec3;var _0x1b6c91,_0x4f988f,_0x31d7b6,_0x8ed1b8;const _0x597136=[_0x587432[_0x43fd1a(0x361)]((_0x398b7f,_0x475a46)=>{const _0x218e61=_0x43fd1a;var _0x3d2b32;const {id:_0x16e586}=_0x398b7f,{id:_0x12e575,type:_0x5de6f4}=_0x475a46,_0x466ba0=(_0x3d2b32=_0x398b7f['params'])!=null?_0x3d2b32:{'actions':null},_0x518806=_0x475a46[_0x218e61(0x3b7)];if(_0x16e586&&_0x16e586!==_0x12e575)throw new Error(_0x218e61(0x2b6)+_0x16e586+_0x218e61(0x476)+_0x12e575+'.');return{..._0x398b7f,'id':_0x12e575,'type':_0x5de6f4,'params':{'unitId':_0x518806[_0x218e61(0x384)],'textRanges':_0x518806[_0x218e61(0x35e)],'actions':_0x495bbc[_0x218e61(0x41c)][_0x218e61(0x4b5)](_0x466ba0['actions'],_0x518806[_0x218e61(0x274)])}};},{})],_0x47ffb7=(_0x4f988f=(_0x1b6c91=_0x5bc136['getCurrentUser']())==null?void 0x0:_0x1b6c91[_0x43fd1a(0x3a9)])!=null?_0x4f988f:'unknown',_0x214e6a=(_0x8ed1b8=(_0x31d7b6=_0x5bc136[_0x43fd1a(0x368)]())==null?void 0x0:_0x31d7b6[_0x43fd1a(0x4f1)])!=null?_0x8ed1b8:'unknown';return{'changeset':{'unitID':_0x37469b,'type':_0x2a1cda[_0x43fd1a(0x1fe)](_0x304dc9[_0x43fd1a(0x3a8)](_0x37469b)),'baseRev':_0xb14d0a['getCurrentRevForDocument'](_0x37469b),'revision':0x0,'userID':_0x47ffb7,'memberID':_0x214e6a,'mutations':_0x597136},'pendingMutations':[]};}var _0x7ca02a=Object['defineProperty'],_0x2ca45c=Object['getOwnPropertyDescriptor'],_0x3e342b=(_0x4654d7,_0x3887e6,_0x412884,_0x28a4ef)=>{const _0x5bad2e=_0x4b1ec3;for(var _0x3aeb01=_0x28a4ef>0x1?void 0x0:_0x28a4ef?_0x2ca45c(_0x3887e6,_0x412884):_0x3887e6,_0x43d0c1=_0x4654d7[_0x5bad2e(0x2b7)]-0x1,_0x2d620c;_0x43d0c1>=0x0;_0x43d0c1--)(_0x2d620c=_0x4654d7[_0x43d0c1])&&(_0x3aeb01=(_0x28a4ef?_0x2d620c(_0x3887e6,_0x412884,_0x3aeb01):_0x2d620c(_0x3aeb01))||_0x3aeb01);return _0x28a4ef&&_0x3aeb01&&_0x7ca02a(_0x3887e6,_0x412884,_0x3aeb01),_0x3aeb01;},_0x15ca9e=(_0x41b76f,_0xc7d149)=>(_0x40b0fc,_0x2aa656)=>_0xc7d149(_0x40b0fc,_0x2aa656,_0x41b76f),_0x17c726=(_0x2340dd=>(_0x2340dd[_0x4b1ec3(0x358)]=_0x4b1ec3(0x15a),_0x2340dd[_0x4b1ec3(0x401)]=_0x4b1ec3(0x190),_0x2340dd[_0x4b1ec3(0x473)]=_0x4b1ec3(0x470),_0x2340dd['AWAITING']=_0x4b1ec3(0x448),_0x2340dd[_0x4b1ec3(0x2aa)]='awaiting_with_pending',_0x2340dd[_0x4b1ec3(0x308)]=_0x4b1ec3(0x414),_0x2340dd['CONFLICT']='conflict',_0x2340dd[_0x4b1ec3(0x30a)]='offline',_0x2340dd))(_0x17c726||{});class _0x3bf8ea{constructor(_0x5e70c3,_0x48c8b3,_0x41cd34,_0x48651d,_0x33e75d,_0xaab4b9,_0x12f99c,_0x97a2e,_0x2cac96){const _0x2d0c59=_0x4b1ec3;_0x5d8027(this,_0x2d0c59(0x44b),null),_0x5d8027(this,_0x2d0c59(0x1bb),[]),(this[_0x2d0c59(0x391)]=_0x5e70c3,this[_0x2d0c59(0x2fc)]=_0x48c8b3,this[_0x2d0c59(0x472)]=_0x33e75d,this[_0x2d0c59(0x2e4)]=_0xaab4b9,this['_undoRedoService']=_0x12f99c,this[_0x2d0c59(0x366)]=_0x97a2e,this[_0x2d0c59(0x43d)]=_0x2cac96,this[_0x2d0c59(0x44b)]=_0x41cd34,this[_0x2d0c59(0x1bb)]=_0x48651d);}[_0x4b1ec3(0x340)](_0x902fa7){const _0x42c2fb=_0x4b1ec3,_0x33e913=this[_0x42c2fb(0x366)]['getCurrentRevForDocument'](this[_0x42c2fb(0x391)]);return _0x902fa7[_0x42c2fb(0x44e)]>_0x33e913+0x1?(this[_0x42c2fb(0x472)]['onMissingChangesets']({'from':_0x33e913,'to':_0x902fa7[_0x42c2fb(0x44e)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x281e31){const _0x492254=_0x4b1ec3;this[_0x492254(0x31e)][_0x492254(0x208)](this[_0x492254(0x391)],_0x281e31);}[_0x4b1ec3(0x374)](_0x30b1a3){const _0x58b8f7=_0x4b1ec3;var _0x1136e4,_0x1bd5bb;(_0x1bd5bb=(_0x1136e4=this['_handler'])[_0x58b8f7(0x3d5)])==null||_0x1bd5bb['call'](_0x1136e4,_0x30b1a3);}[_0x4b1ec3(0x348)](_0x2ac9be){const _0x1f18ae=_0x4b1ec3;var _0xc66749,_0x4549b0;return(_0x4549b0=(_0xc66749=this[_0x1f18ae(0x472)])[_0x1f18ae(0x417)])==null?void 0x0:_0x4549b0[_0x1f18ae(0x25a)](_0xc66749,_0x2ac9be);}[_0x4b1ec3(0x1e6)](_0x3ac9ca){const _0x1ea7cd=_0x4b1ec3;var _0x19d4c6,_0x46f666,_0x53c3d1;return(_0x53c3d1=(_0x46f666=(_0x19d4c6=this[_0x1ea7cd(0x472)])[_0x1ea7cd(0x1b1)])==null?void 0x0:_0x46f666['call'](_0x19d4c6,_0x3ac9ca))!=null?_0x53c3d1:_0x3ac9ca;}[_0x4b1ec3(0x250)](_0x389013){const _0xda855a=_0x4b1ec3;var _0x54a9a5,_0x15f406;if(this['type']===_0x1ffbf2[_0xda855a(0x438)]){const {unitID:_0x421d4e,mutations:_0x224760,memberID:_0x407abe}=_0x389013,_0x2cb808=_0x224760[0x0]['params'][_0xda855a(0x35e)];Array['isArray'](_0x2cb808)&&_0x2cb808['length']>0x0&&((_0x15f406=(_0x54a9a5=this['_handler'])[_0xda855a(0x1c9)])==null||_0x15f406[_0xda855a(0x25a)](_0x54a9a5,{'unitID':_0x421d4e,'memberID':_0x407abe,'textRanges':_0x2cb808}));}}[_0x4b1ec3(0x4f5)](){const _0x243a6a=_0x4b1ec3;this['_localCacheService'][_0x243a6a(0x3b8)](this['unitID'],this[_0x243a6a(0x2fc)],this['_awaitingChangeset'],this[_0x243a6a(0x1bb)]);}[_0x4b1ec3(0x364)](){const _0x559c8a=_0x4b1ec3;return this[_0x559c8a(0x366)][_0x559c8a(0x30b)](this[_0x559c8a(0x391)]);}[_0x4b1ec3(0x264)](){const _0x16959a=_0x4b1ec3;this[_0x16959a(0x366)][_0x16959a(0x13a)](this[_0x16959a(0x391)]);}[_0x4b1ec3(0x1be)](_0x5ab53e){const _0x1a670d=_0x4b1ec3;var _0x5da441;const _0x390109=this[_0x1a670d(0x1e6)](_0x5ab53e),_0x298c7b=_0x495bbc[_0x1a670d(0x212)](_0x390109[_0x1a670d(0x495)],this[_0x1a670d(0x2e4)],{'fromCollab':!0x0});if(!_0x298c7b[_0x1a670d(0x255)])throw _0x298c7b[_0x1a670d(0x512)]instanceof Error?_0x298c7b[_0x1a670d(0x512)]:new Error((_0x5da441=_0x298c7b[_0x1a670d(0x512)])!=null?_0x5da441:'[CollaborationState]:\x20apply\x20error!');this['_transformIMECache'](_0x390109),this['_transformUndoredo'](_0x5ab53e),this['_transformSelections'](_0x390109),this[_0x1a670d(0x250)](_0x390109),this[_0x1a670d(0x264)]();}}let _0x40d214=class extends _0x3bf8ea{constructor(_0x516524,_0x40ad19,_0x49edfd,_0x2fb550,_0x3f5609,_0x2ecd30,_0x420fee,_0x5d0b52,_0x2e7e20){const _0x42e6e1=_0x4b1ec3;super(_0x516524,_0x40ad19,null,[],_0x49edfd,_0x5d0b52,_0x420fee,_0x2fb550,_0x3f5609),_0x5d8027(this,_0x42e6e1(0x465),_0x42e6e1(0x190)),(this['_injector']=_0x2ecd30,this[_0x42e6e1(0x38b)]=_0x2e7e20);}[_0x4b1ec3(0x273)](_0x1e80cd){const _0x355bb7=_0x4b1ec3,_0x420715=this[_0x355bb7(0x376)][_0x355bb7(0x1ab)](_0x5ada80,this[_0x355bb7(0x391)],this[_0x355bb7(0x2fc)],[_0x1e80cd],this['_handler']);return _0x420715['_schedule'](),_0x420715[_0x355bb7(0x4f5)](),_0x420715;}[_0x4b1ec3(0x3c0)](_0x242928){const _0xff66e7=_0x4b1ec3;if(this[_0xff66e7(0x340)](_0x242928))return this[_0xff66e7(0x376)]['createInstance'](_0x5d3d56,this[_0xff66e7(0x391)],this[_0xff66e7(0x2fc)],null,[],null,[_0x242928],this[_0xff66e7(0x472)]);try{return this[_0xff66e7(0x1be)](_0x242928),this;}catch(_0x3dade9){return this['_logService'][_0xff66e7(0x512)](_0xff66e7(0x33f),_0x3dade9),this;}}[_0x4b1ec3(0x46c)](){const _0x25bdb8=_0x4b1ec3;throw new Error(_0x25bdb8(0x2bd));}['onRemoteRej'](){const _0x37c1f9=_0x4b1ec3;throw new Error(_0x37c1f9(0x4b9));}['toggleOffline'](){const _0x1fc613=_0x4b1ec3;return this[_0x1fc613(0x376)][_0x1fc613(0x1ab)](_0x394166,this[_0x1fc613(0x391)],this[_0x1fc613(0x2fc)],null,[],this[_0x1fc613(0x472)]);}[_0x4b1ec3(0x19e)](){return this;}[_0x4b1ec3(0x434)](){const _0x36ff7a=_0x4b1ec3;throw new Error(_0x36ff7a(0x141));}};_0x40d214=_0x3e342b([_0x15ca9e(0x3,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x481)])),_0x15ca9e(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x99db31['LocalCacheService'])),_0x15ca9e(0x5,_0xff0938[_0x4b1ec3(0x292)](_0xff0938['Injector'])),_0x15ca9e(0x6,_0x495bbc[_0x4b1ec3(0x3d4)]),_0x15ca9e(0x7,_0x495bbc['ICommandService']),_0x15ca9e(0x8,_0x495bbc[_0x4b1ec3(0x22c)])],_0x40d214);let _0x5ada80=class extends _0x3bf8ea{constructor(_0x3c8990,_0x236a5a,_0x5826eb,_0x1e9f88,_0x1bfc59,_0x471937,_0x332630,_0x5e5f23,_0x5b19d6,_0x46682f,_0x5065e6,_0x1f0bc8,_0xe4165,_0x18e3a6){const _0x387e2a=_0x4b1ec3;super(_0x3c8990,_0x236a5a,null,_0x5826eb,_0x1e9f88,_0x46682f,_0x18e3a6,_0x471937,_0x332630),_0x5d8027(this,_0x387e2a(0x465),_0x387e2a(0x470)),_0x5d8027(this,'_scheduleTimestamp',null),_0x5d8027(this,_0x387e2a(0x29f),null),(this['_injector']=_0x1bfc59,this[_0x387e2a(0x3ae)]=_0x5e5f23,this['_logService']=_0x5b19d6,this[_0x387e2a(0x313)]=_0x5065e6,this[_0x387e2a(0x202)]=_0x1f0bc8,this[_0x387e2a(0x352)]=_0xe4165);}['appendMutation'](_0x578962){const _0x457b5c=_0x4b1ec3;return this[_0x457b5c(0x1bb)]['push'](_0x578962),this[_0x457b5c(0x4f5)](),this;}['onRemoteChangeset'](_0x3f7dad){const _0x304d82=_0x4b1ec3;if(this[_0x304d82(0x340)](_0x3f7dad))return this[_0x304d82(0x4fb)](),this[_0x304d82(0x376)][_0x304d82(0x1ab)](_0x5d3d56,this[_0x304d82(0x391)],this[_0x304d82(0x2fc)],null,this['_pendingMutations'],null,[_0x3f7dad],this[_0x304d82(0x472)]);try{const _0x1801b3=this['_transformService']['transformMutationsWithChangeset'](_0x3f7dad,this['_pendingMutations']);if(_0x2a1cda[_0x304d82(0x496)](_0x1801b3)){const {c1Prime:_0x589816,m2Prime:_0x28f89e}=_0x1801b3;this['_executeRemoteChangeset'](_0x589816);const _0x3e659b=this[_0x304d82(0x376)][_0x304d82(0x1ab)](_0x5ada80,this['unitID'],this['type'],_0x28f89e,this[_0x304d82(0x472)]);return this[_0x304d82(0x4fb)](),_0x3e659b[_0x304d82(0x371)](this[_0x304d82(0x2cf)]?Math[_0x304d82(0x4b3)](0x0,new Date()[_0x304d82(0x429)]()-this[_0x304d82(0x2cf)]):this[_0x304d82(0x3a6)]()),_0x3e659b;}throw _0x1801b3[_0x304d82(0x512)];}catch(_0x9cfbc2){return this[_0x304d82(0x38b)]['error'](_0x9cfbc2),this['_onConflict'](!0x1);}}[_0x4b1ec3(0x46c)](){const _0x1c9cb0=_0x4b1ec3;throw new Error(_0x1c9cb0(0x45d));}[_0x4b1ec3(0x209)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x4b1ec3(0x2f5)](){const _0x418c1f=_0x4b1ec3;return this[_0x418c1f(0x4fb)](),this[_0x418c1f(0x376)][_0x418c1f(0x1ab)](_0x394166,this[_0x418c1f(0x391)],this['type'],null,this[_0x418c1f(0x1bb)],this[_0x418c1f(0x472)]);}[_0x4b1ec3(0x19e)](){return this;}[_0x4b1ec3(0x371)](_0x13f51f){const _0x4d86c8=_0x4b1ec3;_0x13f51f=_0x13f51f!=null?_0x13f51f:this[_0x4d86c8(0x3a6)](),this[_0x4d86c8(0x2cf)]=new Date()['getTime'](),this[_0x4d86c8(0x29f)]=setTimeout(()=>{const _0x131125=_0x4d86c8;this[_0x131125(0x4fb)]();let _0x36a7e9=null;switch(this[_0x131125(0x2fc)]){case _0x1ffbf2[_0x131125(0x271)]:{_0x36a7e9=_0x531e45(this[_0x131125(0x1bb)],this[_0x131125(0x391)],this[_0x131125(0x352)],this[_0x131125(0x366)],this['_memberService']);break;}case _0x1ffbf2[_0x131125(0x438)]:{_0x36a7e9=_0x417c68(this[_0x131125(0x1bb)],this['unitID'],this['_univerInstanceService'],this[_0x131125(0x366)],this['_memberService']);break;}default:throw new Error(_0x131125(0x4fd)+this[_0x131125(0x2fc)]+_0x131125(0x153));}const {changeset:_0x4188d1,pendingMutations:_0x4b34a3}=_0x36a7e9;this[_0x131125(0x472)][_0x131125(0x29c)](_0x4188d1);const _0xd5eade=_0x4b34a3['length']?this['_injector'][_0x131125(0x1ab)](_0x375398,this[_0x131125(0x391)],this['type'],_0x4188d1,_0x4b34a3,this[_0x131125(0x472)]):this[_0x131125(0x376)][_0x131125(0x1ab)](_0x4a1f33,this['unitID'],this[_0x131125(0x2fc)],_0x4188d1,this[_0x131125(0x472)]);_0xd5eade[_0x131125(0x4f5)](),this[_0x131125(0x472)][_0x131125(0x439)](this,_0xd5eade);},_0x13f51f);}[_0x4b1ec3(0x3a6)](){const _0x18e011=_0x4b1ec3;var _0x305ea6;return(_0x305ea6=this[_0x18e011(0x313)][_0x18e011(0x1b6)](_0x432ad5))!=null?_0x305ea6:0x7d0;}[_0x4b1ec3(0x434)](){const _0x3b37ec=_0x4b1ec3;throw new Error(_0x3b37ec(0x17e));}[_0x4b1ec3(0x4fb)](){const _0x5274b6=_0x4b1ec3;this[_0x5274b6(0x29f)]!=null&&(clearTimeout(this[_0x5274b6(0x29f)]),this['_sendingTimer']=null);}['_onConflict'](_0x47e320){const _0x30d6fa=_0x4b1ec3;return this[_0x30d6fa(0x4fb)](),this[_0x30d6fa(0x376)][_0x30d6fa(0x1ab)](_0x1d1c0e,this[_0x30d6fa(0x391)],this[_0x30d6fa(0x2fc)],null,this[_0x30d6fa(0x1bb)],this['_handler'],_0x47e320);}};_0x5ada80=_0x3e342b([_0x15ca9e(0x4,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0x15ca9e(0x5,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x481)])),_0x15ca9e(0x6,_0xff0938['Inject'](_0x99db31['LocalCacheService'])),_0x15ca9e(0x7,_0xff0938[_0x4b1ec3(0x292)](_0x384a59)),_0x15ca9e(0x8,_0x495bbc[_0x4b1ec3(0x22c)]),_0x15ca9e(0x9,_0x495bbc['ICommandService']),_0x15ca9e(0xa,_0x495bbc['IConfigService']),_0x15ca9e(0xb,_0x2a1cda[_0x4b1ec3(0x21c)]),_0x15ca9e(0xc,_0x495bbc['IUniverInstanceService']),_0x15ca9e(0xd,_0x495bbc[_0x4b1ec3(0x3d4)])],_0x5ada80);let _0x4a1f33=class extends _0x3bf8ea{constructor(_0x24aaed,_0xed4e66,_0x3742eb,_0x59f199,_0x365480,_0x1ffe3b,_0x4b20b7,_0x150571,_0x32c1c9,_0xa8abe7,_0x1b0a93){const _0x4fbfbd=_0x4b1ec3;super(_0x24aaed,_0xed4e66,_0x3742eb,[],_0x59f199,_0x150571,_0x1b0a93,_0x1ffe3b,_0x4b20b7),_0x5d8027(this,_0x4fbfbd(0x465),_0x4fbfbd(0x448)),(this[_0x4fbfbd(0x376)]=_0x365480,this[_0x4fbfbd(0x38b)]=_0x32c1c9,this[_0x4fbfbd(0x202)]=_0xa8abe7);}[_0x4b1ec3(0x273)](_0x57665d){const _0xf7ac24=_0x4b1ec3,_0x5f15ec=this[_0xf7ac24(0x376)][_0xf7ac24(0x1ab)](_0x375398,this[_0xf7ac24(0x391)],this['type'],this[_0xf7ac24(0x44b)],[_0x57665d],this[_0xf7ac24(0x472)]);return _0x5f15ec['_updateLocalCache'](),_0x5f15ec;}[_0x4b1ec3(0x3c0)](_0x43ca41){const _0x552ba7=_0x4b1ec3;if(this[_0x552ba7(0x340)](_0x43ca41))return this[_0x552ba7(0x376)][_0x552ba7(0x1ab)](_0x5d3d56,this['unitID'],this[_0x552ba7(0x2fc)],this[_0x552ba7(0x44b)],[],null,[_0x43ca41],this[_0x552ba7(0x472)]);try{const _0x517ea9=this[_0x552ba7(0x202)]['transformChangesets']([_0x43ca41],[this[_0x552ba7(0x44b)]],!0x1);if(_0x2a1cda[_0x552ba7(0x4d3)](_0x517ea9)){const {c1Prime:_0x333524,c2Prime:_0x5f8732}=_0x517ea9;this[_0x552ba7(0x1be)](_0x333524[0x0]),_0x5f8732[0x0]['baseRev']=this[_0x552ba7(0x364)]();const _0x12e92d=this['_injector'][_0x552ba7(0x1ab)](_0x4a1f33,this['unitID'],this[_0x552ba7(0x2fc)],_0x5f8732[0x0],this[_0x552ba7(0x472)]);return _0x12e92d[_0x552ba7(0x4f5)](),_0x12e92d;}return this['_onConflict'](!0x1);}catch(_0x57b38c){return this[_0x552ba7(0x38b)][_0x552ba7(0x512)](_0x57b38c),this[_0x552ba7(0x3ce)](!0x1);}}[_0x4b1ec3(0x46c)](_0xfaa92b){const _0x1350f6=_0x4b1ec3,_0x48c8cd=this['_revisionService']['getCurrentRevForDocument'](this[_0x1350f6(0x391)]);if(_0xfaa92b[_0x1350f6(0x44e)]<_0x48c8cd-0x1)return this;if(this[_0x1350f6(0x340)](_0xfaa92b))return this[_0x1350f6(0x376)][_0x1350f6(0x1ab)](_0x5d3d56,this[_0x1350f6(0x391)],this[_0x1350f6(0x2fc)],null,[],this[_0x1350f6(0x44b)],[],this['_handler']);this[_0x1350f6(0x264)]();const _0x437375=this[_0x1350f6(0x376)]['createInstance'](_0x40d214,this['unitID'],this[_0x1350f6(0x2fc)],this['_handler']);return _0x437375['_updateLocalCache'](),_0x437375;}[_0x4b1ec3(0x209)](_0x117b74){const _0x278035=_0x4b1ec3;return this[_0x278035(0x3ce)](!!(_0x117b74!=null&&_0x117b74[_0x278035(0x42f)]));}[_0x4b1ec3(0x2f5)](){const _0x8a771b=_0x4b1ec3;return this[_0x8a771b(0x376)]['createInstance'](_0x394166,this[_0x8a771b(0x391)],this[_0x8a771b(0x2fc)],this[_0x8a771b(0x44b)],[],this['_handler']);}[_0x4b1ec3(0x19e)](){return this;}[_0x4b1ec3(0x434)](){const _0xd6e865=_0x4b1ec3;this[_0xd6e865(0x472)][_0xd6e865(0x29c)](this[_0xd6e865(0x44b)]);}[_0x4b1ec3(0x3ce)](_0x17ee83){const _0x2c2bbf=_0x4b1ec3;return this[_0x2c2bbf(0x376)][_0x2c2bbf(0x1ab)](_0x1d1c0e,this[_0x2c2bbf(0x391)],this[_0x2c2bbf(0x2fc)],this[_0x2c2bbf(0x44b)],[],this[_0x2c2bbf(0x472)],_0x17ee83);}};_0x4a1f33=_0x3e342b([_0x15ca9e(0x4,_0xff0938['Inject'](_0xff0938[_0x4b1ec3(0x22a)])),_0x15ca9e(0x5,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda['RevisionService'])),_0x15ca9e(0x6,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x4de)])),_0x15ca9e(0x7,_0x495bbc[_0x4b1ec3(0x28f)]),_0x15ca9e(0x8,_0x495bbc[_0x4b1ec3(0x22c)]),_0x15ca9e(0x9,_0x2a1cda[_0x4b1ec3(0x21c)]),_0x15ca9e(0xa,_0x495bbc[_0x4b1ec3(0x3d4)])],_0x4a1f33);let _0x375398=class extends _0x3bf8ea{constructor(_0x2f757e,_0x4b7e51,_0x2a325a,_0x3f68a2,_0x2c48ae,_0x42b63b,_0xd8f73a,_0x15d951,_0x466ccd,_0x2ef324,_0x35a5ed,_0x678999){const _0x58502e=_0x4b1ec3;super(_0x2f757e,_0x4b7e51,_0x2a325a,_0x3f68a2,_0x2c48ae,_0x466ccd,_0x678999,_0xd8f73a,_0x15d951),_0x5d8027(this,_0x58502e(0x465),_0x58502e(0x32a)),(this['_injector']=_0x42b63b,this[_0x58502e(0x38b)]=_0x2ef324,this[_0x58502e(0x202)]=_0x35a5ed);}[_0x4b1ec3(0x273)](_0x3c114f){const _0x3402f7=_0x4b1ec3;return this['_pendingMutations'][_0x3402f7(0x38a)](_0x3c114f),this;}['onRemoteChangeset'](_0xa1aa2b){const _0x1fea52=_0x4b1ec3;if(this[_0x1fea52(0x340)](_0xa1aa2b))return this[_0x1fea52(0x376)][_0x1fea52(0x1ab)](_0x5d3d56,this[_0x1fea52(0x391)],this[_0x1fea52(0x2fc)],this['_awaitingChangeset'],this[_0x1fea52(0x1bb)],null,[_0xa1aa2b],this['_handler']);try{const _0x56ec13=this['_transformService'][_0x1fea52(0x1d4)]([_0xa1aa2b],[this[_0x1fea52(0x44b)]],!0x1);if(_0x2a1cda[_0x1fea52(0x4d3)](_0x56ec13)){const {c1Prime:_0xb59817,c2Prime:_0x229287}=_0x56ec13,_0x17687d=this['_transformService'][_0x1fea52(0x33c)](_0xb59817[0x0],this[_0x1fea52(0x1bb)]);if(_0x2a1cda[_0x1fea52(0x496)](_0x17687d)){const {c1Prime:_0x5a9c09,m2Prime:_0x4e856b}=_0x17687d;return this[_0x1fea52(0x1be)](_0x5a9c09),_0x229287[0x0][_0x1fea52(0x35f)]=this[_0x1fea52(0x364)](),this['_injector']['createInstance'](_0x375398,this['unitID'],this['type'],_0x229287[0x0],_0x4e856b,this['_handler']);}throw _0x17687d[_0x1fea52(0x512)];}throw _0x56ec13[_0x1fea52(0x512)];}catch(_0x1afd96){return this[_0x1fea52(0x38b)][_0x1fea52(0x512)](_0x1afd96),this[_0x1fea52(0x3ce)](!0x1);}}['onRemoteAck'](_0x1037d4){const _0x4a82f3=_0x4b1ec3;if(this[_0x4a82f3(0x340)](_0x1037d4))return this[_0x4a82f3(0x376)][_0x4a82f3(0x1ab)](_0x5d3d56,this[_0x4a82f3(0x391)],this[_0x4a82f3(0x2fc)],null,this[_0x4a82f3(0x1bb)],this[_0x4a82f3(0x44b)],[],this[_0x4a82f3(0x472)]);this['_incrementRevisionNumber']();const _0x15a0d2=this[_0x4a82f3(0x376)]['createInstance'](_0x5ada80,this['unitID'],this[_0x4a82f3(0x2fc)],this[_0x4a82f3(0x1bb)],this[_0x4a82f3(0x472)]);return _0x15a0d2['_schedule'](),_0x15a0d2['_updateLocalCache'](),_0x15a0d2;}['onRemoteRej'](_0x4d9340){const _0x5868ea=_0x4b1ec3;return this[_0x5868ea(0x3ce)](!!(_0x4d9340!=null&&_0x4d9340['isPermissionRej']));}[_0x4b1ec3(0x2f5)](){const _0x2b2fea=_0x4b1ec3;return this[_0x2b2fea(0x376)][_0x2b2fea(0x1ab)](_0x394166,this[_0x2b2fea(0x391)],this[_0x2b2fea(0x2fc)],this[_0x2b2fea(0x44b)],this[_0x2b2fea(0x1bb)],this[_0x2b2fea(0x472)]);}[_0x4b1ec3(0x19e)](){return this;}[_0x4b1ec3(0x434)](){const _0xba8aaf=_0x4b1ec3;this[_0xba8aaf(0x472)]['onSendChangeset'](this[_0xba8aaf(0x44b)]);}[_0x4b1ec3(0x3ce)](_0x6a2c6){const _0x12cb10=_0x4b1ec3;return this[_0x12cb10(0x376)][_0x12cb10(0x1ab)](_0x1d1c0e,this[_0x12cb10(0x391)],this[_0x12cb10(0x2fc)],null,this[_0x12cb10(0x1bb)],this[_0x12cb10(0x472)],_0x6a2c6);}};_0x375398=_0x3e342b([_0x15ca9e(0x5,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0x15ca9e(0x6,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x481)])),_0x15ca9e(0x7,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x4de)])),_0x15ca9e(0x8,_0x495bbc[_0x4b1ec3(0x28f)]),_0x15ca9e(0x9,_0x495bbc[_0x4b1ec3(0x22c)]),_0x15ca9e(0xa,_0x2a1cda['ITransformService']),_0x15ca9e(0xb,_0x495bbc['IUndoRedoService'])],_0x375398);let _0x1d1c0e=class extends _0x3bf8ea{constructor(_0x58f91d,_0x1b9b64,_0x3cc346,_0x5a8dd5,_0x2be9e4,_0x4420f8=!0x1,_0x1ef872,_0x4c553e,_0x3a0e9f,_0x3a6a84,_0x876d78,_0x57759d,_0x5504eb){const _0x27c386=_0x4b1ec3;super(_0x58f91d,_0x1b9b64,_0x3cc346,_0x5a8dd5,_0x2be9e4,_0x4c553e,_0x3a0e9f,_0x876d78,_0x3a6a84),_0x5d8027(this,'status','conflict'),(this[_0x27c386(0x24d)]=_0x4420f8,this[_0x27c386(0x245)]=_0x1ef872,this[_0x27c386(0x131)]=_0x57759d,this[_0x27c386(0x346)]=_0x5504eb,this['_showConflictNotification'](),this[_0x27c386(0x1ac)](),this[_0x27c386(0x172)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x4b1ec3(0x46c)](){return this;}['onRemoteRej'](){return this;}[_0x4b1ec3(0x2f5)](){return this;}[_0x4b1ec3(0x19e)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x470345=_0x4b1ec3;this['_localCacheService'][_0x470345(0x3b8)](this[_0x470345(0x391)],this[_0x470345(0x2fc)],null,[]);}['_showConflictNotification'](){const _0x43ace7=_0x4b1ec3;this[_0x43ace7(0x24d)]?this['_notificationService'][_0x43ace7(0x42c)]({'title':this[_0x43ace7(0x131)]['t'](_0x43ace7(0x4df)),'content':this['_localeService']['t'](_0x43ace7(0x178)),'type':_0x43ace7(0x512),'duration':0x0}):this[_0x43ace7(0x346)][_0x43ace7(0x42c)]({'title':this[_0x43ace7(0x131)]['t']('conflict.title'),'content':this[_0x43ace7(0x131)]['t'](_0x43ace7(0x309)),'type':_0x43ace7(0x512),'duration':0x0});}[_0x4b1ec3(0x172)](){const _0x5ca078=_0x4b1ec3;this[_0x5ca078(0x245)][_0x5ca078(0x162)](new _0x344713[(_0x5ca078(0x17c))](this[_0x5ca078(0x391)])['id'],!0x1);}};_0x1d1c0e=_0x3e342b([_0x15ca9e(0x6,_0xff0938['Inject'](_0x495bbc[_0x4b1ec3(0x1b5)])),_0x15ca9e(0x7,_0x495bbc[_0x4b1ec3(0x28f)]),_0x15ca9e(0x8,_0x495bbc[_0x4b1ec3(0x3d4)]),_0x15ca9e(0x9,_0xff0938['Inject'](_0x99db31[_0x4b1ec3(0x4de)])),_0x15ca9e(0xa,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x481)])),_0x15ca9e(0xb,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc['LocaleService'])),_0x15ca9e(0xc,_0x510d97['INotificationService'])],_0x1d1c0e);let _0x394166=class extends _0x3bf8ea{constructor(_0x4d3fbd,_0x295860,_0x3739f4,_0x52c0b4,_0x4d99fd,_0x3623a2,_0x1526e4,_0x59a0a6,_0x5c0fe2,_0x3f2197){const _0xaf0c9a=_0x4b1ec3;super(_0x4d3fbd,_0x295860,_0x3739f4,_0x52c0b4,_0x4d99fd,_0x5c0fe2,_0x3f2197,_0x1526e4,_0x59a0a6),_0x5d8027(this,_0xaf0c9a(0x465),_0xaf0c9a(0x362)),this[_0xaf0c9a(0x376)]=_0x3623a2;}['appendMutation'](_0x562fc4){const _0x1fd1a4=_0x4b1ec3;return this['_pendingMutations'][_0x1fd1a4(0x38a)](_0x562fc4),this[_0x1fd1a4(0x4f5)](),this;}['onRemoteChangeset'](_0x1bbe1e){const _0x15281b=_0x4b1ec3;throw new Error(_0x15281b(0x3d3));}[_0x4b1ec3(0x46c)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x33fb32=_0x4b1ec3;throw new Error(_0x33fb32(0x389));}[_0x4b1ec3(0x2f5)](){return this;}[_0x4b1ec3(0x19e)](){const _0x50bac7=_0x4b1ec3,{_injector:_0x10a93f,_pendingMutations:_0x37869f,_awaitingChangeset:_0x33a8fb,unitID:_0x16c9b6,_handler:_0x12942c,type:_0x1400a4}=this,_0x19b99d=_0x2070df(_0x10a93f,_0x16c9b6,_0x1400a4,_0x33a8fb,_0x37869f,_0x12942c);return _0x19b99d instanceof _0x5ada80?_0x19b99d[_0x50bac7(0x371)]():(_0x19b99d instanceof _0x375398||_0x19b99d instanceof _0x4a1f33)&&_0x19b99d[_0x50bac7(0x434)](),_0x19b99d;}[_0x4b1ec3(0x434)](){const _0x2192b1=_0x4b1ec3;throw new Error(_0x2192b1(0x15b));}};_0x394166=_0x3e342b([_0x15ca9e(0x5,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0x15ca9e(0x6,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda['RevisionService'])),_0x15ca9e(0x7,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x4de)])),_0x15ca9e(0x8,_0x495bbc[_0x4b1ec3(0x28f)]),_0x15ca9e(0x9,_0x495bbc['IUndoRedoService'])],_0x394166);let _0x5d3d56=class extends _0x3bf8ea{constructor(_0x225804,_0xe61114,_0x3d9f2f,_0x4c339f,_0x1307dc,_0x49c6a3,_0x41540c,_0x1241ad,_0x263706,_0x2f61b2,_0x566cd4,_0x35f6a1,_0x448dd2,_0x5cfcce){const _0x4f6e36=_0x4b1ec3;super(_0x225804,_0xe61114,_0x3d9f2f,_0x4c339f,_0x41540c,_0x35f6a1,_0x448dd2,_0x263706,_0x2f61b2),_0x5d8027(this,'status','fetch_missing'),(this[_0x4f6e36(0x415)]=_0x1307dc,this[_0x4f6e36(0x375)]=_0x49c6a3,this['_injector']=_0x1241ad,this[_0x4f6e36(0x38b)]=_0x566cd4,this[_0x4f6e36(0x202)]=_0x5cfcce);}[_0x4b1ec3(0x2d0)](_0x2a5152){const _0xc4aaea=_0x4b1ec3;try{const _0xefbe88=[..._0x2a5152,...this['_queuedRemoteChangesets']],_0x1df75f=[this[_0xc4aaea(0x44b)]||this[_0xc4aaea(0x415)]]['filter'](_0x31b2d3=>!!_0x31b2d3);let _0x3e9f49,_0x143b1f;if(_0x1df75f[_0xc4aaea(0x2b7)]){const _0x1407f8=this[_0xc4aaea(0x202)][_0xc4aaea(0x1d4)](_0xefbe88,_0x1df75f,!0x1);if(!_0x2a1cda[_0xc4aaea(0x4d3)](_0x1407f8))throw _0x1407f8[_0xc4aaea(0x512)];_0x3e9f49=_0x1407f8[_0xc4aaea(0x395)],_0x143b1f=_0x1407f8[_0xc4aaea(0x142)];}else _0x3e9f49=_0xefbe88,_0x143b1f=[];let _0x4dc14b=this[_0xc4aaea(0x1bb)];_0x3e9f49[_0xc4aaea(0x14d)](_0x5080de=>{const _0x29929e=_0xc4aaea;let _0x129d11;if(_0x4dc14b['length']){const _0x11d55f=this['_transformService'][_0x29929e(0x33c)](_0x5080de,_0x4dc14b);if(!_0x2a1cda[_0x29929e(0x496)](_0x11d55f))throw _0x11d55f['error'];_0x129d11=_0x11d55f[_0x29929e(0x395)],_0x4dc14b=_0x11d55f[_0x29929e(0x314)];}else _0x129d11=_0x5080de;this['_executeRemoteChangeset'](_0x129d11);}),this[_0xc4aaea(0x415)]&&this[_0xc4aaea(0x264)](),this['_awaitingChangeset']&&_0x143b1f[_0xc4aaea(0x2b7)]&&(_0x143b1f[0x0][_0xc4aaea(0x35f)]=this['_getCurrentRevision']());let _0x591628;if(this['_awaitingChangeset']&&_0x4dc14b[_0xc4aaea(0x2b7)]!==0x0)_0x591628=this[_0xc4aaea(0x376)][_0xc4aaea(0x1ab)](_0x375398,this[_0xc4aaea(0x391)],this['type'],_0x143b1f[0x0],_0x4dc14b,this[_0xc4aaea(0x472)]);else{if(this['_awaitingChangeset']&&_0x4dc14b['length']===0x0)_0x143b1f[0x0]['baseRev']=this[_0xc4aaea(0x364)](),_0x591628=this[_0xc4aaea(0x376)][_0xc4aaea(0x1ab)](_0x4a1f33,this['unitID'],this[_0xc4aaea(0x2fc)],_0x143b1f[0x0],this[_0xc4aaea(0x472)]);else{if(_0x4dc14b[_0xc4aaea(0x2b7)]!==0x0){const _0x267e1b=this[_0xc4aaea(0x376)]['createInstance'](_0x5ada80,this[_0xc4aaea(0x391)],this[_0xc4aaea(0x2fc)],_0x4dc14b,this[_0xc4aaea(0x472)]);_0x267e1b[_0xc4aaea(0x371)](),_0x591628=_0x267e1b;}else _0x591628=this[_0xc4aaea(0x376)]['createInstance'](_0x40d214,this[_0xc4aaea(0x391)],this[_0xc4aaea(0x2fc)],this[_0xc4aaea(0x472)]);}}return _0x591628[_0xc4aaea(0x4f5)](),_0x591628;}catch(_0x51b51d){return this['_logService'][_0xc4aaea(0x512)](_0xc4aaea(0x32d),_0xc4aaea(0x489),_0x51b51d),this[_0xc4aaea(0x376)]['createInstance'](_0x1d1c0e,this[_0xc4aaea(0x391)],this[_0xc4aaea(0x2fc)],this[_0xc4aaea(0x44b)],this[_0xc4aaea(0x1bb)],this[_0xc4aaea(0x472)],!0x1);}}[_0x4b1ec3(0x434)](){const _0x3c9c11=_0x4b1ec3;throw new Error(_0x3c9c11(0x41a));}[_0x4b1ec3(0x273)](_0x37a796){return this['_pendingMutations']['push'](_0x37a796),this;}[_0x4b1ec3(0x3c0)](_0x4c780a){const _0x2dfafe=_0x4b1ec3;return this[_0x2dfafe(0x375)][_0x2dfafe(0x38a)](_0x4c780a),this;}[_0x4b1ec3(0x46c)](_0x26f671){const _0x150612=_0x4b1ec3;if(this[_0x150612(0x44b)])return this['_acknowledgedAwaitingChangeset']=this[_0x150612(0x44b)],this[_0x150612(0x44b)]=null,this;throw new Error(_0x150612(0x2de));}['onRemoteRej'](_0x25ddf4){const _0x26b5aa=_0x4b1ec3;return this[_0x26b5aa(0x3ce)](!!(_0x25ddf4!=null&&_0x25ddf4[_0x26b5aa(0x42f)]));}[_0x4b1ec3(0x2f5)](){const _0x32c78d=_0x4b1ec3;return this[_0x32c78d(0x376)][_0x32c78d(0x1ab)](_0x394166,this[_0x32c78d(0x391)],this[_0x32c78d(0x2fc)],this[_0x32c78d(0x44b)],this[_0x32c78d(0x1bb)],this[_0x32c78d(0x472)]);}[_0x4b1ec3(0x19e)](){return this;}[_0x4b1ec3(0x3ce)](_0x5acc9e){const _0x3cc088=_0x4b1ec3;return this['_injector'][_0x3cc088(0x1ab)](_0x1d1c0e,this['unitID'],this[_0x3cc088(0x2fc)],this[_0x3cc088(0x44b)],this[_0x3cc088(0x1bb)],this[_0x3cc088(0x472)],_0x5acc9e);}};_0x5d3d56=_0x3e342b([_0x15ca9e(0x7,_0xff0938['Inject'](_0xff0938[_0x4b1ec3(0x22a)])),_0x15ca9e(0x8,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x481)])),_0x15ca9e(0x9,_0xff0938['Inject'](_0x99db31[_0x4b1ec3(0x4de)])),_0x15ca9e(0xa,_0x495bbc[_0x4b1ec3(0x22c)]),_0x15ca9e(0xb,_0x495bbc['ICommandService']),_0x15ca9e(0xc,_0x495bbc['IUndoRedoService']),_0x15ca9e(0xd,_0x2a1cda[_0x4b1ec3(0x21c)])],_0x5d3d56);function _0x2070df(_0x2bb926,_0x15e437,_0x4ec328,_0x4551f7,_0xf73751,_0x25e968){const _0x3079bf=_0x4b1ec3;return _0x4551f7&&_0xf73751[_0x3079bf(0x2b7)]?_0x2bb926[_0x3079bf(0x1ab)](_0x375398,_0x15e437,_0x4ec328,_0x4551f7,_0xf73751,_0x25e968):_0x4551f7?_0x2bb926['createInstance'](_0x4a1f33,_0x15e437,_0x4ec328,_0x4551f7,_0x25e968):_0xf73751[_0x3079bf(0x2b7)]?_0x2bb926[_0x3079bf(0x1ab)](_0x5ada80,_0x15e437,_0x4ec328,_0xf73751,_0x25e968):_0x2bb926[_0x3079bf(0x1ab)](_0x40d214,_0x15e437,_0x4ec328,_0x25e968);}var _0x27646c=Object[_0x4b1ec3(0x356)],_0x24ae5a=Object[_0x4b1ec3(0x507)],_0x512524=(_0x2265dc,_0xb18da9,_0x4a286e,_0x457736)=>{for(var _0x33abe3=_0x457736>0x1?void 0x0:_0x457736?_0x24ae5a(_0xb18da9,_0x4a286e):_0xb18da9,_0x16170f=_0x2265dc['length']-0x1,_0x515f77;_0x16170f>=0x0;_0x16170f--)(_0x515f77=_0x2265dc[_0x16170f])&&(_0x33abe3=(_0x457736?_0x515f77(_0xb18da9,_0x4a286e,_0x33abe3):_0x515f77(_0x33abe3))||_0x33abe3);return _0x457736&&_0x33abe3&&_0x27646c(_0xb18da9,_0x4a286e,_0x33abe3),_0x33abe3;},_0x3b3ac0=(_0x49f098,_0x397472)=>(_0x43b4e2,_0x449476)=>_0x397472(_0x43b4e2,_0x449476,_0x49f098);_0x99db31[_0x4b1ec3(0x45c)]=class extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(_0xcd47d,_0x10a8d9,_0x24be89){const _0x3db6ad=_0x4b1ec3;super(),_0x5d8027(this,_0x3db6ad(0x20a),new Map()),_0x5d8027(this,'_entityInit$',new _0x11b67e[(_0x3db6ad(0x486))]()),(this[_0x3db6ad(0x376)]=_0xcd47d,this[_0x3db6ad(0x3b4)]=_0x10a8d9,this[_0x3db6ad(0x352)]=_0x24be89,this['_init']());}[_0x4b1ec3(0x3f5)](){const _0x5318fb=_0x4b1ec3;super['dispose'](),this['_entities'][_0x5318fb(0x14d)](_0x26612d=>_0x26612d['dispose']()),this[_0x5318fb(0x20a)]['clear']();}[_0x4b1ec3(0x36d)](_0x1ad2e7){const _0xc2ee59=_0x4b1ec3;var _0x537aba;return(_0x537aba=this['_entities'][_0xc2ee59(0x4ce)](_0x1ad2e7))!=null?_0x537aba:null;}[_0x4b1ec3(0x179)](_0x1644c6){const _0x114306=_0x4b1ec3,_0x13bc17=this[_0x114306(0x36d)](_0x1644c6);return _0x13bc17?_0x11b67e['of'](_0x13bc17):this[_0x114306(0x3b1)][_0x114306(0x377)](_0x3e7fcd[_0x114306(0x319)](_0x564e9a=>_0x564e9a[_0x114306(0x391)]===_0x1644c6));}[_0x4b1ec3(0x468)](){const _0x26f958=_0x4b1ec3;this[_0x26f958(0x352)][_0x26f958(0x251)](_0x495bbc[_0x26f958(0x2d8)]['UNIVER_SHEET'])[_0x26f958(0x377)](_0x11b67e[_0x26f958(0x40b)](this[_0x26f958(0x26e)]),_0x3e7fcd[_0x26f958(0x504)](0x10))[_0x26f958(0x43a)](async _0x4a40ac=>{const _0x4a4acb=_0x26f958,_0x31f6c3=_0x4a40ac[_0x4a4acb(0x317)](),_0x58caaa=await this[_0x4a4acb(0x13d)](_0x31f6c3,_0x1ffbf2[_0x4a4acb(0x271)]);this[_0x4a4acb(0x20a)][_0x4a4acb(0x20e)](_0x31f6c3,_0x58caaa);}),this[_0x26f958(0x352)][_0x26f958(0x251)](_0x495bbc['UniverInstanceType'][_0x26f958(0x438)])[_0x26f958(0x377)](_0x11b67e[_0x26f958(0x40b)](this['dispose$']),_0x3e7fcd[_0x26f958(0x504)](0x10))[_0x26f958(0x377)](_0x3e7fcd['filter'](_0x1da2d4=>!_0x1da2d4[_0x26f958(0x317)]()[_0x26f958(0x49d)]('__')))[_0x26f958(0x43a)](async _0x3f89e6=>{const _0xc848fa=_0x26f958,_0x403f09=_0x3f89e6[_0xc848fa(0x317)](),_0x4c740d=await this['_startCollaboration'](_0x403f09,_0x1ffbf2['UNIVER_DOC']);this[_0xc848fa(0x20a)]['set'](_0x403f09,_0x4c740d);}),_0x11b67e[_0x26f958(0x140)](this[_0x26f958(0x352)][_0x26f958(0x4ab)](_0x495bbc[_0x26f958(0x2d8)][_0x26f958(0x271)]),this['_univerInstanceService'][_0x26f958(0x4ab)](_0x495bbc[_0x26f958(0x2d8)][_0x26f958(0x438)]))[_0x26f958(0x377)](_0x11b67e[_0x26f958(0x40b)](this[_0x26f958(0x26e)]))[_0x26f958(0x43a)](_0x1c3be8=>{const _0x542e6f=_0x26f958,_0x4ed940=_0x1c3be8[_0x542e6f(0x317)](),_0x10d8f6=this[_0x542e6f(0x20a)][_0x542e6f(0x4ce)](_0x4ed940);_0x10d8f6&&(_0x10d8f6[_0x542e6f(0x3f5)](),this[_0x542e6f(0x20a)][_0x542e6f(0x2c8)](_0x4ed940));});}async[_0x4b1ec3(0x13d)](_0x5aac07,_0x54dc06){const _0x3ead3c=_0x4b1ec3,_0x55f40e=await this[_0x3ead3c(0x3b4)]['requireSession'](_0x5aac07),_0x480a55=this['_injector'][_0x3ead3c(0x1ab)](this[_0x3ead3c(0x1c4)](_0x54dc06),_0x5aac07,_0x54dc06,_0x55f40e);return await _0x480a55[_0x3ead3c(0x228)](),this['_entityInit$'][_0x3ead3c(0x2b2)](_0x480a55),_0x480a55;}[_0x4b1ec3(0x1c4)](_0x85e246){const _0x1f296b=_0x4b1ec3;switch(_0x85e246){case _0x1ffbf2['UNIVER_DOC']:return _0x50d96d;case _0x1ffbf2[_0x1f296b(0x271)]:return _0x99db31[_0x1f296b(0x295)];default:throw new Error(_0x1f296b(0x30d)+_0x85e246);}}},_0x99db31[_0x4b1ec3(0x45c)]=_0x512524([_0x495bbc[_0x4b1ec3(0x34d)](_0x495bbc[_0x4b1ec3(0x287)][_0x4b1ec3(0x3e4)],_0x99db31[_0x4b1ec3(0x45c)]),_0x3b3ac0(0x0,_0xff0938['Inject'](_0xff0938[_0x4b1ec3(0x22a)])),_0x3b3ac0(0x1,_0xff0938['Inject'](_0x99db31[_0x4b1ec3(0x16c)])),_0x3b3ac0(0x2,_0x495bbc[_0x4b1ec3(0x216)])],_0x99db31[_0x4b1ec3(0x45c)]);let _0x1f6acd=class extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(_0xef7c80,_0x401438,_0xfffc2e,_0x37afaa,_0x252a41,_0x2cb99a,_0xa88e38,_0x55cf0e,_0xa13842,_0x334a87,_0x43a8b8,_0xdc1560,_0x2f0471){const _0x129f2b=_0x4b1ec3;super(),_0x5d8027(this,_0x129f2b(0x198),new _0x11b67e['BehaviorSubject'](null)),_0x5d8027(this,_0x129f2b(0x306),this[_0x129f2b(0x198)][_0x129f2b(0x392)]()),_0x5d8027(this,_0x129f2b(0x4ae)),_0x5d8027(this,_0x129f2b(0x2c4),!0x1),_0x5d8027(this,'status$',this[_0x129f2b(0x306)][_0x129f2b(0x377)](_0x3e7fcd[_0x129f2b(0x270)](_0xbe204a=>_0xbe204a?_0xbe204a[_0x129f2b(0x465)]:_0x17c726[_0x129f2b(0x30a)]),_0x3e7fcd['shareReplay'](0x1))),_0x5d8027(this,'_transitionLocked',!0x1),_0x5d8027(this,_0x129f2b(0x31d),[]),(this[_0x129f2b(0x391)]=_0xef7c80,this['_type']=_0x401438,this[_0x129f2b(0x279)]=_0xfffc2e,this[_0x129f2b(0x376)]=_0x37afaa,this[_0x129f2b(0x43d)]=_0x252a41,this[_0x129f2b(0x44a)]=_0x2cb99a,this['_localeService']=_0xa88e38,this['_revisionService']=_0x55cf0e,this[_0x129f2b(0x38b)]=_0xa13842,this[_0x129f2b(0x2e4)]=_0x334a87,this['_messageService']=_0x43a8b8,this[_0x129f2b(0x245)]=_0xdc1560,this[_0x129f2b(0x13b)]=_0x2f0471);}get[_0x4b1ec3(0x42b)](){return this['_state'];}async[_0x4b1ec3(0x228)](){const _0x2cc5c3=_0x4b1ec3;if(this['state'])throw new Error(_0x2cc5c3(0x4d9));await this[_0x2cc5c3(0x468)]();}['pauseCollaboration'](){const _0x26f0ad=_0x4b1ec3;return this[_0x26f0ad(0x2c4)]=!0x0,_0x495bbc[_0x26f0ad(0x46b)](()=>{const _0x515ead=_0x26f0ad;this[_0x515ead(0x2c4)]=!0x1,this[_0x515ead(0x1a3)]();});}[_0x4b1ec3(0x3e1)](_0x3a9c11){const _0x2f9346=_0x4b1ec3;this[_0x2f9346(0x4ae)]=_0x3a9c11,this[_0x2f9346(0x198)][_0x2f9346(0x2b2)](_0x3a9c11);}async[_0x4b1ec3(0x468)](){const _0x3254ad=_0x4b1ec3;var _0x2a0d48;return this['_updateState'](await this[_0x3254ad(0x189)]()),this['_singleActiveUnitService']&&((_0x2a0d48=this[_0x3254ad(0x13b)])==null||_0x2a0d48[_0x3254ad(0x1fc)](this[_0x3254ad(0x391)]),this[_0x3254ad(0x3fb)](_0x495bbc[_0x3254ad(0x46b)](this[_0x3254ad(0x13b)]['getUnitStatus$'](this[_0x3254ad(0x391)])[_0x3254ad(0x43a)](_0x46f023=>{const _0x17f9c5=_0x3254ad;this['_logService'][_0x17f9c5(0x2ca)](_0x17f9c5(0x187),_0x17f9c5(0x3a7),_0x46f023),_0x46f023===_0x59b30c[_0x17f9c5(0x4cd)]?(this[_0x17f9c5(0x4eb)][_0x17f9c5(0x42c)]({'content':this[_0x17f9c5(0x131)]['t'](_0x17f9c5(0x291)),'type':_0x153393[_0x17f9c5(0x4a8)][_0x17f9c5(0x16e)]}),this[_0x17f9c5(0x245)][_0x17f9c5(0x162)](new _0x344713[(_0x17f9c5(0x17c))](this[_0x17f9c5(0x391)])['id'],!0x1)):this[_0x17f9c5(0x245)]['updatePermissionPoint'](new _0x344713['WorkbookEditablePermission'](this[_0x17f9c5(0x391)])['id'],!0x0);})))),this[_0x3254ad(0x3fb)](_0x495bbc[_0x3254ad(0x46b)](this[_0x3254ad(0x279)]['sessionStatus$'][_0x3254ad(0x43a)](_0x15cb8b=>{const _0x5c40f7=_0x3254ad;_0x15cb8b===_0x36bc51[_0x5c40f7(0x4b8)]?this[_0x5c40f7(0x28a)]():_0x15cb8b===_0x36bc51['OFFLINE']&&this['_toggleOffline']();}))),this[_0x3254ad(0x3fb)](_0x495bbc[_0x3254ad(0x46b)](this[_0x3254ad(0x279)][_0x3254ad(0x48b)][_0x3254ad(0x43a)](_0x535d7d=>{const _0x2ffb4c=_0x3254ad;try{switch(_0x535d7d[_0x2ffb4c(0x2fa)]){case _0x2a1cda[_0x2ffb4c(0x2a0)]['NEW_CHANGESETS']:{this['_onRemoteChangeset'](_0x2a1cda[_0x2ffb4c(0x1d0)](_0x535d7d['data']));break;}case _0x2a1cda[_0x2ffb4c(0x2a0)][_0x2ffb4c(0x411)]:{this['_onRemoteACK'](_0x535d7d[_0x2ffb4c(0x3cf)]);break;}case _0x2a1cda['CollaborationEvent'][_0x2ffb4c(0x2a6)]:{this['_onRemoteRejected']();break;}case _0x2a1cda[_0x2ffb4c(0x2a0)][_0x2ffb4c(0x497)]:{this[_0x2ffb4c(0x453)](_0x535d7d[_0x2ffb4c(0x3cf)][_0x2ffb4c(0x463)][_0x2ffb4c(0x270)](_0x331b27=>_0x2a1cda[_0x2ffb4c(0x1d0)](_0x331b27)));break;}case _0x2a1cda['CollaborationEvent'][_0x2ffb4c(0x405)]:this[_0x2ffb4c(0x26d)]({'isPermissionRej':!0x0});}}catch(_0x349fd4){throw console[_0x2ffb4c(0x512)]('Error\x20on\x20receiving\x20event',_0x349fd4),_0x349fd4;}}))),this[_0x3254ad(0x4ae)];}[_0x4b1ec3(0x3d8)](){const _0x5f94e5=_0x4b1ec3;this[_0x5f94e5(0x1d3)]=!0x1;}['_lockTransition'](){const _0x137ce0=_0x4b1ec3;if(this[_0x137ce0(0x1d3)])throw new Error(_0x137ce0(0x4e0));this['_transitionLocked']=!0x0;}[_0x4b1ec3(0x398)](_0x3af867){const _0x59f9ab=_0x4b1ec3;this[_0x59f9ab(0x474)](),this[_0x59f9ab(0x3e1)](this[_0x59f9ab(0x4ae)][_0x59f9ab(0x273)](_0x3af867)),this[_0x59f9ab(0x3d8)]();}[_0x4b1ec3(0x330)](_0x500fd1){const _0x3fe4b0=_0x4b1ec3;if(!(_0x500fd1[_0x3fe4b0(0x44e)]<=this['_revisionService']['getCurrentRevForDocument'](this[_0x3fe4b0(0x391)]))){if(this[_0x3fe4b0(0x2c4)]){this['_remoteChangesetQueue'][_0x3fe4b0(0x38a)](_0x500fd1);return;}this[_0x3fe4b0(0x40f)](_0x500fd1);}}['_exhaustRemoteChangesetQueue'](){const _0x10de52=_0x4b1ec3;this[_0x10de52(0x31d)][_0x10de52(0x14d)](_0x5285d2=>this[_0x10de52(0x40f)](_0x5285d2)),this['_remoteChangesetQueue']=[];}[_0x4b1ec3(0x40f)](_0x9a7608){const _0x9e2d63=_0x4b1ec3,_0x6ea41c=this[_0x9e2d63(0x44a)][_0x9e2d63(0x367)][_0x9e2d63(0x297)](this[_0x9e2d63(0x44a)][_0x9e2d63(0x367)][_0x9e2d63(0x1ff)]()['COMPRESS_MUTATION_APPLY'])(_0x9a7608[_0x9e2d63(0x495)],null)||_0x9a7608[_0x9e2d63(0x495)],_0xd926df={..._0x9a7608,'mutations':_0x6ea41c};this[_0x9e2d63(0x474)](),this[_0x9e2d63(0x3e1)](this[_0x9e2d63(0x4ae)][_0x9e2d63(0x3c0)](_0xd926df)),this[_0x9e2d63(0x3d8)]();}[_0x4b1ec3(0x2d5)](_0x54730a){const _0x2e9925=_0x4b1ec3;this[_0x2e9925(0x474)](),this[_0x2e9925(0x3e1)](this['_state'][_0x2e9925(0x46c)](_0x54730a)),this[_0x2e9925(0x3d8)]();}[_0x4b1ec3(0x26d)](_0xe4a817){const _0x14467b=_0x4b1ec3;this[_0x14467b(0x474)](),this[_0x14467b(0x3e1)](this[_0x14467b(0x4ae)]['onRemoteRej'](_0xe4a817)),this['_unlockTransition']();}[_0x4b1ec3(0x453)](_0x363939){const _0x4a7f62=_0x4b1ec3;if(!(this[_0x4a7f62(0x4ae)]instanceof _0x5d3d56))throw new TypeError(_0x4a7f62(0x2fd));const _0x41d65e=_0x363939['map'](_0x139579=>{const _0x2860aa=_0x4a7f62,_0x38d72c=this['_compressMutationService'][_0x2860aa(0x367)][_0x2860aa(0x297)](this[_0x2860aa(0x44a)][_0x2860aa(0x367)][_0x2860aa(0x1ff)]()[_0x2860aa(0x152)])(_0x139579[_0x2860aa(0x495)],null)||_0x139579[_0x2860aa(0x495)];return{..._0x139579,'mutations':_0x38d72c};});this[_0x4a7f62(0x474)](),this[_0x4a7f62(0x3e1)](this[_0x4a7f62(0x4ae)][_0x4a7f62(0x2d0)](_0x41d65e)),this['_unlockTransition']();}[_0x4b1ec3(0x3a3)](){const _0x2e6cbe=_0x4b1ec3;this[_0x2e6cbe(0x474)](),this[_0x2e6cbe(0x3e1)](this[_0x2e6cbe(0x4ae)][_0x2e6cbe(0x2f5)]()),this[_0x2e6cbe(0x3d8)]();}['_toggleOnline'](){const _0x4497b0=_0x4b1ec3;this[_0x4497b0(0x474)](),this[_0x4497b0(0x3e1)](this[_0x4497b0(0x4ae)][_0x4497b0(0x19e)]()),this[_0x4497b0(0x3d8)]();}async[_0x4b1ec3(0x189)](){return new Promise(_0x15815a=>{const _0x5c1eca=_0x2301;this['_session']['sessionStatus$'][_0x5c1eca(0x377)](_0x3e7fcd[_0x5c1eca(0x3ad)](0x1))[_0x5c1eca(0x43a)](async _0x542b57=>{const _0x3e4743=_0x5c1eca;_0x15815a(await this[_0x3e4743(0x321)](_0x542b57===_0x36bc51[_0x3e4743(0x4b8)]));});});}[_0x4b1ec3(0x329)](){const _0x236e0f=this['unitID'];return{'onStateChange':(_0x5a1b0f,_0x5a6ed6)=>{const _0x1bb63b=_0x2301;if(_0x5a1b0f!==this['_state'])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x5a1b0f[_0x1bb63b(0x465)]+_0x1bb63b(0x1ca)+_0x5a6ed6['status']+_0x1bb63b(0x1bd)+this['_state'][_0x1bb63b(0x465)]);this[_0x1bb63b(0x3e1)](_0x5a6ed6);},'onSendChangeset':_0xbf2049=>{const _0x2e3537=_0x2301,_0x476057={'eventID':_0x2a1cda[_0x2e3537(0x2a0)][_0x2e3537(0x1a0)],'data':{'unitID':_0xbf2049['unitID'],'unitType':this[_0x2e3537(0x249)],'changeset':_0xbf2049,'memberID':this['_session'][_0x2e3537(0x294)]()}};this['_session'][_0x2e3537(0x50c)](_0x476057,this['unitID']);},'onMissingChangesets':({from:_0x55e4bb,to:_0x2c236b})=>{const _0x252927=_0x2301;this['_logService'][_0x252927(0x2ca)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x55e4bb+_0x252927(0x3fd)+_0x2c236b);const _0x1da82c={'eventID':_0x2a1cda[_0x252927(0x2a0)]['FETCH_MISSING'],'data':{'unitID':_0x236e0f,'unitType':this[_0x252927(0x249)],'from':_0x55e4bb,'to':_0x2c236b}};this[_0x252927(0x279)][_0x252927(0x50c)](_0x1da82c,this[_0x252927(0x391)]);}};}async[_0x4b1ec3(0x321)](_0x19f178){const _0x5df588=_0x4b1ec3;var _0x548cd2,_0x465778;const _0x4f5437=await this['_localCacheService'][_0x5df588(0x258)](this[_0x5df588(0x391)]),_0x48c326=(_0x548cd2=_0x4f5437==null?void 0x0:_0x4f5437[_0x5df588(0x495)])!=null?_0x548cd2:[],_0x4d9297=(_0x465778=_0x4f5437==null?void 0x0:_0x4f5437['awaitingChangeset'])!=null?_0x465778:null,_0x4691b2=this[_0x5df588(0x391)];try{this['_replayCachedMutations'](_0x4d9297,_0x48c326);}catch(_0x1eabbc){this[_0x5df588(0x38b)][_0x5df588(0x512)](_0x1eabbc);}const _0x159a4c=this[_0x5df588(0x329)]();if(_0x19f178){const _0x23e980=_0x2070df(this['_injector'],_0x4691b2,this[_0x5df588(0x249)],_0x4d9297,_0x48c326,_0x159a4c);return _0x23e980 instanceof _0x5ada80?_0x23e980[_0x5df588(0x371)]():(_0x23e980 instanceof _0x375398||_0x23e980 instanceof _0x4a1f33)&&_0x23e980[_0x5df588(0x434)](),_0x23e980;}return this[_0x5df588(0x376)]['createInstance'](_0x394166,_0x4691b2,this[_0x5df588(0x249)],_0x4d9297,_0x48c326,_0x159a4c);}[_0x4b1ec3(0x13c)](_0x308c00,_0xdd6e9c){const _0xac82e5=_0x4b1ec3;var _0x205d25,_0x591ece;const _0xa4262=this['_compressMutationService'][_0xac82e5(0x367)][_0xac82e5(0x297)](this[_0xac82e5(0x44a)]['interceptor'][_0xac82e5(0x1ff)]()[_0xac82e5(0x152)]);(_0x205d25=_0xa4262((_0x308c00==null?void 0x0:_0x308c00['mutations'])||[],null))==null||_0x205d25['forEach'](_0x4977cc=>this[_0xac82e5(0x2e4)][_0xac82e5(0x259)](_0x4977cc['id'],_0x4977cc[_0xac82e5(0x3b7)])),(_0x591ece=_0xa4262(_0xdd6e9c||[],null))==null||_0x591ece['forEach'](_0x51b5f1=>this['_commandService'][_0xac82e5(0x259)](_0x51b5f1['id'],_0x51b5f1[_0xac82e5(0x3b7)]));}};_0x1f6acd=_0x512524([_0x3b3ac0(0x3,_0xff0938['Inject'](_0xff0938[_0x4b1ec3(0x22a)])),_0x3b3ac0(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x4de)])),_0x3b3ac0(0x5,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x27a)])),_0x3b3ac0(0x6,_0xff0938['Inject'](_0x495bbc[_0x4b1ec3(0x1f4)])),_0x3b3ac0(0x7,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda['RevisionService'])),_0x3b3ac0(0x8,_0x495bbc[_0x4b1ec3(0x22c)]),_0x3b3ac0(0x9,_0x495bbc[_0x4b1ec3(0x28f)]),_0x3b3ac0(0xa,_0x510d97[_0x4b1ec3(0x3c3)]),_0x3b3ac0(0xb,_0x495bbc[_0x4b1ec3(0x1b5)]),_0x3b3ac0(0xc,_0xff0938['Optional'](_0x110bf8))],_0x1f6acd);let _0x50d96d=class extends _0x1f6acd{constructor(_0x9c4004,_0x2db2a0,_0x54521c,_0x4387fc,_0x22c971,_0x35f6a0,_0x1cc8dc,_0xd726bf,_0x16374f,_0x4334c9,_0x510d07,_0x34ce8f,_0x564a16,_0x58cae8,_0x3717a6,_0x52ca51,_0x51572e){const _0x395f10=_0x4b1ec3;super(_0x9c4004,_0x2db2a0,_0x54521c,_0x4387fc,_0x22c971,_0x35f6a0,_0x1cc8dc,_0xd726bf,_0x564a16,_0x58cae8,_0x3717a6,_0x52ca51,_0x51572e),this[_0x395f10(0x391)]=_0x9c4004,this[_0x395f10(0x2fc)]=_0x2db2a0,this[_0x395f10(0x2a4)]=_0x54521c,this[_0x395f10(0x2a2)]=_0x16374f,this['_docTransformIMECacheService']=_0x4334c9,this[_0x395f10(0x21d)]=_0x510d07,this[_0x395f10(0x3df)]=_0x34ce8f;}[_0x4b1ec3(0x329)](){const _0x42ab05=_0x4b1ec3,_0x539b7f=super['_createHandler']();return _0x539b7f[_0x42ab05(0x417)]=_0x255d1d=>this['_docTransformIMECacheService'][_0x42ab05(0x516)](_0x255d1d),_0x539b7f['onTransformSelections']=_0x4b6b6b=>this[_0x42ab05(0x21d)][_0x42ab05(0x38c)](_0x4b6b6b),_0x539b7f['onSyncEditingCollabCursor']=_0x25abcd=>this[_0x42ab05(0x3df)][_0x42ab05(0x381)](_0x25abcd),_0x539b7f[_0x42ab05(0x1b1)]=_0x44cb7f=>this[_0x42ab05(0x150)][_0x42ab05(0x3ac)](_0x44cb7f),_0x539b7f;}async['_init'](){const _0x137a8a=_0x4b1ec3,_0x5a1137=await super[_0x137a8a(0x468)]();return this[_0x137a8a(0x2a2)][_0x137a8a(0x260)]['pipe'](_0x11b67e[_0x137a8a(0x40b)](this[_0x137a8a(0x26e)]))['subscribe'](_0x4cdf89=>{const _0x5d8bfd=_0x137a8a;if(_0x4cdf89==null)return;const {unitId:_0x29cf65,redoState:_0x4ec293,commandId:_0x4e42aa}=_0x4cdf89;if(_0x29cf65!==this[_0x5d8bfd(0x391)])return;const _0x3a4568={'id':_0x4e42aa,'type':_0x495bbc[_0x5d8bfd(0x176)]['MUTATION'],'params':{'unitId':_0x29cf65,'actions':_0x4ec293[_0x5d8bfd(0x274)],'textRanges':null}};this[_0x5d8bfd(0x398)](_0x3a4568);}),_0x5a1137;}};_0x50d96d=_0x512524([_0x3b3ac0(0x3,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0x3b3ac0(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x4de)])),_0x3b3ac0(0x5,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x27a)])),_0x3b3ac0(0x6,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc[_0x4b1ec3(0x1f4)])),_0x3b3ac0(0x7,_0xff0938['Inject'](_0x2a1cda['RevisionService'])),_0x3b3ac0(0x8,_0xff0938[_0x4b1ec3(0x292)](_0x257327[_0x4b1ec3(0x457)])),_0x3b3ac0(0x9,_0xff0938[_0x4b1ec3(0x292)](_0x527642)),_0x3b3ac0(0xa,_0xff0938[_0x4b1ec3(0x292)](_0x2fb5e2)),_0x3b3ac0(0xb,_0xff0938['Inject'](_0x4095fc)),_0x3b3ac0(0xc,_0x495bbc[_0x4b1ec3(0x22c)]),_0x3b3ac0(0xd,_0x495bbc[_0x4b1ec3(0x28f)]),_0x3b3ac0(0xe,_0x510d97['IMessageService']),_0x3b3ac0(0xf,_0x495bbc[_0x4b1ec3(0x1b5)]),_0x3b3ac0(0x10,_0xff0938['Optional'](_0x110bf8))],_0x50d96d),_0x99db31[_0x4b1ec3(0x295)]=class extends _0x1f6acd{constructor(_0x52ed74,_0x4bdc45,_0x404802,_0x2486d9,_0xb0ddaa,_0x2e4d5a,_0x68ef11,_0x2d987b,_0x1636ab,_0x2a6fcc,_0x1cbb4d,_0x2c2ade,_0x32361c,_0x57e966){const _0x1446b5=_0x4b1ec3;super(_0x52ed74,_0x4bdc45,_0x404802,_0x2486d9,_0xb0ddaa,_0x2e4d5a,_0x68ef11,_0x2d987b,_0x2a6fcc,_0x1cbb4d,_0x2c2ade,_0x32361c,_0x57e966),this[_0x1446b5(0x391)]=_0x52ed74,this[_0x1446b5(0x2fc)]=_0x4bdc45,this[_0x1446b5(0x2a4)]=_0x404802,this[_0x1446b5(0x278)]=_0x1636ab;}[_0x4b1ec3(0x329)](){const _0x437400=_0x4b1ec3,_0x4b7f9c=super[_0x437400(0x329)]();return _0x4b7f9c[_0x437400(0x3d5)]=_0x10484f=>this[_0x437400(0x278)][_0x437400(0x38c)](_0x10484f),_0x4b7f9c;}async[_0x4b1ec3(0x468)](){const _0x3678c2=_0x4b1ec3,_0x4910cf=await super['_init']();return this['disposeWithMe'](this[_0x3678c2(0x2e4)][_0x3678c2(0x28b)]((_0x46fad6,_0x14f9cf)=>{const _0x564eac=_0x3678c2;if(_0x46fad6[_0x564eac(0x2fc)]!==_0x495bbc[_0x564eac(0x176)][_0x564eac(0x1b0)]||_0x14f9cf!=null&&_0x14f9cf[_0x564eac(0x4bf)]||_0x14f9cf!=null&&_0x14f9cf[_0x564eac(0x427)])return;const _0x45f4fa=_0x46fad6[_0x564eac(0x3b7)];if((_0x45f4fa==null?void 0x0:_0x45f4fa[_0x564eac(0x384)])!==this[_0x564eac(0x391)])return;const _0x2d44b1=_0x46fad6,_0x597448=this[_0x564eac(0x44a)][_0x564eac(0x367)][_0x564eac(0x297)](this[_0x564eac(0x44a)][_0x564eac(0x367)][_0x564eac(0x1ff)]()[_0x564eac(0x173)])([_0x2d44b1],null)||[_0x2d44b1];this['_onLocalMutation'](_0x597448[0x0]);})),_0x4910cf;}},_0x99db31[_0x4b1ec3(0x295)]=_0x512524([_0x3b3ac0(0x3,_0xff0938[_0x4b1ec3(0x292)](_0xff0938['Injector'])),_0x3b3ac0(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x4de)])),_0x3b3ac0(0x5,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda['CompressMutationService'])),_0x3b3ac0(0x6,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc[_0x4b1ec3(0x1f4)])),_0x3b3ac0(0x7,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x481)])),_0x3b3ac0(0x8,_0xff0938['Inject'](_0x56fa9d)),_0x3b3ac0(0x9,_0x495bbc[_0x4b1ec3(0x22c)]),_0x3b3ac0(0xa,_0x495bbc[_0x4b1ec3(0x28f)]),_0x3b3ac0(0xb,_0x510d97[_0x4b1ec3(0x3c3)]),_0x3b3ac0(0xc,_0x495bbc[_0x4b1ec3(0x1b5)]),_0x3b3ac0(0xd,_0xff0938[_0x4b1ec3(0x369)](_0x110bf8))],_0x99db31[_0x4b1ec3(0x295)]);const _0x2f62df=['purple300','jiqing500',_0x4b1ec3(0x151),'red300',_0x4b1ec3(0x290),_0x4b1ec3(0x517)];class _0x173474 extends _0x495bbc['Disposable']{constructor(){super(...arguments),_0x5d8027(this,'_assignedColors',new Map()),_0x5d8027(this,'_colorIndex',0x0);}[_0x4b1ec3(0x219)](_0x1a3404){const _0x343549=_0x4b1ec3;if(this['_assignedColors'][_0x343549(0x4a3)](_0x1a3404))return this[_0x343549(0x1df)][_0x343549(0x4ce)](_0x1a3404);const _0x5ab874=_0x2f62df[this[_0x343549(0x51a)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%_0x2f62df[_0x343549(0x2b7)],this[_0x343549(0x1df)][_0x343549(0x20e)](_0x1a3404,_0x5ab874),_0x5ab874;}}var _0x2303d9=Object[_0x4b1ec3(0x356)],_0x12d8ad=Object[_0x4b1ec3(0x507)],_0x2e77ba=(_0x204e7f,_0x1ed7a2,_0x4752ca,_0x357cb9)=>{const _0x47ddbc=_0x4b1ec3;for(var _0x1f4ed8=_0x357cb9>0x1?void 0x0:_0x357cb9?_0x12d8ad(_0x1ed7a2,_0x4752ca):_0x1ed7a2,_0x595355=_0x204e7f[_0x47ddbc(0x2b7)]-0x1,_0x16be46;_0x595355>=0x0;_0x595355--)(_0x16be46=_0x204e7f[_0x595355])&&(_0x1f4ed8=(_0x357cb9?_0x16be46(_0x1ed7a2,_0x4752ca,_0x1f4ed8):_0x16be46(_0x1f4ed8))||_0x1f4ed8);return _0x357cb9&&_0x1f4ed8&&_0x2303d9(_0x1ed7a2,_0x4752ca,_0x1f4ed8),_0x1f4ed8;},_0xbb52c7=(_0x2a09a6,_0xdfdcb3)=>(_0x383f34,_0x7e5bb3)=>_0xdfdcb3(_0x383f34,_0x7e5bb3,_0x2a09a6);const _0x133a30=0x12c,_0x513ae7=0x64,_0x4ea516=()=>{let _0x422d43=[],_0x59db31=!0x1;return _0xfabd57=>{const _0x188d28=_0x2301;_0x422d43[_0x188d28(0x38a)](_0xfabd57),_0x59db31||(_0x59db31=!0x0,setTimeout(()=>{const _0x53ab52=_0x188d28;_0x422d43[_0x53ab52(0x14d)](_0x1700ae=>_0x1700ae()),_0x422d43=[],_0x59db31=!0x1;}));};};let _0x45d46d=class extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(_0x514dc0,_0x310cfc,_0x13bc9f,_0x4eb7c0,_0x58588f,_0x3d76ae,_0x145626,_0x1b21c5){const _0x4d415d=_0x4b1ec3;super(),_0x5d8027(this,_0x4d415d(0x155),!0x1),_0x5d8027(this,'_init',!0x1),_0x5d8027(this,_0x4d415d(0x3f6),new _0x11b67e[(_0x4d415d(0x2a9))](new Map())),_0x5d8027(this,_0x4d415d(0x2c3),this[_0x4d415d(0x3f6)]['asObservable']()),_0x5d8027(this,_0x4d415d(0x45a),new _0x11b67e['BehaviorSubject']([])),_0x5d8027(this,_0x4d415d(0x262),this[_0x4d415d(0x45a)]['pipe'](_0x11b67e[_0x4d415d(0x479)](_0x133a30))),_0x5d8027(this,_0x4d415d(0x372),_0x5be5a1((_0x13243a,_0x1cf7e5)=>{const _0x1aaf7d=_0x4d415d,_0x1a3753={'eventID':_0x2a1cda['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x1aaf7d(0x391)],'memberID':this[_0x1aaf7d(0x279)][_0x1aaf7d(0x294)](),'selection':_0x4da4df[_0x1aaf7d(0x2df)](_0x13243a,_0x1cf7e5[_0x1aaf7d(0x2d7)])}};this['_session'][_0x1aaf7d(0x50c)](_0x1a3753,this[_0x1aaf7d(0x391)]);},_0x513ae7)),(this['unitID']=_0x514dc0,this[_0x4d415d(0x279)]=_0x310cfc,this[_0x4d415d(0x376)]=_0x13bc9f,this['_colorAssignService']=_0x4eb7c0,this[_0x4d415d(0x3ae)]=_0x58588f,this[_0x4d415d(0x352)]=_0x3d76ae,this[_0x4d415d(0x2e4)]=_0x145626,this[_0x4d415d(0x4a9)]=_0x1b21c5);}get[_0x4b1ec3(0x2db)](){const _0x51ca95=_0x4b1ec3;return this[_0x51ca95(0x3f6)][_0x51ca95(0x357)]();}get['roomMembers'](){const _0x3b0751=_0x4b1ec3;return this[_0x3b0751(0x45a)]['getValue']();}[_0x4b1ec3(0x3f5)](){const _0x5620c9=_0x4b1ec3;super['dispose'](),this[_0x5620c9(0x3f6)][_0x5620c9(0x2b2)](new Map()),this[_0x5620c9(0x3f6)][_0x5620c9(0x4c6)](),this['_roomMembers$'][_0x5620c9(0x2b2)]([]),this[_0x5620c9(0x45a)][_0x5620c9(0x4c6)]();}[_0x4b1ec3(0x228)](){const _0x29db4e=_0x4b1ec3;this['_init']||(this[_0x29db4e(0x468)]=!0x0,this['_session']['sessionStatus$'][_0x29db4e(0x377)](_0x11b67e[_0x29db4e(0x40b)](this[_0x29db4e(0x26e)]))[_0x29db4e(0x43a)](_0x3300b8=>{const _0x556654=_0x29db4e;_0x3300b8===_0x36bc51[_0x556654(0x4b8)]?this[_0x556654(0x28a)]():this[_0x556654(0x3a3)]();}),this[_0x29db4e(0x279)][_0x29db4e(0x48b)]['pipe'](_0x11b67e[_0x29db4e(0x40b)](this[_0x29db4e(0x26e)]))['subscribe'](_0x49580f=>{const _0xbe28fc=_0x29db4e,_0x469b99=_0x49580f[_0xbe28fc(0x2fa)];_0x469b99===_0x2a1cda['CollaborationEvent'][_0xbe28fc(0x1ee)]&&this[_0xbe28fc(0x40a)](_0x49580f),_0x469b99===_0x2a1cda[_0xbe28fc(0x2a0)][_0xbe28fc(0x4a2)]&&this[_0xbe28fc(0x1c2)](_0x49580f);}),this[_0x29db4e(0x1bf)](),this[_0x29db4e(0x3fb)](this['_commandService']['onCommandExecuted'](_0x305c2e=>{const _0x5aaa92=_0x29db4e;if(this['_online']&&_0x305c2e['id']===_0x344713[_0x5aaa92(0x41f)]['id']&&_0x305c2e['params'][_0x5aaa92(0x384)]===this['unitID']){const _0x46b166=_0x305c2e[_0x5aaa92(0x3b7)];this[_0x5aaa92(0x372)](_0x46b166[_0x5aaa92(0x327)],_0x46b166[_0x5aaa92(0x4db)][0x0]);}})));}[_0x4b1ec3(0x40a)](_0x52c68d){const _0x2ae865=_0x4b1ec3;var _0x15a8d9,_0x149f2a;const {memberID:_0x5e3876,selection:_0x3f7149}=_0x52c68d[_0x2ae865(0x3cf)],{sheetName:_0x45b3a7,range:_0x2aa571}=_0x4da4df[_0x2ae865(0x2cd)](_0x3f7149),_0x2f1558={'name':(_0x149f2a=(_0x15a8d9=this['_memberService']['getMember'](this[_0x2ae865(0x391)],_0x5e3876))==null?void 0x0:_0x15a8d9[_0x2ae865(0x3eb)])!=null?_0x149f2a:_0x2ae865(0x2c1),'range':this[_0x2ae865(0x3cc)](_0x45b3a7,_0x2aa571),'sheetID':_0x45b3a7,'color':this['_colorAssignService'][_0x2ae865(0x219)](_0x5e3876),'selection':_0x3f7149},_0x325a00=this['cursorInfo'];_0x325a00['set'](_0x5e3876,_0x2f1558),this[_0x2ae865(0x3f6)][_0x2ae865(0x2b2)](_0x325a00);}[_0x4b1ec3(0x1c2)](_0x299009){const _0xf4150f=_0x4b1ec3,{memberID:_0x1adfb9}=_0x299009[_0xf4150f(0x3cf)],_0x1cabc8=this[_0xf4150f(0x2db)];_0x1cabc8[_0xf4150f(0x2c8)](_0x1adfb9),this['_cursorInfo$'][_0xf4150f(0x2b2)](_0x1cabc8);}[_0x4b1ec3(0x3cc)](_0x479138,_0xc22f60){const _0x2df37e=_0x4b1ec3;var _0x4ef38e,_0x156d8c;const _0x383139=(_0x156d8c=(_0x4ef38e=this[_0x2df37e(0x352)]['getUniverSheetInstance'](this[_0x2df37e(0x391)]))==null?void 0x0:_0x4ef38e[_0x2df37e(0x21f)](_0x479138))==null?void 0x0:_0x156d8c[_0x2df37e(0x206)]();return(_0x383139==null?void 0x0:_0x383139[_0x2df37e(0x26f)](_0xa02a59=>_0x495bbc['Rectangle']['contains'](_0xa02a59,_0xc22f60)))||_0xc22f60;}['_onRefRangeChange'](){const _0x539e5b=_0x4b1ec3,_0x17adad=new _0x495bbc['DisposableCollection'](),_0x3ae3e4=_0x4ea516(),_0x4f6980=()=>{const _0x23cc91=_0x2301;_0x17adad[_0x23cc91(0x3f5)]();const _0xc0ac7c=(_0x57d7e7,_0x3ddef0,_0x3d40d4,_0xf1dbab)=>{const _0xbd3b6=_0x23cc91;let _0x5646df=[];switch(_0x57d7e7['id']){case _0x344713[_0xbd3b6(0x380)][_0xbd3b6(0x18d)]:{_0x5646df=_0x344713[_0xbd3b6(0x48c)](_0x57d7e7,_0xf1dbab);break;}case _0x344713[_0xbd3b6(0x380)]['DeleteRangeMoveUpCommandId']:{_0x5646df=_0x344713[_0xbd3b6(0x27f)](_0x57d7e7,_0xf1dbab);break;}case _0x344713[_0xbd3b6(0x380)][_0xbd3b6(0x488)]:{_0x5646df=_0x344713[_0xbd3b6(0x15c)](_0x57d7e7,_0xf1dbab);break;}case _0x344713[_0xbd3b6(0x380)][_0xbd3b6(0x49b)]:{_0x5646df=_0x344713[_0xbd3b6(0x4a6)](_0x57d7e7,_0xf1dbab);break;}case _0x344713[_0xbd3b6(0x380)][_0xbd3b6(0x23d)]:{_0x5646df=_0x344713[_0xbd3b6(0x296)](_0x57d7e7,_0xf1dbab);break;}case _0x344713[_0xbd3b6(0x380)][_0xbd3b6(0x276)]:{_0x5646df=_0x344713['handleInsertRow'](_0x57d7e7,_0xf1dbab);break;}case _0x344713[_0xbd3b6(0x380)][_0xbd3b6(0x203)]:{_0x5646df=_0x344713['handleMoveRange'](_0x57d7e7,_0xf1dbab);break;}case _0x344713[_0xbd3b6(0x380)][_0xbd3b6(0x2af)]:{_0x5646df=_0x344713['handleIRemoveCol'](_0x57d7e7,_0xf1dbab);break;}case _0x344713[_0xbd3b6(0x380)][_0xbd3b6(0x248)]:{_0x5646df=_0x344713['handleIRemoveRow'](_0x57d7e7,_0xf1dbab);break;}}const _0x2d7023=_0x344713['runRefRangeMutations'](_0x5646df,_0xf1dbab),_0x5ded59=this['cursorInfo'][_0xbd3b6(0x4ce)](_0x3ddef0);if(_0x5ded59&&_0x2d7023){const _0x1c2d04={..._0x5ded59,'range':_0x2d7023};this[_0xbd3b6(0x2db)]['set'](_0x3ddef0,_0x1c2d04),_0x3ae3e4(()=>{const _0x19c413=_0xbd3b6,_0x22a2d5=this[_0x19c413(0x4a9)][_0x19c413(0x2b8)](_0x2d7023,_0x205b9b=>(_0x22a2d5['dispose'](),_0xc0ac7c(_0x205b9b,_0x3ddef0,_0x3d40d4,_0x2d7023)));_0x17adad[_0x19c413(0x3c6)](_0x22a2d5);});}return{'redos':[],'undos':[]};};this[_0x23cc91(0x2db)][_0x23cc91(0x14d)]((_0x267a73,_0x29639b)=>{const _0x11ffed=_0x23cc91,{range:_0x396620,sheetID:_0x31788c}=_0x267a73,_0x2eef27=this['_refRangeService'][_0x11ffed(0x2b8)](_0x396620,_0x37eb4f=>(_0x2eef27[_0x11ffed(0x3f5)](),_0xc0ac7c(_0x37eb4f,_0x29639b,_0x31788c,_0x396620)));_0x17adad['add'](_0x2eef27);});};this[_0x539e5b(0x3fb)](_0x495bbc[_0x539e5b(0x46b)](this[_0x539e5b(0x3f6)][_0x539e5b(0x43a)](()=>{_0x4f6980();})));}[_0x4b1ec3(0x28a)](){const _0x3de696=_0x4b1ec3;var _0x2bdbe9,_0x4ea214;if(this[_0x3de696(0x155)]=!0x0,((_0x2bdbe9=this[_0x3de696(0x352)][_0x3de696(0x1cb)]())==null?void 0x0:_0x2bdbe9[_0x3de696(0x317)]())!==this[_0x3de696(0x391)])return;const _0x4fceac=(_0x4ea214=this[_0x3de696(0x376)]['get'](_0x344713['SheetsSelectionsService'])[_0x3de696(0x14e)]())==null?void 0x0:_0x4ea214[0x0],_0x1e28b5=this[_0x3de696(0x352)][_0x3de696(0x32c)](_0x495bbc[_0x3de696(0x2d8)][_0x3de696(0x271)])[_0x3de696(0x4ad)]();_0x4fceac&&_0x1e28b5&&this[_0x3de696(0x372)](_0x1e28b5[_0x3de696(0x230)](),_0x4fceac);}['_toggleOffline'](){const _0x4b45b7=_0x4b1ec3;this[_0x4b45b7(0x155)]=!0x1;}};_0x45d46d=_0x2e77ba([_0xbb52c7(0x2,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0xbb52c7(0x3,_0xff0938[_0x4b1ec3(0x292)](_0x173474)),_0xbb52c7(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x384a59)),_0xbb52c7(0x5,_0x495bbc[_0x4b1ec3(0x216)]),_0xbb52c7(0x6,_0x495bbc['ICommandService']),_0xbb52c7(0x7,_0xff0938['Inject'](_0x344713[_0x4b1ec3(0x316)]))],_0x45d46d);var _0x1be75a=Object[_0x4b1ec3(0x356)],_0x47be66=Object[_0x4b1ec3(0x507)],_0x1709ae=(_0x27632d,_0x20c0ae,_0x322fc8,_0x119627)=>{const _0x3a9487=_0x4b1ec3;for(var _0x246dbc=_0x119627>0x1?void 0x0:_0x119627?_0x47be66(_0x20c0ae,_0x322fc8):_0x20c0ae,_0x4434de=_0x27632d[_0x3a9487(0x2b7)]-0x1,_0x580577;_0x4434de>=0x0;_0x4434de--)(_0x580577=_0x27632d[_0x4434de])&&(_0x246dbc=(_0x119627?_0x580577(_0x20c0ae,_0x322fc8,_0x246dbc):_0x580577(_0x246dbc))||_0x246dbc);return _0x119627&&_0x246dbc&&_0x1be75a(_0x20c0ae,_0x322fc8,_0x246dbc),_0x246dbc;},_0xc16005=(_0xd0d05a,_0x2bb760)=>(_0x2df197,_0x3284ae)=>_0x2bb760(_0x2df197,_0x3284ae,_0xd0d05a);const _0x556c84=0x12c,_0x395ba6=0x64;let _0x5440e7=class extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(_0x40d2be,_0x352292,_0x2a40c1,_0x23a4ba,_0x54c79e,_0x1ae6b9,_0xada1d7,_0x297f44,_0x34a6dd){const _0xcd7ef8=_0x4b1ec3;super(),_0x5d8027(this,_0xcd7ef8(0x155),!0x1),_0x5d8027(this,_0xcd7ef8(0x468),!0x1),_0x5d8027(this,'_cursorInfo$',new _0x11b67e[(_0xcd7ef8(0x2a9))](new Map())),_0x5d8027(this,_0xcd7ef8(0x2c3),this[_0xcd7ef8(0x3f6)][_0xcd7ef8(0x392)]()),_0x5d8027(this,_0xcd7ef8(0x45a),new _0x11b67e[(_0xcd7ef8(0x2a9))]([])),_0x5d8027(this,_0xcd7ef8(0x262),this[_0xcd7ef8(0x45a)][_0xcd7ef8(0x377)](_0x11b67e[_0xcd7ef8(0x479)](_0x556c84))),_0x5d8027(this,'_updateLocalCursor',_0x5be5a1(_0x149f83=>{const _0x23e701=_0xcd7ef8,_0x2ba09d={'eventID':_0x2a1cda[_0x23e701(0x2a0)][_0x23e701(0x1ee)],'data':{'unitID':this[_0x23e701(0x391)],'memberID':this[_0x23e701(0x279)]['getMemberID'](),'selection':_0x36c929(_0x149f83)}};this[_0x23e701(0x279)][_0x23e701(0x50c)](_0x2ba09d,this[_0x23e701(0x391)]);},_0x395ba6)),(this['unitID']=_0x40d2be,this['_session']=_0x352292,this['_injector']=_0x2a40c1,this[_0xcd7ef8(0x1ec)]=_0x23a4ba,this[_0xcd7ef8(0x3ae)]=_0x54c79e,this[_0xcd7ef8(0x318)]=_0x1ae6b9,this['_transformService']=_0xada1d7,this[_0xcd7ef8(0x352)]=_0x297f44,this[_0xcd7ef8(0x2e4)]=_0x34a6dd);}get[_0x4b1ec3(0x2db)](){const _0x5e6962=_0x4b1ec3;return this[_0x5e6962(0x3f6)][_0x5e6962(0x357)]();}get['roomMembers'](){const _0xd78e66=_0x4b1ec3;return this[_0xd78e66(0x45a)][_0xd78e66(0x357)]();}[_0x4b1ec3(0x3f5)](){const _0xa46be=_0x4b1ec3;super[_0xa46be(0x3f5)](),this['_cursorInfo$']['next'](new Map()),this[_0xa46be(0x3f6)][_0xa46be(0x4c6)](),this[_0xa46be(0x45a)][_0xa46be(0x2b2)]([]),this[_0xa46be(0x45a)]['complete']();}[_0x4b1ec3(0x228)](){const _0xccd6e0=_0x4b1ec3;this[_0xccd6e0(0x468)]||(this[_0xccd6e0(0x468)]=!0x0,this[_0xccd6e0(0x279)]['sessionStatus$'][_0xccd6e0(0x377)](_0x11b67e[_0xccd6e0(0x40b)](this[_0xccd6e0(0x26e)]))[_0xccd6e0(0x43a)](_0x3acb87=>{const _0x29c699=_0xccd6e0;_0x3acb87===_0x36bc51[_0x29c699(0x4b8)]?this['_toggleOnline']():this[_0x29c699(0x3a3)]();}),this[_0xccd6e0(0x279)][_0xccd6e0(0x48b)]['pipe'](_0x11b67e[_0xccd6e0(0x40b)](this[_0xccd6e0(0x26e)]))[_0xccd6e0(0x43a)](_0x40f212=>{const _0x43d38a=_0xccd6e0,_0x48cc7c=_0x40f212['eventID'];_0x48cc7c===_0x2a1cda[_0x43d38a(0x2a0)][_0x43d38a(0x1ee)]&&this[_0x43d38a(0x40a)](_0x40f212),_0x48cc7c===_0x2a1cda[_0x43d38a(0x2a0)][_0x43d38a(0x4a2)]&&this[_0x43d38a(0x1c2)](_0x40f212);}),this[_0xccd6e0(0x3fb)](this['_commandService'][_0xccd6e0(0x28b)](_0x1bf8bd=>{const _0x6af7c1=_0xccd6e0,_0xd457ec=_0x1bf8bd[_0x6af7c1(0x3b7)];_0xd457ec!=null&&this[_0x6af7c1(0x155)]&&_0x1bf8bd['id']===_0x257327[_0x6af7c1(0x4d1)]['id']&&_0xd457ec[_0x6af7c1(0x384)]===this[_0x6af7c1(0x391)]&&_0xd457ec['isEditing']===!0x1&&this[_0x6af7c1(0x372)](_0xd457ec[_0x6af7c1(0x33e)]);})),this[_0xccd6e0(0x318)]['collabCursorState$']['pipe'](_0x11b67e['takeUntil'](this[_0xccd6e0(0x26e)]))[_0xccd6e0(0x43a)](_0x49fe8f=>{const _0x345896=_0xccd6e0;if((_0x49fe8f==null?void 0x0:_0x49fe8f[_0x345896(0x391)])!==this['unitID'])return;const _0x569a65={'eventID':_0x2a1cda[_0x345896(0x2a0)][_0x345896(0x1ee)],'data':_0x49fe8f};this[_0x345896(0x40a)](_0x569a65);}),this[_0xccd6e0(0x3fb)](this[_0xccd6e0(0x2e4)][_0xccd6e0(0x28b)](_0x90e5c2=>{const _0x5846b7=_0xccd6e0;if(_0x90e5c2[_0x5846b7(0x3b7)]==null)return;const _0x145003=_0x90e5c2[_0x5846b7(0x3b7)];if(_0x90e5c2['id']!==_0x257327['RichTextEditingMutation']['id']||_0x145003[_0x5846b7(0x384)]!==this[_0x5846b7(0x391)])return;const _0x3a9091={'id':'doc.mutation.rich-text-editing','params':_0x145003},_0x59508a=this[_0x5846b7(0x2db)];for(const [_0x5183ee,_0x5db8f1]of _0x59508a){const _0x3160b8={'id':_0x5846b7(0x158),'params':{'unitId':this[_0x5846b7(0x391)],'actions':null,'textRanges':_0x5db8f1[_0x5846b7(0x33e)]}},_0x76c068=this[_0x5846b7(0x202)][_0x5846b7(0x2a1)](_0x3a9091,_0x3160b8,!0x1);if(_0x2a1cda[_0x5846b7(0x265)](_0x76c068))throw _0x76c068[_0x5846b7(0x512)];_0x59508a[_0x5846b7(0x20e)](_0x5183ee,{..._0x5db8f1,'ranges':_0x76c068[_0x5846b7(0x314)][_0x5846b7(0x3b7)][_0x5846b7(0x35e)]});}queueMicrotask(()=>{const _0x3028d8=_0x5846b7;this[_0x3028d8(0x3f6)][_0x3028d8(0x2b2)](_0x59508a);});})));}[_0x4b1ec3(0x40a)](_0x4245f1){const _0x2965eb=_0x4b1ec3;var _0x56e85f,_0x35227e;const {memberID:_0x425a0b,selection:_0x314e6f}=_0x4245f1['data'],_0x563367=_0x14579a(_0x314e6f),_0x72b18a=(_0x35227e=(_0x56e85f=this['_memberService'][_0x2965eb(0x2b4)](this[_0x2965eb(0x391)],_0x425a0b))==null?void 0x0:_0x56e85f['name'])!=null?_0x35227e:'Unknown\x20user',_0x46bb8b={'color':this[_0x2965eb(0x1ec)][_0x2965eb(0x219)](_0x425a0b),'name':_0x72b18a,'ranges':_0x563367},_0x137db2=this[_0x2965eb(0x2db)];_0x137db2[_0x2965eb(0x20e)](_0x425a0b,_0x46bb8b),this[_0x2965eb(0x3f6)]['next'](_0x137db2);}['_onCursorDelete'](_0x329b12){const _0x4ced4b=_0x4b1ec3,{memberID:_0x3c07a3}=_0x329b12[_0x4ced4b(0x3cf)],_0x47de90=this[_0x4ced4b(0x2db)];_0x47de90[_0x4ced4b(0x2c8)](_0x3c07a3),this[_0x4ced4b(0x3f6)][_0x4ced4b(0x2b2)](_0x47de90);}[_0x4b1ec3(0x28a)](){const _0x282b6a=_0x4b1ec3;var _0x28f8e9;if(this[_0x282b6a(0x155)]=!0x0,((_0x28f8e9=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x28f8e9[_0x282b6a(0x317)]())!==this[_0x282b6a(0x391)])return;const _0x390b95=this['_injector'][_0x282b6a(0x4ce)](_0x257327[_0x282b6a(0x426)])['getCurrentSelections'](),_0x2d58e0=_0x390b95==null?void 0x0:_0x390b95[_0x282b6a(0x270)](_0x257327[_0x282b6a(0x37f)]);Array[_0x282b6a(0x37c)](_0x2d58e0)&&_0x2d58e0['length']>0x0&&this[_0x282b6a(0x372)](_0x2d58e0);}[_0x4b1ec3(0x3a3)](){const _0x4e8fff=_0x4b1ec3;this[_0x4e8fff(0x155)]=!0x1;}};_0x5440e7=_0x1709ae([_0xc16005(0x2,_0xff0938['Inject'](_0xff0938[_0x4b1ec3(0x22a)])),_0xc16005(0x3,_0xff0938['Inject'](_0x173474)),_0xc16005(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x384a59)),_0xc16005(0x5,_0xff0938[_0x4b1ec3(0x292)](_0x4095fc)),_0xc16005(0x6,_0x2a1cda['ITransformService']),_0xc16005(0x7,_0x495bbc['IUniverInstanceService']),_0xc16005(0x8,_0x495bbc[_0x4b1ec3(0x28f)])],_0x5440e7);var _0x4bee49=Object[_0x4b1ec3(0x356)],_0x1bcdcc=Object['getOwnPropertyDescriptor'],_0x44fea9=(_0x3cabc2,_0x36c1db,_0x11f56e,_0x4255d0)=>{const _0x26ddd2=_0x4b1ec3;for(var _0x1159b1=_0x4255d0>0x1?void 0x0:_0x4255d0?_0x1bcdcc(_0x36c1db,_0x11f56e):_0x36c1db,_0x177a57=_0x3cabc2[_0x26ddd2(0x2b7)]-0x1,_0x4881c9;_0x177a57>=0x0;_0x177a57--)(_0x4881c9=_0x3cabc2[_0x177a57])&&(_0x1159b1=(_0x4255d0?_0x4881c9(_0x36c1db,_0x11f56e,_0x1159b1):_0x4881c9(_0x1159b1))||_0x1159b1);return _0x4255d0&&_0x1159b1&&_0x4bee49(_0x36c1db,_0x11f56e,_0x1159b1),_0x1159b1;},_0x448b86=(_0x384536,_0x525fb1)=>(_0x3bcc44,_0x37fbb5)=>_0x525fb1(_0x3bcc44,_0x37fbb5,_0x384536);let _0x5cab36=class extends _0x495bbc['RxDisposable']{constructor(_0x5b7b7c,_0x424447,_0x51672b){const _0x4b2551=_0x4b1ec3;super(),_0x5d8027(this,_0x4b2551(0x20a),new Map()),_0x5d8027(this,'_entityInit$',new _0x11b67e[(_0x4b2551(0x486))]()),(this[_0x4b2551(0x352)]=_0x5b7b7c,this[_0x4b2551(0x376)]=_0x424447,this[_0x4b2551(0x3b4)]=_0x51672b,this['_init']());}[_0x4b1ec3(0x3f5)](){const _0x530e23=_0x4b1ec3;super['dispose'](),this[_0x530e23(0x3b1)][_0x530e23(0x4c6)](),this[_0x530e23(0x20a)][_0x530e23(0x14d)](_0x581274=>_0x581274[_0x530e23(0x3f5)]());}[_0x4b1ec3(0x2c5)](_0x4bc6b4){const _0xa7ffa=_0x4b1ec3;return this[_0xa7ffa(0x20a)][_0xa7ffa(0x4a3)](_0x4bc6b4)?this[_0xa7ffa(0x20a)]['get'](_0x4bc6b4)['cursorInfo$']:this[_0xa7ffa(0x3b1)]['pipe'](_0x11b67e[_0xa7ffa(0x319)](_0x685655=>_0x685655['unitID']===_0x4bc6b4),_0x11b67e['switchMap'](_0xf0b084=>_0xf0b084[_0xa7ffa(0x2c3)]));}[_0x4b1ec3(0x468)](){const _0x5bce33=_0x4b1ec3;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x495bbc[_0x5bce33(0x2d8)][_0x5bce33(0x271)])[_0x5bce33(0x377)](_0x11b67e[_0x5bce33(0x40b)](this['dispose$']))['subscribe'](async _0x5668df=>{const _0x420917=_0x5bce33,_0x3f46c4=_0x5668df['getUnitId'](),_0x4cbe63=await this[_0x420917(0x31b)](_0x3f46c4);this[_0x420917(0x3b1)]['next'](_0x4cbe63),this[_0x420917(0x20a)][_0x420917(0x20e)](_0x3f46c4,_0x4cbe63);}),this[_0x5bce33(0x352)][_0x5bce33(0x251)](_0x495bbc['UniverInstanceType'][_0x5bce33(0x438)])[_0x5bce33(0x377)](_0x11b67e['takeUntil'](this[_0x5bce33(0x26e)]))[_0x5bce33(0x377)](_0x11b67e[_0x5bce33(0x319)](_0x5381c5=>!_0x5381c5[_0x5bce33(0x317)]()[_0x5bce33(0x49d)]('__')))[_0x5bce33(0x43a)](async _0x415bb2=>{const _0x401345=_0x5bce33,_0x333e20=_0x415bb2[_0x401345(0x317)](),_0x3c9935=await this[_0x401345(0x36b)](_0x333e20);this[_0x401345(0x3b1)][_0x401345(0x2b2)](_0x3c9935),this['_entities'][_0x401345(0x20e)](_0x333e20,_0x3c9935);}),_0x11b67e[_0x5bce33(0x140)](this[_0x5bce33(0x352)][_0x5bce33(0x4ab)](_0x495bbc[_0x5bce33(0x2d8)][_0x5bce33(0x438)]),this['_univerInstanceService'][_0x5bce33(0x4ab)](_0x495bbc['UniverInstanceType'][_0x5bce33(0x271)]))[_0x5bce33(0x377)](_0x11b67e[_0x5bce33(0x40b)](this['dispose$']))['subscribe'](_0x175e42=>{const _0x29ca24=_0x5bce33,_0x448041=_0x175e42[_0x29ca24(0x317)](),_0x40d079=this[_0x29ca24(0x20a)]['get'](_0x448041);_0x40d079&&(_0x40d079[_0x29ca24(0x3f5)](),this[_0x29ca24(0x20a)][_0x29ca24(0x2c8)](_0x448041));});}async[_0x4b1ec3(0x31b)](_0x2f5750){const _0x44cf0f=_0x4b1ec3,_0x270993=await this[_0x44cf0f(0x3b4)][_0x44cf0f(0x269)](_0x2f5750),_0x2af563=this['_injector']['createInstance'](_0x45d46d,_0x2f5750,_0x270993);return _0x2af563['init'](),_0x2af563;}async['_startDocCollabCursor'](_0x43a004){const _0x1045f9=_0x4b1ec3,_0x29f1db=await this[_0x1045f9(0x3b4)][_0x1045f9(0x269)](_0x43a004),_0x48d713=this['_injector'][_0x1045f9(0x1ab)](_0x5440e7,_0x43a004,_0x29f1db);return _0x48d713[_0x1045f9(0x228)](),_0x48d713;}};_0x5cab36=_0x44fea9([_0x495bbc[_0x4b1ec3(0x34d)](_0x495bbc[_0x4b1ec3(0x287)]['Starting'],_0x5cab36),_0x448b86(0x0,_0x495bbc[_0x4b1ec3(0x216)]),_0x448b86(0x1,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0x448b86(0x2,_0xff0938[_0x4b1ec3(0x292)](_0x99db31['CollaborationSessionService']))],_0x5cab36);const _0x13f80a=0x14,_0x385ace=0xc8,_0x4ed486=0x4,_0x2c3802=0x5;function _0xf1587f(_0x1be977,_0x1ad7dd){const _0x35d9de=_0x4b1ec3;let {radius:_0x229631,width:_0xf2b592,height:_0x268928}=_0x1ad7dd;_0x229631=_0x229631!=null?_0x229631:0x0,_0xf2b592=_0xf2b592!=null?_0xf2b592:0x1e,_0x268928=_0x268928!=null?_0x268928:0x1e;let _0xba0f17=0x0,_0x314150=0x0,_0x1bcbc0=0x0;_0xba0f17=_0x314150=_0x1bcbc0=Math[_0x35d9de(0x3b3)](_0x229631,_0xf2b592/0x2,_0x268928/0x2),_0x1be977[_0x35d9de(0x4dd)](),_0x1be977['moveTo'](_0xba0f17,0x0),_0x1be977['lineTo'](_0xf2b592-_0x314150,0x0),_0x1be977['arc'](_0xf2b592-_0x314150,_0x314150,_0x314150,Math['PI']*0x3/0x2,0x0,!0x1),_0x1be977[_0x35d9de(0x31f)](_0xf2b592,_0x268928-_0x1bcbc0),_0x1be977['arc'](_0xf2b592-_0x1bcbc0,_0x268928-_0x1bcbc0,_0x1bcbc0,0x0,Math['PI']/0x2,!0x1),_0x1be977[_0x35d9de(0x31f)](0x0,_0x268928),_0x1be977[_0x35d9de(0x31f)](0x0,_0xba0f17),_0x1be977[_0x35d9de(0x382)](_0xba0f17,_0xba0f17,_0xba0f17,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1be977[_0x35d9de(0x261)](),_0x1ad7dd[_0x35d9de(0x51b)]&&(_0x1be977[_0x35d9de(0x17d)](),_0x1be977[_0x35d9de(0x3bb)]=_0x1ad7dd['fill'],_0x1ad7dd[_0x35d9de(0x4c4)]===_0x35d9de(0x1ae)?_0x1be977[_0x35d9de(0x51b)](_0x35d9de(0x1ae)):_0x1be977['fill'](),_0x1be977[_0x35d9de(0x4f7)]());}class _0x3aa103 extends _0x4ec763[_0x4b1ec3(0x1fd)]{constructor(_0x1d916f,_0x12c4f8){const _0x17362a=_0x4b1ec3;super(_0x1d916f,_0x12c4f8),_0x5d8027(this,_0x17362a(0x39c)),_0x5d8027(this,_0x17362a(0x455)),(this[_0x17362a(0x39c)]=_0x12c4f8==null?void 0x0:_0x12c4f8[_0x17362a(0x39c)],this[_0x17362a(0x455)]=_0x12c4f8==null?void 0x0:_0x12c4f8[_0x17362a(0x455)]);}static[_0x4b1ec3(0x332)](_0x378805,_0x15bacd){const _0x48ccaf=_0x4b1ec3,{text:_0x2cee32,color:_0x4c14e5}=_0x15bacd;_0x378805[_0x48ccaf(0x17d)](),_0x378805['font']=_0x48ccaf(0x4ee);const _0x3bbc01=_0x378805[_0x48ccaf(0x4ca)](_0x2cee32)[_0x48ccaf(0x25d)],_0x2a2d8b=Math[_0x48ccaf(0x3b3)](_0x3bbc01+0x2*_0x4ed486,_0x385ace);_0xf1587f(_0x378805,{'height':_0x13f80a,'radius':0x4,'width':_0x2a2d8b,'fill':_0x4c14e5,'evented':!0x1}),_0x378805[_0x48ccaf(0x3bb)]=_0x48ccaf(0x4b1);const _0x5936fc=_0x4ed486,_0x2578d0=_0x13f80a-_0x2c3802,_0x9d2966=_0x385ace-0x2*_0x4ed486;if(_0x3bbc01>_0x9d2966){let _0x58f0a5='',_0x12f56f=0x0;for(const _0x222d41 of _0x2cee32){const _0xe465a9=_0x378805[_0x48ccaf(0x4ca)](_0x222d41)['width'];if(_0x12f56f+_0xe465a9<=_0x9d2966-_0x378805[_0x48ccaf(0x4ca)](_0x48ccaf(0x24f))['width'])_0x58f0a5+=_0x222d41,_0x12f56f+=_0xe465a9;else{_0x58f0a5+='...';break;}}_0x378805['fillText'](_0x58f0a5,_0x5936fc,_0x2578d0);}else _0x378805[_0x48ccaf(0x2e3)](_0x2cee32,_0x5936fc,_0x2578d0);_0x378805['restore']();}[_0x4b1ec3(0x2d2)](_0x4e5d76){_0x3aa103['drawWith'](_0x4e5d76,this);}}const _0x1bae45=0x1,_0x16c24b=1.5;class _0x20a6c8 extends _0x4ec763[_0x4b1ec3(0x1fd)]{constructor(_0x5c6db0,_0x3a305d){const _0x4c2009=_0x4b1ec3;super(_0x5c6db0,_0x3a305d),_0x5d8027(this,_0x4c2009(0x4a4)),_0x5d8027(this,_0x4c2009(0x505),!0x1),_0x5d8027(this,_0x4c2009(0x387)),_0x5d8027(this,_0x4c2009(0x268),''),_0x5d8027(this,_0x4c2009(0x45e),_0x4c2009(0x136)),_0x5d8027(this,_0x4c2009(0x29d)),(_0x3a305d&&this['setShapeProps'](_0x3a305d),this[_0x4c2009(0x2bc)][_0x4c2009(0x2b9)](()=>this[_0x4c2009(0x4e7)]({'hovered':!0x0})),this['onPointerLeave$'][_0x4c2009(0x2b9)](()=>this[_0x4c2009(0x4e7)]({'hovered':!0x1})));}['setShapeProps'](_0x11bb6c){const _0x9f6cc5=_0x4b1ec3;var _0x1ea034,_0x3068f3,_0x266675,_0x3f2459,_0x466a6e,_0xf389f0;this[_0x9f6cc5(0x4a4)]=(_0x1ea034=_0x11bb6c['color'])!=null?_0x1ea034:this[_0x9f6cc5(0x4a4)],this['_hovered']=(_0x3068f3=_0x11bb6c[_0x9f6cc5(0x3d1)])!=null?_0x3068f3:this[_0x9f6cc5(0x505)],this[_0x9f6cc5(0x387)]=(_0x266675=_0x11bb6c[_0x9f6cc5(0x2d7)])!=null?_0x266675:this[_0x9f6cc5(0x387)],this[_0x9f6cc5(0x268)]=(_0x3f2459=_0x11bb6c['name'])!=null?_0x3f2459:this[_0x9f6cc5(0x268)],this[_0x9f6cc5(0x45e)]=(_0x466a6e=_0x11bb6c[_0x9f6cc5(0x400)])!=null?_0x466a6e:this[_0x9f6cc5(0x45e)],this[_0x9f6cc5(0x29d)]=(_0xf389f0=_0x11bb6c['backgroundColor'])!=null?_0xf389f0:this[_0x9f6cc5(0x29d)],this[_0x9f6cc5(0x3c8)]({'width':_0x11bb6c[_0x9f6cc5(0x25d)],'height':_0x11bb6c[_0x9f6cc5(0x48a)]});}[_0x4b1ec3(0x1a8)](_0x581c3a){const _0x1520ff=_0x4b1ec3,{row:_0x3e8177,column:_0x1d4c1a}=_0x581c3a;if(_0x3e8177>=this[_0x1520ff(0x387)][_0x1520ff(0x137)]&&_0x3e8177<=this[_0x1520ff(0x387)][_0x1520ff(0x4e9)]&&_0x1d4c1a>=this[_0x1520ff(0x387)]['startColumn']&&_0x1d4c1a<=this['_range'][_0x1520ff(0x43b)]){this[_0x1520ff(0x4e7)]({'hovered':!0x0});return;}this[_0x1520ff(0x4e7)]({'hovered':!0x1});}[_0x4b1ec3(0x1ba)](_0x1e291b){return!0x1;}[_0x4b1ec3(0x2d2)](_0x54692f){const _0x90e80=_0x4b1ec3;_0x4ec763[_0x90e80(0x43f)][_0x90e80(0x332)](_0x54692f,{'width':this[_0x90e80(0x25d)],'height':this[_0x90e80(0x48a)],'strokeWidth':_0x16c24b,'stroke':this[_0x90e80(0x4a4)],'evented':!0x1,'fill':this[_0x90e80(0x29d)]}),this['_hovered']&&(_0x54692f[_0x90e80(0x17d)](),_0x54692f[_0x90e80(0x3c4)](0x1,0x0,0x0,0x1,this[_0x90e80(0x25d)],this[_0x90e80(0x45e)]===_0x90e80(0x503)?0x0:-_0x13f80a),_0x3aa103[_0x90e80(0x332)](_0x54692f,{'text':this[_0x90e80(0x268)],'color':this['_color']}),_0x54692f[_0x90e80(0x4f7)]());}}var _0x2a2155=Object['defineProperty'],_0x39d400=Object[_0x4b1ec3(0x507)],_0x425b81=(_0x449ab1,_0x9cd253,_0x33ac4b,_0x1aa10c)=>{for(var _0x58bc95=_0x1aa10c>0x1?void 0x0:_0x1aa10c?_0x39d400(_0x9cd253,_0x33ac4b):_0x9cd253,_0x70e6b0=_0x449ab1['length']-0x1,_0x4ddefb;_0x70e6b0>=0x0;_0x70e6b0--)(_0x4ddefb=_0x449ab1[_0x70e6b0])&&(_0x58bc95=(_0x1aa10c?_0x4ddefb(_0x9cd253,_0x33ac4b,_0x58bc95):_0x4ddefb(_0x58bc95))||_0x58bc95);return _0x1aa10c&&_0x58bc95&&_0x2a2155(_0x9cd253,_0x33ac4b,_0x58bc95),_0x58bc95;},_0x467bd0=(_0x1f7de1,_0x2140eb)=>(_0x4a6ada,_0x43b180)=>_0x2140eb(_0x4a6ada,_0x43b180,_0x1f7de1);const _0x35140c=0x1389;let _0x1712e2=class extends _0x495bbc['RxDisposable']{constructor(_0x66f476,_0x4a3cf5,_0x31cdf4,_0xbd93b2){const _0x1266e2=_0x4b1ec3;super(),_0x5d8027(this,_0x1266e2(0x138),new Set()),_0x5d8027(this,_0x1266e2(0x170),null),(this['_collabCursorController']=_0x66f476,this[_0x1266e2(0x352)]=_0x4a3cf5,this[_0x1266e2(0x47e)]=_0x31cdf4,this[_0x1266e2(0x30c)]=_0xbd93b2,this[_0x1266e2(0x468)]());}get[_0x4b1ec3(0x2d4)](){const _0x378ab4=_0x4b1ec3;return this[_0x378ab4(0x47e)][_0x378ab4(0x2e7)](this['_univerInstanceService']['getCurrentUnitForType'](_0x495bbc[_0x378ab4(0x2d8)][_0x378ab4(0x271)])[_0x378ab4(0x317)]())[_0x378ab4(0x385)](_0x3630b0['SheetSkeletonManagerService']);}get[_0x4b1ec3(0x1f2)](){const _0x15ec99=_0x4b1ec3;return this['_univerInstanceService']['getCurrentUnitForType'](_0x495bbc[_0x15ec99(0x2d8)][_0x15ec99(0x271)])[_0x15ec99(0x317)]();}[_0x4b1ec3(0x468)](){const _0x5e6bf3=_0x4b1ec3;this[_0x5e6bf3(0x2d4)]['currentSkeleton$']['pipe'](_0x3e7fcd[_0x5e6bf3(0x40b)](this[_0x5e6bf3(0x26e)]),_0x3e7fcd['switchMap'](_0x21cbe3=>{const _0x1a555c=_0x5e6bf3;if(_0x21cbe3){const _0x54c0b9=_0x21cbe3[_0x1a555c(0x177)];return _0x11b67e[_0x1a555c(0x1d9)](this[_0x1a555c(0x175)][_0x1a555c(0x2c5)](this['_unitId']),this[_0x1a555c(0x30c)][_0x1a555c(0x43c)])[_0x1a555c(0x377)](_0x3e7fcd[_0x1a555c(0x270)](([_0x57eb4e,_0x2661b2])=>{const _0x7fac66=_0x1a555c,_0x471cf9=new Map();return _0x57eb4e[_0x7fac66(0x14d)]((_0x3fdff2,_0x518427)=>{const _0x38736a=_0x7fac66;if(_0x3fdff2[_0x38736a(0x2ed)]===_0x54c0b9){const _0x4fc8a2={..._0x3fdff2};_0x4fc8a2[_0x38736a(0x39c)]=_0x2661b2[_0x3fdff2[_0x38736a(0x39c)]],_0x471cf9[_0x38736a(0x20e)](_0x518427,_0x4fc8a2);}}),{'skeleton':_0x21cbe3,'cursors':_0x471cf9};}));}return _0x11b67e['of']({'skeleton':null,'cursors':new Map()});}))[_0x5e6bf3(0x43a)](({skeleton:_0x1d8ba2,cursors:_0x3b41fe})=>{const _0x13ffe2=_0x5e6bf3;this[_0x13ffe2(0x14b)](),_0x1d8ba2&&this['_updateCollabCursors'](_0x1d8ba2,_0x3b41fe);}),this['_sheetSkeletonManagerService'][_0x5e6bf3(0x1f1)][_0x5e6bf3(0x43a)](_0x1277c4=>{const _0x4bd587=_0x5e6bf3;if(_0x1277c4==null)return;const {skeleton:_0x401b08}=_0x1277c4,_0x18d196=this['_renderManagerService']['getRenderById'](this[_0x4bd587(0x1f2)]),{scene:_0x56db0c}=_0x18d196;_0x56db0c[_0x4bd587(0x4b4)][_0x4bd587(0x2b9)](_0x5be5a1(_0x117c8a=>{const _0x124149=_0x4bd587;var _0x25b4fa,_0x4c4ae9;const {offsetX:_0x4dd69d,offsetY:_0x422534}=_0x117c8a,{x:_0x52adeb,y:_0x2bdbba}=_0x56db0c['getRelativeToViewportCoord'](_0x4ec763[_0x124149(0x2cb)][_0x124149(0x23b)]([_0x4dd69d,_0x422534])),{scaleX:_0x132a29,scaleY:_0x385770}=_0x56db0c['getAncestorScale'](),_0x393257=_0x56db0c[_0x124149(0x4c7)](_0x3630b0[_0x124149(0x3d0)][_0x124149(0x3e7)]),_0x317520=_0x56db0c[_0x124149(0x243)](_0x4ec763[_0x124149(0x2cb)][_0x124149(0x23b)]([_0x52adeb,_0x2bdbba]),_0x393257),_0x5297a5=_0x401b08[_0x124149(0x235)](_0x4dd69d,_0x422534,_0x132a29,_0x385770,_0x317520);((_0x25b4fa=this[_0x124149(0x170)])==null?void 0x0:_0x25b4fa[_0x124149(0x24c)])===_0x5297a5[_0x124149(0x24c)]&&((_0x4c4ae9=this['_lastPointer'])==null?void 0x0:_0x4c4ae9[_0x124149(0x3d9)])===_0x5297a5['row']||this[_0x124149(0x138)]['forEach'](_0x202fa3=>{const _0x1b3a2a=_0x124149;_0x202fa3[_0x1b3a2a(0x1a8)](_0x5297a5);});},0x64));});}[_0x4b1ec3(0x2f1)](_0x493369,_0x55c3ce){const _0xa81579=_0x4b1ec3;var _0x3a514b;const _0x4e8c11=(_0x3a514b=this[_0xa81579(0x2d4)]['getCurrent']())==null?void 0x0:_0x3a514b[_0xa81579(0x328)];if(!_0x4e8c11)return;const _0x4bf494=this[_0xa81579(0x233)]();if(!_0x4bf494)return;this['_cursors'][_0xa81579(0x14d)](_0x19b2c0=>{const _0x598bbd=_0xa81579;_0x19b2c0[_0x598bbd(0x167)]();});const {scene:_0x12b955}=_0x4bf494,_0xad0c6c=_0xb82506(Array[_0xa81579(0x133)](_0x55c3ce[_0xa81579(0x1de)]()))['map'](_0x4f3787=>{const _0x571de2=_0xa81579,{color:_0x4b24f4,range:_0x14c904,name:_0xf4cf74,selection:_0x5c94f9,sheetID:_0x31a5e0}=_0x4f3787,{startColumn:_0x1b5d0b,startRow:_0x3a8003,endColumn:_0x50498d,endRow:_0x213568}=_0x14c904,_0x3f92f2=_0x3630b0['getCoordByCell'](_0x3a8003,_0x1b5d0b,_0x12b955,_0x4e8c11),_0x3956a4=_0x3630b0[_0x571de2(0x433)](_0x213568,_0x50498d,_0x12b955,_0x4e8c11),{columnHeaderHeightAndMarginTop:_0x1eaea5}=_0x4e8c11,{startX:_0x4f2a2d,startY:_0x3fbd2d}=_0x3f92f2,{endX:_0x22c26d,endY:_0x5e1487}=_0x3956a4,_0xcb38a9=_0x22c26d-_0x4f2a2d,_0xab3d91=_0x5e1487-_0x3fbd2d,_0x42020a={'labelPosition':_0x3fbd2d-_0x1eaea5>=_0x13f80a?'top':_0x571de2(0x503),'sheetID':_0x31a5e0,'range':_0x14c904,'color':_0x4b24f4,'name':_0xf4cf74,'selection':_0x5c94f9,'left':_0x4f2a2d,'top':_0x3fbd2d,'width':_0xcb38a9,'height':_0xab3d91,'evented':!0x1,'zIndex':_0x35140c};return new _0x20a6c8(_0xf4cf74,_0x42020a);});_0x12b955[_0xa81579(0x283)](_0xad0c6c,_0x1bae45),this[_0xa81579(0x138)]=new Set(_0xad0c6c);}[_0x4b1ec3(0x14b)](){const _0x791760=_0x4b1ec3;var _0x121c8d;(_0x121c8d=this['_cursors'])==null||_0x121c8d[_0x791760(0x14d)](_0x334385=>_0x334385['dispose']());}[_0x4b1ec3(0x233)](){const _0x168462=_0x4b1ec3;return _0x3630b0[_0x168462(0x3a0)](this[_0x168462(0x352)],this[_0x168462(0x47e)]);}};_0x1712e2=_0x425b81([_0x495bbc[_0x4b1ec3(0x34d)](_0x495bbc[_0x4b1ec3(0x287)]['Steady'],_0x1712e2),_0x467bd0(0x0,_0xff0938[_0x4b1ec3(0x292)](_0x5cab36)),_0x467bd0(0x1,_0x495bbc['IUniverInstanceService']),_0x467bd0(0x2,_0x4ec763['IRenderManagerService']),_0x467bd0(0x3,_0xff0938['Inject'](_0x495bbc[_0x4b1ec3(0x4ef)]))],_0x1712e2);function _0xb82506(_0x44ef1e){const _0x7be8de=_0x4b1ec3,_0xf8a73a=new Map();return _0x44ef1e[_0x7be8de(0x14d)](_0x568844=>{const _0x32f561=_0x7be8de;if(_0xf8a73a[_0x32f561(0x4a3)](_0x568844[_0x32f561(0x422)])){const _0x2b9101=_0xf8a73a[_0x32f561(0x4ce)](_0x568844[_0x32f561(0x422)]);_0x2b9101['name']+=',\x20'+_0x568844['name'];}else _0xf8a73a[_0x32f561(0x20e)](_0x568844['selection'],_0x568844);}),Array[_0x7be8de(0x133)](_0xf8a73a[_0x7be8de(0x1de)]());}var _0x2b76db=function(){const _0x46dd3a=_0x4b1ec3;return _0x2b76db=Object[_0x46dd3a(0x303)]||function(_0xc999d2){const _0x1f009f=_0x46dd3a;for(var _0x2d54ca,_0x55a701=0x1,_0x4ecbd5=arguments['length'];_0x55a701<_0x4ecbd5;_0x55a701++){_0x2d54ca=arguments[_0x55a701];for(var _0x5b3a46 in _0x2d54ca)Object['prototype']['hasOwnProperty'][_0x1f009f(0x25a)](_0x2d54ca,_0x5b3a46)&&(_0xc999d2[_0x5b3a46]=_0x2d54ca[_0x5b3a46]);}return _0xc999d2;},_0x2b76db['apply'](this,arguments);},_0x181d7b=function(_0x1200ec,_0x35f6f7){const _0xf3c4bd=_0x4b1ec3;var _0x18f5af={};for(var _0x479ba1 in _0x1200ec)Object[_0xf3c4bd(0x285)][_0xf3c4bd(0x1fa)][_0xf3c4bd(0x25a)](_0x1200ec,_0x479ba1)&&_0x35f6f7[_0xf3c4bd(0x1cf)](_0x479ba1)<0x0&&(_0x18f5af[_0x479ba1]=_0x1200ec[_0x479ba1]);if(_0x1200ec!=null&&typeof Object['getOwnPropertySymbols']==_0xf3c4bd(0x2ea)){for(var _0x6046aa=0x0,_0x479ba1=Object['getOwnPropertySymbols'](_0x1200ec);_0x6046aa<_0x479ba1[_0xf3c4bd(0x2b7)];_0x6046aa++)_0x35f6f7['indexOf'](_0x479ba1[_0x6046aa])<0x0&&Object[_0xf3c4bd(0x285)][_0xf3c4bd(0x4b6)][_0xf3c4bd(0x25a)](_0x1200ec,_0x479ba1[_0x6046aa])&&(_0x18f5af[_0x479ba1[_0x6046aa]]=_0x1200ec[_0x479ba1[_0x6046aa]]);}return _0x18f5af;},_0x162268=_0x593db6[_0x4b1ec3(0x2b3)](function(_0x321e82,_0x5dec80){const _0xc9f3d9=_0x4b1ec3;var _0x214fec=_0x321e82[_0xc9f3d9(0x4fe)],_0x8b48e7=_0x321e82['id'],_0x5a86f8=_0x321e82[_0xc9f3d9(0x491)],_0x51674c=_0x321e82['extend'],_0xb58069=_0x181d7b(_0x321e82,[_0xc9f3d9(0x4fe),'id',_0xc9f3d9(0x491),_0xc9f3d9(0x286)]),_0x5dfecc='univerjs-icon\x20univerjs-icon-'['concat'](_0x8b48e7,'\x20')['concat'](_0x5a86f8||'')[_0xc9f3d9(0x196)](),_0x41ed6a=_0x593db6[_0xc9f3d9(0x4e1)]('_'[_0xc9f3d9(0x2d3)](_0x2180f5()));return _0x39e077(_0x214fec,''['concat'](_0x8b48e7),{'defIds':_0x214fec[_0xc9f3d9(0x3e2)],'idSuffix':_0x41ed6a[_0xc9f3d9(0x4fa)]},_0x2b76db({'ref':_0x5dec80,'className':_0x5dfecc},_0xb58069),_0x51674c);});function _0x39e077(_0x51b7a8,_0x4bb4aa,_0x564b51,_0x47b5f3,_0x3f1ab7){const _0x5f250d=_0x4b1ec3;return _0x593db6[_0x5f250d(0x3da)](_0x51b7a8[_0x5f250d(0x1cc)],_0x2b76db(_0x2b76db({'key':_0x4bb4aa},_0x43fe43(_0x51b7a8,_0x564b51,_0x3f1ab7)),_0x47b5f3),(_0x36605a(_0x51b7a8,_0x564b51)[_0x5f250d(0x47b)]||[])[_0x5f250d(0x270)](function(_0x3c15de,_0x44f897){const _0x2f781f=_0x5f250d;return _0x39e077(_0x3c15de,''[_0x2f781f(0x2d3)](_0x4bb4aa,'-')[_0x2f781f(0x2d3)](_0x51b7a8[_0x2f781f(0x1cc)],'-')[_0x2f781f(0x2d3)](_0x44f897),_0x564b51,void 0x0,_0x3f1ab7);}));}function _0x43fe43(_0x315785,_0x574d9f,_0x3ff27f){const _0x2e9630=_0x4b1ec3;var _0x33436f=_0x2b76db({},_0x315785[_0x2e9630(0x195)]);_0x3ff27f!=null&&_0x3ff27f[_0x2e9630(0x163)]&&_0x33436f[_0x2e9630(0x51b)]===_0x2e9630(0x163)&&(_0x33436f['fill']=_0x3ff27f[_0x2e9630(0x163)]);var _0x26ee34=_0x574d9f['defIds'];return!_0x26ee34||_0x26ee34['length']===0x0||(_0x315785[_0x2e9630(0x1cc)]===_0x2e9630(0x144)&&_0x33436f[_0x2e9630(0x3dd)]&&(_0x33436f['xlink:href']=_0x33436f[_0x2e9630(0x3dd)]+_0x574d9f[_0x2e9630(0x229)]),Object[_0x2e9630(0x1f6)](_0x33436f)['forEach'](function(_0x5b041b){const _0x5bad78=_0x2e9630;var _0x2848e2=_0x5b041b[0x0],_0x2dafe0=_0x5b041b[0x1];typeof _0x2dafe0==_0x5bad78(0x300)&&(_0x33436f[_0x2848e2]=_0x2dafe0['replace'](/url\(#(.*)\)/,_0x5bad78(0x500)[_0x5bad78(0x2d3)](_0x574d9f[_0x5bad78(0x229)],')')));})),_0x33436f;}function _0x36605a(_0x46a1ee,_0xd3cf2){const _0xef4fef=_0x4b1ec3;var _0x31cef2,_0x48eed8=_0xd3cf2[_0xef4fef(0x3e2)];return!_0x48eed8||_0x48eed8[_0xef4fef(0x2b7)]===0x0?_0x46a1ee:_0x46a1ee[_0xef4fef(0x1cc)]===_0xef4fef(0x302)&&(!((_0x31cef2=_0x46a1ee['children'])===null||_0x31cef2===void 0x0)&&_0x31cef2['length'])?_0x2b76db(_0x2b76db({},_0x46a1ee),{'children':_0x46a1ee[_0xef4fef(0x47b)][_0xef4fef(0x270)](function(_0x1c82be){const _0x79bb5b=_0xef4fef;return typeof _0x1c82be[_0x79bb5b(0x195)]['id']==_0x79bb5b(0x300)&&_0x48eed8&&_0x48eed8[_0x79bb5b(0x1cf)](_0x1c82be[_0x79bb5b(0x195)]['id'])>-0x1?_0x2b76db(_0x2b76db({},_0x1c82be),{'attrs':_0x2b76db(_0x2b76db({},_0x1c82be[_0x79bb5b(0x195)]),{'id':_0x1c82be['attrs']['id']+_0xd3cf2[_0x79bb5b(0x229)]})}):_0x1c82be;})}):_0x46a1ee;}function _0x2180f5(){const _0x50fd4b=_0x4b1ec3;return Math[_0x50fd4b(0x34e)]()[_0x50fd4b(0x3c9)](0x24)[_0x50fd4b(0x227)](0x2,0x8);}_0x162268[_0x4b1ec3(0x466)]=_0x4b1ec3(0x345);var _0x392186={'tag':_0x4b1ec3(0x484),'attrs':{'fill':_0x4b1ec3(0x336),'viewBox':_0x4b1ec3(0x4ba),'width':_0x4b1ec3(0x242),'height':_0x4b1ec3(0x242)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x4b1ec3(0x1d2),'attrs':{'stroke':'currentColor','d':_0x4b1ec3(0x232),'strokeLinecap':'round','strokeLinejoin':_0x4b1ec3(0x4a0),'strokeWidth':1.2}}]},{'tag':_0x4b1ec3(0x302),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4b1ec3(0x23a)},'children':[{'tag':_0x4b1ec3(0x1d2),'attrs':{'fill':_0x4b1ec3(0x4fc),'d':_0x4b1ec3(0x247)}}]}]}],'defIds':[_0x4b1ec3(0x23a)]},_0x222ae6=_0x593db6['forwardRef'](function(_0x136bcb,_0x52c86a){const _0x864edb=_0x4b1ec3;return _0x593db6[_0x864edb(0x3da)](_0x162268,Object[_0x864edb(0x303)]({},_0x136bcb,{'id':_0x864edb(0x23e),'ref':_0x52c86a,'icon':_0x392186}));});_0x222ae6['displayName']=_0x4b1ec3(0x3ff);var _0xaf5a34={'tag':'svg','attrs':{'fill':_0x4b1ec3(0x336),'viewBox':'0\x200\x2017\x2016','width':_0x4b1ec3(0x242),'height':_0x4b1ec3(0x242)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x4b1ec3(0x1d2),'attrs':{'stroke':_0x4b1ec3(0x2ee),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x4b1ec3(0x4a0),'strokeLinejoin':_0x4b1ec3(0x4a0),'strokeWidth':1.2}}]},{'tag':_0x4b1ec3(0x302),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4b1ec3(0x47d)},'children':[{'tag':_0x4b1ec3(0x1d2),'attrs':{'fill':_0x4b1ec3(0x4fc),'d':_0x4b1ec3(0x247),'transform':_0x4b1ec3(0x27c)}}]}]}],'defIds':[_0x4b1ec3(0x47d)]},_0x5d0b97=_0x593db6[_0x4b1ec3(0x2b3)](function(_0x310557,_0xda8a2d){const _0x5e57bb=_0x4b1ec3;return _0x593db6[_0x5e57bb(0x3da)](_0x162268,Object[_0x5e57bb(0x303)]({},_0x310557,{'id':_0x5e57bb(0x15e),'ref':_0xda8a2d,'icon':_0xaf5a34}));});_0x5d0b97[_0x4b1ec3(0x466)]=_0x4b1ec3(0x48e);const _0x1aba00={'onlineStatusIcon':'univer-online-status-icon','onlineStatusTitle':_0x4b1ec3(0x343),'onlineStatus':'univer-online-status','online':_0x4b1ec3(0x1ef),'offline':_0x4b1ec3(0x428)};function _0x9c44db(_0x26fd7c){const _0x70f88d=_0x4b1ec3;switch(_0x26fd7c){case _0x17c726[_0x70f88d(0x30a)]:return _0x70f88d(0x1e5);case _0x17c726[_0x70f88d(0x17a)]:return _0x70f88d(0x281);case _0x17c726[_0x70f88d(0x308)]:return'collabStatus.fetchMiss';case _0x17c726[_0x70f88d(0x358)]:return _0x70f88d(0x2f9);case _0x17c726[_0x70f88d(0x473)]:case _0x17c726['AWAITING']:case _0x17c726[_0x70f88d(0x2aa)]:return'collabStatus.syncing';case _0x17c726['SYNCED']:return _0x70f88d(0x284);}}function _0x12e239(_0x45e6a4){const _0x19fbf0=_0x4b1ec3,{status$:_0xc2d0aa}=_0x45e6a4,_0x1311af=_0x510d97['useObservable'](_0xc2d0aa,_0x17c726['NOT_COLLAB']),_0x5f1728=_0x3dcb78[_0x19fbf0(0x257)](_0x495bbc[_0x19fbf0(0x1f4)]),_0x58b71c=_0x1311af!==_0x17c726[_0x19fbf0(0x30a)],_0xd6ce61=_0x5f1728['t'](_0x9c44db(_0x1311af)),_0x26e3de=_0x592c4d(_0x1aba00[_0x19fbf0(0x146)],{[_0x1aba00[_0x19fbf0(0x4e3)]]:_0x58b71c,[_0x1aba00[_0x19fbf0(0x362)]]:!_0x58b71c}),_0x23e73b=_0x58b71c?_0x593db6[_0x19fbf0(0x3da)](_0x5d0b97,null):_0x593db6[_0x19fbf0(0x3da)](_0x222ae6,null);return _0x593db6[_0x19fbf0(0x3da)](_0x19fbf0(0x26b),{'className':_0x26e3de},_0x593db6[_0x19fbf0(0x3da)](_0x19fbf0(0x26b),{'className':_0x1aba00['onlineStatusIcon']},_0x23e73b),_0x593db6[_0x19fbf0(0x3da)](_0x19fbf0(0x26b),{'className':_0x1aba00[_0x19fbf0(0x185)]},_0xd6ce61));}var _0x50529b=Object['defineProperty'],_0x2bbb0d=Object[_0x4b1ec3(0x507)],_0xc20bba=(_0x4a137a,_0x33baa2,_0x563794,_0x2e1cd4)=>{for(var _0x15eefb=_0x2e1cd4>0x1?void 0x0:_0x2e1cd4?_0x2bbb0d(_0x33baa2,_0x563794):_0x33baa2,_0x2c1a09=_0x4a137a['length']-0x1,_0x21fda1;_0x2c1a09>=0x0;_0x2c1a09--)(_0x21fda1=_0x4a137a[_0x2c1a09])&&(_0x15eefb=(_0x2e1cd4?_0x21fda1(_0x33baa2,_0x563794,_0x15eefb):_0x21fda1(_0x15eefb))||_0x15eefb);return _0x2e1cd4&&_0x15eefb&&_0x50529b(_0x33baa2,_0x563794,_0x15eefb),_0x15eefb;},_0x2d9c76=(_0x4c2f5a,_0x4372ec)=>(_0x5ae9cd,_0x13450d)=>_0x4372ec(_0x5ae9cd,_0x13450d,_0x4c2f5a);_0x99db31[_0x4b1ec3(0x430)]=class extends _0x495bbc[_0x4b1ec3(0x424)]{constructor(_0x3cf278,_0x6da766,_0x4d86bd,_0x5e9014){const _0x3bc045=_0x4b1ec3;super(),_0x5d8027(this,_0x3bc045(0x4cc),new _0x11b67e[(_0x3bc045(0x2a9))](_0x17c726[_0x3bc045(0x358)])),(this[_0x3bc045(0x352)]=_0x3cf278,this['_uiPartsService']=_0x6da766,this[_0x3bc045(0x376)]=_0x4d86bd,this[_0x3bc045(0x3cd)]=_0x5e9014,this[_0x3bc045(0x355)](),this[_0x3bc045(0x3b2)]());}[_0x4b1ec3(0x355)](){const _0x408391=_0x4b1ec3;this[_0x408391(0x3fb)](this['_uiPartsService'][_0x408391(0x2f2)](_0x510d97[_0x408391(0x1b7)][_0x408391(0x39d)],()=>_0x3dcb78[_0x408391(0x224)](_0xfe8c98({'status$':this[_0x408391(0x4cc)][_0x408391(0x392)]()}),this[_0x408391(0x376)])));}[_0x4b1ec3(0x3b2)](){const _0x317c81=_0x4b1ec3;this[_0x317c81(0x3fb)](_0x495bbc[_0x317c81(0x46b)](this['_univerInstanceService'][_0x317c81(0x49c)]['pipe'](_0x11b67e['switchMap'](()=>{const _0x37cfeb=_0x317c81,_0x3c27e4=this[_0x37cfeb(0x352)][_0x37cfeb(0x1cb)]();return _0x3c27e4?this[_0x37cfeb(0x3cd)][_0x37cfeb(0x179)](_0x3c27e4[_0x37cfeb(0x317)]()):_0x11b67e['of'](null);}),_0x11b67e[_0x317c81(0x184)](_0x197fe3=>_0x197fe3?_0x197fe3[_0x317c81(0x373)]:_0x11b67e['of'](_0x17c726[_0x317c81(0x358)])))['subscribe'](_0x357570=>{const _0x345823=_0x317c81;this[_0x345823(0x4cc)]['next'](_0x357570);})));}},_0x99db31[_0x4b1ec3(0x430)]=_0xc20bba([_0x495bbc[_0x4b1ec3(0x34d)](_0x495bbc[_0x4b1ec3(0x287)][_0x4b1ec3(0x3e4)],_0x99db31[_0x4b1ec3(0x430)]),_0x2d9c76(0x0,_0x495bbc[_0x4b1ec3(0x216)]),_0x2d9c76(0x1,_0x510d97[_0x4b1ec3(0x2a5)]),_0x2d9c76(0x2,_0xff0938['Inject'](_0xff0938[_0x4b1ec3(0x22a)])),_0x2d9c76(0x3,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x45c)]))],_0x99db31[_0x4b1ec3(0x430)]);function _0xfe8c98(_0x143714){const {status$:_0xe36890}=_0x143714;return function(){const _0x1742ff=_0x2301;return _0x593db6[_0x1742ff(0x3da)](_0x12e239,{'status$':_0xe36890});};}const _0x3acd67=_0xff0938['createIdentifier']('uni.network.url-service');var _0x34d0b4=Object['defineProperty'],_0xe20197=Object[_0x4b1ec3(0x507)],_0x456d21=(_0x278e82,_0x19c250,_0x3f7862,_0x14e92e)=>{for(var _0x4ecb74=_0x14e92e>0x1?void 0x0:_0x14e92e?_0xe20197(_0x19c250,_0x3f7862):_0x19c250,_0x22f1ab=_0x278e82['length']-0x1,_0x489733;_0x22f1ab>=0x0;_0x22f1ab--)(_0x489733=_0x278e82[_0x22f1ab])&&(_0x4ecb74=(_0x14e92e?_0x489733(_0x19c250,_0x3f7862,_0x4ecb74):_0x489733(_0x4ecb74))||_0x4ecb74);return _0x14e92e&&_0x4ecb74&&_0x34d0b4(_0x19c250,_0x3f7862,_0x4ecb74),_0x4ecb74;},_0x261dc6=(_0x246485,_0x3b0fb4)=>(_0x5d0470,_0x3bb8a9)=>_0x3b0fb4(_0x5d0470,_0x3bb8a9,_0x246485);_0x99db31[_0x4b1ec3(0x425)]=class extends _0x495bbc['RxDisposable']{constructor(_0x37be29,_0x3ede2a,_0x384729,_0x41a68c,_0x23f88e,_0x24ea8a){const _0x8578f=_0x4b1ec3;super(),this[_0x8578f(0x3ba)]=_0x37be29,this['_logService']=_0x3ede2a,this['_commandService']=_0x384729,this[_0x8578f(0x43d)]=_0x41a68c,this[_0x8578f(0x266)]=_0x23f88e,_0x24ea8a?_0x24ea8a==null||_0x24ea8a[_0x8578f(0x4c3)]()['then'](()=>this[_0x8578f(0x468)]()):(this[_0x8578f(0x38b)][_0x8578f(0x2ca)](_0x8578f(0x3ed),_0x8578f(0x156)),this[_0x8578f(0x468)]());}async['_init'](){const _0x5239b4=_0x4b1ec3,_0x53c9e7=this[_0x5239b4(0x3ba)]['getParam'](_0x5239b4(0x13e)),_0x4f2669=this[_0x5239b4(0x3ba)][_0x5239b4(0x19d)]('type');if(!_0x53c9e7||!_0x4f2669){this[_0x5239b4(0x38b)]['debug'](_0x5239b4(0x3ed),_0x5239b4(0x186));return;}switch(Number(_0x4f2669)){case _0x1ffbf2[_0x5239b4(0x271)]:{const _0x5468fe=await this[_0x5239b4(0x1a9)](_0x53c9e7);this[_0x5239b4(0x238)](_0x5468fe);break;}case _0x1ffbf2[_0x5239b4(0x438)]:{await this['_loadDoc'](_0x53c9e7);break;}default:{this[_0x5239b4(0x38b)]['error'](_0x5239b4(0x3ed),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x4b1ec3(0x238)](_0x1ec0d6){const _0x382230=_0x4b1ec3;await this[_0x382230(0x325)](_0x1ec0d6),_0x1ec0d6['activeSheet$']['pipe'](_0x11b67e[_0x382230(0x40b)](this[_0x382230(0x26e)]))[_0x382230(0x43a)](_0x2cfa80=>{const _0x35ede9=_0x382230;_0x2cfa80&&this[_0x35ede9(0x1f3)](_0x2cfa80);}),this[_0x382230(0x3ba)][_0x382230(0x1e8)][_0x382230(0x377)](_0x11b67e[_0x382230(0x40b)](this[_0x382230(0x26e)]))['subscribe'](()=>this[_0x382230(0x325)](_0x1ec0d6));}['_updateURLWithCurrentState'](_0x2352f7,_0x2f5f1f=!0x1){const _0x3a5674=_0x4b1ec3,_0x1f6625=this[_0x3a5674(0x3ba)][_0x3a5674(0x19d)](_0x3a5674(0x27e));_0x2352f7[_0x3a5674(0x230)]()!==_0x1f6625&&this[_0x3a5674(0x3ba)]['setParam']('subunit',_0x2352f7['getSheetId'](),_0x2f5f1f);}async[_0x4b1ec3(0x325)](_0x51cdd7){const _0x3c75bd=_0x4b1ec3;var _0x5aaa84;const _0x1f830e=this[_0x3c75bd(0x3ba)][_0x3c75bd(0x19d)](_0x3c75bd(0x27e));if(!_0x1f830e||!_0x51cdd7['getSheetBySheetId'](_0x1f830e)){const _0xc22b11=_0x51cdd7[_0x3c75bd(0x48d)]()[0x0],_0x43cdad=_0x51cdd7[_0x3c75bd(0x21f)](_0xc22b11);if(!_0x43cdad)return;this[_0x3c75bd(0x1f3)](_0x43cdad,!0x0),await this[_0x3c75bd(0x2e4)]['executeCommand'](_0x344713[_0x3c75bd(0x3be)]['id'],{'unitId':_0x51cdd7['getUnitId'](),'subUnitId':_0xc22b11});return;}((_0x5aaa84=_0x51cdd7[_0x3c75bd(0x4ad)]())==null?void 0x0:_0x5aaa84[_0x3c75bd(0x230)]())!==_0x1f830e&&await this[_0x3c75bd(0x2e4)][_0x3c75bd(0x259)](_0x344713[_0x3c75bd(0x3be)]['id'],{'unitId':_0x51cdd7[_0x3c75bd(0x317)](),'subUnitId':_0x1f830e});}async[_0x4b1ec3(0x1a9)](_0x58423e){const _0x531397=_0x4b1ec3;let _0x450a06=0x0;const _0x4b7e7d=await this['_localCacheService'][_0x531397(0x258)](_0x58423e);return _0x4b7e7d&&(_0x4b7e7d[_0x531397(0x182)]||_0x4b7e7d['mutations'][_0x531397(0x2b7)]!==0x0)&&(_0x450a06=_0x4b7e7d['rev']),_0x450a06===0x0&&this['_logService']['debug'](_0x531397(0x3ed),_0x531397(0x3e0)),this[_0x531397(0x266)][_0x531397(0x4bc)](_0x58423e,_0x450a06);}async[_0x4b1ec3(0x2ad)](_0x4fc98d){const _0x1dcccb=_0x4b1ec3;let _0x3950e0=0x0;const _0x21cc50=await this[_0x1dcccb(0x43d)]['loadOfflineData'](_0x4fc98d);return _0x21cc50&&(_0x21cc50[_0x1dcccb(0x182)]||_0x21cc50['mutations'][_0x1dcccb(0x2b7)]!==0x0)&&(_0x3950e0=_0x21cc50['rev']),_0x3950e0===0x0&&this[_0x1dcccb(0x38b)][_0x1dcccb(0x2ca)]('[DataLoaderController]',_0x1dcccb(0x3e0)),this[_0x1dcccb(0x266)]['loadDoc'](_0x4fc98d,_0x3950e0);}},_0x99db31[_0x4b1ec3(0x425)]=_0x456d21([_0x495bbc[_0x4b1ec3(0x34d)](_0x495bbc['LifecycleStages'][_0x4b1ec3(0x3e4)],_0x99db31[_0x4b1ec3(0x425)]),_0x261dc6(0x0,_0x3acd67),_0x261dc6(0x1,_0x495bbc[_0x4b1ec3(0x22c)]),_0x261dc6(0x2,_0x495bbc[_0x4b1ec3(0x28f)]),_0x261dc6(0x3,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x4de)])),_0x261dc6(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda['SnapshotService'])),_0x261dc6(0x5,_0xff0938[_0x4b1ec3(0x369)](_0x1ffb28[_0x4b1ec3(0x2d1)]))],_0x99db31['DataLoaderController']);var _0x110d09=Object[_0x4b1ec3(0x356)],_0x188de7=Object[_0x4b1ec3(0x507)],_0x236a66=(_0x3cbd84,_0x2336b4,_0x413be8,_0x5d84c5)=>{const _0x5158ba=_0x4b1ec3;for(var _0x3e420e=_0x5d84c5>0x1?void 0x0:_0x5d84c5?_0x188de7(_0x2336b4,_0x413be8):_0x2336b4,_0x4b0c0d=_0x3cbd84[_0x5158ba(0x2b7)]-0x1,_0x1060b1;_0x4b0c0d>=0x0;_0x4b0c0d--)(_0x1060b1=_0x3cbd84[_0x4b0c0d])&&(_0x3e420e=(_0x5d84c5?_0x1060b1(_0x2336b4,_0x413be8,_0x3e420e):_0x1060b1(_0x3e420e))||_0x3e420e);return _0x5d84c5&&_0x3e420e&&_0x110d09(_0x2336b4,_0x413be8,_0x3e420e),_0x3e420e;},_0x1d9240=(_0x58861d,_0x3f50b6)=>(_0x409741,_0x17922d)=>_0x3f50b6(_0x409741,_0x17922d,_0x58861d);const _0x23d83b=_0x4b1ec3(0x38d),_0x1e605e='Univer';let _0x582d09=class extends _0x495bbc[_0x4b1ec3(0x424)]{constructor(_0x49e67a,_0x4f1cbc){const _0x1050af=_0x4b1ec3;super(),this[_0x1050af(0x352)]=_0x49e67a,this[_0x1050af(0x313)]=_0x4f1cbc,this[_0x1050af(0x468)]();}[_0x4b1ec3(0x468)](){const _0x55b9f1=_0x4b1ec3;this[_0x55b9f1(0x3fb)](_0x495bbc[_0x55b9f1(0x46b)](this[_0x55b9f1(0x352)][_0x55b9f1(0x49c)][_0x55b9f1(0x43a)](()=>{const _0x2545a3=_0x55b9f1;var _0x565898;const _0x4e6a55=this['_univerInstanceService']['getFocusedUnit']();let _0x127d13=(_0x565898=this[_0x2545a3(0x313)][_0x2545a3(0x1b6)](_0x23d83b))!=null?_0x565898:_0x1e605e;_0x4e6a55 instanceof _0x495bbc[_0x2545a3(0x1b2)]&&(_0x127d13=_0x4e6a55['name']),document[_0x2545a3(0x3ef)]=_0x127d13;})));}};_0x582d09=_0x236a66([_0x495bbc['OnLifecycle'](_0x495bbc[_0x4b1ec3(0x287)][_0x4b1ec3(0x1e3)],_0x582d09),_0x1d9240(0x0,_0x495bbc[_0x4b1ec3(0x216)]),_0x1d9240(0x1,_0x495bbc[_0x4b1ec3(0x2d6)])],_0x582d09);var _0xc95195=Object[_0x4b1ec3(0x356)],_0x4fa57c=Object[_0x4b1ec3(0x507)],_0x1b01cf=(_0x4e0509,_0x3ca547,_0x3b73ca,_0x378a1a)=>{const _0x532388=_0x4b1ec3;for(var _0xef394a=_0x378a1a>0x1?void 0x0:_0x378a1a?_0x4fa57c(_0x3ca547,_0x3b73ca):_0x3ca547,_0x14c27d=_0x4e0509[_0x532388(0x2b7)]-0x1,_0x34bc9a;_0x14c27d>=0x0;_0x14c27d--)(_0x34bc9a=_0x4e0509[_0x14c27d])&&(_0xef394a=(_0x378a1a?_0x34bc9a(_0x3ca547,_0x3b73ca,_0xef394a):_0x34bc9a(_0xef394a))||_0xef394a);return _0x378a1a&&_0xef394a&&_0xc95195(_0x3ca547,_0x3b73ca,_0xef394a),_0xef394a;},_0x1cfdfc=(_0x591269,_0x59bad5)=>(_0x5ccd6d,_0x37b1b1)=>_0x59bad5(_0x5ccd6d,_0x37b1b1,_0x591269);_0x99db31[_0x4b1ec3(0x331)]=class{constructor(_0x4c524f,_0x4e0418){const _0x2061b5=_0x4b1ec3;this[_0x2061b5(0x313)]=_0x4c524f,this[_0x2061b5(0x204)]=_0x4e0418;}async[_0x4b1ec3(0x4cb)](_0x501c2e,_0x4d1ac){const _0x4fee23=_0x4b1ec3;var _0x5cc84a;const {unitID:_0x3728a7,type:_0x1133f0,revision:_0x4d23e7=0x0}=_0x4d1ac,_0x451ea6=this[_0x4fee23(0x2e0)]()+'/'+_0x1133f0+'/unit/'+_0x3728a7+_0x4fee23(0x464)+_0x4d23e7,_0xe0f52c=(await this[_0x4fee23(0x204)][_0x4fee23(0x4ce)](_0x451ea6))[_0x4fee23(0x25b)],_0x2ab582=(_0x5cc84a=_0xe0f52c[_0x4fee23(0x21a)])==null?void 0x0:_0x5cc84a['workbook'];if(_0x2ab582){const _0x148864=_0x2ab582==null?void 0x0:_0x2ab582['originalMeta'],_0x475dda=_0x495bbc[_0x4fee23(0x3f1)]['encode'](_0x495bbc[_0x4fee23(0x20d)](_0x148864));_0x2ab582['originalMeta']=_0x475dda,Object[_0x4fee23(0x1f6)](_0x2ab582[_0x4fee23(0x3bc)])[_0x4fee23(0x14d)](([,_0x36f7ae])=>{const _0x21a5d6=_0x4fee23,_0x3d546a=_0x36f7ae[_0x21a5d6(0x191)],_0x3ecd9b=_0x495bbc[_0x21a5d6(0x3f1)][_0x21a5d6(0x324)](_0x495bbc[_0x21a5d6(0x20d)](_0x3d546a));_0x36f7ae['originalMeta']=_0x3ecd9b;});}return _0xe0f52c;}async['getSheetBlock'](_0x4f0313,_0x39fe6c){const _0x30aff3=_0x4b1ec3,{unitID:_0x11ab22,type:_0x58bfe6,blockID:_0xd9f1e7}=_0x39fe6c,_0x5c3a17=this[_0x30aff3(0x32f)]()+'/'+_0x58bfe6+'/unit/'+_0x11ab22+_0x30aff3(0x4e6)+_0xd9f1e7;return(await this[_0x30aff3(0x204)][_0x30aff3(0x4ce)](_0x5c3a17))['body'];}async[_0x4b1ec3(0x323)](_0x3ad10e,_0x41f0e2){const _0x422768=_0x4b1ec3,{unitID:_0x174e30,type:_0x155275,from:_0x1e1e68,to:_0x98296}=_0x41f0e2,_0x52e143=this['_getAPIPrefix']()+'/'+_0x155275+_0x422768(0x2bf)+_0x174e30+_0x422768(0x1f9)+_0x1e1e68+_0x422768(0x50b)+_0x98296;return(await this[_0x422768(0x204)][_0x422768(0x4ce)](_0x52e143))[_0x422768(0x25b)];}[_0x4b1ec3(0x2e0)](){const _0x30179c=_0x4b1ec3;var _0x5e2594;return(_0x5e2594=this[_0x30179c(0x313)]['getConfig'](_0x53202c))!=null?_0x5e2594:this[_0x30179c(0x32f)]();}[_0x4b1ec3(0x32f)](){const _0x32fc85=_0x4b1ec3;var _0x2380c5;return(_0x2380c5=this['_configService'][_0x32fc85(0x1b6)](_0xd3e7a0))!=null?_0x2380c5:_0x6829da;}async[_0x4b1ec3(0x341)](_0x2256fc,_0x265dc0){const _0x56dd59=_0x4b1ec3,_0x487890=_0x56dd59(0x1cd)+_0x265dc0[_0x56dd59(0x2fc)]+_0x56dd59(0x2bf)+_0x265dc0[_0x56dd59(0x391)]+'/resources';return(await this[_0x56dd59(0x204)]['get'](_0x487890,{'params':{'resourceId':JSON[_0x56dd59(0x4c2)](_0x265dc0[_0x56dd59(0x19a)])}}))[_0x56dd59(0x25b)];}[_0x4b1ec3(0x221)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4b1ec3(0x2da)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4b1ec3(0x168)](){const _0x2fbc06=_0x4b1ec3;throw new Error(_0x2fbc06(0x13f));}},_0x99db31['SnapshotServerOverHTTPService']=_0x1b01cf([_0x1cfdfc(0x0,_0x495bbc[_0x4b1ec3(0x2d6)]),_0x1cfdfc(0x1,_0xff0938['Inject'](_0x19613['HTTPService']))],_0x99db31['SnapshotServerOverHTTPService']);var _0x406609=Object[_0x4b1ec3(0x356)],_0x38f8a8=Object[_0x4b1ec3(0x507)],_0x5716f7=(_0x5a99ac,_0x17415b,_0x19c23c,_0x3f8f67)=>{for(var _0x4b9b50=_0x3f8f67>0x1?void 0x0:_0x3f8f67?_0x38f8a8(_0x17415b,_0x19c23c):_0x17415b,_0x3a0c58=_0x5a99ac['length']-0x1,_0x2d612f;_0x3a0c58>=0x0;_0x3a0c58--)(_0x2d612f=_0x5a99ac[_0x3a0c58])&&(_0x4b9b50=(_0x3f8f67?_0x2d612f(_0x17415b,_0x19c23c,_0x4b9b50):_0x2d612f(_0x4b9b50))||_0x4b9b50);return _0x3f8f67&&_0x4b9b50&&_0x406609(_0x17415b,_0x19c23c,_0x4b9b50),_0x4b9b50;},_0x39b174=(_0x547a2f,_0x3c2823)=>(_0x55e504,_0x3d1930)=>_0x3c2823(_0x55e504,_0x3d1930,_0x547a2f);let _0x17eb3b=class extends _0x495bbc[_0x4b1ec3(0x35b)]{constructor(_0x30706c,_0x1ec710,_0x58800d,_0x1222d3,_0x1cd20b){const _0x267e7f=_0x4b1ec3;super(_0x30706c,_0x1ec710,_0x58800d),this[_0x267e7f(0x202)]=_0x1222d3,this['_logService']=_0x1cd20b;}[_0x4b1ec3(0x208)](_0x36a0a8,_0x2fed70){const _0x28f831=_0x4b1ec3,_0x3fc66f=this['_getUndoStack'](_0x36a0a8);if(_0x3fc66f)try{const _0x65eb6a=this[_0x28f831(0x19c)](_0x3fc66f,_0x2fed70);this[_0x28f831(0x39f)](_0x36a0a8,_0x65eb6a);}catch(_0x109dde){this[_0x28f831(0x38b)][_0x28f831(0x512)]('[CollaborationUndoRedoService]',_0x109dde),this[_0x28f831(0x3a4)](_0x36a0a8);}const _0x58a9eb=this[_0x28f831(0x180)](_0x36a0a8);if(_0x58a9eb)try{const _0xfd72c=this[_0x28f831(0x19c)](_0x58a9eb,_0x2fed70);this[_0x28f831(0x506)](_0x36a0a8,_0xfd72c);}catch(_0x550dc6){this[_0x28f831(0x38b)][_0x28f831(0x512)](_0x550dc6),this['_clearRedo'](_0x36a0a8);}}[_0x4b1ec3(0x3a4)](_0x48a2d9){const _0x1260ca=_0x4b1ec3,_0x531d95=this[_0x1260ca(0x1c5)](_0x48a2d9);_0x531d95&&(_0x531d95[_0x1260ca(0x2b7)]=0x0,this[_0x1260ca(0x335)]());}[_0x4b1ec3(0x40e)](_0x595ba3){const _0xebef3d=_0x4b1ec3,_0x2f33b7=this[_0xebef3d(0x180)](_0x595ba3);_0x2f33b7&&(_0x2f33b7[_0xebef3d(0x2b7)]=0x0,this['_updateStatus']());}[_0x4b1ec3(0x39f)](_0x6593d9,_0x1f31e8){const _0x1e3027=_0x4b1ec3;this[_0x1e3027(0x407)][_0x1e3027(0x20e)](_0x6593d9,_0x1f31e8),this['_updateStatus']();}[_0x4b1ec3(0x506)](_0x188212,_0xd08559){const _0x54d7e4=_0x4b1ec3;this[_0x54d7e4(0x445)][_0x54d7e4(0x20e)](_0x188212,_0xd08559),this[_0x54d7e4(0x335)]();}['_transformStack'](_0x49007b,_0x3dd454){const _0x532f96=_0x4b1ec3,_0x5a7834=[];let _0x4b6caa=_0x3dd454,_0xef7486=_0x3dd454;for(let _0xb943bc=_0x49007b[_0x532f96(0x2b7)]-0x1;_0xb943bc>=0x0;_0xb943bc--){const {unitID:_0x4eaae4,undoMutations:_0x36d467,redoMutations:_0x5f8cc4}=_0x49007b[_0xb943bc],_0x896b3f=this['_transformService'][_0x532f96(0x33c)](_0x4b6caa,_0x36d467),_0x2dc3b1=this['_transformService'][_0x532f96(0x33c)](_0xef7486,_0x5f8cc4);if(_0x2a1cda[_0x532f96(0x201)](_0x896b3f)||_0x2a1cda[_0x532f96(0x201)](_0x2dc3b1)){this[_0x532f96(0x38b)][_0x532f96(0x512)](_0x532f96(0x359),_0x532f96(0x480),_0x896b3f,_0x2dc3b1);break;}_0x4b6caa=_0x896b3f['c1Prime'],_0xef7486=_0x2dc3b1[_0x532f96(0x395)],_0x5a7834[_0x532f96(0x38a)]({'unitID':_0x4eaae4,'undoMutations':_0x896b3f[_0x532f96(0x314)],'redoMutations':_0x2dc3b1[_0x532f96(0x314)]});}return _0x5a7834[_0x532f96(0x3fc)]();}};_0x17eb3b=_0x5716f7([_0x39b174(0x0,_0x495bbc[_0x4b1ec3(0x216)]),_0x39b174(0x1,_0x495bbc[_0x4b1ec3(0x28f)]),_0x39b174(0x2,_0x495bbc[_0x4b1ec3(0x253)]),_0x39b174(0x3,_0x2a1cda[_0x4b1ec3(0x21c)]),_0x39b174(0x4,_0x495bbc['ILogService'])],_0x17eb3b);class _0x387df7 extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(){const _0x512c88=_0x4b1ec3;super(),_0x5d8027(this,_0x512c88(0x1e8)),this[_0x512c88(0x1e8)]=_0x11b67e[_0x512c88(0x418)](window,_0x512c88(0x3db))[_0x512c88(0x377)](_0x11b67e[_0x512c88(0x40b)](this[_0x512c88(0x26e)]),_0x11b67e[_0x512c88(0x4ff)](0x1),_0x11b67e[_0x512c88(0x4d8)](void 0x0));}[_0x4b1ec3(0x4bb)](_0x48fdfd,_0x8a0a6a,_0x49946a=!0x1){const _0x48fadf=_0x4b1ec3,_0x289ec6=new URL(window[_0x48fadf(0x4ac)][_0x48fadf(0x37a)]);_0x289ec6['searchParams'][_0x48fadf(0x20e)](_0x48fdfd,_0x8a0a6a),_0x49946a?window[_0x48fadf(0x23c)][_0x48fadf(0x2c6)]('','',_0x289ec6[_0x48fadf(0x3c9)]()):window[_0x48fadf(0x23c)][_0x48fadf(0x494)]('','',_0x289ec6[_0x48fadf(0x3c9)]());}[_0x4b1ec3(0x236)](_0x4c18df,_0x1d7f52=!0x1){const _0x516dad=_0x4b1ec3,_0x1fe577=new URL(window['location'][_0x516dad(0x37a)]);_0x1fe577[_0x516dad(0x207)][_0x516dad(0x2c8)](_0x4c18df),_0x1d7f52?window['history'][_0x516dad(0x2c6)]('','',_0x1fe577[_0x516dad(0x3c9)]()):window['history'][_0x516dad(0x494)]('','',_0x1fe577[_0x516dad(0x3c9)]());}[_0x4b1ec3(0x19d)](_0x2d6004){const _0x407c03=_0x4b1ec3;var _0x48c85b;return(_0x48c85b=new URL(window[_0x407c03(0x4ac)][_0x407c03(0x37a)])[_0x407c03(0x207)]['get'](_0x2d6004))!=null?_0x48c85b:void 0x0;}}const _0xcbaa6b=_0x4b1ec3(0x42a),_0x291502='collab-text-range-',_0x50983a=0x6,_0x7c9703=1.5,_0x4f4c10=0x4,_0x55bd9f=1.5,_0x973d6=_0x4b1ec3(0x20b);class _0x4f6cb4{constructor(_0x442033,_0x377f38,_0xa7c3f7,_0x14390f){const _0x6f1005=_0x4b1ec3;_0x5d8027(this,_0x6f1005(0x16b),[]),_0x5d8027(this,_0x6f1005(0x211),null),_0x5d8027(this,_0x6f1005(0x347),null),_0x5d8027(this,'_anchorDot',null),_0x5d8027(this,_0x6f1005(0x394),null),_0x5d8027(this,_0x6f1005(0x277),null),(this[_0x6f1005(0x1a2)]=_0x442033,this[_0x6f1005(0x4d6)]=_0x377f38,this['_docSkeleton']=_0xa7c3f7,this[_0x6f1005(0x1b4)]=_0x14390f,this[_0x6f1005(0x4dc)]());}set[_0x4b1ec3(0x2a7)](_0x510967){const _0x4e6989=_0x4b1ec3;_0x510967?(this[_0x4e6989(0x4cf)]&&this['_anchorDot']['hide'](),this[_0x4e6989(0x347)]&&this[_0x4e6989(0x347)][_0x4e6989(0x42c)]()):(this[_0x4e6989(0x4cf)]&&this[_0x4e6989(0x4cf)][_0x4e6989(0x42c)](),this[_0x4e6989(0x347)]&&this[_0x4e6989(0x347)][_0x4e6989(0x1e9)]());}['dispose'](){const _0x353da1=_0x4b1ec3;for(const _0x468bb7 of this[_0x353da1(0x16b)])_0x468bb7[_0x353da1(0x3f5)]();this[_0x353da1(0x347)]&&this[_0x353da1(0x347)][_0x353da1(0x3f5)](),this['_anchorDot']&&this[_0x353da1(0x4cf)][_0x353da1(0x3f5)](),this['_anchor']&&this[_0x353da1(0x211)][_0x353da1(0x3f5)](),this[_0x353da1(0x277)]&&this[_0x353da1(0x277)]();}[_0x4b1ec3(0x4dc)](){const _0x4eb724=_0x4b1ec3,{_docSkeleton:_0x4d2da8,_document:_0x188ce0}=this,{color:_0xb2b2b8,name:_0x35d4bf,ranges:_0x40a437}=this[_0x4eb724(0x1a2)],_0x28cbc2=_0x188ce0['getOffsetConfig'](),{docsLeft:_0x31c5fe,docsTop:_0x4f6b14}=_0x28cbc2,_0x35cd2a=new _0x4ec763[(_0x4eb724(0x416))](_0x28cbc2,_0x4d2da8);for(const {startOffset:_0x4e5cd7,endOffset:_0x355f36,collapsed:_0x13a0de,isActive:_0x1dfc0e}of _0x40a437){const _0x566e15=_0x4d2da8[_0x4eb724(0x160)](_0x4e5cd7),_0x3479fa=_0x4d2da8['findNodePositionByCharIndex'](_0x355f36);if(_0x1dfc0e){const {contentBoxPointGroup:_0x2f7317}=_0x35cd2a['getRangePointData'](_0x3479fa,_0x3479fa);if(_0x2f7317[_0x4eb724(0x2b7)]===0x0)continue;this[_0x4eb724(0x440)](_0xb2b2b8,_0x2f7317,_0x31c5fe,_0x4f6b14,_0x35d4bf),this[_0x4eb724(0x277)]=this['_handleHover']();}if(!_0x13a0de){const {contentBoxPointGroup:_0x155913}=_0x35cd2a[_0x4eb724(0x210)](_0x566e15,_0x3479fa);if(_0x155913[_0x4eb724(0x2b7)]===0x0)continue;this[_0x4eb724(0x49a)](_0xb2b2b8,_0x155913,_0x31c5fe,_0x4f6b14);}}}[_0x4b1ec3(0x440)](_0x87fd8e,_0x23b7d9,_0x30cb7e,_0x38e409,_0x3b6f13){const _0x27c9f1=_0x4b1ec3,_0x468c24=this[_0x27c9f1(0x134)](_0x23b7d9),{left:_0x21834f,top:_0xb44fc,height:_0xfa2c76}=_0x468c24,_0xc23423=this[_0x27c9f1(0x322)](),_0x466174=_0x55bd9f/_0xc23423,_0x4792b2=new _0x4ec763[(_0x27c9f1(0x43f))](_0xcbaa6b+_0x495bbc[_0x27c9f1(0x3d6)][_0x27c9f1(0x272)](_0x50983a),{'left':_0x21834f+_0x30cb7e-_0x466174,'top':_0xb44fc+_0x38e409,'height':_0xfa2c76,'width':_0x7c9703,'fill':_0x87fd8e||_0x4ec763[_0x27c9f1(0x423)](_0x495bbc[_0x27c9f1(0x1a4)]['black'],0x0),'strokeWidth':_0x466174,'stroke':_0x973d6,'evented':!0x0});this[_0x27c9f1(0x211)]=_0x4792b2,this[_0x27c9f1(0x4d6)][_0x27c9f1(0x1fb)](_0x4792b2,_0x4ec763[_0x27c9f1(0x25e)]);const _0x43ff3b=new _0x4ec763['Rect'](_0xcbaa6b+_0x495bbc[_0x27c9f1(0x3d6)][_0x27c9f1(0x272)](_0x50983a),{'left':_0x21834f+_0x30cb7e-_0x466174,'top':_0xb44fc+_0x38e409-_0x4f4c10/0x2,'height':_0x4f4c10,'width':_0x4f4c10,'fill':_0x87fd8e||_0x4ec763[_0x27c9f1(0x423)](_0x495bbc[_0x27c9f1(0x1a4)][_0x27c9f1(0x469)],0x0),'strokeWidth':0x0,'stroke':_0x87fd8e||_0x4ec763[_0x27c9f1(0x423)](_0x495bbc[_0x27c9f1(0x1a4)][_0x27c9f1(0x469)],0x0),'evented':!0x1});this['_anchorDot']=_0x43ff3b,this[_0x27c9f1(0x4d6)][_0x27c9f1(0x1fb)](_0x43ff3b,_0x4ec763[_0x27c9f1(0x25e)]);const _0x183c87=new _0x3aa103(_0xcbaa6b+_0x495bbc[_0x27c9f1(0x3d6)][_0x27c9f1(0x272)](_0x50983a),{'left':_0x21834f+_0x30cb7e-_0x466174,'top':_0xb44fc+_0x38e409-_0x13f80a,'text':_0x3b6f13,'color':_0x87fd8e});this[_0x27c9f1(0x347)]=_0x183c87,this[_0x27c9f1(0x4d6)][_0x27c9f1(0x1fb)](_0x183c87,_0x4ec763[_0x27c9f1(0x25e)]),this['_hover']=!0x1;}[_0x4b1ec3(0x226)](){const _0x514fc6=_0x4b1ec3,_0x60bc92=this[_0x514fc6(0x211)]['onPointerEnter$'][_0x514fc6(0x2b9)](()=>{const _0x5cbd57=_0x514fc6;this[_0x5cbd57(0x2a7)]=!0x0;}),_0x1b6a8b=this[_0x514fc6(0x211)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x34655e=_0x514fc6;this[_0x34655e(0x394)]&&clearTimeout(this[_0x34655e(0x394)]),this['_hideTimer']=setTimeout(()=>{const _0x5a95ba=_0x34655e;this[_0x5a95ba(0x2a7)]=!0x1;},0x7d0);});return()=>{const _0x40c0f1=_0x514fc6;_0x60bc92[_0x40c0f1(0x22e)](),_0x1b6a8b[_0x40c0f1(0x22e)]();};}[_0x4b1ec3(0x49a)](_0x1ebc46,_0x22311a,_0x145227,_0xe714f3){const _0x3348b8=_0x4b1ec3,_0x54f134=new _0x495bbc[(_0x3348b8(0x40d))](_0x1ebc46)[_0x3348b8(0x171)](0.2)[_0x3348b8(0x3ca)](),_0x55e272=new _0x4ec763[(_0x3348b8(0x16d))](_0x291502+_0x495bbc[_0x3348b8(0x3d6)][_0x3348b8(0x272)](_0x50983a),{'pointsGroup':_0x22311a,'fill':_0x54f134||_0x4ec763[_0x3348b8(0x423)](_0x495bbc['COLORS']['black'],0.2),'left':_0x145227,'top':_0xe714f3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3348b8(0x16b)][_0x3348b8(0x38a)](_0x55e272),this[_0x3348b8(0x4d6)]['addObject'](_0x55e272,_0x4ec763[_0x3348b8(0x25e)]);}[_0x4b1ec3(0x134)](_0x2e181e){const _0x45b283=_0x2e181e[0x0],_0x5104cd=_0x45b283[0x0],_0x5e07db=_0x45b283[0x2],{x:_0x104818,y:_0x349af0}=_0x5104cd,{x:_0x515966,y:_0x4e85ae}=_0x5e07db;return{'left':_0x104818,'top':_0x349af0,'width':_0x515966-_0x104818,'height':_0x4e85ae-_0x349af0};}[_0x4b1ec3(0x322)](){const _0x3cc316=_0x4b1ec3,{scaleX:_0x3c1594,scaleY:_0x296953}=this[_0x3cc316(0x4d6)][_0x3cc316(0x4f8)]();return Math[_0x3cc316(0x4b3)](_0x3c1594,_0x296953);}}var _0x360f05=Object[_0x4b1ec3(0x356)],_0x189d16=Object[_0x4b1ec3(0x507)],_0x22c1ed=(_0x2ec8c6,_0x3e3e3f,_0x545594,_0x80254d)=>{const _0x3a5661=_0x4b1ec3;for(var _0x42b52c=_0x80254d>0x1?void 0x0:_0x80254d?_0x189d16(_0x3e3e3f,_0x545594):_0x3e3e3f,_0x46d8ac=_0x2ec8c6[_0x3a5661(0x2b7)]-0x1,_0x13f007;_0x46d8ac>=0x0;_0x46d8ac--)(_0x13f007=_0x2ec8c6[_0x46d8ac])&&(_0x42b52c=(_0x80254d?_0x13f007(_0x3e3e3f,_0x545594,_0x42b52c):_0x13f007(_0x42b52c))||_0x42b52c);return _0x80254d&&_0x42b52c&&_0x360f05(_0x3e3e3f,_0x545594,_0x42b52c),_0x42b52c;},_0x69e2ef=(_0x2fcbec,_0x1003b9)=>(_0x546fdf,_0x5f3c8b)=>_0x1003b9(_0x546fdf,_0x5f3c8b,_0x2fcbec);let _0x1f4c2a=class extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(_0x1ae1ec,_0x34d711,_0x2da1fb,_0x135201,_0x1a2bf7){const _0xc633be=_0x4b1ec3;super(),_0x5d8027(this,_0xc633be(0x138),[]),(this[_0xc633be(0x175)]=_0x1ae1ec,this[_0xc633be(0x352)]=_0x34d711,this[_0xc633be(0x47e)]=_0x2da1fb,this[_0xc633be(0x2cc)]=_0x135201,this['_themeService']=_0x1a2bf7,this[_0xc633be(0x468)]());}[_0x4b1ec3(0x468)](){const _0x57acfb=_0x4b1ec3;this['_docSkeletonManagerService'][_0x57acfb(0x1f1)][_0x57acfb(0x377)](_0x3e7fcd['takeUntil'](this['dispose$']),_0x3e7fcd[_0x57acfb(0x184)](_0x3ba907=>{const _0x5da050=_0x57acfb;if(_0x3ba907){const _0xe743d8=_0x3ba907[_0x5da050(0x461)]()[_0x5da050(0x4a7)]()[_0x5da050(0x317)]();return _0x11b67e[_0x5da050(0x1d9)](this[_0x5da050(0x175)][_0x5da050(0x2c5)](_0xe743d8),this[_0x5da050(0x30c)][_0x5da050(0x43c)])[_0x5da050(0x377)](_0x3e7fcd[_0x5da050(0x270)](([_0x4b0706,_0x5df87c])=>({'skeleton':_0x3ba907,'cursors':[..._0x4b0706['values']()][_0x5da050(0x18e)](_0x10eecb=>({..._0x10eecb,'color':_0x5df87c[_0x10eecb[_0x5da050(0x39c)]]}))})));}return _0x11b67e['of']({'skeleton':null,'cursors':[]});}))[_0x57acfb(0x43a)](({skeleton:_0x5067c4,cursors:_0x4355db})=>{const _0x959266=_0x57acfb;this['_removeCollabCursors'](),_0x5067c4&&this[_0x959266(0x2f1)](_0x5067c4,_0x4355db);});}[_0x4b1ec3(0x2f1)](_0xac484b,_0x44567b){const _0x3d5a88=_0x4b1ec3,_0x53c69e=this[_0x3d5a88(0x4e4)]();if(_0x53c69e==null)return;const {scene:_0x2c7bfb,document:_0x2689cd}=_0x53c69e,_0x2ffcf8=_0x44567b[_0x3d5a88(0x270)](_0x1ee751=>new _0x4f6cb4(_0x1ee751,_0x2c7bfb,_0xac484b,_0x2689cd));this[_0x3d5a88(0x138)]=_0x2ffcf8;}[_0x4b1ec3(0x14b)](){const _0x3a1d23=_0x4b1ec3;this[_0x3a1d23(0x138)]['forEach'](_0x27b2c3=>_0x27b2c3['dispose']()),this[_0x3a1d23(0x138)]=[];}[_0x4b1ec3(0x4e4)](){const _0x1aaa0d=_0x4b1ec3;return _0x257327[_0x1aaa0d(0x3c1)](this[_0x1aaa0d(0x352)],this[_0x1aaa0d(0x47e)]);}};_0x1f4c2a=_0x22c1ed([_0x495bbc[_0x4b1ec3(0x34d)](_0x495bbc['LifecycleStages']['Steady'],_0x1f4c2a),_0x69e2ef(0x0,_0xff0938['Inject'](_0x5cab36)),_0x69e2ef(0x1,_0x495bbc[_0x4b1ec3(0x216)]),_0x69e2ef(0x2,_0x4ec763[_0x4b1ec3(0x4f6)]),_0x69e2ef(0x3,_0xff0938[_0x4b1ec3(0x292)](_0x257327[_0x4b1ec3(0x510)])),_0x69e2ef(0x4,_0xff0938['Inject'](_0x495bbc[_0x4b1ec3(0x4ef)]))],_0x1f4c2a);var _0x1a74a=Object[_0x4b1ec3(0x356)],_0x127d33=Object[_0x4b1ec3(0x507)],_0x458385=(_0x4432e9,_0x3d5595,_0x4277fd,_0x2081e6)=>{const _0x8e635=_0x4b1ec3;for(var _0x292256=_0x2081e6>0x1?void 0x0:_0x2081e6?_0x127d33(_0x3d5595,_0x4277fd):_0x3d5595,_0x50b7d0=_0x4432e9[_0x8e635(0x2b7)]-0x1,_0x57a657;_0x50b7d0>=0x0;_0x50b7d0--)(_0x57a657=_0x4432e9[_0x50b7d0])&&(_0x292256=(_0x2081e6?_0x57a657(_0x3d5595,_0x4277fd,_0x292256):_0x57a657(_0x292256))||_0x292256);return _0x2081e6&&_0x292256&&_0x1a74a(_0x3d5595,_0x4277fd,_0x292256),_0x292256;},_0x2f94ff=(_0x4e70e3,_0x51d8d4)=>(_0x3165b3,_0x23e328)=>_0x51d8d4(_0x3165b3,_0x23e328,_0x4e70e3);let _0x390463=class{constructor(_0x2c4ed9,_0x4a4157,_0x2c79f0){const _0xe3ce59=_0x4b1ec3;this['_configService']=_0x2c4ed9,this[_0xe3ce59(0x204)]=_0x4a4157,this[_0xe3ce59(0x1db)]=_0x2c79f0,this[_0xe3ce59(0x228)]();}[_0x4b1ec3(0x228)](){const _0x1b4d50=_0x4b1ec3;this[_0x1b4d50(0x204)][_0x1b4d50(0x326)]({'priority':0x1,'interceptor':(_0x4ce9dd,_0x27b629)=>_0x27b629(_0x4ce9dd)[_0x1b4d50(0x377)](_0x11b67e[_0x1b4d50(0x2c0)](async _0xfe62ad=>{const _0x412cb5=_0x1b4d50,_0xd6008b=_0xfe62ad;if(_0xd6008b[_0x412cb5(0x465)]===0x191&&window[_0x412cb5(0x307)](this[_0x412cb5(0x1db)]['t'](_0x412cb5(0x403)))){const _0x55c896=window[_0x412cb5(0x20f)](window[_0x412cb5(0x4ac)][_0x412cb5(0x37a)]);window['location'][_0x412cb5(0x37a)]=this[_0x412cb5(0x4c9)]()+'?url='+_0x55c896;}return _0xd6008b;}))});}['_getLoginPath'](){const _0x55f523=_0x4b1ec3;var _0x422831;return(_0x422831=this[_0x55f523(0x313)][_0x55f523(0x1b6)](_0x517cd6))!=null?_0x422831:_0x5d76ae;}};_0x390463=_0x458385([_0x2f94ff(0x0,_0x495bbc[_0x4b1ec3(0x2d6)]),_0x2f94ff(0x1,_0xff0938['Inject'](_0x19613[_0x4b1ec3(0x3a5)])),_0x2f94ff(0x2,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc[_0x4b1ec3(0x1f4)]))],_0x390463);var _0x5424ac=Object[_0x4b1ec3(0x356)],_0x4be737=Object[_0x4b1ec3(0x507)],_0x5b688e=(_0x22a792,_0x598c32,_0x1fbc4d,_0x56d31e)=>{for(var _0x12199f=_0x56d31e>0x1?void 0x0:_0x56d31e?_0x4be737(_0x598c32,_0x1fbc4d):_0x598c32,_0x368435=_0x22a792['length']-0x1,_0x112a01;_0x368435>=0x0;_0x368435--)(_0x112a01=_0x22a792[_0x368435])&&(_0x12199f=(_0x56d31e?_0x112a01(_0x598c32,_0x1fbc4d,_0x12199f):_0x112a01(_0x12199f))||_0x12199f);return _0x56d31e&&_0x12199f&&_0x5424ac(_0x598c32,_0x1fbc4d,_0x12199f),_0x12199f;},_0x4c56c3=(_0x3907e6,_0x8c32a1)=>(_0x5015ce,_0x13dc65)=>_0x8c32a1(_0x5015ce,_0x13dc65,_0x3907e6);const _0x43d000=_0x4b1ec3(0x44f),_0x17ed8f=_0x4b1ec3(0x446);_0x99db31['AuthzIoHttpService']=class extends _0x495bbc[_0x4b1ec3(0x424)]{constructor(_0x1f5266,_0xddf039){const _0x5626e1=_0x4b1ec3;super(),this[_0x5626e1(0x3d2)]=_0x1f5266,this['_configService']=_0xddf039,this['_initMergeInterceptor']();}[_0x4b1ec3(0x199)](){const _0x6f2a75=_0x4b1ec3,_0x4ab701=this;this['disposeWithMe'](this[_0x6f2a75(0x3d2)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x19613['MergeInterceptorFactory']({'isMatch'(_0x26d6b8){const _0x5ef8fa=_0x6f2a75;var _0x5cee27;if(_0x26d6b8[_0x5ef8fa(0x1d1)]==='POST'&&((_0x5cee27=_0x26d6b8[_0x5ef8fa(0x2fb)])!=null&&_0x5cee27[_0x5ef8fa(0x25b)])){const {objectID:_0x129bdb,objectType:_0x6ac252}=_0x26d6b8['requestParams'][_0x5ef8fa(0x25b)]||{};if(!_0x129bdb||_0x6ac252===void 0x0)return!0x1;const _0x140a25=_0x4ab701[_0x5ef8fa(0x3c7)]()+'/'+_0x6ac252+_0x5ef8fa(0x215)+_0x129bdb+_0x5ef8fa(0x43e);if(_0x26d6b8[_0x5ef8fa(0x234)]===_0x140a25)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3724fc){const _0x313923=_0x6f2a75;var _0x2bc371;return(_0x2bc371=_0x3724fc[_0x313923(0x2fb)])==null?void 0x0:_0x2bc371[_0x313923(0x25b)];},'mergeParamsToRequest'(_0x3e841a,_0x5f3098){const _0x3ab47f=_0x6f2a75,_0x5c716e=_0x4ab701[_0x3ab47f(0x3c7)]()+_0x3ab47f(0x46d),_0x2db4c7=_0x3e841a[_0x3ab47f(0x361)]((_0xb49c12,_0x129f2f)=>{const _0x42ab23=_0x3ab47f,{unitID:_0x30acf9,objectID:_0x5acc32,objectType:_0x2b7e38,actions:_0x36aeb8}=_0x129f2f;return _0xb49c12[_0x30acf9]||(_0xb49c12[_0x30acf9]={}),_0xb49c12[_0x30acf9][_0x5acc32]||(_0xb49c12[_0x30acf9][_0x5acc32]={'objectID':_0x5acc32,'objectType':_0x2b7e38,'actions':[]}),_0xb49c12[_0x30acf9][_0x5acc32][_0x42ab23(0x274)][_0x42ab23(0x38a)](..._0x36aeb8),_0xb49c12;},{}),_0x4fbff7=[];for(const _0x58c41b in _0x2db4c7)for(const _0x25c1ff in _0x2db4c7[_0x58c41b]){const {actions:_0x3364c7,objectType:_0x4e1344}=_0x2db4c7[_0x58c41b][_0x25c1ff],_0x4721f9=[...new Set(_0x3364c7)];_0x4fbff7[_0x3ab47f(0x38a)]({'unitID':_0x58c41b,'objectID':_0x25c1ff,'objectType':_0x4e1344,'actions':_0x4721f9});}return new _0x19613['HTTPRequest'](_0x3ab47f(0x16f),_0x5c716e,{'headers':_0x5f3098[_0x3ab47f(0x36f)],'withCredentials':_0x5f3098['withCredentials'],'responseType':_0x5f3098['responseType'],'body':{'requests':_0x4fbff7}});}},{'distributeResult'(_0x509897,_0x3d69d8){const _0x44a7ac=_0x6f2a75,{objectActions:_0x4c7923}=_0x509897;return _0x3d69d8[_0x44a7ac(0x270)](_0x3f90e9=>{const _0x262075=_0x44a7ac,{unitID:_0x32bde6,objectID:_0x248806,actions:_0x19b3c7}=_0x3f90e9,_0x2ab6f4=_0x4c7923[_0x262075(0x26f)](_0x58b362=>_0x58b362[_0x262075(0x391)]===_0x32bde6&&_0x58b362[_0x262075(0x2e5)]===_0x248806),_0x3ee38c=_0x19b3c7[_0x262075(0x270)](_0x3d0826=>_0x2ab6f4==null?void 0x0:_0x2ab6f4['actions'][_0x262075(0x26f)](_0x1d1da7=>_0x1d1da7[_0x262075(0x2ce)]===_0x3d0826))[_0x262075(0x319)](_0x57e5ff=>!!_0x57e5ff);return{'config':_0x3f90e9,'result':{'actions':_0x3ee38c,'error':_0x509897[_0x262075(0x512)]}};});}})}));}[_0x4b1ec3(0x3c7)](){const _0xda56ce=_0x4b1ec3;var _0x57080d;return(_0x57080d=this[_0xda56ce(0x313)][_0xda56ce(0x1b6)](_0x43d000))!=null?_0x57080d:_0x17ed8f;}async[_0x4b1ec3(0x169)](_0x46725c){const _0x2011a6=_0x4b1ec3,_0x2df378=this[_0x2011a6(0x3c7)]()+'/'+_0x46725c['objectType']+_0x2011a6(0x402);return(await this[_0x2011a6(0x3d2)][_0x2011a6(0x246)](_0x2df378,{'body':_0x46725c}))[_0x2011a6(0x25b)][_0x2011a6(0x2e5)]||'';}async[_0x4b1ec3(0x4e2)](_0x6c3956){const _0x82a804=_0x4b1ec3,_0x2660b7=this[_0x82a804(0x3c7)]()+_0x82a804(0x174);return(await this[_0x82a804(0x3d2)][_0x82a804(0x246)](_0x2660b7,{'body':_0x6c3956}))[_0x82a804(0x25b)]['objects'];}async[_0x4b1ec3(0x1a6)](_0x4592e8){const _0x348f43=_0x4b1ec3,_0x721940=this[_0x348f43(0x3c7)]()+'/'+_0x4592e8[_0x348f43(0x4d4)]+_0x348f43(0x215)+_0x4592e8[_0x348f43(0x2e5)];await this[_0x348f43(0x3d2)][_0x348f43(0x1b9)](_0x721940,{'body':_0x4592e8});}async['allowed'](_0x12d542){const _0x49c9fe=_0x4b1ec3,_0x2016da=this[_0x49c9fe(0x3c7)]()+'/'+_0x12d542['objectType']+'/object/'+_0x12d542[_0x49c9fe(0x2e5)]+_0x49c9fe(0x43e);return(await this['_HTTPService'][_0x49c9fe(0x246)](_0x2016da,{'body':_0x12d542}))[_0x49c9fe(0x25b)]['actions'];}async[_0x4b1ec3(0x37b)](_0x2be868){const _0x400794=_0x4b1ec3,_0x44acab=this[_0x400794(0x3c7)]()+_0x400794(0x46d);return(await this[_0x400794(0x3d2)][_0x400794(0x246)](_0x44acab,{'body':{'requests':_0x2be868}}))[_0x400794(0x25b)][_0x400794(0x1c0)];}async[_0x4b1ec3(0x4d2)](_0x416624){const _0x48a3e1=_0x4b1ec3,_0x1ff111=this[_0x48a3e1(0x3c7)]()+'/'+_0x416624[_0x48a3e1(0x4d4)]+_0x48a3e1(0x333),_0x358501=await this[_0x48a3e1(0x3d2)]['post'](_0x1ff111,{'body':_0x416624});return{'roles':_0x358501[_0x48a3e1(0x25b)][_0x48a3e1(0x350)],'actions':_0x358501[_0x48a3e1(0x25b)][_0x48a3e1(0x274)]};}async[_0x4b1ec3(0x4e8)](_0x3410a9){const _0x4c48aa=_0x4b1ec3,_0x12c901=this['_getAPIPrefixPath']()+_0x4c48aa(0x1c1);await this['_HTTPService']['delete'](_0x12c901,{'params':{'collaboratorID':_0x3410a9['collaboratorID'],'objectID':_0x3410a9[_0x4c48aa(0x2e5)],'unitID':_0x3410a9[_0x4c48aa(0x391)]}});}async[_0x4b1ec3(0x513)](_0x635502){const _0x279af8=_0x4b1ec3,_0x293a71=this[_0x279af8(0x3c7)]()+'/collaborator';await this[_0x279af8(0x3d2)][_0x279af8(0x25f)](_0x293a71,{'body':_0x635502});}async[_0x4b1ec3(0x482)](_0x4b8076){const _0x4d04bb=_0x4b1ec3,_0x4b5b59=this[_0x4d04bb(0x3c7)]()+_0x4d04bb(0x1c1);await this[_0x4d04bb(0x3d2)][_0x4d04bb(0x246)](_0x4b5b59,{'body':_0x4b8076});}async[_0x4b1ec3(0x454)](_0x286cb5){const _0x5c1ed3=_0x4b1ec3,_0x19a33c=this[_0x5c1ed3(0x3c7)]()+_0x5c1ed3(0x1c1);return(await this[_0x5c1ed3(0x3d2)][_0x5c1ed3(0x4ce)](_0x19a33c,{'params':{'objectID':_0x286cb5['objectID'],'unitID':_0x286cb5[_0x5c1ed3(0x391)]}}))[_0x5c1ed3(0x25b)]['collaborators'];}async[_0x4b1ec3(0x4e5)](_0x29401e){const _0xb7e161=_0x4b1ec3,_0x31cd1b=this[_0xb7e161(0x3c7)]()+'/collaborator';await this[_0xb7e161(0x3d2)][_0xb7e161(0x1b9)](_0x31cd1b,{'body':_0x29401e});}},_0x99db31[_0x4b1ec3(0x3ee)]=_0x5b688e([_0x4c56c3(0x0,_0xff0938[_0x4b1ec3(0x292)](_0x19613[_0x4b1ec3(0x3a5)])),_0x4c56c3(0x1,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc[_0x4b1ec3(0x2d6)]))],_0x99db31[_0x4b1ec3(0x3ee)]);var _0x3adfc6=Object['defineProperty'],_0x5d4cf3=Object[_0x4b1ec3(0x507)],_0x3f518c=(_0x41f986,_0x4e32d6,_0x3dfc30,_0x4d2ce9)=>{const _0x5ebabb=_0x4b1ec3;for(var _0x223298=_0x4d2ce9>0x1?void 0x0:_0x4d2ce9?_0x5d4cf3(_0x4e32d6,_0x3dfc30):_0x4e32d6,_0x4519b9=_0x41f986[_0x5ebabb(0x2b7)]-0x1,_0x143f29;_0x4519b9>=0x0;_0x4519b9--)(_0x143f29=_0x41f986[_0x4519b9])&&(_0x223298=(_0x4d2ce9?_0x143f29(_0x4e32d6,_0x3dfc30,_0x223298):_0x143f29(_0x223298))||_0x223298);return _0x4d2ce9&&_0x223298&&_0x3adfc6(_0x4e32d6,_0x3dfc30,_0x223298),_0x223298;},_0x4b886c=(_0x1654d2,_0x44d116)=>(_0x4f57bf,_0x4e3d7f)=>_0x44d116(_0x4f57bf,_0x4e3d7f,_0x1654d2);const _0x35720e=[_0x4b1ec3(0x2ec),_0x4b1ec3(0x1c8),_0x4b1ec3(0x4f4),_0x4b1ec3(0x299),_0x4b1ec3(0x432)],_0x535363=0x5*0x400*0x400,_0x1c7ae2=_0x4b1ec3(0x183),_0x410359=_0x4b1ec3(0x200),_0x364179=_0x4b1ec3(0x450),_0x461ff5='/universer-api/file/{fileID}/sign-url';_0x99db31['ImageIoService']=class{constructor(_0x332d3c,_0x30de98){const _0x1bd7e2=_0x4b1ec3;_0x5d8027(this,_0x1bd7e2(0x1e1),0x0),_0x5d8027(this,_0x1bd7e2(0x360),new _0x11b67e[(_0x1bd7e2(0x486))]()),_0x5d8027(this,_0x1bd7e2(0x3e9),this[_0x1bd7e2(0x360)]),_0x5d8027(this,_0x1bd7e2(0x36e),new Map()),(this[_0x1bd7e2(0x204)]=_0x332d3c,this[_0x1bd7e2(0x313)]=_0x30de98);}[_0x4b1ec3(0x1f8)](_0x70feff){const _0x332140=_0x4b1ec3;this[_0x332140(0x1e1)]=_0x70feff,this['_change$'][_0x332140(0x2b2)](_0x70feff);}[_0x4b1ec3(0x3bd)](_0x2fe406,_0x3ca77f){const _0x1e3f53=_0x4b1ec3;if(_0x3ca77f===_0x2369bd[_0x1e3f53(0x50f)][_0x1e3f53(0x220)]){const _0x17b4ff=new Image();return _0x17b4ff[_0x1e3f53(0x2a8)]=_0x2fe406,_0x17b4ff;}return this['_imageSourceCache'][_0x1e3f53(0x4ce)](_0x2fe406);}[_0x4b1ec3(0x2c2)](_0x5858e5,_0x25a3e2,_0x459bd7){const _0x22cd5e=_0x4b1ec3;_0x25a3e2===_0x2369bd['ImageSourceType']['BASE64']||_0x459bd7==null||this[_0x22cd5e(0x36e)]['set'](_0x5858e5,_0x459bd7);}async['getImage'](_0x44083e){const _0x171d3a=_0x4b1ec3;try{const _0x40cd0d=this[_0x171d3a(0x22f)](this[_0x171d3a(0x493)](),''+_0x44083e),_0x438314=(await this[_0x171d3a(0x204)][_0x171d3a(0x4ce)](_0x40cd0d))[_0x171d3a(0x25b)];return _0x438314[_0x171d3a(0x512)]&&_0x438314[_0x171d3a(0x512)][_0x171d3a(0x3f0)]===_0x357dad['OK']?Promise[_0x171d3a(0x159)](_0x438314[_0x171d3a(0x234)]):Promise[_0x171d3a(0x49f)](_0x438314['error']);}catch(_0x59acba){return Promise[_0x171d3a(0x49f)](_0x59acba);}}async['saveImage'](_0x5bebd9){const _0x5c6319=_0x4b1ec3;let _0x373e33='';if(!_0x35720e[_0x5c6319(0x18f)](_0x5bebd9[_0x5c6319(0x2fc)]))return this[_0x5c6319(0x48f)](),Promise[_0x5c6319(0x49f)](new Error(_0x2369bd['ImageUploadStatusType']['ERROR_IMAGE_TYPE']));if(_0x5bebd9[_0x5c6319(0x3aa)]>_0x535363)return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x2369bd[_0x5c6319(0x462)][_0x5c6319(0x342)]));try{const _0x3a7952=new FormData();_0x3a7952[_0x5c6319(0x40c)](_0x5c6319(0x437),_0x5bebd9);const _0x1f425c=this['_getUploadFileURL']()+_0x5c6319(0x231)+_0x5bebd9[_0x5c6319(0x3aa)][_0x5c6319(0x3c9)](),_0xd5a7a2=await(await fetch(_0x1f425c,{'method':_0x5c6319(0x16f),'body':_0x3a7952}))[_0x5c6319(0x408)]();if(typeof _0xd5a7a2[_0x5c6319(0x148)]!=_0x5c6319(0x300))return this[_0x5c6319(0x48f)](),Promise[_0x5c6319(0x49f)](new Error(_0x2369bd['ImageUploadStatusType']['ERROR_IMAGE']));_0x373e33=_0xd5a7a2[_0x5c6319(0x148)];}catch{return this[_0x5c6319(0x48f)](),Promise[_0x5c6319(0x49f)](new Error(_0x2369bd[_0x5c6319(0x462)][_0x5c6319(0x3ec)]));}return new Promise((_0x1807a7,_0x252a2c)=>{const _0x923db9=_0x5c6319,_0x449318=new FileReader();_0x449318[_0x923db9(0x4ec)](_0x5bebd9),_0x449318['onload']=_0x4e12ff=>{const _0x17f6f1=_0x923db9;var _0x5cc8c8;const _0x50134f=(_0x5cc8c8=_0x4e12ff[_0x17f6f1(0x2f4)])==null?void 0x0:_0x5cc8c8[_0x17f6f1(0x255)];if(_0x50134f==null){this[_0x17f6f1(0x48f)](),_0x252a2c(new Error(_0x2369bd[_0x17f6f1(0x462)][_0x17f6f1(0x3ec)]));return;}const _0x231aaa=_0x495bbc['Tools'][_0x17f6f1(0x272)](0x6);_0x1807a7({'imageId':_0x231aaa,'imageSourceType':_0x2369bd[_0x17f6f1(0x50f)][_0x17f6f1(0x28e)],'source':_0x373e33,'base64Cache':_0x50134f,'status':_0x2369bd[_0x17f6f1(0x462)]['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x4b1ec3(0x311)](){const _0x1884a6=_0x4b1ec3;var _0x249383;return(_0x249383=this[_0x1884a6(0x313)]['getConfig'](_0x1c7ae2))!=null?_0x249383:_0x410359;}['_getSignURL'](){const _0x20092c=_0x4b1ec3;var _0x4e0155;return(_0x4e0155=this['_configService'][_0x20092c(0x1b6)](_0x364179))!=null?_0x4e0155:_0x461ff5;}['_replaceFileID'](_0x3ce3f5,_0x526ead){return _0x3ce3f5['replace']('{fileID}',_0x526ead);}[_0x4b1ec3(0x48f)](){const _0x520126=_0x4b1ec3;this[_0x520126(0x1e1)]-=0x1,this[_0x520126(0x360)][_0x520126(0x2b2)](this['_waitCount']);}},_0x99db31['ImageIoService']=_0x3f518c([_0x4b886c(0x0,_0xff0938['Inject'](_0x19613['HTTPService'])),_0x4b886c(0x1,_0x495bbc[_0x4b1ec3(0x2d6)])],_0x99db31[_0x4b1ec3(0x471)]);var _0x8f1bb8=Object['defineProperty'],_0xc723cd=Object['getOwnPropertyDescriptor'],_0x5e4537=(_0xe7c490,_0x1445aa,_0x82f64a,_0x4cb76b)=>{const _0x20dfd7=_0x4b1ec3;for(var _0x380347=_0x4cb76b>0x1?void 0x0:_0x4cb76b?_0xc723cd(_0x1445aa,_0x82f64a):_0x1445aa,_0x398346=_0xe7c490[_0x20dfd7(0x2b7)]-0x1,_0x308741;_0x398346>=0x0;_0x398346--)(_0x308741=_0xe7c490[_0x398346])&&(_0x380347=(_0x4cb76b?_0x308741(_0x1445aa,_0x82f64a,_0x380347):_0x308741(_0x380347))||_0x380347);return _0x4cb76b&&_0x380347&&_0x8f1bb8(_0x1445aa,_0x82f64a,_0x380347),_0x380347;},_0x1fb876=(_0x556aad,_0x1fa601)=>(_0x250676,_0x54562f)=>_0x1fa601(_0x250676,_0x54562f,_0x556aad);let _0x534e15=class extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(_0x20af53,_0x1afd5c,_0x3530d8,_0x3055ac,_0x43c1ab){const _0x5e3b4c=_0x4b1ec3;super(),this[_0x5e3b4c(0x376)]=_0x20af53,this[_0x5e3b4c(0x352)]=_0x1afd5c,this[_0x5e3b4c(0x245)]=_0x3530d8,this[_0x5e3b4c(0x45b)]=_0x3055ac,this[_0x5e3b4c(0x131)]=_0x43c1ab,this['_initUnitPermissionChange'](),this[_0x5e3b4c(0x413)]();}['_initCloseConn'](){const _0xedf1cd=_0x4b1ec3,_0x592267=async _0x5a288b=>{const _0x154622=_0x2301;(await this[_0x154622(0x45b)][_0x154622(0x269)](_0x5a288b))[_0x154622(0x48b)][_0x154622(0x377)](_0x3e7fcd[_0x154622(0x319)](_0x417323=>_0x417323['eventID']===_0x2a1cda[_0x154622(0x2a0)][_0x154622(0x42d)]),_0x3e7fcd[_0x154622(0x40b)](this[_0x154622(0x26e)]))[_0x154622(0x43a)](_0x47f1e3=>{const _0x575246=_0x154622,_0x17e39e=_0x47f1e3,{reason:_0x425341}=_0x17e39e[_0x575246(0x3cf)];this[_0x575246(0x376)][_0x575246(0x4ce)](_0x510d97[_0x575246(0x3c3)])[_0x575246(0x42c)]({'type':_0x153393[_0x575246(0x4a8)][_0x575246(0x25c)],'content':this[_0x575246(0x131)]['t'](_0x575246(0x47c))+'('+_0x425341+')'}),this[_0x575246(0x245)][_0x575246(0x162)](new _0x344713[(_0x575246(0x17c))](_0x5a288b)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x5a288b);});};_0x11b67e['merge'](this[_0xedf1cd(0x352)][_0xedf1cd(0x251)](_0x495bbc['UniverInstanceType'][_0xedf1cd(0x271)]),this[_0xedf1cd(0x352)][_0xedf1cd(0x251)](_0x495bbc[_0xedf1cd(0x2d8)][_0xedf1cd(0x438)]))[_0xedf1cd(0x377)](_0x3e7fcd[_0xedf1cd(0x270)](_0x4fa6e2=>_0x4fa6e2[_0xedf1cd(0x317)]()),_0x3e7fcd[_0xedf1cd(0x319)](_0x617a29=>!_0x495bbc[_0xedf1cd(0x27b)](_0x617a29)),_0x3e7fcd[_0xedf1cd(0x40b)](this[_0xedf1cd(0x26e)]))[_0xedf1cd(0x43a)](_0x2cb9ef=>{_0x592267(_0x2cb9ef);});}[_0x4b1ec3(0x3f8)](){const _0x339d71=_0x4b1ec3,_0x2e686c=async _0x3be768=>{const _0x3f816c=_0x2301;(await this[_0x3f816c(0x45b)][_0x3f816c(0x269)](_0x3be768))['event$'][_0x3f816c(0x377)](_0x3e7fcd[_0x3f816c(0x319)](_0x1832aa=>_0x1832aa[_0x3f816c(0x2fa)]===_0x2a1cda[_0x3f816c(0x2a0)][_0x3f816c(0x4b2)]),_0x3e7fcd[_0x3f816c(0x40b)](this['dispose$']))[_0x3f816c(0x43a)](_0x2b36d8=>{const _0x3ee250=_0x3f816c,_0x568481=_0x2b36d8,{objectId:_0x266cc4}=_0x568481[_0x3ee250(0x3cf)];_0x266cc4===_0x3be768&&this[_0x3ee250(0x376)][_0x3ee250(0x4ce)](_0x3630b0[_0x3ee250(0x1f7)])[_0x3ee250(0x449)](_0x3be768);});};_0x11b67e[_0x339d71(0x140)](this[_0x339d71(0x352)][_0x339d71(0x251)](_0x495bbc[_0x339d71(0x2d8)]['UNIVER_SHEET']),this[_0x339d71(0x352)][_0x339d71(0x251)](_0x495bbc[_0x339d71(0x2d8)][_0x339d71(0x438)]))['pipe'](_0x3e7fcd[_0x339d71(0x270)](_0x559802=>_0x559802['getUnitId']()),_0x3e7fcd[_0x339d71(0x319)](_0xfb647b=>!_0x495bbc['isInternalEditorID'](_0xfb647b)),_0x3e7fcd[_0x339d71(0x40b)](this[_0x339d71(0x26e)]))[_0x339d71(0x43a)](_0x412939=>{_0x2e686c(_0x412939);});}};_0x534e15=_0x5e4537([_0x495bbc[_0x4b1ec3(0x34d)](_0x495bbc[_0x4b1ec3(0x287)][_0x4b1ec3(0x3e4)],_0x534e15),_0x1fb876(0x0,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0x1fb876(0x1,_0x495bbc['IUniverInstanceService']),_0x1fb876(0x2,_0x495bbc[_0x4b1ec3(0x1b5)]),_0x1fb876(0x3,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x16c)])),_0x1fb876(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc[_0x4b1ec3(0x1f4)]))],_0x534e15);var _0x53bbb4=Object[_0x4b1ec3(0x356)],_0x47f695=Object[_0x4b1ec3(0x507)],_0x3060bf=(_0x224abd,_0x5d0a79,_0x20abac)=>_0x5d0a79 in _0x224abd?_0x53bbb4(_0x224abd,_0x5d0a79,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20abac}):_0x224abd[_0x5d0a79]=_0x20abac,_0x40c6ff=(_0x19e9bf,_0x56eed0,_0x23d594,_0x7157f1)=>{const _0x40fd4e=_0x4b1ec3;for(var _0x21acb=_0x7157f1>0x1?void 0x0:_0x7157f1?_0x47f695(_0x56eed0,_0x23d594):_0x56eed0,_0x46719d=_0x19e9bf[_0x40fd4e(0x2b7)]-0x1,_0x18eb45;_0x46719d>=0x0;_0x46719d--)(_0x18eb45=_0x19e9bf[_0x46719d])&&(_0x21acb=(_0x7157f1?_0x18eb45(_0x56eed0,_0x23d594,_0x21acb):_0x18eb45(_0x21acb))||_0x21acb);return _0x7157f1&&_0x21acb&&_0x53bbb4(_0x56eed0,_0x23d594,_0x21acb),_0x21acb;},_0x192a34=(_0x4bcd1a,_0x59c625)=>(_0x1d9df0,_0x5d67de)=>_0x59c625(_0x1d9df0,_0x5d67de,_0x4bcd1a),_0x125c51=(_0x337fb4,_0x11d6e9,_0x550db5)=>_0x3060bf(_0x337fb4,_0x11d6e9+'',_0x550db5);const _0x29bceb=_0x4b1ec3(0x239);_0x99db31['UniverCollaborationClientPlugin']=class extends _0x495bbc[_0x4b1ec3(0x2bb)]{constructor(_0x25fa93,_0x2c364b,_0x5b2834){const _0x245542=_0x4b1ec3;super(),this[_0x245542(0x2a3)]=_0x25fa93,this[_0x245542(0x38b)]=_0x2c364b,this[_0x245542(0x376)]=_0x5b2834;}['onStarting'](_0xebce75){const _0x50a785=_0x4b1ec3;var _0x3f0f0f,_0x433379,_0x33a6da,_0xa303e0,_0x51cbe2;_0xebce75[_0x50a785(0x4a3)](_0x495bbc[_0x50a785(0x3d4)])&&this[_0x50a785(0x38b)][_0x50a785(0x512)](_0x50a785(0x514),_0x50a785(0x19b));let _0xc30a9c=[[_0x495bbc[_0x50a785(0x3d4)],{'useClass':_0x17eb3b}],[_0x99db31['CollaborationSessionService']],[_0x173474],[_0x19613[_0x50a785(0x3a5)]],[_0x3acd67,{'useClass':_0x387df7}],[_0x384a59],[_0x99db31[_0x50a785(0x4de)]],[_0x19613[_0x50a785(0x515)]],[_0x56fa9d],[_0x2fb5e2],[_0x527642],[_0x4095fc],[_0x390463],[_0x30b255],[_0x534e15],[_0x564797,{'useClass':(_0x433379=(_0x3f0f0f=this[_0x50a785(0x2a3)])==null?void 0x0:_0x3f0f0f[_0x50a785(0x519)])!=null?_0x433379:_0x99db31[_0x50a785(0x28d)]}],[_0x19613[_0x50a785(0x24b)],{'useClass':_0x19613[_0x50a785(0x1c7)]}],[_0x495bbc['ISnapshotServerService'],{'useClass':_0x99db31['SnapshotServerOverHTTPService']}],[_0x495bbc['IAuthzIoService'],{'useClass':_0x99db31[_0x50a785(0x3ee)]}],[_0x2369bd[_0x50a785(0x442)],{'useClass':_0x99db31['ImageIoService']}],[_0x99db31[_0x50a785(0x45c)]],[_0x99db31[_0x50a785(0x425)]],[_0x99db31[_0x50a785(0x430)]],[_0x582d09],[_0x5cab36]];(_0x33a6da=this[_0x50a785(0x2a3)])!=null&&_0x33a6da['enableSingleActiveInstanceLock']&&_0xc30a9c['push']([_0x110bf8,{'useClass':_0x251974}]),((_0xa303e0=this[_0x50a785(0x2a3)])==null?void 0x0:_0xa303e0[_0x50a785(0x36c)])==null||this['_config']['collaborationUniverTypes'][_0x50a785(0x18f)](_0x495bbc['UniverInstanceType']['UNIVER_SHEET'])?_0xc30a9c[_0x50a785(0x38a)]([_0x1712e2]):this[_0x50a785(0x2a3)][_0x50a785(0x36c)][_0x50a785(0x18f)](_0x495bbc['UniverInstanceType'][_0x50a785(0x438)])&&_0xc30a9c[_0x50a785(0x38a)]([_0x1f4c2a]),_0xc30a9c=_0x495bbc[_0x50a785(0x161)](_0xc30a9c,(_0x51cbe2=this[_0x50a785(0x2a3)])==null?void 0x0:_0x51cbe2['override']),_0xc30a9c[_0x50a785(0x14d)](_0x1cec6e=>_0xebce75['add'](_0x1cec6e)),_0xebce75[_0x50a785(0x4ce)](_0x19613[_0x50a785(0x3a5)])[_0x50a785(0x326)]({'priority':0x14,'interceptor':_0x19613['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x50a785(0x34a)]();}[_0x4b1ec3(0x34a)](){const _0x47bc2b=_0x4b1ec3;var _0x3ab676,_0x3cf482;(_0x3ab676=this[_0x47bc2b(0x2a3)])!=null&&_0x3ab676[_0x47bc2b(0x46e)]||this['_injector'][_0x47bc2b(0x4ce)](_0x99db31[_0x47bc2b(0x4de)])[_0x47bc2b(0x477)](),(_0x3cf482=this[_0x47bc2b(0x2a3)])!=null&&_0x3cf482['enableAuthServer']&&this['_injector'][_0x47bc2b(0x4ce)](_0x390463);}},_0x125c51(_0x99db31['UniverCollaborationClientPlugin'],_0x4b1ec3(0x1e0),_0x29bceb),_0x99db31[_0x4b1ec3(0x490)]=_0x40c6ff([_0x495bbc[_0x4b1ec3(0x32e)](_0x2a1cda[_0x4b1ec3(0x188)]),_0x192a34(0x1,_0x495bbc[_0x4b1ec3(0x22c)]),_0x192a34(0x2,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)]))],_0x99db31[_0x4b1ec3(0x490)]),_0x99db31[_0x4b1ec3(0x44f)]=_0x43d000,_0x99db31[_0x4b1ec3(0x436)]=_0x339c6c,_0x99db31[_0x4b1ec3(0x499)]=_0x10840c,_0x99db31[_0x4b1ec3(0x334)]=_0x17c726,_0x99db31[_0x4b1ec3(0x3b0)]=_0x12e239,_0x99db31[_0x4b1ec3(0x35d)]=_0x30b255,_0x99db31['HEARTBEAT_INTERVAL_KEY']=_0x2d4fc5,_0x99db31[_0x4b1ec3(0x419)]=_0x137805,_0x99db31[_0x4b1ec3(0x3d7)]=_0x564797,_0x99db31[_0x4b1ec3(0x1f5)]=_0x3acd67,_0x99db31['LOCAL_CACHE_INTERVAL_KEY']=_0x514191,_0x99db31[_0x4b1ec3(0x4c0)]=_0x517cd6,_0x99db31['SEND_CHANGESET_TIMEOUT_KEY']=_0x432ad5,_0x99db31[_0x4b1ec3(0x241)]=_0xd3e7a0,_0x99db31[_0x4b1ec3(0x2ef)]=_0x53202c,_0x99db31[_0x4b1ec3(0x4a5)]=_0x36bc51,_0x99db31[_0x4b1ec3(0x16a)]=_0x20a6c8,_0x99db31[_0x4b1ec3(0x145)]=_0x387df7,_0x99db31[_0x4b1ec3(0x44d)]=_0x3ee14d,_0x99db31[_0x4b1ec3(0x197)]=_0xbba3c4,Object[_0x4b1ec3(0x356)](_0x99db31,Symbol[_0x4b1ec3(0x39e)],{'value':_0x4b1ec3(0x14c)});}));
|