@univerjs-pro/collaboration-client 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
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 _0x41d6(_0x2b215a,_0x4b7fb4){_0x2b215a=_0x2b215a-0x161;const _0x27bb4a=_0x27bb();let _0x41d686=_0x27bb4a[_0x2b215a];return _0x41d686;}(function(_0x183c3c,_0x37727b){const _0xec197c=_0x41d6,_0x45ffb5=_0x183c3c();while(!![]){try{const _0x377a20=parseInt(_0xec197c(0x496))/0x1+-parseInt(_0xec197c(0x24c))/0x2*(parseInt(_0xec197c(0x331))/0x3)+parseInt(_0xec197c(0x301))/0x4+-parseInt(_0xec197c(0x472))/0x5*(-parseInt(_0xec197c(0x427))/0x6)+parseInt(_0xec197c(0x212))/0x7*(parseInt(_0xec197c(0x479))/0x8)+-parseInt(_0xec197c(0x3d2))/0x9*(-parseInt(_0xec197c(0x2fd))/0xa)+-parseInt(_0xec197c(0x374))/0xb*(-parseInt(_0xec197c(0x45a))/0xc);if(_0x377a20===_0x37727b)break;else _0x45ffb5['push'](_0x45ffb5['shift']());}catch(_0x41085a){_0x45ffb5['push'](_0x45ffb5['shift']());}}}(_0x27bb,0xdaefe),function(_0x421e6b,_0xd3165){const _0x5620c6=_0x41d6;typeof exports=='object'&&typeof module<'u'?_0xd3165(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([_0x5620c6(0x3bc),'@univerjs-pro/collaboration',_0x5620c6(0x450),'@univerjs/docs',_0x5620c6(0x194),_0x5620c6(0x435),'@univerjs/protocol',_0x5620c6(0x430),_0x5620c6(0x2aa),_0x5620c6(0x3be),_0x5620c6(0x3c0),_0x5620c6(0x43a),_0x5620c6(0x291)],_0xd3165):(_0x421e6b=typeof globalThis<'u'?globalThis:_0x421e6b||self,_0xd3165(_0x421e6b[_0x5620c6(0x407)]={},_0x421e6b[_0x5620c6(0x42c)],_0x421e6b['UniverCore'],_0x421e6b[_0x5620c6(0x495)],_0x421e6b['UniverSheets'],_0x421e6b[_0x5620c6(0x435)],_0x421e6b['UniverProtocol'],_0x421e6b[_0x5620c6(0x39b)],_0x421e6b['rxjs']['operators'],_0x421e6b[_0x5620c6(0x209)],_0x421e6b['UniverNetwork'],_0x421e6b['UniverProLicense'],_0x421e6b['UniverDrawing']));}(this,function(_0x1d5fa1,_0x18ba1c,_0x78cf9f,_0x14832f,_0x1c5171,_0x42b37f,_0x1521ba,_0x475705,_0x30b86b,_0x5773b7,_0x4de411,_0x25a327,_0x3b803d){const _0x4ca2ee=_0x41d6;Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,Symbol['toStringTag'],{'value':_0x4ca2ee(0x48e)});let _0x16372d=_0x4ca2ee(0x27b),_0x3e7167={};function _0x243140(_0x3770a2){const _0x50ba54=_0x4ca2ee;return JSON[_0x50ba54(0x2cf)](_0x3770a2)[_0x50ba54(0x452)];}function _0x1a758a(_0x475e37){'@babel/helpers - typeof';const _0x4c6554=_0x4ca2ee;return _0x1a758a=typeof Symbol==_0x4c6554(0x4bc)&&typeof Symbol[_0x4c6554(0x18e)]==_0x4c6554(0x35d)?function(_0x2b2263){return typeof _0x2b2263;}:function(_0x31c368){const _0x320c97=_0x4c6554;return _0x31c368&&typeof Symbol==_0x320c97(0x4bc)&&_0x31c368[_0x320c97(0x247)]===Symbol&&_0x31c368!==Symbol['prototype']?'symbol':typeof _0x31c368;},_0x1a758a(_0x475e37);}function _0x24113a(_0x188c14,_0x34bb11){const _0x1e53d2=_0x4ca2ee;if(_0x1a758a(_0x188c14)!=_0x1e53d2(0x369)||!_0x188c14)return _0x188c14;var _0x3e95b0=_0x188c14[Symbol['toPrimitive']];if(_0x3e95b0!==void 0x0){var _0x5ad2c7=_0x3e95b0[_0x1e53d2(0x3da)](_0x188c14,_0x34bb11||_0x1e53d2(0x1b0));if(_0x1a758a(_0x5ad2c7)!=_0x1e53d2(0x369))return _0x5ad2c7;throw TypeError(_0x1e53d2(0x22a));}return(_0x34bb11===_0x1e53d2(0x4b5)?String:Number)(_0x188c14);}function _0x4d960e(_0x4cead5){const _0x109078=_0x4ca2ee;var _0x1ffc07=_0x24113a(_0x4cead5,_0x109078(0x4b5));return _0x1a758a(_0x1ffc07)==_0x109078(0x35d)?_0x1ffc07:_0x1ffc07+'';}function _0x4f9d46(_0x578b71,_0xa5373b,_0x5843ad){const _0x458903=_0x4ca2ee;return(_0xa5373b=_0x4d960e(_0xa5373b))in _0x578b71?Object[_0x458903(0x4d4)](_0x578b71,_0xa5373b,{'value':_0x5843ad,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x578b71[_0xa5373b]=_0x5843ad,_0x578b71;}let _0x6788f8=function(_0x583951){const _0x35674f=_0x4ca2ee;return _0x583951[_0x35674f(0x33c)]=_0x35674f(0x33c),_0x583951[_0x35674f(0x2ae)]=_0x35674f(0x2ae),_0x583951[_0x35674f(0x1d4)]='CONFLICT_PROCESSING',_0x583951[_0x35674f(0x27f)]='CONFLICT_CACHE_CLEAR_FAILED',_0x583951[_0x35674f(0x21a)]=_0x35674f(0x21a),_0x583951['CLOSE_ROOM']='CLOSE_ROOM',_0x583951['JOIN_ROOM_FAILED']='JOIN_ROOM_FAILED',_0x583951['SOCKET_FAILED_RETRY']=_0x35674f(0x484),_0x583951['SOCKET_FAILED']=_0x35674f(0x210),_0x583951[_0x35674f(0x3bf)]=_0x35674f(0x3bf),_0x583951;}({});var _0x5604f6=class{constructor(){const _0x378580=_0x4ca2ee;_0x4f9d46(this,_0x378580(0x2fc),new _0x42b37f[(_0x378580(0x20c))]()),_0x4f9d46(this,_0x378580(0x43b),this['_event$']['asObservable']());}[_0x4ca2ee(0x17d)](_0x195b68){this['_event$']['next'](_0x195b68);}},_0x2ee3ef=class{constructor(){const _0x29a03a=_0x4ca2ee;_0x4f9d46(this,_0x29a03a(0x47b),new _0x42b37f[(_0x29a03a(0x20c))]()),_0x4f9d46(this,_0x29a03a(0x497),this[_0x29a03a(0x47b)]['asObservable']());}[_0x4ca2ee(0x281)](_0x295987){this['_commentUpdate$']['next'](_0x295987);}};function _0x51b612(_0x1d4de6,_0x1d5c93){return function(_0x389903,_0x16f759){_0x1d5c93(_0x389903,_0x16f759,_0x1d4de6);};}function _0x182061(_0x17ea96,_0xb5d695,_0x144cf9,_0x262c53){const _0x5cbc43=_0x4ca2ee;var _0x2c1ff8=arguments['length'],_0x56d31b=_0x2c1ff8<0x3?_0xb5d695:_0x262c53===null?_0x262c53=Object[_0x5cbc43(0x47f)](_0xb5d695,_0x144cf9):_0x262c53,_0x2e7956;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x5cbc43(0x4bc))_0x56d31b=Reflect['decorate'](_0x17ea96,_0xb5d695,_0x144cf9,_0x262c53);else{for(var _0x4345f0=_0x17ea96[_0x5cbc43(0x452)]-0x1;_0x4345f0>=0x0;_0x4345f0--)(_0x2e7956=_0x17ea96[_0x4345f0])&&(_0x56d31b=(_0x2c1ff8<0x3?_0x2e7956(_0x56d31b):_0x2c1ff8>0x3?_0x2e7956(_0xb5d695,_0x144cf9,_0x56d31b):_0x2e7956(_0xb5d695,_0x144cf9))||_0x56d31b);}return _0x2c1ff8>0x3&&_0x56d31b&&Object[_0x5cbc43(0x4d4)](_0xb5d695,_0x144cf9,_0x56d31b),_0x56d31b;}let _0x232b7e=class extends _0x78cf9f[_0x4ca2ee(0x3b4)]{constructor(_0x1e0f78){const _0x547df3=_0x4ca2ee;super(),this[_0x547df3(0x3fa)]=_0x1e0f78,_0x4f9d46(this,_0x547df3(0x1c3),new Map()),_0x4f9d46(this,'_roomCreated$',new _0x42b37f[(_0x547df3(0x20c))]()),this[_0x547df3(0x2f7)]((0x0,_0x42b37f['merge'])(this['_univerInstanceService'][_0x547df3(0x425)](_0x78cf9f[_0x547df3(0x4a8)][_0x547df3(0x220)])['pipe']((0x0,_0x30b86b[_0x547df3(0x2b8)])(_0x4e285b=>_0x4e285b['getUnitId']())),this[_0x547df3(0x3fa)][_0x547df3(0x425)](_0x78cf9f[_0x547df3(0x4a8)][_0x547df3(0x40b)])[_0x547df3(0x28c)]((0x0,_0x30b86b[_0x547df3(0x2b8)])(_0x165c4d=>_0x165c4d[_0x547df3(0x3f8)]())),this[_0x547df3(0x3fa)][_0x547df3(0x425)](_0x78cf9f[_0x547df3(0x4a8)]['UNIVER_BOARD'])[_0x547df3(0x28c)]((0x0,_0x30b86b['map'])(_0x75f8e6=>_0x75f8e6[_0x547df3(0x3f8)]())),this[_0x547df3(0x3fa)][_0x547df3(0x425)](_0x78cf9f[_0x547df3(0x4a8)][_0x547df3(0x2ed)])['pipe']((0x0,_0x30b86b['map'])(_0x41b6df=>_0x41b6df[_0x547df3(0x3f8)]())))['subscribe'](_0x1b3911=>this[_0x547df3(0x2ea)](_0x1b3911)));}[_0x4ca2ee(0x3d0)](_0x36dd39){const _0x1b831a=_0x4ca2ee;return this[_0x1b831a(0x1c3)][_0x1b831a(0x32f)](_0x36dd39)?(0x0,_0x42b37f['of'])(this[_0x1b831a(0x1c3)][_0x1b831a(0x42a)](_0x36dd39)):this[_0x1b831a(0x232)]['pipe']((0x0,_0x30b86b[_0x1b831a(0x2b8)])(_0x2255a4=>{const _0xb4ac9=_0x1b831a;if(_0x2255a4===_0x36dd39)return this[_0xb4ac9(0x1c3)][_0xb4ac9(0x42a)](_0x2255a4);}));}[_0x4ca2ee(0x246)](_0x2a9fe3,_0x4105e0){const _0x18de48=_0x4ca2ee;let _0xe567c6=this[_0x18de48(0x1c3)][_0x18de48(0x42a)](_0x2a9fe3);_0xe567c6||(_0xe567c6=new _0x2b7a6d(),this[_0x18de48(0x1c3)][_0x18de48(0x3e8)](_0x2a9fe3,_0xe567c6),this[_0x18de48(0x232)][_0x18de48(0x1b5)](_0x2a9fe3)),_0xe567c6[_0x18de48(0x246)](_0x4105e0);}[_0x4ca2ee(0x3d1)](_0x4152fa,_0x16ac35){const _0x58af22=_0x4ca2ee;let _0x1baf5=this['_roomMembers'][_0x58af22(0x42a)](_0x4152fa);_0x1baf5&&_0x1baf5[_0x58af22(0x3d1)](_0x16ac35);}[_0x4ca2ee(0x251)](_0x44dddc){const _0x5f1909=_0x4ca2ee;return this['_roomMembers'][_0x5f1909(0x42a)](_0x44dddc);}[_0x4ca2ee(0x440)](_0x5d6eb0,_0x3a54f4){const _0x21f2cc=_0x4ca2ee;let _0xeab62d=this[_0x21f2cc(0x1c3)][_0x21f2cc(0x42a)](_0x5d6eb0);if(_0xeab62d)return _0xeab62d[_0x21f2cc(0x440)](_0x3a54f4);}['_removeRoom'](_0x88da6c){const _0x3538b8=_0x4ca2ee;let _0x39151e=this[_0x3538b8(0x1c3)][_0x3538b8(0x42a)](_0x88da6c);_0x39151e&&(_0x39151e[_0x3538b8(0x48f)](),this[_0x3538b8(0x1c3)][_0x3538b8(0x483)](_0x88da6c));}[_0x4ca2ee(0x48f)](){const _0x310093=_0x4ca2ee;this[_0x310093(0x1c3)][_0x310093(0x1e9)](_0x1e0b39=>_0x1e0b39[_0x310093(0x48f)]()),this[_0x310093(0x1c3)][_0x310093(0x358)](),this[_0x310093(0x232)]['complete']();}};_0x232b7e=_0x182061([_0x51b612(0x0,_0x78cf9f[_0x4ca2ee(0x39a)])],_0x232b7e);var _0x2b7a6d=class extends _0x78cf9f[_0x4ca2ee(0x3b4)]{constructor(..._0x45bd9c){const _0x4127a3=_0x4ca2ee;super(..._0x45bd9c),_0x4f9d46(this,_0x4127a3(0x413),new Map()),_0x4f9d46(this,'_members$',new _0x42b37f[(_0x4127a3(0x43f))](this[_0x4127a3(0x413)])),_0x4f9d46(this,_0x4127a3(0x181),this['_members$'][_0x4127a3(0x4d3)]());}[_0x4ca2ee(0x48f)](){const _0xe8d595=_0x4ca2ee;this[_0xe8d595(0x413)]['clear'](),this[_0xe8d595(0x3b0)][_0xe8d595(0x245)]();}['updateMember'](_0x1268af){const _0x259521=_0x4ca2ee;this[_0x259521(0x413)][_0x259521(0x3e8)](_0x1268af['memberID'],_0x1268af),this[_0x259521(0x49b)]();}[_0x4ca2ee(0x3d1)](_0x1d1e2e){const _0x4c019b=_0x4ca2ee;this[_0x4c019b(0x413)]['delete'](_0x1d1e2e),this[_0x4c019b(0x49b)]();}[_0x4ca2ee(0x440)](_0x379f05){const _0x42683f=_0x4ca2ee;return this[_0x42683f(0x413)][_0x42683f(0x42a)](_0x379f05);}['getAllMembers'](){const _0x261807=_0x4ca2ee;return Array[_0x261807(0x317)](this[_0x261807(0x413)]['values']());}[_0x4ca2ee(0x49b)](){const _0x4c9ba7=_0x4ca2ee;this[_0x4c9ba7(0x3b0)]['next'](this[_0x4c9ba7(0x413)]);}};function _0x42c747(_0xeac5b,_0x50a75b){const _0x4c124f=_0x4ca2ee;if(_0x5b0242(_0xeac5b))return _0x50a75b;if(_0x50a75b[_0x4c124f(0x34b)]===_0x18ba1c[_0x4c124f(0x3aa)]['SUBMIT_CHANGESET']){let _0x3d371f=_0x9efdad(_0xeac5b),_0x1e7b43=_0x50a75b;return{..._0x1e7b43,'data':{..._0x1e7b43['data'],'unitID':_0xeac5b[_0x4c124f(0x4b1)][_0x4c124f(0x4d2)],'unitType':_0xeac5b['target'][_0x4c124f(0x29d)]??_0x1e7b43['data'][_0x4c124f(0x29d)],'changeset':_0x3d371f['toRemote'](_0x1e7b43[_0x4c124f(0x3d6)][_0x4c124f(0x44e)],_0x34f75a(_0xeac5b))}};}if(_0x50a75b[_0x4c124f(0x34b)]===_0x18ba1c[_0x4c124f(0x3aa)][_0x4c124f(0x249)]){let _0xd405d=_0x50a75b;return{..._0xd405d,'data':{..._0xd405d[_0x4c124f(0x3d6)],'unitID':_0xeac5b[_0x4c124f(0x4b1)][_0x4c124f(0x4d2)],'unitType':_0xeac5b[_0x4c124f(0x4b1)]['unitType']??_0xd405d[_0x4c124f(0x3d6)][_0x4c124f(0x29d)]}};}return _0x50a75b;}function _0x5d491f(_0x1eeae8,_0xe0c18d){const _0x440d58=_0x4ca2ee;if(_0x5b0242(_0x1eeae8))return[_0xe0c18d];switch(_0xe0c18d[_0x440d58(0x34b)]){case _0x18ba1c[_0x440d58(0x3aa)][_0x440d58(0x277)]:return[_0x4db98e(_0x1eeae8,_0xe0c18d)];case _0x18ba1c['CollaborationEvent'][_0x440d58(0x34a)]:return[_0x224919(_0x1eeae8,_0xe0c18d)];case _0x18ba1c[_0x440d58(0x3aa)]['CHANGESET_SHOULD_RETRY']:return[_0x1eb0a9(_0x1eeae8,_0xe0c18d)];default:return[_0xe0c18d];}}function _0x5b0242(_0x5f0b8f){const _0x2a29fc=_0x4ca2ee;return _0x5f0b8f['target'][_0x2a29fc(0x297)]==null&&_0x5f0b8f[_0x2a29fc(0x4b1)][_0x2a29fc(0x4d2)]===_0x5f0b8f[_0x2a29fc(0x226)]&&!_0x5f0b8f[_0x2a29fc(0x44e)];}function _0x4db98e(_0x1a85f2,_0x447c2e){const _0x48dae8=_0x4ca2ee;return{..._0x447c2e,'data':(0x0,_0x18ba1c[_0x48dae8(0x480)])(_0x325ba3(_0x1a85f2,(0x0,_0x18ba1c['parseProtocolChangeset'])(_0x447c2e[_0x48dae8(0x3d6)])))};}function _0x1eb0a9(_0x423fca,_0x11e439){return{..._0x11e439,'data':_0x325ba3(_0x423fca,_0x11e439['data'])};}function _0x224919(_0x472ec9,_0x3a4798){const _0x3967ab=_0x4ca2ee;let _0x3a73a8=_0x3a4798[_0x3967ab(0x3d6)];return{..._0x3a4798,'data':{..._0x3a73a8,'changesets':_0x3a73a8[_0x3967ab(0x28d)][_0x3967ab(0x2b8)](_0x363565=>(0x0,_0x18ba1c[_0x3967ab(0x480)])(_0x325ba3(_0x472ec9,(0x0,_0x18ba1c[_0x3967ab(0x164)])(_0x363565))))}};}function _0x325ba3(_0x52f53e,_0x29201c){const _0x359b3b=_0x4ca2ee;return _0x9efdad(_0x52f53e)[_0x359b3b(0x412)](_0x29201c,_0x34f75a(_0x52f53e));}function _0x9efdad(_0x21229f){const _0x28ffe0=_0x4ca2ee;if(!_0x21229f['changeset'])throw Error(_0x28ffe0(0x3af));return _0x21229f[_0x28ffe0(0x44e)];}function _0x34f75a(_0x45f17d){const _0x140d72=_0x4ca2ee;return{'localUnitId':_0x45f17d['localUnitId'],'unitType':_0x45f17d[_0x140d72(0x29d)],'target':_0x45f17d[_0x140d72(0x4b1)]};}let _0x6ccffc=function(_0x42b849){const _0x1dd3d0=_0x4ca2ee;return _0x42b849[_0x42b849[_0x1dd3d0(0x399)]=0x0]=_0x1dd3d0(0x399),_0x42b849[_0x42b849['JOINING']=0x1]=_0x1dd3d0(0x17c),_0x42b849[_0x42b849[_0x1dd3d0(0x189)]=0x2]=_0x1dd3d0(0x189),_0x42b849[_0x42b849['ONLINE']=0x3]=_0x1dd3d0(0x345),_0x42b849;}({}),_0x1e4adf={[_0x1521ba['CmdRspCode'][_0x4ca2ee(0x402)]]:_0x4ca2ee(0x23b),[_0x1521ba[_0x4ca2ee(0x2b3)][_0x4ca2ee(0x3a2)]]:_0x4ca2ee(0x248),[_0x1521ba[_0x4ca2ee(0x2b3)][_0x4ca2ee(0x4cf)]]:_0x4ca2ee(0x31b),[_0x1521ba[_0x4ca2ee(0x2b3)]['JOIN_ROOM_PERMISSION_DENIED']]:'session.room-permission-denied',[_0x1521ba[_0x4ca2ee(0x2b3)][_0x4ca2ee(0x2ff)]]:_0x4ca2ee(0x24f)},_0x3a19b6=class extends _0x78cf9f[_0x4ca2ee(0x342)]{get[_0x4ca2ee(0x418)](){const _0x174dce=_0x4ca2ee;return this['_sessionStatus$'][_0x174dce(0x478)]();}constructor(_0x865a6b,_0x4569f3,_0x295c2c,_0x3783de,_0x55eb78,_0x322ade,_0x5aa2bd,_0x558609){const _0x3808e=_0x4ca2ee;super(),this[_0x3808e(0x1a0)]=_0x865a6b,this[_0x3808e(0x290)]=_0x295c2c,this[_0x3808e(0x2b9)]=_0x3783de,this['_memberService']=_0x55eb78,this['_commentService']=_0x322ade,this[_0x3808e(0x286)]=_0x5aa2bd,this[_0x3808e(0x1d2)]=_0x558609,_0x4f9d46(this,_0x3808e(0x2a0),new _0x42b37f[(_0x3808e(0x43f))](0x0)),_0x4f9d46(this,_0x3808e(0x3dd),this[_0x3808e(0x2a0)][_0x3808e(0x4d3)]()),_0x4f9d46(this,_0x3808e(0x2fc),new _0x42b37f[(_0x3808e(0x20c))]()),_0x4f9d46(this,_0x3808e(0x43b),this[_0x3808e(0x2fc)][_0x3808e(0x4d3)]()),_0x4f9d46(this,'_socket',void 0x0),_0x4f9d46(this,_0x3808e(0x3f2),void 0x0),_0x4f9d46(this,_0x3808e(0x168),void 0x0),_0x4f9d46(this,_0x3808e(0x33b),!0x1),_0x4f9d46(this,'_telemetryInfo',null),this['_shouldReportTelemetry']=!!this[_0x3808e(0x1d2)],_0x4569f3['pipe']((0x0,_0x42b37f[_0x3808e(0x381)])(this['dispose$']))[_0x3808e(0x3ae)](_0x1c803b=>{const _0x152733=_0x3808e;if(_0x1c803b!==void 0x0){if(this[_0x152733(0x2de)]=_0x1c803b,_0x1c803b)this[_0x152733(0x362)](_0x1c803b),this[_0x152733(0x3f2)]=_0x1c803b[_0x152733(0x37c)][_0x152733(0x3ae)](_0x244565=>{const _0x1bd3fd=_0x152733;_0x244565[_0x1bd3fd(0x1bc)]===this[_0x1bd3fd(0x1a0)]['target'][_0x1bd3fd(0x4d2)]&&this[_0x1bd3fd(0x4bf)](_0x244565);});else{var _0x3910f0;this[_0x152733(0x211)](),this[_0x152733(0x2a0)][_0x152733(0x1b5)](0x2),(_0x3910f0=this['_socketMessageSubscription'])==null||_0x3910f0[_0x152733(0x3f6)](),this[_0x152733(0x3f2)]=null;}}});}[_0x4ca2ee(0x4ca)](){const _0x31fc0a=_0x4ca2ee;var _0x3cd041;return((_0x3cd041=this[_0x31fc0a(0x2de)])==null?void 0x0:_0x3cd041[_0x31fc0a(0x458)])??null;}[_0x4ca2ee(0x48f)](){const _0x53ead2=_0x4ca2ee;super[_0x53ead2(0x48f)](),this[_0x53ead2(0x426)](),this[_0x53ead2(0x32d)][_0x53ead2(0x1b5)](),this['dispose$'][_0x53ead2(0x245)]();}['close'](){const _0x101a7e=_0x4ca2ee;var _0x14d43c;this[_0x101a7e(0x211)](),(_0x14d43c=this[_0x101a7e(0x2de)])==null||_0x14d43c[_0x101a7e(0x432)]({'cmd':_0x1521ba[_0x101a7e(0x382)]['LEAVE'],'data':{'roomID':this[_0x101a7e(0x1a0)]['target'][_0x101a7e(0x4d2)]}}),this[_0x101a7e(0x2fc)][_0x101a7e(0x245)](),this[_0x101a7e(0x2a0)]['complete']();}['_onCombEvent'](_0x1c6b57){const _0xfcf2c8=_0x4ca2ee;_0x1c6b57[_0xfcf2c8(0x3ba)]===_0x1521ba[_0xfcf2c8(0x382)][_0xfcf2c8(0x45b)]?this[_0xfcf2c8(0x170)](_0x1c6b57):_0x1c6b57[_0xfcf2c8(0x3ba)]===_0x1521ba[_0xfcf2c8(0x382)][_0xfcf2c8(0x215)]&&this[_0xfcf2c8(0x485)](_0x1c6b57);}['_joinRoom'](_0x10bde0){const _0x21864f=_0x4ca2ee;this[_0x21864f(0x2a0)]['next'](0x1),_0x10bde0[_0x21864f(0x432)]({'cmd':_0x1521ba[_0x21864f(0x382)][_0x21864f(0x45b)],'routeKey':this[_0x21864f(0x1a0)][_0x21864f(0x4b1)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this[_0x21864f(0x1a0)][_0x21864f(0x4b1)][_0x21864f(0x4d2)]}]}});}[_0x4ca2ee(0x170)](_0xf42469){const _0x542c08=_0x4ca2ee;var _0x2c0201;if(_0xf42469[_0x542c08(0x34c)]in _0x1e4adf){this['_collaborationUIEventService'][_0x542c08(0x17d)]({'id':'JOIN_ROOM_FAILED','data':_0x1e4adf[_0xf42469[_0x542c08(0x34c)]]}),this['_sessionStatus$'][_0x542c08(0x1b5)](0x2);return;}this[_0x542c08(0x2a0)][_0x542c08(0x1b5)](0x3);let _0x5caf99=(_0x2c0201=_0xf42469[_0x542c08(0x3d6)][_0x542c08(0x3dc)][this[_0x542c08(0x1a0)]['target'][_0x542c08(0x4d2)]])==null?void 0x0:_0x2c0201[_0x542c08(0x36f)];_0x5caf99&&_0x5caf99[_0x542c08(0x1e9)](_0x4598c7=>this[_0x542c08(0x2dc)][_0x542c08(0x246)](this[_0x542c08(0x1a0)][_0x542c08(0x226)],_0x4598c7));}[_0x4ca2ee(0x485)](_0x8c6544){const _0xaee2cc=_0x4ca2ee;try{let _0x596862=_0x5d491f(this[_0xaee2cc(0x1a0)],_0x8c6544[_0xaee2cc(0x3d6)]);for(let _0x3bb716 of _0x596862)switch(_0x3bb716[_0xaee2cc(0x34b)]){case _0x18ba1c[_0xaee2cc(0x3aa)][_0xaee2cc(0x2f4)]:this[_0xaee2cc(0x2cd)](_0x3bb716),this[_0xaee2cc(0x2fc)][_0xaee2cc(0x1b5)](_0x3bb716);break;case _0x18ba1c[_0xaee2cc(0x3aa)]['USERS_LEAVE']:this['_onUserLeave'](_0x3bb716),this[_0xaee2cc(0x2fc)][_0xaee2cc(0x1b5)](_0x3bb716);break;case _0x18ba1c[_0xaee2cc(0x3aa)][_0xaee2cc(0x2fb)]:case _0x18ba1c[_0xaee2cc(0x3aa)][_0xaee2cc(0x446)]:this[_0xaee2cc(0x4ce)](),this[_0xaee2cc(0x180)](),this[_0xaee2cc(0x2fc)][_0xaee2cc(0x1b5)](_0x3bb716);break;case _0x18ba1c['CollaborationEvent'][_0xaee2cc(0x4c8)]:this['_logService'][_0xaee2cc(0x2a2)](_0xaee2cc(0x176)+JSON['stringify'](_0x3bb716)),this[_0xaee2cc(0x2fc)][_0xaee2cc(0x1b5)](_0x3bb716);break;case _0x18ba1c['CollaborationEvent']['COMMENT_UPDATE']:this[_0xaee2cc(0x1cc)]['onCommentUpdate'](_0x3bb716[_0xaee2cc(0x3d6)]),this['_event$'][_0xaee2cc(0x1b5)](_0x3bb716);break;default:this[_0xaee2cc(0x2fc)]['next'](_0x3bb716);}}catch(_0x4e4705){this[_0xaee2cc(0x290)][_0xaee2cc(0x2a2)](_0x4e4705,_0x8c6544);}}['_onUserJoin'](_0x226e3b){const _0x3c2ce1=_0x4ca2ee;this[_0x3c2ce1(0x2dc)][_0x3c2ce1(0x246)](this['_identity'][_0x3c2ce1(0x226)],_0x226e3b[_0x3c2ce1(0x3d6)]);}[_0x4ca2ee(0x2b1)](_0x312630){const _0x23280d=_0x4ca2ee;this[_0x23280d(0x2dc)][_0x23280d(0x3d1)](this[_0x23280d(0x1a0)][_0x23280d(0x226)],_0x312630[_0x23280d(0x3d6)][_0x23280d(0x458)]);}async[_0x4ca2ee(0x432)](_0xac5b01,_0x33b190){const _0x1f88d8=_0x4ca2ee;if(this[_0x1f88d8(0x418)]!==0x3||!this[_0x1f88d8(0x2de)])throw Error(_0x1f88d8(0x39f));try{let _0x51d782=_0x42c747(this['_identity'],_0xac5b01);_0x51d782[_0x1f88d8(0x34b)]===_0x18ba1c[_0x1f88d8(0x3aa)]['SUBMIT_CHANGESET']&&(this[_0x1f88d8(0x3f5)](),this[_0x1f88d8(0x393)](_0x51d782)),this[_0x1f88d8(0x2de)]['send']({'cmd':_0x1521ba[_0x1f88d8(0x382)][_0x1f88d8(0x1c2)],'routeKey':this[_0x1f88d8(0x1a0)]['target'][_0x1f88d8(0x4d2)],'routeType':'','data':_0x51d782});}catch(_0x364b39){this[_0x1f88d8(0x290)]['error'](_0x364b39);}}[_0x4ca2ee(0x3f5)](){const _0xff8913=_0x4ca2ee;this[_0xff8913(0x168)]=setTimeout(()=>{const _0x423ca3=_0xff8913;this['_collaborationTimeoutTimer']=null,this[_0x423ca3(0x286)][_0x423ca3(0x17d)]({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this[_0xff8913(0x2b9)][_0xff8913(0x433)](_0xff8913(0x2d2))??0x4e20);}[_0x4ca2ee(0x180)](){const _0x53eef5=_0x4ca2ee;this[_0x53eef5(0x168)]&&=(clearTimeout(this[_0x53eef5(0x168)]),null);}[_0x4ca2ee(0x393)](_0x3a40a7){const _0x512fa4=_0x4ca2ee;if(!this[_0x512fa4(0x33b)])return;let {data:_0x44ca3b}=_0x3a40a7,{unitID:_0x40d3b9,changeset:_0x32e2e8}=_0x44ca3b,{mutations:_0x4f6451,type:_0x49c497}=_0x32e2e8;this[_0x512fa4(0x266)]={'unitId':_0x40d3b9,'type':_0x49c497,'startTime':performance[_0x512fa4(0x4c6)](),'stopTime':0x0,'duration':0x0,'size':_0x243140(_0x4f6451)};}[_0x4ca2ee(0x4ce)](){const _0x436b20=_0x4ca2ee;if(this[_0x436b20(0x33b)]){if(!this['_telemetryInfo']){this[_0x436b20(0x290)][_0x436b20(0x2a2)](_0x436b20(0x30d),'telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo'][_0x436b20(0x260)]=performance[_0x436b20(0x4c6)](),this[_0x436b20(0x266)][_0x436b20(0x2c7)]=this[_0x436b20(0x266)][_0x436b20(0x260)]-this[_0x436b20(0x266)]['startTime'],this[_0x436b20(0x1d2)][_0x436b20(0x25f)]('collaboration_new_changeset',this[_0x436b20(0x266)]),this[_0x436b20(0x266)]=null;}}[_0x4ca2ee(0x211)](){this['_telemetryInfo']=null;}};_0x3a19b6=_0x182061([_0x51b612(0x2,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0x3,_0x78cf9f[_0x4ca2ee(0x178)]),_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x232b7e)),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x2ee3ef)),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6)),_0x51b612(0x7,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x475705[_0x4ca2ee(0x1c6)]))],_0x3a19b6);let _0x1dd414=(0x0,_0x78cf9f[_0x4ca2ee(0x404)])(_0x4ca2ee(0x1fa));function _0x48485d(_0xb737de){const _0x5eb1a9=_0x4ca2ee;return _0x5eb1a9(0x223)+_0xb737de;}function _0x43c0be(_0x245e37){const _0x44061c=_0x4ca2ee;let {unitID:_0x2d5aff,mutations:_0x90e15d}=_0x245e37;return{'unitId':_0x2d5aff,'subUnitId':_0x90e15d[_0x44061c(0x452)]>0x0?_0x90e15d[0x0][_0x44061c(0x21d)]['subUnitId']:null};}let _0x373754=class{constructor(_0x49f185,_0x1ce57a,_0x4c3264){const _0x4a2e8e=_0x4ca2ee;this[_0x4a2e8e(0x3b1)]=_0x49f185,this[_0x4a2e8e(0x1ba)]=_0x1ce57a,this[_0x4a2e8e(0x24d)]=_0x4c3264;}['transformSelections'](_0x850170){const _0x2411d0=_0x4ca2ee;var _0x5b11b1,_0x411cd3;let _0x546093=this[_0x2411d0(0x3b1)][_0x2411d0(0x42a)](_0x1c5171['SheetsSelectionsService']),{unitId:_0x28cdc1,subUnitId:_0xa9677e}=_0x43c0be(_0x850170),_0x40b4d5=_0x546093==null?void 0x0:_0x546093[_0x2411d0(0x3f0)](_0x28cdc1)['getCurrentSelections'](),_0x302ef6=(_0x5b11b1=this[_0x2411d0(0x24d)]['getUnit'](_0x28cdc1))==null||(_0x5b11b1=_0x5b11b1['getActiveSheet']())==null?void 0x0:_0x5b11b1[_0x2411d0(0x40d)]();if(_0x40b4d5[_0x2411d0(0x452)]===0x0||!_0x28cdc1||!_0xa9677e)return;let _0x591f20=[{'id':_0x1c5171[_0x2411d0(0x320)]['id'],'params':{'unitId':_0x28cdc1,'subUnitId':_0x302ef6,'selections':_0x78cf9f['Tools'][_0x2411d0(0x1ea)](_0x40b4d5)}}],_0x93657=this[_0x2411d0(0x1ba)][_0x2411d0(0x2d0)](_0x850170,_0x591f20);if(!(0x0,_0x18ba1c[_0x2411d0(0x464)])(_0x93657))throw _0x93657[_0x2411d0(0x2a2)];let _0x776728=(_0x411cd3=_0x93657[_0x2411d0(0x375)][0x0])==null||(_0x411cd3=_0x411cd3['params'])==null?void 0x0:_0x411cd3[_0x2411d0(0x3a3)];if(Array[_0x2411d0(0x471)](_0x776728)&&_0x776728[_0x2411d0(0x452)]){if(_0x776728[_0x2411d0(0x452)]===_0x591f20[0x0][_0x2411d0(0x21d)]['selections']['length']&&_0x776728['every']((_0x20e31a,_0x57210d)=>_0x78cf9f[_0x2411d0(0x1b9)][_0x2411d0(0x32e)](_0x20e31a[_0x2411d0(0x44d)],_0x591f20[0x0][_0x2411d0(0x21d)][_0x2411d0(0x3a3)][_0x57210d]['range'])))return;this['_injector'][_0x2411d0(0x42a)](_0x78cf9f[_0x2411d0(0x47c)])[_0x2411d0(0x171)](_0x1c5171['SetSelectionsOperation']['id'],{'unitId':_0x28cdc1,'subUnitId':_0x302ef6,'selections':_0x776728});}}};_0x373754=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f['Inject'])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x1,_0x18ba1c[_0x4ca2ee(0x371)]),_0x51b612(0x2,_0x78cf9f[_0x4ca2ee(0x39a)])],_0x373754);let _0x208a4c=(0x0,_0x78cf9f[_0x4ca2ee(0x404)])('univer-pro.collaboration-client.single-active-unit-service'),_0x17e655=function(_0x335ecd){const _0x5e818e=_0x4ca2ee;return _0x335ecd[_0x335ecd[_0x5e818e(0x442)]=0x0]=_0x5e818e(0x442),_0x335ecd[_0x335ecd['OTHER_CLIENTS_EDITING']=0x1]=_0x5e818e(0x460),_0x335ecd;}({});function _0x15532b(_0xb353ae){const _0xb8791e=_0x4ca2ee;var _0x354f7f;return!!((_0x354f7f=_0xb353ae[_0xb8791e(0x21d)])!=null&&_0x354f7f[_0xb8791e(0x233)]);}let _0x28b52f=new Set([_0x1c5171[_0x4ca2ee(0x41f)]['id']]),_0x1b055b=new Set([_0x5773b7[_0x4ca2ee(0x174)]['id'],_0x5773b7[_0x4ca2ee(0x1be)]['id'],_0x5773b7['MoveSlidePageMutation']['id'],_0x5773b7[_0x4ca2ee(0x4c5)]['id']]);function _0x41070d(_0x3d7054,_0x23a5f7=_0x28b52f){const _0x49364c=_0x4ca2ee;let _0x3e996e=[];for(let _0x265b89 of _0x3d7054){if(_0x23a5f7[_0x49364c(0x32f)](_0x265b89['id'])){if(_0x3e996e[_0x49364c(0x452)]>0x0)break;_0x3e996e[_0x49364c(0x204)](_0x265b89);break;}if(_0x15532b(_0x265b89)){if(_0x3e996e[_0x49364c(0x452)]>0x0)break;_0x3e996e[_0x49364c(0x204)](_0x265b89);break;}_0x3e996e[_0x49364c(0x204)](_0x265b89);}return _0x3e996e;}function _0xf17105(_0x167caa,_0x1315e5,_0x5f07b0,_0x50d2e2,_0x172ed3){const _0x1cf802=_0x4ca2ee;let _0x5d11ab=_0x41070d(_0x167caa),_0x170183=_0x172ed3[_0x1cf802(0x219)](),_0x42c4ed=(_0x170183==null?void 0x0:_0x170183[_0x1cf802(0x319)])??_0x1cf802(0x205),_0x48aed4=(_0x170183==null?void 0x0:_0x170183[_0x1cf802(0x458)])??_0x1cf802(0x205);return{'changeset':{'unitID':_0x1315e5,'type':(0x0,_0x18ba1c[_0x1cf802(0x262)])(_0x5f07b0[_0x1cf802(0x408)](_0x1315e5)),'baseRev':_0x50d2e2['getCurrentRevOfUnit'](_0x1315e5),'revision':0x0,'userID':_0x42c4ed,'memberID':_0x48aed4,'mutations':_0x5d11ab},'pendingMutations':_0x167caa['slice'](_0x5d11ab[_0x1cf802(0x452)])};}let _0x3a185a=_0xf17105;function _0x4fbf96(_0x53a4d7,_0x3d0dcc,_0x304980,_0x3e0099,_0x32c5a5){const _0x5a61ce=_0x4ca2ee;let _0x45668d=_0x41070d(_0x53a4d7,_0x1b055b),_0xeeb71e=_0x32c5a5[_0x5a61ce(0x219)](),_0x386865=(_0xeeb71e==null?void 0x0:_0xeeb71e[_0x5a61ce(0x319)])??'unknown',_0x2ca736=(_0xeeb71e==null?void 0x0:_0xeeb71e['memberID'])??_0x5a61ce(0x205);return{'changeset':{'unitID':_0x3d0dcc,'type':(0x0,_0x18ba1c[_0x5a61ce(0x262)])(_0x304980[_0x5a61ce(0x408)](_0x3d0dcc)),'baseRev':_0x3e0099[_0x5a61ce(0x2ec)](_0x3d0dcc),'revision':0x0,'userID':_0x386865,'memberID':_0x2ca736,'mutations':_0x45668d},'pendingMutations':_0x53a4d7['slice'](_0x45668d['length'])};}function _0x2fefe4(_0x2601b1,_0x10d11c,_0x2b2147,_0x2e5491,_0x28396c){const _0x3e023e=_0x4ca2ee;let _0x400c38=_0x2601b1['reduce']((_0x255cf5,_0x4cf5f3)=>{const _0x240d0a=_0x41d6;let _0x77d761=_0x255cf5[_0x255cf5['length']-0x1],{id:_0x1d4f7e}=_0x77d761??{},{id:_0x206295,type:_0x56d278}=_0x4cf5f3,_0x50c437=_0x4cf5f3[_0x240d0a(0x21d)];if(_0x1d4f7e&&_0x1d4f7e!==_0x206295)throw Error(_0x240d0a(0x27d)+_0x1d4f7e+_0x240d0a(0x409)+_0x206295+'.');if(!_0x77d761)return[{'id':_0x206295,'type':_0x56d278,'params':{'unitId':_0x50c437[_0x240d0a(0x4d2)],'textRanges':_0x50c437[_0x240d0a(0x29c)],'actions':_0x50c437['actions']}}];let _0x159415=_0x77d761[_0x240d0a(0x21d)];return _0x29b313(_0x159415,_0x50c437)?[..._0x255cf5['slice'](0x0,-0x1),{..._0x77d761,'id':_0x206295,'type':_0x56d278,'params':{'unitId':_0x50c437['unitId'],'textRanges':_0x50c437[_0x240d0a(0x29c)],'actions':_0x78cf9f[_0x240d0a(0x304)]['compose'](_0x159415['actions'],_0x50c437[_0x240d0a(0x3d5)])}}]:[..._0x255cf5,{'id':_0x206295,'type':_0x56d278,'params':{'unitId':_0x50c437[_0x240d0a(0x4d2)],'textRanges':_0x50c437[_0x240d0a(0x29c)],'actions':_0x50c437['actions']}}];},[]),_0x154f5d=_0x28396c['getCurrentUser'](),_0x4c52ba=(_0x154f5d==null?void 0x0:_0x154f5d['userID'])??_0x3e023e(0x205),_0x1ca246=(_0x154f5d==null?void 0x0:_0x154f5d[_0x3e023e(0x458)])??_0x3e023e(0x205);return{'changeset':{'unitID':_0x10d11c,'type':(0x0,_0x18ba1c[_0x3e023e(0x262)])(_0x2b2147[_0x3e023e(0x408)](_0x10d11c)),'baseRev':_0x2e5491[_0x3e023e(0x2ec)](_0x10d11c),'revision':0x0,'userID':_0x4c52ba,'memberID':_0x1ca246,'mutations':_0x400c38},'pendingMutations':_0x2601b1['slice'](_0x2601b1[_0x3e023e(0x452)])};}function _0x29b313(_0x449a54,_0x159823){const _0x581cad=_0x4ca2ee;return!_0x3ea636(_0x449a54)&&!_0x3ea636(_0x159823)&&_0x638e0a(_0x449a54[_0x581cad(0x3d5)],_0x159823[_0x581cad(0x3d5)]);}function _0x3ea636(_0x44412f){const _0x4df03c=_0x4ca2ee;return _0x44412f[_0x4df03c(0x1da)]!==void 0x0;}function _0x638e0a(_0x3fe5fe,_0x4bf5fc){return _0x570f1f(_0x3fe5fe)&&_0x570f1f(_0x4bf5fc)&&!_0x27c414(_0x3fe5fe)&&!_0x27c414(_0x4bf5fc)&&!_0x336699(_0x3fe5fe)&&!_0x336699(_0x4bf5fc);}function _0x570f1f(_0xce69ac){const _0x4699ad=_0x4ca2ee;return _0x247da0(_0xce69ac)['some'](_0x5be701=>_0x413355(_0x5be701)&&_0x5be701['et']===_0x4699ad(0x1ac));}function _0x336699(_0x57ec88){const _0xddcad1=_0x4ca2ee;return _0x247da0(_0x57ec88)[_0xddcad1(0x4d0)](_0x34de88=>Array[_0xddcad1(0x471)](_0x34de88)||typeof _0x34de88==_0xddcad1(0x4b5)||typeof _0x34de88==_0xddcad1(0x30f));}function _0x27c414(_0xfbe96c){const _0x831d13=_0x4ca2ee;return _0x247da0(_0xfbe96c)[_0x831d13(0x4d0)](_0x52245d=>!_0x413355(_0x52245d)||_0x52245d['et']!==_0x831d13(0x1ac)||!Array[_0x831d13(0x471)](_0x52245d['e'])?!0x1:_0x52245d['e']['some'](_0x541328=>!_0x413355(_0x541328)||!_0x413355(_0x541328[_0x831d13(0x1f0)])?!0x1:Object[_0x831d13(0x356)]['hasOwnProperty'][_0x831d13(0x3da)](_0x541328[_0x831d13(0x1f0)],'tables')||Object['prototype']['hasOwnProperty']['call'](_0x541328['body'],_0x831d13(0x3d9))||Object[_0x831d13(0x356)][_0x831d13(0x414)][_0x831d13(0x3da)](_0x541328[_0x831d13(0x1f0)],_0x831d13(0x1a4))));}function _0x247da0(_0xfc9ca4){const _0x2b4efc=_0x4ca2ee;if(!Array[_0x2b4efc(0x471)](_0xfc9ca4))return[];let _0x4c74ac=_0xfc9ca4[_0x2b4efc(0x35a)](_0x2b4efc(0x1f0))?_0xfc9ca4:_0xfc9ca4[_0x2b4efc(0x224)](_0x4e58b1=>Array[_0x2b4efc(0x471)](_0x4e58b1)&&_0x4e58b1['includes'](_0x2b4efc(0x1f0)));if(!Array[_0x2b4efc(0x471)](_0x4c74ac))return[];let _0x9c410=_0x4c74ac[_0x2b4efc(0x1e4)](_0x2b4efc(0x1f0));return _0x9c410===-0x1?[]:_0x4c74ac['slice'](_0x9c410+0x1);}function _0x413355(_0x1fe292){const _0x50c026=_0x4ca2ee;return typeof _0x1fe292==_0x50c026(0x369)&&!!_0x1fe292&&!Array['isArray'](_0x1fe292);}function _0x29bef8(_0x58ee8e,_0x18031d){const _0x5279d9=_0x4ca2ee;let _0x2bee82=new _0x42b37f[(_0x5279d9(0x405))](0x1);return setTimeout(()=>_0x2bee82[_0x5279d9(0x1b5)](_0x18031d),_0x58ee8e),_0x2bee82[_0x5279d9(0x4d3)]()[_0x5279d9(0x28c)]((0x0,_0x42b37f[_0x5279d9(0x2c0)])(0x1));}var _0x394a45,_0x87f31,_0x23e3eb;let _0x4f2ada=function(_0x199a4d){const _0x5210d4=_0x4ca2ee;return _0x199a4d[_0x5210d4(0x3fe)]=_0x5210d4(0x1e2),_0x199a4d['SYNCED']=_0x5210d4(0x400),_0x199a4d[_0x5210d4(0x337)]='pending',_0x199a4d[_0x5210d4(0x377)]=_0x5210d4(0x27e),_0x199a4d[_0x5210d4(0x44c)]='awaiting_with_pending',_0x199a4d['FETCH_MISS']=_0x5210d4(0x163),_0x199a4d['CONFLICT']='conflict',_0x199a4d[_0x5210d4(0x189)]='offline',_0x199a4d;}({}),_0x43e9ec=0x4e20,_0x106066=0x2bf20;var _0x5db94a=class{constructor(_0x2d55d5,_0x34b7b7,_0x10c80d,_0x31c5a6,_0x37ec09,_0x4e89c9,_0x73cb0b,_0x454161,_0x1d9d83){const _0x567fd7=_0x4ca2ee;this['unitID']=_0x2d55d5,this[_0x567fd7(0x2db)]=_0x34b7b7,this[_0x567fd7(0x4c4)]=_0x37ec09,this[_0x567fd7(0x23d)]=_0x4e89c9,this[_0x567fd7(0x498)]=_0x73cb0b,this['_revisionService']=_0x454161,this['_localCacheService']=_0x1d9d83,_0x4f9d46(this,_0x567fd7(0x185),null),_0x4f9d46(this,'_pendingMutations',[]),this[_0x567fd7(0x185)]=_0x10c80d,this[_0x567fd7(0x1f2)]=_0x31c5a6;}[_0x4ca2ee(0x2d4)](_0x5ee969){const _0x355860=_0x4ca2ee;let _0x53f650=this[_0x355860(0x4d8)]['getCurrentRevOfUnit'](this['unitID']);return _0x5ee969[_0x355860(0x49f)]>_0x53f650+0x1&&(this['_handler'][_0x355860(0x4a3)]({'from':_0x53f650,'to':_0x5ee969[_0x355860(0x49f)]-0x1}),!0x0);}[_0x4ca2ee(0x293)](_0x2aeed5){const _0x55b040=_0x4ca2ee;this[_0x55b040(0x498)][_0x55b040(0x475)](this['unitID'],_0x2aeed5);}['_transformSelections'](_0x109ce8){const _0x2dec17=_0x4ca2ee;var _0x13dd16,_0x4bbac5;(_0x13dd16=(_0x4bbac5=this['_handler'])['onTransformSelections'])==null||_0x13dd16[_0x2dec17(0x3da)](_0x4bbac5,_0x109ce8);}[_0x4ca2ee(0x3e3)](_0x2856aa){const _0x478216=_0x4ca2ee;var _0xa93bfb,_0x143728;return((_0xa93bfb=(_0x143728=this['_handler'])[_0x478216(0x1c0)])==null?void 0x0:_0xa93bfb[_0x478216(0x3da)](_0x143728,_0x2856aa))??null;}['_transformIMECache'](_0x23c97e){const _0x1b45d0=_0x4ca2ee;var _0x1a81b0,_0x243209;return(_0x1a81b0=(_0x243209=this[_0x1b45d0(0x4c4)])[_0x1b45d0(0x357)])==null?void 0x0:_0x1a81b0[_0x1b45d0(0x3da)](_0x243209,_0x23c97e);}[_0x4ca2ee(0x329)](_0xb8c056){const _0x5136ff=_0x4ca2ee;var _0xe9295c,_0x3bea9a;return(_0xe9295c=(_0x3bea9a=this[_0x5136ff(0x4c4)])[_0x5136ff(0x267)])==null?void 0x0:_0xe9295c['call'](_0x3bea9a,_0xb8c056);}['_transformRemoteChangesetByIMECache'](_0x3ddd41){const _0x171656=_0x4ca2ee;var _0x43f361,_0xa70153;return((_0x43f361=(_0xa70153=this[_0x171656(0x4c4)])[_0x171656(0x264)])==null?void 0x0:_0x43f361[_0x171656(0x3da)](_0xa70153,_0x3ddd41))??_0x3ddd41;}['_transformRemoteChangesetByStateCache'](_0xedf924){const _0x3f80b3=_0x4ca2ee;var _0x4de8d6,_0x584ee6;return((_0x4de8d6=(_0x584ee6=this[_0x3f80b3(0x4c4)])[_0x3f80b3(0x214)])==null?void 0x0:_0x4de8d6[_0x3f80b3(0x3da)](_0x584ee6,_0xedf924))??_0xedf924;}[_0x4ca2ee(0x397)](_0x5685d4){const _0x558874=_0x4ca2ee;if(this['type']===_0x78cf9f[_0x558874(0x4a8)][_0x558874(0x40b)]){let {unitID:_0x5eb040,mutations:_0x3119b2,memberID:_0x5e6f81}=_0x5685d4,_0x5b9e52=_0x3119b2['length']>0x0?_0x3119b2[0x0]['params'][_0x558874(0x29c)]:[];if(Array[_0x558874(0x471)](_0x5b9e52)&&_0x5b9e52['length']>0x0){var _0x17ebab,_0x410f5e;(_0x17ebab=(_0x410f5e=this[_0x558874(0x4c4)])[_0x558874(0x1cf)])==null||_0x17ebab[_0x558874(0x3da)](_0x410f5e,{'unitID':_0x5eb040,'memberID':_0x5e6f81,'textRanges':_0x5b9e52});}}}[_0x4ca2ee(0x49e)](){const _0x14cb8e=_0x4ca2ee;var _0x366150;(_0x366150=this['_localCacheService'])==null||_0x366150[_0x14cb8e(0x197)](this[_0x14cb8e(0x272)],this[_0x14cb8e(0x2db)],this['_awaitingChangeset'],this[_0x14cb8e(0x1f2)]);}[_0x4ca2ee(0x470)](){const _0x5e0d7b=_0x4ca2ee;return this[_0x5e0d7b(0x4d8)][_0x5e0d7b(0x2ec)](this[_0x5e0d7b(0x272)]);}['_incrementRevisionNumber'](){const _0x3ee63f=_0x4ca2ee;this[_0x3ee63f(0x4d8)]['incrementRevOfUnit'](this[_0x3ee63f(0x272)]);}['_executeRemoteChangeset'](_0x99a7ea){const _0x39a52f=_0x4ca2ee;let _0x30d68b=this[_0x39a52f(0x392)](_0x99a7ea);_0x30d68b=this['_transformRemoteChangesetByStateCache'](_0x30d68b);let _0x1e4f19=this[_0x39a52f(0x3e3)](_0x30d68b),_0x1e7cdf=(0x0,_0x78cf9f[_0x39a52f(0x2f1)])(_0x30d68b['mutations'],this[_0x39a52f(0x23d)],{'fromCollab':!0x0});if(!_0x1e7cdf[_0x39a52f(0x488)])throw _0x1e4f19==null||_0x1e4f19[_0x39a52f(0x20f)](),_0x1e7cdf['error']instanceof Error?_0x1e7cdf[_0x39a52f(0x2a2)]:Error(_0x1e7cdf['error']??_0x39a52f(0x1e0));_0x1e4f19==null||_0x1e4f19[_0x39a52f(0x28a)](),this[_0x39a52f(0x1ce)](_0x30d68b),this[_0x39a52f(0x329)](_0x30d68b),this['_transformUndoredo'](_0x99a7ea),this[_0x39a52f(0x417)](_0x30d68b),this[_0x39a52f(0x397)](_0x30d68b),this[_0x39a52f(0x18c)]();}};let _0x1aec7f=class extends _0x5db94a{constructor(_0x425a3d,_0x21a671,_0x58adab,_0x59ac07,_0x34b330,_0x3397ec,_0x4c389e,_0x2da2da,_0x52dab1,_0x4e1a18){const _0x1adc71=_0x4ca2ee;super(_0x425a3d,_0x21a671,null,[],_0x58adab,_0x4c389e,_0x3397ec,_0x59ac07,_0x4e1a18),this['_injector']=_0x34b330,this[_0x1adc71(0x290)]=_0x2da2da,this[_0x1adc71(0x1ba)]=_0x52dab1,this['localCacheService']=_0x4e1a18,_0x4f9d46(this,'status',_0x1adc71(0x400));}[_0x4ca2ee(0x461)](_0x588544){const _0x5717e6=_0x4ca2ee;let _0x55e15d=this[_0x5717e6(0x3b1)]['createInstance'](_0x2b8409,this[_0x5717e6(0x272)],this[_0x5717e6(0x2db)],[_0x588544],this['_handler']);return _0x55e15d[_0x5717e6(0x3f7)](),_0x55e15d['_updateLocalCache'](),_0x55e15d;}[_0x4ca2ee(0x439)](_0x379236){const _0x472415=_0x4ca2ee;if(this[_0x472415(0x2d4)](_0x379236))return this[_0x472415(0x3b1)][_0x472415(0x37d)](_0x23ae28,this['unitID'],this[_0x472415(0x2db)],null,[],null,[_0x379236],this[_0x472415(0x4c4)]);try{let _0x7ef04e=this['_transformService'][_0x472415(0x2d0)](_0x379236,[_0x18ba1c[_0x472415(0x490)]]);if((0x0,_0x18ba1c[_0x472415(0x464)])(_0x7ef04e)){let {c1Prime:_0x3a12d4}=_0x7ef04e;return this[_0x472415(0x355)](_0x3a12d4),this;}throw _0x7ef04e[_0x472415(0x2a2)];}catch(_0x2a248c){return this['_logService']['error'](_0x2a248c),this[_0x472415(0x253)](!0x1);}}[_0x4ca2ee(0x253)](_0x52c1eb){const _0x32fd91=_0x4ca2ee;return this[_0x32fd91(0x3b1)][_0x32fd91(0x37d)](_0x2160a7,this[_0x32fd91(0x272)],this[_0x32fd91(0x2db)],null,[],this[_0x32fd91(0x4c4)],_0x52c1eb);}['onRemoteAck'](_0x5b7565){const _0x108b79=_0x4ca2ee;if(_0x5b7565['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x108b79(0x344));}[_0x4ca2ee(0x2e8)](){const _0x3cbcfd=_0x4ca2ee;throw Error(_0x3cbcfd(0x32a));}[_0x4ca2ee(0x40f)](){return this;}[_0x4ca2ee(0x378)](){const _0x27e941=_0x4ca2ee;return this['_injector'][_0x27e941(0x37d)](_0x4522d6,this[_0x27e941(0x272)],this['type'],null,[],this[_0x27e941(0x4c4)]);}[_0x4ca2ee(0x167)](){return this;}[_0x4ca2ee(0x3a6)](){const _0x50b781=_0x4ca2ee;throw Error(_0x50b781(0x4b7));}[_0x4ca2ee(0x3e9)](){const _0x160602=_0x4ca2ee;let _0x19c43a=this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);return this[_0x160602(0x4c4)][_0x160602(0x4a3)]({'from':_0x19c43a,'to':0x0}),this[_0x160602(0x3b1)]['createInstance'](_0x23ae28,this[_0x160602(0x272)],this[_0x160602(0x2db)],null,[],null,[],this[_0x160602(0x4c4)]);}};_0x1aec7f=_0x182061([_0x51b612(0x3,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['Injector'])),_0x51b612(0x5,_0x78cf9f[_0x4ca2ee(0x2ef)]),_0x51b612(0x6,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0x7,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0x8,_0x18ba1c[_0x4ca2ee(0x371)]),_0x51b612(0x9,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x1aec7f);let _0x2b8409=_0x394a45=class extends _0x5db94a{constructor(_0x179a5c,_0x39bcff,_0x2f0e4d,_0x167902,_0x408b88,_0x20b56d,_0x259330,_0x6a1ae5,_0x2579db,_0x3194ba,_0x2bdd32,_0x4d5109,_0x27ead9,_0x5e0eb9){const _0x2ae42c=_0x4ca2ee;super(_0x179a5c,_0x39bcff,null,_0x2f0e4d,_0x167902,_0x2579db,_0x27ead9,_0x20b56d,_0x5e0eb9),this[_0x2ae42c(0x3b1)]=_0x408b88,this[_0x2ae42c(0x445)]=_0x259330,this[_0x2ae42c(0x290)]=_0x6a1ae5,this[_0x2ae42c(0x2b9)]=_0x3194ba,this[_0x2ae42c(0x1ba)]=_0x2bdd32,this['_univerInstanceService']=_0x4d5109,_0x4f9d46(this,_0x2ae42c(0x43c),_0x2ae42c(0x3a0)),_0x4f9d46(this,'_scheduleCompleteTimestamp',null),_0x4f9d46(this,_0x2ae42c(0x2f0),null);}['appendMutation'](_0x47ce51){const _0x30c613=_0x4ca2ee;return this[_0x30c613(0x1f2)][_0x30c613(0x204)](_0x47ce51),this[_0x30c613(0x49e)](),this;}[_0x4ca2ee(0x439)](_0xfa279f){const _0x104d96=_0x4ca2ee;if(this[_0x104d96(0x2d4)](_0xfa279f))return this[_0x104d96(0x2a4)](),this[_0x104d96(0x3b1)][_0x104d96(0x37d)](_0x23ae28,this[_0x104d96(0x272)],this[_0x104d96(0x2db)],null,this[_0x104d96(0x1f2)],null,[_0xfa279f],this[_0x104d96(0x4c4)]);try{let _0x75eb19=this[_0x104d96(0x1ba)][_0x104d96(0x2d0)](_0xfa279f,this['_pendingMutations']);if((0x0,_0x18ba1c[_0x104d96(0x464)])(_0x75eb19)){let {c1Prime:_0x3fe20d,m2Prime:_0x521217}=_0x75eb19;this['_executeRemoteChangeset'](_0x3fe20d);let _0x14245d=this[_0x104d96(0x3b1)][_0x104d96(0x37d)](_0x394a45,this[_0x104d96(0x272)],this['type'],_0x521217,this['_handler']);this[_0x104d96(0x2a4)]();let _0x5e1b2f=new Date()['getTime'](),_0x409144=this['_scheduleCompleteTimestamp']?Math[_0x104d96(0x4aa)](this[_0x104d96(0x3cf)]-_0x5e1b2f,0x0):this[_0x104d96(0x366)]();return _0x14245d['_schedule'](_0x409144),_0x14245d;}throw _0x75eb19[_0x104d96(0x2a2)];}catch(_0x272503){return this[_0x104d96(0x290)][_0x104d96(0x2a2)](_0x272503),this[_0x104d96(0x253)](!0x1);}}['onRemoteAck'](_0x41360){const _0x520462=_0x4ca2ee;if(_0x41360[_0x520462(0x49f)]<=this[_0x520462(0x470)]())return this;throw Error(_0x520462(0x228));}[_0x4ca2ee(0x2e8)](){const _0x4ba86b=_0x4ca2ee;throw Error(_0x4ba86b(0x23a));}['onRemoteRetry'](){return this;}[_0x4ca2ee(0x378)](){const _0x42d5e2=_0x4ca2ee;return this['_clearScheduledTask'](),this[_0x42d5e2(0x3b1)][_0x42d5e2(0x37d)](_0x4522d6,this['unitID'],this['type'],null,this[_0x42d5e2(0x1f2)],this[_0x42d5e2(0x4c4)]);}[_0x4ca2ee(0x167)](){return this;}[_0x4ca2ee(0x3f7)](_0x2b2156){const _0x3f7f8a=_0x4ca2ee;let _0x2f28f1=_0x2b2156??this[_0x3f7f8a(0x366)]();this[_0x3f7f8a(0x3cf)]=new Date()['getTime']()+_0x2f28f1,this[_0x3f7f8a(0x2f0)]=setTimeout(()=>{const _0x289ce3=_0x3f7f8a;this['_clearScheduledTask']();let _0x3236a3=null;switch(this[_0x289ce3(0x2db)]){case _0x78cf9f['UniverInstanceType'][_0x289ce3(0x220)]:_0x3236a3=_0xf17105(this['_pendingMutations'],this[_0x289ce3(0x272)],this[_0x289ce3(0x3fa)],this[_0x289ce3(0x4d8)],this['_userManagerService']);break;case _0x78cf9f[_0x289ce3(0x4a8)][_0x289ce3(0x40b)]:_0x3236a3=this[_0x289ce3(0x1f2)]['every'](_0xe3660=>_0xe3660['id']===_0x14832f[_0x289ce3(0x23f)]['id'])?_0x2fefe4(this[_0x289ce3(0x1f2)],this[_0x289ce3(0x272)],this['_univerInstanceService'],this[_0x289ce3(0x4d8)],this[_0x289ce3(0x445)]):_0xf17105(this[_0x289ce3(0x1f2)],this[_0x289ce3(0x272)],this['_univerInstanceService'],this[_0x289ce3(0x4d8)],this[_0x289ce3(0x445)]);break;case _0x78cf9f['UniverInstanceType'][_0x289ce3(0x4c9)]:_0x3236a3=_0x4fbf96(this['_pendingMutations'],this['unitID'],this[_0x289ce3(0x3fa)],this[_0x289ce3(0x4d8)],this[_0x289ce3(0x445)]);break;case _0x78cf9f[_0x289ce3(0x4a8)][_0x289ce3(0x1c7)]:_0x3236a3=_0x3a185a(this[_0x289ce3(0x1f2)],this['unitID'],this['_univerInstanceService'],this[_0x289ce3(0x4d8)],this[_0x289ce3(0x445)]);break;case _0x78cf9f[_0x289ce3(0x4a8)]['UNIVER_BOARD']:_0x3236a3=_0xf17105(this['_pendingMutations'],this[_0x289ce3(0x272)],this[_0x289ce3(0x3fa)],this[_0x289ce3(0x4d8)],this[_0x289ce3(0x445)]);break;case _0x78cf9f[_0x289ce3(0x4a8)][_0x289ce3(0x2ed)]:_0x3236a3=_0xf17105(this[_0x289ce3(0x1f2)],this['unitID'],this[_0x289ce3(0x3fa)],this[_0x289ce3(0x4d8)],this[_0x289ce3(0x445)]);break;default:throw Error(_0x289ce3(0x269)+this[_0x289ce3(0x2db)]+_0x289ce3(0x29b));}let {changeset:_0x4881ef,pendingMutations:_0x39aa13}=_0x3236a3;this[_0x289ce3(0x4c4)][_0x289ce3(0x315)](_0x4881ef);let _0x366624=_0x39aa13[_0x289ce3(0x452)]?this[_0x289ce3(0x3b1)][_0x289ce3(0x37d)](_0x47a7e4,this['unitID'],this[_0x289ce3(0x2db)],_0x4881ef,_0x39aa13,this[_0x289ce3(0x4c4)],void 0x0):this['_injector'][_0x289ce3(0x37d)](_0x1e430e,this[_0x289ce3(0x272)],this['type'],_0x4881ef,this[_0x289ce3(0x4c4)]);_0x366624[_0x289ce3(0x49e)](),this[_0x289ce3(0x4c4)][_0x289ce3(0x2e4)](this,_0x366624);},_0x2f28f1);}['_getSendChangesetTimeout'](){const _0x4ac0c7=_0x4ca2ee;let _0x4b8a05=this[_0x4ac0c7(0x2b9)][_0x4ac0c7(0x433)](_0x16372d);return(_0x4b8a05==null?void 0x0:_0x4b8a05[_0x4ac0c7(0x1d6)])??0x7d0;}[_0x4ca2ee(0x3a6)](){const _0x2d1590=_0x4ca2ee;throw Error(_0x2d1590(0x3b5));}[_0x4ca2ee(0x2a4)](){const _0x14393a=_0x4ca2ee;this[_0x14393a(0x2f0)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x14393a(0x2f0)]=null);}[_0x4ca2ee(0x253)](_0x1a5764){const _0x23858e=_0x4ca2ee;return this[_0x23858e(0x2a4)](),this[_0x23858e(0x3b1)][_0x23858e(0x37d)](_0x2160a7,this[_0x23858e(0x272)],this['type'],null,this[_0x23858e(0x1f2)],this[_0x23858e(0x4c4)],_0x1a5764);}};_0x2b8409=_0x394a45=_0x182061([_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['Injector'])),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c['RevisionService'])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x494)])),_0x51b612(0x7,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0x8,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0x9,_0x78cf9f['IConfigService']),_0x51b612(0xa,_0x18ba1c[_0x4ca2ee(0x371)]),_0x51b612(0xb,_0x78cf9f[_0x4ca2ee(0x39a)]),_0x51b612(0xc,_0x78cf9f[_0x4ca2ee(0x2ef)]),_0x51b612(0xd,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x2b8409);let _0x1e430e=_0x87f31=class extends _0x5db94a{constructor(_0x4169fb,_0x421a93,_0x147d1a,_0x2610e1,_0x941dd9,_0x537f9c,_0x4cbdb5,_0x42ae51,_0x1aaddf,_0xa1acc,_0x527d3b){const _0xfe5f79=_0x4ca2ee;super(_0x4169fb,_0x421a93,_0x147d1a,[],_0x2610e1,_0x4cbdb5,_0xa1acc,_0x537f9c,_0x527d3b),this[_0xfe5f79(0x3b1)]=_0x941dd9,this['_logService']=_0x42ae51,this[_0xfe5f79(0x1ba)]=_0x1aaddf,_0x4f9d46(this,_0xfe5f79(0x43c),_0xfe5f79(0x27e)),_0x4f9d46(this,_0xfe5f79(0x3a5),0x0),_0x4f9d46(this,'_maxTotalRetryTimeout',0x0),_0x4f9d46(this,_0xfe5f79(0x45d),void 0x0),_0x4f9d46(this,_0xfe5f79(0x2f3),void 0x0);}[_0x4ca2ee(0x461)](_0x25b759){const _0xc5a738=_0x4ca2ee;this[_0xc5a738(0x2a4)]();let _0x3f4c9a=this[_0xc5a738(0x3b1)][_0xc5a738(0x37d)](_0x47a7e4,this[_0xc5a738(0x272)],this[_0xc5a738(0x2db)],this['_awaitingChangeset'],[_0x25b759],this['_handler'],this[_0xc5a738(0x45d)]);return _0x3f4c9a[_0xc5a738(0x49e)](),_0x3f4c9a;}[_0x4ca2ee(0x439)](_0x46e9ff){const _0xf8f088=_0x4ca2ee;if(this[_0xf8f088(0x2d4)](_0x46e9ff))return this[_0xf8f088(0x2a4)](),this['_injector'][_0xf8f088(0x37d)](_0x23ae28,this[_0xf8f088(0x272)],this[_0xf8f088(0x2db)],this[_0xf8f088(0x185)],[],null,[_0x46e9ff],this[_0xf8f088(0x4c4)]);try{let _0x37f79a=this[_0xf8f088(0x1ba)][_0xf8f088(0x473)]([_0x46e9ff],[this['_awaitingChangeset']],!0x1);if((0x0,_0x18ba1c[_0xf8f088(0x3bb)])(_0x37f79a)){let {c1Prime:_0x2e07f5,c2Prime:_0x118cee}=_0x37f79a;this[_0xf8f088(0x355)](_0x2e07f5[0x0]),_0x118cee[0x0][_0xf8f088(0x335)]=this[_0xf8f088(0x470)](),this['_clearScheduledTask']();let _0x4ef9a2=this['_injector'][_0xf8f088(0x37d)](_0x87f31,this[_0xf8f088(0x272)],this['type'],_0x118cee[0x0],this[_0xf8f088(0x4c4)]);return _0x4ef9a2[_0xf8f088(0x49e)](),_0x4ef9a2;}throw _0x37f79a[_0xf8f088(0x2a2)];}catch(_0x45a010){return this[_0xf8f088(0x290)][_0xf8f088(0x2a2)](_0x45a010),this[_0xf8f088(0x253)](!0x1);}}[_0x4ca2ee(0x3ff)](_0x459b4d){const _0x322ac3=_0x4ca2ee;this[_0x322ac3(0x2a4)]();let _0x501098=this[_0x322ac3(0x4d8)][_0x322ac3(0x2ec)](this['unitID']);if(_0x459b4d[_0x322ac3(0x49f)]<=_0x501098)return this;if(this[_0x322ac3(0x2d4)](_0x459b4d))return this['_injector'][_0x322ac3(0x37d)](_0x23ae28,this[_0x322ac3(0x272)],this['type'],this[_0x322ac3(0x185)],[],_0x459b4d[_0x322ac3(0x49f)],[],this['_handler']);this['_incrementRevisionNumber']();let _0x5e3c11=this['_injector']['createInstance'](_0x1aec7f,this['unitID'],this[_0x322ac3(0x2db)],this[_0x322ac3(0x4c4)]);return _0x5e3c11[_0x322ac3(0x49e)](),_0x5e3c11;}[_0x4ca2ee(0x2e8)](_0xb2aabe){const _0x4b2350=_0x4ca2ee;return this[_0x4b2350(0x253)](!!(_0xb2aabe!=null&&_0xb2aabe[_0x4b2350(0x3fb)]));}[_0x4ca2ee(0x40f)](_0x206c84){const _0x12e6c0=_0x4ca2ee;return this[_0x12e6c0(0x34f)]>_0x106066?this[_0x12e6c0(0x378)]():(this[_0x12e6c0(0x45d)]=_0x29bef8(this[_0x12e6c0(0x3a5)],{'timeout':this['_resendTimeout'],'reqId':_0x206c84[_0x12e6c0(0x330)]}),this[_0x12e6c0(0x2f3)]=this['_resendTimer'][_0x12e6c0(0x3ae)](({reqId:_0x1c4a89,timeout:_0x1c3ba7})=>{const _0x5b1d21=_0x12e6c0;this[_0x5b1d21(0x1bf)](_0x1c4a89,_0x1c3ba7);}),this);}[_0x4ca2ee(0x378)](){const _0xf35ba9=_0x4ca2ee;return this[_0xf35ba9(0x2a4)](),this[_0xf35ba9(0x3b1)]['createInstance'](_0x4522d6,this[_0xf35ba9(0x272)],this[_0xf35ba9(0x2db)],this[_0xf35ba9(0x185)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x4ca2ee(0x3a6)](){const _0x20888d=_0x4ca2ee;this['_handler']['onSendChangeset'](this[_0x20888d(0x185)]);}[_0x4ca2ee(0x253)](_0x599870){const _0x2bb266=_0x4ca2ee;return this[_0x2bb266(0x2a4)](),this['_injector'][_0x2bb266(0x37d)](_0x2160a7,this[_0x2bb266(0x272)],this[_0x2bb266(0x2db)],this['_awaitingChangeset'],[],this['_handler'],_0x599870);}[_0x4ca2ee(0x1bf)](_0x34939e,_0x6c440d){const _0x33ab70=_0x4ca2ee;var _0x27ecf4;_0x34939e===((_0x27ecf4=this[_0x33ab70(0x185)])==null?void 0x0:_0x27ecf4[_0x33ab70(0x330)])&&(this[_0x33ab70(0x3a6)](),this[_0x33ab70(0x3a5)]=_0x6c440d===0x0?0x3e8:Math[_0x33ab70(0x200)](_0x6c440d*0x2,_0x43e9ec),this[_0x33ab70(0x34f)]+=this['_resendTimeout']);}[_0x4ca2ee(0x2a4)](){const _0x5f1c3a=_0x4ca2ee;var _0x418e54;(_0x418e54=this['_sender'])==null||_0x418e54['unsubscribe'](),this[_0x5f1c3a(0x3a5)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x1e430e=_0x87f31=_0x182061([_0x51b612(0x4,(0x0,_0x78cf9f['Inject'])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x6,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0x7,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0x8,_0x18ba1c['ITransformService']),_0x51b612(0x9,_0x78cf9f['IUndoRedoService']),_0x51b612(0xa,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x1e430e);let _0x47a7e4=_0x23e3eb=class extends _0x5db94a{constructor(_0x2ae1dc,_0x358d6f,_0x38591d,_0x54d162,_0x34b286,_0x4b0071,_0x5a32bc,_0x57b521,_0x48b404,_0x10369d,_0x4bb58e,_0xa0f28,_0x2d02f5){const _0x530fb1=_0x4ca2ee;super(_0x2ae1dc,_0x358d6f,_0x38591d,_0x54d162,_0x34b286,_0x48b404,_0xa0f28,_0x57b521,_0x2d02f5),this[_0x530fb1(0x3b1)]=_0x5a32bc,this[_0x530fb1(0x290)]=_0x10369d,this[_0x530fb1(0x1ba)]=_0x4bb58e,this['localCacheService']=_0x2d02f5,_0x4f9d46(this,_0x530fb1(0x43c),_0x530fb1(0x1af)),_0x4f9d46(this,'_resendTimeout',0x0),_0x4f9d46(this,'_maxTotalRetryTimeout',0x0),_0x4f9d46(this,_0x530fb1(0x45d),void 0x0),_0x4f9d46(this,_0x530fb1(0x2f3),void 0x0),_0x4b0071&&(this[_0x530fb1(0x45d)]=_0x4b0071,this[_0x530fb1(0x2f3)]=this[_0x530fb1(0x45d)][_0x530fb1(0x3ae)](({reqId:_0x21d20a,timeout:_0x2ba9d1})=>{this['_resendWithTimeout'](_0x21d20a,_0x2ba9d1);}));}[_0x4ca2ee(0x461)](_0x2715f8){const _0x5b282b=_0x4ca2ee;return this['_pendingMutations'][_0x5b282b(0x204)](_0x2715f8),this;}['onRemoteChangeset'](_0x543406){const _0x38c04a=_0x4ca2ee;if(this[_0x38c04a(0x2d4)](_0x543406))return this[_0x38c04a(0x2a4)](),this['_injector'][_0x38c04a(0x37d)](_0x23ae28,this['unitID'],this[_0x38c04a(0x2db)],this[_0x38c04a(0x185)],this[_0x38c04a(0x1f2)],null,[_0x543406],this[_0x38c04a(0x4c4)]);try{let _0x122f39=this[_0x38c04a(0x1ba)]['transformChangesets']([_0x543406],[this[_0x38c04a(0x185)]],!0x1);if((0x0,_0x18ba1c[_0x38c04a(0x3bb)])(_0x122f39)){let {c1Prime:_0x149bc3,c2Prime:_0x5e1bfe}=_0x122f39,_0x5ece6a=this['_transformService']['transformMutationsWithChangeset'](_0x149bc3[0x0],this['_pendingMutations']);if((0x0,_0x18ba1c[_0x38c04a(0x464)])(_0x5ece6a)){let {c1Prime:_0x144122,m2Prime:_0x469446}=_0x5ece6a;return this[_0x38c04a(0x355)](_0x144122),_0x5e1bfe[0x0][_0x38c04a(0x335)]=this['_getCurrentRevision'](),this[_0x38c04a(0x2a4)](),this[_0x38c04a(0x3b1)]['createInstance'](_0x23e3eb,this[_0x38c04a(0x272)],this[_0x38c04a(0x2db)],_0x5e1bfe[0x0],_0x469446,this[_0x38c04a(0x4c4)],void 0x0);}throw _0x5ece6a['error'];}throw _0x122f39['error'];}catch(_0x582efa){return this[_0x38c04a(0x290)][_0x38c04a(0x2a2)](_0x582efa),this[_0x38c04a(0x253)](!0x1);}}[_0x4ca2ee(0x3ff)](_0x4adc20){const _0xf9f920=_0x4ca2ee;this['_clearScheduledTask']();let _0x401543=this[_0xf9f920(0x470)]();if(_0x4adc20[_0xf9f920(0x49f)]<=_0x401543)return this;if(this[_0xf9f920(0x2d4)](_0x4adc20))return this[_0xf9f920(0x3b1)][_0xf9f920(0x37d)](_0x23ae28,this['unitID'],this[_0xf9f920(0x2db)],this[_0xf9f920(0x185)],this[_0xf9f920(0x1f2)],_0x4adc20['revision'],[],this[_0xf9f920(0x4c4)]);this['_incrementRevisionNumber']();let _0x6de84=this[_0xf9f920(0x3b1)][_0xf9f920(0x37d)](_0x2b8409,this[_0xf9f920(0x272)],this['type'],this['_pendingMutations'],this[_0xf9f920(0x4c4)]);return _0x6de84['_schedule'](),_0x6de84[_0xf9f920(0x49e)](),_0x6de84;}[_0x4ca2ee(0x2e8)](_0x39d301){const _0x14a0cd=_0x4ca2ee;return this[_0x14a0cd(0x253)](!!(_0x39d301!=null&&_0x39d301[_0x14a0cd(0x3fb)]));}[_0x4ca2ee(0x40f)](_0x2857b1){const _0x3b222d=_0x4ca2ee;return this[_0x3b222d(0x34f)]>_0x106066?this['toggleOffline']():(this[_0x3b222d(0x45d)]=_0x29bef8(this[_0x3b222d(0x3a5)],{'timeout':this['_resendTimeout'],'reqId':_0x2857b1['reqId']}),this[_0x3b222d(0x2f3)]=this[_0x3b222d(0x45d)][_0x3b222d(0x3ae)](({reqId:_0xc53c20,timeout:_0x45630a})=>{const _0x3ed511=_0x3b222d;this[_0x3ed511(0x1bf)](_0xc53c20,_0x45630a);}),this);}['toggleOffline'](){const _0x211655=_0x4ca2ee;return this[_0x211655(0x2a4)](),this[_0x211655(0x3b1)][_0x211655(0x37d)](_0x4522d6,this[_0x211655(0x272)],this[_0x211655(0x2db)],this[_0x211655(0x185)],this[_0x211655(0x1f2)],this[_0x211655(0x4c4)]);}[_0x4ca2ee(0x167)](){return this;}[_0x4ca2ee(0x3a6)](){const _0x49313e=_0x4ca2ee;this[_0x49313e(0x4c4)]['onSendChangeset'](this[_0x49313e(0x185)]);}['_onConflict'](_0x41146f){const _0x1a3a8f=_0x4ca2ee;return this[_0x1a3a8f(0x2a4)](),this[_0x1a3a8f(0x3b1)]['createInstance'](_0x2160a7,this[_0x1a3a8f(0x272)],this[_0x1a3a8f(0x2db)],null,this[_0x1a3a8f(0x1f2)],this[_0x1a3a8f(0x4c4)],_0x41146f);}['_resendWithTimeout'](_0x6e9c9b,_0x91e07d){const _0x26e4f4=_0x4ca2ee;var _0x2d57e2;_0x6e9c9b===((_0x2d57e2=this['_awaitingChangeset'])==null?void 0x0:_0x2d57e2['reqId'])&&(this['resend'](),this[_0x26e4f4(0x3a5)]=_0x91e07d===0x0?0x3e8:Math[_0x26e4f4(0x200)](_0x91e07d*0x2,_0x43e9ec),this[_0x26e4f4(0x34f)]+=this[_0x26e4f4(0x3a5)]);}['_clearScheduledTask'](){const _0x596d38=_0x4ca2ee;var _0x426edb;(_0x426edb=this['_sender'])==null||_0x426edb['unsubscribe'](),this[_0x596d38(0x3a5)]=0x0,this[_0x596d38(0x34f)]=0x0;}};_0x47a7e4=_0x23e3eb=_0x182061([_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['Injector'])),_0x51b612(0x7,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c['RevisionService'])),_0x51b612(0x8,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0x9,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0xa,_0x18ba1c[_0x4ca2ee(0x371)]),_0x51b612(0xb,_0x78cf9f[_0x4ca2ee(0x2ef)]),_0x51b612(0xc,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x47a7e4);let _0x2160a7=class extends _0x5db94a{constructor(_0x79c875,_0xfb6ad0,_0x5acbbf,_0x547598,_0x40725e,_0x3aca54=!0x1,_0x53d1d7,_0x28cae4,_0x47a0d8,_0xdc6af9,_0x34770b,_0x1aa271,_0xbc515e){const _0x238987=_0x4ca2ee;super(_0x79c875,_0xfb6ad0,_0x5acbbf,_0x547598,_0x40725e,_0x28cae4,_0x47a0d8,_0xdc6af9,_0xbc515e),this[_0x238987(0x3de)]=_0x3aca54,this[_0x238987(0x305)]=_0x53d1d7,this[_0x238987(0x1bd)]=_0x34770b,this[_0x238987(0x286)]=_0x1aa271,this[_0x238987(0x41d)]=_0xbc515e,_0x4f9d46(this,_0x238987(0x43c),_0x238987(0x298)),this[_0x238987(0x24b)](),this[_0x238987(0x4ba)](),this[_0x238987(0x2e2)]();}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x4ca2ee(0x3ff)](){return this;}[_0x4ca2ee(0x2e8)](){return this;}[_0x4ca2ee(0x40f)](){return this;}[_0x4ca2ee(0x378)](){return this;}[_0x4ca2ee(0x167)](){return this;}[_0x4ca2ee(0x3a6)](){const _0x11a488=_0x4ca2ee;throw Error(_0x11a488(0x17e));}async['_prepareConflictRecovery'](){const _0x18fead=_0x4ca2ee;var _0x3c12db,_0xd9cf26;await((_0x3c12db=this[_0x18fead(0x455)])==null||(_0xd9cf26=_0x3c12db[_0x18fead(0x1fe)])==null?void 0x0:_0xd9cf26['call'](_0x3c12db,this[_0x18fead(0x272)],'conflict')['catch'](()=>void 0x0));try{var _0xf2c23f;await((_0xf2c23f=this['_localCacheService'])==null?void 0x0:_0xf2c23f[_0x18fead(0x437)](this[_0x18fead(0x272)]));}catch{this['_collaborationUIEventService'][_0x18fead(0x17d)]({'id':_0x18fead(0x27f),'unitID':this[_0x18fead(0x272)]});return;}this[_0x18fead(0x376)]();}[_0x4ca2ee(0x4ba)](){const _0x7d09a4=_0x4ca2ee;this[_0x7d09a4(0x286)][_0x7d09a4(0x17d)]({'id':_0x7d09a4(0x1d4)});}[_0x4ca2ee(0x376)](){const _0x2f9003=_0x4ca2ee;this['_isPermissionRej']?this['_collaborationUIEventService'][_0x2f9003(0x17d)]({'id':'PERMISSION_DENIED'}):this[_0x2f9003(0x286)][_0x2f9003(0x17d)]({'id':_0x2f9003(0x21a)});}[_0x4ca2ee(0x24b)](){const _0x286b9f=_0x4ca2ee;this[_0x286b9f(0x305)][_0x286b9f(0x29a)](new _0x1c5171[(_0x286b9f(0x451))](this[_0x286b9f(0x272)])['id'],!0x1);}};_0x2160a7=_0x182061([_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['IPermissionService'])),_0x51b612(0x7,_0x78cf9f['ICommandService']),_0x51b612(0x8,_0x78cf9f['IUndoRedoService']),_0x51b612(0x9,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0xa,(0x0,_0x78cf9f['Inject'])(_0x78cf9f[_0x4ca2ee(0x17a)])),_0x51b612(0xb,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6)),_0x51b612(0xc,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x2160a7);let _0x4522d6=class extends _0x5db94a{constructor(_0x432ef4,_0x33defd,_0x56ce85,_0x55df42,_0x242c23,_0x441461,_0x9d58bb,_0x4e04b1,_0x479e43,_0x1f8709){const _0x116bdb=_0x4ca2ee;super(_0x432ef4,_0x33defd,_0x56ce85,_0x55df42,_0x242c23,_0x4e04b1,_0x479e43,_0x9d58bb,_0x1f8709),this[_0x116bdb(0x3b1)]=_0x441461,_0x4f9d46(this,'status','offline');}['appendMutation'](_0x25057b){return this['_pendingMutations']['push'](_0x25057b),this['_updateLocalCache'](),this;}[_0x4ca2ee(0x439)](_0x2b3eb9){const _0x120c6d=_0x4ca2ee;throw Error(_0x120c6d(0x2b2));}[_0x4ca2ee(0x3ff)](){const _0x253196=_0x4ca2ee;throw Error(_0x253196(0x239));}[_0x4ca2ee(0x2e8)](){const _0x183e45=_0x4ca2ee;throw Error(_0x183e45(0x346));}[_0x4ca2ee(0x40f)](){return this;}[_0x4ca2ee(0x378)](){return this;}[_0x4ca2ee(0x167)](){const _0x15c71d=_0x4ca2ee;let {_injector:_0x59c65b,_pendingMutations:_0x19ba8e,_awaitingChangeset:_0x74004e,unitID:_0x3767ca,_handler:_0x4976bf,type:_0x155fce}=this,_0x1f4cfd=_0x22c800(_0x59c65b,_0x3767ca,_0x155fce,_0x74004e,_0x19ba8e,_0x4976bf);return _0x1f4cfd instanceof _0x2b8409?_0x1f4cfd[_0x15c71d(0x3f7)]():(_0x1f4cfd instanceof _0x47a7e4||_0x1f4cfd instanceof _0x1e430e)&&_0x1f4cfd[_0x15c71d(0x3a6)](),_0x1f4cfd;}['resend'](){const _0x4fe84c=_0x4ca2ee;throw Error(_0x4fe84c(0x3b9));}};_0x4522d6=_0x182061([_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x7,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0x8,_0x78cf9f[_0x4ca2ee(0x2ef)]),_0x51b612(0x9,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x4522d6);let _0x23ae28=class extends _0x5db94a{constructor(_0x52fb8e,_0x23e1ee,_0x254a3c,_0x1e3150,_0xde5e40,_0x5025f8,_0x34a7d2,_0xa873d,_0x35f807,_0x5601ab,_0x22fda2,_0x4a692c,_0x3f9e68,_0x491af5){const _0x4f2853=_0x4ca2ee;super(_0x52fb8e,_0x23e1ee,_0x254a3c,_0x1e3150,_0x34a7d2,_0x22fda2,_0x4a692c,_0x35f807,_0x491af5),this['_acknowledgedAwaitingRevision']=_0xde5e40,this['_queuedRemoteChangesets']=_0x5025f8,this[_0x4f2853(0x3b1)]=_0xa873d,this['_logService']=_0x5601ab,this[_0x4f2853(0x1ba)]=_0x3f9e68,this[_0x4f2853(0x41d)]=_0x491af5,_0x4f9d46(this,_0x4f2853(0x43c),'fetch_missing');}[_0x4ca2ee(0x1ed)](_0x4573d4){const _0x58373a=_0x4ca2ee;try{if(this[_0x58373a(0x172)](_0x4573d4)[_0x58373a(0x26c)])throw Error(_0x58373a(0x4d5));if(this[_0x58373a(0x172)]([...this[_0x58373a(0x236)]][_0x58373a(0x22d)]((_0x4b3989,_0x6335ae)=>_0x4b3989[_0x58373a(0x49f)]-_0x6335ae[_0x58373a(0x49f)]))[_0x58373a(0x26c)])return this[_0x58373a(0x236)]=[],this[_0x58373a(0x49e)](),this[_0x58373a(0x4c4)][_0x58373a(0x4a3)]({'from':this[_0x58373a(0x470)](),'to':0x0}),this;let _0x525df8=this[_0x58373a(0x185)],_0x3eeffe=this[_0x58373a(0x1f2)],_0x26c1f5;if(_0x525df8&&_0x3eeffe[_0x58373a(0x452)]!==0x0)_0x26c1f5=this[_0x58373a(0x3b1)][_0x58373a(0x37d)](_0x47a7e4,this[_0x58373a(0x272)],this['type'],_0x525df8,_0x3eeffe,this[_0x58373a(0x4c4)],void 0x0);else{if(_0x525df8&&_0x3eeffe['length']===0x0)_0x525df8[_0x58373a(0x335)]=this[_0x58373a(0x470)](),_0x26c1f5=this[_0x58373a(0x3b1)][_0x58373a(0x37d)](_0x1e430e,this[_0x58373a(0x272)],this[_0x58373a(0x2db)],_0x525df8,this[_0x58373a(0x4c4)]);else{if(_0x3eeffe[_0x58373a(0x452)]!==0x0){let _0x253757=this[_0x58373a(0x3b1)][_0x58373a(0x37d)](_0x2b8409,this[_0x58373a(0x272)],this[_0x58373a(0x2db)],_0x3eeffe,this[_0x58373a(0x4c4)]);_0x253757[_0x58373a(0x3f7)](),_0x26c1f5=_0x253757;}else _0x26c1f5=this['_injector'][_0x58373a(0x37d)](_0x1aec7f,this[_0x58373a(0x272)],this[_0x58373a(0x2db)],this[_0x58373a(0x4c4)]);}}return _0x26c1f5[_0x58373a(0x49e)](),_0x26c1f5;}catch(_0x38f89e){return this['_logService']['error']('[FetchMissState]',_0x58373a(0x38e),_0x38f89e),this[_0x58373a(0x3b1)][_0x58373a(0x37d)](_0x2160a7,this['unitID'],this[_0x58373a(0x2db)],this[_0x58373a(0x185)],this[_0x58373a(0x1f2)],this['_handler'],!0x1);}}[_0x4ca2ee(0x172)](_0x1333b4){const _0x9c5ad2=_0x4ca2ee;this[_0x9c5ad2(0x3cd)]();for(let _0x1a286f=0x0;_0x1a286f<_0x1333b4[_0x9c5ad2(0x452)];_0x1a286f++){let _0x382a01=_0x1333b4[_0x1a286f],_0x562f66=this[_0x9c5ad2(0x470)]();if(!(_0x382a01['revision']<=_0x562f66)){if(_0x382a01[_0x9c5ad2(0x49f)]>_0x562f66+0x1)return{'missingChangesets':!0x0};if(this[_0x9c5ad2(0x242)](_0x382a01)){this[_0x9c5ad2(0x436)]();continue;}this[_0x9c5ad2(0x4c7)](_0x382a01),this[_0x9c5ad2(0x3cd)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x13ace1){const _0x41d821=_0x4ca2ee;let _0x225069=_0x13ace1,_0x144ab=this[_0x41d821(0x185)];if(_0x144ab){let _0x4e6755=this[_0x41d821(0x1ba)][_0x41d821(0x473)]([_0x13ace1],[_0x144ab],!0x1);if(!(0x0,_0x18ba1c[_0x41d821(0x3bb)])(_0x4e6755))throw _0x4e6755[_0x41d821(0x2a2)];_0x225069=_0x4e6755[_0x41d821(0x1e7)][0x0],_0x144ab=_0x4e6755[_0x41d821(0x243)][0x0];}let _0x3185d6=this[_0x41d821(0x1f2)];if(_0x3185d6[_0x41d821(0x452)]){let _0x440936=this[_0x41d821(0x1ba)][_0x41d821(0x2d0)](_0x225069,_0x3185d6);if(!(0x0,_0x18ba1c[_0x41d821(0x464)])(_0x440936))throw _0x440936[_0x41d821(0x2a2)];_0x225069=_0x440936[_0x41d821(0x1e7)],_0x3185d6=_0x440936[_0x41d821(0x375)];}this[_0x41d821(0x355)](_0x225069),_0x144ab&&(_0x144ab[_0x41d821(0x335)]=this['_getCurrentRevision']()),this[_0x41d821(0x185)]=_0x144ab,this[_0x41d821(0x1f2)]=_0x3185d6;}[_0x4ca2ee(0x3cd)](){const _0xd33b2f=_0x4ca2ee;if(!this['_awaitingChangeset']||this[_0xd33b2f(0x466)]==null)return;let _0x2eadeb=this['_getCurrentRevision']();if(this['_acknowledgedAwaitingRevision']<=_0x2eadeb)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this[_0xd33b2f(0x466)]+'.');this['_acknowledgedAwaitingRevision']===_0x2eadeb+0x1&&this[_0xd33b2f(0x436)]();}[_0x4ca2ee(0x436)](){const _0x3a176d=_0x4ca2ee;this[_0x3a176d(0x18c)](),this[_0x3a176d(0x185)]=null,this[_0x3a176d(0x466)]=null;}[_0x4ca2ee(0x242)](_0x403f29){const _0x5f65e2=_0x4ca2ee;let _0x1e211d=this[_0x5f65e2(0x185)];return!_0x1e211d||!_0x1e211d[_0x5f65e2(0x1a5)]||_0x1e211d[_0x5f65e2(0x330)]===null||_0x1e211d[_0x5f65e2(0x330)]===void 0x0?!0x1:_0x403f29[_0x5f65e2(0x272)]===_0x1e211d['unitID']&&_0x403f29[_0x5f65e2(0x1a5)]===_0x1e211d['sid']&&_0x403f29['reqId']===_0x1e211d['reqId'];}[_0x4ca2ee(0x3a6)](){const _0x3aff9c=_0x4ca2ee;throw Error(_0x3aff9c(0x29f));}['appendMutation'](_0x3ba2cc){const _0x49cacb=_0x4ca2ee;return this['_pendingMutations'][_0x49cacb(0x204)](_0x3ba2cc),this;}[_0x4ca2ee(0x439)](_0x26170c){const _0x494c6a=_0x4ca2ee;return this[_0x494c6a(0x236)][_0x494c6a(0x204)](_0x26170c),this;}[_0x4ca2ee(0x3ff)](_0xc0239c){const _0x111657=_0x4ca2ee;if(this[_0x111657(0x185)]){let _0x229686=this[_0x111657(0x470)]();return _0xc0239c[_0x111657(0x49f)]<=_0x229686||(_0x229686+0x1===_0xc0239c['revision']?(this[_0x111657(0x18c)](),this[_0x111657(0x185)]=null,this[_0x111657(0x466)]=null):this['_acknowledgedAwaitingRevision']=_0xc0239c[_0x111657(0x49f)]),this;}if(_0xc0239c[_0x111657(0x49f)]<=this[_0x111657(0x470)]())return this;throw Error(_0x111657(0x2e3));}[_0x4ca2ee(0x2e8)](_0x585ec9){const _0x39f4aa=_0x4ca2ee;return this[_0x39f4aa(0x253)](!!(_0x585ec9!=null&&_0x585ec9[_0x39f4aa(0x3fb)]));}['onRemoteRetry'](){return this;}[_0x4ca2ee(0x378)](){const _0x627040=_0x4ca2ee;return this[_0x627040(0x3b1)]['createInstance'](_0x4522d6,this[_0x627040(0x272)],this[_0x627040(0x2db)],this['_awaitingChangeset'],this[_0x627040(0x1f2)],this[_0x627040(0x4c4)]);}[_0x4ca2ee(0x167)](){return this;}[_0x4ca2ee(0x253)](_0x7a46eb){const _0x1af03b=_0x4ca2ee;return this[_0x1af03b(0x3b1)][_0x1af03b(0x37d)](_0x2160a7,this[_0x1af03b(0x272)],this[_0x1af03b(0x2db)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],_0x7a46eb);}};_0x23ae28=_0x182061([_0x51b612(0x7,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['Injector'])),_0x51b612(0x8,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x9,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0xa,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0xb,_0x78cf9f[_0x4ca2ee(0x2ef)]),_0x51b612(0xc,_0x18ba1c['ITransformService']),_0x51b612(0xd,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x23ae28);function _0x22c800(_0x117d64,_0x2bd4b3,_0x261a2e,_0x388124,_0x25b83f,_0x4628d3){const _0x5096f9=_0x4ca2ee;return _0x388124&&_0x25b83f[_0x5096f9(0x452)]?_0x117d64['createInstance'](_0x47a7e4,_0x2bd4b3,_0x261a2e,_0x388124,_0x25b83f,_0x4628d3,void 0x0):_0x388124?_0x117d64['createInstance'](_0x1e430e,_0x2bd4b3,_0x261a2e,_0x388124,_0x4628d3):_0x25b83f['length']?_0x117d64['createInstance'](_0x2b8409,_0x2bd4b3,_0x261a2e,_0x25b83f,_0x4628d3):_0x117d64[_0x5096f9(0x37d)](_0x1aec7f,_0x2bd4b3,_0x261a2e,_0x4628d3);}let _0x41b76f=class extends _0x78cf9f['RxDisposable']{get[_0x4ca2ee(0x23c)](){const _0x184699=_0x4ca2ee;return this[_0x184699(0x2d7)];}constructor(_0x32baa5,_0x3b66b0,_0x55aa1f,_0x4d1978,_0x15ac18,_0x5b97a4,_0x314b59,_0x3ebf42,_0x583153,_0x5c0926,_0x3755c7,_0x31fea3,_0x270963,_0x32f287){const _0x37b303=_0x4ca2ee;super(),this['unitID']=_0x32baa5,this['session']=_0x3b66b0,this['_type']=_0x55aa1f,this[_0x37b303(0x3b1)]=_0x4d1978,this[_0x37b303(0x16e)]=_0x15ac18,this['_localeService']=_0x5b97a4,this[_0x37b303(0x4d8)]=_0x314b59,this[_0x37b303(0x3e0)]=_0x3ebf42,this[_0x37b303(0x3fa)]=_0x583153,this[_0x37b303(0x290)]=_0x5c0926,this[_0x37b303(0x23d)]=_0x3755c7,this[_0x37b303(0x305)]=_0x31fea3,this[_0x37b303(0x394)]=_0x270963,this[_0x37b303(0x455)]=_0x32f287,_0x4f9d46(this,_0x37b303(0x387),new _0x42b37f[(_0x37b303(0x43f))](null)),_0x4f9d46(this,'state$',this[_0x37b303(0x387)][_0x37b303(0x4d3)]()),_0x4f9d46(this,_0x37b303(0x2d7),void 0x0),_0x4f9d46(this,_0x37b303(0x203),!0x1),_0x4f9d46(this,_0x37b303(0x21e),''),_0x4f9d46(this,'_changesetReqId',0x0),_0x4f9d46(this,_0x37b303(0x336),this[_0x37b303(0x343)][_0x37b303(0x28c)]((0x0,_0x42b37f[_0x37b303(0x2b8)])(_0x1ffce2=>_0x1ffce2?_0x1ffce2[_0x37b303(0x43c)]:'offline'),(0x0,_0x42b37f[_0x37b303(0x2c8)])({'bufferSize':0x1,'refCount':!0x0}))),_0x4f9d46(this,'_transitionLocked',!0x1),_0x4f9d46(this,_0x37b303(0x1aa),[]);}async[_0x4ca2ee(0x3d7)](){const _0x2a664c=_0x4ca2ee;if(this[_0x2a664c(0x23c)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x2a664c(0x334)]();}[_0x4ca2ee(0x179)](){const _0x31b743=_0x4ca2ee;return this[_0x31b743(0x203)]=!0x0,(0x0,_0x78cf9f[_0x31b743(0x235)])(()=>{const _0x55e68e=_0x31b743;this['_collaborationPaused']=!0x1,this[_0x55e68e(0x256)]();});}[_0x4ca2ee(0x428)](_0xfedc72){const _0x1d17ff=_0x4ca2ee;this[_0x1d17ff(0x438)](_0xfedc72);}['_updateState'](_0x147802){const _0xe216d0=_0x4ca2ee;this[_0xe216d0(0x2d7)]=_0x147802,this[_0xe216d0(0x387)]['next'](_0x147802);}async['_init'](){const _0x33c3c0=_0x4ca2ee;if(this[_0x33c3c0(0x415)](await this[_0x33c3c0(0x32c)]()),this[_0x33c3c0(0x394)]){var _0xdc93b9;(_0xdc93b9=this[_0x33c3c0(0x394)])==null||_0xdc93b9[_0x33c3c0(0x31e)](this[_0x33c3c0(0x272)]),this['disposeWithMe'](this[_0x33c3c0(0x394)][_0x33c3c0(0x28e)](this[_0x33c3c0(0x272)])[_0x33c3c0(0x3ae)](_0x443439=>{const _0x4d9c41=_0x33c3c0;this[_0x4d9c41(0x290)][_0x4d9c41(0x206)]('[CollaborationEntity]',_0x4d9c41(0x1ff),_0x443439),_0x443439===0x1?(this[_0x4d9c41(0x3e0)]['emitEvent']({'id':'OTHER_CLIENT_EDITING'}),this[_0x4d9c41(0x305)][_0x4d9c41(0x29a)](new _0x1c5171[(_0x4d9c41(0x451))](this[_0x4d9c41(0x272)])['id'],!0x1),this[_0x4d9c41(0x305)]['setShowComponents'](!0x1)):(this[_0x4d9c41(0x305)][_0x4d9c41(0x29a)](new _0x1c5171['WorkbookEditablePermission'](this[_0x4d9c41(0x272)])['id'],!0x0),this[_0x4d9c41(0x305)][_0x4d9c41(0x1ae)](!0x0));}));}let _0x3ffc81=!0x1;return this[_0x33c3c0(0x2f7)](this[_0x33c3c0(0x353)][_0x33c3c0(0x3dd)][_0x33c3c0(0x3ae)](_0x52b8ce=>{const _0x4b7644=_0x33c3c0;_0x52b8ce===0x3?this[_0x4b7644(0x44f)](_0x3ffc81):_0x52b8ce===0x2&&(_0x3ffc81=!0x0,this[_0x4b7644(0x3c9)]());})),this[_0x33c3c0(0x2f7)](this[_0x33c3c0(0x353)][_0x33c3c0(0x43b)][_0x33c3c0(0x3ae)](_0x3df74f=>{const _0x256758=_0x33c3c0;try{switch(_0x3df74f[_0x256758(0x34b)]){case _0x18ba1c[_0x256758(0x3aa)][_0x256758(0x277)]:this[_0x256758(0x2e6)]((0x0,_0x18ba1c[_0x256758(0x164)])(_0x3df74f[_0x256758(0x3d6)]));break;case _0x18ba1c[_0x256758(0x3aa)][_0x256758(0x2fb)]:this[_0x256758(0x2ba)](_0x3df74f['data']);break;case _0x18ba1c[_0x256758(0x3aa)][_0x256758(0x4be)]:this[_0x256758(0x36c)]();break;case _0x18ba1c['CollaborationEvent'][_0x256758(0x446)]:this[_0x256758(0x17b)](_0x3df74f[_0x256758(0x3d6)]);break;case _0x18ba1c[_0x256758(0x3aa)][_0x256758(0x34a)]:this[_0x256758(0x1ef)](_0x3df74f[_0x256758(0x3d6)][_0x256758(0x28d)]['map'](_0x2b05ab=>(0x0,_0x18ba1c['parseProtocolChangeset'])(_0x2b05ab)));break;case _0x18ba1c[_0x256758(0x3aa)][_0x256758(0x2fe)]:this[_0x256758(0x36c)]({'isPermissionRej':!0x0});break;case _0x18ba1c[_0x256758(0x3aa)][_0x256758(0x385)]:}}catch(_0x2cc3ce){throw console[_0x256758(0x2a2)]('Error\x20on\x20receiving\x20event',_0x2cc3ce),_0x2cc3ce;}})),this[_0x33c3c0(0x2d7)];}[_0x4ca2ee(0x3d8)](){this['_transitionLocked']=!0x1;}[_0x4ca2ee(0x44a)](){const _0x37167d=_0x4ca2ee;if(this['_transitionLocked'])throw Error(_0x37167d(0x3c1));this[_0x37167d(0x2a5)]=!0x0;}['_onLocalMutation'](_0x5742a3){const _0x58c53c=_0x4ca2ee;this['_lockTransition'](),this[_0x58c53c(0x415)](this[_0x58c53c(0x2d7)]['appendMutation'](_0x5742a3)),this[_0x58c53c(0x3d8)]();}[_0x4ca2ee(0x2e6)](_0x583452){const _0xb3c91f=_0x4ca2ee;if(!(_0x583452['revision']<=this[_0xb3c91f(0x4d8)][_0xb3c91f(0x2ec)](this[_0xb3c91f(0x272)]))){if(this[_0xb3c91f(0x203)]){this[_0xb3c91f(0x1aa)]['push'](_0x583452);return;}this[_0xb3c91f(0x230)](_0x583452);}}['_exhaustRemoteChangesetQueue'](){const _0x33f0e0=_0x4ca2ee;this[_0x33f0e0(0x1aa)][_0x33f0e0(0x1e9)](_0x13af12=>this[_0x33f0e0(0x230)](_0x13af12)),this[_0x33f0e0(0x1aa)]=[];}[_0x4ca2ee(0x230)](_0x15bc63){const _0x42588b=_0x4ca2ee;let _0x112ef0=this[_0x42588b(0x16e)][_0x42588b(0x3f4)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x42588b(0x3f4)][_0x42588b(0x469)]()[_0x42588b(0x311)])(_0x15bc63['mutations'],null)||_0x15bc63[_0x42588b(0x434)],_0x49f022={..._0x15bc63,'mutations':_0x112ef0};this[_0x42588b(0x44a)](),this[_0x42588b(0x415)](this['_state']['onRemoteChangeset'](_0x49f022)),this[_0x42588b(0x3d8)]();}[_0x4ca2ee(0x2ba)](_0x5e41eb){const _0x199e0b=_0x4ca2ee;this[_0x199e0b(0x44a)](),this[_0x199e0b(0x415)](this[_0x199e0b(0x2d7)][_0x199e0b(0x3ff)](_0x5e41eb)),this[_0x199e0b(0x3d8)]();}[_0x4ca2ee(0x36c)](_0x486625){const _0x539cf6=_0x4ca2ee;this[_0x539cf6(0x44a)](),this[_0x539cf6(0x415)](this[_0x539cf6(0x2d7)][_0x539cf6(0x2e8)](_0x486625)),this['_unlockTransition']();}[_0x4ca2ee(0x17b)](_0x52a44f){const _0x568196=_0x4ca2ee;this[_0x568196(0x44a)](),this[_0x568196(0x415)](this[_0x568196(0x2d7)][_0x568196(0x40f)](_0x52a44f)),this['_unlockTransition']();}[_0x4ca2ee(0x1ef)](_0x299354){const _0x321354=_0x4ca2ee;if(!(this[_0x321354(0x2d7)]instanceof _0x23ae28))throw TypeError(_0x321354(0x318));let _0x2042a3=_0x299354[_0x321354(0x2b8)](_0x3d3e93=>{const _0x3c6eb7=_0x321354;let _0x52e2d0=this[_0x3c6eb7(0x16e)][_0x3c6eb7(0x3f4)][_0x3c6eb7(0x162)](this[_0x3c6eb7(0x16e)][_0x3c6eb7(0x3f4)][_0x3c6eb7(0x469)]()[_0x3c6eb7(0x311)])(_0x3d3e93[_0x3c6eb7(0x434)],null)||_0x3d3e93['mutations'];return{..._0x3d3e93,'mutations':_0x52e2d0};});this[_0x321354(0x44a)](),this[_0x321354(0x415)](this[_0x321354(0x2d7)][_0x321354(0x1ed)](_0x2042a3)),this[_0x321354(0x3d8)]();}[_0x4ca2ee(0x3c9)](){const _0x248c6a=_0x4ca2ee;this[_0x248c6a(0x44a)](),this['_updateState'](this[_0x248c6a(0x2d7)][_0x248c6a(0x378)]()),this[_0x248c6a(0x3d8)]();}[_0x4ca2ee(0x44f)](_0x1782eb=!0x1){const _0x3c33aa=_0x4ca2ee;this['_lockTransition'](),this[_0x3c33aa(0x415)](this['_state'][_0x3c33aa(0x167)]()),this[_0x3c33aa(0x3d8)]();let _0xe158da=this[_0x3c33aa(0x2d7)];_0x1782eb&&_0xe158da instanceof _0x1aec7f&&(this[_0x3c33aa(0x44a)](),this[_0x3c33aa(0x415)](_0xe158da[_0x3c33aa(0x3e9)]()),this[_0x3c33aa(0x3d8)]());}async[_0x4ca2ee(0x32c)](){return new Promise(_0x2a05ee=>{const _0x5172b1=_0x41d6;this['session'][_0x5172b1(0x3dd)][_0x5172b1(0x28c)]((0x0,_0x42b37f[_0x5172b1(0x2c0)])(0x1))[_0x5172b1(0x3ae)](async _0x47f9f2=>{const _0x400bc7=_0x5172b1;_0x2a05ee(await this[_0x400bc7(0x271)](_0x47f9f2===0x3));});});}['_createHandler'](){const _0x4ed1d4=_0x4ca2ee;let _0x59f2ca=this[_0x4ed1d4(0x272)];return{'onStateChange':(_0x131aa5,_0x16840b)=>{const _0x1388e6=_0x4ed1d4;if(_0x131aa5!==this['_state'])throw Error(_0x1388e6(0x3b2)+_0x131aa5[_0x1388e6(0x43c)]+_0x1388e6(0x313)+_0x16840b['status']+'\x0aCurrent:\x20'+this[_0x1388e6(0x2d7)]['status']);this[_0x1388e6(0x415)](_0x16840b);},'onSendChangeset':_0x3ba6d4=>{const _0x4e3c31=_0x4ed1d4;_0x3ba6d4[_0x4e3c31(0x1a5)]||(_0x3ba6d4[_0x4e3c31(0x1a5)]=this['_changesetSessionId'],_0x3ba6d4['reqId']=++this['_changesetReqId']);let _0x28016c={'eventID':_0x18ba1c[_0x4e3c31(0x3aa)][_0x4e3c31(0x423)],'data':{'unitID':_0x3ba6d4[_0x4e3c31(0x272)],'unitType':this[_0x4e3c31(0x351)],'changeset':_0x3ba6d4,'memberID':this['session'][_0x4e3c31(0x4ca)]()}};this[_0x4e3c31(0x353)]['send'](_0x28016c,this[_0x4e3c31(0x272)]);},'onMissingChangesets':({from:_0x15c689,to:_0x2934fc})=>{const _0x25c0b6=_0x4ed1d4;this[_0x25c0b6(0x290)][_0x25c0b6(0x206)](_0x25c0b6(0x3bd),'fetching\x20missing\x20changesets\x20from\x20'+_0x15c689+_0x25c0b6(0x258)+_0x2934fc);let _0x222efe={'eventID':_0x18ba1c[_0x25c0b6(0x3aa)]['FETCH_MISSING'],'data':{'unitID':_0x59f2ca,'unitType':this[_0x25c0b6(0x351)],'from':_0x15c689,'to':_0x2934fc}};this['session']['send'](_0x222efe,this[_0x25c0b6(0x272)]);}};}async[_0x4ca2ee(0x271)](_0x1d4edc){const _0x1c49db=_0x4ca2ee;var _0x3c4db5;let _0x14e6ba=await((_0x3c4db5=this[_0x1c49db(0x455)])==null?void 0x0:_0x3c4db5[_0x1c49db(0x406)](this[_0x1c49db(0x272)])),_0x464d48=(_0x14e6ba==null?void 0x0:_0x14e6ba[_0x1c49db(0x434)])??[],_0x4602f8=(_0x14e6ba==null?void 0x0:_0x14e6ba['awaitingChangeset'])??null,_0x5ea1eb=!!(_0x4602f8!=null&&_0x4602f8[_0x1c49db(0x1a5)])&&!!(_0x4602f8!=null&&_0x4602f8[_0x1c49db(0x330)]);this[_0x1c49db(0x21e)]=_0x5ea1eb?_0x4602f8['sid']:(0x0,_0x18ba1c[_0x1c49db(0x275)])(),this[_0x1c49db(0x16b)]=_0x5ea1eb?_0x4602f8[_0x1c49db(0x330)]:0x0;let _0x2d4556=this[_0x1c49db(0x272)];try{this['_replayCachedMutations'](_0x4602f8,_0x464d48);}catch(_0x2ef6ab){this[_0x1c49db(0x290)]['error'](_0x2ef6ab);}let _0x510265=this[_0x1c49db(0x307)]();if(_0x1d4edc){let _0x12109a=_0x22c800(this[_0x1c49db(0x3b1)],_0x2d4556,this['_type'],_0x4602f8,_0x464d48,_0x510265);return _0x12109a instanceof _0x2b8409?_0x12109a[_0x1c49db(0x3f7)]():(_0x12109a instanceof _0x47a7e4||_0x12109a instanceof _0x1e430e)&&_0x12109a[_0x1c49db(0x3a6)](),_0x12109a;}return this['_injector'][_0x1c49db(0x37d)](_0x4522d6,_0x2d4556,this[_0x1c49db(0x351)],_0x4602f8,_0x464d48,_0x510265);}[_0x4ca2ee(0x265)](_0x483436,_0x4acb86){const _0x294afa=_0x4ca2ee;var _0x3ec9f2,_0x166867;let _0xa4edf8=this[_0x294afa(0x16e)]['interceptor'][_0x294afa(0x162)](this[_0x294afa(0x16e)][_0x294afa(0x3f4)]['getInterceptPoints']()[_0x294afa(0x311)]);(_0x3ec9f2=_0xa4edf8((_0x483436==null?void 0x0:_0x483436[_0x294afa(0x434)])||[],null))==null||_0x3ec9f2['forEach'](_0x20dd04=>this[_0x294afa(0x23d)][_0x294afa(0x171)](_0x20dd04['id'],_0x20dd04[_0x294afa(0x21d)])),(_0x166867=_0xa4edf8(_0x4acb86||[],null))==null||_0x166867[_0x294afa(0x1e9)](_0xbb534f=>this[_0x294afa(0x23d)][_0x294afa(0x171)](_0xbb534f['id'],_0xbb534f['params']));}};_0x41b76f=_0x182061([_0x51b612(0x3,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['Injector'])),_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x2f8)])),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['LocaleService'])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x7,(0x0,_0x78cf9f['Inject'])(_0x5604f6)),_0x51b612(0x8,_0x78cf9f[_0x4ca2ee(0x39a)]),_0x51b612(0x9,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0xa,_0x78cf9f['ICommandService']),_0x51b612(0xb,_0x78cf9f[_0x4ca2ee(0x16d)]),_0x51b612(0xc,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x208a4c)),_0x51b612(0xd,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x41b76f);let _0x3c6cb8=class extends _0x41b76f{constructor(_0x39943d,_0x2ba38b,_0xec4b59,_0x429651,_0x153543,_0x2b7071,_0x292147,_0x1c1e4f,_0x2fcf1d,_0x9e6b95,_0x5a759e,_0x1aed40,_0x5217be,_0x3cebc6,_0x27bb86){const _0x3759b9=_0x4ca2ee;super(_0x39943d,_0xec4b59,_0x2ba38b,_0x429651,_0x153543,_0x2b7071,_0x292147,_0x1c1e4f,_0x2fcf1d,_0x9e6b95,_0x5a759e,_0x1aed40,_0x3cebc6,_0x27bb86),this[_0x3759b9(0x272)]=_0x39943d,this[_0x3759b9(0x2db)]=_0x2ba38b,this[_0x3759b9(0x4bb)]=_0x5217be,_0x4f9d46(this,_0x3759b9(0x237),null);}[_0x4ca2ee(0x25c)](_0x15ef56){const _0x396c7d=_0x4ca2ee;this[_0x396c7d(0x237)]=_0x15ef56;}[_0x4ca2ee(0x48f)](){const _0x5910ce=_0x4ca2ee;this[_0x5910ce(0x237)]=null,super[_0x5910ce(0x48f)]();}[_0x4ca2ee(0x307)](){const _0x52b8c7=_0x4ca2ee;let _0x3808cf=super['_createHandler']();return _0x3808cf[_0x52b8c7(0x357)]=_0x33768e=>{const _0x5652a8=_0x52b8c7;var _0x3c2577,_0x1b2068;return(_0x3c2577=this[_0x5652a8(0x237)])==null||(_0x1b2068=_0x3c2577['onTransformIME'])==null?void 0x0:_0x1b2068[_0x5652a8(0x3da)](_0x3c2577,_0x33768e);},_0x3808cf[_0x52b8c7(0x267)]=_0x5ce6c8=>{const _0x123a13=_0x52b8c7;var _0x3eb09d,_0x1ffea2;return(_0x3eb09d=this[_0x123a13(0x237)])==null||(_0x1ffea2=_0x3eb09d[_0x123a13(0x267)])==null?void 0x0:_0x1ffea2[_0x123a13(0x3da)](_0x3eb09d,_0x5ce6c8);},_0x3808cf[_0x52b8c7(0x1c0)]=_0x1da7ff=>{const _0x47bf5b=_0x52b8c7;var _0x3de0d5,_0x4ff6af;return((_0x3de0d5=this[_0x47bf5b(0x237)])==null||(_0x4ff6af=_0x3de0d5[_0x47bf5b(0x1c0)])==null?void 0x0:_0x4ff6af[_0x47bf5b(0x3da)](_0x3de0d5,_0x1da7ff))??null;},_0x3808cf[_0x52b8c7(0x348)]=_0x3bc875=>{const _0x1e39b3=_0x52b8c7;var _0x46b59c,_0x271973;return(_0x46b59c=this[_0x1e39b3(0x237)])==null||(_0x271973=_0x46b59c[_0x1e39b3(0x348)])==null?void 0x0:_0x271973['call'](_0x46b59c,_0x3bc875);},_0x3808cf[_0x52b8c7(0x1cf)]=_0x11a080=>{const _0x2aa971=_0x52b8c7;var _0x1d3eef,_0x52ec54;return(_0x1d3eef=this[_0x2aa971(0x237)])==null||(_0x52ec54=_0x1d3eef[_0x2aa971(0x1cf)])==null?void 0x0:_0x52ec54[_0x2aa971(0x3da)](_0x1d3eef,_0x11a080);},_0x3808cf[_0x52b8c7(0x264)]=_0x2efc62=>{const _0x2dd18d=_0x52b8c7;var _0x463d89,_0x881797;return((_0x463d89=this[_0x2dd18d(0x237)])==null||(_0x881797=_0x463d89['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x881797[_0x2dd18d(0x3da)](_0x463d89,_0x2efc62))??_0x2efc62;},_0x3808cf[_0x52b8c7(0x214)]=_0x382c42=>{const _0x11c8cf=_0x52b8c7;var _0x1bfd07,_0x315b19;return((_0x1bfd07=this[_0x11c8cf(0x237)])==null||(_0x315b19=_0x1bfd07[_0x11c8cf(0x214)])==null?void 0x0:_0x315b19[_0x11c8cf(0x3da)](_0x1bfd07,_0x382c42))??_0x382c42;},_0x3808cf;}async['_init'](){const _0x8f79aa=_0x4ca2ee;let _0x2ac1d0=await super[_0x8f79aa(0x334)]();return this['disposeWithMe'](this['_docStateChangeManagerService']['docStateChange$']['subscribe'](_0x2059a6=>{const _0x2be37c=_0x8f79aa;if(_0x2059a6==null||_0x2059a6[_0x2be37c(0x4d2)]!==this[_0x2be37c(0x272)])return;let {commandId:_0x93f4cb,redoState:_0x384fae,unitId:_0x5aba49}=_0x2059a6,_0x3b5691={'id':_0x93f4cb,'type':_0x78cf9f[_0x2be37c(0x4cc)]['MUTATION'],'params':{'unitId':_0x5aba49,'actions':_0x384fae['actions'],'textRanges':null}};this[_0x2be37c(0x438)](_0x3b5691);})),this[_0x8f79aa(0x2f7)](this[_0x8f79aa(0x23d)][_0x8f79aa(0x3ea)]((_0x349589,_0x516e70)=>{const _0x189c50=_0x8f79aa;if(_0x349589['type']!==_0x78cf9f['CommandType'][_0x189c50(0x1fd)]||_0x516e70!=null&&_0x516e70[_0x189c50(0x43e)]||_0x516e70!=null&&_0x516e70[_0x189c50(0x2a3)]||_0x349589['id']===_0x14832f[_0x189c50(0x23f)]['id'])return;let _0x48f85a=_0x349589[_0x189c50(0x21d)];if((_0x48f85a==null?void 0x0:_0x48f85a[_0x189c50(0x4d2)])!==this[_0x189c50(0x272)])return;let _0x9bd850=_0x349589,_0xe77ca3=this[_0x189c50(0x16e)]['interceptor'][_0x189c50(0x162)](this[_0x189c50(0x16e)][_0x189c50(0x3f4)][_0x189c50(0x469)]()[_0x189c50(0x448)])([_0x9bd850],this['_univerInstanceService'])||[_0x9bd850];this[_0x189c50(0x438)](_0xe77ca3[0x0]);})),_0x2ac1d0;}};_0x3c6cb8=_0x182061([_0x51b612(0x3,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x4,(0x0,_0x78cf9f['Inject'])(_0x18ba1c[_0x4ca2ee(0x2f8)])),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x17a)])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x7,(0x0,_0x78cf9f['Inject'])(_0x5604f6)),_0x51b612(0x8,_0x78cf9f[_0x4ca2ee(0x39a)]),_0x51b612(0x9,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0xa,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0xb,_0x78cf9f['IPermissionService']),_0x51b612(0xc,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x14832f[_0x4ca2ee(0x4c2)])),_0x51b612(0xd,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x208a4c)),_0x51b612(0xe,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x3c6cb8);let _0x3e3c1b=class extends _0x41b76f{constructor(_0x3805db,_0x505f1f,_0x4fff10,_0x266848,_0x353fc0,_0x4a1971,_0xb331a8,_0x5c5396,_0x3e5737,_0x34e110,_0x41b285,_0x43839a,_0x357c6c,_0x2667a8){const _0x10ab7e=_0x4ca2ee;super(_0x3805db,_0x4fff10,_0x505f1f,_0x266848,_0x353fc0,_0x4a1971,_0xb331a8,_0x5c5396,_0x3e5737,_0x34e110,_0x41b285,_0x43839a,_0x357c6c,_0x2667a8),this[_0x10ab7e(0x272)]=_0x3805db,this[_0x10ab7e(0x2db)]=_0x505f1f;}async['_init'](){const _0x58b034=_0x4ca2ee;let _0x7278dd=await super['_init']();return this[_0x58b034(0x2f7)](this[_0x58b034(0x23d)][_0x58b034(0x3ea)]((_0x69798c,_0x131e81)=>{const _0x21b906=_0x58b034;if(_0x69798c[_0x21b906(0x2db)]!==_0x78cf9f['CommandType']['MUTATION']||_0x131e81!=null&&_0x131e81[_0x21b906(0x43e)]||_0x131e81!=null&&_0x131e81['onlyLocal'])return;let _0x1a603d=_0x69798c[_0x21b906(0x21d)];if((_0x1a603d==null?void 0x0:_0x1a603d[_0x21b906(0x4d2)])!==this[_0x21b906(0x272)])return;let _0x38c0ae=_0x69798c,_0x2b43c4=this[_0x21b906(0x16e)][_0x21b906(0x3f4)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x21b906(0x469)]()[_0x21b906(0x448)])([_0x38c0ae],this[_0x21b906(0x3fa)])||[_0x38c0ae];this['_onLocalMutation'](_0x2b43c4[0x0]);})),_0x7278dd;}};_0x3e3c1b=_0x182061([_0x51b612(0x3,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['Injector'])),_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x2f8)])),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x17a)])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c['RevisionService'])),_0x51b612(0x7,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6)),_0x51b612(0x8,_0x78cf9f['IUniverInstanceService']),_0x51b612(0x9,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0xa,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0xb,_0x78cf9f[_0x4ca2ee(0x16d)]),_0x51b612(0xc,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x208a4c)),_0x51b612(0xd,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x3e3c1b);let _0x2da38a=class extends _0x41b76f{constructor(_0x581cac,_0x106205,_0x3b5216,_0x30aaec,_0x2e6f0c,_0x507a05,_0x328efc,_0x2d8820,_0x2ea77a,_0x34d7f5,_0x7bfb66,_0x5b7a63,_0xc07aa5,_0x19c2d7,_0x274cac){const _0x1cc6fa=_0x4ca2ee;super(_0x581cac,_0x3b5216,_0x106205,_0x30aaec,_0x2e6f0c,_0x507a05,_0x328efc,_0x2ea77a,_0x34d7f5,_0x7bfb66,_0x5b7a63,_0xc07aa5,_0x19c2d7,_0x274cac),this[_0x1cc6fa(0x272)]=_0x581cac,this['type']=_0x106205,this[_0x1cc6fa(0x1db)]=_0x2d8820;}['_createHandler'](){const _0x57dfd3=_0x4ca2ee;let _0x2cac79=super[_0x57dfd3(0x307)]();return _0x2cac79[_0x57dfd3(0x348)]=_0x135f9d=>this[_0x57dfd3(0x1db)]['transformSelections'](_0x135f9d),_0x2cac79;}async[_0x4ca2ee(0x334)](){const _0x5e6ecb=_0x4ca2ee;let _0x327cec=await super[_0x5e6ecb(0x334)]();return this['disposeWithMe'](this[_0x5e6ecb(0x23d)][_0x5e6ecb(0x3ea)]((_0xf68137,_0x5173a0)=>{const _0x27ff0e=_0x5e6ecb;if(_0xf68137[_0x27ff0e(0x2db)]!==_0x78cf9f[_0x27ff0e(0x4cc)][_0x27ff0e(0x1fd)]||_0x5173a0!=null&&_0x5173a0[_0x27ff0e(0x43e)]||_0x5173a0!=null&&_0x5173a0[_0x27ff0e(0x2a3)])return;let _0x4c4a52=_0xf68137[_0x27ff0e(0x21d)];if((_0x4c4a52==null?void 0x0:_0x4c4a52[_0x27ff0e(0x4d2)])!==this[_0x27ff0e(0x272)])return;let _0x185422=_0xf68137,_0x3b3b83=this[_0x27ff0e(0x16e)][_0x27ff0e(0x3f4)][_0x27ff0e(0x162)](this[_0x27ff0e(0x16e)]['interceptor'][_0x27ff0e(0x469)]()['COMPRESS_MUTATION_SEND'])([_0x185422],this['_univerInstanceService'])||[_0x185422];this['_onLocalMutation'](_0x3b3b83[0x0]);})),_0x327cec;}};_0x2da38a=_0x182061([_0x51b612(0x3,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['Injector'])),_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x2f8)])),_0x51b612(0x5,(0x0,_0x78cf9f['Inject'])(_0x78cf9f[_0x4ca2ee(0x17a)])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x7,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x373754)),_0x51b612(0x8,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6)),_0x51b612(0x9,_0x78cf9f['IUniverInstanceService']),_0x51b612(0xa,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0xb,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0xc,_0x78cf9f[_0x4ca2ee(0x16d)]),_0x51b612(0xd,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x208a4c)),_0x51b612(0xe,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x2da38a);let _0x4150af=class extends _0x41b76f{constructor(_0x369dd1,_0x3b62a4,_0x421b7a,_0x3279f5,_0x483e2c,_0x78e7e6,_0x396346,_0x8fc709,_0xc8882,_0x1ab1e0,_0x4b7a34,_0x44b8f9,_0x33eb25,_0x50e619){const _0x348c7b=_0x4ca2ee;super(_0x369dd1,_0x421b7a,_0x3b62a4,_0x3279f5,_0x483e2c,_0x78e7e6,_0x396346,_0x8fc709,_0xc8882,_0x1ab1e0,_0x4b7a34,_0x44b8f9,_0x33eb25,_0x50e619),this[_0x348c7b(0x272)]=_0x369dd1,this['type']=_0x3b62a4;}async[_0x4ca2ee(0x334)](){const _0xfff786=_0x4ca2ee;let _0x3d5837=await super[_0xfff786(0x334)]();return this[_0xfff786(0x2f7)](this[_0xfff786(0x23d)][_0xfff786(0x3ea)]((_0x5b9f59,_0x3bf8ad)=>{const _0x63ad20=_0xfff786;if(_0x5b9f59[_0x63ad20(0x2db)]!==_0x78cf9f[_0x63ad20(0x4cc)][_0x63ad20(0x1fd)]||_0x3bf8ad!=null&&_0x3bf8ad[_0x63ad20(0x43e)]||_0x3bf8ad!=null&&_0x3bf8ad[_0x63ad20(0x2a3)])return;let _0x425ac5=_0x5b9f59[_0x63ad20(0x21d)];if((_0x425ac5==null?void 0x0:_0x425ac5[_0x63ad20(0x4d2)])!==this[_0x63ad20(0x272)])return;let _0x5cef0e=_0x5b9f59,_0xe7cc2b=this[_0x63ad20(0x16e)][_0x63ad20(0x3f4)][_0x63ad20(0x162)](this['_compressMutationService'][_0x63ad20(0x3f4)][_0x63ad20(0x469)]()['COMPRESS_MUTATION_SEND'])([_0x5cef0e],this[_0x63ad20(0x3fa)])||[_0x5cef0e];this[_0x63ad20(0x438)](_0xe7cc2b[0x0]);})),_0x3d5837;}};_0x4150af=_0x182061([_0x51b612(0x3,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x4,(0x0,_0x78cf9f['Inject'])(_0x18ba1c[_0x4ca2ee(0x2f8)])),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x17a)])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x7,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6)),_0x51b612(0x8,_0x78cf9f['IUniverInstanceService']),_0x51b612(0x9,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0xa,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0xb,_0x78cf9f[_0x4ca2ee(0x16d)]),_0x51b612(0xc,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x208a4c)),_0x51b612(0xd,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x4150af);let _0x455183=class extends _0x41b76f{constructor(_0x293818,_0x12bb44,_0x37d543,_0x1f9a7c,_0x52cbb1,_0x555751,_0x7d249,_0x57e1d8,_0x2d7a44,_0x23d8e2,_0x28f2fe,_0x572264,_0x377324,_0x54dc64){const _0x4a860d=_0x4ca2ee;super(_0x293818,_0x37d543,_0x12bb44,_0x1f9a7c,_0x52cbb1,_0x555751,_0x7d249,_0x57e1d8,_0x2d7a44,_0x23d8e2,_0x28f2fe,_0x572264,_0x377324,_0x54dc64),this[_0x4a860d(0x272)]=_0x293818,this[_0x4a860d(0x2db)]=_0x12bb44;}async[_0x4ca2ee(0x334)](){const _0x2e04aa=_0x4ca2ee;let _0x2145a5=await super[_0x2e04aa(0x334)]();return this[_0x2e04aa(0x2f7)](this[_0x2e04aa(0x23d)][_0x2e04aa(0x3ea)]((_0x2b37e9,_0x3a9df0)=>{const _0x48460b=_0x2e04aa;if(_0x2b37e9[_0x48460b(0x2db)]!==_0x78cf9f[_0x48460b(0x4cc)][_0x48460b(0x1fd)]||_0x3a9df0!=null&&_0x3a9df0[_0x48460b(0x43e)]||_0x3a9df0!=null&&_0x3a9df0[_0x48460b(0x2a3)])return;let _0x2074ae=_0x2b37e9[_0x48460b(0x21d)];if((_0x2074ae==null?void 0x0:_0x2074ae[_0x48460b(0x4d2)])!==this[_0x48460b(0x272)])return;let _0xf5eadc=_0x2b37e9,_0x35f61b=this[_0x48460b(0x16e)][_0x48460b(0x3f4)][_0x48460b(0x162)](this[_0x48460b(0x16e)][_0x48460b(0x3f4)][_0x48460b(0x469)]()['COMPRESS_MUTATION_SEND'])([_0xf5eadc],this['_univerInstanceService'])||[_0xf5eadc];this['_onLocalMutation'](_0x35f61b[0x0]);})),_0x2145a5;}};_0x455183=_0x182061([_0x51b612(0x3,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x2f8)])),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x17a)])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x7,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6)),_0x51b612(0x8,_0x78cf9f[_0x4ca2ee(0x39a)]),_0x51b612(0x9,_0x78cf9f['ILogService']),_0x51b612(0xa,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0xb,_0x78cf9f['IPermissionService']),_0x51b612(0xc,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x208a4c)),_0x51b612(0xd,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x455183);let _0x1743c3=class extends _0x41b76f{constructor(_0x2bf796,_0x495e53,_0x1c2214,_0x30e84c,_0x18f78a,_0x1edc8c,_0xdb75d,_0x855292,_0x483a8b,_0x46a069,_0x48ffff,_0x3b6bac,_0x36616c,_0x2ad1a1){const _0x4510a2=_0x4ca2ee;super(_0x2bf796,_0x1c2214,_0x495e53,_0x30e84c,_0x18f78a,_0x1edc8c,_0xdb75d,_0x855292,_0x483a8b,_0x46a069,_0x48ffff,_0x3b6bac,_0x36616c,_0x2ad1a1),this['unitID']=_0x2bf796,this[_0x4510a2(0x2db)]=_0x495e53;}async[_0x4ca2ee(0x334)](){const _0x481e14=_0x4ca2ee;let _0x35c93a=await super['_init']();return this[_0x481e14(0x2f7)](this[_0x481e14(0x23d)][_0x481e14(0x3ea)]((_0x159257,_0x163646)=>{const _0x466952=_0x481e14;if(_0x159257[_0x466952(0x2db)]!==_0x78cf9f['CommandType'][_0x466952(0x1fd)]||_0x163646!=null&&_0x163646['fromCollab']||_0x163646!=null&&_0x163646[_0x466952(0x2a3)])return;let _0x2cc474=_0x159257[_0x466952(0x21d)];if((_0x2cc474==null?void 0x0:_0x2cc474[_0x466952(0x4d2)])!==this['unitID'])return;let _0xd45a31=_0x159257,_0x4e79a5=this[_0x466952(0x16e)][_0x466952(0x3f4)]['fetchThroughInterceptors'](this[_0x466952(0x16e)][_0x466952(0x3f4)]['getInterceptPoints']()[_0x466952(0x448)])([_0xd45a31],this[_0x466952(0x3fa)])||[_0xd45a31];this[_0x466952(0x438)](_0x4e79a5[0x0]);})),_0x35c93a;}};_0x1743c3=_0x182061([_0x51b612(0x3,(0x0,_0x78cf9f['Inject'])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x4,(0x0,_0x78cf9f['Inject'])(_0x18ba1c[_0x4ca2ee(0x2f8)])),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['LocaleService'])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x7,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6)),_0x51b612(0x8,_0x78cf9f[_0x4ca2ee(0x39a)]),_0x51b612(0x9,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0xa,_0x78cf9f['ICommandService']),_0x51b612(0xb,_0x78cf9f['IPermissionService']),_0x51b612(0xc,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x208a4c)),_0x51b612(0xd,(0x0,_0x78cf9f['Optional'])(_0x1dd414))],_0x1743c3);let _0x11f218=(0x0,_0x78cf9f[_0x4ca2ee(0x404)])(_0x4ca2ee(0x4d6));function _0x179e36(_0x4294db){const _0x4251da=_0x4ca2ee;let _0xf43d33=_0x4294db[_0x4251da(0x3d6)],_0x310b32=JSON['parse'](_0xf43d33);switch(_0x310b32[_0x4251da(0x3ba)]){case _0x1521ba[_0x4251da(0x382)]['HEARTBEAT']:case _0x1521ba[_0x4251da(0x382)][_0x4251da(0x326)]:{let _0x46b91e=_0x310b32['infoRsp'];return{..._0x310b32,'data':_0x46b91e,'cmd':_0x310b32['cmd']};}case _0x1521ba['CombCmd'][_0x4251da(0x45b)]:{let _0x1f1b5e=_0x310b32['joinRsp'];return{..._0x310b32,'data':_0x1f1b5e,'cmd':_0x310b32['cmd']};}case _0x1521ba[_0x4251da(0x382)][_0x4251da(0x215)]:{let _0x3020b3=_0x310b32[_0x4251da(0x3a1)];switch(_0x3020b3['eventID']){case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x2fe)]:var _0xf6767e;return{..._0x310b32,'data':{..._0x3020b3,'data':(_0xf6767e=_0x3020b3['permissionRejEvent'])==null?void 0x0:_0xf6767e['cs']},'cmd':_0x310b32['cmd']};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x2fb)]:var _0x25a883;return{..._0x310b32,'data':{..._0x3020b3,'data':(_0x25a883=_0x3020b3[_0x4251da(0x1bb)])==null?void 0x0:_0x25a883['cs']},'cmd':_0x310b32['cmd']};case _0x18ba1c['CollaborationEvent'][_0x4251da(0x277)]:var _0xa216c;return{..._0x310b32,'data':{..._0x3020b3,'data':(_0xa216c=_0x3020b3[_0x4251da(0x3ed)])==null?void 0x0:_0xa216c['cs']},'cmd':_0x310b32['cmd']};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x4be)]:var _0x5915af;return{..._0x310b32,'data':{..._0x3020b3,'data':(_0x5915af=_0x3020b3[_0x4251da(0x419)])==null?void 0x0:_0x5915af['cs']},'cmd':_0x310b32['cmd']};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x446)]:var _0x3efc6f;return{..._0x310b32,'data':{..._0x3020b3,'data':(_0x3efc6f=_0x3020b3[_0x4251da(0x2f5)])==null?void 0x0:_0x3efc6f['cs']},'cmd':_0x310b32['cmd']};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x273)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3[_0x4251da(0x24a)]},'cmd':_0x310b32[_0x4251da(0x3ba)]};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x2f4)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3[_0x4251da(0x2cb)]},'cmd':_0x310b32[_0x4251da(0x3ba)]};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x196)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3['leaveEvent']},'cmd':_0x310b32['cmd']};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x2b6)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3[_0x4251da(0x4b4)]},'cmd':_0x310b32[_0x4251da(0x3ba)]};case _0x18ba1c[_0x4251da(0x3aa)]['LIVESHARE_FETCH_OPERATIONS']:case _0x18ba1c['CollaborationEvent']['LIVESHARE_OPERATION']:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3['liveShareOperation']},'cmd':_0x310b32[_0x4251da(0x3ba)]};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x46a)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3[_0x4251da(0x4b4)]},'cmd':_0x310b32[_0x4251da(0x3ba)]};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x4c8)]:return{..._0x310b32,'data':_0x3020b3,'cmd':_0x310b32['cmd']};case _0x18ba1c['CollaborationEvent'][_0x4251da(0x4cb)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3[_0x4251da(0x29e)]},'cmd':_0x310b32['cmd']};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x395)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3[_0x4251da(0x20d)]},'cmd':_0x310b32[_0x4251da(0x3ba)]};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x16f)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3[_0x4251da(0x274)]},'cmd':_0x310b32[_0x4251da(0x3ba)]};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x385)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3[_0x4251da(0x2ee)]},'cmd':_0x310b32[_0x4251da(0x3ba)]};default:return _0x310b32;}}default:return _0x310b32;}}function _0x28a999(_0x167f73){const _0x4814dc=_0x4ca2ee;switch(_0x167f73[_0x4814dc(0x3ba)]){case _0x1521ba[_0x4814dc(0x382)]['HEARTBEAT']:case _0x1521ba[_0x4814dc(0x382)][_0x4814dc(0x326)]:return JSON[_0x4814dc(0x2cf)]({'cmd':_0x167f73['cmd'],'routeKey':_0x167f73[_0x4814dc(0x1bc)]});case _0x1521ba[_0x4814dc(0x382)]['INGEST']:{let _0x2ca7d4;switch(_0x167f73[_0x4814dc(0x3d6)]['eventID']){case _0x18ba1c[_0x4814dc(0x3aa)][_0x4814dc(0x273)]:_0x2ca7d4={'eventID':_0x18ba1c['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x167f73[_0x4814dc(0x3d6)]['data']};break;case _0x18ba1c[_0x4814dc(0x3aa)][_0x4814dc(0x196)]:_0x2ca7d4={'eventID':_0x18ba1c[_0x4814dc(0x3aa)]['USERS_LEAVE'],'leaveEvent':_0x167f73[_0x4814dc(0x3d6)]['data']};break;case _0x18ba1c['CollaborationEvent'][_0x4814dc(0x2f4)]:_0x2ca7d4={'eventID':_0x18ba1c[_0x4814dc(0x3aa)][_0x4814dc(0x2f4)],'joinEvent':_0x167f73[_0x4814dc(0x3d6)][_0x4814dc(0x3d6)]};break;case _0x18ba1c['CollaborationEvent'][_0x4814dc(0x2b6)]:_0x2ca7d4={'eventID':_0x18ba1c[_0x4814dc(0x3aa)][_0x4814dc(0x2b6)],'liveShareNewHost':_0x167f73[_0x4814dc(0x3d6)][_0x4814dc(0x3d6)]};break;case _0x18ba1c['CollaborationEvent']['LIVESHARE_OPERATION']:_0x2ca7d4={'eventID':_0x18ba1c[_0x4814dc(0x3aa)][_0x4814dc(0x396)],'liveShareOperation':_0x167f73[_0x4814dc(0x3d6)][_0x4814dc(0x3d6)]};break;case _0x18ba1c['CollaborationEvent'][_0x4814dc(0x46a)]:_0x2ca7d4={'eventID':_0x18ba1c['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x167f73['data'][_0x4814dc(0x3d6)]};break;case _0x18ba1c['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:_0x2ca7d4={'eventID':_0x18ba1c[_0x4814dc(0x3aa)][_0x4814dc(0x225)],'liveShareRequestHost':_0x167f73[_0x4814dc(0x3d6)]['data']};break;case _0x18ba1c['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:_0x2ca7d4={'eventID':_0x18ba1c[_0x4814dc(0x3aa)][_0x4814dc(0x361)]};break;default:_0x2ca7d4={'eventID':_0x167f73['data']['eventID']};}return JSON[_0x4814dc(0x2cf)]({'cmd':_0x167f73['cmd'],'routeKey':_0x167f73[_0x4814dc(0x1bc)],'collaMsg':_0x2ca7d4});}case _0x1521ba[_0x4814dc(0x382)]['JOIN']:return JSON[_0x4814dc(0x2cf)]({'cmd':_0x167f73[_0x4814dc(0x3ba)],'routeKey':_0x167f73[_0x4814dc(0x1bc)],'joinReq':_0x167f73['data']});case _0x1521ba['CombCmd'][_0x4814dc(0x1f6)]:return JSON[_0x4814dc(0x2cf)]({'cmd':_0x167f73['cmd'],'routeKey':_0x167f73[_0x4814dc(0x1bc)],'leaveReq':_0x167f73['data']});default:throw Error(_0x4814dc(0x292));}}let _0x2277c0=(0x0,_0x78cf9f[_0x4ca2ee(0x404)])(_0x4ca2ee(0x46c));function _0x6bca4c(_0x3fd80c,_0x2990e9,_0x1ba59c){const _0x30c02e=_0x4ca2ee;return _0x3fd80c+'/'+_0x2990e9+_0x30c02e(0x363)+_0x1ba59c+_0x30c02e(0x18f);}let _0x330090=class extends _0x78cf9f['Disposable']{constructor(_0x12c385,_0x27f53c,_0x32f248,_0x1ad3c7,_0x4abd58){const _0x4ddb09=_0x4ca2ee;super(),this[_0x4ddb09(0x3b1)]=_0x12c385,this[_0x4ddb09(0x173)]=_0x27f53c,this['_configService']=_0x32f248,this[_0x4ddb09(0x290)]=_0x1ad3c7,this[_0x4ddb09(0x4a4)]=_0x4abd58;}['_doCreateSocket'](_0x81105e){const _0x6d7e5a=_0x4ca2ee;let _0x30288f=this[_0x6d7e5a(0x3b1)][_0x6d7e5a(0x42a)](_0x4de411['ISocketService']);if(!_0x30288f)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x5a6fe0=_0x30288f[_0x6d7e5a(0x441)](_0x81105e);if(!_0x5a6fe0)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x4307b0=new _0x78cf9f['DisposableCollection'](),_0x548648=new _0x42b37f['Subject']();_0x4307b0[_0x6d7e5a(0x169)](_0x5a6fe0[_0x6d7e5a(0x384)][_0x6d7e5a(0x3ae)](_0x58a57c=>_0x548648['next'](_0x58a57c))),_0x4307b0['add']((0x0,_0x78cf9f['toDisposable'])(()=>_0x548648[_0x6d7e5a(0x245)]()));let _0x1fa9ac=new _0x42b37f[(_0x6d7e5a(0x20c))]();_0x4307b0[_0x6d7e5a(0x169)](_0x5a6fe0[_0x6d7e5a(0x22c)][_0x6d7e5a(0x3ae)](_0x5d64bc=>_0x1fa9ac[_0x6d7e5a(0x1b5)](_0x5d64bc))),_0x4307b0[_0x6d7e5a(0x169)]((0x0,_0x78cf9f[_0x6d7e5a(0x235)])(()=>_0x1fa9ac['complete']()));let _0x476a1d=new _0x42b37f['Subject']();_0x4307b0['add'](_0x5a6fe0[_0x6d7e5a(0x37c)]['subscribe'](_0x470a5e=>{const _0x4a04d8=_0x6d7e5a;let _0x29902f=_0x179e36(_0x470a5e);_0x476a1d[_0x4a04d8(0x1b5)](_0x29902f);})),_0x4307b0[_0x6d7e5a(0x169)]((0x0,_0x78cf9f[_0x6d7e5a(0x235)])(()=>_0x476a1d[_0x6d7e5a(0x245)]()));let _0x43efe9,_0x109433=()=>{const _0x1c9b10=_0x6d7e5a;_0x1fa9ac[_0x1c9b10(0x1b5)](new Event(_0x1c9b10(0x3e6))),_0x548648[_0x1c9b10(0x1b5)](new Event(_0x1c9b10(0x3e6))),_0x43efe9['close']();};return _0x43efe9={'memberID':'','close$':_0x548648['asObservable'](),'error$':_0x1fa9ac['asObservable'](),'open$':_0x5a6fe0[_0x6d7e5a(0x1e3)],'message$':_0x476a1d['asObservable'](),'send':_0x2743a1=>{const _0x5df03d=_0x6d7e5a;if(_0x2743a1[_0x5df03d(0x3ba)]===_0x1521ba[_0x5df03d(0x382)]['INGEST']){if(_0x2743a1[_0x5df03d(0x3d6)][_0x5df03d(0x34b)]===_0x18ba1c[_0x5df03d(0x3aa)]['SUBMIT_CHANGESET']){this[_0x5df03d(0x25e)](_0x43efe9,_0x2743a1[_0x5df03d(0x3d6)])[_0x5df03d(0x2ce)](_0x13a840=>{const _0xf7ecd5=_0x5df03d;this['_logService'][_0xf7ecd5(0x2a2)](_0x13a840),_0x109433();});return;}if(_0x2743a1[_0x5df03d(0x3d6)]['eventID']===_0x18ba1c[_0x5df03d(0x3aa)][_0x5df03d(0x249)]){let _0x38b2ba=_0x2743a1[_0x5df03d(0x3d6)];this[_0x5df03d(0x47d)](_0x38b2ba)[_0x5df03d(0x22f)](_0xba01d5=>{const _0x15b733=_0x5df03d;_0x476a1d[_0x15b733(0x1b5)]({'cmd':_0x1521ba['CombCmd'][_0x15b733(0x215)],'code':_0x1521ba[_0x15b733(0x2b3)]['OK'],'routeKey':_0x38b2ba[_0x15b733(0x3d6)][_0x15b733(0x272)],'routeType':'','data':{'eventID':_0x18ba1c[_0x15b733(0x3aa)][_0x15b733(0x34a)],'data':{'changesets':_0xba01d5}}});})[_0x5df03d(0x2ce)](_0x187af7=>{const _0x27e2aa=_0x5df03d;this[_0x27e2aa(0x290)][_0x27e2aa(0x2a2)](_0x187af7),_0x109433();});return;}}_0x5a6fe0['send'](_0x28a999(_0x2743a1));},'close':()=>{const _0x4df3c7=_0x6d7e5a;_0x5a6fe0[_0x4df3c7(0x426)](),_0x4307b0['dispose']();}},_0x43efe9;}async[_0x4ca2ee(0x25e)](_0x518cb7,_0x1147e3){const _0x53cd4a=_0x4ca2ee;let {unitType:_0x4c88a6,unitID:_0x20faaf,changeset:_0xf17e2d}=_0x1147e3['data'],_0x38cd1f={'unitID':_0x20faaf,'memberID':_0x518cb7[_0x53cd4a(0x458)],'type':_0x4c88a6,'changeset':(0x0,_0x18ba1c[_0x53cd4a(0x480)])(_0xf17e2d)},_0x2e7ac4=this['_configService']['getConfig'](_0x16372d),_0x415633=_0x6bca4c((_0x2e7ac4==null?void 0x0:_0x2e7ac4[_0x53cd4a(0x1c1)])??_0x53cd4a(0x3b7),_0x4c88a6,_0x20faaf);try{await this['_httpService'][_0x53cd4a(0x186)](_0x415633,{'body':_0x38cd1f});}catch(_0x4e7f64){throw this[_0x53cd4a(0x290)][_0x53cd4a(0x2a2)]('[CollaborationSession]',_0x53cd4a(0x190)),_0x4e7f64;}}async[_0x4ca2ee(0x47d)](_0x5e0724){const _0x2feb52=_0x4ca2ee;let {unitID:_0x4727d0,from:_0x3d5805,to:_0x43031d,unitType:_0x2aa197}=_0x5e0724[_0x2feb52(0x3d6)];return(await this[_0x2feb52(0x4a4)][_0x2feb52(0x2bc)]({'metadata':void 0x0},{'unitID':_0x4727d0,'type':_0x2aa197,'from':_0x3d5805,'to':_0x43031d}))[_0x2feb52(0x28d)]['map'](_0x54bf7b=>((_0x54bf7b[_0x2feb52(0x434)]===null||_0x54bf7b[_0x2feb52(0x434)]===void 0x0)&&(_0x54bf7b['mutations']=[]),_0x54bf7b));}};_0x330090=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['Injector'])),_0x51b612(0x1,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x4de411[_0x4ca2ee(0x332)])),_0x51b612(0x2,_0x78cf9f[_0x4ca2ee(0x178)]),_0x51b612(0x3,_0x78cf9f['ILogService']),_0x51b612(0x4,_0x18ba1c[_0x4ca2ee(0x1e5)])],_0x330090);let _0x997217=(0x0,_0x78cf9f[_0x4ca2ee(0x404)])(_0x4ca2ee(0x47e));function _0x35dc98(_0x4cb37f={}){const _0x1402ad=_0x4ca2ee;return _0x4cb37f['resolveUnit']?{'resolveUnit':_0x4cb37f[_0x1402ad(0x2d3)]}:{'resolveUnit':_0x1d2071=>({'target':{'unitId':_0x1d2071['unitId'],'unitType':_0x1d2071[_0x1402ad(0x29d)]}})};}function _0x33831d(_0x58057d,_0x11e59e,_0x5ddd8f){const _0x3a1c40=_0x4ca2ee;let _0x4ebc32=_0x5ddd8f[_0x3a1c40(0x4b1)][_0x3a1c40(0x297)];if(_0x4ebc32!=null&&_0x4ebc32['trim']()==='')throw Error(_0x3a1c40(0x234));if(!_0x5ddd8f['target'][_0x3a1c40(0x4d2)])throw Error(_0x3a1c40(0x1c8));return{'localUnitId':_0x58057d,'unitType':_0x11e59e,'target':{'endpoint':_0x4ebc32,'unitId':_0x5ddd8f[_0x3a1c40(0x4b1)]['unitId'],'unitType':_0x5ddd8f[_0x3a1c40(0x4b1)]['unitType']??_0x11e59e},'changeset':_0x5ddd8f['changeset']};}let _0x55f186=class extends _0x78cf9f[_0x4ca2ee(0x3b4)]{constructor(_0x13893c,_0x52e4ac,_0x26b876,_0xd5dd89,_0x199162,_0x207d80,_0x2d5b80){const _0x288639=_0x4ca2ee;super(),this[_0x288639(0x3b1)]=_0x13893c,this[_0x288639(0x290)]=_0x52e4ac,this['_configService']=_0x26b876,this[_0x288639(0x1b6)]=_0xd5dd89,this[_0x288639(0x286)]=_0x199162,this[_0x288639(0x37a)]=_0x207d80,this['_networkConditionService']=_0x2d5b80,_0x4f9d46(this,_0x288639(0x467),new Map()),_0x4f9d46(this,_0x288639(0x35f),new Map()),_0x4f9d46(this,_0x288639(0x2f6),new Map()),_0x4f9d46(this,_0x288639(0x40c),new Map()),_0x4f9d46(this,'socket$',this[_0x288639(0x372)](void 0x0)[_0x288639(0x268)]['asObservable']()),_0x4f9d46(this,_0x288639(0x1cd),new _0x42b37f['BehaviorSubject'](0x0)),_0x4f9d46(this,'status$',this['_status$'][_0x288639(0x4d3)]()),this[_0x288639(0x1df)]();}['_listenToNetworkCondition'](){const _0x31648e=_0x4ca2ee;this[_0x31648e(0x36d)]&&this[_0x31648e(0x2f7)](this['_networkConditionService']['online$'][_0x31648e(0x3ae)](_0x272ca5=>{const _0x12bbf5=_0x31648e;_0x272ca5&&this[_0x12bbf5(0x3ee)](),_0x272ca5||this[_0x12bbf5(0x40c)]['forEach'](_0x197b96=>this[_0x12bbf5(0x1a2)](_0x197b96));}));}[_0x4ca2ee(0x48f)](){const _0xe491c9=_0x4ca2ee;super['dispose'](),this['_socketChannels'][_0xe491c9(0x1e9)](_0x587eed=>{const _0x15508d=_0xe491c9;var _0x49e3b5,_0x1bf8ad;(_0x49e3b5=_0x587eed[_0x15508d(0x38f)])==null||_0x49e3b5[_0x15508d(0x3f6)](),_0x587eed[_0x15508d(0x38f)]=null,this['_clearRetryConnectingTimer'](_0x587eed),this[_0x15508d(0x390)](_0x587eed),this[_0x15508d(0x3e7)](_0x587eed),(_0x1bf8ad=_0x587eed[_0x15508d(0x268)][_0x15508d(0x478)]())==null||_0x1bf8ad[_0x15508d(0x426)](),_0x587eed[_0x15508d(0x268)][_0x15508d(0x245)]();}),this[_0xe491c9(0x40c)]['clear'](),this[_0xe491c9(0x467)][_0xe491c9(0x1e9)](_0x4db473=>_0x4db473[_0xe491c9(0x48f)]()),this[_0xe491c9(0x467)][_0xe491c9(0x358)](),this[_0xe491c9(0x2f6)]['clear'](),this[_0xe491c9(0x1cd)][_0xe491c9(0x245)]();}async['requireSession'](_0x33ef41,_0x1201e0){const _0x17e4ca=_0x4ca2ee;if(this['_sessions'][_0x17e4ca(0x32f)](_0x33ef41))return this['_sessions'][_0x17e4ca(0x42a)](_0x33ef41);let _0x2229c2=this[_0x17e4ca(0x35f)]['get'](_0x33ef41);if(_0x2229c2)return _0x2229c2;let _0x41c3eb=this['_createSession'](_0x33ef41,_0x1201e0);this['_pendingSessions']['set'](_0x33ef41,_0x41c3eb);try{return await _0x41c3eb;}finally{this[_0x17e4ca(0x35f)]['delete'](_0x33ef41);}}async['_createSession'](_0x1761fd,_0x4e9b83){const _0xc3acc6=_0x4ca2ee;let _0x4268e7=await this['_resolveSessionIdentity'](_0x1761fd,_0x4e9b83),_0x24a904=this[_0xc3acc6(0x372)](_0x4268e7[_0xc3acc6(0x4b1)][_0xc3acc6(0x297)]);this[_0xc3acc6(0x216)](_0x24a904);let _0x4df2b7=this['_injector'][_0xc3acc6(0x37d)](_0x3a19b6,_0x4268e7,_0x24a904['socket$'][_0xc3acc6(0x4d3)]());return this['_sessions']['set'](_0x1761fd,_0x4df2b7),this[_0xc3acc6(0x2f6)]['set'](_0x1761fd,_0x24a904[_0xc3acc6(0x3f3)]),_0x4df2b7;}[_0x4ca2ee(0x19d)](_0x414f37){const _0x132f78=_0x4ca2ee;let _0x3b8f6a=this['_sessions'][_0x132f78(0x42a)](_0x414f37),_0x4319d0=this[_0x132f78(0x2f6)][_0x132f78(0x42a)](_0x414f37);if(_0x3b8f6a&&(this['_sessions']['delete'](_0x414f37),this[_0x132f78(0x2f6)][_0x132f78(0x483)](_0x414f37),_0x3b8f6a[_0x132f78(0x426)]()),_0x4319d0&&!this[_0x132f78(0x39c)](_0x4319d0)){var _0x352549;let _0x4e5431=this[_0x132f78(0x40c)][_0x132f78(0x42a)](_0x4319d0);_0x4e5431==null||(_0x352549=_0x4e5431['socket$']['getValue']())==null||_0x352549['close']();}}[_0x4ca2ee(0x3ee)](){const _0x4cfb53=_0x4ca2ee;(this[_0x4cfb53(0x40c)][_0x4cfb53(0x33f)]?[...this['_socketChannels']['values']()]:[this[_0x4cfb53(0x372)](void 0x0)])[_0x4cfb53(0x1e9)](_0x2bbdbf=>{const _0x4b831c=_0x4cfb53;_0x2bbdbf[_0x4b831c(0x35b)]=0x0,this[_0x4b831c(0x18d)](_0x2bbdbf),this[_0x4b831c(0x254)](_0x2bbdbf);});}[_0x4ca2ee(0x18d)](_0x4e5a27){const _0x108e76=_0x4ca2ee;_0x4e5a27[_0x108e76(0x16c)]!=null&&(clearTimeout(_0x4e5a27['retryConnectingTimer']),_0x4e5a27[_0x108e76(0x16c)]=null);}async[_0x4ca2ee(0x1f3)](_0x43f80e){const _0x14f35b=_0x4ca2ee;let _0x9a6352=this[_0x14f35b(0x2b9)]['getConfig'](_0x16372d),_0x400315=_0x43f80e[_0x14f35b(0x297)]??(_0x9a6352==null?void 0x0:_0x9a6352['collabWebSocketUrl'])??'ws://127.0.0.1:8000/universer-api/comb/connect',_0x17e91a=await this['_socketService'][_0x14f35b(0x441)](_0x400315);return _0x43f80e[_0x14f35b(0x1dc)]=_0x17e91a,_0x17e91a;}async[_0x4ca2ee(0x216)](_0x1dff23){const _0x2dbe79=_0x4ca2ee;try{let _0x3378cf=_0x1dff23[_0x2dbe79(0x268)]['getValue']()??_0x1dff23[_0x2dbe79(0x1dc)]??await this[_0x2dbe79(0x1f3)](_0x1dff23);if(_0x3378cf){var _0x358084;let _0x4ca26f=_0x3378cf[_0x2dbe79(0x432)];_0x3378cf['send']=_0xd5ff5c=>(_0xd5ff5c[_0x2dbe79(0x3ba)]!==_0x1521ba['CombCmd'][_0x2dbe79(0x1f6)]&&this[_0x2dbe79(0x465)](_0x1dff23),_0x4ca26f[_0x2dbe79(0x444)](_0x3378cf,[_0xd5ff5c])),(_0x358084=_0x1dff23[_0x2dbe79(0x38f)])==null||_0x358084[_0x2dbe79(0x3f6)](),_0x1dff23[_0x2dbe79(0x38f)]=null,_0x1dff23[_0x2dbe79(0x38f)]=_0x3378cf['message$'][_0x2dbe79(0x3ae)](_0x2fd2e0=>this[_0x2dbe79(0x3d4)](_0x1dff23,_0x3378cf,_0x2fd2e0)),_0x3378cf[_0x2dbe79(0x22c)][_0x2dbe79(0x28c)]((0x0,_0x30b86b[_0x2dbe79(0x2c0)])(0x1))[_0x2dbe79(0x3ae)](_0x52a973=>this[_0x2dbe79(0x290)][_0x2dbe79(0x2a2)](_0x2dbe79(0x21f),_0x52a973)),_0x3378cf[_0x2dbe79(0x1e3)][_0x2dbe79(0x28c)]((0x0,_0x30b86b[_0x2dbe79(0x2c0)])(0x1))[_0x2dbe79(0x3ae)](()=>{const _0x146bae=_0x2dbe79;this[_0x146bae(0x4d7)](_0x1dff23,_0x3378cf);}),_0x3378cf['close$'][_0x2dbe79(0x28c)]((0x0,_0x30b86b[_0x2dbe79(0x2c0)])(0x1))[_0x2dbe79(0x3ae)](_0x3ddc1=>{const _0x109218=_0x2dbe79;this[_0x109218(0x290)][_0x109218(0x206)](_0x109218(0x1c5),_0x109218(0x284),_0x3ddc1),this['_onConnectionFailed'](_0x1dff23);});}}catch(_0x288bed){this['_logService']['error'](_0x288bed),this['_onConnectionFailed'](_0x1dff23);}}[_0x4ca2ee(0x4d7)](_0x54b938,_0x36c1e3){const _0x3bfd8c=_0x4ca2ee;this[_0x3bfd8c(0x290)][_0x3bfd8c(0x206)](_0x3bfd8c(0x1c5),_0x3bfd8c(0x398)),_0x36c1e3[_0x3bfd8c(0x432)]({'cmd':_0x1521ba[_0x3bfd8c(0x382)]['HELLO']}),this['_rescheduleHeartbeat'](_0x54b938);}['_onOffline'](_0xce7e5e){const _0x47875a=_0x4ca2ee;_0xce7e5e[_0x47875a(0x3f9)]=!0x1,_0xce7e5e['candidateSocket']=null,this[_0x47875a(0x1cd)]['next'](0x2),_0xce7e5e[_0x47875a(0x268)][_0x47875a(0x1b5)](null),this[_0x47875a(0x390)](_0xce7e5e),this[_0x47875a(0x3e7)](_0xce7e5e);}[_0x4ca2ee(0x3ca)](_0x39176e){const _0x1b6ec9=_0x4ca2ee;this[_0x1b6ec9(0x1a2)](_0x39176e),this[_0x1b6ec9(0x39c)](_0x39176e[_0x1b6ec9(0x3f3)])&&(_0x39176e[_0x1b6ec9(0x35b)]<(this['_configService']['getConfig'](_0x1b6ec9(0x17f))??0x3)?(this[_0x1b6ec9(0x286)][_0x1b6ec9(0x17d)]({'id':_0x1b6ec9(0x484)}),this[_0x1b6ec9(0x254)](_0x39176e)):this['_collaborationUIEventService'][_0x1b6ec9(0x17d)]({'id':_0x1b6ec9(0x210)}));}[_0x4ca2ee(0x254)](_0x2cec5d){const _0xb55d08=_0x4ca2ee;let _0x411365=_0x2cec5d[_0xb55d08(0x35b)],_0x53098a=this[_0xb55d08(0x2b9)]['getConfig'](_0x16372d),_0x251e41=_0x411365===0x0?0x0:((_0x53098a==null?void 0x0:_0x53098a['retryConnectingInterval'])??0x4e20)*0x2**_0x411365;_0x2cec5d[_0xb55d08(0x16c)]=setTimeout(()=>{const _0x46895d=_0xb55d08;clearTimeout(_0x2cec5d[_0x46895d(0x16c)]),_0x2cec5d[_0x46895d(0x16c)]=null,this['_tryEnsureSocket'](_0x2cec5d);},_0x251e41),_0x2cec5d[_0xb55d08(0x35b)]+=0x1;}async[_0x4ca2ee(0x2e5)](_0x3c2cbf,_0x34b153){const _0x1ea776=_0x4ca2ee;return _0x33831d(_0x3c2cbf,_0x34b153,await this[_0x1ea776(0x37a)]['resolveUnit']({'unitId':_0x3c2cbf,'unitType':_0x34b153}));}['_onMessage'](_0x2b87a0,_0x1038f3,_0x2b3d52){const _0x55f748=_0x4ca2ee;let {cmd:_0x3c7e07}=_0x2b3d52;_0x3c7e07===_0x1521ba[_0x55f748(0x382)]['HELLO']&&!_0x2b87a0[_0x55f748(0x3f9)]&&(_0x1038f3[_0x55f748(0x458)]=_0x2b3d52[_0x55f748(0x3d6)][_0x55f748(0x458)],_0x2b87a0[_0x55f748(0x35b)]=0x0,_0x2b87a0[_0x55f748(0x268)][_0x55f748(0x1b5)](_0x1038f3),this[_0x55f748(0x1cd)]['next'](0x3),_0x2b87a0[_0x55f748(0x3f9)]=!0x0,_0x2b87a0[_0x55f748(0x1dc)]=null),_0x3c7e07===_0x1521ba[_0x55f748(0x382)][_0x55f748(0x486)]&&this['_clearTimeoutTimer'](_0x2b87a0),this[_0x55f748(0x465)](_0x2b87a0);}['_hasSessionsForEndpoint'](_0x435102){const _0x262e18=_0x4ca2ee;return[...this[_0x262e18(0x2f6)][_0x262e18(0x1d7)]()][_0x262e18(0x4d0)](_0x51b1d9=>_0x51b1d9===_0x435102);}[_0x4ca2ee(0x372)](_0x17f5c3){const _0x20b053=_0x4ca2ee;let _0x42f33=_0x17f5c3??'',_0x37c19a=this['_socketChannels'][_0x20b053(0x42a)](_0x42f33);if(_0x37c19a)return _0x37c19a;let _0x1355f2={'endpointKey':_0x42f33,'endpoint':_0x17f5c3,'socket$':new _0x42b37f[(_0x20b053(0x43f))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x20b053(0x40c)][_0x20b053(0x3e8)](_0x42f33,_0x1355f2),_0x1355f2;}[_0x4ca2ee(0x465)](_0xf39ed7){const _0x48607e=_0x4ca2ee;this['_clearHeartbeatTimer'](_0xf39ed7),_0xf39ed7[_0x48607e(0x2b4)]=setTimeout(()=>this[_0x48607e(0x492)](_0xf39ed7),this[_0x48607e(0x2b9)][_0x48607e(0x433)](_0x48607e(0x1de))??0x7530);}[_0x4ca2ee(0x492)](_0xa0706c){const _0x42de02=_0x4ca2ee;_0xa0706c[_0x42de02(0x268)]['getValue']()[_0x42de02(0x432)]({'cmd':_0x1521ba[_0x42de02(0x382)][_0x42de02(0x486)]}),this[_0x42de02(0x2d1)](_0xa0706c);}[_0x4ca2ee(0x2d1)](_0x4fd4af){const _0x1ba7eb=_0x4ca2ee;_0x4fd4af[_0x1ba7eb(0x36a)]=setTimeout(()=>this[_0x1ba7eb(0x3ca)](_0x4fd4af),this['_configService'][_0x1ba7eb(0x433)](_0x1ba7eb(0x2d2))??0x4e20);}[_0x4ca2ee(0x3e7)](_0x4c20eb){const _0x1292e8=_0x4ca2ee;_0x4c20eb[_0x1292e8(0x2b4)]!=null&&(clearTimeout(_0x4c20eb[_0x1292e8(0x2b4)]),_0x4c20eb[_0x1292e8(0x2b4)]=null);}[_0x4ca2ee(0x390)](_0x1db012){const _0x56c41f=_0x4ca2ee;_0x1db012[_0x56c41f(0x36a)]!=null&&(clearTimeout(_0x1db012['timeoutTimer']),_0x1db012['timeoutTimer']=null);}};_0x55f186=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f['Inject'])(_0x78cf9f['Injector'])),_0x51b612(0x1,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0x2,_0x78cf9f['IConfigService']),_0x51b612(0x3,_0x2277c0),_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6)),_0x51b612(0x5,_0x997217),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x11f218))],_0x55f186);let _0x2b01b9=class extends _0x78cf9f[_0x4ca2ee(0x342)]{constructor(_0x2367ec,_0x4cd2d4,_0x1bde7c,_0x2fb6a2){const _0x1d19b1=_0x4ca2ee;var _0x9be5c0;super(),this[_0x1d19b1(0x3b1)]=_0x2367ec,this[_0x1d19b1(0x27a)]=_0x4cd2d4,this['_configService']=_0x1bde7c,this['_univerInstanceService']=_0x2fb6a2,_0x4f9d46(this,'_entities',new Map()),_0x4f9d46(this,'_entityInit$',new _0x42b37f['Subject']()),_0x4f9d46(this,_0x1d19b1(0x36b),this[_0x1d19b1(0x1e1)][_0x1d19b1(0x4d3)]()),((_0x9be5c0=this[_0x1d19b1(0x2b9)]['getConfig'](_0x1d19b1(0x27b)))==null?void 0x0:_0x9be5c0[_0x1d19b1(0x443)])!==!0x1&&this[_0x1d19b1(0x334)]();}[_0x4ca2ee(0x48f)](){const _0x52c4c9=_0x4ca2ee;super[_0x52c4c9(0x48f)](),this['_entities']['forEach'](_0x15fd94=>_0x15fd94[_0x52c4c9(0x48f)]()),this['_entities'][_0x52c4c9(0x358)]();}[_0x4ca2ee(0x250)](_0x185a8d){const _0x121d87=_0x4ca2ee;return this[_0x121d87(0x422)][_0x121d87(0x42a)](_0x185a8d)??null;}[_0x4ca2ee(0x3b3)](_0x280556){const _0x4638f5=_0x4ca2ee;let _0x3240ab=this[_0x4638f5(0x250)](_0x280556);return _0x3240ab?(0x0,_0x42b37f['of'])(_0x3240ab):this[_0x4638f5(0x1e1)][_0x4638f5(0x28c)]((0x0,_0x30b86b[_0x4638f5(0x2cc)])(_0x29eea0=>_0x29eea0[_0x4638f5(0x272)]===_0x280556));}[_0x4ca2ee(0x1a3)](_0xf64129){const _0x4226f1=_0x4ca2ee;return(0x0,_0x42b37f['firstValueFrom'])(this[_0x4226f1(0x3b3)](_0xf64129)[_0x4226f1(0x28c)]((0x0,_0x30b86b[_0x4226f1(0x2b8)])(()=>void 0x0)));}[_0x4ca2ee(0x334)](){const _0x2906c2=_0x4ca2ee;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x78cf9f[_0x2906c2(0x4a8)][_0x2906c2(0x220)])[_0x2906c2(0x28c)]((0x0,_0x42b37f[_0x2906c2(0x381)])(this[_0x2906c2(0x32d)]),(0x0,_0x30b86b[_0x2906c2(0x401)])(0x10))[_0x2906c2(0x3ae)](async _0x4fff12=>{const _0x5bf3f1=_0x2906c2;let _0x2ea82f=_0x4fff12[_0x5bf3f1(0x2bd)][_0x5bf3f1(0x3f8)](),_0x40c613=await this['_startCollaboration'](_0x2ea82f,_0x78cf9f[_0x5bf3f1(0x4a8)][_0x5bf3f1(0x220)]);this[_0x5bf3f1(0x422)][_0x5bf3f1(0x3e8)](_0x2ea82f,_0x40c613);}),this['_univerInstanceService'][_0x2906c2(0x166)](_0x78cf9f[_0x2906c2(0x4a8)][_0x2906c2(0x40b)])[_0x2906c2(0x28c)]((0x0,_0x42b37f[_0x2906c2(0x381)])(this[_0x2906c2(0x32d)]),(0x0,_0x30b86b[_0x2906c2(0x401)])(0x10))['pipe']((0x0,_0x30b86b[_0x2906c2(0x2cc)])(_0x2c758b=>!_0x2c758b['unit'][_0x2906c2(0x3f8)]()[_0x2906c2(0x2b0)]('__')))[_0x2906c2(0x3ae)](async _0x441fc8=>{const _0x2adc0e=_0x2906c2;let _0x4a75d7=_0x441fc8[_0x2adc0e(0x2bd)][_0x2adc0e(0x3f8)](),_0x44a403=await this[_0x2adc0e(0x289)](_0x4a75d7,_0x78cf9f['UniverInstanceType']['UNIVER_DOC']);this['_entities'][_0x2adc0e(0x3e8)](_0x4a75d7,_0x44a403);}),this['_univerInstanceService'][_0x2906c2(0x166)](_0x78cf9f[_0x2906c2(0x4a8)]['UNIVER_SLIDE'])[_0x2906c2(0x28c)]((0x0,_0x42b37f[_0x2906c2(0x381)])(this[_0x2906c2(0x32d)]),(0x0,_0x30b86b[_0x2906c2(0x401)])(0x10))[_0x2906c2(0x3ae)](async _0x273283=>{const _0x45aa87=_0x2906c2;let _0x5093b1=_0x273283[_0x45aa87(0x2bd)]['getUnitId'](),_0x1e31a4=await this[_0x45aa87(0x289)](_0x5093b1,_0x78cf9f[_0x45aa87(0x4a8)]['UNIVER_SLIDE']);this['_entities'][_0x45aa87(0x3e8)](_0x5093b1,_0x1e31a4);}),this[_0x2906c2(0x3fa)][_0x2906c2(0x166)](_0x78cf9f[_0x2906c2(0x4a8)][_0x2906c2(0x383)])[_0x2906c2(0x28c)]((0x0,_0x42b37f[_0x2906c2(0x381)])(this[_0x2906c2(0x32d)]),(0x0,_0x30b86b['delay'])(0x10))[_0x2906c2(0x3ae)](async _0x37243c=>{const _0x1b021f=_0x2906c2;let _0x9531b0=_0x37243c['unit'][_0x1b021f(0x3f8)](),_0x213970=await this[_0x1b021f(0x289)](_0x9531b0,_0x78cf9f[_0x1b021f(0x4a8)]['UNIVER_BOARD']);this[_0x1b021f(0x422)][_0x1b021f(0x3e8)](_0x9531b0,_0x213970);}),this['_univerInstanceService'][_0x2906c2(0x166)](_0x78cf9f['UniverInstanceType']['UNIVER_BASE'])[_0x2906c2(0x28c)]((0x0,_0x42b37f[_0x2906c2(0x381)])(this['dispose$']),(0x0,_0x30b86b[_0x2906c2(0x401)])(0x10))[_0x2906c2(0x3ae)](async _0x1d2ae1=>{const _0x4efca9=_0x2906c2;let _0x56461f=_0x1d2ae1['unit']['getUnitId'](),_0x39f112=await this[_0x4efca9(0x289)](_0x56461f,_0x78cf9f[_0x4efca9(0x4a8)]['UNIVER_BASE']);this[_0x4efca9(0x422)][_0x4efca9(0x3e8)](_0x56461f,_0x39f112);}),this['_univerInstanceService'][_0x2906c2(0x166)](_0x78cf9f['UniverInstanceType'][_0x2906c2(0x1c7)])[_0x2906c2(0x28c)]((0x0,_0x42b37f[_0x2906c2(0x381)])(this[_0x2906c2(0x32d)]),(0x0,_0x30b86b[_0x2906c2(0x401)])(0x10))[_0x2906c2(0x3ae)](async _0x4d835d=>{const _0x4d5929=_0x2906c2;let _0x3a3797=_0x4d835d[_0x4d5929(0x2bd)]['getUnitId'](),_0x30b804=await this[_0x4d5929(0x289)](_0x3a3797,_0x78cf9f['UniverInstanceType']['UNIVER_PDF']);this['_entities'][_0x4d5929(0x3e8)](_0x3a3797,_0x30b804);}),(0x0,_0x42b37f[_0x2906c2(0x364)])(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x78cf9f[_0x2906c2(0x4a8)][_0x2906c2(0x220)]),this[_0x2906c2(0x3fa)][_0x2906c2(0x425)](_0x78cf9f[_0x2906c2(0x4a8)]['UNIVER_DOC']),this[_0x2906c2(0x3fa)][_0x2906c2(0x425)](_0x78cf9f[_0x2906c2(0x4a8)][_0x2906c2(0x4c9)]),this[_0x2906c2(0x3fa)][_0x2906c2(0x425)](_0x78cf9f['UniverInstanceType'][_0x2906c2(0x383)]),this[_0x2906c2(0x3fa)]['getTypeOfUnitDisposed$'](_0x78cf9f['UniverInstanceType'][_0x2906c2(0x2ed)]),this[_0x2906c2(0x3fa)][_0x2906c2(0x425)](_0x78cf9f[_0x2906c2(0x4a8)][_0x2906c2(0x1c7)]))[_0x2906c2(0x28c)]((0x0,_0x42b37f[_0x2906c2(0x381)])(this[_0x2906c2(0x32d)]))['subscribe'](_0x4df413=>{const _0x24579f=_0x2906c2;let _0x4a2b9e=_0x4df413[_0x24579f(0x3f8)](),_0x5695ad=this[_0x24579f(0x422)][_0x24579f(0x42a)](_0x4a2b9e);_0x5695ad&&(_0x5695ad['dispose'](),this[_0x24579f(0x422)][_0x24579f(0x483)](_0x4a2b9e));});}async[_0x4ca2ee(0x289)](_0xc07892,_0x546d0a){const _0x125016=_0x4ca2ee;let _0x4b5e69=await this['_collabSessionService'][_0x125016(0x454)](_0xc07892),_0x124852=this['_injector']['createInstance'](this[_0x125016(0x3e5)](_0x546d0a),_0xc07892,_0x546d0a,_0x4b5e69);return await _0x124852[_0x125016(0x3d7)](),this[_0x125016(0x1e1)][_0x125016(0x1b5)](_0x124852),_0x124852;}[_0x4ca2ee(0x3e5)](_0x39dc98){const _0x21a111=_0x4ca2ee;switch(_0x39dc98){case _0x78cf9f[_0x21a111(0x4a8)][_0x21a111(0x40b)]:return _0x3c6cb8;case _0x78cf9f['UniverInstanceType'][_0x21a111(0x220)]:return _0x2da38a;case _0x78cf9f[_0x21a111(0x4a8)]['UNIVER_SLIDE']:return _0x4150af;case _0x78cf9f[_0x21a111(0x4a8)][_0x21a111(0x383)]:return _0x455183;case _0x78cf9f['UniverInstanceType'][_0x21a111(0x2ed)]:return _0x3e3c1b;case _0x78cf9f[_0x21a111(0x4a8)]['UNIVER_PDF']:return _0x1743c3;default:throw Error(_0x21a111(0x192)+_0x39dc98);}}};_0x2b01b9=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x1,(0x0,_0x78cf9f['Inject'])(_0x55f186)),_0x51b612(0x2,_0x78cf9f[_0x4ca2ee(0x178)]),_0x51b612(0x3,_0x78cf9f[_0x4ca2ee(0x39a)])],_0x2b01b9);var _0x4265cd='@univerjs-pro/collaboration-client',_0x37eba4=_0x4ca2ee(0x208);let _0x5eab30=class extends _0x78cf9f[_0x4ca2ee(0x3b4)]{constructor(_0x46b721,_0x2af47d){const _0x2dd1c8=_0x4ca2ee;super(),this['_univerInstanceService']=_0x46b721,this[_0x2dd1c8(0x2b9)]=_0x2af47d,this[_0x2dd1c8(0x334)]();}[_0x4ca2ee(0x334)](){const _0x4184a4=_0x4ca2ee;this[_0x4184a4(0x2f7)](this[_0x4184a4(0x3fa)][_0x4184a4(0x24e)][_0x4184a4(0x3ae)](()=>{const _0x13d97f=_0x4184a4;let _0x324a8c=this[_0x13d97f(0x3fa)][_0x13d97f(0x3ad)](),_0x15905c=this[_0x13d97f(0x2b9)]['getConfig']('DEFAULT_FILE_NAME')??_0x13d97f(0x4cd);_0x324a8c instanceof _0x78cf9f[_0x13d97f(0x324)]&&(_0x15905c=_0x324a8c['name']),document[_0x13d97f(0x34e)]=_0x15905c;}));}};_0x5eab30=_0x182061([_0x51b612(0x0,_0x78cf9f[_0x4ca2ee(0x39a)]),_0x51b612(0x1,_0x78cf9f[_0x4ca2ee(0x178)])],_0x5eab30);let _0x3ff2b3=(0x0,_0x78cf9f[_0x4ca2ee(0x404)])(_0x4ca2ee(0x49d)),_0x7c9ef=class{constructor(_0x263106,_0x26f3ba,_0x167486){const _0xfcb12=_0x4ca2ee;this[_0xfcb12(0x173)]=_0x263106,this[_0xfcb12(0x2b9)]=_0x26f3ba,this[_0xfcb12(0x3fa)]=_0x167486;}[_0x4ca2ee(0x19e)](){const _0x264773=_0x4ca2ee;return this[_0x264773(0x3e2)]()[_0x264773(0x36e)]??{};}async[_0x4ca2ee(0x3c2)](_0x31136b){const _0x17c1c8=_0x4ca2ee;let _0x10ed18=this[_0x17c1c8(0x19e)]();if(_0x1d1c11(_0x31136b,_0x10ed18),_0x10ed18[_0x17c1c8(0x493)])return _0x10ed18[_0x17c1c8(0x493)](_0x31136b);let _0x5058b6=await this[_0x17c1c8(0x323)](_0x31136b);return{'id':_0x5058b6,'name':_0x31136b[_0x17c1c8(0x39d)],'mimeType':_0x31136b['type'],'size':_0x31136b['size'],'sourceType':_0x78cf9f[_0x17c1c8(0x310)][_0x17c1c8(0x388)],'source':_0x5058b6};}async[_0x4ca2ee(0x278)](_0x104a8a,_0x2e7286){const _0x1831ab=_0x4ca2ee;if(_0x2e7286!==_0x78cf9f[_0x1831ab(0x310)][_0x1831ab(0x388)])return _0x104a8a;let _0x3c75d9=(await this[_0x1831ab(0x173)][_0x1831ab(0x42a)](this[_0x1831ab(0x1b7)]()['replace'](_0x1831ab(0x312),_0x104a8a)))[_0x1831ab(0x1f0)];if(_0x3c75d9[_0x1831ab(0x2a2)]&&_0x3c75d9[_0x1831ab(0x2a2)][_0x1831ab(0x34c)]!==_0x1521ba[_0x1831ab(0x489)]['OK'])throw _0x3c75d9[_0x1831ab(0x2a2)];if(!_0x3c75d9['url'])throw Error(_0x1831ab(0x213));return(0x0,_0x78cf9f[_0x1831ab(0x259)])(_0x3c75d9['url'],this[_0x1831ab(0x22e)]());}async[_0x4ca2ee(0x323)](_0x79fe04){const _0x4d57e2=_0x4ca2ee;let _0x45c219=this[_0x4d57e2(0x3fa)][_0x4d57e2(0x3ad)](),_0xf844f6=_0x45c219==null?void 0x0:_0x45c219['getUnitId']();if(!_0xf844f6)throw Error(_0x4d57e2(0x31a));let _0x1f2bd3=new FormData();_0x1f2bd3['append']('file',_0x79fe04);let _0x1877bf=this['_getUploadFileURL']()+_0x4d57e2(0x198)+_0x79fe04[_0x4d57e2(0x33f)]['toString']()+_0x4d57e2(0x499)+_0x1521ba[_0x4d57e2(0x3c3)][_0x4d57e2(0x34d)]+'&assign='+encodeURIComponent(_0xf844f6),_0x129024=(await this[_0x4d57e2(0x173)][_0x4d57e2(0x186)](_0x1877bf,{'body':_0x1f2bd3}))[_0x4d57e2(0x1f0)][_0x4d57e2(0x31f)];if(typeof _0x129024!='string'||!_0x129024)throw Error(_0x4d57e2(0x3a8));return _0x129024;}[_0x4ca2ee(0x3a9)](){const _0x473c53=_0x4ca2ee;return this[_0x473c53(0x3e2)]()[_0x473c53(0x3a4)]??'/universer-api/stream/file/upload';}['_getSignURL'](){const _0x5b7a81=_0x4ca2ee;return this[_0x5b7a81(0x3e2)]()[_0x5b7a81(0x47a)]??_0x5b7a81(0x4a0);}['_getDownloadEndpointURL'](){const _0x4f24ae=_0x4ca2ee;let _0x2a5458=this[_0x4f24ae(0x3e2)]();return _0x2a5458[_0x4f24ae(0x21b)]?_0x2a5458[_0x4f24ae(0x21b)]:typeof location<'u'?location[_0x4f24ae(0x365)]:_0x2a5458[_0x4f24ae(0x3a4)]??'';}[_0x4ca2ee(0x3e2)](){const _0x1b1b1c=_0x4ca2ee;return this[_0x1b1b1c(0x2b9)][_0x1b1b1c(0x433)]('collaboration-client.config')??{};}};_0x7c9ef=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x4de411['HTTPService'])),_0x51b612(0x1,(0x0,_0x78cf9f['Inject'])(_0x78cf9f[_0x4ca2ee(0x178)])),_0x51b612(0x2,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['IUniverInstanceService']))],_0x7c9ef);function _0x1d1c11(_0x211a57,_0x6433fe){const _0x330c1a=_0x4ca2ee;var _0xc9421b;if(_0x6433fe[_0x330c1a(0x46b)]!=null&&_0x211a57[_0x330c1a(0x33f)]>_0x6433fe[_0x330c1a(0x46b)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0xc9421b=_0x6433fe['accept'])!=null&&_0xc9421b[_0x330c1a(0x452)]&&!_0x6433fe[_0x330c1a(0x391)][_0x330c1a(0x4d0)](_0x13405c=>_0x211a57[_0x330c1a(0x2db)]===_0x13405c||_0x211a57['name'][_0x330c1a(0x1d3)](_0x13405c)||_0x13405c[_0x330c1a(0x1d3)]('/*')&&_0x211a57[_0x330c1a(0x2db)][_0x330c1a(0x2b0)](_0x13405c['slice'](0x0,-0x1))))throw Error(_0x330c1a(0x19f));}let _0x4f4c43=class{constructor(_0x38b876,_0x274f25,_0x5ccb97){const _0x382ae7=_0x4ca2ee;this[_0x382ae7(0x2b9)]=_0x38b876,this[_0x382ae7(0x173)]=_0x274f25,this[_0x382ae7(0x227)]=_0x5ccb97,this['init']();}['init'](){const _0x487b45=_0x4ca2ee;this[_0x487b45(0x173)][_0x487b45(0x30c)]({'priority':0x1,'interceptor':(_0x29149b,_0x2cec3f)=>_0x2cec3f(_0x29149b)[_0x487b45(0x28c)]((0x0,_0x42b37f[_0x487b45(0x43d)])(async _0x53aee5=>{const _0xf1d977=_0x487b45;let _0x130200=_0x53aee5;if(_0x130200[_0xf1d977(0x43c)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window['confirm'](this[_0xf1d977(0x227)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x55acaa=window['encodeURIComponent'](window[_0xf1d977(0x2df)]['href']);window[_0xf1d977(0x2df)][_0xf1d977(0x4a2)]=this[_0xf1d977(0x1f1)]()+'?url='+_0x55acaa;}}return _0x130200;}))});}[_0x4ca2ee(0x1f1)](){const _0x2a4f91=_0x4ca2ee;let _0x572693=this['_configService']['getConfig'](_0x16372d);return(_0x572693==null?void 0x0:_0x572693[_0x2a4f91(0x1a8)])??_0x2a4f91(0x45c);}};_0x4f4c43=_0x182061([_0x51b612(0x0,_0x78cf9f[_0x4ca2ee(0x178)]),_0x51b612(0x1,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x4de411[_0x4ca2ee(0x332)])),_0x51b612(0x2,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x17a)]))],_0x4f4c43);let _0x13ade1=class extends _0x78cf9f[_0x4ca2ee(0x3b4)]{constructor(_0x111c23,_0x85e677){const _0x39c494=_0x4ca2ee;super(),this[_0x39c494(0x2f2)]=_0x111c23,this[_0x39c494(0x2b9)]=_0x85e677,_0x4f9d46(this,_0x39c494(0x1a7),!0x1),this['_initMergeInterceptor']();}[_0x4ca2ee(0x2af)](){const _0x2368be=_0x4ca2ee;let _0x5b0961=this;this[_0x2368be(0x2f7)](this[_0x2368be(0x2f2)][_0x2368be(0x30c)]({'priority':0x3e7,'interceptor':(0x0,_0x4de411[_0x2368be(0x42d)])({'isMatch'(_0x1963d3){const _0xc27692=_0x2368be;var _0xc6b05c;if(_0x1963d3[_0xc27692(0x403)]===_0xc27692(0x40a)&&(_0xc6b05c=_0x1963d3[_0xc27692(0x314)])!=null&&_0xc6b05c[_0xc27692(0x1f0)]){let {objectID:_0x185366,objectType:_0x3f2644}=_0x1963d3[_0xc27692(0x314)][_0xc27692(0x1f0)]||{};if(!_0x185366||_0x3f2644===void 0x0)return!0x1;let _0x478a1b=_0x5b0961[_0xc27692(0x288)]()+'/'+_0x3f2644+'/object/'+encodeURIComponent(_0x185366)+_0xc27692(0x35e);if(_0x1963d3[_0xc27692(0x2ac)]===_0x478a1b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xdc39a9){const _0x5d98da=_0x2368be;var _0x112c60;return(_0x112c60=_0xdc39a9[_0x5d98da(0x314)])==null?void 0x0:_0x112c60[_0x5d98da(0x1f0)];},'mergeParamsToRequest'(_0x331ee3,_0x55ffb1){const _0x3c7185=_0x2368be;let _0x38823c=_0x5b0961['_getAPIPrefixPath']()+_0x3c7185(0x3f1),_0x4af65b=_0x331ee3[_0x3c7185(0x4a1)]((_0x2a4b17,_0x3daa3c)=>{const _0xa97dc7=_0x3c7185;let {unitID:_0x1b9c9f,objectID:_0x1dcc0c,objectType:_0x2c0d73,actions:_0x1f212e}=_0x3daa3c;return _0x2a4b17[_0x1b9c9f]||(_0x2a4b17[_0x1b9c9f]=Object[_0xa97dc7(0x1f9)](null)),_0x2a4b17[_0x1b9c9f][_0x1dcc0c]||(_0x2a4b17[_0x1b9c9f][_0x1dcc0c]={'objectID':_0x1dcc0c,'objectType':_0x2c0d73,'actions':[]}),_0x2a4b17[_0x1b9c9f][_0x1dcc0c][_0xa97dc7(0x3d5)][_0xa97dc7(0x204)](..._0x1f212e),_0x2a4b17;},Object['create'](null)),_0x13ac1a=[];for(let _0x629e6d in _0x4af65b)for(let _0x5ecf52 in _0x4af65b[_0x629e6d]){let {actions:_0x29eabb,objectType:_0x2738df}=_0x4af65b[_0x629e6d][_0x5ecf52],_0xa6dcef=[...new Set(_0x29eabb)];_0x13ac1a[_0x3c7185(0x204)]({'unitID':_0x629e6d,'objectID':_0x5ecf52,'objectType':_0x2738df,'actions':_0xa6dcef});}return new _0x4de411[(_0x3c7185(0x30e))](_0x3c7185(0x40a),_0x38823c,{'headers':_0x55ffb1[_0x3c7185(0x279)],'withCredentials':_0x55ffb1[_0x3c7185(0x1d5)],'responseType':_0x55ffb1[_0x3c7185(0x347)],'body':{'requests':_0x13ac1a}});}},{'distributeResult'(_0x50b619,_0x353e85){let {objectActions:_0x26eb8f}=_0x50b619;return _0x353e85['map'](_0x1fa03c=>{const _0x1b104b=_0x41d6;let {unitID:_0x3106d6,objectID:_0x31376f,actions:_0x2c1b70}=_0x1fa03c,_0x439d4b=_0x26eb8f['find'](_0x97ba73=>_0x97ba73[_0x1b104b(0x272)]===_0x3106d6&&_0x97ba73['objectID']===_0x31376f);return{'config':_0x1fa03c,'result':{'actions':_0x2c1b70[_0x1b104b(0x2b8)](_0x10f1d8=>_0x439d4b==null?void 0x0:_0x439d4b[_0x1b104b(0x3d5)][_0x1b104b(0x224)](_0xdf8804=>_0xdf8804[_0x1b104b(0x19a)]===_0x10f1d8))[_0x1b104b(0x2cc)](_0x2b3505=>!!_0x2b3505),'error':_0x50b619[_0x1b104b(0x2a2)]}};});}})}));}[_0x4ca2ee(0x288)](){const _0x38710d=_0x4ca2ee;let _0x1d2480=this['_configService'][_0x38710d(0x433)](_0x16372d);return(_0x1d2480==null?void 0x0:_0x1d2480[_0x38710d(0x421)])??_0x38710d(0x368);}async[_0x4ca2ee(0x1f9)](_0x510a26){const _0x1bfa08=_0x4ca2ee;let _0x41ae24=this[_0x1bfa08(0x288)]()+'/'+_0x510a26[_0x1bfa08(0x367)]+_0x1bfa08(0x2eb);return(await this['_HTTPService'][_0x1bfa08(0x186)](_0x41ae24,{'body':_0x510a26}))[_0x1bfa08(0x1f0)][_0x1bfa08(0x4b8)]||'';}async[_0x4ca2ee(0x1b4)](_0x4095f6){const _0x4f02bc=_0x4ca2ee;let _0x34dc48=this[_0x4f02bc(0x288)]()+_0x4f02bc(0x32b);return(await this[_0x4f02bc(0x2f2)]['post'](_0x34dc48,{'body':_0x4095f6}))[_0x4f02bc(0x1f0)][_0x4f02bc(0x263)];}async['update'](_0xa3e9d5){const _0xc403e0=_0x4ca2ee;var _0x51d5ba;let _0x278cda=this['_getAPIPrefixPath']()+'/'+_0xa3e9d5[_0xc403e0(0x367)]+_0xc403e0(0x165)+encodeURIComponent(_0xa3e9d5[_0xc403e0(0x4b8)]),_0x3c42d4=await this[_0xc403e0(0x2f2)][_0xc403e0(0x41c)](_0x278cda,{'body':_0xa3e9d5});if((_0x3c42d4==null||(_0x51d5ba=_0x3c42d4[_0xc403e0(0x1f0)])==null||(_0x51d5ba=_0x51d5ba[_0xc403e0(0x2a2)])==null?void 0x0:_0x51d5ba['code'])!==0x1)throw Error(_0xc403e0(0x255));}async['allowed'](_0x3f33f2){const _0x1c46e2=_0x4ca2ee;let _0xff306f=this[_0x1c46e2(0x288)]()+'/'+_0x3f33f2[_0x1c46e2(0x367)]+_0x1c46e2(0x165)+encodeURIComponent(_0x3f33f2[_0x1c46e2(0x4b8)])+_0x1c46e2(0x35e);return(await this[_0x1c46e2(0x2f2)]['post'](_0xff306f,{'body':_0x3f33f2}))['body'][_0x1c46e2(0x3d5)];}async[_0x4ca2ee(0x20a)](_0x3a7bf0){const _0x23f53a=_0x4ca2ee;let _0x2ccd7d=this[_0x23f53a(0x288)]()+_0x23f53a(0x3f1);return(await this[_0x23f53a(0x2f2)][_0x23f53a(0x186)](_0x2ccd7d,{'body':{'requests':_0x3a7bf0}}))['body'][_0x23f53a(0x21c)];}async['listRoles'](_0x5b94d8){const _0x38355e=_0x4ca2ee;let _0x599cdf=this[_0x38355e(0x288)]()+'/'+_0x5b94d8[_0x38355e(0x367)]+_0x38355e(0x23e),_0xc11b8d=await this['_HTTPService']['post'](_0x599cdf,{'body':_0x5b94d8});return{'roles':_0xc11b8d[_0x38355e(0x1f0)][_0x38355e(0x2d9)],'actions':_0xc11b8d[_0x38355e(0x1f0)][_0x38355e(0x3d5)]};}async[_0x4ca2ee(0x1ab)](_0x30c1b4){const _0x55adc5=_0x4ca2ee;let _0x723fd5=this['_getAPIPrefixPath']()+_0x55adc5(0x416);await this[_0x55adc5(0x2f2)][_0x55adc5(0x483)](_0x723fd5,{'params':{'collaboratorID':_0x30c1b4[_0x55adc5(0x476)],'objectID':_0x30c1b4['objectID'],'unitID':_0x30c1b4[_0x55adc5(0x272)]}});}async[_0x4ca2ee(0x2dd)](_0x450240){const _0x167a23=_0x4ca2ee;let _0x4a5486=this['_getAPIPrefixPath']()+_0x167a23(0x416);await this['_HTTPService'][_0x167a23(0x2c2)](_0x4a5486,{'body':_0x450240});}async[_0x4ca2ee(0x38b)](_0x46b92d){const _0x45e7fc=_0x4ca2ee;let _0x597bfc=this[_0x45e7fc(0x288)]()+_0x45e7fc(0x416);await this['_HTTPService'][_0x45e7fc(0x186)](_0x597bfc,{'body':_0x46b92d});}async[_0x4ca2ee(0x2a8)](_0x402f3e){const _0x8ade01=_0x4ca2ee;let _0x37e1d1=this['_getAPIPrefixPath']()+_0x8ade01(0x416),_0x49b4f4=await this['_HTTPService']['get'](_0x37e1d1,{'params':{'objectID':_0x402f3e[_0x8ade01(0x4b8)],'unitID':_0x402f3e['unitID']}});return this[_0x8ade01(0x38a)](_0x49b4f4[_0x8ade01(0x1f0)][_0x8ade01(0x4a9)]??!0x1),_0x49b4f4['body'][_0x8ade01(0x3fd)];}async[_0x4ca2ee(0x350)](_0x5249be){const _0x3a2916=_0x4ca2ee;let _0x244ac1=this[_0x3a2916(0x288)]()+_0x3a2916(0x416);await this[_0x3a2916(0x2f2)][_0x3a2916(0x41c)](_0x244ac1,{'body':_0x5249be});}[_0x4ca2ee(0x38a)](_0x17d4c3){const _0xca342b=_0x4ca2ee;this[_0xca342b(0x1a7)]=_0x17d4c3;}[_0x4ca2ee(0x37e)](){const _0x295305=_0x4ca2ee;return this[_0x295305(0x1a7)];}};_0x13ade1=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x4de411[_0x4ca2ee(0x332)])),_0x51b612(0x1,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x178)]))],_0x13ade1);function _0x7611e7(_0x2baf8d){const _0x98051c=_0x4ca2ee;return _0x2baf8d instanceof Uint8Array||ArrayBuffer[_0x98051c(0x41e)](_0x2baf8d)&&_0x2baf8d[_0x98051c(0x247)][_0x98051c(0x39d)]===_0x98051c(0x30b)&&'BYTES_PER_ELEMENT'in _0x2baf8d&&_0x2baf8d[_0x98051c(0x4b9)]===0x1;}let _0x494d7b=_0x5cb76c=>_0x5cb76c?'\x22'+_0x5cb76c+'\x22\x20':'';function _0x52caff(_0x523c49,_0x1611ff=''){const _0x49c813=_0x4ca2ee;if(typeof _0x523c49!=_0x49c813(0x30f))throw TypeError(_0x494d7b(_0x1611ff)+_0x49c813(0x218)+typeof _0x523c49);if(!Number[_0x49c813(0x191)](_0x523c49)||_0x523c49<0x0)throw RangeError(_0x494d7b(_0x1611ff)+'expected\x20integer\x20>=\x200,\x20got\x20'+_0x523c49);return _0x523c49;}function _0x37a082(_0x483c34,_0x4da27e,_0x3bb18a=''){const _0x15ec19=_0x4ca2ee;if(_0x7611e7(_0x483c34)&&(_0x4da27e===void 0x0||_0x483c34['length']===_0x4da27e))return _0x483c34;_0x4da27e!==void 0x0&&_0x52caff(_0x4da27e,_0x15ec19(0x452));let _0x3eef12=_0x7611e7(_0x483c34),_0x20da11=_0x4da27e===void 0x0?'':_0x15ec19(0x33e)+_0x4da27e,_0x3e0238=_0x3eef12?_0x15ec19(0x321)+_0x483c34[_0x15ec19(0x452)]:_0x15ec19(0x4b2)+typeof _0x483c34,_0x3f4519=_0x494d7b(_0x3bb18a)+_0x15ec19(0x308)+_0x20da11+_0x15ec19(0x285)+_0x3e0238;throw _0x3eef12?RangeError(_0x3f4519):TypeError(_0x3f4519);}function _0x39eec9(_0x30a4ee){const _0x55cb0b=_0x4ca2ee;return new Uint32Array(_0x30a4ee['buffer'],_0x30a4ee[_0x55cb0b(0x2b5)],Math[_0x55cb0b(0x44b)](_0x30a4ee['byteLength']/0x4));}function _0x4cc9dc(..._0x119e85){const _0x249b15=_0x4ca2ee;for(let _0x2bac66=0x0;_0x2bac66<_0x119e85[_0x249b15(0x452)];_0x2bac66++)_0x119e85[_0x2bac66][_0x249b15(0x3ec)](0x0);}let _0x48b85c=new Uint8Array(new Uint32Array([0x11223344])[_0x4ca2ee(0x309)])[0x0]===0x44;function _0x328b84(_0x1739a2){return _0x1739a2<<0x18&0xff000000|_0x1739a2<<0x8&0xff0000|_0x1739a2>>>0x8&0xff00|_0x1739a2>>>0x18&0xff;}function _0x297ab6(_0x52b87b){for(let _0x146d84=0x0;_0x146d84<_0x52b87b['length'];_0x146d84++)_0x52b87b[_0x146d84]=_0x328b84(_0x52b87b[_0x146d84]);return _0x52b87b;}let _0x1782d2=_0x48b85c?_0x3144f1=>_0x3144f1:_0x297ab6;function _0x409473(_0x429ec6){const _0x4a1da9=_0x4ca2ee;if(typeof _0x429ec6!=_0x4a1da9(0x4b5))throw TypeError('string\x20expected');return new Uint8Array(new TextEncoder()[_0x4a1da9(0x306)](_0x429ec6));}function _0x378bc8(_0x1a47c9,_0x3aed2c){const _0x54ba75=_0x4ca2ee;return!_0x1a47c9[_0x54ba75(0x328)]||!_0x3aed2c['byteLength']?!0x1:_0x1a47c9['buffer']===_0x3aed2c['buffer']&&_0x1a47c9['byteOffset']<_0x3aed2c['byteOffset']+_0x3aed2c[_0x54ba75(0x328)]&&_0x3aed2c[_0x54ba75(0x2b5)]<_0x1a47c9[_0x54ba75(0x2b5)]+_0x1a47c9[_0x54ba75(0x328)];}function _0xf5e542(_0x58750f,_0x589b24){const _0xf027d=_0x4ca2ee;if(_0x378bc8(_0x58750f,_0x589b24)&&_0x58750f[_0xf027d(0x2b5)]<_0x589b24[_0xf027d(0x2b5)])throw Error(_0xf027d(0x207));}function _0x3a63c3(..._0x4d79cf){const _0x279971=_0x4ca2ee;let _0x5ceb3a=0x0;for(let _0x47777f=0x0;_0x47777f<_0x4d79cf[_0x279971(0x452)];_0x47777f++){let _0x145b0f=_0x4d79cf[_0x47777f];_0x37a082(_0x145b0f),_0x5ceb3a+=_0x145b0f[_0x279971(0x452)];}let _0x5f171f=new Uint8Array(_0x5ceb3a);for(let _0xefd57e=0x0,_0x382d4a=0x0;_0xefd57e<_0x4d79cf[_0x279971(0x452)];_0xefd57e++){let _0x585c39=_0x4d79cf[_0xefd57e];_0x5f171f[_0x279971(0x3e8)](_0x585c39,_0x382d4a),_0x382d4a+=_0x585c39[_0x279971(0x452)];}return _0x5f171f;}let _0x4cb10b=(_0x428839,_0x1e17bf)=>{function _0x579e05(_0x201c7b,..._0x567c3b){const _0x7f3609=_0x41d6;if(_0x37a082(_0x201c7b,void 0x0,_0x7f3609(0x1f7)),_0x428839[_0x7f3609(0x340)]!==void 0x0){let _0x142a02=_0x567c3b[0x0];_0x37a082(_0x142a02,_0x428839[_0x7f3609(0x3e1)]?void 0x0:_0x428839[_0x7f3609(0x340)],'nonce');}let _0x22eda3=_0x428839[_0x7f3609(0x333)],_0x1d06a0=_0x428839[_0x7f3609(0x340)]===void 0x0?0x0:0x1;if(!_0x428839['withAAD']){for(let _0x3fa1a7=_0x1d06a0;_0x3fa1a7<_0x567c3b[_0x7f3609(0x452)];_0x3fa1a7++)if(_0x7611e7(_0x567c3b[_0x3fa1a7]))throw Error('AAD\x20not\x20supported');}_0x428839[_0x7f3609(0x18b)]&&_0x567c3b[_0x1d06a0]!==void 0x0&&_0x37a082(_0x567c3b[_0x1d06a0],void 0x0,_0x7f3609(0x303));let _0x308b58=_0x1e17bf(_0x201c7b,..._0x567c3b),_0x364e39=(_0x2d8aed,_0x36eebc)=>{const _0x2a722d=_0x7f3609;if(_0x36eebc!==void 0x0){if(_0x2d8aed!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x37a082(_0x36eebc,void 0x0,_0x2a722d(0x16a));}},_0x51f41a=!0x1;return{'encrypt'(_0x16b090,_0xd6c3d7){const _0x21a72a=_0x7f3609;if(_0x51f41a)throw Error(_0x21a72a(0x46e));return _0x51f41a=!0x0,_0x37a082(_0x16b090,void 0x0,'data'),_0x364e39(_0x308b58[_0x21a72a(0x3ce)][_0x21a72a(0x452)],_0xd6c3d7),_0x308b58[_0x21a72a(0x3ce)](_0x16b090,_0xd6c3d7);},'decrypt'(_0x53872e,_0x396469){const _0x22ba88=_0x7f3609;if(_0x37a082(_0x53872e,void 0x0,_0x22ba88(0x3d6)),_0x22eda3&&_0x53872e[_0x22ba88(0x452)]<_0x22eda3)throw Error(_0x22ba88(0x2ab)+_0x22eda3);return _0x364e39(_0x308b58['decrypt']['length'],_0x396469),_0x308b58[_0x22ba88(0x1f8)](_0x53872e,_0x396469);}};}return Object['assign'](_0x579e05,_0x428839),_0x579e05;};function _0x43fc2a(_0x3f95ab,_0x4fbe49,_0xfa39d5=!0x0){const _0x4d764b=_0x4ca2ee;if(_0x4fbe49===void 0x0)return new Uint8Array(_0x3f95ab);if(_0x37a082(_0x4fbe49,_0x3f95ab,_0x4d764b(0x16a)),_0xfa39d5&&!_0x4d41c0(_0x4fbe49))throw Error(_0x4d764b(0x4a7));return _0x4fbe49;}function _0x4d41c0(_0x545dbb){const _0x256f6a=_0x4ca2ee;return _0x545dbb[_0x256f6a(0x2b5)]%0x4==0x0;}function _0x1738cb(_0x14f873){return Uint8Array['from'](_0x37a082(_0x14f873));}function _0x2da5ed(_0x4c7541=0x20){const _0x5ecbaf=_0x4ca2ee;_0x52caff(_0x4c7541,_0x5ecbaf(0x2e1));let _0x5a871a=typeof globalThis==_0x5ecbaf(0x369)?globalThis[_0x5ecbaf(0x33a)]:null;if(typeof(_0x5a871a==null?void 0x0:_0x5a871a[_0x5ecbaf(0x1a6)])!=_0x5ecbaf(0x4bc))throw Error('crypto.getRandomValues\x20must\x20be\x20defined');if(_0x4c7541>0x10000)throw RangeError(_0x5ecbaf(0x3eb)+_0x4c7541);return _0x5a871a['getRandomValues'](new Uint8Array(_0x4c7541));}function _0x1e362d(_0x578b45){const _0x211b6f=_0x4ca2ee;if(![0x10,0x18,0x20]['includes'](_0x578b45[_0x211b6f(0x452)]))throw Error(_0x211b6f(0x261)+_0x578b45[_0x211b6f(0x452)]);}function _0x5056e9(_0x2f0df5){return _0x2f0df5<<0x1^0x11b&-(_0x2f0df5>>0x7);}function _0x3654e4(_0x2779b3,_0xcfab04){let _0x1938c4=0x0;for(;_0xcfab04>0x0;_0xcfab04>>=0x1)_0x1938c4^=_0x2779b3&-(_0xcfab04&0x1),_0x2779b3=_0x5056e9(_0x2779b3);return _0x1938c4;}let _0x5d52f8=((()=>{let _0x298a6e=new Uint8Array(0x100);for(let _0x1a046e=0x0,_0x4fe0f2=0x1;_0x1a046e<0x100;_0x1a046e++,_0x4fe0f2^=_0x5056e9(_0x4fe0f2))_0x298a6e[_0x1a046e]=_0x4fe0f2;let _0x12c821=new Uint8Array(0x100);_0x12c821[0x0]=0x63;for(let _0x5b0b55=0x0;_0x5b0b55<0xff;_0x5b0b55++){let _0x4902f9=_0x298a6e[0xff-_0x5b0b55];_0x4902f9|=_0x4902f9<<0x8,_0x12c821[_0x298a6e[_0x5b0b55]]=(_0x4902f9^_0x4902f9>>0x4^_0x4902f9>>0x5^_0x4902f9>>0x6^_0x4902f9>>0x7^0x63)&0xff;}return _0x4cc9dc(_0x298a6e),_0x12c821;})()),_0x23244f=_0x5d52f8['map']((_0x39b8e,_0x469729)=>_0x5d52f8[_0x4ca2ee(0x1e4)](_0x469729)),_0x31c5f2=_0x422aa7=>_0x422aa7<<0x18|_0x422aa7>>>0x8,_0x2f5841=_0x4c7650=>_0x4c7650<<0x8|_0x4c7650>>>0x18;function _0x38a114(_0x43e3a0,_0x570966){const _0x4c81c4=_0x4ca2ee;if(_0x43e3a0['length']!==0x100)throw Error(_0x4c81c4(0x3b6));let _0x2e01c7=new Uint32Array(0x100)[_0x4c81c4(0x2b8)]((_0x434ccd,_0x55b5e8)=>_0x570966(_0x43e3a0[_0x55b5e8])),_0x2013d3=_0x2e01c7[_0x4c81c4(0x2b8)](_0x2f5841),_0x2b6561=_0x2013d3[_0x4c81c4(0x2b8)](_0x2f5841),_0x163339=_0x2b6561[_0x4c81c4(0x2b8)](_0x2f5841),_0xbf1f18=new Uint32Array(0x10000),_0x4822ba=new Uint32Array(0x10000),_0xd649b4=new Uint16Array(0x10000);for(let _0x7c704d=0x0;_0x7c704d<0x100;_0x7c704d++)for(let _0xd28eae=0x0;_0xd28eae<0x100;_0xd28eae++){let _0x9c1c51=_0x7c704d*0x100+_0xd28eae;_0xbf1f18[_0x9c1c51]=_0x2e01c7[_0x7c704d]^_0x2013d3[_0xd28eae],_0x4822ba[_0x9c1c51]=_0x2b6561[_0x7c704d]^_0x163339[_0xd28eae],_0xd649b4[_0x9c1c51]=_0x43e3a0[_0x7c704d]<<0x8|_0x43e3a0[_0xd28eae];}return{'sbox':_0x43e3a0,'sbox2':_0xd649b4,'T0':_0x2e01c7,'T1':_0x2013d3,'T2':_0x2b6561,'T3':_0x163339,'T01':_0xbf1f18,'T23':_0x4822ba};}let _0x4545dc=_0x38a114(_0x5d52f8,_0x1665f0=>_0x3654e4(_0x1665f0,0x3)<<0x18|_0x1665f0<<0x10|_0x1665f0<<0x8|_0x3654e4(_0x1665f0,0x2)),_0x32d704=_0x38a114(_0x23244f,_0x3e1e55=>_0x3654e4(_0x3e1e55,0xb)<<0x18|_0x3654e4(_0x3e1e55,0xd)<<0x10|_0x3654e4(_0x3e1e55,0x9)<<0x8|_0x3654e4(_0x3e1e55,0xe)),_0x2fd0e8=((()=>{let _0xcfc983=new Uint8Array(0x10);for(let _0x2b11c9=0x0,_0x1b5e58=0x1;_0x2b11c9<0x10;_0x2b11c9++,_0x1b5e58=_0x5056e9(_0x1b5e58))_0xcfc983[_0x2b11c9]=_0x1b5e58;return _0xcfc983;})());function _0x4763f9(_0x9123bc){const _0x112dd0=_0x4ca2ee;_0x37a082(_0x9123bc);let _0x2c3f45=_0x9123bc['length'];_0x1e362d(_0x9123bc);let {sbox2:_0x30ac34}=_0x4545dc,_0x52538a=[];(!_0x48b85c||!_0x4d41c0(_0x9123bc))&&_0x52538a['push'](_0x9123bc=_0x1738cb(_0x9123bc));let _0x11e8c6=_0x1782d2(_0x39eec9(_0x9123bc)),_0x4aca7b=_0x11e8c6[_0x112dd0(0x452)],_0x1dae1c=_0x5d5128=>_0x187451(_0x30ac34,_0x5d5128,_0x5d5128,_0x5d5128,_0x5d5128),_0x28606f=new Uint32Array(_0x2c3f45+0x1c);_0x28606f['set'](_0x11e8c6);for(let _0x663d0a=_0x4aca7b;_0x663d0a<_0x28606f[_0x112dd0(0x452)];_0x663d0a++){let _0x45771c=_0x28606f[_0x663d0a-0x1];_0x663d0a%_0x4aca7b===0x0?_0x45771c=_0x1dae1c(_0x31c5f2(_0x45771c))^_0x2fd0e8[_0x663d0a/_0x4aca7b-0x1]:_0x4aca7b>0x6&&_0x663d0a%_0x4aca7b===0x4&&(_0x45771c=_0x1dae1c(_0x45771c)),_0x28606f[_0x663d0a]=_0x28606f[_0x663d0a-_0x4aca7b]^_0x45771c;}return _0x4cc9dc(..._0x52538a),_0x28606f;}function _0xbe8d03(_0x14e91c){const _0x211e8e=_0x4ca2ee;let _0x3a81ed=_0x4763f9(_0x14e91c),_0x2f293a=_0x3a81ed[_0x211e8e(0x4c3)](),_0x7efab3=_0x3a81ed['length'],{sbox2:_0x79b3a2}=_0x4545dc,{T0:_0x29fc23,T1:_0x2f8a01,T2:_0x3a201f,T3:_0x456c2d}=_0x32d704;for(let _0x5875da=0x0;_0x5875da<_0x7efab3;_0x5875da+=0x4)for(let _0x1f526f=0x0;_0x1f526f<0x4;_0x1f526f++)_0x2f293a[_0x5875da+_0x1f526f]=_0x3a81ed[_0x7efab3-_0x5875da-0x4+_0x1f526f];_0x4cc9dc(_0x3a81ed);for(let _0x9354e7=0x4;_0x9354e7<_0x7efab3-0x4;_0x9354e7++){let _0x5897d5=_0x2f293a[_0x9354e7],_0x2c95af=_0x187451(_0x79b3a2,_0x5897d5,_0x5897d5,_0x5897d5,_0x5897d5);_0x2f293a[_0x9354e7]=_0x29fc23[_0x2c95af&0xff]^_0x2f8a01[_0x2c95af>>>0x8&0xff]^_0x3a201f[_0x2c95af>>>0x10&0xff]^_0x456c2d[_0x2c95af>>>0x18];}return _0x2f293a;}function _0x4807e5(_0x559ce5,_0x1a1ecb,_0x4b9097,_0x251c55,_0x3d8a94,_0x383b98){return _0x559ce5[_0x4b9097<<0x8&0xff00|_0x251c55>>>0x8&0xff]^_0x1a1ecb[_0x3d8a94>>>0x8&0xff00|_0x383b98>>>0x18&0xff];}function _0x187451(_0x229f3d,_0x29e5ff,_0x48f869,_0x5c24e7,_0x275650){return _0x229f3d[_0x29e5ff&0xff|_0x48f869&0xff00]|_0x229f3d[_0x5c24e7>>>0x10&0xff|_0x275650>>>0x10&0xff00]<<0x10;}function _0x464c89(_0x1a2424,_0x329e9e,_0x1aad5e,_0x43adb1,_0x290902){const _0x436f92=_0x4ca2ee;let {sbox2:_0x5ca909,T01:_0x28ba77,T23:_0x11c934}=_0x4545dc,_0x57c02e=0x0;_0x329e9e^=_0x1a2424[_0x57c02e++],_0x1aad5e^=_0x1a2424[_0x57c02e++],_0x43adb1^=_0x1a2424[_0x57c02e++],_0x290902^=_0x1a2424[_0x57c02e++];let _0x332baf=_0x1a2424[_0x436f92(0x452)]/0x4-0x2;for(let _0x3b1d9c=0x0;_0x3b1d9c<_0x332baf;_0x3b1d9c++){let _0x50bfb7=_0x1a2424[_0x57c02e++]^_0x4807e5(_0x28ba77,_0x11c934,_0x329e9e,_0x1aad5e,_0x43adb1,_0x290902),_0x3634cc=_0x1a2424[_0x57c02e++]^_0x4807e5(_0x28ba77,_0x11c934,_0x1aad5e,_0x43adb1,_0x290902,_0x329e9e),_0x6e8fd2=_0x1a2424[_0x57c02e++]^_0x4807e5(_0x28ba77,_0x11c934,_0x43adb1,_0x290902,_0x329e9e,_0x1aad5e),_0x2ca97d=_0x1a2424[_0x57c02e++]^_0x4807e5(_0x28ba77,_0x11c934,_0x290902,_0x329e9e,_0x1aad5e,_0x43adb1);_0x329e9e=_0x50bfb7,_0x1aad5e=_0x3634cc,_0x43adb1=_0x6e8fd2,_0x290902=_0x2ca97d;}return{'s0':_0x1a2424[_0x57c02e++]^_0x187451(_0x5ca909,_0x329e9e,_0x1aad5e,_0x43adb1,_0x290902),'s1':_0x1a2424[_0x57c02e++]^_0x187451(_0x5ca909,_0x1aad5e,_0x43adb1,_0x290902,_0x329e9e),'s2':_0x1a2424[_0x57c02e++]^_0x187451(_0x5ca909,_0x43adb1,_0x290902,_0x329e9e,_0x1aad5e),'s3':_0x1a2424[_0x57c02e++]^_0x187451(_0x5ca909,_0x290902,_0x329e9e,_0x1aad5e,_0x43adb1)};}function _0x3e4899(_0x561bcf,_0x576b4e,_0x1df6e0,_0x3bee60,_0x41de77){let {sbox2:_0x3d6535,T01:_0x407907,T23:_0x218059}=_0x32d704,_0x595c1e=0x0;_0x576b4e^=_0x561bcf[_0x595c1e++],_0x1df6e0^=_0x561bcf[_0x595c1e++],_0x3bee60^=_0x561bcf[_0x595c1e++],_0x41de77^=_0x561bcf[_0x595c1e++];let _0xa6f70e=_0x561bcf['length']/0x4-0x2;for(let _0x38914d=0x0;_0x38914d<_0xa6f70e;_0x38914d++){let _0x2baa17=_0x561bcf[_0x595c1e++]^_0x4807e5(_0x407907,_0x218059,_0x576b4e,_0x41de77,_0x3bee60,_0x1df6e0),_0x26585b=_0x561bcf[_0x595c1e++]^_0x4807e5(_0x407907,_0x218059,_0x1df6e0,_0x576b4e,_0x41de77,_0x3bee60),_0x4d0bfb=_0x561bcf[_0x595c1e++]^_0x4807e5(_0x407907,_0x218059,_0x3bee60,_0x1df6e0,_0x576b4e,_0x41de77),_0xae55f2=_0x561bcf[_0x595c1e++]^_0x4807e5(_0x407907,_0x218059,_0x41de77,_0x3bee60,_0x1df6e0,_0x576b4e);_0x576b4e=_0x2baa17,_0x1df6e0=_0x26585b,_0x3bee60=_0x4d0bfb,_0x41de77=_0xae55f2;}return{'s0':_0x561bcf[_0x595c1e++]^_0x187451(_0x3d6535,_0x576b4e,_0x41de77,_0x3bee60,_0x1df6e0),'s1':_0x561bcf[_0x595c1e++]^_0x187451(_0x3d6535,_0x1df6e0,_0x576b4e,_0x41de77,_0x3bee60),'s2':_0x561bcf[_0x595c1e++]^_0x187451(_0x3d6535,_0x3bee60,_0x1df6e0,_0x576b4e,_0x41de77),'s3':_0x561bcf[_0x595c1e++]^_0x187451(_0x3d6535,_0x41de77,_0x3bee60,_0x1df6e0,_0x576b4e)};}function _0x557583(_0x41c129,_0x2b5571){const _0x3af168=_0x4ca2ee;if(_0x37a082(_0x41c129),_0x41c129[_0x3af168(0x452)]%0x10!=0x0)throw Error(_0x3af168(0x1cb));_0x2b5571!==void 0x0&&(_0x43fc2a(_0x41c129[_0x3af168(0x452)],_0x2b5571),_0xf5e542(_0x41c129,_0x2b5571));}function _0x5dade8(_0x59d502,_0x3111b2,_0x5becc4){_0x37a082(_0x59d502);let _0x196eb7=_0x59d502['length'],_0x54e65c=_0x196eb7%0x10;if(!_0x3111b2&&_0x54e65c!==0x0)throw Error('plaintext\x20must\x20be\x20multiple\x20of\x2016');if(_0x3111b2){let _0xf5592e=0x10-_0x54e65c;_0xf5592e||=0x10,_0x196eb7+=_0xf5592e;}return _0x5becc4!==void 0x0&&(_0x43fc2a(_0x196eb7,_0x5becc4),_0xf5e542(_0x59d502,_0x5becc4)),_0x196eb7;}function _0x5edbfa(_0x43f20a,_0x53dd5f,_0x3355af){_0x3355af===void 0x0&&(_0x3355af=new Uint8Array(_0x53dd5f)),(!_0x48b85c||!_0x4d41c0(_0x43f20a))&&(_0x43f20a=_0x1738cb(_0x43f20a));let _0x2ffeea=_0x39eec9(_0x3355af);return{'b':_0x43f20a,'o':_0x2ffeea,'out':_0x3355af};}function _0x5c6ce8(_0x8b1aba,_0x8872e1){const _0x56074a=_0x4ca2ee;if(!_0x8872e1)return _0x8b1aba;let _0x17454c=_0x8b1aba[_0x56074a(0x452)];if(_0x17454c===0x0)throw Error(_0x56074a(0x3cc));let _0x661ca1=_0x8b1aba[_0x17454c-0x1],_0x32ee78=0x1;_0x32ee78&=_0x661ca1-0x1>>>0x1f^0x1,_0x32ee78&=0x10-_0x661ca1>>>0x1f^0x1;for(let _0x56b9c2=0x0;_0x56b9c2<0x10;_0x56b9c2++){let _0x56d452=_0x56b9c2-_0x661ca1>>>0x1f,_0x399adf=+((_0x8b1aba[_0x17454c-0x1-_0x56b9c2]^_0x661ca1)===0x0);_0x32ee78&=_0x399adf|_0x56d452^0x1;}if(!_0x32ee78)throw Error('aes:\x20bad\x20decrypt');return _0x8b1aba[_0x56074a(0x2be)](0x0,_0x17454c-_0x661ca1);}function _0x192134(_0x5451af){const _0x334f0e=_0x4ca2ee;let _0xfd4bc2=new Uint8Array(0x10),_0xdf32c8=_0x39eec9(_0xfd4bc2);_0xfd4bc2['set'](_0x5451af);let _0x4e0bc2=0x10-_0x5451af[_0x334f0e(0x452)];for(let _0x4994d4=0x10-_0x4e0bc2;_0x4994d4<0x10;_0x4994d4++)_0xfd4bc2[_0x4994d4]=_0x4e0bc2;return _0xdf32c8;}let _0x221ff5=_0x4cb10b({'blockSize':0x10,'nonceLength':0x10},function(_0x40bf63,_0x14d24e,_0x5dfe26={}){const _0x238a84=_0x4ca2ee;let _0x1a21b7=!_0x5dfe26[_0x238a84(0x49a)];return{'encrypt'(_0x517b24,_0x43fd58){const _0x202bc2=_0x238a84;let _0x2f35ae=_0x5dade8(_0x517b24,_0x1a21b7,_0x43fd58),_0xbf44b0=_0x4763f9(_0x40bf63),{b:_0x3124be,o:_0x1e0924,out:_0x34f762}=_0x5edbfa(_0x517b24,_0x2f35ae,_0x43fd58),_0x1129a9=_0x39eec9(_0x3124be);_0x1782d2(_0x1129a9);let _0x42e381=_0x14d24e,_0x342e3e=[_0xbf44b0];(!_0x48b85c||!_0x4d41c0(_0x42e381))&&_0x342e3e[_0x202bc2(0x204)](_0x42e381=_0x1738cb(_0x42e381));let _0xf83584=_0x39eec9(_0x42e381);_0x1782d2(_0xf83584);let _0x5697e2=_0xf83584[0x0],_0x977e0c=_0xf83584[0x1],_0x2230a3=_0xf83584[0x2],_0x47616b=_0xf83584[0x3],_0x33c5af=0x0;for(;_0x33c5af+0x4<=_0x1129a9[_0x202bc2(0x452)];)_0x5697e2^=_0x1129a9[_0x33c5af+0x0],_0x977e0c^=_0x1129a9[_0x33c5af+0x1],_0x2230a3^=_0x1129a9[_0x33c5af+0x2],_0x47616b^=_0x1129a9[_0x33c5af+0x3],{s0:_0x5697e2,s1:_0x977e0c,s2:_0x2230a3,s3:_0x47616b}=_0x464c89(_0xbf44b0,_0x5697e2,_0x977e0c,_0x2230a3,_0x47616b),_0x1e0924[_0x33c5af++]=_0x5697e2,_0x1e0924[_0x33c5af++]=_0x977e0c,_0x1e0924[_0x33c5af++]=_0x2230a3,_0x1e0924[_0x33c5af++]=_0x47616b;if(_0x1a21b7){let _0x49403c=_0x192134(_0x517b24[_0x202bc2(0x2be)](_0x33c5af*0x4));_0x1782d2(_0x49403c),_0x5697e2^=_0x49403c[0x0],_0x977e0c^=_0x49403c[0x1],_0x2230a3^=_0x49403c[0x2],_0x47616b^=_0x49403c[0x3],{s0:_0x5697e2,s1:_0x977e0c,s2:_0x2230a3,s3:_0x47616b}=_0x464c89(_0xbf44b0,_0x5697e2,_0x977e0c,_0x2230a3,_0x47616b),_0x1e0924[_0x33c5af++]=_0x5697e2,_0x1e0924[_0x33c5af++]=_0x977e0c,_0x1e0924[_0x33c5af++]=_0x2230a3,_0x1e0924[_0x33c5af++]=_0x47616b,_0x4cc9dc(_0x49403c);}return _0x1782d2(_0x1e0924),_0x4cc9dc(..._0x342e3e),_0x3124be!==_0x517b24&&_0x4cc9dc(_0x3124be),_0x34f762;},'decrypt'(_0x4850f9,_0x1cb8ba){const _0x37e6d8=_0x238a84;_0x557583(_0x4850f9,_0x1cb8ba);let _0x1cc841=_0xbe8d03(_0x40bf63);_0x1cb8ba===void 0x0&&(_0x1cb8ba=new Uint8Array(_0x4850f9['length']));let _0x3c53eb=_0x14d24e,_0x279c9d=[_0x1cc841];(!_0x48b85c||!_0x4d41c0(_0x3c53eb))&&_0x279c9d[_0x37e6d8(0x204)](_0x3c53eb=_0x1738cb(_0x3c53eb));let _0x184a57=_0x39eec9(_0x3c53eb);_0x1782d2(_0x184a57),(!_0x48b85c||!_0x4d41c0(_0x4850f9))&&_0x279c9d['push'](_0x4850f9=_0x1738cb(_0x4850f9));let _0xf446f2=_0x39eec9(_0x4850f9),_0x17aea0=_0x39eec9(_0x1cb8ba);_0x1782d2(_0xf446f2);let _0x53a672=_0x184a57[0x0],_0x117886=_0x184a57[0x1],_0x4e560b=_0x184a57[0x2],_0x5eca7f=_0x184a57[0x3];for(let _0xcf6556=0x0;_0xcf6556+0x4<=_0xf446f2[_0x37e6d8(0x452)];){let _0x47739e=_0x53a672,_0x58f939=_0x117886,_0x400dd8=_0x4e560b,_0x4e48a9=_0x5eca7f;_0x53a672=_0xf446f2[_0xcf6556+0x0],_0x117886=_0xf446f2[_0xcf6556+0x1],_0x4e560b=_0xf446f2[_0xcf6556+0x2],_0x5eca7f=_0xf446f2[_0xcf6556+0x3];let {s0:_0xbd9e6a,s1:_0x1d4784,s2:_0x23d25e,s3:_0x9bb063}=_0x3e4899(_0x1cc841,_0x53a672,_0x117886,_0x4e560b,_0x5eca7f);_0x17aea0[_0xcf6556++]=_0xbd9e6a^_0x47739e,_0x17aea0[_0xcf6556++]=_0x1d4784^_0x58f939,_0x17aea0[_0xcf6556++]=_0x23d25e^_0x400dd8,_0x17aea0[_0xcf6556++]=_0x9bb063^_0x4e48a9;}return _0x1782d2(_0x17aea0),_0x4cc9dc(..._0x279c9d),_0x5c6ce8(_0x1cb8ba,_0x1a21b7);}};});function _0x9ba16a(_0x52455a){const _0x40c655=_0x4ca2ee;let _0x1a3233=atob(_0x52455a),_0x14fa5a=new Uint8Array(_0x1a3233[_0x40c655(0x452)]);for(let _0x33bda1=0x0;_0x33bda1<_0x1a3233[_0x40c655(0x452)];_0x33bda1++)_0x14fa5a[_0x33bda1]=_0x1a3233['charCodeAt'](_0x33bda1);return _0x14fa5a;}function _0x3d243f(_0x45390c){const _0x197c1d=_0x4ca2ee;let _0x304d4c='';for(let _0x4e9238=0x0;_0x4e9238<_0x45390c[_0x197c1d(0x452)];_0x4e9238++)_0x304d4c+=String['fromCharCode'](_0x45390c[_0x4e9238]);return btoa(_0x304d4c);}function _0x40ea95(_0x5807b4,_0x58d235){const _0x2b8bda=_0x4ca2ee;let _0x19ec1d=_0x9ba16a(_0x58d235),_0x36511e=_0x2da5ed(0x10);return _0x3d243f(_0x3a63c3(_0x36511e,_0x221ff5(_0x19ec1d,_0x36511e)[_0x2b8bda(0x3ce)](_0x409473(_0x5807b4))));}function _0x2d76a6(){const _0x48cb0a=_0x4ca2ee;let _0x4f1827=(0x0,_0x25a327[_0x48cb0a(0x1d0)])()[_0x48cb0a(0x2c3)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x4f1827){let _0x5ebd0d={'time':Math[_0x48cb0a(0x44b)](Date[_0x48cb0a(0x4c6)]()/0x3e8),'domain':location[_0x48cb0a(0x299)]};return _0x40ea95(JSON[_0x48cb0a(0x2cf)](_0x5ebd0d),_0x4f1827);}}let _0x536787=class{constructor(_0x6286ec){const _0x57b866=_0x4ca2ee;this[_0x57b866(0x173)]=_0x6286ec,this[_0x57b866(0x373)]();}[_0x4ca2ee(0x373)](){const _0x341995=_0x4ca2ee;this[_0x341995(0x173)][_0x341995(0x30c)]({'interceptor':(_0x379074,_0x1bcdb3)=>{const _0x34884e=_0x341995;let _0x35e985=_0x2d76a6();return _0x35e985&&_0x379074[_0x34884e(0x279)]['set'](_0x34884e(0x468),_0x35e985),_0x1bcdb3(_0x379074);}});}};_0x536787=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f['Inject'])(_0x4de411[_0x4ca2ee(0x332)]))],_0x536787);let _0x2d725c=class extends _0x78cf9f[_0x4ca2ee(0x342)]{constructor(_0x59dc01,_0x18d6f1,_0x110991){const _0x2823ac=_0x4ca2ee;super(),this[_0x2823ac(0x290)]=_0x59dc01,this['_snapshotService']=_0x18d6f1,this[_0x2823ac(0x455)]=_0x110991,_0x4f9d46(this,'_unitInfo$',new _0x42b37f[(_0x2823ac(0x43f))](null)),_0x4f9d46(this,_0x2823ac(0x302),new _0x42b37f['Subject']()),_0x4f9d46(this,_0x2823ac(0x19c),this['_unitInfo$'][_0x2823ac(0x4d3)]()),_0x4f9d46(this,_0x2823ac(0x296),this[_0x2823ac(0x302)][_0x2823ac(0x4d3)]());}[_0x4ca2ee(0x48f)](){const _0x39904b=_0x4ca2ee;super[_0x39904b(0x48f)](),this[_0x39904b(0x302)][_0x39904b(0x245)](),this[_0x39904b(0x37b)]['complete']();}async[_0x4ca2ee(0x199)](_0xd1ff89,_0x38c056,_0x469cb5,_0x37c183){const _0x19ecaa=_0x4ca2ee;this['_unitInfo$'][_0x19ecaa(0x1b5)]({'unitId':_0xd1ff89,'type':_0x38c056,'subUnitId':_0x37c183});let _0x3562fe=null;switch(_0x38c056){case _0x78cf9f[_0x19ecaa(0x4a8)][_0x19ecaa(0x220)]:_0x3562fe=await this[_0x19ecaa(0x411)][_0x19ecaa(0x322)](_0xd1ff89,_0x469cb5,void 0x0,{'initialSubUnitId':_0x37c183});break;case _0x78cf9f[_0x19ecaa(0x4a8)][_0x19ecaa(0x40b)]:_0x3562fe=await this[_0x19ecaa(0x411)][_0x19ecaa(0x25b)](_0xd1ff89,_0x469cb5);break;case _0x78cf9f[_0x19ecaa(0x4a8)][_0x19ecaa(0x4c9)]:_0x3562fe=await this[_0x19ecaa(0x411)]['loadSlide'](_0xd1ff89,_0x469cb5);break;case _0x78cf9f[_0x19ecaa(0x4a8)]['UNIVER_BOARD']:_0x3562fe=await this[_0x19ecaa(0x411)][_0x19ecaa(0x295)](_0xd1ff89,_0x469cb5);break;case _0x78cf9f['UniverInstanceType']['UNIVER_BASE']:_0x3562fe=await this['_snapshotService'][_0x19ecaa(0x283)](_0xd1ff89,_0x469cb5);break;case _0x78cf9f[_0x19ecaa(0x4a8)][_0x19ecaa(0x1c7)]:_0x3562fe=await this[_0x19ecaa(0x411)][_0x19ecaa(0x42e)](_0xd1ff89,_0x469cb5);break;default:this[_0x19ecaa(0x290)]['error'](_0x19ecaa(0x26a),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');}return _0x3562fe&&this[_0x19ecaa(0x302)]['next'](_0x3562fe),_0x3562fe;}async['loadUnit'](_0x180888,_0x2bb5a2,_0x397d01){const _0x32747b=_0x4ca2ee;var _0x267aa9;this['_unitInfo$'][_0x32747b(0x1b5)]({'unitId':_0x180888,'type':_0x2bb5a2,'subUnitId':_0x397d01});let _0x207275=0x0,_0x3ce090=await((_0x267aa9=this[_0x32747b(0x455)])==null?void 0x0:_0x267aa9['loadOfflineData'](_0x180888));return _0x3ce090&&(_0x3ce090[_0x32747b(0x477)]||_0x3ce090[_0x32747b(0x434)][_0x32747b(0x452)]!==0x0)&&(_0x207275=_0x3ce090[_0x32747b(0x1b3)]),_0x207275===0x0&&this[_0x32747b(0x290)][_0x32747b(0x206)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['loadUnitOfRevision'](_0x180888,_0x2bb5a2,_0x207275,_0x397d01);}};_0x2d725c=_0x182061([_0x51b612(0x0,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0x1,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c['SnapshotService'])),_0x51b612(0x2,(0x0,_0x78cf9f['Optional'])(_0x1dd414))],_0x2d725c);let _0x4e2bcb=class{constructor(_0x5c4b75,_0x36a284,_0x24d3ed){const _0x582723=_0x4ca2ee;this[_0x582723(0x173)]=_0x5c4b75,this[_0x582723(0x2b9)]=_0x36a284,this[_0x582723(0x3fa)]=_0x24d3ed,_0x4f9d46(this,'_waitCount',0x0),_0x4f9d46(this,_0x582723(0x389),new _0x42b37f[(_0x582723(0x20c))]()),_0x4f9d46(this,_0x582723(0x161),this[_0x582723(0x389)]),_0x4f9d46(this,_0x582723(0x46f),new Map());}[_0x4ca2ee(0x3e4)](_0x488a5b){const _0x5831eb=_0x4ca2ee;this['_waitCount']=_0x488a5b,this[_0x5831eb(0x389)][_0x5831eb(0x1b5)](_0x488a5b);}[_0x4ca2ee(0x3c5)](_0x53d5d6,_0x29daf8){const _0x4155af=_0x4ca2ee;if(_0x29daf8===_0x78cf9f[_0x4155af(0x310)]['BASE64']){let _0x1fbad0=new Image();return _0x1fbad0[_0x4155af(0x3ac)]=_0x53d5d6,_0x1fbad0;}return this[_0x4155af(0x46f)]['get'](_0x53d5d6);}[_0x4ca2ee(0x2a9)](_0x58ee80,_0x552ad0,_0x352e20){const _0x1959a2=_0x4ca2ee;_0x552ad0!==_0x78cf9f[_0x1959a2(0x310)][_0x1959a2(0x3ab)]&&_0x352e20!=null&&this[_0x1959a2(0x46f)][_0x1959a2(0x3e8)](_0x58ee80,_0x352e20);}async['getImage'](_0x4f0883){const _0x10a004=_0x4ca2ee;try{let _0xfdaff2=this[_0x10a004(0x2ca)](this['_getSignURL'](),''+_0x4f0883),_0x11b334=(await this[_0x10a004(0x173)]['get'](_0xfdaff2))[_0x10a004(0x1f0)];if(_0x11b334[_0x10a004(0x2a2)]&&_0x11b334['error'][_0x10a004(0x34c)]===_0x1521ba['ErrorCode']['OK']){let _0x91ac5e=(0x0,_0x78cf9f[_0x10a004(0x259)])(_0x11b334[_0x10a004(0x2ac)],this[_0x10a004(0x22e)]());return Promise[_0x10a004(0x457)](_0x91ac5e);}return Promise[_0x10a004(0x39e)](_0x11b334[_0x10a004(0x2a2)]);}catch(_0x1fa0b2){return Promise['reject'](_0x1fa0b2);}}async[_0x4ca2ee(0x38c)](_0x1a849b){const _0x197749=_0x4ca2ee;let _0x1a5e5e='';if(!_0x3b803d[_0x197749(0x2c1)][_0x197749(0x35a)](_0x1a849b['type']))return this[_0x197749(0x4ad)](),Promise[_0x197749(0x39e)](Error(_0x78cf9f[_0x197749(0x238)]['ERROR_IMAGE_TYPE']));if(_0x1a849b['size']>(0x0,_0x3b803d['getDrawingImageAllowSize'])())return this[_0x197749(0x4ad)](),Promise['reject'](Error(_0x78cf9f['ImageUploadStatusType']['ERROR_EXCEED_SIZE']));try{let _0x294529=new FormData();_0x294529[_0x197749(0x49c)]('file',_0x1a849b);let _0x35c9fd=this['_univerInstanceService'][_0x197749(0x3ad)](),_0x1a8135=_0x35c9fd==null?void 0x0:_0x35c9fd[_0x197749(0x3f8)]();if(!_0x1a8135)throw Error(_0x197749(0x338));let _0x918419=this[_0x197749(0x3a9)]()+_0x197749(0x198)+_0x1a849b[_0x197749(0x33f)]['toString']()+_0x197749(0x499)+_0x1521ba[_0x197749(0x3c3)][_0x197749(0x34d)]+_0x197749(0x3b8)+encodeURIComponent(_0x1a8135),_0x1842d4={'body':_0x294529},_0x55b098=(await this[_0x197749(0x173)][_0x197749(0x186)](_0x918419,_0x1842d4))[_0x197749(0x1f0)];if(typeof _0x55b098['FileId']!='string')return this[_0x197749(0x4ad)](),Promise['reject'](Error(_0x78cf9f['ImageUploadStatusType'][_0x197749(0x1a1)]));_0x1a5e5e=_0x55b098[_0x197749(0x31f)];}catch{return this['_decreaseWaiting'](),Promise[_0x197749(0x39e)](Error(_0x78cf9f[_0x197749(0x238)][_0x197749(0x1a1)]));}return new Promise((_0x4bcf5e,_0x39fd70)=>{const _0x3fbfa0=_0x197749;let _0x1c5274=new FileReader();_0x1c5274['readAsDataURL'](_0x1a849b),_0x1c5274[_0x3fbfa0(0x2b7)]=_0x5c1e54=>{const _0x70991c=_0x3fbfa0;var _0x469d62;let _0x1607de=(_0x469d62=_0x5c1e54[_0x70991c(0x4b1)])==null?void 0x0:_0x469d62[_0x70991c(0x488)];if(_0x1607de==null){this[_0x70991c(0x4ad)](),_0x39fd70(Error(_0x78cf9f[_0x70991c(0x238)]['ERROR_IMAGE']));return;}_0x4bcf5e({'imageId':(0x0,_0x78cf9f[_0x70991c(0x4b0)])(0x6),'imageSourceType':_0x78cf9f[_0x70991c(0x310)]['UUID'],'source':_0x1a5e5e,'base64Cache':_0x1607de,'status':_0x78cf9f[_0x70991c(0x238)][_0x70991c(0x201)]}),this[_0x70991c(0x4ad)]();};});}[_0x4ca2ee(0x3a9)](){const _0x221585=_0x4ca2ee;let _0x4600b2=this[_0x221585(0x2b9)][_0x221585(0x433)](_0x16372d);return(_0x4600b2==null?void 0x0:_0x4600b2['uploadFileServerUrl'])??_0x221585(0x257);}[_0x4ca2ee(0x1b7)](){const _0x5f1b6f=_0x4ca2ee;let _0x345ee6=this[_0x5f1b6f(0x2b9)][_0x5f1b6f(0x433)](_0x16372d);return(_0x345ee6==null?void 0x0:_0x345ee6[_0x5f1b6f(0x47a)])??'/universer-api/file/{fileID}/sign-url';}[_0x4ca2ee(0x22e)](){const _0x47020c=_0x4ca2ee;let _0x3bd8ed=this['_configService'][_0x47020c(0x433)](_0x16372d);return(_0x3bd8ed==null?void 0x0:_0x3bd8ed[_0x47020c(0x21b)])??location['origin'];}[_0x4ca2ee(0x2ca)](_0xef0287,_0xe65a40){const _0x55c94a=_0x4ca2ee;return _0xef0287[_0x55c94a(0x447)](_0x55c94a(0x312),_0xe65a40);}[_0x4ca2ee(0x4ad)](){const _0x2ae4eb=_0x4ca2ee;--this[_0x2ae4eb(0x41b)],this[_0x2ae4eb(0x389)]['next'](this[_0x2ae4eb(0x41b)]);}};_0x4e2bcb=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x4de411[_0x4ca2ee(0x332)])),_0x51b612(0x1,_0x78cf9f['IConfigService']),_0x51b612(0x2,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['IUniverInstanceService']))],_0x4e2bcb);let _0x1a38c4=class{constructor(_0x1ef976,_0x2d6200){const _0x4f0413=_0x4ca2ee;this[_0x4f0413(0x2b9)]=_0x1ef976,this[_0x4f0413(0x2f2)]=_0x2d6200;}[_0x4ca2ee(0x288)](){const _0x17f2d5=_0x4ca2ee;let _0x1823eb=this[_0x17f2d5(0x2b9)][_0x17f2d5(0x433)](_0x16372d);return(_0x1823eb==null?void 0x0:_0x1823eb[_0x17f2d5(0x421)])??_0x17f2d5(0x368);}async[_0x4ca2ee(0x1b4)](_0x2c902c){const _0xd3c8=_0x4ca2ee;let _0x409688=this[_0xd3c8(0x288)]()+'/collaborator';return{'list':[{'title':_0xd3c8(0x2bb),'mentions':(await this[_0xd3c8(0x2f2)][_0xd3c8(0x42a)](_0x409688,{'params':{'objectID':_0x2c902c[_0xd3c8(0x4d2)],'unitID':_0x2c902c[_0xd3c8(0x4d2)]}}))['body'][_0xd3c8(0x3fd)][_0xd3c8(0x2b8)](_0x144d7b=>({'objectId':_0x144d7b['id'],'name':_0x144d7b['subject'][_0xd3c8(0x39d)],'metadata':{'icon':_0x144d7b['subject']['avatar']},'label':_0x144d7b[_0xd3c8(0x42f)][_0xd3c8(0x39d)],'objectType':_0x78cf9f[_0xd3c8(0x1e8)][_0xd3c8(0x2d5)]})),'metadata':{},'type':_0x78cf9f[_0xd3c8(0x1e8)][_0xd3c8(0x2d5)]}]};}};_0x1a38c4=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['IConfigService'])),_0x51b612(0x1,(0x0,_0x78cf9f['Inject'])(_0x4de411[_0x4ca2ee(0x332)]))],_0x1a38c4);let _0x3147fd=class extends _0x78cf9f['RxDisposable']{constructor(_0x4e7eba,_0x39e2ea,_0x484a04,_0x2cba06,_0x4a1c5f,_0x3f652f){const _0x2debb2=_0x4ca2ee;super(),this[_0x2debb2(0x3b1)]=_0x4e7eba,this[_0x2debb2(0x3fa)]=_0x39e2ea,this[_0x2debb2(0x305)]=_0x484a04,this[_0x2debb2(0x463)]=_0x2cba06,this['_collaborationSessionService']=_0x4a1c5f,this[_0x2debb2(0x286)]=_0x3f652f,_0x4f9d46(this,'_closedUnits',new Set()),this[_0x2debb2(0x2f7)](()=>this[_0x2debb2(0x3c4)][_0x2debb2(0x358)]()),this['disposeWithMe'](_0x92de57(this['_univerInstanceService'])[_0x2debb2(0x3ae)](({unitId:_0x4d1f2f})=>this[_0x2debb2(0x3c4)][_0x2debb2(0x483)](_0x4d1f2f))),this['_initUnitPermissionChange'](),this[_0x2debb2(0x1c4)](),[_0x78cf9f['UniverInstanceType']['UNIVER_DOC'],_0x78cf9f[_0x2debb2(0x4a8)]['UNIVER_SLIDE'],_0x78cf9f[_0x2debb2(0x4a8)]['UNIVER_BASE'],_0x78cf9f[_0x2debb2(0x4a8)][_0x2debb2(0x383)]][_0x2debb2(0x1e9)](_0x551389=>{const _0x2cecb4=_0x2debb2;this[_0x2cecb4(0x2f7)](this[_0x2cecb4(0x3fa)][_0x2cecb4(0x425)](_0x551389)[_0x2cecb4(0x3ae)](_0xcfffa2=>{const _0x5975a3=_0x2cecb4;this[_0x5975a3(0x3c4)][_0x5975a3(0x169)](_0xcfffa2[_0x5975a3(0x3f8)]()),this[_0x5975a3(0x3b1)][_0x5975a3(0x42a)](_0x78cf9f[_0x5975a3(0x48b)])['clearUnit'](_0xcfffa2['getUnitId']());}));});}[_0x4ca2ee(0x1c4)](){const _0x458a29=_0x4ca2ee;let _0x5a273f=async(_0x1de717,_0x4cb67d)=>{const _0x5f4026=_0x41d6;let _0x29fdb5=await this[_0x5f4026(0x2da)][_0x5f4026(0x454)](_0x1de717);this[_0x5f4026(0x1fc)]||this[_0x5f4026(0x3c4)][_0x5f4026(0x32f)](_0x1de717)||!this[_0x5f4026(0x3fa)]['getUnit'](_0x1de717)||_0x29fdb5['event$'][_0x5f4026(0x28c)]((0x0,_0x30b86b[_0x5f4026(0x2cc)])(_0x305091=>_0x305091[_0x5f4026(0x34b)]===_0x18ba1c[_0x5f4026(0x3aa)]['SHOULD_CLOSE_CONN']),(0x0,_0x30b86b[_0x5f4026(0x381)])((0x0,_0x42b37f['merge'])(this[_0x5f4026(0x32d)],this['_univerInstanceService'][_0x5f4026(0x18a)][_0x5f4026(0x28c)]((0x0,_0x30b86b[_0x5f4026(0x2cc)])(_0x3bbc51=>_0x3bbc51[_0x5f4026(0x3f8)]()===_0x1de717)))))[_0x5f4026(0x3ae)](_0x151296=>{const _0x17037e=_0x5f4026;let {reason:_0x295f38}=_0x151296[_0x17037e(0x3d6)];this[_0x17037e(0x286)][_0x17037e(0x17d)]({'id':_0x17037e(0x2ad),'data':_0x295f38}),this[_0x17037e(0x3c4)]['add'](_0x1de717),this[_0x17037e(0x3b1)]['get'](_0x78cf9f[_0x17037e(0x48b)])[_0x17037e(0x4a6)](_0x1de717);let _0x52dcc3=_0x562824(_0x4cb67d);_0x52dcc3!=null&&this[_0x17037e(0x20b)](_0x1de717,_0x52dcc3,_0x1521ba[_0x17037e(0x175)][_0x17037e(0x325)],!0x1),this[_0x17037e(0x2da)][_0x17037e(0x19d)](_0x1de717);});};_0x92de57(this[_0x458a29(0x3fa)])[_0x458a29(0x28c)]((0x0,_0x30b86b['filter'])(({unitId:_0x6d6af7})=>!(0x0,_0x78cf9f[_0x458a29(0x252)])(_0x6d6af7)),(0x0,_0x30b86b[_0x458a29(0x381)])(this[_0x458a29(0x32d)]))[_0x458a29(0x3ae)](({type:_0x58f232,unitId:_0x266429})=>{const _0x4aacba=_0x458a29;_0x5a273f(_0x266429,_0x58f232)[_0x4aacba(0x2ce)](_0x5b0d2d=>this[_0x4aacba(0x3b1)][_0x4aacba(0x42a)](_0x78cf9f[_0x4aacba(0x341)])['error'](_0x5b0d2d));});}[_0x4ca2ee(0x2c4)](){const _0x14d836=_0x4ca2ee;let _0x17eb1f=async(_0x40e576,_0x5d92b6)=>{const _0x3cdff0=_0x41d6;let _0x245b21=await this[_0x3cdff0(0x2da)][_0x3cdff0(0x454)](_0x40e576);if(!(this[_0x3cdff0(0x1fc)]||this[_0x3cdff0(0x3c4)][_0x3cdff0(0x32f)](_0x40e576)||!this[_0x3cdff0(0x3fa)][_0x3cdff0(0x40e)](_0x40e576))){if(_0x5d92b6===_0x78cf9f[_0x3cdff0(0x4a8)][_0x3cdff0(0x220)]){let _0xf80ad7=this['_injector']['get'](_0x1c5171['SheetPermissionInitController']);await _0xf80ad7[_0x3cdff0(0x31c)](_0x40e576),_0x245b21[_0x3cdff0(0x43b)]['pipe']((0x0,_0x30b86b[_0x3cdff0(0x2cc)])(_0x3b3c92=>_0x3b3c92['eventID']===_0x18ba1c[_0x3cdff0(0x3aa)][_0x3cdff0(0x395)]),(0x0,_0x30b86b[_0x3cdff0(0x381)])((0x0,_0x42b37f[_0x3cdff0(0x364)])(this['dispose$'],_0x245b21['event$']['pipe']((0x0,_0x30b86b[_0x3cdff0(0x2cc)])(_0x41e3d4=>_0x41e3d4[_0x3cdff0(0x34b)]===_0x18ba1c[_0x3cdff0(0x3aa)]['SHOULD_CLOSE_CONN'])),this['_univerInstanceService'][_0x3cdff0(0x18a)][_0x3cdff0(0x28c)]((0x0,_0x30b86b[_0x3cdff0(0x2cc)])(_0xfcfda0=>_0xfcfda0[_0x3cdff0(0x3f8)]()===_0x40e576)))))['subscribe'](_0x19824d=>{const _0x50d2db=_0x3cdff0;let {objectId:_0x361021}=_0x19824d[_0x50d2db(0x3d6)];_0x361021===_0x40e576?_0xf80ad7[_0x50d2db(0x31c)](_0x40e576):_0xf80ad7['refreshPermission'](_0x40e576,_0x361021);});return;}_0x245b21['event$'][_0x3cdff0(0x28c)]((0x0,_0x30b86b[_0x3cdff0(0x2cc)])(_0x48870e=>_0x48870e[_0x3cdff0(0x34b)]===_0x18ba1c[_0x3cdff0(0x3aa)][_0x3cdff0(0x395)]),(0x0,_0x30b86b[_0x3cdff0(0x381)])((0x0,_0x42b37f[_0x3cdff0(0x364)])(this[_0x3cdff0(0x32d)],_0x245b21['event$'][_0x3cdff0(0x28c)]((0x0,_0x30b86b[_0x3cdff0(0x2cc)])(_0x55685e=>_0x55685e[_0x3cdff0(0x34b)]===_0x18ba1c[_0x3cdff0(0x3aa)][_0x3cdff0(0x16f)])),this[_0x3cdff0(0x3fa)][_0x3cdff0(0x18a)]['pipe']((0x0,_0x30b86b[_0x3cdff0(0x2cc)])(_0x166e97=>_0x166e97[_0x3cdff0(0x3f8)]()===_0x40e576)))))[_0x3cdff0(0x3ae)](()=>{const _0x527cd8=_0x3cdff0;this[_0x527cd8(0x4bd)](_0x40e576,_0x5d92b6)['catch'](_0x13ac26=>this['_injector']['get'](_0x78cf9f[_0x527cd8(0x341)])[_0x527cd8(0x2a2)](_0x13ac26));}),await this[_0x3cdff0(0x4bd)](_0x40e576,_0x5d92b6);}};_0x92de57(this[_0x14d836(0x3fa)])[_0x14d836(0x28c)]((0x0,_0x30b86b[_0x14d836(0x2cc)])(({unitId:_0x5e397b})=>!(0x0,_0x78cf9f[_0x14d836(0x252)])(_0x5e397b)),(0x0,_0x30b86b[_0x14d836(0x381)])(this[_0x14d836(0x32d)]))[_0x14d836(0x3ae)](({type:_0x308859,unitId:_0x3739ae})=>{const _0x1b7671=_0x14d836;_0x17eb1f(_0x3739ae,_0x308859)[_0x1b7671(0x2ce)](_0x2c2d60=>this['_injector'][_0x1b7671(0x42a)](_0x78cf9f['ILogService'])[_0x1b7671(0x2a2)](_0x2c2d60));});}async[_0x4ca2ee(0x4bd)](_0x396657,_0x528975){const _0xf7ac4=_0x4ca2ee;let _0x13fc88=_0x562824(_0x528975);if(_0x13fc88==null)return;let _0x2161ec=this[_0xf7ac4(0x3b1)]['get'](_0x78cf9f[_0xf7ac4(0x48b)]);if(_0x2161ec[_0xf7ac4(0x4b6)]({'unitId':_0x396657,'objectId':_0x396657,'objectType':_0x13fc88})){await _0x2161ec[_0xf7ac4(0x3fc)](_0x396657);return;}let _0x1a7705=this['_getUnitPermissionPoints'](_0x396657,_0x13fc88);if(!_0x1a7705['length'])return;let _0x163250=await this['_authzIoService'][_0xf7ac4(0x456)]({'objectID':_0x396657,'objectType':_0x13fc88,'unitID':_0x396657,'actions':_0x1a7705[_0xf7ac4(0x2b8)](({action:_0x495462})=>_0x495462)});this['_disposed']||this[_0xf7ac4(0x3c4)][_0xf7ac4(0x32f)](_0x396657)||!this[_0xf7ac4(0x3fa)][_0xf7ac4(0x40e)](_0x396657)||_0x163250['forEach'](_0x5cbf9c=>{const _0x10ad49=_0xf7ac4;let _0x35806b=_0x5cbf9c[_0x10ad49(0x19a)],_0x457547=_0x5cbf9c[_0x10ad49(0x456)];_0x35806b!=null&&_0x457547!=null&&_0x1a7705[_0x10ad49(0x2cc)](_0xd00945=>_0xd00945[_0x10ad49(0x19a)]===_0x35806b)['forEach'](_0x1985d2=>this[_0x10ad49(0x305)][_0x10ad49(0x29a)](_0x1985d2['id'],_0x457547));});}[_0x4ca2ee(0x3cb)](_0x24c3fa,_0x498e3e){const _0x21dabd=_0x4ca2ee;let _0x14a33b=[];return this[_0x21dabd(0x305)][_0x21dabd(0x231)]()[_0x21dabd(0x1e9)]((_0x50c05a,_0x5f8a46)=>{const _0x1ef6fa=_0x21dabd;_0x50c05a[_0x1ef6fa(0x3ae)](_0x2696ad=>{const _0x479a0b=_0x1ef6fa;_0x2696ad[_0x479a0b(0x2db)]===_0x498e3e&&_0x479a0b(0x4d2)in _0x2696ad&&_0x2696ad[_0x479a0b(0x4d2)]===_0x24c3fa&&(!('objectId'in _0x2696ad)||_0x2696ad[_0x479a0b(0x1b1)]===_0x24c3fa)&&_0x14a33b[_0x479a0b(0x204)]({'id':_0x5f8a46,'action':_0x2696ad[_0x479a0b(0x1e6)]});})['unsubscribe']();}),_0x14a33b;}[_0x4ca2ee(0x20b)](_0x23d3bc,_0x31653a,_0x5b6992,_0x35f6c0){const _0x371849=_0x4ca2ee;this[_0x371849(0x305)]['getAllPermissionPoint']()[_0x371849(0x1e9)]((_0x2c009d,_0x4ca053)=>{const _0x20b394=_0x371849;let _0xcba21c=!0x1;_0x2c009d[_0x20b394(0x3ae)](_0x40d537=>{const _0x30bdfa=_0x20b394;_0xcba21c=_0x40d537['type']===_0x31653a&&_0x40d537[_0x30bdfa(0x1e6)]===_0x5b6992&&'unitId'in _0x40d537&&_0x40d537[_0x30bdfa(0x4d2)]===_0x23d3bc&&(!(_0x30bdfa(0x1b1)in _0x40d537)||_0x40d537[_0x30bdfa(0x1b1)]===_0x23d3bc);})['unsubscribe'](),_0xcba21c&&this['_permissionService'][_0x20b394(0x29a)](_0x4ca053,_0x35f6c0);});}};_0x3147fd=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f['Inject'])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x1,_0x78cf9f['IUniverInstanceService']),_0x51b612(0x2,_0x78cf9f[_0x4ca2ee(0x16d)]),_0x51b612(0x3,_0x78cf9f[_0x4ca2ee(0x327)]),_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x55f186)),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6))],_0x3147fd);function _0x92de57(_0x5d3101){const _0x44133a=_0x4ca2ee;return(0x0,_0x42b37f[_0x44133a(0x364)])(...[_0x78cf9f[_0x44133a(0x4a8)][_0x44133a(0x220)],_0x78cf9f[_0x44133a(0x4a8)][_0x44133a(0x40b)],_0x78cf9f[_0x44133a(0x4a8)][_0x44133a(0x4c9)],_0x78cf9f[_0x44133a(0x4a8)][_0x44133a(0x383)],_0x78cf9f[_0x44133a(0x4a8)]['UNIVER_BASE']][_0x44133a(0x2b8)](_0x225ac2=>_0x5d3101[_0x44133a(0x166)](_0x225ac2)[_0x44133a(0x28c)]((0x0,_0x30b86b[_0x44133a(0x2b8)])(_0x3d2205=>({'type':_0x225ac2,'unitId':_0x3d2205[_0x44133a(0x2bd)][_0x44133a(0x3f8)]()})))));}function _0x562824(_0x83c6ae){const _0x2c4a96=_0x4ca2ee;switch(_0x83c6ae){case _0x78cf9f[_0x2c4a96(0x4a8)][_0x2c4a96(0x220)]:return _0x1521ba[_0x2c4a96(0x2a7)]['Workbook'];case _0x78cf9f[_0x2c4a96(0x4a8)][_0x2c4a96(0x40b)]:return _0x1521ba[_0x2c4a96(0x2a7)][_0x2c4a96(0x1d8)];case _0x78cf9f[_0x2c4a96(0x4a8)][_0x2c4a96(0x4c9)]:return _0x1521ba[_0x2c4a96(0x2a7)]['Slide'];case _0x78cf9f['UniverInstanceType'][_0x2c4a96(0x383)]:return _0x1521ba[_0x2c4a96(0x2a7)]['Board'];case _0x78cf9f[_0x2c4a96(0x4a8)][_0x2c4a96(0x2ed)]:return _0x1521ba['UnitObject']['Base'];default:return;}}let _0xe2c026=class{constructor(_0x384f62,_0x11b8c3){const _0x46da86=_0x4ca2ee;this[_0x46da86(0x2b9)]=_0x384f62,this[_0x46da86(0x173)]=_0x11b8c3;}async[_0x4ca2ee(0x1b2)](_0x10fe7a,_0x56abd3){const _0x4e6288=_0x4ca2ee;var _0x4b3b13;let {unitID:_0x1c00ca,type:_0x30aa51,revision:_0x23a591=0x0}=_0x56abd3,_0x252238=this[_0x4e6288(0x26f)]()+'/'+_0x30aa51+'/unit/'+_0x1c00ca+_0x4e6288(0x195)+_0x23a591,_0x51e165=(await this[_0x4e6288(0x173)][_0x4e6288(0x42a)](_0x252238))[_0x4e6288(0x1f0)],_0x1ec9d6=(_0x4b3b13=_0x51e165[_0x4e6288(0x453)])==null?void 0x0:_0x4b3b13[_0x4e6288(0x1f5)];if(_0x1ec9d6){let _0x809903=_0x1ec9d6==null?void 0x0:_0x1ec9d6['originalMeta'];_0x1ec9d6['originalMeta']=_0x18ba1c['textEncoder']['encode']((0x0,_0x18ba1c['b64DecodeUnicode'])(_0x809903)),Object['entries'](_0x1ec9d6['sheets'])['forEach'](([,_0x4ba680])=>{const _0x5d6494=_0x4e6288;let _0x3e934e=_0x4ba680[_0x5d6494(0x359)];_0x4ba680[_0x5d6494(0x359)]=_0x18ba1c[_0x5d6494(0x449)][_0x5d6494(0x306)]((0x0,_0x18ba1c[_0x5d6494(0x287)])(_0x3e934e));});}return _0x51e165;}async[_0x4ca2ee(0x1fb)](_0x33cd44,_0x5cf45f){const _0x51970a=_0x4ca2ee;let {unitID:_0x34c84b,type:_0x55bfb1,blockID:_0x8b3b39}=_0x5cf45f,_0x436f76=this['_getAPIPrefix']()+'/'+_0x55bfb1+_0x51970a(0x363)+_0x34c84b+_0x51970a(0x2c9)+_0x8b3b39;return(await this[_0x51970a(0x173)]['get'](_0x436f76))[_0x51970a(0x1f0)];}async[_0x4ca2ee(0x1d1)](_0xf8bd44,_0x34b764){const _0x10dd93=_0x4ca2ee;let {unitID:_0x1710d5,type:_0x44f46f,blockID:_0x1bcb67}=_0x34b764,_0x24e699=this[_0x10dd93(0x3c6)]()+_0x10dd93(0x2c9)+_0x44f46f+_0x10dd93(0x363)+_0x1710d5+_0x10dd93(0x2c9)+_0x1bcb67;return(await this[_0x10dd93(0x173)][_0x10dd93(0x42a)](_0x24e699))[_0x10dd93(0x1f0)];}async[_0x4ca2ee(0x2bc)](_0x1b7a98,_0xa8a7e8){const _0x3702d8=_0x4ca2ee;let {unitID:_0x42c565,type:_0x2abb19,from:_0x341a15,to:_0x383acf}=_0xa8a7e8,_0x29eef2=this['_getAPIPrefix']()+'/'+_0x2abb19+_0x3702d8(0x363)+_0x42c565+'/fetchmissing?from='+_0x341a15+_0x3702d8(0x26d)+_0x383acf;return(await this['_httpService']['get'](_0x29eef2))[_0x3702d8(0x1f0)];}[_0x4ca2ee(0x26f)](){const _0x3c82ab=_0x4ca2ee;return this[_0x3c82ab(0x2b9)][_0x3c82ab(0x433)](_0x3c82ab(0x42b))??this[_0x3c82ab(0x3c6)]();}[_0x4ca2ee(0x3c6)](){const _0x1d6b70=_0x4ca2ee;let _0x1eaedb=this[_0x1d6b70(0x2b9)][_0x1d6b70(0x433)](_0x16372d);return(_0x1eaedb==null?void 0x0:_0x1eaedb['snapshotServerUrl'])??'/universer-api/snapshot';}async[_0x4ca2ee(0x20e)](_0x2d59d4,_0x3e8d79){const _0xef7d53=_0x4ca2ee;let _0x3f0866=_0xef7d53(0x28f)+_0x3e8d79[_0xef7d53(0x2db)]+'/unit/'+_0x3e8d79['unitID']+_0xef7d53(0x1dd);return(await this[_0xef7d53(0x173)]['get'](_0x3f0866,{'params':{'resourceId':JSON[_0xef7d53(0x2cf)](_0x3e8d79['resourceIDs'])}}))[_0xef7d53(0x1f0)];}[_0x4ca2ee(0x2fa)](){const _0x1c2f98=_0x4ca2ee;throw Error(_0x1c2f98(0x352));}[_0x4ca2ee(0x1a9)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4ca2ee(0x229)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){const _0x43246d=_0x4ca2ee;throw Error(_0x43246d(0x352));}[_0x4ca2ee(0x1ee)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4ca2ee(0x244)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0xe2c026=_0x182061([_0x51b612(0x0,_0x78cf9f[_0x4ca2ee(0x178)]),_0x51b612(0x1,(0x0,_0x78cf9f['Inject'])(_0x4de411[_0x4ca2ee(0x332)]))],_0xe2c026);let _0xc9f2b7=class extends _0x78cf9f[_0x4ca2ee(0x2d8)]{constructor(_0xd36427,_0x5401dd,_0x37292c,_0x572e26,_0x435413,_0x2be0fe){const _0x4a3169=_0x4ca2ee;super(_0xd36427,_0x5401dd,_0x37292c,_0x572e26),this[_0x4a3169(0x1ba)]=_0x435413,this[_0x4a3169(0x290)]=_0x2be0fe;}[_0x4ca2ee(0x475)](_0x53c7f6,_0x1f2a29){const _0x1fcdbd=_0x4ca2ee;let _0x3abe39=this[_0x1fcdbd(0x354)](_0x53c7f6);if(_0x3abe39)try{let _0x4f7390=this['_transformStack'](_0x3abe39,_0x1f2a29);this[_0x1fcdbd(0x379)](_0x53c7f6,_0x4f7390);}catch(_0x96316f){this['_logService'][_0x1fcdbd(0x2a2)]('[CollaborationUndoRedoService]',_0x96316f),this[_0x1fcdbd(0x46d)](_0x53c7f6);}let _0x25bac1=this[_0x1fcdbd(0x4ae)](_0x53c7f6);if(_0x25bac1)try{let _0x34bd00=this[_0x1fcdbd(0x316)](_0x25bac1,_0x1f2a29);this[_0x1fcdbd(0x410)](_0x53c7f6,_0x34bd00);}catch(_0x26c8a3){this['_logService'][_0x1fcdbd(0x2a2)](_0x26c8a3),this['_clearRedo'](_0x53c7f6);}}[_0x4ca2ee(0x46d)](_0xccf1e7){const _0x33d277=_0x4ca2ee;let _0x2de8e1=this['_getUndoStack'](_0xccf1e7);_0x2de8e1&&(_0x2de8e1[_0x33d277(0x452)]=0x0,this['_updateStatus']());}[_0x4ca2ee(0x2e0)](_0x3338fa){const _0x538df8=_0x4ca2ee;let _0x195c69=this[_0x538df8(0x4ae)](_0x3338fa);_0x195c69&&(_0x195c69['length']=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x36e828,_0x59acea){const _0x25ae76=_0x4ca2ee;this[_0x25ae76(0x386)][_0x25ae76(0x3e8)](_0x36e828,_0x59acea),this[_0x25ae76(0x222)]();}[_0x4ca2ee(0x410)](_0x1fb1c6,_0x23e796){const _0x247516=_0x4ca2ee;this[_0x247516(0x4d1)][_0x247516(0x3e8)](_0x1fb1c6,_0x23e796),this[_0x247516(0x222)]();}[_0x4ca2ee(0x316)](_0xc4e653,_0x4d40bb){const _0x320e04=_0x4ca2ee;let _0x49263d=[],_0x5705e2=_0x4d40bb,_0x56b526=_0x4d40bb;for(let _0x13dbd1=_0xc4e653['length']-0x1;_0x13dbd1>=0x0;_0x13dbd1--){let {unitID:_0x2e1dfe,undoMutations:_0x4162a0,redoMutations:_0xe39ff1}=_0xc4e653[_0x13dbd1],_0x15c63f=this[_0x320e04(0x1ba)][_0x320e04(0x2d0)](_0x5705e2,_0x4162a0),_0xec9228=this[_0x320e04(0x1ba)]['transformMutationsWithChangeset'](_0x56b526,_0xe39ff1);if((0x0,_0x18ba1c[_0x320e04(0x4ab)])(_0x15c63f)||(0x0,_0x18ba1c[_0x320e04(0x4ab)])(_0xec9228)){this[_0x320e04(0x290)][_0x320e04(0x2a2)](_0x320e04(0x182),'transformStack\x20failed!',_0x15c63f,_0xec9228);break;}_0x5705e2=_0x15c63f[_0x320e04(0x1e7)],_0x56b526=_0xec9228[_0x320e04(0x1e7)],_0x49263d[_0x320e04(0x204)]({'unitID':_0x2e1dfe,'undoMutations':_0x15c63f[_0x320e04(0x375)],'redoMutations':_0xec9228[_0x320e04(0x375)]});}return _0x49263d[_0x320e04(0x4af)]();}};_0xc9f2b7=_0x182061([_0x51b612(0x0,_0x78cf9f[_0x4ca2ee(0x39a)]),_0x51b612(0x1,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0x2,_0x78cf9f[_0x4ca2ee(0x424)]),_0x51b612(0x3,_0x78cf9f[_0x4ca2ee(0x178)]),_0x51b612(0x4,_0x18ba1c[_0x4ca2ee(0x371)]),_0x51b612(0x5,_0x78cf9f[_0x4ca2ee(0x341)])],_0xc9f2b7);let _0x4713dc=class extends _0x78cf9f['Plugin']{constructor(_0x3d6be7=_0x3e7167,_0x262fcb,_0x57f888,_0x2c2675){const _0x41efa8=_0x4ca2ee;super(),this[_0x41efa8(0x22b)]=_0x3d6be7,this[_0x41efa8(0x290)]=_0x262fcb,this[_0x41efa8(0x3b1)]=_0x57f888,this[_0x41efa8(0x2b9)]=_0x2c2675;let {..._0x2476d2}=(0x0,_0x78cf9f['merge'])({},_0x3e7167,this[_0x41efa8(0x22b)]);if(!_0x2476d2[_0x41efa8(0x2d6)])throw Error(_0x41efa8(0x280));this['_config']=_0x2476d2,this[_0x41efa8(0x2b9)][_0x41efa8(0x3a7)](_0x16372d,_0x2476d2);}[_0x4ca2ee(0x2e7)](){const _0x5b8b95=_0x4ca2ee;this['_configService'][_0x5b8b95(0x3a7)](_0x78cf9f['OBJECT_PERMISSION_CONFIG_KEY'],this[_0x5b8b95(0x22b)][_0x5b8b95(0x459)]??[]),this[_0x5b8b95(0x25a)](),this[_0x5b8b95(0x188)]();}[_0x4ca2ee(0x25a)](){const _0xe1057c=_0x4ca2ee;var _0x59be18,_0x295568;this[_0xe1057c(0x3b1)][_0xe1057c(0x32f)](_0x78cf9f[_0xe1057c(0x2ef)])&&this[_0xe1057c(0x290)]['error'](_0xe1057c(0x2f9),_0xe1057c(0x2c6));let _0x9a4325=(0x0,_0x78cf9f[_0xe1057c(0x1f4)])([[_0x78cf9f[_0xe1057c(0x2ef)],{'useClass':_0xc9f2b7}],[_0x997217,{'useValue':_0x35dc98()}],[_0x55f186],[_0x232b7e],[_0x373754],[_0x4f4c43],[_0x536787],[_0x2ee3ef],[_0x3147fd],[_0x5604f6],[_0x2d725c],[_0x2277c0,{'useClass':this[_0xe1057c(0x22b)][_0xe1057c(0x2d6)]}],[_0x18ba1c[_0xe1057c(0x1e5)],{'useClass':_0xe2c026}],[_0x78cf9f[_0xe1057c(0x327)],{'useClass':_0x13ade1}],[_0x78cf9f[_0xe1057c(0x2a1)],{'useClass':_0x4e2bcb}],[_0x3ff2b3,{'useClass':_0x7c9ef}],[_0x78cf9f[_0xe1057c(0x183)],{'useClass':_0x1a38c4}],[_0x2b01b9],[_0x5eab30]],(_0x59be18=this[_0xe1057c(0x22b)])==null?void 0x0:_0x59be18[_0xe1057c(0x2e9)]);if(!((_0x295568=this[_0xe1057c(0x22b)])!=null&&_0x295568[_0xe1057c(0x30a)])){let _0x4f6e7a=_0x9a4325['findIndex'](([_0x395666])=>_0x395666===_0x208a4c);_0x4f6e7a!==-0x1&&_0x9a4325[_0xe1057c(0x462)](_0x4f6e7a,0x1);}(0x0,_0x78cf9f[_0xe1057c(0x474)])(this[_0xe1057c(0x3b1)],_0x9a4325);}['_initDependencies'](){const _0x2ad96f=_0x4ca2ee;var _0x1e03ad,_0x430f4b;if(this[_0x2ad96f(0x3b1)][_0x2ad96f(0x42a)](_0x4de411[_0x2ad96f(0x332)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,_0x4de411[_0x2ad96f(0x48d)])({'maxParallel':0x6})}),!((_0x1e03ad=this['_config'])!=null&&_0x1e03ad[_0x2ad96f(0x31d)])){var _0x567c2a;(_0x567c2a=this[_0x2ad96f(0x3b1)]['get'](_0x1dd414,_0x78cf9f['Quantity'][_0x2ad96f(0x1eb)]))==null||_0x567c2a['disableLocalCache']();}(_0x430f4b=this[_0x2ad96f(0x22b)])!=null&&_0x430f4b['enableAuthServer']&&(0x0,_0x78cf9f[_0x2ad96f(0x3d3)])(this[_0x2ad96f(0x3b1)],[[_0x4f4c43]]),(0x0,_0x78cf9f[_0x2ad96f(0x3d3)])(this[_0x2ad96f(0x3b1)],[[_0x536787],[_0x2b01b9],[_0x3147fd]]);}};_0x4f9d46(_0x4713dc,_0x4ca2ee(0x1b8),_0x4ca2ee(0x339)),_0x4f9d46(_0x4713dc,_0x4ca2ee(0x217),_0x4265cd),_0x4f9d46(_0x4713dc,_0x4ca2ee(0x429),_0x37eba4),_0x4713dc=_0x182061([(0x0,_0x78cf9f[_0x4ca2ee(0x3c8)])(_0x25a327[_0x4ca2ee(0x380)],_0x4de411[_0x4ca2ee(0x26b)],_0x18ba1c[_0x4ca2ee(0x4c0)]),_0x51b612(0x1,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0x2,(0x0,_0x78cf9f['Inject'])(_0x78cf9f['Injector'])),_0x51b612(0x3,_0x78cf9f['IConfigService'])],_0x4713dc),Object['defineProperty'](_0x1d5fa1,_0x4ca2ee(0x177),{'enumerable':!0x0,'get':function(){return _0x13ade1;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x35c),{'enumerable':!0x0,'get':function(){return _0x1e430e;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x3db),{'enumerable':!0x0,'get':function(){return _0x47a7e4;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x1ec),{'enumerable':!0x0,'get':function(){return _0x3e3c1b;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x26e),{'enumerable':!0x0,'get':function(){return _0x455183;}}),_0x1d5fa1['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=_0x16372d,Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x481),{'enumerable':!0x0,'get':function(){return _0x7c9ef;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x4c1),{'enumerable':!0x0,'get':function(){return _0x2b01b9;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,'CollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x41b76f;}}),Object['defineProperty'](_0x1d5fa1,_0x4ca2ee(0x1ad),{'enumerable':!0x0,'get':function(){return _0x4e2bcb;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x3c7),{'enumerable':!0x0,'get':function(){return _0x3a19b6;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return _0x55f186;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x294),{'enumerable':!0x0,'get':function(){return _0x330090;}}),_0x1d5fa1[_0x4ca2ee(0x33d)]=_0x4f2ada,_0x1d5fa1[_0x4ca2ee(0x187)]=_0x6788f8,_0x1d5fa1[_0x4ca2ee(0x1ca)]=_0x5604f6,Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x41a),{'enumerable':!0x0,'get':function(){return _0xc9f2b7;}}),_0x1d5fa1[_0x4ca2ee(0x4a5)]=_0x2ee3ef,Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x27c),{'enumerable':!0x0,'get':function(){return _0x2160a7;}}),_0x1d5fa1[_0x4ca2ee(0x276)]=_0x4ca2ee(0x48c),_0x1d5fa1[_0x4ca2ee(0x19b)]=_0x4ca2ee(0x241),_0x1d5fa1[_0x4ca2ee(0x420)]=_0x4ca2ee(0x48a),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x4ac),{'enumerable':!0x0,'get':function(){return _0x2d725c;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x360),{'enumerable':!0x0,'get':function(){return _0x3c6cb8;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x300),{'enumerable':!0x0,'get':function(){return _0x23ae28;}}),_0x1d5fa1[_0x4ca2ee(0x202)]=_0x4ca2ee(0x1de),_0x1d5fa1['HEARTBEAT_TIMEOUT_KEY']=_0x4ca2ee(0x2d2),_0x1d5fa1[_0x4ca2ee(0x37f)]=_0x3ff2b3,_0x1d5fa1['ICollaborationClientAdapterService']=_0x997217,_0x1d5fa1[_0x4ca2ee(0x482)]=_0x2277c0,_0x1d5fa1['ILocalCacheService']=_0x1dd414,_0x1d5fa1[_0x4ca2ee(0x349)]=_0x11f218,_0x1d5fa1[_0x4ca2ee(0x3df)]=_0x208a4c,_0x1d5fa1['LOCAL_CACHE_INTERVAL']=0x3e8,_0x1d5fa1[_0x4ca2ee(0x45e)]=_0x4ca2ee(0x4b3),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x28b),{'enumerable':!0x0,'get':function(){return _0x232b7e;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x282),{'enumerable':!0x0,'get':function(){return _0x1a38c4;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x2bf),{'enumerable':!0x0,'get':function(){return _0x4522d6;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x3ef),{'enumerable':!0x0,'get':function(){return _0x1743c3;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x370),{'enumerable':!0x0,'get':function(){return _0x2b8409;}}),_0x1d5fa1[_0x4ca2ee(0x1c9)]='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',_0x1d5fa1[_0x4ca2ee(0x270)]=_0x4ca2ee(0x17f),_0x1d5fa1[_0x4ca2ee(0x2a6)]=_0x6ccffc,Object['defineProperty'](_0x1d5fa1,_0x4ca2ee(0x38d),{'enumerable':!0x0,'get':function(){return _0x2da38a;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x193),{'enumerable':!0x0,'get':function(){return _0x373754;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,'SlideCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x4150af;}}),Object['defineProperty'](_0x1d5fa1,_0x4ca2ee(0x45f),{'enumerable':!0x0,'get':function(){return _0xe2c026;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,'SyncedState',{'enumerable':!0x0,'get':function(){return _0x1aec7f;}}),_0x1d5fa1[_0x4ca2ee(0x240)]=_0x17e655,Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x431),{'enumerable':!0x0,'get':function(){return _0x4713dc;}}),_0x1d5fa1[_0x4ca2ee(0x487)]=_0x35dc98,_0x1d5fa1['deserializeToCombResponse']=_0x179e36,_0x1d5fa1[_0x4ca2ee(0x491)]=_0x48485d,_0x1d5fa1[_0x4ca2ee(0x184)]=_0x28a999;}));function _0x27bb(){const _0x43f3e1=['JOIN','/universer-api/oidc/authpage','_resendTimer','LOCAL_CACHE_INTERVAL_KEY','SnapshotServerOverHTTPService','OTHER_CLIENTS_EDITING','appendMutation','splice','_authzIoService','isTransformMutationsWithChangesetSuccess','_rescheduleHeartbeat','_acknowledgedAwaitingRevision','_sessions','x-univer-host','getInterceptPoints','LIVESHARE_TERMINATE','maxSize','univer-pro.collaboration-client-socket-service','_clearUndo','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','_imageSourceCache','_getCurrentRevision','isArray','12895yEaPFK','transformChangesets','registerDependencies','transformUndoRedo','collaboratorID','awaitingChangeset','getValue','36944XTtgVV','signUrlServerUrl','_commentUpdate$','ICommandService','_fetchMissChangesets','univer-pro.collaboration-client-adapter-service','getOwnPropertyDescriptor','parseChangesetToProtocol','CollaborationAttachmentIoService','ICollaborationSocketService','delete','SOCKET_FAILED_RETRY','_onRecvEvent','HEARTBEAT','createUniverCollaborationAdapter','result','ErrorCode','/universer-api/user/session-ticket','ObjectPermissionService','ws://127.0.0.1:8000/universer-api/comb/connect','ThresholdInterceptorFactory','Module','dispose','EmptyMutationInfo','getLocalCacheKey','_sendHeartbeat','upload','UserManagerService','UniverDocs','958264yuSevA','commentUpdate$','_undoRedoService','&source=','disablePadding','_emitMembers','append','base-ui.attachment-io.service','_updateLocalCache','revision','/universer-api/file/{fileID}/sign-url','reduce','href','onMissingChangesets','_snapshotServerService','CommentService','clearUnit','invalid\x20output,\x20must\x20be\x20aligned','UniverInstanceType','cfgEnableObjInherit','max','isTransformMutationsWithChangesetFailure','DataLoaderService','_decreaseWaiting','_getRedoStack','reverse','generateRandomId','target','type=','LOCAL_CACHE_INTERVAL','liveShareNewHost','string','supports','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','objectID','BYTES_PER_ELEMENT','_showConflictProcessingNotification','_docStateChangeManagerService','function','_refreshUnitPermission','CHANGESET_REJ','_onCombEvent','UniverCollaborationPlugin','CollaborationController','DocStateChangeManagerService','slice','_handler','RemoveSlidePageMutation','now','_transformAndApplyRemoteChangeset','MSG_FOR_ERROR','UNIVER_SLIDE','getMemberID','COMMENT_UPDATE','CommandType','Univer','_stopTelemetryCollaborationNewChangeset','JOIN_ROOM_NOT_EXISTS','some','_redoStacks','unitId','asObservable','defineProperty','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','univer-pro.collaboration-client.network-condition.service','_onConnectionOpen','_revisionService','change$','fetchThroughInterceptors','fetch_missing','parseProtocolChangeset','/object/','getTypeOfUnitAdded$','toggleOnline','_collaborationTimeoutTimer','add','output','_changesetReqId','retryConnectingTimer','IPermissionService','_compressMutationService','SHOULD_CLOSE_CONN','_onJoinRoomEvent','executeCommand','_handleRemoteChangesets','_httpService','AddSlidePageMutation','UnitAction','save\x20fail\x20reason\x20is\x20','AuthzIoHttpService','IConfigService','pauseCollaboration','LocaleService','_onRemoteRetry','JOINING','emitEvent','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','RETRY_CONNECTING_MAX_COUNT','_clearCollaborationTimeoutTimer','members$','[CollaborationUndoRedoService]','IMentionIOService','serializeCombRequest','_awaitingChangeset','post','CollaborationUIEventId','_initDependencies','OFFLINE','unitDisposed$','withAAD','_incrementRevisionNumber','_clearRetryConnectingTimer','iterator','/new_changes','submit\x20changeset\x20error!','isSafeInteger','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','SheetTransformSelectionsService','@univerjs/sheets','/rev/','USERS_LEAVE','updateOfflineData','?size=','loadUnitOfRevision','action','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','unitInfo$','closeSession','getUploadOptions','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','_identity','ERROR_IMAGE','_onOffline','readyForCollab','blockRanges','sid','getRandomValues','_cfgEnableObjInherit','loginUrlKey','updateSnapshot','_remoteChangesetQueue','deleteCollaborator','text-x','CollaborationImageIoService','setShowComponents','awaiting_with_pending','default','objectId','getUnitOnRev','rev','list','next','_socketService','_getSignURL','pluginName','Rectangle','_transformService','csAckEvent','routeKey','_localeService','EnsureSlideMasterPageMutation','_resendWithTimeout','onPrepareTransformSelections','collabSubmitChangesetUrl','INGEST','_roomMembers','_initCloseConn','[CollaborationSessionService]','ITelemetryService','UNIVER_PDF','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','CollaborationUIEventService','ciphertext\x20must\x20be\x20multiple\x20of\x2016','_commentService','_status$','_transformIMECache','onSyncEditingCollabCursor','getGlobalObject','getDeserializedSheetBlock','_telemetryService','endsWith','CONFLICT_PROCESSING','withCredentials','sendChangesetTimeout','values','Document','Optional','isCompositionEnd','_sheetTransformSelectionsService','candidateSocket','/resources','HEARTBEAT_INTERVAL','_listenToNetworkCondition','[CollaborationState]:\x20apply\x20error!','_entityInit$','not_collab','open$','indexOf','ISnapshotServerService','subType','c1Prime','MentionType','forEach','deepClone','OPTIONAL','BaseCollaborationEntity','onMissedChangesetFetched','copyFileMeta','_onFetchMissResult','body','_getLoginPath','_pendingMutations','_createSocket','mergeOverrideWithDependencies','workbook','LEAVE','key','decrypt','create','collaboration-client.local-cache-service','getSheetBlock','_disposed','MUTATION','backupOfflineData','editing\x20status\x20changed\x20to','min','SUCCUSS','HEARTBEAT_INTERVAL_KEY','_collaborationPaused','push','unknown','debug','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','1.0.4','UniverProSlides','batchAllowed','_updateUnitPermissionPoint','Subject','updatePermissionObjEvent','getResourcesRequest','rollback','SOCKET_FAILED','_throwTelemetryCollaborationNewChangeset','658KsLdTT','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','onTransformRemoteChangesetByStateCache','RECV','_tryEnsureSocket','packageName','expected\x20number,\x20got\x20','getCurrentUser','CONFLICT','downloadEndpointUrl','objectActions','params','_changesetSessionId','[CollaborationSessionService]:\x20socket\x20error','UNIVER_SHEET','RevisionService','_updateStatus','unit-cache-','find','LIVESHARE_REQUEST_HOST','localUnitId','localeService','[PendingState]:\x20received\x20acknowledgement.','saveSheetBlock','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_config','error$','sort','_getDownloadEndpointURL','then','_applyRemoteChangeset','getAllPermissionPoint','_roomCreated$','__splitChunk__','COLLABORATION_ENDPOINT_INVALID','toDisposable','_queuedRemoteChangesets','_handlerCallback','ImageUploadStatusType','[OfflineState]:\x20received\x20acknowledgement.','[PendingState]:\x20received\x20rejection.','session.join-failed','state','_commandService','/role','RichTextEditingMutation','UnitStatus','/universer-api/uniscript','_isEchoedAwaitingChangeset','c2Prime','getLatestCsReqIdBySid','complete','updateMember','constructor','session.room-full','FETCH_MISSING','updateCursorEvent','_disableEditing','983022JDEUzO','_instanceService','focused$','session.room-cnt-exceeds','getCollabEntity','getRoom','isInternalEditorID','_onConflict','_tryReconnect','Failed\x20to\x20update\x20permission\x20point','_exhaustRemoteChangesetQueue','/universer-api/stream/file/upload','\x20to\x20','resolveWithBasePath','_registerDependencies','loadDoc','addHandlerCallback','Injector','_submitChangeset','capture','stopTime','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','mapDocumentTypeToUniverInstanceType','objects','onTransformRemoteChangesetByIMECache','_replayCachedMutations','_telemetryInfo','onTransformState','socket$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[DataLoaderService]','UniverNetworkPlugin','missingChangesets','&to=','BoardCollaborationEntity','getSnapshotAPIPath','RETRY_CONNECTING_MAX_COUNT_KEY','_createInitialStateImpl','unitID','UPDATE_CURSOR','shouldCloseConn','uuidv4','DEFAULT_COLLAB_WEB_SOCKET_URL','NEW_CHANGESETS','getAttachmentUrl','headers','_collabSessionService','collaboration-client.config','ConflictState','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','awaiting','CONFLICT_CACHE_CLEAR_FAILED','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','onCommentUpdate','MentionIoHttpService','loadBase','socket\x20close',',\x20got\x20','_collaborationUIEventService','b64DecodeUnicode','_getAPIPrefixPath','_startCollaboration','commit','MemberService','pipe','changesets','getUnitStatus$','/universer-api/snapshot/','_logService','@univerjs/drawing','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_transformUndoredo','CollaborationSocketService','loadBoard','unitLoaded$','endpoint','conflict','hostname','updatePermissionPoint','\x20in\x20_schedule.','textRanges','unitType','commentUpdateEvent','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_sessionStatus$','IImageIoService','error','onlyLocal','_clearScheduledTask','_transitionLocked','SessionStatus','UnitObject','listCollaborators','addImageSourceCache','rxjs/operators','\x22ciphertext\x22\x20expected\x20length\x20>=\x20tagLength=','url','CLOSE_ROOM','PERMISSION_DENIED','_initMergeInterceptor','startsWith','_onUserLeave','[OfflineState]:\x20received\x20changeset.','CmdRspCode','sendHeartbeatTimer','byteOffset','LIVESHARE_NEW_HOST','onload','map','_configService','_onRemoteACK','People','fetchMissingChangesets','unit','subarray','OfflineState','take','DRAWING_IMAGE_ALLOW_IMAGE_LIST','patch','__Key__','_initUnitPermissionChange','Inject','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','duration','shareReplay','/block/','_replaceFileID','joinEvent','filter','_onUserJoin','catch','stringify','transformMutationsWithChangeset','_waitForHeartbeatResponse','HEARTBEAT_TIMEOUT','resolveUnit','_checkMissing','PERSON','socketService','_state','LocalUndoRedoService','roles','_collaborationSessionService','type','_memberService','updateCollaborator','_socket','location','_clearRedo','bytesLength','_prepareConflictRecovery','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','onStateChange','_resolveSessionIdentity','_onRemoteChangeset','onStarting','onRemoteRej','override','_removeRoom','/object','getCurrentRevOfUnit','UNIVER_BASE','uniscriptRunEvent','IUndoRedoService','_sendingTimer','sequenceExecute','_HTTPService','_sender','USERS_ENTER','csShouldRetryEvent','_sessionChannels','disposeWithMe','CompressMutationService','[UniverCollaborationClientPlugin]','saveSnapshot','CHANGESET_ACK','_event$','1178350DwPxgQ','PERMISSION_REJ','GLOBAL_ROOMS_CNT_EXCEEDS','FetchingMissState','97532feJafy','_unitLoaded$','AAD','JSONX','_permissionService','encode','_createHandler','expected\x20Uint8Array','buffer','enableSingleActiveInstanceLock','Uint8Array','registerHTTPInterceptor','[CollaborationSession]','HTTPRequest','number','ImageSourceType','COMPRESS_MUTATION_APPLY','{fileID}','\x0aAfter:\x20','requestParams','onSendChangeset','_transformStack','from','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','userID','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','session.room-not-exists','initWorkbookPermissionChange','enableOfflineEditing','editingUnit','FileId','SetSelectionsOperation','length=','loadSheet','_upload','Workbook','Edit','HELLO','IAuthzIoService','byteLength','_transformStateCache','[SyncedState]:\x20received\x20rejection.','/-/object/list','_createInitialState','dispose$','equals','has','reqId','6TTTtAr','HTTPService','tagLength','_init','baseRev','status$','PENDING','unitId\x20is\x20not\x20found','UNIVER_COLLABORATION_CLIENT_PLUGIN','crypto','_shouldReportTelemetry','OTHER_CLIENT_EDITING','CollaborationStatus','\x20of\x20length\x20','size','nonceLength','ILogService','RxDisposable','state$','[SyncedState]:\x20received\x20acknowledgement.','ONLINE','[OfflineState]:\x20received\x20rejection.','responseType','onTransformSelections','INetworkConditionService','PSEUDO_FETCH_MISSING_RESULT','eventID','code','UnitEmbedded','title','_maxTotalRetryTimeout','putCollaborators','_type','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','session','_getUndoStack','_executeRemoteChangeset','prototype','onTransformIME','clear','originalMeta','includes','retryCount','AwaitingState','symbol','/allowed','_pendingSessions','DocCollaborationEntity','LIVESHARE_FETCH_OPERATIONS','_joinRoom','/unit/','merge','origin','_getSendChangesetTimeout','objectType','/universer-api/authz','object','timeoutTimer','entityInit$','_onRemoteRejected','_networkConditionService','attachment','members','PendingState','ITransformService','_getSocketChannel','_initRequestHeader','76417qqiuko','m2Prime','_showConflictNotification','AWAITING','toggleOffline','_substituteUndoStack','_adapter','_unitInfo$','message$','createInstance','getCfgEnableObjInherit','IAttachmentIoService','UniverLicensePlugin','takeUntil','CombCmd','UNIVER_BOARD','close$','UNISCRIPT_RUN','_undoStacks','_state$','UUID','_change$','setCfgEnableObjInherit','createCollaborator','saveImage','SheetCollaborationEntity','failed\x20to\x20apply\x20missed\x20changesets!','socketMessageSubscription','_clearTimeoutTimer','accept','_transformRemoteChangesetByIMECache','_startTelemetryCollaborationNewChangeset','_singleActiveUnitService','UPDATE_PERMISSION_OBJ','LIVESHARE_OPERATION','_syncEditingCollabCursor','socket\x20open.','IDLE','IUniverInstanceService','UniverTelemetry','_hasSessionsForEndpoint','name','reject','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','pending','collaMsg','JOIN_ROOM_FULL','selections','uploadFileServerUrl','_resendTimeout','resend','setConfig','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_getUploadFileURL','CollaborationEvent','BASE64','src','getFocusedUnit','subscribe','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_members$','_injector','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getCollabEntity$','Disposable','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','wrong\x20sbox\x20length','/universer-api/comb','&assign=','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','cmd','isTransformChangesetsSuccess','exports','[CollaborationEntity]','@univerjs-pro/slides','SUBMIT_CHANGESET_TIMEOUT','@univerjs/network','[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.','saveAttachment','FileSource','_closedUnits','getImageSourceCache','_getAPIPrefix','CollaborationSession','DependentOn','_toggleOffline','_onConnectionFailed','_getUnitPermissionPoints','pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','_acknowledgeAwaitingIfReady','encrypt','_scheduleCompleteTimestamp','waitForRoom$','removeMember','9TTjGaV','touchDependencies','_onMessage','actions','data','init','_unlockTransition','columnGroups','call','AwaitingWithPendingState','roomInfos','sessionStatus$','_isPermissionRej','ISingleActiveUnitService','_eventService','varSizeNonce','_getConfig','_prepareTransformSelections','setWaitCount','_getCtorByUniverInstanceType','connection\x20error','_clearHeartbeatTimer','set','fetchMiss','onMutationExecutedForCollab','\x22bytesLength\x22\x20expected\x20<=\x2065536,\x20got\x20','fill','newCsEvent','reconnect','PdfCollaborationEntity','getWorkbookSelections','/-/object/-/batch_allowed','_socketMessageSubscription','endpointKey','interceptor','_scheduleCollaborationTimeoutTimer','unsubscribe','_schedule','getUnitId','socketReady','_univerInstanceService','isPermissionRej','refreshUnit','collaborators','NOT_COLLAB','onRemoteAck','synced','delay','FAIL','method','createIdentifier','ReplaySubject','loadOfflineData','UniverProCollaborationClient','getUnitType','\x20-\x20','POST','UNIVER_DOC','_socketChannels','getSheetId','getUnit','onRemoteRetry','_substituteRedoStack','_snapshotService','toLocal','_members','hasOwnProperty','_updateState','/collaborator','_transformSelections','sessionStatus','csRejEvent','CollaborativeUndoRedoService','_waitCount','put','localCacheService','isView','InsertSheetMutation','DEFAULT_WS_SESSION_TICKET_URL','authzUrl','_entities','SUBMIT_CHANGESET','IContextService','getTypeOfUnitDisposed$','close','690lZzqYo','onLocalMutation','version','get','SNAPSHOT_URL_KEY','UniverProCollaboration','MergeInterceptorFactory','loadPdf','subject','@univerjs/telemetry','UniverCollaborationClientPlugin','send','getConfig','mutations','rxjs','_acknowledgeAwaiting','clearOfflineData','_onLocalMutation','onRemoteChangeset','@univerjs-pro/license','event$','status','concatMap','fromCollab','BehaviorSubject','getMember','createSocket','NO_OTHER_CLIENTS_EDITING','enableCollaboration','apply','_userManagerService','CHANGESET_SHOULD_RETRY','replace','COMPRESS_MUTATION_SEND','textEncoder','_lockTransition','floor','AWAITING_WITH_PENDING','range','changeset','_toggleOnline','@univerjs/core','WorkbookEditablePermission','length','snapshot','requireSession','_localCacheService','allowed','resolve','memberID','objectPermissionTypes','84cABlxG'];_0x27bb=function(){return _0x43f3e1;};return _0x27bb();}
|