@univerjs-pro/collaboration-client 1.0.0-alpha.1 → 1.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +6 -0
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +0 -2
- package/lib/types/facade/f-collaboration.d.ts +40 -0
- package/lib/types/index.d.ts +6 -3
- package/lib/types/services/attachment-remote/attachment-io.service.d.ts +1 -4
- package/lib/types/services/collaboration-session/collaboration-changeset-translator.d.ts +4 -0
- package/lib/types/services/collaboration-session/collaboration-client-adapter.d.ts +39 -0
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +5 -4
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +14 -14
- package/lib/types/services/image-remote/image-io.service.d.ts +2 -4
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -16
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2b4704=_0x2cb1;(function(_0x479c32,_0x1ae562){const _0x30dbf9=_0x2cb1,_0x221c79=_0x479c32();while(!![]){try{const _0x517909=parseInt(_0x30dbf9(0x1cf))/0x1+parseInt(_0x30dbf9(0x355))/0x2+-parseInt(_0x30dbf9(0x254))/0x3+parseInt(_0x30dbf9(0xfe))/0x4*(parseInt(_0x30dbf9(0x272))/0x5)+parseInt(_0x30dbf9(0x353))/0x6*(-parseInt(_0x30dbf9(0x218))/0x7)+-parseInt(_0x30dbf9(0x1c0))/0x8+-parseInt(_0x30dbf9(0x1c4))/0x9*(-parseInt(_0x30dbf9(0x29d))/0xa);if(_0x517909===_0x1ae562)break;else _0x221c79['push'](_0x221c79['shift']());}catch(_0x56c7fa){_0x221c79['push'](_0x221c79['shift']());}}}(_0x637e,0x27694),Object['defineProperty'](exports,Symbol[_0x2b4704(0x34b)],{'value':_0x2b4704(0x379)}));let e=require('@univerjs-pro/bases'),t=require('@univerjs-pro/collaboration'),n=require('@univerjs/core'),r=require('@univerjs/docs'),i=require('@univerjs/sheets'),a=require('rxjs'),o=require('@univerjs/protocol'),s=require('@univerjs/telemetry'),c=require('rxjs/operators'),l=require('@univerjs-pro/slides'),u=require('@univerjs/network'),d=require('@univerjs-pro/license'),f=require('@univerjs/drawing'),p=require('@noble/ciphers/aes.js'),m=require('@noble/ciphers/utils.js');const h=_0x2b4704(0x3a2),ee={},te=_0x2b4704(0x368),ne=0x4e20;function re(_0x1c1cc8){const _0x5468bf=_0x2b4704;return JSON['stringify'](_0x1c1cc8)[_0x5468bf(0x2f8)];}function g(_0x263d20){'@babel/helpers - typeof';const _0x517c0d=_0x2b4704;return g=typeof Symbol==_0x517c0d(0x331)&&typeof Symbol[_0x517c0d(0x29c)]==_0x517c0d(0x201)?function(_0x1d43de){return typeof _0x1d43de;}:function(_0x482fc1){const _0x7c93d1=_0x517c0d;return _0x482fc1&&typeof Symbol=='function'&&_0x482fc1[_0x7c93d1(0x3ca)]===Symbol&&_0x482fc1!==Symbol[_0x7c93d1(0x398)]?_0x7c93d1(0x201):typeof _0x482fc1;},g(_0x263d20);}function ie(_0x2a869d,_0x24e809){const _0x311bc0=_0x2b4704;if(g(_0x2a869d)!=_0x311bc0(0x1ed)||!_0x2a869d)return _0x2a869d;var _0x2ae8ca=_0x2a869d[Symbol['toPrimitive']];if(_0x2ae8ca!==void 0x0){var _0x49292f=_0x2ae8ca[_0x311bc0(0x2ec)](_0x2a869d,_0x24e809||_0x311bc0(0x2b7));if(g(_0x49292f)!=_0x311bc0(0x1ed))return _0x49292f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x24e809===_0x311bc0(0x2e4)?String:Number)(_0x2a869d);}function ae(_0x55b71a){const _0x404ef8=_0x2b4704;var _0x5bb40b=ie(_0x55b71a,_0x404ef8(0x2e4));return g(_0x5bb40b)==_0x404ef8(0x201)?_0x5bb40b:_0x5bb40b+'';}function _(_0x525046,_0x210102,_0x154cdf){const _0x462203=_0x2b4704;return(_0x210102=ae(_0x210102))in _0x525046?Object[_0x462203(0x1dd)](_0x525046,_0x210102,{'value':_0x154cdf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x525046[_0x210102]=_0x154cdf,_0x525046;}let oe=function(_0xea991){const _0x3e3371=_0x2b4704;return _0xea991[_0x3e3371(0x1ad)]=_0x3e3371(0x1ad),_0xea991[_0x3e3371(0x38b)]=_0x3e3371(0x38b),_0xea991[_0x3e3371(0x139)]=_0x3e3371(0x139),_0xea991[_0x3e3371(0x176)]=_0x3e3371(0x176),_0xea991[_0x3e3371(0x20d)]=_0x3e3371(0x20d),_0xea991[_0x3e3371(0x1e9)]=_0x3e3371(0x1e9),_0xea991[_0x3e3371(0x16b)]='SOCKET_FAILED',_0xea991[_0x3e3371(0x1fd)]=_0x3e3371(0x1fd),_0xea991;}({});var v=class{constructor(){const _0x4f588a=_0x2b4704;_(this,'_event$',new a[(_0x4f588a(0x119))]()),_(this,'event$',this['_event$']['asObservable']());}[_0x2b4704(0x2b4)](_0x1fce5d){const _0x5b5cf2=_0x2b4704;this[_0x5b5cf2(0x34e)][_0x5b5cf2(0x383)](_0x1fce5d);}},se=class{constructor(){const _0xb6b530=_0x2b4704;_(this,_0xb6b530(0x25f),new a['Subject']()),_(this,_0xb6b530(0x2ca),this[_0xb6b530(0x25f)][_0xb6b530(0x171)]());}[_0x2b4704(0xf6)](_0x5ca40f){const _0x2fbfdc=_0x2b4704;this[_0x2fbfdc(0x25f)][_0x2fbfdc(0x383)](_0x5ca40f);}};function y(_0x365fa1,_0x3286ba){return function(_0x4ab5fc,_0x1bc8ab){_0x3286ba(_0x4ab5fc,_0x1bc8ab,_0x365fa1);};}function b(_0x4270dd,_0x416128,_0xd25ae,_0x49c0e2){const _0x5bc42d=_0x2b4704;var _0x14308e=arguments[_0x5bc42d(0x2f8)],_0x33d712=_0x14308e<0x3?_0x416128:_0x49c0e2===null?_0x49c0e2=Object['getOwnPropertyDescriptor'](_0x416128,_0xd25ae):_0x49c0e2,_0x5972fb;if(typeof Reflect==_0x5bc42d(0x1ed)&&typeof Reflect[_0x5bc42d(0x25c)]==_0x5bc42d(0x331))_0x33d712=Reflect[_0x5bc42d(0x25c)](_0x4270dd,_0x416128,_0xd25ae,_0x49c0e2);else{for(var _0x4c7140=_0x4270dd[_0x5bc42d(0x2f8)]-0x1;_0x4c7140>=0x0;_0x4c7140--)(_0x5972fb=_0x4270dd[_0x4c7140])&&(_0x33d712=(_0x14308e<0x3?_0x5972fb(_0x33d712):_0x14308e>0x3?_0x5972fb(_0x416128,_0xd25ae,_0x33d712):_0x5972fb(_0x416128,_0xd25ae))||_0x33d712);}return _0x14308e>0x3&&_0x33d712&&Object[_0x5bc42d(0x1dd)](_0x416128,_0xd25ae,_0x33d712),_0x33d712;}let x=class extends n[_0x2b4704(0x274)]{constructor(_0x1664c6,_0x34e4cc){const _0x4556fd=_0x2b4704;super(),this[_0x4556fd(0x2fb)]=_0x1664c6,this[_0x4556fd(0x3ad)]=_0x34e4cc,_(this,_0x4556fd(0x16e),new Map()),_(this,_0x4556fd(0x285),new a[(_0x4556fd(0x119))]()),this[_0x4556fd(0x115)]((0x0,a['merge'])(this['_univerInstanceService'][_0x4556fd(0x1a6)](n[_0x4556fd(0x372)][_0x4556fd(0x375)])[_0x4556fd(0x200)]((0x0,c[_0x4556fd(0x2c1)])(_0x5b4376=>_0x5b4376['getUnitId']())),this[_0x4556fd(0x2fb)]['getTypeOfUnitDisposed$'](n[_0x4556fd(0x372)][_0x4556fd(0x299)])[_0x4556fd(0x200)]((0x0,c[_0x4556fd(0x2c1)])(_0x4fc479=>_0x4fc479[_0x4556fd(0x17c)]())),this[_0x4556fd(0x2fb)]['getTypeOfUnitDisposed$'](n[_0x4556fd(0x372)][_0x4556fd(0x288)])['pipe']((0x0,c[_0x4556fd(0x2c1)])(_0x307b8f=>_0x307b8f[_0x4556fd(0x17c)]())))[_0x4556fd(0x169)](_0x24eed4=>this['_removeRoom'](_0x24eed4)));}[_0x2b4704(0x1ee)](_0x5f257c){const _0x1cf0e2=_0x2b4704;return this[_0x1cf0e2(0x16e)][_0x1cf0e2(0x1ae)](_0x5f257c)?(0x0,a['of'])(this[_0x1cf0e2(0x16e)][_0x1cf0e2(0x287)](_0x5f257c)):this[_0x1cf0e2(0x285)][_0x1cf0e2(0x200)]((0x0,c[_0x1cf0e2(0x2c1)])(_0x43663a=>{const _0x4efcec=_0x1cf0e2;if(_0x43663a===_0x5f257c)return this[_0x4efcec(0x16e)][_0x4efcec(0x287)](_0x43663a);}));}['setCurrentUser'](_0x31a05c){const _0x466bdb=_0x2b4704;this[_0x466bdb(0x3ad)]['setCurrentUser'](_0x31a05c);}[_0x2b4704(0x39b)](){const _0x3ae217=_0x2b4704;return this[_0x3ae217(0x3ad)]['getCurrentUser']();}[_0x2b4704(0x295)](_0x1f34ec,_0x2c9e48){const _0x4b4cf4=_0x2b4704;let _0x2d760f=this['_roomMembers']['get'](_0x1f34ec);_0x2d760f||(_0x2d760f=new ce(),this[_0x4b4cf4(0x16e)][_0x4b4cf4(0x399)](_0x1f34ec,_0x2d760f),this['_roomCreated$']['next'](_0x1f34ec)),_0x2d760f['updateMember'](_0x2c9e48);}[_0x2b4704(0x396)](_0x2c7b72,_0x3edd58){const _0x564270=_0x2b4704;let _0x46efd5=this[_0x564270(0x16e)]['get'](_0x2c7b72);_0x46efd5&&_0x46efd5[_0x564270(0x396)](_0x3edd58);}[_0x2b4704(0x188)](_0x5e3df2){const _0xca133a=_0x2b4704;return this[_0xca133a(0x16e)]['get'](_0x5e3df2);}[_0x2b4704(0x2da)](_0x3f1729,_0x20b784){const _0x1a00d3=_0x2b4704;let _0x12a9db=this[_0x1a00d3(0x16e)][_0x1a00d3(0x287)](_0x3f1729);if(_0x12a9db)return _0x12a9db['getMember'](_0x20b784);}['_removeRoom'](_0x5b57b7){const _0xba99a=_0x2b4704;let _0x4c6169=this[_0xba99a(0x16e)][_0xba99a(0x287)](_0x5b57b7);_0x4c6169&&(_0x4c6169[_0xba99a(0x2cf)](),this[_0xba99a(0x16e)][_0xba99a(0x31e)](_0x5b57b7));}['dispose'](){const _0x478d8d=_0x2b4704;this[_0x478d8d(0x16e)][_0x478d8d(0x24e)](_0x477941=>_0x477941['dispose']()),this[_0x478d8d(0x16e)][_0x478d8d(0x2de)](),this[_0x478d8d(0x285)]['complete']();}};x=b([y(0x0,n['IUniverInstanceService']),y(0x1,(0x0,n[_0x2b4704(0x1ce)])(n['UserManagerService']))],x);var ce=class extends n[_0x2b4704(0x274)]{constructor(..._0x2cd810){const _0x4ffd81=_0x2b4704;super(..._0x2cd810),_(this,_0x4ffd81(0x3a3),new Map()),_(this,'_members$',new a[(_0x4ffd81(0x367))](this[_0x4ffd81(0x3a3)])),_(this,'members$',this['_members$'][_0x4ffd81(0x171)]());}[_0x2b4704(0x2cf)](){const _0x40b64c=_0x2b4704;this[_0x40b64c(0x3a3)][_0x40b64c(0x2de)](),this[_0x40b64c(0x2c4)][_0x40b64c(0x391)]();}[_0x2b4704(0x295)](_0x3ad6e2){const _0x50107a=_0x2b4704;this['_members'][_0x50107a(0x399)](_0x3ad6e2['memberID'],_0x3ad6e2),this[_0x50107a(0x102)]();}[_0x2b4704(0x396)](_0xbb2626){const _0x1817d9=_0x2b4704;this[_0x1817d9(0x3a3)][_0x1817d9(0x31e)](_0xbb2626),this[_0x1817d9(0x102)]();}['getMember'](_0x35c75d){const _0x51e3a4=_0x2b4704;return this[_0x51e3a4(0x3a3)][_0x51e3a4(0x287)](_0x35c75d);}[_0x2b4704(0x27d)](){const _0x3bdc8d=_0x2b4704;return Array[_0x3bdc8d(0x268)](this['_members'][_0x3bdc8d(0x1a1)]());}[_0x2b4704(0x102)](){const _0x5ed039=_0x2b4704;this['_members$'][_0x5ed039(0x383)](this[_0x5ed039(0x3a3)]);}};let le=function(_0x25c5b8){const _0x443a46=_0x2b4704;return _0x25c5b8[_0x25c5b8[_0x443a46(0x316)]=0x0]=_0x443a46(0x316),_0x25c5b8[_0x25c5b8[_0x443a46(0x302)]=0x1]=_0x443a46(0x302),_0x25c5b8[_0x25c5b8['OFFLINE']=0x2]=_0x443a46(0x19b),_0x25c5b8[_0x25c5b8['ONLINE']=0x3]=_0x443a46(0x26c),_0x25c5b8;}({});const ue={[o[_0x2b4704(0x371)][_0x2b4704(0x32d)]]:_0x2b4704(0xf9),[o[_0x2b4704(0x371)][_0x2b4704(0x128)]]:_0x2b4704(0x322),[o[_0x2b4704(0x371)][_0x2b4704(0x114)]]:'session.room-not-exists',[o[_0x2b4704(0x371)][_0x2b4704(0x3d1)]]:_0x2b4704(0x160),[o[_0x2b4704(0x371)][_0x2b4704(0x125)]]:'session.room-cnt-exceeds'};let S=class extends n[_0x2b4704(0x2a0)]{get[_0x2b4704(0x2db)](){const _0x316bb0=_0x2b4704;return this['_sessionStatus$'][_0x316bb0(0x19f)]();}constructor(_0x3bbedb,_0xa43219,_0x2f16fc,_0x49b2a6,_0x330095,_0x5163d4,_0x3d5811,_0x31648c){const _0x4efc7a=_0x2b4704;super(),this['_unitID']=_0x3bbedb,this[_0x4efc7a(0x35b)]=_0x2f16fc,this[_0x4efc7a(0x1d8)]=_0x49b2a6,this[_0x4efc7a(0xf5)]=_0x330095,this[_0x4efc7a(0x2a9)]=_0x5163d4,this['_collaborationUIEventService']=_0x3d5811,this[_0x4efc7a(0x2be)]=_0x31648c,_(this,_0x4efc7a(0x12f),new a['BehaviorSubject'](0x0)),_(this,_0x4efc7a(0x3d5),this[_0x4efc7a(0x12f)][_0x4efc7a(0x171)]()),_(this,_0x4efc7a(0x34e),new a[(_0x4efc7a(0x119))]()),_(this,'event$',this[_0x4efc7a(0x34e)][_0x4efc7a(0x171)]()),_(this,'_socket',void 0x0),_(this,_0x4efc7a(0x167),void 0x0),_(this,'_collaborationTimeoutTimer',void 0x0),_(this,_0x4efc7a(0x1e5),!0x1),_(this,_0x4efc7a(0x283),null),this[_0x4efc7a(0x1e5)]=!!this['_telemetryService'],_0xa43219[_0x4efc7a(0x200)]((0x0,a[_0x4efc7a(0x395)])(this[_0x4efc7a(0x37e)]))['subscribe'](_0x24a83c=>{const _0x2f978b=_0x4efc7a;if(_0x24a83c!==void 0x0){if(this['_socket']=_0x24a83c,_0x24a83c)this[_0x2f978b(0x16c)](_0x24a83c),this[_0x2f978b(0x167)]=_0x24a83c[_0x2f978b(0x35a)]['subscribe'](_0x58150e=>{const _0xafa371=_0x2f978b;_0x58150e[_0xafa371(0x224)]===this[_0xafa371(0x1b4)]&&this[_0xafa371(0x38a)](_0x58150e);});else{var _0x106a9b;this[_0x2f978b(0x214)](),this[_0x2f978b(0x12f)][_0x2f978b(0x383)](0x2),(_0x106a9b=this[_0x2f978b(0x167)])==null||_0x106a9b['unsubscribe'](),this[_0x2f978b(0x167)]=null;}}});}[_0x2b4704(0x145)](){const _0x17858a=_0x2b4704;var _0x3502df,_0x5a5d17;return(_0x3502df=(_0x5a5d17=this['_socket'])==null?void 0x0:_0x5a5d17[_0x17858a(0x303)])==null?null:_0x3502df;}[_0x2b4704(0x2cf)](){const _0x19fe5b=_0x2b4704;super[_0x19fe5b(0x2cf)](),this[_0x19fe5b(0x26d)](),this[_0x19fe5b(0x37e)][_0x19fe5b(0x383)](),this[_0x19fe5b(0x37e)]['complete']();}['close'](){const _0x53b15f=_0x2b4704;var _0x32d2f7,_0x931b7e;this[_0x53b15f(0x214)](),(_0x32d2f7=this[_0x53b15f(0x280)])==null||_0x32d2f7[_0x53b15f(0x3d4)]({'cmd':o[_0x53b15f(0x329)][_0x53b15f(0x2af)],'data':{'roomID':this[_0x53b15f(0x1b4)]}}),(_0x931b7e=this[_0x53b15f(0x280)])==null||_0x931b7e[_0x53b15f(0x26d)](),this['_event$'][_0x53b15f(0x391)](),this[_0x53b15f(0x12f)]['complete']();}['_onCombEvent'](_0xfed117){const _0x45cdae=_0x2b4704;_0xfed117['cmd']===o[_0x45cdae(0x329)][_0x45cdae(0x318)]?this[_0x45cdae(0x28c)](_0xfed117):_0xfed117[_0x45cdae(0x28f)]===o['CombCmd'][_0x45cdae(0x30d)]&&this['_onRecvEvent'](_0xfed117);}[_0x2b4704(0x16c)](_0xc8ad6b){const _0x3eae2e=_0x2b4704;this[_0x3eae2e(0x12f)][_0x3eae2e(0x383)](0x1),_0xc8ad6b['send']({'cmd':o[_0x3eae2e(0x329)][_0x3eae2e(0x318)],'routeKey':this[_0x3eae2e(0x1b4)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3eae2e(0x1b4)]}]}});}[_0x2b4704(0x28c)](_0x2952ad){const _0x35ce00=_0x2b4704;var _0x12c7ec;if(_0x2952ad[_0x35ce00(0x1a4)]in ue){this[_0x35ce00(0x38e)][_0x35ce00(0x2b4)]({'id':'JOIN_ROOM_FAILED','data':ue[_0x2952ad[_0x35ce00(0x1a4)]]}),this['_sessionStatus$'][_0x35ce00(0x383)](0x2);return;}this[_0x35ce00(0x12f)][_0x35ce00(0x383)](0x3);let _0x21f9e6=(_0x12c7ec=_0x2952ad['data'][_0x35ce00(0x1f9)][this[_0x35ce00(0x1b4)]])==null?void 0x0:_0x12c7ec[_0x35ce00(0x3b4)];_0x21f9e6&&_0x21f9e6['forEach'](_0x51392e=>this['_memberService'][_0x35ce00(0x295)](this[_0x35ce00(0x1b4)],_0x51392e));}[_0x2b4704(0x2a2)](_0x434ca3){const _0x50c8c5=_0x2b4704;try{let _0x16db62=_0x434ca3[_0x50c8c5(0x27c)];switch(_0x16db62[_0x50c8c5(0x1da)]){case t[_0x50c8c5(0x30b)][_0x50c8c5(0x1a8)]:this[_0x50c8c5(0x32a)](_0x16db62),this[_0x50c8c5(0x34e)]['next'](_0x16db62);break;case t[_0x50c8c5(0x30b)][_0x50c8c5(0x35c)]:this['_onUserLeave'](_0x16db62),this[_0x50c8c5(0x34e)]['next'](_0x16db62);break;case t[_0x50c8c5(0x30b)][_0x50c8c5(0x221)]:case t[_0x50c8c5(0x30b)][_0x50c8c5(0x35d)]:this[_0x50c8c5(0x3c2)](),this[_0x50c8c5(0x14a)](),this[_0x50c8c5(0x34e)][_0x50c8c5(0x383)](_0x16db62);break;case t['CollaborationEvent'][_0x50c8c5(0x131)]:this['_logService'][_0x50c8c5(0x2b8)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x16db62)),this[_0x50c8c5(0x34e)]['next'](_0x16db62);break;case t['CollaborationEvent'][_0x50c8c5(0x257)]:this[_0x50c8c5(0x2a9)][_0x50c8c5(0xf6)](_0x16db62[_0x50c8c5(0x27c)]),this[_0x50c8c5(0x34e)][_0x50c8c5(0x383)](_0x16db62);break;default:this['_event$'][_0x50c8c5(0x383)](_0x16db62);}}catch(_0x426fee){this[_0x50c8c5(0x35b)]['error'](_0x426fee,_0x434ca3);}}[_0x2b4704(0x32a)](_0x6311b8){const _0xf6e164=_0x2b4704;this[_0xf6e164(0xf5)][_0xf6e164(0x295)](this[_0xf6e164(0x1b4)],_0x6311b8[_0xf6e164(0x27c)]);}[_0x2b4704(0x255)](_0x267255){const _0x2693d2=_0x2b4704;this[_0x2693d2(0xf5)]['removeMember'](this[_0x2693d2(0x1b4)],_0x267255[_0x2693d2(0x27c)]['memberID']);}async['send'](_0x4de12f,_0x2ae393){const _0x48b848=_0x2b4704;if(this[_0x48b848(0x2db)]!==0x3||!this[_0x48b848(0x280)])throw Error(_0x48b848(0x18b));try{_0x4de12f[_0x48b848(0x1da)]===t[_0x48b848(0x30b)][_0x48b848(0x30c)]&&(this[_0x48b848(0x26f)](),this[_0x48b848(0x2e5)](_0x4de12f)),this[_0x48b848(0x280)]['send']({'cmd':o[_0x48b848(0x329)][_0x48b848(0x2f6)],'routeKey':_0x2ae393,'routeType':'','data':_0x4de12f});}catch(_0x1b2c23){this[_0x48b848(0x35b)]['error'](_0x1b2c23);}}[_0x2b4704(0x26f)](){const _0x2c7e72=_0x2b4704;var _0x5bea09;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x3f9ccd=_0x2cb1;this['_collaborationTimeoutTimer']=null,this[_0x3f9ccd(0x38e)][_0x3f9ccd(0x2b4)]({'id':_0x3f9ccd(0x1fd)});},(_0x5bea09=this[_0x2c7e72(0x1d8)][_0x2c7e72(0x18e)](_0x2c7e72(0x204)))==null?ne:_0x5bea09);}[_0x2b4704(0x14a)](){const _0x2e3955=_0x2b4704;this[_0x2e3955(0x2e8)]&&(clearTimeout(this[_0x2e3955(0x2e8)]),this['_collaborationTimeoutTimer']=null);}[_0x2b4704(0x2e5)](_0x4e6b2b){const _0xef854b=_0x2b4704;if(!this[_0xef854b(0x1e5)])return;let {data:_0x21a613}=_0x4e6b2b,{unitID:_0x40e7a7,changeset:_0x5c25d4}=_0x21a613,{mutations:_0x5c1c36,type:_0x2df20a}=_0x5c25d4;this[_0xef854b(0x283)]={'unitId':_0x40e7a7,'type':_0x2df20a,'startTime':performance[_0xef854b(0x3b8)](),'stopTime':0x0,'duration':0x0,'size':re(_0x5c1c36)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x10723a=_0x2b4704;if(this['_shouldReportTelemetry']){if(!this[_0x10723a(0x283)]){this[_0x10723a(0x35b)][_0x10723a(0x2b8)](_0x10723a(0x3ab),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x10723a(0x283)][_0x10723a(0x16d)]=performance['now'](),this['_telemetryInfo'][_0x10723a(0x1b7)]=this[_0x10723a(0x283)][_0x10723a(0x16d)]-this[_0x10723a(0x283)][_0x10723a(0x350)],this[_0x10723a(0x2be)][_0x10723a(0x108)]('collaboration_new_changeset',this[_0x10723a(0x283)]),this[_0x10723a(0x283)]=null;}}[_0x2b4704(0x214)](){const _0x440c90=_0x2b4704;this[_0x440c90(0x283)]=null;}};S=b([y(0x2,n['ILogService']),y(0x3,n['IConfigService']),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(x)),y(0x5,(0x0,n[_0x2b4704(0x1ce)])(se)),y(0x6,(0x0,n[_0x2b4704(0x1ce)])(v)),y(0x7,(0x0,n[_0x2b4704(0x1d7)])(s[_0x2b4704(0x235)]))],S);const C=(0x0,n[_0x2b4704(0x1d9)])(_0x2b4704(0x24b));function de(_0x1f2e5b){const _0x401df4=_0x2b4704;return _0x401df4(0x135)+_0x1f2e5b;}function fe(_0x4ccd77){const _0x4923a6=_0x2b4704;let {unitID:_0x5de160,mutations:_0x5e3109}=_0x4ccd77;return{'unitId':_0x5de160,'subUnitId':_0x5e3109[_0x4923a6(0x2f8)]>0x0?_0x5e3109[0x0][_0x4923a6(0x3bf)]['subUnitId']:null};}let w=class{constructor(_0x2ea76a,_0x136913,_0x3f1831){const _0xa78678=_0x2b4704;this['_injector']=_0x2ea76a,this[_0xa78678(0x191)]=_0x136913,this[_0xa78678(0x2f4)]=_0x3f1831;}[_0x2b4704(0x33d)](_0x34cc4e){const _0x14185d=_0x2b4704;var _0x41e1ec,_0x32281c;let _0x4da88b=this['_injector']['get'](i[_0x14185d(0x2a6)]),{unitId:_0x56b6c8,subUnitId:_0x431643}=fe(_0x34cc4e),_0x3aca61=_0x4da88b==null?void 0x0:_0x4da88b[_0x14185d(0x2ce)](_0x56b6c8)[_0x14185d(0x3b3)](),_0x5a986a=(_0x41e1ec=this[_0x14185d(0x2f4)]['getUnit'](_0x56b6c8))==null||(_0x41e1ec=_0x41e1ec[_0x14185d(0x170)]())==null?void 0x0:_0x41e1ec[_0x14185d(0x217)]();if(_0x3aca61[_0x14185d(0x2f8)]===0x0||!_0x56b6c8||!_0x431643)return;let _0x46e6db=[{'id':i[_0x14185d(0x258)]['id'],'params':{'unitId':_0x56b6c8,'subUnitId':_0x5a986a,'selections':n[_0x14185d(0xf4)]['deepClone'](_0x3aca61)}}],_0x1dc792=this['_transformService'][_0x14185d(0x2c5)](_0x34cc4e,_0x46e6db);if(!(0x0,t[_0x14185d(0x3e0)])(_0x1dc792))throw _0x1dc792[_0x14185d(0x2b8)];let _0x53585e=(_0x32281c=_0x1dc792[_0x14185d(0x293)][0x0])==null||(_0x32281c=_0x32281c['params'])==null?void 0x0:_0x32281c['selections'];if(Array['isArray'](_0x53585e)&&_0x53585e['length']){if(_0x53585e['length']===_0x46e6db[0x0]['params'][_0x14185d(0x39d)][_0x14185d(0x2f8)]&&_0x53585e[_0x14185d(0x369)]((_0x80c64b,_0x3a5efd)=>n['Rectangle'][_0x14185d(0x3be)](_0x80c64b[_0x14185d(0x34c)],_0x46e6db[0x0][_0x14185d(0x3bf)][_0x14185d(0x39d)][_0x3a5efd]['range'])))return;this[_0x14185d(0x3de)]['get'](n[_0x14185d(0x378)])[_0x14185d(0x1f7)](i[_0x14185d(0x258)]['id'],{'unitId':_0x56b6c8,'subUnitId':_0x5a986a,'selections':_0x53585e});}}};w=b([y(0x0,(0x0,n['Inject'])(n[_0x2b4704(0x39f)])),y(0x1,t[_0x2b4704(0x109)]),y(0x2,n[_0x2b4704(0x3a9)])],w);const T=(0x0,n[_0x2b4704(0x1d9)])(_0x2b4704(0x364));let pe=function(_0xc59a3){const _0x2a4811=_0x2b4704;return _0xc59a3[_0xc59a3['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x2a4811(0x374),_0xc59a3[_0xc59a3['OTHER_CLIENTS_EDITING']=0x1]=_0x2a4811(0x276),_0xc59a3;}({});function me(_0x2c89b2){const _0x218f6a=_0x2b4704;var _0x17b875;return!!((_0x17b875=_0x2c89b2[_0x218f6a(0x3bf)])!=null&&_0x17b875[_0x218f6a(0x236)]);}const he=new Set([i[_0x2b4704(0x154)]['id']]),ge=new Set([l[_0x2b4704(0x2ef)]['id'],l[_0x2b4704(0x2e6)]['id'],l[_0x2b4704(0x172)]['id'],l['RemoveSlidePageMutation']['id']]);function _e(_0x1554c9,_0x532489=he){const _0x48a187=_0x2b4704;let _0xd80c94=[];for(let _0x3065e5 of _0x1554c9){if(_0x532489[_0x48a187(0x1ae)](_0x3065e5['id'])){if(_0xd80c94[_0x48a187(0x2f8)]>0x0)break;_0xd80c94['push'](_0x3065e5);break;}if(me(_0x3065e5)){if(_0xd80c94[_0x48a187(0x2f8)]>0x0)break;_0xd80c94['push'](_0x3065e5);break;}_0xd80c94['push'](_0x3065e5);}return _0xd80c94;}function ve(_0x325c25,_0x452d38,_0x5d54d1,_0x4c1c37,_0x236c87){const _0x183d6f=_0x2b4704;var _0x250afd,_0x142e46,_0x46c213,_0x5b71f2;let _0x4431ab=_e(_0x325c25),_0x4967c0=(_0x250afd=(_0x142e46=_0x236c87['getCurrentUser']())==null?void 0x0:_0x142e46[_0x183d6f(0x17d)])==null?_0x183d6f(0x1a7):_0x250afd,_0x336b8b=(_0x46c213=(_0x5b71f2=_0x236c87[_0x183d6f(0x39b)]())==null?void 0x0:_0x5b71f2['memberID'])==null?_0x183d6f(0x1a7):_0x46c213;return{'changeset':{'unitID':_0x452d38,'type':(0x0,t['mapDocumentTypeToUniverInstanceType'])(_0x5d54d1['getUnitType'](_0x452d38)),'baseRev':_0x4c1c37[_0x183d6f(0x392)](_0x452d38),'revision':0x0,'userID':_0x4967c0,'memberID':_0x336b8b,'mutations':_0x4431ab},'pendingMutations':_0x325c25[_0x183d6f(0x17b)](_0x4431ab['length'])};}const ye=ve;function be(_0x284904,_0x5a67bd,_0x23093a,_0x3d6dcb,_0x1906a5){return ve(_0x284904,_0x5a67bd,_0x23093a,_0x3d6dcb,_0x1906a5);}function xe(_0xa73691,_0xc1a786,_0x5d0343,_0x22ba22,_0x5c66c9){const _0x2b3cbe=_0x2b4704;var _0x15d2dc,_0x36346e,_0xfa8852,_0x4ac93a;let _0x509859=_e(_0xa73691,ge),_0x2a1d83=(_0x15d2dc=(_0x36346e=_0x5c66c9[_0x2b3cbe(0x39b)]())==null?void 0x0:_0x36346e['userID'])==null?_0x2b3cbe(0x1a7):_0x15d2dc,_0xa44b0f=(_0xfa8852=(_0x4ac93a=_0x5c66c9[_0x2b3cbe(0x39b)]())==null?void 0x0:_0x4ac93a[_0x2b3cbe(0x303)])==null?_0x2b3cbe(0x1a7):_0xfa8852;return{'changeset':{'unitID':_0xc1a786,'type':(0x0,t[_0x2b3cbe(0x301)])(_0x5d0343[_0x2b3cbe(0x2f3)](_0xc1a786)),'baseRev':_0x22ba22[_0x2b3cbe(0x392)](_0xc1a786),'revision':0x0,'userID':_0x2a1d83,'memberID':_0xa44b0f,'mutations':_0x509859},'pendingMutations':_0xa73691[_0x2b3cbe(0x17b)](_0x509859[_0x2b3cbe(0x2f8)])};}function Se(_0x195131,_0x46de8b,_0x1d1e62,_0x578423,_0x4b117b){const _0x58074b=_0x2b4704;var _0x17f75d,_0x2cf81d,_0x3642a6,_0x517f08;let _0x4db231=_0x195131[_0x58074b(0x3af)]((_0x2c2fbf,_0xca82d8)=>{const _0x433528=_0x58074b;let _0x3cb466=_0x2c2fbf[_0x2c2fbf[_0x433528(0x2f8)]-0x1],{id:_0x35728d}=_0x3cb466==null?{}:_0x3cb466,{id:_0x53a58c,type:_0x3d0e07}=_0xca82d8,_0x21bd97=_0xca82d8[_0x433528(0x3bf)];if(_0x35728d&&_0x35728d!==_0x53a58c)throw Error(_0x433528(0x2f7)+_0x35728d+_0x433528(0x3cd)+_0x53a58c+'.');if(!_0x3cb466)return[{'id':_0x53a58c,'type':_0x3d0e07,'params':{'unitId':_0x21bd97['unitId'],'textRanges':_0x21bd97[_0x433528(0x386)],'actions':_0x21bd97[_0x433528(0x133)]}}];let _0x4c495b=_0x3cb466[_0x433528(0x3bf)];return Ce(_0x4c495b[_0x433528(0x133)],_0x21bd97[_0x433528(0x133)])?[..._0x2c2fbf[_0x433528(0x17b)](0x0,-0x1),{..._0x3cb466,'id':_0x53a58c,'type':_0x3d0e07,'params':{'unitId':_0x21bd97['unitId'],'textRanges':_0x21bd97[_0x433528(0x386)],'actions':n[_0x433528(0x239)][_0x433528(0x223)](_0x4c495b[_0x433528(0x133)],_0x21bd97['actions'])}}]:[..._0x2c2fbf,{'id':_0x53a58c,'type':_0x3d0e07,'params':{'unitId':_0x21bd97['unitId'],'textRanges':_0x21bd97[_0x433528(0x386)],'actions':_0x21bd97[_0x433528(0x133)]}}];},[]),_0x46966f=(_0x17f75d=(_0x2cf81d=_0x4b117b[_0x58074b(0x39b)]())==null?void 0x0:_0x2cf81d[_0x58074b(0x17d)])==null?_0x58074b(0x1a7):_0x17f75d,_0x3a4877=(_0x3642a6=(_0x517f08=_0x4b117b[_0x58074b(0x39b)]())==null?void 0x0:_0x517f08['memberID'])==null?_0x58074b(0x1a7):_0x3642a6;return{'changeset':{'unitID':_0x46de8b,'type':(0x0,t[_0x58074b(0x301)])(_0x1d1e62[_0x58074b(0x2f3)](_0x46de8b)),'baseRev':_0x578423[_0x58074b(0x392)](_0x46de8b),'revision':0x0,'userID':_0x46966f,'memberID':_0x3a4877,'mutations':_0x4db231},'pendingMutations':_0x195131[_0x58074b(0x17b)](_0x195131[_0x58074b(0x2f8)])};}function Ce(_0x76b0bd,_0x45c4cd){return we(_0x76b0bd)&&we(_0x45c4cd)&&!Te(_0x76b0bd)&&!Te(_0x45c4cd);}function we(_0x1e38ef){const _0x52d012=_0x2b4704;return Ee(_0x1e38ef)[_0x52d012(0x25a)](_0x1f1962=>De(_0x1f1962)&&_0x1f1962['et']===_0x52d012(0x1aa));}function Te(_0x5c5d2f){const _0x539ab0=_0x2b4704;return Ee(_0x5c5d2f)[_0x539ab0(0x25a)](_0x173307=>Array[_0x539ab0(0x344)](_0x173307)||typeof _0x173307==_0x539ab0(0x2e4)||typeof _0x173307==_0x539ab0(0x1b1));}function Ee(_0x1fdc6a){const _0x1f9a05=_0x2b4704;if(!Array[_0x1f9a05(0x344)](_0x1fdc6a))return[];let _0x314e89=_0x1fdc6a['includes'](_0x1f9a05(0x1df))?_0x1fdc6a:_0x1fdc6a['find'](_0x540c6b=>Array[_0x1f9a05(0x344)](_0x540c6b)&&_0x540c6b['includes'](_0x1f9a05(0x1df)));if(!Array[_0x1f9a05(0x344)](_0x314e89))return[];let _0x239166=_0x314e89[_0x1f9a05(0x190)]('body');return _0x239166===-0x1?[]:_0x314e89[_0x1f9a05(0x17b)](_0x239166+0x1);}function De(_0x2308ad){const _0x26fa6d=_0x2b4704;return typeof _0x2308ad==_0x26fa6d(0x1ed)&&!!_0x2308ad&&!Array[_0x26fa6d(0x344)](_0x2308ad);}function Oe(_0x5a0591,_0x42565e){const _0x36dfa2=_0x2b4704;let _0x32da4d=new a[(_0x36dfa2(0x1ec))](0x1);return setTimeout(()=>_0x32da4d[_0x36dfa2(0x383)](_0x42565e),_0x5a0591),_0x32da4d[_0x36dfa2(0x171)]()[_0x36dfa2(0x200)]((0x0,a[_0x36dfa2(0x346)])(0x1));}var E,D,O;let ke=function(_0x2f6315){const _0x45e8be=_0x2b4704;return _0x2f6315[_0x45e8be(0x124)]=_0x45e8be(0x118),_0x2f6315[_0x45e8be(0x261)]=_0x45e8be(0x35f),_0x2f6315[_0x45e8be(0x29e)]='pending',_0x2f6315['AWAITING']=_0x45e8be(0x3e1),_0x2f6315['AWAITING_WITH_PENDING']=_0x45e8be(0x263),_0x2f6315['FETCH_MISS']=_0x45e8be(0x192),_0x2f6315[_0x45e8be(0x139)]='conflict',_0x2f6315['OFFLINE']=_0x45e8be(0x11e),_0x2f6315;}({});const Ae=0x4e20,je=0x2bf20;var k=class{constructor(_0x4d1f5a,_0x56ca2c,_0x3b593b,_0x17c597,_0x5b3d22,_0x5519e9,_0x4ecfe3,_0x59389f,_0x973e0f){const _0x3efb66=_0x2b4704;this['unitID']=_0x4d1f5a,this[_0x3efb66(0x15c)]=_0x56ca2c,this['_handler']=_0x5b3d22,this[_0x3efb66(0x340)]=_0x5519e9,this[_0x3efb66(0x13f)]=_0x4ecfe3,this[_0x3efb66(0x36f)]=_0x59389f,this[_0x3efb66(0x10b)]=_0x973e0f,_(this,_0x3efb66(0x3a8),null),_(this,_0x3efb66(0x377),[]),this['_awaitingChangeset']=_0x3b593b,this['_pendingMutations']=_0x17c597;}[_0x2b4704(0x27b)](_0x283619){const _0x4a5ff6=_0x2b4704;let _0x3b7203=this[_0x4a5ff6(0x36f)][_0x4a5ff6(0x392)](this[_0x4a5ff6(0x37b)]);return _0x283619[_0x4a5ff6(0x197)]>_0x3b7203+0x1?(this['_handler'][_0x4a5ff6(0x1af)]({'from':_0x3b7203,'to':_0x283619[_0x4a5ff6(0x197)]-0x1}),!0x0):!0x1;}[_0x2b4704(0x36a)](_0x5895e2){const _0x1518e8=_0x2b4704;this[_0x1518e8(0x13f)]['transformUndoRedo'](this[_0x1518e8(0x37b)],_0x5895e2);}[_0x2b4704(0x103)](_0x297265){const _0x563369=_0x2b4704;var _0x3d959c,_0x55fdf8;(_0x3d959c=(_0x55fdf8=this['_handler'])[_0x563369(0x2eb)])==null||_0x3d959c['call'](_0x55fdf8,_0x297265);}['_transformIMECache'](_0x426146){const _0x56fd6d=_0x2b4704;var _0x1743dd,_0x34c90e;return(_0x1743dd=(_0x34c90e=this[_0x56fd6d(0x123)])[_0x56fd6d(0x31b)])==null?void 0x0:_0x1743dd['call'](_0x34c90e,_0x426146);}[_0x2b4704(0x2c0)](_0x1a8932){const _0x58293b=_0x2b4704;var _0x1f883c,_0x24da1e;return(_0x1f883c=(_0x24da1e=this[_0x58293b(0x123)])[_0x58293b(0x120)])==null?void 0x0:_0x1f883c[_0x58293b(0x2ec)](_0x24da1e,_0x1a8932);}['_transformRemoteChangesetByIMECache'](_0x4eaff2){const _0x251b58=_0x2b4704;var _0x438ee5,_0x4c7faf,_0x208c91;return(_0x438ee5=(_0x4c7faf=(_0x208c91=this[_0x251b58(0x123)])[_0x251b58(0x319)])==null?void 0x0:_0x4c7faf[_0x251b58(0x2ec)](_0x208c91,_0x4eaff2))==null?_0x4eaff2:_0x438ee5;}[_0x2b4704(0xf2)](_0x217da4){const _0x3decbd=_0x2b4704;var _0x2918c1,_0x25e52e,_0x4f5656;return(_0x2918c1=(_0x25e52e=(_0x4f5656=this[_0x3decbd(0x123)])[_0x3decbd(0x365)])==null?void 0x0:_0x25e52e[_0x3decbd(0x2ec)](_0x4f5656,_0x217da4))==null?_0x217da4:_0x2918c1;}['_syncEditingCollabCursor'](_0x3602ea){const _0x2a179a=_0x2b4704;if(this[_0x2a179a(0x15c)]===n[_0x2a179a(0x372)][_0x2a179a(0x299)]){let {unitID:_0x3bb5e7,mutations:_0x2756eb,memberID:_0x2e7ea4}=_0x3602ea,_0x30d09f=_0x2756eb['length']>0x0?_0x2756eb[0x0][_0x2a179a(0x3bf)][_0x2a179a(0x386)]:[];if(Array[_0x2a179a(0x344)](_0x30d09f)&&_0x30d09f['length']>0x0){var _0x2c3376,_0x134b2d;(_0x2c3376=(_0x134b2d=this[_0x2a179a(0x123)])[_0x2a179a(0x2c8)])==null||_0x2c3376[_0x2a179a(0x2ec)](_0x134b2d,{'unitID':_0x3bb5e7,'memberID':_0x2e7ea4,'textRanges':_0x30d09f});}}}[_0x2b4704(0x2a8)](){const _0x187ce8=_0x2b4704;var _0x50b34d;(_0x50b34d=this[_0x187ce8(0x10b)])==null||_0x50b34d[_0x187ce8(0x33a)](this[_0x187ce8(0x37b)],this[_0x187ce8(0x15c)],this[_0x187ce8(0x3a8)],this[_0x187ce8(0x377)]);}[_0x2b4704(0x1f1)](){const _0x5d4e47=_0x2b4704;return this[_0x5d4e47(0x36f)][_0x5d4e47(0x392)](this[_0x5d4e47(0x37b)]);}[_0x2b4704(0xfd)](){const _0x5c67f0=_0x2b4704;this[_0x5c67f0(0x36f)][_0x5c67f0(0x1c8)](this['unitID']);}[_0x2b4704(0x2d0)](_0x3cd79f){const _0x25e5e9=_0x2b4704;let _0x4b6378=this[_0x25e5e9(0x2b9)](_0x3cd79f);_0x4b6378=this[_0x25e5e9(0xf2)](_0x4b6378);let _0x79593e=(0x0,n['sequenceExecute'])(_0x4b6378['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x79593e['result']){var _0x389845;throw _0x79593e[_0x25e5e9(0x2b8)]instanceof Error?_0x79593e[_0x25e5e9(0x2b8)]:Error((_0x389845=_0x79593e[_0x25e5e9(0x2b8)])==null?_0x25e5e9(0x382):_0x389845);}this[_0x25e5e9(0x2f1)](_0x4b6378),this[_0x25e5e9(0x2c0)](_0x4b6378),this[_0x25e5e9(0x36a)](_0x3cd79f),this[_0x25e5e9(0x103)](_0x4b6378),this[_0x25e5e9(0x326)](_0x4b6378),this[_0x25e5e9(0xfd)]();}};let A=class extends k{constructor(_0x463156,_0xbf87b6,_0x479d13,_0x3430db,_0x42162d,_0x378413,_0x347f16,_0x81a28c,_0x42e66d,_0x2cb88f){const _0x3353fe=_0x2b4704;super(_0x463156,_0xbf87b6,null,[],_0x479d13,_0x347f16,_0x378413,_0x3430db,_0x2cb88f),this['_injector']=_0x42162d,this[_0x3353fe(0x35b)]=_0x81a28c,this[_0x3353fe(0x191)]=_0x42e66d,this[_0x3353fe(0x3c0)]=_0x2cb88f,_(this,_0x3353fe(0x1a5),_0x3353fe(0x35f));}[_0x2b4704(0x2cd)](_0x51c9ea){const _0x337f19=_0x2b4704;let _0x2bd58a=this[_0x337f19(0x3de)][_0x337f19(0x2b6)](j,this[_0x337f19(0x37b)],this[_0x337f19(0x15c)],[_0x51c9ea],this[_0x337f19(0x123)]);return _0x2bd58a[_0x337f19(0x16f)](),_0x2bd58a[_0x337f19(0x2a8)](),_0x2bd58a;}[_0x2b4704(0x3b7)](_0x44e1e0){const _0x448e7d=_0x2b4704;if(this[_0x448e7d(0x27b)](_0x44e1e0))return this['_injector'][_0x448e7d(0x2b6)](I,this[_0x448e7d(0x37b)],this['type'],null,[],null,[_0x44e1e0],this[_0x448e7d(0x123)]);try{let _0x4ced4d=this[_0x448e7d(0x191)][_0x448e7d(0x2c5)](_0x44e1e0,[t[_0x448e7d(0x184)]]);if((0x0,t[_0x448e7d(0x3e0)])(_0x4ced4d)){let {c1Prime:_0x5f0b6b}=_0x4ced4d;return this[_0x448e7d(0x2d0)](_0x5f0b6b),this;}throw _0x4ced4d[_0x448e7d(0x2b8)];}catch(_0x1fabb5){return this[_0x448e7d(0x35b)][_0x448e7d(0x2b8)](_0x1fabb5),this[_0x448e7d(0x34f)](!0x1);}}[_0x2b4704(0x34f)](_0x273aa6){const _0x5451cc=_0x2b4704;return this[_0x5451cc(0x3de)][_0x5451cc(0x2b6)](P,this[_0x5451cc(0x37b)],this[_0x5451cc(0x15c)],null,[],this[_0x5451cc(0x123)],_0x273aa6);}[_0x2b4704(0x26e)](_0x7feda2){const _0x5a1ea5=_0x2b4704;if(_0x7feda2[_0x5a1ea5(0x197)]<=this[_0x5a1ea5(0x1f1)]())return this;throw Error(_0x5a1ea5(0x2b3));}[_0x2b4704(0x311)](){const _0x39d9ef=_0x2b4704;throw Error(_0x39d9ef(0x232));}[_0x2b4704(0x165)](){return this;}[_0x2b4704(0x282)](){const _0x3fdf7f=_0x2b4704;return this[_0x3fdf7f(0x3de)]['createInstance'](F,this[_0x3fdf7f(0x37b)],this[_0x3fdf7f(0x15c)],null,[],this[_0x3fdf7f(0x123)]);}[_0x2b4704(0x36e)](){return this;}[_0x2b4704(0x21a)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x448468=_0x2b4704;let _0x490def=this[_0x448468(0x36f)]['getCurrentRevOfUnit'](this['unitID']);return this[_0x448468(0x123)][_0x448468(0x1af)]({'from':_0x490def,'to':0x0}),this[_0x448468(0x3de)][_0x448468(0x2b6)](I,this[_0x448468(0x37b)],this[_0x448468(0x15c)],null,[],null,[],this[_0x448468(0x123)]);}};A=b([y(0x3,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x136)])),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(n['Injector'])),y(0x5,n['IUndoRedoService']),y(0x6,n[_0x2b4704(0x378)]),y(0x7,n[_0x2b4704(0x2ac)]),y(0x8,t[_0x2b4704(0x109)]),y(0x9,(0x0,n[_0x2b4704(0x1d7)])(C))],A);function _0x2cb1(_0x31d4bd,_0x23bf87){_0x31d4bd=_0x31d4bd-0xf2;const _0x637e5f=_0x637e();let _0x2cb1f9=_0x637e5f[_0x31d4bd];return _0x2cb1f9;}let j=E=class extends k{constructor(_0x125ae1,_0x4ba1ab,_0x1cddbf,_0x2d1f79,_0xdcee09,_0x429d3f,_0x276f5d,_0x51f338,_0x176c9b,_0x340c1c,_0x5bed31,_0x391e3f,_0x1f71bf,_0x306f83){const _0x1a2701=_0x2b4704;super(_0x125ae1,_0x4ba1ab,null,_0x1cddbf,_0x2d1f79,_0x176c9b,_0x1f71bf,_0x429d3f,_0x306f83),this['_injector']=_0xdcee09,this[_0x1a2701(0xf5)]=_0x276f5d,this['_logService']=_0x51f338,this[_0x1a2701(0x1d8)]=_0x340c1c,this['_transformService']=_0x5bed31,this[_0x1a2701(0x2fb)]=_0x391e3f,_(this,_0x1a2701(0x1a5),_0x1a2701(0x19a)),_(this,_0x1a2701(0x23b),null),_(this,'_sendingTimer',null);}[_0x2b4704(0x2cd)](_0x53e8b5){const _0x5ee3b0=_0x2b4704;return this[_0x5ee3b0(0x377)][_0x5ee3b0(0x384)](_0x53e8b5),this[_0x5ee3b0(0x2a8)](),this;}[_0x2b4704(0x3b7)](_0x4771bc){const _0xb72624=_0x2b4704;if(this[_0xb72624(0x27b)](_0x4771bc))return this[_0xb72624(0x2c6)](),this[_0xb72624(0x3de)][_0xb72624(0x2b6)](I,this['unitID'],this[_0xb72624(0x15c)],null,this[_0xb72624(0x377)],null,[_0x4771bc],this[_0xb72624(0x123)]);try{let _0x2d6160=this['_transformService'][_0xb72624(0x2c5)](_0x4771bc,this[_0xb72624(0x377)]);if((0x0,t[_0xb72624(0x3e0)])(_0x2d6160)){let {c1Prime:_0x5cadd0,m2Prime:_0x3f5569}=_0x2d6160;this['_executeRemoteChangeset'](_0x5cadd0);let _0x483a41=this[_0xb72624(0x3de)][_0xb72624(0x2b6)](E,this[_0xb72624(0x37b)],this[_0xb72624(0x15c)],_0x3f5569,this[_0xb72624(0x123)]);this[_0xb72624(0x2c6)]();let _0x352987=new Date()[_0xb72624(0x1c3)](),_0x25b5f4=this[_0xb72624(0x23b)]?Math[_0xb72624(0x24a)](this[_0xb72624(0x23b)]-_0x352987,0x0):this[_0xb72624(0x332)]();return _0x483a41[_0xb72624(0x16f)](_0x25b5f4),_0x483a41;}throw _0x2d6160['error'];}catch(_0x51f171){return this['_logService'][_0xb72624(0x2b8)](_0x51f171),this[_0xb72624(0x34f)](!0x1);}}[_0x2b4704(0x26e)](_0xb131bd){const _0x11f0c1=_0x2b4704;if(_0xb131bd[_0x11f0c1(0x197)]<=this[_0x11f0c1(0x1f1)]())return this;throw Error(_0x11f0c1(0x2d3));}[_0x2b4704(0x311)](){const _0x395b16=_0x2b4704;throw Error(_0x395b16(0x323));}[_0x2b4704(0x165)](){return this;}[_0x2b4704(0x282)](){const _0x532c8c=_0x2b4704;return this[_0x532c8c(0x2c6)](),this[_0x532c8c(0x3de)]['createInstance'](F,this[_0x532c8c(0x37b)],this[_0x532c8c(0x15c)],null,this[_0x532c8c(0x377)],this[_0x532c8c(0x123)]);}[_0x2b4704(0x36e)](){return this;}[_0x2b4704(0x16f)](_0x5c0081){const _0x1d0129=_0x2b4704;let _0x3b84a8=_0x5c0081==null?this[_0x1d0129(0x332)]():_0x5c0081;this[_0x1d0129(0x23b)]=new Date()[_0x1d0129(0x1c3)]()+_0x3b84a8,this['_sendingTimer']=setTimeout(()=>{const _0x5e535e=_0x1d0129;this[_0x5e535e(0x2c6)]();let _0x61c208=null;switch(this['type']){case n[_0x5e535e(0x372)][_0x5e535e(0x375)]:_0x61c208=ye(this['_pendingMutations'],this[_0x5e535e(0x37b)],this[_0x5e535e(0x2fb)],this[_0x5e535e(0x36f)],this[_0x5e535e(0xf5)]);break;case n['UniverInstanceType'][_0x5e535e(0x299)]:_0x61c208=this[_0x5e535e(0x377)][_0x5e535e(0x369)](_0x1a9691=>_0x1a9691['id']===r['RichTextEditingMutation']['id'])?Se(this[_0x5e535e(0x377)],this[_0x5e535e(0x37b)],this[_0x5e535e(0x2fb)],this[_0x5e535e(0x36f)],this[_0x5e535e(0xf5)]):ye(this[_0x5e535e(0x377)],this[_0x5e535e(0x37b)],this[_0x5e535e(0x2fb)],this[_0x5e535e(0x36f)],this[_0x5e535e(0xf5)]);break;case n['UniverInstanceType'][_0x5e535e(0x397)]:_0x61c208=xe(this['_pendingMutations'],this['unitID'],this[_0x5e535e(0x2fb)],this[_0x5e535e(0x36f)],this['_memberService']);break;case n[_0x5e535e(0x372)][_0x5e535e(0x288)]:_0x61c208=be(this[_0x5e535e(0x377)],this[_0x5e535e(0x37b)],this[_0x5e535e(0x2fb)],this['_revisionService'],this[_0x5e535e(0xf5)]);break;default:throw Error(_0x5e535e(0x3bd)+this['type']+'\x20in\x20_schedule.');}let {changeset:_0x20ecf0,pendingMutations:_0x2878ba}=_0x61c208;this[_0x5e535e(0x123)][_0x5e535e(0xf3)](_0x20ecf0);let _0x1af471=_0x2878ba['length']?this[_0x5e535e(0x3de)]['createInstance'](N,this['unitID'],this[_0x5e535e(0x15c)],_0x20ecf0,_0x2878ba,this[_0x5e535e(0x123)],void 0x0):this[_0x5e535e(0x3de)]['createInstance'](M,this[_0x5e535e(0x37b)],this[_0x5e535e(0x15c)],_0x20ecf0,this[_0x5e535e(0x123)]);_0x1af471['_updateLocalCache'](),this['_handler'][_0x5e535e(0x39e)](this,_0x1af471);},_0x3b84a8);}['_getSendChangesetTimeout'](){const _0xedb19d=_0x2b4704;var _0x411db8;let _0xe8d207=this['_configService'][_0xedb19d(0x18e)](h);return(_0x411db8=_0xe8d207==null?void 0x0:_0xe8d207[_0xedb19d(0x116)])==null?0x7d0:_0x411db8;}[_0x2b4704(0x21a)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x4ee713=_0x2b4704;this[_0x4ee713(0x2ee)]!=null&&(clearTimeout(this[_0x4ee713(0x2ee)]),this['_sendingTimer']=null);}[_0x2b4704(0x34f)](_0x280c24){const _0x5ac98f=_0x2b4704;return this[_0x5ac98f(0x2c6)](),this['_injector']['createInstance'](P,this['unitID'],this[_0x5ac98f(0x15c)],null,this[_0x5ac98f(0x377)],this[_0x5ac98f(0x123)],_0x280c24);}};j=E=b([y(0x4,(0x0,n[_0x2b4704(0x1ce)])(n['Injector'])),y(0x5,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x136)])),y(0x6,(0x0,n[_0x2b4704(0x1ce)])(x)),y(0x7,n[_0x2b4704(0x2ac)]),y(0x8,n[_0x2b4704(0x378)]),y(0x9,n[_0x2b4704(0x309)]),y(0xa,t[_0x2b4704(0x109)]),y(0xb,n[_0x2b4704(0x3a9)]),y(0xc,n[_0x2b4704(0x100)]),y(0xd,(0x0,n['Optional'])(C))],j);let M=D=class extends k{constructor(_0x1a4052,_0x1d1636,_0x203477,_0x1cd595,_0x3c89f7,_0x2b33c5,_0x92cf36,_0xe1003d,_0x31088f,_0x508a5e,_0x129222){const _0x405b4f=_0x2b4704;super(_0x1a4052,_0x1d1636,_0x203477,[],_0x1cd595,_0x92cf36,_0x508a5e,_0x2b33c5,_0x129222),this['_injector']=_0x3c89f7,this[_0x405b4f(0x35b)]=_0xe1003d,this[_0x405b4f(0x191)]=_0x31088f,_(this,_0x405b4f(0x1a5),_0x405b4f(0x3e1)),_(this,_0x405b4f(0x253),0x0),_(this,_0x405b4f(0x330),0x0),_(this,_0x405b4f(0x327),void 0x0),_(this,_0x405b4f(0x290),void 0x0);}[_0x2b4704(0x2cd)](_0x5aa07b){const _0x23a53f=_0x2b4704;this[_0x23a53f(0x2c6)]();let _0xa58c52=this[_0x23a53f(0x3de)][_0x23a53f(0x2b6)](N,this['unitID'],this['type'],this[_0x23a53f(0x3a8)],[_0x5aa07b],this[_0x23a53f(0x123)],this['_resendTimer']);return _0xa58c52['_updateLocalCache'](),_0xa58c52;}[_0x2b4704(0x3b7)](_0x48b15e){const _0x2224d5=_0x2b4704;if(this['_checkMissing'](_0x48b15e))return this['_clearScheduledTask'](),this[_0x2224d5(0x3de)][_0x2224d5(0x2b6)](I,this['unitID'],this[_0x2224d5(0x15c)],this[_0x2224d5(0x3a8)],[],null,[_0x48b15e],this[_0x2224d5(0x123)]);try{let _0x41c237=this[_0x2224d5(0x191)][_0x2224d5(0x256)]([_0x48b15e],[this['_awaitingChangeset']],!0x1);if((0x0,t[_0x2224d5(0x17f)])(_0x41c237)){let {c1Prime:_0x5943c9,c2Prime:_0x4b342e}=_0x41c237;this[_0x2224d5(0x2d0)](_0x5943c9[0x0]),_0x4b342e[0x0][_0x2224d5(0x1f0)]=this['_getCurrentRevision'](),this[_0x2224d5(0x2c6)]();let _0x50cccf=this['_injector'][_0x2224d5(0x2b6)](D,this['unitID'],this[_0x2224d5(0x15c)],_0x4b342e[0x0],this[_0x2224d5(0x123)]);return _0x50cccf[_0x2224d5(0x2a8)](),_0x50cccf;}throw _0x41c237['error'];}catch(_0x40e859){return this[_0x2224d5(0x35b)][_0x2224d5(0x2b8)](_0x40e859),this[_0x2224d5(0x34f)](!0x1);}}['onRemoteAck'](_0x5d9911){const _0x17c69e=_0x2b4704;this[_0x17c69e(0x2c6)]();let _0x2fec99=this['_revisionService'][_0x17c69e(0x392)](this[_0x17c69e(0x37b)]);if(_0x5d9911['revision']<=_0x2fec99)return this;if(this['_checkMissing'](_0x5d9911))return this['_injector']['createInstance'](I,this['unitID'],this[_0x17c69e(0x15c)],this[_0x17c69e(0x3a8)],[],_0x5d9911[_0x17c69e(0x197)],[],this[_0x17c69e(0x123)]);this['_incrementRevisionNumber']();let _0x4feff8=this[_0x17c69e(0x3de)][_0x17c69e(0x2b6)](A,this[_0x17c69e(0x37b)],this[_0x17c69e(0x15c)],this[_0x17c69e(0x123)]);return _0x4feff8[_0x17c69e(0x2a8)](),_0x4feff8;}[_0x2b4704(0x311)](_0x5ef835){const _0x44bcf3=_0x2b4704;return this[_0x44bcf3(0x34f)](!!(_0x5ef835!=null&&_0x5ef835[_0x44bcf3(0x208)]));}['onRemoteRetry'](_0x288d9f){const _0x455c7e=_0x2b4704;return this['_maxTotalRetryTimeout']>je?this['toggleOffline']():(this[_0x455c7e(0x327)]=Oe(this[_0x455c7e(0x253)],{'timeout':this[_0x455c7e(0x253)],'reqId':_0x288d9f[_0x455c7e(0x105)]}),this[_0x455c7e(0x290)]=this['_resendTimer'][_0x455c7e(0x169)](({reqId:_0x33b97a,timeout:_0x1029c3})=>{const _0x51c389=_0x455c7e;this[_0x51c389(0x389)](_0x33b97a,_0x1029c3);}),this);}[_0x2b4704(0x282)](){const _0x1e93e5=_0x2b4704;return this[_0x1e93e5(0x2c6)](),this['_injector'][_0x1e93e5(0x2b6)](F,this[_0x1e93e5(0x37b)],this['type'],this['_awaitingChangeset'],[],this['_handler']);}[_0x2b4704(0x36e)](){return this;}[_0x2b4704(0x21a)](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}['_onConflict'](_0x14a77c){const _0x1d4d08=_0x2b4704;return this[_0x1d4d08(0x2c6)](),this[_0x1d4d08(0x3de)][_0x1d4d08(0x2b6)](P,this[_0x1d4d08(0x37b)],this[_0x1d4d08(0x15c)],this['_awaitingChangeset'],[],this[_0x1d4d08(0x123)],_0x14a77c);}[_0x2b4704(0x389)](_0x1ac4cf,_0x23e6c4){const _0x31ce72=_0x2b4704;var _0x4ad7ee;_0x1ac4cf===((_0x4ad7ee=this['_awaitingChangeset'])==null?void 0x0:_0x4ad7ee[_0x31ce72(0x105)])&&(this['resend'](),this[_0x31ce72(0x253)]=_0x23e6c4===0x0?0x3e8:Math['min'](_0x23e6c4*0x2,Ae),this[_0x31ce72(0x330)]+=this[_0x31ce72(0x253)]);}[_0x2b4704(0x2c6)](){const _0x2c9254=_0x2b4704;var _0x29f06c;(_0x29f06c=this[_0x2c9254(0x290)])==null||_0x29f06c[_0x2c9254(0x269)](),this[_0x2c9254(0x253)]=0x0,this[_0x2c9254(0x330)]=0x0;}};M=D=b([y(0x4,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x5,(0x0,n['Inject'])(t[_0x2b4704(0x136)])),y(0x6,n[_0x2b4704(0x378)]),y(0x7,n[_0x2b4704(0x2ac)]),y(0x8,t[_0x2b4704(0x109)]),y(0x9,n[_0x2b4704(0x100)]),y(0xa,(0x0,n['Optional'])(C))],M);let N=O=class extends k{constructor(_0x41f8ea,_0x1f409d,_0x49d3d3,_0x137e13,_0x593e08,_0x303743,_0x1db77e,_0x512a,_0x303b94,_0x4bf665,_0x317173,_0x5cac6,_0x37d0b4){const _0x37848a=_0x2b4704;super(_0x41f8ea,_0x1f409d,_0x49d3d3,_0x137e13,_0x593e08,_0x303b94,_0x5cac6,_0x512a,_0x37d0b4),this[_0x37848a(0x3de)]=_0x1db77e,this[_0x37848a(0x35b)]=_0x4bf665,this[_0x37848a(0x191)]=_0x317173,this[_0x37848a(0x3c0)]=_0x37d0b4,_(this,_0x37848a(0x1a5),_0x37848a(0x263)),_(this,'_resendTimeout',0x0),_(this,_0x37848a(0x330),0x0),_(this,_0x37848a(0x327),void 0x0),_(this,_0x37848a(0x290),void 0x0),_0x303743&&(this[_0x37848a(0x327)]=_0x303743,this[_0x37848a(0x290)]=this['_resendTimer'][_0x37848a(0x169)](({reqId:_0x51b6a6,timeout:_0x3a5fa6})=>{const _0x225dce=_0x37848a;this[_0x225dce(0x389)](_0x51b6a6,_0x3a5fa6);}));}['appendMutation'](_0x4cccca){const _0xcc584a=_0x2b4704;return this[_0xcc584a(0x377)]['push'](_0x4cccca),this;}[_0x2b4704(0x3b7)](_0x1b29e0){const _0x1204cd=_0x2b4704;if(this[_0x1204cd(0x27b)](_0x1b29e0))return this['_clearScheduledTask'](),this[_0x1204cd(0x3de)][_0x1204cd(0x2b6)](I,this[_0x1204cd(0x37b)],this[_0x1204cd(0x15c)],this[_0x1204cd(0x3a8)],this['_pendingMutations'],null,[_0x1b29e0],this['_handler']);try{let _0x1a4c06=this['_transformService'][_0x1204cd(0x256)]([_0x1b29e0],[this[_0x1204cd(0x3a8)]],!0x1);if((0x0,t[_0x1204cd(0x17f)])(_0x1a4c06)){let {c1Prime:_0x229e92,c2Prime:_0x137b32}=_0x1a4c06,_0x122e90=this[_0x1204cd(0x191)][_0x1204cd(0x2c5)](_0x229e92[0x0],this[_0x1204cd(0x377)]);if((0x0,t[_0x1204cd(0x3e0)])(_0x122e90)){let {c1Prime:_0x1287bf,m2Prime:_0x16cfcd}=_0x122e90;return this['_executeRemoteChangeset'](_0x1287bf),_0x137b32[0x0][_0x1204cd(0x1f0)]=this[_0x1204cd(0x1f1)](),this['_clearScheduledTask'](),this[_0x1204cd(0x3de)][_0x1204cd(0x2b6)](O,this[_0x1204cd(0x37b)],this[_0x1204cd(0x15c)],_0x137b32[0x0],_0x16cfcd,this['_handler'],void 0x0);}throw _0x122e90[_0x1204cd(0x2b8)];}throw _0x1a4c06[_0x1204cd(0x2b8)];}catch(_0x172597){return this[_0x1204cd(0x35b)][_0x1204cd(0x2b8)](_0x172597),this[_0x1204cd(0x34f)](!0x1);}}[_0x2b4704(0x26e)](_0x2b4216){const _0x2d894d=_0x2b4704;this['_clearScheduledTask']();let _0x4d3e83=this[_0x2d894d(0x1f1)]();if(_0x2b4216[_0x2d894d(0x197)]<=_0x4d3e83)return this;if(this[_0x2d894d(0x27b)](_0x2b4216))return this[_0x2d894d(0x3de)][_0x2d894d(0x2b6)](I,this['unitID'],this[_0x2d894d(0x15c)],this['_awaitingChangeset'],this['_pendingMutations'],_0x2b4216[_0x2d894d(0x197)],[],this[_0x2d894d(0x123)]);this['_incrementRevisionNumber']();let _0x4b9094=this[_0x2d894d(0x3de)][_0x2d894d(0x2b6)](j,this[_0x2d894d(0x37b)],this[_0x2d894d(0x15c)],this['_pendingMutations'],this['_handler']);return _0x4b9094[_0x2d894d(0x16f)](),_0x4b9094[_0x2d894d(0x2a8)](),_0x4b9094;}[_0x2b4704(0x311)](_0x5d8816){const _0x186928=_0x2b4704;return this['_onConflict'](!!(_0x5d8816!=null&&_0x5d8816[_0x186928(0x208)]));}[_0x2b4704(0x165)](_0x38135d){const _0x3b1a5d=_0x2b4704;return this[_0x3b1a5d(0x330)]>je?this[_0x3b1a5d(0x282)]():(this[_0x3b1a5d(0x327)]=Oe(this[_0x3b1a5d(0x253)],{'timeout':this[_0x3b1a5d(0x253)],'reqId':_0x38135d[_0x3b1a5d(0x105)]}),this[_0x3b1a5d(0x290)]=this[_0x3b1a5d(0x327)][_0x3b1a5d(0x169)](({reqId:_0x2ff8cc,timeout:_0x106d1f})=>{this['_resendWithTimeout'](_0x2ff8cc,_0x106d1f);}),this);}['toggleOffline'](){const _0x158bd8=_0x2b4704;return this[_0x158bd8(0x2c6)](),this['_injector'][_0x158bd8(0x2b6)](F,this[_0x158bd8(0x37b)],this[_0x158bd8(0x15c)],this['_awaitingChangeset'],this[_0x158bd8(0x377)],this[_0x158bd8(0x123)]);}['toggleOnline'](){return this;}[_0x2b4704(0x21a)](){const _0x48aaaf=_0x2b4704;this['_handler'][_0x48aaaf(0xf3)](this[_0x48aaaf(0x3a8)]);}[_0x2b4704(0x34f)](_0x3ce97){const _0x1f6cc8=_0x2b4704;return this['_clearScheduledTask'](),this[_0x1f6cc8(0x3de)]['createInstance'](P,this[_0x1f6cc8(0x37b)],this['type'],null,this[_0x1f6cc8(0x377)],this['_handler'],_0x3ce97);}[_0x2b4704(0x389)](_0x257696,_0x552c3e){const _0x53cc44=_0x2b4704;var _0x1f8b4b;_0x257696===((_0x1f8b4b=this[_0x53cc44(0x3a8)])==null?void 0x0:_0x1f8b4b[_0x53cc44(0x105)])&&(this[_0x53cc44(0x21a)](),this[_0x53cc44(0x253)]=_0x552c3e===0x0?0x3e8:Math[_0x53cc44(0x1fa)](_0x552c3e*0x2,Ae),this['_maxTotalRetryTimeout']+=this[_0x53cc44(0x253)]);}[_0x2b4704(0x2c6)](){const _0x33390c=_0x2b4704;var _0x4a64cf;(_0x4a64cf=this[_0x33390c(0x290)])==null||_0x4a64cf[_0x33390c(0x269)](),this['_resendTimeout']=0x0,this[_0x33390c(0x330)]=0x0;}};N=O=b([y(0x6,(0x0,n['Inject'])(n[_0x2b4704(0x39f)])),y(0x7,(0x0,n[_0x2b4704(0x1ce)])(t['RevisionService'])),y(0x8,n[_0x2b4704(0x378)]),y(0x9,n['ILogService']),y(0xa,t[_0x2b4704(0x109)]),y(0xb,n['IUndoRedoService']),y(0xc,(0x0,n['Optional'])(C))],N);let P=class extends k{constructor(_0xdec121,_0x4041cf,_0x5b2b1c,_0x334705,_0x4abd2a,_0x356856=!0x1,_0x4f3585,_0x15d475,_0x17d35e,_0x1627ab,_0x21d5bc,_0x2dec9b,_0x501a54){const _0x425cf6=_0x2b4704;super(_0xdec121,_0x4041cf,_0x5b2b1c,_0x334705,_0x4abd2a,_0x15d475,_0x17d35e,_0x1627ab,_0x501a54),this[_0x425cf6(0x210)]=_0x356856,this[_0x425cf6(0x2d9)]=_0x4f3585,this['_localeService']=_0x21d5bc,this['_collaborationUIEventService']=_0x2dec9b,this[_0x425cf6(0x3c0)]=_0x501a54,_(this,_0x425cf6(0x1a5),_0x425cf6(0x1b2)),this[_0x425cf6(0x220)](),this[_0x425cf6(0x248)](),this[_0x425cf6(0x3c6)]();}[_0x2b4704(0x2cd)](){return this;}[_0x2b4704(0x3b7)](){return this;}[_0x2b4704(0x26e)](){return this;}['onRemoteRej'](){return this;}[_0x2b4704(0x165)](){return this;}[_0x2b4704(0x282)](){return this;}[_0x2b4704(0x36e)](){return this;}['resend'](){const _0x241a8d=_0x2b4704;throw Error(_0x241a8d(0x2e9));}[_0x2b4704(0x248)](){const _0xcd69c8=_0x2b4704;var _0x9c03b0,_0x430b9f,_0x366d18;(_0x9c03b0=this[_0xcd69c8(0x10b)])==null||(_0x430b9f=_0x9c03b0[_0xcd69c8(0x21b)])==null||(_0x430b9f=_0x430b9f['call'](_0x9c03b0,this['unitID'],_0xcd69c8(0x1b2)))==null||_0x430b9f[_0xcd69c8(0x313)](()=>void 0x0),(_0x366d18=this[_0xcd69c8(0x10b)])==null||_0x366d18['updateOfflineData'](this[_0xcd69c8(0x37b)],this[_0xcd69c8(0x15c)],null,[]);}[_0x2b4704(0x220)](){const _0x710dc7=_0x2b4704;this[_0x710dc7(0x210)]?this[_0x710dc7(0x38e)][_0x710dc7(0x2b4)]({'id':_0x710dc7(0x38b)}):this[_0x710dc7(0x38e)][_0x710dc7(0x2b4)]({'id':_0x710dc7(0x139)});}[_0x2b4704(0x3c6)](){const _0xaabb3f=_0x2b4704;this['_permissionService']['updatePermissionPoint'](new i[(_0xaabb3f(0x117))](this[_0xaabb3f(0x37b)])['id'],!0x1);}};P=b([y(0x6,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x376)])),y(0x7,n['ICommandService']),y(0x8,n[_0x2b4704(0x100)]),y(0x9,(0x0,n['Inject'])(t[_0x2b4704(0x136)])),y(0xa,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x1a3)])),y(0xb,(0x0,n[_0x2b4704(0x1ce)])(v)),y(0xc,(0x0,n['Optional'])(C))],P);let F=class extends k{constructor(_0x25ad66,_0x59281d,_0x4e9b33,_0x457fb5,_0x5ad776,_0x2e289c,_0xb0d4c1,_0x5dae20,_0x18d133,_0xcda069){const _0x5b4426=_0x2b4704;super(_0x25ad66,_0x59281d,_0x4e9b33,_0x457fb5,_0x5ad776,_0x5dae20,_0x18d133,_0xb0d4c1,_0xcda069),this[_0x5b4426(0x3de)]=_0x2e289c,_(this,_0x5b4426(0x1a5),_0x5b4426(0x11e));}['appendMutation'](_0x4976d7){const _0x862b79=_0x2b4704;return this[_0x862b79(0x377)][_0x862b79(0x384)](_0x4976d7),this[_0x862b79(0x2a8)](),this;}[_0x2b4704(0x3b7)](_0x4e5a3c){const _0xbf71d5=_0x2b4704;throw Error(_0xbf71d5(0x225));}[_0x2b4704(0x26e)](){const _0x4cd502=_0x2b4704;throw Error(_0x4cd502(0x34d));}['onRemoteRej'](){const _0x5d0dd3=_0x2b4704;throw Error(_0x5d0dd3(0x1fc));}['onRemoteRetry'](){return this;}[_0x2b4704(0x282)](){return this;}[_0x2b4704(0x36e)](){const _0x4bfa3f=_0x2b4704;let {_injector:_0x275e01,_pendingMutations:_0x51f078,_awaitingChangeset:_0x279605,unitID:_0x5169fe,_handler:_0x4fb017,type:_0x43352f}=this,_0x329b6a=Me(_0x275e01,_0x5169fe,_0x43352f,_0x279605,_0x51f078,_0x4fb017);return _0x329b6a instanceof j?_0x329b6a[_0x4bfa3f(0x16f)]():(_0x329b6a instanceof N||_0x329b6a instanceof M)&&_0x329b6a[_0x4bfa3f(0x21a)](),_0x329b6a;}['resend'](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};F=b([y(0x5,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x6,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x136)])),y(0x7,n['ICommandService']),y(0x8,n['IUndoRedoService']),y(0x9,(0x0,n[_0x2b4704(0x1d7)])(C))],F);let I=class extends k{constructor(_0x5be1fc,_0x5cb477,_0x45e0d6,_0x11554e,_0x815771,_0x1ab126,_0x105220,_0x1bfe09,_0x44f552,_0x3944d5,_0x42a32f,_0x427ab8,_0xba729e,_0xab54cd){const _0x316031=_0x2b4704;super(_0x5be1fc,_0x5cb477,_0x45e0d6,_0x11554e,_0x105220,_0x42a32f,_0x427ab8,_0x44f552,_0xab54cd),this[_0x316031(0x3ba)]=_0x815771,this[_0x316031(0x3d8)]=_0x1ab126,this[_0x316031(0x3de)]=_0x1bfe09,this[_0x316031(0x35b)]=_0x3944d5,this[_0x316031(0x191)]=_0xba729e,this[_0x316031(0x3c0)]=_0xab54cd,_(this,_0x316031(0x1a5),_0x316031(0x192));}['onMissedChangesetFetched'](_0x40ec65){const _0x1aef11=_0x2b4704;try{if(this[_0x1aef11(0x15a)](_0x40ec65)['missingChangesets'])throw Error(_0x1aef11(0x284));if(this[_0x1aef11(0x15a)]([...this[_0x1aef11(0x3d8)]]['sort']((_0x50b149,_0xfc6b20)=>_0x50b149[_0x1aef11(0x197)]-_0xfc6b20[_0x1aef11(0x197)]))['missingChangesets'])return this[_0x1aef11(0x3d8)]=[],this['_updateLocalCache'](),this[_0x1aef11(0x123)]['onMissingChangesets']({'from':this[_0x1aef11(0x1f1)](),'to':0x0}),this;let _0x2a7c7e=this[_0x1aef11(0x3a8)],_0x275784=this[_0x1aef11(0x377)],_0x3bca95;if(_0x2a7c7e&&_0x275784[_0x1aef11(0x2f8)]!==0x0)_0x3bca95=this['_injector'][_0x1aef11(0x2b6)](N,this[_0x1aef11(0x37b)],this[_0x1aef11(0x15c)],_0x2a7c7e,_0x275784,this['_handler'],void 0x0);else{if(_0x2a7c7e&&_0x275784[_0x1aef11(0x2f8)]===0x0)_0x2a7c7e[_0x1aef11(0x1f0)]=this['_getCurrentRevision'](),_0x3bca95=this[_0x1aef11(0x3de)]['createInstance'](M,this[_0x1aef11(0x37b)],this['type'],_0x2a7c7e,this['_handler']);else{if(_0x275784[_0x1aef11(0x2f8)]!==0x0){let _0x299286=this[_0x1aef11(0x3de)][_0x1aef11(0x2b6)](j,this[_0x1aef11(0x37b)],this[_0x1aef11(0x15c)],_0x275784,this[_0x1aef11(0x123)]);_0x299286[_0x1aef11(0x16f)](),_0x3bca95=_0x299286;}else _0x3bca95=this['_injector'][_0x1aef11(0x2b6)](A,this[_0x1aef11(0x37b)],this[_0x1aef11(0x15c)],this[_0x1aef11(0x123)]);}}return _0x3bca95[_0x1aef11(0x2a8)](),_0x3bca95;}catch(_0x6dabe3){return this['_logService'][_0x1aef11(0x2b8)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x6dabe3),this[_0x1aef11(0x3de)][_0x1aef11(0x2b6)](P,this[_0x1aef11(0x37b)],this['type'],this[_0x1aef11(0x3a8)],this['_pendingMutations'],this[_0x1aef11(0x123)],!0x1);}}[_0x2b4704(0x15a)](_0x245ebf){const _0x253896=_0x2b4704;this['_acknowledgeAwaitingIfReady']();for(let _0x3fd888=0x0;_0x3fd888<_0x245ebf[_0x253896(0x2f8)];_0x3fd888++){let _0x257a44=_0x245ebf[_0x3fd888],_0x4820d7=this[_0x253896(0x1f1)]();if(!(_0x257a44['revision']<=_0x4820d7)){if(_0x257a44[_0x253896(0x197)]>_0x4820d7+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x257a44)){this[_0x253896(0x29b)]();continue;}this[_0x253896(0x148)](_0x257a44),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x2b4704(0x148)](_0x12c0c3){const _0x2c5700=_0x2b4704;let _0x22a0c3=_0x12c0c3,_0x2bf1d0=this[_0x2c5700(0x3a8)];if(_0x2bf1d0){let _0x368970=this[_0x2c5700(0x191)][_0x2c5700(0x256)]([_0x12c0c3],[_0x2bf1d0],!0x1);if(!(0x0,t[_0x2c5700(0x17f)])(_0x368970))throw _0x368970[_0x2c5700(0x2b8)];_0x22a0c3=_0x368970[_0x2c5700(0x2c3)][0x0],_0x2bf1d0=_0x368970[_0x2c5700(0x286)][0x0];}let _0x1c7a95=this[_0x2c5700(0x377)];if(_0x1c7a95[_0x2c5700(0x2f8)]){let _0x1c871c=this['_transformService']['transformMutationsWithChangeset'](_0x22a0c3,_0x1c7a95);if(!(0x0,t['isTransformMutationsWithChangesetSuccess'])(_0x1c871c))throw _0x1c871c['error'];_0x22a0c3=_0x1c871c[_0x2c5700(0x2c3)],_0x1c7a95=_0x1c871c[_0x2c5700(0x293)];}this[_0x2c5700(0x2d0)](_0x22a0c3),_0x2bf1d0&&(_0x2bf1d0[_0x2c5700(0x1f0)]=this[_0x2c5700(0x1f1)]()),this['_awaitingChangeset']=_0x2bf1d0,this[_0x2c5700(0x377)]=_0x1c7a95;}[_0x2b4704(0x1b5)](){const _0x2d0f0a=_0x2b4704;if(!this[_0x2d0f0a(0x3a8)]||this[_0x2d0f0a(0x3ba)]==null)return;let _0x34e6f3=this[_0x2d0f0a(0x1f1)]();if(this[_0x2d0f0a(0x3ba)]<=_0x34e6f3)throw Error(_0x2d0f0a(0x308)+this[_0x2d0f0a(0x3ba)]+'.');this['_acknowledgedAwaitingRevision']===_0x34e6f3+0x1&&this[_0x2d0f0a(0x29b)]();}[_0x2b4704(0x29b)](){const _0x52cbe8=_0x2b4704;this[_0x52cbe8(0xfd)](),this[_0x52cbe8(0x3a8)]=null,this[_0x52cbe8(0x3ba)]=null;}[_0x2b4704(0x1e2)](_0x13e180){const _0x339d40=_0x2b4704;let _0x3f6dce=this[_0x339d40(0x3a8)];return!_0x3f6dce||!_0x3f6dce[_0x339d40(0x1a2)]||_0x3f6dce['reqId']===null||_0x3f6dce[_0x339d40(0x105)]===void 0x0?!0x1:_0x13e180[_0x339d40(0x37b)]===_0x3f6dce[_0x339d40(0x37b)]&&_0x13e180[_0x339d40(0x1a2)]===_0x3f6dce['sid']&&_0x13e180[_0x339d40(0x105)]===_0x3f6dce[_0x339d40(0x105)];}[_0x2b4704(0x21a)](){const _0x152240=_0x2b4704;throw Error(_0x152240(0x196));}[_0x2b4704(0x2cd)](_0x148648){const _0x4b915c=_0x2b4704;return this[_0x4b915c(0x377)][_0x4b915c(0x384)](_0x148648),this;}[_0x2b4704(0x3b7)](_0x53ee28){const _0xb6bd99=_0x2b4704;return this[_0xb6bd99(0x3d8)][_0xb6bd99(0x384)](_0x53ee28),this;}[_0x2b4704(0x26e)](_0x269747){const _0x44aa29=_0x2b4704;if(this[_0x44aa29(0x3a8)]){let _0x5c20ee=this['_getCurrentRevision']();return _0x269747[_0x44aa29(0x197)]<=_0x5c20ee||(_0x5c20ee+0x1===_0x269747['revision']?(this[_0x44aa29(0xfd)](),this[_0x44aa29(0x3a8)]=null,this[_0x44aa29(0x3ba)]=null):this[_0x44aa29(0x3ba)]=_0x269747[_0x44aa29(0x197)]),this;}if(_0x269747[_0x44aa29(0x197)]<=this[_0x44aa29(0x1f1)]())return this;throw Error(_0x44aa29(0x278));}['onRemoteRej'](_0x500a34){const _0x4a74ad=_0x2b4704;return this['_onConflict'](!!(_0x500a34!=null&&_0x500a34[_0x4a74ad(0x208)]));}[_0x2b4704(0x165)](){return this;}[_0x2b4704(0x282)](){const _0x3ba079=_0x2b4704;return this[_0x3ba079(0x3de)][_0x3ba079(0x2b6)](F,this['unitID'],this['type'],this[_0x3ba079(0x3a8)],this[_0x3ba079(0x377)],this[_0x3ba079(0x123)]);}[_0x2b4704(0x36e)](){return this;}['_onConflict'](_0x50a722){const _0x4165df=_0x2b4704;return this['_injector']['createInstance'](P,this[_0x4165df(0x37b)],this[_0x4165df(0x15c)],this[_0x4165df(0x3a8)],this['_pendingMutations'],this[_0x4165df(0x123)],_0x50a722);}};I=b([y(0x7,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x8,(0x0,n[_0x2b4704(0x1ce)])(t['RevisionService'])),y(0x9,n[_0x2b4704(0x2ac)]),y(0xa,n[_0x2b4704(0x378)]),y(0xb,n[_0x2b4704(0x100)]),y(0xc,t[_0x2b4704(0x109)]),y(0xd,(0x0,n[_0x2b4704(0x1d7)])(C))],I);function Me(_0x10b769,_0x146041,_0x1f4f90,_0x8017fa,_0x397c82,_0x465506){const _0x184a99=_0x2b4704;return _0x8017fa&&_0x397c82[_0x184a99(0x2f8)]?_0x10b769[_0x184a99(0x2b6)](N,_0x146041,_0x1f4f90,_0x8017fa,_0x397c82,_0x465506,void 0x0):_0x8017fa?_0x10b769[_0x184a99(0x2b6)](M,_0x146041,_0x1f4f90,_0x8017fa,_0x465506):_0x397c82['length']?_0x10b769[_0x184a99(0x2b6)](j,_0x146041,_0x1f4f90,_0x397c82,_0x465506):_0x10b769[_0x184a99(0x2b6)](A,_0x146041,_0x1f4f90,_0x465506);}let L=class extends n['RxDisposable']{get[_0x2b4704(0x11d)](){const _0x1284c9=_0x2b4704;return this[_0x1284c9(0x273)];}constructor(_0x57c2fb,_0x13e470,_0x229cde,_0x249d0e,_0x1b7f58,_0x53a052,_0x23be17,_0x2bf871,_0x91f067,_0x6057ea,_0x47cec3,_0x45d1dc,_0x5908e3,_0x651a09){const _0xfdb06e=_0x2b4704;super(),this[_0xfdb06e(0x37b)]=_0x57c2fb,this[_0xfdb06e(0x3aa)]=_0x13e470,this[_0xfdb06e(0x343)]=_0x229cde,this[_0xfdb06e(0x3de)]=_0x249d0e,this[_0xfdb06e(0x25e)]=_0x1b7f58,this[_0xfdb06e(0x294)]=_0x53a052,this['_revisionService']=_0x23be17,this['_eventService']=_0x2bf871,this[_0xfdb06e(0x2fb)]=_0x91f067,this[_0xfdb06e(0x35b)]=_0x6057ea,this[_0xfdb06e(0x340)]=_0x47cec3,this[_0xfdb06e(0x2d9)]=_0x45d1dc,this[_0xfdb06e(0x2cc)]=_0x5908e3,this[_0xfdb06e(0x10b)]=_0x651a09,_(this,_0xfdb06e(0x238),new a[(_0xfdb06e(0x367))](null)),_(this,'state$',this[_0xfdb06e(0x238)]['asObservable']()),_(this,'_state',void 0x0),_(this,_0xfdb06e(0x1c1),!0x1),_(this,_0xfdb06e(0x265),''),_(this,_0xfdb06e(0x36c),0x0),_(this,_0xfdb06e(0x199),this[_0xfdb06e(0x194)]['pipe']((0x0,a[_0xfdb06e(0x2c1)])(_0x2956dd=>_0x2956dd?_0x2956dd[_0xfdb06e(0x1a5)]:_0xfdb06e(0x11e)),(0x0,a[_0xfdb06e(0x23a)])({'bufferSize':0x1,'refCount':!0x0}))),_(this,_0xfdb06e(0x2b0),!0x1),_(this,'_remoteChangesetQueue',[]);}async['init'](){const _0x1bec92=_0x2b4704;if(this[_0x1bec92(0x11d)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x1bec92(0x28a)]();}[_0x2b4704(0x13b)](){const _0x3aee61=_0x2b4704;return this[_0x3aee61(0x1c1)]=!0x0,(0x0,n[_0x3aee61(0x2bb)])(()=>{const _0x593326=_0x3aee61;this[_0x593326(0x1c1)]=!0x1,this[_0x593326(0x336)]();});}[_0x2b4704(0x12a)](_0x38646a){const _0x4e8eba=_0x2b4704;this[_0x4e8eba(0x237)](_0x38646a);}['_updateState'](_0x28e147){const _0xde0ff4=_0x2b4704;this[_0xde0ff4(0x273)]=_0x28e147,this['_state$'][_0xde0ff4(0x383)](_0x28e147);}async[_0x2b4704(0x28a)](){const _0x49c315=_0x2b4704;if(this[_0x49c315(0x16a)](await this[_0x49c315(0x251)]()),this[_0x49c315(0x2cc)]){var _0x51c859;(_0x51c859=this[_0x49c315(0x2cc)])==null||_0x51c859[_0x49c315(0x385)](this['unitID']),this[_0x49c315(0x115)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x49c315(0x37b)])[_0x49c315(0x169)](_0x556946=>{const _0x5a2420=_0x49c315;this[_0x5a2420(0x35b)][_0x5a2420(0x216)](_0x5a2420(0x2b1),_0x5a2420(0x23e),_0x556946),_0x556946===0x1?(this[_0x5a2420(0x3c9)][_0x5a2420(0x2b4)]({'id':_0x5a2420(0x1ad)}),this[_0x5a2420(0x2d9)][_0x5a2420(0x1be)](new i[(_0x5a2420(0x117))](this[_0x5a2420(0x37b)])['id'],!0x1),this[_0x5a2420(0x2d9)][_0x5a2420(0x10d)](!0x1)):(this[_0x5a2420(0x2d9)][_0x5a2420(0x1be)](new i[(_0x5a2420(0x117))](this[_0x5a2420(0x37b)])['id'],!0x0),this[_0x5a2420(0x2d9)][_0x5a2420(0x10d)](!0x0));}));}let _0x2930e8=!0x1;return this[_0x49c315(0x115)](this['session']['sessionStatus$'][_0x49c315(0x169)](_0xd8abad=>{const _0x5e0b35=_0x49c315;_0xd8abad===0x3?this[_0x5e0b35(0x325)](_0x2930e8):_0xd8abad===0x2&&(_0x2930e8=!0x0,this[_0x5e0b35(0x23f)]());})),this[_0x49c315(0x115)](this[_0x49c315(0x3aa)]['event$'][_0x49c315(0x169)](_0x172417=>{const _0x3e3606=_0x49c315;try{switch(_0x172417[_0x3e3606(0x1da)]){case t[_0x3e3606(0x30b)][_0x3e3606(0x2a5)]:this['_onRemoteChangeset']((0x0,t[_0x3e3606(0x3d2)])(_0x172417[_0x3e3606(0x27c)]));break;case t[_0x3e3606(0x30b)][_0x3e3606(0x221)]:this[_0x3e3606(0x1ef)](_0x172417['data']);break;case t[_0x3e3606(0x30b)][_0x3e3606(0x3a1)]:this[_0x3e3606(0x3d3)]();break;case t[_0x3e3606(0x30b)][_0x3e3606(0x35d)]:this[_0x3e3606(0x2fe)](_0x172417[_0x3e3606(0x27c)]);break;case t[_0x3e3606(0x30b)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x3e3606(0x297)](_0x172417[_0x3e3606(0x27c)][_0x3e3606(0x337)][_0x3e3606(0x2c1)](_0x425c1a=>(0x0,t[_0x3e3606(0x3d2)])(_0x425c1a)));break;case t[_0x3e3606(0x30b)][_0x3e3606(0x317)]:this[_0x3e3606(0x3d3)]({'isPermissionRej':!0x0});break;case t['CollaborationEvent']['UNISCRIPT_RUN']:break;}}catch(_0x48d137){throw console[_0x3e3606(0x2b8)](_0x3e3606(0x3db),_0x48d137),_0x48d137;}})),this[_0x49c315(0x273)];}[_0x2b4704(0x106)](){const _0x5e7eec=_0x2b4704;this[_0x5e7eec(0x2b0)]=!0x1;}[_0x2b4704(0x3b9)](){const _0x1642d4=_0x2b4704;if(this['_transitionLocked'])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x1642d4(0x2b0)]=!0x0;}['_onLocalMutation'](_0x4ffbb2){const _0x13c0d1=_0x2b4704;this[_0x13c0d1(0x3b9)](),this[_0x13c0d1(0x16a)](this[_0x13c0d1(0x273)][_0x13c0d1(0x2cd)](_0x4ffbb2)),this[_0x13c0d1(0x106)]();}[_0x2b4704(0x2c7)](_0x224122){const _0x4da2d0=_0x2b4704;if(!(_0x224122[_0x4da2d0(0x197)]<=this[_0x4da2d0(0x36f)][_0x4da2d0(0x392)](this[_0x4da2d0(0x37b)]))){if(this['_collaborationPaused']){this[_0x4da2d0(0x2ad)][_0x4da2d0(0x384)](_0x224122);return;}this[_0x4da2d0(0x193)](_0x224122);}}[_0x2b4704(0x336)](){const _0x4881ed=_0x2b4704;this[_0x4881ed(0x2ad)][_0x4881ed(0x24e)](_0x219c98=>this[_0x4881ed(0x193)](_0x219c98)),this[_0x4881ed(0x2ad)]=[];}[_0x2b4704(0x193)](_0x20e979){const _0x56b12b=_0x2b4704;let _0x4abedb=this[_0x56b12b(0x25e)]['interceptor'][_0x56b12b(0x2dc)](this[_0x56b12b(0x25e)]['interceptor']['getInterceptPoints']()[_0x56b12b(0x206)])(_0x20e979['mutations'],null)||_0x20e979[_0x56b12b(0x296)],_0x3f51b0={..._0x20e979,'mutations':_0x4abedb};this['_lockTransition'](),this[_0x56b12b(0x16a)](this[_0x56b12b(0x273)][_0x56b12b(0x3b7)](_0x3f51b0)),this['_unlockTransition']();}['_onRemoteACK'](_0x5bb25f){const _0x545bd6=_0x2b4704;this[_0x545bd6(0x3b9)](),this[_0x545bd6(0x16a)](this[_0x545bd6(0x273)][_0x545bd6(0x26e)](_0x5bb25f)),this['_unlockTransition']();}[_0x2b4704(0x3d3)](_0x4caeb5){const _0x52f4f2=_0x2b4704;this['_lockTransition'](),this[_0x52f4f2(0x16a)](this[_0x52f4f2(0x273)][_0x52f4f2(0x311)](_0x4caeb5)),this[_0x52f4f2(0x106)]();}[_0x2b4704(0x2fe)](_0x5e92da){const _0x5dee40=_0x2b4704;this[_0x5dee40(0x3b9)](),this[_0x5dee40(0x16a)](this[_0x5dee40(0x273)][_0x5dee40(0x165)](_0x5e92da)),this[_0x5dee40(0x106)]();}['_onFetchMissResult'](_0x198fc3){const _0x2f8165=_0x2b4704;if(!(this[_0x2f8165(0x273)]instanceof I))throw TypeError(_0x2f8165(0x127));let _0x55b4e3=_0x198fc3['map'](_0xff50d=>{const _0xbbfed1=_0x2f8165;let _0x24f392=this[_0xbbfed1(0x25e)]['interceptor'][_0xbbfed1(0x2dc)](this[_0xbbfed1(0x25e)][_0xbbfed1(0x185)][_0xbbfed1(0xff)]()[_0xbbfed1(0x206)])(_0xff50d[_0xbbfed1(0x296)],null)||_0xff50d[_0xbbfed1(0x296)];return{..._0xff50d,'mutations':_0x24f392};});this[_0x2f8165(0x3b9)](),this['_updateState'](this['_state'][_0x2f8165(0x27a)](_0x55b4e3)),this[_0x2f8165(0x106)]();}[_0x2b4704(0x23f)](){const _0x40c716=_0x2b4704;this[_0x40c716(0x3b9)](),this[_0x40c716(0x16a)](this[_0x40c716(0x273)][_0x40c716(0x282)]()),this['_unlockTransition']();}['_toggleOnline'](_0x51bd0c=!0x1){const _0x254469=_0x2b4704;this[_0x254469(0x3b9)](),this['_updateState'](this['_state'][_0x254469(0x36e)]()),this[_0x254469(0x106)]();let _0x4ccb0f=this[_0x254469(0x273)];_0x51bd0c&&_0x4ccb0f instanceof A&&(this[_0x254469(0x3b9)](),this[_0x254469(0x16a)](_0x4ccb0f[_0x254469(0x18c)]()),this['_unlockTransition']());}async[_0x2b4704(0x251)](){return new Promise(_0x4ae719=>{const _0x158e07=_0x2cb1;this[_0x158e07(0x3aa)][_0x158e07(0x3d5)][_0x158e07(0x200)]((0x0,a[_0x158e07(0x346)])(0x1))[_0x158e07(0x169)](async _0x6aafbc=>{const _0x431f5c=_0x158e07;_0x4ae719(await this[_0x431f5c(0x1bd)](_0x6aafbc===0x3));});});}[_0x2b4704(0x2a7)](){const _0x451938=_0x2b4704;let _0x4e368f=this[_0x451938(0x37b)];return{'onStateChange':(_0x59e595,_0x386f52)=>{const _0x1e2d57=_0x451938;if(_0x59e595!==this[_0x1e2d57(0x273)])throw Error(_0x1e2d57(0x37c)+_0x59e595[_0x1e2d57(0x1a5)]+_0x1e2d57(0x1b8)+_0x386f52[_0x1e2d57(0x1a5)]+_0x1e2d57(0x19c)+this['_state'][_0x1e2d57(0x1a5)]);this['_updateState'](_0x386f52);},'onSendChangeset':_0x1be67f=>{const _0x5d498c=_0x451938;_0x1be67f[_0x5d498c(0x1a2)]||(_0x1be67f[_0x5d498c(0x1a2)]=this[_0x5d498c(0x265)],_0x1be67f['reqId']=++this[_0x5d498c(0x36c)]);let _0xefdfc2={'eventID':t[_0x5d498c(0x30b)][_0x5d498c(0x30c)],'data':{'unitID':_0x1be67f['unitID'],'unitType':this['_type'],'changeset':_0x1be67f,'memberID':this[_0x5d498c(0x3aa)][_0x5d498c(0x145)]()}};this[_0x5d498c(0x3aa)][_0x5d498c(0x3d4)](_0xefdfc2,this[_0x5d498c(0x37b)]);},'onMissingChangesets':({from:_0x10c4bc,to:_0x50d3d5})=>{const _0x2734fc=_0x451938;this[_0x2734fc(0x35b)][_0x2734fc(0x216)]('[CollaborationEntity]',_0x2734fc(0x22f)+_0x10c4bc+_0x2734fc(0x146)+_0x50d3d5);let _0x1821c2={'eventID':t[_0x2734fc(0x30b)][_0x2734fc(0x270)],'data':{'unitID':_0x4e368f,'unitType':this[_0x2734fc(0x343)],'from':_0x10c4bc,'to':_0x50d3d5}};this[_0x2734fc(0x3aa)][_0x2734fc(0x3d4)](_0x1821c2,this['unitID']);}};}async[_0x2b4704(0x1bd)](_0x8ca5c){const _0x45b71a=_0x2b4704;var _0x31f602,_0x193aaf,_0x21e7b0;let _0x1520ab=await((_0x31f602=this[_0x45b71a(0x10b)])==null?void 0x0:_0x31f602['loadOfflineData'](this['unitID'])),_0x4a7635=(_0x193aaf=_0x1520ab==null?void 0x0:_0x1520ab[_0x45b71a(0x296)])==null?[]:_0x193aaf,_0x402472=(_0x21e7b0=_0x1520ab==null?void 0x0:_0x1520ab[_0x45b71a(0x3b1)])==null?null:_0x21e7b0,_0x2acbd1=!!(_0x402472!=null&&_0x402472[_0x45b71a(0x1a2)])&&!!(_0x402472!=null&&_0x402472[_0x45b71a(0x105)]);this[_0x45b71a(0x265)]=_0x2acbd1?_0x402472[_0x45b71a(0x1a2)]:(0x0,t['uuidv4'])(),this[_0x45b71a(0x36c)]=_0x2acbd1?_0x402472[_0x45b71a(0x105)]:0x0;let _0x1c5168=this[_0x45b71a(0x37b)];try{this[_0x45b71a(0x229)](_0x402472,_0x4a7635);}catch(_0x2d6dc5){this[_0x45b71a(0x35b)][_0x45b71a(0x2b8)](_0x2d6dc5);}let _0x43f52b=this['_createHandler']();if(_0x8ca5c){let _0x3dde90=Me(this['_injector'],_0x1c5168,this[_0x45b71a(0x343)],_0x402472,_0x4a7635,_0x43f52b);return _0x3dde90 instanceof j?_0x3dde90['_schedule']():(_0x3dde90 instanceof N||_0x3dde90 instanceof M)&&_0x3dde90[_0x45b71a(0x21a)](),_0x3dde90;}return this['_injector'][_0x45b71a(0x2b6)](F,_0x1c5168,this['_type'],_0x402472,_0x4a7635,_0x43f52b);}['_replayCachedMutations'](_0x599763,_0x12a6d4){const _0x587c40=_0x2b4704;var _0x1cc434,_0x625850;let _0xb95ace=this['_compressMutationService'][_0x587c40(0x185)][_0x587c40(0x2dc)](this['_compressMutationService'][_0x587c40(0x185)][_0x587c40(0xff)]()[_0x587c40(0x206)]);(_0x1cc434=_0xb95ace((_0x599763==null?void 0x0:_0x599763[_0x587c40(0x296)])||[],null))==null||_0x1cc434[_0x587c40(0x24e)](_0x44ad70=>this[_0x587c40(0x340)][_0x587c40(0x1f7)](_0x44ad70['id'],_0x44ad70[_0x587c40(0x3bf)])),(_0x625850=_0xb95ace(_0x12a6d4||[],null))==null||_0x625850[_0x587c40(0x24e)](_0x30ab3d=>this['_commandService'][_0x587c40(0x1f7)](_0x30ab3d['id'],_0x30ab3d['params']));}};L=b([y(0x3,(0x0,n[_0x2b4704(0x1ce)])(n['Injector'])),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x132)])),y(0x5,(0x0,n['Inject'])(n[_0x2b4704(0x1a3)])),y(0x6,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x136)])),y(0x7,(0x0,n['Inject'])(v)),y(0x8,n[_0x2b4704(0x3a9)]),y(0x9,n['ILogService']),y(0xa,n['ICommandService']),y(0xb,n[_0x2b4704(0x376)]),y(0xc,(0x0,n[_0x2b4704(0x1d7)])(T)),y(0xd,(0x0,n[_0x2b4704(0x1d7)])(C))],L);let R=class extends L{constructor(_0x4269ac,_0x10c420,_0x181133,_0x5ef837,_0x533351,_0x12052f,_0x5e7d3b,_0x3f38ae,_0x962f2,_0x59bcdc,_0x2ed187,_0x161dda,_0x355685,_0x27b556,_0x1ac13){const _0x13b41d=_0x2b4704;super(_0x4269ac,_0x181133,_0x10c420,_0x5ef837,_0x533351,_0x12052f,_0x5e7d3b,_0x3f38ae,_0x962f2,_0x59bcdc,_0x2ed187,_0x161dda,_0x27b556,_0x1ac13),this[_0x13b41d(0x37b)]=_0x4269ac,this[_0x13b41d(0x15c)]=_0x10c420,this['_docStateChangeManagerService']=_0x355685,_(this,_0x13b41d(0x334),null);}['addHandlerCallback'](_0x20c308){const _0x25ec9d=_0x2b4704;this[_0x25ec9d(0x334)]=_0x20c308;}[_0x2b4704(0x2cf)](){const _0x50379f=_0x2b4704;this[_0x50379f(0x334)]=null,super[_0x50379f(0x2cf)]();}['_createHandler'](){const _0x443ee6=_0x2b4704;let _0x5096e3=super['_createHandler']();return _0x5096e3['onTransformIME']=_0x512e41=>{const _0x11491d=_0x2cb1;var _0x2381d6,_0x6be215;return(_0x2381d6=this['_handlerCallback'])==null||(_0x6be215=_0x2381d6['onTransformIME'])==null?void 0x0:_0x6be215[_0x11491d(0x2ec)](_0x2381d6,_0x512e41);},_0x5096e3[_0x443ee6(0x120)]=_0xc58a87=>{const _0x1cf34f=_0x443ee6;var _0x470578,_0x53d222;return(_0x470578=this[_0x1cf34f(0x334)])==null||(_0x53d222=_0x470578[_0x1cf34f(0x120)])==null?void 0x0:_0x53d222[_0x1cf34f(0x2ec)](_0x470578,_0xc58a87);},_0x5096e3['onTransformSelections']=_0x59aeda=>{const _0x155215=_0x443ee6;var _0x3654cf,_0x43a58d;return(_0x3654cf=this['_handlerCallback'])==null||(_0x43a58d=_0x3654cf[_0x155215(0x2eb)])==null?void 0x0:_0x43a58d[_0x155215(0x2ec)](_0x3654cf,_0x59aeda);},_0x5096e3[_0x443ee6(0x2c8)]=_0x281898=>{const _0x42332e=_0x443ee6;var _0x197afd,_0x48526e;return(_0x197afd=this[_0x42332e(0x334)])==null||(_0x48526e=_0x197afd[_0x42332e(0x2c8)])==null?void 0x0:_0x48526e[_0x42332e(0x2ec)](_0x197afd,_0x281898);},_0x5096e3[_0x443ee6(0x319)]=_0x54e2d3=>{const _0x23862d=_0x443ee6;var _0xa55fe0,_0x151e11,_0xd1b663;return(_0xa55fe0=(_0x151e11=this[_0x23862d(0x334)])==null||(_0xd1b663=_0x151e11[_0x23862d(0x319)])==null?void 0x0:_0xd1b663[_0x23862d(0x2ec)](_0x151e11,_0x54e2d3))==null?_0x54e2d3:_0xa55fe0;},_0x5096e3[_0x443ee6(0x365)]=_0x4f4b5e=>{const _0x22db23=_0x443ee6;var _0x5e5c75,_0x50bc1f,_0x39b273;return(_0x5e5c75=(_0x50bc1f=this[_0x22db23(0x334)])==null||(_0x39b273=_0x50bc1f[_0x22db23(0x365)])==null?void 0x0:_0x39b273[_0x22db23(0x2ec)](_0x50bc1f,_0x4f4b5e))==null?_0x4f4b5e:_0x5e5c75;},_0x5096e3;}async[_0x2b4704(0x28a)](){const _0x550613=_0x2b4704;if(this[_0x550613(0x277)]==null)throw Error('[DocCollaborationEntity]:\x20DocStateChangeManagerService\x20is\x20required.\x20Register\x20UniverDocsPlugin\x20before\x20collaboration.');let _0xf1d51f=await super[_0x550613(0x28a)]();return this[_0x550613(0x115)](this[_0x550613(0x277)]['docStateChange$']['subscribe'](_0x4337a3=>{const _0x55a6c2=_0x550613;if(_0x4337a3==null||_0x4337a3['unitId']!==this[_0x55a6c2(0x37b)])return;let {commandId:_0x274547,redoState:_0x550ced,unitId:_0xd55a7b}=_0x4337a3,_0x232828={'id':_0x274547,'type':n[_0x55a6c2(0x2e2)][_0x55a6c2(0x3d9)],'params':{'unitId':_0xd55a7b,'actions':_0x550ced['actions'],'textRanges':null}};this[_0x55a6c2(0x237)](_0x232828);})),this[_0x550613(0x115)](this[_0x550613(0x340)][_0x550613(0x10a)]((_0x5a9c7a,_0x147c09)=>{const _0x87d46f=_0x550613;if(_0x5a9c7a[_0x87d46f(0x15c)]!==n[_0x87d46f(0x2e2)]['MUTATION']||_0x147c09!=null&&_0x147c09['fromCollab']||_0x147c09!=null&&_0x147c09[_0x87d46f(0xfa)]||_0x5a9c7a['id']===r[_0x87d46f(0x292)]['id'])return;let _0x3b6768=_0x5a9c7a['params'];if((_0x3b6768==null?void 0x0:_0x3b6768[_0x87d46f(0x19e)])!==this[_0x87d46f(0x37b)])return;let _0x556346=_0x5a9c7a,_0x2254fa=this[_0x87d46f(0x25e)]['interceptor'][_0x87d46f(0x2dc)](this[_0x87d46f(0x25e)]['interceptor'][_0x87d46f(0xff)]()['COMPRESS_MUTATION_SEND'])([_0x556346],this['_univerInstanceService'])||[_0x556346];this[_0x87d46f(0x237)](_0x2254fa[0x0]);})),_0xf1d51f;}};R=b([y(0x3,(0x0,n[_0x2b4704(0x1ce)])(n['Injector'])),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(t['CompressMutationService'])),y(0x5,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x1a3)])),y(0x6,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x136)])),y(0x7,(0x0,n[_0x2b4704(0x1ce)])(v)),y(0x8,n[_0x2b4704(0x3a9)]),y(0x9,n[_0x2b4704(0x2ac)]),y(0xa,n[_0x2b4704(0x378)]),y(0xb,n[_0x2b4704(0x376)]),y(0xc,(0x0,n[_0x2b4704(0x1d7)])(r[_0x2b4704(0x3dc)])),y(0xd,(0x0,n[_0x2b4704(0x1d7)])(T)),y(0xe,(0x0,n['Optional'])(C))],R);let Ne=class extends L{constructor(_0x5d5175,_0x542aac,_0x5360c9,_0x31826b,_0x28c62d,_0x544a31,_0x2f49b2,_0x14f36f,_0x46735b,_0x242734,_0x584bb5,_0x246e60,_0x48243a,_0x27fc51){const _0x416b8f=_0x2b4704;super(_0x5d5175,_0x5360c9,_0x542aac,_0x31826b,_0x28c62d,_0x544a31,_0x2f49b2,_0x14f36f,_0x46735b,_0x242734,_0x584bb5,_0x246e60,_0x48243a,_0x27fc51),this['unitID']=_0x5d5175,this[_0x416b8f(0x15c)]=_0x542aac;}async[_0x2b4704(0x28a)](){const _0x2730c1=_0x2b4704;let _0x551c8c=await super['_init']();return this['disposeWithMe'](this['_commandService'][_0x2730c1(0x10a)]((_0x329f03,_0x387633)=>{const _0x2709f8=_0x2730c1;if(_0x329f03[_0x2709f8(0x15c)]!==n['CommandType'][_0x2709f8(0x3d9)]||_0x387633!=null&&_0x387633[_0x2709f8(0x39c)]||_0x387633!=null&&_0x387633[_0x2709f8(0xfa)]||_0x329f03['id']!==e[_0x2709f8(0x1d4)]['id'])return;let _0xc72d6a=_0x329f03[_0x2709f8(0x3bf)];if((_0xc72d6a==null?void 0x0:_0xc72d6a[_0x2709f8(0x19e)])!==this[_0x2709f8(0x37b)])return;let _0x3d1a71=_0x329f03,_0x59f471=this['_compressMutationService']['interceptor'][_0x2709f8(0x2dc)](this['_compressMutationService'][_0x2709f8(0x185)][_0x2709f8(0xff)]()['COMPRESS_MUTATION_SEND'])([_0x3d1a71],this[_0x2709f8(0x2fb)])||[_0x3d1a71];this[_0x2709f8(0x237)](_0x59f471[0x0]);})),_0x551c8c;}};Ne=b([y(0x3,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x132)])),y(0x5,(0x0,n[_0x2b4704(0x1ce)])(n['LocaleService'])),y(0x6,(0x0,n['Inject'])(t[_0x2b4704(0x136)])),y(0x7,(0x0,n[_0x2b4704(0x1ce)])(v)),y(0x8,n[_0x2b4704(0x3a9)]),y(0x9,n[_0x2b4704(0x2ac)]),y(0xa,n[_0x2b4704(0x378)]),y(0xb,n[_0x2b4704(0x376)]),y(0xc,(0x0,n['Optional'])(T)),y(0xd,(0x0,n[_0x2b4704(0x1d7)])(C))],Ne);let z=class extends L{constructor(_0x453762,_0x4b24b6,_0x1b5d8e,_0x575d7a,_0x10afb9,_0x5114f2,_0x1fbc7c,_0xe3c3c3,_0x3b986,_0x19da98,_0x4f7165,_0x387090,_0x12c311,_0x235a6c,_0x57423e){super(_0x453762,_0x1b5d8e,_0x4b24b6,_0x575d7a,_0x10afb9,_0x5114f2,_0x1fbc7c,_0x3b986,_0x19da98,_0x4f7165,_0x387090,_0x12c311,_0x235a6c,_0x57423e),this['unitID']=_0x453762,this['type']=_0x4b24b6,this['_sheetTransformSelectionsService']=_0xe3c3c3;}[_0x2b4704(0x2a7)](){const _0x20af2f=_0x2b4704;let _0x5b3b6f=super[_0x20af2f(0x2a7)]();return _0x5b3b6f[_0x20af2f(0x2eb)]=_0x5c1c0c=>this[_0x20af2f(0x14f)]['transformSelections'](_0x5c1c0c),_0x5b3b6f;}async[_0x2b4704(0x28a)](){const _0x1763bb=_0x2b4704;let _0x418426=await super[_0x1763bb(0x28a)]();return this[_0x1763bb(0x115)](this[_0x1763bb(0x340)][_0x1763bb(0x10a)]((_0x2227bd,_0x21da4c)=>{const _0x3eb3ee=_0x1763bb;if(_0x2227bd[_0x3eb3ee(0x15c)]!==n[_0x3eb3ee(0x2e2)]['MUTATION']||_0x21da4c!=null&&_0x21da4c[_0x3eb3ee(0x39c)]||_0x21da4c!=null&&_0x21da4c[_0x3eb3ee(0xfa)])return;let _0x369fd3=_0x2227bd[_0x3eb3ee(0x3bf)];if((_0x369fd3==null?void 0x0:_0x369fd3[_0x3eb3ee(0x19e)])!==this[_0x3eb3ee(0x37b)])return;let _0x1cad73=_0x2227bd,_0x5726fd=this[_0x3eb3ee(0x25e)][_0x3eb3ee(0x185)][_0x3eb3ee(0x2dc)](this[_0x3eb3ee(0x25e)][_0x3eb3ee(0x185)][_0x3eb3ee(0xff)]()[_0x3eb3ee(0x33c)])([_0x1cad73],this['_univerInstanceService'])||[_0x1cad73];this['_onLocalMutation'](_0x5726fd[0x0]);})),_0x418426;}};z=b([y(0x3,(0x0,n[_0x2b4704(0x1ce)])(n['Injector'])),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x132)])),y(0x5,(0x0,n['Inject'])(n[_0x2b4704(0x1a3)])),y(0x6,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x136)])),y(0x7,(0x0,n['Inject'])(w)),y(0x8,(0x0,n[_0x2b4704(0x1ce)])(v)),y(0x9,n[_0x2b4704(0x3a9)]),y(0xa,n['ILogService']),y(0xb,n[_0x2b4704(0x378)]),y(0xc,n[_0x2b4704(0x376)]),y(0xd,(0x0,n['Optional'])(T)),y(0xe,(0x0,n['Optional'])(C))],z);let B=class extends L{constructor(_0x4e7eba,_0x138e76,_0x594803,_0x537b19,_0x98b713,_0x5708a3,_0x161454,_0x344cce,_0x5507ee,_0x58e284,_0x51e406,_0x2e516b,_0x5191cc,_0x25d305){const _0x1cf3da=_0x2b4704;super(_0x4e7eba,_0x594803,_0x138e76,_0x537b19,_0x98b713,_0x5708a3,_0x161454,_0x344cce,_0x5507ee,_0x58e284,_0x51e406,_0x2e516b,_0x5191cc,_0x25d305),this[_0x1cf3da(0x37b)]=_0x4e7eba,this[_0x1cf3da(0x15c)]=_0x138e76;}async[_0x2b4704(0x28a)](){const _0x2da085=_0x2b4704;let _0x3f8a94=await super[_0x2da085(0x28a)]();return this[_0x2da085(0x115)](this[_0x2da085(0x340)][_0x2da085(0x10a)]((_0x340a02,_0x2bd93f)=>{const _0x19a40a=_0x2da085;if(_0x340a02[_0x19a40a(0x15c)]!==n[_0x19a40a(0x2e2)][_0x19a40a(0x3d9)]||_0x2bd93f!=null&&_0x2bd93f[_0x19a40a(0x39c)]||_0x2bd93f!=null&&_0x2bd93f[_0x19a40a(0xfa)])return;let _0x28ca25=_0x340a02[_0x19a40a(0x3bf)];if((_0x28ca25==null?void 0x0:_0x28ca25[_0x19a40a(0x19e)])!==this[_0x19a40a(0x37b)])return;let _0x51ea42=_0x340a02,_0x1ff9ab=this[_0x19a40a(0x25e)][_0x19a40a(0x185)][_0x19a40a(0x2dc)](this[_0x19a40a(0x25e)][_0x19a40a(0x185)][_0x19a40a(0xff)]()[_0x19a40a(0x33c)])([_0x51ea42],this['_univerInstanceService'])||[_0x51ea42];this[_0x19a40a(0x237)](_0x1ff9ab[0x0]);})),_0x3f8a94;}};B=b([y(0x3,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x132)])),y(0x5,(0x0,n['Inject'])(n[_0x2b4704(0x1a3)])),y(0x6,(0x0,n[_0x2b4704(0x1ce)])(t['RevisionService'])),y(0x7,(0x0,n['Inject'])(v)),y(0x8,n[_0x2b4704(0x3a9)]),y(0x9,n[_0x2b4704(0x2ac)]),y(0xa,n[_0x2b4704(0x378)]),y(0xb,n[_0x2b4704(0x376)]),y(0xc,(0x0,n[_0x2b4704(0x1d7)])(T)),y(0xd,(0x0,n['Optional'])(C))],B);const Pe=(0x0,n[_0x2b4704(0x1d9)])(_0x2b4704(0x187));function Fe(_0x5f3116){const _0x47d116=_0x2b4704;let _0x25334f=_0x5f3116[_0x47d116(0x27c)],_0x95bb61=JSON['parse'](_0x25334f);switch(_0x95bb61[_0x47d116(0x28f)]){case o['CombCmd'][_0x47d116(0x2e3)]:case o[_0x47d116(0x329)][_0x47d116(0x3dd)]:{let _0x5d6723=_0x95bb61['infoRsp'];return{..._0x95bb61,'data':_0x5d6723,'cmd':_0x95bb61[_0x47d116(0x28f)]};}case o[_0x47d116(0x329)][_0x47d116(0x318)]:{let _0x1de6ef=_0x95bb61[_0x47d116(0x12e)];return{..._0x95bb61,'data':_0x1de6ef,'cmd':_0x95bb61['cmd']};}case o[_0x47d116(0x329)][_0x47d116(0x30d)]:{let _0x4bfe13=_0x95bb61[_0x47d116(0x186)];switch(_0x4bfe13[_0x47d116(0x1da)]){case t[_0x47d116(0x30b)]['PERMISSION_REJ']:var _0x587fe6;return{..._0x95bb61,'data':{..._0x4bfe13,'data':(_0x587fe6=_0x4bfe13['permissionRejEvent'])==null?void 0x0:_0x587fe6['cs']},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t['CollaborationEvent'][_0x47d116(0x221)]:var _0x20faf6;return{..._0x95bb61,'data':{..._0x4bfe13,'data':(_0x20faf6=_0x4bfe13['csAckEvent'])==null?void 0x0:_0x20faf6['cs']},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t[_0x47d116(0x30b)][_0x47d116(0x2a5)]:var _0x526252;return{..._0x95bb61,'data':{..._0x4bfe13,'data':(_0x526252=_0x4bfe13[_0x47d116(0x2c2)])==null?void 0x0:_0x526252['cs']},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t[_0x47d116(0x30b)][_0x47d116(0x3a1)]:var _0x47308f;return{..._0x95bb61,'data':{..._0x4bfe13,'data':(_0x47308f=_0x4bfe13[_0x47d116(0x2aa)])==null?void 0x0:_0x47308f['cs']},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t[_0x47d116(0x30b)][_0x47d116(0x35d)]:var _0x1a27c8;return{..._0x95bb61,'data':{..._0x4bfe13,'data':(_0x1a27c8=_0x4bfe13[_0x47d116(0x1e3)])==null?void 0x0:_0x1a27c8['cs']},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t[_0x47d116(0x30b)][_0x47d116(0x205)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13['updateCursorEvent']},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t['CollaborationEvent'][_0x47d116(0x1a8)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13['joinEvent']},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t[_0x47d116(0x30b)]['USERS_LEAVE']:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13[_0x47d116(0x348)]},'cmd':_0x95bb61['cmd']};case t['CollaborationEvent'][_0x47d116(0x249)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13[_0x47d116(0x207)]},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t[_0x47d116(0x30b)][_0x47d116(0x15b)]:case t[_0x47d116(0x30b)][_0x47d116(0x17a)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13[_0x47d116(0x3da)]},'cmd':_0x95bb61['cmd']};case t['CollaborationEvent'][_0x47d116(0x2e0)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13[_0x47d116(0x207)]},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x95bb61,'data':_0x4bfe13,'cmd':_0x95bb61['cmd']};case t[_0x47d116(0x30b)][_0x47d116(0x257)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13[_0x47d116(0x164)]},'cmd':_0x95bb61['cmd']};case t[_0x47d116(0x30b)][_0x47d116(0x2c9)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13[_0x47d116(0x20b)]},'cmd':_0x95bb61['cmd']};case t[_0x47d116(0x30b)][_0x47d116(0x28b)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13[_0x47d116(0x21c)]},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t[_0x47d116(0x30b)][_0x47d116(0x3ae)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13['uniscriptRunEvent']},'cmd':_0x95bb61[_0x47d116(0x28f)]};default:return _0x95bb61;}}default:return _0x95bb61;}}function Ie(_0x16552e){const _0x25fe67=_0x2b4704;switch(_0x16552e[_0x25fe67(0x28f)]){case o[_0x25fe67(0x329)][_0x25fe67(0x2e3)]:case o[_0x25fe67(0x329)][_0x25fe67(0x3dd)]:return JSON[_0x25fe67(0x22b)]({'cmd':_0x16552e[_0x25fe67(0x28f)],'routeKey':_0x16552e[_0x25fe67(0x224)]});case o['CombCmd'][_0x25fe67(0x2f6)]:{let _0x2995a5;switch(_0x16552e[_0x25fe67(0x27c)][_0x25fe67(0x1da)]){case t['CollaborationEvent'][_0x25fe67(0x205)]:_0x2995a5={'eventID':t['CollaborationEvent'][_0x25fe67(0x205)],'updateCursorEvent':_0x16552e[_0x25fe67(0x27c)][_0x25fe67(0x27c)]};break;case t[_0x25fe67(0x30b)][_0x25fe67(0x35c)]:_0x2995a5={'eventID':t['CollaborationEvent'][_0x25fe67(0x35c)],'leaveEvent':_0x16552e[_0x25fe67(0x27c)][_0x25fe67(0x27c)]};break;case t[_0x25fe67(0x30b)][_0x25fe67(0x1a8)]:_0x2995a5={'eventID':t[_0x25fe67(0x30b)][_0x25fe67(0x1a8)],'joinEvent':_0x16552e[_0x25fe67(0x27c)][_0x25fe67(0x27c)]};break;case t[_0x25fe67(0x30b)]['LIVESHARE_NEW_HOST']:_0x2995a5={'eventID':t[_0x25fe67(0x30b)][_0x25fe67(0x249)],'liveShareNewHost':_0x16552e['data'][_0x25fe67(0x27c)]};break;case t['CollaborationEvent'][_0x25fe67(0x17a)]:_0x2995a5={'eventID':t[_0x25fe67(0x30b)][_0x25fe67(0x17a)],'liveShareOperation':_0x16552e[_0x25fe67(0x27c)]['data']};break;case t[_0x25fe67(0x30b)][_0x25fe67(0x2e0)]:_0x2995a5={'eventID':t[_0x25fe67(0x30b)][_0x25fe67(0x2e0)],'liveShareTerminate':_0x16552e['data']['data']};break;case t[_0x25fe67(0x30b)]['LIVESHARE_REQUEST_HOST']:_0x2995a5={'eventID':t['CollaborationEvent'][_0x25fe67(0x298)],'liveShareRequestHost':_0x16552e[_0x25fe67(0x27c)]['data']};break;case t['CollaborationEvent'][_0x25fe67(0x15b)]:_0x2995a5={'eventID':t[_0x25fe67(0x30b)][_0x25fe67(0x15b)]};break;default:_0x2995a5={'eventID':_0x16552e['data']['eventID']};}return JSON[_0x25fe67(0x22b)]({'cmd':_0x16552e['cmd'],'routeKey':_0x16552e[_0x25fe67(0x224)],'collaMsg':_0x2995a5});}case o[_0x25fe67(0x329)][_0x25fe67(0x318)]:return JSON[_0x25fe67(0x22b)]({'cmd':_0x16552e[_0x25fe67(0x28f)],'routeKey':_0x16552e[_0x25fe67(0x224)],'joinReq':_0x16552e[_0x25fe67(0x27c)]});case o[_0x25fe67(0x329)][_0x25fe67(0x2af)]:return JSON[_0x25fe67(0x22b)]({'cmd':_0x16552e[_0x25fe67(0x28f)],'routeKey':_0x16552e[_0x25fe67(0x224)],'leaveReq':_0x16552e[_0x25fe67(0x27c)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const Le=(0x0,n[_0x2b4704(0x1d9)])(_0x2b4704(0x1f8));function Re(_0x16f56b,_0x2aa183,_0x3e8fb7){const _0x46cbb8=_0x2b4704;return _0x16f56b+'/'+_0x2aa183+_0x46cbb8(0x231)+_0x3e8fb7+_0x46cbb8(0x10f);}let ze=class extends n[_0x2b4704(0x274)]{constructor(_0x10d07c,_0x3c8872,_0x1b1a16,_0x54d145,_0x7dc0b){const _0x55d06d=_0x2b4704;super(),this[_0x55d06d(0x3de)]=_0x10d07c,this[_0x55d06d(0x3c7)]=_0x3c8872,this['_configService']=_0x1b1a16,this[_0x55d06d(0x35b)]=_0x54d145,this[_0x55d06d(0xfb)]=_0x7dc0b;}['_doCreateSocket'](_0x2a9b70){const _0x50dc96=_0x2b4704;let _0x49435a=this[_0x50dc96(0x3de)][_0x50dc96(0x287)](u[_0x50dc96(0x304)]);if(!_0x49435a)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x12cac0=_0x49435a[_0x50dc96(0x1b3)](_0x2a9b70);if(!_0x12cac0)throw Error(_0x50dc96(0x1d5));let _0xc7bf7e=new n[(_0x50dc96(0x1cc))](),_0x10da7c=new a[(_0x50dc96(0x119))]();_0xc7bf7e['add'](_0x12cac0[_0x50dc96(0x360)]['subscribe'](_0x5604d2=>_0x10da7c[_0x50dc96(0x383)](_0x5604d2))),_0xc7bf7e[_0x50dc96(0x20c)]((0x0,n[_0x50dc96(0x2bb)])(()=>_0x10da7c[_0x50dc96(0x391)]()));let _0x2b827e=new a[(_0x50dc96(0x119))]();_0xc7bf7e[_0x50dc96(0x20c)](_0x12cac0[_0x50dc96(0x363)][_0x50dc96(0x169)](_0x264191=>_0x2b827e[_0x50dc96(0x383)](_0x264191))),_0xc7bf7e[_0x50dc96(0x20c)]((0x0,n['toDisposable'])(()=>_0x2b827e['complete']()));let _0xae0447=new a['Subject']();_0xc7bf7e[_0x50dc96(0x20c)](_0x12cac0['message$'][_0x50dc96(0x169)](_0x30f87c=>{const _0x17dead=_0x50dc96;let _0x2d86d5=Fe(_0x30f87c);_0xae0447[_0x17dead(0x383)](_0x2d86d5);})),_0xc7bf7e[_0x50dc96(0x20c)]((0x0,n[_0x50dc96(0x2bb)])(()=>_0xae0447[_0x50dc96(0x391)]()));let _0x2be463,_0x121468=()=>{const _0x1a85fa=_0x50dc96;_0x2b827e[_0x1a85fa(0x383)](new Event(_0x1a85fa(0x2dd))),_0x10da7c[_0x1a85fa(0x383)](new Event(_0x1a85fa(0x2dd))),_0x2be463['close']();};return _0x2be463={'memberID':'','close$':_0x10da7c['asObservable'](),'error$':_0x2b827e[_0x50dc96(0x171)](),'open$':_0x12cac0[_0x50dc96(0x211)],'message$':_0xae0447[_0x50dc96(0x171)](),'send':_0x221cf2=>{const _0x48ff89=_0x50dc96;if(_0x221cf2[_0x48ff89(0x28f)]===o[_0x48ff89(0x329)]['INGEST']){if(_0x221cf2['data'][_0x48ff89(0x1da)]===t[_0x48ff89(0x30b)]['SUBMIT_CHANGESET']){this[_0x48ff89(0x1e8)](_0x2be463,_0x221cf2['data'])['catch'](_0x32fb42=>{const _0x319b7c=_0x48ff89;this[_0x319b7c(0x35b)][_0x319b7c(0x2b8)](_0x32fb42),_0x121468();});return;}if(_0x221cf2[_0x48ff89(0x27c)][_0x48ff89(0x1da)]===t[_0x48ff89(0x30b)][_0x48ff89(0x270)]){let _0x380ae9=_0x221cf2[_0x48ff89(0x27c)];this[_0x48ff89(0x180)](_0x380ae9)['then'](_0x4cff86=>{const _0x201a11=_0x48ff89;_0xae0447[_0x201a11(0x383)]({'cmd':o[_0x201a11(0x329)][_0x201a11(0x30d)],'code':o[_0x201a11(0x371)]['OK'],'routeKey':_0x380ae9['data'][_0x201a11(0x37b)],'routeType':'','data':{'eventID':t[_0x201a11(0x30b)][_0x201a11(0x156)],'data':{'changesets':_0x4cff86}}});})[_0x48ff89(0x313)](_0x1c95cb=>{const _0x1fdd69=_0x48ff89;this[_0x1fdd69(0x35b)][_0x1fdd69(0x2b8)](_0x1c95cb),_0x121468();});return;}}_0x12cac0[_0x48ff89(0x3d4)](Ie(_0x221cf2));},'close':()=>{const _0x380f6e=_0x50dc96;_0x12cac0['close'](),_0xc7bf7e[_0x380f6e(0x2cf)]();}},_0x2be463;}async[_0x2b4704(0x1e8)](_0x579a56,_0x55eb5a){const _0x1544df=_0x2b4704;var _0x58e1a0;let {unitType:_0x2d7e10,unitID:_0x523e8c,changeset:_0x2b7799}=_0x55eb5a[_0x1544df(0x27c)],_0x55a7dc={'unitID':_0x523e8c,'memberID':_0x579a56[_0x1544df(0x303)],'type':_0x2d7e10,'changeset':(0x0,t[_0x1544df(0x1c2)])(_0x2b7799)},_0x4486db=this['_configService'][_0x1544df(0x18e)](h),_0x3e1aac=Re((_0x58e1a0=_0x4486db==null?void 0x0:_0x4486db['collabSubmitChangesetUrl'])==null?_0x1544df(0x163):_0x58e1a0,_0x2d7e10,_0x523e8c);try{await this[_0x1544df(0x3c7)][_0x1544df(0x2e7)](_0x3e1aac,{'body':_0x55a7dc});}catch(_0xe98d61){throw this[_0x1544df(0x35b)][_0x1544df(0x2b8)](_0x1544df(0x3ab),_0x1544df(0x315)),_0xe98d61;}}async[_0x2b4704(0x180)](_0x5a6731){const _0x130a38=_0x2b4704;let {unitID:_0x15beb1,from:_0x1235e9,to:_0x450c32,unitType:_0x65f03c}=_0x5a6731['data'];return(await this[_0x130a38(0xfb)][_0x130a38(0x1c7)]({'metadata':void 0x0},{'unitID':_0x15beb1,'type':_0x65f03c,'from':_0x1235e9,'to':_0x450c32}))['changesets'][_0x130a38(0x2c1)](_0x4b5aad=>((_0x4b5aad[_0x130a38(0x296)]===null||_0x4b5aad[_0x130a38(0x296)]===void 0x0)&&(_0x4b5aad[_0x130a38(0x296)]=[]),_0x4b5aad));}};ze=b([y(0x0,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x1,(0x0,n[_0x2b4704(0x1ce)])(u[_0x2b4704(0x28e)])),y(0x2,n[_0x2b4704(0x309)]),y(0x3,n[_0x2b4704(0x2ac)]),y(0x4,t[_0x2b4704(0x38c)])],ze);let V=class extends n[_0x2b4704(0x274)]{get['_socket'](){const _0x34be94=_0x2b4704;return this['_socket$'][_0x34be94(0x19f)]();}constructor(_0x5beab8,_0x4f45f0,_0x1a374e,_0x2d68c5,_0x245514,_0x1373f5){const _0x1edc18=_0x2b4704;super(),this[_0x1edc18(0x3de)]=_0x5beab8,this['_logService']=_0x4f45f0,this[_0x1edc18(0x1d8)]=_0x1a374e,this[_0x1edc18(0x18a)]=_0x2d68c5,this[_0x1edc18(0x38e)]=_0x245514,this[_0x1edc18(0x2a3)]=_0x1373f5,_(this,_0x1edc18(0x338),new a['BehaviorSubject'](void 0x0)),_(this,'socket$',this[_0x1edc18(0x338)][_0x1edc18(0x171)]()),_(this,_0x1edc18(0x32e),null),_(this,_0x1edc18(0x2b2),new Map()),_(this,'_status$',new a['BehaviorSubject'](0x0)),_(this,_0x1edc18(0x199),this[_0x1edc18(0x24d)][_0x1edc18(0x171)]()),_(this,_0x1edc18(0x1f2),!0x1),_(this,_0x1edc18(0x203),void 0x0),_(this,_0x1edc18(0x198),0x0),_(this,_0x1edc18(0x167),null),_(this,_0x1edc18(0x143),void 0x0),_(this,_0x1edc18(0x3a5),void 0x0),this[_0x1edc18(0xf7)]();}[_0x2b4704(0xf7)](){const _0x550296=_0x2b4704;this[_0x550296(0x2a3)]&&this[_0x550296(0x115)](this[_0x550296(0x2a3)][_0x550296(0x2bc)][_0x550296(0x169)](_0x2aafd0=>{const _0x5c1039=_0x550296;_0x2aafd0&&!this[_0x5c1039(0x280)]&&this[_0x5c1039(0x1ab)](),_0x2aafd0||this[_0x5c1039(0x104)]();}));}[_0x2b4704(0x2cf)](){const _0x4cbf4a=_0x2b4704;var _0x2f2eed;super[_0x4cbf4a(0x2cf)](),(_0x2f2eed=this['_socketMessageSubscription'])==null||_0x2f2eed[_0x4cbf4a(0x269)](),this['_socketMessageSubscription']=null,this['_clearRetryConnectingTimer'](),this[_0x4cbf4a(0x3a6)](),this[_0x4cbf4a(0x1d2)](),this[_0x4cbf4a(0x2b2)]['forEach'](_0x57fb1d=>_0x57fb1d['dispose']()),this[_0x4cbf4a(0x2b2)]['clear'](),this[_0x4cbf4a(0x24d)][_0x4cbf4a(0x391)]();}async['requireSession'](_0x20e9ef){const _0x57c228=_0x2b4704;if(this[_0x57c228(0x2b2)][_0x57c228(0x1ae)](_0x20e9ef))return this[_0x57c228(0x2b2)][_0x57c228(0x287)](_0x20e9ef);this[_0x57c228(0x157)]();let _0x2cfb0a=this[_0x57c228(0x3de)][_0x57c228(0x2b6)](S,_0x20e9ef,this[_0x57c228(0x338)]['asObservable']());return this[_0x57c228(0x2b2)][_0x57c228(0x399)](_0x20e9ef,_0x2cfb0a),_0x2cfb0a;}[_0x2b4704(0x361)](_0x19dfa0){const _0x548b7f=_0x2b4704;let _0x19f1f5=this[_0x548b7f(0x2b2)][_0x548b7f(0x287)](_0x19dfa0);if(_0x19f1f5&&(this[_0x548b7f(0x2b2)]['delete'](_0x19dfa0),_0x19f1f5['close']()),!this[_0x548b7f(0x2b2)][_0x548b7f(0x155)]){var _0x41c697;(_0x41c697=this[_0x548b7f(0x280)])==null||_0x41c697[_0x548b7f(0x26d)]();}}[_0x2b4704(0x1ab)](){const _0x5063db=_0x2b4704;this[_0x5063db(0x198)]=0x0,this[_0x5063db(0x266)](),this['_tryReconnect']();}[_0x2b4704(0x266)](){const _0x1bfedc=_0x2b4704;this[_0x1bfedc(0x203)]!=null&&(clearTimeout(this[_0x1bfedc(0x203)]),this[_0x1bfedc(0x203)]=null);}async[_0x2b4704(0x151)](){const _0x3a164b=_0x2b4704;var _0x118c5d;let _0x288d47=this['_configService'][_0x3a164b(0x18e)](h),_0x12694b=(_0x118c5d=_0x288d47==null?void 0x0:_0x288d47[_0x3a164b(0x359)])==null?te:_0x118c5d,_0x160a42=await this[_0x3a164b(0x18a)][_0x3a164b(0x1b3)](_0x12694b);return this[_0x3a164b(0x32e)]=_0x160a42,_0x160a42;}async[_0x2b4704(0x157)](){const _0x425602=_0x2b4704;try{var _0x1f57cd,_0x4e4377;let _0x3877=(_0x1f57cd=(_0x4e4377=this[_0x425602(0x280)])==null?this[_0x425602(0x32e)]:_0x4e4377)==null?await this[_0x425602(0x151)]():_0x1f57cd;if(_0x3877){var _0x413ccc;let _0x25f7f6=_0x3877['send'];_0x3877[_0x425602(0x3d4)]=_0x55c504=>(_0x55c504[_0x425602(0x28f)]!==o[_0x425602(0x329)]['LEAVE']&&this[_0x425602(0x351)](),_0x25f7f6[_0x425602(0x2d2)](_0x3877,[_0x55c504])),(_0x413ccc=this[_0x425602(0x167)])==null||_0x413ccc[_0x425602(0x269)](),this[_0x425602(0x167)]=null,this['_socketMessageSubscription']=_0x3877['message$'][_0x425602(0x169)](_0x491c3c=>this['_onMessage'](_0x3877,_0x491c3c)),_0x3877['error$'][_0x425602(0x200)]((0x0,c[_0x425602(0x346)])(0x1))[_0x425602(0x169)](_0x284be3=>this[_0x425602(0x35b)][_0x425602(0x2b8)](_0x425602(0x1d3),_0x284be3)),_0x3877[_0x425602(0x211)][_0x425602(0x200)]((0x0,c[_0x425602(0x346)])(0x1))[_0x425602(0x169)](()=>{const _0x29ab98=_0x425602;this[_0x29ab98(0x259)](_0x3877);}),_0x3877[_0x425602(0x360)][_0x425602(0x200)]((0x0,c['take'])(0x1))[_0x425602(0x169)](_0x5a2633=>{const _0x18f051=_0x425602;this[_0x18f051(0x35b)]['debug'](_0x18f051(0x312),_0x18f051(0x354),_0x5a2633),this[_0x18f051(0x175)]();});}}catch(_0x403812){this[_0x425602(0x35b)][_0x425602(0x2b8)](_0x403812),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x1f6409){const _0x4a98f1=_0x2b4704;this['_logService'][_0x4a98f1(0x216)]('[CollaborationSessionService]',_0x4a98f1(0x12b)),_0x1f6409[_0x4a98f1(0x3d4)]({'cmd':o[_0x4a98f1(0x329)][_0x4a98f1(0x3dd)]}),this[_0x4a98f1(0x351)]();}['_onOffline'](){const _0x50af58=_0x2b4704;this['_socketReady']=!0x1,this[_0x50af58(0x32e)]=null,this[_0x50af58(0x24d)]['next'](0x2),this['_socket$']['next'](null),this[_0x50af58(0x3a6)](),this['_clearHeartbeatTimer']();}[_0x2b4704(0x175)](){const _0x547a5d=_0x2b4704;var _0x20d780;this['_onOffline'](),this[_0x547a5d(0x198)]<((_0x20d780=this['_configService'][_0x547a5d(0x18e)](_0x547a5d(0x101)))==null?0x3:_0x20d780)?(this['_collaborationUIEventService'][_0x547a5d(0x2b4)]({'id':'SOCKET_FAILED_RETRY'}),this[_0x547a5d(0x352)]()):this[_0x547a5d(0x38e)][_0x547a5d(0x2b4)]({'id':'SOCKET_FAILED'});}[_0x2b4704(0x352)](){const _0x5ac28d=_0x2b4704;var _0x1c80b9;let _0x2e002b=this[_0x5ac28d(0x198)],_0x3d426b=this['_configService'][_0x5ac28d(0x18e)](h),_0x28bc7b=_0x2e002b===0x0?0x0:((_0x1c80b9=_0x3d426b==null?void 0x0:_0x3d426b[_0x5ac28d(0x306)])==null?0x4e20:_0x1c80b9)*0x2**_0x2e002b;this['_retryConnectingTimer']=setTimeout(()=>{const _0x14100b=_0x5ac28d;clearTimeout(this[_0x14100b(0x203)]),this[_0x14100b(0x203)]=null,this['_tryEnsureSocket']();},_0x28bc7b),this[_0x5ac28d(0x198)]+=0x1;}[_0x2b4704(0x341)](_0x1d1e27,_0x379e48){const _0x598469=_0x2b4704;let {cmd:_0xf91e9a}=_0x379e48;_0xf91e9a===o[_0x598469(0x329)][_0x598469(0x3dd)]&&!this[_0x598469(0x1f2)]&&(_0x1d1e27[_0x598469(0x303)]=_0x379e48[_0x598469(0x27c)][_0x598469(0x303)],this[_0x598469(0x338)][_0x598469(0x383)](_0x1d1e27),this[_0x598469(0x24d)][_0x598469(0x383)](0x3),this[_0x598469(0x1f2)]=!0x0,this[_0x598469(0x32e)]=null),_0xf91e9a===o[_0x598469(0x329)][_0x598469(0x2e3)]&&this[_0x598469(0x3a6)](),this[_0x598469(0x351)]();}[_0x2b4704(0x351)](){const _0x4f078d=_0x2b4704;var _0x5013a0;this[_0x4f078d(0x1d2)](),this[_0x4f078d(0x143)]=setTimeout(()=>this[_0x4f078d(0x35e)](),(_0x5013a0=this[_0x4f078d(0x1d8)]['getConfig'](_0x4f078d(0x183)))==null?0x7530:_0x5013a0);}[_0x2b4704(0x35e)](){const _0x471fd7=_0x2b4704;this[_0x471fd7(0x280)]['send']({'cmd':o[_0x471fd7(0x329)][_0x471fd7(0x2e3)]}),this[_0x471fd7(0x19d)]();}[_0x2b4704(0x19d)](){const _0x169f1c=_0x2b4704;var _0xeeb5d5;this[_0x169f1c(0x3a5)]=setTimeout(()=>this[_0x169f1c(0x175)](),(_0xeeb5d5=this[_0x169f1c(0x1d8)][_0x169f1c(0x18e)](_0x169f1c(0x204)))==null?ne:_0xeeb5d5);}[_0x2b4704(0x1d2)](){const _0x309131=_0x2b4704;this[_0x309131(0x143)]!=null&&(clearTimeout(this[_0x309131(0x143)]),this[_0x309131(0x143)]=null);}[_0x2b4704(0x3a6)](){const _0x558a9a=_0x2b4704;this[_0x558a9a(0x3a5)]!=null&&(clearTimeout(this[_0x558a9a(0x3a5)]),this['_timeoutTimer']=null);}};V=b([y(0x0,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x1,n[_0x2b4704(0x2ac)]),y(0x2,n[_0x2b4704(0x309)]),y(0x3,Le),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(v)),y(0x5,(0x0,n[_0x2b4704(0x1d7)])(Pe))],V);let H=class extends n[_0x2b4704(0x2a0)]{constructor(_0x44571b,_0x3aa842,_0xb9f3dd,_0xfcc535){const _0x43b3f9=_0x2b4704;var _0x423ed0;super(),this['_injector']=_0x44571b,this['_collabSessionService']=_0x3aa842,this['_configService']=_0xb9f3dd,this[_0x43b3f9(0x2fb)]=_0xfcc535,_(this,_0x43b3f9(0x3c8),new Map()),_(this,_0x43b3f9(0x1f6),new a[(_0x43b3f9(0x119))]()),_(this,'entityInit$',this[_0x43b3f9(0x1f6)][_0x43b3f9(0x171)]()),((_0x423ed0=this[_0x43b3f9(0x1d8)]['getConfig'](_0x43b3f9(0x3a2)))==null?void 0x0:_0x423ed0[_0x43b3f9(0x20e)])!==!0x1&&this[_0x43b3f9(0x28a)]();}[_0x2b4704(0x2cf)](){const _0x44fe9c=_0x2b4704;super[_0x44fe9c(0x2cf)](),this[_0x44fe9c(0x3c8)][_0x44fe9c(0x24e)](_0x51ee36=>_0x51ee36[_0x44fe9c(0x2cf)]()),this[_0x44fe9c(0x3c8)][_0x44fe9c(0x2de)]();}['getCollabEntity'](_0x6bc090){const _0x241178=_0x2b4704;var _0x79d75b;return(_0x79d75b=this[_0x241178(0x3c8)]['get'](_0x6bc090))==null?null:_0x79d75b;}[_0x2b4704(0x2d8)](_0xa9f999){const _0x35f40e=_0x2b4704;let _0x51cb9e=this[_0x35f40e(0x27f)](_0xa9f999);return _0x51cb9e?(0x0,a['of'])(_0x51cb9e):this[_0x35f40e(0x1f6)][_0x35f40e(0x200)]((0x0,c[_0x35f40e(0x245)])(_0x1bfc12=>_0x1bfc12[_0x35f40e(0x37b)]===_0xa9f999));}[_0x2b4704(0x138)](_0xe59fc9){const _0x534f85=_0x2b4704;return(0x0,a['firstValueFrom'])(this['getCollabEntity$'](_0xe59fc9)[_0x534f85(0x200)]((0x0,c['map'])(()=>void 0x0)));}['_init'](){const _0x28372d=_0x2b4704;this[_0x28372d(0x2fb)][_0x28372d(0x3c5)](n[_0x28372d(0x372)][_0x28372d(0x375)])[_0x28372d(0x200)]((0x0,a[_0x28372d(0x395)])(this[_0x28372d(0x37e)]),(0x0,c['delay'])(0x10))[_0x28372d(0x169)](async _0x6b7449=>{const _0xaffd79=_0x28372d;let _0x419627=_0x6b7449[_0xaffd79(0x202)][_0xaffd79(0x17c)](),_0x230d94=await this[_0xaffd79(0x122)](_0x419627,n[_0xaffd79(0x372)][_0xaffd79(0x375)]);this[_0xaffd79(0x3c8)][_0xaffd79(0x399)](_0x419627,_0x230d94);}),this[_0x28372d(0x2fb)][_0x28372d(0x3c5)](n[_0x28372d(0x372)][_0x28372d(0x299)])['pipe']((0x0,a['takeUntil'])(this[_0x28372d(0x37e)]),(0x0,c['delay'])(0x10))[_0x28372d(0x200)]((0x0,c[_0x28372d(0x245)])(_0x10321a=>!_0x10321a[_0x28372d(0x202)][_0x28372d(0x17c)]()[_0x28372d(0x1b6)]('__')))['subscribe'](async _0x315d3a=>{const _0x199bc3=_0x28372d;let _0x323790=_0x315d3a[_0x199bc3(0x202)][_0x199bc3(0x17c)](),_0x2a2760=await this[_0x199bc3(0x122)](_0x323790,n[_0x199bc3(0x372)]['UNIVER_DOC']);this['_entities'][_0x199bc3(0x399)](_0x323790,_0x2a2760);}),this[_0x28372d(0x2fb)]['getTypeOfUnitAdded$'](n[_0x28372d(0x372)]['UNIVER_SLIDE'])['pipe']((0x0,a[_0x28372d(0x395)])(this[_0x28372d(0x37e)]),(0x0,c['delay'])(0x10))[_0x28372d(0x169)](async _0x3a415e=>{const _0x129fb1=_0x28372d;let _0x2cbbef=_0x3a415e['unit'][_0x129fb1(0x17c)](),_0x1a1a2a=await this[_0x129fb1(0x122)](_0x2cbbef,n[_0x129fb1(0x372)]['UNIVER_SLIDE']);this[_0x129fb1(0x3c8)][_0x129fb1(0x399)](_0x2cbbef,_0x1a1a2a);}),this[_0x28372d(0x2fb)]['getTypeOfUnitAdded$'](n[_0x28372d(0x372)][_0x28372d(0x288)])[_0x28372d(0x200)]((0x0,a[_0x28372d(0x395)])(this[_0x28372d(0x37e)]),(0x0,c[_0x28372d(0x3bb)])(0x10))[_0x28372d(0x169)](async _0x37f167=>{const _0x1f01d2=_0x28372d;let _0xe6e3b9=_0x37f167['unit'][_0x1f01d2(0x17c)](),_0x54f5a5=await this[_0x1f01d2(0x122)](_0xe6e3b9,n[_0x1f01d2(0x372)][_0x1f01d2(0x288)]);this[_0x1f01d2(0x3c8)][_0x1f01d2(0x399)](_0xe6e3b9,_0x54f5a5);}),(0x0,a[_0x28372d(0x112)])(this[_0x28372d(0x2fb)][_0x28372d(0x1a6)](n['UniverInstanceType'][_0x28372d(0x375)]),this[_0x28372d(0x2fb)][_0x28372d(0x1a6)](n['UniverInstanceType'][_0x28372d(0x299)]),this['_univerInstanceService'][_0x28372d(0x1a6)](n[_0x28372d(0x372)][_0x28372d(0x397)]),this[_0x28372d(0x2fb)]['getTypeOfUnitDisposed$'](n['UniverInstanceType'][_0x28372d(0x288)]))[_0x28372d(0x200)]((0x0,a[_0x28372d(0x395)])(this[_0x28372d(0x37e)]))[_0x28372d(0x169)](_0x3b509c=>{const _0xfc9acb=_0x28372d;let _0x16dca5=_0x3b509c[_0xfc9acb(0x17c)](),_0x180c93=this['_entities'][_0xfc9acb(0x287)](_0x16dca5);_0x180c93&&(_0x180c93[_0xfc9acb(0x2cf)](),this[_0xfc9acb(0x3c8)]['delete'](_0x16dca5));});}async[_0x2b4704(0x122)](_0x3ce537,_0x43bc87){const _0x3d12db=_0x2b4704;let _0x447bfa=await this[_0x3d12db(0x3e3)][_0x3d12db(0x358)](_0x3ce537),_0x23d1b9=this[_0x3d12db(0x3de)]['createInstance'](this[_0x3d12db(0x357)](_0x43bc87),_0x3ce537,_0x43bc87,_0x447bfa);return await _0x23d1b9[_0x3d12db(0x233)](),this['_entityInit$'][_0x3d12db(0x383)](_0x23d1b9),_0x23d1b9;}[_0x2b4704(0x357)](_0x44efcf){const _0x36602b=_0x2b4704;switch(_0x44efcf){case n[_0x36602b(0x372)]['UNIVER_DOC']:return R;case n[_0x36602b(0x372)][_0x36602b(0x375)]:return z;case n['UniverInstanceType'][_0x36602b(0x397)]:return B;case n[_0x36602b(0x372)][_0x36602b(0x288)]:return Ne;default:throw Error(_0x36602b(0x15e)+_0x44efcf);}}};H=b([y(0x0,(0x0,n[_0x2b4704(0x1ce)])(n['Injector'])),y(0x1,(0x0,n[_0x2b4704(0x1ce)])(V)),y(0x2,n[_0x2b4704(0x309)]),y(0x3,n[_0x2b4704(0x3a9)])],H);var Be=_0x2b4704(0x1ff),Ve=_0x2b4704(0x1f5);let He=class extends n[_0x2b4704(0x274)]{constructor(_0xebc0bb,_0x27a165){const _0x525559=_0x2b4704;super(),this[_0x525559(0x2fb)]=_0xebc0bb,this[_0x525559(0x1d8)]=_0x27a165,this[_0x525559(0x28a)]();}[_0x2b4704(0x28a)](){const _0x2c62fa=_0x2b4704;this['disposeWithMe'](this[_0x2c62fa(0x2fb)][_0x2c62fa(0x173)][_0x2c62fa(0x169)](()=>{const _0x3193e2=_0x2c62fa;var _0x45c110;let _0x27cbc7=this[_0x3193e2(0x2fb)][_0x3193e2(0x227)](),_0x35727e=(_0x45c110=this['_configService']['getConfig'](_0x3193e2(0x279)))==null?_0x3193e2(0x39a):_0x45c110;_0x27cbc7 instanceof n['Workbook']&&(_0x35727e=_0x27cbc7[_0x3193e2(0x111)]),document[_0x3193e2(0x1f3)]=_0x35727e;}));}};He=b([y(0x0,n['IUniverInstanceService']),y(0x1,n['IConfigService'])],He);let Ue=function(_0x4bda7d){const _0x3c37cf=_0x2b4704;return _0x4bda7d[_0x3c37cf(0x28d)]=_0x3c37cf(0x28d),_0x4bda7d['UUID']=_0x3c37cf(0x22e),_0x4bda7d['BASE64']=_0x3c37cf(0x31a),_0x4bda7d;}({});const We=(0x0,n[_0x2b4704(0x1d9)])(_0x2b4704(0x3bc));let U=class{constructor(_0xe1952,_0x289d97,_0x2635ed){const _0x5095e0=_0x2b4704;this[_0x5095e0(0x3c7)]=_0xe1952,this[_0x5095e0(0x1d8)]=_0x289d97,this[_0x5095e0(0x2fb)]=_0x2635ed;}['getUploadOptions'](){const _0x26c5f8=_0x2b4704;var _0x2cbbe4;return(_0x2cbbe4=this[_0x26c5f8(0x121)]()[_0x26c5f8(0x32c)])==null?{}:_0x2cbbe4;}async[_0x2b4704(0xf8)](_0x58537d){const _0x14ae93=_0x2b4704;let _0x689e42=this['getUploadOptions']();if(Ge(_0x58537d,_0x689e42),_0x689e42[_0x14ae93(0x2fa)])return _0x689e42[_0x14ae93(0x2fa)](_0x58537d);let _0x1de905=await this[_0x14ae93(0x13c)](_0x58537d);return{'id':_0x1de905,'name':_0x58537d[_0x14ae93(0x111)],'mimeType':_0x58537d[_0x14ae93(0x15c)],'size':_0x58537d[_0x14ae93(0x155)],'sourceType':_0x14ae93(0x22e),'source':_0x1de905};}async[_0x2b4704(0x13c)](_0x1492fe){const _0x124617=_0x2b4704;let _0x35cced=this['_univerInstanceService'][_0x124617(0x227)](),_0x4be091=_0x35cced==null?void 0x0:_0x35cced[_0x124617(0x17c)]();if(!_0x4be091)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x57dc0b=new FormData();_0x57dc0b['append']('file',_0x1492fe);let _0x2ebd3e=this[_0x124617(0x22a)]()+'?size='+_0x1492fe[_0x124617(0x155)][_0x124617(0x21f)]()+_0x124617(0x342)+o[_0x124617(0x260)][_0x124617(0x2d4)]+_0x124617(0x1ba)+encodeURIComponent(_0x4be091),_0x5cd9fb=(await this[_0x124617(0x3c7)][_0x124617(0x2e7)](_0x2ebd3e,{'body':_0x57dc0b}))[_0x124617(0x1df)][_0x124617(0x113)];if(typeof _0x5cd9fb!=_0x124617(0x2e4)||!_0x5cd9fb)throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.');return _0x5cd9fb;}[_0x2b4704(0x22a)](){const _0x972169=_0x2b4704;var _0x48e615;return(_0x48e615=this[_0x972169(0x121)]()[_0x972169(0x345)])==null?_0x972169(0x137):_0x48e615;}[_0x2b4704(0x121)](){const _0x45685f=_0x2b4704;var _0x3517e8;return(_0x3517e8=this[_0x45685f(0x1d8)][_0x45685f(0x18e)](_0x45685f(0x3a2)))==null?{}:_0x3517e8;}};U=b([y(0x0,(0x0,n[_0x2b4704(0x1ce)])(u[_0x2b4704(0x28e)])),y(0x1,(0x0,n[_0x2b4704(0x1ce)])(n['IConfigService'])),y(0x2,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x3a9)]))],U);function Ge(_0x18581e,_0x5b6651){const _0x51ac56=_0x2b4704;var _0x470d18;if(_0x5b6651['maxSize']!=null&&_0x18581e[_0x51ac56(0x155)]>_0x5b6651[_0x51ac56(0x1c6)])throw Error(_0x51ac56(0x168));if((_0x470d18=_0x5b6651[_0x51ac56(0x1b9)])!=null&&_0x470d18[_0x51ac56(0x2f8)]&&!_0x5b6651[_0x51ac56(0x1b9)][_0x51ac56(0x25a)](_0x12739f=>_0x18581e[_0x51ac56(0x15c)]===_0x12739f||_0x18581e[_0x51ac56(0x111)][_0x51ac56(0x32b)](_0x12739f)||_0x12739f[_0x51ac56(0x32b)]('/*')&&_0x18581e['type']['startsWith'](_0x12739f['slice'](0x0,-0x1))))throw Error(_0x51ac56(0x1eb));}let W=class{constructor(_0xc88757,_0x328f1a,_0x315705){const _0x14dd71=_0x2b4704;this['_configService']=_0xc88757,this[_0x14dd71(0x3c7)]=_0x328f1a,this['localeService']=_0x315705,this['init']();}[_0x2b4704(0x233)](){const _0x15d3d3=_0x2b4704;this[_0x15d3d3(0x3c7)][_0x15d3d3(0x3e2)]({'priority':0x1,'interceptor':(_0x278274,_0x1795d2)=>_0x1795d2(_0x278274)[_0x15d3d3(0x200)]((0x0,a[_0x15d3d3(0x2ed)])(async _0x134cf2=>{const _0x3f8f6a=_0x15d3d3;let _0x15292e=_0x134cf2;if(_0x15292e['status']===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x3f8f6a(0x177)](this[_0x3f8f6a(0x1e1)]['t'](_0x3f8f6a(0x15d)))){let _0x52cf35=window['encodeURIComponent'](window[_0x3f8f6a(0x3d7)][_0x3f8f6a(0x182)]);window[_0x3f8f6a(0x3d7)][_0x3f8f6a(0x182)]=this[_0x3f8f6a(0x2bd)]()+_0x3f8f6a(0x166)+_0x52cf35;}}return _0x15292e;}))});}[_0x2b4704(0x2bd)](){const _0x6fd0c=_0x2b4704;var _0x4e09c7;let _0x48c08f=this[_0x6fd0c(0x1d8)][_0x6fd0c(0x18e)](h);return(_0x4e09c7=_0x48c08f==null?void 0x0:_0x48c08f[_0x6fd0c(0x307)])==null?_0x6fd0c(0x305):_0x4e09c7;}};W=b([y(0x0,n[_0x2b4704(0x309)]),y(0x1,(0x0,n[_0x2b4704(0x1ce)])(u[_0x2b4704(0x28e)])),y(0x2,(0x0,n[_0x2b4704(0x1ce)])(n['LocaleService']))],W);let G=class extends n[_0x2b4704(0x274)]{constructor(_0x38fe20,_0x1e9f89){const _0x38bbcb=_0x2b4704;super(),this['_HTTPService']=_0x38fe20,this[_0x38bbcb(0x1d8)]=_0x1e9f89,_(this,_0x38bbcb(0x320),!0x1),this['_initMergeInterceptor']();}[_0x2b4704(0x12d)](){const _0x643248=_0x2b4704;let _0x421227=this;this[_0x643248(0x115)](this[_0x643248(0x161)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,u['MergeInterceptorFactory'])({'isMatch'(_0x210723){const _0x5834cf=_0x643248;var _0x21e2e7;if(_0x210723[_0x5834cf(0x335)]==='POST'&&(_0x21e2e7=_0x210723[_0x5834cf(0x25b)])!=null&&_0x21e2e7[_0x5834cf(0x1df)]){let {objectID:_0x67a76e,objectType:_0x1ffd8e}=_0x210723[_0x5834cf(0x25b)]['body']||{};if(!_0x67a76e||_0x1ffd8e===void 0x0)return!0x1;let _0x286115=_0x421227[_0x5834cf(0x394)]()+'/'+_0x1ffd8e+_0x5834cf(0x387)+_0x67a76e+_0x5834cf(0x362);if(_0x210723['url']===_0x286115)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x44014f){var _0x230b05;return(_0x230b05=_0x44014f['requestParams'])==null?void 0x0:_0x230b05['body'];},'mergeParamsToRequest'(_0x5a8397,_0x41fdc0){const _0x519db6=_0x643248;let _0x3ce0a5=_0x421227[_0x519db6(0x394)]()+_0x519db6(0x2ff),_0x171ba0=_0x5a8397[_0x519db6(0x3af)]((_0xb498e4,_0x174845)=>{const _0x193757=_0x519db6;let {unitID:_0x43697c,objectID:_0x346f74,objectType:_0x395007,actions:_0x32467f}=_0x174845;return _0xb498e4[_0x43697c]||(_0xb498e4[_0x43697c]={}),_0xb498e4[_0x43697c][_0x346f74]||(_0xb498e4[_0x43697c][_0x346f74]={'objectID':_0x346f74,'objectType':_0x395007,'actions':[]}),_0xb498e4[_0x43697c][_0x346f74][_0x193757(0x133)][_0x193757(0x384)](..._0x32467f),_0xb498e4;},{}),_0x13cd81=[];for(let _0x5ea6d4 in _0x171ba0)for(let _0x1ef046 in _0x171ba0[_0x5ea6d4]){let {actions:_0x48a6fb,objectType:_0x51c7b5}=_0x171ba0[_0x5ea6d4][_0x1ef046],_0x20d801=[...new Set(_0x48a6fb)];_0x13cd81[_0x519db6(0x384)]({'unitID':_0x5ea6d4,'objectID':_0x1ef046,'objectType':_0x51c7b5,'actions':_0x20d801});}return new u[(_0x519db6(0x1c5))]('POST',_0x3ce0a5,{'headers':_0x41fdc0[_0x519db6(0x381)],'withCredentials':_0x41fdc0[_0x519db6(0x3a4)],'responseType':_0x41fdc0[_0x519db6(0x11f)],'body':{'requests':_0x13cd81}});}},{'distributeResult'(_0x4920a8,_0x77fe1c){const _0x1a1757=_0x643248;let {objectActions:_0x228c18}=_0x4920a8;return _0x77fe1c[_0x1a1757(0x2c1)](_0x34550c=>{const _0x126844=_0x1a1757;let {unitID:_0x9e0205,objectID:_0xa90695,actions:_0x4df1c3}=_0x34550c,_0x1621a6=_0x228c18[_0x126844(0x12c)](_0x4336dd=>_0x4336dd['unitID']===_0x9e0205&&_0x4336dd[_0x126844(0x349)]===_0xa90695);return{'config':_0x34550c,'result':{'actions':_0x4df1c3['map'](_0x3fe048=>_0x1621a6==null?void 0x0:_0x1621a6[_0x126844(0x133)][_0x126844(0x12c)](_0x2492f4=>_0x2492f4['action']===_0x3fe048))['filter'](_0x32bd5c=>!!_0x32bd5c),'error':_0x4920a8[_0x126844(0x2b8)]}};});}})}));}[_0x2b4704(0x394)](){const _0x3181c2=_0x2b4704;var _0x2873cd;let _0x5af826=this['_configService']['getConfig'](h);return(_0x2873cd=_0x5af826==null?void 0x0:_0x5af826[_0x3181c2(0x22d)])==null?'/universer-api/authz':_0x2873cd;}async[_0x2b4704(0x159)](_0x4da63d){const _0x27e27d=_0x2b4704;let _0x1d789c=this['_getAPIPrefixPath']()+'/'+_0x4da63d[_0x27e27d(0x388)]+'/object';return(await this[_0x27e27d(0x161)][_0x27e27d(0x2e7)](_0x1d789c,{'body':_0x4da63d}))['body'][_0x27e27d(0x349)]||'';}async[_0x2b4704(0x24f)](_0x558422){const _0x687d91=_0x2b4704;let _0x4dfdf2=this[_0x687d91(0x394)]()+_0x687d91(0x10c);return(await this[_0x687d91(0x161)][_0x687d91(0x2e7)](_0x4dfdf2,{'body':_0x558422}))[_0x687d91(0x1df)][_0x687d91(0x149)];}async['update'](_0x3d237b){const _0x2f3416=_0x2b4704;var _0x53bb9e;let _0x2cb3e3=this[_0x2f3416(0x394)]()+'/'+_0x3d237b[_0x2f3416(0x388)]+_0x2f3416(0x387)+_0x3d237b[_0x2f3416(0x349)],_0xf5b776=await this[_0x2f3416(0x161)][_0x2f3416(0x1fe)](_0x2cb3e3,{'body':_0x3d237b});if((_0xf5b776==null||(_0x53bb9e=_0xf5b776[_0x2f3416(0x1df)])==null||(_0x53bb9e=_0x53bb9e[_0x2f3416(0x2b8)])==null?void 0x0:_0x53bb9e[_0x2f3416(0x1a4)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x2b4704(0x2a4)](_0xe3104d){const _0x5433eb=_0x2b4704;let _0xc641e2=this[_0x5433eb(0x394)]()+'/'+_0xe3104d[_0x5433eb(0x388)]+_0x5433eb(0x387)+_0xe3104d[_0x5433eb(0x349)]+_0x5433eb(0x362);return(await this[_0x5433eb(0x161)]['post'](_0xc641e2,{'body':_0xe3104d}))[_0x5433eb(0x1df)][_0x5433eb(0x133)];}async['batchAllowed'](_0x3a7459){const _0x33ec93=_0x2b4704;let _0x4c66ed=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x33ec93(0x161)][_0x33ec93(0x2e7)](_0x4c66ed,{'body':{'requests':_0x3a7459}}))[_0x33ec93(0x1df)]['objectActions'];}async[_0x2b4704(0x23d)](_0x191910){const _0x17c26e=_0x2b4704;let _0xc92044=this[_0x17c26e(0x394)]()+'/'+_0x191910['objectType']+_0x17c26e(0x30a),_0x26cd6f=await this[_0x17c26e(0x161)][_0x17c26e(0x2e7)](_0xc92044,{'body':_0x191910});return{'roles':_0x26cd6f['body'][_0x17c26e(0x3b0)],'actions':_0x26cd6f[_0x17c26e(0x1df)][_0x17c26e(0x133)]};}async[_0x2b4704(0x110)](_0x21de61){const _0x3a3ec7=_0x2b4704;let _0x75aa68=this[_0x3a3ec7(0x394)]()+'/collaborator';await this[_0x3a3ec7(0x161)]['delete'](_0x75aa68,{'params':{'collaboratorID':_0x21de61[_0x3a3ec7(0x189)],'objectID':_0x21de61[_0x3a3ec7(0x349)],'unitID':_0x21de61[_0x3a3ec7(0x37b)]}});}async[_0x2b4704(0x31d)](_0x530641){const _0x4737a5=_0x2b4704;let _0x2c8e9d=this['_getAPIPrefixPath']()+_0x4737a5(0x2cb);await this[_0x4737a5(0x161)][_0x4737a5(0x356)](_0x2c8e9d,{'body':_0x530641});}async['createCollaborator'](_0xb14e9c){const _0x1eb2df=_0x2b4704;let _0x2c321f=this[_0x1eb2df(0x394)]()+_0x1eb2df(0x2cb);await this[_0x1eb2df(0x161)][_0x1eb2df(0x2e7)](_0x2c321f,{'body':_0xb14e9c});}async[_0x2b4704(0x2f9)](_0x5f1a0a){const _0x7295b6=_0x2b4704;var _0x444fb8;let _0x5af1ea=this['_getAPIPrefixPath']()+_0x7295b6(0x2cb),_0x26e4a7=await this[_0x7295b6(0x161)][_0x7295b6(0x287)](_0x5af1ea,{'params':{'objectID':_0x5f1a0a[_0x7295b6(0x349)],'unitID':_0x5f1a0a[_0x7295b6(0x37b)]}});return this['setCfgEnableObjInherit']((_0x444fb8=_0x26e4a7[_0x7295b6(0x1df)][_0x7295b6(0x13a)])==null?!0x1:_0x444fb8),_0x26e4a7[_0x7295b6(0x1df)][_0x7295b6(0x150)];}async['putCollaborators'](_0x1eb60b){const _0x12800a=_0x2b4704;let _0x5cab57=this[_0x12800a(0x394)]()+_0x12800a(0x2cb);await this[_0x12800a(0x161)]['put'](_0x5cab57,{'body':_0x1eb60b});}['setCfgEnableObjInherit'](_0x5c94fe){this['_cfgEnableObjInherit']=_0x5c94fe;}[_0x2b4704(0x264)](){const _0x49bddc=_0x2b4704;return this[_0x49bddc(0x320)];}};G=b([y(0x0,(0x0,n[_0x2b4704(0x1ce)])(u[_0x2b4704(0x28e)])),y(0x1,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x309)]))],G);function Ke(_0x58e8f6){const _0x15ea2b=_0x2b4704;let _0x23e18e=atob(_0x58e8f6),_0x55e4bd=new Uint8Array(_0x23e18e['length']);for(let _0x4ac1b5=0x0;_0x4ac1b5<_0x23e18e[_0x15ea2b(0x2f8)];_0x4ac1b5++)_0x55e4bd[_0x4ac1b5]=_0x23e18e['charCodeAt'](_0x4ac1b5);return _0x55e4bd;}function qe(_0x4daf2a){const _0x58a2f8=_0x2b4704;let _0x1564b3='';for(let _0x3969d2=0x0;_0x3969d2<_0x4daf2a[_0x58a2f8(0x2f8)];_0x3969d2++)_0x1564b3+=String['fromCharCode'](_0x4daf2a[_0x3969d2]);return btoa(_0x1564b3);}function Je(_0x1534f2,_0x229ad5){const _0x735bc=_0x2b4704;let _0x5d97e5=Ke(_0x229ad5),_0x5546c2=(0x0,m['randomBytes'])(0x10);return qe((0x0,m[_0x735bc(0x2d5)])(_0x5546c2,(0x0,p['cbc'])(_0x5d97e5,_0x5546c2)[_0x735bc(0x129)]((0x0,m[_0x735bc(0x30f)])(_0x1534f2))));}function Ye(){const _0x378d4b=_0x2b4704;let _0x4eb602=(0x0,d['getGlobalObject'])()[_0x378d4b(0x281)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x4eb602){let _0x2c01bd={'time':Math[_0x378d4b(0x1cb)](Date[_0x378d4b(0x3b8)]()/0x3e8),'domain':location['hostname']};return Je(JSON[_0x378d4b(0x22b)](_0x2c01bd),_0x4eb602);}}let K=class{constructor(_0x1ca844){const _0x9029e1=_0x2b4704;this[_0x9029e1(0x3c7)]=_0x1ca844,this['_initRequestHeader']();}[_0x2b4704(0x380)](){const _0x504f18=_0x2b4704;this[_0x504f18(0x3c7)][_0x504f18(0x3e2)]({'interceptor':(_0x3a22fd,_0xc6d970)=>{const _0x5a69cc=_0x504f18;let _0x4d9ede=Ye();return _0x4d9ede&&_0x3a22fd[_0x5a69cc(0x381)]['set'](_0x5a69cc(0x2ae),_0x4d9ede),_0xc6d970(_0x3a22fd);}});}};K=b([y(0x0,(0x0,n['Inject'])(u[_0x2b4704(0x28e)]))],K);let q=class extends n[_0x2b4704(0x2a0)]{constructor(_0x10736c,_0x4e6ba9,_0x29ddd3){const _0x35234e=_0x2b4704;super(),this[_0x35234e(0x35b)]=_0x10736c,this['_snapshotService']=_0x4e6ba9,this['_localCacheService']=_0x29ddd3,_(this,'_unitInfo$',new a['BehaviorSubject'](null)),_(this,_0x35234e(0x27e),new a['Subject']()),_(this,'unitInfo$',this[_0x35234e(0x321)][_0x35234e(0x171)]()),_(this,'unitLoaded$',this['_unitLoaded$'][_0x35234e(0x171)]());}[_0x2b4704(0x2cf)](){const _0x1ed874=_0x2b4704;super[_0x1ed874(0x2cf)](),this[_0x1ed874(0x27e)][_0x1ed874(0x391)](),this['_unitInfo$'][_0x1ed874(0x391)]();}async['loadUnitOfRevision'](_0x4126b1,_0x2f30d9,_0x1c679d){const _0x30b55e=_0x2b4704;this[_0x30b55e(0x321)][_0x30b55e(0x383)]({'unitId':_0x4126b1,'type':_0x2f30d9});let _0x2b955c=null;switch(_0x2f30d9){case n[_0x30b55e(0x372)][_0x30b55e(0x375)]:_0x2b955c=await this[_0x30b55e(0x244)][_0x30b55e(0x30e)](_0x4126b1,_0x1c679d);break;case n[_0x30b55e(0x372)][_0x30b55e(0x299)]:_0x2b955c=await this[_0x30b55e(0x244)]['loadDoc'](_0x4126b1,_0x1c679d);break;case n[_0x30b55e(0x372)]['UNIVER_SLIDE']:_0x2b955c=await this[_0x30b55e(0x244)][_0x30b55e(0x36d)](_0x4126b1,_0x1c679d);break;case n[_0x30b55e(0x372)][_0x30b55e(0x288)]:_0x2b955c=await this[_0x30b55e(0x244)][_0x30b55e(0x3cb)](_0x4126b1,_0x1c679d);break;default:this[_0x30b55e(0x35b)][_0x30b55e(0x2b8)](_0x30b55e(0x21e),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x2b955c&&this[_0x30b55e(0x27e)][_0x30b55e(0x383)](_0x2b955c),_0x2b955c;}async[_0x2b4704(0x38d)](_0x2d6dd5,_0x255efc,_0x5f543d){const _0x36922a=_0x2b4704;var _0x201a6c;this[_0x36922a(0x321)][_0x36922a(0x383)]({'unitId':_0x2d6dd5,'type':_0x255efc,'subUnitId':_0x5f543d});let _0x710645=0x0,_0x5be9e0=await((_0x201a6c=this[_0x36922a(0x10b)])==null?void 0x0:_0x201a6c[_0x36922a(0x1de)](_0x2d6dd5));return _0x5be9e0&&(_0x5be9e0['awaitingChangeset']||_0x5be9e0[_0x36922a(0x296)][_0x36922a(0x2f8)]!==0x0)&&(_0x710645=_0x5be9e0[_0x36922a(0x2fd)]),_0x710645===0x0&&this[_0x36922a(0x35b)][_0x36922a(0x216)](_0x36922a(0x21e),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x36922a(0x1ac)](_0x2d6dd5,_0x255efc,_0x710645);}};q=b([y(0x0,n[_0x2b4704(0x2ac)]),y(0x1,(0x0,n['Inject'])(t[_0x2b4704(0x18f)])),y(0x2,(0x0,n[_0x2b4704(0x1d7)])(C))],q);let J=class{constructor(_0x1266fc,_0x2d8a3c,_0x2665f6){const _0x650a1e=_0x2b4704;this[_0x650a1e(0x3c7)]=_0x1266fc,this['_configService']=_0x2d8a3c,this['_univerInstanceService']=_0x2665f6,_(this,_0x650a1e(0x178),0x0),_(this,_0x650a1e(0x3c1),new a[(_0x650a1e(0x119))]()),_(this,_0x650a1e(0x181),this['_change$']),_(this,_0x650a1e(0x1e6),new Map());}[_0x2b4704(0x230)](_0x268517){const _0x5a3fa9=_0x2b4704;this[_0x5a3fa9(0x178)]=_0x268517,this['_change$'][_0x5a3fa9(0x383)](_0x268517);}['getImageSourceCache'](_0x570f63,_0x246742){const _0x14d955=_0x2b4704;if(_0x246742===f[_0x14d955(0x2f5)][_0x14d955(0x31a)]){let _0x5c7305=new Image();return _0x5c7305['src']=_0x570f63,_0x5c7305;}return this[_0x14d955(0x1e6)][_0x14d955(0x287)](_0x570f63);}['addImageSourceCache'](_0xe2aaeb,_0x1b4c57,_0x3a1529){const _0x574d68=_0x2b4704;_0x1b4c57===f[_0x574d68(0x2f5)][_0x574d68(0x31a)]||_0x3a1529==null||this['_imageSourceCache'][_0x574d68(0x399)](_0xe2aaeb,_0x3a1529);}async[_0x2b4704(0x142)](_0x207af3){const _0x20f49d=_0x2b4704;try{let _0x3c2c14=this[_0x20f49d(0x250)](this[_0x20f49d(0x14e)](),''+_0x207af3),_0x52db8a=(await this[_0x20f49d(0x3c7)][_0x20f49d(0x287)](_0x3c2c14))[_0x20f49d(0x1df)];if(_0x52db8a['error']&&_0x52db8a['error'][_0x20f49d(0x1a4)]===o['ErrorCode']['OK']){let _0x566924=(0x0,n[_0x20f49d(0x1bf)])(_0x52db8a[_0x20f49d(0x213)],this[_0x20f49d(0x25d)]());return Promise[_0x20f49d(0x271)](_0x566924);}return Promise[_0x20f49d(0x26a)](_0x52db8a[_0x20f49d(0x2b8)]);}catch(_0x523690){return Promise['reject'](_0x523690);}}async[_0x2b4704(0x2d6)](_0x38a0c8){const _0x24a8c9=_0x2b4704;let _0x4aef7b='';if(!f[_0x24a8c9(0x153)]['includes'](_0x38a0c8[_0x24a8c9(0x15c)]))return this[_0x24a8c9(0x1ca)](),Promise[_0x24a8c9(0x26a)](Error(f[_0x24a8c9(0x1d6)]['ERROR_IMAGE_TYPE']));if(_0x38a0c8[_0x24a8c9(0x155)]>(0x0,f[_0x24a8c9(0x144)])())return this[_0x24a8c9(0x1ca)](),Promise[_0x24a8c9(0x26a)](Error(f[_0x24a8c9(0x1d6)][_0x24a8c9(0x3b2)]));try{let _0x1ed795=new FormData();_0x1ed795[_0x24a8c9(0x20a)]('file',_0x38a0c8);let _0x14cfda=this[_0x24a8c9(0x2fb)]['getFocusedUnit'](),_0x14fc22=_0x14cfda==null?void 0x0:_0x14cfda[_0x24a8c9(0x17c)]();if(!_0x14fc22)throw Error(_0x24a8c9(0x14b));let _0x5df5da=this[_0x24a8c9(0x22a)]()+_0x24a8c9(0x195)+_0x38a0c8['size'][_0x24a8c9(0x21f)]()+_0x24a8c9(0x342)+o['FileSource']['UnitEmbedded']+'&assign='+encodeURIComponent(_0x14fc22),_0x14ebfa={'body':_0x1ed795},_0xff176b=(await this[_0x24a8c9(0x3c7)][_0x24a8c9(0x2e7)](_0x5df5da,_0x14ebfa))[_0x24a8c9(0x1df)];if(typeof _0xff176b[_0x24a8c9(0x113)]!=_0x24a8c9(0x2e4))return this[_0x24a8c9(0x1ca)](),Promise['reject'](Error(f[_0x24a8c9(0x1d6)]['ERROR_IMAGE']));_0x4aef7b=_0xff176b[_0x24a8c9(0x113)];}catch{return this[_0x24a8c9(0x1ca)](),Promise[_0x24a8c9(0x26a)](Error(f[_0x24a8c9(0x1d6)][_0x24a8c9(0x1e7)]));}return new Promise((_0x55a244,_0x4c7944)=>{const _0x54596a=_0x24a8c9;let _0x501017=new FileReader();_0x501017['readAsDataURL'](_0x38a0c8),_0x501017[_0x54596a(0x126)]=_0x1bb7b2=>{const _0x54026d=_0x54596a;var _0x3b3e2d;let _0x29e05e=(_0x3b3e2d=_0x1bb7b2['target'])==null?void 0x0:_0x3b3e2d[_0x54026d(0x14c)];if(_0x29e05e==null){this[_0x54026d(0x1ca)](),_0x4c7944(Error(f[_0x54026d(0x1d6)][_0x54026d(0x1e7)]));return;}_0x55a244({'imageId':(0x0,n[_0x54026d(0x310)])(0x6),'imageSourceType':f[_0x54026d(0x2f5)][_0x54026d(0x22e)],'source':_0x4aef7b,'base64Cache':_0x29e05e,'status':f[_0x54026d(0x1d6)]['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x2b4704(0x22a)](){const _0x41e5cf=_0x2b4704;var _0x48e784;let _0x228882=this[_0x41e5cf(0x1d8)][_0x41e5cf(0x18e)](h);return(_0x48e784=_0x228882==null?void 0x0:_0x228882[_0x41e5cf(0x345)])==null?_0x41e5cf(0x137):_0x48e784;}['_getSignURL'](){const _0x2175a5=_0x2b4704;var _0x26c087;let _0x58853e=this[_0x2175a5(0x1d8)]['getConfig'](h);return(_0x26c087=_0x58853e==null?void 0x0:_0x58853e[_0x2175a5(0x2d7)])==null?_0x2175a5(0x29a):_0x26c087;}['_getDownloadEndpointURL'](){const _0x3e79ff=_0x2b4704;var _0x111ff0;let _0x2abc54=this[_0x3e79ff(0x1d8)][_0x3e79ff(0x18e)](h);return(_0x111ff0=_0x2abc54==null?void 0x0:_0x2abc54[_0x3e79ff(0x3a7)])==null?location['origin']:_0x111ff0;}[_0x2b4704(0x250)](_0x19deb3,_0x51bf76){const _0x4d28e3=_0x2b4704;return _0x19deb3[_0x4d28e3(0x34a)](_0x4d28e3(0x242),_0x51bf76);}[_0x2b4704(0x1ca)](){const _0x27585b=_0x2b4704;--this['_waitCount'],this[_0x27585b(0x3c1)][_0x27585b(0x383)](this[_0x27585b(0x178)]);}};J=b([y(0x0,(0x0,n[_0x2b4704(0x1ce)])(u[_0x2b4704(0x28e)])),y(0x1,n['IConfigService']),y(0x2,(0x0,n[_0x2b4704(0x1ce)])(n['IUniverInstanceService']))],J);let Y=class{constructor(_0x20488f,_0x449928){const _0x570e5d=_0x2b4704;this[_0x570e5d(0x1d8)]=_0x20488f,this[_0x570e5d(0x161)]=_0x449928;}[_0x2b4704(0x394)](){const _0x42ebaf=_0x2b4704;var _0x232973;let _0x3047fb=this['_configService'][_0x42ebaf(0x18e)](h);return(_0x232973=_0x3047fb==null?void 0x0:_0x3047fb[_0x42ebaf(0x22d)])==null?'/universer-api/authz':_0x232973;}async[_0x2b4704(0x24f)](_0x462c86){const _0x239a5c=_0x2b4704;let _0x5dc5f1=this[_0x239a5c(0x394)]()+_0x239a5c(0x2cb);return{'list':[{'title':_0x239a5c(0x179),'mentions':(await this[_0x239a5c(0x161)][_0x239a5c(0x287)](_0x5dc5f1,{'params':{'objectID':_0x462c86['unitId'],'unitID':_0x462c86[_0x239a5c(0x19e)]}}))[_0x239a5c(0x1df)]['collaborators'][_0x239a5c(0x2c1)](_0x5ab443=>({'objectId':_0x5ab443['id'],'name':_0x5ab443[_0x239a5c(0x3c4)][_0x239a5c(0x111)],'metadata':{'icon':_0x5ab443[_0x239a5c(0x3c4)]['avatar']},'label':_0x5ab443[_0x239a5c(0x3c4)][_0x239a5c(0x111)],'objectType':n[_0x239a5c(0x3e4)][_0x239a5c(0x328)]})),'metadata':{},'type':n[_0x239a5c(0x3e4)]['PERSON']}]};}};function _0x637e(){const _0x4a54d1=['_showConflictNotification','CHANGESET_ACK','version','compose','routeKey','[OfflineState]:\x20received\x20changeset.','/block/','getFocusedUnit','UnitStatus','_replayCachedMutations','_getUploadFileURL','stringify','AwaitingWithPendingState','authzUrl','UUID','fetching\x20missing\x20changesets\x20from\x20','setWaitCount','/unit/','[SyncedState]:\x20received\x20rejection.','init','OfflineState','ITelemetryService','__splitChunk__','_onLocalMutation','_state$','JSONX','shareReplay','_scheduleCompleteTimestamp','_config','listRoles','editing\x20status\x20changed\x20to','_toggleOffline','transformUndoRedo','DocCollaborationEntity','{fileID}','getResourcesRequest','_snapshotService','filter','originalMeta','deserializeToCombResponse','_clearLocalCache','LIVESHARE_NEW_HOST','max','collaboration-client.local-cache-service','&to=','_status$','forEach','list','_replaceFileID','_createInitialState','enableOfflineEditing','_resendTimeout','639663ObHVFe','_onUserLeave','transformChangesets','COMMENT_UPDATE','SetSelectionsOperation','_onConnectionOpen','some','requestParams','decorate','_getDownloadEndpointURL','_compressMutationService','_commentUpdate$','FileSource','SYNCED','UniverCollaborationClientPlugin','awaiting_with_pending','getCfgEnableObjInherit','_changesetSessionId','_clearRetryConnectingTimer','splice','from','unsubscribe','reject','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','ONLINE','close','onRemoteAck','_scheduleCollaborationTimeoutTimer','FETCH_MISSING','resolve','88810RrhSDk','_state','Disposable','RETRY_CONNECTING_MAX_COUNT_KEY','OTHER_CLIENTS_EDITING','_docStateChangeManagerService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','DEFAULT_FILE_NAME','onMissedChangesetFetched','_checkMissing','data','getAllMembers','_unitLoaded$','getCollabEntity','_socket','__Key__','toggleOffline','_telemetryInfo','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_roomCreated$','c2Prime','get','UNIVER_BASE','DEFAULT_WS_SESSION_TICKET_URL','_init','SHOULD_CLOSE_CONN','_onJoinRoomEvent','URL','HTTPService','cmd','_sender','ISingleActiveUnitService','RichTextEditingMutation','m2Prime','_localeService','updateMember','mutations','_onFetchMissResult','LIVESHARE_REQUEST_HOST','UNIVER_DOC','/universer-api/file/{fileID}/sign-url','_acknowledgeAwaiting','iterator','4268950PELLDH','PENDING','/resources','RxDisposable','[UniverCollaborationClientPlugin]','_onRecvEvent','_networkConditionService','allowed','NEW_CHANGESETS','SheetsSelectionsService','_createHandler','_updateLocalCache','_commentService','csRejEvent','CollaborationSessionService','ILogService','_remoteChangesetQueue','x-univer-host','LEAVE','_transitionLocked','[CollaborationEntity]','_sessions','[SyncedState]:\x20received\x20acknowledgement.','emitEvent','setConfig','createInstance','default','error','_transformRemoteChangesetByIMECache','workbook','toDisposable','online$','_getLoginPath','_telemetryService','SNAPSHOT_URL_KEY','_transformStateCache','map','newCsEvent','c1Prime','_members$','transformMutationsWithChangeset','_clearScheduledTask','_onRemoteChangeset','onSyncEditingCollabCursor','UPDATE_PERMISSION_OBJ','commentUpdate$','/collaborator','_singleActiveUnitService','appendMutation','getWorkbookSelections','dispose','_executeRemoteChangeset','CollaborationAttachmentIoService','apply','[PendingState]:\x20received\x20acknowledgement.','UnitEmbedded','concatBytes','saveImage','signUrlServerUrl','getCollabEntity$','_permissionService','getMember','sessionStatus','fetchThroughInterceptors','connection\x20error','clear','_collaborationSessionService','LIVESHARE_TERMINATE','enableAuthServer','CommandType','HEARTBEAT','string','_startTelemetryCollaborationNewChangeset','EnsureSlideMasterPageMutation','post','_collaborationTimeoutTimer','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','encode','onTransformSelections','call','concatMap','_sendingTimer','AddSlidePageMutation','IContextService','_transformIMECache','CollaborationUIEventService','getUnitType','_instanceService','ImageSourceType','INGEST','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','length','listCollaborators','upload','_univerInstanceService','getLocalCacheKey','rev','_onRemoteRetry','/-/object/-/batch_allowed','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','mapDocumentTypeToUniverInstanceType','JOINING','memberID','ISocketService','/universer-api/oidc/authpage','retryConnectingInterval','loginUrlKey','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','IConfigService','/role','CollaborationEvent','SUBMIT_CHANGESET','RECV','loadSheet','utf8ToBytes','generateRandomId','onRemoteRej','[CollaborationSessionService]','catch','/universer-api/uniscript','submit\x20changeset\x20error!','IDLE','PERMISSION_REJ','JOIN','onTransformRemoteChangesetByIMECache','BASE64','onTransformIME','enableSingleActiveInstanceLock','updateCollaborator','delete','pluginName','_cfgEnableObjInherit','_unitInfo$','session.room-full','[PendingState]:\x20received\x20rejection.','IMentionIOService','_toggleOnline','_syncEditingCollabCursor','_resendTimer','PERSON','CombCmd','_onUserJoin','endsWith','attachment','FAIL','_candidateSocket','saveSnapshot','_maxTotalRetryTimeout','function','_getSendChangesetTimeout','Quantity','_handlerCallback','method','_exhaustRemoteChangesetQueue','changesets','_socket$','HEARTBEAT_TIMEOUT_KEY','updateOfflineData','LocalUndoRedoService','COMPRESS_MUTATION_SEND','transformSelections','_initCloseConn','ILocalCacheService','_commandService','_onMessage','&source=','_type','isArray','uploadFileServerUrl','take','ICollaborationSocketService','leaveEvent','objectID','replace','toStringTag','range','[OfflineState]:\x20received\x20acknowledgement.','_event$','_onConflict','startTime','_rescheduleHeartbeat','_tryReconnect','270366CVTtWd','socket\x20close','356582jPZpOV','patch','_getCtorByUniverInstanceType','requireSession','collabWebSocketUrl','message$','_logService','USERS_LEAVE','CHANGESET_SHOULD_RETRY','_sendHeartbeat','synced','close$','closeSession','/allowed','error$','univer-pro.collaboration-client.single-active-unit-service','onTransformRemoteChangesetByStateCache','/fetchmissing?from=','BehaviorSubject','ws://127.0.0.1:8000/universer-api/comb/connect','every','_transformUndoredo','/rev/','_changesetReqId','loadSlide','toggleOnline','_revisionService','_getUndoStack','CmdRspCode','UniverInstanceType','_substituteRedoStack','NO_OTHER_CLIENTS_EDITING','UNIVER_SHEET','IPermissionService','_pendingMutations','ICommandService','Module','textEncoder','unitID','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','AuthzIoHttpService','dispose$','transformStack\x20failed!','_initRequestHeader','headers','[CollaborationState]:\x20apply\x20error!','next','push','editingUnit','textRanges','/object/','objectType','_resendWithTimeout','_onCombEvent','PERMISSION_DENIED','ISnapshotServerService','loadUnit','_collaborationUIEventService','CommentService','initWorkbookPermissionChange','complete','getCurrentRevOfUnit','_getRedoStack','_getAPIPrefixPath','takeUntil','removeMember','UNIVER_SLIDE','prototype','set','Univer','getCurrentUser','fromCollab','selections','onStateChange','Injector','registerDependencies','CHANGESET_REJ','collaboration-client.config','_members','withCredentials','_timeoutTimer','_clearTimeoutTimer','downloadEndpointUrl','_awaitingChangeset','IUniverInstanceService','session','[CollaborationSession]','event$','_userManagerService','UNISCRIPT_RUN','reduce','roles','awaitingChangeset','ERROR_EXCEED_SIZE','getCurrentSelections','members','_registerDependencies','UNIVER_COLLABORATION_CLIENT_PLUGIN','onRemoteChangeset','now','_lockTransition','_acknowledgedAwaitingRevision','delay','base-ui.attachment-io.service','[PendingState]:\x20unhandled\x20univer\x20type:\x20','equals','params','localCacheService','_change$','_stopTelemetryCollaborationNewChangeset','snapshot','subject','getTypeOfUnitAdded$','_disableEditing','_httpService','_entities','_eventService','constructor','loadBase','_transformStack','\x20-\x20','CollaborationSocketService','updateSnapshot','touchDependencies','JOIN_ROOM_PERMISSION_DENIED','parseProtocolChangeset','_onRemoteRejected','send','sessionStatus$','CollaborationController','location','_queuedRemoteChangesets','MUTATION','liveShareOperation','Error\x20on\x20receiving\x20event','DocStateChangeManagerService','HELLO','_injector','HEARTBEAT_INTERVAL_KEY','isTransformMutationsWithChangesetSuccess','awaiting','registerHTTPInterceptor','_collabSessionService','MentionType','_transformRemoteChangesetByStateCache','onSendChangeset','Tools','_memberService','onCommentUpdate','_listenToNetworkCondition','saveAttachment','session.join-failed','onlyLocal','_snapshotServerService','copyFileMeta','_incrementRevisionNumber','4dLVvNX','getInterceptPoints','IUndoRedoService','RETRY_CONNECTING_MAX_COUNT','_emitMembers','_transformSelections','_onOffline','reqId','_unlockTransition','_getAPIPrefix','capture','ITransformService','onMutationExecutedForCollab','_localCacheService','/-/object/list','setShowComponents','_updateStatus','/new_changes','deleteCollaborator','name','merge','FileId','JOIN_ROOM_NOT_EXISTS','disposeWithMe','sendChangesetTimeout','WorkbookEditablePermission','not_collab','Subject','ThresholdInterceptorFactory','SessionStatus','MentionIoHttpService','state','offline','responseType','onTransformState','_getConfig','_startCollaboration','_handler','NOT_COLLAB','GLOBAL_ROOMS_CNT_EXCEEDS','onload','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','JOIN_ROOM_FULL','encrypt','onLocalMutation','socket\x20open.','find','_initMergeInterceptor','joinRsp','_sessionStatus$','socketService','MSG_FOR_ERROR','CompressMutationService','actions','SyncedState','unit-cache-','RevisionService','/universer-api/stream/file/upload','readyForCollab','CONFLICT','cfgEnableObjInherit','pauseCollaboration','_upload','IImageIoService','/universer-api/user/session-ticket','_undoRedoService','CollaborationUIEventId','UniverNetworkPlugin','getImage','_sendHeartbeatTimer','getDrawingImageAllowSize','getMemberID','\x20to\x20','PendingState','_transformAndApplyRemoteChangeset','objects','_clearCollaborationTimeoutTimer','unitId\x20is\x20not\x20found','result','CollaborationEntity','_getSignURL','_sheetTransformSelectionsService','collaborators','_createSocket','findIndex','DRAWING_IMAGE_ALLOW_IMAGE_LIST','InsertSheetMutation','size','PSEUDO_FETCH_MISSING_RESULT','_tryEnsureSocket','INetworkConditionService','create','_handleRemoteChangesets','LIVESHARE_FETCH_OPERATIONS','type','collaboration-client.auth.needGotoLoginAlert','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','mergeOverrideWithDependencies','session.room-permission-denied','_HTTPService','AttachmentSourceType','/universer-api/comb','commentUpdateEvent','onRemoteRetry','?url=','_socketMessageSubscription','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','subscribe','_updateState','SOCKET_FAILED','_joinRoom','stopTime','_roomMembers','_schedule','getActiveSheet','asObservable','MoveSlidePageMutation','focused$','getSnapshotAPIPath','_onConnectionFailed','CLOSE_ROOM','confirm','_waitCount','People','LIVESHARE_OPERATION','slice','getUnitId','userID','saveSheetBlock','isTransformChangesetsSuccess','_fetchMissChangesets','change$','href','HEARTBEAT_INTERVAL','EmptyMutationInfo','interceptor','collaMsg','univer-pro.collaboration-client.network-condition.service','getRoom','collaboratorID','_socketService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','fetchMiss','CollaborationSession','getConfig','SnapshotService','indexOf','_transformService','fetch_missing','_applyRemoteChangeset','state$','?size=','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','revision','_retryCount','status$','pending','OFFLINE','\x0aCurrent:\x20','_waitForHeartbeatResponse','unitId','getValue','_substituteUndoStack','values','sid','LocaleService','code','status','getTypeOfUnitDisposed$','unknown','USERS_ENTER','override','text-x','reconnect','loadUnitOfRevision','OTHER_CLIENT_EDITING','has','onMissingChangesets','isInternalEditorID','number','conflict','createSocket','_unitID','_acknowledgeAwaitingIfReady','startsWith','duration','\x0aAfter:\x20','accept','&assign=','DependentOn','CollaborationImageIoService','_createInitialStateImpl','updatePermissionPoint','resolveWithBasePath','2378656swAOBi','_collaborationPaused','parseChangesetToProtocol','getTime','9CKArqC','HTTPRequest','maxSize','fetchMissingChangesets','incrementRevOfUnit','isTransformMutationsWithChangesetFailure','_decreaseWaiting','floor','DisposableCollection','onStarting','Inject','94094gZRmHP','_undoStacks','b64DecodeUnicode','_clearHeartbeatTimer','[CollaborationSessionService]:\x20socket\x20error','ApplyBaseJson1Mutation','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','ImageUploadStatusType','Optional','_configService','createIdentifier','eventID','_initUnitPermissionChange','[CollaborationUndoRedoService]','defineProperty','loadOfflineData','body','sheets','localeService','_isEchoedAwaitingChangeset','csShouldRetryEvent','getLatestCsReqIdBySid','_shouldReportTelemetry','_imageSourceCache','ERROR_IMAGE','_submitChangeset','SOCKET_FAILED_RETRY','_clearRedo','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','ReplaySubject','object','waitForRoom$','_onRemoteACK','baseRev','_getCurrentRevision','_socketReady','title','OPTIONAL','1.0.0-alpha.1','_entityInit$','executeCommand','univer-pro.collaboration-client-socket-service','roomInfos','min','LOCAL_CACHE_INTERVAL','[OfflineState]:\x20received\x20rejection.','SUBMIT_CHANGESET_TIMEOUT','put','@univerjs-pro/collaboration-client','pipe','symbol','unit','_retryConnectingTimer','HEARTBEAT_TIMEOUT','UPDATE_CURSOR','COMPRESS_MUTATION_APPLY','liveShareNewHost','isPermissionRej','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','append','updatePermissionObjEvent','add','JOIN_ROOM_FAILED','enableCollaboration','MemberService','_isPermissionRej','open$','UniverCollaborationPlugin','url','_throwTelemetryCollaborationNewChangeset','IAuthzIoService','debug','getSheetId','7iZtHbQ','_clearUndo','resend','backupOfflineData','shouldCloseConn','CollaborativeUndoRedoService','[DataLoaderService]','toString'];_0x637e=function(){return _0x4a54d1;};return _0x637e();}Y=b([y(0x0,(0x0,n['Inject'])(n['IConfigService'])),y(0x1,(0x0,n[_0x2b4704(0x1ce)])(u['HTTPService']))],Y);let X=class extends n['RxDisposable']{constructor(_0x564fcb,_0x58ec1e,_0x5aa675,_0x26e4ed,_0x12e1b5){const _0x8cdf20=_0x2b4704;super(),this['_injector']=_0x564fcb,this[_0x8cdf20(0x2fb)]=_0x58ec1e,this[_0x8cdf20(0x2d9)]=_0x5aa675,this[_0x8cdf20(0x2df)]=_0x26e4ed,this[_0x8cdf20(0x38e)]=_0x12e1b5,this[_0x8cdf20(0x1db)](),this[_0x8cdf20(0x33e)]();}['_initCloseConn'](){const _0xeb245f=_0x2b4704;let _0x30f94a=async _0x2dc2b1=>{const _0x3477d9=_0x2cb1;(await this['_collaborationSessionService'][_0x3477d9(0x358)](_0x2dc2b1))[_0x3477d9(0x3ac)]['pipe']((0x0,c[_0x3477d9(0x245)])(_0x50d68f=>_0x50d68f[_0x3477d9(0x1da)]===t[_0x3477d9(0x30b)][_0x3477d9(0x28b)]),(0x0,c[_0x3477d9(0x395)])(this[_0x3477d9(0x37e)]))[_0x3477d9(0x169)](_0x2b6fe8=>{const _0x40bf39=_0x3477d9;let {reason:_0x29a0e1}=_0x2b6fe8[_0x40bf39(0x27c)];this[_0x40bf39(0x38e)][_0x40bf39(0x2b4)]({'id':_0x40bf39(0x176),'data':_0x29a0e1}),this[_0x40bf39(0x2d9)][_0x40bf39(0x1be)](new i[(_0x40bf39(0x117))](_0x2dc2b1)['id'],!0x1),this['_collaborationSessionService'][_0x40bf39(0x361)](_0x2dc2b1);});};(0x0,a[_0xeb245f(0x112)])(this[_0xeb245f(0x2fb)][_0xeb245f(0x3c5)](n[_0xeb245f(0x372)]['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitAdded$'](n[_0xeb245f(0x372)][_0xeb245f(0x299)]),this[_0xeb245f(0x2fb)][_0xeb245f(0x3c5)](n['UniverInstanceType']['UNIVER_BASE']))['pipe']((0x0,c[_0xeb245f(0x2c1)])(_0x556f8f=>_0x556f8f[_0xeb245f(0x202)][_0xeb245f(0x17c)]()),(0x0,c[_0xeb245f(0x245)])(_0x4684cb=>!(0x0,n['isInternalEditorID'])(_0x4684cb)),(0x0,c[_0xeb245f(0x395)])(this[_0xeb245f(0x37e)]))[_0xeb245f(0x169)](_0xed4db3=>{_0x30f94a(_0xed4db3);});}['_initUnitPermissionChange'](){const _0x202c6f=_0x2b4704;let _0x31c862=async _0xbf7821=>{const _0x142c63=_0x2cb1;let _0x1ae8da=await this[_0x142c63(0x2df)]['requireSession'](_0xbf7821),_0x5ee916=this[_0x142c63(0x3de)]['get'](i['SheetPermissionInitController']);_0x1ae8da[_0x142c63(0x3ac)]['pipe']((0x0,c[_0x142c63(0x245)])(_0x5a20cf=>_0x5a20cf[_0x142c63(0x1da)]===t[_0x142c63(0x30b)][_0x142c63(0x2c9)]),(0x0,c[_0x142c63(0x395)])(this[_0x142c63(0x37e)]))[_0x142c63(0x169)](_0x2cafb4=>{const _0x1da312=_0x142c63;let {objectId:_0x143785}=_0x2cafb4[_0x1da312(0x27c)];_0x143785===_0xbf7821?_0x5ee916[_0x1da312(0x390)](_0xbf7821):_0x5ee916['refreshPermission'](_0xbf7821,_0x143785);});};(0x0,a[_0x202c6f(0x112)])(this[_0x202c6f(0x2fb)][_0x202c6f(0x3c5)](n[_0x202c6f(0x372)][_0x202c6f(0x375)]))[_0x202c6f(0x200)]((0x0,c[_0x202c6f(0x2c1)])(_0x2f5230=>_0x2f5230[_0x202c6f(0x202)][_0x202c6f(0x17c)]()),(0x0,c[_0x202c6f(0x245)])(_0x57456b=>!(0x0,n[_0x202c6f(0x1b0)])(_0x57456b)),(0x0,c[_0x202c6f(0x395)])(this[_0x202c6f(0x37e)]))[_0x202c6f(0x169)](_0x416423=>{_0x31c862(_0x416423);});}};X=b([y(0x0,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x1,n[_0x2b4704(0x3a9)]),y(0x2,n[_0x2b4704(0x376)]),y(0x3,(0x0,n['Inject'])(V)),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(v))],X);let Z=class{constructor(_0x597a03,_0x1aaee5){const _0x82fd1c=_0x2b4704;this[_0x82fd1c(0x1d8)]=_0x597a03,this['_httpService']=_0x1aaee5;}async['getUnitOnRev'](_0x5639c4,_0x4bf5c7){const _0x3b4829=_0x2b4704;var _0x2507c7;let {unitID:_0x38fb77,type:_0x529e8b,revision:_0x37ce3d=0x0}=_0x4bf5c7,_0x401c7d=this[_0x3b4829(0x174)]()+'/'+_0x529e8b+_0x3b4829(0x231)+_0x38fb77+_0x3b4829(0x36b)+_0x37ce3d,_0x1a2682=(await this[_0x3b4829(0x3c7)][_0x3b4829(0x287)](_0x401c7d))['body'],_0x453387=(_0x2507c7=_0x1a2682[_0x3b4829(0x3c3)])==null?void 0x0:_0x2507c7[_0x3b4829(0x2ba)];if(_0x453387){let _0x433545=_0x453387==null?void 0x0:_0x453387[_0x3b4829(0x246)];_0x453387[_0x3b4829(0x246)]=t[_0x3b4829(0x37a)][_0x3b4829(0x2ea)]((0x0,t[_0x3b4829(0x1d1)])(_0x433545)),Object['entries'](_0x453387[_0x3b4829(0x1e0)])[_0x3b4829(0x24e)](([,_0x15a59d])=>{const _0x478d6d=_0x3b4829;let _0x41e524=_0x15a59d[_0x478d6d(0x246)];_0x15a59d[_0x478d6d(0x246)]=t[_0x478d6d(0x37a)][_0x478d6d(0x2ea)]((0x0,t[_0x478d6d(0x1d1)])(_0x41e524));});}return _0x1a2682;}async['getSheetBlock'](_0x5c5e75,_0x2173a2){const _0x5bce18=_0x2b4704;let {unitID:_0x140de9,type:_0x3cf6c2,blockID:_0x1a1b98}=_0x2173a2,_0x513634=this['_getAPIPrefix']()+'/'+_0x3cf6c2+'/unit/'+_0x140de9+'/block/'+_0x1a1b98;return(await this[_0x5bce18(0x3c7)][_0x5bce18(0x287)](_0x513634))['body'];}async['getDeserializedSheetBlock'](_0x229274,_0x28670c){const _0x15f871=_0x2b4704;let {unitID:_0x41f1f4,type:_0x2ce8e4,blockID:_0x55f37b}=_0x28670c,_0x81c4ab=this[_0x15f871(0x107)]()+_0x15f871(0x226)+_0x2ce8e4+_0x15f871(0x231)+_0x41f1f4+_0x15f871(0x226)+_0x55f37b;return(await this['_httpService'][_0x15f871(0x287)](_0x81c4ab))[_0x15f871(0x1df)];}async[_0x2b4704(0x1c7)](_0x16d9fe,_0x252b1d){const _0x5c074a=_0x2b4704;let {unitID:_0x4fc28e,type:_0xfe1c5f,from:_0x3c3031,to:_0x224082}=_0x252b1d,_0x3317df=this['_getAPIPrefix']()+'/'+_0xfe1c5f+_0x5c074a(0x231)+_0x4fc28e+_0x5c074a(0x366)+_0x3c3031+_0x5c074a(0x24c)+_0x224082;return(await this[_0x5c074a(0x3c7)]['get'](_0x3317df))[_0x5c074a(0x1df)];}['getSnapshotAPIPath'](){const _0x5e21f7=_0x2b4704;var _0x5315ef;return(_0x5315ef=this[_0x5e21f7(0x1d8)][_0x5e21f7(0x18e)](_0x5e21f7(0x2bf)))==null?this['_getAPIPrefix']():_0x5315ef;}[_0x2b4704(0x107)](){const _0x54537b=_0x2b4704;var _0x522ee1;let _0x3b9d16=this[_0x54537b(0x1d8)][_0x54537b(0x18e)](h);return(_0x522ee1=_0x3b9d16==null?void 0x0:_0x3b9d16['snapshotServerUrl'])==null?'/universer-api/snapshot':_0x522ee1;}async[_0x2b4704(0x243)](_0x52343f,_0x503e98){const _0x3e24c0=_0x2b4704;let _0x515255='/universer-api/snapshot/'+_0x503e98['type']+_0x3e24c0(0x231)+_0x503e98[_0x3e24c0(0x37b)]+_0x3e24c0(0x29f);return(await this[_0x3e24c0(0x3c7)][_0x3e24c0(0x287)](_0x515255,{'params':{'resourceId':JSON['stringify'](_0x503e98['resourceIDs'])}}))[_0x3e24c0(0x1df)];}[_0x2b4704(0x32f)](){const _0x34b71=_0x2b4704;throw Error(_0x34b71(0x209));}[_0x2b4704(0x3cf)](){const _0x33a63d=_0x2b4704;throw Error(_0x33a63d(0x209));}[_0x2b4704(0x17e)](){const _0x44abf3=_0x2b4704;throw Error(_0x44abf3(0x209));}['saveChangeset'](){const _0x4e1454=_0x2b4704;throw Error(_0x4e1454(0x209));}[_0x2b4704(0xfc)](){const _0x2781c2=_0x2b4704;throw Error(_0x2781c2(0x209));}[_0x2b4704(0x1e4)](){const _0x22447e=_0x2b4704;throw Error(_0x22447e(0x209));}};Z=b([y(0x0,n[_0x2b4704(0x309)]),y(0x1,(0x0,n[_0x2b4704(0x1ce)])(u[_0x2b4704(0x28e)]))],Z);let Q=class extends n[_0x2b4704(0x33b)]{constructor(_0x36ea1e,_0x45d89b,_0x2d1150,_0x8e1eaa,_0x9c8ea5){const _0x3fd510=_0x2b4704;super(_0x36ea1e,_0x45d89b,_0x2d1150),this[_0x3fd510(0x191)]=_0x8e1eaa,this[_0x3fd510(0x35b)]=_0x9c8ea5;}[_0x2b4704(0x240)](_0x3019ab,_0x485cf8){const _0x563aeb=_0x2b4704;let _0x4e6322=this[_0x563aeb(0x370)](_0x3019ab);if(_0x4e6322)try{let _0x5c225c=this[_0x563aeb(0x3cc)](_0x4e6322,_0x485cf8);this[_0x563aeb(0x1a0)](_0x3019ab,_0x5c225c);}catch(_0x536858){this['_logService'][_0x563aeb(0x2b8)](_0x563aeb(0x1dc),_0x536858),this[_0x563aeb(0x219)](_0x3019ab);}let _0x4deba0=this[_0x563aeb(0x393)](_0x3019ab);if(_0x4deba0)try{let _0x5eba99=this[_0x563aeb(0x3cc)](_0x4deba0,_0x485cf8);this[_0x563aeb(0x373)](_0x3019ab,_0x5eba99);}catch(_0x49c99a){this[_0x563aeb(0x35b)][_0x563aeb(0x2b8)](_0x49c99a),this[_0x563aeb(0x1ea)](_0x3019ab);}}[_0x2b4704(0x219)](_0xacce86){const _0x1e57cf=_0x2b4704;let _0x1f18b2=this[_0x1e57cf(0x370)](_0xacce86);_0x1f18b2&&(_0x1f18b2[_0x1e57cf(0x2f8)]=0x0,this['_updateStatus']());}[_0x2b4704(0x1ea)](_0xa9348d){const _0x4bde7c=_0x2b4704;let _0x251c5c=this[_0x4bde7c(0x393)](_0xa9348d);_0x251c5c&&(_0x251c5c[_0x4bde7c(0x2f8)]=0x0,this[_0x4bde7c(0x10e)]());}['_substituteUndoStack'](_0x37acab,_0x14be1d){const _0x3eef24=_0x2b4704;this[_0x3eef24(0x1d0)][_0x3eef24(0x399)](_0x37acab,_0x14be1d),this[_0x3eef24(0x10e)]();}[_0x2b4704(0x373)](_0x59a324,_0x46967c){const _0x48837b=_0x2b4704;this['_redoStacks']['set'](_0x59a324,_0x46967c),this[_0x48837b(0x10e)]();}['_transformStack'](_0x4e3bd1,_0x9edb3a){const _0x2e0088=_0x2b4704;let _0xeb8d5a=[],_0x15db8e=_0x9edb3a,_0x15686e=_0x9edb3a;for(let _0x506178=_0x4e3bd1[_0x2e0088(0x2f8)]-0x1;_0x506178>=0x0;_0x506178--){let {unitID:_0x202739,undoMutations:_0x563954,redoMutations:_0x25fe40}=_0x4e3bd1[_0x506178],_0x24c599=this[_0x2e0088(0x191)][_0x2e0088(0x2c5)](_0x15db8e,_0x563954),_0x1e9654=this[_0x2e0088(0x191)][_0x2e0088(0x2c5)](_0x15686e,_0x25fe40);if((0x0,t['isTransformMutationsWithChangesetFailure'])(_0x24c599)||(0x0,t[_0x2e0088(0x1c9)])(_0x1e9654)){this[_0x2e0088(0x35b)][_0x2e0088(0x2b8)](_0x2e0088(0x1dc),_0x2e0088(0x37f),_0x24c599,_0x1e9654);break;}_0x15db8e=_0x24c599[_0x2e0088(0x2c3)],_0x15686e=_0x1e9654['c1Prime'],_0xeb8d5a[_0x2e0088(0x384)]({'unitID':_0x202739,'undoMutations':_0x24c599[_0x2e0088(0x293)],'redoMutations':_0x1e9654['m2Prime']});}return _0xeb8d5a['reverse']();}};Q=b([y(0x0,n[_0x2b4704(0x3a9)]),y(0x1,n[_0x2b4704(0x378)]),y(0x2,n[_0x2b4704(0x2f0)]),y(0x3,t[_0x2b4704(0x109)]),y(0x4,n['ILogService'])],Q);let $=class extends n['Plugin']{constructor(_0x3d0761={},_0x1769b7,_0x52a96f,_0x138a8a){const _0x896b09=_0x2b4704;super(),this[_0x896b09(0x23c)]=_0x3d0761,this[_0x896b09(0x35b)]=_0x1769b7,this[_0x896b09(0x3de)]=_0x52a96f,this[_0x896b09(0x1d8)]=_0x138a8a;let {..._0x5d3107}=(0x0,n['merge'])({},ee,_0x3d0761);if(!_0x5d3107[_0x896b09(0x130)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this['_config']=_0x5d3107,this['_configService'][_0x896b09(0x2b5)](h,_0x5d3107);}[_0x2b4704(0x1cd)](){const _0x1a375c=_0x2b4704;this[_0x1a375c(0x3b5)](),this['_initDependencies']();}['_registerDependencies'](){const _0x4e4205=_0x2b4704;var _0x5d861e,_0x5e1b59;this[_0x4e4205(0x3de)][_0x4e4205(0x1ae)](n[_0x4e4205(0x100)])&&this[_0x4e4205(0x35b)][_0x4e4205(0x2b8)](_0x4e4205(0x2a1),_0x4e4205(0x26b));let _0x1061db=(0x0,n[_0x4e4205(0x15f)])([[n[_0x4e4205(0x100)],{'useClass':Q}],[V],[x],[w],[W],[K],[se],[X],[v],[q],[Le,{'useClass':this[_0x4e4205(0x23c)][_0x4e4205(0x130)]}],[t[_0x4e4205(0x38c)],{'useClass':Z}],[n[_0x4e4205(0x215)],{'useClass':G}],[f[_0x4e4205(0x13d)],{'useClass':J}],[We,{'useClass':U}],[n[_0x4e4205(0x324)],{'useClass':Y}],[H],[He]],(_0x5d861e=this[_0x4e4205(0x23c)])==null?void 0x0:_0x5d861e[_0x4e4205(0x1a9)]);if(!((_0x5e1b59=this[_0x4e4205(0x23c)])!=null&&_0x5e1b59[_0x4e4205(0x31c)])){let _0x4ebc8b=_0x1061db[_0x4e4205(0x152)](([_0x36d7d3])=>_0x36d7d3===T);_0x4ebc8b!==-0x1&&_0x1061db[_0x4e4205(0x267)](_0x4ebc8b,0x1);}(0x0,n[_0x4e4205(0x3a0)])(this[_0x4e4205(0x3de)],_0x1061db);}['_initDependencies'](){const _0x13671f=_0x2b4704;var _0x1e0b57,_0x38be31;if(this[_0x13671f(0x3de)][_0x13671f(0x287)](u[_0x13671f(0x28e)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,u[_0x13671f(0x11a)])({'maxParallel':0x6})}),!((_0x1e0b57=this['_config'])!=null&&_0x1e0b57[_0x13671f(0x252)])){var _0x5bbd2f;(_0x5bbd2f=this[_0x13671f(0x3de)][_0x13671f(0x287)](C,n[_0x13671f(0x333)][_0x13671f(0x1f4)]))==null||_0x5bbd2f['disableLocalCache']();}(_0x38be31=this[_0x13671f(0x23c)])!=null&&_0x38be31[_0x13671f(0x2e1)]&&(0x0,n[_0x13671f(0x3d0)])(this[_0x13671f(0x3de)],[[W]]),(0x0,n['touchDependencies'])(this['_injector'],[[K],[H],[X]]);}};_($,_0x2b4704(0x31f),_0x2b4704(0x3b6)),_($,'packageName',Be),_($,_0x2b4704(0x222),Ve),$=b([(0x0,n[_0x2b4704(0x1bb)])(d['UniverLicensePlugin'],t[_0x2b4704(0x212)],u[_0x2b4704(0x141)]),y(0x1,n['ILogService']),y(0x2,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x3,n[_0x2b4704(0x309)])],$),exports[_0x2b4704(0x162)]=Ue,Object['defineProperty'](exports,_0x2b4704(0x37d),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x2b4704(0x1dd)](exports,'AwaitingState',{'enumerable':!0x0,'get':function(){return M;}}),Object['defineProperty'](exports,_0x2b4704(0x22c),{'enumerable':!0x0,'get':function(){return N;}}),exports['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=h,Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x2d1),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x3d6),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x14d),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x1bc),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x18d),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x2ab),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x3ce),{'enumerable':!0x0,'get':function(){return ze;}}),exports['CollaborationStatus']=ke,exports[_0x2b4704(0x140)]=oe,exports[_0x2b4704(0x2f2)]=v,Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x21d),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x2b4704(0x38f)]=se,Object[_0x2b4704(0x1dd)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return P;}}),exports['DEFAULT_COLLAB_WEB_SOCKET_URL']=te,exports['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']=_0x2b4704(0x314),exports[_0x2b4704(0x289)]=_0x2b4704(0x13e),Object[_0x2b4704(0x1dd)](exports,'DataLoaderService',{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x241),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x2b4704(0x1dd)](exports,'FetchingMissState',{'enumerable':!0x0,'get':function(){return I;}}),exports[_0x2b4704(0x3df)]='HEARTBEAT_INTERVAL',exports[_0x2b4704(0x339)]=_0x2b4704(0x204),exports['IAttachmentIoService']=We,exports[_0x2b4704(0x347)]=Le,exports[_0x2b4704(0x33f)]=C,exports[_0x2b4704(0x158)]=Pe,exports[_0x2b4704(0x291)]=T,exports[_0x2b4704(0x1fb)]=0x3e8,exports['LOCAL_CACHE_INTERVAL_KEY']='LOCAL_CACHE_INTERVAL',Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x20f),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x11c),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x234),{'enumerable':!0x0,'get':function(){return F;}}),Object['defineProperty'](exports,_0x2b4704(0x147),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x2b4704(0x300)]='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',exports[_0x2b4704(0x275)]=_0x2b4704(0x101),exports[_0x2b4704(0x11b)]=le,Object['defineProperty'](exports,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return z;}}),Object[_0x2b4704(0x1dd)](exports,'SheetTransformSelectionsService',{'enumerable':!0x0,'get':function(){return w;}}),Object[_0x2b4704(0x1dd)](exports,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x134),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x2b4704(0x228)]=pe,Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x262),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x2b4704(0x247)]=Fe,exports[_0x2b4704(0x2fc)]=de,exports['serializeCombRequest']=Ie;
|
|
1
|
+
const _0x35bb4b=_0x5a3b;(function(_0x464d10,_0x1e0518){const _0x1234a8=_0x5a3b,_0x48c247=_0x464d10();while(!![]){try{const _0x151815=-parseInt(_0x1234a8(0x471))/0x1+parseInt(_0x1234a8(0x181))/0x2+parseInt(_0x1234a8(0x412))/0x3*(-parseInt(_0x1234a8(0x172))/0x4)+parseInt(_0x1234a8(0x453))/0x5+-parseInt(_0x1234a8(0x26d))/0x6+parseInt(_0x1234a8(0x326))/0x7+-parseInt(_0x1234a8(0x176))/0x8*(-parseInt(_0x1234a8(0x2d2))/0x9);if(_0x151815===_0x1e0518)break;else _0x48c247['push'](_0x48c247['shift']());}catch(_0x302342){_0x48c247['push'](_0x48c247['shift']());}}}(_0x38a3,0x96747),Object[_0x35bb4b(0x219)](exports,Symbol[_0x35bb4b(0x433)],{'value':_0x35bb4b(0x2d8)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('@univerjs/protocol'),o=require('@univerjs/telemetry'),s=require('rxjs/operators'),c=require('@univerjs-pro/slides'),l=require('@univerjs/network'),u=require('@univerjs-pro/license'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js'),p=require('@univerjs/drawing');const m=_0x35bb4b(0x336),ee={},te=_0x35bb4b(0x450),ne=0x4e20;function re(_0x520a93){return JSON['stringify'](_0x520a93)['length'];}function h(_0x1ce6b0){'@babel/helpers - typeof';const _0x268986=_0x35bb4b;return h=typeof Symbol=='function'&&typeof Symbol[_0x268986(0x31e)]==_0x268986(0x300)?function(_0x3356c0){return typeof _0x3356c0;}:function(_0x15de3d){const _0x2e592a=_0x268986;return _0x15de3d&&typeof Symbol==_0x2e592a(0x3c6)&&_0x15de3d['constructor']===Symbol&&_0x15de3d!==Symbol['prototype']?'symbol':typeof _0x15de3d;},h(_0x1ce6b0);}function ie(_0x3f0cd3,_0x50f5a4){const _0x4a541d=_0x35bb4b;if(h(_0x3f0cd3)!=_0x4a541d(0x1b0)||!_0x3f0cd3)return _0x3f0cd3;var _0x26219a=_0x3f0cd3[Symbol[_0x4a541d(0x402)]];if(_0x26219a!==void 0x0){var _0x4983fd=_0x26219a[_0x4a541d(0x33e)](_0x3f0cd3,_0x50f5a4||_0x4a541d(0x438));if(h(_0x4983fd)!='object')return _0x4983fd;throw TypeError(_0x4a541d(0x2f0));}return(_0x50f5a4===_0x4a541d(0x434)?String:Number)(_0x3f0cd3);}function ae(_0x531b81){const _0x43ccbe=_0x35bb4b;var _0x19b8d4=ie(_0x531b81,_0x43ccbe(0x434));return h(_0x19b8d4)==_0x43ccbe(0x300)?_0x19b8d4:_0x19b8d4+'';}function g(_0x218d7a,_0x4c1680,_0x19bee3){const _0x4abae3=_0x35bb4b;return(_0x4c1680=ae(_0x4c1680))in _0x218d7a?Object[_0x4abae3(0x219)](_0x218d7a,_0x4c1680,{'value':_0x19bee3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x218d7a[_0x4c1680]=_0x19bee3,_0x218d7a;}let oe=function(_0x3c3496){const _0x21e4d0=_0x35bb4b;return _0x3c3496['OTHER_CLIENT_EDITING']=_0x21e4d0(0x17f),_0x3c3496['PERMISSION_DENIED']=_0x21e4d0(0x2b1),_0x3c3496[_0x21e4d0(0x349)]=_0x21e4d0(0x349),_0x3c3496[_0x21e4d0(0x394)]=_0x21e4d0(0x394),_0x3c3496[_0x21e4d0(0x344)]=_0x21e4d0(0x344),_0x3c3496['SOCKET_FAILED_RETRY']=_0x21e4d0(0x3ea),_0x3c3496[_0x21e4d0(0x420)]=_0x21e4d0(0x420),_0x3c3496[_0x21e4d0(0x1ec)]='SUBMIT_CHANGESET_TIMEOUT',_0x3c3496;}({});var _=class{constructor(){const _0x1c3149=_0x35bb4b;g(this,'_event$',new i[(_0x1c3149(0x27e))]()),g(this,_0x1c3149(0x35c),this[_0x1c3149(0x179)][_0x1c3149(0x3b8)]());}[_0x35bb4b(0x328)](_0x47c843){const _0xeecdc0=_0x35bb4b;this[_0xeecdc0(0x179)][_0xeecdc0(0x291)](_0x47c843);}},se=class{constructor(){const _0x56f673=_0x35bb4b;g(this,_0x56f673(0x2c5),new i[(_0x56f673(0x27e))]()),g(this,'commentUpdate$',this[_0x56f673(0x2c5)][_0x56f673(0x3b8)]());}[_0x35bb4b(0x34c)](_0x453dbc){const _0x751c09=_0x35bb4b;this[_0x751c09(0x2c5)][_0x751c09(0x291)](_0x453dbc);}};function v(_0x51be30,_0x48b003){return function(_0x265c66,_0xc448d6){_0x48b003(_0x265c66,_0xc448d6,_0x51be30);};}function y(_0x4009a9,_0x2fa0ea,_0x2526a5,_0x827508){const _0x41e623=_0x35bb4b;var _0x2b1136=arguments[_0x41e623(0x17d)],_0x56a366=_0x2b1136<0x3?_0x2fa0ea:_0x827508===null?_0x827508=Object[_0x41e623(0x379)](_0x2fa0ea,_0x2526a5):_0x827508,_0x4e2bb2;if(typeof Reflect==_0x41e623(0x1b0)&&typeof Reflect[_0x41e623(0x29c)]==_0x41e623(0x3c6))_0x56a366=Reflect[_0x41e623(0x29c)](_0x4009a9,_0x2fa0ea,_0x2526a5,_0x827508);else{for(var _0x11ff63=_0x4009a9[_0x41e623(0x17d)]-0x1;_0x11ff63>=0x0;_0x11ff63--)(_0x4e2bb2=_0x4009a9[_0x11ff63])&&(_0x56a366=(_0x2b1136<0x3?_0x4e2bb2(_0x56a366):_0x2b1136>0x3?_0x4e2bb2(_0x2fa0ea,_0x2526a5,_0x56a366):_0x4e2bb2(_0x2fa0ea,_0x2526a5))||_0x56a366);}return _0x2b1136>0x3&&_0x56a366&&Object[_0x41e623(0x219)](_0x2fa0ea,_0x2526a5,_0x56a366),_0x56a366;}let b=class extends t['Disposable']{constructor(_0x46b8a3,_0x297ab6){const _0x10e2c3=_0x35bb4b;super(),this[_0x10e2c3(0x25a)]=_0x46b8a3,this[_0x10e2c3(0x437)]=_0x297ab6,g(this,_0x10e2c3(0x2ce),new Map()),g(this,_0x10e2c3(0x2bf),new i[(_0x10e2c3(0x27e))]()),this['disposeWithMe']((0x0,i[_0x10e2c3(0x3f6)])(this[_0x10e2c3(0x25a)]['getTypeOfUnitDisposed$'](t[_0x10e2c3(0x36f)][_0x10e2c3(0x299)])[_0x10e2c3(0x481)]((0x0,s[_0x10e2c3(0x30d)])(_0x509d80=>_0x509d80[_0x10e2c3(0x1b1)]())),this[_0x10e2c3(0x25a)]['getTypeOfUnitDisposed$'](t[_0x10e2c3(0x36f)]['UNIVER_DOC'])[_0x10e2c3(0x481)]((0x0,s[_0x10e2c3(0x30d)])(_0x5cca34=>_0x5cca34[_0x10e2c3(0x1b1)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](t[_0x10e2c3(0x36f)][_0x10e2c3(0x1ad)])[_0x10e2c3(0x481)]((0x0,s[_0x10e2c3(0x30d)])(_0x36f343=>_0x36f343[_0x10e2c3(0x1b1)]())),this[_0x10e2c3(0x25a)][_0x10e2c3(0x177)](t[_0x10e2c3(0x36f)][_0x10e2c3(0x17e)])[_0x10e2c3(0x481)]((0x0,s[_0x10e2c3(0x30d)])(_0x2ef65f=>_0x2ef65f[_0x10e2c3(0x1b1)]())))[_0x10e2c3(0x29b)](_0x2127ee=>this[_0x10e2c3(0x3a6)](_0x2127ee)));}[_0x35bb4b(0x421)](_0x5f052c){const _0x54a8e7=_0x35bb4b;return this[_0x54a8e7(0x2ce)][_0x54a8e7(0x478)](_0x5f052c)?(0x0,i['of'])(this[_0x54a8e7(0x2ce)][_0x54a8e7(0x20e)](_0x5f052c)):this[_0x54a8e7(0x2bf)][_0x54a8e7(0x481)]((0x0,s[_0x54a8e7(0x30d)])(_0x2825ec=>{const _0x560ab3=_0x54a8e7;if(_0x2825ec===_0x5f052c)return this['_roomMembers'][_0x560ab3(0x20e)](_0x2825ec);}));}['setCurrentUser'](_0x18e55e){const _0x31b0fd=_0x35bb4b;this[_0x31b0fd(0x437)]['setCurrentUser'](_0x18e55e);}[_0x35bb4b(0x2cb)](){const _0x15bcac=_0x35bb4b;return this[_0x15bcac(0x437)][_0x15bcac(0x2cb)]();}[_0x35bb4b(0x234)](_0x370927,_0x3c8a87){const _0x298a76=_0x35bb4b;let _0x34c65b=this[_0x298a76(0x2ce)][_0x298a76(0x20e)](_0x370927);_0x34c65b||(_0x34c65b=new ce(),this['_roomMembers'][_0x298a76(0x3ac)](_0x370927,_0x34c65b),this[_0x298a76(0x2bf)][_0x298a76(0x291)](_0x370927)),_0x34c65b[_0x298a76(0x234)](_0x3c8a87);}[_0x35bb4b(0x2d7)](_0x37bb56,_0x2f2a12){const _0x2508d2=_0x35bb4b;let _0x3c8b3c=this[_0x2508d2(0x2ce)]['get'](_0x37bb56);_0x3c8b3c&&_0x3c8b3c[_0x2508d2(0x2d7)](_0x2f2a12);}[_0x35bb4b(0x262)](_0x461170){const _0x19af27=_0x35bb4b;return this[_0x19af27(0x2ce)][_0x19af27(0x20e)](_0x461170);}[_0x35bb4b(0x2ef)](_0xf6af28,_0x56d3b6){const _0x3384ab=_0x35bb4b;let _0x44c4dc=this[_0x3384ab(0x2ce)][_0x3384ab(0x20e)](_0xf6af28);if(_0x44c4dc)return _0x44c4dc[_0x3384ab(0x2ef)](_0x56d3b6);}[_0x35bb4b(0x3a6)](_0x1c66ec){const _0x3cecc0=_0x35bb4b;let _0x5be5de=this[_0x3cecc0(0x2ce)][_0x3cecc0(0x20e)](_0x1c66ec);_0x5be5de&&(_0x5be5de['dispose'](),this[_0x3cecc0(0x2ce)][_0x3cecc0(0x3bd)](_0x1c66ec));}[_0x35bb4b(0x2c9)](){const _0x5c1ae7=_0x35bb4b;this['_roomMembers'][_0x5c1ae7(0x2db)](_0x168399=>_0x168399[_0x5c1ae7(0x2c9)]()),this[_0x5c1ae7(0x2ce)][_0x5c1ae7(0x322)](),this[_0x5c1ae7(0x2bf)][_0x5c1ae7(0x1f7)]();}};b=y([v(0x0,t[_0x35bb4b(0x1ba)]),v(0x1,(0x0,t[_0x35bb4b(0x48e)])(t[_0x35bb4b(0x2ba)]))],b);var ce=class extends t['Disposable']{constructor(..._0x4a6bcf){const _0x463e70=_0x35bb4b;super(..._0x4a6bcf),g(this,_0x463e70(0x3a0),new Map()),g(this,_0x463e70(0x48c),new i['BehaviorSubject'](this[_0x463e70(0x3a0)])),g(this,_0x463e70(0x21f),this[_0x463e70(0x48c)][_0x463e70(0x3b8)]());}[_0x35bb4b(0x2c9)](){const _0x4c341b=_0x35bb4b;this[_0x4c341b(0x3a0)][_0x4c341b(0x322)](),this[_0x4c341b(0x48c)][_0x4c341b(0x1f7)]();}[_0x35bb4b(0x234)](_0x1858e1){const _0x266084=_0x35bb4b;this[_0x266084(0x3a0)]['set'](_0x1858e1[_0x266084(0x2aa)],_0x1858e1),this[_0x266084(0x38e)]();}[_0x35bb4b(0x2d7)](_0x37adc1){const _0x15d140=_0x35bb4b;this[_0x15d140(0x3a0)]['delete'](_0x37adc1),this[_0x15d140(0x38e)]();}[_0x35bb4b(0x2ef)](_0x364cc2){const _0x255c09=_0x35bb4b;return this[_0x255c09(0x3a0)][_0x255c09(0x20e)](_0x364cc2);}[_0x35bb4b(0x2d0)](){const _0x1b2052=_0x35bb4b;return Array[_0x1b2052(0x254)](this[_0x1b2052(0x3a0)][_0x1b2052(0x1f9)]());}['_emitMembers'](){const _0x3188d9=_0x35bb4b;this['_members$']['next'](this[_0x3188d9(0x3a0)]);}};function le(_0x74d087,_0x305bb3){const _0x3d5530=_0x35bb4b;if(de(_0x74d087))return _0x305bb3;if(_0x305bb3['eventID']===e[_0x3d5530(0x383)]['SUBMIT_CHANGESET']){var _0x3bd6f6;let _0xcfcdf4=ge(_0x74d087),_0x121ad0=_0x305bb3;return{..._0x121ad0,'data':{..._0x121ad0[_0x3d5530(0x36a)],'unitID':_0x74d087['target'][_0x3d5530(0x2a8)],'unitType':(_0x3bd6f6=_0x74d087[_0x3d5530(0x1e5)]['unitType'])==null?_0x121ad0[_0x3d5530(0x36a)]['unitType']:_0x3bd6f6,'changeset':_0xcfcdf4[_0x3d5530(0x1cc)](_0x121ad0[_0x3d5530(0x36a)][_0x3d5530(0x193)],_e(_0x74d087))}};}if(_0x305bb3[_0x3d5530(0x44a)]===e[_0x3d5530(0x383)][_0x3d5530(0x3dc)]){var _0x144da0;let _0x124180=_0x305bb3;return{..._0x124180,'data':{..._0x124180['data'],'unitID':_0x74d087[_0x3d5530(0x1e5)][_0x3d5530(0x2a8)],'unitType':(_0x144da0=_0x74d087['target']['unitType'])==null?_0x124180[_0x3d5530(0x36a)][_0x3d5530(0x2fe)]:_0x144da0}};}return _0x305bb3;}function ue(_0x1a3ad6,_0x33e96b){const _0x28f5f4=_0x35bb4b;if(de(_0x1a3ad6))return[_0x33e96b];switch(_0x33e96b['eventID']){case e[_0x28f5f4(0x383)][_0x28f5f4(0x3f0)]:return[fe(_0x1a3ad6,_0x33e96b)];case e[_0x28f5f4(0x383)][_0x28f5f4(0x3cd)]:return[me(_0x1a3ad6,_0x33e96b)];case e[_0x28f5f4(0x383)]['CHANGESET_SHOULD_RETRY']:return[pe(_0x1a3ad6,_0x33e96b)];default:return[_0x33e96b];}}function de(_0x1be6cb){const _0x3e27cf=_0x35bb4b;return _0x1be6cb['target'][_0x3e27cf(0x23b)]==null&&_0x1be6cb['target']['unitId']===_0x1be6cb[_0x3e27cf(0x26b)]&&!_0x1be6cb[_0x3e27cf(0x193)];}function fe(_0x4fb087,_0x5b5217){const _0x4d503e=_0x35bb4b;return{..._0x5b5217,'data':(0x0,e[_0x4d503e(0x386)])(he(_0x4fb087,(0x0,e[_0x4d503e(0x357)])(_0x5b5217['data'])))};}function pe(_0x55af5b,_0x5cf37c){return{..._0x5cf37c,'data':he(_0x55af5b,_0x5cf37c['data'])};}function me(_0x49398e,_0x4279c6){const _0x269f3c=_0x35bb4b;let _0x1902a8=_0x4279c6['data'];return{..._0x4279c6,'data':{..._0x1902a8,'changesets':_0x1902a8[_0x269f3c(0x3aa)][_0x269f3c(0x30d)](_0x13c0f5=>(0x0,e['parseChangesetToProtocol'])(he(_0x49398e,(0x0,e[_0x269f3c(0x357)])(_0x13c0f5))))}};}function he(_0x389cb9,_0x19ff51){const _0x44679f=_0x35bb4b;return ge(_0x389cb9)[_0x44679f(0x1d8)](_0x19ff51,_e(_0x389cb9));}function ge(_0x4f6dc0){const _0x575e02=_0x35bb4b;if(!_0x4f6dc0[_0x575e02(0x193)])throw Error(_0x575e02(0x323));return _0x4f6dc0[_0x575e02(0x193)];}function _e(_0x13abca){const _0x7e98a9=_0x35bb4b;return{'localUnitId':_0x13abca[_0x7e98a9(0x26b)],'unitType':_0x13abca[_0x7e98a9(0x2fe)],'target':_0x13abca[_0x7e98a9(0x1e5)]};}let ve=function(_0x4113cc){const _0xa83ea=_0x35bb4b;return _0x4113cc[_0x4113cc['IDLE']=0x0]=_0xa83ea(0x37c),_0x4113cc[_0x4113cc[_0xa83ea(0x3ce)]=0x1]=_0xa83ea(0x3ce),_0x4113cc[_0x4113cc[_0xa83ea(0x3fc)]=0x2]='OFFLINE',_0x4113cc[_0x4113cc['ONLINE']=0x3]='ONLINE',_0x4113cc;}({});const ye={[a[_0x35bb4b(0x293)][_0x35bb4b(0x1a6)]]:'session.join-failed',[a[_0x35bb4b(0x293)][_0x35bb4b(0x305)]]:_0x35bb4b(0x31b),[a[_0x35bb4b(0x293)][_0x35bb4b(0x395)]]:_0x35bb4b(0x45f),[a[_0x35bb4b(0x293)][_0x35bb4b(0x257)]]:'session.room-permission-denied',[a[_0x35bb4b(0x293)][_0x35bb4b(0x425)]]:'session.room-cnt-exceeds'};let x=class extends t['RxDisposable']{get['sessionStatus'](){const _0x32f037=_0x35bb4b;return this[_0x32f037(0x3fd)][_0x32f037(0x3b9)]();}constructor(_0x1940aa,_0x284f5d,_0x5bff89,_0x536869,_0xa98ce,_0x43ef85,_0x5d57e4,_0x55999f){const _0x537c6e=_0x35bb4b;super(),this[_0x537c6e(0x2f8)]=_0x1940aa,this[_0x537c6e(0x445)]=_0x5bff89,this[_0x537c6e(0x3ec)]=_0x536869,this['_memberService']=_0xa98ce,this['_commentService']=_0x43ef85,this[_0x537c6e(0x1da)]=_0x5d57e4,this[_0x537c6e(0x381)]=_0x55999f,g(this,_0x537c6e(0x3fd),new i[(_0x537c6e(0x3a3))](0x0)),g(this,_0x537c6e(0x1ef),this[_0x537c6e(0x3fd)][_0x537c6e(0x3b8)]()),g(this,_0x537c6e(0x179),new i[(_0x537c6e(0x27e))]()),g(this,_0x537c6e(0x35c),this[_0x537c6e(0x179)][_0x537c6e(0x3b8)]()),g(this,_0x537c6e(0x37a),void 0x0),g(this,_0x537c6e(0x2a4),void 0x0),g(this,_0x537c6e(0x1f4),void 0x0),g(this,_0x537c6e(0x3ef),!0x1),g(this,'_telemetryInfo',null),this[_0x537c6e(0x3ef)]=!!this['_telemetryService'],_0x284f5d['pipe']((0x0,i['takeUntil'])(this[_0x537c6e(0x316)]))[_0x537c6e(0x29b)](_0x47bf98=>{const _0x5a75df=_0x537c6e;if(_0x47bf98!==void 0x0){if(this['_socket']=_0x47bf98,_0x47bf98)this[_0x5a75df(0x3bf)](_0x47bf98),this[_0x5a75df(0x2a4)]=_0x47bf98[_0x5a75df(0x1ed)][_0x5a75df(0x29b)](_0x19f63c=>{const _0x4b527f=_0x5a75df;_0x19f63c[_0x4b527f(0x1de)]===this[_0x4b527f(0x2f8)][_0x4b527f(0x1e5)][_0x4b527f(0x2a8)]&&this['_onCombEvent'](_0x19f63c);});else{var _0xf6e346;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x5a75df(0x3fd)][_0x5a75df(0x291)](0x2),(_0xf6e346=this['_socketMessageSubscription'])==null||_0xf6e346['unsubscribe'](),this[_0x5a75df(0x2a4)]=null;}}});}[_0x35bb4b(0x3f8)](){const _0x42e9a1=_0x35bb4b;var _0x3e77d9,_0x727167;return(_0x3e77d9=(_0x727167=this[_0x42e9a1(0x37a)])==null?void 0x0:_0x727167[_0x42e9a1(0x2aa)])==null?null:_0x3e77d9;}[_0x35bb4b(0x2c9)](){const _0x2b1e89=_0x35bb4b;super[_0x2b1e89(0x2c9)](),this[_0x2b1e89(0x2e0)](),this[_0x2b1e89(0x316)]['next'](),this['dispose$'][_0x2b1e89(0x1f7)]();}[_0x35bb4b(0x2e0)](){const _0x348e94=_0x35bb4b;var _0x5cb158;this[_0x348e94(0x48d)](),(_0x5cb158=this[_0x348e94(0x37a)])==null||_0x5cb158[_0x348e94(0x24a)]({'cmd':a[_0x348e94(0x1b4)][_0x348e94(0x330)],'data':{'roomID':this[_0x348e94(0x2f8)]['target'][_0x348e94(0x2a8)]}}),this[_0x348e94(0x179)]['complete'](),this[_0x348e94(0x3fd)][_0x348e94(0x1f7)]();}[_0x35bb4b(0x1e6)](_0x461e5c){const _0x4d64f2=_0x35bb4b;_0x461e5c[_0x4d64f2(0x3ff)]===a[_0x4d64f2(0x1b4)][_0x4d64f2(0x1b5)]?this[_0x4d64f2(0x231)](_0x461e5c):_0x461e5c[_0x4d64f2(0x3ff)]===a[_0x4d64f2(0x1b4)][_0x4d64f2(0x388)]&&this['_onRecvEvent'](_0x461e5c);}[_0x35bb4b(0x3bf)](_0x4cc01a){const _0x32f85b=_0x35bb4b;this[_0x32f85b(0x3fd)][_0x32f85b(0x291)](0x1),_0x4cc01a[_0x32f85b(0x24a)]({'cmd':a[_0x32f85b(0x1b4)][_0x32f85b(0x1b5)],'routeKey':this[_0x32f85b(0x2f8)][_0x32f85b(0x1e5)][_0x32f85b(0x2a8)],'routeType':'','data':{'rooms':[{'roomID':this[_0x32f85b(0x2f8)][_0x32f85b(0x1e5)]['unitId']}]}});}['_onJoinRoomEvent'](_0xdc500e){const _0x51dfaa=_0x35bb4b;var _0x25850e;if(_0xdc500e['code']in ye){this[_0x51dfaa(0x1da)][_0x51dfaa(0x328)]({'id':_0x51dfaa(0x344),'data':ye[_0xdc500e['code']]}),this['_sessionStatus$'][_0x51dfaa(0x291)](0x2);return;}this[_0x51dfaa(0x3fd)][_0x51dfaa(0x291)](0x3);let _0x563ebb=(_0x25850e=_0xdc500e[_0x51dfaa(0x36a)]['roomInfos'][this[_0x51dfaa(0x2f8)][_0x51dfaa(0x1e5)][_0x51dfaa(0x2a8)]])==null?void 0x0:_0x25850e[_0x51dfaa(0x2f7)];_0x563ebb&&_0x563ebb['forEach'](_0x3e8d39=>this[_0x51dfaa(0x362)][_0x51dfaa(0x234)](this[_0x51dfaa(0x2f8)][_0x51dfaa(0x26b)],_0x3e8d39));}[_0x35bb4b(0x1aa)](_0x15e96f){const _0x4c761f=_0x35bb4b;try{let _0x2b1597=ue(this[_0x4c761f(0x2f8)],_0x15e96f[_0x4c761f(0x36a)]);for(let _0x5b131c of _0x2b1597)switch(_0x5b131c['eventID']){case e['CollaborationEvent'][_0x4c761f(0x202)]:this[_0x4c761f(0x2a1)](_0x5b131c),this[_0x4c761f(0x179)][_0x4c761f(0x291)](_0x5b131c);break;case e[_0x4c761f(0x383)][_0x4c761f(0x419)]:this['_onUserLeave'](_0x5b131c),this['_event$'][_0x4c761f(0x291)](_0x5b131c);break;case e[_0x4c761f(0x383)][_0x4c761f(0x2e6)]:case e['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:this[_0x4c761f(0x41e)](),this[_0x4c761f(0x486)](),this['_event$'][_0x4c761f(0x291)](_0x5b131c);break;case e[_0x4c761f(0x383)][_0x4c761f(0x2e3)]:this[_0x4c761f(0x445)][_0x4c761f(0x23f)](_0x4c761f(0x3c5)+JSON[_0x4c761f(0x3db)](_0x5b131c)),this['_event$']['next'](_0x5b131c);break;case e[_0x4c761f(0x383)]['COMMENT_UPDATE']:this[_0x4c761f(0x462)][_0x4c761f(0x34c)](_0x5b131c[_0x4c761f(0x36a)]),this[_0x4c761f(0x179)][_0x4c761f(0x291)](_0x5b131c);break;default:this['_event$'][_0x4c761f(0x291)](_0x5b131c);}}catch(_0x4eb6c4){this['_logService']['error'](_0x4eb6c4,_0x15e96f);}}[_0x35bb4b(0x2a1)](_0x3f2f39){const _0x481d6c=_0x35bb4b;this[_0x481d6c(0x362)][_0x481d6c(0x234)](this[_0x481d6c(0x2f8)]['localUnitId'],_0x3f2f39[_0x481d6c(0x36a)]);}[_0x35bb4b(0x206)](_0x3e67e2){const _0x1d5b13=_0x35bb4b;this[_0x1d5b13(0x362)][_0x1d5b13(0x2d7)](this[_0x1d5b13(0x2f8)][_0x1d5b13(0x26b)],_0x3e67e2['data'][_0x1d5b13(0x2aa)]);}async[_0x35bb4b(0x24a)](_0x3af5d3,_0x2465e2){const _0xe8d39e=_0x35bb4b;if(this[_0xe8d39e(0x416)]!==0x3||!this[_0xe8d39e(0x37a)])throw Error(_0xe8d39e(0x2f3));try{let _0xe7f081=le(this[_0xe8d39e(0x2f8)],_0x3af5d3);_0xe7f081[_0xe8d39e(0x44a)]===e['CollaborationEvent'][_0xe8d39e(0x36d)]&&(this[_0xe8d39e(0x2b0)](),this[_0xe8d39e(0x294)](_0xe7f081)),this['_socket'][_0xe8d39e(0x24a)]({'cmd':a[_0xe8d39e(0x1b4)]['INGEST'],'routeKey':this[_0xe8d39e(0x2f8)][_0xe8d39e(0x1e5)][_0xe8d39e(0x2a8)],'routeType':'','data':_0xe7f081});}catch(_0x3ec417){this[_0xe8d39e(0x445)]['error'](_0x3ec417);}}[_0x35bb4b(0x2b0)](){const _0xbf2a32=_0x35bb4b;var _0x2e1437;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x2d173d=_0x5a3b;this['_collaborationTimeoutTimer']=null,this[_0x2d173d(0x1da)]['emitEvent']({'id':_0x2d173d(0x1ec)});},(_0x2e1437=this['_configService'][_0xbf2a32(0x1bf)](_0xbf2a32(0x1b7)))==null?ne:_0x2e1437);}[_0x35bb4b(0x486)](){const _0x159b08=_0x35bb4b;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x159b08(0x1f4)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x3546f3){const _0x392bdb=_0x35bb4b;if(!this[_0x392bdb(0x3ef)])return;let {data:_0x5055aa}=_0x3546f3,{unitID:_0x3b6476,changeset:_0x34eca8}=_0x5055aa,{mutations:_0x4712ae,type:_0x5918cf}=_0x34eca8;this['_telemetryInfo']={'unitId':_0x3b6476,'type':_0x5918cf,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':re(_0x4712ae)};}[_0x35bb4b(0x41e)](){const _0x25e7b7=_0x35bb4b;if(this[_0x25e7b7(0x3ef)]){if(!this[_0x25e7b7(0x311)]){this['_logService'][_0x25e7b7(0x23f)](_0x25e7b7(0x24b),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x25e7b7(0x311)][_0x25e7b7(0x356)]=performance[_0x25e7b7(0x277)](),this[_0x25e7b7(0x311)][_0x25e7b7(0x32d)]=this[_0x25e7b7(0x311)][_0x25e7b7(0x356)]-this['_telemetryInfo'][_0x25e7b7(0x267)],this['_telemetryService'][_0x25e7b7(0x246)](_0x25e7b7(0x3fb),this[_0x25e7b7(0x311)]),this['_telemetryInfo']=null;}}[_0x35bb4b(0x48d)](){const _0x131e1e=_0x35bb4b;this[_0x131e1e(0x311)]=null;}};x=y([v(0x2,t[_0x35bb4b(0x1d7)]),v(0x3,t[_0x35bb4b(0x340)]),v(0x4,(0x0,t[_0x35bb4b(0x48e)])(b)),v(0x5,(0x0,t[_0x35bb4b(0x48e)])(se)),v(0x6,(0x0,t['Inject'])(_)),v(0x7,(0x0,t[_0x35bb4b(0x1a4)])(o['ITelemetryService']))],x);const S=(0x0,t[_0x35bb4b(0x35f)])(_0x35bb4b(0x375));function be(_0x35d63c){const _0x5cb4d1=_0x35bb4b;return _0x5cb4d1(0x3c7)+_0x35d63c;}function xe(_0x555aa4){const _0x5d19d6=_0x35bb4b;let {unitID:_0x380989,mutations:_0x1643e7}=_0x555aa4;return{'unitId':_0x380989,'subUnitId':_0x1643e7[_0x5d19d6(0x17d)]>0x0?_0x1643e7[0x0]['params'][_0x5d19d6(0x466)]:null};}let C=class{constructor(_0x385b08,_0x106fdf,_0x14514f){const _0x4d2e00=_0x35bb4b;this[_0x4d2e00(0x19a)]=_0x385b08,this['_transformService']=_0x106fdf,this['_instanceService']=_0x14514f;}[_0x35bb4b(0x2fc)](_0x2e2295){const _0xcb9245=_0x35bb4b;var _0x102460,_0x2badb3;let _0x399b21=this[_0xcb9245(0x19a)][_0xcb9245(0x20e)](r[_0xcb9245(0x285)]),{unitId:_0x3d9ba0,subUnitId:_0x45ae62}=xe(_0x2e2295),_0x18cbdf=_0x399b21==null?void 0x0:_0x399b21[_0xcb9245(0x2cd)](_0x3d9ba0)[_0xcb9245(0x333)](),_0x24d345=(_0x102460=this[_0xcb9245(0x30c)][_0xcb9245(0x352)](_0x3d9ba0))==null||(_0x102460=_0x102460[_0xcb9245(0x440)]())==null?void 0x0:_0x102460[_0xcb9245(0x2cf)]();if(_0x18cbdf[_0xcb9245(0x17d)]===0x0||!_0x3d9ba0||!_0x45ae62)return;let _0x41e0bb=[{'id':r[_0xcb9245(0x342)]['id'],'params':{'unitId':_0x3d9ba0,'subUnitId':_0x24d345,'selections':t[_0xcb9245(0x213)][_0xcb9245(0x35e)](_0x18cbdf)}}],_0x2f3cf3=this[_0xcb9245(0x217)][_0xcb9245(0x36c)](_0x2e2295,_0x41e0bb);if(!(0x0,e[_0xcb9245(0x3c3)])(_0x2f3cf3))throw _0x2f3cf3['error'];let _0x175815=(_0x2badb3=_0x2f3cf3[_0xcb9245(0x28e)][0x0])==null||(_0x2badb3=_0x2badb3['params'])==null?void 0x0:_0x2badb3['selections'];if(Array[_0xcb9245(0x23a)](_0x175815)&&_0x175815['length']){if(_0x175815['length']===_0x41e0bb[0x0][_0xcb9245(0x3be)][_0xcb9245(0x3b2)][_0xcb9245(0x17d)]&&_0x175815['every']((_0x1586d5,_0x2512f9)=>t[_0xcb9245(0x273)][_0xcb9245(0x329)](_0x1586d5[_0xcb9245(0x20f)],_0x41e0bb[0x0][_0xcb9245(0x3be)][_0xcb9245(0x3b2)][_0x2512f9][_0xcb9245(0x20f)])))return;this[_0xcb9245(0x19a)][_0xcb9245(0x20e)](t[_0xcb9245(0x224)])[_0xcb9245(0x33c)](r[_0xcb9245(0x342)]['id'],{'unitId':_0x3d9ba0,'subUnitId':_0x24d345,'selections':_0x175815});}}};C=y([v(0x0,(0x0,t[_0x35bb4b(0x48e)])(t[_0x35bb4b(0x413)])),v(0x1,e['ITransformService']),v(0x2,t[_0x35bb4b(0x1ba)])],C);const w=(0x0,t[_0x35bb4b(0x35f)])(_0x35bb4b(0x27f));let Se=function(_0xb62de0){const _0x2128cc=_0x35bb4b;return _0xb62de0[_0xb62de0[_0x2128cc(0x194)]=0x0]=_0x2128cc(0x194),_0xb62de0[_0xb62de0[_0x2128cc(0x1fb)]=0x1]=_0x2128cc(0x1fb),_0xb62de0;}({});function Ce(_0x401385){const _0x17ba71=_0x35bb4b;var _0x35cb97;return!!((_0x35cb97=_0x401385[_0x17ba71(0x3be)])!=null&&_0x35cb97['__splitChunk__']);}const we=new Set([r['InsertSheetMutation']['id']]),Te=new Set([c[_0x35bb4b(0x2f4)]['id'],c[_0x35bb4b(0x377)]['id'],c[_0x35bb4b(0x238)]['id'],c[_0x35bb4b(0x1c0)]['id']]);function Ee(_0x190c38,_0x197f91=we){const _0x448c74=_0x35bb4b;let _0x11f36b=[];for(let _0x3681db of _0x190c38){if(_0x197f91[_0x448c74(0x478)](_0x3681db['id'])){if(_0x11f36b[_0x448c74(0x17d)]>0x0)break;_0x11f36b[_0x448c74(0x35d)](_0x3681db);break;}if(Ce(_0x3681db)){if(_0x11f36b[_0x448c74(0x17d)]>0x0)break;_0x11f36b[_0x448c74(0x35d)](_0x3681db);break;}_0x11f36b[_0x448c74(0x35d)](_0x3681db);}return _0x11f36b;}function T(_0x19660e,_0xb4548,_0x1569e2,_0x5c8eb8,_0x22359c){const _0x35d951=_0x35bb4b;var _0x5bccac,_0x3b55da,_0x3ab05f,_0x5427fb;let _0xe29e31=Ee(_0x19660e),_0x21f200=(_0x5bccac=(_0x3b55da=_0x22359c['getCurrentUser']())==null?void 0x0:_0x3b55da[_0x35d951(0x243)])==null?_0x35d951(0x456):_0x5bccac,_0x5041dc=(_0x3ab05f=(_0x5427fb=_0x22359c[_0x35d951(0x2cb)]())==null?void 0x0:_0x5427fb[_0x35d951(0x2aa)])==null?'unknown':_0x3ab05f;return{'changeset':{'unitID':_0xb4548,'type':(0x0,e[_0x35d951(0x37d)])(_0x1569e2[_0x35d951(0x363)](_0xb4548)),'baseRev':_0x5c8eb8[_0x35d951(0x1db)](_0xb4548),'revision':0x0,'userID':_0x21f200,'memberID':_0x5041dc,'mutations':_0xe29e31},'pendingMutations':_0x19660e[_0x35d951(0x3df)](_0xe29e31['length'])};}function De(_0x31c3fe,_0x58d2c9,_0x2471a2,_0x1f0c49,_0x12ebdc){const _0x13d812=_0x35bb4b;var _0x3fd4ba,_0x27593f,_0x23c229,_0x100da8;let _0x4d38ee=Ee(_0x31c3fe,Te),_0x2109fb=(_0x3fd4ba=(_0x27593f=_0x12ebdc[_0x13d812(0x2cb)]())==null?void 0x0:_0x27593f[_0x13d812(0x243)])==null?_0x13d812(0x456):_0x3fd4ba,_0x169085=(_0x23c229=(_0x100da8=_0x12ebdc[_0x13d812(0x2cb)]())==null?void 0x0:_0x100da8['memberID'])==null?'unknown':_0x23c229;return{'changeset':{'unitID':_0x58d2c9,'type':(0x0,e[_0x13d812(0x37d)])(_0x2471a2[_0x13d812(0x363)](_0x58d2c9)),'baseRev':_0x1f0c49[_0x13d812(0x1db)](_0x58d2c9),'revision':0x0,'userID':_0x2109fb,'memberID':_0x169085,'mutations':_0x4d38ee},'pendingMutations':_0x31c3fe[_0x13d812(0x3df)](_0x4d38ee['length'])};}function Oe(_0x5bf25f,_0x4ab58d,_0x5516ad,_0x476ac7,_0x3790e6){const _0x267c22=_0x35bb4b;var _0x4fe882,_0x3e2e26,_0x3ab3b6,_0x197161;let _0x5a0ded=_0x5bf25f[_0x267c22(0x2d3)]((_0x799fde,_0x109710)=>{const _0x1afb9d=_0x267c22;let _0x3a24a1=_0x799fde[_0x799fde[_0x1afb9d(0x17d)]-0x1],{id:_0xdb640f}=_0x3a24a1==null?{}:_0x3a24a1,{id:_0x35012e,type:_0x298f9d}=_0x109710,_0x1241ac=_0x109710[_0x1afb9d(0x3be)];if(_0xdb640f&&_0xdb640f!==_0x35012e)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0xdb640f+_0x1afb9d(0x367)+_0x35012e+'.');if(!_0x3a24a1)return[{'id':_0x35012e,'type':_0x298f9d,'params':{'unitId':_0x1241ac['unitId'],'textRanges':_0x1241ac[_0x1afb9d(0x39d)],'actions':_0x1241ac[_0x1afb9d(0x442)]}}];let _0x293828=_0x3a24a1[_0x1afb9d(0x3be)];return ke(_0x293828,_0x1241ac)?[..._0x799fde['slice'](0x0,-0x1),{..._0x3a24a1,'id':_0x35012e,'type':_0x298f9d,'params':{'unitId':_0x1241ac[_0x1afb9d(0x2a8)],'textRanges':_0x1241ac[_0x1afb9d(0x39d)],'actions':t[_0x1afb9d(0x32a)][_0x1afb9d(0x185)](_0x293828['actions'],_0x1241ac[_0x1afb9d(0x442)])}}]:[..._0x799fde,{'id':_0x35012e,'type':_0x298f9d,'params':{'unitId':_0x1241ac['unitId'],'textRanges':_0x1241ac[_0x1afb9d(0x39d)],'actions':_0x1241ac[_0x1afb9d(0x442)]}}];},[]),_0x7ce79a=(_0x4fe882=(_0x3e2e26=_0x3790e6[_0x267c22(0x2cb)]())==null?void 0x0:_0x3e2e26['userID'])==null?'unknown':_0x4fe882,_0x3310f1=(_0x3ab3b6=(_0x197161=_0x3790e6[_0x267c22(0x2cb)]())==null?void 0x0:_0x197161[_0x267c22(0x2aa)])==null?_0x267c22(0x456):_0x3ab3b6;return{'changeset':{'unitID':_0x4ab58d,'type':(0x0,e['mapDocumentTypeToUniverInstanceType'])(_0x5516ad[_0x267c22(0x363)](_0x4ab58d)),'baseRev':_0x476ac7['getCurrentRevOfUnit'](_0x4ab58d),'revision':0x0,'userID':_0x7ce79a,'memberID':_0x3310f1,'mutations':_0x5a0ded},'pendingMutations':_0x5bf25f[_0x267c22(0x3df)](_0x5bf25f[_0x267c22(0x17d)])};}function ke(_0x5b690b,_0x23ae35){return!Ae(_0x5b690b)&&!Ae(_0x23ae35)&&je(_0x5b690b['actions'],_0x23ae35['actions']);}function Ae(_0xc1036f){const _0x454c18=_0x35bb4b;return _0xc1036f[_0x454c18(0x2a6)]!==void 0x0;}function je(_0x1f651f,_0x272730){return Me(_0x1f651f)&&Me(_0x272730)&&!Pe(_0x1f651f)&&!Pe(_0x272730)&&!Ne(_0x1f651f)&&!Ne(_0x272730);}function Me(_0x2c8c0d){const _0x4aea15=_0x35bb4b;return Fe(_0x2c8c0d)[_0x4aea15(0x396)](_0x45f91a=>E(_0x45f91a)&&_0x45f91a['et']===_0x4aea15(0x191));}function Ne(_0x28fb3a){const _0x30cc89=_0x35bb4b;return Fe(_0x28fb3a)['some'](_0x438b5c=>Array[_0x30cc89(0x23a)](_0x438b5c)||typeof _0x438b5c=='string'||typeof _0x438b5c==_0x30cc89(0x1cd));}function Pe(_0x5dd2f5){const _0x2d6f52=_0x35bb4b;return Fe(_0x5dd2f5)[_0x2d6f52(0x396)](_0x517efc=>!E(_0x517efc)||_0x517efc['et']!==_0x2d6f52(0x191)||!Array[_0x2d6f52(0x23a)](_0x517efc['e'])?!0x1:_0x517efc['e']['some'](_0xc877b2=>!E(_0xc877b2)||!E(_0xc877b2[_0x2d6f52(0x46f)])?!0x1:Object[_0x2d6f52(0x230)]['hasOwnProperty'][_0x2d6f52(0x33e)](_0xc877b2['body'],'tables')||Object['prototype'][_0x2d6f52(0x469)][_0x2d6f52(0x33e)](_0xc877b2['body'],_0x2d6f52(0x485))||Object[_0x2d6f52(0x230)][_0x2d6f52(0x469)][_0x2d6f52(0x33e)](_0xc877b2['body'],_0x2d6f52(0x22e))));}function Fe(_0x567955){const _0x441706=_0x35bb4b;if(!Array[_0x441706(0x23a)](_0x567955))return[];let _0x3d484a=_0x567955['includes'](_0x441706(0x46f))?_0x567955:_0x567955[_0x441706(0x25c)](_0x2c06b7=>Array[_0x441706(0x23a)](_0x2c06b7)&&_0x2c06b7[_0x441706(0x492)](_0x441706(0x46f)));if(!Array[_0x441706(0x23a)](_0x3d484a))return[];let _0x209e88=_0x3d484a[_0x441706(0x312)](_0x441706(0x46f));return _0x209e88===-0x1?[]:_0x3d484a[_0x441706(0x3df)](_0x209e88+0x1);}function E(_0x112f6d){const _0x38af46=_0x35bb4b;return typeof _0x112f6d==_0x38af46(0x1b0)&&!!_0x112f6d&&!Array[_0x38af46(0x23a)](_0x112f6d);}function Ie(_0x44d8e6,_0x5acd03){const _0x3bb4c2=_0x35bb4b;let _0x251c13=new i[(_0x3bb4c2(0x345))](0x1);return setTimeout(()=>_0x251c13['next'](_0x5acd03),_0x44d8e6),_0x251c13['asObservable']()[_0x3bb4c2(0x481)]((0x0,i[_0x3bb4c2(0x1c6)])(0x1));}var Le,Re,ze;let Be=function(_0x43d558){const _0x47fcb3=_0x35bb4b;return _0x43d558[_0x47fcb3(0x195)]='not_collab',_0x43d558[_0x47fcb3(0x454)]=_0x47fcb3(0x2f6),_0x43d558[_0x47fcb3(0x39b)]=_0x47fcb3(0x47c),_0x43d558[_0x47fcb3(0x429)]=_0x47fcb3(0x459),_0x43d558['AWAITING_WITH_PENDING']=_0x47fcb3(0x2d4),_0x43d558[_0x47fcb3(0x489)]='fetch_missing',_0x43d558[_0x47fcb3(0x349)]=_0x47fcb3(0x2a2),_0x43d558[_0x47fcb3(0x3fc)]=_0x47fcb3(0x3b7),_0x43d558;}({});const Ve=0x4e20,He=0x2bf20;var D=class{constructor(_0x166bac,_0x13843c,_0x11320c,_0x5a46d7,_0x2ced48,_0x9b7253,_0x1ae5c8,_0x560228,_0x3f3d6c){const _0x4d3482=_0x35bb4b;this['unitID']=_0x166bac,this[_0x4d3482(0x435)]=_0x13843c,this[_0x4d3482(0x180)]=_0x2ced48,this[_0x4d3482(0x256)]=_0x9b7253,this[_0x4d3482(0x42e)]=_0x1ae5c8,this[_0x4d3482(0x34e)]=_0x560228,this[_0x4d3482(0x1d3)]=_0x3f3d6c,g(this,_0x4d3482(0x3a1),null),g(this,'_pendingMutations',[]),this[_0x4d3482(0x3a1)]=_0x11320c,this[_0x4d3482(0x424)]=_0x5a46d7;}[_0x35bb4b(0x18a)](_0x171089){const _0x47c76a=_0x35bb4b;let _0x442f86=this['_revisionService'][_0x47c76a(0x1db)](this['unitID']);return _0x171089[_0x47c76a(0x354)]>_0x442f86+0x1?(this['_handler'][_0x47c76a(0x20c)]({'from':_0x442f86,'to':_0x171089['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x9e2c20){const _0x450aeb=_0x35bb4b;this[_0x450aeb(0x42e)]['transformUndoRedo'](this[_0x450aeb(0x41a)],_0x9e2c20);}[_0x35bb4b(0x21c)](_0x2e868f){var _0x5f0371,_0x1c315b;(_0x5f0371=(_0x1c315b=this['_handler'])['onTransformSelections'])==null||_0x5f0371['call'](_0x1c315b,_0x2e868f);}[_0x35bb4b(0x3d6)](_0x5a2dc1){const _0x390995=_0x35bb4b;var _0x5142c6,_0x21eabf;return(_0x5142c6=(_0x21eabf=this[_0x390995(0x180)])['onTransformIME'])==null?void 0x0:_0x5142c6['call'](_0x21eabf,_0x5a2dc1);}[_0x35bb4b(0x32e)](_0x39e7a6){const _0x213e2d=_0x35bb4b;var _0x4efabd,_0x3c60ff;return(_0x4efabd=(_0x3c60ff=this[_0x213e2d(0x180)])[_0x213e2d(0x2ec)])==null?void 0x0:_0x4efabd[_0x213e2d(0x33e)](_0x3c60ff,_0x39e7a6);}[_0x35bb4b(0x339)](_0x599fe9){const _0x56d99f=_0x35bb4b;var _0x1ee6aa,_0x19e377,_0x23ecea;return(_0x1ee6aa=(_0x19e377=(_0x23ecea=this[_0x56d99f(0x180)])[_0x56d99f(0x248)])==null?void 0x0:_0x19e377['call'](_0x23ecea,_0x599fe9))==null?_0x599fe9:_0x1ee6aa;}[_0x35bb4b(0x457)](_0x526ad9){const _0xa3075f=_0x35bb4b;var _0x53e19b,_0x5e52a7,_0x110a73;return(_0x53e19b=(_0x5e52a7=(_0x110a73=this[_0xa3075f(0x180)])[_0xa3075f(0x220)])==null?void 0x0:_0x5e52a7[_0xa3075f(0x33e)](_0x110a73,_0x526ad9))==null?_0x526ad9:_0x53e19b;}[_0x35bb4b(0x47b)](_0x5a21be){const _0x158866=_0x35bb4b;if(this[_0x158866(0x435)]===t[_0x158866(0x36f)][_0x158866(0x207)]){let {unitID:_0x246d79,mutations:_0x4ae5d6,memberID:_0x1fd239}=_0x5a21be,_0x594601=_0x4ae5d6['length']>0x0?_0x4ae5d6[0x0]['params'][_0x158866(0x39d)]:[];if(Array[_0x158866(0x23a)](_0x594601)&&_0x594601[_0x158866(0x17d)]>0x0){var _0x1d036c,_0xa1c8fd;(_0x1d036c=(_0xa1c8fd=this[_0x158866(0x180)])[_0x158866(0x373)])==null||_0x1d036c[_0x158866(0x33e)](_0xa1c8fd,{'unitID':_0x246d79,'memberID':_0x1fd239,'textRanges':_0x594601});}}}[_0x35bb4b(0x297)](){const _0x500e2d=_0x35bb4b;var _0x13aa32;(_0x13aa32=this[_0x500e2d(0x1d3)])==null||_0x13aa32['updateOfflineData'](this[_0x500e2d(0x41a)],this[_0x500e2d(0x435)],this[_0x500e2d(0x3a1)],this[_0x500e2d(0x424)]);}[_0x35bb4b(0x1eb)](){const _0x264e48=_0x35bb4b;return this[_0x264e48(0x34e)][_0x264e48(0x1db)](this[_0x264e48(0x41a)]);}[_0x35bb4b(0x310)](){const _0x3c21d1=_0x35bb4b;this[_0x3c21d1(0x34e)]['incrementRevOfUnit'](this['unitID']);}[_0x35bb4b(0x443)](_0x1bebf3){const _0x22764e=_0x35bb4b;let _0x2dbb29=this[_0x22764e(0x339)](_0x1bebf3);_0x2dbb29=this[_0x22764e(0x457)](_0x2dbb29);let _0x2102c2=(0x0,t[_0x22764e(0x2a7)])(_0x2dbb29[_0x22764e(0x2de)],this['_commandService'],{'fromCollab':!0x0});if(!_0x2102c2[_0x22764e(0x3bb)]){var _0x4cac45;throw _0x2102c2[_0x22764e(0x23f)]instanceof Error?_0x2102c2['error']:Error((_0x4cac45=_0x2102c2[_0x22764e(0x23f)])==null?'[CollaborationState]:\x20apply\x20error!':_0x4cac45);}this[_0x22764e(0x3d6)](_0x2dbb29),this['_transformStateCache'](_0x2dbb29),this['_transformUndoredo'](_0x1bebf3),this[_0x22764e(0x21c)](_0x2dbb29),this[_0x22764e(0x47b)](_0x2dbb29),this[_0x22764e(0x310)]();}};let O=class extends D{constructor(_0x3a84d6,_0x5f310f,_0x525483,_0x5cd64a,_0xa658be,_0x83a544,_0x2b89c6,_0x31ed34,_0x2d54ab,_0x4442f8){const _0x4f3a6=_0x35bb4b;super(_0x3a84d6,_0x5f310f,null,[],_0x525483,_0x2b89c6,_0x83a544,_0x5cd64a,_0x4442f8),this['_injector']=_0xa658be,this[_0x4f3a6(0x445)]=_0x31ed34,this[_0x4f3a6(0x217)]=_0x2d54ab,this[_0x4f3a6(0x18c)]=_0x4442f8,g(this,_0x4f3a6(0x16d),'synced');}[_0x35bb4b(0x236)](_0x19fa8e){const _0x425035=_0x35bb4b;let _0x4c7b54=this[_0x425035(0x19a)][_0x425035(0x303)](k,this['unitID'],this[_0x425035(0x435)],[_0x19fa8e],this[_0x425035(0x180)]);return _0x4c7b54[_0x425035(0x398)](),_0x4c7b54['_updateLocalCache'](),_0x4c7b54;}[_0x35bb4b(0x2dd)](_0x5a1c5d){const _0x388b9e=_0x35bb4b;if(this[_0x388b9e(0x18a)](_0x5a1c5d))return this[_0x388b9e(0x19a)][_0x388b9e(0x303)](P,this[_0x388b9e(0x41a)],this[_0x388b9e(0x435)],null,[],null,[_0x5a1c5d],this[_0x388b9e(0x180)]);try{let _0x2fdd08=this[_0x388b9e(0x217)][_0x388b9e(0x36c)](_0x5a1c5d,[e[_0x388b9e(0x47d)]]);if((0x0,e[_0x388b9e(0x3c3)])(_0x2fdd08)){let {c1Prime:_0x2e5e03}=_0x2fdd08;return this['_executeRemoteChangeset'](_0x2e5e03),this;}throw _0x2fdd08['error'];}catch(_0x51594e){return this[_0x388b9e(0x445)][_0x388b9e(0x23f)](_0x51594e),this[_0x388b9e(0x198)](!0x1);}}[_0x35bb4b(0x198)](_0x579495){const _0x296a58=_0x35bb4b;return this['_injector'][_0x296a58(0x303)](M,this['unitID'],this[_0x296a58(0x435)],null,[],this['_handler'],_0x579495);}[_0x35bb4b(0x2e2)](_0x35f4b8){const _0x39f5ad=_0x35bb4b;if(_0x35f4b8['revision']<=this[_0x39f5ad(0x1eb)]())return this;throw Error(_0x39f5ad(0x1ee));}[_0x35bb4b(0x2b9)](){throw Error('[SyncedState]:\x20received\x20rejection.');}[_0x35bb4b(0x22a)](){return this;}[_0x35bb4b(0x3da)](){const _0x15a4b8=_0x35bb4b;return this[_0x15a4b8(0x19a)][_0x15a4b8(0x303)](N,this['unitID'],this[_0x15a4b8(0x435)],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x35bb4b(0x24e)](){const _0xcf6767=_0x35bb4b;throw Error(_0xcf6767(0x1c4));}[_0x35bb4b(0x477)](){const _0x2442dd=_0x35bb4b;let _0x147f14=this[_0x2442dd(0x34e)][_0x2442dd(0x1db)](this[_0x2442dd(0x41a)]);return this[_0x2442dd(0x180)][_0x2442dd(0x20c)]({'from':_0x147f14,'to':0x0}),this[_0x2442dd(0x19a)][_0x2442dd(0x303)](P,this['unitID'],this[_0x2442dd(0x435)],null,[],null,[],this[_0x2442dd(0x180)]);}};O=y([v(0x3,(0x0,t[_0x35bb4b(0x48e)])(e[_0x35bb4b(0x46e)])),v(0x4,(0x0,t[_0x35bb4b(0x48e)])(t['Injector'])),v(0x5,t[_0x35bb4b(0x3c9)]),v(0x6,t[_0x35bb4b(0x224)]),v(0x7,t[_0x35bb4b(0x1d7)]),v(0x8,e['ITransformService']),v(0x9,(0x0,t[_0x35bb4b(0x1a4)])(S))],O);function _0x5a3b(_0x728eaf,_0x12531f){_0x728eaf=_0x728eaf-0x16c;const _0x38a3f2=_0x38a3();let _0x5a3bea=_0x38a3f2[_0x728eaf];return _0x5a3bea;}let k=Le=class extends D{constructor(_0x22c31e,_0x58d55a,_0xb1f792,_0x51b03d,_0x228f7b,_0x4654ff,_0x4cd1d9,_0x3451c8,_0x3c6e8e,_0x21e45b,_0x2a1f52,_0x2612f8,_0x148e9d,_0x32e20a){const _0x5e919d=_0x35bb4b;super(_0x22c31e,_0x58d55a,null,_0xb1f792,_0x51b03d,_0x3c6e8e,_0x148e9d,_0x4654ff,_0x32e20a),this['_injector']=_0x228f7b,this['_memberService']=_0x4cd1d9,this[_0x5e919d(0x445)]=_0x3451c8,this['_configService']=_0x21e45b,this[_0x5e919d(0x217)]=_0x2a1f52,this[_0x5e919d(0x25a)]=_0x2612f8,g(this,_0x5e919d(0x16d),_0x5e919d(0x47c)),g(this,_0x5e919d(0x2a5),null),g(this,'_sendingTimer',null);}['appendMutation'](_0x5ce948){const _0x5f183e=_0x35bb4b;return this['_pendingMutations'][_0x5f183e(0x35d)](_0x5ce948),this[_0x5f183e(0x297)](),this;}[_0x35bb4b(0x2dd)](_0x2d8dec){const _0x23a4c8=_0x35bb4b;if(this[_0x23a4c8(0x18a)](_0x2d8dec))return this[_0x23a4c8(0x18e)](),this[_0x23a4c8(0x19a)]['createInstance'](P,this[_0x23a4c8(0x41a)],this[_0x23a4c8(0x435)],null,this[_0x23a4c8(0x424)],null,[_0x2d8dec],this['_handler']);try{let _0x27e1db=this[_0x23a4c8(0x217)][_0x23a4c8(0x36c)](_0x2d8dec,this[_0x23a4c8(0x424)]);if((0x0,e[_0x23a4c8(0x3c3)])(_0x27e1db)){let {c1Prime:_0x1c7e0f,m2Prime:_0x4f4d57}=_0x27e1db;this[_0x23a4c8(0x443)](_0x1c7e0f);let _0x1d2479=this['_injector']['createInstance'](Le,this[_0x23a4c8(0x41a)],this[_0x23a4c8(0x435)],_0x4f4d57,this['_handler']);this[_0x23a4c8(0x18e)]();let _0x56d862=new Date()['getTime'](),_0x743b81=this[_0x23a4c8(0x2a5)]?Math['max'](this[_0x23a4c8(0x2a5)]-_0x56d862,0x0):this[_0x23a4c8(0x3b0)]();return _0x1d2479[_0x23a4c8(0x398)](_0x743b81),_0x1d2479;}throw _0x27e1db[_0x23a4c8(0x23f)];}catch(_0x590921){return this['_logService'][_0x23a4c8(0x23f)](_0x590921),this[_0x23a4c8(0x198)](!0x1);}}[_0x35bb4b(0x2e2)](_0x4c2ba6){const _0x3c3e8f=_0x35bb4b;if(_0x4c2ba6[_0x3c3e8f(0x354)]<=this[_0x3c3e8f(0x1eb)]())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x35bb4b(0x2b9)](){const _0x437493=_0x35bb4b;throw Error(_0x437493(0x29e));}[_0x35bb4b(0x22a)](){return this;}['toggleOffline'](){const _0x564f49=_0x35bb4b;return this['_clearScheduledTask'](),this[_0x564f49(0x19a)][_0x564f49(0x303)](N,this[_0x564f49(0x41a)],this[_0x564f49(0x435)],null,this[_0x564f49(0x424)],this[_0x564f49(0x180)]);}[_0x35bb4b(0x3cb)](){return this;}[_0x35bb4b(0x398)](_0x3d986d){const _0x2fa28b=_0x35bb4b;let _0x55c30b=_0x3d986d==null?this[_0x2fa28b(0x3b0)]():_0x3d986d;this['_scheduleCompleteTimestamp']=new Date()[_0x2fa28b(0x337)]()+_0x55c30b,this[_0x2fa28b(0x475)]=setTimeout(()=>{const _0x346c5c=_0x2fa28b;this[_0x346c5c(0x18e)]();let _0x460c90=null;switch(this[_0x346c5c(0x435)]){case t[_0x346c5c(0x36f)]['UNIVER_SHEET']:_0x460c90=T(this[_0x346c5c(0x424)],this[_0x346c5c(0x41a)],this[_0x346c5c(0x25a)],this[_0x346c5c(0x34e)],this[_0x346c5c(0x362)]);break;case t[_0x346c5c(0x36f)]['UNIVER_DOC']:_0x460c90=this[_0x346c5c(0x424)][_0x346c5c(0x350)](_0x321f06=>_0x321f06['id']===n['RichTextEditingMutation']['id'])?Oe(this['_pendingMutations'],this['unitID'],this[_0x346c5c(0x25a)],this[_0x346c5c(0x34e)],this['_memberService']):T(this[_0x346c5c(0x424)],this[_0x346c5c(0x41a)],this[_0x346c5c(0x25a)],this['_revisionService'],this[_0x346c5c(0x362)]);break;case t[_0x346c5c(0x36f)]['UNIVER_SLIDE']:_0x460c90=De(this[_0x346c5c(0x424)],this[_0x346c5c(0x41a)],this[_0x346c5c(0x25a)],this['_revisionService'],this[_0x346c5c(0x362)]);break;case t[_0x346c5c(0x36f)][_0x346c5c(0x1ad)]:_0x460c90=T(this['_pendingMutations'],this[_0x346c5c(0x41a)],this[_0x346c5c(0x25a)],this[_0x346c5c(0x34e)],this[_0x346c5c(0x362)]);break;case t[_0x346c5c(0x36f)][_0x346c5c(0x17e)]:_0x460c90=T(this[_0x346c5c(0x424)],this[_0x346c5c(0x41a)],this[_0x346c5c(0x25a)],this[_0x346c5c(0x34e)],this['_memberService']);break;default:throw Error(_0x346c5c(0x1bd)+this['type']+_0x346c5c(0x197));}let {changeset:_0x477a16,pendingMutations:_0x5bf34a}=_0x460c90;this['_handler'][_0x346c5c(0x36e)](_0x477a16);let _0x5e928d=_0x5bf34a[_0x346c5c(0x17d)]?this[_0x346c5c(0x19a)][_0x346c5c(0x303)](j,this[_0x346c5c(0x41a)],this[_0x346c5c(0x435)],_0x477a16,_0x5bf34a,this[_0x346c5c(0x180)],void 0x0):this['_injector']['createInstance'](A,this[_0x346c5c(0x41a)],this['type'],_0x477a16,this[_0x346c5c(0x180)]);_0x5e928d[_0x346c5c(0x297)](),this[_0x346c5c(0x180)][_0x346c5c(0x266)](this,_0x5e928d);},_0x55c30b);}[_0x35bb4b(0x3b0)](){const _0x4e451e=_0x35bb4b;var _0x5cc0af;let _0x5e26cc=this[_0x4e451e(0x3ec)][_0x4e451e(0x1bf)](m);return(_0x5cc0af=_0x5e26cc==null?void 0x0:_0x5e26cc['sendChangesetTimeout'])==null?0x7d0:_0x5cc0af;}['resend'](){const _0x23f79a=_0x35bb4b;throw Error(_0x23f79a(0x24d));}[_0x35bb4b(0x18e)](){const _0x1886a0=_0x35bb4b;this[_0x1886a0(0x475)]!=null&&(clearTimeout(this[_0x1886a0(0x475)]),this['_sendingTimer']=null);}[_0x35bb4b(0x198)](_0x4596ff){const _0x54e596=_0x35bb4b;return this[_0x54e596(0x18e)](),this[_0x54e596(0x19a)][_0x54e596(0x303)](M,this['unitID'],this[_0x54e596(0x435)],null,this[_0x54e596(0x424)],this[_0x54e596(0x180)],_0x4596ff);}};k=Le=y([v(0x4,(0x0,t[_0x35bb4b(0x48e)])(t['Injector'])),v(0x5,(0x0,t['Inject'])(e['RevisionService'])),v(0x6,(0x0,t[_0x35bb4b(0x48e)])(b)),v(0x7,t[_0x35bb4b(0x1d7)]),v(0x8,t[_0x35bb4b(0x224)]),v(0x9,t[_0x35bb4b(0x340)]),v(0xa,e[_0x35bb4b(0x41f)]),v(0xb,t[_0x35bb4b(0x1ba)]),v(0xc,t[_0x35bb4b(0x3c9)]),v(0xd,(0x0,t[_0x35bb4b(0x1a4)])(S))],k);let A=Re=class extends D{constructor(_0x51ca5b,_0x46b099,_0x437097,_0x3a2945,_0x433f5b,_0x1f8dcb,_0x2a755a,_0x35ce2d,_0x18856c,_0x5389d1,_0x2427a7){const _0x30b5ad=_0x35bb4b;super(_0x51ca5b,_0x46b099,_0x437097,[],_0x3a2945,_0x2a755a,_0x5389d1,_0x1f8dcb,_0x2427a7),this[_0x30b5ad(0x19a)]=_0x433f5b,this[_0x30b5ad(0x445)]=_0x35ce2d,this['_transformService']=_0x18856c,g(this,'status',_0x30b5ad(0x459)),g(this,_0x30b5ad(0x3c1),0x0),g(this,_0x30b5ad(0x3c2),0x0),g(this,_0x30b5ad(0x387),void 0x0),g(this,'_sender',void 0x0);}[_0x35bb4b(0x236)](_0x5cb905){const _0xa6f1e5=_0x35bb4b;this['_clearScheduledTask']();let _0x355e65=this[_0xa6f1e5(0x19a)][_0xa6f1e5(0x303)](j,this[_0xa6f1e5(0x41a)],this[_0xa6f1e5(0x435)],this[_0xa6f1e5(0x3a1)],[_0x5cb905],this['_handler'],this['_resendTimer']);return _0x355e65[_0xa6f1e5(0x297)](),_0x355e65;}[_0x35bb4b(0x2dd)](_0x24255a){const _0x12edcd=_0x35bb4b;if(this[_0x12edcd(0x18a)](_0x24255a))return this[_0x12edcd(0x18e)](),this['_injector'][_0x12edcd(0x303)](P,this[_0x12edcd(0x41a)],this['type'],this['_awaitingChangeset'],[],null,[_0x24255a],this[_0x12edcd(0x180)]);try{let _0x32ff5a=this['_transformService']['transformChangesets']([_0x24255a],[this['_awaitingChangeset']],!0x1);if((0x0,e['isTransformChangesetsSuccess'])(_0x32ff5a)){let {c1Prime:_0x5f350c,c2Prime:_0x2b8fbb}=_0x32ff5a;this[_0x12edcd(0x443)](_0x5f350c[0x0]),_0x2b8fbb[0x0]['baseRev']=this['_getCurrentRevision'](),this['_clearScheduledTask']();let _0x4ee73a=this[_0x12edcd(0x19a)]['createInstance'](Re,this[_0x12edcd(0x41a)],this[_0x12edcd(0x435)],_0x2b8fbb[0x0],this[_0x12edcd(0x180)]);return _0x4ee73a['_updateLocalCache'](),_0x4ee73a;}throw _0x32ff5a[_0x12edcd(0x23f)];}catch(_0x45ce04){return this['_logService']['error'](_0x45ce04),this[_0x12edcd(0x198)](!0x1);}}['onRemoteAck'](_0x2835e7){const _0x23dd20=_0x35bb4b;this['_clearScheduledTask']();let _0x303928=this[_0x23dd20(0x34e)][_0x23dd20(0x1db)](this['unitID']);if(_0x2835e7[_0x23dd20(0x354)]<=_0x303928)return this;if(this[_0x23dd20(0x18a)](_0x2835e7))return this[_0x23dd20(0x19a)][_0x23dd20(0x303)](P,this[_0x23dd20(0x41a)],this['type'],this[_0x23dd20(0x3a1)],[],_0x2835e7[_0x23dd20(0x354)],[],this[_0x23dd20(0x180)]);this[_0x23dd20(0x310)]();let _0x4adaaa=this[_0x23dd20(0x19a)][_0x23dd20(0x303)](O,this[_0x23dd20(0x41a)],this[_0x23dd20(0x435)],this[_0x23dd20(0x180)]);return _0x4adaaa[_0x23dd20(0x297)](),_0x4adaaa;}[_0x35bb4b(0x2b9)](_0x40fe17){const _0x48e017=_0x35bb4b;return this[_0x48e017(0x198)](!!(_0x40fe17!=null&&_0x40fe17[_0x48e017(0x2fd)]));}[_0x35bb4b(0x22a)](_0x1c563d){const _0x5a9abf=_0x35bb4b;return this[_0x5a9abf(0x3c2)]>He?this[_0x5a9abf(0x3da)]():(this[_0x5a9abf(0x387)]=Ie(this[_0x5a9abf(0x3c1)],{'timeout':this[_0x5a9abf(0x3c1)],'reqId':_0x1c563d['reqId']}),this[_0x5a9abf(0x40b)]=this['_resendTimer'][_0x5a9abf(0x29b)](({reqId:_0x445a82,timeout:_0x476eb2})=>{const _0x17586e=_0x5a9abf;this[_0x17586e(0x341)](_0x445a82,_0x476eb2);}),this);}[_0x35bb4b(0x3da)](){const _0x565b2b=_0x35bb4b;return this[_0x565b2b(0x18e)](),this[_0x565b2b(0x19a)]['createInstance'](N,this[_0x565b2b(0x41a)],this[_0x565b2b(0x435)],this[_0x565b2b(0x3a1)],[],this['_handler']);}[_0x35bb4b(0x3cb)](){return this;}[_0x35bb4b(0x24e)](){const _0x5242ca=_0x35bb4b;this[_0x5242ca(0x180)][_0x5242ca(0x36e)](this[_0x5242ca(0x3a1)]);}[_0x35bb4b(0x198)](_0x36dadd){const _0x5e66a7=_0x35bb4b;return this[_0x5e66a7(0x18e)](),this[_0x5e66a7(0x19a)][_0x5e66a7(0x303)](M,this[_0x5e66a7(0x41a)],this[_0x5e66a7(0x435)],this['_awaitingChangeset'],[],this[_0x5e66a7(0x180)],_0x36dadd);}[_0x35bb4b(0x341)](_0x302c74,_0x29da18){const _0x2279a4=_0x35bb4b;var _0x5d0cc6;_0x302c74===((_0x5d0cc6=this[_0x2279a4(0x3a1)])==null?void 0x0:_0x5d0cc6[_0x2279a4(0x447)])&&(this[_0x2279a4(0x24e)](),this[_0x2279a4(0x3c1)]=_0x29da18===0x0?0x3e8:Math[_0x2279a4(0x39c)](_0x29da18*0x2,Ve),this[_0x2279a4(0x3c2)]+=this['_resendTimeout']);}[_0x35bb4b(0x18e)](){const _0x18f7b3=_0x35bb4b;var _0x16fda4;(_0x16fda4=this[_0x18f7b3(0x40b)])==null||_0x16fda4['unsubscribe'](),this['_resendTimeout']=0x0,this[_0x18f7b3(0x3c2)]=0x0;}};A=Re=y([v(0x4,(0x0,t[_0x35bb4b(0x48e)])(t[_0x35bb4b(0x413)])),v(0x5,(0x0,t[_0x35bb4b(0x48e)])(e['RevisionService'])),v(0x6,t[_0x35bb4b(0x224)]),v(0x7,t['ILogService']),v(0x8,e['ITransformService']),v(0x9,t[_0x35bb4b(0x3c9)]),v(0xa,(0x0,t[_0x35bb4b(0x1a4)])(S))],A);let j=ze=class extends D{constructor(_0x4f4457,_0x187c46,_0x5c32af,_0xcec873,_0x987c5a,_0x20e47f,_0x38135f,_0x405272,_0x2218b9,_0x2af1b1,_0x4ad1ee,_0x229bd5,_0x24a5cc){const _0x3cc95f=_0x35bb4b;super(_0x4f4457,_0x187c46,_0x5c32af,_0xcec873,_0x987c5a,_0x2218b9,_0x229bd5,_0x405272,_0x24a5cc),this['_injector']=_0x38135f,this[_0x3cc95f(0x445)]=_0x2af1b1,this[_0x3cc95f(0x217)]=_0x4ad1ee,this[_0x3cc95f(0x18c)]=_0x24a5cc,g(this,'status','awaiting_with_pending'),g(this,_0x3cc95f(0x3c1),0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,_0x3cc95f(0x387),void 0x0),g(this,_0x3cc95f(0x40b),void 0x0),_0x20e47f&&(this[_0x3cc95f(0x387)]=_0x20e47f,this[_0x3cc95f(0x40b)]=this['_resendTimer']['subscribe'](({reqId:_0x2f7c38,timeout:_0x4f0f4b})=>{const _0x550f49=_0x3cc95f;this[_0x550f49(0x341)](_0x2f7c38,_0x4f0f4b);}));}[_0x35bb4b(0x236)](_0xba7e5e){const _0x375d1e=_0x35bb4b;return this[_0x375d1e(0x424)]['push'](_0xba7e5e),this;}[_0x35bb4b(0x2dd)](_0x1d35ad){const _0x5a1bf0=_0x35bb4b;if(this[_0x5a1bf0(0x18a)](_0x1d35ad))return this[_0x5a1bf0(0x18e)](),this[_0x5a1bf0(0x19a)][_0x5a1bf0(0x303)](P,this['unitID'],this[_0x5a1bf0(0x435)],this[_0x5a1bf0(0x3a1)],this[_0x5a1bf0(0x424)],null,[_0x1d35ad],this[_0x5a1bf0(0x180)]);try{let _0xe121f6=this['_transformService'][_0x5a1bf0(0x3e4)]([_0x1d35ad],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0x5a1bf0(0x365)])(_0xe121f6)){let {c1Prime:_0x109def,c2Prime:_0x41591a}=_0xe121f6,_0x2bed55=this[_0x5a1bf0(0x217)][_0x5a1bf0(0x36c)](_0x109def[0x0],this[_0x5a1bf0(0x424)]);if((0x0,e[_0x5a1bf0(0x3c3)])(_0x2bed55)){let {c1Prime:_0x38ef3a,m2Prime:_0xcabc61}=_0x2bed55;return this[_0x5a1bf0(0x443)](_0x38ef3a),_0x41591a[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x5a1bf0(0x18e)](),this[_0x5a1bf0(0x19a)][_0x5a1bf0(0x303)](ze,this['unitID'],this[_0x5a1bf0(0x435)],_0x41591a[0x0],_0xcabc61,this[_0x5a1bf0(0x180)],void 0x0);}throw _0x2bed55['error'];}throw _0xe121f6[_0x5a1bf0(0x23f)];}catch(_0x4a6659){return this[_0x5a1bf0(0x445)][_0x5a1bf0(0x23f)](_0x4a6659),this[_0x5a1bf0(0x198)](!0x1);}}[_0x35bb4b(0x2e2)](_0x11f7a4){const _0x4477c2=_0x35bb4b;this[_0x4477c2(0x18e)]();let _0x8c9fc3=this[_0x4477c2(0x1eb)]();if(_0x11f7a4[_0x4477c2(0x354)]<=_0x8c9fc3)return this;if(this[_0x4477c2(0x18a)](_0x11f7a4))return this['_injector'][_0x4477c2(0x303)](P,this['unitID'],this[_0x4477c2(0x435)],this[_0x4477c2(0x3a1)],this[_0x4477c2(0x424)],_0x11f7a4[_0x4477c2(0x354)],[],this[_0x4477c2(0x180)]);this[_0x4477c2(0x310)]();let _0x3b9849=this[_0x4477c2(0x19a)][_0x4477c2(0x303)](k,this[_0x4477c2(0x41a)],this['type'],this['_pendingMutations'],this[_0x4477c2(0x180)]);return _0x3b9849[_0x4477c2(0x398)](),_0x3b9849[_0x4477c2(0x297)](),_0x3b9849;}[_0x35bb4b(0x2b9)](_0x56ecf6){const _0x5ea359=_0x35bb4b;return this[_0x5ea359(0x198)](!!(_0x56ecf6!=null&&_0x56ecf6['isPermissionRej']));}[_0x35bb4b(0x22a)](_0x5af402){const _0x213e5f=_0x35bb4b;return this['_maxTotalRetryTimeout']>He?this[_0x213e5f(0x3da)]():(this[_0x213e5f(0x387)]=Ie(this[_0x213e5f(0x3c1)],{'timeout':this['_resendTimeout'],'reqId':_0x5af402[_0x213e5f(0x447)]}),this[_0x213e5f(0x40b)]=this[_0x213e5f(0x387)][_0x213e5f(0x29b)](({reqId:_0x111e0f,timeout:_0x5ed26b})=>{this['_resendWithTimeout'](_0x111e0f,_0x5ed26b);}),this);}[_0x35bb4b(0x3da)](){const _0x5b3956=_0x35bb4b;return this[_0x5b3956(0x18e)](),this[_0x5b3956(0x19a)][_0x5b3956(0x303)](N,this[_0x5b3956(0x41a)],this[_0x5b3956(0x435)],this[_0x5b3956(0x3a1)],this[_0x5b3956(0x424)],this[_0x5b3956(0x180)]);}[_0x35bb4b(0x3cb)](){return this;}['resend'](){const _0x2df53c=_0x35bb4b;this[_0x2df53c(0x180)][_0x2df53c(0x36e)](this[_0x2df53c(0x3a1)]);}['_onConflict'](_0x9f05c0){const _0x1cee5e=_0x35bb4b;return this[_0x1cee5e(0x18e)](),this[_0x1cee5e(0x19a)][_0x1cee5e(0x303)](M,this['unitID'],this['type'],null,this['_pendingMutations'],this[_0x1cee5e(0x180)],_0x9f05c0);}['_resendWithTimeout'](_0x389e5c,_0x4bcf01){const _0x4f0584=_0x35bb4b;var _0x4f7dca;_0x389e5c===((_0x4f7dca=this[_0x4f0584(0x3a1)])==null?void 0x0:_0x4f7dca[_0x4f0584(0x447)])&&(this[_0x4f0584(0x24e)](),this[_0x4f0584(0x3c1)]=_0x4bcf01===0x0?0x3e8:Math['min'](_0x4bcf01*0x2,Ve),this[_0x4f0584(0x3c2)]+=this['_resendTimeout']);}[_0x35bb4b(0x18e)](){const _0x52b708=_0x35bb4b;var _0xe3b492;(_0xe3b492=this[_0x52b708(0x40b)])==null||_0xe3b492[_0x52b708(0x182)](),this[_0x52b708(0x3c1)]=0x0,this[_0x52b708(0x3c2)]=0x0;}};j=ze=y([v(0x6,(0x0,t[_0x35bb4b(0x48e)])(t[_0x35bb4b(0x413)])),v(0x7,(0x0,t[_0x35bb4b(0x48e)])(e['RevisionService'])),v(0x8,t[_0x35bb4b(0x224)]),v(0x9,t['ILogService']),v(0xa,e[_0x35bb4b(0x41f)]),v(0xb,t['IUndoRedoService']),v(0xc,(0x0,t[_0x35bb4b(0x1a4)])(S))],j);let M=class extends D{constructor(_0x5e0285,_0xe5467d,_0x40a52e,_0x3863af,_0x489a6b,_0x10dc26=!0x1,_0x3d5231,_0x4d32b0,_0x15db72,_0x1d95c2,_0x4ca6c7,_0x302da0,_0x277eeb){const _0x44f890=_0x35bb4b;super(_0x5e0285,_0xe5467d,_0x40a52e,_0x3863af,_0x489a6b,_0x4d32b0,_0x15db72,_0x1d95c2,_0x277eeb),this[_0x44f890(0x343)]=_0x10dc26,this[_0x44f890(0x1b8)]=_0x3d5231,this[_0x44f890(0x36b)]=_0x4ca6c7,this[_0x44f890(0x1da)]=_0x302da0,this['localCacheService']=_0x277eeb,g(this,_0x44f890(0x16d),'conflict'),this[_0x44f890(0x315)](),this[_0x44f890(0x2a9)](),this[_0x44f890(0x446)]();}[_0x35bb4b(0x236)](){return this;}[_0x35bb4b(0x2dd)](){return this;}['onRemoteAck'](){return this;}[_0x35bb4b(0x2b9)](){return this;}['onRemoteRetry'](){return this;}[_0x35bb4b(0x3da)](){return this;}[_0x35bb4b(0x3cb)](){return this;}[_0x35bb4b(0x24e)](){const _0xd73fcc=_0x35bb4b;throw Error(_0xd73fcc(0x464));}[_0x35bb4b(0x2a9)](){const _0x2732bc=_0x35bb4b;var _0x3ae29d,_0x181d8b,_0x59bfe3;(_0x3ae29d=this['_localCacheService'])==null||(_0x181d8b=_0x3ae29d[_0x2732bc(0x38b)])==null||(_0x181d8b=_0x181d8b[_0x2732bc(0x33e)](_0x3ae29d,this[_0x2732bc(0x41a)],_0x2732bc(0x2a2)))==null||_0x181d8b[_0x2732bc(0x251)](()=>void 0x0),(_0x59bfe3=this[_0x2732bc(0x1d3)])==null||_0x59bfe3[_0x2732bc(0x41d)](this[_0x2732bc(0x41a)],this[_0x2732bc(0x435)],null,[]);}[_0x35bb4b(0x315)](){const _0xd41275=_0x35bb4b;this['_isPermissionRej']?this[_0xd41275(0x1da)][_0xd41275(0x328)]({'id':_0xd41275(0x2b1)}):this[_0xd41275(0x1da)][_0xd41275(0x328)]({'id':_0xd41275(0x349)});}[_0x35bb4b(0x446)](){const _0x207fd1=_0x35bb4b;this[_0x207fd1(0x1b8)]['updatePermissionPoint'](new r['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};M=y([v(0x6,(0x0,t['Inject'])(t[_0x35bb4b(0x1fa)])),v(0x7,t[_0x35bb4b(0x224)]),v(0x8,t[_0x35bb4b(0x3c9)]),v(0x9,(0x0,t[_0x35bb4b(0x48e)])(e[_0x35bb4b(0x46e)])),v(0xa,(0x0,t[_0x35bb4b(0x48e)])(t[_0x35bb4b(0x30a)])),v(0xb,(0x0,t[_0x35bb4b(0x48e)])(_)),v(0xc,(0x0,t[_0x35bb4b(0x1a4)])(S))],M);let N=class extends D{constructor(_0x145786,_0xf3c9ab,_0x5c10f1,_0xf6c388,_0xfd2eca,_0x209c4c,_0xf5b069,_0x2763da,_0x350871,_0xe76b97){const _0x15aea5=_0x35bb4b;super(_0x145786,_0xf3c9ab,_0x5c10f1,_0xf6c388,_0xfd2eca,_0x2763da,_0x350871,_0xf5b069,_0xe76b97),this[_0x15aea5(0x19a)]=_0x209c4c,g(this,_0x15aea5(0x16d),_0x15aea5(0x3b7));}[_0x35bb4b(0x236)](_0x443762){const _0x250f8b=_0x35bb4b;return this[_0x250f8b(0x424)][_0x250f8b(0x35d)](_0x443762),this[_0x250f8b(0x297)](),this;}[_0x35bb4b(0x2dd)](_0x60a48d){const _0x581181=_0x35bb4b;throw Error(_0x581181(0x34b));}[_0x35bb4b(0x2e2)](){const _0x17144b=_0x35bb4b;throw Error(_0x17144b(0x34d));}['onRemoteRej'](){const _0x8aea40=_0x35bb4b;throw Error(_0x8aea40(0x189));}['onRemoteRetry'](){return this;}[_0x35bb4b(0x3da)](){return this;}[_0x35bb4b(0x3cb)](){const _0x426d87=_0x35bb4b;let {_injector:_0xc6da64,_pendingMutations:_0x591ab5,_awaitingChangeset:_0x2d64f3,unitID:_0x26e61a,_handler:_0x4f19a6,type:_0x2b41e9}=this,_0x3f5d91=Ue(_0xc6da64,_0x26e61a,_0x2b41e9,_0x2d64f3,_0x591ab5,_0x4f19a6);return _0x3f5d91 instanceof k?_0x3f5d91[_0x426d87(0x398)]():(_0x3f5d91 instanceof j||_0x3f5d91 instanceof A)&&_0x3f5d91[_0x426d87(0x24e)](),_0x3f5d91;}['resend'](){const _0x4c0cb3=_0x35bb4b;throw Error(_0x4c0cb3(0x2b4));}};N=y([v(0x5,(0x0,t[_0x35bb4b(0x48e)])(t['Injector'])),v(0x6,(0x0,t[_0x35bb4b(0x48e)])(e[_0x35bb4b(0x46e)])),v(0x7,t[_0x35bb4b(0x224)]),v(0x8,t[_0x35bb4b(0x3c9)]),v(0x9,(0x0,t[_0x35bb4b(0x1a4)])(S))],N);function _0x38a3(){const _0x3d6c83=['_removeRoom','liveShareNewHost','_onRemoteACK','[DocCollaborationEntity]:\x20DocStateChangeManagerService\x20is\x20required.\x20Register\x20UniverDocsPlugin\x20before\x20collaboration.','changesets','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','set','_substituteRedoStack','workbook','status$','_getSendChangesetTimeout','&to=','selections','getCollabEntity','[CollaborationSessionService]','entityInit$','socketMessageSubscription','offline','asObservable','getValue','_docStateChangeManagerService','result','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','delete','params','_joinRoom','headers','_resendTimeout','_maxTotalRetryTimeout','isTransformMutationsWithChangesetSuccess','HEARTBEAT','save\x20fail\x20reason\x20is\x20','function','unit-cache-','_collaborationPaused','IUndoRedoService','baseRev','toggleOnline','_getUploadFileURL','PSEUDO_FETCH_MISSING_RESULT','JOINING','closeSession','_getConfig','_applyRemoteChangeset','add','_type','POST','_config','_transformIMECache','_replaceFileID','HEARTBEAT_TIMEOUT_KEY','randomBytes','toggleOffline','stringify','FETCH_MISSING','editing\x20status\x20changed\x20to','c2Prime','slice','close$','_getCtorByUniverInstanceType','/universer-api/stream/file/upload','responseType','transformChangesets','Workbook','awaitingChangeset','_hasSessionsForEndpoint','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_handleRemoteChangesets','SOCKET_FAILED_RETRY','connection\x20error','_configService','resourceIDs','onTransformSelections','_shouldReportTelemetry','NEW_CHANGESETS','SHOULD_CLOSE_CONN','loadOfflineData','_decreaseWaiting','file','leaveEvent','merge','ISingleActiveUnitService','getMemberID','_exhaustRemoteChangesetQueue','socket$','collaboration_new_changeset','OFFLINE','_sessionStatus$','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','cmd','getDeserializedSheetBlock','UNISCRIPT_RUN','toPrimitive','loadUnit','getSnapshotAPIPath','UnitEmbedded','UniverLicensePlugin','URL','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_snapshotServerService','onTransformIME','_sender','_change$','getSheetBlock','disableLocalCache','1.0.0-alpha.3','localeService','isTransformMutationsWithChangesetFailure','2943588bUswzV','Injector','CollaborationEntity','resolve','sessionStatus','_initDependencies','updateCursorEvent','USERS_LEAVE','unitID','addImageSourceCache','roles','updateOfflineData','_stopTelemetryCollaborationNewChangeset','ITransformService','SOCKET_FAILED','waitForRoom$','_onRemoteRetry','sort','_pendingMutations','GLOBAL_ROOMS_CNT_EXCEEDS','size','collaborators','LIVESHARE_OPERATION','AWAITING','reverse','ThresholdInterceptorFactory','upload','getGlobalObject','_undoRedoService','setCfgEnableObjInherit','_sessions','WorkbookEditablePermission','IAttachmentIoService','toStringTag','string','type','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_userManagerService','default','_onOffline','_clearRetryConnectingTimer','_acknowledgedAwaitingRevision','[UniverCollaborationClientPlugin]','firstValueFrom','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','href','getActiveSheet','loadBoard','actions','_executeRemoteChangeset','CompressMutationService','_logService','_disableEditing','reqId','/collaborator','onStarting','eventID','objectID','_unitInfo$','_networkConditionService','UniverNetworkPlugin','ImageUploadStatusType','ws://127.0.0.1:8000/universer-api/comb/connect','registerHTTPInterceptor','/universer-api/authz','5603190wKqXgQ','SYNCED','_tryEnsureSocket','unknown','_transformRemoteChangesetByStateCache','_state','awaiting','[DataLoaderService]','encrypt','downloadEndpointUrl','then','filter','session.room-not-exists','textEncoder','getDrawingImageAllowSize','_commentService','/universer-api/snapshot','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','UNIVER_SLIDE','subUnitId','_unlockTransition','[CollaborationSessionService]:\x20socket\x20error','hasOwnProperty','_getAPIPrefixPath','HELLO','b64DecodeUnicode','entries','RevisionService','body','MentionIoHttpService','241533oeapOw','commentUpdateEvent','_onFetchMissResult','&source=','_sendingTimer','Disposable','fetchMiss','has','_socketService','SheetPermissionInitController','_syncEditingCollabCursor','pending','EmptyMutationInfo','CollaborationUIEventId','getLatestCsReqIdBySid','_initRequestHeader','pipe','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','fetchMissingChangesets','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','columnGroups','_clearCollaborationTimeoutTimer','accept','unitId\x20is\x20not\x20found','FETCH_MISS','CollaborationAttachmentIoService','_onConnectionOpen','_members$','_throwTelemetryCollaborationNewChangeset','Inject','/-/object/list','ERROR_IMAGE','UniverCollaborationClientPlugin','includes','UUID','status','LOCAL_CACHE_INTERVAL','SessionStatus','_singleActiveUnitService','shareReplay','4TLVjHu','CollaborationSession','UPDATE_PERMISSION_OBJ','\x0aAfter:\x20','112BLfsBS','getTypeOfUnitDisposed$','Failed\x20to\x20update\x20permission\x20point','_event$','csAckEvent','getUploadOptions','objects','length','UNIVER_BASE','OTHER_CLIENT_EDITING','_handler','55100BaTWBO','unsubscribe','_getRedoStack','getCollabEntity$','compose','_cfgEnableObjInherit','append','BaseCollaborationEntity','[OfflineState]:\x20received\x20rejection.','_checkMissing','_getAPIPrefix','localCacheService','maxSize','_clearScheduledTask','ImageSourceType','mergeOverrideWithDependencies','text-x','_init','changeset','NO_OTHER_CLIENTS_EDITING','NOT_COLLAB','ICollaborationSocketService','\x20in\x20_schedule.','_onConflict','PERMISSION_REJ','_injector','initWorkbookPermissionChange','registerDependencies','_startCollaboration','_updateState','reconnect','/-/object/-/batch_allowed','_imageSourceCache','reject','sheets','Optional','code','FAIL','\x20to\x20','packageName','CommandType','_onRecvEvent','_lockTransition','candidateSocket','UNIVER_BOARD','FetchingMissState','IImageIoService','object','getUnitId','_createInitialState','location','CombCmd','JOIN','_transformAndApplyRemoteChangeset','HEARTBEAT_TIMEOUT','_permissionService','collaMsg','IUniverInstanceService','_clearTimeoutTimer','_clearUndo','[PendingState]:\x20unhandled\x20univer\x20type:\x20','url','getConfig','RemoveSlidePageMutation','UNIVER_COLLABORATION_CLIENT_PLUGIN','loadDoc','change$','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','/universer-api/snapshot/','take','replace','_getSignURL','HEARTBEAT_INTERVAL','_rescheduleHeartbeat','_eventService','toRemote','number','/block/','objectType','_remoteChangesetQueue','\x0aCurrent:\x20','c1Prime','_localCacheService','fromCollab','session','_clearRedo','ILogService','toLocal','startsWith','_collaborationUIEventService','getCurrentRevOfUnit','onMissedChangesetFetched','PendingState','routeKey','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','socketReady','retryCount','_tryReconnect','getTypeOfUnitAdded$','state$','target','_onCombEvent','__Key__','trim','_changesetSessionId','_submitChangeset','_getCurrentRevision','SUBMIT_CHANGESET_TIMEOUT','message$','[SyncedState]:\x20received\x20acknowledgement.','sessionStatus$','Quantity','_initUnitPermissionChange','SheetTransformSelectionsService','MentionType','_collaborationTimeoutTimer','&assign=','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','complete','method','values','IPermissionService','OTHER_CLIENTS_EDITING','saveChangeset','listCollaborators','/universer-api/uniscript','MergeInterceptorFactory','timeoutTimer','CollaborationStatus','USERS_ENTER','uploadFileServerUrl','encodeURIComponent','_updateStatus','_onUserLeave','UNIVER_DOC','joinRsp','avatar','onLocalMutation','missingChangesets','onMissingChangesets','_toggleOffline','get','range','MemberService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','INGEST','Tools','getUnitOnRev','_compressMutationService','_snapshotService','_transformService','_acknowledgeAwaitingIfReady','defineProperty','_listenToNetworkCondition','resolveWithBasePath','_transformSelections','takeUntil','SUCCUSS','members$','onTransformRemoteChangesetByStateCache','override','createUniverCollaborationAdapter','online$','ICommandService','/unit/','UPDATE_CURSOR','fetching\x20missing\x20changesets\x20from\x20','originalMeta','loadBase','onRemoteRetry','_status$','_collaborationSessionService','concatMap','blockRanges','confirm','prototype','_onJoinRoomEvent','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','list','updateMember','CollaborationUIEventService','appendMutation','/universer-api/comb','MoveSlidePageMutation','requireSession','isArray','endpoint','ILocalCacheService','utf8ToBytes','addHandlerCallback','error','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','sendHeartbeatTimer','updatePermissionObjEvent','userID','error$','CHANGESET_REJ','capture','INetworkConditionService','onTransformRemoteChangesetByIMECache','ISocketService','send','[CollaborationSession]','FileSource','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','resend','IAuthzIoService','snapshotServerUrl','catch','DataLoaderService','init','from','copyFileMeta','_commandService','JOIN_ROOM_PERMISSION_DENIED','signUrlServerUrl','version','_univerInstanceService','_onLocalMutation','find','?url=','getInterceptPoints','CollaborationSocketService','onlyLocal','LIVESHARE_FETCH_OPERATIONS','getRoom','_onConnectionFailed','ICollaborationClientAdapterService','floor','onStateChange','startTime','transformUndoRedo','getCfgEnableObjInherit','loadUnitOfRevision','localUnitId','pluginName','3034296OvSLFZ','getImageSourceCache','setConfig','ERROR_EXCEED_SIZE','parse','/allowed','Rectangle','updatePermissionPoint','hostname','AwaitingState','now','src','objectActions','SnapshotServerOverHTTPService','saveSnapshot','People','SlideCollaborationEntity','Subject','univer-pro.collaboration-client.single-active-unit-service','isInternalEditorID','_clearHeartbeatTimer','COLLABORATION_ENDPOINT_INVALID','[CollaborationEntity]','refreshPermission','SheetsSelectionsService','DocStateChangeManagerService','DocCollaborationEntity','createCollaborator','_isEchoedAwaitingChangeset','_registerDependencies','liveShareOperation','RxDisposable','fetchThroughInterceptors','m2Prime','_transformStack','onMutationExecutedForCollab','next','_handlerCallback','CmdRspCode','_startTelemetryCollaborationNewChangeset','open$','batchAllowed','_updateLocalCache','_createInitialStateImpl','UNIVER_SHEET','generateRandomId','subscribe','decorate','DependentOn','[PendingState]:\x20received\x20rejection.','univer-pro.collaboration-client-socket-service','_doCreateSocket','_onUserJoin','conflict','/object/','_socketMessageSubscription','_scheduleCompleteTimestamp','isCompositionEnd','sequenceExecute','unitId','_clearLocalCache','memberID','_toggleOnline','retryConnectingTimer','cbc','AwaitingWithPendingState','base-ui.attachment-io.service','_scheduleCollaborationTimeoutTimer','PERMISSION_DENIED','_transitionLocked','_httpService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_onRemoteRejected','collabSubmitChangesetUrl','saveSheetBlock','serializeCombRequest','onRemoteRej','UserManagerService','patch','/rev/','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_roomCreated$','sid','failed\x20to\x20apply\x20missed\x20changesets!','readyForCollab','_adapter','LOCAL_CACHE_INTERVAL_KEY','_commentUpdate$','_queuedRemoteChangesets','name','_resolveSessionIdentity','dispose','unit','getCurrentUser','getFocusedUnit','getWorkbookSelections','_roomMembers','getSheetId','getAllMembers','/universer-api/file/{fileID}/sign-url','268902cVTaIh','reduce','awaiting_with_pending','_sendHeartbeat','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','removeMember','Module','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','subject','forEach','_onRemoteChangeset','onRemoteChangeset','mutations','origin','close','newCsEvent','onRemoteAck','MSG_FOR_ERROR','loginUrlKey','CollaborationSessionService','CHANGESET_ACK','disposeWithMe','setShowComponents','CHANGESET_SHOULD_RETRY','apply','_waitCount','onTransformState','touchDependencies','encode','getMember','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_entityInit$','_initMergeInterceptor','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','AddSlidePageMutation','LIVESHARE_TERMINATE','synced','members','_identity','socket\x20open.','_sheetTransformSelectionsService','_upload','transformSelections','isPermissionRej','unitType','LIVESHARE_NEW_HOST','symbol','MUTATION','toDisposable','createInstance','pauseCollaboration','JOIN_ROOM_FULL','endsWith','AuthzIoHttpService','resolveUnit','_createSocket','LocaleService','_initCloseConn','_instanceService','map','putCollaborators','_replayCachedMutations','_incrementRevisionNumber','_telemetryInfo','indexOf','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','loadSlide','_showConflictNotification','dispose$','x-univer-host','collaboratorID','OPTIONAL','title','session.room-full','/object','_getDownloadEndpointURL','iterator','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_entities','_getSocketChannel','clear','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','@univerjs-pro/collaboration-client','collaboration-client.auth.needGotoLoginAlert','5447596EqhpUr','onload','emitEvent','equals','JSONX','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_substituteUndoStack','duration','_transformStateCache','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','LEAVE','_getUndoStack','?size=','getCurrentSelections','focused$','_createHandler','collaboration-client.config','getTime','HTTPService','_transformRemoteChangesetByIMECache','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','/new_changes','executeCommand','requestParams','call','COMPRESS_MUTATION_APPLY','IConfigService','_resendWithTimeout','SetSelectionsOperation','_isPermissionRej','JOIN_ROOM_FAILED','ReplaySubject','withCredentials','rev','_sessionChannels','CONFLICT','_collabSessionService','[OfflineState]:\x20received\x20changeset.','onCommentUpdate','[OfflineState]:\x20received\x20acknowledgement.','_revisionService','put','every','toString','getUnit','enableAuthServer','revision','cfgEnableObjInherit','stopTime','parseProtocolChangeset','/role','AttachmentSourceType','SNAPSHOT_URL_KEY','FileId','event$','push','deepClone','createIdentifier','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','action','_memberService','getUnitType','_onMessage','isTransformChangesetsSuccess','_acknowledgeAwaiting','\x20-\x20','_socketChannels','_waitForHeartbeatResponse','data','_localeService','transformMutationsWithChangeset','SUBMIT_CHANGESET','onSendChangeset','UniverInstanceType','OfflineState','ErrorCode','deleteCollaborator','onSyncEditingCollabCursor','Error\x20on\x20receiving\x20event','collaboration-client.local-cache-service','_pendingSessions','EnsureSlideMasterPageMutation','post','getOwnPropertyDescriptor','_socket','_HTTPService','IDLE','mapDocumentTypeToUniverInstanceType','_getLoginPath','listRoles','Plugin','_telemetryService','[CollaborationUndoRedoService]','CollaborationEvent','delay','DEFAULT_FILE_NAME','parseChangesetToProtocol','_resendTimer','RECV','setWaitCount','CommentService','backupOfflineData','BASE64','endpointKey','_emitMembers','_unitLoaded$','debug','{fileID}','_changesetReqId','_state$','CLOSE_ROOM','JOIN_ROOM_NOT_EXISTS','some','unitLoaded$','_schedule','interceptor','COMPRESS_MUTATION_SEND','PENDING','min','textRanges','state','[FetchMissState]','_members','_awaitingChangeset','_fetchMissChangesets','BehaviorSubject','_createSession','ERROR_IMAGE_TYPE'];_0x38a3=function(){return _0x3d6c83;};return _0x38a3();}let P=class extends D{constructor(_0x492a7d,_0x43666e,_0x2185ad,_0x30d764,_0x1192b6,_0x45b85,_0x53263f,_0x1b2a12,_0x4c6bd1,_0x353e93,_0x5097f2,_0x206d0d,_0x94c176,_0x52c868){const _0x405eb8=_0x35bb4b;super(_0x492a7d,_0x43666e,_0x2185ad,_0x30d764,_0x53263f,_0x5097f2,_0x206d0d,_0x4c6bd1,_0x52c868),this[_0x405eb8(0x43b)]=_0x1192b6,this['_queuedRemoteChangesets']=_0x45b85,this['_injector']=_0x1b2a12,this['_logService']=_0x353e93,this[_0x405eb8(0x217)]=_0x94c176,this[_0x405eb8(0x18c)]=_0x52c868,g(this,_0x405eb8(0x16d),'fetch_missing');}[_0x35bb4b(0x1dc)](_0x272918){const _0x34ff93=_0x35bb4b;try{if(this['_handleRemoteChangesets'](_0x272918)[_0x34ff93(0x20b)])throw Error(_0x34ff93(0x484));if(this[_0x34ff93(0x3e9)]([...this[_0x34ff93(0x2c6)]][_0x34ff93(0x423)]((_0x36a067,_0x1e1fdc)=>_0x36a067[_0x34ff93(0x354)]-_0x1e1fdc['revision']))['missingChangesets'])return this[_0x34ff93(0x2c6)]=[],this['_updateLocalCache'](),this['_handler'][_0x34ff93(0x20c)]({'from':this[_0x34ff93(0x1eb)](),'to':0x0}),this;let _0x1dc2bb=this[_0x34ff93(0x3a1)],_0x8e78a8=this['_pendingMutations'],_0x383146;if(_0x1dc2bb&&_0x8e78a8[_0x34ff93(0x17d)]!==0x0)_0x383146=this[_0x34ff93(0x19a)][_0x34ff93(0x303)](j,this[_0x34ff93(0x41a)],this[_0x34ff93(0x435)],_0x1dc2bb,_0x8e78a8,this[_0x34ff93(0x180)],void 0x0);else{if(_0x1dc2bb&&_0x8e78a8[_0x34ff93(0x17d)]===0x0)_0x1dc2bb[_0x34ff93(0x3ca)]=this[_0x34ff93(0x1eb)](),_0x383146=this[_0x34ff93(0x19a)]['createInstance'](A,this['unitID'],this[_0x34ff93(0x435)],_0x1dc2bb,this[_0x34ff93(0x180)]);else{if(_0x8e78a8[_0x34ff93(0x17d)]!==0x0){let _0x1587e5=this['_injector']['createInstance'](k,this[_0x34ff93(0x41a)],this['type'],_0x8e78a8,this['_handler']);_0x1587e5[_0x34ff93(0x398)](),_0x383146=_0x1587e5;}else _0x383146=this[_0x34ff93(0x19a)][_0x34ff93(0x303)](O,this['unitID'],this['type'],this['_handler']);}}return _0x383146['_updateLocalCache'](),_0x383146;}catch(_0x4cf8f8){return this[_0x34ff93(0x445)]['error'](_0x34ff93(0x39f),_0x34ff93(0x2c1),_0x4cf8f8),this[_0x34ff93(0x19a)]['createInstance'](M,this[_0x34ff93(0x41a)],this[_0x34ff93(0x435)],this[_0x34ff93(0x3a1)],this[_0x34ff93(0x424)],this[_0x34ff93(0x180)],!0x1);}}['_handleRemoteChangesets'](_0x1888b5){const _0x465828=_0x35bb4b;this[_0x465828(0x218)]();for(let _0x228df7=0x0;_0x228df7<_0x1888b5[_0x465828(0x17d)];_0x228df7++){let _0x2f620e=_0x1888b5[_0x228df7],_0x3dfea8=this[_0x465828(0x1eb)]();if(!(_0x2f620e[_0x465828(0x354)]<=_0x3dfea8)){if(_0x2f620e[_0x465828(0x354)]>_0x3dfea8+0x1)return{'missingChangesets':!0x0};if(this[_0x465828(0x289)](_0x2f620e)){this['_acknowledgeAwaiting']();continue;}this['_transformAndApplyRemoteChangeset'](_0x2f620e),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x35bb4b(0x1b6)](_0x235d52){const _0x4cd085=_0x35bb4b;let _0x59ac62=_0x235d52,_0x386535=this[_0x4cd085(0x3a1)];if(_0x386535){let _0x47c526=this[_0x4cd085(0x217)][_0x4cd085(0x3e4)]([_0x235d52],[_0x386535],!0x1);if(!(0x0,e[_0x4cd085(0x365)])(_0x47c526))throw _0x47c526[_0x4cd085(0x23f)];_0x59ac62=_0x47c526[_0x4cd085(0x1d2)][0x0],_0x386535=_0x47c526[_0x4cd085(0x3de)][0x0];}let _0x3500ff=this[_0x4cd085(0x424)];if(_0x3500ff[_0x4cd085(0x17d)]){let _0x491a9a=this[_0x4cd085(0x217)][_0x4cd085(0x36c)](_0x59ac62,_0x3500ff);if(!(0x0,e[_0x4cd085(0x3c3)])(_0x491a9a))throw _0x491a9a[_0x4cd085(0x23f)];_0x59ac62=_0x491a9a['c1Prime'],_0x3500ff=_0x491a9a[_0x4cd085(0x28e)];}this[_0x4cd085(0x443)](_0x59ac62),_0x386535&&(_0x386535[_0x4cd085(0x3ca)]=this[_0x4cd085(0x1eb)]()),this[_0x4cd085(0x3a1)]=_0x386535,this[_0x4cd085(0x424)]=_0x3500ff;}[_0x35bb4b(0x218)](){const _0x2941f7=_0x35bb4b;if(!this[_0x2941f7(0x3a1)]||this[_0x2941f7(0x43b)]==null)return;let _0x2b5db1=this[_0x2941f7(0x1eb)]();if(this['_acknowledgedAwaitingRevision']<=_0x2b5db1)throw Error(_0x2941f7(0x482)+this['_acknowledgedAwaitingRevision']+'.');this[_0x2941f7(0x43b)]===_0x2b5db1+0x1&&this[_0x2941f7(0x366)]();}['_acknowledgeAwaiting'](){const _0x3a433a=_0x35bb4b;this[_0x3a433a(0x310)](),this[_0x3a433a(0x3a1)]=null,this[_0x3a433a(0x43b)]=null;}['_isEchoedAwaitingChangeset'](_0x4e2d70){const _0x5b0f24=_0x35bb4b;let _0x198f00=this['_awaitingChangeset'];return!_0x198f00||!_0x198f00[_0x5b0f24(0x2c0)]||_0x198f00[_0x5b0f24(0x447)]===null||_0x198f00[_0x5b0f24(0x447)]===void 0x0?!0x1:_0x4e2d70[_0x5b0f24(0x41a)]===_0x198f00[_0x5b0f24(0x41a)]&&_0x4e2d70[_0x5b0f24(0x2c0)]===_0x198f00['sid']&&_0x4e2d70[_0x5b0f24(0x447)]===_0x198f00[_0x5b0f24(0x447)];}['resend'](){const _0x2ec745=_0x35bb4b;throw Error(_0x2ec745(0x3fe));}[_0x35bb4b(0x236)](_0x3c1d17){const _0x4690d2=_0x35bb4b;return this[_0x4690d2(0x424)][_0x4690d2(0x35d)](_0x3c1d17),this;}[_0x35bb4b(0x2dd)](_0x47c633){const _0x5b9db4=_0x35bb4b;return this[_0x5b9db4(0x2c6)][_0x5b9db4(0x35d)](_0x47c633),this;}['onRemoteAck'](_0x9b8888){const _0x522e21=_0x35bb4b;if(this[_0x522e21(0x3a1)]){let _0x49b7d6=this[_0x522e21(0x1eb)]();return _0x9b8888[_0x522e21(0x354)]<=_0x49b7d6||(_0x49b7d6+0x1===_0x9b8888[_0x522e21(0x354)]?(this['_incrementRevisionNumber'](),this[_0x522e21(0x3a1)]=null,this[_0x522e21(0x43b)]=null):this[_0x522e21(0x43b)]=_0x9b8888['revision']),this;}if(_0x9b8888['revision']<=this[_0x522e21(0x1eb)]())return this;throw Error(_0x522e21(0x3bc));}['onRemoteRej'](_0x1ff9cb){const _0x132c2d=_0x35bb4b;return this[_0x132c2d(0x198)](!!(_0x1ff9cb!=null&&_0x1ff9cb[_0x132c2d(0x2fd)]));}[_0x35bb4b(0x22a)](){return this;}[_0x35bb4b(0x3da)](){const _0x56b949=_0x35bb4b;return this[_0x56b949(0x19a)][_0x56b949(0x303)](N,this['unitID'],this[_0x56b949(0x435)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x56b949(0x180)]);}['toggleOnline'](){return this;}['_onConflict'](_0x38a454){const _0x4e6ac9=_0x35bb4b;return this[_0x4e6ac9(0x19a)][_0x4e6ac9(0x303)](M,this['unitID'],this[_0x4e6ac9(0x435)],this[_0x4e6ac9(0x3a1)],this[_0x4e6ac9(0x424)],this[_0x4e6ac9(0x180)],_0x38a454);}};P=y([v(0x7,(0x0,t[_0x35bb4b(0x48e)])(t['Injector'])),v(0x8,(0x0,t[_0x35bb4b(0x48e)])(e[_0x35bb4b(0x46e)])),v(0x9,t[_0x35bb4b(0x1d7)]),v(0xa,t[_0x35bb4b(0x224)]),v(0xb,t['IUndoRedoService']),v(0xc,e['ITransformService']),v(0xd,(0x0,t[_0x35bb4b(0x1a4)])(S))],P);function Ue(_0x4a7236,_0x54f981,_0x3088ae,_0x3e4c9b,_0x2d0065,_0x51761d){const _0x440e93=_0x35bb4b;return _0x3e4c9b&&_0x2d0065[_0x440e93(0x17d)]?_0x4a7236[_0x440e93(0x303)](j,_0x54f981,_0x3088ae,_0x3e4c9b,_0x2d0065,_0x51761d,void 0x0):_0x3e4c9b?_0x4a7236[_0x440e93(0x303)](A,_0x54f981,_0x3088ae,_0x3e4c9b,_0x51761d):_0x2d0065[_0x440e93(0x17d)]?_0x4a7236[_0x440e93(0x303)](k,_0x54f981,_0x3088ae,_0x2d0065,_0x51761d):_0x4a7236[_0x440e93(0x303)](O,_0x54f981,_0x3088ae,_0x51761d);}let F=class extends t['RxDisposable']{get['state'](){const _0x1e924a=_0x35bb4b;return this[_0x1e924a(0x458)];}constructor(_0x27026f,_0x45679a,_0x243b61,_0x5bc8c1,_0x5a10df,_0x210b3e,_0x1f0a50,_0x2e2a97,_0x2322f8,_0x45188b,_0x239644,_0x4f07ae,_0x551745,_0xc8a5a9){const _0x2d2695=_0x35bb4b;super(),this[_0x2d2695(0x41a)]=_0x27026f,this[_0x2d2695(0x1d5)]=_0x45679a,this[_0x2d2695(0x3d3)]=_0x243b61,this['_injector']=_0x5bc8c1,this[_0x2d2695(0x215)]=_0x5a10df,this[_0x2d2695(0x36b)]=_0x210b3e,this[_0x2d2695(0x34e)]=_0x1f0a50,this[_0x2d2695(0x1cb)]=_0x2e2a97,this[_0x2d2695(0x25a)]=_0x2322f8,this[_0x2d2695(0x445)]=_0x45188b,this[_0x2d2695(0x256)]=_0x239644,this[_0x2d2695(0x1b8)]=_0x4f07ae,this[_0x2d2695(0x170)]=_0x551745,this[_0x2d2695(0x1d3)]=_0xc8a5a9,g(this,'_state$',new i[(_0x2d2695(0x3a3))](null)),g(this,'state$',this[_0x2d2695(0x393)]['asObservable']()),g(this,_0x2d2695(0x458),void 0x0),g(this,_0x2d2695(0x3c8),!0x1),g(this,_0x2d2695(0x1e9),''),g(this,_0x2d2695(0x392),0x0),g(this,_0x2d2695(0x3af),this[_0x2d2695(0x1e4)][_0x2d2695(0x481)]((0x0,i[_0x2d2695(0x30d)])(_0x3812fa=>_0x3812fa?_0x3812fa[_0x2d2695(0x16d)]:'offline'),(0x0,i[_0x2d2695(0x171)])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x2d2695(0x2b2),!0x1),g(this,_0x2d2695(0x1d0),[]);}async[_0x35bb4b(0x253)](){const _0x1f5750=_0x35bb4b;if(this[_0x1f5750(0x39e)])throw Error(_0x1f5750(0x33a));await this[_0x1f5750(0x192)]();}[_0x35bb4b(0x304)](){const _0x377456=_0x35bb4b;return this[_0x377456(0x3c8)]=!0x0,(0x0,t[_0x377456(0x302)])(()=>{const _0x4ea034=_0x377456;this['_collaborationPaused']=!0x1,this[_0x4ea034(0x3f9)]();});}[_0x35bb4b(0x20a)](_0x543b2d){const _0x5a6c1b=_0x35bb4b;this[_0x5a6c1b(0x25b)](_0x543b2d);}['_updateState'](_0x41709c){const _0x4281c0=_0x35bb4b;this['_state']=_0x41709c,this[_0x4281c0(0x393)][_0x4281c0(0x291)](_0x41709c);}async[_0x35bb4b(0x192)](){const _0x262dad=_0x35bb4b;if(this[_0x262dad(0x19e)](await this[_0x262dad(0x1b2)]()),this['_singleActiveUnitService']){var _0x2c451b;(_0x2c451b=this[_0x262dad(0x170)])==null||_0x2c451b['editingUnit'](this['unitID']),this[_0x262dad(0x2e7)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x262dad(0x41a)])[_0x262dad(0x29b)](_0x32dd64=>{const _0x3d1958=_0x262dad;this['_logService']['debug'](_0x3d1958(0x283),_0x3d1958(0x3dd),_0x32dd64),_0x32dd64===0x1?(this[_0x3d1958(0x1cb)][_0x3d1958(0x328)]({'id':_0x3d1958(0x17f)}),this[_0x3d1958(0x1b8)]['updatePermissionPoint'](new r['WorkbookEditablePermission'](this[_0x3d1958(0x41a)])['id'],!0x1),this[_0x3d1958(0x1b8)][_0x3d1958(0x2e8)](!0x1)):(this[_0x3d1958(0x1b8)][_0x3d1958(0x274)](new r[(_0x3d1958(0x431))](this[_0x3d1958(0x41a)])['id'],!0x0),this['_permissionService'][_0x3d1958(0x2e8)](!0x0));}));}let _0x30018e=!0x1;return this[_0x262dad(0x2e7)](this['session'][_0x262dad(0x1ef)]['subscribe'](_0x4184d4=>{const _0x10368a=_0x262dad;_0x4184d4===0x3?this[_0x10368a(0x2ab)](_0x30018e):_0x4184d4===0x2&&(_0x30018e=!0x0,this[_0x10368a(0x20d)]());})),this['disposeWithMe'](this[_0x262dad(0x1d5)][_0x262dad(0x35c)][_0x262dad(0x29b)](_0x2c8683=>{const _0x4a472c=_0x262dad;try{switch(_0x2c8683[_0x4a472c(0x44a)]){case e['CollaborationEvent'][_0x4a472c(0x3f0)]:this[_0x4a472c(0x2dc)]((0x0,e['parseProtocolChangeset'])(_0x2c8683['data']));break;case e[_0x4a472c(0x383)][_0x4a472c(0x2e6)]:this[_0x4a472c(0x3a8)](_0x2c8683[_0x4a472c(0x36a)]);break;case e[_0x4a472c(0x383)][_0x4a472c(0x245)]:this[_0x4a472c(0x2b5)]();break;case e[_0x4a472c(0x383)]['CHANGESET_SHOULD_RETRY']:this[_0x4a472c(0x422)](_0x2c8683['data']);break;case e[_0x4a472c(0x383)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x4a472c(0x473)](_0x2c8683[_0x4a472c(0x36a)][_0x4a472c(0x3aa)]['map'](_0x64cc84=>(0x0,e[_0x4a472c(0x357)])(_0x64cc84)));break;case e['CollaborationEvent'][_0x4a472c(0x199)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case e[_0x4a472c(0x383)][_0x4a472c(0x401)]:break;}}catch(_0x19a455){throw console['error'](_0x4a472c(0x374),_0x19a455),_0x19a455;}})),this[_0x262dad(0x458)];}[_0x35bb4b(0x467)](){const _0xae4d6d=_0x35bb4b;this[_0xae4d6d(0x2b2)]=!0x1;}[_0x35bb4b(0x1ab)](){const _0x46892e=_0x35bb4b;if(this['_transitionLocked'])throw Error(_0x46892e(0x240));this[_0x46892e(0x2b2)]=!0x0;}[_0x35bb4b(0x25b)](_0x29bd82){const _0x19c3b0=_0x35bb4b;this['_lockTransition'](),this[_0x19c3b0(0x19e)](this[_0x19c3b0(0x458)]['appendMutation'](_0x29bd82)),this[_0x19c3b0(0x467)]();}[_0x35bb4b(0x2dc)](_0x476088){const _0x45a258=_0x35bb4b;if(!(_0x476088[_0x45a258(0x354)]<=this['_revisionService'][_0x45a258(0x1db)](this[_0x45a258(0x41a)]))){if(this[_0x45a258(0x3c8)]){this[_0x45a258(0x1d0)]['push'](_0x476088);return;}this[_0x45a258(0x3d1)](_0x476088);}}['_exhaustRemoteChangesetQueue'](){const _0x2bcd7c=_0x35bb4b;this['_remoteChangesetQueue'][_0x2bcd7c(0x2db)](_0x2cd52f=>this[_0x2bcd7c(0x3d1)](_0x2cd52f)),this[_0x2bcd7c(0x1d0)]=[];}[_0x35bb4b(0x3d1)](_0xafd614){const _0x2f8e98=_0x35bb4b;let _0x11c500=this[_0x2f8e98(0x215)][_0x2f8e98(0x399)][_0x2f8e98(0x28d)](this[_0x2f8e98(0x215)]['interceptor'][_0x2f8e98(0x25e)]()[_0x2f8e98(0x33f)])(_0xafd614[_0x2f8e98(0x2de)],null)||_0xafd614[_0x2f8e98(0x2de)],_0x1a598e={..._0xafd614,'mutations':_0x11c500};this['_lockTransition'](),this[_0x2f8e98(0x19e)](this[_0x2f8e98(0x458)][_0x2f8e98(0x2dd)](_0x1a598e)),this[_0x2f8e98(0x467)]();}['_onRemoteACK'](_0x15341f){const _0x39ff97=_0x35bb4b;this[_0x39ff97(0x1ab)](),this['_updateState'](this['_state']['onRemoteAck'](_0x15341f)),this[_0x39ff97(0x467)]();}[_0x35bb4b(0x2b5)](_0xdb7e13){const _0x2ff8a2=_0x35bb4b;this[_0x2ff8a2(0x1ab)](),this[_0x2ff8a2(0x19e)](this[_0x2ff8a2(0x458)][_0x2ff8a2(0x2b9)](_0xdb7e13)),this[_0x2ff8a2(0x467)]();}[_0x35bb4b(0x422)](_0x186277){const _0x226e49=_0x35bb4b;this['_lockTransition'](),this[_0x226e49(0x19e)](this[_0x226e49(0x458)][_0x226e49(0x22a)](_0x186277)),this[_0x226e49(0x467)]();}['_onFetchMissResult'](_0x4566e4){const _0x4932f7=_0x35bb4b;if(!(this[_0x4932f7(0x458)]instanceof P))throw TypeError(_0x4932f7(0x436));let _0x40f4c2=_0x4566e4[_0x4932f7(0x30d)](_0x556006=>{const _0x509827=_0x4932f7;let _0x34e8f4=this['_compressMutationService'][_0x509827(0x399)][_0x509827(0x28d)](this[_0x509827(0x215)][_0x509827(0x399)]['getInterceptPoints']()[_0x509827(0x33f)])(_0x556006['mutations'],null)||_0x556006[_0x509827(0x2de)];return{..._0x556006,'mutations':_0x34e8f4};});this[_0x4932f7(0x1ab)](),this[_0x4932f7(0x19e)](this[_0x4932f7(0x458)][_0x4932f7(0x1dc)](_0x40f4c2)),this[_0x4932f7(0x467)]();}[_0x35bb4b(0x20d)](){const _0x2c82f0=_0x35bb4b;this['_lockTransition'](),this[_0x2c82f0(0x19e)](this[_0x2c82f0(0x458)][_0x2c82f0(0x3da)]()),this['_unlockTransition']();}['_toggleOnline'](_0x3b406b=!0x1){const _0x7a2141=_0x35bb4b;this[_0x7a2141(0x1ab)](),this[_0x7a2141(0x19e)](this[_0x7a2141(0x458)][_0x7a2141(0x3cb)]()),this[_0x7a2141(0x467)]();let _0x4bd7eb=this[_0x7a2141(0x458)];_0x3b406b&&_0x4bd7eb instanceof O&&(this[_0x7a2141(0x1ab)](),this[_0x7a2141(0x19e)](_0x4bd7eb['fetchMiss']()),this[_0x7a2141(0x467)]());}async[_0x35bb4b(0x1b2)](){return new Promise(_0x79dd9d=>{const _0x15c9a0=_0x5a3b;this[_0x15c9a0(0x1d5)][_0x15c9a0(0x1ef)]['pipe']((0x0,i[_0x15c9a0(0x1c6)])(0x1))['subscribe'](async _0x48e3ba=>{const _0x29ecfe=_0x15c9a0;_0x79dd9d(await this[_0x29ecfe(0x298)](_0x48e3ba===0x3));});});}[_0x35bb4b(0x335)](){const _0x12653d=_0x35bb4b;let _0x56026f=this[_0x12653d(0x41a)];return{'onStateChange':(_0x35e82e,_0x1d57b6)=>{const _0x539532=_0x12653d;if(_0x35e82e!==this[_0x539532(0x458)])throw Error(_0x539532(0x2d6)+_0x35e82e[_0x539532(0x16d)]+_0x539532(0x175)+_0x1d57b6['status']+_0x539532(0x1d1)+this[_0x539532(0x458)]['status']);this[_0x539532(0x19e)](_0x1d57b6);},'onSendChangeset':_0x557271=>{const _0x239c3c=_0x12653d;_0x557271['sid']||(_0x557271[_0x239c3c(0x2c0)]=this[_0x239c3c(0x1e9)],_0x557271[_0x239c3c(0x447)]=++this[_0x239c3c(0x392)]);let _0x470106={'eventID':e[_0x239c3c(0x383)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x557271[_0x239c3c(0x41a)],'unitType':this[_0x239c3c(0x3d3)],'changeset':_0x557271,'memberID':this['session'][_0x239c3c(0x3f8)]()}};this[_0x239c3c(0x1d5)]['send'](_0x470106,this[_0x239c3c(0x41a)]);},'onMissingChangesets':({from:_0x280457,to:_0x5251cc})=>{const _0x3d29a5=_0x12653d;this[_0x3d29a5(0x445)][_0x3d29a5(0x390)]('[CollaborationEntity]',_0x3d29a5(0x227)+_0x280457+_0x3d29a5(0x1a7)+_0x5251cc);let _0xc3c594={'eventID':e[_0x3d29a5(0x383)][_0x3d29a5(0x3dc)],'data':{'unitID':_0x56026f,'unitType':this['_type'],'from':_0x280457,'to':_0x5251cc}};this[_0x3d29a5(0x1d5)][_0x3d29a5(0x24a)](_0xc3c594,this[_0x3d29a5(0x41a)]);}};}async[_0x35bb4b(0x298)](_0x7bc921){const _0x443ed1=_0x35bb4b;var _0x51530b,_0x2691b2,_0x584b2a;let _0x2ee75f=await((_0x51530b=this[_0x443ed1(0x1d3)])==null?void 0x0:_0x51530b[_0x443ed1(0x3f2)](this[_0x443ed1(0x41a)])),_0x1bcd19=(_0x2691b2=_0x2ee75f==null?void 0x0:_0x2ee75f['mutations'])==null?[]:_0x2691b2,_0x522151=(_0x584b2a=_0x2ee75f==null?void 0x0:_0x2ee75f[_0x443ed1(0x3e6)])==null?null:_0x584b2a,_0x17c3eb=!!(_0x522151!=null&&_0x522151[_0x443ed1(0x2c0)])&&!!(_0x522151!=null&&_0x522151[_0x443ed1(0x447)]);this[_0x443ed1(0x1e9)]=_0x17c3eb?_0x522151[_0x443ed1(0x2c0)]:(0x0,e['uuidv4'])(),this[_0x443ed1(0x392)]=_0x17c3eb?_0x522151[_0x443ed1(0x447)]:0x0;let _0x18eb79=this['unitID'];try{this['_replayCachedMutations'](_0x522151,_0x1bcd19);}catch(_0x3efc88){this['_logService'][_0x443ed1(0x23f)](_0x3efc88);}let _0x34a9b2=this[_0x443ed1(0x335)]();if(_0x7bc921){let _0x40cb3d=Ue(this['_injector'],_0x18eb79,this[_0x443ed1(0x3d3)],_0x522151,_0x1bcd19,_0x34a9b2);return _0x40cb3d instanceof k?_0x40cb3d['_schedule']():(_0x40cb3d instanceof j||_0x40cb3d instanceof A)&&_0x40cb3d[_0x443ed1(0x24e)](),_0x40cb3d;}return this[_0x443ed1(0x19a)][_0x443ed1(0x303)](N,_0x18eb79,this[_0x443ed1(0x3d3)],_0x522151,_0x1bcd19,_0x34a9b2);}[_0x35bb4b(0x30f)](_0x5c2cf4,_0xcdb7d8){const _0x6e046=_0x35bb4b;var _0x3c0887,_0x25d06b;let _0x2f1b92=this[_0x6e046(0x215)]['interceptor'][_0x6e046(0x28d)](this['_compressMutationService']['interceptor'][_0x6e046(0x25e)]()['COMPRESS_MUTATION_APPLY']);(_0x3c0887=_0x2f1b92((_0x5c2cf4==null?void 0x0:_0x5c2cf4[_0x6e046(0x2de)])||[],null))==null||_0x3c0887['forEach'](_0x22f8e3=>this[_0x6e046(0x256)]['executeCommand'](_0x22f8e3['id'],_0x22f8e3[_0x6e046(0x3be)])),(_0x25d06b=_0x2f1b92(_0xcdb7d8||[],null))==null||_0x25d06b[_0x6e046(0x2db)](_0xc688ef=>this[_0x6e046(0x256)]['executeCommand'](_0xc688ef['id'],_0xc688ef[_0x6e046(0x3be)]));}};F=y([v(0x3,(0x0,t['Inject'])(t[_0x35bb4b(0x413)])),v(0x4,(0x0,t[_0x35bb4b(0x48e)])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x35bb4b(0x48e)])(t[_0x35bb4b(0x30a)])),v(0x6,(0x0,t[_0x35bb4b(0x48e)])(e[_0x35bb4b(0x46e)])),v(0x7,(0x0,t[_0x35bb4b(0x48e)])(_)),v(0x8,t[_0x35bb4b(0x1ba)]),v(0x9,t[_0x35bb4b(0x1d7)]),v(0xa,t[_0x35bb4b(0x224)]),v(0xb,t[_0x35bb4b(0x1fa)]),v(0xc,(0x0,t[_0x35bb4b(0x1a4)])(w)),v(0xd,(0x0,t[_0x35bb4b(0x1a4)])(S))],F);let I=class extends F{constructor(_0x25c5e9,_0x17711a,_0x5452bd,_0x15441f,_0x5a0cf7,_0x1ef089,_0x1599e6,_0x49cb95,_0x5eb49c,_0x808a60,_0x697b47,_0x26a200,_0x5774df,_0x123e00,_0x5420d7){const _0xa1fc68=_0x35bb4b;super(_0x25c5e9,_0x5452bd,_0x17711a,_0x15441f,_0x5a0cf7,_0x1ef089,_0x1599e6,_0x49cb95,_0x5eb49c,_0x808a60,_0x697b47,_0x26a200,_0x123e00,_0x5420d7),this[_0xa1fc68(0x41a)]=_0x25c5e9,this['type']=_0x17711a,this[_0xa1fc68(0x3ba)]=_0x5774df,g(this,_0xa1fc68(0x292),null);}[_0x35bb4b(0x23e)](_0xc81d48){const _0x169ff4=_0x35bb4b;this[_0x169ff4(0x292)]=_0xc81d48;}[_0x35bb4b(0x2c9)](){this['_handlerCallback']=null,super['dispose']();}['_createHandler'](){const _0x21fbeb=_0x35bb4b;let _0x3883a9=super[_0x21fbeb(0x335)]();return _0x3883a9['onTransformIME']=_0x2b9bce=>{const _0x4d999a=_0x21fbeb;var _0x598285,_0x522ecd;return(_0x598285=this['_handlerCallback'])==null||(_0x522ecd=_0x598285[_0x4d999a(0x40a)])==null?void 0x0:_0x522ecd[_0x4d999a(0x33e)](_0x598285,_0x2b9bce);},_0x3883a9[_0x21fbeb(0x2ec)]=_0x59fdbc=>{const _0x4e86e8=_0x21fbeb;var _0x12b968,_0x4fef4c;return(_0x12b968=this['_handlerCallback'])==null||(_0x4fef4c=_0x12b968[_0x4e86e8(0x2ec)])==null?void 0x0:_0x4fef4c[_0x4e86e8(0x33e)](_0x12b968,_0x59fdbc);},_0x3883a9[_0x21fbeb(0x3ee)]=_0x380a70=>{const _0x4a8588=_0x21fbeb;var _0x230abf,_0xe646fb;return(_0x230abf=this[_0x4a8588(0x292)])==null||(_0xe646fb=_0x230abf[_0x4a8588(0x3ee)])==null?void 0x0:_0xe646fb[_0x4a8588(0x33e)](_0x230abf,_0x380a70);},_0x3883a9[_0x21fbeb(0x373)]=_0x7340bd=>{const _0x16d176=_0x21fbeb;var _0x5d7bfd,_0x59df92;return(_0x5d7bfd=this[_0x16d176(0x292)])==null||(_0x59df92=_0x5d7bfd[_0x16d176(0x373)])==null?void 0x0:_0x59df92[_0x16d176(0x33e)](_0x5d7bfd,_0x7340bd);},_0x3883a9[_0x21fbeb(0x248)]=_0x20efbf=>{const _0x5c7679=_0x21fbeb;var _0x270dbd,_0x15ca08,_0x3d6911;return(_0x270dbd=(_0x15ca08=this[_0x5c7679(0x292)])==null||(_0x3d6911=_0x15ca08[_0x5c7679(0x248)])==null?void 0x0:_0x3d6911[_0x5c7679(0x33e)](_0x15ca08,_0x20efbf))==null?_0x20efbf:_0x270dbd;},_0x3883a9[_0x21fbeb(0x220)]=_0x3e9348=>{const _0x58d404=_0x21fbeb;var _0x566afe,_0x30eab2,_0x45a27c;return(_0x566afe=(_0x30eab2=this[_0x58d404(0x292)])==null||(_0x45a27c=_0x30eab2['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x45a27c[_0x58d404(0x33e)](_0x30eab2,_0x3e9348))==null?_0x3e9348:_0x566afe;},_0x3883a9;}async[_0x35bb4b(0x192)](){const _0x530ed3=_0x35bb4b;if(this[_0x530ed3(0x3ba)]==null)throw Error(_0x530ed3(0x3a9));let _0x52f8d7=await super[_0x530ed3(0x192)]();return this[_0x530ed3(0x2e7)](this['_docStateChangeManagerService']['docStateChange$']['subscribe'](_0x206a5f=>{const _0x2be8a7=_0x530ed3;if(_0x206a5f==null||_0x206a5f[_0x2be8a7(0x2a8)]!==this[_0x2be8a7(0x41a)])return;let {commandId:_0x46d5b4,redoState:_0x5487dc,unitId:_0x32fafe}=_0x206a5f,_0x168da6={'id':_0x46d5b4,'type':t['CommandType'][_0x2be8a7(0x301)],'params':{'unitId':_0x32fafe,'actions':_0x5487dc[_0x2be8a7(0x442)],'textRanges':null}};this[_0x2be8a7(0x25b)](_0x168da6);})),this[_0x530ed3(0x2e7)](this[_0x530ed3(0x256)][_0x530ed3(0x290)]((_0x4be2ce,_0x2563e8)=>{const _0x123c18=_0x530ed3;if(_0x4be2ce['type']!==t[_0x123c18(0x1a9)][_0x123c18(0x301)]||_0x2563e8!=null&&_0x2563e8[_0x123c18(0x1d4)]||_0x2563e8!=null&&_0x2563e8[_0x123c18(0x260)]||_0x4be2ce['id']===n['RichTextEditingMutation']['id'])return;let _0x2fb897=_0x4be2ce[_0x123c18(0x3be)];if((_0x2fb897==null?void 0x0:_0x2fb897['unitId'])!==this['unitID'])return;let _0x1d9638=_0x4be2ce,_0x297491=this[_0x123c18(0x215)][_0x123c18(0x399)][_0x123c18(0x28d)](this[_0x123c18(0x215)][_0x123c18(0x399)][_0x123c18(0x25e)]()[_0x123c18(0x39a)])([_0x1d9638],this[_0x123c18(0x25a)])||[_0x1d9638];this[_0x123c18(0x25b)](_0x297491[0x0]);})),_0x52f8d7;}};I=y([v(0x3,(0x0,t[_0x35bb4b(0x48e)])(t['Injector'])),v(0x4,(0x0,t[_0x35bb4b(0x48e)])(e[_0x35bb4b(0x444)])),v(0x5,(0x0,t['Inject'])(t[_0x35bb4b(0x30a)])),v(0x6,(0x0,t[_0x35bb4b(0x48e)])(e['RevisionService'])),v(0x7,(0x0,t[_0x35bb4b(0x48e)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x35bb4b(0x1d7)]),v(0xa,t[_0x35bb4b(0x224)]),v(0xb,t[_0x35bb4b(0x1fa)]),v(0xc,(0x0,t[_0x35bb4b(0x1a4)])(n[_0x35bb4b(0x286)])),v(0xd,(0x0,t[_0x35bb4b(0x1a4)])(w)),v(0xe,(0x0,t[_0x35bb4b(0x1a4)])(S))],I);let L=class extends F{constructor(_0x588258,_0x2f9a16,_0xdfd1fd,_0x40bced,_0x18be72,_0x5e3334,_0x3ea4fc,_0x239d9e,_0x1e5213,_0x164ffc,_0x23f165,_0x1eebf8,_0xa2b92c,_0x323ecc){const _0x4d812d=_0x35bb4b;super(_0x588258,_0xdfd1fd,_0x2f9a16,_0x40bced,_0x18be72,_0x5e3334,_0x3ea4fc,_0x239d9e,_0x1e5213,_0x164ffc,_0x23f165,_0x1eebf8,_0xa2b92c,_0x323ecc),this[_0x4d812d(0x41a)]=_0x588258,this[_0x4d812d(0x435)]=_0x2f9a16;}async['_init'](){const _0x35c7fd=_0x35bb4b;let _0xc9f2f6=await super[_0x35c7fd(0x192)]();return this[_0x35c7fd(0x2e7)](this[_0x35c7fd(0x256)][_0x35c7fd(0x290)]((_0x4be7cf,_0x20e5f0)=>{const _0x3ec14a=_0x35c7fd;if(_0x4be7cf[_0x3ec14a(0x435)]!==t[_0x3ec14a(0x1a9)][_0x3ec14a(0x301)]||_0x20e5f0!=null&&_0x20e5f0[_0x3ec14a(0x1d4)]||_0x20e5f0!=null&&_0x20e5f0[_0x3ec14a(0x260)])return;let _0x46e6ae=_0x4be7cf[_0x3ec14a(0x3be)];if((_0x46e6ae==null?void 0x0:_0x46e6ae[_0x3ec14a(0x2a8)])!==this[_0x3ec14a(0x41a)])return;let _0xd4b781=_0x4be7cf,_0x4150e3=this[_0x3ec14a(0x215)][_0x3ec14a(0x399)][_0x3ec14a(0x28d)](this[_0x3ec14a(0x215)][_0x3ec14a(0x399)][_0x3ec14a(0x25e)]()[_0x3ec14a(0x39a)])([_0xd4b781],this['_univerInstanceService'])||[_0xd4b781];this[_0x3ec14a(0x25b)](_0x4150e3[0x0]);})),_0xc9f2f6;}};L=y([v(0x3,(0x0,t[_0x35bb4b(0x48e)])(t[_0x35bb4b(0x413)])),v(0x4,(0x0,t[_0x35bb4b(0x48e)])(e[_0x35bb4b(0x444)])),v(0x5,(0x0,t[_0x35bb4b(0x48e)])(t[_0x35bb4b(0x30a)])),v(0x6,(0x0,t['Inject'])(e[_0x35bb4b(0x46e)])),v(0x7,(0x0,t[_0x35bb4b(0x48e)])(_)),v(0x8,t[_0x35bb4b(0x1ba)]),v(0x9,t[_0x35bb4b(0x1d7)]),v(0xa,t[_0x35bb4b(0x224)]),v(0xb,t[_0x35bb4b(0x1fa)]),v(0xc,(0x0,t[_0x35bb4b(0x1a4)])(w)),v(0xd,(0x0,t['Optional'])(S))],L);let R=class extends F{constructor(_0x5bb847,_0x257a64,_0x4b47f9,_0x4e5c33,_0x5e1c5a,_0x3fbf43,_0x508286,_0x104e64,_0x29d1fe,_0x181033,_0x67aedf,_0x5d8bea,_0x5d65a9,_0x150fcc,_0x87a1d2){const _0x189c36=_0x35bb4b;super(_0x5bb847,_0x4b47f9,_0x257a64,_0x4e5c33,_0x5e1c5a,_0x3fbf43,_0x508286,_0x29d1fe,_0x181033,_0x67aedf,_0x5d8bea,_0x5d65a9,_0x150fcc,_0x87a1d2),this[_0x189c36(0x41a)]=_0x5bb847,this['type']=_0x257a64,this[_0x189c36(0x2fa)]=_0x104e64;}[_0x35bb4b(0x335)](){const _0x1df17e=_0x35bb4b;let _0x44a0a1=super['_createHandler']();return _0x44a0a1[_0x1df17e(0x3ee)]=_0x27c0b5=>this['_sheetTransformSelectionsService'][_0x1df17e(0x2fc)](_0x27c0b5),_0x44a0a1;}async['_init'](){const _0x4f5f49=_0x35bb4b;let _0x5bc442=await super[_0x4f5f49(0x192)]();return this[_0x4f5f49(0x2e7)](this[_0x4f5f49(0x256)][_0x4f5f49(0x290)]((_0x5e037b,_0x87ff65)=>{const _0xc270fc=_0x4f5f49;if(_0x5e037b['type']!==t[_0xc270fc(0x1a9)][_0xc270fc(0x301)]||_0x87ff65!=null&&_0x87ff65[_0xc270fc(0x1d4)]||_0x87ff65!=null&&_0x87ff65[_0xc270fc(0x260)])return;let _0x1dcb17=_0x5e037b['params'];if((_0x1dcb17==null?void 0x0:_0x1dcb17[_0xc270fc(0x2a8)])!==this[_0xc270fc(0x41a)])return;let _0x35b0fd=_0x5e037b,_0x54673d=this[_0xc270fc(0x215)][_0xc270fc(0x399)][_0xc270fc(0x28d)](this[_0xc270fc(0x215)][_0xc270fc(0x399)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x35b0fd],this[_0xc270fc(0x25a)])||[_0x35b0fd];this[_0xc270fc(0x25b)](_0x54673d[0x0]);})),_0x5bc442;}};R=y([v(0x3,(0x0,t[_0x35bb4b(0x48e)])(t[_0x35bb4b(0x413)])),v(0x4,(0x0,t[_0x35bb4b(0x48e)])(e['CompressMutationService'])),v(0x5,(0x0,t['Inject'])(t['LocaleService'])),v(0x6,(0x0,t[_0x35bb4b(0x48e)])(e['RevisionService'])),v(0x7,(0x0,t[_0x35bb4b(0x48e)])(C)),v(0x8,(0x0,t[_0x35bb4b(0x48e)])(_)),v(0x9,t[_0x35bb4b(0x1ba)]),v(0xa,t[_0x35bb4b(0x1d7)]),v(0xb,t[_0x35bb4b(0x224)]),v(0xc,t['IPermissionService']),v(0xd,(0x0,t[_0x35bb4b(0x1a4)])(w)),v(0xe,(0x0,t[_0x35bb4b(0x1a4)])(S))],R);let z=class extends F{constructor(_0x147757,_0x469cbf,_0x4992c5,_0x5515cd,_0x50ea42,_0x2d300c,_0x5ed2ad,_0xddbd02,_0x48bfec,_0x13e01a,_0x1991ce,_0x134e42,_0x2d4391,_0x28aad5){const _0x5c6d23=_0x35bb4b;super(_0x147757,_0x4992c5,_0x469cbf,_0x5515cd,_0x50ea42,_0x2d300c,_0x5ed2ad,_0xddbd02,_0x48bfec,_0x13e01a,_0x1991ce,_0x134e42,_0x2d4391,_0x28aad5),this[_0x5c6d23(0x41a)]=_0x147757,this[_0x5c6d23(0x435)]=_0x469cbf;}async[_0x35bb4b(0x192)](){const _0x4511f0=_0x35bb4b;let _0x506ac2=await super[_0x4511f0(0x192)]();return this[_0x4511f0(0x2e7)](this['_commandService'][_0x4511f0(0x290)]((_0xa41c40,_0x596c15)=>{const _0x4d1517=_0x4511f0;if(_0xa41c40[_0x4d1517(0x435)]!==t[_0x4d1517(0x1a9)]['MUTATION']||_0x596c15!=null&&_0x596c15[_0x4d1517(0x1d4)]||_0x596c15!=null&&_0x596c15[_0x4d1517(0x260)])return;let _0x2ca52e=_0xa41c40[_0x4d1517(0x3be)];if((_0x2ca52e==null?void 0x0:_0x2ca52e[_0x4d1517(0x2a8)])!==this[_0x4d1517(0x41a)])return;let _0x3f5369=_0xa41c40,_0xd41b82=this[_0x4d1517(0x215)][_0x4d1517(0x399)][_0x4d1517(0x28d)](this[_0x4d1517(0x215)][_0x4d1517(0x399)][_0x4d1517(0x25e)]()[_0x4d1517(0x39a)])([_0x3f5369],this[_0x4d1517(0x25a)])||[_0x3f5369];this[_0x4d1517(0x25b)](_0xd41b82[0x0]);})),_0x506ac2;}};z=y([v(0x3,(0x0,t[_0x35bb4b(0x48e)])(t['Injector'])),v(0x4,(0x0,t[_0x35bb4b(0x48e)])(e[_0x35bb4b(0x444)])),v(0x5,(0x0,t[_0x35bb4b(0x48e)])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e[_0x35bb4b(0x46e)])),v(0x7,(0x0,t[_0x35bb4b(0x48e)])(_)),v(0x8,t[_0x35bb4b(0x1ba)]),v(0x9,t[_0x35bb4b(0x1d7)]),v(0xa,t[_0x35bb4b(0x224)]),v(0xb,t[_0x35bb4b(0x1fa)]),v(0xc,(0x0,t[_0x35bb4b(0x1a4)])(w)),v(0xd,(0x0,t[_0x35bb4b(0x1a4)])(S))],z);let B=class extends F{constructor(_0x3f048a,_0x305e9e,_0x245139,_0x26f113,_0x2ea058,_0xf6eff5,_0x170465,_0x20d875,_0x179a55,_0x3b60f3,_0x37f58e,_0xa5bbef,_0x35201e,_0x2bd8ea){const _0x5c73d9=_0x35bb4b;super(_0x3f048a,_0x245139,_0x305e9e,_0x26f113,_0x2ea058,_0xf6eff5,_0x170465,_0x20d875,_0x179a55,_0x3b60f3,_0x37f58e,_0xa5bbef,_0x35201e,_0x2bd8ea),this[_0x5c73d9(0x41a)]=_0x3f048a,this[_0x5c73d9(0x435)]=_0x305e9e;}async['_init'](){const _0x21c6c0=_0x35bb4b;let _0x1f7a30=await super['_init']();return this['disposeWithMe'](this[_0x21c6c0(0x256)][_0x21c6c0(0x290)]((_0x567a8b,_0x6d2f05)=>{const _0x171162=_0x21c6c0;if(_0x567a8b[_0x171162(0x435)]!==t['CommandType'][_0x171162(0x301)]||_0x6d2f05!=null&&_0x6d2f05[_0x171162(0x1d4)]||_0x6d2f05!=null&&_0x6d2f05[_0x171162(0x260)])return;let _0x4980d5=_0x567a8b[_0x171162(0x3be)];if((_0x4980d5==null?void 0x0:_0x4980d5[_0x171162(0x2a8)])!==this[_0x171162(0x41a)])return;let _0x4acd8f=_0x567a8b,_0x11847a=this['_compressMutationService']['interceptor'][_0x171162(0x28d)](this[_0x171162(0x215)][_0x171162(0x399)][_0x171162(0x25e)]()[_0x171162(0x39a)])([_0x4acd8f],this[_0x171162(0x25a)])||[_0x4acd8f];this[_0x171162(0x25b)](_0x11847a[0x0]);})),_0x1f7a30;}};B=y([v(0x3,(0x0,t['Inject'])(t[_0x35bb4b(0x413)])),v(0x4,(0x0,t[_0x35bb4b(0x48e)])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x35bb4b(0x48e)])(t['LocaleService'])),v(0x6,(0x0,t[_0x35bb4b(0x48e)])(e[_0x35bb4b(0x46e)])),v(0x7,(0x0,t[_0x35bb4b(0x48e)])(_)),v(0x8,t[_0x35bb4b(0x1ba)]),v(0x9,t[_0x35bb4b(0x1d7)]),v(0xa,t['ICommandService']),v(0xb,t[_0x35bb4b(0x1fa)]),v(0xc,(0x0,t[_0x35bb4b(0x1a4)])(w)),v(0xd,(0x0,t[_0x35bb4b(0x1a4)])(S))],B);const We=(0x0,t['createIdentifier'])('univer-pro.collaboration-client.network-condition.service');function Ge(_0x2eb785){const _0x4ec676=_0x35bb4b;let _0xc0242d=_0x2eb785[_0x4ec676(0x36a)],_0x5c0766=JSON[_0x4ec676(0x271)](_0xc0242d);switch(_0x5c0766['cmd']){case a['CombCmd'][_0x4ec676(0x3c4)]:case a[_0x4ec676(0x1b4)][_0x4ec676(0x46b)]:{let _0x4f8134=_0x5c0766['infoRsp'];return{..._0x5c0766,'data':_0x4f8134,'cmd':_0x5c0766[_0x4ec676(0x3ff)]};}case a[_0x4ec676(0x1b4)][_0x4ec676(0x1b5)]:{let _0x36affb=_0x5c0766[_0x4ec676(0x208)];return{..._0x5c0766,'data':_0x36affb,'cmd':_0x5c0766[_0x4ec676(0x3ff)]};}case a[_0x4ec676(0x1b4)][_0x4ec676(0x388)]:{let _0x492099=_0x5c0766[_0x4ec676(0x1b9)];switch(_0x492099['eventID']){case e['CollaborationEvent'][_0x4ec676(0x199)]:var _0x5bc8cf;return{..._0x5c0766,'data':{..._0x492099,'data':(_0x5bc8cf=_0x492099['permissionRejEvent'])==null?void 0x0:_0x5bc8cf['cs']},'cmd':_0x5c0766[_0x4ec676(0x3ff)]};case e['CollaborationEvent'][_0x4ec676(0x2e6)]:var _0x3c55fd;return{..._0x5c0766,'data':{..._0x492099,'data':(_0x3c55fd=_0x492099[_0x4ec676(0x17a)])==null?void 0x0:_0x3c55fd['cs']},'cmd':_0x5c0766['cmd']};case e[_0x4ec676(0x383)]['NEW_CHANGESETS']:var _0x1a9e3e;return{..._0x5c0766,'data':{..._0x492099,'data':(_0x1a9e3e=_0x492099[_0x4ec676(0x2e1)])==null?void 0x0:_0x1a9e3e['cs']},'cmd':_0x5c0766['cmd']};case e[_0x4ec676(0x383)][_0x4ec676(0x245)]:var _0xd0a1ac;return{..._0x5c0766,'data':{..._0x492099,'data':(_0xd0a1ac=_0x492099['csRejEvent'])==null?void 0x0:_0xd0a1ac['cs']},'cmd':_0x5c0766[_0x4ec676(0x3ff)]};case e[_0x4ec676(0x383)][_0x4ec676(0x2e9)]:var _0x494935;return{..._0x5c0766,'data':{..._0x492099,'data':(_0x494935=_0x492099['csShouldRetryEvent'])==null?void 0x0:_0x494935['cs']},'cmd':_0x5c0766[_0x4ec676(0x3ff)]};case e[_0x4ec676(0x383)][_0x4ec676(0x226)]:return{..._0x5c0766,'data':{..._0x492099,'data':_0x492099[_0x4ec676(0x418)]},'cmd':_0x5c0766['cmd']};case e['CollaborationEvent']['USERS_ENTER']:return{..._0x5c0766,'data':{..._0x492099,'data':_0x492099['joinEvent']},'cmd':_0x5c0766[_0x4ec676(0x3ff)]};case e[_0x4ec676(0x383)][_0x4ec676(0x419)]:return{..._0x5c0766,'data':{..._0x492099,'data':_0x492099[_0x4ec676(0x3f5)]},'cmd':_0x5c0766['cmd']};case e['CollaborationEvent'][_0x4ec676(0x2ff)]:return{..._0x5c0766,'data':{..._0x492099,'data':_0x492099[_0x4ec676(0x3a7)]},'cmd':_0x5c0766[_0x4ec676(0x3ff)]};case e['CollaborationEvent'][_0x4ec676(0x261)]:case e[_0x4ec676(0x383)][_0x4ec676(0x428)]:return{..._0x5c0766,'data':{..._0x492099,'data':_0x492099[_0x4ec676(0x28b)]},'cmd':_0x5c0766[_0x4ec676(0x3ff)]};case e[_0x4ec676(0x383)]['LIVESHARE_TERMINATE']:return{..._0x5c0766,'data':{..._0x492099,'data':_0x492099[_0x4ec676(0x3a7)]},'cmd':_0x5c0766[_0x4ec676(0x3ff)]};case e[_0x4ec676(0x383)][_0x4ec676(0x2e3)]:return{..._0x5c0766,'data':_0x492099,'cmd':_0x5c0766[_0x4ec676(0x3ff)]};case e[_0x4ec676(0x383)]['COMMENT_UPDATE']:return{..._0x5c0766,'data':{..._0x492099,'data':_0x492099[_0x4ec676(0x472)]},'cmd':_0x5c0766[_0x4ec676(0x3ff)]};case e[_0x4ec676(0x383)][_0x4ec676(0x174)]:return{..._0x5c0766,'data':{..._0x492099,'data':_0x492099[_0x4ec676(0x242)]},'cmd':_0x5c0766[_0x4ec676(0x3ff)]};case e[_0x4ec676(0x383)][_0x4ec676(0x3f1)]:return{..._0x5c0766,'data':{..._0x492099,'data':_0x492099['shouldCloseConn']},'cmd':_0x5c0766[_0x4ec676(0x3ff)]};case e[_0x4ec676(0x383)][_0x4ec676(0x401)]:return{..._0x5c0766,'data':{..._0x492099,'data':_0x492099['uniscriptRunEvent']},'cmd':_0x5c0766['cmd']};default:return _0x5c0766;}}default:return _0x5c0766;}}function Ke(_0x4b9924){const _0x6ff56e=_0x35bb4b;switch(_0x4b9924[_0x6ff56e(0x3ff)]){case a[_0x6ff56e(0x1b4)][_0x6ff56e(0x3c4)]:case a[_0x6ff56e(0x1b4)][_0x6ff56e(0x46b)]:return JSON['stringify']({'cmd':_0x4b9924['cmd'],'routeKey':_0x4b9924[_0x6ff56e(0x1de)]});case a[_0x6ff56e(0x1b4)][_0x6ff56e(0x212)]:{let _0x4936c9;switch(_0x4b9924['data'][_0x6ff56e(0x44a)]){case e[_0x6ff56e(0x383)][_0x6ff56e(0x226)]:_0x4936c9={'eventID':e[_0x6ff56e(0x383)][_0x6ff56e(0x226)],'updateCursorEvent':_0x4b9924['data']['data']};break;case e['CollaborationEvent']['USERS_LEAVE']:_0x4936c9={'eventID':e['CollaborationEvent'][_0x6ff56e(0x419)],'leaveEvent':_0x4b9924[_0x6ff56e(0x36a)][_0x6ff56e(0x36a)]};break;case e[_0x6ff56e(0x383)][_0x6ff56e(0x202)]:_0x4936c9={'eventID':e[_0x6ff56e(0x383)][_0x6ff56e(0x202)],'joinEvent':_0x4b9924[_0x6ff56e(0x36a)][_0x6ff56e(0x36a)]};break;case e['CollaborationEvent'][_0x6ff56e(0x2ff)]:_0x4936c9={'eventID':e[_0x6ff56e(0x383)][_0x6ff56e(0x2ff)],'liveShareNewHost':_0x4b9924['data']['data']};break;case e[_0x6ff56e(0x383)][_0x6ff56e(0x428)]:_0x4936c9={'eventID':e['CollaborationEvent'][_0x6ff56e(0x428)],'liveShareOperation':_0x4b9924['data']['data']};break;case e[_0x6ff56e(0x383)][_0x6ff56e(0x2f5)]:_0x4936c9={'eventID':e[_0x6ff56e(0x383)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x4b9924[_0x6ff56e(0x36a)]['data']};break;case e[_0x6ff56e(0x383)]['LIVESHARE_REQUEST_HOST']:_0x4936c9={'eventID':e[_0x6ff56e(0x383)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x4b9924[_0x6ff56e(0x36a)]['data']};break;case e[_0x6ff56e(0x383)][_0x6ff56e(0x261)]:_0x4936c9={'eventID':e[_0x6ff56e(0x383)][_0x6ff56e(0x261)]};break;default:_0x4936c9={'eventID':_0x4b9924[_0x6ff56e(0x36a)][_0x6ff56e(0x44a)]};}return JSON['stringify']({'cmd':_0x4b9924[_0x6ff56e(0x3ff)],'routeKey':_0x4b9924[_0x6ff56e(0x1de)],'collaMsg':_0x4936c9});}case a[_0x6ff56e(0x1b4)][_0x6ff56e(0x1b5)]:return JSON[_0x6ff56e(0x3db)]({'cmd':_0x4b9924[_0x6ff56e(0x3ff)],'routeKey':_0x4b9924[_0x6ff56e(0x1de)],'joinReq':_0x4b9924['data']});case a['CombCmd'][_0x6ff56e(0x330)]:return JSON[_0x6ff56e(0x3db)]({'cmd':_0x4b9924[_0x6ff56e(0x3ff)],'routeKey':_0x4b9924[_0x6ff56e(0x1de)],'leaveReq':_0x4b9924[_0x6ff56e(0x36a)]});default:throw Error(_0x6ff56e(0x2bd));}}const qe=(0x0,t['createIdentifier'])(_0x35bb4b(0x29f));function Je(_0x402869,_0x10b3d9,_0x3d8f92){const _0x3109bb=_0x35bb4b;return _0x402869+'/'+_0x10b3d9+_0x3109bb(0x225)+_0x3d8f92+_0x3109bb(0x33b);}let Ye=class extends t[_0x35bb4b(0x476)]{constructor(_0x342cae,_0x7aa8be,_0xd26e4,_0x10d1b2,_0x5a9646){const _0x372856=_0x35bb4b;super(),this[_0x372856(0x19a)]=_0x342cae,this[_0x372856(0x2b3)]=_0x7aa8be,this[_0x372856(0x3ec)]=_0xd26e4,this[_0x372856(0x445)]=_0x10d1b2,this[_0x372856(0x409)]=_0x5a9646;}[_0x35bb4b(0x2a0)](_0x2ede32){const _0x5f4c1e=_0x35bb4b;let _0x5554fa=this[_0x5f4c1e(0x19a)][_0x5f4c1e(0x20e)](l[_0x5f4c1e(0x249)]);if(!_0x5554fa)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0xc1d4c1=_0x5554fa['createSocket'](_0x2ede32);if(!_0xc1d4c1)throw Error(_0x5f4c1e(0x360));let _0x14173e=new t['DisposableCollection'](),_0x1d5b06=new i['Subject']();_0x14173e[_0x5f4c1e(0x3d2)](_0xc1d4c1[_0x5f4c1e(0x3e0)][_0x5f4c1e(0x29b)](_0x1f8e75=>_0x1d5b06[_0x5f4c1e(0x291)](_0x1f8e75))),_0x14173e[_0x5f4c1e(0x3d2)]((0x0,t[_0x5f4c1e(0x302)])(()=>_0x1d5b06[_0x5f4c1e(0x1f7)]()));let _0x49addb=new i[(_0x5f4c1e(0x27e))]();_0x14173e[_0x5f4c1e(0x3d2)](_0xc1d4c1[_0x5f4c1e(0x244)][_0x5f4c1e(0x29b)](_0x387a58=>_0x49addb[_0x5f4c1e(0x291)](_0x387a58))),_0x14173e[_0x5f4c1e(0x3d2)]((0x0,t['toDisposable'])(()=>_0x49addb['complete']()));let _0x44585f=new i[(_0x5f4c1e(0x27e))]();_0x14173e[_0x5f4c1e(0x3d2)](_0xc1d4c1[_0x5f4c1e(0x1ed)][_0x5f4c1e(0x29b)](_0x1bac88=>{const _0x2a8923=_0x5f4c1e;let _0x4885a9=Ge(_0x1bac88);_0x44585f[_0x2a8923(0x291)](_0x4885a9);})),_0x14173e['add']((0x0,t[_0x5f4c1e(0x302)])(()=>_0x44585f[_0x5f4c1e(0x1f7)]()));let _0x5252a0,_0x2303b8=()=>{const _0x1e619b=_0x5f4c1e;_0x49addb['next'](new Event(_0x1e619b(0x3eb))),_0x1d5b06['next'](new Event(_0x1e619b(0x3eb))),_0x5252a0[_0x1e619b(0x2e0)]();};return _0x5252a0={'memberID':'','close$':_0x1d5b06[_0x5f4c1e(0x3b8)](),'error$':_0x49addb['asObservable'](),'open$':_0xc1d4c1['open$'],'message$':_0x44585f[_0x5f4c1e(0x3b8)](),'send':_0x2931aa=>{const _0x4821e6=_0x5f4c1e;if(_0x2931aa['cmd']===a[_0x4821e6(0x1b4)]['INGEST']){if(_0x2931aa[_0x4821e6(0x36a)]['eventID']===e[_0x4821e6(0x383)]['SUBMIT_CHANGESET']){this[_0x4821e6(0x1ea)](_0x5252a0,_0x2931aa['data'])[_0x4821e6(0x251)](_0x5a34f3=>{const _0x17081c=_0x4821e6;this['_logService'][_0x17081c(0x23f)](_0x5a34f3),_0x2303b8();});return;}if(_0x2931aa[_0x4821e6(0x36a)][_0x4821e6(0x44a)]===e[_0x4821e6(0x383)][_0x4821e6(0x3dc)]){let _0x5cb40b=_0x2931aa[_0x4821e6(0x36a)];this[_0x4821e6(0x3a2)](_0x5cb40b)[_0x4821e6(0x45d)](_0x50909b=>{const _0x45ba8c=_0x4821e6;_0x44585f[_0x45ba8c(0x291)]({'cmd':a[_0x45ba8c(0x1b4)][_0x45ba8c(0x388)],'code':a[_0x45ba8c(0x293)]['OK'],'routeKey':_0x5cb40b['data']['unitID'],'routeType':'','data':{'eventID':e[_0x45ba8c(0x383)][_0x45ba8c(0x3cd)],'data':{'changesets':_0x50909b}}});})[_0x4821e6(0x251)](_0x291886=>{const _0x158dee=_0x4821e6;this['_logService'][_0x158dee(0x23f)](_0x291886),_0x2303b8();});return;}}_0xc1d4c1[_0x4821e6(0x24a)](Ke(_0x2931aa));},'close':()=>{const _0x37b08d=_0x5f4c1e;_0xc1d4c1[_0x37b08d(0x2e0)](),_0x14173e[_0x37b08d(0x2c9)]();}},_0x5252a0;}async['_submitChangeset'](_0x5a8f4a,_0x363cbe){const _0x258238=_0x35bb4b;var _0x1786b9;let {unitType:_0x2784bf,unitID:_0x43769f,changeset:_0x1a0e59}=_0x363cbe[_0x258238(0x36a)],_0x41125a={'unitID':_0x43769f,'memberID':_0x5a8f4a['memberID'],'type':_0x2784bf,'changeset':(0x0,e[_0x258238(0x386)])(_0x1a0e59)},_0x25a406=this[_0x258238(0x3ec)]['getConfig'](m),_0x3ca165=Je((_0x1786b9=_0x25a406==null?void 0x0:_0x25a406[_0x258238(0x2b6)])==null?_0x258238(0x237):_0x1786b9,_0x2784bf,_0x43769f);try{await this[_0x258238(0x2b3)][_0x258238(0x378)](_0x3ca165,{'body':_0x41125a});}catch(_0x5214ea){throw this['_logService']['error']('[CollaborationSession]','submit\x20changeset\x20error!'),_0x5214ea;}}async[_0x35bb4b(0x3a2)](_0x1599d9){const _0x3d01c6=_0x35bb4b;let {unitID:_0x6d49e8,from:_0x5182ca,to:_0x49fb49,unitType:_0xa8b5d1}=_0x1599d9[_0x3d01c6(0x36a)];return(await this[_0x3d01c6(0x409)][_0x3d01c6(0x483)]({'metadata':void 0x0},{'unitID':_0x6d49e8,'type':_0xa8b5d1,'from':_0x5182ca,'to':_0x49fb49}))[_0x3d01c6(0x3aa)][_0x3d01c6(0x30d)](_0x4d4a55=>((_0x4d4a55[_0x3d01c6(0x2de)]===null||_0x4d4a55[_0x3d01c6(0x2de)]===void 0x0)&&(_0x4d4a55[_0x3d01c6(0x2de)]=[]),_0x4d4a55));}};Ye=y([v(0x0,(0x0,t['Inject'])(t[_0x35bb4b(0x413)])),v(0x1,(0x0,t[_0x35bb4b(0x48e)])(l[_0x35bb4b(0x338)])),v(0x2,t[_0x35bb4b(0x340)]),v(0x3,t[_0x35bb4b(0x1d7)]),v(0x4,e['ISnapshotServerService'])],Ye);const Xe=(0x0,t['createIdentifier'])('univer-pro.collaboration-client-adapter-service');function Ze(_0x1970d7={}){const _0xc05b96=_0x35bb4b;return _0x1970d7[_0xc05b96(0x308)]?{'resolveUnit':_0x1970d7[_0xc05b96(0x308)]}:{'resolveUnit':_0x5b76ac=>({'target':{'unitId':_0x5b76ac['unitId'],'unitType':_0x5b76ac[_0xc05b96(0x2fe)]}})};}function Qe(_0x69fae4,_0x19b241,_0x6026cc){const _0x3a5ade=_0x35bb4b;var _0x550429;let _0x8371f1=_0x6026cc['target'][_0x3a5ade(0x23b)];if(_0x8371f1!=null&&_0x8371f1[_0x3a5ade(0x1e8)]()==='')throw Error(_0x3a5ade(0x282));if(!_0x6026cc[_0x3a5ade(0x1e5)]['unitId'])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x69fae4,'unitType':_0x19b241,'target':{'endpoint':_0x8371f1,'unitId':_0x6026cc['target']['unitId'],'unitType':(_0x550429=_0x6026cc['target'][_0x3a5ade(0x2fe)])==null?_0x19b241:_0x550429},'changeset':_0x6026cc[_0x3a5ade(0x193)]};}let V=class extends t[_0x35bb4b(0x476)]{constructor(_0xbaace8,_0x72677d,_0x28e471,_0x1f208b,_0x1526f8,_0x428153,_0x47af03){const _0x5a7014=_0x35bb4b;super(),this[_0x5a7014(0x19a)]=_0xbaace8,this[_0x5a7014(0x445)]=_0x72677d,this[_0x5a7014(0x3ec)]=_0x28e471,this[_0x5a7014(0x479)]=_0x1f208b,this['_collaborationUIEventService']=_0x1526f8,this[_0x5a7014(0x2c3)]=_0x428153,this[_0x5a7014(0x44d)]=_0x47af03,g(this,_0x5a7014(0x430),new Map()),g(this,_0x5a7014(0x376),new Map()),g(this,_0x5a7014(0x348),new Map()),g(this,'_socketChannels',new Map()),g(this,_0x5a7014(0x3fa),this[_0x5a7014(0x321)](void 0x0)[_0x5a7014(0x3fa)][_0x5a7014(0x3b8)]()),g(this,_0x5a7014(0x22b),new i['BehaviorSubject'](0x0)),g(this,_0x5a7014(0x3af),this[_0x5a7014(0x22b)][_0x5a7014(0x3b8)]()),this[_0x5a7014(0x21a)]();}['_listenToNetworkCondition'](){const _0x57be16=_0x35bb4b;this[_0x57be16(0x44d)]&&this[_0x57be16(0x2e7)](this['_networkConditionService'][_0x57be16(0x223)][_0x57be16(0x29b)](_0x394550=>{const _0x1de91c=_0x57be16;_0x394550&&this[_0x1de91c(0x19f)](),_0x394550||this[_0x1de91c(0x368)][_0x1de91c(0x2db)](_0x5691c8=>this[_0x1de91c(0x439)](_0x5691c8));}));}['dispose'](){const _0x1b55c2=_0x35bb4b;super[_0x1b55c2(0x2c9)](),this[_0x1b55c2(0x368)][_0x1b55c2(0x2db)](_0x1dd470=>{const _0x22b4aa=_0x1b55c2;var _0x469174,_0x283563;(_0x469174=_0x1dd470[_0x22b4aa(0x3b6)])==null||_0x469174[_0x22b4aa(0x182)](),_0x1dd470[_0x22b4aa(0x3b6)]=null,this[_0x22b4aa(0x43a)](_0x1dd470),this[_0x22b4aa(0x1bb)](_0x1dd470),this[_0x22b4aa(0x281)](_0x1dd470),(_0x283563=_0x1dd470[_0x22b4aa(0x3fa)][_0x22b4aa(0x3b9)]())==null||_0x283563[_0x22b4aa(0x2e0)](),_0x1dd470[_0x22b4aa(0x3fa)][_0x22b4aa(0x1f7)]();}),this['_socketChannels'][_0x1b55c2(0x322)](),this[_0x1b55c2(0x430)][_0x1b55c2(0x2db)](_0x20a7ff=>_0x20a7ff[_0x1b55c2(0x2c9)]()),this[_0x1b55c2(0x430)][_0x1b55c2(0x322)](),this[_0x1b55c2(0x348)][_0x1b55c2(0x322)](),this[_0x1b55c2(0x22b)][_0x1b55c2(0x1f7)]();}async[_0x35bb4b(0x239)](_0x5ab335,_0x1b8569){const _0x4f2186=_0x35bb4b;if(this[_0x4f2186(0x430)][_0x4f2186(0x478)](_0x5ab335))return this[_0x4f2186(0x430)]['get'](_0x5ab335);let _0x1dee8b=this[_0x4f2186(0x376)]['get'](_0x5ab335);if(_0x1dee8b)return _0x1dee8b;let _0x34a63=this['_createSession'](_0x5ab335,_0x1b8569);this[_0x4f2186(0x376)][_0x4f2186(0x3ac)](_0x5ab335,_0x34a63);try{return await _0x34a63;}finally{this[_0x4f2186(0x376)][_0x4f2186(0x3bd)](_0x5ab335);}}async[_0x35bb4b(0x3a4)](_0x54b411,_0x2e70f4){const _0x51efcf=_0x35bb4b;let _0xaa3a7=await this[_0x51efcf(0x2c8)](_0x54b411,_0x2e70f4),_0x5751bf=this[_0x51efcf(0x321)](_0xaa3a7[_0x51efcf(0x1e5)][_0x51efcf(0x23b)]);this[_0x51efcf(0x455)](_0x5751bf);let _0x48d903=this[_0x51efcf(0x19a)][_0x51efcf(0x303)](x,_0xaa3a7,_0x5751bf['socket$']['asObservable']());return this['_sessions']['set'](_0x54b411,_0x48d903),this[_0x51efcf(0x348)][_0x51efcf(0x3ac)](_0x54b411,_0x5751bf[_0x51efcf(0x38d)]),_0x48d903;}[_0x35bb4b(0x3cf)](_0x1df8db){const _0x37f7e9=_0x35bb4b;let _0x5dffac=this[_0x37f7e9(0x430)][_0x37f7e9(0x20e)](_0x1df8db),_0x534d2f=this[_0x37f7e9(0x348)][_0x37f7e9(0x20e)](_0x1df8db);if(_0x5dffac&&(this[_0x37f7e9(0x430)]['delete'](_0x1df8db),this[_0x37f7e9(0x348)][_0x37f7e9(0x3bd)](_0x1df8db),_0x5dffac[_0x37f7e9(0x2e0)]()),_0x534d2f&&!this[_0x37f7e9(0x3e7)](_0x534d2f)){var _0x1d9cc1;let _0x62cf41=this['_socketChannels'][_0x37f7e9(0x20e)](_0x534d2f);_0x62cf41==null||(_0x1d9cc1=_0x62cf41[_0x37f7e9(0x3fa)]['getValue']())==null||_0x1d9cc1[_0x37f7e9(0x2e0)]();}}[_0x35bb4b(0x19f)](){const _0x19d861=_0x35bb4b;(this[_0x19d861(0x368)]['size']?[...this['_socketChannels'][_0x19d861(0x1f9)]()]:[this['_getSocketChannel'](void 0x0)])[_0x19d861(0x2db)](_0x285410=>{const _0x40ea4e=_0x19d861;_0x285410[_0x40ea4e(0x1e1)]=0x0,this[_0x40ea4e(0x43a)](_0x285410),this[_0x40ea4e(0x1e2)](_0x285410);});}['_clearRetryConnectingTimer'](_0x4bf9fc){const _0x12ef2a=_0x35bb4b;_0x4bf9fc[_0x12ef2a(0x2ac)]!=null&&(clearTimeout(_0x4bf9fc['retryConnectingTimer']),_0x4bf9fc[_0x12ef2a(0x2ac)]=null);}async[_0x35bb4b(0x309)](_0x4c3c04){const _0x4fafe7=_0x35bb4b;var _0x226069,_0x549242;let _0x11fd9a=this['_configService'][_0x4fafe7(0x1bf)](m),_0x4e396e=(_0x226069=(_0x549242=_0x4c3c04[_0x4fafe7(0x23b)])==null?_0x11fd9a==null?void 0x0:_0x11fd9a['collabWebSocketUrl']:_0x549242)==null?te:_0x226069,_0x27f794=await this['_socketService']['createSocket'](_0x4e396e);return _0x4c3c04[_0x4fafe7(0x1ac)]=_0x27f794,_0x27f794;}async[_0x35bb4b(0x455)](_0x2cc706){const _0x4afe73=_0x35bb4b;try{var _0x28b950,_0x1acebb;let _0x3633a7=(_0x28b950=(_0x1acebb=_0x2cc706['socket$'][_0x4afe73(0x3b9)]())==null?_0x2cc706[_0x4afe73(0x1ac)]:_0x1acebb)==null?await this[_0x4afe73(0x309)](_0x2cc706):_0x28b950;if(_0x3633a7){var _0xb27ff4;let _0x446667=_0x3633a7[_0x4afe73(0x24a)];_0x3633a7['send']=_0x48e3ee=>(_0x48e3ee['cmd']!==a[_0x4afe73(0x1b4)][_0x4afe73(0x330)]&&this[_0x4afe73(0x1ca)](_0x2cc706),_0x446667[_0x4afe73(0x2ea)](_0x3633a7,[_0x48e3ee])),(_0xb27ff4=_0x2cc706['socketMessageSubscription'])==null||_0xb27ff4[_0x4afe73(0x182)](),_0x2cc706[_0x4afe73(0x3b6)]=null,_0x2cc706[_0x4afe73(0x3b6)]=_0x3633a7[_0x4afe73(0x1ed)]['subscribe'](_0x3643bf=>this['_onMessage'](_0x2cc706,_0x3633a7,_0x3643bf)),_0x3633a7[_0x4afe73(0x244)][_0x4afe73(0x481)]((0x0,s[_0x4afe73(0x1c6)])(0x1))['subscribe'](_0x32d685=>this['_logService'][_0x4afe73(0x23f)](_0x4afe73(0x468),_0x32d685)),_0x3633a7[_0x4afe73(0x295)]['pipe']((0x0,s[_0x4afe73(0x1c6)])(0x1))[_0x4afe73(0x29b)](()=>{const _0x478336=_0x4afe73;this[_0x478336(0x48b)](_0x2cc706,_0x3633a7);}),_0x3633a7[_0x4afe73(0x3e0)][_0x4afe73(0x481)]((0x0,s[_0x4afe73(0x1c6)])(0x1))['subscribe'](_0x51a25e=>{const _0xca452d=_0x4afe73;this[_0xca452d(0x445)]['debug'](_0xca452d(0x3b4),'socket\x20close',_0x51a25e),this[_0xca452d(0x263)](_0x2cc706);});}}catch(_0x185c92){this['_logService']['error'](_0x185c92),this[_0x4afe73(0x263)](_0x2cc706);}}['_onConnectionOpen'](_0x48b757,_0x50a954){const _0x67ebda=_0x35bb4b;this[_0x67ebda(0x445)][_0x67ebda(0x390)](_0x67ebda(0x3b4),_0x67ebda(0x2f9)),_0x50a954[_0x67ebda(0x24a)]({'cmd':a['CombCmd']['HELLO']}),this['_rescheduleHeartbeat'](_0x48b757);}[_0x35bb4b(0x439)](_0xbb215a){const _0x113572=_0x35bb4b;_0xbb215a[_0x113572(0x1e0)]=!0x1,_0xbb215a[_0x113572(0x1ac)]=null,this[_0x113572(0x22b)][_0x113572(0x291)](0x2),_0xbb215a['socket$']['next'](null),this['_clearTimeoutTimer'](_0xbb215a),this[_0x113572(0x281)](_0xbb215a);}[_0x35bb4b(0x263)](_0x454299){const _0xfef4c7=_0x35bb4b;var _0x85250a;this[_0xfef4c7(0x439)](_0x454299),this[_0xfef4c7(0x3e7)](_0x454299['endpointKey'])&&(_0x454299[_0xfef4c7(0x1e1)]<((_0x85250a=this[_0xfef4c7(0x3ec)]['getConfig']('RETRY_CONNECTING_MAX_COUNT'))==null?0x3:_0x85250a)?(this[_0xfef4c7(0x1da)][_0xfef4c7(0x328)]({'id':_0xfef4c7(0x3ea)}),this[_0xfef4c7(0x1e2)](_0x454299)):this[_0xfef4c7(0x1da)][_0xfef4c7(0x328)]({'id':_0xfef4c7(0x420)}));}['_tryReconnect'](_0x5a93a4){const _0x450336=_0x35bb4b;var _0x443c80;let _0x579ecf=_0x5a93a4[_0x450336(0x1e1)],_0x3ca250=this['_configService'][_0x450336(0x1bf)](m),_0x51bcdd=_0x579ecf===0x0?0x0:((_0x443c80=_0x3ca250==null?void 0x0:_0x3ca250['retryConnectingInterval'])==null?0x4e20:_0x443c80)*0x2**_0x579ecf;_0x5a93a4[_0x450336(0x2ac)]=setTimeout(()=>{const _0x258ba3=_0x450336;clearTimeout(_0x5a93a4[_0x258ba3(0x2ac)]),_0x5a93a4[_0x258ba3(0x2ac)]=null,this[_0x258ba3(0x455)](_0x5a93a4);},_0x51bcdd),_0x5a93a4[_0x450336(0x1e1)]+=0x1;}async[_0x35bb4b(0x2c8)](_0x8fa7dd,_0x517605){const _0x4c94be=_0x35bb4b;return Qe(_0x8fa7dd,_0x517605,await this[_0x4c94be(0x2c3)][_0x4c94be(0x308)]({'unitId':_0x8fa7dd,'unitType':_0x517605}));}[_0x35bb4b(0x364)](_0x2828d3,_0x4ee138,_0x511795){const _0x1f46be=_0x35bb4b;let {cmd:_0x5a94eb}=_0x511795;_0x5a94eb===a[_0x1f46be(0x1b4)][_0x1f46be(0x46b)]&&!_0x2828d3[_0x1f46be(0x1e0)]&&(_0x4ee138[_0x1f46be(0x2aa)]=_0x511795[_0x1f46be(0x36a)]['memberID'],_0x2828d3['socket$'][_0x1f46be(0x291)](_0x4ee138),this[_0x1f46be(0x22b)]['next'](0x3),_0x2828d3[_0x1f46be(0x1e0)]=!0x0,_0x2828d3[_0x1f46be(0x1ac)]=null),_0x5a94eb===a[_0x1f46be(0x1b4)][_0x1f46be(0x3c4)]&&this['_clearTimeoutTimer'](_0x2828d3),this[_0x1f46be(0x1ca)](_0x2828d3);}[_0x35bb4b(0x3e7)](_0x24845a){const _0x512954=_0x35bb4b;return[...this[_0x512954(0x348)][_0x512954(0x1f9)]()][_0x512954(0x396)](_0x4c66c9=>_0x4c66c9===_0x24845a);}[_0x35bb4b(0x321)](_0x541e2b){const _0x51b15a=_0x35bb4b;let _0x446b8a=_0x541e2b==null?'':_0x541e2b,_0x16f1ce=this[_0x51b15a(0x368)][_0x51b15a(0x20e)](_0x446b8a);if(_0x16f1ce)return _0x16f1ce;let _0x22c3e0={'endpointKey':_0x446b8a,'endpoint':_0x541e2b,'socket$':new i[(_0x51b15a(0x3a3))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x51b15a(0x368)][_0x51b15a(0x3ac)](_0x446b8a,_0x22c3e0),_0x22c3e0;}[_0x35bb4b(0x1ca)](_0xa93222){const _0x475ac1=_0x35bb4b;var _0x38fc0d;this[_0x475ac1(0x281)](_0xa93222),_0xa93222[_0x475ac1(0x241)]=setTimeout(()=>this[_0x475ac1(0x2d5)](_0xa93222),(_0x38fc0d=this[_0x475ac1(0x3ec)][_0x475ac1(0x1bf)]('HEARTBEAT_INTERVAL'))==null?0x7530:_0x38fc0d);}[_0x35bb4b(0x2d5)](_0x198418){const _0x20a21b=_0x35bb4b;_0x198418['socket$']['getValue']()[_0x20a21b(0x24a)]({'cmd':a[_0x20a21b(0x1b4)][_0x20a21b(0x3c4)]}),this['_waitForHeartbeatResponse'](_0x198418);}[_0x35bb4b(0x369)](_0x1b1759){const _0x479cb2=_0x35bb4b;var _0x3dd6b2;_0x1b1759[_0x479cb2(0x200)]=setTimeout(()=>this[_0x479cb2(0x263)](_0x1b1759),(_0x3dd6b2=this[_0x479cb2(0x3ec)][_0x479cb2(0x1bf)](_0x479cb2(0x1b7)))==null?ne:_0x3dd6b2);}[_0x35bb4b(0x281)](_0x50b592){const _0x175213=_0x35bb4b;_0x50b592[_0x175213(0x241)]!=null&&(clearTimeout(_0x50b592[_0x175213(0x241)]),_0x50b592[_0x175213(0x241)]=null);}['_clearTimeoutTimer'](_0x43bb15){const _0x237f7b=_0x35bb4b;_0x43bb15[_0x237f7b(0x200)]!=null&&(clearTimeout(_0x43bb15['timeoutTimer']),_0x43bb15[_0x237f7b(0x200)]=null);}};V=y([v(0x0,(0x0,t[_0x35bb4b(0x48e)])(t[_0x35bb4b(0x413)])),v(0x1,t['ILogService']),v(0x2,t[_0x35bb4b(0x340)]),v(0x3,qe),v(0x4,(0x0,t[_0x35bb4b(0x48e)])(_)),v(0x5,Xe),v(0x6,(0x0,t[_0x35bb4b(0x1a4)])(We))],V);let H=class extends t['RxDisposable']{constructor(_0x165480,_0x168f1d,_0x1402ab,_0x1a2572){const _0x3a3c30=_0x35bb4b;var _0x413746;super(),this[_0x3a3c30(0x19a)]=_0x165480,this[_0x3a3c30(0x34a)]=_0x168f1d,this[_0x3a3c30(0x3ec)]=_0x1402ab,this[_0x3a3c30(0x25a)]=_0x1a2572,g(this,_0x3a3c30(0x320),new Map()),g(this,_0x3a3c30(0x2f1),new i[(_0x3a3c30(0x27e))]()),g(this,_0x3a3c30(0x3b5),this['_entityInit$'][_0x3a3c30(0x3b8)]()),((_0x413746=this['_configService']['getConfig'](_0x3a3c30(0x336)))==null?void 0x0:_0x413746['enableCollaboration'])!==!0x1&&this[_0x3a3c30(0x192)]();}[_0x35bb4b(0x2c9)](){const _0x589238=_0x35bb4b;super['dispose'](),this['_entities'][_0x589238(0x2db)](_0x26597a=>_0x26597a[_0x589238(0x2c9)]()),this[_0x589238(0x320)][_0x589238(0x322)]();}[_0x35bb4b(0x3b3)](_0x65e808){const _0x2b8d1d=_0x35bb4b;var _0x2a5216;return(_0x2a5216=this[_0x2b8d1d(0x320)][_0x2b8d1d(0x20e)](_0x65e808))==null?null:_0x2a5216;}[_0x35bb4b(0x184)](_0x259f01){const _0x35ae59=_0x35bb4b;let _0x185435=this[_0x35ae59(0x3b3)](_0x259f01);return _0x185435?(0x0,i['of'])(_0x185435):this[_0x35ae59(0x2f1)]['pipe']((0x0,s[_0x35ae59(0x45e)])(_0xd89df8=>_0xd89df8[_0x35ae59(0x41a)]===_0x259f01));}[_0x35bb4b(0x2c2)](_0x4b6d9c){const _0x3667cf=_0x35bb4b;return(0x0,i[_0x3667cf(0x43d)])(this['getCollabEntity$'](_0x4b6d9c)[_0x3667cf(0x481)]((0x0,s['map'])(()=>void 0x0)));}[_0x35bb4b(0x192)](){const _0x37d320=_0x35bb4b;this['_univerInstanceService'][_0x37d320(0x1e3)](t[_0x37d320(0x36f)][_0x37d320(0x299)])[_0x37d320(0x481)]((0x0,i[_0x37d320(0x21d)])(this[_0x37d320(0x316)]),(0x0,s[_0x37d320(0x384)])(0x10))['subscribe'](async _0x289407=>{const _0x467207=_0x37d320;let _0x135c28=_0x289407[_0x467207(0x2ca)]['getUnitId'](),_0x21a2fd=await this[_0x467207(0x19d)](_0x135c28,t[_0x467207(0x36f)]['UNIVER_SHEET']);this['_entities'][_0x467207(0x3ac)](_0x135c28,_0x21a2fd);}),this[_0x37d320(0x25a)]['getTypeOfUnitAdded$'](t[_0x37d320(0x36f)][_0x37d320(0x207)])[_0x37d320(0x481)]((0x0,i[_0x37d320(0x21d)])(this[_0x37d320(0x316)]),(0x0,s[_0x37d320(0x384)])(0x10))['pipe']((0x0,s[_0x37d320(0x45e)])(_0x43a5ef=>!_0x43a5ef[_0x37d320(0x2ca)]['getUnitId']()['startsWith']('__')))[_0x37d320(0x29b)](async _0x3f5a4b=>{const _0x23907b=_0x37d320;let _0x506340=_0x3f5a4b[_0x23907b(0x2ca)][_0x23907b(0x1b1)](),_0x8cd866=await this['_startCollaboration'](_0x506340,t['UniverInstanceType'][_0x23907b(0x207)]);this[_0x23907b(0x320)][_0x23907b(0x3ac)](_0x506340,_0x8cd866);}),this[_0x37d320(0x25a)][_0x37d320(0x1e3)](t[_0x37d320(0x36f)][_0x37d320(0x465)])['pipe']((0x0,i['takeUntil'])(this[_0x37d320(0x316)]),(0x0,s['delay'])(0x10))[_0x37d320(0x29b)](async _0xcb62fd=>{const _0x58d6f5=_0x37d320;let _0xc35b93=_0xcb62fd[_0x58d6f5(0x2ca)]['getUnitId'](),_0xcde7bb=await this[_0x58d6f5(0x19d)](_0xc35b93,t['UniverInstanceType']['UNIVER_SLIDE']);this[_0x58d6f5(0x320)]['set'](_0xc35b93,_0xcde7bb);}),this[_0x37d320(0x25a)][_0x37d320(0x1e3)](t[_0x37d320(0x36f)][_0x37d320(0x1ad)])[_0x37d320(0x481)]((0x0,i['takeUntil'])(this[_0x37d320(0x316)]),(0x0,s[_0x37d320(0x384)])(0x10))['subscribe'](async _0x267dbc=>{const _0x31057a=_0x37d320;let _0x56ff2a=_0x267dbc[_0x31057a(0x2ca)][_0x31057a(0x1b1)](),_0x43a2eb=await this[_0x31057a(0x19d)](_0x56ff2a,t[_0x31057a(0x36f)][_0x31057a(0x1ad)]);this[_0x31057a(0x320)][_0x31057a(0x3ac)](_0x56ff2a,_0x43a2eb);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](t[_0x37d320(0x36f)][_0x37d320(0x17e)])[_0x37d320(0x481)]((0x0,i[_0x37d320(0x21d)])(this[_0x37d320(0x316)]),(0x0,s[_0x37d320(0x384)])(0x10))[_0x37d320(0x29b)](async _0x1942b6=>{const _0x1841b4=_0x37d320;let _0x1dbb9a=_0x1942b6[_0x1841b4(0x2ca)][_0x1841b4(0x1b1)](),_0x146a28=await this[_0x1841b4(0x19d)](_0x1dbb9a,t[_0x1841b4(0x36f)]['UNIVER_BASE']);this['_entities'][_0x1841b4(0x3ac)](_0x1dbb9a,_0x146a28);}),(0x0,i[_0x37d320(0x3f6)])(this[_0x37d320(0x25a)][_0x37d320(0x177)](t['UniverInstanceType']['UNIVER_SHEET']),this['_univerInstanceService'][_0x37d320(0x177)](t[_0x37d320(0x36f)][_0x37d320(0x207)]),this[_0x37d320(0x25a)][_0x37d320(0x177)](t[_0x37d320(0x36f)]['UNIVER_SLIDE']),this[_0x37d320(0x25a)][_0x37d320(0x177)](t[_0x37d320(0x36f)][_0x37d320(0x1ad)]),this[_0x37d320(0x25a)][_0x37d320(0x177)](t[_0x37d320(0x36f)][_0x37d320(0x17e)]))[_0x37d320(0x481)]((0x0,i['takeUntil'])(this['dispose$']))[_0x37d320(0x29b)](_0x8972b6=>{const _0x234b00=_0x37d320;let _0x113e7d=_0x8972b6['getUnitId'](),_0x89aaf3=this[_0x234b00(0x320)][_0x234b00(0x20e)](_0x113e7d);_0x89aaf3&&(_0x89aaf3['dispose'](),this['_entities'][_0x234b00(0x3bd)](_0x113e7d));});}async[_0x35bb4b(0x19d)](_0x26ca6c,_0xee436c){const _0x2594ff=_0x35bb4b;let _0x304294=await this[_0x2594ff(0x34a)]['requireSession'](_0x26ca6c),_0x32413e=this[_0x2594ff(0x19a)][_0x2594ff(0x303)](this[_0x2594ff(0x3e1)](_0xee436c),_0x26ca6c,_0xee436c,_0x304294);return await _0x32413e[_0x2594ff(0x253)](),this[_0x2594ff(0x2f1)][_0x2594ff(0x291)](_0x32413e),_0x32413e;}[_0x35bb4b(0x3e1)](_0x5909cd){const _0xe4d80e=_0x35bb4b;switch(_0x5909cd){case t['UniverInstanceType'][_0xe4d80e(0x207)]:return I;case t[_0xe4d80e(0x36f)][_0xe4d80e(0x299)]:return R;case t[_0xe4d80e(0x36f)][_0xe4d80e(0x465)]:return z;case t[_0xe4d80e(0x36f)]['UNIVER_BOARD']:return B;case t[_0xe4d80e(0x36f)][_0xe4d80e(0x17e)]:return L;default:throw Error(_0xe4d80e(0x313)+_0x5909cd);}}};H=y([v(0x0,(0x0,t[_0x35bb4b(0x48e)])(t[_0x35bb4b(0x413)])),v(0x1,(0x0,t[_0x35bb4b(0x48e)])(V)),v(0x2,t[_0x35bb4b(0x340)]),v(0x3,t['IUniverInstanceService'])],H);var $e=_0x35bb4b(0x324),et=_0x35bb4b(0x40f);let tt=class extends t['Disposable']{constructor(_0x1ad288,_0x3c405e){const _0x51ad86=_0x35bb4b;super(),this['_univerInstanceService']=_0x1ad288,this[_0x51ad86(0x3ec)]=_0x3c405e,this[_0x51ad86(0x192)]();}['_init'](){const _0x4f545b=_0x35bb4b;this['disposeWithMe'](this[_0x4f545b(0x25a)][_0x4f545b(0x334)][_0x4f545b(0x29b)](()=>{const _0x30da7b=_0x4f545b;var _0x2183d2;let _0x3684d1=this[_0x30da7b(0x25a)][_0x30da7b(0x2cc)](),_0x375b9f=(_0x2183d2=this[_0x30da7b(0x3ec)][_0x30da7b(0x1bf)](_0x30da7b(0x385)))==null?'Univer':_0x2183d2;_0x3684d1 instanceof t[_0x30da7b(0x3e5)]&&(_0x375b9f=_0x3684d1[_0x30da7b(0x2c7)]),document[_0x30da7b(0x31a)]=_0x375b9f;}));}};tt=y([v(0x0,t[_0x35bb4b(0x1ba)]),v(0x1,t[_0x35bb4b(0x340)])],tt);let nt=function(_0x4455c0){const _0x920462=_0x35bb4b;return _0x4455c0[_0x920462(0x407)]=_0x920462(0x407),_0x4455c0['UUID']=_0x920462(0x16c),_0x4455c0['BASE64']=_0x920462(0x38c),_0x4455c0;}({});const rt=(0x0,t[_0x35bb4b(0x35f)])(_0x35bb4b(0x2af));let U=class{constructor(_0x49e9fe,_0x5294fb,_0x1636c9){const _0x13d2f3=_0x35bb4b;this[_0x13d2f3(0x2b3)]=_0x49e9fe,this[_0x13d2f3(0x3ec)]=_0x5294fb,this[_0x13d2f3(0x25a)]=_0x1636c9;}[_0x35bb4b(0x17b)](){const _0x435e6f=_0x35bb4b;var _0x55488e;return(_0x55488e=this[_0x435e6f(0x3d0)]()['attachment'])==null?{}:_0x55488e;}async['saveAttachment'](_0x569427){const _0x1a6a2e=_0x35bb4b;let _0x3c768a=this['getUploadOptions']();if(it(_0x569427,_0x3c768a),_0x3c768a[_0x1a6a2e(0x42c)])return _0x3c768a[_0x1a6a2e(0x42c)](_0x569427);let _0x48153f=await this[_0x1a6a2e(0x2fb)](_0x569427);return{'id':_0x48153f,'name':_0x569427[_0x1a6a2e(0x2c7)],'mimeType':_0x569427[_0x1a6a2e(0x435)],'size':_0x569427[_0x1a6a2e(0x426)],'sourceType':_0x1a6a2e(0x16c),'source':_0x48153f};}async[_0x35bb4b(0x2fb)](_0xf7207e){const _0x333314=_0x35bb4b;let _0x4cc3fb=this[_0x333314(0x25a)]['getFocusedUnit'](),_0x338cf6=_0x4cc3fb==null?void 0x0:_0x4cc3fb[_0x333314(0x1b1)]();if(!_0x338cf6)throw Error(_0x333314(0x3ab));let _0x2aae65=new FormData();_0x2aae65[_0x333314(0x187)](_0x333314(0x3f4),_0xf7207e);let _0x4972c5=this[_0x333314(0x3cc)]()+_0x333314(0x332)+_0xf7207e[_0x333314(0x426)][_0x333314(0x351)]()+_0x333314(0x474)+a[_0x333314(0x24c)][_0x333314(0x405)]+_0x333314(0x1f5)+encodeURIComponent(_0x338cf6),_0x5a3140=(await this[_0x333314(0x2b3)][_0x333314(0x378)](_0x4972c5,{'body':_0x2aae65}))[_0x333314(0x46f)][_0x333314(0x35b)];if(typeof _0x5a3140!='string'||!_0x5a3140)throw Error(_0x333314(0x43e));return _0x5a3140;}[_0x35bb4b(0x3cc)](){const _0x475b66=_0x35bb4b;var _0x1f45b5;return(_0x1f45b5=this[_0x475b66(0x3d0)]()['uploadFileServerUrl'])==null?_0x475b66(0x3e2):_0x1f45b5;}['_getConfig'](){const _0x2f22d4=_0x35bb4b;var _0x4626f7;return(_0x4626f7=this[_0x2f22d4(0x3ec)][_0x2f22d4(0x1bf)](_0x2f22d4(0x336)))==null?{}:_0x4626f7;}};U=y([v(0x0,(0x0,t['Inject'])(l[_0x35bb4b(0x338)])),v(0x1,(0x0,t['Inject'])(t['IConfigService'])),v(0x2,(0x0,t['Inject'])(t[_0x35bb4b(0x1ba)]))],U);function it(_0x5bb79a,_0x37330c){const _0x22b440=_0x35bb4b;var _0x5567d7;if(_0x37330c['maxSize']!=null&&_0x5bb79a['size']>_0x37330c[_0x22b440(0x18d)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x5567d7=_0x37330c['accept'])!=null&&_0x5567d7[_0x22b440(0x17d)]&&!_0x37330c[_0x22b440(0x487)][_0x22b440(0x396)](_0x12ac20=>_0x5bb79a[_0x22b440(0x435)]===_0x12ac20||_0x5bb79a[_0x22b440(0x2c7)][_0x22b440(0x306)](_0x12ac20)||_0x12ac20[_0x22b440(0x306)]('/*')&&_0x5bb79a[_0x22b440(0x435)][_0x22b440(0x1d9)](_0x12ac20['slice'](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let W=class{constructor(_0x5259f9,_0x1b6a94,_0x1b6675){const _0xbbee3f=_0x35bb4b;this[_0xbbee3f(0x3ec)]=_0x5259f9,this[_0xbbee3f(0x2b3)]=_0x1b6a94,this['localeService']=_0x1b6675,this['init']();}[_0x35bb4b(0x253)](){const _0x1cdfbb=_0x35bb4b;this[_0x1cdfbb(0x2b3)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x3c6421,_0x4673bc)=>_0x4673bc(_0x3c6421)[_0x1cdfbb(0x481)]((0x0,i[_0x1cdfbb(0x22d)])(async _0x3c1514=>{const _0x270cc6=_0x1cdfbb;let _0x16aec9=_0x3c1514;if(_0x16aec9[_0x270cc6(0x16d)]===0x191){if(typeof window>'u')throw Error(_0x270cc6(0x32f));if(window[_0x270cc6(0x22f)](this[_0x270cc6(0x410)]['t'](_0x270cc6(0x325)))){let _0x59e42b=window[_0x270cc6(0x204)](window[_0x270cc6(0x1b3)][_0x270cc6(0x43f)]);window['location'][_0x270cc6(0x43f)]=this[_0x270cc6(0x37e)]()+_0x270cc6(0x25d)+_0x59e42b;}}return _0x16aec9;}))});}['_getLoginPath'](){const _0x355028=_0x35bb4b;var _0x9f8031;let _0x508fbd=this[_0x355028(0x3ec)][_0x355028(0x1bf)](m);return(_0x9f8031=_0x508fbd==null?void 0x0:_0x508fbd[_0x355028(0x2e4)])==null?'/universer-api/oidc/authpage':_0x9f8031;}};W=y([v(0x0,t[_0x35bb4b(0x340)]),v(0x1,(0x0,t[_0x35bb4b(0x48e)])(l[_0x35bb4b(0x338)])),v(0x2,(0x0,t['Inject'])(t['LocaleService']))],W);let G=class extends t[_0x35bb4b(0x476)]{constructor(_0x5ee8bc,_0x27227b){const _0x3ea495=_0x35bb4b;super(),this[_0x3ea495(0x37b)]=_0x5ee8bc,this[_0x3ea495(0x3ec)]=_0x27227b,g(this,_0x3ea495(0x186),!0x1),this[_0x3ea495(0x2f2)]();}[_0x35bb4b(0x2f2)](){const _0x5e01f5=_0x35bb4b;let _0x147553=this;this['disposeWithMe'](this[_0x5e01f5(0x37b)][_0x5e01f5(0x451)]({'priority':0x3e7,'interceptor':(0x0,l[_0x5e01f5(0x1ff)])({'isMatch'(_0x39d015){const _0x1606c6=_0x5e01f5;var _0x58d780;if(_0x39d015[_0x1606c6(0x1f8)]==='POST'&&(_0x58d780=_0x39d015['requestParams'])!=null&&_0x58d780[_0x1606c6(0x46f)]){let {objectID:_0x32d476,objectType:_0x2543c5}=_0x39d015['requestParams'][_0x1606c6(0x46f)]||{};if(!_0x32d476||_0x2543c5===void 0x0)return!0x1;let _0x23873e=_0x147553[_0x1606c6(0x46a)]()+'/'+_0x2543c5+_0x1606c6(0x2a3)+_0x32d476+_0x1606c6(0x272);if(_0x39d015[_0x1606c6(0x1be)]===_0x23873e)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x54d867){const _0x31783d=_0x5e01f5;var _0x144db6;return(_0x144db6=_0x54d867[_0x31783d(0x33d)])==null?void 0x0:_0x144db6[_0x31783d(0x46f)];},'mergeParamsToRequest'(_0x1425a8,_0x7577d2){const _0x2365c6=_0x5e01f5;let _0x494460=_0x147553[_0x2365c6(0x46a)]()+'/-/object/-/batch_allowed',_0x3857e0=_0x1425a8[_0x2365c6(0x2d3)]((_0x1eb689,_0x3c4963)=>{const _0x7951be=_0x2365c6;let {unitID:_0xcde98a,objectID:_0x25d399,objectType:_0x40d5d8,actions:_0x138d37}=_0x3c4963;return _0x1eb689[_0xcde98a]||(_0x1eb689[_0xcde98a]={}),_0x1eb689[_0xcde98a][_0x25d399]||(_0x1eb689[_0xcde98a][_0x25d399]={'objectID':_0x25d399,'objectType':_0x40d5d8,'actions':[]}),_0x1eb689[_0xcde98a][_0x25d399][_0x7951be(0x442)][_0x7951be(0x35d)](..._0x138d37),_0x1eb689;},{}),_0x474ec1=[];for(let _0x18f5da in _0x3857e0)for(let _0x30f10f in _0x3857e0[_0x18f5da]){let {actions:_0x46c854,objectType:_0x43e0f7}=_0x3857e0[_0x18f5da][_0x30f10f],_0x5b699b=[...new Set(_0x46c854)];_0x474ec1['push']({'unitID':_0x18f5da,'objectID':_0x30f10f,'objectType':_0x43e0f7,'actions':_0x5b699b});}return new l['HTTPRequest'](_0x2365c6(0x3d4),_0x494460,{'headers':_0x7577d2[_0x2365c6(0x3c0)],'withCredentials':_0x7577d2[_0x2365c6(0x346)],'responseType':_0x7577d2[_0x2365c6(0x3e3)],'body':{'requests':_0x474ec1}});}},{'distributeResult'(_0x1874f7,_0x1ffab0){const _0x1d12c3=_0x5e01f5;let {objectActions:_0x48e614}=_0x1874f7;return _0x1ffab0[_0x1d12c3(0x30d)](_0x59c928=>{const _0x233534=_0x1d12c3;let {unitID:_0x18609b,objectID:_0x4a52b3,actions:_0x1803c9}=_0x59c928,_0x5f1515=_0x48e614[_0x233534(0x25c)](_0x13c18e=>_0x13c18e[_0x233534(0x41a)]===_0x18609b&&_0x13c18e[_0x233534(0x44b)]===_0x4a52b3);return{'config':_0x59c928,'result':{'actions':_0x1803c9[_0x233534(0x30d)](_0x48b26c=>_0x5f1515==null?void 0x0:_0x5f1515['actions']['find'](_0x4456f9=>_0x4456f9[_0x233534(0x361)]===_0x48b26c))[_0x233534(0x45e)](_0x42838d=>!!_0x42838d),'error':_0x1874f7['error']}};});}})}));}['_getAPIPrefixPath'](){const _0x11cb96=_0x35bb4b;var _0x23e8fb;let _0x30275d=this[_0x11cb96(0x3ec)][_0x11cb96(0x1bf)](m);return(_0x23e8fb=_0x30275d==null?void 0x0:_0x30275d['authzUrl'])==null?_0x11cb96(0x452):_0x23e8fb;}async['create'](_0x158323){const _0xbd3f9d=_0x35bb4b;let _0x4ee8b1=this[_0xbd3f9d(0x46a)]()+'/'+_0x158323[_0xbd3f9d(0x1cf)]+_0xbd3f9d(0x31c);return(await this[_0xbd3f9d(0x37b)][_0xbd3f9d(0x378)](_0x4ee8b1,{'body':_0x158323}))['body'][_0xbd3f9d(0x44b)]||'';}async[_0x35bb4b(0x233)](_0x2409c6){const _0x65ea32=_0x35bb4b;let _0x20c35a=this[_0x65ea32(0x46a)]()+_0x65ea32(0x48f);return(await this[_0x65ea32(0x37b)][_0x65ea32(0x378)](_0x20c35a,{'body':_0x2409c6}))['body'][_0x65ea32(0x17c)];}async['update'](_0x38fe59){const _0x169da6=_0x35bb4b;var _0x33be75;let _0x26036d=this['_getAPIPrefixPath']()+'/'+_0x38fe59['objectType']+'/object/'+_0x38fe59[_0x169da6(0x44b)],_0x3656b1=await this[_0x169da6(0x37b)][_0x169da6(0x34f)](_0x26036d,{'body':_0x38fe59});if((_0x3656b1==null||(_0x33be75=_0x3656b1[_0x169da6(0x46f)])==null||(_0x33be75=_0x33be75['error'])==null?void 0x0:_0x33be75[_0x169da6(0x1a5)])!==0x1)throw Error(_0x169da6(0x178));}async['allowed'](_0x550702){const _0x479b2a=_0x35bb4b;let _0x48a5c9=this[_0x479b2a(0x46a)]()+'/'+_0x550702[_0x479b2a(0x1cf)]+_0x479b2a(0x2a3)+_0x550702[_0x479b2a(0x44b)]+'/allowed';return(await this[_0x479b2a(0x37b)]['post'](_0x48a5c9,{'body':_0x550702}))[_0x479b2a(0x46f)][_0x479b2a(0x442)];}async[_0x35bb4b(0x296)](_0xda906d){const _0x4f08da=_0x35bb4b;let _0x494d70=this[_0x4f08da(0x46a)]()+_0x4f08da(0x1a0);return(await this[_0x4f08da(0x37b)][_0x4f08da(0x378)](_0x494d70,{'body':{'requests':_0xda906d}}))[_0x4f08da(0x46f)][_0x4f08da(0x279)];}async[_0x35bb4b(0x37f)](_0x4b93b1){const _0x2a1214=_0x35bb4b;let _0x1ceac1=this[_0x2a1214(0x46a)]()+'/'+_0x4b93b1[_0x2a1214(0x1cf)]+_0x2a1214(0x358),_0x583f61=await this[_0x2a1214(0x37b)]['post'](_0x1ceac1,{'body':_0x4b93b1});return{'roles':_0x583f61[_0x2a1214(0x46f)][_0x2a1214(0x41c)],'actions':_0x583f61[_0x2a1214(0x46f)]['actions']};}async[_0x35bb4b(0x372)](_0x3d07f8){const _0x4b0b34=_0x35bb4b;let _0x24efa1=this[_0x4b0b34(0x46a)]()+_0x4b0b34(0x448);await this['_HTTPService'][_0x4b0b34(0x3bd)](_0x24efa1,{'params':{'collaboratorID':_0x3d07f8[_0x4b0b34(0x318)],'objectID':_0x3d07f8[_0x4b0b34(0x44b)],'unitID':_0x3d07f8['unitID']}});}async['updateCollaborator'](_0x3f3067){const _0x4c7268=_0x35bb4b;let _0x78618b=this[_0x4c7268(0x46a)]()+_0x4c7268(0x448);await this[_0x4c7268(0x37b)][_0x4c7268(0x2bb)](_0x78618b,{'body':_0x3f3067});}async[_0x35bb4b(0x288)](_0x99925b){const _0x992f75=_0x35bb4b;let _0xce8622=this['_getAPIPrefixPath']()+_0x992f75(0x448);await this['_HTTPService']['post'](_0xce8622,{'body':_0x99925b});}async[_0x35bb4b(0x1fd)](_0x4a11e6){const _0x37938f=_0x35bb4b;var _0x2c2276;let _0x20c0e2=this[_0x37938f(0x46a)]()+_0x37938f(0x448),_0x33096b=await this[_0x37938f(0x37b)]['get'](_0x20c0e2,{'params':{'objectID':_0x4a11e6['objectID'],'unitID':_0x4a11e6[_0x37938f(0x41a)]}});return this[_0x37938f(0x42f)]((_0x2c2276=_0x33096b[_0x37938f(0x46f)][_0x37938f(0x355)])==null?!0x1:_0x2c2276),_0x33096b[_0x37938f(0x46f)][_0x37938f(0x427)];}async[_0x35bb4b(0x30e)](_0x537e22){const _0x413568=_0x35bb4b;let _0x214b9f=this['_getAPIPrefixPath']()+_0x413568(0x448);await this['_HTTPService'][_0x413568(0x34f)](_0x214b9f,{'body':_0x537e22});}[_0x35bb4b(0x42f)](_0x5cebf6){const _0x325ef5=_0x35bb4b;this[_0x325ef5(0x186)]=_0x5cebf6;}[_0x35bb4b(0x269)](){const _0x52a2b0=_0x35bb4b;return this[_0x52a2b0(0x186)];}};G=y([v(0x0,(0x0,t[_0x35bb4b(0x48e)])(l[_0x35bb4b(0x338)])),v(0x1,(0x0,t[_0x35bb4b(0x48e)])(t[_0x35bb4b(0x340)]))],G);function at(_0x5c3a84){const _0x9cfa4f=_0x35bb4b;let _0xdf7fee=atob(_0x5c3a84),_0x177ab1=new Uint8Array(_0xdf7fee[_0x9cfa4f(0x17d)]);for(let _0x1984c3=0x0;_0x1984c3<_0xdf7fee[_0x9cfa4f(0x17d)];_0x1984c3++)_0x177ab1[_0x1984c3]=_0xdf7fee['charCodeAt'](_0x1984c3);return _0x177ab1;}function ot(_0x35ec53){const _0x5d7867=_0x35bb4b;let _0x4cb94e='';for(let _0x4a5386=0x0;_0x4a5386<_0x35ec53[_0x5d7867(0x17d)];_0x4a5386++)_0x4cb94e+=String['fromCharCode'](_0x35ec53[_0x4a5386]);return btoa(_0x4cb94e);}function st(_0x371a1,_0x243280){const _0x419909=_0x35bb4b;let _0x4471ae=at(_0x243280),_0x47ccbb=(0x0,f[_0x419909(0x3d9)])(0x10);return ot((0x0,f['concatBytes'])(_0x47ccbb,(0x0,d[_0x419909(0x2ad)])(_0x4471ae,_0x47ccbb)[_0x419909(0x45b)]((0x0,f[_0x419909(0x23d)])(_0x371a1))));}function ct(){const _0x3da73e=_0x35bb4b;let _0x7dbf33=(0x0,u[_0x3da73e(0x42d)])()[_0x3da73e(0x1e7)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x7dbf33){let _0x1cb896={'time':Math[_0x3da73e(0x265)](Date[_0x3da73e(0x277)]()/0x3e8),'domain':location[_0x3da73e(0x275)]};return st(JSON['stringify'](_0x1cb896),_0x7dbf33);}}let K=class{constructor(_0x40b328){const _0x315e7a=_0x35bb4b;this[_0x315e7a(0x2b3)]=_0x40b328,this[_0x315e7a(0x480)]();}['_initRequestHeader'](){const _0x2f38a5=_0x35bb4b;this[_0x2f38a5(0x2b3)][_0x2f38a5(0x451)]({'interceptor':(_0x31aaac,_0x27fff1)=>{const _0x43d02d=_0x2f38a5;let _0x2db019=ct();return _0x2db019&&_0x31aaac['headers'][_0x43d02d(0x3ac)](_0x43d02d(0x317),_0x2db019),_0x27fff1(_0x31aaac);}});}};K=y([v(0x0,(0x0,t[_0x35bb4b(0x48e)])(l[_0x35bb4b(0x338)]))],K);let q=class extends t[_0x35bb4b(0x28c)]{constructor(_0x5a4e13,_0x5a2ee8,_0x66efbb){const _0x8157c1=_0x35bb4b;super(),this[_0x8157c1(0x445)]=_0x5a4e13,this[_0x8157c1(0x216)]=_0x5a2ee8,this[_0x8157c1(0x1d3)]=_0x66efbb,g(this,_0x8157c1(0x44c),new i[(_0x8157c1(0x3a3))](null)),g(this,_0x8157c1(0x38f),new i[(_0x8157c1(0x27e))]()),g(this,'unitInfo$',this[_0x8157c1(0x44c)][_0x8157c1(0x3b8)]()),g(this,_0x8157c1(0x397),this['_unitLoaded$'][_0x8157c1(0x3b8)]());}[_0x35bb4b(0x2c9)](){const _0x5de65d=_0x35bb4b;super[_0x5de65d(0x2c9)](),this[_0x5de65d(0x38f)][_0x5de65d(0x1f7)](),this[_0x5de65d(0x44c)][_0x5de65d(0x1f7)]();}async[_0x35bb4b(0x26a)](_0x47b52c,_0x2aecb0,_0x1df18b){const _0x4e3125=_0x35bb4b;this['_unitInfo$']['next']({'unitId':_0x47b52c,'type':_0x2aecb0});let _0x4c7cac=null;switch(_0x2aecb0){case t['UniverInstanceType'][_0x4e3125(0x299)]:_0x4c7cac=await this[_0x4e3125(0x216)]['loadSheet'](_0x47b52c,_0x1df18b);break;case t[_0x4e3125(0x36f)][_0x4e3125(0x207)]:_0x4c7cac=await this[_0x4e3125(0x216)][_0x4e3125(0x1c2)](_0x47b52c,_0x1df18b);break;case t[_0x4e3125(0x36f)][_0x4e3125(0x465)]:_0x4c7cac=await this['_snapshotService'][_0x4e3125(0x314)](_0x47b52c,_0x1df18b);break;case t[_0x4e3125(0x36f)][_0x4e3125(0x1ad)]:_0x4c7cac=await this['_snapshotService'][_0x4e3125(0x441)](_0x47b52c,_0x1df18b);break;case t[_0x4e3125(0x36f)][_0x4e3125(0x17e)]:_0x4c7cac=await this[_0x4e3125(0x216)][_0x4e3125(0x229)](_0x47b52c,_0x1df18b);break;default:this['_logService'][_0x4e3125(0x23f)](_0x4e3125(0x45a),_0x4e3125(0x1f6));break;}return _0x4c7cac&&this[_0x4e3125(0x38f)]['next'](_0x4c7cac),_0x4c7cac;}async[_0x35bb4b(0x403)](_0x2c8f7d,_0x39271a,_0x412a2f){const _0x34ef8b=_0x35bb4b;var _0x434c88;this[_0x34ef8b(0x44c)][_0x34ef8b(0x291)]({'unitId':_0x2c8f7d,'type':_0x39271a,'subUnitId':_0x412a2f});let _0x27741d=0x0,_0x22743e=await((_0x434c88=this[_0x34ef8b(0x1d3)])==null?void 0x0:_0x434c88['loadOfflineData'](_0x2c8f7d));return _0x22743e&&(_0x22743e[_0x34ef8b(0x3e6)]||_0x22743e[_0x34ef8b(0x2de)]['length']!==0x0)&&(_0x27741d=_0x22743e[_0x34ef8b(0x347)]),_0x27741d===0x0&&this[_0x34ef8b(0x445)]['debug'](_0x34ef8b(0x45a),_0x34ef8b(0x232)),this[_0x34ef8b(0x26a)](_0x2c8f7d,_0x39271a,_0x27741d);}};q=y([v(0x0,t[_0x35bb4b(0x1d7)]),v(0x1,(0x0,t[_0x35bb4b(0x48e)])(e['SnapshotService'])),v(0x2,(0x0,t['Optional'])(S))],q);let J=class{constructor(_0x51e12e,_0x2a13c7,_0x2ee748){const _0x1808fe=_0x35bb4b;this[_0x1808fe(0x2b3)]=_0x51e12e,this[_0x1808fe(0x3ec)]=_0x2a13c7,this[_0x1808fe(0x25a)]=_0x2ee748,g(this,_0x1808fe(0x2eb),0x0),g(this,_0x1808fe(0x40c),new i[(_0x1808fe(0x27e))]()),g(this,_0x1808fe(0x1c3),this['_change$']),g(this,_0x1808fe(0x1a1),new Map());}[_0x35bb4b(0x389)](_0x2b6da5){const _0x286faa=_0x35bb4b;this['_waitCount']=_0x2b6da5,this[_0x286faa(0x40c)][_0x286faa(0x291)](_0x2b6da5);}[_0x35bb4b(0x26e)](_0xc6dd1b,_0x50405c){const _0x569c61=_0x35bb4b;if(_0x50405c===t[_0x569c61(0x18f)][_0x569c61(0x38c)]){let _0x320e84=new Image();return _0x320e84[_0x569c61(0x278)]=_0xc6dd1b,_0x320e84;}return this[_0x569c61(0x1a1)][_0x569c61(0x20e)](_0xc6dd1b);}[_0x35bb4b(0x41b)](_0x721942,_0x2df6c0,_0x1e5e49){const _0x267be5=_0x35bb4b;_0x2df6c0===t[_0x267be5(0x18f)][_0x267be5(0x38c)]||_0x1e5e49==null||this[_0x267be5(0x1a1)][_0x267be5(0x3ac)](_0x721942,_0x1e5e49);}async['getImage'](_0x515046){const _0xd6ba2b=_0x35bb4b;try{let _0x10a16c=this[_0xd6ba2b(0x3d7)](this[_0xd6ba2b(0x1c8)](),''+_0x515046),_0x17b544=(await this[_0xd6ba2b(0x2b3)]['get'](_0x10a16c))['body'];if(_0x17b544[_0xd6ba2b(0x23f)]&&_0x17b544[_0xd6ba2b(0x23f)][_0xd6ba2b(0x1a5)]===a[_0xd6ba2b(0x371)]['OK']){let _0x2b243d=(0x0,t[_0xd6ba2b(0x21b)])(_0x17b544[_0xd6ba2b(0x1be)],this['_getDownloadEndpointURL']());return Promise[_0xd6ba2b(0x415)](_0x2b243d);}return Promise[_0xd6ba2b(0x1a2)](_0x17b544[_0xd6ba2b(0x23f)]);}catch(_0x5092fb){return Promise[_0xd6ba2b(0x1a2)](_0x5092fb);}}async['saveImage'](_0x528cfe){const _0x135ff5=_0x35bb4b;let _0x5e5f2e='';if(!p[_0x135ff5(0x32b)][_0x135ff5(0x492)](_0x528cfe[_0x135ff5(0x435)]))return this['_decreaseWaiting'](),Promise[_0x135ff5(0x1a2)](Error(t['ImageUploadStatusType'][_0x135ff5(0x3a5)]));if(_0x528cfe[_0x135ff5(0x426)]>(0x0,p[_0x135ff5(0x461)])())return this[_0x135ff5(0x3f3)](),Promise[_0x135ff5(0x1a2)](Error(t[_0x135ff5(0x44f)][_0x135ff5(0x270)]));try{let _0x358fc0=new FormData();_0x358fc0[_0x135ff5(0x187)](_0x135ff5(0x3f4),_0x528cfe);let _0x2e1c2e=this[_0x135ff5(0x25a)][_0x135ff5(0x2cc)](),_0xd4bb05=_0x2e1c2e==null?void 0x0:_0x2e1c2e['getUnitId']();if(!_0xd4bb05)throw Error(_0x135ff5(0x488));let _0xeadc79=this[_0x135ff5(0x3cc)]()+'?size='+_0x528cfe['size'][_0x135ff5(0x351)]()+_0x135ff5(0x474)+a[_0x135ff5(0x24c)][_0x135ff5(0x405)]+_0x135ff5(0x1f5)+encodeURIComponent(_0xd4bb05),_0xb7542e={'body':_0x358fc0},_0x24695b=(await this[_0x135ff5(0x2b3)]['post'](_0xeadc79,_0xb7542e))[_0x135ff5(0x46f)];if(typeof _0x24695b[_0x135ff5(0x35b)]!=_0x135ff5(0x434))return this['_decreaseWaiting'](),Promise['reject'](Error(t['ImageUploadStatusType'][_0x135ff5(0x490)]));_0x5e5f2e=_0x24695b[_0x135ff5(0x35b)];}catch{return this[_0x135ff5(0x3f3)](),Promise['reject'](Error(t[_0x135ff5(0x44f)]['ERROR_IMAGE']));}return new Promise((_0x119e53,_0x8fe34c)=>{const _0xc7bda0=_0x135ff5;let _0x27de31=new FileReader();_0x27de31['readAsDataURL'](_0x528cfe),_0x27de31[_0xc7bda0(0x327)]=_0x2a1ae7=>{const _0x151c56=_0xc7bda0;var _0x6cd98e;let _0x12617e=(_0x6cd98e=_0x2a1ae7[_0x151c56(0x1e5)])==null?void 0x0:_0x6cd98e[_0x151c56(0x3bb)];if(_0x12617e==null){this[_0x151c56(0x3f3)](),_0x8fe34c(Error(t[_0x151c56(0x44f)][_0x151c56(0x490)]));return;}_0x119e53({'imageId':(0x0,t[_0x151c56(0x29a)])(0x6),'imageSourceType':t[_0x151c56(0x18f)][_0x151c56(0x16c)],'source':_0x5e5f2e,'base64Cache':_0x12617e,'status':t[_0x151c56(0x44f)][_0x151c56(0x21e)]}),this['_decreaseWaiting']();};});}[_0x35bb4b(0x3cc)](){const _0xad4bc8=_0x35bb4b;var _0x6a4095;let _0x51f675=this['_configService'][_0xad4bc8(0x1bf)](m);return(_0x6a4095=_0x51f675==null?void 0x0:_0x51f675[_0xad4bc8(0x203)])==null?_0xad4bc8(0x3e2):_0x6a4095;}[_0x35bb4b(0x1c8)](){const _0xb4508=_0x35bb4b;var _0x26e8b4;let _0x368254=this[_0xb4508(0x3ec)]['getConfig'](m);return(_0x26e8b4=_0x368254==null?void 0x0:_0x368254[_0xb4508(0x258)])==null?_0xb4508(0x2d1):_0x26e8b4;}[_0x35bb4b(0x31d)](){const _0x1a48f1=_0x35bb4b;var _0x37b8c8;let _0x52399f=this[_0x1a48f1(0x3ec)][_0x1a48f1(0x1bf)](m);return(_0x37b8c8=_0x52399f==null?void 0x0:_0x52399f[_0x1a48f1(0x45c)])==null?location[_0x1a48f1(0x2df)]:_0x37b8c8;}[_0x35bb4b(0x3d7)](_0xf793b1,_0x53211f){const _0x12fdf1=_0x35bb4b;return _0xf793b1[_0x12fdf1(0x1c7)](_0x12fdf1(0x391),_0x53211f);}[_0x35bb4b(0x3f3)](){const _0x40fec8=_0x35bb4b;--this[_0x40fec8(0x2eb)],this[_0x40fec8(0x40c)][_0x40fec8(0x291)](this['_waitCount']);}};J=y([v(0x0,(0x0,t['Inject'])(l[_0x35bb4b(0x338)])),v(0x1,t['IConfigService']),v(0x2,(0x0,t[_0x35bb4b(0x48e)])(t['IUniverInstanceService']))],J);let Y=class{constructor(_0x1476dc,_0x128c86){const _0x160e35=_0x35bb4b;this[_0x160e35(0x3ec)]=_0x1476dc,this[_0x160e35(0x37b)]=_0x128c86;}[_0x35bb4b(0x46a)](){const _0x581367=_0x35bb4b;var _0x2dd99d;let _0x4712bc=this[_0x581367(0x3ec)][_0x581367(0x1bf)](m);return(_0x2dd99d=_0x4712bc==null?void 0x0:_0x4712bc['authzUrl'])==null?_0x581367(0x452):_0x2dd99d;}async[_0x35bb4b(0x233)](_0x1a020a){const _0x9754fd=_0x35bb4b;let _0x532af2=this['_getAPIPrefixPath']()+_0x9754fd(0x448);return{'list':[{'title':_0x9754fd(0x27c),'mentions':(await this[_0x9754fd(0x37b)][_0x9754fd(0x20e)](_0x532af2,{'params':{'objectID':_0x1a020a[_0x9754fd(0x2a8)],'unitID':_0x1a020a[_0x9754fd(0x2a8)]}}))[_0x9754fd(0x46f)][_0x9754fd(0x427)][_0x9754fd(0x30d)](_0x178ada=>({'objectId':_0x178ada['id'],'name':_0x178ada[_0x9754fd(0x2da)][_0x9754fd(0x2c7)],'metadata':{'icon':_0x178ada[_0x9754fd(0x2da)][_0x9754fd(0x209)]},'label':_0x178ada[_0x9754fd(0x2da)][_0x9754fd(0x2c7)],'objectType':t[_0x9754fd(0x1f3)]['PERSON']})),'metadata':{},'type':t[_0x9754fd(0x1f3)]['PERSON']}]};}};Y=y([v(0x0,(0x0,t[_0x35bb4b(0x48e)])(t[_0x35bb4b(0x340)])),v(0x1,(0x0,t['Inject'])(l['HTTPService']))],Y);let X=class extends t['RxDisposable']{constructor(_0xdff6d,_0x576bcc,_0x5655f5,_0x4ef6fd,_0x5a7be5){const _0x55937a=_0x35bb4b;super(),this[_0x55937a(0x19a)]=_0xdff6d,this[_0x55937a(0x25a)]=_0x576bcc,this[_0x55937a(0x1b8)]=_0x5655f5,this[_0x55937a(0x22c)]=_0x4ef6fd,this[_0x55937a(0x1da)]=_0x5a7be5,this[_0x55937a(0x1f1)](),this[_0x55937a(0x30b)]();}[_0x35bb4b(0x30b)](){const _0x1a7b74=_0x35bb4b;let _0xc8ac23=async _0xf6a2d5=>{const _0x1ca64c=_0x5a3b;(await this[_0x1ca64c(0x22c)][_0x1ca64c(0x239)](_0xf6a2d5))[_0x1ca64c(0x35c)][_0x1ca64c(0x481)]((0x0,s[_0x1ca64c(0x45e)])(_0x360c98=>_0x360c98[_0x1ca64c(0x44a)]===e[_0x1ca64c(0x383)]['SHOULD_CLOSE_CONN']),(0x0,s[_0x1ca64c(0x21d)])(this[_0x1ca64c(0x316)]))[_0x1ca64c(0x29b)](_0x136586=>{const _0x375e6f=_0x1ca64c;let {reason:_0x235670}=_0x136586[_0x375e6f(0x36a)];this[_0x375e6f(0x1da)][_0x375e6f(0x328)]({'id':_0x375e6f(0x394),'data':_0x235670}),this[_0x375e6f(0x1b8)][_0x375e6f(0x274)](new r['WorkbookEditablePermission'](_0xf6a2d5)['id'],!0x1),this[_0x375e6f(0x22c)][_0x375e6f(0x3cf)](_0xf6a2d5);});};(0x0,i[_0x1a7b74(0x3f6)])(this['_univerInstanceService']['getTypeOfUnitAdded$'](t['UniverInstanceType']['UNIVER_SHEET']),this[_0x1a7b74(0x25a)]['getTypeOfUnitAdded$'](t[_0x1a7b74(0x36f)][_0x1a7b74(0x207)]),this[_0x1a7b74(0x25a)][_0x1a7b74(0x1e3)](t[_0x1a7b74(0x36f)]['UNIVER_BOARD']),this[_0x1a7b74(0x25a)][_0x1a7b74(0x1e3)](t[_0x1a7b74(0x36f)][_0x1a7b74(0x17e)]))[_0x1a7b74(0x481)]((0x0,s[_0x1a7b74(0x30d)])(_0x1bdfa2=>_0x1bdfa2[_0x1a7b74(0x2ca)]['getUnitId']()),(0x0,s[_0x1a7b74(0x45e)])(_0x131248=>!(0x0,t[_0x1a7b74(0x280)])(_0x131248)),(0x0,s[_0x1a7b74(0x21d)])(this[_0x1a7b74(0x316)]))[_0x1a7b74(0x29b)](_0x6b1231=>{_0xc8ac23(_0x6b1231);});}[_0x35bb4b(0x1f1)](){const _0x122d04=_0x35bb4b;let _0x5dcbd1=async _0x3d1411=>{const _0x296fc2=_0x5a3b;let _0xb3e7bf=await this[_0x296fc2(0x22c)][_0x296fc2(0x239)](_0x3d1411),_0x339c92=this[_0x296fc2(0x19a)][_0x296fc2(0x20e)](r[_0x296fc2(0x47a)]);_0xb3e7bf[_0x296fc2(0x35c)]['pipe']((0x0,s[_0x296fc2(0x45e)])(_0x5b77b8=>_0x5b77b8[_0x296fc2(0x44a)]===e[_0x296fc2(0x383)][_0x296fc2(0x174)]),(0x0,s[_0x296fc2(0x21d)])(this[_0x296fc2(0x316)]))[_0x296fc2(0x29b)](_0x45d134=>{const _0x276fa8=_0x296fc2;let {objectId:_0x317eb4}=_0x45d134['data'];_0x317eb4===_0x3d1411?_0x339c92[_0x276fa8(0x19b)](_0x3d1411):_0x339c92[_0x276fa8(0x284)](_0x3d1411,_0x317eb4);});};(0x0,i[_0x122d04(0x3f6)])(this[_0x122d04(0x25a)]['getTypeOfUnitAdded$'](t[_0x122d04(0x36f)][_0x122d04(0x299)]))[_0x122d04(0x481)]((0x0,s['map'])(_0x2cc908=>_0x2cc908['unit'][_0x122d04(0x1b1)]()),(0x0,s[_0x122d04(0x45e)])(_0x1e5085=>!(0x0,t['isInternalEditorID'])(_0x1e5085)),(0x0,s[_0x122d04(0x21d)])(this[_0x122d04(0x316)]))['subscribe'](_0x584085=>{_0x5dcbd1(_0x584085);});}};X=y([v(0x0,(0x0,t[_0x35bb4b(0x48e)])(t[_0x35bb4b(0x413)])),v(0x1,t[_0x35bb4b(0x1ba)]),v(0x2,t[_0x35bb4b(0x1fa)]),v(0x3,(0x0,t[_0x35bb4b(0x48e)])(V)),v(0x4,(0x0,t[_0x35bb4b(0x48e)])(_))],X);let Z=class{constructor(_0x55add0,_0x1a7220){const _0xa1c3c0=_0x35bb4b;this[_0xa1c3c0(0x3ec)]=_0x55add0,this[_0xa1c3c0(0x2b3)]=_0x1a7220;}async[_0x35bb4b(0x214)](_0x185c12,_0x11cd77){const _0x2d1f5e=_0x35bb4b;var _0x1ef298;let {unitID:_0x4733b4,type:_0x4b533d,revision:_0x4c0b3d=0x0}=_0x11cd77,_0x106e1e=this[_0x2d1f5e(0x404)]()+'/'+_0x4b533d+_0x2d1f5e(0x225)+_0x4733b4+_0x2d1f5e(0x2bc)+_0x4c0b3d,_0x37230b=(await this[_0x2d1f5e(0x2b3)]['get'](_0x106e1e))[_0x2d1f5e(0x46f)],_0x36ae3b=(_0x1ef298=_0x37230b['snapshot'])==null?void 0x0:_0x1ef298[_0x2d1f5e(0x3ae)];if(_0x36ae3b){let _0x32e79f=_0x36ae3b==null?void 0x0:_0x36ae3b['originalMeta'];_0x36ae3b[_0x2d1f5e(0x228)]=e[_0x2d1f5e(0x460)]['encode']((0x0,e[_0x2d1f5e(0x46c)])(_0x32e79f)),Object[_0x2d1f5e(0x46d)](_0x36ae3b[_0x2d1f5e(0x1a3)])[_0x2d1f5e(0x2db)](([,_0x5a2403])=>{const _0xbf9d3d=_0x2d1f5e;let _0x1018c9=_0x5a2403[_0xbf9d3d(0x228)];_0x5a2403[_0xbf9d3d(0x228)]=e[_0xbf9d3d(0x460)][_0xbf9d3d(0x2ee)]((0x0,e[_0xbf9d3d(0x46c)])(_0x1018c9));});}return _0x37230b;}async[_0x35bb4b(0x40d)](_0xb2797d,_0x4f7634){const _0x1f7eab=_0x35bb4b;let {unitID:_0xc90c8c,type:_0x1fe5ec,blockID:_0x5cb781}=_0x4f7634,_0x47b585=this['_getAPIPrefix']()+'/'+_0x1fe5ec+'/unit/'+_0xc90c8c+_0x1f7eab(0x1ce)+_0x5cb781;return(await this[_0x1f7eab(0x2b3)][_0x1f7eab(0x20e)](_0x47b585))[_0x1f7eab(0x46f)];}async[_0x35bb4b(0x400)](_0x343882,_0x26fba5){const _0x1cfaf2=_0x35bb4b;let {unitID:_0x3271f8,type:_0x15b0b5,blockID:_0xfac719}=_0x26fba5,_0x185259=this[_0x1cfaf2(0x18b)]()+_0x1cfaf2(0x1ce)+_0x15b0b5+'/unit/'+_0x3271f8+_0x1cfaf2(0x1ce)+_0xfac719;return(await this[_0x1cfaf2(0x2b3)][_0x1cfaf2(0x20e)](_0x185259))[_0x1cfaf2(0x46f)];}async[_0x35bb4b(0x483)](_0x12c7a1,_0x43a9f9){const _0x57e8ac=_0x35bb4b;let {unitID:_0x57592b,type:_0x8023b5,from:_0x4094c8,to:_0x24f254}=_0x43a9f9,_0x5e33fa=this['_getAPIPrefix']()+'/'+_0x8023b5+'/unit/'+_0x57592b+'/fetchmissing?from='+_0x4094c8+_0x57e8ac(0x3b1)+_0x24f254;return(await this['_httpService'][_0x57e8ac(0x20e)](_0x5e33fa))['body'];}[_0x35bb4b(0x404)](){const _0x1f0b10=_0x35bb4b;var _0x48cbce;return(_0x48cbce=this[_0x1f0b10(0x3ec)][_0x1f0b10(0x1bf)](_0x1f0b10(0x35a)))==null?this[_0x1f0b10(0x18b)]():_0x48cbce;}[_0x35bb4b(0x18b)](){const _0x16447d=_0x35bb4b;var _0x449247;let _0x389ce2=this[_0x16447d(0x3ec)][_0x16447d(0x1bf)](m);return(_0x449247=_0x389ce2==null?void 0x0:_0x389ce2[_0x16447d(0x250)])==null?_0x16447d(0x463):_0x449247;}async['getResourcesRequest'](_0x1fe248,_0x11d8c1){const _0x49957c=_0x35bb4b;let _0x27366c=_0x49957c(0x1c5)+_0x11d8c1[_0x49957c(0x435)]+_0x49957c(0x225)+_0x11d8c1['unitID']+'/resources';return(await this[_0x49957c(0x2b3)][_0x49957c(0x20e)](_0x27366c,{'params':{'resourceId':JSON['stringify'](_0x11d8c1[_0x49957c(0x3ed)])}}))[_0x49957c(0x46f)];}[_0x35bb4b(0x27b)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['updateSnapshot'](){const _0x55210d=_0x35bb4b;throw Error(_0x55210d(0x1df));}[_0x35bb4b(0x2b7)](){const _0x258718=_0x35bb4b;throw Error(_0x258718(0x1df));}[_0x35bb4b(0x1fc)](){const _0x40bb69=_0x35bb4b;throw Error(_0x40bb69(0x1df));}[_0x35bb4b(0x255)](){const _0x13f1d7=_0x35bb4b;throw Error(_0x13f1d7(0x1df));}[_0x35bb4b(0x47f)](){const _0x52b9f0=_0x35bb4b;throw Error(_0x52b9f0(0x1df));}};Z=y([v(0x0,t[_0x35bb4b(0x340)]),v(0x1,(0x0,t['Inject'])(l[_0x35bb4b(0x338)]))],Z);let Q=class extends t['LocalUndoRedoService']{constructor(_0x52f6aa,_0x481f63,_0xd95ef0,_0x2d485f,_0x345668){const _0x53f591=_0x35bb4b;super(_0x52f6aa,_0x481f63,_0xd95ef0),this[_0x53f591(0x217)]=_0x2d485f,this[_0x53f591(0x445)]=_0x345668;}[_0x35bb4b(0x268)](_0x5cf399,_0x28129c){const _0x1cfd1e=_0x35bb4b;let _0x587cbb=this[_0x1cfd1e(0x331)](_0x5cf399);if(_0x587cbb)try{let _0x440c74=this[_0x1cfd1e(0x28f)](_0x587cbb,_0x28129c);this['_substituteUndoStack'](_0x5cf399,_0x440c74);}catch(_0x45f64d){this[_0x1cfd1e(0x445)][_0x1cfd1e(0x23f)](_0x1cfd1e(0x382),_0x45f64d),this[_0x1cfd1e(0x1bc)](_0x5cf399);}let _0x130587=this[_0x1cfd1e(0x183)](_0x5cf399);if(_0x130587)try{let _0x263252=this['_transformStack'](_0x130587,_0x28129c);this[_0x1cfd1e(0x3ad)](_0x5cf399,_0x263252);}catch(_0x6dd07e){this[_0x1cfd1e(0x445)][_0x1cfd1e(0x23f)](_0x6dd07e),this[_0x1cfd1e(0x1d6)](_0x5cf399);}}[_0x35bb4b(0x1bc)](_0x388f13){const _0x1f79d4=_0x35bb4b;let _0x229be3=this[_0x1f79d4(0x331)](_0x388f13);_0x229be3&&(_0x229be3[_0x1f79d4(0x17d)]=0x0,this[_0x1f79d4(0x205)]());}[_0x35bb4b(0x1d6)](_0x23fdd7){const _0x4a5935=_0x35bb4b;let _0x5d818e=this[_0x4a5935(0x183)](_0x23fdd7);_0x5d818e&&(_0x5d818e[_0x4a5935(0x17d)]=0x0,this[_0x4a5935(0x205)]());}[_0x35bb4b(0x32c)](_0x3cf230,_0x1dbff4){const _0x20e3a3=_0x35bb4b;this['_undoStacks'][_0x20e3a3(0x3ac)](_0x3cf230,_0x1dbff4),this[_0x20e3a3(0x205)]();}[_0x35bb4b(0x3ad)](_0xb06a42,_0x1bd252){this['_redoStacks']['set'](_0xb06a42,_0x1bd252),this['_updateStatus']();}['_transformStack'](_0x38c608,_0x1ae059){const _0x5098dd=_0x35bb4b;let _0x395479=[],_0x470d15=_0x1ae059,_0x4cd414=_0x1ae059;for(let _0x274fcd=_0x38c608['length']-0x1;_0x274fcd>=0x0;_0x274fcd--){let {unitID:_0x18595f,undoMutations:_0x5e32a6,redoMutations:_0x7b392f}=_0x38c608[_0x274fcd],_0x2c8157=this[_0x5098dd(0x217)]['transformMutationsWithChangeset'](_0x470d15,_0x5e32a6),_0x49b2a7=this['_transformService'][_0x5098dd(0x36c)](_0x4cd414,_0x7b392f);if((0x0,e[_0x5098dd(0x411)])(_0x2c8157)||(0x0,e[_0x5098dd(0x411)])(_0x49b2a7)){this[_0x5098dd(0x445)]['error'](_0x5098dd(0x382),'transformStack\x20failed!',_0x2c8157,_0x49b2a7);break;}_0x470d15=_0x2c8157[_0x5098dd(0x1d2)],_0x4cd414=_0x49b2a7[_0x5098dd(0x1d2)],_0x395479['push']({'unitID':_0x18595f,'undoMutations':_0x2c8157[_0x5098dd(0x28e)],'redoMutations':_0x49b2a7[_0x5098dd(0x28e)]});}return _0x395479[_0x5098dd(0x42a)]();}};Q=y([v(0x0,t[_0x35bb4b(0x1ba)]),v(0x1,t[_0x35bb4b(0x224)]),v(0x2,t['IContextService']),v(0x3,e[_0x35bb4b(0x41f)]),v(0x4,t[_0x35bb4b(0x1d7)])],Q);let $=class extends t[_0x35bb4b(0x380)]{constructor(_0x4fbd84=ee,_0x2f8100,_0x418e38,_0x60ab2c){const _0x1d4e45=_0x35bb4b;super(),this[_0x1d4e45(0x3d5)]=_0x4fbd84,this[_0x1d4e45(0x445)]=_0x2f8100,this[_0x1d4e45(0x19a)]=_0x418e38,this[_0x1d4e45(0x3ec)]=_0x60ab2c;let {..._0x4eb890}=(0x0,t['merge'])({},ee,this[_0x1d4e45(0x3d5)]);if(!_0x4eb890['socketService'])throw Error(_0x1d4e45(0x408));this[_0x1d4e45(0x3d5)]=_0x4eb890,this[_0x1d4e45(0x3ec)][_0x1d4e45(0x26f)](m,_0x4eb890);}[_0x35bb4b(0x449)](){const _0x381649=_0x35bb4b;this[_0x381649(0x28a)](),this[_0x381649(0x417)]();}['_registerDependencies'](){const _0x4e74f9=_0x35bb4b;var _0x9cc51d,_0xedd4ed;this['_injector']['has'](t[_0x4e74f9(0x3c9)])&&this[_0x4e74f9(0x445)][_0x4e74f9(0x23f)](_0x4e74f9(0x43c),_0x4e74f9(0x2be));let _0x3448c7=(0x0,t[_0x4e74f9(0x190)])([[t[_0x4e74f9(0x3c9)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[C],[W],[K],[se],[X],[_],[q],[qe,{'useClass':this[_0x4e74f9(0x3d5)]['socketService']}],[e['ISnapshotServerService'],{'useClass':Z}],[t[_0x4e74f9(0x24f)],{'useClass':G}],[t[_0x4e74f9(0x1af)],{'useClass':J}],[rt,{'useClass':U}],[t['IMentionIOService'],{'useClass':Y}],[H],[tt]],(_0x9cc51d=this[_0x4e74f9(0x3d5)])==null?void 0x0:_0x9cc51d[_0x4e74f9(0x221)]);if(!((_0xedd4ed=this[_0x4e74f9(0x3d5)])!=null&&_0xedd4ed['enableSingleActiveInstanceLock'])){let _0x5ea013=_0x3448c7['findIndex'](([_0x3bd038])=>_0x3bd038===w);_0x5ea013!==-0x1&&_0x3448c7['splice'](_0x5ea013,0x1);}(0x0,t[_0x4e74f9(0x19c)])(this['_injector'],_0x3448c7);}[_0x35bb4b(0x417)](){const _0x929f67=_0x35bb4b;var _0xd82a05,_0x1c1139;if(this[_0x929f67(0x19a)]['get'](l['HTTPService'])[_0x929f67(0x451)]({'priority':0x14,'interceptor':(0x0,l[_0x929f67(0x42b)])({'maxParallel':0x6})}),!((_0xd82a05=this[_0x929f67(0x3d5)])!=null&&_0xd82a05['enableOfflineEditing'])){var _0x539891;(_0x539891=this['_injector'][_0x929f67(0x20e)](S,t[_0x929f67(0x1f0)][_0x929f67(0x319)]))==null||_0x539891[_0x929f67(0x40e)]();}(_0x1c1139=this[_0x929f67(0x3d5)])!=null&&_0x1c1139[_0x929f67(0x353)]&&(0x0,t[_0x929f67(0x2ed)])(this[_0x929f67(0x19a)],[[W]]),(0x0,t[_0x929f67(0x2ed)])(this['_injector'],[[K],[H],[X]]);}};g($,_0x35bb4b(0x26c),_0x35bb4b(0x1c1)),g($,_0x35bb4b(0x1a8),$e),g($,_0x35bb4b(0x259),et),$=y([(0x0,t[_0x35bb4b(0x29d)])(u[_0x35bb4b(0x406)],e['UniverCollaborationPlugin'],l[_0x35bb4b(0x44e)]),v(0x1,t[_0x35bb4b(0x1d7)]),v(0x2,(0x0,t['Inject'])(t[_0x35bb4b(0x413)])),v(0x3,t['IConfigService'])],$),exports[_0x35bb4b(0x359)]=nt,Object[_0x35bb4b(0x219)](exports,_0x35bb4b(0x307),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x35bb4b(0x219)](exports,_0x35bb4b(0x276),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x35bb4b(0x219)](exports,_0x35bb4b(0x2ae),{'enumerable':!0x0,'get':function(){return j;}}),Object[_0x35bb4b(0x219)](exports,_0x35bb4b(0x188),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x35bb4b(0x219)](exports,'BoardCollaborationEntity',{'enumerable':!0x0,'get':function(){return B;}}),exports[_0x35bb4b(0x3e8)]=m,Object[_0x35bb4b(0x219)](exports,_0x35bb4b(0x48a),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x35bb4b(0x219)](exports,'CollaborationController',{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x35bb4b(0x219)](exports,_0x35bb4b(0x414),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x35bb4b(0x219)](exports,'CollaborationImageIoService',{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x35bb4b(0x219)](exports,_0x35bb4b(0x173),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x35bb4b(0x219)](exports,_0x35bb4b(0x2e5),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x35bb4b(0x219)](exports,_0x35bb4b(0x25f),{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x35bb4b(0x201)]=Be,exports[_0x35bb4b(0x47e)]=oe,exports[_0x35bb4b(0x235)]=_,Object[_0x35bb4b(0x219)](exports,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x35bb4b(0x38a)]=se,Object[_0x35bb4b(0x219)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return M;}}),exports['DEFAULT_COLLAB_WEB_SOCKET_URL']=te,exports[_0x35bb4b(0x2d9)]=_0x35bb4b(0x1fe),exports['DEFAULT_WS_SESSION_TICKET_URL']='/universer-api/user/session-ticket',Object['defineProperty'](exports,_0x35bb4b(0x252),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x35bb4b(0x219)](exports,_0x35bb4b(0x287),{'enumerable':!0x0,'get':function(){return I;}}),Object['defineProperty'](exports,_0x35bb4b(0x1ae),{'enumerable':!0x0,'get':function(){return P;}}),exports['HEARTBEAT_INTERVAL_KEY']=_0x35bb4b(0x1c9),exports[_0x35bb4b(0x3d8)]='HEARTBEAT_TIMEOUT',exports[_0x35bb4b(0x432)]=rt,exports[_0x35bb4b(0x264)]=Xe,exports[_0x35bb4b(0x196)]=qe,exports[_0x35bb4b(0x23c)]=S,exports[_0x35bb4b(0x247)]=We,exports[_0x35bb4b(0x3f7)]=w,exports[_0x35bb4b(0x16e)]=0x3e8,exports[_0x35bb4b(0x2c4)]=_0x35bb4b(0x16e),Object['defineProperty'](exports,_0x35bb4b(0x210),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x35bb4b(0x219)](exports,_0x35bb4b(0x470),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x35bb4b(0x219)](exports,_0x35bb4b(0x370),{'enumerable':!0x0,'get':function(){return N;}}),Object[_0x35bb4b(0x219)](exports,_0x35bb4b(0x1dd),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x35bb4b(0x211)]=_0x35bb4b(0x31f),exports['RETRY_CONNECTING_MAX_COUNT_KEY']='RETRY_CONNECTING_MAX_COUNT',exports[_0x35bb4b(0x16f)]=ve,Object['defineProperty'](exports,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return R;}}),Object['defineProperty'](exports,_0x35bb4b(0x1f2),{'enumerable':!0x0,'get':function(){return C;}}),Object[_0x35bb4b(0x219)](exports,_0x35bb4b(0x27d),{'enumerable':!0x0,'get':function(){return z;}}),Object['defineProperty'](exports,_0x35bb4b(0x27a),{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,'SyncedState',{'enumerable':!0x0,'get':function(){return O;}}),exports['UnitStatus']=Se,Object['defineProperty'](exports,_0x35bb4b(0x491),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x35bb4b(0x222)]=Ze,exports['deserializeToCombResponse']=Ge,exports['getLocalCacheKey']=be,exports[_0x35bb4b(0x2b8)]=Ke;
|