@univerjs-pro/collaboration-client 1.0.4 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/config/config.d.ts +19 -0
- package/lib/types/controllers/collaboration/changeset-submitter.d.ts +132 -0
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +28 -1
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +175 -43
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +7 -0
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +7 -3
- package/lib/types/facade/f-collaboration.d.ts +20 -4
- package/lib/types/facade/f-event.d.ts +87 -2
- package/lib/types/index.d.ts +5 -3
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +4 -8
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +4 -4
- package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +9 -0
- package/lib/types/services/data-loader/data-loader.service.d.ts +9 -2
- package/lib/types/services/local-cache/local-cache.service.d.ts +11 -6
- package/lib/types/services/socket/collaboration-socket.service.d.ts +10 -2
- package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +5 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x41d6(_0x2b215a,_0x4b7fb4){_0x2b215a=_0x2b215a-0x161;const _0x27bb4a=_0x27bb();let _0x41d686=_0x27bb4a[_0x2b215a];return _0x41d686;}(function(_0x183c3c,_0x37727b){const _0xec197c=_0x41d6,_0x45ffb5=_0x183c3c();while(!![]){try{const _0x377a20=parseInt(_0xec197c(0x496))/0x1+-parseInt(_0xec197c(0x24c))/0x2*(parseInt(_0xec197c(0x331))/0x3)+parseInt(_0xec197c(0x301))/0x4+-parseInt(_0xec197c(0x472))/0x5*(-parseInt(_0xec197c(0x427))/0x6)+parseInt(_0xec197c(0x212))/0x7*(parseInt(_0xec197c(0x479))/0x8)+-parseInt(_0xec197c(0x3d2))/0x9*(-parseInt(_0xec197c(0x2fd))/0xa)+-parseInt(_0xec197c(0x374))/0xb*(-parseInt(_0xec197c(0x45a))/0xc);if(_0x377a20===_0x37727b)break;else _0x45ffb5['push'](_0x45ffb5['shift']());}catch(_0x41085a){_0x45ffb5['push'](_0x45ffb5['shift']());}}}(_0x27bb,0xdaefe),function(_0x421e6b,_0xd3165){const _0x5620c6=_0x41d6;typeof exports=='object'&&typeof module<'u'?_0xd3165(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define=='function'&&define['amd']?define([_0x5620c6(0x3bc),'@univerjs-pro/collaboration',_0x5620c6(0x450),'@univerjs/docs',_0x5620c6(0x194),_0x5620c6(0x435),'@univerjs/protocol',_0x5620c6(0x430),_0x5620c6(0x2aa),_0x5620c6(0x3be),_0x5620c6(0x3c0),_0x5620c6(0x43a),_0x5620c6(0x291)],_0xd3165):(_0x421e6b=typeof globalThis<'u'?globalThis:_0x421e6b||self,_0xd3165(_0x421e6b[_0x5620c6(0x407)]={},_0x421e6b[_0x5620c6(0x42c)],_0x421e6b['UniverCore'],_0x421e6b[_0x5620c6(0x495)],_0x421e6b['UniverSheets'],_0x421e6b[_0x5620c6(0x435)],_0x421e6b['UniverProtocol'],_0x421e6b[_0x5620c6(0x39b)],_0x421e6b['rxjs']['operators'],_0x421e6b[_0x5620c6(0x209)],_0x421e6b['UniverNetwork'],_0x421e6b['UniverProLicense'],_0x421e6b['UniverDrawing']));}(this,function(_0x1d5fa1,_0x18ba1c,_0x78cf9f,_0x14832f,_0x1c5171,_0x42b37f,_0x1521ba,_0x475705,_0x30b86b,_0x5773b7,_0x4de411,_0x25a327,_0x3b803d){const _0x4ca2ee=_0x41d6;Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,Symbol['toStringTag'],{'value':_0x4ca2ee(0x48e)});let _0x16372d=_0x4ca2ee(0x27b),_0x3e7167={};function _0x243140(_0x3770a2){const _0x50ba54=_0x4ca2ee;return JSON[_0x50ba54(0x2cf)](_0x3770a2)[_0x50ba54(0x452)];}function _0x1a758a(_0x475e37){'@babel/helpers - typeof';const _0x4c6554=_0x4ca2ee;return _0x1a758a=typeof Symbol==_0x4c6554(0x4bc)&&typeof Symbol[_0x4c6554(0x18e)]==_0x4c6554(0x35d)?function(_0x2b2263){return typeof _0x2b2263;}:function(_0x31c368){const _0x320c97=_0x4c6554;return _0x31c368&&typeof Symbol==_0x320c97(0x4bc)&&_0x31c368[_0x320c97(0x247)]===Symbol&&_0x31c368!==Symbol['prototype']?'symbol':typeof _0x31c368;},_0x1a758a(_0x475e37);}function _0x24113a(_0x188c14,_0x34bb11){const _0x1e53d2=_0x4ca2ee;if(_0x1a758a(_0x188c14)!=_0x1e53d2(0x369)||!_0x188c14)return _0x188c14;var _0x3e95b0=_0x188c14[Symbol['toPrimitive']];if(_0x3e95b0!==void 0x0){var _0x5ad2c7=_0x3e95b0[_0x1e53d2(0x3da)](_0x188c14,_0x34bb11||_0x1e53d2(0x1b0));if(_0x1a758a(_0x5ad2c7)!=_0x1e53d2(0x369))return _0x5ad2c7;throw TypeError(_0x1e53d2(0x22a));}return(_0x34bb11===_0x1e53d2(0x4b5)?String:Number)(_0x188c14);}function _0x4d960e(_0x4cead5){const _0x109078=_0x4ca2ee;var _0x1ffc07=_0x24113a(_0x4cead5,_0x109078(0x4b5));return _0x1a758a(_0x1ffc07)==_0x109078(0x35d)?_0x1ffc07:_0x1ffc07+'';}function _0x4f9d46(_0x578b71,_0xa5373b,_0x5843ad){const _0x458903=_0x4ca2ee;return(_0xa5373b=_0x4d960e(_0xa5373b))in _0x578b71?Object[_0x458903(0x4d4)](_0x578b71,_0xa5373b,{'value':_0x5843ad,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x578b71[_0xa5373b]=_0x5843ad,_0x578b71;}let _0x6788f8=function(_0x583951){const _0x35674f=_0x4ca2ee;return _0x583951[_0x35674f(0x33c)]=_0x35674f(0x33c),_0x583951[_0x35674f(0x2ae)]=_0x35674f(0x2ae),_0x583951[_0x35674f(0x1d4)]='CONFLICT_PROCESSING',_0x583951[_0x35674f(0x27f)]='CONFLICT_CACHE_CLEAR_FAILED',_0x583951[_0x35674f(0x21a)]=_0x35674f(0x21a),_0x583951['CLOSE_ROOM']='CLOSE_ROOM',_0x583951['JOIN_ROOM_FAILED']='JOIN_ROOM_FAILED',_0x583951['SOCKET_FAILED_RETRY']=_0x35674f(0x484),_0x583951['SOCKET_FAILED']=_0x35674f(0x210),_0x583951[_0x35674f(0x3bf)]=_0x35674f(0x3bf),_0x583951;}({});var _0x5604f6=class{constructor(){const _0x378580=_0x4ca2ee;_0x4f9d46(this,_0x378580(0x2fc),new _0x42b37f[(_0x378580(0x20c))]()),_0x4f9d46(this,_0x378580(0x43b),this['_event$']['asObservable']());}[_0x4ca2ee(0x17d)](_0x195b68){this['_event$']['next'](_0x195b68);}},_0x2ee3ef=class{constructor(){const _0x29a03a=_0x4ca2ee;_0x4f9d46(this,_0x29a03a(0x47b),new _0x42b37f[(_0x29a03a(0x20c))]()),_0x4f9d46(this,_0x29a03a(0x497),this[_0x29a03a(0x47b)]['asObservable']());}[_0x4ca2ee(0x281)](_0x295987){this['_commentUpdate$']['next'](_0x295987);}};function _0x51b612(_0x1d4de6,_0x1d5c93){return function(_0x389903,_0x16f759){_0x1d5c93(_0x389903,_0x16f759,_0x1d4de6);};}function _0x182061(_0x17ea96,_0xb5d695,_0x144cf9,_0x262c53){const _0x5cbc43=_0x4ca2ee;var _0x2c1ff8=arguments['length'],_0x56d31b=_0x2c1ff8<0x3?_0xb5d695:_0x262c53===null?_0x262c53=Object[_0x5cbc43(0x47f)](_0xb5d695,_0x144cf9):_0x262c53,_0x2e7956;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x5cbc43(0x4bc))_0x56d31b=Reflect['decorate'](_0x17ea96,_0xb5d695,_0x144cf9,_0x262c53);else{for(var _0x4345f0=_0x17ea96[_0x5cbc43(0x452)]-0x1;_0x4345f0>=0x0;_0x4345f0--)(_0x2e7956=_0x17ea96[_0x4345f0])&&(_0x56d31b=(_0x2c1ff8<0x3?_0x2e7956(_0x56d31b):_0x2c1ff8>0x3?_0x2e7956(_0xb5d695,_0x144cf9,_0x56d31b):_0x2e7956(_0xb5d695,_0x144cf9))||_0x56d31b);}return _0x2c1ff8>0x3&&_0x56d31b&&Object[_0x5cbc43(0x4d4)](_0xb5d695,_0x144cf9,_0x56d31b),_0x56d31b;}let _0x232b7e=class extends _0x78cf9f[_0x4ca2ee(0x3b4)]{constructor(_0x1e0f78){const _0x547df3=_0x4ca2ee;super(),this[_0x547df3(0x3fa)]=_0x1e0f78,_0x4f9d46(this,_0x547df3(0x1c3),new Map()),_0x4f9d46(this,'_roomCreated$',new _0x42b37f[(_0x547df3(0x20c))]()),this[_0x547df3(0x2f7)]((0x0,_0x42b37f['merge'])(this['_univerInstanceService'][_0x547df3(0x425)](_0x78cf9f[_0x547df3(0x4a8)][_0x547df3(0x220)])['pipe']((0x0,_0x30b86b[_0x547df3(0x2b8)])(_0x4e285b=>_0x4e285b['getUnitId']())),this[_0x547df3(0x3fa)][_0x547df3(0x425)](_0x78cf9f[_0x547df3(0x4a8)][_0x547df3(0x40b)])[_0x547df3(0x28c)]((0x0,_0x30b86b[_0x547df3(0x2b8)])(_0x165c4d=>_0x165c4d[_0x547df3(0x3f8)]())),this[_0x547df3(0x3fa)][_0x547df3(0x425)](_0x78cf9f[_0x547df3(0x4a8)]['UNIVER_BOARD'])[_0x547df3(0x28c)]((0x0,_0x30b86b['map'])(_0x75f8e6=>_0x75f8e6[_0x547df3(0x3f8)]())),this[_0x547df3(0x3fa)][_0x547df3(0x425)](_0x78cf9f[_0x547df3(0x4a8)][_0x547df3(0x2ed)])['pipe']((0x0,_0x30b86b['map'])(_0x41b6df=>_0x41b6df[_0x547df3(0x3f8)]())))['subscribe'](_0x1b3911=>this[_0x547df3(0x2ea)](_0x1b3911)));}[_0x4ca2ee(0x3d0)](_0x36dd39){const _0x1b831a=_0x4ca2ee;return this[_0x1b831a(0x1c3)][_0x1b831a(0x32f)](_0x36dd39)?(0x0,_0x42b37f['of'])(this[_0x1b831a(0x1c3)][_0x1b831a(0x42a)](_0x36dd39)):this[_0x1b831a(0x232)]['pipe']((0x0,_0x30b86b[_0x1b831a(0x2b8)])(_0x2255a4=>{const _0xb4ac9=_0x1b831a;if(_0x2255a4===_0x36dd39)return this[_0xb4ac9(0x1c3)][_0xb4ac9(0x42a)](_0x2255a4);}));}[_0x4ca2ee(0x246)](_0x2a9fe3,_0x4105e0){const _0x18de48=_0x4ca2ee;let _0xe567c6=this[_0x18de48(0x1c3)][_0x18de48(0x42a)](_0x2a9fe3);_0xe567c6||(_0xe567c6=new _0x2b7a6d(),this[_0x18de48(0x1c3)][_0x18de48(0x3e8)](_0x2a9fe3,_0xe567c6),this[_0x18de48(0x232)][_0x18de48(0x1b5)](_0x2a9fe3)),_0xe567c6[_0x18de48(0x246)](_0x4105e0);}[_0x4ca2ee(0x3d1)](_0x4152fa,_0x16ac35){const _0x58af22=_0x4ca2ee;let _0x1baf5=this['_roomMembers'][_0x58af22(0x42a)](_0x4152fa);_0x1baf5&&_0x1baf5[_0x58af22(0x3d1)](_0x16ac35);}[_0x4ca2ee(0x251)](_0x44dddc){const _0x5f1909=_0x4ca2ee;return this['_roomMembers'][_0x5f1909(0x42a)](_0x44dddc);}[_0x4ca2ee(0x440)](_0x5d6eb0,_0x3a54f4){const _0x21f2cc=_0x4ca2ee;let _0xeab62d=this[_0x21f2cc(0x1c3)][_0x21f2cc(0x42a)](_0x5d6eb0);if(_0xeab62d)return _0xeab62d[_0x21f2cc(0x440)](_0x3a54f4);}['_removeRoom'](_0x88da6c){const _0x3538b8=_0x4ca2ee;let _0x39151e=this[_0x3538b8(0x1c3)][_0x3538b8(0x42a)](_0x88da6c);_0x39151e&&(_0x39151e[_0x3538b8(0x48f)](),this[_0x3538b8(0x1c3)][_0x3538b8(0x483)](_0x88da6c));}[_0x4ca2ee(0x48f)](){const _0x310093=_0x4ca2ee;this[_0x310093(0x1c3)][_0x310093(0x1e9)](_0x1e0b39=>_0x1e0b39[_0x310093(0x48f)]()),this[_0x310093(0x1c3)][_0x310093(0x358)](),this[_0x310093(0x232)]['complete']();}};_0x232b7e=_0x182061([_0x51b612(0x0,_0x78cf9f[_0x4ca2ee(0x39a)])],_0x232b7e);var _0x2b7a6d=class extends _0x78cf9f[_0x4ca2ee(0x3b4)]{constructor(..._0x45bd9c){const _0x4127a3=_0x4ca2ee;super(..._0x45bd9c),_0x4f9d46(this,_0x4127a3(0x413),new Map()),_0x4f9d46(this,'_members$',new _0x42b37f[(_0x4127a3(0x43f))](this[_0x4127a3(0x413)])),_0x4f9d46(this,_0x4127a3(0x181),this['_members$'][_0x4127a3(0x4d3)]());}[_0x4ca2ee(0x48f)](){const _0xe8d595=_0x4ca2ee;this[_0xe8d595(0x413)]['clear'](),this[_0xe8d595(0x3b0)][_0xe8d595(0x245)]();}['updateMember'](_0x1268af){const _0x259521=_0x4ca2ee;this[_0x259521(0x413)][_0x259521(0x3e8)](_0x1268af['memberID'],_0x1268af),this[_0x259521(0x49b)]();}[_0x4ca2ee(0x3d1)](_0x1d1e2e){const _0x4c019b=_0x4ca2ee;this[_0x4c019b(0x413)]['delete'](_0x1d1e2e),this[_0x4c019b(0x49b)]();}[_0x4ca2ee(0x440)](_0x379f05){const _0x42683f=_0x4ca2ee;return this[_0x42683f(0x413)][_0x42683f(0x42a)](_0x379f05);}['getAllMembers'](){const _0x261807=_0x4ca2ee;return Array[_0x261807(0x317)](this[_0x261807(0x413)]['values']());}[_0x4ca2ee(0x49b)](){const _0x4c9ba7=_0x4ca2ee;this[_0x4c9ba7(0x3b0)]['next'](this[_0x4c9ba7(0x413)]);}};function _0x42c747(_0xeac5b,_0x50a75b){const _0x4c124f=_0x4ca2ee;if(_0x5b0242(_0xeac5b))return _0x50a75b;if(_0x50a75b[_0x4c124f(0x34b)]===_0x18ba1c[_0x4c124f(0x3aa)]['SUBMIT_CHANGESET']){let _0x3d371f=_0x9efdad(_0xeac5b),_0x1e7b43=_0x50a75b;return{..._0x1e7b43,'data':{..._0x1e7b43['data'],'unitID':_0xeac5b[_0x4c124f(0x4b1)][_0x4c124f(0x4d2)],'unitType':_0xeac5b['target'][_0x4c124f(0x29d)]??_0x1e7b43['data'][_0x4c124f(0x29d)],'changeset':_0x3d371f['toRemote'](_0x1e7b43[_0x4c124f(0x3d6)][_0x4c124f(0x44e)],_0x34f75a(_0xeac5b))}};}if(_0x50a75b[_0x4c124f(0x34b)]===_0x18ba1c[_0x4c124f(0x3aa)][_0x4c124f(0x249)]){let _0xd405d=_0x50a75b;return{..._0xd405d,'data':{..._0xd405d[_0x4c124f(0x3d6)],'unitID':_0xeac5b[_0x4c124f(0x4b1)][_0x4c124f(0x4d2)],'unitType':_0xeac5b[_0x4c124f(0x4b1)]['unitType']??_0xd405d[_0x4c124f(0x3d6)][_0x4c124f(0x29d)]}};}return _0x50a75b;}function _0x5d491f(_0x1eeae8,_0xe0c18d){const _0x440d58=_0x4ca2ee;if(_0x5b0242(_0x1eeae8))return[_0xe0c18d];switch(_0xe0c18d[_0x440d58(0x34b)]){case _0x18ba1c[_0x440d58(0x3aa)][_0x440d58(0x277)]:return[_0x4db98e(_0x1eeae8,_0xe0c18d)];case _0x18ba1c['CollaborationEvent'][_0x440d58(0x34a)]:return[_0x224919(_0x1eeae8,_0xe0c18d)];case _0x18ba1c[_0x440d58(0x3aa)]['CHANGESET_SHOULD_RETRY']:return[_0x1eb0a9(_0x1eeae8,_0xe0c18d)];default:return[_0xe0c18d];}}function _0x5b0242(_0x5f0b8f){const _0x2a29fc=_0x4ca2ee;return _0x5f0b8f['target'][_0x2a29fc(0x297)]==null&&_0x5f0b8f[_0x2a29fc(0x4b1)][_0x2a29fc(0x4d2)]===_0x5f0b8f[_0x2a29fc(0x226)]&&!_0x5f0b8f[_0x2a29fc(0x44e)];}function _0x4db98e(_0x1a85f2,_0x447c2e){const _0x48dae8=_0x4ca2ee;return{..._0x447c2e,'data':(0x0,_0x18ba1c[_0x48dae8(0x480)])(_0x325ba3(_0x1a85f2,(0x0,_0x18ba1c['parseProtocolChangeset'])(_0x447c2e[_0x48dae8(0x3d6)])))};}function _0x1eb0a9(_0x423fca,_0x11e439){return{..._0x11e439,'data':_0x325ba3(_0x423fca,_0x11e439['data'])};}function _0x224919(_0x472ec9,_0x3a4798){const _0x3967ab=_0x4ca2ee;let _0x3a73a8=_0x3a4798[_0x3967ab(0x3d6)];return{..._0x3a4798,'data':{..._0x3a73a8,'changesets':_0x3a73a8[_0x3967ab(0x28d)][_0x3967ab(0x2b8)](_0x363565=>(0x0,_0x18ba1c[_0x3967ab(0x480)])(_0x325ba3(_0x472ec9,(0x0,_0x18ba1c[_0x3967ab(0x164)])(_0x363565))))}};}function _0x325ba3(_0x52f53e,_0x29201c){const _0x359b3b=_0x4ca2ee;return _0x9efdad(_0x52f53e)[_0x359b3b(0x412)](_0x29201c,_0x34f75a(_0x52f53e));}function _0x9efdad(_0x21229f){const _0x28ffe0=_0x4ca2ee;if(!_0x21229f['changeset'])throw Error(_0x28ffe0(0x3af));return _0x21229f[_0x28ffe0(0x44e)];}function _0x34f75a(_0x45f17d){const _0x140d72=_0x4ca2ee;return{'localUnitId':_0x45f17d['localUnitId'],'unitType':_0x45f17d[_0x140d72(0x29d)],'target':_0x45f17d[_0x140d72(0x4b1)]};}let _0x6ccffc=function(_0x42b849){const _0x1dd3d0=_0x4ca2ee;return _0x42b849[_0x42b849[_0x1dd3d0(0x399)]=0x0]=_0x1dd3d0(0x399),_0x42b849[_0x42b849['JOINING']=0x1]=_0x1dd3d0(0x17c),_0x42b849[_0x42b849[_0x1dd3d0(0x189)]=0x2]=_0x1dd3d0(0x189),_0x42b849[_0x42b849['ONLINE']=0x3]=_0x1dd3d0(0x345),_0x42b849;}({}),_0x1e4adf={[_0x1521ba['CmdRspCode'][_0x4ca2ee(0x402)]]:_0x4ca2ee(0x23b),[_0x1521ba[_0x4ca2ee(0x2b3)][_0x4ca2ee(0x3a2)]]:_0x4ca2ee(0x248),[_0x1521ba[_0x4ca2ee(0x2b3)][_0x4ca2ee(0x4cf)]]:_0x4ca2ee(0x31b),[_0x1521ba[_0x4ca2ee(0x2b3)]['JOIN_ROOM_PERMISSION_DENIED']]:'session.room-permission-denied',[_0x1521ba[_0x4ca2ee(0x2b3)][_0x4ca2ee(0x2ff)]]:_0x4ca2ee(0x24f)},_0x3a19b6=class extends _0x78cf9f[_0x4ca2ee(0x342)]{get[_0x4ca2ee(0x418)](){const _0x174dce=_0x4ca2ee;return this['_sessionStatus$'][_0x174dce(0x478)]();}constructor(_0x865a6b,_0x4569f3,_0x295c2c,_0x3783de,_0x55eb78,_0x322ade,_0x5aa2bd,_0x558609){const _0x3808e=_0x4ca2ee;super(),this[_0x3808e(0x1a0)]=_0x865a6b,this[_0x3808e(0x290)]=_0x295c2c,this[_0x3808e(0x2b9)]=_0x3783de,this['_memberService']=_0x55eb78,this['_commentService']=_0x322ade,this[_0x3808e(0x286)]=_0x5aa2bd,this[_0x3808e(0x1d2)]=_0x558609,_0x4f9d46(this,_0x3808e(0x2a0),new _0x42b37f[(_0x3808e(0x43f))](0x0)),_0x4f9d46(this,_0x3808e(0x3dd),this[_0x3808e(0x2a0)][_0x3808e(0x4d3)]()),_0x4f9d46(this,_0x3808e(0x2fc),new _0x42b37f[(_0x3808e(0x20c))]()),_0x4f9d46(this,_0x3808e(0x43b),this[_0x3808e(0x2fc)][_0x3808e(0x4d3)]()),_0x4f9d46(this,'_socket',void 0x0),_0x4f9d46(this,_0x3808e(0x3f2),void 0x0),_0x4f9d46(this,_0x3808e(0x168),void 0x0),_0x4f9d46(this,_0x3808e(0x33b),!0x1),_0x4f9d46(this,'_telemetryInfo',null),this['_shouldReportTelemetry']=!!this[_0x3808e(0x1d2)],_0x4569f3['pipe']((0x0,_0x42b37f[_0x3808e(0x381)])(this['dispose$']))[_0x3808e(0x3ae)](_0x1c803b=>{const _0x152733=_0x3808e;if(_0x1c803b!==void 0x0){if(this[_0x152733(0x2de)]=_0x1c803b,_0x1c803b)this[_0x152733(0x362)](_0x1c803b),this[_0x152733(0x3f2)]=_0x1c803b[_0x152733(0x37c)][_0x152733(0x3ae)](_0x244565=>{const _0x1bd3fd=_0x152733;_0x244565[_0x1bd3fd(0x1bc)]===this[_0x1bd3fd(0x1a0)]['target'][_0x1bd3fd(0x4d2)]&&this[_0x1bd3fd(0x4bf)](_0x244565);});else{var _0x3910f0;this[_0x152733(0x211)](),this[_0x152733(0x2a0)][_0x152733(0x1b5)](0x2),(_0x3910f0=this['_socketMessageSubscription'])==null||_0x3910f0[_0x152733(0x3f6)](),this[_0x152733(0x3f2)]=null;}}});}[_0x4ca2ee(0x4ca)](){const _0x31fc0a=_0x4ca2ee;var _0x3cd041;return((_0x3cd041=this[_0x31fc0a(0x2de)])==null?void 0x0:_0x3cd041[_0x31fc0a(0x458)])??null;}[_0x4ca2ee(0x48f)](){const _0x53ead2=_0x4ca2ee;super[_0x53ead2(0x48f)](),this[_0x53ead2(0x426)](),this[_0x53ead2(0x32d)][_0x53ead2(0x1b5)](),this['dispose$'][_0x53ead2(0x245)]();}['close'](){const _0x101a7e=_0x4ca2ee;var _0x14d43c;this[_0x101a7e(0x211)](),(_0x14d43c=this[_0x101a7e(0x2de)])==null||_0x14d43c[_0x101a7e(0x432)]({'cmd':_0x1521ba[_0x101a7e(0x382)]['LEAVE'],'data':{'roomID':this[_0x101a7e(0x1a0)]['target'][_0x101a7e(0x4d2)]}}),this[_0x101a7e(0x2fc)][_0x101a7e(0x245)](),this[_0x101a7e(0x2a0)]['complete']();}['_onCombEvent'](_0x1c6b57){const _0xfcf2c8=_0x4ca2ee;_0x1c6b57[_0xfcf2c8(0x3ba)]===_0x1521ba[_0xfcf2c8(0x382)][_0xfcf2c8(0x45b)]?this[_0xfcf2c8(0x170)](_0x1c6b57):_0x1c6b57[_0xfcf2c8(0x3ba)]===_0x1521ba[_0xfcf2c8(0x382)][_0xfcf2c8(0x215)]&&this[_0xfcf2c8(0x485)](_0x1c6b57);}['_joinRoom'](_0x10bde0){const _0x21864f=_0x4ca2ee;this[_0x21864f(0x2a0)]['next'](0x1),_0x10bde0[_0x21864f(0x432)]({'cmd':_0x1521ba[_0x21864f(0x382)][_0x21864f(0x45b)],'routeKey':this[_0x21864f(0x1a0)][_0x21864f(0x4b1)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this[_0x21864f(0x1a0)][_0x21864f(0x4b1)][_0x21864f(0x4d2)]}]}});}[_0x4ca2ee(0x170)](_0xf42469){const _0x542c08=_0x4ca2ee;var _0x2c0201;if(_0xf42469[_0x542c08(0x34c)]in _0x1e4adf){this['_collaborationUIEventService'][_0x542c08(0x17d)]({'id':'JOIN_ROOM_FAILED','data':_0x1e4adf[_0xf42469[_0x542c08(0x34c)]]}),this['_sessionStatus$'][_0x542c08(0x1b5)](0x2);return;}this[_0x542c08(0x2a0)][_0x542c08(0x1b5)](0x3);let _0x5caf99=(_0x2c0201=_0xf42469[_0x542c08(0x3d6)][_0x542c08(0x3dc)][this[_0x542c08(0x1a0)]['target'][_0x542c08(0x4d2)]])==null?void 0x0:_0x2c0201[_0x542c08(0x36f)];_0x5caf99&&_0x5caf99[_0x542c08(0x1e9)](_0x4598c7=>this[_0x542c08(0x2dc)][_0x542c08(0x246)](this[_0x542c08(0x1a0)][_0x542c08(0x226)],_0x4598c7));}[_0x4ca2ee(0x485)](_0x8c6544){const _0xaee2cc=_0x4ca2ee;try{let _0x596862=_0x5d491f(this[_0xaee2cc(0x1a0)],_0x8c6544[_0xaee2cc(0x3d6)]);for(let _0x3bb716 of _0x596862)switch(_0x3bb716[_0xaee2cc(0x34b)]){case _0x18ba1c[_0xaee2cc(0x3aa)][_0xaee2cc(0x2f4)]:this[_0xaee2cc(0x2cd)](_0x3bb716),this[_0xaee2cc(0x2fc)][_0xaee2cc(0x1b5)](_0x3bb716);break;case _0x18ba1c[_0xaee2cc(0x3aa)]['USERS_LEAVE']:this['_onUserLeave'](_0x3bb716),this[_0xaee2cc(0x2fc)][_0xaee2cc(0x1b5)](_0x3bb716);break;case _0x18ba1c[_0xaee2cc(0x3aa)][_0xaee2cc(0x2fb)]:case _0x18ba1c[_0xaee2cc(0x3aa)][_0xaee2cc(0x446)]:this[_0xaee2cc(0x4ce)](),this[_0xaee2cc(0x180)](),this[_0xaee2cc(0x2fc)][_0xaee2cc(0x1b5)](_0x3bb716);break;case _0x18ba1c['CollaborationEvent'][_0xaee2cc(0x4c8)]:this['_logService'][_0xaee2cc(0x2a2)](_0xaee2cc(0x176)+JSON['stringify'](_0x3bb716)),this[_0xaee2cc(0x2fc)][_0xaee2cc(0x1b5)](_0x3bb716);break;case _0x18ba1c['CollaborationEvent']['COMMENT_UPDATE']:this[_0xaee2cc(0x1cc)]['onCommentUpdate'](_0x3bb716[_0xaee2cc(0x3d6)]),this['_event$'][_0xaee2cc(0x1b5)](_0x3bb716);break;default:this[_0xaee2cc(0x2fc)]['next'](_0x3bb716);}}catch(_0x4e4705){this[_0xaee2cc(0x290)][_0xaee2cc(0x2a2)](_0x4e4705,_0x8c6544);}}['_onUserJoin'](_0x226e3b){const _0x3c2ce1=_0x4ca2ee;this[_0x3c2ce1(0x2dc)][_0x3c2ce1(0x246)](this['_identity'][_0x3c2ce1(0x226)],_0x226e3b[_0x3c2ce1(0x3d6)]);}[_0x4ca2ee(0x2b1)](_0x312630){const _0x23280d=_0x4ca2ee;this[_0x23280d(0x2dc)][_0x23280d(0x3d1)](this[_0x23280d(0x1a0)][_0x23280d(0x226)],_0x312630[_0x23280d(0x3d6)][_0x23280d(0x458)]);}async[_0x4ca2ee(0x432)](_0xac5b01,_0x33b190){const _0x1f88d8=_0x4ca2ee;if(this[_0x1f88d8(0x418)]!==0x3||!this[_0x1f88d8(0x2de)])throw Error(_0x1f88d8(0x39f));try{let _0x51d782=_0x42c747(this['_identity'],_0xac5b01);_0x51d782[_0x1f88d8(0x34b)]===_0x18ba1c[_0x1f88d8(0x3aa)]['SUBMIT_CHANGESET']&&(this[_0x1f88d8(0x3f5)](),this[_0x1f88d8(0x393)](_0x51d782)),this[_0x1f88d8(0x2de)]['send']({'cmd':_0x1521ba[_0x1f88d8(0x382)][_0x1f88d8(0x1c2)],'routeKey':this[_0x1f88d8(0x1a0)]['target'][_0x1f88d8(0x4d2)],'routeType':'','data':_0x51d782});}catch(_0x364b39){this[_0x1f88d8(0x290)]['error'](_0x364b39);}}[_0x4ca2ee(0x3f5)](){const _0xff8913=_0x4ca2ee;this[_0xff8913(0x168)]=setTimeout(()=>{const _0x423ca3=_0xff8913;this['_collaborationTimeoutTimer']=null,this[_0x423ca3(0x286)][_0x423ca3(0x17d)]({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this[_0xff8913(0x2b9)][_0xff8913(0x433)](_0xff8913(0x2d2))??0x4e20);}[_0x4ca2ee(0x180)](){const _0x53eef5=_0x4ca2ee;this[_0x53eef5(0x168)]&&=(clearTimeout(this[_0x53eef5(0x168)]),null);}[_0x4ca2ee(0x393)](_0x3a40a7){const _0x512fa4=_0x4ca2ee;if(!this[_0x512fa4(0x33b)])return;let {data:_0x44ca3b}=_0x3a40a7,{unitID:_0x40d3b9,changeset:_0x32e2e8}=_0x44ca3b,{mutations:_0x4f6451,type:_0x49c497}=_0x32e2e8;this[_0x512fa4(0x266)]={'unitId':_0x40d3b9,'type':_0x49c497,'startTime':performance[_0x512fa4(0x4c6)](),'stopTime':0x0,'duration':0x0,'size':_0x243140(_0x4f6451)};}[_0x4ca2ee(0x4ce)](){const _0x436b20=_0x4ca2ee;if(this[_0x436b20(0x33b)]){if(!this['_telemetryInfo']){this[_0x436b20(0x290)][_0x436b20(0x2a2)](_0x436b20(0x30d),'telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo'][_0x436b20(0x260)]=performance[_0x436b20(0x4c6)](),this[_0x436b20(0x266)][_0x436b20(0x2c7)]=this[_0x436b20(0x266)][_0x436b20(0x260)]-this[_0x436b20(0x266)]['startTime'],this[_0x436b20(0x1d2)][_0x436b20(0x25f)]('collaboration_new_changeset',this[_0x436b20(0x266)]),this[_0x436b20(0x266)]=null;}}[_0x4ca2ee(0x211)](){this['_telemetryInfo']=null;}};_0x3a19b6=_0x182061([_0x51b612(0x2,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0x3,_0x78cf9f[_0x4ca2ee(0x178)]),_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x232b7e)),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x2ee3ef)),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6)),_0x51b612(0x7,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x475705[_0x4ca2ee(0x1c6)]))],_0x3a19b6);let _0x1dd414=(0x0,_0x78cf9f[_0x4ca2ee(0x404)])(_0x4ca2ee(0x1fa));function _0x48485d(_0xb737de){const _0x5eb1a9=_0x4ca2ee;return _0x5eb1a9(0x223)+_0xb737de;}function _0x43c0be(_0x245e37){const _0x44061c=_0x4ca2ee;let {unitID:_0x2d5aff,mutations:_0x90e15d}=_0x245e37;return{'unitId':_0x2d5aff,'subUnitId':_0x90e15d[_0x44061c(0x452)]>0x0?_0x90e15d[0x0][_0x44061c(0x21d)]['subUnitId']:null};}let _0x373754=class{constructor(_0x49f185,_0x1ce57a,_0x4c3264){const _0x4a2e8e=_0x4ca2ee;this[_0x4a2e8e(0x3b1)]=_0x49f185,this[_0x4a2e8e(0x1ba)]=_0x1ce57a,this[_0x4a2e8e(0x24d)]=_0x4c3264;}['transformSelections'](_0x850170){const _0x2411d0=_0x4ca2ee;var _0x5b11b1,_0x411cd3;let _0x546093=this[_0x2411d0(0x3b1)][_0x2411d0(0x42a)](_0x1c5171['SheetsSelectionsService']),{unitId:_0x28cdc1,subUnitId:_0xa9677e}=_0x43c0be(_0x850170),_0x40b4d5=_0x546093==null?void 0x0:_0x546093[_0x2411d0(0x3f0)](_0x28cdc1)['getCurrentSelections'](),_0x302ef6=(_0x5b11b1=this[_0x2411d0(0x24d)]['getUnit'](_0x28cdc1))==null||(_0x5b11b1=_0x5b11b1['getActiveSheet']())==null?void 0x0:_0x5b11b1[_0x2411d0(0x40d)]();if(_0x40b4d5[_0x2411d0(0x452)]===0x0||!_0x28cdc1||!_0xa9677e)return;let _0x591f20=[{'id':_0x1c5171[_0x2411d0(0x320)]['id'],'params':{'unitId':_0x28cdc1,'subUnitId':_0x302ef6,'selections':_0x78cf9f['Tools'][_0x2411d0(0x1ea)](_0x40b4d5)}}],_0x93657=this[_0x2411d0(0x1ba)][_0x2411d0(0x2d0)](_0x850170,_0x591f20);if(!(0x0,_0x18ba1c[_0x2411d0(0x464)])(_0x93657))throw _0x93657[_0x2411d0(0x2a2)];let _0x776728=(_0x411cd3=_0x93657[_0x2411d0(0x375)][0x0])==null||(_0x411cd3=_0x411cd3['params'])==null?void 0x0:_0x411cd3[_0x2411d0(0x3a3)];if(Array[_0x2411d0(0x471)](_0x776728)&&_0x776728[_0x2411d0(0x452)]){if(_0x776728[_0x2411d0(0x452)]===_0x591f20[0x0][_0x2411d0(0x21d)]['selections']['length']&&_0x776728['every']((_0x20e31a,_0x57210d)=>_0x78cf9f[_0x2411d0(0x1b9)][_0x2411d0(0x32e)](_0x20e31a[_0x2411d0(0x44d)],_0x591f20[0x0][_0x2411d0(0x21d)][_0x2411d0(0x3a3)][_0x57210d]['range'])))return;this['_injector'][_0x2411d0(0x42a)](_0x78cf9f[_0x2411d0(0x47c)])[_0x2411d0(0x171)](_0x1c5171['SetSelectionsOperation']['id'],{'unitId':_0x28cdc1,'subUnitId':_0x302ef6,'selections':_0x776728});}}};_0x373754=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f['Inject'])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x1,_0x18ba1c[_0x4ca2ee(0x371)]),_0x51b612(0x2,_0x78cf9f[_0x4ca2ee(0x39a)])],_0x373754);let _0x208a4c=(0x0,_0x78cf9f[_0x4ca2ee(0x404)])('univer-pro.collaboration-client.single-active-unit-service'),_0x17e655=function(_0x335ecd){const _0x5e818e=_0x4ca2ee;return _0x335ecd[_0x335ecd[_0x5e818e(0x442)]=0x0]=_0x5e818e(0x442),_0x335ecd[_0x335ecd['OTHER_CLIENTS_EDITING']=0x1]=_0x5e818e(0x460),_0x335ecd;}({});function _0x15532b(_0xb353ae){const _0xb8791e=_0x4ca2ee;var _0x354f7f;return!!((_0x354f7f=_0xb353ae[_0xb8791e(0x21d)])!=null&&_0x354f7f[_0xb8791e(0x233)]);}let _0x28b52f=new Set([_0x1c5171[_0x4ca2ee(0x41f)]['id']]),_0x1b055b=new Set([_0x5773b7[_0x4ca2ee(0x174)]['id'],_0x5773b7[_0x4ca2ee(0x1be)]['id'],_0x5773b7['MoveSlidePageMutation']['id'],_0x5773b7[_0x4ca2ee(0x4c5)]['id']]);function _0x41070d(_0x3d7054,_0x23a5f7=_0x28b52f){const _0x49364c=_0x4ca2ee;let _0x3e996e=[];for(let _0x265b89 of _0x3d7054){if(_0x23a5f7[_0x49364c(0x32f)](_0x265b89['id'])){if(_0x3e996e[_0x49364c(0x452)]>0x0)break;_0x3e996e[_0x49364c(0x204)](_0x265b89);break;}if(_0x15532b(_0x265b89)){if(_0x3e996e[_0x49364c(0x452)]>0x0)break;_0x3e996e[_0x49364c(0x204)](_0x265b89);break;}_0x3e996e[_0x49364c(0x204)](_0x265b89);}return _0x3e996e;}function _0xf17105(_0x167caa,_0x1315e5,_0x5f07b0,_0x50d2e2,_0x172ed3){const _0x1cf802=_0x4ca2ee;let _0x5d11ab=_0x41070d(_0x167caa),_0x170183=_0x172ed3[_0x1cf802(0x219)](),_0x42c4ed=(_0x170183==null?void 0x0:_0x170183[_0x1cf802(0x319)])??_0x1cf802(0x205),_0x48aed4=(_0x170183==null?void 0x0:_0x170183[_0x1cf802(0x458)])??_0x1cf802(0x205);return{'changeset':{'unitID':_0x1315e5,'type':(0x0,_0x18ba1c[_0x1cf802(0x262)])(_0x5f07b0[_0x1cf802(0x408)](_0x1315e5)),'baseRev':_0x50d2e2['getCurrentRevOfUnit'](_0x1315e5),'revision':0x0,'userID':_0x42c4ed,'memberID':_0x48aed4,'mutations':_0x5d11ab},'pendingMutations':_0x167caa['slice'](_0x5d11ab[_0x1cf802(0x452)])};}let _0x3a185a=_0xf17105;function _0x4fbf96(_0x53a4d7,_0x3d0dcc,_0x304980,_0x3e0099,_0x32c5a5){const _0x5a61ce=_0x4ca2ee;let _0x45668d=_0x41070d(_0x53a4d7,_0x1b055b),_0xeeb71e=_0x32c5a5[_0x5a61ce(0x219)](),_0x386865=(_0xeeb71e==null?void 0x0:_0xeeb71e[_0x5a61ce(0x319)])??'unknown',_0x2ca736=(_0xeeb71e==null?void 0x0:_0xeeb71e['memberID'])??_0x5a61ce(0x205);return{'changeset':{'unitID':_0x3d0dcc,'type':(0x0,_0x18ba1c[_0x5a61ce(0x262)])(_0x304980[_0x5a61ce(0x408)](_0x3d0dcc)),'baseRev':_0x3e0099[_0x5a61ce(0x2ec)](_0x3d0dcc),'revision':0x0,'userID':_0x386865,'memberID':_0x2ca736,'mutations':_0x45668d},'pendingMutations':_0x53a4d7['slice'](_0x45668d['length'])};}function _0x2fefe4(_0x2601b1,_0x10d11c,_0x2b2147,_0x2e5491,_0x28396c){const _0x3e023e=_0x4ca2ee;let _0x400c38=_0x2601b1['reduce']((_0x255cf5,_0x4cf5f3)=>{const _0x240d0a=_0x41d6;let _0x77d761=_0x255cf5[_0x255cf5['length']-0x1],{id:_0x1d4f7e}=_0x77d761??{},{id:_0x206295,type:_0x56d278}=_0x4cf5f3,_0x50c437=_0x4cf5f3[_0x240d0a(0x21d)];if(_0x1d4f7e&&_0x1d4f7e!==_0x206295)throw Error(_0x240d0a(0x27d)+_0x1d4f7e+_0x240d0a(0x409)+_0x206295+'.');if(!_0x77d761)return[{'id':_0x206295,'type':_0x56d278,'params':{'unitId':_0x50c437[_0x240d0a(0x4d2)],'textRanges':_0x50c437[_0x240d0a(0x29c)],'actions':_0x50c437['actions']}}];let _0x159415=_0x77d761[_0x240d0a(0x21d)];return _0x29b313(_0x159415,_0x50c437)?[..._0x255cf5['slice'](0x0,-0x1),{..._0x77d761,'id':_0x206295,'type':_0x56d278,'params':{'unitId':_0x50c437['unitId'],'textRanges':_0x50c437[_0x240d0a(0x29c)],'actions':_0x78cf9f[_0x240d0a(0x304)]['compose'](_0x159415['actions'],_0x50c437[_0x240d0a(0x3d5)])}}]:[..._0x255cf5,{'id':_0x206295,'type':_0x56d278,'params':{'unitId':_0x50c437[_0x240d0a(0x4d2)],'textRanges':_0x50c437[_0x240d0a(0x29c)],'actions':_0x50c437['actions']}}];},[]),_0x154f5d=_0x28396c['getCurrentUser'](),_0x4c52ba=(_0x154f5d==null?void 0x0:_0x154f5d['userID'])??_0x3e023e(0x205),_0x1ca246=(_0x154f5d==null?void 0x0:_0x154f5d[_0x3e023e(0x458)])??_0x3e023e(0x205);return{'changeset':{'unitID':_0x10d11c,'type':(0x0,_0x18ba1c[_0x3e023e(0x262)])(_0x2b2147[_0x3e023e(0x408)](_0x10d11c)),'baseRev':_0x2e5491[_0x3e023e(0x2ec)](_0x10d11c),'revision':0x0,'userID':_0x4c52ba,'memberID':_0x1ca246,'mutations':_0x400c38},'pendingMutations':_0x2601b1['slice'](_0x2601b1[_0x3e023e(0x452)])};}function _0x29b313(_0x449a54,_0x159823){const _0x581cad=_0x4ca2ee;return!_0x3ea636(_0x449a54)&&!_0x3ea636(_0x159823)&&_0x638e0a(_0x449a54[_0x581cad(0x3d5)],_0x159823[_0x581cad(0x3d5)]);}function _0x3ea636(_0x44412f){const _0x4df03c=_0x4ca2ee;return _0x44412f[_0x4df03c(0x1da)]!==void 0x0;}function _0x638e0a(_0x3fe5fe,_0x4bf5fc){return _0x570f1f(_0x3fe5fe)&&_0x570f1f(_0x4bf5fc)&&!_0x27c414(_0x3fe5fe)&&!_0x27c414(_0x4bf5fc)&&!_0x336699(_0x3fe5fe)&&!_0x336699(_0x4bf5fc);}function _0x570f1f(_0xce69ac){const _0x4699ad=_0x4ca2ee;return _0x247da0(_0xce69ac)['some'](_0x5be701=>_0x413355(_0x5be701)&&_0x5be701['et']===_0x4699ad(0x1ac));}function _0x336699(_0x57ec88){const _0xddcad1=_0x4ca2ee;return _0x247da0(_0x57ec88)[_0xddcad1(0x4d0)](_0x34de88=>Array[_0xddcad1(0x471)](_0x34de88)||typeof _0x34de88==_0xddcad1(0x4b5)||typeof _0x34de88==_0xddcad1(0x30f));}function _0x27c414(_0xfbe96c){const _0x831d13=_0x4ca2ee;return _0x247da0(_0xfbe96c)[_0x831d13(0x4d0)](_0x52245d=>!_0x413355(_0x52245d)||_0x52245d['et']!==_0x831d13(0x1ac)||!Array[_0x831d13(0x471)](_0x52245d['e'])?!0x1:_0x52245d['e']['some'](_0x541328=>!_0x413355(_0x541328)||!_0x413355(_0x541328[_0x831d13(0x1f0)])?!0x1:Object[_0x831d13(0x356)]['hasOwnProperty'][_0x831d13(0x3da)](_0x541328[_0x831d13(0x1f0)],'tables')||Object['prototype']['hasOwnProperty']['call'](_0x541328['body'],_0x831d13(0x3d9))||Object[_0x831d13(0x356)][_0x831d13(0x414)][_0x831d13(0x3da)](_0x541328[_0x831d13(0x1f0)],_0x831d13(0x1a4))));}function _0x247da0(_0xfc9ca4){const _0x2b4efc=_0x4ca2ee;if(!Array[_0x2b4efc(0x471)](_0xfc9ca4))return[];let _0x4c74ac=_0xfc9ca4[_0x2b4efc(0x35a)](_0x2b4efc(0x1f0))?_0xfc9ca4:_0xfc9ca4[_0x2b4efc(0x224)](_0x4e58b1=>Array[_0x2b4efc(0x471)](_0x4e58b1)&&_0x4e58b1['includes'](_0x2b4efc(0x1f0)));if(!Array[_0x2b4efc(0x471)](_0x4c74ac))return[];let _0x9c410=_0x4c74ac[_0x2b4efc(0x1e4)](_0x2b4efc(0x1f0));return _0x9c410===-0x1?[]:_0x4c74ac['slice'](_0x9c410+0x1);}function _0x413355(_0x1fe292){const _0x50c026=_0x4ca2ee;return typeof _0x1fe292==_0x50c026(0x369)&&!!_0x1fe292&&!Array['isArray'](_0x1fe292);}function _0x29bef8(_0x58ee8e,_0x18031d){const _0x5279d9=_0x4ca2ee;let _0x2bee82=new _0x42b37f[(_0x5279d9(0x405))](0x1);return setTimeout(()=>_0x2bee82[_0x5279d9(0x1b5)](_0x18031d),_0x58ee8e),_0x2bee82[_0x5279d9(0x4d3)]()[_0x5279d9(0x28c)]((0x0,_0x42b37f[_0x5279d9(0x2c0)])(0x1));}var _0x394a45,_0x87f31,_0x23e3eb;let _0x4f2ada=function(_0x199a4d){const _0x5210d4=_0x4ca2ee;return _0x199a4d[_0x5210d4(0x3fe)]=_0x5210d4(0x1e2),_0x199a4d['SYNCED']=_0x5210d4(0x400),_0x199a4d[_0x5210d4(0x337)]='pending',_0x199a4d[_0x5210d4(0x377)]=_0x5210d4(0x27e),_0x199a4d[_0x5210d4(0x44c)]='awaiting_with_pending',_0x199a4d['FETCH_MISS']=_0x5210d4(0x163),_0x199a4d['CONFLICT']='conflict',_0x199a4d[_0x5210d4(0x189)]='offline',_0x199a4d;}({}),_0x43e9ec=0x4e20,_0x106066=0x2bf20;var _0x5db94a=class{constructor(_0x2d55d5,_0x34b7b7,_0x10c80d,_0x31c5a6,_0x37ec09,_0x4e89c9,_0x73cb0b,_0x454161,_0x1d9d83){const _0x567fd7=_0x4ca2ee;this['unitID']=_0x2d55d5,this[_0x567fd7(0x2db)]=_0x34b7b7,this[_0x567fd7(0x4c4)]=_0x37ec09,this[_0x567fd7(0x23d)]=_0x4e89c9,this[_0x567fd7(0x498)]=_0x73cb0b,this['_revisionService']=_0x454161,this['_localCacheService']=_0x1d9d83,_0x4f9d46(this,_0x567fd7(0x185),null),_0x4f9d46(this,'_pendingMutations',[]),this[_0x567fd7(0x185)]=_0x10c80d,this[_0x567fd7(0x1f2)]=_0x31c5a6;}[_0x4ca2ee(0x2d4)](_0x5ee969){const _0x355860=_0x4ca2ee;let _0x53f650=this[_0x355860(0x4d8)]['getCurrentRevOfUnit'](this['unitID']);return _0x5ee969[_0x355860(0x49f)]>_0x53f650+0x1&&(this['_handler'][_0x355860(0x4a3)]({'from':_0x53f650,'to':_0x5ee969[_0x355860(0x49f)]-0x1}),!0x0);}[_0x4ca2ee(0x293)](_0x2aeed5){const _0x55b040=_0x4ca2ee;this[_0x55b040(0x498)][_0x55b040(0x475)](this['unitID'],_0x2aeed5);}['_transformSelections'](_0x109ce8){const _0x2dec17=_0x4ca2ee;var _0x13dd16,_0x4bbac5;(_0x13dd16=(_0x4bbac5=this['_handler'])['onTransformSelections'])==null||_0x13dd16[_0x2dec17(0x3da)](_0x4bbac5,_0x109ce8);}[_0x4ca2ee(0x3e3)](_0x2856aa){const _0x478216=_0x4ca2ee;var _0xa93bfb,_0x143728;return((_0xa93bfb=(_0x143728=this['_handler'])[_0x478216(0x1c0)])==null?void 0x0:_0xa93bfb[_0x478216(0x3da)](_0x143728,_0x2856aa))??null;}['_transformIMECache'](_0x23c97e){const _0x1b45d0=_0x4ca2ee;var _0x1a81b0,_0x243209;return(_0x1a81b0=(_0x243209=this[_0x1b45d0(0x4c4)])[_0x1b45d0(0x357)])==null?void 0x0:_0x1a81b0[_0x1b45d0(0x3da)](_0x243209,_0x23c97e);}[_0x4ca2ee(0x329)](_0xb8c056){const _0x5136ff=_0x4ca2ee;var _0xe9295c,_0x3bea9a;return(_0xe9295c=(_0x3bea9a=this[_0x5136ff(0x4c4)])[_0x5136ff(0x267)])==null?void 0x0:_0xe9295c['call'](_0x3bea9a,_0xb8c056);}['_transformRemoteChangesetByIMECache'](_0x3ddd41){const _0x171656=_0x4ca2ee;var _0x43f361,_0xa70153;return((_0x43f361=(_0xa70153=this[_0x171656(0x4c4)])[_0x171656(0x264)])==null?void 0x0:_0x43f361[_0x171656(0x3da)](_0xa70153,_0x3ddd41))??_0x3ddd41;}['_transformRemoteChangesetByStateCache'](_0xedf924){const _0x3f80b3=_0x4ca2ee;var _0x4de8d6,_0x584ee6;return((_0x4de8d6=(_0x584ee6=this[_0x3f80b3(0x4c4)])[_0x3f80b3(0x214)])==null?void 0x0:_0x4de8d6[_0x3f80b3(0x3da)](_0x584ee6,_0xedf924))??_0xedf924;}[_0x4ca2ee(0x397)](_0x5685d4){const _0x558874=_0x4ca2ee;if(this['type']===_0x78cf9f[_0x558874(0x4a8)][_0x558874(0x40b)]){let {unitID:_0x5eb040,mutations:_0x3119b2,memberID:_0x5e6f81}=_0x5685d4,_0x5b9e52=_0x3119b2['length']>0x0?_0x3119b2[0x0]['params'][_0x558874(0x29c)]:[];if(Array[_0x558874(0x471)](_0x5b9e52)&&_0x5b9e52['length']>0x0){var _0x17ebab,_0x410f5e;(_0x17ebab=(_0x410f5e=this[_0x558874(0x4c4)])[_0x558874(0x1cf)])==null||_0x17ebab[_0x558874(0x3da)](_0x410f5e,{'unitID':_0x5eb040,'memberID':_0x5e6f81,'textRanges':_0x5b9e52});}}}[_0x4ca2ee(0x49e)](){const _0x14cb8e=_0x4ca2ee;var _0x366150;(_0x366150=this['_localCacheService'])==null||_0x366150[_0x14cb8e(0x197)](this[_0x14cb8e(0x272)],this[_0x14cb8e(0x2db)],this['_awaitingChangeset'],this[_0x14cb8e(0x1f2)]);}[_0x4ca2ee(0x470)](){const _0x5e0d7b=_0x4ca2ee;return this[_0x5e0d7b(0x4d8)][_0x5e0d7b(0x2ec)](this[_0x5e0d7b(0x272)]);}['_incrementRevisionNumber'](){const _0x3ee63f=_0x4ca2ee;this[_0x3ee63f(0x4d8)]['incrementRevOfUnit'](this[_0x3ee63f(0x272)]);}['_executeRemoteChangeset'](_0x99a7ea){const _0x39a52f=_0x4ca2ee;let _0x30d68b=this[_0x39a52f(0x392)](_0x99a7ea);_0x30d68b=this['_transformRemoteChangesetByStateCache'](_0x30d68b);let _0x1e4f19=this[_0x39a52f(0x3e3)](_0x30d68b),_0x1e7cdf=(0x0,_0x78cf9f[_0x39a52f(0x2f1)])(_0x30d68b['mutations'],this[_0x39a52f(0x23d)],{'fromCollab':!0x0});if(!_0x1e7cdf[_0x39a52f(0x488)])throw _0x1e4f19==null||_0x1e4f19[_0x39a52f(0x20f)](),_0x1e7cdf['error']instanceof Error?_0x1e7cdf[_0x39a52f(0x2a2)]:Error(_0x1e7cdf['error']??_0x39a52f(0x1e0));_0x1e4f19==null||_0x1e4f19[_0x39a52f(0x28a)](),this[_0x39a52f(0x1ce)](_0x30d68b),this[_0x39a52f(0x329)](_0x30d68b),this['_transformUndoredo'](_0x99a7ea),this[_0x39a52f(0x417)](_0x30d68b),this[_0x39a52f(0x397)](_0x30d68b),this[_0x39a52f(0x18c)]();}};let _0x1aec7f=class extends _0x5db94a{constructor(_0x425a3d,_0x21a671,_0x58adab,_0x59ac07,_0x34b330,_0x3397ec,_0x4c389e,_0x2da2da,_0x52dab1,_0x4e1a18){const _0x1adc71=_0x4ca2ee;super(_0x425a3d,_0x21a671,null,[],_0x58adab,_0x4c389e,_0x3397ec,_0x59ac07,_0x4e1a18),this['_injector']=_0x34b330,this[_0x1adc71(0x290)]=_0x2da2da,this[_0x1adc71(0x1ba)]=_0x52dab1,this['localCacheService']=_0x4e1a18,_0x4f9d46(this,'status',_0x1adc71(0x400));}[_0x4ca2ee(0x461)](_0x588544){const _0x5717e6=_0x4ca2ee;let _0x55e15d=this[_0x5717e6(0x3b1)]['createInstance'](_0x2b8409,this[_0x5717e6(0x272)],this[_0x5717e6(0x2db)],[_0x588544],this['_handler']);return _0x55e15d[_0x5717e6(0x3f7)](),_0x55e15d['_updateLocalCache'](),_0x55e15d;}[_0x4ca2ee(0x439)](_0x379236){const _0x472415=_0x4ca2ee;if(this[_0x472415(0x2d4)](_0x379236))return this[_0x472415(0x3b1)][_0x472415(0x37d)](_0x23ae28,this['unitID'],this[_0x472415(0x2db)],null,[],null,[_0x379236],this[_0x472415(0x4c4)]);try{let _0x7ef04e=this['_transformService'][_0x472415(0x2d0)](_0x379236,[_0x18ba1c[_0x472415(0x490)]]);if((0x0,_0x18ba1c[_0x472415(0x464)])(_0x7ef04e)){let {c1Prime:_0x3a12d4}=_0x7ef04e;return this[_0x472415(0x355)](_0x3a12d4),this;}throw _0x7ef04e[_0x472415(0x2a2)];}catch(_0x2a248c){return this['_logService']['error'](_0x2a248c),this[_0x472415(0x253)](!0x1);}}[_0x4ca2ee(0x253)](_0x52c1eb){const _0x32fd91=_0x4ca2ee;return this[_0x32fd91(0x3b1)][_0x32fd91(0x37d)](_0x2160a7,this[_0x32fd91(0x272)],this[_0x32fd91(0x2db)],null,[],this[_0x32fd91(0x4c4)],_0x52c1eb);}['onRemoteAck'](_0x5b7565){const _0x108b79=_0x4ca2ee;if(_0x5b7565['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x108b79(0x344));}[_0x4ca2ee(0x2e8)](){const _0x3cbcfd=_0x4ca2ee;throw Error(_0x3cbcfd(0x32a));}[_0x4ca2ee(0x40f)](){return this;}[_0x4ca2ee(0x378)](){const _0x27e941=_0x4ca2ee;return this['_injector'][_0x27e941(0x37d)](_0x4522d6,this[_0x27e941(0x272)],this['type'],null,[],this[_0x27e941(0x4c4)]);}[_0x4ca2ee(0x167)](){return this;}[_0x4ca2ee(0x3a6)](){const _0x50b781=_0x4ca2ee;throw Error(_0x50b781(0x4b7));}[_0x4ca2ee(0x3e9)](){const _0x160602=_0x4ca2ee;let _0x19c43a=this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);return this[_0x160602(0x4c4)][_0x160602(0x4a3)]({'from':_0x19c43a,'to':0x0}),this[_0x160602(0x3b1)]['createInstance'](_0x23ae28,this[_0x160602(0x272)],this[_0x160602(0x2db)],null,[],null,[],this[_0x160602(0x4c4)]);}};_0x1aec7f=_0x182061([_0x51b612(0x3,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['Injector'])),_0x51b612(0x5,_0x78cf9f[_0x4ca2ee(0x2ef)]),_0x51b612(0x6,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0x7,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0x8,_0x18ba1c[_0x4ca2ee(0x371)]),_0x51b612(0x9,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x1aec7f);let _0x2b8409=_0x394a45=class extends _0x5db94a{constructor(_0x179a5c,_0x39bcff,_0x2f0e4d,_0x167902,_0x408b88,_0x20b56d,_0x259330,_0x6a1ae5,_0x2579db,_0x3194ba,_0x2bdd32,_0x4d5109,_0x27ead9,_0x5e0eb9){const _0x2ae42c=_0x4ca2ee;super(_0x179a5c,_0x39bcff,null,_0x2f0e4d,_0x167902,_0x2579db,_0x27ead9,_0x20b56d,_0x5e0eb9),this[_0x2ae42c(0x3b1)]=_0x408b88,this[_0x2ae42c(0x445)]=_0x259330,this[_0x2ae42c(0x290)]=_0x6a1ae5,this[_0x2ae42c(0x2b9)]=_0x3194ba,this[_0x2ae42c(0x1ba)]=_0x2bdd32,this['_univerInstanceService']=_0x4d5109,_0x4f9d46(this,_0x2ae42c(0x43c),_0x2ae42c(0x3a0)),_0x4f9d46(this,'_scheduleCompleteTimestamp',null),_0x4f9d46(this,_0x2ae42c(0x2f0),null);}['appendMutation'](_0x47ce51){const _0x30c613=_0x4ca2ee;return this[_0x30c613(0x1f2)][_0x30c613(0x204)](_0x47ce51),this[_0x30c613(0x49e)](),this;}[_0x4ca2ee(0x439)](_0xfa279f){const _0x104d96=_0x4ca2ee;if(this[_0x104d96(0x2d4)](_0xfa279f))return this[_0x104d96(0x2a4)](),this[_0x104d96(0x3b1)][_0x104d96(0x37d)](_0x23ae28,this[_0x104d96(0x272)],this[_0x104d96(0x2db)],null,this[_0x104d96(0x1f2)],null,[_0xfa279f],this[_0x104d96(0x4c4)]);try{let _0x75eb19=this[_0x104d96(0x1ba)][_0x104d96(0x2d0)](_0xfa279f,this['_pendingMutations']);if((0x0,_0x18ba1c[_0x104d96(0x464)])(_0x75eb19)){let {c1Prime:_0x3fe20d,m2Prime:_0x521217}=_0x75eb19;this['_executeRemoteChangeset'](_0x3fe20d);let _0x14245d=this[_0x104d96(0x3b1)][_0x104d96(0x37d)](_0x394a45,this[_0x104d96(0x272)],this['type'],_0x521217,this['_handler']);this[_0x104d96(0x2a4)]();let _0x5e1b2f=new Date()['getTime'](),_0x409144=this['_scheduleCompleteTimestamp']?Math[_0x104d96(0x4aa)](this[_0x104d96(0x3cf)]-_0x5e1b2f,0x0):this[_0x104d96(0x366)]();return _0x14245d['_schedule'](_0x409144),_0x14245d;}throw _0x75eb19[_0x104d96(0x2a2)];}catch(_0x272503){return this[_0x104d96(0x290)][_0x104d96(0x2a2)](_0x272503),this[_0x104d96(0x253)](!0x1);}}['onRemoteAck'](_0x41360){const _0x520462=_0x4ca2ee;if(_0x41360[_0x520462(0x49f)]<=this[_0x520462(0x470)]())return this;throw Error(_0x520462(0x228));}[_0x4ca2ee(0x2e8)](){const _0x4ba86b=_0x4ca2ee;throw Error(_0x4ba86b(0x23a));}['onRemoteRetry'](){return this;}[_0x4ca2ee(0x378)](){const _0x42d5e2=_0x4ca2ee;return this['_clearScheduledTask'](),this[_0x42d5e2(0x3b1)][_0x42d5e2(0x37d)](_0x4522d6,this['unitID'],this['type'],null,this[_0x42d5e2(0x1f2)],this[_0x42d5e2(0x4c4)]);}[_0x4ca2ee(0x167)](){return this;}[_0x4ca2ee(0x3f7)](_0x2b2156){const _0x3f7f8a=_0x4ca2ee;let _0x2f28f1=_0x2b2156??this[_0x3f7f8a(0x366)]();this[_0x3f7f8a(0x3cf)]=new Date()['getTime']()+_0x2f28f1,this[_0x3f7f8a(0x2f0)]=setTimeout(()=>{const _0x289ce3=_0x3f7f8a;this['_clearScheduledTask']();let _0x3236a3=null;switch(this[_0x289ce3(0x2db)]){case _0x78cf9f['UniverInstanceType'][_0x289ce3(0x220)]:_0x3236a3=_0xf17105(this['_pendingMutations'],this[_0x289ce3(0x272)],this[_0x289ce3(0x3fa)],this[_0x289ce3(0x4d8)],this['_userManagerService']);break;case _0x78cf9f[_0x289ce3(0x4a8)][_0x289ce3(0x40b)]:_0x3236a3=this[_0x289ce3(0x1f2)]['every'](_0xe3660=>_0xe3660['id']===_0x14832f[_0x289ce3(0x23f)]['id'])?_0x2fefe4(this[_0x289ce3(0x1f2)],this[_0x289ce3(0x272)],this['_univerInstanceService'],this[_0x289ce3(0x4d8)],this[_0x289ce3(0x445)]):_0xf17105(this[_0x289ce3(0x1f2)],this[_0x289ce3(0x272)],this['_univerInstanceService'],this[_0x289ce3(0x4d8)],this[_0x289ce3(0x445)]);break;case _0x78cf9f['UniverInstanceType'][_0x289ce3(0x4c9)]:_0x3236a3=_0x4fbf96(this['_pendingMutations'],this['unitID'],this[_0x289ce3(0x3fa)],this[_0x289ce3(0x4d8)],this[_0x289ce3(0x445)]);break;case _0x78cf9f[_0x289ce3(0x4a8)][_0x289ce3(0x1c7)]:_0x3236a3=_0x3a185a(this[_0x289ce3(0x1f2)],this['unitID'],this['_univerInstanceService'],this[_0x289ce3(0x4d8)],this[_0x289ce3(0x445)]);break;case _0x78cf9f[_0x289ce3(0x4a8)]['UNIVER_BOARD']:_0x3236a3=_0xf17105(this['_pendingMutations'],this[_0x289ce3(0x272)],this[_0x289ce3(0x3fa)],this[_0x289ce3(0x4d8)],this[_0x289ce3(0x445)]);break;case _0x78cf9f[_0x289ce3(0x4a8)][_0x289ce3(0x2ed)]:_0x3236a3=_0xf17105(this[_0x289ce3(0x1f2)],this['unitID'],this[_0x289ce3(0x3fa)],this[_0x289ce3(0x4d8)],this[_0x289ce3(0x445)]);break;default:throw Error(_0x289ce3(0x269)+this[_0x289ce3(0x2db)]+_0x289ce3(0x29b));}let {changeset:_0x4881ef,pendingMutations:_0x39aa13}=_0x3236a3;this[_0x289ce3(0x4c4)][_0x289ce3(0x315)](_0x4881ef);let _0x366624=_0x39aa13[_0x289ce3(0x452)]?this[_0x289ce3(0x3b1)][_0x289ce3(0x37d)](_0x47a7e4,this['unitID'],this[_0x289ce3(0x2db)],_0x4881ef,_0x39aa13,this[_0x289ce3(0x4c4)],void 0x0):this['_injector'][_0x289ce3(0x37d)](_0x1e430e,this[_0x289ce3(0x272)],this['type'],_0x4881ef,this[_0x289ce3(0x4c4)]);_0x366624[_0x289ce3(0x49e)](),this[_0x289ce3(0x4c4)][_0x289ce3(0x2e4)](this,_0x366624);},_0x2f28f1);}['_getSendChangesetTimeout'](){const _0x4ac0c7=_0x4ca2ee;let _0x4b8a05=this[_0x4ac0c7(0x2b9)][_0x4ac0c7(0x433)](_0x16372d);return(_0x4b8a05==null?void 0x0:_0x4b8a05[_0x4ac0c7(0x1d6)])??0x7d0;}[_0x4ca2ee(0x3a6)](){const _0x2d1590=_0x4ca2ee;throw Error(_0x2d1590(0x3b5));}[_0x4ca2ee(0x2a4)](){const _0x14393a=_0x4ca2ee;this[_0x14393a(0x2f0)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x14393a(0x2f0)]=null);}[_0x4ca2ee(0x253)](_0x1a5764){const _0x23858e=_0x4ca2ee;return this[_0x23858e(0x2a4)](),this[_0x23858e(0x3b1)][_0x23858e(0x37d)](_0x2160a7,this[_0x23858e(0x272)],this['type'],null,this[_0x23858e(0x1f2)],this[_0x23858e(0x4c4)],_0x1a5764);}};_0x2b8409=_0x394a45=_0x182061([_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['Injector'])),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c['RevisionService'])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x494)])),_0x51b612(0x7,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0x8,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0x9,_0x78cf9f['IConfigService']),_0x51b612(0xa,_0x18ba1c[_0x4ca2ee(0x371)]),_0x51b612(0xb,_0x78cf9f[_0x4ca2ee(0x39a)]),_0x51b612(0xc,_0x78cf9f[_0x4ca2ee(0x2ef)]),_0x51b612(0xd,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x2b8409);let _0x1e430e=_0x87f31=class extends _0x5db94a{constructor(_0x4169fb,_0x421a93,_0x147d1a,_0x2610e1,_0x941dd9,_0x537f9c,_0x4cbdb5,_0x42ae51,_0x1aaddf,_0xa1acc,_0x527d3b){const _0xfe5f79=_0x4ca2ee;super(_0x4169fb,_0x421a93,_0x147d1a,[],_0x2610e1,_0x4cbdb5,_0xa1acc,_0x537f9c,_0x527d3b),this[_0xfe5f79(0x3b1)]=_0x941dd9,this['_logService']=_0x42ae51,this[_0xfe5f79(0x1ba)]=_0x1aaddf,_0x4f9d46(this,_0xfe5f79(0x43c),_0xfe5f79(0x27e)),_0x4f9d46(this,_0xfe5f79(0x3a5),0x0),_0x4f9d46(this,'_maxTotalRetryTimeout',0x0),_0x4f9d46(this,_0xfe5f79(0x45d),void 0x0),_0x4f9d46(this,_0xfe5f79(0x2f3),void 0x0);}[_0x4ca2ee(0x461)](_0x25b759){const _0xc5a738=_0x4ca2ee;this[_0xc5a738(0x2a4)]();let _0x3f4c9a=this[_0xc5a738(0x3b1)][_0xc5a738(0x37d)](_0x47a7e4,this[_0xc5a738(0x272)],this[_0xc5a738(0x2db)],this['_awaitingChangeset'],[_0x25b759],this['_handler'],this[_0xc5a738(0x45d)]);return _0x3f4c9a[_0xc5a738(0x49e)](),_0x3f4c9a;}[_0x4ca2ee(0x439)](_0x46e9ff){const _0xf8f088=_0x4ca2ee;if(this[_0xf8f088(0x2d4)](_0x46e9ff))return this[_0xf8f088(0x2a4)](),this['_injector'][_0xf8f088(0x37d)](_0x23ae28,this[_0xf8f088(0x272)],this[_0xf8f088(0x2db)],this[_0xf8f088(0x185)],[],null,[_0x46e9ff],this[_0xf8f088(0x4c4)]);try{let _0x37f79a=this[_0xf8f088(0x1ba)][_0xf8f088(0x473)]([_0x46e9ff],[this['_awaitingChangeset']],!0x1);if((0x0,_0x18ba1c[_0xf8f088(0x3bb)])(_0x37f79a)){let {c1Prime:_0x2e07f5,c2Prime:_0x118cee}=_0x37f79a;this[_0xf8f088(0x355)](_0x2e07f5[0x0]),_0x118cee[0x0][_0xf8f088(0x335)]=this[_0xf8f088(0x470)](),this['_clearScheduledTask']();let _0x4ef9a2=this['_injector'][_0xf8f088(0x37d)](_0x87f31,this[_0xf8f088(0x272)],this['type'],_0x118cee[0x0],this[_0xf8f088(0x4c4)]);return _0x4ef9a2[_0xf8f088(0x49e)](),_0x4ef9a2;}throw _0x37f79a[_0xf8f088(0x2a2)];}catch(_0x45a010){return this[_0xf8f088(0x290)][_0xf8f088(0x2a2)](_0x45a010),this[_0xf8f088(0x253)](!0x1);}}[_0x4ca2ee(0x3ff)](_0x459b4d){const _0x322ac3=_0x4ca2ee;this[_0x322ac3(0x2a4)]();let _0x501098=this[_0x322ac3(0x4d8)][_0x322ac3(0x2ec)](this['unitID']);if(_0x459b4d[_0x322ac3(0x49f)]<=_0x501098)return this;if(this[_0x322ac3(0x2d4)](_0x459b4d))return this['_injector'][_0x322ac3(0x37d)](_0x23ae28,this[_0x322ac3(0x272)],this['type'],this[_0x322ac3(0x185)],[],_0x459b4d[_0x322ac3(0x49f)],[],this['_handler']);this['_incrementRevisionNumber']();let _0x5e3c11=this['_injector']['createInstance'](_0x1aec7f,this['unitID'],this[_0x322ac3(0x2db)],this[_0x322ac3(0x4c4)]);return _0x5e3c11[_0x322ac3(0x49e)](),_0x5e3c11;}[_0x4ca2ee(0x2e8)](_0xb2aabe){const _0x4b2350=_0x4ca2ee;return this[_0x4b2350(0x253)](!!(_0xb2aabe!=null&&_0xb2aabe[_0x4b2350(0x3fb)]));}[_0x4ca2ee(0x40f)](_0x206c84){const _0x12e6c0=_0x4ca2ee;return this[_0x12e6c0(0x34f)]>_0x106066?this[_0x12e6c0(0x378)]():(this[_0x12e6c0(0x45d)]=_0x29bef8(this[_0x12e6c0(0x3a5)],{'timeout':this['_resendTimeout'],'reqId':_0x206c84[_0x12e6c0(0x330)]}),this[_0x12e6c0(0x2f3)]=this['_resendTimer'][_0x12e6c0(0x3ae)](({reqId:_0x1c4a89,timeout:_0x1c3ba7})=>{const _0x5b1d21=_0x12e6c0;this[_0x5b1d21(0x1bf)](_0x1c4a89,_0x1c3ba7);}),this);}[_0x4ca2ee(0x378)](){const _0xf35ba9=_0x4ca2ee;return this[_0xf35ba9(0x2a4)](),this[_0xf35ba9(0x3b1)]['createInstance'](_0x4522d6,this[_0xf35ba9(0x272)],this[_0xf35ba9(0x2db)],this[_0xf35ba9(0x185)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x4ca2ee(0x3a6)](){const _0x20888d=_0x4ca2ee;this['_handler']['onSendChangeset'](this[_0x20888d(0x185)]);}[_0x4ca2ee(0x253)](_0x599870){const _0x2bb266=_0x4ca2ee;return this[_0x2bb266(0x2a4)](),this['_injector'][_0x2bb266(0x37d)](_0x2160a7,this[_0x2bb266(0x272)],this[_0x2bb266(0x2db)],this['_awaitingChangeset'],[],this['_handler'],_0x599870);}[_0x4ca2ee(0x1bf)](_0x34939e,_0x6c440d){const _0x33ab70=_0x4ca2ee;var _0x27ecf4;_0x34939e===((_0x27ecf4=this[_0x33ab70(0x185)])==null?void 0x0:_0x27ecf4[_0x33ab70(0x330)])&&(this[_0x33ab70(0x3a6)](),this[_0x33ab70(0x3a5)]=_0x6c440d===0x0?0x3e8:Math[_0x33ab70(0x200)](_0x6c440d*0x2,_0x43e9ec),this[_0x33ab70(0x34f)]+=this['_resendTimeout']);}[_0x4ca2ee(0x2a4)](){const _0x5f1c3a=_0x4ca2ee;var _0x418e54;(_0x418e54=this['_sender'])==null||_0x418e54['unsubscribe'](),this[_0x5f1c3a(0x3a5)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x1e430e=_0x87f31=_0x182061([_0x51b612(0x4,(0x0,_0x78cf9f['Inject'])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x6,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0x7,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0x8,_0x18ba1c['ITransformService']),_0x51b612(0x9,_0x78cf9f['IUndoRedoService']),_0x51b612(0xa,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x1e430e);let _0x47a7e4=_0x23e3eb=class extends _0x5db94a{constructor(_0x2ae1dc,_0x358d6f,_0x38591d,_0x54d162,_0x34b286,_0x4b0071,_0x5a32bc,_0x57b521,_0x48b404,_0x10369d,_0x4bb58e,_0xa0f28,_0x2d02f5){const _0x530fb1=_0x4ca2ee;super(_0x2ae1dc,_0x358d6f,_0x38591d,_0x54d162,_0x34b286,_0x48b404,_0xa0f28,_0x57b521,_0x2d02f5),this[_0x530fb1(0x3b1)]=_0x5a32bc,this[_0x530fb1(0x290)]=_0x10369d,this[_0x530fb1(0x1ba)]=_0x4bb58e,this['localCacheService']=_0x2d02f5,_0x4f9d46(this,_0x530fb1(0x43c),_0x530fb1(0x1af)),_0x4f9d46(this,'_resendTimeout',0x0),_0x4f9d46(this,'_maxTotalRetryTimeout',0x0),_0x4f9d46(this,_0x530fb1(0x45d),void 0x0),_0x4f9d46(this,_0x530fb1(0x2f3),void 0x0),_0x4b0071&&(this[_0x530fb1(0x45d)]=_0x4b0071,this[_0x530fb1(0x2f3)]=this[_0x530fb1(0x45d)][_0x530fb1(0x3ae)](({reqId:_0x21d20a,timeout:_0x2ba9d1})=>{this['_resendWithTimeout'](_0x21d20a,_0x2ba9d1);}));}[_0x4ca2ee(0x461)](_0x2715f8){const _0x5b282b=_0x4ca2ee;return this['_pendingMutations'][_0x5b282b(0x204)](_0x2715f8),this;}['onRemoteChangeset'](_0x543406){const _0x38c04a=_0x4ca2ee;if(this[_0x38c04a(0x2d4)](_0x543406))return this[_0x38c04a(0x2a4)](),this['_injector'][_0x38c04a(0x37d)](_0x23ae28,this['unitID'],this[_0x38c04a(0x2db)],this[_0x38c04a(0x185)],this[_0x38c04a(0x1f2)],null,[_0x543406],this[_0x38c04a(0x4c4)]);try{let _0x122f39=this[_0x38c04a(0x1ba)]['transformChangesets']([_0x543406],[this[_0x38c04a(0x185)]],!0x1);if((0x0,_0x18ba1c[_0x38c04a(0x3bb)])(_0x122f39)){let {c1Prime:_0x149bc3,c2Prime:_0x5e1bfe}=_0x122f39,_0x5ece6a=this['_transformService']['transformMutationsWithChangeset'](_0x149bc3[0x0],this['_pendingMutations']);if((0x0,_0x18ba1c[_0x38c04a(0x464)])(_0x5ece6a)){let {c1Prime:_0x144122,m2Prime:_0x469446}=_0x5ece6a;return this[_0x38c04a(0x355)](_0x144122),_0x5e1bfe[0x0][_0x38c04a(0x335)]=this['_getCurrentRevision'](),this[_0x38c04a(0x2a4)](),this[_0x38c04a(0x3b1)]['createInstance'](_0x23e3eb,this[_0x38c04a(0x272)],this[_0x38c04a(0x2db)],_0x5e1bfe[0x0],_0x469446,this[_0x38c04a(0x4c4)],void 0x0);}throw _0x5ece6a['error'];}throw _0x122f39['error'];}catch(_0x582efa){return this[_0x38c04a(0x290)][_0x38c04a(0x2a2)](_0x582efa),this[_0x38c04a(0x253)](!0x1);}}[_0x4ca2ee(0x3ff)](_0x4adc20){const _0xf9f920=_0x4ca2ee;this['_clearScheduledTask']();let _0x401543=this[_0xf9f920(0x470)]();if(_0x4adc20[_0xf9f920(0x49f)]<=_0x401543)return this;if(this[_0xf9f920(0x2d4)](_0x4adc20))return this[_0xf9f920(0x3b1)][_0xf9f920(0x37d)](_0x23ae28,this['unitID'],this[_0xf9f920(0x2db)],this[_0xf9f920(0x185)],this[_0xf9f920(0x1f2)],_0x4adc20['revision'],[],this[_0xf9f920(0x4c4)]);this['_incrementRevisionNumber']();let _0x6de84=this[_0xf9f920(0x3b1)][_0xf9f920(0x37d)](_0x2b8409,this[_0xf9f920(0x272)],this['type'],this['_pendingMutations'],this[_0xf9f920(0x4c4)]);return _0x6de84['_schedule'](),_0x6de84[_0xf9f920(0x49e)](),_0x6de84;}[_0x4ca2ee(0x2e8)](_0x39d301){const _0x14a0cd=_0x4ca2ee;return this[_0x14a0cd(0x253)](!!(_0x39d301!=null&&_0x39d301[_0x14a0cd(0x3fb)]));}[_0x4ca2ee(0x40f)](_0x2857b1){const _0x3b222d=_0x4ca2ee;return this[_0x3b222d(0x34f)]>_0x106066?this['toggleOffline']():(this[_0x3b222d(0x45d)]=_0x29bef8(this[_0x3b222d(0x3a5)],{'timeout':this['_resendTimeout'],'reqId':_0x2857b1['reqId']}),this[_0x3b222d(0x2f3)]=this[_0x3b222d(0x45d)][_0x3b222d(0x3ae)](({reqId:_0xc53c20,timeout:_0x45630a})=>{const _0x3ed511=_0x3b222d;this[_0x3ed511(0x1bf)](_0xc53c20,_0x45630a);}),this);}['toggleOffline'](){const _0x211655=_0x4ca2ee;return this[_0x211655(0x2a4)](),this[_0x211655(0x3b1)][_0x211655(0x37d)](_0x4522d6,this[_0x211655(0x272)],this[_0x211655(0x2db)],this[_0x211655(0x185)],this[_0x211655(0x1f2)],this[_0x211655(0x4c4)]);}[_0x4ca2ee(0x167)](){return this;}[_0x4ca2ee(0x3a6)](){const _0x49313e=_0x4ca2ee;this[_0x49313e(0x4c4)]['onSendChangeset'](this[_0x49313e(0x185)]);}['_onConflict'](_0x41146f){const _0x1a3a8f=_0x4ca2ee;return this[_0x1a3a8f(0x2a4)](),this[_0x1a3a8f(0x3b1)]['createInstance'](_0x2160a7,this[_0x1a3a8f(0x272)],this[_0x1a3a8f(0x2db)],null,this[_0x1a3a8f(0x1f2)],this[_0x1a3a8f(0x4c4)],_0x41146f);}['_resendWithTimeout'](_0x6e9c9b,_0x91e07d){const _0x26e4f4=_0x4ca2ee;var _0x2d57e2;_0x6e9c9b===((_0x2d57e2=this['_awaitingChangeset'])==null?void 0x0:_0x2d57e2['reqId'])&&(this['resend'](),this[_0x26e4f4(0x3a5)]=_0x91e07d===0x0?0x3e8:Math[_0x26e4f4(0x200)](_0x91e07d*0x2,_0x43e9ec),this[_0x26e4f4(0x34f)]+=this[_0x26e4f4(0x3a5)]);}['_clearScheduledTask'](){const _0x596d38=_0x4ca2ee;var _0x426edb;(_0x426edb=this['_sender'])==null||_0x426edb['unsubscribe'](),this[_0x596d38(0x3a5)]=0x0,this[_0x596d38(0x34f)]=0x0;}};_0x47a7e4=_0x23e3eb=_0x182061([_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['Injector'])),_0x51b612(0x7,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c['RevisionService'])),_0x51b612(0x8,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0x9,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0xa,_0x18ba1c[_0x4ca2ee(0x371)]),_0x51b612(0xb,_0x78cf9f[_0x4ca2ee(0x2ef)]),_0x51b612(0xc,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x47a7e4);let _0x2160a7=class extends _0x5db94a{constructor(_0x79c875,_0xfb6ad0,_0x5acbbf,_0x547598,_0x40725e,_0x3aca54=!0x1,_0x53d1d7,_0x28cae4,_0x47a0d8,_0xdc6af9,_0x34770b,_0x1aa271,_0xbc515e){const _0x238987=_0x4ca2ee;super(_0x79c875,_0xfb6ad0,_0x5acbbf,_0x547598,_0x40725e,_0x28cae4,_0x47a0d8,_0xdc6af9,_0xbc515e),this[_0x238987(0x3de)]=_0x3aca54,this[_0x238987(0x305)]=_0x53d1d7,this[_0x238987(0x1bd)]=_0x34770b,this[_0x238987(0x286)]=_0x1aa271,this[_0x238987(0x41d)]=_0xbc515e,_0x4f9d46(this,_0x238987(0x43c),_0x238987(0x298)),this[_0x238987(0x24b)](),this[_0x238987(0x4ba)](),this[_0x238987(0x2e2)]();}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x4ca2ee(0x3ff)](){return this;}[_0x4ca2ee(0x2e8)](){return this;}[_0x4ca2ee(0x40f)](){return this;}[_0x4ca2ee(0x378)](){return this;}[_0x4ca2ee(0x167)](){return this;}[_0x4ca2ee(0x3a6)](){const _0x11a488=_0x4ca2ee;throw Error(_0x11a488(0x17e));}async['_prepareConflictRecovery'](){const _0x18fead=_0x4ca2ee;var _0x3c12db,_0xd9cf26;await((_0x3c12db=this[_0x18fead(0x455)])==null||(_0xd9cf26=_0x3c12db[_0x18fead(0x1fe)])==null?void 0x0:_0xd9cf26['call'](_0x3c12db,this[_0x18fead(0x272)],'conflict')['catch'](()=>void 0x0));try{var _0xf2c23f;await((_0xf2c23f=this['_localCacheService'])==null?void 0x0:_0xf2c23f[_0x18fead(0x437)](this[_0x18fead(0x272)]));}catch{this['_collaborationUIEventService'][_0x18fead(0x17d)]({'id':_0x18fead(0x27f),'unitID':this[_0x18fead(0x272)]});return;}this[_0x18fead(0x376)]();}[_0x4ca2ee(0x4ba)](){const _0x7d09a4=_0x4ca2ee;this[_0x7d09a4(0x286)][_0x7d09a4(0x17d)]({'id':_0x7d09a4(0x1d4)});}[_0x4ca2ee(0x376)](){const _0x2f9003=_0x4ca2ee;this['_isPermissionRej']?this['_collaborationUIEventService'][_0x2f9003(0x17d)]({'id':'PERMISSION_DENIED'}):this[_0x2f9003(0x286)][_0x2f9003(0x17d)]({'id':_0x2f9003(0x21a)});}[_0x4ca2ee(0x24b)](){const _0x286b9f=_0x4ca2ee;this[_0x286b9f(0x305)][_0x286b9f(0x29a)](new _0x1c5171[(_0x286b9f(0x451))](this[_0x286b9f(0x272)])['id'],!0x1);}};_0x2160a7=_0x182061([_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['IPermissionService'])),_0x51b612(0x7,_0x78cf9f['ICommandService']),_0x51b612(0x8,_0x78cf9f['IUndoRedoService']),_0x51b612(0x9,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0xa,(0x0,_0x78cf9f['Inject'])(_0x78cf9f[_0x4ca2ee(0x17a)])),_0x51b612(0xb,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6)),_0x51b612(0xc,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x2160a7);let _0x4522d6=class extends _0x5db94a{constructor(_0x432ef4,_0x33defd,_0x56ce85,_0x55df42,_0x242c23,_0x441461,_0x9d58bb,_0x4e04b1,_0x479e43,_0x1f8709){const _0x116bdb=_0x4ca2ee;super(_0x432ef4,_0x33defd,_0x56ce85,_0x55df42,_0x242c23,_0x4e04b1,_0x479e43,_0x9d58bb,_0x1f8709),this[_0x116bdb(0x3b1)]=_0x441461,_0x4f9d46(this,'status','offline');}['appendMutation'](_0x25057b){return this['_pendingMutations']['push'](_0x25057b),this['_updateLocalCache'](),this;}[_0x4ca2ee(0x439)](_0x2b3eb9){const _0x120c6d=_0x4ca2ee;throw Error(_0x120c6d(0x2b2));}[_0x4ca2ee(0x3ff)](){const _0x253196=_0x4ca2ee;throw Error(_0x253196(0x239));}[_0x4ca2ee(0x2e8)](){const _0x183e45=_0x4ca2ee;throw Error(_0x183e45(0x346));}[_0x4ca2ee(0x40f)](){return this;}[_0x4ca2ee(0x378)](){return this;}[_0x4ca2ee(0x167)](){const _0x15c71d=_0x4ca2ee;let {_injector:_0x59c65b,_pendingMutations:_0x19ba8e,_awaitingChangeset:_0x74004e,unitID:_0x3767ca,_handler:_0x4976bf,type:_0x155fce}=this,_0x1f4cfd=_0x22c800(_0x59c65b,_0x3767ca,_0x155fce,_0x74004e,_0x19ba8e,_0x4976bf);return _0x1f4cfd instanceof _0x2b8409?_0x1f4cfd[_0x15c71d(0x3f7)]():(_0x1f4cfd instanceof _0x47a7e4||_0x1f4cfd instanceof _0x1e430e)&&_0x1f4cfd[_0x15c71d(0x3a6)](),_0x1f4cfd;}['resend'](){const _0x4fe84c=_0x4ca2ee;throw Error(_0x4fe84c(0x3b9));}};_0x4522d6=_0x182061([_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x7,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0x8,_0x78cf9f[_0x4ca2ee(0x2ef)]),_0x51b612(0x9,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x4522d6);let _0x23ae28=class extends _0x5db94a{constructor(_0x52fb8e,_0x23e1ee,_0x254a3c,_0x1e3150,_0xde5e40,_0x5025f8,_0x34a7d2,_0xa873d,_0x35f807,_0x5601ab,_0x22fda2,_0x4a692c,_0x3f9e68,_0x491af5){const _0x4f2853=_0x4ca2ee;super(_0x52fb8e,_0x23e1ee,_0x254a3c,_0x1e3150,_0x34a7d2,_0x22fda2,_0x4a692c,_0x35f807,_0x491af5),this['_acknowledgedAwaitingRevision']=_0xde5e40,this['_queuedRemoteChangesets']=_0x5025f8,this[_0x4f2853(0x3b1)]=_0xa873d,this['_logService']=_0x5601ab,this[_0x4f2853(0x1ba)]=_0x3f9e68,this[_0x4f2853(0x41d)]=_0x491af5,_0x4f9d46(this,_0x4f2853(0x43c),'fetch_missing');}[_0x4ca2ee(0x1ed)](_0x4573d4){const _0x58373a=_0x4ca2ee;try{if(this[_0x58373a(0x172)](_0x4573d4)[_0x58373a(0x26c)])throw Error(_0x58373a(0x4d5));if(this[_0x58373a(0x172)]([...this[_0x58373a(0x236)]][_0x58373a(0x22d)]((_0x4b3989,_0x6335ae)=>_0x4b3989[_0x58373a(0x49f)]-_0x6335ae[_0x58373a(0x49f)]))[_0x58373a(0x26c)])return this[_0x58373a(0x236)]=[],this[_0x58373a(0x49e)](),this[_0x58373a(0x4c4)][_0x58373a(0x4a3)]({'from':this[_0x58373a(0x470)](),'to':0x0}),this;let _0x525df8=this[_0x58373a(0x185)],_0x3eeffe=this[_0x58373a(0x1f2)],_0x26c1f5;if(_0x525df8&&_0x3eeffe[_0x58373a(0x452)]!==0x0)_0x26c1f5=this[_0x58373a(0x3b1)][_0x58373a(0x37d)](_0x47a7e4,this[_0x58373a(0x272)],this['type'],_0x525df8,_0x3eeffe,this[_0x58373a(0x4c4)],void 0x0);else{if(_0x525df8&&_0x3eeffe['length']===0x0)_0x525df8[_0x58373a(0x335)]=this[_0x58373a(0x470)](),_0x26c1f5=this[_0x58373a(0x3b1)][_0x58373a(0x37d)](_0x1e430e,this[_0x58373a(0x272)],this[_0x58373a(0x2db)],_0x525df8,this[_0x58373a(0x4c4)]);else{if(_0x3eeffe[_0x58373a(0x452)]!==0x0){let _0x253757=this[_0x58373a(0x3b1)][_0x58373a(0x37d)](_0x2b8409,this[_0x58373a(0x272)],this[_0x58373a(0x2db)],_0x3eeffe,this[_0x58373a(0x4c4)]);_0x253757[_0x58373a(0x3f7)](),_0x26c1f5=_0x253757;}else _0x26c1f5=this['_injector'][_0x58373a(0x37d)](_0x1aec7f,this[_0x58373a(0x272)],this[_0x58373a(0x2db)],this[_0x58373a(0x4c4)]);}}return _0x26c1f5[_0x58373a(0x49e)](),_0x26c1f5;}catch(_0x38f89e){return this['_logService']['error']('[FetchMissState]',_0x58373a(0x38e),_0x38f89e),this[_0x58373a(0x3b1)][_0x58373a(0x37d)](_0x2160a7,this['unitID'],this[_0x58373a(0x2db)],this[_0x58373a(0x185)],this[_0x58373a(0x1f2)],this['_handler'],!0x1);}}[_0x4ca2ee(0x172)](_0x1333b4){const _0x9c5ad2=_0x4ca2ee;this[_0x9c5ad2(0x3cd)]();for(let _0x1a286f=0x0;_0x1a286f<_0x1333b4[_0x9c5ad2(0x452)];_0x1a286f++){let _0x382a01=_0x1333b4[_0x1a286f],_0x562f66=this[_0x9c5ad2(0x470)]();if(!(_0x382a01['revision']<=_0x562f66)){if(_0x382a01[_0x9c5ad2(0x49f)]>_0x562f66+0x1)return{'missingChangesets':!0x0};if(this[_0x9c5ad2(0x242)](_0x382a01)){this[_0x9c5ad2(0x436)]();continue;}this[_0x9c5ad2(0x4c7)](_0x382a01),this[_0x9c5ad2(0x3cd)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x13ace1){const _0x41d821=_0x4ca2ee;let _0x225069=_0x13ace1,_0x144ab=this[_0x41d821(0x185)];if(_0x144ab){let _0x4e6755=this[_0x41d821(0x1ba)][_0x41d821(0x473)]([_0x13ace1],[_0x144ab],!0x1);if(!(0x0,_0x18ba1c[_0x41d821(0x3bb)])(_0x4e6755))throw _0x4e6755[_0x41d821(0x2a2)];_0x225069=_0x4e6755[_0x41d821(0x1e7)][0x0],_0x144ab=_0x4e6755[_0x41d821(0x243)][0x0];}let _0x3185d6=this[_0x41d821(0x1f2)];if(_0x3185d6[_0x41d821(0x452)]){let _0x440936=this[_0x41d821(0x1ba)][_0x41d821(0x2d0)](_0x225069,_0x3185d6);if(!(0x0,_0x18ba1c[_0x41d821(0x464)])(_0x440936))throw _0x440936[_0x41d821(0x2a2)];_0x225069=_0x440936[_0x41d821(0x1e7)],_0x3185d6=_0x440936[_0x41d821(0x375)];}this[_0x41d821(0x355)](_0x225069),_0x144ab&&(_0x144ab[_0x41d821(0x335)]=this['_getCurrentRevision']()),this[_0x41d821(0x185)]=_0x144ab,this[_0x41d821(0x1f2)]=_0x3185d6;}[_0x4ca2ee(0x3cd)](){const _0xd33b2f=_0x4ca2ee;if(!this['_awaitingChangeset']||this[_0xd33b2f(0x466)]==null)return;let _0x2eadeb=this['_getCurrentRevision']();if(this['_acknowledgedAwaitingRevision']<=_0x2eadeb)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this[_0xd33b2f(0x466)]+'.');this['_acknowledgedAwaitingRevision']===_0x2eadeb+0x1&&this[_0xd33b2f(0x436)]();}[_0x4ca2ee(0x436)](){const _0x3a176d=_0x4ca2ee;this[_0x3a176d(0x18c)](),this[_0x3a176d(0x185)]=null,this[_0x3a176d(0x466)]=null;}[_0x4ca2ee(0x242)](_0x403f29){const _0x5f65e2=_0x4ca2ee;let _0x1e211d=this[_0x5f65e2(0x185)];return!_0x1e211d||!_0x1e211d[_0x5f65e2(0x1a5)]||_0x1e211d[_0x5f65e2(0x330)]===null||_0x1e211d[_0x5f65e2(0x330)]===void 0x0?!0x1:_0x403f29[_0x5f65e2(0x272)]===_0x1e211d['unitID']&&_0x403f29[_0x5f65e2(0x1a5)]===_0x1e211d['sid']&&_0x403f29['reqId']===_0x1e211d['reqId'];}[_0x4ca2ee(0x3a6)](){const _0x3aff9c=_0x4ca2ee;throw Error(_0x3aff9c(0x29f));}['appendMutation'](_0x3ba2cc){const _0x49cacb=_0x4ca2ee;return this['_pendingMutations'][_0x49cacb(0x204)](_0x3ba2cc),this;}[_0x4ca2ee(0x439)](_0x26170c){const _0x494c6a=_0x4ca2ee;return this[_0x494c6a(0x236)][_0x494c6a(0x204)](_0x26170c),this;}[_0x4ca2ee(0x3ff)](_0xc0239c){const _0x111657=_0x4ca2ee;if(this[_0x111657(0x185)]){let _0x229686=this[_0x111657(0x470)]();return _0xc0239c[_0x111657(0x49f)]<=_0x229686||(_0x229686+0x1===_0xc0239c['revision']?(this[_0x111657(0x18c)](),this[_0x111657(0x185)]=null,this[_0x111657(0x466)]=null):this['_acknowledgedAwaitingRevision']=_0xc0239c[_0x111657(0x49f)]),this;}if(_0xc0239c[_0x111657(0x49f)]<=this[_0x111657(0x470)]())return this;throw Error(_0x111657(0x2e3));}[_0x4ca2ee(0x2e8)](_0x585ec9){const _0x39f4aa=_0x4ca2ee;return this[_0x39f4aa(0x253)](!!(_0x585ec9!=null&&_0x585ec9[_0x39f4aa(0x3fb)]));}['onRemoteRetry'](){return this;}[_0x4ca2ee(0x378)](){const _0x627040=_0x4ca2ee;return this[_0x627040(0x3b1)]['createInstance'](_0x4522d6,this[_0x627040(0x272)],this[_0x627040(0x2db)],this['_awaitingChangeset'],this[_0x627040(0x1f2)],this[_0x627040(0x4c4)]);}[_0x4ca2ee(0x167)](){return this;}[_0x4ca2ee(0x253)](_0x7a46eb){const _0x1af03b=_0x4ca2ee;return this[_0x1af03b(0x3b1)][_0x1af03b(0x37d)](_0x2160a7,this[_0x1af03b(0x272)],this[_0x1af03b(0x2db)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],_0x7a46eb);}};_0x23ae28=_0x182061([_0x51b612(0x7,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['Injector'])),_0x51b612(0x8,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x9,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0xa,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0xb,_0x78cf9f[_0x4ca2ee(0x2ef)]),_0x51b612(0xc,_0x18ba1c['ITransformService']),_0x51b612(0xd,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x23ae28);function _0x22c800(_0x117d64,_0x2bd4b3,_0x261a2e,_0x388124,_0x25b83f,_0x4628d3){const _0x5096f9=_0x4ca2ee;return _0x388124&&_0x25b83f[_0x5096f9(0x452)]?_0x117d64['createInstance'](_0x47a7e4,_0x2bd4b3,_0x261a2e,_0x388124,_0x25b83f,_0x4628d3,void 0x0):_0x388124?_0x117d64['createInstance'](_0x1e430e,_0x2bd4b3,_0x261a2e,_0x388124,_0x4628d3):_0x25b83f['length']?_0x117d64['createInstance'](_0x2b8409,_0x2bd4b3,_0x261a2e,_0x25b83f,_0x4628d3):_0x117d64[_0x5096f9(0x37d)](_0x1aec7f,_0x2bd4b3,_0x261a2e,_0x4628d3);}let _0x41b76f=class extends _0x78cf9f['RxDisposable']{get[_0x4ca2ee(0x23c)](){const _0x184699=_0x4ca2ee;return this[_0x184699(0x2d7)];}constructor(_0x32baa5,_0x3b66b0,_0x55aa1f,_0x4d1978,_0x15ac18,_0x5b97a4,_0x314b59,_0x3ebf42,_0x583153,_0x5c0926,_0x3755c7,_0x31fea3,_0x270963,_0x32f287){const _0x37b303=_0x4ca2ee;super(),this['unitID']=_0x32baa5,this['session']=_0x3b66b0,this['_type']=_0x55aa1f,this[_0x37b303(0x3b1)]=_0x4d1978,this[_0x37b303(0x16e)]=_0x15ac18,this['_localeService']=_0x5b97a4,this[_0x37b303(0x4d8)]=_0x314b59,this[_0x37b303(0x3e0)]=_0x3ebf42,this[_0x37b303(0x3fa)]=_0x583153,this[_0x37b303(0x290)]=_0x5c0926,this[_0x37b303(0x23d)]=_0x3755c7,this[_0x37b303(0x305)]=_0x31fea3,this[_0x37b303(0x394)]=_0x270963,this[_0x37b303(0x455)]=_0x32f287,_0x4f9d46(this,_0x37b303(0x387),new _0x42b37f[(_0x37b303(0x43f))](null)),_0x4f9d46(this,'state$',this[_0x37b303(0x387)][_0x37b303(0x4d3)]()),_0x4f9d46(this,_0x37b303(0x2d7),void 0x0),_0x4f9d46(this,_0x37b303(0x203),!0x1),_0x4f9d46(this,_0x37b303(0x21e),''),_0x4f9d46(this,'_changesetReqId',0x0),_0x4f9d46(this,_0x37b303(0x336),this[_0x37b303(0x343)][_0x37b303(0x28c)]((0x0,_0x42b37f[_0x37b303(0x2b8)])(_0x1ffce2=>_0x1ffce2?_0x1ffce2[_0x37b303(0x43c)]:'offline'),(0x0,_0x42b37f[_0x37b303(0x2c8)])({'bufferSize':0x1,'refCount':!0x0}))),_0x4f9d46(this,'_transitionLocked',!0x1),_0x4f9d46(this,_0x37b303(0x1aa),[]);}async[_0x4ca2ee(0x3d7)](){const _0x2a664c=_0x4ca2ee;if(this[_0x2a664c(0x23c)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x2a664c(0x334)]();}[_0x4ca2ee(0x179)](){const _0x31b743=_0x4ca2ee;return this[_0x31b743(0x203)]=!0x0,(0x0,_0x78cf9f[_0x31b743(0x235)])(()=>{const _0x55e68e=_0x31b743;this['_collaborationPaused']=!0x1,this[_0x55e68e(0x256)]();});}[_0x4ca2ee(0x428)](_0xfedc72){const _0x1d17ff=_0x4ca2ee;this[_0x1d17ff(0x438)](_0xfedc72);}['_updateState'](_0x147802){const _0xe216d0=_0x4ca2ee;this[_0xe216d0(0x2d7)]=_0x147802,this[_0xe216d0(0x387)]['next'](_0x147802);}async['_init'](){const _0x33c3c0=_0x4ca2ee;if(this[_0x33c3c0(0x415)](await this[_0x33c3c0(0x32c)]()),this[_0x33c3c0(0x394)]){var _0xdc93b9;(_0xdc93b9=this[_0x33c3c0(0x394)])==null||_0xdc93b9[_0x33c3c0(0x31e)](this[_0x33c3c0(0x272)]),this['disposeWithMe'](this[_0x33c3c0(0x394)][_0x33c3c0(0x28e)](this[_0x33c3c0(0x272)])[_0x33c3c0(0x3ae)](_0x443439=>{const _0x4d9c41=_0x33c3c0;this[_0x4d9c41(0x290)][_0x4d9c41(0x206)]('[CollaborationEntity]',_0x4d9c41(0x1ff),_0x443439),_0x443439===0x1?(this[_0x4d9c41(0x3e0)]['emitEvent']({'id':'OTHER_CLIENT_EDITING'}),this[_0x4d9c41(0x305)][_0x4d9c41(0x29a)](new _0x1c5171[(_0x4d9c41(0x451))](this[_0x4d9c41(0x272)])['id'],!0x1),this[_0x4d9c41(0x305)]['setShowComponents'](!0x1)):(this[_0x4d9c41(0x305)][_0x4d9c41(0x29a)](new _0x1c5171['WorkbookEditablePermission'](this[_0x4d9c41(0x272)])['id'],!0x0),this[_0x4d9c41(0x305)][_0x4d9c41(0x1ae)](!0x0));}));}let _0x3ffc81=!0x1;return this[_0x33c3c0(0x2f7)](this[_0x33c3c0(0x353)][_0x33c3c0(0x3dd)][_0x33c3c0(0x3ae)](_0x52b8ce=>{const _0x4b7644=_0x33c3c0;_0x52b8ce===0x3?this[_0x4b7644(0x44f)](_0x3ffc81):_0x52b8ce===0x2&&(_0x3ffc81=!0x0,this[_0x4b7644(0x3c9)]());})),this[_0x33c3c0(0x2f7)](this[_0x33c3c0(0x353)][_0x33c3c0(0x43b)][_0x33c3c0(0x3ae)](_0x3df74f=>{const _0x256758=_0x33c3c0;try{switch(_0x3df74f[_0x256758(0x34b)]){case _0x18ba1c[_0x256758(0x3aa)][_0x256758(0x277)]:this[_0x256758(0x2e6)]((0x0,_0x18ba1c[_0x256758(0x164)])(_0x3df74f[_0x256758(0x3d6)]));break;case _0x18ba1c[_0x256758(0x3aa)][_0x256758(0x2fb)]:this[_0x256758(0x2ba)](_0x3df74f['data']);break;case _0x18ba1c[_0x256758(0x3aa)][_0x256758(0x4be)]:this[_0x256758(0x36c)]();break;case _0x18ba1c['CollaborationEvent'][_0x256758(0x446)]:this[_0x256758(0x17b)](_0x3df74f[_0x256758(0x3d6)]);break;case _0x18ba1c[_0x256758(0x3aa)][_0x256758(0x34a)]:this[_0x256758(0x1ef)](_0x3df74f[_0x256758(0x3d6)][_0x256758(0x28d)]['map'](_0x2b05ab=>(0x0,_0x18ba1c['parseProtocolChangeset'])(_0x2b05ab)));break;case _0x18ba1c[_0x256758(0x3aa)][_0x256758(0x2fe)]:this[_0x256758(0x36c)]({'isPermissionRej':!0x0});break;case _0x18ba1c[_0x256758(0x3aa)][_0x256758(0x385)]:}}catch(_0x2cc3ce){throw console[_0x256758(0x2a2)]('Error\x20on\x20receiving\x20event',_0x2cc3ce),_0x2cc3ce;}})),this[_0x33c3c0(0x2d7)];}[_0x4ca2ee(0x3d8)](){this['_transitionLocked']=!0x1;}[_0x4ca2ee(0x44a)](){const _0x37167d=_0x4ca2ee;if(this['_transitionLocked'])throw Error(_0x37167d(0x3c1));this[_0x37167d(0x2a5)]=!0x0;}['_onLocalMutation'](_0x5742a3){const _0x58c53c=_0x4ca2ee;this['_lockTransition'](),this[_0x58c53c(0x415)](this[_0x58c53c(0x2d7)]['appendMutation'](_0x5742a3)),this[_0x58c53c(0x3d8)]();}[_0x4ca2ee(0x2e6)](_0x583452){const _0xb3c91f=_0x4ca2ee;if(!(_0x583452['revision']<=this[_0xb3c91f(0x4d8)][_0xb3c91f(0x2ec)](this[_0xb3c91f(0x272)]))){if(this[_0xb3c91f(0x203)]){this[_0xb3c91f(0x1aa)]['push'](_0x583452);return;}this[_0xb3c91f(0x230)](_0x583452);}}['_exhaustRemoteChangesetQueue'](){const _0x33f0e0=_0x4ca2ee;this[_0x33f0e0(0x1aa)][_0x33f0e0(0x1e9)](_0x13af12=>this[_0x33f0e0(0x230)](_0x13af12)),this[_0x33f0e0(0x1aa)]=[];}[_0x4ca2ee(0x230)](_0x15bc63){const _0x42588b=_0x4ca2ee;let _0x112ef0=this[_0x42588b(0x16e)][_0x42588b(0x3f4)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x42588b(0x3f4)][_0x42588b(0x469)]()[_0x42588b(0x311)])(_0x15bc63['mutations'],null)||_0x15bc63[_0x42588b(0x434)],_0x49f022={..._0x15bc63,'mutations':_0x112ef0};this[_0x42588b(0x44a)](),this[_0x42588b(0x415)](this['_state']['onRemoteChangeset'](_0x49f022)),this[_0x42588b(0x3d8)]();}[_0x4ca2ee(0x2ba)](_0x5e41eb){const _0x199e0b=_0x4ca2ee;this[_0x199e0b(0x44a)](),this[_0x199e0b(0x415)](this[_0x199e0b(0x2d7)][_0x199e0b(0x3ff)](_0x5e41eb)),this[_0x199e0b(0x3d8)]();}[_0x4ca2ee(0x36c)](_0x486625){const _0x539cf6=_0x4ca2ee;this[_0x539cf6(0x44a)](),this[_0x539cf6(0x415)](this[_0x539cf6(0x2d7)][_0x539cf6(0x2e8)](_0x486625)),this['_unlockTransition']();}[_0x4ca2ee(0x17b)](_0x52a44f){const _0x568196=_0x4ca2ee;this[_0x568196(0x44a)](),this[_0x568196(0x415)](this[_0x568196(0x2d7)][_0x568196(0x40f)](_0x52a44f)),this['_unlockTransition']();}[_0x4ca2ee(0x1ef)](_0x299354){const _0x321354=_0x4ca2ee;if(!(this[_0x321354(0x2d7)]instanceof _0x23ae28))throw TypeError(_0x321354(0x318));let _0x2042a3=_0x299354[_0x321354(0x2b8)](_0x3d3e93=>{const _0x3c6eb7=_0x321354;let _0x52e2d0=this[_0x3c6eb7(0x16e)][_0x3c6eb7(0x3f4)][_0x3c6eb7(0x162)](this[_0x3c6eb7(0x16e)][_0x3c6eb7(0x3f4)][_0x3c6eb7(0x469)]()[_0x3c6eb7(0x311)])(_0x3d3e93[_0x3c6eb7(0x434)],null)||_0x3d3e93['mutations'];return{..._0x3d3e93,'mutations':_0x52e2d0};});this[_0x321354(0x44a)](),this[_0x321354(0x415)](this[_0x321354(0x2d7)][_0x321354(0x1ed)](_0x2042a3)),this[_0x321354(0x3d8)]();}[_0x4ca2ee(0x3c9)](){const _0x248c6a=_0x4ca2ee;this[_0x248c6a(0x44a)](),this['_updateState'](this[_0x248c6a(0x2d7)][_0x248c6a(0x378)]()),this[_0x248c6a(0x3d8)]();}[_0x4ca2ee(0x44f)](_0x1782eb=!0x1){const _0x3c33aa=_0x4ca2ee;this['_lockTransition'](),this[_0x3c33aa(0x415)](this['_state'][_0x3c33aa(0x167)]()),this[_0x3c33aa(0x3d8)]();let _0xe158da=this[_0x3c33aa(0x2d7)];_0x1782eb&&_0xe158da instanceof _0x1aec7f&&(this[_0x3c33aa(0x44a)](),this[_0x3c33aa(0x415)](_0xe158da[_0x3c33aa(0x3e9)]()),this[_0x3c33aa(0x3d8)]());}async[_0x4ca2ee(0x32c)](){return new Promise(_0x2a05ee=>{const _0x5172b1=_0x41d6;this['session'][_0x5172b1(0x3dd)][_0x5172b1(0x28c)]((0x0,_0x42b37f[_0x5172b1(0x2c0)])(0x1))[_0x5172b1(0x3ae)](async _0x47f9f2=>{const _0x400bc7=_0x5172b1;_0x2a05ee(await this[_0x400bc7(0x271)](_0x47f9f2===0x3));});});}['_createHandler'](){const _0x4ed1d4=_0x4ca2ee;let _0x59f2ca=this[_0x4ed1d4(0x272)];return{'onStateChange':(_0x131aa5,_0x16840b)=>{const _0x1388e6=_0x4ed1d4;if(_0x131aa5!==this['_state'])throw Error(_0x1388e6(0x3b2)+_0x131aa5[_0x1388e6(0x43c)]+_0x1388e6(0x313)+_0x16840b['status']+'\x0aCurrent:\x20'+this[_0x1388e6(0x2d7)]['status']);this[_0x1388e6(0x415)](_0x16840b);},'onSendChangeset':_0x3ba6d4=>{const _0x4e3c31=_0x4ed1d4;_0x3ba6d4[_0x4e3c31(0x1a5)]||(_0x3ba6d4[_0x4e3c31(0x1a5)]=this['_changesetSessionId'],_0x3ba6d4['reqId']=++this['_changesetReqId']);let _0x28016c={'eventID':_0x18ba1c[_0x4e3c31(0x3aa)][_0x4e3c31(0x423)],'data':{'unitID':_0x3ba6d4[_0x4e3c31(0x272)],'unitType':this[_0x4e3c31(0x351)],'changeset':_0x3ba6d4,'memberID':this['session'][_0x4e3c31(0x4ca)]()}};this[_0x4e3c31(0x353)]['send'](_0x28016c,this[_0x4e3c31(0x272)]);},'onMissingChangesets':({from:_0x15c689,to:_0x2934fc})=>{const _0x25c0b6=_0x4ed1d4;this[_0x25c0b6(0x290)][_0x25c0b6(0x206)](_0x25c0b6(0x3bd),'fetching\x20missing\x20changesets\x20from\x20'+_0x15c689+_0x25c0b6(0x258)+_0x2934fc);let _0x222efe={'eventID':_0x18ba1c[_0x25c0b6(0x3aa)]['FETCH_MISSING'],'data':{'unitID':_0x59f2ca,'unitType':this[_0x25c0b6(0x351)],'from':_0x15c689,'to':_0x2934fc}};this['session']['send'](_0x222efe,this[_0x25c0b6(0x272)]);}};}async[_0x4ca2ee(0x271)](_0x1d4edc){const _0x1c49db=_0x4ca2ee;var _0x3c4db5;let _0x14e6ba=await((_0x3c4db5=this[_0x1c49db(0x455)])==null?void 0x0:_0x3c4db5[_0x1c49db(0x406)](this[_0x1c49db(0x272)])),_0x464d48=(_0x14e6ba==null?void 0x0:_0x14e6ba[_0x1c49db(0x434)])??[],_0x4602f8=(_0x14e6ba==null?void 0x0:_0x14e6ba['awaitingChangeset'])??null,_0x5ea1eb=!!(_0x4602f8!=null&&_0x4602f8[_0x1c49db(0x1a5)])&&!!(_0x4602f8!=null&&_0x4602f8[_0x1c49db(0x330)]);this[_0x1c49db(0x21e)]=_0x5ea1eb?_0x4602f8['sid']:(0x0,_0x18ba1c[_0x1c49db(0x275)])(),this[_0x1c49db(0x16b)]=_0x5ea1eb?_0x4602f8[_0x1c49db(0x330)]:0x0;let _0x2d4556=this[_0x1c49db(0x272)];try{this['_replayCachedMutations'](_0x4602f8,_0x464d48);}catch(_0x2ef6ab){this[_0x1c49db(0x290)]['error'](_0x2ef6ab);}let _0x510265=this[_0x1c49db(0x307)]();if(_0x1d4edc){let _0x12109a=_0x22c800(this[_0x1c49db(0x3b1)],_0x2d4556,this['_type'],_0x4602f8,_0x464d48,_0x510265);return _0x12109a instanceof _0x2b8409?_0x12109a[_0x1c49db(0x3f7)]():(_0x12109a instanceof _0x47a7e4||_0x12109a instanceof _0x1e430e)&&_0x12109a[_0x1c49db(0x3a6)](),_0x12109a;}return this['_injector'][_0x1c49db(0x37d)](_0x4522d6,_0x2d4556,this[_0x1c49db(0x351)],_0x4602f8,_0x464d48,_0x510265);}[_0x4ca2ee(0x265)](_0x483436,_0x4acb86){const _0x294afa=_0x4ca2ee;var _0x3ec9f2,_0x166867;let _0xa4edf8=this[_0x294afa(0x16e)]['interceptor'][_0x294afa(0x162)](this[_0x294afa(0x16e)][_0x294afa(0x3f4)]['getInterceptPoints']()[_0x294afa(0x311)]);(_0x3ec9f2=_0xa4edf8((_0x483436==null?void 0x0:_0x483436[_0x294afa(0x434)])||[],null))==null||_0x3ec9f2['forEach'](_0x20dd04=>this[_0x294afa(0x23d)][_0x294afa(0x171)](_0x20dd04['id'],_0x20dd04[_0x294afa(0x21d)])),(_0x166867=_0xa4edf8(_0x4acb86||[],null))==null||_0x166867[_0x294afa(0x1e9)](_0xbb534f=>this[_0x294afa(0x23d)][_0x294afa(0x171)](_0xbb534f['id'],_0xbb534f['params']));}};_0x41b76f=_0x182061([_0x51b612(0x3,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['Injector'])),_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x2f8)])),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['LocaleService'])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x7,(0x0,_0x78cf9f['Inject'])(_0x5604f6)),_0x51b612(0x8,_0x78cf9f[_0x4ca2ee(0x39a)]),_0x51b612(0x9,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0xa,_0x78cf9f['ICommandService']),_0x51b612(0xb,_0x78cf9f[_0x4ca2ee(0x16d)]),_0x51b612(0xc,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x208a4c)),_0x51b612(0xd,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x41b76f);let _0x3c6cb8=class extends _0x41b76f{constructor(_0x39943d,_0x2ba38b,_0xec4b59,_0x429651,_0x153543,_0x2b7071,_0x292147,_0x1c1e4f,_0x2fcf1d,_0x9e6b95,_0x5a759e,_0x1aed40,_0x5217be,_0x3cebc6,_0x27bb86){const _0x3759b9=_0x4ca2ee;super(_0x39943d,_0xec4b59,_0x2ba38b,_0x429651,_0x153543,_0x2b7071,_0x292147,_0x1c1e4f,_0x2fcf1d,_0x9e6b95,_0x5a759e,_0x1aed40,_0x3cebc6,_0x27bb86),this[_0x3759b9(0x272)]=_0x39943d,this[_0x3759b9(0x2db)]=_0x2ba38b,this[_0x3759b9(0x4bb)]=_0x5217be,_0x4f9d46(this,_0x3759b9(0x237),null);}[_0x4ca2ee(0x25c)](_0x15ef56){const _0x396c7d=_0x4ca2ee;this[_0x396c7d(0x237)]=_0x15ef56;}[_0x4ca2ee(0x48f)](){const _0x5910ce=_0x4ca2ee;this[_0x5910ce(0x237)]=null,super[_0x5910ce(0x48f)]();}[_0x4ca2ee(0x307)](){const _0x52b8c7=_0x4ca2ee;let _0x3808cf=super['_createHandler']();return _0x3808cf[_0x52b8c7(0x357)]=_0x33768e=>{const _0x5652a8=_0x52b8c7;var _0x3c2577,_0x1b2068;return(_0x3c2577=this[_0x5652a8(0x237)])==null||(_0x1b2068=_0x3c2577['onTransformIME'])==null?void 0x0:_0x1b2068[_0x5652a8(0x3da)](_0x3c2577,_0x33768e);},_0x3808cf[_0x52b8c7(0x267)]=_0x5ce6c8=>{const _0x123a13=_0x52b8c7;var _0x3eb09d,_0x1ffea2;return(_0x3eb09d=this[_0x123a13(0x237)])==null||(_0x1ffea2=_0x3eb09d[_0x123a13(0x267)])==null?void 0x0:_0x1ffea2[_0x123a13(0x3da)](_0x3eb09d,_0x5ce6c8);},_0x3808cf[_0x52b8c7(0x1c0)]=_0x1da7ff=>{const _0x47bf5b=_0x52b8c7;var _0x3de0d5,_0x4ff6af;return((_0x3de0d5=this[_0x47bf5b(0x237)])==null||(_0x4ff6af=_0x3de0d5[_0x47bf5b(0x1c0)])==null?void 0x0:_0x4ff6af[_0x47bf5b(0x3da)](_0x3de0d5,_0x1da7ff))??null;},_0x3808cf[_0x52b8c7(0x348)]=_0x3bc875=>{const _0x1e39b3=_0x52b8c7;var _0x46b59c,_0x271973;return(_0x46b59c=this[_0x1e39b3(0x237)])==null||(_0x271973=_0x46b59c[_0x1e39b3(0x348)])==null?void 0x0:_0x271973['call'](_0x46b59c,_0x3bc875);},_0x3808cf[_0x52b8c7(0x1cf)]=_0x11a080=>{const _0x2aa971=_0x52b8c7;var _0x1d3eef,_0x52ec54;return(_0x1d3eef=this[_0x2aa971(0x237)])==null||(_0x52ec54=_0x1d3eef[_0x2aa971(0x1cf)])==null?void 0x0:_0x52ec54[_0x2aa971(0x3da)](_0x1d3eef,_0x11a080);},_0x3808cf[_0x52b8c7(0x264)]=_0x2efc62=>{const _0x2dd18d=_0x52b8c7;var _0x463d89,_0x881797;return((_0x463d89=this[_0x2dd18d(0x237)])==null||(_0x881797=_0x463d89['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x881797[_0x2dd18d(0x3da)](_0x463d89,_0x2efc62))??_0x2efc62;},_0x3808cf[_0x52b8c7(0x214)]=_0x382c42=>{const _0x11c8cf=_0x52b8c7;var _0x1bfd07,_0x315b19;return((_0x1bfd07=this[_0x11c8cf(0x237)])==null||(_0x315b19=_0x1bfd07[_0x11c8cf(0x214)])==null?void 0x0:_0x315b19[_0x11c8cf(0x3da)](_0x1bfd07,_0x382c42))??_0x382c42;},_0x3808cf;}async['_init'](){const _0x8f79aa=_0x4ca2ee;let _0x2ac1d0=await super[_0x8f79aa(0x334)]();return this['disposeWithMe'](this['_docStateChangeManagerService']['docStateChange$']['subscribe'](_0x2059a6=>{const _0x2be37c=_0x8f79aa;if(_0x2059a6==null||_0x2059a6[_0x2be37c(0x4d2)]!==this[_0x2be37c(0x272)])return;let {commandId:_0x93f4cb,redoState:_0x384fae,unitId:_0x5aba49}=_0x2059a6,_0x3b5691={'id':_0x93f4cb,'type':_0x78cf9f[_0x2be37c(0x4cc)]['MUTATION'],'params':{'unitId':_0x5aba49,'actions':_0x384fae['actions'],'textRanges':null}};this[_0x2be37c(0x438)](_0x3b5691);})),this[_0x8f79aa(0x2f7)](this[_0x8f79aa(0x23d)][_0x8f79aa(0x3ea)]((_0x349589,_0x516e70)=>{const _0x189c50=_0x8f79aa;if(_0x349589['type']!==_0x78cf9f['CommandType'][_0x189c50(0x1fd)]||_0x516e70!=null&&_0x516e70[_0x189c50(0x43e)]||_0x516e70!=null&&_0x516e70[_0x189c50(0x2a3)]||_0x349589['id']===_0x14832f[_0x189c50(0x23f)]['id'])return;let _0x48f85a=_0x349589[_0x189c50(0x21d)];if((_0x48f85a==null?void 0x0:_0x48f85a[_0x189c50(0x4d2)])!==this[_0x189c50(0x272)])return;let _0x9bd850=_0x349589,_0xe77ca3=this[_0x189c50(0x16e)]['interceptor'][_0x189c50(0x162)](this[_0x189c50(0x16e)][_0x189c50(0x3f4)][_0x189c50(0x469)]()[_0x189c50(0x448)])([_0x9bd850],this['_univerInstanceService'])||[_0x9bd850];this[_0x189c50(0x438)](_0xe77ca3[0x0]);})),_0x2ac1d0;}};_0x3c6cb8=_0x182061([_0x51b612(0x3,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x4,(0x0,_0x78cf9f['Inject'])(_0x18ba1c[_0x4ca2ee(0x2f8)])),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x17a)])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x7,(0x0,_0x78cf9f['Inject'])(_0x5604f6)),_0x51b612(0x8,_0x78cf9f[_0x4ca2ee(0x39a)]),_0x51b612(0x9,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0xa,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0xb,_0x78cf9f['IPermissionService']),_0x51b612(0xc,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x14832f[_0x4ca2ee(0x4c2)])),_0x51b612(0xd,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x208a4c)),_0x51b612(0xe,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x3c6cb8);let _0x3e3c1b=class extends _0x41b76f{constructor(_0x3805db,_0x505f1f,_0x4fff10,_0x266848,_0x353fc0,_0x4a1971,_0xb331a8,_0x5c5396,_0x3e5737,_0x34e110,_0x41b285,_0x43839a,_0x357c6c,_0x2667a8){const _0x10ab7e=_0x4ca2ee;super(_0x3805db,_0x4fff10,_0x505f1f,_0x266848,_0x353fc0,_0x4a1971,_0xb331a8,_0x5c5396,_0x3e5737,_0x34e110,_0x41b285,_0x43839a,_0x357c6c,_0x2667a8),this[_0x10ab7e(0x272)]=_0x3805db,this[_0x10ab7e(0x2db)]=_0x505f1f;}async['_init'](){const _0x58b034=_0x4ca2ee;let _0x7278dd=await super['_init']();return this[_0x58b034(0x2f7)](this[_0x58b034(0x23d)][_0x58b034(0x3ea)]((_0x69798c,_0x131e81)=>{const _0x21b906=_0x58b034;if(_0x69798c[_0x21b906(0x2db)]!==_0x78cf9f['CommandType']['MUTATION']||_0x131e81!=null&&_0x131e81[_0x21b906(0x43e)]||_0x131e81!=null&&_0x131e81['onlyLocal'])return;let _0x1a603d=_0x69798c[_0x21b906(0x21d)];if((_0x1a603d==null?void 0x0:_0x1a603d[_0x21b906(0x4d2)])!==this[_0x21b906(0x272)])return;let _0x38c0ae=_0x69798c,_0x2b43c4=this[_0x21b906(0x16e)][_0x21b906(0x3f4)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x21b906(0x469)]()[_0x21b906(0x448)])([_0x38c0ae],this[_0x21b906(0x3fa)])||[_0x38c0ae];this['_onLocalMutation'](_0x2b43c4[0x0]);})),_0x7278dd;}};_0x3e3c1b=_0x182061([_0x51b612(0x3,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['Injector'])),_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x2f8)])),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x17a)])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c['RevisionService'])),_0x51b612(0x7,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6)),_0x51b612(0x8,_0x78cf9f['IUniverInstanceService']),_0x51b612(0x9,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0xa,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0xb,_0x78cf9f[_0x4ca2ee(0x16d)]),_0x51b612(0xc,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x208a4c)),_0x51b612(0xd,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x3e3c1b);let _0x2da38a=class extends _0x41b76f{constructor(_0x581cac,_0x106205,_0x3b5216,_0x30aaec,_0x2e6f0c,_0x507a05,_0x328efc,_0x2d8820,_0x2ea77a,_0x34d7f5,_0x7bfb66,_0x5b7a63,_0xc07aa5,_0x19c2d7,_0x274cac){const _0x1cc6fa=_0x4ca2ee;super(_0x581cac,_0x3b5216,_0x106205,_0x30aaec,_0x2e6f0c,_0x507a05,_0x328efc,_0x2ea77a,_0x34d7f5,_0x7bfb66,_0x5b7a63,_0xc07aa5,_0x19c2d7,_0x274cac),this[_0x1cc6fa(0x272)]=_0x581cac,this['type']=_0x106205,this[_0x1cc6fa(0x1db)]=_0x2d8820;}['_createHandler'](){const _0x57dfd3=_0x4ca2ee;let _0x2cac79=super[_0x57dfd3(0x307)]();return _0x2cac79[_0x57dfd3(0x348)]=_0x135f9d=>this[_0x57dfd3(0x1db)]['transformSelections'](_0x135f9d),_0x2cac79;}async[_0x4ca2ee(0x334)](){const _0x5e6ecb=_0x4ca2ee;let _0x327cec=await super[_0x5e6ecb(0x334)]();return this['disposeWithMe'](this[_0x5e6ecb(0x23d)][_0x5e6ecb(0x3ea)]((_0xf68137,_0x5173a0)=>{const _0x27ff0e=_0x5e6ecb;if(_0xf68137[_0x27ff0e(0x2db)]!==_0x78cf9f[_0x27ff0e(0x4cc)][_0x27ff0e(0x1fd)]||_0x5173a0!=null&&_0x5173a0[_0x27ff0e(0x43e)]||_0x5173a0!=null&&_0x5173a0[_0x27ff0e(0x2a3)])return;let _0x4c4a52=_0xf68137[_0x27ff0e(0x21d)];if((_0x4c4a52==null?void 0x0:_0x4c4a52[_0x27ff0e(0x4d2)])!==this[_0x27ff0e(0x272)])return;let _0x185422=_0xf68137,_0x3b3b83=this[_0x27ff0e(0x16e)][_0x27ff0e(0x3f4)][_0x27ff0e(0x162)](this[_0x27ff0e(0x16e)]['interceptor'][_0x27ff0e(0x469)]()['COMPRESS_MUTATION_SEND'])([_0x185422],this['_univerInstanceService'])||[_0x185422];this['_onLocalMutation'](_0x3b3b83[0x0]);})),_0x327cec;}};_0x2da38a=_0x182061([_0x51b612(0x3,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['Injector'])),_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x2f8)])),_0x51b612(0x5,(0x0,_0x78cf9f['Inject'])(_0x78cf9f[_0x4ca2ee(0x17a)])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x7,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x373754)),_0x51b612(0x8,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6)),_0x51b612(0x9,_0x78cf9f['IUniverInstanceService']),_0x51b612(0xa,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0xb,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0xc,_0x78cf9f[_0x4ca2ee(0x16d)]),_0x51b612(0xd,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x208a4c)),_0x51b612(0xe,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x2da38a);let _0x4150af=class extends _0x41b76f{constructor(_0x369dd1,_0x3b62a4,_0x421b7a,_0x3279f5,_0x483e2c,_0x78e7e6,_0x396346,_0x8fc709,_0xc8882,_0x1ab1e0,_0x4b7a34,_0x44b8f9,_0x33eb25,_0x50e619){const _0x348c7b=_0x4ca2ee;super(_0x369dd1,_0x421b7a,_0x3b62a4,_0x3279f5,_0x483e2c,_0x78e7e6,_0x396346,_0x8fc709,_0xc8882,_0x1ab1e0,_0x4b7a34,_0x44b8f9,_0x33eb25,_0x50e619),this[_0x348c7b(0x272)]=_0x369dd1,this['type']=_0x3b62a4;}async[_0x4ca2ee(0x334)](){const _0xfff786=_0x4ca2ee;let _0x3d5837=await super[_0xfff786(0x334)]();return this[_0xfff786(0x2f7)](this[_0xfff786(0x23d)][_0xfff786(0x3ea)]((_0x5b9f59,_0x3bf8ad)=>{const _0x63ad20=_0xfff786;if(_0x5b9f59[_0x63ad20(0x2db)]!==_0x78cf9f[_0x63ad20(0x4cc)][_0x63ad20(0x1fd)]||_0x3bf8ad!=null&&_0x3bf8ad[_0x63ad20(0x43e)]||_0x3bf8ad!=null&&_0x3bf8ad[_0x63ad20(0x2a3)])return;let _0x425ac5=_0x5b9f59[_0x63ad20(0x21d)];if((_0x425ac5==null?void 0x0:_0x425ac5[_0x63ad20(0x4d2)])!==this[_0x63ad20(0x272)])return;let _0x5cef0e=_0x5b9f59,_0xe7cc2b=this[_0x63ad20(0x16e)][_0x63ad20(0x3f4)][_0x63ad20(0x162)](this['_compressMutationService'][_0x63ad20(0x3f4)][_0x63ad20(0x469)]()['COMPRESS_MUTATION_SEND'])([_0x5cef0e],this[_0x63ad20(0x3fa)])||[_0x5cef0e];this[_0x63ad20(0x438)](_0xe7cc2b[0x0]);})),_0x3d5837;}};_0x4150af=_0x182061([_0x51b612(0x3,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x4,(0x0,_0x78cf9f['Inject'])(_0x18ba1c[_0x4ca2ee(0x2f8)])),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x17a)])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x7,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6)),_0x51b612(0x8,_0x78cf9f['IUniverInstanceService']),_0x51b612(0x9,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0xa,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0xb,_0x78cf9f[_0x4ca2ee(0x16d)]),_0x51b612(0xc,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x208a4c)),_0x51b612(0xd,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x4150af);let _0x455183=class extends _0x41b76f{constructor(_0x293818,_0x12bb44,_0x37d543,_0x1f9a7c,_0x52cbb1,_0x555751,_0x7d249,_0x57e1d8,_0x2d7a44,_0x23d8e2,_0x28f2fe,_0x572264,_0x377324,_0x54dc64){const _0x4a860d=_0x4ca2ee;super(_0x293818,_0x37d543,_0x12bb44,_0x1f9a7c,_0x52cbb1,_0x555751,_0x7d249,_0x57e1d8,_0x2d7a44,_0x23d8e2,_0x28f2fe,_0x572264,_0x377324,_0x54dc64),this[_0x4a860d(0x272)]=_0x293818,this[_0x4a860d(0x2db)]=_0x12bb44;}async[_0x4ca2ee(0x334)](){const _0x2e04aa=_0x4ca2ee;let _0x2145a5=await super[_0x2e04aa(0x334)]();return this[_0x2e04aa(0x2f7)](this[_0x2e04aa(0x23d)][_0x2e04aa(0x3ea)]((_0x2b37e9,_0x3a9df0)=>{const _0x48460b=_0x2e04aa;if(_0x2b37e9[_0x48460b(0x2db)]!==_0x78cf9f[_0x48460b(0x4cc)][_0x48460b(0x1fd)]||_0x3a9df0!=null&&_0x3a9df0[_0x48460b(0x43e)]||_0x3a9df0!=null&&_0x3a9df0[_0x48460b(0x2a3)])return;let _0x2074ae=_0x2b37e9[_0x48460b(0x21d)];if((_0x2074ae==null?void 0x0:_0x2074ae[_0x48460b(0x4d2)])!==this[_0x48460b(0x272)])return;let _0xf5eadc=_0x2b37e9,_0x35f61b=this[_0x48460b(0x16e)][_0x48460b(0x3f4)][_0x48460b(0x162)](this[_0x48460b(0x16e)][_0x48460b(0x3f4)][_0x48460b(0x469)]()['COMPRESS_MUTATION_SEND'])([_0xf5eadc],this['_univerInstanceService'])||[_0xf5eadc];this['_onLocalMutation'](_0x35f61b[0x0]);})),_0x2145a5;}};_0x455183=_0x182061([_0x51b612(0x3,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x2f8)])),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x17a)])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x7,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6)),_0x51b612(0x8,_0x78cf9f[_0x4ca2ee(0x39a)]),_0x51b612(0x9,_0x78cf9f['ILogService']),_0x51b612(0xa,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0xb,_0x78cf9f['IPermissionService']),_0x51b612(0xc,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x208a4c)),_0x51b612(0xd,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x1dd414))],_0x455183);let _0x1743c3=class extends _0x41b76f{constructor(_0x2bf796,_0x495e53,_0x1c2214,_0x30e84c,_0x18f78a,_0x1edc8c,_0xdb75d,_0x855292,_0x483a8b,_0x46a069,_0x48ffff,_0x3b6bac,_0x36616c,_0x2ad1a1){const _0x4510a2=_0x4ca2ee;super(_0x2bf796,_0x1c2214,_0x495e53,_0x30e84c,_0x18f78a,_0x1edc8c,_0xdb75d,_0x855292,_0x483a8b,_0x46a069,_0x48ffff,_0x3b6bac,_0x36616c,_0x2ad1a1),this['unitID']=_0x2bf796,this[_0x4510a2(0x2db)]=_0x495e53;}async[_0x4ca2ee(0x334)](){const _0x481e14=_0x4ca2ee;let _0x35c93a=await super['_init']();return this[_0x481e14(0x2f7)](this[_0x481e14(0x23d)][_0x481e14(0x3ea)]((_0x159257,_0x163646)=>{const _0x466952=_0x481e14;if(_0x159257[_0x466952(0x2db)]!==_0x78cf9f['CommandType'][_0x466952(0x1fd)]||_0x163646!=null&&_0x163646['fromCollab']||_0x163646!=null&&_0x163646[_0x466952(0x2a3)])return;let _0x2cc474=_0x159257[_0x466952(0x21d)];if((_0x2cc474==null?void 0x0:_0x2cc474[_0x466952(0x4d2)])!==this['unitID'])return;let _0xd45a31=_0x159257,_0x4e79a5=this[_0x466952(0x16e)][_0x466952(0x3f4)]['fetchThroughInterceptors'](this[_0x466952(0x16e)][_0x466952(0x3f4)]['getInterceptPoints']()[_0x466952(0x448)])([_0xd45a31],this[_0x466952(0x3fa)])||[_0xd45a31];this[_0x466952(0x438)](_0x4e79a5[0x0]);})),_0x35c93a;}};_0x1743c3=_0x182061([_0x51b612(0x3,(0x0,_0x78cf9f['Inject'])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x4,(0x0,_0x78cf9f['Inject'])(_0x18ba1c[_0x4ca2ee(0x2f8)])),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['LocaleService'])),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c[_0x4ca2ee(0x221)])),_0x51b612(0x7,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6)),_0x51b612(0x8,_0x78cf9f[_0x4ca2ee(0x39a)]),_0x51b612(0x9,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0xa,_0x78cf9f['ICommandService']),_0x51b612(0xb,_0x78cf9f['IPermissionService']),_0x51b612(0xc,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x208a4c)),_0x51b612(0xd,(0x0,_0x78cf9f['Optional'])(_0x1dd414))],_0x1743c3);let _0x11f218=(0x0,_0x78cf9f[_0x4ca2ee(0x404)])(_0x4ca2ee(0x4d6));function _0x179e36(_0x4294db){const _0x4251da=_0x4ca2ee;let _0xf43d33=_0x4294db[_0x4251da(0x3d6)],_0x310b32=JSON['parse'](_0xf43d33);switch(_0x310b32[_0x4251da(0x3ba)]){case _0x1521ba[_0x4251da(0x382)]['HEARTBEAT']:case _0x1521ba[_0x4251da(0x382)][_0x4251da(0x326)]:{let _0x46b91e=_0x310b32['infoRsp'];return{..._0x310b32,'data':_0x46b91e,'cmd':_0x310b32['cmd']};}case _0x1521ba['CombCmd'][_0x4251da(0x45b)]:{let _0x1f1b5e=_0x310b32['joinRsp'];return{..._0x310b32,'data':_0x1f1b5e,'cmd':_0x310b32['cmd']};}case _0x1521ba[_0x4251da(0x382)][_0x4251da(0x215)]:{let _0x3020b3=_0x310b32[_0x4251da(0x3a1)];switch(_0x3020b3['eventID']){case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x2fe)]:var _0xf6767e;return{..._0x310b32,'data':{..._0x3020b3,'data':(_0xf6767e=_0x3020b3['permissionRejEvent'])==null?void 0x0:_0xf6767e['cs']},'cmd':_0x310b32['cmd']};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x2fb)]:var _0x25a883;return{..._0x310b32,'data':{..._0x3020b3,'data':(_0x25a883=_0x3020b3[_0x4251da(0x1bb)])==null?void 0x0:_0x25a883['cs']},'cmd':_0x310b32['cmd']};case _0x18ba1c['CollaborationEvent'][_0x4251da(0x277)]:var _0xa216c;return{..._0x310b32,'data':{..._0x3020b3,'data':(_0xa216c=_0x3020b3[_0x4251da(0x3ed)])==null?void 0x0:_0xa216c['cs']},'cmd':_0x310b32['cmd']};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x4be)]:var _0x5915af;return{..._0x310b32,'data':{..._0x3020b3,'data':(_0x5915af=_0x3020b3[_0x4251da(0x419)])==null?void 0x0:_0x5915af['cs']},'cmd':_0x310b32['cmd']};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x446)]:var _0x3efc6f;return{..._0x310b32,'data':{..._0x3020b3,'data':(_0x3efc6f=_0x3020b3[_0x4251da(0x2f5)])==null?void 0x0:_0x3efc6f['cs']},'cmd':_0x310b32['cmd']};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x273)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3[_0x4251da(0x24a)]},'cmd':_0x310b32[_0x4251da(0x3ba)]};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x2f4)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3[_0x4251da(0x2cb)]},'cmd':_0x310b32[_0x4251da(0x3ba)]};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x196)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3['leaveEvent']},'cmd':_0x310b32['cmd']};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x2b6)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3[_0x4251da(0x4b4)]},'cmd':_0x310b32[_0x4251da(0x3ba)]};case _0x18ba1c[_0x4251da(0x3aa)]['LIVESHARE_FETCH_OPERATIONS']:case _0x18ba1c['CollaborationEvent']['LIVESHARE_OPERATION']:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3['liveShareOperation']},'cmd':_0x310b32[_0x4251da(0x3ba)]};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x46a)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3[_0x4251da(0x4b4)]},'cmd':_0x310b32[_0x4251da(0x3ba)]};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x4c8)]:return{..._0x310b32,'data':_0x3020b3,'cmd':_0x310b32['cmd']};case _0x18ba1c['CollaborationEvent'][_0x4251da(0x4cb)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3[_0x4251da(0x29e)]},'cmd':_0x310b32['cmd']};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x395)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3[_0x4251da(0x20d)]},'cmd':_0x310b32[_0x4251da(0x3ba)]};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x16f)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3[_0x4251da(0x274)]},'cmd':_0x310b32[_0x4251da(0x3ba)]};case _0x18ba1c[_0x4251da(0x3aa)][_0x4251da(0x385)]:return{..._0x310b32,'data':{..._0x3020b3,'data':_0x3020b3[_0x4251da(0x2ee)]},'cmd':_0x310b32[_0x4251da(0x3ba)]};default:return _0x310b32;}}default:return _0x310b32;}}function _0x28a999(_0x167f73){const _0x4814dc=_0x4ca2ee;switch(_0x167f73[_0x4814dc(0x3ba)]){case _0x1521ba[_0x4814dc(0x382)]['HEARTBEAT']:case _0x1521ba[_0x4814dc(0x382)][_0x4814dc(0x326)]:return JSON[_0x4814dc(0x2cf)]({'cmd':_0x167f73['cmd'],'routeKey':_0x167f73[_0x4814dc(0x1bc)]});case _0x1521ba[_0x4814dc(0x382)]['INGEST']:{let _0x2ca7d4;switch(_0x167f73[_0x4814dc(0x3d6)]['eventID']){case _0x18ba1c[_0x4814dc(0x3aa)][_0x4814dc(0x273)]:_0x2ca7d4={'eventID':_0x18ba1c['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x167f73[_0x4814dc(0x3d6)]['data']};break;case _0x18ba1c[_0x4814dc(0x3aa)][_0x4814dc(0x196)]:_0x2ca7d4={'eventID':_0x18ba1c[_0x4814dc(0x3aa)]['USERS_LEAVE'],'leaveEvent':_0x167f73[_0x4814dc(0x3d6)]['data']};break;case _0x18ba1c['CollaborationEvent'][_0x4814dc(0x2f4)]:_0x2ca7d4={'eventID':_0x18ba1c[_0x4814dc(0x3aa)][_0x4814dc(0x2f4)],'joinEvent':_0x167f73[_0x4814dc(0x3d6)][_0x4814dc(0x3d6)]};break;case _0x18ba1c['CollaborationEvent'][_0x4814dc(0x2b6)]:_0x2ca7d4={'eventID':_0x18ba1c[_0x4814dc(0x3aa)][_0x4814dc(0x2b6)],'liveShareNewHost':_0x167f73[_0x4814dc(0x3d6)][_0x4814dc(0x3d6)]};break;case _0x18ba1c['CollaborationEvent']['LIVESHARE_OPERATION']:_0x2ca7d4={'eventID':_0x18ba1c[_0x4814dc(0x3aa)][_0x4814dc(0x396)],'liveShareOperation':_0x167f73[_0x4814dc(0x3d6)][_0x4814dc(0x3d6)]};break;case _0x18ba1c['CollaborationEvent'][_0x4814dc(0x46a)]:_0x2ca7d4={'eventID':_0x18ba1c['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x167f73['data'][_0x4814dc(0x3d6)]};break;case _0x18ba1c['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:_0x2ca7d4={'eventID':_0x18ba1c[_0x4814dc(0x3aa)][_0x4814dc(0x225)],'liveShareRequestHost':_0x167f73[_0x4814dc(0x3d6)]['data']};break;case _0x18ba1c['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:_0x2ca7d4={'eventID':_0x18ba1c[_0x4814dc(0x3aa)][_0x4814dc(0x361)]};break;default:_0x2ca7d4={'eventID':_0x167f73['data']['eventID']};}return JSON[_0x4814dc(0x2cf)]({'cmd':_0x167f73['cmd'],'routeKey':_0x167f73[_0x4814dc(0x1bc)],'collaMsg':_0x2ca7d4});}case _0x1521ba[_0x4814dc(0x382)]['JOIN']:return JSON[_0x4814dc(0x2cf)]({'cmd':_0x167f73[_0x4814dc(0x3ba)],'routeKey':_0x167f73[_0x4814dc(0x1bc)],'joinReq':_0x167f73['data']});case _0x1521ba['CombCmd'][_0x4814dc(0x1f6)]:return JSON[_0x4814dc(0x2cf)]({'cmd':_0x167f73['cmd'],'routeKey':_0x167f73[_0x4814dc(0x1bc)],'leaveReq':_0x167f73['data']});default:throw Error(_0x4814dc(0x292));}}let _0x2277c0=(0x0,_0x78cf9f[_0x4ca2ee(0x404)])(_0x4ca2ee(0x46c));function _0x6bca4c(_0x3fd80c,_0x2990e9,_0x1ba59c){const _0x30c02e=_0x4ca2ee;return _0x3fd80c+'/'+_0x2990e9+_0x30c02e(0x363)+_0x1ba59c+_0x30c02e(0x18f);}let _0x330090=class extends _0x78cf9f['Disposable']{constructor(_0x12c385,_0x27f53c,_0x32f248,_0x1ad3c7,_0x4abd58){const _0x4ddb09=_0x4ca2ee;super(),this[_0x4ddb09(0x3b1)]=_0x12c385,this[_0x4ddb09(0x173)]=_0x27f53c,this['_configService']=_0x32f248,this[_0x4ddb09(0x290)]=_0x1ad3c7,this[_0x4ddb09(0x4a4)]=_0x4abd58;}['_doCreateSocket'](_0x81105e){const _0x6d7e5a=_0x4ca2ee;let _0x30288f=this[_0x6d7e5a(0x3b1)][_0x6d7e5a(0x42a)](_0x4de411['ISocketService']);if(!_0x30288f)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x5a6fe0=_0x30288f[_0x6d7e5a(0x441)](_0x81105e);if(!_0x5a6fe0)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x4307b0=new _0x78cf9f['DisposableCollection'](),_0x548648=new _0x42b37f['Subject']();_0x4307b0[_0x6d7e5a(0x169)](_0x5a6fe0[_0x6d7e5a(0x384)][_0x6d7e5a(0x3ae)](_0x58a57c=>_0x548648['next'](_0x58a57c))),_0x4307b0['add']((0x0,_0x78cf9f['toDisposable'])(()=>_0x548648[_0x6d7e5a(0x245)]()));let _0x1fa9ac=new _0x42b37f[(_0x6d7e5a(0x20c))]();_0x4307b0[_0x6d7e5a(0x169)](_0x5a6fe0[_0x6d7e5a(0x22c)][_0x6d7e5a(0x3ae)](_0x5d64bc=>_0x1fa9ac[_0x6d7e5a(0x1b5)](_0x5d64bc))),_0x4307b0[_0x6d7e5a(0x169)]((0x0,_0x78cf9f[_0x6d7e5a(0x235)])(()=>_0x1fa9ac['complete']()));let _0x476a1d=new _0x42b37f['Subject']();_0x4307b0['add'](_0x5a6fe0[_0x6d7e5a(0x37c)]['subscribe'](_0x470a5e=>{const _0x4a04d8=_0x6d7e5a;let _0x29902f=_0x179e36(_0x470a5e);_0x476a1d[_0x4a04d8(0x1b5)](_0x29902f);})),_0x4307b0[_0x6d7e5a(0x169)]((0x0,_0x78cf9f[_0x6d7e5a(0x235)])(()=>_0x476a1d[_0x6d7e5a(0x245)]()));let _0x43efe9,_0x109433=()=>{const _0x1c9b10=_0x6d7e5a;_0x1fa9ac[_0x1c9b10(0x1b5)](new Event(_0x1c9b10(0x3e6))),_0x548648[_0x1c9b10(0x1b5)](new Event(_0x1c9b10(0x3e6))),_0x43efe9['close']();};return _0x43efe9={'memberID':'','close$':_0x548648['asObservable'](),'error$':_0x1fa9ac['asObservable'](),'open$':_0x5a6fe0[_0x6d7e5a(0x1e3)],'message$':_0x476a1d['asObservable'](),'send':_0x2743a1=>{const _0x5df03d=_0x6d7e5a;if(_0x2743a1[_0x5df03d(0x3ba)]===_0x1521ba[_0x5df03d(0x382)]['INGEST']){if(_0x2743a1[_0x5df03d(0x3d6)][_0x5df03d(0x34b)]===_0x18ba1c[_0x5df03d(0x3aa)]['SUBMIT_CHANGESET']){this[_0x5df03d(0x25e)](_0x43efe9,_0x2743a1[_0x5df03d(0x3d6)])[_0x5df03d(0x2ce)](_0x13a840=>{const _0xf7ecd5=_0x5df03d;this['_logService'][_0xf7ecd5(0x2a2)](_0x13a840),_0x109433();});return;}if(_0x2743a1[_0x5df03d(0x3d6)]['eventID']===_0x18ba1c[_0x5df03d(0x3aa)][_0x5df03d(0x249)]){let _0x38b2ba=_0x2743a1[_0x5df03d(0x3d6)];this[_0x5df03d(0x47d)](_0x38b2ba)[_0x5df03d(0x22f)](_0xba01d5=>{const _0x15b733=_0x5df03d;_0x476a1d[_0x15b733(0x1b5)]({'cmd':_0x1521ba['CombCmd'][_0x15b733(0x215)],'code':_0x1521ba[_0x15b733(0x2b3)]['OK'],'routeKey':_0x38b2ba[_0x15b733(0x3d6)][_0x15b733(0x272)],'routeType':'','data':{'eventID':_0x18ba1c[_0x15b733(0x3aa)][_0x15b733(0x34a)],'data':{'changesets':_0xba01d5}}});})[_0x5df03d(0x2ce)](_0x187af7=>{const _0x27e2aa=_0x5df03d;this[_0x27e2aa(0x290)][_0x27e2aa(0x2a2)](_0x187af7),_0x109433();});return;}}_0x5a6fe0['send'](_0x28a999(_0x2743a1));},'close':()=>{const _0x4df3c7=_0x6d7e5a;_0x5a6fe0[_0x4df3c7(0x426)](),_0x4307b0['dispose']();}},_0x43efe9;}async[_0x4ca2ee(0x25e)](_0x518cb7,_0x1147e3){const _0x53cd4a=_0x4ca2ee;let {unitType:_0x4c88a6,unitID:_0x20faaf,changeset:_0xf17e2d}=_0x1147e3['data'],_0x38cd1f={'unitID':_0x20faaf,'memberID':_0x518cb7[_0x53cd4a(0x458)],'type':_0x4c88a6,'changeset':(0x0,_0x18ba1c[_0x53cd4a(0x480)])(_0xf17e2d)},_0x2e7ac4=this['_configService']['getConfig'](_0x16372d),_0x415633=_0x6bca4c((_0x2e7ac4==null?void 0x0:_0x2e7ac4[_0x53cd4a(0x1c1)])??_0x53cd4a(0x3b7),_0x4c88a6,_0x20faaf);try{await this['_httpService'][_0x53cd4a(0x186)](_0x415633,{'body':_0x38cd1f});}catch(_0x4e7f64){throw this[_0x53cd4a(0x290)][_0x53cd4a(0x2a2)]('[CollaborationSession]',_0x53cd4a(0x190)),_0x4e7f64;}}async[_0x4ca2ee(0x47d)](_0x5e0724){const _0x2feb52=_0x4ca2ee;let {unitID:_0x4727d0,from:_0x3d5805,to:_0x43031d,unitType:_0x2aa197}=_0x5e0724[_0x2feb52(0x3d6)];return(await this[_0x2feb52(0x4a4)][_0x2feb52(0x2bc)]({'metadata':void 0x0},{'unitID':_0x4727d0,'type':_0x2aa197,'from':_0x3d5805,'to':_0x43031d}))[_0x2feb52(0x28d)]['map'](_0x54bf7b=>((_0x54bf7b[_0x2feb52(0x434)]===null||_0x54bf7b[_0x2feb52(0x434)]===void 0x0)&&(_0x54bf7b['mutations']=[]),_0x54bf7b));}};_0x330090=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['Injector'])),_0x51b612(0x1,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x4de411[_0x4ca2ee(0x332)])),_0x51b612(0x2,_0x78cf9f[_0x4ca2ee(0x178)]),_0x51b612(0x3,_0x78cf9f['ILogService']),_0x51b612(0x4,_0x18ba1c[_0x4ca2ee(0x1e5)])],_0x330090);let _0x997217=(0x0,_0x78cf9f[_0x4ca2ee(0x404)])(_0x4ca2ee(0x47e));function _0x35dc98(_0x4cb37f={}){const _0x1402ad=_0x4ca2ee;return _0x4cb37f['resolveUnit']?{'resolveUnit':_0x4cb37f[_0x1402ad(0x2d3)]}:{'resolveUnit':_0x1d2071=>({'target':{'unitId':_0x1d2071['unitId'],'unitType':_0x1d2071[_0x1402ad(0x29d)]}})};}function _0x33831d(_0x58057d,_0x11e59e,_0x5ddd8f){const _0x3a1c40=_0x4ca2ee;let _0x4ebc32=_0x5ddd8f[_0x3a1c40(0x4b1)][_0x3a1c40(0x297)];if(_0x4ebc32!=null&&_0x4ebc32['trim']()==='')throw Error(_0x3a1c40(0x234));if(!_0x5ddd8f['target'][_0x3a1c40(0x4d2)])throw Error(_0x3a1c40(0x1c8));return{'localUnitId':_0x58057d,'unitType':_0x11e59e,'target':{'endpoint':_0x4ebc32,'unitId':_0x5ddd8f[_0x3a1c40(0x4b1)]['unitId'],'unitType':_0x5ddd8f[_0x3a1c40(0x4b1)]['unitType']??_0x11e59e},'changeset':_0x5ddd8f['changeset']};}let _0x55f186=class extends _0x78cf9f[_0x4ca2ee(0x3b4)]{constructor(_0x13893c,_0x52e4ac,_0x26b876,_0xd5dd89,_0x199162,_0x207d80,_0x2d5b80){const _0x288639=_0x4ca2ee;super(),this[_0x288639(0x3b1)]=_0x13893c,this[_0x288639(0x290)]=_0x52e4ac,this['_configService']=_0x26b876,this[_0x288639(0x1b6)]=_0xd5dd89,this[_0x288639(0x286)]=_0x199162,this[_0x288639(0x37a)]=_0x207d80,this['_networkConditionService']=_0x2d5b80,_0x4f9d46(this,_0x288639(0x467),new Map()),_0x4f9d46(this,_0x288639(0x35f),new Map()),_0x4f9d46(this,_0x288639(0x2f6),new Map()),_0x4f9d46(this,_0x288639(0x40c),new Map()),_0x4f9d46(this,'socket$',this[_0x288639(0x372)](void 0x0)[_0x288639(0x268)]['asObservable']()),_0x4f9d46(this,_0x288639(0x1cd),new _0x42b37f['BehaviorSubject'](0x0)),_0x4f9d46(this,'status$',this['_status$'][_0x288639(0x4d3)]()),this[_0x288639(0x1df)]();}['_listenToNetworkCondition'](){const _0x31648e=_0x4ca2ee;this[_0x31648e(0x36d)]&&this[_0x31648e(0x2f7)](this['_networkConditionService']['online$'][_0x31648e(0x3ae)](_0x272ca5=>{const _0x12bbf5=_0x31648e;_0x272ca5&&this[_0x12bbf5(0x3ee)](),_0x272ca5||this[_0x12bbf5(0x40c)]['forEach'](_0x197b96=>this[_0x12bbf5(0x1a2)](_0x197b96));}));}[_0x4ca2ee(0x48f)](){const _0xe491c9=_0x4ca2ee;super['dispose'](),this['_socketChannels'][_0xe491c9(0x1e9)](_0x587eed=>{const _0x15508d=_0xe491c9;var _0x49e3b5,_0x1bf8ad;(_0x49e3b5=_0x587eed[_0x15508d(0x38f)])==null||_0x49e3b5[_0x15508d(0x3f6)](),_0x587eed[_0x15508d(0x38f)]=null,this['_clearRetryConnectingTimer'](_0x587eed),this[_0x15508d(0x390)](_0x587eed),this[_0x15508d(0x3e7)](_0x587eed),(_0x1bf8ad=_0x587eed[_0x15508d(0x268)][_0x15508d(0x478)]())==null||_0x1bf8ad[_0x15508d(0x426)](),_0x587eed[_0x15508d(0x268)][_0x15508d(0x245)]();}),this[_0xe491c9(0x40c)]['clear'](),this[_0xe491c9(0x467)][_0xe491c9(0x1e9)](_0x4db473=>_0x4db473[_0xe491c9(0x48f)]()),this[_0xe491c9(0x467)][_0xe491c9(0x358)](),this[_0xe491c9(0x2f6)]['clear'](),this[_0xe491c9(0x1cd)][_0xe491c9(0x245)]();}async['requireSession'](_0x33ef41,_0x1201e0){const _0x17e4ca=_0x4ca2ee;if(this['_sessions'][_0x17e4ca(0x32f)](_0x33ef41))return this['_sessions'][_0x17e4ca(0x42a)](_0x33ef41);let _0x2229c2=this[_0x17e4ca(0x35f)]['get'](_0x33ef41);if(_0x2229c2)return _0x2229c2;let _0x41c3eb=this['_createSession'](_0x33ef41,_0x1201e0);this['_pendingSessions']['set'](_0x33ef41,_0x41c3eb);try{return await _0x41c3eb;}finally{this[_0x17e4ca(0x35f)]['delete'](_0x33ef41);}}async['_createSession'](_0x1761fd,_0x4e9b83){const _0xc3acc6=_0x4ca2ee;let _0x4268e7=await this['_resolveSessionIdentity'](_0x1761fd,_0x4e9b83),_0x24a904=this[_0xc3acc6(0x372)](_0x4268e7[_0xc3acc6(0x4b1)][_0xc3acc6(0x297)]);this[_0xc3acc6(0x216)](_0x24a904);let _0x4df2b7=this['_injector'][_0xc3acc6(0x37d)](_0x3a19b6,_0x4268e7,_0x24a904['socket$'][_0xc3acc6(0x4d3)]());return this['_sessions']['set'](_0x1761fd,_0x4df2b7),this[_0xc3acc6(0x2f6)]['set'](_0x1761fd,_0x24a904[_0xc3acc6(0x3f3)]),_0x4df2b7;}[_0x4ca2ee(0x19d)](_0x414f37){const _0x132f78=_0x4ca2ee;let _0x3b8f6a=this['_sessions'][_0x132f78(0x42a)](_0x414f37),_0x4319d0=this[_0x132f78(0x2f6)][_0x132f78(0x42a)](_0x414f37);if(_0x3b8f6a&&(this['_sessions']['delete'](_0x414f37),this[_0x132f78(0x2f6)][_0x132f78(0x483)](_0x414f37),_0x3b8f6a[_0x132f78(0x426)]()),_0x4319d0&&!this[_0x132f78(0x39c)](_0x4319d0)){var _0x352549;let _0x4e5431=this[_0x132f78(0x40c)][_0x132f78(0x42a)](_0x4319d0);_0x4e5431==null||(_0x352549=_0x4e5431['socket$']['getValue']())==null||_0x352549['close']();}}[_0x4ca2ee(0x3ee)](){const _0x4cfb53=_0x4ca2ee;(this[_0x4cfb53(0x40c)][_0x4cfb53(0x33f)]?[...this['_socketChannels']['values']()]:[this[_0x4cfb53(0x372)](void 0x0)])[_0x4cfb53(0x1e9)](_0x2bbdbf=>{const _0x4b831c=_0x4cfb53;_0x2bbdbf[_0x4b831c(0x35b)]=0x0,this[_0x4b831c(0x18d)](_0x2bbdbf),this[_0x4b831c(0x254)](_0x2bbdbf);});}[_0x4ca2ee(0x18d)](_0x4e5a27){const _0x108e76=_0x4ca2ee;_0x4e5a27[_0x108e76(0x16c)]!=null&&(clearTimeout(_0x4e5a27['retryConnectingTimer']),_0x4e5a27[_0x108e76(0x16c)]=null);}async[_0x4ca2ee(0x1f3)](_0x43f80e){const _0x14f35b=_0x4ca2ee;let _0x9a6352=this[_0x14f35b(0x2b9)]['getConfig'](_0x16372d),_0x400315=_0x43f80e[_0x14f35b(0x297)]??(_0x9a6352==null?void 0x0:_0x9a6352['collabWebSocketUrl'])??'ws://127.0.0.1:8000/universer-api/comb/connect',_0x17e91a=await this['_socketService'][_0x14f35b(0x441)](_0x400315);return _0x43f80e[_0x14f35b(0x1dc)]=_0x17e91a,_0x17e91a;}async[_0x4ca2ee(0x216)](_0x1dff23){const _0x2dbe79=_0x4ca2ee;try{let _0x3378cf=_0x1dff23[_0x2dbe79(0x268)]['getValue']()??_0x1dff23[_0x2dbe79(0x1dc)]??await this[_0x2dbe79(0x1f3)](_0x1dff23);if(_0x3378cf){var _0x358084;let _0x4ca26f=_0x3378cf[_0x2dbe79(0x432)];_0x3378cf['send']=_0xd5ff5c=>(_0xd5ff5c[_0x2dbe79(0x3ba)]!==_0x1521ba['CombCmd'][_0x2dbe79(0x1f6)]&&this[_0x2dbe79(0x465)](_0x1dff23),_0x4ca26f[_0x2dbe79(0x444)](_0x3378cf,[_0xd5ff5c])),(_0x358084=_0x1dff23[_0x2dbe79(0x38f)])==null||_0x358084[_0x2dbe79(0x3f6)](),_0x1dff23[_0x2dbe79(0x38f)]=null,_0x1dff23[_0x2dbe79(0x38f)]=_0x3378cf['message$'][_0x2dbe79(0x3ae)](_0x2fd2e0=>this[_0x2dbe79(0x3d4)](_0x1dff23,_0x3378cf,_0x2fd2e0)),_0x3378cf[_0x2dbe79(0x22c)][_0x2dbe79(0x28c)]((0x0,_0x30b86b[_0x2dbe79(0x2c0)])(0x1))[_0x2dbe79(0x3ae)](_0x52a973=>this[_0x2dbe79(0x290)][_0x2dbe79(0x2a2)](_0x2dbe79(0x21f),_0x52a973)),_0x3378cf[_0x2dbe79(0x1e3)][_0x2dbe79(0x28c)]((0x0,_0x30b86b[_0x2dbe79(0x2c0)])(0x1))[_0x2dbe79(0x3ae)](()=>{const _0x146bae=_0x2dbe79;this[_0x146bae(0x4d7)](_0x1dff23,_0x3378cf);}),_0x3378cf['close$'][_0x2dbe79(0x28c)]((0x0,_0x30b86b[_0x2dbe79(0x2c0)])(0x1))[_0x2dbe79(0x3ae)](_0x3ddc1=>{const _0x109218=_0x2dbe79;this[_0x109218(0x290)][_0x109218(0x206)](_0x109218(0x1c5),_0x109218(0x284),_0x3ddc1),this['_onConnectionFailed'](_0x1dff23);});}}catch(_0x288bed){this['_logService']['error'](_0x288bed),this['_onConnectionFailed'](_0x1dff23);}}[_0x4ca2ee(0x4d7)](_0x54b938,_0x36c1e3){const _0x3bfd8c=_0x4ca2ee;this[_0x3bfd8c(0x290)][_0x3bfd8c(0x206)](_0x3bfd8c(0x1c5),_0x3bfd8c(0x398)),_0x36c1e3[_0x3bfd8c(0x432)]({'cmd':_0x1521ba[_0x3bfd8c(0x382)]['HELLO']}),this['_rescheduleHeartbeat'](_0x54b938);}['_onOffline'](_0xce7e5e){const _0x47875a=_0x4ca2ee;_0xce7e5e[_0x47875a(0x3f9)]=!0x1,_0xce7e5e['candidateSocket']=null,this[_0x47875a(0x1cd)]['next'](0x2),_0xce7e5e[_0x47875a(0x268)][_0x47875a(0x1b5)](null),this[_0x47875a(0x390)](_0xce7e5e),this[_0x47875a(0x3e7)](_0xce7e5e);}[_0x4ca2ee(0x3ca)](_0x39176e){const _0x1b6ec9=_0x4ca2ee;this[_0x1b6ec9(0x1a2)](_0x39176e),this[_0x1b6ec9(0x39c)](_0x39176e[_0x1b6ec9(0x3f3)])&&(_0x39176e[_0x1b6ec9(0x35b)]<(this['_configService']['getConfig'](_0x1b6ec9(0x17f))??0x3)?(this[_0x1b6ec9(0x286)][_0x1b6ec9(0x17d)]({'id':_0x1b6ec9(0x484)}),this[_0x1b6ec9(0x254)](_0x39176e)):this['_collaborationUIEventService'][_0x1b6ec9(0x17d)]({'id':_0x1b6ec9(0x210)}));}[_0x4ca2ee(0x254)](_0x2cec5d){const _0xb55d08=_0x4ca2ee;let _0x411365=_0x2cec5d[_0xb55d08(0x35b)],_0x53098a=this[_0xb55d08(0x2b9)]['getConfig'](_0x16372d),_0x251e41=_0x411365===0x0?0x0:((_0x53098a==null?void 0x0:_0x53098a['retryConnectingInterval'])??0x4e20)*0x2**_0x411365;_0x2cec5d[_0xb55d08(0x16c)]=setTimeout(()=>{const _0x46895d=_0xb55d08;clearTimeout(_0x2cec5d[_0x46895d(0x16c)]),_0x2cec5d[_0x46895d(0x16c)]=null,this['_tryEnsureSocket'](_0x2cec5d);},_0x251e41),_0x2cec5d[_0xb55d08(0x35b)]+=0x1;}async[_0x4ca2ee(0x2e5)](_0x3c2cbf,_0x34b153){const _0x1ea776=_0x4ca2ee;return _0x33831d(_0x3c2cbf,_0x34b153,await this[_0x1ea776(0x37a)]['resolveUnit']({'unitId':_0x3c2cbf,'unitType':_0x34b153}));}['_onMessage'](_0x2b87a0,_0x1038f3,_0x2b3d52){const _0x55f748=_0x4ca2ee;let {cmd:_0x3c7e07}=_0x2b3d52;_0x3c7e07===_0x1521ba[_0x55f748(0x382)]['HELLO']&&!_0x2b87a0[_0x55f748(0x3f9)]&&(_0x1038f3[_0x55f748(0x458)]=_0x2b3d52[_0x55f748(0x3d6)][_0x55f748(0x458)],_0x2b87a0[_0x55f748(0x35b)]=0x0,_0x2b87a0[_0x55f748(0x268)][_0x55f748(0x1b5)](_0x1038f3),this[_0x55f748(0x1cd)]['next'](0x3),_0x2b87a0[_0x55f748(0x3f9)]=!0x0,_0x2b87a0[_0x55f748(0x1dc)]=null),_0x3c7e07===_0x1521ba[_0x55f748(0x382)][_0x55f748(0x486)]&&this['_clearTimeoutTimer'](_0x2b87a0),this[_0x55f748(0x465)](_0x2b87a0);}['_hasSessionsForEndpoint'](_0x435102){const _0x262e18=_0x4ca2ee;return[...this[_0x262e18(0x2f6)][_0x262e18(0x1d7)]()][_0x262e18(0x4d0)](_0x51b1d9=>_0x51b1d9===_0x435102);}[_0x4ca2ee(0x372)](_0x17f5c3){const _0x20b053=_0x4ca2ee;let _0x42f33=_0x17f5c3??'',_0x37c19a=this['_socketChannels'][_0x20b053(0x42a)](_0x42f33);if(_0x37c19a)return _0x37c19a;let _0x1355f2={'endpointKey':_0x42f33,'endpoint':_0x17f5c3,'socket$':new _0x42b37f[(_0x20b053(0x43f))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x20b053(0x40c)][_0x20b053(0x3e8)](_0x42f33,_0x1355f2),_0x1355f2;}[_0x4ca2ee(0x465)](_0xf39ed7){const _0x48607e=_0x4ca2ee;this['_clearHeartbeatTimer'](_0xf39ed7),_0xf39ed7[_0x48607e(0x2b4)]=setTimeout(()=>this[_0x48607e(0x492)](_0xf39ed7),this[_0x48607e(0x2b9)][_0x48607e(0x433)](_0x48607e(0x1de))??0x7530);}[_0x4ca2ee(0x492)](_0xa0706c){const _0x42de02=_0x4ca2ee;_0xa0706c[_0x42de02(0x268)]['getValue']()[_0x42de02(0x432)]({'cmd':_0x1521ba[_0x42de02(0x382)][_0x42de02(0x486)]}),this[_0x42de02(0x2d1)](_0xa0706c);}[_0x4ca2ee(0x2d1)](_0x4fd4af){const _0x1ba7eb=_0x4ca2ee;_0x4fd4af[_0x1ba7eb(0x36a)]=setTimeout(()=>this[_0x1ba7eb(0x3ca)](_0x4fd4af),this['_configService'][_0x1ba7eb(0x433)](_0x1ba7eb(0x2d2))??0x4e20);}[_0x4ca2ee(0x3e7)](_0x4c20eb){const _0x1292e8=_0x4ca2ee;_0x4c20eb[_0x1292e8(0x2b4)]!=null&&(clearTimeout(_0x4c20eb[_0x1292e8(0x2b4)]),_0x4c20eb[_0x1292e8(0x2b4)]=null);}[_0x4ca2ee(0x390)](_0x1db012){const _0x56c41f=_0x4ca2ee;_0x1db012[_0x56c41f(0x36a)]!=null&&(clearTimeout(_0x1db012['timeoutTimer']),_0x1db012['timeoutTimer']=null);}};_0x55f186=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f['Inject'])(_0x78cf9f['Injector'])),_0x51b612(0x1,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0x2,_0x78cf9f['IConfigService']),_0x51b612(0x3,_0x2277c0),_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6)),_0x51b612(0x5,_0x997217),_0x51b612(0x6,(0x0,_0x78cf9f[_0x4ca2ee(0x1d9)])(_0x11f218))],_0x55f186);let _0x2b01b9=class extends _0x78cf9f[_0x4ca2ee(0x342)]{constructor(_0x2367ec,_0x4cd2d4,_0x1bde7c,_0x2fb6a2){const _0x1d19b1=_0x4ca2ee;var _0x9be5c0;super(),this[_0x1d19b1(0x3b1)]=_0x2367ec,this[_0x1d19b1(0x27a)]=_0x4cd2d4,this['_configService']=_0x1bde7c,this['_univerInstanceService']=_0x2fb6a2,_0x4f9d46(this,'_entities',new Map()),_0x4f9d46(this,'_entityInit$',new _0x42b37f['Subject']()),_0x4f9d46(this,_0x1d19b1(0x36b),this[_0x1d19b1(0x1e1)][_0x1d19b1(0x4d3)]()),((_0x9be5c0=this[_0x1d19b1(0x2b9)]['getConfig'](_0x1d19b1(0x27b)))==null?void 0x0:_0x9be5c0[_0x1d19b1(0x443)])!==!0x1&&this[_0x1d19b1(0x334)]();}[_0x4ca2ee(0x48f)](){const _0x52c4c9=_0x4ca2ee;super[_0x52c4c9(0x48f)](),this['_entities']['forEach'](_0x15fd94=>_0x15fd94[_0x52c4c9(0x48f)]()),this['_entities'][_0x52c4c9(0x358)]();}[_0x4ca2ee(0x250)](_0x185a8d){const _0x121d87=_0x4ca2ee;return this[_0x121d87(0x422)][_0x121d87(0x42a)](_0x185a8d)??null;}[_0x4ca2ee(0x3b3)](_0x280556){const _0x4638f5=_0x4ca2ee;let _0x3240ab=this[_0x4638f5(0x250)](_0x280556);return _0x3240ab?(0x0,_0x42b37f['of'])(_0x3240ab):this[_0x4638f5(0x1e1)][_0x4638f5(0x28c)]((0x0,_0x30b86b[_0x4638f5(0x2cc)])(_0x29eea0=>_0x29eea0[_0x4638f5(0x272)]===_0x280556));}[_0x4ca2ee(0x1a3)](_0xf64129){const _0x4226f1=_0x4ca2ee;return(0x0,_0x42b37f['firstValueFrom'])(this[_0x4226f1(0x3b3)](_0xf64129)[_0x4226f1(0x28c)]((0x0,_0x30b86b[_0x4226f1(0x2b8)])(()=>void 0x0)));}[_0x4ca2ee(0x334)](){const _0x2906c2=_0x4ca2ee;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x78cf9f[_0x2906c2(0x4a8)][_0x2906c2(0x220)])[_0x2906c2(0x28c)]((0x0,_0x42b37f[_0x2906c2(0x381)])(this[_0x2906c2(0x32d)]),(0x0,_0x30b86b[_0x2906c2(0x401)])(0x10))[_0x2906c2(0x3ae)](async _0x4fff12=>{const _0x5bf3f1=_0x2906c2;let _0x2ea82f=_0x4fff12[_0x5bf3f1(0x2bd)][_0x5bf3f1(0x3f8)](),_0x40c613=await this['_startCollaboration'](_0x2ea82f,_0x78cf9f[_0x5bf3f1(0x4a8)][_0x5bf3f1(0x220)]);this[_0x5bf3f1(0x422)][_0x5bf3f1(0x3e8)](_0x2ea82f,_0x40c613);}),this['_univerInstanceService'][_0x2906c2(0x166)](_0x78cf9f[_0x2906c2(0x4a8)][_0x2906c2(0x40b)])[_0x2906c2(0x28c)]((0x0,_0x42b37f[_0x2906c2(0x381)])(this[_0x2906c2(0x32d)]),(0x0,_0x30b86b[_0x2906c2(0x401)])(0x10))['pipe']((0x0,_0x30b86b[_0x2906c2(0x2cc)])(_0x2c758b=>!_0x2c758b['unit'][_0x2906c2(0x3f8)]()[_0x2906c2(0x2b0)]('__')))[_0x2906c2(0x3ae)](async _0x441fc8=>{const _0x2adc0e=_0x2906c2;let _0x4a75d7=_0x441fc8[_0x2adc0e(0x2bd)][_0x2adc0e(0x3f8)](),_0x44a403=await this[_0x2adc0e(0x289)](_0x4a75d7,_0x78cf9f['UniverInstanceType']['UNIVER_DOC']);this['_entities'][_0x2adc0e(0x3e8)](_0x4a75d7,_0x44a403);}),this['_univerInstanceService'][_0x2906c2(0x166)](_0x78cf9f[_0x2906c2(0x4a8)]['UNIVER_SLIDE'])[_0x2906c2(0x28c)]((0x0,_0x42b37f[_0x2906c2(0x381)])(this[_0x2906c2(0x32d)]),(0x0,_0x30b86b[_0x2906c2(0x401)])(0x10))[_0x2906c2(0x3ae)](async _0x273283=>{const _0x45aa87=_0x2906c2;let _0x5093b1=_0x273283[_0x45aa87(0x2bd)]['getUnitId'](),_0x1e31a4=await this[_0x45aa87(0x289)](_0x5093b1,_0x78cf9f[_0x45aa87(0x4a8)]['UNIVER_SLIDE']);this['_entities'][_0x45aa87(0x3e8)](_0x5093b1,_0x1e31a4);}),this[_0x2906c2(0x3fa)][_0x2906c2(0x166)](_0x78cf9f[_0x2906c2(0x4a8)][_0x2906c2(0x383)])[_0x2906c2(0x28c)]((0x0,_0x42b37f[_0x2906c2(0x381)])(this[_0x2906c2(0x32d)]),(0x0,_0x30b86b['delay'])(0x10))[_0x2906c2(0x3ae)](async _0x37243c=>{const _0x1b021f=_0x2906c2;let _0x9531b0=_0x37243c['unit'][_0x1b021f(0x3f8)](),_0x213970=await this[_0x1b021f(0x289)](_0x9531b0,_0x78cf9f[_0x1b021f(0x4a8)]['UNIVER_BOARD']);this[_0x1b021f(0x422)][_0x1b021f(0x3e8)](_0x9531b0,_0x213970);}),this['_univerInstanceService'][_0x2906c2(0x166)](_0x78cf9f['UniverInstanceType']['UNIVER_BASE'])[_0x2906c2(0x28c)]((0x0,_0x42b37f[_0x2906c2(0x381)])(this['dispose$']),(0x0,_0x30b86b[_0x2906c2(0x401)])(0x10))[_0x2906c2(0x3ae)](async _0x1d2ae1=>{const _0x4efca9=_0x2906c2;let _0x56461f=_0x1d2ae1['unit']['getUnitId'](),_0x39f112=await this[_0x4efca9(0x289)](_0x56461f,_0x78cf9f[_0x4efca9(0x4a8)]['UNIVER_BASE']);this[_0x4efca9(0x422)][_0x4efca9(0x3e8)](_0x56461f,_0x39f112);}),this['_univerInstanceService'][_0x2906c2(0x166)](_0x78cf9f['UniverInstanceType'][_0x2906c2(0x1c7)])[_0x2906c2(0x28c)]((0x0,_0x42b37f[_0x2906c2(0x381)])(this[_0x2906c2(0x32d)]),(0x0,_0x30b86b[_0x2906c2(0x401)])(0x10))[_0x2906c2(0x3ae)](async _0x4d835d=>{const _0x4d5929=_0x2906c2;let _0x3a3797=_0x4d835d[_0x4d5929(0x2bd)]['getUnitId'](),_0x30b804=await this[_0x4d5929(0x289)](_0x3a3797,_0x78cf9f['UniverInstanceType']['UNIVER_PDF']);this['_entities'][_0x4d5929(0x3e8)](_0x3a3797,_0x30b804);}),(0x0,_0x42b37f[_0x2906c2(0x364)])(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x78cf9f[_0x2906c2(0x4a8)][_0x2906c2(0x220)]),this[_0x2906c2(0x3fa)][_0x2906c2(0x425)](_0x78cf9f[_0x2906c2(0x4a8)]['UNIVER_DOC']),this[_0x2906c2(0x3fa)][_0x2906c2(0x425)](_0x78cf9f[_0x2906c2(0x4a8)][_0x2906c2(0x4c9)]),this[_0x2906c2(0x3fa)][_0x2906c2(0x425)](_0x78cf9f['UniverInstanceType'][_0x2906c2(0x383)]),this[_0x2906c2(0x3fa)]['getTypeOfUnitDisposed$'](_0x78cf9f['UniverInstanceType'][_0x2906c2(0x2ed)]),this[_0x2906c2(0x3fa)][_0x2906c2(0x425)](_0x78cf9f[_0x2906c2(0x4a8)][_0x2906c2(0x1c7)]))[_0x2906c2(0x28c)]((0x0,_0x42b37f[_0x2906c2(0x381)])(this[_0x2906c2(0x32d)]))['subscribe'](_0x4df413=>{const _0x24579f=_0x2906c2;let _0x4a2b9e=_0x4df413[_0x24579f(0x3f8)](),_0x5695ad=this[_0x24579f(0x422)][_0x24579f(0x42a)](_0x4a2b9e);_0x5695ad&&(_0x5695ad['dispose'](),this[_0x24579f(0x422)][_0x24579f(0x483)](_0x4a2b9e));});}async[_0x4ca2ee(0x289)](_0xc07892,_0x546d0a){const _0x125016=_0x4ca2ee;let _0x4b5e69=await this['_collabSessionService'][_0x125016(0x454)](_0xc07892),_0x124852=this['_injector']['createInstance'](this[_0x125016(0x3e5)](_0x546d0a),_0xc07892,_0x546d0a,_0x4b5e69);return await _0x124852[_0x125016(0x3d7)](),this[_0x125016(0x1e1)][_0x125016(0x1b5)](_0x124852),_0x124852;}[_0x4ca2ee(0x3e5)](_0x39dc98){const _0x21a111=_0x4ca2ee;switch(_0x39dc98){case _0x78cf9f[_0x21a111(0x4a8)][_0x21a111(0x40b)]:return _0x3c6cb8;case _0x78cf9f['UniverInstanceType'][_0x21a111(0x220)]:return _0x2da38a;case _0x78cf9f[_0x21a111(0x4a8)]['UNIVER_SLIDE']:return _0x4150af;case _0x78cf9f[_0x21a111(0x4a8)][_0x21a111(0x383)]:return _0x455183;case _0x78cf9f['UniverInstanceType'][_0x21a111(0x2ed)]:return _0x3e3c1b;case _0x78cf9f[_0x21a111(0x4a8)]['UNIVER_PDF']:return _0x1743c3;default:throw Error(_0x21a111(0x192)+_0x39dc98);}}};_0x2b01b9=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x1,(0x0,_0x78cf9f['Inject'])(_0x55f186)),_0x51b612(0x2,_0x78cf9f[_0x4ca2ee(0x178)]),_0x51b612(0x3,_0x78cf9f[_0x4ca2ee(0x39a)])],_0x2b01b9);var _0x4265cd='@univerjs-pro/collaboration-client',_0x37eba4=_0x4ca2ee(0x208);let _0x5eab30=class extends _0x78cf9f[_0x4ca2ee(0x3b4)]{constructor(_0x46b721,_0x2af47d){const _0x2dd1c8=_0x4ca2ee;super(),this['_univerInstanceService']=_0x46b721,this[_0x2dd1c8(0x2b9)]=_0x2af47d,this[_0x2dd1c8(0x334)]();}[_0x4ca2ee(0x334)](){const _0x4184a4=_0x4ca2ee;this[_0x4184a4(0x2f7)](this[_0x4184a4(0x3fa)][_0x4184a4(0x24e)][_0x4184a4(0x3ae)](()=>{const _0x13d97f=_0x4184a4;let _0x324a8c=this[_0x13d97f(0x3fa)][_0x13d97f(0x3ad)](),_0x15905c=this[_0x13d97f(0x2b9)]['getConfig']('DEFAULT_FILE_NAME')??_0x13d97f(0x4cd);_0x324a8c instanceof _0x78cf9f[_0x13d97f(0x324)]&&(_0x15905c=_0x324a8c['name']),document[_0x13d97f(0x34e)]=_0x15905c;}));}};_0x5eab30=_0x182061([_0x51b612(0x0,_0x78cf9f[_0x4ca2ee(0x39a)]),_0x51b612(0x1,_0x78cf9f[_0x4ca2ee(0x178)])],_0x5eab30);let _0x3ff2b3=(0x0,_0x78cf9f[_0x4ca2ee(0x404)])(_0x4ca2ee(0x49d)),_0x7c9ef=class{constructor(_0x263106,_0x26f3ba,_0x167486){const _0xfcb12=_0x4ca2ee;this[_0xfcb12(0x173)]=_0x263106,this[_0xfcb12(0x2b9)]=_0x26f3ba,this[_0xfcb12(0x3fa)]=_0x167486;}[_0x4ca2ee(0x19e)](){const _0x264773=_0x4ca2ee;return this[_0x264773(0x3e2)]()[_0x264773(0x36e)]??{};}async[_0x4ca2ee(0x3c2)](_0x31136b){const _0x17c1c8=_0x4ca2ee;let _0x10ed18=this[_0x17c1c8(0x19e)]();if(_0x1d1c11(_0x31136b,_0x10ed18),_0x10ed18[_0x17c1c8(0x493)])return _0x10ed18[_0x17c1c8(0x493)](_0x31136b);let _0x5058b6=await this[_0x17c1c8(0x323)](_0x31136b);return{'id':_0x5058b6,'name':_0x31136b[_0x17c1c8(0x39d)],'mimeType':_0x31136b['type'],'size':_0x31136b['size'],'sourceType':_0x78cf9f[_0x17c1c8(0x310)][_0x17c1c8(0x388)],'source':_0x5058b6};}async[_0x4ca2ee(0x278)](_0x104a8a,_0x2e7286){const _0x1831ab=_0x4ca2ee;if(_0x2e7286!==_0x78cf9f[_0x1831ab(0x310)][_0x1831ab(0x388)])return _0x104a8a;let _0x3c75d9=(await this[_0x1831ab(0x173)][_0x1831ab(0x42a)](this[_0x1831ab(0x1b7)]()['replace'](_0x1831ab(0x312),_0x104a8a)))[_0x1831ab(0x1f0)];if(_0x3c75d9[_0x1831ab(0x2a2)]&&_0x3c75d9[_0x1831ab(0x2a2)][_0x1831ab(0x34c)]!==_0x1521ba[_0x1831ab(0x489)]['OK'])throw _0x3c75d9[_0x1831ab(0x2a2)];if(!_0x3c75d9['url'])throw Error(_0x1831ab(0x213));return(0x0,_0x78cf9f[_0x1831ab(0x259)])(_0x3c75d9['url'],this[_0x1831ab(0x22e)]());}async[_0x4ca2ee(0x323)](_0x79fe04){const _0x4d57e2=_0x4ca2ee;let _0x45c219=this[_0x4d57e2(0x3fa)][_0x4d57e2(0x3ad)](),_0xf844f6=_0x45c219==null?void 0x0:_0x45c219['getUnitId']();if(!_0xf844f6)throw Error(_0x4d57e2(0x31a));let _0x1f2bd3=new FormData();_0x1f2bd3['append']('file',_0x79fe04);let _0x1877bf=this['_getUploadFileURL']()+_0x4d57e2(0x198)+_0x79fe04[_0x4d57e2(0x33f)]['toString']()+_0x4d57e2(0x499)+_0x1521ba[_0x4d57e2(0x3c3)][_0x4d57e2(0x34d)]+'&assign='+encodeURIComponent(_0xf844f6),_0x129024=(await this[_0x4d57e2(0x173)][_0x4d57e2(0x186)](_0x1877bf,{'body':_0x1f2bd3}))[_0x4d57e2(0x1f0)][_0x4d57e2(0x31f)];if(typeof _0x129024!='string'||!_0x129024)throw Error(_0x4d57e2(0x3a8));return _0x129024;}[_0x4ca2ee(0x3a9)](){const _0x473c53=_0x4ca2ee;return this[_0x473c53(0x3e2)]()[_0x473c53(0x3a4)]??'/universer-api/stream/file/upload';}['_getSignURL'](){const _0x5b7a81=_0x4ca2ee;return this[_0x5b7a81(0x3e2)]()[_0x5b7a81(0x47a)]??_0x5b7a81(0x4a0);}['_getDownloadEndpointURL'](){const _0x4f24ae=_0x4ca2ee;let _0x2a5458=this[_0x4f24ae(0x3e2)]();return _0x2a5458[_0x4f24ae(0x21b)]?_0x2a5458[_0x4f24ae(0x21b)]:typeof location<'u'?location[_0x4f24ae(0x365)]:_0x2a5458[_0x4f24ae(0x3a4)]??'';}[_0x4ca2ee(0x3e2)](){const _0x1b1b1c=_0x4ca2ee;return this[_0x1b1b1c(0x2b9)][_0x1b1b1c(0x433)]('collaboration-client.config')??{};}};_0x7c9ef=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x4de411['HTTPService'])),_0x51b612(0x1,(0x0,_0x78cf9f['Inject'])(_0x78cf9f[_0x4ca2ee(0x178)])),_0x51b612(0x2,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['IUniverInstanceService']))],_0x7c9ef);function _0x1d1c11(_0x211a57,_0x6433fe){const _0x330c1a=_0x4ca2ee;var _0xc9421b;if(_0x6433fe[_0x330c1a(0x46b)]!=null&&_0x211a57[_0x330c1a(0x33f)]>_0x6433fe[_0x330c1a(0x46b)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0xc9421b=_0x6433fe['accept'])!=null&&_0xc9421b[_0x330c1a(0x452)]&&!_0x6433fe[_0x330c1a(0x391)][_0x330c1a(0x4d0)](_0x13405c=>_0x211a57[_0x330c1a(0x2db)]===_0x13405c||_0x211a57['name'][_0x330c1a(0x1d3)](_0x13405c)||_0x13405c[_0x330c1a(0x1d3)]('/*')&&_0x211a57[_0x330c1a(0x2db)][_0x330c1a(0x2b0)](_0x13405c['slice'](0x0,-0x1))))throw Error(_0x330c1a(0x19f));}let _0x4f4c43=class{constructor(_0x38b876,_0x274f25,_0x5ccb97){const _0x382ae7=_0x4ca2ee;this[_0x382ae7(0x2b9)]=_0x38b876,this[_0x382ae7(0x173)]=_0x274f25,this[_0x382ae7(0x227)]=_0x5ccb97,this['init']();}['init'](){const _0x487b45=_0x4ca2ee;this[_0x487b45(0x173)][_0x487b45(0x30c)]({'priority':0x1,'interceptor':(_0x29149b,_0x2cec3f)=>_0x2cec3f(_0x29149b)[_0x487b45(0x28c)]((0x0,_0x42b37f[_0x487b45(0x43d)])(async _0x53aee5=>{const _0xf1d977=_0x487b45;let _0x130200=_0x53aee5;if(_0x130200[_0xf1d977(0x43c)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window['confirm'](this[_0xf1d977(0x227)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x55acaa=window['encodeURIComponent'](window[_0xf1d977(0x2df)]['href']);window[_0xf1d977(0x2df)][_0xf1d977(0x4a2)]=this[_0xf1d977(0x1f1)]()+'?url='+_0x55acaa;}}return _0x130200;}))});}[_0x4ca2ee(0x1f1)](){const _0x2a4f91=_0x4ca2ee;let _0x572693=this['_configService']['getConfig'](_0x16372d);return(_0x572693==null?void 0x0:_0x572693[_0x2a4f91(0x1a8)])??_0x2a4f91(0x45c);}};_0x4f4c43=_0x182061([_0x51b612(0x0,_0x78cf9f[_0x4ca2ee(0x178)]),_0x51b612(0x1,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x4de411[_0x4ca2ee(0x332)])),_0x51b612(0x2,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x17a)]))],_0x4f4c43);let _0x13ade1=class extends _0x78cf9f[_0x4ca2ee(0x3b4)]{constructor(_0x111c23,_0x85e677){const _0x39c494=_0x4ca2ee;super(),this[_0x39c494(0x2f2)]=_0x111c23,this[_0x39c494(0x2b9)]=_0x85e677,_0x4f9d46(this,_0x39c494(0x1a7),!0x1),this['_initMergeInterceptor']();}[_0x4ca2ee(0x2af)](){const _0x2368be=_0x4ca2ee;let _0x5b0961=this;this[_0x2368be(0x2f7)](this[_0x2368be(0x2f2)][_0x2368be(0x30c)]({'priority':0x3e7,'interceptor':(0x0,_0x4de411[_0x2368be(0x42d)])({'isMatch'(_0x1963d3){const _0xc27692=_0x2368be;var _0xc6b05c;if(_0x1963d3[_0xc27692(0x403)]===_0xc27692(0x40a)&&(_0xc6b05c=_0x1963d3[_0xc27692(0x314)])!=null&&_0xc6b05c[_0xc27692(0x1f0)]){let {objectID:_0x185366,objectType:_0x3f2644}=_0x1963d3[_0xc27692(0x314)][_0xc27692(0x1f0)]||{};if(!_0x185366||_0x3f2644===void 0x0)return!0x1;let _0x478a1b=_0x5b0961[_0xc27692(0x288)]()+'/'+_0x3f2644+'/object/'+encodeURIComponent(_0x185366)+_0xc27692(0x35e);if(_0x1963d3[_0xc27692(0x2ac)]===_0x478a1b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xdc39a9){const _0x5d98da=_0x2368be;var _0x112c60;return(_0x112c60=_0xdc39a9[_0x5d98da(0x314)])==null?void 0x0:_0x112c60[_0x5d98da(0x1f0)];},'mergeParamsToRequest'(_0x331ee3,_0x55ffb1){const _0x3c7185=_0x2368be;let _0x38823c=_0x5b0961['_getAPIPrefixPath']()+_0x3c7185(0x3f1),_0x4af65b=_0x331ee3[_0x3c7185(0x4a1)]((_0x2a4b17,_0x3daa3c)=>{const _0xa97dc7=_0x3c7185;let {unitID:_0x1b9c9f,objectID:_0x1dcc0c,objectType:_0x2c0d73,actions:_0x1f212e}=_0x3daa3c;return _0x2a4b17[_0x1b9c9f]||(_0x2a4b17[_0x1b9c9f]=Object[_0xa97dc7(0x1f9)](null)),_0x2a4b17[_0x1b9c9f][_0x1dcc0c]||(_0x2a4b17[_0x1b9c9f][_0x1dcc0c]={'objectID':_0x1dcc0c,'objectType':_0x2c0d73,'actions':[]}),_0x2a4b17[_0x1b9c9f][_0x1dcc0c][_0xa97dc7(0x3d5)][_0xa97dc7(0x204)](..._0x1f212e),_0x2a4b17;},Object['create'](null)),_0x13ac1a=[];for(let _0x629e6d in _0x4af65b)for(let _0x5ecf52 in _0x4af65b[_0x629e6d]){let {actions:_0x29eabb,objectType:_0x2738df}=_0x4af65b[_0x629e6d][_0x5ecf52],_0xa6dcef=[...new Set(_0x29eabb)];_0x13ac1a[_0x3c7185(0x204)]({'unitID':_0x629e6d,'objectID':_0x5ecf52,'objectType':_0x2738df,'actions':_0xa6dcef});}return new _0x4de411[(_0x3c7185(0x30e))](_0x3c7185(0x40a),_0x38823c,{'headers':_0x55ffb1[_0x3c7185(0x279)],'withCredentials':_0x55ffb1[_0x3c7185(0x1d5)],'responseType':_0x55ffb1[_0x3c7185(0x347)],'body':{'requests':_0x13ac1a}});}},{'distributeResult'(_0x50b619,_0x353e85){let {objectActions:_0x26eb8f}=_0x50b619;return _0x353e85['map'](_0x1fa03c=>{const _0x1b104b=_0x41d6;let {unitID:_0x3106d6,objectID:_0x31376f,actions:_0x2c1b70}=_0x1fa03c,_0x439d4b=_0x26eb8f['find'](_0x97ba73=>_0x97ba73[_0x1b104b(0x272)]===_0x3106d6&&_0x97ba73['objectID']===_0x31376f);return{'config':_0x1fa03c,'result':{'actions':_0x2c1b70[_0x1b104b(0x2b8)](_0x10f1d8=>_0x439d4b==null?void 0x0:_0x439d4b[_0x1b104b(0x3d5)][_0x1b104b(0x224)](_0xdf8804=>_0xdf8804[_0x1b104b(0x19a)]===_0x10f1d8))[_0x1b104b(0x2cc)](_0x2b3505=>!!_0x2b3505),'error':_0x50b619[_0x1b104b(0x2a2)]}};});}})}));}[_0x4ca2ee(0x288)](){const _0x38710d=_0x4ca2ee;let _0x1d2480=this['_configService'][_0x38710d(0x433)](_0x16372d);return(_0x1d2480==null?void 0x0:_0x1d2480[_0x38710d(0x421)])??_0x38710d(0x368);}async[_0x4ca2ee(0x1f9)](_0x510a26){const _0x1bfa08=_0x4ca2ee;let _0x41ae24=this[_0x1bfa08(0x288)]()+'/'+_0x510a26[_0x1bfa08(0x367)]+_0x1bfa08(0x2eb);return(await this['_HTTPService'][_0x1bfa08(0x186)](_0x41ae24,{'body':_0x510a26}))[_0x1bfa08(0x1f0)][_0x1bfa08(0x4b8)]||'';}async[_0x4ca2ee(0x1b4)](_0x4095f6){const _0x4f02bc=_0x4ca2ee;let _0x34dc48=this[_0x4f02bc(0x288)]()+_0x4f02bc(0x32b);return(await this[_0x4f02bc(0x2f2)]['post'](_0x34dc48,{'body':_0x4095f6}))[_0x4f02bc(0x1f0)][_0x4f02bc(0x263)];}async['update'](_0xa3e9d5){const _0xc403e0=_0x4ca2ee;var _0x51d5ba;let _0x278cda=this['_getAPIPrefixPath']()+'/'+_0xa3e9d5[_0xc403e0(0x367)]+_0xc403e0(0x165)+encodeURIComponent(_0xa3e9d5[_0xc403e0(0x4b8)]),_0x3c42d4=await this[_0xc403e0(0x2f2)][_0xc403e0(0x41c)](_0x278cda,{'body':_0xa3e9d5});if((_0x3c42d4==null||(_0x51d5ba=_0x3c42d4[_0xc403e0(0x1f0)])==null||(_0x51d5ba=_0x51d5ba[_0xc403e0(0x2a2)])==null?void 0x0:_0x51d5ba['code'])!==0x1)throw Error(_0xc403e0(0x255));}async['allowed'](_0x3f33f2){const _0x1c46e2=_0x4ca2ee;let _0xff306f=this[_0x1c46e2(0x288)]()+'/'+_0x3f33f2[_0x1c46e2(0x367)]+_0x1c46e2(0x165)+encodeURIComponent(_0x3f33f2[_0x1c46e2(0x4b8)])+_0x1c46e2(0x35e);return(await this[_0x1c46e2(0x2f2)]['post'](_0xff306f,{'body':_0x3f33f2}))['body'][_0x1c46e2(0x3d5)];}async[_0x4ca2ee(0x20a)](_0x3a7bf0){const _0x23f53a=_0x4ca2ee;let _0x2ccd7d=this[_0x23f53a(0x288)]()+_0x23f53a(0x3f1);return(await this[_0x23f53a(0x2f2)][_0x23f53a(0x186)](_0x2ccd7d,{'body':{'requests':_0x3a7bf0}}))['body'][_0x23f53a(0x21c)];}async['listRoles'](_0x5b94d8){const _0x38355e=_0x4ca2ee;let _0x599cdf=this[_0x38355e(0x288)]()+'/'+_0x5b94d8[_0x38355e(0x367)]+_0x38355e(0x23e),_0xc11b8d=await this['_HTTPService']['post'](_0x599cdf,{'body':_0x5b94d8});return{'roles':_0xc11b8d[_0x38355e(0x1f0)][_0x38355e(0x2d9)],'actions':_0xc11b8d[_0x38355e(0x1f0)][_0x38355e(0x3d5)]};}async[_0x4ca2ee(0x1ab)](_0x30c1b4){const _0x55adc5=_0x4ca2ee;let _0x723fd5=this['_getAPIPrefixPath']()+_0x55adc5(0x416);await this[_0x55adc5(0x2f2)][_0x55adc5(0x483)](_0x723fd5,{'params':{'collaboratorID':_0x30c1b4[_0x55adc5(0x476)],'objectID':_0x30c1b4['objectID'],'unitID':_0x30c1b4[_0x55adc5(0x272)]}});}async[_0x4ca2ee(0x2dd)](_0x450240){const _0x167a23=_0x4ca2ee;let _0x4a5486=this['_getAPIPrefixPath']()+_0x167a23(0x416);await this['_HTTPService'][_0x167a23(0x2c2)](_0x4a5486,{'body':_0x450240});}async[_0x4ca2ee(0x38b)](_0x46b92d){const _0x45e7fc=_0x4ca2ee;let _0x597bfc=this[_0x45e7fc(0x288)]()+_0x45e7fc(0x416);await this['_HTTPService'][_0x45e7fc(0x186)](_0x597bfc,{'body':_0x46b92d});}async[_0x4ca2ee(0x2a8)](_0x402f3e){const _0x8ade01=_0x4ca2ee;let _0x37e1d1=this['_getAPIPrefixPath']()+_0x8ade01(0x416),_0x49b4f4=await this['_HTTPService']['get'](_0x37e1d1,{'params':{'objectID':_0x402f3e[_0x8ade01(0x4b8)],'unitID':_0x402f3e['unitID']}});return this[_0x8ade01(0x38a)](_0x49b4f4[_0x8ade01(0x1f0)][_0x8ade01(0x4a9)]??!0x1),_0x49b4f4['body'][_0x8ade01(0x3fd)];}async[_0x4ca2ee(0x350)](_0x5249be){const _0x3a2916=_0x4ca2ee;let _0x244ac1=this[_0x3a2916(0x288)]()+_0x3a2916(0x416);await this[_0x3a2916(0x2f2)][_0x3a2916(0x41c)](_0x244ac1,{'body':_0x5249be});}[_0x4ca2ee(0x38a)](_0x17d4c3){const _0xca342b=_0x4ca2ee;this[_0xca342b(0x1a7)]=_0x17d4c3;}[_0x4ca2ee(0x37e)](){const _0x295305=_0x4ca2ee;return this[_0x295305(0x1a7)];}};_0x13ade1=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x4de411[_0x4ca2ee(0x332)])),_0x51b612(0x1,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f[_0x4ca2ee(0x178)]))],_0x13ade1);function _0x7611e7(_0x2baf8d){const _0x98051c=_0x4ca2ee;return _0x2baf8d instanceof Uint8Array||ArrayBuffer[_0x98051c(0x41e)](_0x2baf8d)&&_0x2baf8d[_0x98051c(0x247)][_0x98051c(0x39d)]===_0x98051c(0x30b)&&'BYTES_PER_ELEMENT'in _0x2baf8d&&_0x2baf8d[_0x98051c(0x4b9)]===0x1;}let _0x494d7b=_0x5cb76c=>_0x5cb76c?'\x22'+_0x5cb76c+'\x22\x20':'';function _0x52caff(_0x523c49,_0x1611ff=''){const _0x49c813=_0x4ca2ee;if(typeof _0x523c49!=_0x49c813(0x30f))throw TypeError(_0x494d7b(_0x1611ff)+_0x49c813(0x218)+typeof _0x523c49);if(!Number[_0x49c813(0x191)](_0x523c49)||_0x523c49<0x0)throw RangeError(_0x494d7b(_0x1611ff)+'expected\x20integer\x20>=\x200,\x20got\x20'+_0x523c49);return _0x523c49;}function _0x37a082(_0x483c34,_0x4da27e,_0x3bb18a=''){const _0x15ec19=_0x4ca2ee;if(_0x7611e7(_0x483c34)&&(_0x4da27e===void 0x0||_0x483c34['length']===_0x4da27e))return _0x483c34;_0x4da27e!==void 0x0&&_0x52caff(_0x4da27e,_0x15ec19(0x452));let _0x3eef12=_0x7611e7(_0x483c34),_0x20da11=_0x4da27e===void 0x0?'':_0x15ec19(0x33e)+_0x4da27e,_0x3e0238=_0x3eef12?_0x15ec19(0x321)+_0x483c34[_0x15ec19(0x452)]:_0x15ec19(0x4b2)+typeof _0x483c34,_0x3f4519=_0x494d7b(_0x3bb18a)+_0x15ec19(0x308)+_0x20da11+_0x15ec19(0x285)+_0x3e0238;throw _0x3eef12?RangeError(_0x3f4519):TypeError(_0x3f4519);}function _0x39eec9(_0x30a4ee){const _0x55cb0b=_0x4ca2ee;return new Uint32Array(_0x30a4ee['buffer'],_0x30a4ee[_0x55cb0b(0x2b5)],Math[_0x55cb0b(0x44b)](_0x30a4ee['byteLength']/0x4));}function _0x4cc9dc(..._0x119e85){const _0x249b15=_0x4ca2ee;for(let _0x2bac66=0x0;_0x2bac66<_0x119e85[_0x249b15(0x452)];_0x2bac66++)_0x119e85[_0x2bac66][_0x249b15(0x3ec)](0x0);}let _0x48b85c=new Uint8Array(new Uint32Array([0x11223344])[_0x4ca2ee(0x309)])[0x0]===0x44;function _0x328b84(_0x1739a2){return _0x1739a2<<0x18&0xff000000|_0x1739a2<<0x8&0xff0000|_0x1739a2>>>0x8&0xff00|_0x1739a2>>>0x18&0xff;}function _0x297ab6(_0x52b87b){for(let _0x146d84=0x0;_0x146d84<_0x52b87b['length'];_0x146d84++)_0x52b87b[_0x146d84]=_0x328b84(_0x52b87b[_0x146d84]);return _0x52b87b;}let _0x1782d2=_0x48b85c?_0x3144f1=>_0x3144f1:_0x297ab6;function _0x409473(_0x429ec6){const _0x4a1da9=_0x4ca2ee;if(typeof _0x429ec6!=_0x4a1da9(0x4b5))throw TypeError('string\x20expected');return new Uint8Array(new TextEncoder()[_0x4a1da9(0x306)](_0x429ec6));}function _0x378bc8(_0x1a47c9,_0x3aed2c){const _0x54ba75=_0x4ca2ee;return!_0x1a47c9[_0x54ba75(0x328)]||!_0x3aed2c['byteLength']?!0x1:_0x1a47c9['buffer']===_0x3aed2c['buffer']&&_0x1a47c9['byteOffset']<_0x3aed2c['byteOffset']+_0x3aed2c[_0x54ba75(0x328)]&&_0x3aed2c[_0x54ba75(0x2b5)]<_0x1a47c9[_0x54ba75(0x2b5)]+_0x1a47c9[_0x54ba75(0x328)];}function _0xf5e542(_0x58750f,_0x589b24){const _0xf027d=_0x4ca2ee;if(_0x378bc8(_0x58750f,_0x589b24)&&_0x58750f[_0xf027d(0x2b5)]<_0x589b24[_0xf027d(0x2b5)])throw Error(_0xf027d(0x207));}function _0x3a63c3(..._0x4d79cf){const _0x279971=_0x4ca2ee;let _0x5ceb3a=0x0;for(let _0x47777f=0x0;_0x47777f<_0x4d79cf[_0x279971(0x452)];_0x47777f++){let _0x145b0f=_0x4d79cf[_0x47777f];_0x37a082(_0x145b0f),_0x5ceb3a+=_0x145b0f[_0x279971(0x452)];}let _0x5f171f=new Uint8Array(_0x5ceb3a);for(let _0xefd57e=0x0,_0x382d4a=0x0;_0xefd57e<_0x4d79cf[_0x279971(0x452)];_0xefd57e++){let _0x585c39=_0x4d79cf[_0xefd57e];_0x5f171f[_0x279971(0x3e8)](_0x585c39,_0x382d4a),_0x382d4a+=_0x585c39[_0x279971(0x452)];}return _0x5f171f;}let _0x4cb10b=(_0x428839,_0x1e17bf)=>{function _0x579e05(_0x201c7b,..._0x567c3b){const _0x7f3609=_0x41d6;if(_0x37a082(_0x201c7b,void 0x0,_0x7f3609(0x1f7)),_0x428839[_0x7f3609(0x340)]!==void 0x0){let _0x142a02=_0x567c3b[0x0];_0x37a082(_0x142a02,_0x428839[_0x7f3609(0x3e1)]?void 0x0:_0x428839[_0x7f3609(0x340)],'nonce');}let _0x22eda3=_0x428839[_0x7f3609(0x333)],_0x1d06a0=_0x428839[_0x7f3609(0x340)]===void 0x0?0x0:0x1;if(!_0x428839['withAAD']){for(let _0x3fa1a7=_0x1d06a0;_0x3fa1a7<_0x567c3b[_0x7f3609(0x452)];_0x3fa1a7++)if(_0x7611e7(_0x567c3b[_0x3fa1a7]))throw Error('AAD\x20not\x20supported');}_0x428839[_0x7f3609(0x18b)]&&_0x567c3b[_0x1d06a0]!==void 0x0&&_0x37a082(_0x567c3b[_0x1d06a0],void 0x0,_0x7f3609(0x303));let _0x308b58=_0x1e17bf(_0x201c7b,..._0x567c3b),_0x364e39=(_0x2d8aed,_0x36eebc)=>{const _0x2a722d=_0x7f3609;if(_0x36eebc!==void 0x0){if(_0x2d8aed!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x37a082(_0x36eebc,void 0x0,_0x2a722d(0x16a));}},_0x51f41a=!0x1;return{'encrypt'(_0x16b090,_0xd6c3d7){const _0x21a72a=_0x7f3609;if(_0x51f41a)throw Error(_0x21a72a(0x46e));return _0x51f41a=!0x0,_0x37a082(_0x16b090,void 0x0,'data'),_0x364e39(_0x308b58[_0x21a72a(0x3ce)][_0x21a72a(0x452)],_0xd6c3d7),_0x308b58[_0x21a72a(0x3ce)](_0x16b090,_0xd6c3d7);},'decrypt'(_0x53872e,_0x396469){const _0x22ba88=_0x7f3609;if(_0x37a082(_0x53872e,void 0x0,_0x22ba88(0x3d6)),_0x22eda3&&_0x53872e[_0x22ba88(0x452)]<_0x22eda3)throw Error(_0x22ba88(0x2ab)+_0x22eda3);return _0x364e39(_0x308b58['decrypt']['length'],_0x396469),_0x308b58[_0x22ba88(0x1f8)](_0x53872e,_0x396469);}};}return Object['assign'](_0x579e05,_0x428839),_0x579e05;};function _0x43fc2a(_0x3f95ab,_0x4fbe49,_0xfa39d5=!0x0){const _0x4d764b=_0x4ca2ee;if(_0x4fbe49===void 0x0)return new Uint8Array(_0x3f95ab);if(_0x37a082(_0x4fbe49,_0x3f95ab,_0x4d764b(0x16a)),_0xfa39d5&&!_0x4d41c0(_0x4fbe49))throw Error(_0x4d764b(0x4a7));return _0x4fbe49;}function _0x4d41c0(_0x545dbb){const _0x256f6a=_0x4ca2ee;return _0x545dbb[_0x256f6a(0x2b5)]%0x4==0x0;}function _0x1738cb(_0x14f873){return Uint8Array['from'](_0x37a082(_0x14f873));}function _0x2da5ed(_0x4c7541=0x20){const _0x5ecbaf=_0x4ca2ee;_0x52caff(_0x4c7541,_0x5ecbaf(0x2e1));let _0x5a871a=typeof globalThis==_0x5ecbaf(0x369)?globalThis[_0x5ecbaf(0x33a)]:null;if(typeof(_0x5a871a==null?void 0x0:_0x5a871a[_0x5ecbaf(0x1a6)])!=_0x5ecbaf(0x4bc))throw Error('crypto.getRandomValues\x20must\x20be\x20defined');if(_0x4c7541>0x10000)throw RangeError(_0x5ecbaf(0x3eb)+_0x4c7541);return _0x5a871a['getRandomValues'](new Uint8Array(_0x4c7541));}function _0x1e362d(_0x578b45){const _0x211b6f=_0x4ca2ee;if(![0x10,0x18,0x20]['includes'](_0x578b45[_0x211b6f(0x452)]))throw Error(_0x211b6f(0x261)+_0x578b45[_0x211b6f(0x452)]);}function _0x5056e9(_0x2f0df5){return _0x2f0df5<<0x1^0x11b&-(_0x2f0df5>>0x7);}function _0x3654e4(_0x2779b3,_0xcfab04){let _0x1938c4=0x0;for(;_0xcfab04>0x0;_0xcfab04>>=0x1)_0x1938c4^=_0x2779b3&-(_0xcfab04&0x1),_0x2779b3=_0x5056e9(_0x2779b3);return _0x1938c4;}let _0x5d52f8=((()=>{let _0x298a6e=new Uint8Array(0x100);for(let _0x1a046e=0x0,_0x4fe0f2=0x1;_0x1a046e<0x100;_0x1a046e++,_0x4fe0f2^=_0x5056e9(_0x4fe0f2))_0x298a6e[_0x1a046e]=_0x4fe0f2;let _0x12c821=new Uint8Array(0x100);_0x12c821[0x0]=0x63;for(let _0x5b0b55=0x0;_0x5b0b55<0xff;_0x5b0b55++){let _0x4902f9=_0x298a6e[0xff-_0x5b0b55];_0x4902f9|=_0x4902f9<<0x8,_0x12c821[_0x298a6e[_0x5b0b55]]=(_0x4902f9^_0x4902f9>>0x4^_0x4902f9>>0x5^_0x4902f9>>0x6^_0x4902f9>>0x7^0x63)&0xff;}return _0x4cc9dc(_0x298a6e),_0x12c821;})()),_0x23244f=_0x5d52f8['map']((_0x39b8e,_0x469729)=>_0x5d52f8[_0x4ca2ee(0x1e4)](_0x469729)),_0x31c5f2=_0x422aa7=>_0x422aa7<<0x18|_0x422aa7>>>0x8,_0x2f5841=_0x4c7650=>_0x4c7650<<0x8|_0x4c7650>>>0x18;function _0x38a114(_0x43e3a0,_0x570966){const _0x4c81c4=_0x4ca2ee;if(_0x43e3a0['length']!==0x100)throw Error(_0x4c81c4(0x3b6));let _0x2e01c7=new Uint32Array(0x100)[_0x4c81c4(0x2b8)]((_0x434ccd,_0x55b5e8)=>_0x570966(_0x43e3a0[_0x55b5e8])),_0x2013d3=_0x2e01c7[_0x4c81c4(0x2b8)](_0x2f5841),_0x2b6561=_0x2013d3[_0x4c81c4(0x2b8)](_0x2f5841),_0x163339=_0x2b6561[_0x4c81c4(0x2b8)](_0x2f5841),_0xbf1f18=new Uint32Array(0x10000),_0x4822ba=new Uint32Array(0x10000),_0xd649b4=new Uint16Array(0x10000);for(let _0x7c704d=0x0;_0x7c704d<0x100;_0x7c704d++)for(let _0xd28eae=0x0;_0xd28eae<0x100;_0xd28eae++){let _0x9c1c51=_0x7c704d*0x100+_0xd28eae;_0xbf1f18[_0x9c1c51]=_0x2e01c7[_0x7c704d]^_0x2013d3[_0xd28eae],_0x4822ba[_0x9c1c51]=_0x2b6561[_0x7c704d]^_0x163339[_0xd28eae],_0xd649b4[_0x9c1c51]=_0x43e3a0[_0x7c704d]<<0x8|_0x43e3a0[_0xd28eae];}return{'sbox':_0x43e3a0,'sbox2':_0xd649b4,'T0':_0x2e01c7,'T1':_0x2013d3,'T2':_0x2b6561,'T3':_0x163339,'T01':_0xbf1f18,'T23':_0x4822ba};}let _0x4545dc=_0x38a114(_0x5d52f8,_0x1665f0=>_0x3654e4(_0x1665f0,0x3)<<0x18|_0x1665f0<<0x10|_0x1665f0<<0x8|_0x3654e4(_0x1665f0,0x2)),_0x32d704=_0x38a114(_0x23244f,_0x3e1e55=>_0x3654e4(_0x3e1e55,0xb)<<0x18|_0x3654e4(_0x3e1e55,0xd)<<0x10|_0x3654e4(_0x3e1e55,0x9)<<0x8|_0x3654e4(_0x3e1e55,0xe)),_0x2fd0e8=((()=>{let _0xcfc983=new Uint8Array(0x10);for(let _0x2b11c9=0x0,_0x1b5e58=0x1;_0x2b11c9<0x10;_0x2b11c9++,_0x1b5e58=_0x5056e9(_0x1b5e58))_0xcfc983[_0x2b11c9]=_0x1b5e58;return _0xcfc983;})());function _0x4763f9(_0x9123bc){const _0x112dd0=_0x4ca2ee;_0x37a082(_0x9123bc);let _0x2c3f45=_0x9123bc['length'];_0x1e362d(_0x9123bc);let {sbox2:_0x30ac34}=_0x4545dc,_0x52538a=[];(!_0x48b85c||!_0x4d41c0(_0x9123bc))&&_0x52538a['push'](_0x9123bc=_0x1738cb(_0x9123bc));let _0x11e8c6=_0x1782d2(_0x39eec9(_0x9123bc)),_0x4aca7b=_0x11e8c6[_0x112dd0(0x452)],_0x1dae1c=_0x5d5128=>_0x187451(_0x30ac34,_0x5d5128,_0x5d5128,_0x5d5128,_0x5d5128),_0x28606f=new Uint32Array(_0x2c3f45+0x1c);_0x28606f['set'](_0x11e8c6);for(let _0x663d0a=_0x4aca7b;_0x663d0a<_0x28606f[_0x112dd0(0x452)];_0x663d0a++){let _0x45771c=_0x28606f[_0x663d0a-0x1];_0x663d0a%_0x4aca7b===0x0?_0x45771c=_0x1dae1c(_0x31c5f2(_0x45771c))^_0x2fd0e8[_0x663d0a/_0x4aca7b-0x1]:_0x4aca7b>0x6&&_0x663d0a%_0x4aca7b===0x4&&(_0x45771c=_0x1dae1c(_0x45771c)),_0x28606f[_0x663d0a]=_0x28606f[_0x663d0a-_0x4aca7b]^_0x45771c;}return _0x4cc9dc(..._0x52538a),_0x28606f;}function _0xbe8d03(_0x14e91c){const _0x211e8e=_0x4ca2ee;let _0x3a81ed=_0x4763f9(_0x14e91c),_0x2f293a=_0x3a81ed[_0x211e8e(0x4c3)](),_0x7efab3=_0x3a81ed['length'],{sbox2:_0x79b3a2}=_0x4545dc,{T0:_0x29fc23,T1:_0x2f8a01,T2:_0x3a201f,T3:_0x456c2d}=_0x32d704;for(let _0x5875da=0x0;_0x5875da<_0x7efab3;_0x5875da+=0x4)for(let _0x1f526f=0x0;_0x1f526f<0x4;_0x1f526f++)_0x2f293a[_0x5875da+_0x1f526f]=_0x3a81ed[_0x7efab3-_0x5875da-0x4+_0x1f526f];_0x4cc9dc(_0x3a81ed);for(let _0x9354e7=0x4;_0x9354e7<_0x7efab3-0x4;_0x9354e7++){let _0x5897d5=_0x2f293a[_0x9354e7],_0x2c95af=_0x187451(_0x79b3a2,_0x5897d5,_0x5897d5,_0x5897d5,_0x5897d5);_0x2f293a[_0x9354e7]=_0x29fc23[_0x2c95af&0xff]^_0x2f8a01[_0x2c95af>>>0x8&0xff]^_0x3a201f[_0x2c95af>>>0x10&0xff]^_0x456c2d[_0x2c95af>>>0x18];}return _0x2f293a;}function _0x4807e5(_0x559ce5,_0x1a1ecb,_0x4b9097,_0x251c55,_0x3d8a94,_0x383b98){return _0x559ce5[_0x4b9097<<0x8&0xff00|_0x251c55>>>0x8&0xff]^_0x1a1ecb[_0x3d8a94>>>0x8&0xff00|_0x383b98>>>0x18&0xff];}function _0x187451(_0x229f3d,_0x29e5ff,_0x48f869,_0x5c24e7,_0x275650){return _0x229f3d[_0x29e5ff&0xff|_0x48f869&0xff00]|_0x229f3d[_0x5c24e7>>>0x10&0xff|_0x275650>>>0x10&0xff00]<<0x10;}function _0x464c89(_0x1a2424,_0x329e9e,_0x1aad5e,_0x43adb1,_0x290902){const _0x436f92=_0x4ca2ee;let {sbox2:_0x5ca909,T01:_0x28ba77,T23:_0x11c934}=_0x4545dc,_0x57c02e=0x0;_0x329e9e^=_0x1a2424[_0x57c02e++],_0x1aad5e^=_0x1a2424[_0x57c02e++],_0x43adb1^=_0x1a2424[_0x57c02e++],_0x290902^=_0x1a2424[_0x57c02e++];let _0x332baf=_0x1a2424[_0x436f92(0x452)]/0x4-0x2;for(let _0x3b1d9c=0x0;_0x3b1d9c<_0x332baf;_0x3b1d9c++){let _0x50bfb7=_0x1a2424[_0x57c02e++]^_0x4807e5(_0x28ba77,_0x11c934,_0x329e9e,_0x1aad5e,_0x43adb1,_0x290902),_0x3634cc=_0x1a2424[_0x57c02e++]^_0x4807e5(_0x28ba77,_0x11c934,_0x1aad5e,_0x43adb1,_0x290902,_0x329e9e),_0x6e8fd2=_0x1a2424[_0x57c02e++]^_0x4807e5(_0x28ba77,_0x11c934,_0x43adb1,_0x290902,_0x329e9e,_0x1aad5e),_0x2ca97d=_0x1a2424[_0x57c02e++]^_0x4807e5(_0x28ba77,_0x11c934,_0x290902,_0x329e9e,_0x1aad5e,_0x43adb1);_0x329e9e=_0x50bfb7,_0x1aad5e=_0x3634cc,_0x43adb1=_0x6e8fd2,_0x290902=_0x2ca97d;}return{'s0':_0x1a2424[_0x57c02e++]^_0x187451(_0x5ca909,_0x329e9e,_0x1aad5e,_0x43adb1,_0x290902),'s1':_0x1a2424[_0x57c02e++]^_0x187451(_0x5ca909,_0x1aad5e,_0x43adb1,_0x290902,_0x329e9e),'s2':_0x1a2424[_0x57c02e++]^_0x187451(_0x5ca909,_0x43adb1,_0x290902,_0x329e9e,_0x1aad5e),'s3':_0x1a2424[_0x57c02e++]^_0x187451(_0x5ca909,_0x290902,_0x329e9e,_0x1aad5e,_0x43adb1)};}function _0x3e4899(_0x561bcf,_0x576b4e,_0x1df6e0,_0x3bee60,_0x41de77){let {sbox2:_0x3d6535,T01:_0x407907,T23:_0x218059}=_0x32d704,_0x595c1e=0x0;_0x576b4e^=_0x561bcf[_0x595c1e++],_0x1df6e0^=_0x561bcf[_0x595c1e++],_0x3bee60^=_0x561bcf[_0x595c1e++],_0x41de77^=_0x561bcf[_0x595c1e++];let _0xa6f70e=_0x561bcf['length']/0x4-0x2;for(let _0x38914d=0x0;_0x38914d<_0xa6f70e;_0x38914d++){let _0x2baa17=_0x561bcf[_0x595c1e++]^_0x4807e5(_0x407907,_0x218059,_0x576b4e,_0x41de77,_0x3bee60,_0x1df6e0),_0x26585b=_0x561bcf[_0x595c1e++]^_0x4807e5(_0x407907,_0x218059,_0x1df6e0,_0x576b4e,_0x41de77,_0x3bee60),_0x4d0bfb=_0x561bcf[_0x595c1e++]^_0x4807e5(_0x407907,_0x218059,_0x3bee60,_0x1df6e0,_0x576b4e,_0x41de77),_0xae55f2=_0x561bcf[_0x595c1e++]^_0x4807e5(_0x407907,_0x218059,_0x41de77,_0x3bee60,_0x1df6e0,_0x576b4e);_0x576b4e=_0x2baa17,_0x1df6e0=_0x26585b,_0x3bee60=_0x4d0bfb,_0x41de77=_0xae55f2;}return{'s0':_0x561bcf[_0x595c1e++]^_0x187451(_0x3d6535,_0x576b4e,_0x41de77,_0x3bee60,_0x1df6e0),'s1':_0x561bcf[_0x595c1e++]^_0x187451(_0x3d6535,_0x1df6e0,_0x576b4e,_0x41de77,_0x3bee60),'s2':_0x561bcf[_0x595c1e++]^_0x187451(_0x3d6535,_0x3bee60,_0x1df6e0,_0x576b4e,_0x41de77),'s3':_0x561bcf[_0x595c1e++]^_0x187451(_0x3d6535,_0x41de77,_0x3bee60,_0x1df6e0,_0x576b4e)};}function _0x557583(_0x41c129,_0x2b5571){const _0x3af168=_0x4ca2ee;if(_0x37a082(_0x41c129),_0x41c129[_0x3af168(0x452)]%0x10!=0x0)throw Error(_0x3af168(0x1cb));_0x2b5571!==void 0x0&&(_0x43fc2a(_0x41c129[_0x3af168(0x452)],_0x2b5571),_0xf5e542(_0x41c129,_0x2b5571));}function _0x5dade8(_0x59d502,_0x3111b2,_0x5becc4){_0x37a082(_0x59d502);let _0x196eb7=_0x59d502['length'],_0x54e65c=_0x196eb7%0x10;if(!_0x3111b2&&_0x54e65c!==0x0)throw Error('plaintext\x20must\x20be\x20multiple\x20of\x2016');if(_0x3111b2){let _0xf5592e=0x10-_0x54e65c;_0xf5592e||=0x10,_0x196eb7+=_0xf5592e;}return _0x5becc4!==void 0x0&&(_0x43fc2a(_0x196eb7,_0x5becc4),_0xf5e542(_0x59d502,_0x5becc4)),_0x196eb7;}function _0x5edbfa(_0x43f20a,_0x53dd5f,_0x3355af){_0x3355af===void 0x0&&(_0x3355af=new Uint8Array(_0x53dd5f)),(!_0x48b85c||!_0x4d41c0(_0x43f20a))&&(_0x43f20a=_0x1738cb(_0x43f20a));let _0x2ffeea=_0x39eec9(_0x3355af);return{'b':_0x43f20a,'o':_0x2ffeea,'out':_0x3355af};}function _0x5c6ce8(_0x8b1aba,_0x8872e1){const _0x56074a=_0x4ca2ee;if(!_0x8872e1)return _0x8b1aba;let _0x17454c=_0x8b1aba[_0x56074a(0x452)];if(_0x17454c===0x0)throw Error(_0x56074a(0x3cc));let _0x661ca1=_0x8b1aba[_0x17454c-0x1],_0x32ee78=0x1;_0x32ee78&=_0x661ca1-0x1>>>0x1f^0x1,_0x32ee78&=0x10-_0x661ca1>>>0x1f^0x1;for(let _0x56b9c2=0x0;_0x56b9c2<0x10;_0x56b9c2++){let _0x56d452=_0x56b9c2-_0x661ca1>>>0x1f,_0x399adf=+((_0x8b1aba[_0x17454c-0x1-_0x56b9c2]^_0x661ca1)===0x0);_0x32ee78&=_0x399adf|_0x56d452^0x1;}if(!_0x32ee78)throw Error('aes:\x20bad\x20decrypt');return _0x8b1aba[_0x56074a(0x2be)](0x0,_0x17454c-_0x661ca1);}function _0x192134(_0x5451af){const _0x334f0e=_0x4ca2ee;let _0xfd4bc2=new Uint8Array(0x10),_0xdf32c8=_0x39eec9(_0xfd4bc2);_0xfd4bc2['set'](_0x5451af);let _0x4e0bc2=0x10-_0x5451af[_0x334f0e(0x452)];for(let _0x4994d4=0x10-_0x4e0bc2;_0x4994d4<0x10;_0x4994d4++)_0xfd4bc2[_0x4994d4]=_0x4e0bc2;return _0xdf32c8;}let _0x221ff5=_0x4cb10b({'blockSize':0x10,'nonceLength':0x10},function(_0x40bf63,_0x14d24e,_0x5dfe26={}){const _0x238a84=_0x4ca2ee;let _0x1a21b7=!_0x5dfe26[_0x238a84(0x49a)];return{'encrypt'(_0x517b24,_0x43fd58){const _0x202bc2=_0x238a84;let _0x2f35ae=_0x5dade8(_0x517b24,_0x1a21b7,_0x43fd58),_0xbf44b0=_0x4763f9(_0x40bf63),{b:_0x3124be,o:_0x1e0924,out:_0x34f762}=_0x5edbfa(_0x517b24,_0x2f35ae,_0x43fd58),_0x1129a9=_0x39eec9(_0x3124be);_0x1782d2(_0x1129a9);let _0x42e381=_0x14d24e,_0x342e3e=[_0xbf44b0];(!_0x48b85c||!_0x4d41c0(_0x42e381))&&_0x342e3e[_0x202bc2(0x204)](_0x42e381=_0x1738cb(_0x42e381));let _0xf83584=_0x39eec9(_0x42e381);_0x1782d2(_0xf83584);let _0x5697e2=_0xf83584[0x0],_0x977e0c=_0xf83584[0x1],_0x2230a3=_0xf83584[0x2],_0x47616b=_0xf83584[0x3],_0x33c5af=0x0;for(;_0x33c5af+0x4<=_0x1129a9[_0x202bc2(0x452)];)_0x5697e2^=_0x1129a9[_0x33c5af+0x0],_0x977e0c^=_0x1129a9[_0x33c5af+0x1],_0x2230a3^=_0x1129a9[_0x33c5af+0x2],_0x47616b^=_0x1129a9[_0x33c5af+0x3],{s0:_0x5697e2,s1:_0x977e0c,s2:_0x2230a3,s3:_0x47616b}=_0x464c89(_0xbf44b0,_0x5697e2,_0x977e0c,_0x2230a3,_0x47616b),_0x1e0924[_0x33c5af++]=_0x5697e2,_0x1e0924[_0x33c5af++]=_0x977e0c,_0x1e0924[_0x33c5af++]=_0x2230a3,_0x1e0924[_0x33c5af++]=_0x47616b;if(_0x1a21b7){let _0x49403c=_0x192134(_0x517b24[_0x202bc2(0x2be)](_0x33c5af*0x4));_0x1782d2(_0x49403c),_0x5697e2^=_0x49403c[0x0],_0x977e0c^=_0x49403c[0x1],_0x2230a3^=_0x49403c[0x2],_0x47616b^=_0x49403c[0x3],{s0:_0x5697e2,s1:_0x977e0c,s2:_0x2230a3,s3:_0x47616b}=_0x464c89(_0xbf44b0,_0x5697e2,_0x977e0c,_0x2230a3,_0x47616b),_0x1e0924[_0x33c5af++]=_0x5697e2,_0x1e0924[_0x33c5af++]=_0x977e0c,_0x1e0924[_0x33c5af++]=_0x2230a3,_0x1e0924[_0x33c5af++]=_0x47616b,_0x4cc9dc(_0x49403c);}return _0x1782d2(_0x1e0924),_0x4cc9dc(..._0x342e3e),_0x3124be!==_0x517b24&&_0x4cc9dc(_0x3124be),_0x34f762;},'decrypt'(_0x4850f9,_0x1cb8ba){const _0x37e6d8=_0x238a84;_0x557583(_0x4850f9,_0x1cb8ba);let _0x1cc841=_0xbe8d03(_0x40bf63);_0x1cb8ba===void 0x0&&(_0x1cb8ba=new Uint8Array(_0x4850f9['length']));let _0x3c53eb=_0x14d24e,_0x279c9d=[_0x1cc841];(!_0x48b85c||!_0x4d41c0(_0x3c53eb))&&_0x279c9d[_0x37e6d8(0x204)](_0x3c53eb=_0x1738cb(_0x3c53eb));let _0x184a57=_0x39eec9(_0x3c53eb);_0x1782d2(_0x184a57),(!_0x48b85c||!_0x4d41c0(_0x4850f9))&&_0x279c9d['push'](_0x4850f9=_0x1738cb(_0x4850f9));let _0xf446f2=_0x39eec9(_0x4850f9),_0x17aea0=_0x39eec9(_0x1cb8ba);_0x1782d2(_0xf446f2);let _0x53a672=_0x184a57[0x0],_0x117886=_0x184a57[0x1],_0x4e560b=_0x184a57[0x2],_0x5eca7f=_0x184a57[0x3];for(let _0xcf6556=0x0;_0xcf6556+0x4<=_0xf446f2[_0x37e6d8(0x452)];){let _0x47739e=_0x53a672,_0x58f939=_0x117886,_0x400dd8=_0x4e560b,_0x4e48a9=_0x5eca7f;_0x53a672=_0xf446f2[_0xcf6556+0x0],_0x117886=_0xf446f2[_0xcf6556+0x1],_0x4e560b=_0xf446f2[_0xcf6556+0x2],_0x5eca7f=_0xf446f2[_0xcf6556+0x3];let {s0:_0xbd9e6a,s1:_0x1d4784,s2:_0x23d25e,s3:_0x9bb063}=_0x3e4899(_0x1cc841,_0x53a672,_0x117886,_0x4e560b,_0x5eca7f);_0x17aea0[_0xcf6556++]=_0xbd9e6a^_0x47739e,_0x17aea0[_0xcf6556++]=_0x1d4784^_0x58f939,_0x17aea0[_0xcf6556++]=_0x23d25e^_0x400dd8,_0x17aea0[_0xcf6556++]=_0x9bb063^_0x4e48a9;}return _0x1782d2(_0x17aea0),_0x4cc9dc(..._0x279c9d),_0x5c6ce8(_0x1cb8ba,_0x1a21b7);}};});function _0x9ba16a(_0x52455a){const _0x40c655=_0x4ca2ee;let _0x1a3233=atob(_0x52455a),_0x14fa5a=new Uint8Array(_0x1a3233[_0x40c655(0x452)]);for(let _0x33bda1=0x0;_0x33bda1<_0x1a3233[_0x40c655(0x452)];_0x33bda1++)_0x14fa5a[_0x33bda1]=_0x1a3233['charCodeAt'](_0x33bda1);return _0x14fa5a;}function _0x3d243f(_0x45390c){const _0x197c1d=_0x4ca2ee;let _0x304d4c='';for(let _0x4e9238=0x0;_0x4e9238<_0x45390c[_0x197c1d(0x452)];_0x4e9238++)_0x304d4c+=String['fromCharCode'](_0x45390c[_0x4e9238]);return btoa(_0x304d4c);}function _0x40ea95(_0x5807b4,_0x58d235){const _0x2b8bda=_0x4ca2ee;let _0x19ec1d=_0x9ba16a(_0x58d235),_0x36511e=_0x2da5ed(0x10);return _0x3d243f(_0x3a63c3(_0x36511e,_0x221ff5(_0x19ec1d,_0x36511e)[_0x2b8bda(0x3ce)](_0x409473(_0x5807b4))));}function _0x2d76a6(){const _0x48cb0a=_0x4ca2ee;let _0x4f1827=(0x0,_0x25a327[_0x48cb0a(0x1d0)])()[_0x48cb0a(0x2c3)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x4f1827){let _0x5ebd0d={'time':Math[_0x48cb0a(0x44b)](Date[_0x48cb0a(0x4c6)]()/0x3e8),'domain':location[_0x48cb0a(0x299)]};return _0x40ea95(JSON[_0x48cb0a(0x2cf)](_0x5ebd0d),_0x4f1827);}}let _0x536787=class{constructor(_0x6286ec){const _0x57b866=_0x4ca2ee;this[_0x57b866(0x173)]=_0x6286ec,this[_0x57b866(0x373)]();}[_0x4ca2ee(0x373)](){const _0x341995=_0x4ca2ee;this[_0x341995(0x173)][_0x341995(0x30c)]({'interceptor':(_0x379074,_0x1bcdb3)=>{const _0x34884e=_0x341995;let _0x35e985=_0x2d76a6();return _0x35e985&&_0x379074[_0x34884e(0x279)]['set'](_0x34884e(0x468),_0x35e985),_0x1bcdb3(_0x379074);}});}};_0x536787=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f['Inject'])(_0x4de411[_0x4ca2ee(0x332)]))],_0x536787);let _0x2d725c=class extends _0x78cf9f[_0x4ca2ee(0x342)]{constructor(_0x59dc01,_0x18d6f1,_0x110991){const _0x2823ac=_0x4ca2ee;super(),this[_0x2823ac(0x290)]=_0x59dc01,this['_snapshotService']=_0x18d6f1,this[_0x2823ac(0x455)]=_0x110991,_0x4f9d46(this,'_unitInfo$',new _0x42b37f[(_0x2823ac(0x43f))](null)),_0x4f9d46(this,_0x2823ac(0x302),new _0x42b37f['Subject']()),_0x4f9d46(this,_0x2823ac(0x19c),this['_unitInfo$'][_0x2823ac(0x4d3)]()),_0x4f9d46(this,_0x2823ac(0x296),this[_0x2823ac(0x302)][_0x2823ac(0x4d3)]());}[_0x4ca2ee(0x48f)](){const _0x39904b=_0x4ca2ee;super[_0x39904b(0x48f)](),this[_0x39904b(0x302)][_0x39904b(0x245)](),this[_0x39904b(0x37b)]['complete']();}async[_0x4ca2ee(0x199)](_0xd1ff89,_0x38c056,_0x469cb5,_0x37c183){const _0x19ecaa=_0x4ca2ee;this['_unitInfo$'][_0x19ecaa(0x1b5)]({'unitId':_0xd1ff89,'type':_0x38c056,'subUnitId':_0x37c183});let _0x3562fe=null;switch(_0x38c056){case _0x78cf9f[_0x19ecaa(0x4a8)][_0x19ecaa(0x220)]:_0x3562fe=await this[_0x19ecaa(0x411)][_0x19ecaa(0x322)](_0xd1ff89,_0x469cb5,void 0x0,{'initialSubUnitId':_0x37c183});break;case _0x78cf9f[_0x19ecaa(0x4a8)][_0x19ecaa(0x40b)]:_0x3562fe=await this[_0x19ecaa(0x411)][_0x19ecaa(0x25b)](_0xd1ff89,_0x469cb5);break;case _0x78cf9f[_0x19ecaa(0x4a8)][_0x19ecaa(0x4c9)]:_0x3562fe=await this[_0x19ecaa(0x411)]['loadSlide'](_0xd1ff89,_0x469cb5);break;case _0x78cf9f[_0x19ecaa(0x4a8)]['UNIVER_BOARD']:_0x3562fe=await this[_0x19ecaa(0x411)][_0x19ecaa(0x295)](_0xd1ff89,_0x469cb5);break;case _0x78cf9f['UniverInstanceType']['UNIVER_BASE']:_0x3562fe=await this['_snapshotService'][_0x19ecaa(0x283)](_0xd1ff89,_0x469cb5);break;case _0x78cf9f[_0x19ecaa(0x4a8)][_0x19ecaa(0x1c7)]:_0x3562fe=await this[_0x19ecaa(0x411)][_0x19ecaa(0x42e)](_0xd1ff89,_0x469cb5);break;default:this[_0x19ecaa(0x290)]['error'](_0x19ecaa(0x26a),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');}return _0x3562fe&&this[_0x19ecaa(0x302)]['next'](_0x3562fe),_0x3562fe;}async['loadUnit'](_0x180888,_0x2bb5a2,_0x397d01){const _0x32747b=_0x4ca2ee;var _0x267aa9;this['_unitInfo$'][_0x32747b(0x1b5)]({'unitId':_0x180888,'type':_0x2bb5a2,'subUnitId':_0x397d01});let _0x207275=0x0,_0x3ce090=await((_0x267aa9=this[_0x32747b(0x455)])==null?void 0x0:_0x267aa9['loadOfflineData'](_0x180888));return _0x3ce090&&(_0x3ce090[_0x32747b(0x477)]||_0x3ce090[_0x32747b(0x434)][_0x32747b(0x452)]!==0x0)&&(_0x207275=_0x3ce090[_0x32747b(0x1b3)]),_0x207275===0x0&&this[_0x32747b(0x290)][_0x32747b(0x206)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['loadUnitOfRevision'](_0x180888,_0x2bb5a2,_0x207275,_0x397d01);}};_0x2d725c=_0x182061([_0x51b612(0x0,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0x1,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x18ba1c['SnapshotService'])),_0x51b612(0x2,(0x0,_0x78cf9f['Optional'])(_0x1dd414))],_0x2d725c);let _0x4e2bcb=class{constructor(_0x5c4b75,_0x36a284,_0x24d3ed){const _0x582723=_0x4ca2ee;this[_0x582723(0x173)]=_0x5c4b75,this[_0x582723(0x2b9)]=_0x36a284,this[_0x582723(0x3fa)]=_0x24d3ed,_0x4f9d46(this,'_waitCount',0x0),_0x4f9d46(this,_0x582723(0x389),new _0x42b37f[(_0x582723(0x20c))]()),_0x4f9d46(this,_0x582723(0x161),this[_0x582723(0x389)]),_0x4f9d46(this,_0x582723(0x46f),new Map());}[_0x4ca2ee(0x3e4)](_0x488a5b){const _0x5831eb=_0x4ca2ee;this['_waitCount']=_0x488a5b,this[_0x5831eb(0x389)][_0x5831eb(0x1b5)](_0x488a5b);}[_0x4ca2ee(0x3c5)](_0x53d5d6,_0x29daf8){const _0x4155af=_0x4ca2ee;if(_0x29daf8===_0x78cf9f[_0x4155af(0x310)]['BASE64']){let _0x1fbad0=new Image();return _0x1fbad0[_0x4155af(0x3ac)]=_0x53d5d6,_0x1fbad0;}return this[_0x4155af(0x46f)]['get'](_0x53d5d6);}[_0x4ca2ee(0x2a9)](_0x58ee80,_0x552ad0,_0x352e20){const _0x1959a2=_0x4ca2ee;_0x552ad0!==_0x78cf9f[_0x1959a2(0x310)][_0x1959a2(0x3ab)]&&_0x352e20!=null&&this[_0x1959a2(0x46f)][_0x1959a2(0x3e8)](_0x58ee80,_0x352e20);}async['getImage'](_0x4f0883){const _0x10a004=_0x4ca2ee;try{let _0xfdaff2=this[_0x10a004(0x2ca)](this['_getSignURL'](),''+_0x4f0883),_0x11b334=(await this[_0x10a004(0x173)]['get'](_0xfdaff2))[_0x10a004(0x1f0)];if(_0x11b334[_0x10a004(0x2a2)]&&_0x11b334['error'][_0x10a004(0x34c)]===_0x1521ba['ErrorCode']['OK']){let _0x91ac5e=(0x0,_0x78cf9f[_0x10a004(0x259)])(_0x11b334[_0x10a004(0x2ac)],this[_0x10a004(0x22e)]());return Promise[_0x10a004(0x457)](_0x91ac5e);}return Promise[_0x10a004(0x39e)](_0x11b334[_0x10a004(0x2a2)]);}catch(_0x1fa0b2){return Promise['reject'](_0x1fa0b2);}}async[_0x4ca2ee(0x38c)](_0x1a849b){const _0x197749=_0x4ca2ee;let _0x1a5e5e='';if(!_0x3b803d[_0x197749(0x2c1)][_0x197749(0x35a)](_0x1a849b['type']))return this[_0x197749(0x4ad)](),Promise[_0x197749(0x39e)](Error(_0x78cf9f[_0x197749(0x238)]['ERROR_IMAGE_TYPE']));if(_0x1a849b['size']>(0x0,_0x3b803d['getDrawingImageAllowSize'])())return this[_0x197749(0x4ad)](),Promise['reject'](Error(_0x78cf9f['ImageUploadStatusType']['ERROR_EXCEED_SIZE']));try{let _0x294529=new FormData();_0x294529[_0x197749(0x49c)]('file',_0x1a849b);let _0x35c9fd=this['_univerInstanceService'][_0x197749(0x3ad)](),_0x1a8135=_0x35c9fd==null?void 0x0:_0x35c9fd[_0x197749(0x3f8)]();if(!_0x1a8135)throw Error(_0x197749(0x338));let _0x918419=this[_0x197749(0x3a9)]()+_0x197749(0x198)+_0x1a849b[_0x197749(0x33f)]['toString']()+_0x197749(0x499)+_0x1521ba[_0x197749(0x3c3)][_0x197749(0x34d)]+_0x197749(0x3b8)+encodeURIComponent(_0x1a8135),_0x1842d4={'body':_0x294529},_0x55b098=(await this[_0x197749(0x173)][_0x197749(0x186)](_0x918419,_0x1842d4))[_0x197749(0x1f0)];if(typeof _0x55b098['FileId']!='string')return this[_0x197749(0x4ad)](),Promise['reject'](Error(_0x78cf9f['ImageUploadStatusType'][_0x197749(0x1a1)]));_0x1a5e5e=_0x55b098[_0x197749(0x31f)];}catch{return this['_decreaseWaiting'](),Promise[_0x197749(0x39e)](Error(_0x78cf9f[_0x197749(0x238)][_0x197749(0x1a1)]));}return new Promise((_0x4bcf5e,_0x39fd70)=>{const _0x3fbfa0=_0x197749;let _0x1c5274=new FileReader();_0x1c5274['readAsDataURL'](_0x1a849b),_0x1c5274[_0x3fbfa0(0x2b7)]=_0x5c1e54=>{const _0x70991c=_0x3fbfa0;var _0x469d62;let _0x1607de=(_0x469d62=_0x5c1e54[_0x70991c(0x4b1)])==null?void 0x0:_0x469d62[_0x70991c(0x488)];if(_0x1607de==null){this[_0x70991c(0x4ad)](),_0x39fd70(Error(_0x78cf9f[_0x70991c(0x238)]['ERROR_IMAGE']));return;}_0x4bcf5e({'imageId':(0x0,_0x78cf9f[_0x70991c(0x4b0)])(0x6),'imageSourceType':_0x78cf9f[_0x70991c(0x310)]['UUID'],'source':_0x1a5e5e,'base64Cache':_0x1607de,'status':_0x78cf9f[_0x70991c(0x238)][_0x70991c(0x201)]}),this[_0x70991c(0x4ad)]();};});}[_0x4ca2ee(0x3a9)](){const _0x221585=_0x4ca2ee;let _0x4600b2=this[_0x221585(0x2b9)][_0x221585(0x433)](_0x16372d);return(_0x4600b2==null?void 0x0:_0x4600b2['uploadFileServerUrl'])??_0x221585(0x257);}[_0x4ca2ee(0x1b7)](){const _0x5f1b6f=_0x4ca2ee;let _0x345ee6=this[_0x5f1b6f(0x2b9)][_0x5f1b6f(0x433)](_0x16372d);return(_0x345ee6==null?void 0x0:_0x345ee6[_0x5f1b6f(0x47a)])??'/universer-api/file/{fileID}/sign-url';}[_0x4ca2ee(0x22e)](){const _0x47020c=_0x4ca2ee;let _0x3bd8ed=this['_configService'][_0x47020c(0x433)](_0x16372d);return(_0x3bd8ed==null?void 0x0:_0x3bd8ed[_0x47020c(0x21b)])??location['origin'];}[_0x4ca2ee(0x2ca)](_0xef0287,_0xe65a40){const _0x55c94a=_0x4ca2ee;return _0xef0287[_0x55c94a(0x447)](_0x55c94a(0x312),_0xe65a40);}[_0x4ca2ee(0x4ad)](){const _0x2ae4eb=_0x4ca2ee;--this[_0x2ae4eb(0x41b)],this[_0x2ae4eb(0x389)]['next'](this[_0x2ae4eb(0x41b)]);}};_0x4e2bcb=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x4de411[_0x4ca2ee(0x332)])),_0x51b612(0x1,_0x78cf9f['IConfigService']),_0x51b612(0x2,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['IUniverInstanceService']))],_0x4e2bcb);let _0x1a38c4=class{constructor(_0x1ef976,_0x2d6200){const _0x4f0413=_0x4ca2ee;this[_0x4f0413(0x2b9)]=_0x1ef976,this[_0x4f0413(0x2f2)]=_0x2d6200;}[_0x4ca2ee(0x288)](){const _0x17f2d5=_0x4ca2ee;let _0x1823eb=this[_0x17f2d5(0x2b9)][_0x17f2d5(0x433)](_0x16372d);return(_0x1823eb==null?void 0x0:_0x1823eb[_0x17f2d5(0x421)])??_0x17f2d5(0x368);}async[_0x4ca2ee(0x1b4)](_0x2c902c){const _0xd3c8=_0x4ca2ee;let _0x409688=this[_0xd3c8(0x288)]()+'/collaborator';return{'list':[{'title':_0xd3c8(0x2bb),'mentions':(await this[_0xd3c8(0x2f2)][_0xd3c8(0x42a)](_0x409688,{'params':{'objectID':_0x2c902c[_0xd3c8(0x4d2)],'unitID':_0x2c902c[_0xd3c8(0x4d2)]}}))['body'][_0xd3c8(0x3fd)][_0xd3c8(0x2b8)](_0x144d7b=>({'objectId':_0x144d7b['id'],'name':_0x144d7b['subject'][_0xd3c8(0x39d)],'metadata':{'icon':_0x144d7b['subject']['avatar']},'label':_0x144d7b[_0xd3c8(0x42f)][_0xd3c8(0x39d)],'objectType':_0x78cf9f[_0xd3c8(0x1e8)][_0xd3c8(0x2d5)]})),'metadata':{},'type':_0x78cf9f[_0xd3c8(0x1e8)][_0xd3c8(0x2d5)]}]};}};_0x1a38c4=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x78cf9f['IConfigService'])),_0x51b612(0x1,(0x0,_0x78cf9f['Inject'])(_0x4de411[_0x4ca2ee(0x332)]))],_0x1a38c4);let _0x3147fd=class extends _0x78cf9f['RxDisposable']{constructor(_0x4e7eba,_0x39e2ea,_0x484a04,_0x2cba06,_0x4a1c5f,_0x3f652f){const _0x2debb2=_0x4ca2ee;super(),this[_0x2debb2(0x3b1)]=_0x4e7eba,this[_0x2debb2(0x3fa)]=_0x39e2ea,this[_0x2debb2(0x305)]=_0x484a04,this[_0x2debb2(0x463)]=_0x2cba06,this['_collaborationSessionService']=_0x4a1c5f,this[_0x2debb2(0x286)]=_0x3f652f,_0x4f9d46(this,'_closedUnits',new Set()),this[_0x2debb2(0x2f7)](()=>this[_0x2debb2(0x3c4)][_0x2debb2(0x358)]()),this['disposeWithMe'](_0x92de57(this['_univerInstanceService'])[_0x2debb2(0x3ae)](({unitId:_0x4d1f2f})=>this[_0x2debb2(0x3c4)][_0x2debb2(0x483)](_0x4d1f2f))),this['_initUnitPermissionChange'](),this[_0x2debb2(0x1c4)](),[_0x78cf9f['UniverInstanceType']['UNIVER_DOC'],_0x78cf9f[_0x2debb2(0x4a8)]['UNIVER_SLIDE'],_0x78cf9f[_0x2debb2(0x4a8)]['UNIVER_BASE'],_0x78cf9f[_0x2debb2(0x4a8)][_0x2debb2(0x383)]][_0x2debb2(0x1e9)](_0x551389=>{const _0x2cecb4=_0x2debb2;this[_0x2cecb4(0x2f7)](this[_0x2cecb4(0x3fa)][_0x2cecb4(0x425)](_0x551389)[_0x2cecb4(0x3ae)](_0xcfffa2=>{const _0x5975a3=_0x2cecb4;this[_0x5975a3(0x3c4)][_0x5975a3(0x169)](_0xcfffa2[_0x5975a3(0x3f8)]()),this[_0x5975a3(0x3b1)][_0x5975a3(0x42a)](_0x78cf9f[_0x5975a3(0x48b)])['clearUnit'](_0xcfffa2['getUnitId']());}));});}[_0x4ca2ee(0x1c4)](){const _0x458a29=_0x4ca2ee;let _0x5a273f=async(_0x1de717,_0x4cb67d)=>{const _0x5f4026=_0x41d6;let _0x29fdb5=await this[_0x5f4026(0x2da)][_0x5f4026(0x454)](_0x1de717);this[_0x5f4026(0x1fc)]||this[_0x5f4026(0x3c4)][_0x5f4026(0x32f)](_0x1de717)||!this[_0x5f4026(0x3fa)]['getUnit'](_0x1de717)||_0x29fdb5['event$'][_0x5f4026(0x28c)]((0x0,_0x30b86b[_0x5f4026(0x2cc)])(_0x305091=>_0x305091[_0x5f4026(0x34b)]===_0x18ba1c[_0x5f4026(0x3aa)]['SHOULD_CLOSE_CONN']),(0x0,_0x30b86b[_0x5f4026(0x381)])((0x0,_0x42b37f['merge'])(this[_0x5f4026(0x32d)],this['_univerInstanceService'][_0x5f4026(0x18a)][_0x5f4026(0x28c)]((0x0,_0x30b86b[_0x5f4026(0x2cc)])(_0x3bbc51=>_0x3bbc51[_0x5f4026(0x3f8)]()===_0x1de717)))))[_0x5f4026(0x3ae)](_0x151296=>{const _0x17037e=_0x5f4026;let {reason:_0x295f38}=_0x151296[_0x17037e(0x3d6)];this[_0x17037e(0x286)][_0x17037e(0x17d)]({'id':_0x17037e(0x2ad),'data':_0x295f38}),this[_0x17037e(0x3c4)]['add'](_0x1de717),this[_0x17037e(0x3b1)]['get'](_0x78cf9f[_0x17037e(0x48b)])[_0x17037e(0x4a6)](_0x1de717);let _0x52dcc3=_0x562824(_0x4cb67d);_0x52dcc3!=null&&this[_0x17037e(0x20b)](_0x1de717,_0x52dcc3,_0x1521ba[_0x17037e(0x175)][_0x17037e(0x325)],!0x1),this[_0x17037e(0x2da)][_0x17037e(0x19d)](_0x1de717);});};_0x92de57(this[_0x458a29(0x3fa)])[_0x458a29(0x28c)]((0x0,_0x30b86b['filter'])(({unitId:_0x6d6af7})=>!(0x0,_0x78cf9f[_0x458a29(0x252)])(_0x6d6af7)),(0x0,_0x30b86b[_0x458a29(0x381)])(this[_0x458a29(0x32d)]))[_0x458a29(0x3ae)](({type:_0x58f232,unitId:_0x266429})=>{const _0x4aacba=_0x458a29;_0x5a273f(_0x266429,_0x58f232)[_0x4aacba(0x2ce)](_0x5b0d2d=>this[_0x4aacba(0x3b1)][_0x4aacba(0x42a)](_0x78cf9f[_0x4aacba(0x341)])['error'](_0x5b0d2d));});}[_0x4ca2ee(0x2c4)](){const _0x14d836=_0x4ca2ee;let _0x17eb1f=async(_0x40e576,_0x5d92b6)=>{const _0x3cdff0=_0x41d6;let _0x245b21=await this[_0x3cdff0(0x2da)][_0x3cdff0(0x454)](_0x40e576);if(!(this[_0x3cdff0(0x1fc)]||this[_0x3cdff0(0x3c4)][_0x3cdff0(0x32f)](_0x40e576)||!this[_0x3cdff0(0x3fa)][_0x3cdff0(0x40e)](_0x40e576))){if(_0x5d92b6===_0x78cf9f[_0x3cdff0(0x4a8)][_0x3cdff0(0x220)]){let _0xf80ad7=this['_injector']['get'](_0x1c5171['SheetPermissionInitController']);await _0xf80ad7[_0x3cdff0(0x31c)](_0x40e576),_0x245b21[_0x3cdff0(0x43b)]['pipe']((0x0,_0x30b86b[_0x3cdff0(0x2cc)])(_0x3b3c92=>_0x3b3c92['eventID']===_0x18ba1c[_0x3cdff0(0x3aa)][_0x3cdff0(0x395)]),(0x0,_0x30b86b[_0x3cdff0(0x381)])((0x0,_0x42b37f[_0x3cdff0(0x364)])(this['dispose$'],_0x245b21['event$']['pipe']((0x0,_0x30b86b[_0x3cdff0(0x2cc)])(_0x41e3d4=>_0x41e3d4[_0x3cdff0(0x34b)]===_0x18ba1c[_0x3cdff0(0x3aa)]['SHOULD_CLOSE_CONN'])),this['_univerInstanceService'][_0x3cdff0(0x18a)][_0x3cdff0(0x28c)]((0x0,_0x30b86b[_0x3cdff0(0x2cc)])(_0xfcfda0=>_0xfcfda0[_0x3cdff0(0x3f8)]()===_0x40e576)))))['subscribe'](_0x19824d=>{const _0x50d2db=_0x3cdff0;let {objectId:_0x361021}=_0x19824d[_0x50d2db(0x3d6)];_0x361021===_0x40e576?_0xf80ad7[_0x50d2db(0x31c)](_0x40e576):_0xf80ad7['refreshPermission'](_0x40e576,_0x361021);});return;}_0x245b21['event$'][_0x3cdff0(0x28c)]((0x0,_0x30b86b[_0x3cdff0(0x2cc)])(_0x48870e=>_0x48870e[_0x3cdff0(0x34b)]===_0x18ba1c[_0x3cdff0(0x3aa)][_0x3cdff0(0x395)]),(0x0,_0x30b86b[_0x3cdff0(0x381)])((0x0,_0x42b37f[_0x3cdff0(0x364)])(this[_0x3cdff0(0x32d)],_0x245b21['event$'][_0x3cdff0(0x28c)]((0x0,_0x30b86b[_0x3cdff0(0x2cc)])(_0x55685e=>_0x55685e[_0x3cdff0(0x34b)]===_0x18ba1c[_0x3cdff0(0x3aa)][_0x3cdff0(0x16f)])),this[_0x3cdff0(0x3fa)][_0x3cdff0(0x18a)]['pipe']((0x0,_0x30b86b[_0x3cdff0(0x2cc)])(_0x166e97=>_0x166e97[_0x3cdff0(0x3f8)]()===_0x40e576)))))[_0x3cdff0(0x3ae)](()=>{const _0x527cd8=_0x3cdff0;this[_0x527cd8(0x4bd)](_0x40e576,_0x5d92b6)['catch'](_0x13ac26=>this['_injector']['get'](_0x78cf9f[_0x527cd8(0x341)])[_0x527cd8(0x2a2)](_0x13ac26));}),await this[_0x3cdff0(0x4bd)](_0x40e576,_0x5d92b6);}};_0x92de57(this[_0x14d836(0x3fa)])[_0x14d836(0x28c)]((0x0,_0x30b86b[_0x14d836(0x2cc)])(({unitId:_0x5e397b})=>!(0x0,_0x78cf9f[_0x14d836(0x252)])(_0x5e397b)),(0x0,_0x30b86b[_0x14d836(0x381)])(this[_0x14d836(0x32d)]))[_0x14d836(0x3ae)](({type:_0x308859,unitId:_0x3739ae})=>{const _0x1b7671=_0x14d836;_0x17eb1f(_0x3739ae,_0x308859)[_0x1b7671(0x2ce)](_0x2c2d60=>this['_injector'][_0x1b7671(0x42a)](_0x78cf9f['ILogService'])[_0x1b7671(0x2a2)](_0x2c2d60));});}async[_0x4ca2ee(0x4bd)](_0x396657,_0x528975){const _0xf7ac4=_0x4ca2ee;let _0x13fc88=_0x562824(_0x528975);if(_0x13fc88==null)return;let _0x2161ec=this[_0xf7ac4(0x3b1)]['get'](_0x78cf9f[_0xf7ac4(0x48b)]);if(_0x2161ec[_0xf7ac4(0x4b6)]({'unitId':_0x396657,'objectId':_0x396657,'objectType':_0x13fc88})){await _0x2161ec[_0xf7ac4(0x3fc)](_0x396657);return;}let _0x1a7705=this['_getUnitPermissionPoints'](_0x396657,_0x13fc88);if(!_0x1a7705['length'])return;let _0x163250=await this['_authzIoService'][_0xf7ac4(0x456)]({'objectID':_0x396657,'objectType':_0x13fc88,'unitID':_0x396657,'actions':_0x1a7705[_0xf7ac4(0x2b8)](({action:_0x495462})=>_0x495462)});this['_disposed']||this[_0xf7ac4(0x3c4)][_0xf7ac4(0x32f)](_0x396657)||!this[_0xf7ac4(0x3fa)][_0xf7ac4(0x40e)](_0x396657)||_0x163250['forEach'](_0x5cbf9c=>{const _0x10ad49=_0xf7ac4;let _0x35806b=_0x5cbf9c[_0x10ad49(0x19a)],_0x457547=_0x5cbf9c[_0x10ad49(0x456)];_0x35806b!=null&&_0x457547!=null&&_0x1a7705[_0x10ad49(0x2cc)](_0xd00945=>_0xd00945[_0x10ad49(0x19a)]===_0x35806b)['forEach'](_0x1985d2=>this[_0x10ad49(0x305)][_0x10ad49(0x29a)](_0x1985d2['id'],_0x457547));});}[_0x4ca2ee(0x3cb)](_0x24c3fa,_0x498e3e){const _0x21dabd=_0x4ca2ee;let _0x14a33b=[];return this[_0x21dabd(0x305)][_0x21dabd(0x231)]()[_0x21dabd(0x1e9)]((_0x50c05a,_0x5f8a46)=>{const _0x1ef6fa=_0x21dabd;_0x50c05a[_0x1ef6fa(0x3ae)](_0x2696ad=>{const _0x479a0b=_0x1ef6fa;_0x2696ad[_0x479a0b(0x2db)]===_0x498e3e&&_0x479a0b(0x4d2)in _0x2696ad&&_0x2696ad[_0x479a0b(0x4d2)]===_0x24c3fa&&(!('objectId'in _0x2696ad)||_0x2696ad[_0x479a0b(0x1b1)]===_0x24c3fa)&&_0x14a33b[_0x479a0b(0x204)]({'id':_0x5f8a46,'action':_0x2696ad[_0x479a0b(0x1e6)]});})['unsubscribe']();}),_0x14a33b;}[_0x4ca2ee(0x20b)](_0x23d3bc,_0x31653a,_0x5b6992,_0x35f6c0){const _0x371849=_0x4ca2ee;this[_0x371849(0x305)]['getAllPermissionPoint']()[_0x371849(0x1e9)]((_0x2c009d,_0x4ca053)=>{const _0x20b394=_0x371849;let _0xcba21c=!0x1;_0x2c009d[_0x20b394(0x3ae)](_0x40d537=>{const _0x30bdfa=_0x20b394;_0xcba21c=_0x40d537['type']===_0x31653a&&_0x40d537[_0x30bdfa(0x1e6)]===_0x5b6992&&'unitId'in _0x40d537&&_0x40d537[_0x30bdfa(0x4d2)]===_0x23d3bc&&(!(_0x30bdfa(0x1b1)in _0x40d537)||_0x40d537[_0x30bdfa(0x1b1)]===_0x23d3bc);})['unsubscribe'](),_0xcba21c&&this['_permissionService'][_0x20b394(0x29a)](_0x4ca053,_0x35f6c0);});}};_0x3147fd=_0x182061([_0x51b612(0x0,(0x0,_0x78cf9f['Inject'])(_0x78cf9f[_0x4ca2ee(0x25d)])),_0x51b612(0x1,_0x78cf9f['IUniverInstanceService']),_0x51b612(0x2,_0x78cf9f[_0x4ca2ee(0x16d)]),_0x51b612(0x3,_0x78cf9f[_0x4ca2ee(0x327)]),_0x51b612(0x4,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x55f186)),_0x51b612(0x5,(0x0,_0x78cf9f[_0x4ca2ee(0x2c5)])(_0x5604f6))],_0x3147fd);function _0x92de57(_0x5d3101){const _0x44133a=_0x4ca2ee;return(0x0,_0x42b37f[_0x44133a(0x364)])(...[_0x78cf9f[_0x44133a(0x4a8)][_0x44133a(0x220)],_0x78cf9f[_0x44133a(0x4a8)][_0x44133a(0x40b)],_0x78cf9f[_0x44133a(0x4a8)][_0x44133a(0x4c9)],_0x78cf9f[_0x44133a(0x4a8)][_0x44133a(0x383)],_0x78cf9f[_0x44133a(0x4a8)]['UNIVER_BASE']][_0x44133a(0x2b8)](_0x225ac2=>_0x5d3101[_0x44133a(0x166)](_0x225ac2)[_0x44133a(0x28c)]((0x0,_0x30b86b[_0x44133a(0x2b8)])(_0x3d2205=>({'type':_0x225ac2,'unitId':_0x3d2205[_0x44133a(0x2bd)][_0x44133a(0x3f8)]()})))));}function _0x562824(_0x83c6ae){const _0x2c4a96=_0x4ca2ee;switch(_0x83c6ae){case _0x78cf9f[_0x2c4a96(0x4a8)][_0x2c4a96(0x220)]:return _0x1521ba[_0x2c4a96(0x2a7)]['Workbook'];case _0x78cf9f[_0x2c4a96(0x4a8)][_0x2c4a96(0x40b)]:return _0x1521ba[_0x2c4a96(0x2a7)][_0x2c4a96(0x1d8)];case _0x78cf9f[_0x2c4a96(0x4a8)][_0x2c4a96(0x4c9)]:return _0x1521ba[_0x2c4a96(0x2a7)]['Slide'];case _0x78cf9f['UniverInstanceType'][_0x2c4a96(0x383)]:return _0x1521ba[_0x2c4a96(0x2a7)]['Board'];case _0x78cf9f[_0x2c4a96(0x4a8)][_0x2c4a96(0x2ed)]:return _0x1521ba['UnitObject']['Base'];default:return;}}let _0xe2c026=class{constructor(_0x384f62,_0x11b8c3){const _0x46da86=_0x4ca2ee;this[_0x46da86(0x2b9)]=_0x384f62,this[_0x46da86(0x173)]=_0x11b8c3;}async[_0x4ca2ee(0x1b2)](_0x10fe7a,_0x56abd3){const _0x4e6288=_0x4ca2ee;var _0x4b3b13;let {unitID:_0x1c00ca,type:_0x30aa51,revision:_0x23a591=0x0}=_0x56abd3,_0x252238=this[_0x4e6288(0x26f)]()+'/'+_0x30aa51+'/unit/'+_0x1c00ca+_0x4e6288(0x195)+_0x23a591,_0x51e165=(await this[_0x4e6288(0x173)][_0x4e6288(0x42a)](_0x252238))[_0x4e6288(0x1f0)],_0x1ec9d6=(_0x4b3b13=_0x51e165[_0x4e6288(0x453)])==null?void 0x0:_0x4b3b13[_0x4e6288(0x1f5)];if(_0x1ec9d6){let _0x809903=_0x1ec9d6==null?void 0x0:_0x1ec9d6['originalMeta'];_0x1ec9d6['originalMeta']=_0x18ba1c['textEncoder']['encode']((0x0,_0x18ba1c['b64DecodeUnicode'])(_0x809903)),Object['entries'](_0x1ec9d6['sheets'])['forEach'](([,_0x4ba680])=>{const _0x5d6494=_0x4e6288;let _0x3e934e=_0x4ba680[_0x5d6494(0x359)];_0x4ba680[_0x5d6494(0x359)]=_0x18ba1c[_0x5d6494(0x449)][_0x5d6494(0x306)]((0x0,_0x18ba1c[_0x5d6494(0x287)])(_0x3e934e));});}return _0x51e165;}async[_0x4ca2ee(0x1fb)](_0x33cd44,_0x5cf45f){const _0x51970a=_0x4ca2ee;let {unitID:_0x34c84b,type:_0x55bfb1,blockID:_0x8b3b39}=_0x5cf45f,_0x436f76=this['_getAPIPrefix']()+'/'+_0x55bfb1+_0x51970a(0x363)+_0x34c84b+_0x51970a(0x2c9)+_0x8b3b39;return(await this[_0x51970a(0x173)]['get'](_0x436f76))[_0x51970a(0x1f0)];}async[_0x4ca2ee(0x1d1)](_0xf8bd44,_0x34b764){const _0x10dd93=_0x4ca2ee;let {unitID:_0x1710d5,type:_0x44f46f,blockID:_0x1bcb67}=_0x34b764,_0x24e699=this[_0x10dd93(0x3c6)]()+_0x10dd93(0x2c9)+_0x44f46f+_0x10dd93(0x363)+_0x1710d5+_0x10dd93(0x2c9)+_0x1bcb67;return(await this[_0x10dd93(0x173)][_0x10dd93(0x42a)](_0x24e699))[_0x10dd93(0x1f0)];}async[_0x4ca2ee(0x2bc)](_0x1b7a98,_0xa8a7e8){const _0x3702d8=_0x4ca2ee;let {unitID:_0x42c565,type:_0x2abb19,from:_0x341a15,to:_0x383acf}=_0xa8a7e8,_0x29eef2=this['_getAPIPrefix']()+'/'+_0x2abb19+_0x3702d8(0x363)+_0x42c565+'/fetchmissing?from='+_0x341a15+_0x3702d8(0x26d)+_0x383acf;return(await this['_httpService']['get'](_0x29eef2))[_0x3702d8(0x1f0)];}[_0x4ca2ee(0x26f)](){const _0x3c82ab=_0x4ca2ee;return this[_0x3c82ab(0x2b9)][_0x3c82ab(0x433)](_0x3c82ab(0x42b))??this[_0x3c82ab(0x3c6)]();}[_0x4ca2ee(0x3c6)](){const _0x1d6b70=_0x4ca2ee;let _0x1eaedb=this[_0x1d6b70(0x2b9)][_0x1d6b70(0x433)](_0x16372d);return(_0x1eaedb==null?void 0x0:_0x1eaedb['snapshotServerUrl'])??'/universer-api/snapshot';}async[_0x4ca2ee(0x20e)](_0x2d59d4,_0x3e8d79){const _0xef7d53=_0x4ca2ee;let _0x3f0866=_0xef7d53(0x28f)+_0x3e8d79[_0xef7d53(0x2db)]+'/unit/'+_0x3e8d79['unitID']+_0xef7d53(0x1dd);return(await this[_0xef7d53(0x173)]['get'](_0x3f0866,{'params':{'resourceId':JSON[_0xef7d53(0x2cf)](_0x3e8d79['resourceIDs'])}}))[_0xef7d53(0x1f0)];}[_0x4ca2ee(0x2fa)](){const _0x1c2f98=_0x4ca2ee;throw Error(_0x1c2f98(0x352));}[_0x4ca2ee(0x1a9)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4ca2ee(0x229)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){const _0x43246d=_0x4ca2ee;throw Error(_0x43246d(0x352));}[_0x4ca2ee(0x1ee)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4ca2ee(0x244)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0xe2c026=_0x182061([_0x51b612(0x0,_0x78cf9f[_0x4ca2ee(0x178)]),_0x51b612(0x1,(0x0,_0x78cf9f['Inject'])(_0x4de411[_0x4ca2ee(0x332)]))],_0xe2c026);let _0xc9f2b7=class extends _0x78cf9f[_0x4ca2ee(0x2d8)]{constructor(_0xd36427,_0x5401dd,_0x37292c,_0x572e26,_0x435413,_0x2be0fe){const _0x4a3169=_0x4ca2ee;super(_0xd36427,_0x5401dd,_0x37292c,_0x572e26),this[_0x4a3169(0x1ba)]=_0x435413,this[_0x4a3169(0x290)]=_0x2be0fe;}[_0x4ca2ee(0x475)](_0x53c7f6,_0x1f2a29){const _0x1fcdbd=_0x4ca2ee;let _0x3abe39=this[_0x1fcdbd(0x354)](_0x53c7f6);if(_0x3abe39)try{let _0x4f7390=this['_transformStack'](_0x3abe39,_0x1f2a29);this[_0x1fcdbd(0x379)](_0x53c7f6,_0x4f7390);}catch(_0x96316f){this['_logService'][_0x1fcdbd(0x2a2)]('[CollaborationUndoRedoService]',_0x96316f),this[_0x1fcdbd(0x46d)](_0x53c7f6);}let _0x25bac1=this[_0x1fcdbd(0x4ae)](_0x53c7f6);if(_0x25bac1)try{let _0x34bd00=this[_0x1fcdbd(0x316)](_0x25bac1,_0x1f2a29);this[_0x1fcdbd(0x410)](_0x53c7f6,_0x34bd00);}catch(_0x26c8a3){this['_logService'][_0x1fcdbd(0x2a2)](_0x26c8a3),this['_clearRedo'](_0x53c7f6);}}[_0x4ca2ee(0x46d)](_0xccf1e7){const _0x33d277=_0x4ca2ee;let _0x2de8e1=this['_getUndoStack'](_0xccf1e7);_0x2de8e1&&(_0x2de8e1[_0x33d277(0x452)]=0x0,this['_updateStatus']());}[_0x4ca2ee(0x2e0)](_0x3338fa){const _0x538df8=_0x4ca2ee;let _0x195c69=this[_0x538df8(0x4ae)](_0x3338fa);_0x195c69&&(_0x195c69['length']=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x36e828,_0x59acea){const _0x25ae76=_0x4ca2ee;this[_0x25ae76(0x386)][_0x25ae76(0x3e8)](_0x36e828,_0x59acea),this[_0x25ae76(0x222)]();}[_0x4ca2ee(0x410)](_0x1fb1c6,_0x23e796){const _0x247516=_0x4ca2ee;this[_0x247516(0x4d1)][_0x247516(0x3e8)](_0x1fb1c6,_0x23e796),this[_0x247516(0x222)]();}[_0x4ca2ee(0x316)](_0xc4e653,_0x4d40bb){const _0x320e04=_0x4ca2ee;let _0x49263d=[],_0x5705e2=_0x4d40bb,_0x56b526=_0x4d40bb;for(let _0x13dbd1=_0xc4e653['length']-0x1;_0x13dbd1>=0x0;_0x13dbd1--){let {unitID:_0x2e1dfe,undoMutations:_0x4162a0,redoMutations:_0xe39ff1}=_0xc4e653[_0x13dbd1],_0x15c63f=this[_0x320e04(0x1ba)][_0x320e04(0x2d0)](_0x5705e2,_0x4162a0),_0xec9228=this[_0x320e04(0x1ba)]['transformMutationsWithChangeset'](_0x56b526,_0xe39ff1);if((0x0,_0x18ba1c[_0x320e04(0x4ab)])(_0x15c63f)||(0x0,_0x18ba1c[_0x320e04(0x4ab)])(_0xec9228)){this[_0x320e04(0x290)][_0x320e04(0x2a2)](_0x320e04(0x182),'transformStack\x20failed!',_0x15c63f,_0xec9228);break;}_0x5705e2=_0x15c63f[_0x320e04(0x1e7)],_0x56b526=_0xec9228[_0x320e04(0x1e7)],_0x49263d[_0x320e04(0x204)]({'unitID':_0x2e1dfe,'undoMutations':_0x15c63f[_0x320e04(0x375)],'redoMutations':_0xec9228[_0x320e04(0x375)]});}return _0x49263d[_0x320e04(0x4af)]();}};_0xc9f2b7=_0x182061([_0x51b612(0x0,_0x78cf9f[_0x4ca2ee(0x39a)]),_0x51b612(0x1,_0x78cf9f[_0x4ca2ee(0x47c)]),_0x51b612(0x2,_0x78cf9f[_0x4ca2ee(0x424)]),_0x51b612(0x3,_0x78cf9f[_0x4ca2ee(0x178)]),_0x51b612(0x4,_0x18ba1c[_0x4ca2ee(0x371)]),_0x51b612(0x5,_0x78cf9f[_0x4ca2ee(0x341)])],_0xc9f2b7);let _0x4713dc=class extends _0x78cf9f['Plugin']{constructor(_0x3d6be7=_0x3e7167,_0x262fcb,_0x57f888,_0x2c2675){const _0x41efa8=_0x4ca2ee;super(),this[_0x41efa8(0x22b)]=_0x3d6be7,this[_0x41efa8(0x290)]=_0x262fcb,this[_0x41efa8(0x3b1)]=_0x57f888,this[_0x41efa8(0x2b9)]=_0x2c2675;let {..._0x2476d2}=(0x0,_0x78cf9f['merge'])({},_0x3e7167,this[_0x41efa8(0x22b)]);if(!_0x2476d2[_0x41efa8(0x2d6)])throw Error(_0x41efa8(0x280));this['_config']=_0x2476d2,this[_0x41efa8(0x2b9)][_0x41efa8(0x3a7)](_0x16372d,_0x2476d2);}[_0x4ca2ee(0x2e7)](){const _0x5b8b95=_0x4ca2ee;this['_configService'][_0x5b8b95(0x3a7)](_0x78cf9f['OBJECT_PERMISSION_CONFIG_KEY'],this[_0x5b8b95(0x22b)][_0x5b8b95(0x459)]??[]),this[_0x5b8b95(0x25a)](),this[_0x5b8b95(0x188)]();}[_0x4ca2ee(0x25a)](){const _0xe1057c=_0x4ca2ee;var _0x59be18,_0x295568;this[_0xe1057c(0x3b1)][_0xe1057c(0x32f)](_0x78cf9f[_0xe1057c(0x2ef)])&&this[_0xe1057c(0x290)]['error'](_0xe1057c(0x2f9),_0xe1057c(0x2c6));let _0x9a4325=(0x0,_0x78cf9f[_0xe1057c(0x1f4)])([[_0x78cf9f[_0xe1057c(0x2ef)],{'useClass':_0xc9f2b7}],[_0x997217,{'useValue':_0x35dc98()}],[_0x55f186],[_0x232b7e],[_0x373754],[_0x4f4c43],[_0x536787],[_0x2ee3ef],[_0x3147fd],[_0x5604f6],[_0x2d725c],[_0x2277c0,{'useClass':this[_0xe1057c(0x22b)][_0xe1057c(0x2d6)]}],[_0x18ba1c[_0xe1057c(0x1e5)],{'useClass':_0xe2c026}],[_0x78cf9f[_0xe1057c(0x327)],{'useClass':_0x13ade1}],[_0x78cf9f[_0xe1057c(0x2a1)],{'useClass':_0x4e2bcb}],[_0x3ff2b3,{'useClass':_0x7c9ef}],[_0x78cf9f[_0xe1057c(0x183)],{'useClass':_0x1a38c4}],[_0x2b01b9],[_0x5eab30]],(_0x59be18=this[_0xe1057c(0x22b)])==null?void 0x0:_0x59be18[_0xe1057c(0x2e9)]);if(!((_0x295568=this[_0xe1057c(0x22b)])!=null&&_0x295568[_0xe1057c(0x30a)])){let _0x4f6e7a=_0x9a4325['findIndex'](([_0x395666])=>_0x395666===_0x208a4c);_0x4f6e7a!==-0x1&&_0x9a4325[_0xe1057c(0x462)](_0x4f6e7a,0x1);}(0x0,_0x78cf9f[_0xe1057c(0x474)])(this[_0xe1057c(0x3b1)],_0x9a4325);}['_initDependencies'](){const _0x2ad96f=_0x4ca2ee;var _0x1e03ad,_0x430f4b;if(this[_0x2ad96f(0x3b1)][_0x2ad96f(0x42a)](_0x4de411[_0x2ad96f(0x332)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,_0x4de411[_0x2ad96f(0x48d)])({'maxParallel':0x6})}),!((_0x1e03ad=this['_config'])!=null&&_0x1e03ad[_0x2ad96f(0x31d)])){var _0x567c2a;(_0x567c2a=this[_0x2ad96f(0x3b1)]['get'](_0x1dd414,_0x78cf9f['Quantity'][_0x2ad96f(0x1eb)]))==null||_0x567c2a['disableLocalCache']();}(_0x430f4b=this[_0x2ad96f(0x22b)])!=null&&_0x430f4b['enableAuthServer']&&(0x0,_0x78cf9f[_0x2ad96f(0x3d3)])(this[_0x2ad96f(0x3b1)],[[_0x4f4c43]]),(0x0,_0x78cf9f[_0x2ad96f(0x3d3)])(this[_0x2ad96f(0x3b1)],[[_0x536787],[_0x2b01b9],[_0x3147fd]]);}};_0x4f9d46(_0x4713dc,_0x4ca2ee(0x1b8),_0x4ca2ee(0x339)),_0x4f9d46(_0x4713dc,_0x4ca2ee(0x217),_0x4265cd),_0x4f9d46(_0x4713dc,_0x4ca2ee(0x429),_0x37eba4),_0x4713dc=_0x182061([(0x0,_0x78cf9f[_0x4ca2ee(0x3c8)])(_0x25a327[_0x4ca2ee(0x380)],_0x4de411[_0x4ca2ee(0x26b)],_0x18ba1c[_0x4ca2ee(0x4c0)]),_0x51b612(0x1,_0x78cf9f[_0x4ca2ee(0x341)]),_0x51b612(0x2,(0x0,_0x78cf9f['Inject'])(_0x78cf9f['Injector'])),_0x51b612(0x3,_0x78cf9f['IConfigService'])],_0x4713dc),Object['defineProperty'](_0x1d5fa1,_0x4ca2ee(0x177),{'enumerable':!0x0,'get':function(){return _0x13ade1;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x35c),{'enumerable':!0x0,'get':function(){return _0x1e430e;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x3db),{'enumerable':!0x0,'get':function(){return _0x47a7e4;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x1ec),{'enumerable':!0x0,'get':function(){return _0x3e3c1b;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x26e),{'enumerable':!0x0,'get':function(){return _0x455183;}}),_0x1d5fa1['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=_0x16372d,Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x481),{'enumerable':!0x0,'get':function(){return _0x7c9ef;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x4c1),{'enumerable':!0x0,'get':function(){return _0x2b01b9;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,'CollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x41b76f;}}),Object['defineProperty'](_0x1d5fa1,_0x4ca2ee(0x1ad),{'enumerable':!0x0,'get':function(){return _0x4e2bcb;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x3c7),{'enumerable':!0x0,'get':function(){return _0x3a19b6;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return _0x55f186;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x294),{'enumerable':!0x0,'get':function(){return _0x330090;}}),_0x1d5fa1[_0x4ca2ee(0x33d)]=_0x4f2ada,_0x1d5fa1[_0x4ca2ee(0x187)]=_0x6788f8,_0x1d5fa1[_0x4ca2ee(0x1ca)]=_0x5604f6,Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x41a),{'enumerable':!0x0,'get':function(){return _0xc9f2b7;}}),_0x1d5fa1[_0x4ca2ee(0x4a5)]=_0x2ee3ef,Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x27c),{'enumerable':!0x0,'get':function(){return _0x2160a7;}}),_0x1d5fa1[_0x4ca2ee(0x276)]=_0x4ca2ee(0x48c),_0x1d5fa1[_0x4ca2ee(0x19b)]=_0x4ca2ee(0x241),_0x1d5fa1[_0x4ca2ee(0x420)]=_0x4ca2ee(0x48a),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x4ac),{'enumerable':!0x0,'get':function(){return _0x2d725c;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x360),{'enumerable':!0x0,'get':function(){return _0x3c6cb8;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x300),{'enumerable':!0x0,'get':function(){return _0x23ae28;}}),_0x1d5fa1[_0x4ca2ee(0x202)]=_0x4ca2ee(0x1de),_0x1d5fa1['HEARTBEAT_TIMEOUT_KEY']=_0x4ca2ee(0x2d2),_0x1d5fa1[_0x4ca2ee(0x37f)]=_0x3ff2b3,_0x1d5fa1['ICollaborationClientAdapterService']=_0x997217,_0x1d5fa1[_0x4ca2ee(0x482)]=_0x2277c0,_0x1d5fa1['ILocalCacheService']=_0x1dd414,_0x1d5fa1[_0x4ca2ee(0x349)]=_0x11f218,_0x1d5fa1[_0x4ca2ee(0x3df)]=_0x208a4c,_0x1d5fa1['LOCAL_CACHE_INTERVAL']=0x3e8,_0x1d5fa1[_0x4ca2ee(0x45e)]=_0x4ca2ee(0x4b3),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x28b),{'enumerable':!0x0,'get':function(){return _0x232b7e;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x282),{'enumerable':!0x0,'get':function(){return _0x1a38c4;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x2bf),{'enumerable':!0x0,'get':function(){return _0x4522d6;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x3ef),{'enumerable':!0x0,'get':function(){return _0x1743c3;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x370),{'enumerable':!0x0,'get':function(){return _0x2b8409;}}),_0x1d5fa1[_0x4ca2ee(0x1c9)]='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',_0x1d5fa1[_0x4ca2ee(0x270)]=_0x4ca2ee(0x17f),_0x1d5fa1[_0x4ca2ee(0x2a6)]=_0x6ccffc,Object['defineProperty'](_0x1d5fa1,_0x4ca2ee(0x38d),{'enumerable':!0x0,'get':function(){return _0x2da38a;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x193),{'enumerable':!0x0,'get':function(){return _0x373754;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,'SlideCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x4150af;}}),Object['defineProperty'](_0x1d5fa1,_0x4ca2ee(0x45f),{'enumerable':!0x0,'get':function(){return _0xe2c026;}}),Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,'SyncedState',{'enumerable':!0x0,'get':function(){return _0x1aec7f;}}),_0x1d5fa1[_0x4ca2ee(0x240)]=_0x17e655,Object[_0x4ca2ee(0x4d4)](_0x1d5fa1,_0x4ca2ee(0x431),{'enumerable':!0x0,'get':function(){return _0x4713dc;}}),_0x1d5fa1[_0x4ca2ee(0x487)]=_0x35dc98,_0x1d5fa1['deserializeToCombResponse']=_0x179e36,_0x1d5fa1[_0x4ca2ee(0x491)]=_0x48485d,_0x1d5fa1[_0x4ca2ee(0x184)]=_0x28a999;}));function _0x27bb(){const _0x43f3e1=['JOIN','/universer-api/oidc/authpage','_resendTimer','LOCAL_CACHE_INTERVAL_KEY','SnapshotServerOverHTTPService','OTHER_CLIENTS_EDITING','appendMutation','splice','_authzIoService','isTransformMutationsWithChangesetSuccess','_rescheduleHeartbeat','_acknowledgedAwaitingRevision','_sessions','x-univer-host','getInterceptPoints','LIVESHARE_TERMINATE','maxSize','univer-pro.collaboration-client-socket-service','_clearUndo','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','_imageSourceCache','_getCurrentRevision','isArray','12895yEaPFK','transformChangesets','registerDependencies','transformUndoRedo','collaboratorID','awaitingChangeset','getValue','36944XTtgVV','signUrlServerUrl','_commentUpdate$','ICommandService','_fetchMissChangesets','univer-pro.collaboration-client-adapter-service','getOwnPropertyDescriptor','parseChangesetToProtocol','CollaborationAttachmentIoService','ICollaborationSocketService','delete','SOCKET_FAILED_RETRY','_onRecvEvent','HEARTBEAT','createUniverCollaborationAdapter','result','ErrorCode','/universer-api/user/session-ticket','ObjectPermissionService','ws://127.0.0.1:8000/universer-api/comb/connect','ThresholdInterceptorFactory','Module','dispose','EmptyMutationInfo','getLocalCacheKey','_sendHeartbeat','upload','UserManagerService','UniverDocs','958264yuSevA','commentUpdate$','_undoRedoService','&source=','disablePadding','_emitMembers','append','base-ui.attachment-io.service','_updateLocalCache','revision','/universer-api/file/{fileID}/sign-url','reduce','href','onMissingChangesets','_snapshotServerService','CommentService','clearUnit','invalid\x20output,\x20must\x20be\x20aligned','UniverInstanceType','cfgEnableObjInherit','max','isTransformMutationsWithChangesetFailure','DataLoaderService','_decreaseWaiting','_getRedoStack','reverse','generateRandomId','target','type=','LOCAL_CACHE_INTERVAL','liveShareNewHost','string','supports','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','objectID','BYTES_PER_ELEMENT','_showConflictProcessingNotification','_docStateChangeManagerService','function','_refreshUnitPermission','CHANGESET_REJ','_onCombEvent','UniverCollaborationPlugin','CollaborationController','DocStateChangeManagerService','slice','_handler','RemoveSlidePageMutation','now','_transformAndApplyRemoteChangeset','MSG_FOR_ERROR','UNIVER_SLIDE','getMemberID','COMMENT_UPDATE','CommandType','Univer','_stopTelemetryCollaborationNewChangeset','JOIN_ROOM_NOT_EXISTS','some','_redoStacks','unitId','asObservable','defineProperty','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','univer-pro.collaboration-client.network-condition.service','_onConnectionOpen','_revisionService','change$','fetchThroughInterceptors','fetch_missing','parseProtocolChangeset','/object/','getTypeOfUnitAdded$','toggleOnline','_collaborationTimeoutTimer','add','output','_changesetReqId','retryConnectingTimer','IPermissionService','_compressMutationService','SHOULD_CLOSE_CONN','_onJoinRoomEvent','executeCommand','_handleRemoteChangesets','_httpService','AddSlidePageMutation','UnitAction','save\x20fail\x20reason\x20is\x20','AuthzIoHttpService','IConfigService','pauseCollaboration','LocaleService','_onRemoteRetry','JOINING','emitEvent','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','RETRY_CONNECTING_MAX_COUNT','_clearCollaborationTimeoutTimer','members$','[CollaborationUndoRedoService]','IMentionIOService','serializeCombRequest','_awaitingChangeset','post','CollaborationUIEventId','_initDependencies','OFFLINE','unitDisposed$','withAAD','_incrementRevisionNumber','_clearRetryConnectingTimer','iterator','/new_changes','submit\x20changeset\x20error!','isSafeInteger','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','SheetTransformSelectionsService','@univerjs/sheets','/rev/','USERS_LEAVE','updateOfflineData','?size=','loadUnitOfRevision','action','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','unitInfo$','closeSession','getUploadOptions','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','_identity','ERROR_IMAGE','_onOffline','readyForCollab','blockRanges','sid','getRandomValues','_cfgEnableObjInherit','loginUrlKey','updateSnapshot','_remoteChangesetQueue','deleteCollaborator','text-x','CollaborationImageIoService','setShowComponents','awaiting_with_pending','default','objectId','getUnitOnRev','rev','list','next','_socketService','_getSignURL','pluginName','Rectangle','_transformService','csAckEvent','routeKey','_localeService','EnsureSlideMasterPageMutation','_resendWithTimeout','onPrepareTransformSelections','collabSubmitChangesetUrl','INGEST','_roomMembers','_initCloseConn','[CollaborationSessionService]','ITelemetryService','UNIVER_PDF','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','CollaborationUIEventService','ciphertext\x20must\x20be\x20multiple\x20of\x2016','_commentService','_status$','_transformIMECache','onSyncEditingCollabCursor','getGlobalObject','getDeserializedSheetBlock','_telemetryService','endsWith','CONFLICT_PROCESSING','withCredentials','sendChangesetTimeout','values','Document','Optional','isCompositionEnd','_sheetTransformSelectionsService','candidateSocket','/resources','HEARTBEAT_INTERVAL','_listenToNetworkCondition','[CollaborationState]:\x20apply\x20error!','_entityInit$','not_collab','open$','indexOf','ISnapshotServerService','subType','c1Prime','MentionType','forEach','deepClone','OPTIONAL','BaseCollaborationEntity','onMissedChangesetFetched','copyFileMeta','_onFetchMissResult','body','_getLoginPath','_pendingMutations','_createSocket','mergeOverrideWithDependencies','workbook','LEAVE','key','decrypt','create','collaboration-client.local-cache-service','getSheetBlock','_disposed','MUTATION','backupOfflineData','editing\x20status\x20changed\x20to','min','SUCCUSS','HEARTBEAT_INTERVAL_KEY','_collaborationPaused','push','unknown','debug','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','1.0.4','UniverProSlides','batchAllowed','_updateUnitPermissionPoint','Subject','updatePermissionObjEvent','getResourcesRequest','rollback','SOCKET_FAILED','_throwTelemetryCollaborationNewChangeset','658KsLdTT','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','onTransformRemoteChangesetByStateCache','RECV','_tryEnsureSocket','packageName','expected\x20number,\x20got\x20','getCurrentUser','CONFLICT','downloadEndpointUrl','objectActions','params','_changesetSessionId','[CollaborationSessionService]:\x20socket\x20error','UNIVER_SHEET','RevisionService','_updateStatus','unit-cache-','find','LIVESHARE_REQUEST_HOST','localUnitId','localeService','[PendingState]:\x20received\x20acknowledgement.','saveSheetBlock','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_config','error$','sort','_getDownloadEndpointURL','then','_applyRemoteChangeset','getAllPermissionPoint','_roomCreated$','__splitChunk__','COLLABORATION_ENDPOINT_INVALID','toDisposable','_queuedRemoteChangesets','_handlerCallback','ImageUploadStatusType','[OfflineState]:\x20received\x20acknowledgement.','[PendingState]:\x20received\x20rejection.','session.join-failed','state','_commandService','/role','RichTextEditingMutation','UnitStatus','/universer-api/uniscript','_isEchoedAwaitingChangeset','c2Prime','getLatestCsReqIdBySid','complete','updateMember','constructor','session.room-full','FETCH_MISSING','updateCursorEvent','_disableEditing','983022JDEUzO','_instanceService','focused$','session.room-cnt-exceeds','getCollabEntity','getRoom','isInternalEditorID','_onConflict','_tryReconnect','Failed\x20to\x20update\x20permission\x20point','_exhaustRemoteChangesetQueue','/universer-api/stream/file/upload','\x20to\x20','resolveWithBasePath','_registerDependencies','loadDoc','addHandlerCallback','Injector','_submitChangeset','capture','stopTime','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','mapDocumentTypeToUniverInstanceType','objects','onTransformRemoteChangesetByIMECache','_replayCachedMutations','_telemetryInfo','onTransformState','socket$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[DataLoaderService]','UniverNetworkPlugin','missingChangesets','&to=','BoardCollaborationEntity','getSnapshotAPIPath','RETRY_CONNECTING_MAX_COUNT_KEY','_createInitialStateImpl','unitID','UPDATE_CURSOR','shouldCloseConn','uuidv4','DEFAULT_COLLAB_WEB_SOCKET_URL','NEW_CHANGESETS','getAttachmentUrl','headers','_collabSessionService','collaboration-client.config','ConflictState','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','awaiting','CONFLICT_CACHE_CLEAR_FAILED','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','onCommentUpdate','MentionIoHttpService','loadBase','socket\x20close',',\x20got\x20','_collaborationUIEventService','b64DecodeUnicode','_getAPIPrefixPath','_startCollaboration','commit','MemberService','pipe','changesets','getUnitStatus$','/universer-api/snapshot/','_logService','@univerjs/drawing','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_transformUndoredo','CollaborationSocketService','loadBoard','unitLoaded$','endpoint','conflict','hostname','updatePermissionPoint','\x20in\x20_schedule.','textRanges','unitType','commentUpdateEvent','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_sessionStatus$','IImageIoService','error','onlyLocal','_clearScheduledTask','_transitionLocked','SessionStatus','UnitObject','listCollaborators','addImageSourceCache','rxjs/operators','\x22ciphertext\x22\x20expected\x20length\x20>=\x20tagLength=','url','CLOSE_ROOM','PERMISSION_DENIED','_initMergeInterceptor','startsWith','_onUserLeave','[OfflineState]:\x20received\x20changeset.','CmdRspCode','sendHeartbeatTimer','byteOffset','LIVESHARE_NEW_HOST','onload','map','_configService','_onRemoteACK','People','fetchMissingChangesets','unit','subarray','OfflineState','take','DRAWING_IMAGE_ALLOW_IMAGE_LIST','patch','__Key__','_initUnitPermissionChange','Inject','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','duration','shareReplay','/block/','_replaceFileID','joinEvent','filter','_onUserJoin','catch','stringify','transformMutationsWithChangeset','_waitForHeartbeatResponse','HEARTBEAT_TIMEOUT','resolveUnit','_checkMissing','PERSON','socketService','_state','LocalUndoRedoService','roles','_collaborationSessionService','type','_memberService','updateCollaborator','_socket','location','_clearRedo','bytesLength','_prepareConflictRecovery','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','onStateChange','_resolveSessionIdentity','_onRemoteChangeset','onStarting','onRemoteRej','override','_removeRoom','/object','getCurrentRevOfUnit','UNIVER_BASE','uniscriptRunEvent','IUndoRedoService','_sendingTimer','sequenceExecute','_HTTPService','_sender','USERS_ENTER','csShouldRetryEvent','_sessionChannels','disposeWithMe','CompressMutationService','[UniverCollaborationClientPlugin]','saveSnapshot','CHANGESET_ACK','_event$','1178350DwPxgQ','PERMISSION_REJ','GLOBAL_ROOMS_CNT_EXCEEDS','FetchingMissState','97532feJafy','_unitLoaded$','AAD','JSONX','_permissionService','encode','_createHandler','expected\x20Uint8Array','buffer','enableSingleActiveInstanceLock','Uint8Array','registerHTTPInterceptor','[CollaborationSession]','HTTPRequest','number','ImageSourceType','COMPRESS_MUTATION_APPLY','{fileID}','\x0aAfter:\x20','requestParams','onSendChangeset','_transformStack','from','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','userID','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','session.room-not-exists','initWorkbookPermissionChange','enableOfflineEditing','editingUnit','FileId','SetSelectionsOperation','length=','loadSheet','_upload','Workbook','Edit','HELLO','IAuthzIoService','byteLength','_transformStateCache','[SyncedState]:\x20received\x20rejection.','/-/object/list','_createInitialState','dispose$','equals','has','reqId','6TTTtAr','HTTPService','tagLength','_init','baseRev','status$','PENDING','unitId\x20is\x20not\x20found','UNIVER_COLLABORATION_CLIENT_PLUGIN','crypto','_shouldReportTelemetry','OTHER_CLIENT_EDITING','CollaborationStatus','\x20of\x20length\x20','size','nonceLength','ILogService','RxDisposable','state$','[SyncedState]:\x20received\x20acknowledgement.','ONLINE','[OfflineState]:\x20received\x20rejection.','responseType','onTransformSelections','INetworkConditionService','PSEUDO_FETCH_MISSING_RESULT','eventID','code','UnitEmbedded','title','_maxTotalRetryTimeout','putCollaborators','_type','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','session','_getUndoStack','_executeRemoteChangeset','prototype','onTransformIME','clear','originalMeta','includes','retryCount','AwaitingState','symbol','/allowed','_pendingSessions','DocCollaborationEntity','LIVESHARE_FETCH_OPERATIONS','_joinRoom','/unit/','merge','origin','_getSendChangesetTimeout','objectType','/universer-api/authz','object','timeoutTimer','entityInit$','_onRemoteRejected','_networkConditionService','attachment','members','PendingState','ITransformService','_getSocketChannel','_initRequestHeader','76417qqiuko','m2Prime','_showConflictNotification','AWAITING','toggleOffline','_substituteUndoStack','_adapter','_unitInfo$','message$','createInstance','getCfgEnableObjInherit','IAttachmentIoService','UniverLicensePlugin','takeUntil','CombCmd','UNIVER_BOARD','close$','UNISCRIPT_RUN','_undoStacks','_state$','UUID','_change$','setCfgEnableObjInherit','createCollaborator','saveImage','SheetCollaborationEntity','failed\x20to\x20apply\x20missed\x20changesets!','socketMessageSubscription','_clearTimeoutTimer','accept','_transformRemoteChangesetByIMECache','_startTelemetryCollaborationNewChangeset','_singleActiveUnitService','UPDATE_PERMISSION_OBJ','LIVESHARE_OPERATION','_syncEditingCollabCursor','socket\x20open.','IDLE','IUniverInstanceService','UniverTelemetry','_hasSessionsForEndpoint','name','reject','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','pending','collaMsg','JOIN_ROOM_FULL','selections','uploadFileServerUrl','_resendTimeout','resend','setConfig','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_getUploadFileURL','CollaborationEvent','BASE64','src','getFocusedUnit','subscribe','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_members$','_injector','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getCollabEntity$','Disposable','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','wrong\x20sbox\x20length','/universer-api/comb','&assign=','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','cmd','isTransformChangesetsSuccess','exports','[CollaborationEntity]','@univerjs-pro/slides','SUBMIT_CHANGESET_TIMEOUT','@univerjs/network','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','saveAttachment','FileSource','_closedUnits','getImageSourceCache','_getAPIPrefix','CollaborationSession','DependentOn','_toggleOffline','_onConnectionFailed','_getUnitPermissionPoints','pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','_acknowledgeAwaitingIfReady','encrypt','_scheduleCompleteTimestamp','waitForRoom$','removeMember','9TTjGaV','touchDependencies','_onMessage','actions','data','init','_unlockTransition','columnGroups','call','AwaitingWithPendingState','roomInfos','sessionStatus$','_isPermissionRej','ISingleActiveUnitService','_eventService','varSizeNonce','_getConfig','_prepareTransformSelections','setWaitCount','_getCtorByUniverInstanceType','connection\x20error','_clearHeartbeatTimer','set','fetchMiss','onMutationExecutedForCollab','\x22bytesLength\x22\x20expected\x20<=\x2065536,\x20got\x20','fill','newCsEvent','reconnect','PdfCollaborationEntity','getWorkbookSelections','/-/object/-/batch_allowed','_socketMessageSubscription','endpointKey','interceptor','_scheduleCollaborationTimeoutTimer','unsubscribe','_schedule','getUnitId','socketReady','_univerInstanceService','isPermissionRej','refreshUnit','collaborators','NOT_COLLAB','onRemoteAck','synced','delay','FAIL','method','createIdentifier','ReplaySubject','loadOfflineData','UniverProCollaborationClient','getUnitType','\x20-\x20','POST','UNIVER_DOC','_socketChannels','getSheetId','getUnit','onRemoteRetry','_substituteRedoStack','_snapshotService','toLocal','_members','hasOwnProperty','_updateState','/collaborator','_transformSelections','sessionStatus','csRejEvent','CollaborativeUndoRedoService','_waitCount','put','localCacheService','isView','InsertSheetMutation','DEFAULT_WS_SESSION_TICKET_URL','authzUrl','_entities','SUBMIT_CHANGESET','IContextService','getTypeOfUnitDisposed$','close','690lZzqYo','onLocalMutation','version','get','SNAPSHOT_URL_KEY','UniverProCollaboration','MergeInterceptorFactory','loadPdf','subject','@univerjs/telemetry','UniverCollaborationClientPlugin','send','getConfig','mutations','rxjs','_acknowledgeAwaiting','clearOfflineData','_onLocalMutation','onRemoteChangeset','@univerjs-pro/license','event$','status','concatMap','fromCollab','BehaviorSubject','getMember','createSocket','NO_OTHER_CLIENTS_EDITING','enableCollaboration','apply','_userManagerService','CHANGESET_SHOULD_RETRY','replace','COMPRESS_MUTATION_SEND','textEncoder','_lockTransition','floor','AWAITING_WITH_PENDING','range','changeset','_toggleOnline','@univerjs/core','WorkbookEditablePermission','length','snapshot','requireSession','_localCacheService','allowed','resolve','memberID','objectPermissionTypes','84cABlxG'];_0x27bb=function(){return _0x43f3e1;};return _0x27bb();}
|
|
1
|
+
function _0x2c10(_0x746c76,_0x5e5ca2){_0x746c76=_0x746c76-0x95;const _0x4cd7a4=_0x4cd7();let _0x2c1008=_0x4cd7a4[_0x746c76];return _0x2c1008;}(function(_0x55079a,_0x3e7846){const _0x273ad6=_0x2c10,_0x1cb562=_0x55079a();while(!![]){try{const _0x19029c=-parseInt(_0x273ad6(0xc1))/0x1*(parseInt(_0x273ad6(0x3e7))/0x2)+-parseInt(_0x273ad6(0x382))/0x3*(-parseInt(_0x273ad6(0x2b8))/0x4)+parseInt(_0x273ad6(0x1eb))/0x5+parseInt(_0x273ad6(0x1e9))/0x6*(parseInt(_0x273ad6(0x2f3))/0x7)+parseInt(_0x273ad6(0x31a))/0x8*(parseInt(_0x273ad6(0x2d3))/0x9)+parseInt(_0x273ad6(0x185))/0xa*(-parseInt(_0x273ad6(0xf4))/0xb)+-parseInt(_0x273ad6(0x451))/0xc;if(_0x19029c===_0x3e7846)break;else _0x1cb562['push'](_0x1cb562['shift']());}catch(_0xe3b56d){_0x1cb562['push'](_0x1cb562['shift']());}}}(_0x4cd7,0xc30b2),function(_0x4979ef,_0x3fbbd2){const _0x5b5327=_0x2c10;typeof exports==_0x5b5327(0x265)&&typeof module<'u'?_0x3fbbd2(exports,require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define=='function'&&define[_0x5b5327(0x44d)]?define([_0x5b5327(0x14f),_0x5b5327(0x287),'rxjs',_0x5b5327(0x43b),_0x5b5327(0x478),_0x5b5327(0x34d),'@univerjs/sheets','@univerjs/protocol',_0x5b5327(0x1f3),_0x5b5327(0x379),_0x5b5327(0x44b),_0x5b5327(0x397),_0x5b5327(0x415)],_0x3fbbd2):(_0x4979ef=typeof globalThis<'u'?globalThis:_0x4979ef||self,_0x3fbbd2(_0x4979ef[_0x5b5327(0x2c3)]={},_0x4979ef[_0x5b5327(0x1f4)],_0x4979ef[_0x5b5327(0x3a9)],_0x4979ef[_0x5b5327(0x344)],_0x4979ef[_0x5b5327(0xa6)],_0x4979ef[_0x5b5327(0x284)],_0x4979ef['UniverSheets'],_0x4979ef[_0x5b5327(0x3c6)],_0x4979ef[_0x5b5327(0x3f5)],_0x4979ef['rxjs'][_0x5b5327(0xc3)],_0x4979ef[_0x5b5327(0x1fd)],_0x4979ef[_0x5b5327(0x156)],_0x4979ef['UniverDrawing']));}(this,function(_0x23db49,_0x18cba4,_0x1fdbe2,_0x4524ba,_0x325f28,_0x285e73,_0x29d3a5,_0x483212,_0x15e7af,_0xa8b74d,_0x2ee164,_0x35d7c3,_0x2115ce){const _0x315216=_0x2c10;Object['defineProperty'](_0x23db49,Symbol['toStringTag'],{'value':'Module'});let _0x3a344c=_0x315216(0x146),_0x1e0f56={};function _0x2a0071(_0x2a257e){'@babel/helpers - typeof';const _0x2362f5=_0x315216;return _0x2a0071=typeof Symbol==_0x2362f5(0x246)&&typeof Symbol['iterator']==_0x2362f5(0x327)?function(_0x2b8327){return typeof _0x2b8327;}:function(_0x5dcf18){const _0x57175b=_0x2362f5;return _0x5dcf18&&typeof Symbol==_0x57175b(0x246)&&_0x5dcf18['constructor']===Symbol&&_0x5dcf18!==Symbol[_0x57175b(0x40b)]?_0x57175b(0x327):typeof _0x5dcf18;},_0x2a0071(_0x2a257e);}function _0x23348b(_0x2fb15e,_0xbfd1bb){const _0x27dc8b=_0x315216;if(_0x2a0071(_0x2fb15e)!=_0x27dc8b(0x265)||!_0x2fb15e)return _0x2fb15e;var _0x5ccec1=_0x2fb15e[Symbol[_0x27dc8b(0x1f5)]];if(_0x5ccec1!==void 0x0){var _0x15aeaf=_0x5ccec1[_0x27dc8b(0x20c)](_0x2fb15e,_0xbfd1bb||_0x27dc8b(0x2fa));if(_0x2a0071(_0x15aeaf)!=_0x27dc8b(0x265))return _0x15aeaf;throw TypeError(_0x27dc8b(0x138));}return(_0xbfd1bb===_0x27dc8b(0xd5)?String:Number)(_0x2fb15e);}function _0x485e0c(_0x406d92){const _0x45ea86=_0x315216;var _0x2b7e74=_0x23348b(_0x406d92,_0x45ea86(0xd5));return _0x2a0071(_0x2b7e74)==_0x45ea86(0x327)?_0x2b7e74:_0x2b7e74+'';}function _0x4da1f9(_0x2da904,_0x3aed30,_0x90936f){const _0x51fa02=_0x315216;return(_0x3aed30=_0x485e0c(_0x3aed30))in _0x2da904?Object[_0x51fa02(0xb2)](_0x2da904,_0x3aed30,{'value':_0x90936f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2da904[_0x3aed30]=_0x90936f,_0x2da904;}var _0x18c848=class{constructor(_0x457fc2,_0x830692,_0x3254d3={}){const _0x5b0fc0=_0x315216;this[_0x5b0fc0(0x2db)]=_0x830692,this[_0x5b0fc0(0x45a)]=_0x3254d3,_0x4da1f9(this,'_attempt',0x0),_0x4da1f9(this,_0x5b0fc0(0x16a),void 0x0),_0x4da1f9(this,'_ackTimeout',void 0x0),_0x4da1f9(this,_0x5b0fc0(0x3d3),void 0x0),_0x4da1f9(this,'_retryBackoff',0x0),_0x4da1f9(this,_0x5b0fc0(0x387),0x0),_0x4da1f9(this,_0x5b0fc0(0x12d),null),_0x4da1f9(this,_0x5b0fc0(0x34c),null),_0x4da1f9(this,_0x5b0fc0(0x46d),null),_0x4da1f9(this,_0x5b0fc0(0x2c5),0x0),_0x4da1f9(this,_0x5b0fc0(0x43c),!0x1),_0x4da1f9(this,_0x5b0fc0(0x1e6),void 0x0),_0x4da1f9(this,_0x5b0fc0(0x98),void 0x0),this['_reqId']=_0x457fc2,this['_ackTimeout']=_0x3254d3[_0x5b0fc0(0x370)]??0x4e20,this[_0x5b0fc0(0x3d3)]=Math[_0x5b0fc0(0x30e)](_0x3254d3[_0x5b0fc0(0x2ec)]??0x1d4c0,this['_ackTimeout']),this['_now']=_0x3254d3['now']??(()=>Date['now']()),this[_0x5b0fc0(0x16a)]=this[_0x5b0fc0(0x1e6)]();}get[_0x315216(0x3d0)](){const _0x1013ca=_0x315216;return this[_0x1013ca(0x98)];}get[_0x315216(0x378)](){const _0x2bcacb=_0x315216;return this[_0x2bcacb(0x1fc)];}get['nextDelayMs'](){const _0x487693=_0x315216;return this[_0x487693(0x387)];}get['elapsedMs'](){const _0x25fbd3=_0x315216;return this[_0x25fbd3(0x1e6)]()-this[_0x25fbd3(0x16a)];}[_0x315216(0x3cf)](_0x175a97){const _0x4b030e=_0x315216;if(this[_0x4b030e(0x43c)])return;this[_0x4b030e(0x46d)]=_0x175a97;let _0x2caf26=this['_pendingReason'];_0x2caf26&&(this[_0x4b030e(0x34c)]=null,this['_resend'](_0x2caf26));}['unbind'](){const _0x13bed1=_0x315216;this[_0x13bed1(0x46d)]=null;}[_0x315216(0x2ac)](_0x3a9f1e,_0x43ffb9,_0x42ea86){const _0x1ecfd1=_0x315216;this['_disposed']||(_0x42ea86&&this[_0x1ecfd1(0x19f)](_0x42ea86),this['armAckTimeout'](),this[_0x1ecfd1(0xc7)](_0x3a9f1e),this[_0x1ecfd1(0x98)]=_0x3a9f1e['reqId']??this[_0x1ecfd1(0x98)],_0x42ea86&&this['_notifyResend'](_0x42ea86,_0x43ffb9));}[_0x315216(0x431)](){const _0x5a7fe6=_0x315216;this[_0x5a7fe6(0x122)](this[_0x5a7fe6(0x1ba)],_0x5a7fe6(0xf2));}[_0x315216(0x37d)](){const _0x1af61a=_0x315216;this[_0x1af61a(0x122)](this[_0x1af61a(0x14c)],_0x1af61a(0x281));}[_0x315216(0x15a)](){const _0x1dc062=_0x315216;this['_disposed']=!0x0,this[_0x1dc062(0x434)](),this[_0x1dc062(0x46d)]=null,this['_pendingReason']=null;}['_deliver'](_0x5a9390){const _0x3c58eb=_0x315216;let _0x5a4ab1=++this[_0x3c58eb(0x2c5)],_0x40e93d;try{_0x40e93d=this['_send'](_0x5a9390,{'timeout':this[_0x3c58eb(0x1ba)]});}catch(_0x1e7a3b){this[_0x3c58eb(0x294)](_0x5a4ab1,_0x1e7a3b);return;}_0x40e93d instanceof Promise&&_0x40e93d['catch'](_0xd28712=>this['_onRequestFailed'](_0x5a4ab1,_0xd28712));}[_0x315216(0x294)](_0x545d2e,_0x60681a){const _0x4c2a1b=_0x315216;if(this[_0x4c2a1b(0x43c)]||_0x545d2e!==this[_0x4c2a1b(0x2c5)])return;let _0x2b378e=_0x496eca(_0x60681a,this[_0x4c2a1b(0x14c)]);_0x2b378e!==null&&this[_0x4c2a1b(0x122)](_0x2b378e,'request_failed');}[_0x315216(0x122)](_0x3e62f4,_0xaa41c7){const _0x5b615c=_0x315216;this[_0x5b615c(0x43c)]||(this['_clearTimer'](),this['_pendingReason']=null,this['_nextDelay']=_0x3e62f4,this['_timer']=setTimeout(()=>{const _0x274125=_0x5b615c;this[_0x274125(0x12d)]=null,this[_0x274125(0x46d)]?this['_resend'](_0xaa41c7):this[_0x274125(0x34c)]=_0xaa41c7;},_0x3e62f4));}['_resend'](_0x2e747f){const _0x82c7f7=_0x315216;let _0x45a25f=this[_0x82c7f7(0x46d)];if(!_0x45a25f||this[_0x82c7f7(0x43c)])return;let {changeset:_0x1d023c,unsyncedMutationCount:_0x2f19b0}=_0x45a25f();this[_0x82c7f7(0x19f)](_0x2e747f),this[_0x82c7f7(0x431)](),this['_deliver'](_0x1d023c),this[_0x82c7f7(0x98)]=_0x1d023c['reqId']??this[_0x82c7f7(0x98)],this[_0x82c7f7(0x2ef)](_0x2e747f,_0x2f19b0);}[_0x315216(0x19f)](_0x15c4db){const _0x3f00b1=_0x315216;this[_0x3f00b1(0x1fc)]+=0x1,_0x15c4db===_0x3f00b1(0x281)||_0x15c4db==='request_failed'?this[_0x3f00b1(0x14c)]=this[_0x3f00b1(0x14c)]===0x0?0x3e8:Math[_0x3f00b1(0xef)](this[_0x3f00b1(0x14c)]*0x2,0x4e20):_0x15c4db===_0x3f00b1(0xf2)&&(this[_0x3f00b1(0x1ba)]=Math[_0x3f00b1(0xef)](this[_0x3f00b1(0x1ba)]*0x2,this[_0x3f00b1(0x3d3)]));}['_notifyResend'](_0x37f42d,_0x9a6719){const _0x5b4149=_0x315216;var _0x10eb5d,_0x2d0623;this[_0x5b4149(0x43c)]||(_0x10eb5d=(_0x2d0623=this[_0x5b4149(0x45a)])[_0x5b4149(0x237)])==null||_0x10eb5d[_0x5b4149(0x20c)](_0x2d0623,{'reqId':this['_reqId'],'reason':_0x37f42d,'attempt':this[_0x5b4149(0x1fc)],'elapsedMs':this[_0x5b4149(0x462)],'unsyncedMutationCount':_0x9a6719,'nextDelayMs':this[_0x5b4149(0x1ba)]});}[_0x315216(0x434)](){const _0x5f33ad=_0x315216;this[_0x5f33ad(0x12d)]!=null&&(clearTimeout(this[_0x5f33ad(0x12d)]),this[_0x5f33ad(0x12d)]=null);}};function _0x496eca(_0x4bacae,_0x481059){const _0x442026=_0x315216;if(_0x4bacae instanceof _0x1fdbe2[_0x442026(0x3d6)])return null;if(_0x4bacae instanceof _0x18cba4['HTTPResponseError']){let _0x265c00=_0x4bacae[_0x442026(0x326)]??0x0;return _0x265c00===0x0||_0x265c00===0x198||_0x265c00===0x1ad||_0x265c00>=0x1f4?Math[_0x442026(0x30e)](_0x481059,_0x55b716(_0x4bacae)):null;}return _0x481059;}function _0x55b716(_0x49fe1d){const _0x39e06c=_0x315216;var _0x58088d;let _0x3e7ca1=(_0x58088d=_0x49fe1d[_0x39e06c(0xff)])==null||(_0x58088d=_0x58088d[_0x39e06c(0x1df)](_0x39e06c(0xfc)))==null?void 0x0:_0x58088d[0x0],_0x17ebaf=_0x3e7ca1===void 0x0?NaN:Number(_0x3e7ca1);return Number[_0x39e06c(0x141)](_0x17ebaf)&&_0x17ebaf>0x0?_0x17ebaf*0x3e8:0x0;}function _0x3dae32(_0x33a108){return JSON['stringify'](_0x33a108)['length'];}let _0x4c99b2=function(_0x3cbe0){const _0x30b45e=_0x315216;return _0x3cbe0['OTHER_CLIENT_EDITING']=_0x30b45e(0x1ee),_0x3cbe0[_0x30b45e(0x117)]='PERMISSION_DENIED',_0x3cbe0[_0x30b45e(0x2aa)]='CONFLICT_PROCESSING',_0x3cbe0[_0x30b45e(0x2d1)]=_0x30b45e(0x2d1),_0x3cbe0[_0x30b45e(0x37c)]=_0x30b45e(0x37c),_0x3cbe0[_0x30b45e(0x1bd)]=_0x30b45e(0x1bd),_0x3cbe0[_0x30b45e(0x25b)]=_0x30b45e(0x25b),_0x3cbe0['SOCKET_FAILED_RETRY']=_0x30b45e(0x28c),_0x3cbe0[_0x30b45e(0x2c1)]=_0x30b45e(0x2c1),_0x3cbe0[_0x30b45e(0x114)]='SUBMIT_CHANGESET_TIMEOUT',_0x3cbe0;}({});var _0x11f58a=class{constructor(){const _0x5c8a8d=_0x315216;_0x4da1f9(this,_0x5c8a8d(0x2e5),new _0x1fdbe2['Subject']()),_0x4da1f9(this,_0x5c8a8d(0x376),this[_0x5c8a8d(0x2e5)]['asObservable']());}[_0x315216(0x436)](_0x172b48){const _0x3dfc8d=_0x315216;this['_event$'][_0x3dfc8d(0x407)](_0x172b48);}},_0x3313da=class{constructor(){const _0x9db487=_0x315216;_0x4da1f9(this,'_commentUpdate$',new _0x1fdbe2['Subject']()),_0x4da1f9(this,_0x9db487(0x440),this[_0x9db487(0x258)]['asObservable']());}[_0x315216(0xec)](_0x4c079c){this['_commentUpdate$']['next'](_0x4c079c);}};function _0x557b04(_0x5f2ec1,_0x1418c6){return function(_0x2ce30c,_0x57d9c3){_0x1418c6(_0x2ce30c,_0x57d9c3,_0x5f2ec1);};}function _0x5af442(_0x551068,_0x14b4a9,_0x2e4beb,_0x4f52df){const _0x32a1ca=_0x315216;var _0xdd6c7b=arguments['length'],_0x1b3829=_0xdd6c7b<0x3?_0x14b4a9:_0x4f52df===null?_0x4f52df=Object[_0x32a1ca(0x173)](_0x14b4a9,_0x2e4beb):_0x4f52df,_0x50b0ba;if(typeof Reflect==_0x32a1ca(0x265)&&typeof Reflect[_0x32a1ca(0x25c)]=='function')_0x1b3829=Reflect[_0x32a1ca(0x25c)](_0x551068,_0x14b4a9,_0x2e4beb,_0x4f52df);else{for(var _0x188ceb=_0x551068[_0x32a1ca(0x250)]-0x1;_0x188ceb>=0x0;_0x188ceb--)(_0x50b0ba=_0x551068[_0x188ceb])&&(_0x1b3829=(_0xdd6c7b<0x3?_0x50b0ba(_0x1b3829):_0xdd6c7b>0x3?_0x50b0ba(_0x14b4a9,_0x2e4beb,_0x1b3829):_0x50b0ba(_0x14b4a9,_0x2e4beb))||_0x1b3829);}return _0xdd6c7b>0x3&&_0x1b3829&&Object[_0x32a1ca(0xb2)](_0x14b4a9,_0x2e4beb,_0x1b3829),_0x1b3829;}let _0x26f228=class extends _0x325f28[_0x315216(0x14a)]{constructor(_0x1ee15f){const _0x3ba1ed=_0x315216;super(),this[_0x3ba1ed(0x23b)]=_0x1ee15f,_0x4da1f9(this,_0x3ba1ed(0x267),new Map()),_0x4da1f9(this,'_roomCreated$',new _0x1fdbe2[(_0x3ba1ed(0x112))]()),this[_0x3ba1ed(0x41e)]((0x0,_0x1fdbe2[_0x3ba1ed(0x3f7)])(this[_0x3ba1ed(0x23b)][_0x3ba1ed(0x1b4)](_0x325f28[_0x3ba1ed(0x41f)][_0x3ba1ed(0x33b)])[_0x3ba1ed(0xa4)]((0x0,_0xa8b74d[_0x3ba1ed(0x403)])(_0x18d913=>_0x18d913[_0x3ba1ed(0x119)]())),this[_0x3ba1ed(0x23b)]['getTypeOfUnitDisposed$'](_0x325f28[_0x3ba1ed(0x41f)][_0x3ba1ed(0x2a4)])['pipe']((0x0,_0xa8b74d[_0x3ba1ed(0x403)])(_0x548c17=>_0x548c17[_0x3ba1ed(0x119)]())),this[_0x3ba1ed(0x23b)][_0x3ba1ed(0x1b4)](_0x325f28[_0x3ba1ed(0x41f)][_0x3ba1ed(0x3a4)])[_0x3ba1ed(0xa4)]((0x0,_0xa8b74d[_0x3ba1ed(0x403)])(_0x4cc685=>_0x4cc685[_0x3ba1ed(0x119)]())),this[_0x3ba1ed(0x23b)]['getTypeOfUnitDisposed$'](_0x325f28[_0x3ba1ed(0x41f)][_0x3ba1ed(0xc9)])[_0x3ba1ed(0xa4)]((0x0,_0xa8b74d[_0x3ba1ed(0x403)])(_0x1e0f44=>_0x1e0f44[_0x3ba1ed(0x119)]())))[_0x3ba1ed(0x28f)](_0x16cbac=>this['_removeRoom'](_0x16cbac)));}[_0x315216(0x21e)](_0x5bbd4e){const _0x37a6d3=_0x315216;return this['_roomMembers']['has'](_0x5bbd4e)?(0x0,_0x1fdbe2['of'])(this[_0x37a6d3(0x267)]['get'](_0x5bbd4e)):this[_0x37a6d3(0x247)][_0x37a6d3(0xa4)]((0x0,_0xa8b74d['map'])(_0x41567b=>{const _0x8d3d6c=_0x37a6d3;if(_0x41567b===_0x5bbd4e)return this[_0x8d3d6c(0x267)][_0x8d3d6c(0x1df)](_0x41567b);}));}[_0x315216(0x1bc)](_0x285d3d,_0x117484){const _0x4e6c33=_0x315216;let _0x2c6dfa=this[_0x4e6c33(0x267)]['get'](_0x285d3d);_0x2c6dfa||(_0x2c6dfa=new _0x1d7d86(),this[_0x4e6c33(0x267)][_0x4e6c33(0x232)](_0x285d3d,_0x2c6dfa),this[_0x4e6c33(0x247)]['next'](_0x285d3d)),_0x2c6dfa[_0x4e6c33(0x1bc)](_0x117484);}[_0x315216(0x22b)](_0x16c35a,_0x19de3a){const _0x57288b=_0x315216;let _0x172569=this[_0x57288b(0x267)][_0x57288b(0x1df)](_0x16c35a);_0x172569&&_0x172569[_0x57288b(0x22b)](_0x19de3a);}[_0x315216(0x32f)](_0x572e9b){const _0x38256f=_0x315216;return this[_0x38256f(0x267)][_0x38256f(0x1df)](_0x572e9b);}[_0x315216(0xcb)](_0x4c5910,_0x52ee28){const _0x57a4ae=_0x315216;let _0x462a17=this['_roomMembers']['get'](_0x4c5910);if(_0x462a17)return _0x462a17[_0x57a4ae(0xcb)](_0x52ee28);}[_0x315216(0x364)](_0x1f3545){const _0x3823f0=_0x315216;let _0x238734=this[_0x3823f0(0x267)][_0x3823f0(0x1df)](_0x1f3545);_0x238734&&(_0x238734[_0x3823f0(0x15a)](),this[_0x3823f0(0x267)]['delete'](_0x1f3545));}[_0x315216(0x15a)](){const _0x3b1a8d=_0x315216;this[_0x3b1a8d(0x267)][_0x3b1a8d(0x216)](_0x158154=>_0x158154[_0x3b1a8d(0x15a)]()),this[_0x3b1a8d(0x267)]['clear'](),this[_0x3b1a8d(0x247)]['complete']();}};_0x26f228=_0x5af442([_0x557b04(0x0,_0x325f28[_0x315216(0xd2)])],_0x26f228);var _0x1d7d86=class extends _0x325f28[_0x315216(0x14a)]{constructor(..._0x40a773){const _0x394a09=_0x315216;super(..._0x40a773),_0x4da1f9(this,_0x394a09(0x188),new Map()),_0x4da1f9(this,_0x394a09(0x22d),new _0x1fdbe2[(_0x394a09(0x1c7))](this[_0x394a09(0x188)])),_0x4da1f9(this,_0x394a09(0x11c),this[_0x394a09(0x22d)][_0x394a09(0xf1)]());}[_0x315216(0x15a)](){const _0x135639=_0x315216;this['_members'][_0x135639(0x14e)](),this[_0x135639(0x22d)][_0x135639(0x313)]();}[_0x315216(0x1bc)](_0x244917){const _0x27dc91=_0x315216;this[_0x27dc91(0x188)][_0x27dc91(0x232)](_0x244917['memberID'],_0x244917),this[_0x27dc91(0x19a)]();}['removeMember'](_0x354071){const _0x28593a=_0x315216;this[_0x28593a(0x188)][_0x28593a(0x385)](_0x354071),this[_0x28593a(0x19a)]();}[_0x315216(0xcb)](_0x735e26){const _0x28dd61=_0x315216;return this['_members'][_0x28dd61(0x1df)](_0x735e26);}['getAllMembers'](){const _0x288ffc=_0x315216;return Array['from'](this[_0x288ffc(0x188)]['values']());}[_0x315216(0x19a)](){const _0x22d5dc=_0x315216;this['_members$'][_0x22d5dc(0x407)](this[_0x22d5dc(0x188)]);}};function _0x5c1479(_0x4c4263,_0x1ae618){const _0x53e28c=_0x315216;if(_0x7e427c(_0x4c4263))return _0x1ae618;if(_0x1ae618[_0x53e28c(0x32e)]===_0x4524ba['CollaborationEvent'][_0x53e28c(0x227)]){let _0x18519f=_0x2a74da(_0x4c4263),_0x19bf61=_0x1ae618;return{..._0x19bf61,'data':{..._0x19bf61['data'],'unitID':_0x4c4263[_0x53e28c(0x41c)][_0x53e28c(0x352)],'unitType':_0x4c4263['target'][_0x53e28c(0x318)]??_0x19bf61[_0x53e28c(0x2a1)][_0x53e28c(0x318)],'changeset':_0x18519f[_0x53e28c(0xa7)](_0x19bf61['data'][_0x53e28c(0x275)],_0x529707(_0x4c4263))}};}if(_0x1ae618[_0x53e28c(0x32e)]===_0x4524ba['CollaborationEvent'][_0x53e28c(0x2dd)]){let _0x3f9675=_0x1ae618;return{..._0x3f9675,'data':{..._0x3f9675[_0x53e28c(0x2a1)],'unitID':_0x4c4263[_0x53e28c(0x41c)][_0x53e28c(0x352)],'unitType':_0x4c4263[_0x53e28c(0x41c)][_0x53e28c(0x318)]??_0x3f9675[_0x53e28c(0x2a1)][_0x53e28c(0x318)]}};}return _0x1ae618;}function _0x533e59(_0x55f5d7,_0x4e64b5){const _0x5e9674=_0x315216;if(_0x7e427c(_0x55f5d7))return[_0x4e64b5];switch(_0x4e64b5[_0x5e9674(0x32e)]){case _0x4524ba['CollaborationEvent'][_0x5e9674(0xf7)]:return[_0x50bdd5(_0x55f5d7,_0x4e64b5)];case _0x4524ba[_0x5e9674(0x1d7)]['PSEUDO_FETCH_MISSING_RESULT']:return[_0x97baf(_0x55f5d7,_0x4e64b5)];case _0x4524ba[_0x5e9674(0x1d7)][_0x5e9674(0xab)]:return[_0xda20c6(_0x55f5d7,_0x4e64b5)];default:return[_0x4e64b5];}}function _0x7e427c(_0x59a6ce){const _0x2b486d=_0x315216;return _0x59a6ce[_0x2b486d(0x41c)][_0x2b486d(0x253)]==null&&_0x59a6ce[_0x2b486d(0x41c)]['unitId']===_0x59a6ce['localUnitId']&&!_0x59a6ce[_0x2b486d(0x275)];}function _0x50bdd5(_0x131493,_0x214ea1){const _0x5a7b35=_0x315216;return{..._0x214ea1,'data':(0x0,_0x4524ba[_0x5a7b35(0xe4)])(_0x636a6b(_0x131493,(0x0,_0x4524ba[_0x5a7b35(0x3cc)])(_0x214ea1[_0x5a7b35(0x2a1)])))};}function _0xda20c6(_0x1337c8,_0x1462a2){const _0x57ce28=_0x315216;return{..._0x1462a2,'data':_0x636a6b(_0x1337c8,_0x1462a2[_0x57ce28(0x2a1)])};}function _0x97baf(_0x1d0273,_0x262e12){const _0x26932a=_0x315216;let _0x169ce4=_0x262e12[_0x26932a(0x2a1)];return{..._0x262e12,'data':{..._0x169ce4,'changesets':_0x169ce4['changesets'][_0x26932a(0x403)](_0x33a059=>(0x0,_0x4524ba[_0x26932a(0xe4)])(_0x636a6b(_0x1d0273,(0x0,_0x4524ba[_0x26932a(0x3cc)])(_0x33a059))))}};}function _0x636a6b(_0x15a75a,_0x22a593){const _0x1712a1=_0x315216;return _0x2a74da(_0x15a75a)[_0x1712a1(0x278)](_0x22a593,_0x529707(_0x15a75a));}function _0x2a74da(_0x41dc03){if(!_0x41dc03['changeset'])throw Error('COLLABORATION_CHANGESET_TRANSLATION_REQUIRED');return _0x41dc03['changeset'];}function _0x529707(_0x6928ee){const _0x282d58=_0x315216;return{'localUnitId':_0x6928ee[_0x282d58(0x212)],'unitType':_0x6928ee[_0x282d58(0x318)],'target':_0x6928ee['target']};}let _0x50a43f=function(_0x3d39e5){const _0x4c7ffa=_0x315216;return _0x3d39e5[_0x3d39e5['IDLE']=0x0]=_0x4c7ffa(0x355),_0x3d39e5[_0x3d39e5[_0x4c7ffa(0x1f8)]=0x1]=_0x4c7ffa(0x1f8),_0x3d39e5[_0x3d39e5[_0x4c7ffa(0x260)]=0x2]=_0x4c7ffa(0x260),_0x3d39e5[_0x3d39e5[_0x4c7ffa(0x336)]=0x3]=_0x4c7ffa(0x336),_0x3d39e5;}({}),_0xf16957={[_0x483212[_0x315216(0x353)][_0x315216(0x124)]]:_0x315216(0x423),[_0x483212[_0x315216(0x353)][_0x315216(0x28a)]]:_0x315216(0x235),[_0x483212[_0x315216(0x353)][_0x315216(0x368)]]:'session.room-not-exists',[_0x483212['CmdRspCode'][_0x315216(0x467)]]:_0x315216(0x424),[_0x483212[_0x315216(0x353)][_0x315216(0x1db)]]:_0x315216(0x24e)},_0x7f99f9=class extends _0x325f28[_0x315216(0x10c)]{get[_0x315216(0x19d)](){const _0x437c57=_0x315216;return this[_0x437c57(0x38d)][_0x437c57(0x3aa)]();}constructor(_0x4d547f,_0xebfd57,_0x3bfc08,_0x147f7b,_0x122b4e,_0x4637ca,_0x358a4b){const _0x2635fb=_0x315216;super(),this[_0x2635fb(0x3be)]=_0x4d547f,this[_0x2635fb(0xb8)]=_0x3bfc08,this[_0x2635fb(0x3dd)]=_0x147f7b,this['_commentService']=_0x122b4e,this[_0x2635fb(0x190)]=_0x4637ca,this[_0x2635fb(0x3f2)]=_0x358a4b,_0x4da1f9(this,_0x2635fb(0x38d),new _0x1fdbe2['BehaviorSubject'](0x0)),_0x4da1f9(this,'sessionStatus$',this[_0x2635fb(0x38d)]['asObservable']()),_0x4da1f9(this,_0x2635fb(0x2e5),new _0x1fdbe2['Subject']()),_0x4da1f9(this,_0x2635fb(0x376),this[_0x2635fb(0x2e5)][_0x2635fb(0xf1)]()),_0x4da1f9(this,'_socket',void 0x0),_0x4da1f9(this,_0x2635fb(0x2b2),void 0x0),_0x4da1f9(this,_0x2635fb(0x3a0),!0x1),_0x4da1f9(this,_0x2635fb(0x248),null),this[_0x2635fb(0x3a0)]=!!this['_telemetryService'],_0xebfd57[_0x2635fb(0xa4)]((0x0,_0x1fdbe2[_0x2635fb(0xf5)])(this[_0x2635fb(0x42a)]))[_0x2635fb(0x28f)](_0x2770be=>{const _0x181d14=_0x2635fb;if(_0x2770be!==void 0x0){if(this[_0x181d14(0x96)]=_0x2770be,_0x2770be)this[_0x181d14(0x97)](_0x2770be),this[_0x181d14(0x2b2)]=_0x2770be['message$'][_0x181d14(0x28f)](_0x8c0a0=>{const _0x3252a8=_0x181d14;_0x8c0a0['routeKey']===this[_0x3252a8(0x3be)]['target'][_0x3252a8(0x352)]&&this[_0x3252a8(0x359)](_0x8c0a0);});else{var _0x910944;this[_0x181d14(0x147)](),this[_0x181d14(0x38d)][_0x181d14(0x407)](0x2),(_0x910944=this['_socketMessageSubscription'])==null||_0x910944[_0x181d14(0x223)](),this[_0x181d14(0x2b2)]=null;}}});}[_0x315216(0x171)](){var _0x308320;return((_0x308320=this['_socket'])==null?void 0x0:_0x308320['memberID'])??null;}[_0x315216(0x15a)](){const _0x31b6d9=_0x315216;super[_0x31b6d9(0x15a)](),this[_0x31b6d9(0x358)](),this[_0x31b6d9(0x42a)][_0x31b6d9(0x407)](),this['dispose$']['complete']();}[_0x315216(0x358)](){const _0x3be4de=_0x315216;var _0x2989d3;this[_0x3be4de(0x147)](),(_0x2989d3=this[_0x3be4de(0x96)])==null||_0x2989d3['send']({'cmd':_0x483212[_0x3be4de(0x422)][_0x3be4de(0x239)],'data':{'roomID':this[_0x3be4de(0x3be)][_0x3be4de(0x41c)]['unitId']}}),this[_0x3be4de(0x2e5)][_0x3be4de(0x313)](),this[_0x3be4de(0x38d)]['complete']();}[_0x315216(0x359)](_0x320a9b){const _0x56c01e=_0x315216;_0x320a9b[_0x56c01e(0x291)]===_0x483212[_0x56c01e(0x422)][_0x56c01e(0x3b6)]?this[_0x56c01e(0x38e)](_0x320a9b):_0x320a9b[_0x56c01e(0x291)]===_0x483212[_0x56c01e(0x422)][_0x56c01e(0x2de)]&&this[_0x56c01e(0x468)](_0x320a9b);}[_0x315216(0x97)](_0x33d4ac){const _0x296105=_0x315216;this['_sessionStatus$'][_0x296105(0x407)](0x1),_0x33d4ac[_0x296105(0x325)]({'cmd':_0x483212[_0x296105(0x422)][_0x296105(0x3b6)],'routeKey':this[_0x296105(0x3be)][_0x296105(0x41c)][_0x296105(0x352)],'routeType':'','data':{'rooms':[{'roomID':this[_0x296105(0x3be)]['target'][_0x296105(0x352)]}]}});}[_0x315216(0x38e)](_0x435662){const _0x119c0a=_0x315216;var _0x5d7272;if(_0x435662[_0x119c0a(0xdf)]in _0xf16957){this[_0x119c0a(0x190)][_0x119c0a(0x436)]({'id':_0x119c0a(0x25b),'data':_0xf16957[_0x435662[_0x119c0a(0xdf)]]}),this[_0x119c0a(0x38d)][_0x119c0a(0x407)](0x2);return;}this[_0x119c0a(0x38d)][_0x119c0a(0x407)](0x3);let _0x13878c=(_0x5d7272=_0x435662[_0x119c0a(0x2a1)]['roomInfos'][this[_0x119c0a(0x3be)][_0x119c0a(0x41c)][_0x119c0a(0x352)]])==null?void 0x0:_0x5d7272[_0x119c0a(0x3c7)];_0x13878c&&_0x13878c[_0x119c0a(0x216)](_0x3fcab2=>this['_memberService'][_0x119c0a(0x1bc)](this[_0x119c0a(0x3be)]['localUnitId'],_0x3fcab2));}[_0x315216(0x468)](_0x37140f){const _0x1e1948=_0x315216;try{let _0x5d21b3=_0x533e59(this[_0x1e1948(0x3be)],_0x37140f['data']);for(let _0x4e5f01 of _0x5d21b3)switch(_0x4e5f01[_0x1e1948(0x32e)]){case _0x4524ba[_0x1e1948(0x1d7)]['USERS_ENTER']:this[_0x1e1948(0x40c)](_0x4e5f01),this[_0x1e1948(0x2e5)][_0x1e1948(0x407)](_0x4e5f01);break;case _0x4524ba[_0x1e1948(0x1d7)][_0x1e1948(0x29c)]:this['_onUserLeave'](_0x4e5f01),this['_event$'][_0x1e1948(0x407)](_0x4e5f01);break;case _0x4524ba[_0x1e1948(0x1d7)][_0x1e1948(0x299)]:case _0x4524ba[_0x1e1948(0x1d7)][_0x1e1948(0xab)]:this[_0x1e1948(0x3a1)](),this[_0x1e1948(0x2e5)][_0x1e1948(0x407)](_0x4e5f01);break;case _0x4524ba['CollaborationEvent'][_0x1e1948(0x2e9)]:this[_0x1e1948(0xb8)]['error']('save\x20fail\x20reason\x20is\x20'+JSON[_0x1e1948(0x302)](_0x4e5f01)),this[_0x1e1948(0x2e5)][_0x1e1948(0x407)](_0x4e5f01);break;case _0x4524ba[_0x1e1948(0x1d7)][_0x1e1948(0x374)]:this[_0x1e1948(0x292)]['onCommentUpdate'](_0x4e5f01[_0x1e1948(0x2a1)]),this[_0x1e1948(0x2e5)][_0x1e1948(0x407)](_0x4e5f01);break;default:this['_event$'][_0x1e1948(0x407)](_0x4e5f01);}}catch(_0x20a546){this[_0x1e1948(0xb8)]['error'](_0x20a546,_0x37140f);}}[_0x315216(0x40c)](_0xecdaeb){const _0x1fd051=_0x315216;this['_memberService']['updateMember'](this['_identity'][_0x1fd051(0x212)],_0xecdaeb[_0x1fd051(0x2a1)]);}['_onUserLeave'](_0x10d742){const _0x415abe=_0x315216;this[_0x415abe(0x3dd)]['removeMember'](this[_0x415abe(0x3be)]['localUnitId'],_0x10d742['data'][_0x415abe(0x471)]);}async['send'](_0x91f56,_0x4cfe82,_0x5f0955){const _0x58634=_0x315216;if(this['sessionStatus']!==0x3||!this[_0x58634(0x96)])throw Error(_0x58634(0x1b3));try{let _0x239750=_0x5c1479(this[_0x58634(0x3be)],_0x91f56);_0x239750[_0x58634(0x32e)]===_0x4524ba[_0x58634(0x1d7)][_0x58634(0x227)]&&this[_0x58634(0x45d)](_0x239750);let _0x18c9ff={'cmd':_0x483212[_0x58634(0x422)][_0x58634(0x9c)],'routeKey':this[_0x58634(0x3be)][_0x58634(0x41c)][_0x58634(0x352)],'routeType':'','data':_0x239750};return _0x5f0955===void 0x0?this[_0x58634(0x96)][_0x58634(0x325)](_0x18c9ff):this[_0x58634(0x96)]['send'](_0x18c9ff,_0x5f0955);}catch(_0x255905){this[_0x58634(0xb8)][_0x58634(0xd6)](_0x255905);}}[_0x315216(0x45d)](_0x436296){const _0x52da52=_0x315216;if(!this[_0x52da52(0x3a0)])return;let {data:_0xa1de06}=_0x436296,{unitID:_0xb7b79e,changeset:_0x2a44ad}=_0xa1de06,{mutations:_0x4c5d35,type:_0x411530}=_0x2a44ad;this[_0x52da52(0x248)]={'unitId':_0xb7b79e,'type':_0x411530,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x3dae32(_0x4c5d35)};}[_0x315216(0x3a1)](){const _0x5bcca0=_0x315216;this[_0x5bcca0(0x3a0)]&&(this['_telemetryInfo']?(this[_0x5bcca0(0x248)][_0x5bcca0(0x13c)]=performance[_0x5bcca0(0x3fe)](),this[_0x5bcca0(0x248)][_0x5bcca0(0x1ef)]=this[_0x5bcca0(0x248)][_0x5bcca0(0x13c)]-this[_0x5bcca0(0x248)]['startTime'],this[_0x5bcca0(0x3f2)][_0x5bcca0(0x428)](_0x5bcca0(0x482),this[_0x5bcca0(0x248)]),this[_0x5bcca0(0x248)]=null):this[_0x5bcca0(0xb8)][_0x5bcca0(0xd6)](_0x5bcca0(0x254),_0x5bcca0(0x2f2)));}[_0x315216(0x147)](){const _0x3e7225=_0x315216;this[_0x3e7225(0x248)]=null;}};_0x7f99f9=_0x5af442([_0x557b04(0x2,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x26f228)),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x3313da)),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x6,(0x0,_0x325f28['Optional'])(_0x15e7af[_0x315216(0x2eb)]))],_0x7f99f9);let _0x21eb59=(0x0,_0x325f28[_0x315216(0x1ac)])('collaboration-client.local-cache-service');function _0x5b750c(_0x1e8cfe,_0x144640){const _0x12cd34=_0x315216;return _0x144640===''||_0x144640==null?_0x12cd34(0x2d7)+_0x1e8cfe:_0x12cd34(0x2d7)+_0x1e8cfe+'-'+encodeURIComponent(_0x144640);}function _0x61d13b(_0x9688){const _0x27a861=_0x315216;let {unitID:_0x417c08,mutations:_0x3122a4}=_0x9688;return{'unitId':_0x417c08,'subUnitId':_0x3122a4[_0x27a861(0x250)]>0x0?_0x3122a4[0x0]['params'][_0x27a861(0x159)]:null};}let _0x5d0dca=class{constructor(_0x243b8d,_0x2e48d7,_0x3d57ab){const _0x483115=_0x315216;this['_injector']=_0x243b8d,this[_0x483115(0x466)]=_0x2e48d7,this[_0x483115(0x45c)]=_0x3d57ab;}['transformSelections'](_0x274cf8){const _0x169c78=_0x315216;var _0x126ec7,_0x5ef7de;let _0x5643a3=this[_0x169c78(0xe7)][_0x169c78(0x1df)](_0x29d3a5[_0x169c78(0xfb)]),{unitId:_0x1cee05,subUnitId:_0x1a01a3}=_0x61d13b(_0x274cf8),_0x40a64c=_0x5643a3==null?void 0x0:_0x5643a3['getWorkbookSelections'](_0x1cee05)[_0x169c78(0x13f)](),_0x1d6fc2=(_0x126ec7=this[_0x169c78(0x45c)][_0x169c78(0x33c)](_0x1cee05))==null||(_0x126ec7=_0x126ec7[_0x169c78(0x3d4)]())==null?void 0x0:_0x126ec7['getSheetId']();if(_0x40a64c[_0x169c78(0x250)]===0x0||!_0x1cee05||!_0x1a01a3)return;let _0x554886=[{'id':_0x29d3a5[_0x169c78(0x31d)]['id'],'params':{'unitId':_0x1cee05,'subUnitId':_0x1d6fc2,'selections':_0x325f28[_0x169c78(0x261)][_0x169c78(0x209)](_0x40a64c)}}],_0x5222ff=this[_0x169c78(0x466)][_0x169c78(0x425)](_0x274cf8,_0x554886);if(!(0x0,_0x4524ba[_0x169c78(0x2fd)])(_0x5222ff))throw _0x5222ff[_0x169c78(0xd6)];let _0x53fa9c=(_0x5ef7de=_0x5222ff['m2Prime'][0x0])==null||(_0x5ef7de=_0x5ef7de[_0x169c78(0x296)])==null?void 0x0:_0x5ef7de[_0x169c78(0x44f)];if(Array[_0x169c78(0x24d)](_0x53fa9c)&&_0x53fa9c[_0x169c78(0x250)]){if(_0x53fa9c['length']===_0x554886[0x0][_0x169c78(0x296)][_0x169c78(0x44f)][_0x169c78(0x250)]&&_0x53fa9c[_0x169c78(0x2c6)]((_0x3b0844,_0x2d70ce)=>_0x325f28['Rectangle']['equals'](_0x3b0844[_0x169c78(0x1e5)],_0x554886[0x0][_0x169c78(0x296)][_0x169c78(0x44f)][_0x2d70ce][_0x169c78(0x1e5)])))return;this[_0x169c78(0xe7)][_0x169c78(0x1df)](_0x325f28['ICommandService'])['executeCommand'](_0x29d3a5['SetSelectionsOperation']['id'],{'unitId':_0x1cee05,'subUnitId':_0x1d6fc2,'selections':_0x53fa9c});}}};_0x5d0dca=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x1,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0x2,_0x325f28[_0x315216(0xd2)])],_0x5d0dca);let _0x556ae0=(0x0,_0x325f28[_0x315216(0x1ac)])('univer-pro.collaboration-client.single-active-unit-service'),_0x7a50dc=function(_0x598815){const _0x564342=_0x315216;return _0x598815[_0x598815[_0x564342(0x3b4)]=0x0]=_0x564342(0x3b4),_0x598815[_0x598815[_0x564342(0x312)]=0x1]=_0x564342(0x312),_0x598815;}({});function _0x535e3e(_0x5c50a7){const _0xe65d1f=_0x315216;var _0x368a76;return!!((_0x368a76=_0x5c50a7[_0xe65d1f(0x296)])!=null&&_0x368a76['__splitChunk__']);}let _0x3a6f2f=new Set([_0x29d3a5['InsertSheetMutation']['id']]),_0x3f25c0=new Set([_0x2ee164[_0x315216(0x2df)]['id'],_0x2ee164[_0x315216(0x3ca)]['id'],_0x2ee164[_0x315216(0x2f8)]['id'],_0x2ee164[_0x315216(0x447)]['id']]);function _0x2a129c(_0x5be200,_0x993049=_0x3a6f2f){const _0x59610b=_0x315216;let _0x4a2e10=[];for(let _0x57e6e2 of _0x5be200){if(_0x993049['has'](_0x57e6e2['id'])||_0x535e3e(_0x57e6e2)){if(_0x4a2e10[_0x59610b(0x250)]>0x0)break;_0x4a2e10[_0x59610b(0x46e)](_0x57e6e2);break;}_0x4a2e10[_0x59610b(0x46e)](_0x57e6e2);}return _0x4a2e10;}function _0x3ea32d(_0x1458be,_0x4d5739,_0x2cd52a,_0x44660e,_0x1aa0d9){const _0x5a5299=_0x315216;let _0x14eaf6=_0x2a129c(_0x1458be),_0x541e13=_0x1aa0d9[_0x5a5299(0xbb)](),_0x2b4571=(_0x541e13==null?void 0x0:_0x541e13[_0x5a5299(0x3da)])??_0x5a5299(0x120),_0x12bb08=(_0x541e13==null?void 0x0:_0x541e13[_0x5a5299(0x471)])??_0x5a5299(0x120);return{'changeset':{'unitID':_0x4d5739,'type':(0x0,_0x4524ba[_0x5a5299(0x362)])(_0x2cd52a[_0x5a5299(0x371)](_0x4d5739)),'baseRev':_0x44660e['getCurrentRevOfUnit'](_0x4d5739),'revision':0x0,'userID':_0x2b4571,'memberID':_0x12bb08,'mutations':_0x14eaf6},'pendingMutations':_0x1458be[_0x5a5299(0x106)](_0x14eaf6[_0x5a5299(0x250)])};}let _0x548fbe=_0x3ea32d;function _0x5d8c7d(_0x3888c0,_0x134a47,_0x389b1a,_0x49c6f1,_0x53a789){const _0x1e25d3=_0x315216;let _0x49fd0f=_0x2a129c(_0x3888c0,_0x3f25c0),_0x7573c2=_0x53a789[_0x1e25d3(0xbb)](),_0x1b1cb4=(_0x7573c2==null?void 0x0:_0x7573c2[_0x1e25d3(0x3da)])??'unknown',_0x2a366f=(_0x7573c2==null?void 0x0:_0x7573c2[_0x1e25d3(0x471)])??_0x1e25d3(0x120);return{'changeset':{'unitID':_0x134a47,'type':(0x0,_0x4524ba[_0x1e25d3(0x362)])(_0x389b1a[_0x1e25d3(0x371)](_0x134a47)),'baseRev':_0x49c6f1['getCurrentRevOfUnit'](_0x134a47),'revision':0x0,'userID':_0x1b1cb4,'memberID':_0x2a366f,'mutations':_0x49fd0f},'pendingMutations':_0x3888c0['slice'](_0x49fd0f[_0x1e25d3(0x250)])};}function _0x102089(_0x434ad9,_0xb49a22,_0x3f58b7,_0xcb3d67,_0x52bcc6){const _0x441ad1=_0x315216;let _0x5dfd94=_0x434ad9[_0x441ad1(0x2cc)]((_0x53d428,_0x4282e1)=>{const _0xb4bd08=_0x441ad1;let _0x3d1909=_0x53d428[_0x53d428[_0xb4bd08(0x250)]-0x1],{id:_0x55522f}=_0x3d1909??{},{id:_0x1ab841,type:_0x1748e2}=_0x4282e1,_0x3d8772=_0x4282e1[_0xb4bd08(0x296)];if(_0x55522f&&_0x55522f!==_0x1ab841)throw Error(_0xb4bd08(0x30a)+_0x55522f+_0xb4bd08(0x348)+_0x1ab841+'.');if(!_0x3d1909)return[{'id':_0x1ab841,'type':_0x1748e2,'params':{'unitId':_0x3d8772[_0xb4bd08(0x352)],'textRanges':_0x3d8772[_0xb4bd08(0x1d0)],'actions':_0x3d8772[_0xb4bd08(0x3ab)]}}];let _0x5b1b4f=_0x3d1909['params'];return _0x1ad963(_0x5b1b4f,_0x3d8772)?[..._0x53d428['slice'](0x0,-0x1),{..._0x3d1909,'id':_0x1ab841,'type':_0x1748e2,'params':{'unitId':_0x3d8772[_0xb4bd08(0x352)],'textRanges':_0x3d8772[_0xb4bd08(0x1d0)],'actions':_0x325f28[_0xb4bd08(0x226)][_0xb4bd08(0x3a8)](_0x5b1b4f[_0xb4bd08(0x3ab)],_0x3d8772['actions'])}}]:[..._0x53d428,{'id':_0x1ab841,'type':_0x1748e2,'params':{'unitId':_0x3d8772['unitId'],'textRanges':_0x3d8772[_0xb4bd08(0x1d0)],'actions':_0x3d8772[_0xb4bd08(0x3ab)]}}];},[]),_0x5055dc=_0x52bcc6[_0x441ad1(0xbb)](),_0x4ccab6=(_0x5055dc==null?void 0x0:_0x5055dc['userID'])??_0x441ad1(0x120),_0x556ebb=(_0x5055dc==null?void 0x0:_0x5055dc[_0x441ad1(0x471)])??_0x441ad1(0x120);return{'changeset':{'unitID':_0xb49a22,'type':(0x0,_0x4524ba[_0x441ad1(0x362)])(_0x3f58b7[_0x441ad1(0x371)](_0xb49a22)),'baseRev':_0xcb3d67['getCurrentRevOfUnit'](_0xb49a22),'revision':0x0,'userID':_0x4ccab6,'memberID':_0x556ebb,'mutations':_0x5dfd94},'pendingMutations':_0x434ad9[_0x441ad1(0x106)](_0x434ad9[_0x441ad1(0x250)])};}function _0x1ad963(_0x2b07d3,_0x5163b9){const _0xc011e9=_0x315216;return!_0x2839aa(_0x2b07d3)&&!_0x2839aa(_0x5163b9)&&_0x5305f1(_0x2b07d3[_0xc011e9(0x3ab)],_0x5163b9[_0xc011e9(0x3ab)]);}function _0x2839aa(_0x3a8f60){const _0x2f8bb6=_0x315216;return _0x3a8f60[_0x2f8bb6(0x3c4)]!==void 0x0;}function _0x5305f1(_0x4f420f,_0x22bb29){return _0x1ad2cf(_0x4f420f)&&_0x1ad2cf(_0x22bb29)&&!_0x498a83(_0x4f420f)&&!_0x498a83(_0x22bb29)&&!_0x3ced51(_0x4f420f)&&!_0x3ced51(_0x22bb29);}function _0x1ad2cf(_0x4f6956){const _0x5a6098=_0x315216;return _0x4de3f5(_0x4f6956)['some'](_0x4ed88f=>_0x259145(_0x4ed88f)&&_0x4ed88f['et']===_0x5a6098(0x300));}function _0x3ced51(_0x411752){const _0x2ef23a=_0x315216;return _0x4de3f5(_0x411752)['some'](_0x4439db=>Array['isArray'](_0x4439db)||typeof _0x4439db==_0x2ef23a(0xd5)||typeof _0x4439db==_0x2ef23a(0x3b0));}function _0x498a83(_0x265d92){const _0x14da45=_0x315216;return _0x4de3f5(_0x265d92)[_0x14da45(0x142)](_0x5041b8=>!_0x259145(_0x5041b8)||_0x5041b8['et']!==_0x14da45(0x300)||!Array[_0x14da45(0x24d)](_0x5041b8['e'])?!0x1:_0x5041b8['e'][_0x14da45(0x142)](_0x192822=>!_0x259145(_0x192822)||!_0x259145(_0x192822[_0x14da45(0x3d5)])?!0x1:Object[_0x14da45(0x40b)][_0x14da45(0x266)][_0x14da45(0x20c)](_0x192822[_0x14da45(0x3d5)],'tables')||Object['prototype'][_0x14da45(0x266)][_0x14da45(0x20c)](_0x192822[_0x14da45(0x3d5)],_0x14da45(0xb6))||Object[_0x14da45(0x40b)][_0x14da45(0x266)][_0x14da45(0x20c)](_0x192822[_0x14da45(0x3d5)],_0x14da45(0x1f6))));}function _0x4de3f5(_0x173340){const _0x187451=_0x315216;if(!Array[_0x187451(0x24d)](_0x173340))return[];let _0x487532=_0x173340[_0x187451(0x3e1)](_0x187451(0x3d5))?_0x173340:_0x173340['find'](_0x295890=>Array[_0x187451(0x24d)](_0x295890)&&_0x295890['includes']('body'));if(!Array[_0x187451(0x24d)](_0x487532))return[];let _0x448e9b=_0x487532[_0x187451(0x304)](_0x187451(0x3d5));return _0x448e9b===-0x1?[]:_0x487532[_0x187451(0x106)](_0x448e9b+0x1);}function _0x259145(_0x299513){const _0x4bcc45=_0x315216;return typeof _0x299513=='object'&&!!_0x299513&&!Array[_0x4bcc45(0x24d)](_0x299513);}function _0x43988d(_0x429d9b,_0x36a595){const _0x12bca3=_0x315216;for(let _0x3e3b16 of _0x429d9b['mutations']){if(_0x3e3b16['id']!==_0x4524ba[_0x12bca3(0x10d)]['id'])continue;let _0x3e7d22=_0x3e3b16[_0x12bca3(0x296)];if((_0x3e7d22==null?void 0x0:_0x3e7d22['unitId'])===_0x36a595&&typeof _0x3e7d22[_0x12bca3(0x187)]==_0x12bca3(0x3b0))return{'unitId':_0x3e7d22['unitId'],'revision':_0x3e7d22[_0x12bca3(0x187)]};}return null;}var _0x2452b4,_0x38d979,_0x45930f,_0x2da8fc=class extends Error{constructor(_0x18da59){const _0x4086e3=_0x315216;super(_0x18da59 instanceof Error?_0x18da59[_0x4086e3(0x186)]:typeof _0x18da59==_0x4086e3(0xd5)?_0x18da59:_0x4086e3(0x17a)),this['applyError']=_0x18da59,this[_0x4086e3(0x163)]='RemoteChangesetApplyError';}},_0x2073a1=class extends Error{constructor(_0x33ce37){const _0x340aeb=_0x315216;var _0x1689ce;super(_0x340aeb(0x2e3)+((_0x1689ce=_0x33ce37[_0x340aeb(0x357)])==null?void 0x0:_0x1689ce[_0x340aeb(0x187)])+'.'),this[_0x340aeb(0xdd)]=_0x33ce37,this[_0x340aeb(0x163)]=_0x340aeb(0x36e);}};let _0x133dfa=function(_0x5c10b4){const _0x13fce1=_0x315216;return _0x5c10b4[_0x13fce1(0x242)]=_0x13fce1(0x131),_0x5c10b4[_0x13fce1(0x47e)]='synced',_0x5c10b4['PENDING']=_0x13fce1(0x47f),_0x5c10b4[_0x13fce1(0x28e)]='awaiting',_0x5c10b4['AWAITING_WITH_PENDING']=_0x13fce1(0x155),_0x5c10b4['FETCH_MISS']=_0x13fce1(0x39a),_0x5c10b4['CONFLICT']=_0x13fce1(0x151),_0x5c10b4[_0x13fce1(0x260)]=_0x13fce1(0x12e),_0x5c10b4;}({});var _0x34cd3b=class{constructor(_0x4d3160,_0x14332d,_0x1c59e0,_0x69b604,_0x3db01e,_0x2ad0a,_0x73c4f6,_0x26e342,_0x34ebd7){const _0x4ef89c=_0x315216;this[_0x4ef89c(0x154)]=_0x4d3160,this[_0x4ef89c(0x438)]=_0x14332d,this[_0x4ef89c(0x430)]=_0x3db01e,this[_0x4ef89c(0x337)]=_0x2ad0a,this[_0x4ef89c(0xea)]=_0x73c4f6,this[_0x4ef89c(0x1e2)]=_0x26e342,this[_0x4ef89c(0x249)]=_0x34ebd7,_0x4da1f9(this,'_awaitingChangeset',null),_0x4da1f9(this,_0x4ef89c(0x45e),[]),this[_0x4ef89c(0x208)]=_0x1c59e0,this[_0x4ef89c(0x45e)]=_0x69b604;}['hasLocalChanges'](){const _0x3b9962=_0x315216;return!!this[_0x3b9962(0x208)]||this[_0x3b9962(0x45e)]['length']>0x0;}[_0x315216(0x15a)](){}['_unsyncedMutationCount'](){const _0x301c79=_0x315216;var _0x559bdf;return(((_0x559bdf=this[_0x301c79(0x208)])==null?void 0x0:_0x559bdf['mutations'][_0x301c79(0x250)])??0x0)+this[_0x301c79(0x45e)][_0x301c79(0x250)];}[_0x315216(0xa5)](_0x22e041){const _0x3a3cbc=_0x315216;return new _0x18c848(_0x22e041[_0x3a3cbc(0x3d0)]??0x0,(_0x1e1a1e,_0xa5b3ce)=>this[_0x3a3cbc(0x430)][_0x3a3cbc(0x37a)](_0x1e1a1e,_0xa5b3ce),{...this[_0x3a3cbc(0x430)][_0x3a3cbc(0x238)],'onResend':_0x424352=>{const _0x2fee2a=_0x3a3cbc;var _0xdd4c50,_0x29d190;return(_0xdd4c50=(_0x29d190=this[_0x2fee2a(0x430)])['onChangesetResend'])==null?void 0x0:_0xdd4c50['call'](_0x29d190,_0x424352);}});}[_0x315216(0x3ea)](_0x38b99d){const _0x3a6c28=_0x315216;if(this[_0x3a6c28(0x317)](_0x38b99d))return _0x3a6c28(0x14d);if(_0x43988d(_0x38b99d,this[_0x3a6c28(0x154)]))return _0x3a6c28(0x2e0);let _0x9afbf8=this[_0x3a6c28(0x384)]();return _0x38b99d[_0x3a6c28(0x187)]<=_0x9afbf8?_0x3a6c28(0x475):_0x38b99d[_0x3a6c28(0x187)]>_0x9afbf8+0x1?_0x3a6c28(0x28b):_0x3a6c28(0x2dc);}[_0x315216(0x43d)](_0x5f0bca){const _0x5e41ef=_0x315216;let _0x37811b=this[_0x5e41ef(0x384)]();return _0x5f0bca[_0x5e41ef(0x187)]<=_0x37811b?this['_isAckOfAwaitingChangeset'](_0x5f0bca)?_0x5e41ef(0x240):'stale':_0x5f0bca[_0x5e41ef(0x187)]>_0x37811b+0x1?_0x5e41ef(0x28b):_0x5e41ef(0x407);}[_0x315216(0x401)](_0x1ade49,_0x42cfdf){const _0x29d7bc=_0x315216;switch(this[_0x29d7bc(0x3ea)](_0x1ade49)){case _0x29d7bc(0x14d):return this['onRemoteAck'](_0x1ade49);case _0x29d7bc(0x2e0):return _0x42cfdf[_0x29d7bc(0x18b)](_0x1ade49);case'applied':return this;case'missing':return this[_0x29d7bc(0x457)](_0x1ade49['revision']),_0x42cfdf[_0x29d7bc(0x456)](_0x1ade49);case'apply':return _0x42cfdf[_0x29d7bc(0x15f)](_0x1ade49);}}[_0x315216(0xdc)](_0x165d36){const _0x5c1d67=_0x315216;return{'reason':_0x5c1d67(0x2e0),'revert':{'revision':_0x43988d(_0x165d36,this[_0x5c1d67(0x154)])['revision'],'memberId':_0x165d36['memberID'],'userId':_0x165d36[_0x5c1d67(0x3da)]}};}[_0x315216(0x40a)](_0x27d931){const _0x17a5d8=_0x315216;return{'reason':_0x27d931 instanceof _0x2da8fc?_0x17a5d8(0x193):_0x17a5d8(0x196),'message':_0x27d931 instanceof Error?_0x27d931[_0x17a5d8(0x186)]:typeof _0x27d931==_0x17a5d8(0xd5)?_0x27d931:void 0x0};}[_0x315216(0x420)](_0x4c26d1){const _0x31b687=_0x315216;return{'reason':_0x4c26d1!=null&&_0x4c26d1[_0x31b687(0x1d5)]?_0x31b687(0x409):'changeset_rejected'};}[_0x315216(0x457)](_0x32098f){const _0x5976a7=_0x315216;this[_0x5976a7(0x430)]['onMissingChangesets']({'from':this['_getCurrentRevision'](),'to':_0x32098f-0x1});}[_0x315216(0x1d6)](_0x1823f1){const _0x2a59b6=_0x315216;this['_undoRedoService'][_0x2a59b6(0x474)](this[_0x2a59b6(0x154)],_0x1823f1);}[_0x315216(0x224)](_0xd2c947){const _0x202470=_0x315216;var _0x15af0a,_0x4353ec;(_0x15af0a=(_0x4353ec=this['_handler'])['onTransformSelections'])==null||_0x15af0a[_0x202470(0x20c)](_0x4353ec,_0xd2c947);}['_prepareTransformSelections'](_0x447134){const _0x3f25f6=_0x315216;var _0x23b6b3,_0x2a9469;return((_0x23b6b3=(_0x2a9469=this['_handler'])[_0x3f25f6(0x319)])==null?void 0x0:_0x23b6b3[_0x3f25f6(0x20c)](_0x2a9469,_0x447134))??null;}[_0x315216(0x452)](_0x58813c){const _0xdc9139=_0x315216;var _0x487fa9,_0x1d370e;return(_0x487fa9=(_0x1d370e=this[_0xdc9139(0x430)])['onTransformIME'])==null?void 0x0:_0x487fa9[_0xdc9139(0x20c)](_0x1d370e,_0x58813c);}[_0x315216(0x429)](_0x3cbba2){const _0x305f7f=_0x315216;var _0x4fda34,_0x14e9f9;return(_0x4fda34=(_0x14e9f9=this[_0x305f7f(0x430)])['onTransformState'])==null?void 0x0:_0x4fda34[_0x305f7f(0x20c)](_0x14e9f9,_0x3cbba2);}['_transformRemoteChangesetByIMECache'](_0x466180){const _0x2c005f=_0x315216;var _0x21564e,_0x450563;return((_0x21564e=(_0x450563=this[_0x2c005f(0x430)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x21564e[_0x2c005f(0x20c)](_0x450563,_0x466180))??_0x466180;}[_0x315216(0x280)](_0x38e7b2){const _0xc8b7fc=_0x315216;var _0x181536,_0x268533;return((_0x181536=(_0x268533=this[_0xc8b7fc(0x430)])[_0xc8b7fc(0x40d)])==null?void 0x0:_0x181536[_0xc8b7fc(0x20c)](_0x268533,_0x38e7b2))??_0x38e7b2;}[_0x315216(0x342)](_0xd3f2c3){const _0xa2565c=_0x315216;if(this[_0xa2565c(0x438)]===_0x325f28['UniverInstanceType'][_0xa2565c(0x2a4)]){let {unitID:_0x75228a,mutations:_0x2d3573,memberID:_0x31229e}=_0xd3f2c3,_0xbd0a9a=_0x2d3573[_0xa2565c(0x250)]>0x0?_0x2d3573[0x0][_0xa2565c(0x296)][_0xa2565c(0x1d0)]:[];if(Array[_0xa2565c(0x24d)](_0xbd0a9a)&&_0xbd0a9a['length']>0x0){var _0xb0a76f,_0x536f6f;(_0xb0a76f=(_0x536f6f=this['_handler'])[_0xa2565c(0x464)])==null||_0xb0a76f[_0xa2565c(0x20c)](_0x536f6f,{'unitID':_0x75228a,'memberID':_0x31229e,'textRanges':_0xbd0a9a});}}}[_0x315216(0x3e8)](){const _0x52b5ed=_0x315216;var _0x51d9e9;(_0x51d9e9=this[_0x52b5ed(0x249)])==null||_0x51d9e9['updateOfflineData'](this[_0x52b5ed(0x154)],this['type'],this[_0x52b5ed(0x208)],this[_0x52b5ed(0x45e)]);}[_0x315216(0x384)](){const _0x9bc6d7=_0x315216;return this[_0x9bc6d7(0x1e2)][_0x9bc6d7(0x2bd)](this['unitID']);}['_isEchoedAwaitingChangeset'](_0x4b1dfe){const _0x3aea35=_0x315216;let _0x5987d4=this['_awaitingChangeset'];return!_0x5987d4||!_0x5987d4[_0x3aea35(0x402)]||_0x5987d4[_0x3aea35(0x3d0)]===null||_0x5987d4[_0x3aea35(0x3d0)]===void 0x0?!0x1:_0x4b1dfe[_0x3aea35(0x154)]===_0x5987d4[_0x3aea35(0x154)]&&_0x4b1dfe[_0x3aea35(0x402)]===_0x5987d4[_0x3aea35(0x402)]&&_0x4b1dfe[_0x3aea35(0x3d0)]===_0x5987d4['reqId'];}[_0x315216(0x288)](_0x56ce29){const _0x3051e0=_0x315216;let _0x5ecc3c=this[_0x3051e0(0x208)];return!(_0x5ecc3c!=null&&_0x5ecc3c[_0x3051e0(0x402)])||_0x5ecc3c[_0x3051e0(0x3d0)]==null||!_0x56ce29['sid']||_0x56ce29[_0x3051e0(0x3d0)]==null?!0x1:_0x56ce29[_0x3051e0(0x402)]===_0x5ecc3c['sid']&&_0x56ce29[_0x3051e0(0x3d0)]===_0x5ecc3c[_0x3051e0(0x3d0)];}[_0x315216(0x290)](){const _0x542354=_0x315216;this[_0x542354(0x1e2)]['incrementRevOfUnit'](this[_0x542354(0x154)]);}['_executeRemoteChangeset'](_0x102409){const _0x5df526=_0x315216;let _0x351ce4=this['_transformRemoteChangesetByIMECache'](_0x102409);_0x351ce4=this[_0x5df526(0x280)](_0x351ce4);let _0x2c6ccc=this['_prepareTransformSelections'](_0x351ce4),_0x24c4e3=(0x0,_0x325f28[_0x5df526(0x26e)])(_0x351ce4[_0x5df526(0x383)],this[_0x5df526(0x337)],{'fromCollab':!0x0});if(!_0x24c4e3['result'])throw _0x2c6ccc==null||_0x2c6ccc[_0x5df526(0x448)](),new _0x2da8fc(_0x24c4e3[_0x5df526(0xd6)]);_0x2c6ccc==null||_0x2c6ccc[_0x5df526(0x366)](),this[_0x5df526(0x452)](_0x351ce4),this[_0x5df526(0x429)](_0x351ce4),this[_0x5df526(0x1d6)](_0x102409),this[_0x5df526(0x224)](_0x351ce4),this[_0x5df526(0x342)](_0x351ce4),this[_0x5df526(0x290)]();}};let _0x30f87e=class extends _0x34cd3b{constructor(_0x43786d,_0x3e15de,_0x24a3eb,_0x482ca7,_0x5cad17,_0x10fc61,_0x1e6aed,_0x4a7b51,_0x7073dd,_0x1bdd5d){const _0x39728c=_0x315216;super(_0x43786d,_0x3e15de,null,[],_0x24a3eb,_0x1e6aed,_0x10fc61,_0x482ca7,_0x1bdd5d),this[_0x39728c(0xe7)]=_0x5cad17,this[_0x39728c(0xb8)]=_0x4a7b51,this[_0x39728c(0x466)]=_0x7073dd,this[_0x39728c(0x3a5)]=_0x1bdd5d,_0x4da1f9(this,_0x39728c(0x326),_0x39728c(0x27b));}['appendMutation'](_0x38b5dd){const _0x3f7ad9=_0x315216;let _0x4d2600=this[_0x3f7ad9(0xe7)][_0x3f7ad9(0x40e)](_0x2f13d7,this[_0x3f7ad9(0x154)],this[_0x3f7ad9(0x438)],[_0x38b5dd],this['_handler']);return _0x4d2600['_schedule'](),_0x4d2600[_0x3f7ad9(0x3e8)](),_0x4d2600;}['onRemoteChangeset'](_0x5f0820){const _0x1f2ec0=_0x315216;return this[_0x1f2ec0(0x401)](_0x5f0820,{'onMissing':()=>this['_injector'][_0x1f2ec0(0x40e)](_0x157fa1,this[_0x1f2ec0(0x154)],this['type'],null,[],null,[_0x5f0820],this['_handler'],void 0x0),'onApply':()=>this[_0x1f2ec0(0x411)](_0x5f0820),'onRemoteRevert':()=>this[_0x1f2ec0(0x412)](this['_remoteRevertInfo'](_0x5f0820))});}[_0x315216(0x411)](_0x44fb1c){const _0x326b21=_0x315216;try{let _0x1c6cc6=this[_0x326b21(0x466)][_0x326b21(0x425)](_0x44fb1c,[_0x4524ba[_0x326b21(0x3d8)]]);if((0x0,_0x4524ba['isTransformMutationsWithChangesetSuccess'])(_0x1c6cc6)){let {c1Prime:_0x4384db}=_0x1c6cc6;return this[_0x326b21(0x18f)](_0x4384db),this;}throw _0x1c6cc6[_0x326b21(0xd6)];}catch(_0x28f0e5){return this[_0x326b21(0xb8)]['error'](_0x28f0e5),this[_0x326b21(0x412)](this['_conflictInfoFromError'](_0x28f0e5));}}['_onConflict'](_0x450b3a){const _0x144f04=_0x315216;return this[_0x144f04(0xe7)][_0x144f04(0x40e)](_0x3a7d93,this[_0x144f04(0x154)],this[_0x144f04(0x438)],null,[],this[_0x144f04(0x430)],_0x450b3a);}['onRemoteAck'](_0x149953){if(this['_classifyAck'](_0x149953)==='stale')return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x39245f=_0x315216;throw Error(_0x39245f(0x9f));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x278b97=_0x315216;return this['_injector']['createInstance'](_0x224cab,this[_0x278b97(0x154)],this[_0x278b97(0x438)],null,[],this[_0x278b97(0x430)]);}[_0x315216(0x162)](){return this;}[_0x315216(0x3ba)](){const _0x2f0816=_0x315216;throw Error(_0x2f0816(0x111));}[_0x315216(0x1ec)](){const _0x576d9a=_0x315216;let _0x51365c=this[_0x576d9a(0x1e2)]['getCurrentRevOfUnit'](this['unitID']);return this[_0x576d9a(0x430)][_0x576d9a(0x3d2)]({'from':_0x51365c,'to':0x0}),this[_0x576d9a(0xe7)][_0x576d9a(0x40e)](_0x157fa1,this[_0x576d9a(0x154)],this['type'],null,[],null,[],this[_0x576d9a(0x430)],void 0x0);}};_0x30f87e=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x5,_0x325f28[_0x315216(0x3e6)]),_0x557b04(0x6,_0x325f28[_0x315216(0x158)]),_0x557b04(0x7,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x8,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0x9,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x30f87e);let _0x2f13d7=_0x2452b4=class extends _0x34cd3b{constructor(_0x319083,_0x3ae0aa,_0x199e8c,_0x450c8c,_0x2d2cab,_0x1b503d,_0x277685,_0xd389e1,_0x3e40f9,_0x1d73cc,_0x32b3b1,_0x2b16ba,_0x50e9be,_0x304be6){const _0x6fcfa9=_0x315216;super(_0x319083,_0x3ae0aa,null,_0x199e8c,_0x450c8c,_0x3e40f9,_0x50e9be,_0x1b503d,_0x304be6),this['_injector']=_0x2d2cab,this[_0x6fcfa9(0x413)]=_0x277685,this[_0x6fcfa9(0xb8)]=_0xd389e1,this[_0x6fcfa9(0x1ed)]=_0x1d73cc,this[_0x6fcfa9(0x466)]=_0x32b3b1,this[_0x6fcfa9(0x23b)]=_0x2b16ba,_0x4da1f9(this,_0x6fcfa9(0x326),'pending'),_0x4da1f9(this,_0x6fcfa9(0x1a7),null),_0x4da1f9(this,_0x6fcfa9(0x2f6),null);}[_0x315216(0x2d0)](_0x6c4250){const _0x4811a4=_0x315216;return this['_pendingMutations'][_0x4811a4(0x46e)](_0x6c4250),this[_0x4811a4(0x3e8)](),this;}['onRemoteChangeset'](_0x517a47){const _0x37abb0=_0x315216;return this['_dispatchRemoteChangeset'](_0x517a47,{'onMissing':()=>(this[_0x37abb0(0x9b)](),this[_0x37abb0(0xe7)][_0x37abb0(0x40e)](_0x157fa1,this[_0x37abb0(0x154)],this[_0x37abb0(0x438)],null,this[_0x37abb0(0x45e)],null,[_0x517a47],this[_0x37abb0(0x430)],void 0x0)),'onApply':()=>this[_0x37abb0(0x411)](_0x517a47),'onRemoteRevert':()=>this[_0x37abb0(0x412)](this[_0x37abb0(0xdc)](_0x517a47))});}[_0x315216(0x411)](_0x3286f0){const _0x1abfda=_0x315216;try{let _0x295045=this[_0x1abfda(0x466)][_0x1abfda(0x425)](_0x3286f0,this[_0x1abfda(0x45e)]);if((0x0,_0x4524ba[_0x1abfda(0x2fd)])(_0x295045)){let {c1Prime:_0x728896,m2Prime:_0x125dd4}=_0x295045;this['_executeRemoteChangeset'](_0x728896);let _0x268ba9=this[_0x1abfda(0xe7)][_0x1abfda(0x40e)](_0x2452b4,this[_0x1abfda(0x154)],this['type'],_0x125dd4,this[_0x1abfda(0x430)]);_0x268ba9[_0x1abfda(0x3e8)](),this['_clearScheduledTask']();let _0x39d2e7=new Date()['getTime'](),_0x18ed1a=this[_0x1abfda(0x1a7)]?Math[_0x1abfda(0x30e)](this[_0x1abfda(0x1a7)]-_0x39d2e7,0x0):this[_0x1abfda(0xda)]();return _0x268ba9['_schedule'](_0x18ed1a),_0x268ba9;}throw _0x295045['error'];}catch(_0x31e2d0){return this[_0x1abfda(0xb8)][_0x1abfda(0xd6)](_0x31e2d0),this[_0x1abfda(0x412)](this['_conflictInfoFromError'](_0x31e2d0));}}['onRemoteAck'](_0x417db3){const _0x42be15=_0x315216;if(this[_0x42be15(0x43d)](_0x417db3)===_0x42be15(0x47c))return this;throw Error(_0x42be15(0x3f4));}[_0x315216(0x2ba)](){const _0x2f8891=_0x315216;throw Error(_0x2f8891(0x1d3));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x577ae2=_0x315216;return this['_clearScheduledTask'](),this[_0x577ae2(0xe7)][_0x577ae2(0x40e)](_0x224cab,this['unitID'],this['type'],null,this[_0x577ae2(0x45e)],this[_0x577ae2(0x430)]);}['toggleOnline'](){return this;}[_0x315216(0x122)](_0x226472){const _0x3049a9=_0x315216;let _0x5af2ed=_0x226472??this[_0x3049a9(0xda)]();this['_scheduleCompleteTimestamp']=new Date()[_0x3049a9(0x2e4)]()+_0x5af2ed,this['_sendingTimer']=setTimeout(()=>{const _0x2906a2=_0x3049a9;this[_0x2906a2(0x9b)]();let _0x271f48=null;switch(this[_0x2906a2(0x438)]){case _0x325f28[_0x2906a2(0x41f)][_0x2906a2(0x33b)]:_0x271f48=_0x3ea32d(this['_pendingMutations'],this[_0x2906a2(0x154)],this[_0x2906a2(0x23b)],this[_0x2906a2(0x1e2)],this[_0x2906a2(0x413)]);break;case _0x325f28[_0x2906a2(0x41f)][_0x2906a2(0x2a4)]:_0x271f48=this[_0x2906a2(0x45e)][_0x2906a2(0x2c6)](_0x40da23=>_0x40da23['id']===_0x285e73[_0x2906a2(0x1fb)]['id'])?_0x102089(this[_0x2906a2(0x45e)],this[_0x2906a2(0x154)],this['_univerInstanceService'],this[_0x2906a2(0x1e2)],this[_0x2906a2(0x413)]):_0x3ea32d(this[_0x2906a2(0x45e)],this[_0x2906a2(0x154)],this[_0x2906a2(0x23b)],this['_revisionService'],this[_0x2906a2(0x413)]);break;case _0x325f28[_0x2906a2(0x41f)][_0x2906a2(0x1c3)]:_0x271f48=_0x5d8c7d(this['_pendingMutations'],this[_0x2906a2(0x154)],this[_0x2906a2(0x23b)],this[_0x2906a2(0x1e2)],this['_userManagerService']);break;case _0x325f28[_0x2906a2(0x41f)][_0x2906a2(0x45f)]:_0x271f48=_0x548fbe(this[_0x2906a2(0x45e)],this['unitID'],this['_univerInstanceService'],this[_0x2906a2(0x1e2)],this[_0x2906a2(0x413)]);break;case _0x325f28['UniverInstanceType'][_0x2906a2(0x3a4)]:_0x271f48=_0x3ea32d(this[_0x2906a2(0x45e)],this[_0x2906a2(0x154)],this[_0x2906a2(0x23b)],this[_0x2906a2(0x1e2)],this[_0x2906a2(0x413)]);break;case _0x325f28[_0x2906a2(0x41f)][_0x2906a2(0xc9)]:_0x271f48=_0x3ea32d(this[_0x2906a2(0x45e)],this['unitID'],this[_0x2906a2(0x23b)],this[_0x2906a2(0x1e2)],this['_userManagerService']);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x2906a2(0x373));}let {changeset:_0x4ccdd4,pendingMutations:_0x5a3adc}=_0x271f48,_0x514684=this[_0x2906a2(0xa5)](_0x4ccdd4);_0x514684[_0x2906a2(0x2ac)](_0x4ccdd4,_0x4ccdd4[_0x2906a2(0x383)]['length']+_0x5a3adc['length']);let _0x5677bd=_0x5a3adc[_0x2906a2(0x250)]?this[_0x2906a2(0xe7)]['createInstance'](_0x432f81,this[_0x2906a2(0x154)],this[_0x2906a2(0x438)],_0x4ccdd4,_0x5a3adc,this['_handler'],_0x514684):this[_0x2906a2(0xe7)][_0x2906a2(0x40e)](_0x299420,this[_0x2906a2(0x154)],this['type'],_0x4ccdd4,this['_handler'],_0x514684);_0x5677bd[_0x2906a2(0x3e8)](),this[_0x2906a2(0x430)][_0x2906a2(0x320)](this,_0x5677bd);},_0x5af2ed);}[_0x315216(0xda)](){const _0x43e7e5=_0x315216;let _0x4cccd8=this['_configService']['getConfig'](_0x3a344c);return(_0x4cccd8==null?void 0x0:_0x4cccd8[_0x43e7e5(0x473)])??0x7d0;}[_0x315216(0x3ba)](){const _0x2ed211=_0x315216;throw Error(_0x2ed211(0x399));}[_0x315216(0x9b)](){const _0x2e04bf=_0x315216;this[_0x2e04bf(0x2f6)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x2e04bf(0x2f6)]=null);}[_0x315216(0x15a)](){const _0x256c88=_0x315216;this[_0x256c88(0x9b)]();}['_onConflict'](_0x200fcb){const _0x1359b9=_0x315216;return this['_clearScheduledTask'](),this['_injector'][_0x1359b9(0x40e)](_0x3a7d93,this['unitID'],this['type'],null,this[_0x1359b9(0x45e)],this[_0x1359b9(0x430)],_0x200fcb);}};_0x2f13d7=_0x2452b4=_0x5af442([_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['Injector'])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x6,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x1b9)])),_0x557b04(0x7,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x8,_0x325f28[_0x315216(0x158)]),_0x557b04(0x9,_0x325f28['IConfigService']),_0x557b04(0xa,_0x4524ba['ITransformService']),_0x557b04(0xb,_0x325f28[_0x315216(0xd2)]),_0x557b04(0xc,_0x325f28[_0x315216(0x3e6)]),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x2f13d7);let _0x299420=_0x38d979=class extends _0x34cd3b{constructor(_0x481e9f,_0x31cff2,_0x4a4153,_0x18d521,_0x250834,_0x3c7b32,_0x21f51e,_0x1c7d98,_0x314a4c,_0x476ab9,_0x17561a,_0x33022b){const _0x311168=_0x315216;super(_0x481e9f,_0x31cff2,_0x4a4153,[],_0x18d521,_0x1c7d98,_0x17561a,_0x21f51e,_0x33022b),this[_0x311168(0xe7)]=_0x3c7b32,this[_0x311168(0xb8)]=_0x314a4c,this[_0x311168(0x466)]=_0x476ab9,_0x4da1f9(this,'status',_0x311168(0x2e7)),_0x4da1f9(this,'_submitter',void 0x0),this[_0x311168(0x1a8)]=_0x250834??this['_createChangesetSubmitter'](_0x4a4153),this['_submitter'][_0x311168(0x3cf)](()=>({'changeset':this['_awaitingChangeset'],'unsyncedMutationCount':this['_unsyncedMutationCount']()})),_0x250834||this[_0x311168(0x1a8)][_0x311168(0x431)]();}[_0x315216(0x2d0)](_0x836d95){const _0x2c98f5=_0x315216;this[_0x2c98f5(0x236)]();let _0x2fbf5d=this[_0x2c98f5(0xe7)]['createInstance'](_0x432f81,this[_0x2c98f5(0x154)],this[_0x2c98f5(0x438)],this[_0x2c98f5(0x208)],[_0x836d95],this[_0x2c98f5(0x430)],this[_0x2c98f5(0x1a8)]);return _0x2fbf5d[_0x2c98f5(0x3e8)](),_0x2fbf5d;}[_0x315216(0xee)](_0x151951){const _0x1af2bd=_0x315216;return this[_0x1af2bd(0x401)](_0x151951,{'onMissing':()=>(this['_detachSubmitter'](),this[_0x1af2bd(0xe7)][_0x1af2bd(0x40e)](_0x157fa1,this[_0x1af2bd(0x154)],this[_0x1af2bd(0x438)],this['_awaitingChangeset'],[],null,[_0x151951],this['_handler'],this[_0x1af2bd(0x1a8)])),'onApply':()=>this['_transformAndApply'](_0x151951),'onRemoteRevert':()=>this['_onConflict'](this[_0x1af2bd(0xdc)](_0x151951))});}[_0x315216(0x411)](_0x1372f9){const _0x57bef1=_0x315216;try{let _0x41c887=this['_transformService']['transformChangesets']([_0x1372f9],[this[_0x57bef1(0x208)]],!0x1);if((0x0,_0x4524ba[_0x57bef1(0x38c)])(_0x41c887)){let {c1Prime:_0x564a8a,c2Prime:_0x44adb5}=_0x41c887;this['_executeRemoteChangeset'](_0x564a8a[0x0]),_0x44adb5[0x0][_0x57bef1(0x1d8)]=this[_0x57bef1(0x384)](),this[_0x57bef1(0x236)]();let _0x5249da=this['_injector'][_0x57bef1(0x40e)](_0x38d979,this[_0x57bef1(0x154)],this['type'],_0x44adb5[0x0],this[_0x57bef1(0x430)],this[_0x57bef1(0x1a8)]);return _0x5249da[_0x57bef1(0x3e8)](),_0x5249da;}throw _0x41c887['error'];}catch(_0x503071){return this[_0x57bef1(0xb8)][_0x57bef1(0xd6)](_0x503071),this[_0x57bef1(0x412)](this['_conflictInfoFromError'](_0x503071));}}[_0x315216(0x144)](_0x55bb68){const _0x53bb30=_0x315216;switch(this[_0x53bb30(0x43d)](_0x55bb68)){case _0x53bb30(0x47c):return this[_0x53bb30(0xb8)][_0x53bb30(0x3e5)]('[AwaitingState]',_0x53bb30(0x29b)+_0x55bb68[_0x53bb30(0x187)]+'\x20at\x20revision\x20'+this[_0x53bb30(0x384)]()+'.'),this;case _0x53bb30(0x240):return this[_0x53bb30(0x1a8)][_0x53bb30(0x15a)](),this[_0x53bb30(0x354)]();case _0x53bb30(0x28b):return this['_submitter']['dispose'](),this[_0x53bb30(0x457)](_0x55bb68[_0x53bb30(0x187)]),this[_0x53bb30(0xe7)][_0x53bb30(0x40e)](_0x157fa1,this[_0x53bb30(0x154)],this[_0x53bb30(0x438)],this[_0x53bb30(0x208)],[],_0x55bb68[_0x53bb30(0x187)],[],this[_0x53bb30(0x430)],void 0x0);case _0x53bb30(0x407):return this[_0x53bb30(0x1a8)]['dispose'](),this[_0x53bb30(0x290)](),this['_toSynced']();}}['_toSynced'](){const _0x3f9b04=_0x315216;let _0x465970=this[_0x3f9b04(0xe7)][_0x3f9b04(0x40e)](_0x30f87e,this[_0x3f9b04(0x154)],this[_0x3f9b04(0x438)],this['_handler']);return _0x465970['_updateLocalCache'](),_0x465970;}[_0x315216(0x2ba)](_0x2db33f){const _0x3a23dc=_0x315216;return this[_0x3a23dc(0x412)](this['_rejectionInfo'](_0x2db33f));}[_0x315216(0x3bf)](_0x4aa12b){const _0x4cb843=_0x315216;var _0x3a3684;return _0x4aa12b[_0x4cb843(0x3d0)]===((_0x3a3684=this[_0x4cb843(0x208)])==null?void 0x0:_0x3a3684['reqId'])&&this[_0x4cb843(0x1a8)][_0x4cb843(0x37d)](),this;}[_0x315216(0x3fc)](){const _0x18f8ae=_0x315216;return this['_submitter'][_0x18f8ae(0x15a)](),this[_0x18f8ae(0xe7)][_0x18f8ae(0x40e)](_0x224cab,this[_0x18f8ae(0x154)],this[_0x18f8ae(0x438)],this[_0x18f8ae(0x208)],[],this[_0x18f8ae(0x430)]);}[_0x315216(0x162)](){return this;}['resend'](_0xfdccac='reconnect'){const _0x5b01a2=_0x315216;this[_0x5b01a2(0x1a8)][_0x5b01a2(0x2ac)](this[_0x5b01a2(0x208)],this[_0x5b01a2(0x126)](),_0xfdccac);}[_0x315216(0x412)](_0x3bbc97){const _0xd76e22=_0x315216;return this[_0xd76e22(0x1a8)]['dispose'](),this[_0xd76e22(0xe7)][_0xd76e22(0x40e)](_0x3a7d93,this[_0xd76e22(0x154)],this[_0xd76e22(0x438)],this[_0xd76e22(0x208)],[],this['_handler'],_0x3bbc97);}[_0x315216(0x15a)](){const _0x25ab17=_0x315216;this[_0x25ab17(0x1a8)]['dispose']();}['_detachSubmitter'](){const _0x85c3e5=_0x315216;this['_submitter'][_0x85c3e5(0x1c8)]();}};_0x299420=_0x38d979=_0x5af442([_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,_0x325f28[_0x315216(0x158)]),_0x557b04(0x8,_0x325f28['ILogService']),_0x557b04(0x9,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0xa,_0x325f28[_0x315216(0x3e6)]),_0x557b04(0xb,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x299420);let _0x432f81=_0x45930f=class extends _0x34cd3b{constructor(_0x335f5c,_0xd6fc5f,_0x50c574,_0x53eb3e,_0x27f13e,_0x23c87f,_0x23e2ce,_0x2f6d38,_0x1c10b3,_0x55571f,_0x19d261,_0x55156e,_0xbe951f){const _0x39430d=_0x315216;super(_0x335f5c,_0xd6fc5f,_0x50c574,_0x53eb3e,_0x27f13e,_0x1c10b3,_0x55156e,_0x2f6d38,_0xbe951f),this[_0x39430d(0xe7)]=_0x23e2ce,this[_0x39430d(0xb8)]=_0x55571f,this['_transformService']=_0x19d261,this[_0x39430d(0x3a5)]=_0xbe951f,_0x4da1f9(this,_0x39430d(0x326),_0x39430d(0x155)),_0x4da1f9(this,'_submitter',void 0x0),this[_0x39430d(0x1a8)]=_0x23c87f??this[_0x39430d(0xa5)](_0x50c574),this[_0x39430d(0x1a8)]['bind'](()=>({'changeset':this[_0x39430d(0x208)],'unsyncedMutationCount':this[_0x39430d(0x126)]()})),_0x23c87f||this[_0x39430d(0x1a8)][_0x39430d(0x431)]();}[_0x315216(0x2d0)](_0x22af20){const _0x2b461a=_0x315216;return this[_0x2b461a(0x45e)][_0x2b461a(0x46e)](_0x22af20),this['_updateLocalCache'](),this;}[_0x315216(0xee)](_0x1618c0){const _0x195a4a=_0x315216;return this[_0x195a4a(0x401)](_0x1618c0,{'onMissing':()=>(this[_0x195a4a(0x236)](),this[_0x195a4a(0xe7)][_0x195a4a(0x40e)](_0x157fa1,this['unitID'],this[_0x195a4a(0x438)],this[_0x195a4a(0x208)],this[_0x195a4a(0x45e)],null,[_0x1618c0],this['_handler'],this[_0x195a4a(0x1a8)])),'onApply':()=>this[_0x195a4a(0x411)](_0x1618c0),'onRemoteRevert':()=>this[_0x195a4a(0x412)](this['_remoteRevertInfo'](_0x1618c0))});}[_0x315216(0x411)](_0x2ae433){const _0x2326dc=_0x315216;try{let _0x5bd7dd=this[_0x2326dc(0x466)][_0x2326dc(0x18c)]([_0x2ae433],[this['_awaitingChangeset']],!0x1);if((0x0,_0x4524ba[_0x2326dc(0x38c)])(_0x5bd7dd)){let {c1Prime:_0xf41fc,c2Prime:_0x44e12f}=_0x5bd7dd,_0x50eed8=this['_transformService'][_0x2326dc(0x425)](_0xf41fc[0x0],this[_0x2326dc(0x45e)]);if((0x0,_0x4524ba[_0x2326dc(0x2fd)])(_0x50eed8)){let {c1Prime:_0x2de89d,m2Prime:_0x537b8c}=_0x50eed8;this[_0x2326dc(0x18f)](_0x2de89d),_0x44e12f[0x0][_0x2326dc(0x1d8)]=this['_getCurrentRevision'](),this['_detachSubmitter']();let _0x345f36=this['_injector'][_0x2326dc(0x40e)](_0x45930f,this[_0x2326dc(0x154)],this[_0x2326dc(0x438)],_0x44e12f[0x0],_0x537b8c,this['_handler'],this[_0x2326dc(0x1a8)]);return _0x345f36[_0x2326dc(0x3e8)](),_0x345f36;}throw _0x50eed8[_0x2326dc(0xd6)];}throw _0x5bd7dd[_0x2326dc(0xd6)];}catch(_0x5e8da2){return this[_0x2326dc(0xb8)][_0x2326dc(0xd6)](_0x5e8da2),this['_onConflict'](this[_0x2326dc(0x40a)](_0x5e8da2));}}[_0x315216(0x144)](_0x48ff31){const _0x33f5a7=_0x315216;switch(this[_0x33f5a7(0x43d)](_0x48ff31)){case'stale':return this[_0x33f5a7(0xb8)]['debug'](_0x33f5a7(0x269),'ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x48ff31[_0x33f5a7(0x187)]+'\x20at\x20revision\x20'+this[_0x33f5a7(0x384)]()+'.'),this;case _0x33f5a7(0x240):return this[_0x33f5a7(0x1a8)][_0x33f5a7(0x15a)](),this[_0x33f5a7(0x174)]();case _0x33f5a7(0x28b):return this[_0x33f5a7(0x1a8)][_0x33f5a7(0x15a)](),this[_0x33f5a7(0x457)](_0x48ff31[_0x33f5a7(0x187)]),this[_0x33f5a7(0xe7)][_0x33f5a7(0x40e)](_0x157fa1,this[_0x33f5a7(0x154)],this[_0x33f5a7(0x438)],this[_0x33f5a7(0x208)],this[_0x33f5a7(0x45e)],_0x48ff31[_0x33f5a7(0x187)],[],this[_0x33f5a7(0x430)],void 0x0);case _0x33f5a7(0x407):return this[_0x33f5a7(0x1a8)][_0x33f5a7(0x15a)](),this[_0x33f5a7(0x290)](),this[_0x33f5a7(0x174)]();}}[_0x315216(0x174)](){const _0x2e7ccf=_0x315216;let _0x1d2afd=this['_injector'][_0x2e7ccf(0x40e)](_0x2f13d7,this['unitID'],this[_0x2e7ccf(0x438)],this[_0x2e7ccf(0x45e)],this[_0x2e7ccf(0x430)]);return _0x1d2afd[_0x2e7ccf(0x122)](),_0x1d2afd[_0x2e7ccf(0x3e8)](),_0x1d2afd;}['onRemoteRej'](_0x5c2844){const _0x41bf79=_0x315216;return this[_0x41bf79(0x412)](this[_0x41bf79(0x420)](_0x5c2844));}[_0x315216(0x3bf)](_0x35febf){const _0x36a8a3=_0x315216;var _0x5926cd;return _0x35febf[_0x36a8a3(0x3d0)]===((_0x5926cd=this[_0x36a8a3(0x208)])==null?void 0x0:_0x5926cd[_0x36a8a3(0x3d0)])&&this[_0x36a8a3(0x1a8)][_0x36a8a3(0x37d)](),this;}[_0x315216(0x3fc)](){const _0x4052a8=_0x315216;return this[_0x4052a8(0x1a8)][_0x4052a8(0x15a)](),this[_0x4052a8(0xe7)]['createInstance'](_0x224cab,this['unitID'],this[_0x4052a8(0x438)],this[_0x4052a8(0x208)],this[_0x4052a8(0x45e)],this[_0x4052a8(0x430)]);}[_0x315216(0x162)](){return this;}[_0x315216(0x3ba)](_0x3c2733=_0x315216(0x3b1)){const _0x4e3d8b=_0x315216;this[_0x4e3d8b(0x1a8)][_0x4e3d8b(0x2ac)](this[_0x4e3d8b(0x208)],this[_0x4e3d8b(0x126)](),_0x3c2733);}[_0x315216(0x412)](_0x1cc167){const _0x284670=_0x315216;return this[_0x284670(0x1a8)][_0x284670(0x15a)](),this[_0x284670(0xe7)][_0x284670(0x40e)](_0x3a7d93,this['unitID'],this[_0x284670(0x438)],this[_0x284670(0x208)],this[_0x284670(0x45e)],this[_0x284670(0x430)],_0x1cc167);}['dispose'](){const _0x20b801=_0x315216;this[_0x20b801(0x1a8)][_0x20b801(0x15a)]();}[_0x315216(0x236)](){const _0x336028=_0x315216;this[_0x336028(0x1a8)][_0x336028(0x1c8)]();}};_0x432f81=_0x45930f=_0x5af442([_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x7,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x8,_0x325f28['ICommandService']),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0xb,_0x325f28['IUndoRedoService']),_0x557b04(0xc,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x432f81);let _0x3a7d93=class extends _0x34cd3b{constructor(_0x1e0e25,_0x30ba83,_0x3e0c45,_0x32898d,_0x22f041,_0x110325,_0xdca19b,_0x45619c,_0x32fd7c,_0x3b9d0e,_0x2361e5,_0x1b6d5c,_0x91c98a,_0x336b9b){const _0x53b7da=_0x315216;var _0x2a46f2;super(_0x1e0e25,_0x30ba83,_0x3e0c45,_0x32898d,_0x22f041,_0x45619c,_0x32fd7c,_0x3b9d0e,_0x336b9b),this['info']=_0x110325,this[_0x53b7da(0x1bf)]=_0xdca19b,this[_0x53b7da(0x413)]=_0x2361e5,this['_logService']=_0x1b6d5c,this[_0x53b7da(0x190)]=_0x91c98a,this[_0x53b7da(0x3a5)]=_0x336b9b,_0x4da1f9(this,_0x53b7da(0x326),_0x53b7da(0x151)),_0x4da1f9(this,_0x53b7da(0x19c),void 0x0);let _0x240cd6=((_0x2a46f2=this[_0x53b7da(0x413)]['getCurrentUser']())==null?void 0x0:_0x2a46f2[_0x53b7da(0x3da)])??'';this[_0x53b7da(0x19c)]=_0x3e0c45||_0x32898d[_0x53b7da(0x250)]?{'unitID':_0x1e0e25,'userId':_0x240cd6||void 0x0,'type':_0x30ba83,'rev':this[_0x53b7da(0x384)](),'awaitingChangeset':_0x3e0c45,'mutations':_0x32898d}:null,this[_0x53b7da(0x179)](),this[_0x53b7da(0x1c9)](),this['_prepareConflictRecovery'](_0x240cd6)['catch'](_0x4bcf94=>this[_0x53b7da(0xb8)][_0x53b7da(0xd6)](_0x4bcf94));}async['_prepareConflictRecovery'](_0x3df7b0){const _0x1f0c2e=_0x315216;var _0x92cee4,_0x2937fd,_0x53c060,_0x4fc2c3;await((_0x92cee4=this['_localCacheService'])==null||(_0x2937fd=_0x92cee4['backupOfflineData'])==null?void 0x0:_0x2937fd[_0x1f0c2e(0x20c)](_0x92cee4,this['unitID'],this[_0x1f0c2e(0xdd)][_0x1f0c2e(0x328)],_0x3df7b0)[_0x1f0c2e(0x195)](()=>void 0x0));let _0xfb5fc0=!0x0;try{var _0x13f967;await((_0x13f967=this[_0x1f0c2e(0x249)])==null?void 0x0:_0x13f967[_0x1f0c2e(0xf0)](this[_0x1f0c2e(0x154)],_0x3df7b0));}catch{_0xfb5fc0=!0x1,this[_0x1f0c2e(0x190)][_0x1f0c2e(0x436)]({'id':_0x1f0c2e(0x2d1),'unitID':this[_0x1f0c2e(0x154)],'userId':_0x3df7b0});}(_0x53c060=(_0x4fc2c3=this[_0x1f0c2e(0x430)])[_0x1f0c2e(0x161)])==null||_0x53c060['call'](_0x4fc2c3,this[_0x1f0c2e(0xdd)],this['localChanges'],_0xfb5fc0);}[_0x315216(0x2d0)](){return this;}['onRemoteChangeset'](){return this;}[_0x315216(0x144)](){return this;}[_0x315216(0x2ba)](){return this;}[_0x315216(0x3bf)](){return this;}[_0x315216(0x3fc)](){return this;}['toggleOnline'](){return this;}[_0x315216(0x3ba)](){const _0xacb3e7=_0x315216;throw Error(_0xacb3e7(0x11b));}['_showConflictProcessingNotification'](){const _0x3f238b=_0x315216;this[_0x3f238b(0x190)][_0x3f238b(0x436)]({'id':'CONFLICT_PROCESSING','unitID':this[_0x3f238b(0x154)]});}[_0x315216(0x179)](){const _0xdeba55=_0x315216;this[_0xdeba55(0x1bf)][_0xdeba55(0x26c)](new _0x29d3a5[(_0xdeba55(0x329))](this[_0xdeba55(0x154)])['id'],!0x1);}};_0x3a7d93=_0x5af442([_0x557b04(0x6,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x43e)])),_0x557b04(0x7,_0x325f28[_0x315216(0x158)]),_0x557b04(0x8,_0x325f28[_0x315216(0x3e6)]),_0x557b04(0x9,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0xa,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['UserManagerService'])),_0x557b04(0xb,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xc,(0x0,_0x325f28['Inject'])(_0x11f58a)),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x3a7d93);let _0x224cab=class extends _0x34cd3b{constructor(_0x5de791,_0x4c12a2,_0xd7a444,_0x5800dc,_0x56f9df,_0x40216b,_0x451cfe,_0x16a47d,_0x5497f1,_0x551365,_0x4da1fd){const _0x8f67f3=_0x315216;super(_0x5de791,_0x4c12a2,_0xd7a444,_0x5800dc,_0x56f9df,_0x16a47d,_0x5497f1,_0x451cfe,_0x4da1fd),this[_0x8f67f3(0xe7)]=_0x40216b,this[_0x8f67f3(0xb8)]=_0x551365,_0x4da1f9(this,_0x8f67f3(0x326),'offline');}[_0x315216(0x2d0)](_0x4851c5){const _0x2ae72f=_0x315216;return this[_0x2ae72f(0x45e)][_0x2ae72f(0x46e)](_0x4851c5),this[_0x2ae72f(0x3e8)](),this;}[_0x315216(0xee)](_0x3cc8cc){const _0x264b31=_0x315216;return this[_0x264b31(0xb8)]['debug'](_0x264b31(0x14b),'ignored\x20remote\x20changeset\x20of\x20revision\x20'+_0x3cc8cc[_0x264b31(0x187)]+'.'),this;}[_0x315216(0x144)](_0x306c6e){const _0x5ca500=_0x315216;return this[_0x5ca500(0xb8)][_0x5ca500(0x3e5)](_0x5ca500(0x14b),_0x5ca500(0x175)+_0x306c6e[_0x5ca500(0x187)]+'.'),this;}[_0x315216(0x2ba)](){const _0x43ec8d=_0x315216;return this[_0x43ec8d(0xb8)][_0x43ec8d(0x3e5)](_0x43ec8d(0x14b),'ignored\x20rejection.'),this;}[_0x315216(0x3bf)](){return this;}[_0x315216(0x3fc)](){return this;}[_0x315216(0x162)](){const _0x3d118e=_0x315216;let {_injector:_0x2a5bb7,_pendingMutations:_0x181e3b,_awaitingChangeset:_0x2dae22,unitID:_0x136c14,_handler:_0x2f509e,type:_0x57d137}=this,_0x12a052=_0x5a0323(_0x2a5bb7,_0x136c14,_0x57d137,_0x2dae22,_0x181e3b,_0x2f509e);return _0x12a052 instanceof _0x2f13d7?_0x12a052[_0x3d118e(0x122)]():(_0x12a052 instanceof _0x432f81||_0x12a052 instanceof _0x299420)&&_0x12a052[_0x3d118e(0x3ba)](),_0x12a052;}['resend'](){const _0x33ed30=_0x315216;throw Error(_0x33ed30(0x343));}};_0x224cab=_0x5af442([_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,_0x325f28[_0x315216(0x158)]),_0x557b04(0x8,_0x325f28['IUndoRedoService']),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x224cab);let _0x157fa1=class extends _0x34cd3b{constructor(_0x2a7d1a,_0x2f56bc,_0x1b778a,_0x302fb2,_0x19ab0b,_0x1c3504,_0x1c3248,_0x7df096,_0x1e1dab,_0x3b1c38,_0x31a2de,_0x3fade5,_0x2cc061,_0xbe3163,_0x49808d){const _0x109df4=_0x315216;super(_0x2a7d1a,_0x2f56bc,_0x1b778a,_0x302fb2,_0x1c3248,_0x3fade5,_0x2cc061,_0x3b1c38,_0x49808d),this[_0x109df4(0x230)]=_0x19ab0b,this[_0x109df4(0x1a6)]=_0x1c3504,this[_0x109df4(0x1a8)]=_0x7df096,this['_injector']=_0x1e1dab,this[_0x109df4(0xb8)]=_0x31a2de,this['_transformService']=_0xbe3163,this['localCacheService']=_0x49808d,_0x4da1f9(this,_0x109df4(0x326),_0x109df4(0x39a));}[_0x315216(0x125)](_0x5f5566){const _0x94720d=_0x315216;try{if(this[_0x94720d(0x148)](_0x5f5566)[_0x94720d(0x39b)])throw Error(_0x94720d(0x2d8));if(this[_0x94720d(0x148)]([...this[_0x94720d(0x1a6)]][_0x94720d(0x47b)]((_0x21d2d4,_0xed23d3)=>_0x21d2d4['revision']-_0xed23d3[_0x94720d(0x187)]))['missingChangesets'])return this['_queuedRemoteChangesets']=[],this['_updateLocalCache'](),this[_0x94720d(0x430)][_0x94720d(0x3d2)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0xc394f=this['_awaitingChangeset'],_0x2a79a6=this[_0x94720d(0x45e)],_0x3bcb26;if(_0xc394f&&_0x2a79a6[_0x94720d(0x250)]!==0x0)_0x3bcb26=this[_0x94720d(0xe7)][_0x94720d(0x40e)](_0x432f81,this[_0x94720d(0x154)],this['type'],_0xc394f,_0x2a79a6,this['_handler'],this[_0x94720d(0x1a8)]);else{if(_0xc394f&&_0x2a79a6[_0x94720d(0x250)]===0x0)_0xc394f[_0x94720d(0x1d8)]=this[_0x94720d(0x384)](),_0x3bcb26=this[_0x94720d(0xe7)][_0x94720d(0x40e)](_0x299420,this[_0x94720d(0x154)],this['type'],_0xc394f,this[_0x94720d(0x430)],this[_0x94720d(0x1a8)]);else{if(_0x2a79a6['length']!==0x0){let _0x294926=this[_0x94720d(0xe7)]['createInstance'](_0x2f13d7,this['unitID'],this[_0x94720d(0x438)],_0x2a79a6,this['_handler']);_0x294926[_0x94720d(0x122)](),_0x3bcb26=_0x294926;}else _0x3bcb26=this[_0x94720d(0xe7)][_0x94720d(0x40e)](_0x30f87e,this[_0x94720d(0x154)],this[_0x94720d(0x438)],this['_handler']);}}return _0x3bcb26[_0x94720d(0x3e8)](),_0x3bcb26;}catch(_0x5bac43){return _0x5bac43 instanceof _0x2073a1?(this[_0x94720d(0xb8)]['debug'](_0x94720d(0x46b),_0x5bac43[_0x94720d(0x186)]),this[_0x94720d(0x412)](_0x5bac43[_0x94720d(0xdd)])):(this[_0x94720d(0xb8)][_0x94720d(0xd6)](_0x94720d(0x46b),'failed\x20to\x20apply\x20missed\x20changesets!',_0x5bac43),this[_0x94720d(0x412)](this['_conflictInfoFromError'](_0x5bac43)));}}['_handleRemoteChangesets'](_0x14d7d0){const _0x24a0f3=_0x315216;this[_0x24a0f3(0x127)]();for(let _0x15a7be=0x0;_0x15a7be<_0x14d7d0[_0x24a0f3(0x250)];_0x15a7be++){let _0x5d0c87=_0x14d7d0[_0x15a7be];switch(this[_0x24a0f3(0x3ea)](_0x5d0c87)){case _0x24a0f3(0x14d):{let _0x1b89b6=this[_0x24a0f3(0x384)]();if(_0x5d0c87[_0x24a0f3(0x187)]>_0x1b89b6+0x1)return{'missingChangesets':!0x0};_0x5d0c87['revision']<=_0x1b89b6?this[_0x24a0f3(0x309)]():this[_0x24a0f3(0x229)]();break;}case _0x24a0f3(0x2e0):throw new _0x2073a1(this[_0x24a0f3(0xdc)](_0x5d0c87));case _0x24a0f3(0x475):break;case'missing':return{'missingChangesets':!0x0};case _0x24a0f3(0x2dc):this[_0x24a0f3(0x29f)](_0x5d0c87),this[_0x24a0f3(0x127)]();}}return{'missingChangesets':!0x1};}[_0x315216(0x29f)](_0x3a74a4){const _0x1ca888=_0x315216;let _0x29b232=_0x3a74a4,_0x2d7760=this[_0x1ca888(0x208)];if(_0x2d7760){let _0x4f0e4c=this[_0x1ca888(0x466)][_0x1ca888(0x18c)]([_0x3a74a4],[_0x2d7760],!0x1);if(!(0x0,_0x4524ba[_0x1ca888(0x38c)])(_0x4f0e4c))throw _0x4f0e4c[_0x1ca888(0xd6)];_0x29b232=_0x4f0e4c[_0x1ca888(0x167)][0x0],_0x2d7760=_0x4f0e4c['c2Prime'][0x0];}let _0x13ec6a=this[_0x1ca888(0x45e)];if(_0x13ec6a[_0x1ca888(0x250)]){let _0x3a41c9=this[_0x1ca888(0x466)][_0x1ca888(0x425)](_0x29b232,_0x13ec6a);if(!(0x0,_0x4524ba[_0x1ca888(0x2fd)])(_0x3a41c9))throw _0x3a41c9[_0x1ca888(0xd6)];_0x29b232=_0x3a41c9[_0x1ca888(0x167)],_0x13ec6a=_0x3a41c9[_0x1ca888(0xb7)];}this['_executeRemoteChangeset'](_0x29b232),_0x2d7760&&(_0x2d7760['baseRev']=this[_0x1ca888(0x384)]()),this[_0x1ca888(0x208)]=_0x2d7760,this[_0x1ca888(0x45e)]=_0x13ec6a;}[_0x315216(0x127)](){const _0x4eb9f4=_0x315216;if(!this[_0x4eb9f4(0x208)]||this['_acknowledgedAwaitingRevision']==null)return;let _0x17fe1a=this[_0x4eb9f4(0x384)]();if(this[_0x4eb9f4(0x230)]<=_0x17fe1a)throw Error(_0x4eb9f4(0x2fb)+this[_0x4eb9f4(0x230)]+'.');this['_acknowledgedAwaitingRevision']===_0x17fe1a+0x1&&this['_acknowledgeAwaiting']();}[_0x315216(0x229)](){const _0x8cbe28=_0x315216;this[_0x8cbe28(0x290)](),this['_dropAcknowledgedAwaiting']();}[_0x315216(0x309)](){const _0x6ea233=_0x315216;this[_0x6ea233(0x208)]=null,this['_acknowledgedAwaitingRevision']=null,this[_0x6ea233(0x206)]();}[_0x315216(0x206)](){const _0x9a5aa3=_0x315216;var _0x261c33;(_0x261c33=this[_0x9a5aa3(0x1a8)])==null||_0x261c33[_0x9a5aa3(0x15a)](),this[_0x9a5aa3(0x1a8)]=void 0x0;}[_0x315216(0x15a)](){const _0x5ea806=_0x315216;this[_0x5ea806(0x206)]();}[_0x315216(0x3ba)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x315216(0x2d0)](_0x39d2aa){const _0x4c39c7=_0x315216;return this[_0x4c39c7(0x45e)]['push'](_0x39d2aa),this[_0x4c39c7(0x3e8)](),this;}[_0x315216(0xee)](_0x2858dc){const _0x3c4280=_0x315216;return this['_queuedRemoteChangesets'][_0x3c4280(0x46e)](_0x2858dc),this;}[_0x315216(0x144)](_0xb1ef76){const _0x59525d=_0x315216;let _0x3c9309=this[_0x59525d(0x43d)](_0xb1ef76);if(this['_awaitingChangeset']){switch(_0x3c9309){case _0x59525d(0x240):this[_0x59525d(0x309)]();break;case'stale':break;case _0x59525d(0x407):this[_0x59525d(0x229)]();break;case'missing':this[_0x59525d(0x230)]=_0xb1ef76[_0x59525d(0x187)],this[_0x59525d(0x206)]();}return this;}if(_0x3c9309==='stale')return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x315216(0x2ba)](_0x290d42){const _0x184f50=_0x315216;return this[_0x184f50(0x412)](this[_0x184f50(0x420)](_0x290d42));}[_0x315216(0x3bf)](_0x3fdacb){const _0x10a102=_0x315216;var _0x2c10cf;return this[_0x10a102(0x230)]!=null||_0x3fdacb['reqId']!==((_0x2c10cf=this[_0x10a102(0x208)])==null?void 0x0:_0x2c10cf[_0x10a102(0x3d0)])||(this[_0x10a102(0x1a8)]??=this[_0x10a102(0xa5)](this[_0x10a102(0x208)]),this[_0x10a102(0x1a8)][_0x10a102(0x37d)]()),this;}[_0x315216(0x3fc)](){const _0x2c74ba=_0x315216;return this[_0x2c74ba(0x206)](),this[_0x2c74ba(0xe7)][_0x2c74ba(0x40e)](_0x224cab,this[_0x2c74ba(0x154)],this[_0x2c74ba(0x438)],this[_0x2c74ba(0x208)],this[_0x2c74ba(0x45e)],this[_0x2c74ba(0x430)]);}['toggleOnline'](){return this;}[_0x315216(0x412)](_0x39d617){const _0x3e9175=_0x315216;return this['_disposeSubmitter'](),this['_injector'][_0x3e9175(0x40e)](_0x3a7d93,this[_0x3e9175(0x154)],this[_0x3e9175(0x438)],this[_0x3e9175(0x208)],this[_0x3e9175(0x45e)],this[_0x3e9175(0x430)],_0x39d617);}};_0x157fa1=_0x5af442([_0x557b04(0x8,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x9,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba['RevisionService'])),_0x557b04(0xa,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xb,_0x325f28[_0x315216(0x158)]),_0x557b04(0xc,_0x325f28[_0x315216(0x3e6)]),_0x557b04(0xd,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0xe,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x157fa1);function _0x5a0323(_0x55d5e6,_0x4747bf,_0x16c89c,_0x5ca0a1,_0x2d010c,_0x4737e2){const _0xe1c49=_0x315216;return _0x5ca0a1&&_0x2d010c['length']?_0x55d5e6['createInstance'](_0x432f81,_0x4747bf,_0x16c89c,_0x5ca0a1,_0x2d010c,_0x4737e2,void 0x0):_0x5ca0a1?_0x55d5e6[_0xe1c49(0x40e)](_0x299420,_0x4747bf,_0x16c89c,_0x5ca0a1,_0x4737e2,void 0x0):_0x2d010c['length']?_0x55d5e6[_0xe1c49(0x40e)](_0x2f13d7,_0x4747bf,_0x16c89c,_0x2d010c,_0x4737e2):_0x55d5e6[_0xe1c49(0x40e)](_0x30f87e,_0x4747bf,_0x16c89c,_0x4737e2);}let _0x1683e1=class extends _0x325f28[_0x315216(0x10c)]{get[_0x315216(0x2b3)](){const _0xcd750d=_0x315216;return this[_0xcd750d(0xe0)];}constructor(_0x233e9a,_0x4707eb,_0x2be4b2,_0x452d01,_0x405002,_0x5d00c5,_0x4b0128,_0x5c03c4,_0x3b089a,_0x3d6204,_0x469616,_0x2179e2,_0x4f4841,_0x33e458){const _0x5c2117=_0x315216;super(),this[_0x5c2117(0x154)]=_0x233e9a,this[_0x5c2117(0x29e)]=_0x4707eb,this[_0x5c2117(0x272)]=_0x2be4b2,this[_0x5c2117(0xe7)]=_0x452d01,this[_0x5c2117(0x3e3)]=_0x405002,this['_localeService']=_0x5d00c5,this['_revisionService']=_0x4b0128,this[_0x5c2117(0x321)]=_0x5c03c4,this[_0x5c2117(0x23b)]=_0x3b089a,this[_0x5c2117(0xb8)]=_0x3d6204,this['_commandService']=_0x469616,this[_0x5c2117(0x1bf)]=_0x2179e2,this['_singleActiveUnitService']=_0x4f4841,this[_0x5c2117(0x249)]=_0x33e458,_0x4da1f9(this,_0x5c2117(0x228),new _0x1fdbe2[(_0x5c2117(0x1c7))](null)),_0x4da1f9(this,'state$',this[_0x5c2117(0x228)][_0x5c2117(0xf1)]()),_0x4da1f9(this,_0x5c2117(0xe0),void 0x0),_0x4da1f9(this,_0x5c2117(0x95),!0x1),_0x4da1f9(this,'_changesetSessionId',''),_0x4da1f9(this,_0x5c2117(0x443),0x0),_0x4da1f9(this,'status$',this['state$']['pipe']((0x0,_0x1fdbe2['map'])(_0x3a8c55=>_0x3a8c55?_0x3a8c55[_0x5c2117(0x326)]:'offline'),(0x0,_0x1fdbe2[_0x5c2117(0x21b)])({'bufferSize':0x1,'refCount':!0x0}))),_0x4da1f9(this,_0x5c2117(0x398),new _0x1fdbe2[(_0x5c2117(0x112))]()),_0x4da1f9(this,_0x5c2117(0x3a7),this[_0x5c2117(0x398)][_0x5c2117(0xf1)]()),_0x4da1f9(this,_0x5c2117(0x1ea),new _0x1fdbe2[(_0x5c2117(0x112))]()),_0x4da1f9(this,'conflict$',this[_0x5c2117(0x1ea)][_0x5c2117(0xf1)]()),_0x4da1f9(this,_0x5c2117(0x2a5),!0x1),_0x4da1f9(this,'_remoteChangesetQueue',[]);}async[_0x315216(0x41d)](){const _0x19d4ca=_0x315216;if(this['state'])throw Error(_0x19d4ca(0x107));await this[_0x19d4ca(0x1e3)]();}[_0x315216(0xe1)](){const _0x44ddfe=_0x315216;return this[_0x44ddfe(0x95)]=!0x0,(0x0,_0x325f28[_0x44ddfe(0x25f)])(()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}['onLocalMutation'](_0x398058){const _0x4dcf4a=_0x315216;this[_0x4dcf4a(0xfa)](_0x398058);}[_0x315216(0x386)](){const _0x3b9da0=_0x315216;var _0x241a62;return((_0x241a62=this[_0x3b9da0(0xe0)])==null?void 0x0:_0x241a62['hasLocalChanges']())??!0x1;}[_0x315216(0x15a)](){const _0xa6bddb=_0x315216;var _0x557f3f;super['dispose'](),(_0x557f3f=this[_0xa6bddb(0xe0)])==null||_0x557f3f[_0xa6bddb(0x15a)](),this[_0xa6bddb(0x398)][_0xa6bddb(0x313)](),this[_0xa6bddb(0x1ea)]['complete']();}[_0x315216(0x1f2)](_0x1fbfb4){const _0x3b3ac3=_0x315216;this[_0x3b3ac3(0xe0)]=_0x1fbfb4,this['_state$'][_0x3b3ac3(0x407)](_0x1fbfb4);}async['_init'](){const _0x491ca5=_0x315216;if(this[_0x491ca5(0x1f2)](await this[_0x491ca5(0x46f)]()),this[_0x491ca5(0x347)]){var _0x1e1b26;(_0x1e1b26=this[_0x491ca5(0x347)])==null||_0x1e1b26['editingUnit'](this[_0x491ca5(0x154)]),this[_0x491ca5(0x41e)](this[_0x491ca5(0x347)][_0x491ca5(0xa8)](this['unitID'])[_0x491ca5(0x28f)](_0x2b92e3=>{const _0x56212c=_0x491ca5;this[_0x56212c(0xb8)]['debug'](_0x56212c(0x2da),'editing\x20status\x20changed\x20to',_0x2b92e3),_0x2b92e3===0x1?(this[_0x56212c(0x321)][_0x56212c(0x436)]({'id':'OTHER_CLIENT_EDITING'}),this[_0x56212c(0x1bf)]['updatePermissionPoint'](new _0x29d3a5[(_0x56212c(0x329))](this[_0x56212c(0x154)])['id'],!0x1),this[_0x56212c(0x1bf)]['setShowComponents'](!0x1)):(this['_permissionService'][_0x56212c(0x26c)](new _0x29d3a5[(_0x56212c(0x329))](this[_0x56212c(0x154)])['id'],!0x0),this[_0x56212c(0x1bf)]['setShowComponents'](!0x0));}));}let _0x43f17c=!0x1;return this[_0x491ca5(0x41e)](this[_0x491ca5(0x29e)][_0x491ca5(0x26d)]['subscribe'](_0x4912f6=>{const _0x1bf994=_0x491ca5;_0x4912f6===0x3?this['_toggleOnline'](_0x43f17c):_0x4912f6===0x2&&(_0x43f17c=!0x0,this[_0x1bf994(0x2a9)]());})),this['disposeWithMe'](this[_0x491ca5(0x29e)][_0x491ca5(0x376)]['subscribe'](_0x235243=>{const _0x43d701=_0x491ca5;try{switch(_0x235243[_0x43d701(0x32e)]){case _0x4524ba[_0x43d701(0x1d7)][_0x43d701(0xf7)]:this[_0x43d701(0xfe)]((0x0,_0x4524ba[_0x43d701(0x3cc)])(_0x235243[_0x43d701(0x2a1)]));break;case _0x4524ba[_0x43d701(0x1d7)][_0x43d701(0x299)]:this[_0x43d701(0x445)](_0x235243[_0x43d701(0x2a1)]);break;case _0x4524ba[_0x43d701(0x1d7)][_0x43d701(0x2a8)]:this[_0x43d701(0x180)]();break;case _0x4524ba['CollaborationEvent'][_0x43d701(0xab)]:this[_0x43d701(0x100)](_0x235243[_0x43d701(0x2a1)]);break;case _0x4524ba['CollaborationEvent'][_0x43d701(0xa9)]:this[_0x43d701(0x341)](_0x235243[_0x43d701(0x2a1)][_0x43d701(0x45b)][_0x43d701(0x403)](_0x4d45b2=>(0x0,_0x4524ba[_0x43d701(0x3cc)])(_0x4d45b2)));break;case _0x4524ba[_0x43d701(0x1d7)][_0x43d701(0x465)]:this[_0x43d701(0x180)]({'isPermissionRej':!0x0});break;case _0x4524ba[_0x43d701(0x1d7)][_0x43d701(0x469)]:}}catch(_0x55f59f){throw console[_0x43d701(0xd6)]('Error\x20on\x20receiving\x20event',_0x55f59f),_0x55f59f;}})),this['_state'];}[_0x315216(0x454)](){const _0x680fd8=_0x315216;this[_0x680fd8(0x2a5)]=!0x1;}[_0x315216(0x1c0)](){const _0x5694d9=_0x315216;if(this[_0x5694d9(0x2a5)])throw Error(_0x5694d9(0x479));this[_0x5694d9(0x2a5)]=!0x0;}['_transit'](_0x56f41a){const _0x547805=_0x315216;this[_0x547805(0x1c0)]();try{this[_0x547805(0x1f2)](_0x56f41a());}finally{this['_unlockTransition']();}}[_0x315216(0xfa)](_0x2f5974){const _0x3a69d5=_0x315216;this[_0x3a69d5(0x307)](()=>this[_0x3a69d5(0xe0)][_0x3a69d5(0x2d0)](_0x2f5974));}['_onRemoteChangeset'](_0x4fc0ee){const _0x4bb938=_0x315216;this[_0x4bb938(0x95)]?this['_remoteChangesetQueue'][_0x4bb938(0x46e)](_0x4fc0ee):this['_applyRemoteChangeset'](_0x4fc0ee);}[_0x315216(0x202)](){const _0x47e1f1=_0x315216;this[_0x47e1f1(0x330)][_0x47e1f1(0x216)](_0x4c1127=>this[_0x47e1f1(0x400)](_0x4c1127)),this[_0x47e1f1(0x330)]=[];}[_0x315216(0x400)](_0x29fe5a){const _0x7f0e92=_0x315216;let _0x1a75b4=this['_compressMutationService'][_0x7f0e92(0x24b)][_0x7f0e92(0x2f9)](this[_0x7f0e92(0x3e3)][_0x7f0e92(0x24b)][_0x7f0e92(0x164)]()[_0x7f0e92(0x243)])(_0x29fe5a[_0x7f0e92(0x383)],null)||_0x29fe5a['mutations'],_0x4786c2={..._0x29fe5a,'mutations':_0x1a75b4};this['_transit'](()=>this[_0x7f0e92(0xe0)][_0x7f0e92(0xee)](_0x4786c2));}[_0x315216(0x445)](_0x4d7f59){const _0x4ba320=_0x315216;this[_0x4ba320(0x307)](()=>this['_state'][_0x4ba320(0x144)](_0x4d7f59));}[_0x315216(0x180)](_0x3f6701){const _0x381562=_0x315216;this['_transit'](()=>this['_state'][_0x381562(0x2ba)](_0x3f6701));}[_0x315216(0x100)](_0x1b5e39){const _0x54ad69=_0x315216;this['_transit'](()=>this[_0x54ad69(0xe0)][_0x54ad69(0x3bf)](_0x1b5e39));}['_onFetchMissResult'](_0x13d1ec){const _0x57bf23=_0x315216;let _0x282e4e=this['_state'];if(!(_0x282e4e instanceof _0x157fa1))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x22db7c=_0x13d1ec[_0x57bf23(0x403)](_0x38cd95=>{const _0x5ede17=_0x57bf23;let _0x5dc0e7=this['_compressMutationService'][_0x5ede17(0x24b)][_0x5ede17(0x2f9)](this[_0x5ede17(0x3e3)][_0x5ede17(0x24b)][_0x5ede17(0x164)]()[_0x5ede17(0x243)])(_0x38cd95['mutations'],null)||_0x38cd95[_0x5ede17(0x383)];return{..._0x38cd95,'mutations':_0x5dc0e7};});this['_transit'](()=>_0x282e4e[_0x57bf23(0x125)](_0x22db7c));}[_0x315216(0x2a9)](){const _0x5a4057=_0x315216;this[_0x5a4057(0x307)](()=>this['_state'][_0x5a4057(0x3fc)]());}[_0x315216(0x1b8)](_0x45d181=!0x1){const _0x4f4caf=_0x315216;this[_0x4f4caf(0x307)](()=>this[_0x4f4caf(0xe0)][_0x4f4caf(0x162)]());let _0x2966fc=this[_0x4f4caf(0xe0)];_0x45d181&&_0x2966fc instanceof _0x30f87e&&this[_0x4f4caf(0x307)](()=>_0x2966fc[_0x4f4caf(0x1ec)]());}async[_0x315216(0x46f)](){return new Promise(_0x26a965=>{const _0x1f60fa=_0x2c10;this[_0x1f60fa(0x29e)]['sessionStatus$'][_0x1f60fa(0xa4)]((0x0,_0x1fdbe2[_0x1f60fa(0xcf)])(0x1))[_0x1f60fa(0x28f)](async _0x240255=>{const _0x15f555=_0x1f60fa;_0x26a965(await this[_0x15f555(0x3a6)](_0x240255===0x3));});});}[_0x315216(0x189)](){const _0x37b778=_0x315216;let _0x432f5e=this[_0x37b778(0x154)],_0x106848=this[_0x37b778(0xe7)]['get'](_0x325f28[_0x37b778(0x1cf)])[_0x37b778(0x455)](_0x3a344c);return{'resendTimeouts':{'ackTimeout':_0x106848==null?void 0x0:_0x106848[_0x37b778(0x34a)],'maxAckTimeout':_0x106848==null?void 0x0:_0x106848['maxChangesetAckTimeout']},'onStateChange':(_0x174078,_0x95bf28)=>{const _0x5e2d6f=_0x37b778;if(_0x174078!==this[_0x5e2d6f(0xe0)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x174078[_0x5e2d6f(0x326)]+_0x5e2d6f(0x406)+_0x95bf28[_0x5e2d6f(0x326)]+'\x0aCurrent:\x20'+this[_0x5e2d6f(0xe0)][_0x5e2d6f(0x326)]);this[_0x5e2d6f(0x1f2)](_0x95bf28);},'onSendChangeset':(_0x4cf655,_0x4fde90)=>{const _0x38d661=_0x37b778;_0x4cf655[_0x38d661(0x402)]||(_0x4cf655['sid']=this[_0x38d661(0x2f1)],_0x4cf655['reqId']=++this[_0x38d661(0x443)]);let _0x43eae3={'eventID':_0x4524ba[_0x38d661(0x1d7)][_0x38d661(0x227)],'data':{'unitID':_0x4cf655[_0x38d661(0x154)],'unitType':this[_0x38d661(0x272)],'changeset':_0x4cf655,'memberID':this[_0x38d661(0x29e)]['getMemberID']()}};return this['session'][_0x38d661(0x325)](_0x43eae3,this[_0x38d661(0x154)],_0x4fde90);},'onConflict':(_0x43ba91,_0x317237,_0x36b23b)=>{const _0x130e91=_0x37b778;this[_0x130e91(0x1ea)]['closed']||this[_0x130e91(0x1ea)][_0x130e91(0x407)]({'unitID':_0x432f5e,..._0x43ba91,'localChanges':_0x317237,'cacheCleared':_0x36b23b});},'onChangesetResend':_0x51ed56=>{const _0x359978=_0x37b778;this[_0x359978(0xb8)]['debug']('[CollaborationEntity]',_0x359978(0x3d9)+_0x51ed56[_0x359978(0x3d0)]+'\x20('+_0x51ed56[_0x359978(0x328)]+',\x20attempt\x20'+_0x51ed56[_0x359978(0x378)]+')'),queueMicrotask(()=>{const _0x44d981=_0x359978;this['_changesetResend$']['closed']||this[_0x44d981(0x398)][_0x44d981(0x407)]({'unitID':_0x432f5e,..._0x51ed56});});},'onMissingChangesets':({from:_0x4bf592,to:_0x5d4ddc})=>{const _0x457741=_0x37b778;this['_logService']['debug'](_0x457741(0x2da),_0x457741(0x201)+_0x4bf592+_0x457741(0x26b)+_0x5d4ddc);let _0x5377d5={'eventID':_0x4524ba[_0x457741(0x1d7)][_0x457741(0x2dd)],'data':{'unitID':_0x432f5e,'unitType':this[_0x457741(0x272)],'from':_0x4bf592,'to':_0x5d4ddc}};this['session'][_0x457741(0x325)](_0x5377d5,this[_0x457741(0x154)]);}};}async[_0x315216(0x3a6)](_0x4c2c48){const _0x67e15b=_0x315216;var _0x195ee0;let _0x48413f=await((_0x195ee0=this['_localCacheService'])==null?void 0x0:_0x195ee0['loadOfflineData'](this[_0x67e15b(0x154)])),_0x93b8e=(_0x48413f==null?void 0x0:_0x48413f['mutations'])??[],_0x26e716=(_0x48413f==null?void 0x0:_0x48413f[_0x67e15b(0x421)])??null,_0x228e1b=!!(_0x26e716!=null&&_0x26e716[_0x67e15b(0x402)])&&!!(_0x26e716!=null&&_0x26e716['reqId']);this[_0x67e15b(0x2f1)]=_0x228e1b?_0x26e716[_0x67e15b(0x402)]:(0x0,_0x4524ba['uuidv4'])(),this[_0x67e15b(0x443)]=_0x228e1b?_0x26e716[_0x67e15b(0x3d0)]:0x0;let _0x5da059=this[_0x67e15b(0x154)];try{this['_replayCachedMutations'](_0x26e716,_0x93b8e);}catch(_0x497a88){this[_0x67e15b(0xb8)]['error'](_0x497a88);}let _0x12ad5f=this[_0x67e15b(0x189)]();if(_0x4c2c48){let _0x4f8b2e=_0x5a0323(this['_injector'],_0x5da059,this[_0x67e15b(0x272)],_0x26e716,_0x93b8e,_0x12ad5f);return _0x4f8b2e instanceof _0x2f13d7?_0x4f8b2e[_0x67e15b(0x122)]():(_0x4f8b2e instanceof _0x432f81||_0x4f8b2e instanceof _0x299420)&&_0x4f8b2e[_0x67e15b(0x3ba)](),_0x4f8b2e;}return this[_0x67e15b(0xe7)][_0x67e15b(0x40e)](_0x224cab,_0x5da059,this['_type'],_0x26e716,_0x93b8e,_0x12ad5f);}[_0x315216(0x2ed)](_0x237567,_0x29f93e){const _0x19a5b2=_0x315216;var _0x5f0cec,_0xb88269;let _0x257f6f=this[_0x19a5b2(0x3e3)][_0x19a5b2(0x24b)][_0x19a5b2(0x2f9)](this[_0x19a5b2(0x3e3)][_0x19a5b2(0x24b)]['getInterceptPoints']()[_0x19a5b2(0x243)]);(_0x5f0cec=_0x257f6f((_0x237567==null?void 0x0:_0x237567[_0x19a5b2(0x383)])||[],null))==null||_0x5f0cec[_0x19a5b2(0x216)](_0x25103a=>this[_0x19a5b2(0x337)]['executeCommand'](_0x25103a['id'],_0x25103a[_0x19a5b2(0x296)])),(_0xb88269=_0x257f6f(_0x29f93e||[],null))==null||_0xb88269[_0x19a5b2(0x216)](_0x110d25=>this[_0x19a5b2(0x337)][_0x19a5b2(0x231)](_0x110d25['id'],_0x110d25['params']));}};_0x1683e1=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba['CompressMutationService'])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['LocaleService'])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28['Inject'])(_0x11f58a)),_0x557b04(0x8,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28[_0x315216(0x158)]),_0x557b04(0xb,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xc,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x556ae0)),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x1683e1);let _0x464598=class extends _0x1683e1{constructor(_0x2ee5cf,_0x4e913c,_0x3a39a6,_0x1975db,_0x316bbe,_0x4d0a,_0x2ebbba,_0x57ab4d,_0x28b2e6,_0x34c10f,_0x5b2bc2,_0x53b1e4,_0xba9624,_0xd9bfe,_0x24fa05){const _0x22b82d=_0x315216;super(_0x2ee5cf,_0x3a39a6,_0x4e913c,_0x1975db,_0x316bbe,_0x4d0a,_0x2ebbba,_0x57ab4d,_0x28b2e6,_0x34c10f,_0x5b2bc2,_0x53b1e4,_0xd9bfe,_0x24fa05),this['unitID']=_0x2ee5cf,this['type']=_0x4e913c,this[_0x22b82d(0x27f)]=_0xba9624,_0x4da1f9(this,_0x22b82d(0x160),null);}[_0x315216(0x427)](_0x53d5dc){const _0x1130a8=_0x315216;this[_0x1130a8(0x160)]=_0x53d5dc;}[_0x315216(0x15a)](){const _0x3bcd88=_0x315216;this[_0x3bcd88(0x160)]=null,super[_0x3bcd88(0x15a)]();}[_0x315216(0x189)](){const _0x2ddbc9=_0x315216;let _0x50236e=super['_createHandler']();return _0x50236e[_0x2ddbc9(0x2c0)]=_0x1063ce=>{const _0x731234=_0x2ddbc9;var _0x313b96,_0x1ab75c;return(_0x313b96=this['_handlerCallback'])==null||(_0x1ab75c=_0x313b96[_0x731234(0x2c0)])==null?void 0x0:_0x1ab75c[_0x731234(0x20c)](_0x313b96,_0x1063ce);},_0x50236e[_0x2ddbc9(0x2bb)]=_0x5275ea=>{const _0x1e2516=_0x2ddbc9;var _0x5614c0,_0x1d8e9d;return(_0x5614c0=this[_0x1e2516(0x160)])==null||(_0x1d8e9d=_0x5614c0[_0x1e2516(0x2bb)])==null?void 0x0:_0x1d8e9d[_0x1e2516(0x20c)](_0x5614c0,_0x5275ea);},_0x50236e['onPrepareTransformSelections']=_0x283f0c=>{const _0x484c00=_0x2ddbc9;var _0x1f820c,_0x28e5e2;return((_0x1f820c=this['_handlerCallback'])==null||(_0x28e5e2=_0x1f820c[_0x484c00(0x319)])==null?void 0x0:_0x28e5e2[_0x484c00(0x20c)](_0x1f820c,_0x283f0c))??null;},_0x50236e['onTransformSelections']=_0x39a664=>{const _0x48a315=_0x2ddbc9;var _0x409de3,_0x1b454b;return(_0x409de3=this[_0x48a315(0x160)])==null||(_0x1b454b=_0x409de3[_0x48a315(0x3b9)])==null?void 0x0:_0x1b454b[_0x48a315(0x20c)](_0x409de3,_0x39a664);},_0x50236e[_0x2ddbc9(0x464)]=_0x5c2c2b=>{const _0x37efac=_0x2ddbc9;var _0x54e6ef,_0xf410e1;return(_0x54e6ef=this[_0x37efac(0x160)])==null||(_0xf410e1=_0x54e6ef[_0x37efac(0x464)])==null?void 0x0:_0xf410e1['call'](_0x54e6ef,_0x5c2c2b);},_0x50236e[_0x2ddbc9(0x23a)]=_0x4c8e17=>{const _0x1adede=_0x2ddbc9;var _0x2522d2,_0x3e094b;return((_0x2522d2=this['_handlerCallback'])==null||(_0x3e094b=_0x2522d2[_0x1adede(0x23a)])==null?void 0x0:_0x3e094b[_0x1adede(0x20c)](_0x2522d2,_0x4c8e17))??_0x4c8e17;},_0x50236e[_0x2ddbc9(0x40d)]=_0x12b99e=>{const _0x11ebff=_0x2ddbc9;var _0x478e6a,_0x1cdcf7;return((_0x478e6a=this[_0x11ebff(0x160)])==null||(_0x1cdcf7=_0x478e6a[_0x11ebff(0x40d)])==null?void 0x0:_0x1cdcf7[_0x11ebff(0x20c)](_0x478e6a,_0x12b99e))??_0x12b99e;},_0x50236e;}async['_init'](){const _0x239b76=_0x315216;let _0x23c4e4=await super[_0x239b76(0x1e3)]();return this[_0x239b76(0x41e)](this[_0x239b76(0x27f)][_0x239b76(0x295)][_0x239b76(0x28f)](_0x5bb045=>{const _0x9b89d0=_0x239b76;if(_0x5bb045==null||_0x5bb045[_0x9b89d0(0x352)]!==this[_0x9b89d0(0x154)])return;let {commandId:_0x570a26,redoState:_0x2f241f,unitId:_0x1900cb}=_0x5bb045,_0x55e4c1={'id':_0x570a26,'type':_0x325f28[_0x9b89d0(0x31f)][_0x9b89d0(0xb1)],'params':{'unitId':_0x1900cb,'actions':_0x2f241f[_0x9b89d0(0x3ab)],'textRanges':null}};this[_0x9b89d0(0xfa)](_0x55e4c1);})),this[_0x239b76(0x41e)](this[_0x239b76(0x337)][_0x239b76(0xc6)]((_0x4a20d0,_0x22e7df)=>{const _0x293f82=_0x239b76;if(_0x4a20d0[_0x293f82(0x438)]!==_0x325f28['CommandType'][_0x293f82(0xb1)]||_0x22e7df!=null&&_0x22e7df[_0x293f82(0x3ac)]||_0x22e7df!=null&&_0x22e7df[_0x293f82(0x207)]||_0x4a20d0['id']===_0x285e73[_0x293f82(0x1fb)]['id'])return;let _0x3a2523=_0x4a20d0['params'];if((_0x3a2523==null?void 0x0:_0x3a2523[_0x293f82(0x352)])!==this[_0x293f82(0x154)])return;let _0xd3d112=_0x4a20d0,_0x1ca3b3=this[_0x293f82(0x3e3)][_0x293f82(0x24b)][_0x293f82(0x2f9)](this[_0x293f82(0x3e3)][_0x293f82(0x24b)][_0x293f82(0x164)]()[_0x293f82(0x3b8)])([_0xd3d112],this['_univerInstanceService'])||[_0xd3d112];this['_onLocalMutation'](_0x1ca3b3[0x0]);})),_0x23c4e4;}};_0x464598=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28['Inject'])(_0x325f28['Injector'])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba['CompressMutationService'])),_0x557b04(0x5,(0x0,_0x325f28['Inject'])(_0x325f28['LocaleService'])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x8,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28[_0x315216(0x158)]),_0x557b04(0xb,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xc,(0x0,_0x325f28['Inject'])(_0x285e73[_0x315216(0x129)])),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x556ae0)),_0x557b04(0xe,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x464598);let _0x2033f7=class extends _0x1683e1{constructor(_0x402931,_0x45b5ec,_0x2b4cbb,_0x43fcf1,_0x5ebb7e,_0x17b257,_0x59acf2,_0x41ee17,_0x252c5c,_0x1131e4,_0x1802c3,_0xc04e93,_0x360b32,_0xeecde0){const _0x1b9ffa=_0x315216;super(_0x402931,_0x2b4cbb,_0x45b5ec,_0x43fcf1,_0x5ebb7e,_0x17b257,_0x59acf2,_0x41ee17,_0x252c5c,_0x1131e4,_0x1802c3,_0xc04e93,_0x360b32,_0xeecde0),this['unitID']=_0x402931,this[_0x1b9ffa(0x438)]=_0x45b5ec;}async[_0x315216(0x1e3)](){const _0x27a791=_0x315216;let _0x355e5e=await super['_init']();return this[_0x27a791(0x41e)](this[_0x27a791(0x337)][_0x27a791(0xc6)]((_0x5c6b22,_0x598910)=>{const _0x466802=_0x27a791;if(_0x5c6b22[_0x466802(0x438)]!==_0x325f28['CommandType'][_0x466802(0xb1)]||_0x598910!=null&&_0x598910['fromCollab']||_0x598910!=null&&_0x598910['onlyLocal'])return;let _0x3a10ae=_0x5c6b22[_0x466802(0x296)];if((_0x3a10ae==null?void 0x0:_0x3a10ae[_0x466802(0x352)])!==this[_0x466802(0x154)])return;let _0x4ac2ee=_0x5c6b22,_0x1a4e23=this['_compressMutationService'][_0x466802(0x24b)][_0x466802(0x2f9)](this[_0x466802(0x3e3)]['interceptor'][_0x466802(0x164)]()[_0x466802(0x3b8)])([_0x4ac2ee],this['_univerInstanceService'])||[_0x4ac2ee];this[_0x466802(0xfa)](_0x1a4e23[0x0]);})),_0x355e5e;}};_0x2033f7=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x1a9)])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x2ae)])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x8,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28['ICommandService']),_0x557b04(0xb,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xc,(0x0,_0x325f28['Optional'])(_0x556ae0)),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x2033f7);let _0x3a3d85=class extends _0x1683e1{constructor(_0x4730c1,_0xcfbcf4,_0x412fc7,_0x5f2939,_0x2aa9ef,_0x282d6f,_0x5eabd1,_0xb7f1f9,_0xfeeb21,_0x141413,_0x91163e,_0x40ff0b,_0x37ea41,_0x595958,_0x1ae9c1){const _0x7333c6=_0x315216;super(_0x4730c1,_0x412fc7,_0xcfbcf4,_0x5f2939,_0x2aa9ef,_0x282d6f,_0x5eabd1,_0xfeeb21,_0x141413,_0x91163e,_0x40ff0b,_0x37ea41,_0x595958,_0x1ae9c1),this[_0x7333c6(0x154)]=_0x4730c1,this[_0x7333c6(0x438)]=_0xcfbcf4,this[_0x7333c6(0x27d)]=_0xb7f1f9;}['_createHandler'](){const _0x369761=_0x315216;let _0x53f2bc=super[_0x369761(0x189)]();return _0x53f2bc[_0x369761(0x3b9)]=_0x13f3ed=>this[_0x369761(0x27d)][_0x369761(0x218)](_0x13f3ed),_0x53f2bc;}async[_0x315216(0x1e3)](){const _0x191c92=_0x315216;let _0x154833=await super['_init']();return this[_0x191c92(0x41e)](this[_0x191c92(0x337)]['onMutationExecutedForCollab']((_0x44151e,_0x16eae4)=>{const _0x20e844=_0x191c92;if(_0x44151e[_0x20e844(0x438)]!==_0x325f28[_0x20e844(0x31f)][_0x20e844(0xb1)]||_0x16eae4!=null&&_0x16eae4[_0x20e844(0x3ac)]||_0x16eae4!=null&&_0x16eae4[_0x20e844(0x207)])return;let _0x33a1f6=_0x44151e[_0x20e844(0x296)];if((_0x33a1f6==null?void 0x0:_0x33a1f6[_0x20e844(0x352)])!==this[_0x20e844(0x154)])return;let _0x2d4f58=_0x44151e,_0x5bcd29=this[_0x20e844(0x3e3)][_0x20e844(0x24b)][_0x20e844(0x2f9)](this[_0x20e844(0x3e3)][_0x20e844(0x24b)][_0x20e844(0x164)]()[_0x20e844(0x3b8)])([_0x2d4f58],this[_0x20e844(0x23b)])||[_0x2d4f58];this[_0x20e844(0xfa)](_0x5bcd29[0x0]);})),_0x154833;}};_0x3a3d85=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['Injector'])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x1a9)])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['LocaleService'])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x5d0dca)),_0x557b04(0x8,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x9,_0x325f28[_0x315216(0xd2)]),_0x557b04(0xa,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xb,_0x325f28[_0x315216(0x158)]),_0x557b04(0xc,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x556ae0)),_0x557b04(0xe,(0x0,_0x325f28['Optional'])(_0x21eb59))],_0x3a3d85);let _0x37ab5d=class extends _0x1683e1{constructor(_0x49c9a2,_0x22f187,_0x332961,_0x5b830b,_0x2c4305,_0x196147,_0x26789a,_0x3e077d,_0x504862,_0x2b3f06,_0x3f8972,_0x52e9e2,_0x9bb87c,_0x356170){const _0xc07d40=_0x315216;super(_0x49c9a2,_0x332961,_0x22f187,_0x5b830b,_0x2c4305,_0x196147,_0x26789a,_0x3e077d,_0x504862,_0x2b3f06,_0x3f8972,_0x52e9e2,_0x9bb87c,_0x356170),this[_0xc07d40(0x154)]=_0x49c9a2,this['type']=_0x22f187;}async[_0x315216(0x1e3)](){const _0x238189=_0x315216;let _0xfe398b=await super[_0x238189(0x1e3)]();return this[_0x238189(0x41e)](this[_0x238189(0x337)][_0x238189(0xc6)]((_0x1951b1,_0x4bf06e)=>{const _0x4ed562=_0x238189;if(_0x1951b1[_0x4ed562(0x438)]!==_0x325f28[_0x4ed562(0x31f)][_0x4ed562(0xb1)]||_0x4bf06e!=null&&_0x4bf06e['fromCollab']||_0x4bf06e!=null&&_0x4bf06e['onlyLocal'])return;let _0x169e63=_0x1951b1[_0x4ed562(0x296)];if((_0x169e63==null?void 0x0:_0x169e63[_0x4ed562(0x352)])!==this[_0x4ed562(0x154)])return;let _0x141e66=_0x1951b1,_0x1b34d5=this['_compressMutationService']['interceptor'][_0x4ed562(0x2f9)](this[_0x4ed562(0x3e3)][_0x4ed562(0x24b)][_0x4ed562(0x164)]()[_0x4ed562(0x3b8)])([_0x141e66],this[_0x4ed562(0x23b)])||[_0x141e66];this[_0x4ed562(0xfa)](_0x1b34d5[0x0]);})),_0xfe398b;}};_0x37ab5d=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x1a9)])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x2ae)])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28['Inject'])(_0x11f58a)),_0x557b04(0x8,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28[_0x315216(0x158)]),_0x557b04(0xb,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xc,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x556ae0)),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x37ab5d);let _0x4df8c8=class extends _0x1683e1{constructor(_0x245354,_0x2a3f7c,_0x22a372,_0x978694,_0x20e647,_0x3e1336,_0x55738a,_0x3a6dd0,_0x5bbaca,_0xdb883e,_0x9d0a9a,_0x1b9375,_0x3e7e01,_0x4b781b){const _0x5a18c6=_0x315216;super(_0x245354,_0x22a372,_0x2a3f7c,_0x978694,_0x20e647,_0x3e1336,_0x55738a,_0x3a6dd0,_0x5bbaca,_0xdb883e,_0x9d0a9a,_0x1b9375,_0x3e7e01,_0x4b781b),this[_0x5a18c6(0x154)]=_0x245354,this[_0x5a18c6(0x438)]=_0x2a3f7c;}async[_0x315216(0x1e3)](){const _0x48918=_0x315216;let _0x1f243a=await super[_0x48918(0x1e3)]();return this[_0x48918(0x41e)](this['_commandService'][_0x48918(0xc6)]((_0x47fbe0,_0x28fb85)=>{const _0x2158f3=_0x48918;if(_0x47fbe0['type']!==_0x325f28[_0x2158f3(0x31f)]['MUTATION']||_0x28fb85!=null&&_0x28fb85[_0x2158f3(0x3ac)]||_0x28fb85!=null&&_0x28fb85[_0x2158f3(0x207)])return;let _0x1514fd=_0x47fbe0[_0x2158f3(0x296)];if((_0x1514fd==null?void 0x0:_0x1514fd[_0x2158f3(0x352)])!==this[_0x2158f3(0x154)])return;let _0x53f6cb=_0x47fbe0,_0x4f1328=this[_0x2158f3(0x3e3)]['interceptor'][_0x2158f3(0x2f9)](this[_0x2158f3(0x3e3)][_0x2158f3(0x24b)][_0x2158f3(0x164)]()[_0x2158f3(0x3b8)])([_0x53f6cb],this[_0x2158f3(0x23b)])||[_0x53f6cb];this[_0x2158f3(0xfa)](_0x4f1328[0x0]);})),_0x1f243a;}};_0x4df8c8=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['Injector'])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x1a9)])),_0x557b04(0x5,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x2ae)])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x8,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28['ICommandService']),_0x557b04(0xb,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xc,(0x0,_0x325f28['Optional'])(_0x556ae0)),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x4df8c8);let _0x1e25ce=class extends _0x1683e1{constructor(_0x4450af,_0x173fec,_0x271d0c,_0xe738ae,_0xf74c7,_0x4220d1,_0x40d29e,_0x14d28d,_0x19fc63,_0x220032,_0x4c5b9b,_0x5c6ce8,_0x3d3f95,_0x4ee332){const _0x3df10a=_0x315216;super(_0x4450af,_0x271d0c,_0x173fec,_0xe738ae,_0xf74c7,_0x4220d1,_0x40d29e,_0x14d28d,_0x19fc63,_0x220032,_0x4c5b9b,_0x5c6ce8,_0x3d3f95,_0x4ee332),this[_0x3df10a(0x154)]=_0x4450af,this[_0x3df10a(0x438)]=_0x173fec;}async[_0x315216(0x1e3)](){const _0x105e1b=_0x315216;let _0x288b2d=await super['_init']();return this[_0x105e1b(0x41e)](this['_commandService'][_0x105e1b(0xc6)]((_0x2873c2,_0x1a3d8f)=>{const _0x2f0534=_0x105e1b;if(_0x2873c2[_0x2f0534(0x438)]!==_0x325f28['CommandType']['MUTATION']||_0x1a3d8f!=null&&_0x1a3d8f['fromCollab']||_0x1a3d8f!=null&&_0x1a3d8f['onlyLocal'])return;let _0x1fc8db=_0x2873c2[_0x2f0534(0x296)];if((_0x1fc8db==null?void 0x0:_0x1fc8db['unitId'])!==this[_0x2f0534(0x154)])return;let _0x13d07e=_0x2873c2,_0x31fa33=this[_0x2f0534(0x3e3)][_0x2f0534(0x24b)][_0x2f0534(0x2f9)](this[_0x2f0534(0x3e3)][_0x2f0534(0x24b)]['getInterceptPoints']()[_0x2f0534(0x3b8)])([_0x13d07e],this[_0x2f0534(0x23b)])||[_0x13d07e];this[_0x2f0534(0xfa)](_0x31fa33[0x0]);})),_0x288b2d;}};_0x1e25ce=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x1a9)])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['LocaleService'])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba['RevisionService'])),_0x557b04(0x7,(0x0,_0x325f28['Inject'])(_0x11f58a)),_0x557b04(0x8,_0x325f28['IUniverInstanceService']),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28[_0x315216(0x158)]),_0x557b04(0xb,_0x325f28['IPermissionService']),_0x557b04(0xc,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x556ae0)),_0x557b04(0xd,(0x0,_0x325f28['Optional'])(_0x21eb59))],_0x1e25ce);let _0x2665e4=(0x0,_0x325f28['createIdentifier'])(_0x315216(0x259));function _0x4703e7(_0xa29de){const _0x33f14a=_0x315216;let _0x187ddf=_0xa29de[_0x33f14a(0x2a1)],_0x2c7bd1=JSON[_0x33f14a(0x20e)](_0x187ddf);switch(_0x2c7bd1[_0x33f14a(0x291)]){case _0x483212['CombCmd'][_0x33f14a(0xe8)]:case _0x483212[_0x33f14a(0x422)]['HELLO']:{let _0x43c6d4=_0x2c7bd1['infoRsp'];return{..._0x2c7bd1,'data':_0x43c6d4,'cmd':_0x2c7bd1[_0x33f14a(0x291)]};}case _0x483212[_0x33f14a(0x422)]['JOIN']:{let _0x469dd5=_0x2c7bd1['joinRsp'];return{..._0x2c7bd1,'data':_0x469dd5,'cmd':_0x2c7bd1['cmd']};}case _0x483212[_0x33f14a(0x422)][_0x33f14a(0x2de)]:{let _0x3cc0bb=_0x2c7bd1[_0x33f14a(0x205)];switch(_0x3cc0bb[_0x33f14a(0x32e)]){case _0x4524ba['CollaborationEvent'][_0x33f14a(0x465)]:var _0x56f83d;return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':(_0x56f83d=_0x3cc0bb['permissionRejEvent'])==null?void 0x0:_0x56f83d['cs']},'cmd':_0x2c7bd1['cmd']};case _0x4524ba[_0x33f14a(0x1d7)]['CHANGESET_ACK']:var _0x43128e;return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':(_0x43128e=_0x3cc0bb[_0x33f14a(0x1d4)])==null?void 0x0:_0x43128e['cs']},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba['CollaborationEvent']['NEW_CHANGESETS']:var _0x485c47;return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':(_0x485c47=_0x3cc0bb[_0x33f14a(0x182)])==null?void 0x0:_0x485c47['cs']},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x2a8)]:var _0x143a5f;return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':(_0x143a5f=_0x3cc0bb['csRejEvent'])==null?void 0x0:_0x143a5f['cs']},'cmd':_0x2c7bd1['cmd']};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0xab)]:var _0x3fe394;return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':(_0x3fe394=_0x3cc0bb[_0x33f14a(0xd4)])==null?void 0x0:_0x3fe394['cs']},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x3dc)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb['updateCursorEvent']},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x2a7)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x3c2)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x29c)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x1ca)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x324)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x310)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba['CollaborationEvent'][_0x33f14a(0x3e2)]:case _0x4524ba[_0x33f14a(0x1d7)]['LIVESHARE_OPERATION']:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x369)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba['CollaborationEvent'][_0x33f14a(0x1e4)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x310)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x2c7bd1,'data':_0x3cc0bb,'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba['CollaborationEvent'][_0x33f14a(0x374)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x408)]},'cmd':_0x2c7bd1['cmd']};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x1ce)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x2bf)]},'cmd':_0x2c7bd1['cmd']};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x15e)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0xae)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x469)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0xc0)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};default:return _0x2c7bd1;}}default:return _0x2c7bd1;}}function _0x3a4172(_0x36f777){const _0x11ec09=_0x315216;switch(_0x36f777[_0x11ec09(0x291)]){case _0x483212[_0x11ec09(0x422)]['HEARTBEAT']:case _0x483212[_0x11ec09(0x422)][_0x11ec09(0x34e)]:return JSON[_0x11ec09(0x302)]({'cmd':_0x36f777[_0x11ec09(0x291)],'routeKey':_0x36f777['routeKey']});case _0x483212['CombCmd'][_0x11ec09(0x9c)]:{let _0x2bfc44;switch(_0x36f777['data']['eventID']){case _0x4524ba['CollaborationEvent'][_0x11ec09(0x3dc)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x3dc)],'updateCursorEvent':_0x36f777['data'][_0x11ec09(0x2a1)]};break;case _0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x29c)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x29c)],'leaveEvent':_0x36f777[_0x11ec09(0x2a1)][_0x11ec09(0x2a1)]};break;case _0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x2a7)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x2a7)],'joinEvent':_0x36f777['data']['data']};break;case _0x4524ba['CollaborationEvent'][_0x11ec09(0x324)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x324)],'liveShareNewHost':_0x36f777[_0x11ec09(0x2a1)][_0x11ec09(0x2a1)]};break;case _0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x262)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x262)],'liveShareOperation':_0x36f777[_0x11ec09(0x2a1)][_0x11ec09(0x2a1)]};break;case _0x4524ba['CollaborationEvent'][_0x11ec09(0x1e4)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x36f777[_0x11ec09(0x2a1)][_0x11ec09(0x2a1)]};break;case _0x4524ba['CollaborationEvent'][_0x11ec09(0x3a3)]:_0x2bfc44={'eventID':_0x4524ba['CollaborationEvent'][_0x11ec09(0x3a3)],'liveShareRequestHost':_0x36f777[_0x11ec09(0x2a1)][_0x11ec09(0x2a1)]};break;case _0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x3e2)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x3e2)]};break;default:_0x2bfc44={'eventID':_0x36f777[_0x11ec09(0x2a1)]['eventID']};}return JSON[_0x11ec09(0x302)]({'cmd':_0x36f777[_0x11ec09(0x291)],'routeKey':_0x36f777[_0x11ec09(0x241)],'collaMsg':_0x2bfc44});}case _0x483212[_0x11ec09(0x422)][_0x11ec09(0x3b6)]:return JSON[_0x11ec09(0x302)]({'cmd':_0x36f777[_0x11ec09(0x291)],'routeKey':_0x36f777[_0x11ec09(0x241)],'joinReq':_0x36f777['data']});case _0x483212[_0x11ec09(0x422)][_0x11ec09(0x239)]:return JSON['stringify']({'cmd':_0x36f777['cmd'],'routeKey':_0x36f777[_0x11ec09(0x241)],'leaveReq':_0x36f777[_0x11ec09(0x2a1)]});default:throw Error(_0x11ec09(0x274));}}let _0x84bd5=(0x0,_0x325f28[_0x315216(0x1ac)])(_0x315216(0x18d));function _0x121798(_0x7d55a0,_0x130a41,_0x270597){const _0xf56efa=_0x315216;return _0x7d55a0+'/'+_0x130a41+_0xf56efa(0x172)+_0x270597+_0xf56efa(0x3cb);}let _0x121d26=class extends _0x325f28[_0x315216(0x14a)]{constructor(_0x25458d,_0x5820d4,_0x450a79,_0x2db1ac,_0x4d4d9a){const _0x26da50=_0x315216;super(),this['_injector']=_0x25458d,this[_0x26da50(0xde)]=_0x5820d4,this['_configService']=_0x450a79,this[_0x26da50(0xb8)]=_0x2db1ac,this[_0x26da50(0x375)]=_0x4d4d9a;}[_0x315216(0x44e)](_0x43d68e){const _0x304004=_0x315216;let _0x5e7e09=this[_0x304004(0xe7)][_0x304004(0x1df)](_0x18cba4['ISocketService']);if(!_0x5e7e09)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x35c3bf=_0x5e7e09['createSocket'](_0x43d68e);if(!_0x35c3bf)throw Error(_0x304004(0x203));let _0x5b6ae3=new _0x325f28[(_0x304004(0x16f))](),_0x2bdad2=new _0x1fdbe2[(_0x304004(0x112))]();_0x5b6ae3[_0x304004(0xd9)](_0x35c3bf[_0x304004(0x256)][_0x304004(0x28f)](_0x565e4e=>_0x2bdad2['next'](_0x565e4e))),_0x5b6ae3[_0x304004(0xd9)]((0x0,_0x325f28[_0x304004(0x25f)])(()=>_0x2bdad2[_0x304004(0x313)]()));let _0x39685d=new _0x1fdbe2[(_0x304004(0x112))]();_0x5b6ae3[_0x304004(0xd9)](_0x35c3bf[_0x304004(0x200)]['subscribe'](_0x2454ae=>_0x39685d[_0x304004(0x407)](_0x2454ae))),_0x5b6ae3['add']((0x0,_0x325f28[_0x304004(0x25f)])(()=>_0x39685d[_0x304004(0x313)]()));let _0x5a16a4=new _0x1fdbe2[(_0x304004(0x112))]();_0x5b6ae3['add'](_0x35c3bf[_0x304004(0x32a)][_0x304004(0x28f)](_0x52e8eb=>{let _0x4eaeff=_0x4703e7(_0x52e8eb);_0x5a16a4['next'](_0x4eaeff);})),_0x5b6ae3[_0x304004(0xd9)]((0x0,_0x325f28[_0x304004(0x25f)])(()=>_0x5a16a4[_0x304004(0x313)]()));let _0x1b5ad9,_0xb9e22b=()=>{const _0x36de22=_0x304004;_0x39685d[_0x36de22(0x407)](new Event(_0x36de22(0x16c))),_0x2bdad2[_0x36de22(0x407)](new Event(_0x36de22(0x16c))),_0x1b5ad9[_0x36de22(0x358)]();};return _0x1b5ad9={'memberID':'','close$':_0x2bdad2[_0x304004(0xf1)](),'error$':_0x39685d[_0x304004(0xf1)](),'open$':_0x35c3bf[_0x304004(0x3bb)],'message$':_0x5a16a4[_0x304004(0xf1)](),'send':(_0x38e340,_0x309bd7)=>{const _0x51e3f8=_0x304004;if(_0x38e340[_0x51e3f8(0x291)]===_0x483212[_0x51e3f8(0x422)][_0x51e3f8(0x9c)]){if(_0x38e340[_0x51e3f8(0x2a1)]['eventID']===_0x4524ba[_0x51e3f8(0x1d7)][_0x51e3f8(0x227)]){let _0x36c241=this[_0x51e3f8(0x10a)](_0x1b5ad9,_0x38e340['data'],(_0x309bd7==null?void 0x0:_0x309bd7[_0x51e3f8(0x314)])??0x1d4c0);return _0x36c241['catch'](()=>void 0x0),_0x36c241;}if(_0x38e340['data'][_0x51e3f8(0x32e)]===_0x4524ba['CollaborationEvent'][_0x51e3f8(0x2dd)]){let _0x377fd7=_0x38e340[_0x51e3f8(0x2a1)];this[_0x51e3f8(0x204)](_0x377fd7)[_0x51e3f8(0xd0)](_0x12e792=>{const _0x12f75f=_0x51e3f8;_0x5a16a4[_0x12f75f(0x407)]({'cmd':_0x483212[_0x12f75f(0x422)][_0x12f75f(0x2de)],'code':_0x483212[_0x12f75f(0x353)]['OK'],'routeKey':_0x377fd7[_0x12f75f(0x2a1)][_0x12f75f(0x154)],'routeType':'','data':{'eventID':_0x4524ba[_0x12f75f(0x1d7)][_0x12f75f(0xa9)],'data':{'changesets':_0x12e792}}});})[_0x51e3f8(0x195)](_0x48cf5c=>{const _0xfa009c=_0x51e3f8;this[_0xfa009c(0xb8)][_0xfa009c(0xd6)](_0x48cf5c),_0xb9e22b();});return;}}_0x35c3bf['send'](_0x3a4172(_0x38e340));},'close':()=>{const _0x17dd57=_0x304004;_0x35c3bf['close'](),_0x5b6ae3[_0x17dd57(0x15a)]();}},_0x1b5ad9;}['_submitChangeset'](_0x14b24c,_0x45b21c,_0x21f7a0){const _0x5ec540=_0x315216;let {unitType:_0x5cdf6e,unitID:_0x9f2e7e,changeset:_0x4404dd}=_0x45b21c[_0x5ec540(0x2a1)],_0x2be8df={'unitID':_0x9f2e7e,'memberID':_0x14b24c[_0x5ec540(0x471)],'type':_0x5cdf6e,'changeset':(0x0,_0x4524ba[_0x5ec540(0xe4)])(_0x4404dd)},_0x110197=this[_0x5ec540(0x1ed)][_0x5ec540(0x455)](_0x3a344c),_0x2db7ae=_0x121798((_0x110197==null?void 0x0:_0x110197['collabSubmitChangesetUrl'])??_0x5ec540(0x315),_0x5cdf6e,_0x9f2e7e);return(0x0,_0x1fdbe2[_0x5ec540(0x214)])(this[_0x5ec540(0xde)]['stream']('POST',_0x2db7ae,{'body':_0x2be8df})['pipe']((0x0,_0x1fdbe2[_0x5ec540(0x22a)])(_0x5b808d=>_0x5b808d[_0x5ec540(0x438)]===_0x18cba4['HTTPEventType'][_0x5ec540(0xd8)]),(0x0,_0x1fdbe2[_0x5ec540(0x314)])(_0x21f7a0)))[_0x5ec540(0xd0)](()=>void 0x0,_0x356fb2=>{const _0x7430e1=_0x5ec540;throw this[_0x7430e1(0xb8)][_0x7430e1(0xbf)](_0x7430e1(0x301),'submitting\x20changeset\x20'+_0x4404dd[_0x7430e1(0x402)]+':'+_0x4404dd[_0x7430e1(0x3d0)]+'\x20failed:\x20'+_0x29c25b(_0x356fb2)),_0x356fb2;});}async[_0x315216(0x204)](_0x41984f){const _0x34f606=_0x315216;let {unitID:_0x1eff37,from:_0x5e9529,to:_0x501979,unitType:_0x2e88f5}=_0x41984f[_0x34f606(0x2a1)];return(await this[_0x34f606(0x375)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x1eff37,'type':_0x2e88f5,'from':_0x5e9529,'to':_0x501979}))['changesets'][_0x34f606(0x403)](_0x2c84cc=>((_0x2c84cc[_0x34f606(0x383)]===null||_0x2c84cc[_0x34f606(0x383)]===void 0x0)&&(_0x2c84cc['mutations']=[]),_0x2c84cc));}};_0x121d26=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28['Inject'])(_0x325f28['Injector'])),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4[_0x315216(0x149)])),_0x557b04(0x2,_0x325f28[_0x315216(0x1cf)]),_0x557b04(0x3,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x4,_0x4524ba[_0x315216(0x289)])],_0x121d26);function _0x29c25b(_0xfe4758){const _0x1b9bec=_0x315216;return _0xfe4758 instanceof _0x18cba4[_0x1b9bec(0x2fe)]?_0x1b9bec(0x2f7)+(_0xfe4758[_0x1b9bec(0x326)]??0x0):_0xfe4758 instanceof Error?_0xfe4758['name']:String(_0xfe4758);}let _0xe6d4d9=(0x0,_0x325f28['createIdentifier'])(_0x315216(0x17b));function _0x1b6d59(_0x4cfd8c={}){const _0x5e7eda=_0x315216;return _0x4cfd8c['resolveUnit']?{'resolveUnit':_0x4cfd8c['resolveUnit']}:{'resolveUnit':_0x498d30=>({'target':{'unitId':_0x498d30[_0x5e7eda(0x352)],'unitType':_0x498d30[_0x5e7eda(0x318)]}})};}function _0x34b57a(_0x458d84,_0x36f9f5,_0x364e50){const _0x301610=_0x315216;let _0x4192ad=_0x364e50[_0x301610(0x41c)][_0x301610(0x253)];if(_0x4192ad!=null&&_0x4192ad[_0x301610(0x34b)]()==='')throw Error(_0x301610(0x433));if(!_0x364e50[_0x301610(0x41c)][_0x301610(0x352)])throw Error(_0x301610(0x15b));return{'localUnitId':_0x458d84,'unitType':_0x36f9f5,'target':{'endpoint':_0x4192ad,'unitId':_0x364e50[_0x301610(0x41c)]['unitId'],'unitType':_0x364e50[_0x301610(0x41c)][_0x301610(0x318)]??_0x36f9f5},'changeset':_0x364e50[_0x301610(0x275)]};}let _0x2c8ade=class extends _0x325f28[_0x315216(0x14a)]{constructor(_0x5d524d,_0x3f8519,_0x5592d9,_0x5b95c6,_0x576dab,_0x3ca042){const _0x5a673e=_0x315216;super(),this[_0x5a673e(0xe7)]=_0x5d524d,this[_0x5a673e(0xb8)]=_0x3f8519,this[_0x5a673e(0x1ed)]=_0x5592d9,this[_0x5a673e(0x13e)]=_0x5b95c6,this['_collaborationUIEventService']=_0x576dab,this['_adapter']=_0x3ca042,_0x4da1f9(this,_0x5a673e(0x1af),new Map()),_0x4da1f9(this,'_pendingSessions',new Map()),_0x4da1f9(this,'_sessionChannels',new Map()),_0x4da1f9(this,_0x5a673e(0x1a0),new Map()),_0x4da1f9(this,_0x5a673e(0x480),void 0x0),_0x4da1f9(this,_0x5a673e(0x42b),this['_getSocketChannel'](void 0x0)[_0x5a673e(0x42b)][_0x5a673e(0xf1)]()),_0x4da1f9(this,_0x5a673e(0x3c5),new _0x1fdbe2['BehaviorSubject'](0x0)),_0x4da1f9(this,'status$',this[_0x5a673e(0x3c5)]['asObservable']());}[_0x315216(0x1cc)](){const _0x1173b1=_0x315216;this[_0x1173b1(0x480)]||(this[_0x1173b1(0x480)]=this['_injector']['get'](_0x2665e4,_0x325f28[_0x1173b1(0x323)][_0x1173b1(0x3f1)])??void 0x0,this[_0x1173b1(0x480)]&&this['disposeWithMe'](this[_0x1173b1(0x480)]['online$'][_0x1173b1(0x28f)](_0x2fd1d8=>{const _0x4279b7=_0x1173b1;_0x2fd1d8&&this[_0x4279b7(0x3b1)](),_0x2fd1d8||this[_0x4279b7(0x1a0)]['forEach'](_0x1df1fa=>this[_0x4279b7(0x2d2)](_0x1df1fa));})));}[_0x315216(0x15a)](){const _0x9c6294=_0x315216;super[_0x9c6294(0x15a)](),this[_0x9c6294(0x1a0)]['forEach'](_0x738a82=>{const _0x378748=_0x9c6294;var _0x19b16e,_0x40c947,_0x46783a;(_0x19b16e=_0x738a82[_0x378748(0xb9)])==null||_0x19b16e['unsubscribe'](),_0x738a82[_0x378748(0xb9)]=null,this[_0x378748(0x42e)](_0x738a82),this['_clearRetryConnectingTimer'](_0x738a82),this[_0x378748(0x2ea)](_0x738a82),this[_0x378748(0x1c6)](_0x738a82),(_0x40c947=_0x738a82[_0x378748(0x42b)][_0x378748(0x3aa)]())==null||_0x40c947['close'](),(_0x46783a=_0x738a82['candidateSocket'])==null||_0x46783a[_0x378748(0x358)](),_0x738a82[_0x378748(0x42b)][_0x378748(0x313)]();}),this[_0x9c6294(0x1a0)][_0x9c6294(0x14e)](),this[_0x9c6294(0x1af)]['forEach'](_0x4b1eb6=>_0x4b1eb6[_0x9c6294(0x15a)]()),this[_0x9c6294(0x1af)][_0x9c6294(0x14e)](),this[_0x9c6294(0xbd)][_0x9c6294(0x14e)](),this[_0x9c6294(0x3c5)][_0x9c6294(0x313)]();}async[_0x315216(0x3fb)](_0x2ba215,_0x3cbc3f){const _0x11bcc7=_0x315216;if(this['_listenToNetworkCondition'](),this[_0x11bcc7(0x1af)][_0x11bcc7(0xd1)](_0x2ba215))return this['_sessions'][_0x11bcc7(0x1df)](_0x2ba215);let _0x412c7e=this[_0x11bcc7(0x17d)][_0x11bcc7(0x1df)](_0x2ba215);if(_0x412c7e)return _0x412c7e;let _0x568689=this[_0x11bcc7(0x2c9)](_0x2ba215,_0x3cbc3f);this[_0x11bcc7(0x17d)][_0x11bcc7(0x232)](_0x2ba215,_0x568689);try{return await _0x568689;}finally{this[_0x11bcc7(0x17d)]['delete'](_0x2ba215);}}async['_createSession'](_0x18bd9,_0x24c65d){const _0x30b41d=_0x315216;let _0x2ceca4=await this[_0x30b41d(0x3eb)](_0x18bd9,_0x24c65d),_0x5ecf42=this[_0x30b41d(0x283)](_0x2ceca4[_0x30b41d(0x41c)][_0x30b41d(0x253)]);this[_0x30b41d(0xca)](_0x5ecf42);let _0x1f955b=this[_0x30b41d(0xe7)][_0x30b41d(0x40e)](_0x7f99f9,_0x2ceca4,_0x5ecf42['socket$'][_0x30b41d(0xf1)]());return this[_0x30b41d(0x1af)][_0x30b41d(0x232)](_0x18bd9,_0x1f955b),this[_0x30b41d(0xbd)][_0x30b41d(0x232)](_0x18bd9,_0x5ecf42[_0x30b41d(0x217)]),_0x1f955b;}[_0x315216(0x316)](_0x1720e4){const _0x530df8=_0x315216;let _0x2ca199=this['_sessions']['get'](_0x1720e4),_0x3ec5a5=this['_sessionChannels'][_0x530df8(0x1df)](_0x1720e4);if(_0x2ca199&&(this[_0x530df8(0x1af)]['delete'](_0x1720e4),this['_sessionChannels'][_0x530df8(0x385)](_0x1720e4),_0x2ca199[_0x530df8(0x358)]()),_0x3ec5a5!==void 0x0&&!this[_0x530df8(0x30b)](_0x3ec5a5)){let _0xc9f356=this[_0x530df8(0x1a0)]['get'](_0x3ec5a5);_0xc9f356&&this[_0x530df8(0x2d2)](_0xc9f356);}}[_0x315216(0x3b1)](){const _0x190d86=_0x315216;(this[_0x190d86(0x1a0)][_0x190d86(0x3e0)]?[...this[_0x190d86(0x1a0)][_0x190d86(0x133)]()]:[this[_0x190d86(0x283)](void 0x0)])[_0x190d86(0x216)](_0x397c02=>{const _0x3574cf=_0x190d86;!this[_0x3574cf(0x30b)](_0x397c02[_0x3574cf(0x217)])||_0x397c02['socketReady']||_0x397c02['candidateSocket']||_0x397c02[_0x3574cf(0x213)]||(_0x397c02['retryCount']=0x0,this['_clearRetryConnectingTimer'](_0x397c02),this[_0x3574cf(0xe5)](_0x397c02));});}[_0x315216(0x3e4)](_0x3f744f){const _0x431700=_0x315216;_0x3f744f['retryConnectingTimer']!=null&&(clearTimeout(_0x3f744f[_0x431700(0x169)]),_0x3f744f[_0x431700(0x169)]=null);}[_0x315216(0x32c)](_0x27decf){const _0x2a9f2c=_0x315216;let _0x2e8685=this[_0x2a9f2c(0x1ed)][_0x2a9f2c(0x455)](_0x3a344c),_0x2a6f2b=_0x27decf['endpoint']??(_0x2e8685==null?void 0x0:_0x2e8685['collabWebSocketUrl'])??'ws://127.0.0.1:8000/universer-api/comb/connect';return this[_0x2a9f2c(0x13e)]['createSocket'](_0x2a6f2b);}async[_0x315216(0xca)](_0x36e61c){const _0x130ca6=_0x315216;var _0x53edfa;if(this[_0x130ca6(0x43c)]||((_0x53edfa=this['_networkConditionService'])==null?void 0x0:_0x53edfa[_0x130ca6(0x115)])===!0x1||_0x36e61c[_0x130ca6(0x3b3)]||_0x36e61c[_0x130ca6(0x365)]||_0x36e61c[_0x130ca6(0x213)])return;let _0x2dbabb={};_0x36e61c[_0x130ca6(0x213)]=_0x2dbabb;try{let _0x34c4aa=await this[_0x130ca6(0x32c)](_0x36e61c);if(this[_0x130ca6(0x43c)]||_0x36e61c[_0x130ca6(0x213)]!==_0x2dbabb){_0x34c4aa==null||_0x34c4aa[_0x130ca6(0x358)]();return;}if(_0x34c4aa){var _0x791420;_0x36e61c[_0x130ca6(0x365)]=_0x34c4aa,_0x36e61c[_0x130ca6(0x191)]=setTimeout(()=>{const _0x20e4a3=_0x130ca6;!this[_0x20e4a3(0x43c)]&&_0x36e61c[_0x20e4a3(0x365)]===_0x34c4aa&&this[_0x20e4a3(0x418)](_0x36e61c);},0x4e20);let _0x5b47b8=_0x34c4aa['send'];_0x34c4aa[_0x130ca6(0x325)]=(_0x2baf09,_0x1d7624)=>(_0x2baf09[_0x130ca6(0x291)]!==_0x483212[_0x130ca6(0x422)][_0x130ca6(0x239)]&&!_0x2428fb(_0x2baf09)&&_0x36e61c['socketReady']&&_0x36e61c[_0x130ca6(0x42b)][_0x130ca6(0x3aa)]()===_0x34c4aa&&this['_rescheduleHeartbeat'](_0x36e61c),_0x1d7624===void 0x0?_0x5b47b8[_0x130ca6(0x20c)](_0x34c4aa,_0x2baf09):_0x5b47b8[_0x130ca6(0x20c)](_0x34c4aa,_0x2baf09,_0x1d7624)),(_0x791420=_0x36e61c[_0x130ca6(0xb9)])==null||_0x791420['unsubscribe']();let _0x1e0224=new _0x1fdbe2[(_0x130ca6(0x3ad))]();_0x36e61c[_0x130ca6(0xb9)]=_0x1e0224,_0x1e0224[_0x130ca6(0xd9)](_0x34c4aa[_0x130ca6(0x32a)][_0x130ca6(0x28f)](_0x16d9a3=>this[_0x130ca6(0x102)](_0x36e61c,_0x34c4aa,_0x16d9a3))),_0x1e0224['add'](_0x34c4aa['error$']['pipe']((0x0,_0xa8b74d[_0x130ca6(0xcf)])(0x1))[_0x130ca6(0x28f)](_0x207c93=>this[_0x130ca6(0xb8)][_0x130ca6(0xd6)](_0x130ca6(0x1c5),_0x207c93))),_0x1e0224[_0x130ca6(0xd9)](_0x34c4aa[_0x130ca6(0x3bb)][_0x130ca6(0xa4)]((0x0,_0xa8b74d[_0x130ca6(0xcf)])(0x1))['subscribe'](()=>{const _0x5e9361=_0x130ca6;this[_0x5e9361(0x139)](_0x36e61c,_0x34c4aa);})),_0x1e0224['add'](_0x34c4aa[_0x130ca6(0x256)][_0x130ca6(0xa4)]((0x0,_0xa8b74d['take'])(0x1))[_0x130ca6(0x28f)](_0x4ae19f=>{const _0x3c6583=_0x130ca6;(_0x36e61c[_0x3c6583(0x365)]===_0x34c4aa||_0x36e61c[_0x3c6583(0x42b)][_0x3c6583(0x3aa)]()===_0x34c4aa)&&(this['_logService'][_0x3c6583(0x3e5)]('[CollaborationSessionService]',_0x3c6583(0x108),_0x4ae19f),this[_0x3c6583(0x418)](_0x36e61c));}));}}catch(_0x290f85){if(_0x36e61c[_0x130ca6(0x213)]!==_0x2dbabb)return;this[_0x130ca6(0xb8)][_0x130ca6(0xd6)](_0x290f85),this[_0x130ca6(0x418)](_0x36e61c);}finally{_0x36e61c['connectionAttempt']===_0x2dbabb&&(_0x36e61c[_0x130ca6(0x213)]=null);}}[_0x315216(0x139)](_0x30e35c,_0x34b2c7){const _0xf6d635=_0x315216;this[_0xf6d635(0x43c)]||_0x30e35c['candidateSocket']!==_0x34b2c7||(this[_0xf6d635(0xb8)][_0xf6d635(0x3e5)](_0xf6d635(0x39e),_0xf6d635(0x361)),_0x34b2c7['send']({'cmd':_0x483212[_0xf6d635(0x422)]['HELLO']}));}['_onOffline'](_0xcf00b0){const _0x2b1efa=_0x315216;var _0x40cab9;let _0x1928cd=_0xcf00b0['socket$'][_0x2b1efa(0x3aa)]()??_0xcf00b0[_0x2b1efa(0x365)];_0xcf00b0['connectionAttempt']=null,_0xcf00b0['socketReady']=!0x1,_0xcf00b0[_0x2b1efa(0x365)]=null,(_0x40cab9=_0xcf00b0[_0x2b1efa(0xb9)])==null||_0x40cab9[_0x2b1efa(0x223)](),_0xcf00b0[_0x2b1efa(0xb9)]=null,this[_0x2b1efa(0x3c5)]['next'](0x2),_0xcf00b0[_0x2b1efa(0x42b)]['next'](null),this[_0x2b1efa(0x3e4)](_0xcf00b0),this[_0x2b1efa(0x42e)](_0xcf00b0),this['_clearTimeoutTimer'](_0xcf00b0),this[_0x2b1efa(0x1c6)](_0xcf00b0),_0x1928cd==null||_0x1928cd[_0x2b1efa(0x358)]();}[_0x315216(0x418)](_0x39512f){const _0x1b2b2f=_0x315216;var _0x56e55b;this[_0x1b2b2f(0x2d2)](_0x39512f),!this[_0x1b2b2f(0x43c)]&&((_0x56e55b=this[_0x1b2b2f(0x480)])==null?void 0x0:_0x56e55b[_0x1b2b2f(0x115)])!==!0x1&&this[_0x1b2b2f(0x30b)](_0x39512f['endpointKey'])&&(_0x39512f['retryCount']<(this[_0x1b2b2f(0x1ed)]['getConfig'](_0x1b2b2f(0x2c7))??0x3)?(this[_0x1b2b2f(0x190)]['emitEvent']({'id':_0x1b2b2f(0x28c)}),this[_0x1b2b2f(0xe5)](_0x39512f)):this[_0x1b2b2f(0x190)][_0x1b2b2f(0x436)]({'id':_0x1b2b2f(0x2c1)}));}[_0x315216(0xe5)](_0x41bce4){const _0x5c6f46=_0x315216;let _0x3e4edd=_0x41bce4[_0x5c6f46(0x40f)],_0x15ef86=this[_0x5c6f46(0x1ed)][_0x5c6f46(0x455)](_0x3a344c),_0x4bac81=_0x3e4edd===0x0?0x0:((_0x15ef86==null?void 0x0:_0x15ef86[_0x5c6f46(0x30f)])??0x4e20)*0x2**_0x3e4edd;_0x41bce4[_0x5c6f46(0x169)]=setTimeout(()=>{const _0x5ebceb=_0x5c6f46;clearTimeout(_0x41bce4[_0x5ebceb(0x169)]),_0x41bce4[_0x5ebceb(0x169)]=null,this[_0x5ebceb(0xca)](_0x41bce4);},_0x4bac81),_0x41bce4[_0x5c6f46(0x40f)]+=0x1;}async[_0x315216(0x3eb)](_0x4e7cad,_0x22ad34){const _0x2b4149=_0x315216;return _0x34b57a(_0x4e7cad,_0x22ad34,await this['_adapter'][_0x2b4149(0x10e)]({'unitId':_0x4e7cad,'unitType':_0x22ad34}));}[_0x315216(0x102)](_0x2eac8f,_0x1f088b,_0x26967c){const _0x5868b4=_0x315216;if(this[_0x5868b4(0x43c)]||_0x2eac8f[_0x5868b4(0x365)]!==_0x1f088b&&_0x2eac8f[_0x5868b4(0x42b)]['getValue']()!==_0x1f088b)return;let {cmd:_0x460b87}=_0x26967c;if(_0x460b87===_0x483212[_0x5868b4(0x422)][_0x5868b4(0x34e)]&&!_0x2eac8f[_0x5868b4(0x3b3)]){var _0x47f826;if((_0x26967c['code']??_0x483212[_0x5868b4(0x353)]['OK'])!==_0x483212[_0x5868b4(0x353)]['OK']||!((_0x47f826=_0x26967c[_0x5868b4(0x2a1)])!=null&&_0x47f826[_0x5868b4(0x471)])){this['_onConnectionFailed'](_0x2eac8f);return;}this[_0x5868b4(0x42e)](_0x2eac8f),_0x1f088b[_0x5868b4(0x471)]=_0x26967c['data'][_0x5868b4(0x471)],_0x2eac8f[_0x5868b4(0x40f)]=0x0,_0x2eac8f['socketReady']=!0x0,_0x2eac8f[_0x5868b4(0x365)]=null,_0x2eac8f['socket$'][_0x5868b4(0x407)](_0x1f088b),this[_0x5868b4(0x3c5)][_0x5868b4(0x407)](0x3);}_0x460b87===_0x483212[_0x5868b4(0x422)][_0x5868b4(0xe8)]&&this['_clearTimeoutTimer'](_0x2eac8f),this[_0x5868b4(0x459)](_0x2eac8f);}['_hasSessionsForEndpoint'](_0x4c1976){const _0x29b928=_0x315216;return[...this['_sessionChannels'][_0x29b928(0x133)]()]['some'](_0x270d06=>_0x270d06===_0x4c1976);}[_0x315216(0x283)](_0x555573){const _0x1b9c2e=_0x315216;let _0x414f73=_0x555573??'',_0x15af4b=this[_0x1b9c2e(0x1a0)][_0x1b9c2e(0x1df)](_0x414f73);if(_0x15af4b)return _0x15af4b;let _0x4018a6={'endpointKey':_0x414f73,'endpoint':_0x555573,'socket$':new _0x1fdbe2[(_0x1b9c2e(0x1c7))](void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x1b9c2e(0x1a0)]['set'](_0x414f73,_0x4018a6),_0x4018a6;}[_0x315216(0x42e)](_0x4685c0){const _0x2b35ae=_0x315216;_0x4685c0['handshakeTimer']!=null&&(clearTimeout(_0x4685c0[_0x2b35ae(0x191)]),_0x4685c0['handshakeTimer']=null);}[_0x315216(0x459)](_0xa351fe){const _0x46e7bd=_0x315216;this[_0x46e7bd(0x1c6)](_0xa351fe),_0xa351fe[_0x46e7bd(0x3b3)]&&(_0xa351fe[_0x46e7bd(0x303)]=setTimeout(()=>this[_0x46e7bd(0x31b)](_0xa351fe),this['_configService'][_0x46e7bd(0x455)](_0x46e7bd(0x388))??0x7530));}[_0x315216(0x31b)](_0xcf432a){const _0x10f797=_0x315216;let _0x45257b=_0xcf432a[_0x10f797(0x42b)][_0x10f797(0x3aa)]();_0xcf432a[_0x10f797(0x3b3)]&&_0x45257b&&(_0x45257b[_0x10f797(0x325)]({'cmd':_0x483212[_0x10f797(0x422)][_0x10f797(0xe8)]}),this[_0x10f797(0x31e)](_0xcf432a));}[_0x315216(0x31e)](_0x4ed53e){const _0x557ffe=_0x315216;_0x4ed53e[_0x557ffe(0x2f5)]=setTimeout(()=>this[_0x557ffe(0x418)](_0x4ed53e),this[_0x557ffe(0x1ed)][_0x557ffe(0x455)](_0x557ffe(0x113))??0x4e20);}[_0x315216(0x1c6)](_0x298537){const _0x3dea0a=_0x315216;_0x298537[_0x3dea0a(0x303)]!=null&&(clearTimeout(_0x298537[_0x3dea0a(0x303)]),_0x298537[_0x3dea0a(0x303)]=null);}[_0x315216(0x2ea)](_0x875d62){const _0x184702=_0x315216;_0x875d62[_0x184702(0x2f5)]!=null&&(clearTimeout(_0x875d62[_0x184702(0x2f5)]),_0x875d62[_0x184702(0x2f5)]=null);}};_0x2c8ade=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x1,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x2,_0x325f28['IConfigService']),_0x557b04(0x3,_0x84bd5),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x5,_0xe6d4d9)],_0x2c8ade);function _0x2428fb(_0x5868e2){const _0x5b591a=_0x315216;if(_0x5868e2[_0x5b591a(0x291)]!==_0x483212[_0x5b591a(0x422)][_0x5b591a(0x9c)])return!0x1;let _0x132886=_0x5868e2[_0x5b591a(0x2a1)][_0x5b591a(0x32e)];return _0x132886===_0x4524ba[_0x5b591a(0x1d7)][_0x5b591a(0x227)]||_0x132886===_0x4524ba[_0x5b591a(0x1d7)]['FETCH_MISSING'];}let _0x4b66f1=class extends _0x325f28[_0x315216(0x10c)]{constructor(_0x56456b,_0x35a390,_0x7c51cb,_0x1517a7){const _0x3f6f50=_0x315216;var _0x28c5e9;super(),this[_0x3f6f50(0xe7)]=_0x56456b,this['_collabSessionService']=_0x35a390,this[_0x3f6f50(0x1ed)]=_0x7c51cb,this[_0x3f6f50(0x23b)]=_0x1517a7,_0x4da1f9(this,'_entities',new Map()),_0x4da1f9(this,_0x3f6f50(0x22e),new _0x1fdbe2[(_0x3f6f50(0x112))]()),_0x4da1f9(this,_0x3f6f50(0x137),this[_0x3f6f50(0x22e)][_0x3f6f50(0xf1)]()),((_0x28c5e9=this['_configService']['getConfig']('collaboration-client.config'))==null?void 0x0:_0x28c5e9[_0x3f6f50(0x441)])!==!0x1&&this[_0x3f6f50(0x1e3)]();}[_0x315216(0x15a)](){const _0xd13161=_0x315216;super[_0xd13161(0x15a)](),this[_0xd13161(0x9e)][_0xd13161(0x216)](_0x5537ca=>_0x5537ca[_0xd13161(0x15a)]()),this[_0xd13161(0x9e)][_0xd13161(0x14e)]();}[_0x315216(0xa3)](_0x4ed8a8){const _0x50ea6d=_0x315216;return this[_0x50ea6d(0x9e)][_0x50ea6d(0x1df)](_0x4ed8a8)??null;}[_0x315216(0x44a)](){const _0x578593=_0x315216;return Array[_0x578593(0x29a)](this[_0x578593(0x9e)][_0x578593(0x133)]());}[_0x315216(0x109)](_0x3277e1){const _0x415307=_0x315216;let _0x1a9c03=this[_0x415307(0xa3)](_0x3277e1);return _0x1a9c03?(0x0,_0x1fdbe2['of'])(_0x1a9c03):this[_0x415307(0x22e)]['pipe']((0x0,_0xa8b74d[_0x415307(0x22a)])(_0x4b0d9a=>_0x4b0d9a[_0x415307(0x154)]===_0x3277e1));}[_0x315216(0x2e2)](_0x982780){const _0x1f16ea=_0x315216;return(0x0,_0x1fdbe2[_0x1f16ea(0x214)])(this[_0x1f16ea(0x109)](_0x982780)[_0x1f16ea(0xa4)]((0x0,_0xa8b74d[_0x1f16ea(0x403)])(()=>void 0x0)));}[_0x315216(0x386)](_0x29c3c5){const _0x1d36db=_0x315216;if(_0x29c3c5!==void 0x0){var _0x120336;return((_0x120336=this['_entities'][_0x1d36db(0x1df)](_0x29c3c5))==null?void 0x0:_0x120336[_0x1d36db(0x386)]())??!0x1;}for(let _0x376280 of this[_0x1d36db(0x9e)][_0x1d36db(0x133)]())if(_0x376280[_0x1d36db(0x386)]())return!0x0;return!0x1;}['_init'](){const _0x2ff494=_0x315216;this[_0x2ff494(0x23b)][_0x2ff494(0x2cb)](_0x325f28['UniverInstanceType'][_0x2ff494(0x33b)])[_0x2ff494(0xa4)]((0x0,_0x1fdbe2['takeUntil'])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d[_0x2ff494(0x350)])(0x10))[_0x2ff494(0x28f)](async _0x48d7af=>{const _0x396d46=_0x2ff494;let _0x5e7b30=_0x48d7af[_0x396d46(0x42f)]['getUnitId'](),_0x5f003b=await this[_0x396d46(0x35f)](_0x5e7b30,_0x325f28[_0x396d46(0x41f)][_0x396d46(0x33b)]);this['_entities']['set'](_0x5e7b30,_0x5f003b);}),this[_0x2ff494(0x23b)][_0x2ff494(0x2cb)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x2a4)])[_0x2ff494(0xa4)]((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d['delay'])(0x10))[_0x2ff494(0xa4)]((0x0,_0xa8b74d[_0x2ff494(0x22a)])(_0xbde8d2=>!_0xbde8d2[_0x2ff494(0x42f)][_0x2ff494(0x119)]()[_0x2ff494(0x35a)]('__')))[_0x2ff494(0x28f)](async _0xb54df3=>{const _0x1a40a2=_0x2ff494;let _0x347fa3=_0xb54df3[_0x1a40a2(0x42f)][_0x1a40a2(0x119)](),_0x562bd3=await this[_0x1a40a2(0x35f)](_0x347fa3,_0x325f28[_0x1a40a2(0x41f)]['UNIVER_DOC']);this[_0x1a40a2(0x9e)][_0x1a40a2(0x232)](_0x347fa3,_0x562bd3);}),this[_0x2ff494(0x23b)][_0x2ff494(0x2cb)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x1c3)])[_0x2ff494(0xa4)]((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d[_0x2ff494(0x350)])(0x10))['subscribe'](async _0x487ab8=>{const _0x232b17=_0x2ff494;let _0xb6b5cb=_0x487ab8['unit'][_0x232b17(0x119)](),_0x250b5a=await this['_startCollaboration'](_0xb6b5cb,_0x325f28[_0x232b17(0x41f)][_0x232b17(0x1c3)]);this[_0x232b17(0x9e)]['set'](_0xb6b5cb,_0x250b5a);}),this[_0x2ff494(0x23b)][_0x2ff494(0x2cb)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x3a4)])['pipe']((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d['delay'])(0x10))[_0x2ff494(0x28f)](async _0x103b6d=>{const _0x1b0714=_0x2ff494;let _0x12a0e2=_0x103b6d['unit'][_0x1b0714(0x119)](),_0x51c396=await this[_0x1b0714(0x35f)](_0x12a0e2,_0x325f28[_0x1b0714(0x41f)]['UNIVER_BOARD']);this[_0x1b0714(0x9e)][_0x1b0714(0x232)](_0x12a0e2,_0x51c396);}),this[_0x2ff494(0x23b)]['getTypeOfUnitAdded$'](_0x325f28[_0x2ff494(0x41f)]['UNIVER_BASE'])[_0x2ff494(0xa4)]((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d[_0x2ff494(0x350)])(0x10))[_0x2ff494(0x28f)](async _0x5e5f28=>{const _0x408705=_0x2ff494;let _0x1379d5=_0x5e5f28[_0x408705(0x42f)]['getUnitId'](),_0x407389=await this['_startCollaboration'](_0x1379d5,_0x325f28[_0x408705(0x41f)]['UNIVER_BASE']);this['_entities'][_0x408705(0x232)](_0x1379d5,_0x407389);}),this[_0x2ff494(0x23b)]['getTypeOfUnitAdded$'](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x45f)])[_0x2ff494(0xa4)]((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d[_0x2ff494(0x350)])(0x10))['subscribe'](async _0x43aa89=>{const _0x17e44e=_0x2ff494;let _0x5f4bc6=_0x43aa89['unit'][_0x17e44e(0x119)](),_0x44e096=await this[_0x17e44e(0x35f)](_0x5f4bc6,_0x325f28[_0x17e44e(0x41f)]['UNIVER_PDF']);this[_0x17e44e(0x9e)][_0x17e44e(0x232)](_0x5f4bc6,_0x44e096);}),(0x0,_0x1fdbe2['merge'])(this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x33b)]),this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28[_0x2ff494(0x41f)]['UNIVER_DOC']),this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x1c3)]),this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28['UniverInstanceType'][_0x2ff494(0x3a4)]),this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28['UniverInstanceType'][_0x2ff494(0xc9)]),this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x45f)]))[_0x2ff494(0xa4)]((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]))['subscribe'](_0x27bfef=>{const _0x4b8b0c=_0x2ff494;let _0x275160=_0x27bfef[_0x4b8b0c(0x119)](),_0x5793b6=this[_0x4b8b0c(0x9e)][_0x4b8b0c(0x1df)](_0x275160);_0x5793b6&&(_0x5793b6[_0x4b8b0c(0x15a)](),this['_entities']['delete'](_0x275160));});}async[_0x315216(0x35f)](_0x577f64,_0x5b30e7){const _0xda098d=_0x315216;let _0x407042=await this[_0xda098d(0x404)][_0xda098d(0x3fb)](_0x577f64),_0x21c3a3=this['_injector']['createInstance'](this['_getCtorByUniverInstanceType'](_0x5b30e7),_0x577f64,_0x5b30e7,_0x407042);return await _0x21c3a3[_0xda098d(0x41d)](),this[_0xda098d(0x22e)][_0xda098d(0x407)](_0x21c3a3),_0x21c3a3;}['_getCtorByUniverInstanceType'](_0x56ef3a){const _0x51ef7e=_0x315216;switch(_0x56ef3a){case _0x325f28['UniverInstanceType']['UNIVER_DOC']:return _0x464598;case _0x325f28['UniverInstanceType'][_0x51ef7e(0x33b)]:return _0x3a3d85;case _0x325f28[_0x51ef7e(0x41f)][_0x51ef7e(0x1c3)]:return _0x37ab5d;case _0x325f28['UniverInstanceType'][_0x51ef7e(0x3a4)]:return _0x4df8c8;case _0x325f28[_0x51ef7e(0x41f)][_0x51ef7e(0xc9)]:return _0x2033f7;case _0x325f28['UniverInstanceType']['UNIVER_PDF']:return _0x1e25ce;default:throw Error(_0x51ef7e(0x472)+_0x56ef3a);}}};_0x4b66f1=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x1,(0x0,_0x325f28['Inject'])(_0x2c8ade)),_0x557b04(0x2,_0x325f28[_0x315216(0x1cf)]),_0x557b04(0x3,_0x325f28[_0x315216(0xd2)])],_0x4b66f1);var _0x5268b1=_0x315216(0x1d2),_0xc74a63=_0x315216(0x1be);let _0x473a89=class extends _0x325f28[_0x315216(0x14a)]{constructor(_0x39f217,_0x391b7b){const _0x323b0e=_0x315216;super(),this[_0x323b0e(0x23b)]=_0x39f217,this['_configService']=_0x391b7b,this[_0x323b0e(0x1e3)]();}[_0x315216(0x1e3)](){const _0x5efd4a=_0x315216;this[_0x5efd4a(0x41e)](this[_0x5efd4a(0x23b)]['focused$'][_0x5efd4a(0x28f)](()=>{const _0x9115d9=_0x5efd4a;let _0x15755d=this[_0x9115d9(0x23b)][_0x9115d9(0x3ed)](),_0x5e5d4a=this[_0x9115d9(0x1ed)][_0x9115d9(0x455)]('DEFAULT_FILE_NAME')??_0x9115d9(0x30d);_0x15755d instanceof _0x325f28['Workbook']&&(_0x5e5d4a=_0x15755d['name']),document[_0x9115d9(0x194)]=_0x5e5d4a;}));}};_0x473a89=_0x5af442([_0x557b04(0x0,_0x325f28['IUniverInstanceService']),_0x557b04(0x1,_0x325f28[_0x315216(0x1cf)])],_0x473a89);let _0x3a6c7e=(0x0,_0x325f28['createIdentifier'])(_0x315216(0x340)),_0x3c9a1b=class{constructor(_0x36d566,_0x9dfac4,_0xbe46f2){const _0x2b8335=_0x315216;this['_httpService']=_0x36d566,this[_0x2b8335(0x1ed)]=_0x9dfac4,this[_0x2b8335(0x23b)]=_0xbe46f2;}[_0x315216(0x2c2)](){const _0xc92d3f=_0x315216;return this[_0xc92d3f(0x331)]()[_0xc92d3f(0x367)]??{};}async[_0x315216(0x449)](_0x52586a){const _0x496384=_0x315216;let _0xe9295c=this[_0x496384(0x2c2)]();if(_0x5708d6(_0x52586a,_0xe9295c),_0xe9295c[_0x496384(0x170)])return _0xe9295c[_0x496384(0x170)](_0x52586a);let _0x8626c0=await this[_0x496384(0x30c)](_0x52586a);return{'id':_0x8626c0,'name':_0x52586a['name'],'mimeType':_0x52586a[_0x496384(0x438)],'size':_0x52586a[_0x496384(0x3e0)],'sourceType':_0x325f28[_0x496384(0x3f6)][_0x496384(0x439)],'source':_0x8626c0};}async['getAttachmentUrl'](_0x52416e,_0x5cf4e0){const _0x5c4c88=_0x315216;if(_0x5cf4e0!==_0x325f28[_0x5c4c88(0x3f6)]['UUID'])return _0x52416e;let _0x1ab950=(await this['_httpService'][_0x5c4c88(0x1df)](this[_0x5c4c88(0xed)]()[_0x5c4c88(0x3bd)](_0x5c4c88(0x23e),_0x52416e)))[_0x5c4c88(0x3d5)];if(_0x1ab950[_0x5c4c88(0xd6)]&&_0x1ab950[_0x5c4c88(0xd6)][_0x5c4c88(0xdf)]!==_0x483212[_0x5c4c88(0x349)]['OK'])throw _0x1ab950[_0x5c4c88(0xd6)];if(!_0x1ab950[_0x5c4c88(0x35c)])throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.');return(0x0,_0x325f28[_0x5c4c88(0x1f1)])(_0x1ab950['url'],this[_0x5c4c88(0x298)]());}async[_0x315216(0x30c)](_0x62ea6c){const _0x468d58=_0x315216;let _0x2f9b0c=this[_0x468d58(0x23b)][_0x468d58(0x3ed)](),_0xd741b4=_0x2f9b0c==null?void 0x0:_0x2f9b0c['getUnitId']();if(!_0xd741b4)throw Error(_0x468d58(0xeb));let _0x1a70bf=new FormData();_0x1a70bf[_0x468d58(0x2b1)](_0x468d58(0xe9),_0x62ea6c);let _0x31b646=this[_0x468d58(0x9a)]()+_0x468d58(0x3ee)+_0x62ea6c[_0x468d58(0x3e0)][_0x468d58(0x3c8)]()+_0x468d58(0x136)+_0x483212[_0x468d58(0x2e8)][_0x468d58(0x392)]+_0x468d58(0x20f)+encodeURIComponent(_0xd741b4),_0xdc969e=(await this[_0x468d58(0xde)]['post'](_0x31b646,{'body':_0x1a70bf}))[_0x468d58(0x3d5)][_0x468d58(0x458)];if(typeof _0xdc969e!='string'||!_0xdc969e)throw Error(_0x468d58(0x15d));return _0xdc969e;}['_getUploadFileURL'](){const _0x3c3860=_0x315216;return this[_0x3c3860(0x331)]()[_0x3c3860(0x322)]??'/universer-api/stream/file/upload';}[_0x315216(0xed)](){const _0x1362ba=_0x315216;return this[_0x1362ba(0x331)]()[_0x1362ba(0x18e)]??_0x1362ba(0x153);}[_0x315216(0x298)](){const _0x55dd69=_0x315216;let _0x52e319=this[_0x55dd69(0x331)]();return _0x52e319[_0x55dd69(0x36a)]?_0x52e319['downloadEndpointUrl']:typeof location<'u'?location['origin']:_0x52e319[_0x55dd69(0x322)]??'';}[_0x315216(0x331)](){const _0x4bae3d=_0x315216;return this[_0x4bae3d(0x1ed)][_0x4bae3d(0x455)](_0x4bae3d(0x146))??{};}};_0x3c9a1b=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28['Inject'])(_0x18cba4['HTTPService'])),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x1cf)])),_0x557b04(0x2,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['IUniverInstanceService']))],_0x3c9a1b);function _0x5708d6(_0x57d8fa,_0x7c90f){const _0x25027b=_0x315216;var _0x205782;if(_0x7c90f['maxSize']!=null&&_0x57d8fa[_0x25027b(0x3e0)]>_0x7c90f['maxSize'])throw Error(_0x25027b(0x130));if((_0x205782=_0x7c90f[_0x25027b(0x3ae)])!=null&&_0x205782[_0x25027b(0x250)]&&!_0x7c90f[_0x25027b(0x3ae)][_0x25027b(0x142)](_0x2ed3e8=>_0x57d8fa['type']===_0x2ed3e8||_0x57d8fa[_0x25027b(0x163)]['endsWith'](_0x2ed3e8)||_0x2ed3e8[_0x25027b(0x2e1)]('/*')&&_0x57d8fa[_0x25027b(0x438)][_0x25027b(0x35a)](_0x2ed3e8[_0x25027b(0x106)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x5ef8ed=class{constructor(_0x393ae3,_0x4ce70a,_0xa7fe99){const _0x45fdd2=_0x315216;this[_0x45fdd2(0x1ed)]=_0x393ae3,this[_0x45fdd2(0xde)]=_0x4ce70a,this[_0x45fdd2(0x33e)]=_0xa7fe99,this[_0x45fdd2(0x41d)]();}[_0x315216(0x41d)](){const _0x20cfac=_0x315216;this[_0x20cfac(0xde)][_0x20cfac(0x1c1)]({'priority':0x1,'interceptor':(_0x57a7c5,_0x16ab35)=>_0x16ab35(_0x57a7c5)[_0x20cfac(0xa4)]((0x0,_0x1fdbe2[_0x20cfac(0x391)])(async _0x2e96c9=>{const _0x2b9b2d=_0x20cfac;let _0x5773f8=_0x2e96c9;if(_0x5773f8[_0x2b9b2d(0x326)]===0x191){if(typeof window>'u')throw Error(_0x2b9b2d(0x145));if(window[_0x2b9b2d(0x1dd)](this['localeService']['t'](_0x2b9b2d(0x1d1)))){let _0x5141cb=window[_0x2b9b2d(0x1e8)](window[_0x2b9b2d(0xcd)]['href']);window[_0x2b9b2d(0xcd)][_0x2b9b2d(0x1cb)]=this[_0x2b9b2d(0x103)]()+_0x2b9b2d(0x442)+_0x5141cb;}}return _0x5773f8;}))});}[_0x315216(0x103)](){const _0x107544=_0x315216;let _0x49e9a2=this[_0x107544(0x1ed)][_0x107544(0x455)](_0x3a344c);return(_0x49e9a2==null?void 0x0:_0x49e9a2['loginUrlKey'])??_0x107544(0x3c1);}};_0x5ef8ed=_0x5af442([_0x557b04(0x0,_0x325f28['IConfigService']),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4[_0x315216(0x149)])),_0x557b04(0x2,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x2ae)]))],_0x5ef8ed);let _0x26c5f0=class extends _0x325f28['Disposable']{constructor(_0x549d28,_0x198d58){const _0x3c5b86=_0x315216;super(),this[_0x3c5b86(0x255)]=_0x549d28,this[_0x3c5b86(0x1ed)]=_0x198d58,_0x4da1f9(this,_0x3c5b86(0x1fa),!0x1),this[_0x3c5b86(0x1da)]();}['_initMergeInterceptor'](){const _0x136bc7=_0x315216;let _0x1b86c9=this;this[_0x136bc7(0x41e)](this[_0x136bc7(0x255)][_0x136bc7(0x1c1)]({'priority':0x3e7,'interceptor':(0x0,_0x18cba4[_0x136bc7(0x264)])({'isMatch'(_0x56b2fa){const _0x56a34f=_0x136bc7;var _0xe139ab;if(_0x56b2fa[_0x56a34f(0x17c)]==='POST'&&(_0xe139ab=_0x56b2fa['requestParams'])!=null&&_0xe139ab[_0x56a34f(0x3d5)]){let {objectID:_0x7d0b8b,objectType:_0x5a0c83}=_0x56b2fa[_0x56a34f(0x3c3)][_0x56a34f(0x3d5)]||{};if(!_0x7d0b8b||_0x5a0c83===void 0x0)return!0x1;let _0x41bd9d=_0x1b86c9[_0x56a34f(0x27a)]()+'/'+_0x5a0c83+_0x56a34f(0x140)+encodeURIComponent(_0x7d0b8b)+'/allowed';if(_0x56b2fa[_0x56a34f(0x35c)]===_0x41bd9d)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x315c89){const _0x5db7fa=_0x136bc7;var _0x234e4f;return(_0x234e4f=_0x315c89[_0x5db7fa(0x3c3)])==null?void 0x0:_0x234e4f['body'];},'mergeParamsToRequest'(_0x20aaef,_0x5234eb){const _0x5a3b4c=_0x136bc7;let _0x5896dd=_0x1b86c9[_0x5a3b4c(0x27a)]()+_0x5a3b4c(0x34f),_0x39d0f2=_0x20aaef[_0x5a3b4c(0x2cc)]((_0x5ce8bf,_0x4d7602)=>{const _0x134f3a=_0x5a3b4c;let {unitID:_0x5cdf54,objectID:_0x541537,objectType:_0x239838,actions:_0x2c3e9a}=_0x4d7602;return _0x5ce8bf[_0x5cdf54]||(_0x5ce8bf[_0x5cdf54]=Object['create'](null)),_0x5ce8bf[_0x5cdf54][_0x541537]||(_0x5ce8bf[_0x5cdf54][_0x541537]={'objectID':_0x541537,'objectType':_0x239838,'actions':[]}),_0x5ce8bf[_0x5cdf54][_0x541537]['actions'][_0x134f3a(0x46e)](..._0x2c3e9a),_0x5ce8bf;},Object[_0x5a3b4c(0x39d)](null)),_0x29d2c3=[];for(let _0x4f9bfe in _0x39d0f2)for(let _0x43d91a in _0x39d0f2[_0x4f9bfe]){let {actions:_0x190754,objectType:_0xe01cd0}=_0x39d0f2[_0x4f9bfe][_0x43d91a],_0xe51278=[...new Set(_0x190754)];_0x29d2c3[_0x5a3b4c(0x46e)]({'unitID':_0x4f9bfe,'objectID':_0x43d91a,'objectType':_0xe01cd0,'actions':_0xe51278});}return new _0x18cba4[(_0x5a3b4c(0xf6))](_0x5a3b4c(0x2f4),_0x5896dd,{'headers':_0x5234eb[_0x5a3b4c(0xff)],'withCredentials':_0x5234eb[_0x5a3b4c(0x25a)],'responseType':_0x5234eb[_0x5a3b4c(0x1f0)],'body':{'requests':_0x29d2c3}});}},{'distributeResult'(_0x3b6fe0,_0x505d39){let {objectActions:_0x1d39d6}=_0x3b6fe0;return _0x505d39['map'](_0x254d70=>{const _0x315e92=_0x2c10;let {unitID:_0x30d7db,objectID:_0x579895,actions:_0x24f2c3}=_0x254d70,_0x38a40b=_0x1d39d6['find'](_0x310f2e=>_0x310f2e[_0x315e92(0x154)]===_0x30d7db&&_0x310f2e[_0x315e92(0x46c)]===_0x579895);return{'config':_0x254d70,'result':{'actions':_0x24f2c3[_0x315e92(0x403)](_0x240d3c=>_0x38a40b==null?void 0x0:_0x38a40b[_0x315e92(0x3ab)][_0x315e92(0x3df)](_0xa9ef49=>_0xa9ef49[_0x315e92(0x1b6)]===_0x240d3c))['filter'](_0x1d554f=>!!_0x1d554f),'error':_0x3b6fe0[_0x315e92(0xd6)]}};});}})}));}['_getAPIPrefixPath'](){const _0x28c20a=_0x315216;let _0xea863d=this[_0x28c20a(0x1ed)]['getConfig'](_0x3a344c);return(_0xea863d==null?void 0x0:_0xea863d[_0x28c20a(0x2bc)])??_0x28c20a(0xf9);}async['create'](_0x3fdf56){const _0x2e4566=_0x315216;let _0x2c4150=this['_getAPIPrefixPath']()+'/'+_0x3fdf56[_0x2e4566(0x24f)]+_0x2e4566(0x2a2);return(await this[_0x2e4566(0x255)][_0x2e4566(0x178)](_0x2c4150,{'body':_0x3fdf56}))[_0x2e4566(0x3d5)][_0x2e4566(0x46c)]||'';}async[_0x315216(0x211)](_0x518e3c){const _0x1942ce=_0x315216;let _0x566fad=this[_0x1942ce(0x27a)]()+_0x1942ce(0x17e);return(await this[_0x1942ce(0x255)]['post'](_0x566fad,{'body':_0x518e3c}))[_0x1942ce(0x3d5)][_0x1942ce(0xb0)];}async[_0x315216(0x394)](_0x1ee8cf){const _0x33a302=_0x315216;var _0x5697ed;let _0x3fbb7a=this[_0x33a302(0x27a)]()+'/'+_0x1ee8cf[_0x33a302(0x24f)]+_0x33a302(0x140)+encodeURIComponent(_0x1ee8cf[_0x33a302(0x46c)]),_0x26ac6c=await this[_0x33a302(0x255)][_0x33a302(0x36f)](_0x3fbb7a,{'body':_0x1ee8cf});if((_0x26ac6c==null||(_0x5697ed=_0x26ac6c[_0x33a302(0x3d5)])==null||(_0x5697ed=_0x5697ed['error'])==null?void 0x0:_0x5697ed['code'])!==0x1)throw Error(_0x33a302(0x306));}async[_0x315216(0x257)](_0x23646d){const _0x402f52=_0x315216;let _0x232aa3=this[_0x402f52(0x27a)]()+'/'+_0x23646d[_0x402f52(0x24f)]+'/object/'+encodeURIComponent(_0x23646d[_0x402f52(0x46c)])+_0x402f52(0x2d6);return(await this[_0x402f52(0x255)]['post'](_0x232aa3,{'body':_0x23646d}))[_0x402f52(0x3d5)][_0x402f52(0x3ab)];}async[_0x315216(0x27e)](_0x378aab){const _0x2eb749=_0x315216;let _0x1f5310=this[_0x2eb749(0x27a)]()+_0x2eb749(0x34f);return(await this['_HTTPService']['post'](_0x1f5310,{'body':{'requests':_0x378aab}}))[_0x2eb749(0x3d5)][_0x2eb749(0x1cd)];}async[_0x315216(0x152)](_0x3a147a){const _0x27844c=_0x315216;let _0xb0a7e8=this['_getAPIPrefixPath']()+'/'+_0x3a147a[_0x27844c(0x24f)]+_0x27844c(0x128),_0x43bbd1=await this['_HTTPService']['post'](_0xb0a7e8,{'body':_0x3a147a});return{'roles':_0x43bbd1['body'][_0x27844c(0x461)],'actions':_0x43bbd1[_0x27844c(0x3d5)][_0x27844c(0x3ab)]};}async[_0x315216(0x234)](_0x3b0f12){const _0x14f90c=_0x315216;let _0x2bfeac=this[_0x14f90c(0x27a)]()+_0x14f90c(0x339);await this[_0x14f90c(0x255)]['delete'](_0x2bfeac,{'params':{'collaboratorID':_0x3b0f12[_0x14f90c(0x23d)],'objectID':_0x3b0f12[_0x14f90c(0x46c)],'unitID':_0x3b0f12['unitID']}});}async[_0x315216(0x2c4)](_0x8725e7){const _0x26441e=_0x315216;let _0xec0460=this[_0x26441e(0x27a)]()+_0x26441e(0x339);await this[_0x26441e(0x255)]['patch'](_0xec0460,{'body':_0x8725e7});}async[_0x315216(0x308)](_0x318063){const _0x494a12=_0x315216;let _0x508112=this[_0x494a12(0x27a)]()+'/collaborator';await this['_HTTPService']['post'](_0x508112,{'body':_0x318063});}async['listCollaborators'](_0x42f93b){const _0x2fba28=_0x315216;let _0x3fae2d=this[_0x2fba28(0x27a)]()+'/collaborator',_0x81afe6=await this['_HTTPService']['get'](_0x3fae2d,{'params':{'objectID':_0x42f93b['objectID'],'unitID':_0x42f93b[_0x2fba28(0x154)]}});return this['setCfgEnableObjInherit'](_0x81afe6['body'][_0x2fba28(0x26f)]??!0x1),_0x81afe6[_0x2fba28(0x3d5)][_0x2fba28(0x390)];}async[_0x315216(0x26a)](_0x3c2901){const _0x383aa2=_0x315216;let _0x4f03a1=this[_0x383aa2(0x27a)]()+_0x383aa2(0x339);await this[_0x383aa2(0x255)][_0x383aa2(0x36f)](_0x4f03a1,{'body':_0x3c2901});}['setCfgEnableObjInherit'](_0x5a5d88){const _0xd3e225=_0x315216;this[_0xd3e225(0x1fa)]=_0x5a5d88;}['getCfgEnableObjInherit'](){const _0x158b9f=_0x315216;return this[_0x158b9f(0x1fa)];}};_0x26c5f0=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4['HTTPService'])),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['IConfigService']))],_0x26c5f0);function _0x1dd4fc(_0x541c9c){const _0x16b45c=_0x315216;return _0x541c9c instanceof Uint8Array||ArrayBuffer[_0x16b45c(0x35e)](_0x541c9c)&&_0x541c9c[_0x16b45c(0x3b5)][_0x16b45c(0x163)]===_0x16b45c(0x46a)&&'BYTES_PER_ELEMENT'in _0x541c9c&&_0x541c9c[_0x16b45c(0x3db)]===0x1;}let _0x2f2fa7=_0x2cc876=>_0x2cc876?'\x22'+_0x2cc876+'\x22\x20':'';function _0x3edc45(_0x459f47,_0x4b9fcd=''){const _0xaaa34a=_0x315216;if(typeof _0x459f47!='number')throw TypeError(_0x2f2fa7(_0x4b9fcd)+_0xaaa34a(0x335)+typeof _0x459f47);if(!Number[_0xaaa34a(0x21a)](_0x459f47)||_0x459f47<0x0)throw RangeError(_0x2f2fa7(_0x4b9fcd)+_0xaaa34a(0x286)+_0x459f47);return _0x459f47;}function _0x19408d(_0x29e86d,_0x2b608b,_0x456356=''){const _0x5c02d5=_0x315216;if(_0x1dd4fc(_0x29e86d)&&(_0x2b608b===void 0x0||_0x29e86d[_0x5c02d5(0x250)]===_0x2b608b))return _0x29e86d;_0x2b608b!==void 0x0&&_0x3edc45(_0x2b608b,_0x5c02d5(0x250));let _0x489fa1=_0x1dd4fc(_0x29e86d),_0x26e522=_0x2b608b===void 0x0?'':'\x20of\x20length\x20'+_0x2b608b,_0x5e416c=_0x489fa1?'length='+_0x29e86d[_0x5c02d5(0x250)]:_0x5c02d5(0x419)+typeof _0x29e86d,_0x2704de=_0x2f2fa7(_0x456356)+_0x5c02d5(0xbc)+_0x26e522+',\x20got\x20'+_0x5e416c;throw _0x489fa1?RangeError(_0x2704de):TypeError(_0x2704de);}function _0xda7b2(_0x14ac33){const _0x3f5b47=_0x315216;return new Uint32Array(_0x14ac33[_0x3f5b47(0x12b)],_0x14ac33[_0x3f5b47(0x293)],Math[_0x3f5b47(0x244)](_0x14ac33['byteLength']/0x4));}function _0x4fce4b(..._0xf0f3cc){const _0x3b9f0f=_0x315216;for(let _0x233cd1=0x0;_0x233cd1<_0xf0f3cc[_0x3b9f0f(0x250)];_0x233cd1++)_0xf0f3cc[_0x233cd1]['fill'](0x0);}let _0x558a35=new Uint8Array(new Uint32Array([0x11223344])['buffer'])[0x0]===0x44;function _0x2ae8b0(_0x43498b){return _0x43498b<<0x18&0xff000000|_0x43498b<<0x8&0xff0000|_0x43498b>>>0x8&0xff00|_0x43498b>>>0x18&0xff;}function _0xe55cb4(_0x168ebf){const _0x487a7e=_0x315216;for(let _0x37ef61=0x0;_0x37ef61<_0x168ebf[_0x487a7e(0x250)];_0x37ef61++)_0x168ebf[_0x37ef61]=_0x2ae8b0(_0x168ebf[_0x37ef61]);return _0x168ebf;}let _0x430bce=_0x558a35?_0x20f4ea=>_0x20f4ea:_0xe55cb4;function _0x4bf143(_0x2a5a8b){const _0x5f3b70=_0x315216;if(typeof _0x2a5a8b!=_0x5f3b70(0xd5))throw TypeError('string\x20expected');return new Uint8Array(new TextEncoder()[_0x5f3b70(0x476)](_0x2a5a8b));}function _0x52bccf(_0x304908,_0x6bb8de){const _0x1463d0=_0x315216;return!_0x304908[_0x1463d0(0x41a)]||!_0x6bb8de[_0x1463d0(0x41a)]?!0x1:_0x304908[_0x1463d0(0x12b)]===_0x6bb8de['buffer']&&_0x304908['byteOffset']<_0x6bb8de[_0x1463d0(0x293)]+_0x6bb8de['byteLength']&&_0x6bb8de[_0x1463d0(0x293)]<_0x304908['byteOffset']+_0x304908[_0x1463d0(0x41a)];}function _0x49ac1c(_0x7da41d,_0x1b2baa){const _0x579645=_0x315216;if(_0x52bccf(_0x7da41d,_0x1b2baa)&&_0x7da41d[_0x579645(0x293)]<_0x1b2baa['byteOffset'])throw Error(_0x579645(0x3ce));}function _0x2dd4f9(..._0x14902b){const _0x4d3c9d=_0x315216;let _0x5d335e=0x0;for(let _0x568ad4=0x0;_0x568ad4<_0x14902b[_0x4d3c9d(0x250)];_0x568ad4++){let _0x5a66e2=_0x14902b[_0x568ad4];_0x19408d(_0x5a66e2),_0x5d335e+=_0x5a66e2[_0x4d3c9d(0x250)];}let _0x5b4226=new Uint8Array(_0x5d335e);for(let _0x3cbd9d=0x0,_0x327bfc=0x0;_0x3cbd9d<_0x14902b['length'];_0x3cbd9d++){let _0x4a608f=_0x14902b[_0x3cbd9d];_0x5b4226[_0x4d3c9d(0x232)](_0x4a608f,_0x327bfc),_0x327bfc+=_0x4a608f[_0x4d3c9d(0x250)];}return _0x5b4226;}let _0x293aa1=(_0x21d106,_0x1fb69a)=>{const _0x428fe7=_0x315216;function _0x3d8120(_0x1bb6ee,..._0x22a897){const _0x4b6aec=_0x2c10;if(_0x19408d(_0x1bb6ee,void 0x0,'key'),_0x21d106['nonceLength']!==void 0x0){let _0x1e5ce4=_0x22a897[0x0];_0x19408d(_0x1e5ce4,_0x21d106[_0x4b6aec(0x118)]?void 0x0:_0x21d106[_0x4b6aec(0x198)],_0x4b6aec(0x28d));}let _0x13858d=_0x21d106[_0x4b6aec(0x416)],_0x1a1524=_0x21d106[_0x4b6aec(0x198)]===void 0x0?0x0:0x1;if(!_0x21d106[_0x4b6aec(0x16b)]){for(let _0x543c6f=_0x1a1524;_0x543c6f<_0x22a897[_0x4b6aec(0x250)];_0x543c6f++)if(_0x1dd4fc(_0x22a897[_0x543c6f]))throw Error(_0x4b6aec(0x345));}_0x21d106[_0x4b6aec(0x16b)]&&_0x22a897[_0x1a1524]!==void 0x0&&_0x19408d(_0x22a897[_0x1a1524],void 0x0,'AAD');let _0x5447dd=_0x1fb69a(_0x1bb6ee,..._0x22a897),_0x3a7298=(_0x34f765,_0x3c793c)=>{const _0x1871bc=_0x4b6aec;if(_0x3c793c!==void 0x0){if(_0x34f765!==0x2)throw Error(_0x1871bc(0x47d));_0x19408d(_0x3c793c,void 0x0,_0x1871bc(0xdb));}},_0x34eebf=!0x1;return{'encrypt'(_0x789aef,_0x129397){const _0x15e4ad=_0x4b6aec;if(_0x34eebf)throw Error('cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce');return _0x34eebf=!0x0,_0x19408d(_0x789aef,void 0x0,_0x15e4ad(0x2a1)),_0x3a7298(_0x5447dd[_0x15e4ad(0xce)]['length'],_0x129397),_0x5447dd['encrypt'](_0x789aef,_0x129397);},'decrypt'(_0x43e058,_0x2e5697){const _0x5eba06=_0x4b6aec;if(_0x19408d(_0x43e058,void 0x0,_0x5eba06(0x2a1)),_0x13858d&&_0x43e058[_0x5eba06(0x250)]<_0x13858d)throw Error(_0x5eba06(0x11e)+_0x13858d);return _0x3a7298(_0x5447dd[_0x5eba06(0x176)][_0x5eba06(0x250)],_0x2e5697),_0x5447dd['decrypt'](_0x43e058,_0x2e5697);}};}return Object[_0x428fe7(0x3de)](_0x3d8120,_0x21d106),_0x3d8120;};function _0x22c370(_0x404296,_0xffd89,_0x146b2e=!0x0){const _0xc9dc88=_0x315216;if(_0xffd89===void 0x0)return new Uint8Array(_0x404296);if(_0x19408d(_0xffd89,_0x404296,_0xc9dc88(0xdb)),_0x146b2e&&!_0x212fd2(_0xffd89))throw Error(_0xc9dc88(0x3b2));return _0xffd89;}function _0x212fd2(_0xae6b93){const _0x4d7eb9=_0x315216;return _0xae6b93[_0x4d7eb9(0x293)]%0x4==0x0;}function _0x70eb6a(_0x20c493){const _0x40a373=_0x315216;return Uint8Array[_0x40a373(0x29a)](_0x19408d(_0x20c493));}function _0x59afa8(_0x10740b=0x20){const _0x1093cd=_0x315216;_0x3edc45(_0x10740b,_0x1093cd(0x134));let _0x5782f4=typeof globalThis==_0x1093cd(0x265)?globalThis['crypto']:null;if(typeof(_0x5782f4==null?void 0x0:_0x5782f4[_0x1093cd(0x38f)])!=_0x1093cd(0x246))throw Error(_0x1093cd(0x2cd));if(_0x10740b>0x10000)throw RangeError('\x22bytesLength\x22\x20expected\x20<=\x2065536,\x20got\x20'+_0x10740b);return _0x5782f4[_0x1093cd(0x38f)](new Uint8Array(_0x10740b));}function _0x236875(_0x5dd9c3){const _0x1e8192=_0x315216;if(![0x10,0x18,0x20]['includes'](_0x5dd9c3[_0x1e8192(0x250)]))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x5dd9c3[_0x1e8192(0x250)]);}function _0x218f06(_0x1d1d88){return _0x1d1d88<<0x1^0x11b&-(_0x1d1d88>>0x7);}function _0x4906b7(_0x4d4ee7,_0x19d325){let _0x826e90=0x0;for(;_0x19d325>0x0;_0x19d325>>=0x1)_0x826e90^=_0x4d4ee7&-(_0x19d325&0x1),_0x4d4ee7=_0x218f06(_0x4d4ee7);return _0x826e90;}let _0x19fd20=((()=>{let _0x1bfc61=new Uint8Array(0x100);for(let _0x1a26b0=0x0,_0x8fcce7=0x1;_0x1a26b0<0x100;_0x1a26b0++,_0x8fcce7^=_0x218f06(_0x8fcce7))_0x1bfc61[_0x1a26b0]=_0x8fcce7;let _0x55f60f=new Uint8Array(0x100);_0x55f60f[0x0]=0x63;for(let _0x12d2f7=0x0;_0x12d2f7<0xff;_0x12d2f7++){let _0x31077d=_0x1bfc61[0xff-_0x12d2f7];_0x31077d|=_0x31077d<<0x8,_0x55f60f[_0x1bfc61[_0x12d2f7]]=(_0x31077d^_0x31077d>>0x4^_0x31077d>>0x5^_0x31077d>>0x6^_0x31077d>>0x7^0x63)&0xff;}return _0x4fce4b(_0x1bfc61),_0x55f60f;})()),_0x14796c=_0x19fd20[_0x315216(0x403)]((_0x100db8,_0x450d79)=>_0x19fd20[_0x315216(0x304)](_0x450d79)),_0x5e237d=_0x2bbf40=>_0x2bbf40<<0x18|_0x2bbf40>>>0x8,_0x571415=_0x4f14f0=>_0x4f14f0<<0x8|_0x4f14f0>>>0x18;function _0x38385c(_0x4c9017,_0x1c59f2){const _0xa57bfe=_0x315216;if(_0x4c9017['length']!==0x100)throw Error(_0xa57bfe(0x23f));let _0x3137cb=new Uint32Array(0x100)[_0xa57bfe(0x403)]((_0x4b5d37,_0xe49d09)=>_0x1c59f2(_0x4c9017[_0xe49d09])),_0x4fe794=_0x3137cb['map'](_0x571415),_0x526e32=_0x4fe794[_0xa57bfe(0x403)](_0x571415),_0x129ee4=_0x526e32[_0xa57bfe(0x403)](_0x571415),_0xaa6ddf=new Uint32Array(0x10000),_0x5775a6=new Uint32Array(0x10000),_0x5a8d9a=new Uint16Array(0x10000);for(let _0x3141d4=0x0;_0x3141d4<0x100;_0x3141d4++)for(let _0x34c8c0=0x0;_0x34c8c0<0x100;_0x34c8c0++){let _0x112c76=_0x3141d4*0x100+_0x34c8c0;_0xaa6ddf[_0x112c76]=_0x3137cb[_0x3141d4]^_0x4fe794[_0x34c8c0],_0x5775a6[_0x112c76]=_0x526e32[_0x3141d4]^_0x129ee4[_0x34c8c0],_0x5a8d9a[_0x112c76]=_0x4c9017[_0x3141d4]<<0x8|_0x4c9017[_0x34c8c0];}return{'sbox':_0x4c9017,'sbox2':_0x5a8d9a,'T0':_0x3137cb,'T1':_0x4fe794,'T2':_0x526e32,'T3':_0x129ee4,'T01':_0xaa6ddf,'T23':_0x5775a6};}let _0x475e9b=_0x38385c(_0x19fd20,_0x2077dc=>_0x4906b7(_0x2077dc,0x3)<<0x18|_0x2077dc<<0x10|_0x2077dc<<0x8|_0x4906b7(_0x2077dc,0x2)),_0x15efc8=_0x38385c(_0x14796c,_0xf30f65=>_0x4906b7(_0xf30f65,0xb)<<0x18|_0x4906b7(_0xf30f65,0xd)<<0x10|_0x4906b7(_0xf30f65,0x9)<<0x8|_0x4906b7(_0xf30f65,0xe)),_0x126857=((()=>{let _0x31724c=new Uint8Array(0x10);for(let _0x14fc08=0x0,_0x360013=0x1;_0x14fc08<0x10;_0x14fc08++,_0x360013=_0x218f06(_0x360013))_0x31724c[_0x14fc08]=_0x360013;return _0x31724c;})());function _0x267767(_0x338b9a){const _0x53e70c=_0x315216;_0x19408d(_0x338b9a);let _0x445860=_0x338b9a[_0x53e70c(0x250)];_0x236875(_0x338b9a);let {sbox2:_0xa3407}=_0x475e9b,_0x26671f=[];(!_0x558a35||!_0x212fd2(_0x338b9a))&&_0x26671f[_0x53e70c(0x46e)](_0x338b9a=_0x70eb6a(_0x338b9a));let _0x154c71=_0x430bce(_0xda7b2(_0x338b9a)),_0x4b61e9=_0x154c71[_0x53e70c(0x250)],_0x13ce4e=_0x1b5c39=>_0x234054(_0xa3407,_0x1b5c39,_0x1b5c39,_0x1b5c39,_0x1b5c39),_0x362b96=new Uint32Array(_0x445860+0x1c);_0x362b96[_0x53e70c(0x232)](_0x154c71);for(let _0x5925af=_0x4b61e9;_0x5925af<_0x362b96['length'];_0x5925af++){let _0x4c8230=_0x362b96[_0x5925af-0x1];_0x5925af%_0x4b61e9===0x0?_0x4c8230=_0x13ce4e(_0x5e237d(_0x4c8230))^_0x126857[_0x5925af/_0x4b61e9-0x1]:_0x4b61e9>0x6&&_0x5925af%_0x4b61e9===0x4&&(_0x4c8230=_0x13ce4e(_0x4c8230)),_0x362b96[_0x5925af]=_0x362b96[_0x5925af-_0x4b61e9]^_0x4c8230;}return _0x4fce4b(..._0x26671f),_0x362b96;}function _0x14b8de(_0x5f2b08){const _0x34fcf6=_0x315216;let _0x400897=_0x267767(_0x5f2b08),_0x5e9ef3=_0x400897['slice'](),_0x121a6b=_0x400897[_0x34fcf6(0x250)],{sbox2:_0x1a9850}=_0x475e9b,{T0:_0x54e2e9,T1:_0x36eb1a,T2:_0x5eb669,T3:_0x1c01be}=_0x15efc8;for(let _0x1394ca=0x0;_0x1394ca<_0x121a6b;_0x1394ca+=0x4)for(let _0x1ed687=0x0;_0x1ed687<0x4;_0x1ed687++)_0x5e9ef3[_0x1394ca+_0x1ed687]=_0x400897[_0x121a6b-_0x1394ca-0x4+_0x1ed687];_0x4fce4b(_0x400897);for(let _0x3abd69=0x4;_0x3abd69<_0x121a6b-0x4;_0x3abd69++){let _0x1d5b24=_0x5e9ef3[_0x3abd69],_0x471f9f=_0x234054(_0x1a9850,_0x1d5b24,_0x1d5b24,_0x1d5b24,_0x1d5b24);_0x5e9ef3[_0x3abd69]=_0x54e2e9[_0x471f9f&0xff]^_0x36eb1a[_0x471f9f>>>0x8&0xff]^_0x5eb669[_0x471f9f>>>0x10&0xff]^_0x1c01be[_0x471f9f>>>0x18];}return _0x5e9ef3;}function _0x3814a0(_0x56ad66,_0x464104,_0x3826c0,_0x3ad95a,_0x30278d,_0x11420d){return _0x56ad66[_0x3826c0<<0x8&0xff00|_0x3ad95a>>>0x8&0xff]^_0x464104[_0x30278d>>>0x8&0xff00|_0x11420d>>>0x18&0xff];}function _0x234054(_0x178334,_0x3714c6,_0x1db586,_0x27237a,_0x28ddbf){return _0x178334[_0x3714c6&0xff|_0x1db586&0xff00]|_0x178334[_0x27237a>>>0x10&0xff|_0x28ddbf>>>0x10&0xff00]<<0x10;}function _0x431705(_0x9a196e,_0x517c9f,_0x443821,_0x314296,_0x1bca62){const _0x30637c=_0x315216;let {sbox2:_0x5781d4,T01:_0x453818,T23:_0x53b47d}=_0x475e9b,_0x2b3da5=0x0;_0x517c9f^=_0x9a196e[_0x2b3da5++],_0x443821^=_0x9a196e[_0x2b3da5++],_0x314296^=_0x9a196e[_0x2b3da5++],_0x1bca62^=_0x9a196e[_0x2b3da5++];let _0x2e803d=_0x9a196e[_0x30637c(0x250)]/0x4-0x2;for(let _0x433f7e=0x0;_0x433f7e<_0x2e803d;_0x433f7e++){let _0x41f102=_0x9a196e[_0x2b3da5++]^_0x3814a0(_0x453818,_0x53b47d,_0x517c9f,_0x443821,_0x314296,_0x1bca62),_0x1e690e=_0x9a196e[_0x2b3da5++]^_0x3814a0(_0x453818,_0x53b47d,_0x443821,_0x314296,_0x1bca62,_0x517c9f),_0x444e97=_0x9a196e[_0x2b3da5++]^_0x3814a0(_0x453818,_0x53b47d,_0x314296,_0x1bca62,_0x517c9f,_0x443821),_0x4550be=_0x9a196e[_0x2b3da5++]^_0x3814a0(_0x453818,_0x53b47d,_0x1bca62,_0x517c9f,_0x443821,_0x314296);_0x517c9f=_0x41f102,_0x443821=_0x1e690e,_0x314296=_0x444e97,_0x1bca62=_0x4550be;}return{'s0':_0x9a196e[_0x2b3da5++]^_0x234054(_0x5781d4,_0x517c9f,_0x443821,_0x314296,_0x1bca62),'s1':_0x9a196e[_0x2b3da5++]^_0x234054(_0x5781d4,_0x443821,_0x314296,_0x1bca62,_0x517c9f),'s2':_0x9a196e[_0x2b3da5++]^_0x234054(_0x5781d4,_0x314296,_0x1bca62,_0x517c9f,_0x443821),'s3':_0x9a196e[_0x2b3da5++]^_0x234054(_0x5781d4,_0x1bca62,_0x517c9f,_0x443821,_0x314296)};}function _0x310254(_0x48c282,_0x457fe6,_0x179109,_0x435d95,_0x2368ef){const _0x2156b6=_0x315216;let {sbox2:_0x2fdc40,T01:_0x104988,T23:_0x2e07cf}=_0x15efc8,_0x498a3d=0x0;_0x457fe6^=_0x48c282[_0x498a3d++],_0x179109^=_0x48c282[_0x498a3d++],_0x435d95^=_0x48c282[_0x498a3d++],_0x2368ef^=_0x48c282[_0x498a3d++];let _0x15dd5b=_0x48c282[_0x2156b6(0x250)]/0x4-0x2;for(let _0x4466f1=0x0;_0x4466f1<_0x15dd5b;_0x4466f1++){let _0x3e3372=_0x48c282[_0x498a3d++]^_0x3814a0(_0x104988,_0x2e07cf,_0x457fe6,_0x2368ef,_0x435d95,_0x179109),_0xab6926=_0x48c282[_0x498a3d++]^_0x3814a0(_0x104988,_0x2e07cf,_0x179109,_0x457fe6,_0x2368ef,_0x435d95),_0xdab7e4=_0x48c282[_0x498a3d++]^_0x3814a0(_0x104988,_0x2e07cf,_0x435d95,_0x179109,_0x457fe6,_0x2368ef),_0x5d1179=_0x48c282[_0x498a3d++]^_0x3814a0(_0x104988,_0x2e07cf,_0x2368ef,_0x435d95,_0x179109,_0x457fe6);_0x457fe6=_0x3e3372,_0x179109=_0xab6926,_0x435d95=_0xdab7e4,_0x2368ef=_0x5d1179;}return{'s0':_0x48c282[_0x498a3d++]^_0x234054(_0x2fdc40,_0x457fe6,_0x2368ef,_0x435d95,_0x179109),'s1':_0x48c282[_0x498a3d++]^_0x234054(_0x2fdc40,_0x179109,_0x457fe6,_0x2368ef,_0x435d95),'s2':_0x48c282[_0x498a3d++]^_0x234054(_0x2fdc40,_0x435d95,_0x179109,_0x457fe6,_0x2368ef),'s3':_0x48c282[_0x498a3d++]^_0x234054(_0x2fdc40,_0x2368ef,_0x435d95,_0x179109,_0x457fe6)};}function _0x1c7ed6(_0x57ae1e,_0x2fdeba){const _0x26fd02=_0x315216;if(_0x19408d(_0x57ae1e),_0x57ae1e[_0x26fd02(0x250)]%0x10!=0x0)throw Error(_0x26fd02(0x356));_0x2fdeba!==void 0x0&&(_0x22c370(_0x57ae1e[_0x26fd02(0x250)],_0x2fdeba),_0x49ac1c(_0x57ae1e,_0x2fdeba));}function _0x5e4a48(_0x35cdb7,_0x5180e5,_0x42092b){const _0x324564=_0x315216;_0x19408d(_0x35cdb7);let _0xcd86b2=_0x35cdb7[_0x324564(0x250)],_0x3f7c5e=_0xcd86b2%0x10;if(!_0x5180e5&&_0x3f7c5e!==0x0)throw Error(_0x324564(0xbe));if(_0x5180e5){let _0x72d7d6=0x10-_0x3f7c5e;_0x72d7d6||=0x10,_0xcd86b2+=_0x72d7d6;}return _0x42092b!==void 0x0&&(_0x22c370(_0xcd86b2,_0x42092b),_0x49ac1c(_0x35cdb7,_0x42092b)),_0xcd86b2;}function _0x3e7174(_0x23e0c2,_0x378e23,_0x390362){_0x390362===void 0x0&&(_0x390362=new Uint8Array(_0x378e23)),(!_0x558a35||!_0x212fd2(_0x23e0c2))&&(_0x23e0c2=_0x70eb6a(_0x23e0c2));let _0x12b033=_0xda7b2(_0x390362);return{'b':_0x23e0c2,'o':_0x12b033,'out':_0x390362};}function _0x387d35(_0x2e2214,_0x2dd714){const _0x15d0c8=_0x315216;if(!_0x2dd714)return _0x2e2214;let _0x1646ab=_0x2e2214[_0x15d0c8(0x250)];if(_0x1646ab===0x0)throw Error(_0x15d0c8(0x1b0));let _0x1d573a=_0x2e2214[_0x1646ab-0x1],_0x46086c=0x1;_0x46086c&=_0x1d573a-0x1>>>0x1f^0x1,_0x46086c&=0x10-_0x1d573a>>>0x1f^0x1;for(let _0x400dfa=0x0;_0x400dfa<0x10;_0x400dfa++){let _0x3d4075=_0x400dfa-_0x1d573a>>>0x1f,_0x49a0d8=+((_0x2e2214[_0x1646ab-0x1-_0x400dfa]^_0x1d573a)===0x0);_0x46086c&=_0x49a0d8|_0x3d4075^0x1;}if(!_0x46086c)throw Error(_0x15d0c8(0x1e1));return _0x2e2214[_0x15d0c8(0x245)](0x0,_0x1646ab-_0x1d573a);}function _0x201441(_0x2367f6){const _0x274294=_0x315216;let _0xed50f=new Uint8Array(0x10),_0x444c7b=_0xda7b2(_0xed50f);_0xed50f[_0x274294(0x232)](_0x2367f6);let _0x433e84=0x10-_0x2367f6[_0x274294(0x250)];for(let _0x467f39=0x10-_0x433e84;_0x467f39<0x10;_0x467f39++)_0xed50f[_0x467f39]=_0x433e84;return _0x444c7b;}let _0x57f3f7=_0x293aa1({'blockSize':0x10,'nonceLength':0x10},function(_0x4a80d5,_0x168b04,_0x466aec={}){const _0x250446=_0x315216;let _0x30f50f=!_0x466aec[_0x250446(0x39c)];return{'encrypt'(_0x54a95a,_0x3f319e){const _0xcb64d=_0x250446;let _0x1caf31=_0x5e4a48(_0x54a95a,_0x30f50f,_0x3f319e),_0x13bdb3=_0x267767(_0x4a80d5),{b:_0x517598,o:_0xd55007,out:_0x37cc04}=_0x3e7174(_0x54a95a,_0x1caf31,_0x3f319e),_0xc33403=_0xda7b2(_0x517598);_0x430bce(_0xc33403);let _0x3d665d=_0x168b04,_0x22a61a=[_0x13bdb3];(!_0x558a35||!_0x212fd2(_0x3d665d))&&_0x22a61a['push'](_0x3d665d=_0x70eb6a(_0x3d665d));let _0x2d3de7=_0xda7b2(_0x3d665d);_0x430bce(_0x2d3de7);let _0x2fd527=_0x2d3de7[0x0],_0x37d638=_0x2d3de7[0x1],_0x30ba85=_0x2d3de7[0x2],_0x5162f7=_0x2d3de7[0x3],_0x2cf5d7=0x0;for(;_0x2cf5d7+0x4<=_0xc33403[_0xcb64d(0x250)];)_0x2fd527^=_0xc33403[_0x2cf5d7+0x0],_0x37d638^=_0xc33403[_0x2cf5d7+0x1],_0x30ba85^=_0xc33403[_0x2cf5d7+0x2],_0x5162f7^=_0xc33403[_0x2cf5d7+0x3],{s0:_0x2fd527,s1:_0x37d638,s2:_0x30ba85,s3:_0x5162f7}=_0x431705(_0x13bdb3,_0x2fd527,_0x37d638,_0x30ba85,_0x5162f7),_0xd55007[_0x2cf5d7++]=_0x2fd527,_0xd55007[_0x2cf5d7++]=_0x37d638,_0xd55007[_0x2cf5d7++]=_0x30ba85,_0xd55007[_0x2cf5d7++]=_0x5162f7;if(_0x30f50f){let _0x1aa192=_0x201441(_0x54a95a[_0xcb64d(0x245)](_0x2cf5d7*0x4));_0x430bce(_0x1aa192),_0x2fd527^=_0x1aa192[0x0],_0x37d638^=_0x1aa192[0x1],_0x30ba85^=_0x1aa192[0x2],_0x5162f7^=_0x1aa192[0x3],{s0:_0x2fd527,s1:_0x37d638,s2:_0x30ba85,s3:_0x5162f7}=_0x431705(_0x13bdb3,_0x2fd527,_0x37d638,_0x30ba85,_0x5162f7),_0xd55007[_0x2cf5d7++]=_0x2fd527,_0xd55007[_0x2cf5d7++]=_0x37d638,_0xd55007[_0x2cf5d7++]=_0x30ba85,_0xd55007[_0x2cf5d7++]=_0x5162f7,_0x4fce4b(_0x1aa192);}return _0x430bce(_0xd55007),_0x4fce4b(..._0x22a61a),_0x517598!==_0x54a95a&&_0x4fce4b(_0x517598),_0x37cc04;},'decrypt'(_0x41cc13,_0x14fd25){const _0x2fb131=_0x250446;_0x1c7ed6(_0x41cc13,_0x14fd25);let _0x439c5e=_0x14b8de(_0x4a80d5);_0x14fd25===void 0x0&&(_0x14fd25=new Uint8Array(_0x41cc13[_0x2fb131(0x250)]));let _0x2241f6=_0x168b04,_0x47ef26=[_0x439c5e];(!_0x558a35||!_0x212fd2(_0x2241f6))&&_0x47ef26[_0x2fb131(0x46e)](_0x2241f6=_0x70eb6a(_0x2241f6));let _0x5b45d3=_0xda7b2(_0x2241f6);_0x430bce(_0x5b45d3),(!_0x558a35||!_0x212fd2(_0x41cc13))&&_0x47ef26['push'](_0x41cc13=_0x70eb6a(_0x41cc13));let _0x46f23c=_0xda7b2(_0x41cc13),_0x35bfbe=_0xda7b2(_0x14fd25);_0x430bce(_0x46f23c);let _0x536e03=_0x5b45d3[0x0],_0x2b5a95=_0x5b45d3[0x1],_0x5edfbe=_0x5b45d3[0x2],_0x3eaa80=_0x5b45d3[0x3];for(let _0x5a37cf=0x0;_0x5a37cf+0x4<=_0x46f23c['length'];){let _0x50e760=_0x536e03,_0xcb7b8=_0x2b5a95,_0x5c7244=_0x5edfbe,_0x178c58=_0x3eaa80;_0x536e03=_0x46f23c[_0x5a37cf+0x0],_0x2b5a95=_0x46f23c[_0x5a37cf+0x1],_0x5edfbe=_0x46f23c[_0x5a37cf+0x2],_0x3eaa80=_0x46f23c[_0x5a37cf+0x3];let {s0:_0x48ff4c,s1:_0x247648,s2:_0x450596,s3:_0x4e084e}=_0x310254(_0x439c5e,_0x536e03,_0x2b5a95,_0x5edfbe,_0x3eaa80);_0x35bfbe[_0x5a37cf++]=_0x48ff4c^_0x50e760,_0x35bfbe[_0x5a37cf++]=_0x247648^_0xcb7b8,_0x35bfbe[_0x5a37cf++]=_0x450596^_0x5c7244,_0x35bfbe[_0x5a37cf++]=_0x4e084e^_0x178c58;}return _0x430bce(_0x35bfbe),_0x4fce4b(..._0x47ef26),_0x387d35(_0x14fd25,_0x30f50f);}};});function _0x326be3(_0x5e9421){const _0x3c501c=_0x315216;let _0x517c7c=atob(_0x5e9421),_0x60b1e7=new Uint8Array(_0x517c7c['length']);for(let _0xd937a8=0x0;_0xd937a8<_0x517c7c[_0x3c501c(0x250)];_0xd937a8++)_0x60b1e7[_0xd937a8]=_0x517c7c[_0x3c501c(0x3b7)](_0xd937a8);return _0x60b1e7;}function _0x207ea7(_0x374782){const _0x41fff6=_0x315216;let _0x4a58eb='';for(let _0x256282=0x0;_0x256282<_0x374782[_0x41fff6(0x250)];_0x256282++)_0x4a58eb+=String['fromCharCode'](_0x374782[_0x256282]);return btoa(_0x4a58eb);}function _0x5ab43a(_0x3a7db1,_0x11f357){const _0x3e8124=_0x315216;let _0xe3f842=_0x326be3(_0x11f357),_0x562d90=_0x59afa8(0x10);return _0x207ea7(_0x2dd4f9(_0x562d90,_0x57f3f7(_0xe3f842,_0x562d90)[_0x3e8124(0xce)](_0x4bf143(_0x3a7db1))));}function _0x4aaa18(){const _0x5f423c=_0x315216;let _0x229e04=(0x0,_0x35d7c3['getGlobalObject'])()[_0x5f423c(0x405)];if(typeof window<'u'&&window[_0x5f423c(0xcd)]!==void 0x0&&_0x229e04){let _0x216977={'time':Math[_0x5f423c(0x244)](Date['now']()/0x3e8),'domain':location[_0x5f423c(0x165)]};return _0x5ab43a(JSON[_0x5f423c(0x302)](_0x216977),_0x229e04);}}let _0x114505=class{constructor(_0x454377){const _0x500b66=_0x315216;this[_0x500b66(0xde)]=_0x454377,this[_0x500b66(0x36b)]();}['_initRequestHeader'](){const _0x3c879a=_0x315216;this[_0x3c879a(0xde)][_0x3c879a(0x1c1)]({'interceptor':(_0x4bb2a5,_0x31d8e8)=>{const _0x4ae850=_0x3c879a;let _0x4ed677=_0x4aaa18();return _0x4ed677&&_0x4bb2a5['headers'][_0x4ae850(0x232)](_0x4ae850(0xe2),_0x4ed677),_0x31d8e8(_0x4bb2a5);}});}};_0x114505=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4[_0x315216(0x149)]))],_0x114505);let _0x4e5ab6=class extends _0x325f28[_0x315216(0x10c)]{constructor(_0x4303c0,_0x93d14c,_0x2f0426){const _0x33f2b8=_0x315216;super(),this['_logService']=_0x4303c0,this[_0x33f2b8(0x10f)]=_0x93d14c,this[_0x33f2b8(0x249)]=_0x2f0426,_0x4da1f9(this,_0x33f2b8(0x432),new _0x1fdbe2[(_0x33f2b8(0x1c7))](null)),_0x4da1f9(this,_0x33f2b8(0x2b9),new _0x1fdbe2['Subject']()),_0x4da1f9(this,'unitInfo$',this['_unitInfo$'][_0x33f2b8(0xf1)]()),_0x4da1f9(this,_0x33f2b8(0x23c),this[_0x33f2b8(0x2b9)][_0x33f2b8(0xf1)]());}[_0x315216(0x15a)](){const _0x1a379f=_0x315216;super[_0x1a379f(0x15a)](),this[_0x1a379f(0x2b9)][_0x1a379f(0x313)](),this[_0x1a379f(0x432)][_0x1a379f(0x313)]();}[_0x315216(0x2e6)](_0x3727bf,_0x4e6f19,_0x5ad3d0,_0x13ee13,_0x527897){return this['_loadUnit'](_0x3727bf,_0x4e6f19,_0x5ad3d0,_0x13ee13,_0x527897);}[_0x315216(0x1b7)](_0x1e8e1e,_0x218a35,_0x588ae9,_0x19ec81){return this['_loadUnit'](_0x1e8e1e,_0x218a35,void 0x0,_0x588ae9,_0x19ec81);}async[_0x315216(0x271)](_0x2ba25d,_0x3e2e1d,_0x50f923,_0x56664d,_0x374fcd){const _0x1609c2=_0x315216;this[_0x1609c2(0x432)][_0x1609c2(0x407)]({'unitId':_0x2ba25d,'type':_0x3e2e1d,'subUnitId':_0x56664d});let _0x18faeb=_0x50f923;if(_0x18faeb===void 0x0){var _0x20fc39;let _0xf20147=await((_0x20fc39=this[_0x1609c2(0x249)])==null?void 0x0:_0x20fc39[_0x1609c2(0x1ab)](_0x2ba25d));_0x18faeb=_0xf20147&&(_0xf20147[_0x1609c2(0x421)]||_0xf20147[_0x1609c2(0x383)]['length']!==0x0)?_0xf20147[_0x1609c2(0x13a)]:0x0,_0x18faeb===0x0&&this[_0x1609c2(0xb8)][_0x1609c2(0x3e5)](_0x1609c2(0x99),_0x1609c2(0x143));}return this[_0x1609c2(0x2ee)](_0x2ba25d,_0x3e2e1d,_0x18faeb,_0x56664d,_0x374fcd);}async[_0x315216(0x2ee)](_0x576db5,_0x57685c,_0x4e51ba,_0x13b830,_0x45b8d2){const _0x5eb528=_0x315216;let _0xe8fc10=null;switch(_0x57685c){case _0x325f28[_0x5eb528(0x41f)][_0x5eb528(0x33b)]:_0xe8fc10=await this[_0x5eb528(0x10f)][_0x5eb528(0x1c2)](_0x576db5,_0x4e51ba,_0x45b8d2,{'initialSubUnitId':_0x13b830});break;case _0x325f28[_0x5eb528(0x41f)][_0x5eb528(0x2a4)]:_0xe8fc10=await this[_0x5eb528(0x10f)][_0x5eb528(0x1f9)](_0x576db5,_0x4e51ba,_0x45b8d2);break;case _0x325f28[_0x5eb528(0x41f)]['UNIVER_SLIDE']:_0xe8fc10=await this[_0x5eb528(0x10f)]['loadSlide'](_0x576db5,_0x4e51ba,_0x45b8d2);break;case _0x325f28[_0x5eb528(0x41f)][_0x5eb528(0x3a4)]:_0xe8fc10=await this[_0x5eb528(0x10f)]['loadBoard'](_0x576db5,_0x4e51ba,_0x45b8d2);break;case _0x325f28['UniverInstanceType'][_0x5eb528(0xc9)]:_0xe8fc10=await this[_0x5eb528(0x10f)][_0x5eb528(0x3f8)](_0x576db5,_0x4e51ba,_0x45b8d2);break;case _0x325f28[_0x5eb528(0x41f)][_0x5eb528(0x45f)]:_0xe8fc10=await this[_0x5eb528(0x10f)][_0x5eb528(0x43f)](_0x576db5,_0x4e51ba,_0x45b8d2);break;default:this[_0x5eb528(0xb8)]['error']('[DataLoaderService]','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');}return _0xe8fc10&&this[_0x5eb528(0x2b9)][_0x5eb528(0x407)](_0xe8fc10),_0xe8fc10;}};_0x4e5ab6=_0x5af442([_0x557b04(0x0,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x2b0)])),_0x557b04(0x2,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x4e5ab6);let _0x18c5f6=class{constructor(_0x55e397,_0x1fe691,_0x1284c1){const _0x5954cf=_0x315216;this[_0x5954cf(0xde)]=_0x55e397,this[_0x5954cf(0x1ed)]=_0x1fe691,this['_univerInstanceService']=_0x1284c1,_0x4da1f9(this,_0x5954cf(0x42d),0x0),_0x4da1f9(this,_0x5954cf(0x396),new _0x1fdbe2[(_0x5954cf(0x112))]()),_0x4da1f9(this,_0x5954cf(0x380),this[_0x5954cf(0x396)]),_0x4da1f9(this,_0x5954cf(0xa0),new Map());}[_0x315216(0xc4)](_0x21c8b3){const _0x56d17d=_0x315216;this[_0x56d17d(0x42d)]=_0x21c8b3,this[_0x56d17d(0x396)][_0x56d17d(0x407)](_0x21c8b3);}[_0x315216(0x1a5)](_0x544643,_0x4b404d){const _0x6afa51=_0x315216;if(_0x4b404d===_0x325f28[_0x6afa51(0x3f6)]['BASE64']){let _0x21a095=new Image();return _0x21a095['src']=_0x544643,_0x21a095;}return this['_imageSourceCache'][_0x6afa51(0x1df)](_0x544643);}[_0x315216(0x273)](_0x1c9f53,_0x24d543,_0x1951d8){const _0x36d33c=_0x315216;_0x24d543!==_0x325f28[_0x36d33c(0x3f6)][_0x36d33c(0x460)]&&_0x1951d8!=null&&this[_0x36d33c(0xa0)][_0x36d33c(0x232)](_0x1c9f53,_0x1951d8);}async[_0x315216(0x3a2)](_0x41a112){const _0x4f7280=_0x315216;try{let _0xedbcc8=this['_replaceFileID'](this['_getSignURL'](),''+_0x41a112),_0x21a222=(await this['_httpService'][_0x4f7280(0x1df)](_0xedbcc8))[_0x4f7280(0x3d5)];if(_0x21a222['error']&&_0x21a222['error'][_0x4f7280(0xdf)]===_0x483212[_0x4f7280(0x349)]['OK']){let _0x5789c8=(0x0,_0x325f28[_0x4f7280(0x1f1)])(_0x21a222['url'],this[_0x4f7280(0x298)]());return Promise['resolve'](_0x5789c8);}return Promise[_0x4f7280(0xf3)](_0x21a222[_0x4f7280(0xd6)]);}catch(_0x271b8f){return Promise[_0x4f7280(0xf3)](_0x271b8f);}}async[_0x315216(0x150)](_0x29f57d){const _0x39e911=_0x315216;let _0xc1978='';if(!_0x2115ce[_0x39e911(0xa2)][_0x39e911(0x3e1)](_0x29f57d[_0x39e911(0x438)]))return this[_0x39e911(0x252)](),Promise[_0x39e911(0xf3)](Error(_0x325f28[_0x39e911(0xaa)]['ERROR_IMAGE_TYPE']));if(_0x29f57d[_0x39e911(0x3e0)]>(0x0,_0x2115ce[_0x39e911(0x3fa)])())return this[_0x39e911(0x252)](),Promise[_0x39e911(0xf3)](Error(_0x325f28[_0x39e911(0xaa)]['ERROR_EXCEED_SIZE']));try{let _0x2f5eee=new FormData();_0x2f5eee[_0x39e911(0x2b1)](_0x39e911(0xe9),_0x29f57d);let _0x22ec9a=this[_0x39e911(0x23b)][_0x39e911(0x3ed)](),_0x2458c2=_0x22ec9a==null?void 0x0:_0x22ec9a['getUnitId']();if(!_0x2458c2)throw Error('unitId\x20is\x20not\x20found');let _0x1039e3=this['_getUploadFileURL']()+'?size='+_0x29f57d['size'][_0x39e911(0x3c8)]()+_0x39e911(0x136)+_0x483212[_0x39e911(0x2e8)]['UnitEmbedded']+_0x39e911(0x20f)+encodeURIComponent(_0x2458c2),_0x259620={'body':_0x2f5eee},_0x376efa=(await this['_httpService'][_0x39e911(0x178)](_0x1039e3,_0x259620))[_0x39e911(0x3d5)];if(typeof _0x376efa[_0x39e911(0x458)]!='string')return this[_0x39e911(0x252)](),Promise[_0x39e911(0xf3)](Error(_0x325f28[_0x39e911(0xaa)][_0x39e911(0xf8)]));_0xc1978=_0x376efa['FileId'];}catch{return this[_0x39e911(0x252)](),Promise[_0x39e911(0xf3)](Error(_0x325f28[_0x39e911(0xaa)][_0x39e911(0xf8)]));}return new Promise((_0x46b6fb,_0x3b70e4)=>{const _0x583c0d=_0x39e911;let _0x389a35=new FileReader();_0x389a35[_0x583c0d(0xaf)](_0x29f57d),_0x389a35[_0x583c0d(0x414)]=_0x4ab1ca=>{const _0x4de928=_0x583c0d;var _0x24e466;let _0x3bc4c2=(_0x24e466=_0x4ab1ca[_0x4de928(0x41c)])==null?void 0x0:_0x24e466[_0x4de928(0x123)];_0x3bc4c2==null?(this[_0x4de928(0x252)](),_0x3b70e4(Error(_0x325f28['ImageUploadStatusType']['ERROR_IMAGE']))):(_0x46b6fb({'imageId':(0x0,_0x325f28[_0x4de928(0x36d)])(0x6),'imageSourceType':_0x325f28[_0x4de928(0x3f6)][_0x4de928(0x439)],'source':_0xc1978,'base64Cache':_0x3bc4c2,'status':_0x325f28[_0x4de928(0xaa)]['SUCCUSS']}),this[_0x4de928(0x252)]());};});}['_getUploadFileURL'](){const _0x4344c5=_0x315216;let _0x5ec8ed=this[_0x4344c5(0x1ed)]['getConfig'](_0x3a344c);return(_0x5ec8ed==null?void 0x0:_0x5ec8ed[_0x4344c5(0x322)])??_0x4344c5(0x43a);}[_0x315216(0xed)](){const _0x3259f2=_0x315216;let _0x57ef78=this[_0x3259f2(0x1ed)][_0x3259f2(0x455)](_0x3a344c);return(_0x57ef78==null?void 0x0:_0x57ef78[_0x3259f2(0x18e)])??_0x3259f2(0x153);}[_0x315216(0x298)](){const _0x3f4a4c=_0x315216;let _0xe67c07=this[_0x3f4a4c(0x1ed)][_0x3f4a4c(0x455)](_0x3a344c);return(_0xe67c07==null?void 0x0:_0xe67c07[_0x3f4a4c(0x36a)])??location[_0x3f4a4c(0x2ad)];}[_0x315216(0x333)](_0x3abe38,_0x525c9f){const _0x169f8b=_0x315216;return _0x3abe38[_0x169f8b(0x3bd)]('{fileID}',_0x525c9f);}[_0x315216(0x252)](){const _0x36c38b=_0x315216;--this[_0x36c38b(0x42d)],this[_0x36c38b(0x396)][_0x36c38b(0x407)](this['_waitCount']);}};_0x18c5f6=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28['Inject'])(_0x18cba4['HTTPService'])),_0x557b04(0x1,_0x325f28[_0x315216(0x1cf)]),_0x557b04(0x2,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0xd2)]))],_0x18c5f6);let _0x37d84f=class{constructor(_0xe57ebe,_0x83f2b5){const _0x539372=_0x315216;this['_configService']=_0xe57ebe,this[_0x539372(0x255)]=_0x83f2b5;}[_0x315216(0x27a)](){const _0x1fecfc=_0x315216;let _0x2b7e76=this[_0x1fecfc(0x1ed)][_0x1fecfc(0x455)](_0x3a344c);return(_0x2b7e76==null?void 0x0:_0x2b7e76['authzUrl'])??_0x1fecfc(0xf9);}async[_0x315216(0x211)](_0x533235){const _0x59bbb5=_0x315216;let _0x37c235=this[_0x59bbb5(0x27a)]()+_0x59bbb5(0x339);return{'list':[{'title':_0x59bbb5(0x18a),'mentions':(await this[_0x59bbb5(0x255)][_0x59bbb5(0x1df)](_0x37c235,{'params':{'objectID':_0x533235['unitId'],'unitID':_0x533235[_0x59bbb5(0x352)]}}))[_0x59bbb5(0x3d5)][_0x59bbb5(0x390)][_0x59bbb5(0x403)](_0x109c82=>({'objectId':_0x109c82['id'],'name':_0x109c82[_0x59bbb5(0x2b5)][_0x59bbb5(0x163)],'metadata':{'icon':_0x109c82[_0x59bbb5(0x2b5)][_0x59bbb5(0x24c)]},'label':_0x109c82['subject'][_0x59bbb5(0x163)],'objectType':_0x325f28[_0x59bbb5(0x1ff)][_0x59bbb5(0x225)]})),'metadata':{},'type':_0x325f28[_0x59bbb5(0x1ff)][_0x59bbb5(0x225)]}]};}};_0x37d84f=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x1cf)])),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4['HTTPService']))],_0x37d84f);let _0x484143=class extends _0x325f28[_0x315216(0x10c)]{constructor(_0x1f55ec,_0x22da6c,_0x4b0095,_0x10ad71,_0x4a8574,_0x10fce4){const _0x49aa98=_0x315216;super(),this[_0x49aa98(0xe7)]=_0x1f55ec,this[_0x49aa98(0x23b)]=_0x22da6c,this['_permissionService']=_0x4b0095,this[_0x49aa98(0x21d)]=_0x10ad71,this[_0x49aa98(0x19b)]=_0x4a8574,this[_0x49aa98(0x190)]=_0x10fce4,_0x4da1f9(this,_0x49aa98(0x24a),new Set()),this[_0x49aa98(0x41e)](()=>this['_closedUnits'][_0x49aa98(0x14e)]()),this['disposeWithMe'](_0x3bc91a(this[_0x49aa98(0x23b)])[_0x49aa98(0x28f)](({unitId:_0x47feac})=>this[_0x49aa98(0x24a)]['delete'](_0x47feac))),this['_initUnitPermissionChange'](),this[_0x49aa98(0x22f)](),[_0x325f28['UniverInstanceType'][_0x49aa98(0x2a4)],_0x325f28[_0x49aa98(0x41f)][_0x49aa98(0x1c3)],_0x325f28[_0x49aa98(0x41f)][_0x49aa98(0xc9)],_0x325f28['UniverInstanceType'][_0x49aa98(0x3a4)]][_0x49aa98(0x216)](_0x5cc962=>{const _0x38a02d=_0x49aa98;this[_0x38a02d(0x41e)](this[_0x38a02d(0x23b)]['getTypeOfUnitDisposed$'](_0x5cc962)[_0x38a02d(0x28f)](_0x3eb010=>{const _0x55725a=_0x38a02d;this[_0x55725a(0x24a)][_0x55725a(0xd9)](_0x3eb010['getUnitId']()),this[_0x55725a(0xe7)][_0x55725a(0x1df)](_0x325f28[_0x55725a(0x2ab)])[_0x55725a(0x222)](_0x3eb010[_0x55725a(0x119)]());}));});}[_0x315216(0x22f)](){const _0x10510a=_0x315216;let _0x5390d4=async(_0x44612d,_0x1daa62)=>{const _0x4b90b1=_0x2c10;let _0x5f5781=await this[_0x4b90b1(0x19b)]['requireSession'](_0x44612d);this[_0x4b90b1(0x43c)]||this[_0x4b90b1(0x24a)][_0x4b90b1(0xd1)](_0x44612d)||!this[_0x4b90b1(0x23b)]['getUnit'](_0x44612d)||_0x5f5781[_0x4b90b1(0x376)]['pipe']((0x0,_0xa8b74d[_0x4b90b1(0x22a)])(_0x355652=>_0x355652[_0x4b90b1(0x32e)]===_0x4524ba[_0x4b90b1(0x1d7)][_0x4b90b1(0x15e)]),(0x0,_0xa8b74d[_0x4b90b1(0xf5)])((0x0,_0x1fdbe2[_0x4b90b1(0x3f7)])(this[_0x4b90b1(0x42a)],this[_0x4b90b1(0x23b)]['unitDisposed$'][_0x4b90b1(0xa4)]((0x0,_0xa8b74d[_0x4b90b1(0x22a)])(_0x2a681d=>_0x2a681d['getUnitId']()===_0x44612d)))))[_0x4b90b1(0x28f)](_0x17d367=>{const _0x209d26=_0x4b90b1;let {reason:_0x39c697}=_0x17d367['data'];this[_0x209d26(0x190)]['emitEvent']({'id':_0x209d26(0x1bd),'data':_0x39c697}),this[_0x209d26(0x24a)][_0x209d26(0xd9)](_0x44612d),this[_0x209d26(0xe7)]['get'](_0x325f28['ObjectPermissionService'])[_0x209d26(0x222)](_0x44612d);let _0x3ea7bf=_0x11f2de(_0x1daa62);_0x3ea7bf!=null&&this[_0x209d26(0x1a3)](_0x44612d,_0x3ea7bf,_0x483212[_0x209d26(0x2ca)][_0x209d26(0x297)],!0x1),this[_0x209d26(0x19b)][_0x209d26(0x316)](_0x44612d);});};_0x3bc91a(this[_0x10510a(0x23b)])[_0x10510a(0xa4)]((0x0,_0xa8b74d[_0x10510a(0x22a)])(({unitId:_0x481ecc})=>!(0x0,_0x325f28['isInternalEditorID'])(_0x481ecc)),(0x0,_0xa8b74d[_0x10510a(0xf5)])(this[_0x10510a(0x42a)]))['subscribe'](({type:_0x52b96c,unitId:_0x29c30c})=>{const _0x36232c=_0x10510a;_0x5390d4(_0x29c30c,_0x52b96c)[_0x36232c(0x195)](_0x441be5=>this[_0x36232c(0xe7)]['get'](_0x325f28[_0x36232c(0x25d)])[_0x36232c(0xd6)](_0x441be5));});}[_0x315216(0x166)](){const _0x56ac8d=_0x315216;let _0x488edd=async(_0xf960f9,_0x34f52a)=>{const _0x169a7b=_0x2c10;let _0x12d0f3=await this['_collaborationSessionService']['requireSession'](_0xf960f9);if(!(this['_disposed']||this[_0x169a7b(0x24a)][_0x169a7b(0xd1)](_0xf960f9)||!this[_0x169a7b(0x23b)][_0x169a7b(0x33c)](_0xf960f9))){if(_0x34f52a===_0x325f28[_0x169a7b(0x41f)][_0x169a7b(0x33b)]){let _0x2e9d3a=this['_injector'][_0x169a7b(0x1df)](_0x29d3a5[_0x169a7b(0x3f0)]);await _0x2e9d3a[_0x169a7b(0x12c)](_0xf960f9),_0x12d0f3[_0x169a7b(0x376)][_0x169a7b(0xa4)]((0x0,_0xa8b74d[_0x169a7b(0x22a)])(_0x57836c=>_0x57836c[_0x169a7b(0x32e)]===_0x4524ba[_0x169a7b(0x1d7)][_0x169a7b(0x1ce)]),(0x0,_0xa8b74d['takeUntil'])((0x0,_0x1fdbe2['merge'])(this[_0x169a7b(0x42a)],_0x12d0f3[_0x169a7b(0x376)][_0x169a7b(0xa4)]((0x0,_0xa8b74d['filter'])(_0x950e92=>_0x950e92[_0x169a7b(0x32e)]===_0x4524ba[_0x169a7b(0x1d7)][_0x169a7b(0x15e)])),this[_0x169a7b(0x23b)][_0x169a7b(0x360)][_0x169a7b(0xa4)]((0x0,_0xa8b74d[_0x169a7b(0x22a)])(_0x36c4db=>_0x36c4db[_0x169a7b(0x119)]()===_0xf960f9)))))['subscribe'](_0x1d6ff8=>{const _0x5b174c=_0x169a7b;let {objectId:_0x1d2dc2}=_0x1d6ff8[_0x5b174c(0x2a1)];_0x1d2dc2===_0xf960f9?_0x2e9d3a[_0x5b174c(0x12c)](_0xf960f9):_0x2e9d3a[_0x5b174c(0x450)](_0xf960f9,_0x1d2dc2);});}else _0x12d0f3[_0x169a7b(0x376)]['pipe']((0x0,_0xa8b74d[_0x169a7b(0x22a)])(_0x40cfe4=>_0x40cfe4[_0x169a7b(0x32e)]===_0x4524ba['CollaborationEvent'][_0x169a7b(0x1ce)]),(0x0,_0xa8b74d[_0x169a7b(0xf5)])((0x0,_0x1fdbe2[_0x169a7b(0x3f7)])(this[_0x169a7b(0x42a)],_0x12d0f3[_0x169a7b(0x376)][_0x169a7b(0xa4)]((0x0,_0xa8b74d[_0x169a7b(0x22a)])(_0x40cd2f=>_0x40cd2f[_0x169a7b(0x32e)]===_0x4524ba['CollaborationEvent'][_0x169a7b(0x15e)])),this['_univerInstanceService']['unitDisposed$']['pipe']((0x0,_0xa8b74d[_0x169a7b(0x22a)])(_0x50cdc8=>_0x50cdc8['getUnitId']()===_0xf960f9)))))['subscribe'](()=>{const _0x5b2d53=_0x169a7b;this[_0x5b2d53(0x2fc)](_0xf960f9,_0x34f52a)['catch'](_0x484847=>this[_0x5b2d53(0xe7)]['get'](_0x325f28[_0x5b2d53(0x25d)])[_0x5b2d53(0xd6)](_0x484847));}),await this['_refreshUnitPermission'](_0xf960f9,_0x34f52a);}};_0x3bc91a(this[_0x56ac8d(0x23b)])[_0x56ac8d(0xa4)]((0x0,_0xa8b74d[_0x56ac8d(0x22a)])(({unitId:_0x8c60ac})=>!(0x0,_0x325f28[_0x56ac8d(0x453)])(_0x8c60ac)),(0x0,_0xa8b74d['takeUntil'])(this[_0x56ac8d(0x42a)]))[_0x56ac8d(0x28f)](({type:_0x285ffb,unitId:_0x34239c})=>{const _0xac0cd4=_0x56ac8d;_0x488edd(_0x34239c,_0x285ffb)[_0xac0cd4(0x195)](_0x4147a5=>this[_0xac0cd4(0xe7)][_0xac0cd4(0x1df)](_0x325f28[_0xac0cd4(0x25d)])[_0xac0cd4(0xd6)](_0x4147a5));});}async['_refreshUnitPermission'](_0x2510ed,_0x110c60){const _0x4a77d7=_0x315216;let _0x2dee13=_0x11f2de(_0x110c60);if(_0x2dee13==null)return;let _0x175368=this[_0x4a77d7(0xe7)][_0x4a77d7(0x1df)](_0x325f28[_0x4a77d7(0x2ab)]);if(_0x175368[_0x4a77d7(0x36c)]({'unitId':_0x2510ed,'objectId':_0x2510ed,'objectType':_0x2dee13})){await _0x175368[_0x4a77d7(0x11d)](_0x2510ed);return;}let _0x3e2b43=this[_0x4a77d7(0xc8)](_0x2510ed,_0x2dee13);if(!_0x3e2b43['length'])return;let _0xba8e2=await this[_0x4a77d7(0x21d)]['allowed']({'objectID':_0x2510ed,'objectType':_0x2dee13,'unitID':_0x2510ed,'actions':_0x3e2b43[_0x4a77d7(0x403)](({action:_0x346bd9})=>_0x346bd9)});this[_0x4a77d7(0x43c)]||this[_0x4a77d7(0x24a)]['has'](_0x2510ed)||!this[_0x4a77d7(0x23b)]['getUnit'](_0x2510ed)||_0xba8e2['forEach'](_0x3762be=>{const _0x4c8297=_0x4a77d7;let _0x41dc31=_0x3762be['action'],_0x4bb933=_0x3762be['allowed'];_0x41dc31!=null&&_0x4bb933!=null&&_0x3e2b43[_0x4c8297(0x22a)](_0x3d9059=>_0x3d9059['action']===_0x41dc31)[_0x4c8297(0x216)](_0x3f8346=>this[_0x4c8297(0x1bf)][_0x4c8297(0x26c)](_0x3f8346['id'],_0x4bb933));});}[_0x315216(0xc8)](_0x2eabbf,_0x4662fb){const _0x34a274=_0x315216;let _0x4a6f90=[];return this[_0x34a274(0x1bf)][_0x34a274(0x393)]()['forEach']((_0x27ae55,_0x3116e6)=>{_0x27ae55['subscribe'](_0x16d7ce=>{const _0x42b6a3=_0x2c10;_0x16d7ce[_0x42b6a3(0x438)]===_0x4662fb&&_0x42b6a3(0x352)in _0x16d7ce&&_0x16d7ce[_0x42b6a3(0x352)]===_0x2eabbf&&(!('objectId'in _0x16d7ce)||_0x16d7ce[_0x42b6a3(0x338)]===_0x2eabbf)&&_0x4a6f90[_0x42b6a3(0x46e)]({'id':_0x3116e6,'action':_0x16d7ce['subType']});})['unsubscribe']();}),_0x4a6f90;}[_0x315216(0x1a3)](_0x35533a,_0x32b191,_0x2326a1,_0x21c91b){const _0x3448dd=_0x315216;this['_permissionService'][_0x3448dd(0x393)]()[_0x3448dd(0x216)]((_0x360026,_0x448439)=>{const _0x56dde2=_0x3448dd;let _0x321c08=!0x1;_0x360026[_0x56dde2(0x28f)](_0x2547ee=>{const _0x537cec=_0x56dde2;_0x321c08=_0x2547ee[_0x537cec(0x438)]===_0x32b191&&_0x2547ee[_0x537cec(0x35b)]===_0x2326a1&&_0x537cec(0x352)in _0x2547ee&&_0x2547ee['unitId']===_0x35533a&&(!(_0x537cec(0x338)in _0x2547ee)||_0x2547ee[_0x537cec(0x338)]===_0x35533a);})[_0x56dde2(0x223)](),_0x321c08&&this[_0x56dde2(0x1bf)]['updatePermissionPoint'](_0x448439,_0x21c91b);});}};_0x484143=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x1,_0x325f28['IUniverInstanceService']),_0x557b04(0x2,_0x325f28[_0x315216(0x43e)]),_0x557b04(0x3,_0x325f28['IAuthzIoService']),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x2c8ade)),_0x557b04(0x5,(0x0,_0x325f28['Inject'])(_0x11f58a))],_0x484143);function _0x3bc91a(_0x404b02){const _0x534ddf=_0x315216;return(0x0,_0x1fdbe2[_0x534ddf(0x3f7)])(...[_0x325f28[_0x534ddf(0x41f)][_0x534ddf(0x33b)],_0x325f28[_0x534ddf(0x41f)][_0x534ddf(0x2a4)],_0x325f28[_0x534ddf(0x41f)][_0x534ddf(0x1c3)],_0x325f28[_0x534ddf(0x41f)]['UNIVER_BOARD'],_0x325f28[_0x534ddf(0x41f)]['UNIVER_BASE']][_0x534ddf(0x403)](_0x465bf7=>_0x404b02[_0x534ddf(0x2cb)](_0x465bf7)['pipe']((0x0,_0xa8b74d[_0x534ddf(0x403)])(_0x562484=>({'type':_0x465bf7,'unitId':_0x562484['unit']['getUnitId']()})))));}function _0x11f2de(_0xbe9c7a){const _0x586250=_0x315216;switch(_0xbe9c7a){case _0x325f28['UniverInstanceType'][_0x586250(0x33b)]:return _0x483212[_0x586250(0x22c)][_0x586250(0x199)];case _0x325f28['UniverInstanceType']['UNIVER_DOC']:return _0x483212[_0x586250(0x22c)][_0x586250(0x2b4)];case _0x325f28[_0x586250(0x41f)]['UNIVER_SLIDE']:return _0x483212['UnitObject'][_0x586250(0x168)];case _0x325f28[_0x586250(0x41f)][_0x586250(0x3a4)]:return _0x483212[_0x586250(0x22c)][_0x586250(0x2ce)];case _0x325f28[_0x586250(0x41f)][_0x586250(0xc9)]:return _0x483212[_0x586250(0x22c)]['Base'];default:return;}}let _0x4241ec=class{constructor(_0x1d7511,_0x250a06){const _0x4cd673=_0x315216;this[_0x4cd673(0x1ed)]=_0x1d7511,this[_0x4cd673(0xde)]=_0x250a06;}async[_0x315216(0x268)](_0x4903a8,_0x1fd9d6){const _0x30b63c=_0x315216;var _0x5877d1;let {unitID:_0x49da11,type:_0x1c5211,revision:_0x458047=0x0}=_0x1fd9d6,_0xdd6f3a=this[_0x30b63c(0x32d)]()+'/'+_0x1c5211+_0x30b63c(0x172)+_0x49da11+_0x30b63c(0x3fd)+_0x458047,_0x7d3dcd=(await this['_httpService'][_0x30b63c(0x1df)](_0xdd6f3a))[_0x30b63c(0x3d5)],_0x3262dc=(_0x5877d1=_0x7d3dcd[_0x30b63c(0x2a0)])==null?void 0x0:_0x5877d1[_0x30b63c(0x3e9)];if(_0x3262dc){let _0x4c9d8b=_0x3262dc==null?void 0x0:_0x3262dc['originalMeta'];_0x3262dc[_0x30b63c(0x444)]=_0x4524ba[_0x30b63c(0x105)][_0x30b63c(0x476)]((0x0,_0x4524ba[_0x30b63c(0xfd)])(_0x4c9d8b)),Object['entries'](_0x3262dc['sheets'])[_0x30b63c(0x216)](([,_0x1de8f9])=>{const _0x3ef606=_0x30b63c;let _0x356688=_0x1de8f9[_0x3ef606(0x444)];_0x1de8f9['originalMeta']=_0x4524ba[_0x3ef606(0x105)]['encode']((0x0,_0x4524ba['b64DecodeUnicode'])(_0x356688));});}return _0x7d3dcd;}async[_0x315216(0x35d)](_0x9bdf55,_0x4b1a6c){const _0x1fa5bf=_0x315216;let {unitID:_0x39951b,type:_0x401af9,blockID:_0x2555a8}=_0x4b1a6c,_0x10da04=this[_0x1fa5bf(0x121)]()+'/'+_0x401af9+_0x1fa5bf(0x172)+_0x39951b+_0x1fa5bf(0x47a)+_0x2555a8;return(await this[_0x1fa5bf(0xde)]['get'](_0x10da04))[_0x1fa5bf(0x3d5)];}async[_0x315216(0x2b6)](_0xa0760a,_0x2a1986){const _0x22ebd4=_0x315216;let {unitID:_0x9d889f,type:_0x535850,blockID:_0x73b702}=_0x2a1986,_0xe59188=this[_0x22ebd4(0x121)]()+'/block/'+_0x535850+_0x22ebd4(0x172)+_0x9d889f+'/block/'+_0x73b702;return(await this[_0x22ebd4(0xde)][_0x22ebd4(0x1df)](_0xe59188))['body'];}async['fetchMissingChangesets'](_0x229401,_0xd91083){const _0x2fe11e=_0x315216;let {unitID:_0x3ff518,type:_0x421041,from:_0x488516,to:_0x7ae142}=_0xd91083,_0x4fdc4b=this[_0x2fe11e(0x121)]()+'/'+_0x421041+_0x2fe11e(0x172)+_0x3ff518+_0x2fe11e(0x37e)+_0x488516+_0x2fe11e(0x116)+_0x7ae142;return(await this['_httpService'][_0x2fe11e(0x1df)](_0x4fdc4b))[_0x2fe11e(0x3d5)];}['getSnapshotAPIPath'](){const _0x379aaa=_0x315216;return this[_0x379aaa(0x1ed)][_0x379aaa(0x455)](_0x379aaa(0x31c))??this[_0x379aaa(0x121)]();}[_0x315216(0x121)](){const _0x160af0=_0x315216;let _0x3d9ff4=this[_0x160af0(0x1ed)]['getConfig'](_0x3a344c);return(_0x3d9ff4==null?void 0x0:_0x3d9ff4[_0x160af0(0x282)])??_0x160af0(0xe6);}async[_0x315216(0x263)](_0x1ceeff,_0x5d9a6f){const _0x5a5647=_0x315216;let _0x3b5bad=_0x5a5647(0xba)+_0x5d9a6f[_0x5a5647(0x438)]+'/unit/'+_0x5d9a6f[_0x5a5647(0x154)]+'/resources';return(await this[_0x5a5647(0xde)][_0x5a5647(0x1df)](_0x3b5bad,{'params':{'resourceId':JSON[_0x5a5647(0x302)](_0x5d9a6f[_0x5a5647(0xac)])}}))[_0x5a5647(0x3d5)];}[_0x315216(0x285)](){const _0x48af49=_0x315216;throw Error(_0x48af49(0x210));}['updateSnapshot'](){const _0x5bc758=_0x315216;throw Error(_0x5bc758(0x210));}[_0x315216(0x37b)](){const _0x18aa18=_0x315216;throw Error(_0x18aa18(0x210));}['saveChangeset'](){const _0x1ae383=_0x315216;throw Error(_0x1ae383(0x210));}['copyFileMeta'](){const _0x565db7=_0x315216;throw Error(_0x565db7(0x210));}[_0x315216(0x135)](){const _0xc24761=_0x315216;throw Error(_0xc24761(0x210));}};_0x4241ec=_0x5af442([_0x557b04(0x0,_0x325f28[_0x315216(0x1cf)]),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4[_0x315216(0x149)]))],_0x4241ec);let _0x19d53d=class extends _0x325f28[_0x315216(0x377)]{constructor(_0x52de08,_0x52f72a,_0x185e26,_0x3c7b57,_0x15d3c5,_0xc937a2){const _0x63f06a=_0x315216;super(_0x52de08,_0x52f72a,_0x185e26,_0x3c7b57),this['_transformService']=_0x15d3c5,this[_0x63f06a(0xb8)]=_0xc937a2;}[_0x315216(0x474)](_0x577a7e,_0x398e11){const _0x3410e8=_0x315216;let _0x27570f=this[_0x3410e8(0x12a)](_0x577a7e);if(_0x27570f)try{let _0x189186=this[_0x3410e8(0x13b)](_0x27570f,_0x398e11);this[_0x3410e8(0x1de)](_0x577a7e,_0x189186);}catch(_0x3aa08e){this[_0x3410e8(0xb8)][_0x3410e8(0xd6)](_0x3410e8(0x20d),_0x3aa08e),this[_0x3410e8(0x20a)](_0x577a7e);}let _0x2dabe1=this[_0x3410e8(0x2a6)](_0x577a7e);if(_0x2dabe1)try{let _0x41a0b7=this[_0x3410e8(0x13b)](_0x2dabe1,_0x398e11,!0x0);this[_0x3410e8(0x3d1)](_0x577a7e,_0x41a0b7);}catch(_0x21e4c6){this['_logService'][_0x3410e8(0xd6)](_0x21e4c6),this['_clearRedo'](_0x577a7e);}}[_0x315216(0x20a)](_0xb9afdf){const _0x585aef=_0x315216;let _0x23615d=this[_0x585aef(0x12a)](_0xb9afdf);_0x23615d&&(_0x23615d[_0x585aef(0x250)]=0x0,this[_0x585aef(0x3d7)]());}['_clearRedo'](_0xe6c817){const _0x31f6f9=_0x315216;let _0x150d3a=this[_0x31f6f9(0x2a6)](_0xe6c817);_0x150d3a&&(_0x150d3a[_0x31f6f9(0x250)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x3a3081,_0xa5575a){const _0x2d0400=_0x315216;this['_undoStacks'][_0x2d0400(0x232)](_0x3a3081,_0xa5575a),this['_updateStatus']();}['_substituteRedoStack'](_0x5ef62f,_0xbdb3d8){const _0x4c3eb1=_0x315216;this[_0x4c3eb1(0x3f9)]['set'](_0x5ef62f,_0xbdb3d8),this['_updateStatus']();}[_0x315216(0x13b)](_0x5a7c77,_0x568ef1,_0x52a439=!0x1){const _0x588334=_0x315216;if(!_0x5a7c77[_0x588334(0x250)])return[];let _0x42d216=[],_0x551a94=_0x568ef1,_0x185242=_0x568ef1[_0x588334(0x438)]===_0x325f28[_0x588334(0x41f)][_0x588334(0x2a4)]?this[_0x588334(0x23b)][_0x588334(0x33c)](_0x568ef1[_0x588334(0x154)],_0x325f28[_0x588334(0x41f)][_0x588334(0x2a4)]):null,_0x360ffd=_0x185242?{'id':_0x185242['getUnitId'](),'documentStyle':{},'tableSource':_0x325f28[_0x588334(0x261)][_0x588334(0x209)](_0x185242[_0x588334(0x305)]()[_0x588334(0x426)]??{})}:null;for(let _0x425dfe=_0x5a7c77[_0x588334(0x250)]-0x1;_0x425dfe>=0x0;_0x425dfe--){let {unitID:_0x120c2f,undoMutations:_0x1d68a3,redoMutations:_0x30d75b}=_0x5a7c77[_0x425dfe],_0x513e74=_0x52a439?_0x30d75b:_0x1d68a3,_0x53ba7d=this[_0x588334(0x101)](_0x551a94,_0x513e74);if((0x0,_0x4524ba[_0x588334(0x483)])(_0x53ba7d)){this['_logService'][_0x588334(0xd6)](_0x588334(0x20d),_0x588334(0x1f7),_0x53ba7d);break;}let _0x12f450=_0x52a439?_0x1d68a3:_0x30d75b,_0x4c8985=this[_0x588334(0x101)](_0x53ba7d[_0x588334(0x167)],_0x12f450);if((0x0,_0x4524ba['isTransformMutationsWithChangesetFailure'])(_0x4c8985)){this[_0x588334(0xb8)]['error'](_0x588334(0x20d),_0x588334(0x1f7),_0x4c8985);break;}let _0x56590b=_0x52a439?_0x4c8985:_0x53ba7d,_0x264e46=_0x52a439?_0x53ba7d:_0x4c8985;_0x551a94=_0x53ba7d[_0x588334(0x167)],_0x360ffd&&=this[_0x588334(0x13d)](_0x360ffd,_0x53ba7d['m2Prime'],_0x4c8985[_0x588334(0xb7)]),_0x42d216[_0x588334(0x46e)]({'unitID':_0x120c2f,'undoMutations':_0x56590b[_0x588334(0xb7)],'redoMutations':_0x264e46[_0x588334(0xb7)]});}return _0x42d216[_0x588334(0x29d)]();}[_0x315216(0x101)](_0xbca9fb,_0x4bd7e5){const _0x496cc4=_0x315216;if(_0xbca9fb['type']!==_0x325f28[_0x496cc4(0x41f)]['UNIVER_DOC']||_0x4bd7e5[_0x496cc4(0x142)](_0x2f4708=>_0x2f4708['id']!==_0x285e73[_0x496cc4(0x1fb)]['id']))return this[_0x496cc4(0x466)][_0x496cc4(0x425)](_0xbca9fb,_0x4bd7e5);let _0x3a993b=_0x325f28['Tools'][_0x496cc4(0x209)](_0x4bd7e5),_0x4d1a14=[];for(let _0x59b172 of _0xbca9fb[_0x496cc4(0x383)]){let _0x4eacf1={..._0xbca9fb,'mutations':[_0x59b172]},_0x22bc75=[];for(let _0x32251a of _0x3a993b){_0x4eacf1=this[_0x496cc4(0x410)](_0x4eacf1,[_0x32251a]);let _0x2eef6c=this['_transformService'][_0x496cc4(0x425)](_0x4eacf1,[_0x32251a]);if((0x0,_0x4524ba[_0x496cc4(0x483)])(_0x2eef6c))return _0x2eef6c;_0x4eacf1=_0x2eef6c['c1Prime'],_0x22bc75[_0x496cc4(0x46e)](..._0x2eef6c[_0x496cc4(0xb7)]);}_0x3a993b=_0x22bc75,_0x4d1a14['push'](..._0x4eacf1[_0x496cc4(0x383)]);}return{'m2Prime':_0x3a993b,'c1Prime':{..._0xbca9fb,'mutations':_0x4d1a14}};}[_0x315216(0x410)](_0x20e058,_0x44ce9c){const _0xb5c1af=_0x315216;let _0x111b7b=new Map(),_0x2eb194=_0x325f28[_0xb5c1af(0x2a3)][_0xb5c1af(0x438)][_0xb5c1af(0x3ec)](_0x44ce9c[0x0][_0xb5c1af(0x296)][_0xb5c1af(0x3ab)]);if(_0x2eb194[_0xb5c1af(0x27c)](null,_0x156476=>{const _0x2db689=_0xb5c1af;if(_0x156476['et']!=='text-x')return;let _0x4d57ab=JSON['stringify'](_0x2eb194[_0x2db689(0x41b)]()),_0x3cd735=_0x111b7b[_0x2db689(0x1df)](_0x4d57ab)??new Map(),_0x4a684=0x0;for(let _0x16ed92 of _0x156476['e']){if(_0x16ed92['t']===_0x325f28[_0x2db689(0x1d9)][_0x2db689(0x1a1)]){var _0x411a22;for(let _0x2cf02c of((_0x411a22=_0x16ed92[_0x2db689(0x3d5)])==null?void 0x0:_0x411a22['paragraphs'])??[])_0x3cd735['set'](_0x4a684+_0x2cf02c[_0x2db689(0x1b2)],{'paragraph':_0x2cf02c,'replace':_0x16ed92[_0x2db689(0x477)]===_0x325f28['UpdateDocsAttributeType'][_0x2db689(0x25e)]});}_0x16ed92['t']!==_0x325f28[_0x2db689(0x1d9)][_0x2db689(0x157)]&&(_0x4a684+=_0x16ed92[_0x2db689(0x19e)]);}_0x3cd735['size']>0x0&&_0x111b7b[_0x2db689(0x232)](_0x4d57ab,_0x3cd735);}),_0x111b7b['size']===0x0)return _0x20e058;let _0x76688e=_0x325f28[_0xb5c1af(0x261)][_0xb5c1af(0x209)](_0x20e058);for(let _0x4704c7 of _0x76688e[_0xb5c1af(0x383)]){if(_0x4704c7['id']!==_0x285e73[_0xb5c1af(0x1fb)]['id'])continue;let _0x30b355=_0x325f28[_0xb5c1af(0x2a3)][_0xb5c1af(0x438)][_0xb5c1af(0x3ec)](_0x4704c7[_0xb5c1af(0x296)][_0xb5c1af(0x3ab)]);_0x30b355['traverse'](null,_0x1b0884=>{const _0x560bef=_0xb5c1af;if(_0x1b0884['et']!==_0x560bef(0x300))return;let _0x4919a4=JSON[_0x560bef(0x302)](_0x30b355[_0x560bef(0x41b)]()),_0x89b4c0=_0x111b7b[_0x560bef(0x1df)](_0x4919a4);if(!(_0x89b4c0!=null&&_0x89b4c0[_0x560bef(0x3e0)]))return;let _0x29316a=0x0;for(let _0x4813e6 of _0x1b0884['e']){if(_0x4813e6['t']===_0x325f28[_0x560bef(0x1d9)]['RETAIN']&&_0x4813e6[_0x560bef(0x477)]===_0x325f28[_0x560bef(0xd7)][_0x560bef(0x25e)]){var _0x258535;for(let _0x1eb2bb of((_0x258535=_0x4813e6[_0x560bef(0x3d5)])==null?void 0x0:_0x258535['paragraphs'])??[]){var _0x517210;let _0x3223b9=(_0x517210=_0x4813e6[_0x560bef(0x3ff)])==null||(_0x517210=_0x517210[_0x560bef(0xad)])==null?void 0x0:_0x517210[_0x560bef(0x3df)](_0x30ed2b=>_0x30ed2b[_0x560bef(0x1b2)]===_0x1eb2bb[_0x560bef(0x1b2)]),_0x1f4f10=_0x89b4c0['get'](_0x29316a+_0x1eb2bb['startIndex']);if(_0x3223b9&&_0x1f4f10){this[_0x560bef(0x381)](_0x1eb2bb,_0x3223b9,_0x1f4f10['paragraph'],_0x1f4f10[_0x560bef(0x3bd)]);let _0x13163e=_0x1f4f10['replace']?new Set([...Object[_0x560bef(0x346)](_0x1f4f10['paragraph']),...Object[_0x560bef(0x346)](_0x1eb2bb)]):Object[_0x560bef(0x346)](_0x1f4f10[_0x560bef(0x233)]);for(let _0x41a292 of _0x13163e){if(_0x41a292==='startIndex'||_0x41a292===_0x560bef(0x197))continue;let _0x24e27c=Reflect[_0x560bef(0x1df)](_0x1eb2bb,_0x41a292);_0x24e27c===void 0x0?Reflect[_0x560bef(0x1ae)](_0x1f4f10[_0x560bef(0x233)],_0x41a292):Reflect[_0x560bef(0x232)](_0x1f4f10['paragraph'],_0x41a292,_0x325f28[_0x560bef(0x261)][_0x560bef(0x209)](_0x24e27c));}}}}_0x4813e6['t']!==_0x325f28['TextXActionType'][_0x560bef(0x157)]&&(_0x29316a+=_0x4813e6[_0x560bef(0x19e)]);}});}return _0x76688e;}[_0x315216(0x381)](_0x3094ea,_0x5574bd,_0x275d8c,_0x2e5542){const _0x5c4188=_0x315216;let _0x478977=new Set([...Object[_0x5c4188(0x346)](_0x3094ea),...Object['keys'](_0x5574bd),...Object['keys'](_0x275d8c)]);for(let _0x54d1f6 of _0x478977){if(_0x54d1f6==='startIndex'||_0x54d1f6===_0x5c4188(0x197))continue;let _0x26020d=Reflect['get'](_0x3094ea,_0x54d1f6),_0x4b293a=Reflect[_0x5c4188(0x1df)](_0x5574bd,_0x54d1f6),_0xfb3ba4=Reflect[_0x5c4188(0x1df)](_0x275d8c,_0x54d1f6);if(_0x2e5542||_0xfb3ba4!==void 0x0){if(_0x325f28[_0x5c4188(0x261)][_0x5c4188(0xe3)](_0x26020d,_0x4b293a))_0xfb3ba4===void 0x0?(Reflect['deleteProperty'](_0x3094ea,_0x54d1f6),Reflect[_0x5c4188(0x1ae)](_0x5574bd,_0x54d1f6)):(Reflect[_0x5c4188(0x232)](_0x3094ea,_0x54d1f6,_0x325f28[_0x5c4188(0x261)][_0x5c4188(0x209)](_0xfb3ba4)),Reflect['set'](_0x5574bd,_0x54d1f6,_0x325f28[_0x5c4188(0x261)]['deepClone'](_0xfb3ba4)));else{if(_0x325f28[_0x5c4188(0x261)][_0x5c4188(0xcc)](_0x26020d)&&(_0x325f28[_0x5c4188(0x261)]['isObject'](_0x4b293a)||_0x4b293a===void 0x0)){let _0x46517f=_0x4b293a??{};this['_rebaseUnchangedAttributes'](_0x26020d,_0x46517f,_0x325f28[_0x5c4188(0x261)][_0x5c4188(0xcc)](_0xfb3ba4)?_0xfb3ba4:{},_0x2e5542),(_0x4b293a!==void 0x0||Object[_0x5c4188(0x346)](_0x46517f)['length']>0x0)&&Reflect[_0x5c4188(0x232)](_0x5574bd,_0x54d1f6,_0x46517f);}}}}}[_0x315216(0x13d)](_0x1d9d9c,_0x424b30,_0x9505c3){const _0x5c9754=_0x315216;if(_0x424b30[_0x5c9754(0x250)]!==0x1||_0x9505c3[_0x5c9754(0x250)]!==0x1||_0x424b30[0x0]['id']!==_0x285e73['RichTextEditingMutation']['id']||_0x9505c3[0x0]['id']!==_0x285e73[_0x5c9754(0x1fb)]['id'])return _0x1d9d9c;let _0x23299a=_0x424b30[0x0][_0x5c9754(0x296)],_0x3efe09=_0x9505c3[0x0][_0x5c9754(0x296)],_0x2b3f86=this['_filterTableActions'](_0x23299a['actions'],!0x0);return _0x325f28['JSONX']['isNoop'](_0x2b3f86)?_0x1d9d9c:(_0x3efe09[_0x5c9754(0x3ab)]=_0x325f28[_0x5c9754(0x226)]['compose'](this[_0x5c9754(0x395)](_0x3efe09[_0x5c9754(0x3ab)],!0x1),_0x325f28[_0x5c9754(0x226)][_0x5c9754(0x11f)](_0x2b3f86,_0x1d9d9c)),_0x325f28[_0x5c9754(0x226)][_0x5c9754(0x2dc)](_0x1d9d9c,_0x2b3f86)??_0x1d9d9c);}[_0x315216(0x395)](_0x188f73,_0x43a4f0){const _0x3ad3cc=_0x315216;let _0x31f211=_0x325f28[_0x3ad3cc(0x2a3)][_0x3ad3cc(0x438)][_0x3ad3cc(0x3ec)](_0x188f73),_0x317340=_0x325f28[_0x3ad3cc(0x2a3)][_0x3ad3cc(0x438)]['writeCursor']();return _0x31f211[_0x3ad3cc(0x27c)](null,_0x5a6073=>{const _0x1ad447=_0x3ad3cc;let _0x24c96e=_0x31f211[_0x1ad447(0x41b)]();if(_0x24c96e[0x0]===_0x1ad447(0x426)===_0x43a4f0){for(let _0xa298f3 of Object[_0x1ad447(0x346)](_0x5a6073))_0x317340['writeAtPath'](_0x24c96e,_0xa298f3,_0x5a6073[_0xa298f3]);}}),_0x317340[_0x3ad3cc(0x1df)]();}};_0x19d53d=_0x5af442([_0x557b04(0x0,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x1,_0x325f28['ICommandService']),_0x557b04(0x2,_0x325f28[_0x315216(0x1fe)]),_0x557b04(0x3,_0x325f28[_0x315216(0x1cf)]),_0x557b04(0x4,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0x5,_0x325f28[_0x315216(0x25d)])],_0x19d53d);let _0x2e8fa6=class extends _0x325f28[_0x315216(0x15c)]{constructor(_0x5a09ae=_0x1e0f56,_0x2cf8d2,_0x5eb0cc,_0xd44c81){const _0xfe90b3=_0x315216;super(),this['_config']=_0x5a09ae,this['_logService']=_0x2cf8d2,this[_0xfe90b3(0xe7)]=_0x5eb0cc,this[_0xfe90b3(0x1ed)]=_0xd44c81;let {..._0x4c70e7}=(0x0,_0x325f28[_0xfe90b3(0x3f7)])({},_0x1e0f56,this['_config']);if(!_0x4c70e7[_0xfe90b3(0x192)])throw Error(_0xfe90b3(0x42c));this[_0xfe90b3(0x1ad)]=_0x4c70e7,this[_0xfe90b3(0x1ed)][_0xfe90b3(0x334)](_0x3a344c,_0x4c70e7);}[_0x315216(0xb5)](){const _0x2054ae=_0x315216;this[_0x2054ae(0x1ed)][_0x2054ae(0x334)](_0x325f28[_0x2054ae(0x463)],this[_0x2054ae(0x1ad)][_0x2054ae(0x3cd)]??[]),this[_0x2054ae(0x3bc)](),this[_0x2054ae(0x181)]();}[_0x315216(0x3bc)](){const _0x1e1beb=_0x315216;var _0x2965be,_0xbcfb26;this[_0x1e1beb(0xe7)][_0x1e1beb(0xd1)](_0x325f28['IUndoRedoService'])&&this[_0x1e1beb(0xb8)][_0x1e1beb(0xd6)]('[UniverCollaborationClientPlugin]',_0x1e1beb(0xd3));let _0x3821a4=(0x0,_0x325f28[_0x1e1beb(0x351)])([[_0x325f28[_0x1e1beb(0x3e6)],{'useClass':_0x19d53d}],[_0xe6d4d9,{'useValue':_0x1b6d59()}],[_0x2c8ade],[_0x26f228],[_0x5d0dca],[_0x5ef8ed],[_0x114505],[_0x3313da],[_0x484143],[_0x11f58a],[_0x4e5ab6],[_0x84bd5,{'useClass':this[_0x1e1beb(0x1ad)][_0x1e1beb(0x192)]}],[_0x4524ba[_0x1e1beb(0x289)],{'useClass':_0x4241ec}],[_0x325f28[_0x1e1beb(0x1dc)],{'useClass':_0x26c5f0}],[_0x325f28[_0x1e1beb(0x372)],{'useClass':_0x18c5f6}],[_0x3a6c7e,{'useClass':_0x3c9a1b}],[_0x325f28[_0x1e1beb(0x17f)],{'useClass':_0x37d84f}],[_0x4b66f1],[_0x473a89]],(_0x2965be=this[_0x1e1beb(0x1ad)])==null?void 0x0:_0x2965be[_0x1e1beb(0x3c0)]);if(!((_0xbcfb26=this[_0x1e1beb(0x1ad)])!=null&&_0xbcfb26['enableSingleActiveInstanceLock'])){let _0x476451=_0x3821a4[_0x1e1beb(0x1aa)](([_0x530972])=>_0x530972===_0x556ae0);_0x476451!==-0x1&&_0x3821a4['splice'](_0x476451,0x1);}(0x0,_0x325f28[_0x1e1beb(0x446)])(this['_injector'],_0x3821a4);}[_0x315216(0x181)](){const _0xe83d98=_0x315216;var _0x43e231,_0x4eb3a6;if(this[_0xe83d98(0xe7)]['get'](_0x18cba4['HTTPService'])[_0xe83d98(0x1c1)]({'priority':0x14,'interceptor':(0x0,_0x18cba4['ThresholdInterceptorFactory'])({'maxParallel':0x6})}),!((_0x43e231=this[_0xe83d98(0x1ad)])!=null&&_0x43e231[_0xe83d98(0x1a4)])){var _0x22097f;(_0x22097f=this['_injector'][_0xe83d98(0x1df)](_0x21eb59,_0x325f28['Quantity'][_0xe83d98(0x3f1)]))==null||_0x22097f[_0xe83d98(0x417)]();}(_0x4eb3a6=this[_0xe83d98(0x1ad)])!=null&&_0x4eb3a6[_0xe83d98(0x437)]&&(0x0,_0x325f28[_0xe83d98(0x1bb)])(this[_0xe83d98(0xe7)],[[_0x5ef8ed]]),(0x0,_0x325f28[_0xe83d98(0x1bb)])(this[_0xe83d98(0xe7)],[[_0x114505],[_0x4b66f1],[_0x484143]]);}};_0x4da1f9(_0x2e8fa6,_0x315216(0x183),_0x315216(0x2ff)),_0x4da1f9(_0x2e8fa6,_0x315216(0x38b),_0x5268b1),_0x4da1f9(_0x2e8fa6,'version',_0xc74a63),_0x2e8fa6=_0x5af442([(0x0,_0x325f28[_0x315216(0x470)])(_0x35d7c3[_0x315216(0x2d9)],_0x18cba4[_0x315216(0x3f3)],_0x4524ba[_0x315216(0x33a)]),_0x557b04(0x1,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x2,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x3,_0x325f28[_0x315216(0x1cf)])],_0x2e8fa6),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x39f),{'enumerable':!0x0,'get':function(){return _0x26c5f0;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x1e7),{'enumerable':!0x0,'get':function(){return _0x299420;}}),Object['defineProperty'](_0x23db49,_0x315216(0xb3),{'enumerable':!0x0,'get':function(){return _0x432f81;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x2be),{'enumerable':!0x0,'get':function(){return _0x2033f7;}}),Object['defineProperty'](_0x23db49,_0x315216(0x481),{'enumerable':!0x0,'get':function(){return _0x4df8c8;}}),_0x23db49[_0x315216(0x9d)]=_0x3a344c,_0x23db49['ChangesetSubmitter']=_0x18c848,Object[_0x315216(0xb2)](_0x23db49,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return _0x3c9a1b;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x363),{'enumerable':!0x0,'get':function(){return _0x4b66f1;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x21f),{'enumerable':!0x0,'get':function(){return _0x1683e1;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x21c),{'enumerable':!0x0,'get':function(){return _0x18c5f6;}}),Object['defineProperty'](_0x23db49,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x7f99f9;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x3af),{'enumerable':!0x0,'get':function(){return _0x2c8ade;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x251),{'enumerable':!0x0,'get':function(){return _0x121d26;}}),_0x23db49[_0x315216(0x32b)]=_0x133dfa,_0x23db49[_0x315216(0x184)]=_0x4c99b2,_0x23db49[_0x315216(0x10b)]=_0x11f58a,Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x11a),{'enumerable':!0x0,'get':function(){return _0x19d53d;}}),_0x23db49[_0x315216(0x215)]=_0x3313da,Object['defineProperty'](_0x23db49,_0x315216(0x1e0),{'enumerable':!0x0,'get':function(){return _0x3a7d93;}}),_0x23db49[_0x315216(0x177)]=0x4e20,_0x23db49['DEFAULT_COLLAB_WEB_SOCKET_URL']=_0x315216(0x38a),_0x23db49[_0x315216(0x16e)]=_0x315216(0x12f),_0x23db49[_0x315216(0x20b)]=_0x315216(0x33f),Object[_0x315216(0xb2)](_0x23db49,'DataLoaderService',{'enumerable':!0x0,'get':function(){return _0x4e5ab6;}}),Object['defineProperty'](_0x23db49,_0x315216(0x220),{'enumerable':!0x0,'get':function(){return _0x464598;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x2cf),{'enumerable':!0x0,'get':function(){return _0x157fa1;}}),_0x23db49[_0x315216(0xc5)]=_0x315216(0x388),_0x23db49[_0x315216(0x270)]=_0x315216(0x113),_0x23db49[_0x315216(0x1b5)]=_0x3a6c7e,_0x23db49['ICollaborationClientAdapterService']=_0xe6d4d9,_0x23db49[_0x315216(0x389)]=_0x84bd5,_0x23db49[_0x315216(0x1b1)]=_0x21eb59,_0x23db49[_0x315216(0x2b7)]=_0x2665e4,_0x23db49[_0x315216(0x110)]=_0x556ae0,_0x23db49[_0x315216(0x2d5)]=0x3e8,_0x23db49[_0x315216(0x2f0)]=_0x315216(0x2d5),_0x23db49[_0x315216(0x3ef)]=0x1d4c0,Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x311),{'enumerable':!0x0,'get':function(){return _0x26f228;}}),Object[_0x315216(0xb2)](_0x23db49,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return _0x37d84f;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x2c8),{'enumerable':!0x0,'get':function(){return _0x224cab;}}),Object['defineProperty'](_0x23db49,_0x315216(0x2af),{'enumerable':!0x0,'get':function(){return _0x1e25ce;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x16d),{'enumerable':!0x0,'get':function(){return _0x2f13d7;}}),_0x23db49[_0x315216(0x37f)]=_0x315216(0x221),_0x23db49[_0x315216(0xb4)]=_0x315216(0x2c7),_0x23db49[_0x315216(0x33d)]=_0x50a43f,Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x332),{'enumerable':!0x0,'get':function(){return _0x3a3d85;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0xa1),{'enumerable':!0x0,'get':function(){return _0x5d0dca;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x3c9),{'enumerable':!0x0,'get':function(){return _0x37ab5d;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x104),{'enumerable':!0x0,'get':function(){return _0x4241ec;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x276),{'enumerable':!0x0,'get':function(){return _0x30f87e;}}),_0x23db49[_0x315216(0x279)]=_0x7a50dc,Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x132),{'enumerable':!0x0,'get':function(){return _0x2e8fa6;}}),_0x23db49[_0x315216(0x1c4)]=_0x1b6d59,_0x23db49[_0x315216(0x277)]=_0x4703e7,_0x23db49['getLocalCacheKey']=_0x5b750c,_0x23db49[_0x315216(0x219)]=_0x3a4172;}));function _0x4cd7(){const _0x36e483=['_createSocket','getSnapshotAPIPath','eventID','getRoom','_remoteChangesetQueue','_getConfig','SheetCollaborationEntity','_replaceFileID','setConfig','expected\x20number,\x20got\x20','ONLINE','_commandService','objectId','/collaborator','UniverCollaborationPlugin','UNIVER_SHEET','getUnit','SessionStatus','localeService','/universer-api/user/session-ticket','base-ui.attachment-io.service','_onFetchMissResult','_syncEditingCollabCursor','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','UniverProCollaboration','AAD\x20not\x20supported','keys','_singleActiveUnitService','\x20-\x20','ErrorCode','changesetAckTimeout','trim','_pendingReason','@univerjs/docs','HELLO','/-/object/-/batch_allowed','delay','mergeOverrideWithDependencies','unitId','CmdRspCode','_toSynced','IDLE','ciphertext\x20must\x20be\x20multiple\x20of\x2016','revert','close','_onCombEvent','startsWith','subType','url','getSheetBlock','isView','_startCollaboration','unitDisposed$','socket\x20open.','mapDocumentTypeToUniverInstanceType','CollaborationController','_removeRoom','candidateSocket','commit','attachment','JOIN_ROOM_NOT_EXISTS','liveShareOperation','downloadEndpointUrl','_initRequestHeader','supports','generateRandomId','RemoteRevertError','put','ackTimeout','getUnitType','IImageIoService','\x20in\x20_schedule.','COMMENT_UPDATE','_snapshotServerService','event$','LocalUndoRedoService','attempt','rxjs/operators','onSendChangeset','saveSheetBlock','CONFLICT','requestRetry','/fetchmissing?from=','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','change$','_rebaseUnchangedAttributes','21SmoWqK','mutations','_getCurrentRevision','delete','hasWritePending','_nextDelay','HEARTBEAT_INTERVAL','ICollaborationSocketService','ws://127.0.0.1:8000/universer-api/comb/connect','packageName','isTransformChangesetsSuccess','_sessionStatus$','_onJoinRoomEvent','getRandomValues','collaborators','concatMap','UnitEmbedded','getAllPermissionPoint','update','_filterTableActions','_change$','@univerjs-pro/license','_changesetResend$','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','fetch_missing','missingChangesets','disablePadding','create','[CollaborationSessionService]','AuthzIoHttpService','_shouldReportTelemetry','_stopTelemetryCollaborationNewChangeset','getImage','LIVESHARE_REQUEST_HOST','UNIVER_BOARD','localCacheService','_createInitialStateImpl','changesetResend$','compose','rxjs','getValue','actions','fromCollab','Subscription','accept','CollaborationSessionService','number','reconnect','invalid\x20output,\x20must\x20be\x20aligned','socketReady','NO_OTHER_CLIENTS_EDITING','constructor','JOIN','charCodeAt','COMPRESS_MUTATION_SEND','onTransformSelections','resend','open$','_registerDependencies','replace','_identity','onRemoteRetry','override','/universer-api/oidc/authpage','joinEvent','requestParams','isCompositionEnd','_status$','UniverProtocol','members','toString','SlideCollaborationEntity','EnsureSlideMasterPageMutation','/new_changes','parseProtocolChangeset','objectPermissionTypes','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','bind','reqId','_substituteRedoStack','onMissingChangesets','_maxAckTimeout','getActiveSheet','body','TimeoutError','_updateStatus','EmptyMutationInfo','resent\x20changeset\x20','userID','BYTES_PER_ELEMENT','UPDATE_CURSOR','_memberService','assign','find','size','includes','LIVESHARE_FETCH_OPERATIONS','_compressMutationService','_clearRetryConnectingTimer','debug','IUndoRedoService','102866WqZdPQ','_updateLocalCache','workbook','_classifyRemoteChangeset','_resolveSessionIdentity','readCursor','getFocusedUnit','?size=','MAX_ACK_TIMEOUT','SheetPermissionInitController','OPTIONAL','_telemetryService','UniverNetworkPlugin','[PendingState]:\x20received\x20acknowledgement.','UniverTelemetry','ImageSourceType','merge','loadBase','_redoStacks','getDrawingImageAllowSize','requireSession','toggleOffline','/rev/','now','oldBody','_applyRemoteChangeset','_dispatchRemoteChangeset','sid','map','_collabSessionService','__Key__','\x0aAfter:\x20','next','commentUpdateEvent','permission_rejected','_conflictInfoFromError','prototype','_onUserJoin','onTransformRemoteChangesetByStateCache','createInstance','retryCount','_rebaseParagraphHistory','_transformAndApply','_onConflict','_userManagerService','onload','@univerjs/drawing','tagLength','disableLocalCache','_onConnectionFailed','type=','byteLength','getPath','target','init','disposeWithMe','UniverInstanceType','_rejectionInfo','awaitingChangeset','CombCmd','session.join-failed','session.room-permission-denied','transformMutationsWithChangeset','tableSource','addHandlerCallback','capture','_transformStateCache','dispose$','socket$','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_waitCount','_clearHandshakeTimer','unit','_handler','armAckTimeout','_unitInfo$','COLLABORATION_ENDPOINT_INVALID','_clearTimer','Injector','emitEvent','enableAuthServer','type','UUID','/universer-api/stream/file/upload','@univerjs-pro/collaboration','_disposed','_classifyAck','IPermissionService','loadPdf','commentUpdate$','enableCollaboration','?url=','_changesetReqId','originalMeta','_onRemoteACK','registerDependencies','RemoveSlidePageMutation','rollback','saveAttachment','getCollabEntities','@univerjs-pro/slides','ITransformService','amd','_doCreateSocket','selections','refreshPermission','5739756TAfSmj','_transformIMECache','isInternalEditorID','_unlockTransition','getConfig','onMissing','_requestMissingChangesets','FileId','_rescheduleHeartbeat','_options','changesets','_instanceService','_startTelemetryCollaborationNewChangeset','_pendingMutations','UNIVER_PDF','BASE64','roles','elapsedMs','OBJECT_PERMISSION_CONFIG_KEY','onSyncEditingCollabCursor','PERMISSION_REJ','_transformService','JOIN_ROOM_PERMISSION_DENIED','_onRecvEvent','UNISCRIPT_RUN','Uint8Array','[FetchMissState]','objectID','_source','push','_createInitialState','DependentOn','memberID','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','sendChangesetTimeout','transformUndoRedo','applied','encode','coverType','@univerjs/core','[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.','/block/','sort','stale','cipher\x20output\x20not\x20supported','SYNCED','pending','_networkConditionService','BoardCollaborationEntity','collaboration_new_changeset','isTransformMutationsWithChangesetFailure','_collaborationPaused','_socket','_joinRoom','_reqId','[DataLoaderService]','_getUploadFileURL','_clearScheduledTask','INGEST','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_entities','[SyncedState]:\x20received\x20rejection.','_imageSourceCache','SheetTransformSelectionsService','DRAWING_IMAGE_ALLOW_IMAGE_LIST','getCollabEntity','pipe','_createChangesetSubmitter','UniverCore','toRemote','getUnitStatus$','PSEUDO_FETCH_MISSING_RESULT','ImageUploadStatusType','CHANGESET_SHOULD_RETRY','resourceIDs','paragraphs','shouldCloseConn','readAsDataURL','objects','MUTATION','defineProperty','AwaitingWithPendingState','RETRY_CONNECTING_MAX_COUNT_KEY','onStarting','columnGroups','m2Prime','_logService','socketSubscription','/universer-api/snapshot/','getCurrentUser','expected\x20Uint8Array','_sessionChannels','plaintext\x20must\x20be\x20multiple\x20of\x2016','warn','uniscriptRunEvent','31xMzgUq','RevisionService','operators','setWaitCount','HEARTBEAT_INTERVAL_KEY','onMutationExecutedForCollab','_deliver','_getUnitPermissionPoints','UNIVER_BASE','_tryEnsureSocket','getMember','isObject','location','encrypt','take','then','has','IUniverInstanceService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','csShouldRetryEvent','string','error','UpdateDocsAttributeType','Response','add','_getSendChangesetTimeout','output','_remoteRevertInfo','info','_httpService','code','_state','pauseCollaboration','x-univer-host','diffValue','parseChangesetToProtocol','_tryReconnect','/universer-api/snapshot','_injector','HEARTBEAT','file','_undoRedoService','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','onCommentUpdate','_getSignURL','onRemoteChangeset','min','clearOfflineData','asObservable','ack_timeout','reject','7802245WpSVTw','takeUntil','HTTPRequest','NEW_CHANGESETS','ERROR_IMAGE','/universer-api/authz','_onLocalMutation','SheetsSelectionsService','retry-after','b64DecodeUnicode','_onRemoteChangeset','headers','_onRemoteRetry','_transformHistoryMutations','_onMessage','_getLoginPath','SnapshotServerOverHTTPService','textEncoder','slice','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','socket\x20close','getCollabEntity$','_submitChangeset','CollaborationUIEventService','RxDisposable','RevertRevisionMutation','resolveUnit','_snapshotService','ISingleActiveUnitService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','Subject','HEARTBEAT_TIMEOUT','SUBMIT_CHANGESET_TIMEOUT','online','&to=','PERMISSION_DENIED','varSizeNonce','getUnitId','CollaborativeUndoRedoService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','members$','refreshUnit','\x22ciphertext\x22\x20expected\x20length\x20>=\x20tagLength=','invertWithDoc','unknown','_getAPIPrefix','_schedule','result','FAIL','onMissedChangesetFetched','_unsyncedMutationCount','_acknowledgeAwaitingIfReady','/role','DocStateChangeManagerService','_getUndoStack','buffer','initWorkbookPermissionChange','_timer','offline','/universer-api/uniscript','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','not_collab','UniverCollaborationClientPlugin','values','bytesLength','getLatestCsReqIdBySid','&source=','entityInit$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_onConnectionOpen','rev','_transformStack','stopTime','_invertDocumentHistory','_socketService','getCurrentSelections','/object/','isFinite','some','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','onRemoteAck','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','collaboration-client.config','_throwTelemetryCollaborationNewChangeset','_handleRemoteChangesets','HTTPService','Disposable','[OfflineState]','_retryBackoff','echo','clear','exports','saveImage','conflict','listRoles','/universer-api/file/{fileID}/sign-url','unitID','awaiting_with_pending','UniverProLicense','INSERT','ICommandService','subUnitId','dispose','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','Plugin','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','SHOULD_CLOSE_CONN','onApply','_handlerCallback','onConflict','toggleOnline','name','getInterceptPoints','hostname','_initUnitPermissionChange','c1Prime','Slide','retryConnectingTimer','_firstSentAt','withAAD','connection\x20error','PendingState','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','DisposableCollection','upload','getMemberID','/unit/','getOwnPropertyDescriptor','_toPending','ignored\x20acknowledgement\x20of\x20revision\x20','decrypt','DEFAULT_ACK_TIMEOUT','post','_disableEditing','[CollaborationState]:\x20apply\x20error!','univer-pro.collaboration-client-adapter-service','method','_pendingSessions','/-/object/list','IMentionIOService','_onRemoteRejected','_initDependencies','newCsEvent','pluginName','CollaborationUIEventId','20VmXTey','message','revision','_members','_createHandler','People','onRemoteRevert','transformChangesets','univer-pro.collaboration-client-socket-service','signUrlServerUrl','_executeRemoteChangeset','_collaborationUIEventService','handshakeTimer','socketService','apply_failed','title','catch','transform_failed','paragraphId','nonceLength','Workbook','_emitMembers','_collaborationSessionService','localChanges','sessionStatus','len','_countResend','_socketChannels','RETAIN','Inject','_updateUnitPermissionPoint','enableOfflineEditing','getImageSourceCache','_queuedRemoteChangesets','_scheduleCompleteTimestamp','_submitter','CompressMutationService','findIndex','loadOfflineData','createIdentifier','_config','deleteProperty','_sessions','pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','ILocalCacheService','startIndex','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','getTypeOfUnitDisposed$','IAttachmentIoService','action','loadUnit','_toggleOnline','UserManagerService','_ackTimeout','touchDependencies','updateMember','CLOSE_ROOM','1.2.0','_permissionService','_lockTransition','registerHTTPInterceptor','loadSheet','UNIVER_SLIDE','createUniverCollaborationAdapter','[CollaborationSessionService]:\x20socket\x20error','_clearHeartbeatTimer','BehaviorSubject','unbind','_showConflictProcessingNotification','leaveEvent','href','_listenToNetworkCondition','objectActions','UPDATE_PERMISSION_OBJ','IConfigService','textRanges','collaboration-client.auth.needGotoLoginAlert','@univerjs-pro/collaboration-client','[PendingState]:\x20received\x20rejection.','csAckEvent','isPermissionRej','_transformUndoredo','CollaborationEvent','baseRev','TextXActionType','_initMergeInterceptor','GLOBAL_ROOMS_CNT_EXCEEDS','IAuthzIoService','confirm','_substituteUndoStack','get','ConflictState','aes:\x20bad\x20decrypt','_revisionService','_init','LIVESHARE_TERMINATE','range','_now','AwaitingState','encodeURIComponent','15294FQHzmk','_conflict$','4426630SXyVPF','fetchMiss','_configService','OTHER_CLIENT_EDITING','duration','responseType','resolveWithBasePath','_updateState','@univerjs/telemetry','UniverNetwork','toPrimitive','blockRanges','transformStack\x20failed!','JOINING','loadDoc','_cfgEnableObjInherit','RichTextEditingMutation','_attempt','UniverProSlides','IContextService','MentionType','error$','fetching\x20missing\x20changesets\x20from\x20','_exhaustRemoteChangesetQueue','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_fetchMissChangesets','collaMsg','_disposeSubmitter','onlyLocal','_awaitingChangeset','deepClone','_clearUndo','DEFAULT_WS_SESSION_TICKET_URL','call','[CollaborationUndoRedoService]','parse','&assign=','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','list','localUnitId','connectionAttempt','firstValueFrom','CommentService','forEach','endpointKey','transformSelections','serializeCombRequest','isSafeInteger','shareReplay','CollaborationImageIoService','_authzIoService','waitForRoom$','CollaborationEntity','DocCollaborationEntity','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','clearUnit','unsubscribe','_transformSelections','PERSON','JSONX','SUBMIT_CHANGESET','_state$','_acknowledgeAwaiting','filter','removeMember','UnitObject','_members$','_entityInit$','_initCloseConn','_acknowledgedAwaitingRevision','executeCommand','set','paragraph','deleteCollaborator','session.room-full','_detachSubmitter','onResend','resendTimeouts','LEAVE','onTransformRemoteChangesetByIMECache','_univerInstanceService','unitLoaded$','collaboratorID','{fileID}','wrong\x20sbox\x20length','ack_of_awaiting','routeKey','NOT_COLLAB','COMPRESS_MUTATION_APPLY','floor','subarray','function','_roomCreated$','_telemetryInfo','_localCacheService','_closedUnits','interceptor','avatar','isArray','session.room-cnt-exceeds','objectType','length','CollaborationSocketService','_decreaseWaiting','endpoint','[CollaborationSession]','_HTTPService','close$','allowed','_commentUpdate$','univer-pro.collaboration-client.network-condition.service','withCredentials','JOIN_ROOM_FAILED','decorate','ILogService','REPLACE','toDisposable','OFFLINE','Tools','LIVESHARE_OPERATION','getResourcesRequest','MergeInterceptorFactory','object','hasOwnProperty','_roomMembers','getUnitOnRev','[AwaitingWithPendingState]','putCollaborators','\x20to\x20','updatePermissionPoint','sessionStatus$','sequenceExecute','cfgEnableObjInherit','HEARTBEAT_TIMEOUT_KEY','_loadUnit','_type','addImageSourceCache','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','changeset','SyncedState','deserializeToCombResponse','toLocal','UnitStatus','_getAPIPrefixPath','synced','traverse','_sheetTransformSelectionsService','batchAllowed','_docStateChangeManagerService','_transformRemoteChangesetByStateCache','should_retry','snapshotServerUrl','_getSocketChannel','UniverDocs','saveSnapshot','expected\x20integer\x20>=\x200,\x20got\x20','@univerjs/network','_isAckOfAwaitingChangeset','ISnapshotServerService','JOIN_ROOM_FULL','missing','SOCKET_FAILED_RETRY','nonce','AWAITING','subscribe','_incrementRevisionNumber','cmd','_commentService','byteOffset','_onRequestFailed','docStateChange$','params','Edit','_getDownloadEndpointURL','CHANGESET_ACK','from','ignored\x20stale\x20ack\x20of\x20revision\x20','USERS_LEAVE','reverse','session','_transformAndApplyRemoteChangeset','snapshot','data','/object','JSON1','UNIVER_DOC','_transitionLocked','_getRedoStack','USERS_ENTER','CHANGESET_REJ','_toggleOffline','CONFLICT_PROCESSING','ObjectPermissionService','submit','origin','LocaleService','PdfCollaborationEntity','SnapshotService','append','_socketMessageSubscription','state','Document','subject','getDeserializedSheetBlock','INetworkConditionService','882460eIMVKd','_unitLoaded$','onRemoteRej','onTransformState','authzUrl','getCurrentRevOfUnit','BaseCollaborationEntity','updatePermissionObjEvent','onTransformIME','SOCKET_FAILED','getUploadOptions','UniverProCollaborationClient','updateCollaborator','_sendToken','every','RETRY_CONNECTING_MAX_COUNT','OfflineState','_createSession','UnitAction','getTypeOfUnitAdded$','reduce','crypto.getRandomValues\x20must\x20be\x20defined','Board','FetchingMissState','appendMutation','CONFLICT_CACHE_CLEAR_FAILED','_onOffline','1899McqWsa','Optional','LOCAL_CACHE_INTERVAL','/allowed','unit-cache-','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','UniverLicensePlugin','[CollaborationEntity]','_send','apply','FETCH_MISSING','RECV','AddSlidePageMutation','remote_revert','endsWith','readyForCollab','[CollaborationState]:\x20the\x20unit\x20was\x20reverted\x20to\x20revision\x20','getTime','_event$','loadUnitOfRevision','awaiting','FileSource','MSG_FOR_ERROR','_clearTimeoutTimer','ITelemetryService','maxAckTimeout','_replayCachedMutations','_loadSnapshot','_notifyResend','LOCAL_CACHE_INTERVAL_KEY','_changesetSessionId','telemetry\x20info\x20is\x20not\x20initialized','3647tUIUQo','POST','timeoutTimer','_sendingTimer','HTTP\x20','MoveSlidePageMutation','fetchThroughInterceptors','default','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_refreshUnitPermission','isTransformMutationsWithChangesetSuccess','HTTPResponseError','UNIVER_COLLABORATION_CLIENT_PLUGIN','text-x','[CollaborationSocketService]','stringify','sendHeartbeatTimer','indexOf','getSnapshot','Failed\x20to\x20update\x20permission\x20point','_transit','createCollaborator','_dropAcknowledgedAwaiting','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_hasSessionsForEndpoint','_upload','Univer','max','retryConnectingInterval','liveShareNewHost','MemberService','OTHER_CLIENTS_EDITING','complete','timeout','/universer-api/comb','closeSession','_isEchoedAwaitingChangeset','unitType','onPrepareTransformSelections','20192MoyDnB','_sendHeartbeat','SNAPSHOT_URL_KEY','SetSelectionsOperation','_waitForHeartbeatResponse','CommandType','onStateChange','_eventService','uploadFileServerUrl','Quantity','LIVESHARE_NEW_HOST','send','status','symbol','reason','WorkbookEditablePermission','message$','CollaborationStatus'];_0x4cd7=function(){return _0x36e483;};return _0x4cd7();}
|