@univerjs-pro/collaboration-client 1.0.1 → 1.0.3
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(_0x5d41f9,_0x1f3449){const _0x557d7b=_0x328a,_0x2069f1=_0x5d41f9();while(!![]){try{const _0xde426a=-parseInt(_0x557d7b(0x29d))/0x1+-parseInt(_0x557d7b(0x2d3))/0x2+parseInt(_0x557d7b(0x359))/0x3*(-parseInt(_0x557d7b(0x2d5))/0x4)+-parseInt(_0x557d7b(0x16d))/0x5+-parseInt(_0x557d7b(0x38f))/0x6*(-parseInt(_0x557d7b(0x22a))/0x7)+parseInt(_0x557d7b(0x37b))/0x8*(parseInt(_0x557d7b(0x297))/0x9)+parseInt(_0x557d7b(0x41c))/0xa;if(_0xde426a===_0x1f3449)break;else _0x2069f1['push'](_0x2069f1['shift']());}catch(_0x1a442e){_0x2069f1['push'](_0x2069f1['shift']());}}}(_0x3671,0xbb312),function(_0x3e0c36,_0x23a2f7){const _0x10629f=_0x328a;typeof exports==_0x10629f(0x26e)&&typeof module<'u'?_0x23a2f7(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==_0x10629f(0x474)&&define[_0x10629f(0x3f7)]?define([_0x10629f(0x1b6),_0x10629f(0x367),_0x10629f(0x27c),_0x10629f(0x156),_0x10629f(0x1d5),_0x10629f(0x374),_0x10629f(0x3d1),_0x10629f(0x2df),_0x10629f(0x263),_0x10629f(0x246),_0x10629f(0x1bc),_0x10629f(0x24c),_0x10629f(0x1ee)],_0x23a2f7):(_0x3e0c36=typeof globalThis<'u'?globalThis:_0x3e0c36||self,_0x23a2f7(_0x3e0c36[_0x10629f(0x288)]={},_0x3e0c36['UniverProCollaboration'],_0x3e0c36[_0x10629f(0x153)],_0x3e0c36['UniverDocs'],_0x3e0c36[_0x10629f(0x119)],_0x3e0c36['rxjs'],_0x3e0c36[_0x10629f(0x1b2)],_0x3e0c36[_0x10629f(0x3bd)],_0x3e0c36[_0x10629f(0x374)]['operators'],_0x3e0c36[_0x10629f(0x1d9)],_0x3e0c36[_0x10629f(0x285)],_0x3e0c36[_0x10629f(0x125)],_0x3e0c36[_0x10629f(0x40f)]));}(this,function(_0x27ec94,_0x5199be,_0x4b2515,_0x120ed0,_0x4ea268,_0xccd21e,_0x349630,_0x3ca46c,_0x2c33e8,_0x471a79,_0x530da8,_0x3ed42b,_0x443efc){const _0x9884d2=_0x328a;Object[_0x9884d2(0x1ce)](_0x27ec94,Symbol['toStringTag'],{'value':_0x9884d2(0x3a0)});let _0x3c0330=_0x9884d2(0x3c1),_0xa070fb={};function _0x3edac7(_0x2f3b25){const _0x284ec1=_0x9884d2;return JSON[_0x284ec1(0x3ee)](_0x2f3b25)['length'];}function _0xbbfc1d(_0x334e0c){'@babel/helpers - typeof';const _0x113da6=_0x9884d2;return _0xbbfc1d=typeof Symbol==_0x113da6(0x474)&&typeof Symbol[_0x113da6(0x37e)]==_0x113da6(0x3ab)?function(_0x1f0765){return typeof _0x1f0765;}:function(_0x2da0db){const _0x5ad084=_0x113da6;return _0x2da0db&&typeof Symbol==_0x5ad084(0x474)&&_0x2da0db[_0x5ad084(0x11a)]===Symbol&&_0x2da0db!==Symbol['prototype']?'symbol':typeof _0x2da0db;},_0xbbfc1d(_0x334e0c);}function _0x1685ec(_0x4449c8,_0x5f1454){const _0x3daeb4=_0x9884d2;if(_0xbbfc1d(_0x4449c8)!=_0x3daeb4(0x26e)||!_0x4449c8)return _0x4449c8;var _0x312b62=_0x4449c8[Symbol[_0x3daeb4(0x28a)]];if(_0x312b62!==void 0x0){var _0x516cd9=_0x312b62[_0x3daeb4(0x43d)](_0x4449c8,_0x5f1454||'default');if(_0xbbfc1d(_0x516cd9)!=_0x3daeb4(0x26e))return _0x516cd9;throw TypeError(_0x3daeb4(0x129));}return(_0x5f1454===_0x3daeb4(0x212)?String:Number)(_0x4449c8);}function _0x2c1259(_0x805b6c){const _0x1c366c=_0x9884d2;var _0xefed27=_0x1685ec(_0x805b6c,'string');return _0xbbfc1d(_0xefed27)==_0x1c366c(0x3ab)?_0xefed27:_0xefed27+'';}function _0x60128a(_0x32986f,_0x46e5eb,_0x9c5410){const _0x5c2cf0=_0x9884d2;return(_0x46e5eb=_0x2c1259(_0x46e5eb))in _0x32986f?Object[_0x5c2cf0(0x1ce)](_0x32986f,_0x46e5eb,{'value':_0x9c5410,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x32986f[_0x46e5eb]=_0x9c5410,_0x32986f;}let _0x491b70=function(_0x5e0f1b){const _0x163610=_0x9884d2;return _0x5e0f1b['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x5e0f1b[_0x163610(0x1f9)]=_0x163610(0x1f9),_0x5e0f1b[_0x163610(0x296)]=_0x163610(0x296),_0x5e0f1b['CONFLICT_CACHE_CLEAR_FAILED']=_0x163610(0x260),_0x5e0f1b[_0x163610(0x24a)]=_0x163610(0x24a),_0x5e0f1b['CLOSE_ROOM']=_0x163610(0x345),_0x5e0f1b[_0x163610(0x44e)]=_0x163610(0x44e),_0x5e0f1b['SOCKET_FAILED_RETRY']=_0x163610(0x3a2),_0x5e0f1b[_0x163610(0x163)]=_0x163610(0x163),_0x5e0f1b[_0x163610(0x3db)]='SUBMIT_CHANGESET_TIMEOUT',_0x5e0f1b;}({});var _0xeca6ce=class{constructor(){const _0x305bfd=_0x9884d2;_0x60128a(this,_0x305bfd(0x3f8),new _0xccd21e[(_0x305bfd(0x200))]()),_0x60128a(this,'event$',this[_0x305bfd(0x3f8)]['asObservable']());}[_0x9884d2(0x1db)](_0x229be6){const _0x3b4597=_0x9884d2;this[_0x3b4597(0x3f8)][_0x3b4597(0x17e)](_0x229be6);}},_0x16a8e3=class{constructor(){const _0x3afdff=_0x9884d2;_0x60128a(this,'_commentUpdate$',new _0xccd21e[(_0x3afdff(0x200))]()),_0x60128a(this,'commentUpdate$',this[_0x3afdff(0x44a)][_0x3afdff(0x43c)]());}['onCommentUpdate'](_0x185f18){const _0x1bde87=_0x9884d2;this[_0x1bde87(0x44a)]['next'](_0x185f18);}};function _0x3b5628(_0x22c973,_0x24d50f){return function(_0x4f3fe3,_0x581892){_0x24d50f(_0x4f3fe3,_0x581892,_0x22c973);};}function _0x33ad5b(_0x145fb3,_0x5454ad,_0x1be3b1,_0x4423c8){const _0x4af901=_0x9884d2;var _0x1b1f95=arguments['length'],_0x53af28=_0x1b1f95<0x3?_0x5454ad:_0x4423c8===null?_0x4423c8=Object[_0x4af901(0x13f)](_0x5454ad,_0x1be3b1):_0x4423c8,_0x2d52b9;if(typeof Reflect==_0x4af901(0x26e)&&typeof Reflect[_0x4af901(0x2c0)]==_0x4af901(0x474))_0x53af28=Reflect['decorate'](_0x145fb3,_0x5454ad,_0x1be3b1,_0x4423c8);else{for(var _0x293edd=_0x145fb3['length']-0x1;_0x293edd>=0x0;_0x293edd--)(_0x2d52b9=_0x145fb3[_0x293edd])&&(_0x53af28=(_0x1b1f95<0x3?_0x2d52b9(_0x53af28):_0x1b1f95>0x3?_0x2d52b9(_0x5454ad,_0x1be3b1,_0x53af28):_0x2d52b9(_0x5454ad,_0x1be3b1))||_0x53af28);}return _0x1b1f95>0x3&&_0x53af28&&Object[_0x4af901(0x1ce)](_0x5454ad,_0x1be3b1,_0x53af28),_0x53af28;}let _0x50f206=class extends _0x4b2515[_0x9884d2(0x1cb)]{constructor(_0x4cd417){const _0x1f32e4=_0x9884d2;super(),this['_univerInstanceService']=_0x4cd417,_0x60128a(this,_0x1f32e4(0x2f8),new Map()),_0x60128a(this,'_roomCreated$',new _0xccd21e[(_0x1f32e4(0x200))]()),this[_0x1f32e4(0x472)]((0x0,_0xccd21e[_0x1f32e4(0x448)])(this[_0x1f32e4(0x118)][_0x1f32e4(0x47f)](_0x4b2515[_0x1f32e4(0x223)]['UNIVER_SHEET'])['pipe']((0x0,_0x2c33e8['map'])(_0x5cc4a9=>_0x5cc4a9[_0x1f32e4(0x413)]())),this[_0x1f32e4(0x118)][_0x1f32e4(0x47f)](_0x4b2515[_0x1f32e4(0x223)][_0x1f32e4(0x10f)])[_0x1f32e4(0x486)]((0x0,_0x2c33e8[_0x1f32e4(0x333)])(_0x1996a3=>_0x1996a3['getUnitId']())),this[_0x1f32e4(0x118)][_0x1f32e4(0x47f)](_0x4b2515['UniverInstanceType'][_0x1f32e4(0x339)])[_0x1f32e4(0x486)]((0x0,_0x2c33e8[_0x1f32e4(0x333)])(_0x40c809=>_0x40c809[_0x1f32e4(0x413)]())),this[_0x1f32e4(0x118)][_0x1f32e4(0x47f)](_0x4b2515[_0x1f32e4(0x223)][_0x1f32e4(0x267)])[_0x1f32e4(0x486)]((0x0,_0x2c33e8[_0x1f32e4(0x333)])(_0x327d34=>_0x327d34[_0x1f32e4(0x413)]())))[_0x1f32e4(0x23b)](_0x58562a=>this[_0x1f32e4(0x29c)](_0x58562a)));}[_0x9884d2(0x392)](_0x389bcd){const _0x1d0a20=_0x9884d2;return this[_0x1d0a20(0x2f8)]['has'](_0x389bcd)?(0x0,_0xccd21e['of'])(this['_roomMembers'][_0x1d0a20(0x2eb)](_0x389bcd)):this[_0x1d0a20(0x350)][_0x1d0a20(0x486)]((0x0,_0x2c33e8[_0x1d0a20(0x333)])(_0x483201=>{const _0x1e56c3=_0x1d0a20;if(_0x483201===_0x389bcd)return this['_roomMembers'][_0x1e56c3(0x2eb)](_0x483201);}));}['updateMember'](_0x4ef1c2,_0x2d0c8e){const _0x2d9744=_0x9884d2;let _0x324644=this['_roomMembers'][_0x2d9744(0x2eb)](_0x4ef1c2);_0x324644||(_0x324644=new _0x361b33(),this[_0x2d9744(0x2f8)]['set'](_0x4ef1c2,_0x324644),this[_0x2d9744(0x350)][_0x2d9744(0x17e)](_0x4ef1c2)),_0x324644[_0x2d9744(0x2d4)](_0x2d0c8e);}['removeMember'](_0x5cd723,_0x1950e7){const _0x5ae998=_0x9884d2;let _0x50f80d=this[_0x5ae998(0x2f8)]['get'](_0x5cd723);_0x50f80d&&_0x50f80d[_0x5ae998(0x110)](_0x1950e7);}[_0x9884d2(0x45d)](_0x2ec5c2){const _0x49b6fd=_0x9884d2;return this[_0x49b6fd(0x2f8)][_0x49b6fd(0x2eb)](_0x2ec5c2);}[_0x9884d2(0x1e1)](_0x4bfdc6,_0x21f9b3){const _0x900b69=_0x9884d2;let _0x31b98e=this[_0x900b69(0x2f8)][_0x900b69(0x2eb)](_0x4bfdc6);if(_0x31b98e)return _0x31b98e[_0x900b69(0x1e1)](_0x21f9b3);}[_0x9884d2(0x29c)](_0x2bac59){const _0x29d5fa=_0x9884d2;let _0x1b13a0=this[_0x29d5fa(0x2f8)]['get'](_0x2bac59);_0x1b13a0&&(_0x1b13a0[_0x29d5fa(0x314)](),this[_0x29d5fa(0x2f8)][_0x29d5fa(0x287)](_0x2bac59));}[_0x9884d2(0x314)](){const _0x3059d0=_0x9884d2;this[_0x3059d0(0x2f8)][_0x3059d0(0x1e3)](_0x23c006=>_0x23c006[_0x3059d0(0x314)]()),this['_roomMembers'][_0x3059d0(0x214)](),this[_0x3059d0(0x350)][_0x3059d0(0x41f)]();}};_0x50f206=_0x33ad5b([_0x3b5628(0x0,_0x4b2515[_0x9884d2(0x405)])],_0x50f206);var _0x361b33=class extends _0x4b2515[_0x9884d2(0x1cb)]{constructor(..._0xd6def7){const _0xb998ca=_0x9884d2;super(..._0xd6def7),_0x60128a(this,'_members',new Map()),_0x60128a(this,_0xb998ca(0x32c),new _0xccd21e['BehaviorSubject'](this[_0xb998ca(0x1f0)])),_0x60128a(this,'members$',this[_0xb998ca(0x32c)][_0xb998ca(0x43c)]());}['dispose'](){const _0x148145=_0x9884d2;this['_members']['clear'](),this[_0x148145(0x32c)][_0x148145(0x41f)]();}[_0x9884d2(0x2d4)](_0x45add4){const _0x3822e0=_0x9884d2;this[_0x3822e0(0x1f0)][_0x3822e0(0x41e)](_0x45add4[_0x3822e0(0x417)],_0x45add4),this[_0x3822e0(0x121)]();}['removeMember'](_0x5a1ff1){const _0x1e3682=_0x9884d2;this[_0x1e3682(0x1f0)][_0x1e3682(0x287)](_0x5a1ff1),this[_0x1e3682(0x121)]();}[_0x9884d2(0x1e1)](_0x5e20cc){const _0x4f0d1c=_0x9884d2;return this[_0x4f0d1c(0x1f0)]['get'](_0x5e20cc);}[_0x9884d2(0x3c4)](){const _0x56e609=_0x9884d2;return Array[_0x56e609(0x178)](this['_members'][_0x56e609(0x1f3)]());}[_0x9884d2(0x121)](){const _0x5a5068=_0x9884d2;this[_0x5a5068(0x32c)][_0x5a5068(0x17e)](this[_0x5a5068(0x1f0)]);}};function _0x17beb4(_0x323e1d,_0x353213){const _0x55e6f4=_0x9884d2;if(_0x57c9b8(_0x323e1d))return _0x353213;if(_0x353213['eventID']===_0x5199be[_0x55e6f4(0x261)][_0x55e6f4(0x209)]){let _0x572194=_0x5453e8(_0x323e1d),_0x561983=_0x353213;return{..._0x561983,'data':{..._0x561983['data'],'unitID':_0x323e1d[_0x55e6f4(0x479)][_0x55e6f4(0x3f0)],'unitType':_0x323e1d[_0x55e6f4(0x479)][_0x55e6f4(0x294)]??_0x561983['data']['unitType'],'changeset':_0x572194['toRemote'](_0x561983[_0x55e6f4(0x1b4)][_0x55e6f4(0x166)],_0x1acbbf(_0x323e1d))}};}if(_0x353213[_0x55e6f4(0x1b3)]===_0x5199be['CollaborationEvent'][_0x55e6f4(0x318)]){let _0x285f5c=_0x353213;return{..._0x285f5c,'data':{..._0x285f5c['data'],'unitID':_0x323e1d[_0x55e6f4(0x479)]['unitId'],'unitType':_0x323e1d[_0x55e6f4(0x479)]['unitType']??_0x285f5c[_0x55e6f4(0x1b4)][_0x55e6f4(0x294)]}};}return _0x353213;}function _0x1441b1(_0x5bf069,_0x13bf88){const _0x43433a=_0x9884d2;if(_0x57c9b8(_0x5bf069))return[_0x13bf88];switch(_0x13bf88[_0x43433a(0x1b3)]){case _0x5199be[_0x43433a(0x261)]['NEW_CHANGESETS']:return[_0x5428aa(_0x5bf069,_0x13bf88)];case _0x5199be['CollaborationEvent'][_0x43433a(0x18e)]:return[_0x2ffb12(_0x5bf069,_0x13bf88)];case _0x5199be['CollaborationEvent'][_0x43433a(0x238)]:return[_0x4893b9(_0x5bf069,_0x13bf88)];default:return[_0x13bf88];}}function _0x57c9b8(_0x47e813){const _0x45f1d=_0x9884d2;return _0x47e813[_0x45f1d(0x479)][_0x45f1d(0x13b)]==null&&_0x47e813[_0x45f1d(0x479)][_0x45f1d(0x3f0)]===_0x47e813[_0x45f1d(0x2be)]&&!_0x47e813[_0x45f1d(0x166)];}function _0x5428aa(_0x17de18,_0x36b94e){const _0x434c5a=_0x9884d2;return{..._0x36b94e,'data':(0x0,_0x5199be[_0x434c5a(0x21a)])(_0x70e246(_0x17de18,(0x0,_0x5199be[_0x434c5a(0x22c)])(_0x36b94e[_0x434c5a(0x1b4)])))};}function _0x4893b9(_0x569776,_0x56db55){return{..._0x56db55,'data':_0x70e246(_0x569776,_0x56db55['data'])};}function _0x2ffb12(_0x2e888b,_0xa6dad2){const _0x324788=_0x9884d2;let _0xf2d938=_0xa6dad2[_0x324788(0x1b4)];return{..._0xa6dad2,'data':{..._0xf2d938,'changesets':_0xf2d938[_0x324788(0x3cd)][_0x324788(0x333)](_0x276145=>(0x0,_0x5199be['parseChangesetToProtocol'])(_0x70e246(_0x2e888b,(0x0,_0x5199be['parseProtocolChangeset'])(_0x276145))))}};}function _0x70e246(_0xa509bc,_0x1b3cc1){const _0x496533=_0x9884d2;return _0x5453e8(_0xa509bc)[_0x496533(0x396)](_0x1b3cc1,_0x1acbbf(_0xa509bc));}function _0x5453e8(_0x2ec3fa){const _0x403bf6=_0x9884d2;if(!_0x2ec3fa[_0x403bf6(0x166)])throw Error(_0x403bf6(0x241));return _0x2ec3fa[_0x403bf6(0x166)];}function _0x1acbbf(_0x354c5f){const _0x26d162=_0x9884d2;return{'localUnitId':_0x354c5f[_0x26d162(0x2be)],'unitType':_0x354c5f[_0x26d162(0x294)],'target':_0x354c5f[_0x26d162(0x479)]};}let _0x5089ce=function(_0x35e7c6){const _0x5d786b=_0x9884d2;return _0x35e7c6[_0x35e7c6[_0x5d786b(0x1d7)]=0x0]=_0x5d786b(0x1d7),_0x35e7c6[_0x35e7c6[_0x5d786b(0x401)]=0x1]=_0x5d786b(0x401),_0x35e7c6[_0x35e7c6['OFFLINE']=0x2]='OFFLINE',_0x35e7c6[_0x35e7c6[_0x5d786b(0x1d6)]=0x3]=_0x5d786b(0x1d6),_0x35e7c6;}({}),_0x1f73eb={[_0x349630[_0x9884d2(0x440)][_0x9884d2(0x346)]]:'session.join-failed',[_0x349630[_0x9884d2(0x440)]['JOIN_ROOM_FULL']]:_0x9884d2(0x115),[_0x349630[_0x9884d2(0x440)][_0x9884d2(0x13d)]]:_0x9884d2(0x113),[_0x349630['CmdRspCode'][_0x9884d2(0x1f2)]]:'session.room-permission-denied',[_0x349630[_0x9884d2(0x440)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x9884d2(0x459)},_0x188c53=class extends _0x4b2515[_0x9884d2(0x190)]{get[_0x9884d2(0x2e5)](){const _0xdeba48=_0x9884d2;return this[_0xdeba48(0x250)][_0xdeba48(0x383)]();}constructor(_0x3328e5,_0x41f739,_0x54e447,_0x16b47c,_0x4f8fc2,_0x19f651,_0x116cee,_0x34deb2){const _0x22668a=_0x9884d2;super(),this[_0x22668a(0x1fd)]=_0x3328e5,this[_0x22668a(0x344)]=_0x54e447,this[_0x22668a(0x3c6)]=_0x16b47c,this[_0x22668a(0x13c)]=_0x4f8fc2,this['_commentService']=_0x19f651,this['_collaborationUIEventService']=_0x116cee,this[_0x22668a(0x3d8)]=_0x34deb2,_0x60128a(this,_0x22668a(0x250),new _0xccd21e[(_0x22668a(0x379))](0x0)),_0x60128a(this,_0x22668a(0x148),this[_0x22668a(0x250)][_0x22668a(0x43c)]()),_0x60128a(this,_0x22668a(0x3f8),new _0xccd21e[(_0x22668a(0x200))]()),_0x60128a(this,_0x22668a(0x2e6),this['_event$'][_0x22668a(0x43c)]()),_0x60128a(this,'_socket',void 0x0),_0x60128a(this,_0x22668a(0x1a5),void 0x0),_0x60128a(this,_0x22668a(0x36d),void 0x0),_0x60128a(this,_0x22668a(0x1c6),!0x1),_0x60128a(this,'_telemetryInfo',null),this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x41f739['pipe']((0x0,_0xccd21e['takeUntil'])(this[_0x22668a(0x36c)]))[_0x22668a(0x23b)](_0x3dcdec=>{const _0x24100c=_0x22668a;if(_0x3dcdec!==void 0x0){if(this[_0x24100c(0x160)]=_0x3dcdec,_0x3dcdec)this[_0x24100c(0x306)](_0x3dcdec),this[_0x24100c(0x1a5)]=_0x3dcdec[_0x24100c(0x400)]['subscribe'](_0x4db2ef=>{const _0x4028ef=_0x24100c;_0x4db2ef[_0x4028ef(0x3f4)]===this['_identity'][_0x4028ef(0x479)]['unitId']&&this[_0x4028ef(0x33d)](_0x4db2ef);});else{var _0x1df242;this[_0x24100c(0x426)](),this['_sessionStatus$'][_0x24100c(0x17e)](0x2),(_0x1df242=this[_0x24100c(0x1a5)])==null||_0x1df242[_0x24100c(0x29f)](),this[_0x24100c(0x1a5)]=null;}}});}[_0x9884d2(0x444)](){const _0x7823af=_0x9884d2;var _0x51c1c5;return((_0x51c1c5=this['_socket'])==null?void 0x0:_0x51c1c5[_0x7823af(0x417)])??null;}['dispose'](){const _0x36f7d9=_0x9884d2;super['dispose'](),this[_0x36f7d9(0x243)](),this[_0x36f7d9(0x36c)][_0x36f7d9(0x17e)](),this[_0x36f7d9(0x36c)][_0x36f7d9(0x41f)]();}[_0x9884d2(0x243)](){const _0x456ccd=_0x9884d2;var _0x44f8b7;this[_0x456ccd(0x426)](),(_0x44f8b7=this[_0x456ccd(0x160)])==null||_0x44f8b7[_0x456ccd(0x2d6)]({'cmd':_0x349630[_0x456ccd(0x293)][_0x456ccd(0x2fc)],'data':{'roomID':this[_0x456ccd(0x1fd)][_0x456ccd(0x479)][_0x456ccd(0x3f0)]}}),this[_0x456ccd(0x3f8)]['complete'](),this['_sessionStatus$']['complete']();}['_onCombEvent'](_0x16cfb1){const _0x1a92c2=_0x9884d2;_0x16cfb1['cmd']===_0x349630[_0x1a92c2(0x293)][_0x1a92c2(0x213)]?this[_0x1a92c2(0x2b7)](_0x16cfb1):_0x16cfb1['cmd']===_0x349630[_0x1a92c2(0x293)]['RECV']&&this[_0x1a92c2(0x418)](_0x16cfb1);}['_joinRoom'](_0x16abef){const _0x1bcd09=_0x9884d2;this['_sessionStatus$']['next'](0x1),_0x16abef[_0x1bcd09(0x2d6)]({'cmd':_0x349630[_0x1bcd09(0x293)][_0x1bcd09(0x213)],'routeKey':this['_identity'][_0x1bcd09(0x479)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x1bcd09(0x479)][_0x1bcd09(0x3f0)]}]}});}[_0x9884d2(0x2b7)](_0x125217){const _0x333da2=_0x9884d2;var _0x51e532;if(_0x125217[_0x333da2(0x3f6)]in _0x1f73eb){this['_collaborationUIEventService'][_0x333da2(0x1db)]({'id':'JOIN_ROOM_FAILED','data':_0x1f73eb[_0x125217['code']]}),this[_0x333da2(0x250)][_0x333da2(0x17e)](0x2);return;}this['_sessionStatus$']['next'](0x3);let _0x18cd46=(_0x51e532=_0x125217[_0x333da2(0x1b4)][_0x333da2(0x3b4)][this['_identity'][_0x333da2(0x479)][_0x333da2(0x3f0)]])==null?void 0x0:_0x51e532['members'];_0x18cd46&&_0x18cd46[_0x333da2(0x1e3)](_0x4bfff7=>this['_memberService'][_0x333da2(0x2d4)](this[_0x333da2(0x1fd)][_0x333da2(0x2be)],_0x4bfff7));}[_0x9884d2(0x418)](_0x390f25){const _0x26bdca=_0x9884d2;try{let _0x4389aa=_0x1441b1(this[_0x26bdca(0x1fd)],_0x390f25[_0x26bdca(0x1b4)]);for(let _0x41a542 of _0x4389aa)switch(_0x41a542[_0x26bdca(0x1b3)]){case _0x5199be[_0x26bdca(0x261)]['USERS_ENTER']:this[_0x26bdca(0x274)](_0x41a542),this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);break;case _0x5199be[_0x26bdca(0x261)][_0x26bdca(0x197)]:this['_onUserLeave'](_0x41a542),this[_0x26bdca(0x3f8)]['next'](_0x41a542);break;case _0x5199be['CollaborationEvent'][_0x26bdca(0x1f7)]:case _0x5199be[_0x26bdca(0x261)][_0x26bdca(0x238)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x26bdca(0x30b)](),this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);break;case _0x5199be['CollaborationEvent'][_0x26bdca(0x1b1)]:this[_0x26bdca(0x344)][_0x26bdca(0x1b5)](_0x26bdca(0x1d1)+JSON[_0x26bdca(0x3ee)](_0x41a542)),this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);break;case _0x5199be[_0x26bdca(0x261)][_0x26bdca(0x3df)]:this[_0x26bdca(0x31f)][_0x26bdca(0x445)](_0x41a542[_0x26bdca(0x1b4)]),this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);break;default:this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);}}catch(_0xcf2cfe){this[_0x26bdca(0x344)][_0x26bdca(0x1b5)](_0xcf2cfe,_0x390f25);}}['_onUserJoin'](_0x4fed8e){const _0x4b61a2=_0x9884d2;this[_0x4b61a2(0x13c)][_0x4b61a2(0x2d4)](this[_0x4b61a2(0x1fd)][_0x4b61a2(0x2be)],_0x4fed8e[_0x4b61a2(0x1b4)]);}['_onUserLeave'](_0x4ceeeb){const _0x2fa8fb=_0x9884d2;this[_0x2fa8fb(0x13c)][_0x2fa8fb(0x110)](this[_0x2fa8fb(0x1fd)][_0x2fa8fb(0x2be)],_0x4ceeeb['data']['memberID']);}async[_0x9884d2(0x2d6)](_0x3569e7,_0x382908){const _0x4d6609=_0x9884d2;if(this[_0x4d6609(0x2e5)]!==0x3||!this['_socket'])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0xfe0bf4=_0x17beb4(this[_0x4d6609(0x1fd)],_0x3569e7);_0xfe0bf4['eventID']===_0x5199be['CollaborationEvent'][_0x4d6609(0x209)]&&(this[_0x4d6609(0x399)](),this[_0x4d6609(0x157)](_0xfe0bf4)),this[_0x4d6609(0x160)][_0x4d6609(0x2d6)]({'cmd':_0x349630[_0x4d6609(0x293)]['INGEST'],'routeKey':this[_0x4d6609(0x1fd)][_0x4d6609(0x479)][_0x4d6609(0x3f0)],'routeType':'','data':_0xfe0bf4});}catch(_0x567545){this['_logService']['error'](_0x567545);}}[_0x9884d2(0x399)](){const _0x20855c=_0x9884d2;this[_0x20855c(0x36d)]=setTimeout(()=>{const _0x4345f5=_0x20855c;this[_0x4345f5(0x36d)]=null,this[_0x4345f5(0x427)][_0x4345f5(0x1db)]({'id':_0x4345f5(0x3db)});},this[_0x20855c(0x3c6)][_0x20855c(0x32f)](_0x20855c(0x207))??0x4e20);}[_0x9884d2(0x30b)](){const _0x202a8e=_0x9884d2;this[_0x202a8e(0x36d)]&&=(clearTimeout(this['_collaborationTimeoutTimer']),null);}[_0x9884d2(0x157)](_0x12a38e){const _0x58aa6b=_0x9884d2;if(!this[_0x58aa6b(0x1c6)])return;let {data:_0x111d58}=_0x12a38e,{unitID:_0x407241,changeset:_0x20f267}=_0x111d58,{mutations:_0x5af8a7,type:_0x42d901}=_0x20f267;this[_0x58aa6b(0x111)]={'unitId':_0x407241,'type':_0x42d901,'startTime':performance[_0x58aa6b(0x17d)](),'stopTime':0x0,'duration':0x0,'size':_0x3edac7(_0x5af8a7)};}[_0x9884d2(0x20c)](){const _0x157b65=_0x9884d2;if(this[_0x157b65(0x1c6)]){if(!this[_0x157b65(0x111)]){this[_0x157b65(0x344)][_0x157b65(0x1b5)](_0x157b65(0x192),_0x157b65(0x26d));return;}this[_0x157b65(0x111)][_0x157b65(0x471)]=performance[_0x157b65(0x17d)](),this[_0x157b65(0x111)][_0x157b65(0x226)]=this[_0x157b65(0x111)][_0x157b65(0x471)]-this[_0x157b65(0x111)][_0x157b65(0x3e4)],this[_0x157b65(0x3d8)][_0x157b65(0x252)](_0x157b65(0x33e),this[_0x157b65(0x111)]),this[_0x157b65(0x111)]=null;}}[_0x9884d2(0x426)](){this['_telemetryInfo']=null;}};_0x188c53=_0x33ad5b([_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x50f206)),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x16a8e3)),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x3ca46c[_0x9884d2(0x47c)]))],_0x188c53);let _0x2b4688=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x364));function _0x41bf27(_0x144972){const _0x26cd95=_0x9884d2;return _0x26cd95(0x184)+_0x144972;}function _0x116324(_0x2f1878){const _0x2284a9=_0x9884d2;let {unitID:_0x14735a,mutations:_0x276379}=_0x2f1878;return{'unitId':_0x14735a,'subUnitId':_0x276379['length']>0x0?_0x276379[0x0][_0x2284a9(0x3f5)][_0x2284a9(0x488)]:null};}let _0x2326c2=class{constructor(_0x2f2be1,_0x4d7d67,_0x5b342d){const _0x253ca1=_0x9884d2;this[_0x253ca1(0x46a)]=_0x2f2be1,this[_0x253ca1(0x2a6)]=_0x4d7d67,this[_0x253ca1(0x26c)]=_0x5b342d;}['transformSelections'](_0x598e45){const _0x4270a0=_0x9884d2;var _0x1147b6,_0x388580;let _0x2dac76=this[_0x4270a0(0x46a)][_0x4270a0(0x2eb)](_0x4ea268[_0x4270a0(0x34c)]),{unitId:_0x4bd23b,subUnitId:_0x1a1958}=_0x116324(_0x598e45),_0x312573=_0x2dac76==null?void 0x0:_0x2dac76[_0x4270a0(0x316)](_0x4bd23b)[_0x4270a0(0x204)](),_0x3963b9=(_0x1147b6=this['_instanceService'][_0x4270a0(0x380)](_0x4bd23b))==null||(_0x1147b6=_0x1147b6[_0x4270a0(0x470)]())==null?void 0x0:_0x1147b6['getSheetId']();if(_0x312573[_0x4270a0(0x147)]===0x0||!_0x4bd23b||!_0x1a1958)return;let _0x51ba0a=[{'id':_0x4ea268[_0x4270a0(0x20a)]['id'],'params':{'unitId':_0x4bd23b,'subUnitId':_0x3963b9,'selections':_0x4b2515[_0x4270a0(0x1a2)][_0x4270a0(0x2ee)](_0x312573)}}],_0x35f34d=this[_0x4270a0(0x2a6)]['transformMutationsWithChangeset'](_0x598e45,_0x51ba0a);if(!(0x0,_0x5199be[_0x4270a0(0x358)])(_0x35f34d))throw _0x35f34d['error'];let _0x4bf711=(_0x388580=_0x35f34d['m2Prime'][0x0])==null||(_0x388580=_0x388580[_0x4270a0(0x3f5)])==null?void 0x0:_0x388580['selections'];if(Array[_0x4270a0(0x3cb)](_0x4bf711)&&_0x4bf711[_0x4270a0(0x147)]){if(_0x4bf711['length']===_0x51ba0a[0x0][_0x4270a0(0x3f5)]['selections']['length']&&_0x4bf711['every']((_0x18bae7,_0x5a510e)=>_0x4b2515[_0x4270a0(0x2a3)]['equals'](_0x18bae7[_0x4270a0(0x1e6)],_0x51ba0a[0x0][_0x4270a0(0x3f5)]['selections'][_0x5a510e][_0x4270a0(0x1e6)])))return;this[_0x4270a0(0x46a)][_0x4270a0(0x2eb)](_0x4b2515[_0x4270a0(0x16b)])[_0x4270a0(0x47a)](_0x4ea268[_0x4270a0(0x20a)]['id'],{'unitId':_0x4bd23b,'subUnitId':_0x3963b9,'selections':_0x4bf711});}}};_0x2326c2=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,_0x5199be['ITransformService']),_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x405)])],_0x2326c2);let _0x55fbad=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x1c0)),_0xa9151d=function(_0x5f1a02){const _0x5717fd=_0x9884d2;return _0x5f1a02[_0x5f1a02['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x5717fd(0x326),_0x5f1a02[_0x5f1a02['OTHER_CLIENTS_EDITING']=0x1]=_0x5717fd(0x3a5),_0x5f1a02;}({});function _0x21a96d(_0x5b4fe3){const _0x4c94b2=_0x9884d2;var _0x2d1321;return!!((_0x2d1321=_0x5b4fe3[_0x4c94b2(0x3f5)])!=null&&_0x2d1321[_0x4c94b2(0x336)]);}let _0xd9ab7a=new Set([_0x4ea268['InsertSheetMutation']['id']]),_0x5bc0ca=new Set([_0x471a79[_0x9884d2(0x441)]['id'],_0x471a79['EnsureSlideMasterPageMutation']['id'],_0x471a79[_0x9884d2(0x14d)]['id'],_0x471a79[_0x9884d2(0x3d5)]['id']]);function _0x331267(_0x47a1d7,_0x5b4ee4=_0xd9ab7a){const _0x2846f6=_0x9884d2;let _0x1112a9=[];for(let _0x56ae63 of _0x47a1d7){if(_0x5b4ee4[_0x2846f6(0x40a)](_0x56ae63['id'])){if(_0x1112a9[_0x2846f6(0x147)]>0x0)break;_0x1112a9[_0x2846f6(0x42c)](_0x56ae63);break;}if(_0x21a96d(_0x56ae63)){if(_0x1112a9[_0x2846f6(0x147)]>0x0)break;_0x1112a9[_0x2846f6(0x42c)](_0x56ae63);break;}_0x1112a9[_0x2846f6(0x42c)](_0x56ae63);}return _0x1112a9;}function _0xd48940(_0x2f6cc1,_0x180d16,_0x2cec70,_0xc278c4,_0x1b867c){const _0xde0724=_0x9884d2;let _0x205c62=_0x331267(_0x2f6cc1),_0x4e4ebb=_0x1b867c[_0xde0724(0x203)](),_0x36de35=(_0x4e4ebb==null?void 0x0:_0x4e4ebb[_0xde0724(0x36b)])??_0xde0724(0x1a8),_0x2cd25c=(_0x4e4ebb==null?void 0x0:_0x4e4ebb['memberID'])??_0xde0724(0x1a8);return{'changeset':{'unitID':_0x180d16,'type':(0x0,_0x5199be[_0xde0724(0x433)])(_0x2cec70['getUnitType'](_0x180d16)),'baseRev':_0xc278c4[_0xde0724(0x421)](_0x180d16),'revision':0x0,'userID':_0x36de35,'memberID':_0x2cd25c,'mutations':_0x205c62},'pendingMutations':_0x2f6cc1[_0xde0724(0x3d6)](_0x205c62[_0xde0724(0x147)])};}let _0x583864=_0xd48940;function _0x1fdd81(_0x28b4ff,_0x3314cc,_0x5d8dad,_0x325b1d,_0x30ff46){const _0x45a2dd=_0x9884d2;let _0x7c0c75=_0x331267(_0x28b4ff,_0x5bc0ca),_0x18aefa=_0x30ff46[_0x45a2dd(0x203)](),_0x1aa80a=(_0x18aefa==null?void 0x0:_0x18aefa[_0x45a2dd(0x36b)])??_0x45a2dd(0x1a8),_0x111963=(_0x18aefa==null?void 0x0:_0x18aefa[_0x45a2dd(0x417)])??_0x45a2dd(0x1a8);return{'changeset':{'unitID':_0x3314cc,'type':(0x0,_0x5199be['mapDocumentTypeToUniverInstanceType'])(_0x5d8dad[_0x45a2dd(0x429)](_0x3314cc)),'baseRev':_0x325b1d['getCurrentRevOfUnit'](_0x3314cc),'revision':0x0,'userID':_0x1aa80a,'memberID':_0x111963,'mutations':_0x7c0c75},'pendingMutations':_0x28b4ff['slice'](_0x7c0c75['length'])};}function _0x23ac61(_0x296586,_0x57fe11,_0x34d7ef,_0xb63f61,_0x3e94a6){const _0x31c924=_0x9884d2;let _0x372146=_0x296586['reduce']((_0x97f275,_0x1f403f)=>{const _0x4cb02e=_0x328a;let _0x42036e=_0x97f275[_0x97f275['length']-0x1],{id:_0x24937a}=_0x42036e??{},{id:_0x1fb9cd,type:_0x27d312}=_0x1f403f,_0x47fe1f=_0x1f403f[_0x4cb02e(0x3f5)];if(_0x24937a&&_0x24937a!==_0x1fb9cd)throw Error(_0x4cb02e(0x3ed)+_0x24937a+_0x4cb02e(0x1ca)+_0x1fb9cd+'.');if(!_0x42036e)return[{'id':_0x1fb9cd,'type':_0x27d312,'params':{'unitId':_0x47fe1f[_0x4cb02e(0x3f0)],'textRanges':_0x47fe1f[_0x4cb02e(0x229)],'actions':_0x47fe1f[_0x4cb02e(0x37a)]}}];let _0x2344f8=_0x42036e[_0x4cb02e(0x3f5)];return _0x454968(_0x2344f8,_0x47fe1f)?[..._0x97f275[_0x4cb02e(0x3d6)](0x0,-0x1),{..._0x42036e,'id':_0x1fb9cd,'type':_0x27d312,'params':{'unitId':_0x47fe1f['unitId'],'textRanges':_0x47fe1f[_0x4cb02e(0x229)],'actions':_0x4b2515[_0x4cb02e(0x19a)]['compose'](_0x2344f8[_0x4cb02e(0x37a)],_0x47fe1f[_0x4cb02e(0x37a)])}}]:[..._0x97f275,{'id':_0x1fb9cd,'type':_0x27d312,'params':{'unitId':_0x47fe1f[_0x4cb02e(0x3f0)],'textRanges':_0x47fe1f['textRanges'],'actions':_0x47fe1f[_0x4cb02e(0x37a)]}}];},[]),_0x325a41=_0x3e94a6['getCurrentUser'](),_0x16f8fc=(_0x325a41==null?void 0x0:_0x325a41[_0x31c924(0x36b)])??_0x31c924(0x1a8),_0x264aed=(_0x325a41==null?void 0x0:_0x325a41[_0x31c924(0x417)])??'unknown';return{'changeset':{'unitID':_0x57fe11,'type':(0x0,_0x5199be[_0x31c924(0x433)])(_0x34d7ef[_0x31c924(0x429)](_0x57fe11)),'baseRev':_0xb63f61[_0x31c924(0x421)](_0x57fe11),'revision':0x0,'userID':_0x16f8fc,'memberID':_0x264aed,'mutations':_0x372146},'pendingMutations':_0x296586[_0x31c924(0x3d6)](_0x296586[_0x31c924(0x147)])};}function _0x454968(_0xf36500,_0x3510da){const _0x1b3af1=_0x9884d2;return!_0x5af5a8(_0xf36500)&&!_0x5af5a8(_0x3510da)&&_0x31b485(_0xf36500[_0x1b3af1(0x37a)],_0x3510da[_0x1b3af1(0x37a)]);}function _0x5af5a8(_0x275338){const _0x345f2a=_0x9884d2;return _0x275338[_0x345f2a(0x3e6)]!==void 0x0;}function _0x31b485(_0x566e08,_0x69f0d8){return _0x1d625f(_0x566e08)&&_0x1d625f(_0x69f0d8)&&!_0x567205(_0x566e08)&&!_0x567205(_0x69f0d8)&&!_0xa2447e(_0x566e08)&&!_0xa2447e(_0x69f0d8);}function _0x1d625f(_0x449392){const _0x17d5dc=_0x9884d2;return _0x566349(_0x449392)[_0x17d5dc(0x3e3)](_0x50bf05=>_0xf69dff(_0x50bf05)&&_0x50bf05['et']===_0x17d5dc(0x28f));}function _0xa2447e(_0x189c80){const _0x17c5ee=_0x9884d2;return _0x566349(_0x189c80)['some'](_0x31940b=>Array[_0x17c5ee(0x3cb)](_0x31940b)||typeof _0x31940b==_0x17c5ee(0x212)||typeof _0x31940b==_0x17c5ee(0x266));}function _0x567205(_0x4e6d92){const _0x4097e7=_0x9884d2;return _0x566349(_0x4e6d92)['some'](_0x4c63a8=>!_0xf69dff(_0x4c63a8)||_0x4c63a8['et']!==_0x4097e7(0x28f)||!Array[_0x4097e7(0x3cb)](_0x4c63a8['e'])?!0x1:_0x4c63a8['e'][_0x4097e7(0x3e3)](_0x2e4785=>!_0xf69dff(_0x2e4785)||!_0xf69dff(_0x2e4785[_0x4097e7(0x450)])?!0x1:Object[_0x4097e7(0x167)][_0x4097e7(0x30e)][_0x4097e7(0x43d)](_0x2e4785[_0x4097e7(0x450)],'tables')||Object['prototype'][_0x4097e7(0x30e)]['call'](_0x2e4785['body'],_0x4097e7(0x35c))||Object[_0x4097e7(0x167)][_0x4097e7(0x30e)]['call'](_0x2e4785[_0x4097e7(0x450)],_0x4097e7(0x324))));}function _0x566349(_0x57a02a){const _0x971bf3=_0x9884d2;if(!Array[_0x971bf3(0x3cb)](_0x57a02a))return[];let _0x142d23=_0x57a02a[_0x971bf3(0x473)](_0x971bf3(0x450))?_0x57a02a:_0x57a02a[_0x971bf3(0x34a)](_0x10955d=>Array[_0x971bf3(0x3cb)](_0x10955d)&&_0x10955d[_0x971bf3(0x473)](_0x971bf3(0x450)));if(!Array[_0x971bf3(0x3cb)](_0x142d23))return[];let _0x3000c0=_0x142d23[_0x971bf3(0x172)](_0x971bf3(0x450));return _0x3000c0===-0x1?[]:_0x142d23[_0x971bf3(0x3d6)](_0x3000c0+0x1);}function _0xf69dff(_0x2b96bd){const _0x54b936=_0x9884d2;return typeof _0x2b96bd==_0x54b936(0x26e)&&!!_0x2b96bd&&!Array[_0x54b936(0x3cb)](_0x2b96bd);}function _0x415646(_0x52f55d,_0x3b32a3){const _0x4d6866=_0x9884d2;let _0x5e1520=new _0xccd21e[(_0x4d6866(0x375))](0x1);return setTimeout(()=>_0x5e1520[_0x4d6866(0x17e)](_0x3b32a3),_0x52f55d),_0x5e1520[_0x4d6866(0x43c)]()['pipe']((0x0,_0xccd21e[_0x4d6866(0x1dc)])(0x1));}var _0x5e05f6,_0x25d68a,_0x1aa808;let _0x500434=function(_0x4c3ad0){const _0x3c4fa1=_0x9884d2;return _0x4c3ad0[_0x3c4fa1(0x3dd)]='not_collab',_0x4c3ad0['SYNCED']=_0x3c4fa1(0x443),_0x4c3ad0['PENDING']=_0x3c4fa1(0x1a3),_0x4c3ad0[_0x3c4fa1(0x452)]=_0x3c4fa1(0x1cf),_0x4c3ad0['AWAITING_WITH_PENDING']=_0x3c4fa1(0x283),_0x4c3ad0[_0x3c4fa1(0x338)]=_0x3c4fa1(0x2dc),_0x4c3ad0['CONFLICT']=_0x3c4fa1(0x1bf),_0x4c3ad0['OFFLINE']=_0x3c4fa1(0x219),_0x4c3ad0;}({}),_0x5b1e26=0x4e20,_0x11c58e=0x2bf20;var _0x26e5b5=class{constructor(_0x59b3ec,_0x3a0fb3,_0x237086,_0x685c24,_0x4abec9,_0x412b01,_0x43fd0d,_0x4489b5,_0x1fbcb8){const _0xae4397=_0x9884d2;this[_0xae4397(0x258)]=_0x59b3ec,this[_0xae4397(0x415)]=_0x3a0fb3,this[_0xae4397(0x3f2)]=_0x4abec9,this['_commandService']=_0x412b01,this[_0xae4397(0x25b)]=_0x43fd0d,this[_0xae4397(0x196)]=_0x4489b5,this['_localCacheService']=_0x1fbcb8,_0x60128a(this,_0xae4397(0x402),null),_0x60128a(this,_0xae4397(0x44f),[]),this[_0xae4397(0x402)]=_0x237086,this['_pendingMutations']=_0x685c24;}['_checkMissing'](_0x40d468){const _0x54a183=_0x9884d2;let _0x370816=this[_0x54a183(0x196)]['getCurrentRevOfUnit'](this[_0x54a183(0x258)]);return _0x40d468['revision']>_0x370816+0x1&&(this[_0x54a183(0x3f2)][_0x54a183(0x228)]({'from':_0x370816,'to':_0x40d468[_0x54a183(0x2f4)]-0x1}),!0x0);}[_0x9884d2(0x244)](_0x549ae2){const _0x1c45c2=_0x9884d2;this[_0x1c45c2(0x25b)][_0x1c45c2(0x3b7)](this['unitID'],_0x549ae2);}[_0x9884d2(0x233)](_0x3b5ab9){const _0x231bfd=_0x9884d2;var _0x1f3ab4,_0x64701f;(_0x1f3ab4=(_0x64701f=this['_handler'])[_0x231bfd(0x3c2)])==null||_0x1f3ab4['call'](_0x64701f,_0x3b5ab9);}['_prepareTransformSelections'](_0x4b581a){const _0x186a58=_0x9884d2;var _0x4266fa,_0x22d74f;return((_0x4266fa=(_0x22d74f=this['_handler'])[_0x186a58(0x3da)])==null?void 0x0:_0x4266fa['call'](_0x22d74f,_0x4b581a))??null;}[_0x9884d2(0x3d0)](_0x44adb0){const _0x131ffa=_0x9884d2;var _0x48aafb,_0xa8d939;return(_0x48aafb=(_0xa8d939=this[_0x131ffa(0x3f2)])[_0x131ffa(0x31a)])==null?void 0x0:_0x48aafb['call'](_0xa8d939,_0x44adb0);}[_0x9884d2(0x369)](_0x1a423e){const _0x52c039=_0x9884d2;var _0x385062,_0xe3e5b1;return(_0x385062=(_0xe3e5b1=this[_0x52c039(0x3f2)])[_0x52c039(0x330)])==null?void 0x0:_0x385062[_0x52c039(0x43d)](_0xe3e5b1,_0x1a423e);}['_transformRemoteChangesetByIMECache'](_0x34d1fb){const _0xeee69a=_0x9884d2;var _0x3d9487,_0x45a58a;return((_0x3d9487=(_0x45a58a=this[_0xeee69a(0x3f2)])[_0xeee69a(0x311)])==null?void 0x0:_0x3d9487[_0xeee69a(0x43d)](_0x45a58a,_0x34d1fb))??_0x34d1fb;}[_0x9884d2(0x362)](_0x322c9b){const _0x17be89=_0x9884d2;var _0x41d443,_0x6375b7;return((_0x41d443=(_0x6375b7=this[_0x17be89(0x3f2)])[_0x17be89(0x206)])==null?void 0x0:_0x41d443[_0x17be89(0x43d)](_0x6375b7,_0x322c9b))??_0x322c9b;}[_0x9884d2(0x476)](_0x45f5dc){const _0x20fd80=_0x9884d2;if(this[_0x20fd80(0x415)]===_0x4b2515[_0x20fd80(0x223)][_0x20fd80(0x10f)]){let {unitID:_0xb29239,mutations:_0x2f4384,memberID:_0x1adfc3}=_0x45f5dc,_0x2169a3=_0x2f4384[_0x20fd80(0x147)]>0x0?_0x2f4384[0x0][_0x20fd80(0x3f5)][_0x20fd80(0x229)]:[];if(Array[_0x20fd80(0x3cb)](_0x2169a3)&&_0x2169a3[_0x20fd80(0x147)]>0x0){var _0x128ca5,_0x1710b1;(_0x128ca5=(_0x1710b1=this[_0x20fd80(0x3f2)])['onSyncEditingCollabCursor'])==null||_0x128ca5[_0x20fd80(0x43d)](_0x1710b1,{'unitID':_0xb29239,'memberID':_0x1adfc3,'textRanges':_0x2169a3});}}}['_updateLocalCache'](){const _0x1eaf8d=_0x9884d2;var _0x12a7db;(_0x12a7db=this[_0x1eaf8d(0x323)])==null||_0x12a7db['updateOfflineData'](this[_0x1eaf8d(0x258)],this['type'],this[_0x1eaf8d(0x402)],this[_0x1eaf8d(0x44f)]);}[_0x9884d2(0x21d)](){const _0x58dc3a=_0x9884d2;return this[_0x58dc3a(0x196)][_0x58dc3a(0x421)](this[_0x58dc3a(0x258)]);}['_incrementRevisionNumber'](){const _0x5855f1=_0x9884d2;this['_revisionService'][_0x5855f1(0x404)](this['unitID']);}['_executeRemoteChangeset'](_0x4fed3a){const _0x2dca5b=_0x9884d2;let _0x4d4a85=this[_0x2dca5b(0x3ba)](_0x4fed3a);_0x4d4a85=this[_0x2dca5b(0x362)](_0x4d4a85);let _0x5a4edc=this[_0x2dca5b(0x1d3)](_0x4d4a85),_0x1c5d1c=(0x0,_0x4b2515[_0x2dca5b(0x3d4)])(_0x4d4a85[_0x2dca5b(0x25c)],this[_0x2dca5b(0x2ef)],{'fromCollab':!0x0});if(!_0x1c5d1c[_0x2dca5b(0x312)])throw _0x5a4edc==null||_0x5a4edc['rollback'](),_0x1c5d1c[_0x2dca5b(0x1b5)]instanceof Error?_0x1c5d1c['error']:Error(_0x1c5d1c[_0x2dca5b(0x1b5)]??_0x2dca5b(0x308));_0x5a4edc==null||_0x5a4edc[_0x2dca5b(0x120)](),this[_0x2dca5b(0x3d0)](_0x4d4a85),this[_0x2dca5b(0x369)](_0x4d4a85),this[_0x2dca5b(0x244)](_0x4fed3a),this['_transformSelections'](_0x4d4a85),this['_syncEditingCollabCursor'](_0x4d4a85),this[_0x2dca5b(0x301)]();}};let _0x57c5eb=class extends _0x26e5b5{constructor(_0x4e67c2,_0x59283d,_0x3eb65b,_0x5ed7ab,_0x4bc597,_0x87df29,_0x4fad72,_0x17e8d5,_0x578edc,_0x1f4939){const _0x42edb3=_0x9884d2;super(_0x4e67c2,_0x59283d,null,[],_0x3eb65b,_0x4fad72,_0x87df29,_0x5ed7ab,_0x1f4939),this[_0x42edb3(0x46a)]=_0x4bc597,this[_0x42edb3(0x344)]=_0x17e8d5,this['_transformService']=_0x578edc,this['localCacheService']=_0x1f4939,_0x60128a(this,_0x42edb3(0x45f),'synced');}[_0x9884d2(0x3ea)](_0x52d705){const _0x2207f1=_0x9884d2;let _0x45db65=this[_0x2207f1(0x46a)]['createInstance'](_0x27ecb8,this[_0x2207f1(0x258)],this[_0x2207f1(0x415)],[_0x52d705],this[_0x2207f1(0x3f2)]);return _0x45db65['_schedule'](),_0x45db65[_0x2207f1(0x34f)](),_0x45db65;}['onRemoteChangeset'](_0x36d36e){const _0x5e0fc5=_0x9884d2;if(this['_checkMissing'](_0x36d36e))return this['_injector'][_0x5e0fc5(0x40d)](_0x394019,this[_0x5e0fc5(0x258)],this[_0x5e0fc5(0x415)],null,[],null,[_0x36d36e],this['_handler']);try{let _0x438edb=this[_0x5e0fc5(0x2a6)][_0x5e0fc5(0x457)](_0x36d36e,[_0x5199be[_0x5e0fc5(0x182)]]);if((0x0,_0x5199be[_0x5e0fc5(0x358)])(_0x438edb)){let {c1Prime:_0x1ed816}=_0x438edb;return this[_0x5e0fc5(0x24d)](_0x1ed816),this;}throw _0x438edb['error'];}catch(_0x26b39e){return this['_logService'][_0x5e0fc5(0x1b5)](_0x26b39e),this['_onConflict'](!0x1);}}[_0x9884d2(0x143)](_0x3ecea5){const _0x282eae=_0x9884d2;return this[_0x282eae(0x46a)]['createInstance'](_0x4b9c5b,this[_0x282eae(0x258)],this[_0x282eae(0x415)],null,[],this[_0x282eae(0x3f2)],_0x3ecea5);}['onRemoteAck'](_0x300aa5){const _0x47e78e=_0x9884d2;if(_0x300aa5['revision']<=this[_0x47e78e(0x21d)]())return this;throw Error(_0x47e78e(0x2ed));}['onRemoteRej'](){const _0x9bb747=_0x9884d2;throw Error(_0x9bb747(0x2d2));}[_0x9884d2(0x39b)](){return this;}[_0x9884d2(0x3ec)](){const _0x53b312=_0x9884d2;return this[_0x53b312(0x46a)][_0x53b312(0x40d)](_0x20a1e1,this[_0x53b312(0x258)],this['type'],null,[],this['_handler']);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x1fc)](){const _0x496089=_0x9884d2;throw Error(_0x496089(0x225));}[_0x9884d2(0x15d)](){const _0x2a3c5d=_0x9884d2;let _0x2f6df4=this['_revisionService']['getCurrentRevOfUnit'](this[_0x2a3c5d(0x258)]);return this[_0x2a3c5d(0x3f2)][_0x2a3c5d(0x228)]({'from':_0x2f6df4,'to':0x0}),this[_0x2a3c5d(0x46a)][_0x2a3c5d(0x40d)](_0x394019,this[_0x2a3c5d(0x258)],this[_0x2a3c5d(0x415)],null,[],null,[],this[_0x2a3c5d(0x3f2)]);}};_0x57c5eb=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x4b2515['Injector'])),_0x3b5628(0x5,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0x6,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x8,_0x5199be[_0x9884d2(0x1ec)]),_0x3b5628(0x9,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0x57c5eb);let _0x27ecb8=_0x5e05f6=class extends _0x26e5b5{constructor(_0x13ba07,_0x523be8,_0x2bf74f,_0x3c2f40,_0x5e298f,_0xf9ff7e,_0x19aa01,_0xff4b1c,_0x2e1f7d,_0x46e01d,_0x4e597c,_0x2e7cce,_0x3991e6,_0x1c7c6c){const _0xc8ed98=_0x9884d2;super(_0x13ba07,_0x523be8,null,_0x2bf74f,_0x3c2f40,_0x2e1f7d,_0x3991e6,_0xf9ff7e,_0x1c7c6c),this['_injector']=_0x5e298f,this[_0xc8ed98(0x1c5)]=_0x19aa01,this['_logService']=_0xff4b1c,this[_0xc8ed98(0x3c6)]=_0x46e01d,this[_0xc8ed98(0x2a6)]=_0x4e597c,this[_0xc8ed98(0x118)]=_0x2e7cce,_0x60128a(this,_0xc8ed98(0x45f),_0xc8ed98(0x1a3)),_0x60128a(this,_0xc8ed98(0x453),null),_0x60128a(this,'_sendingTimer',null);}[_0x9884d2(0x3ea)](_0x13d40d){const _0x5c7aa0=_0x9884d2;return this[_0x5c7aa0(0x44f)]['push'](_0x13d40d),this[_0x5c7aa0(0x34f)](),this;}[_0x9884d2(0x32d)](_0x144ed3){const _0x5ce221=_0x9884d2;if(this[_0x5ce221(0x2db)](_0x144ed3))return this['_clearScheduledTask'](),this[_0x5ce221(0x46a)][_0x5ce221(0x40d)](_0x394019,this['unitID'],this[_0x5ce221(0x415)],null,this['_pendingMutations'],null,[_0x144ed3],this[_0x5ce221(0x3f2)]);try{let _0x4a4f28=this[_0x5ce221(0x2a6)][_0x5ce221(0x457)](_0x144ed3,this[_0x5ce221(0x44f)]);if((0x0,_0x5199be['isTransformMutationsWithChangesetSuccess'])(_0x4a4f28)){let {c1Prime:_0x4a3344,m2Prime:_0x1aa0d0}=_0x4a4f28;this['_executeRemoteChangeset'](_0x4a3344);let _0x3d8d3b=this[_0x5ce221(0x46a)][_0x5ce221(0x40d)](_0x5e05f6,this[_0x5ce221(0x258)],this[_0x5ce221(0x415)],_0x1aa0d0,this['_handler']);this[_0x5ce221(0x3eb)]();let _0xc96928=new Date()[_0x5ce221(0x1c7)](),_0x1fa90a=this['_scheduleCompleteTimestamp']?Math['max'](this[_0x5ce221(0x453)]-_0xc96928,0x0):this[_0x5ce221(0x11b)]();return _0x3d8d3b[_0x5ce221(0x334)](_0x1fa90a),_0x3d8d3b;}throw _0x4a4f28[_0x5ce221(0x1b5)];}catch(_0x3ecf87){return this[_0x5ce221(0x344)][_0x5ce221(0x1b5)](_0x3ecf87),this[_0x5ce221(0x143)](!0x1);}}[_0x9884d2(0x2de)](_0x160a1d){const _0x153e11=_0x9884d2;if(_0x160a1d[_0x153e11(0x2f4)]<=this['_getCurrentRevision']())return this;throw Error(_0x153e11(0x2c5));}[_0x9884d2(0x21f)](){throw Error('[PendingState]:\x20received\x20rejection.');}[_0x9884d2(0x39b)](){return this;}[_0x9884d2(0x3ec)](){const _0x46ae34=_0x9884d2;return this['_clearScheduledTask'](),this['_injector'][_0x46ae34(0x40d)](_0x20a1e1,this[_0x46ae34(0x258)],this[_0x46ae34(0x415)],null,this[_0x46ae34(0x44f)],this[_0x46ae34(0x3f2)]);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x334)](_0x55d7cd){const _0x46134b=_0x9884d2;let _0x30d90f=_0x55d7cd??this[_0x46134b(0x11b)]();this['_scheduleCompleteTimestamp']=new Date()['getTime']()+_0x30d90f,this[_0x46134b(0x36a)]=setTimeout(()=>{const _0x411eb3=_0x46134b;this[_0x411eb3(0x3eb)]();let _0x54a717=null;switch(this['type']){case _0x4b2515[_0x411eb3(0x223)][_0x411eb3(0x465)]:_0x54a717=_0xd48940(this['_pendingMutations'],this[_0x411eb3(0x258)],this['_univerInstanceService'],this[_0x411eb3(0x196)],this[_0x411eb3(0x1c5)]);break;case _0x4b2515[_0x411eb3(0x223)]['UNIVER_DOC']:_0x54a717=this[_0x411eb3(0x44f)]['every'](_0xfc2cc4=>_0xfc2cc4['id']===_0x120ed0['RichTextEditingMutation']['id'])?_0x23ac61(this[_0x411eb3(0x44f)],this['unitID'],this[_0x411eb3(0x118)],this[_0x411eb3(0x196)],this[_0x411eb3(0x1c5)]):_0xd48940(this[_0x411eb3(0x44f)],this[_0x411eb3(0x258)],this['_univerInstanceService'],this[_0x411eb3(0x196)],this[_0x411eb3(0x1c5)]);break;case _0x4b2515[_0x411eb3(0x223)][_0x411eb3(0x281)]:_0x54a717=_0x1fdd81(this[_0x411eb3(0x44f)],this[_0x411eb3(0x258)],this[_0x411eb3(0x118)],this[_0x411eb3(0x196)],this[_0x411eb3(0x1c5)]);break;case _0x4b2515['UniverInstanceType'][_0x411eb3(0x1b9)]:_0x54a717=_0x583864(this['_pendingMutations'],this[_0x411eb3(0x258)],this[_0x411eb3(0x118)],this[_0x411eb3(0x196)],this['_userManagerService']);break;case _0x4b2515['UniverInstanceType']['UNIVER_BOARD']:_0x54a717=_0xd48940(this[_0x411eb3(0x44f)],this['unitID'],this['_univerInstanceService'],this[_0x411eb3(0x196)],this['_userManagerService']);break;case _0x4b2515[_0x411eb3(0x223)][_0x411eb3(0x267)]:_0x54a717=_0xd48940(this['_pendingMutations'],this[_0x411eb3(0x258)],this[_0x411eb3(0x118)],this['_revisionService'],this[_0x411eb3(0x1c5)]);break;default:throw Error(_0x411eb3(0x42b)+this['type']+'\x20in\x20_schedule.');}let {changeset:_0x2f50d4,pendingMutations:_0x2816a8}=_0x54a717;this[_0x411eb3(0x3f2)]['onSendChangeset'](_0x2f50d4);let _0x568d11=_0x2816a8[_0x411eb3(0x147)]?this[_0x411eb3(0x46a)][_0x411eb3(0x40d)](_0x1e3872,this[_0x411eb3(0x258)],this[_0x411eb3(0x415)],_0x2f50d4,_0x2816a8,this[_0x411eb3(0x3f2)],void 0x0):this[_0x411eb3(0x46a)][_0x411eb3(0x40d)](_0x57ae4a,this[_0x411eb3(0x258)],this[_0x411eb3(0x415)],_0x2f50d4,this['_handler']);_0x568d11[_0x411eb3(0x34f)](),this[_0x411eb3(0x3f2)][_0x411eb3(0x171)](this,_0x568d11);},_0x30d90f);}[_0x9884d2(0x11b)](){const _0x35a2d9=_0x9884d2;let _0x1c595e=this[_0x35a2d9(0x3c6)][_0x35a2d9(0x32f)](_0x3c0330);return(_0x1c595e==null?void 0x0:_0x1c595e[_0x35a2d9(0x1df)])??0x7d0;}[_0x9884d2(0x1fc)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x13b932=_0x9884d2;this[_0x13b932(0x36a)]!=null&&(clearTimeout(this[_0x13b932(0x36a)]),this['_sendingTimer']=null);}[_0x9884d2(0x143)](_0x2c93df){const _0x2f9e73=_0x9884d2;return this[_0x2f9e73(0x3eb)](),this['_injector'][_0x2f9e73(0x40d)](_0x4b9c5b,this[_0x2f9e73(0x258)],this['type'],null,this[_0x2f9e73(0x44f)],this[_0x2f9e73(0x3f2)],_0x2c93df);}};_0x27ecb8=_0x5e05f6=_0x33ad5b([_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x169)])),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0xa,_0x5199be['ITransformService']),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0xc,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x27ecb8);let _0x57ae4a=_0x25d68a=class extends _0x26e5b5{constructor(_0x180175,_0x4e6460,_0x103a8a,_0x41fc57,_0x2d7d7b,_0xbd2d3c,_0x19ba92,_0x39f69f,_0x52778a,_0x36ff7a,_0x12ae4a){const _0x2cdfeb=_0x9884d2;super(_0x180175,_0x4e6460,_0x103a8a,[],_0x41fc57,_0x19ba92,_0x36ff7a,_0xbd2d3c,_0x12ae4a),this[_0x2cdfeb(0x46a)]=_0x2d7d7b,this['_logService']=_0x39f69f,this['_transformService']=_0x52778a,_0x60128a(this,_0x2cdfeb(0x45f),_0x2cdfeb(0x1cf)),_0x60128a(this,_0x2cdfeb(0x269),0x0),_0x60128a(this,_0x2cdfeb(0x300),0x0),_0x60128a(this,_0x2cdfeb(0x425),void 0x0),_0x60128a(this,_0x2cdfeb(0x14a),void 0x0);}['appendMutation'](_0x2ff023){const _0x255c75=_0x9884d2;this[_0x255c75(0x3eb)]();let _0x3118b4=this['_injector'][_0x255c75(0x40d)](_0x1e3872,this['unitID'],this[_0x255c75(0x415)],this['_awaitingChangeset'],[_0x2ff023],this[_0x255c75(0x3f2)],this[_0x255c75(0x425)]);return _0x3118b4['_updateLocalCache'](),_0x3118b4;}[_0x9884d2(0x32d)](_0x262a6e){const _0x360299=_0x9884d2;if(this[_0x360299(0x2db)](_0x262a6e))return this[_0x360299(0x3eb)](),this['_injector']['createInstance'](_0x394019,this[_0x360299(0x258)],this[_0x360299(0x415)],this[_0x360299(0x402)],[],null,[_0x262a6e],this['_handler']);try{let _0x2aef68=this['_transformService']['transformChangesets']([_0x262a6e],[this[_0x360299(0x402)]],!0x1);if((0x0,_0x5199be['isTransformChangesetsSuccess'])(_0x2aef68)){let {c1Prime:_0x3062f0,c2Prime:_0x4b0b68}=_0x2aef68;this['_executeRemoteChangeset'](_0x3062f0[0x0]),_0x4b0b68[0x0][_0x360299(0x1d4)]=this['_getCurrentRevision'](),this[_0x360299(0x3eb)]();let _0x22d8ab=this[_0x360299(0x46a)][_0x360299(0x40d)](_0x25d68a,this[_0x360299(0x258)],this[_0x360299(0x415)],_0x4b0b68[0x0],this['_handler']);return _0x22d8ab['_updateLocalCache'](),_0x22d8ab;}throw _0x2aef68[_0x360299(0x1b5)];}catch(_0x3e2744){return this['_logService'][_0x360299(0x1b5)](_0x3e2744),this[_0x360299(0x143)](!0x1);}}[_0x9884d2(0x2de)](_0x43d502){const _0x5623cd=_0x9884d2;this['_clearScheduledTask']();let _0x1cbfaa=this[_0x5623cd(0x196)][_0x5623cd(0x421)](this[_0x5623cd(0x258)]);if(_0x43d502[_0x5623cd(0x2f4)]<=_0x1cbfaa)return this;if(this[_0x5623cd(0x2db)](_0x43d502))return this[_0x5623cd(0x46a)][_0x5623cd(0x40d)](_0x394019,this['unitID'],this['type'],this['_awaitingChangeset'],[],_0x43d502['revision'],[],this[_0x5623cd(0x3f2)]);this[_0x5623cd(0x301)]();let _0x593297=this[_0x5623cd(0x46a)][_0x5623cd(0x40d)](_0x57c5eb,this[_0x5623cd(0x258)],this[_0x5623cd(0x415)],this[_0x5623cd(0x3f2)]);return _0x593297[_0x5623cd(0x34f)](),_0x593297;}[_0x9884d2(0x21f)](_0x20fef7){const _0x5c7def=_0x9884d2;return this[_0x5c7def(0x143)](!!(_0x20fef7!=null&&_0x20fef7[_0x5c7def(0x439)]));}['onRemoteRetry'](_0x22f515){const _0x3a992a=_0x9884d2;return this['_maxTotalRetryTimeout']>_0x11c58e?this[_0x3a992a(0x3ec)]():(this[_0x3a992a(0x425)]=_0x415646(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x22f515[_0x3a992a(0x12c)]}),this[_0x3a992a(0x14a)]=this[_0x3a992a(0x425)][_0x3a992a(0x23b)](({reqId:_0x5605b8,timeout:_0x42707a})=>{const _0x4b6056=_0x3a992a;this[_0x4b6056(0x447)](_0x5605b8,_0x42707a);}),this);}['toggleOffline'](){const _0x12d032=_0x9884d2;return this['_clearScheduledTask'](),this['_injector'][_0x12d032(0x40d)](_0x20a1e1,this['unitID'],this[_0x12d032(0x415)],this[_0x12d032(0x402)],[],this[_0x12d032(0x3f2)]);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x1fc)](){const _0x8780e7=_0x9884d2;this['_handler'][_0x8780e7(0x15f)](this[_0x8780e7(0x402)]);}[_0x9884d2(0x143)](_0x4444aa){const _0x2c7942=_0x9884d2;return this['_clearScheduledTask'](),this[_0x2c7942(0x46a)][_0x2c7942(0x40d)](_0x4b9c5b,this[_0x2c7942(0x258)],this[_0x2c7942(0x415)],this['_awaitingChangeset'],[],this[_0x2c7942(0x3f2)],_0x4444aa);}[_0x9884d2(0x447)](_0x4fd463,_0x23d1b6){const _0x132069=_0x9884d2;var _0x471b8c;_0x4fd463===((_0x471b8c=this['_awaitingChangeset'])==null?void 0x0:_0x471b8c[_0x132069(0x12c)])&&(this[_0x132069(0x1fc)](),this[_0x132069(0x269)]=_0x23d1b6===0x0?0x3e8:Math[_0x132069(0x231)](_0x23d1b6*0x2,_0x5b1e26),this[_0x132069(0x300)]+=this[_0x132069(0x269)]);}[_0x9884d2(0x3eb)](){const _0x176019=_0x9884d2;var _0x3c3163;(_0x3c3163=this['_sender'])==null||_0x3c3163[_0x176019(0x29f)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x57ae4a=_0x25d68a=_0x33ad5b([_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x6,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x8,_0x5199be[_0x9884d2(0x1ec)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0xa,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x57ae4a);let _0x1e3872=_0x1aa808=class extends _0x26e5b5{constructor(_0x35cf9e,_0x4f9073,_0x58e353,_0x43e725,_0x2d87d5,_0x560c27,_0x3ca60a,_0x22e410,_0x20d452,_0x1b58c8,_0x32588e,_0x1ee5a6,_0x3f7175){const _0x17e121=_0x9884d2;super(_0x35cf9e,_0x4f9073,_0x58e353,_0x43e725,_0x2d87d5,_0x20d452,_0x1ee5a6,_0x22e410,_0x3f7175),this[_0x17e121(0x46a)]=_0x3ca60a,this[_0x17e121(0x344)]=_0x1b58c8,this['_transformService']=_0x32588e,this['localCacheService']=_0x3f7175,_0x60128a(this,_0x17e121(0x45f),_0x17e121(0x283)),_0x60128a(this,_0x17e121(0x269),0x0),_0x60128a(this,'_maxTotalRetryTimeout',0x0),_0x60128a(this,_0x17e121(0x425),void 0x0),_0x60128a(this,_0x17e121(0x14a),void 0x0),_0x560c27&&(this[_0x17e121(0x425)]=_0x560c27,this[_0x17e121(0x14a)]=this['_resendTimer']['subscribe'](({reqId:_0x3aba34,timeout:_0x8922ae})=>{const _0x334cbc=_0x17e121;this[_0x334cbc(0x447)](_0x3aba34,_0x8922ae);}));}[_0x9884d2(0x3ea)](_0x31f260){const _0x51a130=_0x9884d2;return this[_0x51a130(0x44f)][_0x51a130(0x42c)](_0x31f260),this;}['onRemoteChangeset'](_0x3c9ef9){const _0x5a7e72=_0x9884d2;if(this['_checkMissing'](_0x3c9ef9))return this[_0x5a7e72(0x3eb)](),this['_injector'][_0x5a7e72(0x40d)](_0x394019,this[_0x5a7e72(0x258)],this[_0x5a7e72(0x415)],this['_awaitingChangeset'],this[_0x5a7e72(0x44f)],null,[_0x3c9ef9],this[_0x5a7e72(0x3f2)]);try{let _0x1938d4=this[_0x5a7e72(0x2a6)][_0x5a7e72(0x270)]([_0x3c9ef9],[this[_0x5a7e72(0x402)]],!0x1);if((0x0,_0x5199be['isTransformChangesetsSuccess'])(_0x1938d4)){let {c1Prime:_0x5a3057,c2Prime:_0x503401}=_0x1938d4,_0x15b627=this['_transformService'][_0x5a7e72(0x457)](_0x5a3057[0x0],this[_0x5a7e72(0x44f)]);if((0x0,_0x5199be['isTransformMutationsWithChangesetSuccess'])(_0x15b627)){let {c1Prime:_0x1dff4d,m2Prime:_0x32fb21}=_0x15b627;return this[_0x5a7e72(0x24d)](_0x1dff4d),_0x503401[0x0][_0x5a7e72(0x1d4)]=this['_getCurrentRevision'](),this[_0x5a7e72(0x3eb)](),this[_0x5a7e72(0x46a)][_0x5a7e72(0x40d)](_0x1aa808,this['unitID'],this['type'],_0x503401[0x0],_0x32fb21,this[_0x5a7e72(0x3f2)],void 0x0);}throw _0x15b627[_0x5a7e72(0x1b5)];}throw _0x1938d4[_0x5a7e72(0x1b5)];}catch(_0xcb0eed){return this[_0x5a7e72(0x344)]['error'](_0xcb0eed),this['_onConflict'](!0x1);}}[_0x9884d2(0x2de)](_0x1b88f1){const _0xddd303=_0x9884d2;this[_0xddd303(0x3eb)]();let _0x3f2bff=this[_0xddd303(0x21d)]();if(_0x1b88f1['revision']<=_0x3f2bff)return this;if(this[_0xddd303(0x2db)](_0x1b88f1))return this[_0xddd303(0x46a)][_0xddd303(0x40d)](_0x394019,this['unitID'],this[_0xddd303(0x415)],this['_awaitingChangeset'],this['_pendingMutations'],_0x1b88f1[_0xddd303(0x2f4)],[],this[_0xddd303(0x3f2)]);this[_0xddd303(0x301)]();let _0x5ac893=this['_injector'][_0xddd303(0x40d)](_0x27ecb8,this[_0xddd303(0x258)],this[_0xddd303(0x415)],this['_pendingMutations'],this[_0xddd303(0x3f2)]);return _0x5ac893['_schedule'](),_0x5ac893['_updateLocalCache'](),_0x5ac893;}['onRemoteRej'](_0x40cc90){const _0x4a52e2=_0x9884d2;return this[_0x4a52e2(0x143)](!!(_0x40cc90!=null&&_0x40cc90[_0x4a52e2(0x439)]));}['onRemoteRetry'](_0x3fd1aa){const _0x1a3b89=_0x9884d2;return this['_maxTotalRetryTimeout']>_0x11c58e?this[_0x1a3b89(0x3ec)]():(this[_0x1a3b89(0x425)]=_0x415646(this[_0x1a3b89(0x269)],{'timeout':this[_0x1a3b89(0x269)],'reqId':_0x3fd1aa['reqId']}),this[_0x1a3b89(0x14a)]=this[_0x1a3b89(0x425)][_0x1a3b89(0x23b)](({reqId:_0x21ab13,timeout:_0x3df606})=>{const _0xc1ea77=_0x1a3b89;this[_0xc1ea77(0x447)](_0x21ab13,_0x3df606);}),this);}[_0x9884d2(0x3ec)](){const _0x133e14=_0x9884d2;return this[_0x133e14(0x3eb)](),this[_0x133e14(0x46a)][_0x133e14(0x40d)](_0x20a1e1,this[_0x133e14(0x258)],this[_0x133e14(0x415)],this[_0x133e14(0x402)],this[_0x133e14(0x44f)],this[_0x133e14(0x3f2)]);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x1fc)](){const _0x5424ec=_0x9884d2;this[_0x5424ec(0x3f2)][_0x5424ec(0x15f)](this['_awaitingChangeset']);}['_onConflict'](_0x47c18a){const _0x23123d=_0x9884d2;return this[_0x23123d(0x3eb)](),this[_0x23123d(0x46a)]['createInstance'](_0x4b9c5b,this[_0x23123d(0x258)],this[_0x23123d(0x415)],null,this[_0x23123d(0x44f)],this[_0x23123d(0x3f2)],_0x47c18a);}[_0x9884d2(0x447)](_0x32a38f,_0x30773c){const _0x571ae4=_0x9884d2;var _0x3ebb03;_0x32a38f===((_0x3ebb03=this[_0x571ae4(0x402)])==null?void 0x0:_0x3ebb03[_0x571ae4(0x12c)])&&(this['resend'](),this[_0x571ae4(0x269)]=_0x30773c===0x0?0x3e8:Math[_0x571ae4(0x231)](_0x30773c*0x2,_0x5b1e26),this['_maxTotalRetryTimeout']+=this['_resendTimeout']);}[_0x9884d2(0x3eb)](){const _0x53d6b2=_0x9884d2;var _0x4d080a;(_0x4d080a=this[_0x53d6b2(0x14a)])==null||_0x4d080a[_0x53d6b2(0x29f)](),this[_0x53d6b2(0x269)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x1e3872=_0x1aa808=_0x33ad5b([_0x3b5628(0x6,(0x0,_0x4b2515['Inject'])(_0x4b2515['Injector'])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x5199be[_0x9884d2(0x1ec)]),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x1e3872);let _0x4b9c5b=class extends _0x26e5b5{constructor(_0x42e685,_0x5d3024,_0x4a76ea,_0x56f4fd,_0x53c3b0,_0x326fa5=!0x1,_0x197bcc,_0x23ae37,_0xe51963,_0x4bc507,_0x5388dd,_0xbc9eb2,_0xab6356){const _0x50f092=_0x9884d2;super(_0x42e685,_0x5d3024,_0x4a76ea,_0x56f4fd,_0x53c3b0,_0x23ae37,_0xe51963,_0x4bc507,_0xab6356),this['_isPermissionRej']=_0x326fa5,this[_0x50f092(0x2ba)]=_0x197bcc,this['_localeService']=_0x5388dd,this['_collaborationUIEventService']=_0xbc9eb2,this['localCacheService']=_0xab6356,_0x60128a(this,_0x50f092(0x45f),_0x50f092(0x1bf)),this[_0x50f092(0x149)](),this['_showConflictProcessingNotification'](),this['_prepareConflictRecovery']();}[_0x9884d2(0x3ea)](){return this;}['onRemoteChangeset'](){return this;}[_0x9884d2(0x2de)](){return this;}[_0x9884d2(0x21f)](){return this;}[_0x9884d2(0x39b)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x34cec3=_0x9884d2;throw Error(_0x34cec3(0x320));}async[_0x9884d2(0x259)](){const _0x3862dd=_0x9884d2;var _0x4562d8,_0x722370;await((_0x4562d8=this[_0x3862dd(0x323)])==null||(_0x722370=_0x4562d8[_0x3862dd(0x25d)])==null?void 0x0:_0x722370['call'](_0x4562d8,this[_0x3862dd(0x258)],_0x3862dd(0x1bf))[_0x3862dd(0x2d9)](()=>void 0x0));try{var _0x5076fc;await((_0x5076fc=this[_0x3862dd(0x323)])==null?void 0x0:_0x5076fc[_0x3862dd(0x21c)](this['unitID']));}catch{this[_0x3862dd(0x427)][_0x3862dd(0x1db)]({'id':_0x3862dd(0x260),'unitID':this['unitID']});return;}this[_0x3862dd(0x428)]();}[_0x9884d2(0x35b)](){const _0x321d4a=_0x9884d2;this[_0x321d4a(0x427)][_0x321d4a(0x1db)]({'id':_0x321d4a(0x296)});}[_0x9884d2(0x428)](){const _0x640f17=_0x9884d2;this['_isPermissionRej']?this[_0x640f17(0x427)]['emitEvent']({'id':_0x640f17(0x1f9)}):this[_0x640f17(0x427)][_0x640f17(0x1db)]({'id':_0x640f17(0x24a)});}['_disableEditing'](){const _0x31c305=_0x9884d2;this[_0x31c305(0x2ba)][_0x31c305(0x2c7)](new _0x4ea268[(_0x31c305(0x34e))](this['unitID'])['id'],!0x1);}};_0x4b9c5b=_0x33ad5b([_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['IPermissionService'])),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x8,_0x4b2515['IUndoRedoService']),_0x3b5628(0x9,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0xa,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['LocaleService'])),_0x3b5628(0xb,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x4b9c5b);let _0x20a1e1=class extends _0x26e5b5{constructor(_0x113332,_0x30b37e,_0x406625,_0xf8f1c6,_0x214fc3,_0x3625ee,_0x1de92b,_0x3cbd68,_0x93d6a1,_0x45a137){const _0x200071=_0x9884d2;super(_0x113332,_0x30b37e,_0x406625,_0xf8f1c6,_0x214fc3,_0x3cbd68,_0x93d6a1,_0x1de92b,_0x45a137),this[_0x200071(0x46a)]=_0x3625ee,_0x60128a(this,_0x200071(0x45f),_0x200071(0x219));}['appendMutation'](_0x307747){const _0x368033=_0x9884d2;return this[_0x368033(0x44f)][_0x368033(0x42c)](_0x307747),this[_0x368033(0x34f)](),this;}['onRemoteChangeset'](_0x35d57c){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x9884d2(0x2de)](){const _0x1bad45=_0x9884d2;throw Error(_0x1bad45(0x43a));}['onRemoteRej'](){const _0x11f3a2=_0x9884d2;throw Error(_0x11f3a2(0x1e4));}['onRemoteRetry'](){return this;}[_0x9884d2(0x3ec)](){return this;}['toggleOnline'](){const _0x274484=_0x9884d2;let {_injector:_0x334bc7,_pendingMutations:_0x47e987,_awaitingChangeset:_0x3939a1,unitID:_0x145129,_handler:_0x533ca2,type:_0x4291ea}=this,_0x560bee=_0x2f4bec(_0x334bc7,_0x145129,_0x4291ea,_0x3939a1,_0x47e987,_0x533ca2);return _0x560bee instanceof _0x27ecb8?_0x560bee[_0x274484(0x334)]():(_0x560bee instanceof _0x1e3872||_0x560bee instanceof _0x57ae4a)&&_0x560bee['resend'](),_0x560bee;}['resend'](){const _0x13fea1=_0x9884d2;throw Error(_0x13fea1(0x3a4));}};_0x20a1e1=_0x33ad5b([_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be['RevisionService'])),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0x9,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x20a1e1);let _0x394019=class extends _0x26e5b5{constructor(_0x2d6a48,_0x4c3a3a,_0x2f86eb,_0x5ae717,_0x1125ac,_0x5cc252,_0x1044d9,_0x51f1d9,_0x85aa8,_0x23d3a6,_0x20ee28,_0xe0b3a,_0x178df5,_0x5c00d9){const _0x1c4e63=_0x9884d2;super(_0x2d6a48,_0x4c3a3a,_0x2f86eb,_0x5ae717,_0x1044d9,_0x20ee28,_0xe0b3a,_0x85aa8,_0x5c00d9),this[_0x1c4e63(0x3bb)]=_0x1125ac,this[_0x1c4e63(0x282)]=_0x5cc252,this[_0x1c4e63(0x46a)]=_0x51f1d9,this['_logService']=_0x23d3a6,this['_transformService']=_0x178df5,this[_0x1c4e63(0x43b)]=_0x5c00d9,_0x60128a(this,_0x1c4e63(0x45f),_0x1c4e63(0x2dc));}['onMissedChangesetFetched'](_0x4632bf){const _0x1f8642=_0x9884d2;try{if(this[_0x1f8642(0x1c4)](_0x4632bf)['missingChangesets'])throw Error(_0x1f8642(0x481));if(this['_handleRemoteChangesets']([...this[_0x1f8642(0x282)]][_0x1f8642(0x122)]((_0x4cfb1f,_0x4442f3)=>_0x4cfb1f['revision']-_0x4442f3['revision']))[_0x1f8642(0x2fb)])return this[_0x1f8642(0x282)]=[],this[_0x1f8642(0x34f)](),this[_0x1f8642(0x3f2)][_0x1f8642(0x228)]({'from':this[_0x1f8642(0x21d)](),'to':0x0}),this;let _0x53d16d=this[_0x1f8642(0x402)],_0x398153=this['_pendingMutations'],_0x2a67e2;if(_0x53d16d&&_0x398153[_0x1f8642(0x147)]!==0x0)_0x2a67e2=this[_0x1f8642(0x46a)][_0x1f8642(0x40d)](_0x1e3872,this['unitID'],this[_0x1f8642(0x415)],_0x53d16d,_0x398153,this['_handler'],void 0x0);else{if(_0x53d16d&&_0x398153[_0x1f8642(0x147)]===0x0)_0x53d16d[_0x1f8642(0x1d4)]=this[_0x1f8642(0x21d)](),_0x2a67e2=this['_injector'][_0x1f8642(0x40d)](_0x57ae4a,this['unitID'],this[_0x1f8642(0x415)],_0x53d16d,this[_0x1f8642(0x3f2)]);else{if(_0x398153[_0x1f8642(0x147)]!==0x0){let _0x1ece0e=this[_0x1f8642(0x46a)][_0x1f8642(0x40d)](_0x27ecb8,this[_0x1f8642(0x258)],this[_0x1f8642(0x415)],_0x398153,this[_0x1f8642(0x3f2)]);_0x1ece0e[_0x1f8642(0x334)](),_0x2a67e2=_0x1ece0e;}else _0x2a67e2=this[_0x1f8642(0x46a)][_0x1f8642(0x40d)](_0x57c5eb,this[_0x1f8642(0x258)],this[_0x1f8642(0x415)],this['_handler']);}}return _0x2a67e2[_0x1f8642(0x34f)](),_0x2a67e2;}catch(_0x19b2a3){return this['_logService'][_0x1f8642(0x1b5)](_0x1f8642(0x30c),_0x1f8642(0x3cf),_0x19b2a3),this[_0x1f8642(0x46a)][_0x1f8642(0x40d)](_0x4b9c5b,this[_0x1f8642(0x258)],this[_0x1f8642(0x415)],this[_0x1f8642(0x402)],this[_0x1f8642(0x44f)],this[_0x1f8642(0x3f2)],!0x1);}}[_0x9884d2(0x1c4)](_0x3a4af5){const _0x184b88=_0x9884d2;this['_acknowledgeAwaitingIfReady']();for(let _0x4d45fa=0x0;_0x4d45fa<_0x3a4af5[_0x184b88(0x147)];_0x4d45fa++){let _0x18a521=_0x3a4af5[_0x4d45fa],_0x1498a6=this[_0x184b88(0x21d)]();if(!(_0x18a521[_0x184b88(0x2f4)]<=_0x1498a6)){if(_0x18a521['revision']>_0x1498a6+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x18a521)){this[_0x184b88(0x463)]();continue;}this[_0x184b88(0x21b)](_0x18a521),this[_0x184b88(0x3fd)]();}}return{'missingChangesets':!0x1};}[_0x9884d2(0x21b)](_0x3b94f1){const _0x2434d4=_0x9884d2;let _0x171d77=_0x3b94f1,_0x310eab=this['_awaitingChangeset'];if(_0x310eab){let _0x2283d7=this[_0x2434d4(0x2a6)][_0x2434d4(0x270)]([_0x3b94f1],[_0x310eab],!0x1);if(!(0x0,_0x5199be[_0x2434d4(0x387)])(_0x2283d7))throw _0x2283d7['error'];_0x171d77=_0x2283d7[_0x2434d4(0x25e)][0x0],_0x310eab=_0x2283d7['c2Prime'][0x0];}let _0x158fed=this[_0x2434d4(0x44f)];if(_0x158fed['length']){let _0x3b5963=this['_transformService']['transformMutationsWithChangeset'](_0x171d77,_0x158fed);if(!(0x0,_0x5199be['isTransformMutationsWithChangesetSuccess'])(_0x3b5963))throw _0x3b5963[_0x2434d4(0x1b5)];_0x171d77=_0x3b5963[_0x2434d4(0x25e)],_0x158fed=_0x3b5963['m2Prime'];}this[_0x2434d4(0x24d)](_0x171d77),_0x310eab&&(_0x310eab[_0x2434d4(0x1d4)]=this[_0x2434d4(0x21d)]()),this[_0x2434d4(0x402)]=_0x310eab,this[_0x2434d4(0x44f)]=_0x158fed;}[_0x9884d2(0x3fd)](){const _0x1ba19d=_0x9884d2;if(!this[_0x1ba19d(0x402)]||this[_0x1ba19d(0x3bb)]==null)return;let _0xe3012f=this[_0x1ba19d(0x21d)]();if(this[_0x1ba19d(0x3bb)]<=_0xe3012f)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this[_0x1ba19d(0x3bb)]+'.');this[_0x1ba19d(0x3bb)]===_0xe3012f+0x1&&this[_0x1ba19d(0x463)]();}['_acknowledgeAwaiting'](){const _0x3a8205=_0x9884d2;this[_0x3a8205(0x301)](),this[_0x3a8205(0x402)]=null,this[_0x3a8205(0x3bb)]=null;}[_0x9884d2(0x272)](_0x5b18cf){const _0x5d6082=_0x9884d2;let _0x162b69=this[_0x5d6082(0x402)];return!_0x162b69||!_0x162b69[_0x5d6082(0x356)]||_0x162b69[_0x5d6082(0x12c)]===null||_0x162b69[_0x5d6082(0x12c)]===void 0x0?!0x1:_0x5b18cf[_0x5d6082(0x258)]===_0x162b69[_0x5d6082(0x258)]&&_0x5b18cf[_0x5d6082(0x356)]===_0x162b69[_0x5d6082(0x356)]&&_0x5b18cf[_0x5d6082(0x12c)]===_0x162b69[_0x5d6082(0x12c)];}[_0x9884d2(0x1fc)](){const _0x56e788=_0x9884d2;throw Error(_0x56e788(0x1e2));}[_0x9884d2(0x3ea)](_0x1b410d){const _0x151e77=_0x9884d2;return this[_0x151e77(0x44f)]['push'](_0x1b410d),this;}['onRemoteChangeset'](_0x143726){const _0x5da245=_0x9884d2;return this[_0x5da245(0x282)][_0x5da245(0x42c)](_0x143726),this;}[_0x9884d2(0x2de)](_0x3d5528){const _0x1bb96b=_0x9884d2;if(this[_0x1bb96b(0x402)]){let _0x25b2bb=this[_0x1bb96b(0x21d)]();return _0x3d5528[_0x1bb96b(0x2f4)]<=_0x25b2bb||(_0x25b2bb+0x1===_0x3d5528[_0x1bb96b(0x2f4)]?(this[_0x1bb96b(0x301)](),this[_0x1bb96b(0x402)]=null,this[_0x1bb96b(0x3bb)]=null):this[_0x1bb96b(0x3bb)]=_0x3d5528[_0x1bb96b(0x2f4)]),this;}if(_0x3d5528[_0x1bb96b(0x2f4)]<=this[_0x1bb96b(0x21d)]())return this;throw Error(_0x1bb96b(0x211));}['onRemoteRej'](_0x539054){const _0x4e3b22=_0x9884d2;return this[_0x4e3b22(0x143)](!!(_0x539054!=null&&_0x539054[_0x4e3b22(0x439)]));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x51ffa7=_0x9884d2;return this[_0x51ffa7(0x46a)][_0x51ffa7(0x40d)](_0x20a1e1,this['unitID'],this[_0x51ffa7(0x415)],this[_0x51ffa7(0x402)],this[_0x51ffa7(0x44f)],this[_0x51ffa7(0x3f2)]);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x143)](_0x269fca){const _0x1cf3b1=_0x9884d2;return this[_0x1cf3b1(0x46a)][_0x1cf3b1(0x40d)](_0x4b9c5b,this['unitID'],this[_0x1cf3b1(0x415)],this[_0x1cf3b1(0x402)],this[_0x1cf3b1(0x44f)],this[_0x1cf3b1(0x3f2)],_0x269fca);}};_0x394019=_0x33ad5b([_0x3b5628(0x7,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x8,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x9,_0x4b2515['ILogService']),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515['IUndoRedoService']),_0x3b5628(0xc,_0x5199be[_0x9884d2(0x1ec)]),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x394019);function _0x2f4bec(_0xa2deea,_0x130de3,_0x4d4f16,_0x116220,_0x2472b2,_0x2f3acf){const _0x2aa35f=_0x9884d2;return _0x116220&&_0x2472b2[_0x2aa35f(0x147)]?_0xa2deea[_0x2aa35f(0x40d)](_0x1e3872,_0x130de3,_0x4d4f16,_0x116220,_0x2472b2,_0x2f3acf,void 0x0):_0x116220?_0xa2deea[_0x2aa35f(0x40d)](_0x57ae4a,_0x130de3,_0x4d4f16,_0x116220,_0x2f3acf):_0x2472b2[_0x2aa35f(0x147)]?_0xa2deea['createInstance'](_0x27ecb8,_0x130de3,_0x4d4f16,_0x2472b2,_0x2f3acf):_0xa2deea[_0x2aa35f(0x40d)](_0x57c5eb,_0x130de3,_0x4d4f16,_0x2f3acf);}let _0xe2b433=class extends _0x4b2515['RxDisposable']{get[_0x9884d2(0x144)](){const _0x28ed07=_0x9884d2;return this[_0x28ed07(0x237)];}constructor(_0xc7b9d0,_0x1ff7d7,_0x57f758,_0x5ca1d1,_0x553546,_0x401a89,_0x3586ff,_0x228d6a,_0x2a081b,_0xb67ded,_0x3cb9fd,_0x28ec7e,_0x2aeb6d,_0x70edf6){const _0x2df4dd=_0x9884d2;super(),this[_0x2df4dd(0x258)]=_0xc7b9d0,this['session']=_0x1ff7d7,this[_0x2df4dd(0x3e2)]=_0x57f758,this[_0x2df4dd(0x46a)]=_0x5ca1d1,this['_compressMutationService']=_0x553546,this[_0x2df4dd(0x1f4)]=_0x401a89,this[_0x2df4dd(0x196)]=_0x3586ff,this[_0x2df4dd(0x186)]=_0x228d6a,this[_0x2df4dd(0x118)]=_0x2a081b,this[_0x2df4dd(0x344)]=_0xb67ded,this[_0x2df4dd(0x2ef)]=_0x3cb9fd,this['_permissionService']=_0x28ec7e,this['_singleActiveUnitService']=_0x2aeb6d,this[_0x2df4dd(0x323)]=_0x70edf6,_0x60128a(this,_0x2df4dd(0x29b),new _0xccd21e[(_0x2df4dd(0x379))](null)),_0x60128a(this,_0x2df4dd(0x416),this['_state$'][_0x2df4dd(0x43c)]()),_0x60128a(this,'_state',void 0x0),_0x60128a(this,_0x2df4dd(0x355),!0x1),_0x60128a(this,'_changesetSessionId',''),_0x60128a(this,_0x2df4dd(0x28d),0x0),_0x60128a(this,_0x2df4dd(0x298),this[_0x2df4dd(0x416)][_0x2df4dd(0x486)]((0x0,_0xccd21e[_0x2df4dd(0x333)])(_0x2376f8=>_0x2376f8?_0x2376f8[_0x2df4dd(0x45f)]:_0x2df4dd(0x219)),(0x0,_0xccd21e['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_0x60128a(this,_0x2df4dd(0x2fe),!0x1),_0x60128a(this,_0x2df4dd(0x26f),[]);}async['init'](){const _0x4fc8da=_0x9884d2;if(this[_0x4fc8da(0x144)])throw Error(_0x4fc8da(0x3c3));await this[_0x4fc8da(0x386)]();}[_0x9884d2(0x1c3)](){const _0xfcfaa8=_0x9884d2;return this[_0xfcfaa8(0x355)]=!0x0,(0x0,_0x4b2515[_0xfcfaa8(0x299)])(()=>{const _0x352fe3=_0xfcfaa8;this['_collaborationPaused']=!0x1,this[_0x352fe3(0x46e)]();});}[_0x9884d2(0x2e2)](_0x4075d9){const _0x531846=_0x9884d2;this[_0x531846(0x17a)](_0x4075d9);}[_0x9884d2(0x3ad)](_0x51c65a){const _0x4f3121=_0x9884d2;this[_0x4f3121(0x237)]=_0x51c65a,this[_0x4f3121(0x29b)]['next'](_0x51c65a);}async[_0x9884d2(0x386)](){const _0x19a05a=_0x9884d2;if(this[_0x19a05a(0x3ad)](await this[_0x19a05a(0x2f2)]()),this['_singleActiveUnitService']){var _0x25ed18;(_0x25ed18=this['_singleActiveUnitService'])==null||_0x25ed18[_0x19a05a(0x191)](this['unitID']),this[_0x19a05a(0x472)](this[_0x19a05a(0x20f)][_0x19a05a(0x3e0)](this[_0x19a05a(0x258)])[_0x19a05a(0x23b)](_0x31ff01=>{const _0x2acbe1=_0x19a05a;this[_0x2acbe1(0x344)]['debug']('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0x31ff01),_0x31ff01===0x1?(this['_eventService'][_0x2acbe1(0x1db)]({'id':_0x2acbe1(0x3c7)}),this[_0x2acbe1(0x2ba)][_0x2acbe1(0x2c7)](new _0x4ea268[(_0x2acbe1(0x34e))](this[_0x2acbe1(0x258)])['id'],!0x1),this['_permissionService'][_0x2acbe1(0x124)](!0x1)):(this[_0x2acbe1(0x2ba)][_0x2acbe1(0x2c7)](new _0x4ea268[(_0x2acbe1(0x34e))](this[_0x2acbe1(0x258)])['id'],!0x0),this[_0x2acbe1(0x2ba)][_0x2acbe1(0x124)](!0x0));}));}let _0x30a5f9=!0x1;return this[_0x19a05a(0x472)](this[_0x19a05a(0x28b)]['sessionStatus$'][_0x19a05a(0x23b)](_0x367c9d=>{const _0x3a8552=_0x19a05a;_0x367c9d===0x3?this['_toggleOnline'](_0x30a5f9):_0x367c9d===0x2&&(_0x30a5f9=!0x0,this[_0x3a8552(0x39d)]());})),this[_0x19a05a(0x472)](this[_0x19a05a(0x28b)]['event$'][_0x19a05a(0x23b)](_0x2fdd04=>{const _0x22e5b9=_0x19a05a;try{switch(_0x2fdd04[_0x22e5b9(0x1b3)]){case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x41b)]:this['_onRemoteChangeset']((0x0,_0x5199be['parseProtocolChangeset'])(_0x2fdd04[_0x22e5b9(0x1b4)]));break;case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x1f7)]:this['_onRemoteACK'](_0x2fdd04[_0x22e5b9(0x1b4)]);break;case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x19d)]:this[_0x22e5b9(0x468)]();break;case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x238)]:this[_0x22e5b9(0x3f3)](_0x2fdd04[_0x22e5b9(0x1b4)]);break;case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x18e)]:this['_onFetchMissResult'](_0x2fdd04[_0x22e5b9(0x1b4)][_0x22e5b9(0x3cd)][_0x22e5b9(0x333)](_0xa0c399=>(0x0,_0x5199be[_0x22e5b9(0x22c)])(_0xa0c399)));break;case _0x5199be[_0x22e5b9(0x261)]['PERMISSION_REJ']:this[_0x22e5b9(0x468)]({'isPermissionRej':!0x0});break;case _0x5199be['CollaborationEvent'][_0x22e5b9(0x32a)]:}}catch(_0x4ff8b5){throw console[_0x22e5b9(0x1b5)](_0x22e5b9(0x1e5),_0x4ff8b5),_0x4ff8b5;}})),this['_state'];}['_unlockTransition'](){const _0xc864c=_0x9884d2;this[_0xc864c(0x2fe)]=!0x1;}[_0x9884d2(0x436)](){const _0x499860=_0x9884d2;if(this[_0x499860(0x2fe)])throw Error(_0x499860(0x37d));this[_0x499860(0x2fe)]=!0x0;}[_0x9884d2(0x17a)](_0xc9b537){const _0x466af0=_0x9884d2;this[_0x466af0(0x436)](),this[_0x466af0(0x3ad)](this['_state'][_0x466af0(0x3ea)](_0xc9b537)),this[_0x466af0(0x33b)]();}[_0x9884d2(0x3a3)](_0x21de25){const _0x534203=_0x9884d2;if(!(_0x21de25[_0x534203(0x2f4)]<=this[_0x534203(0x196)][_0x534203(0x421)](this[_0x534203(0x258)]))){if(this[_0x534203(0x355)]){this[_0x534203(0x26f)][_0x534203(0x42c)](_0x21de25);return;}this[_0x534203(0x179)](_0x21de25);}}['_exhaustRemoteChangesetQueue'](){const _0x41c6f0=_0x9884d2;this[_0x41c6f0(0x26f)][_0x41c6f0(0x1e3)](_0x3ad973=>this[_0x41c6f0(0x179)](_0x3ad973)),this[_0x41c6f0(0x26f)]=[];}[_0x9884d2(0x179)](_0x1a0b91){const _0x269bde=_0x9884d2;let _0x16064d=this[_0x269bde(0x188)][_0x269bde(0x395)][_0x269bde(0x18d)](this[_0x269bde(0x188)][_0x269bde(0x395)][_0x269bde(0x176)]()[_0x269bde(0x1d2)])(_0x1a0b91[_0x269bde(0x25c)],null)||_0x1a0b91[_0x269bde(0x25c)],_0x3ca999={..._0x1a0b91,'mutations':_0x16064d};this[_0x269bde(0x436)](),this[_0x269bde(0x3ad)](this[_0x269bde(0x237)][_0x269bde(0x32d)](_0x3ca999)),this[_0x269bde(0x33b)]();}[_0x9884d2(0x393)](_0x1ad769){const _0x986858=_0x9884d2;this[_0x986858(0x436)](),this[_0x986858(0x3ad)](this['_state']['onRemoteAck'](_0x1ad769)),this[_0x986858(0x33b)]();}['_onRemoteRejected'](_0x5ea219){const _0x35019c=_0x9884d2;this[_0x35019c(0x436)](),this[_0x35019c(0x3ad)](this[_0x35019c(0x237)][_0x35019c(0x21f)](_0x5ea219)),this[_0x35019c(0x33b)]();}[_0x9884d2(0x3f3)](_0x319b36){const _0x4cd980=_0x9884d2;this['_lockTransition'](),this[_0x4cd980(0x3ad)](this['_state'][_0x4cd980(0x39b)](_0x319b36)),this[_0x4cd980(0x33b)]();}[_0x9884d2(0x146)](_0x3bb68f){const _0x36c404=_0x9884d2;if(!(this['_state']instanceof _0x394019))throw TypeError(_0x36c404(0x20b));let _0x2448a9=_0x3bb68f[_0x36c404(0x333)](_0x25e174=>{const _0x397b86=_0x36c404;let _0x138642=this[_0x397b86(0x188)][_0x397b86(0x395)]['fetchThroughInterceptors'](this[_0x397b86(0x188)][_0x397b86(0x395)]['getInterceptPoints']()[_0x397b86(0x1d2)])(_0x25e174[_0x397b86(0x25c)],null)||_0x25e174[_0x397b86(0x25c)];return{..._0x25e174,'mutations':_0x138642};});this[_0x36c404(0x436)](),this[_0x36c404(0x3ad)](this[_0x36c404(0x237)][_0x36c404(0x128)](_0x2448a9)),this[_0x36c404(0x33b)]();}[_0x9884d2(0x39d)](){const _0xcbac54=_0x9884d2;this[_0xcbac54(0x436)](),this[_0xcbac54(0x3ad)](this[_0xcbac54(0x237)][_0xcbac54(0x3ec)]()),this[_0xcbac54(0x33b)]();}[_0x9884d2(0x1c9)](_0x5d5b96=!0x1){const _0x536ad7=_0x9884d2;this[_0x536ad7(0x436)](),this[_0x536ad7(0x3ad)](this[_0x536ad7(0x237)][_0x536ad7(0x357)]()),this[_0x536ad7(0x33b)]();let _0xec24a2=this['_state'];_0x5d5b96&&_0xec24a2 instanceof _0x57c5eb&&(this[_0x536ad7(0x436)](),this['_updateState'](_0xec24a2[_0x536ad7(0x15d)]()),this[_0x536ad7(0x33b)]());}async[_0x9884d2(0x2f2)](){return new Promise(_0xa33ae2=>{const _0x11f756=_0x328a;this['session']['sessionStatus$'][_0x11f756(0x486)]((0x0,_0xccd21e['take'])(0x1))[_0x11f756(0x23b)](async _0x1de063=>{_0xa33ae2(await this['_createInitialStateImpl'](_0x1de063===0x3));});});}[_0x9884d2(0x18c)](){let _0xa1268=this['unitID'];return{'onStateChange':(_0x21e2a2,_0x4cd637)=>{const _0x5edfc9=_0x328a;if(_0x21e2a2!==this['_state'])throw Error(_0x5edfc9(0x1e0)+_0x21e2a2[_0x5edfc9(0x45f)]+_0x5edfc9(0x2cd)+_0x4cd637[_0x5edfc9(0x45f)]+_0x5edfc9(0x16a)+this[_0x5edfc9(0x237)][_0x5edfc9(0x45f)]);this[_0x5edfc9(0x3ad)](_0x4cd637);},'onSendChangeset':_0x2dd10e=>{const _0xfdebb1=_0x328a;_0x2dd10e[_0xfdebb1(0x356)]||(_0x2dd10e['sid']=this['_changesetSessionId'],_0x2dd10e[_0xfdebb1(0x12c)]=++this[_0xfdebb1(0x28d)]);let _0x3405f2={'eventID':_0x5199be[_0xfdebb1(0x261)][_0xfdebb1(0x209)],'data':{'unitID':_0x2dd10e[_0xfdebb1(0x258)],'unitType':this[_0xfdebb1(0x3e2)],'changeset':_0x2dd10e,'memberID':this[_0xfdebb1(0x28b)][_0xfdebb1(0x444)]()}};this[_0xfdebb1(0x28b)][_0xfdebb1(0x2d6)](_0x3405f2,this[_0xfdebb1(0x258)]);},'onMissingChangesets':({from:_0x2de9f3,to:_0x17889e})=>{const _0x316483=_0x328a;this['_logService'][_0x316483(0x348)](_0x316483(0x239),_0x316483(0x370)+_0x2de9f3+'\x20to\x20'+_0x17889e);let _0x2c59fc={'eventID':_0x5199be[_0x316483(0x261)][_0x316483(0x318)],'data':{'unitID':_0xa1268,'unitType':this['_type'],'from':_0x2de9f3,'to':_0x17889e}};this[_0x316483(0x28b)][_0x316483(0x2d6)](_0x2c59fc,this[_0x316483(0x258)]);}};}async['_createInitialStateImpl'](_0x39b4a9){const _0x3e2f7f=_0x9884d2;var _0xb7ce5;let _0x2e856e=await((_0xb7ce5=this[_0x3e2f7f(0x323)])==null?void 0x0:_0xb7ce5[_0x3e2f7f(0x469)](this[_0x3e2f7f(0x258)])),_0x43550d=(_0x2e856e==null?void 0x0:_0x2e856e[_0x3e2f7f(0x25c)])??[],_0x4b1bda=(_0x2e856e==null?void 0x0:_0x2e856e[_0x3e2f7f(0x232)])??null,_0x338b11=!!(_0x4b1bda!=null&&_0x4b1bda[_0x3e2f7f(0x356)])&&!!(_0x4b1bda!=null&&_0x4b1bda[_0x3e2f7f(0x12c)]);this[_0x3e2f7f(0x1aa)]=_0x338b11?_0x4b1bda[_0x3e2f7f(0x356)]:(0x0,_0x5199be[_0x3e2f7f(0x39a)])(),this['_changesetReqId']=_0x338b11?_0x4b1bda[_0x3e2f7f(0x12c)]:0x0;let _0x2854f8=this[_0x3e2f7f(0x258)];try{this[_0x3e2f7f(0x313)](_0x4b1bda,_0x43550d);}catch(_0x12cb3b){this[_0x3e2f7f(0x344)][_0x3e2f7f(0x1b5)](_0x12cb3b);}let _0xbe27b=this[_0x3e2f7f(0x18c)]();if(_0x39b4a9){let _0x13eac3=_0x2f4bec(this[_0x3e2f7f(0x46a)],_0x2854f8,this[_0x3e2f7f(0x3e2)],_0x4b1bda,_0x43550d,_0xbe27b);return _0x13eac3 instanceof _0x27ecb8?_0x13eac3[_0x3e2f7f(0x334)]():(_0x13eac3 instanceof _0x1e3872||_0x13eac3 instanceof _0x57ae4a)&&_0x13eac3['resend'](),_0x13eac3;}return this[_0x3e2f7f(0x46a)][_0x3e2f7f(0x40d)](_0x20a1e1,_0x2854f8,this[_0x3e2f7f(0x3e2)],_0x4b1bda,_0x43550d,_0xbe27b);}['_replayCachedMutations'](_0x2b87df,_0x56e89d){const _0x34ea08=_0x9884d2;var _0x6398ea,_0x26f60b;let _0xf3da4e=this['_compressMutationService'][_0x34ea08(0x395)][_0x34ea08(0x18d)](this['_compressMutationService'][_0x34ea08(0x395)]['getInterceptPoints']()[_0x34ea08(0x1d2)]);(_0x6398ea=_0xf3da4e((_0x2b87df==null?void 0x0:_0x2b87df[_0x34ea08(0x25c)])||[],null))==null||_0x6398ea[_0x34ea08(0x1e3)](_0x39599f=>this[_0x34ea08(0x2ef)][_0x34ea08(0x47a)](_0x39599f['id'],_0x39599f[_0x34ea08(0x3f5)])),(_0x26f60b=_0xf3da4e(_0x56e89d||[],null))==null||_0x26f60b[_0x34ea08(0x1e3)](_0x2dab0d=>this[_0x34ea08(0x2ef)][_0x34ea08(0x47a)](_0x2dab0d['id'],_0x2dab0d[_0x34ea08(0x3f5)]));}};_0xe2b433=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['LocaleService'])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be['RevisionService'])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x9,_0x4b2515['ILogService']),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0xe2b433);let _0x94e744=class extends _0xe2b433{constructor(_0x2af5ac,_0x1e39f3,_0x4823f8,_0x5212dd,_0x496af2,_0x40c11d,_0x5ba89e,_0x37e34b,_0x21058b,_0x572c56,_0xe0ca77,_0x246d3a,_0x296926,_0x5e272f,_0xdde246){const _0x2d40eb=_0x9884d2;super(_0x2af5ac,_0x4823f8,_0x1e39f3,_0x5212dd,_0x496af2,_0x40c11d,_0x5ba89e,_0x37e34b,_0x21058b,_0x572c56,_0xe0ca77,_0x246d3a,_0x5e272f,_0xdde246),this['unitID']=_0x2af5ac,this[_0x2d40eb(0x415)]=_0x1e39f3,this[_0x2d40eb(0x3a8)]=_0x296926,_0x60128a(this,'_handlerCallback',null);}[_0x9884d2(0x22d)](_0x572928){this['_handlerCallback']=_0x572928;}['dispose'](){const _0x4123dc=_0x9884d2;this['_handlerCallback']=null,super[_0x4123dc(0x314)]();}[_0x9884d2(0x18c)](){const _0x16d545=_0x9884d2;let _0x575102=super['_createHandler']();return _0x575102['onTransformIME']=_0x2ec0d4=>{const _0x348eae=_0x328a;var _0x4f72d3,_0x560a37;return(_0x4f72d3=this[_0x348eae(0x3c5)])==null||(_0x560a37=_0x4f72d3[_0x348eae(0x31a)])==null?void 0x0:_0x560a37[_0x348eae(0x43d)](_0x4f72d3,_0x2ec0d4);},_0x575102[_0x16d545(0x330)]=_0x458d26=>{const _0x44dc76=_0x16d545;var _0x5c06dd,_0x587442;return(_0x5c06dd=this['_handlerCallback'])==null||(_0x587442=_0x5c06dd[_0x44dc76(0x330)])==null?void 0x0:_0x587442[_0x44dc76(0x43d)](_0x5c06dd,_0x458d26);},_0x575102[_0x16d545(0x3da)]=_0x2b004e=>{const _0x24cf9c=_0x16d545;var _0x2a21d4,_0x376c6a;return((_0x2a21d4=this[_0x24cf9c(0x3c5)])==null||(_0x376c6a=_0x2a21d4['onPrepareTransformSelections'])==null?void 0x0:_0x376c6a[_0x24cf9c(0x43d)](_0x2a21d4,_0x2b004e))??null;},_0x575102[_0x16d545(0x3c2)]=_0x5bfad7=>{const _0x2cffcd=_0x16d545;var _0x34ace1,_0xac5bf7;return(_0x34ace1=this[_0x2cffcd(0x3c5)])==null||(_0xac5bf7=_0x34ace1[_0x2cffcd(0x3c2)])==null?void 0x0:_0xac5bf7[_0x2cffcd(0x43d)](_0x34ace1,_0x5bfad7);},_0x575102['onSyncEditingCollabCursor']=_0x1d6325=>{const _0x1180eb=_0x16d545;var _0x1465ae,_0x1ecd1e;return(_0x1465ae=this[_0x1180eb(0x3c5)])==null||(_0x1ecd1e=_0x1465ae[_0x1180eb(0x3cc)])==null?void 0x0:_0x1ecd1e[_0x1180eb(0x43d)](_0x1465ae,_0x1d6325);},_0x575102[_0x16d545(0x311)]=_0x14f3f9=>{const _0x6aa338=_0x16d545;var _0x793da4,_0x5b49e0;return((_0x793da4=this[_0x6aa338(0x3c5)])==null||(_0x5b49e0=_0x793da4['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x5b49e0[_0x6aa338(0x43d)](_0x793da4,_0x14f3f9))??_0x14f3f9;},_0x575102['onTransformRemoteChangesetByStateCache']=_0x31e4af=>{const _0x6392d8=_0x16d545;var _0x8decc2,_0x33f126;return((_0x8decc2=this[_0x6392d8(0x3c5)])==null||(_0x33f126=_0x8decc2[_0x6392d8(0x206)])==null?void 0x0:_0x33f126[_0x6392d8(0x43d)](_0x8decc2,_0x31e4af))??_0x31e4af;},_0x575102;}async[_0x9884d2(0x386)](){const _0x3b5556=_0x9884d2;let _0x147c0d=await super['_init']();return this[_0x3b5556(0x472)](this[_0x3b5556(0x3a8)][_0x3b5556(0x27b)][_0x3b5556(0x23b)](_0x5c99ac=>{const _0x3573e0=_0x3b5556;if(_0x5c99ac==null||_0x5c99ac[_0x3573e0(0x3f0)]!==this[_0x3573e0(0x258)])return;let {commandId:_0x35db53,redoState:_0x3049b3,unitId:_0x2a1e37}=_0x5c99ac,_0x3d4a9a={'id':_0x35db53,'type':_0x4b2515[_0x3573e0(0x389)][_0x3573e0(0x46f)],'params':{'unitId':_0x2a1e37,'actions':_0x3049b3[_0x3573e0(0x37a)],'textRanges':null}};this['_onLocalMutation'](_0x3d4a9a);})),this[_0x3b5556(0x472)](this[_0x3b5556(0x2ef)][_0x3b5556(0x1cd)]((_0x3ae6b9,_0x4463f8)=>{const _0x1a012e=_0x3b5556;if(_0x3ae6b9[_0x1a012e(0x415)]!==_0x4b2515[_0x1a012e(0x389)][_0x1a012e(0x46f)]||_0x4463f8!=null&&_0x4463f8[_0x1a012e(0x371)]||_0x4463f8!=null&&_0x4463f8[_0x1a012e(0x1ba)]||_0x3ae6b9['id']===_0x120ed0[_0x1a012e(0x16f)]['id'])return;let _0xfe2257=_0x3ae6b9[_0x1a012e(0x3f5)];if((_0xfe2257==null?void 0x0:_0xfe2257['unitId'])!==this[_0x1a012e(0x258)])return;let _0x5cd73f=_0x3ae6b9,_0x216451=this[_0x1a012e(0x188)][_0x1a012e(0x395)][_0x1a012e(0x18d)](this['_compressMutationService'][_0x1a012e(0x395)][_0x1a012e(0x176)]()[_0x1a012e(0x139)])([_0x5cd73f],this[_0x1a012e(0x118)])||[_0x5cd73f];this[_0x1a012e(0x17a)](_0x216451[0x0]);})),_0x147c0d;}};_0x94e744=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['Injector'])),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515['IPermissionService']),_0x3b5628(0xc,(0x0,_0x4b2515['Inject'])(_0x120ed0[_0x9884d2(0x279)])),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xe,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x94e744);let _0x24daae=class extends _0xe2b433{constructor(_0x25d113,_0x1097f9,_0x4b3115,_0x44c4be,_0x4db29c,_0x57b1a5,_0x55a0f1,_0x904355,_0x5e04d6,_0x471971,_0x574a8f,_0x246867,_0x49db5e,_0x24eebc){const _0x1d8611=_0x9884d2;super(_0x25d113,_0x4b3115,_0x1097f9,_0x44c4be,_0x4db29c,_0x57b1a5,_0x55a0f1,_0x904355,_0x5e04d6,_0x471971,_0x574a8f,_0x246867,_0x49db5e,_0x24eebc),this[_0x1d8611(0x258)]=_0x25d113,this['type']=_0x1097f9;}async[_0x9884d2(0x386)](){const _0x36c4c8=_0x9884d2;let _0xedcf31=await super['_init']();return this[_0x36c4c8(0x472)](this[_0x36c4c8(0x2ef)][_0x36c4c8(0x1cd)]((_0x1605c1,_0x1e0d08)=>{const _0x12b996=_0x36c4c8;if(_0x1605c1[_0x12b996(0x415)]!==_0x4b2515[_0x12b996(0x389)][_0x12b996(0x46f)]||_0x1e0d08!=null&&_0x1e0d08[_0x12b996(0x371)]||_0x1e0d08!=null&&_0x1e0d08[_0x12b996(0x1ba)])return;let _0x40211e=_0x1605c1[_0x12b996(0x3f5)];if((_0x40211e==null?void 0x0:_0x40211e['unitId'])!==this[_0x12b996(0x258)])return;let _0x174a90=_0x1605c1,_0x2bf63f=this[_0x12b996(0x188)]['interceptor'][_0x12b996(0x18d)](this['_compressMutationService'][_0x12b996(0x395)][_0x12b996(0x176)]()[_0x12b996(0x139)])([_0x174a90],this[_0x12b996(0x118)])||[_0x174a90];this[_0x12b996(0x17a)](_0x2bf63f[0x0]);})),_0xedcf31;}};_0x24daae=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515['IPermissionService']),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x24daae);let _0xe8b1d4=class extends _0xe2b433{constructor(_0x2fdbbd,_0x199b88,_0x1096de,_0x2eb52f,_0x5bfad5,_0x37b5a4,_0x4cab16,_0x592310,_0x445d4e,_0x2c39a9,_0x8c74bd,_0x4e920f,_0xc390a0,_0x31d324,_0x56253d){const _0xec093b=_0x9884d2;super(_0x2fdbbd,_0x1096de,_0x199b88,_0x2eb52f,_0x5bfad5,_0x37b5a4,_0x4cab16,_0x445d4e,_0x2c39a9,_0x8c74bd,_0x4e920f,_0xc390a0,_0x31d324,_0x56253d),this[_0xec093b(0x258)]=_0x2fdbbd,this[_0xec093b(0x415)]=_0x199b88,this[_0xec093b(0x2e1)]=_0x592310;}[_0x9884d2(0x18c)](){const _0xceed92=_0x9884d2;let _0x3bafdc=super[_0xceed92(0x18c)]();return _0x3bafdc[_0xceed92(0x3c2)]=_0x2a5c37=>this['_sheetTransformSelectionsService'][_0xceed92(0x378)](_0x2a5c37),_0x3bafdc;}async[_0x9884d2(0x386)](){const _0x2a7bb1=_0x9884d2;let _0x274d95=await super['_init']();return this[_0x2a7bb1(0x472)](this[_0x2a7bb1(0x2ef)][_0x2a7bb1(0x1cd)]((_0x727565,_0xe933a8)=>{const _0x5a1a0f=_0x2a7bb1;if(_0x727565[_0x5a1a0f(0x415)]!==_0x4b2515[_0x5a1a0f(0x389)][_0x5a1a0f(0x46f)]||_0xe933a8!=null&&_0xe933a8[_0x5a1a0f(0x371)]||_0xe933a8!=null&&_0xe933a8[_0x5a1a0f(0x1ba)])return;let _0x2bc7e0=_0x727565[_0x5a1a0f(0x3f5)];if((_0x2bc7e0==null?void 0x0:_0x2bc7e0[_0x5a1a0f(0x3f0)])!==this[_0x5a1a0f(0x258)])return;let _0x327762=_0x727565,_0x5be8f2=this[_0x5a1a0f(0x188)][_0x5a1a0f(0x395)][_0x5a1a0f(0x18d)](this['_compressMutationService']['interceptor'][_0x5a1a0f(0x176)]()[_0x5a1a0f(0x139)])([_0x327762],this[_0x5a1a0f(0x118)])||[_0x327762];this[_0x5a1a0f(0x17a)](_0x5be8f2[0x0]);})),_0x274d95;}};_0xe8b1d4=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['LocaleService'])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x2326c2)),_0x3b5628(0x8,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xc,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xe,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0xe8b1d4);let _0x3a9411=class extends _0xe2b433{constructor(_0x45bcfd,_0x4334af,_0x3fda22,_0x1da8e2,_0xe8fa77,_0x2b56d1,_0x8114ef,_0x271d6a,_0x10a728,_0x151186,_0x389715,_0x2225fc,_0x20e6b9,_0x3d5578){const _0x5855e3=_0x9884d2;super(_0x45bcfd,_0x3fda22,_0x4334af,_0x1da8e2,_0xe8fa77,_0x2b56d1,_0x8114ef,_0x271d6a,_0x10a728,_0x151186,_0x389715,_0x2225fc,_0x20e6b9,_0x3d5578),this[_0x5855e3(0x258)]=_0x45bcfd,this['type']=_0x4334af;}async['_init'](){const _0x46d8be=_0x9884d2;let _0x59223a=await super[_0x46d8be(0x386)]();return this[_0x46d8be(0x472)](this[_0x46d8be(0x2ef)][_0x46d8be(0x1cd)]((_0x2a687a,_0xe7f08f)=>{const _0xf4b19e=_0x46d8be;if(_0x2a687a[_0xf4b19e(0x415)]!==_0x4b2515[_0xf4b19e(0x389)][_0xf4b19e(0x46f)]||_0xe7f08f!=null&&_0xe7f08f[_0xf4b19e(0x371)]||_0xe7f08f!=null&&_0xe7f08f[_0xf4b19e(0x1ba)])return;let _0x196946=_0x2a687a[_0xf4b19e(0x3f5)];if((_0x196946==null?void 0x0:_0x196946[_0xf4b19e(0x3f0)])!==this[_0xf4b19e(0x258)])return;let _0x235949=_0x2a687a,_0x4fd273=this[_0xf4b19e(0x188)]['interceptor'][_0xf4b19e(0x18d)](this[_0xf4b19e(0x188)][_0xf4b19e(0x395)][_0xf4b19e(0x176)]()[_0xf4b19e(0x139)])([_0x235949],this[_0xf4b19e(0x118)])||[_0x235949];this[_0xf4b19e(0x17a)](_0x4fd273[0x0]);})),_0x59223a;}};_0x3a9411=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0xc,(0x0,_0x4b2515['Optional'])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0x3a9411);let _0x4deb99=class extends _0xe2b433{constructor(_0x2d5626,_0x24df18,_0x38a190,_0x47a40c,_0x2b9c2b,_0x4f2b1f,_0x484110,_0x21dcb5,_0xf68338,_0xdac90c,_0x5a68aa,_0x101aec,_0x389be7,_0x596946){const _0x1a9c72=_0x9884d2;super(_0x2d5626,_0x38a190,_0x24df18,_0x47a40c,_0x2b9c2b,_0x4f2b1f,_0x484110,_0x21dcb5,_0xf68338,_0xdac90c,_0x5a68aa,_0x101aec,_0x389be7,_0x596946),this[_0x1a9c72(0x258)]=_0x2d5626,this[_0x1a9c72(0x415)]=_0x24df18;}async[_0x9884d2(0x386)](){const _0x113e73=_0x9884d2;let _0x5b479b=await super[_0x113e73(0x386)]();return this[_0x113e73(0x472)](this[_0x113e73(0x2ef)][_0x113e73(0x1cd)]((_0x201929,_0x5b4b90)=>{const _0x4e6d6c=_0x113e73;if(_0x201929[_0x4e6d6c(0x415)]!==_0x4b2515[_0x4e6d6c(0x389)][_0x4e6d6c(0x46f)]||_0x5b4b90!=null&&_0x5b4b90[_0x4e6d6c(0x371)]||_0x5b4b90!=null&&_0x5b4b90['onlyLocal'])return;let _0x13a315=_0x201929[_0x4e6d6c(0x3f5)];if((_0x13a315==null?void 0x0:_0x13a315['unitId'])!==this[_0x4e6d6c(0x258)])return;let _0x5dfae5=_0x201929,_0x24247d=this[_0x4e6d6c(0x188)][_0x4e6d6c(0x395)][_0x4e6d6c(0x18d)](this[_0x4e6d6c(0x188)][_0x4e6d6c(0x395)][_0x4e6d6c(0x176)]()[_0x4e6d6c(0x139)])([_0x5dfae5],this[_0x4e6d6c(0x118)])||[_0x5dfae5];this[_0x4e6d6c(0x17a)](_0x24247d[0x0]);})),_0x5b479b;}};_0x4deb99=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be['RevisionService'])),_0x3b5628(0x7,(0x0,_0x4b2515['Inject'])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0x9,_0x4b2515['ILogService']),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515['IPermissionService']),_0x3b5628(0xc,(0x0,_0x4b2515['Optional'])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0x4deb99);let _0x2226d9=class extends _0xe2b433{constructor(_0x39bacc,_0x4963e3,_0x137430,_0xdf35e7,_0x5da045,_0x17eaf3,_0x4ac213,_0x9ef862,_0x427784,_0x451f46,_0x1f8b64,_0x102053,_0x3961b6,_0x520a5b){const _0x9ac04b=_0x9884d2;super(_0x39bacc,_0x137430,_0x4963e3,_0xdf35e7,_0x5da045,_0x17eaf3,_0x4ac213,_0x9ef862,_0x427784,_0x451f46,_0x1f8b64,_0x102053,_0x3961b6,_0x520a5b),this['unitID']=_0x39bacc,this[_0x9ac04b(0x415)]=_0x4963e3;}async['_init'](){const _0x5b4c2a=_0x9884d2;let _0x620ab5=await super[_0x5b4c2a(0x386)]();return this[_0x5b4c2a(0x472)](this[_0x5b4c2a(0x2ef)][_0x5b4c2a(0x1cd)]((_0x31c8a0,_0x503ce1)=>{const _0x2c6d9c=_0x5b4c2a;if(_0x31c8a0[_0x2c6d9c(0x415)]!==_0x4b2515['CommandType']['MUTATION']||_0x503ce1!=null&&_0x503ce1['fromCollab']||_0x503ce1!=null&&_0x503ce1[_0x2c6d9c(0x1ba)])return;let _0x5842ac=_0x31c8a0[_0x2c6d9c(0x3f5)];if((_0x5842ac==null?void 0x0:_0x5842ac[_0x2c6d9c(0x3f0)])!==this[_0x2c6d9c(0x258)])return;let _0x4c325a=_0x31c8a0,_0x48f578=this['_compressMutationService'][_0x2c6d9c(0x395)][_0x2c6d9c(0x18d)](this[_0x2c6d9c(0x188)][_0x2c6d9c(0x395)][_0x2c6d9c(0x176)]()['COMPRESS_MUTATION_SEND'])([_0x4c325a],this[_0x2c6d9c(0x118)])||[_0x4c325a];this[_0x2c6d9c(0x17a)](_0x48f578[0x0]);})),_0x620ab5;}};_0x2226d9=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x4b2515['ICommandService']),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0x2226d9);let _0x3ce8fd=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x1d8));function _0x36e901(_0x280e88){const _0x7fdfa7=_0x9884d2;let _0x2ea195=_0x280e88[_0x7fdfa7(0x1b4)],_0x3f48d9=JSON['parse'](_0x2ea195);switch(_0x3f48d9['cmd']){case _0x349630[_0x7fdfa7(0x293)][_0x7fdfa7(0x280)]:case _0x349630[_0x7fdfa7(0x293)][_0x7fdfa7(0x35a)]:{let _0x2c5fe7=_0x3f48d9['infoRsp'];return{..._0x3f48d9,'data':_0x2c5fe7,'cmd':_0x3f48d9['cmd']};}case _0x349630[_0x7fdfa7(0x293)][_0x7fdfa7(0x213)]:{let _0x372532=_0x3f48d9[_0x7fdfa7(0x3b8)];return{..._0x3f48d9,'data':_0x372532,'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};}case _0x349630[_0x7fdfa7(0x293)][_0x7fdfa7(0x2c1)]:{let _0x4122f9=_0x3f48d9[_0x7fdfa7(0x3a9)];switch(_0x4122f9['eventID']){case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x384)]:var _0x148b50;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x148b50=_0x4122f9[_0x7fdfa7(0x26a)])==null?void 0x0:_0x148b50['cs']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x1f7)]:var _0x2dd5e7;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x2dd5e7=_0x4122f9['csAckEvent'])==null?void 0x0:_0x2dd5e7['cs']},'cmd':_0x3f48d9['cmd']};case _0x5199be['CollaborationEvent']['NEW_CHANGESETS']:var _0x5607e8;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x5607e8=_0x4122f9[_0x7fdfa7(0x3ef)])==null?void 0x0:_0x5607e8['cs']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)]['CHANGESET_REJ']:var _0x507131;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x507131=_0x4122f9[_0x7fdfa7(0x34b)])==null?void 0x0:_0x507131['cs']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x238)]:var _0x2b1979;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x2b1979=_0x4122f9[_0x7fdfa7(0x11c)])==null?void 0x0:_0x2b1979['cs']},'cmd':_0x3f48d9['cmd']};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x1f5)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x1f8)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be['CollaborationEvent'][_0x7fdfa7(0x377)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x2e7)]},'cmd':_0x3f48d9['cmd']};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x197)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9['leaveEvent']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be['CollaborationEvent'][_0x7fdfa7(0x460)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9['liveShareNewHost']},'cmd':_0x3f48d9['cmd']};case _0x5199be[_0x7fdfa7(0x261)]['LIVESHARE_FETCH_OPERATIONS']:case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x44c)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x419)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x3f9)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9['liveShareNewHost']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)]['MSG_FOR_ERROR']:return{..._0x3f48d9,'data':_0x4122f9,'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)]['COMMENT_UPDATE']:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x13a)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)]['UPDATE_PERMISSION_OBJ']:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x278)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x478)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9['shouldCloseConn']},'cmd':_0x3f48d9['cmd']};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x32a)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x366)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};default:return _0x3f48d9;}}default:return _0x3f48d9;}}function _0x320ae2(_0x3dc493){const _0x1db023=_0x9884d2;switch(_0x3dc493[_0x1db023(0x35f)]){case _0x349630[_0x1db023(0x293)][_0x1db023(0x280)]:case _0x349630[_0x1db023(0x293)]['HELLO']:return JSON[_0x1db023(0x3ee)]({'cmd':_0x3dc493[_0x1db023(0x35f)],'routeKey':_0x3dc493['routeKey']});case _0x349630['CombCmd'][_0x1db023(0x198)]:{let _0x4de506;switch(_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b3)]){case _0x5199be[_0x1db023(0x261)][_0x1db023(0x1f5)]:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x1f5)],'updateCursorEvent':_0x3dc493['data']['data']};break;case _0x5199be[_0x1db023(0x261)]['USERS_LEAVE']:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)]['USERS_LEAVE'],'leaveEvent':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be[_0x1db023(0x261)][_0x1db023(0x377)]:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x377)],'joinEvent':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be['CollaborationEvent'][_0x1db023(0x460)]:_0x4de506={'eventID':_0x5199be['CollaborationEvent'][_0x1db023(0x460)],'liveShareNewHost':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be['CollaborationEvent']['LIVESHARE_OPERATION']:_0x4de506={'eventID':_0x5199be['CollaborationEvent']['LIVESHARE_OPERATION'],'liveShareOperation':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be[_0x1db023(0x261)][_0x1db023(0x3f9)]:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x3f9)],'liveShareTerminate':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x14e)],'liveShareRequestHost':_0x3dc493['data'][_0x1db023(0x1b4)]};break;case _0x5199be[_0x1db023(0x261)][_0x1db023(0x2b1)]:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x2b1)]};break;default:_0x4de506={'eventID':_0x3dc493['data']['eventID']};}return JSON['stringify']({'cmd':_0x3dc493['cmd'],'routeKey':_0x3dc493[_0x1db023(0x3f4)],'collaMsg':_0x4de506});}case _0x349630[_0x1db023(0x293)][_0x1db023(0x213)]:return JSON['stringify']({'cmd':_0x3dc493[_0x1db023(0x35f)],'routeKey':_0x3dc493[_0x1db023(0x3f4)],'joinReq':_0x3dc493[_0x1db023(0x1b4)]});case _0x349630[_0x1db023(0x293)][_0x1db023(0x2fc)]:return JSON[_0x1db023(0x3ee)]({'cmd':_0x3dc493['cmd'],'routeKey':_0x3dc493[_0x1db023(0x3f4)],'leaveReq':_0x3dc493['data']});default:throw Error(_0x1db023(0x2e8));}}let _0x4f7089=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x236));function _0x91aa4f(_0x130d95,_0x1cfb53,_0x7f067a){const _0x431a88=_0x9884d2;return _0x130d95+'/'+_0x1cfb53+_0x431a88(0x3b3)+_0x7f067a+_0x431a88(0x3c9);}let _0x1df3dc=class extends _0x4b2515['Disposable']{constructor(_0x32437f,_0x1adece,_0x38bc9d,_0x38b53e,_0x62919){const _0x21482e=_0x9884d2;super(),this[_0x21482e(0x46a)]=_0x32437f,this['_httpService']=_0x1adece,this[_0x21482e(0x3c6)]=_0x38bc9d,this[_0x21482e(0x344)]=_0x38b53e,this[_0x21482e(0x331)]=_0x62919;}['_doCreateSocket'](_0x57a379){const _0x30d7e3=_0x9884d2;let _0x169deb=this[_0x30d7e3(0x46a)][_0x30d7e3(0x2eb)](_0x530da8[_0x30d7e3(0x19f)]);if(!_0x169deb)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x5c2ffb=_0x169deb[_0x30d7e3(0x3b2)](_0x57a379);if(!_0x5c2ffb)throw Error(_0x30d7e3(0x44d));let _0xf8d825=new _0x4b2515[(_0x30d7e3(0x277))](),_0x2e59c1=new _0xccd21e[(_0x30d7e3(0x200))]();_0xf8d825[_0x30d7e3(0x2a4)](_0x5c2ffb['close$'][_0x30d7e3(0x23b)](_0x549212=>_0x2e59c1[_0x30d7e3(0x17e)](_0x549212))),_0xf8d825['add']((0x0,_0x4b2515[_0x30d7e3(0x299)])(()=>_0x2e59c1[_0x30d7e3(0x41f)]()));let _0x236b20=new _0xccd21e[(_0x30d7e3(0x200))]();_0xf8d825[_0x30d7e3(0x2a4)](_0x5c2ffb[_0x30d7e3(0x199)][_0x30d7e3(0x23b)](_0x44f913=>_0x236b20[_0x30d7e3(0x17e)](_0x44f913))),_0xf8d825[_0x30d7e3(0x2a4)]((0x0,_0x4b2515['toDisposable'])(()=>_0x236b20[_0x30d7e3(0x41f)]()));let _0x21e5a4=new _0xccd21e[(_0x30d7e3(0x200))]();_0xf8d825[_0x30d7e3(0x2a4)](_0x5c2ffb[_0x30d7e3(0x400)][_0x30d7e3(0x23b)](_0x5f46dd=>{const _0xf03245=_0x30d7e3;let _0x1031ac=_0x36e901(_0x5f46dd);_0x21e5a4[_0xf03245(0x17e)](_0x1031ac);})),_0xf8d825[_0x30d7e3(0x2a4)]((0x0,_0x4b2515[_0x30d7e3(0x299)])(()=>_0x21e5a4[_0x30d7e3(0x41f)]()));let _0x449514,_0x20b06b=()=>{const _0x102195=_0x30d7e3;_0x236b20[_0x102195(0x17e)](new Event('connection\x20error')),_0x2e59c1[_0x102195(0x17e)](new Event(_0x102195(0x130))),_0x449514[_0x102195(0x243)]();};return _0x449514={'memberID':'','close$':_0x2e59c1['asObservable'](),'error$':_0x236b20[_0x30d7e3(0x43c)](),'open$':_0x5c2ffb[_0x30d7e3(0x265)],'message$':_0x21e5a4[_0x30d7e3(0x43c)](),'send':_0x313295=>{const _0x99a789=_0x30d7e3;if(_0x313295[_0x99a789(0x35f)]===_0x349630[_0x99a789(0x293)][_0x99a789(0x198)]){if(_0x313295[_0x99a789(0x1b4)]['eventID']===_0x5199be[_0x99a789(0x261)][_0x99a789(0x209)]){this[_0x99a789(0x2c9)](_0x449514,_0x313295[_0x99a789(0x1b4)])[_0x99a789(0x2d9)](_0x509579=>{const _0x3885c4=_0x99a789;this[_0x3885c4(0x344)]['error'](_0x509579),_0x20b06b();});return;}if(_0x313295['data'][_0x99a789(0x1b3)]===_0x5199be[_0x99a789(0x261)][_0x99a789(0x318)]){let _0xbf2899=_0x313295[_0x99a789(0x1b4)];this[_0x99a789(0x3c0)](_0xbf2899)[_0x99a789(0x2b5)](_0x255bb7=>{const _0x106f20=_0x99a789;_0x21e5a4[_0x106f20(0x17e)]({'cmd':_0x349630[_0x106f20(0x293)]['RECV'],'code':_0x349630[_0x106f20(0x440)]['OK'],'routeKey':_0xbf2899[_0x106f20(0x1b4)][_0x106f20(0x258)],'routeType':'','data':{'eventID':_0x5199be[_0x106f20(0x261)][_0x106f20(0x18e)],'data':{'changesets':_0x255bb7}}});})['catch'](_0x113b42=>{const _0x567b81=_0x99a789;this[_0x567b81(0x344)]['error'](_0x113b42),_0x20b06b();});return;}}_0x5c2ffb[_0x99a789(0x2d6)](_0x320ae2(_0x313295));},'close':()=>{const _0x465d27=_0x30d7e3;_0x5c2ffb[_0x465d27(0x243)](),_0xf8d825[_0x465d27(0x314)]();}},_0x449514;}async[_0x9884d2(0x2c9)](_0x1a0829,_0x4c994a){const _0xb97675=_0x9884d2;let {unitType:_0x4d4036,unitID:_0x4a5a44,changeset:_0x528e9a}=_0x4c994a['data'],_0x122aa4={'unitID':_0x4a5a44,'memberID':_0x1a0829[_0xb97675(0x417)],'type':_0x4d4036,'changeset':(0x0,_0x5199be[_0xb97675(0x21a)])(_0x528e9a)},_0x1f4f4d=this['_configService']['getConfig'](_0x3c0330),_0x436f30=_0x91aa4f((_0x1f4f4d==null?void 0x0:_0x1f4f4d[_0xb97675(0x3c8)])??_0xb97675(0x485),_0x4d4036,_0x4a5a44);try{await this[_0xb97675(0x1d0)][_0xb97675(0x31b)](_0x436f30,{'body':_0x122aa4});}catch(_0x155549){throw this['_logService'][_0xb97675(0x1b5)]('[CollaborationSession]',_0xb97675(0x290)),_0x155549;}}async[_0x9884d2(0x3c0)](_0x4681f8){const _0x19b578=_0x9884d2;let {unitID:_0x86b1f2,from:_0x42002f,to:_0x5e7b31,unitType:_0x5d2651}=_0x4681f8[_0x19b578(0x1b4)];return(await this[_0x19b578(0x331)][_0x19b578(0x30d)]({'metadata':void 0x0},{'unitID':_0x86b1f2,'type':_0x5d2651,'from':_0x42002f,'to':_0x5e7b31}))['changesets']['map'](_0x34cb36=>((_0x34cb36['mutations']===null||_0x34cb36[_0x19b578(0x25c)]===void 0x0)&&(_0x34cb36[_0x19b578(0x25c)]=[]),_0x34cb36));}};_0x1df3dc=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)])),_0x3b5628(0x2,_0x4b2515['IConfigService']),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x4,_0x5199be['ISnapshotServerService'])],_0x1df3dc);let _0x14183e=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x18b));function _0x8c16f0(_0x15162c={}){const _0x2c8c03=_0x9884d2;return _0x15162c['resolveUnit']?{'resolveUnit':_0x15162c['resolveUnit']}:{'resolveUnit':_0xf7315b=>({'target':{'unitId':_0xf7315b[_0x2c8c03(0x3f0)],'unitType':_0xf7315b[_0x2c8c03(0x294)]}})};}function _0x163e78(_0x292dd3,_0x404ee5,_0x282c45){const _0x187b88=_0x9884d2;let _0x5919b9=_0x282c45[_0x187b88(0x479)]['endpoint'];if(_0x5919b9!=null&&_0x5919b9[_0x187b88(0x2c4)]()==='')throw Error(_0x187b88(0x29a));if(!_0x282c45[_0x187b88(0x479)]['unitId'])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x292dd3,'unitType':_0x404ee5,'target':{'endpoint':_0x5919b9,'unitId':_0x282c45[_0x187b88(0x479)][_0x187b88(0x3f0)],'unitType':_0x282c45[_0x187b88(0x479)][_0x187b88(0x294)]??_0x404ee5},'changeset':_0x282c45[_0x187b88(0x166)]};}let _0x283d67=class extends _0x4b2515[_0x9884d2(0x1cb)]{constructor(_0x33c3a5,_0x4d2567,_0x4c0374,_0x429065,_0xb88d64,_0x4312d2,_0x2ee563){const _0x576a62=_0x9884d2;super(),this[_0x576a62(0x46a)]=_0x33c3a5,this['_logService']=_0x4d2567,this[_0x576a62(0x3c6)]=_0x4c0374,this[_0x576a62(0x159)]=_0x429065,this[_0x576a62(0x427)]=_0xb88d64,this['_adapter']=_0x4312d2,this[_0x576a62(0x185)]=_0x2ee563,_0x60128a(this,_0x576a62(0x175),new Map()),_0x60128a(this,_0x576a62(0x3de),new Map()),_0x60128a(this,_0x576a62(0x3a1),new Map()),_0x60128a(this,'_socketChannels',new Map()),_0x60128a(this,_0x576a62(0x352),this[_0x576a62(0x132)](void 0x0)['socket$'][_0x576a62(0x43c)]()),_0x60128a(this,_0x576a62(0x310),new _0xccd21e['BehaviorSubject'](0x0)),_0x60128a(this,'status$',this['_status$'][_0x576a62(0x43c)]()),this[_0x576a62(0x17f)]();}[_0x9884d2(0x17f)](){const _0x5511d9=_0x9884d2;this['_networkConditionService']&&this[_0x5511d9(0x472)](this['_networkConditionService'][_0x5511d9(0x2bf)][_0x5511d9(0x23b)](_0xa6e86=>{const _0xf2b175=_0x5511d9;_0xa6e86&&this[_0xf2b175(0x158)](),_0xa6e86||this[_0xf2b175(0x397)]['forEach'](_0x3abeed=>this[_0xf2b175(0x216)](_0x3abeed));}));}[_0x9884d2(0x314)](){const _0x4ed839=_0x9884d2;super[_0x4ed839(0x314)](),this[_0x4ed839(0x397)][_0x4ed839(0x1e3)](_0x216968=>{const _0x297bf8=_0x4ed839;var _0x4318c0,_0xfa6c6a;(_0x4318c0=_0x216968[_0x297bf8(0x390)])==null||_0x4318c0[_0x297bf8(0x29f)](),_0x216968['socketMessageSubscription']=null,this['_clearRetryConnectingTimer'](_0x216968),this[_0x297bf8(0x309)](_0x216968),this[_0x297bf8(0x1a6)](_0x216968),(_0xfa6c6a=_0x216968['socket$'][_0x297bf8(0x383)]())==null||_0xfa6c6a[_0x297bf8(0x243)](),_0x216968['socket$'][_0x297bf8(0x41f)]();}),this['_socketChannels'][_0x4ed839(0x214)](),this[_0x4ed839(0x175)][_0x4ed839(0x1e3)](_0x3b1985=>_0x3b1985['dispose']()),this[_0x4ed839(0x175)]['clear'](),this[_0x4ed839(0x3a1)][_0x4ed839(0x214)](),this['_status$']['complete']();}async[_0x9884d2(0x1a4)](_0x4b265c,_0x53efb6){const _0x5f0503=_0x9884d2;if(this['_sessions'][_0x5f0503(0x40a)](_0x4b265c))return this[_0x5f0503(0x175)][_0x5f0503(0x2eb)](_0x4b265c);let _0x4f8d9b=this['_pendingSessions'][_0x5f0503(0x2eb)](_0x4b265c);if(_0x4f8d9b)return _0x4f8d9b;let _0x17e2f6=this[_0x5f0503(0x47b)](_0x4b265c,_0x53efb6);this[_0x5f0503(0x3de)][_0x5f0503(0x41e)](_0x4b265c,_0x17e2f6);try{return await _0x17e2f6;}finally{this[_0x5f0503(0x3de)][_0x5f0503(0x287)](_0x4b265c);}}async['_createSession'](_0x5f523a,_0xfd5ca0){const _0xd28c36=_0x9884d2;let _0x5b88e4=await this[_0xd28c36(0x1a1)](_0x5f523a,_0xfd5ca0),_0x1f511f=this[_0xd28c36(0x132)](_0x5b88e4['target']['endpoint']);this[_0xd28c36(0x23a)](_0x1f511f);let _0x242dd2=this[_0xd28c36(0x46a)][_0xd28c36(0x40d)](_0x188c53,_0x5b88e4,_0x1f511f[_0xd28c36(0x352)][_0xd28c36(0x43c)]());return this[_0xd28c36(0x175)][_0xd28c36(0x41e)](_0x5f523a,_0x242dd2),this['_sessionChannels'][_0xd28c36(0x41e)](_0x5f523a,_0x1f511f['endpointKey']),_0x242dd2;}['closeSession'](_0xdb0608){const _0x49dd17=_0x9884d2;let _0x1f50f6=this['_sessions'][_0x49dd17(0x2eb)](_0xdb0608),_0x63df11=this['_sessionChannels'][_0x49dd17(0x2eb)](_0xdb0608);if(_0x1f50f6&&(this[_0x49dd17(0x175)][_0x49dd17(0x287)](_0xdb0608),this[_0x49dd17(0x3a1)]['delete'](_0xdb0608),_0x1f50f6[_0x49dd17(0x243)]()),_0x63df11&&!this[_0x49dd17(0x271)](_0x63df11)){var _0x1ff0c3;let _0x4d77f3=this[_0x49dd17(0x397)][_0x49dd17(0x2eb)](_0x63df11);_0x4d77f3==null||(_0x1ff0c3=_0x4d77f3[_0x49dd17(0x352)][_0x49dd17(0x383)]())==null||_0x1ff0c3[_0x49dd17(0x243)]();}}['reconnect'](){const _0x5787ee=_0x9884d2;(this['_socketChannels']['size']?[...this['_socketChannels']['values']()]:[this[_0x5787ee(0x132)](void 0x0)])['forEach'](_0x432e8b=>{const _0x5c0b59=_0x5787ee;_0x432e8b[_0x5c0b59(0x2d0)]=0x0,this['_clearRetryConnectingTimer'](_0x432e8b),this['_tryReconnect'](_0x432e8b);});}[_0x9884d2(0x141)](_0x41100b){const _0xe515e=_0x9884d2;_0x41100b[_0xe515e(0x117)]!=null&&(clearTimeout(_0x41100b[_0xe515e(0x117)]),_0x41100b['retryConnectingTimer']=null);}async[_0x9884d2(0x2e3)](_0x419d73){const _0x5b007d=_0x9884d2;let _0x5a006b=this[_0x5b007d(0x3c6)][_0x5b007d(0x32f)](_0x3c0330),_0x40de5e=_0x419d73['endpoint']??(_0x5a006b==null?void 0x0:_0x5a006b[_0x5b007d(0x430)])??_0x5b007d(0x3fb),_0x1c76b4=await this[_0x5b007d(0x159)]['createSocket'](_0x40de5e);return _0x419d73[_0x5b007d(0x127)]=_0x1c76b4,_0x1c76b4;}async[_0x9884d2(0x23a)](_0x51c6a2){const _0x231436=_0x9884d2;try{let _0x520b3c=_0x51c6a2['socket$'][_0x231436(0x383)]()??_0x51c6a2[_0x231436(0x127)]??await this[_0x231436(0x2e3)](_0x51c6a2);if(_0x520b3c){var _0x3c45e6;let _0x2a79cb=_0x520b3c['send'];_0x520b3c['send']=_0x36b545=>(_0x36b545['cmd']!==_0x349630['CombCmd'][_0x231436(0x2fc)]&&this[_0x231436(0x36e)](_0x51c6a2),_0x2a79cb[_0x231436(0x349)](_0x520b3c,[_0x36b545])),(_0x3c45e6=_0x51c6a2[_0x231436(0x390)])==null||_0x3c45e6[_0x231436(0x29f)](),_0x51c6a2[_0x231436(0x390)]=null,_0x51c6a2[_0x231436(0x390)]=_0x520b3c[_0x231436(0x400)][_0x231436(0x23b)](_0x269594=>this[_0x231436(0x136)](_0x51c6a2,_0x520b3c,_0x269594)),_0x520b3c['error$']['pipe']((0x0,_0x2c33e8[_0x231436(0x1dc)])(0x1))[_0x231436(0x23b)](_0xafd6ce=>this[_0x231436(0x344)][_0x231436(0x1b5)](_0x231436(0x25f),_0xafd6ce)),_0x520b3c[_0x231436(0x265)][_0x231436(0x486)]((0x0,_0x2c33e8['take'])(0x1))[_0x231436(0x23b)](()=>{const _0x10694f=_0x231436;this[_0x10694f(0x1fe)](_0x51c6a2,_0x520b3c);}),_0x520b3c[_0x231436(0x484)][_0x231436(0x486)]((0x0,_0x2c33e8[_0x231436(0x1dc)])(0x1))[_0x231436(0x23b)](_0x220fcb=>{const _0x76858c=_0x231436;this['_logService'][_0x76858c(0x348)](_0x76858c(0x2b6),'socket\x20close',_0x220fcb),this['_onConnectionFailed'](_0x51c6a2);});}}catch(_0x4d8b16){this['_logService'][_0x231436(0x1b5)](_0x4d8b16),this[_0x231436(0x19c)](_0x51c6a2);}}['_onConnectionOpen'](_0x224e3c,_0x1186fc){const _0x5020b1=_0x9884d2;this[_0x5020b1(0x344)][_0x5020b1(0x348)]('[CollaborationSessionService]',_0x5020b1(0x18a)),_0x1186fc[_0x5020b1(0x2d6)]({'cmd':_0x349630[_0x5020b1(0x293)]['HELLO']}),this[_0x5020b1(0x36e)](_0x224e3c);}[_0x9884d2(0x216)](_0x35dcb3){const _0x354a56=_0x9884d2;_0x35dcb3['socketReady']=!0x1,_0x35dcb3[_0x354a56(0x127)]=null,this[_0x354a56(0x310)][_0x354a56(0x17e)](0x2),_0x35dcb3[_0x354a56(0x352)][_0x354a56(0x17e)](null),this[_0x354a56(0x309)](_0x35dcb3),this[_0x354a56(0x1a6)](_0x35dcb3);}[_0x9884d2(0x19c)](_0x3e7655){const _0x426f6a=_0x9884d2;this[_0x426f6a(0x216)](_0x3e7655),this[_0x426f6a(0x271)](_0x3e7655[_0x426f6a(0x2a8)])&&(_0x3e7655[_0x426f6a(0x2d0)]<(this[_0x426f6a(0x3c6)][_0x426f6a(0x32f)](_0x426f6a(0x458))??0x3)?(this['_collaborationUIEventService'][_0x426f6a(0x1db)]({'id':'SOCKET_FAILED_RETRY'}),this['_tryReconnect'](_0x3e7655)):this[_0x426f6a(0x427)][_0x426f6a(0x1db)]({'id':_0x426f6a(0x163)}));}[_0x9884d2(0x2ea)](_0x17439a){const _0x45b1df=_0x9884d2;let _0x2ddcca=_0x17439a[_0x45b1df(0x2d0)],_0x3e0cb4=this[_0x45b1df(0x3c6)][_0x45b1df(0x32f)](_0x3c0330),_0x3aecc6=_0x2ddcca===0x0?0x0:((_0x3e0cb4==null?void 0x0:_0x3e0cb4[_0x45b1df(0x483)])??0x4e20)*0x2**_0x2ddcca;_0x17439a['retryConnectingTimer']=setTimeout(()=>{const _0x1124cc=_0x45b1df;clearTimeout(_0x17439a[_0x1124cc(0x117)]),_0x17439a[_0x1124cc(0x117)]=null,this[_0x1124cc(0x23a)](_0x17439a);},_0x3aecc6),_0x17439a[_0x45b1df(0x2d0)]+=0x1;}async[_0x9884d2(0x1a1)](_0x2d2ff8,_0x5a35ea){const _0x1ec27e=_0x9884d2;return _0x163e78(_0x2d2ff8,_0x5a35ea,await this[_0x1ec27e(0x42a)][_0x1ec27e(0x329)]({'unitId':_0x2d2ff8,'unitType':_0x5a35ea}));}['_onMessage'](_0x263751,_0x3a8811,_0x1dea63){const _0x2ed5d2=_0x9884d2;let {cmd:_0x1dcca1}=_0x1dea63;_0x1dcca1===_0x349630[_0x2ed5d2(0x293)]['HELLO']&&!_0x263751['socketReady']&&(_0x3a8811[_0x2ed5d2(0x417)]=_0x1dea63[_0x2ed5d2(0x1b4)][_0x2ed5d2(0x417)],_0x263751[_0x2ed5d2(0x2d0)]=0x0,_0x263751[_0x2ed5d2(0x352)][_0x2ed5d2(0x17e)](_0x3a8811),this[_0x2ed5d2(0x310)][_0x2ed5d2(0x17e)](0x3),_0x263751[_0x2ed5d2(0x351)]=!0x0,_0x263751[_0x2ed5d2(0x127)]=null),_0x1dcca1===_0x349630[_0x2ed5d2(0x293)][_0x2ed5d2(0x280)]&&this[_0x2ed5d2(0x309)](_0x263751),this[_0x2ed5d2(0x36e)](_0x263751);}[_0x9884d2(0x271)](_0x6619b6){const _0xc31e31=_0x9884d2;return[...this[_0xc31e31(0x3a1)]['values']()]['some'](_0x47f76d=>_0x47f76d===_0x6619b6);}[_0x9884d2(0x132)](_0x1c53e5){const _0x4fd072=_0x9884d2;let _0x13b26d=_0x1c53e5??'',_0x398980=this[_0x4fd072(0x397)][_0x4fd072(0x2eb)](_0x13b26d);if(_0x398980)return _0x398980;let _0xa7e94b={'endpointKey':_0x13b26d,'endpoint':_0x1c53e5,'socket$':new _0xccd21e[(_0x4fd072(0x379))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x4fd072(0x397)][_0x4fd072(0x41e)](_0x13b26d,_0xa7e94b),_0xa7e94b;}['_rescheduleHeartbeat'](_0x5cd700){const _0x479fc6=_0x9884d2;this[_0x479fc6(0x1a6)](_0x5cd700),_0x5cd700[_0x479fc6(0x12f)]=setTimeout(()=>this[_0x479fc6(0x31c)](_0x5cd700),this[_0x479fc6(0x3c6)][_0x479fc6(0x32f)](_0x479fc6(0x3bc))??0x7530);}['_sendHeartbeat'](_0x2e5bad){const _0x6f7f3e=_0x9884d2;_0x2e5bad[_0x6f7f3e(0x352)]['getValue']()[_0x6f7f3e(0x2d6)]({'cmd':_0x349630[_0x6f7f3e(0x293)]['HEARTBEAT']}),this['_waitForHeartbeatResponse'](_0x2e5bad);}[_0x9884d2(0x2cc)](_0x41dd83){const _0x24f6e2=_0x9884d2;_0x41dd83[_0x24f6e2(0x2ca)]=setTimeout(()=>this[_0x24f6e2(0x19c)](_0x41dd83),this[_0x24f6e2(0x3c6)][_0x24f6e2(0x32f)](_0x24f6e2(0x207))??0x4e20);}['_clearHeartbeatTimer'](_0x45efdd){const _0x361ab8=_0x9884d2;_0x45efdd[_0x361ab8(0x12f)]!=null&&(clearTimeout(_0x45efdd[_0x361ab8(0x12f)]),_0x45efdd[_0x361ab8(0x12f)]=null);}['_clearTimeoutTimer'](_0x4d2c24){const _0x40e942=_0x9884d2;_0x4d2c24[_0x40e942(0x2ca)]!=null&&(clearTimeout(_0x4d2c24[_0x40e942(0x2ca)]),_0x4d2c24[_0x40e942(0x2ca)]=null);}};_0x283d67=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x3,_0x4f7089),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x5,_0x14183e),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x3ce8fd))],_0x283d67);let _0x4809ba=class extends _0x4b2515[_0x9884d2(0x190)]{constructor(_0x134365,_0x210a1e,_0x15caca,_0x50580a){const _0x149089=_0x9884d2;var _0x2c8958;super(),this['_injector']=_0x134365,this['_collabSessionService']=_0x210a1e,this[_0x149089(0x3c6)]=_0x15caca,this[_0x149089(0x118)]=_0x50580a,_0x60128a(this,_0x149089(0x1cc),new Map()),_0x60128a(this,_0x149089(0x482),new _0xccd21e[(_0x149089(0x200))]()),_0x60128a(this,_0x149089(0x3be),this['_entityInit$'][_0x149089(0x43c)]()),((_0x2c8958=this[_0x149089(0x3c6)]['getConfig'](_0x149089(0x3c1)))==null?void 0x0:_0x2c8958[_0x149089(0x2a9)])!==!0x1&&this['_init']();}[_0x9884d2(0x314)](){const _0x113111=_0x9884d2;super[_0x113111(0x314)](),this[_0x113111(0x1cc)][_0x113111(0x1e3)](_0x2bed69=>_0x2bed69[_0x113111(0x314)]()),this[_0x113111(0x1cc)][_0x113111(0x214)]();}[_0x9884d2(0x16c)](_0x436773){const _0x1d5249=_0x9884d2;return this[_0x1d5249(0x1cc)]['get'](_0x436773)??null;}[_0x9884d2(0x406)](_0x305589){const _0x376278=_0x9884d2;let _0x37185a=this[_0x376278(0x16c)](_0x305589);return _0x37185a?(0x0,_0xccd21e['of'])(_0x37185a):this[_0x376278(0x482)][_0x376278(0x486)]((0x0,_0x2c33e8[_0x376278(0x10d)])(_0x4afbd6=>_0x4afbd6['unitID']===_0x305589));}[_0x9884d2(0x23c)](_0xb3d4d9){const _0x158b39=_0x9884d2;return(0x0,_0xccd21e[_0x158b39(0x224)])(this['getCollabEntity$'](_0xb3d4d9)[_0x158b39(0x486)]((0x0,_0x2c33e8['map'])(()=>void 0x0)));}['_init'](){const _0x512cb5=_0x9884d2;this[_0x512cb5(0x118)][_0x512cb5(0x3bf)](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x465)])[_0x512cb5(0x486)]((0x0,_0xccd21e['takeUntil'])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8['delay'])(0x10))[_0x512cb5(0x23b)](async _0x3b4602=>{const _0xf13bd7=_0x512cb5;let _0x5d9045=_0x3b4602['unit'][_0xf13bd7(0x413)](),_0x587f90=await this[_0xf13bd7(0x477)](_0x5d9045,_0x4b2515[_0xf13bd7(0x223)]['UNIVER_SHEET']);this[_0xf13bd7(0x1cc)][_0xf13bd7(0x41e)](_0x5d9045,_0x587f90);}),this[_0x512cb5(0x118)][_0x512cb5(0x3bf)](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x10f)])[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8[_0x512cb5(0x3fc)])(0x10))[_0x512cb5(0x486)]((0x0,_0x2c33e8[_0x512cb5(0x10d)])(_0x1a2f50=>!_0x1a2f50[_0x512cb5(0x145)][_0x512cb5(0x413)]()['startsWith']('__')))['subscribe'](async _0x118cf6=>{const _0x594eb5=_0x512cb5;let _0x2a1158=_0x118cf6[_0x594eb5(0x145)][_0x594eb5(0x413)](),_0x1355c1=await this['_startCollaboration'](_0x2a1158,_0x4b2515[_0x594eb5(0x223)][_0x594eb5(0x10f)]);this['_entities'][_0x594eb5(0x41e)](_0x2a1158,_0x1355c1);}),this[_0x512cb5(0x118)][_0x512cb5(0x3bf)](_0x4b2515[_0x512cb5(0x223)]['UNIVER_SLIDE'])[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8[_0x512cb5(0x3fc)])(0x10))[_0x512cb5(0x23b)](async _0x6d07a9=>{const _0x1010da=_0x512cb5;let _0x4100ed=_0x6d07a9['unit'][_0x1010da(0x413)](),_0x470474=await this[_0x1010da(0x477)](_0x4100ed,_0x4b2515[_0x1010da(0x223)][_0x1010da(0x281)]);this[_0x1010da(0x1cc)][_0x1010da(0x41e)](_0x4100ed,_0x470474);}),this[_0x512cb5(0x118)]['getTypeOfUnitAdded$'](_0x4b2515['UniverInstanceType'][_0x512cb5(0x339)])[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8['delay'])(0x10))[_0x512cb5(0x23b)](async _0x387225=>{const _0x538ab3=_0x512cb5;let _0x532432=_0x387225[_0x538ab3(0x145)][_0x538ab3(0x413)](),_0x9e8928=await this[_0x538ab3(0x477)](_0x532432,_0x4b2515[_0x538ab3(0x223)][_0x538ab3(0x339)]);this[_0x538ab3(0x1cc)][_0x538ab3(0x41e)](_0x532432,_0x9e8928);}),this[_0x512cb5(0x118)]['getTypeOfUnitAdded$'](_0x4b2515['UniverInstanceType'][_0x512cb5(0x267)])[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this['dispose$']),(0x0,_0x2c33e8['delay'])(0x10))['subscribe'](async _0x56fecc=>{const _0x43f387=_0x512cb5;let _0x77a74b=_0x56fecc['unit']['getUnitId'](),_0x3559fa=await this[_0x43f387(0x477)](_0x77a74b,_0x4b2515[_0x43f387(0x223)][_0x43f387(0x267)]);this[_0x43f387(0x1cc)][_0x43f387(0x41e)](_0x77a74b,_0x3559fa);}),this[_0x512cb5(0x118)][_0x512cb5(0x3bf)](_0x4b2515['UniverInstanceType'][_0x512cb5(0x1b9)])[_0x512cb5(0x486)]((0x0,_0xccd21e['takeUntil'])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8[_0x512cb5(0x3fc)])(0x10))[_0x512cb5(0x23b)](async _0x265bba=>{const _0x526f11=_0x512cb5;let _0x44e276=_0x265bba[_0x526f11(0x145)]['getUnitId'](),_0x58ec7a=await this[_0x526f11(0x477)](_0x44e276,_0x4b2515[_0x526f11(0x223)]['UNIVER_PDF']);this['_entities'][_0x526f11(0x41e)](_0x44e276,_0x58ec7a);}),(0x0,_0xccd21e[_0x512cb5(0x448)])(this[_0x512cb5(0x118)]['getTypeOfUnitDisposed$'](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x465)]),this[_0x512cb5(0x118)][_0x512cb5(0x47f)](_0x4b2515[_0x512cb5(0x223)]['UNIVER_DOC']),this[_0x512cb5(0x118)][_0x512cb5(0x47f)](_0x4b2515['UniverInstanceType']['UNIVER_SLIDE']),this[_0x512cb5(0x118)][_0x512cb5(0x47f)](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x339)]),this[_0x512cb5(0x118)][_0x512cb5(0x47f)](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x267)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x1b9)]))[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this['dispose$']))[_0x512cb5(0x23b)](_0x237064=>{const _0x3e1af6=_0x512cb5;let _0x4f3342=_0x237064[_0x3e1af6(0x413)](),_0x2867db=this['_entities'][_0x3e1af6(0x2eb)](_0x4f3342);_0x2867db&&(_0x2867db[_0x3e1af6(0x314)](),this[_0x3e1af6(0x1cc)][_0x3e1af6(0x287)](_0x4f3342));});}async[_0x9884d2(0x477)](_0x2da858,_0x53a8fa){const _0xcbc4bc=_0x9884d2;let _0xb192af=await this[_0xcbc4bc(0x455)][_0xcbc4bc(0x1a4)](_0x2da858),_0x5ca766=this[_0xcbc4bc(0x46a)][_0xcbc4bc(0x40d)](this['_getCtorByUniverInstanceType'](_0x53a8fa),_0x2da858,_0x53a8fa,_0xb192af);return await _0x5ca766[_0xcbc4bc(0x2ce)](),this[_0xcbc4bc(0x482)][_0xcbc4bc(0x17e)](_0x5ca766),_0x5ca766;}[_0x9884d2(0x40b)](_0x3533cf){const _0x4a7871=_0x9884d2;switch(_0x3533cf){case _0x4b2515[_0x4a7871(0x223)]['UNIVER_DOC']:return _0x94e744;case _0x4b2515[_0x4a7871(0x223)][_0x4a7871(0x465)]:return _0xe8b1d4;case _0x4b2515[_0x4a7871(0x223)]['UNIVER_SLIDE']:return _0x3a9411;case _0x4b2515[_0x4a7871(0x223)][_0x4a7871(0x339)]:return _0x4deb99;case _0x4b2515[_0x4a7871(0x223)]['UNIVER_BASE']:return _0x24daae;case _0x4b2515[_0x4a7871(0x223)][_0x4a7871(0x1b9)]:return _0x2226d9;default:throw Error(_0x4a7871(0x451)+_0x3533cf);}}};_0x4809ba=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x283d67)),_0x3b5628(0x2,_0x4b2515['IConfigService']),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x405)])],_0x4809ba);var _0x3ff4bc='@univerjs-pro/collaboration-client',_0x303b92=_0x9884d2(0x14f);let _0x2fc493=class extends _0x4b2515['Disposable']{constructor(_0x211476,_0x2137a2){const _0x3ea04f=_0x9884d2;super(),this['_univerInstanceService']=_0x211476,this[_0x3ea04f(0x3c6)]=_0x2137a2,this['_init']();}['_init'](){const _0x18646f=_0x9884d2;this[_0x18646f(0x472)](this[_0x18646f(0x118)]['focused$'][_0x18646f(0x23b)](()=>{const _0x2447f1=_0x18646f;let _0x2a5812=this[_0x2447f1(0x118)][_0x2447f1(0x340)](),_0x43d363=this[_0x2447f1(0x3c6)][_0x2447f1(0x32f)]('DEFAULT_FILE_NAME')??_0x2447f1(0x39f);_0x2a5812 instanceof _0x4b2515[_0x2447f1(0x3b5)]&&(_0x43d363=_0x2a5812['name']),document[_0x2447f1(0x420)]=_0x43d363;}));}};_0x2fc493=_0x33ad5b([_0x3b5628(0x0,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x341)])],_0x2fc493);let _0x5e4e05=(0x0,_0x4b2515[_0x9884d2(0x2c3)])('base-ui.attachment-io.service'),_0x5b1674=class{constructor(_0x13c454,_0x11be8a,_0x480864){const _0x2e06b9=_0x9884d2;this[_0x2e06b9(0x1d0)]=_0x13c454,this[_0x2e06b9(0x3c6)]=_0x11be8a,this[_0x2e06b9(0x118)]=_0x480864;}['getUploadOptions'](){const _0x395082=_0x9884d2;return this[_0x395082(0x13e)]()[_0x395082(0x11e)]??{};}async[_0x9884d2(0x248)](_0x308a27){const _0x409072=_0x9884d2;let _0xb864ae=this[_0x409072(0x2b9)]();if(_0x1b7456(_0x308a27,_0xb864ae),_0xb864ae[_0x409072(0x247)])return _0xb864ae[_0x409072(0x247)](_0x308a27);let _0x49af20=await this[_0x409072(0x1dd)](_0x308a27);return{'id':_0x49af20,'name':_0x308a27['name'],'mimeType':_0x308a27[_0x409072(0x415)],'size':_0x308a27['size'],'sourceType':_0x4b2515[_0x409072(0x3fe)][_0x409072(0x46c)],'source':_0x49af20};}async[_0x9884d2(0x161)](_0x37683d,_0x623fb7){const _0x598a1d=_0x9884d2;if(_0x623fb7!==_0x4b2515[_0x598a1d(0x3fe)]['UUID'])return _0x37683d;let _0x44d161=(await this[_0x598a1d(0x1d0)][_0x598a1d(0x2eb)](this['_getSignURL']()[_0x598a1d(0x3b0)](_0x598a1d(0x2e9),_0x37683d)))[_0x598a1d(0x450)];if(_0x44d161[_0x598a1d(0x1b5)]&&_0x44d161[_0x598a1d(0x1b5)][_0x598a1d(0x3f6)]!==_0x349630[_0x598a1d(0x328)]['OK'])throw _0x44d161[_0x598a1d(0x1b5)];if(!_0x44d161[_0x598a1d(0x424)])throw Error(_0x598a1d(0x253));return(0x0,_0x4b2515[_0x598a1d(0x302)])(_0x44d161[_0x598a1d(0x424)],this['_getDownloadEndpointURL']());}async[_0x9884d2(0x1dd)](_0x1351ab){const _0x22b842=_0x9884d2;let _0xa30f0e=this[_0x22b842(0x118)][_0x22b842(0x340)](),_0x9fe994=_0xa30f0e==null?void 0x0:_0xa30f0e[_0x22b842(0x413)]();if(!_0x9fe994)throw Error(_0x22b842(0x33f));let _0x147d83=new FormData();_0x147d83['append'](_0x22b842(0x23e),_0x1351ab);let _0xab3e31=this['_getUploadFileURL']()+_0x22b842(0x295)+_0x1351ab[_0x22b842(0x442)][_0x22b842(0x353)]()+'&source='+_0x349630[_0x22b842(0x3a6)][_0x22b842(0x14c)]+'&assign='+encodeURIComponent(_0x9fe994),_0x4619ad=(await this['_httpService'][_0x22b842(0x31b)](_0xab3e31,{'body':_0x147d83}))[_0x22b842(0x450)][_0x22b842(0x414)];if(typeof _0x4619ad!='string'||!_0x4619ad)throw Error(_0x22b842(0x22f));return _0x4619ad;}[_0x9884d2(0x264)](){const _0x32a014=_0x9884d2;return this[_0x32a014(0x13e)]()[_0x32a014(0x431)]??_0x32a014(0x42f);}[_0x9884d2(0x322)](){const _0x4642ad=_0x9884d2;return this['_getConfig']()[_0x4642ad(0x218)]??'/universer-api/file/{fileID}/sign-url';}[_0x9884d2(0x337)](){const _0x3f188c=_0x9884d2;let _0x2edee1=this[_0x3f188c(0x13e)]();return _0x2edee1[_0x3f188c(0x47d)]?_0x2edee1[_0x3f188c(0x47d)]:typeof location<'u'?location[_0x3f188c(0x142)]:_0x2edee1[_0x3f188c(0x431)]??'';}['_getConfig'](){const _0x5a5ef5=_0x9884d2;return this[_0x5a5ef5(0x3c6)][_0x5a5ef5(0x32f)](_0x5a5ef5(0x3c1))??{};}};_0x5b1674=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x341)])),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x405)]))],_0x5b1674);function _0x1b7456(_0x3f2a01,_0x3bef62){const _0x2b73d8=_0x9884d2;var _0x4ef5f5;if(_0x3bef62[_0x2b73d8(0x3e5)]!=null&&_0x3f2a01[_0x2b73d8(0x442)]>_0x3bef62[_0x2b73d8(0x3e5)])throw Error(_0x2b73d8(0x15a));if((_0x4ef5f5=_0x3bef62[_0x2b73d8(0x40c)])!=null&&_0x4ef5f5[_0x2b73d8(0x147)]&&!_0x3bef62[_0x2b73d8(0x40c)][_0x2b73d8(0x3e3)](_0x2d41ff=>_0x3f2a01[_0x2b73d8(0x415)]===_0x2d41ff||_0x3f2a01[_0x2b73d8(0x114)]['endsWith'](_0x2d41ff)||_0x2d41ff[_0x2b73d8(0x2a5)]('/*')&&_0x3f2a01[_0x2b73d8(0x415)][_0x2b73d8(0x12b)](_0x2d41ff[_0x2b73d8(0x3d6)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x324e1c=class{constructor(_0x44fa07,_0x436277,_0x31fcde){const _0x38d7e8=_0x9884d2;this['_configService']=_0x44fa07,this[_0x38d7e8(0x1d0)]=_0x436277,this['localeService']=_0x31fcde,this[_0x38d7e8(0x2ce)]();}[_0x9884d2(0x2ce)](){const _0x4fae09=_0x9884d2;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x3c41e3,_0x35b35f)=>_0x35b35f(_0x3c41e3)['pipe']((0x0,_0xccd21e[_0x4fae09(0x1ef)])(async _0x2d4706=>{const _0x229e33=_0x4fae09;let _0x2ce203=_0x2d4706;if(_0x2ce203[_0x229e33(0x45f)]===0x191){if(typeof window>'u')throw Error(_0x229e33(0x41a));if(window[_0x229e33(0x27d)](this['localeService']['t'](_0x229e33(0x1eb)))){let _0x37c0ff=window['encodeURIComponent'](window[_0x229e33(0x2b2)]['href']);window[_0x229e33(0x2b2)]['href']=this[_0x229e33(0x315)]()+'?url='+_0x37c0ff;}}return _0x2ce203;}))});}[_0x9884d2(0x315)](){const _0x1122b6=_0x9884d2;let _0x16d12b=this[_0x1122b6(0x3c6)][_0x1122b6(0x32f)](_0x3c0330);return(_0x16d12b==null?void 0x0:_0x16d12b[_0x1122b6(0x45c)])??'/universer-api/oidc/authpage';}};_0x324e1c=_0x33ad5b([_0x3b5628(0x0,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)])),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x32b)]))],_0x324e1c);let _0x15f3fe=class extends _0x4b2515[_0x9884d2(0x1cb)]{constructor(_0x18c2f4,_0x3c12ae){const _0x1d893a=_0x9884d2;super(),this['_HTTPService']=_0x18c2f4,this['_configService']=_0x3c12ae,_0x60128a(this,_0x1d893a(0x3d9),!0x1),this[_0x1d893a(0x3a7)]();}[_0x9884d2(0x3a7)](){const _0x387c52=_0x9884d2;let _0x43e5b2=this;this[_0x387c52(0x472)](this[_0x387c52(0x480)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,_0x530da8[_0x387c52(0x2ac)])({'isMatch'(_0x35845e){const _0x2a4838=_0x387c52;var _0x580e8b;if(_0x35845e[_0x2a4838(0x449)]===_0x2a4838(0x2c8)&&(_0x580e8b=_0x35845e[_0x2a4838(0x138)])!=null&&_0x580e8b[_0x2a4838(0x450)]){let {objectID:_0x59a132,objectType:_0x4fbdf1}=_0x35845e['requestParams'][_0x2a4838(0x450)]||{};if(!_0x59a132||_0x4fbdf1===void 0x0)return!0x1;let _0x3c1823=_0x43e5b2['_getAPIPrefixPath']()+'/'+_0x4fbdf1+_0x2a4838(0x2a1)+encodeURIComponent(_0x59a132)+_0x2a4838(0x17b);if(_0x35845e['url']===_0x3c1823)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x530550){const _0x75e5df=_0x387c52;var _0x6bb710;return(_0x6bb710=_0x530550[_0x75e5df(0x138)])==null?void 0x0:_0x6bb710[_0x75e5df(0x450)];},'mergeParamsToRequest'(_0x552eb4,_0x4b2f65){const _0x35eb09=_0x387c52;let _0x2214f0=_0x43e5b2[_0x35eb09(0x133)]()+_0x35eb09(0x183),_0x261b38=_0x552eb4['reduce']((_0x53eb4b,_0x410e19)=>{const _0x115f25=_0x35eb09;let {unitID:_0x70140e,objectID:_0xd6b2c7,objectType:_0x288cfe,actions:_0x3bf78e}=_0x410e19;return _0x53eb4b[_0x70140e]||(_0x53eb4b[_0x70140e]=Object[_0x115f25(0x173)](null)),_0x53eb4b[_0x70140e][_0xd6b2c7]||(_0x53eb4b[_0x70140e][_0xd6b2c7]={'objectID':_0xd6b2c7,'objectType':_0x288cfe,'actions':[]}),_0x53eb4b[_0x70140e][_0xd6b2c7][_0x115f25(0x37a)][_0x115f25(0x42c)](..._0x3bf78e),_0x53eb4b;},Object[_0x35eb09(0x173)](null)),_0x4b07ac=[];for(let _0x94ea31 in _0x261b38)for(let _0x12490f in _0x261b38[_0x94ea31]){let {actions:_0xd732bd,objectType:_0x48eac6}=_0x261b38[_0x94ea31][_0x12490f],_0x45e2f2=[...new Set(_0xd732bd)];_0x4b07ac['push']({'unitID':_0x94ea31,'objectID':_0x12490f,'objectType':_0x48eac6,'actions':_0x45e2f2});}return new _0x530da8['HTTPRequest'](_0x35eb09(0x2c8),_0x2214f0,{'headers':_0x4b2f65[_0x35eb09(0x112)],'withCredentials':_0x4b2f65['withCredentials'],'responseType':_0x4b2f65['responseType'],'body':{'requests':_0x4b07ac}});}},{'distributeResult'(_0x240549,_0x5874b4){let {objectActions:_0x3121b7}=_0x240549;return _0x5874b4['map'](_0x54c3b3=>{const _0x5c1274=_0x328a;let {unitID:_0x10dafb,objectID:_0x5f17ce,actions:_0x2ef637}=_0x54c3b3,_0x5a233c=_0x3121b7[_0x5c1274(0x34a)](_0x1cec5b=>_0x1cec5b[_0x5c1274(0x258)]===_0x10dafb&&_0x1cec5b['objectID']===_0x5f17ce);return{'config':_0x54c3b3,'result':{'actions':_0x2ef637['map'](_0x20042e=>_0x5a233c==null?void 0x0:_0x5a233c[_0x5c1274(0x37a)][_0x5c1274(0x34a)](_0x2587c6=>_0x2587c6['action']===_0x20042e))['filter'](_0x25f8d6=>!!_0x25f8d6),'error':_0x240549['error']}};});}})}));}[_0x9884d2(0x133)](){const _0x4783cc=_0x9884d2;let _0x6049e0=this[_0x4783cc(0x3c6)][_0x4783cc(0x32f)](_0x3c0330);return(_0x6049e0==null?void 0x0:_0x6049e0[_0x4783cc(0x2d7)])??'/universer-api/authz';}async['create'](_0x3bc20f){const _0x529388=_0x9884d2;let _0x166965=this['_getAPIPrefixPath']()+'/'+_0x3bc20f[_0x529388(0x46b)]+_0x529388(0x2dd);return(await this[_0x529388(0x480)][_0x529388(0x31b)](_0x166965,{'body':_0x3bc20f}))['body'][_0x529388(0x475)]||'';}async[_0x9884d2(0x240)](_0x258047){const _0x25f78c=_0x9884d2;let _0x28d150=this[_0x25f78c(0x133)]()+_0x25f78c(0x2cb);return(await this[_0x25f78c(0x480)]['post'](_0x28d150,{'body':_0x258047}))[_0x25f78c(0x450)]['objects'];}async[_0x9884d2(0x3fa)](_0xb88fa5){const _0x580ed2=_0x9884d2;var _0x3ecdf5;let _0x5c3d51=this[_0x580ed2(0x133)]()+'/'+_0xb88fa5['objectType']+_0x580ed2(0x2a1)+encodeURIComponent(_0xb88fa5['objectID']),_0x4c87a1=await this[_0x580ed2(0x480)][_0x580ed2(0x26b)](_0x5c3d51,{'body':_0xb88fa5});if((_0x4c87a1==null||(_0x3ecdf5=_0x4c87a1[_0x580ed2(0x450)])==null||(_0x3ecdf5=_0x3ecdf5[_0x580ed2(0x1b5)])==null?void 0x0:_0x3ecdf5[_0x580ed2(0x3f6)])!==0x1)throw Error(_0x580ed2(0x140));}async['allowed'](_0x365764){const _0x901640=_0x9884d2;let _0x27a3a3=this[_0x901640(0x133)]()+'/'+_0x365764[_0x901640(0x46b)]+_0x901640(0x2a1)+encodeURIComponent(_0x365764['objectID'])+_0x901640(0x17b);return(await this[_0x901640(0x480)][_0x901640(0x31b)](_0x27a3a3,{'body':_0x365764}))[_0x901640(0x450)][_0x901640(0x37a)];}async['batchAllowed'](_0x1744fa){const _0x58ee39=_0x9884d2;let _0x3720d9=this['_getAPIPrefixPath']()+_0x58ee39(0x183);return(await this[_0x58ee39(0x480)]['post'](_0x3720d9,{'body':{'requests':_0x1744fa}}))[_0x58ee39(0x450)][_0x58ee39(0x152)];}async['listRoles'](_0x5ce200){const _0x1d521e=_0x9884d2;let _0x1adbaf=this[_0x1d521e(0x133)]()+'/'+_0x5ce200['objectType']+_0x1d521e(0x438),_0x1c5c94=await this[_0x1d521e(0x480)][_0x1d521e(0x31b)](_0x1adbaf,{'body':_0x5ce200});return{'roles':_0x1c5c94[_0x1d521e(0x450)][_0x1d521e(0x242)],'actions':_0x1c5c94[_0x1d521e(0x450)][_0x1d521e(0x37a)]};}async[_0x9884d2(0x466)](_0x43ca4a){const _0xb2cac9=_0x9884d2;let _0x44fb18=this['_getAPIPrefixPath']()+_0xb2cac9(0x275);await this['_HTTPService'][_0xb2cac9(0x287)](_0x44fb18,{'params':{'collaboratorID':_0x43ca4a[_0xb2cac9(0x394)],'objectID':_0x43ca4a[_0xb2cac9(0x475)],'unitID':_0x43ca4a['unitID']}});}async[_0x9884d2(0x126)](_0x2c7165){const _0x3fab53=_0x9884d2;let _0x3312e9=this['_getAPIPrefixPath']()+_0x3fab53(0x275);await this[_0x3fab53(0x480)]['patch'](_0x3312e9,{'body':_0x2c7165});}async[_0x9884d2(0x256)](_0xcc2c87){const _0x39dae5=_0x9884d2;let _0x406b55=this[_0x39dae5(0x133)]()+_0x39dae5(0x275);await this[_0x39dae5(0x480)][_0x39dae5(0x31b)](_0x406b55,{'body':_0xcc2c87});}async[_0x9884d2(0x38c)](_0x41942b){const _0x47ce56=_0x9884d2;let _0x544439=this[_0x47ce56(0x133)]()+_0x47ce56(0x275),_0x5f138a=await this['_HTTPService'][_0x47ce56(0x2eb)](_0x544439,{'params':{'objectID':_0x41942b[_0x47ce56(0x475)],'unitID':_0x41942b[_0x47ce56(0x258)]}});return this[_0x47ce56(0x245)](_0x5f138a[_0x47ce56(0x450)]['cfgEnableObjInherit']??!0x1),_0x5f138a[_0x47ce56(0x450)][_0x47ce56(0x3ff)];}async[_0x9884d2(0x2b4)](_0x260fcd){const _0x32f597=_0x9884d2;let _0x51d5d8=this[_0x32f597(0x133)]()+'/collaborator';await this[_0x32f597(0x480)][_0x32f597(0x26b)](_0x51d5d8,{'body':_0x260fcd});}[_0x9884d2(0x245)](_0x29e572){this['_cfgEnableObjInherit']=_0x29e572;}['getCfgEnableObjInherit'](){const _0x33815e=_0x9884d2;return this[_0x33815e(0x3d9)];}};_0x15f3fe=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515['Inject'])(_0x530da8['HTTPService'])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['IConfigService']))],_0x15f3fe);function _0x384d25(_0x527497){const _0x5630ff=_0x9884d2;return _0x527497 instanceof Uint8Array||ArrayBuffer['isView'](_0x527497)&&_0x527497[_0x5630ff(0x11a)][_0x5630ff(0x114)]===_0x5630ff(0x487)&&_0x5630ff(0x1ae)in _0x527497&&_0x527497['BYTES_PER_ELEMENT']===0x1;}let _0x5b4ae0=_0x22d729=>_0x22d729?'\x22'+_0x22d729+'\x22\x20':'';function _0x4fb7a8(_0x527d9,_0x8c229c=''){const _0x2e7b1d=_0x9884d2;if(typeof _0x527d9!=_0x2e7b1d(0x266))throw TypeError(_0x5b4ae0(_0x8c229c)+'expected\x20number,\x20got\x20'+typeof _0x527d9);if(!Number[_0x2e7b1d(0x131)](_0x527d9)||_0x527d9<0x0)throw RangeError(_0x5b4ae0(_0x8c229c)+_0x2e7b1d(0x14b)+_0x527d9);return _0x527d9;}function _0x5022ca(_0x1e12f7,_0x3e8cb1,_0x5da82f=''){const _0x31b033=_0x9884d2;if(_0x384d25(_0x1e12f7)&&(_0x3e8cb1===void 0x0||_0x1e12f7[_0x31b033(0x147)]===_0x3e8cb1))return _0x1e12f7;_0x3e8cb1!==void 0x0&&_0x4fb7a8(_0x3e8cb1,_0x31b033(0x147));let _0x121841=_0x384d25(_0x1e12f7),_0xdd3c9f=_0x3e8cb1===void 0x0?'':_0x31b033(0x123)+_0x3e8cb1,_0x4df749=_0x121841?'length='+_0x1e12f7[_0x31b033(0x147)]:_0x31b033(0x332)+typeof _0x1e12f7,_0x479d2c=_0x5b4ae0(_0x5da82f)+_0x31b033(0x381)+_0xdd3c9f+_0x31b033(0x31d)+_0x4df749;throw _0x121841?RangeError(_0x479d2c):TypeError(_0x479d2c);}function _0x199311(_0x5cdce4){const _0x1d6bc3=_0x9884d2;return new Uint32Array(_0x5cdce4[_0x1d6bc3(0x2ab)],_0x5cdce4[_0x1d6bc3(0x28c)],Math[_0x1d6bc3(0x2bd)](_0x5cdce4[_0x1d6bc3(0x37f)]/0x4));}function _0x57dbaa(..._0x3f21e7){const _0x348d63=_0x9884d2;for(let _0xe31dc9=0x0;_0xe31dc9<_0x3f21e7[_0x348d63(0x147)];_0xe31dc9++)_0x3f21e7[_0xe31dc9][_0x348d63(0x249)](0x0);}let _0x129fb4=new Uint8Array(new Uint32Array([0x11223344])['buffer'])[0x0]===0x44;function _0x2d4194(_0x5a9acc){return _0x5a9acc<<0x18&0xff000000|_0x5a9acc<<0x8&0xff0000|_0x5a9acc>>>0x8&0xff00|_0x5a9acc>>>0x18&0xff;}function _0x4dbcec(_0x2dade7){const _0x34df53=_0x9884d2;for(let _0x2f50be=0x0;_0x2f50be<_0x2dade7[_0x34df53(0x147)];_0x2f50be++)_0x2dade7[_0x2f50be]=_0x2d4194(_0x2dade7[_0x2f50be]);return _0x2dade7;}let _0x5f5a67=_0x129fb4?_0x52086a=>_0x52086a:_0x4dbcec;function _0x37b28a(_0x3e0585){const _0x5da1be=_0x9884d2;if(typeof _0x3e0585!=_0x5da1be(0x212))throw TypeError(_0x5da1be(0x168));return new Uint8Array(new TextEncoder()['encode'](_0x3e0585));}function _0x2e1fb6(_0x8ba964,_0xa1e50f){const _0x2f6a45=_0x9884d2;return!_0x8ba964['byteLength']||!_0xa1e50f['byteLength']?!0x1:_0x8ba964[_0x2f6a45(0x2ab)]===_0xa1e50f[_0x2f6a45(0x2ab)]&&_0x8ba964[_0x2f6a45(0x28c)]<_0xa1e50f[_0x2f6a45(0x28c)]+_0xa1e50f[_0x2f6a45(0x37f)]&&_0xa1e50f['byteOffset']<_0x8ba964[_0x2f6a45(0x28c)]+_0x8ba964['byteLength'];}function _0x3920fa(_0x58f3b4,_0x991d25){const _0x28af28=_0x9884d2;if(_0x2e1fb6(_0x58f3b4,_0x991d25)&&_0x58f3b4[_0x28af28(0x28c)]<_0x991d25[_0x28af28(0x28c)])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0x10db65(..._0x3f9026){const _0x3f578c=_0x9884d2;let _0x2be5f8=0x0;for(let _0x53f88f=0x0;_0x53f88f<_0x3f9026[_0x3f578c(0x147)];_0x53f88f++){let _0x3d3122=_0x3f9026[_0x53f88f];_0x5022ca(_0x3d3122),_0x2be5f8+=_0x3d3122[_0x3f578c(0x147)];}let _0x118bd3=new Uint8Array(_0x2be5f8);for(let _0x32075f=0x0,_0x3d22bd=0x0;_0x32075f<_0x3f9026[_0x3f578c(0x147)];_0x32075f++){let _0x4ec53e=_0x3f9026[_0x32075f];_0x118bd3[_0x3f578c(0x41e)](_0x4ec53e,_0x3d22bd),_0x3d22bd+=_0x4ec53e[_0x3f578c(0x147)];}return _0x118bd3;}let _0x22a48f=(_0x4d17ad,_0x5a89e8)=>{const _0x204b69=_0x9884d2;function _0x4788e5(_0x46e618,..._0x1a76df){const _0x3db422=_0x328a;if(_0x5022ca(_0x46e618,void 0x0,_0x3db422(0x365)),_0x4d17ad[_0x3db422(0x335)]!==void 0x0){let _0x5d91c9=_0x1a76df[0x0];_0x5022ca(_0x5d91c9,_0x4d17ad[_0x3db422(0x1c2)]?void 0x0:_0x4d17ad[_0x3db422(0x335)],_0x3db422(0x15b));}let _0x4d6db7=_0x4d17ad[_0x3db422(0x221)],_0x45a823=_0x4d17ad[_0x3db422(0x335)]===void 0x0?0x0:0x1;if(!_0x4d17ad['withAAD']){for(let _0x5058c3=_0x45a823;_0x5058c3<_0x1a76df[_0x3db422(0x147)];_0x5058c3++)if(_0x384d25(_0x1a76df[_0x5058c3]))throw Error(_0x3db422(0x284));}_0x4d17ad[_0x3db422(0x20d)]&&_0x1a76df[_0x45a823]!==void 0x0&&_0x5022ca(_0x1a76df[_0x45a823],void 0x0,'AAD');let _0x44bb78=_0x5a89e8(_0x46e618,..._0x1a76df),_0x35faa0=(_0x39fd85,_0x1560ec)=>{const _0x504c2a=_0x3db422;if(_0x1560ec!==void 0x0){if(_0x39fd85!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x5022ca(_0x1560ec,void 0x0,_0x504c2a(0x1ed));}},_0x7bfdf=!0x1;return{'encrypt'(_0x33b7a9,_0x398b10){const _0x1ac072=_0x3db422;if(_0x7bfdf)throw Error(_0x1ac072(0x2ad));return _0x7bfdf=!0x0,_0x5022ca(_0x33b7a9,void 0x0,'data'),_0x35faa0(_0x44bb78[_0x1ac072(0x391)][_0x1ac072(0x147)],_0x398b10),_0x44bb78[_0x1ac072(0x391)](_0x33b7a9,_0x398b10);},'decrypt'(_0x2482d0,_0x1260d3){const _0x3f9fe5=_0x3db422;if(_0x5022ca(_0x2482d0,void 0x0,_0x3f9fe5(0x1b4)),_0x4d6db7&&_0x2482d0[_0x3f9fe5(0x147)]<_0x4d6db7)throw Error(_0x3f9fe5(0x319)+_0x4d6db7);return _0x35faa0(_0x44bb78[_0x3f9fe5(0x205)]['length'],_0x1260d3),_0x44bb78[_0x3f9fe5(0x205)](_0x2482d0,_0x1260d3);}};}return Object[_0x204b69(0x276)](_0x4788e5,_0x4d17ad),_0x4788e5;};function _0x10294a(_0x6d8277,_0x387d3d,_0x2dbadb=!0x0){const _0x232224=_0x9884d2;if(_0x387d3d===void 0x0)return new Uint8Array(_0x6d8277);if(_0x5022ca(_0x387d3d,_0x6d8277,'output'),_0x2dbadb&&!_0x50253f(_0x387d3d))throw Error(_0x232224(0x227));return _0x387d3d;}function _0x50253f(_0x4dd8cd){const _0x30829b=_0x9884d2;return _0x4dd8cd[_0x30829b(0x28c)]%0x4==0x0;}function _0x2cad28(_0x4b05ad){return Uint8Array['from'](_0x5022ca(_0x4b05ad));}function _0x49b1fc(_0xd25560=0x20){const _0x529d98=_0x9884d2;_0x4fb7a8(_0xd25560,'bytesLength');let _0x4ea7e0=typeof globalThis==_0x529d98(0x26e)?globalThis[_0x529d98(0x3ae)]:null;if(typeof(_0x4ea7e0==null?void 0x0:_0x4ea7e0[_0x529d98(0x1c8)])!=_0x529d98(0x474))throw Error(_0x529d98(0x407));if(_0xd25560>0x10000)throw RangeError(_0x529d98(0x19e)+_0xd25560);return _0x4ea7e0[_0x529d98(0x1c8)](new Uint8Array(_0xd25560));}function _0x3b137f(_0x319d71){const _0x3569a7=_0x9884d2;if(![0x10,0x18,0x20]['includes'](_0x319d71[_0x3569a7(0x147)]))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x319d71[_0x3569a7(0x147)]);}function _0x28c7a1(_0x3ac7e4){return _0x3ac7e4<<0x1^0x11b&-(_0x3ac7e4>>0x7);}function _0x406fc2(_0x463f6b,_0x5bc642){let _0x2449c8=0x0;for(;_0x5bc642>0x0;_0x5bc642>>=0x1)_0x2449c8^=_0x463f6b&-(_0x5bc642&0x1),_0x463f6b=_0x28c7a1(_0x463f6b);return _0x2449c8;}let _0xf00a23=((()=>{let _0x18cf91=new Uint8Array(0x100);for(let _0x5965f8=0x0,_0x1bf7b6=0x1;_0x5965f8<0x100;_0x5965f8++,_0x1bf7b6^=_0x28c7a1(_0x1bf7b6))_0x18cf91[_0x5965f8]=_0x1bf7b6;let _0x96eaa4=new Uint8Array(0x100);_0x96eaa4[0x0]=0x63;for(let _0x3a8287=0x0;_0x3a8287<0xff;_0x3a8287++){let _0x505896=_0x18cf91[0xff-_0x3a8287];_0x505896|=_0x505896<<0x8,_0x96eaa4[_0x18cf91[_0x3a8287]]=(_0x505896^_0x505896>>0x4^_0x505896>>0x5^_0x505896>>0x6^_0x505896>>0x7^0x63)&0xff;}return _0x57dbaa(_0x18cf91),_0x96eaa4;})()),_0x2984fc=_0xf00a23[_0x9884d2(0x333)]((_0x389279,_0x59f16f)=>_0xf00a23[_0x9884d2(0x172)](_0x59f16f)),_0x2047a0=_0x3848d0=>_0x3848d0<<0x18|_0x3848d0>>>0x8,_0x5f4f0e=_0x1790ea=>_0x1790ea<<0x8|_0x1790ea>>>0x18;function _0x1a4579(_0x1a1949,_0x5486f0){const _0x4e0f68=_0x9884d2;if(_0x1a1949[_0x4e0f68(0x147)]!==0x100)throw Error(_0x4e0f68(0x368));let _0x2dc52a=new Uint32Array(0x100)[_0x4e0f68(0x333)]((_0x3f8c9a,_0x537f1b)=>_0x5486f0(_0x1a1949[_0x537f1b])),_0x487d14=_0x2dc52a['map'](_0x5f4f0e),_0x562ffd=_0x487d14[_0x4e0f68(0x333)](_0x5f4f0e),_0x17dfd6=_0x562ffd['map'](_0x5f4f0e),_0x396ac6=new Uint32Array(0x10000),_0x16227a=new Uint32Array(0x10000),_0x489ba9=new Uint16Array(0x10000);for(let _0x1f9126=0x0;_0x1f9126<0x100;_0x1f9126++)for(let _0x116141=0x0;_0x116141<0x100;_0x116141++){let _0x95d21a=_0x1f9126*0x100+_0x116141;_0x396ac6[_0x95d21a]=_0x2dc52a[_0x1f9126]^_0x487d14[_0x116141],_0x16227a[_0x95d21a]=_0x562ffd[_0x1f9126]^_0x17dfd6[_0x116141],_0x489ba9[_0x95d21a]=_0x1a1949[_0x1f9126]<<0x8|_0x1a1949[_0x116141];}return{'sbox':_0x1a1949,'sbox2':_0x489ba9,'T0':_0x2dc52a,'T1':_0x487d14,'T2':_0x562ffd,'T3':_0x17dfd6,'T01':_0x396ac6,'T23':_0x16227a};}let _0xd1fae5=_0x1a4579(_0xf00a23,_0x37cdd4=>_0x406fc2(_0x37cdd4,0x3)<<0x18|_0x37cdd4<<0x10|_0x37cdd4<<0x8|_0x406fc2(_0x37cdd4,0x2)),_0x38ea3f=_0x1a4579(_0x2984fc,_0x35dd7e=>_0x406fc2(_0x35dd7e,0xb)<<0x18|_0x406fc2(_0x35dd7e,0xd)<<0x10|_0x406fc2(_0x35dd7e,0x9)<<0x8|_0x406fc2(_0x35dd7e,0xe)),_0x123c1d=((()=>{let _0xc39ceb=new Uint8Array(0x10);for(let _0x38c0da=0x0,_0x51f38f=0x1;_0x38c0da<0x10;_0x38c0da++,_0x51f38f=_0x28c7a1(_0x51f38f))_0xc39ceb[_0x38c0da]=_0x51f38f;return _0xc39ceb;})());function _0x4362e7(_0x565fb5){const _0x4f3c96=_0x9884d2;_0x5022ca(_0x565fb5);let _0x4c8b29=_0x565fb5['length'];_0x3b137f(_0x565fb5);let {sbox2:_0x7ae62}=_0xd1fae5,_0x15010a=[];(!_0x129fb4||!_0x50253f(_0x565fb5))&&_0x15010a[_0x4f3c96(0x42c)](_0x565fb5=_0x2cad28(_0x565fb5));let _0x2bccd9=_0x5f5a67(_0x199311(_0x565fb5)),_0x4ced2=_0x2bccd9['length'],_0x1d35c4=_0x7de057=>_0x4e69e5(_0x7ae62,_0x7de057,_0x7de057,_0x7de057,_0x7de057),_0x1e9602=new Uint32Array(_0x4c8b29+0x1c);_0x1e9602[_0x4f3c96(0x41e)](_0x2bccd9);for(let _0x27cd9f=_0x4ced2;_0x27cd9f<_0x1e9602[_0x4f3c96(0x147)];_0x27cd9f++){let _0x208e86=_0x1e9602[_0x27cd9f-0x1];_0x27cd9f%_0x4ced2===0x0?_0x208e86=_0x1d35c4(_0x2047a0(_0x208e86))^_0x123c1d[_0x27cd9f/_0x4ced2-0x1]:_0x4ced2>0x6&&_0x27cd9f%_0x4ced2===0x4&&(_0x208e86=_0x1d35c4(_0x208e86)),_0x1e9602[_0x27cd9f]=_0x1e9602[_0x27cd9f-_0x4ced2]^_0x208e86;}return _0x57dbaa(..._0x15010a),_0x1e9602;}function _0x1f98ed(_0x5efc76){let _0x352827=_0x4362e7(_0x5efc76),_0x417a56=_0x352827['slice'](),_0x5b7ddb=_0x352827['length'],{sbox2:_0x5ae301}=_0xd1fae5,{T0:_0x3a6ebd,T1:_0x26d5b9,T2:_0x1d85b4,T3:_0x4483df}=_0x38ea3f;for(let _0x2068f3=0x0;_0x2068f3<_0x5b7ddb;_0x2068f3+=0x4)for(let _0x452e31=0x0;_0x452e31<0x4;_0x452e31++)_0x417a56[_0x2068f3+_0x452e31]=_0x352827[_0x5b7ddb-_0x2068f3-0x4+_0x452e31];_0x57dbaa(_0x352827);for(let _0x13543f=0x4;_0x13543f<_0x5b7ddb-0x4;_0x13543f++){let _0x6d214c=_0x417a56[_0x13543f],_0x2d8517=_0x4e69e5(_0x5ae301,_0x6d214c,_0x6d214c,_0x6d214c,_0x6d214c);_0x417a56[_0x13543f]=_0x3a6ebd[_0x2d8517&0xff]^_0x26d5b9[_0x2d8517>>>0x8&0xff]^_0x1d85b4[_0x2d8517>>>0x10&0xff]^_0x4483df[_0x2d8517>>>0x18];}return _0x417a56;}function _0x4d7535(_0x7a615a,_0x55cafd,_0x1f1e73,_0x3fb21b,_0x4b917c,_0x592921){return _0x7a615a[_0x1f1e73<<0x8&0xff00|_0x3fb21b>>>0x8&0xff]^_0x55cafd[_0x4b917c>>>0x8&0xff00|_0x592921>>>0x18&0xff];}function _0x4e69e5(_0x4bd7cb,_0x586108,_0x4f743f,_0x2cce92,_0x151f3f){return _0x4bd7cb[_0x586108&0xff|_0x4f743f&0xff00]|_0x4bd7cb[_0x2cce92>>>0x10&0xff|_0x151f3f>>>0x10&0xff00]<<0x10;}function _0x51944f(_0x37b714,_0xc530b1,_0x158fdc,_0xaf1e79,_0x4a9671){const _0x2079a2=_0x9884d2;let {sbox2:_0x5888b1,T01:_0x336c48,T23:_0x3e6256}=_0xd1fae5,_0x13e475=0x0;_0xc530b1^=_0x37b714[_0x13e475++],_0x158fdc^=_0x37b714[_0x13e475++],_0xaf1e79^=_0x37b714[_0x13e475++],_0x4a9671^=_0x37b714[_0x13e475++];let _0x9fb9ea=_0x37b714[_0x2079a2(0x147)]/0x4-0x2;for(let _0x4f6c2a=0x0;_0x4f6c2a<_0x9fb9ea;_0x4f6c2a++){let _0x185aff=_0x37b714[_0x13e475++]^_0x4d7535(_0x336c48,_0x3e6256,_0xc530b1,_0x158fdc,_0xaf1e79,_0x4a9671),_0x4604c4=_0x37b714[_0x13e475++]^_0x4d7535(_0x336c48,_0x3e6256,_0x158fdc,_0xaf1e79,_0x4a9671,_0xc530b1),_0x891d18=_0x37b714[_0x13e475++]^_0x4d7535(_0x336c48,_0x3e6256,_0xaf1e79,_0x4a9671,_0xc530b1,_0x158fdc),_0x103678=_0x37b714[_0x13e475++]^_0x4d7535(_0x336c48,_0x3e6256,_0x4a9671,_0xc530b1,_0x158fdc,_0xaf1e79);_0xc530b1=_0x185aff,_0x158fdc=_0x4604c4,_0xaf1e79=_0x891d18,_0x4a9671=_0x103678;}return{'s0':_0x37b714[_0x13e475++]^_0x4e69e5(_0x5888b1,_0xc530b1,_0x158fdc,_0xaf1e79,_0x4a9671),'s1':_0x37b714[_0x13e475++]^_0x4e69e5(_0x5888b1,_0x158fdc,_0xaf1e79,_0x4a9671,_0xc530b1),'s2':_0x37b714[_0x13e475++]^_0x4e69e5(_0x5888b1,_0xaf1e79,_0x4a9671,_0xc530b1,_0x158fdc),'s3':_0x37b714[_0x13e475++]^_0x4e69e5(_0x5888b1,_0x4a9671,_0xc530b1,_0x158fdc,_0xaf1e79)};}function _0x491d38(_0x1dbdbb,_0x2d15b8,_0x539442,_0x427711,_0x500a10){const _0x4e00cf=_0x9884d2;let {sbox2:_0x47de4e,T01:_0x391c1d,T23:_0x4de135}=_0x38ea3f,_0x5a21fc=0x0;_0x2d15b8^=_0x1dbdbb[_0x5a21fc++],_0x539442^=_0x1dbdbb[_0x5a21fc++],_0x427711^=_0x1dbdbb[_0x5a21fc++],_0x500a10^=_0x1dbdbb[_0x5a21fc++];let _0x1bc109=_0x1dbdbb[_0x4e00cf(0x147)]/0x4-0x2;for(let _0x456665=0x0;_0x456665<_0x1bc109;_0x456665++){let _0x4ebcd8=_0x1dbdbb[_0x5a21fc++]^_0x4d7535(_0x391c1d,_0x4de135,_0x2d15b8,_0x500a10,_0x427711,_0x539442),_0x48b991=_0x1dbdbb[_0x5a21fc++]^_0x4d7535(_0x391c1d,_0x4de135,_0x539442,_0x2d15b8,_0x500a10,_0x427711),_0x45d548=_0x1dbdbb[_0x5a21fc++]^_0x4d7535(_0x391c1d,_0x4de135,_0x427711,_0x539442,_0x2d15b8,_0x500a10),_0x51a9a6=_0x1dbdbb[_0x5a21fc++]^_0x4d7535(_0x391c1d,_0x4de135,_0x500a10,_0x427711,_0x539442,_0x2d15b8);_0x2d15b8=_0x4ebcd8,_0x539442=_0x48b991,_0x427711=_0x45d548,_0x500a10=_0x51a9a6;}return{'s0':_0x1dbdbb[_0x5a21fc++]^_0x4e69e5(_0x47de4e,_0x2d15b8,_0x500a10,_0x427711,_0x539442),'s1':_0x1dbdbb[_0x5a21fc++]^_0x4e69e5(_0x47de4e,_0x539442,_0x2d15b8,_0x500a10,_0x427711),'s2':_0x1dbdbb[_0x5a21fc++]^_0x4e69e5(_0x47de4e,_0x427711,_0x539442,_0x2d15b8,_0x500a10),'s3':_0x1dbdbb[_0x5a21fc++]^_0x4e69e5(_0x47de4e,_0x500a10,_0x427711,_0x539442,_0x2d15b8)};}function _0x2f8f97(_0x29b2e1,_0x206e6c){const _0x1e551b=_0x9884d2;if(_0x5022ca(_0x29b2e1),_0x29b2e1['length']%0x10!=0x0)throw Error(_0x1e551b(0x385));_0x206e6c!==void 0x0&&(_0x10294a(_0x29b2e1[_0x1e551b(0x147)],_0x206e6c),_0x3920fa(_0x29b2e1,_0x206e6c));}function _0x1b8a16(_0x26bf17,_0x8ed2c,_0x444115){const _0x364610=_0x9884d2;_0x5022ca(_0x26bf17);let _0x500e90=_0x26bf17[_0x364610(0x147)],_0x15f519=_0x500e90%0x10;if(!_0x8ed2c&&_0x15f519!==0x0)throw Error(_0x364610(0x1e8));if(_0x8ed2c){let _0x106079=0x10-_0x15f519;_0x106079||=0x10,_0x500e90+=_0x106079;}return _0x444115!==void 0x0&&(_0x10294a(_0x500e90,_0x444115),_0x3920fa(_0x26bf17,_0x444115)),_0x500e90;}function _0x2d8cc4(_0x37faaa,_0x2a3208,_0x32841e){_0x32841e===void 0x0&&(_0x32841e=new Uint8Array(_0x2a3208)),(!_0x129fb4||!_0x50253f(_0x37faaa))&&(_0x37faaa=_0x2cad28(_0x37faaa));let _0x2a637b=_0x199311(_0x32841e);return{'b':_0x37faaa,'o':_0x2a637b,'out':_0x32841e};}function _0x1886b6(_0x5a11ce,_0x452e43){const _0x846b2a=_0x9884d2;if(!_0x452e43)return _0x5a11ce;let _0x4a081f=_0x5a11ce[_0x846b2a(0x147)];if(_0x4a081f===0x0)throw Error(_0x846b2a(0x2c6));let _0x2c01b3=_0x5a11ce[_0x4a081f-0x1],_0x4fe5fc=0x1;_0x4fe5fc&=_0x2c01b3-0x1>>>0x1f^0x1,_0x4fe5fc&=0x10-_0x2c01b3>>>0x1f^0x1;for(let _0x883c31=0x0;_0x883c31<0x10;_0x883c31++){let _0x1dbd53=_0x883c31-_0x2c01b3>>>0x1f,_0x5bc462=+((_0x5a11ce[_0x4a081f-0x1-_0x883c31]^_0x2c01b3)===0x0);_0x4fe5fc&=_0x5bc462|_0x1dbd53^0x1;}if(!_0x4fe5fc)throw Error(_0x846b2a(0x372));return _0x5a11ce[_0x846b2a(0x2af)](0x0,_0x4a081f-_0x2c01b3);}function _0x31d810(_0x49258c){const _0x18be91=_0x9884d2;let _0x34b36b=new Uint8Array(0x10),_0x28ed17=_0x199311(_0x34b36b);_0x34b36b[_0x18be91(0x41e)](_0x49258c);let _0x586cea=0x10-_0x49258c['length'];for(let _0x1cbb4e=0x10-_0x586cea;_0x1cbb4e<0x10;_0x1cbb4e++)_0x34b36b[_0x1cbb4e]=_0x586cea;return _0x28ed17;}let _0x3222fd=_0x22a48f({'blockSize':0x10,'nonceLength':0x10},function(_0x30bf1a,_0x4a66e9,_0x3d41c6={}){const _0x3a8a1d=_0x9884d2;let _0x279fd8=!_0x3d41c6[_0x3a8a1d(0x257)];return{'encrypt'(_0x51c26b,_0xd406c8){const _0x1915cb=_0x3a8a1d;let _0x48b13d=_0x1b8a16(_0x51c26b,_0x279fd8,_0xd406c8),_0x37a532=_0x4362e7(_0x30bf1a),{b:_0x11790b,o:_0x5a64a0,out:_0x102252}=_0x2d8cc4(_0x51c26b,_0x48b13d,_0xd406c8),_0x5baa4d=_0x199311(_0x11790b);_0x5f5a67(_0x5baa4d);let _0x25e57b=_0x4a66e9,_0x1c68ea=[_0x37a532];(!_0x129fb4||!_0x50253f(_0x25e57b))&&_0x1c68ea[_0x1915cb(0x42c)](_0x25e57b=_0x2cad28(_0x25e57b));let _0x3a5880=_0x199311(_0x25e57b);_0x5f5a67(_0x3a5880);let _0x2b0876=_0x3a5880[0x0],_0x2dda49=_0x3a5880[0x1],_0x55c3c3=_0x3a5880[0x2],_0x15a056=_0x3a5880[0x3],_0x259aba=0x0;for(;_0x259aba+0x4<=_0x5baa4d['length'];)_0x2b0876^=_0x5baa4d[_0x259aba+0x0],_0x2dda49^=_0x5baa4d[_0x259aba+0x1],_0x55c3c3^=_0x5baa4d[_0x259aba+0x2],_0x15a056^=_0x5baa4d[_0x259aba+0x3],{s0:_0x2b0876,s1:_0x2dda49,s2:_0x55c3c3,s3:_0x15a056}=_0x51944f(_0x37a532,_0x2b0876,_0x2dda49,_0x55c3c3,_0x15a056),_0x5a64a0[_0x259aba++]=_0x2b0876,_0x5a64a0[_0x259aba++]=_0x2dda49,_0x5a64a0[_0x259aba++]=_0x55c3c3,_0x5a64a0[_0x259aba++]=_0x15a056;if(_0x279fd8){let _0x287963=_0x31d810(_0x51c26b[_0x1915cb(0x2af)](_0x259aba*0x4));_0x5f5a67(_0x287963),_0x2b0876^=_0x287963[0x0],_0x2dda49^=_0x287963[0x1],_0x55c3c3^=_0x287963[0x2],_0x15a056^=_0x287963[0x3],{s0:_0x2b0876,s1:_0x2dda49,s2:_0x55c3c3,s3:_0x15a056}=_0x51944f(_0x37a532,_0x2b0876,_0x2dda49,_0x55c3c3,_0x15a056),_0x5a64a0[_0x259aba++]=_0x2b0876,_0x5a64a0[_0x259aba++]=_0x2dda49,_0x5a64a0[_0x259aba++]=_0x55c3c3,_0x5a64a0[_0x259aba++]=_0x15a056,_0x57dbaa(_0x287963);}return _0x5f5a67(_0x5a64a0),_0x57dbaa(..._0x1c68ea),_0x11790b!==_0x51c26b&&_0x57dbaa(_0x11790b),_0x102252;},'decrypt'(_0x19d969,_0x2d94bf){const _0x3fb934=_0x3a8a1d;_0x2f8f97(_0x19d969,_0x2d94bf);let _0x4cdfa3=_0x1f98ed(_0x30bf1a);_0x2d94bf===void 0x0&&(_0x2d94bf=new Uint8Array(_0x19d969['length']));let _0x48d5af=_0x4a66e9,_0x1f7542=[_0x4cdfa3];(!_0x129fb4||!_0x50253f(_0x48d5af))&&_0x1f7542[_0x3fb934(0x42c)](_0x48d5af=_0x2cad28(_0x48d5af));let _0x54d23f=_0x199311(_0x48d5af);_0x5f5a67(_0x54d23f),(!_0x129fb4||!_0x50253f(_0x19d969))&&_0x1f7542[_0x3fb934(0x42c)](_0x19d969=_0x2cad28(_0x19d969));let _0x301998=_0x199311(_0x19d969),_0x21b196=_0x199311(_0x2d94bf);_0x5f5a67(_0x301998);let _0x176189=_0x54d23f[0x0],_0x37f3f7=_0x54d23f[0x1],_0x3f201c=_0x54d23f[0x2],_0x4b3390=_0x54d23f[0x3];for(let _0x391a18=0x0;_0x391a18+0x4<=_0x301998[_0x3fb934(0x147)];){let _0x85bf6=_0x176189,_0x1ef441=_0x37f3f7,_0xdbf05d=_0x3f201c,_0x324356=_0x4b3390;_0x176189=_0x301998[_0x391a18+0x0],_0x37f3f7=_0x301998[_0x391a18+0x1],_0x3f201c=_0x301998[_0x391a18+0x2],_0x4b3390=_0x301998[_0x391a18+0x3];let {s0:_0x2638a7,s1:_0x542288,s2:_0x3efa7a,s3:_0x5e05fb}=_0x491d38(_0x4cdfa3,_0x176189,_0x37f3f7,_0x3f201c,_0x4b3390);_0x21b196[_0x391a18++]=_0x2638a7^_0x85bf6,_0x21b196[_0x391a18++]=_0x542288^_0x1ef441,_0x21b196[_0x391a18++]=_0x3efa7a^_0xdbf05d,_0x21b196[_0x391a18++]=_0x5e05fb^_0x324356;}return _0x5f5a67(_0x21b196),_0x57dbaa(..._0x1f7542),_0x1886b6(_0x2d94bf,_0x279fd8);}};});function _0x3359ac(_0x52b4f0){const _0x4eda45=_0x9884d2;let _0x29cc9a=atob(_0x52b4f0),_0x270383=new Uint8Array(_0x29cc9a['length']);for(let _0xa9e425=0x0;_0xa9e425<_0x29cc9a[_0x4eda45(0x147)];_0xa9e425++)_0x270383[_0xa9e425]=_0x29cc9a[_0x4eda45(0x3b6)](_0xa9e425);return _0x270383;}function _0x1a34fd(_0x5ec56c){const _0x1f8cfc=_0x9884d2;let _0x3affb4='';for(let _0x248148=0x0;_0x248148<_0x5ec56c[_0x1f8cfc(0x147)];_0x248148++)_0x3affb4+=String[_0x1f8cfc(0x361)](_0x5ec56c[_0x248148]);return btoa(_0x3affb4);}function _0x1aa085(_0x1f823c,_0x473214){let _0x27f66f=_0x3359ac(_0x473214),_0x149dd0=_0x49b1fc(0x10);return _0x1a34fd(_0x10db65(_0x149dd0,_0x3222fd(_0x27f66f,_0x149dd0)['encrypt'](_0x37b28a(_0x1f823c))));}function _0x8ac433(){const _0x2879d8=_0x9884d2;let _0x42be0b=(0x0,_0x3ed42b[_0x2879d8(0x151)])()[_0x2879d8(0x2f1)];if(typeof window<'u'&&window[_0x2879d8(0x2b2)]!==void 0x0&&_0x42be0b){let _0x21c9cb={'time':Math['floor'](Date[_0x2879d8(0x17d)]()/0x3e8),'domain':location[_0x2879d8(0x217)]};return _0x1aa085(JSON['stringify'](_0x21c9cb),_0x42be0b);}}let _0x3796aa=class{constructor(_0x1212a2){const _0x5d574a=_0x9884d2;this[_0x5d574a(0x1d0)]=_0x1212a2,this[_0x5d574a(0x11d)]();}[_0x9884d2(0x11d)](){const _0x416b5e=_0x9884d2;this[_0x416b5e(0x1d0)]['registerHTTPInterceptor']({'interceptor':(_0x23cc69,_0x4042e3)=>{const _0x3618db=_0x416b5e;let _0x4ec9ef=_0x8ac433();return _0x4ec9ef&&_0x23cc69[_0x3618db(0x112)][_0x3618db(0x41e)](_0x3618db(0x303),_0x4ec9ef),_0x4042e3(_0x23cc69);}});}};_0x3796aa=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)]))],_0x3796aa);let _0x125829=class extends _0x4b2515[_0x9884d2(0x190)]{constructor(_0x43d198,_0x5c4a24,_0x38c38d){const _0x9e81bf=_0x9884d2;super(),this[_0x9e81bf(0x344)]=_0x43d198,this[_0x9e81bf(0x403)]=_0x5c4a24,this[_0x9e81bf(0x323)]=_0x38c38d,_0x60128a(this,_0x9e81bf(0x342),new _0xccd21e['BehaviorSubject'](null)),_0x60128a(this,_0x9e81bf(0x412),new _0xccd21e[(_0x9e81bf(0x200))]()),_0x60128a(this,'unitInfo$',this[_0x9e81bf(0x342)][_0x9e81bf(0x43c)]()),_0x60128a(this,_0x9e81bf(0x347),this['_unitLoaded$'][_0x9e81bf(0x43c)]());}[_0x9884d2(0x314)](){const _0x540ebb=_0x9884d2;super[_0x540ebb(0x314)](),this[_0x540ebb(0x412)][_0x540ebb(0x41f)](),this['_unitInfo$'][_0x540ebb(0x41f)]();}async[_0x9884d2(0x21e)](_0x24904d,_0x3ea8c5,_0x232b8f,_0x348b4c){const _0x9c475f=_0x9884d2;this[_0x9c475f(0x342)][_0x9c475f(0x17e)]({'unitId':_0x24904d,'type':_0x3ea8c5,'subUnitId':_0x348b4c});let _0x114f39=null;switch(_0x3ea8c5){case _0x4b2515[_0x9c475f(0x223)]['UNIVER_SHEET']:_0x114f39=await this[_0x9c475f(0x403)][_0x9c475f(0x134)](_0x24904d,_0x232b8f,void 0x0,{'initialSubUnitId':_0x348b4c});break;case _0x4b2515[_0x9c475f(0x223)][_0x9c475f(0x10f)]:_0x114f39=await this[_0x9c475f(0x403)][_0x9c475f(0x373)](_0x24904d,_0x232b8f);break;case _0x4b2515['UniverInstanceType'][_0x9c475f(0x281)]:_0x114f39=await this[_0x9c475f(0x403)][_0x9c475f(0x28e)](_0x24904d,_0x232b8f);break;case _0x4b2515['UniverInstanceType'][_0x9c475f(0x339)]:_0x114f39=await this['_snapshotService'][_0x9c475f(0x194)](_0x24904d,_0x232b8f);break;case _0x4b2515[_0x9c475f(0x223)][_0x9c475f(0x267)]:_0x114f39=await this['_snapshotService'][_0x9c475f(0x273)](_0x24904d,_0x232b8f);break;case _0x4b2515[_0x9c475f(0x223)][_0x9c475f(0x1b9)]:_0x114f39=await this[_0x9c475f(0x403)]['loadPdf'](_0x24904d,_0x232b8f);break;default:this[_0x9c475f(0x344)][_0x9c475f(0x1b5)]('[DataLoaderService]','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');}return _0x114f39&&this[_0x9c475f(0x412)]['next'](_0x114f39),_0x114f39;}async[_0x9884d2(0x325)](_0x32bdeb,_0x46b11e,_0x3403aa){const _0x131074=_0x9884d2;var _0x1a7b7c;this[_0x131074(0x342)]['next']({'unitId':_0x32bdeb,'type':_0x46b11e,'subUnitId':_0x3403aa});let _0x3ac2c4=0x0,_0x30198e=await((_0x1a7b7c=this[_0x131074(0x323)])==null?void 0x0:_0x1a7b7c['loadOfflineData'](_0x32bdeb));return _0x30198e&&(_0x30198e['awaitingChangeset']||_0x30198e[_0x131074(0x25c)]['length']!==0x0)&&(_0x3ac2c4=_0x30198e[_0x131074(0x317)]),_0x3ac2c4===0x0&&this[_0x131074(0x344)]['debug'](_0x131074(0x27f),_0x131074(0x30a)),this['loadUnitOfRevision'](_0x32bdeb,_0x46b11e,_0x3ac2c4,_0x3403aa);}};_0x125829=_0x33ad5b([_0x3b5628(0x0,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x1,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x15e)])),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x125829);let _0xd196db=class{constructor(_0x4cb106,_0x3dcf86,_0x1fe643){const _0x47439e=_0x9884d2;this[_0x47439e(0x1d0)]=_0x4cb106,this[_0x47439e(0x3c6)]=_0x3dcf86,this['_univerInstanceService']=_0x1fe643,_0x60128a(this,'_waitCount',0x0),_0x60128a(this,_0x47439e(0x3b9),new _0xccd21e[(_0x47439e(0x200))]()),_0x60128a(this,_0x47439e(0x2d1),this[_0x47439e(0x3b9)]),_0x60128a(this,_0x47439e(0x2a2),new Map());}[_0x9884d2(0x435)](_0x5352af){const _0x29fe70=_0x9884d2;this[_0x29fe70(0x222)]=_0x5352af,this[_0x29fe70(0x3b9)][_0x29fe70(0x17e)](_0x5352af);}[_0x9884d2(0x1bb)](_0x2e40a6,_0x8bedba){const _0x4a4941=_0x9884d2;if(_0x8bedba===_0x4b2515['ImageSourceType'][_0x4a4941(0x2ae)]){let _0x4c50b4=new Image();return _0x4c50b4[_0x4a4941(0x3ce)]=_0x2e40a6,_0x4c50b4;}return this['_imageSourceCache']['get'](_0x2e40a6);}[_0x9884d2(0x2f9)](_0x1bc409,_0x80df13,_0x25adf9){const _0x1ac03d=_0x9884d2;_0x80df13!==_0x4b2515[_0x1ac03d(0x3fe)][_0x1ac03d(0x2ae)]&&_0x25adf9!=null&&this[_0x1ac03d(0x2a2)][_0x1ac03d(0x41e)](_0x1bc409,_0x25adf9);}async['getImage'](_0x9e27a0){const _0x500369=_0x9884d2;try{let _0x23fbc8=this[_0x500369(0x40e)](this[_0x500369(0x322)](),''+_0x9e27a0),_0x31dd26=(await this[_0x500369(0x1d0)][_0x500369(0x2eb)](_0x23fbc8))[_0x500369(0x450)];if(_0x31dd26[_0x500369(0x1b5)]&&_0x31dd26['error'][_0x500369(0x3f6)]===_0x349630[_0x500369(0x328)]['OK']){let _0x50db3c=(0x0,_0x4b2515[_0x500369(0x302)])(_0x31dd26[_0x500369(0x424)],this['_getDownloadEndpointURL']());return Promise[_0x500369(0x382)](_0x50db3c);}return Promise['reject'](_0x31dd26['error']);}catch(_0x33eaa9){return Promise[_0x500369(0x1e9)](_0x33eaa9);}}async['saveImage'](_0x572bc5){const _0x48290d=_0x9884d2;let _0x5d33b5='';if(!_0x443efc[_0x48290d(0x210)][_0x48290d(0x473)](_0x572bc5[_0x48290d(0x415)]))return this['_decreaseWaiting'](),Promise[_0x48290d(0x1e9)](Error(_0x4b2515[_0x48290d(0x12e)]['ERROR_IMAGE_TYPE']));if(_0x572bc5[_0x48290d(0x442)]>(0x0,_0x443efc['getDrawingImageAllowSize'])())return this[_0x48290d(0x1ab)](),Promise[_0x48290d(0x1e9)](Error(_0x4b2515['ImageUploadStatusType'][_0x48290d(0x34d)]));try{let _0x36e749=new FormData();_0x36e749[_0x48290d(0x422)](_0x48290d(0x23e),_0x572bc5);let _0x1c0d08=this[_0x48290d(0x118)]['getFocusedUnit'](),_0x5554e4=_0x1c0d08==null?void 0x0:_0x1c0d08[_0x48290d(0x413)]();if(!_0x5554e4)throw Error('unitId\x20is\x20not\x20found');let _0x1727b9=this[_0x48290d(0x264)]()+_0x48290d(0x295)+_0x572bc5['size'][_0x48290d(0x353)]()+_0x48290d(0x408)+_0x349630[_0x48290d(0x3a6)][_0x48290d(0x14c)]+_0x48290d(0x2b3)+encodeURIComponent(_0x5554e4),_0x1f6874={'body':_0x36e749},_0x4fef35=(await this[_0x48290d(0x1d0)][_0x48290d(0x31b)](_0x1727b9,_0x1f6874))[_0x48290d(0x450)];if(typeof _0x4fef35[_0x48290d(0x414)]!=_0x48290d(0x212))return this[_0x48290d(0x1ab)](),Promise[_0x48290d(0x1e9)](Error(_0x4b2515['ImageUploadStatusType']['ERROR_IMAGE']));_0x5d33b5=_0x4fef35[_0x48290d(0x414)];}catch{return this[_0x48290d(0x1ab)](),Promise[_0x48290d(0x1e9)](Error(_0x4b2515[_0x48290d(0x12e)][_0x48290d(0x2b0)]));}return new Promise((_0x54c188,_0x8d644c)=>{const _0x492b67=_0x48290d;let _0x180dd9=new FileReader();_0x180dd9[_0x492b67(0x461)](_0x572bc5),_0x180dd9[_0x492b67(0x2ec)]=_0x380732=>{const _0x5c68a3=_0x492b67;var _0x524f8c;let _0x489fac=(_0x524f8c=_0x380732[_0x5c68a3(0x479)])==null?void 0x0:_0x524f8c[_0x5c68a3(0x312)];if(_0x489fac==null){this[_0x5c68a3(0x1ab)](),_0x8d644c(Error(_0x4b2515[_0x5c68a3(0x12e)][_0x5c68a3(0x2b0)]));return;}_0x54c188({'imageId':(0x0,_0x4b2515[_0x5c68a3(0x12d)])(0x6),'imageSourceType':_0x4b2515[_0x5c68a3(0x3fe)][_0x5c68a3(0x46c)],'source':_0x5d33b5,'base64Cache':_0x489fac,'status':_0x4b2515['ImageUploadStatusType'][_0x5c68a3(0x3b1)]}),this['_decreaseWaiting']();};});}[_0x9884d2(0x264)](){const _0x456b94=_0x9884d2;let _0x4f3351=this[_0x456b94(0x3c6)][_0x456b94(0x32f)](_0x3c0330);return(_0x4f3351==null?void 0x0:_0x4f3351['uploadFileServerUrl'])??_0x456b94(0x42f);}['_getSignURL'](){const _0x5af503=_0x9884d2;let _0x26a074=this['_configService'][_0x5af503(0x32f)](_0x3c0330);return(_0x26a074==null?void 0x0:_0x26a074[_0x5af503(0x218)])??_0x5af503(0x202);}[_0x9884d2(0x337)](){const _0x411e20=_0x9884d2;let _0x37f85b=this[_0x411e20(0x3c6)][_0x411e20(0x32f)](_0x3c0330);return(_0x37f85b==null?void 0x0:_0x37f85b[_0x411e20(0x47d)])??location[_0x411e20(0x142)];}['_replaceFileID'](_0x540b48,_0x21c618){const _0x559814=_0x9884d2;return _0x540b48[_0x559814(0x3b0)](_0x559814(0x2e9),_0x21c618);}[_0x9884d2(0x1ab)](){const _0xb46e5=_0x9884d2;--this[_0xb46e5(0x222)],this['_change$'][_0xb46e5(0x17e)](this[_0xb46e5(0x222)]);}};_0xd196db=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515['Inject'])(_0x530da8['HTTPService'])),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x405)]))],_0xd196db);let _0x4ca05f=class{constructor(_0x2f7ebd,_0x3ee934){const _0x2c600e=_0x9884d2;this[_0x2c600e(0x3c6)]=_0x2f7ebd,this[_0x2c600e(0x480)]=_0x3ee934;}[_0x9884d2(0x133)](){const _0x521b89=_0x9884d2;let _0x52dfe1=this[_0x521b89(0x3c6)][_0x521b89(0x32f)](_0x3c0330);return(_0x52dfe1==null?void 0x0:_0x52dfe1[_0x521b89(0x2d7)])??'/universer-api/authz';}async[_0x9884d2(0x240)](_0x3e54a5){const _0x69916f=_0x9884d2;let _0x28cb5b=this[_0x69916f(0x133)]()+_0x69916f(0x275);return{'list':[{'title':_0x69916f(0x1a0),'mentions':(await this[_0x69916f(0x480)][_0x69916f(0x2eb)](_0x28cb5b,{'params':{'objectID':_0x3e54a5[_0x69916f(0x3f0)],'unitID':_0x3e54a5[_0x69916f(0x3f0)]}}))[_0x69916f(0x450)][_0x69916f(0x3ff)]['map'](_0x32fa25=>({'objectId':_0x32fa25['id'],'name':_0x32fa25[_0x69916f(0x43e)]['name'],'metadata':{'icon':_0x32fa25[_0x69916f(0x43e)][_0x69916f(0x220)]},'label':_0x32fa25[_0x69916f(0x43e)][_0x69916f(0x114)],'objectType':_0x4b2515[_0x69916f(0x38a)][_0x69916f(0x45b)]})),'metadata':{},'type':_0x4b2515[_0x69916f(0x38a)][_0x69916f(0x45b)]}]};}};_0x4ca05f=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x341)])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)]))],_0x4ca05f);let _0x1f63f8=class extends _0x4b2515[_0x9884d2(0x190)]{constructor(_0x36538f,_0xc72752,_0x5c6cc4,_0x28592d,_0x1b15c0,_0x597c6e){const _0x273b51=_0x9884d2;super(),this[_0x273b51(0x46a)]=_0x36538f,this[_0x273b51(0x118)]=_0xc72752,this[_0x273b51(0x2ba)]=_0x5c6cc4,this[_0x273b51(0x2cf)]=_0x28592d,this[_0x273b51(0x3e9)]=_0x1b15c0,this[_0x273b51(0x427)]=_0x597c6e,_0x60128a(this,_0x273b51(0x16e),new Set()),this['disposeWithMe'](()=>this[_0x273b51(0x16e)][_0x273b51(0x214)]()),this[_0x273b51(0x472)](_0x47ca4d(this[_0x273b51(0x118)])[_0x273b51(0x23b)](({unitId:_0x459c1a})=>this[_0x273b51(0x16e)][_0x273b51(0x287)](_0x459c1a))),this[_0x273b51(0x2fa)](),this[_0x273b51(0x1b0)](),[_0x4b2515[_0x273b51(0x223)][_0x273b51(0x10f)],_0x4b2515[_0x273b51(0x223)]['UNIVER_SLIDE'],_0x4b2515[_0x273b51(0x223)][_0x273b51(0x267)],_0x4b2515[_0x273b51(0x223)][_0x273b51(0x339)]]['forEach'](_0x4d1996=>{const _0x4dbd99=_0x273b51;this[_0x4dbd99(0x472)](this[_0x4dbd99(0x118)][_0x4dbd99(0x47f)](_0x4d1996)[_0x4dbd99(0x23b)](_0x59616f=>{const _0x14e049=_0x4dbd99;this['_closedUnits'][_0x14e049(0x2a4)](_0x59616f[_0x14e049(0x413)]()),this[_0x14e049(0x46a)][_0x14e049(0x2eb)](_0x4b2515[_0x14e049(0x234)])[_0x14e049(0x321)](_0x59616f[_0x14e049(0x413)]());}));});}[_0x9884d2(0x1b0)](){const _0x475c4c=_0x9884d2;let _0x57b77e=async(_0x48ea8c,_0x33d52e)=>{const _0x299d1b=_0x328a;let _0x250676=await this['_collaborationSessionService'][_0x299d1b(0x1a4)](_0x48ea8c);this['_disposed']||this['_closedUnits'][_0x299d1b(0x40a)](_0x48ea8c)||!this['_univerInstanceService'][_0x299d1b(0x380)](_0x48ea8c)||_0x250676[_0x299d1b(0x2e6)][_0x299d1b(0x486)]((0x0,_0x2c33e8[_0x299d1b(0x10d)])(_0x55cf3f=>_0x55cf3f['eventID']===_0x5199be['CollaborationEvent']['SHOULD_CLOSE_CONN']),(0x0,_0x2c33e8[_0x299d1b(0x29e)])((0x0,_0xccd21e[_0x299d1b(0x448)])(this[_0x299d1b(0x36c)],this['_univerInstanceService'][_0x299d1b(0x462)][_0x299d1b(0x486)]((0x0,_0x2c33e8[_0x299d1b(0x10d)])(_0x16878e=>_0x16878e[_0x299d1b(0x413)]()===_0x48ea8c)))))['subscribe'](_0x13e5bf=>{const _0x107666=_0x299d1b;let {reason:_0x784f50}=_0x13e5bf[_0x107666(0x1b4)];this[_0x107666(0x427)]['emitEvent']({'id':_0x107666(0x345),'data':_0x784f50}),this[_0x107666(0x16e)]['add'](_0x48ea8c),this[_0x107666(0x46a)][_0x107666(0x2eb)](_0x4b2515[_0x107666(0x234)])['clearUnit'](_0x48ea8c);let _0x870033=_0x303f38(_0x33d52e);_0x870033!=null&&this[_0x107666(0x2a0)](_0x48ea8c,_0x870033,_0x349630[_0x107666(0x305)]['Edit'],!0x1),this[_0x107666(0x3e9)]['closeSession'](_0x48ea8c);});};_0x47ca4d(this['_univerInstanceService'])[_0x475c4c(0x486)]((0x0,_0x2c33e8[_0x475c4c(0x10d)])(({unitId:_0x19f0e1})=>!(0x0,_0x4b2515[_0x475c4c(0x262)])(_0x19f0e1)),(0x0,_0x2c33e8[_0x475c4c(0x29e)])(this[_0x475c4c(0x36c)]))['subscribe'](({type:_0x369563,unitId:_0x2da34c})=>{const _0x1392a8=_0x475c4c;_0x57b77e(_0x2da34c,_0x369563)[_0x1392a8(0x2d9)](_0x344098=>this['_injector'][_0x1392a8(0x2eb)](_0x4b2515[_0x1392a8(0x39c)])[_0x1392a8(0x1b5)](_0x344098));});}[_0x9884d2(0x2fa)](){const _0x48b481=_0x9884d2;let _0x2f46ff=async(_0x81b961,_0x7006e3)=>{const _0x1dc654=_0x328a;let _0x3407f9=await this[_0x1dc654(0x3e9)]['requireSession'](_0x81b961);if(!(this['_disposed']||this[_0x1dc654(0x16e)][_0x1dc654(0x40a)](_0x81b961)||!this['_univerInstanceService']['getUnit'](_0x81b961))){if(_0x7006e3===_0x4b2515[_0x1dc654(0x223)][_0x1dc654(0x465)]){let _0x3e9d2e=this['_injector'][_0x1dc654(0x2eb)](_0x4ea268[_0x1dc654(0x17c)]);await _0x3e9d2e[_0x1dc654(0x3d7)](_0x81b961),_0x3407f9[_0x1dc654(0x2e6)][_0x1dc654(0x486)]((0x0,_0x2c33e8[_0x1dc654(0x10d)])(_0x3af2df=>_0x3af2df[_0x1dc654(0x1b3)]===_0x5199be[_0x1dc654(0x261)]['UPDATE_PERMISSION_OBJ']),(0x0,_0x2c33e8['takeUntil'])((0x0,_0xccd21e[_0x1dc654(0x448)])(this['dispose$'],_0x3407f9[_0x1dc654(0x2e6)]['pipe']((0x0,_0x2c33e8['filter'])(_0x4181c2=>_0x4181c2[_0x1dc654(0x1b3)]===_0x5199be[_0x1dc654(0x261)][_0x1dc654(0x478)])),this['_univerInstanceService'][_0x1dc654(0x462)][_0x1dc654(0x486)]((0x0,_0x2c33e8[_0x1dc654(0x10d)])(_0x14b736=>_0x14b736['getUnitId']()===_0x81b961)))))['subscribe'](_0x23621c=>{const _0x3e6f1a=_0x1dc654;let {objectId:_0xa5e028}=_0x23621c[_0x3e6f1a(0x1b4)];_0xa5e028===_0x81b961?_0x3e9d2e[_0x3e6f1a(0x3d7)](_0x81b961):_0x3e9d2e['refreshPermission'](_0x81b961,_0xa5e028);});return;}_0x3407f9['event$'][_0x1dc654(0x486)]((0x0,_0x2c33e8[_0x1dc654(0x10d)])(_0x563411=>_0x563411[_0x1dc654(0x1b3)]===_0x5199be[_0x1dc654(0x261)][_0x1dc654(0x456)]),(0x0,_0x2c33e8[_0x1dc654(0x29e)])((0x0,_0xccd21e['merge'])(this[_0x1dc654(0x36c)],_0x3407f9[_0x1dc654(0x2e6)][_0x1dc654(0x486)]((0x0,_0x2c33e8[_0x1dc654(0x10d)])(_0x3a3c12=>_0x3a3c12[_0x1dc654(0x1b3)]===_0x5199be[_0x1dc654(0x261)][_0x1dc654(0x478)])),this[_0x1dc654(0x118)][_0x1dc654(0x462)][_0x1dc654(0x486)]((0x0,_0x2c33e8['filter'])(_0x1a23ed=>_0x1a23ed[_0x1dc654(0x413)]()===_0x81b961)))))['subscribe'](()=>{const _0x293e92=_0x1dc654;this[_0x293e92(0x45a)](_0x81b961,_0x7006e3)['catch'](_0x2c7964=>this[_0x293e92(0x46a)][_0x293e92(0x2eb)](_0x4b2515[_0x293e92(0x39c)])[_0x293e92(0x1b5)](_0x2c7964));}),await this['_refreshUnitPermission'](_0x81b961,_0x7006e3);}};_0x47ca4d(this[_0x48b481(0x118)])[_0x48b481(0x486)]((0x0,_0x2c33e8[_0x48b481(0x10d)])(({unitId:_0x5a4ed0})=>!(0x0,_0x4b2515[_0x48b481(0x262)])(_0x5a4ed0)),(0x0,_0x2c33e8[_0x48b481(0x29e)])(this[_0x48b481(0x36c)]))['subscribe'](({type:_0x4dcfe9,unitId:_0x3d3c1f})=>{const _0x3791a3=_0x48b481;_0x2f46ff(_0x3d3c1f,_0x4dcfe9)[_0x3791a3(0x2d9)](_0x53207a=>this[_0x3791a3(0x46a)][_0x3791a3(0x2eb)](_0x4b2515['ILogService'])[_0x3791a3(0x1b5)](_0x53207a));});}async[_0x9884d2(0x45a)](_0x3bb401,_0x1e73ea){const _0x4f7882=_0x9884d2;let _0x548e3d=_0x303f38(_0x1e73ea);if(_0x548e3d==null)return;let _0x315b1e=this['_injector'][_0x4f7882(0x2eb)](_0x4b2515[_0x4f7882(0x234)]);if(_0x315b1e['supports']({'unitId':_0x3bb401,'objectId':_0x3bb401,'objectType':_0x548e3d})){await _0x315b1e['refreshUnit'](_0x3bb401);return;}let _0x520597=this[_0x4f7882(0x411)](_0x3bb401,_0x548e3d);if(!_0x520597['length'])return;let _0x475ac2=await this[_0x4f7882(0x2cf)][_0x4f7882(0x354)]({'objectID':_0x3bb401,'objectType':_0x548e3d,'unitID':_0x3bb401,'actions':_0x520597[_0x4f7882(0x333)](({action:_0x4e9943})=>_0x4e9943)});this[_0x4f7882(0x409)]||this[_0x4f7882(0x16e)]['has'](_0x3bb401)||!this[_0x4f7882(0x118)][_0x4f7882(0x380)](_0x3bb401)||_0x475ac2['forEach'](_0x2d484f=>{const _0x533396=_0x4f7882;let _0x5a8aea=_0x2d484f[_0x533396(0x2e4)],_0x3a4360=_0x2d484f[_0x533396(0x354)];_0x5a8aea!=null&&_0x3a4360!=null&&_0x520597[_0x533396(0x10d)](_0x49d6fa=>_0x49d6fa['action']===_0x5a8aea)['forEach'](_0x59509f=>this['_permissionService'][_0x533396(0x2c7)](_0x59509f['id'],_0x3a4360));});}[_0x9884d2(0x411)](_0x49411d,_0x3c1f39){const _0x41835d=_0x9884d2;let _0x14d61d=[];return this[_0x41835d(0x2ba)]['getAllPermissionPoint']()[_0x41835d(0x1e3)]((_0x110844,_0x58f2ec)=>{const _0x30c005=_0x41835d;_0x110844[_0x30c005(0x23b)](_0x3a83f7=>{const _0x2f98d3=_0x30c005;_0x3a83f7['type']===_0x3c1f39&&_0x2f98d3(0x3f0)in _0x3a83f7&&_0x3a83f7[_0x2f98d3(0x3f0)]===_0x49411d&&(!(_0x2f98d3(0x1ac)in _0x3a83f7)||_0x3a83f7[_0x2f98d3(0x1ac)]===_0x49411d)&&_0x14d61d[_0x2f98d3(0x42c)]({'id':_0x58f2ec,'action':_0x3a83f7[_0x2f98d3(0x189)]});})[_0x30c005(0x29f)]();}),_0x14d61d;}['_updateUnitPermissionPoint'](_0x50837b,_0x362cdf,_0x56e313,_0x2fa248){this['_permissionService']['getAllPermissionPoint']()['forEach']((_0x1d5386,_0x50770f)=>{const _0x1dfab2=_0x328a;let _0x4c154a=!0x1;_0x1d5386[_0x1dfab2(0x23b)](_0x1a9477=>{const _0x325ee0=_0x1dfab2;_0x4c154a=_0x1a9477['type']===_0x362cdf&&_0x1a9477[_0x325ee0(0x189)]===_0x56e313&&_0x325ee0(0x3f0)in _0x1a9477&&_0x1a9477['unitId']===_0x50837b&&(!(_0x325ee0(0x1ac)in _0x1a9477)||_0x1a9477[_0x325ee0(0x1ac)]===_0x50837b);})[_0x1dfab2(0x29f)](),_0x4c154a&&this[_0x1dfab2(0x2ba)][_0x1dfab2(0x2c7)](_0x50770f,_0x2fa248);});}};_0x1f63f8=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x1bd)]),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x283d67)),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce))],_0x1f63f8);function _0x47ca4d(_0x5b5c72){const _0x4927be=_0x9884d2;return(0x0,_0xccd21e[_0x4927be(0x448)])(...[_0x4b2515['UniverInstanceType'][_0x4927be(0x465)],_0x4b2515[_0x4927be(0x223)]['UNIVER_DOC'],_0x4b2515[_0x4927be(0x223)][_0x4927be(0x281)],_0x4b2515[_0x4927be(0x223)]['UNIVER_BOARD'],_0x4b2515[_0x4927be(0x223)][_0x4927be(0x267)]][_0x4927be(0x333)](_0x4e3638=>_0x5b5c72[_0x4927be(0x3bf)](_0x4e3638)[_0x4927be(0x486)]((0x0,_0x2c33e8[_0x4927be(0x333)])(_0x2fb8b2=>({'type':_0x4e3638,'unitId':_0x2fb8b2['unit']['getUnitId']()})))));}function _0x303f38(_0x3f6cd5){const _0x39eb41=_0x9884d2;switch(_0x3f6cd5){case _0x4b2515[_0x39eb41(0x223)][_0x39eb41(0x465)]:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x3b5)];case _0x4b2515[_0x39eb41(0x223)]['UNIVER_DOC']:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x30f)];case _0x4b2515['UniverInstanceType']['UNIVER_SLIDE']:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x1c1)];case _0x4b2515[_0x39eb41(0x223)][_0x39eb41(0x339)]:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x343)];case _0x4b2515[_0x39eb41(0x223)][_0x39eb41(0x267)]:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x251)];default:return;}}let _0x3759f0=class{constructor(_0x2df99e,_0x4e61e5){const _0x22e021=_0x9884d2;this['_configService']=_0x2df99e,this[_0x22e021(0x1d0)]=_0x4e61e5;}async[_0x9884d2(0x37c)](_0x18f557,_0x3941c9){const _0x174d37=_0x9884d2;var _0x4c02d9;let {unitID:_0x2890a3,type:_0x25ee22,revision:_0x367eac=0x0}=_0x3941c9,_0x51542e=this[_0x174d37(0x19b)]()+'/'+_0x25ee22+_0x174d37(0x3b3)+_0x2890a3+_0x174d37(0x2b8)+_0x367eac,_0x5369bd=(await this[_0x174d37(0x1d0)][_0x174d37(0x2eb)](_0x51542e))[_0x174d37(0x450)],_0x5682ff=(_0x4c02d9=_0x5369bd['snapshot'])==null?void 0x0:_0x4c02d9['workbook'];if(_0x5682ff){let _0x55f800=_0x5682ff==null?void 0x0:_0x5682ff[_0x174d37(0x2f6)];_0x5682ff[_0x174d37(0x2f6)]=_0x5199be[_0x174d37(0x32e)][_0x174d37(0x2d8)]((0x0,_0x5199be[_0x174d37(0x22e)])(_0x55f800)),Object[_0x174d37(0x38e)](_0x5682ff[_0x174d37(0x3dc)])[_0x174d37(0x1e3)](([,_0x4767c6])=>{const _0x51b12b=_0x174d37;let _0x50ffb9=_0x4767c6[_0x51b12b(0x2f6)];_0x4767c6[_0x51b12b(0x2f6)]=_0x5199be['textEncoder'][_0x51b12b(0x2d8)]((0x0,_0x5199be[_0x51b12b(0x22e)])(_0x50ffb9));});}return _0x5369bd;}async[_0x9884d2(0x3f1)](_0x45498d,_0x46e407){const _0x4cb191=_0x9884d2;let {unitID:_0x24f4e2,type:_0xf65912,blockID:_0x24e691}=_0x46e407,_0x3db3ee=this['_getAPIPrefix']()+'/'+_0xf65912+_0x4cb191(0x3b3)+_0x24f4e2+_0x4cb191(0x292)+_0x24e691;return(await this[_0x4cb191(0x1d0)][_0x4cb191(0x2eb)](_0x3db3ee))[_0x4cb191(0x450)];}async[_0x9884d2(0x116)](_0x4bc811,_0xd51d38){const _0x275c35=_0x9884d2;let {unitID:_0x11315f,type:_0x2e454b,blockID:_0x349478}=_0xd51d38,_0x122ffe=this[_0x275c35(0x33a)]()+_0x275c35(0x292)+_0x2e454b+_0x275c35(0x3b3)+_0x11315f+'/block/'+_0x349478;return(await this[_0x275c35(0x1d0)]['get'](_0x122ffe))['body'];}async['fetchMissingChangesets'](_0x14ccad,_0x3bf85e){const _0x122ac4=_0x9884d2;let {unitID:_0x180041,type:_0x54236c,from:_0x1f94fa,to:_0x3bc63c}=_0x3bf85e,_0x15c0f8=this[_0x122ac4(0x33a)]()+'/'+_0x54236c+_0x122ac4(0x3b3)+_0x180041+_0x122ac4(0x135)+_0x1f94fa+'&to='+_0x3bc63c;return(await this[_0x122ac4(0x1d0)][_0x122ac4(0x2eb)](_0x15c0f8))[_0x122ac4(0x450)];}['getSnapshotAPIPath'](){const _0x30c191=_0x9884d2;return this[_0x30c191(0x3c6)][_0x30c191(0x32f)](_0x30c191(0x360))??this[_0x30c191(0x33a)]();}[_0x9884d2(0x33a)](){const _0x19da2b=_0x9884d2;let _0x49db98=this[_0x19da2b(0x3c6)]['getConfig'](_0x3c0330);return(_0x49db98==null?void 0x0:_0x49db98[_0x19da2b(0x1ea)])??'/universer-api/snapshot';}async[_0x9884d2(0x423)](_0x2efb17,_0x5ea722){const _0x5755d6=_0x9884d2;let _0x3b5ede=_0x5755d6(0x434)+_0x5ea722[_0x5755d6(0x415)]+_0x5755d6(0x3b3)+_0x5ea722[_0x5755d6(0x258)]+_0x5755d6(0x254);return(await this['_httpService'][_0x5755d6(0x2eb)](_0x3b5ede,{'params':{'resourceId':JSON[_0x5755d6(0x3ee)](_0x5ea722[_0x5755d6(0x2f3)])}}))[_0x5755d6(0x450)];}[_0x9884d2(0x27e)](){const _0x459c07=_0x9884d2;throw Error(_0x459c07(0x195));}[_0x9884d2(0x38b)](){const _0x5728e2=_0x9884d2;throw Error(_0x5728e2(0x195));}['saveSheetBlock'](){const _0xbfcd3e=_0x9884d2;throw Error(_0xbfcd3e(0x195));}[_0x9884d2(0x3d3)](){const _0x3c2bd1=_0x9884d2;throw Error(_0x3c2bd1(0x195));}[_0x9884d2(0x388)](){const _0x5f198c=_0x9884d2;throw Error(_0x5f198c(0x195));}[_0x9884d2(0x137)](){const _0x1391d7=_0x9884d2;throw Error(_0x1391d7(0x195));}};_0x3759f0=_0x33ad5b([_0x3b5628(0x0,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)]))],_0x3759f0);let _0x594d01=class extends _0x4b2515[_0x9884d2(0x162)]{constructor(_0x3fe84d,_0x18465b,_0x386181,_0x58aa32,_0x18ed86,_0x313ee8){super(_0x3fe84d,_0x18465b,_0x386181,_0x58aa32),this['_transformService']=_0x18ed86,this['_logService']=_0x313ee8;}[_0x9884d2(0x3b7)](_0x1ef529,_0x190029){const _0xe4c610=_0x9884d2;let _0x1f90b1=this[_0xe4c610(0x39e)](_0x1ef529);if(_0x1f90b1)try{let _0x34c59b=this[_0xe4c610(0x20e)](_0x1f90b1,_0x190029);this[_0xe4c610(0x454)](_0x1ef529,_0x34c59b);}catch(_0x4f2ed0){this['_logService']['error'](_0xe4c610(0x15c),_0x4f2ed0),this[_0xe4c610(0x36f)](_0x1ef529);}let _0x48b331=this[_0xe4c610(0x2f7)](_0x1ef529);if(_0x48b331)try{let _0x4086a3=this[_0xe4c610(0x20e)](_0x48b331,_0x190029);this[_0xe4c610(0x42d)](_0x1ef529,_0x4086a3);}catch(_0x2e1cd9){this[_0xe4c610(0x344)]['error'](_0x2e1cd9),this['_clearRedo'](_0x1ef529);}}['_clearUndo'](_0x5c0bdf){const _0x4e8968=_0x9884d2;let _0x660e94=this[_0x4e8968(0x39e)](_0x5c0bdf);_0x660e94&&(_0x660e94[_0x4e8968(0x147)]=0x0,this[_0x4e8968(0x1b8)]());}[_0x9884d2(0x1ad)](_0x6d7bcd){const _0x327eae=_0x9884d2;let _0x1f0322=this[_0x327eae(0x2f7)](_0x6d7bcd);_0x1f0322&&(_0x1f0322[_0x327eae(0x147)]=0x0,this[_0x327eae(0x1b8)]());}[_0x9884d2(0x454)](_0x1e5bc8,_0x468e70){const _0x2cbbd4=_0x9884d2;this[_0x2cbbd4(0x327)][_0x2cbbd4(0x41e)](_0x1e5bc8,_0x468e70),this[_0x2cbbd4(0x1b8)]();}[_0x9884d2(0x42d)](_0x3f0c5a,_0x3e4d1e){const _0x3b5025=_0x9884d2;this[_0x3b5025(0x3e7)][_0x3b5025(0x41e)](_0x3f0c5a,_0x3e4d1e),this['_updateStatus']();}[_0x9884d2(0x20e)](_0x2eec3a,_0x509516){const _0x3bffc8=_0x9884d2;let _0x55018e=[],_0x27f77b=_0x509516,_0x571840=_0x509516;for(let _0x4c94fd=_0x2eec3a['length']-0x1;_0x4c94fd>=0x0;_0x4c94fd--){let {unitID:_0x3dc502,undoMutations:_0x23448e,redoMutations:_0x33906f}=_0x2eec3a[_0x4c94fd],_0x3d3659=this[_0x3bffc8(0x2a6)][_0x3bffc8(0x457)](_0x27f77b,_0x23448e),_0x4bacf2=this['_transformService'][_0x3bffc8(0x457)](_0x571840,_0x33906f);if((0x0,_0x5199be[_0x3bffc8(0x1af)])(_0x3d3659)||(0x0,_0x5199be['isTransformMutationsWithChangesetFailure'])(_0x4bacf2)){this['_logService'][_0x3bffc8(0x1b5)](_0x3bffc8(0x15c),_0x3bffc8(0x47e),_0x3d3659,_0x4bacf2);break;}_0x27f77b=_0x3d3659[_0x3bffc8(0x25e)],_0x571840=_0x4bacf2[_0x3bffc8(0x25e)],_0x55018e[_0x3bffc8(0x42c)]({'unitID':_0x3dc502,'undoMutations':_0x3d3659[_0x3bffc8(0x230)],'redoMutations':_0x4bacf2['m2Prime']});}return _0x55018e[_0x3bffc8(0x12a)]();}};_0x594d01=_0x33ad5b([_0x3b5628(0x0,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x25a)]),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x4,_0x5199be['ITransformService']),_0x3b5628(0x5,_0x4b2515[_0x9884d2(0x39c)])],_0x594d01);let _0x673142=class extends _0x4b2515['Plugin']{constructor(_0x11c4e7=_0xa070fb,_0x227483,_0x359c68,_0x2a9762){const _0x26ba67=_0x9884d2;super(),this[_0x26ba67(0x437)]=_0x11c4e7,this[_0x26ba67(0x344)]=_0x227483,this[_0x26ba67(0x46a)]=_0x359c68,this[_0x26ba67(0x3c6)]=_0x2a9762;let {..._0x1204c1}=(0x0,_0x4b2515['merge'])({},_0xa070fb,this['_config']);if(!_0x1204c1[_0x26ba67(0x11f)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this['_config']=_0x1204c1,this[_0x26ba67(0x3c6)][_0x26ba67(0x398)](_0x3c0330,_0x1204c1);}[_0x9884d2(0x235)](){const _0x3d8b53=_0x9884d2;this[_0x3d8b53(0x3c6)][_0x3d8b53(0x398)](_0x4b2515[_0x3d8b53(0x2aa)],this[_0x3d8b53(0x437)]['objectPermissionTypes']??[]),this[_0x3d8b53(0x2f0)](),this['_initDependencies']();}[_0x9884d2(0x2f0)](){const _0x327d3b=_0x9884d2;var _0x559ef9,_0x2acdec;this[_0x327d3b(0x46a)][_0x327d3b(0x40a)](_0x4b2515[_0x327d3b(0x201)])&&this[_0x327d3b(0x344)][_0x327d3b(0x1b5)](_0x327d3b(0x2bc),_0x327d3b(0x155));let _0x188f45=(0x0,_0x4b2515[_0x327d3b(0x45e)])([[_0x4b2515[_0x327d3b(0x201)],{'useClass':_0x594d01}],[_0x14183e,{'useValue':_0x8c16f0()}],[_0x283d67],[_0x50f206],[_0x2326c2],[_0x324e1c],[_0x3796aa],[_0x16a8e3],[_0x1f63f8],[_0xeca6ce],[_0x125829],[_0x4f7089,{'useClass':this[_0x327d3b(0x437)][_0x327d3b(0x11f)]}],[_0x5199be['ISnapshotServerService'],{'useClass':_0x3759f0}],[_0x4b2515[_0x327d3b(0x1bd)],{'useClass':_0x15f3fe}],[_0x4b2515[_0x327d3b(0x304)],{'useClass':_0xd196db}],[_0x5e4e05,{'useClass':_0x5b1674}],[_0x4b2515[_0x327d3b(0x3aa)],{'useClass':_0x4ca05f}],[_0x4809ba],[_0x2fc493]],(_0x559ef9=this['_config'])==null?void 0x0:_0x559ef9[_0x327d3b(0x1b7)]);if(!((_0x2acdec=this[_0x327d3b(0x437)])!=null&&_0x2acdec[_0x327d3b(0x2fd)])){let _0x5e950a=_0x188f45[_0x327d3b(0x3e1)](([_0x410ed4])=>_0x410ed4===_0x55fbad);_0x5e950a!==-0x1&&_0x188f45[_0x327d3b(0x289)](_0x5e950a,0x1);}(0x0,_0x4b2515['registerDependencies'])(this[_0x327d3b(0x46a)],_0x188f45);}[_0x9884d2(0x31e)](){const _0x315c4c=_0x9884d2;var _0x4947f0,_0x20d2fe;if(this['_injector'][_0x315c4c(0x2eb)](_0x530da8[_0x315c4c(0x24e)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,_0x530da8[_0x315c4c(0x10e)])({'maxParallel':0x6})}),!((_0x4947f0=this[_0x315c4c(0x437)])!=null&&_0x4947f0[_0x315c4c(0x268)])){var _0x2ed8f6;(_0x2ed8f6=this[_0x315c4c(0x46a)]['get'](_0x2b4688,_0x4b2515['Quantity']['OPTIONAL']))==null||_0x2ed8f6[_0x315c4c(0x2da)]();}(_0x20d2fe=this[_0x315c4c(0x437)])!=null&&_0x20d2fe[_0x315c4c(0x208)]&&(0x0,_0x4b2515[_0x315c4c(0x2bb)])(this[_0x315c4c(0x46a)],[[_0x324e1c]]),(0x0,_0x4b2515[_0x315c4c(0x2bb)])(this['_injector'],[[_0x3796aa],[_0x4809ba],[_0x1f63f8]]);}};_0x60128a(_0x673142,'pluginName',_0x9884d2(0x187)),_0x60128a(_0x673142,_0x9884d2(0x3ac),_0x3ff4bc),_0x60128a(_0x673142,_0x9884d2(0x42e),_0x303b92),_0x673142=_0x33ad5b([(0x0,_0x4b2515[_0x9884d2(0x1f1)])(_0x3ed42b[_0x9884d2(0x170)],_0x530da8[_0x9884d2(0x467)],_0x5199be['UniverCollaborationPlugin']),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x3,_0x4b2515['IConfigService'])],_0x673142),Object['defineProperty'](_0x27ec94,_0x9884d2(0x1ff),{'enumerable':!0x0,'get':function(){return _0x15f3fe;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x23d),{'enumerable':!0x0,'get':function(){return _0x57ae4a;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x1be),{'enumerable':!0x0,'get':function(){return _0x1e3872;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x1a9),{'enumerable':!0x0,'get':function(){return _0x24daae;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x3af),{'enumerable':!0x0,'get':function(){return _0x4deb99;}}),_0x27ec94[_0x9884d2(0x18f)]=_0x3c0330,Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x174),{'enumerable':!0x0,'get':function(){return _0x5b1674;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x446),{'enumerable':!0x0,'get':function(){return _0x4809ba;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x464),{'enumerable':!0x0,'get':function(){return _0xe2b433;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x38d),{'enumerable':!0x0,'get':function(){return _0xd196db;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x188c53;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x35e),{'enumerable':!0x0,'get':function(){return _0x283d67;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x1da),{'enumerable':!0x0,'get':function(){return _0x1df3dc;}}),_0x27ec94['CollaborationStatus']=_0x500434,_0x27ec94['CollaborationUIEventId']=_0x491b70,_0x27ec94[_0x9884d2(0x43f)]=_0xeca6ce,Object[_0x9884d2(0x1ce)](_0x27ec94,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return _0x594d01;}}),_0x27ec94[_0x9884d2(0x286)]=_0x16a8e3,Object['defineProperty'](_0x27ec94,_0x9884d2(0x165),{'enumerable':!0x0,'get':function(){return _0x4b9c5b;}}),_0x27ec94[_0x9884d2(0x1f6)]='ws://127.0.0.1:8000/universer-api/comb/connect',_0x27ec94[_0x9884d2(0x291)]=_0x9884d2(0x432),_0x27ec94[_0x9884d2(0x2ff)]=_0x9884d2(0x24b),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x41d),{'enumerable':!0x0,'get':function(){return _0x125829;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x193),{'enumerable':!0x0,'get':function(){return _0x94e744;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x181),{'enumerable':!0x0,'get':function(){return _0x394019;}}),_0x27ec94['HEARTBEAT_INTERVAL_KEY']='HEARTBEAT_INTERVAL',_0x27ec94[_0x9884d2(0x3d2)]=_0x9884d2(0x207),_0x27ec94[_0x9884d2(0x1a7)]=_0x5e4e05,_0x27ec94[_0x9884d2(0x255)]=_0x14183e,_0x27ec94[_0x9884d2(0x27a)]=_0x4f7089,_0x27ec94[_0x9884d2(0x22b)]=_0x2b4688,_0x27ec94['INetworkConditionService']=_0x3ce8fd,_0x27ec94[_0x9884d2(0x177)]=_0x55fbad,_0x27ec94[_0x9884d2(0x1fa)]=0x3e8,_0x27ec94[_0x9884d2(0x33c)]=_0x9884d2(0x1fa),Object['defineProperty'](_0x27ec94,'MemberService',{'enumerable':!0x0,'get':function(){return _0x50f206;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x35d),{'enumerable':!0x0,'get':function(){return _0x4ca05f;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x23f),{'enumerable':!0x0,'get':function(){return _0x20a1e1;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x3e8),{'enumerable':!0x0,'get':function(){return _0x2226d9;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x164),{'enumerable':!0x0,'get':function(){return _0x27ecb8;}}),_0x27ec94[_0x9884d2(0x410)]=_0x9884d2(0x307),_0x27ec94[_0x9884d2(0x2f5)]='RETRY_CONNECTING_MAX_COUNT',_0x27ec94['SessionStatus']=_0x5089ce,Object[_0x9884d2(0x1ce)](_0x27ec94,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0xe8b1d4;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x150),{'enumerable':!0x0,'get':function(){return _0x2326c2;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x3ca),{'enumerable':!0x0,'get':function(){return _0x3a9411;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x1e7),{'enumerable':!0x0,'get':function(){return _0x3759f0;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x363),{'enumerable':!0x0,'get':function(){return _0x57c5eb;}}),_0x27ec94[_0x9884d2(0x215)]=_0xa9151d,Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x44b),{'enumerable':!0x0,'get':function(){return _0x673142;}}),_0x27ec94[_0x9884d2(0x2a7)]=_0x8c16f0,_0x27ec94[_0x9884d2(0x180)]=_0x36e901,_0x27ec94[_0x9884d2(0x24f)]=_0x41bf27,_0x27ec94['serializeCombRequest']=_0x320ae2;}));function _0x328a(_0x46b701,_0x13a21b){_0x46b701=_0x46b701-0x10d;const _0x3671a5=_0x3671();let _0x328ad9=_0x3671a5[_0x46b701];return _0x328ad9;}function _0x3671(){const _0x31c495=['Rectangle','add','endsWith','_transformService','createUniverCollaborationAdapter','endpointKey','enableCollaboration','OBJECT_PERMISSION_CONFIG_KEY','buffer','MergeInterceptorFactory','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','BASE64','subarray','ERROR_IMAGE','LIVESHARE_FETCH_OPERATIONS','location','&assign=','putCollaborators','then','[CollaborationSessionService]','_onJoinRoomEvent','/rev/','getUploadOptions','_permissionService','touchDependencies','[UniverCollaborationClientPlugin]','floor','localUnitId','online$','decorate','RECV','IPermissionService','createIdentifier','trim','[PendingState]:\x20received\x20acknowledgement.','pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','updatePermissionPoint','POST','_submitChangeset','timeoutTimer','/-/object/list','_waitForHeartbeatResponse','\x0aAfter:\x20','init','_authzIoService','retryCount','change$','[SyncedState]:\x20received\x20rejection.','2348528SEsToC','updateMember','39328PLNIqq','send','authzUrl','encode','catch','disableLocalCache','_checkMissing','fetch_missing','/object','onRemoteAck','@univerjs/telemetry','Inject','_sheetTransformSelectionsService','onLocalMutation','_createSocket','action','sessionStatus','event$','joinEvent','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','{fileID}','_tryReconnect','get','onload','[SyncedState]:\x20received\x20acknowledgement.','deepClone','_commandService','_registerDependencies','__Key__','_createInitialState','resourceIDs','revision','RETRY_CONNECTING_MAX_COUNT_KEY','originalMeta','_getRedoStack','_roomMembers','addImageSourceCache','_initUnitPermissionChange','missingChangesets','LEAVE','enableSingleActiveInstanceLock','_transitionLocked','DEFAULT_WS_SESSION_TICKET_URL','_maxTotalRetryTimeout','_incrementRevisionNumber','resolveWithBasePath','x-univer-host','IImageIoService','UnitAction','_joinRoom','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','[CollaborationState]:\x20apply\x20error!','_clearTimeoutTimer','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_clearCollaborationTimeoutTimer','[FetchMissState]','fetchMissingChangesets','hasOwnProperty','Document','_status$','onTransformRemoteChangesetByIMECache','result','_replayCachedMutations','dispose','_getLoginPath','getWorkbookSelections','rev','FETCH_MISSING','\x22ciphertext\x22\x20expected\x20length\x20>=\x20tagLength=','onTransformIME','post','_sendHeartbeat',',\x20got\x20','_initDependencies','_commentService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','clearUnit','_getSignURL','_localCacheService','blockRanges','loadUnit','NO_OTHER_CLIENTS_EDITING','_undoStacks','ErrorCode','resolveUnit','UNISCRIPT_RUN','LocaleService','_members$','onRemoteChangeset','textEncoder','getConfig','onTransformState','_snapshotServerService','type=','map','_schedule','nonceLength','__splitChunk__','_getDownloadEndpointURL','FETCH_MISS','UNIVER_BOARD','_getAPIPrefix','_unlockTransition','LOCAL_CACHE_INTERVAL_KEY','_onCombEvent','collaboration_new_changeset','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','getFocusedUnit','IConfigService','_unitInfo$','Board','_logService','CLOSE_ROOM','FAIL','unitLoaded$','debug','apply','find','csRejEvent','SheetsSelectionsService','ERROR_EXCEED_SIZE','WorkbookEditablePermission','_updateLocalCache','_roomCreated$','socketReady','socket$','toString','allowed','_collaborationPaused','sid','toggleOnline','isTransformMutationsWithChangesetSuccess','168zMqoHt','HELLO','_showConflictProcessingNotification','columnGroups','MentionIoHttpService','CollaborationSessionService','cmd','SNAPSHOT_URL_KEY','fromCharCode','_transformRemoteChangesetByStateCache','SyncedState','collaboration-client.local-cache-service','key','uniscriptRunEvent','@univerjs-pro/collaboration','wrong\x20sbox\x20length','_transformStateCache','_sendingTimer','userID','dispose$','_collaborationTimeoutTimer','_rescheduleHeartbeat','_clearUndo','fetching\x20missing\x20changesets\x20from\x20','fromCollab','aes:\x20bad\x20decrypt','loadDoc','rxjs','ReplaySubject','CompressMutationService','USERS_ENTER','transformSelections','BehaviorSubject','actions','2456FZXkad','getUnitOnRev','[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.','iterator','byteLength','getUnit','expected\x20Uint8Array','resolve','getValue','PERMISSION_REJ','ciphertext\x20must\x20be\x20multiple\x20of\x2016','_init','isTransformChangesetsSuccess','copyFileMeta','CommandType','MentionType','updateSnapshot','listCollaborators','CollaborationImageIoService','entries','6uNUVAg','socketMessageSubscription','encrypt','waitForRoom$','_onRemoteACK','collaboratorID','interceptor','toLocal','_socketChannels','setConfig','_scheduleCollaborationTimeoutTimer','uuidv4','onRemoteRetry','ILogService','_toggleOffline','_getUndoStack','Univer','Module','_sessionChannels','SOCKET_FAILED_RETRY','_onRemoteChangeset','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','OTHER_CLIENTS_EDITING','FileSource','_initMergeInterceptor','_docStateChangeManagerService','collaMsg','IMentionIOService','symbol','packageName','_updateState','crypto','BoardCollaborationEntity','replace','SUCCUSS','createSocket','/unit/','roomInfos','Workbook','charCodeAt','transformUndoRedo','joinRsp','_change$','_transformRemoteChangesetByIMECache','_acknowledgedAwaitingRevision','HEARTBEAT_INTERVAL','UniverTelemetry','entityInit$','getTypeOfUnitAdded$','_fetchMissChangesets','collaboration-client.config','onTransformSelections','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getAllMembers','_handlerCallback','_configService','OTHER_CLIENT_EDITING','collabSubmitChangesetUrl','/new_changes','SlideCollaborationEntity','isArray','onSyncEditingCollabCursor','changesets','src','failed\x20to\x20apply\x20missed\x20changesets!','_transformIMECache','@univerjs/protocol','HEARTBEAT_TIMEOUT_KEY','saveChangeset','sequenceExecute','RemoveSlidePageMutation','slice','initWorkbookPermissionChange','_telemetryService','_cfgEnableObjInherit','onPrepareTransformSelections','SUBMIT_CHANGESET_TIMEOUT','sheets','NOT_COLLAB','_pendingSessions','COMMENT_UPDATE','getUnitStatus$','findIndex','_type','some','startTime','maxSize','isCompositionEnd','_redoStacks','PdfCollaborationEntity','_collaborationSessionService','appendMutation','_clearScheduledTask','toggleOffline','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','stringify','newCsEvent','unitId','getSheetBlock','_handler','_onRemoteRetry','routeKey','params','code','amd','_event$','LIVESHARE_TERMINATE','update','ws://127.0.0.1:8000/universer-api/comb/connect','delay','_acknowledgeAwaitingIfReady','ImageSourceType','collaborators','message$','JOINING','_awaitingChangeset','_snapshotService','incrementRevOfUnit','IUniverInstanceService','getCollabEntity$','crypto.getRandomValues\x20must\x20be\x20defined','&source=','_disposed','has','_getCtorByUniverInstanceType','accept','createInstance','_replaceFileID','UniverDrawing','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_getUnitPermissionPoints','_unitLoaded$','getUnitId','FileId','type','state$','memberID','_onRecvEvent','liveShareOperation','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','NEW_CHANGESETS','15404570DVakeQ','DataLoaderService','set','complete','title','getCurrentRevOfUnit','append','getResourcesRequest','url','_resendTimer','_throwTelemetryCollaborationNewChangeset','_collaborationUIEventService','_showConflictNotification','getUnitType','_adapter','[PendingState]:\x20unhandled\x20univer\x20type:\x20','push','_substituteRedoStack','version','/universer-api/stream/file/upload','collabWebSocketUrl','uploadFileServerUrl','/universer-api/uniscript','mapDocumentTypeToUniverInstanceType','/universer-api/snapshot/','setWaitCount','_lockTransition','_config','/role','isPermissionRej','[OfflineState]:\x20received\x20acknowledgement.','localCacheService','asObservable','call','subject','CollaborationUIEventService','CmdRspCode','AddSlidePageMutation','size','synced','getMemberID','onCommentUpdate','CollaborationController','_resendWithTimeout','merge','method','_commentUpdate$','UniverCollaborationClientPlugin','LIVESHARE_OPERATION','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','JOIN_ROOM_FAILED','_pendingMutations','body','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','AWAITING','_scheduleCompleteTimestamp','_substituteUndoStack','_collabSessionService','UPDATE_PERMISSION_OBJ','transformMutationsWithChangeset','RETRY_CONNECTING_MAX_COUNT','session.room-cnt-exceeds','_refreshUnitPermission','PERSON','loginUrlKey','getRoom','mergeOverrideWithDependencies','status','LIVESHARE_NEW_HOST','readAsDataURL','unitDisposed$','_acknowledgeAwaiting','CollaborationEntity','UNIVER_SHEET','deleteCollaborator','UniverNetworkPlugin','_onRemoteRejected','loadOfflineData','_injector','objectType','UUID','Injector','_exhaustRemoteChangesetQueue','MUTATION','getActiveSheet','stopTime','disposeWithMe','includes','function','objectID','_syncEditingCollabCursor','_startCollaboration','SHOULD_CLOSE_CONN','target','executeCommand','_createSession','ITelemetryService','downloadEndpointUrl','transformStack\x20failed!','getTypeOfUnitDisposed$','_HTTPService','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_entityInit$','retryConnectingInterval','close$','/universer-api/comb','pipe','Uint8Array','subUnitId','filter','ThresholdInterceptorFactory','UNIVER_DOC','removeMember','_telemetryInfo','headers','session.room-not-exists','name','session.room-full','getDeserializedSheetBlock','retryConnectingTimer','_univerInstanceService','UniverSheets','constructor','_getSendChangesetTimeout','csShouldRetryEvent','_initRequestHeader','attachment','socketService','commit','_emitMembers','sort','\x20of\x20length\x20','setShowComponents','UniverProLicense','updateCollaborator','candidateSocket','onMissedChangesetFetched','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','reverse','startsWith','reqId','generateRandomId','ImageUploadStatusType','sendHeartbeatTimer','connection\x20error','isSafeInteger','_getSocketChannel','_getAPIPrefixPath','loadSheet','/fetchmissing?from=','_onMessage','getLatestCsReqIdBySid','requestParams','COMPRESS_MUTATION_SEND','commentUpdateEvent','endpoint','_memberService','JOIN_ROOM_NOT_EXISTS','_getConfig','getOwnPropertyDescriptor','Failed\x20to\x20update\x20permission\x20point','_clearRetryConnectingTimer','origin','_onConflict','state','unit','_onFetchMissResult','length','sessionStatus$','_disableEditing','_sender','expected\x20integer\x20>=\x200,\x20got\x20','UnitEmbedded','MoveSlidePageMutation','LIVESHARE_REQUEST_HOST','1.0.1','SheetTransformSelectionsService','getGlobalObject','objectActions','UniverCore','UnitObject','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','@univerjs/docs','_startTelemetryCollaborationNewChangeset','reconnect','_socketService','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','nonce','[CollaborationUndoRedoService]','fetchMiss','SnapshotService','onSendChangeset','_socket','getAttachmentUrl','LocalUndoRedoService','SOCKET_FAILED','PendingState','ConflictState','changeset','prototype','string\x20expected','UserManagerService','\x0aCurrent:\x20','ICommandService','getCollabEntity','2124510UZAnPm','_closedUnits','RichTextEditingMutation','UniverLicensePlugin','onStateChange','indexOf','create','CollaborationAttachmentIoService','_sessions','getInterceptPoints','ISingleActiveUnitService','from','_applyRemoteChangeset','_onLocalMutation','/allowed','SheetPermissionInitController','now','next','_listenToNetworkCondition','deserializeToCombResponse','FetchingMissState','EmptyMutationInfo','/-/object/-/batch_allowed','unit-cache-','_networkConditionService','_eventService','UNIVER_COLLABORATION_CLIENT_PLUGIN','_compressMutationService','subType','socket\x20open.','univer-pro.collaboration-client-adapter-service','_createHandler','fetchThroughInterceptors','PSEUDO_FETCH_MISSING_RESULT','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','RxDisposable','editingUnit','[CollaborationSession]','DocCollaborationEntity','loadBoard','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_revisionService','USERS_LEAVE','INGEST','error$','JSONX','getSnapshotAPIPath','_onConnectionFailed','CHANGESET_REJ','\x22bytesLength\x22\x20expected\x20<=\x2065536,\x20got\x20','ISocketService','People','_resolveSessionIdentity','Tools','pending','requireSession','_socketMessageSubscription','_clearHeartbeatTimer','IAttachmentIoService','unknown','BaseCollaborationEntity','_changesetSessionId','_decreaseWaiting','objectId','_clearRedo','BYTES_PER_ELEMENT','isTransformMutationsWithChangesetFailure','_initCloseConn','MSG_FOR_ERROR','UniverProtocol','eventID','data','error','exports','override','_updateStatus','UNIVER_PDF','onlyLocal','getImageSourceCache','@univerjs/network','IAuthzIoService','AwaitingWithPendingState','conflict','univer-pro.collaboration-client.single-active-unit-service','Slide','varSizeNonce','pauseCollaboration','_handleRemoteChangesets','_userManagerService','_shouldReportTelemetry','getTime','getRandomValues','_toggleOnline','\x20-\x20','Disposable','_entities','onMutationExecutedForCollab','defineProperty','awaiting','_httpService','save\x20fail\x20reason\x20is\x20','COMPRESS_MUTATION_APPLY','_prepareTransformSelections','baseRev','@univerjs/sheets','ONLINE','IDLE','univer-pro.collaboration-client.network-condition.service','UniverProSlides','CollaborationSocketService','emitEvent','take','_upload','Optional','sendChangesetTimeout','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getMember','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','forEach','[OfflineState]:\x20received\x20rejection.','Error\x20on\x20receiving\x20event','range','SnapshotServerOverHTTPService','plaintext\x20must\x20be\x20multiple\x20of\x2016','reject','snapshotServerUrl','collaboration-client.auth.needGotoLoginAlert','ITransformService','output','@univerjs/drawing','concatMap','_members','DependentOn','JOIN_ROOM_PERMISSION_DENIED','values','_localeService','UPDATE_CURSOR','DEFAULT_COLLAB_WEB_SOCKET_URL','CHANGESET_ACK','updateCursorEvent','PERMISSION_DENIED','LOCAL_CACHE_INTERVAL','RevisionService','resend','_identity','_onConnectionOpen','AuthzIoHttpService','Subject','IUndoRedoService','/universer-api/file/{fileID}/sign-url','getCurrentUser','getCurrentSelections','decrypt','onTransformRemoteChangesetByStateCache','HEARTBEAT_TIMEOUT','enableAuthServer','SUBMIT_CHANGESET','SetSelectionsOperation','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_stopTelemetryCollaborationNewChangeset','withAAD','_transformStack','_singleActiveUnitService','DRAWING_IMAGE_ALLOW_IMAGE_LIST','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','string','JOIN','clear','UnitStatus','_onOffline','hostname','signUrlServerUrl','offline','parseChangesetToProtocol','_transformAndApplyRemoteChangeset','clearOfflineData','_getCurrentRevision','loadUnitOfRevision','onRemoteRej','avatar','tagLength','_waitCount','UniverInstanceType','firstValueFrom','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','duration','invalid\x20output,\x20must\x20be\x20aligned','onMissingChangesets','textRanges','9516808hMAjGi','ILocalCacheService','parseProtocolChangeset','addHandlerCallback','b64DecodeUnicode','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','m2Prime','min','awaitingChangeset','_transformSelections','ObjectPermissionService','onStarting','univer-pro.collaboration-client-socket-service','_state','CHANGESET_SHOULD_RETRY','[CollaborationEntity]','_tryEnsureSocket','subscribe','readyForCollab','AwaitingState','file','OfflineState','list','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','roles','close','_transformUndoredo','setCfgEnableObjInherit','@univerjs-pro/slides','upload','saveAttachment','fill','CONFLICT','/universer-api/user/session-ticket','@univerjs-pro/license','_executeRemoteChangeset','HTTPService','getLocalCacheKey','_sessionStatus$','Base','capture','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','/resources','ICollaborationClientAdapterService','createCollaborator','disablePadding','unitID','_prepareConflictRecovery','IContextService','_undoRedoService','mutations','backupOfflineData','c1Prime','[CollaborationSessionService]:\x20socket\x20error','CONFLICT_CACHE_CLEAR_FAILED','CollaborationEvent','isInternalEditorID','rxjs/operators','_getUploadFileURL','open$','number','UNIVER_BASE','enableOfflineEditing','_resendTimeout','permissionRejEvent','put','_instanceService','telemetry\x20info\x20is\x20not\x20initialized','object','_remoteChangesetQueue','transformChangesets','_hasSessionsForEndpoint','_isEchoedAwaitingChangeset','loadBase','_onUserJoin','/collaborator','assign','DisposableCollection','updatePermissionObjEvent','DocStateChangeManagerService','ICollaborationSocketService','docStateChange$','@univerjs/core','confirm','saveSnapshot','[DataLoaderService]','HEARTBEAT','UNIVER_SLIDE','_queuedRemoteChangesets','awaiting_with_pending','AAD\x20not\x20supported','UniverNetwork','CommentService','delete','UniverProCollaborationClient','splice','toPrimitive','session','byteOffset','_changesetReqId','loadSlide','text-x','submit\x20changeset\x20error!','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','/block/','CombCmd','unitType','?size=','CONFLICT_PROCESSING','28467kFJqGf','status$','toDisposable','COLLABORATION_ENDPOINT_INVALID','_state$','_removeRoom','954546eyIeth','takeUntil','unsubscribe','_updateUnitPermissionPoint','/object/','_imageSourceCache'];_0x3671=function(){return _0x31c495;};return _0x3671();}
|
|
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();}
|