@univerjs-pro/collaboration-client 1.0.2 → 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 _0x5846(_0x26e98c,_0xc5fb52){_0x26e98c=_0x26e98c-0xa0;const _0x1d68cc=_0x1d68();let _0x584617=_0x1d68cc[_0x26e98c];return _0x584617;}(function(_0x1cbd75,_0x1a6dc2){const _0x47a3cb=_0x5846,_0xb5e2a0=_0x1cbd75();while(!![]){try{const _0x480106=-parseInt(_0x47a3cb(0xd1))/0x1*(parseInt(_0x47a3cb(0x321))/0x2)+-parseInt(_0x47a3cb(0x282))/0x3+parseInt(_0x47a3cb(0x34f))/0x4+-parseInt(_0x47a3cb(0x1bf))/0x5+parseInt(_0x47a3cb(0x261))/0x6+parseInt(_0x47a3cb(0x2cb))/0x7+-parseInt(_0x47a3cb(0x367))/0x8*(-parseInt(_0x47a3cb(0x3a6))/0x9);if(_0x480106===_0x1a6dc2)break;else _0xb5e2a0['push'](_0xb5e2a0['shift']());}catch(_0x186ca9){_0xb5e2a0['push'](_0xb5e2a0['shift']());}}}(_0x1d68,0x5d33b),function(_0x1ad5c9,_0x11ebf3){const _0x2ce33b=_0x5846;typeof exports=='object'&&typeof module<'u'?_0x11ebf3(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==_0x2ce33b(0x36a)&&define[_0x2ce33b(0x176)]?define([_0x2ce33b(0x28f),_0x2ce33b(0x1b9),_0x2ce33b(0x2bb),_0x2ce33b(0x2af),'@univerjs/sheets',_0x2ce33b(0x3bb),_0x2ce33b(0x129),_0x2ce33b(0x166),_0x2ce33b(0x16a),_0x2ce33b(0xdf),_0x2ce33b(0x34c),_0x2ce33b(0x127),_0x2ce33b(0x350)],_0x11ebf3):(_0x1ad5c9=typeof globalThis<'u'?globalThis:_0x1ad5c9||self,_0x11ebf3(_0x1ad5c9[_0x2ce33b(0xf1)]={},_0x1ad5c9[_0x2ce33b(0x21a)],_0x1ad5c9['UniverCore'],_0x1ad5c9[_0x2ce33b(0x27d)],_0x1ad5c9[_0x2ce33b(0x400)],_0x1ad5c9['rxjs'],_0x1ad5c9[_0x2ce33b(0x102)],_0x1ad5c9['UniverTelemetry'],_0x1ad5c9['rxjs'][_0x2ce33b(0x15d)],_0x1ad5c9['UniverProSlides'],_0x1ad5c9['UniverNetwork'],_0x1ad5c9[_0x2ce33b(0x25b)],_0x1ad5c9[_0x2ce33b(0xbe)]));}(this,function(_0x25ed14,_0x3a5734,_0x433f65,_0xaa3595,_0x6a2ac6,_0x450705,_0x4ed0d4,_0x133d94,_0x223d83,_0x255f6e,_0x544d24,_0x224431,_0x21f767){const _0x4fa2a5=_0x5846;Object[_0x4fa2a5(0x3b2)](_0x25ed14,Symbol['toStringTag'],{'value':_0x4fa2a5(0x255)});let _0x18fed6=_0x4fa2a5(0x1b0),_0x474e89={};function _0x178ce8(_0x437834){const _0x26f55b=_0x4fa2a5;return JSON[_0x26f55b(0x3be)](_0x437834)[_0x26f55b(0x208)];}function _0x1bbce0(_0x4a359f){'@babel/helpers - typeof';const _0x43d8f5=_0x4fa2a5;return _0x1bbce0=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x43d8f5(0x1f3)?function(_0x4abe6c){return typeof _0x4abe6c;}:function(_0xe2ae05){const _0x48cc20=_0x43d8f5;return _0xe2ae05&&typeof Symbol=='function'&&_0xe2ae05[_0x48cc20(0x383)]===Symbol&&_0xe2ae05!==Symbol[_0x48cc20(0x408)]?'symbol':typeof _0xe2ae05;},_0x1bbce0(_0x4a359f);}function _0x1c1f5b(_0x26bdb0,_0x36ed97){const _0xaa7475=_0x4fa2a5;if(_0x1bbce0(_0x26bdb0)!=_0xaa7475(0x221)||!_0x26bdb0)return _0x26bdb0;var _0x357b3f=_0x26bdb0[Symbol['toPrimitive']];if(_0x357b3f!==void 0x0){var _0x39f954=_0x357b3f['call'](_0x26bdb0,_0x36ed97||_0xaa7475(0x115));if(_0x1bbce0(_0x39f954)!=_0xaa7475(0x221))return _0x39f954;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x36ed97===_0xaa7475(0x265)?String:Number)(_0x26bdb0);}function _0x15a735(_0x36b884){const _0x34d550=_0x4fa2a5;var _0x2d8eca=_0x1c1f5b(_0x36b884,_0x34d550(0x265));return _0x1bbce0(_0x2d8eca)==_0x34d550(0x1f3)?_0x2d8eca:_0x2d8eca+'';}function _0x5aacdf(_0x132579,_0x4e4439,_0xc120e){const _0x5c814f=_0x4fa2a5;return(_0x4e4439=_0x15a735(_0x4e4439))in _0x132579?Object[_0x5c814f(0x3b2)](_0x132579,_0x4e4439,{'value':_0xc120e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x132579[_0x4e4439]=_0xc120e,_0x132579;}let _0x5eefb9=function(_0x5ad0ba){const _0x1b6426=_0x4fa2a5;return _0x5ad0ba['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x5ad0ba[_0x1b6426(0x2d0)]=_0x1b6426(0x2d0),_0x5ad0ba[_0x1b6426(0x414)]=_0x1b6426(0x414),_0x5ad0ba['CONFLICT_CACHE_CLEAR_FAILED']='CONFLICT_CACHE_CLEAR_FAILED',_0x5ad0ba[_0x1b6426(0x34e)]=_0x1b6426(0x34e),_0x5ad0ba[_0x1b6426(0x145)]=_0x1b6426(0x145),_0x5ad0ba[_0x1b6426(0x183)]=_0x1b6426(0x183),_0x5ad0ba[_0x1b6426(0x2bc)]=_0x1b6426(0x2bc),_0x5ad0ba[_0x1b6426(0x289)]=_0x1b6426(0x289),_0x5ad0ba[_0x1b6426(0x360)]='SUBMIT_CHANGESET_TIMEOUT',_0x5ad0ba;}({});var _0x483ee6=class{constructor(){const _0x422065=_0x4fa2a5;_0x5aacdf(this,_0x422065(0x13f),new _0x450705[(_0x422065(0x155))]()),_0x5aacdf(this,_0x422065(0x1eb),this['_event$'][_0x422065(0x343)]());}[_0x4fa2a5(0x2cf)](_0x4ed385){const _0xbf9832=_0x4fa2a5;this['_event$'][_0xbf9832(0x163)](_0x4ed385);}},_0x49219e=class{constructor(){const _0x3d51d7=_0x4fa2a5;_0x5aacdf(this,_0x3d51d7(0x393),new _0x450705[(_0x3d51d7(0x155))]()),_0x5aacdf(this,_0x3d51d7(0x247),this[_0x3d51d7(0x393)]['asObservable']());}['onCommentUpdate'](_0x533e60){const _0x3c7f3c=_0x4fa2a5;this[_0x3c7f3c(0x393)][_0x3c7f3c(0x163)](_0x533e60);}};function _0x374c65(_0x1e9ff1,_0x2193ba){return function(_0x1dece3,_0x36acbe){_0x2193ba(_0x1dece3,_0x36acbe,_0x1e9ff1);};}function _0x13514e(_0x65371e,_0x13546f,_0x1ffdf5,_0x49bcc2){const _0x2fb153=_0x4fa2a5;var _0x3e74df=arguments[_0x2fb153(0x208)],_0xa11729=_0x3e74df<0x3?_0x13546f:_0x49bcc2===null?_0x49bcc2=Object[_0x2fb153(0x1cb)](_0x13546f,_0x1ffdf5):_0x49bcc2,_0x137ec0;if(typeof Reflect==_0x2fb153(0x221)&&typeof Reflect[_0x2fb153(0x294)]==_0x2fb153(0x36a))_0xa11729=Reflect[_0x2fb153(0x294)](_0x65371e,_0x13546f,_0x1ffdf5,_0x49bcc2);else{for(var _0x103d96=_0x65371e[_0x2fb153(0x208)]-0x1;_0x103d96>=0x0;_0x103d96--)(_0x137ec0=_0x65371e[_0x103d96])&&(_0xa11729=(_0x3e74df<0x3?_0x137ec0(_0xa11729):_0x3e74df>0x3?_0x137ec0(_0x13546f,_0x1ffdf5,_0xa11729):_0x137ec0(_0x13546f,_0x1ffdf5))||_0xa11729);}return _0x3e74df>0x3&&_0xa11729&&Object['defineProperty'](_0x13546f,_0x1ffdf5,_0xa11729),_0xa11729;}let _0x54117e=class extends _0x433f65[_0x4fa2a5(0x325)]{constructor(_0x78809c){const _0x364a7c=_0x4fa2a5;super(),this[_0x364a7c(0x3f3)]=_0x78809c,_0x5aacdf(this,'_roomMembers',new Map()),_0x5aacdf(this,'_roomCreated$',new _0x450705[(_0x364a7c(0x155))]()),this[_0x364a7c(0x413)]((0x0,_0x450705[_0x364a7c(0x298)])(this[_0x364a7c(0x3f3)][_0x364a7c(0x40e)](_0x433f65[_0x364a7c(0xa5)][_0x364a7c(0xb4)])[_0x364a7c(0x192)]((0x0,_0x223d83[_0x364a7c(0x224)])(_0x50011a=>_0x50011a[_0x364a7c(0xed)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x433f65[_0x364a7c(0xa5)][_0x364a7c(0x237)])[_0x364a7c(0x192)]((0x0,_0x223d83[_0x364a7c(0x224)])(_0x589dcf=>_0x589dcf[_0x364a7c(0xed)]())),this[_0x364a7c(0x3f3)][_0x364a7c(0x40e)](_0x433f65[_0x364a7c(0xa5)]['UNIVER_BOARD'])[_0x364a7c(0x192)]((0x0,_0x223d83[_0x364a7c(0x224)])(_0x3d38cf=>_0x3d38cf[_0x364a7c(0xed)]())),this[_0x364a7c(0x3f3)][_0x364a7c(0x40e)](_0x433f65[_0x364a7c(0xa5)][_0x364a7c(0x146)])[_0x364a7c(0x192)]((0x0,_0x223d83[_0x364a7c(0x224)])(_0x18560c=>_0x18560c['getUnitId']())))[_0x364a7c(0x252)](_0x45bb92=>this[_0x364a7c(0x10f)](_0x45bb92)));}[_0x4fa2a5(0x26d)](_0x3acdb1){const _0x3a65f1=_0x4fa2a5;return this[_0x3a65f1(0x20e)][_0x3a65f1(0x1de)](_0x3acdb1)?(0x0,_0x450705['of'])(this[_0x3a65f1(0x20e)][_0x3a65f1(0x2c0)](_0x3acdb1)):this[_0x3a65f1(0x34b)][_0x3a65f1(0x192)]((0x0,_0x223d83['map'])(_0xdcb2c5=>{const _0x19efd9=_0x3a65f1;if(_0xdcb2c5===_0x3acdb1)return this['_roomMembers'][_0x19efd9(0x2c0)](_0xdcb2c5);}));}[_0x4fa2a5(0x31a)](_0xbd486f,_0x3bb74d){const _0x47f17b=_0x4fa2a5;let _0xac009=this['_roomMembers'][_0x47f17b(0x2c0)](_0xbd486f);_0xac009||(_0xac009=new _0x5109ef(),this[_0x47f17b(0x20e)][_0x47f17b(0x10c)](_0xbd486f,_0xac009),this[_0x47f17b(0x34b)]['next'](_0xbd486f)),_0xac009[_0x47f17b(0x31a)](_0x3bb74d);}[_0x4fa2a5(0x2e3)](_0x2e7840,_0x2b0188){const _0xc4d8bb=_0x4fa2a5;let _0x355e36=this[_0xc4d8bb(0x20e)][_0xc4d8bb(0x2c0)](_0x2e7840);_0x355e36&&_0x355e36['removeMember'](_0x2b0188);}[_0x4fa2a5(0x379)](_0x150014){const _0x5df899=_0x4fa2a5;return this[_0x5df899(0x20e)][_0x5df899(0x2c0)](_0x150014);}[_0x4fa2a5(0x251)](_0x5623c0,_0x4264a4){const _0x5964ae=_0x4fa2a5;let _0x42eee2=this['_roomMembers'][_0x5964ae(0x2c0)](_0x5623c0);if(_0x42eee2)return _0x42eee2[_0x5964ae(0x251)](_0x4264a4);}[_0x4fa2a5(0x10f)](_0x1d4ba9){const _0x3d8170=_0x4fa2a5;let _0x4d6961=this[_0x3d8170(0x20e)][_0x3d8170(0x2c0)](_0x1d4ba9);_0x4d6961&&(_0x4d6961[_0x3d8170(0x3b4)](),this[_0x3d8170(0x20e)][_0x3d8170(0x3ae)](_0x1d4ba9));}[_0x4fa2a5(0x3b4)](){const _0x4e468a=_0x4fa2a5;this[_0x4e468a(0x20e)]['forEach'](_0x29ca23=>_0x29ca23[_0x4e468a(0x3b4)]()),this['_roomMembers'][_0x4e468a(0x2f9)](),this[_0x4e468a(0x34b)][_0x4e468a(0x410)]();}};_0x54117e=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x39b)])],_0x54117e);var _0x5109ef=class extends _0x433f65['Disposable']{constructor(..._0x3808c8){const _0x345d8d=_0x4fa2a5;super(..._0x3808c8),_0x5aacdf(this,'_members',new Map()),_0x5aacdf(this,'_members$',new _0x450705[(_0x345d8d(0x1f8))](this[_0x345d8d(0x30e)])),_0x5aacdf(this,_0x345d8d(0x1c2),this[_0x345d8d(0x39d)]['asObservable']());}['dispose'](){const _0x2d1d48=_0x4fa2a5;this[_0x2d1d48(0x30e)][_0x2d1d48(0x2f9)](),this[_0x2d1d48(0x39d)]['complete']();}[_0x4fa2a5(0x31a)](_0xad6860){const _0x355691=_0x4fa2a5;this[_0x355691(0x30e)][_0x355691(0x10c)](_0xad6860[_0x355691(0x38b)],_0xad6860),this['_emitMembers']();}[_0x4fa2a5(0x2e3)](_0x120759){const _0x4731c6=_0x4fa2a5;this['_members'][_0x4731c6(0x3ae)](_0x120759),this[_0x4731c6(0x331)]();}[_0x4fa2a5(0x251)](_0x171b4e){const _0xf8d2dc=_0x4fa2a5;return this[_0xf8d2dc(0x30e)]['get'](_0x171b4e);}[_0x4fa2a5(0x287)](){const _0x44d30c=_0x4fa2a5;return Array[_0x44d30c(0x33e)](this[_0x44d30c(0x30e)][_0x44d30c(0x168)]());}['_emitMembers'](){const _0x11c440=_0x4fa2a5;this[_0x11c440(0x39d)]['next'](this[_0x11c440(0x30e)]);}};function _0x761a72(_0x1b293f,_0x5b75d1){const _0x3beb8f=_0x4fa2a5;if(_0x2beb81(_0x1b293f))return _0x5b75d1;if(_0x5b75d1[_0x3beb8f(0x130)]===_0x3a5734[_0x3beb8f(0xec)][_0x3beb8f(0x22d)]){let _0x1cdf32=_0x364415(_0x1b293f),_0x3a0a65=_0x5b75d1;return{..._0x3a0a65,'data':{..._0x3a0a65[_0x3beb8f(0x2c7)],'unitID':_0x1b293f['target'][_0x3beb8f(0x229)],'unitType':_0x1b293f[_0x3beb8f(0x24c)][_0x3beb8f(0x10a)]??_0x3a0a65[_0x3beb8f(0x2c7)]['unitType'],'changeset':_0x1cdf32['toRemote'](_0x3a0a65['data'][_0x3beb8f(0xf9)],_0x116dcb(_0x1b293f))}};}if(_0x5b75d1['eventID']===_0x3a5734[_0x3beb8f(0xec)][_0x3beb8f(0x1e1)]){let _0xe52ed6=_0x5b75d1;return{..._0xe52ed6,'data':{..._0xe52ed6['data'],'unitID':_0x1b293f[_0x3beb8f(0x24c)][_0x3beb8f(0x229)],'unitType':_0x1b293f[_0x3beb8f(0x24c)][_0x3beb8f(0x10a)]??_0xe52ed6[_0x3beb8f(0x2c7)][_0x3beb8f(0x10a)]}};}return _0x5b75d1;}function _0x450cf8(_0x5bec97,_0x3736d9){const _0x59b73d=_0x4fa2a5;if(_0x2beb81(_0x5bec97))return[_0x3736d9];switch(_0x3736d9['eventID']){case _0x3a5734[_0x59b73d(0xec)][_0x59b73d(0x24f)]:return[_0x1d2b0e(_0x5bec97,_0x3736d9)];case _0x3a5734[_0x59b73d(0xec)][_0x59b73d(0x2ec)]:return[_0x270e93(_0x5bec97,_0x3736d9)];case _0x3a5734[_0x59b73d(0xec)]['CHANGESET_SHOULD_RETRY']:return[_0x2b6d9f(_0x5bec97,_0x3736d9)];default:return[_0x3736d9];}}function _0x2beb81(_0x53bfc4){const _0x49b4d7=_0x4fa2a5;return _0x53bfc4[_0x49b4d7(0x24c)][_0x49b4d7(0x13a)]==null&&_0x53bfc4[_0x49b4d7(0x24c)][_0x49b4d7(0x229)]===_0x53bfc4[_0x49b4d7(0x1d3)]&&!_0x53bfc4['changeset'];}function _0x1d2b0e(_0x30cce4,_0x4b182f){const _0x54c378=_0x4fa2a5;return{..._0x4b182f,'data':(0x0,_0x3a5734[_0x54c378(0x26e)])(_0x4fae39(_0x30cce4,(0x0,_0x3a5734[_0x54c378(0x111)])(_0x4b182f[_0x54c378(0x2c7)])))};}function _0x2b6d9f(_0x134169,_0x27f523){return{..._0x27f523,'data':_0x4fae39(_0x134169,_0x27f523['data'])};}function _0x270e93(_0x443d70,_0x4ce018){const _0x182655=_0x4fa2a5;let _0x4d3da0=_0x4ce018[_0x182655(0x2c7)];return{..._0x4ce018,'data':{..._0x4d3da0,'changesets':_0x4d3da0[_0x182655(0x386)]['map'](_0x1f3e06=>(0x0,_0x3a5734[_0x182655(0x26e)])(_0x4fae39(_0x443d70,(0x0,_0x3a5734[_0x182655(0x111)])(_0x1f3e06))))}};}function _0x4fae39(_0x347cd2,_0x3a9041){const _0x51d7e5=_0x4fa2a5;return _0x364415(_0x347cd2)[_0x51d7e5(0x263)](_0x3a9041,_0x116dcb(_0x347cd2));}function _0x364415(_0x2d48a2){const _0x289424=_0x4fa2a5;if(!_0x2d48a2[_0x289424(0xf9)])throw Error(_0x289424(0x1f9));return _0x2d48a2[_0x289424(0xf9)];}function _0x116dcb(_0x1db490){const _0x5b8fb5=_0x4fa2a5;return{'localUnitId':_0x1db490[_0x5b8fb5(0x1d3)],'unitType':_0x1db490[_0x5b8fb5(0x10a)],'target':_0x1db490['target']};}let _0x151b7d=function(_0x2b8311){const _0x18509f=_0x4fa2a5;return _0x2b8311[_0x2b8311[_0x18509f(0x392)]=0x0]=_0x18509f(0x392),_0x2b8311[_0x2b8311[_0x18509f(0x32d)]=0x1]='JOINING',_0x2b8311[_0x2b8311[_0x18509f(0x2b6)]=0x2]='OFFLINE',_0x2b8311[_0x2b8311[_0x18509f(0xfb)]=0x3]='ONLINE',_0x2b8311;}({}),_0x2c41c2={[_0x4ed0d4[_0x4fa2a5(0x27a)][_0x4fa2a5(0x13d)]]:_0x4fa2a5(0x404),[_0x4ed0d4[_0x4fa2a5(0x27a)][_0x4fa2a5(0x3e7)]]:_0x4fa2a5(0x245),[_0x4ed0d4[_0x4fa2a5(0x27a)]['JOIN_ROOM_NOT_EXISTS']]:_0x4fa2a5(0x419),[_0x4ed0d4[_0x4fa2a5(0x27a)][_0x4fa2a5(0x1c5)]]:_0x4fa2a5(0x3b6),[_0x4ed0d4[_0x4fa2a5(0x27a)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x4fa2a5(0x346)},_0x45e291=class extends _0x433f65[_0x4fa2a5(0x24b)]{get['sessionStatus'](){const _0x40d3fe=_0x4fa2a5;return this[_0x40d3fe(0x3cb)]['getValue']();}constructor(_0x3657f7,_0x1ab513,_0x116dcf,_0x3779a2,_0x2a932c,_0x2fc035,_0x119940,_0x39ca04){const _0x4f9419=_0x4fa2a5;super(),this[_0x4f9419(0x37d)]=_0x3657f7,this[_0x4f9419(0x314)]=_0x116dcf,this[_0x4f9419(0x1a9)]=_0x3779a2,this[_0x4f9419(0x31f)]=_0x2a932c,this[_0x4f9419(0x385)]=_0x2fc035,this['_collaborationUIEventService']=_0x119940,this[_0x4f9419(0x2e8)]=_0x39ca04,_0x5aacdf(this,_0x4f9419(0x3cb),new _0x450705[(_0x4f9419(0x1f8))](0x0)),_0x5aacdf(this,_0x4f9419(0x199),this[_0x4f9419(0x3cb)][_0x4f9419(0x343)]()),_0x5aacdf(this,_0x4f9419(0x13f),new _0x450705[(_0x4f9419(0x155))]()),_0x5aacdf(this,'event$',this[_0x4f9419(0x13f)][_0x4f9419(0x343)]()),_0x5aacdf(this,_0x4f9419(0x313),void 0x0),_0x5aacdf(this,_0x4f9419(0x20f),void 0x0),_0x5aacdf(this,'_collaborationTimeoutTimer',void 0x0),_0x5aacdf(this,_0x4f9419(0x230),!0x1),_0x5aacdf(this,_0x4f9419(0x27b),null),this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x1ab513['pipe']((0x0,_0x450705[_0x4f9419(0x1c3)])(this[_0x4f9419(0xc4)]))[_0x4f9419(0x252)](_0x4b2096=>{const _0x2aeb7f=_0x4f9419;if(_0x4b2096!==void 0x0){if(this[_0x2aeb7f(0x313)]=_0x4b2096,_0x4b2096)this[_0x2aeb7f(0x3d5)](_0x4b2096),this[_0x2aeb7f(0x20f)]=_0x4b2096[_0x2aeb7f(0x197)]['subscribe'](_0x1989b2=>{const _0x431274=_0x2aeb7f;_0x1989b2[_0x431274(0x231)]===this[_0x431274(0x37d)][_0x431274(0x24c)][_0x431274(0x229)]&&this[_0x431274(0x14c)](_0x1989b2);});else{var _0x20eaa9;this[_0x2aeb7f(0xa2)](),this['_sessionStatus$'][_0x2aeb7f(0x163)](0x2),(_0x20eaa9=this[_0x2aeb7f(0x20f)])==null||_0x20eaa9[_0x2aeb7f(0x3ba)](),this[_0x2aeb7f(0x20f)]=null;}}});}[_0x4fa2a5(0x250)](){const _0x457764=_0x4fa2a5;var _0x49d26d;return((_0x49d26d=this['_socket'])==null?void 0x0:_0x49d26d[_0x457764(0x38b)])??null;}[_0x4fa2a5(0x3b4)](){const _0x3113c6=_0x4fa2a5;super[_0x3113c6(0x3b4)](),this['close'](),this[_0x3113c6(0xc4)]['next'](),this[_0x3113c6(0xc4)]['complete']();}[_0x4fa2a5(0x17d)](){const _0x11d444=_0x4fa2a5;var _0x5da65e;this[_0x11d444(0xa2)](),(_0x5da65e=this['_socket'])==null||_0x5da65e['send']({'cmd':_0x4ed0d4[_0x11d444(0x35a)][_0x11d444(0xc9)],'data':{'roomID':this['_identity'][_0x11d444(0x24c)]['unitId']}}),this[_0x11d444(0x13f)][_0x11d444(0x410)](),this[_0x11d444(0x3cb)]['complete']();}[_0x4fa2a5(0x14c)](_0x519431){const _0xdf7c04=_0x4fa2a5;_0x519431[_0xdf7c04(0x20a)]===_0x4ed0d4[_0xdf7c04(0x35a)][_0xdf7c04(0x22e)]?this['_onJoinRoomEvent'](_0x519431):_0x519431[_0xdf7c04(0x20a)]===_0x4ed0d4[_0xdf7c04(0x35a)][_0xdf7c04(0x1f4)]&&this[_0xdf7c04(0x3e9)](_0x519431);}['_joinRoom'](_0x409ad6){const _0x305856=_0x4fa2a5;this[_0x305856(0x3cb)][_0x305856(0x163)](0x1),_0x409ad6[_0x305856(0x402)]({'cmd':_0x4ed0d4[_0x305856(0x35a)][_0x305856(0x22e)],'routeKey':this[_0x305856(0x37d)][_0x305856(0x24c)][_0x305856(0x229)],'routeType':'','data':{'rooms':[{'roomID':this[_0x305856(0x37d)]['target'][_0x305856(0x229)]}]}});}[_0x4fa2a5(0x194)](_0x57b64c){const _0x4307e6=_0x4fa2a5;var _0x4c9344;if(_0x57b64c['code']in _0x2c41c2){this[_0x4307e6(0x347)]['emitEvent']({'id':_0x4307e6(0x183),'data':_0x2c41c2[_0x57b64c[_0x4307e6(0xb6)]]}),this[_0x4307e6(0x3cb)][_0x4307e6(0x163)](0x2);return;}this[_0x4307e6(0x3cb)][_0x4307e6(0x163)](0x3);let _0x247502=(_0x4c9344=_0x57b64c['data']['roomInfos'][this[_0x4307e6(0x37d)][_0x4307e6(0x24c)][_0x4307e6(0x229)]])==null?void 0x0:_0x4c9344[_0x4307e6(0xbb)];_0x247502&&_0x247502[_0x4307e6(0x1d2)](_0x4ebcc0=>this[_0x4307e6(0x31f)][_0x4307e6(0x31a)](this['_identity'][_0x4307e6(0x1d3)],_0x4ebcc0));}[_0x4fa2a5(0x3e9)](_0x37a88e){const _0x4d0661=_0x4fa2a5;try{let _0xfe344=_0x450cf8(this['_identity'],_0x37a88e[_0x4d0661(0x2c7)]);for(let _0xef6fa6 of _0xfe344)switch(_0xef6fa6[_0x4d0661(0x130)]){case _0x3a5734['CollaborationEvent'][_0x4d0661(0xce)]:this['_onUserJoin'](_0xef6fa6),this[_0x4d0661(0x13f)][_0x4d0661(0x163)](_0xef6fa6);break;case _0x3a5734[_0x4d0661(0xec)][_0x4d0661(0x1d9)]:this[_0x4d0661(0xfc)](_0xef6fa6),this[_0x4d0661(0x13f)][_0x4d0661(0x163)](_0xef6fa6);break;case _0x3a5734['CollaborationEvent'][_0x4d0661(0x370)]:case _0x3a5734[_0x4d0661(0xec)]['CHANGESET_SHOULD_RETRY']:this[_0x4d0661(0x122)](),this['_clearCollaborationTimeoutTimer'](),this[_0x4d0661(0x13f)][_0x4d0661(0x163)](_0xef6fa6);break;case _0x3a5734[_0x4d0661(0xec)][_0x4d0661(0x3f9)]:this[_0x4d0661(0x314)][_0x4d0661(0x187)](_0x4d0661(0x3c2)+JSON[_0x4d0661(0x3be)](_0xef6fa6)),this['_event$'][_0x4d0661(0x163)](_0xef6fa6);break;case _0x3a5734[_0x4d0661(0xec)][_0x4d0661(0x128)]:this['_commentService'][_0x4d0661(0x3ad)](_0xef6fa6[_0x4d0661(0x2c7)]),this[_0x4d0661(0x13f)][_0x4d0661(0x163)](_0xef6fa6);break;default:this['_event$'][_0x4d0661(0x163)](_0xef6fa6);}}catch(_0x394c71){this[_0x4d0661(0x314)][_0x4d0661(0x187)](_0x394c71,_0x37a88e);}}[_0x4fa2a5(0x25a)](_0x8ae9a2){const _0x3756a5=_0x4fa2a5;this[_0x3756a5(0x31f)][_0x3756a5(0x31a)](this[_0x3756a5(0x37d)][_0x3756a5(0x1d3)],_0x8ae9a2[_0x3756a5(0x2c7)]);}['_onUserLeave'](_0x5323ee){const _0x1afc2c=_0x4fa2a5;this['_memberService']['removeMember'](this[_0x1afc2c(0x37d)][_0x1afc2c(0x1d3)],_0x5323ee[_0x1afc2c(0x2c7)][_0x1afc2c(0x38b)]);}async[_0x4fa2a5(0x402)](_0x30e30c,_0x59e224){const _0x55801d=_0x4fa2a5;if(this[_0x55801d(0xb9)]!==0x3||!this[_0x55801d(0x313)])throw Error(_0x55801d(0x3a4));try{let _0x35e72d=_0x761a72(this[_0x55801d(0x37d)],_0x30e30c);_0x35e72d[_0x55801d(0x130)]===_0x3a5734[_0x55801d(0xec)][_0x55801d(0x22d)]&&(this[_0x55801d(0x25c)](),this['_startTelemetryCollaborationNewChangeset'](_0x35e72d)),this[_0x55801d(0x313)][_0x55801d(0x402)]({'cmd':_0x4ed0d4[_0x55801d(0x35a)]['INGEST'],'routeKey':this[_0x55801d(0x37d)][_0x55801d(0x24c)][_0x55801d(0x229)],'routeType':'','data':_0x35e72d});}catch(_0x31b2f5){this[_0x55801d(0x314)][_0x55801d(0x187)](_0x31b2f5);}}[_0x4fa2a5(0x25c)](){const _0x484f8e=_0x4fa2a5;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x5b6d49=_0x5846;this[_0x5b6d49(0x2d7)]=null,this['_collaborationUIEventService']['emitEvent']({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this['_configService']['getConfig'](_0x484f8e(0x107))??0x4e20);}[_0x4fa2a5(0x19c)](){const _0x35dd3e=_0x4fa2a5;this[_0x35dd3e(0x2d7)]&&=(clearTimeout(this[_0x35dd3e(0x2d7)]),null);}[_0x4fa2a5(0x3af)](_0xb09fe1){const _0x3eec05=_0x4fa2a5;if(!this['_shouldReportTelemetry'])return;let {data:_0x3c2ce3}=_0xb09fe1,{unitID:_0x33dd1c,changeset:_0x37d2f8}=_0x3c2ce3,{mutations:_0x59a6db,type:_0x4a3324}=_0x37d2f8;this[_0x3eec05(0x27b)]={'unitId':_0x33dd1c,'type':_0x4a3324,'startTime':performance[_0x3eec05(0x3f4)](),'stopTime':0x0,'duration':0x0,'size':_0x178ce8(_0x59a6db)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x2872ab=_0x4fa2a5;if(this[_0x2872ab(0x230)]){if(!this['_telemetryInfo']){this[_0x2872ab(0x314)][_0x2872ab(0x187)](_0x2872ab(0x21e),_0x2872ab(0x39c));return;}this['_telemetryInfo'][_0x2872ab(0x241)]=performance[_0x2872ab(0x3f4)](),this[_0x2872ab(0x27b)][_0x2872ab(0x411)]=this['_telemetryInfo'][_0x2872ab(0x241)]-this[_0x2872ab(0x27b)][_0x2872ab(0x2fa)],this[_0x2872ab(0x2e8)][_0x2872ab(0x113)](_0x2872ab(0x1e0),this['_telemetryInfo']),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x3987dd=_0x4fa2a5;this[_0x3987dd(0x27b)]=null;}};_0x45e291=_0x13514e([_0x374c65(0x2,_0x433f65['ILogService']),_0x374c65(0x3,_0x433f65['IConfigService']),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x54117e)),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x49219e)),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x133d94['ITelemetryService']))],_0x45e291);let _0x471235=(0x0,_0x433f65[_0x4fa2a5(0xad)])('collaboration-client.local-cache-service');function _0x12d23(_0x59377c){return'unit-cache-'+_0x59377c;}function _0x2552c9(_0x16abab){const _0x4c626d=_0x4fa2a5;let {unitID:_0x128dd4,mutations:_0x3bc2d3}=_0x16abab;return{'unitId':_0x128dd4,'subUnitId':_0x3bc2d3[_0x4c626d(0x208)]>0x0?_0x3bc2d3[0x0][_0x4c626d(0x206)][_0x4c626d(0x110)]:null};}let _0x41b88d=class{constructor(_0x2ca3e4,_0x389ef8,_0x4309ff){const _0x5e68c0=_0x4fa2a5;this['_injector']=_0x2ca3e4,this['_transformService']=_0x389ef8,this[_0x5e68c0(0x175)]=_0x4309ff;}['transformSelections'](_0x420aac){const _0x374f75=_0x4fa2a5;var _0xd2f423,_0x48cfe1;let _0x536a9d=this['_injector'][_0x374f75(0x2c0)](_0x6a2ac6[_0x374f75(0x25e)]),{unitId:_0x467184,subUnitId:_0x4c1554}=_0x2552c9(_0x420aac),_0x4f84b4=_0x536a9d==null?void 0x0:_0x536a9d[_0x374f75(0x2eb)](_0x467184)['getCurrentSelections'](),_0xae9448=(_0xd2f423=this[_0x374f75(0x175)][_0x374f75(0x2df)](_0x467184))==null||(_0xd2f423=_0xd2f423[_0x374f75(0xfd)]())==null?void 0x0:_0xd2f423[_0x374f75(0x339)]();if(_0x4f84b4[_0x374f75(0x208)]===0x0||!_0x467184||!_0x4c1554)return;let _0x335cf0=[{'id':_0x6a2ac6[_0x374f75(0x29e)]['id'],'params':{'unitId':_0x467184,'subUnitId':_0xae9448,'selections':_0x433f65[_0x374f75(0x23d)][_0x374f75(0x30f)](_0x4f84b4)}}],_0x4bb417=this[_0x374f75(0x324)]['transformMutationsWithChangeset'](_0x420aac,_0x335cf0);if(!(0x0,_0x3a5734[_0x374f75(0xe3)])(_0x4bb417))throw _0x4bb417[_0x374f75(0x187)];let _0x2298c1=(_0x48cfe1=_0x4bb417[_0x374f75(0x259)][0x0])==null||(_0x48cfe1=_0x48cfe1['params'])==null?void 0x0:_0x48cfe1['selections'];if(Array[_0x374f75(0x1f7)](_0x2298c1)&&_0x2298c1[_0x374f75(0x208)]){if(_0x2298c1[_0x374f75(0x208)]===_0x335cf0[0x0]['params'][_0x374f75(0x159)]['length']&&_0x2298c1[_0x374f75(0x139)]((_0x6f4b48,_0x507abd)=>_0x433f65[_0x374f75(0x2d2)]['equals'](_0x6f4b48[_0x374f75(0xcb)],_0x335cf0[0x0][_0x374f75(0x206)][_0x374f75(0x159)][_0x507abd][_0x374f75(0xcb)])))return;this[_0x374f75(0x40f)][_0x374f75(0x2c0)](_0x433f65[_0x374f75(0x16d)])[_0x374f75(0x2bd)](_0x6a2ac6[_0x374f75(0x29e)]['id'],{'unitId':_0x467184,'subUnitId':_0xae9448,'selections':_0x2298c1});}}};_0x41b88d=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x1,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x39b)])],_0x41b88d);let _0x4aaa76=(0x0,_0x433f65[_0x4fa2a5(0xad)])(_0x4fa2a5(0x31d)),_0x1af2a5=function(_0x52cdd0){const _0x2584c3=_0x4fa2a5;return _0x52cdd0[_0x52cdd0[_0x2584c3(0x1cc)]=0x0]=_0x2584c3(0x1cc),_0x52cdd0[_0x52cdd0['OTHER_CLIENTS_EDITING']=0x1]=_0x2584c3(0x409),_0x52cdd0;}({});function _0x2786b9(_0x1e2017){const _0x93d29c=_0x4fa2a5;var _0x42ec96;return!!((_0x42ec96=_0x1e2017[_0x93d29c(0x206)])!=null&&_0x42ec96['__splitChunk__']);}let _0x2d94c0=new Set([_0x6a2ac6[_0x4fa2a5(0x13b)]['id']]),_0xebbaea=new Set([_0x255f6e[_0x4fa2a5(0x3f8)]['id'],_0x255f6e[_0x4fa2a5(0x371)]['id'],_0x255f6e[_0x4fa2a5(0xf7)]['id'],_0x255f6e[_0x4fa2a5(0x167)]['id']]);function _0x23a530(_0x1d6bfd,_0x3fbe2f=_0x2d94c0){const _0x347fe9=_0x4fa2a5;let _0x54c855=[];for(let _0x4ef12b of _0x1d6bfd){if(_0x3fbe2f['has'](_0x4ef12b['id'])){if(_0x54c855[_0x347fe9(0x208)]>0x0)break;_0x54c855[_0x347fe9(0x227)](_0x4ef12b);break;}if(_0x2786b9(_0x4ef12b)){if(_0x54c855['length']>0x0)break;_0x54c855[_0x347fe9(0x227)](_0x4ef12b);break;}_0x54c855[_0x347fe9(0x227)](_0x4ef12b);}return _0x54c855;}function _0x3b283c(_0x4c71fa,_0x353c4e,_0x5e398d,_0x38d08f,_0x2b48ac){const _0x377a77=_0x4fa2a5;let _0x42e379=_0x23a530(_0x4c71fa),_0x240e76=_0x2b48ac[_0x377a77(0x3b3)](),_0x367ccb=(_0x240e76==null?void 0x0:_0x240e76['userID'])??_0x377a77(0x281),_0x21c39e=(_0x240e76==null?void 0x0:_0x240e76[_0x377a77(0x38b)])??'unknown';return{'changeset':{'unitID':_0x353c4e,'type':(0x0,_0x3a5734[_0x377a77(0x3fb)])(_0x5e398d[_0x377a77(0x3c3)](_0x353c4e)),'baseRev':_0x38d08f['getCurrentRevOfUnit'](_0x353c4e),'revision':0x0,'userID':_0x367ccb,'memberID':_0x21c39e,'mutations':_0x42e379},'pendingMutations':_0x4c71fa[_0x377a77(0x1b2)](_0x42e379[_0x377a77(0x208)])};}let _0x5b1810=_0x3b283c;function _0x1cafbd(_0x2659f5,_0x331d2f,_0x360bc8,_0x19c09b,_0xe06320){const _0x1f2355=_0x4fa2a5;let _0x1f51a6=_0x23a530(_0x2659f5,_0xebbaea),_0x5586bd=_0xe06320['getCurrentUser'](),_0x11584d=(_0x5586bd==null?void 0x0:_0x5586bd[_0x1f2355(0x161)])??_0x1f2355(0x281),_0x2da08f=(_0x5586bd==null?void 0x0:_0x5586bd[_0x1f2355(0x38b)])??_0x1f2355(0x281);return{'changeset':{'unitID':_0x331d2f,'type':(0x0,_0x3a5734[_0x1f2355(0x3fb)])(_0x360bc8[_0x1f2355(0x3c3)](_0x331d2f)),'baseRev':_0x19c09b[_0x1f2355(0x36f)](_0x331d2f),'revision':0x0,'userID':_0x11584d,'memberID':_0x2da08f,'mutations':_0x1f51a6},'pendingMutations':_0x2659f5[_0x1f2355(0x1b2)](_0x1f51a6[_0x1f2355(0x208)])};}function _0x33f309(_0x97a916,_0x267b92,_0x563ba6,_0x2bd6d6,_0x34e6b5){const _0x258b69=_0x4fa2a5;let _0xd47a59=_0x97a916[_0x258b69(0xa0)]((_0x52799c,_0x4295db)=>{const _0x4b3b40=_0x258b69;let _0x4ced80=_0x52799c[_0x52799c[_0x4b3b40(0x208)]-0x1],{id:_0x3f51be}=_0x4ced80??{},{id:_0x273da5,type:_0xa25d0d}=_0x4295db,_0x183dd9=_0x4295db[_0x4b3b40(0x206)];if(_0x3f51be&&_0x3f51be!==_0x273da5)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x3f51be+_0x4b3b40(0x296)+_0x273da5+'.');if(!_0x4ced80)return[{'id':_0x273da5,'type':_0xa25d0d,'params':{'unitId':_0x183dd9['unitId'],'textRanges':_0x183dd9[_0x4b3b40(0x1ba)],'actions':_0x183dd9[_0x4b3b40(0x30a)]}}];let _0x3b0c8c=_0x4ced80[_0x4b3b40(0x206)];return _0x1f406a(_0x3b0c8c,_0x183dd9)?[..._0x52799c[_0x4b3b40(0x1b2)](0x0,-0x1),{..._0x4ced80,'id':_0x273da5,'type':_0xa25d0d,'params':{'unitId':_0x183dd9[_0x4b3b40(0x229)],'textRanges':_0x183dd9[_0x4b3b40(0x1ba)],'actions':_0x433f65[_0x4b3b40(0x152)][_0x4b3b40(0x357)](_0x3b0c8c[_0x4b3b40(0x30a)],_0x183dd9[_0x4b3b40(0x30a)])}}]:[..._0x52799c,{'id':_0x273da5,'type':_0xa25d0d,'params':{'unitId':_0x183dd9[_0x4b3b40(0x229)],'textRanges':_0x183dd9[_0x4b3b40(0x1ba)],'actions':_0x183dd9[_0x4b3b40(0x30a)]}}];},[]),_0x20fc7d=_0x34e6b5[_0x258b69(0x3b3)](),_0x7fdb8b=(_0x20fc7d==null?void 0x0:_0x20fc7d[_0x258b69(0x161)])??_0x258b69(0x281),_0x35a75d=(_0x20fc7d==null?void 0x0:_0x20fc7d['memberID'])??_0x258b69(0x281);return{'changeset':{'unitID':_0x267b92,'type':(0x0,_0x3a5734[_0x258b69(0x3fb)])(_0x563ba6[_0x258b69(0x3c3)](_0x267b92)),'baseRev':_0x2bd6d6[_0x258b69(0x36f)](_0x267b92),'revision':0x0,'userID':_0x7fdb8b,'memberID':_0x35a75d,'mutations':_0xd47a59},'pendingMutations':_0x97a916[_0x258b69(0x1b2)](_0x97a916['length'])};}function _0x1f406a(_0x4d70e5,_0x44700a){const _0x2bf64c=_0x4fa2a5;return!_0x11f43a(_0x4d70e5)&&!_0x11f43a(_0x44700a)&&_0x1979fd(_0x4d70e5[_0x2bf64c(0x30a)],_0x44700a[_0x2bf64c(0x30a)]);}function _0x11f43a(_0x12da7b){const _0x547dc8=_0x4fa2a5;return _0x12da7b[_0x547dc8(0x1a6)]!==void 0x0;}function _0x1979fd(_0x2f04f1,_0x3271e4){return _0x297b4a(_0x2f04f1)&&_0x297b4a(_0x3271e4)&&!_0x276fdb(_0x2f04f1)&&!_0x276fdb(_0x3271e4)&&!_0x26c8a3(_0x2f04f1)&&!_0x26c8a3(_0x3271e4);}function _0x297b4a(_0x55088a){const _0x1bd725=_0x4fa2a5;return _0x5c43bb(_0x55088a)[_0x1bd725(0x2b5)](_0x306220=>_0x3032f7(_0x306220)&&_0x306220['et']==='text-x');}function _0x26c8a3(_0x3fcf96){const _0x2169f3=_0x4fa2a5;return _0x5c43bb(_0x3fcf96)[_0x2169f3(0x2b5)](_0x27eaf7=>Array[_0x2169f3(0x1f7)](_0x27eaf7)||typeof _0x27eaf7==_0x2169f3(0x265)||typeof _0x27eaf7==_0x2169f3(0x374));}function _0x276fdb(_0x484a4d){const _0x593333=_0x4fa2a5;return _0x5c43bb(_0x484a4d)[_0x593333(0x2b5)](_0x32c705=>!_0x3032f7(_0x32c705)||_0x32c705['et']!==_0x593333(0x32f)||!Array[_0x593333(0x1f7)](_0x32c705['e'])?!0x1:_0x32c705['e'][_0x593333(0x2b5)](_0xe48d47=>!_0x3032f7(_0xe48d47)||!_0x3032f7(_0xe48d47['body'])?!0x1:Object[_0x593333(0x408)]['hasOwnProperty'][_0x593333(0x2e5)](_0xe48d47[_0x593333(0x280)],'tables')||Object[_0x593333(0x408)][_0x593333(0x3a0)]['call'](_0xe48d47[_0x593333(0x280)],_0x593333(0x2db))||Object[_0x593333(0x408)][_0x593333(0x3a0)][_0x593333(0x2e5)](_0xe48d47[_0x593333(0x280)],'blockRanges')));}function _0x5c43bb(_0x2b7cbb){const _0x296b0c=_0x4fa2a5;if(!Array[_0x296b0c(0x1f7)](_0x2b7cbb))return[];let _0x1f8d97=_0x2b7cbb['includes'](_0x296b0c(0x280))?_0x2b7cbb:_0x2b7cbb[_0x296b0c(0x101)](_0x4c9cca=>Array['isArray'](_0x4c9cca)&&_0x4c9cca[_0x296b0c(0x3ce)](_0x296b0c(0x280)));if(!Array['isArray'](_0x1f8d97))return[];let _0x2eade3=_0x1f8d97['indexOf']('body');return _0x2eade3===-0x1?[]:_0x1f8d97[_0x296b0c(0x1b2)](_0x2eade3+0x1);}function _0x3032f7(_0x4933aa){const _0x4c8900=_0x4fa2a5;return typeof _0x4933aa==_0x4c8900(0x221)&&!!_0x4933aa&&!Array[_0x4c8900(0x1f7)](_0x4933aa);}function _0x3e6378(_0x490abc,_0x9d61dd){const _0x41b0e9=_0x4fa2a5;let _0x222ff5=new _0x450705[(_0x41b0e9(0x337))](0x1);return setTimeout(()=>_0x222ff5['next'](_0x9d61dd),_0x490abc),_0x222ff5[_0x41b0e9(0x343)]()[_0x41b0e9(0x192)]((0x0,_0x450705[_0x41b0e9(0x3b1)])(0x1));}var _0x12ed9d,_0x2acb98,_0x413c1b;let _0x34aefb=function(_0x408003){const _0x5de86b=_0x4fa2a5;return _0x408003['NOT_COLLAB']=_0x5de86b(0x234),_0x408003['SYNCED']='synced',_0x408003[_0x5de86b(0x2e6)]=_0x5de86b(0x23c),_0x408003['AWAITING']=_0x5de86b(0x253),_0x408003[_0x5de86b(0x2f2)]=_0x5de86b(0x3db),_0x408003[_0x5de86b(0x1d0)]='fetch_missing',_0x408003[_0x5de86b(0x34e)]='conflict',_0x408003[_0x5de86b(0x2b6)]=_0x5de86b(0x233),_0x408003;}({}),_0x206406=0x4e20,_0x49318e=0x2bf20;var _0xfca92=class{constructor(_0x2714b0,_0x253db1,_0x47fd72,_0x2eb151,_0x32755f,_0xe63ae1,_0x40a2f2,_0x347ca7,_0x4bb0d0){const _0x2c7862=_0x4fa2a5;this[_0x2c7862(0x210)]=_0x2714b0,this['type']=_0x253db1,this['_handler']=_0x32755f,this[_0x2c7862(0x1ee)]=_0xe63ae1,this[_0x2c7862(0x26f)]=_0x40a2f2,this['_revisionService']=_0x347ca7,this[_0x2c7862(0x304)]=_0x4bb0d0,_0x5aacdf(this,'_awaitingChangeset',null),_0x5aacdf(this,_0x2c7862(0x2e1),[]),this['_awaitingChangeset']=_0x47fd72,this[_0x2c7862(0x2e1)]=_0x2eb151;}[_0x4fa2a5(0x217)](_0x381eb5){const _0x563742=_0x4fa2a5;let _0x112cc8=this['_revisionService'][_0x563742(0x36f)](this[_0x563742(0x210)]);return _0x381eb5[_0x563742(0x3bf)]>_0x112cc8+0x1&&(this[_0x563742(0x384)][_0x563742(0xea)]({'from':_0x112cc8,'to':_0x381eb5[_0x563742(0x3bf)]-0x1}),!0x0);}[_0x4fa2a5(0x31b)](_0x319d0f){const _0x238ac6=_0x4fa2a5;this[_0x238ac6(0x26f)]['transformUndoRedo'](this[_0x238ac6(0x210)],_0x319d0f);}[_0x4fa2a5(0x311)](_0x2a047e){const _0x345ded=_0x4fa2a5;var _0x504690,_0x48253d;(_0x504690=(_0x48253d=this[_0x345ded(0x384)])['onTransformSelections'])==null||_0x504690[_0x345ded(0x2e5)](_0x48253d,_0x2a047e);}[_0x4fa2a5(0x236)](_0x2f5ada){const _0x363598=_0x4fa2a5;var _0x196dd6,_0x248540;return((_0x196dd6=(_0x248540=this[_0x363598(0x384)])[_0x363598(0xba)])==null?void 0x0:_0x196dd6['call'](_0x248540,_0x2f5ada))??null;}['_transformIMECache'](_0x2b12e7){const _0x3c57ed=_0x4fa2a5;var _0x526f7,_0x409d62;return(_0x526f7=(_0x409d62=this[_0x3c57ed(0x384)])['onTransformIME'])==null?void 0x0:_0x526f7[_0x3c57ed(0x2e5)](_0x409d62,_0x2b12e7);}[_0x4fa2a5(0x25d)](_0x1f6806){const _0x1e3e23=_0x4fa2a5;var _0x51be8b,_0x4c4ecc;return(_0x51be8b=(_0x4c4ecc=this[_0x1e3e23(0x384)])['onTransformState'])==null?void 0x0:_0x51be8b[_0x1e3e23(0x2e5)](_0x4c4ecc,_0x1f6806);}[_0x4fa2a5(0x1e3)](_0x38e3a1){const _0x1ad7fb=_0x4fa2a5;var _0x2685da,_0x3d695c;return((_0x2685da=(_0x3d695c=this[_0x1ad7fb(0x384)])[_0x1ad7fb(0x1af)])==null?void 0x0:_0x2685da[_0x1ad7fb(0x2e5)](_0x3d695c,_0x38e3a1))??_0x38e3a1;}[_0x4fa2a5(0x2f7)](_0x4e1478){const _0x13fc92=_0x4fa2a5;var _0x3c8036,_0x343a59;return((_0x3c8036=(_0x343a59=this[_0x13fc92(0x384)])[_0x13fc92(0x116)])==null?void 0x0:_0x3c8036[_0x13fc92(0x2e5)](_0x343a59,_0x4e1478))??_0x4e1478;}['_syncEditingCollabCursor'](_0x3089f5){const _0x2a6f21=_0x4fa2a5;if(this['type']===_0x433f65['UniverInstanceType'][_0x2a6f21(0x237)]){let {unitID:_0xdce07,mutations:_0x4b9876,memberID:_0x4d129c}=_0x3089f5,_0x48d4b9=_0x4b9876[_0x2a6f21(0x208)]>0x0?_0x4b9876[0x0]['params'][_0x2a6f21(0x1ba)]:[];if(Array[_0x2a6f21(0x1f7)](_0x48d4b9)&&_0x48d4b9['length']>0x0){var _0x1f238d,_0x46ba33;(_0x1f238d=(_0x46ba33=this['_handler'])[_0x2a6f21(0x256)])==null||_0x1f238d['call'](_0x46ba33,{'unitID':_0xdce07,'memberID':_0x4d129c,'textRanges':_0x48d4b9});}}}[_0x4fa2a5(0xc0)](){const _0x27007c=_0x4fa2a5;var _0x2121bf;(_0x2121bf=this[_0x27007c(0x304)])==null||_0x2121bf['updateOfflineData'](this[_0x27007c(0x210)],this[_0x27007c(0x3c6)],this[_0x27007c(0x2fe)],this[_0x27007c(0x2e1)]);}[_0x4fa2a5(0x28c)](){const _0x478fc6=_0x4fa2a5;return this[_0x478fc6(0x141)][_0x478fc6(0x36f)](this[_0x478fc6(0x210)]);}['_incrementRevisionNumber'](){const _0x247791=_0x4fa2a5;this[_0x247791(0x141)][_0x247791(0xf6)](this[_0x247791(0x210)]);}[_0x4fa2a5(0x19a)](_0x635a59){const _0x2068f4=_0x4fa2a5;let _0x4e855a=this[_0x2068f4(0x1e3)](_0x635a59);_0x4e855a=this['_transformRemoteChangesetByStateCache'](_0x4e855a);let _0x46f0d0=this[_0x2068f4(0x236)](_0x4e855a),_0x202910=(0x0,_0x433f65[_0x2068f4(0x1e5)])(_0x4e855a[_0x2068f4(0x2d5)],this['_commandService'],{'fromCollab':!0x0});if(!_0x202910['result'])throw _0x46f0d0==null||_0x46f0d0[_0x2068f4(0x369)](),_0x202910['error']instanceof Error?_0x202910[_0x2068f4(0x187)]:Error(_0x202910[_0x2068f4(0x187)]??'[CollaborationState]:\x20apply\x20error!');_0x46f0d0==null||_0x46f0d0[_0x2068f4(0x38c)](),this[_0x2068f4(0x38e)](_0x4e855a),this[_0x2068f4(0x25d)](_0x4e855a),this[_0x2068f4(0x31b)](_0x635a59),this[_0x2068f4(0x311)](_0x4e855a),this[_0x2068f4(0x174)](_0x4e855a),this[_0x2068f4(0xb5)]();}};let _0x4f3cea=class extends _0xfca92{constructor(_0x558be1,_0x377a1f,_0xed7e54,_0x142012,_0x314cb9,_0x3c6b13,_0x5ac759,_0x28915c,_0x257d15,_0x54dd5f){const _0x1dc13c=_0x4fa2a5;super(_0x558be1,_0x377a1f,null,[],_0xed7e54,_0x5ac759,_0x3c6b13,_0x142012,_0x54dd5f),this[_0x1dc13c(0x40f)]=_0x314cb9,this[_0x1dc13c(0x314)]=_0x28915c,this[_0x1dc13c(0x324)]=_0x257d15,this['localCacheService']=_0x54dd5f,_0x5aacdf(this,'status',_0x1dc13c(0x1cd));}['appendMutation'](_0x30a24a){const _0x1017c4=_0x4fa2a5;let _0xfc7700=this[_0x1017c4(0x40f)][_0x1017c4(0x11d)](_0x2845dd,this[_0x1017c4(0x210)],this['type'],[_0x30a24a],this[_0x1017c4(0x384)]);return _0xfc7700[_0x1017c4(0x39a)](),_0xfc7700[_0x1017c4(0xc0)](),_0xfc7700;}[_0x4fa2a5(0x24a)](_0x5b5a75){const _0x4ca84c=_0x4fa2a5;if(this[_0x4ca84c(0x217)](_0x5b5a75))return this['_injector'][_0x4ca84c(0x11d)](_0x1ba45e,this[_0x4ca84c(0x210)],this[_0x4ca84c(0x3c6)],null,[],null,[_0x5b5a75],this['_handler']);try{let _0x41198b=this[_0x4ca84c(0x324)]['transformMutationsWithChangeset'](_0x5b5a75,[_0x3a5734['EmptyMutationInfo']]);if((0x0,_0x3a5734['isTransformMutationsWithChangesetSuccess'])(_0x41198b)){let {c1Prime:_0x39ec58}=_0x41198b;return this['_executeRemoteChangeset'](_0x39ec58),this;}throw _0x41198b[_0x4ca84c(0x187)];}catch(_0xaaf94c){return this['_logService'][_0x4ca84c(0x187)](_0xaaf94c),this[_0x4ca84c(0xae)](!0x1);}}['_onConflict'](_0x4c10d9){const _0x5bb5a8=_0x4fa2a5;return this[_0x5bb5a8(0x40f)]['createInstance'](_0x7d595b,this['unitID'],this[_0x5bb5a8(0x3c6)],null,[],this[_0x5bb5a8(0x384)],_0x4c10d9);}[_0x4fa2a5(0xb1)](_0x5d0fca){const _0x1fac14=_0x4fa2a5;if(_0x5d0fca[_0x1fac14(0x3bf)]<=this['_getCurrentRevision']())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x4fa2a5(0x18d)](){const _0xd22d33=_0x4fa2a5;throw Error(_0xd22d33(0xd3));}[_0x4fa2a5(0xdd)](){return this;}['toggleOffline'](){const _0x44ff1a=_0x4fa2a5;return this[_0x44ff1a(0x40f)][_0x44ff1a(0x11d)](_0x5a97ff,this['unitID'],this[_0x44ff1a(0x3c6)],null,[],this[_0x44ff1a(0x384)]);}[_0x4fa2a5(0xa6)](){return this;}['resend'](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4fa2a5(0x1ab)](){const _0xadc7d0=_0x4fa2a5;let _0x43e9c8=this[_0xadc7d0(0x141)][_0xadc7d0(0x36f)](this[_0xadc7d0(0x210)]);return this[_0xadc7d0(0x384)]['onMissingChangesets']({'from':_0x43e9c8,'to':0x0}),this[_0xadc7d0(0x40f)]['createInstance'](_0x1ba45e,this[_0xadc7d0(0x210)],this[_0xadc7d0(0x3c6)],null,[],null,[],this[_0xadc7d0(0x384)]);}};_0x4f3cea=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65['Inject'])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x5,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0x6,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0x7,_0x433f65['ILogService']),_0x374c65(0x8,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0x9,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x4f3cea);let _0x2845dd=_0x12ed9d=class extends _0xfca92{constructor(_0x2ff4ce,_0x566013,_0x1caab2,_0x228065,_0x2fd929,_0x1938f6,_0x27ac8f,_0x416b0a,_0x13c931,_0x3d6a5a,_0x28909f,_0x5c8c7a,_0x14c554,_0x44d389){const _0x48f0f3=_0x4fa2a5;super(_0x2ff4ce,_0x566013,null,_0x1caab2,_0x228065,_0x13c931,_0x14c554,_0x1938f6,_0x44d389),this['_injector']=_0x2fd929,this[_0x48f0f3(0xdb)]=_0x27ac8f,this[_0x48f0f3(0x314)]=_0x416b0a,this[_0x48f0f3(0x1a9)]=_0x3d6a5a,this['_transformService']=_0x28909f,this['_univerInstanceService']=_0x5c8c7a,_0x5aacdf(this,_0x48f0f3(0x1e8),_0x48f0f3(0x23c)),_0x5aacdf(this,_0x48f0f3(0x14f),null),_0x5aacdf(this,'_sendingTimer',null);}[_0x4fa2a5(0x407)](_0x555a7e){const _0x29e96a=_0x4fa2a5;return this['_pendingMutations']['push'](_0x555a7e),this[_0x29e96a(0xc0)](),this;}[_0x4fa2a5(0x24a)](_0x1d7935){const _0x3a1e59=_0x4fa2a5;if(this[_0x3a1e59(0x217)](_0x1d7935))return this[_0x3a1e59(0x2c2)](),this[_0x3a1e59(0x40f)][_0x3a1e59(0x11d)](_0x1ba45e,this[_0x3a1e59(0x210)],this['type'],null,this['_pendingMutations'],null,[_0x1d7935],this[_0x3a1e59(0x384)]);try{let _0x460d18=this[_0x3a1e59(0x324)][_0x3a1e59(0x2ad)](_0x1d7935,this[_0x3a1e59(0x2e1)]);if((0x0,_0x3a5734[_0x3a1e59(0xe3)])(_0x460d18)){let {c1Prime:_0x1b4fbd,m2Prime:_0x240038}=_0x460d18;this[_0x3a1e59(0x19a)](_0x1b4fbd);let _0x32cfb4=this[_0x3a1e59(0x40f)][_0x3a1e59(0x11d)](_0x12ed9d,this[_0x3a1e59(0x210)],this[_0x3a1e59(0x3c6)],_0x240038,this[_0x3a1e59(0x384)]);this[_0x3a1e59(0x2c2)]();let _0x460c7a=new Date()[_0x3a1e59(0x28b)](),_0x1c9e61=this[_0x3a1e59(0x14f)]?Math['max'](this[_0x3a1e59(0x14f)]-_0x460c7a,0x0):this[_0x3a1e59(0x189)]();return _0x32cfb4[_0x3a1e59(0x39a)](_0x1c9e61),_0x32cfb4;}throw _0x460d18[_0x3a1e59(0x187)];}catch(_0x341d57){return this['_logService'][_0x3a1e59(0x187)](_0x341d57),this[_0x3a1e59(0xae)](!0x1);}}[_0x4fa2a5(0xb1)](_0x497080){const _0x269969=_0x4fa2a5;if(_0x497080[_0x269969(0x3bf)]<=this[_0x269969(0x28c)]())return this;throw Error(_0x269969(0x1a1));}[_0x4fa2a5(0x18d)](){const _0x59b374=_0x4fa2a5;throw Error(_0x59b374(0x3fa));}[_0x4fa2a5(0xdd)](){return this;}[_0x4fa2a5(0x299)](){const _0x47d494=_0x4fa2a5;return this[_0x47d494(0x2c2)](),this[_0x47d494(0x40f)][_0x47d494(0x11d)](_0x5a97ff,this[_0x47d494(0x210)],this[_0x47d494(0x3c6)],null,this[_0x47d494(0x2e1)],this['_handler']);}[_0x4fa2a5(0xa6)](){return this;}[_0x4fa2a5(0x39a)](_0xdba75b){const _0x2321dc=_0x4fa2a5;let _0x20b5e7=_0xdba75b??this[_0x2321dc(0x189)]();this[_0x2321dc(0x14f)]=new Date()['getTime']()+_0x20b5e7,this[_0x2321dc(0x10e)]=setTimeout(()=>{const _0x472163=_0x2321dc;this[_0x472163(0x2c2)]();let _0xa90c34=null;switch(this['type']){case _0x433f65['UniverInstanceType'][_0x472163(0xb4)]:_0xa90c34=_0x3b283c(this['_pendingMutations'],this[_0x472163(0x210)],this['_univerInstanceService'],this[_0x472163(0x141)],this[_0x472163(0xdb)]);break;case _0x433f65['UniverInstanceType']['UNIVER_DOC']:_0xa90c34=this['_pendingMutations'][_0x472163(0x139)](_0x394eda=>_0x394eda['id']===_0xaa3595[_0x472163(0x184)]['id'])?_0x33f309(this['_pendingMutations'],this[_0x472163(0x210)],this[_0x472163(0x3f3)],this[_0x472163(0x141)],this['_userManagerService']):_0x3b283c(this[_0x472163(0x2e1)],this[_0x472163(0x210)],this[_0x472163(0x3f3)],this[_0x472163(0x141)],this[_0x472163(0xdb)]);break;case _0x433f65[_0x472163(0xa5)][_0x472163(0xcd)]:_0xa90c34=_0x1cafbd(this[_0x472163(0x2e1)],this[_0x472163(0x210)],this[_0x472163(0x3f3)],this[_0x472163(0x141)],this[_0x472163(0xdb)]);break;case _0x433f65['UniverInstanceType']['UNIVER_PDF']:_0xa90c34=_0x5b1810(this[_0x472163(0x2e1)],this[_0x472163(0x210)],this['_univerInstanceService'],this[_0x472163(0x141)],this[_0x472163(0xdb)]);break;case _0x433f65['UniverInstanceType']['UNIVER_BOARD']:_0xa90c34=_0x3b283c(this[_0x472163(0x2e1)],this[_0x472163(0x210)],this['_univerInstanceService'],this[_0x472163(0x141)],this[_0x472163(0xdb)]);break;case _0x433f65[_0x472163(0xa5)]['UNIVER_BASE']:_0xa90c34=_0x3b283c(this[_0x472163(0x2e1)],this[_0x472163(0x210)],this[_0x472163(0x3f3)],this['_revisionService'],this[_0x472163(0xdb)]);break;default:throw Error(_0x472163(0x355)+this['type']+_0x472163(0x283));}let {changeset:_0x2207c4,pendingMutations:_0x4f330e}=_0xa90c34;this[_0x472163(0x384)][_0x472163(0x2d9)](_0x2207c4);let _0x4f702f=_0x4f330e['length']?this['_injector'][_0x472163(0x11d)](_0x16395e,this[_0x472163(0x210)],this[_0x472163(0x3c6)],_0x2207c4,_0x4f330e,this['_handler'],void 0x0):this[_0x472163(0x40f)][_0x472163(0x11d)](_0x42f6fe,this[_0x472163(0x210)],this[_0x472163(0x3c6)],_0x2207c4,this[_0x472163(0x384)]);_0x4f702f[_0x472163(0xc0)](),this['_handler']['onStateChange'](this,_0x4f702f);},_0x20b5e7);}['_getSendChangesetTimeout'](){const _0x1294ad=_0x4fa2a5;let _0x3aca28=this[_0x1294ad(0x1a9)][_0x1294ad(0xd7)](_0x18fed6);return(_0x3aca28==null?void 0x0:_0x3aca28[_0x1294ad(0x138)])??0x7d0;}[_0x4fa2a5(0x3e0)](){const _0x2b04a4=_0x4fa2a5;throw Error(_0x2b04a4(0x19f));}['_clearScheduledTask'](){const _0x271cd1=_0x4fa2a5;this[_0x271cd1(0x10e)]!=null&&(clearTimeout(this[_0x271cd1(0x10e)]),this[_0x271cd1(0x10e)]=null);}[_0x4fa2a5(0xae)](_0x23a1ec){const _0x13ad5a=_0x4fa2a5;return this[_0x13ad5a(0x2c2)](),this[_0x13ad5a(0x40f)][_0x13ad5a(0x11d)](_0x7d595b,this['unitID'],this[_0x13ad5a(0x3c6)],null,this[_0x13ad5a(0x2e1)],this[_0x13ad5a(0x384)],_0x23a1ec);}};_0x2845dd=_0x12ed9d=_0x13514e([_0x374c65(0x4,(0x0,_0x433f65['Inject'])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734['RevisionService'])),_0x374c65(0x6,(0x0,_0x433f65['Inject'])(_0x433f65[_0x4fa2a5(0x3b8)])),_0x374c65(0x7,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0x8,_0x433f65['ICommandService']),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0xa,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0xc,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x2845dd);let _0x42f6fe=_0x2acb98=class extends _0xfca92{constructor(_0x412df1,_0x29b40d,_0x54058b,_0x65886a,_0x45db62,_0xdb789c,_0x56ee38,_0x3fd21a,_0x479316,_0x271db1,_0x108b6f){const _0x1a156e=_0x4fa2a5;super(_0x412df1,_0x29b40d,_0x54058b,[],_0x65886a,_0x56ee38,_0x271db1,_0xdb789c,_0x108b6f),this[_0x1a156e(0x40f)]=_0x45db62,this['_logService']=_0x3fd21a,this['_transformService']=_0x479316,_0x5aacdf(this,_0x1a156e(0x1e8),_0x1a156e(0x253)),_0x5aacdf(this,_0x1a156e(0x22f),0x0),_0x5aacdf(this,_0x1a156e(0x31c),0x0),_0x5aacdf(this,_0x1a156e(0x359),void 0x0),_0x5aacdf(this,_0x1a156e(0x3a2),void 0x0);}[_0x4fa2a5(0x407)](_0x5a4972){const _0x2fb417=_0x4fa2a5;this[_0x2fb417(0x2c2)]();let _0x45434b=this[_0x2fb417(0x40f)][_0x2fb417(0x11d)](_0x16395e,this[_0x2fb417(0x210)],this[_0x2fb417(0x3c6)],this[_0x2fb417(0x2fe)],[_0x5a4972],this[_0x2fb417(0x384)],this[_0x2fb417(0x359)]);return _0x45434b[_0x2fb417(0xc0)](),_0x45434b;}[_0x4fa2a5(0x24a)](_0x980301){const _0x19b569=_0x4fa2a5;if(this[_0x19b569(0x217)](_0x980301))return this[_0x19b569(0x2c2)](),this['_injector'][_0x19b569(0x11d)](_0x1ba45e,this['unitID'],this[_0x19b569(0x3c6)],this[_0x19b569(0x2fe)],[],null,[_0x980301],this[_0x19b569(0x384)]);try{let _0x4aa265=this[_0x19b569(0x324)][_0x19b569(0x142)]([_0x980301],[this[_0x19b569(0x2fe)]],!0x1);if((0x0,_0x3a5734[_0x19b569(0x153)])(_0x4aa265)){let {c1Prime:_0x45d187,c2Prime:_0x7c3b8c}=_0x4aa265;this[_0x19b569(0x19a)](_0x45d187[0x0]),_0x7c3b8c[0x0]['baseRev']=this[_0x19b569(0x28c)](),this[_0x19b569(0x2c2)]();let _0x1472b6=this[_0x19b569(0x40f)][_0x19b569(0x11d)](_0x2acb98,this[_0x19b569(0x210)],this[_0x19b569(0x3c6)],_0x7c3b8c[0x0],this[_0x19b569(0x384)]);return _0x1472b6[_0x19b569(0xc0)](),_0x1472b6;}throw _0x4aa265[_0x19b569(0x187)];}catch(_0x1a1141){return this[_0x19b569(0x314)][_0x19b569(0x187)](_0x1a1141),this[_0x19b569(0xae)](!0x1);}}[_0x4fa2a5(0xb1)](_0xcafcd2){const _0x551b57=_0x4fa2a5;this[_0x551b57(0x2c2)]();let _0x7019aa=this[_0x551b57(0x141)][_0x551b57(0x36f)](this['unitID']);if(_0xcafcd2[_0x551b57(0x3bf)]<=_0x7019aa)return this;if(this['_checkMissing'](_0xcafcd2))return this[_0x551b57(0x40f)][_0x551b57(0x11d)](_0x1ba45e,this['unitID'],this[_0x551b57(0x3c6)],this['_awaitingChangeset'],[],_0xcafcd2[_0x551b57(0x3bf)],[],this[_0x551b57(0x384)]);this['_incrementRevisionNumber']();let _0x20cc9c=this['_injector'][_0x551b57(0x11d)](_0x4f3cea,this['unitID'],this[_0x551b57(0x3c6)],this[_0x551b57(0x384)]);return _0x20cc9c[_0x551b57(0xc0)](),_0x20cc9c;}[_0x4fa2a5(0x18d)](_0x3f62cc){const _0x54827d=_0x4fa2a5;return this[_0x54827d(0xae)](!!(_0x3f62cc!=null&&_0x3f62cc[_0x54827d(0x30b)]));}['onRemoteRetry'](_0x1a7919){const _0x28f01c=_0x4fa2a5;return this[_0x28f01c(0x31c)]>_0x49318e?this[_0x28f01c(0x299)]():(this[_0x28f01c(0x359)]=_0x3e6378(this[_0x28f01c(0x22f)],{'timeout':this[_0x28f01c(0x22f)],'reqId':_0x1a7919[_0x28f01c(0x1f2)]}),this[_0x28f01c(0x3a2)]=this[_0x28f01c(0x359)][_0x28f01c(0x252)](({reqId:_0x4fb407,timeout:_0x4777a3})=>{const _0x5060f6=_0x28f01c;this[_0x5060f6(0x3fc)](_0x4fb407,_0x4777a3);}),this);}[_0x4fa2a5(0x299)](){const _0x5b25d9=_0x4fa2a5;return this[_0x5b25d9(0x2c2)](),this[_0x5b25d9(0x40f)][_0x5b25d9(0x11d)](_0x5a97ff,this[_0x5b25d9(0x210)],this[_0x5b25d9(0x3c6)],this[_0x5b25d9(0x2fe)],[],this[_0x5b25d9(0x384)]);}[_0x4fa2a5(0xa6)](){return this;}['resend'](){const _0x3691dc=_0x4fa2a5;this[_0x3691dc(0x384)][_0x3691dc(0x2d9)](this['_awaitingChangeset']);}[_0x4fa2a5(0xae)](_0x15f03c){const _0x4af36e=_0x4fa2a5;return this[_0x4af36e(0x2c2)](),this[_0x4af36e(0x40f)][_0x4af36e(0x11d)](_0x7d595b,this[_0x4af36e(0x210)],this[_0x4af36e(0x3c6)],this[_0x4af36e(0x2fe)],[],this[_0x4af36e(0x384)],_0x15f03c);}['_resendWithTimeout'](_0x526cc0,_0x1873fd){const _0x1007fb=_0x4fa2a5;var _0x595df8;_0x526cc0===((_0x595df8=this[_0x1007fb(0x2fe)])==null?void 0x0:_0x595df8['reqId'])&&(this[_0x1007fb(0x3e0)](),this[_0x1007fb(0x22f)]=_0x1873fd===0x0?0x3e8:Math[_0x1007fb(0x21c)](_0x1873fd*0x2,_0x206406),this['_maxTotalRetryTimeout']+=this[_0x1007fb(0x22f)]);}[_0x4fa2a5(0x2c2)](){const _0x3b9353=_0x4fa2a5;var _0x58e728;(_0x58e728=this[_0x3b9353(0x3a2)])==null||_0x58e728[_0x3b9353(0x3ba)](),this[_0x3b9353(0x22f)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x42f6fe=_0x2acb98=_0x13514e([_0x374c65(0x4,(0x0,_0x433f65['Inject'])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x6,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0x7,_0x433f65['ILogService']),_0x374c65(0x8,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0xa,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x42f6fe);let _0x16395e=_0x413c1b=class extends _0xfca92{constructor(_0x2fbe93,_0x5f0aad,_0x222813,_0x4d36b8,_0x2d4e8a,_0x19d286,_0x2d9e31,_0x2023df,_0x157c9b,_0x39585b,_0x44b53f,_0x176fdb,_0x2b04d5){const _0x55805a=_0x4fa2a5;super(_0x2fbe93,_0x5f0aad,_0x222813,_0x4d36b8,_0x2d4e8a,_0x157c9b,_0x176fdb,_0x2023df,_0x2b04d5),this[_0x55805a(0x40f)]=_0x2d9e31,this['_logService']=_0x39585b,this[_0x55805a(0x324)]=_0x44b53f,this[_0x55805a(0x405)]=_0x2b04d5,_0x5aacdf(this,_0x55805a(0x1e8),_0x55805a(0x3db)),_0x5aacdf(this,_0x55805a(0x22f),0x0),_0x5aacdf(this,_0x55805a(0x31c),0x0),_0x5aacdf(this,_0x55805a(0x359),void 0x0),_0x5aacdf(this,'_sender',void 0x0),_0x19d286&&(this[_0x55805a(0x359)]=_0x19d286,this[_0x55805a(0x3a2)]=this[_0x55805a(0x359)][_0x55805a(0x252)](({reqId:_0x59d23f,timeout:_0x425849})=>{const _0x30c12f=_0x55805a;this[_0x30c12f(0x3fc)](_0x59d23f,_0x425849);}));}[_0x4fa2a5(0x407)](_0x2b2b67){const _0x1c1f1f=_0x4fa2a5;return this[_0x1c1f1f(0x2e1)][_0x1c1f1f(0x227)](_0x2b2b67),this;}[_0x4fa2a5(0x24a)](_0x1f36f4){const _0x1200f2=_0x4fa2a5;if(this['_checkMissing'](_0x1f36f4))return this[_0x1200f2(0x2c2)](),this[_0x1200f2(0x40f)][_0x1200f2(0x11d)](_0x1ba45e,this[_0x1200f2(0x210)],this[_0x1200f2(0x3c6)],this[_0x1200f2(0x2fe)],this[_0x1200f2(0x2e1)],null,[_0x1f36f4],this['_handler']);try{let _0x282cf0=this[_0x1200f2(0x324)]['transformChangesets']([_0x1f36f4],[this[_0x1200f2(0x2fe)]],!0x1);if((0x0,_0x3a5734[_0x1200f2(0x153)])(_0x282cf0)){let {c1Prime:_0x281417,c2Prime:_0x550dce}=_0x282cf0,_0x15468b=this[_0x1200f2(0x324)]['transformMutationsWithChangeset'](_0x281417[0x0],this[_0x1200f2(0x2e1)]);if((0x0,_0x3a5734[_0x1200f2(0xe3)])(_0x15468b)){let {c1Prime:_0x41ad90,m2Prime:_0x13e2da}=_0x15468b;return this[_0x1200f2(0x19a)](_0x41ad90),_0x550dce[0x0][_0x1200f2(0x3a5)]=this[_0x1200f2(0x28c)](),this[_0x1200f2(0x2c2)](),this[_0x1200f2(0x40f)]['createInstance'](_0x413c1b,this[_0x1200f2(0x210)],this[_0x1200f2(0x3c6)],_0x550dce[0x0],_0x13e2da,this[_0x1200f2(0x384)],void 0x0);}throw _0x15468b[_0x1200f2(0x187)];}throw _0x282cf0['error'];}catch(_0x39adf5){return this[_0x1200f2(0x314)]['error'](_0x39adf5),this['_onConflict'](!0x1);}}[_0x4fa2a5(0xb1)](_0x47c6c4){const _0x58efc8=_0x4fa2a5;this[_0x58efc8(0x2c2)]();let _0x1aa767=this[_0x58efc8(0x28c)]();if(_0x47c6c4['revision']<=_0x1aa767)return this;if(this[_0x58efc8(0x217)](_0x47c6c4))return this[_0x58efc8(0x40f)][_0x58efc8(0x11d)](_0x1ba45e,this[_0x58efc8(0x210)],this[_0x58efc8(0x3c6)],this['_awaitingChangeset'],this[_0x58efc8(0x2e1)],_0x47c6c4[_0x58efc8(0x3bf)],[],this['_handler']);this['_incrementRevisionNumber']();let _0x4bc93e=this['_injector'][_0x58efc8(0x11d)](_0x2845dd,this[_0x58efc8(0x210)],this[_0x58efc8(0x3c6)],this[_0x58efc8(0x2e1)],this['_handler']);return _0x4bc93e[_0x58efc8(0x39a)](),_0x4bc93e['_updateLocalCache'](),_0x4bc93e;}[_0x4fa2a5(0x18d)](_0x42fddc){const _0x177a31=_0x4fa2a5;return this[_0x177a31(0xae)](!!(_0x42fddc!=null&&_0x42fddc['isPermissionRej']));}[_0x4fa2a5(0xdd)](_0x21bf9d){const _0x18e4cf=_0x4fa2a5;return this['_maxTotalRetryTimeout']>_0x49318e?this['toggleOffline']():(this[_0x18e4cf(0x359)]=_0x3e6378(this[_0x18e4cf(0x22f)],{'timeout':this['_resendTimeout'],'reqId':_0x21bf9d[_0x18e4cf(0x1f2)]}),this[_0x18e4cf(0x3a2)]=this[_0x18e4cf(0x359)]['subscribe'](({reqId:_0x158aaf,timeout:_0x442d18})=>{const _0x50be43=_0x18e4cf;this[_0x50be43(0x3fc)](_0x158aaf,_0x442d18);}),this);}[_0x4fa2a5(0x299)](){const _0xe21395=_0x4fa2a5;return this[_0xe21395(0x2c2)](),this[_0xe21395(0x40f)][_0xe21395(0x11d)](_0x5a97ff,this[_0xe21395(0x210)],this['type'],this[_0xe21395(0x2fe)],this[_0xe21395(0x2e1)],this[_0xe21395(0x384)]);}[_0x4fa2a5(0xa6)](){return this;}['resend'](){const _0x496980=_0x4fa2a5;this[_0x496980(0x384)][_0x496980(0x2d9)](this[_0x496980(0x2fe)]);}['_onConflict'](_0x5a287f){const _0x52860a=_0x4fa2a5;return this[_0x52860a(0x2c2)](),this[_0x52860a(0x40f)][_0x52860a(0x11d)](_0x7d595b,this[_0x52860a(0x210)],this[_0x52860a(0x3c6)],null,this['_pendingMutations'],this['_handler'],_0x5a287f);}[_0x4fa2a5(0x3fc)](_0x2d20fe,_0x146132){const _0x365d15=_0x4fa2a5;var _0x49aeca;_0x2d20fe===((_0x49aeca=this[_0x365d15(0x2fe)])==null?void 0x0:_0x49aeca['reqId'])&&(this[_0x365d15(0x3e0)](),this[_0x365d15(0x22f)]=_0x146132===0x0?0x3e8:Math[_0x365d15(0x21c)](_0x146132*0x2,_0x206406),this[_0x365d15(0x31c)]+=this[_0x365d15(0x22f)]);}[_0x4fa2a5(0x2c2)](){const _0x5d00ff=_0x4fa2a5;var _0x7a2048;(_0x7a2048=this['_sender'])==null||_0x7a2048['unsubscribe'](),this[_0x5d00ff(0x22f)]=0x0,this[_0x5d00ff(0x31c)]=0x0;}};_0x16395e=_0x413c1b=_0x13514e([_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['Injector'])),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734['RevisionService'])),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0xc,(0x0,_0x433f65['Optional'])(_0x471235))],_0x16395e);let _0x7d595b=class extends _0xfca92{constructor(_0xb80aa5,_0x13fb56,_0x391672,_0x11181d,_0x40ff7d,_0x5e7fb1=!0x1,_0x37d2fb,_0x244301,_0x4205d0,_0x5619cd,_0x34bda0,_0x477e8e,_0x35b3e0){const _0x1b9831=_0x4fa2a5;super(_0xb80aa5,_0x13fb56,_0x391672,_0x11181d,_0x40ff7d,_0x244301,_0x4205d0,_0x5619cd,_0x35b3e0),this[_0x1b9831(0x3de)]=_0x5e7fb1,this['_permissionService']=_0x37d2fb,this[_0x1b9831(0x267)]=_0x34bda0,this[_0x1b9831(0x347)]=_0x477e8e,this[_0x1b9831(0x405)]=_0x35b3e0,_0x5aacdf(this,_0x1b9831(0x1e8),_0x1b9831(0x3c5)),this[_0x1b9831(0x16f)](),this[_0x1b9831(0x3c1)](),this['_prepareConflictRecovery']();}[_0x4fa2a5(0x407)](){return this;}[_0x4fa2a5(0x24a)](){return this;}['onRemoteAck'](){return this;}[_0x4fa2a5(0x18d)](){return this;}[_0x4fa2a5(0xdd)](){return this;}['toggleOffline'](){return this;}[_0x4fa2a5(0xa6)](){return this;}[_0x4fa2a5(0x3e0)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}async[_0x4fa2a5(0x23a)](){const _0xf33b3d=_0x4fa2a5;var _0x2ef1d2,_0xf85e7d;await((_0x2ef1d2=this['_localCacheService'])==null||(_0xf85e7d=_0x2ef1d2[_0xf33b3d(0x372)])==null?void 0x0:_0xf85e7d['call'](_0x2ef1d2,this[_0xf33b3d(0x210)],_0xf33b3d(0x3c5))[_0xf33b3d(0x1a4)](()=>void 0x0));try{var _0x9b0359;await((_0x9b0359=this['_localCacheService'])==null?void 0x0:_0x9b0359['clearOfflineData'](this[_0xf33b3d(0x210)]));}catch{this[_0xf33b3d(0x347)][_0xf33b3d(0x2cf)]({'id':_0xf33b3d(0x3d2),'unitID':this[_0xf33b3d(0x210)]});return;}this['_showConflictNotification']();}[_0x4fa2a5(0x3c1)](){const _0x462645=_0x4fa2a5;this[_0x462645(0x347)][_0x462645(0x2cf)]({'id':_0x462645(0x414)});}[_0x4fa2a5(0x1e6)](){const _0x4ef465=_0x4fa2a5;this[_0x4ef465(0x3de)]?this[_0x4ef465(0x347)][_0x4ef465(0x2cf)]({'id':'PERMISSION_DENIED'}):this[_0x4ef465(0x347)]['emitEvent']({'id':_0x4ef465(0x34e)});}[_0x4fa2a5(0x16f)](){const _0x2d42bb=_0x4fa2a5;this[_0x2d42bb(0x3c9)][_0x2d42bb(0x28e)](new _0x6a2ac6[(_0x2d42bb(0x37a))](this[_0x2d42bb(0x210)])['id'],!0x1);}};_0x7d595b=_0x13514e([_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['IPermissionService'])),_0x374c65(0x7,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0x9,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0xa,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['LocaleService'])),_0x374c65(0xb,(0x0,_0x433f65['Inject'])(_0x483ee6)),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x7d595b);let _0x5a97ff=class extends _0xfca92{constructor(_0x49191b,_0xd097c,_0x471f6d,_0x20c9c0,_0x466b9f,_0x58513b,_0x5896ac,_0xd2b46c,_0x3fecbf,_0x973ddb){super(_0x49191b,_0xd097c,_0x471f6d,_0x20c9c0,_0x466b9f,_0xd2b46c,_0x3fecbf,_0x5896ac,_0x973ddb),this['_injector']=_0x58513b,_0x5aacdf(this,'status','offline');}[_0x4fa2a5(0x407)](_0xeabb13){const _0x3ac63b=_0x4fa2a5;return this[_0x3ac63b(0x2e1)]['push'](_0xeabb13),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x446445){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x4fa2a5(0xb1)](){const _0x353c34=_0x4fa2a5;throw Error(_0x353c34(0x223));}[_0x4fa2a5(0x18d)](){const _0x523e3c=_0x4fa2a5;throw Error(_0x523e3c(0xf2));}[_0x4fa2a5(0xdd)](){return this;}[_0x4fa2a5(0x299)](){return this;}['toggleOnline'](){const _0x48829e=_0x4fa2a5;let {_injector:_0x4ddb64,_pendingMutations:_0x410785,_awaitingChangeset:_0x5ecd21,unitID:_0x55afc3,_handler:_0x3d0fb3,type:_0x195ea6}=this,_0x2ba566=_0x2acb52(_0x4ddb64,_0x55afc3,_0x195ea6,_0x5ecd21,_0x410785,_0x3d0fb3);return _0x2ba566 instanceof _0x2845dd?_0x2ba566[_0x48829e(0x39a)]():(_0x2ba566 instanceof _0x16395e||_0x2ba566 instanceof _0x42f6fe)&&_0x2ba566['resend'](),_0x2ba566;}[_0x4fa2a5(0x3e0)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x5a97ff=_0x13514e([_0x374c65(0x5,(0x0,_0x433f65['Inject'])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0x9,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x5a97ff);let _0x1ba45e=class extends _0xfca92{constructor(_0x47f7bb,_0x42ae03,_0x204b1,_0x40c8f7,_0x2ccc45,_0x39da7d,_0xec1a0e,_0x124930,_0x1311d3,_0x335a7,_0x2b99b9,_0x462013,_0x54325f,_0x1fbc8a){const _0x1d62c2=_0x4fa2a5;super(_0x47f7bb,_0x42ae03,_0x204b1,_0x40c8f7,_0xec1a0e,_0x2b99b9,_0x462013,_0x1311d3,_0x1fbc8a),this[_0x1d62c2(0x1c8)]=_0x2ccc45,this['_queuedRemoteChangesets']=_0x39da7d,this['_injector']=_0x124930,this[_0x1d62c2(0x314)]=_0x335a7,this[_0x1d62c2(0x324)]=_0x54325f,this[_0x1d62c2(0x405)]=_0x1fbc8a,_0x5aacdf(this,_0x1d62c2(0x1e8),_0x1d62c2(0x248));}['onMissedChangesetFetched'](_0x371bf1){const _0x2351de=_0x4fa2a5;try{if(this[_0x2351de(0x2c1)](_0x371bf1)[_0x2351de(0x1e7)])throw Error(_0x2351de(0x352));if(this[_0x2351de(0x2c1)]([...this['_queuedRemoteChangesets']][_0x2351de(0x242)]((_0x185032,_0x96cb3e)=>_0x185032[_0x2351de(0x3bf)]-_0x96cb3e['revision']))[_0x2351de(0x1e7)])return this[_0x2351de(0x273)]=[],this[_0x2351de(0xc0)](),this[_0x2351de(0x384)][_0x2351de(0xea)]({'from':this[_0x2351de(0x28c)](),'to':0x0}),this;let _0x2ff04c=this[_0x2351de(0x2fe)],_0x20c899=this[_0x2351de(0x2e1)],_0x101f78;if(_0x2ff04c&&_0x20c899['length']!==0x0)_0x101f78=this[_0x2351de(0x40f)][_0x2351de(0x11d)](_0x16395e,this[_0x2351de(0x210)],this['type'],_0x2ff04c,_0x20c899,this[_0x2351de(0x384)],void 0x0);else{if(_0x2ff04c&&_0x20c899['length']===0x0)_0x2ff04c[_0x2351de(0x3a5)]=this[_0x2351de(0x28c)](),_0x101f78=this[_0x2351de(0x40f)]['createInstance'](_0x42f6fe,this['unitID'],this[_0x2351de(0x3c6)],_0x2ff04c,this[_0x2351de(0x384)]);else{if(_0x20c899[_0x2351de(0x208)]!==0x0){let _0x48a36f=this[_0x2351de(0x40f)][_0x2351de(0x11d)](_0x2845dd,this['unitID'],this[_0x2351de(0x3c6)],_0x20c899,this[_0x2351de(0x384)]);_0x48a36f[_0x2351de(0x39a)](),_0x101f78=_0x48a36f;}else _0x101f78=this['_injector'][_0x2351de(0x11d)](_0x4f3cea,this[_0x2351de(0x210)],this[_0x2351de(0x3c6)],this['_handler']);}}return _0x101f78[_0x2351de(0xc0)](),_0x101f78;}catch(_0x4797c1){return this['_logService'][_0x2351de(0x187)](_0x2351de(0x15a),_0x2351de(0x16c),_0x4797c1),this[_0x2351de(0x40f)][_0x2351de(0x11d)](_0x7d595b,this['unitID'],this['type'],this[_0x2351de(0x2fe)],this[_0x2351de(0x2e1)],this[_0x2351de(0x384)],!0x1);}}[_0x4fa2a5(0x2c1)](_0x5b7078){const _0x3724c7=_0x4fa2a5;this[_0x3724c7(0x26b)]();for(let _0x3f3a7f=0x0;_0x3f3a7f<_0x5b7078[_0x3724c7(0x208)];_0x3f3a7f++){let _0xe2a1b5=_0x5b7078[_0x3f3a7f],_0x428da4=this['_getCurrentRevision']();if(!(_0xe2a1b5[_0x3724c7(0x3bf)]<=_0x428da4)){if(_0xe2a1b5[_0x3724c7(0x3bf)]>_0x428da4+0x1)return{'missingChangesets':!0x0};if(this[_0x3724c7(0x191)](_0xe2a1b5)){this['_acknowledgeAwaiting']();continue;}this[_0x3724c7(0x292)](_0xe2a1b5),this[_0x3724c7(0x26b)]();}}return{'missingChangesets':!0x1};}[_0x4fa2a5(0x292)](_0x4c2022){const _0x168a70=_0x4fa2a5;let _0x3885f1=_0x4c2022,_0x330534=this[_0x168a70(0x2fe)];if(_0x330534){let _0x275f2f=this['_transformService'][_0x168a70(0x142)]([_0x4c2022],[_0x330534],!0x1);if(!(0x0,_0x3a5734[_0x168a70(0x153)])(_0x275f2f))throw _0x275f2f[_0x168a70(0x187)];_0x3885f1=_0x275f2f[_0x168a70(0x3ab)][0x0],_0x330534=_0x275f2f[_0x168a70(0x2be)][0x0];}let _0x49154f=this[_0x168a70(0x2e1)];if(_0x49154f[_0x168a70(0x208)]){let _0x32bd43=this[_0x168a70(0x324)]['transformMutationsWithChangeset'](_0x3885f1,_0x49154f);if(!(0x0,_0x3a5734[_0x168a70(0xe3)])(_0x32bd43))throw _0x32bd43[_0x168a70(0x187)];_0x3885f1=_0x32bd43['c1Prime'],_0x49154f=_0x32bd43['m2Prime'];}this[_0x168a70(0x19a)](_0x3885f1),_0x330534&&(_0x330534[_0x168a70(0x3a5)]=this[_0x168a70(0x28c)]()),this[_0x168a70(0x2fe)]=_0x330534,this[_0x168a70(0x2e1)]=_0x49154f;}[_0x4fa2a5(0x26b)](){const _0x4d0e30=_0x4fa2a5;if(!this[_0x4d0e30(0x2fe)]||this[_0x4d0e30(0x1c8)]==null)return;let _0x52340d=this[_0x4d0e30(0x28c)]();if(this[_0x4d0e30(0x1c8)]<=_0x52340d)throw Error(_0x4d0e30(0x1db)+this['_acknowledgedAwaitingRevision']+'.');this[_0x4d0e30(0x1c8)]===_0x52340d+0x1&&this[_0x4d0e30(0xc3)]();}['_acknowledgeAwaiting'](){const _0x594a56=_0x4fa2a5;this[_0x594a56(0xb5)](),this[_0x594a56(0x2fe)]=null,this['_acknowledgedAwaitingRevision']=null;}[_0x4fa2a5(0x191)](_0x483e92){const _0x27502=_0x4fa2a5;let _0x6da977=this[_0x27502(0x2fe)];return!_0x6da977||!_0x6da977['sid']||_0x6da977['reqId']===null||_0x6da977['reqId']===void 0x0?!0x1:_0x483e92['unitID']===_0x6da977[_0x27502(0x210)]&&_0x483e92['sid']===_0x6da977[_0x27502(0x2d4)]&&_0x483e92[_0x27502(0x1f2)]===_0x6da977[_0x27502(0x1f2)];}[_0x4fa2a5(0x3e0)](){const _0x28cafb=_0x4fa2a5;throw Error(_0x28cafb(0x1f6));}[_0x4fa2a5(0x407)](_0x173702){const _0x14d387=_0x4fa2a5;return this[_0x14d387(0x2e1)][_0x14d387(0x227)](_0x173702),this;}[_0x4fa2a5(0x24a)](_0xa6b8ce){const _0x41b0e4=_0x4fa2a5;return this[_0x41b0e4(0x273)][_0x41b0e4(0x227)](_0xa6b8ce),this;}[_0x4fa2a5(0xb1)](_0x109c36){const _0x4ef822=_0x4fa2a5;if(this[_0x4ef822(0x2fe)]){let _0x1190ee=this['_getCurrentRevision']();return _0x109c36['revision']<=_0x1190ee||(_0x1190ee+0x1===_0x109c36[_0x4ef822(0x3bf)]?(this[_0x4ef822(0xb5)](),this[_0x4ef822(0x2fe)]=null,this[_0x4ef822(0x1c8)]=null):this[_0x4ef822(0x1c8)]=_0x109c36[_0x4ef822(0x3bf)]),this;}if(_0x109c36['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x4ef822(0x2ae));}[_0x4fa2a5(0x18d)](_0x135069){const _0x16fb60=_0x4fa2a5;return this[_0x16fb60(0xae)](!!(_0x135069!=null&&_0x135069[_0x16fb60(0x30b)]));}[_0x4fa2a5(0xdd)](){return this;}[_0x4fa2a5(0x299)](){const _0x392819=_0x4fa2a5;return this[_0x392819(0x40f)][_0x392819(0x11d)](_0x5a97ff,this[_0x392819(0x210)],this[_0x392819(0x3c6)],this['_awaitingChangeset'],this[_0x392819(0x2e1)],this[_0x392819(0x384)]);}[_0x4fa2a5(0xa6)](){return this;}[_0x4fa2a5(0xae)](_0x58daba){const _0x355db3=_0x4fa2a5;return this['_injector'][_0x355db3(0x11d)](_0x7d595b,this[_0x355db3(0x210)],this[_0x355db3(0x3c6)],this[_0x355db3(0x2fe)],this['_pendingMutations'],this['_handler'],_0x58daba);}};_0x1ba45e=_0x13514e([_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['Injector'])),_0x374c65(0x8,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0xc,_0x3a5734['ITransformService']),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x1ba45e);function _0x2acb52(_0x1f5b4c,_0x40ac0c,_0x560a9c,_0x20080d,_0x4db5fa,_0x2f3f96){const _0x18a051=_0x4fa2a5;return _0x20080d&&_0x4db5fa[_0x18a051(0x208)]?_0x1f5b4c[_0x18a051(0x11d)](_0x16395e,_0x40ac0c,_0x560a9c,_0x20080d,_0x4db5fa,_0x2f3f96,void 0x0):_0x20080d?_0x1f5b4c[_0x18a051(0x11d)](_0x42f6fe,_0x40ac0c,_0x560a9c,_0x20080d,_0x2f3f96):_0x4db5fa['length']?_0x1f5b4c[_0x18a051(0x11d)](_0x2845dd,_0x40ac0c,_0x560a9c,_0x4db5fa,_0x2f3f96):_0x1f5b4c['createInstance'](_0x4f3cea,_0x40ac0c,_0x560a9c,_0x2f3f96);}let _0x18d3ff=class extends _0x433f65[_0x4fa2a5(0x24b)]{get[_0x4fa2a5(0x1be)](){const _0x9f7812=_0x4fa2a5;return this[_0x9f7812(0xda)];}constructor(_0x5e91c8,_0x3fb652,_0x31802b,_0x48af4b,_0x2b57b4,_0x295ed8,_0x12d838,_0x4011da,_0x3a1638,_0x5420a8,_0x2efb3f,_0x108ecf,_0x1ecc3c,_0x1c76bb){const _0x4a5792=_0x4fa2a5;super(),this[_0x4a5792(0x210)]=_0x5e91c8,this[_0x4a5792(0x277)]=_0x3fb652,this[_0x4a5792(0x1ca)]=_0x31802b,this[_0x4a5792(0x40f)]=_0x48af4b,this['_compressMutationService']=_0x2b57b4,this['_localeService']=_0x295ed8,this['_revisionService']=_0x12d838,this[_0x4a5792(0x258)]=_0x4011da,this['_univerInstanceService']=_0x3a1638,this[_0x4a5792(0x314)]=_0x5420a8,this[_0x4a5792(0x1ee)]=_0x2efb3f,this['_permissionService']=_0x108ecf,this[_0x4a5792(0x3c0)]=_0x1ecc3c,this[_0x4a5792(0x304)]=_0x1c76bb,_0x5aacdf(this,_0x4a5792(0x276),new _0x450705[(_0x4a5792(0x1f8))](null)),_0x5aacdf(this,'state$',this[_0x4a5792(0x276)][_0x4a5792(0x343)]()),_0x5aacdf(this,_0x4a5792(0xda),void 0x0),_0x5aacdf(this,'_collaborationPaused',!0x1),_0x5aacdf(this,_0x4a5792(0x106),''),_0x5aacdf(this,_0x4a5792(0x2a8),0x0),_0x5aacdf(this,_0x4a5792(0x1ed),this[_0x4a5792(0x340)]['pipe']((0x0,_0x450705[_0x4a5792(0x224)])(_0x3d81f7=>_0x3d81f7?_0x3d81f7[_0x4a5792(0x1e8)]:'offline'),(0x0,_0x450705[_0x4a5792(0xd4)])({'bufferSize':0x1,'refCount':!0x0}))),_0x5aacdf(this,_0x4a5792(0x222),!0x1),_0x5aacdf(this,_0x4a5792(0x2fc),[]);}async[_0x4fa2a5(0x2ef)](){const _0x49ed79=_0x4fa2a5;if(this['state'])throw Error(_0x49ed79(0x318));await this[_0x49ed79(0x29b)]();}[_0x4fa2a5(0x323)](){return this['_collaborationPaused']=!0x0,(0x0,_0x433f65['toDisposable'])(()=>{const _0x58df83=_0x5846;this[_0x58df83(0x1bd)]=!0x1,this[_0x58df83(0x3df)]();});}[_0x4fa2a5(0x336)](_0x482c2f){const _0x53a8d5=_0x4fa2a5;this[_0x53a8d5(0x35d)](_0x482c2f);}[_0x4fa2a5(0x3d6)](_0x467bf5){const _0x2e72a2=_0x4fa2a5;this[_0x2e72a2(0xda)]=_0x467bf5,this[_0x2e72a2(0x276)]['next'](_0x467bf5);}async[_0x4fa2a5(0x29b)](){const _0x59e2ff=_0x4fa2a5;if(this[_0x59e2ff(0x3d6)](await this[_0x59e2ff(0xb2)]()),this[_0x59e2ff(0x3c0)]){var _0xa395d0;(_0xa395d0=this[_0x59e2ff(0x3c0)])==null||_0xa395d0[_0x59e2ff(0x216)](this[_0x59e2ff(0x210)]),this[_0x59e2ff(0x413)](this[_0x59e2ff(0x3c0)][_0x59e2ff(0x330)](this['unitID'])[_0x59e2ff(0x252)](_0x3d2553=>{const _0x5c0f44=_0x59e2ff;this[_0x5c0f44(0x314)][_0x5c0f44(0x23b)]('[CollaborationEntity]',_0x5c0f44(0x2c6),_0x3d2553),_0x3d2553===0x1?(this['_eventService'][_0x5c0f44(0x2cf)]({'id':_0x5c0f44(0x3f0)}),this[_0x5c0f44(0x3c9)]['updatePermissionPoint'](new _0x6a2ac6['WorkbookEditablePermission'](this[_0x5c0f44(0x210)])['id'],!0x1),this[_0x5c0f44(0x3c9)][_0x5c0f44(0x2b0)](!0x1)):(this[_0x5c0f44(0x3c9)][_0x5c0f44(0x28e)](new _0x6a2ac6[(_0x5c0f44(0x37a))](this[_0x5c0f44(0x210)])['id'],!0x0),this[_0x5c0f44(0x3c9)][_0x5c0f44(0x2b0)](!0x0));}));}let _0x1f915c=!0x1;return this[_0x59e2ff(0x413)](this[_0x59e2ff(0x277)][_0x59e2ff(0x199)]['subscribe'](_0x232a78=>{const _0x227c94=_0x59e2ff;_0x232a78===0x3?this[_0x227c94(0x1e4)](_0x1f915c):_0x232a78===0x2&&(_0x1f915c=!0x0,this[_0x227c94(0x3ac)]());})),this['disposeWithMe'](this[_0x59e2ff(0x277)][_0x59e2ff(0x1eb)][_0x59e2ff(0x252)](_0x107add=>{const _0x4be6c2=_0x59e2ff;try{switch(_0x107add[_0x4be6c2(0x130)]){case _0x3a5734[_0x4be6c2(0xec)][_0x4be6c2(0x24f)]:this[_0x4be6c2(0x368)]((0x0,_0x3a5734['parseProtocolChangeset'])(_0x107add[_0x4be6c2(0x2c7)]));break;case _0x3a5734[_0x4be6c2(0xec)][_0x4be6c2(0x370)]:this[_0x4be6c2(0x30c)](_0x107add['data']);break;case _0x3a5734['CollaborationEvent'][_0x4be6c2(0x373)]:this[_0x4be6c2(0x144)]();break;case _0x3a5734[_0x4be6c2(0xec)][_0x4be6c2(0x20b)]:this['_onRemoteRetry'](_0x107add['data']);break;case _0x3a5734['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:this[_0x4be6c2(0x1c6)](_0x107add['data'][_0x4be6c2(0x386)]['map'](_0x508fec=>(0x0,_0x3a5734['parseProtocolChangeset'])(_0x508fec)));break;case _0x3a5734[_0x4be6c2(0xec)][_0x4be6c2(0x19e)]:this[_0x4be6c2(0x144)]({'isPermissionRej':!0x0});break;case _0x3a5734[_0x4be6c2(0xec)][_0x4be6c2(0x406)]:}}catch(_0x34f17a){throw console[_0x4be6c2(0x187)](_0x4be6c2(0x1ce),_0x34f17a),_0x34f17a;}})),this[_0x59e2ff(0xda)];}[_0x4fa2a5(0xc1)](){const _0x49d109=_0x4fa2a5;this[_0x49d109(0x222)]=!0x1;}[_0x4fa2a5(0x1b8)](){const _0x267dd3=_0x4fa2a5;if(this[_0x267dd3(0x222)])throw Error('[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.');this[_0x267dd3(0x222)]=!0x0;}[_0x4fa2a5(0x35d)](_0x525b05){const _0x447f48=_0x4fa2a5;this[_0x447f48(0x1b8)](),this['_updateState'](this[_0x447f48(0xda)][_0x447f48(0x407)](_0x525b05)),this[_0x447f48(0xc1)]();}[_0x4fa2a5(0x368)](_0x209f79){const _0x5f0b8d=_0x4fa2a5;if(!(_0x209f79[_0x5f0b8d(0x3bf)]<=this['_revisionService'][_0x5f0b8d(0x36f)](this['unitID']))){if(this[_0x5f0b8d(0x1bd)]){this[_0x5f0b8d(0x2fc)][_0x5f0b8d(0x227)](_0x209f79);return;}this[_0x5f0b8d(0x2dc)](_0x209f79);}}[_0x4fa2a5(0x3df)](){const _0xd903b0=_0x4fa2a5;this[_0xd903b0(0x2fc)][_0xd903b0(0x1d2)](_0x2fe6dc=>this[_0xd903b0(0x2dc)](_0x2fe6dc)),this[_0xd903b0(0x2fc)]=[];}[_0x4fa2a5(0x2dc)](_0x1886c7){const _0x5b6a2a=_0x4fa2a5;let _0x1a8cff=this[_0x5b6a2a(0x396)][_0x5b6a2a(0x2c4)][_0x5b6a2a(0x285)](this[_0x5b6a2a(0x396)]['interceptor'][_0x5b6a2a(0x193)]()[_0x5b6a2a(0x198)])(_0x1886c7[_0x5b6a2a(0x2d5)],null)||_0x1886c7[_0x5b6a2a(0x2d5)],_0x36cf13={..._0x1886c7,'mutations':_0x1a8cff};this['_lockTransition'](),this[_0x5b6a2a(0x3d6)](this[_0x5b6a2a(0xda)][_0x5b6a2a(0x24a)](_0x36cf13)),this[_0x5b6a2a(0xc1)]();}[_0x4fa2a5(0x30c)](_0x18778d){const _0xf24840=_0x4fa2a5;this['_lockTransition'](),this['_updateState'](this[_0xf24840(0xda)][_0xf24840(0xb1)](_0x18778d)),this[_0xf24840(0xc1)]();}[_0x4fa2a5(0x144)](_0x495e4b){const _0x42dcf2=_0x4fa2a5;this[_0x42dcf2(0x1b8)](),this[_0x42dcf2(0x3d6)](this[_0x42dcf2(0xda)][_0x42dcf2(0x18d)](_0x495e4b)),this['_unlockTransition']();}[_0x4fa2a5(0x288)](_0x37d364){const _0x5b6493=_0x4fa2a5;this[_0x5b6493(0x1b8)](),this[_0x5b6493(0x3d6)](this[_0x5b6493(0xda)][_0x5b6493(0xdd)](_0x37d364)),this[_0x5b6493(0xc1)]();}[_0x4fa2a5(0x1c6)](_0x21d156){const _0x347696=_0x4fa2a5;if(!(this[_0x347696(0xda)]instanceof _0x1ba45e))throw TypeError(_0x347696(0x11a));let _0x36d653=_0x21d156[_0x347696(0x224)](_0x27ccf8=>{const _0x1932a6=_0x347696;let _0x34b58c=this['_compressMutationService'][_0x1932a6(0x2c4)][_0x1932a6(0x285)](this[_0x1932a6(0x396)][_0x1932a6(0x2c4)]['getInterceptPoints']()[_0x1932a6(0x198)])(_0x27ccf8[_0x1932a6(0x2d5)],null)||_0x27ccf8[_0x1932a6(0x2d5)];return{..._0x27ccf8,'mutations':_0x34b58c};});this[_0x347696(0x1b8)](),this[_0x347696(0x3d6)](this[_0x347696(0xda)][_0x347696(0x188)](_0x36d653)),this[_0x347696(0xc1)]();}[_0x4fa2a5(0x3ac)](){const _0x41c9be=_0x4fa2a5;this[_0x41c9be(0x1b8)](),this[_0x41c9be(0x3d6)](this[_0x41c9be(0xda)][_0x41c9be(0x299)]()),this[_0x41c9be(0xc1)]();}['_toggleOnline'](_0xe46577=!0x1){const _0xc041a4=_0x4fa2a5;this['_lockTransition'](),this[_0xc041a4(0x3d6)](this[_0xc041a4(0xda)][_0xc041a4(0xa6)]()),this[_0xc041a4(0xc1)]();let _0x24d116=this[_0xc041a4(0xda)];_0xe46577&&_0x24d116 instanceof _0x4f3cea&&(this[_0xc041a4(0x1b8)](),this[_0xc041a4(0x3d6)](_0x24d116[_0xc041a4(0x1ab)]()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x48c9d6=>{const _0x3a0a17=_0x5846;this[_0x3a0a17(0x277)][_0x3a0a17(0x199)][_0x3a0a17(0x192)]((0x0,_0x450705['take'])(0x1))[_0x3a0a17(0x252)](async _0x59a15c=>{const _0x928b4d=_0x3a0a17;_0x48c9d6(await this[_0x928b4d(0xe0)](_0x59a15c===0x3));});});}[_0x4fa2a5(0x1b3)](){let _0x460ee5=this['unitID'];return{'onStateChange':(_0x57f8dc,_0x274e55)=>{const _0x30eee7=_0x5846;if(_0x57f8dc!==this[_0x30eee7(0xda)])throw Error(_0x30eee7(0x2ca)+_0x57f8dc[_0x30eee7(0x1e8)]+'\x0aAfter:\x20'+_0x274e55[_0x30eee7(0x1e8)]+'\x0aCurrent:\x20'+this[_0x30eee7(0xda)][_0x30eee7(0x1e8)]);this[_0x30eee7(0x3d6)](_0x274e55);},'onSendChangeset':_0x42d62c=>{const _0x197a26=_0x5846;_0x42d62c[_0x197a26(0x2d4)]||(_0x42d62c[_0x197a26(0x2d4)]=this[_0x197a26(0x106)],_0x42d62c['reqId']=++this[_0x197a26(0x2a8)]);let _0x278c72={'eventID':_0x3a5734[_0x197a26(0xec)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x42d62c[_0x197a26(0x210)],'unitType':this[_0x197a26(0x1ca)],'changeset':_0x42d62c,'memberID':this[_0x197a26(0x277)]['getMemberID']()}};this['session'][_0x197a26(0x402)](_0x278c72,this[_0x197a26(0x210)]);},'onMissingChangesets':({from:_0x2cf068,to:_0x31f80e})=>{const _0xd97d0e=_0x5846;this[_0xd97d0e(0x314)][_0xd97d0e(0x23b)](_0xd97d0e(0x20c),'fetching\x20missing\x20changesets\x20from\x20'+_0x2cf068+_0xd97d0e(0x2b2)+_0x31f80e);let _0x8e654f={'eventID':_0x3a5734['CollaborationEvent'][_0xd97d0e(0x1e1)],'data':{'unitID':_0x460ee5,'unitType':this[_0xd97d0e(0x1ca)],'from':_0x2cf068,'to':_0x31f80e}};this[_0xd97d0e(0x277)]['send'](_0x8e654f,this['unitID']);}};}async[_0x4fa2a5(0xe0)](_0x1ae4e5){const _0x30c612=_0x4fa2a5;var _0x4ba55d;let _0x1e11ef=await((_0x4ba55d=this[_0x30c612(0x304)])==null?void 0x0:_0x4ba55d['loadOfflineData'](this[_0x30c612(0x210)])),_0x37b514=(_0x1e11ef==null?void 0x0:_0x1e11ef[_0x30c612(0x2d5)])??[],_0x4c4985=(_0x1e11ef==null?void 0x0:_0x1e11ef['awaitingChangeset'])??null,_0x36e0b1=!!(_0x4c4985!=null&&_0x4c4985[_0x30c612(0x2d4)])&&!!(_0x4c4985!=null&&_0x4c4985[_0x30c612(0x1f2)]);this[_0x30c612(0x106)]=_0x36e0b1?_0x4c4985[_0x30c612(0x2d4)]:(0x0,_0x3a5734[_0x30c612(0x257)])(),this[_0x30c612(0x2a8)]=_0x36e0b1?_0x4c4985[_0x30c612(0x1f2)]:0x0;let _0x5a52cf=this[_0x30c612(0x210)];try{this[_0x30c612(0x1c7)](_0x4c4985,_0x37b514);}catch(_0x134aa2){this[_0x30c612(0x314)][_0x30c612(0x187)](_0x134aa2);}let _0x406027=this[_0x30c612(0x1b3)]();if(_0x1ae4e5){let _0x4db187=_0x2acb52(this['_injector'],_0x5a52cf,this['_type'],_0x4c4985,_0x37b514,_0x406027);return _0x4db187 instanceof _0x2845dd?_0x4db187['_schedule']():(_0x4db187 instanceof _0x16395e||_0x4db187 instanceof _0x42f6fe)&&_0x4db187[_0x30c612(0x3e0)](),_0x4db187;}return this[_0x30c612(0x40f)][_0x30c612(0x11d)](_0x5a97ff,_0x5a52cf,this[_0x30c612(0x1ca)],_0x4c4985,_0x37b514,_0x406027);}[_0x4fa2a5(0x1c7)](_0xa9e19d,_0x347dac){const _0x17ba9e=_0x4fa2a5;var _0x434c89,_0x320481;let _0x346156=this[_0x17ba9e(0x396)][_0x17ba9e(0x2c4)]['fetchThroughInterceptors'](this[_0x17ba9e(0x396)][_0x17ba9e(0x2c4)]['getInterceptPoints']()[_0x17ba9e(0x198)]);(_0x434c89=_0x346156((_0xa9e19d==null?void 0x0:_0xa9e19d[_0x17ba9e(0x2d5)])||[],null))==null||_0x434c89[_0x17ba9e(0x1d2)](_0x2a53e5=>this[_0x17ba9e(0x1ee)][_0x17ba9e(0x2bd)](_0x2a53e5['id'],_0x2a53e5[_0x17ba9e(0x206)])),(_0x320481=_0x346156(_0x347dac||[],null))==null||_0x320481['forEach'](_0x5ef6b3=>this[_0x17ba9e(0x1ee)][_0x17ba9e(0x2bd)](_0x5ef6b3['id'],_0x5ef6b3[_0x17ba9e(0x206)]));}};_0x18d3ff=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['Injector'])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0x1da)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65['Inject'])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x4aaa76)),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x18d3ff);let _0x31d725=class extends _0x18d3ff{constructor(_0x54a0b2,_0x16cb1c,_0x3741ab,_0x2950c6,_0x28248f,_0x11f2af,_0x407b93,_0x43c6bc,_0x155a6f,_0x19e2af,_0x3a7bcc,_0x3afcb3,_0x2b8ca3,_0x17faf5,_0x8a8c6d){const _0xac01a5=_0x4fa2a5;super(_0x54a0b2,_0x3741ab,_0x16cb1c,_0x2950c6,_0x28248f,_0x11f2af,_0x407b93,_0x43c6bc,_0x155a6f,_0x19e2af,_0x3a7bcc,_0x3afcb3,_0x17faf5,_0x8a8c6d),this['unitID']=_0x54a0b2,this[_0xac01a5(0x3c6)]=_0x16cb1c,this[_0xac01a5(0x38a)]=_0x2b8ca3,_0x5aacdf(this,'_handlerCallback',null);}[_0x4fa2a5(0x264)](_0x5e7d6c){this['_handlerCallback']=_0x5e7d6c;}[_0x4fa2a5(0x3b4)](){const _0x37b6a4=_0x4fa2a5;this[_0x37b6a4(0x3aa)]=null,super[_0x37b6a4(0x3b4)]();}[_0x4fa2a5(0x1b3)](){const _0x11f51a=_0x4fa2a5;let _0x38e045=super[_0x11f51a(0x1b3)]();return _0x38e045[_0x11f51a(0x2ac)]=_0x409ce1=>{const _0x46298d=_0x11f51a;var _0x3cf94c,_0x3380a1;return(_0x3cf94c=this['_handlerCallback'])==null||(_0x3380a1=_0x3cf94c['onTransformIME'])==null?void 0x0:_0x3380a1[_0x46298d(0x2e5)](_0x3cf94c,_0x409ce1);},_0x38e045[_0x11f51a(0x19b)]=_0x44ca74=>{const _0x661a2c=_0x11f51a;var _0x29061c,_0x47ab5b;return(_0x29061c=this[_0x661a2c(0x3aa)])==null||(_0x47ab5b=_0x29061c[_0x661a2c(0x19b)])==null?void 0x0:_0x47ab5b['call'](_0x29061c,_0x44ca74);},_0x38e045[_0x11f51a(0xba)]=_0x506fdc=>{const _0x1065c1=_0x11f51a;var _0x3bd9a0,_0x78d32d;return((_0x3bd9a0=this[_0x1065c1(0x3aa)])==null||(_0x78d32d=_0x3bd9a0[_0x1065c1(0xba)])==null?void 0x0:_0x78d32d['call'](_0x3bd9a0,_0x506fdc))??null;},_0x38e045[_0x11f51a(0xfa)]=_0x9af00d=>{const _0x140cb9=_0x11f51a;var _0x2b3aad,_0x42f299;return(_0x2b3aad=this[_0x140cb9(0x3aa)])==null||(_0x42f299=_0x2b3aad[_0x140cb9(0xfa)])==null?void 0x0:_0x42f299['call'](_0x2b3aad,_0x9af00d);},_0x38e045[_0x11f51a(0x256)]=_0xa60236=>{const _0x3872ff=_0x11f51a;var _0x316031,_0x74268f;return(_0x316031=this[_0x3872ff(0x3aa)])==null||(_0x74268f=_0x316031[_0x3872ff(0x256)])==null?void 0x0:_0x74268f[_0x3872ff(0x2e5)](_0x316031,_0xa60236);},_0x38e045[_0x11f51a(0x1af)]=_0x50de6f=>{const _0x558ab3=_0x11f51a;var _0x457f78,_0xba37d8;return((_0x457f78=this[_0x558ab3(0x3aa)])==null||(_0xba37d8=_0x457f78[_0x558ab3(0x1af)])==null?void 0x0:_0xba37d8['call'](_0x457f78,_0x50de6f))??_0x50de6f;},_0x38e045['onTransformRemoteChangesetByStateCache']=_0x2741ea=>{const _0x305d5e=_0x11f51a;var _0x115a69,_0x3c9173;return((_0x115a69=this[_0x305d5e(0x3aa)])==null||(_0x3c9173=_0x115a69[_0x305d5e(0x116)])==null?void 0x0:_0x3c9173[_0x305d5e(0x2e5)](_0x115a69,_0x2741ea))??_0x2741ea;},_0x38e045;}async[_0x4fa2a5(0x29b)](){const _0x33f79e=_0x4fa2a5;let _0x16ed21=await super[_0x33f79e(0x29b)]();return this[_0x33f79e(0x413)](this[_0x33f79e(0x38a)][_0x33f79e(0x147)]['subscribe'](_0x57b1f4=>{const _0x291739=_0x33f79e;if(_0x57b1f4==null||_0x57b1f4[_0x291739(0x229)]!==this[_0x291739(0x210)])return;let {commandId:_0x5c29b8,redoState:_0xa04936,unitId:_0x470bb7}=_0x57b1f4,_0x5a27df={'id':_0x5c29b8,'type':_0x433f65[_0x291739(0x390)]['MUTATION'],'params':{'unitId':_0x470bb7,'actions':_0xa04936[_0x291739(0x30a)],'textRanges':null}};this[_0x291739(0x35d)](_0x5a27df);})),this[_0x33f79e(0x413)](this[_0x33f79e(0x1ee)][_0x33f79e(0x117)]((_0x197b4f,_0x14b81b)=>{const _0x328129=_0x33f79e;if(_0x197b4f['type']!==_0x433f65[_0x328129(0x390)][_0x328129(0x157)]||_0x14b81b!=null&&_0x14b81b[_0x328129(0x416)]||_0x14b81b!=null&&_0x14b81b[_0x328129(0x2fb)]||_0x197b4f['id']===_0xaa3595[_0x328129(0x184)]['id'])return;let _0x5d7eab=_0x197b4f['params'];if((_0x5d7eab==null?void 0x0:_0x5d7eab[_0x328129(0x229)])!==this[_0x328129(0x210)])return;let _0x54cdd3=_0x197b4f,_0x502231=this[_0x328129(0x396)]['interceptor'][_0x328129(0x285)](this[_0x328129(0x396)][_0x328129(0x2c4)]['getInterceptPoints']()[_0x328129(0x376)])([_0x54cdd3],this['_univerInstanceService'])||[_0x54cdd3];this['_onLocalMutation'](_0x502231[0x0]);})),_0x16ed21;}};_0x31d725=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734['CompressMutationService'])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x8,_0x433f65['IUniverInstanceService']),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65['IPermissionService']),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0xaa3595[_0x4fa2a5(0x1fc)])),_0x374c65(0xd,(0x0,_0x433f65['Optional'])(_0x4aaa76)),_0x374c65(0xe,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x31d725);let _0x53717a=class extends _0x18d3ff{constructor(_0x1863fa,_0x4889d5,_0x1ab233,_0x52aad7,_0x4719ee,_0x158d68,_0x243eec,_0x4ec774,_0x25dacf,_0x186740,_0x2f98c6,_0x3c076b,_0x31054a,_0x53e3e5){const _0xec55b0=_0x4fa2a5;super(_0x1863fa,_0x1ab233,_0x4889d5,_0x52aad7,_0x4719ee,_0x158d68,_0x243eec,_0x4ec774,_0x25dacf,_0x186740,_0x2f98c6,_0x3c076b,_0x31054a,_0x53e3e5),this[_0xec55b0(0x210)]=_0x1863fa,this['type']=_0x4889d5;}async['_init'](){const _0x45ffc3=_0x4fa2a5;let _0x5d3c23=await super[_0x45ffc3(0x29b)]();return this[_0x45ffc3(0x413)](this[_0x45ffc3(0x1ee)][_0x45ffc3(0x117)]((_0x53c3cc,_0x16bc48)=>{const _0x54f89c=_0x45ffc3;if(_0x53c3cc[_0x54f89c(0x3c6)]!==_0x433f65['CommandType'][_0x54f89c(0x157)]||_0x16bc48!=null&&_0x16bc48[_0x54f89c(0x416)]||_0x16bc48!=null&&_0x16bc48[_0x54f89c(0x2fb)])return;let _0x5e7229=_0x53c3cc[_0x54f89c(0x206)];if((_0x5e7229==null?void 0x0:_0x5e7229['unitId'])!==this[_0x54f89c(0x210)])return;let _0x29c35a=_0x53c3cc,_0x3066f0=this[_0x54f89c(0x396)][_0x54f89c(0x2c4)][_0x54f89c(0x285)](this[_0x54f89c(0x396)][_0x54f89c(0x2c4)]['getInterceptPoints']()[_0x54f89c(0x376)])([_0x29c35a],this['_univerInstanceService'])||[_0x29c35a];this[_0x54f89c(0x35d)](_0x3066f0[0x0]);})),_0x5d3c23;}};_0x53717a=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['Injector'])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734['CompressMutationService'])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65['Inject'])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65['Inject'])(_0x483ee6)),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x4aaa76)),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x53717a);let _0x89772b=class extends _0x18d3ff{constructor(_0x41af6d,_0x5ab735,_0x508180,_0x3a7afd,_0x154478,_0x30e1b5,_0x4ce192,_0x1e397a,_0x3183f2,_0x4a3246,_0x411eb6,_0x2644ef,_0xe4eab0,_0x3f6573,_0xad4ca9){const _0x11ac25=_0x4fa2a5;super(_0x41af6d,_0x508180,_0x5ab735,_0x3a7afd,_0x154478,_0x30e1b5,_0x4ce192,_0x3183f2,_0x4a3246,_0x411eb6,_0x2644ef,_0xe4eab0,_0x3f6573,_0xad4ca9),this[_0x11ac25(0x210)]=_0x41af6d,this[_0x11ac25(0x3c6)]=_0x5ab735,this['_sheetTransformSelectionsService']=_0x1e397a;}[_0x4fa2a5(0x1b3)](){const _0xd1535e=_0x4fa2a5;let _0x4b7711=super[_0xd1535e(0x1b3)]();return _0x4b7711[_0xd1535e(0xfa)]=_0x1bafb4=>this[_0xd1535e(0xb0)]['transformSelections'](_0x1bafb4),_0x4b7711;}async['_init'](){const _0x326279=_0x4fa2a5;let _0x1190aa=await super[_0x326279(0x29b)]();return this[_0x326279(0x413)](this[_0x326279(0x1ee)]['onMutationExecutedForCollab']((_0x2cc799,_0x5d207c)=>{const _0x15be00=_0x326279;if(_0x2cc799['type']!==_0x433f65[_0x15be00(0x390)]['MUTATION']||_0x5d207c!=null&&_0x5d207c[_0x15be00(0x416)]||_0x5d207c!=null&&_0x5d207c['onlyLocal'])return;let _0x3e65c0=_0x2cc799[_0x15be00(0x206)];if((_0x3e65c0==null?void 0x0:_0x3e65c0['unitId'])!==this[_0x15be00(0x210)])return;let _0x1d5c82=_0x2cc799,_0x385f02=this[_0x15be00(0x396)][_0x15be00(0x2c4)][_0x15be00(0x285)](this[_0x15be00(0x396)]['interceptor'][_0x15be00(0x193)]()[_0x15be00(0x376)])([_0x1d5c82],this[_0x15be00(0x3f3)])||[_0x1d5c82];this[_0x15be00(0x35d)](_0x385f02[0x0]);})),_0x1190aa;}};_0x89772b=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0x1da)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['LocaleService'])),_0x374c65(0x6,(0x0,_0x433f65['Inject'])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x41b88d)),_0x374c65(0x8,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xc,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x4aaa76)),_0x374c65(0xe,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x89772b);let _0x1b8073=class extends _0x18d3ff{constructor(_0x37c8a2,_0x20f801,_0x57d21b,_0x157777,_0x42a487,_0x24e11c,_0x16abbd,_0x386a60,_0x41b885,_0x595782,_0x422cda,_0xf830a8,_0x3bd560,_0x58aba4){const _0x5504b6=_0x4fa2a5;super(_0x37c8a2,_0x57d21b,_0x20f801,_0x157777,_0x42a487,_0x24e11c,_0x16abbd,_0x386a60,_0x41b885,_0x595782,_0x422cda,_0xf830a8,_0x3bd560,_0x58aba4),this['unitID']=_0x37c8a2,this[_0x5504b6(0x3c6)]=_0x20f801;}async[_0x4fa2a5(0x29b)](){const _0x5c0b07=_0x4fa2a5;let _0x3a8a7c=await super[_0x5c0b07(0x29b)]();return this['disposeWithMe'](this[_0x5c0b07(0x1ee)]['onMutationExecutedForCollab']((_0xd067c6,_0x2b6288)=>{const _0x5028e6=_0x5c0b07;if(_0xd067c6['type']!==_0x433f65[_0x5028e6(0x390)][_0x5028e6(0x157)]||_0x2b6288!=null&&_0x2b6288[_0x5028e6(0x416)]||_0x2b6288!=null&&_0x2b6288[_0x5028e6(0x2fb)])return;let _0x2a0284=_0xd067c6['params'];if((_0x2a0284==null?void 0x0:_0x2a0284[_0x5028e6(0x229)])!==this['unitID'])return;let _0x2af4fc=_0xd067c6,_0x10962b=this[_0x5028e6(0x396)][_0x5028e6(0x2c4)][_0x5028e6(0x285)](this[_0x5028e6(0x396)][_0x5028e6(0x2c4)][_0x5028e6(0x193)]()[_0x5028e6(0x376)])([_0x2af4fc],this[_0x5028e6(0x3f3)])||[_0x2af4fc];this[_0x5028e6(0x35d)](_0x10962b[0x0]);})),_0x3a8a7c;}};_0x1b8073=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['Injector'])),_0x374c65(0x4,(0x0,_0x433f65['Inject'])(_0x3a5734[_0x4fa2a5(0x1da)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65['Inject'])(_0x483ee6)),_0x374c65(0x8,_0x433f65['IUniverInstanceService']),_0x374c65(0x9,_0x433f65['ILogService']),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x4aaa76)),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x1b8073);let _0x1dc09d=class extends _0x18d3ff{constructor(_0x345549,_0x659245,_0x35e89f,_0x2489e3,_0x372ce4,_0x56c8c1,_0x3e714a,_0x2df6e4,_0x20e71c,_0x2c6feb,_0x315cc0,_0x1ae0ca,_0x4ec982,_0x50462a){const _0x5c50e1=_0x4fa2a5;super(_0x345549,_0x35e89f,_0x659245,_0x2489e3,_0x372ce4,_0x56c8c1,_0x3e714a,_0x2df6e4,_0x20e71c,_0x2c6feb,_0x315cc0,_0x1ae0ca,_0x4ec982,_0x50462a),this[_0x5c50e1(0x210)]=_0x345549,this[_0x5c50e1(0x3c6)]=_0x659245;}async['_init'](){const _0x24bcc9=_0x4fa2a5;let _0x138e75=await super[_0x24bcc9(0x29b)]();return this['disposeWithMe'](this[_0x24bcc9(0x1ee)][_0x24bcc9(0x117)]((_0x76ee44,_0x3271ec)=>{const _0x53ee80=_0x24bcc9;if(_0x76ee44['type']!==_0x433f65[_0x53ee80(0x390)][_0x53ee80(0x157)]||_0x3271ec!=null&&_0x3271ec[_0x53ee80(0x416)]||_0x3271ec!=null&&_0x3271ec[_0x53ee80(0x2fb)])return;let _0x31c6d5=_0x76ee44[_0x53ee80(0x206)];if((_0x31c6d5==null?void 0x0:_0x31c6d5['unitId'])!==this['unitID'])return;let _0x2693fc=_0x76ee44,_0x2bed9e=this[_0x53ee80(0x396)]['interceptor'][_0x53ee80(0x285)](this[_0x53ee80(0x396)][_0x53ee80(0x2c4)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x2693fc],this['_univerInstanceService'])||[_0x2693fc];this[_0x53ee80(0x35d)](_0x2bed9e[0x0]);})),_0x138e75;}};_0x1dc09d=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0x1da)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65['Inject'])(_0x483ee6)),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x9,_0x433f65['ILogService']),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65['IPermissionService']),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x4aaa76)),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x1dc09d);let _0x25572c=class extends _0x18d3ff{constructor(_0x4b0eba,_0x1c5aec,_0x47e610,_0x37bfb8,_0x4d282e,_0x194cb2,_0x123aac,_0xcce933,_0x2957e0,_0x19f6ac,_0xc43478,_0x291735,_0x562722,_0x3ef426){super(_0x4b0eba,_0x47e610,_0x1c5aec,_0x37bfb8,_0x4d282e,_0x194cb2,_0x123aac,_0xcce933,_0x2957e0,_0x19f6ac,_0xc43478,_0x291735,_0x562722,_0x3ef426),this['unitID']=_0x4b0eba,this['type']=_0x1c5aec;}async['_init'](){const _0x3f8781=_0x4fa2a5;let _0x239e44=await super[_0x3f8781(0x29b)]();return this[_0x3f8781(0x413)](this['_commandService']['onMutationExecutedForCollab']((_0x4caafc,_0x1d6851)=>{const _0x543dca=_0x3f8781;if(_0x4caafc['type']!==_0x433f65[_0x543dca(0x390)][_0x543dca(0x157)]||_0x1d6851!=null&&_0x1d6851['fromCollab']||_0x1d6851!=null&&_0x1d6851[_0x543dca(0x2fb)])return;let _0xe952cc=_0x4caafc[_0x543dca(0x206)];if((_0xe952cc==null?void 0x0:_0xe952cc['unitId'])!==this[_0x543dca(0x210)])return;let _0x626fa=_0x4caafc,_0x19731d=this[_0x543dca(0x396)][_0x543dca(0x2c4)]['fetchThroughInterceptors'](this[_0x543dca(0x396)][_0x543dca(0x2c4)][_0x543dca(0x193)]()[_0x543dca(0x376)])([_0x626fa],this[_0x543dca(0x3f3)])||[_0x626fa];this[_0x543dca(0x35d)](_0x19731d[0x0]);})),_0x239e44;}};_0x25572c=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0x1da)])),_0x374c65(0x5,(0x0,_0x433f65['Inject'])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x433f65['ICommandService']),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0xc,(0x0,_0x433f65['Optional'])(_0x4aaa76)),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x25572c);let _0x43e589=(0x0,_0x433f65[_0x4fa2a5(0xad)])(_0x4fa2a5(0xd6));function _0x18ff47(_0x1dfa86){const _0x5b6676=_0x4fa2a5;let _0x53170c=_0x1dfa86[_0x5b6676(0x2c7)],_0x3fe055=JSON[_0x5b6676(0x200)](_0x53170c);switch(_0x3fe055[_0x5b6676(0x20a)]){case _0x4ed0d4[_0x5b6676(0x35a)][_0x5b6676(0x14b)]:case _0x4ed0d4[_0x5b6676(0x35a)][_0x5b6676(0x215)]:{let _0x43a200=_0x3fe055[_0x5b6676(0x156)];return{..._0x3fe055,'data':_0x43a200,'cmd':_0x3fe055[_0x5b6676(0x20a)]};}case _0x4ed0d4['CombCmd']['JOIN']:{let _0x5cdbc7=_0x3fe055[_0x5b6676(0x1ec)];return{..._0x3fe055,'data':_0x5cdbc7,'cmd':_0x3fe055['cmd']};}case _0x4ed0d4[_0x5b6676(0x35a)][_0x5b6676(0x1f4)]:{let _0x241d1e=_0x3fe055[_0x5b6676(0x244)];switch(_0x241d1e[_0x5b6676(0x130)]){case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x19e)]:var _0x2da991;return{..._0x3fe055,'data':{..._0x241d1e,'data':(_0x2da991=_0x241d1e['permissionRejEvent'])==null?void 0x0:_0x2da991['cs']},'cmd':_0x3fe055['cmd']};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x370)]:var _0x520034;return{..._0x3fe055,'data':{..._0x241d1e,'data':(_0x520034=_0x241d1e[_0x5b6676(0xf8)])==null?void 0x0:_0x520034['cs']},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734['CollaborationEvent'][_0x5b6676(0x24f)]:var _0x3c4985;return{..._0x3fe055,'data':{..._0x241d1e,'data':(_0x3c4985=_0x241d1e[_0x5b6676(0x14d)])==null?void 0x0:_0x3c4985['cs']},'cmd':_0x3fe055['cmd']};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x373)]:var _0x32bedd;return{..._0x3fe055,'data':{..._0x241d1e,'data':(_0x32bedd=_0x241d1e['csRejEvent'])==null?void 0x0:_0x32bedd['cs']},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x20b)]:var _0x58efe7;return{..._0x3fe055,'data':{..._0x241d1e,'data':(_0x58efe7=_0x241d1e[_0x5b6676(0xbf)])==null?void 0x0:_0x58efe7['cs']},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x2c5)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e['updateCursorEvent']},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734['CollaborationEvent'][_0x5b6676(0xce)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x14e)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x1d9)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x36e)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)]['LIVESHARE_NEW_HOST']:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x100)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)]['LIVESHARE_FETCH_OPERATIONS']:case _0x3a5734['CollaborationEvent'][_0x5b6676(0xd2)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x3da)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)]['LIVESHARE_TERMINATE']:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x100)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734['CollaborationEvent'][_0x5b6676(0x3f9)]:return{..._0x3fe055,'data':_0x241d1e,'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)]['COMMENT_UPDATE']:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x3d9)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x136)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0xc8)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)]['SHOULD_CLOSE_CONN']:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x2f0)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x406)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e['uniscriptRunEvent']},'cmd':_0x3fe055[_0x5b6676(0x20a)]};default:return _0x3fe055;}}default:return _0x3fe055;}}function _0xe30654(_0x599f4d){const _0x3bd712=_0x4fa2a5;switch(_0x599f4d[_0x3bd712(0x20a)]){case _0x4ed0d4[_0x3bd712(0x35a)][_0x3bd712(0x14b)]:case _0x4ed0d4[_0x3bd712(0x35a)]['HELLO']:return JSON[_0x3bd712(0x3be)]({'cmd':_0x599f4d[_0x3bd712(0x20a)],'routeKey':_0x599f4d[_0x3bd712(0x231)]});case _0x4ed0d4[_0x3bd712(0x35a)][_0x3bd712(0x207)]:{let _0x5ceedb;switch(_0x599f4d[_0x3bd712(0x2c7)][_0x3bd712(0x130)]){case _0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x2c5)]:_0x5ceedb={'eventID':_0x3a5734['CollaborationEvent'][_0x3bd712(0x2c5)],'updateCursorEvent':_0x599f4d[_0x3bd712(0x2c7)][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x1d9)]:_0x5ceedb={'eventID':_0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x1d9)],'leaveEvent':_0x599f4d['data'][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)]['USERS_ENTER']:_0x5ceedb={'eventID':_0x3a5734['CollaborationEvent'][_0x3bd712(0xce)],'joinEvent':_0x599f4d[_0x3bd712(0x2c7)][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x108)]:_0x5ceedb={'eventID':_0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x108)],'liveShareNewHost':_0x599f4d[_0x3bd712(0x2c7)][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)][_0x3bd712(0xd2)]:_0x5ceedb={'eventID':_0x3a5734[_0x3bd712(0xec)][_0x3bd712(0xd2)],'liveShareOperation':_0x599f4d['data'][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)]['LIVESHARE_TERMINATE']:_0x5ceedb={'eventID':_0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x2a5)],'liveShareTerminate':_0x599f4d[_0x3bd712(0x2c7)][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)]['LIVESHARE_REQUEST_HOST']:_0x5ceedb={'eventID':_0x3a5734[_0x3bd712(0xec)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x599f4d[_0x3bd712(0x2c7)]['data']};break;case _0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x164)]:_0x5ceedb={'eventID':_0x3a5734['CollaborationEvent'][_0x3bd712(0x164)]};break;default:_0x5ceedb={'eventID':_0x599f4d['data'][_0x3bd712(0x130)]};}return JSON['stringify']({'cmd':_0x599f4d[_0x3bd712(0x20a)],'routeKey':_0x599f4d[_0x3bd712(0x231)],'collaMsg':_0x5ceedb});}case _0x4ed0d4[_0x3bd712(0x35a)]['JOIN']:return JSON[_0x3bd712(0x3be)]({'cmd':_0x599f4d[_0x3bd712(0x20a)],'routeKey':_0x599f4d[_0x3bd712(0x231)],'joinReq':_0x599f4d['data']});case _0x4ed0d4[_0x3bd712(0x35a)]['LEAVE']:return JSON[_0x3bd712(0x3be)]({'cmd':_0x599f4d['cmd'],'routeKey':_0x599f4d[_0x3bd712(0x231)],'leaveReq':_0x599f4d[_0x3bd712(0x2c7)]});default:throw Error(_0x3bd712(0xa1));}}let _0x1121da=(0x0,_0x433f65[_0x4fa2a5(0xad)])(_0x4fa2a5(0x1a7));function _0x5c47b5(_0xfc5ac3,_0x179ed1,_0x59e9fb){const _0x322c0c=_0x4fa2a5;return _0xfc5ac3+'/'+_0x179ed1+_0x322c0c(0x394)+_0x59e9fb+_0x322c0c(0x2b7);}let _0x28996e=class extends _0x433f65[_0x4fa2a5(0x325)]{constructor(_0x3ccef8,_0x5c662d,_0x4d4b88,_0x2de870,_0x3d92fb){const _0x2c64d8=_0x4fa2a5;super(),this[_0x2c64d8(0x40f)]=_0x3ccef8,this[_0x2c64d8(0x33c)]=_0x5c662d,this[_0x2c64d8(0x1a9)]=_0x4d4b88,this[_0x2c64d8(0x314)]=_0x2de870,this[_0x2c64d8(0x120)]=_0x3d92fb;}[_0x4fa2a5(0x37f)](_0x3f9e2d){const _0x1cf71a=_0x4fa2a5;let _0x453e3e=this[_0x1cf71a(0x40f)]['get'](_0x544d24['ISocketService']);if(!_0x453e3e)throw Error(_0x1cf71a(0x17c));let _0x2bde4d=_0x453e3e[_0x1cf71a(0x21f)](_0x3f9e2d);if(!_0x2bde4d)throw Error(_0x1cf71a(0x2a3));let _0xa787=new _0x433f65[(_0x1cf71a(0x238))](),_0x513475=new _0x450705['Subject']();_0xa787[_0x1cf71a(0x21b)](_0x2bde4d[_0x1cf71a(0x33d)]['subscribe'](_0x3e293a=>_0x513475[_0x1cf71a(0x163)](_0x3e293a))),_0xa787[_0x1cf71a(0x21b)]((0x0,_0x433f65[_0x1cf71a(0x228)])(()=>_0x513475[_0x1cf71a(0x410)]()));let _0x2d7a02=new _0x450705[(_0x1cf71a(0x155))]();_0xa787[_0x1cf71a(0x21b)](_0x2bde4d['error$']['subscribe'](_0x3b18c2=>_0x2d7a02[_0x1cf71a(0x163)](_0x3b18c2))),_0xa787[_0x1cf71a(0x21b)]((0x0,_0x433f65[_0x1cf71a(0x228)])(()=>_0x2d7a02[_0x1cf71a(0x410)]()));let _0x3d9a5d=new _0x450705['Subject']();_0xa787[_0x1cf71a(0x21b)](_0x2bde4d[_0x1cf71a(0x197)][_0x1cf71a(0x252)](_0x439ae8=>{const _0x161340=_0x1cf71a;let _0x556779=_0x18ff47(_0x439ae8);_0x3d9a5d[_0x161340(0x163)](_0x556779);})),_0xa787[_0x1cf71a(0x21b)]((0x0,_0x433f65[_0x1cf71a(0x228)])(()=>_0x3d9a5d[_0x1cf71a(0x410)]()));let _0x4a0ffb,_0x4385f9=()=>{const _0x47445e=_0x1cf71a;_0x2d7a02['next'](new Event(_0x47445e(0x27f))),_0x513475[_0x47445e(0x163)](new Event(_0x47445e(0x27f))),_0x4a0ffb[_0x47445e(0x17d)]();};return _0x4a0ffb={'memberID':'','close$':_0x513475['asObservable'](),'error$':_0x2d7a02['asObservable'](),'open$':_0x2bde4d[_0x1cf71a(0x2ff)],'message$':_0x3d9a5d['asObservable'](),'send':_0x17ecf8=>{const _0x1acc71=_0x1cf71a;if(_0x17ecf8[_0x1acc71(0x20a)]===_0x4ed0d4[_0x1acc71(0x35a)][_0x1acc71(0x207)]){if(_0x17ecf8['data'][_0x1acc71(0x130)]===_0x3a5734[_0x1acc71(0xec)][_0x1acc71(0x22d)]){this[_0x1acc71(0x335)](_0x4a0ffb,_0x17ecf8[_0x1acc71(0x2c7)])[_0x1acc71(0x1a4)](_0x10c083=>{this['_logService']['error'](_0x10c083),_0x4385f9();});return;}if(_0x17ecf8[_0x1acc71(0x2c7)]['eventID']===_0x3a5734[_0x1acc71(0xec)][_0x1acc71(0x1e1)]){let _0x122850=_0x17ecf8[_0x1acc71(0x2c7)];this['_fetchMissChangesets'](_0x122850)['then'](_0x3b8800=>{const _0x22a9ec=_0x1acc71;_0x3d9a5d['next']({'cmd':_0x4ed0d4[_0x22a9ec(0x35a)][_0x22a9ec(0x1f4)],'code':_0x4ed0d4[_0x22a9ec(0x27a)]['OK'],'routeKey':_0x122850[_0x22a9ec(0x2c7)][_0x22a9ec(0x210)],'routeType':'','data':{'eventID':_0x3a5734[_0x22a9ec(0xec)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x3b8800}}});})[_0x1acc71(0x1a4)](_0x9c3400=>{const _0x491d3b=_0x1acc71;this[_0x491d3b(0x314)]['error'](_0x9c3400),_0x4385f9();});return;}}_0x2bde4d[_0x1acc71(0x402)](_0xe30654(_0x17ecf8));},'close':()=>{const _0x4e15e4=_0x1cf71a;_0x2bde4d[_0x4e15e4(0x17d)](),_0xa787[_0x4e15e4(0x3b4)]();}},_0x4a0ffb;}async[_0x4fa2a5(0x335)](_0x35a73b,_0x2db676){const _0x6092b6=_0x4fa2a5;let {unitType:_0x5d4690,unitID:_0x30b878,changeset:_0x369136}=_0x2db676[_0x6092b6(0x2c7)],_0x392a6e={'unitID':_0x30b878,'memberID':_0x35a73b[_0x6092b6(0x38b)],'type':_0x5d4690,'changeset':(0x0,_0x3a5734[_0x6092b6(0x26e)])(_0x369136)},_0x5c63a9=this[_0x6092b6(0x1a9)][_0x6092b6(0xd7)](_0x18fed6),_0x415c5a=_0x5c47b5((_0x5c63a9==null?void 0x0:_0x5c63a9[_0x6092b6(0x378)])??_0x6092b6(0x361),_0x5d4690,_0x30b878);try{await this[_0x6092b6(0x33c)][_0x6092b6(0x201)](_0x415c5a,{'body':_0x392a6e});}catch(_0x1722cf){throw this[_0x6092b6(0x314)][_0x6092b6(0x187)](_0x6092b6(0x21e),'submit\x20changeset\x20error!'),_0x1722cf;}}async[_0x4fa2a5(0x182)](_0x4cf506){const _0x8cc18c=_0x4fa2a5;let {unitID:_0xf7f3af,from:_0x28b707,to:_0x5af570,unitType:_0x10ecbf}=_0x4cf506[_0x8cc18c(0x2c7)];return(await this[_0x8cc18c(0x120)][_0x8cc18c(0x1df)]({'metadata':void 0x0},{'unitID':_0xf7f3af,'type':_0x10ecbf,'from':_0x28b707,'to':_0x5af570}))['changesets'][_0x8cc18c(0x224)](_0x250cec=>((_0x250cec['mutations']===null||_0x250cec[_0x8cc18c(0x2d5)]===void 0x0)&&(_0x250cec[_0x8cc18c(0x2d5)]=[]),_0x250cec));}};_0x28996e=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x1,(0x0,_0x433f65['Inject'])(_0x544d24[_0x4fa2a5(0x320)])),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x3,_0x433f65['ILogService']),_0x374c65(0x4,_0x3a5734[_0x4fa2a5(0xb8)])],_0x28996e);let _0x2a5cd3=(0x0,_0x433f65[_0x4fa2a5(0xad)])('univer-pro.collaboration-client-adapter-service');function _0x200c62(_0x2b460d={}){const _0x3c5864=_0x4fa2a5;return _0x2b460d[_0x3c5864(0x33f)]?{'resolveUnit':_0x2b460d[_0x3c5864(0x33f)]}:{'resolveUnit':_0xe78064=>({'target':{'unitId':_0xe78064[_0x3c5864(0x229)],'unitType':_0xe78064[_0x3c5864(0x10a)]}})};}function _0x5dcc79(_0x3443a8,_0x50a49f,_0x31fb8){const _0xdb97f7=_0x4fa2a5;let _0x5c4506=_0x31fb8[_0xdb97f7(0x24c)][_0xdb97f7(0x13a)];if(_0x5c4506!=null&&_0x5c4506[_0xdb97f7(0x1c1)]()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x31fb8[_0xdb97f7(0x24c)][_0xdb97f7(0x229)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x3443a8,'unitType':_0x50a49f,'target':{'endpoint':_0x5c4506,'unitId':_0x31fb8[_0xdb97f7(0x24c)]['unitId'],'unitType':_0x31fb8[_0xdb97f7(0x24c)]['unitType']??_0x50a49f},'changeset':_0x31fb8[_0xdb97f7(0xf9)]};}let _0x2b5c76=class extends _0x433f65[_0x4fa2a5(0x325)]{constructor(_0x28945f,_0x1becdd,_0x3b9c84,_0x2d374a,_0x4dc1bb,_0x470aac,_0x521b84){const _0x1909de=_0x4fa2a5;super(),this['_injector']=_0x28945f,this[_0x1909de(0x314)]=_0x1becdd,this[_0x1909de(0x1a9)]=_0x3b9c84,this['_socketService']=_0x2d374a,this[_0x1909de(0x347)]=_0x4dc1bb,this[_0x1909de(0x134)]=_0x470aac,this[_0x1909de(0x3dc)]=_0x521b84,_0x5aacdf(this,_0x1909de(0x342),new Map()),_0x5aacdf(this,_0x1909de(0x209),new Map()),_0x5aacdf(this,_0x1909de(0x1e2),new Map()),_0x5aacdf(this,_0x1909de(0x32c),new Map()),_0x5aacdf(this,_0x1909de(0x103),this[_0x1909de(0x1d4)](void 0x0)[_0x1909de(0x103)][_0x1909de(0x343)]()),_0x5aacdf(this,_0x1909de(0x3d1),new _0x450705[(_0x1909de(0x1f8))](0x0)),_0x5aacdf(this,_0x1909de(0x1ed),this[_0x1909de(0x3d1)][_0x1909de(0x343)]()),this[_0x1909de(0x1a3)]();}[_0x4fa2a5(0x1a3)](){const _0x5805cf=_0x4fa2a5;this[_0x5805cf(0x3dc)]&&this['disposeWithMe'](this[_0x5805cf(0x3dc)][_0x5805cf(0x403)][_0x5805cf(0x252)](_0x59a303=>{const _0xc1cf05=_0x5805cf;_0x59a303&&this[_0xc1cf05(0x332)](),_0x59a303||this[_0xc1cf05(0x32c)][_0xc1cf05(0x1d2)](_0x5ee5a9=>this[_0xc1cf05(0x254)](_0x5ee5a9));}));}[_0x4fa2a5(0x3b4)](){const _0x1468e9=_0x4fa2a5;super['dispose'](),this['_socketChannels']['forEach'](_0x10d91f=>{const _0x549f82=_0x5846;var _0x1f7197,_0x193f03;(_0x1f7197=_0x10d91f[_0x549f82(0x12d)])==null||_0x1f7197[_0x549f82(0x3ba)](),_0x10d91f['socketMessageSubscription']=null,this[_0x549f82(0xe8)](_0x10d91f),this[_0x549f82(0x1d8)](_0x10d91f),this[_0x549f82(0x12a)](_0x10d91f),(_0x193f03=_0x10d91f[_0x549f82(0x103)][_0x549f82(0x3ee)]())==null||_0x193f03[_0x549f82(0x17d)](),_0x10d91f[_0x549f82(0x103)][_0x549f82(0x410)]();}),this[_0x1468e9(0x32c)][_0x1468e9(0x2f9)](),this['_sessions']['forEach'](_0x181eab=>_0x181eab[_0x1468e9(0x3b4)]()),this[_0x1468e9(0x342)][_0x1468e9(0x2f9)](),this['_sessionChannels'][_0x1468e9(0x2f9)](),this[_0x1468e9(0x3d1)][_0x1468e9(0x410)]();}async[_0x4fa2a5(0x40c)](_0x58d040,_0x260e26){const _0x33cf1c=_0x4fa2a5;if(this[_0x33cf1c(0x342)][_0x33cf1c(0x1de)](_0x58d040))return this[_0x33cf1c(0x342)][_0x33cf1c(0x2c0)](_0x58d040);let _0x3275a9=this[_0x33cf1c(0x209)][_0x33cf1c(0x2c0)](_0x58d040);if(_0x3275a9)return _0x3275a9;let _0x203412=this[_0x33cf1c(0x35c)](_0x58d040,_0x260e26);this[_0x33cf1c(0x209)][_0x33cf1c(0x10c)](_0x58d040,_0x203412);try{return await _0x203412;}finally{this[_0x33cf1c(0x209)][_0x33cf1c(0x3ae)](_0x58d040);}}async[_0x4fa2a5(0x35c)](_0x109ecd,_0x1904e4){const _0x5ef0c5=_0x4fa2a5;let _0x2679b9=await this[_0x5ef0c5(0x27e)](_0x109ecd,_0x1904e4),_0x2b864f=this['_getSocketChannel'](_0x2679b9[_0x5ef0c5(0x24c)][_0x5ef0c5(0x13a)]);this['_tryEnsureSocket'](_0x2b864f);let _0x4884e3=this['_injector'][_0x5ef0c5(0x11d)](_0x45e291,_0x2679b9,_0x2b864f['socket$'][_0x5ef0c5(0x343)]());return this[_0x5ef0c5(0x342)][_0x5ef0c5(0x10c)](_0x109ecd,_0x4884e3),this[_0x5ef0c5(0x1e2)]['set'](_0x109ecd,_0x2b864f[_0x5ef0c5(0x11b)]),_0x4884e3;}[_0x4fa2a5(0x284)](_0x562da1){const _0x2a869c=_0x4fa2a5;let _0x26cc30=this[_0x2a869c(0x342)][_0x2a869c(0x2c0)](_0x562da1),_0x3217ed=this[_0x2a869c(0x1e2)][_0x2a869c(0x2c0)](_0x562da1);if(_0x26cc30&&(this[_0x2a869c(0x342)]['delete'](_0x562da1),this[_0x2a869c(0x1e2)][_0x2a869c(0x3ae)](_0x562da1),_0x26cc30['close']()),_0x3217ed&&!this[_0x2a869c(0xab)](_0x3217ed)){var _0x1f774b;let _0x2298c4=this[_0x2a869c(0x32c)][_0x2a869c(0x2c0)](_0x3217ed);_0x2298c4==null||(_0x1f774b=_0x2298c4[_0x2a869c(0x103)][_0x2a869c(0x3ee)]())==null||_0x1f774b[_0x2a869c(0x17d)]();}}[_0x4fa2a5(0x332)](){const _0x3b757e=_0x4fa2a5;(this[_0x3b757e(0x32c)][_0x3b757e(0x1dd)]?[...this[_0x3b757e(0x32c)][_0x3b757e(0x168)]()]:[this[_0x3b757e(0x1d4)](void 0x0)])['forEach'](_0x3c488c=>{const _0x43d4ea=_0x3b757e;_0x3c488c[_0x43d4ea(0x3e6)]=0x0,this[_0x43d4ea(0xe8)](_0x3c488c),this[_0x43d4ea(0xaf)](_0x3c488c);});}[_0x4fa2a5(0xe8)](_0x133ffe){const _0x37ca9c=_0x4fa2a5;_0x133ffe[_0x37ca9c(0x18c)]!=null&&(clearTimeout(_0x133ffe[_0x37ca9c(0x18c)]),_0x133ffe[_0x37ca9c(0x18c)]=null);}async[_0x4fa2a5(0x114)](_0x370195){const _0x427cb9=_0x4fa2a5;let _0x404e4d=this[_0x427cb9(0x1a9)][_0x427cb9(0xd7)](_0x18fed6),_0x2a1e5c=_0x370195[_0x427cb9(0x13a)]??(_0x404e4d==null?void 0x0:_0x404e4d[_0x427cb9(0x2e9)])??'ws://127.0.0.1:8000/universer-api/comb/connect',_0x4f23de=await this['_socketService'][_0x427cb9(0x21f)](_0x2a1e5c);return _0x370195[_0x427cb9(0xbd)]=_0x4f23de,_0x4f23de;}async[_0x4fa2a5(0x2b9)](_0x24d930){const _0x2c006c=_0x4fa2a5;try{let _0x2f56aa=_0x24d930[_0x2c006c(0x103)][_0x2c006c(0x3ee)]()??_0x24d930['candidateSocket']??await this[_0x2c006c(0x114)](_0x24d930);if(_0x2f56aa){var _0x938e69;let _0x2b9155=_0x2f56aa[_0x2c006c(0x402)];_0x2f56aa[_0x2c006c(0x402)]=_0x1aa686=>(_0x1aa686[_0x2c006c(0x20a)]!==_0x4ed0d4[_0x2c006c(0x35a)][_0x2c006c(0xc9)]&&this['_rescheduleHeartbeat'](_0x24d930),_0x2b9155['apply'](_0x2f56aa,[_0x1aa686])),(_0x938e69=_0x24d930[_0x2c006c(0x12d)])==null||_0x938e69[_0x2c006c(0x3ba)](),_0x24d930[_0x2c006c(0x12d)]=null,_0x24d930[_0x2c006c(0x12d)]=_0x2f56aa[_0x2c006c(0x197)][_0x2c006c(0x252)](_0x17ef04=>this[_0x2c006c(0x35b)](_0x24d930,_0x2f56aa,_0x17ef04)),_0x2f56aa[_0x2c006c(0x124)][_0x2c006c(0x192)]((0x0,_0x223d83['take'])(0x1))[_0x2c006c(0x252)](_0x149f2c=>this[_0x2c006c(0x314)]['error']('[CollaborationSessionService]:\x20socket\x20error',_0x149f2c)),_0x2f56aa[_0x2c006c(0x2ff)][_0x2c006c(0x192)]((0x0,_0x223d83[_0x2c006c(0x3b1)])(0x1))[_0x2c006c(0x252)](()=>{const _0xdc2553=_0x2c006c;this[_0xdc2553(0x14a)](_0x24d930,_0x2f56aa);}),_0x2f56aa[_0x2c006c(0x33d)][_0x2c006c(0x192)]((0x0,_0x223d83[_0x2c006c(0x3b1)])(0x1))[_0x2c006c(0x252)](_0xd30b66=>{const _0x339330=_0x2c006c;this[_0x339330(0x314)][_0x339330(0x23b)](_0x339330(0x418),_0x339330(0x38d),_0xd30b66),this['_onConnectionFailed'](_0x24d930);});}}catch(_0x2a90fb){this[_0x2c006c(0x314)][_0x2c006c(0x187)](_0x2a90fb),this['_onConnectionFailed'](_0x24d930);}}['_onConnectionOpen'](_0x13a19c,_0x31cd85){const _0x3e87f1=_0x4fa2a5;this[_0x3e87f1(0x314)]['debug']('[CollaborationSessionService]','socket\x20open.'),_0x31cd85[_0x3e87f1(0x402)]({'cmd':_0x4ed0d4[_0x3e87f1(0x35a)][_0x3e87f1(0x215)]}),this['_rescheduleHeartbeat'](_0x13a19c);}[_0x4fa2a5(0x254)](_0x40aea7){const _0x24ea5c=_0x4fa2a5;_0x40aea7[_0x24ea5c(0x226)]=!0x1,_0x40aea7['candidateSocket']=null,this['_status$'][_0x24ea5c(0x163)](0x2),_0x40aea7[_0x24ea5c(0x103)][_0x24ea5c(0x163)](null),this['_clearTimeoutTimer'](_0x40aea7),this[_0x24ea5c(0x12a)](_0x40aea7);}['_onConnectionFailed'](_0x156b82){const _0x1b8ba4=_0x4fa2a5;this[_0x1b8ba4(0x254)](_0x156b82),this[_0x1b8ba4(0xab)](_0x156b82[_0x1b8ba4(0x11b)])&&(_0x156b82['retryCount']<(this[_0x1b8ba4(0x1a9)][_0x1b8ba4(0xd7)](_0x1b8ba4(0x3cf))??0x3)?(this['_collaborationUIEventService'][_0x1b8ba4(0x2cf)]({'id':_0x1b8ba4(0x2bc)}),this[_0x1b8ba4(0xaf)](_0x156b82)):this[_0x1b8ba4(0x347)]['emitEvent']({'id':_0x1b8ba4(0x289)}));}[_0x4fa2a5(0xaf)](_0x173c98){const _0x31bca3=_0x4fa2a5;let _0x49b827=_0x173c98[_0x31bca3(0x3e6)],_0x5b2b34=this[_0x31bca3(0x1a9)]['getConfig'](_0x18fed6),_0xf494e3=_0x49b827===0x0?0x0:((_0x5b2b34==null?void 0x0:_0x5b2b34[_0x31bca3(0xa8)])??0x4e20)*0x2**_0x49b827;_0x173c98['retryConnectingTimer']=setTimeout(()=>{const _0x46b07b=_0x31bca3;clearTimeout(_0x173c98[_0x46b07b(0x18c)]),_0x173c98[_0x46b07b(0x18c)]=null,this[_0x46b07b(0x2b9)](_0x173c98);},_0xf494e3),_0x173c98[_0x31bca3(0x3e6)]+=0x1;}async[_0x4fa2a5(0x27e)](_0x503a40,_0x5ba38b){const _0x2e850c=_0x4fa2a5;return _0x5dcc79(_0x503a40,_0x5ba38b,await this[_0x2e850c(0x134)][_0x2e850c(0x33f)]({'unitId':_0x503a40,'unitType':_0x5ba38b}));}[_0x4fa2a5(0x35b)](_0x47ea34,_0x221091,_0x7ceafc){const _0xa5200=_0x4fa2a5;let {cmd:_0x110169}=_0x7ceafc;_0x110169===_0x4ed0d4[_0xa5200(0x35a)][_0xa5200(0x215)]&&!_0x47ea34['socketReady']&&(_0x221091[_0xa5200(0x38b)]=_0x7ceafc[_0xa5200(0x2c7)][_0xa5200(0x38b)],_0x47ea34[_0xa5200(0x3e6)]=0x0,_0x47ea34['socket$']['next'](_0x221091),this[_0xa5200(0x3d1)]['next'](0x3),_0x47ea34['socketReady']=!0x0,_0x47ea34[_0xa5200(0xbd)]=null),_0x110169===_0x4ed0d4[_0xa5200(0x35a)]['HEARTBEAT']&&this['_clearTimeoutTimer'](_0x47ea34),this[_0xa5200(0x36b)](_0x47ea34);}[_0x4fa2a5(0xab)](_0x46a21a){const _0x51d57f=_0x4fa2a5;return[...this[_0x51d57f(0x1e2)]['values']()][_0x51d57f(0x2b5)](_0x2a7850=>_0x2a7850===_0x46a21a);}[_0x4fa2a5(0x1d4)](_0x1ad0f1){const _0x8ec492=_0x4fa2a5;let _0x39f1b3=_0x1ad0f1??'',_0x17691f=this[_0x8ec492(0x32c)][_0x8ec492(0x2c0)](_0x39f1b3);if(_0x17691f)return _0x17691f;let _0x3eeb56={'endpointKey':_0x39f1b3,'endpoint':_0x1ad0f1,'socket$':new _0x450705[(_0x8ec492(0x1f8))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x8ec492(0x32c)][_0x8ec492(0x10c)](_0x39f1b3,_0x3eeb56),_0x3eeb56;}[_0x4fa2a5(0x36b)](_0x2a7875){const _0x3fd774=_0x4fa2a5;this[_0x3fd774(0x12a)](_0x2a7875),_0x2a7875['sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](_0x2a7875),this[_0x3fd774(0x1a9)][_0x3fd774(0xd7)]('HEARTBEAT_INTERVAL')??0x7530);}[_0x4fa2a5(0x290)](_0x2cff23){const _0x439817=_0x4fa2a5;_0x2cff23[_0x439817(0x103)][_0x439817(0x3ee)]()[_0x439817(0x402)]({'cmd':_0x4ed0d4[_0x439817(0x35a)]['HEARTBEAT']}),this['_waitForHeartbeatResponse'](_0x2cff23);}[_0x4fa2a5(0xef)](_0x5af192){const _0x4fac99=_0x4fa2a5;_0x5af192['timeoutTimer']=setTimeout(()=>this['_onConnectionFailed'](_0x5af192),this[_0x4fac99(0x1a9)][_0x4fac99(0xd7)](_0x4fac99(0x107))??0x4e20);}[_0x4fa2a5(0x12a)](_0x37505a){const _0xc3bd7d=_0x4fa2a5;_0x37505a[_0xc3bd7d(0x25f)]!=null&&(clearTimeout(_0x37505a[_0xc3bd7d(0x25f)]),_0x37505a[_0xc3bd7d(0x25f)]=null);}[_0x4fa2a5(0x1d8)](_0x344f08){const _0x2b197c=_0x4fa2a5;_0x344f08[_0x2b197c(0x344)]!=null&&(clearTimeout(_0x344f08[_0x2b197c(0x344)]),_0x344f08[_0x2b197c(0x344)]=null);}};_0x2b5c76=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65['Inject'])(_0x433f65['Injector'])),_0x374c65(0x1,_0x433f65['ILogService']),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x3,_0x1121da),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x5,_0x2a5cd3),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x43e589))],_0x2b5c76);let _0x39314f=class extends _0x433f65[_0x4fa2a5(0x24b)]{constructor(_0x147a91,_0x4e95b2,_0x7ecc26,_0xe0d28f){const _0x2cc805=_0x4fa2a5;var _0x4a81f0;super(),this[_0x2cc805(0x40f)]=_0x147a91,this[_0x2cc805(0x297)]=_0x4e95b2,this[_0x2cc805(0x1a9)]=_0x7ecc26,this[_0x2cc805(0x3f3)]=_0xe0d28f,_0x5aacdf(this,_0x2cc805(0x33a),new Map()),_0x5aacdf(this,_0x2cc805(0x3bd),new _0x450705[(_0x2cc805(0x155))]()),_0x5aacdf(this,_0x2cc805(0x334),this[_0x2cc805(0x3bd)][_0x2cc805(0x343)]()),((_0x4a81f0=this[_0x2cc805(0x1a9)][_0x2cc805(0xd7)](_0x2cc805(0x1b0)))==null?void 0x0:_0x4a81f0[_0x2cc805(0x239)])!==!0x1&&this[_0x2cc805(0x29b)]();}[_0x4fa2a5(0x3b4)](){const _0x2e5ffc=_0x4fa2a5;super['dispose'](),this[_0x2e5ffc(0x33a)][_0x2e5ffc(0x1d2)](_0x290b9e=>_0x290b9e['dispose']()),this['_entities'][_0x2e5ffc(0x2f9)]();}['getCollabEntity'](_0x242a22){const _0x44693e=_0x4fa2a5;return this[_0x44693e(0x33a)][_0x44693e(0x2c0)](_0x242a22)??null;}[_0x4fa2a5(0x3d0)](_0x4f666b){const _0x2583b1=_0x4fa2a5;let _0xd10e91=this[_0x2583b1(0x381)](_0x4f666b);return _0xd10e91?(0x0,_0x450705['of'])(_0xd10e91):this[_0x2583b1(0x3bd)][_0x2583b1(0x192)]((0x0,_0x223d83[_0x2583b1(0x260)])(_0x403cad=>_0x403cad[_0x2583b1(0x210)]===_0x4f666b));}[_0x4fa2a5(0x1fe)](_0x59298d){const _0x4b6a6a=_0x4fa2a5;return(0x0,_0x450705[_0x4b6a6a(0x3d7)])(this[_0x4b6a6a(0x3d0)](_0x59298d)['pipe']((0x0,_0x223d83[_0x4b6a6a(0x224)])(()=>void 0x0)));}['_init'](){const _0x133693=_0x4fa2a5;this[_0x133693(0x3f3)]['getTypeOfUnitAdded$'](_0x433f65[_0x133693(0xa5)][_0x133693(0xb4)])[_0x133693(0x192)]((0x0,_0x450705[_0x133693(0x1c3)])(this[_0x133693(0xc4)]),(0x0,_0x223d83['delay'])(0x10))[_0x133693(0x252)](async _0x4f2ba0=>{const _0x426666=_0x133693;let _0x5a526e=_0x4f2ba0['unit'][_0x426666(0xed)](),_0x19ee73=await this[_0x426666(0x105)](_0x5a526e,_0x433f65[_0x426666(0xa5)][_0x426666(0xb4)]);this['_entities'][_0x426666(0x10c)](_0x5a526e,_0x19ee73);}),this[_0x133693(0x3f3)]['getTypeOfUnitAdded$'](_0x433f65[_0x133693(0xa5)][_0x133693(0x237)])['pipe']((0x0,_0x450705[_0x133693(0x1c3)])(this['dispose$']),(0x0,_0x223d83[_0x133693(0x16e)])(0x10))[_0x133693(0x192)]((0x0,_0x223d83[_0x133693(0x260)])(_0xbb659b=>!_0xbb659b[_0x133693(0xa4)][_0x133693(0xed)]()[_0x133693(0x143)]('__')))[_0x133693(0x252)](async _0x34fe18=>{const _0x5a5e50=_0x133693;let _0x59a7fc=_0x34fe18[_0x5a5e50(0xa4)][_0x5a5e50(0xed)](),_0x43f561=await this[_0x5a5e50(0x105)](_0x59a7fc,_0x433f65[_0x5a5e50(0xa5)][_0x5a5e50(0x237)]);this[_0x5a5e50(0x33a)][_0x5a5e50(0x10c)](_0x59a7fc,_0x43f561);}),this[_0x133693(0x3f3)][_0x133693(0x1bb)](_0x433f65[_0x133693(0xa5)][_0x133693(0xcd)])[_0x133693(0x192)]((0x0,_0x450705[_0x133693(0x1c3)])(this[_0x133693(0xc4)]),(0x0,_0x223d83[_0x133693(0x16e)])(0x10))[_0x133693(0x252)](async _0x114ed1=>{const _0x2fa3bf=_0x133693;let _0x50fb77=_0x114ed1[_0x2fa3bf(0xa4)][_0x2fa3bf(0xed)](),_0x3a9996=await this[_0x2fa3bf(0x105)](_0x50fb77,_0x433f65[_0x2fa3bf(0xa5)]['UNIVER_SLIDE']);this['_entities'][_0x2fa3bf(0x10c)](_0x50fb77,_0x3a9996);}),this[_0x133693(0x3f3)][_0x133693(0x1bb)](_0x433f65[_0x133693(0xa5)][_0x133693(0x169)])['pipe']((0x0,_0x450705[_0x133693(0x1c3)])(this['dispose$']),(0x0,_0x223d83['delay'])(0x10))[_0x133693(0x252)](async _0x21d190=>{const _0x34301d=_0x133693;let _0x55de0d=_0x21d190[_0x34301d(0xa4)]['getUnitId'](),_0x48ee21=await this[_0x34301d(0x105)](_0x55de0d,_0x433f65['UniverInstanceType']['UNIVER_BOARD']);this[_0x34301d(0x33a)][_0x34301d(0x10c)](_0x55de0d,_0x48ee21);}),this[_0x133693(0x3f3)]['getTypeOfUnitAdded$'](_0x433f65[_0x133693(0xa5)][_0x133693(0x146)])['pipe']((0x0,_0x450705['takeUntil'])(this[_0x133693(0xc4)]),(0x0,_0x223d83[_0x133693(0x16e)])(0x10))[_0x133693(0x252)](async _0x2404b1=>{const _0x147291=_0x133693;let _0x327331=_0x2404b1[_0x147291(0xa4)][_0x147291(0xed)](),_0xad5c33=await this[_0x147291(0x105)](_0x327331,_0x433f65[_0x147291(0xa5)][_0x147291(0x146)]);this['_entities'][_0x147291(0x10c)](_0x327331,_0xad5c33);}),this[_0x133693(0x3f3)][_0x133693(0x1bb)](_0x433f65[_0x133693(0xa5)][_0x133693(0x3ff)])[_0x133693(0x192)]((0x0,_0x450705[_0x133693(0x1c3)])(this[_0x133693(0xc4)]),(0x0,_0x223d83[_0x133693(0x16e)])(0x10))[_0x133693(0x252)](async _0x4646ab=>{const _0x2d4862=_0x133693;let _0x7468b7=_0x4646ab['unit']['getUnitId'](),_0x390f34=await this[_0x2d4862(0x105)](_0x7468b7,_0x433f65[_0x2d4862(0xa5)][_0x2d4862(0x3ff)]);this['_entities'][_0x2d4862(0x10c)](_0x7468b7,_0x390f34);}),(0x0,_0x450705['merge'])(this[_0x133693(0x3f3)][_0x133693(0x40e)](_0x433f65[_0x133693(0xa5)][_0x133693(0xb4)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x433f65[_0x133693(0xa5)]['UNIVER_DOC']),this[_0x133693(0x3f3)]['getTypeOfUnitDisposed$'](_0x433f65[_0x133693(0xa5)][_0x133693(0xcd)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x433f65['UniverInstanceType']['UNIVER_BOARD']),this[_0x133693(0x3f3)][_0x133693(0x40e)](_0x433f65[_0x133693(0xa5)][_0x133693(0x146)]),this[_0x133693(0x3f3)][_0x133693(0x40e)](_0x433f65['UniverInstanceType'][_0x133693(0x3ff)]))[_0x133693(0x192)]((0x0,_0x450705[_0x133693(0x1c3)])(this[_0x133693(0xc4)]))[_0x133693(0x252)](_0x14430f=>{const _0xf8c77d=_0x133693;let _0x488407=_0x14430f[_0xf8c77d(0xed)](),_0x2f8823=this[_0xf8c77d(0x33a)]['get'](_0x488407);_0x2f8823&&(_0x2f8823['dispose'](),this['_entities'][_0xf8c77d(0x3ae)](_0x488407));});}async['_startCollaboration'](_0x2e517f,_0x31f940){const _0x426b4f=_0x4fa2a5;let _0x369b2e=await this['_collabSessionService'][_0x426b4f(0x40c)](_0x2e517f),_0x28434c=this[_0x426b4f(0x40f)][_0x426b4f(0x11d)](this[_0x426b4f(0x3d4)](_0x31f940),_0x2e517f,_0x31f940,_0x369b2e);return await _0x28434c[_0x426b4f(0x2ef)](),this[_0x426b4f(0x3bd)][_0x426b4f(0x163)](_0x28434c),_0x28434c;}[_0x4fa2a5(0x3d4)](_0x1a2cc9){const _0x35ab52=_0x4fa2a5;switch(_0x1a2cc9){case _0x433f65[_0x35ab52(0xa5)]['UNIVER_DOC']:return _0x31d725;case _0x433f65[_0x35ab52(0xa5)][_0x35ab52(0xb4)]:return _0x89772b;case _0x433f65['UniverInstanceType'][_0x35ab52(0xcd)]:return _0x1b8073;case _0x433f65[_0x35ab52(0xa5)][_0x35ab52(0x169)]:return _0x1dc09d;case _0x433f65[_0x35ab52(0xa5)][_0x35ab52(0x146)]:return _0x53717a;case _0x433f65['UniverInstanceType'][_0x35ab52(0x3ff)]:return _0x25572c;default:throw Error(_0x35ab52(0x2fd)+_0x1a2cc9);}}};_0x39314f=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65['Inject'])(_0x433f65['Injector'])),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x2b5c76)),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x3,_0x433f65[_0x4fa2a5(0x39b)])],_0x39314f);var _0x434948=_0x4fa2a5(0x1c4),_0x11be1f='1.0.2';let _0x1c06e7=class extends _0x433f65[_0x4fa2a5(0x325)]{constructor(_0x48f311,_0x221e06){const _0x5696d0=_0x4fa2a5;super(),this[_0x5696d0(0x3f3)]=_0x48f311,this['_configService']=_0x221e06,this[_0x5696d0(0x29b)]();}[_0x4fa2a5(0x29b)](){const _0x510e2e=_0x4fa2a5;this['disposeWithMe'](this['_univerInstanceService'][_0x510e2e(0x2d6)]['subscribe'](()=>{const _0x11c353=_0x510e2e;let _0x2179e4=this['_univerInstanceService'][_0x11c353(0x2f5)](),_0x5f584c=this[_0x11c353(0x1a9)][_0x11c353(0xd7)](_0x11c353(0x2d3))??_0x11c353(0x22b);_0x2179e4 instanceof _0x433f65['Workbook']&&(_0x5f584c=_0x2179e4[_0x11c353(0x341)]),document[_0x11c353(0x22a)]=_0x5f584c;}));}};_0x1c06e7=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x1,_0x433f65[_0x4fa2a5(0x2aa)])],_0x1c06e7);let _0x495c62=(0x0,_0x433f65[_0x4fa2a5(0xad)])('base-ui.attachment-io.service'),_0x3f38f5=class{constructor(_0x5bf7c4,_0xe3df97,_0x491ea4){const _0x325555=_0x4fa2a5;this['_httpService']=_0x5bf7c4,this[_0x325555(0x1a9)]=_0xe3df97,this[_0x325555(0x3f3)]=_0x491ea4;}[_0x4fa2a5(0x3fd)](){const _0xc1cc09=_0x4fa2a5;return this[_0xc1cc09(0x1e9)]()[_0xc1cc09(0x3a8)]??{};}async[_0x4fa2a5(0x12f)](_0x5b84bc){const _0x42b627=_0x4fa2a5;let _0x50e668=this[_0x42b627(0x3fd)]();if(_0xca792d(_0x5b84bc,_0x50e668),_0x50e668[_0x42b627(0x24e)])return _0x50e668[_0x42b627(0x24e)](_0x5b84bc);let _0xe389c9=await this[_0x42b627(0x2e2)](_0x5b84bc);return{'id':_0xe389c9,'name':_0x5b84bc[_0x42b627(0x341)],'mimeType':_0x5b84bc[_0x42b627(0x3c6)],'size':_0x5b84bc[_0x42b627(0x1dd)],'sourceType':_0x433f65['ImageSourceType'][_0x42b627(0x2b3)],'source':_0xe389c9};}async[_0x4fa2a5(0x41a)](_0x6f07f9,_0x56a7fc){const _0xda000=_0x4fa2a5;if(_0x56a7fc!==_0x433f65[_0xda000(0x17b)][_0xda000(0x2b3)])return _0x6f07f9;let _0x1a3db5=(await this[_0xda000(0x33c)][_0xda000(0x2c0)](this['_getSignURL']()[_0xda000(0x3cd)](_0xda000(0x30d),_0x6f07f9)))[_0xda000(0x280)];if(_0x1a3db5['error']&&_0x1a3db5['error'][_0xda000(0xb6)]!==_0x4ed0d4[_0xda000(0x326)]['OK'])throw _0x1a3db5['error'];if(!_0x1a3db5[_0xda000(0x345)])throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.');return(0x0,_0x433f65[_0xda000(0x28a)])(_0x1a3db5['url'],this[_0xda000(0x2d1)]());}async[_0x4fa2a5(0x2e2)](_0x387e7b){const _0x5d6cbc=_0x4fa2a5;let _0x3ea207=this[_0x5d6cbc(0x3f3)][_0x5d6cbc(0x2f5)](),_0x42cf06=_0x3ea207==null?void 0x0:_0x3ea207['getUnitId']();if(!_0x42cf06)throw Error(_0x5d6cbc(0x1b5));let _0x5eb983=new FormData();_0x5eb983[_0x5d6cbc(0x3c4)](_0x5d6cbc(0x173),_0x387e7b);let _0x9e8135=this['_getUploadFileURL']()+_0x5d6cbc(0x131)+_0x387e7b['size'][_0x5d6cbc(0x172)]()+_0x5d6cbc(0x19d)+_0x4ed0d4[_0x5d6cbc(0x158)][_0x5d6cbc(0x375)]+'&assign='+encodeURIComponent(_0x42cf06),_0x41c8ad=(await this['_httpService'][_0x5d6cbc(0x201)](_0x9e8135,{'body':_0x5eb983}))[_0x5d6cbc(0x280)][_0x5d6cbc(0x219)];if(typeof _0x41c8ad!=_0x5d6cbc(0x265)||!_0x41c8ad)throw Error(_0x5d6cbc(0x3b9));return _0x41c8ad;}['_getUploadFileURL'](){const _0x53594d=_0x4fa2a5;return this[_0x53594d(0x1e9)]()[_0x53594d(0x2de)]??_0x53594d(0x329);}[_0x4fa2a5(0x2f6)](){const _0x8e98f7=_0x4fa2a5;return this[_0x8e98f7(0x1e9)]()[_0x8e98f7(0x362)]??_0x8e98f7(0x338);}['_getDownloadEndpointURL'](){const _0x5d2fee=_0x4fa2a5;let _0x518409=this[_0x5d2fee(0x1e9)]();return _0x518409[_0x5d2fee(0x18f)]?_0x518409['downloadEndpointUrl']:typeof location<'u'?location[_0x5d2fee(0x1b7)]:_0x518409[_0x5d2fee(0x2de)]??'';}['_getConfig'](){const _0x39dba5=_0x4fa2a5;return this[_0x39dba5(0x1a9)]['getConfig'](_0x39dba5(0x1b0))??{};}};_0x3f38f5=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65['Inject'])(_0x544d24[_0x4fa2a5(0x320)])),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x2aa)])),_0x374c65(0x2,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x39b)]))],_0x3f38f5);function _0xca792d(_0x485c20,_0xc051ed){const _0x1e0b9f=_0x4fa2a5;var _0x3ffe86;if(_0xc051ed[_0x1e0b9f(0x37c)]!=null&&_0x485c20['size']>_0xc051ed['maxSize'])throw Error(_0x1e0b9f(0x2f8));if((_0x3ffe86=_0xc051ed[_0x1e0b9f(0x3d3)])!=null&&_0x3ffe86[_0x1e0b9f(0x208)]&&!_0xc051ed['accept'][_0x1e0b9f(0x2b5)](_0x508ae9=>_0x485c20[_0x1e0b9f(0x3c6)]===_0x508ae9||_0x485c20[_0x1e0b9f(0x341)][_0x1e0b9f(0x171)](_0x508ae9)||_0x508ae9[_0x1e0b9f(0x171)]('/*')&&_0x485c20[_0x1e0b9f(0x3c6)][_0x1e0b9f(0x143)](_0x508ae9[_0x1e0b9f(0x1b2)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x4aff48=class{constructor(_0x3ec08a,_0x18b991,_0x8b8416){const _0x44505f=_0x4fa2a5;this[_0x44505f(0x1a9)]=_0x3ec08a,this['_httpService']=_0x18b991,this[_0x44505f(0x26a)]=_0x8b8416,this[_0x44505f(0x2ef)]();}[_0x4fa2a5(0x2ef)](){const _0x14f2cb=_0x4fa2a5;this[_0x14f2cb(0x33c)][_0x14f2cb(0x3f1)]({'priority':0x1,'interceptor':(_0x3c0fcc,_0x5561a9)=>_0x5561a9(_0x3c0fcc)['pipe']((0x0,_0x450705[_0x14f2cb(0x1c9)])(async _0x1a99c2=>{const _0x3b0c4e=_0x14f2cb;let _0x774a82=_0x1a99c2;if(_0x774a82[_0x3b0c4e(0x1e8)]===0x191){if(typeof window>'u')throw Error(_0x3b0c4e(0x1fa));if(window[_0x3b0c4e(0x165)](this['localeService']['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x296b69=window[_0x3b0c4e(0x351)](window[_0x3b0c4e(0x31e)]['href']);window[_0x3b0c4e(0x31e)][_0x3b0c4e(0x3f2)]=this['_getLoginPath']()+_0x3b0c4e(0x1d5)+_0x296b69;}}return _0x774a82;}))});}[_0x4fa2a5(0xfe)](){const _0x45ce31=_0x4fa2a5;let _0x4c8c33=this['_configService'][_0x45ce31(0xd7)](_0x18fed6);return(_0x4c8c33==null?void 0x0:_0x4c8c33[_0x45ce31(0x310)])??_0x45ce31(0x363);}};_0x4aff48=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x544d24['HTTPService'])),_0x374c65(0x2,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)]))],_0x4aff48);let _0x5b1470=class extends _0x433f65[_0x4fa2a5(0x325)]{constructor(_0x5cab58,_0x4c1a96){const _0x330fb4=_0x4fa2a5;super(),this[_0x330fb4(0x2c9)]=_0x5cab58,this[_0x330fb4(0x1a9)]=_0x4c1a96,_0x5aacdf(this,_0x330fb4(0x315),!0x1),this[_0x330fb4(0x2ba)]();}[_0x4fa2a5(0x2ba)](){const _0xf79993=_0x4fa2a5;let _0x1ea0f3=this;this[_0xf79993(0x413)](this[_0xf79993(0x2c9)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,_0x544d24['MergeInterceptorFactory'])({'isMatch'(_0x59caae){const _0x2245ee=_0xf79993;var _0x180caf;if(_0x59caae[_0x2245ee(0x12b)]===_0x2245ee(0x365)&&(_0x180caf=_0x59caae[_0x2245ee(0xc7)])!=null&&_0x180caf[_0x2245ee(0x280)]){let {objectID:_0x27a6b4,objectType:_0x2d5779}=_0x59caae[_0x2245ee(0xc7)]['body']||{};if(!_0x27a6b4||_0x2d5779===void 0x0)return!0x1;let _0x3a5e98=_0x1ea0f3[_0x2245ee(0x213)]()+'/'+_0x2d5779+'/object/'+encodeURIComponent(_0x27a6b4)+_0x2245ee(0x123);if(_0x59caae[_0x2245ee(0x345)]===_0x3a5e98)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x34b67f){const _0x5bddb6=_0xf79993;var _0x9e0fbf;return(_0x9e0fbf=_0x34b67f['requestParams'])==null?void 0x0:_0x9e0fbf[_0x5bddb6(0x280)];},'mergeParamsToRequest'(_0x3388bd,_0x242116){const _0x240687=_0xf79993;let _0x5d65fc=_0x1ea0f3[_0x240687(0x213)]()+_0x240687(0xd8),_0x1b78c8=_0x3388bd['reduce']((_0x4f3b85,_0x21b233)=>{const _0x542db5=_0x240687;let {unitID:_0x270cae,objectID:_0x3e9468,objectType:_0x36eaf7,actions:_0x163ae9}=_0x21b233;return _0x4f3b85[_0x270cae]||(_0x4f3b85[_0x270cae]=Object[_0x542db5(0x1a2)](null)),_0x4f3b85[_0x270cae][_0x3e9468]||(_0x4f3b85[_0x270cae][_0x3e9468]={'objectID':_0x3e9468,'objectType':_0x36eaf7,'actions':[]}),_0x4f3b85[_0x270cae][_0x3e9468]['actions'][_0x542db5(0x227)](..._0x163ae9),_0x4f3b85;},Object['create'](null)),_0x5dc823=[];for(let _0x420e09 in _0x1b78c8)for(let _0x9da7b9 in _0x1b78c8[_0x420e09]){let {actions:_0x127cc0,objectType:_0xb66477}=_0x1b78c8[_0x420e09][_0x9da7b9],_0x474ed9=[...new Set(_0x127cc0)];_0x5dc823['push']({'unitID':_0x420e09,'objectID':_0x9da7b9,'objectType':_0xb66477,'actions':_0x474ed9});}return new _0x544d24[(_0x240687(0x204))](_0x240687(0x365),_0x5d65fc,{'headers':_0x242116[_0x240687(0x17e)],'withCredentials':_0x242116[_0x240687(0x13e)],'responseType':_0x242116[_0x240687(0x3c7)],'body':{'requests':_0x5dc823}});}},{'distributeResult'(_0x14cb78,_0x210add){let {objectActions:_0x5daeee}=_0x14cb78;return _0x210add['map'](_0x1cf044=>{const _0x25aa00=_0x5846;let {unitID:_0x212002,objectID:_0x307eb2,actions:_0x52a02b}=_0x1cf044,_0x3d8656=_0x5daeee[_0x25aa00(0x101)](_0x47b701=>_0x47b701[_0x25aa00(0x210)]===_0x212002&&_0x47b701[_0x25aa00(0x2e7)]===_0x307eb2);return{'config':_0x1cf044,'result':{'actions':_0x52a02b['map'](_0x33d0c9=>_0x3d8656==null?void 0x0:_0x3d8656[_0x25aa00(0x30a)][_0x25aa00(0x101)](_0x5dbc8e=>_0x5dbc8e['action']===_0x33d0c9))['filter'](_0x1676c1=>!!_0x1676c1),'error':_0x14cb78['error']}};});}})}));}[_0x4fa2a5(0x213)](){const _0x5b21c7=_0x4fa2a5;let _0xcabaaa=this[_0x5b21c7(0x1a9)][_0x5b21c7(0xd7)](_0x18fed6);return(_0xcabaaa==null?void 0x0:_0xcabaaa[_0x5b21c7(0x301)])??_0x5b21c7(0xca);}async['create'](_0x47e23a){const _0x4a170e=_0x4fa2a5;let _0x23345b=this[_0x4a170e(0x213)]()+'/'+_0x47e23a[_0x4a170e(0xeb)]+'/object';return(await this[_0x4a170e(0x2c9)][_0x4a170e(0x201)](_0x23345b,{'body':_0x47e23a}))[_0x4a170e(0x280)]['objectID']||'';}async[_0x4fa2a5(0x2d8)](_0x37e8ec){const _0x354e95=_0x4fa2a5;let _0x523627=this[_0x354e95(0x213)]()+_0x354e95(0x308);return(await this['_HTTPService'][_0x354e95(0x201)](_0x523627,{'body':_0x37e8ec}))['body'][_0x354e95(0x34a)];}async[_0x4fa2a5(0x148)](_0x4aad78){const _0x4bd44f=_0x4fa2a5;var _0xcc9826;let _0x3eb861=this['_getAPIPrefixPath']()+'/'+_0x4aad78[_0x4bd44f(0xeb)]+_0x4bd44f(0x316)+encodeURIComponent(_0x4aad78[_0x4bd44f(0x2e7)]),_0x8ad2aa=await this[_0x4bd44f(0x2c9)]['put'](_0x3eb861,{'body':_0x4aad78});if((_0x8ad2aa==null||(_0xcc9826=_0x8ad2aa[_0x4bd44f(0x280)])==null||(_0xcc9826=_0xcc9826[_0x4bd44f(0x187)])==null?void 0x0:_0xcc9826[_0x4bd44f(0xb6)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x4fa2a5(0x137)](_0x49004d){const _0x2ae321=_0x4fa2a5;let _0x2d9a40=this[_0x2ae321(0x213)]()+'/'+_0x49004d[_0x2ae321(0xeb)]+_0x2ae321(0x316)+encodeURIComponent(_0x49004d['objectID'])+'/allowed';return(await this['_HTTPService'][_0x2ae321(0x201)](_0x2d9a40,{'body':_0x49004d}))[_0x2ae321(0x280)]['actions'];}async[_0x4fa2a5(0xe6)](_0x256246){const _0x562b2b=_0x4fa2a5;let _0x3a9814=this[_0x562b2b(0x213)]()+_0x562b2b(0xd8);return(await this[_0x562b2b(0x2c9)][_0x562b2b(0x201)](_0x3a9814,{'body':{'requests':_0x256246}}))[_0x562b2b(0x280)][_0x562b2b(0x2a4)];}async['listRoles'](_0x59451d){const _0x287b8f=_0x4fa2a5;let _0x585fac=this[_0x287b8f(0x213)]()+'/'+_0x59451d['objectType']+'/role',_0x4387c7=await this[_0x287b8f(0x2c9)][_0x287b8f(0x201)](_0x585fac,{'body':_0x59451d});return{'roles':_0x4387c7[_0x287b8f(0x280)][_0x287b8f(0x348)],'actions':_0x4387c7[_0x287b8f(0x280)][_0x287b8f(0x30a)]};}async[_0x4fa2a5(0x179)](_0x34b7c0){const _0x436391=_0x4fa2a5;let _0x333372=this[_0x436391(0x213)]()+_0x436391(0x225);await this[_0x436391(0x2c9)][_0x436391(0x3ae)](_0x333372,{'params':{'collaboratorID':_0x34b7c0[_0x436391(0x389)],'objectID':_0x34b7c0[_0x436391(0x2e7)],'unitID':_0x34b7c0[_0x436391(0x210)]}});}async[_0x4fa2a5(0x3e2)](_0x8e4296){const _0x15509f=_0x4fa2a5;let _0x9faf30=this[_0x15509f(0x213)]()+'/collaborator';await this[_0x15509f(0x2c9)]['patch'](_0x9faf30,{'body':_0x8e4296});}async[_0x4fa2a5(0x181)](_0x4df8dc){const _0x3ca48c=_0x4fa2a5;let _0x5da32a=this['_getAPIPrefixPath']()+_0x3ca48c(0x225);await this[_0x3ca48c(0x2c9)][_0x3ca48c(0x201)](_0x5da32a,{'body':_0x4df8dc});}async[_0x4fa2a5(0x266)](_0x152511){const _0x32834c=_0x4fa2a5;let _0x4249dd=this[_0x32834c(0x213)]()+_0x32834c(0x225),_0x38ec51=await this['_HTTPService'][_0x32834c(0x2c0)](_0x4249dd,{'params':{'objectID':_0x152511['objectID'],'unitID':_0x152511[_0x32834c(0x210)]}});return this['setCfgEnableObjInherit'](_0x38ec51[_0x32834c(0x280)][_0x32834c(0x3b7)]??!0x1),_0x38ec51[_0x32834c(0x280)]['collaborators'];}async[_0x4fa2a5(0x2ce)](_0xdd7918){const _0x56245a=_0x4fa2a5;let _0x583e1c=this[_0x56245a(0x213)]()+'/collaborator';await this['_HTTPService'][_0x56245a(0x2e0)](_0x583e1c,{'body':_0xdd7918});}['setCfgEnableObjInherit'](_0x1bc54e){const _0x53a67d=_0x4fa2a5;this[_0x53a67d(0x315)]=_0x1bc54e;}[_0x4fa2a5(0x36c)](){return this['_cfgEnableObjInherit'];}};_0x5b1470=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x544d24[_0x4fa2a5(0x320)])),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x2aa)]))],_0x5b1470);function _0x66f7a1(_0x45def9){const _0x2694ad=_0x4fa2a5;return _0x45def9 instanceof Uint8Array||ArrayBuffer['isView'](_0x45def9)&&_0x45def9['constructor']['name']===_0x2694ad(0xde)&&_0x2694ad(0x23f)in _0x45def9&&_0x45def9[_0x2694ad(0x23f)]===0x1;}let _0x41d565=_0x4863e2=>_0x4863e2?'\x22'+_0x4863e2+'\x22\x20':'';function _0x42aebd(_0x17c1f8,_0x1857b4=''){const _0x50a949=_0x4fa2a5;if(typeof _0x17c1f8!=_0x50a949(0x374))throw TypeError(_0x41d565(_0x1857b4)+'expected\x20number,\x20got\x20'+typeof _0x17c1f8);if(!Number['isSafeInteger'](_0x17c1f8)||_0x17c1f8<0x0)throw RangeError(_0x41d565(_0x1857b4)+'expected\x20integer\x20>=\x200,\x20got\x20'+_0x17c1f8);return _0x17c1f8;}function _0x9aeef9(_0x22800f,_0x2fde33,_0x524e73=''){const _0x391569=_0x4fa2a5;if(_0x66f7a1(_0x22800f)&&(_0x2fde33===void 0x0||_0x22800f['length']===_0x2fde33))return _0x22800f;_0x2fde33!==void 0x0&&_0x42aebd(_0x2fde33,'length');let _0x10a2c4=_0x66f7a1(_0x22800f),_0x3cb26c=_0x2fde33===void 0x0?'':_0x391569(0x39e)+_0x2fde33,_0x33aaea=_0x10a2c4?_0x391569(0xd5)+_0x22800f[_0x391569(0x208)]:'type='+typeof _0x22800f,_0x56bf05=_0x41d565(_0x524e73)+'expected\x20Uint8Array'+_0x3cb26c+_0x391569(0x154)+_0x33aaea;throw _0x10a2c4?RangeError(_0x56bf05):TypeError(_0x56bf05);}function _0x10e10c(_0x8f8e20){const _0x5bac0e=_0x4fa2a5;return new Uint32Array(_0x8f8e20['buffer'],_0x8f8e20[_0x5bac0e(0x272)],Math['floor'](_0x8f8e20[_0x5bac0e(0x29a)]/0x4));}function _0x39afad(..._0xe1b20){const _0x546635=_0x4fa2a5;for(let _0x1bce7f=0x0;_0x1bce7f<_0xe1b20[_0x546635(0x208)];_0x1bce7f++)_0xe1b20[_0x1bce7f]['fill'](0x0);}let _0x6c24=new Uint8Array(new Uint32Array([0x11223344])[_0x4fa2a5(0x18e)])[0x0]===0x44;function _0x372bc6(_0x57266c){return _0x57266c<<0x18&0xff000000|_0x57266c<<0x8&0xff0000|_0x57266c>>>0x8&0xff00|_0x57266c>>>0x18&0xff;}function _0x44655d(_0x5e3073){for(let _0x29f2f2=0x0;_0x29f2f2<_0x5e3073['length'];_0x29f2f2++)_0x5e3073[_0x29f2f2]=_0x372bc6(_0x5e3073[_0x29f2f2]);return _0x5e3073;}let _0x3f32bc=_0x6c24?_0x2d4fba=>_0x2d4fba:_0x44655d;function _0x38f376(_0x3f6cd2){const _0x428784=_0x4fa2a5;if(typeof _0x3f6cd2!='string')throw TypeError(_0x428784(0x275));return new Uint8Array(new TextEncoder()[_0x428784(0x382)](_0x3f6cd2));}function _0x30a19e(_0x1d8591,_0x53a145){const _0x2b62c1=_0x4fa2a5;return!_0x1d8591[_0x2b62c1(0x29a)]||!_0x53a145[_0x2b62c1(0x29a)]?!0x1:_0x1d8591[_0x2b62c1(0x18e)]===_0x53a145[_0x2b62c1(0x18e)]&&_0x1d8591['byteOffset']<_0x53a145[_0x2b62c1(0x272)]+_0x53a145[_0x2b62c1(0x29a)]&&_0x53a145[_0x2b62c1(0x272)]<_0x1d8591[_0x2b62c1(0x272)]+_0x1d8591[_0x2b62c1(0x29a)];}function _0x33d077(_0x1158ce,_0x3e8b67){const _0xdb53cc=_0x4fa2a5;if(_0x30a19e(_0x1158ce,_0x3e8b67)&&_0x1158ce[_0xdb53cc(0x272)]<_0x3e8b67[_0xdb53cc(0x272)])throw Error(_0xdb53cc(0x2b4));}function _0x24f204(..._0x2dc00b){const _0x22518f=_0x4fa2a5;let _0x4962af=0x0;for(let _0xcb11dc=0x0;_0xcb11dc<_0x2dc00b['length'];_0xcb11dc++){let _0x1769c2=_0x2dc00b[_0xcb11dc];_0x9aeef9(_0x1769c2),_0x4962af+=_0x1769c2[_0x22518f(0x208)];}let _0x23e741=new Uint8Array(_0x4962af);for(let _0x3c517b=0x0,_0x5a09a3=0x0;_0x3c517b<_0x2dc00b[_0x22518f(0x208)];_0x3c517b++){let _0x4449f3=_0x2dc00b[_0x3c517b];_0x23e741[_0x22518f(0x10c)](_0x4449f3,_0x5a09a3),_0x5a09a3+=_0x4449f3[_0x22518f(0x208)];}return _0x23e741;}let _0x28f13a=(_0x1278b0,_0x1a76a5)=>{const _0x2533f2=_0x4fa2a5;function _0x5582af(_0x208196,..._0x39c876){const _0x5abcba=_0x5846;if(_0x9aeef9(_0x208196,void 0x0,_0x5abcba(0x41b)),_0x1278b0['nonceLength']!==void 0x0){let _0x3f5344=_0x39c876[0x0];_0x9aeef9(_0x3f5344,_0x1278b0[_0x5abcba(0x262)]?void 0x0:_0x1278b0[_0x5abcba(0xdc)],_0x5abcba(0x305));}let _0x41296b=_0x1278b0[_0x5abcba(0x18a)],_0x56d60a=_0x1278b0[_0x5abcba(0xdc)]===void 0x0?0x0:0x1;if(!_0x1278b0[_0x5abcba(0x395)]){for(let _0x570b3c=_0x56d60a;_0x570b3c<_0x39c876['length'];_0x570b3c++)if(_0x66f7a1(_0x39c876[_0x570b3c]))throw Error('AAD\x20not\x20supported');}_0x1278b0[_0x5abcba(0x395)]&&_0x39c876[_0x56d60a]!==void 0x0&&_0x9aeef9(_0x39c876[_0x56d60a],void 0x0,_0x5abcba(0x196));let _0xb4e6c7=_0x1a76a5(_0x208196,..._0x39c876),_0xcb4fdb=(_0x24c26d,_0xd9c8aa)=>{const _0x38f8e8=_0x5abcba;if(_0xd9c8aa!==void 0x0){if(_0x24c26d!==0x2)throw Error(_0x38f8e8(0x11c));_0x9aeef9(_0xd9c8aa,void 0x0,'output');}},_0x1cf0e3=!0x1;return{'encrypt'(_0xe12c8c,_0xf820c6){const _0x1eded5=_0x5abcba;if(_0x1cf0e3)throw Error(_0x1eded5(0x38f));return _0x1cf0e3=!0x0,_0x9aeef9(_0xe12c8c,void 0x0,'data'),_0xcb4fdb(_0xb4e6c7['encrypt'][_0x1eded5(0x208)],_0xf820c6),_0xb4e6c7['encrypt'](_0xe12c8c,_0xf820c6);},'decrypt'(_0x13ec72,_0x5efa21){const _0x290705=_0x5abcba;if(_0x9aeef9(_0x13ec72,void 0x0,_0x290705(0x2c7)),_0x41296b&&_0x13ec72[_0x290705(0x208)]<_0x41296b)throw Error('\x22ciphertext\x22\x20expected\x20length\x20>=\x20tagLength='+_0x41296b);return _0xcb4fdb(_0xb4e6c7[_0x290705(0x12e)][_0x290705(0x208)],_0x5efa21),_0xb4e6c7[_0x290705(0x12e)](_0x13ec72,_0x5efa21);}};}return Object[_0x2533f2(0x317)](_0x5582af,_0x1278b0),_0x5582af;};function _0x5e877e(_0x94847c,_0x3a1ce4,_0x1a265d=!0x0){const _0xdc5890=_0x4fa2a5;if(_0x3a1ce4===void 0x0)return new Uint8Array(_0x94847c);if(_0x9aeef9(_0x3a1ce4,_0x94847c,_0xdc5890(0x307)),_0x1a265d&&!_0x541e5f(_0x3a1ce4))throw Error('invalid\x20output,\x20must\x20be\x20aligned');return _0x3a1ce4;}function _0x541e5f(_0x5dbbcb){const _0x4cbbd2=_0x4fa2a5;return _0x5dbbcb[_0x4cbbd2(0x272)]%0x4==0x0;}function _0x17e0a5(_0x2b84c6){return Uint8Array['from'](_0x9aeef9(_0x2b84c6));}function _0x381ba2(_0x4fd5d5=0x20){const _0x5a5766=_0x4fa2a5;_0x42aebd(_0x4fd5d5,_0x5a5766(0x1a5));let _0x486543=typeof globalThis==_0x5a5766(0x221)?globalThis[_0x5a5766(0xcc)]:null;if(typeof(_0x486543==null?void 0x0:_0x486543[_0x5a5766(0x190)])!='function')throw Error('crypto.getRandomValues\x20must\x20be\x20defined');if(_0x4fd5d5>0x10000)throw RangeError(_0x5a5766(0x302)+_0x4fd5d5);return _0x486543[_0x5a5766(0x190)](new Uint8Array(_0x4fd5d5));}function _0x15ba46(_0x22ab0f){const _0x50e852=_0x4fa2a5;if(![0x10,0x18,0x20][_0x50e852(0x3ce)](_0x22ab0f[_0x50e852(0x208)]))throw Error(_0x50e852(0x1b6)+_0x22ab0f['length']);}function _0x511e71(_0x267b7e){return _0x267b7e<<0x1^0x11b&-(_0x267b7e>>0x7);}function _0x2ad33e(_0x5967e1,_0x10c9e3){let _0x566963=0x0;for(;_0x10c9e3>0x0;_0x10c9e3>>=0x1)_0x566963^=_0x5967e1&-(_0x10c9e3&0x1),_0x5967e1=_0x511e71(_0x5967e1);return _0x566963;}let _0x1be0a3=((()=>{let _0x277c91=new Uint8Array(0x100);for(let _0x123655=0x0,_0x56e1dc=0x1;_0x123655<0x100;_0x123655++,_0x56e1dc^=_0x511e71(_0x56e1dc))_0x277c91[_0x123655]=_0x56e1dc;let _0x291482=new Uint8Array(0x100);_0x291482[0x0]=0x63;for(let _0x28faa8=0x0;_0x28faa8<0xff;_0x28faa8++){let _0x4fd8e2=_0x277c91[0xff-_0x28faa8];_0x4fd8e2|=_0x4fd8e2<<0x8,_0x291482[_0x277c91[_0x28faa8]]=(_0x4fd8e2^_0x4fd8e2>>0x4^_0x4fd8e2>>0x5^_0x4fd8e2>>0x6^_0x4fd8e2>>0x7^0x63)&0xff;}return _0x39afad(_0x277c91),_0x291482;})()),_0x12c2d1=_0x1be0a3[_0x4fa2a5(0x224)]((_0x276075,_0x3bd99f)=>_0x1be0a3[_0x4fa2a5(0x3e1)](_0x3bd99f)),_0x3e91ed=_0x4007f=>_0x4007f<<0x18|_0x4007f>>>0x8,_0x2ebf87=_0x268244=>_0x268244<<0x8|_0x268244>>>0x18;function _0x5cb8b1(_0x253f9c,_0x40841f){const _0xdd543f=_0x4fa2a5;if(_0x253f9c[_0xdd543f(0x208)]!==0x100)throw Error(_0xdd543f(0x37b));let _0x22fb50=new Uint32Array(0x100)['map']((_0xfd826e,_0xa638ce)=>_0x40841f(_0x253f9c[_0xa638ce])),_0xc6223c=_0x22fb50['map'](_0x2ebf87),_0x1b5f6c=_0xc6223c['map'](_0x2ebf87),_0x520d28=_0x1b5f6c[_0xdd543f(0x224)](_0x2ebf87),_0x5b50bc=new Uint32Array(0x10000),_0x1c3da7=new Uint32Array(0x10000),_0x122a31=new Uint16Array(0x10000);for(let _0x11a4b2=0x0;_0x11a4b2<0x100;_0x11a4b2++)for(let _0x305263=0x0;_0x305263<0x100;_0x305263++){let _0x8551ee=_0x11a4b2*0x100+_0x305263;_0x5b50bc[_0x8551ee]=_0x22fb50[_0x11a4b2]^_0xc6223c[_0x305263],_0x1c3da7[_0x8551ee]=_0x1b5f6c[_0x11a4b2]^_0x520d28[_0x305263],_0x122a31[_0x8551ee]=_0x253f9c[_0x11a4b2]<<0x8|_0x253f9c[_0x305263];}return{'sbox':_0x253f9c,'sbox2':_0x122a31,'T0':_0x22fb50,'T1':_0xc6223c,'T2':_0x1b5f6c,'T3':_0x520d28,'T01':_0x5b50bc,'T23':_0x1c3da7};}let _0x4fb346=_0x5cb8b1(_0x1be0a3,_0x2cae9b=>_0x2ad33e(_0x2cae9b,0x3)<<0x18|_0x2cae9b<<0x10|_0x2cae9b<<0x8|_0x2ad33e(_0x2cae9b,0x2)),_0x1f171e=_0x5cb8b1(_0x12c2d1,_0x2d98f8=>_0x2ad33e(_0x2d98f8,0xb)<<0x18|_0x2ad33e(_0x2d98f8,0xd)<<0x10|_0x2ad33e(_0x2d98f8,0x9)<<0x8|_0x2ad33e(_0x2d98f8,0xe)),_0x48b978=((()=>{let _0x13cef6=new Uint8Array(0x10);for(let _0x1cc35a=0x0,_0x296ec5=0x1;_0x1cc35a<0x10;_0x1cc35a++,_0x296ec5=_0x511e71(_0x296ec5))_0x13cef6[_0x1cc35a]=_0x296ec5;return _0x13cef6;})());function _0x996450(_0x27de13){const _0x560af2=_0x4fa2a5;_0x9aeef9(_0x27de13);let _0x370b6d=_0x27de13[_0x560af2(0x208)];_0x15ba46(_0x27de13);let {sbox2:_0x4e4d84}=_0x4fb346,_0x3e548f=[];(!_0x6c24||!_0x541e5f(_0x27de13))&&_0x3e548f[_0x560af2(0x227)](_0x27de13=_0x17e0a5(_0x27de13));let _0xded20d=_0x3f32bc(_0x10e10c(_0x27de13)),_0xbd30ef=_0xded20d[_0x560af2(0x208)],_0xb82a8=_0x4bf6af=>_0xcc15aa(_0x4e4d84,_0x4bf6af,_0x4bf6af,_0x4bf6af,_0x4bf6af),_0x4050f0=new Uint32Array(_0x370b6d+0x1c);_0x4050f0[_0x560af2(0x10c)](_0xded20d);for(let _0x71333d=_0xbd30ef;_0x71333d<_0x4050f0['length'];_0x71333d++){let _0x974034=_0x4050f0[_0x71333d-0x1];_0x71333d%_0xbd30ef===0x0?_0x974034=_0xb82a8(_0x3e91ed(_0x974034))^_0x48b978[_0x71333d/_0xbd30ef-0x1]:_0xbd30ef>0x6&&_0x71333d%_0xbd30ef===0x4&&(_0x974034=_0xb82a8(_0x974034)),_0x4050f0[_0x71333d]=_0x4050f0[_0x71333d-_0xbd30ef]^_0x974034;}return _0x39afad(..._0x3e548f),_0x4050f0;}function _0xbf30f9(_0x255025){const _0x686dcf=_0x4fa2a5;let _0x2a0a58=_0x996450(_0x255025),_0x46cf0e=_0x2a0a58[_0x686dcf(0x1b2)](),_0x29431b=_0x2a0a58[_0x686dcf(0x208)],{sbox2:_0x2d3ed9}=_0x4fb346,{T0:_0x436809,T1:_0x36f200,T2:_0x2980e7,T3:_0x3a12de}=_0x1f171e;for(let _0x7b5061=0x0;_0x7b5061<_0x29431b;_0x7b5061+=0x4)for(let _0x52acac=0x0;_0x52acac<0x4;_0x52acac++)_0x46cf0e[_0x7b5061+_0x52acac]=_0x2a0a58[_0x29431b-_0x7b5061-0x4+_0x52acac];_0x39afad(_0x2a0a58);for(let _0xd2071=0x4;_0xd2071<_0x29431b-0x4;_0xd2071++){let _0x5b72fd=_0x46cf0e[_0xd2071],_0x2b42df=_0xcc15aa(_0x2d3ed9,_0x5b72fd,_0x5b72fd,_0x5b72fd,_0x5b72fd);_0x46cf0e[_0xd2071]=_0x436809[_0x2b42df&0xff]^_0x36f200[_0x2b42df>>>0x8&0xff]^_0x2980e7[_0x2b42df>>>0x10&0xff]^_0x3a12de[_0x2b42df>>>0x18];}return _0x46cf0e;}function _0x4a3c47(_0x233b85,_0x11f9bb,_0x934b55,_0x25134a,_0x15f2f1,_0x9d1b45){return _0x233b85[_0x934b55<<0x8&0xff00|_0x25134a>>>0x8&0xff]^_0x11f9bb[_0x15f2f1>>>0x8&0xff00|_0x9d1b45>>>0x18&0xff];}function _0xcc15aa(_0x35adb6,_0x3d2281,_0x44cf4e,_0x2560c0,_0x3ac240){return _0x35adb6[_0x3d2281&0xff|_0x44cf4e&0xff00]|_0x35adb6[_0x2560c0>>>0x10&0xff|_0x3ac240>>>0x10&0xff00]<<0x10;}function _0x4b1787(_0x9f406,_0x3d28ce,_0x7b339,_0x2968e7,_0x4b21df){let {sbox2:_0x424451,T01:_0x5076fa,T23:_0x5b4a5a}=_0x4fb346,_0x1349f7=0x0;_0x3d28ce^=_0x9f406[_0x1349f7++],_0x7b339^=_0x9f406[_0x1349f7++],_0x2968e7^=_0x9f406[_0x1349f7++],_0x4b21df^=_0x9f406[_0x1349f7++];let _0x5a4327=_0x9f406['length']/0x4-0x2;for(let _0x45be64=0x0;_0x45be64<_0x5a4327;_0x45be64++){let _0x477429=_0x9f406[_0x1349f7++]^_0x4a3c47(_0x5076fa,_0x5b4a5a,_0x3d28ce,_0x7b339,_0x2968e7,_0x4b21df),_0x57597d=_0x9f406[_0x1349f7++]^_0x4a3c47(_0x5076fa,_0x5b4a5a,_0x7b339,_0x2968e7,_0x4b21df,_0x3d28ce),_0x4d7ad8=_0x9f406[_0x1349f7++]^_0x4a3c47(_0x5076fa,_0x5b4a5a,_0x2968e7,_0x4b21df,_0x3d28ce,_0x7b339),_0x218fdc=_0x9f406[_0x1349f7++]^_0x4a3c47(_0x5076fa,_0x5b4a5a,_0x4b21df,_0x3d28ce,_0x7b339,_0x2968e7);_0x3d28ce=_0x477429,_0x7b339=_0x57597d,_0x2968e7=_0x4d7ad8,_0x4b21df=_0x218fdc;}return{'s0':_0x9f406[_0x1349f7++]^_0xcc15aa(_0x424451,_0x3d28ce,_0x7b339,_0x2968e7,_0x4b21df),'s1':_0x9f406[_0x1349f7++]^_0xcc15aa(_0x424451,_0x7b339,_0x2968e7,_0x4b21df,_0x3d28ce),'s2':_0x9f406[_0x1349f7++]^_0xcc15aa(_0x424451,_0x2968e7,_0x4b21df,_0x3d28ce,_0x7b339),'s3':_0x9f406[_0x1349f7++]^_0xcc15aa(_0x424451,_0x4b21df,_0x3d28ce,_0x7b339,_0x2968e7)};}function _0x44b129(_0x23eafb,_0x2227a5,_0x54fb49,_0x1a4896,_0x478fb4){const _0xf1d553=_0x4fa2a5;let {sbox2:_0x2be31c,T01:_0x392f60,T23:_0x2881bd}=_0x1f171e,_0x5c953b=0x0;_0x2227a5^=_0x23eafb[_0x5c953b++],_0x54fb49^=_0x23eafb[_0x5c953b++],_0x1a4896^=_0x23eafb[_0x5c953b++],_0x478fb4^=_0x23eafb[_0x5c953b++];let _0x312ab5=_0x23eafb[_0xf1d553(0x208)]/0x4-0x2;for(let _0x122f49=0x0;_0x122f49<_0x312ab5;_0x122f49++){let _0x2da6be=_0x23eafb[_0x5c953b++]^_0x4a3c47(_0x392f60,_0x2881bd,_0x2227a5,_0x478fb4,_0x1a4896,_0x54fb49),_0x508763=_0x23eafb[_0x5c953b++]^_0x4a3c47(_0x392f60,_0x2881bd,_0x54fb49,_0x2227a5,_0x478fb4,_0x1a4896),_0x1cb58f=_0x23eafb[_0x5c953b++]^_0x4a3c47(_0x392f60,_0x2881bd,_0x1a4896,_0x54fb49,_0x2227a5,_0x478fb4),_0x227cc9=_0x23eafb[_0x5c953b++]^_0x4a3c47(_0x392f60,_0x2881bd,_0x478fb4,_0x1a4896,_0x54fb49,_0x2227a5);_0x2227a5=_0x2da6be,_0x54fb49=_0x508763,_0x1a4896=_0x1cb58f,_0x478fb4=_0x227cc9;}return{'s0':_0x23eafb[_0x5c953b++]^_0xcc15aa(_0x2be31c,_0x2227a5,_0x478fb4,_0x1a4896,_0x54fb49),'s1':_0x23eafb[_0x5c953b++]^_0xcc15aa(_0x2be31c,_0x54fb49,_0x2227a5,_0x478fb4,_0x1a4896),'s2':_0x23eafb[_0x5c953b++]^_0xcc15aa(_0x2be31c,_0x1a4896,_0x54fb49,_0x2227a5,_0x478fb4),'s3':_0x23eafb[_0x5c953b++]^_0xcc15aa(_0x2be31c,_0x478fb4,_0x1a4896,_0x54fb49,_0x2227a5)};}function _0x2aa85d(_0x19a8c7,_0x32bfc0){const _0x2bb7d7=_0x4fa2a5;if(_0x9aeef9(_0x19a8c7),_0x19a8c7[_0x2bb7d7(0x208)]%0x10!=0x0)throw Error(_0x2bb7d7(0x1ae));_0x32bfc0!==void 0x0&&(_0x5e877e(_0x19a8c7[_0x2bb7d7(0x208)],_0x32bfc0),_0x33d077(_0x19a8c7,_0x32bfc0));}function _0x2cb0cc(_0x392e32,_0x141d97,_0x32d3ea){const _0x464291=_0x4fa2a5;_0x9aeef9(_0x392e32);let _0x5be1f3=_0x392e32[_0x464291(0x208)],_0x333bb3=_0x5be1f3%0x10;if(!_0x141d97&&_0x333bb3!==0x0)throw Error('plaintext\x20must\x20be\x20multiple\x20of\x2016');if(_0x141d97){let _0x255e8f=0x10-_0x333bb3;_0x255e8f||=0x10,_0x5be1f3+=_0x255e8f;}return _0x32d3ea!==void 0x0&&(_0x5e877e(_0x5be1f3,_0x32d3ea),_0x33d077(_0x392e32,_0x32d3ea)),_0x5be1f3;}function _0x38bc57(_0x165c4e,_0x42a5c1,_0x51d518){_0x51d518===void 0x0&&(_0x51d518=new Uint8Array(_0x42a5c1)),(!_0x6c24||!_0x541e5f(_0x165c4e))&&(_0x165c4e=_0x17e0a5(_0x165c4e));let _0xd1f02=_0x10e10c(_0x51d518);return{'b':_0x165c4e,'o':_0xd1f02,'out':_0x51d518};}function _0x2bb417(_0x3717b7,_0x37d1bf){const _0x2231ed=_0x4fa2a5;if(!_0x37d1bf)return _0x3717b7;let _0xabbc35=_0x3717b7['length'];if(_0xabbc35===0x0)throw Error(_0x2231ed(0x2ea));let _0x3a4d62=_0x3717b7[_0xabbc35-0x1],_0x2a9d86=0x1;_0x2a9d86&=_0x3a4d62-0x1>>>0x1f^0x1,_0x2a9d86&=0x10-_0x3a4d62>>>0x1f^0x1;for(let _0x2e75ee=0x0;_0x2e75ee<0x10;_0x2e75ee++){let _0x451984=_0x2e75ee-_0x3a4d62>>>0x1f,_0x4d5c37=+((_0x3717b7[_0xabbc35-0x1-_0x2e75ee]^_0x3a4d62)===0x0);_0x2a9d86&=_0x4d5c37|_0x451984^0x1;}if(!_0x2a9d86)throw Error(_0x2231ed(0x1bc));return _0x3717b7[_0x2231ed(0x398)](0x0,_0xabbc35-_0x3a4d62);}function _0x1d2973(_0x2d0d66){const _0x45f036=_0x4fa2a5;let _0x1d3c3a=new Uint8Array(0x10),_0x2a1e01=_0x10e10c(_0x1d3c3a);_0x1d3c3a[_0x45f036(0x10c)](_0x2d0d66);let _0x2e591e=0x10-_0x2d0d66[_0x45f036(0x208)];for(let _0x2c915=0x10-_0x2e591e;_0x2c915<0x10;_0x2c915++)_0x1d3c3a[_0x2c915]=_0x2e591e;return _0x2a1e01;}let _0x2b7111=_0x28f13a({'blockSize':0x10,'nonceLength':0x10},function(_0x55335c,_0x3e7687,_0x49df19={}){const _0x39de58=_0x4fa2a5;let _0x350ce2=!_0x49df19[_0x39de58(0x35e)];return{'encrypt'(_0x7d8e14,_0x388409){const _0x2e629f=_0x39de58;let _0x4c67cf=_0x2cb0cc(_0x7d8e14,_0x350ce2,_0x388409),_0x507bd3=_0x996450(_0x55335c),{b:_0x4c8f4c,o:_0x5f34fd,out:_0x932166}=_0x38bc57(_0x7d8e14,_0x4c67cf,_0x388409),_0x4caf25=_0x10e10c(_0x4c8f4c);_0x3f32bc(_0x4caf25);let _0x5f27db=_0x3e7687,_0x233edc=[_0x507bd3];(!_0x6c24||!_0x541e5f(_0x5f27db))&&_0x233edc[_0x2e629f(0x227)](_0x5f27db=_0x17e0a5(_0x5f27db));let _0x246193=_0x10e10c(_0x5f27db);_0x3f32bc(_0x246193);let _0x552ec0=_0x246193[0x0],_0x1a8ffd=_0x246193[0x1],_0x118cd1=_0x246193[0x2],_0x2b8cbc=_0x246193[0x3],_0x1adf15=0x0;for(;_0x1adf15+0x4<=_0x4caf25[_0x2e629f(0x208)];)_0x552ec0^=_0x4caf25[_0x1adf15+0x0],_0x1a8ffd^=_0x4caf25[_0x1adf15+0x1],_0x118cd1^=_0x4caf25[_0x1adf15+0x2],_0x2b8cbc^=_0x4caf25[_0x1adf15+0x3],{s0:_0x552ec0,s1:_0x1a8ffd,s2:_0x118cd1,s3:_0x2b8cbc}=_0x4b1787(_0x507bd3,_0x552ec0,_0x1a8ffd,_0x118cd1,_0x2b8cbc),_0x5f34fd[_0x1adf15++]=_0x552ec0,_0x5f34fd[_0x1adf15++]=_0x1a8ffd,_0x5f34fd[_0x1adf15++]=_0x118cd1,_0x5f34fd[_0x1adf15++]=_0x2b8cbc;if(_0x350ce2){let _0x4f05a4=_0x1d2973(_0x7d8e14[_0x2e629f(0x398)](_0x1adf15*0x4));_0x3f32bc(_0x4f05a4),_0x552ec0^=_0x4f05a4[0x0],_0x1a8ffd^=_0x4f05a4[0x1],_0x118cd1^=_0x4f05a4[0x2],_0x2b8cbc^=_0x4f05a4[0x3],{s0:_0x552ec0,s1:_0x1a8ffd,s2:_0x118cd1,s3:_0x2b8cbc}=_0x4b1787(_0x507bd3,_0x552ec0,_0x1a8ffd,_0x118cd1,_0x2b8cbc),_0x5f34fd[_0x1adf15++]=_0x552ec0,_0x5f34fd[_0x1adf15++]=_0x1a8ffd,_0x5f34fd[_0x1adf15++]=_0x118cd1,_0x5f34fd[_0x1adf15++]=_0x2b8cbc,_0x39afad(_0x4f05a4);}return _0x3f32bc(_0x5f34fd),_0x39afad(..._0x233edc),_0x4c8f4c!==_0x7d8e14&&_0x39afad(_0x4c8f4c),_0x932166;},'decrypt'(_0x798f23,_0x9a40bd){const _0x20b6a5=_0x39de58;_0x2aa85d(_0x798f23,_0x9a40bd);let _0x57e33b=_0xbf30f9(_0x55335c);_0x9a40bd===void 0x0&&(_0x9a40bd=new Uint8Array(_0x798f23['length']));let _0x136d58=_0x3e7687,_0x70af0d=[_0x57e33b];(!_0x6c24||!_0x541e5f(_0x136d58))&&_0x70af0d[_0x20b6a5(0x227)](_0x136d58=_0x17e0a5(_0x136d58));let _0x1fde1f=_0x10e10c(_0x136d58);_0x3f32bc(_0x1fde1f),(!_0x6c24||!_0x541e5f(_0x798f23))&&_0x70af0d[_0x20b6a5(0x227)](_0x798f23=_0x17e0a5(_0x798f23));let _0x38ea7c=_0x10e10c(_0x798f23),_0x50ad17=_0x10e10c(_0x9a40bd);_0x3f32bc(_0x38ea7c);let _0xa0c74a=_0x1fde1f[0x0],_0x3d92a8=_0x1fde1f[0x1],_0x5c523d=_0x1fde1f[0x2],_0x15c11d=_0x1fde1f[0x3];for(let _0x1a0f9c=0x0;_0x1a0f9c+0x4<=_0x38ea7c[_0x20b6a5(0x208)];){let _0x14dab0=_0xa0c74a,_0x5d58df=_0x3d92a8,_0x37348c=_0x5c523d,_0x111fdc=_0x15c11d;_0xa0c74a=_0x38ea7c[_0x1a0f9c+0x0],_0x3d92a8=_0x38ea7c[_0x1a0f9c+0x1],_0x5c523d=_0x38ea7c[_0x1a0f9c+0x2],_0x15c11d=_0x38ea7c[_0x1a0f9c+0x3];let {s0:_0x58048c,s1:_0x16ab14,s2:_0x46cbcd,s3:_0x286f3c}=_0x44b129(_0x57e33b,_0xa0c74a,_0x3d92a8,_0x5c523d,_0x15c11d);_0x50ad17[_0x1a0f9c++]=_0x58048c^_0x14dab0,_0x50ad17[_0x1a0f9c++]=_0x16ab14^_0x5d58df,_0x50ad17[_0x1a0f9c++]=_0x46cbcd^_0x37348c,_0x50ad17[_0x1a0f9c++]=_0x286f3c^_0x111fdc;}return _0x3f32bc(_0x50ad17),_0x39afad(..._0x70af0d),_0x2bb417(_0x9a40bd,_0x350ce2);}};});function _0x4a357b(_0x4c1dd8){const _0x4a69a2=_0x4fa2a5;let _0x506e34=atob(_0x4c1dd8),_0x15a89a=new Uint8Array(_0x506e34['length']);for(let _0x85363b=0x0;_0x85363b<_0x506e34[_0x4a69a2(0x208)];_0x85363b++)_0x15a89a[_0x85363b]=_0x506e34[_0x4a69a2(0x1a0)](_0x85363b);return _0x15a89a;}function _0x1e1e57(_0x2ac82a){const _0xa1300=_0x4fa2a5;let _0x1bcb9d='';for(let _0x264517=0x0;_0x264517<_0x2ac82a[_0xa1300(0x208)];_0x264517++)_0x1bcb9d+=String['fromCharCode'](_0x2ac82a[_0x264517]);return btoa(_0x1bcb9d);}function _0x3e87cc(_0x37ca8b,_0x85ac32){const _0x231b11=_0x4fa2a5;let _0x258c9e=_0x4a357b(_0x85ac32),_0x4d9a3d=_0x381ba2(0x10);return _0x1e1e57(_0x24f204(_0x4d9a3d,_0x2b7111(_0x258c9e,_0x4d9a3d)[_0x231b11(0x1ff)](_0x38f376(_0x37ca8b))));}function _0x582dbe(){const _0x18de8f=_0x4fa2a5;let _0x5506ef=(0x0,_0x224431[_0x18de8f(0x112)])()[_0x18de8f(0xe2)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x5506ef){let _0x1fc186={'time':Math['floor'](Date[_0x18de8f(0x3f4)]()/0x3e8),'domain':location[_0x18de8f(0x125)]};return _0x3e87cc(JSON[_0x18de8f(0x3be)](_0x1fc186),_0x5506ef);}}let _0x2a10c7=class{constructor(_0x3dc080){const _0x194ead=_0x4fa2a5;this[_0x194ead(0x33c)]=_0x3dc080,this[_0x194ead(0x150)]();}['_initRequestHeader'](){const _0x33ab45=_0x4fa2a5;this[_0x33ab45(0x33c)][_0x33ab45(0x3f1)]({'interceptor':(_0x2060d6,_0x142c48)=>{const _0x36ed41=_0x33ab45;let _0x3234ce=_0x582dbe();return _0x3234ce&&_0x2060d6[_0x36ed41(0x17e)]['set'](_0x36ed41(0x2f3),_0x3234ce),_0x142c48(_0x2060d6);}});}};_0x2a10c7=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x544d24[_0x4fa2a5(0x320)]))],_0x2a10c7);let _0x4f0cf4=class extends _0x433f65[_0x4fa2a5(0x24b)]{constructor(_0x346ce8,_0x374d7c,_0x263488){const _0x23ac41=_0x4fa2a5;super(),this[_0x23ac41(0x314)]=_0x346ce8,this[_0x23ac41(0xff)]=_0x374d7c,this[_0x23ac41(0x304)]=_0x263488,_0x5aacdf(this,_0x23ac41(0x218),new _0x450705[(_0x23ac41(0x1f8))](null)),_0x5aacdf(this,'_unitLoaded$',new _0x450705[(_0x23ac41(0x155))]()),_0x5aacdf(this,_0x23ac41(0x3f5),this[_0x23ac41(0x218)][_0x23ac41(0x343)]()),_0x5aacdf(this,_0x23ac41(0x21d),this[_0x23ac41(0x220)][_0x23ac41(0x343)]());}[_0x4fa2a5(0x3b4)](){const _0x3ad2ac=_0x4fa2a5;super[_0x3ad2ac(0x3b4)](),this[_0x3ad2ac(0x220)][_0x3ad2ac(0x410)](),this[_0x3ad2ac(0x218)]['complete']();}async[_0x4fa2a5(0x177)](_0x28c302,_0xcc0f12,_0x18eb7f,_0x590452){const _0x2b1a08=_0x4fa2a5;this[_0x2b1a08(0x218)][_0x2b1a08(0x163)]({'unitId':_0x28c302,'type':_0xcc0f12,'subUnitId':_0x590452});let _0x370c22=null;switch(_0xcc0f12){case _0x433f65['UniverInstanceType'][_0x2b1a08(0xb4)]:_0x370c22=await this[_0x2b1a08(0xff)][_0x2b1a08(0xf0)](_0x28c302,_0x18eb7f,void 0x0,{'initialSubUnitId':_0x590452});break;case _0x433f65['UniverInstanceType'][_0x2b1a08(0x237)]:_0x370c22=await this['_snapshotService'][_0x2b1a08(0x2ed)](_0x28c302,_0x18eb7f);break;case _0x433f65[_0x2b1a08(0xa5)][_0x2b1a08(0xcd)]:_0x370c22=await this[_0x2b1a08(0xff)][_0x2b1a08(0x126)](_0x28c302,_0x18eb7f);break;case _0x433f65[_0x2b1a08(0xa5)][_0x2b1a08(0x169)]:_0x370c22=await this[_0x2b1a08(0xff)]['loadBoard'](_0x28c302,_0x18eb7f);break;case _0x433f65[_0x2b1a08(0xa5)][_0x2b1a08(0x146)]:_0x370c22=await this[_0x2b1a08(0xff)]['loadBase'](_0x28c302,_0x18eb7f);break;case _0x433f65[_0x2b1a08(0xa5)][_0x2b1a08(0x3ff)]:_0x370c22=await this[_0x2b1a08(0xff)][_0x2b1a08(0x3cc)](_0x28c302,_0x18eb7f);break;default:this[_0x2b1a08(0x314)][_0x2b1a08(0x187)](_0x2b1a08(0x2a6),_0x2b1a08(0x327));}return _0x370c22&&this['_unitLoaded$'][_0x2b1a08(0x163)](_0x370c22),_0x370c22;}async[_0x4fa2a5(0x312)](_0x3bd510,_0x45cff8,_0x68fe01){const _0x3f3356=_0x4fa2a5;var _0x5880a6;this[_0x3f3356(0x218)][_0x3f3356(0x163)]({'unitId':_0x3bd510,'type':_0x45cff8,'subUnitId':_0x68fe01});let _0x3c5bb1=0x0,_0x25f299=await((_0x5880a6=this[_0x3f3356(0x304)])==null?void 0x0:_0x5880a6['loadOfflineData'](_0x3bd510));return _0x25f299&&(_0x25f299[_0x3f3356(0x391)]||_0x25f299['mutations'][_0x3f3356(0x208)]!==0x0)&&(_0x3c5bb1=_0x25f299[_0x3f3356(0xf5)]),_0x3c5bb1===0x0&&this[_0x3f3356(0x314)][_0x3f3356(0x23b)](_0x3f3356(0x2a6),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x3f3356(0x177)](_0x3bd510,_0x45cff8,_0x3c5bb1,_0x68fe01);}};_0x4f0cf4=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0x2a1)])),_0x374c65(0x2,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x4f0cf4);let _0x55876d=class{constructor(_0x41680f,_0x10f0ba,_0x3cb1ef){const _0x437afe=_0x4fa2a5;this['_httpService']=_0x41680f,this['_configService']=_0x10f0ba,this[_0x437afe(0x3f3)]=_0x3cb1ef,_0x5aacdf(this,'_waitCount',0x0),_0x5aacdf(this,_0x437afe(0x415),new _0x450705[(_0x437afe(0x155))]()),_0x5aacdf(this,_0x437afe(0x322),this[_0x437afe(0x415)]),_0x5aacdf(this,_0x437afe(0x271),new Map());}[_0x4fa2a5(0x149)](_0x1437fd){const _0x454090=_0x4fa2a5;this[_0x454090(0x133)]=_0x1437fd,this['_change$'][_0x454090(0x163)](_0x1437fd);}[_0x4fa2a5(0x118)](_0x279a05,_0x2d012f){const _0x58f93f=_0x4fa2a5;if(_0x2d012f===_0x433f65[_0x58f93f(0x17b)]['BASE64']){let _0x13e129=new Image();return _0x13e129[_0x58f93f(0x28d)]=_0x279a05,_0x13e129;}return this[_0x58f93f(0x271)][_0x58f93f(0x2c0)](_0x279a05);}[_0x4fa2a5(0xc2)](_0x1b4d47,_0x51cbab,_0x173a25){const _0x193f78=_0x4fa2a5;_0x51cbab!==_0x433f65[_0x193f78(0x17b)]['BASE64']&&_0x173a25!=null&&this['_imageSourceCache'][_0x193f78(0x10c)](_0x1b4d47,_0x173a25);}async[_0x4fa2a5(0x397)](_0x395d1b){const _0x48c20c=_0x4fa2a5;try{let _0x8bb483=this[_0x48c20c(0x3b0)](this[_0x48c20c(0x2f6)](),''+_0x395d1b),_0x496be0=(await this['_httpService']['get'](_0x8bb483))[_0x48c20c(0x280)];if(_0x496be0['error']&&_0x496be0[_0x48c20c(0x187)][_0x48c20c(0xb6)]===_0x4ed0d4['ErrorCode']['OK']){let _0x5383c9=(0x0,_0x433f65['resolveWithBasePath'])(_0x496be0['url'],this[_0x48c20c(0x2d1)]());return Promise[_0x48c20c(0x140)](_0x5383c9);}return Promise['reject'](_0x496be0[_0x48c20c(0x187)]);}catch(_0x59d559){return Promise[_0x48c20c(0x170)](_0x59d559);}}async[_0x4fa2a5(0x132)](_0x4b592e){const _0x57c80c=_0x4fa2a5;let _0xfd4c26='';if(!_0x21f767[_0x57c80c(0x2dd)]['includes'](_0x4b592e[_0x57c80c(0x3c6)]))return this['_decreaseWaiting'](),Promise[_0x57c80c(0x170)](Error(_0x433f65['ImageUploadStatusType'][_0x57c80c(0x212)]));if(_0x4b592e[_0x57c80c(0x1dd)]>(0x0,_0x21f767[_0x57c80c(0x1fb)])())return this[_0x57c80c(0x388)](),Promise['reject'](Error(_0x433f65[_0x57c80c(0x29d)][_0x57c80c(0x319)]));try{let _0x44ddc4=new FormData();_0x44ddc4[_0x57c80c(0x3c4)](_0x57c80c(0x173),_0x4b592e);let _0x583de1=this[_0x57c80c(0x3f3)][_0x57c80c(0x2f5)](),_0x4ca7ba=_0x583de1==null?void 0x0:_0x583de1[_0x57c80c(0xed)]();if(!_0x4ca7ba)throw Error(_0x57c80c(0x2a9));let _0x319913=this[_0x57c80c(0x3dd)]()+'?size='+_0x4b592e[_0x57c80c(0x1dd)]['toString']()+_0x57c80c(0x19d)+_0x4ed0d4[_0x57c80c(0x158)]['UnitEmbedded']+_0x57c80c(0x180)+encodeURIComponent(_0x4ca7ba),_0x1997e1={'body':_0x44ddc4},_0x15a5e1=(await this['_httpService'][_0x57c80c(0x201)](_0x319913,_0x1997e1))['body'];if(typeof _0x15a5e1['FileId']!=_0x57c80c(0x265))return this[_0x57c80c(0x388)](),Promise[_0x57c80c(0x170)](Error(_0x433f65[_0x57c80c(0x29d)][_0x57c80c(0x1cf)]));_0xfd4c26=_0x15a5e1['FileId'];}catch{return this[_0x57c80c(0x388)](),Promise['reject'](Error(_0x433f65[_0x57c80c(0x29d)]['ERROR_IMAGE']));}return new Promise((_0x2f5aba,_0x1b8b7c)=>{const _0x4fc8de=_0x57c80c;let _0x585083=new FileReader();_0x585083['readAsDataURL'](_0x4b592e),_0x585083[_0x4fc8de(0xf3)]=_0x3b8a34=>{const _0x46ee09=_0x4fc8de;var _0x517af7;let _0x42cd53=(_0x517af7=_0x3b8a34[_0x46ee09(0x24c)])==null?void 0x0:_0x517af7['result'];if(_0x42cd53==null){this[_0x46ee09(0x388)](),_0x1b8b7c(Error(_0x433f65[_0x46ee09(0x29d)][_0x46ee09(0x1cf)]));return;}_0x2f5aba({'imageId':(0x0,_0x433f65[_0x46ee09(0xb7)])(0x6),'imageSourceType':_0x433f65[_0x46ee09(0x17b)][_0x46ee09(0x2b3)],'source':_0xfd4c26,'base64Cache':_0x42cd53,'status':_0x433f65[_0x46ee09(0x29d)][_0x46ee09(0x109)]}),this[_0x46ee09(0x388)]();};});}[_0x4fa2a5(0x3dd)](){const _0xfca754=_0x4fa2a5;let _0x48ecc3=this[_0xfca754(0x1a9)]['getConfig'](_0x18fed6);return(_0x48ecc3==null?void 0x0:_0x48ecc3[_0xfca754(0x2de)])??'/universer-api/stream/file/upload';}[_0x4fa2a5(0x2f6)](){const _0x3ed238=_0x4fa2a5;let _0x1f11a4=this['_configService'][_0x3ed238(0xd7)](_0x18fed6);return(_0x1f11a4==null?void 0x0:_0x1f11a4['signUrlServerUrl'])??_0x3ed238(0x338);}[_0x4fa2a5(0x2d1)](){const _0x1021a3=_0x4fa2a5;let _0x211fcf=this[_0x1021a3(0x1a9)]['getConfig'](_0x18fed6);return(_0x211fcf==null?void 0x0:_0x211fcf[_0x1021a3(0x18f)])??location[_0x1021a3(0x1b7)];}[_0x4fa2a5(0x3b0)](_0x3b18bd,_0x501555){const _0x4bd075=_0x4fa2a5;return _0x3b18bd[_0x4bd075(0x3cd)](_0x4bd075(0x30d),_0x501555);}[_0x4fa2a5(0x388)](){const _0x186817=_0x4fa2a5;--this[_0x186817(0x133)],this['_change$']['next'](this[_0x186817(0x133)]);}};_0x55876d=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x544d24[_0x4fa2a5(0x320)])),_0x374c65(0x1,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x2,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['IUniverInstanceService']))],_0x55876d);let _0x1e046a=class{constructor(_0x4b52c5,_0x12e510){const _0x139615=_0x4fa2a5;this[_0x139615(0x1a9)]=_0x4b52c5,this[_0x139615(0x2c9)]=_0x12e510;}[_0x4fa2a5(0x213)](){const _0x492a67=_0x4fa2a5;let _0x5424de=this[_0x492a67(0x1a9)][_0x492a67(0xd7)](_0x18fed6);return(_0x5424de==null?void 0x0:_0x5424de[_0x492a67(0x301)])??_0x492a67(0xca);}async[_0x4fa2a5(0x2d8)](_0x204eb4){const _0xcfe38f=_0x4fa2a5;let _0x3021d5=this[_0xcfe38f(0x213)]()+_0xcfe38f(0x225);return{'list':[{'title':_0xcfe38f(0x2ee),'mentions':(await this[_0xcfe38f(0x2c9)][_0xcfe38f(0x2c0)](_0x3021d5,{'params':{'objectID':_0x204eb4[_0xcfe38f(0x229)],'unitID':_0x204eb4[_0xcfe38f(0x229)]}}))[_0xcfe38f(0x280)][_0xcfe38f(0x195)]['map'](_0x9e7654=>({'objectId':_0x9e7654['id'],'name':_0x9e7654[_0xcfe38f(0x3bc)]['name'],'metadata':{'icon':_0x9e7654[_0xcfe38f(0x3bc)]['avatar']},'label':_0x9e7654[_0xcfe38f(0x3bc)][_0xcfe38f(0x341)],'objectType':_0x433f65['MentionType'][_0xcfe38f(0x1d7)]})),'metadata':{},'type':_0x433f65[_0xcfe38f(0x35f)][_0xcfe38f(0x1d7)]}]};}};_0x1e046a=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x2aa)])),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x544d24[_0x4fa2a5(0x320)]))],_0x1e046a);let _0x151d68=class extends _0x433f65[_0x4fa2a5(0x24b)]{constructor(_0x1fef3e,_0xc362b,_0x10e084,_0x31c88b,_0x5e3c64,_0x5d10ed){const _0x28844d=_0x4fa2a5;super(),this[_0x28844d(0x40f)]=_0x1fef3e,this[_0x28844d(0x3f3)]=_0xc362b,this[_0x28844d(0x3c9)]=_0x10e084,this[_0x28844d(0x2a2)]=_0x31c88b,this[_0x28844d(0x119)]=_0x5e3c64,this[_0x28844d(0x347)]=_0x5d10ed,_0x5aacdf(this,_0x28844d(0x249),new Set()),this[_0x28844d(0x413)](()=>this[_0x28844d(0x249)][_0x28844d(0x2f9)]()),this[_0x28844d(0x413)](_0x298028(this[_0x28844d(0x3f3)])[_0x28844d(0x252)](({unitId:_0x505f2f})=>this[_0x28844d(0x249)][_0x28844d(0x3ae)](_0x505f2f))),this[_0x28844d(0x186)](),this[_0x28844d(0x1f1)](),[_0x433f65[_0x28844d(0xa5)][_0x28844d(0x237)],_0x433f65[_0x28844d(0xa5)][_0x28844d(0xcd)],_0x433f65[_0x28844d(0xa5)][_0x28844d(0x146)],_0x433f65[_0x28844d(0xa5)][_0x28844d(0x169)]][_0x28844d(0x1d2)](_0x43a6c9=>{const _0x35b67a=_0x28844d;this['disposeWithMe'](this[_0x35b67a(0x3f3)][_0x35b67a(0x40e)](_0x43a6c9)['subscribe'](_0x1366d4=>{const _0x5d3a40=_0x35b67a;this['_closedUnits'][_0x5d3a40(0x21b)](_0x1366d4[_0x5d3a40(0xed)]()),this[_0x5d3a40(0x40f)][_0x5d3a40(0x2c0)](_0x433f65[_0x5d3a40(0x15c)])[_0x5d3a40(0x286)](_0x1366d4[_0x5d3a40(0xed)]());}));});}[_0x4fa2a5(0x1f1)](){const _0x3a3aaf=_0x4fa2a5;let _0x29b3a0=async(_0x48057e,_0x46b4ec)=>{const _0x4350a2=_0x5846;let _0x2173e8=await this[_0x4350a2(0x119)][_0x4350a2(0x40c)](_0x48057e);this[_0x4350a2(0x18b)]||this[_0x4350a2(0x249)]['has'](_0x48057e)||!this['_univerInstanceService'][_0x4350a2(0x2df)](_0x48057e)||_0x2173e8[_0x4350a2(0x1eb)][_0x4350a2(0x192)]((0x0,_0x223d83[_0x4350a2(0x260)])(_0x16ed23=>_0x16ed23[_0x4350a2(0x130)]===_0x3a5734[_0x4350a2(0xec)][_0x4350a2(0x3ef)]),(0x0,_0x223d83[_0x4350a2(0x1c3)])((0x0,_0x450705['merge'])(this[_0x4350a2(0xc4)],this['_univerInstanceService'][_0x4350a2(0x3eb)][_0x4350a2(0x192)]((0x0,_0x223d83[_0x4350a2(0x260)])(_0x54fdba=>_0x54fdba['getUnitId']()===_0x48057e)))))[_0x4350a2(0x252)](_0xbb233=>{const _0x307500=_0x4350a2;let {reason:_0x52b78a}=_0xbb233[_0x307500(0x2c7)];this[_0x307500(0x347)]['emitEvent']({'id':'CLOSE_ROOM','data':_0x52b78a}),this[_0x307500(0x249)]['add'](_0x48057e),this['_injector'][_0x307500(0x2c0)](_0x433f65[_0x307500(0x15c)])[_0x307500(0x286)](_0x48057e);let _0x2b1cc6=_0x3d16ab(_0x46b4ec);_0x2b1cc6!=null&&this[_0x307500(0x303)](_0x48057e,_0x2b1cc6,_0x4ed0d4[_0x307500(0x17f)][_0x307500(0x268)],!0x1),this['_collaborationSessionService'][_0x307500(0x284)](_0x48057e);});};_0x298028(this[_0x3a3aaf(0x3f3)])[_0x3a3aaf(0x192)]((0x0,_0x223d83[_0x3a3aaf(0x260)])(({unitId:_0x135563})=>!(0x0,_0x433f65['isInternalEditorID'])(_0x135563)),(0x0,_0x223d83[_0x3a3aaf(0x1c3)])(this['dispose$']))[_0x3a3aaf(0x252)](({type:_0x1a3f5,unitId:_0xd8a18b})=>{const _0x457280=_0x3a3aaf;_0x29b3a0(_0xd8a18b,_0x1a3f5)[_0x457280(0x1a4)](_0x107f7a=>this[_0x457280(0x40f)][_0x457280(0x2c0)](_0x433f65['ILogService'])[_0x457280(0x187)](_0x107f7a));});}[_0x4fa2a5(0x186)](){const _0x22d873=_0x4fa2a5;let _0xb6dfbc=async(_0xd1196f,_0x1af461)=>{const _0x239792=_0x5846;let _0x5a73c5=await this['_collaborationSessionService'][_0x239792(0x40c)](_0xd1196f);if(!(this[_0x239792(0x18b)]||this[_0x239792(0x249)][_0x239792(0x1de)](_0xd1196f)||!this['_univerInstanceService'][_0x239792(0x2df)](_0xd1196f))){if(_0x1af461===_0x433f65[_0x239792(0xa5)][_0x239792(0xb4)]){let _0x4f2648=this[_0x239792(0x40f)][_0x239792(0x2c0)](_0x6a2ac6['SheetPermissionInitController']);await _0x4f2648[_0x239792(0x2f4)](_0xd1196f),_0x5a73c5[_0x239792(0x1eb)][_0x239792(0x192)]((0x0,_0x223d83[_0x239792(0x260)])(_0x5054dc=>_0x5054dc[_0x239792(0x130)]===_0x3a5734['CollaborationEvent'][_0x239792(0x136)]),(0x0,_0x223d83[_0x239792(0x1c3)])((0x0,_0x450705[_0x239792(0x298)])(this[_0x239792(0xc4)],_0x5a73c5['event$'][_0x239792(0x192)]((0x0,_0x223d83['filter'])(_0x36fbee=>_0x36fbee[_0x239792(0x130)]===_0x3a5734['CollaborationEvent'][_0x239792(0x3ef)])),this[_0x239792(0x3f3)][_0x239792(0x3eb)][_0x239792(0x192)]((0x0,_0x223d83['filter'])(_0x22a505=>_0x22a505[_0x239792(0xed)]()===_0xd1196f)))))[_0x239792(0x252)](_0x530a61=>{const _0x367084=_0x239792;let {objectId:_0x677f8e}=_0x530a61['data'];_0x677f8e===_0xd1196f?_0x4f2648['initWorkbookPermissionChange'](_0xd1196f):_0x4f2648[_0x367084(0x40a)](_0xd1196f,_0x677f8e);});return;}_0x5a73c5['event$']['pipe']((0x0,_0x223d83[_0x239792(0x260)])(_0x1a2fc9=>_0x1a2fc9[_0x239792(0x130)]===_0x3a5734['CollaborationEvent'][_0x239792(0x136)]),(0x0,_0x223d83[_0x239792(0x1c3)])((0x0,_0x450705[_0x239792(0x298)])(this[_0x239792(0xc4)],_0x5a73c5[_0x239792(0x1eb)]['pipe']((0x0,_0x223d83[_0x239792(0x260)])(_0x2d3fa3=>_0x2d3fa3[_0x239792(0x130)]===_0x3a5734[_0x239792(0xec)][_0x239792(0x3ef)])),this[_0x239792(0x3f3)]['unitDisposed$'][_0x239792(0x192)]((0x0,_0x223d83[_0x239792(0x260)])(_0x5f2ebc=>_0x5f2ebc[_0x239792(0xed)]()===_0xd1196f)))))[_0x239792(0x252)](()=>{const _0x185572=_0x239792;this[_0x185572(0x2b8)](_0xd1196f,_0x1af461)[_0x185572(0x1a4)](_0x102a02=>this[_0x185572(0x40f)][_0x185572(0x2c0)](_0x433f65[_0x185572(0x1b1)])['error'](_0x102a02));}),await this[_0x239792(0x2b8)](_0xd1196f,_0x1af461);}};_0x298028(this[_0x22d873(0x3f3)])[_0x22d873(0x192)]((0x0,_0x223d83['filter'])(({unitId:_0x1a440f})=>!(0x0,_0x433f65[_0x22d873(0x412)])(_0x1a440f)),(0x0,_0x223d83[_0x22d873(0x1c3)])(this[_0x22d873(0xc4)]))[_0x22d873(0x252)](({type:_0x2476ce,unitId:_0x44bd48})=>{const _0x2de8e1=_0x22d873;_0xb6dfbc(_0x44bd48,_0x2476ce)[_0x2de8e1(0x1a4)](_0x514826=>this[_0x2de8e1(0x40f)][_0x2de8e1(0x2c0)](_0x433f65[_0x2de8e1(0x1b1)])[_0x2de8e1(0x187)](_0x514826));});}async[_0x4fa2a5(0x2b8)](_0x3ab792,_0x16eab5){const _0x3f9d5e=_0x4fa2a5;let _0x4ab38e=_0x3d16ab(_0x16eab5);if(_0x4ab38e==null)return;let _0x40fa0d=this[_0x3f9d5e(0x40f)][_0x3f9d5e(0x2c0)](_0x433f65['ObjectPermissionService']);if(_0x40fa0d['supports']({'unitId':_0x3ab792,'objectId':_0x3ab792,'objectType':_0x4ab38e})){await _0x40fa0d['refreshUnit'](_0x3ab792);return;}let _0x5f0621=this[_0x3f9d5e(0x13c)](_0x3ab792,_0x4ab38e);if(!_0x5f0621[_0x3f9d5e(0x208)])return;let _0x222a99=await this[_0x3f9d5e(0x2a2)][_0x3f9d5e(0x137)]({'objectID':_0x3ab792,'objectType':_0x4ab38e,'unitID':_0x3ab792,'actions':_0x5f0621[_0x3f9d5e(0x224)](({action:_0x58cada})=>_0x58cada)});this[_0x3f9d5e(0x18b)]||this[_0x3f9d5e(0x249)][_0x3f9d5e(0x1de)](_0x3ab792)||!this[_0x3f9d5e(0x3f3)][_0x3f9d5e(0x2df)](_0x3ab792)||_0x222a99[_0x3f9d5e(0x1d2)](_0x27c379=>{const _0x7941c1=_0x3f9d5e;let _0x2c1911=_0x27c379[_0x7941c1(0x1d1)],_0x4bb9b2=_0x27c379['allowed'];_0x2c1911!=null&&_0x4bb9b2!=null&&_0x5f0621['filter'](_0x13b3ee=>_0x13b3ee[_0x7941c1(0x1d1)]===_0x2c1911)[_0x7941c1(0x1d2)](_0x357527=>this[_0x7941c1(0x3c9)]['updatePermissionPoint'](_0x357527['id'],_0x4bb9b2));});}[_0x4fa2a5(0x13c)](_0x30e326,_0xcfaff3){const _0x4342e0=_0x4fa2a5;let _0x583037=[];return this[_0x4342e0(0x3c9)][_0x4342e0(0x2a7)]()[_0x4342e0(0x1d2)]((_0x210e94,_0x46e0fb)=>{const _0x6b4f93=_0x4342e0;_0x210e94[_0x6b4f93(0x252)](_0x3cc629=>{const _0xf4eb3d=_0x6b4f93;_0x3cc629[_0xf4eb3d(0x3c6)]===_0xcfaff3&&_0xf4eb3d(0x229)in _0x3cc629&&_0x3cc629[_0xf4eb3d(0x229)]===_0x30e326&&(!(_0xf4eb3d(0x3b5)in _0x3cc629)||_0x3cc629[_0xf4eb3d(0x3b5)]===_0x30e326)&&_0x583037['push']({'id':_0x46e0fb,'action':_0x3cc629['subType']});})[_0x6b4f93(0x3ba)]();}),_0x583037;}['_updateUnitPermissionPoint'](_0x18af0f,_0x2f7ee9,_0x2fdc86,_0x3c3bb8){const _0x4e258d=_0x4fa2a5;this[_0x4e258d(0x3c9)][_0x4e258d(0x2a7)]()[_0x4e258d(0x1d2)]((_0x22a915,_0x47c51d)=>{const _0x435c2c=_0x4e258d;let _0x667087=!0x1;_0x22a915[_0x435c2c(0x252)](_0x346ffe=>{const _0x181d7a=_0x435c2c;_0x667087=_0x346ffe[_0x181d7a(0x3c6)]===_0x2f7ee9&&_0x346ffe[_0x181d7a(0x2da)]===_0x2fdc86&&_0x181d7a(0x229)in _0x346ffe&&_0x346ffe[_0x181d7a(0x229)]===_0x18af0f&&(!('objectId'in _0x346ffe)||_0x346ffe[_0x181d7a(0x3b5)]===_0x18af0f);})[_0x435c2c(0x3ba)](),_0x667087&&this[_0x435c2c(0x3c9)][_0x435c2c(0x28e)](_0x47c51d,_0x3c3bb8);});}};_0x151d68=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x1,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0x3,_0x433f65[_0x4fa2a5(0x3ed)]),_0x374c65(0x4,(0x0,_0x433f65['Inject'])(_0x2b5c76)),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6))],_0x151d68);function _0x298028(_0x1f4429){const _0x84f9ed=_0x4fa2a5;return(0x0,_0x450705[_0x84f9ed(0x298)])(...[_0x433f65[_0x84f9ed(0xa5)]['UNIVER_SHEET'],_0x433f65[_0x84f9ed(0xa5)][_0x84f9ed(0x237)],_0x433f65[_0x84f9ed(0xa5)]['UNIVER_SLIDE'],_0x433f65[_0x84f9ed(0xa5)]['UNIVER_BOARD'],_0x433f65[_0x84f9ed(0xa5)]['UNIVER_BASE']][_0x84f9ed(0x224)](_0x5ee4a3=>_0x1f4429[_0x84f9ed(0x1bb)](_0x5ee4a3)['pipe']((0x0,_0x223d83[_0x84f9ed(0x224)])(_0x3244f2=>({'type':_0x5ee4a3,'unitId':_0x3244f2[_0x84f9ed(0xa4)]['getUnitId']()})))));}function _0x3d16ab(_0x579a97){const _0x56d354=_0x4fa2a5;switch(_0x579a97){case _0x433f65[_0x56d354(0xa5)]['UNIVER_SHEET']:return _0x4ed0d4[_0x56d354(0x23e)][_0x56d354(0x269)];case _0x433f65[_0x56d354(0xa5)]['UNIVER_DOC']:return _0x4ed0d4[_0x56d354(0x23e)]['Document'];case _0x433f65[_0x56d354(0xa5)]['UNIVER_SLIDE']:return _0x4ed0d4[_0x56d354(0x23e)][_0x56d354(0x3a7)];case _0x433f65['UniverInstanceType']['UNIVER_BOARD']:return _0x4ed0d4[_0x56d354(0x23e)][_0x56d354(0x211)];case _0x433f65[_0x56d354(0xa5)]['UNIVER_BASE']:return _0x4ed0d4[_0x56d354(0x23e)][_0x56d354(0x3f7)];default:return;}}let _0x557990=class{constructor(_0x10814c,_0x1d5d08){const _0x54e3dc=_0x4fa2a5;this[_0x54e3dc(0x1a9)]=_0x10814c,this['_httpService']=_0x1d5d08;}async['getUnitOnRev'](_0x43f941,_0x842129){const _0x5ec2b3=_0x4fa2a5;var _0x294723;let {unitID:_0x579180,type:_0xe657d3,revision:_0x172eb0=0x0}=_0x842129,_0x149cf2=this[_0x5ec2b3(0x1dc)]()+'/'+_0xe657d3+_0x5ec2b3(0x394)+_0x579180+_0x5ec2b3(0x29c)+_0x172eb0,_0x4668b9=(await this[_0x5ec2b3(0x33c)][_0x5ec2b3(0x2c0)](_0x149cf2))[_0x5ec2b3(0x280)],_0x5826b1=(_0x294723=_0x4668b9[_0x5ec2b3(0x3a9)])==null?void 0x0:_0x294723['workbook'];if(_0x5826b1){let _0x1c52db=_0x5826b1==null?void 0x0:_0x5826b1[_0x5ec2b3(0x32e)];_0x5826b1[_0x5ec2b3(0x32e)]=_0x3a5734['textEncoder'][_0x5ec2b3(0x382)]((0x0,_0x3a5734['b64DecodeUnicode'])(_0x1c52db)),Object[_0x5ec2b3(0x1a8)](_0x5826b1[_0x5ec2b3(0xe5)])['forEach'](([,_0x54a7a0])=>{const _0x4098de=_0x5ec2b3;let _0x3359b6=_0x54a7a0[_0x4098de(0x32e)];_0x54a7a0[_0x4098de(0x32e)]=_0x3a5734[_0x4098de(0x2bf)][_0x4098de(0x382)]((0x0,_0x3a5734[_0x4098de(0xd9)])(_0x3359b6));});}return _0x4668b9;}async['getSheetBlock'](_0x2d2149,_0xe63271){const _0x382d77=_0x4fa2a5;let {unitID:_0x28a3d0,type:_0x372184,blockID:_0x117a96}=_0xe63271,_0x48fbfa=this[_0x382d77(0x202)]()+'/'+_0x372184+_0x382d77(0x394)+_0x28a3d0+_0x382d77(0x104)+_0x117a96;return(await this[_0x382d77(0x33c)]['get'](_0x48fbfa))[_0x382d77(0x280)];}async[_0x4fa2a5(0x135)](_0x5bf04f,_0x242a9f){const _0x5770ce=_0x4fa2a5;let {unitID:_0x1cf6b7,type:_0x243683,blockID:_0x5b10c9}=_0x242a9f,_0x461f6d=this['_getAPIPrefix']()+_0x5770ce(0x104)+_0x243683+'/unit/'+_0x1cf6b7+_0x5770ce(0x104)+_0x5b10c9;return(await this['_httpService'][_0x5770ce(0x2c0)](_0x461f6d))[_0x5770ce(0x280)];}async['fetchMissingChangesets'](_0x212e49,_0x544af6){const _0x35ee11=_0x4fa2a5;let {unitID:_0x515b2e,type:_0x24e589,from:_0x2501c5,to:_0xd2037b}=_0x544af6,_0x2e84c0=this[_0x35ee11(0x202)]()+'/'+_0x24e589+'/unit/'+_0x515b2e+_0x35ee11(0xd0)+_0x2501c5+'&to='+_0xd2037b;return(await this[_0x35ee11(0x33c)][_0x35ee11(0x2c0)](_0x2e84c0))[_0x35ee11(0x280)];}['getSnapshotAPIPath'](){const _0x495c82=_0x4fa2a5;return this['_configService'][_0x495c82(0xd7)](_0x495c82(0xa7))??this[_0x495c82(0x202)]();}['_getAPIPrefix'](){const _0x1a4a2d=_0x4fa2a5;let _0x4bef65=this[_0x1a4a2d(0x1a9)][_0x1a4a2d(0xd7)](_0x18fed6);return(_0x4bef65==null?void 0x0:_0x4bef65['snapshotServerUrl'])??_0x1a4a2d(0x205);}async[_0x4fa2a5(0x278)](_0x56f845,_0x3140a9){const _0x560b80=_0x4fa2a5;let _0x132e25=_0x560b80(0xa3)+_0x3140a9[_0x560b80(0x3c6)]+_0x560b80(0x394)+_0x3140a9[_0x560b80(0x210)]+_0x560b80(0x1f0);return(await this[_0x560b80(0x33c)]['get'](_0x132e25,{'params':{'resourceId':JSON[_0x560b80(0x3be)](_0x3140a9[_0x560b80(0x349)])}}))[_0x560b80(0x280)];}[_0x4fa2a5(0x306)](){const _0x36ece3=_0x4fa2a5;throw Error(_0x36ece3(0x295));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4fa2a5(0x3e4)](){const _0x514cd1=_0x4fa2a5;throw Error(_0x514cd1(0x295));}[_0x4fa2a5(0x333)](){const _0x48182c=_0x4fa2a5;throw Error(_0x48182c(0x295));}['copyFileMeta'](){const _0x274b25=_0x4fa2a5;throw Error(_0x274b25(0x295));}[_0x4fa2a5(0x356)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0x557990=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x1,(0x0,_0x433f65['Inject'])(_0x544d24[_0x4fa2a5(0x320)]))],_0x557990);let _0x274b20=class extends _0x433f65[_0x4fa2a5(0xcf)]{constructor(_0x31b6b1,_0x516987,_0x2d24b0,_0x3df5d0,_0x28bca1,_0x1b43b2){const _0x27f620=_0x4fa2a5;super(_0x31b6b1,_0x516987,_0x2d24b0,_0x3df5d0),this['_transformService']=_0x28bca1,this[_0x27f620(0x314)]=_0x1b43b2;}[_0x4fa2a5(0x3e5)](_0x23a4be,_0x5a6b62){const _0x1782ce=_0x4fa2a5;let _0x4c6279=this[_0x1782ce(0x22c)](_0x23a4be);if(_0x4c6279)try{let _0x593214=this[_0x1782ce(0x1d6)](_0x4c6279,_0x5a6b62);this[_0x1782ce(0x20d)](_0x23a4be,_0x593214);}catch(_0x385e98){this['_logService']['error']('[CollaborationUndoRedoService]',_0x385e98),this[_0x1782ce(0x279)](_0x23a4be);}let _0x1aecfa=this[_0x1782ce(0x2cd)](_0x23a4be);if(_0x1aecfa)try{let _0xf9e458=this[_0x1782ce(0x1d6)](_0x1aecfa,_0x5a6b62);this[_0x1782ce(0x24d)](_0x23a4be,_0xf9e458);}catch(_0x139d99){this['_logService'][_0x1782ce(0x187)](_0x139d99),this[_0x1782ce(0x40d)](_0x23a4be);}}[_0x4fa2a5(0x279)](_0x42f5ed){let _0x53d353=this['_getUndoStack'](_0x42f5ed);_0x53d353&&(_0x53d353['length']=0x0,this['_updateStatus']());}[_0x4fa2a5(0x40d)](_0x59f914){const _0x1983e9=_0x4fa2a5;let _0x3bd86f=this[_0x1983e9(0x2cd)](_0x59f914);_0x3bd86f&&(_0x3bd86f[_0x1983e9(0x208)]=0x0,this[_0x1983e9(0x2a0)]());}[_0x4fa2a5(0x20d)](_0x32b1c3,_0xa54aae){const _0x2cc760=_0x4fa2a5;this[_0x2cc760(0x29f)][_0x2cc760(0x10c)](_0x32b1c3,_0xa54aae),this[_0x2cc760(0x2a0)]();}['_substituteRedoStack'](_0x2f7e04,_0x2f6fb8){const _0x3cc10d=_0x4fa2a5;this[_0x3cc10d(0x270)][_0x3cc10d(0x10c)](_0x2f7e04,_0x2f6fb8),this[_0x3cc10d(0x2a0)]();}['_transformStack'](_0x12c790,_0x5a479a){const _0x2fcbf1=_0x4fa2a5;let _0x1dee6a=[],_0x219243=_0x5a479a,_0x413ffc=_0x5a479a;for(let _0x49421a=_0x12c790[_0x2fcbf1(0x208)]-0x1;_0x49421a>=0x0;_0x49421a--){let {unitID:_0x2245a2,undoMutations:_0xf59a8f,redoMutations:_0x71adc0}=_0x12c790[_0x49421a],_0x5f41ff=this['_transformService'][_0x2fcbf1(0x2ad)](_0x219243,_0xf59a8f),_0x36b5db=this[_0x2fcbf1(0x324)][_0x2fcbf1(0x2ad)](_0x413ffc,_0x71adc0);if((0x0,_0x3a5734[_0x2fcbf1(0x377)])(_0x5f41ff)||(0x0,_0x3a5734[_0x2fcbf1(0x377)])(_0x36b5db)){this[_0x2fcbf1(0x314)][_0x2fcbf1(0x187)](_0x2fcbf1(0x1fd),'transformStack\x20failed!',_0x5f41ff,_0x36b5db);break;}_0x219243=_0x5f41ff[_0x2fcbf1(0x3ab)],_0x413ffc=_0x36b5db[_0x2fcbf1(0x3ab)],_0x1dee6a['push']({'unitID':_0x2245a2,'undoMutations':_0x5f41ff[_0x2fcbf1(0x259)],'redoMutations':_0x36b5db[_0x2fcbf1(0x259)]});}return _0x1dee6a[_0x2fcbf1(0xf4)]();}};_0x274b20=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x1,_0x433f65['ICommandService']),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x214)]),_0x374c65(0x3,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x4,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0x5,_0x433f65['ILogService'])],_0x274b20);let _0x4489be=class extends _0x433f65[_0x4fa2a5(0xac)]{constructor(_0x3875ad=_0x474e89,_0x713ac2,_0x35a0ec,_0x2b7094){const _0x2dd630=_0x4fa2a5;super(),this[_0x2dd630(0xc6)]=_0x3875ad,this[_0x2dd630(0x314)]=_0x713ac2,this[_0x2dd630(0x40f)]=_0x35a0ec,this[_0x2dd630(0x1a9)]=_0x2b7094;let {..._0x237ba6}=(0x0,_0x433f65['merge'])({},_0x474e89,this[_0x2dd630(0xc6)]);if(!_0x237ba6[_0x2dd630(0x33b)])throw Error(_0x2dd630(0xb3));this[_0x2dd630(0xc6)]=_0x237ba6,this[_0x2dd630(0x1a9)][_0x2dd630(0x40b)](_0x18fed6,_0x237ba6);}[_0x4fa2a5(0x309)](){const _0xf2102e=_0x4fa2a5;this['_configService'][_0xf2102e(0x40b)](_0x433f65[_0xf2102e(0x36d)],this[_0xf2102e(0xc6)][_0xf2102e(0xaa)]??[]),this[_0xf2102e(0xee)](),this[_0xf2102e(0x10d)]();}[_0x4fa2a5(0xee)](){const _0x3e80ae=_0x4fa2a5;var _0x513f35,_0x57cc03;this[_0x3e80ae(0x40f)]['has'](_0x433f65[_0x3e80ae(0x380)])&&this[_0x3e80ae(0x314)][_0x3e80ae(0x187)](_0x3e80ae(0x3ea),_0x3e80ae(0x3a3));let _0x175992=(0x0,_0x433f65[_0x3e80ae(0xe4)])([[_0x433f65[_0x3e80ae(0x380)],{'useClass':_0x274b20}],[_0x2a5cd3,{'useValue':_0x200c62()}],[_0x2b5c76],[_0x54117e],[_0x41b88d],[_0x4aff48],[_0x2a10c7],[_0x49219e],[_0x151d68],[_0x483ee6],[_0x4f0cf4],[_0x1121da,{'useClass':this[_0x3e80ae(0xc6)]['socketService']}],[_0x3a5734['ISnapshotServerService'],{'useClass':_0x557990}],[_0x433f65[_0x3e80ae(0x3ed)],{'useClass':_0x5b1470}],[_0x433f65[_0x3e80ae(0x151)],{'useClass':_0x55876d}],[_0x495c62,{'useClass':_0x3f38f5}],[_0x433f65[_0x3e80ae(0x39f)],{'useClass':_0x1e046a}],[_0x39314f],[_0x1c06e7]],(_0x513f35=this['_config'])==null?void 0x0:_0x513f35['override']);if(!((_0x57cc03=this[_0x3e80ae(0xc6)])!=null&&_0x57cc03[_0x3e80ae(0x10b)])){let _0x119a87=_0x175992['findIndex'](([_0x141ba5])=>_0x141ba5===_0x4aaa76);_0x119a87!==-0x1&&_0x175992[_0x3e80ae(0x27c)](_0x119a87,0x1);}(0x0,_0x433f65[_0x3e80ae(0x399)])(this[_0x3e80ae(0x40f)],_0x175992);}['_initDependencies'](){const _0x440beb=_0x4fa2a5;var _0x5425b2,_0x132acb;if(this['_injector'][_0x440beb(0x2c0)](_0x544d24[_0x440beb(0x320)])[_0x440beb(0x3f1)]({'priority':0x14,'interceptor':(0x0,_0x544d24[_0x440beb(0x16b)])({'maxParallel':0x6})}),!((_0x5425b2=this['_config'])!=null&&_0x5425b2[_0x440beb(0x12c)])){var _0x5544a5;(_0x5544a5=this[_0x440beb(0x40f)]['get'](_0x471235,_0x433f65[_0x440beb(0x2e4)][_0x440beb(0x1aa)]))==null||_0x5544a5[_0x440beb(0x246)]();}(_0x132acb=this['_config'])!=null&&_0x132acb['enableAuthServer']&&(0x0,_0x433f65[_0x440beb(0x2b1)])(this[_0x440beb(0x40f)],[[_0x4aff48]]),(0x0,_0x433f65[_0x440beb(0x2b1)])(this['_injector'],[[_0x2a10c7],[_0x39314f],[_0x151d68]]);}};_0x5aacdf(_0x4489be,_0x4fa2a5(0x3ec),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),_0x5aacdf(_0x4489be,_0x4fa2a5(0x2c3),_0x434948),_0x5aacdf(_0x4489be,_0x4fa2a5(0x401),_0x11be1f),_0x4489be=_0x13514e([(0x0,_0x433f65['DependentOn'])(_0x224431[_0x4fa2a5(0x15f)],_0x544d24[_0x4fa2a5(0x3e8)],_0x3a5734[_0x4fa2a5(0x3ca)]),_0x374c65(0x1,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0x2,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x3,_0x433f65[_0x4fa2a5(0x2aa)])],_0x4489be),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x1ef),{'enumerable':!0x0,'get':function(){return _0x5b1470;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x34d),{'enumerable':!0x0,'get':function(){return _0x42f6fe;}}),Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x328),{'enumerable':!0x0,'get':function(){return _0x16395e;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x15b),{'enumerable':!0x0,'get':function(){return _0x53717a;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x15e),{'enumerable':!0x0,'get':function(){return _0x1dc09d;}}),_0x25ed14[_0x4fa2a5(0x162)]=_0x18fed6,Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x293),{'enumerable':!0x0,'get':function(){return _0x3f38f5;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x240),{'enumerable':!0x0,'get':function(){return _0x39314f;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x17a),{'enumerable':!0x0,'get':function(){return _0x18d3ff;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x291),{'enumerable':!0x0,'get':function(){return _0x55876d;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x45e291;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x32a),{'enumerable':!0x0,'get':function(){return _0x2b5c76;}}),Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x3a1),{'enumerable':!0x0,'get':function(){return _0x28996e;}}),_0x25ed14[_0x4fa2a5(0x1f5)]=_0x34aefb,_0x25ed14[_0x4fa2a5(0x203)]=_0x5eefb9,_0x25ed14[_0x4fa2a5(0x3d8)]=_0x483ee6,Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x300),{'enumerable':!0x0,'get':function(){return _0x274b20;}}),_0x25ed14['CommentService']=_0x49219e,Object[_0x4fa2a5(0x3b2)](_0x25ed14,'ConflictState',{'enumerable':!0x0,'get':function(){return _0x7d595b;}}),_0x25ed14[_0x4fa2a5(0x121)]=_0x4fa2a5(0x3e3),_0x25ed14[_0x4fa2a5(0x1ea)]=_0x4fa2a5(0x37e),_0x25ed14[_0x4fa2a5(0x353)]=_0x4fa2a5(0x417),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0xe9),{'enumerable':!0x0,'get':function(){return _0x4f0cf4;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x243),{'enumerable':!0x0,'get':function(){return _0x31d725;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x11f),{'enumerable':!0x0,'get':function(){return _0x1ba45e;}}),_0x25ed14['HEARTBEAT_INTERVAL_KEY']='HEARTBEAT_INTERVAL',_0x25ed14[_0x4fa2a5(0x185)]=_0x4fa2a5(0x107),_0x25ed14['IAttachmentIoService']=_0x495c62,_0x25ed14[_0x4fa2a5(0x3c8)]=_0x2a5cd3,_0x25ed14[_0x4fa2a5(0x3f6)]=_0x1121da,_0x25ed14[_0x4fa2a5(0x3fe)]=_0x471235,_0x25ed14[_0x4fa2a5(0x1ad)]=_0x43e589,_0x25ed14[_0x4fa2a5(0x364)]=_0x4aaa76,_0x25ed14['LOCAL_CACHE_INTERVAL']=0x3e8,_0x25ed14['LOCAL_CACHE_INTERVAL_KEY']=_0x4fa2a5(0x358),Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x1b4),{'enumerable':!0x0,'get':function(){return _0x54117e;}}),Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x387),{'enumerable':!0x0,'get':function(){return _0x1e046a;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x1ac),{'enumerable':!0x0,'get':function(){return _0x5a97ff;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0xe7),{'enumerable':!0x0,'get':function(){return _0x25572c;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x354),{'enumerable':!0x0,'get':function(){return _0x2845dd;}}),_0x25ed14['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x4fa2a5(0xc5),_0x25ed14[_0x4fa2a5(0x235)]='RETRY_CONNECTING_MAX_COUNT',_0x25ed14['SessionStatus']=_0x151b7d,Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x2c8),{'enumerable':!0x0,'get':function(){return _0x89772b;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x11e),{'enumerable':!0x0,'get':function(){return _0x41b88d;}}),Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x160),{'enumerable':!0x0,'get':function(){return _0x1b8073;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0xa9),{'enumerable':!0x0,'get':function(){return _0x557990;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,'SyncedState',{'enumerable':!0x0,'get':function(){return _0x4f3cea;}}),_0x25ed14[_0x4fa2a5(0xe1)]=_0x1af2a5,Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x232),{'enumerable':!0x0,'get':function(){return _0x4489be;}}),_0x25ed14['createUniverCollaborationAdapter']=_0x200c62,_0x25ed14[_0x4fa2a5(0x1c0)]=_0x18ff47,_0x25ed14[_0x4fa2a5(0x2ab)]=_0x12d23,_0x25ed14[_0x4fa2a5(0x2f1)]=_0xe30654;}));function _0x1d68(){const _0x3abf33=['backupOfflineData','CHANGESET_REJ','number','UnitEmbedded','COMPRESS_MUTATION_SEND','isTransformMutationsWithChangesetFailure','collabSubmitChangesetUrl','getRoom','WorkbookEditablePermission','wrong\x20sbox\x20length','maxSize','_identity','/universer-api/uniscript','_doCreateSocket','IUndoRedoService','getCollabEntity','encode','constructor','_handler','_commentService','changesets','MentionIoHttpService','_decreaseWaiting','collaboratorID','_docStateChangeManagerService','memberID','commit','socket\x20close','_transformIMECache','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','CommandType','awaitingChangeset','IDLE','_commentUpdate$','/unit/','withAAD','_compressMutationService','getImage','subarray','registerDependencies','_schedule','IUniverInstanceService','telemetry\x20info\x20is\x20not\x20initialized','_members$','\x20of\x20length\x20','IMentionIOService','hasOwnProperty','CollaborationSocketService','_sender','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','baseRev','9dUgQEE','Slide','attachment','snapshot','_handlerCallback','c1Prime','_toggleOffline','onCommentUpdate','delete','_startTelemetryCollaborationNewChangeset','_replaceFileID','take','defineProperty','getCurrentUser','dispose','objectId','session.room-permission-denied','cfgEnableObjInherit','UserManagerService','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','unsubscribe','rxjs','subject','_entityInit$','stringify','revision','_singleActiveUnitService','_showConflictProcessingNotification','save\x20fail\x20reason\x20is\x20','getUnitType','append','conflict','type','responseType','ICollaborationClientAdapterService','_permissionService','UniverCollaborationPlugin','_sessionStatus$','loadPdf','replace','includes','RETRY_CONNECTING_MAX_COUNT','getCollabEntity$','_status$','CONFLICT_CACHE_CLEAR_FAILED','accept','_getCtorByUniverInstanceType','_joinRoom','_updateState','firstValueFrom','CollaborationUIEventService','commentUpdateEvent','liveShareOperation','awaiting_with_pending','_networkConditionService','_getUploadFileURL','_isPermissionRej','_exhaustRemoteChangesetQueue','resend','indexOf','updateCollaborator','ws://127.0.0.1:8000/universer-api/comb/connect','saveSheetBlock','transformUndoRedo','retryCount','JOIN_ROOM_FULL','UniverNetworkPlugin','_onRecvEvent','[UniverCollaborationClientPlugin]','unitDisposed$','pluginName','IAuthzIoService','getValue','SHOULD_CLOSE_CONN','OTHER_CLIENT_EDITING','registerHTTPInterceptor','href','_univerInstanceService','now','unitInfo$','ICollaborationSocketService','Base','AddSlidePageMutation','MSG_FOR_ERROR','[PendingState]:\x20received\x20rejection.','mapDocumentTypeToUniverInstanceType','_resendWithTimeout','getUploadOptions','ILocalCacheService','UNIVER_PDF','UniverSheets','version','send','online$','session.join-failed','localCacheService','UNISCRIPT_RUN','appendMutation','prototype','OTHER_CLIENTS_EDITING','refreshPermission','setConfig','requireSession','_clearRedo','getTypeOfUnitDisposed$','_injector','complete','duration','isInternalEditorID','disposeWithMe','CONFLICT_PROCESSING','_change$','fromCollab','/universer-api/user/session-ticket','[CollaborationSessionService]','session.room-not-exists','getAttachmentUrl','key','reduce','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_throwTelemetryCollaborationNewChangeset','/universer-api/snapshot/','unit','UniverInstanceType','toggleOnline','SNAPSHOT_URL_KEY','retryConnectingInterval','SnapshotServerOverHTTPService','objectPermissionTypes','_hasSessionsForEndpoint','Plugin','createIdentifier','_onConflict','_tryReconnect','_sheetTransformSelectionsService','onRemoteAck','_createInitialState','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','UNIVER_SHEET','_incrementRevisionNumber','code','generateRandomId','ISnapshotServerService','sessionStatus','onPrepareTransformSelections','members','RevisionService','candidateSocket','UniverDrawing','csShouldRetryEvent','_updateLocalCache','_unlockTransition','addImageSourceCache','_acknowledgeAwaiting','dispose$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_config','requestParams','updatePermissionObjEvent','LEAVE','/universer-api/authz','range','crypto','UNIVER_SLIDE','USERS_ENTER','LocalUndoRedoService','/fetchmissing?from=','9EXhpDO','LIVESHARE_OPERATION','[SyncedState]:\x20received\x20rejection.','shareReplay','length=','univer-pro.collaboration-client.network-condition.service','getConfig','/-/object/-/batch_allowed','b64DecodeUnicode','_state','_userManagerService','nonceLength','onRemoteRetry','Uint8Array','@univerjs-pro/slides','_createInitialStateImpl','UnitStatus','__Key__','isTransformMutationsWithChangesetSuccess','mergeOverrideWithDependencies','sheets','batchAllowed','PdfCollaborationEntity','_clearRetryConnectingTimer','DataLoaderService','onMissingChangesets','objectType','CollaborationEvent','getUnitId','_registerDependencies','_waitForHeartbeatResponse','loadSheet','UniverProCollaborationClient','[OfflineState]:\x20received\x20rejection.','onload','reverse','rev','incrementRevOfUnit','MoveSlidePageMutation','csAckEvent','changeset','onTransformSelections','ONLINE','_onUserLeave','getActiveSheet','_getLoginPath','_snapshotService','liveShareNewHost','find','UniverProtocol','socket$','/block/','_startCollaboration','_changesetSessionId','HEARTBEAT_TIMEOUT','LIVESHARE_NEW_HOST','SUCCUSS','unitType','enableSingleActiveInstanceLock','set','_initDependencies','_sendingTimer','_removeRoom','subUnitId','parseProtocolChangeset','getGlobalObject','capture','_createSocket','default','onTransformRemoteChangesetByStateCache','onMutationExecutedForCollab','getImageSourceCache','_collaborationSessionService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','endpointKey','cipher\x20output\x20not\x20supported','createInstance','SheetTransformSelectionsService','FetchingMissState','_snapshotServerService','DEFAULT_COLLAB_WEB_SOCKET_URL','_stopTelemetryCollaborationNewChangeset','/allowed','error$','hostname','loadSlide','@univerjs-pro/license','COMMENT_UPDATE','@univerjs/protocol','_clearHeartbeatTimer','method','enableOfflineEditing','socketMessageSubscription','decrypt','saveAttachment','eventID','?size=','saveImage','_waitCount','_adapter','getDeserializedSheetBlock','UPDATE_PERMISSION_OBJ','allowed','sendChangesetTimeout','every','endpoint','InsertSheetMutation','_getUnitPermissionPoints','FAIL','withCredentials','_event$','resolve','_revisionService','transformChangesets','startsWith','_onRemoteRejected','CLOSE_ROOM','UNIVER_BASE','docStateChange$','update','setWaitCount','_onConnectionOpen','HEARTBEAT','_onCombEvent','newCsEvent','joinEvent','_scheduleCompleteTimestamp','_initRequestHeader','IImageIoService','JSONX','isTransformChangesetsSuccess',',\x20got\x20','Subject','infoRsp','MUTATION','FileSource','selections','[FetchMissState]','BaseCollaborationEntity','ObjectPermissionService','operators','BoardCollaborationEntity','UniverLicensePlugin','SlideCollaborationEntity','userID','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','next','LIVESHARE_FETCH_OPERATIONS','confirm','@univerjs/telemetry','RemoveSlidePageMutation','values','UNIVER_BOARD','rxjs/operators','ThresholdInterceptorFactory','failed\x20to\x20apply\x20missed\x20changesets!','ICommandService','delay','_disableEditing','reject','endsWith','toString','file','_syncEditingCollabCursor','_instanceService','amd','loadUnitOfRevision','Inject','deleteCollaborator','CollaborationEntity','ImageSourceType','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','close','headers','UnitAction','&assign=','createCollaborator','_fetchMissChangesets','JOIN_ROOM_FAILED','RichTextEditingMutation','HEARTBEAT_TIMEOUT_KEY','_initUnitPermissionChange','error','onMissedChangesetFetched','_getSendChangesetTimeout','tagLength','_disposed','retryConnectingTimer','onRemoteRej','buffer','downloadEndpointUrl','getRandomValues','_isEchoedAwaitingChangeset','pipe','getInterceptPoints','_onJoinRoomEvent','collaborators','AAD','message$','COMPRESS_MUTATION_APPLY','sessionStatus$','_executeRemoteChangeset','onTransformState','_clearCollaborationTimeoutTimer','&source=','PERMISSION_REJ','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','charCodeAt','[PendingState]:\x20received\x20acknowledgement.','create','_listenToNetworkCondition','catch','bytesLength','isCompositionEnd','univer-pro.collaboration-client-socket-service','entries','_configService','OPTIONAL','fetchMiss','OfflineState','INetworkConditionService','ciphertext\x20must\x20be\x20multiple\x20of\x2016','onTransformRemoteChangesetByIMECache','collaboration-client.config','ILogService','slice','_createHandler','MemberService','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','origin','_lockTransition','@univerjs-pro/collaboration','textRanges','getTypeOfUnitAdded$','aes:\x20bad\x20decrypt','_collaborationPaused','state','468080jxhwNn','deserializeToCombResponse','trim','members$','takeUntil','@univerjs-pro/collaboration-client','JOIN_ROOM_PERMISSION_DENIED','_onFetchMissResult','_replayCachedMutations','_acknowledgedAwaitingRevision','concatMap','_type','getOwnPropertyDescriptor','NO_OTHER_CLIENTS_EDITING','synced','Error\x20on\x20receiving\x20event','ERROR_IMAGE','FETCH_MISS','action','forEach','localUnitId','_getSocketChannel','?url=','_transformStack','PERSON','_clearTimeoutTimer','USERS_LEAVE','CompressMutationService','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','getSnapshotAPIPath','size','has','fetchMissingChangesets','collaboration_new_changeset','FETCH_MISSING','_sessionChannels','_transformRemoteChangesetByIMECache','_toggleOnline','sequenceExecute','_showConflictNotification','missingChangesets','status','_getConfig','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','event$','joinRsp','status$','_commandService','AuthzIoHttpService','/resources','_initCloseConn','reqId','symbol','RECV','CollaborationStatus','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','isArray','BehaviorSubject','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','getDrawingImageAllowSize','DocStateChangeManagerService','[CollaborationUndoRedoService]','readyForCollab','encrypt','parse','post','_getAPIPrefix','CollaborationUIEventId','HTTPRequest','/universer-api/snapshot','params','INGEST','length','_pendingSessions','cmd','CHANGESET_SHOULD_RETRY','[CollaborationEntity]','_substituteUndoStack','_roomMembers','_socketMessageSubscription','unitID','Board','ERROR_IMAGE_TYPE','_getAPIPrefixPath','IContextService','HELLO','editingUnit','_checkMissing','_unitInfo$','FileId','UniverProCollaboration','add','min','unitLoaded$','[CollaborationSession]','createSocket','_unitLoaded$','object','_transitionLocked','[OfflineState]:\x20received\x20acknowledgement.','map','/collaborator','socketReady','push','toDisposable','unitId','title','Univer','_getUndoStack','SUBMIT_CHANGESET','JOIN','_resendTimeout','_shouldReportTelemetry','routeKey','UniverCollaborationClientPlugin','offline','not_collab','RETRY_CONNECTING_MAX_COUNT_KEY','_prepareTransformSelections','UNIVER_DOC','DisposableCollection','enableCollaboration','_prepareConflictRecovery','debug','pending','Tools','UnitObject','BYTES_PER_ELEMENT','CollaborationController','stopTime','sort','DocCollaborationEntity','collaMsg','session.room-full','disableLocalCache','commentUpdate$','fetch_missing','_closedUnits','onRemoteChangeset','RxDisposable','target','_substituteRedoStack','upload','NEW_CHANGESETS','getMemberID','getMember','subscribe','awaiting','_onOffline','Module','onSyncEditingCollabCursor','uuidv4','_eventService','m2Prime','_onUserJoin','UniverProLicense','_scheduleCollaborationTimeoutTimer','_transformStateCache','SheetsSelectionsService','sendHeartbeatTimer','filter','162540ZWNvGP','varSizeNonce','toLocal','addHandlerCallback','string','listCollaborators','_localeService','Edit','Workbook','localeService','_acknowledgeAwaitingIfReady','IPermissionService','waitForRoom$','parseChangesetToProtocol','_undoRedoService','_redoStacks','_imageSourceCache','byteOffset','_queuedRemoteChangesets','Injector','string\x20expected','_state$','session','getResourcesRequest','_clearUndo','CmdRspCode','_telemetryInfo','splice','UniverDocs','_resolveSessionIdentity','connection\x20error','body','unknown','1311633zRFGMv','\x20in\x20_schedule.','closeSession','fetchThroughInterceptors','clearUnit','getAllMembers','_onRemoteRetry','SOCKET_FAILED','resolveWithBasePath','getTime','_getCurrentRevision','src','updatePermissionPoint','exports','_sendHeartbeat','CollaborationImageIoService','_transformAndApplyRemoteChangeset','CollaborationAttachmentIoService','decorate','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','\x20-\x20','_collabSessionService','merge','toggleOffline','byteLength','_init','/rev/','ImageUploadStatusType','SetSelectionsOperation','_undoStacks','_updateStatus','SnapshotService','_authzIoService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','objectActions','LIVESHARE_TERMINATE','[DataLoaderService]','getAllPermissionPoint','_changesetReqId','unitId\x20is\x20not\x20found','IConfigService','getLocalCacheKey','onTransformIME','transformMutationsWithChangeset','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','@univerjs/docs','setShowComponents','touchDependencies','\x20to\x20','UUID','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','some','OFFLINE','/new_changes','_refreshUnitPermission','_tryEnsureSocket','_initMergeInterceptor','@univerjs/core','SOCKET_FAILED_RETRY','executeCommand','c2Prime','textEncoder','get','_handleRemoteChangesets','_clearScheduledTask','packageName','interceptor','UPDATE_CURSOR','editing\x20status\x20changed\x20to','data','SheetCollaborationEntity','_HTTPService','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','2601410KJEeIf','ITransformService','_getRedoStack','putCollaborators','emitEvent','PERMISSION_DENIED','_getDownloadEndpointURL','Rectangle','DEFAULT_FILE_NAME','sid','mutations','focused$','_collaborationTimeoutTimer','list','onSendChangeset','subType','columnGroups','_applyRemoteChangeset','DRAWING_IMAGE_ALLOW_IMAGE_LIST','uploadFileServerUrl','getUnit','put','_pendingMutations','_upload','removeMember','Quantity','call','PENDING','objectID','_telemetryService','collabWebSocketUrl','pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','getWorkbookSelections','PSEUDO_FETCH_MISSING_RESULT','loadDoc','People','init','shouldCloseConn','serializeCombRequest','AWAITING_WITH_PENDING','x-univer-host','initWorkbookPermissionChange','getFocusedUnit','_getSignURL','_transformRemoteChangesetByStateCache','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','clear','startTime','onlyLocal','_remoteChangesetQueue','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_awaitingChangeset','open$','CollaborativeUndoRedoService','authzUrl','\x22bytesLength\x22\x20expected\x20<=\x2065536,\x20got\x20','_updateUnitPermissionPoint','_localCacheService','nonce','saveSnapshot','output','/-/object/list','onStarting','actions','isPermissionRej','_onRemoteACK','{fileID}','_members','deepClone','loginUrlKey','_transformSelections','loadUnit','_socket','_logService','_cfgEnableObjInherit','/object/','assign','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','ERROR_EXCEED_SIZE','updateMember','_transformUndoredo','_maxTotalRetryTimeout','univer-pro.collaboration-client.single-active-unit-service','location','_memberService','HTTPService','88562OYHEqS','change$','pauseCollaboration','_transformService','Disposable','ErrorCode','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','AwaitingWithPendingState','/universer-api/stream/file/upload','CollaborationSessionService','Optional','_socketChannels','JOINING','originalMeta','text-x','getUnitStatus$','_emitMembers','reconnect','saveChangeset','entityInit$','_submitChangeset','onLocalMutation','ReplaySubject','/universer-api/file/{fileID}/sign-url','getSheetId','_entities','socketService','_httpService','close$','from','resolveUnit','state$','name','_sessions','asObservable','timeoutTimer','url','session.room-cnt-exceeds','_collaborationUIEventService','roles','resourceIDs','objects','_roomCreated$','@univerjs/network','AwaitingState','CONFLICT','1378056ngeUVI','@univerjs/drawing','encodeURIComponent','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','DEFAULT_WS_SESSION_TICKET_URL','PendingState','[PendingState]:\x20unhandled\x20univer\x20type:\x20','getLatestCsReqIdBySid','compose','LOCAL_CACHE_INTERVAL','_resendTimer','CombCmd','_onMessage','_createSession','_onLocalMutation','disablePadding','MentionType','SUBMIT_CHANGESET_TIMEOUT','/universer-api/comb','signUrlServerUrl','/universer-api/oidc/authpage','ISingleActiveUnitService','POST','LocaleService','4543016AMkCkt','_onRemoteChangeset','rollback','function','_rescheduleHeartbeat','getCfgEnableObjInherit','OBJECT_PERMISSION_CONFIG_KEY','leaveEvent','getCurrentRevOfUnit','CHANGESET_ACK','EnsureSlideMasterPageMutation'];_0x1d68=function(){return _0x3abf33;};return _0x1d68();}
|
|
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();}
|