@univerjs-pro/collaboration-client 1.0.0-beta.1 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2dd0(_0x19487f,_0x5c2d18){_0x19487f=_0x19487f-0xc0;const _0x39dfa4=_0x39df();let _0x2dd0b0=_0x39dfa4[_0x19487f];return _0x2dd0b0;}(function(_0x15e79b,_0x28bfa9){const _0x475340=_0x2dd0,_0x42b35c=_0x15e79b();while(!![]){try{const _0x1f19bd=parseInt(_0x475340(0x365))/0x1+parseInt(_0x475340(0x16e))/0x2+-parseInt(_0x475340(0x29f))/0x3+-parseInt(_0x475340(0x123))/0x4+parseInt(_0x475340(0x1cf))/0x5+-parseInt(_0x475340(0x307))/0x6*(-parseInt(_0x475340(0x379))/0x7)+parseInt(_0x475340(0x143))/0x8;if(_0x1f19bd===_0x28bfa9)break;else _0x42b35c['push'](_0x42b35c['shift']());}catch(_0x3b4d00){_0x42b35c['push'](_0x42b35c['shift']());}}}(_0x39df,0xe7a83),function(_0x427d11,_0x2cd5ff){const _0x2860f5=_0x2dd0;typeof exports==_0x2860f5(0x3c6)&&typeof module<'u'?_0x2cd5ff(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x2860f5(0x1d0)&&define['amd']?define([_0x2860f5(0x32b),_0x2860f5(0x3eb),_0x2860f5(0xe6),_0x2860f5(0x1f3),_0x2860f5(0x15b),_0x2860f5(0x308),_0x2860f5(0x27f),_0x2860f5(0x3a6),'rxjs/operators',_0x2860f5(0x138),_0x2860f5(0x411),_0x2860f5(0x188),_0x2860f5(0x3ad)],_0x2cd5ff):(_0x427d11=typeof globalThis<'u'?globalThis:_0x427d11||self,_0x2cd5ff(_0x427d11[_0x2860f5(0x33f)]={},_0x427d11[_0x2860f5(0x1bf)],_0x427d11[_0x2860f5(0x14d)],_0x427d11[_0x2860f5(0x381)],_0x427d11[_0x2860f5(0x2a4)],_0x427d11['rxjs'],_0x427d11['UniverProtocol'],_0x427d11['UniverTelemetry'],_0x427d11[_0x2860f5(0x308)][_0x2860f5(0x1e4)],_0x427d11[_0x2860f5(0x302)],_0x427d11[_0x2860f5(0x2e5)],_0x427d11[_0x2860f5(0x3b1)],_0x427d11[_0x2860f5(0x225)]));}(this,function(_0x16b920,_0x3d4600,_0x17ede7,_0xc72b83,_0x43c3be,_0x1f9457,_0x3d2f85,_0x327e6c,_0x1756fd,_0x3160c0,_0x4bbb37,_0x90a78a,_0x536602){const _0x473efc=_0x2dd0;Object[_0x473efc(0x345)](_0x16b920,Symbol[_0x473efc(0x38d)],{'value':_0x473efc(0x1e6)});let _0x1f8831='collaboration-client.config',_0x12effe={};function _0x143912(_0x39dafa){const _0x4fefe5=_0x473efc;return JSON[_0x4fefe5(0x317)](_0x39dafa)['length'];}function _0x259b8c(_0x65dc4b){'@babel/helpers - typeof';const _0x5ec490=_0x473efc;return _0x259b8c=typeof Symbol==_0x5ec490(0x1d0)&&typeof Symbol[_0x5ec490(0x222)]==_0x5ec490(0x2ad)?function(_0x463947){return typeof _0x463947;}:function(_0x26b312){const _0xa5cf63=_0x5ec490;return _0x26b312&&typeof Symbol==_0xa5cf63(0x1d0)&&_0x26b312['constructor']===Symbol&&_0x26b312!==Symbol['prototype']?_0xa5cf63(0x2ad):typeof _0x26b312;},_0x259b8c(_0x65dc4b);}function _0x2b1ca1(_0x20baaf,_0x26055e){const _0x971f6d=_0x473efc;if(_0x259b8c(_0x20baaf)!=_0x971f6d(0x3c6)||!_0x20baaf)return _0x20baaf;var _0x5069e1=_0x20baaf[Symbol[_0x971f6d(0x328)]];if(_0x5069e1!==void 0x0){var _0x1c5ac6=_0x5069e1[_0x971f6d(0x107)](_0x20baaf,_0x26055e||'default');if(_0x259b8c(_0x1c5ac6)!=_0x971f6d(0x3c6))return _0x1c5ac6;throw TypeError(_0x971f6d(0x386));}return(_0x26055e===_0x971f6d(0x2fb)?String:Number)(_0x20baaf);}function _0x314abf(_0x578444){const _0x1f303f=_0x473efc;var _0x1634d4=_0x2b1ca1(_0x578444,_0x1f303f(0x2fb));return _0x259b8c(_0x1634d4)=='symbol'?_0x1634d4:_0x1634d4+'';}function _0x17f3d2(_0x55b432,_0x5ce36f,_0x48c7f5){const _0x5187d9=_0x473efc;return(_0x5ce36f=_0x314abf(_0x5ce36f))in _0x55b432?Object[_0x5187d9(0x345)](_0x55b432,_0x5ce36f,{'value':_0x48c7f5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x55b432[_0x5ce36f]=_0x48c7f5,_0x55b432;}let _0x420899=function(_0x3a070d){const _0x40000c=_0x473efc;return _0x3a070d[_0x40000c(0x1c1)]=_0x40000c(0x1c1),_0x3a070d[_0x40000c(0x217)]=_0x40000c(0x217),_0x3a070d[_0x40000c(0x2fe)]=_0x40000c(0x2fe),_0x3a070d[_0x40000c(0x192)]=_0x40000c(0x192),_0x3a070d[_0x40000c(0x375)]=_0x40000c(0x375),_0x3a070d[_0x40000c(0x2ed)]='SOCKET_FAILED_RETRY',_0x3a070d[_0x40000c(0x407)]=_0x40000c(0x407),_0x3a070d[_0x40000c(0x288)]=_0x40000c(0x288),_0x3a070d;}({});var _0x2d7dce=class{constructor(){const _0x514526=_0x473efc;_0x17f3d2(this,_0x514526(0xd3),new _0x1f9457[(_0x514526(0x2d8))]()),_0x17f3d2(this,_0x514526(0x2be),this['_event$']['asObservable']());}[_0x473efc(0x3b3)](_0x55c39b){const _0xe4c1c6=_0x473efc;this[_0xe4c1c6(0xd3)][_0xe4c1c6(0x2f5)](_0x55c39b);}},_0x113b06=class{constructor(){const _0x3b0ad5=_0x473efc;_0x17f3d2(this,_0x3b0ad5(0x33c),new _0x1f9457[(_0x3b0ad5(0x2d8))]()),_0x17f3d2(this,_0x3b0ad5(0x198),this[_0x3b0ad5(0x33c)][_0x3b0ad5(0x1b5)]());}[_0x473efc(0x3ec)](_0x9cc73f){this['_commentUpdate$']['next'](_0x9cc73f);}};function _0x9a3e23(_0x44ee43,_0x3f97c4){return function(_0x524b65,_0x10d911){_0x3f97c4(_0x524b65,_0x10d911,_0x44ee43);};}function _0x4da91b(_0x5de9ce,_0x4a3313,_0x1aaff4,_0x4eba19){const _0x28b5f1=_0x473efc;var _0x515b2d=arguments['length'],_0x558195=_0x515b2d<0x3?_0x4a3313:_0x4eba19===null?_0x4eba19=Object[_0x28b5f1(0x167)](_0x4a3313,_0x1aaff4):_0x4eba19,_0x133eca;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x28b5f1(0x1d0))_0x558195=Reflect['decorate'](_0x5de9ce,_0x4a3313,_0x1aaff4,_0x4eba19);else{for(var _0x1a390e=_0x5de9ce[_0x28b5f1(0x2b6)]-0x1;_0x1a390e>=0x0;_0x1a390e--)(_0x133eca=_0x5de9ce[_0x1a390e])&&(_0x558195=(_0x515b2d<0x3?_0x133eca(_0x558195):_0x515b2d>0x3?_0x133eca(_0x4a3313,_0x1aaff4,_0x558195):_0x133eca(_0x4a3313,_0x1aaff4))||_0x558195);}return _0x515b2d>0x3&&_0x558195&&Object['defineProperty'](_0x4a3313,_0x1aaff4,_0x558195),_0x558195;}let _0x34dd44=class extends _0x17ede7[_0x473efc(0x39c)]{constructor(_0x3ea028){const _0x465167=_0x473efc;super(),this[_0x465167(0x171)]=_0x3ea028,_0x17f3d2(this,_0x465167(0x39b),new Map()),_0x17f3d2(this,_0x465167(0x3fa),new _0x1f9457['Subject']()),this[_0x465167(0x12e)]((0x0,_0x1f9457['merge'])(this[_0x465167(0x171)][_0x465167(0x3ef)](_0x17ede7[_0x465167(0x1c0)][_0x465167(0x1bc)])[_0x465167(0x2bf)]((0x0,_0x1756fd[_0x465167(0xfb)])(_0x344acc=>_0x344acc[_0x465167(0x204)]())),this[_0x465167(0x171)][_0x465167(0x3ef)](_0x17ede7['UniverInstanceType']['UNIVER_DOC'])['pipe']((0x0,_0x1756fd[_0x465167(0xfb)])(_0x525a72=>_0x525a72[_0x465167(0x204)]())),this[_0x465167(0x171)][_0x465167(0x3ef)](_0x17ede7[_0x465167(0x1c0)][_0x465167(0x3b5)])[_0x465167(0x2bf)]((0x0,_0x1756fd[_0x465167(0xfb)])(_0x5dc40e=>_0x5dc40e[_0x465167(0x204)]())),this['_univerInstanceService'][_0x465167(0x3ef)](_0x17ede7[_0x465167(0x1c0)][_0x465167(0x3e8)])[_0x465167(0x2bf)]((0x0,_0x1756fd[_0x465167(0xfb)])(_0x196c29=>_0x196c29[_0x465167(0x204)]())))[_0x465167(0x3bf)](_0x5b4c95=>this[_0x465167(0x28b)](_0x5b4c95)));}[_0x473efc(0x1d2)](_0x5cb34a){const _0x49e76d=_0x473efc;return this[_0x49e76d(0x39b)][_0x49e76d(0x406)](_0x5cb34a)?(0x0,_0x1f9457['of'])(this[_0x49e76d(0x39b)][_0x49e76d(0x3af)](_0x5cb34a)):this[_0x49e76d(0x3fa)][_0x49e76d(0x2bf)]((0x0,_0x1756fd[_0x49e76d(0xfb)])(_0x2a675c=>{const _0x1f24e4=_0x49e76d;if(_0x2a675c===_0x5cb34a)return this['_roomMembers'][_0x1f24e4(0x3af)](_0x2a675c);}));}['updateMember'](_0x24cdab,_0x4334c6){const _0x2fbcc4=_0x473efc;let _0x1802d0=this[_0x2fbcc4(0x39b)][_0x2fbcc4(0x3af)](_0x24cdab);_0x1802d0||(_0x1802d0=new _0x4a1bd1(),this['_roomMembers'][_0x2fbcc4(0x184)](_0x24cdab,_0x1802d0),this[_0x2fbcc4(0x3fa)][_0x2fbcc4(0x2f5)](_0x24cdab)),_0x1802d0['updateMember'](_0x4334c6);}[_0x473efc(0x13e)](_0x14d07d,_0x19cbc3){const _0x2b796b=_0x473efc;let _0x4f0335=this[_0x2b796b(0x39b)][_0x2b796b(0x3af)](_0x14d07d);_0x4f0335&&_0x4f0335[_0x2b796b(0x13e)](_0x19cbc3);}['getRoom'](_0x7a8efb){const _0x1afb4e=_0x473efc;return this[_0x1afb4e(0x39b)][_0x1afb4e(0x3af)](_0x7a8efb);}[_0x473efc(0x404)](_0x5aa718,_0x292ece){const _0x5f43bd=_0x473efc;let _0x3f7faa=this[_0x5f43bd(0x39b)][_0x5f43bd(0x3af)](_0x5aa718);if(_0x3f7faa)return _0x3f7faa['getMember'](_0x292ece);}['_removeRoom'](_0x56a2cf){const _0xeb836a=_0x473efc;let _0x1f6946=this[_0xeb836a(0x39b)]['get'](_0x56a2cf);_0x1f6946&&(_0x1f6946[_0xeb836a(0x335)](),this[_0xeb836a(0x39b)][_0xeb836a(0x2ce)](_0x56a2cf));}[_0x473efc(0x335)](){const _0x53a18f=_0x473efc;this[_0x53a18f(0x39b)][_0x53a18f(0x343)](_0x5c9f8d=>_0x5c9f8d[_0x53a18f(0x335)]()),this[_0x53a18f(0x39b)]['clear'](),this[_0x53a18f(0x3fa)][_0x53a18f(0x403)]();}};_0x34dd44=_0x4da91b([_0x9a3e23(0x0,_0x17ede7[_0x473efc(0x2c6)])],_0x34dd44);var _0x4a1bd1=class extends _0x17ede7['Disposable']{constructor(..._0x567f68){const _0x33e543=_0x473efc;super(..._0x567f68),_0x17f3d2(this,_0x33e543(0x3e3),new Map()),_0x17f3d2(this,_0x33e543(0x366),new _0x1f9457[(_0x33e543(0x3c1))](this[_0x33e543(0x3e3)])),_0x17f3d2(this,_0x33e543(0x339),this[_0x33e543(0x366)][_0x33e543(0x1b5)]());}[_0x473efc(0x335)](){const _0x4adc83=_0x473efc;this[_0x4adc83(0x3e3)][_0x4adc83(0x40f)](),this[_0x4adc83(0x366)][_0x4adc83(0x403)]();}[_0x473efc(0x385)](_0x42247e){const _0x4825f4=_0x473efc;this[_0x4825f4(0x3e3)][_0x4825f4(0x184)](_0x42247e[_0x4825f4(0x2e0)],_0x42247e),this[_0x4825f4(0xc8)]();}[_0x473efc(0x13e)](_0x5cd937){const _0x1f2352=_0x473efc;this[_0x1f2352(0x3e3)][_0x1f2352(0x2ce)](_0x5cd937),this[_0x1f2352(0xc8)]();}[_0x473efc(0x404)](_0x76d0a7){const _0x2424ce=_0x473efc;return this[_0x2424ce(0x3e3)][_0x2424ce(0x3af)](_0x76d0a7);}[_0x473efc(0x141)](){const _0x3d8650=_0x473efc;return Array[_0x3d8650(0x2e1)](this[_0x3d8650(0x3e3)]['values']());}[_0x473efc(0xc8)](){const _0x5dc03c=_0x473efc;this[_0x5dc03c(0x366)][_0x5dc03c(0x2f5)](this[_0x5dc03c(0x3e3)]);}};function _0x4a55a2(_0x33db03,_0x1168f5){const _0x1286d5=_0x473efc;if(_0x5c41b8(_0x33db03))return _0x1168f5;if(_0x1168f5[_0x1286d5(0x1fb)]===_0x3d4600[_0x1286d5(0x350)][_0x1286d5(0x2da)]){let _0x4cd8d3=_0x52a406(_0x33db03),_0x56c5db=_0x1168f5;return{..._0x56c5db,'data':{..._0x56c5db[_0x1286d5(0x1ab)],'unitID':_0x33db03[_0x1286d5(0x36c)][_0x1286d5(0x298)],'unitType':_0x33db03[_0x1286d5(0x36c)]['unitType']??_0x56c5db[_0x1286d5(0x1ab)][_0x1286d5(0x19a)],'changeset':_0x4cd8d3[_0x1286d5(0x387)](_0x56c5db['data'][_0x1286d5(0x364)],_0xe17918(_0x33db03))}};}if(_0x1168f5[_0x1286d5(0x1fb)]===_0x3d4600['CollaborationEvent'][_0x1286d5(0x161)]){let _0x527ff7=_0x1168f5;return{..._0x527ff7,'data':{..._0x527ff7['data'],'unitID':_0x33db03[_0x1286d5(0x36c)]['unitId'],'unitType':_0x33db03['target'][_0x1286d5(0x19a)]??_0x527ff7['data']['unitType']}};}return _0x1168f5;}function _0x3d663f(_0xd9fa38,_0x424baf){const _0x2440a4=_0x473efc;if(_0x5c41b8(_0xd9fa38))return[_0x424baf];switch(_0x424baf[_0x2440a4(0x1fb)]){case _0x3d4600['CollaborationEvent']['NEW_CHANGESETS']:return[_0x50f351(_0xd9fa38,_0x424baf)];case _0x3d4600['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:return[_0x97c847(_0xd9fa38,_0x424baf)];case _0x3d4600[_0x2440a4(0x350)][_0x2440a4(0x289)]:return[_0x293146(_0xd9fa38,_0x424baf)];default:return[_0x424baf];}}function _0x5c41b8(_0x5df41b){const _0x2e7c4f=_0x473efc;return _0x5df41b[_0x2e7c4f(0x36c)][_0x2e7c4f(0x152)]==null&&_0x5df41b[_0x2e7c4f(0x36c)][_0x2e7c4f(0x298)]===_0x5df41b[_0x2e7c4f(0xe4)]&&!_0x5df41b[_0x2e7c4f(0x364)];}function _0x50f351(_0x31cddf,_0xc94f63){const _0x123ce5=_0x473efc;return{..._0xc94f63,'data':(0x0,_0x3d4600[_0x123ce5(0xeb)])(_0x5d5ad7(_0x31cddf,(0x0,_0x3d4600[_0x123ce5(0x388)])(_0xc94f63['data'])))};}function _0x293146(_0x3495ff,_0x37737f){const _0x192c39=_0x473efc;return{..._0x37737f,'data':_0x5d5ad7(_0x3495ff,_0x37737f[_0x192c39(0x1ab)])};}function _0x97c847(_0x3f9b90,_0x9f0e8a){const _0x16c92e=_0x473efc;let _0x13e908=_0x9f0e8a[_0x16c92e(0x1ab)];return{..._0x9f0e8a,'data':{..._0x13e908,'changesets':_0x13e908[_0x16c92e(0x122)][_0x16c92e(0xfb)](_0x36431a=>(0x0,_0x3d4600['parseChangesetToProtocol'])(_0x5d5ad7(_0x3f9b90,(0x0,_0x3d4600['parseProtocolChangeset'])(_0x36431a))))}};}function _0x5d5ad7(_0x3fc017,_0x1e8fd2){const _0x393e71=_0x473efc;return _0x52a406(_0x3fc017)[_0x393e71(0x37c)](_0x1e8fd2,_0xe17918(_0x3fc017));}function _0x52a406(_0x3296a7){const _0x5cefba=_0x473efc;if(!_0x3296a7[_0x5cefba(0x364)])throw Error(_0x5cefba(0x2cb));return _0x3296a7[_0x5cefba(0x364)];}function _0xe17918(_0x4e15a4){const _0x3cd0e4=_0x473efc;return{'localUnitId':_0x4e15a4[_0x3cd0e4(0xe4)],'unitType':_0x4e15a4['unitType'],'target':_0x4e15a4['target']};}let _0xcf341c=function(_0x1f79ec){const _0x147e18=_0x473efc;return _0x1f79ec[_0x1f79ec[_0x147e18(0x23d)]=0x0]=_0x147e18(0x23d),_0x1f79ec[_0x1f79ec['JOINING']=0x1]=_0x147e18(0x3b9),_0x1f79ec[_0x1f79ec[_0x147e18(0x1ca)]=0x2]=_0x147e18(0x1ca),_0x1f79ec[_0x1f79ec[_0x147e18(0x17d)]=0x3]=_0x147e18(0x17d),_0x1f79ec;}({}),_0x429f9b={[_0x3d2f85[_0x473efc(0x3e4)][_0x473efc(0x1fc)]]:_0x473efc(0x3ca),[_0x3d2f85[_0x473efc(0x3e4)]['JOIN_ROOM_FULL']]:'session.room-full',[_0x3d2f85[_0x473efc(0x3e4)][_0x473efc(0x3cd)]]:_0x473efc(0x1bb),[_0x3d2f85['CmdRspCode'][_0x473efc(0x382)]]:'session.room-permission-denied',[_0x3d2f85[_0x473efc(0x3e4)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x473efc(0x279)},_0x1fbd86=class extends _0x17ede7[_0x473efc(0x1a3)]{get[_0x473efc(0x36f)](){const _0x4ff898=_0x473efc;return this[_0x4ff898(0x20c)]['getValue']();}constructor(_0x4c9950,_0xef856,_0x3bb653,_0x3ca5e3,_0x7192db,_0x1e8dfa,_0x1bbcea,_0xba0bbe){const _0x4e3b20=_0x473efc;super(),this[_0x4e3b20(0x145)]=_0x4c9950,this[_0x4e3b20(0x309)]=_0x3bb653,this[_0x4e3b20(0x414)]=_0x3ca5e3,this[_0x4e3b20(0x2f3)]=_0x7192db,this[_0x4e3b20(0x318)]=_0x1e8dfa,this[_0x4e3b20(0x1fd)]=_0x1bbcea,this[_0x4e3b20(0x194)]=_0xba0bbe,_0x17f3d2(this,_0x4e3b20(0x20c),new _0x1f9457[(_0x4e3b20(0x3c1))](0x0)),_0x17f3d2(this,_0x4e3b20(0x1bd),this[_0x4e3b20(0x20c)][_0x4e3b20(0x1b5)]()),_0x17f3d2(this,_0x4e3b20(0xd3),new _0x1f9457[(_0x4e3b20(0x2d8))]()),_0x17f3d2(this,_0x4e3b20(0x2be),this[_0x4e3b20(0xd3)][_0x4e3b20(0x1b5)]()),_0x17f3d2(this,'_socket',void 0x0),_0x17f3d2(this,_0x4e3b20(0xf7),void 0x0),_0x17f3d2(this,_0x4e3b20(0x2ec),void 0x0),_0x17f3d2(this,'_shouldReportTelemetry',!0x1),_0x17f3d2(this,'_telemetryInfo',null),this[_0x4e3b20(0x3c4)]=!!this[_0x4e3b20(0x194)],_0xef856['pipe']((0x0,_0x1f9457[_0x4e3b20(0x28a)])(this['dispose$']))['subscribe'](_0x5b3937=>{const _0x2aa202=_0x4e3b20;if(_0x5b3937!==void 0x0){if(this[_0x2aa202(0x16d)]=_0x5b3937,_0x5b3937)this[_0x2aa202(0xcb)](_0x5b3937),this['_socketMessageSubscription']=_0x5b3937[_0x2aa202(0x38f)][_0x2aa202(0x3bf)](_0xf4f348=>{const _0x55f2af=_0x2aa202;_0xf4f348['routeKey']===this['_identity'][_0x55f2af(0x36c)]['unitId']&&this['_onCombEvent'](_0xf4f348);});else{var _0x228fbd;this[_0x2aa202(0xc4)](),this[_0x2aa202(0x20c)][_0x2aa202(0x2f5)](0x2),(_0x228fbd=this['_socketMessageSubscription'])==null||_0x228fbd[_0x2aa202(0x278)](),this['_socketMessageSubscription']=null;}}});}[_0x473efc(0x3be)](){const _0x5c61c0=_0x473efc;var _0x4961d0;return((_0x4961d0=this[_0x5c61c0(0x16d)])==null?void 0x0:_0x4961d0['memberID'])??null;}['dispose'](){const _0x21c4b5=_0x473efc;super[_0x21c4b5(0x335)](),this[_0x21c4b5(0x11f)](),this[_0x21c4b5(0x2cf)]['next'](),this[_0x21c4b5(0x2cf)][_0x21c4b5(0x403)]();}['close'](){const _0x5ebfc1=_0x473efc;var _0x53c226;this[_0x5ebfc1(0xc4)](),(_0x53c226=this[_0x5ebfc1(0x16d)])==null||_0x53c226[_0x5ebfc1(0x10c)]({'cmd':_0x3d2f85[_0x5ebfc1(0x1c9)][_0x5ebfc1(0x3b7)],'data':{'roomID':this[_0x5ebfc1(0x145)]['target'][_0x5ebfc1(0x298)]}}),this[_0x5ebfc1(0xd3)][_0x5ebfc1(0x403)](),this[_0x5ebfc1(0x20c)][_0x5ebfc1(0x403)]();}[_0x473efc(0x3ce)](_0x579969){const _0x1231b6=_0x473efc;_0x579969[_0x1231b6(0x258)]===_0x3d2f85[_0x1231b6(0x1c9)][_0x1231b6(0x102)]?this[_0x1231b6(0x3a3)](_0x579969):_0x579969[_0x1231b6(0x258)]===_0x3d2f85[_0x1231b6(0x1c9)][_0x1231b6(0x111)]&&this[_0x1231b6(0x13d)](_0x579969);}[_0x473efc(0xcb)](_0x514699){const _0x185587=_0x473efc;this['_sessionStatus$'][_0x185587(0x2f5)](0x1),_0x514699['send']({'cmd':_0x3d2f85[_0x185587(0x1c9)][_0x185587(0x102)],'routeKey':this[_0x185587(0x145)][_0x185587(0x36c)][_0x185587(0x298)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x185587(0x36c)][_0x185587(0x298)]}]}});}[_0x473efc(0x3a3)](_0x56b192){const _0x1e4c21=_0x473efc;var _0x42a3c2;if(_0x56b192[_0x1e4c21(0x3e1)]in _0x429f9b){this[_0x1e4c21(0x1fd)][_0x1e4c21(0x3b3)]({'id':_0x1e4c21(0x375),'data':_0x429f9b[_0x56b192['code']]}),this[_0x1e4c21(0x20c)][_0x1e4c21(0x2f5)](0x2);return;}this['_sessionStatus$'][_0x1e4c21(0x2f5)](0x3);let _0x1d52b1=(_0x42a3c2=_0x56b192[_0x1e4c21(0x1ab)][_0x1e4c21(0x2e9)][this['_identity'][_0x1e4c21(0x36c)][_0x1e4c21(0x298)]])==null?void 0x0:_0x42a3c2[_0x1e4c21(0x12a)];_0x1d52b1&&_0x1d52b1[_0x1e4c21(0x343)](_0x61cf7d=>this[_0x1e4c21(0x2f3)]['updateMember'](this['_identity'][_0x1e4c21(0xe4)],_0x61cf7d));}['_onRecvEvent'](_0x5a3cd5){const _0x262391=_0x473efc;try{let _0x2e689b=_0x3d663f(this['_identity'],_0x5a3cd5['data']);for(let _0x41bf40 of _0x2e689b)switch(_0x41bf40['eventID']){case _0x3d4600[_0x262391(0x350)][_0x262391(0x1ef)]:this[_0x262391(0x13a)](_0x41bf40),this[_0x262391(0xd3)][_0x262391(0x2f5)](_0x41bf40);break;case _0x3d4600[_0x262391(0x350)][_0x262391(0x3a9)]:this[_0x262391(0xc6)](_0x41bf40),this['_event$'][_0x262391(0x2f5)](_0x41bf40);break;case _0x3d4600[_0x262391(0x350)][_0x262391(0x183)]:case _0x3d4600[_0x262391(0x350)][_0x262391(0x289)]:this[_0x262391(0x324)](),this[_0x262391(0x35f)](),this[_0x262391(0xd3)][_0x262391(0x2f5)](_0x41bf40);break;case _0x3d4600['CollaborationEvent']['MSG_FOR_ERROR']:this['_logService']['error'](_0x262391(0x2c4)+JSON[_0x262391(0x317)](_0x41bf40)),this['_event$']['next'](_0x41bf40);break;case _0x3d4600[_0x262391(0x350)][_0x262391(0x214)]:this[_0x262391(0x318)][_0x262391(0x3ec)](_0x41bf40[_0x262391(0x1ab)]),this[_0x262391(0xd3)]['next'](_0x41bf40);break;default:this['_event$'][_0x262391(0x2f5)](_0x41bf40);}}catch(_0x1d2b80){this[_0x262391(0x309)][_0x262391(0x3e6)](_0x1d2b80,_0x5a3cd5);}}[_0x473efc(0x13a)](_0x3d100f){const _0x10988a=_0x473efc;this[_0x10988a(0x2f3)]['updateMember'](this[_0x10988a(0x145)][_0x10988a(0xe4)],_0x3d100f[_0x10988a(0x1ab)]);}['_onUserLeave'](_0x1a2f9b){const _0x31a511=_0x473efc;this['_memberService'][_0x31a511(0x13e)](this[_0x31a511(0x145)][_0x31a511(0xe4)],_0x1a2f9b['data'][_0x31a511(0x2e0)]);}async['send'](_0x3434e4,_0x1713e7){const _0xf3071a=_0x473efc;if(this[_0xf3071a(0x36f)]!==0x3||!this[_0xf3071a(0x16d)])throw Error(_0xf3071a(0x255));try{let _0x4dc018=_0x4a55a2(this['_identity'],_0x3434e4);_0x4dc018['eventID']===_0x3d4600[_0xf3071a(0x350)][_0xf3071a(0x2da)]&&(this[_0xf3071a(0x114)](),this[_0xf3071a(0xdb)](_0x4dc018)),this[_0xf3071a(0x16d)]['send']({'cmd':_0x3d2f85[_0xf3071a(0x1c9)][_0xf3071a(0xfa)],'routeKey':this[_0xf3071a(0x145)][_0xf3071a(0x36c)][_0xf3071a(0x298)],'routeType':'','data':_0x4dc018});}catch(_0x2d1afa){this['_logService'][_0xf3071a(0x3e6)](_0x2d1afa);}}[_0x473efc(0x114)](){const _0x5275df=_0x473efc;this[_0x5275df(0x2ec)]=setTimeout(()=>{const _0x337b71=_0x5275df;this[_0x337b71(0x2ec)]=null,this[_0x337b71(0x1fd)]['emitEvent']({'id':_0x337b71(0x288)});},this[_0x5275df(0x414)]['getConfig'](_0x5275df(0x2dc))??0x4e20);}[_0x473efc(0x35f)](){const _0x3cc8ad=_0x473efc;this[_0x3cc8ad(0x2ec)]&&=(clearTimeout(this[_0x3cc8ad(0x2ec)]),null);}[_0x473efc(0xdb)](_0x4d5008){const _0x154946=_0x473efc;if(!this[_0x154946(0x3c4)])return;let {data:_0x176d47}=_0x4d5008,{unitID:_0x4a9cf1,changeset:_0x5139de}=_0x176d47,{mutations:_0x5b665c,type:_0x48d6be}=_0x5139de;this[_0x154946(0x1ee)]={'unitId':_0x4a9cf1,'type':_0x48d6be,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x143912(_0x5b665c)};}[_0x473efc(0x324)](){const _0x2b6c3e=_0x473efc;if(this[_0x2b6c3e(0x3c4)]){if(!this[_0x2b6c3e(0x1ee)]){this[_0x2b6c3e(0x309)][_0x2b6c3e(0x3e6)]('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x2b6c3e(0x1ee)]['stopTime']=performance['now'](),this[_0x2b6c3e(0x1ee)][_0x2b6c3e(0x40b)]=this[_0x2b6c3e(0x1ee)][_0x2b6c3e(0x153)]-this[_0x2b6c3e(0x1ee)][_0x2b6c3e(0x118)],this['_telemetryService'][_0x2b6c3e(0x2a5)]('collaboration_new_changeset',this[_0x2b6c3e(0x1ee)]),this[_0x2b6c3e(0x1ee)]=null;}}[_0x473efc(0xc4)](){const _0x3791e9=_0x473efc;this[_0x3791e9(0x1ee)]=null;}};_0x1fbd86=_0x4da91b([_0x9a3e23(0x2,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0x3,_0x17ede7[_0x473efc(0x201)]),_0x9a3e23(0x4,(0x0,_0x17ede7['Inject'])(_0x34dd44)),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x113b06)),_0x9a3e23(0x6,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x327e6c[_0x473efc(0x37b)]))],_0x1fbd86);let _0x4386bd=(0x0,_0x17ede7[_0x473efc(0x1cb)])(_0x473efc(0x37d));function _0x5f3492(_0x40d874){const _0x34f031=_0x473efc;return _0x34f031(0x124)+_0x40d874;}function _0x52a47b(_0x44b85e){const _0x56f1e8=_0x473efc;let {unitID:_0x4b36a7,mutations:_0x22092a}=_0x44b85e;return{'unitId':_0x4b36a7,'subUnitId':_0x22092a['length']>0x0?_0x22092a[0x0]['params'][_0x56f1e8(0x20f)]:null};}let _0x62027=class{constructor(_0x13b511,_0x5bde39,_0x350517){const _0x4375bd=_0x473efc;this['_injector']=_0x13b511,this[_0x4375bd(0x11c)]=_0x5bde39,this[_0x4375bd(0x2cc)]=_0x350517;}[_0x473efc(0x19c)](_0x5500bc){const _0x737c07=_0x473efc;var _0x5e1cd1,_0xc62632;let _0x4c1f56=this[_0x737c07(0x28c)][_0x737c07(0x3af)](_0x43c3be[_0x737c07(0x160)]),{unitId:_0x57f83c,subUnitId:_0x11ad27}=_0x52a47b(_0x5500bc),_0x1392e3=_0x4c1f56==null?void 0x0:_0x4c1f56['getWorkbookSelections'](_0x57f83c)[_0x737c07(0x1ad)](),_0x212bac=(_0x5e1cd1=this[_0x737c07(0x2cc)][_0x737c07(0x1a9)](_0x57f83c))==null||(_0x5e1cd1=_0x5e1cd1[_0x737c07(0x329)]())==null?void 0x0:_0x5e1cd1[_0x737c07(0x2d3)]();if(_0x1392e3[_0x737c07(0x2b6)]===0x0||!_0x57f83c||!_0x11ad27)return;let _0x57b17f=[{'id':_0x43c3be[_0x737c07(0x37a)]['id'],'params':{'unitId':_0x57f83c,'subUnitId':_0x212bac,'selections':_0x17ede7[_0x737c07(0x1ea)]['deepClone'](_0x1392e3)}}],_0x252555=this[_0x737c07(0x11c)][_0x737c07(0x12f)](_0x5500bc,_0x57b17f);if(!(0x0,_0x3d4600[_0x737c07(0x2ba)])(_0x252555))throw _0x252555[_0x737c07(0x3e6)];let _0x101531=(_0xc62632=_0x252555[_0x737c07(0x377)][0x0])==null||(_0xc62632=_0xc62632[_0x737c07(0x1de)])==null?void 0x0:_0xc62632[_0x737c07(0x378)];if(Array[_0x737c07(0x2fd)](_0x101531)&&_0x101531['length']){if(_0x101531['length']===_0x57b17f[0x0][_0x737c07(0x1de)][_0x737c07(0x378)]['length']&&_0x101531['every']((_0x151bbb,_0x5349a7)=>_0x17ede7[_0x737c07(0x27b)][_0x737c07(0x416)](_0x151bbb[_0x737c07(0x323)],_0x57b17f[0x0][_0x737c07(0x1de)][_0x737c07(0x378)][_0x5349a7][_0x737c07(0x323)])))return;this[_0x737c07(0x28c)]['get'](_0x17ede7[_0x737c07(0x31c)])['executeCommand'](_0x43c3be[_0x737c07(0x37a)]['id'],{'unitId':_0x57f83c,'subUnitId':_0x212bac,'selections':_0x101531});}}};_0x62027=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7['Inject'])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x1,_0x3d4600['ITransformService']),_0x9a3e23(0x2,_0x17ede7['IUniverInstanceService'])],_0x62027);let _0x549ce8=(0x0,_0x17ede7[_0x473efc(0x1cb)])('univer-pro.collaboration-client.single-active-unit-service'),_0x3f32fb=function(_0x3164ee){const _0x1ae73f=_0x473efc;return _0x3164ee[_0x3164ee[_0x1ae73f(0x30f)]=0x0]=_0x1ae73f(0x30f),_0x3164ee[_0x3164ee[_0x1ae73f(0x21f)]=0x1]=_0x1ae73f(0x21f),_0x3164ee;}({});function _0x28abbf(_0x304fe1){const _0x1ac3d7=_0x473efc;var _0x28c168;return!!((_0x28c168=_0x304fe1[_0x1ac3d7(0x1de)])!=null&&_0x28c168['__splitChunk__']);}let _0x483519=new Set([_0x43c3be[_0x473efc(0xe2)]['id']]),_0x33aa6e=new Set([_0x3160c0['AddSlidePageMutation']['id'],_0x3160c0[_0x473efc(0x363)]['id'],_0x3160c0[_0x473efc(0x418)]['id'],_0x3160c0[_0x473efc(0x3db)]['id']]);function _0x5a4f86(_0x3e8d37,_0x4d0b1c=_0x483519){const _0x4102f0=_0x473efc;let _0x332986=[];for(let _0x3caa6f of _0x3e8d37){if(_0x4d0b1c[_0x4102f0(0x406)](_0x3caa6f['id'])){if(_0x332986['length']>0x0)break;_0x332986[_0x4102f0(0x283)](_0x3caa6f);break;}if(_0x28abbf(_0x3caa6f)){if(_0x332986['length']>0x0)break;_0x332986['push'](_0x3caa6f);break;}_0x332986['push'](_0x3caa6f);}return _0x332986;}function _0x57ca29(_0x587a02,_0x1db3f4,_0x493405,_0x25fa95,_0xd591db){const _0x16d84b=_0x473efc;let _0x3a73d5=_0x5a4f86(_0x587a02),_0x280879=_0xd591db['getCurrentUser'](),_0x49b0ac=(_0x280879==null?void 0x0:_0x280879[_0x16d84b(0x36b)])??'unknown',_0x3af4be=(_0x280879==null?void 0x0:_0x280879[_0x16d84b(0x2e0)])??_0x16d84b(0x3a5);return{'changeset':{'unitID':_0x1db3f4,'type':(0x0,_0x3d4600[_0x16d84b(0x2c1)])(_0x493405[_0x16d84b(0x291)](_0x1db3f4)),'baseRev':_0x25fa95[_0x16d84b(0x1aa)](_0x1db3f4),'revision':0x0,'userID':_0x49b0ac,'memberID':_0x3af4be,'mutations':_0x3a73d5},'pendingMutations':_0x587a02[_0x16d84b(0xd2)](_0x3a73d5[_0x16d84b(0x2b6)])};}let _0x138757=_0x57ca29;function _0x17cfb5(_0x209f1c,_0xe8497a,_0x18ebec,_0x10b1da,_0x337663){const _0x29b19a=_0x473efc;let _0x565c41=_0x5a4f86(_0x209f1c,_0x33aa6e),_0x475797=_0x337663[_0x29b19a(0x224)](),_0x1e3187=(_0x475797==null?void 0x0:_0x475797[_0x29b19a(0x36b)])??_0x29b19a(0x3a5),_0x598e58=(_0x475797==null?void 0x0:_0x475797['memberID'])??'unknown';return{'changeset':{'unitID':_0xe8497a,'type':(0x0,_0x3d4600[_0x29b19a(0x2c1)])(_0x18ebec[_0x29b19a(0x291)](_0xe8497a)),'baseRev':_0x10b1da[_0x29b19a(0x1aa)](_0xe8497a),'revision':0x0,'userID':_0x1e3187,'memberID':_0x598e58,'mutations':_0x565c41},'pendingMutations':_0x209f1c[_0x29b19a(0xd2)](_0x565c41[_0x29b19a(0x2b6)])};}function _0x33b986(_0x278328,_0x4547a2,_0x14c05e,_0x20f36c,_0xaefed2){const _0x26380d=_0x473efc;let _0x394566=_0x278328[_0x26380d(0x3dc)]((_0x20c962,_0x4bb75b)=>{const _0x2bbed7=_0x26380d;let _0x4515ef=_0x20c962[_0x20c962['length']-0x1],{id:_0x1f3ea8}=_0x4515ef??{},{id:_0x976803,type:_0x5ed209}=_0x4bb75b,_0x287ad6=_0x4bb75b[_0x2bbed7(0x1de)];if(_0x1f3ea8&&_0x1f3ea8!==_0x976803)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x1f3ea8+_0x2bbed7(0x246)+_0x976803+'.');if(!_0x4515ef)return[{'id':_0x976803,'type':_0x5ed209,'params':{'unitId':_0x287ad6[_0x2bbed7(0x298)],'textRanges':_0x287ad6['textRanges'],'actions':_0x287ad6['actions']}}];let _0x47fe4f=_0x4515ef[_0x2bbed7(0x1de)];return _0x200591(_0x47fe4f,_0x287ad6)?[..._0x20c962['slice'](0x0,-0x1),{..._0x4515ef,'id':_0x976803,'type':_0x5ed209,'params':{'unitId':_0x287ad6['unitId'],'textRanges':_0x287ad6[_0x2bbed7(0x2d9)],'actions':_0x17ede7['JSONX'][_0x2bbed7(0x240)](_0x47fe4f['actions'],_0x287ad6[_0x2bbed7(0x1a8)])}}]:[..._0x20c962,{'id':_0x976803,'type':_0x5ed209,'params':{'unitId':_0x287ad6[_0x2bbed7(0x298)],'textRanges':_0x287ad6['textRanges'],'actions':_0x287ad6[_0x2bbed7(0x1a8)]}}];},[]),_0x34f58b=_0xaefed2['getCurrentUser'](),_0x58dc4f=(_0x34f58b==null?void 0x0:_0x34f58b[_0x26380d(0x36b)])??_0x26380d(0x3a5),_0x12c2af=(_0x34f58b==null?void 0x0:_0x34f58b['memberID'])??_0x26380d(0x3a5);return{'changeset':{'unitID':_0x4547a2,'type':(0x0,_0x3d4600['mapDocumentTypeToUniverInstanceType'])(_0x14c05e[_0x26380d(0x291)](_0x4547a2)),'baseRev':_0x20f36c['getCurrentRevOfUnit'](_0x4547a2),'revision':0x0,'userID':_0x58dc4f,'memberID':_0x12c2af,'mutations':_0x394566},'pendingMutations':_0x278328[_0x26380d(0xd2)](_0x278328[_0x26380d(0x2b6)])};}function _0x200591(_0x1ceb40,_0x382d85){const _0x3adda3=_0x473efc;return!_0x610fa6(_0x1ceb40)&&!_0x610fa6(_0x382d85)&&_0x7142a2(_0x1ceb40[_0x3adda3(0x1a8)],_0x382d85[_0x3adda3(0x1a8)]);}function _0x610fa6(_0x2e84eb){const _0x3a91ee=_0x473efc;return _0x2e84eb[_0x3a91ee(0x1c5)]!==void 0x0;}function _0x7142a2(_0x1b9e2c,_0x2e256f){return _0x28e450(_0x1b9e2c)&&_0x28e450(_0x2e256f)&&!_0x432363(_0x1b9e2c)&&!_0x432363(_0x2e256f)&&!_0x9803f0(_0x1b9e2c)&&!_0x9803f0(_0x2e256f);}function _0x28e450(_0x574f66){const _0x4e3ba2=_0x473efc;return _0x28a1eb(_0x574f66)[_0x4e3ba2(0x26a)](_0x2a2db0=>_0x2c025f(_0x2a2db0)&&_0x2a2db0['et']===_0x4e3ba2(0x408));}function _0x9803f0(_0x8301d7){const _0x39aed7=_0x473efc;return _0x28a1eb(_0x8301d7)['some'](_0x29893d=>Array[_0x39aed7(0x2fd)](_0x29893d)||typeof _0x29893d==_0x39aed7(0x2fb)||typeof _0x29893d==_0x39aed7(0x3cb));}function _0x432363(_0x5f3c94){const _0x5ea247=_0x473efc;return _0x28a1eb(_0x5f3c94)[_0x5ea247(0x26a)](_0xb370ce=>!_0x2c025f(_0xb370ce)||_0xb370ce['et']!=='text-x'||!Array[_0x5ea247(0x2fd)](_0xb370ce['e'])?!0x1:_0xb370ce['e'][_0x5ea247(0x26a)](_0x3ffcaa=>!_0x2c025f(_0x3ffcaa)||!_0x2c025f(_0x3ffcaa[_0x5ea247(0xc9)])?!0x1:Object['prototype'][_0x5ea247(0x392)]['call'](_0x3ffcaa[_0x5ea247(0xc9)],'tables')||Object[_0x5ea247(0x2ab)][_0x5ea247(0x392)][_0x5ea247(0x107)](_0x3ffcaa[_0x5ea247(0xc9)],_0x5ea247(0x369))||Object['prototype'][_0x5ea247(0x392)][_0x5ea247(0x107)](_0x3ffcaa['body'],_0x5ea247(0x40e))));}function _0x28a1eb(_0x12a0de){const _0x3187d8=_0x473efc;if(!Array[_0x3187d8(0x2fd)](_0x12a0de))return[];let _0x30e535=_0x12a0de['includes']('body')?_0x12a0de:_0x12a0de['find'](_0x3a3fdd=>Array[_0x3187d8(0x2fd)](_0x3a3fdd)&&_0x3a3fdd[_0x3187d8(0x218)](_0x3187d8(0xc9)));if(!Array[_0x3187d8(0x2fd)](_0x30e535))return[];let _0x1633db=_0x30e535[_0x3187d8(0x2b8)](_0x3187d8(0xc9));return _0x1633db===-0x1?[]:_0x30e535[_0x3187d8(0xd2)](_0x1633db+0x1);}function _0x2c025f(_0x50fb2e){return typeof _0x50fb2e=='object'&&!!_0x50fb2e&&!Array['isArray'](_0x50fb2e);}function _0x2a77ac(_0x51dc52,_0x48da1b){const _0x176d8b=_0x473efc;let _0x5430db=new _0x1f9457[(_0x176d8b(0x18e))](0x1);return setTimeout(()=>_0x5430db[_0x176d8b(0x2f5)](_0x48da1b),_0x51dc52),_0x5430db[_0x176d8b(0x1b5)]()[_0x176d8b(0x2bf)]((0x0,_0x1f9457[_0x176d8b(0x207)])(0x1));}var _0x33d01f,_0x322b5f,_0x179f55;let _0x555db4=function(_0x46a58b){const _0x304f10=_0x473efc;return _0x46a58b[_0x304f10(0x3c3)]=_0x304f10(0x31e),_0x46a58b[_0x304f10(0x1f1)]=_0x304f10(0x303),_0x46a58b[_0x304f10(0x259)]='pending',_0x46a58b[_0x304f10(0x1f6)]='awaiting',_0x46a58b['AWAITING_WITH_PENDING']=_0x304f10(0x1b2),_0x46a58b[_0x304f10(0xe1)]=_0x304f10(0x1f0),_0x46a58b[_0x304f10(0x2fe)]=_0x304f10(0x187),_0x46a58b[_0x304f10(0x1ca)]=_0x304f10(0x29c),_0x46a58b;}({}),_0xe821d0=0x4e20,_0x3c8c0d=0x2bf20;var _0x23a139=class{constructor(_0x289599,_0x1eb78c,_0xa02497,_0x220b37,_0x4351f3,_0x4492df,_0x140b2d,_0x56df5e,_0x2a944a){const _0x33a081=_0x473efc;this[_0x33a081(0xec)]=_0x289599,this['type']=_0x1eb78c,this[_0x33a081(0x186)]=_0x4351f3,this[_0x33a081(0x39f)]=_0x4492df,this[_0x33a081(0x26c)]=_0x140b2d,this[_0x33a081(0x1e3)]=_0x56df5e,this[_0x33a081(0x3d0)]=_0x2a944a,_0x17f3d2(this,_0x33a081(0x3dd),null),_0x17f3d2(this,_0x33a081(0x2c2),[]),this[_0x33a081(0x3dd)]=_0xa02497,this[_0x33a081(0x2c2)]=_0x220b37;}[_0x473efc(0x236)](_0x1b3c13){const _0x3a9586=_0x473efc;let _0x145252=this[_0x3a9586(0x1e3)][_0x3a9586(0x1aa)](this[_0x3a9586(0xec)]);return _0x1b3c13[_0x3a9586(0x1e7)]>_0x145252+0x1?(this['_handler'][_0x3a9586(0x2c0)]({'from':_0x145252,'to':_0x1b3c13[_0x3a9586(0x1e7)]-0x1}),!0x0):!0x1;}[_0x473efc(0x1cc)](_0x10298f){const _0x19ba09=_0x473efc;this[_0x19ba09(0x26c)][_0x19ba09(0x3bd)](this['unitID'],_0x10298f);}[_0x473efc(0x37e)](_0x4ff857){const _0x51a75a=_0x473efc;var _0x158da6,_0x4d781a;(_0x158da6=(_0x4d781a=this['_handler'])[_0x51a75a(0x157)])==null||_0x158da6['call'](_0x4d781a,_0x4ff857);}['_transformIMECache'](_0x4011c6){const _0x426f00=_0x473efc;var _0x49bb47,_0x31a0d1;return(_0x49bb47=(_0x31a0d1=this['_handler'])[_0x426f00(0xde)])==null?void 0x0:_0x49bb47['call'](_0x31a0d1,_0x4011c6);}[_0x473efc(0x3bb)](_0x102489){const _0x37485e=_0x473efc;var _0x46cb3d,_0x192005;return(_0x46cb3d=(_0x192005=this[_0x37485e(0x186)])[_0x37485e(0x27c)])==null?void 0x0:_0x46cb3d[_0x37485e(0x107)](_0x192005,_0x102489);}['_transformRemoteChangesetByIMECache'](_0x80908d){const _0x2c3d78=_0x473efc;var _0x4236c8,_0x521a35;return((_0x4236c8=(_0x521a35=this[_0x2c3d78(0x186)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x4236c8['call'](_0x521a35,_0x80908d))??_0x80908d;}[_0x473efc(0x178)](_0x20d58d){const _0x5d5ef7=_0x473efc;var _0x18d126,_0x571806;return((_0x18d126=(_0x571806=this[_0x5d5ef7(0x186)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x18d126['call'](_0x571806,_0x20d58d))??_0x20d58d;}['_syncEditingCollabCursor'](_0x29a917){const _0x3e286f=_0x473efc;if(this[_0x3e286f(0x3d5)]===_0x17ede7['UniverInstanceType'][_0x3e286f(0x399)]){let {unitID:_0x43633d,mutations:_0x369944,memberID:_0xfc0598}=_0x29a917,_0x266ede=_0x369944['length']>0x0?_0x369944[0x0][_0x3e286f(0x1de)]['textRanges']:[];if(Array[_0x3e286f(0x2fd)](_0x266ede)&&_0x266ede[_0x3e286f(0x2b6)]>0x0){var _0x22c34c,_0x596dc7;(_0x22c34c=(_0x596dc7=this[_0x3e286f(0x186)])[_0x3e286f(0x270)])==null||_0x22c34c[_0x3e286f(0x107)](_0x596dc7,{'unitID':_0x43633d,'memberID':_0xfc0598,'textRanges':_0x266ede});}}}[_0x473efc(0x272)](){const _0x10571b=_0x473efc;var _0x23651b;(_0x23651b=this[_0x10571b(0x3d0)])==null||_0x23651b[_0x10571b(0x409)](this[_0x10571b(0xec)],this['type'],this[_0x10571b(0x3dd)],this[_0x10571b(0x2c2)]);}[_0x473efc(0x2a8)](){const _0x226456=_0x473efc;return this[_0x226456(0x1e3)][_0x226456(0x1aa)](this[_0x226456(0xec)]);}[_0x473efc(0x355)](){const _0x13a615=_0x473efc;this[_0x13a615(0x1e3)]['incrementRevOfUnit'](this[_0x13a615(0xec)]);}['_executeRemoteChangeset'](_0x5797b5){const _0x33da0a=_0x473efc;let _0x27ea94=this['_transformRemoteChangesetByIMECache'](_0x5797b5);_0x27ea94=this['_transformRemoteChangesetByStateCache'](_0x27ea94);let _0xd9fbe7=(0x0,_0x17ede7[_0x33da0a(0x17f)])(_0x27ea94['mutations'],this[_0x33da0a(0x39f)],{'fromCollab':!0x0});if(!_0xd9fbe7[_0x33da0a(0x22d)])throw _0xd9fbe7[_0x33da0a(0x3e6)]instanceof Error?_0xd9fbe7[_0x33da0a(0x3e6)]:Error(_0xd9fbe7[_0x33da0a(0x3e6)]??'[CollaborationState]:\x20apply\x20error!');this[_0x33da0a(0x16a)](_0x27ea94),this['_transformStateCache'](_0x27ea94),this['_transformUndoredo'](_0x5797b5),this['_transformSelections'](_0x27ea94),this['_syncEditingCollabCursor'](_0x27ea94),this['_incrementRevisionNumber']();}};let _0x4e41d6=class extends _0x23a139{constructor(_0x8fbe91,_0x4c3217,_0x47074e,_0x55108d,_0x23797e,_0x4b537a,_0x1c69bf,_0x4dcbb9,_0x256bca,_0x18d96f){const _0x51e303=_0x473efc;super(_0x8fbe91,_0x4c3217,null,[],_0x47074e,_0x1c69bf,_0x4b537a,_0x55108d,_0x18d96f),this[_0x51e303(0x28c)]=_0x23797e,this[_0x51e303(0x309)]=_0x4dcbb9,this[_0x51e303(0x11c)]=_0x256bca,this[_0x51e303(0x14c)]=_0x18d96f,_0x17f3d2(this,'status',_0x51e303(0x303));}[_0x473efc(0xdd)](_0x12ab71){const _0x5c6838=_0x473efc;let _0xbc031c=this['_injector']['createInstance'](_0xe416b5,this[_0x5c6838(0xec)],this[_0x5c6838(0x3d5)],[_0x12ab71],this['_handler']);return _0xbc031c['_schedule'](),_0xbc031c[_0x5c6838(0x272)](),_0xbc031c;}['onRemoteChangeset'](_0x3ecb57){const _0x283fd2=_0x473efc;if(this['_checkMissing'](_0x3ecb57))return this['_injector']['createInstance'](_0x1c5382,this[_0x283fd2(0xec)],this[_0x283fd2(0x3d5)],null,[],null,[_0x3ecb57],this[_0x283fd2(0x186)]);try{let _0x5c5f79=this[_0x283fd2(0x11c)][_0x283fd2(0x12f)](_0x3ecb57,[_0x3d4600['EmptyMutationInfo']]);if((0x0,_0x3d4600['isTransformMutationsWithChangesetSuccess'])(_0x5c5f79)){let {c1Prime:_0x470a38}=_0x5c5f79;return this['_executeRemoteChangeset'](_0x470a38),this;}throw _0x5c5f79['error'];}catch(_0x1689ea){return this['_logService'][_0x283fd2(0x3e6)](_0x1689ea),this[_0x283fd2(0x3a0)](!0x1);}}[_0x473efc(0x3a0)](_0x41694d){const _0xab9584=_0x473efc;return this[_0xab9584(0x28c)][_0xab9584(0x172)](_0x3b4b0d,this['unitID'],this['type'],null,[],this[_0xab9584(0x186)],_0x41694d);}[_0x473efc(0x147)](_0x51f9d6){const _0x4d2875=_0x473efc;if(_0x51f9d6[_0x4d2875(0x1e7)]<=this['_getCurrentRevision']())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x473efc(0x3b8)](){const _0x1526d6=_0x473efc;throw Error(_0x1526d6(0x121));}[_0x473efc(0x32a)](){return this;}[_0x473efc(0x2d1)](){const _0x5d051c=_0x473efc;return this[_0x5d051c(0x28c)]['createInstance'](_0x25311e,this['unitID'],this[_0x5d051c(0x3d5)],null,[],this[_0x5d051c(0x186)]);}['toggleOnline'](){return this;}[_0x473efc(0x16c)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x473efc(0xc1)](){const _0x7dea10=_0x473efc;let _0x3df072=this[_0x7dea10(0x1e3)]['getCurrentRevOfUnit'](this[_0x7dea10(0xec)]);return this[_0x7dea10(0x186)][_0x7dea10(0x2c0)]({'from':_0x3df072,'to':0x0}),this[_0x7dea10(0x28c)][_0x7dea10(0x172)](_0x1c5382,this[_0x7dea10(0xec)],this[_0x7dea10(0x3d5)],null,[],null,[],this[_0x7dea10(0x186)]);}};_0x4e41d6=_0x4da91b([_0x9a3e23(0x3,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x4,(0x0,_0x17ede7['Inject'])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x5,_0x17ede7[_0x473efc(0x158)]),_0x9a3e23(0x6,_0x17ede7['ICommandService']),_0x9a3e23(0x7,_0x17ede7['ILogService']),_0x9a3e23(0x8,_0x3d4600[_0x473efc(0x182)]),_0x9a3e23(0x9,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x4e41d6);let _0xe416b5=_0x33d01f=class extends _0x23a139{constructor(_0x49111f,_0x1a7d47,_0x3c9f19,_0x4dd806,_0x212cea,_0x5541c9,_0x2fa426,_0x446128,_0x81dd0a,_0x22b0b1,_0x16a679,_0x4ebff1,_0x27400a,_0x408e31){const _0x4f70fb=_0x473efc;super(_0x49111f,_0x1a7d47,null,_0x3c9f19,_0x4dd806,_0x81dd0a,_0x27400a,_0x5541c9,_0x408e31),this[_0x4f70fb(0x28c)]=_0x212cea,this[_0x4f70fb(0x2b9)]=_0x2fa426,this[_0x4f70fb(0x309)]=_0x446128,this[_0x4f70fb(0x414)]=_0x22b0b1,this['_transformService']=_0x16a679,this[_0x4f70fb(0x171)]=_0x4ebff1,_0x17f3d2(this,_0x4f70fb(0x273),'pending'),_0x17f3d2(this,_0x4f70fb(0x100),null),_0x17f3d2(this,_0x4f70fb(0x1d8),null);}[_0x473efc(0xdd)](_0x3fb83d){const _0x4a5a3d=_0x473efc;return this[_0x4a5a3d(0x2c2)][_0x4a5a3d(0x283)](_0x3fb83d),this[_0x4a5a3d(0x272)](),this;}['onRemoteChangeset'](_0xb6aa56){const _0x39277e=_0x473efc;if(this[_0x39277e(0x236)](_0xb6aa56))return this[_0x39277e(0x389)](),this[_0x39277e(0x28c)][_0x39277e(0x172)](_0x1c5382,this[_0x39277e(0xec)],this[_0x39277e(0x3d5)],null,this[_0x39277e(0x2c2)],null,[_0xb6aa56],this[_0x39277e(0x186)]);try{let _0x23c803=this[_0x39277e(0x11c)][_0x39277e(0x12f)](_0xb6aa56,this[_0x39277e(0x2c2)]);if((0x0,_0x3d4600['isTransformMutationsWithChangesetSuccess'])(_0x23c803)){let {c1Prime:_0x48f35b,m2Prime:_0x1d1b9a}=_0x23c803;this[_0x39277e(0xfe)](_0x48f35b);let _0x482a10=this[_0x39277e(0x28c)][_0x39277e(0x172)](_0x33d01f,this[_0x39277e(0xec)],this[_0x39277e(0x3d5)],_0x1d1b9a,this[_0x39277e(0x186)]);this[_0x39277e(0x389)]();let _0x4fadb3=new Date()[_0x39277e(0x29a)](),_0x56a6d7=this[_0x39277e(0x100)]?Math[_0x39277e(0x28e)](this[_0x39277e(0x100)]-_0x4fadb3,0x0):this[_0x39277e(0xd7)]();return _0x482a10[_0x39277e(0x15a)](_0x56a6d7),_0x482a10;}throw _0x23c803[_0x39277e(0x3e6)];}catch(_0x368fa2){return this['_logService']['error'](_0x368fa2),this[_0x39277e(0x3a0)](!0x1);}}[_0x473efc(0x147)](_0xa364b8){const _0x54d9bc=_0x473efc;if(_0xa364b8[_0x54d9bc(0x1e7)]<=this['_getCurrentRevision']())return this;throw Error(_0x54d9bc(0x185));}[_0x473efc(0x3b8)](){const _0x2291eb=_0x473efc;throw Error(_0x2291eb(0x3f5));}[_0x473efc(0x32a)](){return this;}['toggleOffline'](){const _0x33bebb=_0x473efc;return this[_0x33bebb(0x389)](),this[_0x33bebb(0x28c)][_0x33bebb(0x172)](_0x25311e,this['unitID'],this[_0x33bebb(0x3d5)],null,this[_0x33bebb(0x2c2)],this[_0x33bebb(0x186)]);}[_0x473efc(0x354)](){return this;}[_0x473efc(0x15a)](_0x35ae6f){const _0x3222ee=_0x473efc;let _0x17f59b=_0x35ae6f??this[_0x3222ee(0xd7)]();this[_0x3222ee(0x100)]=new Date()[_0x3222ee(0x29a)]()+_0x17f59b,this['_sendingTimer']=setTimeout(()=>{const _0x40a4d5=_0x3222ee;this['_clearScheduledTask']();let _0x229aef=null;switch(this[_0x40a4d5(0x3d5)]){case _0x17ede7[_0x40a4d5(0x1c0)][_0x40a4d5(0x1bc)]:_0x229aef=_0x57ca29(this[_0x40a4d5(0x2c2)],this[_0x40a4d5(0xec)],this[_0x40a4d5(0x171)],this[_0x40a4d5(0x1e3)],this[_0x40a4d5(0x2b9)]);break;case _0x17ede7[_0x40a4d5(0x1c0)][_0x40a4d5(0x399)]:_0x229aef=this['_pendingMutations']['every'](_0x5da340=>_0x5da340['id']===_0xc72b83[_0x40a4d5(0x169)]['id'])?_0x33b986(this[_0x40a4d5(0x2c2)],this[_0x40a4d5(0xec)],this['_univerInstanceService'],this[_0x40a4d5(0x1e3)],this[_0x40a4d5(0x2b9)]):_0x57ca29(this[_0x40a4d5(0x2c2)],this[_0x40a4d5(0xec)],this[_0x40a4d5(0x171)],this[_0x40a4d5(0x1e3)],this[_0x40a4d5(0x2b9)]);break;case _0x17ede7[_0x40a4d5(0x1c0)][_0x40a4d5(0xf2)]:_0x229aef=_0x17cfb5(this[_0x40a4d5(0x2c2)],this['unitID'],this['_univerInstanceService'],this[_0x40a4d5(0x1e3)],this['_userManagerService']);break;case _0x17ede7[_0x40a4d5(0x1c0)][_0x40a4d5(0x1ce)]:_0x229aef=_0x138757(this[_0x40a4d5(0x2c2)],this[_0x40a4d5(0xec)],this['_univerInstanceService'],this['_revisionService'],this['_userManagerService']);break;case _0x17ede7['UniverInstanceType'][_0x40a4d5(0x3b5)]:_0x229aef=_0x57ca29(this[_0x40a4d5(0x2c2)],this[_0x40a4d5(0xec)],this[_0x40a4d5(0x171)],this[_0x40a4d5(0x1e3)],this[_0x40a4d5(0x2b9)]);break;case _0x17ede7[_0x40a4d5(0x1c0)][_0x40a4d5(0x3e8)]:_0x229aef=_0x57ca29(this[_0x40a4d5(0x2c2)],this[_0x40a4d5(0xec)],this[_0x40a4d5(0x171)],this[_0x40a4d5(0x1e3)],this[_0x40a4d5(0x2b9)]);break;default:throw Error(_0x40a4d5(0x24f)+this['type']+_0x40a4d5(0x244));}let {changeset:_0x4b8dfe,pendingMutations:_0x16c101}=_0x229aef;this['_handler'][_0x40a4d5(0x3c2)](_0x4b8dfe);let _0xde464=_0x16c101[_0x40a4d5(0x2b6)]?this[_0x40a4d5(0x28c)][_0x40a4d5(0x172)](_0x163822,this['unitID'],this[_0x40a4d5(0x3d5)],_0x4b8dfe,_0x16c101,this[_0x40a4d5(0x186)],void 0x0):this[_0x40a4d5(0x28c)][_0x40a4d5(0x172)](_0x236f1c,this[_0x40a4d5(0xec)],this[_0x40a4d5(0x3d5)],_0x4b8dfe,this[_0x40a4d5(0x186)]);_0xde464['_updateLocalCache'](),this[_0x40a4d5(0x186)][_0x40a4d5(0x410)](this,_0xde464);},_0x17f59b);}[_0x473efc(0xd7)](){const _0xcc8e1e=_0x473efc;let _0x32be3e=this[_0xcc8e1e(0x414)][_0xcc8e1e(0x205)](_0x1f8831);return(_0x32be3e==null?void 0x0:_0x32be3e['sendChangesetTimeout'])??0x7d0;}[_0x473efc(0x16c)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x473efc(0x389)](){const _0x190706=_0x473efc;this[_0x190706(0x1d8)]!=null&&(clearTimeout(this[_0x190706(0x1d8)]),this[_0x190706(0x1d8)]=null);}[_0x473efc(0x3a0)](_0x7beb7){const _0x18ea2c=_0x473efc;return this['_clearScheduledTask'](),this['_injector'][_0x18ea2c(0x172)](_0x3b4b0d,this['unitID'],this['type'],null,this['_pendingMutations'],this[_0x18ea2c(0x186)],_0x7beb7);}};_0xe416b5=_0x33d01f=_0x4da91b([_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600['RevisionService'])),_0x9a3e23(0x6,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x3d4)])),_0x9a3e23(0x7,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0x8,_0x17ede7[_0x473efc(0x31c)]),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x201)]),_0x9a3e23(0xa,_0x3d4600['ITransformService']),_0x9a3e23(0xb,_0x17ede7['IUniverInstanceService']),_0x9a3e23(0xc,_0x17ede7[_0x473efc(0x158)]),_0x9a3e23(0xd,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0xe416b5);let _0x236f1c=_0x322b5f=class extends _0x23a139{constructor(_0x10a110,_0x5d13f3,_0x14900a,_0x58faa6,_0x3d8f07,_0x20148f,_0x530ea2,_0x154a4e,_0x375993,_0xae6a2a,_0x1597fc){const _0xeda210=_0x473efc;super(_0x10a110,_0x5d13f3,_0x14900a,[],_0x58faa6,_0x530ea2,_0xae6a2a,_0x20148f,_0x1597fc),this[_0xeda210(0x28c)]=_0x3d8f07,this[_0xeda210(0x309)]=_0x154a4e,this[_0xeda210(0x11c)]=_0x375993,_0x17f3d2(this,'status',_0xeda210(0x142)),_0x17f3d2(this,_0xeda210(0x29e),0x0),_0x17f3d2(this,_0xeda210(0x199),0x0),_0x17f3d2(this,_0xeda210(0x1c3),void 0x0),_0x17f3d2(this,_0xeda210(0x2e7),void 0x0);}[_0x473efc(0xdd)](_0x2dfd04){const _0x3e9913=_0x473efc;this[_0x3e9913(0x389)]();let _0xe0d14b=this[_0x3e9913(0x28c)][_0x3e9913(0x172)](_0x163822,this[_0x3e9913(0xec)],this['type'],this['_awaitingChangeset'],[_0x2dfd04],this[_0x3e9913(0x186)],this[_0x3e9913(0x1c3)]);return _0xe0d14b[_0x3e9913(0x272)](),_0xe0d14b;}['onRemoteChangeset'](_0x1d6d30){const _0x31b913=_0x473efc;if(this[_0x31b913(0x236)](_0x1d6d30))return this[_0x31b913(0x389)](),this[_0x31b913(0x28c)][_0x31b913(0x172)](_0x1c5382,this[_0x31b913(0xec)],this[_0x31b913(0x3d5)],this[_0x31b913(0x3dd)],[],null,[_0x1d6d30],this[_0x31b913(0x186)]);try{let _0x2a0a9f=this[_0x31b913(0x11c)][_0x31b913(0x21b)]([_0x1d6d30],[this['_awaitingChangeset']],!0x1);if((0x0,_0x3d4600['isTransformChangesetsSuccess'])(_0x2a0a9f)){let {c1Prime:_0x36e38e,c2Prime:_0x3f9e0e}=_0x2a0a9f;this['_executeRemoteChangeset'](_0x36e38e[0x0]),_0x3f9e0e[0x0][_0x31b913(0x231)]=this['_getCurrentRevision'](),this[_0x31b913(0x389)]();let _0x352e9f=this[_0x31b913(0x28c)][_0x31b913(0x172)](_0x322b5f,this[_0x31b913(0xec)],this[_0x31b913(0x3d5)],_0x3f9e0e[0x0],this['_handler']);return _0x352e9f['_updateLocalCache'](),_0x352e9f;}throw _0x2a0a9f['error'];}catch(_0x36b5b6){return this[_0x31b913(0x309)][_0x31b913(0x3e6)](_0x36b5b6),this[_0x31b913(0x3a0)](!0x1);}}[_0x473efc(0x147)](_0x17a5ce){const _0x1996b9=_0x473efc;this[_0x1996b9(0x389)]();let _0x10014c=this[_0x1996b9(0x1e3)]['getCurrentRevOfUnit'](this[_0x1996b9(0xec)]);if(_0x17a5ce[_0x1996b9(0x1e7)]<=_0x10014c)return this;if(this[_0x1996b9(0x236)](_0x17a5ce))return this['_injector'][_0x1996b9(0x172)](_0x1c5382,this[_0x1996b9(0xec)],this[_0x1996b9(0x3d5)],this['_awaitingChangeset'],[],_0x17a5ce[_0x1996b9(0x1e7)],[],this[_0x1996b9(0x186)]);this[_0x1996b9(0x355)]();let _0x16cbbd=this[_0x1996b9(0x28c)]['createInstance'](_0x4e41d6,this[_0x1996b9(0xec)],this[_0x1996b9(0x3d5)],this['_handler']);return _0x16cbbd[_0x1996b9(0x272)](),_0x16cbbd;}['onRemoteRej'](_0x316ad7){const _0x411448=_0x473efc;return this['_onConflict'](!!(_0x316ad7!=null&&_0x316ad7[_0x411448(0x248)]));}[_0x473efc(0x32a)](_0x4466b9){const _0x54e8b2=_0x473efc;return this[_0x54e8b2(0x199)]>_0x3c8c0d?this['toggleOffline']():(this[_0x54e8b2(0x1c3)]=_0x2a77ac(this[_0x54e8b2(0x29e)],{'timeout':this[_0x54e8b2(0x29e)],'reqId':_0x4466b9[_0x54e8b2(0xe3)]}),this[_0x54e8b2(0x2e7)]=this[_0x54e8b2(0x1c3)][_0x54e8b2(0x3bf)](({reqId:_0x5a1592,timeout:_0x4eba47})=>{const _0xc623c5=_0x54e8b2;this[_0xc623c5(0x334)](_0x5a1592,_0x4eba47);}),this);}[_0x473efc(0x2d1)](){const _0x4adb0e=_0x473efc;return this['_clearScheduledTask'](),this['_injector'][_0x4adb0e(0x172)](_0x25311e,this[_0x4adb0e(0xec)],this[_0x4adb0e(0x3d5)],this['_awaitingChangeset'],[],this[_0x4adb0e(0x186)]);}[_0x473efc(0x354)](){return this;}[_0x473efc(0x16c)](){const _0x5b5862=_0x473efc;this[_0x5b5862(0x186)][_0x5b5862(0x3c2)](this[_0x5b5862(0x3dd)]);}[_0x473efc(0x3a0)](_0xe892a7){const _0x3c8390=_0x473efc;return this[_0x3c8390(0x389)](),this['_injector'][_0x3c8390(0x172)](_0x3b4b0d,this[_0x3c8390(0xec)],this['type'],this[_0x3c8390(0x3dd)],[],this[_0x3c8390(0x186)],_0xe892a7);}[_0x473efc(0x334)](_0x4b5fe2,_0x182c9f){const _0xb9aedc=_0x473efc;var _0x3091e2;_0x4b5fe2===((_0x3091e2=this[_0xb9aedc(0x3dd)])==null?void 0x0:_0x3091e2[_0xb9aedc(0xe3)])&&(this[_0xb9aedc(0x16c)](),this['_resendTimeout']=_0x182c9f===0x0?0x3e8:Math['min'](_0x182c9f*0x2,_0xe821d0),this[_0xb9aedc(0x199)]+=this['_resendTimeout']);}[_0x473efc(0x389)](){const _0x4f7774=_0x473efc;var _0x39d9cb;(_0x39d9cb=this[_0x4f7774(0x2e7)])==null||_0x39d9cb['unsubscribe'](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x236f1c=_0x322b5f=_0x4da91b([_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['Injector'])),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x6,_0x17ede7[_0x473efc(0x31c)]),_0x9a3e23(0x7,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0x8,_0x3d4600[_0x473efc(0x182)]),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x158)]),_0x9a3e23(0xa,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x236f1c);let _0x163822=_0x179f55=class extends _0x23a139{constructor(_0x1d889f,_0x3b4132,_0x4dcd34,_0x2a8cc7,_0x10d6e6,_0x36a756,_0x1dc8cf,_0xc29e01,_0x26966b,_0x2d5b45,_0x1b6f51,_0x2bb798,_0x5aa475){const _0x29165c=_0x473efc;super(_0x1d889f,_0x3b4132,_0x4dcd34,_0x2a8cc7,_0x10d6e6,_0x26966b,_0x2bb798,_0xc29e01,_0x5aa475),this[_0x29165c(0x28c)]=_0x1dc8cf,this[_0x29165c(0x309)]=_0x2d5b45,this['_transformService']=_0x1b6f51,this['localCacheService']=_0x5aa475,_0x17f3d2(this,'status',_0x29165c(0x1b2)),_0x17f3d2(this,_0x29165c(0x29e),0x0),_0x17f3d2(this,_0x29165c(0x199),0x0),_0x17f3d2(this,'_resendTimer',void 0x0),_0x17f3d2(this,'_sender',void 0x0),_0x36a756&&(this['_resendTimer']=_0x36a756,this[_0x29165c(0x2e7)]=this['_resendTimer'][_0x29165c(0x3bf)](({reqId:_0x51943a,timeout:_0xbc87a})=>{const _0x46a5f4=_0x29165c;this[_0x46a5f4(0x334)](_0x51943a,_0xbc87a);}));}[_0x473efc(0xdd)](_0x8edb57){const _0x45678b=_0x473efc;return this['_pendingMutations'][_0x45678b(0x283)](_0x8edb57),this;}[_0x473efc(0x419)](_0x274967){const _0x19ef59=_0x473efc;if(this[_0x19ef59(0x236)](_0x274967))return this[_0x19ef59(0x389)](),this[_0x19ef59(0x28c)][_0x19ef59(0x172)](_0x1c5382,this[_0x19ef59(0xec)],this[_0x19ef59(0x3d5)],this[_0x19ef59(0x3dd)],this[_0x19ef59(0x2c2)],null,[_0x274967],this[_0x19ef59(0x186)]);try{let _0x3a5a20=this[_0x19ef59(0x11c)][_0x19ef59(0x21b)]([_0x274967],[this[_0x19ef59(0x3dd)]],!0x1);if((0x0,_0x3d4600[_0x19ef59(0x168)])(_0x3a5a20)){let {c1Prime:_0x164d43,c2Prime:_0x1d9b6c}=_0x3a5a20,_0x4c7b3a=this[_0x19ef59(0x11c)][_0x19ef59(0x12f)](_0x164d43[0x0],this[_0x19ef59(0x2c2)]);if((0x0,_0x3d4600[_0x19ef59(0x2ba)])(_0x4c7b3a)){let {c1Prime:_0x4a62a3,m2Prime:_0x4af58e}=_0x4c7b3a;return this[_0x19ef59(0xfe)](_0x4a62a3),_0x1d9b6c[0x0][_0x19ef59(0x231)]=this[_0x19ef59(0x2a8)](),this[_0x19ef59(0x389)](),this[_0x19ef59(0x28c)][_0x19ef59(0x172)](_0x179f55,this['unitID'],this[_0x19ef59(0x3d5)],_0x1d9b6c[0x0],_0x4af58e,this['_handler'],void 0x0);}throw _0x4c7b3a['error'];}throw _0x3a5a20[_0x19ef59(0x3e6)];}catch(_0x156120){return this[_0x19ef59(0x309)][_0x19ef59(0x3e6)](_0x156120),this[_0x19ef59(0x3a0)](!0x1);}}[_0x473efc(0x147)](_0x5489aa){const _0x25ee09=_0x473efc;this[_0x25ee09(0x389)]();let _0x12f589=this['_getCurrentRevision']();if(_0x5489aa['revision']<=_0x12f589)return this;if(this[_0x25ee09(0x236)](_0x5489aa))return this[_0x25ee09(0x28c)][_0x25ee09(0x172)](_0x1c5382,this[_0x25ee09(0xec)],this['type'],this[_0x25ee09(0x3dd)],this[_0x25ee09(0x2c2)],_0x5489aa[_0x25ee09(0x1e7)],[],this[_0x25ee09(0x186)]);this[_0x25ee09(0x355)]();let _0x16f364=this[_0x25ee09(0x28c)][_0x25ee09(0x172)](_0xe416b5,this[_0x25ee09(0xec)],this[_0x25ee09(0x3d5)],this[_0x25ee09(0x2c2)],this[_0x25ee09(0x186)]);return _0x16f364[_0x25ee09(0x15a)](),_0x16f364['_updateLocalCache'](),_0x16f364;}[_0x473efc(0x3b8)](_0x449bcd){const _0x46dbb0=_0x473efc;return this[_0x46dbb0(0x3a0)](!!(_0x449bcd!=null&&_0x449bcd[_0x46dbb0(0x248)]));}[_0x473efc(0x32a)](_0x2485cd){const _0x5ce77a=_0x473efc;return this[_0x5ce77a(0x199)]>_0x3c8c0d?this[_0x5ce77a(0x2d1)]():(this[_0x5ce77a(0x1c3)]=_0x2a77ac(this['_resendTimeout'],{'timeout':this[_0x5ce77a(0x29e)],'reqId':_0x2485cd[_0x5ce77a(0xe3)]}),this[_0x5ce77a(0x2e7)]=this[_0x5ce77a(0x1c3)][_0x5ce77a(0x3bf)](({reqId:_0x510582,timeout:_0x566aa0})=>{this['_resendWithTimeout'](_0x510582,_0x566aa0);}),this);}['toggleOffline'](){const _0x2a0f75=_0x473efc;return this['_clearScheduledTask'](),this[_0x2a0f75(0x28c)][_0x2a0f75(0x172)](_0x25311e,this[_0x2a0f75(0xec)],this[_0x2a0f75(0x3d5)],this[_0x2a0f75(0x3dd)],this['_pendingMutations'],this[_0x2a0f75(0x186)]);}[_0x473efc(0x354)](){return this;}['resend'](){const _0x10c1ed=_0x473efc;this['_handler'][_0x10c1ed(0x3c2)](this[_0x10c1ed(0x3dd)]);}[_0x473efc(0x3a0)](_0x30ccbf){const _0x45fe0d=_0x473efc;return this['_clearScheduledTask'](),this[_0x45fe0d(0x28c)]['createInstance'](_0x3b4b0d,this[_0x45fe0d(0xec)],this[_0x45fe0d(0x3d5)],null,this[_0x45fe0d(0x2c2)],this[_0x45fe0d(0x186)],_0x30ccbf);}[_0x473efc(0x334)](_0x4fb08a,_0x500c29){const _0x1fc554=_0x473efc;var _0x13a5ee;_0x4fb08a===((_0x13a5ee=this[_0x1fc554(0x3dd)])==null?void 0x0:_0x13a5ee['reqId'])&&(this[_0x1fc554(0x16c)](),this['_resendTimeout']=_0x500c29===0x0?0x3e8:Math['min'](_0x500c29*0x2,_0xe821d0),this[_0x1fc554(0x199)]+=this[_0x1fc554(0x29e)]);}[_0x473efc(0x389)](){const _0x287150=_0x473efc;var _0x45ac93;(_0x45ac93=this[_0x287150(0x2e7)])==null||_0x45ac93['unsubscribe'](),this[_0x287150(0x29e)]=0x0,this[_0x287150(0x199)]=0x0;}};_0x163822=_0x179f55=_0x4da91b([_0x9a3e23(0x6,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['Injector'])),_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x8,_0x17ede7['ICommandService']),_0x9a3e23(0x9,_0x17ede7['ILogService']),_0x9a3e23(0xa,_0x3d4600[_0x473efc(0x182)]),_0x9a3e23(0xb,_0x17ede7[_0x473efc(0x158)]),_0x9a3e23(0xc,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x163822);let _0x3b4b0d=class extends _0x23a139{constructor(_0x23f8e0,_0x314b24,_0x49e44b,_0xd87891,_0x459891,_0x555109=!0x1,_0x4d96b2,_0x5b3ab0,_0xcc55ca,_0x3e194f,_0xa9ea19,_0x5081c3,_0x1d2d74){const _0x1ed29e=_0x473efc;super(_0x23f8e0,_0x314b24,_0x49e44b,_0xd87891,_0x459891,_0x5b3ab0,_0xcc55ca,_0x3e194f,_0x1d2d74),this[_0x1ed29e(0x15f)]=_0x555109,this['_permissionService']=_0x4d96b2,this[_0x1ed29e(0x196)]=_0xa9ea19,this[_0x1ed29e(0x1fd)]=_0x5081c3,this[_0x1ed29e(0x14c)]=_0x1d2d74,_0x17f3d2(this,_0x1ed29e(0x273),_0x1ed29e(0x187)),this[_0x1ed29e(0x30c)](),this['_clearLocalCache'](),this[_0x1ed29e(0x120)]();}['appendMutation'](){return this;}[_0x473efc(0x419)](){return this;}[_0x473efc(0x147)](){return this;}[_0x473efc(0x3b8)](){return this;}[_0x473efc(0x32a)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}['resend'](){const _0xd786c5=_0x473efc;throw Error(_0xd786c5(0x137));}[_0x473efc(0x18c)](){const _0x443bf5=_0x473efc;var _0x21ec3b,_0x4d1dfd,_0x3f294f;(_0x21ec3b=this['_localCacheService'])==null||(_0x4d1dfd=_0x21ec3b[_0x443bf5(0x2f8)])==null||(_0x4d1dfd=_0x4d1dfd[_0x443bf5(0x107)](_0x21ec3b,this[_0x443bf5(0xec)],'conflict'))==null||_0x4d1dfd[_0x443bf5(0x1e1)](()=>void 0x0),(_0x3f294f=this['_localCacheService'])==null||_0x3f294f[_0x443bf5(0x409)](this['unitID'],this[_0x443bf5(0x3d5)],null,[]);}[_0x473efc(0x30c)](){const _0x270fcd=_0x473efc;this[_0x270fcd(0x15f)]?this['_collaborationUIEventService'][_0x270fcd(0x3b3)]({'id':_0x270fcd(0x217)}):this['_collaborationUIEventService'][_0x270fcd(0x3b3)]({'id':_0x270fcd(0x2fe)});}['_disableEditing'](){const _0x4d1c84=_0x473efc;this[_0x4d1c84(0x359)]['updatePermissionPoint'](new _0x43c3be['WorkbookEditablePermission'](this[_0x4d1c84(0xec)])['id'],!0x1);}};_0x3b4b0d=_0x4da91b([_0x9a3e23(0x6,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x29b)])),_0x9a3e23(0x7,_0x17ede7['ICommandService']),_0x9a3e23(0x8,_0x17ede7[_0x473efc(0x158)]),_0x9a3e23(0x9,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600['RevisionService'])),_0x9a3e23(0xa,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x10e)])),_0x9a3e23(0xb,(0x0,_0x17ede7['Inject'])(_0x2d7dce)),_0x9a3e23(0xc,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x3b4b0d);let _0x25311e=class extends _0x23a139{constructor(_0x10ef67,_0x206edb,_0x385078,_0x469200,_0x35693f,_0x3d1060,_0x5da40f,_0x1f92b7,_0x54a108,_0x3bbae9){const _0x2b190e=_0x473efc;super(_0x10ef67,_0x206edb,_0x385078,_0x469200,_0x35693f,_0x1f92b7,_0x54a108,_0x5da40f,_0x3bbae9),this[_0x2b190e(0x28c)]=_0x3d1060,_0x17f3d2(this,_0x2b190e(0x273),'offline');}[_0x473efc(0xdd)](_0x31f95d){const _0x2a9d60=_0x473efc;return this[_0x2a9d60(0x2c2)]['push'](_0x31f95d),this[_0x2a9d60(0x272)](),this;}[_0x473efc(0x419)](_0x2b178b){throw Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0xa44814=_0x473efc;throw Error(_0xa44814(0x358));}[_0x473efc(0x3b8)](){const _0x3d30e7=_0x473efc;throw Error(_0x3d30e7(0x2c8));}[_0x473efc(0x32a)](){return this;}[_0x473efc(0x2d1)](){return this;}[_0x473efc(0x354)](){const _0x4e62e4=_0x473efc;let {_injector:_0x543199,_pendingMutations:_0x35d7e8,_awaitingChangeset:_0x35c2cd,unitID:_0xc327e9,_handler:_0x1910c8,type:_0xfd5f15}=this,_0x5ba051=_0xc3a618(_0x543199,_0xc327e9,_0xfd5f15,_0x35c2cd,_0x35d7e8,_0x1910c8);return _0x5ba051 instanceof _0xe416b5?_0x5ba051[_0x4e62e4(0x15a)]():(_0x5ba051 instanceof _0x163822||_0x5ba051 instanceof _0x236f1c)&&_0x5ba051[_0x4e62e4(0x16c)](),_0x5ba051;}['resend'](){const _0x3e17ae=_0x473efc;throw Error(_0x3e17ae(0x39d));}};_0x25311e=_0x4da91b([_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x6,(0x0,_0x17ede7['Inject'])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x7,_0x17ede7[_0x473efc(0x31c)]),_0x9a3e23(0x8,_0x17ede7['IUndoRedoService']),_0x9a3e23(0x9,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x25311e);let _0x1c5382=class extends _0x23a139{constructor(_0x3c567c,_0x2e8109,_0x142235,_0x299f8a,_0x33f13e,_0x55b03a,_0x1b4cd4,_0x365a31,_0x43851a,_0xd8e2e9,_0x5ba702,_0x1a3e83,_0x52f06f,_0x3bc8b3){const _0x1f238e=_0x473efc;super(_0x3c567c,_0x2e8109,_0x142235,_0x299f8a,_0x1b4cd4,_0x5ba702,_0x1a3e83,_0x43851a,_0x3bc8b3),this[_0x1f238e(0x3b4)]=_0x33f13e,this['_queuedRemoteChangesets']=_0x55b03a,this[_0x1f238e(0x28c)]=_0x365a31,this['_logService']=_0xd8e2e9,this[_0x1f238e(0x11c)]=_0x52f06f,this[_0x1f238e(0x14c)]=_0x3bc8b3,_0x17f3d2(this,'status',_0x1f238e(0x1f0));}[_0x473efc(0x2d6)](_0x310488){const _0x1ad277=_0x473efc;try{if(this['_handleRemoteChangesets'](_0x310488)[_0x1ad277(0x300)])throw Error(_0x1ad277(0x3fb));if(this['_handleRemoteChangesets']([...this[_0x1ad277(0x266)]][_0x1ad277(0x34c)]((_0xe292de,_0x47d456)=>_0xe292de[_0x1ad277(0x1e7)]-_0x47d456['revision']))[_0x1ad277(0x300)])return this['_queuedRemoteChangesets']=[],this[_0x1ad277(0x272)](),this[_0x1ad277(0x186)][_0x1ad277(0x2c0)]({'from':this[_0x1ad277(0x2a8)](),'to':0x0}),this;let _0x50bdff=this[_0x1ad277(0x3dd)],_0x5caf9b=this[_0x1ad277(0x2c2)],_0x171320;if(_0x50bdff&&_0x5caf9b[_0x1ad277(0x2b6)]!==0x0)_0x171320=this[_0x1ad277(0x28c)][_0x1ad277(0x172)](_0x163822,this[_0x1ad277(0xec)],this[_0x1ad277(0x3d5)],_0x50bdff,_0x5caf9b,this[_0x1ad277(0x186)],void 0x0);else{if(_0x50bdff&&_0x5caf9b['length']===0x0)_0x50bdff['baseRev']=this[_0x1ad277(0x2a8)](),_0x171320=this['_injector']['createInstance'](_0x236f1c,this[_0x1ad277(0xec)],this[_0x1ad277(0x3d5)],_0x50bdff,this[_0x1ad277(0x186)]);else{if(_0x5caf9b[_0x1ad277(0x2b6)]!==0x0){let _0xf50f05=this[_0x1ad277(0x28c)]['createInstance'](_0xe416b5,this['unitID'],this[_0x1ad277(0x3d5)],_0x5caf9b,this[_0x1ad277(0x186)]);_0xf50f05[_0x1ad277(0x15a)](),_0x171320=_0xf50f05;}else _0x171320=this[_0x1ad277(0x28c)][_0x1ad277(0x172)](_0x4e41d6,this[_0x1ad277(0xec)],this[_0x1ad277(0x3d5)],this[_0x1ad277(0x186)]);}}return _0x171320['_updateLocalCache'](),_0x171320;}catch(_0x482556){return this[_0x1ad277(0x309)][_0x1ad277(0x3e6)](_0x1ad277(0x193),_0x1ad277(0x1b8),_0x482556),this[_0x1ad277(0x28c)][_0x1ad277(0x172)](_0x3b4b0d,this[_0x1ad277(0xec)],this[_0x1ad277(0x3d5)],this['_awaitingChangeset'],this[_0x1ad277(0x2c2)],this[_0x1ad277(0x186)],!0x1);}}[_0x473efc(0xc3)](_0x674460){const _0x50e43a=_0x473efc;this[_0x50e43a(0x3f0)]();for(let _0x29c627=0x0;_0x29c627<_0x674460[_0x50e43a(0x2b6)];_0x29c627++){let _0x2ce405=_0x674460[_0x29c627],_0x5a7440=this[_0x50e43a(0x2a8)]();if(!(_0x2ce405['revision']<=_0x5a7440)){if(_0x2ce405[_0x50e43a(0x1e7)]>_0x5a7440+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x2ce405)){this['_acknowledgeAwaiting']();continue;}this[_0x50e43a(0x37f)](_0x2ce405),this[_0x50e43a(0x3f0)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x4b64f9){const _0x3e5657=_0x473efc;let _0x5b9526=_0x4b64f9,_0x1a4d69=this['_awaitingChangeset'];if(_0x1a4d69){let _0x131f24=this[_0x3e5657(0x11c)][_0x3e5657(0x21b)]([_0x4b64f9],[_0x1a4d69],!0x1);if(!(0x0,_0x3d4600[_0x3e5657(0x168)])(_0x131f24))throw _0x131f24[_0x3e5657(0x3e6)];_0x5b9526=_0x131f24[_0x3e5657(0x162)][0x0],_0x1a4d69=_0x131f24['c2Prime'][0x0];}let _0x25cee1=this[_0x3e5657(0x2c2)];if(_0x25cee1[_0x3e5657(0x2b6)]){let _0x3a3364=this[_0x3e5657(0x11c)][_0x3e5657(0x12f)](_0x5b9526,_0x25cee1);if(!(0x0,_0x3d4600[_0x3e5657(0x2ba)])(_0x3a3364))throw _0x3a3364[_0x3e5657(0x3e6)];_0x5b9526=_0x3a3364[_0x3e5657(0x162)],_0x25cee1=_0x3a3364['m2Prime'];}this['_executeRemoteChangeset'](_0x5b9526),_0x1a4d69&&(_0x1a4d69[_0x3e5657(0x231)]=this['_getCurrentRevision']()),this[_0x3e5657(0x3dd)]=_0x1a4d69,this[_0x3e5657(0x2c2)]=_0x25cee1;}[_0x473efc(0x3f0)](){const _0x55a4dd=_0x473efc;if(!this[_0x55a4dd(0x3dd)]||this[_0x55a4dd(0x3b4)]==null)return;let _0x14f877=this[_0x55a4dd(0x2a8)]();if(this[_0x55a4dd(0x3b4)]<=_0x14f877)throw Error(_0x55a4dd(0x360)+this['_acknowledgedAwaitingRevision']+'.');this[_0x55a4dd(0x3b4)]===_0x14f877+0x1&&this[_0x55a4dd(0x38b)]();}[_0x473efc(0x38b)](){const _0x1693c5=_0x473efc;this[_0x1693c5(0x355)](),this[_0x1693c5(0x3dd)]=null,this[_0x1693c5(0x3b4)]=null;}['_isEchoedAwaitingChangeset'](_0x5820db){const _0x3bec9d=_0x473efc;let _0x204aff=this['_awaitingChangeset'];return!_0x204aff||!_0x204aff[_0x3bec9d(0x1ae)]||_0x204aff[_0x3bec9d(0xe3)]===null||_0x204aff['reqId']===void 0x0?!0x1:_0x5820db[_0x3bec9d(0xec)]===_0x204aff[_0x3bec9d(0xec)]&&_0x5820db[_0x3bec9d(0x1ae)]===_0x204aff[_0x3bec9d(0x1ae)]&&_0x5820db[_0x3bec9d(0xe3)]===_0x204aff[_0x3bec9d(0xe3)];}['resend'](){const _0x3f847a=_0x473efc;throw Error(_0x3f847a(0x2d4));}[_0x473efc(0xdd)](_0x29d3dc){const _0x4fb041=_0x473efc;return this[_0x4fb041(0x2c2)][_0x4fb041(0x283)](_0x29d3dc),this;}[_0x473efc(0x419)](_0x28f8f9){const _0x20030f=_0x473efc;return this[_0x20030f(0x266)][_0x20030f(0x283)](_0x28f8f9),this;}[_0x473efc(0x147)](_0x1e2e3d){const _0x33b08c=_0x473efc;if(this['_awaitingChangeset']){let _0x4bae1f=this[_0x33b08c(0x2a8)]();return _0x1e2e3d['revision']<=_0x4bae1f||(_0x4bae1f+0x1===_0x1e2e3d[_0x33b08c(0x1e7)]?(this[_0x33b08c(0x355)](),this['_awaitingChangeset']=null,this[_0x33b08c(0x3b4)]=null):this['_acknowledgedAwaitingRevision']=_0x1e2e3d['revision']),this;}if(_0x1e2e3d[_0x33b08c(0x1e7)]<=this[_0x33b08c(0x2a8)]())return this;throw Error(_0x33b08c(0x29d));}['onRemoteRej'](_0x31c97e){const _0x3dd008=_0x473efc;return this[_0x3dd008(0x3a0)](!!(_0x31c97e!=null&&_0x31c97e[_0x3dd008(0x248)]));}[_0x473efc(0x32a)](){return this;}[_0x473efc(0x2d1)](){const _0x358942=_0x473efc;return this[_0x358942(0x28c)][_0x358942(0x172)](_0x25311e,this[_0x358942(0xec)],this['type'],this[_0x358942(0x3dd)],this[_0x358942(0x2c2)],this[_0x358942(0x186)]);}[_0x473efc(0x354)](){return this;}[_0x473efc(0x3a0)](_0x25d202){const _0x7b2d91=_0x473efc;return this[_0x7b2d91(0x28c)][_0x7b2d91(0x172)](_0x3b4b0d,this[_0x7b2d91(0xec)],this[_0x7b2d91(0x3d5)],this[_0x7b2d91(0x3dd)],this[_0x7b2d91(0x2c2)],this['_handler'],_0x25d202);}};_0x1c5382=_0x4da91b([_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x8,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0xa,_0x17ede7[_0x473efc(0x31c)]),_0x9a3e23(0xb,_0x17ede7['IUndoRedoService']),_0x9a3e23(0xc,_0x3d4600[_0x473efc(0x182)]),_0x9a3e23(0xd,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x1c5382);function _0xc3a618(_0x4230bb,_0x49fbf6,_0x22ab3a,_0x453b6b,_0x513014,_0x17911e){const _0x2164fa=_0x473efc;return _0x453b6b&&_0x513014[_0x2164fa(0x2b6)]?_0x4230bb[_0x2164fa(0x172)](_0x163822,_0x49fbf6,_0x22ab3a,_0x453b6b,_0x513014,_0x17911e,void 0x0):_0x453b6b?_0x4230bb[_0x2164fa(0x172)](_0x236f1c,_0x49fbf6,_0x22ab3a,_0x453b6b,_0x17911e):_0x513014[_0x2164fa(0x2b6)]?_0x4230bb[_0x2164fa(0x172)](_0xe416b5,_0x49fbf6,_0x22ab3a,_0x513014,_0x17911e):_0x4230bb[_0x2164fa(0x172)](_0x4e41d6,_0x49fbf6,_0x22ab3a,_0x17911e);}let _0x458bcf=class extends _0x17ede7[_0x473efc(0x1a3)]{get[_0x473efc(0x195)](){const _0x531e28=_0x473efc;return this[_0x531e28(0x166)];}constructor(_0x2b8fbf,_0x3ee9ec,_0x2e8616,_0x1f2995,_0x19e6cd,_0x3b4f77,_0x14b177,_0x520cdc,_0x1916a7,_0x5b8fc7,_0x3a2a1c,_0x4659b7,_0x443334,_0x2fbbdc){const _0x13d8e1=_0x473efc;super(),this[_0x13d8e1(0xec)]=_0x2b8fbf,this[_0x13d8e1(0x305)]=_0x3ee9ec,this[_0x13d8e1(0xca)]=_0x2e8616,this['_injector']=_0x1f2995,this['_compressMutationService']=_0x19e6cd,this['_localeService']=_0x3b4f77,this[_0x13d8e1(0x1e3)]=_0x14b177,this[_0x13d8e1(0x26b)]=_0x520cdc,this[_0x13d8e1(0x171)]=_0x1916a7,this[_0x13d8e1(0x309)]=_0x5b8fc7,this['_commandService']=_0x3a2a1c,this['_permissionService']=_0x4659b7,this[_0x13d8e1(0x301)]=_0x443334,this[_0x13d8e1(0x3d0)]=_0x2fbbdc,_0x17f3d2(this,_0x13d8e1(0x268),new _0x1f9457[(_0x13d8e1(0x3c1))](null)),_0x17f3d2(this,_0x13d8e1(0x10b),this[_0x13d8e1(0x268)][_0x13d8e1(0x1b5)]()),_0x17f3d2(this,'_state',void 0x0),_0x17f3d2(this,'_collaborationPaused',!0x1),_0x17f3d2(this,_0x13d8e1(0x210),''),_0x17f3d2(this,'_changesetReqId',0x0),_0x17f3d2(this,'status$',this[_0x13d8e1(0x10b)][_0x13d8e1(0x2bf)]((0x0,_0x1f9457[_0x13d8e1(0xfb)])(_0xd9db4f=>_0xd9db4f?_0xd9db4f[_0x13d8e1(0x273)]:_0x13d8e1(0x29c)),(0x0,_0x1f9457[_0x13d8e1(0x1ac)])({'bufferSize':0x1,'refCount':!0x0}))),_0x17f3d2(this,_0x13d8e1(0x1a1),!0x1),_0x17f3d2(this,_0x13d8e1(0x2a7),[]);}async[_0x473efc(0x233)](){if(this['state'])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x473efc(0x40a)](){const _0x4ba744=_0x473efc;return this[_0x4ba744(0x253)]=!0x0,(0x0,_0x17ede7['toDisposable'])(()=>{const _0x55d588=_0x4ba744;this[_0x55d588(0x253)]=!0x1,this[_0x55d588(0x176)]();});}['onLocalMutation'](_0x9d8b16){const _0x4333e4=_0x473efc;this[_0x4333e4(0x129)](_0x9d8b16);}['_updateState'](_0xa3b39f){const _0x21965d=_0x473efc;this[_0x21965d(0x166)]=_0xa3b39f,this['_state$'][_0x21965d(0x2f5)](_0xa3b39f);}async[_0x473efc(0x215)](){const _0x148640=_0x473efc;if(this[_0x148640(0x11a)](await this[_0x148640(0x372)]()),this[_0x148640(0x301)]){var _0x3c3a42;(_0x3c3a42=this[_0x148640(0x301)])==null||_0x3c3a42['editingUnit'](this['unitID']),this[_0x148640(0x12e)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x148640(0xec)])[_0x148640(0x3bf)](_0x532297=>{const _0xb168c8=_0x148640;this[_0xb168c8(0x309)][_0xb168c8(0x2f9)](_0xb168c8(0x2ca),_0xb168c8(0x1dc),_0x532297),_0x532297===0x1?(this['_eventService'][_0xb168c8(0x3b3)]({'id':'OTHER_CLIENT_EDITING'}),this[_0xb168c8(0x359)][_0xb168c8(0xd4)](new _0x43c3be[(_0xb168c8(0x400))](this['unitID'])['id'],!0x1),this[_0xb168c8(0x359)][_0xb168c8(0x373)](!0x1)):(this['_permissionService'][_0xb168c8(0xd4)](new _0x43c3be[(_0xb168c8(0x400))](this[_0xb168c8(0xec)])['id'],!0x0),this[_0xb168c8(0x359)][_0xb168c8(0x373)](!0x0));}));}let _0x28f1f1=!0x1;return this['disposeWithMe'](this['session'][_0x148640(0x1bd)][_0x148640(0x3bf)](_0x54a771=>{const _0x8c4930=_0x148640;_0x54a771===0x3?this[_0x8c4930(0x117)](_0x28f1f1):_0x54a771===0x2&&(_0x28f1f1=!0x0,this[_0x8c4930(0x3a1)]());})),this[_0x148640(0x12e)](this[_0x148640(0x305)][_0x148640(0x2be)]['subscribe'](_0x1beb1e=>{const _0x2bc6af=_0x148640;try{switch(_0x1beb1e[_0x2bc6af(0x1fb)]){case _0x3d4600[_0x2bc6af(0x350)]['NEW_CHANGESETS']:this[_0x2bc6af(0x1c2)]((0x0,_0x3d4600[_0x2bc6af(0x388)])(_0x1beb1e['data']));break;case _0x3d4600['CollaborationEvent'][_0x2bc6af(0x183)]:this[_0x2bc6af(0x3d2)](_0x1beb1e[_0x2bc6af(0x1ab)]);break;case _0x3d4600[_0x2bc6af(0x350)][_0x2bc6af(0x30b)]:this['_onRemoteRejected']();break;case _0x3d4600[_0x2bc6af(0x350)]['CHANGESET_SHOULD_RETRY']:this[_0x2bc6af(0xc7)](_0x1beb1e[_0x2bc6af(0x1ab)]);break;case _0x3d4600[_0x2bc6af(0x350)][_0x2bc6af(0x25f)]:this[_0x2bc6af(0x2e6)](_0x1beb1e[_0x2bc6af(0x1ab)][_0x2bc6af(0x122)][_0x2bc6af(0xfb)](_0x5efeb4=>(0x0,_0x3d4600[_0x2bc6af(0x388)])(_0x5efeb4)));break;case _0x3d4600['CollaborationEvent']['PERMISSION_REJ']:this[_0x2bc6af(0x35d)]({'isPermissionRej':!0x0});break;case _0x3d4600['CollaborationEvent'][_0x2bc6af(0x31a)]:break;}}catch(_0x2d6bbd){throw console['error']('Error\x20on\x20receiving\x20event',_0x2d6bbd),_0x2d6bbd;}})),this['_state'];}['_unlockTransition'](){const _0x1f1736=_0x473efc;this[_0x1f1736(0x1a1)]=!0x1;}[_0x473efc(0x396)](){const _0x5eb3d3=_0x473efc;if(this[_0x5eb3d3(0x1a1)])throw Error(_0x5eb3d3(0xd9));this[_0x5eb3d3(0x1a1)]=!0x0;}['_onLocalMutation'](_0x327b40){const _0x15e6f0=_0x473efc;this['_lockTransition'](),this[_0x15e6f0(0x11a)](this['_state']['appendMutation'](_0x327b40)),this[_0x15e6f0(0x286)]();}[_0x473efc(0x1c2)](_0x5d4030){const _0x4ab717=_0x473efc;if(!(_0x5d4030['revision']<=this[_0x4ab717(0x1e3)][_0x4ab717(0x1aa)](this[_0x4ab717(0xec)]))){if(this[_0x4ab717(0x253)]){this[_0x4ab717(0x2a7)][_0x4ab717(0x283)](_0x5d4030);return;}this[_0x4ab717(0x220)](_0x5d4030);}}[_0x473efc(0x176)](){const _0x4a19c0=_0x473efc;this[_0x4a19c0(0x2a7)]['forEach'](_0xc3b616=>this[_0x4a19c0(0x220)](_0xc3b616)),this[_0x4a19c0(0x2a7)]=[];}['_applyRemoteChangeset'](_0xf50976){const _0x1ef998=_0x473efc;let _0x487c10=this[_0x1ef998(0x1e8)][_0x1ef998(0x1dd)][_0x1ef998(0x35c)](this[_0x1ef998(0x1e8)]['interceptor'][_0x1ef998(0x395)]()[_0x1ef998(0x11e)])(_0xf50976['mutations'],null)||_0xf50976[_0x1ef998(0x237)],_0x4ca38a={..._0xf50976,'mutations':_0x487c10};this[_0x1ef998(0x396)](),this[_0x1ef998(0x11a)](this['_state']['onRemoteChangeset'](_0x4ca38a)),this[_0x1ef998(0x286)]();}[_0x473efc(0x3d2)](_0x933695){const _0x385ea7=_0x473efc;this[_0x385ea7(0x396)](),this['_updateState'](this[_0x385ea7(0x166)][_0x385ea7(0x147)](_0x933695)),this['_unlockTransition']();}[_0x473efc(0x35d)](_0xe13a6f){const _0x139b50=_0x473efc;this[_0x139b50(0x396)](),this['_updateState'](this[_0x139b50(0x166)][_0x139b50(0x3b8)](_0xe13a6f)),this['_unlockTransition']();}[_0x473efc(0xc7)](_0x434e04){const _0x5a0066=_0x473efc;this[_0x5a0066(0x396)](),this[_0x5a0066(0x11a)](this[_0x5a0066(0x166)]['onRemoteRetry'](_0x434e04)),this[_0x5a0066(0x286)]();}[_0x473efc(0x2e6)](_0x48e8b5){const _0x1608e0=_0x473efc;if(!(this['_state']instanceof _0x1c5382))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x97f7f0=_0x48e8b5[_0x1608e0(0xfb)](_0x54e346=>{const _0x46f52a=_0x1608e0;let _0x4bd8a1=this[_0x46f52a(0x1e8)][_0x46f52a(0x1dd)][_0x46f52a(0x35c)](this['_compressMutationService'][_0x46f52a(0x1dd)][_0x46f52a(0x395)]()[_0x46f52a(0x11e)])(_0x54e346[_0x46f52a(0x237)],null)||_0x54e346['mutations'];return{..._0x54e346,'mutations':_0x4bd8a1};});this[_0x1608e0(0x396)](),this['_updateState'](this['_state'][_0x1608e0(0x2d6)](_0x97f7f0)),this[_0x1608e0(0x286)]();}[_0x473efc(0x3a1)](){const _0x5eb1a8=_0x473efc;this[_0x5eb1a8(0x396)](),this[_0x5eb1a8(0x11a)](this[_0x5eb1a8(0x166)][_0x5eb1a8(0x2d1)]()),this[_0x5eb1a8(0x286)]();}[_0x473efc(0x117)](_0xf13786=!0x1){const _0x40566e=_0x473efc;this[_0x40566e(0x396)](),this[_0x40566e(0x11a)](this[_0x40566e(0x166)][_0x40566e(0x354)]()),this[_0x40566e(0x286)]();let _0x2454a0=this[_0x40566e(0x166)];_0xf13786&&_0x2454a0 instanceof _0x4e41d6&&(this[_0x40566e(0x396)](),this[_0x40566e(0x11a)](_0x2454a0[_0x40566e(0xc1)]()),this[_0x40566e(0x286)]());}async[_0x473efc(0x372)](){return new Promise(_0x3bd16c=>{const _0x3d7f12=_0x2dd0;this['session'][_0x3d7f12(0x1bd)][_0x3d7f12(0x2bf)]((0x0,_0x1f9457[_0x3d7f12(0x207)])(0x1))[_0x3d7f12(0x3bf)](async _0x4416ec=>{const _0x219f3e=_0x3d7f12;_0x3bd16c(await this[_0x219f3e(0x3aa)](_0x4416ec===0x3));});});}[_0x473efc(0x2ff)](){const _0x2f6c5f=_0x473efc;let _0x133e16=this[_0x2f6c5f(0xec)];return{'onStateChange':(_0x2be4e2,_0x1e3553)=>{const _0x5806c3=_0x2f6c5f;if(_0x2be4e2!==this[_0x5806c3(0x166)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x2be4e2[_0x5806c3(0x273)]+_0x5806c3(0x2ef)+_0x1e3553[_0x5806c3(0x273)]+_0x5806c3(0x175)+this['_state'][_0x5806c3(0x273)]);this['_updateState'](_0x1e3553);},'onSendChangeset':_0x82fc10=>{const _0x1b8493=_0x2f6c5f;_0x82fc10['sid']||(_0x82fc10[_0x1b8493(0x1ae)]=this[_0x1b8493(0x210)],_0x82fc10[_0x1b8493(0xe3)]=++this[_0x1b8493(0x23c)]);let _0x4d804a={'eventID':_0x3d4600[_0x1b8493(0x350)][_0x1b8493(0x2da)],'data':{'unitID':_0x82fc10['unitID'],'unitType':this[_0x1b8493(0xca)],'changeset':_0x82fc10,'memberID':this[_0x1b8493(0x305)][_0x1b8493(0x3be)]()}};this[_0x1b8493(0x305)]['send'](_0x4d804a,this['unitID']);},'onMissingChangesets':({from:_0x146b5a,to:_0x482490})=>{const _0x560453=_0x2f6c5f;this[_0x560453(0x309)][_0x560453(0x2f9)](_0x560453(0x2ca),_0x560453(0x276)+_0x146b5a+'\x20to\x20'+_0x482490);let _0x4e445d={'eventID':_0x3d4600[_0x560453(0x350)][_0x560453(0x161)],'data':{'unitID':_0x133e16,'unitType':this[_0x560453(0xca)],'from':_0x146b5a,'to':_0x482490}};this['session']['send'](_0x4e445d,this[_0x560453(0xec)]);}};}async[_0x473efc(0x3aa)](_0x54afb9){const _0x338bf1=_0x473efc;var _0x4d5415;let _0x307a39=await((_0x4d5415=this[_0x338bf1(0x3d0)])==null?void 0x0:_0x4d5415['loadOfflineData'](this[_0x338bf1(0xec)])),_0x396f12=(_0x307a39==null?void 0x0:_0x307a39[_0x338bf1(0x237)])??[],_0x19bb7a=(_0x307a39==null?void 0x0:_0x307a39[_0x338bf1(0x1da)])??null,_0x2a7eb6=!!(_0x19bb7a!=null&&_0x19bb7a[_0x338bf1(0x1ae)])&&!!(_0x19bb7a!=null&&_0x19bb7a[_0x338bf1(0xe3)]);this[_0x338bf1(0x210)]=_0x2a7eb6?_0x19bb7a[_0x338bf1(0x1ae)]:(0x0,_0x3d4600[_0x338bf1(0x3f3)])(),this['_changesetReqId']=_0x2a7eb6?_0x19bb7a[_0x338bf1(0xe3)]:0x0;let _0x1c6c0f=this[_0x338bf1(0xec)];try{this[_0x338bf1(0x25b)](_0x19bb7a,_0x396f12);}catch(_0x4c4e29){this['_logService']['error'](_0x4c4e29);}let _0x5389e8=this['_createHandler']();if(_0x54afb9){let _0x48328a=_0xc3a618(this[_0x338bf1(0x28c)],_0x1c6c0f,this[_0x338bf1(0xca)],_0x19bb7a,_0x396f12,_0x5389e8);return _0x48328a instanceof _0xe416b5?_0x48328a[_0x338bf1(0x15a)]():(_0x48328a instanceof _0x163822||_0x48328a instanceof _0x236f1c)&&_0x48328a[_0x338bf1(0x16c)](),_0x48328a;}return this[_0x338bf1(0x28c)][_0x338bf1(0x172)](_0x25311e,_0x1c6c0f,this['_type'],_0x19bb7a,_0x396f12,_0x5389e8);}[_0x473efc(0x25b)](_0x272049,_0x4efdae){const _0x4a5a77=_0x473efc;var _0x2c6c54,_0x2ee6ea;let _0x389ab3=this['_compressMutationService'][_0x4a5a77(0x1dd)][_0x4a5a77(0x35c)](this[_0x4a5a77(0x1e8)][_0x4a5a77(0x1dd)]['getInterceptPoints']()[_0x4a5a77(0x11e)]);(_0x2c6c54=_0x389ab3((_0x272049==null?void 0x0:_0x272049[_0x4a5a77(0x237)])||[],null))==null||_0x2c6c54[_0x4a5a77(0x343)](_0xf7b0bf=>this[_0x4a5a77(0x39f)][_0x4a5a77(0x2c7)](_0xf7b0bf['id'],_0xf7b0bf[_0x4a5a77(0x1de)])),(_0x2ee6ea=_0x389ab3(_0x4efdae||[],null))==null||_0x2ee6ea[_0x4a5a77(0x343)](_0x59849f=>this[_0x4a5a77(0x39f)]['executeCommand'](_0x59849f['id'],_0x59849f[_0x4a5a77(0x1de)]));}};_0x458bcf=_0x4da91b([_0x9a3e23(0x3,(0x0,_0x17ede7['Inject'])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0x13f)])),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['LocaleService'])),_0x9a3e23(0x6,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x8,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0xa,_0x17ede7[_0x473efc(0x31c)]),_0x9a3e23(0xb,_0x17ede7['IPermissionService']),_0x9a3e23(0xc,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x549ce8)),_0x9a3e23(0xd,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x458bcf);let _0x5a3607=class extends _0x458bcf{constructor(_0x1a8ad1,_0x2db41e,_0x347591,_0x110a31,_0x15200d,_0x475e6c,_0x436687,_0x4bc98f,_0x4e8b7d,_0x1928b9,_0x374880,_0x5bdf2f,_0x6ce72a,_0x166540,_0x1042df){const _0x385ee8=_0x473efc;super(_0x1a8ad1,_0x347591,_0x2db41e,_0x110a31,_0x15200d,_0x475e6c,_0x436687,_0x4bc98f,_0x4e8b7d,_0x1928b9,_0x374880,_0x5bdf2f,_0x166540,_0x1042df),this['unitID']=_0x1a8ad1,this[_0x385ee8(0x3d5)]=_0x2db41e,this[_0x385ee8(0x38e)]=_0x6ce72a,_0x17f3d2(this,_0x385ee8(0x232),null);}['addHandlerCallback'](_0x5a7a93){const _0xcfaa37=_0x473efc;this[_0xcfaa37(0x232)]=_0x5a7a93;}[_0x473efc(0x335)](){const _0x196163=_0x473efc;this[_0x196163(0x232)]=null,super[_0x196163(0x335)]();}[_0x473efc(0x2ff)](){const _0x1db4b7=_0x473efc;let _0x3dc06b=super[_0x1db4b7(0x2ff)]();return _0x3dc06b[_0x1db4b7(0xde)]=_0x56f69d=>{const _0x9ba35f=_0x1db4b7;var _0x4bc7fd,_0x42cd9b;return(_0x4bc7fd=this[_0x9ba35f(0x232)])==null||(_0x42cd9b=_0x4bc7fd['onTransformIME'])==null?void 0x0:_0x42cd9b[_0x9ba35f(0x107)](_0x4bc7fd,_0x56f69d);},_0x3dc06b[_0x1db4b7(0x27c)]=_0x53c662=>{const _0xbbc9bc=_0x1db4b7;var _0x535cba,_0x4869b8;return(_0x535cba=this[_0xbbc9bc(0x232)])==null||(_0x4869b8=_0x535cba[_0xbbc9bc(0x27c)])==null?void 0x0:_0x4869b8[_0xbbc9bc(0x107)](_0x535cba,_0x53c662);},_0x3dc06b[_0x1db4b7(0x157)]=_0x16bd04=>{const _0xce4a01=_0x1db4b7;var _0x3af13c,_0x247190;return(_0x3af13c=this[_0xce4a01(0x232)])==null||(_0x247190=_0x3af13c[_0xce4a01(0x157)])==null?void 0x0:_0x247190[_0xce4a01(0x107)](_0x3af13c,_0x16bd04);},_0x3dc06b['onSyncEditingCollabCursor']=_0x157793=>{const _0x18e94c=_0x1db4b7;var _0x10783e,_0x2bf976;return(_0x10783e=this[_0x18e94c(0x232)])==null||(_0x2bf976=_0x10783e[_0x18e94c(0x270)])==null?void 0x0:_0x2bf976[_0x18e94c(0x107)](_0x10783e,_0x157793);},_0x3dc06b[_0x1db4b7(0x3d9)]=_0x22771f=>{const _0x4ec465=_0x1db4b7;var _0x1c5455,_0x165301;return((_0x1c5455=this[_0x4ec465(0x232)])==null||(_0x165301=_0x1c5455['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x165301['call'](_0x1c5455,_0x22771f))??_0x22771f;},_0x3dc06b['onTransformRemoteChangesetByStateCache']=_0x472be4=>{const _0x415842=_0x1db4b7;var _0x3e2625,_0x5cfb4d;return((_0x3e2625=this[_0x415842(0x232)])==null||(_0x5cfb4d=_0x3e2625['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x5cfb4d[_0x415842(0x107)](_0x3e2625,_0x472be4))??_0x472be4;},_0x3dc06b;}async[_0x473efc(0x215)](){const _0x528528=_0x473efc;let _0x14f59d=await super['_init']();return this['disposeWithMe'](this[_0x528528(0x38e)]['docStateChange$']['subscribe'](_0x3a2100=>{const _0x2ed379=_0x528528;if(_0x3a2100==null||_0x3a2100[_0x2ed379(0x298)]!==this[_0x2ed379(0xec)])return;let {commandId:_0x5456fa,redoState:_0xb806f4,unitId:_0x147bb9}=_0x3a2100,_0x501226={'id':_0x5456fa,'type':_0x17ede7[_0x2ed379(0x1a6)][_0x2ed379(0x3d1)],'params':{'unitId':_0x147bb9,'actions':_0xb806f4[_0x2ed379(0x1a8)],'textRanges':null}};this[_0x2ed379(0x129)](_0x501226);})),this[_0x528528(0x12e)](this[_0x528528(0x39f)][_0x528528(0x2e2)]((_0x57bb63,_0x13a59d)=>{const _0x56735e=_0x528528;if(_0x57bb63['type']!==_0x17ede7[_0x56735e(0x1a6)][_0x56735e(0x3d1)]||_0x13a59d!=null&&_0x13a59d[_0x56735e(0x3a4)]||_0x13a59d!=null&&_0x13a59d[_0x56735e(0x2ae)]||_0x57bb63['id']===_0xc72b83['RichTextEditingMutation']['id'])return;let _0x390a17=_0x57bb63['params'];if((_0x390a17==null?void 0x0:_0x390a17['unitId'])!==this[_0x56735e(0xec)])return;let _0x3088f3=_0x57bb63,_0x1d96b5=this[_0x56735e(0x1e8)][_0x56735e(0x1dd)][_0x56735e(0x35c)](this[_0x56735e(0x1e8)][_0x56735e(0x1dd)][_0x56735e(0x395)]()[_0x56735e(0x39e)])([_0x3088f3],this[_0x56735e(0x171)])||[_0x3088f3];this[_0x56735e(0x129)](_0x1d96b5[0x0]);})),_0x14f59d;}};_0x5a3607=_0x4da91b([_0x9a3e23(0x3,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x4,(0x0,_0x17ede7['Inject'])(_0x3d4600[_0x473efc(0x13f)])),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x10e)])),_0x9a3e23(0x6,(0x0,_0x17ede7['Inject'])(_0x3d4600['RevisionService'])),_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x8,_0x17ede7['IUniverInstanceService']),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0xa,_0x17ede7[_0x473efc(0x31c)]),_0x9a3e23(0xb,_0x17ede7[_0x473efc(0x29b)]),_0x9a3e23(0xc,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0xc72b83['DocStateChangeManagerService'])),_0x9a3e23(0xd,(0x0,_0x17ede7['Optional'])(_0x549ce8)),_0x9a3e23(0xe,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x5a3607);let _0x1cfeae=class extends _0x458bcf{constructor(_0x210998,_0x5d1a61,_0x27e9da,_0x56c0c4,_0x4e79d3,_0x27cc38,_0x89c858,_0xd36b1b,_0x32ffd4,_0x358db0,_0x324a26,_0x264725,_0x51595a,_0x7b5ca5){const _0x5266c7=_0x473efc;super(_0x210998,_0x27e9da,_0x5d1a61,_0x56c0c4,_0x4e79d3,_0x27cc38,_0x89c858,_0xd36b1b,_0x32ffd4,_0x358db0,_0x324a26,_0x264725,_0x51595a,_0x7b5ca5),this[_0x5266c7(0xec)]=_0x210998,this[_0x5266c7(0x3d5)]=_0x5d1a61;}async[_0x473efc(0x215)](){const _0x32da93=_0x473efc;let _0x44bf1c=await super[_0x32da93(0x215)]();return this[_0x32da93(0x12e)](this[_0x32da93(0x39f)][_0x32da93(0x2e2)]((_0x350a71,_0x4307ed)=>{const _0x3d600f=_0x32da93;if(_0x350a71['type']!==_0x17ede7[_0x3d600f(0x1a6)][_0x3d600f(0x3d1)]||_0x4307ed!=null&&_0x4307ed[_0x3d600f(0x3a4)]||_0x4307ed!=null&&_0x4307ed[_0x3d600f(0x2ae)])return;let _0x43af36=_0x350a71[_0x3d600f(0x1de)];if((_0x43af36==null?void 0x0:_0x43af36['unitId'])!==this[_0x3d600f(0xec)])return;let _0xedbb99=_0x350a71,_0x111fd1=this['_compressMutationService'][_0x3d600f(0x1dd)][_0x3d600f(0x35c)](this['_compressMutationService'][_0x3d600f(0x1dd)]['getInterceptPoints']()[_0x3d600f(0x39e)])([_0xedbb99],this[_0x3d600f(0x171)])||[_0xedbb99];this[_0x3d600f(0x129)](_0x111fd1[0x0]);})),_0x44bf1c;}};_0x1cfeae=_0x4da91b([_0x9a3e23(0x3,(0x0,_0x17ede7['Inject'])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600['CompressMutationService'])),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x10e)])),_0x9a3e23(0x6,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600['RevisionService'])),_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x8,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0xa,_0x17ede7['ICommandService']),_0x9a3e23(0xb,_0x17ede7[_0x473efc(0x29b)]),_0x9a3e23(0xc,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x549ce8)),_0x9a3e23(0xd,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x1cfeae);let _0x399b0b=class extends _0x458bcf{constructor(_0x21660a,_0x4fa001,_0x21f0ca,_0x546f72,_0x2e19f0,_0x480331,_0x6ec786,_0x1b122f,_0x3f863a,_0x110a8d,_0x369268,_0xc04629,_0x54c242,_0x5ac226,_0x89a460){const _0x3a48ec=_0x473efc;super(_0x21660a,_0x21f0ca,_0x4fa001,_0x546f72,_0x2e19f0,_0x480331,_0x6ec786,_0x3f863a,_0x110a8d,_0x369268,_0xc04629,_0x54c242,_0x5ac226,_0x89a460),this[_0x3a48ec(0xec)]=_0x21660a,this[_0x3a48ec(0x3d5)]=_0x4fa001,this[_0x3a48ec(0x212)]=_0x1b122f;}[_0x473efc(0x2ff)](){const _0x16f1b5=_0x473efc;let _0x28b1af=super['_createHandler']();return _0x28b1af[_0x16f1b5(0x157)]=_0x206807=>this[_0x16f1b5(0x212)][_0x16f1b5(0x19c)](_0x206807),_0x28b1af;}async['_init'](){const _0x544a20=_0x473efc;let _0x2e4ef4=await super[_0x544a20(0x215)]();return this[_0x544a20(0x12e)](this[_0x544a20(0x39f)][_0x544a20(0x2e2)]((_0x5dbc10,_0xf95eaa)=>{const _0x4af06e=_0x544a20;if(_0x5dbc10[_0x4af06e(0x3d5)]!==_0x17ede7[_0x4af06e(0x1a6)]['MUTATION']||_0xf95eaa!=null&&_0xf95eaa[_0x4af06e(0x3a4)]||_0xf95eaa!=null&&_0xf95eaa[_0x4af06e(0x2ae)])return;let _0x4154cb=_0x5dbc10[_0x4af06e(0x1de)];if((_0x4154cb==null?void 0x0:_0x4154cb[_0x4af06e(0x298)])!==this[_0x4af06e(0xec)])return;let _0x528786=_0x5dbc10,_0x50d3b0=this[_0x4af06e(0x1e8)][_0x4af06e(0x1dd)][_0x4af06e(0x35c)](this[_0x4af06e(0x1e8)]['interceptor'][_0x4af06e(0x395)]()[_0x4af06e(0x39e)])([_0x528786],this['_univerInstanceService'])||[_0x528786];this['_onLocalMutation'](_0x50d3b0[0x0]);})),_0x2e4ef4;}};_0x399b0b=_0x4da91b([_0x9a3e23(0x3,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['Injector'])),_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0x13f)])),_0x9a3e23(0x5,(0x0,_0x17ede7['Inject'])(_0x17ede7['LocaleService'])),_0x9a3e23(0x6,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x7,(0x0,_0x17ede7['Inject'])(_0x62027)),_0x9a3e23(0x8,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0xa,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0xb,_0x17ede7['ICommandService']),_0x9a3e23(0xc,_0x17ede7[_0x473efc(0x29b)]),_0x9a3e23(0xd,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x549ce8)),_0x9a3e23(0xe,(0x0,_0x17ede7['Optional'])(_0x4386bd))],_0x399b0b);let _0x7459fd=class extends _0x458bcf{constructor(_0x368a26,_0x45639d,_0x5b6337,_0x9dc73b,_0x3d4bfd,_0xe7a133,_0x18946f,_0x560635,_0xa61bf4,_0xed4ed0,_0x47bddc,_0x13ba05,_0x31b7b2,_0x4b0b6c){const _0x362341=_0x473efc;super(_0x368a26,_0x5b6337,_0x45639d,_0x9dc73b,_0x3d4bfd,_0xe7a133,_0x18946f,_0x560635,_0xa61bf4,_0xed4ed0,_0x47bddc,_0x13ba05,_0x31b7b2,_0x4b0b6c),this[_0x362341(0xec)]=_0x368a26,this[_0x362341(0x3d5)]=_0x45639d;}async['_init'](){const _0x4614ab=_0x473efc;let _0x65ecdd=await super[_0x4614ab(0x215)]();return this['disposeWithMe'](this[_0x4614ab(0x39f)]['onMutationExecutedForCollab']((_0x44c854,_0x345b8e)=>{const _0x32daf3=_0x4614ab;if(_0x44c854[_0x32daf3(0x3d5)]!==_0x17ede7[_0x32daf3(0x1a6)]['MUTATION']||_0x345b8e!=null&&_0x345b8e[_0x32daf3(0x3a4)]||_0x345b8e!=null&&_0x345b8e[_0x32daf3(0x2ae)])return;let _0x1e9705=_0x44c854[_0x32daf3(0x1de)];if((_0x1e9705==null?void 0x0:_0x1e9705[_0x32daf3(0x298)])!==this['unitID'])return;let _0xf5ecc4=_0x44c854,_0x34862a=this[_0x32daf3(0x1e8)]['interceptor'][_0x32daf3(0x35c)](this[_0x32daf3(0x1e8)][_0x32daf3(0x1dd)][_0x32daf3(0x395)]()[_0x32daf3(0x39e)])([_0xf5ecc4],this[_0x32daf3(0x171)])||[_0xf5ecc4];this[_0x32daf3(0x129)](_0x34862a[0x0]);})),_0x65ecdd;}};_0x7459fd=_0x4da91b([_0x9a3e23(0x3,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600['CompressMutationService'])),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['LocaleService'])),_0x9a3e23(0x6,(0x0,_0x17ede7['Inject'])(_0x3d4600['RevisionService'])),_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x8,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0xa,_0x17ede7[_0x473efc(0x31c)]),_0x9a3e23(0xb,_0x17ede7['IPermissionService']),_0x9a3e23(0xc,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x549ce8)),_0x9a3e23(0xd,(0x0,_0x17ede7['Optional'])(_0x4386bd))],_0x7459fd);let _0x28070e=class extends _0x458bcf{constructor(_0xb28fe,_0x5bf5f3,_0x6c8d62,_0x11f398,_0x26f7e3,_0x30d4b5,_0x64a599,_0xe40f40,_0x33fc08,_0x4f8984,_0x2d20e5,_0x52e5d6,_0x344a12,_0x5806f0){const _0x5c4bca=_0x473efc;super(_0xb28fe,_0x6c8d62,_0x5bf5f3,_0x11f398,_0x26f7e3,_0x30d4b5,_0x64a599,_0xe40f40,_0x33fc08,_0x4f8984,_0x2d20e5,_0x52e5d6,_0x344a12,_0x5806f0),this[_0x5c4bca(0xec)]=_0xb28fe,this[_0x5c4bca(0x3d5)]=_0x5bf5f3;}async[_0x473efc(0x215)](){const _0x129272=_0x473efc;let _0x5d4e00=await super[_0x129272(0x215)]();return this[_0x129272(0x12e)](this[_0x129272(0x39f)][_0x129272(0x2e2)]((_0x2b04f9,_0x5684c8)=>{const _0x5999d6=_0x129272;if(_0x2b04f9[_0x5999d6(0x3d5)]!==_0x17ede7[_0x5999d6(0x1a6)][_0x5999d6(0x3d1)]||_0x5684c8!=null&&_0x5684c8[_0x5999d6(0x3a4)]||_0x5684c8!=null&&_0x5684c8[_0x5999d6(0x2ae)])return;let _0x36743e=_0x2b04f9['params'];if((_0x36743e==null?void 0x0:_0x36743e[_0x5999d6(0x298)])!==this[_0x5999d6(0xec)])return;let _0x1cb23=_0x2b04f9,_0x4fa770=this[_0x5999d6(0x1e8)][_0x5999d6(0x1dd)][_0x5999d6(0x35c)](this[_0x5999d6(0x1e8)][_0x5999d6(0x1dd)][_0x5999d6(0x395)]()[_0x5999d6(0x39e)])([_0x1cb23],this[_0x5999d6(0x171)])||[_0x1cb23];this[_0x5999d6(0x129)](_0x4fa770[0x0]);})),_0x5d4e00;}};_0x28070e=_0x4da91b([_0x9a3e23(0x3,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0x13f)])),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['LocaleService'])),_0x9a3e23(0x6,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x8,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0xa,_0x17ede7['ICommandService']),_0x9a3e23(0xb,_0x17ede7[_0x473efc(0x29b)]),_0x9a3e23(0xc,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x549ce8)),_0x9a3e23(0xd,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x28070e);let _0x30dd3f=class extends _0x458bcf{constructor(_0x5a7990,_0x10500b,_0x5386da,_0x4f4872,_0x57d515,_0x40d158,_0xf36c73,_0x3e9056,_0x47eace,_0x2c3a10,_0x5ceb83,_0x74ea3b,_0x4a7b98,_0x27dfb7){const _0x51f097=_0x473efc;super(_0x5a7990,_0x5386da,_0x10500b,_0x4f4872,_0x57d515,_0x40d158,_0xf36c73,_0x3e9056,_0x47eace,_0x2c3a10,_0x5ceb83,_0x74ea3b,_0x4a7b98,_0x27dfb7),this[_0x51f097(0xec)]=_0x5a7990,this['type']=_0x10500b;}async[_0x473efc(0x215)](){const _0xcc21ca=_0x473efc;let _0x1e5965=await super[_0xcc21ca(0x215)]();return this[_0xcc21ca(0x12e)](this[_0xcc21ca(0x39f)]['onMutationExecutedForCollab']((_0x336826,_0x31a370)=>{const _0x333878=_0xcc21ca;if(_0x336826[_0x333878(0x3d5)]!==_0x17ede7['CommandType'][_0x333878(0x3d1)]||_0x31a370!=null&&_0x31a370[_0x333878(0x3a4)]||_0x31a370!=null&&_0x31a370[_0x333878(0x2ae)])return;let _0x6b564c=_0x336826[_0x333878(0x1de)];if((_0x6b564c==null?void 0x0:_0x6b564c['unitId'])!==this['unitID'])return;let _0x4bddba=_0x336826,_0x401bc4=this[_0x333878(0x1e8)][_0x333878(0x1dd)][_0x333878(0x35c)](this[_0x333878(0x1e8)]['interceptor'][_0x333878(0x395)]()[_0x333878(0x39e)])([_0x4bddba],this[_0x333878(0x171)])||[_0x4bddba];this[_0x333878(0x129)](_0x401bc4[0x0]);})),_0x1e5965;}};_0x30dd3f=_0x4da91b([_0x9a3e23(0x3,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['Injector'])),_0x9a3e23(0x4,(0x0,_0x17ede7['Inject'])(_0x3d4600['CompressMutationService'])),_0x9a3e23(0x5,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x10e)])),_0x9a3e23(0x6,(0x0,_0x17ede7['Inject'])(_0x3d4600[_0x473efc(0xed)])),_0x9a3e23(0x7,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x8,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0x9,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0xa,_0x17ede7['ICommandService']),_0x9a3e23(0xb,_0x17ede7[_0x473efc(0x29b)]),_0x9a3e23(0xc,(0x0,_0x17ede7['Optional'])(_0x549ce8)),_0x9a3e23(0xd,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x30dd3f);let _0x4c48ae=(0x0,_0x17ede7[_0x473efc(0x1cb)])(_0x473efc(0x25a));function _0x598fbe(_0x400b16){const _0x541fd7=_0x473efc;let _0x29cc7f=_0x400b16['data'],_0x559ce9=JSON[_0x541fd7(0x206)](_0x29cc7f);switch(_0x559ce9[_0x541fd7(0x258)]){case _0x3d2f85[_0x541fd7(0x1c9)][_0x541fd7(0x203)]:case _0x3d2f85[_0x541fd7(0x1c9)][_0x541fd7(0x18f)]:{let _0x529456=_0x559ce9[_0x541fd7(0x2d5)];return{..._0x559ce9,'data':_0x529456,'cmd':_0x559ce9[_0x541fd7(0x258)]};}case _0x3d2f85[_0x541fd7(0x1c9)][_0x541fd7(0x102)]:{let _0x3b54ee=_0x559ce9[_0x541fd7(0x2b2)];return{..._0x559ce9,'data':_0x3b54ee,'cmd':_0x559ce9['cmd']};}case _0x3d2f85[_0x541fd7(0x1c9)][_0x541fd7(0x111)]:{let _0x21916b=_0x559ce9[_0x541fd7(0x190)];switch(_0x21916b[_0x541fd7(0x1fb)]){case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x348)]:var _0x498883;return{..._0x559ce9,'data':{..._0x21916b,'data':(_0x498883=_0x21916b[_0x541fd7(0x1c7)])==null?void 0x0:_0x498883['cs']},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600[_0x541fd7(0x350)]['CHANGESET_ACK']:var _0x172d90;return{..._0x559ce9,'data':{..._0x21916b,'data':(_0x172d90=_0x21916b[_0x541fd7(0x20d)])==null?void 0x0:_0x172d90['cs']},'cmd':_0x559ce9['cmd']};case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x211)]:var _0x1b7fb7;return{..._0x559ce9,'data':{..._0x21916b,'data':(_0x1b7fb7=_0x21916b[_0x541fd7(0x112)])==null?void 0x0:_0x1b7fb7['cs']},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x30b)]:var _0x4b7e07;return{..._0x559ce9,'data':{..._0x21916b,'data':(_0x4b7e07=_0x21916b[_0x541fd7(0x31b)])==null?void 0x0:_0x4b7e07['cs']},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600['CollaborationEvent'][_0x541fd7(0x289)]:var _0x18823d;return{..._0x559ce9,'data':{..._0x21916b,'data':(_0x18823d=_0x21916b[_0x541fd7(0x3f1)])==null?void 0x0:_0x18823d['cs']},'cmd':_0x559ce9['cmd']};case _0x3d4600['CollaborationEvent'][_0x541fd7(0x1f2)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0x299)]},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x1ef)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0x25c)]},'cmd':_0x559ce9['cmd']};case _0x3d4600['CollaborationEvent'][_0x541fd7(0x3a9)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0x1be)]},'cmd':_0x559ce9['cmd']};case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x110)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0x2b5)]},'cmd':_0x559ce9['cmd']};case _0x3d4600['CollaborationEvent'][_0x541fd7(0x19e)]:case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x2bc)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0x338)]},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600['CollaborationEvent'][_0x541fd7(0x262)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0x2b5)]},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600['CollaborationEvent'][_0x541fd7(0x34e)]:return{..._0x559ce9,'data':_0x21916b,'cmd':_0x559ce9['cmd']};case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x214)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0xf1)]},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x384)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b['updatePermissionObjEvent']},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600[_0x541fd7(0x350)][_0x541fd7(0x3a8)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0x132)]},'cmd':_0x559ce9[_0x541fd7(0x258)]};case _0x3d4600['CollaborationEvent'][_0x541fd7(0x31a)]:return{..._0x559ce9,'data':{..._0x21916b,'data':_0x21916b[_0x541fd7(0x336)]},'cmd':_0x559ce9[_0x541fd7(0x258)]};default:return _0x559ce9;}}default:return _0x559ce9;}}function _0x91444b(_0x3a0f3d){const _0x182f1a=_0x473efc;switch(_0x3a0f3d[_0x182f1a(0x258)]){case _0x3d2f85['CombCmd'][_0x182f1a(0x203)]:case _0x3d2f85[_0x182f1a(0x1c9)]['HELLO']:return JSON[_0x182f1a(0x317)]({'cmd':_0x3a0f3d[_0x182f1a(0x258)],'routeKey':_0x3a0f3d['routeKey']});case _0x3d2f85['CombCmd'][_0x182f1a(0xfa)]:{let _0x4c8624;switch(_0x3a0f3d[_0x182f1a(0x1ab)][_0x182f1a(0x1fb)]){case _0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x1f2)]:_0x4c8624={'eventID':_0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x1f2)],'updateCursorEvent':_0x3a0f3d[_0x182f1a(0x1ab)][_0x182f1a(0x1ab)]};break;case _0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x3a9)]:_0x4c8624={'eventID':_0x3d4600[_0x182f1a(0x350)]['USERS_LEAVE'],'leaveEvent':_0x3a0f3d[_0x182f1a(0x1ab)]['data']};break;case _0x3d4600[_0x182f1a(0x350)]['USERS_ENTER']:_0x4c8624={'eventID':_0x3d4600[_0x182f1a(0x350)]['USERS_ENTER'],'joinEvent':_0x3a0f3d['data'][_0x182f1a(0x1ab)]};break;case _0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x110)]:_0x4c8624={'eventID':_0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x110)],'liveShareNewHost':_0x3a0f3d['data'][_0x182f1a(0x1ab)]};break;case _0x3d4600[_0x182f1a(0x350)]['LIVESHARE_OPERATION']:_0x4c8624={'eventID':_0x3d4600['CollaborationEvent']['LIVESHARE_OPERATION'],'liveShareOperation':_0x3a0f3d[_0x182f1a(0x1ab)]['data']};break;case _0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x262)]:_0x4c8624={'eventID':_0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x262)],'liveShareTerminate':_0x3a0f3d[_0x182f1a(0x1ab)][_0x182f1a(0x1ab)]};break;case _0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x351)]:_0x4c8624={'eventID':_0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x351)],'liveShareRequestHost':_0x3a0f3d[_0x182f1a(0x1ab)]['data']};break;case _0x3d4600[_0x182f1a(0x350)][_0x182f1a(0x19e)]:_0x4c8624={'eventID':_0x3d4600['CollaborationEvent'][_0x182f1a(0x19e)]};break;default:_0x4c8624={'eventID':_0x3a0f3d[_0x182f1a(0x1ab)][_0x182f1a(0x1fb)]};}return JSON[_0x182f1a(0x317)]({'cmd':_0x3a0f3d[_0x182f1a(0x258)],'routeKey':_0x3a0f3d[_0x182f1a(0x28d)],'collaMsg':_0x4c8624});}case _0x3d2f85[_0x182f1a(0x1c9)][_0x182f1a(0x102)]:return JSON[_0x182f1a(0x317)]({'cmd':_0x3a0f3d['cmd'],'routeKey':_0x3a0f3d[_0x182f1a(0x28d)],'joinReq':_0x3a0f3d[_0x182f1a(0x1ab)]});case _0x3d2f85['CombCmd'][_0x182f1a(0x3b7)]:return JSON['stringify']({'cmd':_0x3a0f3d[_0x182f1a(0x258)],'routeKey':_0x3a0f3d[_0x182f1a(0x28d)],'leaveReq':_0x3a0f3d[_0x182f1a(0x1ab)]});default:throw Error(_0x182f1a(0x287));}}let _0x2e376b=(0x0,_0x17ede7[_0x473efc(0x1cb)])(_0x473efc(0x1b7));function _0x2c930a(_0x5a693c,_0x20836b,_0x2b951e){const _0x497a8e=_0x473efc;return _0x5a693c+'/'+_0x20836b+'/unit/'+_0x2b951e+_0x497a8e(0x2de);}let _0x7e2dbe=class extends _0x17ede7[_0x473efc(0x39c)]{constructor(_0x40a710,_0x19fa93,_0x35ab82,_0x529f53,_0x39ce4d){const _0x53a77e=_0x473efc;super(),this['_injector']=_0x40a710,this[_0x53a77e(0x2b0)]=_0x19fa93,this[_0x53a77e(0x414)]=_0x35ab82,this[_0x53a77e(0x309)]=_0x529f53,this[_0x53a77e(0x3f2)]=_0x39ce4d;}['_doCreateSocket'](_0x2a77e7){const _0x5005c7=_0x473efc;let _0x3f143c=this[_0x5005c7(0x28c)]['get'](_0x4bbb37['ISocketService']);if(!_0x3f143c)throw Error(_0x5005c7(0x331));let _0x4a85c4=_0x3f143c[_0x5005c7(0x3c0)](_0x2a77e7);if(!_0x4a85c4)throw Error(_0x5005c7(0x28f));let _0x7f4c2d=new _0x17ede7[(_0x5005c7(0x146))](),_0x19d7f0=new _0x1f9457[(_0x5005c7(0x2d8))]();_0x7f4c2d['add'](_0x4a85c4[_0x5005c7(0x25e)][_0x5005c7(0x3bf)](_0x3c1eba=>_0x19d7f0[_0x5005c7(0x2f5)](_0x3c1eba))),_0x7f4c2d[_0x5005c7(0x32d)]((0x0,_0x17ede7[_0x5005c7(0xf9)])(()=>_0x19d7f0[_0x5005c7(0x403)]()));let _0x3d7e6d=new _0x1f9457[(_0x5005c7(0x2d8))]();_0x7f4c2d[_0x5005c7(0x32d)](_0x4a85c4[_0x5005c7(0x2b4)][_0x5005c7(0x3bf)](_0x351b8a=>_0x3d7e6d[_0x5005c7(0x2f5)](_0x351b8a))),_0x7f4c2d[_0x5005c7(0x32d)]((0x0,_0x17ede7[_0x5005c7(0xf9)])(()=>_0x3d7e6d[_0x5005c7(0x403)]()));let _0x50dca8=new _0x1f9457[(_0x5005c7(0x2d8))]();_0x7f4c2d[_0x5005c7(0x32d)](_0x4a85c4[_0x5005c7(0x38f)][_0x5005c7(0x3bf)](_0x47bc67=>{const _0x39a6b9=_0x5005c7;let _0xe3f023=_0x598fbe(_0x47bc67);_0x50dca8[_0x39a6b9(0x2f5)](_0xe3f023);})),_0x7f4c2d[_0x5005c7(0x32d)]((0x0,_0x17ede7[_0x5005c7(0xf9)])(()=>_0x50dca8[_0x5005c7(0x403)]()));let _0x4bb8e3,_0x399dba=()=>{const _0x7f2510=_0x5005c7;_0x3d7e6d['next'](new Event(_0x7f2510(0x139))),_0x19d7f0['next'](new Event(_0x7f2510(0x139))),_0x4bb8e3[_0x7f2510(0x11f)]();};return _0x4bb8e3={'memberID':'','close$':_0x19d7f0[_0x5005c7(0x1b5)](),'error$':_0x3d7e6d[_0x5005c7(0x1b5)](),'open$':_0x4a85c4[_0x5005c7(0x297)],'message$':_0x50dca8['asObservable'](),'send':_0x23ec27=>{const _0xf7b293=_0x5005c7;if(_0x23ec27[_0xf7b293(0x258)]===_0x3d2f85[_0xf7b293(0x1c9)]['INGEST']){if(_0x23ec27[_0xf7b293(0x1ab)][_0xf7b293(0x1fb)]===_0x3d4600[_0xf7b293(0x350)][_0xf7b293(0x2da)]){this[_0xf7b293(0x228)](_0x4bb8e3,_0x23ec27[_0xf7b293(0x1ab)])[_0xf7b293(0x1e1)](_0x1c241e=>{const _0x3c914c=_0xf7b293;this['_logService'][_0x3c914c(0x3e6)](_0x1c241e),_0x399dba();});return;}if(_0x23ec27['data']['eventID']===_0x3d4600['CollaborationEvent']['FETCH_MISSING']){let _0x5d864b=_0x23ec27[_0xf7b293(0x1ab)];this['_fetchMissChangesets'](_0x5d864b)[_0xf7b293(0x1e5)](_0x286aef=>{const _0x5162b8=_0xf7b293;_0x50dca8[_0x5162b8(0x2f5)]({'cmd':_0x3d2f85[_0x5162b8(0x1c9)]['RECV'],'code':_0x3d2f85['CmdRspCode']['OK'],'routeKey':_0x5d864b[_0x5162b8(0x1ab)][_0x5162b8(0xec)],'routeType':'','data':{'eventID':_0x3d4600[_0x5162b8(0x350)][_0x5162b8(0x25f)],'data':{'changesets':_0x286aef}}});})[_0xf7b293(0x1e1)](_0x18e914=>{const _0x3971e2=_0xf7b293;this['_logService'][_0x3971e2(0x3e6)](_0x18e914),_0x399dba();});return;}}_0x4a85c4[_0xf7b293(0x10c)](_0x91444b(_0x23ec27));},'close':()=>{const _0x461819=_0x5005c7;_0x4a85c4[_0x461819(0x11f)](),_0x7f4c2d[_0x461819(0x335)]();}},_0x4bb8e3;}async['_submitChangeset'](_0x5073fa,_0x1e432f){const _0x1412f7=_0x473efc;let {unitType:_0x2d6889,unitID:_0x23a7f0,changeset:_0x944c3d}=_0x1e432f[_0x1412f7(0x1ab)],_0x430686={'unitID':_0x23a7f0,'memberID':_0x5073fa[_0x1412f7(0x2e0)],'type':_0x2d6889,'changeset':(0x0,_0x3d4600[_0x1412f7(0xeb)])(_0x944c3d)},_0x462b7b=this['_configService'][_0x1412f7(0x205)](_0x1f8831),_0x398bb0=_0x2c930a((_0x462b7b==null?void 0x0:_0x462b7b[_0x1412f7(0x402)])??'/universer-api/comb',_0x2d6889,_0x23a7f0);try{await this[_0x1412f7(0x2b0)]['post'](_0x398bb0,{'body':_0x430686});}catch(_0x19b6b4){throw this[_0x1412f7(0x309)][_0x1412f7(0x3e6)](_0x1412f7(0x332),'submit\x20changeset\x20error!'),_0x19b6b4;}}async[_0x473efc(0xcf)](_0x33ce95){const _0x38d5fb=_0x473efc;let {unitID:_0xc5e4e0,from:_0x84e86f,to:_0x5dcb90,unitType:_0x7ed8c4}=_0x33ce95[_0x38d5fb(0x1ab)];return(await this[_0x38d5fb(0x3f2)][_0x38d5fb(0x3ae)]({'metadata':void 0x0},{'unitID':_0xc5e4e0,'type':_0x7ed8c4,'from':_0x84e86f,'to':_0x5dcb90}))[_0x38d5fb(0x122)]['map'](_0x4e11a8=>((_0x4e11a8[_0x38d5fb(0x237)]===null||_0x4e11a8[_0x38d5fb(0x237)]===void 0x0)&&(_0x4e11a8[_0x38d5fb(0x237)]=[]),_0x4e11a8));}};_0x7e2dbe=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x1,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x4bbb37[_0x473efc(0x1f7)])),_0x9a3e23(0x2,_0x17ede7[_0x473efc(0x201)]),_0x9a3e23(0x3,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0x4,_0x3d4600['ISnapshotServerService'])],_0x7e2dbe);let _0xa5a1c7=(0x0,_0x17ede7[_0x473efc(0x1cb)])(_0x473efc(0x115));function _0x47199c(_0x405e0e={}){const _0x4b44b5=_0x473efc;return _0x405e0e[_0x4b44b5(0xe5)]?{'resolveUnit':_0x405e0e[_0x4b44b5(0xe5)]}:{'resolveUnit':_0x1d3741=>({'target':{'unitId':_0x1d3741[_0x4b44b5(0x298)],'unitType':_0x1d3741[_0x4b44b5(0x19a)]}})};}function _0xe859dc(_0x308ce7,_0x343248,_0x19c857){const _0x56d185=_0x473efc;let _0x359466=_0x19c857[_0x56d185(0x36c)][_0x56d185(0x152)];if(_0x359466!=null&&_0x359466[_0x56d185(0x31f)]()==='')throw Error(_0x56d185(0x104));if(!_0x19c857[_0x56d185(0x36c)]['unitId'])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x308ce7,'unitType':_0x343248,'target':{'endpoint':_0x359466,'unitId':_0x19c857[_0x56d185(0x36c)][_0x56d185(0x298)],'unitType':_0x19c857[_0x56d185(0x36c)]['unitType']??_0x343248},'changeset':_0x19c857[_0x56d185(0x364)]};}let _0x40f859=class extends _0x17ede7[_0x473efc(0x39c)]{constructor(_0x1b060b,_0x513568,_0x5dfb43,_0x2cd9e3,_0x4a2d64,_0x1b13ca,_0x6178e7){const _0x4a9d28=_0x473efc;super(),this[_0x4a9d28(0x28c)]=_0x1b060b,this[_0x4a9d28(0x309)]=_0x513568,this[_0x4a9d28(0x414)]=_0x5dfb43,this[_0x4a9d28(0x2d2)]=_0x2cd9e3,this[_0x4a9d28(0x1fd)]=_0x4a2d64,this[_0x4a9d28(0x221)]=_0x1b13ca,this[_0x4a9d28(0xc0)]=_0x6178e7,_0x17f3d2(this,_0x4a9d28(0x14b),new Map()),_0x17f3d2(this,_0x4a9d28(0x3f6),new Map()),_0x17f3d2(this,'_sessionChannels',new Map()),_0x17f3d2(this,_0x4a9d28(0x3f8),new Map()),_0x17f3d2(this,_0x4a9d28(0x3cc),this[_0x4a9d28(0x274)](void 0x0)[_0x4a9d28(0x3cc)]['asObservable']()),_0x17f3d2(this,_0x4a9d28(0x1d6),new _0x1f9457[(_0x4a9d28(0x3c1))](0x0)),_0x17f3d2(this,_0x4a9d28(0x208),this['_status$']['asObservable']()),this[_0x4a9d28(0x290)]();}[_0x473efc(0x290)](){const _0x14b04e=_0x473efc;this[_0x14b04e(0xc0)]&&this[_0x14b04e(0x12e)](this[_0x14b04e(0xc0)][_0x14b04e(0x1a5)]['subscribe'](_0xd83c4b=>{const _0x3c76c9=_0x14b04e;_0xd83c4b&&this['reconnect'](),_0xd83c4b||this['_socketChannels'][_0x3c76c9(0x343)](_0x3e2f52=>this[_0x3c76c9(0x1c8)](_0x3e2f52));}));}[_0x473efc(0x335)](){const _0x3c16d4=_0x473efc;super[_0x3c16d4(0x335)](),this[_0x3c16d4(0x3f8)][_0x3c16d4(0x343)](_0x34e53a=>{const _0x5b9b17=_0x3c16d4;var _0xe8cc72,_0x2bbff7;(_0xe8cc72=_0x34e53a['socketMessageSubscription'])==null||_0xe8cc72[_0x5b9b17(0x278)](),_0x34e53a[_0x5b9b17(0x33e)]=null,this[_0x5b9b17(0x234)](_0x34e53a),this[_0x5b9b17(0x17e)](_0x34e53a),this['_clearHeartbeatTimer'](_0x34e53a),(_0x2bbff7=_0x34e53a['socket$'][_0x5b9b17(0x2a2)]())==null||_0x2bbff7[_0x5b9b17(0x11f)](),_0x34e53a[_0x5b9b17(0x3cc)][_0x5b9b17(0x403)]();}),this['_socketChannels'][_0x3c16d4(0x40f)](),this['_sessions'][_0x3c16d4(0x343)](_0x4ad072=>_0x4ad072[_0x3c16d4(0x335)]()),this['_sessions']['clear'](),this[_0x3c16d4(0x340)]['clear'](),this['_status$'][_0x3c16d4(0x403)]();}async['requireSession'](_0x5e4c35,_0x3f0cb2){const _0x2030d7=_0x473efc;if(this[_0x2030d7(0x14b)][_0x2030d7(0x406)](_0x5e4c35))return this[_0x2030d7(0x14b)]['get'](_0x5e4c35);let _0x1624c6=this[_0x2030d7(0x3f6)][_0x2030d7(0x3af)](_0x5e4c35);if(_0x1624c6)return _0x1624c6;let _0x2dd264=this[_0x2030d7(0x34f)](_0x5e4c35,_0x3f0cb2);this['_pendingSessions']['set'](_0x5e4c35,_0x2dd264);try{return await _0x2dd264;}finally{this[_0x2030d7(0x3f6)]['delete'](_0x5e4c35);}}async[_0x473efc(0x34f)](_0x333c7e,_0x3cafe6){const _0xe358db=_0x473efc;let _0x16a57a=await this[_0xe358db(0x11d)](_0x333c7e,_0x3cafe6),_0x47ea91=this[_0xe358db(0x274)](_0x16a57a[_0xe358db(0x36c)][_0xe358db(0x152)]);this[_0xe358db(0x1e0)](_0x47ea91);let _0x3bc39c=this[_0xe358db(0x28c)][_0xe358db(0x172)](_0x1fbd86,_0x16a57a,_0x47ea91[_0xe358db(0x3cc)]['asObservable']());return this[_0xe358db(0x14b)][_0xe358db(0x184)](_0x333c7e,_0x3bc39c),this[_0xe358db(0x340)][_0xe358db(0x184)](_0x333c7e,_0x47ea91[_0xe358db(0x20a)]),_0x3bc39c;}[_0x473efc(0x180)](_0x4aba43){const _0x446114=_0x473efc;let _0x28bf0c=this[_0x446114(0x14b)][_0x446114(0x3af)](_0x4aba43),_0x9add0f=this[_0x446114(0x340)]['get'](_0x4aba43);if(_0x28bf0c&&(this[_0x446114(0x14b)]['delete'](_0x4aba43),this[_0x446114(0x340)][_0x446114(0x2ce)](_0x4aba43),_0x28bf0c[_0x446114(0x11f)]()),_0x9add0f&&!this['_hasSessionsForEndpoint'](_0x9add0f)){var _0x4c3f43;let _0x1da1b8=this['_socketChannels'][_0x446114(0x3af)](_0x9add0f);_0x1da1b8==null||(_0x4c3f43=_0x1da1b8[_0x446114(0x3cc)]['getValue']())==null||_0x4c3f43[_0x446114(0x11f)]();}}[_0x473efc(0x325)](){const _0x46aa6b=_0x473efc;(this[_0x46aa6b(0x3f8)][_0x46aa6b(0x3c9)]?[...this['_socketChannels'][_0x46aa6b(0x313)]()]:[this[_0x46aa6b(0x274)](void 0x0)])[_0x46aa6b(0x343)](_0x62c42f=>{const _0x259e02=_0x46aa6b;_0x62c42f['retryCount']=0x0,this[_0x259e02(0x234)](_0x62c42f),this[_0x259e02(0xfd)](_0x62c42f);});}[_0x473efc(0x234)](_0x2fc0ae){const _0x2c9288=_0x473efc;_0x2fc0ae[_0x2c9288(0x2f7)]!=null&&(clearTimeout(_0x2fc0ae['retryConnectingTimer']),_0x2fc0ae[_0x2c9288(0x2f7)]=null);}async[_0x473efc(0x3f4)](_0x70bc8){const _0x1f93f0=_0x473efc;let _0x1555a5=this[_0x1f93f0(0x414)][_0x1f93f0(0x205)](_0x1f8831),_0x1c5df2=_0x70bc8[_0x1f93f0(0x152)]??(_0x1555a5==null?void 0x0:_0x1555a5['collabWebSocketUrl'])??_0x1f93f0(0x22a),_0xfea8d0=await this[_0x1f93f0(0x2d2)][_0x1f93f0(0x3c0)](_0x1c5df2);return _0x70bc8[_0x1f93f0(0x397)]=_0xfea8d0,_0xfea8d0;}async[_0x473efc(0x1e0)](_0xa85515){const _0x5ce5b4=_0x473efc;try{let _0x42d7a5=_0xa85515[_0x5ce5b4(0x3cc)]['getValue']()??_0xa85515[_0x5ce5b4(0x397)]??await this[_0x5ce5b4(0x3f4)](_0xa85515);if(_0x42d7a5){var _0x40db5e;let _0x76245a=_0x42d7a5[_0x5ce5b4(0x10c)];_0x42d7a5[_0x5ce5b4(0x10c)]=_0x55c62d=>(_0x55c62d[_0x5ce5b4(0x258)]!==_0x3d2f85[_0x5ce5b4(0x1c9)][_0x5ce5b4(0x3b7)]&&this['_rescheduleHeartbeat'](_0xa85515),_0x76245a[_0x5ce5b4(0x2a6)](_0x42d7a5,[_0x55c62d])),(_0x40db5e=_0xa85515[_0x5ce5b4(0x33e)])==null||_0x40db5e[_0x5ce5b4(0x278)](),_0xa85515[_0x5ce5b4(0x33e)]=null,_0xa85515[_0x5ce5b4(0x33e)]=_0x42d7a5[_0x5ce5b4(0x38f)][_0x5ce5b4(0x3bf)](_0x5c1487=>this['_onMessage'](_0xa85515,_0x42d7a5,_0x5c1487)),_0x42d7a5[_0x5ce5b4(0x2b4)][_0x5ce5b4(0x2bf)]((0x0,_0x1756fd[_0x5ce5b4(0x207)])(0x1))[_0x5ce5b4(0x3bf)](_0x4bca36=>this[_0x5ce5b4(0x309)][_0x5ce5b4(0x3e6)](_0x5ce5b4(0x27a),_0x4bca36)),_0x42d7a5['open$']['pipe']((0x0,_0x1756fd['take'])(0x1))['subscribe'](()=>{this['_onConnectionOpen'](_0xa85515,_0x42d7a5);}),_0x42d7a5[_0x5ce5b4(0x25e)][_0x5ce5b4(0x2bf)]((0x0,_0x1756fd[_0x5ce5b4(0x207)])(0x1))[_0x5ce5b4(0x3bf)](_0x2b4c21=>{const _0x3e6384=_0x5ce5b4;this['_logService']['debug'](_0x3e6384(0x394),_0x3e6384(0x2dd),_0x2b4c21),this[_0x3e6384(0x101)](_0xa85515);});}}catch(_0x399e40){this[_0x5ce5b4(0x309)][_0x5ce5b4(0x3e6)](_0x399e40),this['_onConnectionFailed'](_0xa85515);}}[_0x473efc(0x2af)](_0x1143f3,_0xdcb892){const _0x584535=_0x473efc;this[_0x584535(0x309)][_0x584535(0x2f9)](_0x584535(0x394),_0x584535(0x105)),_0xdcb892[_0x584535(0x10c)]({'cmd':_0x3d2f85['CombCmd'][_0x584535(0x18f)]}),this['_rescheduleHeartbeat'](_0x1143f3);}[_0x473efc(0x1c8)](_0x2d062b){const _0x1168b6=_0x473efc;_0x2d062b[_0x1168b6(0xdf)]=!0x1,_0x2d062b[_0x1168b6(0x397)]=null,this['_status$'][_0x1168b6(0x2f5)](0x2),_0x2d062b[_0x1168b6(0x3cc)][_0x1168b6(0x2f5)](null),this['_clearTimeoutTimer'](_0x2d062b),this['_clearHeartbeatTimer'](_0x2d062b);}[_0x473efc(0x101)](_0x4c3a37){const _0x17b4f8=_0x473efc;this[_0x17b4f8(0x1c8)](_0x4c3a37),this[_0x17b4f8(0x2ac)](_0x4c3a37[_0x17b4f8(0x20a)])&&(_0x4c3a37[_0x17b4f8(0x133)]<(this[_0x17b4f8(0x414)]['getConfig'](_0x17b4f8(0x22e))??0x3)?(this[_0x17b4f8(0x1fd)][_0x17b4f8(0x3b3)]({'id':_0x17b4f8(0x2ed)}),this[_0x17b4f8(0xfd)](_0x4c3a37)):this[_0x17b4f8(0x1fd)][_0x17b4f8(0x3b3)]({'id':_0x17b4f8(0x407)}));}[_0x473efc(0xfd)](_0x362f0e){const _0x915c48=_0x473efc;let _0x26604f=_0x362f0e[_0x915c48(0x133)],_0x14c179=this[_0x915c48(0x414)]['getConfig'](_0x1f8831),_0x1bbf1b=_0x26604f===0x0?0x0:((_0x14c179==null?void 0x0:_0x14c179[_0x915c48(0x12b)])??0x4e20)*0x2**_0x26604f;_0x362f0e[_0x915c48(0x2f7)]=setTimeout(()=>{const _0x43ba25=_0x915c48;clearTimeout(_0x362f0e[_0x43ba25(0x2f7)]),_0x362f0e[_0x43ba25(0x2f7)]=null,this[_0x43ba25(0x1e0)](_0x362f0e);},_0x1bbf1b),_0x362f0e[_0x915c48(0x133)]+=0x1;}async[_0x473efc(0x11d)](_0x239e5c,_0x16e70c){const _0x4a5792=_0x473efc;return _0xe859dc(_0x239e5c,_0x16e70c,await this[_0x4a5792(0x221)][_0x4a5792(0xe5)]({'unitId':_0x239e5c,'unitType':_0x16e70c}));}[_0x473efc(0x1ba)](_0x216357,_0x3b051d,_0x22a1e4){const _0x1fd4ea=_0x473efc;let {cmd:_0x23c32f}=_0x22a1e4;_0x23c32f===_0x3d2f85[_0x1fd4ea(0x1c9)][_0x1fd4ea(0x18f)]&&!_0x216357['socketReady']&&(_0x3b051d[_0x1fd4ea(0x2e0)]=_0x22a1e4['data'][_0x1fd4ea(0x2e0)],_0x216357[_0x1fd4ea(0x3cc)]['next'](_0x3b051d),this['_status$']['next'](0x3),_0x216357[_0x1fd4ea(0xdf)]=!0x0,_0x216357['candidateSocket']=null),_0x23c32f===_0x3d2f85[_0x1fd4ea(0x1c9)][_0x1fd4ea(0x203)]&&this[_0x1fd4ea(0x17e)](_0x216357),this[_0x1fd4ea(0x38c)](_0x216357);}[_0x473efc(0x2ac)](_0x53e0d3){const _0x5ae51b=_0x473efc;return[...this[_0x5ae51b(0x340)]['values']()]['some'](_0x49438a=>_0x49438a===_0x53e0d3);}['_getSocketChannel'](_0x38665e){const _0x205e8a=_0x473efc;let _0x12bb96=_0x38665e??'',_0x255ec6=this[_0x205e8a(0x3f8)][_0x205e8a(0x3af)](_0x12bb96);if(_0x255ec6)return _0x255ec6;let _0x42664f={'endpointKey':_0x12bb96,'endpoint':_0x38665e,'socket$':new _0x1f9457[(_0x205e8a(0x3c1))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x205e8a(0x3f8)][_0x205e8a(0x184)](_0x12bb96,_0x42664f),_0x42664f;}[_0x473efc(0x38c)](_0x2d6df3){const _0x249795=_0x473efc;this[_0x249795(0x1d1)](_0x2d6df3),_0x2d6df3[_0x249795(0x200)]=setTimeout(()=>this[_0x249795(0x1e9)](_0x2d6df3),this[_0x249795(0x414)][_0x249795(0x205)](_0x249795(0xef))??0x7530);}[_0x473efc(0x1e9)](_0x5c5774){const _0x264ee5=_0x473efc;_0x5c5774['socket$'][_0x264ee5(0x2a2)]()[_0x264ee5(0x10c)]({'cmd':_0x3d2f85['CombCmd']['HEARTBEAT']}),this[_0x264ee5(0x155)](_0x5c5774);}['_waitForHeartbeatResponse'](_0x2692b6){const _0x4afdf8=_0x473efc;_0x2692b6['timeoutTimer']=setTimeout(()=>this[_0x4afdf8(0x101)](_0x2692b6),this[_0x4afdf8(0x414)]['getConfig'](_0x4afdf8(0x2dc))??0x4e20);}[_0x473efc(0x1d1)](_0x1d7bb1){const _0x1d39ac=_0x473efc;_0x1d7bb1[_0x1d39ac(0x200)]!=null&&(clearTimeout(_0x1d7bb1[_0x1d39ac(0x200)]),_0x1d7bb1[_0x1d39ac(0x200)]=null);}[_0x473efc(0x17e)](_0x17b536){const _0x2a6ef=_0x473efc;_0x17b536[_0x2a6ef(0xdc)]!=null&&(clearTimeout(_0x17b536[_0x2a6ef(0xdc)]),_0x17b536[_0x2a6ef(0xdc)]=null);}};_0x40f859=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['Injector'])),_0x9a3e23(0x1,_0x17ede7['ILogService']),_0x9a3e23(0x2,_0x17ede7[_0x473efc(0x201)]),_0x9a3e23(0x3,_0x2e376b),_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce)),_0x9a3e23(0x5,_0xa5a1c7),_0x9a3e23(0x6,(0x0,_0x17ede7['Optional'])(_0x4c48ae))],_0x40f859);let _0x5ea503=class extends _0x17ede7[_0x473efc(0x1a3)]{constructor(_0x3e15cf,_0x566c4d,_0x15a242,_0x53fcf5){const _0x29055e=_0x473efc;var _0x3b8bd5;super(),this[_0x29055e(0x28c)]=_0x3e15cf,this[_0x29055e(0x219)]=_0x566c4d,this['_configService']=_0x15a242,this[_0x29055e(0x171)]=_0x53fcf5,_0x17f3d2(this,_0x29055e(0x34b),new Map()),_0x17f3d2(this,_0x29055e(0x3b6),new _0x1f9457[(_0x29055e(0x2d8))]()),_0x17f3d2(this,_0x29055e(0x265),this['_entityInit$'][_0x29055e(0x1b5)]()),((_0x3b8bd5=this[_0x29055e(0x414)]['getConfig']('collaboration-client.config'))==null?void 0x0:_0x3b8bd5['enableCollaboration'])!==!0x1&&this[_0x29055e(0x215)]();}['dispose'](){const _0x27bbd8=_0x473efc;super[_0x27bbd8(0x335)](),this[_0x27bbd8(0x34b)][_0x27bbd8(0x343)](_0x5bfe6e=>_0x5bfe6e[_0x27bbd8(0x335)]()),this[_0x27bbd8(0x34b)][_0x27bbd8(0x40f)]();}[_0x473efc(0xc5)](_0x374658){const _0x2bc13b=_0x473efc;return this[_0x2bc13b(0x34b)][_0x2bc13b(0x3af)](_0x374658)??null;}['getCollabEntity$'](_0x3b9bc2){const _0x48f0c6=_0x473efc;let _0x4f049d=this['getCollabEntity'](_0x3b9bc2);return _0x4f049d?(0x0,_0x1f9457['of'])(_0x4f049d):this[_0x48f0c6(0x3b6)][_0x48f0c6(0x2bf)]((0x0,_0x1756fd['filter'])(_0x27f637=>_0x27f637['unitID']===_0x3b9bc2));}[_0x473efc(0x24d)](_0x4b6a33){const _0x18e986=_0x473efc;return(0x0,_0x1f9457[_0x18e986(0x2b3)])(this['getCollabEntity$'](_0x4b6a33)[_0x18e986(0x2bf)]((0x0,_0x1756fd[_0x18e986(0xfb)])(()=>void 0x0)));}[_0x473efc(0x215)](){const _0x3f0af9=_0x473efc;this[_0x3f0af9(0x171)][_0x3f0af9(0x256)](_0x17ede7[_0x3f0af9(0x1c0)]['UNIVER_SHEET'])[_0x3f0af9(0x2bf)]((0x0,_0x1f9457[_0x3f0af9(0x28a)])(this[_0x3f0af9(0x2cf)]),(0x0,_0x1756fd[_0x3f0af9(0x250)])(0x10))[_0x3f0af9(0x3bf)](async _0x5b4fcc=>{const _0x1a7b51=_0x3f0af9;let _0x409232=_0x5b4fcc[_0x1a7b51(0x3b2)][_0x1a7b51(0x204)](),_0x2da80b=await this[_0x1a7b51(0x119)](_0x409232,_0x17ede7[_0x1a7b51(0x1c0)]['UNIVER_SHEET']);this['_entities'][_0x1a7b51(0x184)](_0x409232,_0x2da80b);}),this[_0x3f0af9(0x171)][_0x3f0af9(0x256)](_0x17ede7['UniverInstanceType'][_0x3f0af9(0x399)])[_0x3f0af9(0x2bf)]((0x0,_0x1f9457[_0x3f0af9(0x28a)])(this['dispose$']),(0x0,_0x1756fd[_0x3f0af9(0x250)])(0x10))[_0x3f0af9(0x2bf)]((0x0,_0x1756fd['filter'])(_0x34dfe9=>!_0x34dfe9['unit'][_0x3f0af9(0x204)]()[_0x3f0af9(0x1b0)]('__')))[_0x3f0af9(0x3bf)](async _0x1c48c6=>{const _0x33cb92=_0x3f0af9;let _0x19b2ca=_0x1c48c6[_0x33cb92(0x3b2)][_0x33cb92(0x204)](),_0x175089=await this[_0x33cb92(0x119)](_0x19b2ca,_0x17ede7['UniverInstanceType'][_0x33cb92(0x399)]);this[_0x33cb92(0x34b)][_0x33cb92(0x184)](_0x19b2ca,_0x175089);}),this['_univerInstanceService'][_0x3f0af9(0x256)](_0x17ede7[_0x3f0af9(0x1c0)][_0x3f0af9(0xf2)])[_0x3f0af9(0x2bf)]((0x0,_0x1f9457[_0x3f0af9(0x28a)])(this[_0x3f0af9(0x2cf)]),(0x0,_0x1756fd[_0x3f0af9(0x250)])(0x10))[_0x3f0af9(0x3bf)](async _0x537492=>{const _0x3043e0=_0x3f0af9;let _0x5d2ec1=_0x537492[_0x3043e0(0x3b2)][_0x3043e0(0x204)](),_0x4090b4=await this[_0x3043e0(0x119)](_0x5d2ec1,_0x17ede7[_0x3043e0(0x1c0)][_0x3043e0(0xf2)]);this['_entities'][_0x3043e0(0x184)](_0x5d2ec1,_0x4090b4);}),this['_univerInstanceService'][_0x3f0af9(0x256)](_0x17ede7[_0x3f0af9(0x1c0)][_0x3f0af9(0x3b5)])[_0x3f0af9(0x2bf)]((0x0,_0x1f9457['takeUntil'])(this[_0x3f0af9(0x2cf)]),(0x0,_0x1756fd['delay'])(0x10))[_0x3f0af9(0x3bf)](async _0x718e03=>{const _0x531e83=_0x3f0af9;let _0x1a545b=_0x718e03['unit'][_0x531e83(0x204)](),_0x54ae3f=await this[_0x531e83(0x119)](_0x1a545b,_0x17ede7['UniverInstanceType']['UNIVER_BOARD']);this[_0x531e83(0x34b)][_0x531e83(0x184)](_0x1a545b,_0x54ae3f);}),this[_0x3f0af9(0x171)]['getTypeOfUnitAdded$'](_0x17ede7[_0x3f0af9(0x1c0)][_0x3f0af9(0x3e8)])[_0x3f0af9(0x2bf)]((0x0,_0x1f9457[_0x3f0af9(0x28a)])(this[_0x3f0af9(0x2cf)]),(0x0,_0x1756fd[_0x3f0af9(0x250)])(0x10))[_0x3f0af9(0x3bf)](async _0x18bf3e=>{const _0x1be78a=_0x3f0af9;let _0x52721e=_0x18bf3e[_0x1be78a(0x3b2)][_0x1be78a(0x204)](),_0x2e3c41=await this['_startCollaboration'](_0x52721e,_0x17ede7[_0x1be78a(0x1c0)][_0x1be78a(0x3e8)]);this['_entities']['set'](_0x52721e,_0x2e3c41);}),this[_0x3f0af9(0x171)][_0x3f0af9(0x256)](_0x17ede7[_0x3f0af9(0x1c0)][_0x3f0af9(0x1ce)])[_0x3f0af9(0x2bf)]((0x0,_0x1f9457[_0x3f0af9(0x28a)])(this[_0x3f0af9(0x2cf)]),(0x0,_0x1756fd['delay'])(0x10))[_0x3f0af9(0x3bf)](async _0x3694e6=>{const _0x828156=_0x3f0af9;let _0x1c1776=_0x3694e6[_0x828156(0x3b2)][_0x828156(0x204)](),_0x2048a0=await this[_0x828156(0x119)](_0x1c1776,_0x17ede7[_0x828156(0x1c0)][_0x828156(0x1ce)]);this[_0x828156(0x34b)][_0x828156(0x184)](_0x1c1776,_0x2048a0);}),(0x0,_0x1f9457[_0x3f0af9(0x1a2)])(this[_0x3f0af9(0x171)][_0x3f0af9(0x3ef)](_0x17ede7[_0x3f0af9(0x1c0)]['UNIVER_SHEET']),this[_0x3f0af9(0x171)][_0x3f0af9(0x3ef)](_0x17ede7[_0x3f0af9(0x1c0)]['UNIVER_DOC']),this['_univerInstanceService'][_0x3f0af9(0x3ef)](_0x17ede7[_0x3f0af9(0x1c0)][_0x3f0af9(0xf2)]),this[_0x3f0af9(0x171)][_0x3f0af9(0x3ef)](_0x17ede7[_0x3f0af9(0x1c0)][_0x3f0af9(0x3b5)]),this[_0x3f0af9(0x171)]['getTypeOfUnitDisposed$'](_0x17ede7[_0x3f0af9(0x1c0)]['UNIVER_BASE']),this[_0x3f0af9(0x171)][_0x3f0af9(0x3ef)](_0x17ede7[_0x3f0af9(0x1c0)][_0x3f0af9(0x1ce)]))[_0x3f0af9(0x2bf)]((0x0,_0x1f9457['takeUntil'])(this[_0x3f0af9(0x2cf)]))[_0x3f0af9(0x3bf)](_0x5c9017=>{const _0x2fe97b=_0x3f0af9;let _0x3bb2e8=_0x5c9017[_0x2fe97b(0x204)](),_0xfe9a11=this[_0x2fe97b(0x34b)][_0x2fe97b(0x3af)](_0x3bb2e8);_0xfe9a11&&(_0xfe9a11[_0x2fe97b(0x335)](),this[_0x2fe97b(0x34b)]['delete'](_0x3bb2e8));});}async[_0x473efc(0x119)](_0x4b5798,_0x12f2c3){const _0x511bc8=_0x473efc;let _0x3b5d58=await this[_0x511bc8(0x219)][_0x511bc8(0x1ec)](_0x4b5798),_0x5f138d=this[_0x511bc8(0x28c)][_0x511bc8(0x172)](this[_0x511bc8(0x23f)](_0x12f2c3),_0x4b5798,_0x12f2c3,_0x3b5d58);return await _0x5f138d[_0x511bc8(0x233)](),this[_0x511bc8(0x3b6)]['next'](_0x5f138d),_0x5f138d;}['_getCtorByUniverInstanceType'](_0x2afb70){const _0x5bf8ab=_0x473efc;switch(_0x2afb70){case _0x17ede7[_0x5bf8ab(0x1c0)][_0x5bf8ab(0x399)]:return _0x5a3607;case _0x17ede7['UniverInstanceType']['UNIVER_SHEET']:return _0x399b0b;case _0x17ede7[_0x5bf8ab(0x1c0)][_0x5bf8ab(0xf2)]:return _0x7459fd;case _0x17ede7[_0x5bf8ab(0x1c0)][_0x5bf8ab(0x3b5)]:return _0x28070e;case _0x17ede7['UniverInstanceType']['UNIVER_BASE']:return _0x1cfeae;case _0x17ede7[_0x5bf8ab(0x1c0)]['UNIVER_PDF']:return _0x30dd3f;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x2afb70);}}};_0x5ea503=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7['Inject'])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x1,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x40f859)),_0x9a3e23(0x2,_0x17ede7[_0x473efc(0x201)]),_0x9a3e23(0x3,_0x17ede7[_0x473efc(0x2c6)])],_0x5ea503);var _0x1f67f4='@univerjs-pro/collaboration-client',_0x27bebf='1.0.0-beta.1';let _0x1b4eea=class extends _0x17ede7[_0x473efc(0x39c)]{constructor(_0x185156,_0x29b415){const _0x65d426=_0x473efc;super(),this[_0x65d426(0x171)]=_0x185156,this[_0x65d426(0x414)]=_0x29b415,this[_0x65d426(0x215)]();}[_0x473efc(0x215)](){const _0x581b93=_0x473efc;this['disposeWithMe'](this[_0x581b93(0x171)][_0x581b93(0x247)]['subscribe'](()=>{const _0xad1d03=_0x581b93;let _0x30b830=this[_0xad1d03(0x171)][_0xad1d03(0x24e)](),_0x25344b=this[_0xad1d03(0x414)][_0xad1d03(0x205)](_0xad1d03(0x15d))??'Univer';_0x30b830 instanceof _0x17ede7['Workbook']&&(_0x25344b=_0x30b830[_0xad1d03(0x40d)]),document[_0xad1d03(0x1d4)]=_0x25344b;}));}};_0x1b4eea=_0x4da91b([_0x9a3e23(0x0,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0x1,_0x17ede7['IConfigService'])],_0x1b4eea);let _0x189025=(0x0,_0x17ede7[_0x473efc(0x1cb)])('base-ui.attachment-io.service'),_0x5b01a0=class{constructor(_0x548094,_0x4bf46c,_0x29a414){const _0x569f9b=_0x473efc;this[_0x569f9b(0x2b0)]=_0x548094,this[_0x569f9b(0x414)]=_0x4bf46c,this[_0x569f9b(0x171)]=_0x29a414;}[_0x473efc(0x326)](){const _0x6c66af=_0x473efc;return this[_0x6c66af(0x106)]()[_0x6c66af(0x113)]??{};}async[_0x473efc(0x17a)](_0x509dcf){const _0x2e47fc=_0x473efc;let _0x13b481=this[_0x2e47fc(0x326)]();if(_0x1c2984(_0x509dcf,_0x13b481),_0x13b481[_0x2e47fc(0x18b)])return _0x13b481['upload'](_0x509dcf);let _0x38ad7c=await this[_0x2e47fc(0x306)](_0x509dcf);return{'id':_0x38ad7c,'name':_0x509dcf[_0x2e47fc(0x40d)],'mimeType':_0x509dcf['type'],'size':_0x509dcf[_0x2e47fc(0x3c9)],'sourceType':_0x17ede7['ImageSourceType'][_0x2e47fc(0x2aa)],'source':_0x38ad7c};}async[_0x473efc(0x21d)](_0x15dbbd,_0x3ea9c4){const _0x3206cb=_0x473efc;if(_0x3ea9c4!==_0x17ede7['ImageSourceType']['UUID'])return _0x15dbbd;let _0x4d4349=(await this[_0x3206cb(0x2b0)][_0x3206cb(0x3af)](this[_0x3206cb(0x170)]()[_0x3206cb(0x1fe)](_0x3206cb(0x11b),_0x15dbbd)))[_0x3206cb(0xc9)];if(_0x4d4349['error']&&_0x4d4349[_0x3206cb(0x3e6)]['code']!==_0x3d2f85[_0x3206cb(0x135)]['OK'])throw _0x4d4349[_0x3206cb(0x3e6)];if(!_0x4d4349['url'])throw Error(_0x3206cb(0x150));return(0x0,_0x17ede7[_0x3206cb(0x2db)])(_0x4d4349[_0x3206cb(0x38a)],this['_getDownloadEndpointURL']());}async['_upload'](_0x535686){const _0x2d71dd=_0x473efc;let _0x562802=this[_0x2d71dd(0x171)][_0x2d71dd(0x24e)](),_0x1cd9e5=_0x562802==null?void 0x0:_0x562802[_0x2d71dd(0x204)]();if(!_0x1cd9e5)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x41f97a=new FormData();_0x41f97a[_0x2d71dd(0x10a)](_0x2d71dd(0x280),_0x535686);let _0x15481f=this[_0x2d71dd(0x277)]()+'?size='+_0x535686['size']['toString']()+_0x2d71dd(0x33d)+_0x3d2f85['FileSource'][_0x2d71dd(0xe9)]+_0x2d71dd(0x252)+encodeURIComponent(_0x1cd9e5),_0x2f132d=(await this['_httpService'][_0x2d71dd(0x315)](_0x15481f,{'body':_0x41f97a}))[_0x2d71dd(0xc9)][_0x2d71dd(0x1e2)];if(typeof _0x2f132d!='string'||!_0x2f132d)throw Error(_0x2d71dd(0x321));return _0x2f132d;}[_0x473efc(0x277)](){const _0x5ae96c=_0x473efc;return this[_0x5ae96c(0x106)]()[_0x5ae96c(0x2a1)]??_0x5ae96c(0x2e3);}[_0x473efc(0x170)](){const _0xff2253=_0x473efc;return this[_0xff2253(0x106)]()[_0xff2253(0x18d)]??_0xff2253(0x2f6);}[_0x473efc(0x398)](){const _0x52c151=_0x473efc;let _0x2b6aad=this[_0x52c151(0x106)]();return _0x2b6aad[_0x52c151(0x12c)]?_0x2b6aad['downloadEndpointUrl']:typeof location<'u'?location['origin']:_0x2b6aad[_0x52c151(0x2a1)]??'';}['_getConfig'](){const _0x3bafe1=_0x473efc;return this[_0x3bafe1(0x414)][_0x3bafe1(0x205)](_0x3bafe1(0x310))??{};}};_0x5b01a0=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7['Inject'])(_0x4bbb37[_0x473efc(0x1f7)])),_0x9a3e23(0x1,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x201)])),_0x9a3e23(0x2,(0x0,_0x17ede7['Inject'])(_0x17ede7['IUniverInstanceService']))],_0x5b01a0);function _0x1c2984(_0x300911,_0x161ccd){const _0x58a2a1=_0x473efc;var _0xb9d415;if(_0x161ccd[_0x58a2a1(0x39a)]!=null&&_0x300911[_0x58a2a1(0x3c9)]>_0x161ccd[_0x58a2a1(0x39a)])throw Error(_0x58a2a1(0x10d));if((_0xb9d415=_0x161ccd[_0x58a2a1(0x2bb)])!=null&&_0xb9d415[_0x58a2a1(0x2b6)]&&!_0x161ccd[_0x58a2a1(0x2bb)][_0x58a2a1(0x26a)](_0x2920de=>_0x300911[_0x58a2a1(0x3d5)]===_0x2920de||_0x300911[_0x58a2a1(0x40d)][_0x58a2a1(0x3e5)](_0x2920de)||_0x2920de[_0x58a2a1(0x3e5)]('/*')&&_0x300911[_0x58a2a1(0x3d5)][_0x58a2a1(0x1b0)](_0x2920de[_0x58a2a1(0xd2)](0x0,-0x1))))throw Error(_0x58a2a1(0x251));}let _0x3780cb=class{constructor(_0x122684,_0x564e0e,_0x3c4449){const _0x77109d=_0x473efc;this[_0x77109d(0x414)]=_0x122684,this[_0x77109d(0x2b0)]=_0x564e0e,this[_0x77109d(0x294)]=_0x3c4449,this['init']();}[_0x473efc(0x233)](){const _0x16856e=_0x473efc;this[_0x16856e(0x2b0)][_0x16856e(0x36a)]({'priority':0x1,'interceptor':(_0x35bb00,_0x1ee959)=>_0x1ee959(_0x35bb00)[_0x16856e(0x2bf)]((0x0,_0x1f9457[_0x16856e(0x2b7)])(async _0x5925c2=>{const _0x232d77=_0x16856e;let _0x5b3ed2=_0x5925c2;if(_0x5b3ed2['status']===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x232d77(0x148)](this[_0x232d77(0x294)]['t'](_0x232d77(0x103)))){let _0x1b0fde=window[_0x232d77(0x3f9)](window[_0x232d77(0x3ea)][_0x232d77(0x374)]);window[_0x232d77(0x3ea)][_0x232d77(0x374)]=this[_0x232d77(0x2d7)]()+_0x232d77(0x275)+_0x1b0fde;}}return _0x5b3ed2;}))});}[_0x473efc(0x2d7)](){const _0x205b4c=_0x473efc;let _0x35d4af=this['_configService']['getConfig'](_0x1f8831);return(_0x35d4af==null?void 0x0:_0x35d4af[_0x205b4c(0x19f)])??_0x205b4c(0xff);}};_0x3780cb=_0x4da91b([_0x9a3e23(0x0,_0x17ede7[_0x473efc(0x201)]),_0x9a3e23(0x1,(0x0,_0x17ede7['Inject'])(_0x4bbb37['HTTPService'])),_0x9a3e23(0x2,(0x0,_0x17ede7['Inject'])(_0x17ede7[_0x473efc(0x10e)]))],_0x3780cb);let _0x172c09=class extends _0x17ede7[_0x473efc(0x39c)]{constructor(_0x27ed26,_0x492dea){const _0x160d44=_0x473efc;super(),this[_0x160d44(0x2e4)]=_0x27ed26,this['_configService']=_0x492dea,_0x17f3d2(this,_0x160d44(0x126),!0x1),this[_0x160d44(0x368)]();}['_initMergeInterceptor'](){const _0x489eb2=_0x473efc;let _0x1fb9e2=this;this['disposeWithMe'](this[_0x489eb2(0x2e4)][_0x489eb2(0x36a)]({'priority':0x3e7,'interceptor':(0x0,_0x4bbb37[_0x489eb2(0x3ed)])({'isMatch'(_0x54d35c){const _0x14200c=_0x489eb2;var _0x17ae4f;if(_0x54d35c[_0x14200c(0xd6)]===_0x14200c(0x22b)&&(_0x17ae4f=_0x54d35c[_0x14200c(0x1cd)])!=null&&_0x17ae4f[_0x14200c(0xc9)]){let {objectID:_0x1f99ff,objectType:_0x284927}=_0x54d35c['requestParams'][_0x14200c(0xc9)]||{};if(!_0x1f99ff||_0x284927===void 0x0)return!0x1;let _0x43b78a=_0x1fb9e2[_0x14200c(0x24c)]()+'/'+_0x284927+_0x14200c(0x1a0)+_0x1f99ff+_0x14200c(0x3ab);if(_0x54d35c[_0x14200c(0x38a)]===_0x43b78a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x12d105){const _0x1b13fa=_0x489eb2;var _0x171b82;return(_0x171b82=_0x12d105[_0x1b13fa(0x1cd)])==null?void 0x0:_0x171b82[_0x1b13fa(0xc9)];},'mergeParamsToRequest'(_0x1636db,_0x582c59){const _0x264554=_0x489eb2;let _0xf7dbad=_0x1fb9e2[_0x264554(0x24c)]()+'/-/object/-/batch_allowed',_0x461b29=_0x1636db[_0x264554(0x3dc)]((_0x3b068d,_0x511023)=>{const _0x36d15b=_0x264554;let {unitID:_0x22c937,objectID:_0x49abb5,objectType:_0x3e77c4,actions:_0x5cd039}=_0x511023;return _0x3b068d[_0x22c937]||(_0x3b068d[_0x22c937]={}),_0x3b068d[_0x22c937][_0x49abb5]||(_0x3b068d[_0x22c937][_0x49abb5]={'objectID':_0x49abb5,'objectType':_0x3e77c4,'actions':[]}),_0x3b068d[_0x22c937][_0x49abb5][_0x36d15b(0x1a8)][_0x36d15b(0x283)](..._0x5cd039),_0x3b068d;},{}),_0x2f4181=[];for(let _0x197288 in _0x461b29)for(let _0x59d232 in _0x461b29[_0x197288]){let {actions:_0x57e969,objectType:_0x5af4cf}=_0x461b29[_0x197288][_0x59d232],_0x16f16c=[...new Set(_0x57e969)];_0x2f4181[_0x264554(0x283)]({'unitID':_0x197288,'objectID':_0x59d232,'objectType':_0x5af4cf,'actions':_0x16f16c});}return new _0x4bbb37[(_0x264554(0x238))]('POST',_0xf7dbad,{'headers':_0x582c59[_0x264554(0x3d7)],'withCredentials':_0x582c59[_0x264554(0xf0)],'responseType':_0x582c59[_0x264554(0x261)],'body':{'requests':_0x2f4181}});}},{'distributeResult'(_0x37c920,_0x534cfa){const _0x3212ce=_0x489eb2;let {objectActions:_0xd78e01}=_0x37c920;return _0x534cfa[_0x3212ce(0xfb)](_0xd2fed1=>{const _0x49cb75=_0x3212ce;let {unitID:_0x1f1682,objectID:_0x22183a,actions:_0x4a1ecc}=_0xd2fed1,_0x517583=_0xd78e01[_0x49cb75(0x14e)](_0x249508=>_0x249508[_0x49cb75(0xec)]===_0x1f1682&&_0x249508[_0x49cb75(0x1b3)]===_0x22183a);return{'config':_0xd2fed1,'result':{'actions':_0x4a1ecc['map'](_0x1e7483=>_0x517583==null?void 0x0:_0x517583['actions'][_0x49cb75(0x14e)](_0x53ca73=>_0x53ca73[_0x49cb75(0x18a)]===_0x1e7483))[_0x49cb75(0x30e)](_0x236530=>!!_0x236530),'error':_0x37c920[_0x49cb75(0x3e6)]}};});}})}));}[_0x473efc(0x24c)](){const _0x4cde9a=_0x473efc;let _0x555b1d=this[_0x4cde9a(0x414)]['getConfig'](_0x1f8831);return(_0x555b1d==null?void 0x0:_0x555b1d['authzUrl'])??_0x4cde9a(0x15e);}async[_0x473efc(0x33b)](_0x2a2c30){const _0x3ac798=_0x473efc;let _0x51d829=this['_getAPIPrefixPath']()+'/'+_0x2a2c30[_0x3ac798(0x380)]+_0x3ac798(0x3f7);return(await this[_0x3ac798(0x2e4)]['post'](_0x51d829,{'body':_0x2a2c30}))[_0x3ac798(0xc9)][_0x3ac798(0x1b3)]||'';}async[_0x473efc(0x26e)](_0x13c8c7){const _0xbc62a0=_0x473efc;let _0x6e281a=this[_0xbc62a0(0x24c)]()+_0xbc62a0(0x370);return(await this[_0xbc62a0(0x2e4)][_0xbc62a0(0x315)](_0x6e281a,{'body':_0x13c8c7}))['body'][_0xbc62a0(0x2cd)];}async[_0x473efc(0x269)](_0xd3d8f0){const _0xfd2af1=_0x473efc;var _0x48f03d;let _0x161969=this[_0xfd2af1(0x24c)]()+'/'+_0xd3d8f0[_0xfd2af1(0x380)]+_0xfd2af1(0x1a0)+_0xd3d8f0[_0xfd2af1(0x1b3)],_0xbcf271=await this[_0xfd2af1(0x2e4)][_0xfd2af1(0xfc)](_0x161969,{'body':_0xd3d8f0});if((_0xbcf271==null||(_0x48f03d=_0xbcf271[_0xfd2af1(0xc9)])==null||(_0x48f03d=_0x48f03d[_0xfd2af1(0x3e6)])==null?void 0x0:_0x48f03d[_0xfd2af1(0x3e1)])!==0x1)throw Error(_0xfd2af1(0x311));}async[_0x473efc(0x2a9)](_0xbe1fea){const _0x1c01c5=_0x473efc;let _0x1d0a62=this[_0x1c01c5(0x24c)]()+'/'+_0xbe1fea['objectType']+_0x1c01c5(0x1a0)+_0xbe1fea[_0x1c01c5(0x1b3)]+_0x1c01c5(0x3ab);return(await this['_HTTPService'][_0x1c01c5(0x315)](_0x1d0a62,{'body':_0xbe1fea}))[_0x1c01c5(0xc9)][_0x1c01c5(0x1a8)];}async[_0x473efc(0x3ba)](_0x237a1){const _0x6bb217=_0x473efc;let _0x8d8423=this[_0x6bb217(0x24c)]()+_0x6bb217(0x337);return(await this[_0x6bb217(0x2e4)][_0x6bb217(0x315)](_0x8d8423,{'body':{'requests':_0x237a1}}))[_0x6bb217(0xc9)][_0x6bb217(0x405)];}async['listRoles'](_0x4963e1){const _0x588392=_0x473efc;let _0x23af02=this[_0x588392(0x24c)]()+'/'+_0x4963e1[_0x588392(0x380)]+_0x588392(0x24a),_0x1a56a1=await this['_HTTPService'][_0x588392(0x315)](_0x23af02,{'body':_0x4963e1});return{'roles':_0x1a56a1[_0x588392(0xc9)][_0x588392(0x1c4)],'actions':_0x1a56a1['body']['actions']};}async[_0x473efc(0x242)](_0x46eb05){const _0x4d0dc8=_0x473efc;let _0x3e3694=this[_0x4d0dc8(0x24c)]()+_0x4d0dc8(0xf3);await this[_0x4d0dc8(0x2e4)][_0x4d0dc8(0x2ce)](_0x3e3694,{'params':{'collaboratorID':_0x46eb05['collaboratorID'],'objectID':_0x46eb05[_0x4d0dc8(0x1b3)],'unitID':_0x46eb05[_0x4d0dc8(0xec)]}});}async[_0x473efc(0x3d3)](_0x52ab53){const _0x36d145=_0x473efc;let _0xf7d5aa=this[_0x36d145(0x24c)]()+_0x36d145(0xf3);await this[_0x36d145(0x2e4)][_0x36d145(0x128)](_0xf7d5aa,{'body':_0x52ab53});}async['createCollaborator'](_0x20f5b7){const _0x3439bb=_0x473efc;let _0x30882b=this[_0x3439bb(0x24c)]()+'/collaborator';await this['_HTTPService']['post'](_0x30882b,{'body':_0x20f5b7});}async[_0x473efc(0xf4)](_0x540506){const _0x5e6ad0=_0x473efc;let _0x486f63=this[_0x5e6ad0(0x24c)]()+_0x5e6ad0(0xf3),_0x3fa609=await this['_HTTPService'][_0x5e6ad0(0x3af)](_0x486f63,{'params':{'objectID':_0x540506[_0x5e6ad0(0x1b3)],'unitID':_0x540506[_0x5e6ad0(0xec)]}});return this['setCfgEnableObjInherit'](_0x3fa609[_0x5e6ad0(0xc9)]['cfgEnableObjInherit']??!0x1),_0x3fa609[_0x5e6ad0(0xc9)]['collaborators'];}async[_0x473efc(0x1af)](_0x21b990){const _0x308be9=_0x473efc;let _0x456d2c=this[_0x308be9(0x24c)]()+_0x308be9(0xf3);await this[_0x308be9(0x2e4)][_0x308be9(0xfc)](_0x456d2c,{'body':_0x21b990});}[_0x473efc(0x346)](_0x594574){const _0x24d698=_0x473efc;this[_0x24d698(0x126)]=_0x594574;}[_0x473efc(0xd0)](){const _0x51a1e0=_0x473efc;return this[_0x51a1e0(0x126)];}};_0x172c09=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x4bbb37['HTTPService'])),_0x9a3e23(0x1,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x201)]))],_0x172c09);function _0x144df6(_0x167c42){const _0x5ebd49=_0x473efc;return _0x167c42 instanceof Uint8Array||ArrayBuffer[_0x5ebd49(0xd5)](_0x167c42)&&_0x167c42[_0x5ebd49(0x2c5)][_0x5ebd49(0x40d)]===_0x5ebd49(0x1b6)&&_0x5ebd49(0x13c)in _0x167c42&&_0x167c42[_0x5ebd49(0x13c)]===0x1;}function _0x55ea55(_0x177fd0){const _0x792eb3=_0x473efc;if(typeof _0x177fd0!=_0x792eb3(0x3cb))throw TypeError(_0x792eb3(0x130)+typeof _0x177fd0);if(!Number[_0x792eb3(0x131)](_0x177fd0)||_0x177fd0<0x0)throw RangeError(_0x792eb3(0x116)+_0x177fd0);}function _0x1ba694(_0x59b1f0,_0x5aa928,_0x578c11=''){const _0xc84493=_0x473efc;let _0x5147a4=_0x144df6(_0x59b1f0),_0x3cfbf7=_0x59b1f0==null?void 0x0:_0x59b1f0['length'],_0x32e6a2=_0x5aa928!==void 0x0;if(!_0x5147a4||_0x32e6a2&&_0x3cfbf7!==_0x5aa928){let _0x2c53c9=_0x578c11&&'\x22'+_0x578c11+'\x22\x20',_0xb8273d=_0x32e6a2?'\x20of\x20length\x20'+_0x5aa928:'',_0x4b46db=_0x5147a4?_0xc84493(0x1d7)+_0x3cfbf7:_0xc84493(0x357)+typeof _0x59b1f0,_0x1a3b4b=_0x2c53c9+_0xc84493(0x1d5)+_0xb8273d+_0xc84493(0x2ee)+_0x4b46db;throw _0x5147a4?RangeError(_0x1a3b4b):TypeError(_0x1a3b4b);}return _0x59b1f0;}function _0x41c118(_0x46e33b){const _0x5e64e6=_0x473efc;return new Uint32Array(_0x46e33b[_0x5e64e6(0x285)],_0x46e33b['byteOffset'],Math[_0x5e64e6(0x312)](_0x46e33b[_0x5e64e6(0x1ff)]/0x4));}function _0x2423b8(..._0x3b528a){const _0x4e20db=_0x473efc;for(let _0x1ff212=0x0;_0x1ff212<_0x3b528a[_0x4e20db(0x2b6)];_0x1ff212++)_0x3b528a[_0x1ff212]['fill'](0x0);}let _0x55f104=new Uint8Array(new Uint32Array([0x11223344])[_0x473efc(0x285)])[0x0]===0x44,_0x490465=_0x303280=>_0x303280<<0x18&0xff000000|_0x303280<<0x8&0xff0000|_0x303280>>>0x8&0xff00|_0x303280>>>0x18&0xff,_0x4bff9e=_0x55f104?_0x2b632e=>_0x2b632e:_0x56a366=>{const _0x190cc8=_0x473efc;for(let _0x31d1b7=0x0;_0x31d1b7<_0x56a366[_0x190cc8(0x2b6)];_0x31d1b7++)_0x56a366[_0x31d1b7]=_0x490465(_0x56a366[_0x31d1b7]);return _0x56a366;};function _0x1838a9(_0x217941){const _0x49ea81=_0x473efc;if(typeof _0x217941!=_0x49ea81(0x2fb))throw TypeError(_0x49ea81(0x177));return new Uint8Array(new TextEncoder()[_0x49ea81(0xf5)](_0x217941));}function _0x203c7a(_0x49d22f,_0x209b25){const _0x4283c9=_0x473efc;return!_0x49d22f[_0x4283c9(0x1ff)]||!_0x209b25[_0x4283c9(0x1ff)]?!0x1:_0x49d22f['buffer']===_0x209b25[_0x4283c9(0x285)]&&_0x49d22f['byteOffset']<_0x209b25[_0x4283c9(0x390)]+_0x209b25[_0x4283c9(0x1ff)]&&_0x209b25[_0x4283c9(0x390)]<_0x49d22f['byteOffset']+_0x49d22f['byteLength'];}function _0x36ea5f(_0xbe89af,_0x3ec588){const _0x3f0faf=_0x473efc;if(_0x203c7a(_0xbe89af,_0x3ec588)&&_0xbe89af[_0x3f0faf(0x390)]<_0x3ec588['byteOffset'])throw Error(_0x3f0faf(0x376));}function _0x58bcca(..._0x480888){const _0x522d3f=_0x473efc;let _0x1cb4f9=0x0;for(let _0x1f0cbe=0x0;_0x1f0cbe<_0x480888[_0x522d3f(0x2b6)];_0x1f0cbe++){let _0x4d6008=_0x480888[_0x1f0cbe];_0x1ba694(_0x4d6008),_0x1cb4f9+=_0x4d6008[_0x522d3f(0x2b6)];}let _0x20c616=new Uint8Array(_0x1cb4f9);for(let _0x161956=0x0,_0x24fc87=0x0;_0x161956<_0x480888[_0x522d3f(0x2b6)];_0x161956++){let _0x5d2b0c=_0x480888[_0x161956];_0x20c616[_0x522d3f(0x184)](_0x5d2b0c,_0x24fc87),_0x24fc87+=_0x5d2b0c[_0x522d3f(0x2b6)];}return _0x20c616;}let _0x50e0cb=(_0x40d5ee,_0x4e7ab3)=>{const _0x10151e=_0x473efc;function _0xe51498(_0x2831c6,..._0x71da69){const _0x23c7dd=_0x2dd0;if(_0x1ba694(_0x2831c6,void 0x0,_0x23c7dd(0x1b1)),_0x40d5ee[_0x23c7dd(0x34a)]!==void 0x0){let _0x469e10=_0x71da69[0x0];_0x1ba694(_0x469e10,_0x40d5ee[_0x23c7dd(0x32e)]?void 0x0:_0x40d5ee[_0x23c7dd(0x34a)],_0x23c7dd(0x23a));}let _0x4793f5=_0x40d5ee[_0x23c7dd(0x3fd)];_0x4793f5&&_0x71da69[0x1]!==void 0x0&&_0x1ba694(_0x71da69[0x1],void 0x0,_0x23c7dd(0x304));let _0x5c8477=_0x4e7ab3(_0x2831c6,..._0x71da69),_0x1f526b=(_0x4e7508,_0x4a0ba5)=>{const _0x263e3a=_0x23c7dd;if(_0x4a0ba5!==void 0x0){if(_0x4e7508!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x1ba694(_0x4a0ba5,void 0x0,_0x263e3a(0x353));}},_0x36d2fd=!0x1;return{'encrypt'(_0x57aa17,_0x1fb59b){const _0x564544=_0x23c7dd;if(_0x36d2fd)throw Error(_0x564544(0x1d3));return _0x36d2fd=!0x0,_0x1ba694(_0x57aa17),_0x1f526b(_0x5c8477[_0x564544(0x393)]['length'],_0x1fb59b),_0x5c8477[_0x564544(0x393)](_0x57aa17,_0x1fb59b);},'decrypt'(_0x3db4b5,_0x1c581d){const _0x3e8b18=_0x23c7dd;if(_0x1ba694(_0x3db4b5),_0x4793f5&&_0x3db4b5['length']<_0x4793f5)throw Error(_0x3e8b18(0x1f8)+_0x4793f5);return _0x1f526b(_0x5c8477[_0x3e8b18(0x245)][_0x3e8b18(0x2b6)],_0x1c581d),_0x5c8477[_0x3e8b18(0x245)](_0x3db4b5,_0x1c581d);}};}return Object[_0x10151e(0x1eb)](_0xe51498,_0x40d5ee),_0xe51498;};function _0x528a5f(_0x29cb40,_0x2b7e7f,_0x4efbaf=!0x0){const _0x4038d3=_0x473efc;if(_0x2b7e7f===void 0x0)return new Uint8Array(_0x29cb40);if(_0x1ba694(_0x2b7e7f,void 0x0,'output'),_0x2b7e7f[_0x4038d3(0x2b6)]!==_0x29cb40)throw Error('\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20'+_0x29cb40+_0x4038d3(0x1ed)+_0x2b7e7f[_0x4038d3(0x2b6)]);if(_0x4efbaf&&!_0x2adbb1(_0x2b7e7f))throw Error(_0x4038d3(0xee));return _0x2b7e7f;}function _0x2adbb1(_0x241dd0){const _0x50809d=_0x473efc;return _0x241dd0[_0x50809d(0x390)]%0x4==0x0;}function _0x7b02af(_0x22ac6b){return Uint8Array['from'](_0x1ba694(_0x22ac6b));}function _0x4d70c7(_0x2b7019=0x20){const _0x471242=_0x473efc;_0x55ea55(_0x2b7019);let _0x46ec17=typeof globalThis==_0x471242(0x3c6)?globalThis[_0x471242(0x292)]:null;if(typeof(_0x46ec17==null?void 0x0:_0x46ec17[_0x471242(0x26f)])!=_0x471242(0x1d0))throw Error(_0x471242(0xcd));return _0x46ec17['getRandomValues'](new Uint8Array(_0x2b7019));}function _0xf3b63d(_0x4d04ee){if(![0x10,0x18,0x20]['includes'](_0x4d04ee['length']))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x4d04ee['length']);}function _0x146f0f(_0x834536){return _0x834536<<0x1^0x11b&-(_0x834536>>0x7);}function _0x204d1d(_0x1e335b,_0x37e749){let _0x19c5b7=0x0;for(;_0x37e749>0x0;_0x37e749>>=0x1)_0x19c5b7^=_0x1e335b&-(_0x37e749&0x1),_0x1e335b=_0x146f0f(_0x1e335b);return _0x19c5b7;}let _0x145c08=((()=>{let _0x239b3f=new Uint8Array(0x100);for(let _0x3a4c25=0x0,_0xdb36d8=0x1;_0x3a4c25<0x100;_0x3a4c25++,_0xdb36d8^=_0x146f0f(_0xdb36d8))_0x239b3f[_0x3a4c25]=_0xdb36d8;let _0x227465=new Uint8Array(0x100);_0x227465[0x0]=0x63;for(let _0x53036b=0x0;_0x53036b<0xff;_0x53036b++){let _0x2b913f=_0x239b3f[0xff-_0x53036b];_0x2b913f|=_0x2b913f<<0x8,_0x227465[_0x239b3f[_0x53036b]]=(_0x2b913f^_0x2b913f>>0x4^_0x2b913f>>0x5^_0x2b913f>>0x6^_0x2b913f>>0x7^0x63)&0xff;}return _0x2423b8(_0x239b3f),_0x227465;})()),_0x2a7bfd=_0x145c08[_0x473efc(0xfb)]((_0x1ed0cf,_0x45cce0)=>_0x145c08[_0x473efc(0x2b8)](_0x45cce0)),_0x1e75a6=_0x576856=>_0x576856<<0x18|_0x576856>>>0x8,_0x1082eb=_0x491f16=>_0x491f16<<0x8|_0x491f16>>>0x18;function _0x4d27d8(_0x341a80,_0x34f778){const _0x5dd4f5=_0x473efc;if(_0x341a80[_0x5dd4f5(0x2b6)]!==0x100)throw Error('Wrong\x20sbox\x20length');let _0xf86595=new Uint32Array(0x100)[_0x5dd4f5(0xfb)]((_0x44523e,_0x2db47f)=>_0x34f778(_0x341a80[_0x2db47f])),_0x140141=_0xf86595[_0x5dd4f5(0xfb)](_0x1082eb),_0x28d5c0=_0x140141['map'](_0x1082eb),_0x599927=_0x28d5c0[_0x5dd4f5(0xfb)](_0x1082eb),_0x529695=new Uint32Array(0x100*0x100),_0x4004c4=new Uint32Array(0x100*0x100),_0x5287a1=new Uint16Array(0x100*0x100);for(let _0x24ee6f=0x0;_0x24ee6f<0x100;_0x24ee6f++)for(let _0x2f841e=0x0;_0x2f841e<0x100;_0x2f841e++){let _0x5e46c9=_0x24ee6f*0x100+_0x2f841e;_0x529695[_0x5e46c9]=_0xf86595[_0x24ee6f]^_0x140141[_0x2f841e],_0x4004c4[_0x5e46c9]=_0x28d5c0[_0x24ee6f]^_0x599927[_0x2f841e],_0x5287a1[_0x5e46c9]=_0x341a80[_0x24ee6f]<<0x8|_0x341a80[_0x2f841e];}return{'sbox':_0x341a80,'sbox2':_0x5287a1,'T0':_0xf86595,'T1':_0x140141,'T2':_0x28d5c0,'T3':_0x599927,'T01':_0x529695,'T23':_0x4004c4};}let _0x4bbc3b=_0x4d27d8(_0x145c08,_0x5a1f62=>_0x204d1d(_0x5a1f62,0x3)<<0x18|_0x5a1f62<<0x10|_0x5a1f62<<0x8|_0x204d1d(_0x5a1f62,0x2)),_0x4c301e=_0x4d27d8(_0x2a7bfd,_0x3bdf82=>_0x204d1d(_0x3bdf82,0xb)<<0x18|_0x204d1d(_0x3bdf82,0xd)<<0x10|_0x204d1d(_0x3bdf82,0x9)<<0x8|_0x204d1d(_0x3bdf82,0xe)),_0x57e723=((()=>{let _0x502a4b=new Uint8Array(0x10);for(let _0x3fcb94=0x0,_0x3cb262=0x1;_0x3fcb94<0x10;_0x3fcb94++,_0x3cb262=_0x146f0f(_0x3cb262))_0x502a4b[_0x3fcb94]=_0x3cb262;return _0x502a4b;})());function _0x2b9020(_0x4eadd5){const _0x4e67f7=_0x473efc;_0x1ba694(_0x4eadd5);let _0x3b7ad7=_0x4eadd5[_0x4e67f7(0x2b6)];_0xf3b63d(_0x4eadd5);let {sbox2:_0x55f77c}=_0x4bbc3b,_0x10de22=[];(!_0x55f104||!_0x2adbb1(_0x4eadd5))&&_0x10de22['push'](_0x4eadd5=_0x7b02af(_0x4eadd5));let _0x36f454=_0x4bff9e(_0x41c118(_0x4eadd5)),_0x5c5c77=_0x36f454[_0x4e67f7(0x2b6)],_0x5855ae=_0x2bd688=>_0x22d989(_0x55f77c,_0x2bd688,_0x2bd688,_0x2bd688,_0x2bd688),_0x25f121=new Uint32Array(_0x3b7ad7+0x1c);_0x25f121[_0x4e67f7(0x184)](_0x36f454);for(let _0x66a86e=_0x5c5c77;_0x66a86e<_0x25f121['length'];_0x66a86e++){let _0x538091=_0x25f121[_0x66a86e-0x1];_0x66a86e%_0x5c5c77===0x0?_0x538091=_0x5855ae(_0x1e75a6(_0x538091))^_0x57e723[_0x66a86e/_0x5c5c77-0x1]:_0x5c5c77>0x6&&_0x66a86e%_0x5c5c77===0x4&&(_0x538091=_0x5855ae(_0x538091)),_0x25f121[_0x66a86e]=_0x25f121[_0x66a86e-_0x5c5c77]^_0x538091;}return _0x2423b8(..._0x10de22),_0x25f121;}function _0x1682fa(_0x935716){const _0x63775c=_0x473efc;let _0x51a2ef=_0x2b9020(_0x935716),_0x1f63c9=_0x51a2ef[_0x63775c(0xd2)](),_0x3bd4a2=_0x51a2ef[_0x63775c(0x2b6)],{sbox2:_0x1cf0e5}=_0x4bbc3b,{T0:_0x17cf1a,T1:_0x4facb4,T2:_0x1b379b,T3:_0x10987d}=_0x4c301e;for(let _0x120d3f=0x0;_0x120d3f<_0x3bd4a2;_0x120d3f+=0x4)for(let _0x3f0c16=0x0;_0x3f0c16<0x4;_0x3f0c16++)_0x1f63c9[_0x120d3f+_0x3f0c16]=_0x51a2ef[_0x3bd4a2-_0x120d3f-0x4+_0x3f0c16];_0x2423b8(_0x51a2ef);for(let _0x59a4ee=0x4;_0x59a4ee<_0x3bd4a2-0x4;_0x59a4ee++){let _0x39784e=_0x1f63c9[_0x59a4ee],_0x317de6=_0x22d989(_0x1cf0e5,_0x39784e,_0x39784e,_0x39784e,_0x39784e);_0x1f63c9[_0x59a4ee]=_0x17cf1a[_0x317de6&0xff]^_0x4facb4[_0x317de6>>>0x8&0xff]^_0x1b379b[_0x317de6>>>0x10&0xff]^_0x10987d[_0x317de6>>>0x18];}return _0x1f63c9;}function _0x3c6194(_0x5a987a,_0x5ece1c,_0x41a0c6,_0x2f1c19,_0x436404,_0x266052){return _0x5a987a[_0x41a0c6<<0x8&0xff00|_0x2f1c19>>>0x8&0xff]^_0x5ece1c[_0x436404>>>0x8&0xff00|_0x266052>>>0x18&0xff];}function _0x22d989(_0x162cb7,_0x5769b9,_0x6445fb,_0x4ae97c,_0x58975b){return _0x162cb7[_0x5769b9&0xff|_0x6445fb&0xff00]|_0x162cb7[_0x4ae97c>>>0x10&0xff|_0x58975b>>>0x10&0xff00]<<0x10;}function _0x138c25(_0xf85c9b,_0x4a3529,_0xac3e35,_0xa332ac,_0x499a6b){let {sbox2:_0x306949,T01:_0x56541e,T23:_0x5c2e63}=_0x4bbc3b,_0xbaaed3=0x0;_0x4a3529^=_0xf85c9b[_0xbaaed3++],_0xac3e35^=_0xf85c9b[_0xbaaed3++],_0xa332ac^=_0xf85c9b[_0xbaaed3++],_0x499a6b^=_0xf85c9b[_0xbaaed3++];let _0x2e143c=_0xf85c9b['length']/0x4-0x2;for(let _0x1dc720=0x0;_0x1dc720<_0x2e143c;_0x1dc720++){let _0xfa3ca1=_0xf85c9b[_0xbaaed3++]^_0x3c6194(_0x56541e,_0x5c2e63,_0x4a3529,_0xac3e35,_0xa332ac,_0x499a6b),_0x51c09c=_0xf85c9b[_0xbaaed3++]^_0x3c6194(_0x56541e,_0x5c2e63,_0xac3e35,_0xa332ac,_0x499a6b,_0x4a3529),_0x3d2b1d=_0xf85c9b[_0xbaaed3++]^_0x3c6194(_0x56541e,_0x5c2e63,_0xa332ac,_0x499a6b,_0x4a3529,_0xac3e35),_0x4a4fce=_0xf85c9b[_0xbaaed3++]^_0x3c6194(_0x56541e,_0x5c2e63,_0x499a6b,_0x4a3529,_0xac3e35,_0xa332ac);_0x4a3529=_0xfa3ca1,_0xac3e35=_0x51c09c,_0xa332ac=_0x3d2b1d,_0x499a6b=_0x4a4fce;}return{'s0':_0xf85c9b[_0xbaaed3++]^_0x22d989(_0x306949,_0x4a3529,_0xac3e35,_0xa332ac,_0x499a6b),'s1':_0xf85c9b[_0xbaaed3++]^_0x22d989(_0x306949,_0xac3e35,_0xa332ac,_0x499a6b,_0x4a3529),'s2':_0xf85c9b[_0xbaaed3++]^_0x22d989(_0x306949,_0xa332ac,_0x499a6b,_0x4a3529,_0xac3e35),'s3':_0xf85c9b[_0xbaaed3++]^_0x22d989(_0x306949,_0x499a6b,_0x4a3529,_0xac3e35,_0xa332ac)};}function _0x30e2c1(_0x4959c5,_0x647bfe,_0xe82bed,_0x165983,_0x1839db){const _0x16add1=_0x473efc;let {sbox2:_0x2ed5b2,T01:_0x354bec,T23:_0x2b852f}=_0x4c301e,_0x1a57cd=0x0;_0x647bfe^=_0x4959c5[_0x1a57cd++],_0xe82bed^=_0x4959c5[_0x1a57cd++],_0x165983^=_0x4959c5[_0x1a57cd++],_0x1839db^=_0x4959c5[_0x1a57cd++];let _0x3e40eb=_0x4959c5[_0x16add1(0x2b6)]/0x4-0x2;for(let _0x587534=0x0;_0x587534<_0x3e40eb;_0x587534++){let _0x192f2f=_0x4959c5[_0x1a57cd++]^_0x3c6194(_0x354bec,_0x2b852f,_0x647bfe,_0x1839db,_0x165983,_0xe82bed),_0x28aad4=_0x4959c5[_0x1a57cd++]^_0x3c6194(_0x354bec,_0x2b852f,_0xe82bed,_0x647bfe,_0x1839db,_0x165983),_0xae36f=_0x4959c5[_0x1a57cd++]^_0x3c6194(_0x354bec,_0x2b852f,_0x165983,_0xe82bed,_0x647bfe,_0x1839db),_0x381c70=_0x4959c5[_0x1a57cd++]^_0x3c6194(_0x354bec,_0x2b852f,_0x1839db,_0x165983,_0xe82bed,_0x647bfe);_0x647bfe=_0x192f2f,_0xe82bed=_0x28aad4,_0x165983=_0xae36f,_0x1839db=_0x381c70;}return{'s0':_0x4959c5[_0x1a57cd++]^_0x22d989(_0x2ed5b2,_0x647bfe,_0x1839db,_0x165983,_0xe82bed),'s1':_0x4959c5[_0x1a57cd++]^_0x22d989(_0x2ed5b2,_0xe82bed,_0x647bfe,_0x1839db,_0x165983),'s2':_0x4959c5[_0x1a57cd++]^_0x22d989(_0x2ed5b2,_0x165983,_0xe82bed,_0x647bfe,_0x1839db),'s3':_0x4959c5[_0x1a57cd++]^_0x22d989(_0x2ed5b2,_0x1839db,_0x165983,_0xe82bed,_0x647bfe)};}function _0x2c3ff3(_0x161692){const _0x9bf6cb=_0x473efc;if(_0x1ba694(_0x161692),_0x161692[_0x9bf6cb(0x2b6)]%0x10!=0x0)throw Error(_0x9bf6cb(0x2fc));}function _0x57580a(_0x4a5a32,_0x3d2dbc,_0x29df4a){const _0x53b9f9=_0x473efc;_0x1ba694(_0x4a5a32);let _0x4bd699=_0x4a5a32[_0x53b9f9(0x2b6)],_0x4c94c5=_0x4bd699%0x10;if(!_0x3d2dbc&&_0x4c94c5!==0x0)throw Error(_0x53b9f9(0x144));if(_0x3d2dbc){let _0x490ada=0x10-_0x4c94c5;_0x490ada||=0x10,_0x4bd699+=_0x490ada;}_0x29df4a=_0x528a5f(_0x4bd699,_0x29df4a),_0x36ea5f(_0x4a5a32,_0x29df4a),(!_0x55f104||!_0x2adbb1(_0x4a5a32))&&(_0x4a5a32=_0x7b02af(_0x4a5a32));let _0x38f31c=_0x41c118(_0x4a5a32);return _0x4bff9e(_0x38f31c),{'b':_0x38f31c,'o':_0x41c118(_0x29df4a),'out':_0x29df4a};}function _0x3a3f1b(_0x489fe8,_0x2ec616){const _0x5c5370=_0x473efc;if(!_0x2ec616)return _0x489fe8;let _0xd1238d=_0x489fe8[_0x5c5370(0x2b6)];if(_0xd1238d===0x0)throw Error(_0x5c5370(0x25d));let _0x226c05=_0x489fe8[_0xd1238d-0x1],_0x2774a7=0x1;_0x2774a7&=_0x226c05-0x1>>>0x1f^0x1,_0x2774a7&=0x10-_0x226c05>>>0x1f^0x1;for(let _0x17b7d2=0x0;_0x17b7d2<0x10;_0x17b7d2++){let _0x1252dd=_0x17b7d2-_0x226c05>>>0x1f,_0x4a9b66=+((_0x489fe8[_0xd1238d-0x1-_0x17b7d2]^_0x226c05)===0x0);_0x2774a7&=_0x4a9b66|_0x1252dd^0x1;}if(!_0x2774a7)throw Error(_0x5c5370(0x2fa));return _0x489fe8[_0x5c5370(0x17b)](0x0,_0xd1238d-_0x226c05);}function _0x50fb98(_0x24b11e){const _0x312bf1=_0x473efc;let _0x2341b9=new Uint8Array(0x10),_0x939141=_0x41c118(_0x2341b9);_0x2341b9[_0x312bf1(0x184)](_0x24b11e);let _0x388e52=0x10-_0x24b11e[_0x312bf1(0x2b6)];for(let _0x2287cf=0x10-_0x388e52;_0x2287cf<0x10;_0x2287cf++)_0x2341b9[_0x2287cf]=_0x388e52;return _0x939141;}let _0x39eaa2=_0x50e0cb({'blockSize':0x10,'nonceLength':0x10},function(_0x58ecee,_0x169a80,_0x2604ab={}){const _0x1d98c7=_0x473efc;let _0x352aec=!_0x2604ab[_0x1d98c7(0x342)];return{'encrypt'(_0x100cf5,_0x256bae){const _0x2533ba=_0x1d98c7;let _0x351888=_0x2b9020(_0x58ecee),{b:_0x401b86,o:_0x36030e,out:_0x3a2383}=_0x57580a(_0x100cf5,_0x352aec,_0x256bae),_0x13e61d=_0x169a80,_0x2c963e=[_0x351888];(!_0x55f104||!_0x2adbb1(_0x13e61d))&&_0x2c963e[_0x2533ba(0x283)](_0x13e61d=_0x7b02af(_0x13e61d));let _0x1f39ec=_0x41c118(_0x13e61d);_0x4bff9e(_0x1f39ec);let _0x4d7f09=_0x1f39ec[0x0],_0x244d46=_0x1f39ec[0x1],_0x4f618d=_0x1f39ec[0x2],_0x19fd72=_0x1f39ec[0x3],_0x5a5c55=0x0;for(;_0x5a5c55+0x4<=_0x401b86['length'];)_0x4d7f09^=_0x401b86[_0x5a5c55+0x0],_0x244d46^=_0x401b86[_0x5a5c55+0x1],_0x4f618d^=_0x401b86[_0x5a5c55+0x2],_0x19fd72^=_0x401b86[_0x5a5c55+0x3],{s0:_0x4d7f09,s1:_0x244d46,s2:_0x4f618d,s3:_0x19fd72}=_0x138c25(_0x351888,_0x4d7f09,_0x244d46,_0x4f618d,_0x19fd72),_0x36030e[_0x5a5c55++]=_0x4d7f09,_0x36030e[_0x5a5c55++]=_0x244d46,_0x36030e[_0x5a5c55++]=_0x4f618d,_0x36030e[_0x5a5c55++]=_0x19fd72;if(_0x352aec){let _0xd6d791=_0x50fb98(_0x100cf5[_0x2533ba(0x17b)](_0x5a5c55*0x4));_0x4bff9e(_0xd6d791),_0x4d7f09^=_0xd6d791[0x0],_0x244d46^=_0xd6d791[0x1],_0x4f618d^=_0xd6d791[0x2],_0x19fd72^=_0xd6d791[0x3],{s0:_0x4d7f09,s1:_0x244d46,s2:_0x4f618d,s3:_0x19fd72}=_0x138c25(_0x351888,_0x4d7f09,_0x244d46,_0x4f618d,_0x19fd72),_0x36030e[_0x5a5c55++]=_0x4d7f09,_0x36030e[_0x5a5c55++]=_0x244d46,_0x36030e[_0x5a5c55++]=_0x4f618d,_0x36030e[_0x5a5c55++]=_0x19fd72;}return _0x4bff9e(_0x36030e),_0x2423b8(..._0x2c963e),_0x3a2383;},'decrypt'(_0x449926,_0x5d81b2){const _0x28f45a=_0x1d98c7;_0x2c3ff3(_0x449926);let _0x33da1f=_0x1682fa(_0x58ecee),_0x30ac64=_0x169a80,_0x24b137=[_0x33da1f];(!_0x55f104||!_0x2adbb1(_0x30ac64))&&_0x24b137['push'](_0x30ac64=_0x7b02af(_0x30ac64));let _0xdf1a1f=_0x41c118(_0x30ac64);_0x4bff9e(_0xdf1a1f),_0x5d81b2=_0x528a5f(_0x449926[_0x28f45a(0x2b6)],_0x5d81b2),_0x36ea5f(_0x449926,_0x5d81b2),(!_0x55f104||!_0x2adbb1(_0x449926))&&_0x24b137[_0x28f45a(0x283)](_0x449926=_0x7b02af(_0x449926));let _0x5a40fd=_0x41c118(_0x449926),_0xba52c6=_0x41c118(_0x5d81b2);_0x4bff9e(_0x5a40fd);let _0x33d514=_0xdf1a1f[0x0],_0x18031e=_0xdf1a1f[0x1],_0x592493=_0xdf1a1f[0x2],_0x5585d9=_0xdf1a1f[0x3];for(let _0x2194a7=0x0;_0x2194a7+0x4<=_0x5a40fd[_0x28f45a(0x2b6)];){let _0x5567ad=_0x33d514,_0x47e1fd=_0x18031e,_0x183e88=_0x592493,_0x1b0c28=_0x5585d9;_0x33d514=_0x5a40fd[_0x2194a7+0x0],_0x18031e=_0x5a40fd[_0x2194a7+0x1],_0x592493=_0x5a40fd[_0x2194a7+0x2],_0x5585d9=_0x5a40fd[_0x2194a7+0x3];let {s0:_0x1fc6c0,s1:_0x3841aa,s2:_0x571969,s3:_0x278b40}=_0x30e2c1(_0x33da1f,_0x33d514,_0x18031e,_0x592493,_0x5585d9);_0xba52c6[_0x2194a7++]=_0x1fc6c0^_0x5567ad,_0xba52c6[_0x2194a7++]=_0x3841aa^_0x47e1fd,_0xba52c6[_0x2194a7++]=_0x571969^_0x183e88,_0xba52c6[_0x2194a7++]=_0x278b40^_0x1b0c28;}return _0x4bff9e(_0xba52c6),_0x2423b8(..._0x24b137),_0x3a3f1b(_0x5d81b2,_0x352aec);}};});function _0x20a368(_0x1b0863){const _0x258990=_0x473efc;let _0x2cc921=atob(_0x1b0863),_0x14fec0=new Uint8Array(_0x2cc921['length']);for(let _0x2e25fd=0x0;_0x2e25fd<_0x2cc921[_0x258990(0x2b6)];_0x2e25fd++)_0x14fec0[_0x2e25fd]=_0x2cc921['charCodeAt'](_0x2e25fd);return _0x14fec0;}function _0x52bba5(_0x163007){const _0x37fd12=_0x473efc;let _0x1daa82='';for(let _0x39417f=0x0;_0x39417f<_0x163007[_0x37fd12(0x2b6)];_0x39417f++)_0x1daa82+=String[_0x37fd12(0x413)](_0x163007[_0x39417f]);return btoa(_0x1daa82);}function _0x312ee6(_0xc9252e,_0x1933e6){let _0x2d2c31=_0x20a368(_0x1933e6),_0xa267ca=_0x4d70c7(0x10);return _0x52bba5(_0x58bcca(_0xa267ca,_0x39eaa2(_0x2d2c31,_0xa267ca)['encrypt'](_0x1838a9(_0xc9252e))));}function _0x342257(){const _0x1dca38=_0x473efc;let _0x1decfd=(0x0,_0x90a78a[_0x1dca38(0x26d)])()[_0x1dca38(0x415)];if(typeof window<'u'&&window[_0x1dca38(0x3ea)]!==void 0x0&&_0x1decfd){let _0x18cea2={'time':Math['floor'](Date[_0x1dca38(0x319)]()/0x3e8),'domain':location['hostname']};return _0x312ee6(JSON[_0x1dca38(0x317)](_0x18cea2),_0x1decfd);}}let _0x69e359=class{constructor(_0x56a9ff){const _0x29a102=_0x473efc;this[_0x29a102(0x2b0)]=_0x56a9ff,this[_0x29a102(0xe0)]();}[_0x473efc(0xe0)](){const _0x40f0b0=_0x473efc;this[_0x40f0b0(0x2b0)][_0x40f0b0(0x36a)]({'interceptor':(_0x33d485,_0x1f5a10)=>{const _0x398c7d=_0x40f0b0;let _0x31383d=_0x342257();return _0x31383d&&_0x33d485[_0x398c7d(0x3d7)][_0x398c7d(0x184)](_0x398c7d(0xce),_0x31383d),_0x1f5a10(_0x33d485);}});}};_0x69e359=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7['Inject'])(_0x4bbb37[_0x473efc(0x1f7)]))],_0x69e359);let _0x21b227=class extends _0x17ede7[_0x473efc(0x1a3)]{constructor(_0x3660a4,_0x494fa2,_0x4169e){const _0x10ccc2=_0x473efc;super(),this[_0x10ccc2(0x309)]=_0x3660a4,this['_snapshotService']=_0x494fa2,this[_0x10ccc2(0x3d0)]=_0x4169e,_0x17f3d2(this,_0x10ccc2(0x322),new _0x1f9457[(_0x10ccc2(0x3c1))](null)),_0x17f3d2(this,_0x10ccc2(0x30a),new _0x1f9457[(_0x10ccc2(0x2d8))]()),_0x17f3d2(this,_0x10ccc2(0x34d),this['_unitInfo$']['asObservable']()),_0x17f3d2(this,_0x10ccc2(0x36e),this[_0x10ccc2(0x30a)]['asObservable']());}[_0x473efc(0x335)](){const _0x4d74ac=_0x473efc;super[_0x4d74ac(0x335)](),this[_0x4d74ac(0x30a)][_0x4d74ac(0x403)](),this[_0x4d74ac(0x322)][_0x4d74ac(0x403)]();}async[_0x473efc(0x159)](_0x3703a9,_0x45e106,_0x1b5171,_0x28d4d1){const _0x4c22c3=_0x473efc;this[_0x4c22c3(0x322)][_0x4c22c3(0x2f5)]({'unitId':_0x3703a9,'type':_0x45e106,'subUnitId':_0x28d4d1});let _0x16b31d=null;switch(_0x45e106){case _0x17ede7[_0x4c22c3(0x1c0)][_0x4c22c3(0x1bc)]:_0x16b31d=await this[_0x4c22c3(0x3df)][_0x4c22c3(0x3bc)](_0x3703a9,_0x1b5171,void 0x0,{'initialSubUnitId':_0x28d4d1});break;case _0x17ede7[_0x4c22c3(0x1c0)][_0x4c22c3(0x399)]:_0x16b31d=await this[_0x4c22c3(0x3df)][_0x4c22c3(0x30d)](_0x3703a9,_0x1b5171);break;case _0x17ede7[_0x4c22c3(0x1c0)]['UNIVER_SLIDE']:_0x16b31d=await this[_0x4c22c3(0x3df)][_0x4c22c3(0x3d8)](_0x3703a9,_0x1b5171);break;case _0x17ede7[_0x4c22c3(0x1c0)][_0x4c22c3(0x3b5)]:_0x16b31d=await this['_snapshotService'][_0x4c22c3(0x216)](_0x3703a9,_0x1b5171);break;case _0x17ede7[_0x4c22c3(0x1c0)]['UNIVER_BASE']:_0x16b31d=await this[_0x4c22c3(0x3df)][_0x4c22c3(0x3e2)](_0x3703a9,_0x1b5171);break;case _0x17ede7[_0x4c22c3(0x1c0)][_0x4c22c3(0x1ce)]:_0x16b31d=await this['_snapshotService'][_0x4c22c3(0x362)](_0x3703a9,_0x1b5171);break;default:this[_0x4c22c3(0x309)][_0x4c22c3(0x3e6)](_0x4c22c3(0x3c7),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x16b31d&&this[_0x4c22c3(0x30a)][_0x4c22c3(0x2f5)](_0x16b31d),_0x16b31d;}async[_0x473efc(0x316)](_0x4e54b0,_0x28d040,_0x36f111){const _0x26fd3c=_0x473efc;var _0xb1a57e;this[_0x26fd3c(0x322)][_0x26fd3c(0x2f5)]({'unitId':_0x4e54b0,'type':_0x28d040,'subUnitId':_0x36f111});let _0x2e9ee5=0x0,_0x162f2b=await((_0xb1a57e=this[_0x26fd3c(0x3d0)])==null?void 0x0:_0xb1a57e[_0x26fd3c(0x191)](_0x4e54b0));return _0x162f2b&&(_0x162f2b[_0x26fd3c(0x1da)]||_0x162f2b[_0x26fd3c(0x237)][_0x26fd3c(0x2b6)]!==0x0)&&(_0x2e9ee5=_0x162f2b[_0x26fd3c(0x21e)]),_0x2e9ee5===0x0&&this['_logService'][_0x26fd3c(0x2f9)](_0x26fd3c(0x3c7),_0x26fd3c(0x295)),this[_0x26fd3c(0x159)](_0x4e54b0,_0x28d040,_0x2e9ee5,_0x36f111);}};_0x21b227=_0x4da91b([_0x9a3e23(0x0,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0x1,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x3d4600[_0x473efc(0x17c)])),_0x9a3e23(0x2,(0x0,_0x17ede7[_0x473efc(0x165)])(_0x4386bd))],_0x21b227);let _0x32adc1=class{constructor(_0x128b75,_0x531091,_0x2f2d4a){const _0xbeb160=_0x473efc;this['_httpService']=_0x128b75,this[_0xbeb160(0x414)]=_0x531091,this[_0xbeb160(0x171)]=_0x2f2d4a,_0x17f3d2(this,_0xbeb160(0x10f),0x0),_0x17f3d2(this,_0xbeb160(0x35b),new _0x1f9457[(_0xbeb160(0x2d8))]()),_0x17f3d2(this,'change$',this[_0xbeb160(0x35b)]),_0x17f3d2(this,_0xbeb160(0x264),new Map());}[_0x473efc(0xea)](_0x5cdb4f){const _0x5d1a02=_0x473efc;this[_0x5d1a02(0x10f)]=_0x5cdb4f,this[_0x5d1a02(0x35b)][_0x5d1a02(0x2f5)](_0x5cdb4f);}[_0x473efc(0x3fc)](_0x24914a,_0x12f890){const _0x2b88a6=_0x473efc;if(_0x12f890===_0x17ede7[_0x2b88a6(0x2b1)]['BASE64']){let _0x1b7093=new Image();return _0x1b7093[_0x2b88a6(0x1db)]=_0x24914a,_0x1b7093;}return this['_imageSourceCache']['get'](_0x24914a);}['addImageSourceCache'](_0x914f48,_0x566dc0,_0x1db682){const _0x3890ec=_0x473efc;_0x566dc0!==_0x17ede7[_0x3890ec(0x2b1)][_0x3890ec(0x361)]&&_0x1db682!=null&&this[_0x3890ec(0x264)]['set'](_0x914f48,_0x1db682);}async['getImage'](_0x12a7a6){const _0x2f2853=_0x473efc;try{let _0x1fd8c1=this['_replaceFileID'](this[_0x2f2853(0x170)](),''+_0x12a7a6),_0x2c17a4=(await this[_0x2f2853(0x2b0)]['get'](_0x1fd8c1))[_0x2f2853(0xc9)];if(_0x2c17a4[_0x2f2853(0x3e6)]&&_0x2c17a4[_0x2f2853(0x3e6)][_0x2f2853(0x3e1)]===_0x3d2f85[_0x2f2853(0x135)]['OK']){let _0x39ef6e=(0x0,_0x17ede7[_0x2f2853(0x2db)])(_0x2c17a4[_0x2f2853(0x38a)],this[_0x2f2853(0x398)]());return Promise[_0x2f2853(0x19b)](_0x39ef6e);}return Promise[_0x2f2853(0x3a2)](_0x2c17a4[_0x2f2853(0x3e6)]);}catch(_0x1eb487){return Promise['reject'](_0x1eb487);}}async[_0x473efc(0x314)](_0x9812ea){const _0xdaf9f2=_0x473efc;let _0x4a9298='';if(!_0x536602['DRAWING_IMAGE_ALLOW_IMAGE_LIST'][_0xdaf9f2(0x218)](_0x9812ea['type']))return this['_decreaseWaiting'](),Promise['reject'](Error(_0x17ede7[_0xdaf9f2(0x23e)][_0xdaf9f2(0x27e)]));if(_0x9812ea['size']>(0x0,_0x536602['getDrawingImageAllowSize'])())return this[_0xdaf9f2(0x1a4)](),Promise[_0xdaf9f2(0x3a2)](Error(_0x17ede7[_0xdaf9f2(0x23e)][_0xdaf9f2(0x181)]));try{let _0x585a48=new FormData();_0x585a48[_0xdaf9f2(0x10a)](_0xdaf9f2(0x280),_0x9812ea);let _0x3a8296=this[_0xdaf9f2(0x171)]['getFocusedUnit'](),_0x5b9cd0=_0x3a8296==null?void 0x0:_0x3a8296[_0xdaf9f2(0x204)]();if(!_0x5b9cd0)throw Error(_0xdaf9f2(0x19d));let _0x5c09ac=this['_getUploadFileURL']()+_0xdaf9f2(0x223)+_0x9812ea[_0xdaf9f2(0x3c9)][_0xdaf9f2(0x202)]()+_0xdaf9f2(0x33d)+_0x3d2f85[_0xdaf9f2(0x156)]['UnitEmbedded']+_0xdaf9f2(0x252)+encodeURIComponent(_0x5b9cd0),_0x3be8b5={'body':_0x585a48},_0x570711=(await this[_0xdaf9f2(0x2b0)][_0xdaf9f2(0x315)](_0x5c09ac,_0x3be8b5))['body'];if(typeof _0x570711[_0xdaf9f2(0x1e2)]!=_0xdaf9f2(0x2fb))return this[_0xdaf9f2(0x1a4)](),Promise[_0xdaf9f2(0x3a2)](Error(_0x17ede7[_0xdaf9f2(0x23e)]['ERROR_IMAGE']));_0x4a9298=_0x570711[_0xdaf9f2(0x1e2)];}catch{return this[_0xdaf9f2(0x1a4)](),Promise['reject'](Error(_0x17ede7[_0xdaf9f2(0x23e)][_0xdaf9f2(0x1c6)]));}return new Promise((_0x41013c,_0x116ad8)=>{const _0x488e35=_0xdaf9f2;let _0x4633ef=new FileReader();_0x4633ef[_0x488e35(0x213)](_0x9812ea),_0x4633ef[_0x488e35(0x282)]=_0x220dc0=>{const _0x31031a=_0x488e35;var _0x267ee3;let _0x18d415=(_0x267ee3=_0x220dc0[_0x31031a(0x36c)])==null?void 0x0:_0x267ee3[_0x31031a(0x22d)];if(_0x18d415==null){this['_decreaseWaiting'](),_0x116ad8(Error(_0x17ede7['ImageUploadStatusType']['ERROR_IMAGE']));return;}_0x41013c({'imageId':(0x0,_0x17ede7['generateRandomId'])(0x6),'imageSourceType':_0x17ede7[_0x31031a(0x2b1)][_0x31031a(0x2aa)],'source':_0x4a9298,'base64Cache':_0x18d415,'status':_0x17ede7[_0x31031a(0x23e)][_0x31031a(0xd1)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x1fa5ea=_0x473efc;let _0x309816=this['_configService'][_0x1fa5ea(0x205)](_0x1f8831);return(_0x309816==null?void 0x0:_0x309816[_0x1fa5ea(0x2a1)])??_0x1fa5ea(0x2e3);}[_0x473efc(0x170)](){const _0xeddf37=_0x473efc;let _0x2971a6=this[_0xeddf37(0x414)][_0xeddf37(0x205)](_0x1f8831);return(_0x2971a6==null?void 0x0:_0x2971a6[_0xeddf37(0x18d)])??_0xeddf37(0x2f6);}['_getDownloadEndpointURL'](){const _0x46c433=_0x473efc;let _0x22a7b0=this[_0x46c433(0x414)][_0x46c433(0x205)](_0x1f8831);return(_0x22a7b0==null?void 0x0:_0x22a7b0[_0x46c433(0x12c)])??location[_0x46c433(0x14a)];}['_replaceFileID'](_0x5190c2,_0x475568){const _0x5b3359=_0x473efc;return _0x5190c2[_0x5b3359(0x1fe)](_0x5b3359(0x11b),_0x475568);}['_decreaseWaiting'](){const _0x81d9b6=_0x473efc;--this[_0x81d9b6(0x10f)],this[_0x81d9b6(0x35b)][_0x81d9b6(0x2f5)](this['_waitCount']);}};_0x32adc1=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x4bbb37[_0x473efc(0x1f7)])),_0x9a3e23(0x1,_0x17ede7[_0x473efc(0x201)]),_0x9a3e23(0x2,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7['IUniverInstanceService']))],_0x32adc1);let _0x4ff04e=class{constructor(_0x55efc7,_0x1ae976){const _0x99c927=_0x473efc;this[_0x99c927(0x414)]=_0x55efc7,this[_0x99c927(0x2e4)]=_0x1ae976;}[_0x473efc(0x24c)](){const _0x594c81=_0x473efc;let _0x3210dc=this['_configService'][_0x594c81(0x205)](_0x1f8831);return(_0x3210dc==null?void 0x0:_0x3210dc['authzUrl'])??_0x594c81(0x15e);}async[_0x473efc(0x26e)](_0x4110dd){const _0xd0d643=_0x473efc;let _0x447e8b=this[_0xd0d643(0x24c)]()+'/collaborator';return{'list':[{'title':_0xd0d643(0x13b),'mentions':(await this[_0xd0d643(0x2e4)][_0xd0d643(0x3af)](_0x447e8b,{'params':{'objectID':_0x4110dd[_0xd0d643(0x298)],'unitID':_0x4110dd[_0xd0d643(0x298)]}}))[_0xd0d643(0xc9)][_0xd0d643(0x197)][_0xd0d643(0xfb)](_0x32014d=>({'objectId':_0x32014d['id'],'name':_0x32014d[_0xd0d643(0x3ac)]['name'],'metadata':{'icon':_0x32014d[_0xd0d643(0x3ac)][_0xd0d643(0x163)]},'label':_0x32014d[_0xd0d643(0x3ac)]['name'],'objectType':_0x17ede7['MentionType']['PERSON']})),'metadata':{},'type':_0x17ede7[_0xd0d643(0x3c8)][_0xd0d643(0x151)]}]};}};_0x4ff04e=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x201)])),_0x9a3e23(0x1,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x4bbb37[_0x473efc(0x1f7)]))],_0x4ff04e);let _0xd02bbe=class extends _0x17ede7[_0x473efc(0x1a3)]{constructor(_0x1d7244,_0x3136dc,_0x11f9ca,_0x2874e0,_0x1e42cb){const _0x74e549=_0x473efc;super(),this[_0x74e549(0x28c)]=_0x1d7244,this['_univerInstanceService']=_0x3136dc,this[_0x74e549(0x359)]=_0x11f9ca,this[_0x74e549(0x1f9)]=_0x2874e0,this['_collaborationUIEventService']=_0x1e42cb,this[_0x74e549(0x241)](),this[_0x74e549(0x254)]();}[_0x473efc(0x254)](){const _0x32cfa2=_0x473efc;let _0x227888=async _0x118026=>{const _0x15502b=_0x2dd0;(await this['_collaborationSessionService'][_0x15502b(0x1ec)](_0x118026))[_0x15502b(0x2be)]['pipe']((0x0,_0x1756fd[_0x15502b(0x30e)])(_0x335881=>_0x335881[_0x15502b(0x1fb)]===_0x3d4600[_0x15502b(0x350)]['SHOULD_CLOSE_CONN']),(0x0,_0x1756fd[_0x15502b(0x28a)])(this[_0x15502b(0x2cf)]))['subscribe'](_0x5b5414=>{const _0x294bb1=_0x15502b;let {reason:_0x1fcfab}=_0x5b5414[_0x294bb1(0x1ab)];this[_0x294bb1(0x1fd)]['emitEvent']({'id':'CLOSE_ROOM','data':_0x1fcfab}),this[_0x294bb1(0x359)][_0x294bb1(0xd4)](new _0x43c3be[(_0x294bb1(0x400))](_0x118026)['id'],!0x1),this[_0x294bb1(0x1f9)][_0x294bb1(0x180)](_0x118026);});};(0x0,_0x1f9457[_0x32cfa2(0x1a2)])(this[_0x32cfa2(0x171)][_0x32cfa2(0x256)](_0x17ede7[_0x32cfa2(0x1c0)][_0x32cfa2(0x1bc)]),this['_univerInstanceService'][_0x32cfa2(0x256)](_0x17ede7[_0x32cfa2(0x1c0)]['UNIVER_DOC']),this[_0x32cfa2(0x171)]['getTypeOfUnitAdded$'](_0x17ede7['UniverInstanceType']['UNIVER_BOARD']),this[_0x32cfa2(0x171)][_0x32cfa2(0x256)](_0x17ede7[_0x32cfa2(0x1c0)][_0x32cfa2(0x3e8)]))['pipe']((0x0,_0x1756fd[_0x32cfa2(0xfb)])(_0x261b0c=>_0x261b0c[_0x32cfa2(0x3b2)][_0x32cfa2(0x204)]()),(0x0,_0x1756fd[_0x32cfa2(0x30e)])(_0x318aa1=>!(0x0,_0x17ede7[_0x32cfa2(0xf6)])(_0x318aa1)),(0x0,_0x1756fd[_0x32cfa2(0x28a)])(this['dispose$']))['subscribe'](_0x8b42e0=>{_0x227888(_0x8b42e0);});}[_0x473efc(0x241)](){const _0x3dee28=_0x473efc;let _0x452d7b=async _0x2349ee=>{const _0x3d7e1f=_0x2dd0;let _0x12ec12=await this[_0x3d7e1f(0x1f9)][_0x3d7e1f(0x1ec)](_0x2349ee),_0xe9a824=this['_injector']['get'](_0x43c3be['SheetPermissionInitController']);_0x12ec12[_0x3d7e1f(0x2be)][_0x3d7e1f(0x2bf)]((0x0,_0x1756fd[_0x3d7e1f(0x30e)])(_0x48cb3b=>_0x48cb3b[_0x3d7e1f(0x1fb)]===_0x3d4600['CollaborationEvent'][_0x3d7e1f(0x384)]),(0x0,_0x1756fd['takeUntil'])(this[_0x3d7e1f(0x2cf)]))[_0x3d7e1f(0x3bf)](_0xe1a68b=>{const _0x519b69=_0x3d7e1f;let {objectId:_0x33e5d9}=_0xe1a68b[_0x519b69(0x1ab)];_0x33e5d9===_0x2349ee?_0xe9a824['initWorkbookPermissionChange'](_0x2349ee):_0xe9a824[_0x519b69(0x257)](_0x2349ee,_0x33e5d9);});};(0x0,_0x1f9457[_0x3dee28(0x1a2)])(this['_univerInstanceService'][_0x3dee28(0x256)](_0x17ede7[_0x3dee28(0x1c0)][_0x3dee28(0x1bc)]))[_0x3dee28(0x2bf)]((0x0,_0x1756fd[_0x3dee28(0xfb)])(_0x4d6b07=>_0x4d6b07[_0x3dee28(0x3b2)]['getUnitId']()),(0x0,_0x1756fd[_0x3dee28(0x30e)])(_0x5139d6=>!(0x0,_0x17ede7['isInternalEditorID'])(_0x5139d6)),(0x0,_0x1756fd[_0x3dee28(0x28a)])(this[_0x3dee28(0x2cf)]))[_0x3dee28(0x3bf)](_0x3c2f96=>{_0x452d7b(_0x3c2f96);});}};_0xd02bbe=_0x4da91b([_0x9a3e23(0x0,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x1,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0x2,_0x17ede7['IPermissionService']),_0x9a3e23(0x3,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x40f859)),_0x9a3e23(0x4,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x2d7dce))],_0xd02bbe);let _0x338e48=class{constructor(_0x47b8c6,_0x40ee28){const _0x25f7df=_0x473efc;this[_0x25f7df(0x414)]=_0x47b8c6,this[_0x25f7df(0x2b0)]=_0x40ee28;}async[_0x473efc(0x243)](_0x487a61,_0x29a73c){const _0x3d7a38=_0x473efc;var _0x272394;let {unitID:_0xf52402,type:_0x4bfd3b,revision:_0x2f154a=0x0}=_0x29a73c,_0x2b94cd=this[_0x3d7a38(0x330)]()+'/'+_0x4bfd3b+_0x3d7a38(0x154)+_0xf52402+'/rev/'+_0x2f154a,_0x432a5c=(await this[_0x3d7a38(0x2b0)][_0x3d7a38(0x3af)](_0x2b94cd))['body'],_0x191c90=(_0x272394=_0x432a5c[_0x3d7a38(0x173)])==null?void 0x0:_0x272394['workbook'];if(_0x191c90){let _0x583919=_0x191c90==null?void 0x0:_0x191c90['originalMeta'];_0x191c90[_0x3d7a38(0x2df)]=_0x3d4600[_0x3d7a38(0x391)][_0x3d7a38(0xf5)]((0x0,_0x3d4600[_0x3d7a38(0x263)])(_0x583919)),Object[_0x3d7a38(0x347)](_0x191c90['sheets'])['forEach'](([,_0x2d248f])=>{const _0x26d47d=_0x3d7a38;let _0x1466fb=_0x2d248f[_0x26d47d(0x2df)];_0x2d248f[_0x26d47d(0x2df)]=_0x3d4600[_0x26d47d(0x391)][_0x26d47d(0xf5)]((0x0,_0x3d4600[_0x26d47d(0x263)])(_0x1466fb));});}return _0x432a5c;}async['getSheetBlock'](_0x5aaf09,_0xa8b6e9){const _0x8bdc3e=_0x473efc;let {unitID:_0x1ae252,type:_0x24163e,blockID:_0x369caa}=_0xa8b6e9,_0x5ba7f9=this[_0x8bdc3e(0x229)]()+'/'+_0x24163e+_0x8bdc3e(0x154)+_0x1ae252+_0x8bdc3e(0x3cf)+_0x369caa;return(await this['_httpService']['get'](_0x5ba7f9))[_0x8bdc3e(0xc9)];}async['getDeserializedSheetBlock'](_0x4fcc58,_0xe3d5f0){const _0xdea284=_0x473efc;let {unitID:_0x33c6b5,type:_0x32fadf,blockID:_0x4841ed}=_0xe3d5f0,_0x2fec38=this['_getAPIPrefix']()+_0xdea284(0x3cf)+_0x32fadf+_0xdea284(0x154)+_0x33c6b5+_0xdea284(0x3cf)+_0x4841ed;return(await this[_0xdea284(0x2b0)][_0xdea284(0x3af)](_0x2fec38))[_0xdea284(0xc9)];}async['fetchMissingChangesets'](_0x1ce4b5,_0x52f277){const _0x2b2ca8=_0x473efc;let {unitID:_0x1d04f7,type:_0x454d7d,from:_0xc4271e,to:_0x75d9ad}=_0x52f277,_0x4cfea3=this['_getAPIPrefix']()+'/'+_0x454d7d+_0x2b2ca8(0x154)+_0x1d04f7+_0x2b2ca8(0xe8)+_0xc4271e+_0x2b2ca8(0x149)+_0x75d9ad;return(await this['_httpService'][_0x2b2ca8(0x3af)](_0x4cfea3))[_0x2b2ca8(0xc9)];}[_0x473efc(0x330)](){const _0x2f93b1=_0x473efc;return this[_0x2f93b1(0x414)][_0x2f93b1(0x205)](_0x2f93b1(0x1b9))??this[_0x2f93b1(0x229)]();}[_0x473efc(0x229)](){const _0x79d02a=_0x473efc;let _0x376006=this[_0x79d02a(0x414)][_0x79d02a(0x205)](_0x1f8831);return(_0x376006==null?void 0x0:_0x376006['snapshotServerUrl'])??'/universer-api/snapshot';}async[_0x473efc(0x344)](_0x37a2aa,_0x4bf1d7){const _0xa470b7=_0x473efc;let _0x5d2feb=_0xa470b7(0x2f2)+_0x4bf1d7[_0xa470b7(0x3d5)]+_0xa470b7(0x154)+_0x4bf1d7[_0xa470b7(0xec)]+'/resources';return(await this[_0xa470b7(0x2b0)][_0xa470b7(0x3af)](_0x5d2feb,{'params':{'resourceId':JSON[_0xa470b7(0x317)](_0x4bf1d7['resourceIDs'])}}))['body'];}[_0x473efc(0x32c)](){const _0x365741=_0x473efc;throw Error(_0x365741(0x3fe));}[_0x473efc(0x2f4)](){const _0x7b0575=_0x473efc;throw Error(_0x7b0575(0x3fe));}[_0x473efc(0x136)](){const _0x46f5c0=_0x473efc;throw Error(_0x46f5c0(0x3fe));}[_0x473efc(0x293)](){const _0x1201fc=_0x473efc;throw Error(_0x1201fc(0x3fe));}[_0x473efc(0x3a7)](){const _0x17488b=_0x473efc;throw Error(_0x17488b(0x3fe));}[_0x473efc(0x3e9)](){const _0x12e888=_0x473efc;throw Error(_0x12e888(0x3fe));}};_0x338e48=_0x4da91b([_0x9a3e23(0x0,_0x17ede7[_0x473efc(0x201)]),_0x9a3e23(0x1,(0x0,_0x17ede7['Inject'])(_0x4bbb37[_0x473efc(0x1f7)]))],_0x338e48);let _0x1219d4=class extends _0x17ede7[_0x473efc(0x16f)]{constructor(_0x34f8c9,_0x2165c7,_0x4e5f63,_0x4bb6f2,_0x4955a8,_0x595366){const _0x3238ab=_0x473efc;super(_0x34f8c9,_0x2165c7,_0x4e5f63,_0x4bb6f2),this['_transformService']=_0x4955a8,this[_0x3238ab(0x309)]=_0x595366;}[_0x473efc(0x3bd)](_0x22b2bf,_0x4211e6){const _0x164aea=_0x473efc;let _0x5e72aa=this[_0x164aea(0x164)](_0x22b2bf);if(_0x5e72aa)try{let _0x1ff5f1=this[_0x164aea(0x32f)](_0x5e72aa,_0x4211e6);this[_0x164aea(0xe7)](_0x22b2bf,_0x1ff5f1);}catch(_0x471c70){this[_0x164aea(0x309)][_0x164aea(0x3e6)]('[CollaborationUndoRedoService]',_0x471c70),this['_clearUndo'](_0x22b2bf);}let _0x3f3a6f=this[_0x164aea(0x127)](_0x22b2bf);if(_0x3f3a6f)try{let _0x221c46=this[_0x164aea(0x32f)](_0x3f3a6f,_0x4211e6);this[_0x164aea(0x3ee)](_0x22b2bf,_0x221c46);}catch(_0x37a2ef){this[_0x164aea(0x309)][_0x164aea(0x3e6)](_0x37a2ef),this[_0x164aea(0x3b0)](_0x22b2bf);}}[_0x473efc(0x2a3)](_0x14d411){const _0x5162af=_0x473efc;let _0x4bc224=this[_0x5162af(0x164)](_0x14d411);_0x4bc224&&(_0x4bc224[_0x5162af(0x2b6)]=0x0,this['_updateStatus']());}[_0x473efc(0x3b0)](_0x49de31){const _0x2d5a48=_0x473efc;let _0x293030=this[_0x2d5a48(0x127)](_0x49de31);_0x293030&&(_0x293030[_0x2d5a48(0x2b6)]=0x0,this[_0x2d5a48(0xc2)]());}[_0x473efc(0xe7)](_0x54eb4a,_0x133d8a){const _0x2059b2=_0x473efc;this[_0x2059b2(0x108)][_0x2059b2(0x184)](_0x54eb4a,_0x133d8a),this[_0x2059b2(0xc2)]();}[_0x473efc(0x3ee)](_0x2df184,_0x3ddbb4){const _0x578f0f=_0x473efc;this[_0x578f0f(0x235)][_0x578f0f(0x184)](_0x2df184,_0x3ddbb4),this[_0x578f0f(0xc2)]();}['_transformStack'](_0x18375c,_0x1f2cb0){const _0x53bca8=_0x473efc;let _0x475263=[],_0x44cd10=_0x1f2cb0,_0x1bc69b=_0x1f2cb0;for(let _0x1252b1=_0x18375c['length']-0x1;_0x1252b1>=0x0;_0x1252b1--){let {unitID:_0x58e73e,undoMutations:_0x32c2e8,redoMutations:_0x41e2a9}=_0x18375c[_0x1252b1],_0x49a651=this[_0x53bca8(0x11c)][_0x53bca8(0x12f)](_0x44cd10,_0x32c2e8),_0x4b6ff6=this[_0x53bca8(0x11c)][_0x53bca8(0x12f)](_0x1bc69b,_0x41e2a9);if((0x0,_0x3d4600['isTransformMutationsWithChangesetFailure'])(_0x49a651)||(0x0,_0x3d4600[_0x53bca8(0x226)])(_0x4b6ff6)){this[_0x53bca8(0x309)][_0x53bca8(0x3e6)](_0x53bca8(0x3c5),_0x53bca8(0x174),_0x49a651,_0x4b6ff6);break;}_0x44cd10=_0x49a651[_0x53bca8(0x162)],_0x1bc69b=_0x4b6ff6[_0x53bca8(0x162)],_0x475263[_0x53bca8(0x283)]({'unitID':_0x58e73e,'undoMutations':_0x49a651['m2Prime'],'redoMutations':_0x4b6ff6[_0x53bca8(0x377)]});}return _0x475263[_0x53bca8(0x1a7)]();}};_0x1219d4=_0x4da91b([_0x9a3e23(0x0,_0x17ede7[_0x473efc(0x2c6)]),_0x9a3e23(0x1,_0x17ede7[_0x473efc(0x31c)]),_0x9a3e23(0x2,_0x17ede7[_0x473efc(0x3ff)]),_0x9a3e23(0x3,_0x17ede7['IConfigService']),_0x9a3e23(0x4,_0x3d4600[_0x473efc(0x182)]),_0x9a3e23(0x5,_0x17ede7[_0x473efc(0x20e)])],_0x1219d4);let _0x308f37=class extends _0x17ede7[_0x473efc(0x12d)]{constructor(_0x43e398=_0x12effe,_0x21a499,_0x15b218,_0xd421bc){const _0xaca84c=_0x473efc;super(),this[_0xaca84c(0x371)]=_0x43e398,this[_0xaca84c(0x309)]=_0x21a499,this['_injector']=_0x15b218,this[_0xaca84c(0x414)]=_0xd421bc;let {..._0x2d7af3}=(0x0,_0x17ede7[_0xaca84c(0x1a2)])({},_0x12effe,this['_config']);if(!_0x2d7af3['socketService'])throw Error(_0xaca84c(0x2eb));this['_config']=_0x2d7af3,this[_0xaca84c(0x414)][_0xaca84c(0x1b4)](_0x1f8831,_0x2d7af3);}[_0x473efc(0x189)](){const _0x52e530=_0x473efc;this[_0x52e530(0x401)](),this[_0x52e530(0x281)]();}[_0x473efc(0x401)](){const _0x4b3398=_0x473efc;var _0xe9f897,_0x2d9516;this[_0x4b3398(0x28c)]['has'](_0x17ede7[_0x4b3398(0x158)])&&this[_0x4b3398(0x309)]['error'](_0x4b3398(0x260),_0x4b3398(0x227));let _0x3e5035=(0x0,_0x17ede7[_0x4b3398(0x24b)])([[_0x17ede7[_0x4b3398(0x158)],{'useClass':_0x1219d4}],[_0xa5a1c7,{'useValue':_0x47199c()}],[_0x40f859],[_0x34dd44],[_0x62027],[_0x3780cb],[_0x69e359],[_0x113b06],[_0xd02bbe],[_0x2d7dce],[_0x21b227],[_0x2e376b,{'useClass':this[_0x4b3398(0x371)][_0x4b3398(0x333)]}],[_0x3d4600[_0x4b3398(0x383)],{'useClass':_0x338e48}],[_0x17ede7[_0x4b3398(0x16b)],{'useClass':_0x172c09}],[_0x17ede7[_0x4b3398(0x35e)],{'useClass':_0x32adc1}],[_0x189025,{'useClass':_0x5b01a0}],[_0x17ede7[_0x4b3398(0x341)],{'useClass':_0x4ff04e}],[_0x5ea503],[_0x1b4eea]],(_0xe9f897=this[_0x4b3398(0x371)])==null?void 0x0:_0xe9f897[_0x4b3398(0x209)]);if(!((_0x2d9516=this[_0x4b3398(0x371)])!=null&&_0x2d9516[_0x4b3398(0x2bd)])){let _0x31c610=_0x3e5035[_0x4b3398(0x356)](([_0x3e6c67])=>_0x3e6c67===_0x549ce8);_0x31c610!==-0x1&&_0x3e5035[_0x4b3398(0x284)](_0x31c610,0x1);}(0x0,_0x17ede7[_0x4b3398(0x1fa)])(this['_injector'],_0x3e5035);}[_0x473efc(0x281)](){const _0x43eb71=_0x473efc;var _0x2edad1,_0x1ceae5;if(this[_0x43eb71(0x28c)][_0x43eb71(0x3af)](_0x4bbb37[_0x43eb71(0x1f7)])[_0x43eb71(0x36a)]({'priority':0x14,'interceptor':(0x0,_0x4bbb37[_0x43eb71(0x3d6)])({'maxParallel':0x6})}),!((_0x2edad1=this[_0x43eb71(0x371)])!=null&&_0x2edad1[_0x43eb71(0x367)])){var _0x35e0e6;(_0x35e0e6=this[_0x43eb71(0x28c)]['get'](_0x4386bd,_0x17ede7[_0x43eb71(0x1d9)][_0x43eb71(0x125)]))==null||_0x35e0e6['disableLocalCache']();}(_0x1ceae5=this['_config'])!=null&&_0x1ceae5[_0x43eb71(0x320)]&&(0x0,_0x17ede7[_0x43eb71(0x179)])(this[_0x43eb71(0x28c)],[[_0x3780cb]]),(0x0,_0x17ede7[_0x43eb71(0x179)])(this[_0x43eb71(0x28c)],[[_0x69e359],[_0x5ea503],[_0xd02bbe]]);}};_0x17f3d2(_0x308f37,_0x473efc(0x2a0),_0x473efc(0x230)),_0x17f3d2(_0x308f37,'packageName',_0x1f67f4),_0x17f3d2(_0x308f37,_0x473efc(0x109),_0x27bebf),_0x308f37=_0x4da91b([(0x0,_0x17ede7['DependentOn'])(_0x90a78a['UniverLicensePlugin'],_0x4bbb37[_0x473efc(0xcc)],_0x3d4600['UniverCollaborationPlugin']),_0x9a3e23(0x1,_0x17ede7[_0x473efc(0x20e)]),_0x9a3e23(0x2,(0x0,_0x17ede7[_0x473efc(0x1f5)])(_0x17ede7[_0x473efc(0x21c)])),_0x9a3e23(0x3,_0x17ede7['IConfigService'])],_0x308f37),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x1df),{'enumerable':!0x0,'get':function(){return _0x172c09;}}),Object['defineProperty'](_0x16b920,'AwaitingState',{'enumerable':!0x0,'get':function(){return _0x236f1c;}}),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x22c),{'enumerable':!0x0,'get':function(){return _0x163822;}}),Object[_0x473efc(0x345)](_0x16b920,'BaseCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x1cfeae;}}),Object[_0x473efc(0x345)](_0x16b920,'BoardCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x28070e;}}),_0x16b920[_0x473efc(0x134)]=_0x1f8831,Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x33a),{'enumerable':!0x0,'get':function(){return _0x5b01a0;}}),Object['defineProperty'](_0x16b920,'CollaborationController',{'enumerable':!0x0,'get':function(){return _0x5ea503;}}),Object['defineProperty'](_0x16b920,'CollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x458bcf;}}),Object['defineProperty'](_0x16b920,_0x473efc(0x417),{'enumerable':!0x0,'get':function(){return _0x32adc1;}}),Object['defineProperty'](_0x16b920,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x1fbd86;}}),Object['defineProperty'](_0x16b920,_0x473efc(0x327),{'enumerable':!0x0,'get':function(){return _0x40f859;}}),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x35a),{'enumerable':!0x0,'get':function(){return _0x7e2dbe;}}),_0x16b920[_0x473efc(0x14f)]=_0x555db4,_0x16b920[_0x473efc(0xf8)]=_0x420899,_0x16b920[_0x473efc(0x3e0)]=_0x2d7dce,Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x2f1),{'enumerable':!0x0,'get':function(){return _0x1219d4;}}),_0x16b920[_0x473efc(0x31d)]=_0x113b06,Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x15c),{'enumerable':!0x0,'get':function(){return _0x3b4b0d;}}),_0x16b920[_0x473efc(0xda)]=_0x473efc(0x22a),_0x16b920['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']=_0x473efc(0x2d0),_0x16b920[_0x473efc(0x3e7)]=_0x473efc(0x22f),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x349),{'enumerable':!0x0,'get':function(){return _0x21b227;}}),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x412),{'enumerable':!0x0,'get':function(){return _0x5a3607;}}),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x2ea),{'enumerable':!0x0,'get':function(){return _0x1c5382;}}),_0x16b920[_0x473efc(0x3da)]=_0x473efc(0xef),_0x16b920[_0x473efc(0x21a)]=_0x473efc(0x2dc),_0x16b920['IAttachmentIoService']=_0x189025,_0x16b920[_0x473efc(0x249)]=_0xa5a1c7,_0x16b920[_0x473efc(0x20b)]=_0x2e376b,_0x16b920[_0x473efc(0xd8)]=_0x4386bd,_0x16b920[_0x473efc(0x352)]=_0x4c48ae,_0x16b920[_0x473efc(0x23b)]=_0x549ce8,_0x16b920['LOCAL_CACHE_INTERVAL']=0x3e8,_0x16b920['LOCAL_CACHE_INTERVAL_KEY']=_0x473efc(0x36d),Object[_0x473efc(0x345)](_0x16b920,'MemberService',{'enumerable':!0x0,'get':function(){return _0x34dd44;}}),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x2c3),{'enumerable':!0x0,'get':function(){return _0x4ff04e;}}),Object[_0x473efc(0x345)](_0x16b920,'OfflineState',{'enumerable':!0x0,'get':function(){return _0x25311e;}}),Object['defineProperty'](_0x16b920,_0x473efc(0x2e8),{'enumerable':!0x0,'get':function(){return _0x30dd3f;}}),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x271),{'enumerable':!0x0,'get':function(){return _0xe416b5;}}),_0x16b920[_0x473efc(0x296)]=_0x473efc(0x239),_0x16b920[_0x473efc(0x140)]='RETRY_CONNECTING_MAX_COUNT',_0x16b920[_0x473efc(0x2c9)]=_0xcf341c,Object[_0x473efc(0x345)](_0x16b920,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x399b0b;}}),Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x40c),{'enumerable':!0x0,'get':function(){return _0x62027;}}),Object[_0x473efc(0x345)](_0x16b920,'SlideCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x7459fd;}}),Object['defineProperty'](_0x16b920,_0x473efc(0x27d),{'enumerable':!0x0,'get':function(){return _0x338e48;}}),Object[_0x473efc(0x345)](_0x16b920,'SyncedState',{'enumerable':!0x0,'get':function(){return _0x4e41d6;}}),_0x16b920['UnitStatus']=_0x3f32fb,Object[_0x473efc(0x345)](_0x16b920,_0x473efc(0x2f0),{'enumerable':!0x0,'get':function(){return _0x308f37;}}),_0x16b920[_0x473efc(0x3de)]=_0x47199c,_0x16b920[_0x473efc(0x267)]=_0x598fbe,_0x16b920[_0x473efc(0x1f4)]=_0x5f3492,_0x16b920['serializeCombRequest']=_0x91444b;}));function _0x39df(){const _0x6c7985=['_commentService','now','UNISCRIPT_RUN','csRejEvent','ICommandService','CommentService','not_collab','trim','enableAuthServer','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_unitInfo$','range','_stopTelemetryCollaborationNewChangeset','reconnect','getUploadOptions','CollaborationSessionService','toPrimitive','getActiveSheet','onRemoteRetry','exports','saveSnapshot','add','varSizeNonce','_transformStack','getSnapshotAPIPath','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','[CollaborationSession]','socketService','_resendWithTimeout','dispose','uniscriptRunEvent','/-/object/-/batch_allowed','liveShareOperation','members$','CollaborationAttachmentIoService','create','_commentUpdate$','&source=','socketMessageSubscription','UniverProCollaborationClient','_sessionChannels','IMentionIOService','disablePadding','forEach','getResourcesRequest','defineProperty','setCfgEnableObjInherit','entries','PERMISSION_REJ','DataLoaderService','nonceLength','_entities','sort','unitInfo$','MSG_FOR_ERROR','_createSession','CollaborationEvent','LIVESHARE_REQUEST_HOST','INetworkConditionService','output','toggleOnline','_incrementRevisionNumber','findIndex','type=','[OfflineState]:\x20received\x20acknowledgement.','_permissionService','CollaborationSocketService','_change$','fetchThroughInterceptors','_onRemoteRejected','IImageIoService','_clearCollaborationTimeoutTimer','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','BASE64','loadPdf','EnsureSlideMasterPageMutation','changeset','1240508rtcRbk','_members$','enableOfflineEditing','_initMergeInterceptor','columnGroups','registerHTTPInterceptor','userID','target','LOCAL_CACHE_INTERVAL','unitLoaded$','sessionStatus','/-/object/list','_config','_createInitialState','setShowComponents','href','JOIN_ROOM_FAILED','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','m2Prime','selections','1806dkUNyU','SetSelectionsOperation','ITelemetryService','toLocal','collaboration-client.local-cache-service','_transformSelections','_transformAndApplyRemoteChangeset','objectType','UniverDocs','JOIN_ROOM_PERMISSION_DENIED','ISnapshotServerService','UPDATE_PERMISSION_OBJ','updateMember','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','toRemote','parseProtocolChangeset','_clearScheduledTask','url','_acknowledgeAwaiting','_rescheduleHeartbeat','toStringTag','_docStateChangeManagerService','message$','byteOffset','textEncoder','hasOwnProperty','encrypt','[CollaborationSessionService]','getInterceptPoints','_lockTransition','candidateSocket','_getDownloadEndpointURL','UNIVER_DOC','maxSize','_roomMembers','Disposable','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','COMPRESS_MUTATION_SEND','_commandService','_onConflict','_toggleOffline','reject','_onJoinRoomEvent','fromCollab','unknown','@univerjs/telemetry','copyFileMeta','SHOULD_CLOSE_CONN','USERS_LEAVE','_createInitialStateImpl','/allowed','subject','@univerjs/drawing','fetchMissingChangesets','get','_clearRedo','UniverProLicense','unit','emitEvent','_acknowledgedAwaitingRevision','UNIVER_BOARD','_entityInit$','LEAVE','onRemoteRej','JOINING','batchAllowed','_transformStateCache','loadSheet','transformUndoRedo','getMemberID','subscribe','createSocket','BehaviorSubject','onSendChangeset','NOT_COLLAB','_shouldReportTelemetry','[CollaborationUndoRedoService]','object','[DataLoaderService]','MentionType','size','session.join-failed','number','socket$','JOIN_ROOM_NOT_EXISTS','_onCombEvent','/block/','_localCacheService','MUTATION','_onRemoteACK','updateCollaborator','UserManagerService','type','ThresholdInterceptorFactory','headers','loadSlide','onTransformRemoteChangesetByIMECache','HEARTBEAT_INTERVAL_KEY','RemoveSlidePageMutation','reduce','_awaitingChangeset','createUniverCollaborationAdapter','_snapshotService','CollaborationUIEventService','code','loadBase','_members','CmdRspCode','endsWith','error','DEFAULT_WS_SESSION_TICKET_URL','UNIVER_BASE','getLatestCsReqIdBySid','location','@univerjs-pro/collaboration','onCommentUpdate','MergeInterceptorFactory','_substituteRedoStack','getTypeOfUnitDisposed$','_acknowledgeAwaitingIfReady','csShouldRetryEvent','_snapshotServerService','uuidv4','_createSocket','[PendingState]:\x20received\x20rejection.','_pendingSessions','/object','_socketChannels','encodeURIComponent','_roomCreated$','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getImageSourceCache','tagLength','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','IContextService','WorkbookEditablePermission','_registerDependencies','collabSubmitChangesetUrl','complete','getMember','objectActions','has','SOCKET_FAILED','text-x','updateOfflineData','pauseCollaboration','duration','SheetTransformSelectionsService','name','blockRanges','clear','onStateChange','@univerjs/network','DocCollaborationEntity','fromCharCode','_configService','__Key__','equals','CollaborationImageIoService','MoveSlidePageMutation','onRemoteChangeset','_networkConditionService','fetchMiss','_updateStatus','_handleRemoteChangesets','_throwTelemetryCollaborationNewChangeset','getCollabEntity','_onUserLeave','_onRemoteRetry','_emitMembers','body','_type','_joinRoom','UniverNetworkPlugin','crypto.getRandomValues\x20must\x20be\x20defined','x-univer-host','_fetchMissChangesets','getCfgEnableObjInherit','SUCCUSS','slice','_event$','updatePermissionPoint','isView','method','_getSendChangesetTimeout','ILocalCacheService','[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.','DEFAULT_COLLAB_WEB_SOCKET_URL','_startTelemetryCollaborationNewChangeset','timeoutTimer','appendMutation','onTransformIME','socketReady','_initRequestHeader','FETCH_MISS','InsertSheetMutation','reqId','localUnitId','resolveUnit','@univerjs/core','_substituteUndoStack','/fetchmissing?from=','UnitEmbedded','setWaitCount','parseChangesetToProtocol','unitID','RevisionService','invalid\x20output,\x20must\x20be\x20aligned','HEARTBEAT_INTERVAL','withCredentials','commentUpdateEvent','UNIVER_SLIDE','/collaborator','listCollaborators','encode','isInternalEditorID','_socketMessageSubscription','CollaborationUIEventId','toDisposable','INGEST','map','put','_tryReconnect','_executeRemoteChangeset','/universer-api/oidc/authpage','_scheduleCompleteTimestamp','_onConnectionFailed','JOIN','collaboration-client.auth.needGotoLoginAlert','COLLABORATION_ENDPOINT_INVALID','socket\x20open.','_getConfig','call','_undoStacks','version','append','state$','send','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','LocaleService','_waitCount','LIVESHARE_NEW_HOST','RECV','newCsEvent','attachment','_scheduleCollaborationTimeoutTimer','univer-pro.collaboration-client-adapter-service','positive\x20integer\x20expected,\x20got\x20','_toggleOnline','startTime','_startCollaboration','_updateState','{fileID}','_transformService','_resolveSessionIdentity','COMPRESS_MUTATION_APPLY','close','_disableEditing','[SyncedState]:\x20received\x20rejection.','changesets','5420536pggXhL','unit-cache-','OPTIONAL','_cfgEnableObjInherit','_getRedoStack','patch','_onLocalMutation','members','retryConnectingInterval','downloadEndpointUrl','Plugin','disposeWithMe','transformMutationsWithChangeset','number\x20expected,\x20got\x20','isSafeInteger','shouldCloseConn','retryCount','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','ErrorCode','saveSheetBlock','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','@univerjs-pro/slides','connection\x20error','_onUserJoin','People','BYTES_PER_ELEMENT','_onRecvEvent','removeMember','CompressMutationService','RETRY_CONNECTING_MAX_COUNT_KEY','getAllMembers','awaiting','6332480uYwlbt','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','_identity','DisposableCollection','onRemoteAck','confirm','&to=','origin','_sessions','localCacheService','UniverCore','find','CollaborationStatus','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','PERSON','endpoint','stopTime','/unit/','_waitForHeartbeatResponse','FileSource','onTransformSelections','IUndoRedoService','loadUnitOfRevision','_schedule','@univerjs/sheets','ConflictState','DEFAULT_FILE_NAME','/universer-api/authz','_isPermissionRej','SheetsSelectionsService','FETCH_MISSING','c1Prime','avatar','_getUndoStack','Optional','_state','getOwnPropertyDescriptor','isTransformChangesetsSuccess','RichTextEditingMutation','_transformIMECache','IAuthzIoService','resend','_socket','1159878SFNbmD','LocalUndoRedoService','_getSignURL','_univerInstanceService','createInstance','snapshot','transformStack\x20failed!','\x0aCurrent:\x20','_exhaustRemoteChangesetQueue','string\x20expected','_transformRemoteChangesetByStateCache','touchDependencies','saveAttachment','subarray','SnapshotService','ONLINE','_clearTimeoutTimer','sequenceExecute','closeSession','ERROR_EXCEED_SIZE','ITransformService','CHANGESET_ACK','set','[PendingState]:\x20received\x20acknowledgement.','_handler','conflict','@univerjs-pro/license','onStarting','action','upload','_clearLocalCache','signUrlServerUrl','ReplaySubject','HELLO','collaMsg','loadOfflineData','CLOSE_ROOM','[FetchMissState]','_telemetryService','state','_localeService','collaborators','commentUpdate$','_maxTotalRetryTimeout','unitType','resolve','transformSelections','unitId\x20is\x20not\x20found','LIVESHARE_FETCH_OPERATIONS','loginUrlKey','/object/','_transitionLocked','merge','RxDisposable','_decreaseWaiting','online$','CommandType','reverse','actions','getUnit','getCurrentRevOfUnit','data','shareReplay','getCurrentSelections','sid','putCollaborators','startsWith','key','awaiting_with_pending','objectID','setConfig','asObservable','Uint8Array','univer-pro.collaboration-client-socket-service','failed\x20to\x20apply\x20missed\x20changesets!','SNAPSHOT_URL_KEY','_onMessage','session.room-not-exists','UNIVER_SHEET','sessionStatus$','leaveEvent','UniverProCollaboration','UniverInstanceType','OTHER_CLIENT_EDITING','_onRemoteChangeset','_resendTimer','roles','isCompositionEnd','ERROR_IMAGE','permissionRejEvent','_onOffline','CombCmd','OFFLINE','createIdentifier','_transformUndoredo','requestParams','UNIVER_PDF','4563015oidXmy','function','_clearHeartbeatTimer','waitForRoom$','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','title','expected\x20Uint8Array','_status$','length=','_sendingTimer','Quantity','awaitingChangeset','src','editing\x20status\x20changed\x20to','interceptor','params','AuthzIoHttpService','_tryEnsureSocket','catch','FileId','_revisionService','operators','then','Module','revision','_compressMutationService','_sendHeartbeat','Tools','assign','requireSession',',\x20got:\x20','_telemetryInfo','USERS_ENTER','fetch_missing','SYNCED','UPDATE_CURSOR','@univerjs/docs','getLocalCacheKey','Inject','AWAITING','HTTPService','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','_collaborationSessionService','registerDependencies','eventID','FAIL','_collaborationUIEventService','replace','byteLength','sendHeartbeatTimer','IConfigService','toString','HEARTBEAT','getUnitId','getConfig','parse','take','status$','override','endpointKey','ICollaborationSocketService','_sessionStatus$','csAckEvent','ILogService','subUnitId','_changesetSessionId','NEW_CHANGESETS','_sheetTransformSelectionsService','readAsDataURL','COMMENT_UPDATE','_init','loadBoard','PERMISSION_DENIED','includes','_collabSessionService','HEARTBEAT_TIMEOUT_KEY','transformChangesets','Injector','getAttachmentUrl','rev','OTHER_CLIENTS_EDITING','_applyRemoteChangeset','_adapter','iterator','?size=','getCurrentUser','UniverDrawing','isTransformMutationsWithChangesetFailure','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_submitChangeset','_getAPIPrefix','ws://127.0.0.1:8000/universer-api/comb/connect','POST','AwaitingWithPendingState','result','RETRY_CONNECTING_MAX_COUNT','/universer-api/user/session-ticket','UNIVER_COLLABORATION_CLIENT_PLUGIN','baseRev','_handlerCallback','init','_clearRetryConnectingTimer','_redoStacks','_checkMissing','mutations','HTTPRequest','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','nonce','ISingleActiveUnitService','_changesetReqId','IDLE','ImageUploadStatusType','_getCtorByUniverInstanceType','compose','_initUnitPermissionChange','deleteCollaborator','getUnitOnRev','\x20in\x20_schedule.','decrypt','\x20-\x20','focused$','isPermissionRej','ICollaborationClientAdapterService','/role','mergeOverrideWithDependencies','_getAPIPrefixPath','readyForCollab','getFocusedUnit','[PendingState]:\x20unhandled\x20univer\x20type:\x20','delay','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','&assign=','_collaborationPaused','_initCloseConn','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','getTypeOfUnitAdded$','refreshPermission','cmd','PENDING','univer-pro.collaboration-client.network-condition.service','_replayCachedMutations','joinEvent','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','close$','PSEUDO_FETCH_MISSING_RESULT','[UniverCollaborationClientPlugin]','responseType','LIVESHARE_TERMINATE','b64DecodeUnicode','_imageSourceCache','entityInit$','_queuedRemoteChangesets','deserializeToCombResponse','_state$','update','some','_eventService','_undoRedoService','getGlobalObject','list','getRandomValues','onSyncEditingCollabCursor','PendingState','_updateLocalCache','status','_getSocketChannel','?url=','fetching\x20missing\x20changesets\x20from\x20','_getUploadFileURL','unsubscribe','session.room-cnt-exceeds','[CollaborationSessionService]:\x20socket\x20error','Rectangle','onTransformState','SnapshotServerOverHTTPService','ERROR_IMAGE_TYPE','@univerjs/protocol','file','_initDependencies','onload','push','splice','buffer','_unlockTransition','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','SUBMIT_CHANGESET_TIMEOUT','CHANGESET_SHOULD_RETRY','takeUntil','_removeRoom','_injector','routeKey','max','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_listenToNetworkCondition','getUnitType','crypto','saveChangeset','localeService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','open$','unitId','updateCursorEvent','getTime','IPermissionService','offline','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_resendTimeout','5277165LSNrCY','pluginName','uploadFileServerUrl','getValue','_clearUndo','UniverSheets','capture','apply','_remoteChangesetQueue','_getCurrentRevision','allowed','UUID','prototype','_hasSessionsForEndpoint','symbol','onlyLocal','_onConnectionOpen','_httpService','ImageSourceType','joinRsp','firstValueFrom','error$','liveShareNewHost','length','concatMap','indexOf','_userManagerService','isTransformMutationsWithChangesetSuccess','accept','LIVESHARE_OPERATION','enableSingleActiveInstanceLock','event$','pipe','onMissingChangesets','mapDocumentTypeToUniverInstanceType','_pendingMutations','MentionIoHttpService','save\x20fail\x20reason\x20is\x20','constructor','IUniverInstanceService','executeCommand','[OfflineState]:\x20received\x20rejection.','SessionStatus','[CollaborationEntity]','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_instanceService','objects','delete','dispose$','/universer-api/uniscript','toggleOffline','_socketService','getSheetId','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','infoRsp','onMissedChangesetFetched','_getLoginPath','Subject','textRanges','SUBMIT_CHANGESET','resolveWithBasePath','HEARTBEAT_TIMEOUT','socket\x20close','/new_changes','originalMeta','memberID','from','onMutationExecutedForCollab','/universer-api/stream/file/upload','_HTTPService','UniverNetwork','_onFetchMissResult','_sender','PdfCollaborationEntity','roomInfos','FetchingMissState','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_collaborationTimeoutTimer','SOCKET_FAILED_RETRY',',\x20got\x20','\x0aAfter:\x20','UniverCollaborationClientPlugin','CollaborativeUndoRedoService','/universer-api/snapshot/','_memberService','updateSnapshot','next','/universer-api/file/{fileID}/sign-url','retryConnectingTimer','backupOfflineData','debug','aes/pkcs7:\x20wrong\x20padding','string','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','isArray','CONFLICT','_createHandler','missingChangesets','_singleActiveUnitService','UniverProSlides','synced','AAD','session','_upload','12522SrPXwW','rxjs','_logService','_unitLoaded$','CHANGESET_REJ','_showConflictNotification','loadDoc','filter','NO_OTHER_CLIENTS_EDITING','collaboration-client.config','Failed\x20to\x20update\x20permission\x20point','floor','values','saveImage','post','loadUnit','stringify'];_0x39df=function(){return _0x6c7985;};return _0x39df();}
|
|
1
|
+
(function(_0x12a70c,_0x5bc69a){const _0x50bd63=_0x38ab,_0x2255e5=_0x12a70c();while(!![]){try{const _0x5b1ce2=-parseInt(_0x50bd63(0x16d))/0x1+parseInt(_0x50bd63(0x372))/0x2+parseInt(_0x50bd63(0x482))/0x3+-parseInt(_0x50bd63(0x2d5))/0x4*(parseInt(_0x50bd63(0x26e))/0x5)+-parseInt(_0x50bd63(0x218))/0x6*(-parseInt(_0x50bd63(0x182))/0x7)+parseInt(_0x50bd63(0x28e))/0x8*(-parseInt(_0x50bd63(0x408))/0x9)+parseInt(_0x50bd63(0x198))/0xa;if(_0x5b1ce2===_0x5bc69a)break;else _0x2255e5['push'](_0x2255e5['shift']());}catch(_0x41e914){_0x2255e5['push'](_0x2255e5['shift']());}}}(_0x2d9b,0x300d8),function(_0x2cb6ec,_0x1e0322){const _0x4eb65c=_0x38ab;typeof exports==_0x4eb65c(0x435)&&typeof module<'u'?_0x1e0322(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x4eb65c(0x2e3)&&define['amd']?define(['exports',_0x4eb65c(0x335),'@univerjs/core',_0x4eb65c(0x181),_0x4eb65c(0x3df),_0x4eb65c(0x432),'@univerjs/protocol',_0x4eb65c(0x3a1),'rxjs/operators',_0x4eb65c(0x3a9),_0x4eb65c(0x23d),'@univerjs-pro/license','@univerjs/drawing'],_0x1e0322):(_0x2cb6ec=typeof globalThis<'u'?globalThis:_0x2cb6ec||self,_0x1e0322(_0x2cb6ec[_0x4eb65c(0x3e7)]={},_0x2cb6ec['UniverProCollaboration'],_0x2cb6ec[_0x4eb65c(0x358)],_0x2cb6ec[_0x4eb65c(0x25e)],_0x2cb6ec[_0x4eb65c(0x453)],_0x2cb6ec[_0x4eb65c(0x432)],_0x2cb6ec['UniverProtocol'],_0x2cb6ec['UniverTelemetry'],_0x2cb6ec['rxjs']['operators'],_0x2cb6ec[_0x4eb65c(0x1ab)],_0x2cb6ec[_0x4eb65c(0x1d7)],_0x2cb6ec[_0x4eb65c(0x205)],_0x2cb6ec[_0x4eb65c(0x322)]));}(this,function(_0x246d9a,_0x2794c1,_0x55970d,_0x18c6ee,_0x6943,_0x2accac,_0xe7331e,_0x62681e,_0x11e320,_0x491515,_0x19dbf0,_0x4e70d5,_0x2b4257){const _0x2cf920=_0x38ab;Object[_0x2cf920(0x469)](_0x246d9a,Symbol[_0x2cf920(0x401)],{'value':_0x2cf920(0x40d)});let _0x4240c0=_0x2cf920(0x330),_0x1bb230={};function _0x264bcd(_0x333bbd){const _0x409767=_0x2cf920;return JSON[_0x409767(0x2a9)](_0x333bbd)[_0x409767(0x352)];}function _0x51e01b(_0x4d6a72){'@babel/helpers - typeof';const _0x53c5c8=_0x2cf920;return _0x51e01b=typeof Symbol==_0x53c5c8(0x2e3)&&typeof Symbol[_0x53c5c8(0x444)]=='symbol'?function(_0x3f220c){return typeof _0x3f220c;}:function(_0x1c07b0){const _0x1a173b=_0x53c5c8;return _0x1c07b0&&typeof Symbol=='function'&&_0x1c07b0[_0x1a173b(0x325)]===Symbol&&_0x1c07b0!==Symbol[_0x1a173b(0x174)]?'symbol':typeof _0x1c07b0;},_0x51e01b(_0x4d6a72);}function _0x16e30b(_0x3c5d5c,_0x3bf621){const _0x57abd1=_0x2cf920;if(_0x51e01b(_0x3c5d5c)!=_0x57abd1(0x435)||!_0x3c5d5c)return _0x3c5d5c;var _0x45e2cf=_0x3c5d5c[Symbol[_0x57abd1(0x332)]];if(_0x45e2cf!==void 0x0){var _0x3edbf5=_0x45e2cf[_0x57abd1(0x1fd)](_0x3c5d5c,_0x3bf621||_0x57abd1(0x1f1));if(_0x51e01b(_0x3edbf5)!=_0x57abd1(0x435))return _0x3edbf5;throw TypeError(_0x57abd1(0x376));}return(_0x3bf621===_0x57abd1(0x38b)?String:Number)(_0x3c5d5c);}function _0x139feb(_0x1d494c){const _0x49d045=_0x2cf920;var _0x450e42=_0x16e30b(_0x1d494c,_0x49d045(0x38b));return _0x51e01b(_0x450e42)==_0x49d045(0x1fc)?_0x450e42:_0x450e42+'';}function _0x4fa34c(_0x569f59,_0x343b87,_0x4eca33){const _0x50c582=_0x2cf920;return(_0x343b87=_0x139feb(_0x343b87))in _0x569f59?Object[_0x50c582(0x469)](_0x569f59,_0x343b87,{'value':_0x4eca33,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x569f59[_0x343b87]=_0x4eca33,_0x569f59;}let _0x57cb48=function(_0x154323){const _0x2ddcff=_0x2cf920;return _0x154323[_0x2ddcff(0x2a7)]=_0x2ddcff(0x2a7),_0x154323[_0x2ddcff(0x48d)]=_0x2ddcff(0x48d),_0x154323[_0x2ddcff(0x17f)]=_0x2ddcff(0x17f),_0x154323[_0x2ddcff(0x42c)]=_0x2ddcff(0x42c),_0x154323[_0x2ddcff(0x3c3)]='JOIN_ROOM_FAILED',_0x154323[_0x2ddcff(0x3b3)]=_0x2ddcff(0x3b3),_0x154323[_0x2ddcff(0x386)]=_0x2ddcff(0x386),_0x154323[_0x2ddcff(0x220)]=_0x2ddcff(0x220),_0x154323;}({});var _0x34126c=class{constructor(){const _0x4d3ebd=_0x2cf920;_0x4fa34c(this,_0x4d3ebd(0x45d),new _0x2accac[(_0x4d3ebd(0x46a))]()),_0x4fa34c(this,_0x4d3ebd(0x25f),this['_event$'][_0x4d3ebd(0x21a)]());}[_0x2cf920(0x45c)](_0x602699){this['_event$']['next'](_0x602699);}},_0x1bc146=class{constructor(){const _0x3f7e59=_0x2cf920;_0x4fa34c(this,_0x3f7e59(0x2fb),new _0x2accac[(_0x3f7e59(0x46a))]()),_0x4fa34c(this,'commentUpdate$',this[_0x3f7e59(0x2fb)]['asObservable']());}[_0x2cf920(0x2c6)](_0x533e22){const _0xdcb2a1=_0x2cf920;this['_commentUpdate$'][_0xdcb2a1(0x2c4)](_0x533e22);}};function _0x177aa6(_0x5133d7,_0x1f9951){return function(_0x4fa8e8,_0x379216){_0x1f9951(_0x4fa8e8,_0x379216,_0x5133d7);};}function _0x30bef6(_0x3a7c49,_0x258d7b,_0x3d4b10,_0x5af5b9){const _0x3df55f=_0x2cf920;var _0x994cca=arguments[_0x3df55f(0x352)],_0x2aa9ce=_0x994cca<0x3?_0x258d7b:_0x5af5b9===null?_0x5af5b9=Object[_0x3df55f(0x32e)](_0x258d7b,_0x3d4b10):_0x5af5b9,_0x3c8988;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x3df55f(0x2e3))_0x2aa9ce=Reflect[_0x3df55f(0x370)](_0x3a7c49,_0x258d7b,_0x3d4b10,_0x5af5b9);else{for(var _0x553609=_0x3a7c49['length']-0x1;_0x553609>=0x0;_0x553609--)(_0x3c8988=_0x3a7c49[_0x553609])&&(_0x2aa9ce=(_0x994cca<0x3?_0x3c8988(_0x2aa9ce):_0x994cca>0x3?_0x3c8988(_0x258d7b,_0x3d4b10,_0x2aa9ce):_0x3c8988(_0x258d7b,_0x3d4b10))||_0x2aa9ce);}return _0x994cca>0x3&&_0x2aa9ce&&Object[_0x3df55f(0x469)](_0x258d7b,_0x3d4b10,_0x2aa9ce),_0x2aa9ce;}let _0x33cfda=class extends _0x55970d['Disposable']{constructor(_0x2761aa){const _0x3dd27a=_0x2cf920;super(),this[_0x3dd27a(0x48e)]=_0x2761aa,_0x4fa34c(this,'_roomMembers',new Map()),_0x4fa34c(this,_0x3dd27a(0x38d),new _0x2accac['Subject']()),this[_0x3dd27a(0x439)]((0x0,_0x2accac['merge'])(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x55970d[_0x3dd27a(0x30c)][_0x3dd27a(0x368)])[_0x3dd27a(0x21c)]((0x0,_0x11e320[_0x3dd27a(0x420)])(_0x3a18ee=>_0x3a18ee['getUnitId']())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x55970d[_0x3dd27a(0x30c)][_0x3dd27a(0x309)])[_0x3dd27a(0x21c)]((0x0,_0x11e320[_0x3dd27a(0x420)])(_0x40f930=>_0x40f930[_0x3dd27a(0x170)]())),this[_0x3dd27a(0x48e)][_0x3dd27a(0x2d9)](_0x55970d[_0x3dd27a(0x30c)][_0x3dd27a(0x23f)])['pipe']((0x0,_0x11e320[_0x3dd27a(0x420)])(_0x429442=>_0x429442[_0x3dd27a(0x170)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x55970d[_0x3dd27a(0x30c)]['UNIVER_BASE'])[_0x3dd27a(0x21c)]((0x0,_0x11e320[_0x3dd27a(0x420)])(_0x57c22b=>_0x57c22b[_0x3dd27a(0x170)]())))['subscribe'](_0x1882e9=>this[_0x3dd27a(0x447)](_0x1882e9)));}['waitForRoom$'](_0x58c089){const _0x172b0f=_0x2cf920;return this['_roomMembers'][_0x172b0f(0x179)](_0x58c089)?(0x0,_0x2accac['of'])(this['_roomMembers'][_0x172b0f(0x3b4)](_0x58c089)):this['_roomCreated$']['pipe']((0x0,_0x11e320[_0x172b0f(0x420)])(_0x22c127=>{const _0x5c65d8=_0x172b0f;if(_0x22c127===_0x58c089)return this[_0x5c65d8(0x47a)][_0x5c65d8(0x3b4)](_0x22c127);}));}['updateMember'](_0x506d84,_0x2ee929){const _0x17fff4=_0x2cf920;let _0x4d29ee=this[_0x17fff4(0x47a)][_0x17fff4(0x3b4)](_0x506d84);_0x4d29ee||(_0x4d29ee=new _0x550de3(),this['_roomMembers'][_0x17fff4(0x1c5)](_0x506d84,_0x4d29ee),this[_0x17fff4(0x38d)][_0x17fff4(0x2c4)](_0x506d84)),_0x4d29ee[_0x17fff4(0x44d)](_0x2ee929);}[_0x2cf920(0x479)](_0x1b2a83,_0x3711cc){const _0x4e599f=_0x2cf920;let _0x2df386=this['_roomMembers'][_0x4e599f(0x3b4)](_0x1b2a83);_0x2df386&&_0x2df386[_0x4e599f(0x479)](_0x3711cc);}[_0x2cf920(0x1ec)](_0x36725d){const _0x40ae65=_0x2cf920;return this[_0x40ae65(0x47a)][_0x40ae65(0x3b4)](_0x36725d);}[_0x2cf920(0x1f4)](_0x1d9af0,_0xfb24d9){const _0x1c322c=_0x2cf920;let _0x253919=this[_0x1c322c(0x47a)][_0x1c322c(0x3b4)](_0x1d9af0);if(_0x253919)return _0x253919['getMember'](_0xfb24d9);}[_0x2cf920(0x447)](_0xd9a114){const _0x4ea44f=_0x2cf920;let _0x130e78=this[_0x4ea44f(0x47a)]['get'](_0xd9a114);_0x130e78&&(_0x130e78[_0x4ea44f(0x202)](),this[_0x4ea44f(0x47a)]['delete'](_0xd9a114));}[_0x2cf920(0x202)](){const _0x3dbe78=_0x2cf920;this[_0x3dbe78(0x47a)]['forEach'](_0x7b880e=>_0x7b880e[_0x3dbe78(0x202)]()),this[_0x3dbe78(0x47a)][_0x3dbe78(0x307)](),this[_0x3dbe78(0x38d)][_0x3dbe78(0x15a)]();}};_0x33cfda=_0x30bef6([_0x177aa6(0x0,_0x55970d['IUniverInstanceService'])],_0x33cfda);var _0x550de3=class extends _0x55970d['Disposable']{constructor(..._0x310f9a){const _0xc80091=_0x2cf920;super(..._0x310f9a),_0x4fa34c(this,_0xc80091(0x417),new Map()),_0x4fa34c(this,'_members$',new _0x2accac['BehaviorSubject'](this[_0xc80091(0x417)])),_0x4fa34c(this,_0xc80091(0x1b5),this[_0xc80091(0x1b4)]['asObservable']());}[_0x2cf920(0x202)](){const _0x4c12d3=_0x2cf920;this['_members']['clear'](),this[_0x4c12d3(0x1b4)][_0x4c12d3(0x15a)]();}[_0x2cf920(0x44d)](_0x31e591){const _0x387090=_0x2cf920;this[_0x387090(0x417)][_0x387090(0x1c5)](_0x31e591[_0x387090(0x1c8)],_0x31e591),this[_0x387090(0x1e4)]();}[_0x2cf920(0x479)](_0x42efd7){const _0x27b6bb=_0x2cf920;this['_members'][_0x27b6bb(0x425)](_0x42efd7),this[_0x27b6bb(0x1e4)]();}[_0x2cf920(0x1f4)](_0x3bdd2f){const _0x9a4057=_0x2cf920;return this[_0x9a4057(0x417)][_0x9a4057(0x3b4)](_0x3bdd2f);}['getAllMembers'](){const _0xc8ceda=_0x2cf920;return Array[_0xc8ceda(0x211)](this['_members']['values']());}['_emitMembers'](){const _0x4923db=_0x2cf920;this[_0x4923db(0x1b4)][_0x4923db(0x2c4)](this[_0x4923db(0x417)]);}};function _0x4bac20(_0x23ce4e,_0x590f12){const _0x3f5995=_0x2cf920;if(_0x7c86a1(_0x23ce4e))return _0x590f12;if(_0x590f12['eventID']===_0x2794c1[_0x3f5995(0x257)][_0x3f5995(0x306)]){let _0x322837=_0x3fd59d(_0x23ce4e),_0x54e522=_0x590f12;return{..._0x54e522,'data':{..._0x54e522[_0x3f5995(0x238)],'unitID':_0x23ce4e['target'][_0x3f5995(0x38e)],'unitType':_0x23ce4e[_0x3f5995(0x18f)][_0x3f5995(0x2b2)]??_0x54e522['data'][_0x3f5995(0x2b2)],'changeset':_0x322837[_0x3f5995(0x459)](_0x54e522[_0x3f5995(0x238)][_0x3f5995(0x2b5)],_0x33c729(_0x23ce4e))}};}if(_0x590f12[_0x3f5995(0x2af)]===_0x2794c1[_0x3f5995(0x257)]['FETCH_MISSING']){let _0x340618=_0x590f12;return{..._0x340618,'data':{..._0x340618[_0x3f5995(0x238)],'unitID':_0x23ce4e[_0x3f5995(0x18f)][_0x3f5995(0x38e)],'unitType':_0x23ce4e[_0x3f5995(0x18f)]['unitType']??_0x340618[_0x3f5995(0x238)]['unitType']}};}return _0x590f12;}function _0x502aff(_0x40d2d0,_0x5c9fa0){const _0x3abdcb=_0x2cf920;if(_0x7c86a1(_0x40d2d0))return[_0x5c9fa0];switch(_0x5c9fa0['eventID']){case _0x2794c1['CollaborationEvent'][_0x3abdcb(0x1d0)]:return[_0x524790(_0x40d2d0,_0x5c9fa0)];case _0x2794c1[_0x3abdcb(0x257)][_0x3abdcb(0x3a0)]:return[_0x221245(_0x40d2d0,_0x5c9fa0)];case _0x2794c1[_0x3abdcb(0x257)][_0x3abdcb(0x338)]:return[_0x2a635e(_0x40d2d0,_0x5c9fa0)];default:return[_0x5c9fa0];}}function _0x7c86a1(_0x5ab3d3){const _0x1deaed=_0x2cf920;return _0x5ab3d3[_0x1deaed(0x18f)][_0x1deaed(0x2a6)]==null&&_0x5ab3d3[_0x1deaed(0x18f)][_0x1deaed(0x38e)]===_0x5ab3d3[_0x1deaed(0x1e3)]&&!_0x5ab3d3[_0x1deaed(0x2b5)];}function _0x524790(_0x27fa40,_0x11fa51){const _0x1012cb=_0x2cf920;return{..._0x11fa51,'data':(0x0,_0x2794c1[_0x1012cb(0x24a)])(_0x469edd(_0x27fa40,(0x0,_0x2794c1['parseProtocolChangeset'])(_0x11fa51['data'])))};}function _0x2a635e(_0x269ae7,_0x46fe80){const _0x157e77=_0x2cf920;return{..._0x46fe80,'data':_0x469edd(_0x269ae7,_0x46fe80[_0x157e77(0x238)])};}function _0x221245(_0x2a0265,_0x1efa0f){const _0x375948=_0x2cf920;let _0x3bfe7c=_0x1efa0f['data'];return{..._0x1efa0f,'data':{..._0x3bfe7c,'changesets':_0x3bfe7c['changesets'][_0x375948(0x420)](_0x2e9c9e=>(0x0,_0x2794c1[_0x375948(0x24a)])(_0x469edd(_0x2a0265,(0x0,_0x2794c1['parseProtocolChangeset'])(_0x2e9c9e))))}};}function _0x469edd(_0x5032da,_0x1b1aa6){const _0x366a6b=_0x2cf920;return _0x3fd59d(_0x5032da)[_0x366a6b(0x2aa)](_0x1b1aa6,_0x33c729(_0x5032da));}function _0x3fd59d(_0x391bf7){if(!_0x391bf7['changeset'])throw Error('COLLABORATION_CHANGESET_TRANSLATION_REQUIRED');return _0x391bf7['changeset'];}function _0x33c729(_0x184e5e){const _0xc1a941=_0x2cf920;return{'localUnitId':_0x184e5e['localUnitId'],'unitType':_0x184e5e[_0xc1a941(0x2b2)],'target':_0x184e5e[_0xc1a941(0x18f)]};}let _0x187756=function(_0x2c2575){const _0x190bfc=_0x2cf920;return _0x2c2575[_0x2c2575['IDLE']=0x0]=_0x190bfc(0x33e),_0x2c2575[_0x2c2575[_0x190bfc(0x1cd)]=0x1]=_0x190bfc(0x1cd),_0x2c2575[_0x2c2575[_0x190bfc(0x405)]=0x2]=_0x190bfc(0x405),_0x2c2575[_0x2c2575[_0x190bfc(0x1aa)]=0x3]=_0x190bfc(0x1aa),_0x2c2575;}({}),_0x36ec5e={[_0xe7331e['CmdRspCode']['FAIL']]:_0x2cf920(0x351),[_0xe7331e[_0x2cf920(0x2db)][_0x2cf920(0x337)]]:_0x2cf920(0x331),[_0xe7331e[_0x2cf920(0x2db)][_0x2cf920(0x44b)]]:_0x2cf920(0x472),[_0xe7331e[_0x2cf920(0x2db)][_0x2cf920(0x2d8)]]:_0x2cf920(0x194),[_0xe7331e[_0x2cf920(0x2db)][_0x2cf920(0x148)]]:_0x2cf920(0x300)},_0x22ba67=class extends _0x55970d['RxDisposable']{get[_0x2cf920(0x491)](){const _0x33573f=_0x2cf920;return this['_sessionStatus$'][_0x33573f(0x35e)]();}constructor(_0x34b6cf,_0x16721d,_0x223703,_0x11b122,_0x257e8d,_0x2d772b,_0x42efd5,_0x4f51ae){const _0x33277a=_0x2cf920;super(),this[_0x33277a(0x2c0)]=_0x34b6cf,this[_0x33277a(0x47d)]=_0x223703,this[_0x33277a(0x297)]=_0x11b122,this[_0x33277a(0x1db)]=_0x257e8d,this[_0x33277a(0x2f1)]=_0x2d772b,this[_0x33277a(0x3b0)]=_0x42efd5,this['_telemetryService']=_0x4f51ae,_0x4fa34c(this,_0x33277a(0x1a9),new _0x2accac[(_0x33277a(0x45f))](0x0)),_0x4fa34c(this,_0x33277a(0x14a),this[_0x33277a(0x1a9)][_0x33277a(0x21a)]()),_0x4fa34c(this,_0x33277a(0x45d),new _0x2accac['Subject']()),_0x4fa34c(this,_0x33277a(0x25f),this[_0x33277a(0x45d)][_0x33277a(0x21a)]()),_0x4fa34c(this,_0x33277a(0x481),void 0x0),_0x4fa34c(this,_0x33277a(0x1f0),void 0x0),_0x4fa34c(this,_0x33277a(0x33c),void 0x0),_0x4fa34c(this,'_shouldReportTelemetry',!0x1),_0x4fa34c(this,'_telemetryInfo',null),this[_0x33277a(0x36f)]=!!this[_0x33277a(0x3b6)],_0x16721d[_0x33277a(0x21c)]((0x0,_0x2accac[_0x33277a(0x1e6)])(this[_0x33277a(0x258)]))['subscribe'](_0x57f723=>{const _0x4db0b4=_0x33277a;if(_0x57f723!==void 0x0){if(this[_0x4db0b4(0x481)]=_0x57f723,_0x57f723)this[_0x4db0b4(0x36d)](_0x57f723),this['_socketMessageSubscription']=_0x57f723[_0x4db0b4(0x1c3)]['subscribe'](_0x56b4c9=>{const _0x3b7b30=_0x4db0b4;_0x56b4c9[_0x3b7b30(0x157)]===this[_0x3b7b30(0x2c0)][_0x3b7b30(0x18f)][_0x3b7b30(0x38e)]&&this[_0x3b7b30(0x3e5)](_0x56b4c9);});else{var _0x3f3cc9;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x4db0b4(0x1a9)]['next'](0x2),(_0x3f3cc9=this[_0x4db0b4(0x1f0)])==null||_0x3f3cc9[_0x4db0b4(0x3e2)](),this[_0x4db0b4(0x1f0)]=null;}}});}[_0x2cf920(0x185)](){const _0x206b9e=_0x2cf920;var _0x10fdd4;return((_0x10fdd4=this[_0x206b9e(0x481)])==null?void 0x0:_0x10fdd4[_0x206b9e(0x1c8)])??null;}[_0x2cf920(0x202)](){const _0x4d7c82=_0x2cf920;super[_0x4d7c82(0x202)](),this['close'](),this[_0x4d7c82(0x258)][_0x4d7c82(0x2c4)](),this[_0x4d7c82(0x258)][_0x4d7c82(0x15a)]();}[_0x2cf920(0x1d6)](){const _0x5aa370=_0x2cf920;var _0xef381d;this[_0x5aa370(0x1b6)](),(_0xef381d=this['_socket'])==null||_0xef381d['send']({'cmd':_0xe7331e[_0x5aa370(0x193)][_0x5aa370(0x20e)],'data':{'roomID':this['_identity'][_0x5aa370(0x18f)][_0x5aa370(0x38e)]}}),this[_0x5aa370(0x45d)]['complete'](),this[_0x5aa370(0x1a9)]['complete']();}[_0x2cf920(0x3e5)](_0x296b36){const _0x1e3db6=_0x2cf920;_0x296b36['cmd']===_0xe7331e[_0x1e3db6(0x193)]['JOIN']?this[_0x1e3db6(0x470)](_0x296b36):_0x296b36[_0x1e3db6(0x2f5)]===_0xe7331e[_0x1e3db6(0x193)][_0x1e3db6(0x2ed)]&&this[_0x1e3db6(0x168)](_0x296b36);}[_0x2cf920(0x36d)](_0x3242df){const _0x5c29e6=_0x2cf920;this['_sessionStatus$'][_0x5c29e6(0x2c4)](0x1),_0x3242df[_0x5c29e6(0x1b2)]({'cmd':_0xe7331e[_0x5c29e6(0x193)][_0x5c29e6(0x48c)],'routeKey':this[_0x5c29e6(0x2c0)][_0x5c29e6(0x18f)][_0x5c29e6(0x38e)],'routeType':'','data':{'rooms':[{'roomID':this['_identity']['target']['unitId']}]}});}[_0x2cf920(0x470)](_0x1f2278){const _0x25917d=_0x2cf920;var _0x16a124;if(_0x1f2278[_0x25917d(0x2ec)]in _0x36ec5e){this[_0x25917d(0x3b0)]['emitEvent']({'id':_0x25917d(0x3c3),'data':_0x36ec5e[_0x1f2278[_0x25917d(0x2ec)]]}),this[_0x25917d(0x1a9)][_0x25917d(0x2c4)](0x2);return;}this[_0x25917d(0x1a9)]['next'](0x3);let _0x46a4af=(_0x16a124=_0x1f2278[_0x25917d(0x238)][_0x25917d(0x416)][this[_0x25917d(0x2c0)][_0x25917d(0x18f)][_0x25917d(0x38e)]])==null?void 0x0:_0x16a124[_0x25917d(0x1bd)];_0x46a4af&&_0x46a4af[_0x25917d(0x434)](_0x531f5e=>this[_0x25917d(0x1db)][_0x25917d(0x44d)](this[_0x25917d(0x2c0)]['localUnitId'],_0x531f5e));}['_onRecvEvent'](_0x4b4e14){const _0x435f44=_0x2cf920;try{let _0x13d49a=_0x502aff(this[_0x435f44(0x2c0)],_0x4b4e14[_0x435f44(0x238)]);for(let _0x53c5ed of _0x13d49a)switch(_0x53c5ed[_0x435f44(0x2af)]){case _0x2794c1[_0x435f44(0x257)]['USERS_ENTER']:this[_0x435f44(0x34e)](_0x53c5ed),this[_0x435f44(0x45d)][_0x435f44(0x2c4)](_0x53c5ed);break;case _0x2794c1[_0x435f44(0x257)]['USERS_LEAVE']:this['_onUserLeave'](_0x53c5ed),this['_event$'][_0x435f44(0x2c4)](_0x53c5ed);break;case _0x2794c1[_0x435f44(0x257)][_0x435f44(0x423)]:case _0x2794c1['CollaborationEvent'][_0x435f44(0x338)]:this[_0x435f44(0x22f)](),this[_0x435f44(0x34c)](),this[_0x435f44(0x45d)][_0x435f44(0x2c4)](_0x53c5ed);break;case _0x2794c1['CollaborationEvent'][_0x435f44(0x313)]:this['_logService'][_0x435f44(0x415)](_0x435f44(0x2f3)+JSON['stringify'](_0x53c5ed)),this[_0x435f44(0x45d)][_0x435f44(0x2c4)](_0x53c5ed);break;case _0x2794c1[_0x435f44(0x257)][_0x435f44(0x41f)]:this['_commentService'][_0x435f44(0x2c6)](_0x53c5ed[_0x435f44(0x238)]),this[_0x435f44(0x45d)][_0x435f44(0x2c4)](_0x53c5ed);break;default:this[_0x435f44(0x45d)][_0x435f44(0x2c4)](_0x53c5ed);}}catch(_0x46fd86){this['_logService'][_0x435f44(0x415)](_0x46fd86,_0x4b4e14);}}[_0x2cf920(0x34e)](_0x3e1e91){const _0x387d4e=_0x2cf920;this['_memberService'][_0x387d4e(0x44d)](this[_0x387d4e(0x2c0)][_0x387d4e(0x1e3)],_0x3e1e91[_0x387d4e(0x238)]);}[_0x2cf920(0x3ef)](_0x29ba81){const _0x3e2f8c=_0x2cf920;this[_0x3e2f8c(0x1db)]['removeMember'](this[_0x3e2f8c(0x2c0)][_0x3e2f8c(0x1e3)],_0x29ba81[_0x3e2f8c(0x238)][_0x3e2f8c(0x1c8)]);}async[_0x2cf920(0x1b2)](_0x2bfae2,_0x4fcd29){const _0x4613f5=_0x2cf920;if(this['sessionStatus']!==0x3||!this[_0x4613f5(0x481)])throw Error(_0x4613f5(0x451));try{let _0x45e066=_0x4bac20(this['_identity'],_0x2bfae2);_0x45e066[_0x4613f5(0x2af)]===_0x2794c1[_0x4613f5(0x257)][_0x4613f5(0x306)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x4613f5(0x250)](_0x45e066)),this['_socket'][_0x4613f5(0x1b2)]({'cmd':_0xe7331e[_0x4613f5(0x193)]['INGEST'],'routeKey':this[_0x4613f5(0x2c0)][_0x4613f5(0x18f)][_0x4613f5(0x38e)],'routeType':'','data':_0x45e066});}catch(_0x53ff23){this['_logService'][_0x4613f5(0x415)](_0x53ff23);}}[_0x2cf920(0x26f)](){const _0x4f24f1=_0x2cf920;this[_0x4f24f1(0x33c)]=setTimeout(()=>{const _0xe52b74=_0x4f24f1;this['_collaborationTimeoutTimer']=null,this[_0xe52b74(0x3b0)][_0xe52b74(0x45c)]({'id':_0xe52b74(0x220)});},this[_0x4f24f1(0x297)][_0x4f24f1(0x3be)](_0x4f24f1(0x188))??0x4e20);}[_0x2cf920(0x34c)](){const _0x34e720=_0x2cf920;this[_0x34e720(0x33c)]&&=(clearTimeout(this[_0x34e720(0x33c)]),null);}[_0x2cf920(0x250)](_0x535ba0){const _0x33a45f=_0x2cf920;if(!this['_shouldReportTelemetry'])return;let {data:_0x503c21}=_0x535ba0,{unitID:_0x52110a,changeset:_0xce0e46}=_0x503c21,{mutations:_0xc8bb90,type:_0x3d92cd}=_0xce0e46;this['_telemetryInfo']={'unitId':_0x52110a,'type':_0x3d92cd,'startTime':performance[_0x33a45f(0x176)](),'stopTime':0x0,'duration':0x0,'size':_0x264bcd(_0xc8bb90)};}[_0x2cf920(0x22f)](){const _0x1d55be=_0x2cf920;if(this[_0x1d55be(0x36f)]){if(!this[_0x1d55be(0x221)]){this[_0x1d55be(0x47d)][_0x1d55be(0x415)](_0x1d55be(0x146),_0x1d55be(0x308));return;}this[_0x1d55be(0x221)][_0x1d55be(0x2f9)]=performance['now'](),this['_telemetryInfo'][_0x1d55be(0x484)]=this['_telemetryInfo'][_0x1d55be(0x2f9)]-this[_0x1d55be(0x221)]['startTime'],this['_telemetryService'][_0x1d55be(0x154)](_0x1d55be(0x3f8),this[_0x1d55be(0x221)]),this[_0x1d55be(0x221)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x583c8d=_0x2cf920;this[_0x583c8d(0x221)]=null;}};_0x22ba67=_0x30bef6([_0x177aa6(0x2,_0x55970d[_0x2cf920(0x259)]),_0x177aa6(0x3,_0x55970d[_0x2cf920(0x412)]),_0x177aa6(0x4,(0x0,_0x55970d['Inject'])(_0x33cfda)),_0x177aa6(0x5,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x1bc146)),_0x177aa6(0x6,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x34126c)),_0x177aa6(0x7,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0x62681e[_0x2cf920(0x422)]))],_0x22ba67);let _0x2d50be=(0x0,_0x55970d[_0x2cf920(0x2a1)])(_0x2cf920(0x1d8));function _0x2e6193(_0x2905ef){const _0x5d61f5=_0x2cf920;return _0x5d61f5(0x2e5)+_0x2905ef;}function _0x502344(_0x47d6e1){const _0x47df90=_0x2cf920;let {unitID:_0x4b1331,mutations:_0x3c8340}=_0x47d6e1;return{'unitId':_0x4b1331,'subUnitId':_0x3c8340[_0x47df90(0x352)]>0x0?_0x3c8340[0x0][_0x47df90(0x43b)]['subUnitId']:null};}let _0x1b9d17=class{constructor(_0xa5460,_0x58a6ed,_0x43f002){const _0x15eb30=_0x2cf920;this['_injector']=_0xa5460,this[_0x15eb30(0x27c)]=_0x58a6ed,this[_0x15eb30(0x421)]=_0x43f002;}[_0x2cf920(0x36c)](_0x555cc5){const _0x4205f4=_0x2cf920;var _0x167c5b,_0x2f61d0;let _0xcad5ec=this['_injector'][_0x4205f4(0x3b4)](_0x6943['SheetsSelectionsService']),{unitId:_0x5ad75b,subUnitId:_0x2c94d0}=_0x502344(_0x555cc5),_0xc62c50=_0xcad5ec==null?void 0x0:_0xcad5ec[_0x4205f4(0x191)](_0x5ad75b)[_0x4205f4(0x289)](),_0x9b1c88=(_0x167c5b=this['_instanceService']['getUnit'](_0x5ad75b))==null||(_0x167c5b=_0x167c5b['getActiveSheet']())==null?void 0x0:_0x167c5b['getSheetId']();if(_0xc62c50[_0x4205f4(0x352)]===0x0||!_0x5ad75b||!_0x2c94d0)return;let _0x60174f=[{'id':_0x6943[_0x4205f4(0x37e)]['id'],'params':{'unitId':_0x5ad75b,'subUnitId':_0x9b1c88,'selections':_0x55970d[_0x4205f4(0x3da)][_0x4205f4(0x363)](_0xc62c50)}}],_0x10a881=this[_0x4205f4(0x27c)][_0x4205f4(0x35d)](_0x555cc5,_0x60174f);if(!(0x0,_0x2794c1[_0x4205f4(0x278)])(_0x10a881))throw _0x10a881['error'];let _0x39fdbe=(_0x2f61d0=_0x10a881[_0x4205f4(0x377)][0x0])==null||(_0x2f61d0=_0x2f61d0[_0x4205f4(0x43b)])==null?void 0x0:_0x2f61d0['selections'];if(Array[_0x4205f4(0x2c8)](_0x39fdbe)&&_0x39fdbe[_0x4205f4(0x352)]){if(_0x39fdbe[_0x4205f4(0x352)]===_0x60174f[0x0][_0x4205f4(0x43b)]['selections']['length']&&_0x39fdbe['every']((_0x3ec4f5,_0x29ec5f)=>_0x55970d[_0x4205f4(0x305)][_0x4205f4(0x171)](_0x3ec4f5[_0x4205f4(0x45a)],_0x60174f[0x0][_0x4205f4(0x43b)]['selections'][_0x29ec5f][_0x4205f4(0x45a)])))return;this[_0x4205f4(0x39d)]['get'](_0x55970d[_0x4205f4(0x201)])['executeCommand'](_0x6943['SetSelectionsOperation']['id'],{'unitId':_0x5ad75b,'subUnitId':_0x9b1c88,'selections':_0x39fdbe});}}};_0x1b9d17=_0x30bef6([_0x177aa6(0x0,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d['Injector'])),_0x177aa6(0x1,_0x2794c1[_0x2cf920(0x2ae)]),_0x177aa6(0x2,_0x55970d[_0x2cf920(0x2d6)])],_0x1b9d17);let _0xf5879a=(0x0,_0x55970d[_0x2cf920(0x2a1)])('univer-pro.collaboration-client.single-active-unit-service'),_0x4d37a7=function(_0xd72e63){const _0x63a0ea=_0x2cf920;return _0xd72e63[_0xd72e63[_0x63a0ea(0x2eb)]=0x0]=_0x63a0ea(0x2eb),_0xd72e63[_0xd72e63[_0x63a0ea(0x26d)]=0x1]=_0x63a0ea(0x26d),_0xd72e63;}({});function _0x5086d9(_0x549dfd){const _0x6b637a=_0x2cf920;var _0x44405e;return!!((_0x44405e=_0x549dfd['params'])!=null&&_0x44405e[_0x6b637a(0x445)]);}let _0xee441b=new Set([_0x6943['InsertSheetMutation']['id']]),_0x5dba29=new Set([_0x491515[_0x2cf920(0x3c2)]['id'],_0x491515[_0x2cf920(0x2e7)]['id'],_0x491515['MoveSlidePageMutation']['id'],_0x491515[_0x2cf920(0x476)]['id']]);function _0x4ca9cf(_0x3d8778,_0x1d4286=_0xee441b){const _0x5e9c6f=_0x2cf920;let _0x2b3be6=[];for(let _0x268a4e of _0x3d8778){if(_0x1d4286[_0x5e9c6f(0x179)](_0x268a4e['id'])){if(_0x2b3be6[_0x5e9c6f(0x352)]>0x0)break;_0x2b3be6['push'](_0x268a4e);break;}if(_0x5086d9(_0x268a4e)){if(_0x2b3be6[_0x5e9c6f(0x352)]>0x0)break;_0x2b3be6[_0x5e9c6f(0x264)](_0x268a4e);break;}_0x2b3be6[_0x5e9c6f(0x264)](_0x268a4e);}return _0x2b3be6;}function _0xe6759f(_0x334f88,_0x3301e7,_0x21718a,_0x331340,_0x514aeb){const _0x2c6584=_0x2cf920;let _0x5a43ba=_0x4ca9cf(_0x334f88),_0x1530be=_0x514aeb[_0x2c6584(0x348)](),_0x45bb74=(_0x1530be==null?void 0x0:_0x1530be[_0x2c6584(0x1da)])??'unknown',_0x3e6059=(_0x1530be==null?void 0x0:_0x1530be['memberID'])??'unknown';return{'changeset':{'unitID':_0x3301e7,'type':(0x0,_0x2794c1[_0x2c6584(0x2f0)])(_0x21718a[_0x2c6584(0x334)](_0x3301e7)),'baseRev':_0x331340[_0x2c6584(0x18a)](_0x3301e7),'revision':0x0,'userID':_0x45bb74,'memberID':_0x3e6059,'mutations':_0x5a43ba},'pendingMutations':_0x334f88[_0x2c6584(0x350)](_0x5a43ba[_0x2c6584(0x352)])};}let _0x19f6b1=_0xe6759f;function _0x2bbd1b(_0x5719ac,_0x1f17e8,_0x438b98,_0x4a1379,_0x3c7a5f){const _0x1d1cb7=_0x2cf920;let _0x56c756=_0x4ca9cf(_0x5719ac,_0x5dba29),_0x8972be=_0x3c7a5f['getCurrentUser'](),_0x524e99=(_0x8972be==null?void 0x0:_0x8972be[_0x1d1cb7(0x1da)])??_0x1d1cb7(0x3fb),_0x56782c=(_0x8972be==null?void 0x0:_0x8972be[_0x1d1cb7(0x1c8)])??_0x1d1cb7(0x3fb);return{'changeset':{'unitID':_0x1f17e8,'type':(0x0,_0x2794c1[_0x1d1cb7(0x2f0)])(_0x438b98[_0x1d1cb7(0x334)](_0x1f17e8)),'baseRev':_0x4a1379[_0x1d1cb7(0x18a)](_0x1f17e8),'revision':0x0,'userID':_0x524e99,'memberID':_0x56782c,'mutations':_0x56c756},'pendingMutations':_0x5719ac[_0x1d1cb7(0x350)](_0x56c756[_0x1d1cb7(0x352)])};}function _0x3ab595(_0x1f7e29,_0x5ba619,_0x4f579d,_0xc4565,_0xa82560){const _0x51765d=_0x2cf920;let _0x3db7a1=_0x1f7e29['reduce']((_0xed2670,_0x1ac592)=>{const _0x52d275=_0x38ab;let _0x5855f4=_0xed2670[_0xed2670[_0x52d275(0x352)]-0x1],{id:_0x315201}=_0x5855f4??{},{id:_0xc4ab34,type:_0x3c2e45}=_0x1ac592,_0x151455=_0x1ac592[_0x52d275(0x43b)];if(_0x315201&&_0x315201!==_0xc4ab34)throw Error(_0x52d275(0x240)+_0x315201+_0x52d275(0x302)+_0xc4ab34+'.');if(!_0x5855f4)return[{'id':_0xc4ab34,'type':_0x3c2e45,'params':{'unitId':_0x151455[_0x52d275(0x38e)],'textRanges':_0x151455[_0x52d275(0x382)],'actions':_0x151455['actions']}}];let _0x1541bd=_0x5855f4[_0x52d275(0x43b)];return _0x3c15fc(_0x1541bd,_0x151455)?[..._0xed2670[_0x52d275(0x350)](0x0,-0x1),{..._0x5855f4,'id':_0xc4ab34,'type':_0x3c2e45,'params':{'unitId':_0x151455[_0x52d275(0x38e)],'textRanges':_0x151455[_0x52d275(0x382)],'actions':_0x55970d[_0x52d275(0x1d4)][_0x52d275(0x349)](_0x1541bd[_0x52d275(0x3cd)],_0x151455[_0x52d275(0x3cd)])}}]:[..._0xed2670,{'id':_0xc4ab34,'type':_0x3c2e45,'params':{'unitId':_0x151455[_0x52d275(0x38e)],'textRanges':_0x151455[_0x52d275(0x382)],'actions':_0x151455[_0x52d275(0x3cd)]}}];},[]),_0x11af3b=_0xa82560[_0x51765d(0x348)](),_0x3e3b5e=(_0x11af3b==null?void 0x0:_0x11af3b['userID'])??_0x51765d(0x3fb),_0x4fa8e9=(_0x11af3b==null?void 0x0:_0x11af3b[_0x51765d(0x1c8)])??_0x51765d(0x3fb);return{'changeset':{'unitID':_0x5ba619,'type':(0x0,_0x2794c1[_0x51765d(0x2f0)])(_0x4f579d['getUnitType'](_0x5ba619)),'baseRev':_0xc4565[_0x51765d(0x18a)](_0x5ba619),'revision':0x0,'userID':_0x3e3b5e,'memberID':_0x4fa8e9,'mutations':_0x3db7a1},'pendingMutations':_0x1f7e29[_0x51765d(0x350)](_0x1f7e29[_0x51765d(0x352)])};}function _0x3c15fc(_0x31411e,_0x2d4083){const _0x731b48=_0x2cf920;return!_0x5b9ffd(_0x31411e)&&!_0x5b9ffd(_0x2d4083)&&_0x2b70a6(_0x31411e[_0x731b48(0x3cd)],_0x2d4083[_0x731b48(0x3cd)]);}function _0x5b9ffd(_0x4e1113){const _0x33a8d8=_0x2cf920;return _0x4e1113[_0x33a8d8(0x226)]!==void 0x0;}function _0x2b70a6(_0x546df5,_0xc56ed2){return _0x85c72a(_0x546df5)&&_0x85c72a(_0xc56ed2)&&!_0x4802b3(_0x546df5)&&!_0x4802b3(_0xc56ed2)&&!_0x18bde1(_0x546df5)&&!_0x18bde1(_0xc56ed2);}function _0x85c72a(_0xbaa801){const _0x3ef073=_0x2cf920;return _0x3ac03c(_0xbaa801)[_0x3ef073(0x3c9)](_0x4f3a54=>_0x5117dc(_0x4f3a54)&&_0x4f3a54['et']===_0x3ef073(0x27d));}function _0x18bde1(_0x342803){const _0x3f8ee2=_0x2cf920;return _0x3ac03c(_0x342803)[_0x3f8ee2(0x3c9)](_0x4e1a9b=>Array[_0x3f8ee2(0x2c8)](_0x4e1a9b)||typeof _0x4e1a9b==_0x3f8ee2(0x38b)||typeof _0x4e1a9b==_0x3f8ee2(0x463));}function _0x4802b3(_0x448f45){const _0x1febfd=_0x2cf920;return _0x3ac03c(_0x448f45)[_0x1febfd(0x3c9)](_0x4c06a6=>!_0x5117dc(_0x4c06a6)||_0x4c06a6['et']!==_0x1febfd(0x27d)||!Array['isArray'](_0x4c06a6['e'])?!0x1:_0x4c06a6['e'][_0x1febfd(0x3c9)](_0x468dfa=>!_0x5117dc(_0x468dfa)||!_0x5117dc(_0x468dfa[_0x1febfd(0x3eb)])?!0x1:Object[_0x1febfd(0x174)][_0x1febfd(0x42f)]['call'](_0x468dfa[_0x1febfd(0x3eb)],_0x1febfd(0x270))||Object[_0x1febfd(0x174)][_0x1febfd(0x42f)]['call'](_0x468dfa['body'],'columnGroups')||Object[_0x1febfd(0x174)][_0x1febfd(0x42f)][_0x1febfd(0x1fd)](_0x468dfa[_0x1febfd(0x3eb)],_0x1febfd(0x2ca))));}function _0x3ac03c(_0x5a47f3){const _0x477c7b=_0x2cf920;if(!Array[_0x477c7b(0x2c8)](_0x5a47f3))return[];let _0x249f6f=_0x5a47f3[_0x477c7b(0x282)](_0x477c7b(0x3eb))?_0x5a47f3:_0x5a47f3[_0x477c7b(0x1ae)](_0x223070=>Array['isArray'](_0x223070)&&_0x223070['includes'](_0x477c7b(0x3eb)));if(!Array[_0x477c7b(0x2c8)](_0x249f6f))return[];let _0x227f3f=_0x249f6f['indexOf'](_0x477c7b(0x3eb));return _0x227f3f===-0x1?[]:_0x249f6f[_0x477c7b(0x350)](_0x227f3f+0x1);}function _0x5117dc(_0x3b1249){const _0x96f07c=_0x2cf920;return typeof _0x3b1249==_0x96f07c(0x435)&&!!_0x3b1249&&!Array[_0x96f07c(0x2c8)](_0x3b1249);}function _0x1be483(_0x262ccc,_0x52385d){const _0x21fbcd=_0x2cf920;let _0x7619cc=new _0x2accac[(_0x21fbcd(0x2bb))](0x1);return setTimeout(()=>_0x7619cc[_0x21fbcd(0x2c4)](_0x52385d),_0x262ccc),_0x7619cc['asObservable']()['pipe']((0x0,_0x2accac[_0x21fbcd(0x488)])(0x1));}var _0x2b10ff,_0x5e6b6a,_0x3c5155;let _0x5394b0=function(_0x3d6ddd){const _0x32d71b=_0x2cf920;return _0x3d6ddd[_0x32d71b(0x279)]=_0x32d71b(0x362),_0x3d6ddd[_0x32d71b(0x1f2)]='synced',_0x3d6ddd[_0x32d71b(0x460)]='pending',_0x3d6ddd['AWAITING']='awaiting',_0x3d6ddd[_0x32d71b(0x247)]='awaiting_with_pending',_0x3d6ddd[_0x32d71b(0x355)]=_0x32d71b(0x212),_0x3d6ddd[_0x32d71b(0x17f)]='conflict',_0x3d6ddd[_0x32d71b(0x405)]=_0x32d71b(0x1cb),_0x3d6ddd;}({}),_0x14bb13=0x4e20,_0x3d9d15=0x2bf20;var _0x1d9af1=class{constructor(_0x114644,_0x478d89,_0x2d0abb,_0x58ab48,_0xf4d5f2,_0x1e9b74,_0xf582a4,_0x3d04be,_0x4f97be){const _0x586fba=_0x2cf920;this['unitID']=_0x114644,this['type']=_0x478d89,this[_0x586fba(0x1c0)]=_0xf4d5f2,this[_0x586fba(0x344)]=_0x1e9b74,this[_0x586fba(0x184)]=_0xf582a4,this[_0x586fba(0x230)]=_0x3d04be,this[_0x586fba(0x216)]=_0x4f97be,_0x4fa34c(this,_0x586fba(0x3d7),null),_0x4fa34c(this,_0x586fba(0x404),[]),this[_0x586fba(0x3d7)]=_0x2d0abb,this['_pendingMutations']=_0x58ab48;}[_0x2cf920(0x20c)](_0xcd9bf0){const _0x8102b7=_0x2cf920;let _0x1faf18=this[_0x8102b7(0x230)][_0x8102b7(0x18a)](this[_0x8102b7(0x45e)]);return _0xcd9bf0[_0x8102b7(0x3f4)]>_0x1faf18+0x1?(this[_0x8102b7(0x1c0)][_0x8102b7(0x1a3)]({'from':_0x1faf18,'to':_0xcd9bf0[_0x8102b7(0x3f4)]-0x1}),!0x0):!0x1;}[_0x2cf920(0x317)](_0x360363){const _0x138ab3=_0x2cf920;this[_0x138ab3(0x184)][_0x138ab3(0x2b8)](this[_0x138ab3(0x45e)],_0x360363);}[_0x2cf920(0x144)](_0x416e75){const _0x94ef70=_0x2cf920;var _0x2e1dfe,_0x159655;(_0x2e1dfe=(_0x159655=this['_handler'])['onTransformSelections'])==null||_0x2e1dfe[_0x94ef70(0x1fd)](_0x159655,_0x416e75);}[_0x2cf920(0x1ef)](_0x5951e6){const _0x5aeaec=_0x2cf920;var _0x18917e,_0x1eb4e3;return(_0x18917e=(_0x1eb4e3=this['_handler'])[_0x5aeaec(0x3a6)])==null?void 0x0:_0x18917e[_0x5aeaec(0x1fd)](_0x1eb4e3,_0x5951e6);}[_0x2cf920(0x275)](_0x2b12b0){const _0xaf117b=_0x2cf920;var _0x48f7cb,_0x1bc810;return(_0x48f7cb=(_0x1bc810=this['_handler'])[_0xaf117b(0x244)])==null?void 0x0:_0x48f7cb[_0xaf117b(0x1fd)](_0x1bc810,_0x2b12b0);}[_0x2cf920(0x2ef)](_0x281b61){const _0xb80c17=_0x2cf920;var _0x241ce5,_0x4f3a97;return((_0x241ce5=(_0x4f3a97=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x241ce5[_0xb80c17(0x1fd)](_0x4f3a97,_0x281b61))??_0x281b61;}[_0x2cf920(0x46f)](_0x91fcac){const _0x52e531=_0x2cf920;var _0x49fd6f,_0x37d3a0;return((_0x49fd6f=(_0x37d3a0=this[_0x52e531(0x1c0)])[_0x52e531(0x393)])==null?void 0x0:_0x49fd6f[_0x52e531(0x1fd)](_0x37d3a0,_0x91fcac))??_0x91fcac;}[_0x2cf920(0x360)](_0x39efc7){const _0x261131=_0x2cf920;if(this[_0x261131(0x369)]===_0x55970d['UniverInstanceType'][_0x261131(0x309)]){let {unitID:_0x59c5ec,mutations:_0x2d43b0,memberID:_0x2ef385}=_0x39efc7,_0x2e2625=_0x2d43b0[_0x261131(0x352)]>0x0?_0x2d43b0[0x0]['params'][_0x261131(0x382)]:[];if(Array[_0x261131(0x2c8)](_0x2e2625)&&_0x2e2625[_0x261131(0x352)]>0x0){var _0x31ebf3,_0x43d2b3;(_0x31ebf3=(_0x43d2b3=this[_0x261131(0x1c0)])[_0x261131(0x3fa)])==null||_0x31ebf3['call'](_0x43d2b3,{'unitID':_0x59c5ec,'memberID':_0x2ef385,'textRanges':_0x2e2625});}}}['_updateLocalCache'](){const _0x5caf29=_0x2cf920;var _0x2fe362;(_0x2fe362=this['_localCacheService'])==null||_0x2fe362[_0x5caf29(0x29b)](this['unitID'],this[_0x5caf29(0x369)],this[_0x5caf29(0x3d7)],this[_0x5caf29(0x404)]);}['_getCurrentRevision'](){const _0x7b1096=_0x2cf920;return this['_revisionService'][_0x7b1096(0x18a)](this[_0x7b1096(0x45e)]);}[_0x2cf920(0x31c)](){const _0x2c9dd3=_0x2cf920;this[_0x2c9dd3(0x230)][_0x2c9dd3(0x3bf)](this[_0x2c9dd3(0x45e)]);}[_0x2cf920(0x209)](_0x26effb){const _0x14c924=_0x2cf920;let _0x31e371=this[_0x14c924(0x2ef)](_0x26effb);_0x31e371=this[_0x14c924(0x46f)](_0x31e371);let _0x5b1e45=(0x0,_0x55970d[_0x14c924(0x1e7)])(_0x31e371[_0x14c924(0x142)],this[_0x14c924(0x344)],{'fromCollab':!0x0});if(!_0x5b1e45[_0x14c924(0x22c)])throw _0x5b1e45['error']instanceof Error?_0x5b1e45[_0x14c924(0x415)]:Error(_0x5b1e45['error']??'[CollaborationState]:\x20apply\x20error!');this[_0x14c924(0x1ef)](_0x31e371),this[_0x14c924(0x275)](_0x31e371),this['_transformUndoredo'](_0x26effb),this[_0x14c924(0x144)](_0x31e371),this[_0x14c924(0x360)](_0x31e371),this[_0x14c924(0x31c)]();}};let _0x53b4b6=class extends _0x1d9af1{constructor(_0x37e7dd,_0x2b440f,_0x59606b,_0x5a591e,_0x42b570,_0x3be3af,_0x1949b2,_0x37e492,_0x267d26,_0x2dd90c){const _0x36a190=_0x2cf920;super(_0x37e7dd,_0x2b440f,null,[],_0x59606b,_0x1949b2,_0x3be3af,_0x5a591e,_0x2dd90c),this['_injector']=_0x42b570,this[_0x36a190(0x47d)]=_0x37e492,this[_0x36a190(0x27c)]=_0x267d26,this[_0x36a190(0x31a)]=_0x2dd90c,_0x4fa34c(this,_0x36a190(0x374),_0x36a190(0x38f));}[_0x2cf920(0x419)](_0x5024ee){const _0x10f001=_0x2cf920;let _0x651c77=this[_0x10f001(0x39d)][_0x10f001(0x3ac)](_0x14ace0,this[_0x10f001(0x45e)],this[_0x10f001(0x369)],[_0x5024ee],this[_0x10f001(0x1c0)]);return _0x651c77['_schedule'](),_0x651c77[_0x10f001(0x2ad)](),_0x651c77;}['onRemoteChangeset'](_0x5b3355){const _0x482ade=_0x2cf920;if(this['_checkMissing'](_0x5b3355))return this[_0x482ade(0x39d)]['createInstance'](_0x3cb219,this[_0x482ade(0x45e)],this['type'],null,[],null,[_0x5b3355],this['_handler']);try{let _0x39b6c5=this[_0x482ade(0x27c)][_0x482ade(0x35d)](_0x5b3355,[_0x2794c1[_0x482ade(0x1f9)]]);if((0x0,_0x2794c1[_0x482ade(0x278)])(_0x39b6c5)){let {c1Prime:_0x3da024}=_0x39b6c5;return this['_executeRemoteChangeset'](_0x3da024),this;}throw _0x39b6c5[_0x482ade(0x415)];}catch(_0x4bdc8f){return this[_0x482ade(0x47d)]['error'](_0x4bdc8f),this[_0x482ade(0x1ee)](!0x1);}}['_onConflict'](_0x219e0c){const _0xb64c75=_0x2cf920;return this[_0xb64c75(0x39d)][_0xb64c75(0x3ac)](_0x413821,this[_0xb64c75(0x45e)],this['type'],null,[],this[_0xb64c75(0x1c0)],_0x219e0c);}[_0x2cf920(0x2d0)](_0x861ff8){const _0x597b6e=_0x2cf920;if(_0x861ff8['revision']<=this[_0x597b6e(0x16f)]())return this;throw Error(_0x597b6e(0x35b));}['onRemoteRej'](){const _0x54864b=_0x2cf920;throw Error(_0x54864b(0x17a));}[_0x2cf920(0x20a)](){return this;}[_0x2cf920(0x327)](){const _0xf5b32d=_0x2cf920;return this[_0xf5b32d(0x39d)][_0xf5b32d(0x3ac)](_0x430fb9,this[_0xf5b32d(0x45e)],this[_0xf5b32d(0x369)],null,[],this[_0xf5b32d(0x1c0)]);}['toggleOnline'](){return this;}[_0x2cf920(0x28c)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2cf920(0x342)](){const _0x4c2727=_0x2cf920;let _0x447422=this[_0x4c2727(0x230)][_0x4c2727(0x18a)](this['unitID']);return this['_handler']['onMissingChangesets']({'from':_0x447422,'to':0x0}),this[_0x4c2727(0x39d)]['createInstance'](_0x3cb219,this[_0x4c2727(0x45e)],this[_0x4c2727(0x369)],null,[],null,[],this['_handler']);}};_0x53b4b6=_0x30bef6([_0x177aa6(0x3,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x2794c1[_0x2cf920(0x3dc)])),_0x177aa6(0x4,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d['Injector'])),_0x177aa6(0x5,_0x55970d[_0x2cf920(0x37b)]),_0x177aa6(0x6,_0x55970d[_0x2cf920(0x201)]),_0x177aa6(0x7,_0x55970d[_0x2cf920(0x259)]),_0x177aa6(0x8,_0x2794c1[_0x2cf920(0x2ae)]),_0x177aa6(0x9,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0x2d50be))],_0x53b4b6);let _0x14ace0=_0x2b10ff=class extends _0x1d9af1{constructor(_0x15eb21,_0x54d3af,_0x511c91,_0x5e8c6a,_0x5c7a70,_0x2e73b2,_0x4c1186,_0x36e14c,_0x575b18,_0xaea9dd,_0x4b45b3,_0x1a85f0,_0x4f5e43,_0x4068c2){const _0x64687f=_0x2cf920;super(_0x15eb21,_0x54d3af,null,_0x511c91,_0x5e8c6a,_0x575b18,_0x4f5e43,_0x2e73b2,_0x4068c2),this['_injector']=_0x5c7a70,this['_userManagerService']=_0x4c1186,this[_0x64687f(0x47d)]=_0x36e14c,this['_configService']=_0xaea9dd,this['_transformService']=_0x4b45b3,this['_univerInstanceService']=_0x1a85f0,_0x4fa34c(this,_0x64687f(0x374),_0x64687f(0x480)),_0x4fa34c(this,_0x64687f(0x274),null),_0x4fa34c(this,_0x64687f(0x243),null);}[_0x2cf920(0x419)](_0x9a51f9){const _0x313c4a=_0x2cf920;return this[_0x313c4a(0x404)][_0x313c4a(0x264)](_0x9a51f9),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x23ef51){const _0x1163f1=_0x2cf920;if(this['_checkMissing'](_0x23ef51))return this[_0x1163f1(0x1a7)](),this[_0x1163f1(0x39d)][_0x1163f1(0x3ac)](_0x3cb219,this[_0x1163f1(0x45e)],this[_0x1163f1(0x369)],null,this[_0x1163f1(0x404)],null,[_0x23ef51],this['_handler']);try{let _0x288e14=this[_0x1163f1(0x27c)][_0x1163f1(0x35d)](_0x23ef51,this['_pendingMutations']);if((0x0,_0x2794c1[_0x1163f1(0x278)])(_0x288e14)){let {c1Prime:_0x385439,m2Prime:_0xeadae7}=_0x288e14;this['_executeRemoteChangeset'](_0x385439);let _0x3b2826=this['_injector']['createInstance'](_0x2b10ff,this[_0x1163f1(0x45e)],this[_0x1163f1(0x369)],_0xeadae7,this[_0x1163f1(0x1c0)]);this['_clearScheduledTask']();let _0x3807af=new Date()[_0x1163f1(0x14c)](),_0xec8cbb=this['_scheduleCompleteTimestamp']?Math['max'](this[_0x1163f1(0x274)]-_0x3807af,0x0):this[_0x1163f1(0x3d9)]();return _0x3b2826[_0x1163f1(0x3c1)](_0xec8cbb),_0x3b2826;}throw _0x288e14[_0x1163f1(0x415)];}catch(_0x32d6a9){return this[_0x1163f1(0x47d)][_0x1163f1(0x415)](_0x32d6a9),this[_0x1163f1(0x1ee)](!0x1);}}['onRemoteAck'](_0x4ff8cb){const _0x21b308=_0x2cf920;if(_0x4ff8cb['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x21b308(0x231));}[_0x2cf920(0x2b4)](){const _0x16602a=_0x2cf920;throw Error(_0x16602a(0x38a));}['onRemoteRetry'](){return this;}[_0x2cf920(0x327)](){const _0xe83e4=_0x2cf920;return this[_0xe83e4(0x1a7)](),this['_injector'][_0xe83e4(0x3ac)](_0x430fb9,this[_0xe83e4(0x45e)],this[_0xe83e4(0x369)],null,this[_0xe83e4(0x404)],this[_0xe83e4(0x1c0)]);}['toggleOnline'](){return this;}[_0x2cf920(0x3c1)](_0x574c60){const _0x1beac8=_0x2cf920;let _0x3ac094=_0x574c60??this[_0x1beac8(0x3d9)]();this[_0x1beac8(0x274)]=new Date()[_0x1beac8(0x14c)]()+_0x3ac094,this[_0x1beac8(0x243)]=setTimeout(()=>{const _0x3ddc6f=_0x1beac8;this[_0x3ddc6f(0x1a7)]();let _0x11ae6b=null;switch(this[_0x3ddc6f(0x369)]){case _0x55970d[_0x3ddc6f(0x30c)][_0x3ddc6f(0x368)]:_0x11ae6b=_0xe6759f(this['_pendingMutations'],this[_0x3ddc6f(0x45e)],this[_0x3ddc6f(0x48e)],this['_revisionService'],this[_0x3ddc6f(0x1dd)]);break;case _0x55970d[_0x3ddc6f(0x30c)]['UNIVER_DOC']:_0x11ae6b=this[_0x3ddc6f(0x404)][_0x3ddc6f(0x3b8)](_0xec828d=>_0xec828d['id']===_0x18c6ee[_0x3ddc6f(0x200)]['id'])?_0x3ab595(this[_0x3ddc6f(0x404)],this[_0x3ddc6f(0x45e)],this[_0x3ddc6f(0x48e)],this[_0x3ddc6f(0x230)],this['_userManagerService']):_0xe6759f(this[_0x3ddc6f(0x404)],this[_0x3ddc6f(0x45e)],this['_univerInstanceService'],this[_0x3ddc6f(0x230)],this[_0x3ddc6f(0x1dd)]);break;case _0x55970d['UniverInstanceType'][_0x3ddc6f(0x21e)]:_0x11ae6b=_0x2bbd1b(this['_pendingMutations'],this[_0x3ddc6f(0x45e)],this[_0x3ddc6f(0x48e)],this[_0x3ddc6f(0x230)],this[_0x3ddc6f(0x1dd)]);break;case _0x55970d['UniverInstanceType'][_0x3ddc6f(0x2c1)]:_0x11ae6b=_0x19f6b1(this[_0x3ddc6f(0x404)],this['unitID'],this[_0x3ddc6f(0x48e)],this[_0x3ddc6f(0x230)],this[_0x3ddc6f(0x1dd)]);break;case _0x55970d[_0x3ddc6f(0x30c)][_0x3ddc6f(0x23f)]:_0x11ae6b=_0xe6759f(this[_0x3ddc6f(0x404)],this[_0x3ddc6f(0x45e)],this['_univerInstanceService'],this[_0x3ddc6f(0x230)],this['_userManagerService']);break;case _0x55970d[_0x3ddc6f(0x30c)][_0x3ddc6f(0x21b)]:_0x11ae6b=_0xe6759f(this[_0x3ddc6f(0x404)],this[_0x3ddc6f(0x45e)],this[_0x3ddc6f(0x48e)],this[_0x3ddc6f(0x230)],this[_0x3ddc6f(0x1dd)]);break;default:throw Error(_0x3ddc6f(0x210)+this[_0x3ddc6f(0x369)]+'\x20in\x20_schedule.');}let {changeset:_0xa90a9,pendingMutations:_0x54149c}=_0x11ae6b;this[_0x3ddc6f(0x1c0)][_0x3ddc6f(0x21f)](_0xa90a9);let _0x2b432e=_0x54149c[_0x3ddc6f(0x352)]?this[_0x3ddc6f(0x39d)][_0x3ddc6f(0x3ac)](_0x283e6d,this[_0x3ddc6f(0x45e)],this[_0x3ddc6f(0x369)],_0xa90a9,_0x54149c,this[_0x3ddc6f(0x1c0)],void 0x0):this['_injector'][_0x3ddc6f(0x3ac)](_0xd730f4,this[_0x3ddc6f(0x45e)],this['type'],_0xa90a9,this[_0x3ddc6f(0x1c0)]);_0x2b432e[_0x3ddc6f(0x2ad)](),this['_handler']['onStateChange'](this,_0x2b432e);},_0x3ac094);}[_0x2cf920(0x3d9)](){const _0x60a661=_0x2cf920;let _0x23bca7=this[_0x60a661(0x297)]['getConfig'](_0x4240c0);return(_0x23bca7==null?void 0x0:_0x23bca7[_0x60a661(0x378)])??0x7d0;}[_0x2cf920(0x28c)](){const _0x9df3ac=_0x2cf920;throw Error(_0x9df3ac(0x31d));}[_0x2cf920(0x1a7)](){const _0x1b008f=_0x2cf920;this[_0x1b008f(0x243)]!=null&&(clearTimeout(this[_0x1b008f(0x243)]),this['_sendingTimer']=null);}['_onConflict'](_0x5c935d){const _0x21d12b=_0x2cf920;return this[_0x21d12b(0x1a7)](),this['_injector'][_0x21d12b(0x3ac)](_0x413821,this[_0x21d12b(0x45e)],this['type'],null,this[_0x21d12b(0x404)],this[_0x21d12b(0x1c0)],_0x5c935d);}};_0x14ace0=_0x2b10ff=_0x30bef6([_0x177aa6(0x4,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d[_0x2cf920(0x371)])),_0x177aa6(0x5,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x2794c1[_0x2cf920(0x3dc)])),_0x177aa6(0x6,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d[_0x2cf920(0x41b)])),_0x177aa6(0x7,_0x55970d[_0x2cf920(0x259)]),_0x177aa6(0x8,_0x55970d['ICommandService']),_0x177aa6(0x9,_0x55970d[_0x2cf920(0x412)]),_0x177aa6(0xa,_0x2794c1['ITransformService']),_0x177aa6(0xb,_0x55970d[_0x2cf920(0x2d6)]),_0x177aa6(0xc,_0x55970d[_0x2cf920(0x37b)]),_0x177aa6(0xd,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0x2d50be))],_0x14ace0);let _0xd730f4=_0x5e6b6a=class extends _0x1d9af1{constructor(_0x5ce49e,_0x72439b,_0x40c6d7,_0x4c98e8,_0x17cfc7,_0x1ac6e7,_0x158380,_0x455fc6,_0x5e7f9c,_0x273375,_0x5c96df){const _0x3a56b2=_0x2cf920;super(_0x5ce49e,_0x72439b,_0x40c6d7,[],_0x4c98e8,_0x158380,_0x273375,_0x1ac6e7,_0x5c96df),this[_0x3a56b2(0x39d)]=_0x17cfc7,this['_logService']=_0x455fc6,this[_0x3a56b2(0x27c)]=_0x5e7f9c,_0x4fa34c(this,_0x3a56b2(0x374),_0x3a56b2(0x249)),_0x4fa34c(this,_0x3a56b2(0x25b),0x0),_0x4fa34c(this,'_maxTotalRetryTimeout',0x0),_0x4fa34c(this,_0x3a56b2(0x186),void 0x0),_0x4fa34c(this,_0x3a56b2(0x1d3),void 0x0);}['appendMutation'](_0xa8e600){const _0x475b57=_0x2cf920;this[_0x475b57(0x1a7)]();let _0x37cbc6=this[_0x475b57(0x39d)][_0x475b57(0x3ac)](_0x283e6d,this['unitID'],this['type'],this[_0x475b57(0x3d7)],[_0xa8e600],this[_0x475b57(0x1c0)],this[_0x475b57(0x186)]);return _0x37cbc6['_updateLocalCache'](),_0x37cbc6;}[_0x2cf920(0x41d)](_0x3b540c){const _0x269060=_0x2cf920;if(this[_0x269060(0x20c)](_0x3b540c))return this['_clearScheduledTask'](),this[_0x269060(0x39d)]['createInstance'](_0x3cb219,this[_0x269060(0x45e)],this[_0x269060(0x369)],this[_0x269060(0x3d7)],[],null,[_0x3b540c],this['_handler']);try{let _0x12339f=this[_0x269060(0x27c)][_0x269060(0x219)]([_0x3b540c],[this['_awaitingChangeset']],!0x1);if((0x0,_0x2794c1[_0x269060(0x245)])(_0x12339f)){let {c1Prime:_0x1435f7,c2Prime:_0x3133e9}=_0x12339f;this['_executeRemoteChangeset'](_0x1435f7[0x0]),_0x3133e9[0x0]['baseRev']=this[_0x269060(0x16f)](),this[_0x269060(0x1a7)]();let _0x20866a=this[_0x269060(0x39d)]['createInstance'](_0x5e6b6a,this[_0x269060(0x45e)],this['type'],_0x3133e9[0x0],this[_0x269060(0x1c0)]);return _0x20866a['_updateLocalCache'](),_0x20866a;}throw _0x12339f[_0x269060(0x415)];}catch(_0x5b1505){return this['_logService']['error'](_0x5b1505),this[_0x269060(0x1ee)](!0x1);}}[_0x2cf920(0x2d0)](_0x5eff86){const _0x3d6d6c=_0x2cf920;this['_clearScheduledTask']();let _0x2c8010=this['_revisionService'][_0x3d6d6c(0x18a)](this[_0x3d6d6c(0x45e)]);if(_0x5eff86[_0x3d6d6c(0x3f4)]<=_0x2c8010)return this;if(this['_checkMissing'](_0x5eff86))return this[_0x3d6d6c(0x39d)]['createInstance'](_0x3cb219,this[_0x3d6d6c(0x45e)],this['type'],this['_awaitingChangeset'],[],_0x5eff86[_0x3d6d6c(0x3f4)],[],this[_0x3d6d6c(0x1c0)]);this[_0x3d6d6c(0x31c)]();let _0x343c5a=this[_0x3d6d6c(0x39d)]['createInstance'](_0x53b4b6,this['unitID'],this[_0x3d6d6c(0x369)],this[_0x3d6d6c(0x1c0)]);return _0x343c5a[_0x3d6d6c(0x2ad)](),_0x343c5a;}[_0x2cf920(0x2b4)](_0x5123a1){const _0x364af8=_0x2cf920;return this[_0x364af8(0x1ee)](!!(_0x5123a1!=null&&_0x5123a1[_0x364af8(0x21d)]));}['onRemoteRetry'](_0x4e1744){const _0x21dde4=_0x2cf920;return this['_maxTotalRetryTimeout']>_0x3d9d15?this['toggleOffline']():(this[_0x21dde4(0x186)]=_0x1be483(this[_0x21dde4(0x25b)],{'timeout':this['_resendTimeout'],'reqId':_0x4e1744[_0x21dde4(0x147)]}),this[_0x21dde4(0x1d3)]=this[_0x21dde4(0x186)][_0x21dde4(0x32b)](({reqId:_0xfee4a1,timeout:_0xe41fc4})=>{const _0x43ceeb=_0x21dde4;this[_0x43ceeb(0x1bc)](_0xfee4a1,_0xe41fc4);}),this);}[_0x2cf920(0x327)](){const _0x6ae847=_0x2cf920;return this['_clearScheduledTask'](),this[_0x6ae847(0x39d)][_0x6ae847(0x3ac)](_0x430fb9,this[_0x6ae847(0x45e)],this['type'],this['_awaitingChangeset'],[],this[_0x6ae847(0x1c0)]);}[_0x2cf920(0x155)](){return this;}[_0x2cf920(0x28c)](){const _0x6273dd=_0x2cf920;this['_handler']['onSendChangeset'](this[_0x6273dd(0x3d7)]);}[_0x2cf920(0x1ee)](_0x569dc5){const _0x158961=_0x2cf920;return this[_0x158961(0x1a7)](),this['_injector'][_0x158961(0x3ac)](_0x413821,this[_0x158961(0x45e)],this[_0x158961(0x369)],this['_awaitingChangeset'],[],this[_0x158961(0x1c0)],_0x569dc5);}[_0x2cf920(0x1bc)](_0x539e37,_0x3cd3fa){const _0x1ab14a=_0x2cf920;var _0x3cc2ce;_0x539e37===((_0x3cc2ce=this[_0x1ab14a(0x3d7)])==null?void 0x0:_0x3cc2ce[_0x1ab14a(0x147)])&&(this['resend'](),this[_0x1ab14a(0x25b)]=_0x3cd3fa===0x0?0x3e8:Math[_0x1ab14a(0x271)](_0x3cd3fa*0x2,_0x14bb13),this[_0x1ab14a(0x468)]+=this[_0x1ab14a(0x25b)]);}[_0x2cf920(0x1a7)](){const _0x6a6ad7=_0x2cf920;var _0x66bb5f;(_0x66bb5f=this[_0x6a6ad7(0x1d3)])==null||_0x66bb5f[_0x6a6ad7(0x3e2)](),this[_0x6a6ad7(0x25b)]=0x0,this[_0x6a6ad7(0x468)]=0x0;}};_0xd730f4=_0x5e6b6a=_0x30bef6([_0x177aa6(0x4,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d[_0x2cf920(0x371)])),_0x177aa6(0x5,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x2794c1[_0x2cf920(0x3dc)])),_0x177aa6(0x6,_0x55970d['ICommandService']),_0x177aa6(0x7,_0x55970d[_0x2cf920(0x259)]),_0x177aa6(0x8,_0x2794c1[_0x2cf920(0x2ae)]),_0x177aa6(0x9,_0x55970d[_0x2cf920(0x37b)]),_0x177aa6(0xa,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0x2d50be))],_0xd730f4);let _0x283e6d=_0x3c5155=class extends _0x1d9af1{constructor(_0x318bf7,_0x199529,_0x4ed00a,_0x4b52fc,_0x580cbb,_0x6e44b7,_0x5bb0e4,_0x4657e3,_0x5beef8,_0xe29351,_0x2ee7d7,_0x5f4a47,_0x2465f6){const _0x24a08d=_0x2cf920;super(_0x318bf7,_0x199529,_0x4ed00a,_0x4b52fc,_0x580cbb,_0x5beef8,_0x5f4a47,_0x4657e3,_0x2465f6),this[_0x24a08d(0x39d)]=_0x5bb0e4,this[_0x24a08d(0x47d)]=_0xe29351,this[_0x24a08d(0x27c)]=_0x2ee7d7,this[_0x24a08d(0x31a)]=_0x2465f6,_0x4fa34c(this,_0x24a08d(0x374),_0x24a08d(0x345)),_0x4fa34c(this,'_resendTimeout',0x0),_0x4fa34c(this,'_maxTotalRetryTimeout',0x0),_0x4fa34c(this,_0x24a08d(0x186),void 0x0),_0x4fa34c(this,'_sender',void 0x0),_0x6e44b7&&(this[_0x24a08d(0x186)]=_0x6e44b7,this['_sender']=this[_0x24a08d(0x186)][_0x24a08d(0x32b)](({reqId:_0x59dfce,timeout:_0x59fe16})=>{this['_resendWithTimeout'](_0x59dfce,_0x59fe16);}));}['appendMutation'](_0x4e291b){const _0x4bd379=_0x2cf920;return this[_0x4bd379(0x404)][_0x4bd379(0x264)](_0x4e291b),this;}[_0x2cf920(0x41d)](_0x2e9ae3){const _0x4ab5d6=_0x2cf920;if(this[_0x4ab5d6(0x20c)](_0x2e9ae3))return this[_0x4ab5d6(0x1a7)](),this[_0x4ab5d6(0x39d)][_0x4ab5d6(0x3ac)](_0x3cb219,this[_0x4ab5d6(0x45e)],this['type'],this[_0x4ab5d6(0x3d7)],this[_0x4ab5d6(0x404)],null,[_0x2e9ae3],this['_handler']);try{let _0x4c2b2d=this['_transformService'][_0x4ab5d6(0x219)]([_0x2e9ae3],[this['_awaitingChangeset']],!0x1);if((0x0,_0x2794c1['isTransformChangesetsSuccess'])(_0x4c2b2d)){let {c1Prime:_0x350e67,c2Prime:_0x413d22}=_0x4c2b2d,_0x49f367=this[_0x4ab5d6(0x27c)][_0x4ab5d6(0x35d)](_0x350e67[0x0],this[_0x4ab5d6(0x404)]);if((0x0,_0x2794c1[_0x4ab5d6(0x278)])(_0x49f367)){let {c1Prime:_0x478c88,m2Prime:_0x14891d}=_0x49f367;return this[_0x4ab5d6(0x209)](_0x478c88),_0x413d22[0x0][_0x4ab5d6(0x428)]=this[_0x4ab5d6(0x16f)](),this[_0x4ab5d6(0x1a7)](),this['_injector'][_0x4ab5d6(0x3ac)](_0x3c5155,this['unitID'],this['type'],_0x413d22[0x0],_0x14891d,this[_0x4ab5d6(0x1c0)],void 0x0);}throw _0x49f367[_0x4ab5d6(0x415)];}throw _0x4c2b2d[_0x4ab5d6(0x415)];}catch(_0x128e10){return this[_0x4ab5d6(0x47d)][_0x4ab5d6(0x415)](_0x128e10),this[_0x4ab5d6(0x1ee)](!0x1);}}['onRemoteAck'](_0x54db7f){const _0x79758b=_0x2cf920;this[_0x79758b(0x1a7)]();let _0x45dec9=this[_0x79758b(0x16f)]();if(_0x54db7f[_0x79758b(0x3f4)]<=_0x45dec9)return this;if(this[_0x79758b(0x20c)](_0x54db7f))return this['_injector'][_0x79758b(0x3ac)](_0x3cb219,this['unitID'],this['type'],this[_0x79758b(0x3d7)],this[_0x79758b(0x404)],_0x54db7f['revision'],[],this[_0x79758b(0x1c0)]);this[_0x79758b(0x31c)]();let _0x29f2f9=this[_0x79758b(0x39d)][_0x79758b(0x3ac)](_0x14ace0,this[_0x79758b(0x45e)],this[_0x79758b(0x369)],this['_pendingMutations'],this[_0x79758b(0x1c0)]);return _0x29f2f9[_0x79758b(0x3c1)](),_0x29f2f9[_0x79758b(0x2ad)](),_0x29f2f9;}[_0x2cf920(0x2b4)](_0x2e4570){return this['_onConflict'](!!(_0x2e4570!=null&&_0x2e4570['isPermissionRej']));}[_0x2cf920(0x20a)](_0x3ada6c){const _0xd094b0=_0x2cf920;return this[_0xd094b0(0x468)]>_0x3d9d15?this[_0xd094b0(0x327)]():(this[_0xd094b0(0x186)]=_0x1be483(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x3ada6c[_0xd094b0(0x147)]}),this[_0xd094b0(0x1d3)]=this[_0xd094b0(0x186)][_0xd094b0(0x32b)](({reqId:_0x4c55d3,timeout:_0x148f61})=>{const _0x125947=_0xd094b0;this[_0x125947(0x1bc)](_0x4c55d3,_0x148f61);}),this);}[_0x2cf920(0x327)](){const _0x408e55=_0x2cf920;return this['_clearScheduledTask'](),this[_0x408e55(0x39d)][_0x408e55(0x3ac)](_0x430fb9,this['unitID'],this[_0x408e55(0x369)],this['_awaitingChangeset'],this[_0x408e55(0x404)],this[_0x408e55(0x1c0)]);}[_0x2cf920(0x155)](){return this;}[_0x2cf920(0x28c)](){const _0x4eb15b=_0x2cf920;this[_0x4eb15b(0x1c0)][_0x4eb15b(0x21f)](this['_awaitingChangeset']);}['_onConflict'](_0x3c619c){const _0xfef5b0=_0x2cf920;return this[_0xfef5b0(0x1a7)](),this['_injector'][_0xfef5b0(0x3ac)](_0x413821,this[_0xfef5b0(0x45e)],this['type'],null,this[_0xfef5b0(0x404)],this['_handler'],_0x3c619c);}[_0x2cf920(0x1bc)](_0x7b5c70,_0x4b1db1){const _0x44dfb8=_0x2cf920;var _0x1e237a;_0x7b5c70===((_0x1e237a=this[_0x44dfb8(0x3d7)])==null?void 0x0:_0x1e237a['reqId'])&&(this['resend'](),this[_0x44dfb8(0x25b)]=_0x4b1db1===0x0?0x3e8:Math[_0x44dfb8(0x271)](_0x4b1db1*0x2,_0x14bb13),this[_0x44dfb8(0x468)]+=this[_0x44dfb8(0x25b)]);}[_0x2cf920(0x1a7)](){const _0x31bb3b=_0x2cf920;var _0x540550;(_0x540550=this['_sender'])==null||_0x540550['unsubscribe'](),this[_0x31bb3b(0x25b)]=0x0,this[_0x31bb3b(0x468)]=0x0;}};_0x283e6d=_0x3c5155=_0x30bef6([_0x177aa6(0x6,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d[_0x2cf920(0x371)])),_0x177aa6(0x7,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x2794c1[_0x2cf920(0x3dc)])),_0x177aa6(0x8,_0x55970d[_0x2cf920(0x201)]),_0x177aa6(0x9,_0x55970d['ILogService']),_0x177aa6(0xa,_0x2794c1['ITransformService']),_0x177aa6(0xb,_0x55970d[_0x2cf920(0x37b)]),_0x177aa6(0xc,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0x2d50be))],_0x283e6d);let _0x413821=class extends _0x1d9af1{constructor(_0x2acdda,_0x1abfdd,_0x47cc4f,_0x1af222,_0x5377f2,_0x486365=!0x1,_0x2c863c,_0x224d61,_0x40fba5,_0x5da8e6,_0x4583e2,_0x3624eb,_0x3ee159){const _0x3ecfe0=_0x2cf920;super(_0x2acdda,_0x1abfdd,_0x47cc4f,_0x1af222,_0x5377f2,_0x224d61,_0x40fba5,_0x5da8e6,_0x3ee159),this['_isPermissionRej']=_0x486365,this[_0x3ecfe0(0x2cd)]=_0x2c863c,this[_0x3ecfe0(0x3b5)]=_0x4583e2,this['_collaborationUIEventService']=_0x3624eb,this[_0x3ecfe0(0x31a)]=_0x3ee159,_0x4fa34c(this,_0x3ecfe0(0x374),_0x3ecfe0(0x343)),this[_0x3ecfe0(0x25d)](),this[_0x3ecfe0(0x2b6)](),this['_disableEditing']();}['appendMutation'](){return this;}[_0x2cf920(0x41d)](){return this;}[_0x2cf920(0x2d0)](){return this;}['onRemoteRej'](){return this;}[_0x2cf920(0x20a)](){return this;}[_0x2cf920(0x327)](){return this;}[_0x2cf920(0x155)](){return this;}['resend'](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x44196e=_0x2cf920;var _0x543931,_0x529543,_0x36792e;(_0x543931=this['_localCacheService'])==null||(_0x529543=_0x543931[_0x44196e(0x2b7)])==null||(_0x529543=_0x529543[_0x44196e(0x1fd)](_0x543931,this[_0x44196e(0x45e)],_0x44196e(0x343)))==null||_0x529543[_0x44196e(0x195)](()=>void 0x0),(_0x36792e=this['_localCacheService'])==null||_0x36792e['updateOfflineData'](this[_0x44196e(0x45e)],this[_0x44196e(0x369)],null,[]);}[_0x2cf920(0x25d)](){const _0x465c3c=_0x2cf920;this[_0x465c3c(0x458)]?this[_0x465c3c(0x3b0)]['emitEvent']({'id':'PERMISSION_DENIED'}):this['_collaborationUIEventService'][_0x465c3c(0x45c)]({'id':'CONFLICT'});}['_disableEditing'](){const _0x2da9af=_0x2cf920;this[_0x2da9af(0x2cd)][_0x2da9af(0x448)](new _0x6943[(_0x2da9af(0x1fe))](this[_0x2da9af(0x45e)])['id'],!0x1);}};_0x413821=_0x30bef6([_0x177aa6(0x6,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d['IPermissionService'])),_0x177aa6(0x7,_0x55970d['ICommandService']),_0x177aa6(0x8,_0x55970d[_0x2cf920(0x37b)]),_0x177aa6(0x9,(0x0,_0x55970d['Inject'])(_0x2794c1[_0x2cf920(0x3dc)])),_0x177aa6(0xa,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d['LocaleService'])),_0x177aa6(0xb,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x34126c)),_0x177aa6(0xc,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0x2d50be))],_0x413821);let _0x430fb9=class extends _0x1d9af1{constructor(_0x52a3de,_0x5cfd26,_0x1460f4,_0x347fbf,_0x3814d5,_0x4dd084,_0x1428af,_0x2e6576,_0x13ab72,_0x683ad9){const _0xe11aa=_0x2cf920;super(_0x52a3de,_0x5cfd26,_0x1460f4,_0x347fbf,_0x3814d5,_0x2e6576,_0x13ab72,_0x1428af,_0x683ad9),this['_injector']=_0x4dd084,_0x4fa34c(this,_0xe11aa(0x374),_0xe11aa(0x1cb));}['appendMutation'](_0x352942){const _0x329b1a=_0x2cf920;return this['_pendingMutations'][_0x329b1a(0x264)](_0x352942),this[_0x329b1a(0x2ad)](),this;}['onRemoteChangeset'](_0x1bcd87){throw Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x2cf920(0x2b4)](){const _0x46cf5e=_0x2cf920;throw Error(_0x46cf5e(0x336));}[_0x2cf920(0x20a)](){return this;}[_0x2cf920(0x327)](){return this;}[_0x2cf920(0x155)](){const _0x263df3=_0x2cf920;let {_injector:_0x295ab6,_pendingMutations:_0x30d87f,_awaitingChangeset:_0x599f5f,unitID:_0x56f7cb,_handler:_0x198e71,type:_0x42f84d}=this,_0x8b687a=_0x276e79(_0x295ab6,_0x56f7cb,_0x42f84d,_0x599f5f,_0x30d87f,_0x198e71);return _0x8b687a instanceof _0x14ace0?_0x8b687a['_schedule']():(_0x8b687a instanceof _0x283e6d||_0x8b687a instanceof _0xd730f4)&&_0x8b687a[_0x263df3(0x28c)](),_0x8b687a;}['resend'](){const _0x4be590=_0x2cf920;throw Error(_0x4be590(0x3a8));}};_0x430fb9=_0x30bef6([_0x177aa6(0x5,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d['Injector'])),_0x177aa6(0x6,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x2794c1[_0x2cf920(0x3dc)])),_0x177aa6(0x7,_0x55970d[_0x2cf920(0x201)]),_0x177aa6(0x8,_0x55970d['IUndoRedoService']),_0x177aa6(0x9,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0x2d50be))],_0x430fb9);let _0x3cb219=class extends _0x1d9af1{constructor(_0x3ec472,_0x10c94e,_0x5042e0,_0x3f74f5,_0x464fbd,_0xa02c7e,_0x4808da,_0x4889c5,_0x4051e1,_0x302adf,_0x1a88bf,_0x2c435b,_0x2f5ed9,_0x14cd63){const _0x44993b=_0x2cf920;super(_0x3ec472,_0x10c94e,_0x5042e0,_0x3f74f5,_0x4808da,_0x1a88bf,_0x2c435b,_0x4051e1,_0x14cd63),this[_0x44993b(0x203)]=_0x464fbd,this[_0x44993b(0x346)]=_0xa02c7e,this[_0x44993b(0x39d)]=_0x4889c5,this['_logService']=_0x302adf,this['_transformService']=_0x2f5ed9,this['localCacheService']=_0x14cd63,_0x4fa34c(this,_0x44993b(0x374),'fetch_missing');}[_0x2cf920(0x29e)](_0x28a730){const _0x573047=_0x2cf920;try{if(this['_handleRemoteChangesets'](_0x28a730)[_0x573047(0x224)])throw Error(_0x573047(0x28f));if(this[_0x573047(0x2c5)]([...this[_0x573047(0x346)]][_0x573047(0x441)]((_0x95f33e,_0x1aa0f6)=>_0x95f33e[_0x573047(0x3f4)]-_0x1aa0f6[_0x573047(0x3f4)]))['missingChangesets'])return this[_0x573047(0x346)]=[],this[_0x573047(0x2ad)](),this[_0x573047(0x1c0)][_0x573047(0x1a3)]({'from':this[_0x573047(0x16f)](),'to':0x0}),this;let _0x18c143=this['_awaitingChangeset'],_0x3b6169=this['_pendingMutations'],_0x55c8ab;if(_0x18c143&&_0x3b6169[_0x573047(0x352)]!==0x0)_0x55c8ab=this[_0x573047(0x39d)]['createInstance'](_0x283e6d,this[_0x573047(0x45e)],this['type'],_0x18c143,_0x3b6169,this['_handler'],void 0x0);else{if(_0x18c143&&_0x3b6169['length']===0x0)_0x18c143['baseRev']=this[_0x573047(0x16f)](),_0x55c8ab=this[_0x573047(0x39d)][_0x573047(0x3ac)](_0xd730f4,this[_0x573047(0x45e)],this[_0x573047(0x369)],_0x18c143,this['_handler']);else{if(_0x3b6169[_0x573047(0x352)]!==0x0){let _0x40138d=this[_0x573047(0x39d)]['createInstance'](_0x14ace0,this[_0x573047(0x45e)],this[_0x573047(0x369)],_0x3b6169,this[_0x573047(0x1c0)]);_0x40138d[_0x573047(0x3c1)](),_0x55c8ab=_0x40138d;}else _0x55c8ab=this[_0x573047(0x39d)][_0x573047(0x3ac)](_0x53b4b6,this[_0x573047(0x45e)],this[_0x573047(0x369)],this[_0x573047(0x1c0)]);}}return _0x55c8ab[_0x573047(0x2ad)](),_0x55c8ab;}catch(_0x446210){return this[_0x573047(0x47d)][_0x573047(0x415)]('[FetchMissState]',_0x573047(0x1d5),_0x446210),this[_0x573047(0x39d)][_0x573047(0x3ac)](_0x413821,this[_0x573047(0x45e)],this[_0x573047(0x369)],this[_0x573047(0x3d7)],this[_0x573047(0x404)],this[_0x573047(0x1c0)],!0x1);}}[_0x2cf920(0x2c5)](_0x144b16){const _0x49c3a9=_0x2cf920;this[_0x49c3a9(0x2b1)]();for(let _0x2313ca=0x0;_0x2313ca<_0x144b16[_0x49c3a9(0x352)];_0x2313ca++){let _0x50cb08=_0x144b16[_0x2313ca],_0x400fca=this[_0x49c3a9(0x16f)]();if(!(_0x50cb08['revision']<=_0x400fca)){if(_0x50cb08[_0x49c3a9(0x3f4)]>_0x400fca+0x1)return{'missingChangesets':!0x0};if(this[_0x49c3a9(0x1ca)](_0x50cb08)){this[_0x49c3a9(0x394)]();continue;}this['_transformAndApplyRemoteChangeset'](_0x50cb08),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x2cf920(0x1bb)](_0x2c2175){const _0x55ff0b=_0x2cf920;let _0x24974e=_0x2c2175,_0x2e0bb0=this['_awaitingChangeset'];if(_0x2e0bb0){let _0x2fbfac=this[_0x55ff0b(0x27c)][_0x55ff0b(0x219)]([_0x2c2175],[_0x2e0bb0],!0x1);if(!(0x0,_0x2794c1[_0x55ff0b(0x245)])(_0x2fbfac))throw _0x2fbfac[_0x55ff0b(0x415)];_0x24974e=_0x2fbfac[_0x55ff0b(0x3ed)][0x0],_0x2e0bb0=_0x2fbfac[_0x55ff0b(0x183)][0x0];}let _0x2c79d1=this[_0x55ff0b(0x404)];if(_0x2c79d1[_0x55ff0b(0x352)]){let _0x57d9b8=this['_transformService'][_0x55ff0b(0x35d)](_0x24974e,_0x2c79d1);if(!(0x0,_0x2794c1['isTransformMutationsWithChangesetSuccess'])(_0x57d9b8))throw _0x57d9b8[_0x55ff0b(0x415)];_0x24974e=_0x57d9b8[_0x55ff0b(0x3ed)],_0x2c79d1=_0x57d9b8[_0x55ff0b(0x377)];}this[_0x55ff0b(0x209)](_0x24974e),_0x2e0bb0&&(_0x2e0bb0['baseRev']=this[_0x55ff0b(0x16f)]()),this[_0x55ff0b(0x3d7)]=_0x2e0bb0,this[_0x55ff0b(0x404)]=_0x2c79d1;}[_0x2cf920(0x2b1)](){const _0x4746d0=_0x2cf920;if(!this[_0x4746d0(0x3d7)]||this[_0x4746d0(0x203)]==null)return;let _0x17f1a7=this[_0x4746d0(0x16f)]();if(this['_acknowledgedAwaitingRevision']<=_0x17f1a7)throw Error(_0x4746d0(0x263)+this[_0x4746d0(0x203)]+'.');this[_0x4746d0(0x203)]===_0x17f1a7+0x1&&this[_0x4746d0(0x394)]();}[_0x2cf920(0x394)](){const _0x45edab=_0x2cf920;this[_0x45edab(0x31c)](),this[_0x45edab(0x3d7)]=null,this[_0x45edab(0x203)]=null;}[_0x2cf920(0x1ca)](_0x3e79d4){const _0x4f64dd=_0x2cf920;let _0x57af48=this[_0x4f64dd(0x3d7)];return!_0x57af48||!_0x57af48['sid']||_0x57af48[_0x4f64dd(0x147)]===null||_0x57af48[_0x4f64dd(0x147)]===void 0x0?!0x1:_0x3e79d4[_0x4f64dd(0x45e)]===_0x57af48['unitID']&&_0x3e79d4[_0x4f64dd(0x14e)]===_0x57af48[_0x4f64dd(0x14e)]&&_0x3e79d4['reqId']===_0x57af48[_0x4f64dd(0x147)];}[_0x2cf920(0x28c)](){const _0x37d2a2=_0x2cf920;throw Error(_0x37d2a2(0x449));}[_0x2cf920(0x419)](_0x177d78){const _0x119ad2=_0x2cf920;return this[_0x119ad2(0x404)]['push'](_0x177d78),this;}[_0x2cf920(0x41d)](_0x1fa1e4){const _0x33e64d=_0x2cf920;return this[_0x33e64d(0x346)][_0x33e64d(0x264)](_0x1fa1e4),this;}[_0x2cf920(0x2d0)](_0x54d2e1){const _0x3513f0=_0x2cf920;if(this[_0x3513f0(0x3d7)]){let _0x26d8af=this[_0x3513f0(0x16f)]();return _0x54d2e1['revision']<=_0x26d8af||(_0x26d8af+0x1===_0x54d2e1[_0x3513f0(0x3f4)]?(this['_incrementRevisionNumber'](),this[_0x3513f0(0x3d7)]=null,this['_acknowledgedAwaitingRevision']=null):this['_acknowledgedAwaitingRevision']=_0x54d2e1['revision']),this;}if(_0x54d2e1[_0x3513f0(0x3f4)]<=this[_0x3513f0(0x16f)]())return this;throw Error(_0x3513f0(0x3fd));}[_0x2cf920(0x2b4)](_0x4ac200){const _0x28ce58=_0x2cf920;return this[_0x28ce58(0x1ee)](!!(_0x4ac200!=null&&_0x4ac200['isPermissionRej']));}[_0x2cf920(0x20a)](){return this;}[_0x2cf920(0x327)](){const _0x1e5e73=_0x2cf920;return this[_0x1e5e73(0x39d)]['createInstance'](_0x430fb9,this[_0x1e5e73(0x45e)],this[_0x1e5e73(0x369)],this[_0x1e5e73(0x3d7)],this['_pendingMutations'],this['_handler']);}[_0x2cf920(0x155)](){return this;}[_0x2cf920(0x1ee)](_0x5d6cb9){const _0x350ed4=_0x2cf920;return this[_0x350ed4(0x39d)][_0x350ed4(0x3ac)](_0x413821,this[_0x350ed4(0x45e)],this[_0x350ed4(0x369)],this[_0x350ed4(0x3d7)],this[_0x350ed4(0x404)],this[_0x350ed4(0x1c0)],_0x5d6cb9);}};_0x3cb219=_0x30bef6([_0x177aa6(0x7,(0x0,_0x55970d['Inject'])(_0x55970d[_0x2cf920(0x371)])),_0x177aa6(0x8,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x2794c1[_0x2cf920(0x3dc)])),_0x177aa6(0x9,_0x55970d[_0x2cf920(0x259)]),_0x177aa6(0xa,_0x55970d[_0x2cf920(0x201)]),_0x177aa6(0xb,_0x55970d[_0x2cf920(0x37b)]),_0x177aa6(0xc,_0x2794c1[_0x2cf920(0x2ae)]),_0x177aa6(0xd,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0x2d50be))],_0x3cb219);function _0x276e79(_0x2e9744,_0x16f29b,_0x22a33a,_0x481091,_0x29b768,_0x5a716a){const _0xac8d0d=_0x2cf920;return _0x481091&&_0x29b768[_0xac8d0d(0x352)]?_0x2e9744[_0xac8d0d(0x3ac)](_0x283e6d,_0x16f29b,_0x22a33a,_0x481091,_0x29b768,_0x5a716a,void 0x0):_0x481091?_0x2e9744['createInstance'](_0xd730f4,_0x16f29b,_0x22a33a,_0x481091,_0x5a716a):_0x29b768[_0xac8d0d(0x352)]?_0x2e9744[_0xac8d0d(0x3ac)](_0x14ace0,_0x16f29b,_0x22a33a,_0x29b768,_0x5a716a):_0x2e9744[_0xac8d0d(0x3ac)](_0x53b4b6,_0x16f29b,_0x22a33a,_0x5a716a);}let _0x3f4890=class extends _0x55970d['RxDisposable']{get[_0x2cf920(0x43e)](){const _0x607553=_0x2cf920;return this[_0x607553(0x2ab)];}constructor(_0xe29253,_0x255ef3,_0x9f5f9,_0x3f120a,_0x5b1404,_0x13bce0,_0x4f5bdd,_0x3c4ba2,_0x1dc8f5,_0x3f1698,_0x16b3fe,_0x5472da,_0x24bf0c,_0xbfec4e){const _0x305d60=_0x2cf920;super(),this[_0x305d60(0x45e)]=_0xe29253,this[_0x305d60(0x396)]=_0x255ef3,this['_type']=_0x9f5f9,this[_0x305d60(0x39d)]=_0x3f120a,this[_0x305d60(0x2d7)]=_0x5b1404,this[_0x305d60(0x3b5)]=_0x13bce0,this[_0x305d60(0x230)]=_0x4f5bdd,this[_0x305d60(0x190)]=_0x3c4ba2,this['_univerInstanceService']=_0x1dc8f5,this[_0x305d60(0x47d)]=_0x3f1698,this[_0x305d60(0x344)]=_0x16b3fe,this['_permissionService']=_0x5472da,this[_0x305d60(0x475)]=_0x24bf0c,this[_0x305d60(0x216)]=_0xbfec4e,_0x4fa34c(this,_0x305d60(0x37c),new _0x2accac[(_0x305d60(0x45f))](null)),_0x4fa34c(this,_0x305d60(0x273),this[_0x305d60(0x37c)][_0x305d60(0x21a)]()),_0x4fa34c(this,_0x305d60(0x2ab),void 0x0),_0x4fa34c(this,_0x305d60(0x34f),!0x1),_0x4fa34c(this,_0x305d60(0x2a4),''),_0x4fa34c(this,_0x305d60(0x456),0x0),_0x4fa34c(this,_0x305d60(0x410),this['state$'][_0x305d60(0x21c)]((0x0,_0x2accac['map'])(_0x5ed81c=>_0x5ed81c?_0x5ed81c[_0x305d60(0x374)]:_0x305d60(0x1cb)),(0x0,_0x2accac[_0x305d60(0x3a7)])({'bufferSize':0x1,'refCount':!0x0}))),_0x4fa34c(this,_0x305d60(0x37f),!0x1),_0x4fa34c(this,_0x305d60(0x43a),[]);}async[_0x2cf920(0x1bf)](){const _0x4451e7=_0x2cf920;if(this[_0x4451e7(0x43e)])throw Error(_0x4451e7(0x1b3));await this[_0x4451e7(0x2bd)]();}['pauseCollaboration'](){const _0x3ef839=_0x2cf920;return this[_0x3ef839(0x34f)]=!0x0,(0x0,_0x55970d['toDisposable'])(()=>{const _0xe9e7=_0x3ef839;this[_0xe9e7(0x34f)]=!0x1,this[_0xe9e7(0x457)]();});}[_0x2cf920(0x3f6)](_0x5c25ac){this['_onLocalMutation'](_0x5c25ac);}[_0x2cf920(0x159)](_0x298c48){const _0x3e5c55=_0x2cf920;this[_0x3e5c55(0x2ab)]=_0x298c48,this[_0x3e5c55(0x37c)]['next'](_0x298c48);}async[_0x2cf920(0x2bd)](){const _0x164876=_0x2cf920;if(this[_0x164876(0x159)](await this['_createInitialState']()),this['_singleActiveUnitService']){var _0x2be1d8;(_0x2be1d8=this['_singleActiveUnitService'])==null||_0x2be1d8[_0x164876(0x150)](this[_0x164876(0x45e)]),this[_0x164876(0x439)](this[_0x164876(0x475)][_0x164876(0x1ea)](this[_0x164876(0x45e)])[_0x164876(0x32b)](_0x2327ac=>{const _0x564d97=_0x164876;this[_0x564d97(0x47d)][_0x564d97(0x284)](_0x564d97(0x315),'editing\x20status\x20changed\x20to',_0x2327ac),_0x2327ac===0x1?(this[_0x564d97(0x190)][_0x564d97(0x45c)]({'id':_0x564d97(0x2a7)}),this[_0x564d97(0x2cd)][_0x564d97(0x448)](new _0x6943[(_0x564d97(0x1fe))](this[_0x564d97(0x45e)])['id'],!0x1),this[_0x564d97(0x2cd)][_0x564d97(0x321)](!0x1)):(this[_0x564d97(0x2cd)][_0x564d97(0x448)](new _0x6943[(_0x564d97(0x1fe))](this['unitID'])['id'],!0x0),this[_0x564d97(0x2cd)][_0x564d97(0x321)](!0x0));}));}let _0x5b81d9=!0x1;return this[_0x164876(0x439)](this[_0x164876(0x396)][_0x164876(0x14a)]['subscribe'](_0x3b296c=>{const _0x5a44bf=_0x164876;_0x3b296c===0x3?this[_0x5a44bf(0x40b)](_0x5b81d9):_0x3b296c===0x2&&(_0x5b81d9=!0x0,this['_toggleOffline']());})),this[_0x164876(0x439)](this['session'][_0x164876(0x25f)][_0x164876(0x32b)](_0x183a2f=>{const _0x4897f4=_0x164876;try{switch(_0x183a2f[_0x4897f4(0x2af)]){case _0x2794c1['CollaborationEvent']['NEW_CHANGESETS']:this['_onRemoteChangeset']((0x0,_0x2794c1[_0x4897f4(0x156)])(_0x183a2f[_0x4897f4(0x238)]));break;case _0x2794c1[_0x4897f4(0x257)]['CHANGESET_ACK']:this['_onRemoteACK'](_0x183a2f[_0x4897f4(0x238)]);break;case _0x2794c1[_0x4897f4(0x257)][_0x4897f4(0x41e)]:this[_0x4897f4(0x242)]();break;case _0x2794c1[_0x4897f4(0x257)][_0x4897f4(0x338)]:this[_0x4897f4(0x178)](_0x183a2f[_0x4897f4(0x238)]);break;case _0x2794c1[_0x4897f4(0x257)][_0x4897f4(0x3a0)]:this[_0x4897f4(0x438)](_0x183a2f[_0x4897f4(0x238)][_0x4897f4(0x471)][_0x4897f4(0x420)](_0x19567c=>(0x0,_0x2794c1[_0x4897f4(0x156)])(_0x19567c)));break;case _0x2794c1[_0x4897f4(0x257)][_0x4897f4(0x3a2)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x2794c1[_0x4897f4(0x257)][_0x4897f4(0x27e)]:break;}}catch(_0x1ff585){throw console[_0x4897f4(0x415)](_0x4897f4(0x23e),_0x1ff585),_0x1ff585;}})),this['_state'];}[_0x2cf920(0x1a8)](){const _0x47a35b=_0x2cf920;this[_0x47a35b(0x37f)]=!0x1;}[_0x2cf920(0x466)](){const _0x11b4a8=_0x2cf920;if(this[_0x11b4a8(0x37f)])throw Error(_0x11b4a8(0x285));this['_transitionLocked']=!0x0;}[_0x2cf920(0x17e)](_0x5dfdb5){const _0x96bd01=_0x2cf920;this[_0x96bd01(0x466)](),this['_updateState'](this[_0x96bd01(0x2ab)]['appendMutation'](_0x5dfdb5)),this[_0x96bd01(0x1a8)]();}[_0x2cf920(0x2d2)](_0x13f44c){const _0x3d8c72=_0x2cf920;if(!(_0x13f44c[_0x3d8c72(0x3f4)]<=this[_0x3d8c72(0x230)][_0x3d8c72(0x18a)](this[_0x3d8c72(0x45e)]))){if(this[_0x3d8c72(0x34f)]){this['_remoteChangesetQueue']['push'](_0x13f44c);return;}this['_applyRemoteChangeset'](_0x13f44c);}}[_0x2cf920(0x457)](){const _0x1f10e7=_0x2cf920;this[_0x1f10e7(0x43a)]['forEach'](_0x2d482c=>this[_0x1f10e7(0x1cf)](_0x2d482c)),this[_0x1f10e7(0x43a)]=[];}['_applyRemoteChangeset'](_0x49250a){const _0x246afa=_0x2cf920;let _0x2af198=this[_0x246afa(0x2d7)][_0x246afa(0x196)][_0x246afa(0x246)](this['_compressMutationService'][_0x246afa(0x196)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x49250a['mutations'],null)||_0x49250a[_0x246afa(0x142)],_0x8a7c26={..._0x49250a,'mutations':_0x2af198};this[_0x246afa(0x466)](),this[_0x246afa(0x159)](this['_state'][_0x246afa(0x41d)](_0x8a7c26)),this[_0x246afa(0x1a8)]();}[_0x2cf920(0x24c)](_0x31f2db){const _0x210e08=_0x2cf920;this[_0x210e08(0x466)](),this['_updateState'](this[_0x210e08(0x2ab)][_0x210e08(0x2d0)](_0x31f2db)),this[_0x210e08(0x1a8)]();}[_0x2cf920(0x242)](_0x370e79){const _0x4bba65=_0x2cf920;this['_lockTransition'](),this['_updateState'](this[_0x4bba65(0x2ab)][_0x4bba65(0x2b4)](_0x370e79)),this[_0x4bba65(0x1a8)]();}['_onRemoteRetry'](_0x52834a){const _0x912cf1=_0x2cf920;this[_0x912cf1(0x466)](),this[_0x912cf1(0x159)](this['_state'][_0x912cf1(0x20a)](_0x52834a)),this[_0x912cf1(0x1a8)]();}[_0x2cf920(0x438)](_0x20997d){const _0x1b108f=_0x2cf920;if(!(this[_0x1b108f(0x2ab)]instanceof _0x3cb219))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x434a0b=_0x20997d[_0x1b108f(0x420)](_0x369532=>{const _0x38cbcc=_0x1b108f;let _0x1aa92b=this[_0x38cbcc(0x2d7)]['interceptor'][_0x38cbcc(0x246)](this[_0x38cbcc(0x2d7)]['interceptor'][_0x38cbcc(0x389)]()['COMPRESS_MUTATION_APPLY'])(_0x369532[_0x38cbcc(0x142)],null)||_0x369532[_0x38cbcc(0x142)];return{..._0x369532,'mutations':_0x1aa92b};});this[_0x1b108f(0x466)](),this['_updateState'](this['_state'][_0x1b108f(0x29e)](_0x434a0b)),this[_0x1b108f(0x1a8)]();}['_toggleOffline'](){const _0x1f0079=_0x2cf920;this['_lockTransition'](),this[_0x1f0079(0x159)](this[_0x1f0079(0x2ab)]['toggleOffline']()),this['_unlockTransition']();}[_0x2cf920(0x40b)](_0x1d72c1=!0x1){const _0xf41751=_0x2cf920;this[_0xf41751(0x466)](),this['_updateState'](this[_0xf41751(0x2ab)]['toggleOnline']()),this[_0xf41751(0x1a8)]();let _0x2a9e1a=this['_state'];_0x1d72c1&&_0x2a9e1a instanceof _0x53b4b6&&(this[_0xf41751(0x466)](),this[_0xf41751(0x159)](_0x2a9e1a[_0xf41751(0x342)]()),this[_0xf41751(0x1a8)]());}async[_0x2cf920(0x253)](){return new Promise(_0x39ab45=>{const _0x646780=_0x38ab;this['session']['sessionStatus$'][_0x646780(0x21c)]((0x0,_0x2accac[_0x646780(0x488)])(0x1))[_0x646780(0x32b)](async _0x2fc161=>{_0x39ab45(await this['_createInitialStateImpl'](_0x2fc161===0x3));});});}['_createHandler'](){const _0x3fc927=_0x2cf920;let _0x5b9624=this[_0x3fc927(0x45e)];return{'onStateChange':(_0x286e1b,_0x53b5c3)=>{const _0x1846c1=_0x3fc927;if(_0x286e1b!==this[_0x1846c1(0x2ab)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x286e1b[_0x1846c1(0x374)]+_0x1846c1(0x236)+_0x53b5c3[_0x1846c1(0x374)]+_0x1846c1(0x164)+this[_0x1846c1(0x2ab)]['status']);this[_0x1846c1(0x159)](_0x53b5c3);},'onSendChangeset':_0x3a1ea2=>{const _0x1cc932=_0x3fc927;_0x3a1ea2['sid']||(_0x3a1ea2[_0x1cc932(0x14e)]=this[_0x1cc932(0x2a4)],_0x3a1ea2[_0x1cc932(0x147)]=++this['_changesetReqId']);let _0x42b141={'eventID':_0x2794c1['CollaborationEvent'][_0x1cc932(0x306)],'data':{'unitID':_0x3a1ea2[_0x1cc932(0x45e)],'unitType':this[_0x1cc932(0x47b)],'changeset':_0x3a1ea2,'memberID':this[_0x1cc932(0x396)][_0x1cc932(0x185)]()}};this[_0x1cc932(0x396)][_0x1cc932(0x1b2)](_0x42b141,this[_0x1cc932(0x45e)]);},'onMissingChangesets':({from:_0x52de78,to:_0x2bbbc9})=>{const _0x1cda97=_0x3fc927;this[_0x1cda97(0x47d)][_0x1cda97(0x284)](_0x1cda97(0x315),_0x1cda97(0x26a)+_0x52de78+'\x20to\x20'+_0x2bbbc9);let _0xfe5d0d={'eventID':_0x2794c1[_0x1cda97(0x257)][_0x1cda97(0x1fb)],'data':{'unitID':_0x5b9624,'unitType':this[_0x1cda97(0x47b)],'from':_0x52de78,'to':_0x2bbbc9}};this[_0x1cda97(0x396)]['send'](_0xfe5d0d,this['unitID']);}};}async['_createInitialStateImpl'](_0x11bc9e){const _0x43bacd=_0x2cf920;var _0x2d6958;let _0x505771=await((_0x2d6958=this['_localCacheService'])==null?void 0x0:_0x2d6958[_0x43bacd(0x30a)](this[_0x43bacd(0x45e)])),_0x3543bb=(_0x505771==null?void 0x0:_0x505771['mutations'])??[],_0xc69250=(_0x505771==null?void 0x0:_0x505771[_0x43bacd(0x1b8)])??null,_0x16a9c3=!!(_0xc69250!=null&&_0xc69250[_0x43bacd(0x14e)])&&!!(_0xc69250!=null&&_0xc69250[_0x43bacd(0x147)]);this[_0x43bacd(0x2a4)]=_0x16a9c3?_0xc69250[_0x43bacd(0x14e)]:(0x0,_0x2794c1[_0x43bacd(0x26c)])(),this[_0x43bacd(0x456)]=_0x16a9c3?_0xc69250[_0x43bacd(0x147)]:0x0;let _0x74f2c9=this[_0x43bacd(0x45e)];try{this[_0x43bacd(0x3a5)](_0xc69250,_0x3543bb);}catch(_0x1e25d1){this[_0x43bacd(0x47d)]['error'](_0x1e25d1);}let _0xd14658=this[_0x43bacd(0x48f)]();if(_0x11bc9e){let _0x525dbc=_0x276e79(this[_0x43bacd(0x39d)],_0x74f2c9,this[_0x43bacd(0x47b)],_0xc69250,_0x3543bb,_0xd14658);return _0x525dbc instanceof _0x14ace0?_0x525dbc[_0x43bacd(0x3c1)]():(_0x525dbc instanceof _0x283e6d||_0x525dbc instanceof _0xd730f4)&&_0x525dbc[_0x43bacd(0x28c)](),_0x525dbc;}return this[_0x43bacd(0x39d)][_0x43bacd(0x3ac)](_0x430fb9,_0x74f2c9,this[_0x43bacd(0x47b)],_0xc69250,_0x3543bb,_0xd14658);}[_0x2cf920(0x3a5)](_0x46b843,_0x3016c7){const _0xaf4d7f=_0x2cf920;var _0x39bdf5,_0xdf5711;let _0x3d75c4=this[_0xaf4d7f(0x2d7)][_0xaf4d7f(0x196)][_0xaf4d7f(0x246)](this[_0xaf4d7f(0x2d7)][_0xaf4d7f(0x196)][_0xaf4d7f(0x389)]()[_0xaf4d7f(0x173)]);(_0x39bdf5=_0x3d75c4((_0x46b843==null?void 0x0:_0x46b843[_0xaf4d7f(0x142)])||[],null))==null||_0x39bdf5['forEach'](_0xfe34=>this[_0xaf4d7f(0x344)]['executeCommand'](_0xfe34['id'],_0xfe34['params'])),(_0xdf5711=_0x3d75c4(_0x3016c7||[],null))==null||_0xdf5711[_0xaf4d7f(0x434)](_0x54a348=>this[_0xaf4d7f(0x344)][_0xaf4d7f(0x160)](_0x54a348['id'],_0x54a348[_0xaf4d7f(0x43b)]));}};_0x3f4890=_0x30bef6([_0x177aa6(0x3,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d[_0x2cf920(0x371)])),_0x177aa6(0x4,(0x0,_0x55970d['Inject'])(_0x2794c1[_0x2cf920(0x24e)])),_0x177aa6(0x5,(0x0,_0x55970d['Inject'])(_0x55970d['LocaleService'])),_0x177aa6(0x6,(0x0,_0x55970d['Inject'])(_0x2794c1[_0x2cf920(0x3dc)])),_0x177aa6(0x7,(0x0,_0x55970d['Inject'])(_0x34126c)),_0x177aa6(0x8,_0x55970d[_0x2cf920(0x2d6)]),_0x177aa6(0x9,_0x55970d[_0x2cf920(0x259)]),_0x177aa6(0xa,_0x55970d['ICommandService']),_0x177aa6(0xb,_0x55970d[_0x2cf920(0x3c4)]),_0x177aa6(0xc,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0xf5879a)),_0x177aa6(0xd,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0x2d50be))],_0x3f4890);let _0x5bdd78=class extends _0x3f4890{constructor(_0x19e7d9,_0x228cf3,_0x4b7658,_0x16515a,_0x3dacdf,_0x30771f,_0xe9d3c1,_0x29b448,_0x566560,_0x2a9a91,_0x36728d,_0x37b413,_0x539954,_0x3a5e1c,_0x41fc04){const _0x49c814=_0x2cf920;super(_0x19e7d9,_0x4b7658,_0x228cf3,_0x16515a,_0x3dacdf,_0x30771f,_0xe9d3c1,_0x29b448,_0x566560,_0x2a9a91,_0x36728d,_0x37b413,_0x3a5e1c,_0x41fc04),this[_0x49c814(0x45e)]=_0x19e7d9,this[_0x49c814(0x369)]=_0x228cf3,this['_docStateChangeManagerService']=_0x539954,_0x4fa34c(this,'_handlerCallback',null);}[_0x2cf920(0x3cb)](_0x18a844){const _0x523730=_0x2cf920;this[_0x523730(0x19a)]=_0x18a844;}['dispose'](){const _0x5bead3=_0x2cf920;this[_0x5bead3(0x19a)]=null,super[_0x5bead3(0x202)]();}[_0x2cf920(0x48f)](){const _0x36b0cc=_0x2cf920;let _0x28af47=super[_0x36b0cc(0x48f)]();return _0x28af47['onTransformIME']=_0x398b7c=>{const _0x198ed8=_0x36b0cc;var _0x1503e1,_0x28754f;return(_0x1503e1=this[_0x198ed8(0x19a)])==null||(_0x28754f=_0x1503e1[_0x198ed8(0x3a6)])==null?void 0x0:_0x28754f['call'](_0x1503e1,_0x398b7c);},_0x28af47[_0x36b0cc(0x244)]=_0xd8211b=>{const _0x39159=_0x36b0cc;var _0x2ad0d4,_0x28b0f6;return(_0x2ad0d4=this['_handlerCallback'])==null||(_0x28b0f6=_0x2ad0d4[_0x39159(0x244)])==null?void 0x0:_0x28b0f6['call'](_0x2ad0d4,_0xd8211b);},_0x28af47[_0x36b0cc(0x442)]=_0x467f3c=>{const _0x5d7c50=_0x36b0cc;var _0x6a4b6b,_0x696bd7;return(_0x6a4b6b=this[_0x5d7c50(0x19a)])==null||(_0x696bd7=_0x6a4b6b[_0x5d7c50(0x442)])==null?void 0x0:_0x696bd7['call'](_0x6a4b6b,_0x467f3c);},_0x28af47[_0x36b0cc(0x3fa)]=_0xd59ff6=>{const _0x581cd4=_0x36b0cc;var _0x536ad8,_0xd10b02;return(_0x536ad8=this['_handlerCallback'])==null||(_0xd10b02=_0x536ad8[_0x581cd4(0x3fa)])==null?void 0x0:_0xd10b02[_0x581cd4(0x1fd)](_0x536ad8,_0xd59ff6);},_0x28af47[_0x36b0cc(0x3f0)]=_0x2ec2f2=>{const _0x5d457a=_0x36b0cc;var _0x2770ad,_0xf80b91;return((_0x2770ad=this[_0x5d457a(0x19a)])==null||(_0xf80b91=_0x2770ad['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0xf80b91[_0x5d457a(0x1fd)](_0x2770ad,_0x2ec2f2))??_0x2ec2f2;},_0x28af47[_0x36b0cc(0x393)]=_0x230a70=>{const _0x36420b=_0x36b0cc;var _0x3fd56b,_0x4cec67;return((_0x3fd56b=this[_0x36420b(0x19a)])==null||(_0x4cec67=_0x3fd56b[_0x36420b(0x393)])==null?void 0x0:_0x4cec67[_0x36420b(0x1fd)](_0x3fd56b,_0x230a70))??_0x230a70;},_0x28af47;}async['_init'](){const _0x48bd9e=_0x2cf920;let _0x5a7f28=await super[_0x48bd9e(0x2bd)]();return this[_0x48bd9e(0x439)](this[_0x48bd9e(0x324)][_0x48bd9e(0x1c4)][_0x48bd9e(0x32b)](_0x2de7af=>{const _0x2573b0=_0x48bd9e;if(_0x2de7af==null||_0x2de7af[_0x2573b0(0x38e)]!==this[_0x2573b0(0x45e)])return;let {commandId:_0x206be0,redoState:_0x2a23da,unitId:_0x592a32}=_0x2de7af,_0x546ab2={'id':_0x206be0,'type':_0x55970d[_0x2573b0(0x392)][_0x2573b0(0x175)],'params':{'unitId':_0x592a32,'actions':_0x2a23da[_0x2573b0(0x3cd)],'textRanges':null}};this['_onLocalMutation'](_0x546ab2);})),this['disposeWithMe'](this[_0x48bd9e(0x344)][_0x48bd9e(0x251)]((_0x50604a,_0x2612da)=>{const _0x498d95=_0x48bd9e;if(_0x50604a[_0x498d95(0x369)]!==_0x55970d[_0x498d95(0x392)][_0x498d95(0x175)]||_0x2612da!=null&&_0x2612da[_0x498d95(0x2d3)]||_0x2612da!=null&&_0x2612da[_0x498d95(0x1d1)]||_0x50604a['id']===_0x18c6ee[_0x498d95(0x200)]['id'])return;let _0x5babce=_0x50604a['params'];if((_0x5babce==null?void 0x0:_0x5babce[_0x498d95(0x38e)])!==this[_0x498d95(0x45e)])return;let _0x29fe67=_0x50604a,_0x56a424=this[_0x498d95(0x2d7)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService'][_0x498d95(0x196)]['getInterceptPoints']()[_0x498d95(0x1c2)])([_0x29fe67],this['_univerInstanceService'])||[_0x29fe67];this[_0x498d95(0x17e)](_0x56a424[0x0]);})),_0x5a7f28;}};_0x5bdd78=_0x30bef6([_0x177aa6(0x3,(0x0,_0x55970d['Inject'])(_0x55970d[_0x2cf920(0x371)])),_0x177aa6(0x4,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x2794c1[_0x2cf920(0x24e)])),_0x177aa6(0x5,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d[_0x2cf920(0x2ac)])),_0x177aa6(0x6,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x2794c1[_0x2cf920(0x3dc)])),_0x177aa6(0x7,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x34126c)),_0x177aa6(0x8,_0x55970d[_0x2cf920(0x2d6)]),_0x177aa6(0x9,_0x55970d['ILogService']),_0x177aa6(0xa,_0x55970d[_0x2cf920(0x201)]),_0x177aa6(0xb,_0x55970d[_0x2cf920(0x3c4)]),_0x177aa6(0xc,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x18c6ee['DocStateChangeManagerService'])),_0x177aa6(0xd,(0x0,_0x55970d['Optional'])(_0xf5879a)),_0x177aa6(0xe,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0x2d50be))],_0x5bdd78);let _0x5084fa=class extends _0x3f4890{constructor(_0x31a3bf,_0x5879e4,_0x3c2580,_0x2f2784,_0x122164,_0x8850c5,_0x5430c4,_0x554ca6,_0x3f45c6,_0x1956c9,_0x4f6ea6,_0xdb6aae,_0x413415,_0x4cdcd4){const _0x1bd730=_0x2cf920;super(_0x31a3bf,_0x3c2580,_0x5879e4,_0x2f2784,_0x122164,_0x8850c5,_0x5430c4,_0x554ca6,_0x3f45c6,_0x1956c9,_0x4f6ea6,_0xdb6aae,_0x413415,_0x4cdcd4),this[_0x1bd730(0x45e)]=_0x31a3bf,this[_0x1bd730(0x369)]=_0x5879e4;}async[_0x2cf920(0x2bd)](){const _0x529174=_0x2cf920;let _0x38a4fc=await super[_0x529174(0x2bd)]();return this[_0x529174(0x439)](this[_0x529174(0x344)][_0x529174(0x251)]((_0x1b5191,_0x4b889b)=>{const _0x55adbf=_0x529174;if(_0x1b5191[_0x55adbf(0x369)]!==_0x55970d[_0x55adbf(0x392)][_0x55adbf(0x175)]||_0x4b889b!=null&&_0x4b889b[_0x55adbf(0x2d3)]||_0x4b889b!=null&&_0x4b889b[_0x55adbf(0x1d1)])return;let _0x5762e7=_0x1b5191[_0x55adbf(0x43b)];if((_0x5762e7==null?void 0x0:_0x5762e7[_0x55adbf(0x38e)])!==this[_0x55adbf(0x45e)])return;let _0x4da812=_0x1b5191,_0x16e3d1=this[_0x55adbf(0x2d7)]['interceptor'][_0x55adbf(0x246)](this[_0x55adbf(0x2d7)][_0x55adbf(0x196)][_0x55adbf(0x389)]()[_0x55adbf(0x1c2)])([_0x4da812],this[_0x55adbf(0x48e)])||[_0x4da812];this[_0x55adbf(0x17e)](_0x16e3d1[0x0]);})),_0x38a4fc;}};_0x5084fa=_0x30bef6([_0x177aa6(0x3,(0x0,_0x55970d['Inject'])(_0x55970d['Injector'])),_0x177aa6(0x4,(0x0,_0x55970d['Inject'])(_0x2794c1[_0x2cf920(0x24e)])),_0x177aa6(0x5,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d[_0x2cf920(0x2ac)])),_0x177aa6(0x6,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x2794c1[_0x2cf920(0x3dc)])),_0x177aa6(0x7,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x34126c)),_0x177aa6(0x8,_0x55970d[_0x2cf920(0x2d6)]),_0x177aa6(0x9,_0x55970d[_0x2cf920(0x259)]),_0x177aa6(0xa,_0x55970d['ICommandService']),_0x177aa6(0xb,_0x55970d['IPermissionService']),_0x177aa6(0xc,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0xf5879a)),_0x177aa6(0xd,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0x2d50be))],_0x5084fa);let _0x368bb9=class extends _0x3f4890{constructor(_0x5a485e,_0x566ba1,_0x54384e,_0x3852b3,_0x55674a,_0x6e1275,_0x5abab5,_0x34b67f,_0x477927,_0x26bdbf,_0x13381f,_0x5d3a01,_0x4add83,_0x2fce3d,_0x263176){const _0x160402=_0x2cf920;super(_0x5a485e,_0x54384e,_0x566ba1,_0x3852b3,_0x55674a,_0x6e1275,_0x5abab5,_0x477927,_0x26bdbf,_0x13381f,_0x5d3a01,_0x4add83,_0x2fce3d,_0x263176),this[_0x160402(0x45e)]=_0x5a485e,this[_0x160402(0x369)]=_0x566ba1,this[_0x160402(0x18c)]=_0x34b67f;}['_createHandler'](){const _0x2fcae3=_0x2cf920;let _0x19e3d5=super[_0x2fcae3(0x48f)]();return _0x19e3d5[_0x2fcae3(0x442)]=_0x40df16=>this[_0x2fcae3(0x18c)][_0x2fcae3(0x36c)](_0x40df16),_0x19e3d5;}async[_0x2cf920(0x2bd)](){const _0x1c0331=_0x2cf920;let _0x3ef719=await super['_init']();return this[_0x1c0331(0x439)](this['_commandService']['onMutationExecutedForCollab']((_0x8aaf62,_0x36ef17)=>{const _0x456c43=_0x1c0331;if(_0x8aaf62[_0x456c43(0x369)]!==_0x55970d[_0x456c43(0x392)][_0x456c43(0x175)]||_0x36ef17!=null&&_0x36ef17['fromCollab']||_0x36ef17!=null&&_0x36ef17[_0x456c43(0x1d1)])return;let _0x2de36f=_0x8aaf62[_0x456c43(0x43b)];if((_0x2de36f==null?void 0x0:_0x2de36f[_0x456c43(0x38e)])!==this[_0x456c43(0x45e)])return;let _0x41e609=_0x8aaf62,_0x1cbad0=this[_0x456c43(0x2d7)]['interceptor'][_0x456c43(0x246)](this[_0x456c43(0x2d7)][_0x456c43(0x196)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x41e609],this[_0x456c43(0x48e)])||[_0x41e609];this[_0x456c43(0x17e)](_0x1cbad0[0x0]);})),_0x3ef719;}};_0x368bb9=_0x30bef6([_0x177aa6(0x3,(0x0,_0x55970d['Inject'])(_0x55970d[_0x2cf920(0x371)])),_0x177aa6(0x4,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x2794c1['CompressMutationService'])),_0x177aa6(0x5,(0x0,_0x55970d['Inject'])(_0x55970d[_0x2cf920(0x2ac)])),_0x177aa6(0x6,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x2794c1['RevisionService'])),_0x177aa6(0x7,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x1b9d17)),_0x177aa6(0x8,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x34126c)),_0x177aa6(0x9,_0x55970d[_0x2cf920(0x2d6)]),_0x177aa6(0xa,_0x55970d[_0x2cf920(0x259)]),_0x177aa6(0xb,_0x55970d[_0x2cf920(0x201)]),_0x177aa6(0xc,_0x55970d[_0x2cf920(0x3c4)]),_0x177aa6(0xd,(0x0,_0x55970d['Optional'])(_0xf5879a)),_0x177aa6(0xe,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0x2d50be))],_0x368bb9);let _0x5f335b=class extends _0x3f4890{constructor(_0x20f9b4,_0x3e36ce,_0x8f143c,_0x5bb36f,_0x35aecf,_0x390881,_0x14b258,_0x2242f9,_0x5511e3,_0x42269e,_0x480d1d,_0x1e72ea,_0x45e2ae,_0x20cd2e){const _0x5892dd=_0x2cf920;super(_0x20f9b4,_0x8f143c,_0x3e36ce,_0x5bb36f,_0x35aecf,_0x390881,_0x14b258,_0x2242f9,_0x5511e3,_0x42269e,_0x480d1d,_0x1e72ea,_0x45e2ae,_0x20cd2e),this['unitID']=_0x20f9b4,this[_0x5892dd(0x369)]=_0x3e36ce;}async[_0x2cf920(0x2bd)](){const _0x3e5c49=_0x2cf920;let _0x5ae8e1=await super['_init']();return this[_0x3e5c49(0x439)](this[_0x3e5c49(0x344)][_0x3e5c49(0x251)]((_0x260829,_0x3807be)=>{const _0x5cd05e=_0x3e5c49;if(_0x260829['type']!==_0x55970d['CommandType'][_0x5cd05e(0x175)]||_0x3807be!=null&&_0x3807be[_0x5cd05e(0x2d3)]||_0x3807be!=null&&_0x3807be[_0x5cd05e(0x1d1)])return;let _0x43e438=_0x260829[_0x5cd05e(0x43b)];if((_0x43e438==null?void 0x0:_0x43e438[_0x5cd05e(0x38e)])!==this[_0x5cd05e(0x45e)])return;let _0x3c1eeb=_0x260829,_0x1c5900=this[_0x5cd05e(0x2d7)]['interceptor']['fetchThroughInterceptors'](this[_0x5cd05e(0x2d7)][_0x5cd05e(0x196)][_0x5cd05e(0x389)]()['COMPRESS_MUTATION_SEND'])([_0x3c1eeb],this[_0x5cd05e(0x48e)])||[_0x3c1eeb];this[_0x5cd05e(0x17e)](_0x1c5900[0x0]);})),_0x5ae8e1;}};_0x5f335b=_0x30bef6([_0x177aa6(0x3,(0x0,_0x55970d['Inject'])(_0x55970d[_0x2cf920(0x371)])),_0x177aa6(0x4,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x2794c1[_0x2cf920(0x24e)])),_0x177aa6(0x5,(0x0,_0x55970d['Inject'])(_0x55970d[_0x2cf920(0x2ac)])),_0x177aa6(0x6,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x2794c1[_0x2cf920(0x3dc)])),_0x177aa6(0x7,(0x0,_0x55970d['Inject'])(_0x34126c)),_0x177aa6(0x8,_0x55970d[_0x2cf920(0x2d6)]),_0x177aa6(0x9,_0x55970d[_0x2cf920(0x259)]),_0x177aa6(0xa,_0x55970d[_0x2cf920(0x201)]),_0x177aa6(0xb,_0x55970d[_0x2cf920(0x3c4)]),_0x177aa6(0xc,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0xf5879a)),_0x177aa6(0xd,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0x2d50be))],_0x5f335b);let _0x4ce479=class extends _0x3f4890{constructor(_0x452205,_0x4ed9e9,_0x26e683,_0x2e568c,_0x1fe393,_0x20ab3a,_0x4f84a4,_0x33ef4f,_0x1dcb37,_0x10d4ac,_0x17f042,_0x1db827,_0x238a20,_0xefcd94){const _0x38a602=_0x2cf920;super(_0x452205,_0x26e683,_0x4ed9e9,_0x2e568c,_0x1fe393,_0x20ab3a,_0x4f84a4,_0x33ef4f,_0x1dcb37,_0x10d4ac,_0x17f042,_0x1db827,_0x238a20,_0xefcd94),this['unitID']=_0x452205,this[_0x38a602(0x369)]=_0x4ed9e9;}async[_0x2cf920(0x2bd)](){const _0x1dcd50=_0x2cf920;let _0x129385=await super[_0x1dcd50(0x2bd)]();return this[_0x1dcd50(0x439)](this[_0x1dcd50(0x344)][_0x1dcd50(0x251)]((_0x4dacd3,_0x4b6a1f)=>{const _0x39eeaa=_0x1dcd50;if(_0x4dacd3[_0x39eeaa(0x369)]!==_0x55970d['CommandType'][_0x39eeaa(0x175)]||_0x4b6a1f!=null&&_0x4b6a1f[_0x39eeaa(0x2d3)]||_0x4b6a1f!=null&&_0x4b6a1f['onlyLocal'])return;let _0x15ebe7=_0x4dacd3[_0x39eeaa(0x43b)];if((_0x15ebe7==null?void 0x0:_0x15ebe7[_0x39eeaa(0x38e)])!==this[_0x39eeaa(0x45e)])return;let _0x23eb5a=_0x4dacd3,_0x4515ab=this[_0x39eeaa(0x2d7)][_0x39eeaa(0x196)][_0x39eeaa(0x246)](this['_compressMutationService'][_0x39eeaa(0x196)][_0x39eeaa(0x389)]()[_0x39eeaa(0x1c2)])([_0x23eb5a],this[_0x39eeaa(0x48e)])||[_0x23eb5a];this[_0x39eeaa(0x17e)](_0x4515ab[0x0]);})),_0x129385;}};_0x4ce479=_0x30bef6([_0x177aa6(0x3,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d[_0x2cf920(0x371)])),_0x177aa6(0x4,(0x0,_0x55970d['Inject'])(_0x2794c1['CompressMutationService'])),_0x177aa6(0x5,(0x0,_0x55970d['Inject'])(_0x55970d[_0x2cf920(0x2ac)])),_0x177aa6(0x6,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x2794c1[_0x2cf920(0x3dc)])),_0x177aa6(0x7,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x34126c)),_0x177aa6(0x8,_0x55970d[_0x2cf920(0x2d6)]),_0x177aa6(0x9,_0x55970d['ILogService']),_0x177aa6(0xa,_0x55970d[_0x2cf920(0x201)]),_0x177aa6(0xb,_0x55970d[_0x2cf920(0x3c4)]),_0x177aa6(0xc,(0x0,_0x55970d['Optional'])(_0xf5879a)),_0x177aa6(0xd,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0x2d50be))],_0x4ce479);let _0x38b833=class extends _0x3f4890{constructor(_0x4b2e96,_0x5a380c,_0x37920f,_0x2ceb8d,_0x56ee33,_0x464126,_0x330b19,_0x15a50c,_0x42eb62,_0x4135f9,_0x3c1ff,_0xd53245,_0x3dd2ac,_0x32de3c){super(_0x4b2e96,_0x37920f,_0x5a380c,_0x2ceb8d,_0x56ee33,_0x464126,_0x330b19,_0x15a50c,_0x42eb62,_0x4135f9,_0x3c1ff,_0xd53245,_0x3dd2ac,_0x32de3c),this['unitID']=_0x4b2e96,this['type']=_0x5a380c;}async[_0x2cf920(0x2bd)](){const _0x367da5=_0x2cf920;let _0x3d4394=await super[_0x367da5(0x2bd)]();return this[_0x367da5(0x439)](this[_0x367da5(0x344)][_0x367da5(0x251)]((_0x3a27ec,_0x3dd7f2)=>{const _0x5d6213=_0x367da5;if(_0x3a27ec[_0x5d6213(0x369)]!==_0x55970d[_0x5d6213(0x392)][_0x5d6213(0x175)]||_0x3dd7f2!=null&&_0x3dd7f2[_0x5d6213(0x2d3)]||_0x3dd7f2!=null&&_0x3dd7f2['onlyLocal'])return;let _0x103e37=_0x3a27ec['params'];if((_0x103e37==null?void 0x0:_0x103e37['unitId'])!==this[_0x5d6213(0x45e)])return;let _0x1060f9=_0x3a27ec,_0x1ddef1=this[_0x5d6213(0x2d7)][_0x5d6213(0x196)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x5d6213(0x196)][_0x5d6213(0x389)]()['COMPRESS_MUTATION_SEND'])([_0x1060f9],this[_0x5d6213(0x48e)])||[_0x1060f9];this[_0x5d6213(0x17e)](_0x1ddef1[0x0]);})),_0x3d4394;}};_0x38b833=_0x30bef6([_0x177aa6(0x3,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d['Injector'])),_0x177aa6(0x4,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x2794c1['CompressMutationService'])),_0x177aa6(0x5,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d[_0x2cf920(0x2ac)])),_0x177aa6(0x6,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x2794c1[_0x2cf920(0x3dc)])),_0x177aa6(0x7,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x34126c)),_0x177aa6(0x8,_0x55970d[_0x2cf920(0x2d6)]),_0x177aa6(0x9,_0x55970d[_0x2cf920(0x259)]),_0x177aa6(0xa,_0x55970d[_0x2cf920(0x201)]),_0x177aa6(0xb,_0x55970d[_0x2cf920(0x3c4)]),_0x177aa6(0xc,(0x0,_0x55970d['Optional'])(_0xf5879a)),_0x177aa6(0xd,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0x2d50be))],_0x38b833);let _0x30c179=(0x0,_0x55970d[_0x2cf920(0x2a1)])('univer-pro.collaboration-client.network-condition.service');function _0x21c6e9(_0x2cbc15){const _0x34988a=_0x2cf920;let _0x3de7b7=_0x2cbc15[_0x34988a(0x238)],_0xaaeb06=JSON[_0x34988a(0x18b)](_0x3de7b7);switch(_0xaaeb06[_0x34988a(0x2f5)]){case _0xe7331e[_0x34988a(0x193)][_0x34988a(0x36e)]:case _0xe7331e[_0x34988a(0x193)][_0x34988a(0x2fe)]:{let _0x4ef8a1=_0xaaeb06[_0x34988a(0x208)];return{..._0xaaeb06,'data':_0x4ef8a1,'cmd':_0xaaeb06[_0x34988a(0x2f5)]};}case _0xe7331e['CombCmd'][_0x34988a(0x48c)]:{let _0x1e93b4=_0xaaeb06[_0x34988a(0x46b)];return{..._0xaaeb06,'data':_0x1e93b4,'cmd':_0xaaeb06[_0x34988a(0x2f5)]};}case _0xe7331e[_0x34988a(0x193)][_0x34988a(0x2ed)]:{let _0x1815f2=_0xaaeb06['collaMsg'];switch(_0x1815f2['eventID']){case _0x2794c1[_0x34988a(0x257)][_0x34988a(0x3a2)]:var _0x20ac51;return{..._0xaaeb06,'data':{..._0x1815f2,'data':(_0x20ac51=_0x1815f2[_0x34988a(0x383)])==null?void 0x0:_0x20ac51['cs']},'cmd':_0xaaeb06[_0x34988a(0x2f5)]};case _0x2794c1[_0x34988a(0x257)][_0x34988a(0x423)]:var _0x4c03b3;return{..._0xaaeb06,'data':{..._0x1815f2,'data':(_0x4c03b3=_0x1815f2[_0x34988a(0x2f8)])==null?void 0x0:_0x4c03b3['cs']},'cmd':_0xaaeb06[_0x34988a(0x2f5)]};case _0x2794c1['CollaborationEvent']['NEW_CHANGESETS']:var _0xfb4477;return{..._0xaaeb06,'data':{..._0x1815f2,'data':(_0xfb4477=_0x1815f2[_0x34988a(0x22d)])==null?void 0x0:_0xfb4477['cs']},'cmd':_0xaaeb06[_0x34988a(0x2f5)]};case _0x2794c1[_0x34988a(0x257)]['CHANGESET_REJ']:var _0x5ac8d2;return{..._0xaaeb06,'data':{..._0x1815f2,'data':(_0x5ac8d2=_0x1815f2['csRejEvent'])==null?void 0x0:_0x5ac8d2['cs']},'cmd':_0xaaeb06[_0x34988a(0x2f5)]};case _0x2794c1['CollaborationEvent'][_0x34988a(0x338)]:var _0x90f102;return{..._0xaaeb06,'data':{..._0x1815f2,'data':(_0x90f102=_0x1815f2[_0x34988a(0x16b)])==null?void 0x0:_0x90f102['cs']},'cmd':_0xaaeb06[_0x34988a(0x2f5)]};case _0x2794c1[_0x34988a(0x257)]['UPDATE_CURSOR']:return{..._0xaaeb06,'data':{..._0x1815f2,'data':_0x1815f2[_0x34988a(0x398)]},'cmd':_0xaaeb06[_0x34988a(0x2f5)]};case _0x2794c1['CollaborationEvent']['USERS_ENTER']:return{..._0xaaeb06,'data':{..._0x1815f2,'data':_0x1815f2['joinEvent']},'cmd':_0xaaeb06['cmd']};case _0x2794c1[_0x34988a(0x257)][_0x34988a(0x48b)]:return{..._0xaaeb06,'data':{..._0x1815f2,'data':_0x1815f2[_0x34988a(0x3cf)]},'cmd':_0xaaeb06[_0x34988a(0x2f5)]};case _0x2794c1[_0x34988a(0x257)]['LIVESHARE_NEW_HOST']:return{..._0xaaeb06,'data':{..._0x1815f2,'data':_0x1815f2[_0x34988a(0x266)]},'cmd':_0xaaeb06[_0x34988a(0x2f5)]};case _0x2794c1[_0x34988a(0x257)][_0x34988a(0x2f2)]:case _0x2794c1['CollaborationEvent'][_0x34988a(0x3dd)]:return{..._0xaaeb06,'data':{..._0x1815f2,'data':_0x1815f2['liveShareOperation']},'cmd':_0xaaeb06['cmd']};case _0x2794c1['CollaborationEvent'][_0x34988a(0x1ed)]:return{..._0xaaeb06,'data':{..._0x1815f2,'data':_0x1815f2[_0x34988a(0x266)]},'cmd':_0xaaeb06['cmd']};case _0x2794c1[_0x34988a(0x257)][_0x34988a(0x313)]:return{..._0xaaeb06,'data':_0x1815f2,'cmd':_0xaaeb06[_0x34988a(0x2f5)]};case _0x2794c1[_0x34988a(0x257)]['COMMENT_UPDATE']:return{..._0xaaeb06,'data':{..._0x1815f2,'data':_0x1815f2[_0x34988a(0x3fc)]},'cmd':_0xaaeb06['cmd']};case _0x2794c1[_0x34988a(0x257)][_0x34988a(0x25c)]:return{..._0xaaeb06,'data':{..._0x1815f2,'data':_0x1815f2[_0x34988a(0x3e0)]},'cmd':_0xaaeb06[_0x34988a(0x2f5)]};case _0x2794c1[_0x34988a(0x257)][_0x34988a(0x2a0)]:return{..._0xaaeb06,'data':{..._0x1815f2,'data':_0x1815f2[_0x34988a(0x1ba)]},'cmd':_0xaaeb06[_0x34988a(0x2f5)]};case _0x2794c1['CollaborationEvent'][_0x34988a(0x27e)]:return{..._0xaaeb06,'data':{..._0x1815f2,'data':_0x1815f2['uniscriptRunEvent']},'cmd':_0xaaeb06[_0x34988a(0x2f5)]};default:return _0xaaeb06;}}default:return _0xaaeb06;}}function _0x3a96ea(_0x2c7e75){const _0x11d831=_0x2cf920;switch(_0x2c7e75[_0x11d831(0x2f5)]){case _0xe7331e['CombCmd'][_0x11d831(0x36e)]:case _0xe7331e[_0x11d831(0x193)][_0x11d831(0x2fe)]:return JSON[_0x11d831(0x2a9)]({'cmd':_0x2c7e75['cmd'],'routeKey':_0x2c7e75['routeKey']});case _0xe7331e[_0x11d831(0x193)][_0x11d831(0x2e8)]:{let _0x6c94a1;switch(_0x2c7e75['data'][_0x11d831(0x2af)]){case _0x2794c1[_0x11d831(0x257)][_0x11d831(0x39f)]:_0x6c94a1={'eventID':_0x2794c1[_0x11d831(0x257)][_0x11d831(0x39f)],'updateCursorEvent':_0x2c7e75['data'][_0x11d831(0x238)]};break;case _0x2794c1['CollaborationEvent'][_0x11d831(0x48b)]:_0x6c94a1={'eventID':_0x2794c1['CollaborationEvent']['USERS_LEAVE'],'leaveEvent':_0x2c7e75[_0x11d831(0x238)][_0x11d831(0x238)]};break;case _0x2794c1[_0x11d831(0x257)][_0x11d831(0x16c)]:_0x6c94a1={'eventID':_0x2794c1[_0x11d831(0x257)]['USERS_ENTER'],'joinEvent':_0x2c7e75[_0x11d831(0x238)][_0x11d831(0x238)]};break;case _0x2794c1[_0x11d831(0x257)]['LIVESHARE_NEW_HOST']:_0x6c94a1={'eventID':_0x2794c1[_0x11d831(0x257)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2c7e75[_0x11d831(0x238)][_0x11d831(0x238)]};break;case _0x2794c1[_0x11d831(0x257)][_0x11d831(0x3dd)]:_0x6c94a1={'eventID':_0x2794c1[_0x11d831(0x257)][_0x11d831(0x3dd)],'liveShareOperation':_0x2c7e75[_0x11d831(0x238)][_0x11d831(0x238)]};break;case _0x2794c1[_0x11d831(0x257)][_0x11d831(0x1ed)]:_0x6c94a1={'eventID':_0x2794c1[_0x11d831(0x257)][_0x11d831(0x1ed)],'liveShareTerminate':_0x2c7e75[_0x11d831(0x238)][_0x11d831(0x238)]};break;case _0x2794c1[_0x11d831(0x257)][_0x11d831(0x1a6)]:_0x6c94a1={'eventID':_0x2794c1[_0x11d831(0x257)][_0x11d831(0x1a6)],'liveShareRequestHost':_0x2c7e75[_0x11d831(0x238)][_0x11d831(0x238)]};break;case _0x2794c1[_0x11d831(0x257)][_0x11d831(0x2f2)]:_0x6c94a1={'eventID':_0x2794c1[_0x11d831(0x257)][_0x11d831(0x2f2)]};break;default:_0x6c94a1={'eventID':_0x2c7e75['data'][_0x11d831(0x2af)]};}return JSON[_0x11d831(0x2a9)]({'cmd':_0x2c7e75[_0x11d831(0x2f5)],'routeKey':_0x2c7e75[_0x11d831(0x157)],'collaMsg':_0x6c94a1});}case _0xe7331e[_0x11d831(0x193)][_0x11d831(0x48c)]:return JSON[_0x11d831(0x2a9)]({'cmd':_0x2c7e75[_0x11d831(0x2f5)],'routeKey':_0x2c7e75['routeKey'],'joinReq':_0x2c7e75['data']});case _0xe7331e[_0x11d831(0x193)][_0x11d831(0x20e)]:return JSON[_0x11d831(0x2a9)]({'cmd':_0x2c7e75[_0x11d831(0x2f5)],'routeKey':_0x2c7e75[_0x11d831(0x157)],'leaveReq':_0x2c7e75[_0x11d831(0x238)]});default:throw Error(_0x11d831(0x329));}}let _0x43e3be=(0x0,_0x55970d['createIdentifier'])('univer-pro.collaboration-client-socket-service');function _0x9f2af0(_0x496aef,_0x155c94,_0x5dad9a){const _0x3366e3=_0x2cf920;return _0x496aef+'/'+_0x155c94+_0x3366e3(0x163)+_0x5dad9a+_0x3366e3(0x3e4);}let _0x2a6461=class extends _0x55970d[_0x2cf920(0x43d)]{constructor(_0x4e8e95,_0xd8080a,_0x5c107e,_0x4da61f,_0x531f2a){const _0x391f04=_0x2cf920;super(),this[_0x391f04(0x39d)]=_0x4e8e95,this[_0x391f04(0x1b7)]=_0xd8080a,this[_0x391f04(0x297)]=_0x5c107e,this[_0x391f04(0x47d)]=_0x4da61f,this['_snapshotServerService']=_0x531f2a;}[_0x2cf920(0x42d)](_0x350be5){const _0x247087=_0x2cf920;let _0x444caa=this[_0x247087(0x39d)]['get'](_0x19dbf0[_0x247087(0x3ea)]);if(!_0x444caa)throw Error(_0x247087(0x3d0));let _0xbc60ca=_0x444caa[_0x247087(0x1eb)](_0x350be5);if(!_0xbc60ca)throw Error(_0x247087(0x2cc));let _0xfdbaa7=new _0x55970d[(_0x247087(0x15b))](),_0x1e26ef=new _0x2accac['Subject']();_0xfdbaa7[_0x247087(0x1c9)](_0xbc60ca['close$']['subscribe'](_0xcda82f=>_0x1e26ef[_0x247087(0x2c4)](_0xcda82f))),_0xfdbaa7['add']((0x0,_0x55970d['toDisposable'])(()=>_0x1e26ef[_0x247087(0x15a)]()));let _0x5a7657=new _0x2accac[(_0x247087(0x46a))]();_0xfdbaa7[_0x247087(0x1c9)](_0xbc60ca[_0x247087(0x20d)]['subscribe'](_0x3bf1d0=>_0x5a7657['next'](_0x3bf1d0))),_0xfdbaa7[_0x247087(0x1c9)]((0x0,_0x55970d[_0x247087(0x3f7)])(()=>_0x5a7657[_0x247087(0x15a)]()));let _0x4a31ec=new _0x2accac[(_0x247087(0x46a))]();_0xfdbaa7[_0x247087(0x1c9)](_0xbc60ca[_0x247087(0x1c3)][_0x247087(0x32b)](_0x2c5d03=>{const _0x5bb4fe=_0x247087;let _0x4c1a3b=_0x21c6e9(_0x2c5d03);_0x4a31ec[_0x5bb4fe(0x2c4)](_0x4c1a3b);})),_0xfdbaa7[_0x247087(0x1c9)]((0x0,_0x55970d[_0x247087(0x3f7)])(()=>_0x4a31ec['complete']()));let _0x4a2bf6,_0x1c6a7b=()=>{const _0x1764a0=_0x247087;_0x5a7657[_0x1764a0(0x2c4)](new Event('connection\x20error')),_0x1e26ef['next'](new Event('connection\x20error')),_0x4a2bf6['close']();};return _0x4a2bf6={'memberID':'','close$':_0x1e26ef[_0x247087(0x21a)](),'error$':_0x5a7657[_0x247087(0x21a)](),'open$':_0xbc60ca[_0x247087(0x18d)],'message$':_0x4a31ec[_0x247087(0x21a)](),'send':_0x53b2ce=>{const _0xbe3551=_0x247087;if(_0x53b2ce[_0xbe3551(0x2f5)]===_0xe7331e[_0xbe3551(0x193)][_0xbe3551(0x2e8)]){if(_0x53b2ce['data'][_0xbe3551(0x2af)]===_0x2794c1[_0xbe3551(0x257)]['SUBMIT_CHANGESET']){this[_0xbe3551(0x1d2)](_0x4a2bf6,_0x53b2ce[_0xbe3551(0x238)])['catch'](_0x2dc679=>{const _0x388478=_0xbe3551;this[_0x388478(0x47d)][_0x388478(0x415)](_0x2dc679),_0x1c6a7b();});return;}if(_0x53b2ce['data'][_0xbe3551(0x2af)]===_0x2794c1['CollaborationEvent']['FETCH_MISSING']){let _0x3eaaa5=_0x53b2ce['data'];this[_0xbe3551(0x1ad)](_0x3eaaa5)['then'](_0x542ed4=>{const _0x389cae=_0xbe3551;_0x4a31ec[_0x389cae(0x2c4)]({'cmd':_0xe7331e[_0x389cae(0x193)][_0x389cae(0x2ed)],'code':_0xe7331e[_0x389cae(0x2db)]['OK'],'routeKey':_0x3eaaa5['data'][_0x389cae(0x45e)],'routeType':'','data':{'eventID':_0x2794c1['CollaborationEvent'][_0x389cae(0x3a0)],'data':{'changesets':_0x542ed4}}});})[_0xbe3551(0x195)](_0x436b1c=>{const _0x99623d=_0xbe3551;this[_0x99623d(0x47d)]['error'](_0x436b1c),_0x1c6a7b();});return;}}_0xbc60ca[_0xbe3551(0x1b2)](_0x3a96ea(_0x53b2ce));},'close':()=>{const _0x107ede=_0x247087;_0xbc60ca['close'](),_0xfdbaa7[_0x107ede(0x202)]();}},_0x4a2bf6;}async['_submitChangeset'](_0x385bb8,_0x5b1b64){const _0x40f6d6=_0x2cf920;let {unitType:_0x11fc9f,unitID:_0x23f998,changeset:_0x109790}=_0x5b1b64['data'],_0x1936c7={'unitID':_0x23f998,'memberID':_0x385bb8[_0x40f6d6(0x1c8)],'type':_0x11fc9f,'changeset':(0x0,_0x2794c1[_0x40f6d6(0x24a)])(_0x109790)},_0x232e00=this[_0x40f6d6(0x297)][_0x40f6d6(0x3be)](_0x4240c0),_0x40f413=_0x9f2af0((_0x232e00==null?void 0x0:_0x232e00[_0x40f6d6(0x32a)])??_0x40f6d6(0x485),_0x11fc9f,_0x23f998);try{await this[_0x40f6d6(0x1b7)][_0x40f6d6(0x3d3)](_0x40f413,{'body':_0x1936c7});}catch(_0x134a3b){throw this['_logService'][_0x40f6d6(0x415)]('[CollaborationSession]',_0x40f6d6(0x465)),_0x134a3b;}}async['_fetchMissChangesets'](_0x39cf89){const _0x5b9f0d=_0x2cf920;let {unitID:_0x18a797,from:_0x3b9dbe,to:_0x2b8d68,unitType:_0x4e6646}=_0x39cf89[_0x5b9f0d(0x238)];return(await this[_0x5b9f0d(0x339)][_0x5b9f0d(0x3af)]({'metadata':void 0x0},{'unitID':_0x18a797,'type':_0x4e6646,'from':_0x3b9dbe,'to':_0x2b8d68}))[_0x5b9f0d(0x471)]['map'](_0x245da4=>((_0x245da4['mutations']===null||_0x245da4[_0x5b9f0d(0x142)]===void 0x0)&&(_0x245da4[_0x5b9f0d(0x142)]=[]),_0x245da4));}};_0x2a6461=_0x30bef6([_0x177aa6(0x0,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d['Injector'])),_0x177aa6(0x1,(0x0,_0x55970d['Inject'])(_0x19dbf0[_0x2cf920(0x357)])),_0x177aa6(0x2,_0x55970d['IConfigService']),_0x177aa6(0x3,_0x55970d[_0x2cf920(0x259)]),_0x177aa6(0x4,_0x2794c1['ISnapshotServerService'])],_0x2a6461);let _0x35eb50=(0x0,_0x55970d['createIdentifier'])('univer-pro.collaboration-client-adapter-service');function _0x1f591d(_0x10bac4={}){const _0x5d48c6=_0x2cf920;return _0x10bac4[_0x5d48c6(0x373)]?{'resolveUnit':_0x10bac4[_0x5d48c6(0x373)]}:{'resolveUnit':_0x509423=>({'target':{'unitId':_0x509423[_0x5d48c6(0x38e)],'unitType':_0x509423['unitType']}})};}function _0x2a24a7(_0x19f583,_0x13f06c,_0x2be35c){const _0x571676=_0x2cf920;let _0x202e7b=_0x2be35c['target'][_0x571676(0x2a6)];if(_0x202e7b!=null&&_0x202e7b['trim']()==='')throw Error(_0x571676(0x29d));if(!_0x2be35c[_0x571676(0x18f)][_0x571676(0x38e)])throw Error(_0x571676(0x3d8));return{'localUnitId':_0x19f583,'unitType':_0x13f06c,'target':{'endpoint':_0x202e7b,'unitId':_0x2be35c['target']['unitId'],'unitType':_0x2be35c[_0x571676(0x18f)][_0x571676(0x2b2)]??_0x13f06c},'changeset':_0x2be35c[_0x571676(0x2b5)]};}let _0x3b6b61=class extends _0x55970d[_0x2cf920(0x43d)]{constructor(_0x305ea4,_0x2d612d,_0x29544e,_0x74e839,_0x4859ca,_0x5cf5b2,_0x30ef79){const _0x4883fc=_0x2cf920;super(),this['_injector']=_0x305ea4,this[_0x4883fc(0x47d)]=_0x2d612d,this[_0x4883fc(0x297)]=_0x29544e,this[_0x4883fc(0x235)]=_0x74e839,this[_0x4883fc(0x3b0)]=_0x4859ca,this[_0x4883fc(0x2c2)]=_0x5cf5b2,this['_networkConditionService']=_0x30ef79,_0x4fa34c(this,_0x4883fc(0x320),new Map()),_0x4fa34c(this,_0x4883fc(0x413),new Map()),_0x4fa34c(this,_0x4883fc(0x14b),new Map()),_0x4fa34c(this,_0x4883fc(0x1a2),new Map()),_0x4fa34c(this,_0x4883fc(0x365),this['_getSocketChannel'](void 0x0)[_0x4883fc(0x365)][_0x4883fc(0x21a)]()),_0x4fa34c(this,'_status$',new _0x2accac['BehaviorSubject'](0x0)),_0x4fa34c(this,'status$',this['_status$'][_0x4883fc(0x21a)]()),this[_0x4883fc(0x3c7)]();}[_0x2cf920(0x3c7)](){const _0x3f374f=_0x2cf920;this[_0x3f374f(0x3a4)]&&this[_0x3f374f(0x439)](this[_0x3f374f(0x3a4)][_0x3f374f(0x241)][_0x3f374f(0x32b)](_0x501277=>{const _0x42b958=_0x3f374f;_0x501277&&this[_0x42b958(0x3bd)](),_0x501277||this['_socketChannels']['forEach'](_0x4cdcd7=>this[_0x42b958(0x2d4)](_0x4cdcd7));}));}['dispose'](){const _0x24ddc3=_0x2cf920;super[_0x24ddc3(0x202)](),this[_0x24ddc3(0x1a2)][_0x24ddc3(0x434)](_0x30bc4b=>{const _0x8d7deb=_0x24ddc3;var _0x43fa45,_0x269afa;(_0x43fa45=_0x30bc4b[_0x8d7deb(0x19b)])==null||_0x43fa45[_0x8d7deb(0x3e2)](),_0x30bc4b[_0x8d7deb(0x19b)]=null,this[_0x8d7deb(0x214)](_0x30bc4b),this['_clearTimeoutTimer'](_0x30bc4b),this[_0x8d7deb(0x2e4)](_0x30bc4b),(_0x269afa=_0x30bc4b[_0x8d7deb(0x365)]['getValue']())==null||_0x269afa[_0x8d7deb(0x1d6)](),_0x30bc4b[_0x8d7deb(0x365)]['complete']();}),this[_0x24ddc3(0x1a2)][_0x24ddc3(0x307)](),this[_0x24ddc3(0x320)][_0x24ddc3(0x434)](_0x8ae285=>_0x8ae285[_0x24ddc3(0x202)]()),this['_sessions'][_0x24ddc3(0x307)](),this[_0x24ddc3(0x14b)][_0x24ddc3(0x307)](),this[_0x24ddc3(0x375)][_0x24ddc3(0x15a)]();}async[_0x2cf920(0x440)](_0x4478e1,_0x36fdbf){const _0x563fbc=_0x2cf920;if(this[_0x563fbc(0x320)]['has'](_0x4478e1))return this[_0x563fbc(0x320)]['get'](_0x4478e1);let _0x1f107b=this[_0x563fbc(0x413)][_0x563fbc(0x3b4)](_0x4478e1);if(_0x1f107b)return _0x1f107b;let _0x526a4d=this[_0x563fbc(0x34d)](_0x4478e1,_0x36fdbf);this[_0x563fbc(0x413)]['set'](_0x4478e1,_0x526a4d);try{return await _0x526a4d;}finally{this[_0x563fbc(0x413)][_0x563fbc(0x425)](_0x4478e1);}}async[_0x2cf920(0x34d)](_0x3cfd60,_0x437349){const _0x37b371=_0x2cf920;let _0x1ccf3a=await this['_resolveSessionIdentity'](_0x3cfd60,_0x437349),_0x16cfdc=this[_0x37b371(0x3d5)](_0x1ccf3a['target'][_0x37b371(0x2a6)]);this[_0x37b371(0x267)](_0x16cfdc);let _0x30dead=this[_0x37b371(0x39d)][_0x37b371(0x3ac)](_0x22ba67,_0x1ccf3a,_0x16cfdc[_0x37b371(0x365)][_0x37b371(0x21a)]());return this[_0x37b371(0x320)][_0x37b371(0x1c5)](_0x3cfd60,_0x30dead),this[_0x37b371(0x14b)][_0x37b371(0x1c5)](_0x3cfd60,_0x16cfdc[_0x37b371(0x1de)]),_0x30dead;}[_0x2cf920(0x433)](_0x1c35d9){const _0x26a48c=_0x2cf920;let _0x3bb5f7=this['_sessions']['get'](_0x1c35d9),_0x448785=this[_0x26a48c(0x14b)][_0x26a48c(0x3b4)](_0x1c35d9);if(_0x3bb5f7&&(this[_0x26a48c(0x320)][_0x26a48c(0x425)](_0x1c35d9),this[_0x26a48c(0x14b)][_0x26a48c(0x425)](_0x1c35d9),_0x3bb5f7[_0x26a48c(0x1d6)]()),_0x448785&&!this[_0x26a48c(0x255)](_0x448785)){var _0x19d188;let _0x50892f=this[_0x26a48c(0x1a2)]['get'](_0x448785);_0x50892f==null||(_0x19d188=_0x50892f[_0x26a48c(0x365)][_0x26a48c(0x35e)]())==null||_0x19d188['close']();}}[_0x2cf920(0x3bd)](){const _0x588598=_0x2cf920;(this[_0x588598(0x1a2)][_0x588598(0x462)]?[...this[_0x588598(0x1a2)]['values']()]:[this[_0x588598(0x3d5)](void 0x0)])['forEach'](_0x57ee73=>{const _0x3fb65b=_0x588598;_0x57ee73[_0x3fb65b(0x379)]=0x0,this['_clearRetryConnectingTimer'](_0x57ee73),this[_0x3fb65b(0x387)](_0x57ee73);});}[_0x2cf920(0x214)](_0x6d19bf){const _0x10c5aa=_0x2cf920;_0x6d19bf[_0x10c5aa(0x1c6)]!=null&&(clearTimeout(_0x6d19bf[_0x10c5aa(0x1c6)]),_0x6d19bf['retryConnectingTimer']=null);}async[_0x2cf920(0x28a)](_0x4afc39){const _0x29e9aa=_0x2cf920;let _0x5b800f=this[_0x29e9aa(0x297)][_0x29e9aa(0x3be)](_0x4240c0),_0x2a7e23=_0x4afc39[_0x29e9aa(0x2a6)]??(_0x5b800f==null?void 0x0:_0x5b800f[_0x29e9aa(0x2bc)])??_0x29e9aa(0x341),_0x4593cd=await this[_0x29e9aa(0x235)]['createSocket'](_0x2a7e23);return _0x4afc39[_0x29e9aa(0x15c)]=_0x4593cd,_0x4593cd;}async['_tryEnsureSocket'](_0x10d2b1){const _0x593b21=_0x2cf920;try{let _0x166703=_0x10d2b1[_0x593b21(0x365)][_0x593b21(0x35e)]()??_0x10d2b1['candidateSocket']??await this[_0x593b21(0x28a)](_0x10d2b1);if(_0x166703){var _0x44d200;let _0x418898=_0x166703[_0x593b21(0x1b2)];_0x166703['send']=_0x17c57a=>(_0x17c57a[_0x593b21(0x2f5)]!==_0xe7331e['CombCmd']['LEAVE']&&this[_0x593b21(0x430)](_0x10d2b1),_0x418898['apply'](_0x166703,[_0x17c57a])),(_0x44d200=_0x10d2b1['socketMessageSubscription'])==null||_0x44d200[_0x593b21(0x3e2)](),_0x10d2b1[_0x593b21(0x19b)]=null,_0x10d2b1[_0x593b21(0x19b)]=_0x166703[_0x593b21(0x1c3)][_0x593b21(0x32b)](_0xdab6c4=>this[_0x593b21(0x228)](_0x10d2b1,_0x166703,_0xdab6c4)),_0x166703[_0x593b21(0x20d)]['pipe']((0x0,_0x11e320['take'])(0x1))[_0x593b21(0x32b)](_0x41f8ea=>this[_0x593b21(0x47d)][_0x593b21(0x415)](_0x593b21(0x1f6),_0x41f8ea)),_0x166703['open$'][_0x593b21(0x21c)]((0x0,_0x11e320[_0x593b21(0x488)])(0x1))[_0x593b21(0x32b)](()=>{const _0x489459=_0x593b21;this[_0x489459(0x215)](_0x10d2b1,_0x166703);}),_0x166703[_0x593b21(0x22a)][_0x593b21(0x21c)]((0x0,_0x11e320[_0x593b21(0x488)])(0x1))[_0x593b21(0x32b)](_0x40c05b=>{const _0x32fcd2=_0x593b21;this[_0x32fcd2(0x47d)]['debug'](_0x32fcd2(0x29f),'socket\x20close',_0x40c05b),this[_0x32fcd2(0x2a3)](_0x10d2b1);});}}catch(_0x574949){this[_0x593b21(0x47d)][_0x593b21(0x415)](_0x574949),this[_0x593b21(0x2a3)](_0x10d2b1);}}[_0x2cf920(0x215)](_0xb81b39,_0x43e667){const _0x19bd74=_0x2cf920;this[_0x19bd74(0x47d)][_0x19bd74(0x284)](_0x19bd74(0x29f),_0x19bd74(0x27f)),_0x43e667[_0x19bd74(0x1b2)]({'cmd':_0xe7331e[_0x19bd74(0x193)][_0x19bd74(0x2fe)]}),this['_rescheduleHeartbeat'](_0xb81b39);}[_0x2cf920(0x2d4)](_0x89cf69){const _0x4db925=_0x2cf920;_0x89cf69[_0x4db925(0x1fa)]=!0x1,_0x89cf69[_0x4db925(0x15c)]=null,this['_status$'][_0x4db925(0x2c4)](0x2),_0x89cf69[_0x4db925(0x365)][_0x4db925(0x2c4)](null),this[_0x4db925(0x227)](_0x89cf69),this[_0x4db925(0x2e4)](_0x89cf69);}['_onConnectionFailed'](_0x348174){const _0x1737b6=_0x2cf920;this[_0x1737b6(0x2d4)](_0x348174),this[_0x1737b6(0x255)](_0x348174[_0x1737b6(0x1de)])&&(_0x348174[_0x1737b6(0x379)]<(this[_0x1737b6(0x297)]['getConfig'](_0x1737b6(0x431))??0x3)?(this[_0x1737b6(0x3b0)]['emitEvent']({'id':'SOCKET_FAILED_RETRY'}),this[_0x1737b6(0x387)](_0x348174)):this['_collaborationUIEventService']['emitEvent']({'id':_0x1737b6(0x386)}));}['_tryReconnect'](_0x51cadf){const _0x3107ef=_0x2cf920;let _0x1f3bd5=_0x51cadf['retryCount'],_0x35e734=this[_0x3107ef(0x297)]['getConfig'](_0x4240c0),_0x2a21a4=_0x1f3bd5===0x0?0x0:((_0x35e734==null?void 0x0:_0x35e734['retryConnectingInterval'])??0x4e20)*0x2**_0x1f3bd5;_0x51cadf[_0x3107ef(0x1c6)]=setTimeout(()=>{const _0x252b54=_0x3107ef;clearTimeout(_0x51cadf[_0x252b54(0x1c6)]),_0x51cadf[_0x252b54(0x1c6)]=null,this[_0x252b54(0x267)](_0x51cadf);},_0x2a21a4),_0x51cadf[_0x3107ef(0x379)]+=0x1;}async[_0x2cf920(0x1c1)](_0x4d2f71,_0x40fb29){const _0x219903=_0x2cf920;return _0x2a24a7(_0x4d2f71,_0x40fb29,await this[_0x219903(0x2c2)]['resolveUnit']({'unitId':_0x4d2f71,'unitType':_0x40fb29}));}[_0x2cf920(0x228)](_0x1baebc,_0x5e44e8,_0x418dfb){const _0x2a264e=_0x2cf920;let {cmd:_0x2bbfea}=_0x418dfb;_0x2bbfea===_0xe7331e[_0x2a264e(0x193)]['HELLO']&&!_0x1baebc['socketReady']&&(_0x5e44e8[_0x2a264e(0x1c8)]=_0x418dfb[_0x2a264e(0x238)][_0x2a264e(0x1c8)],_0x1baebc[_0x2a264e(0x365)]['next'](_0x5e44e8),this[_0x2a264e(0x375)][_0x2a264e(0x2c4)](0x3),_0x1baebc['socketReady']=!0x0,_0x1baebc[_0x2a264e(0x15c)]=null),_0x2bbfea===_0xe7331e['CombCmd'][_0x2a264e(0x36e)]&&this[_0x2a264e(0x227)](_0x1baebc),this[_0x2a264e(0x430)](_0x1baebc);}[_0x2cf920(0x255)](_0x193b8e){return[...this['_sessionChannels']['values']()]['some'](_0x2861db=>_0x2861db===_0x193b8e);}['_getSocketChannel'](_0x491022){const _0x22d090=_0x2cf920;let _0x43c80c=_0x491022??'',_0x1fcb8b=this['_socketChannels'][_0x22d090(0x3b4)](_0x43c80c);if(_0x1fcb8b)return _0x1fcb8b;let _0x4d6e2b={'endpointKey':_0x43c80c,'endpoint':_0x491022,'socket$':new _0x2accac[(_0x22d090(0x45f))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x22d090(0x1a2)][_0x22d090(0x1c5)](_0x43c80c,_0x4d6e2b),_0x4d6e2b;}[_0x2cf920(0x430)](_0x41fb2d){const _0x15eee5=_0x2cf920;this[_0x15eee5(0x2e4)](_0x41fb2d),_0x41fb2d[_0x15eee5(0x1a5)]=setTimeout(()=>this[_0x15eee5(0x3ca)](_0x41fb2d),this[_0x15eee5(0x297)]['getConfig'](_0x15eee5(0x265))??0x7530);}[_0x2cf920(0x3ca)](_0x23eb1d){const _0x2445eb=_0x2cf920;_0x23eb1d[_0x2445eb(0x365)][_0x2445eb(0x35e)]()[_0x2445eb(0x1b2)]({'cmd':_0xe7331e[_0x2445eb(0x193)][_0x2445eb(0x36e)]}),this['_waitForHeartbeatResponse'](_0x23eb1d);}[_0x2cf920(0x47e)](_0x526dca){const _0x45b5c9=_0x2cf920;_0x526dca['timeoutTimer']=setTimeout(()=>this[_0x45b5c9(0x2a3)](_0x526dca),this['_configService'][_0x45b5c9(0x3be)](_0x45b5c9(0x188))??0x4e20);}[_0x2cf920(0x2e4)](_0x325216){const _0x1e0285=_0x2cf920;_0x325216[_0x1e0285(0x1a5)]!=null&&(clearTimeout(_0x325216[_0x1e0285(0x1a5)]),_0x325216[_0x1e0285(0x1a5)]=null);}[_0x2cf920(0x227)](_0x39ccd1){const _0x46213c=_0x2cf920;_0x39ccd1['timeoutTimer']!=null&&(clearTimeout(_0x39ccd1['timeoutTimer']),_0x39ccd1[_0x46213c(0x39e)]=null);}};_0x3b6b61=_0x30bef6([_0x177aa6(0x0,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d[_0x2cf920(0x371)])),_0x177aa6(0x1,_0x55970d[_0x2cf920(0x259)]),_0x177aa6(0x2,_0x55970d[_0x2cf920(0x412)]),_0x177aa6(0x3,_0x43e3be),_0x177aa6(0x4,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x34126c)),_0x177aa6(0x5,_0x35eb50),_0x177aa6(0x6,(0x0,_0x55970d[_0x2cf920(0x2da)])(_0x30c179))],_0x3b6b61);let _0x2297ef=class extends _0x55970d[_0x2cf920(0x233)]{constructor(_0x423d4b,_0x1ef32e,_0x4766c5,_0x18b716){const _0x70e12d=_0x2cf920;var _0x5a4f86;super(),this[_0x70e12d(0x39d)]=_0x423d4b,this[_0x70e12d(0x3ba)]=_0x1ef32e,this['_configService']=_0x4766c5,this['_univerInstanceService']=_0x18b716,_0x4fa34c(this,'_entities',new Map()),_0x4fa34c(this,_0x70e12d(0x23c),new _0x2accac['Subject']()),_0x4fa34c(this,_0x70e12d(0x388),this['_entityInit$'][_0x70e12d(0x21a)]()),((_0x5a4f86=this[_0x70e12d(0x297)][_0x70e12d(0x3be)](_0x70e12d(0x330)))==null?void 0x0:_0x5a4f86[_0x70e12d(0x1e2)])!==!0x1&&this[_0x70e12d(0x2bd)]();}['dispose'](){const _0x18f910=_0x2cf920;super[_0x18f910(0x202)](),this['_entities'][_0x18f910(0x434)](_0x290de8=>_0x290de8[_0x18f910(0x202)]()),this[_0x18f910(0x23b)]['clear']();}[_0x2cf920(0x31e)](_0x4de886){const _0x3d150b=_0x2cf920;return this[_0x3d150b(0x23b)][_0x3d150b(0x3b4)](_0x4de886)??null;}[_0x2cf920(0x27b)](_0x635825){const _0x40edbf=_0x2cf920;let _0x3f5dbb=this['getCollabEntity'](_0x635825);return _0x3f5dbb?(0x0,_0x2accac['of'])(_0x3f5dbb):this[_0x40edbf(0x23c)][_0x40edbf(0x21c)]((0x0,_0x11e320[_0x40edbf(0x20b)])(_0x2af36c=>_0x2af36c['unitID']===_0x635825));}[_0x2cf920(0x2c9)](_0x2ba613){const _0x7f8dd4=_0x2cf920;return(0x0,_0x2accac[_0x7f8dd4(0x384)])(this['getCollabEntity$'](_0x2ba613)['pipe']((0x0,_0x11e320[_0x7f8dd4(0x420)])(()=>void 0x0)));}['_init'](){const _0x512fa3=_0x2cf920;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x55970d['UniverInstanceType'][_0x512fa3(0x368)])[_0x512fa3(0x21c)]((0x0,_0x2accac[_0x512fa3(0x1e6)])(this['dispose$']),(0x0,_0x11e320[_0x512fa3(0x43f)])(0x10))[_0x512fa3(0x32b)](async _0x364fe1=>{const _0x1e82c2=_0x512fa3;let _0x45506d=_0x364fe1[_0x1e82c2(0x414)][_0x1e82c2(0x170)](),_0x39e813=await this[_0x1e82c2(0x429)](_0x45506d,_0x55970d[_0x1e82c2(0x30c)]['UNIVER_SHEET']);this[_0x1e82c2(0x23b)][_0x1e82c2(0x1c5)](_0x45506d,_0x39e813);}),this[_0x512fa3(0x48e)][_0x512fa3(0x3d6)](_0x55970d[_0x512fa3(0x30c)][_0x512fa3(0x309)])[_0x512fa3(0x21c)]((0x0,_0x2accac[_0x512fa3(0x1e6)])(this[_0x512fa3(0x258)]),(0x0,_0x11e320[_0x512fa3(0x43f)])(0x10))[_0x512fa3(0x21c)]((0x0,_0x11e320[_0x512fa3(0x20b)])(_0x732d9=>!_0x732d9[_0x512fa3(0x414)][_0x512fa3(0x170)]()[_0x512fa3(0x3de)]('__')))[_0x512fa3(0x32b)](async _0x308821=>{const _0x597891=_0x512fa3;let _0x2c5917=_0x308821[_0x597891(0x414)]['getUnitId'](),_0x51a9e8=await this[_0x597891(0x429)](_0x2c5917,_0x55970d[_0x597891(0x30c)][_0x597891(0x309)]);this[_0x597891(0x23b)][_0x597891(0x1c5)](_0x2c5917,_0x51a9e8);}),this[_0x512fa3(0x48e)][_0x512fa3(0x3d6)](_0x55970d[_0x512fa3(0x30c)][_0x512fa3(0x21e)])['pipe']((0x0,_0x2accac[_0x512fa3(0x1e6)])(this[_0x512fa3(0x258)]),(0x0,_0x11e320[_0x512fa3(0x43f)])(0x10))[_0x512fa3(0x32b)](async _0x34cfe6=>{const _0x149bb0=_0x512fa3;let _0x3584e5=_0x34cfe6['unit']['getUnitId'](),_0xc2c1a0=await this[_0x149bb0(0x429)](_0x3584e5,_0x55970d[_0x149bb0(0x30c)][_0x149bb0(0x21e)]);this[_0x149bb0(0x23b)]['set'](_0x3584e5,_0xc2c1a0);}),this['_univerInstanceService'][_0x512fa3(0x3d6)](_0x55970d[_0x512fa3(0x30c)]['UNIVER_BOARD'])[_0x512fa3(0x21c)]((0x0,_0x2accac[_0x512fa3(0x1e6)])(this[_0x512fa3(0x258)]),(0x0,_0x11e320[_0x512fa3(0x43f)])(0x10))[_0x512fa3(0x32b)](async _0x497c42=>{const _0x5b382=_0x512fa3;let _0x45284f=_0x497c42[_0x5b382(0x414)]['getUnitId'](),_0x1af82d=await this['_startCollaboration'](_0x45284f,_0x55970d['UniverInstanceType'][_0x5b382(0x23f)]);this['_entities']['set'](_0x45284f,_0x1af82d);}),this['_univerInstanceService'][_0x512fa3(0x3d6)](_0x55970d[_0x512fa3(0x30c)]['UNIVER_BASE'])[_0x512fa3(0x21c)]((0x0,_0x2accac[_0x512fa3(0x1e6)])(this['dispose$']),(0x0,_0x11e320[_0x512fa3(0x43f)])(0x10))['subscribe'](async _0x5a96c8=>{const _0x3a58b4=_0x512fa3;let _0x39a738=_0x5a96c8[_0x3a58b4(0x414)][_0x3a58b4(0x170)](),_0x402c8f=await this[_0x3a58b4(0x429)](_0x39a738,_0x55970d[_0x3a58b4(0x30c)][_0x3a58b4(0x21b)]);this['_entities'][_0x3a58b4(0x1c5)](_0x39a738,_0x402c8f);}),this[_0x512fa3(0x48e)][_0x512fa3(0x3d6)](_0x55970d[_0x512fa3(0x30c)][_0x512fa3(0x2c1)])[_0x512fa3(0x21c)]((0x0,_0x2accac[_0x512fa3(0x1e6)])(this['dispose$']),(0x0,_0x11e320[_0x512fa3(0x43f)])(0x10))['subscribe'](async _0xdb581a=>{const _0xf98780=_0x512fa3;let _0xcb2284=_0xdb581a[_0xf98780(0x414)]['getUnitId'](),_0x200dcb=await this[_0xf98780(0x429)](_0xcb2284,_0x55970d['UniverInstanceType'][_0xf98780(0x2c1)]);this[_0xf98780(0x23b)][_0xf98780(0x1c5)](_0xcb2284,_0x200dcb);}),(0x0,_0x2accac[_0x512fa3(0x411)])(this[_0x512fa3(0x48e)][_0x512fa3(0x2d9)](_0x55970d['UniverInstanceType'][_0x512fa3(0x368)]),this[_0x512fa3(0x48e)][_0x512fa3(0x2d9)](_0x55970d[_0x512fa3(0x30c)][_0x512fa3(0x309)]),this['_univerInstanceService'][_0x512fa3(0x2d9)](_0x55970d[_0x512fa3(0x30c)][_0x512fa3(0x21e)]),this[_0x512fa3(0x48e)][_0x512fa3(0x2d9)](_0x55970d[_0x512fa3(0x30c)][_0x512fa3(0x23f)]),this[_0x512fa3(0x48e)][_0x512fa3(0x2d9)](_0x55970d[_0x512fa3(0x30c)][_0x512fa3(0x21b)]),this[_0x512fa3(0x48e)][_0x512fa3(0x2d9)](_0x55970d[_0x512fa3(0x30c)][_0x512fa3(0x2c1)]))[_0x512fa3(0x21c)]((0x0,_0x2accac['takeUntil'])(this[_0x512fa3(0x258)]))[_0x512fa3(0x32b)](_0x37a6d7=>{const _0xe5c0a=_0x512fa3;let _0x3d8ed1=_0x37a6d7['getUnitId'](),_0xd67918=this[_0xe5c0a(0x23b)][_0xe5c0a(0x3b4)](_0x3d8ed1);_0xd67918&&(_0xd67918[_0xe5c0a(0x202)](),this[_0xe5c0a(0x23b)][_0xe5c0a(0x425)](_0x3d8ed1));});}async['_startCollaboration'](_0x1b5e1e,_0x47e283){const _0x41b1d5=_0x2cf920;let _0x4b702c=await this['_collabSessionService'][_0x41b1d5(0x440)](_0x1b5e1e),_0x51a1ab=this[_0x41b1d5(0x39d)][_0x41b1d5(0x3ac)](this[_0x41b1d5(0x399)](_0x47e283),_0x1b5e1e,_0x47e283,_0x4b702c);return await _0x51a1ab[_0x41b1d5(0x1bf)](),this[_0x41b1d5(0x23c)]['next'](_0x51a1ab),_0x51a1ab;}[_0x2cf920(0x399)](_0x385d50){const _0x4c9dd2=_0x2cf920;switch(_0x385d50){case _0x55970d[_0x4c9dd2(0x30c)][_0x4c9dd2(0x309)]:return _0x5bdd78;case _0x55970d[_0x4c9dd2(0x30c)][_0x4c9dd2(0x368)]:return _0x368bb9;case _0x55970d[_0x4c9dd2(0x30c)][_0x4c9dd2(0x21e)]:return _0x5f335b;case _0x55970d[_0x4c9dd2(0x30c)]['UNIVER_BOARD']:return _0x4ce479;case _0x55970d[_0x4c9dd2(0x30c)]['UNIVER_BASE']:return _0x5084fa;case _0x55970d[_0x4c9dd2(0x30c)][_0x4c9dd2(0x2c1)]:return _0x38b833;default:throw Error(_0x4c9dd2(0x46e)+_0x385d50);}}};_0x2297ef=_0x30bef6([_0x177aa6(0x0,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d[_0x2cf920(0x371)])),_0x177aa6(0x1,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x3b6b61)),_0x177aa6(0x2,_0x55970d['IConfigService']),_0x177aa6(0x3,_0x55970d[_0x2cf920(0x2d6)])],_0x2297ef);var _0x38d499=_0x2cf920(0x3c5),_0x34c9a3=_0x2cf920(0x20f);let _0x4efe0e=class extends _0x55970d['Disposable']{constructor(_0x20c1bb,_0x1c9966){const _0x1d9780=_0x2cf920;super(),this['_univerInstanceService']=_0x20c1bb,this[_0x1d9780(0x297)]=_0x1c9966,this[_0x1d9780(0x2bd)]();}[_0x2cf920(0x2bd)](){const _0xee5a65=_0x2cf920;this[_0xee5a65(0x439)](this['_univerInstanceService'][_0xee5a65(0x391)][_0xee5a65(0x32b)](()=>{const _0x1fc1ef=_0xee5a65;let _0x2a58ff=this[_0x1fc1ef(0x48e)][_0x1fc1ef(0x2ce)](),_0x2c9a21=this[_0x1fc1ef(0x297)]['getConfig'](_0x1fc1ef(0x2fa))??_0x1fc1ef(0x2dc);_0x2a58ff instanceof _0x55970d[_0x1fc1ef(0x42e)]&&(_0x2c9a21=_0x2a58ff[_0x1fc1ef(0x23a)]),document['title']=_0x2c9a21;}));}};_0x4efe0e=_0x30bef6([_0x177aa6(0x0,_0x55970d[_0x2cf920(0x2d6)]),_0x177aa6(0x1,_0x55970d[_0x2cf920(0x412)])],_0x4efe0e);let _0x4a254f=(0x0,_0x55970d[_0x2cf920(0x2a1)])('base-ui.attachment-io.service'),_0x2ef9e0=class{constructor(_0x16c3a3,_0x492028,_0x2dfeb9){const _0x11b9c6=_0x2cf920;this['_httpService']=_0x16c3a3,this[_0x11b9c6(0x297)]=_0x492028,this[_0x11b9c6(0x48e)]=_0x2dfeb9;}[_0x2cf920(0x1e5)](){const _0x2d3a94=_0x2cf920;return this[_0x2d3a94(0x3ab)]()[_0x2d3a94(0x1ac)]??{};}async['saveAttachment'](_0x195a19){const _0x22d411=_0x2cf920;let _0x30ddb4=this[_0x22d411(0x1e5)]();if(_0x2d48aa(_0x195a19,_0x30ddb4),_0x30ddb4[_0x22d411(0x1dc)])return _0x30ddb4[_0x22d411(0x1dc)](_0x195a19);let _0xe072ec=await this[_0x22d411(0x16a)](_0x195a19);return{'id':_0xe072ec,'name':_0x195a19[_0x22d411(0x23a)],'mimeType':_0x195a19[_0x22d411(0x369)],'size':_0x195a19['size'],'sourceType':_0x55970d[_0x22d411(0x3cc)][_0x22d411(0x1c7)],'source':_0xe072ec};}async[_0x2cf920(0x3f9)](_0x204f46,_0xd8332d){const _0x330b5b=_0x2cf920;if(_0xd8332d!==_0x55970d['ImageSourceType'][_0x330b5b(0x1c7)])return _0x204f46;let _0x1569bb=(await this[_0x330b5b(0x1b7)][_0x330b5b(0x3b4)](this[_0x330b5b(0x436)]()['replace'](_0x330b5b(0x2cb),_0x204f46)))['body'];if(_0x1569bb[_0x330b5b(0x415)]&&_0x1569bb[_0x330b5b(0x415)][_0x330b5b(0x2ec)]!==_0xe7331e[_0x330b5b(0x22e)]['OK'])throw _0x1569bb[_0x330b5b(0x415)];if(!_0x1569bb[_0x330b5b(0x169)])throw Error(_0x330b5b(0x474));return(0x0,_0x55970d[_0x330b5b(0x229)])(_0x1569bb[_0x330b5b(0x169)],this[_0x330b5b(0x1e9)]());}async[_0x2cf920(0x16a)](_0xccdf4b){const _0xd954dc=_0x2cf920;let _0x5227cd=this[_0xd954dc(0x48e)]['getFocusedUnit'](),_0x301f9d=_0x5227cd==null?void 0x0:_0x5227cd[_0xd954dc(0x170)]();if(!_0x301f9d)throw Error(_0xd954dc(0x385));let _0x2646eb=new FormData();_0x2646eb[_0xd954dc(0x19f)](_0xd954dc(0x2dd),_0xccdf4b);let _0x48b671=this[_0xd954dc(0x41a)]()+_0xd954dc(0x3bb)+_0xccdf4b[_0xd954dc(0x462)][_0xd954dc(0x143)]()+_0xd954dc(0x1cc)+_0xe7331e[_0xd954dc(0x43c)][_0xd954dc(0x172)]+'&assign='+encodeURIComponent(_0x301f9d),_0x38ccf5=(await this[_0xd954dc(0x1b7)][_0xd954dc(0x3d3)](_0x48b671,{'body':_0x2646eb}))[_0xd954dc(0x3eb)][_0xd954dc(0x2b3)];if(typeof _0x38ccf5!='string'||!_0x38ccf5)throw Error(_0xd954dc(0x356));return _0x38ccf5;}[_0x2cf920(0x41a)](){const _0x81eaa2=_0x2cf920;return this[_0x81eaa2(0x3ab)]()['uploadFileServerUrl']??'/universer-api/stream/file/upload';}[_0x2cf920(0x436)](){const _0x39b71d=_0x2cf920;return this['_getConfig']()[_0x39b71d(0x22b)]??'/universer-api/file/{fileID}/sign-url';}['_getDownloadEndpointURL'](){const _0x37789d=_0x2cf920;let _0x305a51=this[_0x37789d(0x3ab)]();return _0x305a51[_0x37789d(0x17d)]?_0x305a51[_0x37789d(0x17d)]:typeof location<'u'?location[_0x37789d(0x2c3)]:_0x305a51['uploadFileServerUrl']??'';}[_0x2cf920(0x3ab)](){const _0x2b1e1b=_0x2cf920;return this[_0x2b1e1b(0x297)][_0x2b1e1b(0x3be)](_0x2b1e1b(0x330))??{};}};_0x2ef9e0=_0x30bef6([_0x177aa6(0x0,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x19dbf0[_0x2cf920(0x357)])),_0x177aa6(0x1,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d[_0x2cf920(0x412)])),_0x177aa6(0x2,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d['IUniverInstanceService']))],_0x2ef9e0);function _0x2d48aa(_0x1a1a18,_0x5bb68f){const _0x4dc12f=_0x2cf920;var _0x190e06;if(_0x5bb68f[_0x4dc12f(0x161)]!=null&&_0x1a1a18[_0x4dc12f(0x462)]>_0x5bb68f[_0x4dc12f(0x161)])throw Error(_0x4dc12f(0x276));if((_0x190e06=_0x5bb68f[_0x4dc12f(0x31f)])!=null&&_0x190e06['length']&&!_0x5bb68f['accept']['some'](_0x38bcb0=>_0x1a1a18[_0x4dc12f(0x369)]===_0x38bcb0||_0x1a1a18[_0x4dc12f(0x23a)]['endsWith'](_0x38bcb0)||_0x38bcb0[_0x4dc12f(0x2e9)]('/*')&&_0x1a1a18['type']['startsWith'](_0x38bcb0[_0x4dc12f(0x350)](0x0,-0x1))))throw Error(_0x4dc12f(0x3f5));}let _0x58ea14=class{constructor(_0x4cc23a,_0x2588ad,_0x1c8a8c){const _0x14ddd5=_0x2cf920;this[_0x14ddd5(0x297)]=_0x4cc23a,this[_0x14ddd5(0x1b7)]=_0x2588ad,this[_0x14ddd5(0x29c)]=_0x1c8a8c,this['init']();}['init'](){const _0x3fa99b=_0x2cf920;this[_0x3fa99b(0x1b7)][_0x3fa99b(0x3e3)]({'priority':0x1,'interceptor':(_0x27d285,_0x21f5f9)=>_0x21f5f9(_0x27d285)[_0x3fa99b(0x21c)]((0x0,_0x2accac[_0x3fa99b(0x3ce)])(async _0x429b27=>{const _0x7e2ba3=_0x3fa99b;let _0x24a7c2=_0x429b27;if(_0x24a7c2['status']===0x191){if(typeof window>'u')throw Error(_0x7e2ba3(0x46c));if(window[_0x7e2ba3(0x234)](this[_0x7e2ba3(0x29c)]['t'](_0x7e2ba3(0x2e2)))){let _0x37ebf2=window[_0x7e2ba3(0x347)](window[_0x7e2ba3(0x295)][_0x7e2ba3(0x145)]);window['location'][_0x7e2ba3(0x145)]=this['_getLoginPath']()+_0x7e2ba3(0x225)+_0x37ebf2;}}return _0x24a7c2;}))});}[_0x2cf920(0x407)](){const _0x1a991d=_0x2cf920;let _0x30e087=this[_0x1a991d(0x297)][_0x1a991d(0x3be)](_0x4240c0);return(_0x30e087==null?void 0x0:_0x30e087[_0x1a991d(0x40c)])??_0x1a991d(0x3ee);}};_0x58ea14=_0x30bef6([_0x177aa6(0x0,_0x55970d['IConfigService']),_0x177aa6(0x1,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x19dbf0[_0x2cf920(0x357)])),_0x177aa6(0x2,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d[_0x2cf920(0x2ac)]))],_0x58ea14);let _0x5d2ee7=class extends _0x55970d[_0x2cf920(0x43d)]{constructor(_0x32e80e,_0x4bdd0f){const _0x327908=_0x2cf920;super(),this[_0x327908(0x1b1)]=_0x32e80e,this[_0x327908(0x297)]=_0x4bdd0f,_0x4fa34c(this,'_cfgEnableObjInherit',!0x1),this['_initMergeInterceptor']();}[_0x2cf920(0x31b)](){const _0x25915b=_0x2cf920;let _0x9c15b9=this;this['disposeWithMe'](this['_HTTPService'][_0x25915b(0x3e3)]({'priority':0x3e7,'interceptor':(0x0,_0x19dbf0[_0x25915b(0x239)])({'isMatch'(_0x3e3e70){const _0x58c3f3=_0x25915b;var _0x3b292b;if(_0x3e3e70[_0x58c3f3(0x3d4)]===_0x58c3f3(0x364)&&(_0x3b292b=_0x3e3e70['requestParams'])!=null&&_0x3b292b[_0x58c3f3(0x3eb)]){let {objectID:_0x31ad57,objectType:_0xdd2aee}=_0x3e3e70[_0x58c3f3(0x400)][_0x58c3f3(0x3eb)]||{};if(!_0x31ad57||_0xdd2aee===void 0x0)return!0x1;let _0x2d7ea8=_0x9c15b9[_0x58c3f3(0x3d1)]()+'/'+_0xdd2aee+_0x58c3f3(0x15e)+_0x31ad57+_0x58c3f3(0x340);if(_0x3e3e70[_0x58c3f3(0x169)]===_0x2d7ea8)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2dcaa1){const _0x30344c=_0x25915b;var _0xcb988a;return(_0xcb988a=_0x2dcaa1[_0x30344c(0x400)])==null?void 0x0:_0xcb988a['body'];},'mergeParamsToRequest'(_0x1126c3,_0x43bb9d){const _0x30e26b=_0x25915b;let _0xe01eaf=_0x9c15b9[_0x30e26b(0x3d1)]()+_0x30e26b(0x1ff),_0x2b3933=_0x1126c3[_0x30e26b(0x395)]((_0x274352,_0xb38a17)=>{const _0x522d57=_0x30e26b;let {unitID:_0x38b218,objectID:_0x23776f,objectType:_0x512a84,actions:_0x3affe8}=_0xb38a17;return _0x274352[_0x38b218]||(_0x274352[_0x38b218]={}),_0x274352[_0x38b218][_0x23776f]||(_0x274352[_0x38b218][_0x23776f]={'objectID':_0x23776f,'objectType':_0x512a84,'actions':[]}),_0x274352[_0x38b218][_0x23776f][_0x522d57(0x3cd)][_0x522d57(0x264)](..._0x3affe8),_0x274352;},{}),_0x26f0f7=[];for(let _0x42a47d in _0x2b3933)for(let _0x17084c in _0x2b3933[_0x42a47d]){let {actions:_0x63e3c5,objectType:_0x252a1e}=_0x2b3933[_0x42a47d][_0x17084c],_0x472b03=[...new Set(_0x63e3c5)];_0x26f0f7[_0x30e26b(0x264)]({'unitID':_0x42a47d,'objectID':_0x17084c,'objectType':_0x252a1e,'actions':_0x472b03});}return new _0x19dbf0['HTTPRequest'](_0x30e26b(0x364),_0xe01eaf,{'headers':_0x43bb9d['headers'],'withCredentials':_0x43bb9d['withCredentials'],'responseType':_0x43bb9d[_0x30e26b(0x46d)],'body':{'requests':_0x26f0f7}});}},{'distributeResult'(_0x32a8ff,_0x404f14){const _0xcbe7fc=_0x25915b;let {objectActions:_0x3a1735}=_0x32a8ff;return _0x404f14[_0xcbe7fc(0x420)](_0x5bb680=>{const _0x35777d=_0xcbe7fc;let {unitID:_0x3d4a4f,objectID:_0x445d2c,actions:_0x2e66ea}=_0x5bb680,_0x296419=_0x3a1735['find'](_0x201e45=>_0x201e45[_0x35777d(0x45e)]===_0x3d4a4f&&_0x201e45[_0x35777d(0x1b9)]===_0x445d2c);return{'config':_0x5bb680,'result':{'actions':_0x2e66ea[_0x35777d(0x420)](_0x556832=>_0x296419==null?void 0x0:_0x296419[_0x35777d(0x3cd)][_0x35777d(0x1ae)](_0xfa42d0=>_0xfa42d0['action']===_0x556832))[_0x35777d(0x20b)](_0x30b7d0=>!!_0x30b7d0),'error':_0x32a8ff['error']}};});}})}));}[_0x2cf920(0x3d1)](){const _0x4d6004=_0x2cf920;let _0x5e9775=this[_0x4d6004(0x297)][_0x4d6004(0x3be)](_0x4240c0);return(_0x5e9775==null?void 0x0:_0x5e9775[_0x4d6004(0x381)])??_0x4d6004(0x293);}async['create'](_0x265264){const _0x45e378=_0x2cf920;let _0x2ab1d8=this[_0x45e378(0x3d1)]()+'/'+_0x265264[_0x45e378(0x3b2)]+_0x45e378(0x34a);return(await this[_0x45e378(0x1b1)][_0x45e378(0x3d3)](_0x2ab1d8,{'body':_0x265264}))[_0x45e378(0x3eb)][_0x45e378(0x1b9)]||'';}async[_0x2cf920(0x33a)](_0x3a29d9){const _0x331f78=_0x2cf920;let _0x158eb7=this['_getAPIPrefixPath']()+'/-/object/list';return(await this['_HTTPService'][_0x331f78(0x3d3)](_0x158eb7,{'body':_0x3a29d9}))['body'][_0x331f78(0x252)];}async[_0x2cf920(0x1f3)](_0x584850){const _0x27ebae=_0x2cf920;var _0x4cdec4;let _0x507bfd=this['_getAPIPrefixPath']()+'/'+_0x584850['objectType']+_0x27ebae(0x15e)+_0x584850[_0x27ebae(0x1b9)],_0x1f03b3=await this[_0x27ebae(0x1b1)][_0x27ebae(0x487)](_0x507bfd,{'body':_0x584850});if((_0x1f03b3==null||(_0x4cdec4=_0x1f03b3[_0x27ebae(0x3eb)])==null||(_0x4cdec4=_0x4cdec4[_0x27ebae(0x415)])==null?void 0x0:_0x4cdec4[_0x27ebae(0x2ec)])!==0x1)throw Error(_0x27ebae(0x29a));}async[_0x2cf920(0x42a)](_0x4133a1){const _0x3384e9=_0x2cf920;let _0x306a7f=this['_getAPIPrefixPath']()+'/'+_0x4133a1[_0x3384e9(0x3b2)]+_0x3384e9(0x15e)+_0x4133a1[_0x3384e9(0x1b9)]+_0x3384e9(0x340);return(await this[_0x3384e9(0x1b1)]['post'](_0x306a7f,{'body':_0x4133a1}))[_0x3384e9(0x3eb)]['actions'];}async[_0x2cf920(0x44f)](_0x2de5f8){const _0x222f54=_0x2cf920;let _0x146e31=this[_0x222f54(0x3d1)]()+_0x222f54(0x1ff);return(await this[_0x222f54(0x1b1)][_0x222f54(0x3d3)](_0x146e31,{'body':{'requests':_0x2de5f8}}))['body'][_0x222f54(0x2f7)];}async[_0x2cf920(0x151)](_0x2f2039){const _0x4456c0=_0x2cf920;let _0x57c1c8=this[_0x4456c0(0x3d1)]()+'/'+_0x2f2039[_0x4456c0(0x3b2)]+_0x4456c0(0x281),_0x242441=await this['_HTTPService']['post'](_0x57c1c8,{'body':_0x2f2039});return{'roles':_0x242441['body']['roles'],'actions':_0x242441[_0x4456c0(0x3eb)][_0x4456c0(0x3cd)]};}async['deleteCollaborator'](_0x2b9cec){const _0x5214a7=_0x2cf920;let _0x3742e6=this['_getAPIPrefixPath']()+_0x5214a7(0x149);await this['_HTTPService'][_0x5214a7(0x425)](_0x3742e6,{'params':{'collaboratorID':_0x2b9cec[_0x5214a7(0x3f2)],'objectID':_0x2b9cec['objectID'],'unitID':_0x2b9cec[_0x5214a7(0x45e)]}});}async[_0x2cf920(0x3db)](_0x598f49){const _0x32583d=_0x2cf920;let _0x17da19=this[_0x32583d(0x3d1)]()+'/collaborator';await this[_0x32583d(0x1b1)][_0x32583d(0x2b0)](_0x17da19,{'body':_0x598f49});}async[_0x2cf920(0x366)](_0xad45fa){const _0x54d91f=_0x2cf920;let _0x2fac80=this[_0x54d91f(0x3d1)]()+_0x54d91f(0x149);await this[_0x54d91f(0x1b1)][_0x54d91f(0x3d3)](_0x2fac80,{'body':_0xad45fa});}async[_0x2cf920(0x45b)](_0x4f939d){const _0x53030d=_0x2cf920;let _0x44f046=this[_0x53030d(0x3d1)]()+_0x53030d(0x149),_0x2f00c0=await this['_HTTPService'][_0x53030d(0x3b4)](_0x44f046,{'params':{'objectID':_0x4f939d['objectID'],'unitID':_0x4f939d[_0x53030d(0x45e)]}});return this[_0x53030d(0x30b)](_0x2f00c0[_0x53030d(0x3eb)][_0x53030d(0x3c0)]??!0x1),_0x2f00c0[_0x53030d(0x3eb)][_0x53030d(0x3b7)];}async[_0x2cf920(0x3ff)](_0x4e88ed){const _0x3819b1=_0x2cf920;let _0x552d40=this[_0x3819b1(0x3d1)]()+_0x3819b1(0x149);await this[_0x3819b1(0x1b1)][_0x3819b1(0x487)](_0x552d40,{'body':_0x4e88ed});}[_0x2cf920(0x30b)](_0x3e6f9d){const _0x37aac4=_0x2cf920;this[_0x37aac4(0x323)]=_0x3e6f9d;}['getCfgEnableObjInherit'](){const _0x43161f=_0x2cf920;return this[_0x43161f(0x323)];}};_0x5d2ee7=_0x30bef6([_0x177aa6(0x0,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x19dbf0['HTTPService'])),_0x177aa6(0x1,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d['IConfigService']))],_0x5d2ee7);function _0x4e0689(_0x26bce2){const _0xe3182d=_0x2cf920;return _0x26bce2 instanceof Uint8Array||ArrayBuffer['isView'](_0x26bce2)&&_0x26bce2[_0xe3182d(0x325)][_0xe3182d(0x23a)]===_0xe3182d(0x283)&&_0xe3182d(0x486)in _0x26bce2&&_0x26bce2[_0xe3182d(0x486)]===0x1;}function _0x128d7f(_0xc0e833){const _0x3d7fe3=_0x2cf920;if(typeof _0xc0e833!=_0x3d7fe3(0x463))throw TypeError(_0x3d7fe3(0x15f)+typeof _0xc0e833);if(!Number[_0x3d7fe3(0x237)](_0xc0e833)||_0xc0e833<0x0)throw RangeError(_0x3d7fe3(0x254)+_0xc0e833);}function _0x1bb70f(_0x3824b1,_0x3f4059,_0x5da86b=''){const _0x41b7d9=_0x2cf920;let _0x5b566d=_0x4e0689(_0x3824b1),_0x67dca=_0x3824b1==null?void 0x0:_0x3824b1[_0x41b7d9(0x352)],_0x1ceafd=_0x3f4059!==void 0x0;if(!_0x5b566d||_0x1ceafd&&_0x67dca!==_0x3f4059){let _0x3922c0=_0x5da86b&&'\x22'+_0x5da86b+'\x22\x20',_0x12cb73=_0x1ceafd?_0x41b7d9(0x36a)+_0x3f4059:'',_0x36beb6=_0x5b566d?_0x41b7d9(0x18e)+_0x67dca:_0x41b7d9(0x189)+typeof _0x3824b1,_0x55c197=_0x3922c0+_0x41b7d9(0x326)+_0x12cb73+_0x41b7d9(0x292)+_0x36beb6;throw _0x5b566d?RangeError(_0x55c197):TypeError(_0x55c197);}return _0x3824b1;}function _0x11dcb3(_0x582b84){const _0x195944=_0x2cf920;return new Uint32Array(_0x582b84[_0x195944(0x207)],_0x582b84['byteOffset'],Math[_0x195944(0x1ce)](_0x582b84[_0x195944(0x30e)]/0x4));}function _0x392c12(..._0x5a393e){const _0xc73b71=_0x2cf920;for(let _0xc0ee92=0x0;_0xc0ee92<_0x5a393e[_0xc73b71(0x352)];_0xc0ee92++)_0x5a393e[_0xc0ee92][_0xc73b71(0x1af)](0x0);}let _0x2e1bf7=new Uint8Array(new Uint32Array([0x11223344])['buffer'])[0x0]===0x44,_0x256e62=_0x36b1a4=>_0x36b1a4<<0x18&0xff000000|_0x36b1a4<<0x8&0xff0000|_0x36b1a4>>>0x8&0xff00|_0x36b1a4>>>0x18&0xff,_0x46dd50=_0x2e1bf7?_0xddd0c0=>_0xddd0c0:_0x4455e1=>{const _0x566206=_0x2cf920;for(let _0x3dbd48=0x0;_0x3dbd48<_0x4455e1[_0x566206(0x352)];_0x3dbd48++)_0x4455e1[_0x3dbd48]=_0x256e62(_0x4455e1[_0x3dbd48]);return _0x4455e1;};function _0x1685e1(_0x420628){const _0x503cdd=_0x2cf920;if(typeof _0x420628!=_0x503cdd(0x38b))throw TypeError('string\x20expected');return new Uint8Array(new TextEncoder()[_0x503cdd(0x319)](_0x420628));}function _0x6de912(_0x3f38f8,_0x7aa193){const _0x59c379=_0x2cf920;return!_0x3f38f8[_0x59c379(0x30e)]||!_0x7aa193[_0x59c379(0x30e)]?!0x1:_0x3f38f8['buffer']===_0x7aa193[_0x59c379(0x207)]&&_0x3f38f8[_0x59c379(0x2a2)]<_0x7aa193[_0x59c379(0x2a2)]+_0x7aa193[_0x59c379(0x30e)]&&_0x7aa193[_0x59c379(0x2a2)]<_0x3f38f8['byteOffset']+_0x3f38f8[_0x59c379(0x30e)];}function _0x2faf74(_0x5e8ca0,_0x9916b2){const _0x2642b3=_0x2cf920;if(_0x6de912(_0x5e8ca0,_0x9916b2)&&_0x5e8ca0[_0x2642b3(0x2a2)]<_0x9916b2[_0x2642b3(0x2a2)])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0x17c7d(..._0x2cc1c4){const _0x358ec7=_0x2cf920;let _0x53f93e=0x0;for(let _0x33ee1a=0x0;_0x33ee1a<_0x2cc1c4['length'];_0x33ee1a++){let _0x21dced=_0x2cc1c4[_0x33ee1a];_0x1bb70f(_0x21dced),_0x53f93e+=_0x21dced[_0x358ec7(0x352)];}let _0x4fdeaa=new Uint8Array(_0x53f93e);for(let _0x582b01=0x0,_0x192c36=0x0;_0x582b01<_0x2cc1c4[_0x358ec7(0x352)];_0x582b01++){let _0x1b19ea=_0x2cc1c4[_0x582b01];_0x4fdeaa[_0x358ec7(0x1c5)](_0x1b19ea,_0x192c36),_0x192c36+=_0x1b19ea['length'];}return _0x4fdeaa;}let _0x403869=(_0x3a40fb,_0x246f9e)=>{const _0x3257cd=_0x2cf920;function _0x2f930f(_0x4ccebb,..._0x59b859){const _0xf33ddd=_0x38ab;if(_0x1bb70f(_0x4ccebb,void 0x0,_0xf33ddd(0x152)),_0x3a40fb[_0xf33ddd(0x316)]!==void 0x0){let _0x5d5cdd=_0x59b859[0x0];_0x1bb70f(_0x5d5cdd,_0x3a40fb['varSizeNonce']?void 0x0:_0x3a40fb[_0xf33ddd(0x316)],_0xf33ddd(0x424));}let _0x494cc5=_0x3a40fb[_0xf33ddd(0x3f1)];_0x494cc5&&_0x59b859[0x1]!==void 0x0&&_0x1bb70f(_0x59b859[0x1],void 0x0,_0xf33ddd(0x1a1));let _0x1ae4d8=_0x246f9e(_0x4ccebb,..._0x59b859),_0x36dc9f=(_0x1bb291,_0xde57ee)=>{if(_0xde57ee!==void 0x0){if(_0x1bb291!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x1bb70f(_0xde57ee,void 0x0,'output');}},_0x4253be=!0x1;return{'encrypt'(_0x25b9d4,_0xdb3bbd){const _0x5b1b53=_0xf33ddd;if(_0x4253be)throw Error('cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce');return _0x4253be=!0x0,_0x1bb70f(_0x25b9d4),_0x36dc9f(_0x1ae4d8[_0x5b1b53(0x24f)]['length'],_0xdb3bbd),_0x1ae4d8[_0x5b1b53(0x24f)](_0x25b9d4,_0xdb3bbd);},'decrypt'(_0x1cc9a7,_0x23c3ee){const _0x1fc84a=_0xf33ddd;if(_0x1bb70f(_0x1cc9a7),_0x494cc5&&_0x1cc9a7[_0x1fc84a(0x352)]<_0x494cc5)throw Error('\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength='+_0x494cc5);return _0x36dc9f(_0x1ae4d8[_0x1fc84a(0x199)]['length'],_0x23c3ee),_0x1ae4d8[_0x1fc84a(0x199)](_0x1cc9a7,_0x23c3ee);}};}return Object[_0x3257cd(0x42b)](_0x2f930f,_0x3a40fb),_0x2f930f;};function _0x4f720f(_0xe9820d,_0x3698d2,_0x419e27=!0x0){const _0x4d22e4=_0x2cf920;if(_0x3698d2===void 0x0)return new Uint8Array(_0xe9820d);if(_0x1bb70f(_0x3698d2,void 0x0,_0x4d22e4(0x2ff)),_0x3698d2[_0x4d22e4(0x352)]!==_0xe9820d)throw Error('\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20'+_0xe9820d+_0x4d22e4(0x478)+_0x3698d2['length']);if(_0x419e27&&!_0x5458d5(_0x3698d2))throw Error(_0x4d22e4(0x187));return _0x3698d2;}function _0x5458d5(_0x19cf39){const _0x45d0e5=_0x2cf920;return _0x19cf39[_0x45d0e5(0x2a2)]%0x4==0x0;}function _0x333e81(_0x5b5efe){const _0x11c078=_0x2cf920;return Uint8Array[_0x11c078(0x211)](_0x1bb70f(_0x5b5efe));}function _0xa6c36c(_0x5625b9=0x20){const _0x2ae0b7=_0x2cf920;_0x128d7f(_0x5625b9);let _0x32b2be=typeof globalThis==_0x2ae0b7(0x435)?globalThis['crypto']:null;if(typeof(_0x32b2be==null?void 0x0:_0x32b2be['getRandomValues'])!=_0x2ae0b7(0x2e3))throw Error(_0x2ae0b7(0x290));return _0x32b2be[_0x2ae0b7(0x3d2)](new Uint8Array(_0x5625b9));}function _0x2d7058(_0x3a7d45){const _0xae8fb9=_0x2cf920;if(![0x10,0x18,0x20][_0xae8fb9(0x282)](_0x3a7d45[_0xae8fb9(0x352)]))throw Error(_0xae8fb9(0x24d)+_0x3a7d45[_0xae8fb9(0x352)]);}function _0x35c044(_0x2285ab){return _0x2285ab<<0x1^0x11b&-(_0x2285ab>>0x7);}function _0x19fd8d(_0x3a694b,_0x3ef6aa){let _0x132099=0x0;for(;_0x3ef6aa>0x0;_0x3ef6aa>>=0x1)_0x132099^=_0x3a694b&-(_0x3ef6aa&0x1),_0x3a694b=_0x35c044(_0x3a694b);return _0x132099;}let _0x21173c=((()=>{let _0x4b9c88=new Uint8Array(0x100);for(let _0x4fb965=0x0,_0x3be6dc=0x1;_0x4fb965<0x100;_0x4fb965++,_0x3be6dc^=_0x35c044(_0x3be6dc))_0x4b9c88[_0x4fb965]=_0x3be6dc;let _0x4cb97d=new Uint8Array(0x100);_0x4cb97d[0x0]=0x63;for(let _0x27f09f=0x0;_0x27f09f<0xff;_0x27f09f++){let _0x3dec5f=_0x4b9c88[0xff-_0x27f09f];_0x3dec5f|=_0x3dec5f<<0x8,_0x4cb97d[_0x4b9c88[_0x27f09f]]=(_0x3dec5f^_0x3dec5f>>0x4^_0x3dec5f>>0x5^_0x3dec5f>>0x6^_0x3dec5f>>0x7^0x63)&0xff;}return _0x392c12(_0x4b9c88),_0x4cb97d;})()),_0x3a9951=_0x21173c[_0x2cf920(0x420)]((_0x2d48d2,_0x10a193)=>_0x21173c['indexOf'](_0x10a193)),_0x29aa9c=_0x499007=>_0x499007<<0x18|_0x499007>>>0x8,_0x453fcd=_0x3a4714=>_0x3a4714<<0x8|_0x3a4714>>>0x18;function _0x5cebd0(_0x2e29ed,_0x476853){const _0x29587d=_0x2cf920;if(_0x2e29ed['length']!==0x100)throw Error(_0x29587d(0x3e6));let _0x5154a2=new Uint32Array(0x100)['map']((_0x3643bb,_0x4729e3)=>_0x476853(_0x2e29ed[_0x4729e3])),_0x55b197=_0x5154a2[_0x29587d(0x420)](_0x453fcd),_0xceeb1f=_0x55b197[_0x29587d(0x420)](_0x453fcd),_0x2145c2=_0xceeb1f[_0x29587d(0x420)](_0x453fcd),_0x5e8d4a=new Uint32Array(0x100*0x100),_0x6d427d=new Uint32Array(0x100*0x100),_0x2d1352=new Uint16Array(0x100*0x100);for(let _0x3474e4=0x0;_0x3474e4<0x100;_0x3474e4++)for(let _0x4541c5=0x0;_0x4541c5<0x100;_0x4541c5++){let _0x9c7100=_0x3474e4*0x100+_0x4541c5;_0x5e8d4a[_0x9c7100]=_0x5154a2[_0x3474e4]^_0x55b197[_0x4541c5],_0x6d427d[_0x9c7100]=_0xceeb1f[_0x3474e4]^_0x2145c2[_0x4541c5],_0x2d1352[_0x9c7100]=_0x2e29ed[_0x3474e4]<<0x8|_0x2e29ed[_0x4541c5];}return{'sbox':_0x2e29ed,'sbox2':_0x2d1352,'T0':_0x5154a2,'T1':_0x55b197,'T2':_0xceeb1f,'T3':_0x2145c2,'T01':_0x5e8d4a,'T23':_0x6d427d};}let _0x5a47ff=_0x5cebd0(_0x21173c,_0x3418f1=>_0x19fd8d(_0x3418f1,0x3)<<0x18|_0x3418f1<<0x10|_0x3418f1<<0x8|_0x19fd8d(_0x3418f1,0x2)),_0x29a035=_0x5cebd0(_0x3a9951,_0x21707a=>_0x19fd8d(_0x21707a,0xb)<<0x18|_0x19fd8d(_0x21707a,0xd)<<0x10|_0x19fd8d(_0x21707a,0x9)<<0x8|_0x19fd8d(_0x21707a,0xe)),_0x251fed=((()=>{let _0x2b6f82=new Uint8Array(0x10);for(let _0x17b316=0x0,_0x3acced=0x1;_0x17b316<0x10;_0x17b316++,_0x3acced=_0x35c044(_0x3acced))_0x2b6f82[_0x17b316]=_0x3acced;return _0x2b6f82;})());function _0x468a80(_0x3cce3b){const _0x1c994e=_0x2cf920;_0x1bb70f(_0x3cce3b);let _0x4ac1f7=_0x3cce3b[_0x1c994e(0x352)];_0x2d7058(_0x3cce3b);let {sbox2:_0x9408d0}=_0x5a47ff,_0x52a820=[];(!_0x2e1bf7||!_0x5458d5(_0x3cce3b))&&_0x52a820[_0x1c994e(0x264)](_0x3cce3b=_0x333e81(_0x3cce3b));let _0x242209=_0x46dd50(_0x11dcb3(_0x3cce3b)),_0x313968=_0x242209[_0x1c994e(0x352)],_0x499f1d=_0x27549e=>_0x5a06cd(_0x9408d0,_0x27549e,_0x27549e,_0x27549e,_0x27549e),_0x4bfebd=new Uint32Array(_0x4ac1f7+0x1c);_0x4bfebd[_0x1c994e(0x1c5)](_0x242209);for(let _0x35778e=_0x313968;_0x35778e<_0x4bfebd[_0x1c994e(0x352)];_0x35778e++){let _0x107245=_0x4bfebd[_0x35778e-0x1];_0x35778e%_0x313968===0x0?_0x107245=_0x499f1d(_0x29aa9c(_0x107245))^_0x251fed[_0x35778e/_0x313968-0x1]:_0x313968>0x6&&_0x35778e%_0x313968===0x4&&(_0x107245=_0x499f1d(_0x107245)),_0x4bfebd[_0x35778e]=_0x4bfebd[_0x35778e-_0x313968]^_0x107245;}return _0x392c12(..._0x52a820),_0x4bfebd;}function _0xe1c6b6(_0x22a35d){const _0x166bda=_0x2cf920;let _0x27a204=_0x468a80(_0x22a35d),_0x5aba2c=_0x27a204['slice'](),_0x3ecc74=_0x27a204[_0x166bda(0x352)],{sbox2:_0xf3a98d}=_0x5a47ff,{T0:_0x2d2866,T1:_0x3776f2,T2:_0x2bd0b6,T3:_0x503f4e}=_0x29a035;for(let _0x3d0bbd=0x0;_0x3d0bbd<_0x3ecc74;_0x3d0bbd+=0x4)for(let _0x5c6cc5=0x0;_0x5c6cc5<0x4;_0x5c6cc5++)_0x5aba2c[_0x3d0bbd+_0x5c6cc5]=_0x27a204[_0x3ecc74-_0x3d0bbd-0x4+_0x5c6cc5];_0x392c12(_0x27a204);for(let _0x595cd5=0x4;_0x595cd5<_0x3ecc74-0x4;_0x595cd5++){let _0x54479d=_0x5aba2c[_0x595cd5],_0x560808=_0x5a06cd(_0xf3a98d,_0x54479d,_0x54479d,_0x54479d,_0x54479d);_0x5aba2c[_0x595cd5]=_0x2d2866[_0x560808&0xff]^_0x3776f2[_0x560808>>>0x8&0xff]^_0x2bd0b6[_0x560808>>>0x10&0xff]^_0x503f4e[_0x560808>>>0x18];}return _0x5aba2c;}function _0xdd3ccb(_0x116f66,_0x29090c,_0x345c79,_0x943eea,_0x4b49a9,_0x43b26f){return _0x116f66[_0x345c79<<0x8&0xff00|_0x943eea>>>0x8&0xff]^_0x29090c[_0x4b49a9>>>0x8&0xff00|_0x43b26f>>>0x18&0xff];}function _0x5a06cd(_0x272538,_0x2249d3,_0x24118f,_0x4f9907,_0xbd6595){return _0x272538[_0x2249d3&0xff|_0x24118f&0xff00]|_0x272538[_0x4f9907>>>0x10&0xff|_0xbd6595>>>0x10&0xff00]<<0x10;}function _0x4b46a1(_0x10489c,_0x45a09f,_0x33a789,_0x224964,_0x530aec){const _0xa3e5a2=_0x2cf920;let {sbox2:_0x42df9a,T01:_0x12908e,T23:_0x2d2550}=_0x5a47ff,_0x5cb23b=0x0;_0x45a09f^=_0x10489c[_0x5cb23b++],_0x33a789^=_0x10489c[_0x5cb23b++],_0x224964^=_0x10489c[_0x5cb23b++],_0x530aec^=_0x10489c[_0x5cb23b++];let _0x3f47c2=_0x10489c[_0xa3e5a2(0x352)]/0x4-0x2;for(let _0x4f2674=0x0;_0x4f2674<_0x3f47c2;_0x4f2674++){let _0x2fcd69=_0x10489c[_0x5cb23b++]^_0xdd3ccb(_0x12908e,_0x2d2550,_0x45a09f,_0x33a789,_0x224964,_0x530aec),_0x3a8606=_0x10489c[_0x5cb23b++]^_0xdd3ccb(_0x12908e,_0x2d2550,_0x33a789,_0x224964,_0x530aec,_0x45a09f),_0x39d0cd=_0x10489c[_0x5cb23b++]^_0xdd3ccb(_0x12908e,_0x2d2550,_0x224964,_0x530aec,_0x45a09f,_0x33a789),_0x4a6fd7=_0x10489c[_0x5cb23b++]^_0xdd3ccb(_0x12908e,_0x2d2550,_0x530aec,_0x45a09f,_0x33a789,_0x224964);_0x45a09f=_0x2fcd69,_0x33a789=_0x3a8606,_0x224964=_0x39d0cd,_0x530aec=_0x4a6fd7;}return{'s0':_0x10489c[_0x5cb23b++]^_0x5a06cd(_0x42df9a,_0x45a09f,_0x33a789,_0x224964,_0x530aec),'s1':_0x10489c[_0x5cb23b++]^_0x5a06cd(_0x42df9a,_0x33a789,_0x224964,_0x530aec,_0x45a09f),'s2':_0x10489c[_0x5cb23b++]^_0x5a06cd(_0x42df9a,_0x224964,_0x530aec,_0x45a09f,_0x33a789),'s3':_0x10489c[_0x5cb23b++]^_0x5a06cd(_0x42df9a,_0x530aec,_0x45a09f,_0x33a789,_0x224964)};}function _0x2741a2(_0x4f438f,_0x2494bc,_0x43d41b,_0x978606,_0x1c1f83){const _0x27c2a7=_0x2cf920;let {sbox2:_0xd7364c,T01:_0x140d58,T23:_0x263428}=_0x29a035,_0x35e1d6=0x0;_0x2494bc^=_0x4f438f[_0x35e1d6++],_0x43d41b^=_0x4f438f[_0x35e1d6++],_0x978606^=_0x4f438f[_0x35e1d6++],_0x1c1f83^=_0x4f438f[_0x35e1d6++];let _0xe3a2c4=_0x4f438f[_0x27c2a7(0x352)]/0x4-0x2;for(let _0x4b5a43=0x0;_0x4b5a43<_0xe3a2c4;_0x4b5a43++){let _0x38b5b7=_0x4f438f[_0x35e1d6++]^_0xdd3ccb(_0x140d58,_0x263428,_0x2494bc,_0x1c1f83,_0x978606,_0x43d41b),_0x387e2c=_0x4f438f[_0x35e1d6++]^_0xdd3ccb(_0x140d58,_0x263428,_0x43d41b,_0x2494bc,_0x1c1f83,_0x978606),_0x429fd2=_0x4f438f[_0x35e1d6++]^_0xdd3ccb(_0x140d58,_0x263428,_0x978606,_0x43d41b,_0x2494bc,_0x1c1f83),_0x4c3742=_0x4f438f[_0x35e1d6++]^_0xdd3ccb(_0x140d58,_0x263428,_0x1c1f83,_0x978606,_0x43d41b,_0x2494bc);_0x2494bc=_0x38b5b7,_0x43d41b=_0x387e2c,_0x978606=_0x429fd2,_0x1c1f83=_0x4c3742;}return{'s0':_0x4f438f[_0x35e1d6++]^_0x5a06cd(_0xd7364c,_0x2494bc,_0x1c1f83,_0x978606,_0x43d41b),'s1':_0x4f438f[_0x35e1d6++]^_0x5a06cd(_0xd7364c,_0x43d41b,_0x2494bc,_0x1c1f83,_0x978606),'s2':_0x4f438f[_0x35e1d6++]^_0x5a06cd(_0xd7364c,_0x978606,_0x43d41b,_0x2494bc,_0x1c1f83),'s3':_0x4f438f[_0x35e1d6++]^_0x5a06cd(_0xd7364c,_0x1c1f83,_0x978606,_0x43d41b,_0x2494bc)};}function _0x4e2359(_0x4ecfb1){const _0x2638a1=_0x2cf920;if(_0x1bb70f(_0x4ecfb1),_0x4ecfb1[_0x2638a1(0x352)]%0x10!=0x0)throw Error('aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016');}function _0x3d163b(_0x3278e9,_0x462d94,_0x373c23){const _0x308bf1=_0x2cf920;_0x1bb70f(_0x3278e9);let _0x4b99b0=_0x3278e9[_0x308bf1(0x352)],_0x45f4af=_0x4b99b0%0x10;if(!_0x462d94&&_0x45f4af!==0x0)throw Error(_0x308bf1(0x406));if(_0x462d94){let _0x18688a=0x10-_0x45f4af;_0x18688a||=0x10,_0x4b99b0+=_0x18688a;}_0x373c23=_0x4f720f(_0x4b99b0,_0x373c23),_0x2faf74(_0x3278e9,_0x373c23),(!_0x2e1bf7||!_0x5458d5(_0x3278e9))&&(_0x3278e9=_0x333e81(_0x3278e9));let _0x41a0ee=_0x11dcb3(_0x3278e9);return _0x46dd50(_0x41a0ee),{'b':_0x41a0ee,'o':_0x11dcb3(_0x373c23),'out':_0x373c23};}function _0x31b3b2(_0x17b9ac,_0x575d07){const _0x19d988=_0x2cf920;if(!_0x575d07)return _0x17b9ac;let _0x3027b5=_0x17b9ac[_0x19d988(0x352)];if(_0x3027b5===0x0)throw Error(_0x19d988(0x1a0));let _0x328fe9=_0x17b9ac[_0x3027b5-0x1],_0x33cffa=0x1;_0x33cffa&=_0x328fe9-0x1>>>0x1f^0x1,_0x33cffa&=0x10-_0x328fe9>>>0x1f^0x1;for(let _0xa061cd=0x0;_0xa061cd<0x10;_0xa061cd++){let _0x2e74c0=_0xa061cd-_0x328fe9>>>0x1f,_0x3bfdf4=+((_0x17b9ac[_0x3027b5-0x1-_0xa061cd]^_0x328fe9)===0x0);_0x33cffa&=_0x3bfdf4|_0x2e74c0^0x1;}if(!_0x33cffa)throw Error(_0x19d988(0x361));return _0x17b9ac['subarray'](0x0,_0x3027b5-_0x328fe9);}function _0xf6aed5(_0x5ee217){const _0x32f924=_0x2cf920;let _0xc3da1f=new Uint8Array(0x10),_0x3cb19c=_0x11dcb3(_0xc3da1f);_0xc3da1f[_0x32f924(0x1c5)](_0x5ee217);let _0x305138=0x10-_0x5ee217[_0x32f924(0x352)];for(let _0x679883=0x10-_0x305138;_0x679883<0x10;_0x679883++)_0xc3da1f[_0x679883]=_0x305138;return _0x3cb19c;}let _0x4f5e7c=_0x403869({'blockSize':0x10,'nonceLength':0x10},function(_0xa2ae2c,_0x16a99d,_0x32a059={}){const _0x2bfd24=_0x2cf920;let _0x5ac805=!_0x32a059[_0x2bfd24(0x2fd)];return{'encrypt'(_0x2cadb3,_0xaa31e9){const _0x161886=_0x2bfd24;let _0x124325=_0x468a80(_0xa2ae2c),{b:_0x3867ea,o:_0x26ccc8,out:_0x23bfa5}=_0x3d163b(_0x2cadb3,_0x5ac805,_0xaa31e9),_0x17b1e9=_0x16a99d,_0x4a59f0=[_0x124325];(!_0x2e1bf7||!_0x5458d5(_0x17b1e9))&&_0x4a59f0[_0x161886(0x264)](_0x17b1e9=_0x333e81(_0x17b1e9));let _0x2f8deb=_0x11dcb3(_0x17b1e9);_0x46dd50(_0x2f8deb);let _0x6cbd66=_0x2f8deb[0x0],_0x31f30f=_0x2f8deb[0x1],_0x3f8f14=_0x2f8deb[0x2],_0x25fc21=_0x2f8deb[0x3],_0x5bd3be=0x0;for(;_0x5bd3be+0x4<=_0x3867ea[_0x161886(0x352)];)_0x6cbd66^=_0x3867ea[_0x5bd3be+0x0],_0x31f30f^=_0x3867ea[_0x5bd3be+0x1],_0x3f8f14^=_0x3867ea[_0x5bd3be+0x2],_0x25fc21^=_0x3867ea[_0x5bd3be+0x3],{s0:_0x6cbd66,s1:_0x31f30f,s2:_0x3f8f14,s3:_0x25fc21}=_0x4b46a1(_0x124325,_0x6cbd66,_0x31f30f,_0x3f8f14,_0x25fc21),_0x26ccc8[_0x5bd3be++]=_0x6cbd66,_0x26ccc8[_0x5bd3be++]=_0x31f30f,_0x26ccc8[_0x5bd3be++]=_0x3f8f14,_0x26ccc8[_0x5bd3be++]=_0x25fc21;if(_0x5ac805){let _0x5ea030=_0xf6aed5(_0x2cadb3[_0x161886(0x2d1)](_0x5bd3be*0x4));_0x46dd50(_0x5ea030),_0x6cbd66^=_0x5ea030[0x0],_0x31f30f^=_0x5ea030[0x1],_0x3f8f14^=_0x5ea030[0x2],_0x25fc21^=_0x5ea030[0x3],{s0:_0x6cbd66,s1:_0x31f30f,s2:_0x3f8f14,s3:_0x25fc21}=_0x4b46a1(_0x124325,_0x6cbd66,_0x31f30f,_0x3f8f14,_0x25fc21),_0x26ccc8[_0x5bd3be++]=_0x6cbd66,_0x26ccc8[_0x5bd3be++]=_0x31f30f,_0x26ccc8[_0x5bd3be++]=_0x3f8f14,_0x26ccc8[_0x5bd3be++]=_0x25fc21;}return _0x46dd50(_0x26ccc8),_0x392c12(..._0x4a59f0),_0x23bfa5;},'decrypt'(_0x260694,_0x30b467){const _0x3503d4=_0x2bfd24;_0x4e2359(_0x260694);let _0x2b9d3a=_0xe1c6b6(_0xa2ae2c),_0x515f35=_0x16a99d,_0x25be3=[_0x2b9d3a];(!_0x2e1bf7||!_0x5458d5(_0x515f35))&&_0x25be3[_0x3503d4(0x264)](_0x515f35=_0x333e81(_0x515f35));let _0x2e744f=_0x11dcb3(_0x515f35);_0x46dd50(_0x2e744f),_0x30b467=_0x4f720f(_0x260694['length'],_0x30b467),_0x2faf74(_0x260694,_0x30b467),(!_0x2e1bf7||!_0x5458d5(_0x260694))&&_0x25be3[_0x3503d4(0x264)](_0x260694=_0x333e81(_0x260694));let _0x5aba7b=_0x11dcb3(_0x260694),_0x3a0496=_0x11dcb3(_0x30b467);_0x46dd50(_0x5aba7b);let _0x59ea7f=_0x2e744f[0x0],_0x52ba7d=_0x2e744f[0x1],_0x19c923=_0x2e744f[0x2],_0x55cf53=_0x2e744f[0x3];for(let _0x1a1da6=0x0;_0x1a1da6+0x4<=_0x5aba7b[_0x3503d4(0x352)];){let _0x2e1c4f=_0x59ea7f,_0x3cb626=_0x52ba7d,_0x1310f4=_0x19c923,_0x1442c4=_0x55cf53;_0x59ea7f=_0x5aba7b[_0x1a1da6+0x0],_0x52ba7d=_0x5aba7b[_0x1a1da6+0x1],_0x19c923=_0x5aba7b[_0x1a1da6+0x2],_0x55cf53=_0x5aba7b[_0x1a1da6+0x3];let {s0:_0x4f5571,s1:_0x5739ec,s2:_0xb0ca34,s3:_0xc0080b}=_0x2741a2(_0x2b9d3a,_0x59ea7f,_0x52ba7d,_0x19c923,_0x55cf53);_0x3a0496[_0x1a1da6++]=_0x4f5571^_0x2e1c4f,_0x3a0496[_0x1a1da6++]=_0x5739ec^_0x3cb626,_0x3a0496[_0x1a1da6++]=_0xb0ca34^_0x1310f4,_0x3a0496[_0x1a1da6++]=_0xc0080b^_0x1442c4;}return _0x46dd50(_0x3a0496),_0x392c12(..._0x25be3),_0x31b3b2(_0x30b467,_0x5ac805);}};});function _0x1a4fa3(_0x36d5d0){const _0x150598=_0x2cf920;let _0x19fe49=atob(_0x36d5d0),_0x3b89cc=new Uint8Array(_0x19fe49[_0x150598(0x352)]);for(let _0x5f1a1b=0x0;_0x5f1a1b<_0x19fe49['length'];_0x5f1a1b++)_0x3b89cc[_0x5f1a1b]=_0x19fe49[_0x150598(0x359)](_0x5f1a1b);return _0x3b89cc;}function _0x18c615(_0x231fa2){const _0x2e41cc=_0x2cf920;let _0xcab36b='';for(let _0x4d7f2b=0x0;_0x4d7f2b<_0x231fa2[_0x2e41cc(0x352)];_0x4d7f2b++)_0xcab36b+=String[_0x2e41cc(0x192)](_0x231fa2[_0x4d7f2b]);return btoa(_0xcab36b);}function _0x4f8d73(_0x1bf515,_0x39226a){let _0x3b4130=_0x1a4fa3(_0x39226a),_0xc393b0=_0xa6c36c(0x10);return _0x18c615(_0x17c7d(_0xc393b0,_0x4f5e7c(_0x3b4130,_0xc393b0)['encrypt'](_0x1685e1(_0x1bf515))));}function _0x165570(){const _0x43b4d4=_0x2cf920;let _0x151382=(0x0,_0x4e70d5[_0x43b4d4(0x16e)])()[_0x43b4d4(0x19d)];if(typeof window<'u'&&window[_0x43b4d4(0x295)]!==void 0x0&&_0x151382){let _0x2ce1f3={'time':Math[_0x43b4d4(0x1ce)](Date[_0x43b4d4(0x176)]()/0x3e8),'domain':location[_0x43b4d4(0x44c)]};return _0x4f8d73(JSON[_0x43b4d4(0x2a9)](_0x2ce1f3),_0x151382);}}let _0x40fc03=class{constructor(_0x173628){const _0xa8fbc0=_0x2cf920;this[_0xa8fbc0(0x1b7)]=_0x173628,this[_0xa8fbc0(0x2df)]();}[_0x2cf920(0x2df)](){const _0x2e6a71=_0x2cf920;this['_httpService'][_0x2e6a71(0x3e3)]({'interceptor':(_0x2ea879,_0x47ce28)=>{const _0x28f614=_0x2e6a71;let _0x42b36e=_0x165570();return _0x42b36e&&_0x2ea879[_0x28f614(0x403)][_0x28f614(0x1c5)](_0x28f614(0x353),_0x42b36e),_0x47ce28(_0x2ea879);}});}};_0x40fc03=_0x30bef6([_0x177aa6(0x0,(0x0,_0x55970d['Inject'])(_0x19dbf0[_0x2cf920(0x357)]))],_0x40fc03);let _0x593727=class extends _0x55970d['RxDisposable']{constructor(_0x4ca5c1,_0x345f61,_0x2ab85e){const _0x22ae34=_0x2cf920;super(),this[_0x22ae34(0x47d)]=_0x4ca5c1,this[_0x22ae34(0x2e0)]=_0x345f61,this[_0x22ae34(0x216)]=_0x2ab85e,_0x4fa34c(this,'_unitInfo$',new _0x2accac[(_0x22ae34(0x45f))](null)),_0x4fa34c(this,_0x22ae34(0x177),new _0x2accac[(_0x22ae34(0x46a))]()),_0x4fa34c(this,_0x22ae34(0x25a),this[_0x22ae34(0x30d)][_0x22ae34(0x21a)]()),_0x4fa34c(this,'unitLoaded$',this[_0x22ae34(0x177)]['asObservable']());}[_0x2cf920(0x202)](){const _0x1b5bfe=_0x2cf920;super[_0x1b5bfe(0x202)](),this[_0x1b5bfe(0x177)]['complete'](),this[_0x1b5bfe(0x30d)][_0x1b5bfe(0x15a)]();}async['loadUnitOfRevision'](_0x5692e2,_0xf6d9cf,_0x264631,_0x46d457){const _0x338fde=_0x2cf920;this[_0x338fde(0x30d)]['next']({'unitId':_0x5692e2,'type':_0xf6d9cf,'subUnitId':_0x46d457});let _0x437e0d=null;switch(_0xf6d9cf){case _0x55970d[_0x338fde(0x30c)][_0x338fde(0x368)]:_0x437e0d=await this[_0x338fde(0x2e0)][_0x338fde(0x328)](_0x5692e2,_0x264631,void 0x0,{'initialSubUnitId':_0x46d457});break;case _0x55970d[_0x338fde(0x30c)]['UNIVER_DOC']:_0x437e0d=await this[_0x338fde(0x2e0)]['loadDoc'](_0x5692e2,_0x264631);break;case _0x55970d['UniverInstanceType']['UNIVER_SLIDE']:_0x437e0d=await this[_0x338fde(0x2e0)][_0x338fde(0x204)](_0x5692e2,_0x264631);break;case _0x55970d['UniverInstanceType'][_0x338fde(0x23f)]:_0x437e0d=await this[_0x338fde(0x2e0)][_0x338fde(0x2b9)](_0x5692e2,_0x264631);break;case _0x55970d[_0x338fde(0x30c)][_0x338fde(0x21b)]:_0x437e0d=await this[_0x338fde(0x2e0)]['loadBase'](_0x5692e2,_0x264631);break;case _0x55970d['UniverInstanceType'][_0x338fde(0x2c1)]:_0x437e0d=await this[_0x338fde(0x2e0)][_0x338fde(0x1be)](_0x5692e2,_0x264631);break;default:this[_0x338fde(0x47d)]['error'](_0x338fde(0x454),_0x338fde(0x298));break;}return _0x437e0d&&this[_0x338fde(0x177)][_0x338fde(0x2c4)](_0x437e0d),_0x437e0d;}async[_0x2cf920(0x287)](_0x43e82b,_0x105af5,_0xd5bc9b){const _0x5f08a6=_0x2cf920;var _0x21f3ac;this[_0x5f08a6(0x30d)]['next']({'unitId':_0x43e82b,'type':_0x105af5,'subUnitId':_0xd5bc9b});let _0x17b0fc=0x0,_0x13eddf=await((_0x21f3ac=this[_0x5f08a6(0x216)])==null?void 0x0:_0x21f3ac['loadOfflineData'](_0x43e82b));return _0x13eddf&&(_0x13eddf[_0x5f08a6(0x1b8)]||_0x13eddf[_0x5f08a6(0x142)][_0x5f08a6(0x352)]!==0x0)&&(_0x17b0fc=_0x13eddf['rev']),_0x17b0fc===0x0&&this['_logService']['debug']('[DataLoaderService]',_0x5f08a6(0x39b)),this[_0x5f08a6(0x37a)](_0x43e82b,_0x105af5,_0x17b0fc,_0xd5bc9b);}};_0x593727=_0x30bef6([_0x177aa6(0x0,_0x55970d[_0x2cf920(0x259)]),_0x177aa6(0x1,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x2794c1[_0x2cf920(0x380)])),_0x177aa6(0x2,(0x0,_0x55970d['Optional'])(_0x2d50be))],_0x593727);let _0x5b3428=class{constructor(_0x2571c9,_0x114d89,_0xef05b8){const _0xdd81e5=_0x2cf920;this['_httpService']=_0x2571c9,this['_configService']=_0x114d89,this[_0xdd81e5(0x48e)]=_0xef05b8,_0x4fa34c(this,_0xdd81e5(0x1df),0x0),_0x4fa34c(this,_0xdd81e5(0x223),new _0x2accac['Subject']()),_0x4fa34c(this,'change$',this[_0xdd81e5(0x223)]),_0x4fa34c(this,_0xdd81e5(0x260),new Map());}[_0x2cf920(0x14f)](_0x3c1236){const _0x5307ae=_0x2cf920;this[_0x5307ae(0x1df)]=_0x3c1236,this[_0x5307ae(0x223)][_0x5307ae(0x2c4)](_0x3c1236);}[_0x2cf920(0x288)](_0x5e48ab,_0x514d8c){const _0x3dd32c=_0x2cf920;if(_0x514d8c===_0x55970d['ImageSourceType'][_0x3dd32c(0x47c)]){let _0x5c401f=new Image();return _0x5c401f[_0x3dd32c(0x19e)]=_0x5e48ab,_0x5c401f;}return this[_0x3dd32c(0x260)][_0x3dd32c(0x3b4)](_0x5e48ab);}['addImageSourceCache'](_0x46dd89,_0x183b2e,_0x2eeace){const _0x44d726=_0x2cf920;_0x183b2e!==_0x55970d[_0x44d726(0x3cc)]['BASE64']&&_0x2eeace!=null&&this[_0x44d726(0x260)][_0x44d726(0x1c5)](_0x46dd89,_0x2eeace);}async[_0x2cf920(0x304)](_0x10a8ab){const _0x498cb1=_0x2cf920;try{let _0x4c03d4=this[_0x498cb1(0x36b)](this['_getSignURL'](),''+_0x10a8ab),_0x95c9b4=(await this[_0x498cb1(0x1b7)][_0x498cb1(0x3b4)](_0x4c03d4))[_0x498cb1(0x3eb)];if(_0x95c9b4[_0x498cb1(0x415)]&&_0x95c9b4[_0x498cb1(0x415)][_0x498cb1(0x2ec)]===_0xe7331e[_0x498cb1(0x22e)]['OK']){let _0x156963=(0x0,_0x55970d[_0x498cb1(0x229)])(_0x95c9b4['url'],this[_0x498cb1(0x1e9)]());return Promise[_0x498cb1(0x48a)](_0x156963);}return Promise[_0x498cb1(0x35f)](_0x95c9b4[_0x498cb1(0x415)]);}catch(_0x48a214){return Promise['reject'](_0x48a214);}}async[_0x2cf920(0x402)](_0x33a1fe){const _0x4e4dbe=_0x2cf920;let _0x30ccbc='';if(!_0x2b4257[_0x4e4dbe(0x301)][_0x4e4dbe(0x282)](_0x33a1fe[_0x4e4dbe(0x369)]))return this[_0x4e4dbe(0x1f5)](),Promise[_0x4e4dbe(0x35f)](Error(_0x55970d['ImageUploadStatusType'][_0x4e4dbe(0x206)]));if(_0x33a1fe[_0x4e4dbe(0x462)]>(0x0,_0x2b4257[_0x4e4dbe(0x3fe)])())return this[_0x4e4dbe(0x1f5)](),Promise[_0x4e4dbe(0x35f)](Error(_0x55970d[_0x4e4dbe(0x24b)][_0x4e4dbe(0x272)]));try{let _0x5116bc=new FormData();_0x5116bc[_0x4e4dbe(0x19f)]('file',_0x33a1fe);let _0x161805=this['_univerInstanceService'][_0x4e4dbe(0x2ce)](),_0x12a38c=_0x161805==null?void 0x0:_0x161805[_0x4e4dbe(0x170)]();if(!_0x12a38c)throw Error(_0x4e4dbe(0x269));let _0x6c551=this['_getUploadFileURL']()+_0x4e4dbe(0x3bb)+_0x33a1fe[_0x4e4dbe(0x462)][_0x4e4dbe(0x143)]()+'&source='+_0xe7331e[_0x4e4dbe(0x43c)]['UnitEmbedded']+_0x4e4dbe(0x2ee)+encodeURIComponent(_0x12a38c),_0x410886={'body':_0x5116bc},_0xd72870=(await this[_0x4e4dbe(0x1b7)]['post'](_0x6c551,_0x410886))[_0x4e4dbe(0x3eb)];if(typeof _0xd72870[_0x4e4dbe(0x2b3)]!='string')return this['_decreaseWaiting'](),Promise['reject'](Error(_0x55970d[_0x4e4dbe(0x24b)][_0x4e4dbe(0x213)]));_0x30ccbc=_0xd72870[_0x4e4dbe(0x2b3)];}catch{return this[_0x4e4dbe(0x1f5)](),Promise[_0x4e4dbe(0x35f)](Error(_0x55970d[_0x4e4dbe(0x24b)][_0x4e4dbe(0x213)]));}return new Promise((_0x35a69a,_0x5b0829)=>{const _0x54318d=_0x4e4dbe;let _0x2b3052=new FileReader();_0x2b3052[_0x54318d(0x2cf)](_0x33a1fe),_0x2b3052[_0x54318d(0x354)]=_0x36d5cf=>{const _0x1a64ba=_0x54318d;var _0x30e691;let _0xf232ad=(_0x30e691=_0x36d5cf[_0x1a64ba(0x18f)])==null?void 0x0:_0x30e691[_0x1a64ba(0x22c)];if(_0xf232ad==null){this[_0x1a64ba(0x1f5)](),_0x5b0829(Error(_0x55970d[_0x1a64ba(0x24b)]['ERROR_IMAGE']));return;}_0x35a69a({'imageId':(0x0,_0x55970d[_0x1a64ba(0x461)])(0x6),'imageSourceType':_0x55970d[_0x1a64ba(0x3cc)]['UUID'],'source':_0x30ccbc,'base64Cache':_0xf232ad,'status':_0x55970d[_0x1a64ba(0x24b)][_0x1a64ba(0x443)]}),this[_0x1a64ba(0x1f5)]();};});}[_0x2cf920(0x41a)](){const _0x7ffabe=_0x2cf920;let _0x3085d4=this[_0x7ffabe(0x297)][_0x7ffabe(0x3be)](_0x4240c0);return(_0x3085d4==null?void 0x0:_0x3085d4['uploadFileServerUrl'])??'/universer-api/stream/file/upload';}[_0x2cf920(0x436)](){const _0xe87728=_0x2cf920;let _0x5f53cb=this['_configService'][_0xe87728(0x3be)](_0x4240c0);return(_0x5f53cb==null?void 0x0:_0x5f53cb[_0xe87728(0x22b)])??_0xe87728(0x158);}['_getDownloadEndpointURL'](){const _0x5ce2c2=_0x2cf920;let _0x49d109=this[_0x5ce2c2(0x297)][_0x5ce2c2(0x3be)](_0x4240c0);return(_0x49d109==null?void 0x0:_0x49d109['downloadEndpointUrl'])??location[_0x5ce2c2(0x2c3)];}[_0x2cf920(0x36b)](_0x663699,_0x167ab5){const _0x18b82b=_0x2cf920;return _0x663699[_0x18b82b(0x464)](_0x18b82b(0x2cb),_0x167ab5);}[_0x2cf920(0x1f5)](){const _0x20617f=_0x2cf920;--this[_0x20617f(0x1df)],this[_0x20617f(0x223)]['next'](this[_0x20617f(0x1df)]);}};_0x5b3428=_0x30bef6([_0x177aa6(0x0,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x19dbf0['HTTPService'])),_0x177aa6(0x1,_0x55970d['IConfigService']),_0x177aa6(0x2,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d[_0x2cf920(0x2d6)]))],_0x5b3428);let _0xda5f19=class{constructor(_0x31a2f4,_0x5d11c2){const _0x441898=_0x2cf920;this['_configService']=_0x31a2f4,this[_0x441898(0x1b1)]=_0x5d11c2;}[_0x2cf920(0x3d1)](){const _0xfc1151=_0x2cf920;let _0xcebf0c=this['_configService'][_0xfc1151(0x3be)](_0x4240c0);return(_0xcebf0c==null?void 0x0:_0xcebf0c[_0xfc1151(0x381)])??'/universer-api/authz';}async[_0x2cf920(0x33a)](_0x5746d8){const _0x4512ea=_0x2cf920;let _0x5efc95=this[_0x4512ea(0x3d1)]()+'/collaborator';return{'list':[{'title':_0x4512ea(0x450),'mentions':(await this['_HTTPService'][_0x4512ea(0x3b4)](_0x5efc95,{'params':{'objectID':_0x5746d8[_0x4512ea(0x38e)],'unitID':_0x5746d8[_0x4512ea(0x38e)]}}))[_0x4512ea(0x3eb)][_0x4512ea(0x3b7)][_0x4512ea(0x420)](_0xb5bc36=>({'objectId':_0xb5bc36['id'],'name':_0xb5bc36['subject'][_0x4512ea(0x23a)],'metadata':{'icon':_0xb5bc36[_0x4512ea(0x3ec)]['avatar']},'label':_0xb5bc36[_0x4512ea(0x3ec)][_0x4512ea(0x23a)],'objectType':_0x55970d[_0x4512ea(0x299)][_0x4512ea(0x33b)]})),'metadata':{},'type':_0x55970d[_0x4512ea(0x299)][_0x4512ea(0x33b)]}]};}};_0xda5f19=_0x30bef6([_0x177aa6(0x0,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d[_0x2cf920(0x412)])),_0x177aa6(0x1,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x19dbf0[_0x2cf920(0x357)]))],_0xda5f19);let _0x59a3f4=class extends _0x55970d[_0x2cf920(0x233)]{constructor(_0x5f1fe8,_0x503a72,_0x13f746,_0x303703,_0x4a5f27){const _0x143dc8=_0x2cf920;super(),this[_0x143dc8(0x39d)]=_0x5f1fe8,this[_0x143dc8(0x48e)]=_0x503a72,this['_permissionService']=_0x13f746,this[_0x143dc8(0x32d)]=_0x303703,this['_collaborationUIEventService']=_0x4a5f27,this[_0x143dc8(0x261)](),this[_0x143dc8(0x33f)]();}['_initCloseConn'](){const _0x5e4daf=_0x2cf920;let _0x58e6cc=async _0x49fdcf=>{const _0x2ffdc4=_0x38ab;(await this[_0x2ffdc4(0x32d)]['requireSession'](_0x49fdcf))[_0x2ffdc4(0x25f)]['pipe']((0x0,_0x11e320['filter'])(_0x495216=>_0x495216[_0x2ffdc4(0x2af)]===_0x2794c1['CollaborationEvent'][_0x2ffdc4(0x2a0)]),(0x0,_0x11e320[_0x2ffdc4(0x1e6)])(this[_0x2ffdc4(0x258)]))[_0x2ffdc4(0x32b)](_0x4f09ca=>{const _0x20649b=_0x2ffdc4;let {reason:_0x47bebe}=_0x4f09ca['data'];this['_collaborationUIEventService'][_0x20649b(0x45c)]({'id':_0x20649b(0x42c),'data':_0x47bebe}),this[_0x20649b(0x2cd)][_0x20649b(0x448)](new _0x6943['WorkbookEditablePermission'](_0x49fdcf)['id'],!0x1),this[_0x20649b(0x32d)]['closeSession'](_0x49fdcf);});};(0x0,_0x2accac['merge'])(this[_0x5e4daf(0x48e)][_0x5e4daf(0x3d6)](_0x55970d[_0x5e4daf(0x30c)]['UNIVER_SHEET']),this[_0x5e4daf(0x48e)][_0x5e4daf(0x3d6)](_0x55970d[_0x5e4daf(0x30c)]['UNIVER_DOC']),this[_0x5e4daf(0x48e)][_0x5e4daf(0x3d6)](_0x55970d[_0x5e4daf(0x30c)][_0x5e4daf(0x23f)]),this[_0x5e4daf(0x48e)]['getTypeOfUnitAdded$'](_0x55970d[_0x5e4daf(0x30c)][_0x5e4daf(0x21b)]))[_0x5e4daf(0x21c)]((0x0,_0x11e320[_0x5e4daf(0x420)])(_0x576663=>_0x576663[_0x5e4daf(0x414)]['getUnitId']()),(0x0,_0x11e320[_0x5e4daf(0x20b)])(_0x54ac30=>!(0x0,_0x55970d[_0x5e4daf(0x277)])(_0x54ac30)),(0x0,_0x11e320['takeUntil'])(this[_0x5e4daf(0x258)]))['subscribe'](_0x1a4596=>{_0x58e6cc(_0x1a4596);});}[_0x2cf920(0x261)](){const _0x21427c=_0x2cf920;let _0x32ce35=async _0x114e5c=>{const _0x16a41f=_0x38ab;let _0x2093f0=await this[_0x16a41f(0x32d)][_0x16a41f(0x440)](_0x114e5c),_0xf49c35=this[_0x16a41f(0x39d)][_0x16a41f(0x3b4)](_0x6943[_0x16a41f(0x1e0)]);_0x2093f0[_0x16a41f(0x25f)]['pipe']((0x0,_0x11e320[_0x16a41f(0x20b)])(_0x209d53=>_0x209d53['eventID']===_0x2794c1[_0x16a41f(0x257)][_0x16a41f(0x25c)]),(0x0,_0x11e320[_0x16a41f(0x1e6)])(this[_0x16a41f(0x258)]))['subscribe'](_0x49a2e7=>{const _0x23d9ef=_0x16a41f;let {objectId:_0x2ec728}=_0x49a2e7[_0x23d9ef(0x238)];_0x2ec728===_0x114e5c?_0xf49c35[_0x23d9ef(0x1e1)](_0x114e5c):_0xf49c35[_0x23d9ef(0x32c)](_0x114e5c,_0x2ec728);});};(0x0,_0x2accac[_0x21427c(0x411)])(this[_0x21427c(0x48e)][_0x21427c(0x3d6)](_0x55970d[_0x21427c(0x30c)][_0x21427c(0x368)]))[_0x21427c(0x21c)]((0x0,_0x11e320[_0x21427c(0x420)])(_0x488f32=>_0x488f32[_0x21427c(0x414)][_0x21427c(0x170)]()),(0x0,_0x11e320[_0x21427c(0x20b)])(_0x577bd1=>!(0x0,_0x55970d['isInternalEditorID'])(_0x577bd1)),(0x0,_0x11e320['takeUntil'])(this[_0x21427c(0x258)]))[_0x21427c(0x32b)](_0x536525=>{_0x32ce35(_0x536525);});}};_0x59a3f4=_0x30bef6([_0x177aa6(0x0,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x55970d['Injector'])),_0x177aa6(0x1,_0x55970d['IUniverInstanceService']),_0x177aa6(0x2,_0x55970d[_0x2cf920(0x3c4)]),_0x177aa6(0x3,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x3b6b61)),_0x177aa6(0x4,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x34126c))],_0x59a3f4);let _0x3f1679=class{constructor(_0xc8e301,_0x207eb5){const _0x3d91c2=_0x2cf920;this[_0x3d91c2(0x297)]=_0xc8e301,this[_0x3d91c2(0x1b7)]=_0x207eb5;}async['getUnitOnRev'](_0x337005,_0x5b502b){const _0x543cc6=_0x2cf920;var _0x25669d;let {unitID:_0x384294,type:_0x231bab,revision:_0x4df8c2=0x0}=_0x5b502b,_0x2060eb=this[_0x543cc6(0x3bc)]()+'/'+_0x231bab+_0x543cc6(0x163)+_0x384294+'/rev/'+_0x4df8c2,_0x3e410e=(await this['_httpService']['get'](_0x2060eb))[_0x543cc6(0x3eb)],_0x443146=(_0x25669d=_0x3e410e['snapshot'])==null?void 0x0:_0x25669d[_0x543cc6(0x314)];if(_0x443146){let _0x2de51a=_0x443146==null?void 0x0:_0x443146[_0x543cc6(0x197)];_0x443146[_0x543cc6(0x197)]=_0x2794c1[_0x543cc6(0x452)]['encode']((0x0,_0x2794c1['b64DecodeUnicode'])(_0x2de51a)),Object[_0x543cc6(0x426)](_0x443146[_0x543cc6(0x38c)])['forEach'](([,_0x3e29b3])=>{const _0x38d958=_0x543cc6;let _0x28ba93=_0x3e29b3[_0x38d958(0x197)];_0x3e29b3[_0x38d958(0x197)]=_0x2794c1[_0x38d958(0x452)][_0x38d958(0x319)]((0x0,_0x2794c1[_0x38d958(0x3c6)])(_0x28ba93));});}return _0x3e410e;}async[_0x2cf920(0x310)](_0x3cea26,_0x25370a){const _0x4144b8=_0x2cf920;let {unitID:_0x148ca2,type:_0x47b2e3,blockID:_0x52596f}=_0x25370a,_0x1d005a=this[_0x4144b8(0x312)]()+'/'+_0x47b2e3+_0x4144b8(0x163)+_0x148ca2+_0x4144b8(0x2a8)+_0x52596f;return(await this[_0x4144b8(0x1b7)][_0x4144b8(0x3b4)](_0x1d005a))[_0x4144b8(0x3eb)];}async['getDeserializedSheetBlock'](_0x188e9e,_0x4f11cc){const _0xcb8dc3=_0x2cf920;let {unitID:_0x2d906f,type:_0x495379,blockID:_0x3debd0}=_0x4f11cc,_0x2934b6=this[_0xcb8dc3(0x312)]()+_0xcb8dc3(0x2a8)+_0x495379+_0xcb8dc3(0x163)+_0x2d906f+_0xcb8dc3(0x2a8)+_0x3debd0;return(await this['_httpService']['get'](_0x2934b6))[_0xcb8dc3(0x3eb)];}async[_0x2cf920(0x3af)](_0x41dfbd,_0x2c646b){const _0x38c619=_0x2cf920;let {unitID:_0x3ba3a2,type:_0x4f10cb,from:_0x2f3c27,to:_0x552fa5}=_0x2c646b,_0x1b0339=this[_0x38c619(0x312)]()+'/'+_0x4f10cb+_0x38c619(0x163)+_0x3ba3a2+'/fetchmissing?from='+_0x2f3c27+_0x38c619(0x222)+_0x552fa5;return(await this['_httpService'][_0x38c619(0x3b4)](_0x1b0339))[_0x38c619(0x3eb)];}[_0x2cf920(0x3bc)](){const _0x47d8c4=_0x2cf920;return this['_configService']['getConfig']('SNAPSHOT_URL_KEY')??this[_0x47d8c4(0x312)]();}[_0x2cf920(0x312)](){const _0x4c36ca=_0x2cf920;let _0x248416=this[_0x4c36ca(0x297)][_0x4c36ca(0x3be)](_0x4240c0);return(_0x248416==null?void 0x0:_0x248416['snapshotServerUrl'])??_0x4c36ca(0x291);}async[_0x2cf920(0x3c8)](_0x53be47,_0x904bf3){const _0x16c1ff=_0x2cf920;let _0xae8872=_0x16c1ff(0x418)+_0x904bf3[_0x16c1ff(0x369)]+_0x16c1ff(0x163)+_0x904bf3[_0x16c1ff(0x45e)]+_0x16c1ff(0x248);return(await this[_0x16c1ff(0x1b7)]['get'](_0xae8872,{'params':{'resourceId':JSON[_0x16c1ff(0x2a9)](_0x904bf3[_0x16c1ff(0x40f)])}}))[_0x16c1ff(0x3eb)];}['saveSnapshot'](){const _0x4c616a=_0x2cf920;throw Error(_0x4c616a(0x41c));}['updateSnapshot'](){const _0x48d483=_0x2cf920;throw Error(_0x48d483(0x41c));}['saveSheetBlock'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){const _0x234463=_0x2cf920;throw Error(_0x234463(0x41c));}[_0x2cf920(0x467)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x2cf920(0x232)](){const _0x524f49=_0x2cf920;throw Error(_0x524f49(0x41c));}};_0x3f1679=_0x30bef6([_0x177aa6(0x0,_0x55970d[_0x2cf920(0x412)]),_0x177aa6(0x1,(0x0,_0x55970d[_0x2cf920(0x34b)])(_0x19dbf0['HTTPService']))],_0x3f1679);let _0x2380a3=class extends _0x55970d[_0x2cf920(0x217)]{constructor(_0x2b5cf8,_0xc621aa,_0x2bcc8f,_0x445e10,_0x10b0ee,_0x18b38e){const _0x59e4f3=_0x2cf920;super(_0x2b5cf8,_0xc621aa,_0x2bcc8f,_0x445e10),this[_0x59e4f3(0x27c)]=_0x10b0ee,this['_logService']=_0x18b38e;}[_0x2cf920(0x2b8)](_0xc65563,_0x254459){const _0x42aa4d=_0x2cf920;let _0x2087ce=this[_0x42aa4d(0x303)](_0xc65563);if(_0x2087ce)try{let _0x24f6e3=this['_transformStack'](_0x2087ce,_0x254459);this[_0x42aa4d(0x19c)](_0xc65563,_0x24f6e3);}catch(_0x3ec38a){this[_0x42aa4d(0x47d)]['error'](_0x42aa4d(0x2ba),_0x3ec38a),this[_0x42aa4d(0x35a)](_0xc65563);}let _0x269a65=this[_0x42aa4d(0x3ad)](_0xc65563);if(_0x269a65)try{let _0x190e5f=this[_0x42aa4d(0x490)](_0x269a65,_0x254459);this[_0x42aa4d(0x2e6)](_0xc65563,_0x190e5f);}catch(_0x42a8e4){this[_0x42aa4d(0x47d)][_0x42aa4d(0x415)](_0x42a8e4),this[_0x42aa4d(0x40a)](_0xc65563);}}[_0x2cf920(0x35a)](_0x309278){const _0xcc5338=_0x2cf920;let _0x34e081=this[_0xcc5338(0x303)](_0x309278);_0x34e081&&(_0x34e081[_0xcc5338(0x352)]=0x0,this[_0xcc5338(0x167)]());}[_0x2cf920(0x40a)](_0xf495be){const _0x1f6e02=_0x2cf920;let _0x39281a=this[_0x1f6e02(0x3ad)](_0xf495be);_0x39281a&&(_0x39281a[_0x1f6e02(0x352)]=0x0,this[_0x1f6e02(0x167)]());}[_0x2cf920(0x19c)](_0x207cf4,_0x5d277f){this['_undoStacks']['set'](_0x207cf4,_0x5d277f),this['_updateStatus']();}[_0x2cf920(0x2e6)](_0x4b75be,_0x3565a5){const _0x383af0=_0x2cf920;this['_redoStacks']['set'](_0x4b75be,_0x3565a5),this[_0x383af0(0x167)]();}[_0x2cf920(0x490)](_0x5be70b,_0x1cd6c9){const _0x4d12ff=_0x2cf920;let _0x15039d=[],_0x422434=_0x1cd6c9,_0x527aee=_0x1cd6c9;for(let _0xbc602c=_0x5be70b[_0x4d12ff(0x352)]-0x1;_0xbc602c>=0x0;_0xbc602c--){let {unitID:_0x278986,undoMutations:_0x2d5e50,redoMutations:_0x2c2059}=_0x5be70b[_0xbc602c],_0x7ef664=this[_0x4d12ff(0x27c)]['transformMutationsWithChangeset'](_0x422434,_0x2d5e50),_0x2eeadd=this[_0x4d12ff(0x27c)]['transformMutationsWithChangeset'](_0x527aee,_0x2c2059);if((0x0,_0x2794c1[_0x4d12ff(0x3ae)])(_0x7ef664)||(0x0,_0x2794c1[_0x4d12ff(0x3ae)])(_0x2eeadd)){this[_0x4d12ff(0x47d)]['error'](_0x4d12ff(0x2ba),_0x4d12ff(0x2de),_0x7ef664,_0x2eeadd);break;}_0x422434=_0x7ef664[_0x4d12ff(0x3ed)],_0x527aee=_0x2eeadd['c1Prime'],_0x15039d[_0x4d12ff(0x264)]({'unitID':_0x278986,'undoMutations':_0x7ef664[_0x4d12ff(0x377)],'redoMutations':_0x2eeadd[_0x4d12ff(0x377)]});}return _0x15039d[_0x4d12ff(0x1b0)]();}};_0x2380a3=_0x30bef6([_0x177aa6(0x0,_0x55970d[_0x2cf920(0x2d6)]),_0x177aa6(0x1,_0x55970d[_0x2cf920(0x201)]),_0x177aa6(0x2,_0x55970d[_0x2cf920(0x2bf)]),_0x177aa6(0x3,_0x55970d['IConfigService']),_0x177aa6(0x4,_0x2794c1[_0x2cf920(0x2ae)]),_0x177aa6(0x5,_0x55970d[_0x2cf920(0x259)])],_0x2380a3);let _0x5b9ab2=class extends _0x55970d['Plugin']{constructor(_0x578a37=_0x1bb230,_0x30a76f,_0x94ee82,_0x470338){const _0x2f64ad=_0x2cf920;super(),this[_0x2f64ad(0x280)]=_0x578a37,this[_0x2f64ad(0x47d)]=_0x30a76f,this[_0x2f64ad(0x39d)]=_0x94ee82,this[_0x2f64ad(0x297)]=_0x470338;let {..._0x569cf1}=(0x0,_0x55970d[_0x2f64ad(0x411)])({},_0x1bb230,this[_0x2f64ad(0x280)]);if(!_0x569cf1[_0x2f64ad(0x3aa)])throw Error(_0x2f64ad(0x2c7));this[_0x2f64ad(0x280)]=_0x569cf1,this[_0x2f64ad(0x297)]['setConfig'](_0x4240c0,_0x569cf1);}[_0x2cf920(0x455)](){const _0x2a324f=_0x2cf920;this[_0x2a324f(0x44a)](),this[_0x2a324f(0x397)]();}[_0x2cf920(0x44a)](){const _0x9ec61f=_0x2cf920;var _0x2a89a7,_0x56923a;this[_0x9ec61f(0x39d)][_0x9ec61f(0x179)](_0x55970d[_0x9ec61f(0x37b)])&&this[_0x9ec61f(0x47d)][_0x9ec61f(0x415)](_0x9ec61f(0x2f4),_0x9ec61f(0x262));let _0x1c6614=(0x0,_0x55970d['mergeOverrideWithDependencies'])([[_0x55970d[_0x9ec61f(0x37b)],{'useClass':_0x2380a3}],[_0x35eb50,{'useValue':_0x1f591d()}],[_0x3b6b61],[_0x33cfda],[_0x1b9d17],[_0x58ea14],[_0x40fc03],[_0x1bc146],[_0x59a3f4],[_0x34126c],[_0x593727],[_0x43e3be,{'useClass':this[_0x9ec61f(0x280)][_0x9ec61f(0x3aa)]}],[_0x2794c1['ISnapshotServerService'],{'useClass':_0x3f1679}],[_0x55970d[_0x9ec61f(0x1e8)],{'useClass':_0x5d2ee7}],[_0x55970d[_0x9ec61f(0x153)],{'useClass':_0x5b3428}],[_0x4a254f,{'useClass':_0x2ef9e0}],[_0x55970d[_0x9ec61f(0x390)],{'useClass':_0xda5f19}],[_0x2297ef],[_0x4efe0e]],(_0x2a89a7=this[_0x9ec61f(0x280)])==null?void 0x0:_0x2a89a7['override']);if(!((_0x56923a=this[_0x9ec61f(0x280)])!=null&&_0x56923a[_0x9ec61f(0x39a)])){let _0x24e63f=_0x1c6614['findIndex'](([_0x4409f6])=>_0x4409f6===_0xf5879a);_0x24e63f!==-0x1&&_0x1c6614[_0x9ec61f(0x446)](_0x24e63f,0x1);}(0x0,_0x55970d[_0x9ec61f(0x409)])(this[_0x9ec61f(0x39d)],_0x1c6614);}[_0x2cf920(0x397)](){const _0x121a55=_0x2cf920;var _0x1f8af9,_0x4bbb1b;if(this[_0x121a55(0x39d)][_0x121a55(0x3b4)](_0x19dbf0[_0x121a55(0x357)])[_0x121a55(0x3e3)]({'priority':0x14,'interceptor':(0x0,_0x19dbf0[_0x121a55(0x367)])({'maxParallel':0x6})}),!((_0x1f8af9=this[_0x121a55(0x280)])!=null&&_0x1f8af9[_0x121a55(0x473)])){var _0x31c262;(_0x31c262=this[_0x121a55(0x39d)]['get'](_0x2d50be,_0x55970d['Quantity']['OPTIONAL']))==null||_0x31c262['disableLocalCache']();}(_0x4bbb1b=this[_0x121a55(0x280)])!=null&&_0x4bbb1b['enableAuthServer']&&(0x0,_0x55970d[_0x121a55(0x3a3)])(this[_0x121a55(0x39d)],[[_0x58ea14]]),(0x0,_0x55970d[_0x121a55(0x3a3)])(this[_0x121a55(0x39d)],[[_0x40fc03],[_0x2297ef],[_0x59a3f4]]);}};_0x4fa34c(_0x5b9ab2,_0x2cf920(0x37d),_0x2cf920(0x28d)),_0x4fa34c(_0x5b9ab2,_0x2cf920(0x427),_0x38d499),_0x4fa34c(_0x5b9ab2,_0x2cf920(0x17b),_0x34c9a3),_0x5b9ab2=_0x30bef6([(0x0,_0x55970d[_0x2cf920(0x28b)])(_0x4e70d5[_0x2cf920(0x1f8)],_0x19dbf0[_0x2cf920(0x30f)],_0x2794c1[_0x2cf920(0x2be)]),_0x177aa6(0x1,_0x55970d[_0x2cf920(0x259)]),_0x177aa6(0x2,(0x0,_0x55970d['Inject'])(_0x55970d[_0x2cf920(0x371)])),_0x177aa6(0x3,_0x55970d[_0x2cf920(0x412)])],_0x5b9ab2),Object[_0x2cf920(0x469)](_0x246d9a,_0x2cf920(0x17c),{'enumerable':!0x0,'get':function(){return _0x5d2ee7;}}),Object[_0x2cf920(0x469)](_0x246d9a,_0x2cf920(0x44e),{'enumerable':!0x0,'get':function(){return _0xd730f4;}}),Object[_0x2cf920(0x469)](_0x246d9a,_0x2cf920(0x165),{'enumerable':!0x0,'get':function(){return _0x283e6d;}}),Object[_0x2cf920(0x469)](_0x246d9a,_0x2cf920(0x40e),{'enumerable':!0x0,'get':function(){return _0x5084fa;}}),Object['defineProperty'](_0x246d9a,'BoardCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x4ce479;}}),_0x246d9a[_0x2cf920(0x27a)]=_0x4240c0,Object[_0x2cf920(0x469)](_0x246d9a,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return _0x2ef9e0;}}),Object['defineProperty'](_0x246d9a,_0x2cf920(0x483),{'enumerable':!0x0,'get':function(){return _0x2297ef;}}),Object['defineProperty'](_0x246d9a,'CollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x3f4890;}}),Object[_0x2cf920(0x469)](_0x246d9a,_0x2cf920(0x333),{'enumerable':!0x0,'get':function(){return _0x5b3428;}}),Object[_0x2cf920(0x469)](_0x246d9a,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x22ba67;}}),Object[_0x2cf920(0x469)](_0x246d9a,_0x2cf920(0x2f6),{'enumerable':!0x0,'get':function(){return _0x3b6b61;}}),Object[_0x2cf920(0x469)](_0x246d9a,_0x2cf920(0x1f7),{'enumerable':!0x0,'get':function(){return _0x2a6461;}}),_0x246d9a[_0x2cf920(0x166)]=_0x5394b0,_0x246d9a[_0x2cf920(0x3e9)]=_0x57cb48,_0x246d9a[_0x2cf920(0x268)]=_0x34126c,Object[_0x2cf920(0x469)](_0x246d9a,_0x2cf920(0x180),{'enumerable':!0x0,'get':function(){return _0x2380a3;}}),_0x246d9a[_0x2cf920(0x3b9)]=_0x1bc146,Object['defineProperty'](_0x246d9a,_0x2cf920(0x33d),{'enumerable':!0x0,'get':function(){return _0x413821;}}),_0x246d9a[_0x2cf920(0x14d)]=_0x2cf920(0x341),_0x246d9a['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']='/universer-api/uniscript',_0x246d9a['DEFAULT_WS_SESSION_TICKET_URL']=_0x2cf920(0x3f3),Object[_0x2cf920(0x469)](_0x246d9a,_0x2cf920(0x2e1),{'enumerable':!0x0,'get':function(){return _0x593727;}}),Object[_0x2cf920(0x469)](_0x246d9a,_0x2cf920(0x47f),{'enumerable':!0x0,'get':function(){return _0x5bdd78;}}),Object[_0x2cf920(0x469)](_0x246d9a,_0x2cf920(0x39c),{'enumerable':!0x0,'get':function(){return _0x3cb219;}}),_0x246d9a['HEARTBEAT_INTERVAL_KEY']=_0x2cf920(0x265),_0x246d9a[_0x2cf920(0x489)]='HEARTBEAT_TIMEOUT',_0x246d9a[_0x2cf920(0x35c)]=_0x4a254f,_0x246d9a[_0x2cf920(0x3e8)]=_0x35eb50,_0x246d9a[_0x2cf920(0x1a4)]=_0x43e3be,_0x246d9a[_0x2cf920(0x2fc)]=_0x2d50be,_0x246d9a['INetworkConditionService']=_0x30c179,_0x246d9a[_0x2cf920(0x3b1)]=_0xf5879a,_0x246d9a['LOCAL_CACHE_INTERVAL']=0x3e8,_0x246d9a[_0x2cf920(0x294)]=_0x2cf920(0x1d9),Object['defineProperty'](_0x246d9a,'MemberService',{'enumerable':!0x0,'get':function(){return _0x33cfda;}}),Object['defineProperty'](_0x246d9a,_0x2cf920(0x437),{'enumerable':!0x0,'get':function(){return _0xda5f19;}}),Object['defineProperty'](_0x246d9a,_0x2cf920(0x2a5),{'enumerable':!0x0,'get':function(){return _0x430fb9;}}),Object[_0x2cf920(0x469)](_0x246d9a,'PdfCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x38b833;}}),Object[_0x2cf920(0x469)](_0x246d9a,_0x2cf920(0x296),{'enumerable':!0x0,'get':function(){return _0x14ace0;}}),_0x246d9a['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',_0x246d9a[_0x2cf920(0x162)]=_0x2cf920(0x431),_0x246d9a[_0x2cf920(0x318)]=_0x187756,Object[_0x2cf920(0x469)](_0x246d9a,_0x2cf920(0x15d),{'enumerable':!0x0,'get':function(){return _0x368bb9;}}),Object['defineProperty'](_0x246d9a,_0x2cf920(0x3e1),{'enumerable':!0x0,'get':function(){return _0x1b9d17;}}),Object[_0x2cf920(0x469)](_0x246d9a,'SlideCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x5f335b;}}),Object[_0x2cf920(0x469)](_0x246d9a,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return _0x3f1679;}}),Object[_0x2cf920(0x469)](_0x246d9a,_0x2cf920(0x26b),{'enumerable':!0x0,'get':function(){return _0x53b4b6;}}),_0x246d9a[_0x2cf920(0x32f)]=_0x4d37a7,Object[_0x2cf920(0x469)](_0x246d9a,_0x2cf920(0x2ea),{'enumerable':!0x0,'get':function(){return _0x5b9ab2;}}),_0x246d9a[_0x2cf920(0x477)]=_0x1f591d,_0x246d9a[_0x2cf920(0x311)]=_0x21c6e9,_0x246d9a[_0x2cf920(0x256)]=_0x2e6193,_0x246d9a[_0x2cf920(0x286)]=_0x3a96ea;}));function _0x38ab(_0x1091ce,_0x37b33b){_0x1091ce=_0x1091ce-0x142;const _0x2d9b2b=_0x2d9b();let _0x38abbd=_0x2d9b2b[_0x1091ce];return _0x38abbd;}function _0x2d9b(){const _0x5cfcf4=['status','_status$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','m2Prime','sendChangesetTimeout','retryCount','loadUnitOfRevision','IUndoRedoService','_state$','pluginName','SetSelectionsOperation','_transitionLocked','SnapshotService','authzUrl','textRanges','permissionRejEvent','firstValueFrom','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','SOCKET_FAILED','_tryReconnect','entityInit$','getInterceptPoints','[PendingState]:\x20received\x20rejection.','string','sheets','_roomCreated$','unitId','synced','IMentionIOService','focused$','CommandType','onTransformRemoteChangesetByStateCache','_acknowledgeAwaiting','reduce','session','_initDependencies','updateCursorEvent','_getCtorByUniverInstanceType','enableSingleActiveInstanceLock','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','FetchingMissState','_injector','timeoutTimer','UPDATE_CURSOR','PSEUDO_FETCH_MISSING_RESULT','@univerjs/telemetry','PERMISSION_REJ','touchDependencies','_networkConditionService','_replayCachedMutations','onTransformIME','shareReplay','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','@univerjs-pro/slides','socketService','_getConfig','createInstance','_getRedoStack','isTransformMutationsWithChangesetFailure','fetchMissingChangesets','_collaborationUIEventService','ISingleActiveUnitService','objectType','SOCKET_FAILED_RETRY','get','_localeService','_telemetryService','collaborators','every','CommentService','_collabSessionService','?size=','getSnapshotAPIPath','reconnect','getConfig','incrementRevOfUnit','cfgEnableObjInherit','_schedule','AddSlidePageMutation','JOIN_ROOM_FAILED','IPermissionService','@univerjs-pro/collaboration-client','b64DecodeUnicode','_listenToNetworkCondition','getResourcesRequest','some','_sendHeartbeat','addHandlerCallback','ImageSourceType','actions','concatMap','leaveEvent','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_getAPIPrefixPath','getRandomValues','post','method','_getSocketChannel','getTypeOfUnitAdded$','_awaitingChangeset','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','_getSendChangesetTimeout','Tools','updateCollaborator','RevisionService','LIVESHARE_OPERATION','startsWith','@univerjs/sheets','updatePermissionObjEvent','SheetTransformSelectionsService','unsubscribe','registerHTTPInterceptor','/new_changes','_onCombEvent','Wrong\x20sbox\x20length','UniverProCollaborationClient','ICollaborationClientAdapterService','CollaborationUIEventId','ISocketService','body','subject','c1Prime','/universer-api/oidc/authpage','_onUserLeave','onTransformRemoteChangesetByIMECache','tagLength','collaboratorID','/universer-api/user/session-ticket','revision','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','onLocalMutation','toDisposable','collaboration_new_changeset','getAttachmentUrl','onSyncEditingCollabCursor','unknown','commentUpdateEvent','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','getDrawingImageAllowSize','putCollaborators','requestParams','toStringTag','saveImage','headers','_pendingMutations','OFFLINE','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','_getLoginPath','9MXVCRu','registerDependencies','_clearRedo','_toggleOnline','loginUrlKey','Module','BaseCollaborationEntity','resourceIDs','status$','merge','IConfigService','_pendingSessions','unit','error','roomInfos','_members','/universer-api/snapshot/','appendMutation','_getUploadFileURL','UserManagerService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','onRemoteChangeset','CHANGESET_REJ','COMMENT_UPDATE','map','_instanceService','ITelemetryService','CHANGESET_ACK','nonce','delete','entries','packageName','baseRev','_startCollaboration','allowed','assign','CLOSE_ROOM','_doCreateSocket','Workbook','hasOwnProperty','_rescheduleHeartbeat','RETRY_CONNECTING_MAX_COUNT','rxjs','closeSession','forEach','object','_getSignURL','MentionIoHttpService','_onFetchMissResult','disposeWithMe','_remoteChangesetQueue','params','FileSource','Disposable','state','delay','requireSession','sort','onTransformSelections','SUCCUSS','iterator','__splitChunk__','splice','_removeRoom','updatePermissionPoint','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_registerDependencies','JOIN_ROOM_NOT_EXISTS','hostname','updateMember','AwaitingState','batchAllowed','People','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','textEncoder','UniverSheets','[DataLoaderService]','onStarting','_changesetReqId','_exhaustRemoteChangesetQueue','_isPermissionRej','toRemote','range','listCollaborators','emitEvent','_event$','unitID','BehaviorSubject','PENDING','generateRandomId','size','number','replace','submit\x20changeset\x20error!','_lockTransition','copyFileMeta','_maxTotalRetryTimeout','defineProperty','Subject','joinRsp','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','responseType','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_transformRemoteChangesetByStateCache','_onJoinRoomEvent','changesets','session.room-not-exists','enableOfflineEditing','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','_singleActiveUnitService','RemoveSlidePageMutation','createUniverCollaborationAdapter',',\x20got:\x20','removeMember','_roomMembers','_type','BASE64','_logService','_waitForHeartbeatResponse','DocCollaborationEntity','pending','_socket','158442JgCIKs','CollaborationController','duration','/universer-api/comb','BYTES_PER_ELEMENT','put','take','HEARTBEAT_TIMEOUT_KEY','resolve','USERS_LEAVE','JOIN','PERMISSION_DENIED','_univerInstanceService','_createHandler','_transformStack','sessionStatus','mutations','toString','_transformSelections','href','[CollaborationSession]','reqId','GLOBAL_ROOMS_CNT_EXCEEDS','/collaborator','sessionStatus$','_sessionChannels','getTime','DEFAULT_COLLAB_WEB_SOCKET_URL','sid','setWaitCount','editingUnit','listRoles','key','IImageIoService','capture','toggleOnline','parseProtocolChangeset','routeKey','/universer-api/file/{fileID}/sign-url','_updateState','complete','DisposableCollection','candidateSocket','SheetCollaborationEntity','/object/','number\x20expected,\x20got\x20','executeCommand','maxSize','RETRY_CONNECTING_MAX_COUNT_KEY','/unit/','\x0aCurrent:\x20','AwaitingWithPendingState','CollaborationStatus','_updateStatus','_onRecvEvent','url','_upload','csShouldRetryEvent','USERS_ENTER','110474IkUQnb','getGlobalObject','_getCurrentRevision','getUnitId','equals','UnitEmbedded','COMPRESS_MUTATION_APPLY','prototype','MUTATION','now','_unitLoaded$','_onRemoteRetry','has','[SyncedState]:\x20received\x20rejection.','version','AuthzIoHttpService','downloadEndpointUrl','_onLocalMutation','CONFLICT','CollaborativeUndoRedoService','@univerjs/docs','14203UEKmSa','c2Prime','_undoRedoService','getMemberID','_resendTimer','invalid\x20output,\x20must\x20be\x20aligned','HEARTBEAT_TIMEOUT','type=','getCurrentRevOfUnit','parse','_sheetTransformSelectionsService','open$','length=','target','_eventService','getWorkbookSelections','fromCharCode','CombCmd','session.room-permission-denied','catch','interceptor','originalMeta','1350770wPOuQU','decrypt','_handlerCallback','socketMessageSubscription','_substituteUndoStack','__Key__','src','append','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','AAD','_socketChannels','onMissingChangesets','ICollaborationSocketService','sendHeartbeatTimer','LIVESHARE_REQUEST_HOST','_clearScheduledTask','_unlockTransition','_sessionStatus$','ONLINE','UniverProSlides','attachment','_fetchMissChangesets','find','fill','reverse','_HTTPService','send','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_members$','members$','_throwTelemetryCollaborationNewChangeset','_httpService','awaitingChangeset','objectID','shouldCloseConn','_transformAndApplyRemoteChangeset','_resendWithTimeout','members','loadPdf','init','_handler','_resolveSessionIdentity','COMPRESS_MUTATION_SEND','message$','docStateChange$','set','retryConnectingTimer','UUID','memberID','add','_isEchoedAwaitingChangeset','offline','&source=','JOINING','floor','_applyRemoteChangeset','NEW_CHANGESETS','onlyLocal','_submitChangeset','_sender','JSONX','failed\x20to\x20apply\x20missed\x20changesets!','close','UniverNetwork','collaboration-client.local-cache-service','LOCAL_CACHE_INTERVAL','userID','_memberService','upload','_userManagerService','endpointKey','_waitCount','SheetPermissionInitController','initWorkbookPermissionChange','enableCollaboration','localUnitId','_emitMembers','getUploadOptions','takeUntil','sequenceExecute','IAuthzIoService','_getDownloadEndpointURL','getUnitStatus$','createSocket','getRoom','LIVESHARE_TERMINATE','_onConflict','_transformIMECache','_socketMessageSubscription','default','SYNCED','update','getMember','_decreaseWaiting','[CollaborationSessionService]:\x20socket\x20error','CollaborationSocketService','UniverLicensePlugin','EmptyMutationInfo','socketReady','FETCH_MISSING','symbol','call','WorkbookEditablePermission','/-/object/-/batch_allowed','RichTextEditingMutation','ICommandService','dispose','_acknowledgedAwaitingRevision','loadSlide','UniverProLicense','ERROR_IMAGE_TYPE','buffer','infoRsp','_executeRemoteChangeset','onRemoteRetry','filter','_checkMissing','error$','LEAVE','1.0.0-beta.2','[PendingState]:\x20unhandled\x20univer\x20type:\x20','from','fetch_missing','ERROR_IMAGE','_clearRetryConnectingTimer','_onConnectionOpen','_localCacheService','LocalUndoRedoService','648dybgCL','transformChangesets','asObservable','UNIVER_BASE','pipe','isPermissionRej','UNIVER_SLIDE','onSendChangeset','SUBMIT_CHANGESET_TIMEOUT','_telemetryInfo','&to=','_change$','missingChangesets','?url=','isCompositionEnd','_clearTimeoutTimer','_onMessage','resolveWithBasePath','close$','signUrlServerUrl','result','newCsEvent','ErrorCode','_stopTelemetryCollaborationNewChangeset','_revisionService','[PendingState]:\x20received\x20acknowledgement.','getLatestCsReqIdBySid','RxDisposable','confirm','_socketService','\x0aAfter:\x20','isSafeInteger','data','MergeInterceptorFactory','name','_entities','_entityInit$','@univerjs/network','Error\x20on\x20receiving\x20event','UNIVER_BOARD','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','online$','_onRemoteRejected','_sendingTimer','onTransformState','isTransformChangesetsSuccess','fetchThroughInterceptors','AWAITING_WITH_PENDING','/resources','awaiting','parseChangesetToProtocol','ImageUploadStatusType','_onRemoteACK','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','CompressMutationService','encrypt','_startTelemetryCollaborationNewChangeset','onMutationExecutedForCollab','objects','_createInitialState','positive\x20integer\x20expected,\x20got\x20','_hasSessionsForEndpoint','getLocalCacheKey','CollaborationEvent','dispose$','ILogService','unitInfo$','_resendTimeout','UPDATE_PERMISSION_OBJ','_showConflictNotification','UniverDocs','event$','_imageSourceCache','_initUnitPermissionChange','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','push','HEARTBEAT_INTERVAL','liveShareNewHost','_tryEnsureSocket','CollaborationUIEventService','unitId\x20is\x20not\x20found','fetching\x20missing\x20changesets\x20from\x20','SyncedState','uuidv4','OTHER_CLIENTS_EDITING','705850uBtjUO','_scheduleCollaborationTimeoutTimer','tables','min','ERROR_EXCEED_SIZE','state$','_scheduleCompleteTimestamp','_transformStateCache','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','isInternalEditorID','isTransformMutationsWithChangesetSuccess','NOT_COLLAB','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getCollabEntity$','_transformService','text-x','UNISCRIPT_RUN','socket\x20open.','_config','/role','includes','Uint8Array','debug','[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.','serializeCombRequest','loadUnit','getImageSourceCache','getCurrentSelections','_createSocket','DependentOn','resend','UNIVER_COLLABORATION_CLIENT_PLUGIN','375944vkMwmB','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','crypto.getRandomValues\x20must\x20be\x20defined','/universer-api/snapshot',',\x20got\x20','/universer-api/authz','LOCAL_CACHE_INTERVAL_KEY','location','PendingState','_configService','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','MentionType','Failed\x20to\x20update\x20permission\x20point','updateOfflineData','localeService','COLLABORATION_ENDPOINT_INVALID','onMissedChangesetFetched','[CollaborationSessionService]','SHOULD_CLOSE_CONN','createIdentifier','byteOffset','_onConnectionFailed','_changesetSessionId','OfflineState','endpoint','OTHER_CLIENT_EDITING','/block/','stringify','toLocal','_state','LocaleService','_updateLocalCache','ITransformService','eventID','patch','_acknowledgeAwaitingIfReady','unitType','FileId','onRemoteRej','changeset','_clearLocalCache','backupOfflineData','transformUndoRedo','loadBoard','[CollaborationUndoRedoService]','ReplaySubject','collabWebSocketUrl','_init','UniverCollaborationPlugin','IContextService','_identity','UNIVER_PDF','_adapter','origin','next','_handleRemoteChangesets','onCommentUpdate','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','isArray','readyForCollab','blockRanges','{fileID}','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_permissionService','getFocusedUnit','readAsDataURL','onRemoteAck','subarray','_onRemoteChangeset','fromCollab','_onOffline','4JKVmtD','IUniverInstanceService','_compressMutationService','JOIN_ROOM_PERMISSION_DENIED','getTypeOfUnitDisposed$','Optional','CmdRspCode','Univer','file','transformStack\x20failed!','_initRequestHeader','_snapshotService','DataLoaderService','collaboration-client.auth.needGotoLoginAlert','function','_clearHeartbeatTimer','unit-cache-','_substituteRedoStack','EnsureSlideMasterPageMutation','INGEST','endsWith','UniverCollaborationClientPlugin','NO_OTHER_CLIENTS_EDITING','code','RECV','&assign=','_transformRemoteChangesetByIMECache','mapDocumentTypeToUniverInstanceType','_commentService','LIVESHARE_FETCH_OPERATIONS','save\x20fail\x20reason\x20is\x20','[UniverCollaborationClientPlugin]','cmd','CollaborationSessionService','objectActions','csAckEvent','stopTime','DEFAULT_FILE_NAME','_commentUpdate$','ILocalCacheService','disablePadding','HELLO','output','session.room-cnt-exceeds','DRAWING_IMAGE_ALLOW_IMAGE_LIST','\x20-\x20','_getUndoStack','getImage','Rectangle','SUBMIT_CHANGESET','clear','telemetry\x20info\x20is\x20not\x20initialized','UNIVER_DOC','loadOfflineData','setCfgEnableObjInherit','UniverInstanceType','_unitInfo$','byteLength','UniverNetworkPlugin','getSheetBlock','deserializeToCombResponse','_getAPIPrefix','MSG_FOR_ERROR','workbook','[CollaborationEntity]','nonceLength','_transformUndoredo','SessionStatus','encode','localCacheService','_initMergeInterceptor','_incrementRevisionNumber','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getCollabEntity','accept','_sessions','setShowComponents','UniverDrawing','_cfgEnableObjInherit','_docStateChangeManagerService','constructor','expected\x20Uint8Array','toggleOffline','loadSheet','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','collabSubmitChangesetUrl','subscribe','refreshPermission','_collaborationSessionService','getOwnPropertyDescriptor','UnitStatus','collaboration-client.config','session.room-full','toPrimitive','CollaborationImageIoService','getUnitType','@univerjs-pro/collaboration','[OfflineState]:\x20received\x20rejection.','JOIN_ROOM_FULL','CHANGESET_SHOULD_RETRY','_snapshotServerService','list','PERSON','_collaborationTimeoutTimer','ConflictState','IDLE','_initCloseConn','/allowed','ws://127.0.0.1:8000/universer-api/comb/connect','fetchMiss','conflict','_commandService','awaiting_with_pending','_queuedRemoteChangesets','encodeURIComponent','getCurrentUser','compose','/object','Inject','_clearCollaborationTimeoutTimer','_createSession','_onUserJoin','_collaborationPaused','slice','session.join-failed','length','x-univer-host','onload','FETCH_MISS','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','HTTPService','UniverCore','charCodeAt','_clearUndo','[SyncedState]:\x20received\x20acknowledgement.','IAttachmentIoService','transformMutationsWithChangeset','getValue','reject','_syncEditingCollabCursor','aes/pkcs7:\x20wrong\x20padding','not_collab','deepClone','POST','socket$','createCollaborator','ThresholdInterceptorFactory','UNIVER_SHEET','type','\x20of\x20length\x20','_replaceFileID','transformSelections','_joinRoom','HEARTBEAT','_shouldReportTelemetry','decorate','Injector','176876sFkkCp','resolveUnit'];_0x2d9b=function(){return _0x5cfcf4;};return _0x2d9b();}
|