@univerjs-pro/collaboration-client 1.0.3 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/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/types/controllers/collaboration/collaboration-state.d.ts +51 -11
- package/lib/types/facade/f-collaboration.d.ts +3 -4
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +3 -3
- package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +1 -0
- package/lib/types/services/data-loader/data-loader.service.d.ts +9 -2
- package/lib/types/services/local-cache/local-cache.service.d.ts +11 -6
- 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 _0x31da(_0x2d9c29,_0x1d9536){_0x2d9c29=_0x2d9c29-0xc4;const _0x4bb3ee=_0x4bb3();let _0x31da37=_0x4bb3ee[_0x2d9c29];return _0x31da37;}(function(_0x196278,_0x511fb7){const _0x3c102d=_0x31da,_0x34cfcc=_0x196278();while(!![]){try{const _0x3cadd3=-parseInt(_0x3c102d(0x267))/0x1+parseInt(_0x3c102d(0x2c6))/0x2+-parseInt(_0x3c102d(0xfd))/0x3*(parseInt(_0x3c102d(0x157))/0x4)+parseInt(_0x3c102d(0x1bd))/0x5*(-parseInt(_0x3c102d(0x3ca))/0x6)+-parseInt(_0x3c102d(0x265))/0x7*(-parseInt(_0x3c102d(0x3a3))/0x8)+parseInt(_0x3c102d(0x172))/0x9+parseInt(_0x3c102d(0x32d))/0xa;if(_0x3cadd3===_0x511fb7)break;else _0x34cfcc['push'](_0x34cfcc['shift']());}catch(_0x585500){_0x34cfcc['push'](_0x34cfcc['shift']());}}}(_0x4bb3,0xf24e7),function(_0x4da86d,_0x418094){const _0x463ebf=_0x31da;typeof exports==_0x463ebf(0x2e8)&&typeof module<'u'?_0x418094(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=='function'&&define['amd']?define([_0x463ebf(0x270),'@univerjs-pro/collaboration',_0x463ebf(0x3fd),_0x463ebf(0x2a6),'@univerjs/sheets',_0x463ebf(0x2bd),'@univerjs/protocol',_0x463ebf(0xe4),_0x463ebf(0x1ec),_0x463ebf(0x316),_0x463ebf(0x15c),'@univerjs-pro/license','@univerjs/drawing'],_0x418094):(_0x4da86d=typeof globalThis<'u'?globalThis:_0x4da86d||self,_0x418094(_0x4da86d[_0x463ebf(0x176)]={},_0x4da86d['UniverProCollaboration'],_0x4da86d[_0x463ebf(0x13f)],_0x4da86d[_0x463ebf(0x411)],_0x4da86d['UniverSheets'],_0x4da86d['rxjs'],_0x4da86d[_0x463ebf(0x39f)],_0x4da86d[_0x463ebf(0x396)],_0x4da86d[_0x463ebf(0x2bd)][_0x463ebf(0x1c8)],_0x4da86d[_0x463ebf(0x3b2)],_0x4da86d[_0x463ebf(0x368)],_0x4da86d[_0x463ebf(0x365)],_0x4da86d['UniverDrawing']));}(this,function(_0x533cdf,_0x22b414,_0xfd1b33,_0x1c8317,_0x23a42e,_0x29156e,_0x3c00fa,_0x5ad95d,_0x324d20,_0x185528,_0x1b853b,_0x139ed3,_0xd2cf72){const _0x1a1f79=_0x31da;Object['defineProperty'](_0x533cdf,Symbol[_0x1a1f79(0x3a7)],{'value':'Module'});let _0x46f3f1='collaboration-client.config',_0xf57348={};function _0x3901a3(_0x64134b){const _0x356a4b=_0x1a1f79;return JSON[_0x356a4b(0x1b0)](_0x64134b)['length'];}function _0x3a2f24(_0x532a84){'@babel/helpers - typeof';const _0x29be3b=_0x1a1f79;return _0x3a2f24=typeof Symbol==_0x29be3b(0x372)&&typeof Symbol[_0x29be3b(0x269)]==_0x29be3b(0x168)?function(_0x1902d9){return typeof _0x1902d9;}:function(_0x5d7624){const _0x186d79=_0x29be3b;return _0x5d7624&&typeof Symbol==_0x186d79(0x372)&&_0x5d7624['constructor']===Symbol&&_0x5d7624!==Symbol[_0x186d79(0x122)]?_0x186d79(0x168):typeof _0x5d7624;},_0x3a2f24(_0x532a84);}function _0x11dc10(_0x533ba7,_0x7620be){const _0xa7ac2f=_0x1a1f79;if(_0x3a2f24(_0x533ba7)!=_0xa7ac2f(0x2e8)||!_0x533ba7)return _0x533ba7;var _0x2f6c2e=_0x533ba7[Symbol[_0xa7ac2f(0x289)]];if(_0x2f6c2e!==void 0x0){var _0x24bbf7=_0x2f6c2e[_0xa7ac2f(0x373)](_0x533ba7,_0x7620be||_0xa7ac2f(0x2aa));if(_0x3a2f24(_0x24bbf7)!='object')return _0x24bbf7;throw TypeError(_0xa7ac2f(0x389));}return(_0x7620be===_0xa7ac2f(0x3d2)?String:Number)(_0x533ba7);}function _0x43385e(_0x5f1755){const _0x17335d=_0x1a1f79;var _0x2ed091=_0x11dc10(_0x5f1755,_0x17335d(0x3d2));return _0x3a2f24(_0x2ed091)==_0x17335d(0x168)?_0x2ed091:_0x2ed091+'';}function _0x3d9afb(_0x4a6b8b,_0x3bacdd,_0x41db45){const _0xcbc892=_0x1a1f79;return(_0x3bacdd=_0x43385e(_0x3bacdd))in _0x4a6b8b?Object[_0xcbc892(0x390)](_0x4a6b8b,_0x3bacdd,{'value':_0x41db45,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a6b8b[_0x3bacdd]=_0x41db45,_0x4a6b8b;}let _0x3e8fe1=function(_0x4fa81d){const _0x206798=_0x1a1f79;return _0x4fa81d[_0x206798(0x3de)]='OTHER_CLIENT_EDITING',_0x4fa81d['PERMISSION_DENIED']=_0x206798(0x21b),_0x4fa81d['CONFLICT_PROCESSING']=_0x206798(0x2dd),_0x4fa81d[_0x206798(0xc4)]=_0x206798(0xc4),_0x4fa81d[_0x206798(0x28d)]='CONFLICT',_0x4fa81d[_0x206798(0x2c9)]=_0x206798(0x2c9),_0x4fa81d[_0x206798(0x187)]='JOIN_ROOM_FAILED',_0x4fa81d[_0x206798(0x2ce)]=_0x206798(0x2ce),_0x4fa81d['SOCKET_FAILED']=_0x206798(0x2f8),_0x4fa81d[_0x206798(0x19c)]='SUBMIT_CHANGESET_TIMEOUT',_0x4fa81d;}({});var _0x2a8347=class{constructor(){const _0x2a8719=_0x1a1f79;_0x3d9afb(this,_0x2a8719(0x2e6),new _0x29156e[(_0x2a8719(0x2f5))]()),_0x3d9afb(this,_0x2a8719(0x237),this[_0x2a8719(0x2e6)][_0x2a8719(0xc5)]());}[_0x1a1f79(0x29c)](_0x36cd53){const _0x4a6620=_0x1a1f79;this[_0x4a6620(0x2e6)]['next'](_0x36cd53);}},_0x334742=class{constructor(){const _0x257c14=_0x1a1f79;_0x3d9afb(this,_0x257c14(0x20f),new _0x29156e[(_0x257c14(0x2f5))]()),_0x3d9afb(this,_0x257c14(0x13c),this[_0x257c14(0x20f)][_0x257c14(0xc5)]());}['onCommentUpdate'](_0x4d8828){const _0x4c69c4=_0x1a1f79;this[_0x4c69c4(0x20f)]['next'](_0x4d8828);}};function _0x3b7f76(_0x2d0d8e,_0x21e46a){return function(_0x3472ef,_0x5e47c4){_0x21e46a(_0x3472ef,_0x5e47c4,_0x2d0d8e);};}function _0x3ef445(_0x413e1b,_0x7e2611,_0x3e1497,_0x24aeca){const _0x4c253a=_0x1a1f79;var _0x49b661=arguments[_0x4c253a(0x314)],_0x1b6f44=_0x49b661<0x3?_0x7e2611:_0x24aeca===null?_0x24aeca=Object['getOwnPropertyDescriptor'](_0x7e2611,_0x3e1497):_0x24aeca,_0x163d2e;if(typeof Reflect=='object'&&typeof Reflect[_0x4c253a(0xec)]==_0x4c253a(0x372))_0x1b6f44=Reflect[_0x4c253a(0xec)](_0x413e1b,_0x7e2611,_0x3e1497,_0x24aeca);else{for(var _0x1e631c=_0x413e1b[_0x4c253a(0x314)]-0x1;_0x1e631c>=0x0;_0x1e631c--)(_0x163d2e=_0x413e1b[_0x1e631c])&&(_0x1b6f44=(_0x49b661<0x3?_0x163d2e(_0x1b6f44):_0x49b661>0x3?_0x163d2e(_0x7e2611,_0x3e1497,_0x1b6f44):_0x163d2e(_0x7e2611,_0x3e1497))||_0x1b6f44);}return _0x49b661>0x3&&_0x1b6f44&&Object['defineProperty'](_0x7e2611,_0x3e1497,_0x1b6f44),_0x1b6f44;}let _0x49185a=class extends _0xfd1b33[_0x1a1f79(0x2cd)]{constructor(_0x40f0bf){const _0x1b636e=_0x1a1f79;super(),this[_0x1b636e(0x1f2)]=_0x40f0bf,_0x3d9afb(this,_0x1b636e(0x238),new Map()),_0x3d9afb(this,_0x1b636e(0x2af),new _0x29156e['Subject']()),this[_0x1b636e(0x2df)]((0x0,_0x29156e[_0x1b636e(0x3bb)])(this[_0x1b636e(0x1f2)][_0x1b636e(0x191)](_0xfd1b33['UniverInstanceType'][_0x1b636e(0x1ab)])[_0x1b636e(0x13a)]((0x0,_0x324d20['map'])(_0x14ee0c=>_0x14ee0c[_0x1b636e(0x26a)]())),this['_univerInstanceService'][_0x1b636e(0x191)](_0xfd1b33[_0x1b636e(0x34d)][_0x1b636e(0x412)])[_0x1b636e(0x13a)]((0x0,_0x324d20[_0x1b636e(0x178)])(_0x5c9da3=>_0x5c9da3[_0x1b636e(0x26a)]())),this[_0x1b636e(0x1f2)][_0x1b636e(0x191)](_0xfd1b33['UniverInstanceType'][_0x1b636e(0x2d5)])['pipe']((0x0,_0x324d20[_0x1b636e(0x178)])(_0xdbf7f=>_0xdbf7f['getUnitId']())),this[_0x1b636e(0x1f2)]['getTypeOfUnitDisposed$'](_0xfd1b33['UniverInstanceType'][_0x1b636e(0x16b)])['pipe']((0x0,_0x324d20['map'])(_0x4480b7=>_0x4480b7[_0x1b636e(0x26a)]())))['subscribe'](_0x1c0c02=>this['_removeRoom'](_0x1c0c02)));}[_0x1a1f79(0x3f0)](_0x14f357){const _0x5f268b=_0x1a1f79;return this[_0x5f268b(0x238)][_0x5f268b(0x281)](_0x14f357)?(0x0,_0x29156e['of'])(this['_roomMembers'][_0x5f268b(0x30d)](_0x14f357)):this[_0x5f268b(0x2af)]['pipe']((0x0,_0x324d20[_0x5f268b(0x178)])(_0x47b98a=>{const _0x1c67e1=_0x5f268b;if(_0x47b98a===_0x14f357)return this['_roomMembers'][_0x1c67e1(0x30d)](_0x47b98a);}));}['updateMember'](_0x1df258,_0x4ba8cb){const _0x3b3a72=_0x1a1f79;let _0xfe588f=this[_0x3b3a72(0x238)][_0x3b3a72(0x30d)](_0x1df258);_0xfe588f||(_0xfe588f=new _0x281b4c(),this[_0x3b3a72(0x238)][_0x3b3a72(0x23f)](_0x1df258,_0xfe588f),this[_0x3b3a72(0x2af)][_0x3b3a72(0x34e)](_0x1df258)),_0xfe588f['updateMember'](_0x4ba8cb);}[_0x1a1f79(0xe0)](_0x1f993e,_0x4b5f8e){const _0x13b8f3=_0x1a1f79;let _0x40b299=this[_0x13b8f3(0x238)][_0x13b8f3(0x30d)](_0x1f993e);_0x40b299&&_0x40b299[_0x13b8f3(0xe0)](_0x4b5f8e);}[_0x1a1f79(0x13d)](_0x5606e3){const _0x580e72=_0x1a1f79;return this[_0x580e72(0x238)][_0x580e72(0x30d)](_0x5606e3);}[_0x1a1f79(0x3ef)](_0x1dcb10,_0x1033bd){const _0x85c79b=_0x1a1f79;let _0x47b7aa=this[_0x85c79b(0x238)][_0x85c79b(0x30d)](_0x1dcb10);if(_0x47b7aa)return _0x47b7aa[_0x85c79b(0x3ef)](_0x1033bd);}[_0x1a1f79(0x18d)](_0x31b2e0){const _0x4f6ad7=_0x1a1f79;let _0x41eb12=this[_0x4f6ad7(0x238)][_0x4f6ad7(0x30d)](_0x31b2e0);_0x41eb12&&(_0x41eb12[_0x4f6ad7(0xdb)](),this[_0x4f6ad7(0x238)][_0x4f6ad7(0x26d)](_0x31b2e0));}[_0x1a1f79(0xdb)](){const _0xa057c3=_0x1a1f79;this[_0xa057c3(0x238)][_0xa057c3(0x18c)](_0x3e59c8=>_0x3e59c8[_0xa057c3(0xdb)]()),this['_roomMembers'][_0xa057c3(0x109)](),this[_0xa057c3(0x2af)][_0xa057c3(0x1a9)]();}};_0x49185a=_0x3ef445([_0x3b7f76(0x0,_0xfd1b33[_0x1a1f79(0x439)])],_0x49185a);var _0x281b4c=class extends _0xfd1b33['Disposable']{constructor(..._0x49abd4){const _0x2e6c00=_0x1a1f79;super(..._0x49abd4),_0x3d9afb(this,'_members',new Map()),_0x3d9afb(this,_0x2e6c00(0x1b3),new _0x29156e[(_0x2e6c00(0x3ab))](this[_0x2e6c00(0x3a8)])),_0x3d9afb(this,_0x2e6c00(0x370),this[_0x2e6c00(0x1b3)][_0x2e6c00(0xc5)]());}[_0x1a1f79(0xdb)](){const _0x4b5e21=_0x1a1f79;this[_0x4b5e21(0x3a8)][_0x4b5e21(0x109)](),this['_members$'][_0x4b5e21(0x1a9)]();}['updateMember'](_0x2faf94){const _0x301d5f=_0x1a1f79;this['_members'][_0x301d5f(0x23f)](_0x2faf94[_0x301d5f(0x2ec)],_0x2faf94),this['_emitMembers']();}[_0x1a1f79(0xe0)](_0x1bb7bf){const _0x5579a7=_0x1a1f79;this[_0x5579a7(0x3a8)][_0x5579a7(0x26d)](_0x1bb7bf),this[_0x5579a7(0x33a)]();}['getMember'](_0x525a9a){const _0x55fedd=_0x1a1f79;return this['_members'][_0x55fedd(0x30d)](_0x525a9a);}[_0x1a1f79(0x423)](){const _0x40444f=_0x1a1f79;return Array[_0x40444f(0x3d0)](this['_members'][_0x40444f(0x422)]());}[_0x1a1f79(0x33a)](){const _0x556a73=_0x1a1f79;this[_0x556a73(0x1b3)][_0x556a73(0x34e)](this[_0x556a73(0x3a8)]);}};function _0x4209be(_0x1fc1ef,_0x34f9bd){const _0x448f7c=_0x1a1f79;if(_0x28a74c(_0x1fc1ef))return _0x34f9bd;if(_0x34f9bd[_0x448f7c(0x275)]===_0x22b414[_0x448f7c(0x32a)][_0x448f7c(0x1a5)]){let _0x50be57=_0x22dce6(_0x1fc1ef),_0x46b17c=_0x34f9bd;return{..._0x46b17c,'data':{..._0x46b17c['data'],'unitID':_0x1fc1ef[_0x448f7c(0x1c5)][_0x448f7c(0x3c1)],'unitType':_0x1fc1ef[_0x448f7c(0x1c5)][_0x448f7c(0x337)]??_0x46b17c[_0x448f7c(0x16f)][_0x448f7c(0x337)],'changeset':_0x50be57[_0x448f7c(0xd1)](_0x46b17c[_0x448f7c(0x16f)]['changeset'],_0x443eb1(_0x1fc1ef))}};}if(_0x34f9bd['eventID']===_0x22b414[_0x448f7c(0x32a)][_0x448f7c(0x103)]){let _0x14d749=_0x34f9bd;return{..._0x14d749,'data':{..._0x14d749[_0x448f7c(0x16f)],'unitID':_0x1fc1ef[_0x448f7c(0x1c5)][_0x448f7c(0x3c1)],'unitType':_0x1fc1ef['target']['unitType']??_0x14d749[_0x448f7c(0x16f)]['unitType']}};}return _0x34f9bd;}function _0x349c9d(_0x4e2be4,_0x5afd1b){const _0x2ccf48=_0x1a1f79;if(_0x28a74c(_0x4e2be4))return[_0x5afd1b];switch(_0x5afd1b['eventID']){case _0x22b414[_0x2ccf48(0x32a)][_0x2ccf48(0x1e3)]:return[_0x3601d4(_0x4e2be4,_0x5afd1b)];case _0x22b414[_0x2ccf48(0x32a)][_0x2ccf48(0x1be)]:return[_0x190e66(_0x4e2be4,_0x5afd1b)];case _0x22b414['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:return[_0xbdcddb(_0x4e2be4,_0x5afd1b)];default:return[_0x5afd1b];}}function _0x28a74c(_0x199c2f){const _0x5b3743=_0x1a1f79;return _0x199c2f[_0x5b3743(0x1c5)][_0x5b3743(0x33f)]==null&&_0x199c2f['target'][_0x5b3743(0x3c1)]===_0x199c2f[_0x5b3743(0x379)]&&!_0x199c2f[_0x5b3743(0x158)];}function _0x3601d4(_0x171632,_0xd594c1){const _0x13f5af=_0x1a1f79;return{..._0xd594c1,'data':(0x0,_0x22b414[_0x13f5af(0xcb)])(_0x4b0df9(_0x171632,(0x0,_0x22b414['parseProtocolChangeset'])(_0xd594c1[_0x13f5af(0x16f)])))};}function _0xbdcddb(_0x24a59,_0x143da8){return{..._0x143da8,'data':_0x4b0df9(_0x24a59,_0x143da8['data'])};}function _0x190e66(_0x221d7e,_0x4d0700){const _0x10711b=_0x1a1f79;let _0x297c42=_0x4d0700['data'];return{..._0x4d0700,'data':{..._0x297c42,'changesets':_0x297c42[_0x10711b(0x340)]['map'](_0x5214b6=>(0x0,_0x22b414['parseChangesetToProtocol'])(_0x4b0df9(_0x221d7e,(0x0,_0x22b414[_0x10711b(0x119)])(_0x5214b6))))}};}function _0x4b0df9(_0x427b75,_0x4f351e){const _0xea0556=_0x1a1f79;return _0x22dce6(_0x427b75)[_0xea0556(0x3f7)](_0x4f351e,_0x443eb1(_0x427b75));}function _0x22dce6(_0x291840){const _0x40cdf2=_0x1a1f79;if(!_0x291840[_0x40cdf2(0x158)])throw Error('COLLABORATION_CHANGESET_TRANSLATION_REQUIRED');return _0x291840[_0x40cdf2(0x158)];}function _0x443eb1(_0x341719){const _0x190900=_0x1a1f79;return{'localUnitId':_0x341719[_0x190900(0x379)],'unitType':_0x341719[_0x190900(0x337)],'target':_0x341719['target']};}let _0x5c0e48=function(_0x245f61){const _0x4a429e=_0x1a1f79;return _0x245f61[_0x245f61[_0x4a429e(0x104)]=0x0]='IDLE',_0x245f61[_0x245f61['JOINING']=0x1]=_0x4a429e(0x1f9),_0x245f61[_0x245f61[_0x4a429e(0x35a)]=0x2]=_0x4a429e(0x35a),_0x245f61[_0x245f61['ONLINE']=0x3]='ONLINE',_0x245f61;}({}),_0x1c84c9={[_0x3c00fa['CmdRspCode'][_0x1a1f79(0x141)]]:'session.join-failed',[_0x3c00fa[_0x1a1f79(0x142)][_0x1a1f79(0x2fc)]]:'session.room-full',[_0x3c00fa[_0x1a1f79(0x142)]['JOIN_ROOM_NOT_EXISTS']]:_0x1a1f79(0x219),[_0x3c00fa[_0x1a1f79(0x142)]['JOIN_ROOM_PERMISSION_DENIED']]:_0x1a1f79(0x40a),[_0x3c00fa['CmdRspCode'][_0x1a1f79(0x101)]]:'session.room-cnt-exceeds'},_0x313cfe=class extends _0xfd1b33[_0x1a1f79(0x156)]{get[_0x1a1f79(0x360)](){const _0xf3c675=_0x1a1f79;return this[_0xf3c675(0x212)]['getValue']();}constructor(_0x280b33,_0x5153be,_0x457822,_0x4d0e2a,_0x3aebeb,_0x4568a3,_0x680c6f,_0x5997b4){const _0x14f5e6=_0x1a1f79;super(),this[_0x14f5e6(0x29e)]=_0x280b33,this[_0x14f5e6(0x3c0)]=_0x457822,this[_0x14f5e6(0x347)]=_0x4d0e2a,this['_memberService']=_0x3aebeb,this[_0x14f5e6(0x20e)]=_0x4568a3,this[_0x14f5e6(0x108)]=_0x680c6f,this[_0x14f5e6(0x436)]=_0x5997b4,_0x3d9afb(this,_0x14f5e6(0x212),new _0x29156e[(_0x14f5e6(0x3ab))](0x0)),_0x3d9afb(this,_0x14f5e6(0x114),this[_0x14f5e6(0x212)][_0x14f5e6(0xc5)]()),_0x3d9afb(this,'_event$',new _0x29156e[(_0x14f5e6(0x2f5))]()),_0x3d9afb(this,_0x14f5e6(0x237),this[_0x14f5e6(0x2e6)][_0x14f5e6(0xc5)]()),_0x3d9afb(this,_0x14f5e6(0x3f8),void 0x0),_0x3d9afb(this,'_socketMessageSubscription',void 0x0),_0x3d9afb(this,_0x14f5e6(0x348),void 0x0),_0x3d9afb(this,_0x14f5e6(0x2da),!0x1),_0x3d9afb(this,_0x14f5e6(0xee),null),this['_shouldReportTelemetry']=!!this[_0x14f5e6(0x436)],_0x5153be[_0x14f5e6(0x13a)]((0x0,_0x29156e[_0x14f5e6(0x3c8)])(this['dispose$']))[_0x14f5e6(0x441)](_0x12861d=>{const _0x45626c=_0x14f5e6;if(_0x12861d!==void 0x0){if(this['_socket']=_0x12861d,_0x12861d)this[_0x45626c(0x129)](_0x12861d),this[_0x45626c(0x41a)]=_0x12861d['message$'][_0x45626c(0x441)](_0x33ce5d=>{const _0x5489bd=_0x45626c;_0x33ce5d['routeKey']===this[_0x5489bd(0x29e)][_0x5489bd(0x1c5)]['unitId']&&this[_0x5489bd(0xe5)](_0x33ce5d);});else{var _0x48f647;this[_0x45626c(0x1ad)](),this[_0x45626c(0x212)][_0x45626c(0x34e)](0x2),(_0x48f647=this[_0x45626c(0x41a)])==null||_0x48f647[_0x45626c(0x3b8)](),this['_socketMessageSubscription']=null;}}});}[_0x1a1f79(0x29d)](){const _0x12c2a9=_0x1a1f79;var _0x136516;return((_0x136516=this[_0x12c2a9(0x3f8)])==null?void 0x0:_0x136516[_0x12c2a9(0x2ec)])??null;}['dispose'](){const _0x343ab0=_0x1a1f79;super[_0x343ab0(0xdb)](),this['close'](),this[_0x343ab0(0x1fc)]['next'](),this[_0x343ab0(0x1fc)]['complete']();}['close'](){const _0x105a1a=_0x1a1f79;var _0x342d5e;this['_throwTelemetryCollaborationNewChangeset'](),(_0x342d5e=this[_0x105a1a(0x3f8)])==null||_0x342d5e[_0x105a1a(0x285)]({'cmd':_0x3c00fa[_0x105a1a(0xd5)][_0x105a1a(0x225)],'data':{'roomID':this[_0x105a1a(0x29e)][_0x105a1a(0x1c5)][_0x105a1a(0x3c1)]}}),this[_0x105a1a(0x2e6)][_0x105a1a(0x1a9)](),this['_sessionStatus$'][_0x105a1a(0x1a9)]();}[_0x1a1f79(0xe5)](_0xff103f){const _0x10ec74=_0x1a1f79;_0xff103f[_0x10ec74(0x3e1)]===_0x3c00fa[_0x10ec74(0xd5)][_0x10ec74(0x413)]?this[_0x10ec74(0x2d9)](_0xff103f):_0xff103f[_0x10ec74(0x3e1)]===_0x3c00fa[_0x10ec74(0xd5)][_0x10ec74(0x193)]&&this[_0x10ec74(0x277)](_0xff103f);}[_0x1a1f79(0x129)](_0x18f3a9){const _0x211ea=_0x1a1f79;this[_0x211ea(0x212)][_0x211ea(0x34e)](0x1),_0x18f3a9[_0x211ea(0x285)]({'cmd':_0x3c00fa[_0x211ea(0xd5)]['JOIN'],'routeKey':this[_0x211ea(0x29e)][_0x211ea(0x1c5)][_0x211ea(0x3c1)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x211ea(0x1c5)][_0x211ea(0x3c1)]}]}});}[_0x1a1f79(0x2d9)](_0x4908a1){const _0x13a52d=_0x1a1f79;var _0x3d52d5;if(_0x4908a1[_0x13a52d(0x2a7)]in _0x1c84c9){this[_0x13a52d(0x108)]['emitEvent']({'id':_0x13a52d(0x187),'data':_0x1c84c9[_0x4908a1[_0x13a52d(0x2a7)]]}),this[_0x13a52d(0x212)][_0x13a52d(0x34e)](0x2);return;}this[_0x13a52d(0x212)][_0x13a52d(0x34e)](0x3);let _0x560df9=(_0x3d52d5=_0x4908a1[_0x13a52d(0x16f)][_0x13a52d(0x2f4)][this['_identity'][_0x13a52d(0x1c5)]['unitId']])==null?void 0x0:_0x3d52d5[_0x13a52d(0x3be)];_0x560df9&&_0x560df9['forEach'](_0x511fee=>this[_0x13a52d(0x3b7)]['updateMember'](this[_0x13a52d(0x29e)][_0x13a52d(0x379)],_0x511fee));}['_onRecvEvent'](_0x12930e){const _0x33291a=_0x1a1f79;try{let _0x6b68c8=_0x349c9d(this[_0x33291a(0x29e)],_0x12930e[_0x33291a(0x16f)]);for(let _0x15083a of _0x6b68c8)switch(_0x15083a['eventID']){case _0x22b414[_0x33291a(0x32a)]['USERS_ENTER']:this[_0x33291a(0x36e)](_0x15083a),this[_0x33291a(0x2e6)][_0x33291a(0x34e)](_0x15083a);break;case _0x22b414[_0x33291a(0x32a)]['USERS_LEAVE']:this['_onUserLeave'](_0x15083a),this['_event$'][_0x33291a(0x34e)](_0x15083a);break;case _0x22b414[_0x33291a(0x32a)][_0x33291a(0x166)]:case _0x22b414[_0x33291a(0x32a)][_0x33291a(0x401)]:this[_0x33291a(0x12e)](),this['_clearCollaborationTimeoutTimer'](),this[_0x33291a(0x2e6)][_0x33291a(0x34e)](_0x15083a);break;case _0x22b414[_0x33291a(0x32a)]['MSG_FOR_ERROR']:this[_0x33291a(0x3c0)][_0x33291a(0x2f1)](_0x33291a(0xe8)+JSON[_0x33291a(0x1b0)](_0x15083a)),this[_0x33291a(0x2e6)][_0x33291a(0x34e)](_0x15083a);break;case _0x22b414[_0x33291a(0x32a)][_0x33291a(0x293)]:this[_0x33291a(0x20e)][_0x33291a(0x304)](_0x15083a[_0x33291a(0x16f)]),this['_event$'][_0x33291a(0x34e)](_0x15083a);break;default:this[_0x33291a(0x2e6)][_0x33291a(0x34e)](_0x15083a);}}catch(_0x426d23){this['_logService'][_0x33291a(0x2f1)](_0x426d23,_0x12930e);}}['_onUserJoin'](_0x205332){const _0x376912=_0x1a1f79;this['_memberService'][_0x376912(0x177)](this[_0x376912(0x29e)]['localUnitId'],_0x205332['data']);}[_0x1a1f79(0x229)](_0x27e012){const _0x1778d0=_0x1a1f79;this[_0x1778d0(0x3b7)][_0x1778d0(0xe0)](this['_identity'][_0x1778d0(0x379)],_0x27e012[_0x1778d0(0x16f)][_0x1778d0(0x2ec)]);}async[_0x1a1f79(0x285)](_0x37470f,_0x3144fe){const _0x47ebf8=_0x1a1f79;if(this[_0x47ebf8(0x360)]!==0x3||!this['_socket'])throw Error(_0x47ebf8(0x217));try{let _0x54ab7e=_0x4209be(this[_0x47ebf8(0x29e)],_0x37470f);_0x54ab7e[_0x47ebf8(0x275)]===_0x22b414[_0x47ebf8(0x32a)]['SUBMIT_CHANGESET']&&(this[_0x47ebf8(0x259)](),this['_startTelemetryCollaborationNewChangeset'](_0x54ab7e)),this['_socket'][_0x47ebf8(0x285)]({'cmd':_0x3c00fa['CombCmd'][_0x47ebf8(0x427)],'routeKey':this[_0x47ebf8(0x29e)][_0x47ebf8(0x1c5)][_0x47ebf8(0x3c1)],'routeType':'','data':_0x54ab7e});}catch(_0xc5d896){this[_0x47ebf8(0x3c0)][_0x47ebf8(0x2f1)](_0xc5d896);}}['_scheduleCollaborationTimeoutTimer'](){const _0x341dd1=_0x1a1f79;this[_0x341dd1(0x348)]=setTimeout(()=>{const _0x1869ac=_0x341dd1;this['_collaborationTimeoutTimer']=null,this[_0x1869ac(0x108)][_0x1869ac(0x29c)]({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this[_0x341dd1(0x347)]['getConfig']('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x1a1f79(0x321)](){const _0x363ca5=_0x1a1f79;this[_0x363ca5(0x348)]&&=(clearTimeout(this[_0x363ca5(0x348)]),null);}[_0x1a1f79(0x43d)](_0xaa0780){const _0x2eea1b=_0x1a1f79;if(!this[_0x2eea1b(0x2da)])return;let {data:_0x104e0f}=_0xaa0780,{unitID:_0x37a0cc,changeset:_0x3d9b14}=_0x104e0f,{mutations:_0x5d4d82,type:_0x41cde0}=_0x3d9b14;this[_0x2eea1b(0xee)]={'unitId':_0x37a0cc,'type':_0x41cde0,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x3901a3(_0x5d4d82)};}[_0x1a1f79(0x12e)](){const _0x1ed353=_0x1a1f79;if(this[_0x1ed353(0x2da)]){if(!this[_0x1ed353(0xee)]){this[_0x1ed353(0x3c0)][_0x1ed353(0x2f1)](_0x1ed353(0x139),_0x1ed353(0xe1));return;}this[_0x1ed353(0xee)]['stopTime']=performance[_0x1ed353(0x256)](),this['_telemetryInfo']['duration']=this[_0x1ed353(0xee)][_0x1ed353(0x2ae)]-this[_0x1ed353(0xee)][_0x1ed353(0x1a3)],this[_0x1ed353(0x436)][_0x1ed353(0x287)](_0x1ed353(0x2b1),this['_telemetryInfo']),this[_0x1ed353(0xee)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){this['_telemetryInfo']=null;}};_0x313cfe=_0x3ef445([_0x3b7f76(0x2,_0xfd1b33['ILogService']),_0x3b7f76(0x3,_0xfd1b33[_0x1a1f79(0x1ee)]),_0x3b7f76(0x4,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x49185a)),_0x3b7f76(0x5,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x334742)),_0x3b7f76(0x6,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x2a8347)),_0x3b7f76(0x7,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x5ad95d[_0x1a1f79(0x3ae)]))],_0x313cfe);let _0x1237f1=(0x0,_0xfd1b33['createIdentifier'])(_0x1a1f79(0x3e7));function _0x563e4e(_0x5f0c87){const _0x50663b=_0x1a1f79;return _0x50663b(0x3fb)+_0x5f0c87;}function _0x1b49ad(_0x1e6371){const _0x5396db=_0x1a1f79;let {unitID:_0x5a7387,mutations:_0x114b7f}=_0x1e6371;return{'unitId':_0x5a7387,'subUnitId':_0x114b7f['length']>0x0?_0x114b7f[0x0][_0x5396db(0x1e6)][_0x5396db(0x3f1)]:null};}let _0x207501=class{constructor(_0x16b6e8,_0x52d149,_0x3881db){const _0x19e0a0=_0x1a1f79;this[_0x19e0a0(0x144)]=_0x16b6e8,this[_0x19e0a0(0x30b)]=_0x52d149,this[_0x19e0a0(0x2ef)]=_0x3881db;}['transformSelections'](_0x547d7b){const _0x59f60d=_0x1a1f79;var _0x7e2cf5,_0x200698;let _0x4a1590=this[_0x59f60d(0x144)][_0x59f60d(0x30d)](_0x23a42e[_0x59f60d(0x123)]),{unitId:_0x47f13b,subUnitId:_0x4bac00}=_0x1b49ad(_0x547d7b),_0x38a418=_0x4a1590==null?void 0x0:_0x4a1590[_0x59f60d(0x21a)](_0x47f13b)[_0x59f60d(0x430)](),_0x539d02=(_0x7e2cf5=this['_instanceService'][_0x59f60d(0x28a)](_0x47f13b))==null||(_0x7e2cf5=_0x7e2cf5[_0x59f60d(0x224)]())==null?void 0x0:_0x7e2cf5['getSheetId']();if(_0x38a418['length']===0x0||!_0x47f13b||!_0x4bac00)return;let _0x1a344b=[{'id':_0x23a42e[_0x59f60d(0x16e)]['id'],'params':{'unitId':_0x47f13b,'subUnitId':_0x539d02,'selections':_0xfd1b33[_0x59f60d(0x279)][_0x59f60d(0x12b)](_0x38a418)}}],_0x24e043=this[_0x59f60d(0x30b)][_0x59f60d(0x12d)](_0x547d7b,_0x1a344b);if(!(0x0,_0x22b414['isTransformMutationsWithChangesetSuccess'])(_0x24e043))throw _0x24e043[_0x59f60d(0x2f1)];let _0x4ba9dd=(_0x200698=_0x24e043[_0x59f60d(0x113)][0x0])==null||(_0x200698=_0x200698[_0x59f60d(0x1e6)])==null?void 0x0:_0x200698['selections'];if(Array[_0x59f60d(0x149)](_0x4ba9dd)&&_0x4ba9dd[_0x59f60d(0x314)]){if(_0x4ba9dd['length']===_0x1a344b[0x0][_0x59f60d(0x1e6)][_0x59f60d(0x1a7)][_0x59f60d(0x314)]&&_0x4ba9dd[_0x59f60d(0x420)]((_0x313210,_0x2be63d)=>_0xfd1b33[_0x59f60d(0x40e)]['equals'](_0x313210[_0x59f60d(0x192)],_0x1a344b[0x0][_0x59f60d(0x1e6)][_0x59f60d(0x1a7)][_0x2be63d][_0x59f60d(0x192)])))return;this['_injector'][_0x59f60d(0x30d)](_0xfd1b33['ICommandService'])[_0x59f60d(0x2e4)](_0x23a42e['SetSelectionsOperation']['id'],{'unitId':_0x47f13b,'subUnitId':_0x539d02,'selections':_0x4ba9dd});}}};_0x207501=_0x3ef445([_0x3b7f76(0x0,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33['Injector'])),_0x3b7f76(0x1,_0x22b414[_0x1a1f79(0x20d)]),_0x3b7f76(0x2,_0xfd1b33[_0x1a1f79(0x439)])],_0x207501);let _0x4f0bf8=(0x0,_0xfd1b33[_0x1a1f79(0x16a)])('univer-pro.collaboration-client.single-active-unit-service'),_0x25e8d5=function(_0x3fe65c){const _0x3deb9e=_0x1a1f79;return _0x3fe65c[_0x3fe65c[_0x3deb9e(0x173)]=0x0]=_0x3deb9e(0x173),_0x3fe65c[_0x3fe65c[_0x3deb9e(0x361)]=0x1]=_0x3deb9e(0x361),_0x3fe65c;}({});function _0x50b4b6(_0x2841b1){const _0x2443e9=_0x1a1f79;var _0x3e5e45;return!!((_0x3e5e45=_0x2841b1[_0x2443e9(0x1e6)])!=null&&_0x3e5e45[_0x2443e9(0x429)]);}let _0x5ebfff=new Set([_0x23a42e[_0x1a1f79(0x3eb)]['id']]),_0x5dc934=new Set([_0x185528['AddSlidePageMutation']['id'],_0x185528[_0x1a1f79(0x33e)]['id'],_0x185528[_0x1a1f79(0xe6)]['id'],_0x185528[_0x1a1f79(0x1da)]['id']]);function _0x5bab0a(_0x5ab44b,_0x23614e=_0x5ebfff){const _0x191b18=_0x1a1f79;let _0x7d33f3=[];for(let _0x85b3f0 of _0x5ab44b){if(_0x23614e['has'](_0x85b3f0['id'])){if(_0x7d33f3[_0x191b18(0x314)]>0x0)break;_0x7d33f3['push'](_0x85b3f0);break;}if(_0x50b4b6(_0x85b3f0)){if(_0x7d33f3[_0x191b18(0x314)]>0x0)break;_0x7d33f3['push'](_0x85b3f0);break;}_0x7d33f3[_0x191b18(0x1a0)](_0x85b3f0);}return _0x7d33f3;}function _0x149959(_0x5be0a9,_0x3f2117,_0x471dcb,_0x599963,_0x1cb959){const _0x3d1abc=_0x1a1f79;let _0xee004a=_0x5bab0a(_0x5be0a9),_0xc40f32=_0x1cb959[_0x3d1abc(0x1e0)](),_0x34c890=(_0xc40f32==null?void 0x0:_0xc40f32[_0x3d1abc(0x3ea)])??_0x3d1abc(0xf9),_0x580827=(_0xc40f32==null?void 0x0:_0xc40f32[_0x3d1abc(0x2ec)])??_0x3d1abc(0xf9);return{'changeset':{'unitID':_0x3f2117,'type':(0x0,_0x22b414['mapDocumentTypeToUniverInstanceType'])(_0x471dcb[_0x3d1abc(0x253)](_0x3f2117)),'baseRev':_0x599963['getCurrentRevOfUnit'](_0x3f2117),'revision':0x0,'userID':_0x34c890,'memberID':_0x580827,'mutations':_0xee004a},'pendingMutations':_0x5be0a9['slice'](_0xee004a[_0x3d1abc(0x314)])};}let _0x27e439=_0x149959;function _0x5a387e(_0x19eb83,_0x5b77af,_0xb6dae6,_0x1f800d,_0x13a88a){const _0x4681e9=_0x1a1f79;let _0xdd7cdc=_0x5bab0a(_0x19eb83,_0x5dc934),_0x21f77f=_0x13a88a[_0x4681e9(0x1e0)](),_0x650fae=(_0x21f77f==null?void 0x0:_0x21f77f[_0x4681e9(0x3ea)])??'unknown',_0x288da8=(_0x21f77f==null?void 0x0:_0x21f77f['memberID'])??_0x4681e9(0xf9);return{'changeset':{'unitID':_0x5b77af,'type':(0x0,_0x22b414[_0x4681e9(0x2a0)])(_0xb6dae6['getUnitType'](_0x5b77af)),'baseRev':_0x1f800d[_0x4681e9(0x435)](_0x5b77af),'revision':0x0,'userID':_0x650fae,'memberID':_0x288da8,'mutations':_0xdd7cdc},'pendingMutations':_0x19eb83['slice'](_0xdd7cdc['length'])};}function _0x2f2c2a(_0x6608b,_0x2d960d,_0x57fb4b,_0x5a79b2,_0x4a66a3){const _0x22d92c=_0x1a1f79;let _0x25cdd1=_0x6608b[_0x22d92c(0x3cd)]((_0x26f884,_0x5742be)=>{const _0x4860fb=_0x22d92c;let _0x29e051=_0x26f884[_0x26f884[_0x4860fb(0x314)]-0x1],{id:_0xfa2020}=_0x29e051??{},{id:_0x1f8310,type:_0x57b5a5}=_0x5742be,_0x1251aa=_0x5742be[_0x4860fb(0x1e6)];if(_0xfa2020&&_0xfa2020!==_0x1f8310)throw Error(_0x4860fb(0x35b)+_0xfa2020+_0x4860fb(0x107)+_0x1f8310+'.');if(!_0x29e051)return[{'id':_0x1f8310,'type':_0x57b5a5,'params':{'unitId':_0x1251aa[_0x4860fb(0x3c1)],'textRanges':_0x1251aa[_0x4860fb(0x115)],'actions':_0x1251aa['actions']}}];let _0x251df9=_0x29e051[_0x4860fb(0x1e6)];return _0x1155a3(_0x251df9,_0x1251aa)?[..._0x26f884[_0x4860fb(0x393)](0x0,-0x1),{..._0x29e051,'id':_0x1f8310,'type':_0x57b5a5,'params':{'unitId':_0x1251aa[_0x4860fb(0x3c1)],'textRanges':_0x1251aa['textRanges'],'actions':_0xfd1b33['JSONX'][_0x4860fb(0x24e)](_0x251df9['actions'],_0x1251aa[_0x4860fb(0x1b2)])}}]:[..._0x26f884,{'id':_0x1f8310,'type':_0x57b5a5,'params':{'unitId':_0x1251aa[_0x4860fb(0x3c1)],'textRanges':_0x1251aa[_0x4860fb(0x115)],'actions':_0x1251aa[_0x4860fb(0x1b2)]}}];},[]),_0x4cfc1d=_0x4a66a3['getCurrentUser'](),_0xa71ffc=(_0x4cfc1d==null?void 0x0:_0x4cfc1d['userID'])??_0x22d92c(0xf9),_0x283b0b=(_0x4cfc1d==null?void 0x0:_0x4cfc1d[_0x22d92c(0x2ec)])??_0x22d92c(0xf9);return{'changeset':{'unitID':_0x2d960d,'type':(0x0,_0x22b414[_0x22d92c(0x2a0)])(_0x57fb4b['getUnitType'](_0x2d960d)),'baseRev':_0x5a79b2[_0x22d92c(0x435)](_0x2d960d),'revision':0x0,'userID':_0xa71ffc,'memberID':_0x283b0b,'mutations':_0x25cdd1},'pendingMutations':_0x6608b['slice'](_0x6608b[_0x22d92c(0x314)])};}function _0x1155a3(_0xdd4b91,_0xb4af1){const _0x393510=_0x1a1f79;return!_0x520cf1(_0xdd4b91)&&!_0x520cf1(_0xb4af1)&&_0x4770c1(_0xdd4b91[_0x393510(0x1b2)],_0xb4af1[_0x393510(0x1b2)]);}function _0x520cf1(_0x430669){const _0xb2d0d7=_0x1a1f79;return _0x430669[_0xb2d0d7(0x214)]!==void 0x0;}function _0x4770c1(_0x5904ae,_0x52a590){return _0x28a14c(_0x5904ae)&&_0x28a14c(_0x52a590)&&!_0x27f6c9(_0x5904ae)&&!_0x27f6c9(_0x52a590)&&!_0x512627(_0x5904ae)&&!_0x512627(_0x52a590);}function _0x28a14c(_0x23f367){const _0x4de267=_0x1a1f79;return _0x1704e5(_0x23f367)[_0x4de267(0x38d)](_0x18df5d=>_0x56bcd2(_0x18df5d)&&_0x18df5d['et']===_0x4de267(0x21c));}function _0x512627(_0x784f73){const _0x1daf4f=_0x1a1f79;return _0x1704e5(_0x784f73)['some'](_0x1ca176=>Array[_0x1daf4f(0x149)](_0x1ca176)||typeof _0x1ca176==_0x1daf4f(0x3d2)||typeof _0x1ca176==_0x1daf4f(0x3bd));}function _0x27f6c9(_0x3114dd){const _0x5de716=_0x1a1f79;return _0x1704e5(_0x3114dd)[_0x5de716(0x38d)](_0x577366=>!_0x56bcd2(_0x577366)||_0x577366['et']!==_0x5de716(0x21c)||!Array[_0x5de716(0x149)](_0x577366['e'])?!0x1:_0x577366['e']['some'](_0x3e38da=>!_0x56bcd2(_0x3e38da)||!_0x56bcd2(_0x3e38da['body'])?!0x1:Object['prototype']['hasOwnProperty'][_0x5de716(0x373)](_0x3e38da[_0x5de716(0xf4)],'tables')||Object[_0x5de716(0x122)][_0x5de716(0x2ee)]['call'](_0x3e38da[_0x5de716(0xf4)],_0x5de716(0x273))||Object['prototype'][_0x5de716(0x2ee)]['call'](_0x3e38da['body'],_0x5de716(0x421))));}function _0x1704e5(_0x4d01b1){const _0x4c8562=_0x1a1f79;if(!Array[_0x4c8562(0x149)](_0x4d01b1))return[];let _0x57e8f1=_0x4d01b1[_0x4c8562(0x3b4)](_0x4c8562(0xf4))?_0x4d01b1:_0x4d01b1['find'](_0x339647=>Array[_0x4c8562(0x149)](_0x339647)&&_0x339647[_0x4c8562(0x3b4)](_0x4c8562(0xf4)));if(!Array[_0x4c8562(0x149)](_0x57e8f1))return[];let _0x262002=_0x57e8f1[_0x4c8562(0x3dc)](_0x4c8562(0xf4));return _0x262002===-0x1?[]:_0x57e8f1['slice'](_0x262002+0x1);}function _0x56bcd2(_0x3b7e16){const _0x31f1dc=_0x1a1f79;return typeof _0x3b7e16==_0x31f1dc(0x2e8)&&!!_0x3b7e16&&!Array[_0x31f1dc(0x149)](_0x3b7e16);}function _0x179387(_0x292edd,_0x1da40f){const _0x5a8f32=_0x1a1f79;let _0x51cd61=new _0x29156e[(_0x5a8f32(0x380))](0x1);return setTimeout(()=>_0x51cd61[_0x5a8f32(0x34e)](_0x1da40f),_0x292edd),_0x51cd61[_0x5a8f32(0xc5)]()[_0x5a8f32(0x13a)]((0x0,_0x29156e[_0x5a8f32(0x39e)])(0x1));}var _0x23d1a2,_0x253913,_0x457690;let _0xb964c8=function(_0xd0fb18){const _0x2020f1=_0x1a1f79;return _0xd0fb18['NOT_COLLAB']='not_collab',_0xd0fb18[_0x2020f1(0x14f)]=_0x2020f1(0x31e),_0xd0fb18[_0x2020f1(0x3fe)]='pending',_0xd0fb18[_0x2020f1(0x31b)]=_0x2020f1(0x10e),_0xd0fb18[_0x2020f1(0x15e)]='awaiting_with_pending',_0xd0fb18[_0x2020f1(0x1aa)]=_0x2020f1(0x12a),_0xd0fb18[_0x2020f1(0x28d)]=_0x2020f1(0x1f4),_0xd0fb18[_0x2020f1(0x35a)]=_0x2020f1(0x2a3),_0xd0fb18;}({}),_0x4e8b70=0x4e20,_0xa825d0=0x2bf20;var _0x4d68f9=class{constructor(_0x1a0ae2,_0x42d752,_0x64d0be,_0x34e550,_0x229d8f,_0x321dfe,_0x414db2,_0x47b273,_0x2befa2){const _0x4e09ca=_0x1a1f79;this[_0x4e09ca(0x239)]=_0x1a0ae2,this['type']=_0x42d752,this['_handler']=_0x229d8f,this[_0x4e09ca(0x292)]=_0x321dfe,this[_0x4e09ca(0x3ac)]=_0x414db2,this['_revisionService']=_0x47b273,this['_localCacheService']=_0x2befa2,_0x3d9afb(this,_0x4e09ca(0x272),null),_0x3d9afb(this,'_pendingMutations',[]),this[_0x4e09ca(0x272)]=_0x64d0be,this[_0x4e09ca(0x3e8)]=_0x34e550;}[_0x1a1f79(0x266)](_0xf9d3c0){const _0x140f8e=_0x1a1f79;let _0x448370=this[_0x140f8e(0x3b3)]['getCurrentRevOfUnit'](this['unitID']);return _0xf9d3c0[_0x140f8e(0x278)]>_0x448370+0x1&&(this[_0x140f8e(0x148)]['onMissingChangesets']({'from':_0x448370,'to':_0xf9d3c0[_0x140f8e(0x278)]-0x1}),!0x0);}[_0x1a1f79(0x409)](_0x192e1a){const _0x2c8ec=_0x1a1f79;this['_undoRedoService'][_0x2c8ec(0x3f3)](this[_0x2c8ec(0x239)],_0x192e1a);}['_transformSelections'](_0x3baa5e){const _0x5c1f99=_0x1a1f79;var _0x1ebfdb,_0x44d13b;(_0x1ebfdb=(_0x44d13b=this['_handler'])[_0x5c1f99(0x382)])==null||_0x1ebfdb['call'](_0x44d13b,_0x3baa5e);}[_0x1a1f79(0x117)](_0x22dbcb){const _0x3a6c1f=_0x1a1f79;var _0xabc9b1,_0x1c6580;return((_0xabc9b1=(_0x1c6580=this['_handler'])[_0x3a6c1f(0x1dc)])==null?void 0x0:_0xabc9b1[_0x3a6c1f(0x373)](_0x1c6580,_0x22dbcb))??null;}[_0x1a1f79(0x428)](_0x329f4b){var _0x187bf9,_0x3abb08;return(_0x187bf9=(_0x3abb08=this['_handler'])['onTransformIME'])==null?void 0x0:_0x187bf9['call'](_0x3abb08,_0x329f4b);}[_0x1a1f79(0x130)](_0xe12a9d){const _0x1d2afe=_0x1a1f79;var _0x515299,_0x47fdd0;return(_0x515299=(_0x47fdd0=this[_0x1d2afe(0x148)])[_0x1d2afe(0x2d2)])==null?void 0x0:_0x515299[_0x1d2afe(0x373)](_0x47fdd0,_0xe12a9d);}[_0x1a1f79(0x30c)](_0x1c2c34){const _0x541a72=_0x1a1f79;var _0xc9a5a0,_0x349854;return((_0xc9a5a0=(_0x349854=this[_0x541a72(0x148)])[_0x541a72(0x410)])==null?void 0x0:_0xc9a5a0[_0x541a72(0x373)](_0x349854,_0x1c2c34))??_0x1c2c34;}[_0x1a1f79(0x1f0)](_0x501a41){const _0x41819c=_0x1a1f79;var _0x3ff716,_0x42b6db;return((_0x3ff716=(_0x42b6db=this[_0x41819c(0x148)])[_0x41819c(0x357)])==null?void 0x0:_0x3ff716[_0x41819c(0x373)](_0x42b6db,_0x501a41))??_0x501a41;}[_0x1a1f79(0x31d)](_0x1d7be5){const _0x177624=_0x1a1f79;if(this[_0x177624(0x39b)]===_0xfd1b33[_0x177624(0x34d)][_0x177624(0x412)]){let {unitID:_0x27c4a6,mutations:_0x5a0419,memberID:_0x2dda37}=_0x1d7be5,_0x2f2d06=_0x5a0419[_0x177624(0x314)]>0x0?_0x5a0419[0x0][_0x177624(0x1e6)][_0x177624(0x115)]:[];if(Array[_0x177624(0x149)](_0x2f2d06)&&_0x2f2d06['length']>0x0){var _0x5172f5,_0x3250e1;(_0x5172f5=(_0x3250e1=this[_0x177624(0x148)])[_0x177624(0x3b1)])==null||_0x5172f5[_0x177624(0x373)](_0x3250e1,{'unitID':_0x27c4a6,'memberID':_0x2dda37,'textRanges':_0x2f2d06});}}}[_0x1a1f79(0x2c4)](){const _0x1fc280=_0x1a1f79;var _0x5d0d07;(_0x5d0d07=this[_0x1fc280(0x27a)])==null||_0x5d0d07[_0x1fc280(0x38c)](this[_0x1fc280(0x239)],this[_0x1fc280(0x39b)],this[_0x1fc280(0x272)],this[_0x1fc280(0x3e8)]);}['_getCurrentRevision'](){const _0x58c537=_0x1a1f79;return this[_0x58c537(0x3b3)][_0x58c537(0x435)](this[_0x58c537(0x239)]);}[_0x1a1f79(0x245)](){const _0x24d174=_0x1a1f79;this['_revisionService'][_0x24d174(0x255)](this[_0x24d174(0x239)]);}[_0x1a1f79(0x25c)](_0x2a3e59){const _0x537bb9=_0x1a1f79;let _0x270c36=this[_0x537bb9(0x30c)](_0x2a3e59);_0x270c36=this[_0x537bb9(0x1f0)](_0x270c36);let _0x4d095e=this['_prepareTransformSelections'](_0x270c36),_0x2b4791=(0x0,_0xfd1b33['sequenceExecute'])(_0x270c36[_0x537bb9(0x35e)],this[_0x537bb9(0x292)],{'fromCollab':!0x0});if(!_0x2b4791[_0x537bb9(0x268)])throw _0x4d095e==null||_0x4d095e[_0x537bb9(0x12c)](),_0x2b4791['error']instanceof Error?_0x2b4791['error']:Error(_0x2b4791[_0x537bb9(0x2f1)]??'[CollaborationState]:\x20apply\x20error!');_0x4d095e==null||_0x4d095e['commit'](),this[_0x537bb9(0x428)](_0x270c36),this[_0x537bb9(0x130)](_0x270c36),this[_0x537bb9(0x409)](_0x2a3e59),this[_0x537bb9(0x1c4)](_0x270c36),this[_0x537bb9(0x31d)](_0x270c36),this['_incrementRevisionNumber']();}};let _0x1cbacc=class extends _0x4d68f9{constructor(_0x7aaa90,_0x5be58a,_0x37e8e2,_0x59ca44,_0x2272ea,_0x509b42,_0x5a35ad,_0x167c5c,_0x1c65de,_0xb86fb1){const _0x59fa84=_0x1a1f79;super(_0x7aaa90,_0x5be58a,null,[],_0x37e8e2,_0x5a35ad,_0x509b42,_0x59ca44,_0xb86fb1),this[_0x59fa84(0x144)]=_0x2272ea,this[_0x59fa84(0x3c0)]=_0x167c5c,this[_0x59fa84(0x30b)]=_0x1c65de,this[_0x59fa84(0x2b5)]=_0xb86fb1,_0x3d9afb(this,_0x59fa84(0x437),_0x59fa84(0x31e));}[_0x1a1f79(0x371)](_0x14727b){const _0x4697fe=_0x1a1f79;let _0x5ae227=this[_0x4697fe(0x144)]['createInstance'](_0x1906e3,this[_0x4697fe(0x239)],this['type'],[_0x14727b],this[_0x4697fe(0x148)]);return _0x5ae227[_0x4697fe(0x203)](),_0x5ae227[_0x4697fe(0x2c4)](),_0x5ae227;}[_0x1a1f79(0x35f)](_0xcc22b5){const _0x2c01cf=_0x1a1f79;if(this[_0x2c01cf(0x266)](_0xcc22b5))return this[_0x2c01cf(0x144)][_0x2c01cf(0x2b2)](_0x4ccfc2,this[_0x2c01cf(0x239)],this[_0x2c01cf(0x39b)],null,[],null,[_0xcc22b5],this['_handler']);try{let _0x5bce55=this[_0x2c01cf(0x30b)][_0x2c01cf(0x12d)](_0xcc22b5,[_0x22b414[_0x2c01cf(0x3e4)]]);if((0x0,_0x22b414[_0x2c01cf(0x11a)])(_0x5bce55)){let {c1Prime:_0x5a1abe}=_0x5bce55;return this[_0x2c01cf(0x25c)](_0x5a1abe),this;}throw _0x5bce55[_0x2c01cf(0x2f1)];}catch(_0xa09004){return this[_0x2c01cf(0x3c0)]['error'](_0xa09004),this[_0x2c01cf(0x271)](!0x1);}}[_0x1a1f79(0x271)](_0x5e04ef){const _0x2197e8=_0x1a1f79;return this[_0x2197e8(0x144)][_0x2197e8(0x2b2)](_0x9bc46,this['unitID'],this['type'],null,[],this['_handler'],_0x5e04ef);}[_0x1a1f79(0x235)](_0x44113b){const _0x53e528=_0x1a1f79;if(_0x44113b[_0x53e528(0x278)]<=this[_0x53e528(0x3ed)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x242c5e=_0x1a1f79;throw Error(_0x242c5e(0x356));}[_0x1a1f79(0x19d)](){return this;}[_0x1a1f79(0x1ff)](){const _0x481a4b=_0x1a1f79;return this[_0x481a4b(0x144)][_0x481a4b(0x2b2)](_0x59f410,this[_0x481a4b(0x239)],this['type'],null,[],this[_0x481a4b(0x148)]);}[_0x1a1f79(0x257)](){return this;}[_0x1a1f79(0x17d)](){const _0x3b22a2=_0x1a1f79;throw Error(_0x3b22a2(0x189));}[_0x1a1f79(0x2bc)](){const _0x3b5a47=_0x1a1f79;let _0x33876b=this[_0x3b5a47(0x3b3)][_0x3b5a47(0x435)](this[_0x3b5a47(0x239)]);return this['_handler'][_0x3b5a47(0x248)]({'from':_0x33876b,'to':0x0}),this['_injector']['createInstance'](_0x4ccfc2,this[_0x3b5a47(0x239)],this[_0x3b5a47(0x39b)],null,[],null,[],this[_0x3b5a47(0x148)]);}};_0x1cbacc=_0x3ef445([_0x3b7f76(0x3,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x22b414[_0x1a1f79(0x185)])),_0x3b7f76(0x4,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x3d8)])),_0x3b7f76(0x5,_0xfd1b33['IUndoRedoService']),_0x3b7f76(0x6,_0xfd1b33[_0x1a1f79(0x25a)]),_0x3b7f76(0x7,_0xfd1b33['ILogService']),_0x3b7f76(0x8,_0x22b414['ITransformService']),_0x3b7f76(0x9,(0x0,_0xfd1b33['Optional'])(_0x1237f1))],_0x1cbacc);let _0x1906e3=_0x23d1a2=class extends _0x4d68f9{constructor(_0x2468de,_0x510164,_0x5ae758,_0x197dbd,_0x4a4af4,_0x1440de,_0x44fd87,_0x520cc,_0x2bfaad,_0x392009,_0x374cd5,_0x409491,_0x1aa3d5,_0x1e0d3d){const _0x6d9f38=_0x1a1f79;super(_0x2468de,_0x510164,null,_0x5ae758,_0x197dbd,_0x2bfaad,_0x1aa3d5,_0x1440de,_0x1e0d3d),this[_0x6d9f38(0x144)]=_0x4a4af4,this[_0x6d9f38(0x1a2)]=_0x44fd87,this[_0x6d9f38(0x3c0)]=_0x520cc,this[_0x6d9f38(0x347)]=_0x392009,this[_0x6d9f38(0x30b)]=_0x374cd5,this[_0x6d9f38(0x1f2)]=_0x409491,_0x3d9afb(this,_0x6d9f38(0x437),'pending'),_0x3d9afb(this,_0x6d9f38(0x15f),null),_0x3d9afb(this,_0x6d9f38(0x12f),null);}[_0x1a1f79(0x371)](_0x41316a){const _0x253d3e=_0x1a1f79;return this[_0x253d3e(0x3e8)][_0x253d3e(0x1a0)](_0x41316a),this['_updateLocalCache'](),this;}[_0x1a1f79(0x35f)](_0x2de0d1){const _0x3da569=_0x1a1f79;if(this[_0x3da569(0x266)](_0x2de0d1))return this[_0x3da569(0xf0)](),this[_0x3da569(0x144)][_0x3da569(0x2b2)](_0x4ccfc2,this['unitID'],this[_0x3da569(0x39b)],null,this[_0x3da569(0x3e8)],null,[_0x2de0d1],this[_0x3da569(0x148)]);try{let _0x14b604=this[_0x3da569(0x30b)]['transformMutationsWithChangeset'](_0x2de0d1,this[_0x3da569(0x3e8)]);if((0x0,_0x22b414[_0x3da569(0x11a)])(_0x14b604)){let {c1Prime:_0x2cbf3,m2Prime:_0x3acafe}=_0x14b604;this[_0x3da569(0x25c)](_0x2cbf3);let _0xff3ec8=this[_0x3da569(0x144)]['createInstance'](_0x23d1a2,this[_0x3da569(0x239)],this[_0x3da569(0x39b)],_0x3acafe,this[_0x3da569(0x148)]);this[_0x3da569(0xf0)]();let _0x4d8cc0=new Date()[_0x3da569(0x42c)](),_0x17b121=this[_0x3da569(0x15f)]?Math[_0x3da569(0x190)](this[_0x3da569(0x15f)]-_0x4d8cc0,0x0):this[_0x3da569(0x3cb)]();return _0xff3ec8[_0x3da569(0x203)](_0x17b121),_0xff3ec8;}throw _0x14b604['error'];}catch(_0x281146){return this[_0x3da569(0x3c0)][_0x3da569(0x2f1)](_0x281146),this[_0x3da569(0x271)](!0x1);}}[_0x1a1f79(0x235)](_0x1c32f5){const _0x39b888=_0x1a1f79;if(_0x1c32f5['revision']<=this[_0x39b888(0x3ed)]())return this;throw Error(_0x39b888(0xd7));}[_0x1a1f79(0x305)](){const _0x1bd80b=_0x1a1f79;throw Error(_0x1bd80b(0x306));}['onRemoteRetry'](){return this;}[_0x1a1f79(0x1ff)](){const _0x24f4ea=_0x1a1f79;return this[_0x24f4ea(0xf0)](),this[_0x24f4ea(0x144)][_0x24f4ea(0x2b2)](_0x59f410,this['unitID'],this[_0x24f4ea(0x39b)],null,this[_0x24f4ea(0x3e8)],this['_handler']);}[_0x1a1f79(0x257)](){return this;}[_0x1a1f79(0x203)](_0xa6e088){const _0x2bb803=_0x1a1f79;let _0x45a326=_0xa6e088??this['_getSendChangesetTimeout']();this[_0x2bb803(0x15f)]=new Date()[_0x2bb803(0x42c)]()+_0x45a326,this[_0x2bb803(0x12f)]=setTimeout(()=>{const _0x54b1aa=_0x2bb803;this[_0x54b1aa(0xf0)]();let _0x3d6134=null;switch(this[_0x54b1aa(0x39b)]){case _0xfd1b33[_0x54b1aa(0x34d)][_0x54b1aa(0x1ab)]:_0x3d6134=_0x149959(this[_0x54b1aa(0x3e8)],this[_0x54b1aa(0x239)],this[_0x54b1aa(0x1f2)],this[_0x54b1aa(0x3b3)],this[_0x54b1aa(0x1a2)]);break;case _0xfd1b33['UniverInstanceType'][_0x54b1aa(0x412)]:_0x3d6134=this['_pendingMutations'][_0x54b1aa(0x420)](_0x17c101=>_0x17c101['id']===_0x1c8317[_0x54b1aa(0x381)]['id'])?_0x2f2c2a(this['_pendingMutations'],this[_0x54b1aa(0x239)],this[_0x54b1aa(0x1f2)],this[_0x54b1aa(0x3b3)],this[_0x54b1aa(0x1a2)]):_0x149959(this[_0x54b1aa(0x3e8)],this[_0x54b1aa(0x239)],this['_univerInstanceService'],this[_0x54b1aa(0x3b3)],this[_0x54b1aa(0x1a2)]);break;case _0xfd1b33['UniverInstanceType'][_0x54b1aa(0xe7)]:_0x3d6134=_0x5a387e(this[_0x54b1aa(0x3e8)],this['unitID'],this[_0x54b1aa(0x1f2)],this[_0x54b1aa(0x3b3)],this[_0x54b1aa(0x1a2)]);break;case _0xfd1b33[_0x54b1aa(0x34d)][_0x54b1aa(0x186)]:_0x3d6134=_0x27e439(this[_0x54b1aa(0x3e8)],this[_0x54b1aa(0x239)],this[_0x54b1aa(0x1f2)],this[_0x54b1aa(0x3b3)],this[_0x54b1aa(0x1a2)]);break;case _0xfd1b33[_0x54b1aa(0x34d)][_0x54b1aa(0x2d5)]:_0x3d6134=_0x149959(this[_0x54b1aa(0x3e8)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x54b1aa(0x1a2)]);break;case _0xfd1b33[_0x54b1aa(0x34d)][_0x54b1aa(0x16b)]:_0x3d6134=_0x149959(this[_0x54b1aa(0x3e8)],this[_0x54b1aa(0x239)],this[_0x54b1aa(0x1f2)],this[_0x54b1aa(0x3b3)],this[_0x54b1aa(0x1a2)]);break;default:throw Error(_0x54b1aa(0x30a)+this[_0x54b1aa(0x39b)]+_0x54b1aa(0x179));}let {changeset:_0x3965f7,pendingMutations:_0xff196a}=_0x3d6134;this[_0x54b1aa(0x148)][_0x54b1aa(0x1bb)](_0x3965f7);let _0x4aaf80=_0xff196a['length']?this[_0x54b1aa(0x144)]['createInstance'](_0x3f186f,this[_0x54b1aa(0x239)],this[_0x54b1aa(0x39b)],_0x3965f7,_0xff196a,this['_handler'],void 0x0):this['_injector'][_0x54b1aa(0x2b2)](_0x4a32e6,this[_0x54b1aa(0x239)],this[_0x54b1aa(0x39b)],_0x3965f7,this[_0x54b1aa(0x148)]);_0x4aaf80[_0x54b1aa(0x2c4)](),this['_handler'][_0x54b1aa(0x11b)](this,_0x4aaf80);},_0x45a326);}[_0x1a1f79(0x3cb)](){const _0xe9b9be=_0x1a1f79;let _0x29ca9e=this[_0xe9b9be(0x347)][_0xe9b9be(0x352)](_0x46f3f1);return(_0x29ca9e==null?void 0x0:_0x29ca9e[_0xe9b9be(0x3c7)])??0x7d0;}[_0x1a1f79(0x17d)](){const _0xbe6751=_0x1a1f79;throw Error(_0xbe6751(0x251));}[_0x1a1f79(0xf0)](){const _0x1e0f3e=_0x1a1f79;this[_0x1e0f3e(0x12f)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x1e0f3e(0x12f)]=null);}[_0x1a1f79(0x271)](_0x182ed7){const _0x13c40d=_0x1a1f79;return this[_0x13c40d(0xf0)](),this[_0x13c40d(0x144)][_0x13c40d(0x2b2)](_0x9bc46,this['unitID'],this[_0x13c40d(0x39b)],null,this['_pendingMutations'],this['_handler'],_0x182ed7);}};_0x1906e3=_0x23d1a2=_0x3ef445([_0x3b7f76(0x4,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x3d8)])),_0x3b7f76(0x5,(0x0,_0xfd1b33['Inject'])(_0x22b414[_0x1a1f79(0x185)])),_0x3b7f76(0x6,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x2d0)])),_0x3b7f76(0x7,_0xfd1b33[_0x1a1f79(0x336)]),_0x3b7f76(0x8,_0xfd1b33[_0x1a1f79(0x25a)]),_0x3b7f76(0x9,_0xfd1b33[_0x1a1f79(0x1ee)]),_0x3b7f76(0xa,_0x22b414[_0x1a1f79(0x20d)]),_0x3b7f76(0xb,_0xfd1b33[_0x1a1f79(0x439)]),_0x3b7f76(0xc,_0xfd1b33[_0x1a1f79(0x260)]),_0x3b7f76(0xd,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x1237f1))],_0x1906e3);let _0x4a32e6=_0x253913=class extends _0x4d68f9{constructor(_0xa6b976,_0x1a7df1,_0x1bcc5e,_0x2ba163,_0x2d05c0,_0x3478c5,_0x593971,_0x82314c,_0x1dfc16,_0xb5b1c,_0x1d4ddb){const _0x425c2f=_0x1a1f79;super(_0xa6b976,_0x1a7df1,_0x1bcc5e,[],_0x2ba163,_0x593971,_0xb5b1c,_0x3478c5,_0x1d4ddb),this['_injector']=_0x2d05c0,this[_0x425c2f(0x3c0)]=_0x82314c,this[_0x425c2f(0x30b)]=_0x1dfc16,_0x3d9afb(this,_0x425c2f(0x437),'awaiting'),_0x3d9afb(this,_0x425c2f(0x28b),0x0),_0x3d9afb(this,'_maxTotalRetryTimeout',0x0),_0x3d9afb(this,_0x425c2f(0x200),void 0x0),_0x3d9afb(this,_0x425c2f(0x1fd),void 0x0);}[_0x1a1f79(0x371)](_0x6afc88){const _0x4f221b=_0x1a1f79;this[_0x4f221b(0xf0)]();let _0xa13245=this[_0x4f221b(0x144)]['createInstance'](_0x3f186f,this[_0x4f221b(0x239)],this[_0x4f221b(0x39b)],this[_0x4f221b(0x272)],[_0x6afc88],this['_handler'],this[_0x4f221b(0x200)]);return _0xa13245[_0x4f221b(0x2c4)](),_0xa13245;}[_0x1a1f79(0x35f)](_0x432d42){const _0x3b4368=_0x1a1f79;if(this[_0x3b4368(0x266)](_0x432d42))return this[_0x3b4368(0xf0)](),this[_0x3b4368(0x144)]['createInstance'](_0x4ccfc2,this[_0x3b4368(0x239)],this[_0x3b4368(0x39b)],this[_0x3b4368(0x272)],[],null,[_0x432d42],this[_0x3b4368(0x148)]);try{let _0x49cfad=this[_0x3b4368(0x30b)][_0x3b4368(0x1ba)]([_0x432d42],[this[_0x3b4368(0x272)]],!0x1);if((0x0,_0x22b414[_0x3b4368(0x1f3)])(_0x49cfad)){let {c1Prime:_0x34e967,c2Prime:_0x34e939}=_0x49cfad;this[_0x3b4368(0x25c)](_0x34e967[0x0]),_0x34e939[0x0][_0x3b4368(0x40b)]=this[_0x3b4368(0x3ed)](),this[_0x3b4368(0xf0)]();let _0x4ebbe4=this[_0x3b4368(0x144)][_0x3b4368(0x2b2)](_0x253913,this[_0x3b4368(0x239)],this[_0x3b4368(0x39b)],_0x34e939[0x0],this[_0x3b4368(0x148)]);return _0x4ebbe4['_updateLocalCache'](),_0x4ebbe4;}throw _0x49cfad[_0x3b4368(0x2f1)];}catch(_0x4fa076){return this['_logService'][_0x3b4368(0x2f1)](_0x4fa076),this['_onConflict'](!0x1);}}[_0x1a1f79(0x235)](_0x4e9488){const _0x224abe=_0x1a1f79;this['_clearScheduledTask']();let _0x657c7a=this[_0x224abe(0x3b3)][_0x224abe(0x435)](this[_0x224abe(0x239)]);if(_0x4e9488['revision']<=_0x657c7a)return this;if(this[_0x224abe(0x266)](_0x4e9488))return this[_0x224abe(0x144)][_0x224abe(0x2b2)](_0x4ccfc2,this[_0x224abe(0x239)],this[_0x224abe(0x39b)],this[_0x224abe(0x272)],[],_0x4e9488['revision'],[],this[_0x224abe(0x148)]);this['_incrementRevisionNumber']();let _0x207267=this[_0x224abe(0x144)][_0x224abe(0x2b2)](_0x1cbacc,this[_0x224abe(0x239)],this[_0x224abe(0x39b)],this['_handler']);return _0x207267[_0x224abe(0x2c4)](),_0x207267;}[_0x1a1f79(0x305)](_0x186581){const _0x1196df=_0x1a1f79;return this[_0x1196df(0x271)](!!(_0x186581!=null&&_0x186581[_0x1196df(0x22d)]));}[_0x1a1f79(0x19d)](_0x10a104){const _0x5eddda=_0x1a1f79;return this[_0x5eddda(0x312)]>_0xa825d0?this['toggleOffline']():(this[_0x5eddda(0x200)]=_0x179387(this[_0x5eddda(0x28b)],{'timeout':this[_0x5eddda(0x28b)],'reqId':_0x10a104[_0x5eddda(0x2b0)]}),this['_sender']=this[_0x5eddda(0x200)][_0x5eddda(0x441)](({reqId:_0x351400,timeout:_0x2eba5c})=>{const _0x48695a=_0x5eddda;this[_0x48695a(0x112)](_0x351400,_0x2eba5c);}),this);}[_0x1a1f79(0x1ff)](){const _0x322b98=_0x1a1f79;return this[_0x322b98(0xf0)](),this[_0x322b98(0x144)]['createInstance'](_0x59f410,this[_0x322b98(0x239)],this[_0x322b98(0x39b)],this[_0x322b98(0x272)],[],this[_0x322b98(0x148)]);}[_0x1a1f79(0x257)](){return this;}[_0x1a1f79(0x17d)](){const _0x706881=_0x1a1f79;this['_handler'][_0x706881(0x1bb)](this[_0x706881(0x272)]);}[_0x1a1f79(0x271)](_0x50428a){const _0x39dfcf=_0x1a1f79;return this[_0x39dfcf(0xf0)](),this[_0x39dfcf(0x144)][_0x39dfcf(0x2b2)](_0x9bc46,this[_0x39dfcf(0x239)],this['type'],this[_0x39dfcf(0x272)],[],this[_0x39dfcf(0x148)],_0x50428a);}[_0x1a1f79(0x112)](_0x2f74e9,_0x35c5cc){const _0x58c214=_0x1a1f79;var _0x2e0847;_0x2f74e9===((_0x2e0847=this[_0x58c214(0x272)])==null?void 0x0:_0x2e0847[_0x58c214(0x2b0)])&&(this['resend'](),this[_0x58c214(0x28b)]=_0x35c5cc===0x0?0x3e8:Math['min'](_0x35c5cc*0x2,_0x4e8b70),this[_0x58c214(0x312)]+=this[_0x58c214(0x28b)]);}[_0x1a1f79(0xf0)](){const _0x4ddd7e=_0x1a1f79;var _0x213b47;(_0x213b47=this[_0x4ddd7e(0x1fd)])==null||_0x213b47['unsubscribe'](),this[_0x4ddd7e(0x28b)]=0x0,this[_0x4ddd7e(0x312)]=0x0;}};_0x4a32e6=_0x253913=_0x3ef445([_0x3b7f76(0x4,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33['Injector'])),_0x3b7f76(0x5,(0x0,_0xfd1b33['Inject'])(_0x22b414[_0x1a1f79(0x185)])),_0x3b7f76(0x6,_0xfd1b33['ICommandService']),_0x3b7f76(0x7,_0xfd1b33['ILogService']),_0x3b7f76(0x8,_0x22b414[_0x1a1f79(0x20d)]),_0x3b7f76(0x9,_0xfd1b33[_0x1a1f79(0x260)]),_0x3b7f76(0xa,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x1237f1))],_0x4a32e6);let _0x3f186f=_0x457690=class extends _0x4d68f9{constructor(_0x51edf2,_0xef236d,_0x3bcfc8,_0x3de67e,_0x32b745,_0xe6ee25,_0x2a3f71,_0x39cbe4,_0x88bd1b,_0x20f66d,_0x39fe88,_0x16586d,_0x16b170){const _0x368927=_0x1a1f79;super(_0x51edf2,_0xef236d,_0x3bcfc8,_0x3de67e,_0x32b745,_0x88bd1b,_0x16586d,_0x39cbe4,_0x16b170),this[_0x368927(0x144)]=_0x2a3f71,this[_0x368927(0x3c0)]=_0x20f66d,this[_0x368927(0x30b)]=_0x39fe88,this[_0x368927(0x2b5)]=_0x16b170,_0x3d9afb(this,_0x368927(0x437),_0x368927(0xeb)),_0x3d9afb(this,_0x368927(0x28b),0x0),_0x3d9afb(this,_0x368927(0x312),0x0),_0x3d9afb(this,_0x368927(0x200),void 0x0),_0x3d9afb(this,_0x368927(0x1fd),void 0x0),_0xe6ee25&&(this[_0x368927(0x200)]=_0xe6ee25,this[_0x368927(0x1fd)]=this[_0x368927(0x200)][_0x368927(0x441)](({reqId:_0x2abb53,timeout:_0x23dd43})=>{this['_resendWithTimeout'](_0x2abb53,_0x23dd43);}));}[_0x1a1f79(0x371)](_0x6de3){const _0x321179=_0x1a1f79;return this[_0x321179(0x3e8)]['push'](_0x6de3),this;}['onRemoteChangeset'](_0x2378e4){const _0x204846=_0x1a1f79;if(this[_0x204846(0x266)](_0x2378e4))return this[_0x204846(0xf0)](),this[_0x204846(0x144)][_0x204846(0x2b2)](_0x4ccfc2,this['unitID'],this[_0x204846(0x39b)],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x2378e4],this['_handler']);try{let _0x44f840=this[_0x204846(0x30b)][_0x204846(0x1ba)]([_0x2378e4],[this[_0x204846(0x272)]],!0x1);if((0x0,_0x22b414[_0x204846(0x1f3)])(_0x44f840)){let {c1Prime:_0x161b96,c2Prime:_0x106717}=_0x44f840,_0x559ba9=this[_0x204846(0x30b)][_0x204846(0x12d)](_0x161b96[0x0],this[_0x204846(0x3e8)]);if((0x0,_0x22b414[_0x204846(0x11a)])(_0x559ba9)){let {c1Prime:_0x43f9e8,m2Prime:_0x574922}=_0x559ba9;return this[_0x204846(0x25c)](_0x43f9e8),_0x106717[0x0][_0x204846(0x40b)]=this[_0x204846(0x3ed)](),this['_clearScheduledTask'](),this[_0x204846(0x144)]['createInstance'](_0x457690,this[_0x204846(0x239)],this[_0x204846(0x39b)],_0x106717[0x0],_0x574922,this['_handler'],void 0x0);}throw _0x559ba9['error'];}throw _0x44f840[_0x204846(0x2f1)];}catch(_0xac7531){return this[_0x204846(0x3c0)][_0x204846(0x2f1)](_0xac7531),this[_0x204846(0x271)](!0x1);}}[_0x1a1f79(0x235)](_0x1d9cac){const _0x1b0160=_0x1a1f79;this[_0x1b0160(0xf0)]();let _0x37d985=this[_0x1b0160(0x3ed)]();if(_0x1d9cac['revision']<=_0x37d985)return this;if(this[_0x1b0160(0x266)](_0x1d9cac))return this[_0x1b0160(0x144)]['createInstance'](_0x4ccfc2,this[_0x1b0160(0x239)],this[_0x1b0160(0x39b)],this[_0x1b0160(0x272)],this[_0x1b0160(0x3e8)],_0x1d9cac[_0x1b0160(0x278)],[],this[_0x1b0160(0x148)]);this['_incrementRevisionNumber']();let _0x51ea71=this[_0x1b0160(0x144)][_0x1b0160(0x2b2)](_0x1906e3,this[_0x1b0160(0x239)],this[_0x1b0160(0x39b)],this['_pendingMutations'],this['_handler']);return _0x51ea71['_schedule'](),_0x51ea71[_0x1b0160(0x2c4)](),_0x51ea71;}[_0x1a1f79(0x305)](_0x1fb564){const _0x47ed36=_0x1a1f79;return this['_onConflict'](!!(_0x1fb564!=null&&_0x1fb564[_0x47ed36(0x22d)]));}[_0x1a1f79(0x19d)](_0x1ab6de){const _0x637cc7=_0x1a1f79;return this['_maxTotalRetryTimeout']>_0xa825d0?this['toggleOffline']():(this['_resendTimer']=_0x179387(this['_resendTimeout'],{'timeout':this[_0x637cc7(0x28b)],'reqId':_0x1ab6de[_0x637cc7(0x2b0)]}),this['_sender']=this['_resendTimer'][_0x637cc7(0x441)](({reqId:_0x221dd7,timeout:_0x24e4a8})=>{this['_resendWithTimeout'](_0x221dd7,_0x24e4a8);}),this);}[_0x1a1f79(0x1ff)](){const _0x25a0b5=_0x1a1f79;return this['_clearScheduledTask'](),this['_injector'][_0x25a0b5(0x2b2)](_0x59f410,this[_0x25a0b5(0x239)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x25a0b5(0x148)]);}['toggleOnline'](){return this;}[_0x1a1f79(0x17d)](){const _0x5ee380=_0x1a1f79;this['_handler'][_0x5ee380(0x1bb)](this[_0x5ee380(0x272)]);}[_0x1a1f79(0x271)](_0x2975b0){const _0x310890=_0x1a1f79;return this[_0x310890(0xf0)](),this[_0x310890(0x144)][_0x310890(0x2b2)](_0x9bc46,this[_0x310890(0x239)],this[_0x310890(0x39b)],null,this[_0x310890(0x3e8)],this[_0x310890(0x148)],_0x2975b0);}['_resendWithTimeout'](_0x37d2de,_0xe26548){const _0xa2c678=_0x1a1f79;var _0x569531;_0x37d2de===((_0x569531=this['_awaitingChangeset'])==null?void 0x0:_0x569531['reqId'])&&(this[_0xa2c678(0x17d)](),this['_resendTimeout']=_0xe26548===0x0?0x3e8:Math[_0xa2c678(0x408)](_0xe26548*0x2,_0x4e8b70),this[_0xa2c678(0x312)]+=this[_0xa2c678(0x28b)]);}[_0x1a1f79(0xf0)](){const _0x36fce2=_0x1a1f79;var _0x2c583e;(_0x2c583e=this['_sender'])==null||_0x2c583e[_0x36fce2(0x3b8)](),this[_0x36fce2(0x28b)]=0x0,this[_0x36fce2(0x312)]=0x0;}};_0x3f186f=_0x457690=_0x3ef445([_0x3b7f76(0x6,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33['Injector'])),_0x3b7f76(0x7,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x22b414[_0x1a1f79(0x185)])),_0x3b7f76(0x8,_0xfd1b33[_0x1a1f79(0x25a)]),_0x3b7f76(0x9,_0xfd1b33[_0x1a1f79(0x336)]),_0x3b7f76(0xa,_0x22b414[_0x1a1f79(0x20d)]),_0x3b7f76(0xb,_0xfd1b33[_0x1a1f79(0x260)]),_0x3b7f76(0xc,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x1237f1))],_0x3f186f);let _0x9bc46=class extends _0x4d68f9{constructor(_0x59e72f,_0x2ebf02,_0x3ac61e,_0x1913e3,_0x15bfdb,_0x3d86ac=!0x1,_0x48afb0,_0xd76f81,_0x2fadf6,_0x29d666,_0x65775b,_0x52fb3f,_0x1288db){const _0x596651=_0x1a1f79;super(_0x59e72f,_0x2ebf02,_0x3ac61e,_0x1913e3,_0x15bfdb,_0xd76f81,_0x2fadf6,_0x29d666,_0x1288db),this[_0x596651(0x22c)]=_0x3d86ac,this[_0x596651(0x106)]=_0x48afb0,this[_0x596651(0x145)]=_0x65775b,this[_0x596651(0x108)]=_0x52fb3f,this[_0x596651(0x2b5)]=_0x1288db,_0x3d9afb(this,_0x596651(0x437),'conflict'),this[_0x596651(0x1fb)](),this[_0x596651(0x2a1)](),this[_0x596651(0x154)]();}[_0x1a1f79(0x371)](){return this;}[_0x1a1f79(0x35f)](){return this;}[_0x1a1f79(0x235)](){return this;}[_0x1a1f79(0x305)](){return this;}[_0x1a1f79(0x19d)](){return this;}[_0x1a1f79(0x1ff)](){return this;}[_0x1a1f79(0x257)](){return this;}[_0x1a1f79(0x17d)](){const _0x14c1d2=_0x1a1f79;throw Error(_0x14c1d2(0xd8));}async['_prepareConflictRecovery'](){const _0x10b468=_0x1a1f79;var _0x53e001,_0x35c2ef;await((_0x53e001=this[_0x10b468(0x27a)])==null||(_0x35c2ef=_0x53e001[_0x10b468(0xd2)])==null?void 0x0:_0x35c2ef[_0x10b468(0x373)](_0x53e001,this[_0x10b468(0x239)],_0x10b468(0x1f4))[_0x10b468(0x2d8)](()=>void 0x0));try{var _0x14706f;await((_0x14706f=this[_0x10b468(0x27a)])==null?void 0x0:_0x14706f[_0x10b468(0x208)](this[_0x10b468(0x239)]));}catch{this[_0x10b468(0x108)]['emitEvent']({'id':_0x10b468(0xc4),'unitID':this[_0x10b468(0x239)]});return;}this[_0x10b468(0x338)]();}['_showConflictProcessingNotification'](){const _0x2d07af=_0x1a1f79;this[_0x2d07af(0x108)][_0x2d07af(0x29c)]({'id':_0x2d07af(0x2dd)});}[_0x1a1f79(0x338)](){const _0x24b640=_0x1a1f79;this[_0x24b640(0x22c)]?this[_0x24b640(0x108)][_0x24b640(0x29c)]({'id':_0x24b640(0x21b)}):this[_0x24b640(0x108)]['emitEvent']({'id':_0x24b640(0x28d)});}['_disableEditing'](){const _0x5d44f0=_0x1a1f79;this['_permissionService'][_0x5d44f0(0x33c)](new _0x23a42e[(_0x5d44f0(0x39d))](this[_0x5d44f0(0x239)])['id'],!0x1);}};_0x9bc46=_0x3ef445([_0x3b7f76(0x6,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0xc7)])),_0x3b7f76(0x7,_0xfd1b33[_0x1a1f79(0x25a)]),_0x3b7f76(0x8,_0xfd1b33[_0x1a1f79(0x260)]),_0x3b7f76(0x9,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x22b414[_0x1a1f79(0x185)])),_0x3b7f76(0xa,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x264)])),_0x3b7f76(0xb,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x2a8347)),_0x3b7f76(0xc,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x1237f1))],_0x9bc46);let _0x59f410=class extends _0x4d68f9{constructor(_0x17658f,_0x570f2f,_0xc9da1d,_0x97c7a8,_0x341446,_0x2e0664,_0x2cde35,_0x19c908,_0x5c90b8,_0x502d14){const _0x1e7f5f=_0x1a1f79;super(_0x17658f,_0x570f2f,_0xc9da1d,_0x97c7a8,_0x341446,_0x19c908,_0x5c90b8,_0x2cde35,_0x502d14),this['_injector']=_0x2e0664,_0x3d9afb(this,_0x1e7f5f(0x437),_0x1e7f5f(0x2a3));}[_0x1a1f79(0x371)](_0x357133){const _0x437119=_0x1a1f79;return this[_0x437119(0x3e8)]['push'](_0x357133),this[_0x437119(0x2c4)](),this;}[_0x1a1f79(0x35f)](_0x59e7db){const _0x1e271b=_0x1a1f79;throw Error(_0x1e271b(0xd4));}[_0x1a1f79(0x235)](){const _0x1f0946=_0x1a1f79;throw Error(_0x1f0946(0x181));}[_0x1a1f79(0x305)](){const _0x22a054=_0x1a1f79;throw Error(_0x22a054(0x34c));}[_0x1a1f79(0x19d)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){const _0x1f42a9=_0x1a1f79;let {_injector:_0x258238,_pendingMutations:_0x271ce8,_awaitingChangeset:_0x3a3d06,unitID:_0x37d237,_handler:_0x584ffa,type:_0x19ebbb}=this,_0x359e02=_0x4a7b66(_0x258238,_0x37d237,_0x19ebbb,_0x3a3d06,_0x271ce8,_0x584ffa);return _0x359e02 instanceof _0x1906e3?_0x359e02[_0x1f42a9(0x203)]():(_0x359e02 instanceof _0x3f186f||_0x359e02 instanceof _0x4a32e6)&&_0x359e02[_0x1f42a9(0x17d)](),_0x359e02;}[_0x1a1f79(0x17d)](){const _0x3e3596=_0x1a1f79;throw Error(_0x3e3596(0x184));}};_0x59f410=_0x3ef445([_0x3b7f76(0x5,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x3d8)])),_0x3b7f76(0x6,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x22b414[_0x1a1f79(0x185)])),_0x3b7f76(0x7,_0xfd1b33['ICommandService']),_0x3b7f76(0x8,_0xfd1b33[_0x1a1f79(0x260)]),_0x3b7f76(0x9,(0x0,_0xfd1b33['Optional'])(_0x1237f1))],_0x59f410);let _0x4ccfc2=class extends _0x4d68f9{constructor(_0x4b5851,_0x25c3f1,_0x98d459,_0x2acbe2,_0x10c5ca,_0x32023f,_0x235ca1,_0x246a2a,_0x1b8e97,_0x539056,_0x118f93,_0x22384e,_0x16e14a,_0x366bb0){const _0xa27b97=_0x1a1f79;super(_0x4b5851,_0x25c3f1,_0x98d459,_0x2acbe2,_0x235ca1,_0x118f93,_0x22384e,_0x1b8e97,_0x366bb0),this['_acknowledgedAwaitingRevision']=_0x10c5ca,this[_0xa27b97(0x14b)]=_0x32023f,this[_0xa27b97(0x144)]=_0x246a2a,this[_0xa27b97(0x3c0)]=_0x539056,this[_0xa27b97(0x30b)]=_0x16e14a,this[_0xa27b97(0x2b5)]=_0x366bb0,_0x3d9afb(this,_0xa27b97(0x437),'fetch_missing');}[_0x1a1f79(0x170)](_0xb6f64e){const _0x196b80=_0x1a1f79;try{if(this['_handleRemoteChangesets'](_0xb6f64e)[_0x196b80(0x246)])throw Error(_0x196b80(0x2ac));if(this[_0x196b80(0xcc)]([...this['_queuedRemoteChangesets']][_0x196b80(0x1f6)]((_0x5bcfb1,_0x1b2bb5)=>_0x5bcfb1['revision']-_0x1b2bb5[_0x196b80(0x278)]))[_0x196b80(0x246)])return this[_0x196b80(0x14b)]=[],this['_updateLocalCache'](),this[_0x196b80(0x148)][_0x196b80(0x248)]({'from':this[_0x196b80(0x3ed)](),'to':0x0}),this;let _0x445423=this[_0x196b80(0x272)],_0x1ff6f4=this[_0x196b80(0x3e8)],_0x24a73e;if(_0x445423&&_0x1ff6f4[_0x196b80(0x314)]!==0x0)_0x24a73e=this[_0x196b80(0x144)][_0x196b80(0x2b2)](_0x3f186f,this[_0x196b80(0x239)],this[_0x196b80(0x39b)],_0x445423,_0x1ff6f4,this['_handler'],void 0x0);else{if(_0x445423&&_0x1ff6f4[_0x196b80(0x314)]===0x0)_0x445423[_0x196b80(0x40b)]=this[_0x196b80(0x3ed)](),_0x24a73e=this[_0x196b80(0x144)][_0x196b80(0x2b2)](_0x4a32e6,this['unitID'],this[_0x196b80(0x39b)],_0x445423,this[_0x196b80(0x148)]);else{if(_0x1ff6f4['length']!==0x0){let _0x52e16a=this[_0x196b80(0x144)]['createInstance'](_0x1906e3,this[_0x196b80(0x239)],this[_0x196b80(0x39b)],_0x1ff6f4,this[_0x196b80(0x148)]);_0x52e16a[_0x196b80(0x203)](),_0x24a73e=_0x52e16a;}else _0x24a73e=this[_0x196b80(0x144)][_0x196b80(0x2b2)](_0x1cbacc,this[_0x196b80(0x239)],this['type'],this[_0x196b80(0x148)]);}}return _0x24a73e[_0x196b80(0x2c4)](),_0x24a73e;}catch(_0x3527f7){return this['_logService'][_0x196b80(0x2f1)]('[FetchMissState]',_0x196b80(0x182),_0x3527f7),this['_injector']['createInstance'](_0x9bc46,this[_0x196b80(0x239)],this['type'],this[_0x196b80(0x272)],this['_pendingMutations'],this[_0x196b80(0x148)],!0x1);}}[_0x1a1f79(0xcc)](_0xfd3a8f){const _0x146841=_0x1a1f79;this[_0x146841(0x2e1)]();for(let _0xd1631c=0x0;_0xd1631c<_0xfd3a8f[_0x146841(0x314)];_0xd1631c++){let _0x25d1f4=_0xfd3a8f[_0xd1631c],_0x3ac5cb=this[_0x146841(0x3ed)]();if(!(_0x25d1f4[_0x146841(0x278)]<=_0x3ac5cb)){if(_0x25d1f4[_0x146841(0x278)]>_0x3ac5cb+0x1)return{'missingChangesets':!0x0};if(this[_0x146841(0x2ff)](_0x25d1f4)){this[_0x146841(0x378)]();continue;}this[_0x146841(0x3a5)](_0x25d1f4),this[_0x146841(0x2e1)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x2f8a0b){const _0x17d16f=_0x1a1f79;let _0xa582ac=_0x2f8a0b,_0x2c9e54=this['_awaitingChangeset'];if(_0x2c9e54){let _0x46ddd2=this['_transformService'][_0x17d16f(0x1ba)]([_0x2f8a0b],[_0x2c9e54],!0x1);if(!(0x0,_0x22b414['isTransformChangesetsSuccess'])(_0x46ddd2))throw _0x46ddd2[_0x17d16f(0x2f1)];_0xa582ac=_0x46ddd2[_0x17d16f(0x1cf)][0x0],_0x2c9e54=_0x46ddd2['c2Prime'][0x0];}let _0x4a4871=this[_0x17d16f(0x3e8)];if(_0x4a4871[_0x17d16f(0x314)]){let _0x4c9ac3=this[_0x17d16f(0x30b)][_0x17d16f(0x12d)](_0xa582ac,_0x4a4871);if(!(0x0,_0x22b414[_0x17d16f(0x11a)])(_0x4c9ac3))throw _0x4c9ac3[_0x17d16f(0x2f1)];_0xa582ac=_0x4c9ac3[_0x17d16f(0x1cf)],_0x4a4871=_0x4c9ac3[_0x17d16f(0x113)];}this[_0x17d16f(0x25c)](_0xa582ac),_0x2c9e54&&(_0x2c9e54['baseRev']=this[_0x17d16f(0x3ed)]()),this[_0x17d16f(0x272)]=_0x2c9e54,this[_0x17d16f(0x3e8)]=_0x4a4871;}['_acknowledgeAwaitingIfReady'](){const _0x5b63a0=_0x1a1f79;if(!this[_0x5b63a0(0x272)]||this[_0x5b63a0(0x227)]==null)return;let _0x472f9f=this[_0x5b63a0(0x3ed)]();if(this[_0x5b63a0(0x227)]<=_0x472f9f)throw Error(_0x5b63a0(0x334)+this[_0x5b63a0(0x227)]+'.');this[_0x5b63a0(0x227)]===_0x472f9f+0x1&&this[_0x5b63a0(0x378)]();}[_0x1a1f79(0x378)](){const _0x290017=_0x1a1f79;this[_0x290017(0x245)](),this[_0x290017(0x272)]=null,this[_0x290017(0x227)]=null;}[_0x1a1f79(0x2ff)](_0x530aef){const _0x454dca=_0x1a1f79;let _0x122635=this[_0x454dca(0x272)];return!_0x122635||!_0x122635['sid']||_0x122635[_0x454dca(0x2b0)]===null||_0x122635['reqId']===void 0x0?!0x1:_0x530aef[_0x454dca(0x239)]===_0x122635[_0x454dca(0x239)]&&_0x530aef[_0x454dca(0x375)]===_0x122635['sid']&&_0x530aef['reqId']===_0x122635[_0x454dca(0x2b0)];}[_0x1a1f79(0x17d)](){const _0x3ed3f4=_0x1a1f79;throw Error(_0x3ed3f4(0x136));}[_0x1a1f79(0x371)](_0x417060){const _0x358169=_0x1a1f79;return this[_0x358169(0x3e8)][_0x358169(0x1a0)](_0x417060),this;}[_0x1a1f79(0x35f)](_0x10ee63){const _0x3ce6e2=_0x1a1f79;return this[_0x3ce6e2(0x14b)]['push'](_0x10ee63),this;}[_0x1a1f79(0x235)](_0x5dee12){const _0x4af993=_0x1a1f79;if(this['_awaitingChangeset']){let _0x3174d2=this[_0x4af993(0x3ed)]();return _0x5dee12[_0x4af993(0x278)]<=_0x3174d2||(_0x3174d2+0x1===_0x5dee12[_0x4af993(0x278)]?(this['_incrementRevisionNumber'](),this['_awaitingChangeset']=null,this[_0x4af993(0x227)]=null):this[_0x4af993(0x227)]=_0x5dee12[_0x4af993(0x278)]),this;}if(_0x5dee12[_0x4af993(0x278)]<=this[_0x4af993(0x3ed)]())return this;throw Error(_0x4af993(0x196));}[_0x1a1f79(0x305)](_0x31ae39){const _0x5ba9c6=_0x1a1f79;return this[_0x5ba9c6(0x271)](!!(_0x31ae39!=null&&_0x31ae39[_0x5ba9c6(0x22d)]));}['onRemoteRetry'](){return this;}[_0x1a1f79(0x1ff)](){const _0x2e5a8d=_0x1a1f79;return this[_0x2e5a8d(0x144)][_0x2e5a8d(0x2b2)](_0x59f410,this['unitID'],this[_0x2e5a8d(0x39b)],this[_0x2e5a8d(0x272)],this[_0x2e5a8d(0x3e8)],this[_0x2e5a8d(0x148)]);}['toggleOnline'](){return this;}[_0x1a1f79(0x271)](_0x34e553){const _0x29f89f=_0x1a1f79;return this[_0x29f89f(0x144)][_0x29f89f(0x2b2)](_0x9bc46,this[_0x29f89f(0x239)],this[_0x29f89f(0x39b)],this['_awaitingChangeset'],this[_0x29f89f(0x3e8)],this[_0x29f89f(0x148)],_0x34e553);}};_0x4ccfc2=_0x3ef445([_0x3b7f76(0x7,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x3d8)])),_0x3b7f76(0x8,(0x0,_0xfd1b33['Inject'])(_0x22b414[_0x1a1f79(0x185)])),_0x3b7f76(0x9,_0xfd1b33[_0x1a1f79(0x336)]),_0x3b7f76(0xa,_0xfd1b33[_0x1a1f79(0x25a)]),_0x3b7f76(0xb,_0xfd1b33[_0x1a1f79(0x260)]),_0x3b7f76(0xc,_0x22b414[_0x1a1f79(0x20d)]),_0x3b7f76(0xd,(0x0,_0xfd1b33['Optional'])(_0x1237f1))],_0x4ccfc2);function _0x4a7b66(_0xbc71f8,_0x494428,_0x2bcb8d,_0x53f733,_0x2fdc90,_0x3ba21c){const _0x36077e=_0x1a1f79;return _0x53f733&&_0x2fdc90['length']?_0xbc71f8['createInstance'](_0x3f186f,_0x494428,_0x2bcb8d,_0x53f733,_0x2fdc90,_0x3ba21c,void 0x0):_0x53f733?_0xbc71f8['createInstance'](_0x4a32e6,_0x494428,_0x2bcb8d,_0x53f733,_0x3ba21c):_0x2fdc90[_0x36077e(0x314)]?_0xbc71f8[_0x36077e(0x2b2)](_0x1906e3,_0x494428,_0x2bcb8d,_0x2fdc90,_0x3ba21c):_0xbc71f8[_0x36077e(0x2b2)](_0x1cbacc,_0x494428,_0x2bcb8d,_0x3ba21c);}let _0x194e81=class extends _0xfd1b33[_0x1a1f79(0x156)]{get[_0x1a1f79(0xcd)](){return this['_state'];}constructor(_0x31bbb8,_0x3585b6,_0x1ca94d,_0x41873d,_0x16103e,_0x5a28f6,_0x3052db,_0xdce637,_0x10258f,_0x3b0090,_0x1850c0,_0x306dc2,_0xdf2226,_0xaefc90){const _0x3ad2f6=_0x1a1f79;super(),this[_0x3ad2f6(0x239)]=_0x31bbb8,this[_0x3ad2f6(0x137)]=_0x3585b6,this['_type']=_0x1ca94d,this['_injector']=_0x41873d,this['_compressMutationService']=_0x16103e,this[_0x3ad2f6(0x145)]=_0x5a28f6,this[_0x3ad2f6(0x3b3)]=_0x3052db,this['_eventService']=_0xdce637,this['_univerInstanceService']=_0x10258f,this[_0x3ad2f6(0x3c0)]=_0x3b0090,this['_commandService']=_0x1850c0,this[_0x3ad2f6(0x106)]=_0x306dc2,this[_0x3ad2f6(0x211)]=_0xdf2226,this['_localCacheService']=_0xaefc90,_0x3d9afb(this,_0x3ad2f6(0x3ad),new _0x29156e[(_0x3ad2f6(0x3ab))](null)),_0x3d9afb(this,_0x3ad2f6(0x1c3),this[_0x3ad2f6(0x3ad)][_0x3ad2f6(0xc5)]()),_0x3d9afb(this,_0x3ad2f6(0x33d),void 0x0),_0x3d9afb(this,_0x3ad2f6(0x301),!0x1),_0x3d9afb(this,'_changesetSessionId',''),_0x3d9afb(this,_0x3ad2f6(0x331),0x0),_0x3d9afb(this,_0x3ad2f6(0x24a),this[_0x3ad2f6(0x1c3)][_0x3ad2f6(0x13a)]((0x0,_0x29156e['map'])(_0x212118=>_0x212118?_0x212118['status']:_0x3ad2f6(0x2a3)),(0x0,_0x29156e[_0x3ad2f6(0x2e9)])({'bufferSize':0x1,'refCount':!0x0}))),_0x3d9afb(this,_0x3ad2f6(0x1b7),!0x1),_0x3d9afb(this,_0x3ad2f6(0x18e),[]);}async[_0x1a1f79(0x133)](){const _0x2b749f=_0x1a1f79;if(this[_0x2b749f(0xcd)])throw Error(_0x2b749f(0x3ee));await this[_0x2b749f(0x1d1)]();}[_0x1a1f79(0x27e)](){return this['_collaborationPaused']=!0x0,(0x0,_0xfd1b33['toDisposable'])(()=>{const _0x2f8e6f=_0x31da;this['_collaborationPaused']=!0x1,this[_0x2f8e6f(0x1df)]();});}[_0x1a1f79(0x1b4)](_0x3d076e){const _0x573079=_0x1a1f79;this[_0x573079(0x32f)](_0x3d076e);}['_updateState'](_0x362250){const _0x1766c2=_0x1a1f79;this[_0x1766c2(0x33d)]=_0x362250,this[_0x1766c2(0x3ad)][_0x1766c2(0x34e)](_0x362250);}async['_init'](){const _0x129b96=_0x1a1f79;if(this[_0x129b96(0x17a)](await this['_createInitialState']()),this[_0x129b96(0x211)]){var _0x28d616;(_0x28d616=this[_0x129b96(0x211)])==null||_0x28d616[_0x129b96(0x297)](this[_0x129b96(0x239)]),this[_0x129b96(0x2df)](this[_0x129b96(0x211)][_0x129b96(0x25b)](this[_0x129b96(0x239)])[_0x129b96(0x441)](_0xaca720=>{const _0x2b3dda=_0x129b96;this[_0x2b3dda(0x3c0)][_0x2b3dda(0x10b)]('[CollaborationEntity]',_0x2b3dda(0x32e),_0xaca720),_0xaca720===0x1?(this['_eventService'][_0x2b3dda(0x29c)]({'id':_0x2b3dda(0x3de)}),this[_0x2b3dda(0x106)]['updatePermissionPoint'](new _0x23a42e['WorkbookEditablePermission'](this[_0x2b3dda(0x239)])['id'],!0x1),this[_0x2b3dda(0x106)][_0x2b3dda(0x17f)](!0x1)):(this[_0x2b3dda(0x106)][_0x2b3dda(0x33c)](new _0x23a42e[(_0x2b3dda(0x39d))](this[_0x2b3dda(0x239)])['id'],!0x0),this[_0x2b3dda(0x106)][_0x2b3dda(0x17f)](!0x0));}));}let _0x1cde92=!0x1;return this['disposeWithMe'](this[_0x129b96(0x137)][_0x129b96(0x114)]['subscribe'](_0x458f0c=>{const _0x2073ff=_0x129b96;_0x458f0c===0x3?this['_toggleOnline'](_0x1cde92):_0x458f0c===0x2&&(_0x1cde92=!0x0,this[_0x2073ff(0x2c1)]());})),this[_0x129b96(0x2df)](this[_0x129b96(0x137)][_0x129b96(0x237)][_0x129b96(0x441)](_0x2c66e2=>{const _0x54835c=_0x129b96;try{switch(_0x2c66e2[_0x54835c(0x275)]){case _0x22b414[_0x54835c(0x32a)][_0x54835c(0x1e3)]:this['_onRemoteChangeset']((0x0,_0x22b414[_0x54835c(0x119)])(_0x2c66e2[_0x54835c(0x16f)]));break;case _0x22b414['CollaborationEvent'][_0x54835c(0x166)]:this['_onRemoteACK'](_0x2c66e2[_0x54835c(0x16f)]);break;case _0x22b414[_0x54835c(0x32a)][_0x54835c(0x1e8)]:this['_onRemoteRejected']();break;case _0x22b414['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:this[_0x54835c(0x1b6)](_0x2c66e2['data']);break;case _0x22b414[_0x54835c(0x32a)][_0x54835c(0x1be)]:this[_0x54835c(0x1a4)](_0x2c66e2[_0x54835c(0x16f)][_0x54835c(0x340)]['map'](_0x4ff1e0=>(0x0,_0x22b414[_0x54835c(0x119)])(_0x4ff1e0)));break;case _0x22b414[_0x54835c(0x32a)][_0x54835c(0x42b)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x22b414[_0x54835c(0x32a)][_0x54835c(0x1f8)]:}}catch(_0x12aa06){throw console[_0x54835c(0x2f1)](_0x54835c(0x34f),_0x12aa06),_0x12aa06;}})),this['_state'];}[_0x1a1f79(0x3c5)](){this['_transitionLocked']=!0x1;}[_0x1a1f79(0x1eb)](){const _0x1a1bb7=_0x1a1f79;if(this[_0x1a1bb7(0x1b7)])throw Error(_0x1a1bb7(0x374));this[_0x1a1bb7(0x1b7)]=!0x0;}[_0x1a1f79(0x32f)](_0xc6879e){const _0x457476=_0x1a1f79;this[_0x457476(0x1eb)](),this[_0x457476(0x17a)](this[_0x457476(0x33d)][_0x457476(0x371)](_0xc6879e)),this[_0x457476(0x3c5)]();}[_0x1a1f79(0x232)](_0x4a40c1){const _0x49cee7=_0x1a1f79;if(!(_0x4a40c1[_0x49cee7(0x278)]<=this[_0x49cee7(0x3b3)]['getCurrentRevOfUnit'](this[_0x49cee7(0x239)]))){if(this[_0x49cee7(0x301)]){this[_0x49cee7(0x18e)][_0x49cee7(0x1a0)](_0x4a40c1);return;}this[_0x49cee7(0x38e)](_0x4a40c1);}}[_0x1a1f79(0x1df)](){const _0x576526=_0x1a1f79;this['_remoteChangesetQueue']['forEach'](_0x4e4aac=>this[_0x576526(0x38e)](_0x4e4aac)),this[_0x576526(0x18e)]=[];}[_0x1a1f79(0x38e)](_0x5c5d82){const _0x19b01d=_0x1a1f79;let _0x148b17=this[_0x19b01d(0x2f7)][_0x19b01d(0x363)][_0x19b01d(0x43c)](this[_0x19b01d(0x2f7)][_0x19b01d(0x363)][_0x19b01d(0x2fe)]()['COMPRESS_MUTATION_APPLY'])(_0x5c5d82['mutations'],null)||_0x5c5d82[_0x19b01d(0x35e)],_0x37b221={..._0x5c5d82,'mutations':_0x148b17};this['_lockTransition'](),this[_0x19b01d(0x17a)](this[_0x19b01d(0x33d)][_0x19b01d(0x35f)](_0x37b221)),this['_unlockTransition']();}['_onRemoteACK'](_0x50a0d9){const _0xc93edf=_0x1a1f79;this[_0xc93edf(0x1eb)](),this[_0xc93edf(0x17a)](this[_0xc93edf(0x33d)][_0xc93edf(0x235)](_0x50a0d9)),this[_0xc93edf(0x3c5)]();}[_0x1a1f79(0x402)](_0x499723){const _0x5ce932=_0x1a1f79;this[_0x5ce932(0x1eb)](),this[_0x5ce932(0x17a)](this[_0x5ce932(0x33d)][_0x5ce932(0x305)](_0x499723)),this[_0x5ce932(0x3c5)]();}['_onRemoteRetry'](_0x11a3a9){const _0x1324a8=_0x1a1f79;this[_0x1324a8(0x1eb)](),this[_0x1324a8(0x17a)](this[_0x1324a8(0x33d)][_0x1324a8(0x19d)](_0x11a3a9)),this[_0x1324a8(0x3c5)]();}['_onFetchMissResult'](_0x23dfb9){const _0x785312=_0x1a1f79;if(!(this[_0x785312(0x33d)]instanceof _0x4ccfc2))throw TypeError(_0x785312(0x442));let _0x4dc663=_0x23dfb9['map'](_0x4a79f1=>{const _0x6d116b=_0x785312;let _0x526a12=this[_0x6d116b(0x2f7)][_0x6d116b(0x363)][_0x6d116b(0x43c)](this[_0x6d116b(0x2f7)]['interceptor']['getInterceptPoints']()[_0x6d116b(0x37a)])(_0x4a79f1['mutations'],null)||_0x4a79f1[_0x6d116b(0x35e)];return{..._0x4a79f1,'mutations':_0x526a12};});this['_lockTransition'](),this[_0x785312(0x17a)](this[_0x785312(0x33d)][_0x785312(0x170)](_0x4dc663)),this['_unlockTransition']();}[_0x1a1f79(0x2c1)](){const _0x357646=_0x1a1f79;this['_lockTransition'](),this[_0x357646(0x17a)](this[_0x357646(0x33d)][_0x357646(0x1ff)]()),this[_0x357646(0x3c5)]();}[_0x1a1f79(0x2a8)](_0x8a0df9=!0x1){const _0x1ffaa2=_0x1a1f79;this[_0x1ffaa2(0x1eb)](),this[_0x1ffaa2(0x17a)](this[_0x1ffaa2(0x33d)]['toggleOnline']()),this['_unlockTransition']();let _0x49fa02=this[_0x1ffaa2(0x33d)];_0x8a0df9&&_0x49fa02 instanceof _0x1cbacc&&(this[_0x1ffaa2(0x1eb)](),this[_0x1ffaa2(0x17a)](_0x49fa02[_0x1ffaa2(0x2bc)]()),this[_0x1ffaa2(0x3c5)]());}async[_0x1a1f79(0x1f5)](){return new Promise(_0x580e7d=>{const _0x3d709b=_0x31da;this[_0x3d709b(0x137)][_0x3d709b(0x114)]['pipe']((0x0,_0x29156e[_0x3d709b(0x39e)])(0x1))[_0x3d709b(0x441)](async _0x2d2034=>{const _0xf4a476=_0x3d709b;_0x580e7d(await this[_0xf4a476(0x1a8)](_0x2d2034===0x3));});});}[_0x1a1f79(0x22e)](){const _0x5e2fba=_0x1a1f79;let _0x19b948=this[_0x5e2fba(0x239)];return{'onStateChange':(_0x1cf300,_0x1c97c0)=>{const _0x2804ea=_0x5e2fba;if(_0x1cf300!==this[_0x2804ea(0x33d)])throw Error(_0x2804ea(0x394)+_0x1cf300['status']+'\x0aAfter:\x20'+_0x1c97c0[_0x2804ea(0x437)]+_0x2804ea(0xf7)+this['_state']['status']);this['_updateState'](_0x1c97c0);},'onSendChangeset':_0x3d34a9=>{const _0x2d91de=_0x5e2fba;_0x3d34a9[_0x2d91de(0x375)]||(_0x3d34a9['sid']=this[_0x2d91de(0x431)],_0x3d34a9[_0x2d91de(0x2b0)]=++this[_0x2d91de(0x331)]);let _0x373ba={'eventID':_0x22b414[_0x2d91de(0x32a)][_0x2d91de(0x1a5)],'data':{'unitID':_0x3d34a9['unitID'],'unitType':this[_0x2d91de(0x3ba)],'changeset':_0x3d34a9,'memberID':this[_0x2d91de(0x137)][_0x2d91de(0x29d)]()}};this[_0x2d91de(0x137)][_0x2d91de(0x285)](_0x373ba,this[_0x2d91de(0x239)]);},'onMissingChangesets':({from:_0x1855ee,to:_0x800b6a})=>{const _0x1d5608=_0x5e2fba;this[_0x1d5608(0x3c0)]['debug'](_0x1d5608(0x105),_0x1d5608(0x24f)+_0x1855ee+_0x1d5608(0x11d)+_0x800b6a);let _0x15cef5={'eventID':_0x22b414[_0x1d5608(0x32a)][_0x1d5608(0x103)],'data':{'unitID':_0x19b948,'unitType':this[_0x1d5608(0x3ba)],'from':_0x1855ee,'to':_0x800b6a}};this['session']['send'](_0x15cef5,this[_0x1d5608(0x239)]);}};}async[_0x1a1f79(0x1a8)](_0xf85dd8){const _0xb61510=_0x1a1f79;var _0x40676e;let _0x1b9359=await((_0x40676e=this[_0xb61510(0x27a)])==null?void 0x0:_0x40676e[_0xb61510(0x35c)](this[_0xb61510(0x239)])),_0x363f17=(_0x1b9359==null?void 0x0:_0x1b9359[_0xb61510(0x35e)])??[],_0x172a44=(_0x1b9359==null?void 0x0:_0x1b9359[_0xb61510(0x40d)])??null,_0x5634fa=!!(_0x172a44!=null&&_0x172a44[_0xb61510(0x375)])&&!!(_0x172a44!=null&&_0x172a44[_0xb61510(0x2b0)]);this[_0xb61510(0x431)]=_0x5634fa?_0x172a44[_0xb61510(0x375)]:(0x0,_0x22b414[_0xb61510(0xf1)])(),this[_0xb61510(0x331)]=_0x5634fa?_0x172a44[_0xb61510(0x2b0)]:0x0;let _0x5de87d=this[_0xb61510(0x239)];try{this[_0xb61510(0xed)](_0x172a44,_0x363f17);}catch(_0x5c3e52){this[_0xb61510(0x3c0)][_0xb61510(0x2f1)](_0x5c3e52);}let _0x4abd73=this['_createHandler']();if(_0xf85dd8){let _0xcf054=_0x4a7b66(this['_injector'],_0x5de87d,this['_type'],_0x172a44,_0x363f17,_0x4abd73);return _0xcf054 instanceof _0x1906e3?_0xcf054['_schedule']():(_0xcf054 instanceof _0x3f186f||_0xcf054 instanceof _0x4a32e6)&&_0xcf054[_0xb61510(0x17d)](),_0xcf054;}return this[_0xb61510(0x144)]['createInstance'](_0x59f410,_0x5de87d,this[_0xb61510(0x3ba)],_0x172a44,_0x363f17,_0x4abd73);}[_0x1a1f79(0xed)](_0x23ce44,_0x1f935d){const _0x269988=_0x1a1f79;var _0x176607,_0xf4d0d5;let _0x2ca41b=this[_0x269988(0x2f7)][_0x269988(0x363)][_0x269988(0x43c)](this[_0x269988(0x2f7)][_0x269988(0x363)][_0x269988(0x2fe)]()[_0x269988(0x37a)]);(_0x176607=_0x2ca41b((_0x23ce44==null?void 0x0:_0x23ce44[_0x269988(0x35e)])||[],null))==null||_0x176607[_0x269988(0x18c)](_0xeb518f=>this['_commandService']['executeCommand'](_0xeb518f['id'],_0xeb518f[_0x269988(0x1e6)])),(_0xf4d0d5=_0x2ca41b(_0x1f935d||[],null))==null||_0xf4d0d5['forEach'](_0x4dff04=>this[_0x269988(0x292)][_0x269988(0x2e4)](_0x4dff04['id'],_0x4dff04[_0x269988(0x1e6)]));}};_0x194e81=_0x3ef445([_0x3b7f76(0x3,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33['Injector'])),_0x3b7f76(0x4,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x22b414[_0x1a1f79(0x151)])),_0x3b7f76(0x5,(0x0,_0xfd1b33['Inject'])(_0xfd1b33['LocaleService'])),_0x3b7f76(0x6,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x22b414['RevisionService'])),_0x3b7f76(0x7,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x2a8347)),_0x3b7f76(0x8,_0xfd1b33[_0x1a1f79(0x439)]),_0x3b7f76(0x9,_0xfd1b33[_0x1a1f79(0x336)]),_0x3b7f76(0xa,_0xfd1b33['ICommandService']),_0x3b7f76(0xb,_0xfd1b33[_0x1a1f79(0xc7)]),_0x3b7f76(0xc,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x4f0bf8)),_0x3b7f76(0xd,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x1237f1))],_0x194e81);let _0x460c6f=class extends _0x194e81{constructor(_0x3286e2,_0x37003f,_0x597320,_0x266bd5,_0x193e36,_0xa4f88a,_0x225df1,_0x179cd9,_0x13a7c1,_0x516283,_0x592bbf,_0x15c6e8,_0x3493dd,_0x31c173,_0x5093b1){const _0x566e1f=_0x1a1f79;super(_0x3286e2,_0x597320,_0x37003f,_0x266bd5,_0x193e36,_0xa4f88a,_0x225df1,_0x179cd9,_0x13a7c1,_0x516283,_0x592bbf,_0x15c6e8,_0x31c173,_0x5093b1),this[_0x566e1f(0x239)]=_0x3286e2,this[_0x566e1f(0x39b)]=_0x37003f,this['_docStateChangeManagerService']=_0x3493dd,_0x3d9afb(this,'_handlerCallback',null);}[_0x1a1f79(0xdc)](_0x5c261a){this['_handlerCallback']=_0x5c261a;}[_0x1a1f79(0xdb)](){const _0x5863be=_0x1a1f79;this[_0x5863be(0x2e5)]=null,super[_0x5863be(0xdb)]();}[_0x1a1f79(0x22e)](){const _0x173b9a=_0x1a1f79;let _0x3916bf=super[_0x173b9a(0x22e)]();return _0x3916bf['onTransformIME']=_0x289dd3=>{const _0x42e2e2=_0x173b9a;var _0x3ed33c,_0x2da4c9;return(_0x3ed33c=this['_handlerCallback'])==null||(_0x2da4c9=_0x3ed33c[_0x42e2e2(0x126)])==null?void 0x0:_0x2da4c9[_0x42e2e2(0x373)](_0x3ed33c,_0x289dd3);},_0x3916bf[_0x173b9a(0x2d2)]=_0x5c6e81=>{const _0x313e9b=_0x173b9a;var _0xa86f57,_0x442343;return(_0xa86f57=this[_0x313e9b(0x2e5)])==null||(_0x442343=_0xa86f57[_0x313e9b(0x2d2)])==null?void 0x0:_0x442343[_0x313e9b(0x373)](_0xa86f57,_0x5c6e81);},_0x3916bf['onPrepareTransformSelections']=_0x18eee8=>{const _0x13bffb=_0x173b9a;var _0x56759a,_0x32a029;return((_0x56759a=this['_handlerCallback'])==null||(_0x32a029=_0x56759a['onPrepareTransformSelections'])==null?void 0x0:_0x32a029[_0x13bffb(0x373)](_0x56759a,_0x18eee8))??null;},_0x3916bf[_0x173b9a(0x382)]=_0x87781b=>{const _0x3181fa=_0x173b9a;var _0x4fff2a,_0x34d6b8;return(_0x4fff2a=this[_0x3181fa(0x2e5)])==null||(_0x34d6b8=_0x4fff2a[_0x3181fa(0x382)])==null?void 0x0:_0x34d6b8['call'](_0x4fff2a,_0x87781b);},_0x3916bf['onSyncEditingCollabCursor']=_0x260847=>{const _0x5c4bc0=_0x173b9a;var _0x56bb19,_0x599b31;return(_0x56bb19=this[_0x5c4bc0(0x2e5)])==null||(_0x599b31=_0x56bb19['onSyncEditingCollabCursor'])==null?void 0x0:_0x599b31[_0x5c4bc0(0x373)](_0x56bb19,_0x260847);},_0x3916bf[_0x173b9a(0x410)]=_0x272062=>{const _0x4a251b=_0x173b9a;var _0x381dff,_0x43f4f6;return((_0x381dff=this[_0x4a251b(0x2e5)])==null||(_0x43f4f6=_0x381dff[_0x4a251b(0x410)])==null?void 0x0:_0x43f4f6[_0x4a251b(0x373)](_0x381dff,_0x272062))??_0x272062;},_0x3916bf[_0x173b9a(0x357)]=_0x30cca1=>{const _0x1e32a1=_0x173b9a;var _0x864279,_0x437138;return((_0x864279=this['_handlerCallback'])==null||(_0x437138=_0x864279[_0x1e32a1(0x357)])==null?void 0x0:_0x437138[_0x1e32a1(0x373)](_0x864279,_0x30cca1))??_0x30cca1;},_0x3916bf;}async['_init'](){const _0x47a416=_0x1a1f79;let _0x5c0c17=await super[_0x47a416(0x1d1)]();return this[_0x47a416(0x2df)](this[_0x47a416(0x2b4)][_0x47a416(0x342)][_0x47a416(0x441)](_0x8876c4=>{const _0x17b620=_0x47a416;if(_0x8876c4==null||_0x8876c4[_0x17b620(0x3c1)]!==this[_0x17b620(0x239)])return;let {commandId:_0x3e7e2e,redoState:_0x3af95d,unitId:_0x1146cf}=_0x8876c4,_0x48442d={'id':_0x3e7e2e,'type':_0xfd1b33[_0x17b620(0x24d)][_0x17b620(0x37f)],'params':{'unitId':_0x1146cf,'actions':_0x3af95d['actions'],'textRanges':null}};this['_onLocalMutation'](_0x48442d);})),this[_0x47a416(0x2df)](this[_0x47a416(0x292)][_0x47a416(0x3db)]((_0x3e48eb,_0x2037cf)=>{const _0x46b46d=_0x47a416;if(_0x3e48eb['type']!==_0xfd1b33[_0x46b46d(0x24d)][_0x46b46d(0x37f)]||_0x2037cf!=null&&_0x2037cf['fromCollab']||_0x2037cf!=null&&_0x2037cf[_0x46b46d(0x1b1)]||_0x3e48eb['id']===_0x1c8317['RichTextEditingMutation']['id'])return;let _0x153b07=_0x3e48eb[_0x46b46d(0x1e6)];if((_0x153b07==null?void 0x0:_0x153b07[_0x46b46d(0x3c1)])!==this[_0x46b46d(0x239)])return;let _0x4bcb49=_0x3e48eb,_0x550deb=this[_0x46b46d(0x2f7)][_0x46b46d(0x363)]['fetchThroughInterceptors'](this[_0x46b46d(0x2f7)][_0x46b46d(0x363)]['getInterceptPoints']()[_0x46b46d(0x210)])([_0x4bcb49],this[_0x46b46d(0x1f2)])||[_0x4bcb49];this[_0x46b46d(0x32f)](_0x550deb[0x0]);})),_0x5c0c17;}};_0x460c6f=_0x3ef445([_0x3b7f76(0x3,(0x0,_0xfd1b33['Inject'])(_0xfd1b33[_0x1a1f79(0x3d8)])),_0x3b7f76(0x4,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x22b414['CompressMutationService'])),_0x3b7f76(0x5,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x264)])),_0x3b7f76(0x6,(0x0,_0xfd1b33['Inject'])(_0x22b414[_0x1a1f79(0x185)])),_0x3b7f76(0x7,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x2a8347)),_0x3b7f76(0x8,_0xfd1b33['IUniverInstanceService']),_0x3b7f76(0x9,_0xfd1b33[_0x1a1f79(0x336)]),_0x3b7f76(0xa,_0xfd1b33[_0x1a1f79(0x25a)]),_0x3b7f76(0xb,_0xfd1b33[_0x1a1f79(0xc7)]),_0x3b7f76(0xc,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x1c8317[_0x1a1f79(0x254)])),_0x3b7f76(0xd,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x4f0bf8)),_0x3b7f76(0xe,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x1237f1))],_0x460c6f);let _0x2e7d94=class extends _0x194e81{constructor(_0x584b0e,_0x193ac8,_0x1fde54,_0x140677,_0x283138,_0x5eca45,_0x3af238,_0x42a2cd,_0x162efe,_0x288c38,_0x57eee5,_0x4cc027,_0x4b2202,_0x5955d8){const _0x19a87f=_0x1a1f79;super(_0x584b0e,_0x1fde54,_0x193ac8,_0x140677,_0x283138,_0x5eca45,_0x3af238,_0x42a2cd,_0x162efe,_0x288c38,_0x57eee5,_0x4cc027,_0x4b2202,_0x5955d8),this[_0x19a87f(0x239)]=_0x584b0e,this['type']=_0x193ac8;}async[_0x1a1f79(0x1d1)](){const _0xc59ec2=_0x1a1f79;let _0x2f78e8=await super['_init']();return this[_0xc59ec2(0x2df)](this['_commandService']['onMutationExecutedForCollab']((_0x40470f,_0x4f0088)=>{const _0x2c08c3=_0xc59ec2;if(_0x40470f[_0x2c08c3(0x39b)]!==_0xfd1b33['CommandType'][_0x2c08c3(0x37f)]||_0x4f0088!=null&&_0x4f0088['fromCollab']||_0x4f0088!=null&&_0x4f0088[_0x2c08c3(0x1b1)])return;let _0x1c1ce1=_0x40470f[_0x2c08c3(0x1e6)];if((_0x1c1ce1==null?void 0x0:_0x1c1ce1[_0x2c08c3(0x3c1)])!==this[_0x2c08c3(0x239)])return;let _0x2066a4=_0x40470f,_0x5028b0=this[_0x2c08c3(0x2f7)][_0x2c08c3(0x363)][_0x2c08c3(0x43c)](this['_compressMutationService'][_0x2c08c3(0x363)][_0x2c08c3(0x2fe)]()[_0x2c08c3(0x210)])([_0x2066a4],this[_0x2c08c3(0x1f2)])||[_0x2066a4];this[_0x2c08c3(0x32f)](_0x5028b0[0x0]);})),_0x2f78e8;}};_0x2e7d94=_0x3ef445([_0x3b7f76(0x3,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x3d8)])),_0x3b7f76(0x4,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x22b414[_0x1a1f79(0x151)])),_0x3b7f76(0x5,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33['LocaleService'])),_0x3b7f76(0x6,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x22b414[_0x1a1f79(0x185)])),_0x3b7f76(0x7,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x2a8347)),_0x3b7f76(0x8,_0xfd1b33[_0x1a1f79(0x439)]),_0x3b7f76(0x9,_0xfd1b33[_0x1a1f79(0x336)]),_0x3b7f76(0xa,_0xfd1b33[_0x1a1f79(0x25a)]),_0x3b7f76(0xb,_0xfd1b33[_0x1a1f79(0xc7)]),_0x3b7f76(0xc,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x4f0bf8)),_0x3b7f76(0xd,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x1237f1))],_0x2e7d94);let _0x5c9937=class extends _0x194e81{constructor(_0x2ab85d,_0x3d1d08,_0x42d0ef,_0x3e2685,_0x12e3ff,_0x4c0215,_0x4b1df0,_0x1b165e,_0x2dc276,_0x16ff38,_0x2678ed,_0x31a2f4,_0x2087a1,_0x4d4036,_0x42c5e6){const _0x48c4af=_0x1a1f79;super(_0x2ab85d,_0x42d0ef,_0x3d1d08,_0x3e2685,_0x12e3ff,_0x4c0215,_0x4b1df0,_0x2dc276,_0x16ff38,_0x2678ed,_0x31a2f4,_0x2087a1,_0x4d4036,_0x42c5e6),this[_0x48c4af(0x239)]=_0x2ab85d,this[_0x48c4af(0x39b)]=_0x3d1d08,this[_0x48c4af(0x138)]=_0x1b165e;}[_0x1a1f79(0x22e)](){const _0xb3ef8=_0x1a1f79;let _0x347ff9=super[_0xb3ef8(0x22e)]();return _0x347ff9['onTransformSelections']=_0x34fd62=>this[_0xb3ef8(0x138)][_0xb3ef8(0x152)](_0x34fd62),_0x347ff9;}async[_0x1a1f79(0x1d1)](){const _0x401d28=_0x1a1f79;let _0x19cfd9=await super[_0x401d28(0x1d1)]();return this[_0x401d28(0x2df)](this[_0x401d28(0x292)][_0x401d28(0x3db)]((_0x19de6b,_0x52b0d0)=>{const _0x12067d=_0x401d28;if(_0x19de6b['type']!==_0xfd1b33[_0x12067d(0x24d)][_0x12067d(0x37f)]||_0x52b0d0!=null&&_0x52b0d0[_0x12067d(0x425)]||_0x52b0d0!=null&&_0x52b0d0[_0x12067d(0x1b1)])return;let _0x358ba5=_0x19de6b[_0x12067d(0x1e6)];if((_0x358ba5==null?void 0x0:_0x358ba5[_0x12067d(0x3c1)])!==this[_0x12067d(0x239)])return;let _0x281250=_0x19de6b,_0x3f516d=this[_0x12067d(0x2f7)][_0x12067d(0x363)][_0x12067d(0x43c)](this[_0x12067d(0x2f7)][_0x12067d(0x363)]['getInterceptPoints']()[_0x12067d(0x210)])([_0x281250],this[_0x12067d(0x1f2)])||[_0x281250];this[_0x12067d(0x32f)](_0x3f516d[0x0]);})),_0x19cfd9;}};_0x5c9937=_0x3ef445([_0x3b7f76(0x3,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x3d8)])),_0x3b7f76(0x4,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x22b414[_0x1a1f79(0x151)])),_0x3b7f76(0x5,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33['LocaleService'])),_0x3b7f76(0x6,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x22b414[_0x1a1f79(0x185)])),_0x3b7f76(0x7,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x207501)),_0x3b7f76(0x8,(0x0,_0xfd1b33['Inject'])(_0x2a8347)),_0x3b7f76(0x9,_0xfd1b33[_0x1a1f79(0x439)]),_0x3b7f76(0xa,_0xfd1b33['ILogService']),_0x3b7f76(0xb,_0xfd1b33[_0x1a1f79(0x25a)]),_0x3b7f76(0xc,_0xfd1b33[_0x1a1f79(0xc7)]),_0x3b7f76(0xd,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x4f0bf8)),_0x3b7f76(0xe,(0x0,_0xfd1b33['Optional'])(_0x1237f1))],_0x5c9937);let _0xac0845=class extends _0x194e81{constructor(_0x46d4d7,_0x4bf67c,_0xa6619f,_0x5b95e6,_0x7b1865,_0x890135,_0x3f349d,_0x5d9644,_0x2b9df0,_0x298384,_0xf518c4,_0x13d8ce,_0x29afad,_0x1f18fa){const _0x6814a7=_0x1a1f79;super(_0x46d4d7,_0xa6619f,_0x4bf67c,_0x5b95e6,_0x7b1865,_0x890135,_0x3f349d,_0x5d9644,_0x2b9df0,_0x298384,_0xf518c4,_0x13d8ce,_0x29afad,_0x1f18fa),this[_0x6814a7(0x239)]=_0x46d4d7,this['type']=_0x4bf67c;}async['_init'](){const _0x218b25=_0x1a1f79;let _0x4607b3=await super[_0x218b25(0x1d1)]();return this[_0x218b25(0x2df)](this['_commandService'][_0x218b25(0x3db)]((_0x23a36a,_0x2487a8)=>{const _0x3c18ba=_0x218b25;if(_0x23a36a['type']!==_0xfd1b33[_0x3c18ba(0x24d)][_0x3c18ba(0x37f)]||_0x2487a8!=null&&_0x2487a8[_0x3c18ba(0x425)]||_0x2487a8!=null&&_0x2487a8[_0x3c18ba(0x1b1)])return;let _0x7329ac=_0x23a36a[_0x3c18ba(0x1e6)];if((_0x7329ac==null?void 0x0:_0x7329ac['unitId'])!==this[_0x3c18ba(0x239)])return;let _0x16b0ad=_0x23a36a,_0x523c82=this[_0x3c18ba(0x2f7)]['interceptor'][_0x3c18ba(0x43c)](this['_compressMutationService']['interceptor'][_0x3c18ba(0x2fe)]()[_0x3c18ba(0x210)])([_0x16b0ad],this['_univerInstanceService'])||[_0x16b0ad];this[_0x3c18ba(0x32f)](_0x523c82[0x0]);})),_0x4607b3;}};_0xac0845=_0x3ef445([_0x3b7f76(0x3,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33['Injector'])),_0x3b7f76(0x4,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x22b414[_0x1a1f79(0x151)])),_0x3b7f76(0x5,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x264)])),_0x3b7f76(0x6,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x22b414['RevisionService'])),_0x3b7f76(0x7,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x2a8347)),_0x3b7f76(0x8,_0xfd1b33[_0x1a1f79(0x439)]),_0x3b7f76(0x9,_0xfd1b33[_0x1a1f79(0x336)]),_0x3b7f76(0xa,_0xfd1b33[_0x1a1f79(0x25a)]),_0x3b7f76(0xb,_0xfd1b33[_0x1a1f79(0xc7)]),_0x3b7f76(0xc,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x4f0bf8)),_0x3b7f76(0xd,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x1237f1))],_0xac0845);let _0x4efaf5=class extends _0x194e81{constructor(_0x3c7b24,_0x468d7f,_0x3705e7,_0x44cffe,_0x5e8b75,_0x5e8eea,_0x40dec2,_0x3c2b37,_0x5eaaee,_0x276df7,_0x2d2258,_0x22fcee,_0x383630,_0x19194e){const _0x52625f=_0x1a1f79;super(_0x3c7b24,_0x3705e7,_0x468d7f,_0x44cffe,_0x5e8b75,_0x5e8eea,_0x40dec2,_0x3c2b37,_0x5eaaee,_0x276df7,_0x2d2258,_0x22fcee,_0x383630,_0x19194e),this[_0x52625f(0x239)]=_0x3c7b24,this[_0x52625f(0x39b)]=_0x468d7f;}async[_0x1a1f79(0x1d1)](){const _0x5294de=_0x1a1f79;let _0x305142=await super['_init']();return this[_0x5294de(0x2df)](this[_0x5294de(0x292)][_0x5294de(0x3db)]((_0x10bd51,_0x2e2413)=>{const _0xf0ef8a=_0x5294de;if(_0x10bd51[_0xf0ef8a(0x39b)]!==_0xfd1b33[_0xf0ef8a(0x24d)][_0xf0ef8a(0x37f)]||_0x2e2413!=null&&_0x2e2413[_0xf0ef8a(0x425)]||_0x2e2413!=null&&_0x2e2413[_0xf0ef8a(0x1b1)])return;let _0x395693=_0x10bd51[_0xf0ef8a(0x1e6)];if((_0x395693==null?void 0x0:_0x395693['unitId'])!==this[_0xf0ef8a(0x239)])return;let _0x4a4da8=_0x10bd51,_0x16f6c5=this[_0xf0ef8a(0x2f7)]['interceptor'][_0xf0ef8a(0x43c)](this[_0xf0ef8a(0x2f7)]['interceptor']['getInterceptPoints']()[_0xf0ef8a(0x210)])([_0x4a4da8],this['_univerInstanceService'])||[_0x4a4da8];this[_0xf0ef8a(0x32f)](_0x16f6c5[0x0]);})),_0x305142;}};_0x4efaf5=_0x3ef445([_0x3b7f76(0x3,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x3d8)])),_0x3b7f76(0x4,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x22b414[_0x1a1f79(0x151)])),_0x3b7f76(0x5,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x264)])),_0x3b7f76(0x6,(0x0,_0xfd1b33['Inject'])(_0x22b414[_0x1a1f79(0x185)])),_0x3b7f76(0x7,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x2a8347)),_0x3b7f76(0x8,_0xfd1b33[_0x1a1f79(0x439)]),_0x3b7f76(0x9,_0xfd1b33[_0x1a1f79(0x336)]),_0x3b7f76(0xa,_0xfd1b33[_0x1a1f79(0x25a)]),_0x3b7f76(0xb,_0xfd1b33[_0x1a1f79(0xc7)]),_0x3b7f76(0xc,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x4f0bf8)),_0x3b7f76(0xd,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x1237f1))],_0x4efaf5);let _0x4c1f68=class extends _0x194e81{constructor(_0x40a03c,_0x4fa330,_0x4172a3,_0xa1acbe,_0x1e7a47,_0x3e2e,_0x2fdf9a,_0x41a0e9,_0x2a051d,_0x52af84,_0x9a6268,_0x4ba12f,_0x279caf,_0x4c6f49){const _0xf4a909=_0x1a1f79;super(_0x40a03c,_0x4172a3,_0x4fa330,_0xa1acbe,_0x1e7a47,_0x3e2e,_0x2fdf9a,_0x41a0e9,_0x2a051d,_0x52af84,_0x9a6268,_0x4ba12f,_0x279caf,_0x4c6f49),this[_0xf4a909(0x239)]=_0x40a03c,this[_0xf4a909(0x39b)]=_0x4fa330;}async[_0x1a1f79(0x1d1)](){const _0x11ab1a=_0x1a1f79;let _0x6d2e8d=await super[_0x11ab1a(0x1d1)]();return this[_0x11ab1a(0x2df)](this[_0x11ab1a(0x292)]['onMutationExecutedForCollab']((_0x569df6,_0x28a2f3)=>{const _0x47defa=_0x11ab1a;if(_0x569df6[_0x47defa(0x39b)]!==_0xfd1b33['CommandType'][_0x47defa(0x37f)]||_0x28a2f3!=null&&_0x28a2f3[_0x47defa(0x425)]||_0x28a2f3!=null&&_0x28a2f3[_0x47defa(0x1b1)])return;let _0x182ceb=_0x569df6[_0x47defa(0x1e6)];if((_0x182ceb==null?void 0x0:_0x182ceb[_0x47defa(0x3c1)])!==this[_0x47defa(0x239)])return;let _0x325903=_0x569df6,_0x58da83=this[_0x47defa(0x2f7)]['interceptor'][_0x47defa(0x43c)](this['_compressMutationService'][_0x47defa(0x363)]['getInterceptPoints']()[_0x47defa(0x210)])([_0x325903],this[_0x47defa(0x1f2)])||[_0x325903];this['_onLocalMutation'](_0x58da83[0x0]);})),_0x6d2e8d;}};_0x4c1f68=_0x3ef445([_0x3b7f76(0x3,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x3d8)])),_0x3b7f76(0x4,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x22b414[_0x1a1f79(0x151)])),_0x3b7f76(0x5,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x264)])),_0x3b7f76(0x6,(0x0,_0xfd1b33['Inject'])(_0x22b414[_0x1a1f79(0x185)])),_0x3b7f76(0x7,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x2a8347)),_0x3b7f76(0x8,_0xfd1b33['IUniverInstanceService']),_0x3b7f76(0x9,_0xfd1b33[_0x1a1f79(0x336)]),_0x3b7f76(0xa,_0xfd1b33[_0x1a1f79(0x25a)]),_0x3b7f76(0xb,_0xfd1b33[_0x1a1f79(0xc7)]),_0x3b7f76(0xc,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x4f0bf8)),_0x3b7f76(0xd,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x1237f1))],_0x4c1f68);let _0x32a4b7=(0x0,_0xfd1b33[_0x1a1f79(0x16a)])('univer-pro.collaboration-client.network-condition.service');function _0x467beb(_0x45a74a){const _0x3c6e94=_0x1a1f79;let _0x137e8d=_0x45a74a[_0x3c6e94(0x16f)],_0x23df3a=JSON[_0x3c6e94(0x339)](_0x137e8d);switch(_0x23df3a[_0x3c6e94(0x3e1)]){case _0x3c00fa['CombCmd'][_0x3c6e94(0x1ea)]:case _0x3c00fa[_0x3c6e94(0xd5)][_0x3c6e94(0x2f6)]:{let _0x2df020=_0x23df3a['infoRsp'];return{..._0x23df3a,'data':_0x2df020,'cmd':_0x23df3a[_0x3c6e94(0x3e1)]};}case _0x3c00fa[_0x3c6e94(0xd5)][_0x3c6e94(0x413)]:{let _0x2d48a4=_0x23df3a[_0x3c6e94(0x2a9)];return{..._0x23df3a,'data':_0x2d48a4,'cmd':_0x23df3a[_0x3c6e94(0x3e1)]};}case _0x3c00fa[_0x3c6e94(0xd5)][_0x3c6e94(0x193)]:{let _0x2f1bdb=_0x23df3a['collaMsg'];switch(_0x2f1bdb['eventID']){case _0x22b414[_0x3c6e94(0x32a)][_0x3c6e94(0x42b)]:var _0x40a470;return{..._0x23df3a,'data':{..._0x2f1bdb,'data':(_0x40a470=_0x2f1bdb[_0x3c6e94(0x102)])==null?void 0x0:_0x40a470['cs']},'cmd':_0x23df3a[_0x3c6e94(0x3e1)]};case _0x22b414[_0x3c6e94(0x32a)][_0x3c6e94(0x166)]:var _0x564db6;return{..._0x23df3a,'data':{..._0x2f1bdb,'data':(_0x564db6=_0x2f1bdb[_0x3c6e94(0x1dd)])==null?void 0x0:_0x564db6['cs']},'cmd':_0x23df3a[_0x3c6e94(0x3e1)]};case _0x22b414[_0x3c6e94(0x32a)][_0x3c6e94(0x1e3)]:var _0x39ea03;return{..._0x23df3a,'data':{..._0x2f1bdb,'data':(_0x39ea03=_0x2f1bdb[_0x3c6e94(0x25d)])==null?void 0x0:_0x39ea03['cs']},'cmd':_0x23df3a[_0x3c6e94(0x3e1)]};case _0x22b414[_0x3c6e94(0x32a)][_0x3c6e94(0x1e8)]:var _0x1782a7;return{..._0x23df3a,'data':{..._0x2f1bdb,'data':(_0x1782a7=_0x2f1bdb[_0x3c6e94(0x414)])==null?void 0x0:_0x1782a7['cs']},'cmd':_0x23df3a[_0x3c6e94(0x3e1)]};case _0x22b414['CollaborationEvent'][_0x3c6e94(0x401)]:var _0x564481;return{..._0x23df3a,'data':{..._0x2f1bdb,'data':(_0x564481=_0x2f1bdb['csShouldRetryEvent'])==null?void 0x0:_0x564481['cs']},'cmd':_0x23df3a[_0x3c6e94(0x3e1)]};case _0x22b414[_0x3c6e94(0x32a)][_0x3c6e94(0x1ca)]:return{..._0x23df3a,'data':{..._0x2f1bdb,'data':_0x2f1bdb[_0x3c6e94(0x167)]},'cmd':_0x23df3a[_0x3c6e94(0x3e1)]};case _0x22b414[_0x3c6e94(0x32a)][_0x3c6e94(0x17c)]:return{..._0x23df3a,'data':{..._0x2f1bdb,'data':_0x2f1bdb[_0x3c6e94(0x309)]},'cmd':_0x23df3a['cmd']};case _0x22b414[_0x3c6e94(0x32a)]['USERS_LEAVE']:return{..._0x23df3a,'data':{..._0x2f1bdb,'data':_0x2f1bdb[_0x3c6e94(0x42e)]},'cmd':_0x23df3a['cmd']};case _0x22b414['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x23df3a,'data':{..._0x2f1bdb,'data':_0x2f1bdb['liveShareNewHost']},'cmd':_0x23df3a[_0x3c6e94(0x3e1)]};case _0x22b414[_0x3c6e94(0x32a)][_0x3c6e94(0x10d)]:case _0x22b414[_0x3c6e94(0x32a)]['LIVESHARE_OPERATION']:return{..._0x23df3a,'data':{..._0x2f1bdb,'data':_0x2f1bdb['liveShareOperation']},'cmd':_0x23df3a[_0x3c6e94(0x3e1)]};case _0x22b414[_0x3c6e94(0x32a)][_0x3c6e94(0x1ed)]:return{..._0x23df3a,'data':{..._0x2f1bdb,'data':_0x2f1bdb[_0x3c6e94(0x1e7)]},'cmd':_0x23df3a[_0x3c6e94(0x3e1)]};case _0x22b414[_0x3c6e94(0x32a)][_0x3c6e94(0x286)]:return{..._0x23df3a,'data':_0x2f1bdb,'cmd':_0x23df3a[_0x3c6e94(0x3e1)]};case _0x22b414[_0x3c6e94(0x32a)]['COMMENT_UPDATE']:return{..._0x23df3a,'data':{..._0x2f1bdb,'data':_0x2f1bdb[_0x3c6e94(0x29a)]},'cmd':_0x23df3a[_0x3c6e94(0x3e1)]};case _0x22b414[_0x3c6e94(0x32a)][_0x3c6e94(0x3f2)]:return{..._0x23df3a,'data':{..._0x2f1bdb,'data':_0x2f1bdb['updatePermissionObjEvent']},'cmd':_0x23df3a['cmd']};case _0x22b414[_0x3c6e94(0x32a)]['SHOULD_CLOSE_CONN']:return{..._0x23df3a,'data':{..._0x2f1bdb,'data':_0x2f1bdb['shouldCloseConn']},'cmd':_0x23df3a[_0x3c6e94(0x3e1)]};case _0x22b414[_0x3c6e94(0x32a)][_0x3c6e94(0x1f8)]:return{..._0x23df3a,'data':{..._0x2f1bdb,'data':_0x2f1bdb[_0x3c6e94(0x406)]},'cmd':_0x23df3a[_0x3c6e94(0x3e1)]};default:return _0x23df3a;}}default:return _0x23df3a;}}function _0x558641(_0x341fa8){const _0x179310=_0x1a1f79;switch(_0x341fa8[_0x179310(0x3e1)]){case _0x3c00fa[_0x179310(0xd5)][_0x179310(0x1ea)]:case _0x3c00fa[_0x179310(0xd5)]['HELLO']:return JSON[_0x179310(0x1b0)]({'cmd':_0x341fa8['cmd'],'routeKey':_0x341fa8['routeKey']});case _0x3c00fa['CombCmd'][_0x179310(0x427)]:{let _0x70df1d;switch(_0x341fa8[_0x179310(0x16f)]['eventID']){case _0x22b414[_0x179310(0x32a)]['UPDATE_CURSOR']:_0x70df1d={'eventID':_0x22b414[_0x179310(0x32a)]['UPDATE_CURSOR'],'updateCursorEvent':_0x341fa8['data'][_0x179310(0x16f)]};break;case _0x22b414[_0x179310(0x32a)][_0x179310(0x25f)]:_0x70df1d={'eventID':_0x22b414[_0x179310(0x32a)]['USERS_LEAVE'],'leaveEvent':_0x341fa8[_0x179310(0x16f)][_0x179310(0x16f)]};break;case _0x22b414[_0x179310(0x32a)]['USERS_ENTER']:_0x70df1d={'eventID':_0x22b414[_0x179310(0x32a)]['USERS_ENTER'],'joinEvent':_0x341fa8[_0x179310(0x16f)]['data']};break;case _0x22b414[_0x179310(0x32a)][_0x179310(0x323)]:_0x70df1d={'eventID':_0x22b414[_0x179310(0x32a)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x341fa8[_0x179310(0x16f)][_0x179310(0x16f)]};break;case _0x22b414['CollaborationEvent'][_0x179310(0x2f0)]:_0x70df1d={'eventID':_0x22b414[_0x179310(0x32a)][_0x179310(0x2f0)],'liveShareOperation':_0x341fa8[_0x179310(0x16f)][_0x179310(0x16f)]};break;case _0x22b414[_0x179310(0x32a)][_0x179310(0x1ed)]:_0x70df1d={'eventID':_0x22b414['CollaborationEvent'][_0x179310(0x1ed)],'liveShareTerminate':_0x341fa8[_0x179310(0x16f)][_0x179310(0x16f)]};break;case _0x22b414['CollaborationEvent'][_0x179310(0xfa)]:_0x70df1d={'eventID':_0x22b414[_0x179310(0x32a)][_0x179310(0xfa)],'liveShareRequestHost':_0x341fa8[_0x179310(0x16f)]['data']};break;case _0x22b414[_0x179310(0x32a)][_0x179310(0x10d)]:_0x70df1d={'eventID':_0x22b414[_0x179310(0x32a)]['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x70df1d={'eventID':_0x341fa8['data'][_0x179310(0x275)]};}return JSON[_0x179310(0x1b0)]({'cmd':_0x341fa8[_0x179310(0x3e1)],'routeKey':_0x341fa8[_0x179310(0x36f)],'collaMsg':_0x70df1d});}case _0x3c00fa[_0x179310(0xd5)][_0x179310(0x413)]:return JSON[_0x179310(0x1b0)]({'cmd':_0x341fa8[_0x179310(0x3e1)],'routeKey':_0x341fa8[_0x179310(0x36f)],'joinReq':_0x341fa8[_0x179310(0x16f)]});case _0x3c00fa[_0x179310(0xd5)][_0x179310(0x225)]:return JSON[_0x179310(0x1b0)]({'cmd':_0x341fa8[_0x179310(0x3e1)],'routeKey':_0x341fa8['routeKey'],'leaveReq':_0x341fa8[_0x179310(0x16f)]});default:throw Error(_0x179310(0x3cc));}}let _0x241a56=(0x0,_0xfd1b33[_0x1a1f79(0x16a)])(_0x1a1f79(0x199));function _0x3ca3df(_0x12d83a,_0x5e2f07,_0x3a5b7d){const _0x4f6162=_0x1a1f79;return _0x12d83a+'/'+_0x5e2f07+_0x4f6162(0x1de)+_0x3a5b7d+_0x4f6162(0x3af);}let _0x515815=class extends _0xfd1b33[_0x1a1f79(0x2cd)]{constructor(_0x99e1a9,_0xd16124,_0x5c1eae,_0x8b8be,_0x26276b){const _0x391c3f=_0x1a1f79;super(),this[_0x391c3f(0x144)]=_0x99e1a9,this[_0x391c3f(0x395)]=_0xd16124,this['_configService']=_0x5c1eae,this[_0x391c3f(0x3c0)]=_0x8b8be,this[_0x391c3f(0x288)]=_0x26276b;}[_0x1a1f79(0x261)](_0x2ec75c){const _0x34ffb3=_0x1a1f79;let _0x4b7c39=this[_0x34ffb3(0x144)]['get'](_0x1b853b[_0x34ffb3(0x10c)]);if(!_0x4b7c39)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0xd03218=_0x4b7c39['createSocket'](_0x2ec75c);if(!_0xd03218)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x31d186=new _0xfd1b33['DisposableCollection'](),_0x46360e=new _0x29156e[(_0x34ffb3(0x2f5))]();_0x31d186[_0x34ffb3(0x400)](_0xd03218[_0x34ffb3(0x24b)][_0x34ffb3(0x441)](_0x2137af=>_0x46360e[_0x34ffb3(0x34e)](_0x2137af))),_0x31d186['add']((0x0,_0xfd1b33[_0x34ffb3(0x2c2)])(()=>_0x46360e[_0x34ffb3(0x1a9)]()));let _0x27ce55=new _0x29156e[(_0x34ffb3(0x2f5))]();_0x31d186['add'](_0xd03218[_0x34ffb3(0x22b)][_0x34ffb3(0x441)](_0x4b3fa6=>_0x27ce55[_0x34ffb3(0x34e)](_0x4b3fa6))),_0x31d186['add']((0x0,_0xfd1b33[_0x34ffb3(0x2c2)])(()=>_0x27ce55['complete']()));let _0x239b83=new _0x29156e[(_0x34ffb3(0x2f5))]();_0x31d186[_0x34ffb3(0x400)](_0xd03218[_0x34ffb3(0x31c)][_0x34ffb3(0x441)](_0x238163=>{let _0x2141f8=_0x467beb(_0x238163);_0x239b83['next'](_0x2141f8);})),_0x31d186['add']((0x0,_0xfd1b33['toDisposable'])(()=>_0x239b83['complete']()));let _0x5c316e,_0x4c2ee7=()=>{const _0x3e6226=_0x34ffb3;_0x27ce55['next'](new Event('connection\x20error')),_0x46360e['next'](new Event(_0x3e6226(0xff))),_0x5c316e[_0x3e6226(0x2d7)]();};return _0x5c316e={'memberID':'','close$':_0x46360e[_0x34ffb3(0xc5)](),'error$':_0x27ce55[_0x34ffb3(0xc5)](),'open$':_0xd03218[_0x34ffb3(0x198)],'message$':_0x239b83[_0x34ffb3(0xc5)](),'send':_0x12417f=>{const _0x3db04b=_0x34ffb3;if(_0x12417f[_0x3db04b(0x3e1)]===_0x3c00fa['CombCmd'][_0x3db04b(0x427)]){if(_0x12417f[_0x3db04b(0x16f)][_0x3db04b(0x275)]===_0x22b414[_0x3db04b(0x32a)][_0x3db04b(0x1a5)]){this[_0x3db04b(0x249)](_0x5c316e,_0x12417f[_0x3db04b(0x16f)])[_0x3db04b(0x2d8)](_0x2f54d6=>{const _0x252a24=_0x3db04b;this[_0x252a24(0x3c0)][_0x252a24(0x2f1)](_0x2f54d6),_0x4c2ee7();});return;}if(_0x12417f[_0x3db04b(0x16f)]['eventID']===_0x22b414['CollaborationEvent'][_0x3db04b(0x103)]){let _0x527518=_0x12417f['data'];this[_0x3db04b(0x236)](_0x527518)['then'](_0x34e70d=>{const _0x5c4f40=_0x3db04b;_0x239b83[_0x5c4f40(0x34e)]({'cmd':_0x3c00fa[_0x5c4f40(0xd5)][_0x5c4f40(0x193)],'code':_0x3c00fa[_0x5c4f40(0x142)]['OK'],'routeKey':_0x527518[_0x5c4f40(0x16f)]['unitID'],'routeType':'','data':{'eventID':_0x22b414['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x34e70d}}});})[_0x3db04b(0x2d8)](_0x282eeb=>{this['_logService']['error'](_0x282eeb),_0x4c2ee7();});return;}}_0xd03218['send'](_0x558641(_0x12417f));},'close':()=>{const _0x5c06f5=_0x34ffb3;_0xd03218['close'](),_0x31d186[_0x5c06f5(0xdb)]();}},_0x5c316e;}async[_0x1a1f79(0x249)](_0x25f9c5,_0x319d29){const _0x3f1653=_0x1a1f79;let {unitType:_0x209b84,unitID:_0x43107a,changeset:_0x9f48b8}=_0x319d29['data'],_0x929e4={'unitID':_0x43107a,'memberID':_0x25f9c5['memberID'],'type':_0x209b84,'changeset':(0x0,_0x22b414[_0x3f1653(0xcb)])(_0x9f48b8)},_0x543cf5=this[_0x3f1653(0x347)][_0x3f1653(0x352)](_0x46f3f1),_0x48b949=_0x3ca3df((_0x543cf5==null?void 0x0:_0x543cf5[_0x3f1653(0x1d5)])??_0x3f1653(0x2c3),_0x209b84,_0x43107a);try{await this[_0x3f1653(0x395)]['post'](_0x48b949,{'body':_0x929e4});}catch(_0x166e0e){throw this['_logService'][_0x3f1653(0x2f1)]('[CollaborationSession]',_0x3f1653(0x284)),_0x166e0e;}}async[_0x1a1f79(0x236)](_0x24da4f){const _0x16f8a7=_0x1a1f79;let {unitID:_0x4ba194,from:_0x43c91b,to:_0x1ef737,unitType:_0x4ec2da}=_0x24da4f[_0x16f8a7(0x16f)];return(await this[_0x16f8a7(0x288)][_0x16f8a7(0x424)]({'metadata':void 0x0},{'unitID':_0x4ba194,'type':_0x4ec2da,'from':_0x43c91b,'to':_0x1ef737}))[_0x16f8a7(0x340)][_0x16f8a7(0x178)](_0x24e012=>((_0x24e012[_0x16f8a7(0x35e)]===null||_0x24e012[_0x16f8a7(0x35e)]===void 0x0)&&(_0x24e012[_0x16f8a7(0x35e)]=[]),_0x24e012));}};_0x515815=_0x3ef445([_0x3b7f76(0x0,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33['Injector'])),_0x3b7f76(0x1,(0x0,_0xfd1b33['Inject'])(_0x1b853b[_0x1a1f79(0xf3)])),_0x3b7f76(0x2,_0xfd1b33[_0x1a1f79(0x1ee)]),_0x3b7f76(0x3,_0xfd1b33[_0x1a1f79(0x336)]),_0x3b7f76(0x4,_0x22b414[_0x1a1f79(0x282)])],_0x515815);let _0x55dc28=(0x0,_0xfd1b33[_0x1a1f79(0x16a)])(_0x1a1f79(0x35d));function _0x3c679e(_0x3b8e93={}){const _0x277651=_0x1a1f79;return _0x3b8e93[_0x277651(0x131)]?{'resolveUnit':_0x3b8e93['resolveUnit']}:{'resolveUnit':_0x1ca6a8=>({'target':{'unitId':_0x1ca6a8['unitId'],'unitType':_0x1ca6a8['unitType']}})};}function _0x40f755(_0x3cdadc,_0x106b4d,_0x5d6ce7){const _0x25f5a2=_0x1a1f79;let _0x5a3e23=_0x5d6ce7[_0x25f5a2(0x1c5)]['endpoint'];if(_0x5a3e23!=null&&_0x5a3e23[_0x25f5a2(0xde)]()==='')throw Error(_0x25f5a2(0x188));if(!_0x5d6ce7[_0x25f5a2(0x1c5)][_0x25f5a2(0x3c1)])throw Error(_0x25f5a2(0x3cf));return{'localUnitId':_0x3cdadc,'unitType':_0x106b4d,'target':{'endpoint':_0x5a3e23,'unitId':_0x5d6ce7[_0x25f5a2(0x1c5)][_0x25f5a2(0x3c1)],'unitType':_0x5d6ce7[_0x25f5a2(0x1c5)][_0x25f5a2(0x337)]??_0x106b4d},'changeset':_0x5d6ce7['changeset']};}let _0x44e620=class extends _0xfd1b33[_0x1a1f79(0x2cd)]{constructor(_0x572460,_0x129ec2,_0x95cd39,_0x4c7ade,_0x4dbae1,_0x463e2a,_0x452c15){const _0x1c315a=_0x1a1f79;super(),this[_0x1c315a(0x144)]=_0x572460,this[_0x1c315a(0x3c0)]=_0x129ec2,this[_0x1c315a(0x347)]=_0x95cd39,this['_socketService']=_0x4c7ade,this[_0x1c315a(0x108)]=_0x4dbae1,this[_0x1c315a(0x26c)]=_0x463e2a,this[_0x1c315a(0x391)]=_0x452c15,_0x3d9afb(this,'_sessions',new Map()),_0x3d9afb(this,_0x1c315a(0x147),new Map()),_0x3d9afb(this,_0x1c315a(0x31a),new Map()),_0x3d9afb(this,_0x1c315a(0x1cd),new Map()),_0x3d9afb(this,_0x1c315a(0x3a9),this[_0x1c315a(0x29b)](void 0x0)[_0x1c315a(0x3a9)]['asObservable']()),_0x3d9afb(this,_0x1c315a(0x206),new _0x29156e[(_0x1c315a(0x3ab))](0x0)),_0x3d9afb(this,_0x1c315a(0x24a),this[_0x1c315a(0x206)][_0x1c315a(0xc5)]()),this['_listenToNetworkCondition']();}[_0x1a1f79(0x128)](){const _0x2103d9=_0x1a1f79;this[_0x2103d9(0x391)]&&this[_0x2103d9(0x2df)](this[_0x2103d9(0x391)]['online$']['subscribe'](_0x41de10=>{const _0x377458=_0x2103d9;_0x41de10&&this[_0x377458(0x171)](),_0x41de10||this['_socketChannels'][_0x377458(0x18c)](_0x33745b=>this[_0x377458(0x3a2)](_0x33745b));}));}[_0x1a1f79(0xdb)](){const _0x480d13=_0x1a1f79;super[_0x480d13(0xdb)](),this[_0x480d13(0x1cd)][_0x480d13(0x18c)](_0x4e9d2b=>{const _0x2415b2=_0x480d13;var _0x539367,_0x58db4a;(_0x539367=_0x4e9d2b[_0x2415b2(0x335)])==null||_0x539367['unsubscribe'](),_0x4e9d2b[_0x2415b2(0x335)]=null,this['_clearRetryConnectingTimer'](_0x4e9d2b),this['_clearTimeoutTimer'](_0x4e9d2b),this['_clearHeartbeatTimer'](_0x4e9d2b),(_0x58db4a=_0x4e9d2b[_0x2415b2(0x3a9)][_0x2415b2(0x2cb)]())==null||_0x58db4a['close'](),_0x4e9d2b[_0x2415b2(0x3a9)][_0x2415b2(0x1a9)]();}),this[_0x480d13(0x1cd)][_0x480d13(0x109)](),this['_sessions']['forEach'](_0x3b2b9c=>_0x3b2b9c[_0x480d13(0xdb)]()),this['_sessions'][_0x480d13(0x109)](),this[_0x480d13(0x31a)]['clear'](),this[_0x480d13(0x206)][_0x480d13(0x1a9)]();}async[_0x1a1f79(0x1d3)](_0x59e468,_0xe22f8f){const _0x3deff6=_0x1a1f79;if(this[_0x3deff6(0x3b9)][_0x3deff6(0x281)](_0x59e468))return this[_0x3deff6(0x3b9)][_0x3deff6(0x30d)](_0x59e468);let _0x470c47=this[_0x3deff6(0x147)][_0x3deff6(0x30d)](_0x59e468);if(_0x470c47)return _0x470c47;let _0x4ca9db=this[_0x3deff6(0x146)](_0x59e468,_0xe22f8f);this[_0x3deff6(0x147)]['set'](_0x59e468,_0x4ca9db);try{return await _0x4ca9db;}finally{this[_0x3deff6(0x147)]['delete'](_0x59e468);}}async[_0x1a1f79(0x146)](_0x254ade,_0xaeb664){const _0x121fce=_0x1a1f79;let _0x4ae1b5=await this[_0x121fce(0x2d3)](_0x254ade,_0xaeb664),_0xdfd34=this['_getSocketChannel'](_0x4ae1b5[_0x121fce(0x1c5)][_0x121fce(0x33f)]);this[_0x121fce(0x2d6)](_0xdfd34);let _0x5c8759=this[_0x121fce(0x144)][_0x121fce(0x2b2)](_0x313cfe,_0x4ae1b5,_0xdfd34['socket$'][_0x121fce(0xc5)]());return this[_0x121fce(0x3b9)][_0x121fce(0x23f)](_0x254ade,_0x5c8759),this['_sessionChannels'][_0x121fce(0x23f)](_0x254ade,_0xdfd34['endpointKey']),_0x5c8759;}[_0x1a1f79(0x10a)](_0x57ab8d){const _0x3341a7=_0x1a1f79;let _0xdbb06b=this['_sessions'][_0x3341a7(0x30d)](_0x57ab8d),_0x5b27b3=this[_0x3341a7(0x31a)][_0x3341a7(0x30d)](_0x57ab8d);if(_0xdbb06b&&(this[_0x3341a7(0x3b9)]['delete'](_0x57ab8d),this['_sessionChannels']['delete'](_0x57ab8d),_0xdbb06b[_0x3341a7(0x2d7)]()),_0x5b27b3&&!this['_hasSessionsForEndpoint'](_0x5b27b3)){var _0x51d8a5;let _0x13d33e=this[_0x3341a7(0x1cd)]['get'](_0x5b27b3);_0x13d33e==null||(_0x51d8a5=_0x13d33e[_0x3341a7(0x3a9)][_0x3341a7(0x2cb)]())==null||_0x51d8a5[_0x3341a7(0x2d7)]();}}['reconnect'](){const _0xc838b4=_0x1a1f79;(this['_socketChannels'][_0xc838b4(0x349)]?[...this['_socketChannels']['values']()]:[this['_getSocketChannel'](void 0x0)])['forEach'](_0x10e4d6=>{const _0x4568d5=_0xc838b4;_0x10e4d6[_0x4568d5(0x322)]=0x0,this[_0x4568d5(0x180)](_0x10e4d6),this[_0x4568d5(0x298)](_0x10e4d6);});}[_0x1a1f79(0x180)](_0x4a8301){const _0x2e1108=_0x1a1f79;_0x4a8301[_0x2e1108(0x326)]!=null&&(clearTimeout(_0x4a8301[_0x2e1108(0x326)]),_0x4a8301[_0x2e1108(0x326)]=null);}async[_0x1a1f79(0x16d)](_0x1fece5){const _0x3a9d25=_0x1a1f79;let _0x5ae688=this[_0x3a9d25(0x347)][_0x3a9d25(0x352)](_0x46f3f1),_0x31291d=_0x1fece5[_0x3a9d25(0x33f)]??(_0x5ae688==null?void 0x0:_0x5ae688[_0x3a9d25(0x2bf)])??_0x3a9d25(0x2b6),_0x4552fd=await this[_0x3a9d25(0x3d7)][_0x3a9d25(0x1e9)](_0x31291d);return _0x1fece5[_0x3a9d25(0x3d1)]=_0x4552fd,_0x4552fd;}async[_0x1a1f79(0x2d6)](_0x12e162){const _0x2f054d=_0x1a1f79;try{let _0x352cb2=_0x12e162[_0x2f054d(0x3a9)]['getValue']()??_0x12e162[_0x2f054d(0x3d1)]??await this[_0x2f054d(0x16d)](_0x12e162);if(_0x352cb2){var _0x14503c;let _0x5afb8=_0x352cb2['send'];_0x352cb2['send']=_0x3d1644=>(_0x3d1644['cmd']!==_0x3c00fa['CombCmd'][_0x2f054d(0x225)]&&this[_0x2f054d(0x241)](_0x12e162),_0x5afb8[_0x2f054d(0x31f)](_0x352cb2,[_0x3d1644])),(_0x14503c=_0x12e162[_0x2f054d(0x335)])==null||_0x14503c[_0x2f054d(0x3b8)](),_0x12e162['socketMessageSubscription']=null,_0x12e162[_0x2f054d(0x335)]=_0x352cb2[_0x2f054d(0x31c)]['subscribe'](_0x8daa22=>this[_0x2f054d(0x1b9)](_0x12e162,_0x352cb2,_0x8daa22)),_0x352cb2[_0x2f054d(0x22b)][_0x2f054d(0x13a)]((0x0,_0x324d20[_0x2f054d(0x39e)])(0x1))[_0x2f054d(0x441)](_0x375fd5=>this[_0x2f054d(0x3c0)][_0x2f054d(0x2f1)]('[CollaborationSessionService]:\x20socket\x20error',_0x375fd5)),_0x352cb2[_0x2f054d(0x198)][_0x2f054d(0x13a)]((0x0,_0x324d20[_0x2f054d(0x39e)])(0x1))[_0x2f054d(0x441)](()=>{this['_onConnectionOpen'](_0x12e162,_0x352cb2);}),_0x352cb2[_0x2f054d(0x24b)][_0x2f054d(0x13a)]((0x0,_0x324d20[_0x2f054d(0x39e)])(0x1))[_0x2f054d(0x441)](_0x13ab13=>{const _0x4bc08b=_0x2f054d;this['_logService'][_0x4bc08b(0x10b)](_0x4bc08b(0x1a6),'socket\x20close',_0x13ab13),this[_0x4bc08b(0x40f)](_0x12e162);});}}catch(_0x5ddaa2){this[_0x2f054d(0x3c0)][_0x2f054d(0x2f1)](_0x5ddaa2),this[_0x2f054d(0x40f)](_0x12e162);}}[_0x1a1f79(0x1e5)](_0x38eef7,_0xaaf0c4){const _0x286669=_0x1a1f79;this[_0x286669(0x3c0)]['debug'](_0x286669(0x1a6),_0x286669(0x205)),_0xaaf0c4[_0x286669(0x285)]({'cmd':_0x3c00fa[_0x286669(0xd5)][_0x286669(0x2f6)]}),this[_0x286669(0x241)](_0x38eef7);}[_0x1a1f79(0x3a2)](_0x205bcf){const _0x2719c5=_0x1a1f79;_0x205bcf['socketReady']=!0x1,_0x205bcf['candidateSocket']=null,this[_0x2719c5(0x206)]['next'](0x2),_0x205bcf[_0x2719c5(0x3a9)][_0x2719c5(0x34e)](null),this[_0x2719c5(0x1bf)](_0x205bcf),this['_clearHeartbeatTimer'](_0x205bcf);}[_0x1a1f79(0x40f)](_0x5e91f7){const _0xf82990=_0x1a1f79;this[_0xf82990(0x3a2)](_0x5e91f7),this[_0xf82990(0x20b)](_0x5e91f7['endpointKey'])&&(_0x5e91f7[_0xf82990(0x322)]<(this['_configService'][_0xf82990(0x352)](_0xf82990(0x234))??0x3)?(this[_0xf82990(0x108)]['emitEvent']({'id':'SOCKET_FAILED_RETRY'}),this['_tryReconnect'](_0x5e91f7)):this[_0xf82990(0x108)][_0xf82990(0x29c)]({'id':_0xf82990(0x2f8)}));}['_tryReconnect'](_0x13ef88){const _0x5640ec=_0x1a1f79;let _0x13c25f=_0x13ef88[_0x5640ec(0x322)],_0x299ebf=this[_0x5640ec(0x347)][_0x5640ec(0x352)](_0x46f3f1),_0x24b635=_0x13c25f===0x0?0x0:((_0x299ebf==null?void 0x0:_0x299ebf['retryConnectingInterval'])??0x4e20)*0x2**_0x13c25f;_0x13ef88['retryConnectingTimer']=setTimeout(()=>{const _0x87bf50=_0x5640ec;clearTimeout(_0x13ef88[_0x87bf50(0x326)]),_0x13ef88[_0x87bf50(0x326)]=null,this[_0x87bf50(0x2d6)](_0x13ef88);},_0x24b635),_0x13ef88[_0x5640ec(0x322)]+=0x1;}async[_0x1a1f79(0x2d3)](_0x207540,_0x28e867){return _0x40f755(_0x207540,_0x28e867,await this['_adapter']['resolveUnit']({'unitId':_0x207540,'unitType':_0x28e867}));}[_0x1a1f79(0x1b9)](_0x143842,_0x1ba2a7,_0x4e9a08){const _0x14d3d7=_0x1a1f79;let {cmd:_0x5d400e}=_0x4e9a08;_0x5d400e===_0x3c00fa[_0x14d3d7(0xd5)][_0x14d3d7(0x2f6)]&&!_0x143842[_0x14d3d7(0x3a1)]&&(_0x1ba2a7[_0x14d3d7(0x2ec)]=_0x4e9a08['data'][_0x14d3d7(0x2ec)],_0x143842[_0x14d3d7(0x322)]=0x0,_0x143842[_0x14d3d7(0x3a9)][_0x14d3d7(0x34e)](_0x1ba2a7),this['_status$'][_0x14d3d7(0x34e)](0x3),_0x143842[_0x14d3d7(0x3a1)]=!0x0,_0x143842[_0x14d3d7(0x3d1)]=null),_0x5d400e===_0x3c00fa[_0x14d3d7(0xd5)]['HEARTBEAT']&&this[_0x14d3d7(0x1bf)](_0x143842),this['_rescheduleHeartbeat'](_0x143842);}[_0x1a1f79(0x20b)](_0x105064){const _0x44db55=_0x1a1f79;return[...this[_0x44db55(0x31a)][_0x44db55(0x422)]()]['some'](_0x5d2561=>_0x5d2561===_0x105064);}[_0x1a1f79(0x29b)](_0x6dd571){const _0x898bac=_0x1a1f79;let _0x55d38d=_0x6dd571??'',_0x735b2=this[_0x898bac(0x1cd)][_0x898bac(0x30d)](_0x55d38d);if(_0x735b2)return _0x735b2;let _0x7ca329={'endpointKey':_0x55d38d,'endpoint':_0x6dd571,'socket$':new _0x29156e['BehaviorSubject'](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x898bac(0x23f)](_0x55d38d,_0x7ca329),_0x7ca329;}[_0x1a1f79(0x241)](_0x47b469){const _0x10eac1=_0x1a1f79;this[_0x10eac1(0x3b6)](_0x47b469),_0x47b469[_0x10eac1(0x386)]=setTimeout(()=>this[_0x10eac1(0x19f)](_0x47b469),this[_0x10eac1(0x347)][_0x10eac1(0x352)](_0x10eac1(0x388))??0x7530);}['_sendHeartbeat'](_0x2823b8){const _0x29fcb3=_0x1a1f79;_0x2823b8[_0x29fcb3(0x3a9)][_0x29fcb3(0x2cb)]()[_0x29fcb3(0x285)]({'cmd':_0x3c00fa[_0x29fcb3(0xd5)][_0x29fcb3(0x1ea)]}),this['_waitForHeartbeatResponse'](_0x2823b8);}['_waitForHeartbeatResponse'](_0x5e5b6c){const _0x35be3e=_0x1a1f79;_0x5e5b6c[_0x35be3e(0x2cf)]=setTimeout(()=>this[_0x35be3e(0x40f)](_0x5e5b6c),this[_0x35be3e(0x347)]['getConfig'](_0x35be3e(0x3f5))??0x4e20);}[_0x1a1f79(0x3b6)](_0x367d66){const _0xd111e8=_0x1a1f79;_0x367d66['sendHeartbeatTimer']!=null&&(clearTimeout(_0x367d66[_0xd111e8(0x386)]),_0x367d66[_0xd111e8(0x386)]=null);}[_0x1a1f79(0x1bf)](_0x5df8c2){const _0x2e45ea=_0x1a1f79;_0x5df8c2['timeoutTimer']!=null&&(clearTimeout(_0x5df8c2[_0x2e45ea(0x2cf)]),_0x5df8c2[_0x2e45ea(0x2cf)]=null);}};_0x44e620=_0x3ef445([_0x3b7f76(0x0,(0x0,_0xfd1b33['Inject'])(_0xfd1b33[_0x1a1f79(0x3d8)])),_0x3b7f76(0x1,_0xfd1b33[_0x1a1f79(0x336)]),_0x3b7f76(0x2,_0xfd1b33[_0x1a1f79(0x1ee)]),_0x3b7f76(0x3,_0x241a56),_0x3b7f76(0x4,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x2a8347)),_0x3b7f76(0x5,_0x55dc28),_0x3b7f76(0x6,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x32a4b7))],_0x44e620);let _0x5531ba=class extends _0xfd1b33[_0x1a1f79(0x156)]{constructor(_0x45bf40,_0x587466,_0x541484,_0x554850){const _0x12cfee=_0x1a1f79;var _0x36b4ab;super(),this[_0x12cfee(0x144)]=_0x45bf40,this['_collabSessionService']=_0x587466,this[_0x12cfee(0x347)]=_0x541484,this['_univerInstanceService']=_0x554850,_0x3d9afb(this,_0x12cfee(0x344),new Map()),_0x3d9afb(this,_0x12cfee(0x1d6),new _0x29156e[(_0x12cfee(0x2f5))]()),_0x3d9afb(this,_0x12cfee(0x1cb),this[_0x12cfee(0x1d6)]['asObservable']()),((_0x36b4ab=this[_0x12cfee(0x347)][_0x12cfee(0x352)](_0x12cfee(0x376)))==null?void 0x0:_0x36b4ab[_0x12cfee(0x1e1)])!==!0x1&&this[_0x12cfee(0x1d1)]();}['dispose'](){const _0x4a648a=_0x1a1f79;super[_0x4a648a(0xdb)](),this[_0x4a648a(0x344)][_0x4a648a(0x18c)](_0x5e6caf=>_0x5e6caf[_0x4a648a(0xdb)]()),this[_0x4a648a(0x344)][_0x4a648a(0x109)]();}['getCollabEntity'](_0xe5f099){const _0x33eda7=_0x1a1f79;return this['_entities'][_0x33eda7(0x30d)](_0xe5f099)??null;}[_0x1a1f79(0x1c6)](_0x58cc27){const _0x16dea6=_0x1a1f79;let _0x483c99=this[_0x16dea6(0x28c)](_0x58cc27);return _0x483c99?(0x0,_0x29156e['of'])(_0x483c99):this[_0x16dea6(0x1d6)]['pipe']((0x0,_0x324d20[_0x16dea6(0x41d)])(_0x4f76cd=>_0x4f76cd['unitID']===_0x58cc27));}[_0x1a1f79(0x3d6)](_0x55bc92){const _0x44cbdb=_0x1a1f79;return(0x0,_0x29156e[_0x44cbdb(0x1f1)])(this[_0x44cbdb(0x1c6)](_0x55bc92)[_0x44cbdb(0x13a)]((0x0,_0x324d20[_0x44cbdb(0x178)])(()=>void 0x0)));}[_0x1a1f79(0x1d1)](){const _0x46f946=_0x1a1f79;this['_univerInstanceService'][_0x46f946(0x290)](_0xfd1b33[_0x46f946(0x34d)][_0x46f946(0x1ab)])[_0x46f946(0x13a)]((0x0,_0x29156e[_0x46f946(0x3c8)])(this[_0x46f946(0x1fc)]),(0x0,_0x324d20[_0x46f946(0x3df)])(0x10))[_0x46f946(0x441)](async _0x50b0a9=>{const _0x3e93f1=_0x46f946;let _0x4b0a19=_0x50b0a9[_0x3e93f1(0x1d2)][_0x3e93f1(0x26a)](),_0x4fd839=await this[_0x3e93f1(0x346)](_0x4b0a19,_0xfd1b33['UniverInstanceType'][_0x3e93f1(0x1ab)]);this['_entities']['set'](_0x4b0a19,_0x4fd839);}),this[_0x46f946(0x1f2)][_0x46f946(0x290)](_0xfd1b33['UniverInstanceType'][_0x46f946(0x412)])['pipe']((0x0,_0x29156e[_0x46f946(0x3c8)])(this[_0x46f946(0x1fc)]),(0x0,_0x324d20['delay'])(0x10))[_0x46f946(0x13a)]((0x0,_0x324d20[_0x46f946(0x41d)])(_0x1e9fad=>!_0x1e9fad[_0x46f946(0x1d2)][_0x46f946(0x26a)]()[_0x46f946(0x2dc)]('__')))[_0x46f946(0x441)](async _0x5f4726=>{const _0x2f01c8=_0x46f946;let _0x3c827b=_0x5f4726[_0x2f01c8(0x1d2)][_0x2f01c8(0x26a)](),_0x270a8b=await this[_0x2f01c8(0x346)](_0x3c827b,_0xfd1b33[_0x2f01c8(0x34d)]['UNIVER_DOC']);this[_0x2f01c8(0x344)][_0x2f01c8(0x23f)](_0x3c827b,_0x270a8b);}),this[_0x46f946(0x1f2)][_0x46f946(0x290)](_0xfd1b33['UniverInstanceType'][_0x46f946(0xe7)])[_0x46f946(0x13a)]((0x0,_0x29156e[_0x46f946(0x3c8)])(this[_0x46f946(0x1fc)]),(0x0,_0x324d20['delay'])(0x10))['subscribe'](async _0x3354a3=>{const _0x23c292=_0x46f946;let _0x26e1bb=_0x3354a3[_0x23c292(0x1d2)][_0x23c292(0x26a)](),_0xad53c7=await this[_0x23c292(0x346)](_0x26e1bb,_0xfd1b33[_0x23c292(0x34d)]['UNIVER_SLIDE']);this[_0x23c292(0x344)][_0x23c292(0x23f)](_0x26e1bb,_0xad53c7);}),this[_0x46f946(0x1f2)][_0x46f946(0x290)](_0xfd1b33['UniverInstanceType'][_0x46f946(0x2d5)])[_0x46f946(0x13a)]((0x0,_0x29156e[_0x46f946(0x3c8)])(this['dispose$']),(0x0,_0x324d20[_0x46f946(0x3df)])(0x10))['subscribe'](async _0x3c036f=>{const _0x3a4c06=_0x46f946;let _0x57140e=_0x3c036f['unit']['getUnitId'](),_0x1f7193=await this[_0x3a4c06(0x346)](_0x57140e,_0xfd1b33[_0x3a4c06(0x34d)][_0x3a4c06(0x2d5)]);this['_entities']['set'](_0x57140e,_0x1f7193);}),this[_0x46f946(0x1f2)][_0x46f946(0x290)](_0xfd1b33[_0x46f946(0x34d)][_0x46f946(0x16b)])[_0x46f946(0x13a)]((0x0,_0x29156e[_0x46f946(0x3c8)])(this[_0x46f946(0x1fc)]),(0x0,_0x324d20['delay'])(0x10))[_0x46f946(0x441)](async _0x1585f9=>{const _0x410f88=_0x46f946;let _0x4eb44a=_0x1585f9[_0x410f88(0x1d2)][_0x410f88(0x26a)](),_0x584969=await this[_0x410f88(0x346)](_0x4eb44a,_0xfd1b33[_0x410f88(0x34d)][_0x410f88(0x16b)]);this[_0x410f88(0x344)]['set'](_0x4eb44a,_0x584969);}),this['_univerInstanceService'][_0x46f946(0x290)](_0xfd1b33[_0x46f946(0x34d)][_0x46f946(0x186)])[_0x46f946(0x13a)]((0x0,_0x29156e[_0x46f946(0x3c8)])(this[_0x46f946(0x1fc)]),(0x0,_0x324d20[_0x46f946(0x3df)])(0x10))[_0x46f946(0x441)](async _0x31a736=>{const _0x14092e=_0x46f946;let _0x589f5f=_0x31a736[_0x14092e(0x1d2)]['getUnitId'](),_0x2a3918=await this[_0x14092e(0x346)](_0x589f5f,_0xfd1b33[_0x14092e(0x34d)][_0x14092e(0x186)]);this[_0x14092e(0x344)][_0x14092e(0x23f)](_0x589f5f,_0x2a3918);}),(0x0,_0x29156e['merge'])(this['_univerInstanceService'][_0x46f946(0x191)](_0xfd1b33['UniverInstanceType'][_0x46f946(0x1ab)]),this[_0x46f946(0x1f2)][_0x46f946(0x191)](_0xfd1b33['UniverInstanceType']['UNIVER_DOC']),this[_0x46f946(0x1f2)][_0x46f946(0x191)](_0xfd1b33['UniverInstanceType'][_0x46f946(0xe7)]),this[_0x46f946(0x1f2)]['getTypeOfUnitDisposed$'](_0xfd1b33[_0x46f946(0x34d)][_0x46f946(0x2d5)]),this['_univerInstanceService'][_0x46f946(0x191)](_0xfd1b33[_0x46f946(0x34d)][_0x46f946(0x16b)]),this[_0x46f946(0x1f2)][_0x46f946(0x191)](_0xfd1b33[_0x46f946(0x34d)][_0x46f946(0x186)]))[_0x46f946(0x13a)]((0x0,_0x29156e[_0x46f946(0x3c8)])(this[_0x46f946(0x1fc)]))[_0x46f946(0x441)](_0x3ea795=>{const _0x391dbf=_0x46f946;let _0x2264a3=_0x3ea795[_0x391dbf(0x26a)](),_0xae97cb=this[_0x391dbf(0x344)]['get'](_0x2264a3);_0xae97cb&&(_0xae97cb[_0x391dbf(0xdb)](),this[_0x391dbf(0x344)]['delete'](_0x2264a3));});}async[_0x1a1f79(0x346)](_0x548293,_0xa1ad9d){const _0x2c2184=_0x1a1f79;let _0xfbff73=await this[_0x2c2184(0x432)]['requireSession'](_0x548293),_0x1bb1f3=this[_0x2c2184(0x144)][_0x2c2184(0x2b2)](this[_0x2c2184(0x34a)](_0xa1ad9d),_0x548293,_0xa1ad9d,_0xfbff73);return await _0x1bb1f3['init'](),this[_0x2c2184(0x1d6)][_0x2c2184(0x34e)](_0x1bb1f3),_0x1bb1f3;}[_0x1a1f79(0x34a)](_0x5d1f6c){const _0x2a8f0c=_0x1a1f79;switch(_0x5d1f6c){case _0xfd1b33[_0x2a8f0c(0x34d)][_0x2a8f0c(0x412)]:return _0x460c6f;case _0xfd1b33[_0x2a8f0c(0x34d)][_0x2a8f0c(0x1ab)]:return _0x5c9937;case _0xfd1b33[_0x2a8f0c(0x34d)][_0x2a8f0c(0xe7)]:return _0xac0845;case _0xfd1b33['UniverInstanceType'][_0x2a8f0c(0x2d5)]:return _0x4efaf5;case _0xfd1b33[_0x2a8f0c(0x34d)][_0x2a8f0c(0x16b)]:return _0x2e7d94;case _0xfd1b33[_0x2a8f0c(0x34d)]['UNIVER_PDF']:return _0x4c1f68;default:throw Error(_0x2a8f0c(0x32b)+_0x5d1f6c);}}};_0x5531ba=_0x3ef445([_0x3b7f76(0x0,(0x0,_0xfd1b33['Inject'])(_0xfd1b33['Injector'])),_0x3b7f76(0x1,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x44e620)),_0x3b7f76(0x2,_0xfd1b33[_0x1a1f79(0x1ee)]),_0x3b7f76(0x3,_0xfd1b33[_0x1a1f79(0x439)])],_0x5531ba);var _0x3534ee='@univerjs-pro/collaboration-client',_0x357941=_0x1a1f79(0x23e);let _0x1790ae=class extends _0xfd1b33['Disposable']{constructor(_0x4bcc49,_0x40963e){const _0x56a581=_0x1a1f79;super(),this[_0x56a581(0x1f2)]=_0x4bcc49,this['_configService']=_0x40963e,this[_0x56a581(0x1d1)]();}['_init'](){const _0x193422=_0x1a1f79;this[_0x193422(0x2df)](this[_0x193422(0x1f2)][_0x193422(0x222)]['subscribe'](()=>{const _0x50cfa8=_0x193422;let _0x4bdd40=this[_0x50cfa8(0x1f2)][_0x50cfa8(0x299)](),_0x325bbf=this[_0x50cfa8(0x347)][_0x50cfa8(0x352)](_0x50cfa8(0x2ca))??_0x50cfa8(0x21f);_0x4bdd40 instanceof _0xfd1b33[_0x50cfa8(0x135)]&&(_0x325bbf=_0x4bdd40['name']),document[_0x50cfa8(0x14d)]=_0x325bbf;}));}};_0x1790ae=_0x3ef445([_0x3b7f76(0x0,_0xfd1b33[_0x1a1f79(0x439)]),_0x3b7f76(0x1,_0xfd1b33[_0x1a1f79(0x1ee)])],_0x1790ae);let _0x6be0cc=(0x0,_0xfd1b33['createIdentifier'])(_0x1a1f79(0xf2)),_0x4bf954=class{constructor(_0x511aa5,_0x4e7364,_0x2aa4d0){const _0x47e393=_0x1a1f79;this[_0x47e393(0x395)]=_0x511aa5,this[_0x47e393(0x347)]=_0x4e7364,this['_univerInstanceService']=_0x2aa4d0;}[_0x1a1f79(0x1e4)](){const _0x65970a=_0x1a1f79;return this[_0x65970a(0x377)]()[_0x65970a(0xda)]??{};}async[_0x1a1f79(0x2cc)](_0x772e82){const _0xd0359=_0x1a1f79;let _0x1d156b=this[_0xd0359(0x1e4)]();if(_0x4b4551(_0x772e82,_0x1d156b),_0x1d156b['upload'])return _0x1d156b[_0xd0359(0x2c8)](_0x772e82);let _0x4fdd07=await this[_0xd0359(0x121)](_0x772e82);return{'id':_0x4fdd07,'name':_0x772e82['name'],'mimeType':_0x772e82[_0xd0359(0x39b)],'size':_0x772e82['size'],'sourceType':_0xfd1b33['ImageSourceType'][_0xd0359(0x28e)],'source':_0x4fdd07};}async['getAttachmentUrl'](_0x22af72,_0x3d1d26){const _0x304086=_0x1a1f79;if(_0x3d1d26!==_0xfd1b33[_0x304086(0x41e)]['UUID'])return _0x22af72;let _0x5b2613=(await this[_0x304086(0x395)][_0x304086(0x30d)](this[_0x304086(0x3a6)]()['replace'](_0x304086(0xc6),_0x22af72)))[_0x304086(0xf4)];if(_0x5b2613['error']&&_0x5b2613[_0x304086(0x2f1)][_0x304086(0x2a7)]!==_0x3c00fa[_0x304086(0x37c)]['OK'])throw _0x5b2613[_0x304086(0x2f1)];if(!_0x5b2613[_0x304086(0x228)])throw Error(_0x304086(0x280));return(0x0,_0xfd1b33[_0x304086(0x294)])(_0x5b2613[_0x304086(0x228)],this[_0x304086(0x3d5)]());}async[_0x1a1f79(0x121)](_0x1a1ff7){const _0x43008e=_0x1a1f79;let _0x2cac7e=this[_0x43008e(0x1f2)]['getFocusedUnit'](),_0x1d5140=_0x2cac7e==null?void 0x0:_0x2cac7e[_0x43008e(0x26a)]();if(!_0x1d5140)throw Error(_0x43008e(0xfb));let _0x49f448=new FormData();_0x49f448['append'](_0x43008e(0x330),_0x1a1ff7);let _0x411f1d=this['_getUploadFileURL']()+_0x43008e(0x3b0)+_0x1a1ff7[_0x43008e(0x349)][_0x43008e(0x14a)]()+_0x43008e(0x2f9)+_0x3c00fa[_0x43008e(0x1f7)]['UnitEmbedded']+_0x43008e(0x213)+encodeURIComponent(_0x1d5140),_0x2420b0=(await this['_httpService'][_0x43008e(0x2fd)](_0x411f1d,{'body':_0x49f448}))[_0x43008e(0xf4)][_0x43008e(0x42f)];if(typeof _0x2420b0!='string'||!_0x2420b0)throw Error(_0x43008e(0x2b3));return _0x2420b0;}[_0x1a1f79(0x313)](){const _0x2a3d9d=_0x1a1f79;return this[_0x2a3d9d(0x377)]()[_0x2a3d9d(0xd3)]??'/universer-api/stream/file/upload';}['_getSignURL'](){const _0x2a6f59=_0x1a1f79;return this[_0x2a6f59(0x377)]()[_0x2a6f59(0x325)]??_0x2a6f59(0x433);}[_0x1a1f79(0x3d5)](){const _0x3f7ca3=_0x1a1f79;let _0x422dd2=this['_getConfig']();return _0x422dd2[_0x3f7ca3(0x30e)]?_0x422dd2[_0x3f7ca3(0x30e)]:typeof location<'u'?location[_0x3f7ca3(0xf8)]:_0x422dd2[_0x3f7ca3(0xd3)]??'';}[_0x1a1f79(0x377)](){const _0x339c74=_0x1a1f79;return this[_0x339c74(0x347)][_0x339c74(0x352)](_0x339c74(0x376))??{};}};_0x4bf954=_0x3ef445([_0x3b7f76(0x0,(0x0,_0xfd1b33['Inject'])(_0x1b853b[_0x1a1f79(0xf3)])),_0x3b7f76(0x1,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x1ee)])),_0x3b7f76(0x2,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x439)]))],_0x4bf954);function _0x4b4551(_0x14ed67,_0xb65041){const _0x56d8b8=_0x1a1f79;var _0x44134f;if(_0xb65041[_0x56d8b8(0x2c5)]!=null&&_0x14ed67[_0x56d8b8(0x349)]>_0xb65041[_0x56d8b8(0x2c5)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x44134f=_0xb65041[_0x56d8b8(0x43e)])!=null&&_0x44134f[_0x56d8b8(0x314)]&&!_0xb65041[_0x56d8b8(0x43e)][_0x56d8b8(0x38d)](_0x37260f=>_0x14ed67['type']===_0x37260f||_0x14ed67[_0x56d8b8(0x15d)][_0x56d8b8(0xef)](_0x37260f)||_0x37260f[_0x56d8b8(0xef)]('/*')&&_0x14ed67[_0x56d8b8(0x39b)][_0x56d8b8(0x2dc)](_0x37260f[_0x56d8b8(0x393)](0x0,-0x1))))throw Error(_0x56d8b8(0x415));}let _0x1f6f73=class{constructor(_0x502f81,_0x367bb,_0x11862b){const _0x580a23=_0x1a1f79;this[_0x580a23(0x347)]=_0x502f81,this[_0x580a23(0x395)]=_0x367bb,this[_0x580a23(0xfc)]=_0x11862b,this[_0x580a23(0x133)]();}[_0x1a1f79(0x133)](){const _0x592136=_0x1a1f79;this[_0x592136(0x395)][_0x592136(0x359)]({'priority':0x1,'interceptor':(_0x4bf801,_0x35c5a2)=>_0x35c5a2(_0x4bf801)['pipe']((0x0,_0x29156e[_0x592136(0x162)])(async _0x25843f=>{const _0x132b2a=_0x592136;let _0x3d49d5=_0x25843f;if(_0x3d49d5[_0x132b2a(0x437)]===0x191){if(typeof window>'u')throw Error(_0x132b2a(0x16c));if(window[_0x132b2a(0x27d)](this[_0x132b2a(0xfc)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x3242be=window['encodeURIComponent'](window[_0x132b2a(0x3ce)][_0x132b2a(0xca)]);window['location'][_0x132b2a(0xca)]=this[_0x132b2a(0x387)]()+_0x132b2a(0x36c)+_0x3242be;}}return _0x3d49d5;}))});}[_0x1a1f79(0x387)](){const _0x277907=_0x1a1f79;let _0x3bb07f=this[_0x277907(0x347)]['getConfig'](_0x46f3f1);return(_0x3bb07f==null?void 0x0:_0x3bb07f[_0x277907(0x2e3)])??_0x277907(0x3a0);}};_0x1f6f73=_0x3ef445([_0x3b7f76(0x0,_0xfd1b33['IConfigService']),_0x3b7f76(0x1,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x1b853b[_0x1a1f79(0xf3)])),_0x3b7f76(0x2,(0x0,_0xfd1b33['Inject'])(_0xfd1b33[_0x1a1f79(0x264)]))],_0x1f6f73);let _0x466665=class extends _0xfd1b33[_0x1a1f79(0x2cd)]{constructor(_0x5c1b8c,_0x1a51da){const _0x1e8db9=_0x1a1f79;super(),this[_0x1e8db9(0x2b8)]=_0x5c1b8c,this[_0x1e8db9(0x347)]=_0x1a51da,_0x3d9afb(this,_0x1e8db9(0x111),!0x1),this[_0x1e8db9(0x311)]();}[_0x1a1f79(0x311)](){const _0x476b9b=_0x1a1f79;let _0x377467=this;this[_0x476b9b(0x2df)](this[_0x476b9b(0x2b8)][_0x476b9b(0x359)]({'priority':0x3e7,'interceptor':(0x0,_0x1b853b[_0x476b9b(0x230)])({'isMatch'(_0x44de96){const _0x54f08d=_0x476b9b;var _0x1f1ce0;if(_0x44de96[_0x54f08d(0x36a)]==='POST'&&(_0x1f1ce0=_0x44de96['requestParams'])!=null&&_0x1f1ce0[_0x54f08d(0xf4)]){let {objectID:_0x23fe16,objectType:_0x1b25e2}=_0x44de96[_0x54f08d(0x418)][_0x54f08d(0xf4)]||{};if(!_0x23fe16||_0x1b25e2===void 0x0)return!0x1;let _0x5594b6=_0x377467[_0x54f08d(0x362)]()+'/'+_0x1b25e2+_0x54f08d(0x26e)+encodeURIComponent(_0x23fe16)+_0x54f08d(0x351);if(_0x44de96[_0x54f08d(0x228)]===_0x5594b6)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4a96d4){const _0x5cb44f=_0x476b9b;var _0x2ba9ae;return(_0x2ba9ae=_0x4a96d4[_0x5cb44f(0x418)])==null?void 0x0:_0x2ba9ae[_0x5cb44f(0xf4)];},'mergeParamsToRequest'(_0x5b8cb2,_0x43407e){const _0x214cce=_0x476b9b;let _0x4c7722=_0x377467[_0x214cce(0x362)]()+_0x214cce(0x438),_0x1d0297=_0x5b8cb2[_0x214cce(0x3cd)]((_0x4cf4e2,_0x3cb4cc)=>{const _0x140b00=_0x214cce;let {unitID:_0x547713,objectID:_0x2136b4,objectType:_0xc3eab8,actions:_0x10dbc7}=_0x3cb4cc;return _0x4cf4e2[_0x547713]||(_0x4cf4e2[_0x547713]=Object[_0x140b00(0x26b)](null)),_0x4cf4e2[_0x547713][_0x2136b4]||(_0x4cf4e2[_0x547713][_0x2136b4]={'objectID':_0x2136b4,'objectType':_0xc3eab8,'actions':[]}),_0x4cf4e2[_0x547713][_0x2136b4][_0x140b00(0x1b2)][_0x140b00(0x1a0)](..._0x10dbc7),_0x4cf4e2;},Object[_0x214cce(0x26b)](null)),_0x4a2c0d=[];for(let _0x19da2b in _0x1d0297)for(let _0x24ce6e in _0x1d0297[_0x19da2b]){let {actions:_0x4bb422,objectType:_0x3af1d4}=_0x1d0297[_0x19da2b][_0x24ce6e],_0x12bbe0=[...new Set(_0x4bb422)];_0x4a2c0d[_0x214cce(0x1a0)]({'unitID':_0x19da2b,'objectID':_0x24ce6e,'objectType':_0x3af1d4,'actions':_0x12bbe0});}return new _0x1b853b[(_0x214cce(0x194))](_0x214cce(0x118),_0x4c7722,{'headers':_0x43407e[_0x214cce(0x2db)],'withCredentials':_0x43407e[_0x214cce(0x150)],'responseType':_0x43407e[_0x214cce(0x1af)],'body':{'requests':_0x4a2c0d}});}},{'distributeResult'(_0x38c544,_0x1ff739){const _0x30b62e=_0x476b9b;let {objectActions:_0x294a64}=_0x38c544;return _0x1ff739[_0x30b62e(0x178)](_0x1e3bb1=>{const _0x3cedb1=_0x30b62e;let {unitID:_0x578fc1,objectID:_0x835ed2,actions:_0x5c391d}=_0x1e3bb1,_0x2040c9=_0x294a64[_0x3cedb1(0x124)](_0x424596=>_0x424596[_0x3cedb1(0x239)]===_0x578fc1&&_0x424596[_0x3cedb1(0x247)]===_0x835ed2);return{'config':_0x1e3bb1,'result':{'actions':_0x5c391d[_0x3cedb1(0x178)](_0xaab386=>_0x2040c9==null?void 0x0:_0x2040c9['actions']['find'](_0x20c302=>_0x20c302[_0x3cedb1(0x42d)]===_0xaab386))[_0x3cedb1(0x41d)](_0x4b4dc5=>!!_0x4b4dc5),'error':_0x38c544[_0x3cedb1(0x2f1)]}};});}})}));}[_0x1a1f79(0x362)](){const _0x2e9aad=_0x1a1f79;let _0x593e34=this[_0x2e9aad(0x347)][_0x2e9aad(0x352)](_0x46f3f1);return(_0x593e34==null?void 0x0:_0x593e34['authzUrl'])??_0x2e9aad(0x1e2);}async[_0x1a1f79(0x26b)](_0x584337){const _0x289423=_0x1a1f79;let _0xc11d3f=this[_0x289423(0x362)]()+'/'+_0x584337['objectType']+_0x289423(0x21d);return(await this['_HTTPService']['post'](_0xc11d3f,{'body':_0x584337}))['body']['objectID']||'';}async[_0x1a1f79(0x397)](_0x52bb29){const _0x22dfe3=_0x1a1f79;let _0x4bddc1=this['_getAPIPrefixPath']()+_0x22dfe3(0x33b);return(await this[_0x22dfe3(0x2b8)][_0x22dfe3(0x2fd)](_0x4bddc1,{'body':_0x52bb29}))[_0x22dfe3(0xf4)]['objects'];}async[_0x1a1f79(0x283)](_0x49d550){const _0x2a938d=_0x1a1f79;var _0x5d1402;let _0x32b018=this['_getAPIPrefixPath']()+'/'+_0x49d550['objectType']+_0x2a938d(0x26e)+encodeURIComponent(_0x49d550[_0x2a938d(0x247)]),_0x1b7894=await this[_0x2a938d(0x2b8)]['put'](_0x32b018,{'body':_0x49d550});if((_0x1b7894==null||(_0x5d1402=_0x1b7894['body'])==null||(_0x5d1402=_0x5d1402['error'])==null?void 0x0:_0x5d1402['code'])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x1a1f79(0x161)](_0x406282){const _0x1c17ca=_0x1a1f79;let _0x5ec2e9=this[_0x1c17ca(0x362)]()+'/'+_0x406282[_0x1c17ca(0x127)]+_0x1c17ca(0x26e)+encodeURIComponent(_0x406282[_0x1c17ca(0x247)])+'/allowed';return(await this[_0x1c17ca(0x2b8)][_0x1c17ca(0x2fd)](_0x5ec2e9,{'body':_0x406282}))[_0x1c17ca(0xf4)]['actions'];}async[_0x1a1f79(0x404)](_0x1faffb){const _0x2c72f3=_0x1a1f79;let _0x22d518=this[_0x2c72f3(0x362)]()+_0x2c72f3(0x438);return(await this[_0x2c72f3(0x2b8)]['post'](_0x22d518,{'body':{'requests':_0x1faffb}}))[_0x2c72f3(0xf4)][_0x2c72f3(0x295)];}async[_0x1a1f79(0x11c)](_0x337dc6){const _0x4c6e37=_0x1a1f79;let _0x4a3f46=this[_0x4c6e37(0x362)]()+'/'+_0x337dc6[_0x4c6e37(0x127)]+_0x4c6e37(0x38a),_0x295aed=await this[_0x4c6e37(0x2b8)]['post'](_0x4a3f46,{'body':_0x337dc6});return{'roles':_0x295aed[_0x4c6e37(0xf4)][_0x4c6e37(0x243)],'actions':_0x295aed[_0x4c6e37(0xf4)][_0x4c6e37(0x1b2)]};}async[_0x1a1f79(0x2b7)](_0x231ee5){const _0x3a72af=_0x1a1f79;let _0x6c1c18=this[_0x3a72af(0x362)]()+_0x3a72af(0x2fb);await this[_0x3a72af(0x2b8)][_0x3a72af(0x26d)](_0x6c1c18,{'params':{'collaboratorID':_0x231ee5[_0x3a72af(0x41b)],'objectID':_0x231ee5[_0x3a72af(0x247)],'unitID':_0x231ee5[_0x3a72af(0x239)]}});}async[_0x1a1f79(0x3d3)](_0x42a0a1){const _0x406f74=_0x1a1f79;let _0x4e439d=this[_0x406f74(0x362)]()+_0x406f74(0x2fb);await this[_0x406f74(0x2b8)][_0x406f74(0x18a)](_0x4e439d,{'body':_0x42a0a1});}async[_0x1a1f79(0x303)](_0x22093d){const _0x135193=_0x1a1f79;let _0x3a9182=this[_0x135193(0x362)]()+_0x135193(0x2fb);await this['_HTTPService']['post'](_0x3a9182,{'body':_0x22093d});}async[_0x1a1f79(0x25e)](_0x43b2a9){const _0x5a638e=_0x1a1f79;let _0x1ad9bd=this[_0x5a638e(0x362)]()+_0x5a638e(0x2fb),_0x296206=await this['_HTTPService'][_0x5a638e(0x30d)](_0x1ad9bd,{'params':{'objectID':_0x43b2a9['objectID'],'unitID':_0x43b2a9[_0x5a638e(0x239)]}});return this[_0x5a638e(0x226)](_0x296206[_0x5a638e(0xf4)][_0x5a638e(0x163)]??!0x1),_0x296206[_0x5a638e(0xf4)][_0x5a638e(0x15b)];}async[_0x1a1f79(0x22f)](_0x249fc2){const _0x436703=_0x1a1f79;let _0x5da7fd=this[_0x436703(0x362)]()+'/collaborator';await this[_0x436703(0x2b8)]['put'](_0x5da7fd,{'body':_0x249fc2});}[_0x1a1f79(0x226)](_0x75b5d5){this['_cfgEnableObjInherit']=_0x75b5d5;}[_0x1a1f79(0x27b)](){return this['_cfgEnableObjInherit'];}};_0x466665=_0x3ef445([_0x3b7f76(0x0,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x1b853b[_0x1a1f79(0xf3)])),_0x3b7f76(0x1,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x1ee)]))],_0x466665);function _0x4d8238(_0x9807fd){const _0x32cede=_0x1a1f79;return _0x9807fd instanceof Uint8Array||ArrayBuffer[_0x32cede(0x296)](_0x9807fd)&&_0x9807fd[_0x32cede(0x328)][_0x32cede(0x15d)]===_0x32cede(0x134)&&'BYTES_PER_ELEMENT'in _0x9807fd&&_0x9807fd[_0x32cede(0x398)]===0x1;}let _0x18540b=_0x160cb7=>_0x160cb7?'\x22'+_0x160cb7+'\x22\x20':'';function _0x2f8384(_0x355f6f,_0x5d5136=''){const _0x360715=_0x1a1f79;if(typeof _0x355f6f!='number')throw TypeError(_0x18540b(_0x5d5136)+_0x360715(0x32c)+typeof _0x355f6f);if(!Number[_0x360715(0x155)](_0x355f6f)||_0x355f6f<0x0)throw RangeError(_0x18540b(_0x5d5136)+_0x360715(0x39a)+_0x355f6f);return _0x355f6f;}function _0x2ff908(_0x4f66a8,_0x404f43,_0x267609=''){const _0x501d31=_0x1a1f79;if(_0x4d8238(_0x4f66a8)&&(_0x404f43===void 0x0||_0x4f66a8[_0x501d31(0x314)]===_0x404f43))return _0x4f66a8;_0x404f43!==void 0x0&&_0x2f8384(_0x404f43,_0x501d31(0x314));let _0x253da5=_0x4d8238(_0x4f66a8),_0xbfa0db=_0x404f43===void 0x0?'':_0x501d31(0x291)+_0x404f43,_0x409c10=_0x253da5?_0x501d31(0x220)+_0x4f66a8['length']:_0x501d31(0x153)+typeof _0x4f66a8,_0x23a0be=_0x18540b(_0x267609)+_0x501d31(0x3c9)+_0xbfa0db+_0x501d31(0x3e2)+_0x409c10;throw _0x253da5?RangeError(_0x23a0be):TypeError(_0x23a0be);}function _0x20147b(_0x524edc){const _0x5df58e=_0x1a1f79;return new Uint32Array(_0x524edc[_0x5df58e(0x1ac)],_0x524edc['byteOffset'],Math['floor'](_0x524edc[_0x5df58e(0x21e)]/0x4));}function _0x78bdbf(..._0x285bbe){const _0x3cb4a3=_0x1a1f79;for(let _0x412ef0=0x0;_0x412ef0<_0x285bbe['length'];_0x412ef0++)_0x285bbe[_0x412ef0][_0x3cb4a3(0x195)](0x0);}let _0x3a2b45=new Uint8Array(new Uint32Array([0x11223344])['buffer'])[0x0]===0x44;function _0x97807f(_0x18a8c9){return _0x18a8c9<<0x18&0xff000000|_0x18a8c9<<0x8&0xff0000|_0x18a8c9>>>0x8&0xff00|_0x18a8c9>>>0x18&0xff;}function _0x188b77(_0x8b221d){const _0x1b3d89=_0x1a1f79;for(let _0x24fe5e=0x0;_0x24fe5e<_0x8b221d[_0x1b3d89(0x314)];_0x24fe5e++)_0x8b221d[_0x24fe5e]=_0x97807f(_0x8b221d[_0x24fe5e]);return _0x8b221d;}let _0x4293ab=_0x3a2b45?_0x41cd08=>_0x41cd08:_0x188b77;function _0x5971c9(_0xf5c809){const _0x23547b=_0x1a1f79;if(typeof _0xf5c809!=_0x23547b(0x3d2))throw TypeError(_0x23547b(0x324));return new Uint8Array(new TextEncoder()[_0x23547b(0x1c2)](_0xf5c809));}function _0x2cbe66(_0x4e7e6f,_0x4e39aa){const _0xc8257=_0x1a1f79;return!_0x4e7e6f['byteLength']||!_0x4e39aa[_0xc8257(0x21e)]?!0x1:_0x4e7e6f[_0xc8257(0x1ac)]===_0x4e39aa['buffer']&&_0x4e7e6f[_0xc8257(0x1d8)]<_0x4e39aa['byteOffset']+_0x4e39aa[_0xc8257(0x21e)]&&_0x4e39aa[_0xc8257(0x1d8)]<_0x4e7e6f[_0xc8257(0x1d8)]+_0x4e7e6f[_0xc8257(0x21e)];}function _0x2d1a38(_0xeefc76,_0x31cb3c){const _0x73ffb3=_0x1a1f79;if(_0x2cbe66(_0xeefc76,_0x31cb3c)&&_0xeefc76[_0x73ffb3(0x1d8)]<_0x31cb3c[_0x73ffb3(0x1d8)])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0xa19cc4(..._0x554769){const _0x1c2e11=_0x1a1f79;let _0x1ff0a8=0x0;for(let _0x44476a=0x0;_0x44476a<_0x554769[_0x1c2e11(0x314)];_0x44476a++){let _0x50a4a7=_0x554769[_0x44476a];_0x2ff908(_0x50a4a7),_0x1ff0a8+=_0x50a4a7[_0x1c2e11(0x314)];}let _0x317e1f=new Uint8Array(_0x1ff0a8);for(let _0x1fb664=0x0,_0x585979=0x0;_0x1fb664<_0x554769['length'];_0x1fb664++){let _0x1329a7=_0x554769[_0x1fb664];_0x317e1f[_0x1c2e11(0x23f)](_0x1329a7,_0x585979),_0x585979+=_0x1329a7[_0x1c2e11(0x314)];}return _0x317e1f;}let _0x4859bb=(_0x13447a,_0x48d225)=>{const _0x1e47aa=_0x1a1f79;function _0x2d6163(_0x294956,..._0x174a00){const _0x425f7a=_0x31da;if(_0x2ff908(_0x294956,void 0x0,_0x425f7a(0x364)),_0x13447a[_0x425f7a(0x385)]!==void 0x0){let _0x284d66=_0x174a00[0x0];_0x2ff908(_0x284d66,_0x13447a[_0x425f7a(0xf6)]?void 0x0:_0x13447a[_0x425f7a(0x385)],_0x425f7a(0xfe));}let _0x2d168c=_0x13447a[_0x425f7a(0x39c)],_0x5c3d0d=_0x13447a[_0x425f7a(0x385)]===void 0x0?0x0:0x1;if(!_0x13447a[_0x425f7a(0x3e0)]){for(let _0x34d5b3=_0x5c3d0d;_0x34d5b3<_0x174a00[_0x425f7a(0x314)];_0x34d5b3++)if(_0x4d8238(_0x174a00[_0x34d5b3]))throw Error(_0x425f7a(0x1c0));}_0x13447a[_0x425f7a(0x3e0)]&&_0x174a00[_0x5c3d0d]!==void 0x0&&_0x2ff908(_0x174a00[_0x5c3d0d],void 0x0,_0x425f7a(0x19e));let _0x21d09c=_0x48d225(_0x294956,..._0x174a00),_0x885669=(_0x5d3f3d,_0x4571c6)=>{const _0x4f6dc2=_0x425f7a;if(_0x4571c6!==void 0x0){if(_0x5d3f3d!==0x2)throw Error(_0x4f6dc2(0x1c1));_0x2ff908(_0x4571c6,void 0x0,_0x4f6dc2(0x1c9));}},_0x532430=!0x1;return{'encrypt'(_0x320d9e,_0x4c171b){const _0x13ad86=_0x425f7a;if(_0x532430)throw Error('cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce');return _0x532430=!0x0,_0x2ff908(_0x320d9e,void 0x0,_0x13ad86(0x16f)),_0x885669(_0x21d09c['encrypt'][_0x13ad86(0x314)],_0x4c171b),_0x21d09c[_0x13ad86(0x3a4)](_0x320d9e,_0x4c171b);},'decrypt'(_0x2f38f3,_0x3b0eba){const _0x3bf8bc=_0x425f7a;if(_0x2ff908(_0x2f38f3,void 0x0,'data'),_0x2d168c&&_0x2f38f3[_0x3bf8bc(0x314)]<_0x2d168c)throw Error(_0x3bf8bc(0x3c3)+_0x2d168c);return _0x885669(_0x21d09c[_0x3bf8bc(0x1c7)][_0x3bf8bc(0x314)],_0x3b0eba),_0x21d09c[_0x3bf8bc(0x1c7)](_0x2f38f3,_0x3b0eba);}};}return Object[_0x1e47aa(0x383)](_0x2d6163,_0x13447a),_0x2d6163;};function _0xad5ce6(_0x400a9b,_0x4755a9,_0x260e35=!0x0){const _0x1ce012=_0x1a1f79;if(_0x4755a9===void 0x0)return new Uint8Array(_0x400a9b);if(_0x2ff908(_0x4755a9,_0x400a9b,'output'),_0x260e35&&!_0xc98677(_0x4755a9))throw Error(_0x1ce012(0x308));return _0x4755a9;}function _0xc98677(_0x635b68){return _0x635b68['byteOffset']%0x4==0x0;}function _0x48a5ec(_0x2eaf77){const _0x57b7b2=_0x1a1f79;return Uint8Array[_0x57b7b2(0x3d0)](_0x2ff908(_0x2eaf77));}function _0xedac0(_0x38aa13=0x20){const _0xdcc551=_0x1a1f79;_0x2f8384(_0x38aa13,_0xdcc551(0x30f));let _0x4e9ac7=typeof globalThis==_0xdcc551(0x2e8)?globalThis[_0xdcc551(0x2de)]:null;if(typeof(_0x4e9ac7==null?void 0x0:_0x4e9ac7[_0xdcc551(0x17b)])!=_0xdcc551(0x372))throw Error(_0xdcc551(0x14e));if(_0x38aa13>0x10000)throw RangeError(_0xdcc551(0x216)+_0x38aa13);return _0x4e9ac7[_0xdcc551(0x17b)](new Uint8Array(_0x38aa13));}function _0x2dbaad(_0x42f959){const _0x4d9412=_0x1a1f79;if(![0x10,0x18,0x20][_0x4d9412(0x3b4)](_0x42f959['length']))throw Error(_0x4d9412(0x23a)+_0x42f959['length']);}function _0x21dde8(_0x15bdff){return _0x15bdff<<0x1^0x11b&-(_0x15bdff>>0x7);}function _0xfb9790(_0x29552e,_0x26ebe9){let _0x4e937b=0x0;for(;_0x26ebe9>0x0;_0x26ebe9>>=0x1)_0x4e937b^=_0x29552e&-(_0x26ebe9&0x1),_0x29552e=_0x21dde8(_0x29552e);return _0x4e937b;}let _0x4f36ec=((()=>{let _0x1ffb7e=new Uint8Array(0x100);for(let _0x5c6d72=0x0,_0xb6375=0x1;_0x5c6d72<0x100;_0x5c6d72++,_0xb6375^=_0x21dde8(_0xb6375))_0x1ffb7e[_0x5c6d72]=_0xb6375;let _0x939ba2=new Uint8Array(0x100);_0x939ba2[0x0]=0x63;for(let _0x43e1b7=0x0;_0x43e1b7<0xff;_0x43e1b7++){let _0x4945c9=_0x1ffb7e[0xff-_0x43e1b7];_0x4945c9|=_0x4945c9<<0x8,_0x939ba2[_0x1ffb7e[_0x43e1b7]]=(_0x4945c9^_0x4945c9>>0x4^_0x4945c9>>0x5^_0x4945c9>>0x6^_0x4945c9>>0x7^0x63)&0xff;}return _0x78bdbf(_0x1ffb7e),_0x939ba2;})()),_0x3147d9=_0x4f36ec[_0x1a1f79(0x178)]((_0x61c401,_0x1dddba)=>_0x4f36ec[_0x1a1f79(0x3dc)](_0x1dddba)),_0x1c4cd0=_0x3dc4a5=>_0x3dc4a5<<0x18|_0x3dc4a5>>>0x8,_0x27760f=_0x454f43=>_0x454f43<<0x8|_0x454f43>>>0x18;function _0x3eec2b(_0x5d9158,_0x16418c){const _0x519073=_0x1a1f79;if(_0x5d9158[_0x519073(0x314)]!==0x100)throw Error('wrong\x20sbox\x20length');let _0x227f8a=new Uint32Array(0x100)[_0x519073(0x178)]((_0x47c79a,_0x8c1b94)=>_0x16418c(_0x5d9158[_0x8c1b94])),_0x82d9b7=_0x227f8a[_0x519073(0x178)](_0x27760f),_0x358055=_0x82d9b7[_0x519073(0x178)](_0x27760f),_0x2f9969=_0x358055[_0x519073(0x178)](_0x27760f),_0x182046=new Uint32Array(0x10000),_0x28df63=new Uint32Array(0x10000),_0x3cf384=new Uint16Array(0x10000);for(let _0xaa2714=0x0;_0xaa2714<0x100;_0xaa2714++)for(let _0x35ec22=0x0;_0x35ec22<0x100;_0x35ec22++){let _0x50293a=_0xaa2714*0x100+_0x35ec22;_0x182046[_0x50293a]=_0x227f8a[_0xaa2714]^_0x82d9b7[_0x35ec22],_0x28df63[_0x50293a]=_0x358055[_0xaa2714]^_0x2f9969[_0x35ec22],_0x3cf384[_0x50293a]=_0x5d9158[_0xaa2714]<<0x8|_0x5d9158[_0x35ec22];}return{'sbox':_0x5d9158,'sbox2':_0x3cf384,'T0':_0x227f8a,'T1':_0x82d9b7,'T2':_0x358055,'T3':_0x2f9969,'T01':_0x182046,'T23':_0x28df63};}let _0x4407fa=_0x3eec2b(_0x4f36ec,_0x352567=>_0xfb9790(_0x352567,0x3)<<0x18|_0x352567<<0x10|_0x352567<<0x8|_0xfb9790(_0x352567,0x2)),_0x10748a=_0x3eec2b(_0x3147d9,_0xe834a8=>_0xfb9790(_0xe834a8,0xb)<<0x18|_0xfb9790(_0xe834a8,0xd)<<0x10|_0xfb9790(_0xe834a8,0x9)<<0x8|_0xfb9790(_0xe834a8,0xe)),_0x166870=((()=>{let _0xb92940=new Uint8Array(0x10);for(let _0x529814=0x0,_0x25af60=0x1;_0x529814<0x10;_0x529814++,_0x25af60=_0x21dde8(_0x25af60))_0xb92940[_0x529814]=_0x25af60;return _0xb92940;})());function _0x3e44b7(_0x44d5ec){const _0x4cd864=_0x1a1f79;_0x2ff908(_0x44d5ec);let _0x553e6a=_0x44d5ec[_0x4cd864(0x314)];_0x2dbaad(_0x44d5ec);let {sbox2:_0x193803}=_0x4407fa,_0x140761=[];(!_0x3a2b45||!_0xc98677(_0x44d5ec))&&_0x140761[_0x4cd864(0x1a0)](_0x44d5ec=_0x48a5ec(_0x44d5ec));let _0x2b0075=_0x4293ab(_0x20147b(_0x44d5ec)),_0x36ace8=_0x2b0075['length'],_0x38a69f=_0x38e4f1=>_0x1554ba(_0x193803,_0x38e4f1,_0x38e4f1,_0x38e4f1,_0x38e4f1),_0x26aa71=new Uint32Array(_0x553e6a+0x1c);_0x26aa71[_0x4cd864(0x23f)](_0x2b0075);for(let _0x26fe80=_0x36ace8;_0x26fe80<_0x26aa71[_0x4cd864(0x314)];_0x26fe80++){let _0x372265=_0x26aa71[_0x26fe80-0x1];_0x26fe80%_0x36ace8===0x0?_0x372265=_0x38a69f(_0x1c4cd0(_0x372265))^_0x166870[_0x26fe80/_0x36ace8-0x1]:_0x36ace8>0x6&&_0x26fe80%_0x36ace8===0x4&&(_0x372265=_0x38a69f(_0x372265)),_0x26aa71[_0x26fe80]=_0x26aa71[_0x26fe80-_0x36ace8]^_0x372265;}return _0x78bdbf(..._0x140761),_0x26aa71;}function _0x236697(_0x325802){const _0x3ee0e9=_0x1a1f79;let _0x384c48=_0x3e44b7(_0x325802),_0x1f8ff8=_0x384c48[_0x3ee0e9(0x393)](),_0x22541a=_0x384c48[_0x3ee0e9(0x314)],{sbox2:_0x1198e0}=_0x4407fa,{T0:_0x500b1f,T1:_0x7a8e8e,T2:_0x310cfa,T3:_0x5d951f}=_0x10748a;for(let _0x4f5f19=0x0;_0x4f5f19<_0x22541a;_0x4f5f19+=0x4)for(let _0x343e71=0x0;_0x343e71<0x4;_0x343e71++)_0x1f8ff8[_0x4f5f19+_0x343e71]=_0x384c48[_0x22541a-_0x4f5f19-0x4+_0x343e71];_0x78bdbf(_0x384c48);for(let _0x368b07=0x4;_0x368b07<_0x22541a-0x4;_0x368b07++){let _0x89295f=_0x1f8ff8[_0x368b07],_0x5f535b=_0x1554ba(_0x1198e0,_0x89295f,_0x89295f,_0x89295f,_0x89295f);_0x1f8ff8[_0x368b07]=_0x500b1f[_0x5f535b&0xff]^_0x7a8e8e[_0x5f535b>>>0x8&0xff]^_0x310cfa[_0x5f535b>>>0x10&0xff]^_0x5d951f[_0x5f535b>>>0x18];}return _0x1f8ff8;}function _0x439175(_0x272957,_0x353104,_0x9012be,_0x3a6e0c,_0x1ed452,_0x5785b0){return _0x272957[_0x9012be<<0x8&0xff00|_0x3a6e0c>>>0x8&0xff]^_0x353104[_0x1ed452>>>0x8&0xff00|_0x5785b0>>>0x18&0xff];}function _0x1554ba(_0x4a3b1a,_0x4c9d70,_0x5a8ee5,_0x345fca,_0x3179e4){return _0x4a3b1a[_0x4c9d70&0xff|_0x5a8ee5&0xff00]|_0x4a3b1a[_0x345fca>>>0x10&0xff|_0x3179e4>>>0x10&0xff00]<<0x10;}function _0x322a1e(_0x4e8425,_0x189199,_0xc389e3,_0xcc65b0,_0x312006){const _0x6ae2ea=_0x1a1f79;let {sbox2:_0xaa4fc0,T01:_0xa46306,T23:_0x4a6cb2}=_0x4407fa,_0x7b0398=0x0;_0x189199^=_0x4e8425[_0x7b0398++],_0xc389e3^=_0x4e8425[_0x7b0398++],_0xcc65b0^=_0x4e8425[_0x7b0398++],_0x312006^=_0x4e8425[_0x7b0398++];let _0x1aa28d=_0x4e8425[_0x6ae2ea(0x314)]/0x4-0x2;for(let _0x3303f7=0x0;_0x3303f7<_0x1aa28d;_0x3303f7++){let _0x441aee=_0x4e8425[_0x7b0398++]^_0x439175(_0xa46306,_0x4a6cb2,_0x189199,_0xc389e3,_0xcc65b0,_0x312006),_0x272530=_0x4e8425[_0x7b0398++]^_0x439175(_0xa46306,_0x4a6cb2,_0xc389e3,_0xcc65b0,_0x312006,_0x189199),_0x22433e=_0x4e8425[_0x7b0398++]^_0x439175(_0xa46306,_0x4a6cb2,_0xcc65b0,_0x312006,_0x189199,_0xc389e3),_0x25a145=_0x4e8425[_0x7b0398++]^_0x439175(_0xa46306,_0x4a6cb2,_0x312006,_0x189199,_0xc389e3,_0xcc65b0);_0x189199=_0x441aee,_0xc389e3=_0x272530,_0xcc65b0=_0x22433e,_0x312006=_0x25a145;}return{'s0':_0x4e8425[_0x7b0398++]^_0x1554ba(_0xaa4fc0,_0x189199,_0xc389e3,_0xcc65b0,_0x312006),'s1':_0x4e8425[_0x7b0398++]^_0x1554ba(_0xaa4fc0,_0xc389e3,_0xcc65b0,_0x312006,_0x189199),'s2':_0x4e8425[_0x7b0398++]^_0x1554ba(_0xaa4fc0,_0xcc65b0,_0x312006,_0x189199,_0xc389e3),'s3':_0x4e8425[_0x7b0398++]^_0x1554ba(_0xaa4fc0,_0x312006,_0x189199,_0xc389e3,_0xcc65b0)};}function _0x232815(_0x28be74,_0x293117,_0x389190,_0x358a45,_0x2fca49){const _0x17660a=_0x1a1f79;let {sbox2:_0x11a9db,T01:_0x5ba5d7,T23:_0x6882dd}=_0x10748a,_0x4d1caa=0x0;_0x293117^=_0x28be74[_0x4d1caa++],_0x389190^=_0x28be74[_0x4d1caa++],_0x358a45^=_0x28be74[_0x4d1caa++],_0x2fca49^=_0x28be74[_0x4d1caa++];let _0x1d9535=_0x28be74[_0x17660a(0x314)]/0x4-0x2;for(let _0x2b3109=0x0;_0x2b3109<_0x1d9535;_0x2b3109++){let _0x673c9b=_0x28be74[_0x4d1caa++]^_0x439175(_0x5ba5d7,_0x6882dd,_0x293117,_0x2fca49,_0x358a45,_0x389190),_0x20734d=_0x28be74[_0x4d1caa++]^_0x439175(_0x5ba5d7,_0x6882dd,_0x389190,_0x293117,_0x2fca49,_0x358a45),_0x35fbd3=_0x28be74[_0x4d1caa++]^_0x439175(_0x5ba5d7,_0x6882dd,_0x358a45,_0x389190,_0x293117,_0x2fca49),_0xc2c673=_0x28be74[_0x4d1caa++]^_0x439175(_0x5ba5d7,_0x6882dd,_0x2fca49,_0x358a45,_0x389190,_0x293117);_0x293117=_0x673c9b,_0x389190=_0x20734d,_0x358a45=_0x35fbd3,_0x2fca49=_0xc2c673;}return{'s0':_0x28be74[_0x4d1caa++]^_0x1554ba(_0x11a9db,_0x293117,_0x2fca49,_0x358a45,_0x389190),'s1':_0x28be74[_0x4d1caa++]^_0x1554ba(_0x11a9db,_0x389190,_0x293117,_0x2fca49,_0x358a45),'s2':_0x28be74[_0x4d1caa++]^_0x1554ba(_0x11a9db,_0x358a45,_0x389190,_0x293117,_0x2fca49),'s3':_0x28be74[_0x4d1caa++]^_0x1554ba(_0x11a9db,_0x2fca49,_0x358a45,_0x389190,_0x293117)};}function _0xcfdfde(_0x209533,_0x5eb78a){const _0x19162c=_0x1a1f79;if(_0x2ff908(_0x209533),_0x209533[_0x19162c(0x314)]%0x10!=0x0)throw Error(_0x19162c(0x207));_0x5eb78a!==void 0x0&&(_0xad5ce6(_0x209533[_0x19162c(0x314)],_0x5eb78a),_0x2d1a38(_0x209533,_0x5eb78a));}function _0x1cd99e(_0x115762,_0xf284f,_0x3d83bb){const _0x3fbbfb=_0x1a1f79;_0x2ff908(_0x115762);let _0x1fe1a8=_0x115762[_0x3fbbfb(0x314)],_0x3c0143=_0x1fe1a8%0x10;if(!_0xf284f&&_0x3c0143!==0x0)throw Error(_0x3fbbfb(0x204));if(_0xf284f){let _0x27b3b2=0x10-_0x3c0143;_0x27b3b2||=0x10,_0x1fe1a8+=_0x27b3b2;}return _0x3d83bb!==void 0x0&&(_0xad5ce6(_0x1fe1a8,_0x3d83bb),_0x2d1a38(_0x115762,_0x3d83bb)),_0x1fe1a8;}function _0x2f87e8(_0x21ba29,_0x391188,_0x5b49d7){_0x5b49d7===void 0x0&&(_0x5b49d7=new Uint8Array(_0x391188)),(!_0x3a2b45||!_0xc98677(_0x21ba29))&&(_0x21ba29=_0x48a5ec(_0x21ba29));let _0x478c92=_0x20147b(_0x5b49d7);return{'b':_0x21ba29,'o':_0x478c92,'out':_0x5b49d7};}function _0x59e3b5(_0x18e642,_0x30016e){const _0x2bca4c=_0x1a1f79;if(!_0x30016e)return _0x18e642;let _0x27fcff=_0x18e642['length'];if(_0x27fcff===0x0)throw Error(_0x2bca4c(0x2c0));let _0x278a06=_0x18e642[_0x27fcff-0x1],_0x381354=0x1;_0x381354&=_0x278a06-0x1>>>0x1f^0x1,_0x381354&=0x10-_0x278a06>>>0x1f^0x1;for(let _0x24cd5a=0x0;_0x24cd5a<0x10;_0x24cd5a++){let _0xa0c61e=_0x24cd5a-_0x278a06>>>0x1f,_0x2f4c80=+((_0x18e642[_0x27fcff-0x1-_0x24cd5a]^_0x278a06)===0x0);_0x381354&=_0x2f4c80|_0xa0c61e^0x1;}if(!_0x381354)throw Error(_0x2bca4c(0x1d0));return _0x18e642[_0x2bca4c(0xc9)](0x0,_0x27fcff-_0x278a06);}function _0xc49078(_0x2a66ec){const _0x40bbed=_0x1a1f79;let _0x2feb16=new Uint8Array(0x10),_0x1ca010=_0x20147b(_0x2feb16);_0x2feb16['set'](_0x2a66ec);let _0x256acf=0x10-_0x2a66ec[_0x40bbed(0x314)];for(let _0x3a070a=0x10-_0x256acf;_0x3a070a<0x10;_0x3a070a++)_0x2feb16[_0x3a070a]=_0x256acf;return _0x1ca010;}let _0x361efd=_0x4859bb({'blockSize':0x10,'nonceLength':0x10},function(_0x129078,_0x59cecf,_0x4bedf6={}){const _0x4c02a4=_0x1a1f79;let _0x20c1e4=!_0x4bedf6[_0x4c02a4(0x332)];return{'encrypt'(_0x5122eb,_0x4aa4b2){const _0x3ac960=_0x4c02a4;let _0x5c0e69=_0x1cd99e(_0x5122eb,_0x20c1e4,_0x4aa4b2),_0x4690c3=_0x3e44b7(_0x129078),{b:_0x16116f,o:_0x4a20f7,out:_0x2e3fe0}=_0x2f87e8(_0x5122eb,_0x5c0e69,_0x4aa4b2),_0x37c39f=_0x20147b(_0x16116f);_0x4293ab(_0x37c39f);let _0x504652=_0x59cecf,_0x5ec751=[_0x4690c3];(!_0x3a2b45||!_0xc98677(_0x504652))&&_0x5ec751[_0x3ac960(0x1a0)](_0x504652=_0x48a5ec(_0x504652));let _0x57fd69=_0x20147b(_0x504652);_0x4293ab(_0x57fd69);let _0x8b1c73=_0x57fd69[0x0],_0x569c4f=_0x57fd69[0x1],_0x432ff9=_0x57fd69[0x2],_0x340066=_0x57fd69[0x3],_0x458454=0x0;for(;_0x458454+0x4<=_0x37c39f['length'];)_0x8b1c73^=_0x37c39f[_0x458454+0x0],_0x569c4f^=_0x37c39f[_0x458454+0x1],_0x432ff9^=_0x37c39f[_0x458454+0x2],_0x340066^=_0x37c39f[_0x458454+0x3],{s0:_0x8b1c73,s1:_0x569c4f,s2:_0x432ff9,s3:_0x340066}=_0x322a1e(_0x4690c3,_0x8b1c73,_0x569c4f,_0x432ff9,_0x340066),_0x4a20f7[_0x458454++]=_0x8b1c73,_0x4a20f7[_0x458454++]=_0x569c4f,_0x4a20f7[_0x458454++]=_0x432ff9,_0x4a20f7[_0x458454++]=_0x340066;if(_0x20c1e4){let _0x46fb30=_0xc49078(_0x5122eb['subarray'](_0x458454*0x4));_0x4293ab(_0x46fb30),_0x8b1c73^=_0x46fb30[0x0],_0x569c4f^=_0x46fb30[0x1],_0x432ff9^=_0x46fb30[0x2],_0x340066^=_0x46fb30[0x3],{s0:_0x8b1c73,s1:_0x569c4f,s2:_0x432ff9,s3:_0x340066}=_0x322a1e(_0x4690c3,_0x8b1c73,_0x569c4f,_0x432ff9,_0x340066),_0x4a20f7[_0x458454++]=_0x8b1c73,_0x4a20f7[_0x458454++]=_0x569c4f,_0x4a20f7[_0x458454++]=_0x432ff9,_0x4a20f7[_0x458454++]=_0x340066,_0x78bdbf(_0x46fb30);}return _0x4293ab(_0x4a20f7),_0x78bdbf(..._0x5ec751),_0x16116f!==_0x5122eb&&_0x78bdbf(_0x16116f),_0x2e3fe0;},'decrypt'(_0x22d1f8,_0x55f7c3){const _0x3a6756=_0x4c02a4;_0xcfdfde(_0x22d1f8,_0x55f7c3);let _0x36963a=_0x236697(_0x129078);_0x55f7c3===void 0x0&&(_0x55f7c3=new Uint8Array(_0x22d1f8['length']));let _0xff52d5=_0x59cecf,_0x29e820=[_0x36963a];(!_0x3a2b45||!_0xc98677(_0xff52d5))&&_0x29e820['push'](_0xff52d5=_0x48a5ec(_0xff52d5));let _0x5f02c4=_0x20147b(_0xff52d5);_0x4293ab(_0x5f02c4),(!_0x3a2b45||!_0xc98677(_0x22d1f8))&&_0x29e820[_0x3a6756(0x1a0)](_0x22d1f8=_0x48a5ec(_0x22d1f8));let _0x340163=_0x20147b(_0x22d1f8),_0x25e19c=_0x20147b(_0x55f7c3);_0x4293ab(_0x340163);let _0x20f04f=_0x5f02c4[0x0],_0x12cc2c=_0x5f02c4[0x1],_0x4b3f2a=_0x5f02c4[0x2],_0x42edbe=_0x5f02c4[0x3];for(let _0x4d569e=0x0;_0x4d569e+0x4<=_0x340163[_0x3a6756(0x314)];){let _0x3e75a6=_0x20f04f,_0x592cf8=_0x12cc2c,_0x5e34ef=_0x4b3f2a,_0xc37b3e=_0x42edbe;_0x20f04f=_0x340163[_0x4d569e+0x0],_0x12cc2c=_0x340163[_0x4d569e+0x1],_0x4b3f2a=_0x340163[_0x4d569e+0x2],_0x42edbe=_0x340163[_0x4d569e+0x3];let {s0:_0x4b364b,s1:_0x417be0,s2:_0x1a1d5a,s3:_0x1a9df6}=_0x232815(_0x36963a,_0x20f04f,_0x12cc2c,_0x4b3f2a,_0x42edbe);_0x25e19c[_0x4d569e++]=_0x4b364b^_0x3e75a6,_0x25e19c[_0x4d569e++]=_0x417be0^_0x592cf8,_0x25e19c[_0x4d569e++]=_0x1a1d5a^_0x5e34ef,_0x25e19c[_0x4d569e++]=_0x1a9df6^_0xc37b3e;}return _0x4293ab(_0x25e19c),_0x78bdbf(..._0x29e820),_0x59e3b5(_0x55f7c3,_0x20c1e4);}};});function _0x51243c(_0x2e699b){const _0x500815=_0x1a1f79;let _0x5af22c=atob(_0x2e699b),_0x5b32b3=new Uint8Array(_0x5af22c[_0x500815(0x314)]);for(let _0x4b365c=0x0;_0x4b365c<_0x5af22c[_0x500815(0x314)];_0x4b365c++)_0x5b32b3[_0x4b365c]=_0x5af22c[_0x500815(0x159)](_0x4b365c);return _0x5b32b3;}function _0x2c8ef3(_0x2b38d4){const _0x272793=_0x1a1f79;let _0xff0796='';for(let _0x3a6785=0x0;_0x3a6785<_0x2b38d4[_0x272793(0x314)];_0x3a6785++)_0xff0796+=String[_0x272793(0x426)](_0x2b38d4[_0x3a6785]);return btoa(_0xff0796);}function _0x41f4e4(_0x18b723,_0x3b32a8){let _0x517f78=_0x51243c(_0x3b32a8),_0x5c3dea=_0xedac0(0x10);return _0x2c8ef3(_0xa19cc4(_0x5c3dea,_0x361efd(_0x517f78,_0x5c3dea)['encrypt'](_0x5971c9(_0x18b723))));}function _0x3b17d6(){const _0x13b85c=_0x1a1f79;let _0xf92963=(0x0,_0x139ed3[_0x13b85c(0x37e)])()[_0x13b85c(0x221)];if(typeof window<'u'&&window[_0x13b85c(0x3ce)]!==void 0x0&&_0xf92963){let _0x19d626={'time':Math[_0x13b85c(0x310)](Date['now']()/0x3e8),'domain':location[_0x13b85c(0x20a)]};return _0x41f4e4(JSON[_0x13b85c(0x1b0)](_0x19d626),_0xf92963);}}let _0x417e05=class{constructor(_0x4cfd59){this['_httpService']=_0x4cfd59,this['_initRequestHeader']();}[_0x1a1f79(0x1db)](){const _0x514b2d=_0x1a1f79;this[_0x514b2d(0x395)][_0x514b2d(0x359)]({'interceptor':(_0x3ba181,_0x5b481e)=>{const _0x38f004=_0x514b2d;let _0x19be8f=_0x3b17d6();return _0x19be8f&&_0x3ba181[_0x38f004(0x2db)]['set']('x-univer-host',_0x19be8f),_0x5b481e(_0x3ba181);}});}};_0x417e05=_0x3ef445([_0x3b7f76(0x0,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x1b853b[_0x1a1f79(0xf3)]))],_0x417e05);let _0x3b50e6=class extends _0xfd1b33[_0x1a1f79(0x156)]{constructor(_0x4991c5,_0xbcb823,_0x28106a){const _0x50e00c=_0x1a1f79;super(),this[_0x50e00c(0x3c0)]=_0x4991c5,this[_0x50e00c(0x231)]=_0xbcb823,this[_0x50e00c(0x27a)]=_0x28106a,_0x3d9afb(this,_0x50e00c(0x43f),new _0x29156e[(_0x50e00c(0x3ab))](null)),_0x3d9afb(this,'_unitLoaded$',new _0x29156e[(_0x50e00c(0x2f5))]()),_0x3d9afb(this,_0x50e00c(0x405),this['_unitInfo$']['asObservable']()),_0x3d9afb(this,'unitLoaded$',this[_0x50e00c(0x407)][_0x50e00c(0xc5)]());}['dispose'](){const _0x2193c1=_0x1a1f79;super['dispose'](),this[_0x2193c1(0x407)][_0x2193c1(0x1a9)](),this[_0x2193c1(0x43f)][_0x2193c1(0x1a9)]();}async[_0x1a1f79(0x23b)](_0x1c00a9,_0x4507f6,_0x2d47f6,_0x46f1e6){const _0x59dbc2=_0x1a1f79;this[_0x59dbc2(0x43f)][_0x59dbc2(0x34e)]({'unitId':_0x1c00a9,'type':_0x4507f6,'subUnitId':_0x46f1e6});let _0x44efe7=null;switch(_0x4507f6){case _0xfd1b33[_0x59dbc2(0x34d)][_0x59dbc2(0x1ab)]:_0x44efe7=await this['_snapshotService'][_0x59dbc2(0x1d4)](_0x1c00a9,_0x2d47f6,void 0x0,{'initialSubUnitId':_0x46f1e6});break;case _0xfd1b33[_0x59dbc2(0x34d)][_0x59dbc2(0x412)]:_0x44efe7=await this[_0x59dbc2(0x231)][_0x59dbc2(0x2b9)](_0x1c00a9,_0x2d47f6);break;case _0xfd1b33[_0x59dbc2(0x34d)][_0x59dbc2(0xe7)]:_0x44efe7=await this[_0x59dbc2(0x231)]['loadSlide'](_0x1c00a9,_0x2d47f6);break;case _0xfd1b33[_0x59dbc2(0x34d)]['UNIVER_BOARD']:_0x44efe7=await this[_0x59dbc2(0x231)][_0x59dbc2(0x37d)](_0x1c00a9,_0x2d47f6);break;case _0xfd1b33[_0x59dbc2(0x34d)]['UNIVER_BASE']:_0x44efe7=await this['_snapshotService'][_0x59dbc2(0x36b)](_0x1c00a9,_0x2d47f6);break;case _0xfd1b33['UniverInstanceType'][_0x59dbc2(0x186)]:_0x44efe7=await this[_0x59dbc2(0x231)][_0x59dbc2(0x1bc)](_0x1c00a9,_0x2d47f6);break;default:this[_0x59dbc2(0x3c0)][_0x59dbc2(0x2f1)]('[DataLoaderService]',_0x59dbc2(0x1ef));}return _0x44efe7&&this[_0x59dbc2(0x407)][_0x59dbc2(0x34e)](_0x44efe7),_0x44efe7;}async[_0x1a1f79(0xe9)](_0x2f8a11,_0x2058ac,_0x58e31a){const _0x568b7c=_0x1a1f79;var _0x2f6ac8;this[_0x568b7c(0x43f)][_0x568b7c(0x34e)]({'unitId':_0x2f8a11,'type':_0x2058ac,'subUnitId':_0x58e31a});let _0x1b4776=0x0,_0x15fcf7=await((_0x2f6ac8=this[_0x568b7c(0x27a)])==null?void 0x0:_0x2f6ac8[_0x568b7c(0x35c)](_0x2f8a11));return _0x15fcf7&&(_0x15fcf7['awaitingChangeset']||_0x15fcf7['mutations'][_0x568b7c(0x314)]!==0x0)&&(_0x1b4776=_0x15fcf7['rev']),_0x1b4776===0x0&&this['_logService'][_0x568b7c(0x10b)](_0x568b7c(0x28f),_0x568b7c(0x36d)),this[_0x568b7c(0x23b)](_0x2f8a11,_0x2058ac,_0x1b4776,_0x58e31a);}};_0x3b50e6=_0x3ef445([_0x3b7f76(0x0,_0xfd1b33['ILogService']),_0x3b7f76(0x1,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x22b414[_0x1a1f79(0x3ff)])),_0x3b7f76(0x2,(0x0,_0xfd1b33[_0x1a1f79(0x143)])(_0x1237f1))],_0x3b50e6);let _0x35636c=class{constructor(_0xe2c0db,_0x4bbeb8,_0x4bbf00){const _0x41cb11=_0x1a1f79;this[_0x41cb11(0x395)]=_0xe2c0db,this[_0x41cb11(0x347)]=_0x4bbeb8,this[_0x41cb11(0x1f2)]=_0x4bbf00,_0x3d9afb(this,_0x41cb11(0x3ec),0x0),_0x3d9afb(this,_0x41cb11(0x41c),new _0x29156e[(_0x41cb11(0x2f5))]()),_0x3d9afb(this,_0x41cb11(0xf5),this[_0x41cb11(0x41c)]),_0x3d9afb(this,_0x41cb11(0x3fc),new Map());}[_0x1a1f79(0xc8)](_0x20aae0){const _0x31de48=_0x1a1f79;this[_0x31de48(0x3ec)]=_0x20aae0,this['_change$'][_0x31de48(0x34e)](_0x20aae0);}[_0x1a1f79(0x1fe)](_0x53f027,_0x216c91){const _0x1e7093=_0x1a1f79;if(_0x216c91===_0xfd1b33[_0x1e7093(0x41e)][_0x1e7093(0x1fa)]){let _0x297b80=new Image();return _0x297b80['src']=_0x53f027,_0x297b80;}return this[_0x1e7093(0x3fc)][_0x1e7093(0x30d)](_0x53f027);}[_0x1a1f79(0x22a)](_0x5135be,_0x46d954,_0x19769d){const _0x29668b=_0x1a1f79;_0x46d954!==_0xfd1b33[_0x29668b(0x41e)][_0x29668b(0x1fa)]&&_0x19769d!=null&&this[_0x29668b(0x3fc)]['set'](_0x5135be,_0x19769d);}async[_0x1a1f79(0x3fa)](_0x5b7152){const _0x31fbc5=_0x1a1f79;try{let _0x1446b7=this[_0x31fbc5(0x2ab)](this[_0x31fbc5(0x3a6)](),''+_0x5b7152),_0x39fc6a=(await this[_0x31fbc5(0x395)]['get'](_0x1446b7))[_0x31fbc5(0xf4)];if(_0x39fc6a['error']&&_0x39fc6a[_0x31fbc5(0x2f1)]['code']===_0x3c00fa[_0x31fbc5(0x37c)]['OK']){let _0x2303f1=(0x0,_0xfd1b33[_0x31fbc5(0x294)])(_0x39fc6a['url'],this[_0x31fbc5(0x3d5)]());return Promise['resolve'](_0x2303f1);}return Promise[_0x31fbc5(0x11f)](_0x39fc6a[_0x31fbc5(0x2f1)]);}catch(_0x18e5f0){return Promise[_0x31fbc5(0x11f)](_0x18e5f0);}}async[_0x1a1f79(0x26f)](_0x5c6325){const _0x339530=_0x1a1f79;let _0x55c4eb='';if(!_0xd2cf72[_0x339530(0xe3)][_0x339530(0x3b4)](_0x5c6325['type']))return this[_0x339530(0x343)](),Promise[_0x339530(0x11f)](Error(_0xfd1b33[_0x339530(0x240)]['ERROR_IMAGE_TYPE']));if(_0x5c6325[_0x339530(0x349)]>(0x0,_0xd2cf72[_0x339530(0x183)])())return this['_decreaseWaiting'](),Promise[_0x339530(0x11f)](Error(_0xfd1b33[_0x339530(0x240)][_0x339530(0x3d4)]));try{let _0x1f6e58=new FormData();_0x1f6e58[_0x339530(0x399)](_0x339530(0x330),_0x5c6325);let _0x2fe6dd=this['_univerInstanceService'][_0x339530(0x299)](),_0x55933c=_0x2fe6dd==null?void 0x0:_0x2fe6dd[_0x339530(0x26a)]();if(!_0x55933c)throw Error(_0x339530(0x3b5));let _0x60bc73=this[_0x339530(0x313)]()+_0x339530(0x3b0)+_0x5c6325['size'][_0x339530(0x14a)]()+_0x339530(0x2f9)+_0x3c00fa['FileSource'][_0x339530(0xd6)]+_0x339530(0x213)+encodeURIComponent(_0x55933c),_0x3e997b={'body':_0x1f6e58},_0x184432=(await this[_0x339530(0x395)][_0x339530(0x2fd)](_0x60bc73,_0x3e997b))[_0x339530(0xf4)];if(typeof _0x184432[_0x339530(0x42f)]!=_0x339530(0x3d2))return this['_decreaseWaiting'](),Promise[_0x339530(0x11f)](Error(_0xfd1b33[_0x339530(0x240)]['ERROR_IMAGE']));_0x55c4eb=_0x184432['FileId'];}catch{return this[_0x339530(0x343)](),Promise['reject'](Error(_0xfd1b33[_0x339530(0x240)][_0x339530(0x2a4)]));}return new Promise((_0x246406,_0x35e13c)=>{const _0x35f3a0=_0x339530;let _0x5b0083=new FileReader();_0x5b0083[_0x35f3a0(0x43a)](_0x5c6325),_0x5b0083['onload']=_0x9d3cc8=>{const _0x29b569=_0x35f3a0;var _0x3133e8;let _0x5cad43=(_0x3133e8=_0x9d3cc8['target'])==null?void 0x0:_0x3133e8[_0x29b569(0x268)];if(_0x5cad43==null){this[_0x29b569(0x343)](),_0x35e13c(Error(_0xfd1b33[_0x29b569(0x240)][_0x29b569(0x2a4)]));return;}_0x246406({'imageId':(0x0,_0xfd1b33['generateRandomId'])(0x6),'imageSourceType':_0xfd1b33[_0x29b569(0x41e)][_0x29b569(0x28e)],'source':_0x55c4eb,'base64Cache':_0x5cad43,'status':_0xfd1b33[_0x29b569(0x240)][_0x29b569(0x1d9)]}),this[_0x29b569(0x343)]();};});}['_getUploadFileURL'](){const _0x8603f7=_0x1a1f79;let _0x2887e0=this[_0x8603f7(0x347)][_0x8603f7(0x352)](_0x46f3f1);return(_0x2887e0==null?void 0x0:_0x2887e0[_0x8603f7(0xd3)])??_0x8603f7(0x125);}[_0x1a1f79(0x3a6)](){const _0x5c3055=_0x1a1f79;let _0x2dfe1e=this['_configService'][_0x5c3055(0x352)](_0x46f3f1);return(_0x2dfe1e==null?void 0x0:_0x2dfe1e[_0x5c3055(0x325)])??_0x5c3055(0x433);}['_getDownloadEndpointURL'](){const _0x43dd66=_0x1a1f79;let _0xea524b=this['_configService'][_0x43dd66(0x352)](_0x46f3f1);return(_0xea524b==null?void 0x0:_0xea524b['downloadEndpointUrl'])??location[_0x43dd66(0xf8)];}['_replaceFileID'](_0x53d2f1,_0x57d59b){return _0x53d2f1['replace']('{fileID}',_0x57d59b);}[_0x1a1f79(0x343)](){const _0x108d13=_0x1a1f79;--this['_waitCount'],this['_change$']['next'](this[_0x108d13(0x3ec)]);}};_0x35636c=_0x3ef445([_0x3b7f76(0x0,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x1b853b['HTTPService'])),_0x3b7f76(0x1,_0xfd1b33[_0x1a1f79(0x1ee)]),_0x3b7f76(0x2,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x439)]))],_0x35636c);let _0x23b9cd=class{constructor(_0x46029e,_0x25e498){const _0x24192f=_0x1a1f79;this[_0x24192f(0x347)]=_0x46029e,this[_0x24192f(0x2b8)]=_0x25e498;}[_0x1a1f79(0x362)](){const _0x4541c2=_0x1a1f79;let _0x79324c=this[_0x4541c2(0x347)][_0x4541c2(0x352)](_0x46f3f1);return(_0x79324c==null?void 0x0:_0x79324c['authzUrl'])??'/universer-api/authz';}async['list'](_0x545e0e){const _0x4d8d47=_0x1a1f79;let _0x306e8e=this[_0x4d8d47(0x362)]()+_0x4d8d47(0x2fb);return{'list':[{'title':_0x4d8d47(0x3aa),'mentions':(await this[_0x4d8d47(0x2b8)][_0x4d8d47(0x30d)](_0x306e8e,{'params':{'objectID':_0x545e0e[_0x4d8d47(0x3c1)],'unitID':_0x545e0e[_0x4d8d47(0x3c1)]}}))[_0x4d8d47(0xf4)][_0x4d8d47(0x15b)][_0x4d8d47(0x178)](_0x5c6605=>({'objectId':_0x5c6605['id'],'name':_0x5c6605[_0x4d8d47(0x2e0)][_0x4d8d47(0x15d)],'metadata':{'icon':_0x5c6605[_0x4d8d47(0x2e0)]['avatar']},'label':_0x5c6605[_0x4d8d47(0x2e0)][_0x4d8d47(0x15d)],'objectType':_0xfd1b33[_0x4d8d47(0x1b8)][_0x4d8d47(0x2a2)]})),'metadata':{},'type':_0xfd1b33[_0x4d8d47(0x1b8)][_0x4d8d47(0x2a2)]}]};}};_0x23b9cd=_0x3ef445([_0x3b7f76(0x0,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x1ee)])),_0x3b7f76(0x1,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x1b853b['HTTPService']))],_0x23b9cd);let _0x5b23ae=class extends _0xfd1b33[_0x1a1f79(0x156)]{constructor(_0x184501,_0x4c7527,_0x3da7cb,_0x50f573,_0x1d4bc6,_0xc58e05){const _0x4259ec=_0x1a1f79;super(),this['_injector']=_0x184501,this[_0x4259ec(0x1f2)]=_0x4c7527,this[_0x4259ec(0x106)]=_0x3da7cb,this[_0x4259ec(0x258)]=_0x50f573,this[_0x4259ec(0x140)]=_0x1d4bc6,this[_0x4259ec(0x108)]=_0xc58e05,_0x3d9afb(this,'_closedUnits',new Set()),this['disposeWithMe'](()=>this['_closedUnits'][_0x4259ec(0x109)]()),this['disposeWithMe'](_0x111967(this['_univerInstanceService'])[_0x4259ec(0x441)](({unitId:_0x4e92be})=>this[_0x4259ec(0x41f)]['delete'](_0x4e92be))),this['_initUnitPermissionChange'](),this[_0x4259ec(0xd0)](),[_0xfd1b33[_0x4259ec(0x34d)][_0x4259ec(0x412)],_0xfd1b33['UniverInstanceType'][_0x4259ec(0xe7)],_0xfd1b33[_0x4259ec(0x34d)][_0x4259ec(0x16b)],_0xfd1b33['UniverInstanceType'][_0x4259ec(0x2d5)]]['forEach'](_0x1d0e38=>{const _0x4f466c=_0x4259ec;this[_0x4f466c(0x2df)](this['_univerInstanceService'][_0x4f466c(0x191)](_0x1d0e38)[_0x4f466c(0x441)](_0xe0ddf4=>{const _0xe6085e=_0x4f466c;this[_0xe6085e(0x41f)][_0xe6085e(0x400)](_0xe0ddf4[_0xe6085e(0x26a)]()),this[_0xe6085e(0x144)][_0xe6085e(0x30d)](_0xfd1b33[_0xe6085e(0x201)])[_0xe6085e(0x174)](_0xe0ddf4[_0xe6085e(0x26a)]());}));});}[_0x1a1f79(0xd0)](){const _0x102b8e=_0x1a1f79;let _0x267a2b=async(_0x1b4d69,_0x8760a5)=>{const _0x458b2e=_0x31da;let _0xb7d476=await this['_collaborationSessionService'][_0x458b2e(0x1d3)](_0x1b4d69);this[_0x458b2e(0x120)]||this[_0x458b2e(0x41f)][_0x458b2e(0x281)](_0x1b4d69)||!this['_univerInstanceService'][_0x458b2e(0x28a)](_0x1b4d69)||_0xb7d476['event$'][_0x458b2e(0x13a)]((0x0,_0x324d20[_0x458b2e(0x41d)])(_0xd2a6d3=>_0xd2a6d3[_0x458b2e(0x275)]===_0x22b414['CollaborationEvent'][_0x458b2e(0x3e9)]),(0x0,_0x324d20[_0x458b2e(0x3c8)])((0x0,_0x29156e['merge'])(this[_0x458b2e(0x1fc)],this[_0x458b2e(0x1f2)][_0x458b2e(0x1ce)][_0x458b2e(0x13a)]((0x0,_0x324d20['filter'])(_0x16babf=>_0x16babf[_0x458b2e(0x26a)]()===_0x1b4d69)))))[_0x458b2e(0x441)](_0x4d2b84=>{const _0x4c54ac=_0x458b2e;let {reason:_0xba4212}=_0x4d2b84['data'];this['_collaborationUIEventService'][_0x4c54ac(0x29c)]({'id':_0x4c54ac(0x2c9),'data':_0xba4212}),this['_closedUnits'][_0x4c54ac(0x400)](_0x1b4d69),this[_0x4c54ac(0x144)][_0x4c54ac(0x30d)](_0xfd1b33['ObjectPermissionService'])[_0x4c54ac(0x174)](_0x1b4d69);let _0x58d2b2=_0x43f3d9(_0x8760a5);_0x58d2b2!=null&&this['_updateUnitPermissionPoint'](_0x1b4d69,_0x58d2b2,_0x3c00fa['UnitAction']['Edit'],!0x1),this[_0x4c54ac(0x140)][_0x4c54ac(0x10a)](_0x1b4d69);});};_0x111967(this[_0x102b8e(0x1f2)])['pipe']((0x0,_0x324d20[_0x102b8e(0x41d)])(({unitId:_0x271b23})=>!(0x0,_0xfd1b33[_0x102b8e(0x2ad)])(_0x271b23)),(0x0,_0x324d20[_0x102b8e(0x3c8)])(this[_0x102b8e(0x1fc)]))[_0x102b8e(0x441)](({type:_0x4f31b8,unitId:_0x15c14c})=>{const _0x111a87=_0x102b8e;_0x267a2b(_0x15c14c,_0x4f31b8)[_0x111a87(0x2d8)](_0x2cf950=>this[_0x111a87(0x144)][_0x111a87(0x30d)](_0xfd1b33['ILogService'])[_0x111a87(0x2f1)](_0x2cf950));});}[_0x1a1f79(0x10f)](){const _0x563ed5=_0x1a1f79;let _0x3551c7=async(_0x592eb7,_0x437231)=>{const _0x52a2e8=_0x31da;let _0x3e54f1=await this[_0x52a2e8(0x140)][_0x52a2e8(0x1d3)](_0x592eb7);if(!(this[_0x52a2e8(0x120)]||this[_0x52a2e8(0x41f)][_0x52a2e8(0x281)](_0x592eb7)||!this[_0x52a2e8(0x1f2)][_0x52a2e8(0x28a)](_0x592eb7))){if(_0x437231===_0xfd1b33[_0x52a2e8(0x34d)]['UNIVER_SHEET']){let _0x165bd3=this[_0x52a2e8(0x144)]['get'](_0x23a42e[_0x52a2e8(0x252)]);await _0x165bd3[_0x52a2e8(0x116)](_0x592eb7),_0x3e54f1[_0x52a2e8(0x237)][_0x52a2e8(0x13a)]((0x0,_0x324d20['filter'])(_0x366343=>_0x366343[_0x52a2e8(0x275)]===_0x22b414['CollaborationEvent'][_0x52a2e8(0x3f2)]),(0x0,_0x324d20[_0x52a2e8(0x3c8)])((0x0,_0x29156e[_0x52a2e8(0x3bb)])(this[_0x52a2e8(0x1fc)],_0x3e54f1[_0x52a2e8(0x237)]['pipe']((0x0,_0x324d20[_0x52a2e8(0x41d)])(_0x1b0238=>_0x1b0238[_0x52a2e8(0x275)]===_0x22b414[_0x52a2e8(0x32a)]['SHOULD_CLOSE_CONN'])),this['_univerInstanceService']['unitDisposed$'][_0x52a2e8(0x13a)]((0x0,_0x324d20[_0x52a2e8(0x41d)])(_0x2fc616=>_0x2fc616['getUnitId']()===_0x592eb7)))))[_0x52a2e8(0x441)](_0x233b78=>{const _0x5ecbdf=_0x52a2e8;let {objectId:_0x32cfca}=_0x233b78['data'];_0x32cfca===_0x592eb7?_0x165bd3[_0x5ecbdf(0x116)](_0x592eb7):_0x165bd3[_0x5ecbdf(0x2ed)](_0x592eb7,_0x32cfca);});return;}_0x3e54f1['event$']['pipe']((0x0,_0x324d20[_0x52a2e8(0x41d)])(_0x22cd70=>_0x22cd70['eventID']===_0x22b414[_0x52a2e8(0x32a)][_0x52a2e8(0x3f2)]),(0x0,_0x324d20[_0x52a2e8(0x3c8)])((0x0,_0x29156e['merge'])(this[_0x52a2e8(0x1fc)],_0x3e54f1[_0x52a2e8(0x237)][_0x52a2e8(0x13a)]((0x0,_0x324d20[_0x52a2e8(0x41d)])(_0x8561a6=>_0x8561a6['eventID']===_0x22b414[_0x52a2e8(0x32a)][_0x52a2e8(0x3e9)])),this[_0x52a2e8(0x1f2)][_0x52a2e8(0x1ce)][_0x52a2e8(0x13a)]((0x0,_0x324d20[_0x52a2e8(0x41d)])(_0x260a06=>_0x260a06[_0x52a2e8(0x26a)]()===_0x592eb7)))))[_0x52a2e8(0x441)](()=>{const _0x5ca569=_0x52a2e8;this['_refreshUnitPermission'](_0x592eb7,_0x437231)[_0x5ca569(0x2d8)](_0x22cd86=>this[_0x5ca569(0x144)]['get'](_0xfd1b33[_0x5ca569(0x336)])[_0x5ca569(0x2f1)](_0x22cd86));}),await this['_refreshUnitPermission'](_0x592eb7,_0x437231);}};_0x111967(this[_0x563ed5(0x1f2)])[_0x563ed5(0x13a)]((0x0,_0x324d20[_0x563ed5(0x41d)])(({unitId:_0x17e204})=>!(0x0,_0xfd1b33['isInternalEditorID'])(_0x17e204)),(0x0,_0x324d20[_0x563ed5(0x3c8)])(this[_0x563ed5(0x1fc)]))[_0x563ed5(0x441)](({type:_0x23dbcc,unitId:_0x53a3c1})=>{const _0x29eec6=_0x563ed5;_0x3551c7(_0x53a3c1,_0x23dbcc)[_0x29eec6(0x2d8)](_0x4bb4b3=>this[_0x29eec6(0x144)][_0x29eec6(0x30d)](_0xfd1b33[_0x29eec6(0x336)])[_0x29eec6(0x2f1)](_0x4bb4b3));});}async[_0x1a1f79(0x19b)](_0x5ae44c,_0x7b71f6){const _0x4aeacb=_0x1a1f79;let _0x3b8406=_0x43f3d9(_0x7b71f6);if(_0x3b8406==null)return;let _0x1df7cf=this[_0x4aeacb(0x144)][_0x4aeacb(0x30d)](_0xfd1b33[_0x4aeacb(0x201)]);if(_0x1df7cf[_0x4aeacb(0x14c)]({'unitId':_0x5ae44c,'objectId':_0x5ae44c,'objectType':_0x3b8406})){await _0x1df7cf['refreshUnit'](_0x5ae44c);return;}let _0x1d6c15=this[_0x4aeacb(0x38f)](_0x5ae44c,_0x3b8406);if(!_0x1d6c15[_0x4aeacb(0x314)])return;let _0x9b7e30=await this[_0x4aeacb(0x258)][_0x4aeacb(0x161)]({'objectID':_0x5ae44c,'objectType':_0x3b8406,'unitID':_0x5ae44c,'actions':_0x1d6c15[_0x4aeacb(0x178)](({action:_0x11b814})=>_0x11b814)});this[_0x4aeacb(0x120)]||this[_0x4aeacb(0x41f)][_0x4aeacb(0x281)](_0x5ae44c)||!this[_0x4aeacb(0x1f2)][_0x4aeacb(0x28a)](_0x5ae44c)||_0x9b7e30[_0x4aeacb(0x18c)](_0x4cc9e9=>{const _0x76b83=_0x4aeacb;let _0x536140=_0x4cc9e9['action'],_0x35ef31=_0x4cc9e9['allowed'];_0x536140!=null&&_0x35ef31!=null&&_0x1d6c15[_0x76b83(0x41d)](_0x20ea96=>_0x20ea96[_0x76b83(0x42d)]===_0x536140)['forEach'](_0xd55283=>this['_permissionService']['updatePermissionPoint'](_0xd55283['id'],_0x35ef31));});}[_0x1a1f79(0x38f)](_0x268a21,_0x34b12d){let _0x3ac1ff=[];return this['_permissionService']['getAllPermissionPoint']()['forEach']((_0xfa62,_0x3d6c03)=>{const _0x1e41ab=_0x31da;_0xfa62[_0x1e41ab(0x441)](_0x513b0b=>{const _0x298add=_0x1e41ab;_0x513b0b[_0x298add(0x39b)]===_0x34b12d&&_0x298add(0x3c1)in _0x513b0b&&_0x513b0b[_0x298add(0x3c1)]===_0x268a21&&(!(_0x298add(0x302)in _0x513b0b)||_0x513b0b[_0x298add(0x302)]===_0x268a21)&&_0x3ac1ff[_0x298add(0x1a0)]({'id':_0x3d6c03,'action':_0x513b0b[_0x298add(0x164)]});})[_0x1e41ab(0x3b8)]();}),_0x3ac1ff;}[_0x1a1f79(0x440)](_0x4e0233,_0x1aaa10,_0x562b5c,_0x226be8){const _0x547698=_0x1a1f79;this[_0x547698(0x106)][_0x547698(0x333)]()[_0x547698(0x18c)]((_0x16cb70,_0x1e6212)=>{const _0xef1a4a=_0x547698;let _0x4b2964=!0x1;_0x16cb70[_0xef1a4a(0x441)](_0x270b7b=>{const _0x47aa85=_0xef1a4a;_0x4b2964=_0x270b7b[_0x47aa85(0x39b)]===_0x1aaa10&&_0x270b7b['subType']===_0x562b5c&&_0x47aa85(0x3c1)in _0x270b7b&&_0x270b7b[_0x47aa85(0x3c1)]===_0x4e0233&&(!(_0x47aa85(0x302)in _0x270b7b)||_0x270b7b[_0x47aa85(0x302)]===_0x4e0233);})['unsubscribe'](),_0x4b2964&&this[_0xef1a4a(0x106)][_0xef1a4a(0x33c)](_0x1e6212,_0x226be8);});}};_0x5b23ae=_0x3ef445([_0x3b7f76(0x0,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33[_0x1a1f79(0x3d8)])),_0x3b7f76(0x1,_0xfd1b33['IUniverInstanceService']),_0x3b7f76(0x2,_0xfd1b33[_0x1a1f79(0xc7)]),_0x3b7f76(0x3,_0xfd1b33[_0x1a1f79(0x2e2)]),_0x3b7f76(0x4,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x44e620)),_0x3b7f76(0x5,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x2a8347))],_0x5b23ae);function _0x111967(_0x1da12d){const _0x3073a4=_0x1a1f79;return(0x0,_0x29156e[_0x3073a4(0x3bb)])(...[_0xfd1b33['UniverInstanceType'][_0x3073a4(0x1ab)],_0xfd1b33[_0x3073a4(0x34d)]['UNIVER_DOC'],_0xfd1b33[_0x3073a4(0x34d)][_0x3073a4(0xe7)],_0xfd1b33[_0x3073a4(0x34d)][_0x3073a4(0x2d5)],_0xfd1b33[_0x3073a4(0x34d)]['UNIVER_BASE']][_0x3073a4(0x178)](_0x2b45c8=>_0x1da12d[_0x3073a4(0x290)](_0x2b45c8)[_0x3073a4(0x13a)]((0x0,_0x324d20[_0x3073a4(0x178)])(_0x121d34=>({'type':_0x2b45c8,'unitId':_0x121d34[_0x3073a4(0x1d2)][_0x3073a4(0x26a)]()})))));}function _0x43f3d9(_0x458689){const _0x1b0955=_0x1a1f79;switch(_0x458689){case _0xfd1b33[_0x1b0955(0x34d)][_0x1b0955(0x1ab)]:return _0x3c00fa[_0x1b0955(0x3d9)]['Workbook'];case _0xfd1b33[_0x1b0955(0x34d)][_0x1b0955(0x412)]:return _0x3c00fa['UnitObject'][_0x1b0955(0xd9)];case _0xfd1b33['UniverInstanceType'][_0x1b0955(0xe7)]:return _0x3c00fa[_0x1b0955(0x3d9)]['Slide'];case _0xfd1b33[_0x1b0955(0x34d)][_0x1b0955(0x2d5)]:return _0x3c00fa[_0x1b0955(0x3d9)]['Board'];case _0xfd1b33[_0x1b0955(0x34d)]['UNIVER_BASE']:return _0x3c00fa[_0x1b0955(0x3d9)][_0x1b0955(0x250)];default:return;}}let _0x55548b=class{constructor(_0xc5e52d,_0x2f644a){const _0x120438=_0x1a1f79;this[_0x120438(0x347)]=_0xc5e52d,this[_0x120438(0x395)]=_0x2f644a;}async['getUnitOnRev'](_0x13d0f1,_0x511ee8){const _0x182d83=_0x1a1f79;var _0x4df052;let {unitID:_0x476238,type:_0x147aae,revision:_0x1355f7=0x0}=_0x511ee8,_0x172b5f=this[_0x182d83(0x369)]()+'/'+_0x147aae+_0x182d83(0x1de)+_0x476238+_0x182d83(0x434)+_0x1355f7,_0x417f82=(await this[_0x182d83(0x395)][_0x182d83(0x30d)](_0x172b5f))[_0x182d83(0xf4)],_0x4d60ae=(_0x4df052=_0x417f82['snapshot'])==null?void 0x0:_0x4df052[_0x182d83(0x318)];if(_0x4d60ae){let _0x415afb=_0x4d60ae==null?void 0x0:_0x4d60ae[_0x182d83(0x215)];_0x4d60ae[_0x182d83(0x215)]=_0x22b414['textEncoder'][_0x182d83(0x1c2)]((0x0,_0x22b414['b64DecodeUnicode'])(_0x415afb)),Object['entries'](_0x4d60ae['sheets'])['forEach'](([,_0x321a70])=>{const _0x1d1fc1=_0x182d83;let _0xb98c0a=_0x321a70['originalMeta'];_0x321a70[_0x1d1fc1(0x215)]=_0x22b414[_0x1d1fc1(0x3c6)]['encode']((0x0,_0x22b414[_0x1d1fc1(0x19a)])(_0xb98c0a));});}return _0x417f82;}async[_0x1a1f79(0x2f3)](_0x480163,_0x5795e8){const _0x5247f4=_0x1a1f79;let {unitID:_0x1b9099,type:_0x3ced98,blockID:_0x46b0e5}=_0x5795e8,_0x3bffc0=this[_0x5247f4(0x27f)]()+'/'+_0x3ced98+'/unit/'+_0x1b9099+_0x5247f4(0x1cc)+_0x46b0e5;return(await this[_0x5247f4(0x395)][_0x5247f4(0x30d)](_0x3bffc0))['body'];}async[_0x1a1f79(0x242)](_0x2bdbf8,_0xb55d80){const _0x5e88a4=_0x1a1f79;let {unitID:_0x35f8a8,type:_0xdae52f,blockID:_0x2426ba}=_0xb55d80,_0x432c90=this[_0x5e88a4(0x27f)]()+_0x5e88a4(0x1cc)+_0xdae52f+_0x5e88a4(0x1de)+_0x35f8a8+'/block/'+_0x2426ba;return(await this[_0x5e88a4(0x395)][_0x5e88a4(0x30d)](_0x432c90))[_0x5e88a4(0xf4)];}async[_0x1a1f79(0x424)](_0x374ac6,_0x2aa5ea){const _0x6c9085=_0x1a1f79;let {unitID:_0x5002f6,type:_0x6ab81,from:_0x534cfe,to:_0x28f479}=_0x2aa5ea,_0xf85fa8=this[_0x6c9085(0x27f)]()+'/'+_0x6ab81+'/unit/'+_0x5002f6+'/fetchmissing?from='+_0x534cfe+_0x6c9085(0x20c)+_0x28f479;return(await this[_0x6c9085(0x395)]['get'](_0xf85fa8))[_0x6c9085(0xf4)];}['getSnapshotAPIPath'](){const _0x4e38e7=_0x1a1f79;return this[_0x4e38e7(0x347)]['getConfig']('SNAPSHOT_URL_KEY')??this[_0x4e38e7(0x27f)]();}[_0x1a1f79(0x27f)](){const _0x5a52cd=_0x1a1f79;let _0x3b4b1a=this[_0x5a52cd(0x347)]['getConfig'](_0x46f3f1);return(_0x3b4b1a==null?void 0x0:_0x3b4b1a[_0x5a52cd(0x100)])??'/universer-api/snapshot';}async[_0x1a1f79(0x244)](_0x25cddb,_0x18a7c1){const _0x1ce9fc=_0x1a1f79;let _0x2c3053=_0x1ce9fc(0x3bc)+_0x18a7c1[_0x1ce9fc(0x39b)]+_0x1ce9fc(0x1de)+_0x18a7c1[_0x1ce9fc(0x239)]+_0x1ce9fc(0xea);return(await this[_0x1ce9fc(0x395)]['get'](_0x2c3053,{'params':{'resourceId':JSON['stringify'](_0x18a7c1[_0x1ce9fc(0x345)])}}))[_0x1ce9fc(0xf4)];}[_0x1a1f79(0x341)](){const _0x3823d1=_0x1a1f79;throw Error(_0x3823d1(0x2ea));}[_0x1a1f79(0x209)](){const _0x5a94d9=_0x1a1f79;throw Error(_0x5a94d9(0x2ea));}[_0x1a1f79(0xdd)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){const _0xecb038=_0x1a1f79;throw Error(_0xecb038(0x2ea));}['copyFileMeta'](){const _0x5ee3ff=_0x1a1f79;throw Error(_0x5ee3ff(0x2ea));}[_0x1a1f79(0x3c4)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0x55548b=_0x3ef445([_0x3b7f76(0x0,_0xfd1b33['IConfigService']),_0x3b7f76(0x1,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0x1b853b['HTTPService']))],_0x55548b);let _0x41a133=class extends _0xfd1b33[_0x1a1f79(0x1a1)]{constructor(_0x1c8b7f,_0x528dee,_0x59dda9,_0x65236f,_0x1f7fce,_0x1c81de){const _0x25ff00=_0x1a1f79;super(_0x1c8b7f,_0x528dee,_0x59dda9,_0x65236f),this[_0x25ff00(0x30b)]=_0x1f7fce,this['_logService']=_0x1c81de;}['transformUndoRedo'](_0x1a0652,_0x1a1095){const _0x571f95=_0x1a1f79;let _0x4dc4d6=this['_getUndoStack'](_0x1a0652);if(_0x4dc4d6)try{let _0x4cf2ff=this[_0x571f95(0x2d4)](_0x4dc4d6,_0x1a1095);this['_substituteUndoStack'](_0x1a0652,_0x4cf2ff);}catch(_0x4d1b92){this['_logService']['error'](_0x571f95(0x276),_0x4d1b92),this[_0x571f95(0x27c)](_0x1a0652);}let _0x26f34a=this[_0x571f95(0x2f2)](_0x1a0652);if(_0x26f34a)try{let _0x5d1d15=this[_0x571f95(0x2d4)](_0x26f34a,_0x1a1095);this['_substituteRedoStack'](_0x1a0652,_0x5d1d15);}catch(_0x47253d){this[_0x571f95(0x3c0)][_0x571f95(0x2f1)](_0x47253d),this[_0x571f95(0x419)](_0x1a0652);}}[_0x1a1f79(0x27c)](_0x29620c){const _0x5b612f=_0x1a1f79;let _0x12d016=this[_0x5b612f(0x3e3)](_0x29620c);_0x12d016&&(_0x12d016[_0x5b612f(0x314)]=0x0,this[_0x5b612f(0x317)]());}[_0x1a1f79(0x419)](_0x428085){const _0x2292d6=_0x1a1f79;let _0x23a544=this[_0x2292d6(0x2f2)](_0x428085);_0x23a544&&(_0x23a544[_0x2292d6(0x314)]=0x0,this[_0x2292d6(0x317)]());}[_0x1a1f79(0x1b5)](_0x47b411,_0x2620fd){const _0x2adf43=_0x1a1f79;this[_0x2adf43(0x2d1)][_0x2adf43(0x23f)](_0x47b411,_0x2620fd),this['_updateStatus']();}[_0x1a1f79(0x320)](_0x36bd03,_0x4e15d6){const _0x3e8104=_0x1a1f79;this['_redoStacks'][_0x3e8104(0x23f)](_0x36bd03,_0x4e15d6),this[_0x3e8104(0x317)]();}['_transformStack'](_0xb14407,_0x69270e){const _0x1cac27=_0x1a1f79;let _0x28ec71=[],_0x4b894d=_0x69270e,_0x448469=_0x69270e;for(let _0x5ba51b=_0xb14407['length']-0x1;_0x5ba51b>=0x0;_0x5ba51b--){let {unitID:_0x47bcc3,undoMutations:_0x4bcc60,redoMutations:_0x513195}=_0xb14407[_0x5ba51b],_0x2dd311=this[_0x1cac27(0x30b)][_0x1cac27(0x12d)](_0x4b894d,_0x4bcc60),_0x54e6a5=this['_transformService'][_0x1cac27(0x12d)](_0x448469,_0x513195);if((0x0,_0x22b414[_0x1cac27(0x3f9)])(_0x2dd311)||(0x0,_0x22b414[_0x1cac27(0x3f9)])(_0x54e6a5)){this[_0x1cac27(0x3c0)][_0x1cac27(0x2f1)](_0x1cac27(0x276),_0x1cac27(0x29f),_0x2dd311,_0x54e6a5);break;}_0x4b894d=_0x2dd311[_0x1cac27(0x1cf)],_0x448469=_0x54e6a5['c1Prime'],_0x28ec71[_0x1cac27(0x1a0)]({'unitID':_0x47bcc3,'undoMutations':_0x2dd311[_0x1cac27(0x113)],'redoMutations':_0x54e6a5[_0x1cac27(0x113)]});}return _0x28ec71[_0x1cac27(0x15a)]();}};_0x41a133=_0x3ef445([_0x3b7f76(0x0,_0xfd1b33[_0x1a1f79(0x439)]),_0x3b7f76(0x1,_0xfd1b33[_0x1a1f79(0x25a)]),_0x3b7f76(0x2,_0xfd1b33['IContextService']),_0x3b7f76(0x3,_0xfd1b33['IConfigService']),_0x3b7f76(0x4,_0x22b414[_0x1a1f79(0x20d)]),_0x3b7f76(0x5,_0xfd1b33[_0x1a1f79(0x336)])],_0x41a133);let _0x15449d=class extends _0xfd1b33[_0x1a1f79(0x300)]{constructor(_0x46e8f6=_0xf57348,_0x4490ee,_0x342c15,_0x283d3b){const _0x22a216=_0x1a1f79;super(),this[_0x22a216(0x262)]=_0x46e8f6,this[_0x22a216(0x3c0)]=_0x4490ee,this[_0x22a216(0x144)]=_0x342c15,this[_0x22a216(0x347)]=_0x283d3b;let {..._0x39ff5e}=(0x0,_0xfd1b33[_0x22a216(0x3bb)])({},_0xf57348,this[_0x22a216(0x262)]);if(!_0x39ff5e[_0x22a216(0x3f4)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this[_0x22a216(0x262)]=_0x39ff5e,this[_0x22a216(0x347)][_0x22a216(0x417)](_0x46f3f1,_0x39ff5e);}[_0x1a1f79(0x3bf)](){const _0x55f36c=_0x1a1f79;this[_0x55f36c(0x347)]['setConfig'](_0xfd1b33['OBJECT_PERMISSION_CONFIG_KEY'],this[_0x55f36c(0x262)][_0x55f36c(0x218)]??[]),this[_0x55f36c(0x2ba)](),this[_0x55f36c(0x18f)]();}[_0x1a1f79(0x2ba)](){const _0x5e59f3=_0x1a1f79;var _0x14f2de,_0x578d81;this[_0x5e59f3(0x144)][_0x5e59f3(0x281)](_0xfd1b33[_0x5e59f3(0x260)])&&this[_0x5e59f3(0x3c0)][_0x5e59f3(0x2f1)](_0x5e59f3(0x37b),_0x5e59f3(0x13e));let _0x36e462=(0x0,_0xfd1b33[_0x5e59f3(0x165)])([[_0xfd1b33[_0x5e59f3(0x260)],{'useClass':_0x41a133}],[_0x55dc28,{'useValue':_0x3c679e()}],[_0x44e620],[_0x49185a],[_0x207501],[_0x1f6f73],[_0x417e05],[_0x334742],[_0x5b23ae],[_0x2a8347],[_0x3b50e6],[_0x241a56,{'useClass':this[_0x5e59f3(0x262)]['socketService']}],[_0x22b414[_0x5e59f3(0x282)],{'useClass':_0x55548b}],[_0xfd1b33[_0x5e59f3(0x2e2)],{'useClass':_0x466665}],[_0xfd1b33['IImageIoService'],{'useClass':_0x35636c}],[_0x6be0cc,{'useClass':_0x4bf954}],[_0xfd1b33['IMentionIOService'],{'useClass':_0x23b9cd}],[_0x5531ba],[_0x1790ae]],(_0x14f2de=this[_0x5e59f3(0x262)])==null?void 0x0:_0x14f2de[_0x5e59f3(0x3e6)]);if(!((_0x578d81=this[_0x5e59f3(0x262)])!=null&&_0x578d81[_0x5e59f3(0x223)])){let _0x35709b=_0x36e462[_0x5e59f3(0x307)](([_0x22f2ef])=>_0x22f2ef===_0x4f0bf8);_0x35709b!==-0x1&&_0x36e462['splice'](_0x35709b,0x1);}(0x0,_0xfd1b33[_0x5e59f3(0x13b)])(this[_0x5e59f3(0x144)],_0x36e462);}[_0x1a1f79(0x18f)](){const _0x391788=_0x1a1f79;var _0xd130fe,_0x33b86d;if(this[_0x391788(0x144)][_0x391788(0x30d)](_0x1b853b[_0x391788(0xf3)])[_0x391788(0x359)]({'priority':0x14,'interceptor':(0x0,_0x1b853b[_0x391788(0x233)])({'maxParallel':0x6})}),!((_0xd130fe=this[_0x391788(0x262)])!=null&&_0xd130fe[_0x391788(0x354)])){var _0x4fa32b;(_0x4fa32b=this[_0x391788(0x144)][_0x391788(0x30d)](_0x1237f1,_0xfd1b33['Quantity'][_0x391788(0x384)]))==null||_0x4fa32b[_0x391788(0x366)]();}(_0x33b86d=this[_0x391788(0x262)])!=null&&_0x33b86d[_0x391788(0x175)]&&(0x0,_0xfd1b33[_0x391788(0x197)])(this[_0x391788(0x144)],[[_0x1f6f73]]),(0x0,_0xfd1b33[_0x391788(0x197)])(this[_0x391788(0x144)],[[_0x417e05],[_0x5531ba],[_0x5b23ae]]);}};_0x3d9afb(_0x15449d,_0x1a1f79(0x23c),_0x1a1f79(0x18b)),_0x3d9afb(_0x15449d,_0x1a1f79(0x327),_0x3534ee),_0x3d9afb(_0x15449d,'version',_0x357941),_0x15449d=_0x3ef445([(0x0,_0xfd1b33[_0x1a1f79(0xe2)])(_0x139ed3[_0x1a1f79(0x34b)],_0x1b853b['UniverNetworkPlugin'],_0x22b414[_0x1a1f79(0x2c7)]),_0x3b7f76(0x1,_0xfd1b33[_0x1a1f79(0x336)]),_0x3b7f76(0x2,(0x0,_0xfd1b33[_0x1a1f79(0x23d)])(_0xfd1b33['Injector'])),_0x3b7f76(0x3,_0xfd1b33[_0x1a1f79(0x1ee)])],_0x15449d),Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0x416),{'enumerable':!0x0,'get':function(){return _0x466665;}}),Object['defineProperty'](_0x533cdf,_0x1a1f79(0x24c),{'enumerable':!0x0,'get':function(){return _0x4a32e6;}}),Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0x319),{'enumerable':!0x0,'get':function(){return _0x3f186f;}}),Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0x3f6),{'enumerable':!0x0,'get':function(){return _0x2e7d94;}}),Object[_0x1a1f79(0x390)](_0x533cdf,'BoardCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x4efaf5;}}),_0x533cdf['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=_0x46f3f1,Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0x2fa),{'enumerable':!0x0,'get':function(){return _0x4bf954;}}),Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0x43b),{'enumerable':!0x0,'get':function(){return _0x5531ba;}}),Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0x315),{'enumerable':!0x0,'get':function(){return _0x194e81;}}),Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0x3c2),{'enumerable':!0x0,'get':function(){return _0x35636c;}}),Object['defineProperty'](_0x533cdf,_0x1a1f79(0x350),{'enumerable':!0x0,'get':function(){return _0x313cfe;}}),Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0x42a),{'enumerable':!0x0,'get':function(){return _0x44e620;}}),Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0x110),{'enumerable':!0x0,'get':function(){return _0x515815;}}),_0x533cdf[_0x1a1f79(0x3e5)]=_0xb964c8,_0x533cdf[_0x1a1f79(0x274)]=_0x3e8fe1,_0x533cdf[_0x1a1f79(0xce)]=_0x2a8347,Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0x2eb),{'enumerable':!0x0,'get':function(){return _0x41a133;}}),_0x533cdf[_0x1a1f79(0x3dd)]=_0x334742,Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0x160),{'enumerable':!0x0,'get':function(){return _0x9bc46;}}),_0x533cdf[_0x1a1f79(0x1d7)]=_0x1a1f79(0x2b6),_0x533cdf['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']=_0x1a1f79(0x169),_0x533cdf[_0x1a1f79(0x263)]='/universer-api/user/session-ticket',Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0x367),{'enumerable':!0x0,'get':function(){return _0x3b50e6;}}),Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0x17e),{'enumerable':!0x0,'get':function(){return _0x460c6f;}}),Object[_0x1a1f79(0x390)](_0x533cdf,'FetchingMissState',{'enumerable':!0x0,'get':function(){return _0x4ccfc2;}}),_0x533cdf['HEARTBEAT_INTERVAL_KEY']=_0x1a1f79(0x388),_0x533cdf[_0x1a1f79(0x403)]=_0x1a1f79(0x3f5),_0x533cdf[_0x1a1f79(0x355)]=_0x6be0cc,_0x533cdf[_0x1a1f79(0x2be)]=_0x55dc28,_0x533cdf[_0x1a1f79(0x353)]=_0x241a56,_0x533cdf['ILocalCacheService']=_0x1237f1,_0x533cdf[_0x1a1f79(0x132)]=_0x32a4b7,_0x533cdf[_0x1a1f79(0x392)]=_0x4f0bf8,_0x533cdf[_0x1a1f79(0x329)]=0x3e8,_0x533cdf[_0x1a1f79(0x2a5)]='LOCAL_CACHE_INTERVAL',Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0xcf),{'enumerable':!0x0,'get':function(){return _0x49185a;}}),Object['defineProperty'](_0x533cdf,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return _0x23b9cd;}}),Object['defineProperty'](_0x533cdf,_0x1a1f79(0xdf),{'enumerable':!0x0,'get':function(){return _0x59f410;}}),Object[_0x1a1f79(0x390)](_0x533cdf,'PdfCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x4c1f68;}}),Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0x2e7),{'enumerable':!0x0,'get':function(){return _0x1906e3;}}),_0x533cdf[_0x1a1f79(0x2bb)]='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',_0x533cdf['RETRY_CONNECTING_MAX_COUNT_KEY']='RETRY_CONNECTING_MAX_COUNT',_0x533cdf['SessionStatus']=_0x5c0e48,Object[_0x1a1f79(0x390)](_0x533cdf,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x5c9937;}}),Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0x40c),{'enumerable':!0x0,'get':function(){return _0x207501;}}),Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0x358),{'enumerable':!0x0,'get':function(){return _0xac0845;}}),Object['defineProperty'](_0x533cdf,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return _0x55548b;}}),Object[_0x1a1f79(0x390)](_0x533cdf,_0x1a1f79(0x3da),{'enumerable':!0x0,'get':function(){return _0x1cbacc;}}),_0x533cdf[_0x1a1f79(0x11e)]=_0x25e8d5,Object['defineProperty'](_0x533cdf,_0x1a1f79(0x38b),{'enumerable':!0x0,'get':function(){return _0x15449d;}}),_0x533cdf[_0x1a1f79(0x202)]=_0x3c679e,_0x533cdf[_0x1a1f79(0x1ae)]=_0x467beb,_0x533cdf['getLocalCacheKey']=_0x563e4e,_0x533cdf['serializeCombRequest']=_0x558641;}));function _0x4bb3(){const _0x467103=['default','_replaceFileID','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','isInternalEditorID','stopTime','_roomCreated$','reqId','collaboration_new_changeset','createInstance','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_docStateChangeManagerService','localCacheService','ws://127.0.0.1:8000/universer-api/comb/connect','deleteCollaborator','_HTTPService','loadDoc','_registerDependencies','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','fetchMiss','rxjs','ICollaborationClientAdapterService','collabWebSocketUrl','pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','_toggleOffline','toDisposable','/universer-api/comb','_updateLocalCache','maxSize','3104228UHEVmR','UniverCollaborationPlugin','upload','CLOSE_ROOM','DEFAULT_FILE_NAME','getValue','saveAttachment','Disposable','SOCKET_FAILED_RETRY','timeoutTimer','UserManagerService','_undoStacks','onTransformState','_resolveSessionIdentity','_transformStack','UNIVER_BOARD','_tryEnsureSocket','close','catch','_onJoinRoomEvent','_shouldReportTelemetry','headers','startsWith','CONFLICT_PROCESSING','crypto','disposeWithMe','subject','_acknowledgeAwaitingIfReady','IAuthzIoService','loginUrlKey','executeCommand','_handlerCallback','_event$','PendingState','object','shareReplay','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','CollaborativeUndoRedoService','memberID','refreshPermission','hasOwnProperty','_instanceService','LIVESHARE_OPERATION','error','_getRedoStack','getSheetBlock','roomInfos','Subject','HELLO','_compressMutationService','SOCKET_FAILED','&source=','CollaborationAttachmentIoService','/collaborator','JOIN_ROOM_FULL','post','getInterceptPoints','_isEchoedAwaitingChangeset','Plugin','_collaborationPaused','objectId','createCollaborator','onCommentUpdate','onRemoteRej','[PendingState]:\x20received\x20rejection.','findIndex','invalid\x20output,\x20must\x20be\x20aligned','joinEvent','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_transformService','_transformRemoteChangesetByIMECache','get','downloadEndpointUrl','bytesLength','floor','_initMergeInterceptor','_maxTotalRetryTimeout','_getUploadFileURL','length','CollaborationEntity','@univerjs-pro/slides','_updateStatus','workbook','AwaitingWithPendingState','_sessionChannels','AWAITING','message$','_syncEditingCollabCursor','synced','apply','_substituteRedoStack','_clearCollaborationTimeoutTimer','retryCount','LIVESHARE_NEW_HOST','string\x20expected','signUrlServerUrl','retryConnectingTimer','packageName','constructor','LOCAL_CACHE_INTERVAL','CollaborationEvent','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','expected\x20number,\x20got\x20','2247620deEgZK','editing\x20status\x20changed\x20to','_onLocalMutation','file','_changesetReqId','disablePadding','getAllPermissionPoint','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','socketMessageSubscription','ILogService','unitType','_showConflictNotification','parse','_emitMembers','/-/object/list','updatePermissionPoint','_state','EnsureSlideMasterPageMutation','endpoint','changesets','saveSnapshot','docStateChange$','_decreaseWaiting','_entities','resourceIDs','_startCollaboration','_configService','_collaborationTimeoutTimer','size','_getCtorByUniverInstanceType','UniverLicensePlugin','[OfflineState]:\x20received\x20rejection.','UniverInstanceType','next','Error\x20on\x20receiving\x20event','CollaborationSession','/allowed','getConfig','ICollaborationSocketService','enableOfflineEditing','IAttachmentIoService','[SyncedState]:\x20received\x20rejection.','onTransformRemoteChangesetByStateCache','SlideCollaborationEntity','registerHTTPInterceptor','OFFLINE','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','loadOfflineData','univer-pro.collaboration-client-adapter-service','mutations','onRemoteChangeset','sessionStatus','OTHER_CLIENTS_EDITING','_getAPIPrefixPath','interceptor','key','UniverProLicense','disableLocalCache','DataLoaderService','UniverNetwork','getSnapshotAPIPath','method','loadBase','?url=','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_onUserJoin','routeKey','members$','appendMutation','function','call','[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.','sid','collaboration-client.config','_getConfig','_acknowledgeAwaiting','localUnitId','COMPRESS_MUTATION_APPLY','[UniverCollaborationClientPlugin]','ErrorCode','loadBoard','getGlobalObject','MUTATION','ReplaySubject','RichTextEditingMutation','onTransformSelections','assign','OPTIONAL','nonceLength','sendHeartbeatTimer','_getLoginPath','HEARTBEAT_INTERVAL','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','/role','UniverCollaborationClientPlugin','updateOfflineData','some','_applyRemoteChangeset','_getUnitPermissionPoints','defineProperty','_networkConditionService','ISingleActiveUnitService','slice','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_httpService','UniverTelemetry','list','BYTES_PER_ELEMENT','append','expected\x20integer\x20>=\x200,\x20got\x20','type','tagLength','WorkbookEditablePermission','take','UniverProtocol','/universer-api/oidc/authpage','socketReady','_onOffline','1873448Iucezf','encrypt','_transformAndApplyRemoteChangeset','_getSignURL','toStringTag','_members','socket$','People','BehaviorSubject','_undoRedoService','_state$','ITelemetryService','/new_changes','?size=','onSyncEditingCollabCursor','UniverProSlides','_revisionService','includes','unitId\x20is\x20not\x20found','_clearHeartbeatTimer','_memberService','unsubscribe','_sessions','_type','merge','/universer-api/snapshot/','number','members','onStarting','_logService','unitId','CollaborationImageIoService','\x22ciphertext\x22\x20expected\x20length\x20>=\x20tagLength=','getLatestCsReqIdBySid','_unlockTransition','textEncoder','sendChangesetTimeout','takeUntil','expected\x20Uint8Array','3018NbiJUZ','_getSendChangesetTimeout','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','reduce','location','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','from','candidateSocket','string','updateCollaborator','ERROR_EXCEED_SIZE','_getDownloadEndpointURL','readyForCollab','_socketService','Injector','UnitObject','SyncedState','onMutationExecutedForCollab','indexOf','CommentService','OTHER_CLIENT_EDITING','delay','withAAD','cmd',',\x20got\x20','_getUndoStack','EmptyMutationInfo','CollaborationStatus','override','collaboration-client.local-cache-service','_pendingMutations','SHOULD_CLOSE_CONN','userID','InsertSheetMutation','_waitCount','_getCurrentRevision','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getMember','waitForRoom$','subUnitId','UPDATE_PERMISSION_OBJ','transformUndoRedo','socketService','HEARTBEAT_TIMEOUT','BaseCollaborationEntity','toLocal','_socket','isTransformMutationsWithChangesetFailure','getImage','unit-cache-','_imageSourceCache','@univerjs/core','PENDING','SnapshotService','add','CHANGESET_SHOULD_RETRY','_onRemoteRejected','HEARTBEAT_TIMEOUT_KEY','batchAllowed','unitInfo$','uniscriptRunEvent','_unitLoaded$','min','_transformUndoredo','session.room-permission-denied','baseRev','SheetTransformSelectionsService','awaitingChangeset','Rectangle','_onConnectionFailed','onTransformRemoteChangesetByIMECache','UniverDocs','UNIVER_DOC','JOIN','csRejEvent','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','AuthzIoHttpService','setConfig','requestParams','_clearRedo','_socketMessageSubscription','collaboratorID','_change$','filter','ImageSourceType','_closedUnits','every','blockRanges','values','getAllMembers','fetchMissingChangesets','fromCollab','fromCharCode','INGEST','_transformIMECache','__splitChunk__','CollaborationSessionService','PERMISSION_REJ','getTime','action','leaveEvent','FileId','getCurrentSelections','_changesetSessionId','_collabSessionService','/universer-api/file/{fileID}/sign-url','/rev/','getCurrentRevOfUnit','_telemetryService','status','/-/object/-/batch_allowed','IUniverInstanceService','readAsDataURL','CollaborationController','fetchThroughInterceptors','_startTelemetryCollaborationNewChangeset','accept','_unitInfo$','_updateUnitPermissionPoint','subscribe','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','CONFLICT_CACHE_CLEAR_FAILED','asObservable','{fileID}','IPermissionService','setWaitCount','subarray','href','parseChangesetToProtocol','_handleRemoteChangesets','state','CollaborationUIEventService','MemberService','_initCloseConn','toRemote','backupOfflineData','uploadFileServerUrl','[OfflineState]:\x20received\x20changeset.','CombCmd','UnitEmbedded','[PendingState]:\x20received\x20acknowledgement.','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','Document','attachment','dispose','addHandlerCallback','saveSheetBlock','trim','OfflineState','removeMember','telemetry\x20info\x20is\x20not\x20initialized','DependentOn','DRAWING_IMAGE_ALLOW_IMAGE_LIST','@univerjs/telemetry','_onCombEvent','MoveSlidePageMutation','UNIVER_SLIDE','save\x20fail\x20reason\x20is\x20','loadUnit','/resources','awaiting_with_pending','decorate','_replayCachedMutations','_telemetryInfo','endsWith','_clearScheduledTask','uuidv4','base-ui.attachment-io.service','HTTPService','body','change$','varSizeNonce','\x0aCurrent:\x20','origin','unknown','LIVESHARE_REQUEST_HOST','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','localeService','3zDYkvN','nonce','connection\x20error','snapshotServerUrl','GLOBAL_ROOMS_CNT_EXCEEDS','permissionRejEvent','FETCH_MISSING','IDLE','[CollaborationEntity]','_permissionService','\x20-\x20','_collaborationUIEventService','clear','closeSession','debug','ISocketService','LIVESHARE_FETCH_OPERATIONS','awaiting','_initUnitPermissionChange','CollaborationSocketService','_cfgEnableObjInherit','_resendWithTimeout','m2Prime','sessionStatus$','textRanges','initWorkbookPermissionChange','_prepareTransformSelections','POST','parseProtocolChangeset','isTransformMutationsWithChangesetSuccess','onStateChange','listRoles','\x20to\x20','UnitStatus','reject','_disposed','_upload','prototype','SheetsSelectionsService','find','/universer-api/stream/file/upload','onTransformIME','objectType','_listenToNetworkCondition','_joinRoom','fetch_missing','deepClone','rollback','transformMutationsWithChangeset','_stopTelemetryCollaborationNewChangeset','_sendingTimer','_transformStateCache','resolveUnit','INetworkConditionService','init','Uint8Array','Workbook','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','session','_sheetTransformSelectionsService','[CollaborationSession]','pipe','registerDependencies','commentUpdate$','getRoom','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','UniverCore','_collaborationSessionService','FAIL','CmdRspCode','Optional','_injector','_localeService','_createSession','_pendingSessions','_handler','isArray','toString','_queuedRemoteChangesets','supports','title','crypto.getRandomValues\x20must\x20be\x20defined','SYNCED','withCredentials','CompressMutationService','transformSelections','type=','_prepareConflictRecovery','isSafeInteger','RxDisposable','3749804qkkaPp','changeset','charCodeAt','reverse','collaborators','@univerjs/network','name','AWAITING_WITH_PENDING','_scheduleCompleteTimestamp','ConflictState','allowed','concatMap','cfgEnableObjInherit','subType','mergeOverrideWithDependencies','CHANGESET_ACK','updateCursorEvent','symbol','/universer-api/uniscript','createIdentifier','UNIVER_BASE','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_createSocket','SetSelectionsOperation','data','onMissedChangesetFetched','reconnect','8450334OyKLbN','NO_OTHER_CLIENTS_EDITING','clearUnit','enableAuthServer','UniverProCollaborationClient','updateMember','map','\x20in\x20_schedule.','_updateState','getRandomValues','USERS_ENTER','resend','DocCollaborationEntity','setShowComponents','_clearRetryConnectingTimer','[OfflineState]:\x20received\x20acknowledgement.','failed\x20to\x20apply\x20missed\x20changesets!','getDrawingImageAllowSize','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','RevisionService','UNIVER_PDF','JOIN_ROOM_FAILED','COLLABORATION_ENDPOINT_INVALID','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','patch','UNIVER_COLLABORATION_CLIENT_PLUGIN','forEach','_removeRoom','_remoteChangesetQueue','_initDependencies','max','getTypeOfUnitDisposed$','range','RECV','HTTPRequest','fill','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','touchDependencies','open$','univer-pro.collaboration-client-socket-service','b64DecodeUnicode','_refreshUnitPermission','SUBMIT_CHANGESET_TIMEOUT','onRemoteRetry','AAD','_sendHeartbeat','push','LocalUndoRedoService','_userManagerService','startTime','_onFetchMissResult','SUBMIT_CHANGESET','[CollaborationSessionService]','selections','_createInitialStateImpl','complete','FETCH_MISS','UNIVER_SHEET','buffer','_throwTelemetryCollaborationNewChangeset','deserializeToCombResponse','responseType','stringify','onlyLocal','actions','_members$','onLocalMutation','_substituteUndoStack','_onRemoteRetry','_transitionLocked','MentionType','_onMessage','transformChangesets','onSendChangeset','loadPdf','5375WsiJog','PSEUDO_FETCH_MISSING_RESULT','_clearTimeoutTimer','AAD\x20not\x20supported','cipher\x20output\x20not\x20supported','encode','state$','_transformSelections','target','getCollabEntity$','decrypt','operators','output','UPDATE_CURSOR','entityInit$','/block/','_socketChannels','unitDisposed$','c1Prime','aes:\x20bad\x20decrypt','_init','unit','requireSession','loadSheet','collabSubmitChangesetUrl','_entityInit$','DEFAULT_COLLAB_WEB_SOCKET_URL','byteOffset','SUCCUSS','RemoveSlidePageMutation','_initRequestHeader','onPrepareTransformSelections','csAckEvent','/unit/','_exhaustRemoteChangesetQueue','getCurrentUser','enableCollaboration','/universer-api/authz','NEW_CHANGESETS','getUploadOptions','_onConnectionOpen','params','liveShareNewHost','CHANGESET_REJ','createSocket','HEARTBEAT','_lockTransition','rxjs/operators','LIVESHARE_TERMINATE','IConfigService','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_transformRemoteChangesetByStateCache','firstValueFrom','_univerInstanceService','isTransformChangesetsSuccess','conflict','_createInitialState','sort','FileSource','UNISCRIPT_RUN','JOINING','BASE64','_disableEditing','dispose$','_sender','getImageSourceCache','toggleOffline','_resendTimer','ObjectPermissionService','createUniverCollaborationAdapter','_schedule','plaintext\x20must\x20be\x20multiple\x20of\x2016','socket\x20open.','_status$','ciphertext\x20must\x20be\x20multiple\x20of\x2016','clearOfflineData','updateSnapshot','hostname','_hasSessionsForEndpoint','&to=','ITransformService','_commentService','_commentUpdate$','COMPRESS_MUTATION_SEND','_singleActiveUnitService','_sessionStatus$','&assign=','isCompositionEnd','originalMeta','\x22bytesLength\x22\x20expected\x20<=\x2065536,\x20got\x20','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','objectPermissionTypes','session.room-not-exists','getWorkbookSelections','PERMISSION_DENIED','text-x','/object','byteLength','Univer','length=','__Key__','focused$','enableSingleActiveInstanceLock','getActiveSheet','LEAVE','setCfgEnableObjInherit','_acknowledgedAwaitingRevision','url','_onUserLeave','addImageSourceCache','error$','_isPermissionRej','isPermissionRej','_createHandler','putCollaborators','MergeInterceptorFactory','_snapshotService','_onRemoteChangeset','ThresholdInterceptorFactory','RETRY_CONNECTING_MAX_COUNT','onRemoteAck','_fetchMissChangesets','event$','_roomMembers','unitID','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','loadUnitOfRevision','pluginName','Inject','1.0.3','set','ImageUploadStatusType','_rescheduleHeartbeat','getDeserializedSheetBlock','roles','getResourcesRequest','_incrementRevisionNumber','missingChangesets','objectID','onMissingChangesets','_submitChangeset','status$','close$','AwaitingState','CommandType','compose','fetching\x20missing\x20changesets\x20from\x20','Base','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','SheetPermissionInitController','getUnitType','DocStateChangeManagerService','incrementRevOfUnit','now','toggleOnline','_authzIoService','_scheduleCollaborationTimeoutTimer','ICommandService','getUnitStatus$','_executeRemoteChangeset','newCsEvent','listCollaborators','USERS_LEAVE','IUndoRedoService','_doCreateSocket','_config','DEFAULT_WS_SESSION_TICKET_URL','LocaleService','49sCizgP','_checkMissing','1884406tNOvpp','result','iterator','getUnitId','create','_adapter','delete','/object/','saveImage','exports','_onConflict','_awaitingChangeset','columnGroups','CollaborationUIEventId','eventID','[CollaborationUndoRedoService]','_onRecvEvent','revision','Tools','_localCacheService','getCfgEnableObjInherit','_clearUndo','confirm','pauseCollaboration','_getAPIPrefix','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','has','ISnapshotServerService','update','submit\x20changeset\x20error!','send','MSG_FOR_ERROR','capture','_snapshotServerService','toPrimitive','getUnit','_resendTimeout','getCollabEntity','CONFLICT','UUID','[DataLoaderService]','getTypeOfUnitAdded$','\x20of\x20length\x20','_commandService','COMMENT_UPDATE','resolveWithBasePath','objectActions','isView','editingUnit','_tryReconnect','getFocusedUnit','commentUpdateEvent','_getSocketChannel','emitEvent','getMemberID','_identity','transformStack\x20failed!','mapDocumentTypeToUniverInstanceType','_showConflictProcessingNotification','PERSON','offline','ERROR_IMAGE','LOCAL_CACHE_INTERVAL_KEY','@univerjs/docs','code','_toggleOnline','joinRsp'];_0x4bb3=function(){return _0x467103;};return _0x4bb3();}
|
|
1
|
+
function _0x4f8b(_0x357a6f,_0x5ef0f3){_0x357a6f=_0x357a6f-0x1d3;const _0x34080e=_0x3408();let _0x4f8b6a=_0x34080e[_0x357a6f];return _0x4f8b6a;}function _0x3408(){const _0x4f171c=['revision','signUrlServerUrl','_handlerCallback','CompressMutationService','timeout','3087861hGrYEA','reqId','getInterceptPoints','retryCount','unit','objectId','LIVESHARE_FETCH_OPERATIONS','collabSubmitChangesetUrl','resolveUnit','Univer','x-univer-host','sessionStatus','session','unitId','call','aes:\x20bad\x20decrypt','sendChangesetTimeout','message$','AwaitingWithPendingState','BehaviorSubject','NEW_CHANGESETS','_event$','ReplaySubject','CollaborativeUndoRedoService','onStateChange','csAckEvent','bytesLength','HEARTBEAT_TIMEOUT','_revisionService','collaboration-client.config','expected\x20number,\x20got\x20','rev','clearOfflineData','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','/universer-api/snapshot/','_changesetReqId','getSheetId','string','AWAITING','updateSnapshot','m2Prime','mutations','endpointKey','_clearRedo','_createSocket','_commandService','PERMISSION_REJ','commentUpdate$','clearUnit','csRejEvent','downloadEndpointUrl','getUploadOptions','SUBMIT_CHANGESET_TIMEOUT','getMemberID','dispose$','_univerInstanceService','session.room-cnt-exceeds','2062370JjeBUU','batchAllowed','fetch_missing','commit','generateRandomId','getConfig','collaboratorID','expected\x20integer\x20>=\x200,\x20got\x20','registerHTTPInterceptor','connectionAttempt','baseRev','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','ImageSourceType','HEARTBEAT_INTERVAL','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','create','OfflineState','CLOSE_ROOM','LIVESHARE_OPERATION','_unitInfo$','_configService','UniverTelemetry','_injector','_onConnectionOpen','replace','[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.','_getSignURL','changesets','getOwnPropertyDescriptor','includes','constructor','_createHandler','6255RyLIZU','_stopTelemetryCollaborationNewChangeset','_fetchMissChangesets','_scheduleCompleteTimestamp','Rectangle','byteOffset','take','_disposed','LocaleService','OFFLINE','updateMember','NO_OTHER_CLIENTS_EDITING','compose','FileSource','liveShareNewHost','/universer-api/file/{fileID}/sign-url','Workbook','ITransformService','SYNCED','src','commentUpdateEvent','RevisionService','_tryEnsureSocket','collaMsg','ObjectPermissionService','_registerDependencies','_collaborationSessionService','UniverDocs','getTypeOfUnitDisposed$','_clearUndo','state$','UniverProCollaborationClient','FETCH_MISS','_clearTimeoutTimer','@univerjs/network','isArray','pipe','pluginName','_getUnitPermissionPoints','permissionRejEvent','crypto','_closedUnits','UNIVER_DOC','IMentionIOService','_updateStatus','toRemote','onSyncEditingCollabCursor','createInstance','ERROR_IMAGE_TYPE','add','_onCombEvent','set','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','docStateChange$','onCommentUpdate','_sendHeartbeat','amd','interceptor','DocStateChangeManagerService','getValue','duration','unitInfo$','_commentService','textEncoder','IAuthzIoService','LIVESHARE_NEW_HOST','MSG_FOR_ERROR','UniverInstanceType','_onJoinRoomEvent','getCurrentUser','clear','ignored\x20stale\x20ack\x20of\x20revision\x20','objects','setShowComponents','/universer-api/oidc/authpage','CommandType','MentionIoHttpService','PdfCollaborationEntity','@univerjs/docs','fetchThroughInterceptors','key','save\x20fail\x20reason\x20is\x20','complete','changeset','_shouldReportTelemetry','isTransformChangesetsSuccess','total','withAAD','state','socket$','unknown','pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','timeoutTimer','@univerjs-pro/collaboration','univer-pro.collaboration-client-adapter-service','put','_subscribeResendTimer','_getUndoStack','href','_onRemoteRetry','/rev/','confirm','_hasSessionsForEndpoint','_isPermissionRej','localCacheService','MergeInterceptorFactory','values','_joinRoom','isCompositionEnd','open$','prototype','entityInit$','transformStack\x20failed!','tables','deleteCollaborator','updatePermissionObjEvent','loadSheet','indexOf','_type','focused$','MentionType','OBJECT_PERMISSION_CONFIG_KEY','find','_replaceFileID','onTransformRemoteChangesetByIMECache','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_acknowledgeAwaitingIfReady','touchDependencies','_pendingMutations','_singleActiveUnitService','_toggleOffline','_socketMessageSubscription','_changesetSessionId','get','_unlockTransition','_memberService','onTransformRemoteChangesetByStateCache','length=','sid','_sender','createUniverCollaborationAdapter','socketService','target','UniverNetworkPlugin','ws://127.0.0.1:8000/universer-api/comb/connect','IUndoRedoService','_entityInit$','rxjs/operators','crypto.getRandomValues\x20must\x20be\x20defined','appendMutation','takeUntil','now','hasOwnProperty','COMMENT_UPDATE','registerDependencies','_permissionService','varSizeNonce','/unit/','_transformUndoredo','_snapshotService','fill','post','_docStateChangeManagerService','OTHER_CLIENT_EDITING','_collabSessionService','HTTPRequest','ICollaborationSocketService','handshakeTimer','createSocket','UNIVER_SHEET','_startTelemetryCollaborationNewChangeset','FileId','/universer-api/uniscript','text-x','INGEST','{fileID}','Inject','addHandlerCallback','candidateSocket','disablePadding','LocalUndoRedoService','object','getTime','UNIVER_BOARD','_config','type=','range','POST','addImageSourceCache','transformSelections','debug','close$','_roomCreated$','616740YceGfY','onTransformState','Base','socketReady','CHANGESET_ACK','\x20to\x20','AWAITING_WITH_PENDING','Optional','loadSlide','createCollaborator','_schedule','_incrementRevisionNumber','SnapshotService','leaveEvent','_initCloseConn','?size=','UNIVER_BASE','_showConflictProcessingNotification','_checkMissing','\x20of\x20length\x20','catch','@univerjs-pro/slides','SheetPermissionInitController','_transitionLocked','endsWith','@univerjs-pro/license','_collaborationUIEventService','textRanges','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','DataLoaderService','unitLoaded$','endpoint','parseProtocolChangeset','getFocusedUnit','CollaborationUIEventId','function','hostname','originalMeta','UUID','_waitForHeartbeatResponse','disposeWithMe','COMPRESS_MUTATION_APPLY','_handler','SetSelectionsOperation','univer-pro.collaboration-client.network-condition.service','sendHeartbeatTimer','[CollaborationUndoRedoService]','COLLABORATION_ENDPOINT_INVALID','_change$','getCollabEntity','_instanceService','/-/object/-/batch_allowed','LIVESHARE_REQUEST_HOST','RECV','map','_resendTimeout','removeMember','_sendingTimer','_state','_status$','saveImage','_isAckOfAwaitingChangeset','getWorkbookSelections','min','_transformRemoteChangesetByStateCache','Slide','_networkConditionService','objectType','updatePermissionPoint','_eventService','mergeOverrideWithDependencies','userID','_members','getCurrentRevOfUnit','accept','_collaborationPaused','version','telemetry\x20info\x20is\x20not\x20initialized','_onRemoteACK','_transformIMECache','_adapter','DependentOn','_telemetryInfo','capture','@univerjs/core','_unitLoaded$','enableCollaboration','localUnitId','Document','_createInitialStateImpl','selections','roomInfos','_getConfig','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','DocCollaborationEntity','_isEchoedAwaitingChangeset','awaitingChangeset','RxDisposable','append','_clearScheduledTask','shouldCloseConn','packageName','_createSession','RETRY_CONNECTING_MAX_COUNT','merge','_initUnitPermissionChange','encode','_transformStateCache','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','iterator','byteLength','unitType','ERROR_EXCEED_SIZE','error$','_members$','getTypeOfUnitAdded$','getAllPermissionPoint','RichTextEditingMutation','_transformService','_listenToNetworkCondition','UnitObject','IAttachmentIoService','body','Disposable','HELLO','cfgEnableObjInherit','number','reconnect','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','data','init','readyForCollab','enableSingleActiveInstanceLock','_roomMembers','LIVESHARE_TERMINATE','UnitEmbedded','_getAPIPrefixPath','&assign=','__splitChunk__','_remoteChangesetQueue','CollaborationUIEventService','missingChangesets','resolveWithBasePath','WorkbookEditablePermission','authzUrl','RETRY_CONNECTING_MAX_COUNT_KEY','/object/','CollaborationImageIoService','712440bVZcpP','subarray','UniverProLicense','SHOULD_CLOSE_CONN','_scheduleCollaborationTimeoutTimer','getGlobalObject','getLatestCsReqIdBySid','delay','not_collab','Failed\x20to\x20update\x20permission\x20point','updateCollaborator','loadPdf','unit-cache-','uuidv4','ERROR_IMAGE','ErrorCode','saveSheetBlock','UniverProSlides','setWaitCount','_resendSchedule','CollaborationStatus','FETCH_MISSING','_substituteRedoStack','getDeserializedSheetBlock','USERS_ENTER','objectActions','HEARTBEAT_INTERVAL_KEY','subscribe','_getCurrentRevision','_loadSnapshot','DisposableCollection','cmd','dispose','_createInitialState','name','attachment','MUTATION','socketSubscription','transformMutationsWithChangeset','onMutationExecutedForCollab','_runScheduledResend','\x0aAfter:\x20','isTransformMutationsWithChangesetSuccess','decorate','882507XYMURR','_onOffline','getUnitType','_handleRemoteChangesets','_clearHeartbeatTimer','backupOfflineData','UniverCore','socket\x20close','closeSession','objectID','_onUserJoin','_applyRemoteChangeset','error','DEFAULT_FILE_NAME','univer-pro.collaboration-client.single-active-unit-service','JOINING','LEAVE','_onFetchMissResult','setConfig','conflict','_startCollaboration','_identity','onRemoteRetry','getResourcesRequest','UNIVER_COLLABORATION_CLIENT_PLUGIN','unitID','awaiting_with_pending','SOCKET_FAILED','\x20in\x20_schedule.','_getUploadFileURL','_redoStacks','snapshot','onTransformIME','_cfgEnableObjInherit','onload','avatar','origin','\x22bytesLength\x22\x20expected\x20<=\x2065536,\x20got\x20','_upload','ILogService','CollaborationSocketService','getAttachmentUrl','list','reduce','upload','collaborators','toggleOffline','memberID','routeKey','objectPermissionTypes','Quantity','_emitMembers','findIndex','getCollabEntity$','&source=','_replayCachedMutations','[CollaborationSession]','roles','[CollaborationEntity]','\x20-\x20','IUniverInstanceService','collaboration-client.local-cache-service','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','members$','getMember','_getSendChangesetTimeout','localeService','_removeRoom','CombCmd','JSONX','change$','_onConflict','loadBoard','code','Board','resend','session.join-failed','onTransformSelections','[FetchMissState]','listCollaborators','/universer-api/comb','floor','createIdentifier','_showConflictNotification','defineProperty','[PendingState]:\x20unhandled\x20univer\x20type:\x20','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_lockTransition','override','actions','getUnitId','onSendChangeset','encrypt','PERSON','_toggleOnline','concatMap','_resendTimer','[CollaborationSessionService]','result','IImageIoService','csShouldRetryEvent','[OfflineState]:\x20received\x20changeset.','UnitAction','string\x20expected','parse','getUnitStatus$','enableOfflineEditing','_transformSelections','rollback','headers','UnitStatus','symbol','[OfflineState]:\x20received\x20acknowledgement.','executeCommand','JOIN_ROOM_NOT_EXISTS','slice','_collaborationTimeoutTimer','default','reject','connection\x20error','c1Prime','UPDATE_PERMISSION_OBJ','EmptyMutationInfo','_logService','_prepareConflictRecovery','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','/universer-api/user/session-ticket','SheetsSelectionsService','forEach','joinRsp','_acknowledgeAwaiting','Uint8Array','PendingState','UNISCRIPT_RUN','UniverProCollaboration','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_onLocalMutation','_dropAcknowledgedAwaiting','parseChangesetToProtocol','transformUndoRedo','UniverProtocol','status','collaboration_new_changeset','subUnitId','decrypt','refreshUnit','CmdRspCode','transformChangesets','DRAWING_IMAGE_ALLOW_IMAGE_LIST','every','rxjs','stringify','fromCollab','onMissingChangesets','_executeRemoteChangeset','_authzIoService','_getDownloadEndpointURL','_socketChannels','buffer','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','unitDisposed$','BoardCollaborationEntity','location','has','_refreshUnitPermission','FetchingMissState','_init','some','/universer-api/stream/file/upload','CollaborationAttachmentIoService','_loadUnit','[SyncedState]:\x20received\x20acknowledgement.','offline','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','type','NOT_COLLAB','IPermissionService','_getSocketChannel','SUBMIT_CHANGESET','plaintext\x20must\x20be\x20multiple\x20of\x2016','_transformStack','_initMergeInterceptor','IConfigService','LOCAL_CACHE_INTERVAL_KEY','_onMessage','url','asObservable','_socketService','/collaborator','resourceIDs','waitForRoom$','_awaitingChangeset','ICollaborationClientAdapterService','_undoRedoService','[DataLoaderService]','isView','_localCacheService','close','sheets','_clearRetryConnectingTimer','unsubscribe','onRemoteRej','UNIVER_SLIDE','_maxTotalRetryTimeout','_disableEditing','listRoles','ISnapshotServerService','fetchMiss','serializeCombRequest','832mTTXWl','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','timer','uploadFileServerUrl','workbook','USERS_LEAVE','from','_telemetryService','11JGgDDz','length','_onRemoteChangeset','joinEvent','loadUnitOfRevision','ISocketService','HEARTBEAT_TIMEOUT_KEY','/universer-api/authz','getActiveSheet','BYTES_PER_ELEMENT','\x22ciphertext\x22\x20expected\x20length\x20>=\x20tagLength=','_sheetTransformSelectionsService','refreshPermission','UserManagerService','wrong\x20sbox\x20length','getAllMembers','toggleOnline','AddSlidePageMutation','_exhaustRemoteChangesetQueue','session.room-not-exists','fetching\x20missing\x20changesets\x20from\x20','method','@univerjs/protocol','putCollaborators','onlyLocal','ONLINE','/block/','startTime','CollaborationController','ICommandService','CollaborationEvent','subject','CHANGESET_SHOULD_RETRY','onStarting','/allowed','_sessionStatus$','nonce','getUnit','firstValueFrom','JOIN_ROOM_FAILED','_waitCount','b64DecodeUnicode','UNIVER_PDF','updateOfflineData','_socket','onPrepareTransformSelections','params','?url=','deepClone','allowed','event$','getRandomValues','toStringTag','_transformRemoteChangesetByIMECache','_state$','_initRequestHeader','sessionStatus$','OTHER_CLIENTS_EDITING','next','retryConnectingTimer','4YAXpSD','SlideCollaborationEntity','UniverDrawing','_httpService','getLocalCacheKey','/new_changes','emitEvent','toLocal','_HTTPService','getSnapshotAPIPath','splice','assign','/-/object/list','_getLoginPath','_sessions','startsWith','snapshotServerUrl','COMPRESS_MUTATION_SEND','exports','_updateLocalCache','entries','fetchMissingChangesets','getCfgEnableObjInherit','3rjdpPU','send','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','columnGroups','CHANGESET_REJ','290552ZczgUd','action','awaiting','_rescheduleHeartbeat','_isAppliedRevision','[OfflineState]:\x20received\x20rejection.','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','ciphertext\x20must\x20be\x20multiple\x20of\x2016','requireSession','/fetchmissing?from=','onRemoteChangeset','operators','@univerjs/sheets','[UniverCollaborationClientPlugin]','ThresholdInterceptorFactory','_userManagerService','update','_localeService','\x20at\x20revision\x20','_onUserLeave','_decreaseWaiting','eventID','SOCKET_FAILED_RETRY','HEARTBEAT','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_sessionChannels','onRemoteAck','delete','push','InsertSheetMutation','_getAPIPrefix','equals','_initDependencies','_onRemoteRejected','onMissedChangesetFetched','\x0aCurrent:\x20','CollaborationSessionService','[PendingState]:\x20received\x20rejection.','SUCCUSS','IDLE','_throwTelemetryCollaborationNewChangeset','nonceLength','size','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_getCtorByUniverInstanceType','status$','requestParams','newCsEvent','mapDocumentTypeToUniverInstanceType','_submitChangeset','infoRsp','encodeURIComponent','isTransformMutationsWithChangesetFailure','_commentUpdate$','loadOfflineData','saveChangeset','_prepareTransformSelections','JOIN','sort','isInternalEditorID','toDisposable','_queuedRemoteChangesets','_updateState','retryConnectingInterval','UPDATE_CURSOR','pending','_substituteUndoStack','/universer-api/snapshot','[AwaitingState]','ConflictState','apply','saveAttachment','_clearCollaborationTimeoutTimer','Injector','online','readAsDataURL','uniscriptRunEvent','fromCharCode','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','_acknowledgedAwaitingRevision','_compressMutationService','_pendingSessions','AuthzIoHttpService','_entities','CONFLICT','PERMISSION_DENIED','Subscription','UniverLicensePlugin','_snapshotServerService','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','OPTIONAL','liveShareOperation','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ImageUploadStatusType','filter','_onConnectionFailed','&to=','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','stopTime','isPermissionRej','/resources','HTTPService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','[SyncedState]:\x20received\x20rejection.','_tryReconnect','subType','toString','Subject','_getRedoStack','_updateUnitPermissionPoint','loadUnit'];_0x3408=function(){return _0x4f171c;};return _0x3408();}(function(_0x18afbe,_0x38a234){const _0x2ee842=_0x4f8b,_0x512b30=_0x18afbe();while(!![]){try{const _0x560158=-parseInt(_0x2ee842(0x3bb))/0x1*(parseInt(_0x2ee842(0x3c0))/0x2)+parseInt(_0x2ee842(0x28f))/0x3*(-parseInt(_0x2ee842(0x3a4))/0x4)+parseInt(_0x2ee842(0x54e))/0x5+parseInt(_0x2ee842(0x263))/0x6+parseInt(_0x2ee842(0x434))/0x7+-parseInt(_0x2ee842(0x360))/0x8*(-parseInt(_0x2ee842(0x48d))/0x9)+-parseInt(_0x2ee842(0x46d))/0xa*(-parseInt(_0x2ee842(0x368))/0xb);if(_0x560158===_0x38a234)break;else _0x512b30['push'](_0x512b30['shift']());}catch(_0x6cf5f0){_0x512b30['push'](_0x512b30['shift']());}}}(_0x3408,0x38933),function(_0x361327,_0x40337e){const _0x2c91cc=_0x4f8b;typeof exports==_0x2c91cc(0x542)&&typeof module<'u'?_0x40337e(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=='function'&&define[_0x2c91cc(0x4c5)]?define([_0x2c91cc(0x3b6),_0x2c91cc(0x4ea),_0x2c91cc(0x223),_0x2c91cc(0x4db),_0x2c91cc(0x3cc),_0x2c91cc(0x325),_0x2c91cc(0x37e),'@univerjs/telemetry',_0x2c91cc(0x520),_0x2c91cc(0x1e4),_0x2c91cc(0x4af),_0x2c91cc(0x1e8),'@univerjs/drawing'],_0x40337e):(_0x361327=typeof globalThis<'u'?globalThis:_0x361327||self,_0x40337e(_0x361327[_0x2c91cc(0x4ac)]={},_0x361327[_0x2c91cc(0x315)],_0x361327[_0x2c91cc(0x295)],_0x361327[_0x2c91cc(0x4a8)],_0x361327['UniverSheets'],_0x361327[_0x2c91cc(0x325)],_0x361327[_0x2c91cc(0x31b)],_0x361327[_0x2c91cc(0x482)],_0x361327[_0x2c91cc(0x325)][_0x2c91cc(0x3cb)],_0x361327[_0x2c91cc(0x274)],_0x361327['UniverNetwork'],_0x361327[_0x2c91cc(0x265)],_0x361327[_0x2c91cc(0x3a6)]));}(this,function(_0x45e412,_0x58a81f,_0xa4b471,_0x249642,_0x3a96f2,_0x3f20a0,_0x75c91,_0x4ca987,_0x188568,_0x1e5b22,_0x34e285,_0x1a80fc,_0x25bc6a){const _0x39fe8c=_0x4f8b;Object[_0x39fe8c(0x2e3)](_0x45e412,Symbol[_0x39fe8c(0x39c)],{'value':'Module'});let _0x5ceae9=_0x39fe8c(0x451),_0x52746c={};function _0x39aac9(_0x2e7e12){const _0x266ad1=_0x39fe8c;return JSON[_0x266ad1(0x326)](_0x2e7e12)[_0x266ad1(0x369)];}function _0x45f7c4(_0xed9dcc){'@babel/helpers - typeof';const _0x3d61b8=_0x39fe8c;return _0x45f7c4=typeof Symbol==_0x3d61b8(0x1f2)&&typeof Symbol[_0x3d61b8(0x23c)]==_0x3d61b8(0x2fe)?function(_0x5b2a81){return typeof _0x5b2a81;}:function(_0x9b975e){const _0x3929ee=_0x3d61b8;return _0x9b975e&&typeof Symbol==_0x3929ee(0x1f2)&&_0x9b975e['constructor']===Symbol&&_0x9b975e!==Symbol[_0x3929ee(0x4fb)]?_0x3929ee(0x2fe):typeof _0x9b975e;},_0x45f7c4(_0xed9dcc);}function _0x267d28(_0x4b232e,_0x35961d){const _0x5a3f32=_0x39fe8c;if(_0x45f7c4(_0x4b232e)!='object'||!_0x4b232e)return _0x4b232e;var _0x44eeb2=_0x4b232e[Symbol['toPrimitive']];if(_0x44eeb2!==void 0x0){var _0x250c6a=_0x44eeb2[_0x5a3f32(0x442)](_0x4b232e,_0x35961d||_0x5a3f32(0x304));if(_0x45f7c4(_0x250c6a)!='object')return _0x250c6a;throw TypeError(_0x5a3f32(0x41c));}return(_0x35961d===_0x5a3f32(0x459)?String:Number)(_0x4b232e);}function _0x422c45(_0x2ae261){const _0x1f0223=_0x39fe8c;var _0x3f1750=_0x267d28(_0x2ae261,_0x1f0223(0x459));return _0x45f7c4(_0x3f1750)==_0x1f0223(0x2fe)?_0x3f1750:_0x3f1750+'';}function _0x2f2d1e(_0x2fd6ef,_0x2e4d63,_0x30d7dc){const _0x1db86d=_0x39fe8c;return(_0x2e4d63=_0x422c45(_0x2e4d63))in _0x2fd6ef?Object[_0x1db86d(0x2e3)](_0x2fd6ef,_0x2e4d63,{'value':_0x30d7dc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2fd6ef[_0x2e4d63]=_0x30d7dc,_0x2fd6ef;}let _0x31dc48=function(_0x424773){const _0x5703ad=_0x39fe8c;return _0x424773[_0x5703ad(0x530)]='OTHER_CLIENT_EDITING',_0x424773[_0x5703ad(0x415)]=_0x5703ad(0x415),_0x424773['CONFLICT_PROCESSING']='CONFLICT_PROCESSING',_0x424773['CONFLICT_CACHE_CLEAR_FAILED']='CONFLICT_CACHE_CLEAR_FAILED',_0x424773[_0x5703ad(0x414)]=_0x5703ad(0x414),_0x424773['CLOSE_ROOM']=_0x5703ad(0x47e),_0x424773[_0x5703ad(0x38f)]=_0x5703ad(0x38f),_0x424773[_0x5703ad(0x3d6)]='SOCKET_FAILED_RETRY',_0x424773['SOCKET_FAILED']='SOCKET_FAILED',_0x424773[_0x5703ad(0x468)]=_0x5703ad(0x468),_0x424773;}({});var _0x559d58=class{constructor(){const _0x42cff9=_0x39fe8c;_0x2f2d1e(this,_0x42cff9(0x449),new _0x3f20a0[(_0x42cff9(0x42b))]()),_0x2f2d1e(this,'event$',this[_0x42cff9(0x449)][_0x42cff9(0x349)]());}[_0x39fe8c(0x3aa)](_0x21e6f2){const _0x28a914=_0x39fe8c;this['_event$'][_0x28a914(0x3a2)](_0x21e6f2);}},_0x20a6d6=class{constructor(){const _0x109504=_0x39fe8c;_0x2f2d1e(this,_0x109504(0x3f5),new _0x3f20a0[(_0x109504(0x42b))]()),_0x2f2d1e(this,_0x109504(0x463),this[_0x109504(0x3f5)]['asObservable']());}[_0x39fe8c(0x4c3)](_0x4c590f){const _0x2e64bb=_0x39fe8c;this[_0x2e64bb(0x3f5)][_0x2e64bb(0x3a2)](_0x4c590f);}};function _0x32d44(_0x40b0c5,_0x799be5){return function(_0x543e37,_0x31ee6d){_0x799be5(_0x543e37,_0x31ee6d,_0x40b0c5);};}function _0xdb6dd9(_0x255b78,_0x394513,_0x28ca3b,_0x4d6e4e){const _0x34ed63=_0x39fe8c;var _0xb23c71=arguments[_0x34ed63(0x369)],_0x3e52a7=_0xb23c71<0x3?_0x394513:_0x4d6e4e===null?_0x4d6e4e=Object[_0x34ed63(0x489)](_0x394513,_0x28ca3b):_0x4d6e4e,_0xdf056a;if(typeof Reflect==_0x34ed63(0x542)&&typeof Reflect[_0x34ed63(0x28e)]==_0x34ed63(0x1f2))_0x3e52a7=Reflect[_0x34ed63(0x28e)](_0x255b78,_0x394513,_0x28ca3b,_0x4d6e4e);else{for(var _0x25197c=_0x255b78[_0x34ed63(0x369)]-0x1;_0x25197c>=0x0;_0x25197c--)(_0xdf056a=_0x255b78[_0x25197c])&&(_0x3e52a7=(_0xb23c71<0x3?_0xdf056a(_0x3e52a7):_0xb23c71>0x3?_0xdf056a(_0x394513,_0x28ca3b,_0x3e52a7):_0xdf056a(_0x394513,_0x28ca3b))||_0x3e52a7);}return _0xb23c71>0x3&&_0x3e52a7&&Object[_0x34ed63(0x2e3)](_0x394513,_0x28ca3b,_0x3e52a7),_0x3e52a7;}let _0xe297ca=class extends _0xa4b471['Disposable']{constructor(_0x391cca){const _0x24bf4c=_0x39fe8c;super(),this[_0x24bf4c(0x46b)]=_0x391cca,_0x2f2d1e(this,_0x24bf4c(0x254),new Map()),_0x2f2d1e(this,_0x24bf4c(0x54d),new _0x3f20a0[(_0x24bf4c(0x42b))]()),this[_0x24bf4c(0x1f7)]((0x0,_0x3f20a0[_0x24bf4c(0x237)])(this[_0x24bf4c(0x46b)]['getTypeOfUnitDisposed$'](_0xa4b471[_0x24bf4c(0x4d0)][_0x24bf4c(0x536)])[_0x24bf4c(0x4b1)]((0x0,_0x188568[_0x24bf4c(0x205)])(_0x548587=>_0x548587[_0x24bf4c(0x2e9)]())),this[_0x24bf4c(0x46b)][_0x24bf4c(0x4a9)](_0xa4b471[_0x24bf4c(0x4d0)][_0x24bf4c(0x4b7)])[_0x24bf4c(0x4b1)]((0x0,_0x188568['map'])(_0xeb151b=>_0xeb151b['getUnitId']())),this[_0x24bf4c(0x46b)][_0x24bf4c(0x4a9)](_0xa4b471[_0x24bf4c(0x4d0)][_0x24bf4c(0x544)])[_0x24bf4c(0x4b1)]((0x0,_0x188568[_0x24bf4c(0x205)])(_0x17ee5c=>_0x17ee5c[_0x24bf4c(0x2e9)]())),this[_0x24bf4c(0x46b)][_0x24bf4c(0x4a9)](_0xa4b471['UniverInstanceType']['UNIVER_BASE'])['pipe']((0x0,_0x188568[_0x24bf4c(0x205)])(_0x223c23=>_0x223c23['getUnitId']())))[_0x24bf4c(0x27e)](_0xe640e3=>this[_0x24bf4c(0x2d2)](_0xe640e3)));}[_0x39fe8c(0x34d)](_0x245679){const _0x274b9c=_0x39fe8c;return this[_0x274b9c(0x254)][_0x274b9c(0x332)](_0x245679)?(0x0,_0x3f20a0['of'])(this[_0x274b9c(0x254)][_0x274b9c(0x512)](_0x245679)):this[_0x274b9c(0x54d)][_0x274b9c(0x4b1)]((0x0,_0x188568['map'])(_0x58e152=>{const _0x17fa8c=_0x274b9c;if(_0x58e152===_0x245679)return this[_0x17fa8c(0x254)]['get'](_0x58e152);}));}[_0x39fe8c(0x497)](_0x5d0517,_0x1a6036){const _0x41eaae=_0x39fe8c;let _0x14a89f=this[_0x41eaae(0x254)]['get'](_0x5d0517);_0x14a89f||(_0x14a89f=new _0x4d192e(),this[_0x41eaae(0x254)][_0x41eaae(0x4c0)](_0x5d0517,_0x14a89f),this[_0x41eaae(0x54d)][_0x41eaae(0x3a2)](_0x5d0517)),_0x14a89f[_0x41eaae(0x497)](_0x1a6036);}[_0x39fe8c(0x207)](_0x1a6fde,_0x2cb644){const _0x545fdf=_0x39fe8c;let _0x50c503=this['_roomMembers'][_0x545fdf(0x512)](_0x1a6fde);_0x50c503&&_0x50c503[_0x545fdf(0x207)](_0x2cb644);}['getRoom'](_0x2849c3){const _0x3580a4=_0x39fe8c;return this['_roomMembers'][_0x3580a4(0x512)](_0x2849c3);}['getMember'](_0x1fd9de,_0x8b73c7){const _0x51d61b=_0x39fe8c;let _0x5668bf=this[_0x51d61b(0x254)][_0x51d61b(0x512)](_0x1fd9de);if(_0x5668bf)return _0x5668bf[_0x51d61b(0x2cf)](_0x8b73c7);}[_0x39fe8c(0x2d2)](_0x4e4116){const _0xab7eda=_0x39fe8c;let _0x32aebf=this[_0xab7eda(0x254)][_0xab7eda(0x512)](_0x4e4116);_0x32aebf&&(_0x32aebf[_0xab7eda(0x283)](),this[_0xab7eda(0x254)][_0xab7eda(0x3db)](_0x4e4116));}[_0x39fe8c(0x283)](){const _0x56f22f=_0x39fe8c;this[_0x56f22f(0x254)][_0x56f22f(0x30f)](_0x3f78ea=>_0x3f78ea[_0x56f22f(0x283)]()),this['_roomMembers'][_0x56f22f(0x4d3)](),this['_roomCreated$'][_0x56f22f(0x4df)]();}};_0xe297ca=_0xdb6dd9([_0x32d44(0x0,_0xa4b471['IUniverInstanceService'])],_0xe297ca);var _0x4d192e=class extends _0xa4b471[_0x39fe8c(0x24a)]{constructor(..._0x148a23){const _0x48fb62=_0x39fe8c;super(..._0x148a23),_0x2f2d1e(this,_0x48fb62(0x217),new Map()),_0x2f2d1e(this,_0x48fb62(0x241),new _0x3f20a0[(_0x48fb62(0x447))](this['_members'])),_0x2f2d1e(this,_0x48fb62(0x2ce),this[_0x48fb62(0x241)]['asObservable']());}[_0x39fe8c(0x283)](){const _0x25c153=_0x39fe8c;this[_0x25c153(0x217)][_0x25c153(0x4d3)](),this[_0x25c153(0x241)]['complete']();}[_0x39fe8c(0x497)](_0x4aea33){const _0xb382dd=_0x39fe8c;this['_members'][_0xb382dd(0x4c0)](_0x4aea33[_0xb382dd(0x2be)],_0x4aea33),this['_emitMembers']();}[_0x39fe8c(0x207)](_0x1cf973){const _0x58799a=_0x39fe8c;this['_members']['delete'](_0x1cf973),this[_0x58799a(0x2c2)]();}[_0x39fe8c(0x2cf)](_0x5a372f){const _0x1f2642=_0x39fe8c;return this[_0x1f2642(0x217)][_0x1f2642(0x512)](_0x5a372f);}[_0x39fe8c(0x377)](){const _0x3f1175=_0x39fe8c;return Array[_0x3f1175(0x366)](this['_members'][_0x3f1175(0x4f7)]());}['_emitMembers'](){const _0xf86e8b=_0x39fe8c;this[_0xf86e8b(0x241)]['next'](this[_0xf86e8b(0x217)]);}};function _0x19954e(_0x5973c7,_0x307393){const _0x4e37ed=_0x39fe8c;if(_0x59b6f6(_0x5973c7))return _0x307393;if(_0x307393[_0x4e37ed(0x3d5)]===_0x58a81f[_0x4e37ed(0x386)][_0x4e37ed(0x341)]){let _0x2ce5ee=_0x534155(_0x5973c7),_0x22234e=_0x307393;return{..._0x22234e,'data':{..._0x22234e[_0x4e37ed(0x250)],'unitID':_0x5973c7['target']['unitId'],'unitType':_0x5973c7[_0x4e37ed(0x51b)][_0x4e37ed(0x23e)]??_0x22234e['data'][_0x4e37ed(0x23e)],'changeset':_0x2ce5ee[_0x4e37ed(0x4ba)](_0x22234e[_0x4e37ed(0x250)][_0x4e37ed(0x4e0)],_0x34ca61(_0x5973c7))}};}if(_0x307393[_0x4e37ed(0x3d5)]===_0x58a81f[_0x4e37ed(0x386)][_0x4e37ed(0x278)]){let _0x1aaaac=_0x307393;return{..._0x1aaaac,'data':{..._0x1aaaac['data'],'unitID':_0x5973c7['target'][_0x4e37ed(0x441)],'unitType':_0x5973c7['target'][_0x4e37ed(0x23e)]??_0x1aaaac[_0x4e37ed(0x250)]['unitType']}};}return _0x307393;}function _0x4f9b8b(_0x4259a1,_0xe5cee1){const _0xc7dc77=_0x39fe8c;if(_0x59b6f6(_0x4259a1))return[_0xe5cee1];switch(_0xe5cee1[_0xc7dc77(0x3d5)]){case _0x58a81f[_0xc7dc77(0x386)][_0xc7dc77(0x448)]:return[_0x5d19b2(_0x4259a1,_0xe5cee1)];case _0x58a81f[_0xc7dc77(0x386)]['PSEUDO_FETCH_MISSING_RESULT']:return[_0x342aad(_0x4259a1,_0xe5cee1)];case _0x58a81f[_0xc7dc77(0x386)][_0xc7dc77(0x388)]:return[_0x19be60(_0x4259a1,_0xe5cee1)];default:return[_0xe5cee1];}}function _0x59b6f6(_0x674419){const _0xa8a3c3=_0x39fe8c;return _0x674419[_0xa8a3c3(0x51b)]['endpoint']==null&&_0x674419['target'][_0xa8a3c3(0x441)]===_0x674419['localUnitId']&&!_0x674419[_0xa8a3c3(0x4e0)];}function _0x5d19b2(_0x372980,_0x2b1ea4){const _0x2217b8=_0x39fe8c;return{..._0x2b1ea4,'data':(0x0,_0x58a81f[_0x2217b8(0x319)])(_0x52fe72(_0x372980,(0x0,_0x58a81f['parseProtocolChangeset'])(_0x2b1ea4[_0x2217b8(0x250)])))};}function _0x19be60(_0x17e8e9,_0x29b443){const _0x482217=_0x39fe8c;return{..._0x29b443,'data':_0x52fe72(_0x17e8e9,_0x29b443[_0x482217(0x250)])};}function _0x342aad(_0x2b2069,_0x5dab01){const _0x29b54c=_0x39fe8c;let _0x394e29=_0x5dab01[_0x29b54c(0x250)];return{..._0x5dab01,'data':{..._0x394e29,'changesets':_0x394e29[_0x29b54c(0x488)]['map'](_0x33dca5=>(0x0,_0x58a81f[_0x29b54c(0x319)])(_0x52fe72(_0x2b2069,(0x0,_0x58a81f['parseProtocolChangeset'])(_0x33dca5))))}};}function _0x52fe72(_0x56aa81,_0x2ec544){const _0x4a9c59=_0x39fe8c;return _0x534155(_0x56aa81)[_0x4a9c59(0x3ab)](_0x2ec544,_0x34ca61(_0x56aa81));}function _0x534155(_0x3129e5){const _0x34f26e=_0x39fe8c;if(!_0x3129e5[_0x34f26e(0x4e0)])throw Error(_0x34f26e(0x3eb));return _0x3129e5[_0x34f26e(0x4e0)];}function _0x34ca61(_0x58581f){const _0x1ea7aa=_0x39fe8c;return{'localUnitId':_0x58581f[_0x1ea7aa(0x226)],'unitType':_0x58581f[_0x1ea7aa(0x23e)],'target':_0x58581f[_0x1ea7aa(0x51b)]};}let _0xb666ab=function(_0x24e14e){const _0x2c248c=_0x39fe8c;return _0x24e14e[_0x24e14e[_0x2c248c(0x3e7)]=0x0]='IDLE',_0x24e14e[_0x24e14e[_0x2c248c(0x29e)]=0x1]=_0x2c248c(0x29e),_0x24e14e[_0x24e14e[_0x2c248c(0x496)]=0x2]=_0x2c248c(0x496),_0x24e14e[_0x24e14e[_0x2c248c(0x381)]=0x3]='ONLINE',_0x24e14e;}({}),_0x46077d={[_0x75c91[_0x39fe8c(0x321)]['FAIL']]:_0x39fe8c(0x2db),[_0x75c91['CmdRspCode']['JOIN_ROOM_FULL']]:'session.room-full',[_0x75c91[_0x39fe8c(0x321)][_0x39fe8c(0x301)]]:_0x39fe8c(0x37b),[_0x75c91['CmdRspCode']['JOIN_ROOM_PERMISSION_DENIED']]:'session.room-permission-denied',[_0x75c91[_0x39fe8c(0x321)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x39fe8c(0x46c)},_0x527586=class extends _0xa4b471[_0x39fe8c(0x230)]{get['sessionStatus'](){const _0x47b4e0=_0x39fe8c;return this[_0x47b4e0(0x38b)][_0x47b4e0(0x4c8)]();}constructor(_0xf41c25,_0x206813,_0x4df304,_0x258da6,_0x3135d6,_0x1402c6,_0x4fd4bf,_0x207861){const _0x2af3bb=_0x39fe8c;super(),this[_0x2af3bb(0x2a4)]=_0xf41c25,this['_logService']=_0x4df304,this['_configService']=_0x258da6,this['_memberService']=_0x3135d6,this[_0x2af3bb(0x4cb)]=_0x1402c6,this['_collaborationUIEventService']=_0x4fd4bf,this['_telemetryService']=_0x207861,_0x2f2d1e(this,_0x2af3bb(0x38b),new _0x3f20a0['BehaviorSubject'](0x0)),_0x2f2d1e(this,_0x2af3bb(0x3a0),this[_0x2af3bb(0x38b)]['asObservable']()),_0x2f2d1e(this,_0x2af3bb(0x449),new _0x3f20a0[(_0x2af3bb(0x42b))]()),_0x2f2d1e(this,_0x2af3bb(0x39a),this['_event$']['asObservable']()),_0x2f2d1e(this,_0x2af3bb(0x394),void 0x0),_0x2f2d1e(this,_0x2af3bb(0x510),void 0x0),_0x2f2d1e(this,'_collaborationTimeoutTimer',void 0x0),_0x2f2d1e(this,_0x2af3bb(0x4e1),!0x1),_0x2f2d1e(this,_0x2af3bb(0x221),null),this[_0x2af3bb(0x4e1)]=!!this[_0x2af3bb(0x367)],_0x206813[_0x2af3bb(0x4b1)]((0x0,_0x3f20a0[_0x2af3bb(0x523)])(this[_0x2af3bb(0x46a)]))[_0x2af3bb(0x27e)](_0x28dab1=>{const _0x1ddd05=_0x2af3bb;if(_0x28dab1!==void 0x0){if(this['_socket']=_0x28dab1,_0x28dab1)this[_0x1ddd05(0x4f8)](_0x28dab1),this[_0x1ddd05(0x510)]=_0x28dab1[_0x1ddd05(0x445)][_0x1ddd05(0x27e)](_0x2a6bc2=>{const _0x24a2b8=_0x1ddd05;_0x2a6bc2[_0x24a2b8(0x2bf)]===this[_0x24a2b8(0x2a4)][_0x24a2b8(0x51b)][_0x24a2b8(0x441)]&&this[_0x24a2b8(0x4bf)](_0x2a6bc2);});else{var _0x5a30dc;this[_0x1ddd05(0x3e8)](),this[_0x1ddd05(0x38b)][_0x1ddd05(0x3a2)](0x2),(_0x5a30dc=this['_socketMessageSubscription'])==null||_0x5a30dc[_0x1ddd05(0x357)](),this[_0x1ddd05(0x510)]=null;}}});}[_0x39fe8c(0x469)](){const _0x41509b=_0x39fe8c;var _0x2aa974;return((_0x2aa974=this[_0x41509b(0x394)])==null?void 0x0:_0x2aa974[_0x41509b(0x2be)])??null;}['dispose'](){const _0xb5a896=_0x39fe8c;super['dispose'](),this['close'](),this[_0xb5a896(0x46a)][_0xb5a896(0x3a2)](),this[_0xb5a896(0x46a)][_0xb5a896(0x4df)]();}[_0x39fe8c(0x354)](){const _0x457803=_0x39fe8c;var _0x1f0b08;this[_0x457803(0x3e8)](),(_0x1f0b08=this[_0x457803(0x394)])==null||_0x1f0b08[_0x457803(0x3bc)]({'cmd':_0x75c91[_0x457803(0x2d3)][_0x457803(0x29f)],'data':{'roomID':this[_0x457803(0x2a4)][_0x457803(0x51b)][_0x457803(0x441)]}}),this[_0x457803(0x449)][_0x457803(0x4df)](),this[_0x457803(0x38b)][_0x457803(0x4df)]();}[_0x39fe8c(0x4bf)](_0x2ab252){const _0x3fb087=_0x39fe8c;_0x2ab252[_0x3fb087(0x282)]===_0x75c91[_0x3fb087(0x2d3)]['JOIN']?this[_0x3fb087(0x4d1)](_0x2ab252):_0x2ab252[_0x3fb087(0x282)]===_0x75c91[_0x3fb087(0x2d3)][_0x3fb087(0x204)]&&this['_onRecvEvent'](_0x2ab252);}[_0x39fe8c(0x4f8)](_0x1d77b2){const _0x5c22bd=_0x39fe8c;this[_0x5c22bd(0x38b)][_0x5c22bd(0x3a2)](0x1),_0x1d77b2[_0x5c22bd(0x3bc)]({'cmd':_0x75c91[_0x5c22bd(0x2d3)][_0x5c22bd(0x3f9)],'routeKey':this[_0x5c22bd(0x2a4)]['target'][_0x5c22bd(0x441)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5c22bd(0x2a4)][_0x5c22bd(0x51b)][_0x5c22bd(0x441)]}]}});}[_0x39fe8c(0x4d1)](_0x23a92e){const _0xacdbb1=_0x39fe8c;var _0x214b29;if(_0x23a92e['code']in _0x46077d){this[_0xacdbb1(0x1e9)]['emitEvent']({'id':'JOIN_ROOM_FAILED','data':_0x46077d[_0x23a92e[_0xacdbb1(0x2d8)]]}),this[_0xacdbb1(0x38b)]['next'](0x2);return;}this[_0xacdbb1(0x38b)][_0xacdbb1(0x3a2)](0x3);let _0x3a96a0=(_0x214b29=_0x23a92e[_0xacdbb1(0x250)][_0xacdbb1(0x22a)][this[_0xacdbb1(0x2a4)][_0xacdbb1(0x51b)]['unitId']])==null?void 0x0:_0x214b29['members'];_0x3a96a0&&_0x3a96a0['forEach'](_0x1b2dfd=>this[_0xacdbb1(0x514)][_0xacdbb1(0x497)](this[_0xacdbb1(0x2a4)][_0xacdbb1(0x226)],_0x1b2dfd));}['_onRecvEvent'](_0x571859){const _0x5c9fea=_0x39fe8c;try{let _0x1dd2ed=_0x4f9b8b(this[_0x5c9fea(0x2a4)],_0x571859[_0x5c9fea(0x250)]);for(let _0x362943 of _0x1dd2ed)switch(_0x362943['eventID']){case _0x58a81f['CollaborationEvent'][_0x5c9fea(0x27b)]:this[_0x5c9fea(0x299)](_0x362943),this['_event$']['next'](_0x362943);break;case _0x58a81f[_0x5c9fea(0x386)][_0x5c9fea(0x365)]:this[_0x5c9fea(0x3d3)](_0x362943),this[_0x5c9fea(0x449)][_0x5c9fea(0x3a2)](_0x362943);break;case _0x58a81f[_0x5c9fea(0x386)][_0x5c9fea(0x1d3)]:case _0x58a81f[_0x5c9fea(0x386)][_0x5c9fea(0x388)]:this[_0x5c9fea(0x48e)](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x5c9fea(0x3a2)](_0x362943);break;case _0x58a81f['CollaborationEvent']['MSG_FOR_ERROR']:this[_0x5c9fea(0x30a)][_0x5c9fea(0x29b)](_0x5c9fea(0x4de)+JSON[_0x5c9fea(0x326)](_0x362943)),this[_0x5c9fea(0x449)][_0x5c9fea(0x3a2)](_0x362943);break;case _0x58a81f[_0x5c9fea(0x386)][_0x5c9fea(0x526)]:this['_commentService'][_0x5c9fea(0x4c3)](_0x362943['data']),this[_0x5c9fea(0x449)][_0x5c9fea(0x3a2)](_0x362943);break;default:this[_0x5c9fea(0x449)]['next'](_0x362943);}}catch(_0x4e6b8a){this[_0x5c9fea(0x30a)][_0x5c9fea(0x29b)](_0x4e6b8a,_0x571859);}}[_0x39fe8c(0x299)](_0x3c239f){const _0x270e9b=_0x39fe8c;this[_0x270e9b(0x514)][_0x270e9b(0x497)](this[_0x270e9b(0x2a4)][_0x270e9b(0x226)],_0x3c239f[_0x270e9b(0x250)]);}[_0x39fe8c(0x3d3)](_0x16096b){const _0x5d0f58=_0x39fe8c;this[_0x5d0f58(0x514)][_0x5d0f58(0x207)](this['_identity'][_0x5d0f58(0x226)],_0x16096b[_0x5d0f58(0x250)][_0x5d0f58(0x2be)]);}async[_0x39fe8c(0x3bc)](_0x4d10a5,_0x24fff7){const _0x118c4e=_0x39fe8c;if(this[_0x118c4e(0x43f)]!==0x3||!this['_socket'])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x51db82=_0x19954e(this[_0x118c4e(0x2a4)],_0x4d10a5);_0x51db82['eventID']===_0x58a81f[_0x118c4e(0x386)][_0x118c4e(0x341)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x118c4e(0x537)](_0x51db82)),this[_0x118c4e(0x394)][_0x118c4e(0x3bc)]({'cmd':_0x75c91[_0x118c4e(0x2d3)][_0x118c4e(0x53b)],'routeKey':this[_0x118c4e(0x2a4)][_0x118c4e(0x51b)][_0x118c4e(0x441)],'routeType':'','data':_0x51db82});}catch(_0x32819f){this[_0x118c4e(0x30a)][_0x118c4e(0x29b)](_0x32819f);}}[_0x39fe8c(0x267)](){const _0x56228e=_0x39fe8c;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x423b10=_0x4f8b;this[_0x423b10(0x303)]=null,this[_0x423b10(0x1e9)]['emitEvent']({'id':_0x423b10(0x468)});},this[_0x56228e(0x481)][_0x56228e(0x472)]('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x39fe8c(0x408)](){const _0x15a327=_0x39fe8c;this[_0x15a327(0x303)]&&=(clearTimeout(this[_0x15a327(0x303)]),null);}['_startTelemetryCollaborationNewChangeset'](_0x2db9c4){const _0x14ee43=_0x39fe8c;if(!this[_0x14ee43(0x4e1)])return;let {data:_0x35ef3e}=_0x2db9c4,{unitID:_0x37cd19,changeset:_0x2b5d9c}=_0x35ef3e,{mutations:_0x98f131,type:_0xd9f67b}=_0x2b5d9c;this['_telemetryInfo']={'unitId':_0x37cd19,'type':_0xd9f67b,'startTime':performance[_0x14ee43(0x524)](),'stopTime':0x0,'duration':0x0,'size':_0x39aac9(_0x98f131)};}[_0x39fe8c(0x48e)](){const _0x1ea72c=_0x39fe8c;this['_shouldReportTelemetry']&&(this[_0x1ea72c(0x221)]?(this['_telemetryInfo'][_0x1ea72c(0x422)]=performance[_0x1ea72c(0x524)](),this[_0x1ea72c(0x221)][_0x1ea72c(0x4c9)]=this['_telemetryInfo'][_0x1ea72c(0x422)]-this[_0x1ea72c(0x221)][_0x1ea72c(0x383)],this[_0x1ea72c(0x367)][_0x1ea72c(0x222)](_0x1ea72c(0x31d),this[_0x1ea72c(0x221)]),this[_0x1ea72c(0x221)]=null):this[_0x1ea72c(0x30a)][_0x1ea72c(0x29b)](_0x1ea72c(0x2c7),_0x1ea72c(0x21c)));}[_0x39fe8c(0x3e8)](){const _0x2b73b1=_0x39fe8c;this[_0x2b73b1(0x221)]=null;}};_0x527586=_0xdb6dd9([_0x32d44(0x2,_0xa4b471['ILogService']),_0x32d44(0x3,_0xa4b471[_0x39fe8c(0x345)]),_0x32d44(0x4,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xe297ca)),_0x32d44(0x5,(0x0,_0xa4b471['Inject'])(_0x20a6d6)),_0x32d44(0x6,(0x0,_0xa4b471['Inject'])(_0x559d58)),_0x32d44(0x7,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x4ca987['ITelemetryService']))],_0x527586);let _0x4ed09e=(0x0,_0xa4b471[_0x39fe8c(0x2e1)])(_0x39fe8c(0x2cc));function _0x84cfe6(_0x49afe8,_0xf1c5a){const _0x31966d=_0x39fe8c;return _0xf1c5a===''||_0xf1c5a==null?'unit-cache-'+_0x49afe8:_0x31966d(0x26f)+_0x49afe8+'-'+encodeURIComponent(_0xf1c5a);}function _0x3799bb(_0x141e30){const _0x4c59d1=_0x39fe8c;let {unitID:_0x4d0e56,mutations:_0x434b9e}=_0x141e30;return{'unitId':_0x4d0e56,'subUnitId':_0x434b9e[_0x4c59d1(0x369)]>0x0?_0x434b9e[0x0][_0x4c59d1(0x396)][_0x4c59d1(0x31e)]:null};}let _0x3c187c=class{constructor(_0x4860ef,_0x5a223c,_0x74e311){const _0x57eed8=_0x39fe8c;this[_0x57eed8(0x483)]=_0x4860ef,this[_0x57eed8(0x245)]=_0x5a223c,this[_0x57eed8(0x201)]=_0x74e311;}[_0x39fe8c(0x54a)](_0x1d84a3){const _0x3889aa=_0x39fe8c;var _0x4a81a6,_0xbcf56c;let _0x2c9620=this[_0x3889aa(0x483)]['get'](_0x3a96f2[_0x3889aa(0x30e)]),{unitId:_0x4d7f0a,subUnitId:_0x1706bf}=_0x3799bb(_0x1d84a3),_0x20ebe4=_0x2c9620==null?void 0x0:_0x2c9620[_0x3889aa(0x20d)](_0x4d7f0a)['getCurrentSelections'](),_0x5961e2=(_0x4a81a6=this[_0x3889aa(0x201)][_0x3889aa(0x38d)](_0x4d7f0a))==null||(_0x4a81a6=_0x4a81a6[_0x3889aa(0x370)]())==null?void 0x0:_0x4a81a6[_0x3889aa(0x458)]();if(_0x20ebe4[_0x3889aa(0x369)]===0x0||!_0x4d7f0a||!_0x1706bf)return;let _0x2eadf3=[{'id':_0x3a96f2[_0x3889aa(0x1fa)]['id'],'params':{'unitId':_0x4d7f0a,'subUnitId':_0x5961e2,'selections':_0xa4b471['Tools'][_0x3889aa(0x398)](_0x20ebe4)}}],_0x17fe12=this[_0x3889aa(0x245)][_0x3889aa(0x289)](_0x1d84a3,_0x2eadf3);if(!(0x0,_0x58a81f['isTransformMutationsWithChangesetSuccess'])(_0x17fe12))throw _0x17fe12['error'];let _0x28ecf1=(_0xbcf56c=_0x17fe12[_0x3889aa(0x45c)][0x0])==null||(_0xbcf56c=_0xbcf56c[_0x3889aa(0x396)])==null?void 0x0:_0xbcf56c['selections'];if(Array['isArray'](_0x28ecf1)&&_0x28ecf1[_0x3889aa(0x369)]){if(_0x28ecf1['length']===_0x2eadf3[0x0][_0x3889aa(0x396)][_0x3889aa(0x229)][_0x3889aa(0x369)]&&_0x28ecf1[_0x3889aa(0x324)]((_0x98665e,_0x3befc5)=>_0xa4b471[_0x3889aa(0x491)][_0x3889aa(0x3df)](_0x98665e[_0x3889aa(0x547)],_0x2eadf3[0x0]['params']['selections'][_0x3befc5][_0x3889aa(0x547)])))return;this[_0x3889aa(0x483)][_0x3889aa(0x512)](_0xa4b471[_0x3889aa(0x385)])[_0x3889aa(0x300)](_0x3a96f2[_0x3889aa(0x1fa)]['id'],{'unitId':_0x4d7f0a,'subUnitId':_0x5961e2,'selections':_0x28ecf1});}}};_0x3c187c=_0xdb6dd9([_0x32d44(0x0,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471['Injector'])),_0x32d44(0x1,_0x58a81f['ITransformService']),_0x32d44(0x2,_0xa4b471[_0x39fe8c(0x2cb)])],_0x3c187c);let _0x117313=(0x0,_0xa4b471[_0x39fe8c(0x2e1)])(_0x39fe8c(0x29d)),_0x5dc224=function(_0x57295a){const _0x3177ae=_0x39fe8c;return _0x57295a[_0x57295a['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x3177ae(0x498),_0x57295a[_0x57295a[_0x3177ae(0x3a1)]=0x1]=_0x3177ae(0x3a1),_0x57295a;}({});function _0x301803(_0x5b83c0){const _0x11c419=_0x39fe8c;var _0xf6956b;return!!((_0xf6956b=_0x5b83c0[_0x11c419(0x396)])!=null&&_0xf6956b[_0x11c419(0x259)]);}let _0x2b5663=new Set([_0x3a96f2[_0x39fe8c(0x3dd)]['id']]),_0x39ce07=new Set([_0x1e5b22[_0x39fe8c(0x379)]['id'],_0x1e5b22['EnsureSlideMasterPageMutation']['id'],_0x1e5b22['MoveSlidePageMutation']['id'],_0x1e5b22['RemoveSlidePageMutation']['id']]);function _0x5b2aef(_0x2beaae,_0x53ed38=_0x2b5663){const _0x2b8e98=_0x39fe8c;let _0x39f7e3=[];for(let _0x4e2bf1 of _0x2beaae){if(_0x53ed38['has'](_0x4e2bf1['id'])||_0x301803(_0x4e2bf1)){if(_0x39f7e3['length']>0x0)break;_0x39f7e3[_0x2b8e98(0x3dc)](_0x4e2bf1);break;}_0x39f7e3['push'](_0x4e2bf1);}return _0x39f7e3;}function _0x2b14e7(_0x42563a,_0x55ea1d,_0x3ba1e3,_0x829f3e,_0x2d85dd){const _0x59ba4d=_0x39fe8c;let _0x3b8a7b=_0x5b2aef(_0x42563a),_0x11f957=_0x2d85dd[_0x59ba4d(0x4d2)](),_0x246a63=(_0x11f957==null?void 0x0:_0x11f957[_0x59ba4d(0x216)])??'unknown',_0x4ac5b4=(_0x11f957==null?void 0x0:_0x11f957[_0x59ba4d(0x2be)])??'unknown';return{'changeset':{'unitID':_0x55ea1d,'type':(0x0,_0x58a81f[_0x59ba4d(0x3f0)])(_0x3ba1e3[_0x59ba4d(0x291)](_0x55ea1d)),'baseRev':_0x829f3e['getCurrentRevOfUnit'](_0x55ea1d),'revision':0x0,'userID':_0x246a63,'memberID':_0x4ac5b4,'mutations':_0x3b8a7b},'pendingMutations':_0x42563a[_0x59ba4d(0x302)](_0x3b8a7b['length'])};}let _0x6a2114=_0x2b14e7;function _0x3975b5(_0x53c730,_0xa8e1d1,_0x570a7c,_0x5c52e5,_0x378e06){const _0x337392=_0x39fe8c;let _0x2b9027=_0x5b2aef(_0x53c730,_0x39ce07),_0x249f5a=_0x378e06[_0x337392(0x4d2)](),_0x276265=(_0x249f5a==null?void 0x0:_0x249f5a['userID'])??_0x337392(0x4e7),_0x4ef466=(_0x249f5a==null?void 0x0:_0x249f5a[_0x337392(0x2be)])??_0x337392(0x4e7);return{'changeset':{'unitID':_0xa8e1d1,'type':(0x0,_0x58a81f['mapDocumentTypeToUniverInstanceType'])(_0x570a7c[_0x337392(0x291)](_0xa8e1d1)),'baseRev':_0x5c52e5[_0x337392(0x218)](_0xa8e1d1),'revision':0x0,'userID':_0x276265,'memberID':_0x4ef466,'mutations':_0x2b9027},'pendingMutations':_0x53c730[_0x337392(0x302)](_0x2b9027[_0x337392(0x369)])};}function _0x1ba985(_0x3481ab,_0x24ed69,_0x35f205,_0x4b7c91,_0x87148a){const _0x44bb80=_0x39fe8c;let _0x5ba6ea=_0x3481ab[_0x44bb80(0x2ba)]((_0x8940ea,_0x4a8ca7)=>{const _0x11ab90=_0x44bb80;let _0x51815a=_0x8940ea[_0x8940ea[_0x11ab90(0x369)]-0x1],{id:_0x2e920e}=_0x51815a??{},{id:_0x3856b9,type:_0x5b70af}=_0x4a8ca7,_0x2f4d2e=_0x4a8ca7[_0x11ab90(0x396)];if(_0x2e920e&&_0x2e920e!==_0x3856b9)throw Error(_0x11ab90(0x50a)+_0x2e920e+_0x11ab90(0x2ca)+_0x3856b9+'.');if(!_0x51815a)return[{'id':_0x3856b9,'type':_0x5b70af,'params':{'unitId':_0x2f4d2e[_0x11ab90(0x441)],'textRanges':_0x2f4d2e[_0x11ab90(0x1ea)],'actions':_0x2f4d2e[_0x11ab90(0x2e8)]}}];let _0x43716f=_0x51815a[_0x11ab90(0x396)];return _0x867a38(_0x43716f,_0x2f4d2e)?[..._0x8940ea[_0x11ab90(0x302)](0x0,-0x1),{..._0x51815a,'id':_0x3856b9,'type':_0x5b70af,'params':{'unitId':_0x2f4d2e[_0x11ab90(0x441)],'textRanges':_0x2f4d2e[_0x11ab90(0x1ea)],'actions':_0xa4b471[_0x11ab90(0x2d4)][_0x11ab90(0x499)](_0x43716f['actions'],_0x2f4d2e[_0x11ab90(0x2e8)])}}]:[..._0x8940ea,{'id':_0x3856b9,'type':_0x5b70af,'params':{'unitId':_0x2f4d2e[_0x11ab90(0x441)],'textRanges':_0x2f4d2e[_0x11ab90(0x1ea)],'actions':_0x2f4d2e['actions']}}];},[]),_0x483d10=_0x87148a[_0x44bb80(0x4d2)](),_0x5e8af9=(_0x483d10==null?void 0x0:_0x483d10[_0x44bb80(0x216)])??_0x44bb80(0x4e7),_0x3335ad=(_0x483d10==null?void 0x0:_0x483d10['memberID'])??_0x44bb80(0x4e7);return{'changeset':{'unitID':_0x24ed69,'type':(0x0,_0x58a81f[_0x44bb80(0x3f0)])(_0x35f205[_0x44bb80(0x291)](_0x24ed69)),'baseRev':_0x4b7c91[_0x44bb80(0x218)](_0x24ed69),'revision':0x0,'userID':_0x5e8af9,'memberID':_0x3335ad,'mutations':_0x5ba6ea},'pendingMutations':_0x3481ab[_0x44bb80(0x302)](_0x3481ab['length'])};}function _0x867a38(_0x34fd16,_0x11b32c){const _0x28254f=_0x39fe8c;return!_0x9f1cb2(_0x34fd16)&&!_0x9f1cb2(_0x11b32c)&&_0x28380a(_0x34fd16['actions'],_0x11b32c[_0x28254f(0x2e8)]);}function _0x9f1cb2(_0x58d800){const _0x5a9c46=_0x39fe8c;return _0x58d800[_0x5a9c46(0x4f9)]!==void 0x0;}function _0x28380a(_0x2a1cac,_0x2d1873){return _0x2a99e5(_0x2a1cac)&&_0x2a99e5(_0x2d1873)&&!_0x590f5d(_0x2a1cac)&&!_0x590f5d(_0x2d1873)&&!_0x79bf87(_0x2a1cac)&&!_0x79bf87(_0x2d1873);}function _0x2a99e5(_0x387c33){const _0xaebe48=_0x39fe8c;return _0x2f9be9(_0x387c33)[_0xaebe48(0x336)](_0xe37cd1=>_0x1d6f4d(_0xe37cd1)&&_0xe37cd1['et']===_0xaebe48(0x53a));}function _0x79bf87(_0x3258c0){const _0x31d374=_0x39fe8c;return _0x2f9be9(_0x3258c0)[_0x31d374(0x336)](_0x29fd15=>Array[_0x31d374(0x4b0)](_0x29fd15)||typeof _0x29fd15=='string'||typeof _0x29fd15==_0x31d374(0x24d));}function _0x590f5d(_0x300178){const _0x551b8c=_0x39fe8c;return _0x2f9be9(_0x300178)[_0x551b8c(0x336)](_0x585c46=>!_0x1d6f4d(_0x585c46)||_0x585c46['et']!==_0x551b8c(0x53a)||!Array[_0x551b8c(0x4b0)](_0x585c46['e'])?!0x1:_0x585c46['e']['some'](_0x2df6c9=>!_0x1d6f4d(_0x2df6c9)||!_0x1d6f4d(_0x2df6c9[_0x551b8c(0x249)])?!0x1:Object[_0x551b8c(0x4fb)]['hasOwnProperty'][_0x551b8c(0x442)](_0x2df6c9['body'],_0x551b8c(0x4fe))||Object['prototype'][_0x551b8c(0x525)]['call'](_0x2df6c9[_0x551b8c(0x249)],_0x551b8c(0x3be))||Object[_0x551b8c(0x4fb)][_0x551b8c(0x525)][_0x551b8c(0x442)](_0x2df6c9[_0x551b8c(0x249)],'blockRanges')));}function _0x2f9be9(_0x5ad2c3){const _0x25910a=_0x39fe8c;if(!Array[_0x25910a(0x4b0)](_0x5ad2c3))return[];let _0x4c4b8d=_0x5ad2c3[_0x25910a(0x48a)]('body')?_0x5ad2c3:_0x5ad2c3[_0x25910a(0x507)](_0x4142de=>Array[_0x25910a(0x4b0)](_0x4142de)&&_0x4142de[_0x25910a(0x48a)](_0x25910a(0x249)));if(!Array['isArray'](_0x4c4b8d))return[];let _0x107475=_0x4c4b8d[_0x25910a(0x502)]('body');return _0x107475===-0x1?[]:_0x4c4b8d['slice'](_0x107475+0x1);}function _0x1d6f4d(_0x4ba96b){const _0x2fd309=_0x39fe8c;return typeof _0x4ba96b==_0x2fd309(0x542)&&!!_0x4ba96b&&!Array[_0x2fd309(0x4b0)](_0x4ba96b);}function _0x239924(_0xb12ae9,_0x42868e){const _0x3531df=_0x39fe8c;let _0xacd846=new _0x3f20a0[(_0x3531df(0x44a))](0x1);return setTimeout(()=>_0xacd846[_0x3531df(0x3a2)](_0x42868e),_0xb12ae9),_0xacd846[_0x3531df(0x349)]()['pipe']((0x0,_0x3f20a0['take'])(0x1));}var _0x3047fc,_0x36d6e5,_0x152d02;let _0x13e570=function(_0x1d3026){const _0x5615c8=_0x39fe8c;return _0x1d3026[_0x5615c8(0x33e)]=_0x5615c8(0x26b),_0x1d3026[_0x5615c8(0x49f)]='synced',_0x1d3026['PENDING']=_0x5615c8(0x401),_0x1d3026[_0x5615c8(0x45a)]=_0x5615c8(0x3c2),_0x1d3026[_0x5615c8(0x1d5)]='awaiting_with_pending',_0x1d3026[_0x5615c8(0x4ad)]='fetch_missing',_0x1d3026[_0x5615c8(0x414)]=_0x5615c8(0x2a2),_0x1d3026['OFFLINE']=_0x5615c8(0x33b),_0x1d3026;}({}),_0x1ba608=0x4e20,_0x385041=0x2bf20;var _0x8eee0d=class{constructor(_0x1b30a9,_0x53d62a,_0x140e9f,_0x3a260d,_0x2e4f4c,_0x4892a4,_0x4205d0,_0x76047e,_0x292b91){const _0x37fe39=_0x39fe8c;this[_0x37fe39(0x2a8)]=_0x1b30a9,this[_0x37fe39(0x33d)]=_0x53d62a,this[_0x37fe39(0x1f9)]=_0x2e4f4c,this[_0x37fe39(0x461)]=_0x4892a4,this[_0x37fe39(0x350)]=_0x4205d0,this[_0x37fe39(0x450)]=_0x76047e,this['_localCacheService']=_0x292b91,_0x2f2d1e(this,_0x37fe39(0x34e),null),_0x2f2d1e(this,_0x37fe39(0x50d),[]),this[_0x37fe39(0x34e)]=_0x140e9f,this[_0x37fe39(0x50d)]=_0x3a260d;}[_0x39fe8c(0x1e1)](_0x560c27){const _0x1ff6a6=_0x39fe8c;let _0x5a4849=this[_0x1ff6a6(0x450)][_0x1ff6a6(0x218)](this['unitID']);return _0x560c27[_0x1ff6a6(0x42f)]>_0x5a4849+0x1&&(this['_handler']['onMissingChangesets']({'from':_0x5a4849,'to':_0x560c27['revision']-0x1}),!0x0);}[_0x39fe8c(0x52b)](_0x32fe9e){const _0x585076=_0x39fe8c;this[_0x585076(0x350)][_0x585076(0x31a)](this['unitID'],_0x32fe9e);}['_transformSelections'](_0x2a62e5){var _0x351db4,_0x1492ce;(_0x351db4=(_0x1492ce=this['_handler'])['onTransformSelections'])==null||_0x351db4['call'](_0x1492ce,_0x2a62e5);}[_0x39fe8c(0x3f8)](_0x2f5119){const _0x159bb7=_0x39fe8c;var _0x486b7d,_0xba7493;return((_0x486b7d=(_0xba7493=this['_handler'])[_0x159bb7(0x395)])==null?void 0x0:_0x486b7d[_0x159bb7(0x442)](_0xba7493,_0x2f5119))??null;}[_0x39fe8c(0x21e)](_0x15f8a2){var _0x10d2ad,_0x28e42d;return(_0x10d2ad=(_0x28e42d=this['_handler'])['onTransformIME'])==null?void 0x0:_0x10d2ad['call'](_0x28e42d,_0x15f8a2);}[_0x39fe8c(0x23a)](_0x304049){const _0x2ed1fd=_0x39fe8c;var _0x338b79,_0x20527d;return(_0x338b79=(_0x20527d=this['_handler'])['onTransformState'])==null?void 0x0:_0x338b79[_0x2ed1fd(0x442)](_0x20527d,_0x304049);}[_0x39fe8c(0x39d)](_0x581638){const _0x18ca1d=_0x39fe8c;var _0x3c73a3,_0x3fa7b2;return((_0x3c73a3=(_0x3fa7b2=this[_0x18ca1d(0x1f9)])[_0x18ca1d(0x509)])==null?void 0x0:_0x3c73a3['call'](_0x3fa7b2,_0x581638))??_0x581638;}[_0x39fe8c(0x20f)](_0x53355b){const _0x319e7c=_0x39fe8c;var _0x2742d8,_0xb9124b;return((_0x2742d8=(_0xb9124b=this[_0x319e7c(0x1f9)])[_0x319e7c(0x515)])==null?void 0x0:_0x2742d8[_0x319e7c(0x442)](_0xb9124b,_0x53355b))??_0x53355b;}['_syncEditingCollabCursor'](_0x244f3f){const _0x83dc9=_0x39fe8c;if(this[_0x83dc9(0x33d)]===_0xa4b471[_0x83dc9(0x4d0)][_0x83dc9(0x4b7)]){let {unitID:_0x4c7467,mutations:_0x2ce53b,memberID:_0xfa01a6}=_0x244f3f,_0x9d81ce=_0x2ce53b[_0x83dc9(0x369)]>0x0?_0x2ce53b[0x0]['params'][_0x83dc9(0x1ea)]:[];if(Array[_0x83dc9(0x4b0)](_0x9d81ce)&&_0x9d81ce[_0x83dc9(0x369)]>0x0){var _0x1ddbe2,_0x56c6d0;(_0x1ddbe2=(_0x56c6d0=this[_0x83dc9(0x1f9)])[_0x83dc9(0x4bb)])==null||_0x1ddbe2[_0x83dc9(0x442)](_0x56c6d0,{'unitID':_0x4c7467,'memberID':_0xfa01a6,'textRanges':_0x9d81ce});}}}[_0x39fe8c(0x3b7)](){const _0x23e524=_0x39fe8c;var _0xa5597f;(_0xa5597f=this[_0x23e524(0x353)])==null||_0xa5597f[_0x23e524(0x393)](this[_0x23e524(0x2a8)],this['type'],this[_0x23e524(0x34e)],this[_0x23e524(0x50d)]);}['_getCurrentRevision'](){const _0x5e3f49=_0x39fe8c;return this[_0x5e3f49(0x450)]['getCurrentRevOfUnit'](this[_0x5e3f49(0x2a8)]);}[_0x39fe8c(0x3c4)](_0x11b139){const _0x4fc17a=_0x39fe8c;return _0x11b139[_0x4fc17a(0x42f)]<=this[_0x4fc17a(0x27f)]();}['_isEchoedAwaitingChangeset'](_0x783eb){const _0x2c366b=_0x39fe8c;let _0x41e43c=this[_0x2c366b(0x34e)];return!_0x41e43c||!_0x41e43c['sid']||_0x41e43c[_0x2c366b(0x435)]===null||_0x41e43c[_0x2c366b(0x435)]===void 0x0?!0x1:_0x783eb[_0x2c366b(0x2a8)]===_0x41e43c['unitID']&&_0x783eb[_0x2c366b(0x517)]===_0x41e43c[_0x2c366b(0x517)]&&_0x783eb['reqId']===_0x41e43c[_0x2c366b(0x435)];}[_0x39fe8c(0x20c)](_0x54c962){const _0x55e3bb=_0x39fe8c;let _0xbddd76=this[_0x55e3bb(0x34e)];return!(_0xbddd76!=null&&_0xbddd76[_0x55e3bb(0x517)])||_0xbddd76[_0x55e3bb(0x435)]==null||!_0x54c962[_0x55e3bb(0x517)]||_0x54c962[_0x55e3bb(0x435)]==null?!0x1:_0x54c962[_0x55e3bb(0x517)]===_0xbddd76[_0x55e3bb(0x517)]&&_0x54c962[_0x55e3bb(0x435)]===_0xbddd76[_0x55e3bb(0x435)];}[_0x39fe8c(0x1da)](){const _0x1cb845=_0x39fe8c;this[_0x1cb845(0x450)]['incrementRevOfUnit'](this[_0x1cb845(0x2a8)]);}[_0x39fe8c(0x329)](_0x30a880){const _0x2dbad4=_0x39fe8c;let _0x3df349=this[_0x2dbad4(0x39d)](_0x30a880);_0x3df349=this['_transformRemoteChangesetByStateCache'](_0x3df349);let _0x3df9a9=this['_prepareTransformSelections'](_0x3df349),_0x41d2f4=(0x0,_0xa4b471['sequenceExecute'])(_0x3df349['mutations'],this[_0x2dbad4(0x461)],{'fromCollab':!0x0});if(!_0x41d2f4[_0x2dbad4(0x2f1)])throw _0x3df9a9==null||_0x3df9a9[_0x2dbad4(0x2fb)](),_0x41d2f4[_0x2dbad4(0x29b)]instanceof Error?_0x41d2f4[_0x2dbad4(0x29b)]:Error(_0x41d2f4[_0x2dbad4(0x29b)]??'[CollaborationState]:\x20apply\x20error!');_0x3df9a9==null||_0x3df9a9[_0x2dbad4(0x470)](),this[_0x2dbad4(0x21e)](_0x3df349),this['_transformStateCache'](_0x3df349),this['_transformUndoredo'](_0x30a880),this[_0x2dbad4(0x2fa)](_0x3df349),this['_syncEditingCollabCursor'](_0x3df349),this['_incrementRevisionNumber']();}};let _0x4590f6=class extends _0x8eee0d{constructor(_0x186501,_0x26ded1,_0xadbb47,_0x5df2b2,_0x363b01,_0x2f77e0,_0x17ac8d,_0xab91c,_0x4ad053,_0xc0ae76){const _0x5ebbd2=_0x39fe8c;super(_0x186501,_0x26ded1,null,[],_0xadbb47,_0x17ac8d,_0x2f77e0,_0x5df2b2,_0xc0ae76),this[_0x5ebbd2(0x483)]=_0x363b01,this[_0x5ebbd2(0x30a)]=_0xab91c,this[_0x5ebbd2(0x245)]=_0x4ad053,this['localCacheService']=_0xc0ae76,_0x2f2d1e(this,'status','synced');}[_0x39fe8c(0x522)](_0xf954f9){const _0x246ecb=_0x39fe8c;let _0x3fcb6c=this['_injector'][_0x246ecb(0x4bc)](_0x14c1a2,this[_0x246ecb(0x2a8)],this['type'],[_0xf954f9],this[_0x246ecb(0x1f9)]);return _0x3fcb6c['_schedule'](),_0x3fcb6c['_updateLocalCache'](),_0x3fcb6c;}['onRemoteChangeset'](_0x332add){const _0x5e58f1=_0x39fe8c;if(this['_isAppliedRevision'](_0x332add))return this;if(this[_0x5e58f1(0x1e1)](_0x332add))return this['_injector'][_0x5e58f1(0x4bc)](_0x4016f9,this['unitID'],this[_0x5e58f1(0x33d)],null,[],null,[_0x332add],this['_handler'],void 0x0);try{let _0x1f6efc=this['_transformService'][_0x5e58f1(0x289)](_0x332add,[_0x58a81f[_0x5e58f1(0x309)]]);if((0x0,_0x58a81f[_0x5e58f1(0x28d)])(_0x1f6efc)){let {c1Prime:_0x386aba}=_0x1f6efc;return this['_executeRemoteChangeset'](_0x386aba),this;}throw _0x1f6efc['error'];}catch(_0x1fd28a){return this[_0x5e58f1(0x30a)][_0x5e58f1(0x29b)](_0x1fd28a),this[_0x5e58f1(0x2d6)](!0x1);}}[_0x39fe8c(0x2d6)](_0x237158){const _0x506e96=_0x39fe8c;return this['_injector']['createInstance'](_0x13298a,this[_0x506e96(0x2a8)],this[_0x506e96(0x33d)],null,[],this['_handler'],_0x237158);}[_0x39fe8c(0x3da)](_0x4447b4){const _0x509f98=_0x39fe8c;if(_0x4447b4[_0x509f98(0x42f)]<=this[_0x509f98(0x27f)]())return this;throw Error(_0x509f98(0x33a));}[_0x39fe8c(0x358)](){const _0x3843c6=_0x39fe8c;throw Error(_0x3843c6(0x427));}[_0x39fe8c(0x2a5)](){return this;}[_0x39fe8c(0x2bd)](){const _0x22154a=_0x39fe8c;return this[_0x22154a(0x483)][_0x22154a(0x4bc)](_0x46544f,this[_0x22154a(0x2a8)],this[_0x22154a(0x33d)],null,[],this[_0x22154a(0x1f9)]);}[_0x39fe8c(0x378)](){return this;}['resend'](){const _0x3b44ab=_0x39fe8c;throw Error(_0x3b44ab(0x421));}['fetchMiss'](){const _0x973368=_0x39fe8c;let _0xf379bc=this[_0x973368(0x450)][_0x973368(0x218)](this['unitID']);return this[_0x973368(0x1f9)][_0x973368(0x328)]({'from':_0xf379bc,'to':0x0}),this[_0x973368(0x483)][_0x973368(0x4bc)](_0x4016f9,this[_0x973368(0x2a8)],this[_0x973368(0x33d)],null,[],null,[],this['_handler'],void 0x0);}};_0x4590f6=_0xdb6dd9([_0x32d44(0x3,(0x0,_0xa4b471['Inject'])(_0x58a81f[_0x39fe8c(0x4a2)])),_0x32d44(0x4,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471['Injector'])),_0x32d44(0x5,_0xa4b471['IUndoRedoService']),_0x32d44(0x6,_0xa4b471[_0x39fe8c(0x385)]),_0x32d44(0x7,_0xa4b471[_0x39fe8c(0x2b6)]),_0x32d44(0x8,_0x58a81f[_0x39fe8c(0x49e)]),_0x32d44(0x9,(0x0,_0xa4b471['Optional'])(_0x4ed09e))],_0x4590f6);let _0x14c1a2=_0x3047fc=class extends _0x8eee0d{constructor(_0x2a1d7f,_0x295984,_0x264edd,_0x2fc7cd,_0x960648,_0x2b82d2,_0x2d36dd,_0x562941,_0x4ed355,_0x83e24c,_0x2a7e40,_0x5c58fb,_0x16f8ae,_0x1351b6){const _0x5e219e=_0x39fe8c;super(_0x2a1d7f,_0x295984,null,_0x264edd,_0x2fc7cd,_0x4ed355,_0x16f8ae,_0x2b82d2,_0x1351b6),this[_0x5e219e(0x483)]=_0x960648,this[_0x5e219e(0x3cf)]=_0x2d36dd,this[_0x5e219e(0x30a)]=_0x562941,this[_0x5e219e(0x481)]=_0x83e24c,this[_0x5e219e(0x245)]=_0x2a7e40,this[_0x5e219e(0x46b)]=_0x5c58fb,_0x2f2d1e(this,_0x5e219e(0x31c),_0x5e219e(0x401)),_0x2f2d1e(this,_0x5e219e(0x490),null),_0x2f2d1e(this,'_sendingTimer',null);}[_0x39fe8c(0x522)](_0x1d339){const _0x25d16a=_0x39fe8c;return this[_0x25d16a(0x50d)]['push'](_0x1d339),this[_0x25d16a(0x3b7)](),this;}[_0x39fe8c(0x3ca)](_0x424bf5){const _0x56f754=_0x39fe8c;if(this[_0x56f754(0x3c4)](_0x424bf5))return this;if(this[_0x56f754(0x1e1)](_0x424bf5))return this['_clearScheduledTask'](),this[_0x56f754(0x483)][_0x56f754(0x4bc)](_0x4016f9,this[_0x56f754(0x2a8)],this['type'],null,this[_0x56f754(0x50d)],null,[_0x424bf5],this[_0x56f754(0x1f9)],void 0x0);try{let _0x2f9083=this[_0x56f754(0x245)]['transformMutationsWithChangeset'](_0x424bf5,this[_0x56f754(0x50d)]);if((0x0,_0x58a81f['isTransformMutationsWithChangesetSuccess'])(_0x2f9083)){let {c1Prime:_0x465021,m2Prime:_0x487b49}=_0x2f9083;this[_0x56f754(0x329)](_0x465021);let _0xb934ce=this['_injector'][_0x56f754(0x4bc)](_0x3047fc,this[_0x56f754(0x2a8)],this[_0x56f754(0x33d)],_0x487b49,this[_0x56f754(0x1f9)]);this[_0x56f754(0x232)]();let _0x39444d=new Date()['getTime'](),_0x21fd22=this[_0x56f754(0x490)]?Math['max'](this['_scheduleCompleteTimestamp']-_0x39444d,0x0):this[_0x56f754(0x2d0)]();return _0xb934ce[_0x56f754(0x1d9)](_0x21fd22),_0xb934ce;}throw _0x2f9083[_0x56f754(0x29b)];}catch(_0x470891){return this[_0x56f754(0x30a)][_0x56f754(0x29b)](_0x470891),this[_0x56f754(0x2d6)](!0x1);}}['onRemoteAck'](_0x13c834){const _0x37a647=_0x39fe8c;if(_0x13c834[_0x37a647(0x42f)]<=this[_0x37a647(0x27f)]())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x5dd455=_0x39fe8c;throw Error(_0x5dd455(0x3e5));}[_0x39fe8c(0x2a5)](){return this;}[_0x39fe8c(0x2bd)](){const _0x231535=_0x39fe8c;return this[_0x231535(0x232)](),this[_0x231535(0x483)][_0x231535(0x4bc)](_0x46544f,this[_0x231535(0x2a8)],this['type'],null,this[_0x231535(0x50d)],this[_0x231535(0x1f9)]);}['toggleOnline'](){return this;}[_0x39fe8c(0x1d9)](_0x400d41){const _0x40cbfb=_0x39fe8c;let _0x184f1e=_0x400d41??this[_0x40cbfb(0x2d0)]();this[_0x40cbfb(0x490)]=new Date()[_0x40cbfb(0x543)]()+_0x184f1e,this[_0x40cbfb(0x208)]=setTimeout(()=>{const _0x1328de=_0x40cbfb;this[_0x1328de(0x232)]();let _0x28b894=null;switch(this[_0x1328de(0x33d)]){case _0xa4b471['UniverInstanceType'][_0x1328de(0x536)]:_0x28b894=_0x2b14e7(this[_0x1328de(0x50d)],this[_0x1328de(0x2a8)],this['_univerInstanceService'],this[_0x1328de(0x450)],this[_0x1328de(0x3cf)]);break;case _0xa4b471[_0x1328de(0x4d0)][_0x1328de(0x4b7)]:_0x28b894=this[_0x1328de(0x50d)][_0x1328de(0x324)](_0x173458=>_0x173458['id']===_0x249642[_0x1328de(0x244)]['id'])?_0x1ba985(this[_0x1328de(0x50d)],this[_0x1328de(0x2a8)],this['_univerInstanceService'],this[_0x1328de(0x450)],this[_0x1328de(0x3cf)]):_0x2b14e7(this['_pendingMutations'],this[_0x1328de(0x2a8)],this['_univerInstanceService'],this[_0x1328de(0x450)],this[_0x1328de(0x3cf)]);break;case _0xa4b471[_0x1328de(0x4d0)][_0x1328de(0x359)]:_0x28b894=_0x3975b5(this[_0x1328de(0x50d)],this[_0x1328de(0x2a8)],this[_0x1328de(0x46b)],this[_0x1328de(0x450)],this['_userManagerService']);break;case _0xa4b471[_0x1328de(0x4d0)][_0x1328de(0x392)]:_0x28b894=_0x6a2114(this['_pendingMutations'],this[_0x1328de(0x2a8)],this[_0x1328de(0x46b)],this['_revisionService'],this['_userManagerService']);break;case _0xa4b471['UniverInstanceType'][_0x1328de(0x544)]:_0x28b894=_0x2b14e7(this[_0x1328de(0x50d)],this[_0x1328de(0x2a8)],this[_0x1328de(0x46b)],this[_0x1328de(0x450)],this['_userManagerService']);break;case _0xa4b471['UniverInstanceType']['UNIVER_BASE']:_0x28b894=_0x2b14e7(this[_0x1328de(0x50d)],this['unitID'],this['_univerInstanceService'],this[_0x1328de(0x450)],this['_userManagerService']);break;default:throw Error(_0x1328de(0x2e4)+this['type']+_0x1328de(0x2ab));}let {changeset:_0xc7e78c,pendingMutations:_0xc68e1d}=_0x28b894;this[_0x1328de(0x1f9)][_0x1328de(0x2ea)](_0xc7e78c);let _0x24e6d6=_0xc68e1d[_0x1328de(0x369)]?this[_0x1328de(0x483)]['createInstance'](_0x196fce,this[_0x1328de(0x2a8)],this[_0x1328de(0x33d)],_0xc7e78c,_0xc68e1d,this['_handler'],void 0x0):this[_0x1328de(0x483)][_0x1328de(0x4bc)](_0xf2dbd3,this[_0x1328de(0x2a8)],this[_0x1328de(0x33d)],_0xc7e78c,this[_0x1328de(0x1f9)],void 0x0);_0x24e6d6[_0x1328de(0x3b7)](),this[_0x1328de(0x1f9)][_0x1328de(0x44c)](this,_0x24e6d6);},_0x184f1e);}[_0x39fe8c(0x2d0)](){const _0x524e3b=_0x39fe8c;let _0x2d46ed=this[_0x524e3b(0x481)][_0x524e3b(0x472)](_0x5ceae9);return(_0x2d46ed==null?void 0x0:_0x2d46ed[_0x524e3b(0x444)])??0x7d0;}['resend'](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x2a2c1e=_0x39fe8c;this[_0x2a2c1e(0x208)]!=null&&(clearTimeout(this[_0x2a2c1e(0x208)]),this[_0x2a2c1e(0x208)]=null);}['_onConflict'](_0x11268f){const _0x172093=_0x39fe8c;return this[_0x172093(0x232)](),this[_0x172093(0x483)][_0x172093(0x4bc)](_0x13298a,this['unitID'],this['type'],null,this[_0x172093(0x50d)],this['_handler'],_0x11268f);}};_0x14c1a2=_0x3047fc=_0xdb6dd9([_0x32d44(0x4,(0x0,_0xa4b471['Inject'])(_0xa4b471[_0x39fe8c(0x409)])),_0x32d44(0x5,(0x0,_0xa4b471['Inject'])(_0x58a81f[_0x39fe8c(0x4a2)])),_0x32d44(0x6,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x375)])),_0x32d44(0x7,_0xa4b471[_0x39fe8c(0x2b6)]),_0x32d44(0x8,_0xa4b471['ICommandService']),_0x32d44(0x9,_0xa4b471[_0x39fe8c(0x345)]),_0x32d44(0xa,_0x58a81f[_0x39fe8c(0x49e)]),_0x32d44(0xb,_0xa4b471[_0x39fe8c(0x2cb)]),_0x32d44(0xc,_0xa4b471[_0x39fe8c(0x51e)]),_0x32d44(0xd,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x4ed09e))],_0x14c1a2);let _0xf2dbd3=_0x36d6e5=class extends _0x8eee0d{constructor(_0x27ca7a,_0x650072,_0x14394b,_0x3cf06e,_0x2be1d0,_0x50e47d,_0x4d4c92,_0x5eb60e,_0x4025ed,_0x282574,_0x21f8dc,_0x226245){const _0x1abbc9=_0x39fe8c;super(_0x27ca7a,_0x650072,_0x14394b,[],_0x3cf06e,_0x5eb60e,_0x21f8dc,_0x4d4c92,_0x226245),this[_0x1abbc9(0x483)]=_0x50e47d,this[_0x1abbc9(0x30a)]=_0x4025ed,this[_0x1abbc9(0x245)]=_0x282574,_0x2f2d1e(this,_0x1abbc9(0x31c),'awaiting'),_0x2f2d1e(this,_0x1abbc9(0x206),0x0),_0x2f2d1e(this,_0x1abbc9(0x35a),0x0),_0x2f2d1e(this,_0x1abbc9(0x2ef),void 0x0),_0x2f2d1e(this,_0x1abbc9(0x518),void 0x0),_0x2be1d0&&(this[_0x1abbc9(0x206)]=_0x2be1d0[_0x1abbc9(0x433)],this[_0x1abbc9(0x35a)]=_0x2be1d0[_0x1abbc9(0x4e3)],this[_0x1abbc9(0x4ed)](_0x2be1d0[_0x1abbc9(0x362)]));}['appendMutation'](_0x27b8dd){const _0xea7b6=_0x39fe8c;this[_0xea7b6(0x232)]();let _0x4cb6d8=this['_injector'][_0xea7b6(0x4bc)](_0x196fce,this[_0xea7b6(0x2a8)],this['type'],this[_0xea7b6(0x34e)],[_0x27b8dd],this[_0xea7b6(0x1f9)],this[_0xea7b6(0x276)]());return _0x4cb6d8[_0xea7b6(0x3b7)](),_0x4cb6d8;}['onRemoteChangeset'](_0x21aa99){const _0x15c3bd=_0x39fe8c;if(this[_0x15c3bd(0x22e)](_0x21aa99))return this[_0x15c3bd(0x3da)](_0x21aa99);if(this['_isAppliedRevision'](_0x21aa99))return this;if(this['_checkMissing'](_0x21aa99))return this['_clearScheduledTask'](),this[_0x15c3bd(0x483)][_0x15c3bd(0x4bc)](_0x4016f9,this[_0x15c3bd(0x2a8)],this[_0x15c3bd(0x33d)],this[_0x15c3bd(0x34e)],[],null,[_0x21aa99],this[_0x15c3bd(0x1f9)],this['_resendSchedule']());try{let _0x475900=this[_0x15c3bd(0x245)][_0x15c3bd(0x322)]([_0x21aa99],[this[_0x15c3bd(0x34e)]],!0x1);if((0x0,_0x58a81f[_0x15c3bd(0x4e2)])(_0x475900)){let {c1Prime:_0x2bb200,c2Prime:_0xd82a28}=_0x475900;this['_executeRemoteChangeset'](_0x2bb200[0x0]),_0xd82a28[0x0][_0x15c3bd(0x477)]=this[_0x15c3bd(0x27f)](),this[_0x15c3bd(0x232)]();let _0x3bf3ad=this[_0x15c3bd(0x483)]['createInstance'](_0x36d6e5,this['unitID'],this[_0x15c3bd(0x33d)],_0xd82a28[0x0],this[_0x15c3bd(0x1f9)],this[_0x15c3bd(0x276)]());return _0x3bf3ad[_0x15c3bd(0x3b7)](),_0x3bf3ad;}throw _0x475900[_0x15c3bd(0x29b)];}catch(_0x1eeb28){return this['_logService'][_0x15c3bd(0x29b)](_0x1eeb28),this[_0x15c3bd(0x2d6)](!0x1);}}[_0x39fe8c(0x3da)](_0x4e1f42){const _0x2738ae=_0x39fe8c;let _0x37a052=this[_0x2738ae(0x450)][_0x2738ae(0x218)](this['unitID']);if(_0x4e1f42[_0x2738ae(0x42f)]<=_0x37a052){if(this[_0x2738ae(0x20c)](_0x4e1f42)){this[_0x2738ae(0x232)]();let _0x3ec544=this[_0x2738ae(0x483)][_0x2738ae(0x4bc)](_0x4590f6,this[_0x2738ae(0x2a8)],this[_0x2738ae(0x33d)],this[_0x2738ae(0x1f9)]);return _0x3ec544[_0x2738ae(0x3b7)](),_0x3ec544;}return this[_0x2738ae(0x30a)][_0x2738ae(0x54b)](_0x2738ae(0x404),_0x2738ae(0x4d4)+_0x4e1f42[_0x2738ae(0x42f)]+_0x2738ae(0x3d2)+_0x37a052+'.'),this;}if(this['_clearScheduledTask'](),this[_0x2738ae(0x1e1)](_0x4e1f42))return this[_0x2738ae(0x483)][_0x2738ae(0x4bc)](_0x4016f9,this[_0x2738ae(0x2a8)],this[_0x2738ae(0x33d)],this[_0x2738ae(0x34e)],[],_0x4e1f42['revision'],[],this['_handler'],void 0x0);this['_incrementRevisionNumber']();let _0x3c24e1=this[_0x2738ae(0x483)][_0x2738ae(0x4bc)](_0x4590f6,this[_0x2738ae(0x2a8)],this['type'],this[_0x2738ae(0x1f9)]);return _0x3c24e1[_0x2738ae(0x3b7)](),_0x3c24e1;}[_0x39fe8c(0x358)](_0x2b66f5){const _0xfcd925=_0x39fe8c;return this[_0xfcd925(0x2d6)](!!(_0x2b66f5!=null&&_0x2b66f5[_0xfcd925(0x423)]));}[_0x39fe8c(0x2a5)](_0x48edf8){const _0x4e7e20=_0x39fe8c;var _0x797859;return _0x48edf8[_0x4e7e20(0x435)]===((_0x797859=this[_0x4e7e20(0x34e)])==null?void 0x0:_0x797859[_0x4e7e20(0x435)])?this[_0x4e7e20(0x35a)]>_0x385041?this[_0x4e7e20(0x2bd)]():(this[_0x4e7e20(0x4ed)](_0x239924(this['_resendTimeout'],{'reqId':_0x48edf8['reqId']})),this):this;}[_0x39fe8c(0x2bd)](){const _0x18f244=_0x39fe8c;return this[_0x18f244(0x232)](),this[_0x18f244(0x483)][_0x18f244(0x4bc)](_0x46544f,this[_0x18f244(0x2a8)],this['type'],this['_awaitingChangeset'],[],this[_0x18f244(0x1f9)]);}[_0x39fe8c(0x378)](){return this;}[_0x39fe8c(0x2da)](){const _0x34f39e=_0x39fe8c;this[_0x34f39e(0x1f9)][_0x34f39e(0x2ea)](this[_0x34f39e(0x34e)]);}['_onConflict'](_0x42b6bb){const _0xe26455=_0x39fe8c;return this[_0xe26455(0x232)](),this[_0xe26455(0x483)][_0xe26455(0x4bc)](_0x13298a,this[_0xe26455(0x2a8)],this[_0xe26455(0x33d)],this['_awaitingChangeset'],[],this[_0xe26455(0x1f9)],_0x42b6bb);}[_0x39fe8c(0x4ed)](_0x352d51){const _0x1fb81c=_0x39fe8c;var _0x45b642;(_0x45b642=this[_0x1fb81c(0x518)])==null||_0x45b642[_0x1fb81c(0x357)](),this[_0x1fb81c(0x2ef)]=_0x352d51,this[_0x1fb81c(0x518)]=_0x352d51==null?void 0x0:_0x352d51[_0x1fb81c(0x27e)](({reqId:_0x12d6c5})=>this[_0x1fb81c(0x28b)](_0x12d6c5));}[_0x39fe8c(0x28b)](_0x27443d){const _0x5710c1=_0x39fe8c;var _0x5c985f;_0x27443d===((_0x5c985f=this[_0x5710c1(0x34e)])==null?void 0x0:_0x5c985f[_0x5710c1(0x435)])&&(this[_0x5710c1(0x2ef)]=void 0x0,this[_0x5710c1(0x2da)](),this[_0x5710c1(0x206)]=this[_0x5710c1(0x206)]===0x0?0x3e8:Math[_0x5710c1(0x20e)](this[_0x5710c1(0x206)]*0x2,_0x1ba608),this[_0x5710c1(0x35a)]+=this[_0x5710c1(0x206)]);}[_0x39fe8c(0x276)](){const _0x5b7f99=_0x39fe8c;return{'timer':this[_0x5b7f99(0x2ef)],'timeout':this['_resendTimeout'],'total':this['_maxTotalRetryTimeout']};}[_0x39fe8c(0x232)](){const _0x2034e8=_0x39fe8c;var _0x218ae3;(_0x218ae3=this['_sender'])==null||_0x218ae3[_0x2034e8(0x357)]();}};_0xf2dbd3=_0x36d6e5=_0xdb6dd9([_0x32d44(0x5,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x409)])),_0x32d44(0x6,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x58a81f['RevisionService'])),_0x32d44(0x7,_0xa4b471[_0x39fe8c(0x385)]),_0x32d44(0x8,_0xa4b471['ILogService']),_0x32d44(0x9,_0x58a81f['ITransformService']),_0x32d44(0xa,_0xa4b471[_0x39fe8c(0x51e)]),_0x32d44(0xb,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x4ed09e))],_0xf2dbd3);let _0x196fce=_0x152d02=class extends _0x8eee0d{constructor(_0x387086,_0x4d591b,_0xc709f,_0x108644,_0x1086ab,_0x2dc51b,_0x365d65,_0x173352,_0x15b756,_0x3679d8,_0x4c1015,_0x1bed0b,_0x177124){const _0x547173=_0x39fe8c;super(_0x387086,_0x4d591b,_0xc709f,_0x108644,_0x1086ab,_0x15b756,_0x1bed0b,_0x173352,_0x177124),this[_0x547173(0x483)]=_0x365d65,this[_0x547173(0x30a)]=_0x3679d8,this[_0x547173(0x245)]=_0x4c1015,this[_0x547173(0x4f5)]=_0x177124,_0x2f2d1e(this,'status',_0x547173(0x2a9)),_0x2f2d1e(this,'_resendTimeout',0x0),_0x2f2d1e(this,_0x547173(0x35a),0x0),_0x2f2d1e(this,'_resendTimer',void 0x0),_0x2f2d1e(this,_0x547173(0x518),void 0x0),_0x2dc51b&&(this['_resendTimeout']=_0x2dc51b['timeout'],this[_0x547173(0x35a)]=_0x2dc51b[_0x547173(0x4e3)],this[_0x547173(0x4ed)](_0x2dc51b['timer']));}['appendMutation'](_0x343609){const _0x5716b9=_0x39fe8c;return this['_pendingMutations'][_0x5716b9(0x3dc)](_0x343609),this;}[_0x39fe8c(0x3ca)](_0x3286a7){const _0x35ad7f=_0x39fe8c;if(this[_0x35ad7f(0x22e)](_0x3286a7))return this[_0x35ad7f(0x3da)](_0x3286a7);if(this[_0x35ad7f(0x3c4)](_0x3286a7))return this;if(this[_0x35ad7f(0x1e1)](_0x3286a7))return this[_0x35ad7f(0x232)](),this[_0x35ad7f(0x483)]['createInstance'](_0x4016f9,this['unitID'],this[_0x35ad7f(0x33d)],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x3286a7],this['_handler'],this[_0x35ad7f(0x276)]());try{let _0x52568a=this[_0x35ad7f(0x245)][_0x35ad7f(0x322)]([_0x3286a7],[this['_awaitingChangeset']],!0x1);if((0x0,_0x58a81f[_0x35ad7f(0x4e2)])(_0x52568a)){let {c1Prime:_0x57555b,c2Prime:_0x52836e}=_0x52568a,_0x272e56=this[_0x35ad7f(0x245)][_0x35ad7f(0x289)](_0x57555b[0x0],this[_0x35ad7f(0x50d)]);if((0x0,_0x58a81f[_0x35ad7f(0x28d)])(_0x272e56)){let {c1Prime:_0x299383,m2Prime:_0x35d881}=_0x272e56;return this[_0x35ad7f(0x329)](_0x299383),_0x52836e[0x0][_0x35ad7f(0x477)]=this[_0x35ad7f(0x27f)](),this[_0x35ad7f(0x232)](),this[_0x35ad7f(0x483)]['createInstance'](_0x152d02,this[_0x35ad7f(0x2a8)],this[_0x35ad7f(0x33d)],_0x52836e[0x0],_0x35d881,this[_0x35ad7f(0x1f9)],this[_0x35ad7f(0x276)]());}throw _0x272e56[_0x35ad7f(0x29b)];}throw _0x52568a[_0x35ad7f(0x29b)];}catch(_0x490c59){return this['_logService']['error'](_0x490c59),this[_0x35ad7f(0x2d6)](!0x1);}}['onRemoteAck'](_0x115625){const _0x514854=_0x39fe8c;let _0x4736ea=this[_0x514854(0x27f)]();if(_0x115625[_0x514854(0x42f)]<=_0x4736ea){if(this[_0x514854(0x20c)](_0x115625)){this['_clearScheduledTask']();let _0x138bad=this['_injector']['createInstance'](_0x14c1a2,this['unitID'],this[_0x514854(0x33d)],this[_0x514854(0x50d)],this['_handler']);return _0x138bad[_0x514854(0x1d9)](),_0x138bad[_0x514854(0x3b7)](),_0x138bad;}return this[_0x514854(0x30a)][_0x514854(0x54b)]('[AwaitingWithPendingState]','ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x115625[_0x514854(0x42f)]+_0x514854(0x3d2)+_0x4736ea+'.'),this;}if(this['_clearScheduledTask'](),this[_0x514854(0x1e1)](_0x115625))return this[_0x514854(0x483)][_0x514854(0x4bc)](_0x4016f9,this[_0x514854(0x2a8)],this[_0x514854(0x33d)],this[_0x514854(0x34e)],this['_pendingMutations'],_0x115625[_0x514854(0x42f)],[],this[_0x514854(0x1f9)],void 0x0);this['_incrementRevisionNumber']();let _0x541103=this[_0x514854(0x483)]['createInstance'](_0x14c1a2,this[_0x514854(0x2a8)],this[_0x514854(0x33d)],this[_0x514854(0x50d)],this[_0x514854(0x1f9)]);return _0x541103[_0x514854(0x1d9)](),_0x541103[_0x514854(0x3b7)](),_0x541103;}[_0x39fe8c(0x358)](_0x34f245){const _0x7bad45=_0x39fe8c;return this[_0x7bad45(0x2d6)](!!(_0x34f245!=null&&_0x34f245[_0x7bad45(0x423)]));}[_0x39fe8c(0x2a5)](_0xe1c802){const _0x4a5d12=_0x39fe8c;var _0x5b60df;return _0xe1c802[_0x4a5d12(0x435)]===((_0x5b60df=this['_awaitingChangeset'])==null?void 0x0:_0x5b60df[_0x4a5d12(0x435)])?this[_0x4a5d12(0x35a)]>_0x385041?this[_0x4a5d12(0x2bd)]():(this[_0x4a5d12(0x4ed)](_0x239924(this[_0x4a5d12(0x206)],{'reqId':_0xe1c802['reqId']})),this):this;}['toggleOffline'](){const _0x23ea38=_0x39fe8c;return this['_clearScheduledTask'](),this[_0x23ea38(0x483)][_0x23ea38(0x4bc)](_0x46544f,this[_0x23ea38(0x2a8)],this['type'],this[_0x23ea38(0x34e)],this[_0x23ea38(0x50d)],this['_handler']);}[_0x39fe8c(0x378)](){return this;}['resend'](){const _0x233b00=_0x39fe8c;this[_0x233b00(0x1f9)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x39fe8c(0x2d6)](_0x515ea0){const _0x337345=_0x39fe8c;return this[_0x337345(0x232)](),this[_0x337345(0x483)][_0x337345(0x4bc)](_0x13298a,this[_0x337345(0x2a8)],this[_0x337345(0x33d)],null,this[_0x337345(0x50d)],this['_handler'],_0x515ea0);}[_0x39fe8c(0x4ed)](_0x4e2e6c){const _0x5b6811=_0x39fe8c;var _0x151ca5;(_0x151ca5=this[_0x5b6811(0x518)])==null||_0x151ca5[_0x5b6811(0x357)](),this[_0x5b6811(0x2ef)]=_0x4e2e6c,this[_0x5b6811(0x518)]=_0x4e2e6c==null?void 0x0:_0x4e2e6c[_0x5b6811(0x27e)](({reqId:_0x1f3326})=>this[_0x5b6811(0x28b)](_0x1f3326));}[_0x39fe8c(0x28b)](_0x11e29e){const _0x5925ad=_0x39fe8c;var _0x359f4;_0x11e29e===((_0x359f4=this[_0x5925ad(0x34e)])==null?void 0x0:_0x359f4[_0x5925ad(0x435)])&&(this[_0x5925ad(0x2ef)]=void 0x0,this['resend'](),this['_resendTimeout']=this[_0x5925ad(0x206)]===0x0?0x3e8:Math[_0x5925ad(0x20e)](this[_0x5925ad(0x206)]*0x2,_0x1ba608),this[_0x5925ad(0x35a)]+=this[_0x5925ad(0x206)]);}[_0x39fe8c(0x276)](){const _0x482491=_0x39fe8c;return{'timer':this['_resendTimer'],'timeout':this[_0x482491(0x206)],'total':this[_0x482491(0x35a)]};}[_0x39fe8c(0x232)](){const _0x97dac=_0x39fe8c;var _0x1a7d1b;(_0x1a7d1b=this[_0x97dac(0x518)])==null||_0x1a7d1b[_0x97dac(0x357)]();}};_0x196fce=_0x152d02=_0xdb6dd9([_0x32d44(0x6,(0x0,_0xa4b471['Inject'])(_0xa4b471[_0x39fe8c(0x409)])),_0x32d44(0x7,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x58a81f['RevisionService'])),_0x32d44(0x8,_0xa4b471[_0x39fe8c(0x385)]),_0x32d44(0x9,_0xa4b471[_0x39fe8c(0x2b6)]),_0x32d44(0xa,_0x58a81f['ITransformService']),_0x32d44(0xb,_0xa4b471[_0x39fe8c(0x51e)]),_0x32d44(0xc,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x4ed09e))],_0x196fce);let _0x13298a=class extends _0x8eee0d{constructor(_0x24107a,_0x3f2bd2,_0x3b97a5,_0x14332e,_0x23405d,_0x5c5793=!0x1,_0x6c11a7,_0x2116df,_0x3d7451,_0x1b3187,_0x24c662,_0xef5bdc,_0x5d34e3,_0x29706f,_0x19a2ac){const _0x25cce3=_0x39fe8c;super(_0x24107a,_0x3f2bd2,_0x3b97a5,_0x14332e,_0x23405d,_0x2116df,_0x3d7451,_0x1b3187,_0x19a2ac),this[_0x25cce3(0x4f4)]=_0x5c5793,this[_0x25cce3(0x528)]=_0x6c11a7,this['_localeService']=_0x24c662,this[_0x25cce3(0x3cf)]=_0xef5bdc,this[_0x25cce3(0x30a)]=_0x5d34e3,this[_0x25cce3(0x1e9)]=_0x29706f,this[_0x25cce3(0x4f5)]=_0x19a2ac,_0x2f2d1e(this,'status',_0x25cce3(0x2a2)),this['_disableEditing'](),this[_0x25cce3(0x1e0)](),this[_0x25cce3(0x30b)]()[_0x25cce3(0x1e3)](_0x2a2262=>this['_logService'][_0x25cce3(0x29b)](_0x2a2262));}['appendMutation'](){return this;}[_0x39fe8c(0x3ca)](){return this;}[_0x39fe8c(0x3da)](){return this;}[_0x39fe8c(0x358)](){return this;}[_0x39fe8c(0x2a5)](){return this;}[_0x39fe8c(0x2bd)](){return this;}[_0x39fe8c(0x378)](){return this;}[_0x39fe8c(0x2da)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}async[_0x39fe8c(0x30b)](){const _0x276d00=_0x39fe8c;var _0x48db27,_0x2534a5,_0x2cf6de;let _0x24566e=((_0x48db27=this[_0x276d00(0x3cf)][_0x276d00(0x4d2)]())==null?void 0x0:_0x48db27[_0x276d00(0x216)])??'';await((_0x2534a5=this['_localCacheService'])==null||(_0x2cf6de=_0x2534a5[_0x276d00(0x294)])==null?void 0x0:_0x2cf6de[_0x276d00(0x442)](_0x2534a5,this[_0x276d00(0x2a8)],'conflict',_0x24566e)['catch'](()=>void 0x0));try{var _0x25b1ce;await((_0x25b1ce=this[_0x276d00(0x353)])==null?void 0x0:_0x25b1ce[_0x276d00(0x454)](this['unitID'],_0x24566e));}catch{this['_collaborationUIEventService'][_0x276d00(0x3aa)]({'id':'CONFLICT_CACHE_CLEAR_FAILED','unitID':this[_0x276d00(0x2a8)],'userId':_0x24566e});return;}this[_0x276d00(0x2e2)]();}['_showConflictProcessingNotification'](){const _0x57158f=_0x39fe8c;this[_0x57158f(0x1e9)][_0x57158f(0x3aa)]({'id':'CONFLICT_PROCESSING'});}['_showConflictNotification'](){const _0xa7bf41=_0x39fe8c;this[_0xa7bf41(0x4f4)]?this[_0xa7bf41(0x1e9)]['emitEvent']({'id':'PERMISSION_DENIED'}):this[_0xa7bf41(0x1e9)]['emitEvent']({'id':_0xa7bf41(0x414)});}[_0x39fe8c(0x35b)](){const _0x1fd271=_0x39fe8c;this[_0x1fd271(0x528)][_0x1fd271(0x213)](new _0x3a96f2['WorkbookEditablePermission'](this[_0x1fd271(0x2a8)])['id'],!0x1);}};_0x13298a=_0xdb6dd9([_0x32d44(0x6,(0x0,_0xa4b471['Inject'])(_0xa4b471[_0x39fe8c(0x33f)])),_0x32d44(0x7,_0xa4b471[_0x39fe8c(0x385)]),_0x32d44(0x8,_0xa4b471[_0x39fe8c(0x51e)]),_0x32d44(0x9,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x58a81f[_0x39fe8c(0x4a2)])),_0x32d44(0xa,(0x0,_0xa4b471['Inject'])(_0xa4b471[_0x39fe8c(0x495)])),_0x32d44(0xb,(0x0,_0xa4b471['Inject'])(_0xa4b471[_0x39fe8c(0x375)])),_0x32d44(0xc,_0xa4b471[_0x39fe8c(0x2b6)]),_0x32d44(0xd,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x559d58)),_0x32d44(0xe,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x4ed09e))],_0x13298a);let _0x46544f=class extends _0x8eee0d{constructor(_0x33e1eb,_0x3c28b9,_0xea8e9a,_0x402b1e,_0x1856d1,_0x431fdf,_0x36be49,_0x42edca,_0x1770cf,_0x9454d8){const _0x40c1b6=_0x39fe8c;super(_0x33e1eb,_0x3c28b9,_0xea8e9a,_0x402b1e,_0x1856d1,_0x42edca,_0x1770cf,_0x36be49,_0x9454d8),this['_injector']=_0x431fdf,_0x2f2d1e(this,'status',_0x40c1b6(0x33b));}['appendMutation'](_0x475761){const _0x21b63e=_0x39fe8c;return this['_pendingMutations']['push'](_0x475761),this[_0x21b63e(0x3b7)](),this;}[_0x39fe8c(0x3ca)](_0x530840){const _0x1fcc93=_0x39fe8c;throw Error(_0x1fcc93(0x2f4));}['onRemoteAck'](){const _0x431258=_0x39fe8c;throw Error(_0x431258(0x2ff));}[_0x39fe8c(0x358)](){const _0x52397e=_0x39fe8c;throw Error(_0x52397e(0x3c5));}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x39fe8c(0x378)](){const _0x393fc0=_0x39fe8c;let {_injector:_0x409f01,_pendingMutations:_0x7fc94e,_awaitingChangeset:_0x1fbb11,unitID:_0x2fdfae,_handler:_0x5562f5,type:_0x472cf5}=this,_0x249565=_0x24de27(_0x409f01,_0x2fdfae,_0x472cf5,_0x1fbb11,_0x7fc94e,_0x5562f5);return _0x249565 instanceof _0x14c1a2?_0x249565[_0x393fc0(0x1d9)]():(_0x249565 instanceof _0x196fce||_0x249565 instanceof _0xf2dbd3)&&_0x249565[_0x393fc0(0x2da)](),_0x249565;}[_0x39fe8c(0x2da)](){const _0x298d62=_0x39fe8c;throw Error(_0x298d62(0x32e));}};_0x46544f=_0xdb6dd9([_0x32d44(0x5,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x409)])),_0x32d44(0x6,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x58a81f[_0x39fe8c(0x4a2)])),_0x32d44(0x7,_0xa4b471[_0x39fe8c(0x385)]),_0x32d44(0x8,_0xa4b471[_0x39fe8c(0x51e)]),_0x32d44(0x9,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x4ed09e))],_0x46544f);let _0x4016f9=class extends _0x8eee0d{constructor(_0x18c348,_0x112056,_0x14749b,_0x556add,_0x86785,_0x12d3e4,_0x42a3af,_0x9b734a,_0x49d055,_0x50c65e,_0xa691e7,_0xb0d01e,_0xe43444,_0x3d1131,_0x13ddad){const _0x44f498=_0x39fe8c;super(_0x18c348,_0x112056,_0x14749b,_0x556add,_0x42a3af,_0xb0d01e,_0xe43444,_0x50c65e,_0x13ddad),this[_0x44f498(0x40f)]=_0x86785,this[_0x44f498(0x3fd)]=_0x12d3e4,this[_0x44f498(0x276)]=_0x9b734a,this['_injector']=_0x49d055,this['_logService']=_0xa691e7,this[_0x44f498(0x245)]=_0x3d1131,this[_0x44f498(0x4f5)]=_0x13ddad,_0x2f2d1e(this,_0x44f498(0x31c),_0x44f498(0x46f));}[_0x39fe8c(0x3e2)](_0x2dc2c9){const _0x1dffe5=_0x39fe8c;try{if(this['_handleRemoteChangesets'](_0x2dc2c9)[_0x1dffe5(0x25c)])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this[_0x1dffe5(0x292)]([...this['_queuedRemoteChangesets']][_0x1dffe5(0x3fa)]((_0x4e6d51,_0x32cbdd)=>_0x4e6d51[_0x1dffe5(0x42f)]-_0x32cbdd[_0x1dffe5(0x42f)]))[_0x1dffe5(0x25c)])return this['_queuedRemoteChangesets']=[],this[_0x1dffe5(0x3b7)](),this[_0x1dffe5(0x1f9)][_0x1dffe5(0x328)]({'from':this[_0x1dffe5(0x27f)](),'to':0x0}),this;let _0x487f21=this[_0x1dffe5(0x34e)],_0x4da8f=this[_0x1dffe5(0x50d)],_0x41fac2;if(_0x487f21&&_0x4da8f[_0x1dffe5(0x369)]!==0x0)_0x41fac2=this[_0x1dffe5(0x483)][_0x1dffe5(0x4bc)](_0x196fce,this[_0x1dffe5(0x2a8)],this[_0x1dffe5(0x33d)],_0x487f21,_0x4da8f,this[_0x1dffe5(0x1f9)],this[_0x1dffe5(0x276)]);else{if(_0x487f21&&_0x4da8f[_0x1dffe5(0x369)]===0x0)_0x487f21[_0x1dffe5(0x477)]=this['_getCurrentRevision'](),_0x41fac2=this['_injector'][_0x1dffe5(0x4bc)](_0xf2dbd3,this['unitID'],this[_0x1dffe5(0x33d)],_0x487f21,this[_0x1dffe5(0x1f9)],this[_0x1dffe5(0x276)]);else{if(_0x4da8f[_0x1dffe5(0x369)]!==0x0){let _0x525f94=this[_0x1dffe5(0x483)][_0x1dffe5(0x4bc)](_0x14c1a2,this['unitID'],this[_0x1dffe5(0x33d)],_0x4da8f,this[_0x1dffe5(0x1f9)]);_0x525f94[_0x1dffe5(0x1d9)](),_0x41fac2=_0x525f94;}else _0x41fac2=this[_0x1dffe5(0x483)][_0x1dffe5(0x4bc)](_0x4590f6,this[_0x1dffe5(0x2a8)],this[_0x1dffe5(0x33d)],this[_0x1dffe5(0x1f9)]);}}return _0x41fac2[_0x1dffe5(0x3b7)](),_0x41fac2;}catch(_0x5c0e83){return this[_0x1dffe5(0x30a)][_0x1dffe5(0x29b)](_0x1dffe5(0x2dd),'failed\x20to\x20apply\x20missed\x20changesets!',_0x5c0e83),this[_0x1dffe5(0x483)]['createInstance'](_0x13298a,this[_0x1dffe5(0x2a8)],this[_0x1dffe5(0x33d)],this[_0x1dffe5(0x34e)],this[_0x1dffe5(0x50d)],this[_0x1dffe5(0x1f9)],!0x1);}}[_0x39fe8c(0x292)](_0x110c49){const _0x1a5e75=_0x39fe8c;this[_0x1a5e75(0x50b)]();for(let _0x45a5c3=0x0;_0x45a5c3<_0x110c49[_0x1a5e75(0x369)];_0x45a5c3++){let _0xc79023=_0x110c49[_0x45a5c3],_0x405722=this[_0x1a5e75(0x27f)]();if(this[_0x1a5e75(0x22e)](_0xc79023)){if(_0xc79023[_0x1a5e75(0x42f)]>_0x405722+0x1)return{'missingChangesets':!0x0};_0xc79023[_0x1a5e75(0x42f)]<=_0x405722?this[_0x1a5e75(0x318)]():this[_0x1a5e75(0x311)]();}else{if(!(_0xc79023['revision']<=_0x405722)){if(_0xc79023['revision']>_0x405722+0x1)return{'missingChangesets':!0x0};this['_transformAndApplyRemoteChangeset'](_0xc79023),this[_0x1a5e75(0x50b)]();}}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x27c9be){const _0x4e6387=_0x39fe8c;let _0x2f7607=_0x27c9be,_0x45d819=this[_0x4e6387(0x34e)];if(_0x45d819){let _0x3da297=this['_transformService'][_0x4e6387(0x322)]([_0x27c9be],[_0x45d819],!0x1);if(!(0x0,_0x58a81f[_0x4e6387(0x4e2)])(_0x3da297))throw _0x3da297[_0x4e6387(0x29b)];_0x2f7607=_0x3da297[_0x4e6387(0x307)][0x0],_0x45d819=_0x3da297['c2Prime'][0x0];}let _0x23625e=this[_0x4e6387(0x50d)];if(_0x23625e['length']){let _0x1c2cb9=this[_0x4e6387(0x245)][_0x4e6387(0x289)](_0x2f7607,_0x23625e);if(!(0x0,_0x58a81f['isTransformMutationsWithChangesetSuccess'])(_0x1c2cb9))throw _0x1c2cb9['error'];_0x2f7607=_0x1c2cb9[_0x4e6387(0x307)],_0x23625e=_0x1c2cb9[_0x4e6387(0x45c)];}this[_0x4e6387(0x329)](_0x2f7607),_0x45d819&&(_0x45d819[_0x4e6387(0x477)]=this[_0x4e6387(0x27f)]()),this[_0x4e6387(0x34e)]=_0x45d819,this[_0x4e6387(0x50d)]=_0x23625e;}[_0x39fe8c(0x50b)](){const _0x36ea92=_0x39fe8c;if(!this['_awaitingChangeset']||this[_0x36ea92(0x40f)]==null)return;let _0x48735f=this['_getCurrentRevision']();if(this[_0x36ea92(0x40f)]<=_0x48735f)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this[_0x36ea92(0x40f)]+'.');this['_acknowledgedAwaitingRevision']===_0x48735f+0x1&&this[_0x36ea92(0x311)]();}[_0x39fe8c(0x311)](){const _0x3bb54f=_0x39fe8c;this[_0x3bb54f(0x1da)](),this[_0x3bb54f(0x318)]();}[_0x39fe8c(0x318)](){const _0x284723=_0x39fe8c;this['_awaitingChangeset']=null,this[_0x284723(0x40f)]=null,this[_0x284723(0x276)]=void 0x0;}[_0x39fe8c(0x2da)](){const _0x35e9dd=_0x39fe8c;throw Error(_0x35e9dd(0x3d8));}[_0x39fe8c(0x522)](_0x1507ee){const _0x5ed7e4=_0x39fe8c;return this['_pendingMutations'][_0x5ed7e4(0x3dc)](_0x1507ee),this;}[_0x39fe8c(0x3ca)](_0x56c01f){const _0x20f954=_0x39fe8c;return this[_0x20f954(0x3fd)][_0x20f954(0x3dc)](_0x56c01f),this;}[_0x39fe8c(0x3da)](_0x3623a0){const _0x3eaab1=_0x39fe8c;if(this['_awaitingChangeset']){let _0x42b63f=this['_getCurrentRevision']();return _0x3623a0[_0x3eaab1(0x42f)]<=_0x42b63f?(this[_0x3eaab1(0x20c)](_0x3623a0)&&this[_0x3eaab1(0x318)](),this):(_0x42b63f+0x1===_0x3623a0[_0x3eaab1(0x42f)]?this[_0x3eaab1(0x311)]():(this['_acknowledgedAwaitingRevision']=_0x3623a0['revision'],this['_resendSchedule']=void 0x0),this);}if(_0x3623a0['revision']<=this[_0x3eaab1(0x27f)]())return this;throw Error(_0x3eaab1(0x3c6));}[_0x39fe8c(0x358)](_0x3801aa){const _0x239987=_0x39fe8c;return this['_onConflict'](!!(_0x3801aa!=null&&_0x3801aa[_0x239987(0x423)]));}[_0x39fe8c(0x2a5)](_0x212866){const _0x525c8a=_0x39fe8c;var _0xe0d2e6;if(this[_0x525c8a(0x40f)]!=null||_0x212866[_0x525c8a(0x435)]!==((_0xe0d2e6=this[_0x525c8a(0x34e)])==null?void 0x0:_0xe0d2e6[_0x525c8a(0x435)]))return this;let _0x3acd77=this[_0x525c8a(0x276)]??{'timer':void 0x0,'timeout':0x0,'total':0x0};return _0x3acd77['timer']?this:_0x3acd77[_0x525c8a(0x4e3)]>_0x385041?this[_0x525c8a(0x2bd)]():(this[_0x525c8a(0x276)]={..._0x3acd77,'timer':_0x239924(_0x3acd77[_0x525c8a(0x433)],{'reqId':_0x212866['reqId']})},this);}[_0x39fe8c(0x2bd)](){const _0x380759=_0x39fe8c;return this[_0x380759(0x483)][_0x380759(0x4bc)](_0x46544f,this[_0x380759(0x2a8)],this['type'],this['_awaitingChangeset'],this[_0x380759(0x50d)],this[_0x380759(0x1f9)]);}['toggleOnline'](){return this;}[_0x39fe8c(0x2d6)](_0x1e6f5c){const _0x34aa56=_0x39fe8c;return this['_injector'][_0x34aa56(0x4bc)](_0x13298a,this[_0x34aa56(0x2a8)],this[_0x34aa56(0x33d)],this[_0x34aa56(0x34e)],this[_0x34aa56(0x50d)],this[_0x34aa56(0x1f9)],_0x1e6f5c);}};_0x4016f9=_0xdb6dd9([_0x32d44(0x8,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x409)])),_0x32d44(0x9,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x58a81f[_0x39fe8c(0x4a2)])),_0x32d44(0xa,_0xa4b471['ILogService']),_0x32d44(0xb,_0xa4b471[_0x39fe8c(0x385)]),_0x32d44(0xc,_0xa4b471[_0x39fe8c(0x51e)]),_0x32d44(0xd,_0x58a81f[_0x39fe8c(0x49e)]),_0x32d44(0xe,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x4ed09e))],_0x4016f9);function _0x24de27(_0x32b929,_0x17b1cb,_0x2788a5,_0x2a32b6,_0x19d462,_0x11b2fe){const _0x276d52=_0x39fe8c;return _0x2a32b6&&_0x19d462[_0x276d52(0x369)]?_0x32b929[_0x276d52(0x4bc)](_0x196fce,_0x17b1cb,_0x2788a5,_0x2a32b6,_0x19d462,_0x11b2fe,void 0x0):_0x2a32b6?_0x32b929['createInstance'](_0xf2dbd3,_0x17b1cb,_0x2788a5,_0x2a32b6,_0x11b2fe,void 0x0):_0x19d462[_0x276d52(0x369)]?_0x32b929[_0x276d52(0x4bc)](_0x14c1a2,_0x17b1cb,_0x2788a5,_0x19d462,_0x11b2fe):_0x32b929['createInstance'](_0x4590f6,_0x17b1cb,_0x2788a5,_0x11b2fe);}let _0x54d84e=class extends _0xa4b471['RxDisposable']{get[_0x39fe8c(0x4e5)](){const _0x56de0d=_0x39fe8c;return this[_0x56de0d(0x209)];}constructor(_0x3f0b67,_0x4b47ac,_0x34c156,_0xb8531a,_0x270434,_0x270967,_0x32eaa8,_0x6d1dd1,_0x283023,_0x43e1a3,_0x140bdd,_0x362643,_0x474298,_0x18e7c8){const _0x54c701=_0x39fe8c;super(),this[_0x54c701(0x2a8)]=_0x3f0b67,this[_0x54c701(0x440)]=_0x4b47ac,this[_0x54c701(0x503)]=_0x34c156,this[_0x54c701(0x483)]=_0xb8531a,this['_compressMutationService']=_0x270434,this[_0x54c701(0x3d1)]=_0x270967,this[_0x54c701(0x450)]=_0x32eaa8,this[_0x54c701(0x214)]=_0x6d1dd1,this[_0x54c701(0x46b)]=_0x283023,this[_0x54c701(0x30a)]=_0x43e1a3,this[_0x54c701(0x461)]=_0x140bdd,this['_permissionService']=_0x362643,this[_0x54c701(0x50e)]=_0x474298,this[_0x54c701(0x353)]=_0x18e7c8,_0x2f2d1e(this,'_state$',new _0x3f20a0[(_0x54c701(0x447))](null)),_0x2f2d1e(this,_0x54c701(0x4ab),this['_state$'][_0x54c701(0x349)]()),_0x2f2d1e(this,_0x54c701(0x209),void 0x0),_0x2f2d1e(this,'_collaborationPaused',!0x1),_0x2f2d1e(this,'_changesetSessionId',''),_0x2f2d1e(this,_0x54c701(0x457),0x0),_0x2f2d1e(this,_0x54c701(0x3ed),this[_0x54c701(0x4ab)][_0x54c701(0x4b1)]((0x0,_0x3f20a0['map'])(_0x3ce9cb=>_0x3ce9cb?_0x3ce9cb[_0x54c701(0x31c)]:_0x54c701(0x33b)),(0x0,_0x3f20a0['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_0x2f2d1e(this,_0x54c701(0x1e6),!0x1),_0x2f2d1e(this,_0x54c701(0x25a),[]);}async[_0x39fe8c(0x251)](){const _0x54c24a=_0x39fe8c;if(this[_0x54c24a(0x4e5)])throw Error(_0x54c24a(0x455));await this[_0x54c24a(0x335)]();}['pauseCollaboration'](){const _0x6dd38b=_0x39fe8c;return this[_0x6dd38b(0x21a)]=!0x0,(0x0,_0xa4b471[_0x6dd38b(0x3fc)])(()=>{const _0x4f7cc=_0x6dd38b;this[_0x4f7cc(0x21a)]=!0x1,this[_0x4f7cc(0x37a)]();});}['onLocalMutation'](_0x221f8c){this['_onLocalMutation'](_0x221f8c);}[_0x39fe8c(0x3fe)](_0x452017){const _0x36377e=_0x39fe8c;this[_0x36377e(0x209)]=_0x452017,this[_0x36377e(0x39e)][_0x36377e(0x3a2)](_0x452017);}async['_init'](){const _0x183dda=_0x39fe8c;if(this['_updateState'](await this[_0x183dda(0x284)]()),this['_singleActiveUnitService']){var _0x1f7764;(_0x1f7764=this[_0x183dda(0x50e)])==null||_0x1f7764['editingUnit'](this[_0x183dda(0x2a8)]),this[_0x183dda(0x1f7)](this[_0x183dda(0x50e)][_0x183dda(0x2f8)](this[_0x183dda(0x2a8)])[_0x183dda(0x27e)](_0x19f291=>{const _0x228701=_0x183dda;this[_0x228701(0x30a)][_0x228701(0x54b)](_0x228701(0x2c9),'editing\x20status\x20changed\x20to',_0x19f291),_0x19f291===0x1?(this[_0x228701(0x214)][_0x228701(0x3aa)]({'id':_0x228701(0x530)}),this['_permissionService'][_0x228701(0x213)](new _0x3a96f2[(_0x228701(0x25e))](this[_0x228701(0x2a8)])['id'],!0x1),this[_0x228701(0x528)][_0x228701(0x4d6)](!0x1)):(this[_0x228701(0x528)]['updatePermissionPoint'](new _0x3a96f2[(_0x228701(0x25e))](this['unitID'])['id'],!0x0),this['_permissionService'][_0x228701(0x4d6)](!0x0));}));}let _0xdfcbc3=!0x1;return this['disposeWithMe'](this[_0x183dda(0x440)]['sessionStatus$'][_0x183dda(0x27e)](_0x262181=>{const _0x4703a5=_0x183dda;_0x262181===0x3?this[_0x4703a5(0x2ed)](_0xdfcbc3):_0x262181===0x2&&(_0xdfcbc3=!0x0,this[_0x4703a5(0x50f)]());})),this['disposeWithMe'](this['session'][_0x183dda(0x39a)][_0x183dda(0x27e)](_0x5800b5=>{const _0x56aa09=_0x183dda;try{switch(_0x5800b5[_0x56aa09(0x3d5)]){case _0x58a81f[_0x56aa09(0x386)][_0x56aa09(0x448)]:this[_0x56aa09(0x36a)]((0x0,_0x58a81f['parseProtocolChangeset'])(_0x5800b5[_0x56aa09(0x250)]));break;case _0x58a81f[_0x56aa09(0x386)][_0x56aa09(0x1d3)]:this[_0x56aa09(0x21d)](_0x5800b5['data']);break;case _0x58a81f[_0x56aa09(0x386)][_0x56aa09(0x3bf)]:this[_0x56aa09(0x3e1)]();break;case _0x58a81f[_0x56aa09(0x386)]['CHANGESET_SHOULD_RETRY']:this[_0x56aa09(0x4f0)](_0x5800b5[_0x56aa09(0x250)]);break;case _0x58a81f[_0x56aa09(0x386)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x56aa09(0x2a0)](_0x5800b5['data']['changesets'][_0x56aa09(0x205)](_0x1d2099=>(0x0,_0x58a81f[_0x56aa09(0x1ef)])(_0x1d2099)));break;case _0x58a81f[_0x56aa09(0x386)][_0x56aa09(0x462)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x58a81f[_0x56aa09(0x386)][_0x56aa09(0x314)]:}}catch(_0x3716ff){throw console['error']('Error\x20on\x20receiving\x20event',_0x3716ff),_0x3716ff;}})),this[_0x183dda(0x209)];}[_0x39fe8c(0x513)](){const _0x1f4a8e=_0x39fe8c;this[_0x1f4a8e(0x1e6)]=!0x1;}[_0x39fe8c(0x2e6)](){const _0x475973=_0x39fe8c;if(this[_0x475973(0x1e6)])throw Error(_0x475973(0x486));this[_0x475973(0x1e6)]=!0x0;}[_0x39fe8c(0x317)](_0x507b8c){const _0x2a72d0=_0x39fe8c;this[_0x2a72d0(0x2e6)](),this[_0x2a72d0(0x3fe)](this['_state'][_0x2a72d0(0x522)](_0x507b8c)),this[_0x2a72d0(0x513)]();}[_0x39fe8c(0x36a)](_0x726beb){const _0x4f3ceb=_0x39fe8c;this[_0x4f3ceb(0x21a)]?this[_0x4f3ceb(0x25a)][_0x4f3ceb(0x3dc)](_0x726beb):this[_0x4f3ceb(0x29a)](_0x726beb);}[_0x39fe8c(0x37a)](){const _0x1f6add=_0x39fe8c;this[_0x1f6add(0x25a)]['forEach'](_0x19135c=>this[_0x1f6add(0x29a)](_0x19135c)),this[_0x1f6add(0x25a)]=[];}[_0x39fe8c(0x29a)](_0x54e2e6){const _0x4096b9=_0x39fe8c;let _0x2e5d66=this[_0x4096b9(0x410)][_0x4096b9(0x4c6)][_0x4096b9(0x4dc)](this['_compressMutationService'][_0x4096b9(0x4c6)]['getInterceptPoints']()[_0x4096b9(0x1f8)])(_0x54e2e6[_0x4096b9(0x45d)],null)||_0x54e2e6[_0x4096b9(0x45d)],_0x3b68d5={..._0x54e2e6,'mutations':_0x2e5d66};this['_lockTransition'](),this['_updateState'](this[_0x4096b9(0x209)][_0x4096b9(0x3ca)](_0x3b68d5)),this[_0x4096b9(0x513)]();}[_0x39fe8c(0x21d)](_0x1be32e){const _0x7184d2=_0x39fe8c;this['_lockTransition'](),this['_updateState'](this[_0x7184d2(0x209)][_0x7184d2(0x3da)](_0x1be32e)),this[_0x7184d2(0x513)]();}[_0x39fe8c(0x3e1)](_0x54d76a){const _0x3d7a25=_0x39fe8c;this[_0x3d7a25(0x2e6)](),this[_0x3d7a25(0x3fe)](this[_0x3d7a25(0x209)]['onRemoteRej'](_0x54d76a)),this[_0x3d7a25(0x513)]();}[_0x39fe8c(0x4f0)](_0x17d436){const _0x37b594=_0x39fe8c;this['_lockTransition'](),this[_0x37b594(0x3fe)](this[_0x37b594(0x209)]['onRemoteRetry'](_0x17d436)),this['_unlockTransition']();}[_0x39fe8c(0x2a0)](_0x1e82f5){const _0x15d61b=_0x39fe8c;if(!(this[_0x15d61b(0x209)]instanceof _0x4016f9))throw TypeError(_0x15d61b(0x33c));let _0x45802f=_0x1e82f5['map'](_0x3aea53=>{const _0x4c10ae=_0x15d61b;let _0x279685=this[_0x4c10ae(0x410)][_0x4c10ae(0x4c6)]['fetchThroughInterceptors'](this[_0x4c10ae(0x410)][_0x4c10ae(0x4c6)][_0x4c10ae(0x436)]()[_0x4c10ae(0x1f8)])(_0x3aea53[_0x4c10ae(0x45d)],null)||_0x3aea53[_0x4c10ae(0x45d)];return{..._0x3aea53,'mutations':_0x279685};});this[_0x15d61b(0x2e6)](),this[_0x15d61b(0x3fe)](this['_state'][_0x15d61b(0x3e2)](_0x45802f)),this[_0x15d61b(0x513)]();}['_toggleOffline'](){const _0x39c9b6=_0x39fe8c;this[_0x39c9b6(0x2e6)](),this[_0x39c9b6(0x3fe)](this['_state'][_0x39c9b6(0x2bd)]()),this[_0x39c9b6(0x513)]();}[_0x39fe8c(0x2ed)](_0x366438=!0x1){const _0x23152e=_0x39fe8c;this[_0x23152e(0x2e6)](),this['_updateState'](this[_0x23152e(0x209)][_0x23152e(0x378)]()),this[_0x23152e(0x513)]();let _0x3458e6=this[_0x23152e(0x209)];_0x366438&&_0x3458e6 instanceof _0x4590f6&&(this[_0x23152e(0x2e6)](),this['_updateState'](_0x3458e6[_0x23152e(0x35e)]()),this[_0x23152e(0x513)]());}async[_0x39fe8c(0x284)](){return new Promise(_0x2d1f00=>{const _0x1fe576=_0x4f8b;this['session'][_0x1fe576(0x3a0)]['pipe']((0x0,_0x3f20a0['take'])(0x1))[_0x1fe576(0x27e)](async _0x44a05e=>{const _0x491350=_0x1fe576;_0x2d1f00(await this[_0x491350(0x228)](_0x44a05e===0x3));});});}[_0x39fe8c(0x48c)](){const _0x2317aa=_0x39fe8c;let _0x594ff0=this[_0x2317aa(0x2a8)];return{'onStateChange':(_0x13a9c4,_0x10b9a3)=>{const _0x155907=_0x2317aa;if(_0x13a9c4!==this[_0x155907(0x209)])throw Error(_0x155907(0x478)+_0x13a9c4[_0x155907(0x31c)]+_0x155907(0x28c)+_0x10b9a3['status']+_0x155907(0x3e3)+this['_state'][_0x155907(0x31c)]);this[_0x155907(0x3fe)](_0x10b9a3);},'onSendChangeset':_0x477b8c=>{const _0x3b0150=_0x2317aa;_0x477b8c[_0x3b0150(0x517)]||(_0x477b8c[_0x3b0150(0x517)]=this[_0x3b0150(0x511)],_0x477b8c[_0x3b0150(0x435)]=++this[_0x3b0150(0x457)]);let _0x266b55={'eventID':_0x58a81f['CollaborationEvent'][_0x3b0150(0x341)],'data':{'unitID':_0x477b8c[_0x3b0150(0x2a8)],'unitType':this['_type'],'changeset':_0x477b8c,'memberID':this[_0x3b0150(0x440)][_0x3b0150(0x469)]()}};this[_0x3b0150(0x440)][_0x3b0150(0x3bc)](_0x266b55,this[_0x3b0150(0x2a8)]);},'onMissingChangesets':({from:_0x1284da,to:_0x19138f})=>{const _0x29ae78=_0x2317aa;this[_0x29ae78(0x30a)][_0x29ae78(0x54b)](_0x29ae78(0x2c9),_0x29ae78(0x37c)+_0x1284da+_0x29ae78(0x1d4)+_0x19138f);let _0x4378d0={'eventID':_0x58a81f[_0x29ae78(0x386)][_0x29ae78(0x278)],'data':{'unitID':_0x594ff0,'unitType':this[_0x29ae78(0x503)],'from':_0x1284da,'to':_0x19138f}};this[_0x29ae78(0x440)][_0x29ae78(0x3bc)](_0x4378d0,this[_0x29ae78(0x2a8)]);}};}async[_0x39fe8c(0x228)](_0x18460d){const _0x2f4327=_0x39fe8c;var _0x3cb1e3;let _0x589309=await((_0x3cb1e3=this[_0x2f4327(0x353)])==null?void 0x0:_0x3cb1e3[_0x2f4327(0x3f6)](this[_0x2f4327(0x2a8)])),_0x26b773=(_0x589309==null?void 0x0:_0x589309[_0x2f4327(0x45d)])??[],_0x38de9b=(_0x589309==null?void 0x0:_0x589309[_0x2f4327(0x22f)])??null,_0x151f16=!!(_0x38de9b!=null&&_0x38de9b[_0x2f4327(0x517)])&&!!(_0x38de9b!=null&&_0x38de9b[_0x2f4327(0x435)]);this['_changesetSessionId']=_0x151f16?_0x38de9b['sid']:(0x0,_0x58a81f[_0x2f4327(0x270)])(),this[_0x2f4327(0x457)]=_0x151f16?_0x38de9b[_0x2f4327(0x435)]:0x0;let _0x25a86a=this[_0x2f4327(0x2a8)];try{this['_replayCachedMutations'](_0x38de9b,_0x26b773);}catch(_0x47e966){this[_0x2f4327(0x30a)][_0x2f4327(0x29b)](_0x47e966);}let _0x53ab19=this['_createHandler']();if(_0x18460d){let _0x2b672a=_0x24de27(this['_injector'],_0x25a86a,this[_0x2f4327(0x503)],_0x38de9b,_0x26b773,_0x53ab19);return _0x2b672a instanceof _0x14c1a2?_0x2b672a[_0x2f4327(0x1d9)]():(_0x2b672a instanceof _0x196fce||_0x2b672a instanceof _0xf2dbd3)&&_0x2b672a[_0x2f4327(0x2da)](),_0x2b672a;}return this[_0x2f4327(0x483)][_0x2f4327(0x4bc)](_0x46544f,_0x25a86a,this[_0x2f4327(0x503)],_0x38de9b,_0x26b773,_0x53ab19);}[_0x39fe8c(0x2c6)](_0x3aec1d,_0x2d51e2){const _0x2e0e5d=_0x39fe8c;var _0x35ca3c,_0x577ab4;let _0x33fc55=this[_0x2e0e5d(0x410)][_0x2e0e5d(0x4c6)]['fetchThroughInterceptors'](this[_0x2e0e5d(0x410)][_0x2e0e5d(0x4c6)]['getInterceptPoints']()[_0x2e0e5d(0x1f8)]);(_0x35ca3c=_0x33fc55((_0x3aec1d==null?void 0x0:_0x3aec1d['mutations'])||[],null))==null||_0x35ca3c[_0x2e0e5d(0x30f)](_0x479311=>this[_0x2e0e5d(0x461)][_0x2e0e5d(0x300)](_0x479311['id'],_0x479311[_0x2e0e5d(0x396)])),(_0x577ab4=_0x33fc55(_0x2d51e2||[],null))==null||_0x577ab4['forEach'](_0x5af214=>this[_0x2e0e5d(0x461)][_0x2e0e5d(0x300)](_0x5af214['id'],_0x5af214[_0x2e0e5d(0x396)]));}};_0x54d84e=_0xdb6dd9([_0x32d44(0x3,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x409)])),_0x32d44(0x4,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x58a81f[_0x39fe8c(0x432)])),_0x32d44(0x5,(0x0,_0xa4b471['Inject'])(_0xa4b471[_0x39fe8c(0x495)])),_0x32d44(0x6,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x58a81f['RevisionService'])),_0x32d44(0x7,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x559d58)),_0x32d44(0x8,_0xa4b471[_0x39fe8c(0x2cb)]),_0x32d44(0x9,_0xa4b471[_0x39fe8c(0x2b6)]),_0x32d44(0xa,_0xa4b471[_0x39fe8c(0x385)]),_0x32d44(0xb,_0xa4b471[_0x39fe8c(0x33f)]),_0x32d44(0xc,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x117313)),_0x32d44(0xd,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x4ed09e))],_0x54d84e);let _0x516850=class extends _0x54d84e{constructor(_0x4d75d1,_0x14816f,_0x3b7fef,_0x5221fd,_0x24c345,_0x11fefd,_0x2d94dc,_0x551de6,_0x1353fb,_0x5c0cf0,_0x5ab3fb,_0x30a929,_0xf6943c,_0x3cceb8,_0x232ce9){const _0x3f7f95=_0x39fe8c;super(_0x4d75d1,_0x3b7fef,_0x14816f,_0x5221fd,_0x24c345,_0x11fefd,_0x2d94dc,_0x551de6,_0x1353fb,_0x5c0cf0,_0x5ab3fb,_0x30a929,_0x3cceb8,_0x232ce9),this[_0x3f7f95(0x2a8)]=_0x4d75d1,this[_0x3f7f95(0x33d)]=_0x14816f,this[_0x3f7f95(0x52f)]=_0xf6943c,_0x2f2d1e(this,_0x3f7f95(0x431),null);}[_0x39fe8c(0x53e)](_0x47af78){const _0x5d300f=_0x39fe8c;this[_0x5d300f(0x431)]=_0x47af78;}[_0x39fe8c(0x283)](){const _0x561880=_0x39fe8c;this[_0x561880(0x431)]=null,super[_0x561880(0x283)]();}[_0x39fe8c(0x48c)](){const _0x2f3701=_0x39fe8c;let _0xeff2ce=super[_0x2f3701(0x48c)]();return _0xeff2ce[_0x2f3701(0x2af)]=_0xeefc38=>{const _0x2f364c=_0x2f3701;var _0x46d8e6,_0x261d8a;return(_0x46d8e6=this[_0x2f364c(0x431)])==null||(_0x261d8a=_0x46d8e6[_0x2f364c(0x2af)])==null?void 0x0:_0x261d8a['call'](_0x46d8e6,_0xeefc38);},_0xeff2ce[_0x2f3701(0x54f)]=_0x417fb5=>{const _0x260ffa=_0x2f3701;var _0x420148,_0x1ee407;return(_0x420148=this[_0x260ffa(0x431)])==null||(_0x1ee407=_0x420148['onTransformState'])==null?void 0x0:_0x1ee407[_0x260ffa(0x442)](_0x420148,_0x417fb5);},_0xeff2ce['onPrepareTransformSelections']=_0x138a33=>{const _0x236aa9=_0x2f3701;var _0x15b483,_0xbac296;return((_0x15b483=this[_0x236aa9(0x431)])==null||(_0xbac296=_0x15b483[_0x236aa9(0x395)])==null?void 0x0:_0xbac296[_0x236aa9(0x442)](_0x15b483,_0x138a33))??null;},_0xeff2ce[_0x2f3701(0x2dc)]=_0x3ff546=>{const _0x5abb0a=_0x2f3701;var _0x124dd5,_0x103332;return(_0x124dd5=this[_0x5abb0a(0x431)])==null||(_0x103332=_0x124dd5['onTransformSelections'])==null?void 0x0:_0x103332[_0x5abb0a(0x442)](_0x124dd5,_0x3ff546);},_0xeff2ce[_0x2f3701(0x4bb)]=_0x2bdca6=>{const _0x301c89=_0x2f3701;var _0x216ddd,_0x2d3b9f;return(_0x216ddd=this[_0x301c89(0x431)])==null||(_0x2d3b9f=_0x216ddd[_0x301c89(0x4bb)])==null?void 0x0:_0x2d3b9f[_0x301c89(0x442)](_0x216ddd,_0x2bdca6);},_0xeff2ce[_0x2f3701(0x509)]=_0x1f528a=>{const _0xfb8b11=_0x2f3701;var _0x2f7b2e,_0x36df7f;return((_0x2f7b2e=this['_handlerCallback'])==null||(_0x36df7f=_0x2f7b2e[_0xfb8b11(0x509)])==null?void 0x0:_0x36df7f['call'](_0x2f7b2e,_0x1f528a))??_0x1f528a;},_0xeff2ce[_0x2f3701(0x515)]=_0x2eab6f=>{const _0x1aff4c=_0x2f3701;var _0x4f37c5,_0x29f9ee;return((_0x4f37c5=this[_0x1aff4c(0x431)])==null||(_0x29f9ee=_0x4f37c5[_0x1aff4c(0x515)])==null?void 0x0:_0x29f9ee[_0x1aff4c(0x442)](_0x4f37c5,_0x2eab6f))??_0x2eab6f;},_0xeff2ce;}async[_0x39fe8c(0x335)](){const _0x2bd8c8=_0x39fe8c;let _0x2bcd96=await super[_0x2bd8c8(0x335)]();return this[_0x2bd8c8(0x1f7)](this[_0x2bd8c8(0x52f)][_0x2bd8c8(0x4c2)][_0x2bd8c8(0x27e)](_0x41d89b=>{const _0x58966d=_0x2bd8c8;if(_0x41d89b==null||_0x41d89b['unitId']!==this[_0x58966d(0x2a8)])return;let {commandId:_0x255adf,redoState:_0x7ecf99,unitId:_0x163d91}=_0x41d89b,_0x567102={'id':_0x255adf,'type':_0xa4b471[_0x58966d(0x4d8)][_0x58966d(0x287)],'params':{'unitId':_0x163d91,'actions':_0x7ecf99[_0x58966d(0x2e8)],'textRanges':null}};this['_onLocalMutation'](_0x567102);})),this[_0x2bd8c8(0x1f7)](this[_0x2bd8c8(0x461)][_0x2bd8c8(0x28a)]((_0x129665,_0x116d9a)=>{const _0x18adc0=_0x2bd8c8;if(_0x129665[_0x18adc0(0x33d)]!==_0xa4b471['CommandType']['MUTATION']||_0x116d9a!=null&&_0x116d9a[_0x18adc0(0x327)]||_0x116d9a!=null&&_0x116d9a['onlyLocal']||_0x129665['id']===_0x249642[_0x18adc0(0x244)]['id'])return;let _0x3ca42d=_0x129665['params'];if((_0x3ca42d==null?void 0x0:_0x3ca42d[_0x18adc0(0x441)])!==this[_0x18adc0(0x2a8)])return;let _0x296aea=_0x129665,_0x20fbc6=this[_0x18adc0(0x410)][_0x18adc0(0x4c6)]['fetchThroughInterceptors'](this[_0x18adc0(0x410)][_0x18adc0(0x4c6)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x296aea],this[_0x18adc0(0x46b)])||[_0x296aea];this['_onLocalMutation'](_0x20fbc6[0x0]);})),_0x2bcd96;}};_0x516850=_0xdb6dd9([_0x32d44(0x3,(0x0,_0xa4b471['Inject'])(_0xa4b471[_0x39fe8c(0x409)])),_0x32d44(0x4,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x58a81f[_0x39fe8c(0x432)])),_0x32d44(0x5,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x495)])),_0x32d44(0x6,(0x0,_0xa4b471['Inject'])(_0x58a81f[_0x39fe8c(0x4a2)])),_0x32d44(0x7,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x559d58)),_0x32d44(0x8,_0xa4b471[_0x39fe8c(0x2cb)]),_0x32d44(0x9,_0xa4b471[_0x39fe8c(0x2b6)]),_0x32d44(0xa,_0xa4b471[_0x39fe8c(0x385)]),_0x32d44(0xb,_0xa4b471[_0x39fe8c(0x33f)]),_0x32d44(0xc,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x249642[_0x39fe8c(0x4c7)])),_0x32d44(0xd,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x117313)),_0x32d44(0xe,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x4ed09e))],_0x516850);let _0x33043c=class extends _0x54d84e{constructor(_0x397bfc,_0x2e1749,_0xdc9a42,_0x2140b0,_0x2ce041,_0x2fff03,_0x509e75,_0x3059fd,_0xc04fa8,_0x47d2e3,_0x205eb3,_0x4e03ce,_0x3a8348,_0x53487f){const _0x129b65=_0x39fe8c;super(_0x397bfc,_0xdc9a42,_0x2e1749,_0x2140b0,_0x2ce041,_0x2fff03,_0x509e75,_0x3059fd,_0xc04fa8,_0x47d2e3,_0x205eb3,_0x4e03ce,_0x3a8348,_0x53487f),this[_0x129b65(0x2a8)]=_0x397bfc,this[_0x129b65(0x33d)]=_0x2e1749;}async['_init'](){const _0x1029e8=_0x39fe8c;let _0xb2af10=await super[_0x1029e8(0x335)]();return this[_0x1029e8(0x1f7)](this['_commandService'][_0x1029e8(0x28a)]((_0x26a801,_0x280a8f)=>{const _0x3a6d8d=_0x1029e8;if(_0x26a801[_0x3a6d8d(0x33d)]!==_0xa4b471[_0x3a6d8d(0x4d8)]['MUTATION']||_0x280a8f!=null&&_0x280a8f['fromCollab']||_0x280a8f!=null&&_0x280a8f['onlyLocal'])return;let _0x2f5c59=_0x26a801[_0x3a6d8d(0x396)];if((_0x2f5c59==null?void 0x0:_0x2f5c59[_0x3a6d8d(0x441)])!==this[_0x3a6d8d(0x2a8)])return;let _0x12c076=_0x26a801,_0x30b14b=this[_0x3a6d8d(0x410)]['interceptor'][_0x3a6d8d(0x4dc)](this[_0x3a6d8d(0x410)][_0x3a6d8d(0x4c6)][_0x3a6d8d(0x436)]()[_0x3a6d8d(0x3b5)])([_0x12c076],this[_0x3a6d8d(0x46b)])||[_0x12c076];this['_onLocalMutation'](_0x30b14b[0x0]);})),_0xb2af10;}};_0x33043c=_0xdb6dd9([_0x32d44(0x3,(0x0,_0xa4b471['Inject'])(_0xa4b471['Injector'])),_0x32d44(0x4,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x58a81f['CompressMutationService'])),_0x32d44(0x5,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x495)])),_0x32d44(0x6,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x58a81f[_0x39fe8c(0x4a2)])),_0x32d44(0x7,(0x0,_0xa4b471['Inject'])(_0x559d58)),_0x32d44(0x8,_0xa4b471['IUniverInstanceService']),_0x32d44(0x9,_0xa4b471[_0x39fe8c(0x2b6)]),_0x32d44(0xa,_0xa4b471[_0x39fe8c(0x385)]),_0x32d44(0xb,_0xa4b471[_0x39fe8c(0x33f)]),_0x32d44(0xc,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x117313)),_0x32d44(0xd,(0x0,_0xa4b471['Optional'])(_0x4ed09e))],_0x33043c);let _0x5aead8=class extends _0x54d84e{constructor(_0x5cc9f6,_0x3368f9,_0x3becb7,_0x26aa66,_0x350603,_0x26548d,_0x36a4c6,_0x2b1bc0,_0x3341ec,_0x1afc41,_0x51521f,_0x57036e,_0x2200fa,_0x12ed17,_0x106ad9){const _0x23017a=_0x39fe8c;super(_0x5cc9f6,_0x3becb7,_0x3368f9,_0x26aa66,_0x350603,_0x26548d,_0x36a4c6,_0x3341ec,_0x1afc41,_0x51521f,_0x57036e,_0x2200fa,_0x12ed17,_0x106ad9),this[_0x23017a(0x2a8)]=_0x5cc9f6,this[_0x23017a(0x33d)]=_0x3368f9,this[_0x23017a(0x373)]=_0x2b1bc0;}[_0x39fe8c(0x48c)](){const _0x1d6998=_0x39fe8c;let _0x3ebbb7=super['_createHandler']();return _0x3ebbb7[_0x1d6998(0x2dc)]=_0x47aca3=>this['_sheetTransformSelectionsService'][_0x1d6998(0x54a)](_0x47aca3),_0x3ebbb7;}async['_init'](){const _0x7eabcb=_0x39fe8c;let _0x363277=await super['_init']();return this[_0x7eabcb(0x1f7)](this[_0x7eabcb(0x461)]['onMutationExecutedForCollab']((_0xc89254,_0x78578d)=>{const _0x2df200=_0x7eabcb;if(_0xc89254[_0x2df200(0x33d)]!==_0xa4b471[_0x2df200(0x4d8)][_0x2df200(0x287)]||_0x78578d!=null&&_0x78578d[_0x2df200(0x327)]||_0x78578d!=null&&_0x78578d[_0x2df200(0x380)])return;let _0x520a0a=_0xc89254[_0x2df200(0x396)];if((_0x520a0a==null?void 0x0:_0x520a0a[_0x2df200(0x441)])!==this['unitID'])return;let _0x179c0b=_0xc89254,_0x4288c1=this['_compressMutationService'][_0x2df200(0x4c6)]['fetchThroughInterceptors'](this[_0x2df200(0x410)][_0x2df200(0x4c6)][_0x2df200(0x436)]()[_0x2df200(0x3b5)])([_0x179c0b],this[_0x2df200(0x46b)])||[_0x179c0b];this[_0x2df200(0x317)](_0x4288c1[0x0]);})),_0x363277;}};_0x5aead8=_0xdb6dd9([_0x32d44(0x3,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x409)])),_0x32d44(0x4,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x58a81f[_0x39fe8c(0x432)])),_0x32d44(0x5,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x495)])),_0x32d44(0x6,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x58a81f['RevisionService'])),_0x32d44(0x7,(0x0,_0xa4b471['Inject'])(_0x3c187c)),_0x32d44(0x8,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x559d58)),_0x32d44(0x9,_0xa4b471['IUniverInstanceService']),_0x32d44(0xa,_0xa4b471[_0x39fe8c(0x2b6)]),_0x32d44(0xb,_0xa4b471[_0x39fe8c(0x385)]),_0x32d44(0xc,_0xa4b471['IPermissionService']),_0x32d44(0xd,(0x0,_0xa4b471['Optional'])(_0x117313)),_0x32d44(0xe,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x4ed09e))],_0x5aead8);let _0x20e643=class extends _0x54d84e{constructor(_0x3049b7,_0x526ab1,_0x708924,_0x291aba,_0x4173c4,_0x111c22,_0x581381,_0x55fdea,_0x45b489,_0x13f271,_0x20086d,_0x2c6989,_0x3f28a7,_0x21b397){const _0x40bdf5=_0x39fe8c;super(_0x3049b7,_0x708924,_0x526ab1,_0x291aba,_0x4173c4,_0x111c22,_0x581381,_0x55fdea,_0x45b489,_0x13f271,_0x20086d,_0x2c6989,_0x3f28a7,_0x21b397),this[_0x40bdf5(0x2a8)]=_0x3049b7,this[_0x40bdf5(0x33d)]=_0x526ab1;}async[_0x39fe8c(0x335)](){const _0x53af7b=_0x39fe8c;let _0x3c3a22=await super[_0x53af7b(0x335)]();return this[_0x53af7b(0x1f7)](this[_0x53af7b(0x461)][_0x53af7b(0x28a)]((_0x35efd4,_0x379cf5)=>{const _0x4aea5d=_0x53af7b;if(_0x35efd4[_0x4aea5d(0x33d)]!==_0xa4b471[_0x4aea5d(0x4d8)][_0x4aea5d(0x287)]||_0x379cf5!=null&&_0x379cf5['fromCollab']||_0x379cf5!=null&&_0x379cf5[_0x4aea5d(0x380)])return;let _0x25e7bb=_0x35efd4[_0x4aea5d(0x396)];if((_0x25e7bb==null?void 0x0:_0x25e7bb['unitId'])!==this[_0x4aea5d(0x2a8)])return;let _0x525ccb=_0x35efd4,_0x16fa75=this['_compressMutationService'][_0x4aea5d(0x4c6)][_0x4aea5d(0x4dc)](this[_0x4aea5d(0x410)][_0x4aea5d(0x4c6)][_0x4aea5d(0x436)]()['COMPRESS_MUTATION_SEND'])([_0x525ccb],this[_0x4aea5d(0x46b)])||[_0x525ccb];this[_0x4aea5d(0x317)](_0x16fa75[0x0]);})),_0x3c3a22;}};_0x20e643=_0xdb6dd9([_0x32d44(0x3,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x409)])),_0x32d44(0x4,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x58a81f[_0x39fe8c(0x432)])),_0x32d44(0x5,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471['LocaleService'])),_0x32d44(0x6,(0x0,_0xa4b471['Inject'])(_0x58a81f['RevisionService'])),_0x32d44(0x7,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x559d58)),_0x32d44(0x8,_0xa4b471['IUniverInstanceService']),_0x32d44(0x9,_0xa4b471['ILogService']),_0x32d44(0xa,_0xa4b471[_0x39fe8c(0x385)]),_0x32d44(0xb,_0xa4b471[_0x39fe8c(0x33f)]),_0x32d44(0xc,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x117313)),_0x32d44(0xd,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x4ed09e))],_0x20e643);let _0xb9f2c4=class extends _0x54d84e{constructor(_0x2bf54f,_0x3ff3ff,_0x2d176e,_0x22fc69,_0x170550,_0x2ef83b,_0x23d7a5,_0x43b2bd,_0x34741d,_0x43b40a,_0x32f2ca,_0x1ba6cf,_0x5839b6,_0x251a15){const _0x139679=_0x39fe8c;super(_0x2bf54f,_0x2d176e,_0x3ff3ff,_0x22fc69,_0x170550,_0x2ef83b,_0x23d7a5,_0x43b2bd,_0x34741d,_0x43b40a,_0x32f2ca,_0x1ba6cf,_0x5839b6,_0x251a15),this[_0x139679(0x2a8)]=_0x2bf54f,this[_0x139679(0x33d)]=_0x3ff3ff;}async[_0x39fe8c(0x335)](){const _0x2d6df9=_0x39fe8c;let _0x46af80=await super[_0x2d6df9(0x335)]();return this[_0x2d6df9(0x1f7)](this['_commandService'][_0x2d6df9(0x28a)]((_0x5cb817,_0x4f4d3c)=>{const _0x2be00b=_0x2d6df9;if(_0x5cb817[_0x2be00b(0x33d)]!==_0xa4b471[_0x2be00b(0x4d8)][_0x2be00b(0x287)]||_0x4f4d3c!=null&&_0x4f4d3c[_0x2be00b(0x327)]||_0x4f4d3c!=null&&_0x4f4d3c['onlyLocal'])return;let _0x5e9076=_0x5cb817[_0x2be00b(0x396)];if((_0x5e9076==null?void 0x0:_0x5e9076['unitId'])!==this[_0x2be00b(0x2a8)])return;let _0x4729a1=_0x5cb817,_0x259392=this[_0x2be00b(0x410)]['interceptor'][_0x2be00b(0x4dc)](this[_0x2be00b(0x410)][_0x2be00b(0x4c6)][_0x2be00b(0x436)]()[_0x2be00b(0x3b5)])([_0x4729a1],this[_0x2be00b(0x46b)])||[_0x4729a1];this[_0x2be00b(0x317)](_0x259392[0x0]);})),_0x46af80;}};_0xb9f2c4=_0xdb6dd9([_0x32d44(0x3,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x409)])),_0x32d44(0x4,(0x0,_0xa4b471['Inject'])(_0x58a81f['CompressMutationService'])),_0x32d44(0x5,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x495)])),_0x32d44(0x6,(0x0,_0xa4b471['Inject'])(_0x58a81f[_0x39fe8c(0x4a2)])),_0x32d44(0x7,(0x0,_0xa4b471['Inject'])(_0x559d58)),_0x32d44(0x8,_0xa4b471[_0x39fe8c(0x2cb)]),_0x32d44(0x9,_0xa4b471[_0x39fe8c(0x2b6)]),_0x32d44(0xa,_0xa4b471[_0x39fe8c(0x385)]),_0x32d44(0xb,_0xa4b471['IPermissionService']),_0x32d44(0xc,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x117313)),_0x32d44(0xd,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x4ed09e))],_0xb9f2c4);let _0x597493=class extends _0x54d84e{constructor(_0x174ceb,_0x343c8c,_0x306ed5,_0x2882d4,_0x6afae5,_0x510a20,_0x20c8ee,_0x333ad6,_0x20c5b3,_0x36fc91,_0xdb72a6,_0x16c8b5,_0x200ffc,_0x17ba89){const _0x48e2c1=_0x39fe8c;super(_0x174ceb,_0x306ed5,_0x343c8c,_0x2882d4,_0x6afae5,_0x510a20,_0x20c8ee,_0x333ad6,_0x20c5b3,_0x36fc91,_0xdb72a6,_0x16c8b5,_0x200ffc,_0x17ba89),this[_0x48e2c1(0x2a8)]=_0x174ceb,this[_0x48e2c1(0x33d)]=_0x343c8c;}async['_init'](){const _0x21acea=_0x39fe8c;let _0x2d5f62=await super[_0x21acea(0x335)]();return this[_0x21acea(0x1f7)](this['_commandService']['onMutationExecutedForCollab']((_0x739c47,_0x3ecef9)=>{const _0x71d0ac=_0x21acea;if(_0x739c47[_0x71d0ac(0x33d)]!==_0xa4b471[_0x71d0ac(0x4d8)][_0x71d0ac(0x287)]||_0x3ecef9!=null&&_0x3ecef9[_0x71d0ac(0x327)]||_0x3ecef9!=null&&_0x3ecef9[_0x71d0ac(0x380)])return;let _0x92bd2b=_0x739c47[_0x71d0ac(0x396)];if((_0x92bd2b==null?void 0x0:_0x92bd2b[_0x71d0ac(0x441)])!==this[_0x71d0ac(0x2a8)])return;let _0x471585=_0x739c47,_0x115348=this[_0x71d0ac(0x410)][_0x71d0ac(0x4c6)][_0x71d0ac(0x4dc)](this[_0x71d0ac(0x410)]['interceptor'][_0x71d0ac(0x436)]()['COMPRESS_MUTATION_SEND'])([_0x471585],this['_univerInstanceService'])||[_0x471585];this['_onLocalMutation'](_0x115348[0x0]);})),_0x2d5f62;}};_0x597493=_0xdb6dd9([_0x32d44(0x3,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x409)])),_0x32d44(0x4,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x58a81f[_0x39fe8c(0x432)])),_0x32d44(0x5,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471['LocaleService'])),_0x32d44(0x6,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x58a81f[_0x39fe8c(0x4a2)])),_0x32d44(0x7,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x559d58)),_0x32d44(0x8,_0xa4b471['IUniverInstanceService']),_0x32d44(0x9,_0xa4b471[_0x39fe8c(0x2b6)]),_0x32d44(0xa,_0xa4b471[_0x39fe8c(0x385)]),_0x32d44(0xb,_0xa4b471[_0x39fe8c(0x33f)]),_0x32d44(0xc,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x117313)),_0x32d44(0xd,(0x0,_0xa4b471['Optional'])(_0x4ed09e))],_0x597493);let _0x30fdbb=(0x0,_0xa4b471[_0x39fe8c(0x2e1)])(_0x39fe8c(0x1fb));function _0x5e6b17(_0x1b98e0){const _0x4458ab=_0x39fe8c;let _0x414d07=_0x1b98e0[_0x4458ab(0x250)],_0x2bea7a=JSON[_0x4458ab(0x2f7)](_0x414d07);switch(_0x2bea7a[_0x4458ab(0x282)]){case _0x75c91[_0x4458ab(0x2d3)][_0x4458ab(0x3d7)]:case _0x75c91['CombCmd'][_0x4458ab(0x24b)]:{let _0x38d299=_0x2bea7a[_0x4458ab(0x3f2)];return{..._0x2bea7a,'data':_0x38d299,'cmd':_0x2bea7a[_0x4458ab(0x282)]};}case _0x75c91[_0x4458ab(0x2d3)][_0x4458ab(0x3f9)]:{let _0x358933=_0x2bea7a[_0x4458ab(0x310)];return{..._0x2bea7a,'data':_0x358933,'cmd':_0x2bea7a[_0x4458ab(0x282)]};}case _0x75c91[_0x4458ab(0x2d3)][_0x4458ab(0x204)]:{let _0x485f03=_0x2bea7a[_0x4458ab(0x4a4)];switch(_0x485f03[_0x4458ab(0x3d5)]){case _0x58a81f[_0x4458ab(0x386)]['PERMISSION_REJ']:var _0x3ef4d0;return{..._0x2bea7a,'data':{..._0x485f03,'data':(_0x3ef4d0=_0x485f03[_0x4458ab(0x4b4)])==null?void 0x0:_0x3ef4d0['cs']},'cmd':_0x2bea7a[_0x4458ab(0x282)]};case _0x58a81f[_0x4458ab(0x386)]['CHANGESET_ACK']:var _0x3356dc;return{..._0x2bea7a,'data':{..._0x485f03,'data':(_0x3356dc=_0x485f03[_0x4458ab(0x44d)])==null?void 0x0:_0x3356dc['cs']},'cmd':_0x2bea7a[_0x4458ab(0x282)]};case _0x58a81f[_0x4458ab(0x386)][_0x4458ab(0x448)]:var _0x325bb5;return{..._0x2bea7a,'data':{..._0x485f03,'data':(_0x325bb5=_0x485f03[_0x4458ab(0x3ef)])==null?void 0x0:_0x325bb5['cs']},'cmd':_0x2bea7a[_0x4458ab(0x282)]};case _0x58a81f[_0x4458ab(0x386)]['CHANGESET_REJ']:var _0x536418;return{..._0x2bea7a,'data':{..._0x485f03,'data':(_0x536418=_0x485f03[_0x4458ab(0x465)])==null?void 0x0:_0x536418['cs']},'cmd':_0x2bea7a[_0x4458ab(0x282)]};case _0x58a81f[_0x4458ab(0x386)]['CHANGESET_SHOULD_RETRY']:var _0x19e488;return{..._0x2bea7a,'data':{..._0x485f03,'data':(_0x19e488=_0x485f03[_0x4458ab(0x2f3)])==null?void 0x0:_0x19e488['cs']},'cmd':_0x2bea7a[_0x4458ab(0x282)]};case _0x58a81f[_0x4458ab(0x386)][_0x4458ab(0x400)]:return{..._0x2bea7a,'data':{..._0x485f03,'data':_0x485f03['updateCursorEvent']},'cmd':_0x2bea7a[_0x4458ab(0x282)]};case _0x58a81f[_0x4458ab(0x386)][_0x4458ab(0x27b)]:return{..._0x2bea7a,'data':{..._0x485f03,'data':_0x485f03[_0x4458ab(0x36b)]},'cmd':_0x2bea7a[_0x4458ab(0x282)]};case _0x58a81f[_0x4458ab(0x386)][_0x4458ab(0x365)]:return{..._0x2bea7a,'data':{..._0x485f03,'data':_0x485f03[_0x4458ab(0x1dc)]},'cmd':_0x2bea7a['cmd']};case _0x58a81f[_0x4458ab(0x386)][_0x4458ab(0x4ce)]:return{..._0x2bea7a,'data':{..._0x485f03,'data':_0x485f03['liveShareNewHost']},'cmd':_0x2bea7a['cmd']};case _0x58a81f[_0x4458ab(0x386)][_0x4458ab(0x43a)]:case _0x58a81f[_0x4458ab(0x386)][_0x4458ab(0x47f)]:return{..._0x2bea7a,'data':{..._0x485f03,'data':_0x485f03[_0x4458ab(0x41b)]},'cmd':_0x2bea7a[_0x4458ab(0x282)]};case _0x58a81f[_0x4458ab(0x386)]['LIVESHARE_TERMINATE']:return{..._0x2bea7a,'data':{..._0x485f03,'data':_0x485f03[_0x4458ab(0x49b)]},'cmd':_0x2bea7a[_0x4458ab(0x282)]};case _0x58a81f[_0x4458ab(0x386)][_0x4458ab(0x4cf)]:return{..._0x2bea7a,'data':_0x485f03,'cmd':_0x2bea7a['cmd']};case _0x58a81f[_0x4458ab(0x386)][_0x4458ab(0x526)]:return{..._0x2bea7a,'data':{..._0x485f03,'data':_0x485f03[_0x4458ab(0x4a1)]},'cmd':_0x2bea7a['cmd']};case _0x58a81f[_0x4458ab(0x386)][_0x4458ab(0x308)]:return{..._0x2bea7a,'data':{..._0x485f03,'data':_0x485f03[_0x4458ab(0x500)]},'cmd':_0x2bea7a[_0x4458ab(0x282)]};case _0x58a81f['CollaborationEvent'][_0x4458ab(0x266)]:return{..._0x2bea7a,'data':{..._0x485f03,'data':_0x485f03[_0x4458ab(0x233)]},'cmd':_0x2bea7a[_0x4458ab(0x282)]};case _0x58a81f[_0x4458ab(0x386)][_0x4458ab(0x314)]:return{..._0x2bea7a,'data':{..._0x485f03,'data':_0x485f03[_0x4458ab(0x40c)]},'cmd':_0x2bea7a[_0x4458ab(0x282)]};default:return _0x2bea7a;}}default:return _0x2bea7a;}}function _0x23efc4(_0x47b287){const _0x10617e=_0x39fe8c;switch(_0x47b287[_0x10617e(0x282)]){case _0x75c91[_0x10617e(0x2d3)][_0x10617e(0x3d7)]:case _0x75c91[_0x10617e(0x2d3)][_0x10617e(0x24b)]:return JSON[_0x10617e(0x326)]({'cmd':_0x47b287[_0x10617e(0x282)],'routeKey':_0x47b287['routeKey']});case _0x75c91[_0x10617e(0x2d3)]['INGEST']:{let _0x288509;switch(_0x47b287['data'][_0x10617e(0x3d5)]){case _0x58a81f[_0x10617e(0x386)]['UPDATE_CURSOR']:_0x288509={'eventID':_0x58a81f['CollaborationEvent'][_0x10617e(0x400)],'updateCursorEvent':_0x47b287['data']['data']};break;case _0x58a81f[_0x10617e(0x386)][_0x10617e(0x365)]:_0x288509={'eventID':_0x58a81f['CollaborationEvent']['USERS_LEAVE'],'leaveEvent':_0x47b287[_0x10617e(0x250)]['data']};break;case _0x58a81f[_0x10617e(0x386)][_0x10617e(0x27b)]:_0x288509={'eventID':_0x58a81f['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x47b287[_0x10617e(0x250)][_0x10617e(0x250)]};break;case _0x58a81f['CollaborationEvent'][_0x10617e(0x4ce)]:_0x288509={'eventID':_0x58a81f[_0x10617e(0x386)][_0x10617e(0x4ce)],'liveShareNewHost':_0x47b287[_0x10617e(0x250)][_0x10617e(0x250)]};break;case _0x58a81f[_0x10617e(0x386)][_0x10617e(0x47f)]:_0x288509={'eventID':_0x58a81f[_0x10617e(0x386)][_0x10617e(0x47f)],'liveShareOperation':_0x47b287['data'][_0x10617e(0x250)]};break;case _0x58a81f[_0x10617e(0x386)][_0x10617e(0x255)]:_0x288509={'eventID':_0x58a81f[_0x10617e(0x386)][_0x10617e(0x255)],'liveShareTerminate':_0x47b287[_0x10617e(0x250)][_0x10617e(0x250)]};break;case _0x58a81f[_0x10617e(0x386)][_0x10617e(0x203)]:_0x288509={'eventID':_0x58a81f[_0x10617e(0x386)][_0x10617e(0x203)],'liveShareRequestHost':_0x47b287['data'][_0x10617e(0x250)]};break;case _0x58a81f['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:_0x288509={'eventID':_0x58a81f[_0x10617e(0x386)][_0x10617e(0x43a)]};break;default:_0x288509={'eventID':_0x47b287[_0x10617e(0x250)]['eventID']};}return JSON[_0x10617e(0x326)]({'cmd':_0x47b287[_0x10617e(0x282)],'routeKey':_0x47b287[_0x10617e(0x2bf)],'collaMsg':_0x288509});}case _0x75c91[_0x10617e(0x2d3)][_0x10617e(0x3f9)]:return JSON[_0x10617e(0x326)]({'cmd':_0x47b287['cmd'],'routeKey':_0x47b287[_0x10617e(0x2bf)],'joinReq':_0x47b287[_0x10617e(0x250)]});case _0x75c91[_0x10617e(0x2d3)][_0x10617e(0x29f)]:return JSON['stringify']({'cmd':_0x47b287['cmd'],'routeKey':_0x47b287[_0x10617e(0x2bf)],'leaveReq':_0x47b287[_0x10617e(0x250)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}let _0x1fb657=(0x0,_0xa4b471[_0x39fe8c(0x2e1)])('univer-pro.collaboration-client-socket-service');function _0x465b8(_0x1b3efd,_0x17fc64,_0x413f43){const _0x538973=_0x39fe8c;return _0x1b3efd+'/'+_0x17fc64+_0x538973(0x52a)+_0x413f43+_0x538973(0x3a9);}let _0x1d3bd2=class extends _0xa4b471['Disposable']{constructor(_0x5bc5f6,_0x5dbf55,_0x5e4b4d,_0x3b03b9,_0x31f9b){const _0x16cc8d=_0x39fe8c;super(),this['_injector']=_0x5bc5f6,this[_0x16cc8d(0x3a7)]=_0x5dbf55,this[_0x16cc8d(0x481)]=_0x5e4b4d,this[_0x16cc8d(0x30a)]=_0x3b03b9,this['_snapshotServerService']=_0x31f9b;}['_doCreateSocket'](_0x3401d8){const _0x4a9dd8=_0x39fe8c;let _0x5283e2=this[_0x4a9dd8(0x483)][_0x4a9dd8(0x512)](_0x34e285[_0x4a9dd8(0x36d)]);if(!_0x5283e2)throw Error(_0x4a9dd8(0x4c1));let _0x1b4167=_0x5283e2[_0x4a9dd8(0x535)](_0x3401d8);if(!_0x1b4167)throw Error(_0x4a9dd8(0x316));let _0x3cfc76=new _0xa4b471[(_0x4a9dd8(0x281))](),_0x1d9db6=new _0x3f20a0[(_0x4a9dd8(0x42b))]();_0x3cfc76[_0x4a9dd8(0x4be)](_0x1b4167[_0x4a9dd8(0x54c)][_0x4a9dd8(0x27e)](_0x152687=>_0x1d9db6[_0x4a9dd8(0x3a2)](_0x152687))),_0x3cfc76['add']((0x0,_0xa4b471[_0x4a9dd8(0x3fc)])(()=>_0x1d9db6[_0x4a9dd8(0x4df)]()));let _0x57d130=new _0x3f20a0[(_0x4a9dd8(0x42b))]();_0x3cfc76[_0x4a9dd8(0x4be)](_0x1b4167[_0x4a9dd8(0x240)][_0x4a9dd8(0x27e)](_0x29b652=>_0x57d130[_0x4a9dd8(0x3a2)](_0x29b652))),_0x3cfc76[_0x4a9dd8(0x4be)]((0x0,_0xa4b471[_0x4a9dd8(0x3fc)])(()=>_0x57d130[_0x4a9dd8(0x4df)]()));let _0x4ee101=new _0x3f20a0['Subject']();_0x3cfc76[_0x4a9dd8(0x4be)](_0x1b4167['message$'][_0x4a9dd8(0x27e)](_0x3c0115=>{let _0x19b4e9=_0x5e6b17(_0x3c0115);_0x4ee101['next'](_0x19b4e9);})),_0x3cfc76[_0x4a9dd8(0x4be)]((0x0,_0xa4b471['toDisposable'])(()=>_0x4ee101[_0x4a9dd8(0x4df)]()));let _0x23b452,_0x337f0e=()=>{const _0x465a32=_0x4a9dd8;_0x57d130[_0x465a32(0x3a2)](new Event(_0x465a32(0x306))),_0x1d9db6[_0x465a32(0x3a2)](new Event(_0x465a32(0x306))),_0x23b452['close']();};return _0x23b452={'memberID':'','close$':_0x1d9db6[_0x4a9dd8(0x349)](),'error$':_0x57d130[_0x4a9dd8(0x349)](),'open$':_0x1b4167[_0x4a9dd8(0x4fa)],'message$':_0x4ee101[_0x4a9dd8(0x349)](),'send':_0x5ad519=>{const _0x376902=_0x4a9dd8;if(_0x5ad519[_0x376902(0x282)]===_0x75c91[_0x376902(0x2d3)][_0x376902(0x53b)]){if(_0x5ad519[_0x376902(0x250)][_0x376902(0x3d5)]===_0x58a81f[_0x376902(0x386)]['SUBMIT_CHANGESET']){this[_0x376902(0x3f1)](_0x23b452,_0x5ad519[_0x376902(0x250)])['catch'](_0x4649a4=>{const _0x456fb6=_0x376902;this[_0x456fb6(0x30a)][_0x456fb6(0x29b)](_0x4649a4),_0x337f0e();});return;}if(_0x5ad519[_0x376902(0x250)][_0x376902(0x3d5)]===_0x58a81f[_0x376902(0x386)]['FETCH_MISSING']){let _0x5914dd=_0x5ad519[_0x376902(0x250)];this[_0x376902(0x48f)](_0x5914dd)['then'](_0x2b1a91=>{const _0xc321cc=_0x376902;_0x4ee101['next']({'cmd':_0x75c91['CombCmd'][_0xc321cc(0x204)],'code':_0x75c91[_0xc321cc(0x321)]['OK'],'routeKey':_0x5914dd[_0xc321cc(0x250)]['unitID'],'routeType':'','data':{'eventID':_0x58a81f[_0xc321cc(0x386)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x2b1a91}}});})['catch'](_0x3ca9c4=>{const _0xa0c0ba=_0x376902;this[_0xa0c0ba(0x30a)][_0xa0c0ba(0x29b)](_0x3ca9c4),_0x337f0e();});return;}}_0x1b4167[_0x376902(0x3bc)](_0x23efc4(_0x5ad519));},'close':()=>{const _0x203fa9=_0x4a9dd8;_0x1b4167[_0x203fa9(0x354)](),_0x3cfc76[_0x203fa9(0x283)]();}},_0x23b452;}async[_0x39fe8c(0x3f1)](_0x47d00e,_0x12a148){const _0x5866e8=_0x39fe8c;let {unitType:_0x5a60b7,unitID:_0x3f946e,changeset:_0xd7ff4d}=_0x12a148[_0x5866e8(0x250)],_0x429e61={'unitID':_0x3f946e,'memberID':_0x47d00e[_0x5866e8(0x2be)],'type':_0x5a60b7,'changeset':(0x0,_0x58a81f[_0x5866e8(0x319)])(_0xd7ff4d)},_0x21ad88=this['_configService'][_0x5866e8(0x472)](_0x5ceae9),_0x1fee4f=_0x465b8((_0x21ad88==null?void 0x0:_0x21ad88[_0x5866e8(0x43b)])??_0x5866e8(0x2df),_0x5a60b7,_0x3f946e);try{await this[_0x5866e8(0x3a7)][_0x5866e8(0x52e)](_0x1fee4f,{'body':_0x429e61});}catch(_0x52f16e){throw this[_0x5866e8(0x30a)][_0x5866e8(0x29b)](_0x5866e8(0x2c7),'submit\x20changeset\x20error!'),_0x52f16e;}}async['_fetchMissChangesets'](_0x53a207){const _0x1abcb8=_0x39fe8c;let {unitID:_0x4327cd,from:_0x54caa0,to:_0x6083ad,unitType:_0x31f6a7}=_0x53a207[_0x1abcb8(0x250)];return(await this[_0x1abcb8(0x418)][_0x1abcb8(0x3b9)]({'metadata':void 0x0},{'unitID':_0x4327cd,'type':_0x31f6a7,'from':_0x54caa0,'to':_0x6083ad}))[_0x1abcb8(0x488)]['map'](_0x45c20c=>((_0x45c20c[_0x1abcb8(0x45d)]===null||_0x45c20c[_0x1abcb8(0x45d)]===void 0x0)&&(_0x45c20c[_0x1abcb8(0x45d)]=[]),_0x45c20c));}};_0x1d3bd2=_0xdb6dd9([_0x32d44(0x0,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x409)])),_0x32d44(0x1,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x34e285[_0x39fe8c(0x425)])),_0x32d44(0x2,_0xa4b471[_0x39fe8c(0x345)]),_0x32d44(0x3,_0xa4b471[_0x39fe8c(0x2b6)]),_0x32d44(0x4,_0x58a81f[_0x39fe8c(0x35d)])],_0x1d3bd2);let _0x4f7778=(0x0,_0xa4b471['createIdentifier'])(_0x39fe8c(0x4eb));function _0xf731aa(_0x2920a4={}){const _0x5d6cb5=_0x39fe8c;return _0x2920a4[_0x5d6cb5(0x43c)]?{'resolveUnit':_0x2920a4[_0x5d6cb5(0x43c)]}:{'resolveUnit':_0x3c441f=>({'target':{'unitId':_0x3c441f[_0x5d6cb5(0x441)],'unitType':_0x3c441f[_0x5d6cb5(0x23e)]}})};}function _0x4393a3(_0x4407e6,_0x112b34,_0xaa9d3e){const _0x4e7f81=_0x39fe8c;let _0x2687a5=_0xaa9d3e[_0x4e7f81(0x51b)][_0x4e7f81(0x1ee)];if(_0x2687a5!=null&&_0x2687a5['trim']()==='')throw Error(_0x4e7f81(0x1fe));if(!_0xaa9d3e[_0x4e7f81(0x51b)][_0x4e7f81(0x441)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x4407e6,'unitType':_0x112b34,'target':{'endpoint':_0x2687a5,'unitId':_0xaa9d3e[_0x4e7f81(0x51b)][_0x4e7f81(0x441)],'unitType':_0xaa9d3e[_0x4e7f81(0x51b)]['unitType']??_0x112b34},'changeset':_0xaa9d3e[_0x4e7f81(0x4e0)]};}let _0x216287=class extends _0xa4b471[_0x39fe8c(0x24a)]{constructor(_0x4655ac,_0x51d159,_0x1c9ada,_0x581517,_0x10e6f4,_0x112bec){const _0x5378b1=_0x39fe8c;super(),this['_injector']=_0x4655ac,this[_0x5378b1(0x30a)]=_0x51d159,this['_configService']=_0x1c9ada,this[_0x5378b1(0x34a)]=_0x581517,this[_0x5378b1(0x1e9)]=_0x10e6f4,this[_0x5378b1(0x21f)]=_0x112bec,_0x2f2d1e(this,_0x5378b1(0x3b2),new Map()),_0x2f2d1e(this,_0x5378b1(0x411),new Map()),_0x2f2d1e(this,_0x5378b1(0x3d9),new Map()),_0x2f2d1e(this,_0x5378b1(0x32c),new Map()),_0x2f2d1e(this,'_networkConditionService',void 0x0),_0x2f2d1e(this,_0x5378b1(0x4e6),this[_0x5378b1(0x340)](void 0x0)['socket$'][_0x5378b1(0x349)]()),_0x2f2d1e(this,'_status$',new _0x3f20a0[(_0x5378b1(0x447))](0x0)),_0x2f2d1e(this,_0x5378b1(0x3ed),this['_status$']['asObservable']());}[_0x39fe8c(0x246)](){const _0x559423=_0x39fe8c;this['_networkConditionService']||(this['_networkConditionService']=this[_0x559423(0x483)]['get'](_0x30fdbb,_0xa4b471['Quantity']['OPTIONAL'])??void 0x0,this[_0x559423(0x211)]&&this[_0x559423(0x1f7)](this[_0x559423(0x211)]['online$'][_0x559423(0x27e)](_0xe72b33=>{const _0x593568=_0x559423;_0xe72b33&&this['reconnect'](),_0xe72b33||this[_0x593568(0x32c)][_0x593568(0x30f)](_0xe7883b=>this[_0x593568(0x290)](_0xe7883b));})));}[_0x39fe8c(0x283)](){const _0x216496=_0x39fe8c;super['dispose'](),this['_socketChannels'][_0x216496(0x30f)](_0x2935b0=>{const _0x310580=_0x216496;var _0x1856e2,_0x54cf85,_0x6ca897;(_0x1856e2=_0x2935b0[_0x310580(0x288)])==null||_0x1856e2[_0x310580(0x357)](),_0x2935b0[_0x310580(0x288)]=null,this['_clearHandshakeTimer'](_0x2935b0),this[_0x310580(0x356)](_0x2935b0),this[_0x310580(0x4ae)](_0x2935b0),this[_0x310580(0x293)](_0x2935b0),(_0x54cf85=_0x2935b0[_0x310580(0x4e6)][_0x310580(0x4c8)]())==null||_0x54cf85[_0x310580(0x354)](),(_0x6ca897=_0x2935b0[_0x310580(0x53f)])==null||_0x6ca897[_0x310580(0x354)](),_0x2935b0[_0x310580(0x4e6)][_0x310580(0x4df)]();}),this['_socketChannels'][_0x216496(0x4d3)](),this[_0x216496(0x3b2)][_0x216496(0x30f)](_0x45892c=>_0x45892c['dispose']()),this[_0x216496(0x3b2)]['clear'](),this[_0x216496(0x3d9)]['clear'](),this[_0x216496(0x20a)][_0x216496(0x4df)]();}async[_0x39fe8c(0x3c8)](_0x47acf7,_0x47c335){const _0xca2a7b=_0x39fe8c;if(this[_0xca2a7b(0x246)](),this[_0xca2a7b(0x3b2)][_0xca2a7b(0x332)](_0x47acf7))return this[_0xca2a7b(0x3b2)][_0xca2a7b(0x512)](_0x47acf7);let _0x4a3026=this[_0xca2a7b(0x411)]['get'](_0x47acf7);if(_0x4a3026)return _0x4a3026;let _0x2029cd=this['_createSession'](_0x47acf7,_0x47c335);this[_0xca2a7b(0x411)]['set'](_0x47acf7,_0x2029cd);try{return await _0x2029cd;}finally{this[_0xca2a7b(0x411)][_0xca2a7b(0x3db)](_0x47acf7);}}async[_0x39fe8c(0x235)](_0x348ed8,_0x20bd42){const _0x428b96=_0x39fe8c;let _0x632009=await this['_resolveSessionIdentity'](_0x348ed8,_0x20bd42),_0x4a2ef6=this['_getSocketChannel'](_0x632009[_0x428b96(0x51b)][_0x428b96(0x1ee)]);this[_0x428b96(0x4a3)](_0x4a2ef6);let _0x2a5eae=this[_0x428b96(0x483)][_0x428b96(0x4bc)](_0x527586,_0x632009,_0x4a2ef6['socket$'][_0x428b96(0x349)]());return this['_sessions'][_0x428b96(0x4c0)](_0x348ed8,_0x2a5eae),this[_0x428b96(0x3d9)][_0x428b96(0x4c0)](_0x348ed8,_0x4a2ef6[_0x428b96(0x45e)]),_0x2a5eae;}['closeSession'](_0x413910){const _0x26c13f=_0x39fe8c;let _0x5f4758=this['_sessions'][_0x26c13f(0x512)](_0x413910),_0x20f755=this[_0x26c13f(0x3d9)]['get'](_0x413910);if(_0x5f4758&&(this[_0x26c13f(0x3b2)]['delete'](_0x413910),this[_0x26c13f(0x3d9)][_0x26c13f(0x3db)](_0x413910),_0x5f4758['close']()),_0x20f755!==void 0x0&&!this[_0x26c13f(0x4f3)](_0x20f755)){let _0x8232f=this[_0x26c13f(0x32c)][_0x26c13f(0x512)](_0x20f755);_0x8232f&&this['_onOffline'](_0x8232f);}}[_0x39fe8c(0x24e)](){const _0x5c438c=_0x39fe8c;(this[_0x5c438c(0x32c)]['size']?[...this['_socketChannels'][_0x5c438c(0x4f7)]()]:[this[_0x5c438c(0x340)](void 0x0)])[_0x5c438c(0x30f)](_0x4f3d5f=>{const _0x4d717d=_0x5c438c;!this[_0x4d717d(0x4f3)](_0x4f3d5f[_0x4d717d(0x45e)])||_0x4f3d5f[_0x4d717d(0x551)]||_0x4f3d5f['candidateSocket']||_0x4f3d5f[_0x4d717d(0x476)]||(_0x4f3d5f[_0x4d717d(0x437)]=0x0,this[_0x4d717d(0x356)](_0x4f3d5f),this[_0x4d717d(0x428)](_0x4f3d5f));});}[_0x39fe8c(0x356)](_0x28b239){const _0x11f60f=_0x39fe8c;_0x28b239[_0x11f60f(0x3a3)]!=null&&(clearTimeout(_0x28b239['retryConnectingTimer']),_0x28b239[_0x11f60f(0x3a3)]=null);}['_createSocket'](_0x54fe59){const _0x3009ac=_0x39fe8c;let _0x58fc01=this[_0x3009ac(0x481)][_0x3009ac(0x472)](_0x5ceae9),_0x1f7d7d=_0x54fe59[_0x3009ac(0x1ee)]??(_0x58fc01==null?void 0x0:_0x58fc01['collabWebSocketUrl'])??_0x3009ac(0x51d);return this[_0x3009ac(0x34a)]['createSocket'](_0x1f7d7d);}async[_0x39fe8c(0x4a3)](_0x2bb64d){const _0x4e581a=_0x39fe8c;var _0x54c4d7;if(this[_0x4e581a(0x494)]||((_0x54c4d7=this[_0x4e581a(0x211)])==null?void 0x0:_0x54c4d7[_0x4e581a(0x40a)])===!0x1||_0x2bb64d[_0x4e581a(0x551)]||_0x2bb64d[_0x4e581a(0x53f)]||_0x2bb64d[_0x4e581a(0x476)])return;let _0x2e3f3e={};_0x2bb64d[_0x4e581a(0x476)]=_0x2e3f3e;try{let _0x3bfe04=await this[_0x4e581a(0x460)](_0x2bb64d);if(this['_disposed']||_0x2bb64d['connectionAttempt']!==_0x2e3f3e){_0x3bfe04==null||_0x3bfe04['close']();return;}if(_0x3bfe04){var _0xf16605;_0x2bb64d[_0x4e581a(0x53f)]=_0x3bfe04,_0x2bb64d[_0x4e581a(0x534)]=setTimeout(()=>{const _0x401775=_0x4e581a;!this['_disposed']&&_0x2bb64d['candidateSocket']===_0x3bfe04&&this[_0x401775(0x41f)](_0x2bb64d);},0x4e20);let _0x5fae85=_0x3bfe04[_0x4e581a(0x3bc)];_0x3bfe04['send']=_0x31df04=>(_0x31df04[_0x4e581a(0x282)]!==_0x75c91[_0x4e581a(0x2d3)][_0x4e581a(0x29f)]&&_0x2bb64d['socketReady']&&_0x2bb64d['socket$']['getValue']()===_0x3bfe04&&this[_0x4e581a(0x3c3)](_0x2bb64d),_0x5fae85[_0x4e581a(0x406)](_0x3bfe04,[_0x31df04])),(_0xf16605=_0x2bb64d[_0x4e581a(0x288)])==null||_0xf16605['unsubscribe']();let _0x3505b5=new _0x3f20a0[(_0x4e581a(0x416))]();_0x2bb64d['socketSubscription']=_0x3505b5,_0x3505b5[_0x4e581a(0x4be)](_0x3bfe04['message$'][_0x4e581a(0x27e)](_0x2c9304=>this[_0x4e581a(0x347)](_0x2bb64d,_0x3bfe04,_0x2c9304))),_0x3505b5[_0x4e581a(0x4be)](_0x3bfe04[_0x4e581a(0x240)][_0x4e581a(0x4b1)]((0x0,_0x188568[_0x4e581a(0x493)])(0x1))['subscribe'](_0x54b986=>this[_0x4e581a(0x30a)]['error']('[CollaborationSessionService]:\x20socket\x20error',_0x54b986))),_0x3505b5[_0x4e581a(0x4be)](_0x3bfe04['open$'][_0x4e581a(0x4b1)]((0x0,_0x188568['take'])(0x1))[_0x4e581a(0x27e)](()=>{const _0x18476b=_0x4e581a;this[_0x18476b(0x484)](_0x2bb64d,_0x3bfe04);})),_0x3505b5[_0x4e581a(0x4be)](_0x3bfe04['close$'][_0x4e581a(0x4b1)]((0x0,_0x188568['take'])(0x1))[_0x4e581a(0x27e)](_0x11070b=>{const _0x215510=_0x4e581a;(_0x2bb64d['candidateSocket']===_0x3bfe04||_0x2bb64d[_0x215510(0x4e6)][_0x215510(0x4c8)]()===_0x3bfe04)&&(this[_0x215510(0x30a)][_0x215510(0x54b)](_0x215510(0x2f0),_0x215510(0x296),_0x11070b),this[_0x215510(0x41f)](_0x2bb64d));}));}}catch(_0x4946df){if(_0x2bb64d['connectionAttempt']!==_0x2e3f3e)return;this[_0x4e581a(0x30a)][_0x4e581a(0x29b)](_0x4946df),this[_0x4e581a(0x41f)](_0x2bb64d);}finally{_0x2bb64d[_0x4e581a(0x476)]===_0x2e3f3e&&(_0x2bb64d['connectionAttempt']=null);}}['_onConnectionOpen'](_0x1cc259,_0x35aabe){const _0x335180=_0x39fe8c;this[_0x335180(0x494)]||_0x1cc259['candidateSocket']!==_0x35aabe||(this[_0x335180(0x30a)]['debug'](_0x335180(0x2f0),'socket\x20open.'),_0x35aabe[_0x335180(0x3bc)]({'cmd':_0x75c91[_0x335180(0x2d3)]['HELLO']}));}[_0x39fe8c(0x290)](_0xcf2c91){const _0x19f828=_0x39fe8c;var _0x1a8986;let _0x9910a5=_0xcf2c91['socket$'][_0x19f828(0x4c8)]()??_0xcf2c91[_0x19f828(0x53f)];_0xcf2c91['connectionAttempt']=null,_0xcf2c91[_0x19f828(0x551)]=!0x1,_0xcf2c91[_0x19f828(0x53f)]=null,(_0x1a8986=_0xcf2c91[_0x19f828(0x288)])==null||_0x1a8986[_0x19f828(0x357)](),_0xcf2c91['socketSubscription']=null,this['_status$'][_0x19f828(0x3a2)](0x2),_0xcf2c91[_0x19f828(0x4e6)]['next'](null),this[_0x19f828(0x356)](_0xcf2c91),this['_clearHandshakeTimer'](_0xcf2c91),this['_clearTimeoutTimer'](_0xcf2c91),this[_0x19f828(0x293)](_0xcf2c91),_0x9910a5==null||_0x9910a5[_0x19f828(0x354)]();}[_0x39fe8c(0x41f)](_0x7d983e){const _0x4a398f=_0x39fe8c;var _0x357c70;this[_0x4a398f(0x290)](_0x7d983e),!this[_0x4a398f(0x494)]&&((_0x357c70=this[_0x4a398f(0x211)])==null?void 0x0:_0x357c70[_0x4a398f(0x40a)])!==!0x1&&this[_0x4a398f(0x4f3)](_0x7d983e[_0x4a398f(0x45e)])&&(_0x7d983e[_0x4a398f(0x437)]<(this[_0x4a398f(0x481)][_0x4a398f(0x472)](_0x4a398f(0x236))??0x3)?(this[_0x4a398f(0x1e9)][_0x4a398f(0x3aa)]({'id':'SOCKET_FAILED_RETRY'}),this[_0x4a398f(0x428)](_0x7d983e)):this[_0x4a398f(0x1e9)][_0x4a398f(0x3aa)]({'id':_0x4a398f(0x2aa)}));}[_0x39fe8c(0x428)](_0xdb8f){const _0x19d3ac=_0x39fe8c;let _0x973a50=_0xdb8f[_0x19d3ac(0x437)],_0xb230cd=this[_0x19d3ac(0x481)][_0x19d3ac(0x472)](_0x5ceae9),_0x3424a4=_0x973a50===0x0?0x0:((_0xb230cd==null?void 0x0:_0xb230cd[_0x19d3ac(0x3ff)])??0x4e20)*0x2**_0x973a50;_0xdb8f[_0x19d3ac(0x3a3)]=setTimeout(()=>{const _0x3fe8a9=_0x19d3ac;clearTimeout(_0xdb8f[_0x3fe8a9(0x3a3)]),_0xdb8f[_0x3fe8a9(0x3a3)]=null,this[_0x3fe8a9(0x4a3)](_0xdb8f);},_0x3424a4),_0xdb8f[_0x19d3ac(0x437)]+=0x1;}async['_resolveSessionIdentity'](_0x204666,_0x59d802){const _0x3ab7de=_0x39fe8c;return _0x4393a3(_0x204666,_0x59d802,await this[_0x3ab7de(0x21f)][_0x3ab7de(0x43c)]({'unitId':_0x204666,'unitType':_0x59d802}));}['_onMessage'](_0x312256,_0x5a0365,_0x5443c1){const _0x4783f9=_0x39fe8c;if(this['_disposed']||_0x312256[_0x4783f9(0x53f)]!==_0x5a0365&&_0x312256[_0x4783f9(0x4e6)][_0x4783f9(0x4c8)]()!==_0x5a0365)return;let {cmd:_0x288906}=_0x5443c1;if(_0x288906===_0x75c91[_0x4783f9(0x2d3)][_0x4783f9(0x24b)]&&!_0x312256[_0x4783f9(0x551)]){var _0x32f4b7;if((_0x5443c1['code']??_0x75c91[_0x4783f9(0x321)]['OK'])!==_0x75c91[_0x4783f9(0x321)]['OK']||!((_0x32f4b7=_0x5443c1['data'])!=null&&_0x32f4b7[_0x4783f9(0x2be)])){this[_0x4783f9(0x41f)](_0x312256);return;}this['_clearHandshakeTimer'](_0x312256),_0x5a0365[_0x4783f9(0x2be)]=_0x5443c1[_0x4783f9(0x250)][_0x4783f9(0x2be)],_0x312256[_0x4783f9(0x437)]=0x0,_0x312256[_0x4783f9(0x551)]=!0x0,_0x312256[_0x4783f9(0x53f)]=null,_0x312256[_0x4783f9(0x4e6)][_0x4783f9(0x3a2)](_0x5a0365),this[_0x4783f9(0x20a)]['next'](0x3);}_0x288906===_0x75c91[_0x4783f9(0x2d3)][_0x4783f9(0x3d7)]&&this[_0x4783f9(0x4ae)](_0x312256),this[_0x4783f9(0x3c3)](_0x312256);}[_0x39fe8c(0x4f3)](_0x4c17a4){const _0xf86423=_0x39fe8c;return[...this[_0xf86423(0x3d9)][_0xf86423(0x4f7)]()][_0xf86423(0x336)](_0x16ac4b=>_0x16ac4b===_0x4c17a4);}[_0x39fe8c(0x340)](_0x449a48){const _0x30a26c=_0x39fe8c;let _0x1867d3=_0x449a48??'',_0xde30e2=this[_0x30a26c(0x32c)][_0x30a26c(0x512)](_0x1867d3);if(_0xde30e2)return _0xde30e2;let _0x157bf5={'endpointKey':_0x1867d3,'endpoint':_0x449a48,'socket$':new _0x3f20a0[(_0x30a26c(0x447))](void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels']['set'](_0x1867d3,_0x157bf5),_0x157bf5;}['_clearHandshakeTimer'](_0x17427c){const _0x4b7290=_0x39fe8c;_0x17427c[_0x4b7290(0x534)]!=null&&(clearTimeout(_0x17427c['handshakeTimer']),_0x17427c[_0x4b7290(0x534)]=null);}[_0x39fe8c(0x3c3)](_0x3a434b){const _0x1de2ee=_0x39fe8c;this[_0x1de2ee(0x293)](_0x3a434b),_0x3a434b[_0x1de2ee(0x551)]&&(_0x3a434b[_0x1de2ee(0x1fc)]=setTimeout(()=>this[_0x1de2ee(0x4c4)](_0x3a434b),this[_0x1de2ee(0x481)][_0x1de2ee(0x472)](_0x1de2ee(0x47a))??0x7530));}[_0x39fe8c(0x4c4)](_0x38f950){const _0x2dc119=_0x39fe8c;let _0x3a2cb9=_0x38f950[_0x2dc119(0x4e6)][_0x2dc119(0x4c8)]();_0x38f950['socketReady']&&_0x3a2cb9&&(_0x3a2cb9[_0x2dc119(0x3bc)]({'cmd':_0x75c91[_0x2dc119(0x2d3)][_0x2dc119(0x3d7)]}),this[_0x2dc119(0x1f6)](_0x38f950));}[_0x39fe8c(0x1f6)](_0x3761ed){const _0x317d24=_0x39fe8c;_0x3761ed[_0x317d24(0x4e9)]=setTimeout(()=>this['_onConnectionFailed'](_0x3761ed),this['_configService'][_0x317d24(0x472)]('HEARTBEAT_TIMEOUT')??0x4e20);}['_clearHeartbeatTimer'](_0x1fcff4){const _0x2d49f5=_0x39fe8c;_0x1fcff4[_0x2d49f5(0x1fc)]!=null&&(clearTimeout(_0x1fcff4[_0x2d49f5(0x1fc)]),_0x1fcff4[_0x2d49f5(0x1fc)]=null);}['_clearTimeoutTimer'](_0x477c2a){const _0xc4f400=_0x39fe8c;_0x477c2a[_0xc4f400(0x4e9)]!=null&&(clearTimeout(_0x477c2a[_0xc4f400(0x4e9)]),_0x477c2a['timeoutTimer']=null);}};_0x216287=_0xdb6dd9([_0x32d44(0x0,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x409)])),_0x32d44(0x1,_0xa4b471[_0x39fe8c(0x2b6)]),_0x32d44(0x2,_0xa4b471[_0x39fe8c(0x345)]),_0x32d44(0x3,_0x1fb657),_0x32d44(0x4,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x559d58)),_0x32d44(0x5,_0x4f7778)],_0x216287);let _0x198b78=class extends _0xa4b471[_0x39fe8c(0x230)]{constructor(_0x5909d8,_0x5dbd07,_0x46900f,_0x2f88e3){const _0xbaa42e=_0x39fe8c;var _0x41986b;super(),this[_0xbaa42e(0x483)]=_0x5909d8,this[_0xbaa42e(0x531)]=_0x5dbd07,this['_configService']=_0x46900f,this[_0xbaa42e(0x46b)]=_0x2f88e3,_0x2f2d1e(this,_0xbaa42e(0x413),new Map()),_0x2f2d1e(this,_0xbaa42e(0x51f),new _0x3f20a0[(_0xbaa42e(0x42b))]()),_0x2f2d1e(this,_0xbaa42e(0x4fc),this[_0xbaa42e(0x51f)][_0xbaa42e(0x349)]()),((_0x41986b=this[_0xbaa42e(0x481)][_0xbaa42e(0x472)](_0xbaa42e(0x451)))==null?void 0x0:_0x41986b[_0xbaa42e(0x225)])!==!0x1&&this[_0xbaa42e(0x335)]();}[_0x39fe8c(0x283)](){const _0x300ce5=_0x39fe8c;super[_0x300ce5(0x283)](),this[_0x300ce5(0x413)][_0x300ce5(0x30f)](_0x3af16a=>_0x3af16a[_0x300ce5(0x283)]()),this[_0x300ce5(0x413)]['clear']();}[_0x39fe8c(0x200)](_0x5e0f31){const _0x9edcbf=_0x39fe8c;return this[_0x9edcbf(0x413)][_0x9edcbf(0x512)](_0x5e0f31)??null;}[_0x39fe8c(0x2c4)](_0x3f0462){const _0xd0b06d=_0x39fe8c;let _0x4bc0e0=this[_0xd0b06d(0x200)](_0x3f0462);return _0x4bc0e0?(0x0,_0x3f20a0['of'])(_0x4bc0e0):this['_entityInit$'][_0xd0b06d(0x4b1)]((0x0,_0x188568['filter'])(_0x1e6f25=>_0x1e6f25[_0xd0b06d(0x2a8)]===_0x3f0462));}[_0x39fe8c(0x252)](_0x579bbd){const _0x1bac97=_0x39fe8c;return(0x0,_0x3f20a0[_0x1bac97(0x38e)])(this[_0x1bac97(0x2c4)](_0x579bbd)[_0x1bac97(0x4b1)]((0x0,_0x188568['map'])(()=>void 0x0)));}[_0x39fe8c(0x335)](){const _0x476a26=_0x39fe8c;this[_0x476a26(0x46b)][_0x476a26(0x242)](_0xa4b471[_0x476a26(0x4d0)][_0x476a26(0x536)])['pipe']((0x0,_0x3f20a0[_0x476a26(0x523)])(this['dispose$']),(0x0,_0x188568[_0x476a26(0x26a)])(0x10))[_0x476a26(0x27e)](async _0x15aef3=>{const _0xabb65d=_0x476a26;let _0x22b85b=_0x15aef3[_0xabb65d(0x438)][_0xabb65d(0x2e9)](),_0x3fd8c8=await this[_0xabb65d(0x2a3)](_0x22b85b,_0xa4b471[_0xabb65d(0x4d0)][_0xabb65d(0x536)]);this['_entities'][_0xabb65d(0x4c0)](_0x22b85b,_0x3fd8c8);}),this[_0x476a26(0x46b)][_0x476a26(0x242)](_0xa4b471[_0x476a26(0x4d0)][_0x476a26(0x4b7)])[_0x476a26(0x4b1)]((0x0,_0x3f20a0[_0x476a26(0x523)])(this[_0x476a26(0x46a)]),(0x0,_0x188568[_0x476a26(0x26a)])(0x10))['pipe']((0x0,_0x188568[_0x476a26(0x41e)])(_0x1607c9=>!_0x1607c9['unit'][_0x476a26(0x2e9)]()[_0x476a26(0x3b3)]('__')))[_0x476a26(0x27e)](async _0x4c621c=>{const _0x4281ea=_0x476a26;let _0xb71980=_0x4c621c[_0x4281ea(0x438)][_0x4281ea(0x2e9)](),_0x483183=await this['_startCollaboration'](_0xb71980,_0xa4b471[_0x4281ea(0x4d0)]['UNIVER_DOC']);this[_0x4281ea(0x413)]['set'](_0xb71980,_0x483183);}),this[_0x476a26(0x46b)][_0x476a26(0x242)](_0xa4b471['UniverInstanceType'][_0x476a26(0x359)])[_0x476a26(0x4b1)]((0x0,_0x3f20a0['takeUntil'])(this['dispose$']),(0x0,_0x188568[_0x476a26(0x26a)])(0x10))[_0x476a26(0x27e)](async _0x350a1e=>{const _0x3c33ef=_0x476a26;let _0x54181e=_0x350a1e[_0x3c33ef(0x438)]['getUnitId'](),_0x3dc17c=await this[_0x3c33ef(0x2a3)](_0x54181e,_0xa4b471[_0x3c33ef(0x4d0)][_0x3c33ef(0x359)]);this[_0x3c33ef(0x413)]['set'](_0x54181e,_0x3dc17c);}),this[_0x476a26(0x46b)][_0x476a26(0x242)](_0xa4b471['UniverInstanceType']['UNIVER_BOARD'])[_0x476a26(0x4b1)]((0x0,_0x3f20a0[_0x476a26(0x523)])(this['dispose$']),(0x0,_0x188568[_0x476a26(0x26a)])(0x10))[_0x476a26(0x27e)](async _0x20eee4=>{const _0x4695c1=_0x476a26;let _0x9c13d2=_0x20eee4[_0x4695c1(0x438)][_0x4695c1(0x2e9)](),_0x4313a1=await this[_0x4695c1(0x2a3)](_0x9c13d2,_0xa4b471['UniverInstanceType'][_0x4695c1(0x544)]);this[_0x4695c1(0x413)][_0x4695c1(0x4c0)](_0x9c13d2,_0x4313a1);}),this[_0x476a26(0x46b)][_0x476a26(0x242)](_0xa4b471['UniverInstanceType']['UNIVER_BASE'])['pipe']((0x0,_0x3f20a0[_0x476a26(0x523)])(this['dispose$']),(0x0,_0x188568[_0x476a26(0x26a)])(0x10))[_0x476a26(0x27e)](async _0x4d4a5b=>{const _0x4ecec5=_0x476a26;let _0x50ab71=_0x4d4a5b[_0x4ecec5(0x438)][_0x4ecec5(0x2e9)](),_0x36bb82=await this[_0x4ecec5(0x2a3)](_0x50ab71,_0xa4b471[_0x4ecec5(0x4d0)][_0x4ecec5(0x1df)]);this[_0x4ecec5(0x413)][_0x4ecec5(0x4c0)](_0x50ab71,_0x36bb82);}),this[_0x476a26(0x46b)][_0x476a26(0x242)](_0xa4b471[_0x476a26(0x4d0)][_0x476a26(0x392)])[_0x476a26(0x4b1)]((0x0,_0x3f20a0[_0x476a26(0x523)])(this[_0x476a26(0x46a)]),(0x0,_0x188568['delay'])(0x10))['subscribe'](async _0x34c522=>{const _0x463065=_0x476a26;let _0x4c923f=_0x34c522[_0x463065(0x438)][_0x463065(0x2e9)](),_0xdbee3d=await this[_0x463065(0x2a3)](_0x4c923f,_0xa4b471[_0x463065(0x4d0)]['UNIVER_PDF']);this[_0x463065(0x413)][_0x463065(0x4c0)](_0x4c923f,_0xdbee3d);}),(0x0,_0x3f20a0[_0x476a26(0x237)])(this[_0x476a26(0x46b)][_0x476a26(0x4a9)](_0xa4b471['UniverInstanceType'][_0x476a26(0x536)]),this['_univerInstanceService'][_0x476a26(0x4a9)](_0xa4b471[_0x476a26(0x4d0)][_0x476a26(0x4b7)]),this[_0x476a26(0x46b)][_0x476a26(0x4a9)](_0xa4b471[_0x476a26(0x4d0)][_0x476a26(0x359)]),this[_0x476a26(0x46b)][_0x476a26(0x4a9)](_0xa4b471[_0x476a26(0x4d0)][_0x476a26(0x544)]),this['_univerInstanceService'][_0x476a26(0x4a9)](_0xa4b471['UniverInstanceType'][_0x476a26(0x1df)]),this[_0x476a26(0x46b)]['getTypeOfUnitDisposed$'](_0xa4b471['UniverInstanceType']['UNIVER_PDF']))[_0x476a26(0x4b1)]((0x0,_0x3f20a0[_0x476a26(0x523)])(this['dispose$']))[_0x476a26(0x27e)](_0x3c34c9=>{const _0x30038b=_0x476a26;let _0x3a3acb=_0x3c34c9[_0x30038b(0x2e9)](),_0x4bbdbe=this['_entities'][_0x30038b(0x512)](_0x3a3acb);_0x4bbdbe&&(_0x4bbdbe[_0x30038b(0x283)](),this['_entities']['delete'](_0x3a3acb));});}async['_startCollaboration'](_0x45ba33,_0x1ba0cb){const _0x4c19f0=_0x39fe8c;let _0x41165c=await this['_collabSessionService'][_0x4c19f0(0x3c8)](_0x45ba33),_0x447b1a=this['_injector'][_0x4c19f0(0x4bc)](this[_0x4c19f0(0x3ec)](_0x1ba0cb),_0x45ba33,_0x1ba0cb,_0x41165c);return await _0x447b1a[_0x4c19f0(0x251)](),this['_entityInit$'][_0x4c19f0(0x3a2)](_0x447b1a),_0x447b1a;}[_0x39fe8c(0x3ec)](_0x54722d){const _0x2b07ac=_0x39fe8c;switch(_0x54722d){case _0xa4b471[_0x2b07ac(0x4d0)][_0x2b07ac(0x4b7)]:return _0x516850;case _0xa4b471['UniverInstanceType'][_0x2b07ac(0x536)]:return _0x5aead8;case _0xa4b471[_0x2b07ac(0x4d0)][_0x2b07ac(0x359)]:return _0x20e643;case _0xa4b471[_0x2b07ac(0x4d0)][_0x2b07ac(0x544)]:return _0xb9f2c4;case _0xa4b471[_0x2b07ac(0x4d0)][_0x2b07ac(0x1df)]:return _0x33043c;case _0xa4b471[_0x2b07ac(0x4d0)]['UNIVER_PDF']:return _0x597493;default:throw Error(_0x2b07ac(0x24f)+_0x54722d);}}};_0x198b78=_0xdb6dd9([_0x32d44(0x0,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x409)])),_0x32d44(0x1,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x216287)),_0x32d44(0x2,_0xa4b471[_0x39fe8c(0x345)]),_0x32d44(0x3,_0xa4b471[_0x39fe8c(0x2cb)])],_0x198b78);var _0x177b3a='@univerjs-pro/collaboration-client',_0x268aa0='1.1.0';let _0x46e496=class extends _0xa4b471[_0x39fe8c(0x24a)]{constructor(_0x2156fc,_0x201094){const _0x399ba1=_0x39fe8c;super(),this[_0x399ba1(0x46b)]=_0x2156fc,this[_0x399ba1(0x481)]=_0x201094,this[_0x399ba1(0x335)]();}[_0x39fe8c(0x335)](){const _0x2a89f9=_0x39fe8c;this['disposeWithMe'](this['_univerInstanceService'][_0x2a89f9(0x504)][_0x2a89f9(0x27e)](()=>{const _0x4b5053=_0x2a89f9;let _0xe33555=this[_0x4b5053(0x46b)][_0x4b5053(0x1f0)](),_0x1ce9bb=this[_0x4b5053(0x481)][_0x4b5053(0x472)](_0x4b5053(0x29c))??_0x4b5053(0x43d);_0xe33555 instanceof _0xa4b471[_0x4b5053(0x49d)]&&(_0x1ce9bb=_0xe33555[_0x4b5053(0x285)]),document['title']=_0x1ce9bb;}));}};_0x46e496=_0xdb6dd9([_0x32d44(0x0,_0xa4b471[_0x39fe8c(0x2cb)]),_0x32d44(0x1,_0xa4b471[_0x39fe8c(0x345)])],_0x46e496);let _0x4697c2=(0x0,_0xa4b471[_0x39fe8c(0x2e1)])('base-ui.attachment-io.service'),_0x57e3eb=class{constructor(_0x509ec7,_0xb11cca,_0x32eea4){const _0x40edf1=_0x39fe8c;this[_0x40edf1(0x3a7)]=_0x509ec7,this[_0x40edf1(0x481)]=_0xb11cca,this[_0x40edf1(0x46b)]=_0x32eea4;}[_0x39fe8c(0x467)](){const _0x5e8bdd=_0x39fe8c;return this[_0x5e8bdd(0x22b)]()[_0x5e8bdd(0x286)]??{};}async[_0x39fe8c(0x407)](_0x1114f8){const _0x111254=_0x39fe8c;let _0x11b903=this[_0x111254(0x467)]();if(_0x191126(_0x1114f8,_0x11b903),_0x11b903['upload'])return _0x11b903[_0x111254(0x2bb)](_0x1114f8);let _0x306562=await this[_0x111254(0x2b5)](_0x1114f8);return{'id':_0x306562,'name':_0x1114f8[_0x111254(0x285)],'mimeType':_0x1114f8[_0x111254(0x33d)],'size':_0x1114f8[_0x111254(0x3ea)],'sourceType':_0xa4b471[_0x111254(0x479)][_0x111254(0x1f5)],'source':_0x306562};}async[_0x39fe8c(0x2b8)](_0x5bdc40,_0x5cf683){const _0x580a4a=_0x39fe8c;if(_0x5cf683!==_0xa4b471['ImageSourceType'][_0x580a4a(0x1f5)])return _0x5bdc40;let _0x39842d=(await this[_0x580a4a(0x3a7)][_0x580a4a(0x512)](this[_0x580a4a(0x487)]()['replace'](_0x580a4a(0x53c),_0x5bdc40)))[_0x580a4a(0x249)];if(_0x39842d[_0x580a4a(0x29b)]&&_0x39842d[_0x580a4a(0x29b)][_0x580a4a(0x2d8)]!==_0x75c91['ErrorCode']['OK'])throw _0x39842d['error'];if(!_0x39842d[_0x580a4a(0x348)])throw Error(_0x580a4a(0x30c));return(0x0,_0xa4b471[_0x580a4a(0x25d)])(_0x39842d[_0x580a4a(0x348)],this[_0x580a4a(0x32b)]());}async[_0x39fe8c(0x2b5)](_0x58052e){const _0x45adf2=_0x39fe8c;let _0x249536=this['_univerInstanceService'][_0x45adf2(0x1f0)](),_0x1d306e=_0x249536==null?void 0x0:_0x249536[_0x45adf2(0x2e9)]();if(!_0x1d306e)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x514385=new FormData();_0x514385[_0x45adf2(0x231)]('file',_0x58052e);let _0x1d887e=this[_0x45adf2(0x2ac)]()+_0x45adf2(0x1de)+_0x58052e[_0x45adf2(0x3ea)][_0x45adf2(0x42a)]()+_0x45adf2(0x2c5)+_0x75c91['FileSource'][_0x45adf2(0x256)]+_0x45adf2(0x258)+encodeURIComponent(_0x1d306e),_0xa3137e=(await this[_0x45adf2(0x3a7)][_0x45adf2(0x52e)](_0x1d887e,{'body':_0x514385}))[_0x45adf2(0x249)][_0x45adf2(0x538)];if(typeof _0xa3137e!='string'||!_0xa3137e)throw Error(_0x45adf2(0x47b));return _0xa3137e;}[_0x39fe8c(0x2ac)](){const _0x2d584d=_0x39fe8c;return this[_0x2d584d(0x22b)]()[_0x2d584d(0x363)]??_0x2d584d(0x337);}['_getSignURL'](){return this['_getConfig']()['signUrlServerUrl']??'/universer-api/file/{fileID}/sign-url';}['_getDownloadEndpointURL'](){const _0x1c92f0=_0x39fe8c;let _0x5dc940=this['_getConfig']();return _0x5dc940['downloadEndpointUrl']?_0x5dc940['downloadEndpointUrl']:typeof location<'u'?location[_0x1c92f0(0x2b3)]:_0x5dc940['uploadFileServerUrl']??'';}[_0x39fe8c(0x22b)](){return this['_configService']['getConfig']('collaboration-client.config')??{};}};_0x57e3eb=_0xdb6dd9([_0x32d44(0x0,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x34e285[_0x39fe8c(0x425)])),_0x32d44(0x1,(0x0,_0xa4b471['Inject'])(_0xa4b471[_0x39fe8c(0x345)])),_0x32d44(0x2,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471['IUniverInstanceService']))],_0x57e3eb);function _0x191126(_0xfb5506,_0x1057cf){const _0x15b19c=_0x39fe8c;var _0x83f262;if(_0x1057cf['maxSize']!=null&&_0xfb5506['size']>_0x1057cf['maxSize'])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x83f262=_0x1057cf[_0x15b19c(0x219)])!=null&&_0x83f262['length']&&!_0x1057cf['accept']['some'](_0x352194=>_0xfb5506[_0x15b19c(0x33d)]===_0x352194||_0xfb5506[_0x15b19c(0x285)]['endsWith'](_0x352194)||_0x352194[_0x15b19c(0x1e7)]('/*')&&_0xfb5506[_0x15b19c(0x33d)]['startsWith'](_0x352194[_0x15b19c(0x302)](0x0,-0x1))))throw Error(_0x15b19c(0x2cd));}let _0x45243a=class{constructor(_0x344d97,_0x4b2b9e,_0x5bb758){const _0x1c48c4=_0x39fe8c;this[_0x1c48c4(0x481)]=_0x344d97,this[_0x1c48c4(0x3a7)]=_0x4b2b9e,this[_0x1c48c4(0x2d1)]=_0x5bb758,this[_0x1c48c4(0x251)]();}[_0x39fe8c(0x251)](){const _0x2640fc=_0x39fe8c;this[_0x2640fc(0x3a7)][_0x2640fc(0x475)]({'priority':0x1,'interceptor':(_0x67ef87,_0x5e3e0f)=>_0x5e3e0f(_0x67ef87)[_0x2640fc(0x4b1)]((0x0,_0x3f20a0[_0x2640fc(0x2ee)])(async _0x1e2b9d=>{const _0x40a1aa=_0x2640fc;let _0x2e634b=_0x1e2b9d;if(_0x2e634b[_0x40a1aa(0x31c)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x40a1aa(0x4f2)](this[_0x40a1aa(0x2d1)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x48521d=window[_0x40a1aa(0x3f3)](window[_0x40a1aa(0x331)][_0x40a1aa(0x4ef)]);window[_0x40a1aa(0x331)][_0x40a1aa(0x4ef)]=this[_0x40a1aa(0x3b1)]()+_0x40a1aa(0x397)+_0x48521d;}}return _0x2e634b;}))});}[_0x39fe8c(0x3b1)](){const _0x144e35=_0x39fe8c;let _0x5de400=this['_configService']['getConfig'](_0x5ceae9);return(_0x5de400==null?void 0x0:_0x5de400['loginUrlKey'])??_0x144e35(0x4d7);}};_0x45243a=_0xdb6dd9([_0x32d44(0x0,_0xa4b471['IConfigService']),_0x32d44(0x1,(0x0,_0xa4b471['Inject'])(_0x34e285[_0x39fe8c(0x425)])),_0x32d44(0x2,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471['LocaleService']))],_0x45243a);let _0x341744=class extends _0xa4b471[_0x39fe8c(0x24a)]{constructor(_0x3cf0b4,_0x119c00){const _0x5d0203=_0x39fe8c;super(),this['_HTTPService']=_0x3cf0b4,this[_0x5d0203(0x481)]=_0x119c00,_0x2f2d1e(this,_0x5d0203(0x2b0),!0x1),this[_0x5d0203(0x344)]();}[_0x39fe8c(0x344)](){const _0x116a0a=_0x39fe8c;let _0x1665d3=this;this[_0x116a0a(0x1f7)](this[_0x116a0a(0x3ac)][_0x116a0a(0x475)]({'priority':0x3e7,'interceptor':(0x0,_0x34e285[_0x116a0a(0x4f6)])({'isMatch'(_0x3caf02){const _0x2e8f7f=_0x116a0a;var _0x1fd21a;if(_0x3caf02[_0x2e8f7f(0x37d)]===_0x2e8f7f(0x548)&&(_0x1fd21a=_0x3caf02[_0x2e8f7f(0x3ee)])!=null&&_0x1fd21a[_0x2e8f7f(0x249)]){let {objectID:_0x59ef97,objectType:_0x6de4e7}=_0x3caf02[_0x2e8f7f(0x3ee)][_0x2e8f7f(0x249)]||{};if(!_0x59ef97||_0x6de4e7===void 0x0)return!0x1;let _0x262f47=_0x1665d3[_0x2e8f7f(0x257)]()+'/'+_0x6de4e7+'/object/'+encodeURIComponent(_0x59ef97)+_0x2e8f7f(0x38a);if(_0x3caf02[_0x2e8f7f(0x348)]===_0x262f47)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x25008e){const _0x5428a4=_0x116a0a;var _0x1bf983;return(_0x1bf983=_0x25008e['requestParams'])==null?void 0x0:_0x1bf983[_0x5428a4(0x249)];},'mergeParamsToRequest'(_0x1e01d7,_0x519fe8){const _0x35fdb5=_0x116a0a;let _0x7520a2=_0x1665d3['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0x266c3f=_0x1e01d7['reduce']((_0x499907,_0x291e37)=>{const _0x4068c4=_0x4f8b;let {unitID:_0x208617,objectID:_0x58e516,objectType:_0x1ac1e1,actions:_0x370fcf}=_0x291e37;return _0x499907[_0x208617]||(_0x499907[_0x208617]=Object[_0x4068c4(0x47c)](null)),_0x499907[_0x208617][_0x58e516]||(_0x499907[_0x208617][_0x58e516]={'objectID':_0x58e516,'objectType':_0x1ac1e1,'actions':[]}),_0x499907[_0x208617][_0x58e516][_0x4068c4(0x2e8)][_0x4068c4(0x3dc)](..._0x370fcf),_0x499907;},Object['create'](null)),_0x15a51a=[];for(let _0x80566a in _0x266c3f)for(let _0x7d5ed7 in _0x266c3f[_0x80566a]){let {actions:_0x1fba58,objectType:_0x48137d}=_0x266c3f[_0x80566a][_0x7d5ed7],_0x22530f=[...new Set(_0x1fba58)];_0x15a51a[_0x35fdb5(0x3dc)]({'unitID':_0x80566a,'objectID':_0x7d5ed7,'objectType':_0x48137d,'actions':_0x22530f});}return new _0x34e285[(_0x35fdb5(0x532))](_0x35fdb5(0x548),_0x7520a2,{'headers':_0x519fe8[_0x35fdb5(0x2fc)],'withCredentials':_0x519fe8['withCredentials'],'responseType':_0x519fe8['responseType'],'body':{'requests':_0x15a51a}});}},{'distributeResult'(_0x517b79,_0x2537c7){const _0x143748=_0x116a0a;let {objectActions:_0x4a8051}=_0x517b79;return _0x2537c7[_0x143748(0x205)](_0x534f18=>{const _0x1c7f3c=_0x143748;let {unitID:_0x378aac,objectID:_0x4f65e2,actions:_0x451171}=_0x534f18,_0x387b9c=_0x4a8051[_0x1c7f3c(0x507)](_0xdb5b12=>_0xdb5b12[_0x1c7f3c(0x2a8)]===_0x378aac&&_0xdb5b12['objectID']===_0x4f65e2);return{'config':_0x534f18,'result':{'actions':_0x451171['map'](_0x462f76=>_0x387b9c==null?void 0x0:_0x387b9c[_0x1c7f3c(0x2e8)][_0x1c7f3c(0x507)](_0x27a369=>_0x27a369[_0x1c7f3c(0x3c1)]===_0x462f76))[_0x1c7f3c(0x41e)](_0x22425f=>!!_0x22425f),'error':_0x517b79[_0x1c7f3c(0x29b)]}};});}})}));}[_0x39fe8c(0x257)](){const _0x276cbf=_0x39fe8c;let _0x3008c4=this[_0x276cbf(0x481)][_0x276cbf(0x472)](_0x5ceae9);return(_0x3008c4==null?void 0x0:_0x3008c4[_0x276cbf(0x25f)])??_0x276cbf(0x36f);}async[_0x39fe8c(0x47c)](_0x286bb5){const _0x41ae9a=_0x39fe8c;let _0xcbb972=this['_getAPIPrefixPath']()+'/'+_0x286bb5[_0x41ae9a(0x212)]+'/object';return(await this['_HTTPService']['post'](_0xcbb972,{'body':_0x286bb5}))[_0x41ae9a(0x249)][_0x41ae9a(0x298)]||'';}async['list'](_0x73a318){const _0x5dd1db=_0x39fe8c;let _0x29b7f8=this['_getAPIPrefixPath']()+_0x5dd1db(0x3b0);return(await this[_0x5dd1db(0x3ac)][_0x5dd1db(0x52e)](_0x29b7f8,{'body':_0x73a318}))['body'][_0x5dd1db(0x4d5)];}async[_0x39fe8c(0x3d0)](_0x22c24a){const _0x3dfef0=_0x39fe8c;var _0x4927b6;let _0x3c8b3e=this['_getAPIPrefixPath']()+'/'+_0x22c24a[_0x3dfef0(0x212)]+_0x3dfef0(0x261)+encodeURIComponent(_0x22c24a[_0x3dfef0(0x298)]),_0x2196ec=await this[_0x3dfef0(0x3ac)][_0x3dfef0(0x4ec)](_0x3c8b3e,{'body':_0x22c24a});if((_0x2196ec==null||(_0x4927b6=_0x2196ec[_0x3dfef0(0x249)])==null||(_0x4927b6=_0x4927b6[_0x3dfef0(0x29b)])==null?void 0x0:_0x4927b6[_0x3dfef0(0x2d8)])!==0x1)throw Error(_0x3dfef0(0x26c));}async[_0x39fe8c(0x399)](_0x5e1b10){const _0x50452f=_0x39fe8c;let _0x524c34=this[_0x50452f(0x257)]()+'/'+_0x5e1b10[_0x50452f(0x212)]+_0x50452f(0x261)+encodeURIComponent(_0x5e1b10[_0x50452f(0x298)])+_0x50452f(0x38a);return(await this[_0x50452f(0x3ac)][_0x50452f(0x52e)](_0x524c34,{'body':_0x5e1b10}))['body'][_0x50452f(0x2e8)];}async[_0x39fe8c(0x46e)](_0x27898c){const _0x2df38a=_0x39fe8c;let _0x5e36cf=this[_0x2df38a(0x257)]()+_0x2df38a(0x202);return(await this[_0x2df38a(0x3ac)]['post'](_0x5e36cf,{'body':{'requests':_0x27898c}}))[_0x2df38a(0x249)][_0x2df38a(0x27c)];}async[_0x39fe8c(0x35c)](_0x45fb4d){const _0x3e6c09=_0x39fe8c;let _0x42856b=this[_0x3e6c09(0x257)]()+'/'+_0x45fb4d[_0x3e6c09(0x212)]+'/role',_0x364166=await this['_HTTPService']['post'](_0x42856b,{'body':_0x45fb4d});return{'roles':_0x364166[_0x3e6c09(0x249)][_0x3e6c09(0x2c8)],'actions':_0x364166[_0x3e6c09(0x249)][_0x3e6c09(0x2e8)]};}async[_0x39fe8c(0x4ff)](_0x6e4c0f){const _0xcd3365=_0x39fe8c;let _0x4bd2b2=this[_0xcd3365(0x257)]()+'/collaborator';await this[_0xcd3365(0x3ac)][_0xcd3365(0x3db)](_0x4bd2b2,{'params':{'collaboratorID':_0x6e4c0f[_0xcd3365(0x473)],'objectID':_0x6e4c0f[_0xcd3365(0x298)],'unitID':_0x6e4c0f['unitID']}});}async[_0x39fe8c(0x26d)](_0x4f8b0d){const _0x13109a=_0x39fe8c;let _0x4371d6=this[_0x13109a(0x257)]()+_0x13109a(0x34b);await this[_0x13109a(0x3ac)]['patch'](_0x4371d6,{'body':_0x4f8b0d});}async[_0x39fe8c(0x1d8)](_0x11d5be){const _0x40c941=_0x39fe8c;let _0x392aa9=this[_0x40c941(0x257)]()+'/collaborator';await this['_HTTPService']['post'](_0x392aa9,{'body':_0x11d5be});}async[_0x39fe8c(0x2de)](_0x2e8974){const _0x5a9d97=_0x39fe8c;let _0x10367a=this[_0x5a9d97(0x257)]()+_0x5a9d97(0x34b),_0xd6b39c=await this[_0x5a9d97(0x3ac)]['get'](_0x10367a,{'params':{'objectID':_0x2e8974[_0x5a9d97(0x298)],'unitID':_0x2e8974['unitID']}});return this['setCfgEnableObjInherit'](_0xd6b39c[_0x5a9d97(0x249)][_0x5a9d97(0x24c)]??!0x1),_0xd6b39c[_0x5a9d97(0x249)][_0x5a9d97(0x2bc)];}async[_0x39fe8c(0x37f)](_0x453167){const _0x1ca492=_0x39fe8c;let _0x1c4e75=this[_0x1ca492(0x257)]()+_0x1ca492(0x34b);await this[_0x1ca492(0x3ac)][_0x1ca492(0x4ec)](_0x1c4e75,{'body':_0x453167});}['setCfgEnableObjInherit'](_0x42ce47){const _0x1a6072=_0x39fe8c;this[_0x1a6072(0x2b0)]=_0x42ce47;}[_0x39fe8c(0x3ba)](){return this['_cfgEnableObjInherit'];}};_0x341744=_0xdb6dd9([_0x32d44(0x0,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x34e285[_0x39fe8c(0x425)])),_0x32d44(0x1,(0x0,_0xa4b471['Inject'])(_0xa4b471[_0x39fe8c(0x345)]))],_0x341744);function _0x42664e(_0x201198){const _0x262256=_0x39fe8c;return _0x201198 instanceof Uint8Array||ArrayBuffer[_0x262256(0x352)](_0x201198)&&_0x201198[_0x262256(0x48b)][_0x262256(0x285)]===_0x262256(0x312)&&'BYTES_PER_ELEMENT'in _0x201198&&_0x201198[_0x262256(0x371)]===0x1;}let _0x14239a=_0x23f01c=>_0x23f01c?'\x22'+_0x23f01c+'\x22\x20':'';function _0x3203ea(_0x2db940,_0xc3c3c8=''){const _0x29712f=_0x39fe8c;if(typeof _0x2db940!=_0x29712f(0x24d))throw TypeError(_0x14239a(_0xc3c3c8)+_0x29712f(0x452)+typeof _0x2db940);if(!Number['isSafeInteger'](_0x2db940)||_0x2db940<0x0)throw RangeError(_0x14239a(_0xc3c3c8)+_0x29712f(0x474)+_0x2db940);return _0x2db940;}function _0x211c8a(_0x37b7c3,_0x36d588,_0xc4737=''){const _0x45ffae=_0x39fe8c;if(_0x42664e(_0x37b7c3)&&(_0x36d588===void 0x0||_0x37b7c3[_0x45ffae(0x369)]===_0x36d588))return _0x37b7c3;_0x36d588!==void 0x0&&_0x3203ea(_0x36d588,_0x45ffae(0x369));let _0x296b87=_0x42664e(_0x37b7c3),_0x4b52d2=_0x36d588===void 0x0?'':_0x45ffae(0x1e2)+_0x36d588,_0x3ea9cf=_0x296b87?_0x45ffae(0x516)+_0x37b7c3[_0x45ffae(0x369)]:_0x45ffae(0x546)+typeof _0x37b7c3,_0x1d23bd=_0x14239a(_0xc4737)+'expected\x20Uint8Array'+_0x4b52d2+',\x20got\x20'+_0x3ea9cf;throw _0x296b87?RangeError(_0x1d23bd):TypeError(_0x1d23bd);}function _0x3f6c64(_0x586747){const _0x2ff8ba=_0x39fe8c;return new Uint32Array(_0x586747[_0x2ff8ba(0x32d)],_0x586747[_0x2ff8ba(0x492)],Math[_0x2ff8ba(0x2e0)](_0x586747[_0x2ff8ba(0x23d)]/0x4));}function _0x4b0333(..._0x1f7446){const _0x44856d=_0x39fe8c;for(let _0x285025=0x0;_0x285025<_0x1f7446[_0x44856d(0x369)];_0x285025++)_0x1f7446[_0x285025][_0x44856d(0x52d)](0x0);}let _0x4cddb6=new Uint8Array(new Uint32Array([0x11223344])[_0x39fe8c(0x32d)])[0x0]===0x44;function _0x75ced0(_0x1baef9){return _0x1baef9<<0x18&0xff000000|_0x1baef9<<0x8&0xff0000|_0x1baef9>>>0x8&0xff00|_0x1baef9>>>0x18&0xff;}function _0x31b2d1(_0x2803c1){const _0x4f6234=_0x39fe8c;for(let _0x7323a=0x0;_0x7323a<_0x2803c1[_0x4f6234(0x369)];_0x7323a++)_0x2803c1[_0x7323a]=_0x75ced0(_0x2803c1[_0x7323a]);return _0x2803c1;}let _0x483661=_0x4cddb6?_0x1f756d=>_0x1f756d:_0x31b2d1;function _0x21aa29(_0x5cca68){const _0x42aab2=_0x39fe8c;if(typeof _0x5cca68!=_0x42aab2(0x459))throw TypeError(_0x42aab2(0x2f6));return new Uint8Array(new TextEncoder()['encode'](_0x5cca68));}function _0x68b08b(_0x59f938,_0x3d9896){const _0x2c2531=_0x39fe8c;return!_0x59f938[_0x2c2531(0x23d)]||!_0x3d9896[_0x2c2531(0x23d)]?!0x1:_0x59f938[_0x2c2531(0x32d)]===_0x3d9896['buffer']&&_0x59f938[_0x2c2531(0x492)]<_0x3d9896[_0x2c2531(0x492)]+_0x3d9896['byteLength']&&_0x3d9896[_0x2c2531(0x492)]<_0x59f938[_0x2c2531(0x492)]+_0x59f938[_0x2c2531(0x23d)];}function _0x19592f(_0x3678a5,_0x2af402){const _0x45f92a=_0x39fe8c;if(_0x68b08b(_0x3678a5,_0x2af402)&&_0x3678a5[_0x45f92a(0x492)]<_0x2af402['byteOffset'])throw Error(_0x45f92a(0x419));}function _0x4496f9(..._0x18696e){const _0x14231d=_0x39fe8c;let _0x38f87e=0x0;for(let _0x1e1453=0x0;_0x1e1453<_0x18696e['length'];_0x1e1453++){let _0x1d3b12=_0x18696e[_0x1e1453];_0x211c8a(_0x1d3b12),_0x38f87e+=_0x1d3b12[_0x14231d(0x369)];}let _0x50d810=new Uint8Array(_0x38f87e);for(let _0xeb22de=0x0,_0x3436ae=0x0;_0xeb22de<_0x18696e['length'];_0xeb22de++){let _0x4c1f83=_0x18696e[_0xeb22de];_0x50d810[_0x14231d(0x4c0)](_0x4c1f83,_0x3436ae),_0x3436ae+=_0x4c1f83[_0x14231d(0x369)];}return _0x50d810;}let _0x58fe28=(_0x19791e,_0x55331b)=>{const _0x20abdd=_0x39fe8c;function _0x45ea7e(_0x3fc0c4,..._0x4e9695){const _0x525ef6=_0x4f8b;if(_0x211c8a(_0x3fc0c4,void 0x0,_0x525ef6(0x4dd)),_0x19791e[_0x525ef6(0x3e9)]!==void 0x0){let _0x2cffb5=_0x4e9695[0x0];_0x211c8a(_0x2cffb5,_0x19791e[_0x525ef6(0x529)]?void 0x0:_0x19791e[_0x525ef6(0x3e9)],_0x525ef6(0x38c));}let _0x55f655=_0x19791e['tagLength'],_0x5250a9=_0x19791e[_0x525ef6(0x3e9)]===void 0x0?0x0:0x1;if(!_0x19791e[_0x525ef6(0x4e4)]){for(let _0x20f20e=_0x5250a9;_0x20f20e<_0x4e9695[_0x525ef6(0x369)];_0x20f20e++)if(_0x42664e(_0x4e9695[_0x20f20e]))throw Error('AAD\x20not\x20supported');}_0x19791e[_0x525ef6(0x4e4)]&&_0x4e9695[_0x5250a9]!==void 0x0&&_0x211c8a(_0x4e9695[_0x5250a9],void 0x0,'AAD');let _0x266e07=_0x55331b(_0x3fc0c4,..._0x4e9695),_0x3181d9=(_0x3990be,_0x234970)=>{if(_0x234970!==void 0x0){if(_0x3990be!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x211c8a(_0x234970,void 0x0,'output');}},_0x3674b7=!0x1;return{'encrypt'(_0x1eeee5,_0x25134e){const _0x4cc2c5=_0x525ef6;if(_0x3674b7)throw Error(_0x4cc2c5(0x40e));return _0x3674b7=!0x0,_0x211c8a(_0x1eeee5,void 0x0,_0x4cc2c5(0x250)),_0x3181d9(_0x266e07[_0x4cc2c5(0x2eb)][_0x4cc2c5(0x369)],_0x25134e),_0x266e07[_0x4cc2c5(0x2eb)](_0x1eeee5,_0x25134e);},'decrypt'(_0x3d7086,_0x4408d1){const _0x44899c=_0x525ef6;if(_0x211c8a(_0x3d7086,void 0x0,_0x44899c(0x250)),_0x55f655&&_0x3d7086[_0x44899c(0x369)]<_0x55f655)throw Error(_0x44899c(0x372)+_0x55f655);return _0x3181d9(_0x266e07[_0x44899c(0x31f)]['length'],_0x4408d1),_0x266e07[_0x44899c(0x31f)](_0x3d7086,_0x4408d1);}};}return Object[_0x20abdd(0x3af)](_0x45ea7e,_0x19791e),_0x45ea7e;};function _0x1cffb3(_0x1a431a,_0x338dd2,_0x39a721=!0x0){if(_0x338dd2===void 0x0)return new Uint8Array(_0x1a431a);if(_0x211c8a(_0x338dd2,_0x1a431a,'output'),_0x39a721&&!_0x351048(_0x338dd2))throw Error('invalid\x20output,\x20must\x20be\x20aligned');return _0x338dd2;}function _0x351048(_0x4dd496){return _0x4dd496['byteOffset']%0x4==0x0;}function _0x5c7032(_0x143b89){const _0x267dcb=_0x39fe8c;return Uint8Array[_0x267dcb(0x366)](_0x211c8a(_0x143b89));}function _0x5d6411(_0x1c1d89=0x20){const _0x302826=_0x39fe8c;_0x3203ea(_0x1c1d89,_0x302826(0x44e));let _0x189b88=typeof globalThis==_0x302826(0x542)?globalThis[_0x302826(0x4b5)]:null;if(typeof(_0x189b88==null?void 0x0:_0x189b88[_0x302826(0x39b)])!=_0x302826(0x1f2))throw Error(_0x302826(0x521));if(_0x1c1d89>0x10000)throw RangeError(_0x302826(0x2b4)+_0x1c1d89);return _0x189b88[_0x302826(0x39b)](new Uint8Array(_0x1c1d89));}function _0x4fd6ca(_0x284b62){const _0x119a5e=_0x39fe8c;if(![0x10,0x18,0x20][_0x119a5e(0x48a)](_0x284b62[_0x119a5e(0x369)]))throw Error(_0x119a5e(0x1eb)+_0x284b62['length']);}function _0x21ab65(_0x367b4f){return _0x367b4f<<0x1^0x11b&-(_0x367b4f>>0x7);}function _0x4c98ce(_0x2872c8,_0x117ab1){let _0x2f77e4=0x0;for(;_0x117ab1>0x0;_0x117ab1>>=0x1)_0x2f77e4^=_0x2872c8&-(_0x117ab1&0x1),_0x2872c8=_0x21ab65(_0x2872c8);return _0x2f77e4;}let _0x3028e0=((()=>{let _0x2c9437=new Uint8Array(0x100);for(let _0x23d51c=0x0,_0x4f3500=0x1;_0x23d51c<0x100;_0x23d51c++,_0x4f3500^=_0x21ab65(_0x4f3500))_0x2c9437[_0x23d51c]=_0x4f3500;let _0x877433=new Uint8Array(0x100);_0x877433[0x0]=0x63;for(let _0x3160af=0x0;_0x3160af<0xff;_0x3160af++){let _0x4f3daf=_0x2c9437[0xff-_0x3160af];_0x4f3daf|=_0x4f3daf<<0x8,_0x877433[_0x2c9437[_0x3160af]]=(_0x4f3daf^_0x4f3daf>>0x4^_0x4f3daf>>0x5^_0x4f3daf>>0x6^_0x4f3daf>>0x7^0x63)&0xff;}return _0x4b0333(_0x2c9437),_0x877433;})()),_0x2cf346=_0x3028e0[_0x39fe8c(0x205)]((_0x5ca37b,_0xc75959)=>_0x3028e0[_0x39fe8c(0x502)](_0xc75959)),_0x4ce9a7=_0xb09403=>_0xb09403<<0x18|_0xb09403>>>0x8,_0x5261b4=_0x51fc39=>_0x51fc39<<0x8|_0x51fc39>>>0x18;function _0x29aaab(_0x38b750,_0x12fad7){const _0x12ec11=_0x39fe8c;if(_0x38b750[_0x12ec11(0x369)]!==0x100)throw Error(_0x12ec11(0x376));let _0x48e177=new Uint32Array(0x100)[_0x12ec11(0x205)]((_0xed2049,_0x4348e6)=>_0x12fad7(_0x38b750[_0x4348e6])),_0x1620d6=_0x48e177[_0x12ec11(0x205)](_0x5261b4),_0x4cec80=_0x1620d6[_0x12ec11(0x205)](_0x5261b4),_0x1ce665=_0x4cec80[_0x12ec11(0x205)](_0x5261b4),_0x321113=new Uint32Array(0x10000),_0x340d98=new Uint32Array(0x10000),_0x232795=new Uint16Array(0x10000);for(let _0x5708fa=0x0;_0x5708fa<0x100;_0x5708fa++)for(let _0x3c6336=0x0;_0x3c6336<0x100;_0x3c6336++){let _0x511831=_0x5708fa*0x100+_0x3c6336;_0x321113[_0x511831]=_0x48e177[_0x5708fa]^_0x1620d6[_0x3c6336],_0x340d98[_0x511831]=_0x4cec80[_0x5708fa]^_0x1ce665[_0x3c6336],_0x232795[_0x511831]=_0x38b750[_0x5708fa]<<0x8|_0x38b750[_0x3c6336];}return{'sbox':_0x38b750,'sbox2':_0x232795,'T0':_0x48e177,'T1':_0x1620d6,'T2':_0x4cec80,'T3':_0x1ce665,'T01':_0x321113,'T23':_0x340d98};}let _0x2380c3=_0x29aaab(_0x3028e0,_0x46c2b4=>_0x4c98ce(_0x46c2b4,0x3)<<0x18|_0x46c2b4<<0x10|_0x46c2b4<<0x8|_0x4c98ce(_0x46c2b4,0x2)),_0x36b871=_0x29aaab(_0x2cf346,_0x21f930=>_0x4c98ce(_0x21f930,0xb)<<0x18|_0x4c98ce(_0x21f930,0xd)<<0x10|_0x4c98ce(_0x21f930,0x9)<<0x8|_0x4c98ce(_0x21f930,0xe)),_0x55e8e7=((()=>{let _0x96bc12=new Uint8Array(0x10);for(let _0x2eee95=0x0,_0x1cd3e2=0x1;_0x2eee95<0x10;_0x2eee95++,_0x1cd3e2=_0x21ab65(_0x1cd3e2))_0x96bc12[_0x2eee95]=_0x1cd3e2;return _0x96bc12;})());function _0x38d073(_0x8944a6){const _0x1d69bd=_0x39fe8c;_0x211c8a(_0x8944a6);let _0x29f704=_0x8944a6[_0x1d69bd(0x369)];_0x4fd6ca(_0x8944a6);let {sbox2:_0x112691}=_0x2380c3,_0x45ad7e=[];(!_0x4cddb6||!_0x351048(_0x8944a6))&&_0x45ad7e[_0x1d69bd(0x3dc)](_0x8944a6=_0x5c7032(_0x8944a6));let _0x3bb422=_0x483661(_0x3f6c64(_0x8944a6)),_0x3ff8af=_0x3bb422[_0x1d69bd(0x369)],_0x2e2203=_0x2d2156=>_0x360ad0(_0x112691,_0x2d2156,_0x2d2156,_0x2d2156,_0x2d2156),_0x3997fb=new Uint32Array(_0x29f704+0x1c);_0x3997fb[_0x1d69bd(0x4c0)](_0x3bb422);for(let _0x4bb1c6=_0x3ff8af;_0x4bb1c6<_0x3997fb[_0x1d69bd(0x369)];_0x4bb1c6++){let _0x3fdfed=_0x3997fb[_0x4bb1c6-0x1];_0x4bb1c6%_0x3ff8af===0x0?_0x3fdfed=_0x2e2203(_0x4ce9a7(_0x3fdfed))^_0x55e8e7[_0x4bb1c6/_0x3ff8af-0x1]:_0x3ff8af>0x6&&_0x4bb1c6%_0x3ff8af===0x4&&(_0x3fdfed=_0x2e2203(_0x3fdfed)),_0x3997fb[_0x4bb1c6]=_0x3997fb[_0x4bb1c6-_0x3ff8af]^_0x3fdfed;}return _0x4b0333(..._0x45ad7e),_0x3997fb;}function _0x544c72(_0xb84c4e){const _0x1e5fec=_0x39fe8c;let _0x4b2720=_0x38d073(_0xb84c4e),_0x1334a2=_0x4b2720['slice'](),_0x574b66=_0x4b2720[_0x1e5fec(0x369)],{sbox2:_0x2fdc6c}=_0x2380c3,{T0:_0x1fab4a,T1:_0x19fd9c,T2:_0x3e40ba,T3:_0x3841af}=_0x36b871;for(let _0x494778=0x0;_0x494778<_0x574b66;_0x494778+=0x4)for(let _0x1ce79a=0x0;_0x1ce79a<0x4;_0x1ce79a++)_0x1334a2[_0x494778+_0x1ce79a]=_0x4b2720[_0x574b66-_0x494778-0x4+_0x1ce79a];_0x4b0333(_0x4b2720);for(let _0xc913d8=0x4;_0xc913d8<_0x574b66-0x4;_0xc913d8++){let _0x3adedf=_0x1334a2[_0xc913d8],_0x2069dc=_0x360ad0(_0x2fdc6c,_0x3adedf,_0x3adedf,_0x3adedf,_0x3adedf);_0x1334a2[_0xc913d8]=_0x1fab4a[_0x2069dc&0xff]^_0x19fd9c[_0x2069dc>>>0x8&0xff]^_0x3e40ba[_0x2069dc>>>0x10&0xff]^_0x3841af[_0x2069dc>>>0x18];}return _0x1334a2;}function _0x5de6c7(_0x2b4e71,_0x3dc7a2,_0x4f1c53,_0x6896c1,_0x43c2eb,_0x5c6756){return _0x2b4e71[_0x4f1c53<<0x8&0xff00|_0x6896c1>>>0x8&0xff]^_0x3dc7a2[_0x43c2eb>>>0x8&0xff00|_0x5c6756>>>0x18&0xff];}function _0x360ad0(_0x1711d7,_0x21205e,_0x4c86de,_0x20a3f7,_0x157667){return _0x1711d7[_0x21205e&0xff|_0x4c86de&0xff00]|_0x1711d7[_0x20a3f7>>>0x10&0xff|_0x157667>>>0x10&0xff00]<<0x10;}function _0x4da9bf(_0x35b079,_0x357210,_0x45e9f6,_0x574aae,_0x2551d7){const _0x485606=_0x39fe8c;let {sbox2:_0x3bce01,T01:_0x3ec333,T23:_0x47791c}=_0x2380c3,_0x52f526=0x0;_0x357210^=_0x35b079[_0x52f526++],_0x45e9f6^=_0x35b079[_0x52f526++],_0x574aae^=_0x35b079[_0x52f526++],_0x2551d7^=_0x35b079[_0x52f526++];let _0x284a22=_0x35b079[_0x485606(0x369)]/0x4-0x2;for(let _0x4cf2a8=0x0;_0x4cf2a8<_0x284a22;_0x4cf2a8++){let _0x2c2dd9=_0x35b079[_0x52f526++]^_0x5de6c7(_0x3ec333,_0x47791c,_0x357210,_0x45e9f6,_0x574aae,_0x2551d7),_0x11601b=_0x35b079[_0x52f526++]^_0x5de6c7(_0x3ec333,_0x47791c,_0x45e9f6,_0x574aae,_0x2551d7,_0x357210),_0x26326a=_0x35b079[_0x52f526++]^_0x5de6c7(_0x3ec333,_0x47791c,_0x574aae,_0x2551d7,_0x357210,_0x45e9f6),_0x10e3a4=_0x35b079[_0x52f526++]^_0x5de6c7(_0x3ec333,_0x47791c,_0x2551d7,_0x357210,_0x45e9f6,_0x574aae);_0x357210=_0x2c2dd9,_0x45e9f6=_0x11601b,_0x574aae=_0x26326a,_0x2551d7=_0x10e3a4;}return{'s0':_0x35b079[_0x52f526++]^_0x360ad0(_0x3bce01,_0x357210,_0x45e9f6,_0x574aae,_0x2551d7),'s1':_0x35b079[_0x52f526++]^_0x360ad0(_0x3bce01,_0x45e9f6,_0x574aae,_0x2551d7,_0x357210),'s2':_0x35b079[_0x52f526++]^_0x360ad0(_0x3bce01,_0x574aae,_0x2551d7,_0x357210,_0x45e9f6),'s3':_0x35b079[_0x52f526++]^_0x360ad0(_0x3bce01,_0x2551d7,_0x357210,_0x45e9f6,_0x574aae)};}function _0x5b3fb4(_0x5989bb,_0x3b1eec,_0x177949,_0x43a1e4,_0x5c8bef){let {sbox2:_0x3310bc,T01:_0xaf2e32,T23:_0x2b92f2}=_0x36b871,_0x16e29d=0x0;_0x3b1eec^=_0x5989bb[_0x16e29d++],_0x177949^=_0x5989bb[_0x16e29d++],_0x43a1e4^=_0x5989bb[_0x16e29d++],_0x5c8bef^=_0x5989bb[_0x16e29d++];let _0x16feba=_0x5989bb['length']/0x4-0x2;for(let _0x11b5b1=0x0;_0x11b5b1<_0x16feba;_0x11b5b1++){let _0x1602fa=_0x5989bb[_0x16e29d++]^_0x5de6c7(_0xaf2e32,_0x2b92f2,_0x3b1eec,_0x5c8bef,_0x43a1e4,_0x177949),_0x3a20b9=_0x5989bb[_0x16e29d++]^_0x5de6c7(_0xaf2e32,_0x2b92f2,_0x177949,_0x3b1eec,_0x5c8bef,_0x43a1e4),_0x436e93=_0x5989bb[_0x16e29d++]^_0x5de6c7(_0xaf2e32,_0x2b92f2,_0x43a1e4,_0x177949,_0x3b1eec,_0x5c8bef),_0x355aea=_0x5989bb[_0x16e29d++]^_0x5de6c7(_0xaf2e32,_0x2b92f2,_0x5c8bef,_0x43a1e4,_0x177949,_0x3b1eec);_0x3b1eec=_0x1602fa,_0x177949=_0x3a20b9,_0x43a1e4=_0x436e93,_0x5c8bef=_0x355aea;}return{'s0':_0x5989bb[_0x16e29d++]^_0x360ad0(_0x3310bc,_0x3b1eec,_0x5c8bef,_0x43a1e4,_0x177949),'s1':_0x5989bb[_0x16e29d++]^_0x360ad0(_0x3310bc,_0x177949,_0x3b1eec,_0x5c8bef,_0x43a1e4),'s2':_0x5989bb[_0x16e29d++]^_0x360ad0(_0x3310bc,_0x43a1e4,_0x177949,_0x3b1eec,_0x5c8bef),'s3':_0x5989bb[_0x16e29d++]^_0x360ad0(_0x3310bc,_0x5c8bef,_0x43a1e4,_0x177949,_0x3b1eec)};}function _0x64e8a5(_0x26b05b,_0xf42b17){const _0x47007f=_0x39fe8c;if(_0x211c8a(_0x26b05b),_0x26b05b[_0x47007f(0x369)]%0x10!=0x0)throw Error(_0x47007f(0x3c7));_0xf42b17!==void 0x0&&(_0x1cffb3(_0x26b05b[_0x47007f(0x369)],_0xf42b17),_0x19592f(_0x26b05b,_0xf42b17));}function _0x3010df(_0x3b41f3,_0x4b935d,_0x3107b6){const _0x2adac1=_0x39fe8c;_0x211c8a(_0x3b41f3);let _0x35ddb5=_0x3b41f3['length'],_0x1ebb49=_0x35ddb5%0x10;if(!_0x4b935d&&_0x1ebb49!==0x0)throw Error(_0x2adac1(0x342));if(_0x4b935d){let _0x3fbb5c=0x10-_0x1ebb49;_0x3fbb5c||=0x10,_0x35ddb5+=_0x3fbb5c;}return _0x3107b6!==void 0x0&&(_0x1cffb3(_0x35ddb5,_0x3107b6),_0x19592f(_0x3b41f3,_0x3107b6)),_0x35ddb5;}function _0x3cd649(_0x56abd8,_0x21053f,_0x356ba3){_0x356ba3===void 0x0&&(_0x356ba3=new Uint8Array(_0x21053f)),(!_0x4cddb6||!_0x351048(_0x56abd8))&&(_0x56abd8=_0x5c7032(_0x56abd8));let _0x54e8aa=_0x3f6c64(_0x356ba3);return{'b':_0x56abd8,'o':_0x54e8aa,'out':_0x356ba3};}function _0x515cda(_0x1b4979,_0x87a6a8){const _0x3f4779=_0x39fe8c;if(!_0x87a6a8)return _0x1b4979;let _0x96ed59=_0x1b4979[_0x3f4779(0x369)];if(_0x96ed59===0x0)throw Error(_0x3f4779(0x4e8));let _0x517c8c=_0x1b4979[_0x96ed59-0x1],_0x4c297c=0x1;_0x4c297c&=_0x517c8c-0x1>>>0x1f^0x1,_0x4c297c&=0x10-_0x517c8c>>>0x1f^0x1;for(let _0x286b97=0x0;_0x286b97<0x10;_0x286b97++){let _0x42de78=_0x286b97-_0x517c8c>>>0x1f,_0x5764a3=+((_0x1b4979[_0x96ed59-0x1-_0x286b97]^_0x517c8c)===0x0);_0x4c297c&=_0x5764a3|_0x42de78^0x1;}if(!_0x4c297c)throw Error(_0x3f4779(0x443));return _0x1b4979[_0x3f4779(0x264)](0x0,_0x96ed59-_0x517c8c);}function _0x99eee3(_0x49b0f5){const _0xe15dd6=_0x39fe8c;let _0x1484d5=new Uint8Array(0x10),_0x51f71e=_0x3f6c64(_0x1484d5);_0x1484d5[_0xe15dd6(0x4c0)](_0x49b0f5);let _0xf8e0b9=0x10-_0x49b0f5[_0xe15dd6(0x369)];for(let _0x4de1ac=0x10-_0xf8e0b9;_0x4de1ac<0x10;_0x4de1ac++)_0x1484d5[_0x4de1ac]=_0xf8e0b9;return _0x51f71e;}let _0x3ab71f=_0x58fe28({'blockSize':0x10,'nonceLength':0x10},function(_0x1c186e,_0x437221,_0x4c0c29={}){const _0x33a58c=_0x39fe8c;let _0x443b36=!_0x4c0c29[_0x33a58c(0x540)];return{'encrypt'(_0x833eaa,_0x591b9a){const _0x40df86=_0x33a58c;let _0x1ded4f=_0x3010df(_0x833eaa,_0x443b36,_0x591b9a),_0x21fe91=_0x38d073(_0x1c186e),{b:_0x26a4f4,o:_0x4ae7b6,out:_0x2ba56e}=_0x3cd649(_0x833eaa,_0x1ded4f,_0x591b9a),_0x3ce206=_0x3f6c64(_0x26a4f4);_0x483661(_0x3ce206);let _0x290a09=_0x437221,_0x2a5082=[_0x21fe91];(!_0x4cddb6||!_0x351048(_0x290a09))&&_0x2a5082[_0x40df86(0x3dc)](_0x290a09=_0x5c7032(_0x290a09));let _0x108906=_0x3f6c64(_0x290a09);_0x483661(_0x108906);let _0x503ea4=_0x108906[0x0],_0x2203f3=_0x108906[0x1],_0x439c34=_0x108906[0x2],_0xe593f8=_0x108906[0x3],_0x355fa6=0x0;for(;_0x355fa6+0x4<=_0x3ce206[_0x40df86(0x369)];)_0x503ea4^=_0x3ce206[_0x355fa6+0x0],_0x2203f3^=_0x3ce206[_0x355fa6+0x1],_0x439c34^=_0x3ce206[_0x355fa6+0x2],_0xe593f8^=_0x3ce206[_0x355fa6+0x3],{s0:_0x503ea4,s1:_0x2203f3,s2:_0x439c34,s3:_0xe593f8}=_0x4da9bf(_0x21fe91,_0x503ea4,_0x2203f3,_0x439c34,_0xe593f8),_0x4ae7b6[_0x355fa6++]=_0x503ea4,_0x4ae7b6[_0x355fa6++]=_0x2203f3,_0x4ae7b6[_0x355fa6++]=_0x439c34,_0x4ae7b6[_0x355fa6++]=_0xe593f8;if(_0x443b36){let _0x7c5a3b=_0x99eee3(_0x833eaa[_0x40df86(0x264)](_0x355fa6*0x4));_0x483661(_0x7c5a3b),_0x503ea4^=_0x7c5a3b[0x0],_0x2203f3^=_0x7c5a3b[0x1],_0x439c34^=_0x7c5a3b[0x2],_0xe593f8^=_0x7c5a3b[0x3],{s0:_0x503ea4,s1:_0x2203f3,s2:_0x439c34,s3:_0xe593f8}=_0x4da9bf(_0x21fe91,_0x503ea4,_0x2203f3,_0x439c34,_0xe593f8),_0x4ae7b6[_0x355fa6++]=_0x503ea4,_0x4ae7b6[_0x355fa6++]=_0x2203f3,_0x4ae7b6[_0x355fa6++]=_0x439c34,_0x4ae7b6[_0x355fa6++]=_0xe593f8,_0x4b0333(_0x7c5a3b);}return _0x483661(_0x4ae7b6),_0x4b0333(..._0x2a5082),_0x26a4f4!==_0x833eaa&&_0x4b0333(_0x26a4f4),_0x2ba56e;},'decrypt'(_0x17f160,_0x491b39){const _0x214b70=_0x33a58c;_0x64e8a5(_0x17f160,_0x491b39);let _0x454584=_0x544c72(_0x1c186e);_0x491b39===void 0x0&&(_0x491b39=new Uint8Array(_0x17f160[_0x214b70(0x369)]));let _0x375302=_0x437221,_0x12a2f3=[_0x454584];(!_0x4cddb6||!_0x351048(_0x375302))&&_0x12a2f3['push'](_0x375302=_0x5c7032(_0x375302));let _0x4136af=_0x3f6c64(_0x375302);_0x483661(_0x4136af),(!_0x4cddb6||!_0x351048(_0x17f160))&&_0x12a2f3['push'](_0x17f160=_0x5c7032(_0x17f160));let _0x3edcaf=_0x3f6c64(_0x17f160),_0x478f8c=_0x3f6c64(_0x491b39);_0x483661(_0x3edcaf);let _0x4b35b6=_0x4136af[0x0],_0x317b45=_0x4136af[0x1],_0x181f4a=_0x4136af[0x2],_0x41bee1=_0x4136af[0x3];for(let _0x536f06=0x0;_0x536f06+0x4<=_0x3edcaf[_0x214b70(0x369)];){let _0x17a368=_0x4b35b6,_0x3430e3=_0x317b45,_0x5f1135=_0x181f4a,_0x34e5e6=_0x41bee1;_0x4b35b6=_0x3edcaf[_0x536f06+0x0],_0x317b45=_0x3edcaf[_0x536f06+0x1],_0x181f4a=_0x3edcaf[_0x536f06+0x2],_0x41bee1=_0x3edcaf[_0x536f06+0x3];let {s0:_0x5a5c38,s1:_0x415cef,s2:_0x54a97f,s3:_0x321a6b}=_0x5b3fb4(_0x454584,_0x4b35b6,_0x317b45,_0x181f4a,_0x41bee1);_0x478f8c[_0x536f06++]=_0x5a5c38^_0x17a368,_0x478f8c[_0x536f06++]=_0x415cef^_0x3430e3,_0x478f8c[_0x536f06++]=_0x54a97f^_0x5f1135,_0x478f8c[_0x536f06++]=_0x321a6b^_0x34e5e6;}return _0x483661(_0x478f8c),_0x4b0333(..._0x12a2f3),_0x515cda(_0x491b39,_0x443b36);}};});function _0x2599b8(_0xe9a074){const _0x578ceb=_0x39fe8c;let _0x164aae=atob(_0xe9a074),_0x3080e5=new Uint8Array(_0x164aae[_0x578ceb(0x369)]);for(let _0x4ec7d9=0x0;_0x4ec7d9<_0x164aae['length'];_0x4ec7d9++)_0x3080e5[_0x4ec7d9]=_0x164aae['charCodeAt'](_0x4ec7d9);return _0x3080e5;}function _0x349150(_0xeafe70){const _0x369cd5=_0x39fe8c;let _0x3bf842='';for(let _0xed0d91=0x0;_0xed0d91<_0xeafe70[_0x369cd5(0x369)];_0xed0d91++)_0x3bf842+=String[_0x369cd5(0x40d)](_0xeafe70[_0xed0d91]);return btoa(_0x3bf842);}function _0x23024f(_0x422401,_0x29d997){const _0x4d8a4d=_0x39fe8c;let _0x7845b1=_0x2599b8(_0x29d997),_0x5cca32=_0x5d6411(0x10);return _0x349150(_0x4496f9(_0x5cca32,_0x3ab71f(_0x7845b1,_0x5cca32)[_0x4d8a4d(0x2eb)](_0x21aa29(_0x422401))));}function _0x3a1407(){const _0x392626=_0x39fe8c;let _0xe964b7=(0x0,_0x1a80fc[_0x392626(0x268)])()['__Key__'];if(typeof window<'u'&&window['location']!==void 0x0&&_0xe964b7){let _0x4fa926={'time':Math[_0x392626(0x2e0)](Date[_0x392626(0x524)]()/0x3e8),'domain':location[_0x392626(0x1f3)]};return _0x23024f(JSON['stringify'](_0x4fa926),_0xe964b7);}}let _0x584d5c=class{constructor(_0x1e9354){const _0x36fc83=_0x39fe8c;this['_httpService']=_0x1e9354,this[_0x36fc83(0x39f)]();}[_0x39fe8c(0x39f)](){const _0x11c6cc=_0x39fe8c;this['_httpService'][_0x11c6cc(0x475)]({'interceptor':(_0x1263f8,_0x2a8455)=>{const _0x1d24f6=_0x11c6cc;let _0x8c73c1=_0x3a1407();return _0x8c73c1&&_0x1263f8[_0x1d24f6(0x2fc)][_0x1d24f6(0x4c0)](_0x1d24f6(0x43e),_0x8c73c1),_0x2a8455(_0x1263f8);}});}};_0x584d5c=_0xdb6dd9([_0x32d44(0x0,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x34e285[_0x39fe8c(0x425)]))],_0x584d5c);let _0x3db78d=class extends _0xa4b471[_0x39fe8c(0x230)]{constructor(_0x2dcbbc,_0x49b0f4,_0x46472f){const _0x3409a5=_0x39fe8c;super(),this[_0x3409a5(0x30a)]=_0x2dcbbc,this[_0x3409a5(0x52c)]=_0x49b0f4,this[_0x3409a5(0x353)]=_0x46472f,_0x2f2d1e(this,_0x3409a5(0x480),new _0x3f20a0['BehaviorSubject'](null)),_0x2f2d1e(this,_0x3409a5(0x224),new _0x3f20a0['Subject']()),_0x2f2d1e(this,_0x3409a5(0x4ca),this[_0x3409a5(0x480)][_0x3409a5(0x349)]()),_0x2f2d1e(this,_0x3409a5(0x1ed),this[_0x3409a5(0x224)][_0x3409a5(0x349)]());}[_0x39fe8c(0x283)](){const _0x699f68=_0x39fe8c;super[_0x699f68(0x283)](),this[_0x699f68(0x224)][_0x699f68(0x4df)](),this[_0x699f68(0x480)][_0x699f68(0x4df)]();}[_0x39fe8c(0x36c)](_0x2385ff,_0x44d0ca,_0x286c87,_0x1daf19,_0x3125b2){const _0x4b794c=_0x39fe8c;return this[_0x4b794c(0x339)](_0x2385ff,_0x44d0ca,_0x286c87,_0x1daf19,_0x3125b2);}[_0x39fe8c(0x42e)](_0x4eae5c,_0x6e898a,_0x10ca7c,_0x181d7c){const _0x206f47=_0x39fe8c;return this[_0x206f47(0x339)](_0x4eae5c,_0x6e898a,void 0x0,_0x10ca7c,_0x181d7c);}async['_loadUnit'](_0x54e150,_0x4970a6,_0x3e3a86,_0x5687a6,_0x54abae){const _0x1cf002=_0x39fe8c;this['_unitInfo$'][_0x1cf002(0x3a2)]({'unitId':_0x54e150,'type':_0x4970a6,'subUnitId':_0x5687a6});let _0x50e0e2=_0x3e3a86;if(_0x50e0e2===void 0x0){var _0xae2955;let _0x52c4e3=await((_0xae2955=this[_0x1cf002(0x353)])==null?void 0x0:_0xae2955[_0x1cf002(0x3f6)](_0x54e150));_0x50e0e2=_0x52c4e3&&(_0x52c4e3['awaitingChangeset']||_0x52c4e3[_0x1cf002(0x45d)][_0x1cf002(0x369)]!==0x0)?_0x52c4e3[_0x1cf002(0x453)]:0x0,_0x50e0e2===0x0&&this['_logService'][_0x1cf002(0x54b)]('[DataLoaderService]',_0x1cf002(0x3bd));}return this[_0x1cf002(0x280)](_0x54e150,_0x4970a6,_0x50e0e2,_0x5687a6,_0x54abae);}async[_0x39fe8c(0x280)](_0x58d87b,_0xb0bb2,_0x4fb7ca,_0x3ffce7,_0x10a87f){const _0x2ab04d=_0x39fe8c;let _0x1215c7=null;switch(_0xb0bb2){case _0xa4b471['UniverInstanceType'][_0x2ab04d(0x536)]:_0x1215c7=await this['_snapshotService'][_0x2ab04d(0x501)](_0x58d87b,_0x4fb7ca,_0x10a87f,{'initialSubUnitId':_0x3ffce7});break;case _0xa4b471['UniverInstanceType'][_0x2ab04d(0x4b7)]:_0x1215c7=await this['_snapshotService']['loadDoc'](_0x58d87b,_0x4fb7ca,_0x10a87f);break;case _0xa4b471['UniverInstanceType']['UNIVER_SLIDE']:_0x1215c7=await this[_0x2ab04d(0x52c)][_0x2ab04d(0x1d7)](_0x58d87b,_0x4fb7ca,_0x10a87f);break;case _0xa4b471['UniverInstanceType'][_0x2ab04d(0x544)]:_0x1215c7=await this[_0x2ab04d(0x52c)][_0x2ab04d(0x2d7)](_0x58d87b,_0x4fb7ca,_0x10a87f);break;case _0xa4b471[_0x2ab04d(0x4d0)]['UNIVER_BASE']:_0x1215c7=await this[_0x2ab04d(0x52c)]['loadBase'](_0x58d87b,_0x4fb7ca,_0x10a87f);break;case _0xa4b471[_0x2ab04d(0x4d0)][_0x2ab04d(0x392)]:_0x1215c7=await this[_0x2ab04d(0x52c)][_0x2ab04d(0x26e)](_0x58d87b,_0x4fb7ca,_0x10a87f);break;default:this[_0x2ab04d(0x30a)][_0x2ab04d(0x29b)](_0x2ab04d(0x351),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');}return _0x1215c7&&this[_0x2ab04d(0x224)][_0x2ab04d(0x3a2)](_0x1215c7),_0x1215c7;}};_0x3db78d=_0xdb6dd9([_0x32d44(0x0,_0xa4b471[_0x39fe8c(0x2b6)]),_0x32d44(0x1,(0x0,_0xa4b471['Inject'])(_0x58a81f[_0x39fe8c(0x1db)])),_0x32d44(0x2,(0x0,_0xa4b471[_0x39fe8c(0x1d6)])(_0x4ed09e))],_0x3db78d);let _0x500a35=class{constructor(_0x28c3fd,_0x4a730c,_0x31ab6){const _0x4d1708=_0x39fe8c;this[_0x4d1708(0x3a7)]=_0x28c3fd,this[_0x4d1708(0x481)]=_0x4a730c,this[_0x4d1708(0x46b)]=_0x31ab6,_0x2f2d1e(this,'_waitCount',0x0),_0x2f2d1e(this,'_change$',new _0x3f20a0[(_0x4d1708(0x42b))]()),_0x2f2d1e(this,_0x4d1708(0x2d5),this[_0x4d1708(0x1ff)]),_0x2f2d1e(this,'_imageSourceCache',new Map());}[_0x39fe8c(0x275)](_0x222904){const _0x5d6d7d=_0x39fe8c;this[_0x5d6d7d(0x390)]=_0x222904,this['_change$'][_0x5d6d7d(0x3a2)](_0x222904);}['getImageSourceCache'](_0x374cbc,_0x4ee8c9){const _0x8d3f5a=_0x39fe8c;if(_0x4ee8c9===_0xa4b471[_0x8d3f5a(0x479)]['BASE64']){let _0x2090d8=new Image();return _0x2090d8[_0x8d3f5a(0x4a0)]=_0x374cbc,_0x2090d8;}return this['_imageSourceCache'][_0x8d3f5a(0x512)](_0x374cbc);}[_0x39fe8c(0x549)](_0x11dd4d,_0x2d451b,_0x174497){const _0x2a273a=_0x39fe8c;_0x2d451b!==_0xa4b471['ImageSourceType']['BASE64']&&_0x174497!=null&&this['_imageSourceCache'][_0x2a273a(0x4c0)](_0x11dd4d,_0x174497);}async['getImage'](_0x1f1472){const _0x6b58de=_0x39fe8c;try{let _0x18f9ce=this['_replaceFileID'](this[_0x6b58de(0x487)](),''+_0x1f1472),_0x54b6e2=(await this[_0x6b58de(0x3a7)][_0x6b58de(0x512)](_0x18f9ce))[_0x6b58de(0x249)];if(_0x54b6e2[_0x6b58de(0x29b)]&&_0x54b6e2[_0x6b58de(0x29b)][_0x6b58de(0x2d8)]===_0x75c91[_0x6b58de(0x272)]['OK']){let _0x5d8589=(0x0,_0xa4b471['resolveWithBasePath'])(_0x54b6e2[_0x6b58de(0x348)],this[_0x6b58de(0x32b)]());return Promise['resolve'](_0x5d8589);}return Promise['reject'](_0x54b6e2[_0x6b58de(0x29b)]);}catch(_0x1bbeda){return Promise[_0x6b58de(0x305)](_0x1bbeda);}}async[_0x39fe8c(0x20b)](_0x4028c1){const _0x5832cf=_0x39fe8c;let _0x7c706a='';if(!_0x25bc6a[_0x5832cf(0x323)][_0x5832cf(0x48a)](_0x4028c1[_0x5832cf(0x33d)]))return this[_0x5832cf(0x3d4)](),Promise['reject'](Error(_0xa4b471['ImageUploadStatusType'][_0x5832cf(0x4bd)]));if(_0x4028c1[_0x5832cf(0x3ea)]>(0x0,_0x25bc6a['getDrawingImageAllowSize'])())return this[_0x5832cf(0x3d4)](),Promise[_0x5832cf(0x305)](Error(_0xa4b471[_0x5832cf(0x41d)][_0x5832cf(0x23f)]));try{let _0x373eb6=new FormData();_0x373eb6[_0x5832cf(0x231)]('file',_0x4028c1);let _0x3743d0=this[_0x5832cf(0x46b)]['getFocusedUnit'](),_0x226b0c=_0x3743d0==null?void 0x0:_0x3743d0['getUnitId']();if(!_0x226b0c)throw Error('unitId\x20is\x20not\x20found');let _0x331c34=this['_getUploadFileURL']()+'?size='+_0x4028c1[_0x5832cf(0x3ea)][_0x5832cf(0x42a)]()+_0x5832cf(0x2c5)+_0x75c91[_0x5832cf(0x49a)][_0x5832cf(0x256)]+_0x5832cf(0x258)+encodeURIComponent(_0x226b0c),_0x20939b={'body':_0x373eb6},_0x31b186=(await this[_0x5832cf(0x3a7)]['post'](_0x331c34,_0x20939b))[_0x5832cf(0x249)];if(typeof _0x31b186['FileId']!=_0x5832cf(0x459))return this[_0x5832cf(0x3d4)](),Promise[_0x5832cf(0x305)](Error(_0xa4b471[_0x5832cf(0x41d)][_0x5832cf(0x271)]));_0x7c706a=_0x31b186[_0x5832cf(0x538)];}catch{return this[_0x5832cf(0x3d4)](),Promise[_0x5832cf(0x305)](Error(_0xa4b471[_0x5832cf(0x41d)][_0x5832cf(0x271)]));}return new Promise((_0x46845a,_0x2ee8ec)=>{const _0x18162d=_0x5832cf;let _0x558e95=new FileReader();_0x558e95[_0x18162d(0x40b)](_0x4028c1),_0x558e95[_0x18162d(0x2b1)]=_0x4af0da=>{const _0x281b86=_0x18162d;var _0x297827;let _0x32fbc8=(_0x297827=_0x4af0da[_0x281b86(0x51b)])==null?void 0x0:_0x297827[_0x281b86(0x2f1)];_0x32fbc8==null?(this[_0x281b86(0x3d4)](),_0x2ee8ec(Error(_0xa4b471[_0x281b86(0x41d)][_0x281b86(0x271)]))):(_0x46845a({'imageId':(0x0,_0xa4b471[_0x281b86(0x471)])(0x6),'imageSourceType':_0xa4b471[_0x281b86(0x479)]['UUID'],'source':_0x7c706a,'base64Cache':_0x32fbc8,'status':_0xa4b471['ImageUploadStatusType'][_0x281b86(0x3e6)]}),this[_0x281b86(0x3d4)]());};});}[_0x39fe8c(0x2ac)](){const _0x4be7e2=_0x39fe8c;let _0xd8f83c=this[_0x4be7e2(0x481)][_0x4be7e2(0x472)](_0x5ceae9);return(_0xd8f83c==null?void 0x0:_0xd8f83c[_0x4be7e2(0x363)])??'/universer-api/stream/file/upload';}[_0x39fe8c(0x487)](){const _0x22e0ae=_0x39fe8c;let _0x1813b5=this[_0x22e0ae(0x481)][_0x22e0ae(0x472)](_0x5ceae9);return(_0x1813b5==null?void 0x0:_0x1813b5[_0x22e0ae(0x430)])??_0x22e0ae(0x49c);}[_0x39fe8c(0x32b)](){const _0x2aaaff=_0x39fe8c;let _0x4b5ffb=this[_0x2aaaff(0x481)]['getConfig'](_0x5ceae9);return(_0x4b5ffb==null?void 0x0:_0x4b5ffb[_0x2aaaff(0x466)])??location[_0x2aaaff(0x2b3)];}[_0x39fe8c(0x508)](_0x2023b4,_0x59e0a7){const _0x3f0aed=_0x39fe8c;return _0x2023b4[_0x3f0aed(0x485)]('{fileID}',_0x59e0a7);}[_0x39fe8c(0x3d4)](){const _0x4814ad=_0x39fe8c;--this[_0x4814ad(0x390)],this[_0x4814ad(0x1ff)][_0x4814ad(0x3a2)](this['_waitCount']);}};_0x500a35=_0xdb6dd9([_0x32d44(0x0,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x34e285[_0x39fe8c(0x425)])),_0x32d44(0x1,_0xa4b471[_0x39fe8c(0x345)]),_0x32d44(0x2,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x2cb)]))],_0x500a35);let _0x516f26=class{constructor(_0x553392,_0x2018b8){const _0xcaee29=_0x39fe8c;this['_configService']=_0x553392,this[_0xcaee29(0x3ac)]=_0x2018b8;}[_0x39fe8c(0x257)](){const _0x45f01d=_0x39fe8c;let _0x334394=this['_configService']['getConfig'](_0x5ceae9);return(_0x334394==null?void 0x0:_0x334394[_0x45f01d(0x25f)])??_0x45f01d(0x36f);}async[_0x39fe8c(0x2b9)](_0x1f5cf8){const _0x3ecc28=_0x39fe8c;let _0x2db919=this[_0x3ecc28(0x257)]()+_0x3ecc28(0x34b);return{'list':[{'title':'People','mentions':(await this[_0x3ecc28(0x3ac)][_0x3ecc28(0x512)](_0x2db919,{'params':{'objectID':_0x1f5cf8['unitId'],'unitID':_0x1f5cf8[_0x3ecc28(0x441)]}}))[_0x3ecc28(0x249)]['collaborators']['map'](_0x568918=>({'objectId':_0x568918['id'],'name':_0x568918['subject']['name'],'metadata':{'icon':_0x568918['subject'][_0x3ecc28(0x2b2)]},'label':_0x568918[_0x3ecc28(0x387)][_0x3ecc28(0x285)],'objectType':_0xa4b471['MentionType'][_0x3ecc28(0x2ec)]})),'metadata':{},'type':_0xa4b471[_0x3ecc28(0x505)]['PERSON']}]};}};_0x516f26=_0xdb6dd9([_0x32d44(0x0,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x345)])),_0x32d44(0x1,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x34e285['HTTPService']))],_0x516f26);let _0x54799c=class extends _0xa4b471[_0x39fe8c(0x230)]{constructor(_0x36b1e5,_0x31c0df,_0x29905d,_0x69bafd,_0x4c1b43,_0x3363da){const _0xf427a2=_0x39fe8c;super(),this[_0xf427a2(0x483)]=_0x36b1e5,this[_0xf427a2(0x46b)]=_0x31c0df,this[_0xf427a2(0x528)]=_0x29905d,this[_0xf427a2(0x32a)]=_0x69bafd,this['_collaborationSessionService']=_0x4c1b43,this[_0xf427a2(0x1e9)]=_0x3363da,_0x2f2d1e(this,_0xf427a2(0x4b6),new Set()),this[_0xf427a2(0x1f7)](()=>this[_0xf427a2(0x4b6)][_0xf427a2(0x4d3)]()),this[_0xf427a2(0x1f7)](_0x5db37a(this[_0xf427a2(0x46b)])[_0xf427a2(0x27e)](({unitId:_0x43f5c2})=>this[_0xf427a2(0x4b6)][_0xf427a2(0x3db)](_0x43f5c2))),this[_0xf427a2(0x238)](),this[_0xf427a2(0x1dd)](),[_0xa4b471[_0xf427a2(0x4d0)][_0xf427a2(0x4b7)],_0xa4b471[_0xf427a2(0x4d0)][_0xf427a2(0x359)],_0xa4b471[_0xf427a2(0x4d0)][_0xf427a2(0x1df)],_0xa4b471[_0xf427a2(0x4d0)][_0xf427a2(0x544)]][_0xf427a2(0x30f)](_0x757490=>{const _0x1b5414=_0xf427a2;this[_0x1b5414(0x1f7)](this['_univerInstanceService'][_0x1b5414(0x4a9)](_0x757490)[_0x1b5414(0x27e)](_0xccaacc=>{const _0x25529d=_0x1b5414;this[_0x25529d(0x4b6)][_0x25529d(0x4be)](_0xccaacc[_0x25529d(0x2e9)]()),this['_injector'][_0x25529d(0x512)](_0xa4b471[_0x25529d(0x4a5)])[_0x25529d(0x464)](_0xccaacc[_0x25529d(0x2e9)]());}));});}[_0x39fe8c(0x1dd)](){const _0x37e1aa=_0x39fe8c;let _0x512d93=async(_0x39b6d4,_0x17b291)=>{const _0x39e05f=_0x4f8b;let _0x550f0d=await this[_0x39e05f(0x4a7)][_0x39e05f(0x3c8)](_0x39b6d4);this['_disposed']||this[_0x39e05f(0x4b6)][_0x39e05f(0x332)](_0x39b6d4)||!this[_0x39e05f(0x46b)]['getUnit'](_0x39b6d4)||_0x550f0d[_0x39e05f(0x39a)][_0x39e05f(0x4b1)]((0x0,_0x188568['filter'])(_0x53c3e1=>_0x53c3e1[_0x39e05f(0x3d5)]===_0x58a81f[_0x39e05f(0x386)][_0x39e05f(0x266)]),(0x0,_0x188568[_0x39e05f(0x523)])((0x0,_0x3f20a0[_0x39e05f(0x237)])(this[_0x39e05f(0x46a)],this[_0x39e05f(0x46b)][_0x39e05f(0x32f)][_0x39e05f(0x4b1)]((0x0,_0x188568['filter'])(_0x5c4278=>_0x5c4278[_0x39e05f(0x2e9)]()===_0x39b6d4)))))[_0x39e05f(0x27e)](_0x246651=>{const _0x4a2537=_0x39e05f;let {reason:_0xd3be7f}=_0x246651['data'];this[_0x4a2537(0x1e9)][_0x4a2537(0x3aa)]({'id':'CLOSE_ROOM','data':_0xd3be7f}),this[_0x4a2537(0x4b6)][_0x4a2537(0x4be)](_0x39b6d4),this[_0x4a2537(0x483)][_0x4a2537(0x512)](_0xa4b471[_0x4a2537(0x4a5)])[_0x4a2537(0x464)](_0x39b6d4);let _0x3f2d20=_0x450489(_0x17b291);_0x3f2d20!=null&&this['_updateUnitPermissionPoint'](_0x39b6d4,_0x3f2d20,_0x75c91[_0x4a2537(0x2f5)]['Edit'],!0x1),this[_0x4a2537(0x4a7)][_0x4a2537(0x297)](_0x39b6d4);});};_0x5db37a(this['_univerInstanceService'])[_0x37e1aa(0x4b1)]((0x0,_0x188568['filter'])(({unitId:_0x50ddc5})=>!(0x0,_0xa4b471[_0x37e1aa(0x3fb)])(_0x50ddc5)),(0x0,_0x188568[_0x37e1aa(0x523)])(this[_0x37e1aa(0x46a)]))[_0x37e1aa(0x27e)](({type:_0x5d55ee,unitId:_0x2067eb})=>{const _0xeb232a=_0x37e1aa;_0x512d93(_0x2067eb,_0x5d55ee)['catch'](_0xc3cc16=>this[_0xeb232a(0x483)][_0xeb232a(0x512)](_0xa4b471['ILogService'])[_0xeb232a(0x29b)](_0xc3cc16));});}[_0x39fe8c(0x238)](){const _0x15df2c=_0x39fe8c;let _0x4f5d04=async(_0x2960d2,_0x42c436)=>{const _0x580b44=_0x4f8b;let _0x29c0e5=await this[_0x580b44(0x4a7)]['requireSession'](_0x2960d2);if(!(this[_0x580b44(0x494)]||this[_0x580b44(0x4b6)][_0x580b44(0x332)](_0x2960d2)||!this['_univerInstanceService']['getUnit'](_0x2960d2))){if(_0x42c436===_0xa4b471[_0x580b44(0x4d0)][_0x580b44(0x536)]){let _0x41ae06=this[_0x580b44(0x483)]['get'](_0x3a96f2[_0x580b44(0x1e5)]);await _0x41ae06['initWorkbookPermissionChange'](_0x2960d2),_0x29c0e5[_0x580b44(0x39a)]['pipe']((0x0,_0x188568[_0x580b44(0x41e)])(_0x578048=>_0x578048[_0x580b44(0x3d5)]===_0x58a81f['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),(0x0,_0x188568[_0x580b44(0x523)])((0x0,_0x3f20a0[_0x580b44(0x237)])(this[_0x580b44(0x46a)],_0x29c0e5[_0x580b44(0x39a)][_0x580b44(0x4b1)]((0x0,_0x188568[_0x580b44(0x41e)])(_0x22a3ca=>_0x22a3ca['eventID']===_0x58a81f[_0x580b44(0x386)]['SHOULD_CLOSE_CONN'])),this[_0x580b44(0x46b)][_0x580b44(0x32f)][_0x580b44(0x4b1)]((0x0,_0x188568['filter'])(_0x3cd95b=>_0x3cd95b[_0x580b44(0x2e9)]()===_0x2960d2)))))[_0x580b44(0x27e)](_0x4abb53=>{const _0x74f051=_0x580b44;let {objectId:_0x4bdb02}=_0x4abb53[_0x74f051(0x250)];_0x4bdb02===_0x2960d2?_0x41ae06['initWorkbookPermissionChange'](_0x2960d2):_0x41ae06[_0x74f051(0x374)](_0x2960d2,_0x4bdb02);});}else _0x29c0e5[_0x580b44(0x39a)][_0x580b44(0x4b1)]((0x0,_0x188568[_0x580b44(0x41e)])(_0x4e955e=>_0x4e955e['eventID']===_0x58a81f[_0x580b44(0x386)]['UPDATE_PERMISSION_OBJ']),(0x0,_0x188568[_0x580b44(0x523)])((0x0,_0x3f20a0[_0x580b44(0x237)])(this[_0x580b44(0x46a)],_0x29c0e5[_0x580b44(0x39a)][_0x580b44(0x4b1)]((0x0,_0x188568[_0x580b44(0x41e)])(_0x536f73=>_0x536f73[_0x580b44(0x3d5)]===_0x58a81f[_0x580b44(0x386)][_0x580b44(0x266)])),this[_0x580b44(0x46b)][_0x580b44(0x32f)][_0x580b44(0x4b1)]((0x0,_0x188568['filter'])(_0x26cbef=>_0x26cbef[_0x580b44(0x2e9)]()===_0x2960d2)))))[_0x580b44(0x27e)](()=>{const _0x461550=_0x580b44;this[_0x461550(0x333)](_0x2960d2,_0x42c436)[_0x461550(0x1e3)](_0x2d8489=>this[_0x461550(0x483)][_0x461550(0x512)](_0xa4b471[_0x461550(0x2b6)])['error'](_0x2d8489));}),await this[_0x580b44(0x333)](_0x2960d2,_0x42c436);}};_0x5db37a(this[_0x15df2c(0x46b)])[_0x15df2c(0x4b1)]((0x0,_0x188568[_0x15df2c(0x41e)])(({unitId:_0x1e245d})=>!(0x0,_0xa4b471[_0x15df2c(0x3fb)])(_0x1e245d)),(0x0,_0x188568[_0x15df2c(0x523)])(this[_0x15df2c(0x46a)]))[_0x15df2c(0x27e)](({type:_0x222d7b,unitId:_0x1c4485})=>{const _0x1601bb=_0x15df2c;_0x4f5d04(_0x1c4485,_0x222d7b)[_0x1601bb(0x1e3)](_0x10eeec=>this[_0x1601bb(0x483)][_0x1601bb(0x512)](_0xa4b471[_0x1601bb(0x2b6)])[_0x1601bb(0x29b)](_0x10eeec));});}async[_0x39fe8c(0x333)](_0x2a8c8b,_0x84a97f){const _0xc7f91a=_0x39fe8c;let _0x50c6bd=_0x450489(_0x84a97f);if(_0x50c6bd==null)return;let _0x4f6e65=this[_0xc7f91a(0x483)][_0xc7f91a(0x512)](_0xa4b471[_0xc7f91a(0x4a5)]);if(_0x4f6e65['supports']({'unitId':_0x2a8c8b,'objectId':_0x2a8c8b,'objectType':_0x50c6bd})){await _0x4f6e65[_0xc7f91a(0x320)](_0x2a8c8b);return;}let _0x52a9ca=this[_0xc7f91a(0x4b3)](_0x2a8c8b,_0x50c6bd);if(!_0x52a9ca[_0xc7f91a(0x369)])return;let _0x2a27ee=await this[_0xc7f91a(0x32a)][_0xc7f91a(0x399)]({'objectID':_0x2a8c8b,'objectType':_0x50c6bd,'unitID':_0x2a8c8b,'actions':_0x52a9ca[_0xc7f91a(0x205)](({action:_0x351526})=>_0x351526)});this[_0xc7f91a(0x494)]||this[_0xc7f91a(0x4b6)]['has'](_0x2a8c8b)||!this[_0xc7f91a(0x46b)]['getUnit'](_0x2a8c8b)||_0x2a27ee['forEach'](_0x2ca405=>{const _0x2e6af9=_0xc7f91a;let _0x23bb6a=_0x2ca405[_0x2e6af9(0x3c1)],_0x19f893=_0x2ca405[_0x2e6af9(0x399)];_0x23bb6a!=null&&_0x19f893!=null&&_0x52a9ca[_0x2e6af9(0x41e)](_0x10d647=>_0x10d647['action']===_0x23bb6a)[_0x2e6af9(0x30f)](_0x42c0fe=>this[_0x2e6af9(0x528)][_0x2e6af9(0x213)](_0x42c0fe['id'],_0x19f893));});}['_getUnitPermissionPoints'](_0x3cfb24,_0x837ac3){const _0x84e831=_0x39fe8c;let _0x115fa5=[];return this[_0x84e831(0x528)][_0x84e831(0x243)]()[_0x84e831(0x30f)]((_0x2e7d64,_0x5e3a4f)=>{const _0x7238f5=_0x84e831;_0x2e7d64[_0x7238f5(0x27e)](_0x1294d5=>{const _0x28563d=_0x7238f5;_0x1294d5[_0x28563d(0x33d)]===_0x837ac3&&_0x28563d(0x441)in _0x1294d5&&_0x1294d5[_0x28563d(0x441)]===_0x3cfb24&&(!(_0x28563d(0x439)in _0x1294d5)||_0x1294d5[_0x28563d(0x439)]===_0x3cfb24)&&_0x115fa5[_0x28563d(0x3dc)]({'id':_0x5e3a4f,'action':_0x1294d5['subType']});})[_0x7238f5(0x357)]();}),_0x115fa5;}[_0x39fe8c(0x42d)](_0x3f33c7,_0x30117a,_0x4285db,_0xe9163c){const _0xf1dc6f=_0x39fe8c;this['_permissionService']['getAllPermissionPoint']()[_0xf1dc6f(0x30f)]((_0x2c7a9d,_0x20c3b1)=>{const _0x2cb364=_0xf1dc6f;let _0x3e7266=!0x1;_0x2c7a9d['subscribe'](_0x48d88a=>{const _0x18173a=_0x4f8b;_0x3e7266=_0x48d88a[_0x18173a(0x33d)]===_0x30117a&&_0x48d88a[_0x18173a(0x429)]===_0x4285db&&_0x18173a(0x441)in _0x48d88a&&_0x48d88a[_0x18173a(0x441)]===_0x3f33c7&&(!('objectId'in _0x48d88a)||_0x48d88a[_0x18173a(0x439)]===_0x3f33c7);})[_0x2cb364(0x357)](),_0x3e7266&&this[_0x2cb364(0x528)][_0x2cb364(0x213)](_0x20c3b1,_0xe9163c);});}};_0x54799c=_0xdb6dd9([_0x32d44(0x0,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0xa4b471[_0x39fe8c(0x409)])),_0x32d44(0x1,_0xa4b471[_0x39fe8c(0x2cb)]),_0x32d44(0x2,_0xa4b471[_0x39fe8c(0x33f)]),_0x32d44(0x3,_0xa4b471[_0x39fe8c(0x4cd)]),_0x32d44(0x4,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x216287)),_0x32d44(0x5,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x559d58))],_0x54799c);function _0x5db37a(_0xb5d18a){const _0x4bd33e=_0x39fe8c;return(0x0,_0x3f20a0[_0x4bd33e(0x237)])(...[_0xa4b471[_0x4bd33e(0x4d0)][_0x4bd33e(0x536)],_0xa4b471[_0x4bd33e(0x4d0)][_0x4bd33e(0x4b7)],_0xa4b471[_0x4bd33e(0x4d0)][_0x4bd33e(0x359)],_0xa4b471[_0x4bd33e(0x4d0)][_0x4bd33e(0x544)],_0xa4b471['UniverInstanceType']['UNIVER_BASE']]['map'](_0x47ae61=>_0xb5d18a[_0x4bd33e(0x242)](_0x47ae61)['pipe']((0x0,_0x188568[_0x4bd33e(0x205)])(_0x1cfb98=>({'type':_0x47ae61,'unitId':_0x1cfb98[_0x4bd33e(0x438)][_0x4bd33e(0x2e9)]()})))));}function _0x450489(_0x1fd581){const _0x2d522e=_0x39fe8c;switch(_0x1fd581){case _0xa4b471[_0x2d522e(0x4d0)][_0x2d522e(0x536)]:return _0x75c91['UnitObject'][_0x2d522e(0x49d)];case _0xa4b471[_0x2d522e(0x4d0)]['UNIVER_DOC']:return _0x75c91['UnitObject'][_0x2d522e(0x227)];case _0xa4b471['UniverInstanceType'][_0x2d522e(0x359)]:return _0x75c91[_0x2d522e(0x247)][_0x2d522e(0x210)];case _0xa4b471[_0x2d522e(0x4d0)][_0x2d522e(0x544)]:return _0x75c91[_0x2d522e(0x247)][_0x2d522e(0x2d9)];case _0xa4b471['UniverInstanceType'][_0x2d522e(0x1df)]:return _0x75c91[_0x2d522e(0x247)][_0x2d522e(0x550)];default:return;}}let _0x539721=class{constructor(_0x449189,_0x31d288){const _0x36b435=_0x39fe8c;this[_0x36b435(0x481)]=_0x449189,this['_httpService']=_0x31d288;}async['getUnitOnRev'](_0x119f12,_0xafa895){const _0x4b5222=_0x39fe8c;var _0x1ec996;let {unitID:_0x14cca9,type:_0x530dc8,revision:_0x295f41=0x0}=_0xafa895,_0xdbdd99=this[_0x4b5222(0x3ad)]()+'/'+_0x530dc8+_0x4b5222(0x52a)+_0x14cca9+_0x4b5222(0x4f1)+_0x295f41,_0x495a77=(await this[_0x4b5222(0x3a7)][_0x4b5222(0x512)](_0xdbdd99))[_0x4b5222(0x249)],_0x207b6e=(_0x1ec996=_0x495a77[_0x4b5222(0x2ae)])==null?void 0x0:_0x1ec996[_0x4b5222(0x364)];if(_0x207b6e){let _0x179ebf=_0x207b6e==null?void 0x0:_0x207b6e[_0x4b5222(0x1f4)];_0x207b6e['originalMeta']=_0x58a81f[_0x4b5222(0x4cc)][_0x4b5222(0x239)]((0x0,_0x58a81f[_0x4b5222(0x391)])(_0x179ebf)),Object[_0x4b5222(0x3b8)](_0x207b6e[_0x4b5222(0x355)])['forEach'](([,_0x8740b3])=>{const _0x4a6164=_0x4b5222;let _0x23502d=_0x8740b3[_0x4a6164(0x1f4)];_0x8740b3['originalMeta']=_0x58a81f[_0x4a6164(0x4cc)][_0x4a6164(0x239)]((0x0,_0x58a81f[_0x4a6164(0x391)])(_0x23502d));});}return _0x495a77;}async['getSheetBlock'](_0x36e764,_0x3c1d47){const _0x4ea147=_0x39fe8c;let {unitID:_0x39387d,type:_0x28ed4a,blockID:_0x260174}=_0x3c1d47,_0x158a9a=this['_getAPIPrefix']()+'/'+_0x28ed4a+'/unit/'+_0x39387d+_0x4ea147(0x382)+_0x260174;return(await this[_0x4ea147(0x3a7)][_0x4ea147(0x512)](_0x158a9a))[_0x4ea147(0x249)];}async[_0x39fe8c(0x27a)](_0x1ca42a,_0x4f2d88){const _0xbd48db=_0x39fe8c;let {unitID:_0x178d2e,type:_0x13ff44,blockID:_0x808dbd}=_0x4f2d88,_0x41c31c=this[_0xbd48db(0x3de)]()+_0xbd48db(0x382)+_0x13ff44+_0xbd48db(0x52a)+_0x178d2e+_0xbd48db(0x382)+_0x808dbd;return(await this[_0xbd48db(0x3a7)][_0xbd48db(0x512)](_0x41c31c))['body'];}async[_0x39fe8c(0x3b9)](_0xa32343,_0x583f73){const _0x1ecb54=_0x39fe8c;let {unitID:_0x292003,type:_0x5a63da,from:_0x137320,to:_0x6f383}=_0x583f73,_0x4cb15b=this['_getAPIPrefix']()+'/'+_0x5a63da+_0x1ecb54(0x52a)+_0x292003+_0x1ecb54(0x3c9)+_0x137320+_0x1ecb54(0x420)+_0x6f383;return(await this[_0x1ecb54(0x3a7)][_0x1ecb54(0x512)](_0x4cb15b))['body'];}['getSnapshotAPIPath'](){const _0x3094ba=_0x39fe8c;return this[_0x3094ba(0x481)]['getConfig']('SNAPSHOT_URL_KEY')??this['_getAPIPrefix']();}[_0x39fe8c(0x3de)](){const _0x3eb386=_0x39fe8c;let _0x561869=this[_0x3eb386(0x481)][_0x3eb386(0x472)](_0x5ceae9);return(_0x561869==null?void 0x0:_0x561869[_0x3eb386(0x3b4)])??_0x3eb386(0x403);}async[_0x39fe8c(0x2a6)](_0x188cf6,_0x146146){const _0x2fc5e5=_0x39fe8c;let _0x1d1dcd=_0x2fc5e5(0x456)+_0x146146['type']+_0x2fc5e5(0x52a)+_0x146146[_0x2fc5e5(0x2a8)]+_0x2fc5e5(0x424);return(await this[_0x2fc5e5(0x3a7)]['get'](_0x1d1dcd,{'params':{'resourceId':JSON[_0x2fc5e5(0x326)](_0x146146[_0x2fc5e5(0x34c)])}}))[_0x2fc5e5(0x249)];}['saveSnapshot'](){const _0x2d680a=_0x39fe8c;throw Error(_0x2d680a(0x2e5));}[_0x39fe8c(0x45b)](){const _0x388bb0=_0x39fe8c;throw Error(_0x388bb0(0x2e5));}[_0x39fe8c(0x273)](){const _0x41196a=_0x39fe8c;throw Error(_0x41196a(0x2e5));}[_0x39fe8c(0x3f7)](){const _0x59abf4=_0x39fe8c;throw Error(_0x59abf4(0x2e5));}['copyFileMeta'](){const _0x246212=_0x39fe8c;throw Error(_0x246212(0x2e5));}[_0x39fe8c(0x269)](){const _0x496e98=_0x39fe8c;throw Error(_0x496e98(0x2e5));}};_0x539721=_0xdb6dd9([_0x32d44(0x0,_0xa4b471[_0x39fe8c(0x345)]),_0x32d44(0x1,(0x0,_0xa4b471[_0x39fe8c(0x53d)])(_0x34e285[_0x39fe8c(0x425)]))],_0x539721);let _0x467495=class extends _0xa4b471[_0x39fe8c(0x541)]{constructor(_0x4f7654,_0xd0a0bb,_0x175373,_0xe00687,_0x3671a5,_0x2a52f8){const _0x43d835=_0x39fe8c;super(_0x4f7654,_0xd0a0bb,_0x175373,_0xe00687),this[_0x43d835(0x245)]=_0x3671a5,this[_0x43d835(0x30a)]=_0x2a52f8;}[_0x39fe8c(0x31a)](_0x52e06b,_0x1b1072){const _0x39bbed=_0x39fe8c;let _0xc2146e=this[_0x39bbed(0x4ee)](_0x52e06b);if(_0xc2146e)try{let _0x160a96=this['_transformStack'](_0xc2146e,_0x1b1072);this[_0x39bbed(0x402)](_0x52e06b,_0x160a96);}catch(_0xdf803b){this[_0x39bbed(0x30a)]['error'](_0x39bbed(0x1fd),_0xdf803b),this['_clearUndo'](_0x52e06b);}let _0x583e30=this[_0x39bbed(0x42c)](_0x52e06b);if(_0x583e30)try{let _0x2735bd=this['_transformStack'](_0x583e30,_0x1b1072);this[_0x39bbed(0x279)](_0x52e06b,_0x2735bd);}catch(_0x37ed00){this[_0x39bbed(0x30a)][_0x39bbed(0x29b)](_0x37ed00),this[_0x39bbed(0x45f)](_0x52e06b);}}[_0x39fe8c(0x4aa)](_0x44939a){const _0x635a67=_0x39fe8c;let _0x43cd61=this[_0x635a67(0x4ee)](_0x44939a);_0x43cd61&&(_0x43cd61[_0x635a67(0x369)]=0x0,this[_0x635a67(0x4b9)]());}[_0x39fe8c(0x45f)](_0x3199b2){const _0x41b2c6=_0x39fe8c;let _0x79f819=this['_getRedoStack'](_0x3199b2);_0x79f819&&(_0x79f819[_0x41b2c6(0x369)]=0x0,this[_0x41b2c6(0x4b9)]());}[_0x39fe8c(0x402)](_0x895bcf,_0x5e97a0){const _0x1bd8dd=_0x39fe8c;this['_undoStacks'][_0x1bd8dd(0x4c0)](_0x895bcf,_0x5e97a0),this[_0x1bd8dd(0x4b9)]();}[_0x39fe8c(0x279)](_0x40753b,_0x393df4){const _0xd5aa8d=_0x39fe8c;this[_0xd5aa8d(0x2ad)][_0xd5aa8d(0x4c0)](_0x40753b,_0x393df4),this[_0xd5aa8d(0x4b9)]();}[_0x39fe8c(0x343)](_0x1947b1,_0x10e47d){const _0x3096ef=_0x39fe8c;let _0x2600be=[],_0x3ba7fd=_0x10e47d,_0x416f7d=_0x10e47d;for(let _0x5b079c=_0x1947b1[_0x3096ef(0x369)]-0x1;_0x5b079c>=0x0;_0x5b079c--){let {unitID:_0xc8c2ac,undoMutations:_0x102328,redoMutations:_0x32f9be}=_0x1947b1[_0x5b079c],_0x27bbcd=this[_0x3096ef(0x245)][_0x3096ef(0x289)](_0x3ba7fd,_0x102328),_0x545355=this[_0x3096ef(0x245)][_0x3096ef(0x289)](_0x416f7d,_0x32f9be);if((0x0,_0x58a81f[_0x3096ef(0x3f4)])(_0x27bbcd)||(0x0,_0x58a81f[_0x3096ef(0x3f4)])(_0x545355)){this['_logService']['error']('[CollaborationUndoRedoService]',_0x3096ef(0x4fd),_0x27bbcd,_0x545355);break;}_0x3ba7fd=_0x27bbcd['c1Prime'],_0x416f7d=_0x545355[_0x3096ef(0x307)],_0x2600be[_0x3096ef(0x3dc)]({'unitID':_0xc8c2ac,'undoMutations':_0x27bbcd[_0x3096ef(0x45c)],'redoMutations':_0x545355[_0x3096ef(0x45c)]});}return _0x2600be['reverse']();}};_0x467495=_0xdb6dd9([_0x32d44(0x0,_0xa4b471['IUniverInstanceService']),_0x32d44(0x1,_0xa4b471[_0x39fe8c(0x385)]),_0x32d44(0x2,_0xa4b471['IContextService']),_0x32d44(0x3,_0xa4b471['IConfigService']),_0x32d44(0x4,_0x58a81f[_0x39fe8c(0x49e)]),_0x32d44(0x5,_0xa4b471[_0x39fe8c(0x2b6)])],_0x467495);let _0x44b5bc=class extends _0xa4b471['Plugin']{constructor(_0x5118c4=_0x52746c,_0x35847c,_0x3ac95b,_0x8c085a){const _0x74a2e1=_0x39fe8c;super(),this[_0x74a2e1(0x545)]=_0x5118c4,this[_0x74a2e1(0x30a)]=_0x35847c,this[_0x74a2e1(0x483)]=_0x3ac95b,this['_configService']=_0x8c085a;let {..._0x151517}=(0x0,_0xa4b471['merge'])({},_0x52746c,this[_0x74a2e1(0x545)]);if(!_0x151517[_0x74a2e1(0x51a)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this[_0x74a2e1(0x545)]=_0x151517,this[_0x74a2e1(0x481)]['setConfig'](_0x5ceae9,_0x151517);}[_0x39fe8c(0x389)](){const _0x1f8adf=_0x39fe8c;this[_0x1f8adf(0x481)][_0x1f8adf(0x2a1)](_0xa4b471[_0x1f8adf(0x506)],this[_0x1f8adf(0x545)][_0x1f8adf(0x2c0)]??[]),this[_0x1f8adf(0x4a6)](),this[_0x1f8adf(0x3e0)]();}[_0x39fe8c(0x4a6)](){const _0x3d75fe=_0x39fe8c;var _0x17f298,_0x45cf02;this['_injector'][_0x3d75fe(0x332)](_0xa4b471[_0x3d75fe(0x51e)])&&this[_0x3d75fe(0x30a)][_0x3d75fe(0x29b)](_0x3d75fe(0x3cd),_0x3d75fe(0x361));let _0x51307e=(0x0,_0xa4b471[_0x3d75fe(0x215)])([[_0xa4b471[_0x3d75fe(0x51e)],{'useClass':_0x467495}],[_0x4f7778,{'useValue':_0xf731aa()}],[_0x216287],[_0xe297ca],[_0x3c187c],[_0x45243a],[_0x584d5c],[_0x20a6d6],[_0x54799c],[_0x559d58],[_0x3db78d],[_0x1fb657,{'useClass':this[_0x3d75fe(0x545)][_0x3d75fe(0x51a)]}],[_0x58a81f[_0x3d75fe(0x35d)],{'useClass':_0x539721}],[_0xa4b471['IAuthzIoService'],{'useClass':_0x341744}],[_0xa4b471[_0x3d75fe(0x2f2)],{'useClass':_0x500a35}],[_0x4697c2,{'useClass':_0x57e3eb}],[_0xa4b471[_0x3d75fe(0x4b8)],{'useClass':_0x516f26}],[_0x198b78],[_0x46e496]],(_0x17f298=this[_0x3d75fe(0x545)])==null?void 0x0:_0x17f298[_0x3d75fe(0x2e7)]);if(!((_0x45cf02=this['_config'])!=null&&_0x45cf02[_0x3d75fe(0x253)])){let _0x2af1e6=_0x51307e[_0x3d75fe(0x2c3)](([_0x1882d5])=>_0x1882d5===_0x117313);_0x2af1e6!==-0x1&&_0x51307e[_0x3d75fe(0x3ae)](_0x2af1e6,0x1);}(0x0,_0xa4b471[_0x3d75fe(0x527)])(this['_injector'],_0x51307e);}[_0x39fe8c(0x3e0)](){const _0x51c095=_0x39fe8c;var _0x1d8da9,_0x5f40f5;if(this['_injector'][_0x51c095(0x512)](_0x34e285[_0x51c095(0x425)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,_0x34e285[_0x51c095(0x3ce)])({'maxParallel':0x6})}),!((_0x1d8da9=this['_config'])!=null&&_0x1d8da9[_0x51c095(0x2f9)])){var _0x3b897f;(_0x3b897f=this[_0x51c095(0x483)][_0x51c095(0x512)](_0x4ed09e,_0xa4b471[_0x51c095(0x2c1)][_0x51c095(0x41a)]))==null||_0x3b897f['disableLocalCache']();}(_0x5f40f5=this['_config'])!=null&&_0x5f40f5['enableAuthServer']&&(0x0,_0xa4b471[_0x51c095(0x50c)])(this[_0x51c095(0x483)],[[_0x45243a]]),(0x0,_0xa4b471['touchDependencies'])(this[_0x51c095(0x483)],[[_0x584d5c],[_0x198b78],[_0x54799c]]);}};_0x2f2d1e(_0x44b5bc,_0x39fe8c(0x4b2),_0x39fe8c(0x2a7)),_0x2f2d1e(_0x44b5bc,_0x39fe8c(0x234),_0x177b3a),_0x2f2d1e(_0x44b5bc,_0x39fe8c(0x21b),_0x268aa0),_0x44b5bc=_0xdb6dd9([(0x0,_0xa4b471[_0x39fe8c(0x220)])(_0x1a80fc[_0x39fe8c(0x417)],_0x34e285[_0x39fe8c(0x51c)],_0x58a81f['UniverCollaborationPlugin']),_0x32d44(0x1,_0xa4b471[_0x39fe8c(0x2b6)]),_0x32d44(0x2,(0x0,_0xa4b471['Inject'])(_0xa4b471[_0x39fe8c(0x409)])),_0x32d44(0x3,_0xa4b471['IConfigService'])],_0x44b5bc),Object['defineProperty'](_0x45e412,_0x39fe8c(0x412),{'enumerable':!0x0,'get':function(){return _0x341744;}}),Object[_0x39fe8c(0x2e3)](_0x45e412,'AwaitingState',{'enumerable':!0x0,'get':function(){return _0xf2dbd3;}}),Object['defineProperty'](_0x45e412,_0x39fe8c(0x446),{'enumerable':!0x0,'get':function(){return _0x196fce;}}),Object['defineProperty'](_0x45e412,'BaseCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x33043c;}}),Object[_0x39fe8c(0x2e3)](_0x45e412,_0x39fe8c(0x330),{'enumerable':!0x0,'get':function(){return _0xb9f2c4;}}),_0x45e412['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=_0x5ceae9,Object[_0x39fe8c(0x2e3)](_0x45e412,_0x39fe8c(0x338),{'enumerable':!0x0,'get':function(){return _0x57e3eb;}}),Object['defineProperty'](_0x45e412,_0x39fe8c(0x384),{'enumerable':!0x0,'get':function(){return _0x198b78;}}),Object['defineProperty'](_0x45e412,'CollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x54d84e;}}),Object['defineProperty'](_0x45e412,_0x39fe8c(0x262),{'enumerable':!0x0,'get':function(){return _0x500a35;}}),Object[_0x39fe8c(0x2e3)](_0x45e412,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x527586;}}),Object['defineProperty'](_0x45e412,_0x39fe8c(0x3e4),{'enumerable':!0x0,'get':function(){return _0x216287;}}),Object[_0x39fe8c(0x2e3)](_0x45e412,_0x39fe8c(0x2b7),{'enumerable':!0x0,'get':function(){return _0x1d3bd2;}}),_0x45e412[_0x39fe8c(0x277)]=_0x13e570,_0x45e412[_0x39fe8c(0x1f1)]=_0x31dc48,_0x45e412[_0x39fe8c(0x25b)]=_0x559d58,Object[_0x39fe8c(0x2e3)](_0x45e412,_0x39fe8c(0x44b),{'enumerable':!0x0,'get':function(){return _0x467495;}}),_0x45e412['CommentService']=_0x20a6d6,Object['defineProperty'](_0x45e412,_0x39fe8c(0x405),{'enumerable':!0x0,'get':function(){return _0x13298a;}}),_0x45e412['DEFAULT_COLLAB_WEB_SOCKET_URL']='ws://127.0.0.1:8000/universer-api/comb/connect',_0x45e412[_0x39fe8c(0x426)]=_0x39fe8c(0x539),_0x45e412['DEFAULT_WS_SESSION_TICKET_URL']=_0x39fe8c(0x30d),Object['defineProperty'](_0x45e412,_0x39fe8c(0x1ec),{'enumerable':!0x0,'get':function(){return _0x3db78d;}}),Object[_0x39fe8c(0x2e3)](_0x45e412,_0x39fe8c(0x22d),{'enumerable':!0x0,'get':function(){return _0x516850;}}),Object[_0x39fe8c(0x2e3)](_0x45e412,_0x39fe8c(0x334),{'enumerable':!0x0,'get':function(){return _0x4016f9;}}),_0x45e412[_0x39fe8c(0x27d)]=_0x39fe8c(0x47a),_0x45e412[_0x39fe8c(0x36e)]=_0x39fe8c(0x44f),_0x45e412[_0x39fe8c(0x248)]=_0x4697c2,_0x45e412[_0x39fe8c(0x34f)]=_0x4f7778,_0x45e412[_0x39fe8c(0x533)]=_0x1fb657,_0x45e412['ILocalCacheService']=_0x4ed09e,_0x45e412['INetworkConditionService']=_0x30fdbb,_0x45e412['ISingleActiveUnitService']=_0x117313,_0x45e412['LOCAL_CACHE_INTERVAL']=0x3e8,_0x45e412[_0x39fe8c(0x346)]='LOCAL_CACHE_INTERVAL',Object[_0x39fe8c(0x2e3)](_0x45e412,'MemberService',{'enumerable':!0x0,'get':function(){return _0xe297ca;}}),Object[_0x39fe8c(0x2e3)](_0x45e412,_0x39fe8c(0x4d9),{'enumerable':!0x0,'get':function(){return _0x516f26;}}),Object['defineProperty'](_0x45e412,_0x39fe8c(0x47d),{'enumerable':!0x0,'get':function(){return _0x46544f;}}),Object['defineProperty'](_0x45e412,_0x39fe8c(0x4da),{'enumerable':!0x0,'get':function(){return _0x597493;}}),Object[_0x39fe8c(0x2e3)](_0x45e412,_0x39fe8c(0x313),{'enumerable':!0x0,'get':function(){return _0x14c1a2;}}),_0x45e412[_0x39fe8c(0x22c)]=_0x39fe8c(0x23b),_0x45e412[_0x39fe8c(0x260)]=_0x39fe8c(0x236),_0x45e412['SessionStatus']=_0xb666ab,Object[_0x39fe8c(0x2e3)](_0x45e412,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x5aead8;}}),Object['defineProperty'](_0x45e412,'SheetTransformSelectionsService',{'enumerable':!0x0,'get':function(){return _0x3c187c;}}),Object['defineProperty'](_0x45e412,_0x39fe8c(0x3a5),{'enumerable':!0x0,'get':function(){return _0x20e643;}}),Object[_0x39fe8c(0x2e3)](_0x45e412,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return _0x539721;}}),Object[_0x39fe8c(0x2e3)](_0x45e412,'SyncedState',{'enumerable':!0x0,'get':function(){return _0x4590f6;}}),_0x45e412[_0x39fe8c(0x2fd)]=_0x5dc224,Object[_0x39fe8c(0x2e3)](_0x45e412,'UniverCollaborationClientPlugin',{'enumerable':!0x0,'get':function(){return _0x44b5bc;}}),_0x45e412[_0x39fe8c(0x519)]=_0xf731aa,_0x45e412['deserializeToCombResponse']=_0x5e6b17,_0x45e412[_0x39fe8c(0x3a8)]=_0x84cfe6,_0x45e412[_0x39fe8c(0x35f)]=_0x23efc4;}));
|