@univerjs-pro/collaboration-client 1.0.0-alpha.7 → 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/collaboration-state.d.ts +3 -4
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +8 -5
- package/lib/types/index.d.ts +2 -3
- package/lib/types/services/attachment-remote/attachment-io.service.d.ts +9 -4
- package/lib/types/services/attachment-remote/types.d.ts +2 -19
- package/lib/types/services/member/member.service.d.ts +2 -15
- 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 -14
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4c0aa4=_0x290d;(function(_0x50a2c5,_0x5a60e1){const _0x218a80=_0x290d,_0x2b97ab=_0x50a2c5();while(!![]){try{const _0x31600b=parseInt(_0x218a80(0x1c7))/0x1*(parseInt(_0x218a80(0x251))/0x2)+-parseInt(_0x218a80(0x413))/0x3+-parseInt(_0x218a80(0x22a))/0x4+parseInt(_0x218a80(0x241))/0x5*(parseInt(_0x218a80(0x2bb))/0x6)+parseInt(_0x218a80(0x36a))/0x7*(parseInt(_0x218a80(0x30f))/0x8)+-parseInt(_0x218a80(0x2ff))/0x9+parseInt(_0x218a80(0x3ae))/0xa*(parseInt(_0x218a80(0x2c2))/0xb);if(_0x31600b===_0x5a60e1)break;else _0x2b97ab['push'](_0x2b97ab['shift']());}catch(_0x4f5045){_0x2b97ab['push'](_0x2b97ab['shift']());}}}(_0x18d9,0x3196e),Object[_0x4c0aa4(0x3cd)](exports,Symbol[_0x4c0aa4(0x473)],{'value':_0x4c0aa4(0x448)}));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=_0x4c0aa4(0x1a9),ee={},te='ws://127.0.0.1:8000/universer-api/comb/connect',ne=0x4e20;function re(_0x496e8d){const _0x261951=_0x4c0aa4;return JSON['stringify'](_0x496e8d)[_0x261951(0x1c9)];}function h(_0x42c845){'@babel/helpers - typeof';const _0x4a810e=_0x4c0aa4;return h=typeof Symbol==_0x4a810e(0x2f2)&&typeof Symbol[_0x4a810e(0x377)]==_0x4a810e(0x34e)?function(_0x45d33e){return typeof _0x45d33e;}:function(_0x9d3865){const _0xc31e35=_0x4a810e;return _0x9d3865&&typeof Symbol==_0xc31e35(0x2f2)&&_0x9d3865['constructor']===Symbol&&_0x9d3865!==Symbol['prototype']?_0xc31e35(0x34e):typeof _0x9d3865;},h(_0x42c845);}function ie(_0x321abf,_0x2674f5){const _0x50b566=_0x4c0aa4;if(h(_0x321abf)!=_0x50b566(0x2b2)||!_0x321abf)return _0x321abf;var _0x2109c2=_0x321abf[Symbol['toPrimitive']];if(_0x2109c2!==void 0x0){var _0xdb40a=_0x2109c2[_0x50b566(0x475)](_0x321abf,_0x2674f5||_0x50b566(0x1c6));if(h(_0xdb40a)!=_0x50b566(0x2b2))return _0xdb40a;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2674f5===_0x50b566(0x478)?String:Number)(_0x321abf);}function ae(_0x44c59b){const _0x5901f4=_0x4c0aa4;var _0x5a7dc7=ie(_0x44c59b,'string');return h(_0x5a7dc7)==_0x5901f4(0x34e)?_0x5a7dc7:_0x5a7dc7+'';}function g(_0x138fd4,_0x38410c,_0x38490d){const _0x12d926=_0x4c0aa4;return(_0x38410c=ae(_0x38410c))in _0x138fd4?Object[_0x12d926(0x3cd)](_0x138fd4,_0x38410c,{'value':_0x38490d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x138fd4[_0x38410c]=_0x38490d,_0x138fd4;}let oe=function(_0x4a02bb){const _0xf88653=_0x4c0aa4;return _0x4a02bb[_0xf88653(0x1e8)]=_0xf88653(0x1e8),_0x4a02bb[_0xf88653(0x43b)]=_0xf88653(0x43b),_0x4a02bb[_0xf88653(0x198)]='CONFLICT',_0x4a02bb[_0xf88653(0x4a1)]=_0xf88653(0x4a1),_0x4a02bb[_0xf88653(0x2ac)]=_0xf88653(0x2ac),_0x4a02bb['SOCKET_FAILED_RETRY']=_0xf88653(0x291),_0x4a02bb[_0xf88653(0x44f)]=_0xf88653(0x44f),_0x4a02bb['SUBMIT_CHANGESET_TIMEOUT']=_0xf88653(0x344),_0x4a02bb;}({});var _=class{constructor(){const _0x231d37=_0x4c0aa4;g(this,_0x231d37(0x1e9),new i[(_0x231d37(0x378))]()),g(this,_0x231d37(0x32b),this[_0x231d37(0x1e9)][_0x231d37(0x421)]());}[_0x4c0aa4(0x40a)](_0x58282f){this['_event$']['next'](_0x58282f);}},se=class{constructor(){const _0x3ee95f=_0x4c0aa4;g(this,'_commentUpdate$',new i['Subject']()),g(this,_0x3ee95f(0x1ed),this[_0x3ee95f(0x3a9)][_0x3ee95f(0x421)]());}[_0x4c0aa4(0x3bc)](_0x41767d){const _0x3dd5ea=_0x4c0aa4;this[_0x3dd5ea(0x3a9)][_0x3dd5ea(0x201)](_0x41767d);}};function v(_0x24bd5d,_0x5dbf11){return function(_0x578522,_0x121c63){_0x5dbf11(_0x578522,_0x121c63,_0x24bd5d);};}function y(_0x35e481,_0x21918a,_0x52087c,_0x2372be){const _0x1274c8=_0x4c0aa4;var _0x3a028a=arguments['length'],_0x33e686=_0x3a028a<0x3?_0x21918a:_0x2372be===null?_0x2372be=Object[_0x1274c8(0x2cf)](_0x21918a,_0x52087c):_0x2372be,_0x279b99;if(typeof Reflect==_0x1274c8(0x2b2)&&typeof Reflect[_0x1274c8(0x187)]=='function')_0x33e686=Reflect['decorate'](_0x35e481,_0x21918a,_0x52087c,_0x2372be);else{for(var _0x52e9a0=_0x35e481['length']-0x1;_0x52e9a0>=0x0;_0x52e9a0--)(_0x279b99=_0x35e481[_0x52e9a0])&&(_0x33e686=(_0x3a028a<0x3?_0x279b99(_0x33e686):_0x3a028a>0x3?_0x279b99(_0x21918a,_0x52087c,_0x33e686):_0x279b99(_0x21918a,_0x52087c))||_0x33e686);}return _0x3a028a>0x3&&_0x33e686&&Object[_0x1274c8(0x3cd)](_0x21918a,_0x52087c,_0x33e686),_0x33e686;}let b=class extends t['Disposable']{constructor(_0xf96e25,_0x11d0e2){const _0x1debc6=_0x4c0aa4;super(),this[_0x1debc6(0x294)]=_0xf96e25,this['_userManagerService']=_0x11d0e2,g(this,_0x1debc6(0x382),new Map()),g(this,'_roomCreated$',new i[(_0x1debc6(0x378))]()),this['disposeWithMe']((0x0,i[_0x1debc6(0x21f)])(this['_univerInstanceService'][_0x1debc6(0x499)](t[_0x1debc6(0x425)][_0x1debc6(0x286)])[_0x1debc6(0x331)]((0x0,s[_0x1debc6(0x1c8)])(_0x16581a=>_0x16581a[_0x1debc6(0x1ef)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](t[_0x1debc6(0x425)]['UNIVER_DOC'])[_0x1debc6(0x331)]((0x0,s['map'])(_0x197eaa=>_0x197eaa[_0x1debc6(0x1ef)]())),this[_0x1debc6(0x294)][_0x1debc6(0x499)](t['UniverInstanceType'][_0x1debc6(0x244)])[_0x1debc6(0x331)]((0x0,s[_0x1debc6(0x1c8)])(_0x3fcfad=>_0x3fcfad[_0x1debc6(0x1ef)]())),this[_0x1debc6(0x294)][_0x1debc6(0x499)](t['UniverInstanceType'][_0x1debc6(0x2d5)])[_0x1debc6(0x331)]((0x0,s['map'])(_0x1832fc=>_0x1832fc[_0x1debc6(0x1ef)]())))[_0x1debc6(0x3a4)](_0x2cd6e8=>this[_0x1debc6(0x367)](_0x2cd6e8)));}[_0x4c0aa4(0x2fe)](_0x26304a){const _0x1e567a=_0x4c0aa4;return this[_0x1e567a(0x382)][_0x1e567a(0x447)](_0x26304a)?(0x0,i['of'])(this[_0x1e567a(0x382)][_0x1e567a(0x3a5)](_0x26304a)):this['_roomCreated$'][_0x1e567a(0x331)]((0x0,s[_0x1e567a(0x1c8)])(_0x56ce77=>{const _0x45f50d=_0x1e567a;if(_0x56ce77===_0x26304a)return this[_0x45f50d(0x382)][_0x45f50d(0x3a5)](_0x56ce77);}));}[_0x4c0aa4(0x487)](_0x4026d4){const _0xd755b=_0x4c0aa4;this[_0xd755b(0x239)][_0xd755b(0x487)](_0x4026d4);}[_0x4c0aa4(0x243)](){const _0x5bf1e8=_0x4c0aa4;return this[_0x5bf1e8(0x239)][_0x5bf1e8(0x243)]();}[_0x4c0aa4(0x18c)](_0x5596f0,_0x4f6bcc){const _0x17964d=_0x4c0aa4;let _0x46ab2e=this[_0x17964d(0x382)]['get'](_0x5596f0);_0x46ab2e||(_0x46ab2e=new ce(),this[_0x17964d(0x382)][_0x17964d(0x3d4)](_0x5596f0,_0x46ab2e),this[_0x17964d(0x482)]['next'](_0x5596f0)),_0x46ab2e[_0x17964d(0x18c)](_0x4f6bcc);}['removeMember'](_0x35eebb,_0x2b785a){const _0x7b3f12=_0x4c0aa4;let _0x168516=this['_roomMembers'][_0x7b3f12(0x3a5)](_0x35eebb);_0x168516&&_0x168516[_0x7b3f12(0x41f)](_0x2b785a);}[_0x4c0aa4(0x3b6)](_0x1f7884){const _0x8e2c05=_0x4c0aa4;return this[_0x8e2c05(0x382)]['get'](_0x1f7884);}[_0x4c0aa4(0x4ac)](_0x1d30ea,_0x4c9d4f){const _0x3be309=_0x4c0aa4;let _0x493b48=this[_0x3be309(0x382)]['get'](_0x1d30ea);if(_0x493b48)return _0x493b48[_0x3be309(0x4ac)](_0x4c9d4f);}['_removeRoom'](_0x47b094){const _0x4b2a8d=_0x4c0aa4;let _0x43c579=this[_0x4b2a8d(0x382)]['get'](_0x47b094);_0x43c579&&(_0x43c579[_0x4b2a8d(0x28d)](),this[_0x4b2a8d(0x382)][_0x4b2a8d(0x24b)](_0x47b094));}[_0x4c0aa4(0x28d)](){const _0x1e2384=_0x4c0aa4;this[_0x1e2384(0x382)]['forEach'](_0x1b2a9e=>_0x1b2a9e[_0x1e2384(0x28d)]()),this[_0x1e2384(0x382)][_0x1e2384(0x26a)](),this[_0x1e2384(0x482)][_0x1e2384(0x470)]();}};b=y([v(0x0,t[_0x4c0aa4(0x31d)]),v(0x1,(0x0,t['Inject'])(t[_0x4c0aa4(0x1c4)]))],b);var ce=class extends t[_0x4c0aa4(0x23f)]{constructor(..._0x139f79){const _0x4368d0=_0x4c0aa4;super(..._0x139f79),g(this,'_members',new Map()),g(this,'_members$',new i[(_0x4368d0(0x20e))](this[_0x4368d0(0x1d0)])),g(this,_0x4368d0(0x431),this['_members$'][_0x4368d0(0x421)]());}['dispose'](){const _0x3943a5=_0x4c0aa4;this[_0x3943a5(0x1d0)][_0x3943a5(0x26a)](),this[_0x3943a5(0x438)][_0x3943a5(0x470)]();}[_0x4c0aa4(0x18c)](_0x4477fe){const _0x5eb60c=_0x4c0aa4;this[_0x5eb60c(0x1d0)]['set'](_0x4477fe['memberID'],_0x4477fe),this['_emitMembers']();}[_0x4c0aa4(0x41f)](_0x25f065){const _0x28a5b3=_0x4c0aa4;this[_0x28a5b3(0x1d0)][_0x28a5b3(0x24b)](_0x25f065),this[_0x28a5b3(0x45b)]();}[_0x4c0aa4(0x4ac)](_0x1b4350){const _0x39a9fc=_0x4c0aa4;return this[_0x39a9fc(0x1d0)][_0x39a9fc(0x3a5)](_0x1b4350);}[_0x4c0aa4(0x4a3)](){const _0x55aa70=_0x4c0aa4;return Array['from'](this[_0x55aa70(0x1d0)][_0x55aa70(0x2e2)]());}['_emitMembers'](){const _0x15e861=_0x4c0aa4;this[_0x15e861(0x438)][_0x15e861(0x201)](this[_0x15e861(0x1d0)]);}};function le(_0x5070e8,_0x24f18d){const _0x4686bf=_0x4c0aa4;if(de(_0x5070e8))return _0x24f18d;if(_0x24f18d['eventID']===e['CollaborationEvent'][_0x4686bf(0x2bf)]){var _0x192c93;let _0x23cb57=ge(_0x5070e8),_0x2f81d2=_0x24f18d;return{..._0x2f81d2,'data':{..._0x2f81d2['data'],'unitID':_0x5070e8[_0x4686bf(0x1cb)][_0x4686bf(0x211)],'unitType':(_0x192c93=_0x5070e8['target'][_0x4686bf(0x430)])==null?_0x2f81d2[_0x4686bf(0x233)]['unitType']:_0x192c93,'changeset':_0x23cb57['toRemote'](_0x2f81d2[_0x4686bf(0x233)][_0x4686bf(0x350)],_e(_0x5070e8))}};}if(_0x24f18d['eventID']===e['CollaborationEvent'][_0x4686bf(0x485)]){var _0x9763bc;let _0x1734bf=_0x24f18d;return{..._0x1734bf,'data':{..._0x1734bf[_0x4686bf(0x233)],'unitID':_0x5070e8[_0x4686bf(0x1cb)][_0x4686bf(0x211)],'unitType':(_0x9763bc=_0x5070e8['target'][_0x4686bf(0x430)])==null?_0x1734bf['data'][_0x4686bf(0x430)]:_0x9763bc}};}return _0x24f18d;}function ue(_0x28ce2f,_0x4f847d){const _0x5dd897=_0x4c0aa4;if(de(_0x28ce2f))return[_0x4f847d];switch(_0x4f847d[_0x5dd897(0x23b)]){case e[_0x5dd897(0x439)][_0x5dd897(0x3e5)]:return[fe(_0x28ce2f,_0x4f847d)];case e[_0x5dd897(0x439)]['PSEUDO_FETCH_MISSING_RESULT']:return[me(_0x28ce2f,_0x4f847d)];case e[_0x5dd897(0x439)][_0x5dd897(0x219)]:return[pe(_0x28ce2f,_0x4f847d)];default:return[_0x4f847d];}}function de(_0x336e7a){const _0x38cdc=_0x4c0aa4;return _0x336e7a[_0x38cdc(0x1cb)][_0x38cdc(0x1dc)]==null&&_0x336e7a[_0x38cdc(0x1cb)][_0x38cdc(0x211)]===_0x336e7a[_0x38cdc(0x255)]&&!_0x336e7a[_0x38cdc(0x350)];}function fe(_0x3e2a38,_0x41bbb1){const _0x146641=_0x4c0aa4;return{..._0x41bbb1,'data':(0x0,e[_0x146641(0x3c8)])(he(_0x3e2a38,(0x0,e[_0x146641(0x4ab)])(_0x41bbb1[_0x146641(0x233)])))};}function pe(_0x3cb8b0,_0x29b9ee){return{..._0x29b9ee,'data':he(_0x3cb8b0,_0x29b9ee['data'])};}function me(_0x279bf5,_0x1a8ffa){const _0x20c130=_0x4c0aa4;let _0x68470b=_0x1a8ffa['data'];return{..._0x1a8ffa,'data':{..._0x68470b,'changesets':_0x68470b[_0x20c130(0x1dd)]['map'](_0x484d3a=>(0x0,e[_0x20c130(0x3c8)])(he(_0x279bf5,(0x0,e[_0x20c130(0x4ab)])(_0x484d3a))))}};}function he(_0x324cf8,_0x909aa7){const _0x43f7b2=_0x4c0aa4;return ge(_0x324cf8)[_0x43f7b2(0x232)](_0x909aa7,_e(_0x324cf8));}function ge(_0xc706aa){const _0x403b0e=_0x4c0aa4;if(!_0xc706aa[_0x403b0e(0x350)])throw Error('COLLABORATION_CHANGESET_TRANSLATION_REQUIRED');return _0xc706aa[_0x403b0e(0x350)];}function _e(_0x2e3d35){const _0x1caf39=_0x4c0aa4;return{'localUnitId':_0x2e3d35[_0x1caf39(0x255)],'unitType':_0x2e3d35['unitType'],'target':_0x2e3d35[_0x1caf39(0x1cb)]};}let ve=function(_0x55c5dd){const _0x4c8e17=_0x4c0aa4;return _0x55c5dd[_0x55c5dd['IDLE']=0x0]='IDLE',_0x55c5dd[_0x55c5dd[_0x4c8e17(0x26e)]=0x1]=_0x4c8e17(0x26e),_0x55c5dd[_0x55c5dd[_0x4c8e17(0x2de)]=0x2]=_0x4c8e17(0x2de),_0x55c5dd[_0x55c5dd[_0x4c8e17(0x3ea)]=0x3]=_0x4c8e17(0x3ea),_0x55c5dd;}({});const ye={[a[_0x4c0aa4(0x3f3)][_0x4c0aa4(0x2bc)]]:_0x4c0aa4(0x2d8),[a[_0x4c0aa4(0x3f3)][_0x4c0aa4(0x27e)]]:'session.room-full',[a[_0x4c0aa4(0x3f3)][_0x4c0aa4(0x30c)]]:'session.room-not-exists',[a[_0x4c0aa4(0x3f3)][_0x4c0aa4(0x29f)]]:'session.room-permission-denied',[a[_0x4c0aa4(0x3f3)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x4c0aa4(0x35a)};let x=class extends t['RxDisposable']{get[_0x4c0aa4(0x21e)](){const _0x2eacf8=_0x4c0aa4;return this[_0x2eacf8(0x357)]['getValue']();}constructor(_0x4931c8,_0x347964,_0x4d0a89,_0x4c22c1,_0x32ce0e,_0x1bb37a,_0x38cb9f,_0x1a66a7){const _0x538553=_0x4c0aa4;super(),this[_0x538553(0x320)]=_0x4931c8,this[_0x538553(0x387)]=_0x4d0a89,this[_0x538553(0x2a2)]=_0x4c22c1,this[_0x538553(0x203)]=_0x32ce0e,this[_0x538553(0x472)]=_0x1bb37a,this[_0x538553(0x34a)]=_0x38cb9f,this[_0x538553(0x2ea)]=_0x1a66a7,g(this,_0x538553(0x357),new i['BehaviorSubject'](0x0)),g(this,_0x538553(0x457),this[_0x538553(0x357)][_0x538553(0x421)]()),g(this,_0x538553(0x1e9),new i[(_0x538553(0x378))]()),g(this,'event$',this[_0x538553(0x1e9)][_0x538553(0x421)]()),g(this,_0x538553(0x347),void 0x0),g(this,_0x538553(0x48a),void 0x0),g(this,_0x538553(0x2ce),void 0x0),g(this,_0x538553(0x2ba),!0x1),g(this,_0x538553(0x321),null),this[_0x538553(0x2ba)]=!!this[_0x538553(0x2ea)],_0x347964[_0x538553(0x331)]((0x0,i[_0x538553(0x429)])(this[_0x538553(0x428)]))[_0x538553(0x3a4)](_0x543080=>{const _0x2d9461=_0x538553;if(_0x543080!==void 0x0){if(this[_0x2d9461(0x347)]=_0x543080,_0x543080)this['_joinRoom'](_0x543080),this[_0x2d9461(0x48a)]=_0x543080[_0x2d9461(0x1ae)][_0x2d9461(0x3a4)](_0x34b719=>{const _0x63c50b=_0x2d9461;_0x34b719['routeKey']===this[_0x63c50b(0x320)][_0x63c50b(0x1cb)]['unitId']&&this['_onCombEvent'](_0x34b719);});else{var _0x4014fc;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x2d9461(0x357)][_0x2d9461(0x201)](0x2),(_0x4014fc=this[_0x2d9461(0x48a)])==null||_0x4014fc[_0x2d9461(0x2dc)](),this['_socketMessageSubscription']=null;}}});}[_0x4c0aa4(0x323)](){const _0x43f56f=_0x4c0aa4;var _0x14d734,_0x370882;return(_0x14d734=(_0x370882=this[_0x43f56f(0x347)])==null?void 0x0:_0x370882['memberID'])==null?null:_0x14d734;}[_0x4c0aa4(0x28d)](){const _0x2e494d=_0x4c0aa4;super[_0x2e494d(0x28d)](),this['close'](),this['dispose$'][_0x2e494d(0x201)](),this[_0x2e494d(0x428)][_0x2e494d(0x470)]();}['close'](){const _0x326dd6=_0x4c0aa4;var _0x276783;this[_0x326dd6(0x25a)](),(_0x276783=this[_0x326dd6(0x347)])==null||_0x276783[_0x326dd6(0x29c)]({'cmd':a[_0x326dd6(0x2db)][_0x326dd6(0x1da)],'data':{'roomID':this[_0x326dd6(0x320)][_0x326dd6(0x1cb)]['unitId']}}),this['_event$'][_0x326dd6(0x470)](),this['_sessionStatus$'][_0x326dd6(0x470)]();}[_0x4c0aa4(0x34d)](_0x5b9b6d){const _0x3fc0a3=_0x4c0aa4;_0x5b9b6d[_0x3fc0a3(0x1ac)]===a[_0x3fc0a3(0x2db)][_0x3fc0a3(0x383)]?this['_onJoinRoomEvent'](_0x5b9b6d):_0x5b9b6d[_0x3fc0a3(0x1ac)]===a[_0x3fc0a3(0x2db)][_0x3fc0a3(0x45f)]&&this[_0x3fc0a3(0x2cb)](_0x5b9b6d);}[_0x4c0aa4(0x1fc)](_0x8322fb){const _0x3858c8=_0x4c0aa4;this[_0x3858c8(0x357)][_0x3858c8(0x201)](0x1),_0x8322fb[_0x3858c8(0x29c)]({'cmd':a['CombCmd'][_0x3858c8(0x383)],'routeKey':this[_0x3858c8(0x320)][_0x3858c8(0x1cb)][_0x3858c8(0x211)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3858c8(0x320)]['target'][_0x3858c8(0x211)]}]}});}[_0x4c0aa4(0x40e)](_0x332342){const _0x4c4b44=_0x4c0aa4;var _0x311716;if(_0x332342[_0x4c4b44(0x403)]in ye){this['_collaborationUIEventService'][_0x4c4b44(0x40a)]({'id':_0x4c4b44(0x2ac),'data':ye[_0x332342[_0x4c4b44(0x403)]]}),this['_sessionStatus$'][_0x4c4b44(0x201)](0x2);return;}this['_sessionStatus$']['next'](0x3);let _0x13a81c=(_0x311716=_0x332342[_0x4c4b44(0x233)][_0x4c4b44(0x3f7)][this[_0x4c4b44(0x320)][_0x4c4b44(0x1cb)]['unitId']])==null?void 0x0:_0x311716['members'];_0x13a81c&&_0x13a81c[_0x4c4b44(0x1a5)](_0x200fdc=>this['_memberService'][_0x4c4b44(0x18c)](this['_identity'][_0x4c4b44(0x255)],_0x200fdc));}[_0x4c0aa4(0x2cb)](_0x2026e9){const _0x3b9375=_0x4c0aa4;try{let _0x3d4b37=ue(this[_0x3b9375(0x320)],_0x2026e9[_0x3b9375(0x233)]);for(let _0x13dd5b of _0x3d4b37)switch(_0x13dd5b[_0x3b9375(0x23b)]){case e[_0x3b9375(0x439)][_0x3b9375(0x3f1)]:this[_0x3b9375(0x1c3)](_0x13dd5b),this[_0x3b9375(0x1e9)]['next'](_0x13dd5b);break;case e[_0x3b9375(0x439)]['USERS_LEAVE']:this[_0x3b9375(0x249)](_0x13dd5b),this[_0x3b9375(0x1e9)][_0x3b9375(0x201)](_0x13dd5b);break;case e[_0x3b9375(0x439)][_0x3b9375(0x343)]:case e['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:this[_0x3b9375(0x44c)](),this[_0x3b9375(0x358)](),this[_0x3b9375(0x1e9)][_0x3b9375(0x201)](_0x13dd5b);break;case e[_0x3b9375(0x439)]['MSG_FOR_ERROR']:this['_logService'][_0x3b9375(0x338)](_0x3b9375(0x443)+JSON[_0x3b9375(0x4a7)](_0x13dd5b)),this[_0x3b9375(0x1e9)]['next'](_0x13dd5b);break;case e[_0x3b9375(0x439)]['COMMENT_UPDATE']:this[_0x3b9375(0x472)]['onCommentUpdate'](_0x13dd5b[_0x3b9375(0x233)]),this[_0x3b9375(0x1e9)][_0x3b9375(0x201)](_0x13dd5b);break;default:this[_0x3b9375(0x1e9)]['next'](_0x13dd5b);}}catch(_0x2a4434){this[_0x3b9375(0x387)]['error'](_0x2a4434,_0x2026e9);}}[_0x4c0aa4(0x1c3)](_0x516393){const _0x1a1fb2=_0x4c0aa4;this[_0x1a1fb2(0x203)][_0x1a1fb2(0x18c)](this[_0x1a1fb2(0x320)][_0x1a1fb2(0x255)],_0x516393[_0x1a1fb2(0x233)]);}[_0x4c0aa4(0x249)](_0x24ba69){const _0x18b2c6=_0x4c0aa4;this[_0x18b2c6(0x203)][_0x18b2c6(0x41f)](this[_0x18b2c6(0x320)][_0x18b2c6(0x255)],_0x24ba69[_0x18b2c6(0x233)][_0x18b2c6(0x3fc)]);}async[_0x4c0aa4(0x29c)](_0x14f991,_0x8b7816){const _0x1f531a=_0x4c0aa4;if(this['sessionStatus']!==0x3||!this[_0x1f531a(0x347)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x1a62cc=le(this[_0x1f531a(0x320)],_0x14f991);_0x1a62cc[_0x1f531a(0x23b)]===e[_0x1f531a(0x439)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x1f531a(0x1a8)](_0x1a62cc)),this['_socket'][_0x1f531a(0x29c)]({'cmd':a[_0x1f531a(0x2db)]['INGEST'],'routeKey':this['_identity'][_0x1f531a(0x1cb)][_0x1f531a(0x211)],'routeType':'','data':_0x1a62cc});}catch(_0x16e8b7){this[_0x1f531a(0x387)]['error'](_0x16e8b7);}}['_scheduleCollaborationTimeoutTimer'](){const _0x4c3d7b=_0x4c0aa4;var _0x33358d;this[_0x4c3d7b(0x2ce)]=setTimeout(()=>{const _0x4f09fa=_0x4c3d7b;this[_0x4f09fa(0x2ce)]=null,this[_0x4f09fa(0x34a)][_0x4f09fa(0x40a)]({'id':_0x4f09fa(0x344)});},(_0x33358d=this['_configService'][_0x4c3d7b(0x2ee)](_0x4c3d7b(0x22b)))==null?ne:_0x33358d);}['_clearCollaborationTimeoutTimer'](){const _0x561342=_0x4c0aa4;this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x561342(0x2ce)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x201657){const _0xa932d9=_0x4c0aa4;if(!this[_0xa932d9(0x2ba)])return;let {data:_0x4750d8}=_0x201657,{unitID:_0x3358bd,changeset:_0x1e687d}=_0x4750d8,{mutations:_0xb917a5,type:_0x4e89c8}=_0x1e687d;this[_0xa932d9(0x321)]={'unitId':_0x3358bd,'type':_0x4e89c8,'startTime':performance[_0xa932d9(0x471)](),'stopTime':0x0,'duration':0x0,'size':re(_0xb917a5)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x409e63=_0x4c0aa4;if(this[_0x409e63(0x2ba)]){if(!this[_0x409e63(0x321)]){this['_logService']['error'](_0x409e63(0x28a),_0x409e63(0x48e));return;}this[_0x409e63(0x321)][_0x409e63(0x3f8)]=performance[_0x409e63(0x471)](),this[_0x409e63(0x321)][_0x409e63(0x37a)]=this[_0x409e63(0x321)][_0x409e63(0x3f8)]-this[_0x409e63(0x321)]['startTime'],this[_0x409e63(0x2ea)][_0x409e63(0x444)](_0x409e63(0x3a2),this[_0x409e63(0x321)]),this[_0x409e63(0x321)]=null;}}[_0x4c0aa4(0x25a)](){const _0x109928=_0x4c0aa4;this[_0x109928(0x321)]=null;}};x=y([v(0x2,t[_0x4c0aa4(0x2f9)]),v(0x3,t[_0x4c0aa4(0x4a5)]),v(0x4,(0x0,t['Inject'])(b)),v(0x5,(0x0,t[_0x4c0aa4(0x351)])(se)),v(0x6,(0x0,t['Inject'])(_)),v(0x7,(0x0,t[_0x4c0aa4(0x37d)])(o[_0x4c0aa4(0x20d)]))],x);const S=(0x0,t[_0x4c0aa4(0x35d)])(_0x4c0aa4(0x3e4));function be(_0x12277a){return'unit-cache-'+_0x12277a;}function xe(_0x1091e4){const _0x5bdd41=_0x4c0aa4;let {unitID:_0x1ab4c3,mutations:_0x2656e2}=_0x1091e4;return{'unitId':_0x1ab4c3,'subUnitId':_0x2656e2[_0x5bdd41(0x1c9)]>0x0?_0x2656e2[0x0]['params']['subUnitId']:null};}let C=class{constructor(_0xb61352,_0xdc248d,_0x325e4e){const _0x1e12f3=_0x4c0aa4;this['_injector']=_0xb61352,this[_0x1e12f3(0x2f4)]=_0xdc248d,this[_0x1e12f3(0x3de)]=_0x325e4e;}[_0x4c0aa4(0x270)](_0x287368){const _0x57ad10=_0x4c0aa4;var _0x5c8a00,_0x52b589;let _0x5d913e=this[_0x57ad10(0x1fd)][_0x57ad10(0x3a5)](r['SheetsSelectionsService']),{unitId:_0x11a41f,subUnitId:_0xca1688}=xe(_0x287368),_0x46d9a7=_0x5d913e==null?void 0x0:_0x5d913e[_0x57ad10(0x3d5)](_0x11a41f)[_0x57ad10(0x36d)](),_0x4dd6d9=(_0x5c8a00=this[_0x57ad10(0x3de)][_0x57ad10(0x495)](_0x11a41f))==null||(_0x5c8a00=_0x5c8a00[_0x57ad10(0x21b)]())==null?void 0x0:_0x5c8a00[_0x57ad10(0x2c6)]();if(_0x46d9a7[_0x57ad10(0x1c9)]===0x0||!_0x11a41f||!_0xca1688)return;let _0x26ff90=[{'id':r[_0x57ad10(0x47d)]['id'],'params':{'unitId':_0x11a41f,'subUnitId':_0x4dd6d9,'selections':t[_0x57ad10(0x290)][_0x57ad10(0x311)](_0x46d9a7)}}],_0x34c162=this[_0x57ad10(0x2f4)]['transformMutationsWithChangeset'](_0x287368,_0x26ff90);if(!(0x0,e[_0x57ad10(0x309)])(_0x34c162))throw _0x34c162[_0x57ad10(0x338)];let _0x5a6ea8=(_0x52b589=_0x34c162[_0x57ad10(0x465)][0x0])==null||(_0x52b589=_0x52b589['params'])==null?void 0x0:_0x52b589[_0x57ad10(0x215)];if(Array['isArray'](_0x5a6ea8)&&_0x5a6ea8[_0x57ad10(0x1c9)]){if(_0x5a6ea8[_0x57ad10(0x1c9)]===_0x26ff90[0x0][_0x57ad10(0x31e)][_0x57ad10(0x215)][_0x57ad10(0x1c9)]&&_0x5a6ea8[_0x57ad10(0x31a)]((_0x4a2477,_0x1e7acb)=>t[_0x57ad10(0x26c)][_0x57ad10(0x490)](_0x4a2477[_0x57ad10(0x2a8)],_0x26ff90[0x0][_0x57ad10(0x31e)][_0x57ad10(0x215)][_0x1e7acb][_0x57ad10(0x2a8)])))return;this[_0x57ad10(0x1fd)][_0x57ad10(0x3a5)](t[_0x57ad10(0x416)])['executeCommand'](r[_0x57ad10(0x47d)]['id'],{'unitId':_0x11a41f,'subUnitId':_0x4dd6d9,'selections':_0x5a6ea8});}}};function _0x290d(_0x38f27e,_0x43c926){_0x38f27e=_0x38f27e-0x185;const _0x18d9a2=_0x18d9();let _0x290d4f=_0x18d9a2[_0x38f27e];return _0x290d4f;}C=y([v(0x0,(0x0,t['Inject'])(t[_0x4c0aa4(0x2c0)])),v(0x1,e[_0x4c0aa4(0x34f)]),v(0x2,t['IUniverInstanceService'])],C);const w=(0x0,t[_0x4c0aa4(0x35d)])(_0x4c0aa4(0x400));let Se=function(_0x4318d5){const _0x4ed839=_0x4c0aa4;return _0x4318d5[_0x4318d5[_0x4ed839(0x468)]=0x0]=_0x4ed839(0x468),_0x4318d5[_0x4318d5[_0x4ed839(0x3d3)]=0x1]='OTHER_CLIENTS_EDITING',_0x4318d5;}({});function Ce(_0x1ef153){const _0x32bc22=_0x4c0aa4;var _0x23d9f5;return!!((_0x23d9f5=_0x1ef153[_0x32bc22(0x31e)])!=null&&_0x23d9f5[_0x32bc22(0x228)]);}const we=new Set([r[_0x4c0aa4(0x497)]['id']]),Te=new Set([c['AddSlidePageMutation']['id'],c['EnsureSlideMasterPageMutation']['id'],c['MoveSlidePageMutation']['id'],c[_0x4c0aa4(0x481)]['id']]);function Ee(_0x1e7f86,_0x4eadee=we){const _0x8a4ed3=_0x4c0aa4;let _0x3d5c4c=[];for(let _0x3b82fb of _0x1e7f86){if(_0x4eadee[_0x8a4ed3(0x447)](_0x3b82fb['id'])){if(_0x3d5c4c[_0x8a4ed3(0x1c9)]>0x0)break;_0x3d5c4c[_0x8a4ed3(0x1e4)](_0x3b82fb);break;}if(Ce(_0x3b82fb)){if(_0x3d5c4c[_0x8a4ed3(0x1c9)]>0x0)break;_0x3d5c4c['push'](_0x3b82fb);break;}_0x3d5c4c[_0x8a4ed3(0x1e4)](_0x3b82fb);}return _0x3d5c4c;}function T(_0x24b2c1,_0x35d85c,_0x4177b0,_0x4fd8e8,_0x1b6d5e){const _0x5460c8=_0x4c0aa4;var _0x31ddeb,_0x16c2bb,_0x495a06,_0x50b459;let _0x2e24f2=Ee(_0x24b2c1),_0x218416=(_0x31ddeb=(_0x16c2bb=_0x1b6d5e['getCurrentUser']())==null?void 0x0:_0x16c2bb[_0x5460c8(0x43e)])==null?_0x5460c8(0x269):_0x31ddeb,_0x222ba6=(_0x495a06=(_0x50b459=_0x1b6d5e[_0x5460c8(0x243)]())==null?void 0x0:_0x50b459['memberID'])==null?'unknown':_0x495a06;return{'changeset':{'unitID':_0x35d85c,'type':(0x0,e[_0x5460c8(0x3b7)])(_0x4177b0['getUnitType'](_0x35d85c)),'baseRev':_0x4fd8e8['getCurrentRevOfUnit'](_0x35d85c),'revision':0x0,'userID':_0x218416,'memberID':_0x222ba6,'mutations':_0x2e24f2},'pendingMutations':_0x24b2c1[_0x5460c8(0x44d)](_0x2e24f2['length'])};}function De(_0x3c90fb,_0x520fcb,_0x57c4bc,_0x41636d,_0x176653){const _0x20c5ea=_0x4c0aa4;var _0x242797,_0x506888,_0x3ae028,_0x349281;let _0x5bce61=Ee(_0x3c90fb,Te),_0x1338e8=(_0x242797=(_0x506888=_0x176653[_0x20c5ea(0x243)]())==null?void 0x0:_0x506888[_0x20c5ea(0x43e)])==null?'unknown':_0x242797,_0x366633=(_0x3ae028=(_0x349281=_0x176653[_0x20c5ea(0x243)]())==null?void 0x0:_0x349281[_0x20c5ea(0x3fc)])==null?_0x20c5ea(0x269):_0x3ae028;return{'changeset':{'unitID':_0x520fcb,'type':(0x0,e[_0x20c5ea(0x3b7)])(_0x57c4bc['getUnitType'](_0x520fcb)),'baseRev':_0x41636d[_0x20c5ea(0x25c)](_0x520fcb),'revision':0x0,'userID':_0x1338e8,'memberID':_0x366633,'mutations':_0x5bce61},'pendingMutations':_0x3c90fb[_0x20c5ea(0x44d)](_0x5bce61[_0x20c5ea(0x1c9)])};}function Oe(_0x2f5159,_0x79eefb,_0x12cc15,_0x1345e5,_0x52425b){const _0x3ae686=_0x4c0aa4;var _0x2c8250,_0x484b16,_0x247994,_0x196bb6;let _0x51720c=_0x2f5159[_0x3ae686(0x464)]((_0xb92f75,_0x114100)=>{const _0x77410a=_0x3ae686;let _0x1afcdf=_0xb92f75[_0xb92f75[_0x77410a(0x1c9)]-0x1],{id:_0x55b4a8}=_0x1afcdf==null?{}:_0x1afcdf,{id:_0x214462,type:_0x4a3234}=_0x114100,_0x1421c7=_0x114100[_0x77410a(0x31e)];if(_0x55b4a8&&_0x55b4a8!==_0x214462)throw Error(_0x77410a(0x334)+_0x55b4a8+_0x77410a(0x384)+_0x214462+'.');if(!_0x1afcdf)return[{'id':_0x214462,'type':_0x4a3234,'params':{'unitId':_0x1421c7[_0x77410a(0x211)],'textRanges':_0x1421c7[_0x77410a(0x345)],'actions':_0x1421c7['actions']}}];let _0x59f924=_0x1afcdf['params'];return ke(_0x59f924,_0x1421c7)?[..._0xb92f75[_0x77410a(0x44d)](0x0,-0x1),{..._0x1afcdf,'id':_0x214462,'type':_0x4a3234,'params':{'unitId':_0x1421c7[_0x77410a(0x211)],'textRanges':_0x1421c7['textRanges'],'actions':t[_0x77410a(0x361)]['compose'](_0x59f924[_0x77410a(0x28c)],_0x1421c7[_0x77410a(0x28c)])}}]:[..._0xb92f75,{'id':_0x214462,'type':_0x4a3234,'params':{'unitId':_0x1421c7[_0x77410a(0x211)],'textRanges':_0x1421c7[_0x77410a(0x345)],'actions':_0x1421c7[_0x77410a(0x28c)]}}];},[]),_0x1c1d0a=(_0x2c8250=(_0x484b16=_0x52425b[_0x3ae686(0x243)]())==null?void 0x0:_0x484b16[_0x3ae686(0x43e)])==null?'unknown':_0x2c8250,_0x31841d=(_0x247994=(_0x196bb6=_0x52425b[_0x3ae686(0x243)]())==null?void 0x0:_0x196bb6['memberID'])==null?_0x3ae686(0x269):_0x247994;return{'changeset':{'unitID':_0x79eefb,'type':(0x0,e['mapDocumentTypeToUniverInstanceType'])(_0x12cc15[_0x3ae686(0x2d9)](_0x79eefb)),'baseRev':_0x1345e5[_0x3ae686(0x25c)](_0x79eefb),'revision':0x0,'userID':_0x1c1d0a,'memberID':_0x31841d,'mutations':_0x51720c},'pendingMutations':_0x2f5159[_0x3ae686(0x44d)](_0x2f5159['length'])};}function ke(_0x1099da,_0x3e0b91){const _0x77d2cb=_0x4c0aa4;return!Ae(_0x1099da)&&!Ae(_0x3e0b91)&&je(_0x1099da[_0x77d2cb(0x28c)],_0x3e0b91[_0x77d2cb(0x28c)]);}function Ae(_0x1c5463){const _0x53288d=_0x4c0aa4;return _0x1c5463[_0x53288d(0x1ff)]!==void 0x0;}function je(_0x879565,_0x387692){return Me(_0x879565)&&Me(_0x387692)&&!Pe(_0x879565)&&!Pe(_0x387692)&&!Ne(_0x879565)&&!Ne(_0x387692);}function Me(_0x2c0049){const _0xeac86b=_0x4c0aa4;return Fe(_0x2c0049)[_0xeac86b(0x45d)](_0x4cdb53=>E(_0x4cdb53)&&_0x4cdb53['et']===_0xeac86b(0x2e8));}function Ne(_0x3b4a4d){const _0x280c76=_0x4c0aa4;return Fe(_0x3b4a4d)[_0x280c76(0x45d)](_0x32917f=>Array[_0x280c76(0x2a0)](_0x32917f)||typeof _0x32917f==_0x280c76(0x478)||typeof _0x32917f==_0x280c76(0x29b));}function Pe(_0x3b2bff){const _0x27ceb4=_0x4c0aa4;return Fe(_0x3b2bff)[_0x27ceb4(0x45d)](_0x16e3a8=>!E(_0x16e3a8)||_0x16e3a8['et']!==_0x27ceb4(0x2e8)||!Array[_0x27ceb4(0x2a0)](_0x16e3a8['e'])?!0x1:_0x16e3a8['e']['some'](_0x2b179b=>!E(_0x2b179b)||!E(_0x2b179b[_0x27ceb4(0x1be)])?!0x1:Object[_0x27ceb4(0x32a)]['hasOwnProperty'][_0x27ceb4(0x475)](_0x2b179b[_0x27ceb4(0x1be)],_0x27ceb4(0x3e3))||Object[_0x27ceb4(0x32a)][_0x27ceb4(0x256)][_0x27ceb4(0x475)](_0x2b179b[_0x27ceb4(0x1be)],_0x27ceb4(0x37f))||Object['prototype'][_0x27ceb4(0x256)]['call'](_0x2b179b[_0x27ceb4(0x1be)],_0x27ceb4(0x26d))));}function Fe(_0x41fd33){const _0x4e9481=_0x4c0aa4;if(!Array[_0x4e9481(0x2a0)](_0x41fd33))return[];let _0x2ad244=_0x41fd33[_0x4e9481(0x1a7)](_0x4e9481(0x1be))?_0x41fd33:_0x41fd33[_0x4e9481(0x19b)](_0x191274=>Array[_0x4e9481(0x2a0)](_0x191274)&&_0x191274['includes']('body'));if(!Array[_0x4e9481(0x2a0)](_0x2ad244))return[];let _0x1d6f16=_0x2ad244[_0x4e9481(0x3c5)]('body');return _0x1d6f16===-0x1?[]:_0x2ad244[_0x4e9481(0x44d)](_0x1d6f16+0x1);}function E(_0x5e42f2){const _0x5467e0=_0x4c0aa4;return typeof _0x5e42f2=='object'&&!!_0x5e42f2&&!Array[_0x5467e0(0x2a0)](_0x5e42f2);}function Ie(_0x1917a1,_0x3b4cf8){const _0xac35ce=_0x4c0aa4;let _0x2e34fe=new i[(_0xac35ce(0x2d2))](0x1);return setTimeout(()=>_0x2e34fe[_0xac35ce(0x201)](_0x3b4cf8),_0x1917a1),_0x2e34fe[_0xac35ce(0x421)]()[_0xac35ce(0x331)]((0x0,i[_0xac35ce(0x1d8)])(0x1));}var Le,Re,ze;let Be=function(_0x18a040){const _0x78fa29=_0x4c0aa4;return _0x18a040[_0x78fa29(0x327)]=_0x78fa29(0x35b),_0x18a040['SYNCED']=_0x78fa29(0x234),_0x18a040['PENDING']=_0x78fa29(0x1ce),_0x18a040['AWAITING']='awaiting',_0x18a040[_0x78fa29(0x3c2)]=_0x78fa29(0x369),_0x18a040[_0x78fa29(0x46a)]=_0x78fa29(0x3b8),_0x18a040['CONFLICT']=_0x78fa29(0x193),_0x18a040['OFFLINE']=_0x78fa29(0x1d4),_0x18a040;}({});function _0x18d9(){const _0x164740=['transformChangesets','mergeOverrideWithDependencies','isTransformMutationsWithChangesetFailure','_initMergeInterceptor','href','/universer-api/authz','fetchMissingChangesets','add','open$','_imageSourceCache','fromCollab','uuidv4','_onOffline','_clearTimeoutTimer','liveShareNewHost','/universer-api/uniscript','UPDATE_CURSOR','_isPermissionRej','_compressMutationService','_waitForHeartbeatResponse','_getCurrentRevision','min','collaboration_new_changeset','/universer-api/stream/file/upload','subscribe','get','[CollaborationUndoRedoService]','updatePermissionObjEvent','_onRemoteRetry','_commentUpdate$','snapshot','batchAllowed','confirm','COMPRESS_MUTATION_SEND','30BnnIlS','_handlerCallback','onSendChangeset','revision','requestParams','_updateLocalCache','_status$','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','getRoom','mapDocumentTypeToUniverInstanceType','fetch_missing','ICollaborationClientAdapterService','CollaborationStatus','onTransformState','onCommentUpdate','onMutationExecutedForCollab','error$','_handler','enableOfflineEditing','socketMessageSubscription','AWAITING_WITH_PENDING','_getDownloadEndpointURL','DocStateChangeManagerService','indexOf','catch','SessionStatus','parseChangesetToProtocol','RETRY_CONNECTING_MAX_COUNT','FileId','AuthzIoHttpService','_onFetchMissResult','defineProperty','_clearLocalCache','getUnitStatus$','_collaborationSessionService','_transformUndoredo','onSyncEditingCollabCursor','OTHER_CLIENTS_EDITING','set','getWorkbookSelections','originalMeta','_getUploadFileURL','/-/object/-/batch_allowed','_clearHeartbeatTimer','_transformRemoteChangesetByStateCache','@univerjs-pro/collaboration-client','INetworkConditionService','_transformStateCache','_instanceService','OfflineState','awaitingChangeset','snapshotServerUrl','_pendingSessions','tables','collaboration-client.local-cache-service','NEW_CHANGESETS','toggleOnline','splice','c1Prime','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','ONLINE','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','FileSource','_getRedoStack','_permissionService','result','MentionType','USERS_ENTER','liveShareOperation','CmdRspCode','LIVESHARE_NEW_HOST','rev','HEARTBEAT_INTERVAL','roomInfos','stopTime','_httpService','DisposableCollection','LOCAL_CACHE_INTERVAL_KEY','memberID','docStateChange$','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','online$','univer-pro.collaboration-client.single-active-unit-service','_substituteUndoStack','/object','code','_getUndoStack','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_handleRemoteChangesets','_replaceFileID','createUniverCollaborationAdapter','maxSize','emitEvent','disableLocalCache','getSnapshotAPIPath','_snapshotServerService','_onJoinRoomEvent','onlyLocal','_createSession','_incrementRevisionNumber','_getConfig','767220NbRFUk','readAsDataURL','getCfgEnableObjInherit','ICommandService','_toggleOnline','textEncoder','_undoRedoService','/new_changes','_localeService','UUID','candidateSocket','/universer-api/snapshot','removeMember','_adapter','asObservable','URL','loadBoard','_listenToNetworkCondition','UniverInstanceType','unitID','UniverCollaborationPlugin','dispose$','takeUntil','[UniverCollaborationClientPlugin]','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','src','interceptor','resolve','_singleActiveUnitService','unitType','members$','sort','_unitLoaded$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','roles','_updateStatus','origin','_members$','CollaborationEvent','PendingState','PERMISSION_DENIED','/universer-api/user/session-ticket','CHANGESET_REJ','userID','_acknowledgedAwaitingRevision','_commandService','subject','_initUnitPermissionChange','save\x20fail\x20reason\x20is\x20','capture','editingUnit','[FetchMissState]','has','Module','objectType','_createInitialStateImpl','_disableEditing','_stopTelemetryCollaborationNewChangeset','slice','_clearScheduledTask','SOCKET_FAILED','_getSendChangesetTimeout','_showConflictNotification','SNAPSHOT_URL_KEY','headers','collaborators','append','put','sessionStatus$','session','deserializeToCombResponse','attachment','_emitMembers','1.0.0-alpha.7','some','state','RECV','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','startsWith','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_substituteRedoStack','reduce','m2Prime','b64DecodeUnicode','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','NO_OTHER_CLIENTS_EDITING','avatar','FETCH_MISS','_tryReconnect','BoardCollaborationEntity','saveImage','[OfflineState]:\x20received\x20rejection.','SheetPermissionInitController','complete','now','_commentService','toStringTag','_initDependencies','call','HELLO','\x20in\x20_schedule.','string','_getAPIPrefix','ERROR_IMAGE','_applyRemoteChangeset','isTransformChangesetsSuccess','SetSelectionsOperation','createInstance','putCollaborators','CollaborationSessionService','RemoveSlidePageMutation','_roomCreated$','failed\x20to\x20apply\x20missed\x20changesets!','onStarting','FETCH_MISSING','sendChangesetTimeout','setCurrentUser','_initRequestHeader','reconnect','_socketMessageSubscription','saveChangeset','LIVESHARE_OPERATION','enableCollaboration','telemetry\x20info\x20is\x20not\x20initialized','INGEST','equals','list','CommandType','CollaborationSession','_sender','getUnit','socket\x20open.','InsertSheetMutation','Univer','getTypeOfUnitDisposed$','reverse','override','listRoles','_maxTotalRetryTimeout','endpointKey','_waitCount','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','CLOSE_ROOM','Plugin','getAllMembers','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','IConfigService','updatePermissionPoint','stringify','PERSON','mutations','_getSignURL','parseProtocolChangeset','getMember','_change$','/universer-api/file/{fileID}/sign-url','decorate','unitInfo$','ConflictState','objectActions','getFocusedUnit','updateMember','onRemoteRetry','workbook','UniverCollaborationClientPlugin','PERMISSION_REJ','onRemoteAck','method','conflict','registerDependencies','infoRsp','loadUnitOfRevision','_onRemoteRejected','CONFLICT','_onConflict','filter','find','_resendWithTimeout','_transformAndApplyRemoteChangeset','_resolveSessionIdentity','isInternalEditorID','UPDATE_PERMISSION_OBJ','DocCollaborationEntity','HEARTBEAT_TIMEOUT_KEY','sid','_networkConditionService','forEach','POST','includes','_startTelemetryCollaborationNewChangeset','collaboration-client.config','getResourcesRequest','?size=','cmd','listCollaborators','message$','addHandlerCallback','[SyncedState]:\x20received\x20rejection.','[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.','refreshPermission','onTransformSelections','onTransformRemoteChangesetByStateCache','authzUrl','reject','IAttachmentIoService','_sessions','_sendingTimer','_changesetReqId','getTypeOfUnitAdded$','&source=','getValue','body','_rescheduleHeartbeat','_schedule','DEFAULT_FILE_NAME','uniscriptRunEvent','_onUserJoin','UserManagerService','LOCAL_CACHE_INTERVAL','default','1bqkbgE','map','length','connection\x20error','target','collaboratorID','getUnitOnRev','pending','UNISCRIPT_RUN','_members','DataLoaderService','Workbook','_checkMissing','offline','getCollabEntity$','UNIVER_DOC','commentUpdateEvent','take','isPermissionRej','LEAVE','fetchMiss','endpoint','changesets','_fetchMissChangesets','_executeRemoteChangeset','close$','MentionIoHttpService','_sendHeartbeat','USERS_LEAVE','push','IPermissionService','_clearUndo','_unitInfo$','OTHER_CLIENT_EDITING','_event$','addImageSourceCache','_onLocalMutation','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','commentUpdate$','pauseCollaboration','getUnitId','DEFAULT_WS_SESSION_TICKET_URL','_init','url','getInterceptPoints','encrypt','COMMENT_UPDATE','_HTTPService','_eventService','_submitChangeset','resend','CollaborationImageIoService','enableSingleActiveInstanceLock','_joinRoom','_injector','CollaborationAttachmentIoService','isCompositionEnd','charCodeAt','next','_redoStacks','_memberService','_snapshotService','HEARTBEAT','_entityInit$','_onConnectionFailed','toString','size','unitLoaded$','getImage','setShowComponents','ITelemetryService','BehaviorSubject','_onRemoteACK','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','unitId','onTransformRemoteChangesetByIMECache','UNIVER_COLLABORATION_CLIENT_PLUGIN','transformStack\x20failed!','selections','_config','uploadFileServerUrl','newCsEvent','CHANGESET_SHOULD_RETRY','utf8ToBytes','getActiveSheet','RETRY_CONNECTING_MAX_COUNT_KEY','getCollabEntity','sessionStatus','merge','COMPRESS_MUTATION_APPLY','/collaborator','registerHTTPInterceptor','_registerDependencies','_revisionService','onMissedChangesetFetched','_collaborationPaused','UniverNetworkPlugin','__splitChunk__','getDeserializedSheetBlock','1212920GAAkQn','HEARTBEAT_TIMEOUT','IContextService','_transformIMECache','[CollaborationEntity]','_resendTimer','objectID','sendHeartbeatTimer','toLocal','data','synced','_type','allowed','routeKey','appendMutation','_userManagerService','_getCtorByUniverInstanceType','eventID','executeCommand','[PendingState]:\x20received\x20rejection.','BASE64','Disposable','_sessionChannels','192295SjSUaR','updateOfflineData','getCurrentUser','UNIVER_BOARD','objects','_hasSessionsForEndpoint','toggleOffline','_undoStacks','_onUserLeave','file','delete','readyForCollab','SHOULD_CLOSE_CONN','onLocalMutation','cbc','univer-pro.collaboration-client-socket-service','116394grXnZK','RevisionService','_createInitialState','onMissingChangesets','localUnitId','hasOwnProperty','CollaborativeUndoRedoService','_resendTimeout','socket$','_throwTelemetryCollaborationNewChangeset','/-/object/list','getCurrentRevOfUnit','ImageSourceType','UnitEmbedded','cfgEnableObjInherit','loginUrlKey','collabSubmitChangesetUrl','SlideCollaborationEntity','timeoutTimer','permissionRejEvent','_changesetSessionId','/allowed','IUndoRedoService','state$','unknown','clear','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','Rectangle','blockRanges','JOINING','randomBytes','transformSelections','change$','_transformStack','location','localCacheService','getLatestCsReqIdBySid','/universer-api/snapshot/','localeService','csRejEvent','_socketService','encode','[CollaborationState]:\x20apply\x20error!','type','collaMsg','JOIN_ROOM_FULL','[DataLoaderService]','SheetCollaborationEntity','_onRemoteChangeset','MergeInterceptorFactory','transformUndoRedo','_queuedRemoteChangesets','loadSlide','UNIVER_SHEET','apply','retryConnectingTimer','Failed\x20to\x20update\x20permission\x20point','[CollaborationSession]','LocaleService','actions','dispose','then','saveSheetBlock','Tools','SOCKET_FAILED_RETRY','ERROR_IMAGE_TYPE','entityInit$','_univerInstanceService','/role','patch','unit','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','\x0aAfter:\x20','_tryEnsureSocket','number','send','resourceIDs','AwaitingState','JOIN_ROOM_PERMISSION_DENIED','isArray','DEFAULT_COLLAB_WEB_SOCKET_URL','_configService','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','missingChangesets','[CollaborationSessionService]','_lockTransition','touchDependencies','range','&to=','EmptyMutationInfo','getDrawingImageAllowSize','JOIN_ROOM_FAILED','fetchThroughInterceptors','csAckEvent','title','_createSocket','_transformRemoteChangesetByIMECache','object','Quantity','ERROR_EXCEED_SIZE','sheets','_onConnectionOpen','_awaitingChangeset','_entities','ImageUploadStatusType','_shouldReportTelemetry','12KNXyxB','FAIL','collabWebSocketUrl','reqId','SUBMIT_CHANGESET','Injector','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','2831488tNdtRO','toDisposable','_localCacheService','getUploadOptions','getSheetId','HEARTBEAT_INTERVAL_KEY','_exhaustRemoteChangesetQueue','fetching\x20missing\x20changesets\x20from\x20','_transformSelections','_onRecvEvent','MemberService','delay','_collaborationTimeoutTimer','getOwnPropertyDescriptor','FetchingMissState','[PendingState]:\x20received\x20acknowledgement.','ReplaySubject','People','debug','UNIVER_BASE','copyFileMeta','joinEvent','session.join-failed','getUnitType','?url=','CombCmd','unsubscribe','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','OFFLINE','HTTPRequest','setCfgEnableObjInherit','getSheetBlock','values','post','transformMutationsWithChangeset','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','SheetTransformSelectionsService','_isEchoedAwaitingChangeset','text-x','create','_telemetryService','getGlobalObject','resolveUnit','leaveEvent','getConfig','_doCreateSocket','saveAttachment','_syncEditingCollabCursor','function','_scheduleCompleteTimestamp','_transformService','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','_state$','endsWith','_startCollaboration','ILogService','WorkbookEditablePermission','CollaborationEntity','_docStateChangeManagerService','loadUnit','waitForRoom$','1698570MzZYJx','IAuthzIoService','getImageSourceCache','_onMessage','ThresholdInterceptorFactory','status','LocalUndoRedoService','onTransformIME','updateCursorEvent','focused$','isTransformMutationsWithChangesetSuccess','_cfgEnableObjInherit','/block/','JOIN_ROOM_NOT_EXISTS','init','__Key__','8OTZGsX','_transitionLocked','deepClone','_acknowledgeAwaitingIfReady','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','baseRev','upload','/unit/','[SyncedState]:\x20received\x20acknowledgement.','onload','SyncedState','every','serializeCombRequest','RxDisposable','IUniverInstanceService','params','ISnapshotServerService','_identity','_telemetryInfo','_toggleOffline','getMemberID','onRemoteChangeset','close','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','NOT_COLLAB','IMentionIOService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','prototype','event$','version','floor','SnapshotServerOverHTTPService','sequenceExecute','IImageIoService','pipe','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','createSocket','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','setWaitCount','MUTATION','error','CommentService','getTime','update','_createHandler','CompressMutationService','_state','ICollaborationSocketService','enableAuthServer','_acknowledgeAwaiting','PSEUDO_FETCH_MISSING_RESULT','CHANGESET_ACK','SUBMIT_CHANGESET_TIMEOUT','textRanges','LIVESHARE_REQUEST_HOST','_socket','UNIVER_SLIDE','MSG_FOR_ERROR','_collaborationUIEventService','Error\x20on\x20receiving\x20event','_pendingMutations','_onCombEvent','symbol','ITransformService','changeset','Inject','incrementRevOfUnit','&assign=','updateCollaborator','AttachmentSourceType','loadSheet','_sessionStatus$','_clearCollaborationTimeoutTimer','generateRandomId','session.room-cnt-exceeds','not_collab','[CollaborationSessionService]:\x20socket\x20error','createIdentifier','_socketChannels','_unlockTransition','getLocalCacheKey','JSONX','_clearRetryConnectingTimer','LIVESHARE_FETCH_OPERATIONS','name','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_decreaseWaiting','_removeRoom','retryCount','awaiting_with_pending','304353fgnfrz','awaiting','CollaborationUIEventService','getCurrentSelections','_initCloseConn','/resources','_updateState','_upload','accept','[OfflineState]:\x20received\x20changeset.','socket\x20close','RichTextEditingMutation','onRemoteRej','iterator','Subject','BaseCollaborationEntity','duration','socketService','loadOfflineData','Optional','_getSocketChannel','columnGroups','_getAPIPrefixPath','updateSnapshot','_roomMembers','JOIN','\x20-\x20','/object/','concatBytes','_logService','_remoteChangesetQueue','HTTPService','_clearRedo','disposeWithMe'];_0x18d9=function(){return _0x164740;};return _0x18d9();}const Ve=0x4e20,He=0x2bf20;var D=class{constructor(_0x2c6c22,_0x1c32da,_0x596161,_0x2dc160,_0x2422df,_0x7a59a8,_0x25b60e,_0xfef3ab,_0x218682){const _0x18d454=_0x4c0aa4;this[_0x18d454(0x426)]=_0x2c6c22,this[_0x18d454(0x27c)]=_0x1c32da,this[_0x18d454(0x3bf)]=_0x2422df,this[_0x18d454(0x440)]=_0x7a59a8,this[_0x18d454(0x419)]=_0x25b60e,this[_0x18d454(0x224)]=_0xfef3ab,this['_localCacheService']=_0x218682,g(this,_0x18d454(0x2b7),null),g(this,'_pendingMutations',[]),this['_awaitingChangeset']=_0x596161,this[_0x18d454(0x34c)]=_0x2dc160;}[_0x4c0aa4(0x1d3)](_0xdafb54){const _0xe6cdd5=_0x4c0aa4;let _0x304392=this['_revisionService'][_0xe6cdd5(0x25c)](this[_0xe6cdd5(0x426)]);return _0xdafb54[_0xe6cdd5(0x3b1)]>_0x304392+0x1?(this[_0xe6cdd5(0x3bf)][_0xe6cdd5(0x254)]({'from':_0x304392,'to':_0xdafb54[_0xe6cdd5(0x3b1)]-0x1}),!0x0):!0x1;}[_0x4c0aa4(0x3d1)](_0x412acd){const _0xa30a87=_0x4c0aa4;this[_0xa30a87(0x419)][_0xa30a87(0x283)](this[_0xa30a87(0x426)],_0x412acd);}[_0x4c0aa4(0x2ca)](_0x3bbf1b){const _0x4f5444=_0x4c0aa4;var _0x27fb1b,_0x2bef28;(_0x27fb1b=(_0x2bef28=this[_0x4f5444(0x3bf)])['onTransformSelections'])==null||_0x27fb1b[_0x4f5444(0x475)](_0x2bef28,_0x3bbf1b);}[_0x4c0aa4(0x22d)](_0x2b4998){const _0x247019=_0x4c0aa4;var _0x5b945b,_0x186472;return(_0x5b945b=(_0x186472=this[_0x247019(0x3bf)])[_0x247019(0x306)])==null?void 0x0:_0x5b945b[_0x247019(0x475)](_0x186472,_0x2b4998);}['_transformStateCache'](_0x333e2a){const _0x11b482=_0x4c0aa4;var _0x43b7d9,_0x4c7780;return(_0x43b7d9=(_0x4c7780=this['_handler'])['onTransformState'])==null?void 0x0:_0x43b7d9[_0x11b482(0x475)](_0x4c7780,_0x333e2a);}[_0x4c0aa4(0x2b1)](_0x58553a){const _0x208d9b=_0x4c0aa4;var _0x1c1e14,_0x15a38e,_0x316122;return(_0x1c1e14=(_0x15a38e=(_0x316122=this[_0x208d9b(0x3bf)])[_0x208d9b(0x212)])==null?void 0x0:_0x15a38e[_0x208d9b(0x475)](_0x316122,_0x58553a))==null?_0x58553a:_0x1c1e14;}[_0x4c0aa4(0x3da)](_0x21e82c){const _0x288406=_0x4c0aa4;var _0x461b59,_0x1cb2e6,_0x25cbbc;return(_0x461b59=(_0x1cb2e6=(_0x25cbbc=this['_handler'])[_0x288406(0x1b4)])==null?void 0x0:_0x1cb2e6[_0x288406(0x475)](_0x25cbbc,_0x21e82c))==null?_0x21e82c:_0x461b59;}['_syncEditingCollabCursor'](_0x2e5b94){const _0xd1983e=_0x4c0aa4;if(this[_0xd1983e(0x27c)]===t[_0xd1983e(0x425)][_0xd1983e(0x1d6)]){let {unitID:_0x5554d0,mutations:_0x6e19f,memberID:_0x26f675}=_0x2e5b94,_0x193447=_0x6e19f[_0xd1983e(0x1c9)]>0x0?_0x6e19f[0x0][_0xd1983e(0x31e)]['textRanges']:[];if(Array[_0xd1983e(0x2a0)](_0x193447)&&_0x193447[_0xd1983e(0x1c9)]>0x0){var _0x290d45,_0x49f7ba;(_0x290d45=(_0x49f7ba=this[_0xd1983e(0x3bf)])['onSyncEditingCollabCursor'])==null||_0x290d45[_0xd1983e(0x475)](_0x49f7ba,{'unitID':_0x5554d0,'memberID':_0x26f675,'textRanges':_0x193447});}}}[_0x4c0aa4(0x3b3)](){const _0x2bd35d=_0x4c0aa4;var _0x4d6330;(_0x4d6330=this[_0x2bd35d(0x2c4)])==null||_0x4d6330[_0x2bd35d(0x242)](this[_0x2bd35d(0x426)],this['type'],this[_0x2bd35d(0x2b7)],this[_0x2bd35d(0x34c)]);}[_0x4c0aa4(0x3a0)](){const _0x4d0423=_0x4c0aa4;return this[_0x4d0423(0x224)][_0x4d0423(0x25c)](this[_0x4d0423(0x426)]);}[_0x4c0aa4(0x411)](){const _0x14f12=_0x4c0aa4;this['_revisionService'][_0x14f12(0x352)](this['unitID']);}[_0x4c0aa4(0x1df)](_0x51f314){const _0xfba515=_0x4c0aa4;let _0xc67c4d=this[_0xfba515(0x2b1)](_0x51f314);_0xc67c4d=this[_0xfba515(0x3da)](_0xc67c4d);let _0x38bc36=(0x0,t[_0xfba515(0x32f)])(_0xc67c4d[_0xfba515(0x4a9)],this[_0xfba515(0x440)],{'fromCollab':!0x0});if(!_0x38bc36['result']){var _0x29dcd5;throw _0x38bc36[_0xfba515(0x338)]instanceof Error?_0x38bc36[_0xfba515(0x338)]:Error((_0x29dcd5=_0x38bc36['error'])==null?_0xfba515(0x27b):_0x29dcd5);}this[_0xfba515(0x22d)](_0xc67c4d),this[_0xfba515(0x3dd)](_0xc67c4d),this[_0xfba515(0x3d1)](_0x51f314),this[_0xfba515(0x2ca)](_0xc67c4d),this[_0xfba515(0x2f1)](_0xc67c4d),this[_0xfba515(0x411)]();}};let O=class extends D{constructor(_0x3598a7,_0x19ad9c,_0x16a802,_0x3ace4a,_0x2d4601,_0x283ef4,_0x85e736,_0x4f6157,_0x45cd80,_0x2e5f16){const _0x729015=_0x4c0aa4;super(_0x3598a7,_0x19ad9c,null,[],_0x16a802,_0x85e736,_0x283ef4,_0x3ace4a,_0x2e5f16),this[_0x729015(0x1fd)]=_0x2d4601,this[_0x729015(0x387)]=_0x4f6157,this[_0x729015(0x2f4)]=_0x45cd80,this[_0x729015(0x274)]=_0x2e5f16,g(this,_0x729015(0x304),_0x729015(0x234));}[_0x4c0aa4(0x238)](_0x29ca3e){const _0x3a4c78=_0x4c0aa4;let _0x24ef4b=this[_0x3a4c78(0x1fd)][_0x3a4c78(0x47e)](k,this[_0x3a4c78(0x426)],this[_0x3a4c78(0x27c)],[_0x29ca3e],this[_0x3a4c78(0x3bf)]);return _0x24ef4b[_0x3a4c78(0x1c0)](),_0x24ef4b[_0x3a4c78(0x3b3)](),_0x24ef4b;}['onRemoteChangeset'](_0x368bbb){const _0x13792f=_0x4c0aa4;if(this['_checkMissing'](_0x368bbb))return this[_0x13792f(0x1fd)][_0x13792f(0x47e)](P,this[_0x13792f(0x426)],this['type'],null,[],null,[_0x368bbb],this[_0x13792f(0x3bf)]);try{let _0x4ea4ea=this[_0x13792f(0x2f4)]['transformMutationsWithChangeset'](_0x368bbb,[e[_0x13792f(0x2aa)]]);if((0x0,e[_0x13792f(0x309)])(_0x4ea4ea)){let {c1Prime:_0x4b3a91}=_0x4ea4ea;return this['_executeRemoteChangeset'](_0x4b3a91),this;}throw _0x4ea4ea[_0x13792f(0x338)];}catch(_0xf859a3){return this[_0x13792f(0x387)]['error'](_0xf859a3),this[_0x13792f(0x199)](!0x1);}}['_onConflict'](_0x500951){const _0x17a83e=_0x4c0aa4;return this[_0x17a83e(0x1fd)]['createInstance'](M,this[_0x17a83e(0x426)],this['type'],null,[],this['_handler'],_0x500951);}[_0x4c0aa4(0x191)](_0xb5192b){const _0x376dc0=_0x4c0aa4;if(_0xb5192b[_0x376dc0(0x3b1)]<=this[_0x376dc0(0x3a0)]())return this;throw Error(_0x376dc0(0x317));}['onRemoteRej'](){const _0xe9f978=_0x4c0aa4;throw Error(_0xe9f978(0x1b0));}[_0x4c0aa4(0x18d)](){return this;}['toggleOffline'](){const _0xffbc12=_0x4c0aa4;return this[_0xffbc12(0x1fd)][_0xffbc12(0x47e)](N,this[_0xffbc12(0x426)],this[_0xffbc12(0x27c)],null,[],this[_0xffbc12(0x3bf)]);}['toggleOnline'](){return this;}[_0x4c0aa4(0x1f9)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4c0aa4(0x1db)](){const _0x2d96ae=_0x4c0aa4;let _0x42ae27=this['_revisionService'][_0x2d96ae(0x25c)](this[_0x2d96ae(0x426)]);return this['_handler']['onMissingChangesets']({'from':_0x42ae27,'to':0x0}),this[_0x2d96ae(0x1fd)][_0x2d96ae(0x47e)](P,this['unitID'],this['type'],null,[],null,[],this[_0x2d96ae(0x3bf)]);}};O=y([v(0x3,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x252)])),v(0x4,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x5,t[_0x4c0aa4(0x267)]),v(0x6,t['ICommandService']),v(0x7,t[_0x4c0aa4(0x2f9)]),v(0x8,e['ITransformService']),v(0x9,(0x0,t[_0x4c0aa4(0x37d)])(S))],O);let k=Le=class extends D{constructor(_0x5cf610,_0x178feb,_0x23dccc,_0x41273a,_0x4f739c,_0xdd3844,_0x281dea,_0x59bc13,_0x2cec6b,_0x3e264c,_0x12a59a,_0x185c3a,_0x4dbf18,_0x3511b9){const _0x462fa2=_0x4c0aa4;super(_0x5cf610,_0x178feb,null,_0x23dccc,_0x41273a,_0x2cec6b,_0x4dbf18,_0xdd3844,_0x3511b9),this[_0x462fa2(0x1fd)]=_0x4f739c,this[_0x462fa2(0x203)]=_0x281dea,this[_0x462fa2(0x387)]=_0x59bc13,this[_0x462fa2(0x2a2)]=_0x3e264c,this[_0x462fa2(0x2f4)]=_0x12a59a,this[_0x462fa2(0x294)]=_0x185c3a,g(this,_0x462fa2(0x304),'pending'),g(this,_0x462fa2(0x2f3),null),g(this,_0x462fa2(0x1b9),null);}['appendMutation'](_0x2f389a){const _0x26465e=_0x4c0aa4;return this['_pendingMutations'][_0x26465e(0x1e4)](_0x2f389a),this[_0x26465e(0x3b3)](),this;}[_0x4c0aa4(0x324)](_0x348806){const _0x3d7c36=_0x4c0aa4;if(this[_0x3d7c36(0x1d3)](_0x348806))return this[_0x3d7c36(0x44e)](),this['_injector'][_0x3d7c36(0x47e)](P,this[_0x3d7c36(0x426)],this[_0x3d7c36(0x27c)],null,this[_0x3d7c36(0x34c)],null,[_0x348806],this['_handler']);try{let _0x3bd980=this[_0x3d7c36(0x2f4)][_0x3d7c36(0x2e4)](_0x348806,this[_0x3d7c36(0x34c)]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x3bd980)){let {c1Prime:_0x4c437e,m2Prime:_0x41e220}=_0x3bd980;this[_0x3d7c36(0x1df)](_0x4c437e);let _0x3bc5e9=this[_0x3d7c36(0x1fd)][_0x3d7c36(0x47e)](Le,this[_0x3d7c36(0x426)],this[_0x3d7c36(0x27c)],_0x41e220,this[_0x3d7c36(0x3bf)]);this['_clearScheduledTask']();let _0x47984b=new Date()['getTime'](),_0x4b748c=this[_0x3d7c36(0x2f3)]?Math['max'](this[_0x3d7c36(0x2f3)]-_0x47984b,0x0):this[_0x3d7c36(0x450)]();return _0x3bc5e9[_0x3d7c36(0x1c0)](_0x4b748c),_0x3bc5e9;}throw _0x3bd980[_0x3d7c36(0x338)];}catch(_0x5cbc1c){return this[_0x3d7c36(0x387)][_0x3d7c36(0x338)](_0x5cbc1c),this[_0x3d7c36(0x199)](!0x1);}}[_0x4c0aa4(0x191)](_0x7432ea){const _0x539c0b=_0x4c0aa4;if(_0x7432ea[_0x539c0b(0x3b1)]<=this[_0x539c0b(0x3a0)]())return this;throw Error(_0x539c0b(0x2d1));}[_0x4c0aa4(0x376)](){const _0x138064=_0x4c0aa4;throw Error(_0x138064(0x23d));}[_0x4c0aa4(0x18d)](){return this;}[_0x4c0aa4(0x247)](){const _0x2e3b1a=_0x4c0aa4;return this[_0x2e3b1a(0x44e)](),this[_0x2e3b1a(0x1fd)]['createInstance'](N,this[_0x2e3b1a(0x426)],this[_0x2e3b1a(0x27c)],null,this[_0x2e3b1a(0x34c)],this[_0x2e3b1a(0x3bf)]);}[_0x4c0aa4(0x3e6)](){return this;}[_0x4c0aa4(0x1c0)](_0x436c85){const _0x19b615=_0x4c0aa4;let _0x5ca8f4=_0x436c85==null?this[_0x19b615(0x450)]():_0x436c85;this[_0x19b615(0x2f3)]=new Date()[_0x19b615(0x33a)]()+_0x5ca8f4,this[_0x19b615(0x1b9)]=setTimeout(()=>{const _0x1a6aa9=_0x19b615;this[_0x1a6aa9(0x44e)]();let _0x3b0bfb=null;switch(this['type']){case t[_0x1a6aa9(0x425)][_0x1a6aa9(0x286)]:_0x3b0bfb=T(this[_0x1a6aa9(0x34c)],this[_0x1a6aa9(0x426)],this[_0x1a6aa9(0x294)],this[_0x1a6aa9(0x224)],this[_0x1a6aa9(0x203)]);break;case t[_0x1a6aa9(0x425)][_0x1a6aa9(0x1d6)]:_0x3b0bfb=this[_0x1a6aa9(0x34c)][_0x1a6aa9(0x31a)](_0x1e0bd9=>_0x1e0bd9['id']===n[_0x1a6aa9(0x375)]['id'])?Oe(this[_0x1a6aa9(0x34c)],this[_0x1a6aa9(0x426)],this['_univerInstanceService'],this[_0x1a6aa9(0x224)],this['_memberService']):T(this[_0x1a6aa9(0x34c)],this['unitID'],this[_0x1a6aa9(0x294)],this[_0x1a6aa9(0x224)],this['_memberService']);break;case t[_0x1a6aa9(0x425)]['UNIVER_SLIDE']:_0x3b0bfb=De(this['_pendingMutations'],this[_0x1a6aa9(0x426)],this['_univerInstanceService'],this[_0x1a6aa9(0x224)],this[_0x1a6aa9(0x203)]);break;case t[_0x1a6aa9(0x425)]['UNIVER_BOARD']:_0x3b0bfb=T(this[_0x1a6aa9(0x34c)],this[_0x1a6aa9(0x426)],this[_0x1a6aa9(0x294)],this[_0x1a6aa9(0x224)],this[_0x1a6aa9(0x203)]);break;case t['UniverInstanceType']['UNIVER_BASE']:_0x3b0bfb=T(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x1a6aa9(0x224)],this[_0x1a6aa9(0x203)]);break;default:throw Error(_0x1a6aa9(0x434)+this[_0x1a6aa9(0x27c)]+_0x1a6aa9(0x477));}let {changeset:_0x3e8485,pendingMutations:_0x1ae08d}=_0x3b0bfb;this['_handler']['onSendChangeset'](_0x3e8485);let _0x5153c7=_0x1ae08d[_0x1a6aa9(0x1c9)]?this[_0x1a6aa9(0x1fd)][_0x1a6aa9(0x47e)](j,this[_0x1a6aa9(0x426)],this[_0x1a6aa9(0x27c)],_0x3e8485,_0x1ae08d,this[_0x1a6aa9(0x3bf)],void 0x0):this[_0x1a6aa9(0x1fd)][_0x1a6aa9(0x47e)](A,this[_0x1a6aa9(0x426)],this[_0x1a6aa9(0x27c)],_0x3e8485,this[_0x1a6aa9(0x3bf)]);_0x5153c7['_updateLocalCache'](),this['_handler']['onStateChange'](this,_0x5153c7);},_0x5ca8f4);}[_0x4c0aa4(0x450)](){const _0x1497d6=_0x4c0aa4;var _0x2fe662;let _0x56ab27=this['_configService']['getConfig'](m);return(_0x2fe662=_0x56ab27==null?void 0x0:_0x56ab27[_0x1497d6(0x486)])==null?0x7d0:_0x2fe662;}['resend'](){const _0x14c4f1=_0x4c0aa4;throw Error(_0x14c4f1(0x460));}[_0x4c0aa4(0x44e)](){const _0xf66e9d=_0x4c0aa4;this[_0xf66e9d(0x1b9)]!=null&&(clearTimeout(this[_0xf66e9d(0x1b9)]),this['_sendingTimer']=null);}[_0x4c0aa4(0x199)](_0x50f249){const _0x4d3ef8=_0x4c0aa4;return this[_0x4d3ef8(0x44e)](),this[_0x4d3ef8(0x1fd)][_0x4d3ef8(0x47e)](M,this['unitID'],this[_0x4d3ef8(0x27c)],null,this[_0x4d3ef8(0x34c)],this[_0x4d3ef8(0x3bf)],_0x50f249);}};k=Le=y([v(0x4,(0x0,t['Inject'])(t['Injector'])),v(0x5,(0x0,t['Inject'])(e['RevisionService'])),v(0x6,(0x0,t['Inject'])(b)),v(0x7,t[_0x4c0aa4(0x2f9)]),v(0x8,t['ICommandService']),v(0x9,t['IConfigService']),v(0xa,e[_0x4c0aa4(0x34f)]),v(0xb,t[_0x4c0aa4(0x31d)]),v(0xc,t[_0x4c0aa4(0x267)]),v(0xd,(0x0,t['Optional'])(S))],k);let A=Re=class extends D{constructor(_0x24b4fc,_0x116806,_0x33f935,_0x3ed065,_0x3cc5d0,_0x5479e8,_0x32ac6b,_0x1c96b2,_0x56ed84,_0x299cfb,_0x5eb268){const _0x4296e6=_0x4c0aa4;super(_0x24b4fc,_0x116806,_0x33f935,[],_0x3ed065,_0x32ac6b,_0x299cfb,_0x5479e8,_0x5eb268),this['_injector']=_0x3cc5d0,this['_logService']=_0x1c96b2,this[_0x4296e6(0x2f4)]=_0x56ed84,g(this,_0x4296e6(0x304),_0x4296e6(0x36b)),g(this,'_resendTimeout',0x0),g(this,_0x4296e6(0x49d),0x0),g(this,_0x4296e6(0x22f),void 0x0),g(this,'_sender',void 0x0);}[_0x4c0aa4(0x238)](_0x5572e5){const _0x1fbd19=_0x4c0aa4;this[_0x1fbd19(0x44e)]();let _0x596dd8=this['_injector'][_0x1fbd19(0x47e)](j,this[_0x1fbd19(0x426)],this[_0x1fbd19(0x27c)],this[_0x1fbd19(0x2b7)],[_0x5572e5],this[_0x1fbd19(0x3bf)],this[_0x1fbd19(0x22f)]);return _0x596dd8[_0x1fbd19(0x3b3)](),_0x596dd8;}[_0x4c0aa4(0x324)](_0x1ede38){const _0x20e1c7=_0x4c0aa4;if(this[_0x20e1c7(0x1d3)](_0x1ede38))return this['_clearScheduledTask'](),this[_0x20e1c7(0x1fd)]['createInstance'](P,this[_0x20e1c7(0x426)],this[_0x20e1c7(0x27c)],this[_0x20e1c7(0x2b7)],[],null,[_0x1ede38],this[_0x20e1c7(0x3bf)]);try{let _0x3d71ee=this['_transformService'][_0x20e1c7(0x38c)]([_0x1ede38],[this[_0x20e1c7(0x2b7)]],!0x1);if((0x0,e['isTransformChangesetsSuccess'])(_0x3d71ee)){let {c1Prime:_0x31cdf0,c2Prime:_0x33d5ba}=_0x3d71ee;this[_0x20e1c7(0x1df)](_0x31cdf0[0x0]),_0x33d5ba[0x0][_0x20e1c7(0x314)]=this[_0x20e1c7(0x3a0)](),this[_0x20e1c7(0x44e)]();let _0x5bf093=this[_0x20e1c7(0x1fd)][_0x20e1c7(0x47e)](Re,this[_0x20e1c7(0x426)],this[_0x20e1c7(0x27c)],_0x33d5ba[0x0],this[_0x20e1c7(0x3bf)]);return _0x5bf093['_updateLocalCache'](),_0x5bf093;}throw _0x3d71ee[_0x20e1c7(0x338)];}catch(_0x1be810){return this['_logService'][_0x20e1c7(0x338)](_0x1be810),this['_onConflict'](!0x1);}}[_0x4c0aa4(0x191)](_0x5727c8){const _0x18beab=_0x4c0aa4;this['_clearScheduledTask']();let _0x52cc5c=this[_0x18beab(0x224)][_0x18beab(0x25c)](this[_0x18beab(0x426)]);if(_0x5727c8[_0x18beab(0x3b1)]<=_0x52cc5c)return this;if(this[_0x18beab(0x1d3)](_0x5727c8))return this[_0x18beab(0x1fd)][_0x18beab(0x47e)](P,this['unitID'],this[_0x18beab(0x27c)],this['_awaitingChangeset'],[],_0x5727c8[_0x18beab(0x3b1)],[],this[_0x18beab(0x3bf)]);this[_0x18beab(0x411)]();let _0x2c7073=this[_0x18beab(0x1fd)][_0x18beab(0x47e)](O,this[_0x18beab(0x426)],this[_0x18beab(0x27c)],this[_0x18beab(0x3bf)]);return _0x2c7073[_0x18beab(0x3b3)](),_0x2c7073;}[_0x4c0aa4(0x376)](_0x449ab9){const _0x401ce3=_0x4c0aa4;return this['_onConflict'](!!(_0x449ab9!=null&&_0x449ab9[_0x401ce3(0x1d9)]));}[_0x4c0aa4(0x18d)](_0x8150a9){const _0x22fdd6=_0x4c0aa4;return this[_0x22fdd6(0x49d)]>He?this[_0x22fdd6(0x247)]():(this[_0x22fdd6(0x22f)]=Ie(this[_0x22fdd6(0x258)],{'timeout':this[_0x22fdd6(0x258)],'reqId':_0x8150a9[_0x22fdd6(0x2be)]}),this[_0x22fdd6(0x494)]=this[_0x22fdd6(0x22f)][_0x22fdd6(0x3a4)](({reqId:_0x343fee,timeout:_0x5df7ff})=>{this['_resendWithTimeout'](_0x343fee,_0x5df7ff);}),this);}['toggleOffline'](){const _0x14b7cd=_0x4c0aa4;return this[_0x14b7cd(0x44e)](),this[_0x14b7cd(0x1fd)]['createInstance'](N,this['unitID'],this['type'],this[_0x14b7cd(0x2b7)],[],this[_0x14b7cd(0x3bf)]);}[_0x4c0aa4(0x3e6)](){return this;}[_0x4c0aa4(0x1f9)](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}['_onConflict'](_0x44f895){const _0x14181d=_0x4c0aa4;return this[_0x14181d(0x44e)](),this['_injector'][_0x14181d(0x47e)](M,this[_0x14181d(0x426)],this[_0x14181d(0x27c)],this[_0x14181d(0x2b7)],[],this[_0x14181d(0x3bf)],_0x44f895);}['_resendWithTimeout'](_0x2717d2,_0x1ef3de){const _0x1be225=_0x4c0aa4;var _0x3808eb;_0x2717d2===((_0x3808eb=this[_0x1be225(0x2b7)])==null?void 0x0:_0x3808eb[_0x1be225(0x2be)])&&(this[_0x1be225(0x1f9)](),this[_0x1be225(0x258)]=_0x1ef3de===0x0?0x3e8:Math[_0x1be225(0x3a1)](_0x1ef3de*0x2,Ve),this[_0x1be225(0x49d)]+=this[_0x1be225(0x258)]);}[_0x4c0aa4(0x44e)](){const _0xa76104=_0x4c0aa4;var _0x54c276;(_0x54c276=this['_sender'])==null||_0x54c276[_0xa76104(0x2dc)](),this['_resendTimeout']=0x0,this[_0xa76104(0x49d)]=0x0;}};A=Re=y([v(0x4,(0x0,t['Inject'])(t[_0x4c0aa4(0x2c0)])),v(0x5,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x252)])),v(0x6,t[_0x4c0aa4(0x416)]),v(0x7,t[_0x4c0aa4(0x2f9)]),v(0x8,e['ITransformService']),v(0x9,t[_0x4c0aa4(0x267)]),v(0xa,(0x0,t[_0x4c0aa4(0x37d)])(S))],A);let j=ze=class extends D{constructor(_0x1afddc,_0x130525,_0x1dfe93,_0xe2aaa1,_0x3c3726,_0x3ea453,_0xe6f4bb,_0x438299,_0x48b583,_0x5f1e71,_0xb82bde,_0x4472ee,_0x447092){const _0x104d67=_0x4c0aa4;super(_0x1afddc,_0x130525,_0x1dfe93,_0xe2aaa1,_0x3c3726,_0x48b583,_0x4472ee,_0x438299,_0x447092),this[_0x104d67(0x1fd)]=_0xe6f4bb,this[_0x104d67(0x387)]=_0x5f1e71,this[_0x104d67(0x2f4)]=_0xb82bde,this['localCacheService']=_0x447092,g(this,_0x104d67(0x304),_0x104d67(0x369)),g(this,_0x104d67(0x258),0x0),g(this,_0x104d67(0x49d),0x0),g(this,_0x104d67(0x22f),void 0x0),g(this,_0x104d67(0x494),void 0x0),_0x3ea453&&(this['_resendTimer']=_0x3ea453,this[_0x104d67(0x494)]=this[_0x104d67(0x22f)][_0x104d67(0x3a4)](({reqId:_0x2a8ffe,timeout:_0x5de0de})=>{this['_resendWithTimeout'](_0x2a8ffe,_0x5de0de);}));}['appendMutation'](_0x1860b7){const _0x1b0823=_0x4c0aa4;return this[_0x1b0823(0x34c)][_0x1b0823(0x1e4)](_0x1860b7),this;}[_0x4c0aa4(0x324)](_0x269d22){const _0xc79ad5=_0x4c0aa4;if(this[_0xc79ad5(0x1d3)](_0x269d22))return this['_clearScheduledTask'](),this['_injector'][_0xc79ad5(0x47e)](P,this[_0xc79ad5(0x426)],this[_0xc79ad5(0x27c)],this[_0xc79ad5(0x2b7)],this['_pendingMutations'],null,[_0x269d22],this[_0xc79ad5(0x3bf)]);try{let _0x1aec53=this['_transformService'][_0xc79ad5(0x38c)]([_0x269d22],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0xc79ad5(0x47c)])(_0x1aec53)){let {c1Prime:_0x456926,c2Prime:_0x1ea695}=_0x1aec53,_0xba23a=this[_0xc79ad5(0x2f4)][_0xc79ad5(0x2e4)](_0x456926[0x0],this['_pendingMutations']);if((0x0,e[_0xc79ad5(0x309)])(_0xba23a)){let {c1Prime:_0x36a95d,m2Prime:_0x4dc151}=_0xba23a;return this['_executeRemoteChangeset'](_0x36a95d),_0x1ea695[0x0][_0xc79ad5(0x314)]=this[_0xc79ad5(0x3a0)](),this[_0xc79ad5(0x44e)](),this['_injector'][_0xc79ad5(0x47e)](ze,this[_0xc79ad5(0x426)],this[_0xc79ad5(0x27c)],_0x1ea695[0x0],_0x4dc151,this[_0xc79ad5(0x3bf)],void 0x0);}throw _0xba23a[_0xc79ad5(0x338)];}throw _0x1aec53[_0xc79ad5(0x338)];}catch(_0x51cb92){return this['_logService'][_0xc79ad5(0x338)](_0x51cb92),this[_0xc79ad5(0x199)](!0x1);}}[_0x4c0aa4(0x191)](_0x290bf2){const _0x3ec26d=_0x4c0aa4;this['_clearScheduledTask']();let _0x239e24=this['_getCurrentRevision']();if(_0x290bf2['revision']<=_0x239e24)return this;if(this[_0x3ec26d(0x1d3)](_0x290bf2))return this[_0x3ec26d(0x1fd)]['createInstance'](P,this[_0x3ec26d(0x426)],this[_0x3ec26d(0x27c)],this[_0x3ec26d(0x2b7)],this[_0x3ec26d(0x34c)],_0x290bf2[_0x3ec26d(0x3b1)],[],this[_0x3ec26d(0x3bf)]);this['_incrementRevisionNumber']();let _0xbfdb62=this[_0x3ec26d(0x1fd)][_0x3ec26d(0x47e)](k,this[_0x3ec26d(0x426)],this[_0x3ec26d(0x27c)],this[_0x3ec26d(0x34c)],this[_0x3ec26d(0x3bf)]);return _0xbfdb62['_schedule'](),_0xbfdb62[_0x3ec26d(0x3b3)](),_0xbfdb62;}[_0x4c0aa4(0x376)](_0x1536bc){const _0x3fe5ab=_0x4c0aa4;return this[_0x3fe5ab(0x199)](!!(_0x1536bc!=null&&_0x1536bc[_0x3fe5ab(0x1d9)]));}['onRemoteRetry'](_0x1887a1){const _0x2e4555=_0x4c0aa4;return this[_0x2e4555(0x49d)]>He?this['toggleOffline']():(this[_0x2e4555(0x22f)]=Ie(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x1887a1[_0x2e4555(0x2be)]}),this[_0x2e4555(0x494)]=this[_0x2e4555(0x22f)][_0x2e4555(0x3a4)](({reqId:_0x491bd3,timeout:_0x553427})=>{const _0x513221=_0x2e4555;this[_0x513221(0x19c)](_0x491bd3,_0x553427);}),this);}[_0x4c0aa4(0x247)](){const _0x3d391a=_0x4c0aa4;return this['_clearScheduledTask'](),this[_0x3d391a(0x1fd)][_0x3d391a(0x47e)](N,this['unitID'],this[_0x3d391a(0x27c)],this[_0x3d391a(0x2b7)],this[_0x3d391a(0x34c)],this[_0x3d391a(0x3bf)]);}['toggleOnline'](){return this;}['resend'](){const _0x2dba72=_0x4c0aa4;this['_handler'][_0x2dba72(0x3b0)](this[_0x2dba72(0x2b7)]);}[_0x4c0aa4(0x199)](_0x4be5a5){const _0x1feaf3=_0x4c0aa4;return this['_clearScheduledTask'](),this['_injector'][_0x1feaf3(0x47e)](M,this[_0x1feaf3(0x426)],this[_0x1feaf3(0x27c)],null,this[_0x1feaf3(0x34c)],this[_0x1feaf3(0x3bf)],_0x4be5a5);}[_0x4c0aa4(0x19c)](_0x47aa63,_0x93f810){const _0xf18242=_0x4c0aa4;var _0x591947;_0x47aa63===((_0x591947=this[_0xf18242(0x2b7)])==null?void 0x0:_0x591947[_0xf18242(0x2be)])&&(this['resend'](),this['_resendTimeout']=_0x93f810===0x0?0x3e8:Math['min'](_0x93f810*0x2,Ve),this['_maxTotalRetryTimeout']+=this[_0xf18242(0x258)]);}['_clearScheduledTask'](){const _0x1b7722=_0x4c0aa4;var _0x2256c0;(_0x2256c0=this[_0x1b7722(0x494)])==null||_0x2256c0[_0x1b7722(0x2dc)](),this[_0x1b7722(0x258)]=0x0,this[_0x1b7722(0x49d)]=0x0;}};j=ze=y([v(0x6,(0x0,t['Inject'])(t[_0x4c0aa4(0x2c0)])),v(0x7,(0x0,t[_0x4c0aa4(0x351)])(e['RevisionService'])),v(0x8,t['ICommandService']),v(0x9,t[_0x4c0aa4(0x2f9)]),v(0xa,e[_0x4c0aa4(0x34f)]),v(0xb,t[_0x4c0aa4(0x267)]),v(0xc,(0x0,t[_0x4c0aa4(0x37d)])(S))],j);let M=class extends D{constructor(_0x269d02,_0x174e86,_0x25f45d,_0x39f25c,_0x43f51b,_0x3b525c=!0x1,_0x739695,_0x176d52,_0x6f513,_0x5134f1,_0x394a49,_0x1901d7,_0x2d5e3f){const _0x176365=_0x4c0aa4;super(_0x269d02,_0x174e86,_0x25f45d,_0x39f25c,_0x43f51b,_0x176d52,_0x6f513,_0x5134f1,_0x2d5e3f),this[_0x176365(0x39d)]=_0x3b525c,this[_0x176365(0x3ee)]=_0x739695,this[_0x176365(0x41b)]=_0x394a49,this[_0x176365(0x34a)]=_0x1901d7,this[_0x176365(0x274)]=_0x2d5e3f,g(this,_0x176365(0x304),_0x176365(0x193)),this['_showConflictNotification'](),this[_0x176365(0x3ce)](),this[_0x176365(0x44b)]();}[_0x4c0aa4(0x238)](){return this;}[_0x4c0aa4(0x324)](){return this;}[_0x4c0aa4(0x191)](){return this;}[_0x4c0aa4(0x376)](){return this;}[_0x4c0aa4(0x18d)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x4c0aa4(0x1f9)](){const _0x4346d4=_0x4c0aa4;throw Error(_0x4346d4(0x313));}[_0x4c0aa4(0x3ce)](){const _0x4d581f=_0x4c0aa4;var _0x4f62aa,_0x2aefa4,_0x3e4b79;(_0x4f62aa=this[_0x4d581f(0x2c4)])==null||(_0x2aefa4=_0x4f62aa['backupOfflineData'])==null||(_0x2aefa4=_0x2aefa4[_0x4d581f(0x475)](_0x4f62aa,this[_0x4d581f(0x426)],_0x4d581f(0x193)))==null||_0x2aefa4[_0x4d581f(0x3c6)](()=>void 0x0),(_0x3e4b79=this[_0x4d581f(0x2c4)])==null||_0x3e4b79[_0x4d581f(0x242)](this[_0x4d581f(0x426)],this['type'],null,[]);}[_0x4c0aa4(0x451)](){const _0x40dfdc=_0x4c0aa4;this[_0x40dfdc(0x39d)]?this['_collaborationUIEventService']['emitEvent']({'id':_0x40dfdc(0x43b)}):this[_0x40dfdc(0x34a)][_0x40dfdc(0x40a)]({'id':'CONFLICT'});}[_0x4c0aa4(0x44b)](){const _0x4db72d=_0x4c0aa4;this[_0x4db72d(0x3ee)][_0x4db72d(0x4a6)](new r[(_0x4db72d(0x2fa))](this[_0x4db72d(0x426)])['id'],!0x1);}};M=y([v(0x6,(0x0,t['Inject'])(t[_0x4c0aa4(0x1e5)])),v(0x7,t[_0x4c0aa4(0x416)]),v(0x8,t[_0x4c0aa4(0x267)]),v(0x9,(0x0,t['Inject'])(e[_0x4c0aa4(0x252)])),v(0xa,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x28b)])),v(0xb,(0x0,t['Inject'])(_)),v(0xc,(0x0,t[_0x4c0aa4(0x37d)])(S))],M);let N=class extends D{constructor(_0x49234a,_0x2a439b,_0x205c7c,_0x44e125,_0x2f1937,_0x3a5068,_0x199930,_0x4b6634,_0x7542f4,_0x57978f){const _0x1604b6=_0x4c0aa4;super(_0x49234a,_0x2a439b,_0x205c7c,_0x44e125,_0x2f1937,_0x4b6634,_0x7542f4,_0x199930,_0x57978f),this[_0x1604b6(0x1fd)]=_0x3a5068,g(this,'status',_0x1604b6(0x1d4));}[_0x4c0aa4(0x238)](_0x47721e){const _0x40d6db=_0x4c0aa4;return this[_0x40d6db(0x34c)][_0x40d6db(0x1e4)](_0x47721e),this['_updateLocalCache'](),this;}[_0x4c0aa4(0x324)](_0xc2822){const _0x3b9c0c=_0x4c0aa4;throw Error(_0x3b9c0c(0x373));}[_0x4c0aa4(0x191)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x4c0aa4(0x376)](){const _0x356357=_0x4c0aa4;throw Error(_0x356357(0x46e));}[_0x4c0aa4(0x18d)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){const _0x3dd551=_0x4c0aa4;let {_injector:_0x3cfaf3,_pendingMutations:_0x22dd3d,_awaitingChangeset:_0x468097,unitID:_0x2cbf32,_handler:_0x111f4f,type:_0x862e6c}=this,_0x19f263=Ue(_0x3cfaf3,_0x2cbf32,_0x862e6c,_0x468097,_0x22dd3d,_0x111f4f);return _0x19f263 instanceof k?_0x19f263['_schedule']():(_0x19f263 instanceof j||_0x19f263 instanceof A)&&_0x19f263[_0x3dd551(0x1f9)](),_0x19f263;}[_0x4c0aa4(0x1f9)](){const _0x351159=_0x4c0aa4;throw Error(_0x351159(0x2dd));}};N=y([v(0x5,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x6,(0x0,t[_0x4c0aa4(0x351)])(e['RevisionService'])),v(0x7,t[_0x4c0aa4(0x416)]),v(0x8,t[_0x4c0aa4(0x267)]),v(0x9,(0x0,t['Optional'])(S))],N);let P=class extends D{constructor(_0x336ae0,_0x1543ad,_0x1de7ab,_0x4f1682,_0x205790,_0xa2406a,_0x32e70f,_0x2866cf,_0x9fd74b,_0x2ffe16,_0x4c272f,_0x3b70bd,_0x31a182,_0x3e323b){const _0xfa104=_0x4c0aa4;super(_0x336ae0,_0x1543ad,_0x1de7ab,_0x4f1682,_0x32e70f,_0x4c272f,_0x3b70bd,_0x9fd74b,_0x3e323b),this['_acknowledgedAwaitingRevision']=_0x205790,this['_queuedRemoteChangesets']=_0xa2406a,this[_0xfa104(0x1fd)]=_0x2866cf,this[_0xfa104(0x387)]=_0x2ffe16,this['_transformService']=_0x31a182,this[_0xfa104(0x274)]=_0x3e323b,g(this,_0xfa104(0x304),_0xfa104(0x3b8));}[_0x4c0aa4(0x225)](_0x177172){const _0x270c68=_0x4c0aa4;try{if(this[_0x270c68(0x406)](_0x177172)[_0x270c68(0x2a4)])throw Error(_0x270c68(0x4a4));if(this[_0x270c68(0x406)]([...this['_queuedRemoteChangesets']][_0x270c68(0x432)]((_0x1c1911,_0x172a93)=>_0x1c1911[_0x270c68(0x3b1)]-_0x172a93[_0x270c68(0x3b1)]))['missingChangesets'])return this[_0x270c68(0x284)]=[],this[_0x270c68(0x3b3)](),this[_0x270c68(0x3bf)][_0x270c68(0x254)]({'from':this[_0x270c68(0x3a0)](),'to':0x0}),this;let _0x1d9517=this[_0x270c68(0x2b7)],_0x317a3c=this[_0x270c68(0x34c)],_0x1622cf;if(_0x1d9517&&_0x317a3c[_0x270c68(0x1c9)]!==0x0)_0x1622cf=this[_0x270c68(0x1fd)][_0x270c68(0x47e)](j,this['unitID'],this['type'],_0x1d9517,_0x317a3c,this[_0x270c68(0x3bf)],void 0x0);else{if(_0x1d9517&&_0x317a3c[_0x270c68(0x1c9)]===0x0)_0x1d9517[_0x270c68(0x314)]=this[_0x270c68(0x3a0)](),_0x1622cf=this[_0x270c68(0x1fd)][_0x270c68(0x47e)](A,this['unitID'],this['type'],_0x1d9517,this['_handler']);else{if(_0x317a3c[_0x270c68(0x1c9)]!==0x0){let _0x5ed6aa=this[_0x270c68(0x1fd)][_0x270c68(0x47e)](k,this[_0x270c68(0x426)],this[_0x270c68(0x27c)],_0x317a3c,this['_handler']);_0x5ed6aa[_0x270c68(0x1c0)](),_0x1622cf=_0x5ed6aa;}else _0x1622cf=this[_0x270c68(0x1fd)][_0x270c68(0x47e)](O,this[_0x270c68(0x426)],this['type'],this[_0x270c68(0x3bf)]);}}return _0x1622cf[_0x270c68(0x3b3)](),_0x1622cf;}catch(_0x5d264e){return this['_logService']['error'](_0x270c68(0x446),_0x270c68(0x483),_0x5d264e),this[_0x270c68(0x1fd)]['createInstance'](M,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x270c68(0x34c)],this[_0x270c68(0x3bf)],!0x1);}}[_0x4c0aa4(0x406)](_0x136805){const _0x43d28f=_0x4c0aa4;this[_0x43d28f(0x312)]();for(let _0xebb72f=0x0;_0xebb72f<_0x136805['length'];_0xebb72f++){let _0x3aaa1b=_0x136805[_0xebb72f],_0x483294=this[_0x43d28f(0x3a0)]();if(!(_0x3aaa1b['revision']<=_0x483294)){if(_0x3aaa1b['revision']>_0x483294+0x1)return{'missingChangesets':!0x0};if(this[_0x43d28f(0x2e7)](_0x3aaa1b)){this[_0x43d28f(0x341)]();continue;}this[_0x43d28f(0x19d)](_0x3aaa1b),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x4c0aa4(0x19d)](_0x2c4aaa){const _0x41a0d5=_0x4c0aa4;let _0xb5d169=_0x2c4aaa,_0x3dd466=this[_0x41a0d5(0x2b7)];if(_0x3dd466){let _0x1ed3c3=this[_0x41a0d5(0x2f4)][_0x41a0d5(0x38c)]([_0x2c4aaa],[_0x3dd466],!0x1);if(!(0x0,e[_0x41a0d5(0x47c)])(_0x1ed3c3))throw _0x1ed3c3[_0x41a0d5(0x338)];_0xb5d169=_0x1ed3c3[_0x41a0d5(0x3e8)][0x0],_0x3dd466=_0x1ed3c3['c2Prime'][0x0];}let _0x3b6dd5=this[_0x41a0d5(0x34c)];if(_0x3b6dd5[_0x41a0d5(0x1c9)]){let _0x5eea4c=this[_0x41a0d5(0x2f4)][_0x41a0d5(0x2e4)](_0xb5d169,_0x3b6dd5);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x5eea4c))throw _0x5eea4c[_0x41a0d5(0x338)];_0xb5d169=_0x5eea4c[_0x41a0d5(0x3e8)],_0x3b6dd5=_0x5eea4c[_0x41a0d5(0x465)];}this['_executeRemoteChangeset'](_0xb5d169),_0x3dd466&&(_0x3dd466[_0x41a0d5(0x314)]=this[_0x41a0d5(0x3a0)]()),this[_0x41a0d5(0x2b7)]=_0x3dd466,this[_0x41a0d5(0x34c)]=_0x3b6dd5;}['_acknowledgeAwaitingIfReady'](){const _0xa66f76=_0x4c0aa4;if(!this[_0xa66f76(0x2b7)]||this[_0xa66f76(0x43f)]==null)return;let _0x3251e4=this[_0xa66f76(0x3a0)]();if(this['_acknowledgedAwaitingRevision']<=_0x3251e4)throw Error(_0xa66f76(0x2a3)+this[_0xa66f76(0x43f)]+'.');this[_0xa66f76(0x43f)]===_0x3251e4+0x1&&this['_acknowledgeAwaiting']();}[_0x4c0aa4(0x341)](){const _0x29e018=_0x4c0aa4;this[_0x29e018(0x411)](),this[_0x29e018(0x2b7)]=null,this[_0x29e018(0x43f)]=null;}[_0x4c0aa4(0x2e7)](_0x5e25cd){const _0x290d32=_0x4c0aa4;let _0x2a13a9=this[_0x290d32(0x2b7)];return!_0x2a13a9||!_0x2a13a9[_0x290d32(0x1a3)]||_0x2a13a9[_0x290d32(0x2be)]===null||_0x2a13a9[_0x290d32(0x2be)]===void 0x0?!0x1:_0x5e25cd['unitID']===_0x2a13a9[_0x290d32(0x426)]&&_0x5e25cd[_0x290d32(0x1a3)]===_0x2a13a9['sid']&&_0x5e25cd[_0x290d32(0x2be)]===_0x2a13a9['reqId'];}[_0x4c0aa4(0x1f9)](){const _0x5c3f74=_0x4c0aa4;throw Error(_0x5c3f74(0x405));}['appendMutation'](_0x428478){const _0x595f0a=_0x4c0aa4;return this[_0x595f0a(0x34c)][_0x595f0a(0x1e4)](_0x428478),this;}[_0x4c0aa4(0x324)](_0x1150ea){const _0x28e5d5=_0x4c0aa4;return this['_queuedRemoteChangesets'][_0x28e5d5(0x1e4)](_0x1150ea),this;}['onRemoteAck'](_0xaabc7b){const _0x102605=_0x4c0aa4;if(this['_awaitingChangeset']){let _0x12e464=this[_0x102605(0x3a0)]();return _0xaabc7b[_0x102605(0x3b1)]<=_0x12e464||(_0x12e464+0x1===_0xaabc7b[_0x102605(0x3b1)]?(this[_0x102605(0x411)](),this[_0x102605(0x2b7)]=null,this['_acknowledgedAwaitingRevision']=null):this['_acknowledgedAwaitingRevision']=_0xaabc7b[_0x102605(0x3b1)]),this;}if(_0xaabc7b[_0x102605(0x3b1)]<=this[_0x102605(0x3a0)]())return this;throw Error(_0x102605(0x329));}[_0x4c0aa4(0x376)](_0x195b9c){const _0x1d0836=_0x4c0aa4;return this[_0x1d0836(0x199)](!!(_0x195b9c!=null&&_0x195b9c[_0x1d0836(0x1d9)]));}[_0x4c0aa4(0x18d)](){return this;}[_0x4c0aa4(0x247)](){const _0x376236=_0x4c0aa4;return this[_0x376236(0x1fd)]['createInstance'](N,this['unitID'],this[_0x376236(0x27c)],this[_0x376236(0x2b7)],this['_pendingMutations'],this[_0x376236(0x3bf)]);}[_0x4c0aa4(0x3e6)](){return this;}[_0x4c0aa4(0x199)](_0x1aeab9){const _0x27b142=_0x4c0aa4;return this[_0x27b142(0x1fd)]['createInstance'](M,this[_0x27b142(0x426)],this['type'],this[_0x27b142(0x2b7)],this[_0x27b142(0x34c)],this[_0x27b142(0x3bf)],_0x1aeab9);}};P=y([v(0x7,(0x0,t['Inject'])(t[_0x4c0aa4(0x2c0)])),v(0x8,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x252)])),v(0x9,t[_0x4c0aa4(0x2f9)]),v(0xa,t[_0x4c0aa4(0x416)]),v(0xb,t[_0x4c0aa4(0x267)]),v(0xc,e[_0x4c0aa4(0x34f)]),v(0xd,(0x0,t['Optional'])(S))],P);function Ue(_0x16d283,_0x45db96,_0x5be5cb,_0x43718a,_0x20fd9c,_0x54e7ad){const _0x5d1fa6=_0x4c0aa4;return _0x43718a&&_0x20fd9c[_0x5d1fa6(0x1c9)]?_0x16d283[_0x5d1fa6(0x47e)](j,_0x45db96,_0x5be5cb,_0x43718a,_0x20fd9c,_0x54e7ad,void 0x0):_0x43718a?_0x16d283['createInstance'](A,_0x45db96,_0x5be5cb,_0x43718a,_0x54e7ad):_0x20fd9c[_0x5d1fa6(0x1c9)]?_0x16d283[_0x5d1fa6(0x47e)](k,_0x45db96,_0x5be5cb,_0x20fd9c,_0x54e7ad):_0x16d283[_0x5d1fa6(0x47e)](O,_0x45db96,_0x5be5cb,_0x54e7ad);}let F=class extends t[_0x4c0aa4(0x31c)]{get[_0x4c0aa4(0x45e)](){const _0x579c02=_0x4c0aa4;return this[_0x579c02(0x33e)];}constructor(_0x2ad3f5,_0x2c9cca,_0x4bb796,_0x184609,_0x3defcd,_0x49de52,_0x4670cb,_0x8dd30f,_0x55a251,_0x325ef6,_0x4b77cb,_0x5b2f63,_0x5eb270,_0x4a7c56){const _0x19bce2=_0x4c0aa4;super(),this[_0x19bce2(0x426)]=_0x2ad3f5,this[_0x19bce2(0x458)]=_0x2c9cca,this['_type']=_0x4bb796,this[_0x19bce2(0x1fd)]=_0x184609,this['_compressMutationService']=_0x3defcd,this['_localeService']=_0x49de52,this[_0x19bce2(0x224)]=_0x4670cb,this[_0x19bce2(0x1f7)]=_0x8dd30f,this[_0x19bce2(0x294)]=_0x55a251,this['_logService']=_0x325ef6,this[_0x19bce2(0x440)]=_0x4b77cb,this[_0x19bce2(0x3ee)]=_0x5b2f63,this[_0x19bce2(0x42f)]=_0x5eb270,this[_0x19bce2(0x2c4)]=_0x4a7c56,g(this,_0x19bce2(0x2f6),new i['BehaviorSubject'](null)),g(this,'state$',this['_state$']['asObservable']()),g(this,_0x19bce2(0x33e),void 0x0),g(this,_0x19bce2(0x226),!0x1),g(this,'_changesetSessionId',''),g(this,'_changesetReqId',0x0),g(this,'status$',this[_0x19bce2(0x268)][_0x19bce2(0x331)]((0x0,i[_0x19bce2(0x1c8)])(_0x12f819=>_0x12f819?_0x12f819[_0x19bce2(0x304)]:_0x19bce2(0x1d4)),(0x0,i['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x19bce2(0x310),!0x1),g(this,_0x19bce2(0x388),[]);}async[_0x4c0aa4(0x30d)](){const _0xf9ee9b=_0x4c0aa4;if(this[_0xf9ee9b(0x45e)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0xf9ee9b(0x1f1)]();}[_0x4c0aa4(0x1ee)](){const _0x1dc56e=_0x4c0aa4;return this['_collaborationPaused']=!0x0,(0x0,t[_0x1dc56e(0x2c3)])(()=>{const _0x19fec9=_0x1dc56e;this[_0x19fec9(0x226)]=!0x1,this[_0x19fec9(0x2c8)]();});}[_0x4c0aa4(0x24e)](_0x1187af){const _0xe219e8=_0x4c0aa4;this[_0xe219e8(0x1eb)](_0x1187af);}[_0x4c0aa4(0x370)](_0x5b5b7b){const _0x408eef=_0x4c0aa4;this['_state']=_0x5b5b7b,this[_0x408eef(0x2f6)][_0x408eef(0x201)](_0x5b5b7b);}async[_0x4c0aa4(0x1f1)](){const _0x554f8a=_0x4c0aa4;if(this[_0x554f8a(0x370)](await this[_0x554f8a(0x253)]()),this[_0x554f8a(0x42f)]){var _0x4167f3;(_0x4167f3=this[_0x554f8a(0x42f)])==null||_0x4167f3[_0x554f8a(0x445)](this[_0x554f8a(0x426)]),this[_0x554f8a(0x38b)](this[_0x554f8a(0x42f)][_0x554f8a(0x3cf)](this['unitID'])[_0x554f8a(0x3a4)](_0x312134=>{const _0x357f33=_0x554f8a;this[_0x357f33(0x387)][_0x357f33(0x2d4)](_0x357f33(0x22e),'editing\x20status\x20changed\x20to',_0x312134),_0x312134===0x1?(this[_0x357f33(0x1f7)]['emitEvent']({'id':_0x357f33(0x1e8)}),this['_permissionService'][_0x357f33(0x4a6)](new r[(_0x357f33(0x2fa))](this['unitID'])['id'],!0x1),this[_0x357f33(0x3ee)]['setShowComponents'](!0x1)):(this[_0x357f33(0x3ee)][_0x357f33(0x4a6)](new r[(_0x357f33(0x2fa))](this[_0x357f33(0x426)])['id'],!0x0),this[_0x357f33(0x3ee)][_0x357f33(0x20c)](!0x0));}));}let _0x226098=!0x1;return this[_0x554f8a(0x38b)](this[_0x554f8a(0x458)]['sessionStatus$'][_0x554f8a(0x3a4)](_0x3f2caa=>{const _0x422a96=_0x554f8a;_0x3f2caa===0x3?this[_0x422a96(0x417)](_0x226098):_0x3f2caa===0x2&&(_0x226098=!0x0,this['_toggleOffline']());})),this[_0x554f8a(0x38b)](this['session'][_0x554f8a(0x32b)][_0x554f8a(0x3a4)](_0x4a1400=>{const _0x195148=_0x554f8a;try{switch(_0x4a1400[_0x195148(0x23b)]){case e[_0x195148(0x439)][_0x195148(0x3e5)]:this[_0x195148(0x281)]((0x0,e[_0x195148(0x4ab)])(_0x4a1400[_0x195148(0x233)]));break;case e[_0x195148(0x439)][_0x195148(0x343)]:this[_0x195148(0x20f)](_0x4a1400[_0x195148(0x233)]);break;case e['CollaborationEvent'][_0x195148(0x43d)]:this[_0x195148(0x197)]();break;case e[_0x195148(0x439)][_0x195148(0x219)]:this[_0x195148(0x3a8)](_0x4a1400[_0x195148(0x233)]);break;case e[_0x195148(0x439)][_0x195148(0x342)]:this[_0x195148(0x3cc)](_0x4a1400[_0x195148(0x233)][_0x195148(0x1dd)][_0x195148(0x1c8)](_0x19aef5=>(0x0,e[_0x195148(0x4ab)])(_0x19aef5)));break;case e[_0x195148(0x439)][_0x195148(0x190)]:this[_0x195148(0x197)]({'isPermissionRej':!0x0});break;case e[_0x195148(0x439)][_0x195148(0x1cf)]:break;}}catch(_0x37e7ee){throw console['error'](_0x195148(0x34b),_0x37e7ee),_0x37e7ee;}})),this['_state'];}[_0x4c0aa4(0x35f)](){const _0x46a89f=_0x4c0aa4;this[_0x46a89f(0x310)]=!0x1;}['_lockTransition'](){const _0x54dd0d=_0x4c0aa4;if(this[_0x54dd0d(0x310)])throw Error(_0x54dd0d(0x1b1));this[_0x54dd0d(0x310)]=!0x0;}[_0x4c0aa4(0x1eb)](_0x2b2856){const _0x2ce145=_0x4c0aa4;this['_lockTransition'](),this[_0x2ce145(0x370)](this[_0x2ce145(0x33e)][_0x2ce145(0x238)](_0x2b2856)),this[_0x2ce145(0x35f)]();}[_0x4c0aa4(0x281)](_0x322f44){const _0x125c88=_0x4c0aa4;if(!(_0x322f44[_0x125c88(0x3b1)]<=this[_0x125c88(0x224)][_0x125c88(0x25c)](this[_0x125c88(0x426)]))){if(this[_0x125c88(0x226)]){this['_remoteChangesetQueue'][_0x125c88(0x1e4)](_0x322f44);return;}this['_applyRemoteChangeset'](_0x322f44);}}[_0x4c0aa4(0x2c8)](){const _0x3bd0c5=_0x4c0aa4;this[_0x3bd0c5(0x388)][_0x3bd0c5(0x1a5)](_0x1ff5bf=>this[_0x3bd0c5(0x47b)](_0x1ff5bf)),this[_0x3bd0c5(0x388)]=[];}[_0x4c0aa4(0x47b)](_0xb77da4){const _0x4dd870=_0x4c0aa4;let _0x437515=this['_compressMutationService'][_0x4dd870(0x42d)][_0x4dd870(0x2ad)](this[_0x4dd870(0x39e)]['interceptor'][_0x4dd870(0x1f3)]()[_0x4dd870(0x220)])(_0xb77da4['mutations'],null)||_0xb77da4['mutations'],_0xe74ec2={..._0xb77da4,'mutations':_0x437515};this[_0x4dd870(0x2a6)](),this[_0x4dd870(0x370)](this[_0x4dd870(0x33e)]['onRemoteChangeset'](_0xe74ec2)),this[_0x4dd870(0x35f)]();}[_0x4c0aa4(0x20f)](_0x5d8ff4){const _0x4e7496=_0x4c0aa4;this[_0x4e7496(0x2a6)](),this['_updateState'](this[_0x4e7496(0x33e)][_0x4e7496(0x191)](_0x5d8ff4)),this[_0x4e7496(0x35f)]();}[_0x4c0aa4(0x197)](_0x450e18){const _0x576695=_0x4c0aa4;this['_lockTransition'](),this[_0x576695(0x370)](this[_0x576695(0x33e)][_0x576695(0x376)](_0x450e18)),this[_0x576695(0x35f)]();}['_onRemoteRetry'](_0x15c448){const _0x2c0860=_0x4c0aa4;this[_0x2c0860(0x2a6)](),this[_0x2c0860(0x370)](this['_state'][_0x2c0860(0x18d)](_0x15c448)),this[_0x2c0860(0x35f)]();}[_0x4c0aa4(0x3cc)](_0x4a91e2){const _0xfb3440=_0x4c0aa4;if(!(this[_0xfb3440(0x33e)]instanceof P))throw TypeError(_0xfb3440(0x4a0));let _0x56b1a5=_0x4a91e2[_0xfb3440(0x1c8)](_0x3c13c7=>{const _0x1274fd=_0xfb3440;let _0x28edc7=this[_0x1274fd(0x39e)][_0x1274fd(0x42d)][_0x1274fd(0x2ad)](this[_0x1274fd(0x39e)][_0x1274fd(0x42d)][_0x1274fd(0x1f3)]()[_0x1274fd(0x220)])(_0x3c13c7[_0x1274fd(0x4a9)],null)||_0x3c13c7[_0x1274fd(0x4a9)];return{..._0x3c13c7,'mutations':_0x28edc7};});this[_0xfb3440(0x2a6)](),this[_0xfb3440(0x370)](this['_state'][_0xfb3440(0x225)](_0x56b1a5)),this[_0xfb3440(0x35f)]();}[_0x4c0aa4(0x322)](){const _0x1ddbf7=_0x4c0aa4;this[_0x1ddbf7(0x2a6)](),this[_0x1ddbf7(0x370)](this[_0x1ddbf7(0x33e)][_0x1ddbf7(0x247)]()),this[_0x1ddbf7(0x35f)]();}[_0x4c0aa4(0x417)](_0x2a17e6=!0x1){const _0x4604a2=_0x4c0aa4;this[_0x4604a2(0x2a6)](),this[_0x4604a2(0x370)](this[_0x4604a2(0x33e)][_0x4604a2(0x3e6)]()),this['_unlockTransition']();let _0x732000=this[_0x4604a2(0x33e)];_0x2a17e6&&_0x732000 instanceof O&&(this['_lockTransition'](),this['_updateState'](_0x732000[_0x4604a2(0x1db)]()),this['_unlockTransition']());}async[_0x4c0aa4(0x253)](){return new Promise(_0x1c1653=>{const _0x4ba59b=_0x290d;this[_0x4ba59b(0x458)][_0x4ba59b(0x457)][_0x4ba59b(0x331)]((0x0,i[_0x4ba59b(0x1d8)])(0x1))[_0x4ba59b(0x3a4)](async _0x13f0a4=>{const _0x23b584=_0x4ba59b;_0x1c1653(await this[_0x23b584(0x44a)](_0x13f0a4===0x3));});});}[_0x4c0aa4(0x33c)](){const _0x22a8a4=_0x4c0aa4;let _0x468e6f=this[_0x22a8a4(0x426)];return{'onStateChange':(_0x262d10,_0x4faffe)=>{const _0x386b7c=_0x22a8a4;if(_0x262d10!==this[_0x386b7c(0x33e)])throw Error(_0x386b7c(0x335)+_0x262d10[_0x386b7c(0x304)]+_0x386b7c(0x299)+_0x4faffe[_0x386b7c(0x304)]+'\x0aCurrent:\x20'+this[_0x386b7c(0x33e)][_0x386b7c(0x304)]);this['_updateState'](_0x4faffe);},'onSendChangeset':_0x12d4d0=>{const _0x2ab4eb=_0x22a8a4;_0x12d4d0[_0x2ab4eb(0x1a3)]||(_0x12d4d0[_0x2ab4eb(0x1a3)]=this['_changesetSessionId'],_0x12d4d0['reqId']=++this[_0x2ab4eb(0x1ba)]);let _0x2878b1={'eventID':e[_0x2ab4eb(0x439)][_0x2ab4eb(0x2bf)],'data':{'unitID':_0x12d4d0[_0x2ab4eb(0x426)],'unitType':this['_type'],'changeset':_0x12d4d0,'memberID':this['session'][_0x2ab4eb(0x323)]()}};this['session'][_0x2ab4eb(0x29c)](_0x2878b1,this[_0x2ab4eb(0x426)]);},'onMissingChangesets':({from:_0xb84ce1,to:_0x30f854})=>{const _0x55f7e1=_0x22a8a4;this[_0x55f7e1(0x387)][_0x55f7e1(0x2d4)](_0x55f7e1(0x22e),_0x55f7e1(0x2c9)+_0xb84ce1+'\x20to\x20'+_0x30f854);let _0x10fa16={'eventID':e['CollaborationEvent'][_0x55f7e1(0x485)],'data':{'unitID':_0x468e6f,'unitType':this[_0x55f7e1(0x235)],'from':_0xb84ce1,'to':_0x30f854}};this[_0x55f7e1(0x458)]['send'](_0x10fa16,this['unitID']);}};}async[_0x4c0aa4(0x44a)](_0x297190){const _0x2b54cb=_0x4c0aa4;var _0x4075e2,_0x333a69,_0x3d7f14;let _0x1024f8=await((_0x4075e2=this[_0x2b54cb(0x2c4)])==null?void 0x0:_0x4075e2[_0x2b54cb(0x37c)](this[_0x2b54cb(0x426)])),_0x3ea009=(_0x333a69=_0x1024f8==null?void 0x0:_0x1024f8[_0x2b54cb(0x4a9)])==null?[]:_0x333a69,_0x265876=(_0x3d7f14=_0x1024f8==null?void 0x0:_0x1024f8[_0x2b54cb(0x3e0)])==null?null:_0x3d7f14,_0x41a179=!!(_0x265876!=null&&_0x265876[_0x2b54cb(0x1a3)])&&!!(_0x265876!=null&&_0x265876['reqId']);this[_0x2b54cb(0x265)]=_0x41a179?_0x265876[_0x2b54cb(0x1a3)]:(0x0,e[_0x2b54cb(0x397)])(),this[_0x2b54cb(0x1ba)]=_0x41a179?_0x265876[_0x2b54cb(0x2be)]:0x0;let _0x346b5c=this[_0x2b54cb(0x426)];try{this['_replayCachedMutations'](_0x265876,_0x3ea009);}catch(_0x1c6112){this['_logService'][_0x2b54cb(0x338)](_0x1c6112);}let _0xe6888b=this[_0x2b54cb(0x33c)]();if(_0x297190){let _0x2673f4=Ue(this['_injector'],_0x346b5c,this[_0x2b54cb(0x235)],_0x265876,_0x3ea009,_0xe6888b);return _0x2673f4 instanceof k?_0x2673f4[_0x2b54cb(0x1c0)]():(_0x2673f4 instanceof j||_0x2673f4 instanceof A)&&_0x2673f4[_0x2b54cb(0x1f9)](),_0x2673f4;}return this[_0x2b54cb(0x1fd)][_0x2b54cb(0x47e)](N,_0x346b5c,this[_0x2b54cb(0x235)],_0x265876,_0x3ea009,_0xe6888b);}['_replayCachedMutations'](_0x4333f9,_0x2297a1){const _0x11ff13=_0x4c0aa4;var _0x1c86bf,_0x3d7f31;let _0x397d36=this[_0x11ff13(0x39e)]['interceptor'][_0x11ff13(0x2ad)](this[_0x11ff13(0x39e)]['interceptor'][_0x11ff13(0x1f3)]()[_0x11ff13(0x220)]);(_0x1c86bf=_0x397d36((_0x4333f9==null?void 0x0:_0x4333f9[_0x11ff13(0x4a9)])||[],null))==null||_0x1c86bf[_0x11ff13(0x1a5)](_0x371e16=>this[_0x11ff13(0x440)][_0x11ff13(0x23c)](_0x371e16['id'],_0x371e16[_0x11ff13(0x31e)])),(_0x3d7f31=_0x397d36(_0x2297a1||[],null))==null||_0x3d7f31[_0x11ff13(0x1a5)](_0x14dc42=>this[_0x11ff13(0x440)][_0x11ff13(0x23c)](_0x14dc42['id'],_0x14dc42[_0x11ff13(0x31e)]));}};F=y([v(0x3,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x4,(0x0,t['Inject'])(e[_0x4c0aa4(0x33d)])),v(0x5,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x28b)])),v(0x6,(0x0,t['Inject'])(e[_0x4c0aa4(0x252)])),v(0x7,(0x0,t[_0x4c0aa4(0x351)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x4c0aa4(0x2f9)]),v(0xa,t[_0x4c0aa4(0x416)]),v(0xb,t[_0x4c0aa4(0x1e5)]),v(0xc,(0x0,t[_0x4c0aa4(0x37d)])(w)),v(0xd,(0x0,t[_0x4c0aa4(0x37d)])(S))],F);let I=class extends F{constructor(_0x314cc5,_0x22a8d9,_0x2fe924,_0x189334,_0x23a022,_0x2c25be,_0x538829,_0x539a01,_0x459bc1,_0xd28159,_0x5b7300,_0xfbd7ba,_0x5bb5d1,_0x5be432,_0x3f40e0){const _0x172bef=_0x4c0aa4;super(_0x314cc5,_0x2fe924,_0x22a8d9,_0x189334,_0x23a022,_0x2c25be,_0x538829,_0x539a01,_0x459bc1,_0xd28159,_0x5b7300,_0xfbd7ba,_0x5be432,_0x3f40e0),this[_0x172bef(0x426)]=_0x314cc5,this[_0x172bef(0x27c)]=_0x22a8d9,this['_docStateChangeManagerService']=_0x5bb5d1,g(this,_0x172bef(0x3af),null);}[_0x4c0aa4(0x1af)](_0x14d44c){const _0x2c6e6c=_0x4c0aa4;this[_0x2c6e6c(0x3af)]=_0x14d44c;}[_0x4c0aa4(0x28d)](){const _0x394c02=_0x4c0aa4;this[_0x394c02(0x3af)]=null,super['dispose']();}['_createHandler'](){const _0x52ea61=_0x4c0aa4;let _0x569995=super['_createHandler']();return _0x569995['onTransformIME']=_0x3d306c=>{const _0x2dfe92=_0x290d;var _0x3b461e,_0x45a05e;return(_0x3b461e=this['_handlerCallback'])==null||(_0x45a05e=_0x3b461e[_0x2dfe92(0x306)])==null?void 0x0:_0x45a05e[_0x2dfe92(0x475)](_0x3b461e,_0x3d306c);},_0x569995[_0x52ea61(0x3bb)]=_0x5883db=>{const _0x4c113a=_0x52ea61;var _0x4b6d92,_0x38f8c9;return(_0x4b6d92=this['_handlerCallback'])==null||(_0x38f8c9=_0x4b6d92[_0x4c113a(0x3bb)])==null?void 0x0:_0x38f8c9[_0x4c113a(0x475)](_0x4b6d92,_0x5883db);},_0x569995[_0x52ea61(0x1b3)]=_0x4fb172=>{const _0xbd4024=_0x52ea61;var _0x51aebb,_0x5f022c;return(_0x51aebb=this[_0xbd4024(0x3af)])==null||(_0x5f022c=_0x51aebb['onTransformSelections'])==null?void 0x0:_0x5f022c[_0xbd4024(0x475)](_0x51aebb,_0x4fb172);},_0x569995[_0x52ea61(0x3d2)]=_0x2e3d74=>{const _0x3436f6=_0x52ea61;var _0x2c07d3,_0x188606;return(_0x2c07d3=this['_handlerCallback'])==null||(_0x188606=_0x2c07d3[_0x3436f6(0x3d2)])==null?void 0x0:_0x188606['call'](_0x2c07d3,_0x2e3d74);},_0x569995['onTransformRemoteChangesetByIMECache']=_0x4ddded=>{const _0x1dafee=_0x52ea61;var _0x565f82,_0x3ef62c,_0xfcf7bc;return(_0x565f82=(_0x3ef62c=this['_handlerCallback'])==null||(_0xfcf7bc=_0x3ef62c['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0xfcf7bc[_0x1dafee(0x475)](_0x3ef62c,_0x4ddded))==null?_0x4ddded:_0x565f82;},_0x569995[_0x52ea61(0x1b4)]=_0x1b25be=>{const _0x473eef=_0x52ea61;var _0xac7e3f,_0x423702,_0x5f17f2;return(_0xac7e3f=(_0x423702=this['_handlerCallback'])==null||(_0x5f17f2=_0x423702[_0x473eef(0x1b4)])==null?void 0x0:_0x5f17f2[_0x473eef(0x475)](_0x423702,_0x1b25be))==null?_0x1b25be:_0xac7e3f;},_0x569995;}async['_init'](){const _0x5b6ef8=_0x4c0aa4;let _0x61a445=await super[_0x5b6ef8(0x1f1)]();return this[_0x5b6ef8(0x38b)](this[_0x5b6ef8(0x2fc)][_0x5b6ef8(0x3fd)][_0x5b6ef8(0x3a4)](_0x4acfcc=>{const _0x158e46=_0x5b6ef8;if(_0x4acfcc==null||_0x4acfcc['unitId']!==this[_0x158e46(0x426)])return;let {commandId:_0x239bb2,redoState:_0x18560d,unitId:_0x4451cb}=_0x4acfcc,_0x311ffe={'id':_0x239bb2,'type':t['CommandType'][_0x158e46(0x337)],'params':{'unitId':_0x4451cb,'actions':_0x18560d['actions'],'textRanges':null}};this['_onLocalMutation'](_0x311ffe);})),this['disposeWithMe'](this['_commandService']['onMutationExecutedForCollab']((_0x15cc16,_0x499ee6)=>{const _0x300892=_0x5b6ef8;if(_0x15cc16[_0x300892(0x27c)]!==t[_0x300892(0x492)][_0x300892(0x337)]||_0x499ee6!=null&&_0x499ee6['fromCollab']||_0x499ee6!=null&&_0x499ee6[_0x300892(0x40f)]||_0x15cc16['id']===n[_0x300892(0x375)]['id'])return;let _0x4d063d=_0x15cc16[_0x300892(0x31e)];if((_0x4d063d==null?void 0x0:_0x4d063d[_0x300892(0x211)])!==this['unitID'])return;let _0x1fd540=_0x15cc16,_0x2df754=this[_0x300892(0x39e)][_0x300892(0x42d)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x300892(0x42d)][_0x300892(0x1f3)]()[_0x300892(0x3ad)])([_0x1fd540],this[_0x300892(0x294)])||[_0x1fd540];this[_0x300892(0x1eb)](_0x2df754[0x0]);})),_0x61a445;}};I=y([v(0x3,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x4,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x33d)])),v(0x5,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x28b)])),v(0x6,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x252)])),v(0x7,(0x0,t[_0x4c0aa4(0x351)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x4c0aa4(0x2f9)]),v(0xa,t[_0x4c0aa4(0x416)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x4c0aa4(0x351)])(n[_0x4c0aa4(0x3c4)])),v(0xd,(0x0,t[_0x4c0aa4(0x37d)])(w)),v(0xe,(0x0,t[_0x4c0aa4(0x37d)])(S))],I);let L=class extends F{constructor(_0x22061d,_0xbdf5b,_0x42dd6a,_0x1bdcc1,_0x12329f,_0x537b36,_0x454915,_0x20ec3d,_0x2e2d12,_0x226e28,_0x4cc136,_0x1c3e75,_0x13e4bc,_0x562738){const _0x5b1f33=_0x4c0aa4;super(_0x22061d,_0x42dd6a,_0xbdf5b,_0x1bdcc1,_0x12329f,_0x537b36,_0x454915,_0x20ec3d,_0x2e2d12,_0x226e28,_0x4cc136,_0x1c3e75,_0x13e4bc,_0x562738),this[_0x5b1f33(0x426)]=_0x22061d,this[_0x5b1f33(0x27c)]=_0xbdf5b;}async[_0x4c0aa4(0x1f1)](){const _0x22d1b8=_0x4c0aa4;let _0x7c8db6=await super[_0x22d1b8(0x1f1)]();return this[_0x22d1b8(0x38b)](this[_0x22d1b8(0x440)][_0x22d1b8(0x3bd)]((_0x1a99a5,_0x4839d3)=>{const _0x1635df=_0x22d1b8;if(_0x1a99a5[_0x1635df(0x27c)]!==t[_0x1635df(0x492)][_0x1635df(0x337)]||_0x4839d3!=null&&_0x4839d3[_0x1635df(0x396)]||_0x4839d3!=null&&_0x4839d3['onlyLocal'])return;let _0x3c1ae9=_0x1a99a5[_0x1635df(0x31e)];if((_0x3c1ae9==null?void 0x0:_0x3c1ae9['unitId'])!==this['unitID'])return;let _0x189a26=_0x1a99a5,_0x390c6b=this[_0x1635df(0x39e)][_0x1635df(0x42d)][_0x1635df(0x2ad)](this['_compressMutationService'][_0x1635df(0x42d)]['getInterceptPoints']()[_0x1635df(0x3ad)])([_0x189a26],this[_0x1635df(0x294)])||[_0x189a26];this[_0x1635df(0x1eb)](_0x390c6b[0x0]);})),_0x7c8db6;}};L=y([v(0x3,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x4,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x33d)])),v(0x5,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x28b)])),v(0x6,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x252)])),v(0x7,(0x0,t[_0x4c0aa4(0x351)])(_)),v(0x8,t[_0x4c0aa4(0x31d)]),v(0x9,t[_0x4c0aa4(0x2f9)]),v(0xa,t[_0x4c0aa4(0x416)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x4c0aa4(0x37d)])(w)),v(0xd,(0x0,t[_0x4c0aa4(0x37d)])(S))],L);let R=class extends F{constructor(_0x5e4678,_0x217c5b,_0x196468,_0x3d3123,_0x57ee22,_0x39469d,_0xabd2d2,_0x5cebad,_0x2698e5,_0x2f5ce6,_0x420b99,_0x24a693,_0x45b886,_0x5094ed,_0x4016f5){const _0x167e8b=_0x4c0aa4;super(_0x5e4678,_0x196468,_0x217c5b,_0x3d3123,_0x57ee22,_0x39469d,_0xabd2d2,_0x2698e5,_0x2f5ce6,_0x420b99,_0x24a693,_0x45b886,_0x5094ed,_0x4016f5),this['unitID']=_0x5e4678,this[_0x167e8b(0x27c)]=_0x217c5b,this['_sheetTransformSelectionsService']=_0x5cebad;}[_0x4c0aa4(0x33c)](){const _0x571e4f=_0x4c0aa4;let _0x13b567=super[_0x571e4f(0x33c)]();return _0x13b567[_0x571e4f(0x1b3)]=_0xccec68=>this['_sheetTransformSelectionsService'][_0x571e4f(0x270)](_0xccec68),_0x13b567;}async[_0x4c0aa4(0x1f1)](){const _0x19cfed=_0x4c0aa4;let _0x2f2c4a=await super['_init']();return this['disposeWithMe'](this[_0x19cfed(0x440)][_0x19cfed(0x3bd)]((_0xd957d7,_0x20f340)=>{const _0x3e7636=_0x19cfed;if(_0xd957d7['type']!==t['CommandType']['MUTATION']||_0x20f340!=null&&_0x20f340['fromCollab']||_0x20f340!=null&&_0x20f340['onlyLocal'])return;let _0x1c4037=_0xd957d7[_0x3e7636(0x31e)];if((_0x1c4037==null?void 0x0:_0x1c4037['unitId'])!==this[_0x3e7636(0x426)])return;let _0x5337f2=_0xd957d7,_0x518d83=this['_compressMutationService'][_0x3e7636(0x42d)][_0x3e7636(0x2ad)](this[_0x3e7636(0x39e)][_0x3e7636(0x42d)]['getInterceptPoints']()[_0x3e7636(0x3ad)])([_0x5337f2],this[_0x3e7636(0x294)])||[_0x5337f2];this[_0x3e7636(0x1eb)](_0x518d83[0x0]);})),_0x2f2c4a;}};R=y([v(0x3,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x4,(0x0,t['Inject'])(e[_0x4c0aa4(0x33d)])),v(0x5,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x28b)])),v(0x6,(0x0,t[_0x4c0aa4(0x351)])(e['RevisionService'])),v(0x7,(0x0,t[_0x4c0aa4(0x351)])(C)),v(0x8,(0x0,t[_0x4c0aa4(0x351)])(_)),v(0x9,t[_0x4c0aa4(0x31d)]),v(0xa,t[_0x4c0aa4(0x2f9)]),v(0xb,t[_0x4c0aa4(0x416)]),v(0xc,t[_0x4c0aa4(0x1e5)]),v(0xd,(0x0,t['Optional'])(w)),v(0xe,(0x0,t['Optional'])(S))],R);let z=class extends F{constructor(_0xeffdaa,_0x2ebb14,_0x34afa5,_0x51b123,_0x4bec17,_0xce1a4f,_0x17dcf8,_0x50e63e,_0x5dbcca,_0x428027,_0xd09f27,_0x4f0f20,_0x4b3933,_0xad27c9){const _0x3cd863=_0x4c0aa4;super(_0xeffdaa,_0x34afa5,_0x2ebb14,_0x51b123,_0x4bec17,_0xce1a4f,_0x17dcf8,_0x50e63e,_0x5dbcca,_0x428027,_0xd09f27,_0x4f0f20,_0x4b3933,_0xad27c9),this[_0x3cd863(0x426)]=_0xeffdaa,this['type']=_0x2ebb14;}async[_0x4c0aa4(0x1f1)](){const _0x2c8d3f=_0x4c0aa4;let _0x1a0b98=await super[_0x2c8d3f(0x1f1)]();return this[_0x2c8d3f(0x38b)](this[_0x2c8d3f(0x440)]['onMutationExecutedForCollab']((_0x183873,_0x38fdd8)=>{const _0x151de6=_0x2c8d3f;if(_0x183873[_0x151de6(0x27c)]!==t[_0x151de6(0x492)]['MUTATION']||_0x38fdd8!=null&&_0x38fdd8[_0x151de6(0x396)]||_0x38fdd8!=null&&_0x38fdd8[_0x151de6(0x40f)])return;let _0x446e90=_0x183873[_0x151de6(0x31e)];if((_0x446e90==null?void 0x0:_0x446e90[_0x151de6(0x211)])!==this[_0x151de6(0x426)])return;let _0x25cdb8=_0x183873,_0x5f2f8a=this[_0x151de6(0x39e)][_0x151de6(0x42d)][_0x151de6(0x2ad)](this['_compressMutationService'][_0x151de6(0x42d)][_0x151de6(0x1f3)]()[_0x151de6(0x3ad)])([_0x25cdb8],this[_0x151de6(0x294)])||[_0x25cdb8];this['_onLocalMutation'](_0x5f2f8a[0x0]);})),_0x1a0b98;}};z=y([v(0x3,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x4,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x33d)])),v(0x5,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x28b)])),v(0x6,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x252)])),v(0x7,(0x0,t[_0x4c0aa4(0x351)])(_)),v(0x8,t[_0x4c0aa4(0x31d)]),v(0x9,t[_0x4c0aa4(0x2f9)]),v(0xa,t[_0x4c0aa4(0x416)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x4c0aa4(0x37d)])(w)),v(0xd,(0x0,t['Optional'])(S))],z);let B=class extends F{constructor(_0x2b80e8,_0x311b5f,_0x51e7f7,_0x44b32b,_0x20eb97,_0x5bab7c,_0x3071bb,_0x24a08a,_0xa71c51,_0x5c7aca,_0x346520,_0x275585,_0x28e129,_0x2ae222){const _0x25b56c=_0x4c0aa4;super(_0x2b80e8,_0x51e7f7,_0x311b5f,_0x44b32b,_0x20eb97,_0x5bab7c,_0x3071bb,_0x24a08a,_0xa71c51,_0x5c7aca,_0x346520,_0x275585,_0x28e129,_0x2ae222),this[_0x25b56c(0x426)]=_0x2b80e8,this[_0x25b56c(0x27c)]=_0x311b5f;}async[_0x4c0aa4(0x1f1)](){const _0x48c03e=_0x4c0aa4;let _0x572af3=await super[_0x48c03e(0x1f1)]();return this['disposeWithMe'](this[_0x48c03e(0x440)][_0x48c03e(0x3bd)]((_0x3812e1,_0x439621)=>{const _0x13042c=_0x48c03e;if(_0x3812e1[_0x13042c(0x27c)]!==t['CommandType'][_0x13042c(0x337)]||_0x439621!=null&&_0x439621[_0x13042c(0x396)]||_0x439621!=null&&_0x439621[_0x13042c(0x40f)])return;let _0x3a907d=_0x3812e1['params'];if((_0x3a907d==null?void 0x0:_0x3a907d[_0x13042c(0x211)])!==this[_0x13042c(0x426)])return;let _0x7244d1=_0x3812e1,_0x56ddfa=this[_0x13042c(0x39e)][_0x13042c(0x42d)][_0x13042c(0x2ad)](this[_0x13042c(0x39e)][_0x13042c(0x42d)][_0x13042c(0x1f3)]()[_0x13042c(0x3ad)])([_0x7244d1],this['_univerInstanceService'])||[_0x7244d1];this[_0x13042c(0x1eb)](_0x56ddfa[0x0]);})),_0x572af3;}};B=y([v(0x3,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x4,(0x0,t['Inject'])(e[_0x4c0aa4(0x33d)])),v(0x5,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x28b)])),v(0x6,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x252)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x4c0aa4(0x2f9)]),v(0xa,t['ICommandService']),v(0xb,t[_0x4c0aa4(0x1e5)]),v(0xc,(0x0,t[_0x4c0aa4(0x37d)])(w)),v(0xd,(0x0,t[_0x4c0aa4(0x37d)])(S))],B);const We=(0x0,t['createIdentifier'])('univer-pro.collaboration-client.network-condition.service');function Ge(_0x438d98){const _0x2f06c2=_0x4c0aa4;let _0x543646=_0x438d98[_0x2f06c2(0x233)],_0x1c1de2=JSON['parse'](_0x543646);switch(_0x1c1de2['cmd']){case a[_0x2f06c2(0x2db)][_0x2f06c2(0x205)]:case a['CombCmd']['HELLO']:{let _0x18501b=_0x1c1de2[_0x2f06c2(0x195)];return{..._0x1c1de2,'data':_0x18501b,'cmd':_0x1c1de2['cmd']};}case a[_0x2f06c2(0x2db)][_0x2f06c2(0x383)]:{let _0x164f8a=_0x1c1de2['joinRsp'];return{..._0x1c1de2,'data':_0x164f8a,'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};}case a[_0x2f06c2(0x2db)]['RECV']:{let _0x4f3a18=_0x1c1de2[_0x2f06c2(0x27d)];switch(_0x4f3a18[_0x2f06c2(0x23b)]){case e[_0x2f06c2(0x439)][_0x2f06c2(0x190)]:var _0x3dde2a;return{..._0x1c1de2,'data':{..._0x4f3a18,'data':(_0x3dde2a=_0x4f3a18[_0x2f06c2(0x264)])==null?void 0x0:_0x3dde2a['cs']},'cmd':_0x1c1de2['cmd']};case e['CollaborationEvent'][_0x2f06c2(0x343)]:var _0x61296b;return{..._0x1c1de2,'data':{..._0x4f3a18,'data':(_0x61296b=_0x4f3a18[_0x2f06c2(0x2ae)])==null?void 0x0:_0x61296b['cs']},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e[_0x2f06c2(0x439)]['NEW_CHANGESETS']:var _0x13c9dc;return{..._0x1c1de2,'data':{..._0x4f3a18,'data':(_0x13c9dc=_0x4f3a18[_0x2f06c2(0x218)])==null?void 0x0:_0x13c9dc['cs']},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e[_0x2f06c2(0x439)][_0x2f06c2(0x43d)]:var _0x2d4509;return{..._0x1c1de2,'data':{..._0x4f3a18,'data':(_0x2d4509=_0x4f3a18[_0x2f06c2(0x278)])==null?void 0x0:_0x2d4509['cs']},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e[_0x2f06c2(0x439)][_0x2f06c2(0x219)]:var _0x12d692;return{..._0x1c1de2,'data':{..._0x4f3a18,'data':(_0x12d692=_0x4f3a18['csShouldRetryEvent'])==null?void 0x0:_0x12d692['cs']},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e['CollaborationEvent'][_0x2f06c2(0x39c)]:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18[_0x2f06c2(0x307)]},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e['CollaborationEvent'][_0x2f06c2(0x3f1)]:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18[_0x2f06c2(0x2d7)]},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e['CollaborationEvent']['USERS_LEAVE']:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18[_0x2f06c2(0x2ed)]},'cmd':_0x1c1de2['cmd']};case e['CollaborationEvent'][_0x2f06c2(0x3f4)]:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18[_0x2f06c2(0x39a)]},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e['CollaborationEvent'][_0x2f06c2(0x363)]:case e[_0x2f06c2(0x439)][_0x2f06c2(0x48c)]:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18[_0x2f06c2(0x3f2)]},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e[_0x2f06c2(0x439)]['LIVESHARE_TERMINATE']:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18['liveShareNewHost']},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e[_0x2f06c2(0x439)][_0x2f06c2(0x349)]:return{..._0x1c1de2,'data':_0x4f3a18,'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e[_0x2f06c2(0x439)][_0x2f06c2(0x1f5)]:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18[_0x2f06c2(0x1d7)]},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e[_0x2f06c2(0x439)][_0x2f06c2(0x1a0)]:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18[_0x2f06c2(0x3a7)]},'cmd':_0x1c1de2['cmd']};case e['CollaborationEvent'][_0x2f06c2(0x24d)]:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18['shouldCloseConn']},'cmd':_0x1c1de2['cmd']};case e[_0x2f06c2(0x439)][_0x2f06c2(0x1cf)]:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18[_0x2f06c2(0x1c2)]},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};default:return _0x1c1de2;}}default:return _0x1c1de2;}}function Ke(_0x5b3243){const _0x1b105e=_0x4c0aa4;switch(_0x5b3243[_0x1b105e(0x1ac)]){case a[_0x1b105e(0x2db)]['HEARTBEAT']:case a[_0x1b105e(0x2db)][_0x1b105e(0x476)]:return JSON[_0x1b105e(0x4a7)]({'cmd':_0x5b3243[_0x1b105e(0x1ac)],'routeKey':_0x5b3243['routeKey']});case a[_0x1b105e(0x2db)][_0x1b105e(0x48f)]:{let _0x35bc5a;switch(_0x5b3243[_0x1b105e(0x233)][_0x1b105e(0x23b)]){case e[_0x1b105e(0x439)]['UPDATE_CURSOR']:_0x35bc5a={'eventID':e[_0x1b105e(0x439)][_0x1b105e(0x39c)],'updateCursorEvent':_0x5b3243[_0x1b105e(0x233)][_0x1b105e(0x233)]};break;case e[_0x1b105e(0x439)][_0x1b105e(0x1e3)]:_0x35bc5a={'eventID':e[_0x1b105e(0x439)][_0x1b105e(0x1e3)],'leaveEvent':_0x5b3243[_0x1b105e(0x233)][_0x1b105e(0x233)]};break;case e[_0x1b105e(0x439)][_0x1b105e(0x3f1)]:_0x35bc5a={'eventID':e['CollaborationEvent'][_0x1b105e(0x3f1)],'joinEvent':_0x5b3243[_0x1b105e(0x233)][_0x1b105e(0x233)]};break;case e[_0x1b105e(0x439)][_0x1b105e(0x3f4)]:_0x35bc5a={'eventID':e[_0x1b105e(0x439)][_0x1b105e(0x3f4)],'liveShareNewHost':_0x5b3243[_0x1b105e(0x233)]['data']};break;case e['CollaborationEvent']['LIVESHARE_OPERATION']:_0x35bc5a={'eventID':e['CollaborationEvent'][_0x1b105e(0x48c)],'liveShareOperation':_0x5b3243[_0x1b105e(0x233)][_0x1b105e(0x233)]};break;case e[_0x1b105e(0x439)]['LIVESHARE_TERMINATE']:_0x35bc5a={'eventID':e['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x5b3243[_0x1b105e(0x233)][_0x1b105e(0x233)]};break;case e[_0x1b105e(0x439)][_0x1b105e(0x346)]:_0x35bc5a={'eventID':e[_0x1b105e(0x439)][_0x1b105e(0x346)],'liveShareRequestHost':_0x5b3243[_0x1b105e(0x233)][_0x1b105e(0x233)]};break;case e[_0x1b105e(0x439)][_0x1b105e(0x363)]:_0x35bc5a={'eventID':e[_0x1b105e(0x439)]['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x35bc5a={'eventID':_0x5b3243[_0x1b105e(0x233)][_0x1b105e(0x23b)]};}return JSON[_0x1b105e(0x4a7)]({'cmd':_0x5b3243[_0x1b105e(0x1ac)],'routeKey':_0x5b3243['routeKey'],'collaMsg':_0x35bc5a});}case a[_0x1b105e(0x2db)][_0x1b105e(0x383)]:return JSON[_0x1b105e(0x4a7)]({'cmd':_0x5b3243[_0x1b105e(0x1ac)],'routeKey':_0x5b3243[_0x1b105e(0x237)],'joinReq':_0x5b3243['data']});case a[_0x1b105e(0x2db)][_0x1b105e(0x1da)]:return JSON['stringify']({'cmd':_0x5b3243[_0x1b105e(0x1ac)],'routeKey':_0x5b3243[_0x1b105e(0x237)],'leaveReq':_0x5b3243['data']});default:throw Error(_0x1b105e(0x42b));}}const qe=(0x0,t[_0x4c0aa4(0x35d)])(_0x4c0aa4(0x250));function Je(_0x29e478,_0x10885d,_0x2e4eac){const _0x259f73=_0x4c0aa4;return _0x29e478+'/'+_0x10885d+_0x259f73(0x316)+_0x2e4eac+_0x259f73(0x41a);}let Ye=class extends t[_0x4c0aa4(0x23f)]{constructor(_0x20152b,_0xf1fbb7,_0x21ed66,_0x55e117,_0x1e59ce){const _0x249c9d=_0x4c0aa4;super(),this[_0x249c9d(0x1fd)]=_0x20152b,this[_0x249c9d(0x3f9)]=_0xf1fbb7,this['_configService']=_0x21ed66,this[_0x249c9d(0x387)]=_0x55e117,this[_0x249c9d(0x40d)]=_0x1e59ce;}[_0x4c0aa4(0x2ef)](_0x365b28){const _0x46eaf8=_0x4c0aa4;let _0x17bf18=this[_0x46eaf8(0x1fd)][_0x46eaf8(0x3a5)](l['ISocketService']);if(!_0x17bf18)throw Error(_0x46eaf8(0x3fe));let _0x366a3d=_0x17bf18[_0x46eaf8(0x333)](_0x365b28);if(!_0x366a3d)throw Error(_0x46eaf8(0x462));let _0x173f75=new t[(_0x46eaf8(0x3fa))](),_0x493844=new i[(_0x46eaf8(0x378))]();_0x173f75[_0x46eaf8(0x393)](_0x366a3d[_0x46eaf8(0x1e0)]['subscribe'](_0x3ce92f=>_0x493844[_0x46eaf8(0x201)](_0x3ce92f))),_0x173f75[_0x46eaf8(0x393)]((0x0,t[_0x46eaf8(0x2c3)])(()=>_0x493844['complete']()));let _0x2a5673=new i['Subject']();_0x173f75[_0x46eaf8(0x393)](_0x366a3d[_0x46eaf8(0x3be)][_0x46eaf8(0x3a4)](_0xe0a74c=>_0x2a5673[_0x46eaf8(0x201)](_0xe0a74c))),_0x173f75[_0x46eaf8(0x393)]((0x0,t[_0x46eaf8(0x2c3)])(()=>_0x2a5673['complete']()));let _0x174b1a=new i[(_0x46eaf8(0x378))]();_0x173f75['add'](_0x366a3d[_0x46eaf8(0x1ae)][_0x46eaf8(0x3a4)](_0x4f61bc=>{const _0x22c206=_0x46eaf8;let _0x1d9ea3=Ge(_0x4f61bc);_0x174b1a[_0x22c206(0x201)](_0x1d9ea3);})),_0x173f75[_0x46eaf8(0x393)]((0x0,t[_0x46eaf8(0x2c3)])(()=>_0x174b1a[_0x46eaf8(0x470)]()));let _0x3b4ea7,_0x5ae491=()=>{const _0x5a047e=_0x46eaf8;_0x2a5673[_0x5a047e(0x201)](new Event(_0x5a047e(0x1ca))),_0x493844[_0x5a047e(0x201)](new Event(_0x5a047e(0x1ca))),_0x3b4ea7[_0x5a047e(0x325)]();};return _0x3b4ea7={'memberID':'','close$':_0x493844[_0x46eaf8(0x421)](),'error$':_0x2a5673[_0x46eaf8(0x421)](),'open$':_0x366a3d[_0x46eaf8(0x394)],'message$':_0x174b1a[_0x46eaf8(0x421)](),'send':_0x3095bc=>{const _0x4cff23=_0x46eaf8;if(_0x3095bc[_0x4cff23(0x1ac)]===a['CombCmd'][_0x4cff23(0x48f)]){if(_0x3095bc[_0x4cff23(0x233)]['eventID']===e[_0x4cff23(0x439)][_0x4cff23(0x2bf)]){this[_0x4cff23(0x1f8)](_0x3b4ea7,_0x3095bc[_0x4cff23(0x233)])[_0x4cff23(0x3c6)](_0x11a75b=>{this['_logService']['error'](_0x11a75b),_0x5ae491();});return;}if(_0x3095bc[_0x4cff23(0x233)]['eventID']===e[_0x4cff23(0x439)][_0x4cff23(0x485)]){let _0x3cfa6c=_0x3095bc[_0x4cff23(0x233)];this[_0x4cff23(0x1de)](_0x3cfa6c)[_0x4cff23(0x28e)](_0x35e4a3=>{const _0x3cbd9c=_0x4cff23;_0x174b1a['next']({'cmd':a[_0x3cbd9c(0x2db)][_0x3cbd9c(0x45f)],'code':a[_0x3cbd9c(0x3f3)]['OK'],'routeKey':_0x3cfa6c[_0x3cbd9c(0x233)][_0x3cbd9c(0x426)],'routeType':'','data':{'eventID':e[_0x3cbd9c(0x439)][_0x3cbd9c(0x342)],'data':{'changesets':_0x35e4a3}}});})[_0x4cff23(0x3c6)](_0x3c23f1=>{const _0x2e292d=_0x4cff23;this[_0x2e292d(0x387)][_0x2e292d(0x338)](_0x3c23f1),_0x5ae491();});return;}}_0x366a3d[_0x4cff23(0x29c)](Ke(_0x3095bc));},'close':()=>{_0x366a3d['close'](),_0x173f75['dispose']();}},_0x3b4ea7;}async['_submitChangeset'](_0x5d3f30,_0x3ba6dd){const _0xa0582=_0x4c0aa4;var _0x4163ca;let {unitType:_0x4c7795,unitID:_0xa092e2,changeset:_0x1f6825}=_0x3ba6dd[_0xa0582(0x233)],_0x4745e8={'unitID':_0xa092e2,'memberID':_0x5d3f30[_0xa0582(0x3fc)],'type':_0x4c7795,'changeset':(0x0,e['parseChangesetToProtocol'])(_0x1f6825)},_0x3eac73=this[_0xa0582(0x2a2)]['getConfig'](m),_0x20edf1=Je((_0x4163ca=_0x3eac73==null?void 0x0:_0x3eac73[_0xa0582(0x261)])==null?'/universer-api/comb':_0x4163ca,_0x4c7795,_0xa092e2);try{await this[_0xa0582(0x3f9)][_0xa0582(0x2e3)](_0x20edf1,{'body':_0x4745e8});}catch(_0x31407c){throw this[_0xa0582(0x387)]['error']('[CollaborationSession]','submit\x20changeset\x20error!'),_0x31407c;}}async['_fetchMissChangesets'](_0x2ed29c){const _0x44d139=_0x4c0aa4;let {unitID:_0x31f123,from:_0x117498,to:_0x48a157,unitType:_0x53611e}=_0x2ed29c[_0x44d139(0x233)];return(await this[_0x44d139(0x40d)][_0x44d139(0x392)]({'metadata':void 0x0},{'unitID':_0x31f123,'type':_0x53611e,'from':_0x117498,'to':_0x48a157}))['changesets'][_0x44d139(0x1c8)](_0xbfe6a=>((_0xbfe6a['mutations']===null||_0xbfe6a[_0x44d139(0x4a9)]===void 0x0)&&(_0xbfe6a['mutations']=[]),_0xbfe6a));}};Ye=y([v(0x0,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x1,(0x0,t[_0x4c0aa4(0x351)])(l['HTTPService'])),v(0x2,t[_0x4c0aa4(0x4a5)]),v(0x3,t[_0x4c0aa4(0x2f9)]),v(0x4,e[_0x4c0aa4(0x31f)])],Ye);const Xe=(0x0,t['createIdentifier'])('univer-pro.collaboration-client-adapter-service');function Ze(_0x1f2cbc={}){const _0x335799=_0x4c0aa4;return _0x1f2cbc[_0x335799(0x2ec)]?{'resolveUnit':_0x1f2cbc[_0x335799(0x2ec)]}:{'resolveUnit':_0x43cee4=>({'target':{'unitId':_0x43cee4[_0x335799(0x211)],'unitType':_0x43cee4['unitType']}})};}function Qe(_0x438b9b,_0x1fc997,_0x2a1059){const _0x952de8=_0x4c0aa4;var _0x44c4a7;let _0x3f5ddd=_0x2a1059['target'][_0x952de8(0x1dc)];if(_0x3f5ddd!=null&&_0x3f5ddd['trim']()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x2a1059[_0x952de8(0x1cb)]['unitId'])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x438b9b,'unitType':_0x1fc997,'target':{'endpoint':_0x3f5ddd,'unitId':_0x2a1059[_0x952de8(0x1cb)][_0x952de8(0x211)],'unitType':(_0x44c4a7=_0x2a1059[_0x952de8(0x1cb)]['unitType'])==null?_0x1fc997:_0x44c4a7},'changeset':_0x2a1059[_0x952de8(0x350)]};}let V=class extends t['Disposable']{constructor(_0x1c65fd,_0x3fe59c,_0x355603,_0x35fefe,_0x84f322,_0x5c1232,_0x36ddbd){const _0x56b7dc=_0x4c0aa4;super(),this['_injector']=_0x1c65fd,this['_logService']=_0x3fe59c,this[_0x56b7dc(0x2a2)]=_0x355603,this[_0x56b7dc(0x279)]=_0x35fefe,this[_0x56b7dc(0x34a)]=_0x84f322,this['_adapter']=_0x5c1232,this[_0x56b7dc(0x1a4)]=_0x36ddbd,g(this,_0x56b7dc(0x1b8),new Map()),g(this,_0x56b7dc(0x3e2),new Map()),g(this,_0x56b7dc(0x240),new Map()),g(this,_0x56b7dc(0x35e),new Map()),g(this,'socket$',this['_getSocketChannel'](void 0x0)[_0x56b7dc(0x259)][_0x56b7dc(0x421)]()),g(this,_0x56b7dc(0x3b4),new i[(_0x56b7dc(0x20e))](0x0)),g(this,'status$',this[_0x56b7dc(0x3b4)][_0x56b7dc(0x421)]()),this['_listenToNetworkCondition']();}[_0x4c0aa4(0x424)](){const _0x1ecb52=_0x4c0aa4;this[_0x1ecb52(0x1a4)]&&this[_0x1ecb52(0x38b)](this[_0x1ecb52(0x1a4)][_0x1ecb52(0x3ff)][_0x1ecb52(0x3a4)](_0x4b55df=>{const _0x57dda4=_0x1ecb52;_0x4b55df&&this[_0x57dda4(0x489)](),_0x4b55df||this['_socketChannels']['forEach'](_0x25eebe=>this['_onOffline'](_0x25eebe));}));}['dispose'](){const _0x2f267a=_0x4c0aa4;super[_0x2f267a(0x28d)](),this[_0x2f267a(0x35e)][_0x2f267a(0x1a5)](_0x510d11=>{const _0x1a7ef6=_0x2f267a;var _0x1c6eeb,_0x3d041a;(_0x1c6eeb=_0x510d11[_0x1a7ef6(0x3c1)])==null||_0x1c6eeb[_0x1a7ef6(0x2dc)](),_0x510d11[_0x1a7ef6(0x3c1)]=null,this[_0x1a7ef6(0x362)](_0x510d11),this[_0x1a7ef6(0x399)](_0x510d11),this[_0x1a7ef6(0x3d9)](_0x510d11),(_0x3d041a=_0x510d11[_0x1a7ef6(0x259)][_0x1a7ef6(0x1bd)]())==null||_0x3d041a[_0x1a7ef6(0x325)](),_0x510d11[_0x1a7ef6(0x259)][_0x1a7ef6(0x470)]();}),this[_0x2f267a(0x35e)][_0x2f267a(0x26a)](),this[_0x2f267a(0x1b8)][_0x2f267a(0x1a5)](_0x550afa=>_0x550afa['dispose']()),this['_sessions'][_0x2f267a(0x26a)](),this[_0x2f267a(0x240)][_0x2f267a(0x26a)](),this[_0x2f267a(0x3b4)][_0x2f267a(0x470)]();}async['requireSession'](_0x2ac6be,_0x4786c3){const _0x56084f=_0x4c0aa4;if(this[_0x56084f(0x1b8)][_0x56084f(0x447)](_0x2ac6be))return this['_sessions'][_0x56084f(0x3a5)](_0x2ac6be);let _0x118f30=this[_0x56084f(0x3e2)][_0x56084f(0x3a5)](_0x2ac6be);if(_0x118f30)return _0x118f30;let _0x2ea331=this[_0x56084f(0x410)](_0x2ac6be,_0x4786c3);this[_0x56084f(0x3e2)]['set'](_0x2ac6be,_0x2ea331);try{return await _0x2ea331;}finally{this[_0x56084f(0x3e2)][_0x56084f(0x24b)](_0x2ac6be);}}async[_0x4c0aa4(0x410)](_0x278394,_0x62fc57){const _0x5f33ba=_0x4c0aa4;let _0x4009fb=await this[_0x5f33ba(0x19e)](_0x278394,_0x62fc57),_0x1814af=this[_0x5f33ba(0x37e)](_0x4009fb[_0x5f33ba(0x1cb)][_0x5f33ba(0x1dc)]);this[_0x5f33ba(0x29a)](_0x1814af);let _0x4478b0=this[_0x5f33ba(0x1fd)]['createInstance'](x,_0x4009fb,_0x1814af[_0x5f33ba(0x259)]['asObservable']());return this[_0x5f33ba(0x1b8)][_0x5f33ba(0x3d4)](_0x278394,_0x4478b0),this[_0x5f33ba(0x240)][_0x5f33ba(0x3d4)](_0x278394,_0x1814af[_0x5f33ba(0x49e)]),_0x4478b0;}['closeSession'](_0x370653){const _0x8004ac=_0x4c0aa4;let _0x590fed=this['_sessions']['get'](_0x370653),_0x528749=this['_sessionChannels'][_0x8004ac(0x3a5)](_0x370653);if(_0x590fed&&(this[_0x8004ac(0x1b8)][_0x8004ac(0x24b)](_0x370653),this[_0x8004ac(0x240)][_0x8004ac(0x24b)](_0x370653),_0x590fed['close']()),_0x528749&&!this[_0x8004ac(0x246)](_0x528749)){var _0x29ad4b;let _0x25cfd4=this[_0x8004ac(0x35e)]['get'](_0x528749);_0x25cfd4==null||(_0x29ad4b=_0x25cfd4[_0x8004ac(0x259)][_0x8004ac(0x1bd)]())==null||_0x29ad4b[_0x8004ac(0x325)]();}}[_0x4c0aa4(0x489)](){const _0x161cff=_0x4c0aa4;(this[_0x161cff(0x35e)][_0x161cff(0x209)]?[...this[_0x161cff(0x35e)][_0x161cff(0x2e2)]()]:[this[_0x161cff(0x37e)](void 0x0)])[_0x161cff(0x1a5)](_0x2bcd24=>{const _0x11d8e7=_0x161cff;_0x2bcd24[_0x11d8e7(0x368)]=0x0,this[_0x11d8e7(0x362)](_0x2bcd24),this[_0x11d8e7(0x46b)](_0x2bcd24);});}[_0x4c0aa4(0x362)](_0x30f119){const _0x548cae=_0x4c0aa4;_0x30f119[_0x548cae(0x288)]!=null&&(clearTimeout(_0x30f119['retryConnectingTimer']),_0x30f119[_0x548cae(0x288)]=null);}async[_0x4c0aa4(0x2b0)](_0x2a5062){const _0xf4ac64=_0x4c0aa4;var _0x108e46,_0x210869;let _0x103551=this[_0xf4ac64(0x2a2)][_0xf4ac64(0x2ee)](m),_0x42232c=(_0x108e46=(_0x210869=_0x2a5062[_0xf4ac64(0x1dc)])==null?_0x103551==null?void 0x0:_0x103551[_0xf4ac64(0x2bd)]:_0x210869)==null?te:_0x108e46,_0x31599f=await this[_0xf4ac64(0x279)][_0xf4ac64(0x333)](_0x42232c);return _0x2a5062[_0xf4ac64(0x41d)]=_0x31599f,_0x31599f;}async[_0x4c0aa4(0x29a)](_0x3b0f69){const _0x4fdaf9=_0x4c0aa4;try{var _0x29cf16,_0x365df0;let _0x1e78e1=(_0x29cf16=(_0x365df0=_0x3b0f69[_0x4fdaf9(0x259)][_0x4fdaf9(0x1bd)]())==null?_0x3b0f69[_0x4fdaf9(0x41d)]:_0x365df0)==null?await this['_createSocket'](_0x3b0f69):_0x29cf16;if(_0x1e78e1){var _0x20aaf0;let _0x951776=_0x1e78e1[_0x4fdaf9(0x29c)];_0x1e78e1[_0x4fdaf9(0x29c)]=_0x457c20=>(_0x457c20[_0x4fdaf9(0x1ac)]!==a['CombCmd'][_0x4fdaf9(0x1da)]&&this['_rescheduleHeartbeat'](_0x3b0f69),_0x951776[_0x4fdaf9(0x287)](_0x1e78e1,[_0x457c20])),(_0x20aaf0=_0x3b0f69['socketMessageSubscription'])==null||_0x20aaf0[_0x4fdaf9(0x2dc)](),_0x3b0f69[_0x4fdaf9(0x3c1)]=null,_0x3b0f69[_0x4fdaf9(0x3c1)]=_0x1e78e1[_0x4fdaf9(0x1ae)][_0x4fdaf9(0x3a4)](_0x146258=>this[_0x4fdaf9(0x302)](_0x3b0f69,_0x1e78e1,_0x146258)),_0x1e78e1['error$'][_0x4fdaf9(0x331)]((0x0,s[_0x4fdaf9(0x1d8)])(0x1))[_0x4fdaf9(0x3a4)](_0x16b782=>this[_0x4fdaf9(0x387)][_0x4fdaf9(0x338)](_0x4fdaf9(0x35c),_0x16b782)),_0x1e78e1[_0x4fdaf9(0x394)][_0x4fdaf9(0x331)]((0x0,s[_0x4fdaf9(0x1d8)])(0x1))[_0x4fdaf9(0x3a4)](()=>{this['_onConnectionOpen'](_0x3b0f69,_0x1e78e1);}),_0x1e78e1[_0x4fdaf9(0x1e0)]['pipe']((0x0,s[_0x4fdaf9(0x1d8)])(0x1))['subscribe'](_0x5d3df7=>{const _0x320e7a=_0x4fdaf9;this[_0x320e7a(0x387)][_0x320e7a(0x2d4)](_0x320e7a(0x2a5),_0x320e7a(0x374),_0x5d3df7),this['_onConnectionFailed'](_0x3b0f69);});}}catch(_0x17e127){this[_0x4fdaf9(0x387)]['error'](_0x17e127),this[_0x4fdaf9(0x207)](_0x3b0f69);}}[_0x4c0aa4(0x2b6)](_0x1fb5ce,_0x586f9c){const _0x42d935=_0x4c0aa4;this[_0x42d935(0x387)]['debug'](_0x42d935(0x2a5),_0x42d935(0x496)),_0x586f9c[_0x42d935(0x29c)]({'cmd':a[_0x42d935(0x2db)][_0x42d935(0x476)]}),this[_0x42d935(0x1bf)](_0x1fb5ce);}[_0x4c0aa4(0x398)](_0x1e936f){const _0x771317=_0x4c0aa4;_0x1e936f['socketReady']=!0x1,_0x1e936f[_0x771317(0x41d)]=null,this[_0x771317(0x3b4)]['next'](0x2),_0x1e936f[_0x771317(0x259)][_0x771317(0x201)](null),this['_clearTimeoutTimer'](_0x1e936f),this[_0x771317(0x3d9)](_0x1e936f);}['_onConnectionFailed'](_0x590e34){const _0x2dfc87=_0x4c0aa4;var _0x3b32dd;this[_0x2dfc87(0x398)](_0x590e34),this[_0x2dfc87(0x246)](_0x590e34[_0x2dfc87(0x49e)])&&(_0x590e34[_0x2dfc87(0x368)]<((_0x3b32dd=this[_0x2dfc87(0x2a2)][_0x2dfc87(0x2ee)](_0x2dfc87(0x3c9)))==null?0x3:_0x3b32dd)?(this[_0x2dfc87(0x34a)][_0x2dfc87(0x40a)]({'id':_0x2dfc87(0x291)}),this['_tryReconnect'](_0x590e34)):this[_0x2dfc87(0x34a)][_0x2dfc87(0x40a)]({'id':_0x2dfc87(0x44f)}));}[_0x4c0aa4(0x46b)](_0x20bede){const _0x5337ea=_0x4c0aa4;var _0x5a5c28;let _0x5c6d99=_0x20bede[_0x5337ea(0x368)],_0xf1e769=this[_0x5337ea(0x2a2)][_0x5337ea(0x2ee)](m),_0x185ca2=_0x5c6d99===0x0?0x0:((_0x5a5c28=_0xf1e769==null?void 0x0:_0xf1e769['retryConnectingInterval'])==null?0x4e20:_0x5a5c28)*0x2**_0x5c6d99;_0x20bede[_0x5337ea(0x288)]=setTimeout(()=>{const _0x36e15d=_0x5337ea;clearTimeout(_0x20bede[_0x36e15d(0x288)]),_0x20bede['retryConnectingTimer']=null,this[_0x36e15d(0x29a)](_0x20bede);},_0x185ca2),_0x20bede[_0x5337ea(0x368)]+=0x1;}async[_0x4c0aa4(0x19e)](_0x34cecd,_0x1ff9cd){const _0x136817=_0x4c0aa4;return Qe(_0x34cecd,_0x1ff9cd,await this[_0x136817(0x420)][_0x136817(0x2ec)]({'unitId':_0x34cecd,'unitType':_0x1ff9cd}));}[_0x4c0aa4(0x302)](_0x14fdf5,_0x59e9d4,_0x1b41db){const _0x3cea01=_0x4c0aa4;let {cmd:_0x501dce}=_0x1b41db;_0x501dce===a[_0x3cea01(0x2db)]['HELLO']&&!_0x14fdf5['socketReady']&&(_0x59e9d4[_0x3cea01(0x3fc)]=_0x1b41db[_0x3cea01(0x233)][_0x3cea01(0x3fc)],_0x14fdf5[_0x3cea01(0x259)][_0x3cea01(0x201)](_0x59e9d4),this[_0x3cea01(0x3b4)][_0x3cea01(0x201)](0x3),_0x14fdf5['socketReady']=!0x0,_0x14fdf5[_0x3cea01(0x41d)]=null),_0x501dce===a[_0x3cea01(0x2db)][_0x3cea01(0x205)]&&this[_0x3cea01(0x399)](_0x14fdf5),this[_0x3cea01(0x1bf)](_0x14fdf5);}[_0x4c0aa4(0x246)](_0x53e6cb){const _0x59be7e=_0x4c0aa4;return[...this[_0x59be7e(0x240)]['values']()][_0x59be7e(0x45d)](_0x439bfe=>_0x439bfe===_0x53e6cb);}[_0x4c0aa4(0x37e)](_0x38af5c){const _0x675e5b=_0x4c0aa4;let _0x584876=_0x38af5c==null?'':_0x38af5c,_0x35f4aa=this['_socketChannels'][_0x675e5b(0x3a5)](_0x584876);if(_0x35f4aa)return _0x35f4aa;let _0x468bd6={'endpointKey':_0x584876,'endpoint':_0x38af5c,'socket$':new i[(_0x675e5b(0x20e))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x675e5b(0x35e)][_0x675e5b(0x3d4)](_0x584876,_0x468bd6),_0x468bd6;}[_0x4c0aa4(0x1bf)](_0x1f5fe9){const _0x35eb24=_0x4c0aa4;var _0x1efefa;this[_0x35eb24(0x3d9)](_0x1f5fe9),_0x1f5fe9[_0x35eb24(0x231)]=setTimeout(()=>this[_0x35eb24(0x1e2)](_0x1f5fe9),(_0x1efefa=this[_0x35eb24(0x2a2)]['getConfig'](_0x35eb24(0x3f6)))==null?0x7530:_0x1efefa);}['_sendHeartbeat'](_0x2ae2d2){const _0x46084b=_0x4c0aa4;_0x2ae2d2[_0x46084b(0x259)][_0x46084b(0x1bd)]()['send']({'cmd':a[_0x46084b(0x2db)]['HEARTBEAT']}),this[_0x46084b(0x39f)](_0x2ae2d2);}[_0x4c0aa4(0x39f)](_0x2d8ce4){const _0x4fa3cd=_0x4c0aa4;var _0x5adf97;_0x2d8ce4[_0x4fa3cd(0x263)]=setTimeout(()=>this['_onConnectionFailed'](_0x2d8ce4),(_0x5adf97=this[_0x4fa3cd(0x2a2)]['getConfig']('HEARTBEAT_TIMEOUT'))==null?ne:_0x5adf97);}[_0x4c0aa4(0x3d9)](_0x4ab120){const _0x2ef718=_0x4c0aa4;_0x4ab120['sendHeartbeatTimer']!=null&&(clearTimeout(_0x4ab120[_0x2ef718(0x231)]),_0x4ab120['sendHeartbeatTimer']=null);}[_0x4c0aa4(0x399)](_0x233406){const _0x864fa4=_0x4c0aa4;_0x233406[_0x864fa4(0x263)]!=null&&(clearTimeout(_0x233406[_0x864fa4(0x263)]),_0x233406[_0x864fa4(0x263)]=null);}};V=y([v(0x0,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x1,t[_0x4c0aa4(0x2f9)]),v(0x2,t[_0x4c0aa4(0x4a5)]),v(0x3,qe),v(0x4,(0x0,t['Inject'])(_)),v(0x5,Xe),v(0x6,(0x0,t[_0x4c0aa4(0x37d)])(We))],V);let H=class extends t['RxDisposable']{constructor(_0x2ab3cc,_0x40e81f,_0x46f107,_0x2a9b7f){const _0x29d0f5=_0x4c0aa4;var _0x46b4ae;super(),this[_0x29d0f5(0x1fd)]=_0x2ab3cc,this['_collabSessionService']=_0x40e81f,this['_configService']=_0x46f107,this[_0x29d0f5(0x294)]=_0x2a9b7f,g(this,_0x29d0f5(0x2b8),new Map()),g(this,'_entityInit$',new i[(_0x29d0f5(0x378))]()),g(this,_0x29d0f5(0x293),this[_0x29d0f5(0x206)][_0x29d0f5(0x421)]()),((_0x46b4ae=this[_0x29d0f5(0x2a2)][_0x29d0f5(0x2ee)](_0x29d0f5(0x1a9)))==null?void 0x0:_0x46b4ae[_0x29d0f5(0x48d)])!==!0x1&&this[_0x29d0f5(0x1f1)]();}[_0x4c0aa4(0x28d)](){const _0x59840c=_0x4c0aa4;super['dispose'](),this['_entities'][_0x59840c(0x1a5)](_0x3e1366=>_0x3e1366[_0x59840c(0x28d)]()),this[_0x59840c(0x2b8)][_0x59840c(0x26a)]();}[_0x4c0aa4(0x21d)](_0x503a86){const _0x28e1f7=_0x4c0aa4;var _0x28f129;return(_0x28f129=this[_0x28e1f7(0x2b8)][_0x28e1f7(0x3a5)](_0x503a86))==null?null:_0x28f129;}[_0x4c0aa4(0x1d5)](_0x107a2f){const _0xb5cbc5=_0x4c0aa4;let _0x487e9f=this[_0xb5cbc5(0x21d)](_0x107a2f);return _0x487e9f?(0x0,i['of'])(_0x487e9f):this[_0xb5cbc5(0x206)][_0xb5cbc5(0x331)]((0x0,s[_0xb5cbc5(0x19a)])(_0x3c7524=>_0x3c7524[_0xb5cbc5(0x426)]===_0x107a2f));}[_0x4c0aa4(0x24c)](_0x2c7c5a){const _0x51fa2f=_0x4c0aa4;return(0x0,i['firstValueFrom'])(this['getCollabEntity$'](_0x2c7c5a)[_0x51fa2f(0x331)]((0x0,s[_0x51fa2f(0x1c8)])(()=>void 0x0)));}[_0x4c0aa4(0x1f1)](){const _0x5dcb17=_0x4c0aa4;this[_0x5dcb17(0x294)][_0x5dcb17(0x1bb)](t['UniverInstanceType'][_0x5dcb17(0x286)])[_0x5dcb17(0x331)]((0x0,i[_0x5dcb17(0x429)])(this[_0x5dcb17(0x428)]),(0x0,s['delay'])(0x10))[_0x5dcb17(0x3a4)](async _0x5d9cdc=>{const _0x35965b=_0x5dcb17;let _0x37dfc5=_0x5d9cdc['unit'][_0x35965b(0x1ef)](),_0x149c50=await this['_startCollaboration'](_0x37dfc5,t['UniverInstanceType'][_0x35965b(0x286)]);this[_0x35965b(0x2b8)]['set'](_0x37dfc5,_0x149c50);}),this[_0x5dcb17(0x294)][_0x5dcb17(0x1bb)](t[_0x5dcb17(0x425)][_0x5dcb17(0x1d6)])[_0x5dcb17(0x331)]((0x0,i[_0x5dcb17(0x429)])(this[_0x5dcb17(0x428)]),(0x0,s[_0x5dcb17(0x2cd)])(0x10))[_0x5dcb17(0x331)]((0x0,s[_0x5dcb17(0x19a)])(_0x3176b4=>!_0x3176b4[_0x5dcb17(0x297)][_0x5dcb17(0x1ef)]()[_0x5dcb17(0x461)]('__')))[_0x5dcb17(0x3a4)](async _0xf5961a=>{const _0x22ed07=_0x5dcb17;let _0x3d81b0=_0xf5961a[_0x22ed07(0x297)][_0x22ed07(0x1ef)](),_0x20ea63=await this[_0x22ed07(0x2f8)](_0x3d81b0,t[_0x22ed07(0x425)][_0x22ed07(0x1d6)]);this[_0x22ed07(0x2b8)]['set'](_0x3d81b0,_0x20ea63);}),this[_0x5dcb17(0x294)][_0x5dcb17(0x1bb)](t['UniverInstanceType'][_0x5dcb17(0x348)])[_0x5dcb17(0x331)]((0x0,i[_0x5dcb17(0x429)])(this[_0x5dcb17(0x428)]),(0x0,s[_0x5dcb17(0x2cd)])(0x10))[_0x5dcb17(0x3a4)](async _0x8583f9=>{const _0x504792=_0x5dcb17;let _0x59829=_0x8583f9[_0x504792(0x297)][_0x504792(0x1ef)](),_0x1f1a18=await this[_0x504792(0x2f8)](_0x59829,t[_0x504792(0x425)]['UNIVER_SLIDE']);this['_entities']['set'](_0x59829,_0x1f1a18);}),this[_0x5dcb17(0x294)]['getTypeOfUnitAdded$'](t[_0x5dcb17(0x425)][_0x5dcb17(0x244)])[_0x5dcb17(0x331)]((0x0,i[_0x5dcb17(0x429)])(this[_0x5dcb17(0x428)]),(0x0,s[_0x5dcb17(0x2cd)])(0x10))[_0x5dcb17(0x3a4)](async _0x27087d=>{const _0x4ba923=_0x5dcb17;let _0x4c9bb5=_0x27087d['unit'][_0x4ba923(0x1ef)](),_0x126b06=await this['_startCollaboration'](_0x4c9bb5,t[_0x4ba923(0x425)][_0x4ba923(0x244)]);this[_0x4ba923(0x2b8)][_0x4ba923(0x3d4)](_0x4c9bb5,_0x126b06);}),this[_0x5dcb17(0x294)][_0x5dcb17(0x1bb)](t[_0x5dcb17(0x425)][_0x5dcb17(0x2d5)])[_0x5dcb17(0x331)]((0x0,i[_0x5dcb17(0x429)])(this[_0x5dcb17(0x428)]),(0x0,s[_0x5dcb17(0x2cd)])(0x10))[_0x5dcb17(0x3a4)](async _0x2620d5=>{const _0x43e1bb=_0x5dcb17;let _0x16c50c=_0x2620d5[_0x43e1bb(0x297)][_0x43e1bb(0x1ef)](),_0x3cdcdf=await this[_0x43e1bb(0x2f8)](_0x16c50c,t[_0x43e1bb(0x425)][_0x43e1bb(0x2d5)]);this[_0x43e1bb(0x2b8)][_0x43e1bb(0x3d4)](_0x16c50c,_0x3cdcdf);}),(0x0,i['merge'])(this[_0x5dcb17(0x294)][_0x5dcb17(0x499)](t[_0x5dcb17(0x425)][_0x5dcb17(0x286)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](t[_0x5dcb17(0x425)]['UNIVER_DOC']),this[_0x5dcb17(0x294)][_0x5dcb17(0x499)](t['UniverInstanceType'][_0x5dcb17(0x348)]),this[_0x5dcb17(0x294)][_0x5dcb17(0x499)](t[_0x5dcb17(0x425)][_0x5dcb17(0x244)]),this[_0x5dcb17(0x294)][_0x5dcb17(0x499)](t[_0x5dcb17(0x425)][_0x5dcb17(0x2d5)]))['pipe']((0x0,i['takeUntil'])(this[_0x5dcb17(0x428)]))[_0x5dcb17(0x3a4)](_0x186e86=>{const _0x262099=_0x5dcb17;let _0x364266=_0x186e86[_0x262099(0x1ef)](),_0x4f9114=this[_0x262099(0x2b8)][_0x262099(0x3a5)](_0x364266);_0x4f9114&&(_0x4f9114[_0x262099(0x28d)](),this[_0x262099(0x2b8)][_0x262099(0x24b)](_0x364266));});}async['_startCollaboration'](_0x126a84,_0x425703){const _0x46d76c=_0x4c0aa4;let _0x5c0b1b=await this['_collabSessionService']['requireSession'](_0x126a84),_0xd16dba=this['_injector'][_0x46d76c(0x47e)](this[_0x46d76c(0x23a)](_0x425703),_0x126a84,_0x425703,_0x5c0b1b);return await _0xd16dba[_0x46d76c(0x30d)](),this[_0x46d76c(0x206)][_0x46d76c(0x201)](_0xd16dba),_0xd16dba;}['_getCtorByUniverInstanceType'](_0x35e3c0){const _0x19f3c0=_0x4c0aa4;switch(_0x35e3c0){case t[_0x19f3c0(0x425)][_0x19f3c0(0x1d6)]:return I;case t[_0x19f3c0(0x425)][_0x19f3c0(0x286)]:return R;case t[_0x19f3c0(0x425)][_0x19f3c0(0x348)]:return z;case t['UniverInstanceType'][_0x19f3c0(0x244)]:return B;case t[_0x19f3c0(0x425)][_0x19f3c0(0x2d5)]:return L;default:throw Error(_0x19f3c0(0x26b)+_0x35e3c0);}}};H=y([v(0x0,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x1,(0x0,t['Inject'])(V)),v(0x2,t[_0x4c0aa4(0x4a5)]),v(0x3,t[_0x4c0aa4(0x31d)])],H);var $e=_0x4c0aa4(0x3db),et=_0x4c0aa4(0x45c);let tt=class extends t['Disposable']{constructor(_0x3d8137,_0xdd81f6){const _0x13bab5=_0x4c0aa4;super(),this['_univerInstanceService']=_0x3d8137,this['_configService']=_0xdd81f6,this[_0x13bab5(0x1f1)]();}[_0x4c0aa4(0x1f1)](){const _0x585218=_0x4c0aa4;this[_0x585218(0x38b)](this[_0x585218(0x294)][_0x585218(0x308)][_0x585218(0x3a4)](()=>{const _0x2b4592=_0x585218;var _0x30e7fa;let _0x431328=this[_0x2b4592(0x294)][_0x2b4592(0x18b)](),_0x49cee7=(_0x30e7fa=this['_configService'][_0x2b4592(0x2ee)](_0x2b4592(0x1c1)))==null?_0x2b4592(0x498):_0x30e7fa;_0x431328 instanceof t[_0x2b4592(0x1d2)]&&(_0x49cee7=_0x431328[_0x2b4592(0x364)]),document[_0x2b4592(0x2af)]=_0x49cee7;}));}};tt=y([v(0x0,t['IUniverInstanceService']),v(0x1,t[_0x4c0aa4(0x4a5)])],tt);let nt=function(_0x20dfb9){const _0x496ec1=_0x4c0aa4;return _0x20dfb9['URL']=_0x496ec1(0x422),_0x20dfb9[_0x496ec1(0x41c)]=_0x496ec1(0x41c),_0x20dfb9[_0x496ec1(0x23e)]=_0x496ec1(0x23e),_0x20dfb9;}({});const rt=(0x0,t['createIdentifier'])('base-ui.attachment-io.service');let U=class{constructor(_0x55516d,_0x18d9e8,_0x11de2a){const _0x27e218=_0x4c0aa4;this['_httpService']=_0x55516d,this['_configService']=_0x18d9e8,this[_0x27e218(0x294)]=_0x11de2a;}[_0x4c0aa4(0x2c5)](){const _0x45222c=_0x4c0aa4;var _0x2f2d80;return(_0x2f2d80=this[_0x45222c(0x412)]()[_0x45222c(0x45a)])==null?{}:_0x2f2d80;}async[_0x4c0aa4(0x2f0)](_0x47934c){const _0x4f4103=_0x4c0aa4;let _0x585a75=this[_0x4f4103(0x2c5)]();if(it(_0x47934c,_0x585a75),_0x585a75[_0x4f4103(0x315)])return _0x585a75[_0x4f4103(0x315)](_0x47934c);let _0x1df784=await this[_0x4f4103(0x371)](_0x47934c);return{'id':_0x1df784,'name':_0x47934c[_0x4f4103(0x364)],'mimeType':_0x47934c[_0x4f4103(0x27c)],'size':_0x47934c['size'],'sourceType':_0x4f4103(0x41c),'source':_0x1df784};}async[_0x4c0aa4(0x371)](_0x4fb014){const _0x135487=_0x4c0aa4;let _0x25a256=this['_univerInstanceService'][_0x135487(0x18b)](),_0x1cb680=_0x25a256==null?void 0x0:_0x25a256[_0x135487(0x1ef)]();if(!_0x1cb680)throw Error(_0x135487(0x3b5));let _0x557dd4=new FormData();_0x557dd4[_0x135487(0x455)]('file',_0x4fb014);let _0x336c10=this[_0x135487(0x3d7)]()+_0x135487(0x1ab)+_0x4fb014[_0x135487(0x209)][_0x135487(0x208)]()+_0x135487(0x1bc)+a[_0x135487(0x3ec)][_0x135487(0x25e)]+_0x135487(0x353)+encodeURIComponent(_0x1cb680),_0x3675f9=(await this[_0x135487(0x3f9)][_0x135487(0x2e3)](_0x336c10,{'body':_0x557dd4}))[_0x135487(0x1be)][_0x135487(0x3ca)];if(typeof _0x3675f9!=_0x135487(0x478)||!_0x3675f9)throw Error(_0x135487(0x298));return _0x3675f9;}[_0x4c0aa4(0x3d7)](){const _0x19c9bc=_0x4c0aa4;var _0x45474c;return(_0x45474c=this[_0x19c9bc(0x412)]()[_0x19c9bc(0x217)])==null?_0x19c9bc(0x3a3):_0x45474c;}[_0x4c0aa4(0x412)](){const _0x3316f9=_0x4c0aa4;var _0x2d4348;return(_0x2d4348=this[_0x3316f9(0x2a2)][_0x3316f9(0x2ee)](_0x3316f9(0x1a9)))==null?{}:_0x2d4348;}};U=y([v(0x0,(0x0,t[_0x4c0aa4(0x351)])(l[_0x4c0aa4(0x389)])),v(0x1,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x4a5)])),v(0x2,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x31d)]))],U);function it(_0xb0ffa2,_0x476e57){const _0x3b86f2=_0x4c0aa4;var _0x2f6992;if(_0x476e57[_0x3b86f2(0x409)]!=null&&_0xb0ffa2[_0x3b86f2(0x209)]>_0x476e57[_0x3b86f2(0x409)])throw Error(_0x3b86f2(0x2f5));if((_0x2f6992=_0x476e57[_0x3b86f2(0x372)])!=null&&_0x2f6992[_0x3b86f2(0x1c9)]&&!_0x476e57[_0x3b86f2(0x372)][_0x3b86f2(0x45d)](_0xc05308=>_0xb0ffa2[_0x3b86f2(0x27c)]===_0xc05308||_0xb0ffa2[_0x3b86f2(0x364)]['endsWith'](_0xc05308)||_0xc05308[_0x3b86f2(0x2f7)]('/*')&&_0xb0ffa2[_0x3b86f2(0x27c)][_0x3b86f2(0x461)](_0xc05308['slice'](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let W=class{constructor(_0x29100a,_0x205b84,_0x463793){const _0xbeb26d=_0x4c0aa4;this[_0xbeb26d(0x2a2)]=_0x29100a,this[_0xbeb26d(0x3f9)]=_0x205b84,this[_0xbeb26d(0x277)]=_0x463793,this[_0xbeb26d(0x30d)]();}['init'](){const _0x5b8aa1=_0x4c0aa4;this[_0x5b8aa1(0x3f9)][_0x5b8aa1(0x222)]({'priority':0x1,'interceptor':(_0xa56c3b,_0x573f25)=>_0x573f25(_0xa56c3b)[_0x5b8aa1(0x331)]((0x0,i['concatMap'])(async _0x46e8f1=>{const _0x2a492d=_0x5b8aa1;let _0x2c1ad1=_0x46e8f1;if(_0x2c1ad1[_0x2a492d(0x304)]===0x191){if(typeof window>'u')throw Error(_0x2a492d(0x3eb));if(window[_0x2a492d(0x3ac)](this['localeService']['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x8bd98e=window['encodeURIComponent'](window['location'][_0x2a492d(0x390)]);window['location'][_0x2a492d(0x390)]=this['_getLoginPath']()+_0x2a492d(0x2da)+_0x8bd98e;}}return _0x2c1ad1;}))});}['_getLoginPath'](){const _0x9b251f=_0x4c0aa4;var _0x3aafcd;let _0x290848=this[_0x9b251f(0x2a2)][_0x9b251f(0x2ee)](m);return(_0x3aafcd=_0x290848==null?void 0x0:_0x290848[_0x9b251f(0x260)])==null?'/universer-api/oidc/authpage':_0x3aafcd;}};W=y([v(0x0,t[_0x4c0aa4(0x4a5)]),v(0x1,(0x0,t[_0x4c0aa4(0x351)])(l[_0x4c0aa4(0x389)])),v(0x2,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x28b)]))],W);let G=class extends t[_0x4c0aa4(0x23f)]{constructor(_0x2501e7,_0x701ac7){const _0x133713=_0x4c0aa4;super(),this[_0x133713(0x1f6)]=_0x2501e7,this[_0x133713(0x2a2)]=_0x701ac7,g(this,_0x133713(0x30a),!0x1),this[_0x133713(0x38f)]();}[_0x4c0aa4(0x38f)](){const _0x452ff9=_0x4c0aa4;let _0x9dce92=this;this[_0x452ff9(0x38b)](this[_0x452ff9(0x1f6)][_0x452ff9(0x222)]({'priority':0x3e7,'interceptor':(0x0,l[_0x452ff9(0x282)])({'isMatch'(_0xf1c8e8){const _0x241b22=_0x452ff9;var _0x162fbc;if(_0xf1c8e8[_0x241b22(0x192)]===_0x241b22(0x1a6)&&(_0x162fbc=_0xf1c8e8[_0x241b22(0x3b2)])!=null&&_0x162fbc[_0x241b22(0x1be)]){let {objectID:_0x2353e7,objectType:_0x1b4667}=_0xf1c8e8[_0x241b22(0x3b2)][_0x241b22(0x1be)]||{};if(!_0x2353e7||_0x1b4667===void 0x0)return!0x1;let _0x30598a=_0x9dce92[_0x241b22(0x380)]()+'/'+_0x1b4667+_0x241b22(0x385)+_0x2353e7+_0x241b22(0x266);if(_0xf1c8e8[_0x241b22(0x1f2)]===_0x30598a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x130a7d){const _0x23e619=_0x452ff9;var _0x2423cc;return(_0x2423cc=_0x130a7d[_0x23e619(0x3b2)])==null?void 0x0:_0x2423cc[_0x23e619(0x1be)];},'mergeParamsToRequest'(_0x5f296b,_0x571afc){const _0x2ed478=_0x452ff9;let _0x1bbcac=_0x9dce92[_0x2ed478(0x380)]()+_0x2ed478(0x3d8),_0x5833da=_0x5f296b['reduce']((_0x161398,_0x3e91d4)=>{const _0x269b1a=_0x2ed478;let {unitID:_0x392601,objectID:_0x133f53,objectType:_0x701b47,actions:_0x191993}=_0x3e91d4;return _0x161398[_0x392601]||(_0x161398[_0x392601]={}),_0x161398[_0x392601][_0x133f53]||(_0x161398[_0x392601][_0x133f53]={'objectID':_0x133f53,'objectType':_0x701b47,'actions':[]}),_0x161398[_0x392601][_0x133f53][_0x269b1a(0x28c)][_0x269b1a(0x1e4)](..._0x191993),_0x161398;},{}),_0x6ec10=[];for(let _0xa7a04c in _0x5833da)for(let _0x353d04 in _0x5833da[_0xa7a04c]){let {actions:_0x51b4a6,objectType:_0x37a440}=_0x5833da[_0xa7a04c][_0x353d04],_0x3151df=[...new Set(_0x51b4a6)];_0x6ec10[_0x2ed478(0x1e4)]({'unitID':_0xa7a04c,'objectID':_0x353d04,'objectType':_0x37a440,'actions':_0x3151df});}return new l[(_0x2ed478(0x2df))](_0x2ed478(0x1a6),_0x1bbcac,{'headers':_0x571afc[_0x2ed478(0x453)],'withCredentials':_0x571afc['withCredentials'],'responseType':_0x571afc['responseType'],'body':{'requests':_0x6ec10}});}},{'distributeResult'(_0x4c9cb4,_0x276040){let {objectActions:_0x53673d}=_0x4c9cb4;return _0x276040['map'](_0x32f492=>{const _0x5f0ce7=_0x290d;let {unitID:_0x1446db,objectID:_0xdf6c84,actions:_0xe66171}=_0x32f492,_0x6e1437=_0x53673d[_0x5f0ce7(0x19b)](_0x502027=>_0x502027[_0x5f0ce7(0x426)]===_0x1446db&&_0x502027[_0x5f0ce7(0x230)]===_0xdf6c84);return{'config':_0x32f492,'result':{'actions':_0xe66171[_0x5f0ce7(0x1c8)](_0x5a212b=>_0x6e1437==null?void 0x0:_0x6e1437['actions'][_0x5f0ce7(0x19b)](_0x3b22bc=>_0x3b22bc['action']===_0x5a212b))[_0x5f0ce7(0x19a)](_0xfddb2f=>!!_0xfddb2f),'error':_0x4c9cb4[_0x5f0ce7(0x338)]}};});}})}));}['_getAPIPrefixPath'](){const _0x4a26ab=_0x4c0aa4;var _0x499f02;let _0x45b220=this[_0x4a26ab(0x2a2)][_0x4a26ab(0x2ee)](m);return(_0x499f02=_0x45b220==null?void 0x0:_0x45b220[_0x4a26ab(0x1b5)])==null?_0x4a26ab(0x391):_0x499f02;}async[_0x4c0aa4(0x2e9)](_0x4ca93b){const _0x46bb92=_0x4c0aa4;let _0x39b28e=this[_0x46bb92(0x380)]()+'/'+_0x4ca93b[_0x46bb92(0x449)]+_0x46bb92(0x402);return(await this['_HTTPService'][_0x46bb92(0x2e3)](_0x39b28e,{'body':_0x4ca93b}))[_0x46bb92(0x1be)][_0x46bb92(0x230)]||'';}async[_0x4c0aa4(0x491)](_0x5d952a){const _0x20fab3=_0x4c0aa4;let _0x1af8a9=this[_0x20fab3(0x380)]()+_0x20fab3(0x25b);return(await this[_0x20fab3(0x1f6)][_0x20fab3(0x2e3)](_0x1af8a9,{'body':_0x5d952a}))[_0x20fab3(0x1be)][_0x20fab3(0x245)];}async[_0x4c0aa4(0x33b)](_0x41a3eb){const _0x9e3459=_0x4c0aa4;var _0x3de28f;let _0x3e142f=this[_0x9e3459(0x380)]()+'/'+_0x41a3eb[_0x9e3459(0x449)]+_0x9e3459(0x385)+_0x41a3eb[_0x9e3459(0x230)],_0x4850ef=await this[_0x9e3459(0x1f6)][_0x9e3459(0x456)](_0x3e142f,{'body':_0x41a3eb});if((_0x4850ef==null||(_0x3de28f=_0x4850ef['body'])==null||(_0x3de28f=_0x3de28f[_0x9e3459(0x338)])==null?void 0x0:_0x3de28f[_0x9e3459(0x403)])!==0x1)throw Error(_0x9e3459(0x289));}async[_0x4c0aa4(0x236)](_0x31181f){const _0x2ab8f2=_0x4c0aa4;let _0x749ec7=this[_0x2ab8f2(0x380)]()+'/'+_0x31181f[_0x2ab8f2(0x449)]+'/object/'+_0x31181f['objectID']+'/allowed';return(await this['_HTTPService'][_0x2ab8f2(0x2e3)](_0x749ec7,{'body':_0x31181f}))[_0x2ab8f2(0x1be)][_0x2ab8f2(0x28c)];}async[_0x4c0aa4(0x3ab)](_0x51464a){const _0xb24b49=_0x4c0aa4;let _0x5a45de=this[_0xb24b49(0x380)]()+_0xb24b49(0x3d8);return(await this[_0xb24b49(0x1f6)]['post'](_0x5a45de,{'body':{'requests':_0x51464a}}))[_0xb24b49(0x1be)][_0xb24b49(0x18a)];}async[_0x4c0aa4(0x49c)](_0x439e65){const _0x191b72=_0x4c0aa4;let _0x49a7d6=this[_0x191b72(0x380)]()+'/'+_0x439e65[_0x191b72(0x449)]+_0x191b72(0x295),_0x22652d=await this[_0x191b72(0x1f6)][_0x191b72(0x2e3)](_0x49a7d6,{'body':_0x439e65});return{'roles':_0x22652d[_0x191b72(0x1be)][_0x191b72(0x435)],'actions':_0x22652d[_0x191b72(0x1be)][_0x191b72(0x28c)]};}async['deleteCollaborator'](_0x2a384f){const _0xc8bcf=_0x4c0aa4;let _0x373bbc=this[_0xc8bcf(0x380)]()+_0xc8bcf(0x221);await this[_0xc8bcf(0x1f6)][_0xc8bcf(0x24b)](_0x373bbc,{'params':{'collaboratorID':_0x2a384f[_0xc8bcf(0x1cc)],'objectID':_0x2a384f[_0xc8bcf(0x230)],'unitID':_0x2a384f['unitID']}});}async[_0x4c0aa4(0x354)](_0x2b4616){const _0x26089f=_0x4c0aa4;let _0x528ea7=this[_0x26089f(0x380)]()+_0x26089f(0x221);await this[_0x26089f(0x1f6)][_0x26089f(0x296)](_0x528ea7,{'body':_0x2b4616});}async['createCollaborator'](_0xe53299){const _0x3c7a27=_0x4c0aa4;let _0x4c95dc=this[_0x3c7a27(0x380)]()+_0x3c7a27(0x221);await this[_0x3c7a27(0x1f6)][_0x3c7a27(0x2e3)](_0x4c95dc,{'body':_0xe53299});}async[_0x4c0aa4(0x1ad)](_0x7144f9){const _0x1beded=_0x4c0aa4;var _0x253437;let _0x43404c=this[_0x1beded(0x380)]()+'/collaborator',_0x4f22a1=await this[_0x1beded(0x1f6)][_0x1beded(0x3a5)](_0x43404c,{'params':{'objectID':_0x7144f9['objectID'],'unitID':_0x7144f9[_0x1beded(0x426)]}});return this[_0x1beded(0x2e0)]((_0x253437=_0x4f22a1[_0x1beded(0x1be)][_0x1beded(0x25f)])==null?!0x1:_0x253437),_0x4f22a1[_0x1beded(0x1be)][_0x1beded(0x454)];}async[_0x4c0aa4(0x47f)](_0x10dcc0){const _0x46258d=_0x4c0aa4;let _0x2b92c1=this[_0x46258d(0x380)]()+_0x46258d(0x221);await this['_HTTPService'][_0x46258d(0x456)](_0x2b92c1,{'body':_0x10dcc0});}[_0x4c0aa4(0x2e0)](_0x3857a0){const _0x41a651=_0x4c0aa4;this[_0x41a651(0x30a)]=_0x3857a0;}[_0x4c0aa4(0x415)](){const _0x9144e2=_0x4c0aa4;return this[_0x9144e2(0x30a)];}};G=y([v(0x0,(0x0,t['Inject'])(l[_0x4c0aa4(0x389)])),v(0x1,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x4a5)]))],G);function at(_0x475c4b){const _0x19f3dd=_0x4c0aa4;let _0x3a203b=atob(_0x475c4b),_0x3a1123=new Uint8Array(_0x3a203b[_0x19f3dd(0x1c9)]);for(let _0x41c803=0x0;_0x41c803<_0x3a203b[_0x19f3dd(0x1c9)];_0x41c803++)_0x3a1123[_0x41c803]=_0x3a203b[_0x19f3dd(0x200)](_0x41c803);return _0x3a1123;}function ot(_0x11df16){const _0x537f41=_0x4c0aa4;let _0x559256='';for(let _0x467894=0x0;_0x467894<_0x11df16[_0x537f41(0x1c9)];_0x467894++)_0x559256+=String['fromCharCode'](_0x11df16[_0x467894]);return btoa(_0x559256);}function st(_0x1026e6,_0xf5198a){const _0x161cdc=_0x4c0aa4;let _0x1991a8=at(_0xf5198a),_0x5b47c9=(0x0,f[_0x161cdc(0x26f)])(0x10);return ot((0x0,f[_0x161cdc(0x386)])(_0x5b47c9,(0x0,d[_0x161cdc(0x24f)])(_0x1991a8,_0x5b47c9)[_0x161cdc(0x1f4)]((0x0,f[_0x161cdc(0x21a)])(_0x1026e6))));}function ct(){const _0x3c48b1=_0x4c0aa4;let _0x506559=(0x0,u[_0x3c48b1(0x2eb)])()[_0x3c48b1(0x30e)];if(typeof window<'u'&&window[_0x3c48b1(0x273)]!==void 0x0&&_0x506559){let _0x1732ec={'time':Math[_0x3c48b1(0x32d)](Date[_0x3c48b1(0x471)]()/0x3e8),'domain':location['hostname']};return st(JSON['stringify'](_0x1732ec),_0x506559);}}let K=class{constructor(_0x566bf8){const _0x472042=_0x4c0aa4;this['_httpService']=_0x566bf8,this[_0x472042(0x488)]();}[_0x4c0aa4(0x488)](){const _0x6acd0d=_0x4c0aa4;this[_0x6acd0d(0x3f9)][_0x6acd0d(0x222)]({'interceptor':(_0x3a7fc2,_0x2bb42e)=>{const _0x17d27b=_0x6acd0d;let _0x1543ed=ct();return _0x1543ed&&_0x3a7fc2[_0x17d27b(0x453)][_0x17d27b(0x3d4)]('x-univer-host',_0x1543ed),_0x2bb42e(_0x3a7fc2);}});}};K=y([v(0x0,(0x0,t[_0x4c0aa4(0x351)])(l[_0x4c0aa4(0x389)]))],K);let q=class extends t[_0x4c0aa4(0x31c)]{constructor(_0xca4642,_0x255af7,_0x5aafd3){const _0x221670=_0x4c0aa4;super(),this[_0x221670(0x387)]=_0xca4642,this[_0x221670(0x204)]=_0x255af7,this[_0x221670(0x2c4)]=_0x5aafd3,g(this,_0x221670(0x1e7),new i['BehaviorSubject'](null)),g(this,_0x221670(0x433),new i[(_0x221670(0x378))]()),g(this,_0x221670(0x188),this[_0x221670(0x1e7)][_0x221670(0x421)]()),g(this,_0x221670(0x20a),this[_0x221670(0x433)][_0x221670(0x421)]());}[_0x4c0aa4(0x28d)](){const _0x4e3118=_0x4c0aa4;super[_0x4e3118(0x28d)](),this['_unitLoaded$'][_0x4e3118(0x470)](),this[_0x4e3118(0x1e7)][_0x4e3118(0x470)]();}async['loadUnitOfRevision'](_0x27daea,_0x5d97bb,_0x54a7af,_0x339e48){const _0x169c08=_0x4c0aa4;this[_0x169c08(0x1e7)]['next']({'unitId':_0x27daea,'type':_0x5d97bb,'subUnitId':_0x339e48});let _0x5266bd=null;switch(_0x5d97bb){case t[_0x169c08(0x425)][_0x169c08(0x286)]:_0x5266bd=await this[_0x169c08(0x204)][_0x169c08(0x356)](_0x27daea,_0x54a7af,void 0x0,{'initialSubUnitId':_0x339e48});break;case t[_0x169c08(0x425)][_0x169c08(0x1d6)]:_0x5266bd=await this[_0x169c08(0x204)]['loadDoc'](_0x27daea,_0x54a7af);break;case t[_0x169c08(0x425)][_0x169c08(0x348)]:_0x5266bd=await this['_snapshotService'][_0x169c08(0x285)](_0x27daea,_0x54a7af);break;case t[_0x169c08(0x425)][_0x169c08(0x244)]:_0x5266bd=await this[_0x169c08(0x204)][_0x169c08(0x423)](_0x27daea,_0x54a7af);break;case t[_0x169c08(0x425)]['UNIVER_BASE']:_0x5266bd=await this[_0x169c08(0x204)]['loadBase'](_0x27daea,_0x54a7af);break;default:this[_0x169c08(0x387)]['error'](_0x169c08(0x27f),_0x169c08(0x467));break;}return _0x5266bd&&this['_unitLoaded$'][_0x169c08(0x201)](_0x5266bd),_0x5266bd;}async[_0x4c0aa4(0x2fd)](_0x2aa47f,_0x4190ba,_0x34355e){const _0x4f966c=_0x4c0aa4;var _0x120f20;this[_0x4f966c(0x1e7)][_0x4f966c(0x201)]({'unitId':_0x2aa47f,'type':_0x4190ba,'subUnitId':_0x34355e});let _0xa6c7e9=0x0,_0x16d9ba=await((_0x120f20=this[_0x4f966c(0x2c4)])==null?void 0x0:_0x120f20[_0x4f966c(0x37c)](_0x2aa47f));return _0x16d9ba&&(_0x16d9ba[_0x4f966c(0x3e0)]||_0x16d9ba[_0x4f966c(0x4a9)][_0x4f966c(0x1c9)]!==0x0)&&(_0xa6c7e9=_0x16d9ba[_0x4f966c(0x3f5)]),_0xa6c7e9===0x0&&this[_0x4f966c(0x387)][_0x4f966c(0x2d4)](_0x4f966c(0x27f),_0x4f966c(0x365)),this[_0x4f966c(0x196)](_0x2aa47f,_0x4190ba,_0xa6c7e9,_0x34355e);}};q=y([v(0x0,t['ILogService']),v(0x1,(0x0,t['Inject'])(e['SnapshotService'])),v(0x2,(0x0,t['Optional'])(S))],q);let J=class{constructor(_0x341a1e,_0x4fc1fa,_0x173bbf){const _0x5e3875=_0x4c0aa4;this[_0x5e3875(0x3f9)]=_0x341a1e,this[_0x5e3875(0x2a2)]=_0x4fc1fa,this['_univerInstanceService']=_0x173bbf,g(this,_0x5e3875(0x49f),0x0),g(this,_0x5e3875(0x185),new i['Subject']()),g(this,_0x5e3875(0x271),this['_change$']),g(this,_0x5e3875(0x395),new Map());}[_0x4c0aa4(0x336)](_0x39ef3d){const _0x15943d=_0x4c0aa4;this[_0x15943d(0x49f)]=_0x39ef3d,this[_0x15943d(0x185)]['next'](_0x39ef3d);}[_0x4c0aa4(0x301)](_0x58df98,_0xde5517){const _0x4c94ae=_0x4c0aa4;if(_0xde5517===t[_0x4c94ae(0x25d)]['BASE64']){let _0x45384a=new Image();return _0x45384a[_0x4c94ae(0x42c)]=_0x58df98,_0x45384a;}return this['_imageSourceCache']['get'](_0x58df98);}[_0x4c0aa4(0x1ea)](_0x2d8ac5,_0x351bc2,_0x2012e1){const _0x52017f=_0x4c0aa4;_0x351bc2===t[_0x52017f(0x25d)]['BASE64']||_0x2012e1==null||this[_0x52017f(0x395)][_0x52017f(0x3d4)](_0x2d8ac5,_0x2012e1);}async[_0x4c0aa4(0x20b)](_0x2da02){const _0x53208f=_0x4c0aa4;try{let _0x374cb7=this[_0x53208f(0x407)](this[_0x53208f(0x4aa)](),''+_0x2da02),_0x1fef81=(await this[_0x53208f(0x3f9)]['get'](_0x374cb7))[_0x53208f(0x1be)];if(_0x1fef81['error']&&_0x1fef81[_0x53208f(0x338)][_0x53208f(0x403)]===a['ErrorCode']['OK']){let _0x150865=(0x0,t['resolveWithBasePath'])(_0x1fef81['url'],this[_0x53208f(0x3c3)]());return Promise[_0x53208f(0x42e)](_0x150865);}return Promise[_0x53208f(0x1b6)](_0x1fef81['error']);}catch(_0x3b609b){return Promise['reject'](_0x3b609b);}}async[_0x4c0aa4(0x46d)](_0x32574b){const _0x3fc7cc=_0x4c0aa4;let _0x5018fe='';if(!p['DRAWING_IMAGE_ALLOW_IMAGE_LIST'][_0x3fc7cc(0x1a7)](_0x32574b['type']))return this[_0x3fc7cc(0x366)](),Promise[_0x3fc7cc(0x1b6)](Error(t[_0x3fc7cc(0x2b9)][_0x3fc7cc(0x292)]));if(_0x32574b[_0x3fc7cc(0x209)]>(0x0,p[_0x3fc7cc(0x2ab)])())return this[_0x3fc7cc(0x366)](),Promise[_0x3fc7cc(0x1b6)](Error(t[_0x3fc7cc(0x2b9)][_0x3fc7cc(0x2b4)]));try{let _0x1e9be8=new FormData();_0x1e9be8[_0x3fc7cc(0x455)](_0x3fc7cc(0x24a),_0x32574b);let _0x24c8fd=this['_univerInstanceService'][_0x3fc7cc(0x18b)](),_0x52ec1b=_0x24c8fd==null?void 0x0:_0x24c8fd[_0x3fc7cc(0x1ef)]();if(!_0x52ec1b)throw Error('unitId\x20is\x20not\x20found');let _0x4f684f=this[_0x3fc7cc(0x3d7)]()+_0x3fc7cc(0x1ab)+_0x32574b[_0x3fc7cc(0x209)][_0x3fc7cc(0x208)]()+_0x3fc7cc(0x1bc)+a[_0x3fc7cc(0x3ec)][_0x3fc7cc(0x25e)]+'&assign='+encodeURIComponent(_0x52ec1b),_0x5e3ee2={'body':_0x1e9be8},_0x103f4d=(await this[_0x3fc7cc(0x3f9)][_0x3fc7cc(0x2e3)](_0x4f684f,_0x5e3ee2))[_0x3fc7cc(0x1be)];if(typeof _0x103f4d[_0x3fc7cc(0x3ca)]!='string')return this[_0x3fc7cc(0x366)](),Promise[_0x3fc7cc(0x1b6)](Error(t[_0x3fc7cc(0x2b9)]['ERROR_IMAGE']));_0x5018fe=_0x103f4d['FileId'];}catch{return this[_0x3fc7cc(0x366)](),Promise[_0x3fc7cc(0x1b6)](Error(t['ImageUploadStatusType'][_0x3fc7cc(0x47a)]));}return new Promise((_0x25fff2,_0x539051)=>{const _0x33daf5=_0x3fc7cc;let _0x36c2b6=new FileReader();_0x36c2b6[_0x33daf5(0x414)](_0x32574b),_0x36c2b6[_0x33daf5(0x318)]=_0x34a7b1=>{const _0x3cd3eb=_0x33daf5;var _0x40e5c0;let _0x3d87ad=(_0x40e5c0=_0x34a7b1['target'])==null?void 0x0:_0x40e5c0[_0x3cd3eb(0x3ef)];if(_0x3d87ad==null){this[_0x3cd3eb(0x366)](),_0x539051(Error(t[_0x3cd3eb(0x2b9)][_0x3cd3eb(0x47a)]));return;}_0x25fff2({'imageId':(0x0,t[_0x3cd3eb(0x359)])(0x6),'imageSourceType':t[_0x3cd3eb(0x25d)]['UUID'],'source':_0x5018fe,'base64Cache':_0x3d87ad,'status':t[_0x3cd3eb(0x2b9)]['SUCCUSS']}),this[_0x3cd3eb(0x366)]();};});}[_0x4c0aa4(0x3d7)](){const _0x121844=_0x4c0aa4;var _0x4c5736;let _0x1e7c08=this['_configService'][_0x121844(0x2ee)](m);return(_0x4c5736=_0x1e7c08==null?void 0x0:_0x1e7c08[_0x121844(0x217)])==null?_0x121844(0x3a3):_0x4c5736;}[_0x4c0aa4(0x4aa)](){const _0x2c5e13=_0x4c0aa4;var _0x12daad;let _0x2e83dd=this[_0x2c5e13(0x2a2)][_0x2c5e13(0x2ee)](m);return(_0x12daad=_0x2e83dd==null?void 0x0:_0x2e83dd['signUrlServerUrl'])==null?_0x2c5e13(0x186):_0x12daad;}[_0x4c0aa4(0x3c3)](){const _0x2aecc0=_0x4c0aa4;var _0xcbfea1;let _0x135122=this[_0x2aecc0(0x2a2)][_0x2aecc0(0x2ee)](m);return(_0xcbfea1=_0x135122==null?void 0x0:_0x135122['downloadEndpointUrl'])==null?location[_0x2aecc0(0x437)]:_0xcbfea1;}[_0x4c0aa4(0x407)](_0xdc53b5,_0x310de3){return _0xdc53b5['replace']('{fileID}',_0x310de3);}[_0x4c0aa4(0x366)](){const _0x1a5272=_0x4c0aa4;--this['_waitCount'],this[_0x1a5272(0x185)]['next'](this[_0x1a5272(0x49f)]);}};J=y([v(0x0,(0x0,t[_0x4c0aa4(0x351)])(l[_0x4c0aa4(0x389)])),v(0x1,t['IConfigService']),v(0x2,(0x0,t['Inject'])(t[_0x4c0aa4(0x31d)]))],J);let Y=class{constructor(_0x209ed5,_0x25619d){const _0x1a213d=_0x4c0aa4;this[_0x1a213d(0x2a2)]=_0x209ed5,this[_0x1a213d(0x1f6)]=_0x25619d;}[_0x4c0aa4(0x380)](){const _0x43fda8=_0x4c0aa4;var _0x564735;let _0x13f313=this['_configService'][_0x43fda8(0x2ee)](m);return(_0x564735=_0x13f313==null?void 0x0:_0x13f313[_0x43fda8(0x1b5)])==null?_0x43fda8(0x391):_0x564735;}async[_0x4c0aa4(0x491)](_0x5a20cd){const _0x1d7ca5=_0x4c0aa4;let _0x18878d=this['_getAPIPrefixPath']()+_0x1d7ca5(0x221);return{'list':[{'title':_0x1d7ca5(0x2d3),'mentions':(await this['_HTTPService'][_0x1d7ca5(0x3a5)](_0x18878d,{'params':{'objectID':_0x5a20cd[_0x1d7ca5(0x211)],'unitID':_0x5a20cd[_0x1d7ca5(0x211)]}}))[_0x1d7ca5(0x1be)][_0x1d7ca5(0x454)][_0x1d7ca5(0x1c8)](_0x11bc71=>({'objectId':_0x11bc71['id'],'name':_0x11bc71[_0x1d7ca5(0x441)][_0x1d7ca5(0x364)],'metadata':{'icon':_0x11bc71[_0x1d7ca5(0x441)][_0x1d7ca5(0x469)]},'label':_0x11bc71[_0x1d7ca5(0x441)]['name'],'objectType':t[_0x1d7ca5(0x3f0)][_0x1d7ca5(0x4a8)]})),'metadata':{},'type':t[_0x1d7ca5(0x3f0)][_0x1d7ca5(0x4a8)]}]};}};Y=y([v(0x0,(0x0,t['Inject'])(t[_0x4c0aa4(0x4a5)])),v(0x1,(0x0,t[_0x4c0aa4(0x351)])(l[_0x4c0aa4(0x389)]))],Y);let X=class extends t['RxDisposable']{constructor(_0x421dbf,_0x457d85,_0x5233d4,_0x1e6d9f,_0x75b78d){const _0x14a1dc=_0x4c0aa4;super(),this['_injector']=_0x421dbf,this['_univerInstanceService']=_0x457d85,this[_0x14a1dc(0x3ee)]=_0x5233d4,this[_0x14a1dc(0x3d0)]=_0x1e6d9f,this[_0x14a1dc(0x34a)]=_0x75b78d,this[_0x14a1dc(0x442)](),this[_0x14a1dc(0x36e)]();}['_initCloseConn'](){const _0x139636=_0x4c0aa4;let _0x56196a=async _0x36ee95=>{const _0x33a7b7=_0x290d;(await this[_0x33a7b7(0x3d0)]['requireSession'](_0x36ee95))[_0x33a7b7(0x32b)][_0x33a7b7(0x331)]((0x0,s[_0x33a7b7(0x19a)])(_0x3c9050=>_0x3c9050[_0x33a7b7(0x23b)]===e[_0x33a7b7(0x439)][_0x33a7b7(0x24d)]),(0x0,s['takeUntil'])(this[_0x33a7b7(0x428)]))[_0x33a7b7(0x3a4)](_0x3efb9b=>{const _0x455557=_0x33a7b7;let {reason:_0xc3bd07}=_0x3efb9b[_0x455557(0x233)];this[_0x455557(0x34a)][_0x455557(0x40a)]({'id':_0x455557(0x4a1),'data':_0xc3bd07}),this[_0x455557(0x3ee)]['updatePermissionPoint'](new r[(_0x455557(0x2fa))](_0x36ee95)['id'],!0x1),this[_0x455557(0x3d0)]['closeSession'](_0x36ee95);});};(0x0,i[_0x139636(0x21f)])(this['_univerInstanceService']['getTypeOfUnitAdded$'](t[_0x139636(0x425)][_0x139636(0x286)]),this[_0x139636(0x294)][_0x139636(0x1bb)](t[_0x139636(0x425)][_0x139636(0x1d6)]),this['_univerInstanceService'][_0x139636(0x1bb)](t['UniverInstanceType'][_0x139636(0x244)]),this['_univerInstanceService'][_0x139636(0x1bb)](t['UniverInstanceType'][_0x139636(0x2d5)]))[_0x139636(0x331)]((0x0,s[_0x139636(0x1c8)])(_0x556ef3=>_0x556ef3[_0x139636(0x297)][_0x139636(0x1ef)]()),(0x0,s[_0x139636(0x19a)])(_0x512621=>!(0x0,t[_0x139636(0x19f)])(_0x512621)),(0x0,s['takeUntil'])(this[_0x139636(0x428)]))[_0x139636(0x3a4)](_0x379000=>{_0x56196a(_0x379000);});}['_initUnitPermissionChange'](){const _0x24b4b9=_0x4c0aa4;let _0x3eb899=async _0x4ea2a8=>{const _0x1c96fe=_0x290d;let _0x3264e0=await this['_collaborationSessionService']['requireSession'](_0x4ea2a8),_0x24bfdc=this[_0x1c96fe(0x1fd)][_0x1c96fe(0x3a5)](r[_0x1c96fe(0x46f)]);_0x3264e0[_0x1c96fe(0x32b)][_0x1c96fe(0x331)]((0x0,s[_0x1c96fe(0x19a)])(_0x876921=>_0x876921[_0x1c96fe(0x23b)]===e[_0x1c96fe(0x439)]['UPDATE_PERMISSION_OBJ']),(0x0,s[_0x1c96fe(0x429)])(this[_0x1c96fe(0x428)]))[_0x1c96fe(0x3a4)](_0x328958=>{const _0x234dc8=_0x1c96fe;let {objectId:_0x16b2fa}=_0x328958[_0x234dc8(0x233)];_0x16b2fa===_0x4ea2a8?_0x24bfdc['initWorkbookPermissionChange'](_0x4ea2a8):_0x24bfdc[_0x234dc8(0x1b2)](_0x4ea2a8,_0x16b2fa);});};(0x0,i['merge'])(this['_univerInstanceService'][_0x24b4b9(0x1bb)](t[_0x24b4b9(0x425)][_0x24b4b9(0x286)]))[_0x24b4b9(0x331)]((0x0,s[_0x24b4b9(0x1c8)])(_0x5e8abc=>_0x5e8abc[_0x24b4b9(0x297)][_0x24b4b9(0x1ef)]()),(0x0,s['filter'])(_0x10ace0=>!(0x0,t['isInternalEditorID'])(_0x10ace0)),(0x0,s[_0x24b4b9(0x429)])(this[_0x24b4b9(0x428)]))[_0x24b4b9(0x3a4)](_0xd13f68=>{_0x3eb899(_0xd13f68);});}};X=y([v(0x0,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x1,t['IUniverInstanceService']),v(0x2,t[_0x4c0aa4(0x1e5)]),v(0x3,(0x0,t[_0x4c0aa4(0x351)])(V)),v(0x4,(0x0,t['Inject'])(_))],X);let Z=class{constructor(_0x2cddb8,_0x142da1){const _0x3aa352=_0x4c0aa4;this[_0x3aa352(0x2a2)]=_0x2cddb8,this['_httpService']=_0x142da1;}async[_0x4c0aa4(0x1cd)](_0x439c45,_0x3c81c4){const _0x2e01d4=_0x4c0aa4;var _0x8a78bd;let {unitID:_0x2ad417,type:_0x5b1258,revision:_0x390229=0x0}=_0x3c81c4,_0x215f87=this[_0x2e01d4(0x40c)]()+'/'+_0x5b1258+_0x2e01d4(0x316)+_0x2ad417+'/rev/'+_0x390229,_0x475fa4=(await this[_0x2e01d4(0x3f9)][_0x2e01d4(0x3a5)](_0x215f87))[_0x2e01d4(0x1be)],_0x5ede0=(_0x8a78bd=_0x475fa4[_0x2e01d4(0x3aa)])==null?void 0x0:_0x8a78bd[_0x2e01d4(0x18e)];if(_0x5ede0){let _0x438689=_0x5ede0==null?void 0x0:_0x5ede0[_0x2e01d4(0x3d6)];_0x5ede0[_0x2e01d4(0x3d6)]=e[_0x2e01d4(0x418)][_0x2e01d4(0x27a)]((0x0,e['b64DecodeUnicode'])(_0x438689)),Object['entries'](_0x5ede0[_0x2e01d4(0x2b5)])['forEach'](([,_0xa3e482])=>{const _0x1114f7=_0x2e01d4;let _0x3dd769=_0xa3e482[_0x1114f7(0x3d6)];_0xa3e482['originalMeta']=e[_0x1114f7(0x418)][_0x1114f7(0x27a)]((0x0,e[_0x1114f7(0x466)])(_0x3dd769));});}return _0x475fa4;}async[_0x4c0aa4(0x2e1)](_0x340ad2,_0x95ae7a){const _0x4964bb=_0x4c0aa4;let {unitID:_0x54b7b3,type:_0x16afaa,blockID:_0x37ceb7}=_0x95ae7a,_0x289f23=this[_0x4964bb(0x479)]()+'/'+_0x16afaa+_0x4964bb(0x316)+_0x54b7b3+_0x4964bb(0x30b)+_0x37ceb7;return(await this['_httpService'][_0x4964bb(0x3a5)](_0x289f23))[_0x4964bb(0x1be)];}async[_0x4c0aa4(0x229)](_0x58b8d2,_0x2b32ca){const _0x1f074f=_0x4c0aa4;let {unitID:_0x53a72c,type:_0x599849,blockID:_0x404acd}=_0x2b32ca,_0x1daf3f=this[_0x1f074f(0x479)]()+_0x1f074f(0x30b)+_0x599849+_0x1f074f(0x316)+_0x53a72c+_0x1f074f(0x30b)+_0x404acd;return(await this['_httpService'][_0x1f074f(0x3a5)](_0x1daf3f))[_0x1f074f(0x1be)];}async['fetchMissingChangesets'](_0x582fd1,_0x2c3dbc){const _0x36f449=_0x4c0aa4;let {unitID:_0x50de90,type:_0x42f87c,from:_0x3776b2,to:_0x58b9db}=_0x2c3dbc,_0x31d4db=this[_0x36f449(0x479)]()+'/'+_0x42f87c+_0x36f449(0x316)+_0x50de90+'/fetchmissing?from='+_0x3776b2+_0x36f449(0x2a9)+_0x58b9db;return(await this[_0x36f449(0x3f9)]['get'](_0x31d4db))[_0x36f449(0x1be)];}[_0x4c0aa4(0x40c)](){const _0x3fd750=_0x4c0aa4;var _0x52f6f0;return(_0x52f6f0=this[_0x3fd750(0x2a2)][_0x3fd750(0x2ee)](_0x3fd750(0x452)))==null?this['_getAPIPrefix']():_0x52f6f0;}['_getAPIPrefix'](){const _0x20f07e=_0x4c0aa4;var _0x563b83;let _0x90efa4=this[_0x20f07e(0x2a2)]['getConfig'](m);return(_0x563b83=_0x90efa4==null?void 0x0:_0x90efa4[_0x20f07e(0x3e1)])==null?_0x20f07e(0x41e):_0x563b83;}async[_0x4c0aa4(0x1aa)](_0xf8d418,_0x82573e){const _0x36603e=_0x4c0aa4;let _0x128904=_0x36603e(0x276)+_0x82573e[_0x36603e(0x27c)]+_0x36603e(0x316)+_0x82573e[_0x36603e(0x426)]+_0x36603e(0x36f);return(await this[_0x36603e(0x3f9)]['get'](_0x128904,{'params':{'resourceId':JSON[_0x36603e(0x4a7)](_0x82573e[_0x36603e(0x29d)])}}))[_0x36603e(0x1be)];}['saveSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4c0aa4(0x381)](){const _0x51011=_0x4c0aa4;throw Error(_0x51011(0x210));}[_0x4c0aa4(0x28f)](){const _0x2a6949=_0x4c0aa4;throw Error(_0x2a6949(0x210));}[_0x4c0aa4(0x48b)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4c0aa4(0x2d6)](){const _0x225ca5=_0x4c0aa4;throw Error(_0x225ca5(0x210));}[_0x4c0aa4(0x275)](){const _0x4f30c4=_0x4c0aa4;throw Error(_0x4f30c4(0x210));}};Z=y([v(0x0,t['IConfigService']),v(0x1,(0x0,t[_0x4c0aa4(0x351)])(l[_0x4c0aa4(0x389)]))],Z);let Q=class extends t[_0x4c0aa4(0x305)]{constructor(_0xb15760,_0x297c5d,_0x2ffe9a,_0x18c495,_0x229890){const _0x118943=_0x4c0aa4;super(_0xb15760,_0x297c5d,_0x2ffe9a),this[_0x118943(0x2f4)]=_0x18c495,this[_0x118943(0x387)]=_0x229890;}[_0x4c0aa4(0x283)](_0x2649eb,_0x16025a){const _0x1cf826=_0x4c0aa4;let _0x17dff1=this[_0x1cf826(0x404)](_0x2649eb);if(_0x17dff1)try{let _0x3b632e=this[_0x1cf826(0x272)](_0x17dff1,_0x16025a);this[_0x1cf826(0x401)](_0x2649eb,_0x3b632e);}catch(_0x496f13){this[_0x1cf826(0x387)][_0x1cf826(0x338)]('[CollaborationUndoRedoService]',_0x496f13),this[_0x1cf826(0x1e6)](_0x2649eb);}let _0x3c6a2b=this[_0x1cf826(0x3ed)](_0x2649eb);if(_0x3c6a2b)try{let _0x323968=this[_0x1cf826(0x272)](_0x3c6a2b,_0x16025a);this[_0x1cf826(0x463)](_0x2649eb,_0x323968);}catch(_0x2ffe7f){this[_0x1cf826(0x387)][_0x1cf826(0x338)](_0x2ffe7f),this[_0x1cf826(0x38a)](_0x2649eb);}}[_0x4c0aa4(0x1e6)](_0x588888){const _0x5c7d8b=_0x4c0aa4;let _0x30a749=this[_0x5c7d8b(0x404)](_0x588888);_0x30a749&&(_0x30a749[_0x5c7d8b(0x1c9)]=0x0,this[_0x5c7d8b(0x436)]());}[_0x4c0aa4(0x38a)](_0x4a9f45){const _0x46ab75=_0x4c0aa4;let _0xa139e=this[_0x46ab75(0x3ed)](_0x4a9f45);_0xa139e&&(_0xa139e['length']=0x0,this['_updateStatus']());}[_0x4c0aa4(0x401)](_0x3309ae,_0xc45e89){const _0x2f0567=_0x4c0aa4;this[_0x2f0567(0x248)][_0x2f0567(0x3d4)](_0x3309ae,_0xc45e89),this['_updateStatus']();}[_0x4c0aa4(0x463)](_0x2c3201,_0x1bb47c){const _0x33e7d2=_0x4c0aa4;this[_0x33e7d2(0x202)][_0x33e7d2(0x3d4)](_0x2c3201,_0x1bb47c),this[_0x33e7d2(0x436)]();}[_0x4c0aa4(0x272)](_0x117ed6,_0x499d23){const _0xb4817=_0x4c0aa4;let _0x9775e2=[],_0x9b1ec9=_0x499d23,_0x417598=_0x499d23;for(let _0x17aa5b=_0x117ed6[_0xb4817(0x1c9)]-0x1;_0x17aa5b>=0x0;_0x17aa5b--){let {unitID:_0x3f0ef0,undoMutations:_0x30e00b,redoMutations:_0x2df912}=_0x117ed6[_0x17aa5b],_0x4d4d10=this[_0xb4817(0x2f4)][_0xb4817(0x2e4)](_0x9b1ec9,_0x30e00b),_0x434ddf=this[_0xb4817(0x2f4)][_0xb4817(0x2e4)](_0x417598,_0x2df912);if((0x0,e[_0xb4817(0x38e)])(_0x4d4d10)||(0x0,e[_0xb4817(0x38e)])(_0x434ddf)){this[_0xb4817(0x387)][_0xb4817(0x338)](_0xb4817(0x3a6),_0xb4817(0x214),_0x4d4d10,_0x434ddf);break;}_0x9b1ec9=_0x4d4d10[_0xb4817(0x3e8)],_0x417598=_0x434ddf[_0xb4817(0x3e8)],_0x9775e2[_0xb4817(0x1e4)]({'unitID':_0x3f0ef0,'undoMutations':_0x4d4d10[_0xb4817(0x465)],'redoMutations':_0x434ddf[_0xb4817(0x465)]});}return _0x9775e2[_0xb4817(0x49a)]();}};Q=y([v(0x0,t[_0x4c0aa4(0x31d)]),v(0x1,t['ICommandService']),v(0x2,t[_0x4c0aa4(0x22c)]),v(0x3,e['ITransformService']),v(0x4,t[_0x4c0aa4(0x2f9)])],Q);let $=class extends t[_0x4c0aa4(0x4a2)]{constructor(_0x4a7ae5=ee,_0x5da5e9,_0x32ec9c,_0x4a399b){const _0x5af21d=_0x4c0aa4;super(),this[_0x5af21d(0x216)]=_0x4a7ae5,this[_0x5af21d(0x387)]=_0x5da5e9,this[_0x5af21d(0x1fd)]=_0x32ec9c,this[_0x5af21d(0x2a2)]=_0x4a399b;let {..._0x5f3cfd}=(0x0,t[_0x5af21d(0x21f)])({},ee,this[_0x5af21d(0x216)]);if(!_0x5f3cfd[_0x5af21d(0x37b)])throw Error(_0x5af21d(0x332));this['_config']=_0x5f3cfd,this[_0x5af21d(0x2a2)]['setConfig'](m,_0x5f3cfd);}[_0x4c0aa4(0x484)](){const _0x446e05=_0x4c0aa4;this[_0x446e05(0x223)](),this['_initDependencies']();}[_0x4c0aa4(0x223)](){const _0x4b60be=_0x4c0aa4;var _0x2f4bcb,_0x3f9b31;this['_injector'][_0x4b60be(0x447)](t['IUndoRedoService'])&&this[_0x4b60be(0x387)][_0x4b60be(0x338)](_0x4b60be(0x42a),_0x4b60be(0x1ec));let _0x533b8f=(0x0,t[_0x4b60be(0x38d)])([[t[_0x4b60be(0x267)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[C],[W],[K],[se],[X],[_],[q],[qe,{'useClass':this['_config'][_0x4b60be(0x37b)]}],[e[_0x4b60be(0x31f)],{'useClass':Z}],[t[_0x4b60be(0x300)],{'useClass':G}],[t[_0x4b60be(0x330)],{'useClass':J}],[rt,{'useClass':U}],[t[_0x4b60be(0x328)],{'useClass':Y}],[H],[tt]],(_0x2f4bcb=this[_0x4b60be(0x216)])==null?void 0x0:_0x2f4bcb[_0x4b60be(0x49b)]);if(!((_0x3f9b31=this[_0x4b60be(0x216)])!=null&&_0x3f9b31[_0x4b60be(0x1fb)])){let _0x3f0ffc=_0x533b8f['findIndex'](([_0x3c916d])=>_0x3c916d===w);_0x3f0ffc!==-0x1&&_0x533b8f[_0x4b60be(0x3e7)](_0x3f0ffc,0x1);}(0x0,t[_0x4b60be(0x194)])(this[_0x4b60be(0x1fd)],_0x533b8f);}[_0x4c0aa4(0x474)](){const _0x487d10=_0x4c0aa4;var _0xe0b7f7,_0x2040b2;if(this[_0x487d10(0x1fd)][_0x487d10(0x3a5)](l[_0x487d10(0x389)])[_0x487d10(0x222)]({'priority':0x14,'interceptor':(0x0,l[_0x487d10(0x303)])({'maxParallel':0x6})}),!((_0xe0b7f7=this['_config'])!=null&&_0xe0b7f7[_0x487d10(0x3c0)])){var _0x1e34a8;(_0x1e34a8=this[_0x487d10(0x1fd)][_0x487d10(0x3a5)](S,t[_0x487d10(0x2b3)]['OPTIONAL']))==null||_0x1e34a8[_0x487d10(0x40b)]();}(_0x2040b2=this['_config'])!=null&&_0x2040b2[_0x487d10(0x340)]&&(0x0,t[_0x487d10(0x2a7)])(this[_0x487d10(0x1fd)],[[W]]),(0x0,t[_0x487d10(0x2a7)])(this[_0x487d10(0x1fd)],[[K],[H],[X]]);}};g($,'pluginName',_0x4c0aa4(0x213)),g($,'packageName',$e),g($,_0x4c0aa4(0x32c),et),$=y([(0x0,t['DependentOn'])(u['UniverLicensePlugin'],e[_0x4c0aa4(0x427)],l[_0x4c0aa4(0x227)]),v(0x1,t[_0x4c0aa4(0x2f9)]),v(0x2,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x3,t[_0x4c0aa4(0x4a5)])],$),exports[_0x4c0aa4(0x355)]=nt,Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x3cb),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x29e),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x4c0aa4(0x3cd)](exports,'AwaitingWithPendingState',{'enumerable':!0x0,'get':function(){return j;}}),Object['defineProperty'](exports,_0x4c0aa4(0x379),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x46c),{'enumerable':!0x0,'get':function(){return B;}}),exports[_0x4c0aa4(0x2e5)]=m,Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x1fe),{'enumerable':!0x0,'get':function(){return U;}}),Object['defineProperty'](exports,'CollaborationController',{'enumerable':!0x0,'get':function(){return H;}}),Object['defineProperty'](exports,_0x4c0aa4(0x2fb),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x1fa),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x493),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x480),{'enumerable':!0x0,'get':function(){return V;}}),Object['defineProperty'](exports,'CollaborationSocketService',{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x4c0aa4(0x3ba)]=Be,exports['CollaborationUIEventId']=oe,exports[_0x4c0aa4(0x36c)]=_,Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x257),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x4c0aa4(0x339)]=se,Object['defineProperty'](exports,_0x4c0aa4(0x189),{'enumerable':!0x0,'get':function(){return M;}}),exports[_0x4c0aa4(0x2a1)]=te,exports[_0x4c0aa4(0x326)]=_0x4c0aa4(0x39b),exports[_0x4c0aa4(0x1f0)]=_0x4c0aa4(0x43c),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x1d1),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x1a1),{'enumerable':!0x0,'get':function(){return I;}}),Object['defineProperty'](exports,_0x4c0aa4(0x2d0),{'enumerable':!0x0,'get':function(){return P;}}),exports[_0x4c0aa4(0x2c7)]=_0x4c0aa4(0x3f6),exports[_0x4c0aa4(0x1a2)]=_0x4c0aa4(0x22b),exports[_0x4c0aa4(0x1b7)]=rt,exports[_0x4c0aa4(0x3b9)]=Xe,exports[_0x4c0aa4(0x33f)]=qe,exports['ILocalCacheService']=S,exports[_0x4c0aa4(0x3dc)]=We,exports['ISingleActiveUnitService']=w,exports['LOCAL_CACHE_INTERVAL']=0x3e8,exports[_0x4c0aa4(0x3fb)]=_0x4c0aa4(0x1c5),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x2cc),{'enumerable':!0x0,'get':function(){return b;}}),Object['defineProperty'](exports,_0x4c0aa4(0x1e1),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x3df),{'enumerable':!0x0,'get':function(){return N;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x43a),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x4c0aa4(0x3e9)]=_0x4c0aa4(0x2c1),exports[_0x4c0aa4(0x21c)]=_0x4c0aa4(0x3c9),exports[_0x4c0aa4(0x3c7)]=ve,Object['defineProperty'](exports,_0x4c0aa4(0x280),{'enumerable':!0x0,'get':function(){return R;}}),Object['defineProperty'](exports,_0x4c0aa4(0x2e6),{'enumerable':!0x0,'get':function(){return C;}}),Object['defineProperty'](exports,_0x4c0aa4(0x262),{'enumerable':!0x0,'get':function(){return z;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x32e),{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,_0x4c0aa4(0x319),{'enumerable':!0x0,'get':function(){return O;}}),exports['UnitStatus']=Se,Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x18f),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x4c0aa4(0x408)]=Ze,exports[_0x4c0aa4(0x459)]=Ge,exports[_0x4c0aa4(0x360)]=be,exports[_0x4c0aa4(0x31b)]=Ke;
|
|
1
|
+
const _0x528acf=_0x3420;(function(_0x4a67ee,_0x3c70ab){const _0x16651c=_0x3420,_0x2d2836=_0x4a67ee();while(!![]){try{const _0x5ee8ee=-parseInt(_0x16651c(0x153))/0x1+-parseInt(_0x16651c(0x1e3))/0x2+-parseInt(_0x16651c(0x296))/0x3+-parseInt(_0x16651c(0x399))/0x4*(parseInt(_0x16651c(0x12d))/0x5)+parseInt(_0x16651c(0x3f2))/0x6+-parseInt(_0x16651c(0x2b4))/0x7*(-parseInt(_0x16651c(0x375))/0x8)+parseInt(_0x16651c(0x151))/0x9;if(_0x5ee8ee===_0x3c70ab)break;else _0x2d2836['push'](_0x2d2836['shift']());}catch(_0x4855ab){_0x2d2836['push'](_0x2d2836['shift']());}}}(_0x2879,0x9a53d),Object['defineProperty'](exports,Symbol[_0x528acf(0x21e)],{'value':_0x528acf(0x3ca)}));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=_0x528acf(0x18f),ee={};function te(_0x4edb2e){const _0x3c3372=_0x528acf;return JSON[_0x3c3372(0x29e)](_0x4edb2e)[_0x3c3372(0x347)];}function h(_0x102d76){'@babel/helpers - typeof';const _0x15db64=_0x528acf;return h=typeof Symbol==_0x15db64(0x157)&&typeof Symbol[_0x15db64(0x41c)]=='symbol'?function(_0x4ec713){return typeof _0x4ec713;}:function(_0x2c079c){const _0x1d65f1=_0x15db64;return _0x2c079c&&typeof Symbol==_0x1d65f1(0x157)&&_0x2c079c[_0x1d65f1(0x333)]===Symbol&&_0x2c079c!==Symbol['prototype']?_0x1d65f1(0x2ee):typeof _0x2c079c;},h(_0x102d76);}function ne(_0x31f805,_0x4fc4cb){const _0x5c1bbe=_0x528acf;if(h(_0x31f805)!=_0x5c1bbe(0x170)||!_0x31f805)return _0x31f805;var _0x1f58df=_0x31f805[Symbol['toPrimitive']];if(_0x1f58df!==void 0x0){var _0x46416e=_0x1f58df[_0x5c1bbe(0x1ca)](_0x31f805,_0x4fc4cb||_0x5c1bbe(0x3a3));if(h(_0x46416e)!=_0x5c1bbe(0x170))return _0x46416e;throw TypeError(_0x5c1bbe(0x19b));}return(_0x4fc4cb===_0x5c1bbe(0x259)?String:Number)(_0x31f805);}function re(_0x5a3871){const _0x2061b9=_0x528acf;var _0x5074cf=ne(_0x5a3871,_0x2061b9(0x259));return h(_0x5074cf)==_0x2061b9(0x2ee)?_0x5074cf:_0x5074cf+'';}function g(_0x2011ba,_0xada599,_0x5c925b){return(_0xada599=re(_0xada599))in _0x2011ba?Object['defineProperty'](_0x2011ba,_0xada599,{'value':_0x5c925b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2011ba[_0xada599]=_0x5c925b,_0x2011ba;}let ie=function(_0x214582){const _0x397054=_0x528acf;return _0x214582[_0x397054(0x17a)]=_0x397054(0x17a),_0x214582[_0x397054(0x147)]=_0x397054(0x147),_0x214582['CONFLICT']=_0x397054(0x39c),_0x214582[_0x397054(0x280)]='CLOSE_ROOM',_0x214582['JOIN_ROOM_FAILED']=_0x397054(0x1ab),_0x214582[_0x397054(0x25b)]=_0x397054(0x25b),_0x214582[_0x397054(0x132)]=_0x397054(0x132),_0x214582[_0x397054(0x194)]='SUBMIT_CHANGESET_TIMEOUT',_0x214582;}({});var _=class{constructor(){const _0x52a90f=_0x528acf;g(this,_0x52a90f(0x29a),new i[(_0x52a90f(0x1bf))]()),g(this,_0x52a90f(0x115),this['_event$'][_0x52a90f(0x1db)]());}[_0x528acf(0x237)](_0x3dd837){const _0x27b6d8=_0x528acf;this[_0x27b6d8(0x29a)]['next'](_0x3dd837);}},ae=class{constructor(){const _0x4aad5f=_0x528acf;g(this,_0x4aad5f(0x1aa),new i[(_0x4aad5f(0x1bf))]()),g(this,_0x4aad5f(0x39f),this['_commentUpdate$'][_0x4aad5f(0x1db)]());}['onCommentUpdate'](_0x1bdde1){const _0x2c3880=_0x528acf;this[_0x2c3880(0x1aa)][_0x2c3880(0x307)](_0x1bdde1);}};function v(_0x3b2c23,_0x46997e){return function(_0x1f5f83,_0x2bcc85){_0x46997e(_0x1f5f83,_0x2bcc85,_0x3b2c23);};}function y(_0x56ca19,_0x433376,_0x156417,_0x9c7234){const _0x168582=_0x528acf;var _0x25ac78=arguments['length'],_0x4b8cd2=_0x25ac78<0x3?_0x433376:_0x9c7234===null?_0x9c7234=Object['getOwnPropertyDescriptor'](_0x433376,_0x156417):_0x9c7234,_0x138406;if(typeof Reflect==_0x168582(0x170)&&typeof Reflect[_0x168582(0x3a4)]==_0x168582(0x157))_0x4b8cd2=Reflect[_0x168582(0x3a4)](_0x56ca19,_0x433376,_0x156417,_0x9c7234);else{for(var _0x44cb97=_0x56ca19[_0x168582(0x347)]-0x1;_0x44cb97>=0x0;_0x44cb97--)(_0x138406=_0x56ca19[_0x44cb97])&&(_0x4b8cd2=(_0x25ac78<0x3?_0x138406(_0x4b8cd2):_0x25ac78>0x3?_0x138406(_0x433376,_0x156417,_0x4b8cd2):_0x138406(_0x433376,_0x156417))||_0x4b8cd2);}return _0x25ac78>0x3&&_0x4b8cd2&&Object[_0x168582(0x2b7)](_0x433376,_0x156417,_0x4b8cd2),_0x4b8cd2;}let b=class extends t[_0x528acf(0x23e)]{constructor(_0x5e18d2){const _0x2b0ea7=_0x528acf;super(),this['_univerInstanceService']=_0x5e18d2,g(this,_0x2b0ea7(0x28c),new Map()),g(this,_0x2b0ea7(0x149),new i[(_0x2b0ea7(0x1bf))]()),this[_0x2b0ea7(0x3a2)]((0x0,i[_0x2b0ea7(0x1c3)])(this[_0x2b0ea7(0x416)][_0x2b0ea7(0x20f)](t[_0x2b0ea7(0x274)][_0x2b0ea7(0x2df)])['pipe']((0x0,s['map'])(_0xf291c1=>_0xf291c1['getUnitId']())),this[_0x2b0ea7(0x416)][_0x2b0ea7(0x20f)](t[_0x2b0ea7(0x274)][_0x2b0ea7(0x214)])[_0x2b0ea7(0x3cf)]((0x0,s['map'])(_0x181d5d=>_0x181d5d[_0x2b0ea7(0x1bb)]())),this[_0x2b0ea7(0x416)][_0x2b0ea7(0x20f)](t['UniverInstanceType'][_0x2b0ea7(0x1eb)])[_0x2b0ea7(0x3cf)]((0x0,s[_0x2b0ea7(0x1f4)])(_0x35559b=>_0x35559b[_0x2b0ea7(0x1bb)]())),this[_0x2b0ea7(0x416)][_0x2b0ea7(0x20f)](t['UniverInstanceType'][_0x2b0ea7(0x15a)])[_0x2b0ea7(0x3cf)]((0x0,s['map'])(_0x498c23=>_0x498c23['getUnitId']())))['subscribe'](_0x10d21d=>this[_0x2b0ea7(0x365)](_0x10d21d)));}['waitForRoom$'](_0x29136e){const _0x59d31f=_0x528acf;return this[_0x59d31f(0x28c)][_0x59d31f(0x2b6)](_0x29136e)?(0x0,i['of'])(this[_0x59d31f(0x28c)][_0x59d31f(0x1b0)](_0x29136e)):this[_0x59d31f(0x149)][_0x59d31f(0x3cf)]((0x0,s['map'])(_0x2830ed=>{if(_0x2830ed===_0x29136e)return this['_roomMembers']['get'](_0x2830ed);}));}[_0x528acf(0x205)](_0x14af28,_0x5706ba){const _0x1924ad=_0x528acf;let _0x3a38a2=this[_0x1924ad(0x28c)]['get'](_0x14af28);_0x3a38a2||(_0x3a38a2=new oe(),this[_0x1924ad(0x28c)]['set'](_0x14af28,_0x3a38a2),this[_0x1924ad(0x149)][_0x1924ad(0x307)](_0x14af28)),_0x3a38a2['updateMember'](_0x5706ba);}[_0x528acf(0x317)](_0x3f4bed,_0x29fca4){const _0xa19f58=_0x528acf;let _0x347377=this[_0xa19f58(0x28c)][_0xa19f58(0x1b0)](_0x3f4bed);_0x347377&&_0x347377[_0xa19f58(0x317)](_0x29fca4);}[_0x528acf(0x34d)](_0x29d166){const _0x3625be=_0x528acf;return this[_0x3625be(0x28c)][_0x3625be(0x1b0)](_0x29d166);}[_0x528acf(0x39b)](_0x2d3e14,_0x367eca){const _0x38e17a=_0x528acf;let _0x1e6fb6=this[_0x38e17a(0x28c)][_0x38e17a(0x1b0)](_0x2d3e14);if(_0x1e6fb6)return _0x1e6fb6[_0x38e17a(0x39b)](_0x367eca);}[_0x528acf(0x365)](_0x51be2c){const _0x8762d0=_0x528acf;let _0x5e2b1a=this[_0x8762d0(0x28c)][_0x8762d0(0x1b0)](_0x51be2c);_0x5e2b1a&&(_0x5e2b1a[_0x8762d0(0x1fb)](),this[_0x8762d0(0x28c)][_0x8762d0(0x166)](_0x51be2c));}['dispose'](){const _0x2f8d72=_0x528acf;this[_0x2f8d72(0x28c)]['forEach'](_0xb5b03b=>_0xb5b03b[_0x2f8d72(0x1fb)]()),this['_roomMembers'][_0x2f8d72(0x3fc)](),this[_0x2f8d72(0x149)]['complete']();}};b=y([v(0x0,t[_0x528acf(0x3a7)])],b);var oe=class extends t[_0x528acf(0x23e)]{constructor(..._0x40820e){const _0xf1a9a=_0x528acf;super(..._0x40820e),g(this,_0xf1a9a(0x1dd),new Map()),g(this,_0xf1a9a(0x2c3),new i['BehaviorSubject'](this[_0xf1a9a(0x1dd)])),g(this,_0xf1a9a(0x40c),this[_0xf1a9a(0x2c3)][_0xf1a9a(0x1db)]());}[_0x528acf(0x1fb)](){const _0x15bac2=_0x528acf;this[_0x15bac2(0x1dd)][_0x15bac2(0x3fc)](),this['_members$'][_0x15bac2(0x13b)]();}['updateMember'](_0x6431cb){const _0x1587c4=_0x528acf;this[_0x1587c4(0x1dd)][_0x1587c4(0x18b)](_0x6431cb[_0x1587c4(0x2c4)],_0x6431cb),this[_0x1587c4(0x39d)]();}[_0x528acf(0x317)](_0x597a62){const _0x5cb798=_0x528acf;this['_members'][_0x5cb798(0x166)](_0x597a62),this['_emitMembers']();}[_0x528acf(0x39b)](_0x53d28b){const _0x243d41=_0x528acf;return this[_0x243d41(0x1dd)][_0x243d41(0x1b0)](_0x53d28b);}['getAllMembers'](){const _0x5501d2=_0x528acf;return Array[_0x5501d2(0x164)](this[_0x5501d2(0x1dd)][_0x5501d2(0x364)]());}[_0x528acf(0x39d)](){const _0x2436b7=_0x528acf;this[_0x2436b7(0x2c3)]['next'](this[_0x2436b7(0x1dd)]);}};function se(_0xc585c1,_0xb3225){const _0x1905c5=_0x528acf;if(le(_0xc585c1))return _0xb3225;if(_0xb3225[_0x1905c5(0x1f0)]===e[_0x1905c5(0x330)][_0x1905c5(0x1a7)]){let _0x59a6f2=me(_0xc585c1),_0x1b0c70=_0xb3225;return{..._0x1b0c70,'data':{..._0x1b0c70[_0x1905c5(0x325)],'unitID':_0xc585c1[_0x1905c5(0x245)]['unitId'],'unitType':_0xc585c1[_0x1905c5(0x245)][_0x1905c5(0x37d)]??_0x1b0c70[_0x1905c5(0x325)]['unitType'],'changeset':_0x59a6f2[_0x1905c5(0x190)](_0x1b0c70[_0x1905c5(0x325)]['changeset'],he(_0xc585c1))}};}if(_0xb3225[_0x1905c5(0x1f0)]===e[_0x1905c5(0x330)][_0x1905c5(0x29c)]){let _0x4a0365=_0xb3225;return{..._0x4a0365,'data':{..._0x4a0365[_0x1905c5(0x325)],'unitID':_0xc585c1[_0x1905c5(0x245)][_0x1905c5(0x236)],'unitType':_0xc585c1[_0x1905c5(0x245)][_0x1905c5(0x37d)]??_0x4a0365[_0x1905c5(0x325)][_0x1905c5(0x37d)]}};}return _0xb3225;}function ce(_0x111626,_0x5ba87d){const _0x36fa9e=_0x528acf;if(le(_0x111626))return[_0x5ba87d];switch(_0x5ba87d[_0x36fa9e(0x1f0)]){case e[_0x36fa9e(0x330)][_0x36fa9e(0x173)]:return[ue(_0x111626,_0x5ba87d)];case e['CollaborationEvent'][_0x36fa9e(0x40f)]:return[fe(_0x111626,_0x5ba87d)];case e[_0x36fa9e(0x330)][_0x36fa9e(0x2bf)]:return[de(_0x111626,_0x5ba87d)];default:return[_0x5ba87d];}}function le(_0x4da99b){const _0xf01e22=_0x528acf;return _0x4da99b[_0xf01e22(0x245)][_0xf01e22(0x243)]==null&&_0x4da99b[_0xf01e22(0x245)][_0xf01e22(0x236)]===_0x4da99b[_0xf01e22(0x313)]&&!_0x4da99b['changeset'];}function ue(_0x60d27b,_0x3e11b4){const _0x58f8d2=_0x528acf;return{..._0x3e11b4,'data':(0x0,e[_0x58f8d2(0x293)])(pe(_0x60d27b,(0x0,e['parseProtocolChangeset'])(_0x3e11b4[_0x58f8d2(0x325)])))};}function de(_0x225c3b,_0x4cdf4d){const _0x24eda2=_0x528acf;return{..._0x4cdf4d,'data':pe(_0x225c3b,_0x4cdf4d[_0x24eda2(0x325)])};}function fe(_0xd11733,_0xdeffaf){const _0x1666b6=_0x528acf;let _0xde6810=_0xdeffaf['data'];return{..._0xdeffaf,'data':{..._0xde6810,'changesets':_0xde6810[_0x1666b6(0x18d)]['map'](_0x3e5a4e=>(0x0,e[_0x1666b6(0x293)])(pe(_0xd11733,(0x0,e['parseProtocolChangeset'])(_0x3e5a4e))))}};}function pe(_0x47b186,_0x3d953c){const _0x1654ac=_0x528acf;return me(_0x47b186)[_0x1654ac(0x32d)](_0x3d953c,he(_0x47b186));}function me(_0x462759){const _0x1961f0=_0x528acf;if(!_0x462759[_0x1961f0(0x2f0)])throw Error(_0x1961f0(0x3af));return _0x462759['changeset'];}function he(_0x3be285){const _0x46fcf5=_0x528acf;return{'localUnitId':_0x3be285['localUnitId'],'unitType':_0x3be285[_0x46fcf5(0x37d)],'target':_0x3be285[_0x46fcf5(0x245)]};}let ge=function(_0x229ec6){const _0x131e7d=_0x528acf;return _0x229ec6[_0x229ec6[_0x131e7d(0x3ef)]=0x0]=_0x131e7d(0x3ef),_0x229ec6[_0x229ec6['JOINING']=0x1]=_0x131e7d(0x344),_0x229ec6[_0x229ec6[_0x131e7d(0x1fe)]=0x2]='OFFLINE',_0x229ec6[_0x229ec6['ONLINE']=0x3]=_0x131e7d(0x143),_0x229ec6;}({});const _e={[a[_0x528acf(0x1a6)]['FAIL']]:_0x528acf(0x336),[a[_0x528acf(0x1a6)]['JOIN_ROOM_FULL']]:_0x528acf(0x253),[a[_0x528acf(0x1a6)][_0x528acf(0x304)]]:'session.room-not-exists',[a[_0x528acf(0x1a6)][_0x528acf(0x2ec)]]:_0x528acf(0x1ad),[a[_0x528acf(0x1a6)][_0x528acf(0x198)]]:'session.room-cnt-exceeds'};let ve=class extends t[_0x528acf(0x1b1)]{get[_0x528acf(0xfd)](){const _0x118535=_0x528acf;return this[_0x118535(0x2b1)][_0x118535(0x193)]();}constructor(_0x2a8fbc,_0x2a8aba,_0x5dc8a7,_0x503c28,_0x1f1b42,_0x4a026d,_0x59e5fb,_0x54b609){const _0x550209=_0x528acf;super(),this[_0x550209(0x1b9)]=_0x2a8fbc,this[_0x550209(0x320)]=_0x5dc8a7,this['_configService']=_0x503c28,this[_0x550209(0x39a)]=_0x1f1b42,this[_0x550209(0x3bb)]=_0x4a026d,this[_0x550209(0x102)]=_0x59e5fb,this[_0x550209(0x361)]=_0x54b609,g(this,_0x550209(0x2b1),new i[(_0x550209(0x1ef))](0x0)),g(this,_0x550209(0x341),this[_0x550209(0x2b1)][_0x550209(0x1db)]()),g(this,_0x550209(0x29a),new i[(_0x550209(0x1bf))]()),g(this,'event$',this['_event$'][_0x550209(0x1db)]()),g(this,_0x550209(0x377),void 0x0),g(this,_0x550209(0x285),void 0x0),g(this,_0x550209(0x180),void 0x0),g(this,'_shouldReportTelemetry',!0x1),g(this,_0x550209(0x23a),null),this[_0x550209(0x1a3)]=!!this[_0x550209(0x361)],_0x2a8aba[_0x550209(0x3cf)]((0x0,i[_0x550209(0x25a)])(this[_0x550209(0x2b0)]))[_0x550209(0x367)](_0x455567=>{const _0x4cdf18=_0x550209;if(_0x455567!==void 0x0){if(this[_0x4cdf18(0x377)]=_0x455567,_0x455567)this[_0x4cdf18(0x251)](_0x455567),this[_0x4cdf18(0x285)]=_0x455567['message$']['subscribe'](_0x26aafb=>{const _0x2bec49=_0x4cdf18;_0x26aafb['routeKey']===this[_0x2bec49(0x1b9)]['target'][_0x2bec49(0x236)]&&this['_onCombEvent'](_0x26aafb);});else{var _0x1cb097;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x4cdf18(0x2b1)][_0x4cdf18(0x307)](0x2),(_0x1cb097=this[_0x4cdf18(0x285)])==null||_0x1cb097[_0x4cdf18(0x282)](),this['_socketMessageSubscription']=null;}}});}[_0x528acf(0x376)](){const _0x4f6f75=_0x528acf;var _0x4a1ae3;return((_0x4a1ae3=this['_socket'])==null?void 0x0:_0x4a1ae3[_0x4f6f75(0x2c4)])??null;}[_0x528acf(0x1fb)](){const _0x135909=_0x528acf;super['dispose'](),this['close'](),this[_0x135909(0x2b0)][_0x135909(0x307)](),this[_0x135909(0x2b0)][_0x135909(0x13b)]();}[_0x528acf(0x11c)](){const _0x3a73cd=_0x528acf;var _0x5df8d8;this[_0x3a73cd(0x2a0)](),(_0x5df8d8=this['_socket'])==null||_0x5df8d8[_0x3a73cd(0x2ef)]({'cmd':a[_0x3a73cd(0x110)][_0x3a73cd(0x427)],'data':{'roomID':this[_0x3a73cd(0x1b9)][_0x3a73cd(0x245)]['unitId']}}),this['_event$'][_0x3a73cd(0x13b)](),this['_sessionStatus$'][_0x3a73cd(0x13b)]();}['_onCombEvent'](_0x3bddcc){const _0x4d98aa=_0x528acf;_0x3bddcc[_0x4d98aa(0x138)]===a[_0x4d98aa(0x110)][_0x4d98aa(0x22f)]?this[_0x4d98aa(0x3bd)](_0x3bddcc):_0x3bddcc['cmd']===a[_0x4d98aa(0x110)][_0x4d98aa(0x398)]&&this[_0x4d98aa(0x340)](_0x3bddcc);}[_0x528acf(0x251)](_0x4d1dc6){const _0x5abf8f=_0x528acf;this[_0x5abf8f(0x2b1)][_0x5abf8f(0x307)](0x1),_0x4d1dc6[_0x5abf8f(0x2ef)]({'cmd':a[_0x5abf8f(0x110)][_0x5abf8f(0x22f)],'routeKey':this[_0x5abf8f(0x1b9)][_0x5abf8f(0x245)][_0x5abf8f(0x236)],'routeType':'','data':{'rooms':[{'roomID':this['_identity']['target']['unitId']}]}});}[_0x528acf(0x3bd)](_0x45fa50){const _0x34c680=_0x528acf;var _0x37f401;if(_0x45fa50[_0x34c680(0x381)]in _e){this[_0x34c680(0x102)]['emitEvent']({'id':_0x34c680(0x1ab),'data':_e[_0x45fa50[_0x34c680(0x381)]]}),this[_0x34c680(0x2b1)][_0x34c680(0x307)](0x2);return;}this[_0x34c680(0x2b1)][_0x34c680(0x307)](0x3);let _0x294313=(_0x37f401=_0x45fa50[_0x34c680(0x325)][_0x34c680(0x1c2)][this[_0x34c680(0x1b9)][_0x34c680(0x245)]['unitId']])==null?void 0x0:_0x37f401[_0x34c680(0x419)];_0x294313&&_0x294313[_0x34c680(0x2d9)](_0x490ba0=>this[_0x34c680(0x39a)][_0x34c680(0x205)](this[_0x34c680(0x1b9)][_0x34c680(0x313)],_0x490ba0));}[_0x528acf(0x340)](_0x12fd04){const _0x37510b=_0x528acf;try{let _0x1b2d6b=ce(this[_0x37510b(0x1b9)],_0x12fd04[_0x37510b(0x325)]);for(let _0x463aaf of _0x1b2d6b)switch(_0x463aaf[_0x37510b(0x1f0)]){case e[_0x37510b(0x330)][_0x37510b(0x1d0)]:this[_0x37510b(0x29d)](_0x463aaf),this[_0x37510b(0x29a)]['next'](_0x463aaf);break;case e['CollaborationEvent'][_0x37510b(0x131)]:this['_onUserLeave'](_0x463aaf),this[_0x37510b(0x29a)][_0x37510b(0x307)](_0x463aaf);break;case e[_0x37510b(0x330)][_0x37510b(0x41f)]:case e[_0x37510b(0x330)][_0x37510b(0x2bf)]:this[_0x37510b(0x17e)](),this[_0x37510b(0x106)](),this[_0x37510b(0x29a)][_0x37510b(0x307)](_0x463aaf);break;case e[_0x37510b(0x330)][_0x37510b(0x1d5)]:this[_0x37510b(0x320)][_0x37510b(0x2d2)](_0x37510b(0x324)+JSON[_0x37510b(0x29e)](_0x463aaf)),this['_event$'][_0x37510b(0x307)](_0x463aaf);break;case e[_0x37510b(0x330)][_0x37510b(0x41e)]:this[_0x37510b(0x3bb)]['onCommentUpdate'](_0x463aaf['data']),this[_0x37510b(0x29a)][_0x37510b(0x307)](_0x463aaf);break;default:this['_event$']['next'](_0x463aaf);}}catch(_0x4a5269){this['_logService'][_0x37510b(0x2d2)](_0x4a5269,_0x12fd04);}}[_0x528acf(0x29d)](_0x5c01b9){const _0x326ee1=_0x528acf;this[_0x326ee1(0x39a)][_0x326ee1(0x205)](this['_identity'][_0x326ee1(0x313)],_0x5c01b9[_0x326ee1(0x325)]);}[_0x528acf(0x113)](_0x22d499){const _0x1b254f=_0x528acf;this[_0x1b254f(0x39a)]['removeMember'](this['_identity'][_0x1b254f(0x313)],_0x22d499[_0x1b254f(0x325)][_0x1b254f(0x2c4)]);}async[_0x528acf(0x2ef)](_0xbfe90b,_0x313a18){const _0x1ae583=_0x528acf;if(this['sessionStatus']!==0x3||!this[_0x1ae583(0x377)])throw Error(_0x1ae583(0x25d));try{let _0x346aed=se(this[_0x1ae583(0x1b9)],_0xbfe90b);_0x346aed['eventID']===e[_0x1ae583(0x330)][_0x1ae583(0x1a7)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x346aed)),this['_socket'][_0x1ae583(0x2ef)]({'cmd':a['CombCmd'][_0x1ae583(0x37e)],'routeKey':this['_identity']['target'][_0x1ae583(0x236)],'routeType':'','data':_0x346aed});}catch(_0x2fc94b){this[_0x1ae583(0x320)]['error'](_0x2fc94b);}}[_0x528acf(0x269)](){const _0xfbaef8=_0x528acf;this[_0xfbaef8(0x180)]=setTimeout(()=>{const _0x32d877=_0xfbaef8;this[_0x32d877(0x180)]=null,this[_0x32d877(0x102)][_0x32d877(0x237)]({'id':_0x32d877(0x194)});},this['_configService'][_0xfbaef8(0x25f)]('HEARTBEAT_TIMEOUT')??0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x17566e=_0x528acf;this[_0x17566e(0x180)]&&=(clearTimeout(this[_0x17566e(0x180)]),null);}[_0x528acf(0x209)](_0x18f5e9){const _0x3b804d=_0x528acf;if(!this[_0x3b804d(0x1a3)])return;let {data:_0x1986eb}=_0x18f5e9,{unitID:_0x50d4ef,changeset:_0x57a3db}=_0x1986eb,{mutations:_0x9d6c0b,type:_0x3d7ef6}=_0x57a3db;this[_0x3b804d(0x23a)]={'unitId':_0x50d4ef,'type':_0x3d7ef6,'startTime':performance[_0x3b804d(0x107)](),'stopTime':0x0,'duration':0x0,'size':te(_0x9d6c0b)};}['_stopTelemetryCollaborationNewChangeset'](){const _0xb5039d=_0x528acf;if(this[_0xb5039d(0x1a3)]){if(!this['_telemetryInfo']){this['_logService']['error']('[CollaborationSession]',_0xb5039d(0x3f1));return;}this[_0xb5039d(0x23a)][_0xb5039d(0x303)]=performance['now'](),this[_0xb5039d(0x23a)]['duration']=this[_0xb5039d(0x23a)]['stopTime']-this['_telemetryInfo']['startTime'],this[_0xb5039d(0x361)][_0xb5039d(0x160)](_0xb5039d(0x393),this[_0xb5039d(0x23a)]),this['_telemetryInfo']=null;}}[_0x528acf(0x2a0)](){const _0x3a92b3=_0x528acf;this[_0x3a92b3(0x23a)]=null;}};ve=y([v(0x2,t[_0x528acf(0x30e)]),v(0x3,t[_0x528acf(0x295)]),v(0x4,(0x0,t[_0x528acf(0x17f)])(b)),v(0x5,(0x0,t[_0x528acf(0x17f)])(ae)),v(0x6,(0x0,t[_0x528acf(0x17f)])(_)),v(0x7,(0x0,t[_0x528acf(0x3ad)])(o[_0x528acf(0x371)]))],ve);const x=(0x0,t[_0x528acf(0x2ab)])(_0x528acf(0x41a));function ye(_0x4e641c){return'unit-cache-'+_0x4e641c;}function be(_0x402c93){const _0x4e2c81=_0x528acf;let {unitID:_0xb22f3e,mutations:_0x2c8104}=_0x402c93;return{'unitId':_0xb22f3e,'subUnitId':_0x2c8104[_0x4e2c81(0x347)]>0x0?_0x2c8104[0x0][_0x4e2c81(0x351)][_0x4e2c81(0x311)]:null};}let S=class{constructor(_0x32ab0f,_0x50b2e3,_0xb13655){const _0x43686b=_0x528acf;this[_0x43686b(0x1d6)]=_0x32ab0f,this['_transformService']=_0x50b2e3,this[_0x43686b(0x10e)]=_0xb13655;}[_0x528acf(0x2f2)](_0x3f5269){const _0x4cde07=_0x528acf;var _0x30d051,_0x16f665;let _0x381a16=this[_0x4cde07(0x1d6)][_0x4cde07(0x1b0)](r[_0x4cde07(0x26f)]),{unitId:_0x1b6194,subUnitId:_0x5a702a}=be(_0x3f5269),_0x5dd7f9=_0x381a16==null?void 0x0:_0x381a16[_0x4cde07(0x135)](_0x1b6194)['getCurrentSelections'](),_0x16bef3=(_0x30d051=this[_0x4cde07(0x10e)][_0x4cde07(0x38b)](_0x1b6194))==null||(_0x30d051=_0x30d051[_0x4cde07(0x11d)]())==null?void 0x0:_0x30d051[_0x4cde07(0x127)]();if(_0x5dd7f9['length']===0x0||!_0x1b6194||!_0x5a702a)return;let _0x34816e=[{'id':r[_0x4cde07(0x413)]['id'],'params':{'unitId':_0x1b6194,'subUnitId':_0x16bef3,'selections':t['Tools']['deepClone'](_0x5dd7f9)}}],_0x338ce8=this[_0x4cde07(0x414)][_0x4cde07(0x2d4)](_0x3f5269,_0x34816e);if(!(0x0,e[_0x4cde07(0x18a)])(_0x338ce8))throw _0x338ce8[_0x4cde07(0x2d2)];let _0x22f9fd=(_0x16f665=_0x338ce8[_0x4cde07(0x3a6)][0x0])==null||(_0x16f665=_0x16f665[_0x4cde07(0x351)])==null?void 0x0:_0x16f665['selections'];if(Array[_0x4cde07(0x1f3)](_0x22f9fd)&&_0x22f9fd[_0x4cde07(0x347)]){if(_0x22f9fd['length']===_0x34816e[0x0][_0x4cde07(0x351)][_0x4cde07(0x185)][_0x4cde07(0x347)]&&_0x22f9fd[_0x4cde07(0x1f6)]((_0x4e762f,_0xd96bfd)=>t[_0x4cde07(0x3b1)]['equals'](_0x4e762f['range'],_0x34816e[0x0][_0x4cde07(0x351)][_0x4cde07(0x185)][_0xd96bfd]['range'])))return;this[_0x4cde07(0x1d6)][_0x4cde07(0x1b0)](t[_0x4cde07(0x14e)])[_0x4cde07(0x2cc)](r[_0x4cde07(0x413)]['id'],{'unitId':_0x1b6194,'subUnitId':_0x16bef3,'selections':_0x22f9fd});}}};S=y([v(0x0,(0x0,t['Inject'])(t[_0x528acf(0x19d)])),v(0x1,e[_0x528acf(0x27c)]),v(0x2,t[_0x528acf(0x3a7)])],S);const C=(0x0,t[_0x528acf(0x2ab)])(_0x528acf(0x411));let xe=function(_0x45b270){const _0x4b3968=_0x528acf;return _0x45b270[_0x45b270['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x4b3968(0x244),_0x45b270[_0x45b270['OTHER_CLIENTS_EDITING']=0x1]=_0x4b3968(0x225),_0x45b270;}({});function Se(_0x4ae883){const _0x308dd9=_0x528acf;var _0x5bb35e;return!!((_0x5bb35e=_0x4ae883['params'])!=null&&_0x5bb35e[_0x308dd9(0x1a9)]);}const Ce=new Set([r[_0x528acf(0x2b5)]['id']]),we=new Set([c[_0x528acf(0x25c)]['id'],c[_0x528acf(0x35e)]['id'],c[_0x528acf(0x167)]['id'],c[_0x528acf(0x331)]['id']]);function Te(_0x6f17ac,_0x5bb356=Ce){const _0x1877c5=_0x528acf;let _0x187a32=[];for(let _0xa7a34f of _0x6f17ac){if(_0x5bb356['has'](_0xa7a34f['id'])){if(_0x187a32['length']>0x0)break;_0x187a32['push'](_0xa7a34f);break;}if(Se(_0xa7a34f)){if(_0x187a32[_0x1877c5(0x347)]>0x0)break;_0x187a32[_0x1877c5(0x19e)](_0xa7a34f);break;}_0x187a32[_0x1877c5(0x19e)](_0xa7a34f);}return _0x187a32;}function w(_0x3cbc35,_0x3252c0,_0x435b13,_0xe043e7,_0x43a80b){const _0x11274b=_0x528acf;let _0x2bddad=Te(_0x3cbc35),_0x5c58dc=_0x43a80b[_0x11274b(0x26a)](),_0x218ac8=(_0x5c58dc==null?void 0x0:_0x5c58dc[_0x11274b(0x2af)])??_0x11274b(0x3e5),_0xa77322=(_0x5c58dc==null?void 0x0:_0x5c58dc[_0x11274b(0x2c4)])??'unknown';return{'changeset':{'unitID':_0x3252c0,'type':(0x0,e[_0x11274b(0x130)])(_0x435b13[_0x11274b(0x24d)](_0x3252c0)),'baseRev':_0xe043e7[_0x11274b(0x1b2)](_0x3252c0),'revision':0x0,'userID':_0x218ac8,'memberID':_0xa77322,'mutations':_0x2bddad},'pendingMutations':_0x3cbc35['slice'](_0x2bddad['length'])};}function _0x2879(){const _0x55fd41=['/rev/','stopTime','JOIN_ROOM_NOT_EXISTS','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','baseRev','next','_onConnectionOpen','/universer-api/user/session-ticket','getFocusedUnit','isPermissionRej','floor','_isPermissionRej','ILogService','onTransformIME','_clearUndo','subUnitId','SheetTransformSelectionsService','localUnitId','saveSheetBlock','Quantity','SheetPermissionInitController','removeMember','includes','getUnitStatus$','_getAPIPrefixPath','c1Prime','endsWith','_permissionService','_localCacheService','DependentOn','_logService','onMissingChangesets','localCacheService','file','save\x20fail\x20reason\x20is\x20','data','_sheetTransformSelectionsService','appendMutation','indexOf','_onConnectionFailed','permissionRejEvent','upload','_waitCount','toLocal','_createInitialState','getLocalCacheKey','CollaborationEvent','RemoveSlidePageMutation','Error\x20on\x20receiving\x20event','constructor','MemberService','apply','session.join-failed','submit\x20changeset\x20error!','getImageSourceCache','_onRemoteRetry','UnitEmbedded','/-/object/list','subject','createInstance','entries','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_onRecvEvent','sessionStatus$','UNIVER_PDF','_getLoginPath','JOINING','_clearRetryConnectingTimer','_docStateChangeManagerService','length','joinEvent','_initMergeInterceptor','incrementRevOfUnit','backupOfflineData','_showConflictNotification','getRoom','touchDependencies','_handler','LIVESHARE_OPERATION','params','IPermissionService','some','OfflineState','_getUploadFileURL','_listenToNetworkCondition','_queuedRemoteChangesets','HTTPRequest','newCsEvent','origin','UPDATE_CURSOR','textEncoder','_clearTimeoutTimer','EnsureSlideMasterPageMutation','pauseCollaboration','_pendingSessions','_telemetryService','\x0aAfter:\x20','collaborators','values','_removeRoom','objectType','subscribe','shareReplay','?url=','Plugin','fetchMiss','socket$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','LIVESHARE_REQUEST_HOST','signUrlServerUrl','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','ITelemetryService','HEARTBEAT_TIMEOUT','FileSource','close$','1192MYHqWv','getMemberID','_socket','FetchingMissState','onStateChange','toggleOffline','univer-pro.collaboration-client-adapter-service','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','unitType','INGEST','_pendingMutations','src','code','isInternalEditorID','connection\x20error','fetching\x20missing\x20changesets\x20from\x20','collaMsg','collaboration-client.auth.needGotoLoginAlert','enableAuthServer','location','_singleActiveUnitService','message$','getUnit','_collabSessionService','getUploadOptions','putCollaborators','onSyncEditingCollabCursor','LIVESHARE_NEW_HOST','_updateState','unitInfo$','collaboration_new_changeset','\x20-\x20','_sendingTimer','avatar','onMissedChangesetFetched','RECV','4877596MBTiYB','_memberService','getMember','CONFLICT','_emitMembers','put','commentUpdate$','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','CompressMutationService','disposeWithMe','default','decorate','b64DecodeUnicode','m2Prime','IUniverInstanceService','RETRY_CONNECTING_MAX_COUNT_KEY','sort','loginUrlKey','_getSignURL','add','Optional','timeoutTimer','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','ICollaborationClientAdapterService','Rectangle','prototype','x-univer-host','collaboratorID','IMentionIOService','updatePermissionObjEvent','_isEchoedAwaitingChangeset','MentionType','socketMessageSubscription','/block/','_commentService','WorkbookEditablePermission','_onJoinRoomEvent','UniverNetworkPlugin','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','init','_resendTimeout','fetchThroughInterceptors','title','_config','_onMessage','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','csRejEvent','CollaborationStatus','DRAWING_IMAGE_ALLOW_IMAGE_LIST','Module','[CollaborationEntity]','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_tryEnsureSocket','packageName','pipe','{fileID}','[CollaborationSessionService]:\x20socket\x20error','_onConflict','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','COMPRESS_MUTATION_SEND','change$','BaseCollaborationEntity','href','ThresholdInterceptorFactory','awaiting','resolveUnit','getUnitOnRev','toDisposable','getImage','_registerDependencies','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','endpointKey','saveSnapshot','not_collab','commentUpdateEvent','_toggleOffline','unknown','update','_socketChannels','updatePermissionPoint','serializeCombRequest','getInterceptPoints','number','[DataLoaderService]','catch','LIVESHARE_TERMINATE','IDLE','HTTPService','telemetry\x20info\x20is\x20not\x20initialized','1071354PgVMIM','_sessions','requestParams','onTransformSelections','sendChangesetTimeout','_imageSourceCache','onRemoteRej','_schedule','MUTATION','[PendingState]:\x20received\x20acknowledgement.','clear','reverse','getAttachmentUrl','candidateSocket','generateRandomId','onTransformRemoteChangesetByIMECache','authzUrl','_clearScheduledTask','enableOfflineEditing','loadBase','unitId\x20is\x20not\x20found','_transformAndApplyRemoteChangeset','closeSession','reject','isTransformChangesetsSuccess','reconnect','members$','POST','docStateChange$','PSEUDO_FETCH_MISSING_RESULT','COMPRESS_MUTATION_APPLY','univer-pro.collaboration-client.single-active-unit-service','_resendWithTimeout','SetSelectionsOperation','_transformService','override','_univerInstanceService','DisposableCollection','_unitLoaded$','members','collaboration-client.local-cache-service','_incrementRevisionNumber','iterator','createCollaborator','COMMENT_UPDATE','CHANGESET_ACK','&assign=','retryConnectingTimer','status$','_revisionService','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','PERMISSION_REJ','LEAVE','_configService','copyFileMeta','/universer-api/snapshot','sessionStatus','_transformStateCache','deserializeToCombResponse','awaiting_with_pending','_getSendChangesetTimeout','_collaborationUIEventService','_onLocalMutation','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','CollaborationImageIoService','_clearCollaborationTimeoutTimer','now','_clearRedo','setWaitCount','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','registerHTTPInterceptor','_remoteChangesetQueue','transformChangesets','_instanceService','patch','CombCmd','UNIVER_SLIDE','toggleOnline','_onUserLeave','open$','event$','shouldCloseConn','cbc','fromCollab','\x20in\x20_schedule.','[UniverCollaborationClientPlugin]','IAttachmentIoService','close','getActiveSheet','_unlockTransition','UNISCRIPT_RUN','SYNCED','action','socket\x20close','_createHandler','_maxTotalRetryTimeout','loadUnitOfRevision','snapshot','getSheetId','workbook','_initRequestHeader','/object/','__Key__','NOT_COLLAB','5KzHtSW','mergeOverrideWithDependencies','_transformUndoredo','mapDocumentTypeToUniverInstanceType','USERS_LEAVE','SOCKET_FAILED','method','_transformIMECache','getWorkbookSelections','originalMeta','objects','cmd','PendingState','getCollabEntity','complete','interceptor','joinRsp','_resendTimer','_cfgEnableObjInherit','body','EmptyMutationInfo','list','ONLINE','setConfig','CollaborationSession','RETRY_CONNECTING_MAX_COUNT','PERMISSION_DENIED','_waitForHeartbeatResponse','_roomCreated$','hasOwnProperty','toString','univer-pro.collaboration-client.network-condition.service','_replayCachedMutations','ICommandService','ISnapshotServerService','onStarting','29136708TnemfT','entityInit$','1233014BOEafq','transformUndoRedo','IAuthzIoService','CollaborationController','function','_tryReconnect','_changesetReqId','UNIVER_BASE','mutations','_transformSelections','encode','getCfgEnableObjInherit','[PendingState]:\x20unhandled\x20univer\x20type:\x20','capture','socketService','conflict','enableSingleActiveInstanceLock','from','collabSubmitChangesetUrl','delete','MoveSlidePageMutation','find','[FetchMissState]','LOCAL_CACHE_INTERVAL','ISingleActiveUnitService','routeKey','CollaborationAttachmentIoService','SessionStatus','UNIVER_COLLABORATION_CLIENT_PLUGIN','object','_createSocket','onload','NEW_CHANGESETS','_entityInit$','replace','retryCount','DEFAULT_FILE_NAME','_sessionChannels','unitID','OTHER_CLIENT_EDITING','take','reqId','_replaceFileID','_stopTelemetryCollaborationNewChangeset','Inject','_collaborationTimeoutTimer','_getCurrentRevision','_sender','confirm','loadUnit','selections','_transformRemoteChangesetByIMECache','/unit/','_onFetchMissResult','UUID','isTransformMutationsWithChangesetSuccess','set','headers','changesets','[PendingState]:\x20received\x20rejection.','collaboration-client.config','toRemote','type','utf8ToBytes','getValue','SUBMIT_CHANGESET_TIMEOUT','startsWith','batchAllowed','DEFAULT_WS_SESSION_TICKET_URL','GLOBAL_ROOMS_CNT_EXCEEDS','LocaleService','_adapter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverLicensePlugin','Injector','push','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_updateLocalCache','UserManagerService','retryConnectingInterval','_shouldReportTelemetry','fetch_missing','/collaborator','CmdRspCode','SUBMIT_CHANGESET','_initUnitPermissionChange','__splitChunk__','_commentUpdate$','JOIN_ROOM_FAILED','ImageUploadStatusType','session.room-permission-denied','[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.','_type','get','RxDisposable','getCurrentRevOfUnit','/universer-api/snapshot/','cfgEnableObjInherit','objectActions','CommandType','_substituteRedoStack','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_identity','session','getUnitId','_decreaseWaiting','_hasSessionsForEndpoint','_snapshotService','Subject','name','MergeInterceptorFactory','roomInfos','merge','error$','compose','_acknowledgeAwaitingIfReady','parse','_entities','tables','call','_clearHeartbeatTimer','_getDownloadEndpointURL','RichTextEditingMutation','localeService','DocCollaborationEntity','USERS_ENTER','requireSession','ErrorCode','1.0.0-beta.0','_getConfig','MSG_FOR_ERROR','_injector','socketReady','resolveWithBasePath','deleteCollaborator','@univerjs-pro/collaboration-client','asObservable','getTypeOfUnitAdded$','_members','LIVESHARE_FETCH_OPERATIONS','CommentService','filter','refreshPermission','ImageSourceType','500070dvlzQu','status','_networkConditionService','SNAPSHOT_URL_KEY','HEARTBEAT_INTERVAL_KEY','_startCollaboration','SUCCUSS','_createInitialStateImpl','UNIVER_BOARD','getTime','_eventService','[OfflineState]:\x20received\x20acknowledgement.','BehaviorSubject','eventID','CollaborationSessionService','_awaitingChangeset','isArray','map','parseProtocolChangeset','every','/universer-api/stream/file/upload','sendHeartbeatTimer','&source=','_initDependencies','dispose','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','IUndoRedoService','OFFLINE','_httpService','addImageSourceCache','delay','setCfgEnableObjInherit','_state','getSheetBlock','updateMember','_collaborationSessionService','PdfCollaborationEntity','append','_startTelemetryCollaborationNewChangeset','MentionIoHttpService','/role','_status$','unit','_localeService','getTypeOfUnitDisposed$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','onRemoteChangeset','_change$','setShowComponents','UNIVER_DOC','/universer-api/authz','ERROR_IMAGE','[OfflineState]:\x20received\x20changeset.','_getAPIPrefix','ws://127.0.0.1:8000/universer-api/comb/connect','loadBoard','missingChangesets','_syncEditingCollabCursor','_toggleOnline','toStringTag','sheets','CollaborationSocketService','_updateStatus','_transitionLocked','_changesetSessionId','_HTTPService','OTHER_CLIENTS_EDITING','_sendHeartbeat','updateOfflineData','_onRemoteChangeset','_redoStacks','_handleRemoteChangesets','_resolveSessionIdentity','_state$','initWorkbookPermissionChange','readAsDataURL','JOIN','editingUnit','_acknowledgeAwaiting','editing\x20status\x20changed\x20to','SnapshotService','_undoRedoService','_getRedoStack','unitId','emitEvent','downloadEndpointUrl','revision','_telemetryInfo','/-/object/-/batch_allowed','socket\x20open.','_checkMissing','Disposable','_exhaustRemoteChangesetQueue','PERSON','createSocket','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','endpoint','NO_OTHER_CLIENTS_EDITING','target','FileId','trim','online$','_transformStack','onSendChangeset','_createSession','post','getUnitType','url','onlyLocal','_init','_joinRoom','_clearLocalCache','session.room-full','PENDING','updateCollaborator','snapshotServerUrl','CollaborativeUndoRedoService','c2Prime','string','takeUntil','SOCKET_FAILED_RETRY','AddSlidePageMutation','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','CollaborationUIEventId','getConfig','_substituteUndoStack','[CollaborationState]:\x20apply\x20error!','allowed','liveShareOperation','debug','UniverCollaborationPlugin','state','fromCharCode','blockRanges','_scheduleCollaborationTimeoutTimer','getCurrentUser','ILocalCacheService','CHANGESET_REJ','registerDependencies','_disableEditing','SheetsSelectionsService','min','pending','LOCAL_CACHE_INTERVAL_KEY','/universer-api/uniscript','UniverInstanceType','leaveEvent','attachment','loadOfflineData','getGlobalObject','ERROR_EXCEED_SIZE','[CollaborationUndoRedoService]','_socketService','ITransformService','JSONX','awaitingChangeset','fetchMissingChangesets','CLOSE_ROOM','uploadFileServerUrl','unsubscribe','splice','resolve','_socketMessageSubscription','isTransformMutationsWithChangesetFailure','then','addHandlerCallback','onTransformRemoteChangesetByStateCache','HELLO','/universer-api/oidc/authpage','_roomMembers','_commandService','saveImage','textRanges','objectID','_submitChangeset','UniverCollaborationClientPlugin','parseChangesetToProtocol','AwaitingWithPendingState','IConfigService','338511QMXgfH','getSnapshotAPIPath','_getUndoStack','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_event$','getCollabEntity$','FETCH_MISSING','_onUserJoin','stringify','ERROR_IMAGE_TYPE','_throwTelemetryCollaborationNewChangeset','responseType','_fetchMissChangesets','[CollaborationSessionService]','resend','_getSocketChannel','/universer-api/file/{fileID}/sign-url','concatMap','HEARTBEAT_INTERVAL','_transformRemoteChangesetByStateCache','?size=','createIdentifier','_initCloseConn','_onOffline','_userManagerService','userID','dispose$','_sessionStatus$','/object','focused$','1477fSlcbp','InsertSheetMutation','has','defineProperty','RevisionService','ISocketService','saveAttachment','roles','onRemoteRetry','SHOULD_CLOSE_CONN','disableLocalCache','CHANGESET_SHOULD_RETRY','Failed\x20to\x20update\x20permission\x20point','liveShareNewHost','synced','_members$','memberID','HEARTBEAT','onMutationExecutedForCollab','size','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','sid','_onRemoteRejected','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','executeCommand','encrypt','_executeRemoteChangeset','reduce','DocStateChangeManagerService','_snapshotServerService','error','_unitInfo$','transformMutationsWithChangeset','_lockTransition','_applyRemoteChangeset','infoRsp','resourceIDs','forEach','onTransformState','/allowed','_handlerCallback','[OfflineState]:\x20received\x20rejection.','_acknowledgedAwaitingRevision','UNIVER_SHEET','onRemoteAck','OPTIONAL','INetworkConditionService','ReplaySubject','Univer','loadDoc','HEARTBEAT_TIMEOUT_KEY','_undoStacks','csAckEvent','[SyncedState]:\x20received\x20rejection.','loadPdf','&to=','JOIN_ROOM_PERMISSION_DENIED','result','symbol','send','changeset','AWAITING_WITH_PENDING','transformSelections','_collaborationPaused','_onRemoteACK','SheetCollaborationEntity','_scheduleCompleteTimestamp','BoardCollaborationEntity','actions','_compressMutationService','FETCH_MISS','text-x','_getCtorByUniverInstanceType','accept','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','CollaborationEntity','create','slice'];_0x2879=function(){return _0x55fd41;};return _0x2879();}const Ee=w;function De(_0x375c9a,_0x112bee,_0x161abc,_0x595247,_0xcf886e){const _0x44f5d3=_0x528acf;let _0x2cf6a9=Te(_0x375c9a,we),_0xed3166=_0xcf886e[_0x44f5d3(0x26a)](),_0x11ab08=(_0xed3166==null?void 0x0:_0xed3166['userID'])??_0x44f5d3(0x3e5),_0x1040c9=(_0xed3166==null?void 0x0:_0xed3166[_0x44f5d3(0x2c4)])??_0x44f5d3(0x3e5);return{'changeset':{'unitID':_0x112bee,'type':(0x0,e[_0x44f5d3(0x130)])(_0x161abc[_0x44f5d3(0x24d)](_0x112bee)),'baseRev':_0x595247[_0x44f5d3(0x1b2)](_0x112bee),'revision':0x0,'userID':_0x11ab08,'memberID':_0x1040c9,'mutations':_0x2cf6a9},'pendingMutations':_0x375c9a[_0x44f5d3(0x301)](_0x2cf6a9[_0x44f5d3(0x347)])};}function Oe(_0x837a43,_0x2996cb,_0x4ec1fd,_0x3b854e,_0x2c35da){const _0x33238f=_0x528acf;let _0x4218b2=_0x837a43[_0x33238f(0x2cf)]((_0x23a23c,_0x2bc545)=>{const _0x55f8ae=_0x33238f;let _0x5d902d=_0x23a23c[_0x23a23c[_0x55f8ae(0x347)]-0x1],{id:_0x52957e}=_0x5d902d??{},{id:_0x502f93,type:_0x29662b}=_0x2bc545,_0x94ddfb=_0x2bc545['params'];if(_0x52957e&&_0x52957e!==_0x502f93)throw Error(_0x55f8ae(0x2fe)+_0x52957e+_0x55f8ae(0x394)+_0x502f93+'.');if(!_0x5d902d)return[{'id':_0x502f93,'type':_0x29662b,'params':{'unitId':_0x94ddfb['unitId'],'textRanges':_0x94ddfb[_0x55f8ae(0x28f)],'actions':_0x94ddfb[_0x55f8ae(0x2f8)]}}];let _0x5457ac=_0x5d902d[_0x55f8ae(0x351)];return ke(_0x5457ac,_0x94ddfb)?[..._0x23a23c[_0x55f8ae(0x301)](0x0,-0x1),{..._0x5d902d,'id':_0x502f93,'type':_0x29662b,'params':{'unitId':_0x94ddfb[_0x55f8ae(0x236)],'textRanges':_0x94ddfb[_0x55f8ae(0x28f)],'actions':t[_0x55f8ae(0x27d)][_0x55f8ae(0x1c5)](_0x5457ac[_0x55f8ae(0x2f8)],_0x94ddfb[_0x55f8ae(0x2f8)])}}]:[..._0x23a23c,{'id':_0x502f93,'type':_0x29662b,'params':{'unitId':_0x94ddfb[_0x55f8ae(0x236)],'textRanges':_0x94ddfb[_0x55f8ae(0x28f)],'actions':_0x94ddfb[_0x55f8ae(0x2f8)]}}];},[]),_0x39b08f=_0x2c35da['getCurrentUser'](),_0x4d581a=(_0x39b08f==null?void 0x0:_0x39b08f['userID'])??_0x33238f(0x3e5),_0x293a3d=(_0x39b08f==null?void 0x0:_0x39b08f[_0x33238f(0x2c4)])??_0x33238f(0x3e5);return{'changeset':{'unitID':_0x2996cb,'type':(0x0,e[_0x33238f(0x130)])(_0x4ec1fd['getUnitType'](_0x2996cb)),'baseRev':_0x3b854e['getCurrentRevOfUnit'](_0x2996cb),'revision':0x0,'userID':_0x4d581a,'memberID':_0x293a3d,'mutations':_0x4218b2},'pendingMutations':_0x837a43[_0x33238f(0x301)](_0x837a43[_0x33238f(0x347)])};}function ke(_0x2c4ecd,_0x4ce8b5){const _0x199aa6=_0x528acf;return!Ae(_0x2c4ecd)&&!Ae(_0x4ce8b5)&&je(_0x2c4ecd[_0x199aa6(0x2f8)],_0x4ce8b5['actions']);}function Ae(_0x2340d7){return _0x2340d7['isCompositionEnd']!==void 0x0;}function je(_0x41d327,_0x5ee523){return Me(_0x41d327)&&Me(_0x5ee523)&&!Pe(_0x41d327)&&!Pe(_0x5ee523)&&!Ne(_0x41d327)&&!Ne(_0x5ee523);}function Me(_0x14f9e1){const _0x1205da=_0x528acf;return Fe(_0x14f9e1)['some'](_0x33b518=>T(_0x33b518)&&_0x33b518['et']===_0x1205da(0x2fb));}function Ne(_0x506205){const _0x41b22d=_0x528acf;return Fe(_0x506205)[_0x41b22d(0x353)](_0x42439a=>Array[_0x41b22d(0x1f3)](_0x42439a)||typeof _0x42439a==_0x41b22d(0x259)||typeof _0x42439a==_0x41b22d(0x3eb));}function Pe(_0x791f53){const _0x4dea94=_0x528acf;return Fe(_0x791f53)[_0x4dea94(0x353)](_0x12e657=>!T(_0x12e657)||_0x12e657['et']!==_0x4dea94(0x2fb)||!Array[_0x4dea94(0x1f3)](_0x12e657['e'])?!0x1:_0x12e657['e']['some'](_0x4f5593=>!T(_0x4f5593)||!T(_0x4f5593[_0x4dea94(0x140)])?!0x1:Object[_0x4dea94(0x3b2)][_0x4dea94(0x14a)][_0x4dea94(0x1ca)](_0x4f5593['body'],_0x4dea94(0x1c9))||Object[_0x4dea94(0x3b2)][_0x4dea94(0x14a)][_0x4dea94(0x1ca)](_0x4f5593[_0x4dea94(0x140)],'columnGroups')||Object['prototype'][_0x4dea94(0x14a)][_0x4dea94(0x1ca)](_0x4f5593[_0x4dea94(0x140)],_0x4dea94(0x268))));}function Fe(_0x500ed5){const _0xf6d384=_0x528acf;if(!Array['isArray'](_0x500ed5))return[];let _0x4947e5=_0x500ed5['includes'](_0xf6d384(0x140))?_0x500ed5:_0x500ed5['find'](_0x43536e=>Array[_0xf6d384(0x1f3)](_0x43536e)&&_0x43536e[_0xf6d384(0x318)](_0xf6d384(0x140)));if(!Array[_0xf6d384(0x1f3)](_0x4947e5))return[];let _0x42078d=_0x4947e5[_0xf6d384(0x328)](_0xf6d384(0x140));return _0x42078d===-0x1?[]:_0x4947e5[_0xf6d384(0x301)](_0x42078d+0x1);}function T(_0x4c6ac8){const _0xa2b76f=_0x528acf;return typeof _0x4c6ac8==_0xa2b76f(0x170)&&!!_0x4c6ac8&&!Array[_0xa2b76f(0x1f3)](_0x4c6ac8);}function Ie(_0xa3c632,_0x4d0055){const _0x2b4e84=_0x528acf;let _0x49d420=new i[(_0x2b4e84(0x2e3))](0x1);return setTimeout(()=>_0x49d420[_0x2b4e84(0x307)](_0x4d0055),_0xa3c632),_0x49d420['asObservable']()[_0x2b4e84(0x3cf)]((0x0,i[_0x2b4e84(0x17b)])(0x1));}var Le,Re,ze;let Be=function(_0x3e61b3){const _0x45e160=_0x528acf;return _0x3e61b3[_0x45e160(0x12c)]=_0x45e160(0x3e2),_0x3e61b3[_0x45e160(0x120)]=_0x45e160(0x2c2),_0x3e61b3[_0x45e160(0x254)]='pending',_0x3e61b3['AWAITING']='awaiting',_0x3e61b3[_0x45e160(0x2f1)]=_0x45e160(0x100),_0x3e61b3[_0x45e160(0x2fa)]=_0x45e160(0x1a4),_0x3e61b3['CONFLICT']=_0x45e160(0x162),_0x3e61b3[_0x45e160(0x1fe)]='offline',_0x3e61b3;}({});const Ve=0x4e20,He=0x2bf20;var E=class{constructor(_0x498ecb,_0x4bb260,_0x32a7b0,_0x4731b6,_0x4467b4,_0x32493d,_0x492bce,_0x12303f,_0xb44235){const _0x269d5c=_0x528acf;this[_0x269d5c(0x179)]=_0x498ecb,this[_0x269d5c(0x191)]=_0x4bb260,this[_0x269d5c(0x34f)]=_0x4467b4,this[_0x269d5c(0x28d)]=_0x32493d,this[_0x269d5c(0x234)]=_0x492bce,this[_0x269d5c(0x423)]=_0x12303f,this[_0x269d5c(0x31e)]=_0xb44235,g(this,_0x269d5c(0x1f2),null),g(this,_0x269d5c(0x37f),[]),this[_0x269d5c(0x1f2)]=_0x32a7b0,this[_0x269d5c(0x37f)]=_0x4731b6;}[_0x528acf(0x23d)](_0x373acf){const _0x244490=_0x528acf;let _0x230062=this[_0x244490(0x423)][_0x244490(0x1b2)](this['unitID']);return _0x373acf[_0x244490(0x239)]>_0x230062+0x1?(this[_0x244490(0x34f)][_0x244490(0x321)]({'from':_0x230062,'to':_0x373acf[_0x244490(0x239)]-0x1}),!0x0):!0x1;}[_0x528acf(0x12f)](_0x417467){const _0x4fdf96=_0x528acf;this[_0x4fdf96(0x234)][_0x4fdf96(0x154)](this[_0x4fdf96(0x179)],_0x417467);}[_0x528acf(0x15c)](_0x34716d){const _0x418d65=_0x528acf;var _0x1667cf,_0x3b993c;(_0x1667cf=(_0x3b993c=this['_handler'])[_0x418d65(0x3f5)])==null||_0x1667cf['call'](_0x3b993c,_0x34716d);}[_0x528acf(0x134)](_0x1ceea5){const _0x447536=_0x528acf;var _0x5c203d,_0x5ef042;return(_0x5c203d=(_0x5ef042=this[_0x447536(0x34f)])['onTransformIME'])==null?void 0x0:_0x5c203d[_0x447536(0x1ca)](_0x5ef042,_0x1ceea5);}[_0x528acf(0xfe)](_0x385131){const _0x4097ce=_0x528acf;var _0xc21a1,_0x9fe71c;return(_0xc21a1=(_0x9fe71c=this[_0x4097ce(0x34f)])[_0x4097ce(0x2da)])==null?void 0x0:_0xc21a1[_0x4097ce(0x1ca)](_0x9fe71c,_0x385131);}[_0x528acf(0x186)](_0x225fe4){const _0x17f382=_0x528acf;var _0x4da8f8,_0x29e26d;return((_0x4da8f8=(_0x29e26d=this[_0x17f382(0x34f)])[_0x17f382(0x401)])==null?void 0x0:_0x4da8f8['call'](_0x29e26d,_0x225fe4))??_0x225fe4;}[_0x528acf(0x2a9)](_0x598e7a){const _0xea21fd=_0x528acf;var _0x1b73c2,_0x386c11;return((_0x1b73c2=(_0x386c11=this[_0xea21fd(0x34f)])[_0xea21fd(0x289)])==null?void 0x0:_0x1b73c2[_0xea21fd(0x1ca)](_0x386c11,_0x598e7a))??_0x598e7a;}[_0x528acf(0x21c)](_0x462c97){const _0x26b83f=_0x528acf;if(this[_0x26b83f(0x191)]===t['UniverInstanceType'][_0x26b83f(0x214)]){let {unitID:_0x2218ff,mutations:_0x374ba5,memberID:_0x2adf6f}=_0x462c97,_0x109573=_0x374ba5['length']>0x0?_0x374ba5[0x0][_0x26b83f(0x351)]['textRanges']:[];if(Array[_0x26b83f(0x1f3)](_0x109573)&&_0x109573[_0x26b83f(0x347)]>0x0){var _0xb76a40,_0x5e4fdf;(_0xb76a40=(_0x5e4fdf=this[_0x26b83f(0x34f)])[_0x26b83f(0x38f)])==null||_0xb76a40['call'](_0x5e4fdf,{'unitID':_0x2218ff,'memberID':_0x2adf6f,'textRanges':_0x109573});}}}[_0x528acf(0x1a0)](){const _0x1692ef=_0x528acf;var _0x4c4ae6;(_0x4c4ae6=this[_0x1692ef(0x31e)])==null||_0x4c4ae6[_0x1692ef(0x227)](this[_0x1692ef(0x179)],this[_0x1692ef(0x191)],this[_0x1692ef(0x1f2)],this[_0x1692ef(0x37f)]);}[_0x528acf(0x181)](){const _0x39d002=_0x528acf;return this[_0x39d002(0x423)][_0x39d002(0x1b2)](this[_0x39d002(0x179)]);}[_0x528acf(0x41b)](){const _0x130c21=_0x528acf;this[_0x130c21(0x423)][_0x130c21(0x34a)](this[_0x130c21(0x179)]);}[_0x528acf(0x2ce)](_0x4d7ace){const _0x2de14f=_0x528acf;let _0x161f62=this[_0x2de14f(0x186)](_0x4d7ace);_0x161f62=this['_transformRemoteChangesetByStateCache'](_0x161f62);let _0x25668e=(0x0,t['sequenceExecute'])(_0x161f62[_0x2de14f(0x15b)],this[_0x2de14f(0x28d)],{'fromCollab':!0x0});if(!_0x25668e[_0x2de14f(0x2ed)])throw _0x25668e[_0x2de14f(0x2d2)]instanceof Error?_0x25668e[_0x2de14f(0x2d2)]:Error(_0x25668e[_0x2de14f(0x2d2)]??_0x2de14f(0x261));this[_0x2de14f(0x134)](_0x161f62),this[_0x2de14f(0xfe)](_0x161f62),this[_0x2de14f(0x12f)](_0x4d7ace),this[_0x2de14f(0x15c)](_0x161f62),this[_0x2de14f(0x21c)](_0x161f62),this[_0x2de14f(0x41b)]();}};let D=class extends E{constructor(_0x436b46,_0x570f40,_0x40a612,_0x54a233,_0x40309b,_0x3100da,_0x183d1d,_0x379a7e,_0x2dafd6,_0x5653c6){const _0x24abb7=_0x528acf;super(_0x436b46,_0x570f40,null,[],_0x40a612,_0x183d1d,_0x3100da,_0x54a233,_0x5653c6),this[_0x24abb7(0x1d6)]=_0x40309b,this[_0x24abb7(0x320)]=_0x379a7e,this[_0x24abb7(0x414)]=_0x2dafd6,this[_0x24abb7(0x322)]=_0x5653c6,g(this,_0x24abb7(0x1e4),'synced');}[_0x528acf(0x327)](_0x2f0855){const _0x454c2e=_0x528acf;let _0x553429=this[_0x454c2e(0x1d6)]['createInstance'](O,this['unitID'],this[_0x454c2e(0x191)],[_0x2f0855],this[_0x454c2e(0x34f)]);return _0x553429[_0x454c2e(0x3f9)](),_0x553429[_0x454c2e(0x1a0)](),_0x553429;}[_0x528acf(0x211)](_0x245846){const _0x59effc=_0x528acf;if(this[_0x59effc(0x23d)](_0x245846))return this[_0x59effc(0x1d6)]['createInstance'](N,this['unitID'],this[_0x59effc(0x191)],null,[],null,[_0x245846],this[_0x59effc(0x34f)]);try{let _0x2fd238=this[_0x59effc(0x414)]['transformMutationsWithChangeset'](_0x245846,[e[_0x59effc(0x141)]]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x2fd238)){let {c1Prime:_0x4ce42f}=_0x2fd238;return this['_executeRemoteChangeset'](_0x4ce42f),this;}throw _0x2fd238[_0x59effc(0x2d2)];}catch(_0x44385d){return this[_0x59effc(0x320)][_0x59effc(0x2d2)](_0x44385d),this[_0x59effc(0x3d2)](!0x1);}}['_onConflict'](_0x1ace7b){const _0x4db1c6=_0x528acf;return this['_injector']['createInstance'](j,this[_0x4db1c6(0x179)],this[_0x4db1c6(0x191)],null,[],this[_0x4db1c6(0x34f)],_0x1ace7b);}[_0x528acf(0x2e0)](_0x5542b0){const _0x3d8eb0=_0x528acf;if(_0x5542b0[_0x3d8eb0(0x239)]<=this[_0x3d8eb0(0x181)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x592bd8=_0x528acf;throw Error(_0x592bd8(0x2e9));}[_0x528acf(0x2bc)](){return this;}[_0x528acf(0x37a)](){const _0x11d34c=_0x528acf;return this[_0x11d34c(0x1d6)][_0x11d34c(0x33d)](M,this['unitID'],this[_0x11d34c(0x191)],null,[],this[_0x11d34c(0x34f)]);}['toggleOnline'](){return this;}['resend'](){const _0x1750c6=_0x528acf;throw Error(_0x1750c6(0x242));}[_0x528acf(0x36b)](){const _0x3a9db9=_0x528acf;let _0x1afd01=this[_0x3a9db9(0x423)][_0x3a9db9(0x1b2)](this['unitID']);return this[_0x3a9db9(0x34f)]['onMissingChangesets']({'from':_0x1afd01,'to':0x0}),this[_0x3a9db9(0x1d6)]['createInstance'](N,this[_0x3a9db9(0x179)],this[_0x3a9db9(0x191)],null,[],null,[],this[_0x3a9db9(0x34f)]);}};D=y([v(0x3,(0x0,t['Inject'])(e[_0x528acf(0x2b8)])),v(0x4,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x5,t['IUndoRedoService']),v(0x6,t[_0x528acf(0x14e)]),v(0x7,t[_0x528acf(0x30e)]),v(0x8,e['ITransformService']),v(0x9,(0x0,t[_0x528acf(0x3ad)])(x))],D);let O=Le=class extends E{constructor(_0x17014e,_0x32250e,_0x46b3dc,_0x17c797,_0x4934be,_0x2fac22,_0x325635,_0x595237,_0x2f6b69,_0x43c4f5,_0x242770,_0x2722f3,_0x2353e3,_0x5c3bc8){const _0x432951=_0x528acf;super(_0x17014e,_0x32250e,null,_0x46b3dc,_0x17c797,_0x2f6b69,_0x2353e3,_0x2fac22,_0x5c3bc8),this[_0x432951(0x1d6)]=_0x4934be,this['_userManagerService']=_0x325635,this[_0x432951(0x320)]=_0x595237,this[_0x432951(0xfa)]=_0x43c4f5,this[_0x432951(0x414)]=_0x242770,this['_univerInstanceService']=_0x2722f3,g(this,_0x432951(0x1e4),_0x432951(0x271)),g(this,_0x432951(0x2f6),null),g(this,'_sendingTimer',null);}[_0x528acf(0x327)](_0x5cdc84){const _0x42f3c4=_0x528acf;return this[_0x42f3c4(0x37f)][_0x42f3c4(0x19e)](_0x5cdc84),this['_updateLocalCache'](),this;}[_0x528acf(0x211)](_0x444c1b){const _0x1382c7=_0x528acf;if(this[_0x1382c7(0x23d)](_0x444c1b))return this[_0x1382c7(0x403)](),this[_0x1382c7(0x1d6)][_0x1382c7(0x33d)](N,this[_0x1382c7(0x179)],this[_0x1382c7(0x191)],null,this['_pendingMutations'],null,[_0x444c1b],this['_handler']);try{let _0x35ec44=this[_0x1382c7(0x414)][_0x1382c7(0x2d4)](_0x444c1b,this[_0x1382c7(0x37f)]);if((0x0,e[_0x1382c7(0x18a)])(_0x35ec44)){let {c1Prime:_0x15ce32,m2Prime:_0xe7213b}=_0x35ec44;this[_0x1382c7(0x2ce)](_0x15ce32);let _0x40756f=this[_0x1382c7(0x1d6)][_0x1382c7(0x33d)](Le,this[_0x1382c7(0x179)],this[_0x1382c7(0x191)],_0xe7213b,this[_0x1382c7(0x34f)]);this[_0x1382c7(0x403)]();let _0x17a312=new Date()['getTime'](),_0x4d549b=this[_0x1382c7(0x2f6)]?Math['max'](this[_0x1382c7(0x2f6)]-_0x17a312,0x0):this[_0x1382c7(0x101)]();return _0x40756f[_0x1382c7(0x3f9)](_0x4d549b),_0x40756f;}throw _0x35ec44[_0x1382c7(0x2d2)];}catch(_0x5161ec){return this[_0x1382c7(0x320)][_0x1382c7(0x2d2)](_0x5161ec),this[_0x1382c7(0x3d2)](!0x1);}}[_0x528acf(0x2e0)](_0x11662f){const _0xee4d51=_0x528acf;if(_0x11662f[_0xee4d51(0x239)]<=this[_0xee4d51(0x181)]())return this;throw Error(_0xee4d51(0x3fb));}[_0x528acf(0x3f8)](){const _0x190bbc=_0x528acf;throw Error(_0x190bbc(0x18e));}[_0x528acf(0x2bc)](){return this;}['toggleOffline'](){const _0x477d06=_0x528acf;return this['_clearScheduledTask'](),this[_0x477d06(0x1d6)][_0x477d06(0x33d)](M,this[_0x477d06(0x179)],this[_0x477d06(0x191)],null,this[_0x477d06(0x37f)],this[_0x477d06(0x34f)]);}[_0x528acf(0x112)](){return this;}[_0x528acf(0x3f9)](_0x3bee0f){const _0x99cdd9=_0x528acf;let _0x3b8f59=_0x3bee0f??this[_0x99cdd9(0x101)]();this[_0x99cdd9(0x2f6)]=new Date()[_0x99cdd9(0x1ec)]()+_0x3b8f59,this['_sendingTimer']=setTimeout(()=>{const _0xebdfaa=_0x99cdd9;this[_0xebdfaa(0x403)]();let _0x2b2e23=null;switch(this['type']){case t[_0xebdfaa(0x274)][_0xebdfaa(0x2df)]:_0x2b2e23=w(this['_pendingMutations'],this[_0xebdfaa(0x179)],this['_univerInstanceService'],this[_0xebdfaa(0x423)],this[_0xebdfaa(0x2ae)]);break;case t[_0xebdfaa(0x274)][_0xebdfaa(0x214)]:_0x2b2e23=this[_0xebdfaa(0x37f)][_0xebdfaa(0x1f6)](_0x2f6bab=>_0x2f6bab['id']===n[_0xebdfaa(0x1cd)]['id'])?Oe(this[_0xebdfaa(0x37f)],this['unitID'],this[_0xebdfaa(0x416)],this[_0xebdfaa(0x423)],this['_userManagerService']):w(this[_0xebdfaa(0x37f)],this[_0xebdfaa(0x179)],this[_0xebdfaa(0x416)],this[_0xebdfaa(0x423)],this['_userManagerService']);break;case t[_0xebdfaa(0x274)][_0xebdfaa(0x111)]:_0x2b2e23=De(this[_0xebdfaa(0x37f)],this[_0xebdfaa(0x179)],this[_0xebdfaa(0x416)],this[_0xebdfaa(0x423)],this[_0xebdfaa(0x2ae)]);break;case t[_0xebdfaa(0x274)][_0xebdfaa(0x342)]:_0x2b2e23=Ee(this[_0xebdfaa(0x37f)],this[_0xebdfaa(0x179)],this[_0xebdfaa(0x416)],this[_0xebdfaa(0x423)],this[_0xebdfaa(0x2ae)]);break;case t['UniverInstanceType'][_0xebdfaa(0x1eb)]:_0x2b2e23=w(this[_0xebdfaa(0x37f)],this[_0xebdfaa(0x179)],this['_univerInstanceService'],this[_0xebdfaa(0x423)],this[_0xebdfaa(0x2ae)]);break;case t[_0xebdfaa(0x274)][_0xebdfaa(0x15a)]:_0x2b2e23=w(this[_0xebdfaa(0x37f)],this[_0xebdfaa(0x179)],this['_univerInstanceService'],this['_revisionService'],this[_0xebdfaa(0x2ae)]);break;default:throw Error(_0xebdfaa(0x15f)+this[_0xebdfaa(0x191)]+_0xebdfaa(0x119));}let {changeset:_0x59fff6,pendingMutations:_0x269cab}=_0x2b2e23;this[_0xebdfaa(0x34f)][_0xebdfaa(0x24a)](_0x59fff6);let _0x8a8076=_0x269cab[_0xebdfaa(0x347)]?this[_0xebdfaa(0x1d6)][_0xebdfaa(0x33d)](A,this[_0xebdfaa(0x179)],this['type'],_0x59fff6,_0x269cab,this[_0xebdfaa(0x34f)],void 0x0):this[_0xebdfaa(0x1d6)][_0xebdfaa(0x33d)](k,this[_0xebdfaa(0x179)],this['type'],_0x59fff6,this[_0xebdfaa(0x34f)]);_0x8a8076['_updateLocalCache'](),this['_handler'][_0xebdfaa(0x379)](this,_0x8a8076);},_0x3b8f59);}[_0x528acf(0x101)](){const _0x27b14c=_0x528acf;let _0x1c75b3=this[_0x27b14c(0xfa)][_0x27b14c(0x25f)](m);return(_0x1c75b3==null?void 0x0:_0x1c75b3[_0x27b14c(0x3f6)])??0x7d0;}[_0x528acf(0x2a4)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x528acf(0x403)](){const _0x3b85d7=_0x528acf;this[_0x3b85d7(0x395)]!=null&&(clearTimeout(this[_0x3b85d7(0x395)]),this[_0x3b85d7(0x395)]=null);}['_onConflict'](_0x4b7b24){const _0x9963c6=_0x528acf;return this['_clearScheduledTask'](),this[_0x9963c6(0x1d6)][_0x9963c6(0x33d)](j,this['unitID'],this[_0x9963c6(0x191)],null,this[_0x9963c6(0x37f)],this[_0x9963c6(0x34f)],_0x4b7b24);}};O=Le=y([v(0x4,(0x0,t[_0x528acf(0x17f)])(t['Injector'])),v(0x5,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x6,(0x0,t['Inject'])(t[_0x528acf(0x1a1)])),v(0x7,t[_0x528acf(0x30e)]),v(0x8,t[_0x528acf(0x14e)]),v(0x9,t['IConfigService']),v(0xa,e[_0x528acf(0x27c)]),v(0xb,t[_0x528acf(0x3a7)]),v(0xc,t[_0x528acf(0x1fd)]),v(0xd,(0x0,t[_0x528acf(0x3ad)])(x))],O);let k=Re=class extends E{constructor(_0x3b2b4a,_0x23dacc,_0x598d76,_0x399965,_0x118d0d,_0xe2bfe5,_0xd86ed2,_0x536eab,_0x1f8c66,_0x53efc0,_0x8cb309){const _0x1fd1e3=_0x528acf;super(_0x3b2b4a,_0x23dacc,_0x598d76,[],_0x399965,_0xd86ed2,_0x53efc0,_0xe2bfe5,_0x8cb309),this[_0x1fd1e3(0x1d6)]=_0x118d0d,this[_0x1fd1e3(0x320)]=_0x536eab,this['_transformService']=_0x1f8c66,g(this,_0x1fd1e3(0x1e4),_0x1fd1e3(0x3d9)),g(this,'_resendTimeout',0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,_0x1fd1e3(0x13e),void 0x0),g(this,_0x1fd1e3(0x182),void 0x0);}[_0x528acf(0x327)](_0x4ee19b){const _0x5b8065=_0x528acf;this['_clearScheduledTask']();let _0x33b138=this['_injector'][_0x5b8065(0x33d)](A,this['unitID'],this[_0x5b8065(0x191)],this[_0x5b8065(0x1f2)],[_0x4ee19b],this[_0x5b8065(0x34f)],this[_0x5b8065(0x13e)]);return _0x33b138[_0x5b8065(0x1a0)](),_0x33b138;}['onRemoteChangeset'](_0x2aa797){const _0x196910=_0x528acf;if(this[_0x196910(0x23d)](_0x2aa797))return this[_0x196910(0x403)](),this[_0x196910(0x1d6)][_0x196910(0x33d)](N,this[_0x196910(0x179)],this[_0x196910(0x191)],this['_awaitingChangeset'],[],null,[_0x2aa797],this['_handler']);try{let _0x473bdd=this['_transformService'][_0x196910(0x10d)]([_0x2aa797],[this[_0x196910(0x1f2)]],!0x1);if((0x0,e[_0x196910(0x40a)])(_0x473bdd)){let {c1Prime:_0x5d32ff,c2Prime:_0x84ef68}=_0x473bdd;this[_0x196910(0x2ce)](_0x5d32ff[0x0]),_0x84ef68[0x0][_0x196910(0x306)]=this[_0x196910(0x181)](),this[_0x196910(0x403)]();let _0x2be3a4=this['_injector']['createInstance'](Re,this[_0x196910(0x179)],this[_0x196910(0x191)],_0x84ef68[0x0],this[_0x196910(0x34f)]);return _0x2be3a4[_0x196910(0x1a0)](),_0x2be3a4;}throw _0x473bdd['error'];}catch(_0x3daaec){return this['_logService'][_0x196910(0x2d2)](_0x3daaec),this[_0x196910(0x3d2)](!0x1);}}[_0x528acf(0x2e0)](_0x47aeab){const _0x1438c6=_0x528acf;this[_0x1438c6(0x403)]();let _0x29e265=this[_0x1438c6(0x423)][_0x1438c6(0x1b2)](this[_0x1438c6(0x179)]);if(_0x47aeab['revision']<=_0x29e265)return this;if(this[_0x1438c6(0x23d)](_0x47aeab))return this[_0x1438c6(0x1d6)][_0x1438c6(0x33d)](N,this[_0x1438c6(0x179)],this['type'],this[_0x1438c6(0x1f2)],[],_0x47aeab[_0x1438c6(0x239)],[],this[_0x1438c6(0x34f)]);this[_0x1438c6(0x41b)]();let _0x40480f=this[_0x1438c6(0x1d6)][_0x1438c6(0x33d)](D,this[_0x1438c6(0x179)],this['type'],this['_handler']);return _0x40480f[_0x1438c6(0x1a0)](),_0x40480f;}[_0x528acf(0x3f8)](_0x248f9f){const _0x3502bb=_0x528acf;return this[_0x3502bb(0x3d2)](!!(_0x248f9f!=null&&_0x248f9f['isPermissionRej']));}['onRemoteRetry'](_0x1696a3){const _0x1554f1=_0x528acf;return this['_maxTotalRetryTimeout']>He?this[_0x1554f1(0x37a)]():(this['_resendTimer']=Ie(this[_0x1554f1(0x3c1)],{'timeout':this['_resendTimeout'],'reqId':_0x1696a3[_0x1554f1(0x17c)]}),this['_sender']=this[_0x1554f1(0x13e)][_0x1554f1(0x367)](({reqId:_0x5c74b8,timeout:_0x52114c})=>{const _0x149b5e=_0x1554f1;this[_0x149b5e(0x412)](_0x5c74b8,_0x52114c);}),this);}[_0x528acf(0x37a)](){const _0x36cebf=_0x528acf;return this[_0x36cebf(0x403)](),this[_0x36cebf(0x1d6)][_0x36cebf(0x33d)](M,this['unitID'],this[_0x36cebf(0x191)],this[_0x36cebf(0x1f2)],[],this[_0x36cebf(0x34f)]);}[_0x528acf(0x112)](){return this;}[_0x528acf(0x2a4)](){const _0x4e61de=_0x528acf;this['_handler'][_0x4e61de(0x24a)](this[_0x4e61de(0x1f2)]);}['_onConflict'](_0x4693fe){const _0x156d05=_0x528acf;return this[_0x156d05(0x403)](),this['_injector'][_0x156d05(0x33d)](j,this['unitID'],this['type'],this[_0x156d05(0x1f2)],[],this['_handler'],_0x4693fe);}[_0x528acf(0x412)](_0xb408e4,_0x237bec){const _0x4575a0=_0x528acf;var _0x38d28a;_0xb408e4===((_0x38d28a=this[_0x4575a0(0x1f2)])==null?void 0x0:_0x38d28a['reqId'])&&(this['resend'](),this[_0x4575a0(0x3c1)]=_0x237bec===0x0?0x3e8:Math[_0x4575a0(0x270)](_0x237bec*0x2,Ve),this[_0x4575a0(0x124)]+=this[_0x4575a0(0x3c1)]);}[_0x528acf(0x403)](){const _0x2216e3=_0x528acf;var _0x5b2bbc;(_0x5b2bbc=this[_0x2216e3(0x182)])==null||_0x5b2bbc[_0x2216e3(0x282)](),this['_resendTimeout']=0x0,this[_0x2216e3(0x124)]=0x0;}};k=Re=y([v(0x4,(0x0,t[_0x528acf(0x17f)])(t['Injector'])),v(0x5,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x6,t['ICommandService']),v(0x7,t[_0x528acf(0x30e)]),v(0x8,e[_0x528acf(0x27c)]),v(0x9,t[_0x528acf(0x1fd)]),v(0xa,(0x0,t[_0x528acf(0x3ad)])(x))],k);let A=ze=class extends E{constructor(_0x131c11,_0x1a7a17,_0x495180,_0x3a4264,_0x5450a4,_0x465ed8,_0x1e9046,_0x26a25b,_0x2a9b7b,_0x2253e4,_0x271084,_0x537b94,_0x641816){const _0x103a25=_0x528acf;super(_0x131c11,_0x1a7a17,_0x495180,_0x3a4264,_0x5450a4,_0x2a9b7b,_0x537b94,_0x26a25b,_0x641816),this[_0x103a25(0x1d6)]=_0x1e9046,this[_0x103a25(0x320)]=_0x2253e4,this[_0x103a25(0x414)]=_0x271084,this['localCacheService']=_0x641816,g(this,_0x103a25(0x1e4),_0x103a25(0x100)),g(this,_0x103a25(0x3c1),0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,_0x103a25(0x13e),void 0x0),g(this,_0x103a25(0x182),void 0x0),_0x465ed8&&(this[_0x103a25(0x13e)]=_0x465ed8,this[_0x103a25(0x182)]=this[_0x103a25(0x13e)][_0x103a25(0x367)](({reqId:_0x526e96,timeout:_0x2c5e1f})=>{this['_resendWithTimeout'](_0x526e96,_0x2c5e1f);}));}[_0x528acf(0x327)](_0x1e274e){const _0x23e1ea=_0x528acf;return this[_0x23e1ea(0x37f)]['push'](_0x1e274e),this;}[_0x528acf(0x211)](_0x63bc9f){const _0x57563c=_0x528acf;if(this[_0x57563c(0x23d)](_0x63bc9f))return this[_0x57563c(0x403)](),this[_0x57563c(0x1d6)][_0x57563c(0x33d)](N,this['unitID'],this['type'],this[_0x57563c(0x1f2)],this[_0x57563c(0x37f)],null,[_0x63bc9f],this['_handler']);try{let _0x5cfba2=this[_0x57563c(0x414)][_0x57563c(0x10d)]([_0x63bc9f],[this[_0x57563c(0x1f2)]],!0x1);if((0x0,e[_0x57563c(0x40a)])(_0x5cfba2)){let {c1Prime:_0x2181ea,c2Prime:_0x22ecf8}=_0x5cfba2,_0x2c8800=this[_0x57563c(0x414)][_0x57563c(0x2d4)](_0x2181ea[0x0],this[_0x57563c(0x37f)]);if((0x0,e[_0x57563c(0x18a)])(_0x2c8800)){let {c1Prime:_0x5549bd,m2Prime:_0x52bf1f}=_0x2c8800;return this[_0x57563c(0x2ce)](_0x5549bd),_0x22ecf8[0x0][_0x57563c(0x306)]=this[_0x57563c(0x181)](),this[_0x57563c(0x403)](),this[_0x57563c(0x1d6)][_0x57563c(0x33d)](ze,this['unitID'],this[_0x57563c(0x191)],_0x22ecf8[0x0],_0x52bf1f,this[_0x57563c(0x34f)],void 0x0);}throw _0x2c8800[_0x57563c(0x2d2)];}throw _0x5cfba2[_0x57563c(0x2d2)];}catch(_0x4eb764){return this[_0x57563c(0x320)][_0x57563c(0x2d2)](_0x4eb764),this[_0x57563c(0x3d2)](!0x1);}}['onRemoteAck'](_0x3419e0){const _0x3080f6=_0x528acf;this[_0x3080f6(0x403)]();let _0x30e319=this[_0x3080f6(0x181)]();if(_0x3419e0['revision']<=_0x30e319)return this;if(this[_0x3080f6(0x23d)](_0x3419e0))return this['_injector'][_0x3080f6(0x33d)](N,this[_0x3080f6(0x179)],this[_0x3080f6(0x191)],this[_0x3080f6(0x1f2)],this[_0x3080f6(0x37f)],_0x3419e0[_0x3080f6(0x239)],[],this['_handler']);this[_0x3080f6(0x41b)]();let _0x1b5211=this[_0x3080f6(0x1d6)]['createInstance'](O,this['unitID'],this['type'],this[_0x3080f6(0x37f)],this[_0x3080f6(0x34f)]);return _0x1b5211[_0x3080f6(0x3f9)](),_0x1b5211[_0x3080f6(0x1a0)](),_0x1b5211;}['onRemoteRej'](_0x2b16ab){const _0x469ce9=_0x528acf;return this[_0x469ce9(0x3d2)](!!(_0x2b16ab!=null&&_0x2b16ab[_0x469ce9(0x30b)]));}['onRemoteRetry'](_0x5dc763){const _0x4d9e85=_0x528acf;return this[_0x4d9e85(0x124)]>He?this[_0x4d9e85(0x37a)]():(this[_0x4d9e85(0x13e)]=Ie(this['_resendTimeout'],{'timeout':this[_0x4d9e85(0x3c1)],'reqId':_0x5dc763[_0x4d9e85(0x17c)]}),this[_0x4d9e85(0x182)]=this['_resendTimer']['subscribe'](({reqId:_0x24b137,timeout:_0x265510})=>{const _0x12611b=_0x4d9e85;this[_0x12611b(0x412)](_0x24b137,_0x265510);}),this);}[_0x528acf(0x37a)](){const _0x399044=_0x528acf;return this[_0x399044(0x403)](),this['_injector'][_0x399044(0x33d)](M,this[_0x399044(0x179)],this[_0x399044(0x191)],this[_0x399044(0x1f2)],this[_0x399044(0x37f)],this['_handler']);}[_0x528acf(0x112)](){return this;}[_0x528acf(0x2a4)](){const _0x4d1289=_0x528acf;this[_0x4d1289(0x34f)][_0x4d1289(0x24a)](this[_0x4d1289(0x1f2)]);}[_0x528acf(0x3d2)](_0x62f3ed){const _0x28fdd1=_0x528acf;return this[_0x28fdd1(0x403)](),this[_0x28fdd1(0x1d6)][_0x28fdd1(0x33d)](j,this[_0x28fdd1(0x179)],this[_0x28fdd1(0x191)],null,this[_0x28fdd1(0x37f)],this['_handler'],_0x62f3ed);}[_0x528acf(0x412)](_0x134499,_0x5efc84){const _0x1d132e=_0x528acf;var _0x13823a;_0x134499===((_0x13823a=this[_0x1d132e(0x1f2)])==null?void 0x0:_0x13823a[_0x1d132e(0x17c)])&&(this[_0x1d132e(0x2a4)](),this[_0x1d132e(0x3c1)]=_0x5efc84===0x0?0x3e8:Math[_0x1d132e(0x270)](_0x5efc84*0x2,Ve),this['_maxTotalRetryTimeout']+=this[_0x1d132e(0x3c1)]);}[_0x528acf(0x403)](){const _0x1b6860=_0x528acf;var _0x31c09;(_0x31c09=this[_0x1b6860(0x182)])==null||_0x31c09['unsubscribe'](),this[_0x1b6860(0x3c1)]=0x0,this[_0x1b6860(0x124)]=0x0;}};A=ze=y([v(0x6,(0x0,t['Inject'])(t[_0x528acf(0x19d)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x8,t[_0x528acf(0x14e)]),v(0x9,t['ILogService']),v(0xa,e['ITransformService']),v(0xb,t['IUndoRedoService']),v(0xc,(0x0,t[_0x528acf(0x3ad)])(x))],A);let j=class extends E{constructor(_0x511a09,_0x3b5d97,_0x215ee5,_0x3af35d,_0x3498db,_0x7f7e36=!0x1,_0x19392d,_0x8f3bc0,_0x3d1ea3,_0x1c1ae8,_0x441ba8,_0x27070f,_0x2fbb15){const _0xd2b78e=_0x528acf;super(_0x511a09,_0x3b5d97,_0x215ee5,_0x3af35d,_0x3498db,_0x8f3bc0,_0x3d1ea3,_0x1c1ae8,_0x2fbb15),this['_isPermissionRej']=_0x7f7e36,this[_0xd2b78e(0x31d)]=_0x19392d,this[_0xd2b78e(0x20e)]=_0x441ba8,this[_0xd2b78e(0x102)]=_0x27070f,this[_0xd2b78e(0x322)]=_0x2fbb15,g(this,_0xd2b78e(0x1e4),_0xd2b78e(0x162)),this['_showConflictNotification'](),this[_0xd2b78e(0x252)](),this[_0xd2b78e(0x26e)]();}[_0x528acf(0x327)](){return this;}[_0x528acf(0x211)](){return this;}[_0x528acf(0x2e0)](){return this;}[_0x528acf(0x3f8)](){return this;}[_0x528acf(0x2bc)](){return this;}['toggleOffline'](){return this;}[_0x528acf(0x112)](){return this;}[_0x528acf(0x2a4)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x528acf(0x252)](){const _0x4362d9=_0x528acf;var _0x3f9e29,_0x37dfc6,_0x3c4e4b;(_0x3f9e29=this['_localCacheService'])==null||(_0x37dfc6=_0x3f9e29[_0x4362d9(0x34b)])==null||(_0x37dfc6=_0x37dfc6['call'](_0x3f9e29,this[_0x4362d9(0x179)],_0x4362d9(0x162)))==null||_0x37dfc6[_0x4362d9(0x3ed)](()=>void 0x0),(_0x3c4e4b=this[_0x4362d9(0x31e)])==null||_0x3c4e4b[_0x4362d9(0x227)](this[_0x4362d9(0x179)],this[_0x4362d9(0x191)],null,[]);}[_0x528acf(0x34c)](){const _0x2a0626=_0x528acf;this[_0x2a0626(0x30d)]?this[_0x2a0626(0x102)][_0x2a0626(0x237)]({'id':_0x2a0626(0x147)}):this[_0x2a0626(0x102)][_0x2a0626(0x237)]({'id':'CONFLICT'});}[_0x528acf(0x26e)](){const _0x5bd1f=_0x528acf;this[_0x5bd1f(0x31d)]['updatePermissionPoint'](new r[(_0x5bd1f(0x3bc))](this[_0x5bd1f(0x179)])['id'],!0x1);}};j=y([v(0x6,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x352)])),v(0x7,t[_0x528acf(0x14e)]),v(0x8,t[_0x528acf(0x1fd)]),v(0x9,(0x0,t['Inject'])(e[_0x528acf(0x2b8)])),v(0xa,(0x0,t['Inject'])(t[_0x528acf(0x199)])),v(0xb,(0x0,t[_0x528acf(0x17f)])(_)),v(0xc,(0x0,t['Optional'])(x))],j);let M=class extends E{constructor(_0xcc0f4,_0x30fffe,_0x1fa270,_0x5e2744,_0x2e96ec,_0x215094,_0x241d93,_0xccbfac,_0x163da9,_0x24e4e6){const _0x8b021c=_0x528acf;super(_0xcc0f4,_0x30fffe,_0x1fa270,_0x5e2744,_0x2e96ec,_0xccbfac,_0x163da9,_0x241d93,_0x24e4e6),this[_0x8b021c(0x1d6)]=_0x215094,g(this,_0x8b021c(0x1e4),'offline');}['appendMutation'](_0x5d016d){const _0x5efdc4=_0x528acf;return this[_0x5efdc4(0x37f)][_0x5efdc4(0x19e)](_0x5d016d),this[_0x5efdc4(0x1a0)](),this;}[_0x528acf(0x211)](_0x329561){const _0x4a7062=_0x528acf;throw Error(_0x4a7062(0x217));}[_0x528acf(0x2e0)](){const _0x2e9d93=_0x528acf;throw Error(_0x2e9d93(0x1ee));}[_0x528acf(0x3f8)](){const _0x20c931=_0x528acf;throw Error(_0x20c931(0x2dd));}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x528acf(0x112)](){const _0x5187fd=_0x528acf;let {_injector:_0x2fe556,_pendingMutations:_0x31d5e1,_awaitingChangeset:_0x325ca5,unitID:_0x186132,_handler:_0x866c5b,type:_0x207062}=this,_0x15fca6=Ue(_0x2fe556,_0x186132,_0x207062,_0x325ca5,_0x31d5e1,_0x866c5b);return _0x15fca6 instanceof O?_0x15fca6['_schedule']():(_0x15fca6 instanceof A||_0x15fca6 instanceof k)&&_0x15fca6[_0x5187fd(0x2a4)](),_0x15fca6;}[_0x528acf(0x2a4)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};M=y([v(0x5,(0x0,t['Inject'])(t[_0x528acf(0x19d)])),v(0x6,(0x0,t['Inject'])(e[_0x528acf(0x2b8)])),v(0x7,t['ICommandService']),v(0x8,t['IUndoRedoService']),v(0x9,(0x0,t['Optional'])(x))],M);let N=class extends E{constructor(_0x4b2a38,_0x4ac808,_0x1dd280,_0x3ac3d4,_0x4a3ddb,_0x581df2,_0x33b35c,_0x1c7398,_0x402f25,_0x2a2c3f,_0x2ba46d,_0x3e069e,_0x53e151,_0x2f4a6f){const _0x4b1399=_0x528acf;super(_0x4b2a38,_0x4ac808,_0x1dd280,_0x3ac3d4,_0x33b35c,_0x2ba46d,_0x3e069e,_0x402f25,_0x2f4a6f),this['_acknowledgedAwaitingRevision']=_0x4a3ddb,this[_0x4b1399(0x357)]=_0x581df2,this[_0x4b1399(0x1d6)]=_0x1c7398,this[_0x4b1399(0x320)]=_0x2a2c3f,this[_0x4b1399(0x414)]=_0x53e151,this[_0x4b1399(0x322)]=_0x2f4a6f,g(this,_0x4b1399(0x1e4),_0x4b1399(0x1a4));}[_0x528acf(0x397)](_0x3bbefd){const _0x22ddaf=_0x528acf;try{if(this[_0x22ddaf(0x22a)](_0x3bbefd)['missingChangesets'])throw Error(_0x22ddaf(0x424));if(this[_0x22ddaf(0x22a)]([...this[_0x22ddaf(0x357)]][_0x22ddaf(0x3a9)]((_0x3a6c13,_0x4d4103)=>_0x3a6c13[_0x22ddaf(0x239)]-_0x4d4103[_0x22ddaf(0x239)]))[_0x22ddaf(0x21b)])return this['_queuedRemoteChangesets']=[],this['_updateLocalCache'](),this[_0x22ddaf(0x34f)][_0x22ddaf(0x321)]({'from':this[_0x22ddaf(0x181)](),'to':0x0}),this;let _0x40bd47=this['_awaitingChangeset'],_0x1e41f8=this[_0x22ddaf(0x37f)],_0x1d07d9;if(_0x40bd47&&_0x1e41f8['length']!==0x0)_0x1d07d9=this['_injector'][_0x22ddaf(0x33d)](A,this[_0x22ddaf(0x179)],this[_0x22ddaf(0x191)],_0x40bd47,_0x1e41f8,this[_0x22ddaf(0x34f)],void 0x0);else{if(_0x40bd47&&_0x1e41f8[_0x22ddaf(0x347)]===0x0)_0x40bd47[_0x22ddaf(0x306)]=this[_0x22ddaf(0x181)](),_0x1d07d9=this[_0x22ddaf(0x1d6)][_0x22ddaf(0x33d)](k,this['unitID'],this[_0x22ddaf(0x191)],_0x40bd47,this['_handler']);else{if(_0x1e41f8[_0x22ddaf(0x347)]!==0x0){let _0x584eff=this[_0x22ddaf(0x1d6)][_0x22ddaf(0x33d)](O,this[_0x22ddaf(0x179)],this[_0x22ddaf(0x191)],_0x1e41f8,this[_0x22ddaf(0x34f)]);_0x584eff[_0x22ddaf(0x3f9)](),_0x1d07d9=_0x584eff;}else _0x1d07d9=this['_injector'][_0x22ddaf(0x33d)](D,this['unitID'],this[_0x22ddaf(0x191)],this['_handler']);}}return _0x1d07d9[_0x22ddaf(0x1a0)](),_0x1d07d9;}catch(_0x378d75){return this['_logService'][_0x22ddaf(0x2d2)](_0x22ddaf(0x169),'failed\x20to\x20apply\x20missed\x20changesets!',_0x378d75),this[_0x22ddaf(0x1d6)][_0x22ddaf(0x33d)](j,this[_0x22ddaf(0x179)],this['type'],this['_awaitingChangeset'],this[_0x22ddaf(0x37f)],this[_0x22ddaf(0x34f)],!0x1);}}[_0x528acf(0x22a)](_0x20699c){const _0x477acb=_0x528acf;this[_0x477acb(0x1c6)]();for(let _0x140729=0x0;_0x140729<_0x20699c[_0x477acb(0x347)];_0x140729++){let _0x28ac65=_0x20699c[_0x140729],_0xe8f6f=this[_0x477acb(0x181)]();if(!(_0x28ac65['revision']<=_0xe8f6f)){if(_0x28ac65[_0x477acb(0x239)]>_0xe8f6f+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x28ac65)){this[_0x477acb(0x231)]();continue;}this[_0x477acb(0x407)](_0x28ac65),this[_0x477acb(0x1c6)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x455624){const _0x2c8d66=_0x528acf;let _0x2336df=_0x455624,_0xd9712c=this[_0x2c8d66(0x1f2)];if(_0xd9712c){let _0x4179fd=this[_0x2c8d66(0x414)][_0x2c8d66(0x10d)]([_0x455624],[_0xd9712c],!0x1);if(!(0x0,e[_0x2c8d66(0x40a)])(_0x4179fd))throw _0x4179fd['error'];_0x2336df=_0x4179fd[_0x2c8d66(0x31b)][0x0],_0xd9712c=_0x4179fd[_0x2c8d66(0x258)][0x0];}let _0x3b9db5=this[_0x2c8d66(0x37f)];if(_0x3b9db5[_0x2c8d66(0x347)]){let _0x31fca3=this[_0x2c8d66(0x414)][_0x2c8d66(0x2d4)](_0x2336df,_0x3b9db5);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x31fca3))throw _0x31fca3[_0x2c8d66(0x2d2)];_0x2336df=_0x31fca3['c1Prime'],_0x3b9db5=_0x31fca3[_0x2c8d66(0x3a6)];}this['_executeRemoteChangeset'](_0x2336df),_0xd9712c&&(_0xd9712c[_0x2c8d66(0x306)]=this['_getCurrentRevision']()),this['_awaitingChangeset']=_0xd9712c,this[_0x2c8d66(0x37f)]=_0x3b9db5;}[_0x528acf(0x1c6)](){const _0x24a05d=_0x528acf;if(!this[_0x24a05d(0x1f2)]||this[_0x24a05d(0x2de)]==null)return;let _0x131c4e=this[_0x24a05d(0x181)]();if(this[_0x24a05d(0x2de)]<=_0x131c4e)throw Error(_0x24a05d(0x370)+this[_0x24a05d(0x2de)]+'.');this[_0x24a05d(0x2de)]===_0x131c4e+0x1&&this['_acknowledgeAwaiting']();}[_0x528acf(0x231)](){const _0x2a555e=_0x528acf;this[_0x2a555e(0x41b)](),this[_0x2a555e(0x1f2)]=null,this[_0x2a555e(0x2de)]=null;}[_0x528acf(0x3b7)](_0x452a63){const _0x2c2195=_0x528acf;let _0x2c8db4=this['_awaitingChangeset'];return!_0x2c8db4||!_0x2c8db4[_0x2c2195(0x2c9)]||_0x2c8db4[_0x2c2195(0x17c)]===null||_0x2c8db4[_0x2c2195(0x17c)]===void 0x0?!0x1:_0x452a63['unitID']===_0x2c8db4['unitID']&&_0x452a63[_0x2c2195(0x2c9)]===_0x2c8db4[_0x2c2195(0x2c9)]&&_0x452a63[_0x2c2195(0x17c)]===_0x2c8db4['reqId'];}[_0x528acf(0x2a4)](){const _0x41328b=_0x528acf;throw Error(_0x41328b(0x3c6));}[_0x528acf(0x327)](_0x17c9e3){const _0x26f902=_0x528acf;return this[_0x26f902(0x37f)][_0x26f902(0x19e)](_0x17c9e3),this;}['onRemoteChangeset'](_0x58e257){const _0x28b911=_0x528acf;return this[_0x28b911(0x357)]['push'](_0x58e257),this;}['onRemoteAck'](_0x3484ee){const _0x4c5b48=_0x528acf;if(this[_0x4c5b48(0x1f2)]){let _0x26ad82=this['_getCurrentRevision']();return _0x3484ee['revision']<=_0x26ad82||(_0x26ad82+0x1===_0x3484ee[_0x4c5b48(0x239)]?(this[_0x4c5b48(0x41b)](),this[_0x4c5b48(0x1f2)]=null,this[_0x4c5b48(0x2de)]=null):this[_0x4c5b48(0x2de)]=_0x3484ee['revision']),this;}if(_0x3484ee[_0x4c5b48(0x239)]<=this[_0x4c5b48(0x181)]())return this;throw Error(_0x4c5b48(0x3bf));}[_0x528acf(0x3f8)](_0x52c45a){const _0x2ce7ed=_0x528acf;return this[_0x2ce7ed(0x3d2)](!!(_0x52c45a!=null&&_0x52c45a[_0x2ce7ed(0x30b)]));}['onRemoteRetry'](){return this;}[_0x528acf(0x37a)](){const _0x56d628=_0x528acf;return this[_0x56d628(0x1d6)]['createInstance'](M,this[_0x56d628(0x179)],this[_0x56d628(0x191)],this[_0x56d628(0x1f2)],this['_pendingMutations'],this[_0x56d628(0x34f)]);}[_0x528acf(0x112)](){return this;}['_onConflict'](_0x46eb91){const _0x2eb1f2=_0x528acf;return this['_injector'][_0x2eb1f2(0x33d)](j,this['unitID'],this[_0x2eb1f2(0x191)],this[_0x2eb1f2(0x1f2)],this[_0x2eb1f2(0x37f)],this['_handler'],_0x46eb91);}};N=y([v(0x7,(0x0,t['Inject'])(t[_0x528acf(0x19d)])),v(0x8,(0x0,t['Inject'])(e[_0x528acf(0x2b8)])),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x1fd)]),v(0xc,e['ITransformService']),v(0xd,(0x0,t[_0x528acf(0x3ad)])(x))],N);function Ue(_0x34ec82,_0x21ef8b,_0x5aabe4,_0x2752df,_0x487b64,_0x216b4a){const _0x2e175a=_0x528acf;return _0x2752df&&_0x487b64[_0x2e175a(0x347)]?_0x34ec82[_0x2e175a(0x33d)](A,_0x21ef8b,_0x5aabe4,_0x2752df,_0x487b64,_0x216b4a,void 0x0):_0x2752df?_0x34ec82['createInstance'](k,_0x21ef8b,_0x5aabe4,_0x2752df,_0x216b4a):_0x487b64[_0x2e175a(0x347)]?_0x34ec82[_0x2e175a(0x33d)](O,_0x21ef8b,_0x5aabe4,_0x487b64,_0x216b4a):_0x34ec82['createInstance'](D,_0x21ef8b,_0x5aabe4,_0x216b4a);}let P=class extends t[_0x528acf(0x1b1)]{get[_0x528acf(0x266)](){return this['_state'];}constructor(_0x3952ca,_0x1fcb7b,_0x2ddfbe,_0x4efa62,_0x21d27d,_0x77d175,_0x569f26,_0x49473e,_0x1ade82,_0x1aa611,_0x201c91,_0x58d997,_0x140a8a,_0x170557){const _0x149e5c=_0x528acf;super(),this['unitID']=_0x3952ca,this[_0x149e5c(0x1ba)]=_0x1fcb7b,this[_0x149e5c(0x1af)]=_0x2ddfbe,this[_0x149e5c(0x1d6)]=_0x4efa62,this[_0x149e5c(0x2f9)]=_0x21d27d,this[_0x149e5c(0x20e)]=_0x77d175,this['_revisionService']=_0x569f26,this[_0x149e5c(0x1ed)]=_0x49473e,this[_0x149e5c(0x416)]=_0x1ade82,this[_0x149e5c(0x320)]=_0x1aa611,this[_0x149e5c(0x28d)]=_0x201c91,this['_permissionService']=_0x58d997,this['_singleActiveUnitService']=_0x140a8a,this[_0x149e5c(0x31e)]=_0x170557,g(this,_0x149e5c(0x22c),new i['BehaviorSubject'](null)),g(this,'state$',this[_0x149e5c(0x22c)][_0x149e5c(0x1db)]()),g(this,'_state',void 0x0),g(this,_0x149e5c(0x2f3),!0x1),g(this,'_changesetSessionId',''),g(this,'_changesetReqId',0x0),g(this,_0x149e5c(0x422),this['state$']['pipe']((0x0,i['map'])(_0x10c455=>_0x10c455?_0x10c455[_0x149e5c(0x1e4)]:'offline'),(0x0,i[_0x149e5c(0x368)])({'bufferSize':0x1,'refCount':!0x0}))),g(this,'_transitionLocked',!0x1),g(this,_0x149e5c(0x10c),[]);}async[_0x528acf(0x3c0)](){const _0x136595=_0x528acf;if(this[_0x136595(0x266)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x136595(0x250)]();}[_0x528acf(0x35f)](){const _0x187658=_0x528acf;return this[_0x187658(0x2f3)]=!0x0,(0x0,t[_0x187658(0x3dc)])(()=>{const _0xebed32=_0x187658;this[_0xebed32(0x2f3)]=!0x1,this[_0xebed32(0x23f)]();});}['onLocalMutation'](_0x4a8278){const _0x40c80c=_0x528acf;this[_0x40c80c(0x103)](_0x4a8278);}['_updateState'](_0x1f2201){const _0x39ceb0=_0x528acf;this[_0x39ceb0(0x203)]=_0x1f2201,this['_state$'][_0x39ceb0(0x307)](_0x1f2201);}async['_init'](){const _0xa376c7=_0x528acf;if(this[_0xa376c7(0x391)](await this[_0xa376c7(0x32e)]()),this['_singleActiveUnitService']){var _0x4beee8;(_0x4beee8=this['_singleActiveUnitService'])==null||_0x4beee8[_0xa376c7(0x230)](this[_0xa376c7(0x179)]),this[_0xa376c7(0x3a2)](this[_0xa376c7(0x389)][_0xa376c7(0x319)](this[_0xa376c7(0x179)])['subscribe'](_0x1f30cd=>{const _0x51b8e0=_0xa376c7;this['_logService'][_0x51b8e0(0x264)](_0x51b8e0(0x3cb),_0x51b8e0(0x232),_0x1f30cd),_0x1f30cd===0x1?(this[_0x51b8e0(0x1ed)]['emitEvent']({'id':_0x51b8e0(0x17a)}),this[_0x51b8e0(0x31d)][_0x51b8e0(0x3e8)](new r[(_0x51b8e0(0x3bc))](this['unitID'])['id'],!0x1),this[_0x51b8e0(0x31d)][_0x51b8e0(0x213)](!0x1)):(this['_permissionService']['updatePermissionPoint'](new r[(_0x51b8e0(0x3bc))](this['unitID'])['id'],!0x0),this[_0x51b8e0(0x31d)][_0x51b8e0(0x213)](!0x0));}));}let _0x4e208c=!0x1;return this['disposeWithMe'](this[_0xa376c7(0x1ba)][_0xa376c7(0x341)][_0xa376c7(0x367)](_0x5d5426=>{const _0x4ee27f=_0xa376c7;_0x5d5426===0x3?this[_0x4ee27f(0x21d)](_0x4e208c):_0x5d5426===0x2&&(_0x4e208c=!0x0,this[_0x4ee27f(0x3e4)]());})),this[_0xa376c7(0x3a2)](this['session']['event$'][_0xa376c7(0x367)](_0x1ae289=>{const _0x3a46e7=_0xa376c7;try{switch(_0x1ae289[_0x3a46e7(0x1f0)]){case e[_0x3a46e7(0x330)][_0x3a46e7(0x173)]:this[_0x3a46e7(0x228)]((0x0,e[_0x3a46e7(0x1f5)])(_0x1ae289[_0x3a46e7(0x325)]));break;case e[_0x3a46e7(0x330)][_0x3a46e7(0x41f)]:this[_0x3a46e7(0x2f4)](_0x1ae289[_0x3a46e7(0x325)]);break;case e[_0x3a46e7(0x330)][_0x3a46e7(0x26c)]:this['_onRemoteRejected']();break;case e['CollaborationEvent'][_0x3a46e7(0x2bf)]:this[_0x3a46e7(0x339)](_0x1ae289[_0x3a46e7(0x325)]);break;case e[_0x3a46e7(0x330)][_0x3a46e7(0x40f)]:this[_0x3a46e7(0x188)](_0x1ae289[_0x3a46e7(0x325)]['changesets'][_0x3a46e7(0x1f4)](_0x1c9e5d=>(0x0,e[_0x3a46e7(0x1f5)])(_0x1c9e5d)));break;case e[_0x3a46e7(0x330)][_0x3a46e7(0x426)]:this[_0x3a46e7(0x2ca)]({'isPermissionRej':!0x0});break;case e[_0x3a46e7(0x330)][_0x3a46e7(0x11f)]:break;}}catch(_0x46dbb7){throw console[_0x3a46e7(0x2d2)](_0x3a46e7(0x332),_0x46dbb7),_0x46dbb7;}})),this['_state'];}[_0x528acf(0x11e)](){const _0x114f74=_0x528acf;this[_0x114f74(0x222)]=!0x1;}[_0x528acf(0x2d5)](){const _0x977688=_0x528acf;if(this['_transitionLocked'])throw Error(_0x977688(0x1ae));this[_0x977688(0x222)]=!0x0;}['_onLocalMutation'](_0x40e90c){const _0x333104=_0x528acf;this['_lockTransition'](),this[_0x333104(0x391)](this['_state']['appendMutation'](_0x40e90c)),this['_unlockTransition']();}[_0x528acf(0x228)](_0x1db831){const _0x537de6=_0x528acf;if(!(_0x1db831[_0x537de6(0x239)]<=this[_0x537de6(0x423)][_0x537de6(0x1b2)](this[_0x537de6(0x179)]))){if(this[_0x537de6(0x2f3)]){this[_0x537de6(0x10c)][_0x537de6(0x19e)](_0x1db831);return;}this[_0x537de6(0x2d6)](_0x1db831);}}['_exhaustRemoteChangesetQueue'](){const _0x234b40=_0x528acf;this['_remoteChangesetQueue'][_0x234b40(0x2d9)](_0x37521c=>this['_applyRemoteChangeset'](_0x37521c)),this[_0x234b40(0x10c)]=[];}[_0x528acf(0x2d6)](_0x4bae0f){const _0xa91aa0=_0x528acf;let _0x4e22c3=this[_0xa91aa0(0x2f9)][_0xa91aa0(0x13c)][_0xa91aa0(0x3c2)](this[_0xa91aa0(0x2f9)][_0xa91aa0(0x13c)][_0xa91aa0(0x3ea)]()[_0xa91aa0(0x410)])(_0x4bae0f['mutations'],null)||_0x4bae0f[_0xa91aa0(0x15b)],_0x2d3c2c={..._0x4bae0f,'mutations':_0x4e22c3};this['_lockTransition'](),this['_updateState'](this[_0xa91aa0(0x203)][_0xa91aa0(0x211)](_0x2d3c2c)),this['_unlockTransition']();}[_0x528acf(0x2f4)](_0x261442){const _0x7be48e=_0x528acf;this[_0x7be48e(0x2d5)](),this['_updateState'](this[_0x7be48e(0x203)][_0x7be48e(0x2e0)](_0x261442)),this[_0x7be48e(0x11e)]();}[_0x528acf(0x2ca)](_0x807682){const _0x406f8d=_0x528acf;this[_0x406f8d(0x2d5)](),this[_0x406f8d(0x391)](this[_0x406f8d(0x203)]['onRemoteRej'](_0x807682)),this[_0x406f8d(0x11e)]();}[_0x528acf(0x339)](_0x3dae11){const _0x383625=_0x528acf;this[_0x383625(0x2d5)](),this[_0x383625(0x391)](this['_state'][_0x383625(0x2bc)](_0x3dae11)),this[_0x383625(0x11e)]();}[_0x528acf(0x188)](_0xfd8ea0){const _0x124da8=_0x528acf;if(!(this[_0x124da8(0x203)]instanceof N))throw TypeError(_0x124da8(0x2c8));let _0x16a537=_0xfd8ea0[_0x124da8(0x1f4)](_0x4b7ef1=>{const _0x21fd10=_0x124da8;let _0x310af3=this[_0x21fd10(0x2f9)]['interceptor']['fetchThroughInterceptors'](this[_0x21fd10(0x2f9)][_0x21fd10(0x13c)][_0x21fd10(0x3ea)]()['COMPRESS_MUTATION_APPLY'])(_0x4b7ef1[_0x21fd10(0x15b)],null)||_0x4b7ef1['mutations'];return{..._0x4b7ef1,'mutations':_0x310af3};});this[_0x124da8(0x2d5)](),this['_updateState'](this[_0x124da8(0x203)][_0x124da8(0x397)](_0x16a537)),this[_0x124da8(0x11e)]();}[_0x528acf(0x3e4)](){const _0x5d2b3b=_0x528acf;this['_lockTransition'](),this[_0x5d2b3b(0x391)](this['_state'][_0x5d2b3b(0x37a)]()),this[_0x5d2b3b(0x11e)]();}[_0x528acf(0x21d)](_0x12efa1=!0x1){const _0x3bb775=_0x528acf;this['_lockTransition'](),this[_0x3bb775(0x391)](this['_state'][_0x3bb775(0x112)]()),this[_0x3bb775(0x11e)]();let _0x240b6f=this[_0x3bb775(0x203)];_0x12efa1&&_0x240b6f instanceof D&&(this[_0x3bb775(0x2d5)](),this[_0x3bb775(0x391)](_0x240b6f['fetchMiss']()),this[_0x3bb775(0x11e)]());}async['_createInitialState'](){return new Promise(_0x362788=>{const _0x2424e5=_0x3420;this[_0x2424e5(0x1ba)][_0x2424e5(0x341)][_0x2424e5(0x3cf)]((0x0,i[_0x2424e5(0x17b)])(0x1))['subscribe'](async _0x51104c=>{const _0x34e19c=_0x2424e5;_0x362788(await this[_0x34e19c(0x1ea)](_0x51104c===0x3));});});}[_0x528acf(0x123)](){const _0x467626=_0x528acf;let _0x59d620=this[_0x467626(0x179)];return{'onStateChange':(_0x38dd48,_0x5cc45e)=>{const _0x1c5176=_0x467626;if(_0x38dd48!==this['_state'])throw Error(_0x1c5176(0x3a0)+_0x38dd48['status']+_0x1c5176(0x362)+_0x5cc45e['status']+'\x0aCurrent:\x20'+this[_0x1c5176(0x203)][_0x1c5176(0x1e4)]);this[_0x1c5176(0x391)](_0x5cc45e);},'onSendChangeset':_0x151393=>{const _0x176fe9=_0x467626;_0x151393[_0x176fe9(0x2c9)]||(_0x151393[_0x176fe9(0x2c9)]=this[_0x176fe9(0x223)],_0x151393[_0x176fe9(0x17c)]=++this['_changesetReqId']);let _0x5f17e6={'eventID':e[_0x176fe9(0x330)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x151393[_0x176fe9(0x179)],'unitType':this[_0x176fe9(0x1af)],'changeset':_0x151393,'memberID':this[_0x176fe9(0x1ba)][_0x176fe9(0x376)]()}};this[_0x176fe9(0x1ba)][_0x176fe9(0x2ef)](_0x5f17e6,this['unitID']);},'onMissingChangesets':({from:_0xce1e6b,to:_0x34e9ba})=>{const _0x41691c=_0x467626;this[_0x41691c(0x320)][_0x41691c(0x264)]('[CollaborationEntity]',_0x41691c(0x384)+_0xce1e6b+'\x20to\x20'+_0x34e9ba);let _0x4eafaa={'eventID':e[_0x41691c(0x330)][_0x41691c(0x29c)],'data':{'unitID':_0x59d620,'unitType':this[_0x41691c(0x1af)],'from':_0xce1e6b,'to':_0x34e9ba}};this[_0x41691c(0x1ba)][_0x41691c(0x2ef)](_0x4eafaa,this['unitID']);}};}async['_createInitialStateImpl'](_0x431df2){const _0x30e60d=_0x528acf;var _0x1d07d4;let _0x33ace6=await((_0x1d07d4=this['_localCacheService'])==null?void 0x0:_0x1d07d4[_0x30e60d(0x277)](this[_0x30e60d(0x179)])),_0x57d9d0=(_0x33ace6==null?void 0x0:_0x33ace6[_0x30e60d(0x15b)])??[],_0x5c4957=(_0x33ace6==null?void 0x0:_0x33ace6[_0x30e60d(0x27e)])??null,_0x22c06b=!!(_0x5c4957!=null&&_0x5c4957[_0x30e60d(0x2c9)])&&!!(_0x5c4957!=null&&_0x5c4957[_0x30e60d(0x17c)]);this[_0x30e60d(0x223)]=_0x22c06b?_0x5c4957['sid']:(0x0,e['uuidv4'])(),this[_0x30e60d(0x159)]=_0x22c06b?_0x5c4957['reqId']:0x0;let _0x6c1663=this[_0x30e60d(0x179)];try{this['_replayCachedMutations'](_0x5c4957,_0x57d9d0);}catch(_0x2b384b){this['_logService'][_0x30e60d(0x2d2)](_0x2b384b);}let _0x34eba8=this[_0x30e60d(0x123)]();if(_0x431df2){let _0x35bd2d=Ue(this[_0x30e60d(0x1d6)],_0x6c1663,this[_0x30e60d(0x1af)],_0x5c4957,_0x57d9d0,_0x34eba8);return _0x35bd2d instanceof O?_0x35bd2d[_0x30e60d(0x3f9)]():(_0x35bd2d instanceof A||_0x35bd2d instanceof k)&&_0x35bd2d[_0x30e60d(0x2a4)](),_0x35bd2d;}return this[_0x30e60d(0x1d6)][_0x30e60d(0x33d)](M,_0x6c1663,this[_0x30e60d(0x1af)],_0x5c4957,_0x57d9d0,_0x34eba8);}[_0x528acf(0x14d)](_0x28eaec,_0x4f93d4){const _0xc62b26=_0x528acf;var _0x2f4322,_0x49db1d;let _0x660d16=this[_0xc62b26(0x2f9)][_0xc62b26(0x13c)][_0xc62b26(0x3c2)](this['_compressMutationService'][_0xc62b26(0x13c)][_0xc62b26(0x3ea)]()['COMPRESS_MUTATION_APPLY']);(_0x2f4322=_0x660d16((_0x28eaec==null?void 0x0:_0x28eaec[_0xc62b26(0x15b)])||[],null))==null||_0x2f4322[_0xc62b26(0x2d9)](_0x3fea36=>this[_0xc62b26(0x28d)][_0xc62b26(0x2cc)](_0x3fea36['id'],_0x3fea36[_0xc62b26(0x351)])),(_0x49db1d=_0x660d16(_0x4f93d4||[],null))==null||_0x49db1d['forEach'](_0x51f01e=>this['_commandService'][_0xc62b26(0x2cc)](_0x51f01e['id'],_0x51f01e[_0xc62b26(0x351)]));}};P=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x199)])),v(0x6,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x352)]),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t[_0x528acf(0x3ad)])(x))],P);let F=class extends P{constructor(_0x25d83b,_0x2307c3,_0x30e00a,_0x38e4c5,_0x3de6e4,_0x2e13e6,_0x5526e1,_0x2f88d8,_0x2d80af,_0x5b73dc,_0xa08b9d,_0x159c04,_0x5468e7,_0x13e01b,_0x416906){const _0x39ba0c=_0x528acf;super(_0x25d83b,_0x30e00a,_0x2307c3,_0x38e4c5,_0x3de6e4,_0x2e13e6,_0x5526e1,_0x2f88d8,_0x2d80af,_0x5b73dc,_0xa08b9d,_0x159c04,_0x13e01b,_0x416906),this[_0x39ba0c(0x179)]=_0x25d83b,this[_0x39ba0c(0x191)]=_0x2307c3,this[_0x39ba0c(0x346)]=_0x5468e7,g(this,_0x39ba0c(0x2dc),null);}[_0x528acf(0x288)](_0x570d32){const _0x2990f1=_0x528acf;this[_0x2990f1(0x2dc)]=_0x570d32;}[_0x528acf(0x1fb)](){const _0x218822=_0x528acf;this[_0x218822(0x2dc)]=null,super[_0x218822(0x1fb)]();}['_createHandler'](){const _0xbeb63d=_0x528acf;let _0x1def40=super[_0xbeb63d(0x123)]();return _0x1def40[_0xbeb63d(0x30f)]=_0x4d5d1a=>{const _0x275541=_0xbeb63d;var _0x37fba7,_0x49dd9f;return(_0x37fba7=this[_0x275541(0x2dc)])==null||(_0x49dd9f=_0x37fba7[_0x275541(0x30f)])==null?void 0x0:_0x49dd9f[_0x275541(0x1ca)](_0x37fba7,_0x4d5d1a);},_0x1def40[_0xbeb63d(0x2da)]=_0x356030=>{const _0x204db4=_0xbeb63d;var _0x3cc083,_0x18c79a;return(_0x3cc083=this[_0x204db4(0x2dc)])==null||(_0x18c79a=_0x3cc083[_0x204db4(0x2da)])==null?void 0x0:_0x18c79a[_0x204db4(0x1ca)](_0x3cc083,_0x356030);},_0x1def40['onTransformSelections']=_0x3f4e76=>{const _0x5db76c=_0xbeb63d;var _0x1ba8c9,_0x11b2ac;return(_0x1ba8c9=this['_handlerCallback'])==null||(_0x11b2ac=_0x1ba8c9[_0x5db76c(0x3f5)])==null?void 0x0:_0x11b2ac['call'](_0x1ba8c9,_0x3f4e76);},_0x1def40[_0xbeb63d(0x38f)]=_0x497cf1=>{const _0xd7426b=_0xbeb63d;var _0x3c1e15,_0x42610e;return(_0x3c1e15=this[_0xd7426b(0x2dc)])==null||(_0x42610e=_0x3c1e15[_0xd7426b(0x38f)])==null?void 0x0:_0x42610e[_0xd7426b(0x1ca)](_0x3c1e15,_0x497cf1);},_0x1def40[_0xbeb63d(0x401)]=_0x43b16f=>{const _0x335e65=_0xbeb63d;var _0x17cb08,_0x3043bb;return((_0x17cb08=this[_0x335e65(0x2dc)])==null||(_0x3043bb=_0x17cb08['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3043bb[_0x335e65(0x1ca)](_0x17cb08,_0x43b16f))??_0x43b16f;},_0x1def40[_0xbeb63d(0x289)]=_0x58f8b9=>{const _0xb34985=_0xbeb63d;var _0x1a26e5,_0x3dace8;return((_0x1a26e5=this['_handlerCallback'])==null||(_0x3dace8=_0x1a26e5[_0xb34985(0x289)])==null?void 0x0:_0x3dace8[_0xb34985(0x1ca)](_0x1a26e5,_0x58f8b9))??_0x58f8b9;},_0x1def40;}async[_0x528acf(0x250)](){const _0x536533=_0x528acf;let _0x299a02=await super[_0x536533(0x250)]();return this[_0x536533(0x3a2)](this['_docStateChangeManagerService'][_0x536533(0x40e)][_0x536533(0x367)](_0x1100d0=>{const _0x1d4327=_0x536533;if(_0x1100d0==null||_0x1100d0[_0x1d4327(0x236)]!==this['unitID'])return;let {commandId:_0x4216cf,redoState:_0x2766c6,unitId:_0x3bd604}=_0x1100d0,_0x1370c8={'id':_0x4216cf,'type':t[_0x1d4327(0x1b6)][_0x1d4327(0x3fa)],'params':{'unitId':_0x3bd604,'actions':_0x2766c6['actions'],'textRanges':null}};this[_0x1d4327(0x103)](_0x1370c8);})),this[_0x536533(0x3a2)](this[_0x536533(0x28d)]['onMutationExecutedForCollab']((_0x26a87b,_0x3ee58a)=>{const _0x15d79b=_0x536533;if(_0x26a87b['type']!==t['CommandType'][_0x15d79b(0x3fa)]||_0x3ee58a!=null&&_0x3ee58a['fromCollab']||_0x3ee58a!=null&&_0x3ee58a[_0x15d79b(0x24f)]||_0x26a87b['id']===n[_0x15d79b(0x1cd)]['id'])return;let _0x507edb=_0x26a87b[_0x15d79b(0x351)];if((_0x507edb==null?void 0x0:_0x507edb['unitId'])!==this['unitID'])return;let _0x365ead=_0x26a87b,_0x37babb=this[_0x15d79b(0x2f9)][_0x15d79b(0x13c)][_0x15d79b(0x3c2)](this[_0x15d79b(0x2f9)][_0x15d79b(0x13c)][_0x15d79b(0x3ea)]()['COMPRESS_MUTATION_SEND'])([_0x365ead],this['_univerInstanceService'])||[_0x365ead];this[_0x15d79b(0x103)](_0x37babb[0x0]);})),_0x299a02;}};F=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x4,(0x0,t['Inject'])(e[_0x528acf(0x3a1)])),v(0x5,(0x0,t['Inject'])(t[_0x528acf(0x199)])),v(0x6,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x352)]),v(0xc,(0x0,t['Inject'])(n[_0x528acf(0x2d0)])),v(0xd,(0x0,t['Optional'])(C)),v(0xe,(0x0,t['Optional'])(x))],F);let I=class extends P{constructor(_0x130bb5,_0x2a8aa4,_0x6baec3,_0x20f327,_0x250a3a,_0x399be3,_0x591cff,_0x2ce568,_0x5a1360,_0x3d00c8,_0x4e0390,_0x4762e5,_0x2a539d,_0x1a5001){const _0x391f25=_0x528acf;super(_0x130bb5,_0x6baec3,_0x2a8aa4,_0x20f327,_0x250a3a,_0x399be3,_0x591cff,_0x2ce568,_0x5a1360,_0x3d00c8,_0x4e0390,_0x4762e5,_0x2a539d,_0x1a5001),this[_0x391f25(0x179)]=_0x130bb5,this[_0x391f25(0x191)]=_0x2a8aa4;}async['_init'](){const _0x2307d6=_0x528acf;let _0x2d6556=await super['_init']();return this['disposeWithMe'](this[_0x2307d6(0x28d)]['onMutationExecutedForCollab']((_0x5d6d19,_0xc0fdf1)=>{const _0x27a80e=_0x2307d6;if(_0x5d6d19['type']!==t['CommandType'][_0x27a80e(0x3fa)]||_0xc0fdf1!=null&&_0xc0fdf1[_0x27a80e(0x118)]||_0xc0fdf1!=null&&_0xc0fdf1[_0x27a80e(0x24f)])return;let _0x13376b=_0x5d6d19[_0x27a80e(0x351)];if((_0x13376b==null?void 0x0:_0x13376b[_0x27a80e(0x236)])!==this[_0x27a80e(0x179)])return;let _0x1960d5=_0x5d6d19,_0xc6a622=this['_compressMutationService'][_0x27a80e(0x13c)][_0x27a80e(0x3c2)](this[_0x27a80e(0x2f9)][_0x27a80e(0x13c)][_0x27a80e(0x3ea)]()['COMPRESS_MUTATION_SEND'])([_0x1960d5],this['_univerInstanceService'])||[_0x1960d5];this['_onLocalMutation'](_0xc6a622[0x0]);})),_0x2d6556;}};I=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t['Injector'])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e['CompressMutationService'])),v(0x5,(0x0,t['Inject'])(t[_0x528acf(0x199)])),v(0x6,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t[_0x528acf(0x3a7)]),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x528acf(0x3ad)])(C)),v(0xd,(0x0,t[_0x528acf(0x3ad)])(x))],I);let L=class extends P{constructor(_0x322c64,_0x3fbb0b,_0x4f6119,_0x7bb873,_0x2d9ad4,_0x54cd66,_0x4954b6,_0x49d04f,_0x130991,_0xfd4f60,_0x451b6a,_0x42631e,_0x504ead,_0x1a3399,_0x57f426){const _0x40fd96=_0x528acf;super(_0x322c64,_0x4f6119,_0x3fbb0b,_0x7bb873,_0x2d9ad4,_0x54cd66,_0x4954b6,_0x130991,_0xfd4f60,_0x451b6a,_0x42631e,_0x504ead,_0x1a3399,_0x57f426),this[_0x40fd96(0x179)]=_0x322c64,this[_0x40fd96(0x191)]=_0x3fbb0b,this[_0x40fd96(0x326)]=_0x49d04f;}[_0x528acf(0x123)](){const _0x385b6d=_0x528acf;let _0x59adb7=super['_createHandler']();return _0x59adb7[_0x385b6d(0x3f5)]=_0x1da569=>this[_0x385b6d(0x326)][_0x385b6d(0x2f2)](_0x1da569),_0x59adb7;}async[_0x528acf(0x250)](){const _0xe93c1d=_0x528acf;let _0x286fa1=await super[_0xe93c1d(0x250)]();return this[_0xe93c1d(0x3a2)](this[_0xe93c1d(0x28d)]['onMutationExecutedForCollab']((_0x53b07a,_0x493eed)=>{const _0x28575f=_0xe93c1d;if(_0x53b07a[_0x28575f(0x191)]!==t[_0x28575f(0x1b6)][_0x28575f(0x3fa)]||_0x493eed!=null&&_0x493eed[_0x28575f(0x118)]||_0x493eed!=null&&_0x493eed[_0x28575f(0x24f)])return;let _0x59d1f4=_0x53b07a['params'];if((_0x59d1f4==null?void 0x0:_0x59d1f4[_0x28575f(0x236)])!==this[_0x28575f(0x179)])return;let _0x8c60d6=_0x53b07a,_0x1f1f13=this['_compressMutationService'][_0x28575f(0x13c)][_0x28575f(0x3c2)](this[_0x28575f(0x2f9)]['interceptor'][_0x28575f(0x3ea)]()['COMPRESS_MUTATION_SEND'])([_0x8c60d6],this['_univerInstanceService'])||[_0x8c60d6];this[_0x28575f(0x103)](_0x1f1f13[0x0]);})),_0x286fa1;}};L=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x3a1)])),v(0x5,(0x0,t[_0x528acf(0x17f)])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(S)),v(0x8,(0x0,t[_0x528acf(0x17f)])(_)),v(0x9,t['IUniverInstanceService']),v(0xa,t[_0x528acf(0x30e)]),v(0xb,t['ICommandService']),v(0xc,t['IPermissionService']),v(0xd,(0x0,t['Optional'])(C)),v(0xe,(0x0,t[_0x528acf(0x3ad)])(x))],L);let R=class extends P{constructor(_0x362a09,_0x184c97,_0x195356,_0x7952f,_0x23211b,_0x57a429,_0x20081f,_0x23f823,_0x105cc8,_0x1bc0be,_0x3879d5,_0x35ac41,_0x35e5bd,_0x2b4e48){const _0x5ee6f2=_0x528acf;super(_0x362a09,_0x195356,_0x184c97,_0x7952f,_0x23211b,_0x57a429,_0x20081f,_0x23f823,_0x105cc8,_0x1bc0be,_0x3879d5,_0x35ac41,_0x35e5bd,_0x2b4e48),this[_0x5ee6f2(0x179)]=_0x362a09,this[_0x5ee6f2(0x191)]=_0x184c97;}async[_0x528acf(0x250)](){const _0x5be641=_0x528acf;let _0x14f24b=await super[_0x5be641(0x250)]();return this[_0x5be641(0x3a2)](this[_0x5be641(0x28d)][_0x5be641(0x2c6)]((_0x32e669,_0x4e0380)=>{const _0x47036b=_0x5be641;if(_0x32e669[_0x47036b(0x191)]!==t[_0x47036b(0x1b6)][_0x47036b(0x3fa)]||_0x4e0380!=null&&_0x4e0380[_0x47036b(0x118)]||_0x4e0380!=null&&_0x4e0380[_0x47036b(0x24f)])return;let _0x32e63f=_0x32e669[_0x47036b(0x351)];if((_0x32e63f==null?void 0x0:_0x32e63f[_0x47036b(0x236)])!==this[_0x47036b(0x179)])return;let _0x22ea3c=_0x32e669,_0x2419b1=this[_0x47036b(0x2f9)][_0x47036b(0x13c)][_0x47036b(0x3c2)](this[_0x47036b(0x2f9)][_0x47036b(0x13c)]['getInterceptPoints']()[_0x47036b(0x3d4)])([_0x22ea3c],this[_0x47036b(0x416)])||[_0x22ea3c];this[_0x47036b(0x103)](_0x2419b1[0x0]);})),_0x14f24b;}};R=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x3a1)])),v(0x5,(0x0,t['Inject'])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e['RevisionService'])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x352)]),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t['Optional'])(x))],R);let z=class extends P{constructor(_0x1a1a61,_0x165e95,_0x10b660,_0x239c17,_0x3fd214,_0x8689e3,_0x257c5b,_0x26ced2,_0x5a38e5,_0x29273e,_0x2d504d,_0x171eb0,_0x1e8ca6,_0x39f1e5){const _0x59711d=_0x528acf;super(_0x1a1a61,_0x10b660,_0x165e95,_0x239c17,_0x3fd214,_0x8689e3,_0x257c5b,_0x26ced2,_0x5a38e5,_0x29273e,_0x2d504d,_0x171eb0,_0x1e8ca6,_0x39f1e5),this[_0x59711d(0x179)]=_0x1a1a61,this[_0x59711d(0x191)]=_0x165e95;}async[_0x528acf(0x250)](){const _0x555fde=_0x528acf;let _0x3b6ebe=await super[_0x555fde(0x250)]();return this[_0x555fde(0x3a2)](this['_commandService'][_0x555fde(0x2c6)]((_0x335519,_0x18e3a6)=>{const _0x12ba74=_0x555fde;if(_0x335519[_0x12ba74(0x191)]!==t['CommandType'][_0x12ba74(0x3fa)]||_0x18e3a6!=null&&_0x18e3a6[_0x12ba74(0x118)]||_0x18e3a6!=null&&_0x18e3a6[_0x12ba74(0x24f)])return;let _0x18e8e7=_0x335519['params'];if((_0x18e8e7==null?void 0x0:_0x18e8e7[_0x12ba74(0x236)])!==this[_0x12ba74(0x179)])return;let _0x135bff=_0x335519,_0x362066=this[_0x12ba74(0x2f9)][_0x12ba74(0x13c)][_0x12ba74(0x3c2)](this[_0x12ba74(0x2f9)][_0x12ba74(0x13c)][_0x12ba74(0x3ea)]()[_0x12ba74(0x3d4)])([_0x135bff],this['_univerInstanceService'])||[_0x135bff];this[_0x12ba74(0x103)](_0x362066[0x0]);})),_0x3b6ebe;}};z=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t['Injector'])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x3a1)])),v(0x5,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x199)])),v(0x6,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t[_0x528acf(0x3a7)]),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x352)]),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t[_0x528acf(0x3ad)])(x))],z);let B=class extends P{constructor(_0x256b99,_0x245ad0,_0x246452,_0xade3e2,_0x3e3407,_0x4196b1,_0x2f6e38,_0x56143f,_0x1ea9f0,_0x5cae05,_0x17d979,_0x4c554f,_0x42dd2e,_0x2139af){const _0x15b1c4=_0x528acf;super(_0x256b99,_0x246452,_0x245ad0,_0xade3e2,_0x3e3407,_0x4196b1,_0x2f6e38,_0x56143f,_0x1ea9f0,_0x5cae05,_0x17d979,_0x4c554f,_0x42dd2e,_0x2139af),this['unitID']=_0x256b99,this[_0x15b1c4(0x191)]=_0x245ad0;}async[_0x528acf(0x250)](){const _0x549537=_0x528acf;let _0x12739f=await super['_init']();return this['disposeWithMe'](this[_0x549537(0x28d)]['onMutationExecutedForCollab']((_0x431be0,_0x10dffd)=>{const _0x69cf78=_0x549537;if(_0x431be0[_0x69cf78(0x191)]!==t[_0x69cf78(0x1b6)][_0x69cf78(0x3fa)]||_0x10dffd!=null&&_0x10dffd['fromCollab']||_0x10dffd!=null&&_0x10dffd[_0x69cf78(0x24f)])return;let _0x151ac8=_0x431be0[_0x69cf78(0x351)];if((_0x151ac8==null?void 0x0:_0x151ac8[_0x69cf78(0x236)])!==this[_0x69cf78(0x179)])return;let _0x5287d1=_0x431be0,_0x543726=this['_compressMutationService'][_0x69cf78(0x13c)][_0x69cf78(0x3c2)](this[_0x69cf78(0x2f9)][_0x69cf78(0x13c)][_0x69cf78(0x3ea)]()['COMPRESS_MUTATION_SEND'])([_0x5287d1],this['_univerInstanceService'])||[_0x5287d1];this[_0x69cf78(0x103)](_0x543726[0x0]);})),_0x12739f;}};B=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x3a1)])),v(0x5,(0x0,t[_0x528acf(0x17f)])(t['LocaleService'])),v(0x6,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t[_0x528acf(0x3a7)]),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x352)]),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t['Optional'])(x))],B);const We=(0x0,t[_0x528acf(0x2ab)])(_0x528acf(0x14c));function Ge(_0x377a09){const _0x2ce592=_0x528acf;let _0x2b90b3=_0x377a09[_0x2ce592(0x325)],_0x36a782=JSON[_0x2ce592(0x1c7)](_0x2b90b3);switch(_0x36a782[_0x2ce592(0x138)]){case a[_0x2ce592(0x110)][_0x2ce592(0x2c5)]:case a[_0x2ce592(0x110)][_0x2ce592(0x28a)]:{let _0xb33be9=_0x36a782[_0x2ce592(0x2d7)];return{..._0x36a782,'data':_0xb33be9,'cmd':_0x36a782[_0x2ce592(0x138)]};}case a[_0x2ce592(0x110)][_0x2ce592(0x22f)]:{let _0xa8fdd3=_0x36a782[_0x2ce592(0x13d)];return{..._0x36a782,'data':_0xa8fdd3,'cmd':_0x36a782['cmd']};}case a['CombCmd'][_0x2ce592(0x398)]:{let _0x37b1e0=_0x36a782[_0x2ce592(0x385)];switch(_0x37b1e0[_0x2ce592(0x1f0)]){case e[_0x2ce592(0x330)][_0x2ce592(0x426)]:var _0xa58d3f;return{..._0x36a782,'data':{..._0x37b1e0,'data':(_0xa58d3f=_0x37b1e0[_0x2ce592(0x32a)])==null?void 0x0:_0xa58d3f['cs']},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)][_0x2ce592(0x41f)]:var _0x2419dd;return{..._0x36a782,'data':{..._0x37b1e0,'data':(_0x2419dd=_0x37b1e0[_0x2ce592(0x2e8)])==null?void 0x0:_0x2419dd['cs']},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)][_0x2ce592(0x173)]:var _0x3a8ae0;return{..._0x36a782,'data':{..._0x37b1e0,'data':(_0x3a8ae0=_0x37b1e0[_0x2ce592(0x359)])==null?void 0x0:_0x3a8ae0['cs']},'cmd':_0x36a782[_0x2ce592(0x138)]};case e['CollaborationEvent'][_0x2ce592(0x26c)]:var _0x2051ed;return{..._0x36a782,'data':{..._0x37b1e0,'data':(_0x2051ed=_0x37b1e0[_0x2ce592(0x3c7)])==null?void 0x0:_0x2051ed['cs']},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)]['CHANGESET_SHOULD_RETRY']:var _0x4a738c;return{..._0x36a782,'data':{..._0x37b1e0,'data':(_0x4a738c=_0x37b1e0['csShouldRetryEvent'])==null?void 0x0:_0x4a738c['cs']},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)][_0x2ce592(0x35b)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0['updateCursorEvent']},'cmd':_0x36a782['cmd']};case e[_0x2ce592(0x330)]['USERS_ENTER']:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x348)]},'cmd':_0x36a782['cmd']};case e[_0x2ce592(0x330)][_0x2ce592(0x131)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x275)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)][_0x2ce592(0x390)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x2c1)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e['CollaborationEvent'][_0x2ce592(0x1de)]:case e[_0x2ce592(0x330)]['LIVESHARE_OPERATION']:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x263)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e['CollaborationEvent'][_0x2ce592(0x3ee)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x2c1)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e['CollaborationEvent'][_0x2ce592(0x1d5)]:return{..._0x36a782,'data':_0x37b1e0,'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)]['COMMENT_UPDATE']:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x3e3)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)]['UPDATE_PERMISSION_OBJ']:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x3b6)]},'cmd':_0x36a782['cmd']};case e['CollaborationEvent'][_0x2ce592(0x2bd)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x116)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)][_0x2ce592(0x11f)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0['uniscriptRunEvent']},'cmd':_0x36a782['cmd']};default:return _0x36a782;}}default:return _0x36a782;}}function Ke(_0x57f6b0){const _0x9d90f1=_0x528acf;switch(_0x57f6b0['cmd']){case a[_0x9d90f1(0x110)]['HEARTBEAT']:case a[_0x9d90f1(0x110)][_0x9d90f1(0x28a)]:return JSON[_0x9d90f1(0x29e)]({'cmd':_0x57f6b0[_0x9d90f1(0x138)],'routeKey':_0x57f6b0[_0x9d90f1(0x16c)]});case a[_0x9d90f1(0x110)][_0x9d90f1(0x37e)]:{let _0x960dbc;switch(_0x57f6b0[_0x9d90f1(0x325)][_0x9d90f1(0x1f0)]){case e[_0x9d90f1(0x330)][_0x9d90f1(0x35b)]:_0x960dbc={'eventID':e[_0x9d90f1(0x330)][_0x9d90f1(0x35b)],'updateCursorEvent':_0x57f6b0[_0x9d90f1(0x325)]['data']};break;case e[_0x9d90f1(0x330)][_0x9d90f1(0x131)]:_0x960dbc={'eventID':e['CollaborationEvent'][_0x9d90f1(0x131)],'leaveEvent':_0x57f6b0[_0x9d90f1(0x325)][_0x9d90f1(0x325)]};break;case e[_0x9d90f1(0x330)][_0x9d90f1(0x1d0)]:_0x960dbc={'eventID':e[_0x9d90f1(0x330)][_0x9d90f1(0x1d0)],'joinEvent':_0x57f6b0['data'][_0x9d90f1(0x325)]};break;case e[_0x9d90f1(0x330)][_0x9d90f1(0x390)]:_0x960dbc={'eventID':e[_0x9d90f1(0x330)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x57f6b0[_0x9d90f1(0x325)][_0x9d90f1(0x325)]};break;case e['CollaborationEvent'][_0x9d90f1(0x350)]:_0x960dbc={'eventID':e[_0x9d90f1(0x330)][_0x9d90f1(0x350)],'liveShareOperation':_0x57f6b0[_0x9d90f1(0x325)][_0x9d90f1(0x325)]};break;case e[_0x9d90f1(0x330)]['LIVESHARE_TERMINATE']:_0x960dbc={'eventID':e[_0x9d90f1(0x330)][_0x9d90f1(0x3ee)],'liveShareTerminate':_0x57f6b0['data'][_0x9d90f1(0x325)]};break;case e[_0x9d90f1(0x330)][_0x9d90f1(0x36e)]:_0x960dbc={'eventID':e['CollaborationEvent'][_0x9d90f1(0x36e)],'liveShareRequestHost':_0x57f6b0[_0x9d90f1(0x325)][_0x9d90f1(0x325)]};break;case e[_0x9d90f1(0x330)][_0x9d90f1(0x1de)]:_0x960dbc={'eventID':e[_0x9d90f1(0x330)][_0x9d90f1(0x1de)]};break;default:_0x960dbc={'eventID':_0x57f6b0['data'][_0x9d90f1(0x1f0)]};}return JSON[_0x9d90f1(0x29e)]({'cmd':_0x57f6b0[_0x9d90f1(0x138)],'routeKey':_0x57f6b0[_0x9d90f1(0x16c)],'collaMsg':_0x960dbc});}case a[_0x9d90f1(0x110)]['JOIN']:return JSON[_0x9d90f1(0x29e)]({'cmd':_0x57f6b0[_0x9d90f1(0x138)],'routeKey':_0x57f6b0['routeKey'],'joinReq':_0x57f6b0['data']});case a[_0x9d90f1(0x110)][_0x9d90f1(0x427)]:return JSON[_0x9d90f1(0x29e)]({'cmd':_0x57f6b0['cmd'],'routeKey':_0x57f6b0[_0x9d90f1(0x16c)],'leaveReq':_0x57f6b0['data']});default:throw Error(_0x9d90f1(0x299));}}const qe=(0x0,t[_0x528acf(0x2ab)])('univer-pro.collaboration-client-socket-service');function Je(_0x425999,_0x786e8b,_0x137216){const _0x5f3377=_0x528acf;return _0x425999+'/'+_0x786e8b+_0x5f3377(0x187)+_0x137216+'/new_changes';}let Ye=class extends t[_0x528acf(0x23e)]{constructor(_0x4ab42d,_0x4a9909,_0x134b32,_0xc57d,_0x48750a){const _0x83dda1=_0x528acf;super(),this[_0x83dda1(0x1d6)]=_0x4ab42d,this['_httpService']=_0x4a9909,this[_0x83dda1(0xfa)]=_0x134b32,this[_0x83dda1(0x320)]=_0xc57d,this[_0x83dda1(0x2d1)]=_0x48750a;}['_doCreateSocket'](_0x1ca663){const _0x29027f=_0x528acf;let _0x1c3e30=this[_0x29027f(0x1d6)][_0x29027f(0x1b0)](l[_0x29027f(0x2b9)]);if(!_0x1c3e30)throw Error(_0x29027f(0x1fc));let _0x398044=_0x1c3e30[_0x29027f(0x241)](_0x1ca663);if(!_0x398044)throw Error(_0x29027f(0x10a));let _0x50e65e=new t[(_0x29027f(0x417))](),_0x452e03=new i[(_0x29027f(0x1bf))]();_0x50e65e[_0x29027f(0x3ac)](_0x398044[_0x29027f(0x374)]['subscribe'](_0x226624=>_0x452e03[_0x29027f(0x307)](_0x226624))),_0x50e65e[_0x29027f(0x3ac)]((0x0,t[_0x29027f(0x3dc)])(()=>_0x452e03[_0x29027f(0x13b)]()));let _0x4e029b=new i[(_0x29027f(0x1bf))]();_0x50e65e[_0x29027f(0x3ac)](_0x398044['error$'][_0x29027f(0x367)](_0x403069=>_0x4e029b['next'](_0x403069))),_0x50e65e['add']((0x0,t[_0x29027f(0x3dc)])(()=>_0x4e029b[_0x29027f(0x13b)]()));let _0x354cce=new i['Subject']();_0x50e65e[_0x29027f(0x3ac)](_0x398044[_0x29027f(0x38a)]['subscribe'](_0x509df4=>{const _0x4d203a=_0x29027f;let _0x413a76=Ge(_0x509df4);_0x354cce[_0x4d203a(0x307)](_0x413a76);})),_0x50e65e['add']((0x0,t[_0x29027f(0x3dc)])(()=>_0x354cce['complete']()));let _0x3cff5b,_0x3da9f4=()=>{const _0x445ec3=_0x29027f;_0x4e029b[_0x445ec3(0x307)](new Event('connection\x20error')),_0x452e03[_0x445ec3(0x307)](new Event(_0x445ec3(0x383))),_0x3cff5b['close']();};return _0x3cff5b={'memberID':'','close$':_0x452e03[_0x29027f(0x1db)](),'error$':_0x4e029b[_0x29027f(0x1db)](),'open$':_0x398044[_0x29027f(0x114)],'message$':_0x354cce[_0x29027f(0x1db)](),'send':_0x41f328=>{const _0x277aaf=_0x29027f;if(_0x41f328[_0x277aaf(0x138)]===a['CombCmd']['INGEST']){if(_0x41f328['data'][_0x277aaf(0x1f0)]===e[_0x277aaf(0x330)][_0x277aaf(0x1a7)]){this['_submitChangeset'](_0x3cff5b,_0x41f328[_0x277aaf(0x325)])[_0x277aaf(0x3ed)](_0x18604e=>{const _0x4ddb2f=_0x277aaf;this[_0x4ddb2f(0x320)][_0x4ddb2f(0x2d2)](_0x18604e),_0x3da9f4();});return;}if(_0x41f328['data']['eventID']===e[_0x277aaf(0x330)][_0x277aaf(0x29c)]){let _0x10d850=_0x41f328['data'];this['_fetchMissChangesets'](_0x10d850)[_0x277aaf(0x287)](_0x5634f2=>{const _0x4e53f3=_0x277aaf;_0x354cce[_0x4e53f3(0x307)]({'cmd':a[_0x4e53f3(0x110)][_0x4e53f3(0x398)],'code':a[_0x4e53f3(0x1a6)]['OK'],'routeKey':_0x10d850[_0x4e53f3(0x325)][_0x4e53f3(0x179)],'routeType':'','data':{'eventID':e[_0x4e53f3(0x330)][_0x4e53f3(0x40f)],'data':{'changesets':_0x5634f2}}});})[_0x277aaf(0x3ed)](_0x4ab925=>{this['_logService']['error'](_0x4ab925),_0x3da9f4();});return;}}_0x398044[_0x277aaf(0x2ef)](Ke(_0x41f328));},'close':()=>{const _0x3be1b3=_0x29027f;_0x398044['close'](),_0x50e65e[_0x3be1b3(0x1fb)]();}},_0x3cff5b;}async[_0x528acf(0x291)](_0x93bf4f,_0x4b2dc8){const _0x38bacf=_0x528acf;let {unitType:_0x32c393,unitID:_0x55f7d8,changeset:_0x40dde7}=_0x4b2dc8[_0x38bacf(0x325)],_0x163f70={'unitID':_0x55f7d8,'memberID':_0x93bf4f[_0x38bacf(0x2c4)],'type':_0x32c393,'changeset':(0x0,e['parseChangesetToProtocol'])(_0x40dde7)},_0x56e22d=this['_configService'][_0x38bacf(0x25f)](m),_0x5409fe=Je((_0x56e22d==null?void 0x0:_0x56e22d[_0x38bacf(0x165)])??'/universer-api/comb',_0x32c393,_0x55f7d8);try{await this[_0x38bacf(0x1ff)][_0x38bacf(0x24c)](_0x5409fe,{'body':_0x163f70});}catch(_0x1a95d8){throw this[_0x38bacf(0x320)]['error']('[CollaborationSession]',_0x38bacf(0x337)),_0x1a95d8;}}async[_0x528acf(0x2a2)](_0x39fac4){const _0x220871=_0x528acf;let {unitID:_0x1afffb,from:_0x421841,to:_0x30fe73,unitType:_0x2c75f7}=_0x39fac4[_0x220871(0x325)];return(await this[_0x220871(0x2d1)][_0x220871(0x27f)]({'metadata':void 0x0},{'unitID':_0x1afffb,'type':_0x2c75f7,'from':_0x421841,'to':_0x30fe73}))['changesets'][_0x220871(0x1f4)](_0x19977f=>((_0x19977f['mutations']===null||_0x19977f['mutations']===void 0x0)&&(_0x19977f['mutations']=[]),_0x19977f));}};Ye=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x1,(0x0,t[_0x528acf(0x17f)])(l[_0x528acf(0x3f0)])),v(0x2,t[_0x528acf(0x295)]),v(0x3,t['ILogService']),v(0x4,e[_0x528acf(0x14f)])],Ye);function _0x3420(_0x7940d2,_0x2e2edc){_0x7940d2=_0x7940d2-0xfa;const _0x28799a=_0x2879();let _0x3420ff=_0x28799a[_0x7940d2];return _0x3420ff;}const Xe=(0x0,t[_0x528acf(0x2ab)])(_0x528acf(0x37b));function Ze(_0x1a6dab={}){const _0x340612=_0x528acf;return _0x1a6dab['resolveUnit']?{'resolveUnit':_0x1a6dab[_0x340612(0x3da)]}:{'resolveUnit':_0x5f5745=>({'target':{'unitId':_0x5f5745['unitId'],'unitType':_0x5f5745[_0x340612(0x37d)]}})};}function Qe(_0xef96e4,_0x5e0fea,_0x54f55e){const _0x2a8c72=_0x528acf;let _0x50c7a1=_0x54f55e['target'][_0x2a8c72(0x243)];if(_0x50c7a1!=null&&_0x50c7a1[_0x2a8c72(0x247)]()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x54f55e[_0x2a8c72(0x245)][_0x2a8c72(0x236)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0xef96e4,'unitType':_0x5e0fea,'target':{'endpoint':_0x50c7a1,'unitId':_0x54f55e[_0x2a8c72(0x245)]['unitId'],'unitType':_0x54f55e[_0x2a8c72(0x245)]['unitType']??_0x5e0fea},'changeset':_0x54f55e[_0x2a8c72(0x2f0)]};}let V=class extends t['Disposable']{constructor(_0x51999a,_0x592f8f,_0x161624,_0x3227e8,_0x37ff5b,_0x5892e7,_0x3b7aa1){const _0x5e3999=_0x528acf;super(),this['_injector']=_0x51999a,this['_logService']=_0x592f8f,this['_configService']=_0x161624,this['_socketService']=_0x3227e8,this[_0x5e3999(0x102)]=_0x37ff5b,this[_0x5e3999(0x19a)]=_0x5892e7,this[_0x5e3999(0x1e5)]=_0x3b7aa1,g(this,_0x5e3999(0x3f3),new Map()),g(this,_0x5e3999(0x360),new Map()),g(this,_0x5e3999(0x178),new Map()),g(this,_0x5e3999(0x3e7),new Map()),g(this,_0x5e3999(0x36c),this['_getSocketChannel'](void 0x0)[_0x5e3999(0x36c)]['asObservable']()),g(this,_0x5e3999(0x20c),new i[(_0x5e3999(0x1ef))](0x0)),g(this,_0x5e3999(0x422),this[_0x5e3999(0x20c)][_0x5e3999(0x1db)]()),this[_0x5e3999(0x356)]();}['_listenToNetworkCondition'](){const _0x540721=_0x528acf;this[_0x540721(0x1e5)]&&this[_0x540721(0x3a2)](this['_networkConditionService'][_0x540721(0x248)][_0x540721(0x367)](_0x39abd9=>{const _0x86428a=_0x540721;_0x39abd9&&this[_0x86428a(0x40b)](),_0x39abd9||this['_socketChannels']['forEach'](_0x3c4de2=>this[_0x86428a(0x2ad)](_0x3c4de2));}));}['dispose'](){const _0x187724=_0x528acf;super[_0x187724(0x1fb)](),this['_socketChannels'][_0x187724(0x2d9)](_0x3c7df2=>{const _0x22a927=_0x187724;var _0x2300cc,_0x30be21;(_0x2300cc=_0x3c7df2[_0x22a927(0x3b9)])==null||_0x2300cc[_0x22a927(0x282)](),_0x3c7df2[_0x22a927(0x3b9)]=null,this['_clearRetryConnectingTimer'](_0x3c7df2),this['_clearTimeoutTimer'](_0x3c7df2),this[_0x22a927(0x1cb)](_0x3c7df2),(_0x30be21=_0x3c7df2[_0x22a927(0x36c)][_0x22a927(0x193)]())==null||_0x30be21[_0x22a927(0x11c)](),_0x3c7df2[_0x22a927(0x36c)][_0x22a927(0x13b)]();}),this[_0x187724(0x3e7)][_0x187724(0x3fc)](),this[_0x187724(0x3f3)][_0x187724(0x2d9)](_0x2c975e=>_0x2c975e['dispose']()),this[_0x187724(0x3f3)]['clear'](),this[_0x187724(0x178)][_0x187724(0x3fc)](),this['_status$']['complete']();}async[_0x528acf(0x1d1)](_0x34769c,_0x5c7ace){const _0x3ae143=_0x528acf;if(this[_0x3ae143(0x3f3)]['has'](_0x34769c))return this['_sessions'][_0x3ae143(0x1b0)](_0x34769c);let _0xa18974=this[_0x3ae143(0x360)]['get'](_0x34769c);if(_0xa18974)return _0xa18974;let _0x5f1104=this[_0x3ae143(0x24b)](_0x34769c,_0x5c7ace);this['_pendingSessions'][_0x3ae143(0x18b)](_0x34769c,_0x5f1104);try{return await _0x5f1104;}finally{this[_0x3ae143(0x360)][_0x3ae143(0x166)](_0x34769c);}}async['_createSession'](_0x4e8d1c,_0x46765a){const _0x28171a=_0x528acf;let _0x4a8591=await this[_0x28171a(0x22b)](_0x4e8d1c,_0x46765a),_0x2334d9=this['_getSocketChannel'](_0x4a8591[_0x28171a(0x245)]['endpoint']);this[_0x28171a(0x3cd)](_0x2334d9);let _0x5b5fb4=this[_0x28171a(0x1d6)][_0x28171a(0x33d)](ve,_0x4a8591,_0x2334d9[_0x28171a(0x36c)][_0x28171a(0x1db)]());return this[_0x28171a(0x3f3)][_0x28171a(0x18b)](_0x4e8d1c,_0x5b5fb4),this['_sessionChannels'][_0x28171a(0x18b)](_0x4e8d1c,_0x2334d9[_0x28171a(0x3e0)]),_0x5b5fb4;}[_0x528acf(0x408)](_0x5453cc){const _0x2b0a75=_0x528acf;let _0x647dfb=this[_0x2b0a75(0x3f3)][_0x2b0a75(0x1b0)](_0x5453cc),_0xce6018=this[_0x2b0a75(0x178)][_0x2b0a75(0x1b0)](_0x5453cc);if(_0x647dfb&&(this['_sessions'][_0x2b0a75(0x166)](_0x5453cc),this[_0x2b0a75(0x178)][_0x2b0a75(0x166)](_0x5453cc),_0x647dfb[_0x2b0a75(0x11c)]()),_0xce6018&&!this['_hasSessionsForEndpoint'](_0xce6018)){var _0x1868e6;let _0x2d4161=this[_0x2b0a75(0x3e7)][_0x2b0a75(0x1b0)](_0xce6018);_0x2d4161==null||(_0x1868e6=_0x2d4161[_0x2b0a75(0x36c)][_0x2b0a75(0x193)]())==null||_0x1868e6['close']();}}[_0x528acf(0x40b)](){const _0x5a80f8=_0x528acf;(this[_0x5a80f8(0x3e7)][_0x5a80f8(0x2c7)]?[...this[_0x5a80f8(0x3e7)]['values']()]:[this[_0x5a80f8(0x2a5)](void 0x0)])[_0x5a80f8(0x2d9)](_0x382ef7=>{const _0xc4ae9a=_0x5a80f8;_0x382ef7[_0xc4ae9a(0x176)]=0x0,this[_0xc4ae9a(0x345)](_0x382ef7),this[_0xc4ae9a(0x158)](_0x382ef7);});}['_clearRetryConnectingTimer'](_0x54a222){const _0x59296c=_0x528acf;_0x54a222['retryConnectingTimer']!=null&&(clearTimeout(_0x54a222[_0x59296c(0x421)]),_0x54a222[_0x59296c(0x421)]=null);}async[_0x528acf(0x171)](_0x2d361d){const _0x5c4dcb=_0x528acf;let _0x45b5b8=this[_0x5c4dcb(0xfa)][_0x5c4dcb(0x25f)](m),_0x503e01=_0x2d361d[_0x5c4dcb(0x243)]??(_0x45b5b8==null?void 0x0:_0x45b5b8['collabWebSocketUrl'])??_0x5c4dcb(0x219),_0x1dd05f=await this[_0x5c4dcb(0x27b)][_0x5c4dcb(0x241)](_0x503e01);return _0x2d361d[_0x5c4dcb(0x3ff)]=_0x1dd05f,_0x1dd05f;}async['_tryEnsureSocket'](_0x192642){const _0x4ea611=_0x528acf;try{let _0x5769e9=_0x192642[_0x4ea611(0x36c)][_0x4ea611(0x193)]()??_0x192642[_0x4ea611(0x3ff)]??await this[_0x4ea611(0x171)](_0x192642);if(_0x5769e9){var _0x5d8a4d;let _0x1e095f=_0x5769e9[_0x4ea611(0x2ef)];_0x5769e9[_0x4ea611(0x2ef)]=_0x24f12d=>(_0x24f12d['cmd']!==a['CombCmd']['LEAVE']&&this['_rescheduleHeartbeat'](_0x192642),_0x1e095f[_0x4ea611(0x335)](_0x5769e9,[_0x24f12d])),(_0x5d8a4d=_0x192642['socketMessageSubscription'])==null||_0x5d8a4d[_0x4ea611(0x282)](),_0x192642[_0x4ea611(0x3b9)]=null,_0x192642['socketMessageSubscription']=_0x5769e9[_0x4ea611(0x38a)][_0x4ea611(0x367)](_0xee15c4=>this[_0x4ea611(0x3c5)](_0x192642,_0x5769e9,_0xee15c4)),_0x5769e9[_0x4ea611(0x1c4)][_0x4ea611(0x3cf)]((0x0,s['take'])(0x1))[_0x4ea611(0x367)](_0x10e4bc=>this[_0x4ea611(0x320)][_0x4ea611(0x2d2)](_0x4ea611(0x3d1),_0x10e4bc)),_0x5769e9[_0x4ea611(0x114)][_0x4ea611(0x3cf)]((0x0,s[_0x4ea611(0x17b)])(0x1))[_0x4ea611(0x367)](()=>{const _0x2cc446=_0x4ea611;this[_0x2cc446(0x308)](_0x192642,_0x5769e9);}),_0x5769e9['close$']['pipe']((0x0,s[_0x4ea611(0x17b)])(0x1))[_0x4ea611(0x367)](_0x1bfee7=>{const _0x5da0b6=_0x4ea611;this[_0x5da0b6(0x320)][_0x5da0b6(0x264)]('[CollaborationSessionService]',_0x5da0b6(0x122),_0x1bfee7),this['_onConnectionFailed'](_0x192642);});}}catch(_0x557085){this[_0x4ea611(0x320)]['error'](_0x557085),this[_0x4ea611(0x329)](_0x192642);}}[_0x528acf(0x308)](_0xe337c1,_0x392a12){const _0x9f98d9=_0x528acf;this['_logService'][_0x9f98d9(0x264)](_0x9f98d9(0x2a3),_0x9f98d9(0x23c)),_0x392a12[_0x9f98d9(0x2ef)]({'cmd':a[_0x9f98d9(0x110)][_0x9f98d9(0x28a)]}),this['_rescheduleHeartbeat'](_0xe337c1);}[_0x528acf(0x2ad)](_0x2b3a70){const _0x1023da=_0x528acf;_0x2b3a70[_0x1023da(0x1d7)]=!0x1,_0x2b3a70[_0x1023da(0x3ff)]=null,this[_0x1023da(0x20c)]['next'](0x2),_0x2b3a70[_0x1023da(0x36c)]['next'](null),this[_0x1023da(0x35d)](_0x2b3a70),this[_0x1023da(0x1cb)](_0x2b3a70);}['_onConnectionFailed'](_0x5aab0b){const _0x4c59b8=_0x528acf;this[_0x4c59b8(0x2ad)](_0x5aab0b),this[_0x4c59b8(0x1bd)](_0x5aab0b[_0x4c59b8(0x3e0)])&&(_0x5aab0b[_0x4c59b8(0x176)]<(this['_configService'][_0x4c59b8(0x25f)](_0x4c59b8(0x146))??0x3)?(this['_collaborationUIEventService'][_0x4c59b8(0x237)]({'id':'SOCKET_FAILED_RETRY'}),this['_tryReconnect'](_0x5aab0b)):this[_0x4c59b8(0x102)]['emitEvent']({'id':'SOCKET_FAILED'}));}[_0x528acf(0x158)](_0x36efe1){const _0x549ff5=_0x528acf;let _0x11bd12=_0x36efe1[_0x549ff5(0x176)],_0x145034=this[_0x549ff5(0xfa)][_0x549ff5(0x25f)](m),_0x820b43=_0x11bd12===0x0?0x0:((_0x145034==null?void 0x0:_0x145034[_0x549ff5(0x1a2)])??0x4e20)*0x2**_0x11bd12;_0x36efe1[_0x549ff5(0x421)]=setTimeout(()=>{const _0x1c205d=_0x549ff5;clearTimeout(_0x36efe1['retryConnectingTimer']),_0x36efe1[_0x1c205d(0x421)]=null,this[_0x1c205d(0x3cd)](_0x36efe1);},_0x820b43),_0x36efe1[_0x549ff5(0x176)]+=0x1;}async[_0x528acf(0x22b)](_0x1fa294,_0x21e18d){return Qe(_0x1fa294,_0x21e18d,await this['_adapter']['resolveUnit']({'unitId':_0x1fa294,'unitType':_0x21e18d}));}[_0x528acf(0x3c5)](_0x253f49,_0x36f362,_0x49adbd){const _0x2ea4a8=_0x528acf;let {cmd:_0x5bde89}=_0x49adbd;_0x5bde89===a[_0x2ea4a8(0x110)][_0x2ea4a8(0x28a)]&&!_0x253f49[_0x2ea4a8(0x1d7)]&&(_0x36f362[_0x2ea4a8(0x2c4)]=_0x49adbd[_0x2ea4a8(0x325)][_0x2ea4a8(0x2c4)],_0x253f49[_0x2ea4a8(0x36c)][_0x2ea4a8(0x307)](_0x36f362),this['_status$'][_0x2ea4a8(0x307)](0x3),_0x253f49[_0x2ea4a8(0x1d7)]=!0x0,_0x253f49['candidateSocket']=null),_0x5bde89===a['CombCmd'][_0x2ea4a8(0x2c5)]&&this[_0x2ea4a8(0x35d)](_0x253f49),this['_rescheduleHeartbeat'](_0x253f49);}[_0x528acf(0x1bd)](_0x508be8){const _0x2e5dfa=_0x528acf;return[...this[_0x2e5dfa(0x178)][_0x2e5dfa(0x364)]()][_0x2e5dfa(0x353)](_0x4d7a08=>_0x4d7a08===_0x508be8);}[_0x528acf(0x2a5)](_0x4ed711){const _0x4e0ea7=_0x528acf;let _0x4c8870=_0x4ed711??'',_0x1d8749=this[_0x4e0ea7(0x3e7)][_0x4e0ea7(0x1b0)](_0x4c8870);if(_0x1d8749)return _0x1d8749;let _0x5e5235={'endpointKey':_0x4c8870,'endpoint':_0x4ed711,'socket$':new i['BehaviorSubject'](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x4e0ea7(0x3e7)][_0x4e0ea7(0x18b)](_0x4c8870,_0x5e5235),_0x5e5235;}['_rescheduleHeartbeat'](_0x2da9db){const _0x3406d9=_0x528acf;this[_0x3406d9(0x1cb)](_0x2da9db),_0x2da9db['sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](_0x2da9db),this[_0x3406d9(0xfa)][_0x3406d9(0x25f)](_0x3406d9(0x2a8))??0x7530);}[_0x528acf(0x226)](_0x54aac3){const _0xaca433=_0x528acf;_0x54aac3[_0xaca433(0x36c)][_0xaca433(0x193)]()[_0xaca433(0x2ef)]({'cmd':a[_0xaca433(0x110)][_0xaca433(0x2c5)]}),this[_0xaca433(0x148)](_0x54aac3);}[_0x528acf(0x148)](_0x1ac2c3){const _0x38e098=_0x528acf;_0x1ac2c3[_0x38e098(0x3ae)]=setTimeout(()=>this['_onConnectionFailed'](_0x1ac2c3),this[_0x38e098(0xfa)][_0x38e098(0x25f)](_0x38e098(0x372))??0x4e20);}[_0x528acf(0x1cb)](_0x5bd5e2){const _0x505060=_0x528acf;_0x5bd5e2[_0x505060(0x1f8)]!=null&&(clearTimeout(_0x5bd5e2[_0x505060(0x1f8)]),_0x5bd5e2['sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](_0x30af3a){const _0x279f6f=_0x528acf;_0x30af3a[_0x279f6f(0x3ae)]!=null&&(clearTimeout(_0x30af3a[_0x279f6f(0x3ae)]),_0x30af3a[_0x279f6f(0x3ae)]=null);}};V=y([v(0x0,(0x0,t['Inject'])(t['Injector'])),v(0x1,t[_0x528acf(0x30e)]),v(0x2,t['IConfigService']),v(0x3,qe),v(0x4,(0x0,t[_0x528acf(0x17f)])(_)),v(0x5,Xe),v(0x6,(0x0,t[_0x528acf(0x3ad)])(We))],V);let H=class extends t['RxDisposable']{constructor(_0x349369,_0x40ab00,_0x395d13,_0x1c3540){const _0x2bfdea=_0x528acf;var _0x52fc76;super(),this[_0x2bfdea(0x1d6)]=_0x349369,this[_0x2bfdea(0x38c)]=_0x40ab00,this['_configService']=_0x395d13,this[_0x2bfdea(0x416)]=_0x1c3540,g(this,_0x2bfdea(0x1c8),new Map()),g(this,_0x2bfdea(0x174),new i[(_0x2bfdea(0x1bf))]()),g(this,_0x2bfdea(0x152),this[_0x2bfdea(0x174)][_0x2bfdea(0x1db)]()),((_0x52fc76=this['_configService'][_0x2bfdea(0x25f)]('collaboration-client.config'))==null?void 0x0:_0x52fc76['enableCollaboration'])!==!0x1&&this['_init']();}[_0x528acf(0x1fb)](){const _0x26d295=_0x528acf;super[_0x26d295(0x1fb)](),this[_0x26d295(0x1c8)][_0x26d295(0x2d9)](_0x4fa529=>_0x4fa529[_0x26d295(0x1fb)]()),this[_0x26d295(0x1c8)][_0x26d295(0x3fc)]();}[_0x528acf(0x13a)](_0x8f2cbb){const _0x5b5474=_0x528acf;return this[_0x5b5474(0x1c8)][_0x5b5474(0x1b0)](_0x8f2cbb)??null;}[_0x528acf(0x29b)](_0x6e1d7f){const _0x141072=_0x528acf;let _0x362e3a=this[_0x141072(0x13a)](_0x6e1d7f);return _0x362e3a?(0x0,i['of'])(_0x362e3a):this[_0x141072(0x174)][_0x141072(0x3cf)]((0x0,s[_0x141072(0x1e0)])(_0x3ad58d=>_0x3ad58d[_0x141072(0x179)]===_0x6e1d7f));}['readyForCollab'](_0x268314){const _0x3bd2ce=_0x528acf;return(0x0,i['firstValueFrom'])(this[_0x3bd2ce(0x29b)](_0x268314)[_0x3bd2ce(0x3cf)]((0x0,s[_0x3bd2ce(0x1f4)])(()=>void 0x0)));}[_0x528acf(0x250)](){const _0x558196=_0x528acf;this[_0x558196(0x416)][_0x558196(0x1dc)](t['UniverInstanceType'][_0x558196(0x2df)])[_0x558196(0x3cf)]((0x0,i[_0x558196(0x25a)])(this[_0x558196(0x2b0)]),(0x0,s['delay'])(0x10))[_0x558196(0x367)](async _0xf9ee8d=>{const _0x3616c2=_0x558196;let _0x322546=_0xf9ee8d['unit'][_0x3616c2(0x1bb)](),_0x1d66cb=await this['_startCollaboration'](_0x322546,t[_0x3616c2(0x274)]['UNIVER_SHEET']);this[_0x3616c2(0x1c8)]['set'](_0x322546,_0x1d66cb);}),this[_0x558196(0x416)]['getTypeOfUnitAdded$'](t[_0x558196(0x274)][_0x558196(0x214)])[_0x558196(0x3cf)]((0x0,i['takeUntil'])(this['dispose$']),(0x0,s[_0x558196(0x201)])(0x10))[_0x558196(0x3cf)]((0x0,s[_0x558196(0x1e0)])(_0x59f3bc=>!_0x59f3bc['unit'][_0x558196(0x1bb)]()[_0x558196(0x195)]('__')))[_0x558196(0x367)](async _0x1ff98a=>{const _0x2bad83=_0x558196;let _0x1e285d=_0x1ff98a[_0x2bad83(0x20d)][_0x2bad83(0x1bb)](),_0x51a4bf=await this['_startCollaboration'](_0x1e285d,t[_0x2bad83(0x274)][_0x2bad83(0x214)]);this[_0x2bad83(0x1c8)][_0x2bad83(0x18b)](_0x1e285d,_0x51a4bf);}),this['_univerInstanceService'][_0x558196(0x1dc)](t[_0x558196(0x274)][_0x558196(0x111)])['pipe']((0x0,i[_0x558196(0x25a)])(this[_0x558196(0x2b0)]),(0x0,s['delay'])(0x10))[_0x558196(0x367)](async _0x250e87=>{const _0x1a69f3=_0x558196;let _0x139371=_0x250e87[_0x1a69f3(0x20d)][_0x1a69f3(0x1bb)](),_0x3d0574=await this[_0x1a69f3(0x1e8)](_0x139371,t[_0x1a69f3(0x274)][_0x1a69f3(0x111)]);this[_0x1a69f3(0x1c8)][_0x1a69f3(0x18b)](_0x139371,_0x3d0574);}),this[_0x558196(0x416)][_0x558196(0x1dc)](t[_0x558196(0x274)][_0x558196(0x1eb)])[_0x558196(0x3cf)]((0x0,i[_0x558196(0x25a)])(this[_0x558196(0x2b0)]),(0x0,s[_0x558196(0x201)])(0x10))[_0x558196(0x367)](async _0x12528c=>{const _0x2a52e8=_0x558196;let _0xff3df2=_0x12528c[_0x2a52e8(0x20d)]['getUnitId'](),_0x10111a=await this[_0x2a52e8(0x1e8)](_0xff3df2,t[_0x2a52e8(0x274)][_0x2a52e8(0x1eb)]);this['_entities'][_0x2a52e8(0x18b)](_0xff3df2,_0x10111a);}),this['_univerInstanceService'][_0x558196(0x1dc)](t[_0x558196(0x274)]['UNIVER_BASE'])['pipe']((0x0,i['takeUntil'])(this['dispose$']),(0x0,s[_0x558196(0x201)])(0x10))[_0x558196(0x367)](async _0x5c5fe3=>{const _0x4a6920=_0x558196;let _0x455752=_0x5c5fe3[_0x4a6920(0x20d)][_0x4a6920(0x1bb)](),_0x23f90f=await this[_0x4a6920(0x1e8)](_0x455752,t[_0x4a6920(0x274)][_0x4a6920(0x15a)]);this[_0x4a6920(0x1c8)]['set'](_0x455752,_0x23f90f);}),this['_univerInstanceService'][_0x558196(0x1dc)](t['UniverInstanceType'][_0x558196(0x342)])['pipe']((0x0,i['takeUntil'])(this['dispose$']),(0x0,s['delay'])(0x10))[_0x558196(0x367)](async _0x5ae993=>{const _0x2f30ca=_0x558196;let _0x11b57f=_0x5ae993['unit']['getUnitId'](),_0x75e686=await this[_0x2f30ca(0x1e8)](_0x11b57f,t[_0x2f30ca(0x274)][_0x2f30ca(0x342)]);this[_0x2f30ca(0x1c8)]['set'](_0x11b57f,_0x75e686);}),(0x0,i[_0x558196(0x1c3)])(this['_univerInstanceService'][_0x558196(0x20f)](t[_0x558196(0x274)][_0x558196(0x2df)]),this[_0x558196(0x416)]['getTypeOfUnitDisposed$'](t['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService'][_0x558196(0x20f)](t[_0x558196(0x274)][_0x558196(0x111)]),this[_0x558196(0x416)][_0x558196(0x20f)](t['UniverInstanceType'][_0x558196(0x1eb)]),this['_univerInstanceService'][_0x558196(0x20f)](t[_0x558196(0x274)][_0x558196(0x15a)]),this[_0x558196(0x416)][_0x558196(0x20f)](t['UniverInstanceType'][_0x558196(0x342)]))[_0x558196(0x3cf)]((0x0,i[_0x558196(0x25a)])(this['dispose$']))[_0x558196(0x367)](_0x33cbb4=>{const _0x538e89=_0x558196;let _0x2ad636=_0x33cbb4[_0x538e89(0x1bb)](),_0x119b70=this[_0x538e89(0x1c8)]['get'](_0x2ad636);_0x119b70&&(_0x119b70[_0x538e89(0x1fb)](),this[_0x538e89(0x1c8)][_0x538e89(0x166)](_0x2ad636));});}async['_startCollaboration'](_0x5ac948,_0x2c2cf1){const _0x28d706=_0x528acf;let _0x6eff10=await this[_0x28d706(0x38c)][_0x28d706(0x1d1)](_0x5ac948),_0x35f775=this[_0x28d706(0x1d6)][_0x28d706(0x33d)](this[_0x28d706(0x2fc)](_0x2c2cf1),_0x5ac948,_0x2c2cf1,_0x6eff10);return await _0x35f775[_0x28d706(0x3c0)](),this['_entityInit$'][_0x28d706(0x307)](_0x35f775),_0x35f775;}[_0x528acf(0x2fc)](_0x5e5090){const _0x4a9944=_0x528acf;switch(_0x5e5090){case t[_0x4a9944(0x274)][_0x4a9944(0x214)]:return F;case t['UniverInstanceType'][_0x4a9944(0x2df)]:return L;case t['UniverInstanceType'][_0x4a9944(0x111)]:return R;case t['UniverInstanceType'][_0x4a9944(0x1eb)]:return z;case t[_0x4a9944(0x274)]['UNIVER_BASE']:return I;case t[_0x4a9944(0x274)][_0x4a9944(0x342)]:return B;default:throw Error(_0x4a9944(0x3cc)+_0x5e5090);}}};H=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x1,(0x0,t[_0x528acf(0x17f)])(V)),v(0x2,t[_0x528acf(0x295)]),v(0x3,t[_0x528acf(0x3a7)])],H);var $e=_0x528acf(0x1da),et=_0x528acf(0x1d3);let tt=class extends t['Disposable']{constructor(_0x1d35fe,_0x37a099){const _0x5160e7=_0x528acf;super(),this[_0x5160e7(0x416)]=_0x1d35fe,this[_0x5160e7(0xfa)]=_0x37a099,this[_0x5160e7(0x250)]();}[_0x528acf(0x250)](){const _0x442be6=_0x528acf;this[_0x442be6(0x3a2)](this[_0x442be6(0x416)][_0x442be6(0x2b3)]['subscribe'](()=>{const _0x1fc260=_0x442be6;let _0x406805=this[_0x1fc260(0x416)][_0x1fc260(0x30a)](),_0xb7b72d=this[_0x1fc260(0xfa)][_0x1fc260(0x25f)](_0x1fc260(0x177))??_0x1fc260(0x2e4);_0x406805 instanceof t['Workbook']&&(_0xb7b72d=_0x406805[_0x1fc260(0x1c0)]),document[_0x1fc260(0x3c3)]=_0xb7b72d;}));}};tt=y([v(0x0,t['IUniverInstanceService']),v(0x1,t['IConfigService'])],tt);const nt=(0x0,t[_0x528acf(0x2ab)])('base-ui.attachment-io.service');let U=class{constructor(_0x52a290,_0x3d1c29,_0x4f5bd8){const _0xa4aa06=_0x528acf;this[_0xa4aa06(0x1ff)]=_0x52a290,this[_0xa4aa06(0xfa)]=_0x3d1c29,this['_univerInstanceService']=_0x4f5bd8;}[_0x528acf(0x38d)](){const _0x460a30=_0x528acf;return this[_0x460a30(0x1d4)]()[_0x460a30(0x276)]??{};}async[_0x528acf(0x2ba)](_0x49bc6d){const _0x33e5f4=_0x528acf;let _0x33343a=this[_0x33e5f4(0x38d)]();if(rt(_0x49bc6d,_0x33343a),_0x33343a[_0x33e5f4(0x32b)])return _0x33343a[_0x33e5f4(0x32b)](_0x49bc6d);let _0x2dd1b1=await this['_upload'](_0x49bc6d);return{'id':_0x2dd1b1,'name':_0x49bc6d[_0x33e5f4(0x1c0)],'mimeType':_0x49bc6d[_0x33e5f4(0x191)],'size':_0x49bc6d[_0x33e5f4(0x2c7)],'sourceType':t[_0x33e5f4(0x1e2)]['UUID'],'source':_0x2dd1b1};}async[_0x528acf(0x3fe)](_0x12eec4,_0x5a621d){const _0x161c74=_0x528acf;if(_0x5a621d!==t[_0x161c74(0x1e2)][_0x161c74(0x189)])return _0x12eec4;let _0x3bee7d=(await this[_0x161c74(0x1ff)][_0x161c74(0x1b0)](this[_0x161c74(0x3ab)]()[_0x161c74(0x175)](_0x161c74(0x3d0),_0x12eec4)))[_0x161c74(0x140)];if(_0x3bee7d[_0x161c74(0x2d2)]&&_0x3bee7d['error'][_0x161c74(0x381)]!==a['ErrorCode']['OK'])throw _0x3bee7d['error'];if(!_0x3bee7d['url'])throw Error(_0x161c74(0x425));return(0x0,t['resolveWithBasePath'])(_0x3bee7d[_0x161c74(0x24e)],this[_0x161c74(0x1cc)]());}async['_upload'](_0x1062c9){const _0x1b778b=_0x528acf;let _0x523289=this[_0x1b778b(0x416)][_0x1b778b(0x30a)](),_0x5caa7b=_0x523289==null?void 0x0:_0x523289[_0x1b778b(0x1bb)]();if(!_0x5caa7b)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x283048=new FormData();_0x283048[_0x1b778b(0x208)](_0x1b778b(0x323),_0x1062c9);let _0x2e73a8=this[_0x1b778b(0x355)]()+_0x1b778b(0x2aa)+_0x1062c9['size'][_0x1b778b(0x14b)]()+_0x1b778b(0x1f9)+a['FileSource'][_0x1b778b(0x33a)]+_0x1b778b(0x420)+encodeURIComponent(_0x5caa7b),_0x10ddc9=(await this[_0x1b778b(0x1ff)][_0x1b778b(0x24c)](_0x2e73a8,{'body':_0x283048}))[_0x1b778b(0x140)][_0x1b778b(0x246)];if(typeof _0x10ddc9!=_0x1b778b(0x259)||!_0x10ddc9)throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.');return _0x10ddc9;}[_0x528acf(0x355)](){const _0x15edf4=_0x528acf;return this[_0x15edf4(0x1d4)]()[_0x15edf4(0x281)]??_0x15edf4(0x1f7);}[_0x528acf(0x3ab)](){const _0x97ec45=_0x528acf;return this['_getConfig']()[_0x97ec45(0x36f)]??_0x97ec45(0x2a6);}[_0x528acf(0x1cc)](){const _0x3dae04=_0x528acf;let _0x2bb00e=this[_0x3dae04(0x1d4)]();return _0x2bb00e[_0x3dae04(0x238)]?_0x2bb00e[_0x3dae04(0x238)]:typeof location<'u'?location['origin']:_0x2bb00e['uploadFileServerUrl']??'';}['_getConfig'](){const _0x39292b=_0x528acf;return this['_configService'][_0x39292b(0x25f)](_0x39292b(0x18f))??{};}};U=y([v(0x0,(0x0,t['Inject'])(l[_0x528acf(0x3f0)])),v(0x1,(0x0,t['Inject'])(t['IConfigService'])),v(0x2,(0x0,t[_0x528acf(0x17f)])(t['IUniverInstanceService']))],U);function rt(_0x2d7952,_0x15b780){const _0x37a28d=_0x528acf;var _0x399155;if(_0x15b780['maxSize']!=null&&_0x2d7952[_0x37a28d(0x2c7)]>_0x15b780['maxSize'])throw Error(_0x37a28d(0x37c));if((_0x399155=_0x15b780['accept'])!=null&&_0x399155['length']&&!_0x15b780[_0x37a28d(0x2fd)][_0x37a28d(0x353)](_0x1a051c=>_0x2d7952['type']===_0x1a051c||_0x2d7952[_0x37a28d(0x1c0)][_0x37a28d(0x31c)](_0x1a051c)||_0x1a051c[_0x37a28d(0x31c)]('/*')&&_0x2d7952['type'][_0x37a28d(0x195)](_0x1a051c['slice'](0x0,-0x1))))throw Error(_0x37a28d(0x3df));}let W=class{constructor(_0x2afbb3,_0x3e3f60,_0x361c37){const _0xcbd926=_0x528acf;this[_0xcbd926(0xfa)]=_0x2afbb3,this[_0xcbd926(0x1ff)]=_0x3e3f60,this[_0xcbd926(0x1ce)]=_0x361c37,this[_0xcbd926(0x3c0)]();}[_0x528acf(0x3c0)](){const _0x58724e=_0x528acf;this['_httpService'][_0x58724e(0x10b)]({'priority':0x1,'interceptor':(_0x302c8c,_0xcd54c6)=>_0xcd54c6(_0x302c8c)[_0x58724e(0x3cf)]((0x0,i[_0x58724e(0x2a7)])(async _0x4469a4=>{const _0x535582=_0x58724e;let _0x3e1270=_0x4469a4;if(_0x3e1270['status']===0x191){if(typeof window>'u')throw Error(_0x535582(0x3d3));if(window[_0x535582(0x183)](this[_0x535582(0x1ce)]['t'](_0x535582(0x386)))){let _0x1f45a7=window['encodeURIComponent'](window[_0x535582(0x388)][_0x535582(0x3d7)]);window[_0x535582(0x388)][_0x535582(0x3d7)]=this[_0x535582(0x343)]()+_0x535582(0x369)+_0x1f45a7;}}return _0x3e1270;}))});}[_0x528acf(0x343)](){const _0x1a5064=_0x528acf;let _0xb0c176=this[_0x1a5064(0xfa)][_0x1a5064(0x25f)](m);return(_0xb0c176==null?void 0x0:_0xb0c176[_0x1a5064(0x3aa)])??_0x1a5064(0x28b);}};W=y([v(0x0,t[_0x528acf(0x295)]),v(0x1,(0x0,t[_0x528acf(0x17f)])(l['HTTPService'])),v(0x2,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x199)]))],W);let G=class extends t[_0x528acf(0x23e)]{constructor(_0xc7fb29,_0x3051ac){const _0xdc380a=_0x528acf;super(),this[_0xdc380a(0x224)]=_0xc7fb29,this['_configService']=_0x3051ac,g(this,_0xdc380a(0x13f),!0x1),this['_initMergeInterceptor']();}[_0x528acf(0x349)](){const _0xa0c7ee=_0x528acf;let _0x358b08=this;this[_0xa0c7ee(0x3a2)](this[_0xa0c7ee(0x224)][_0xa0c7ee(0x10b)]({'priority':0x3e7,'interceptor':(0x0,l[_0xa0c7ee(0x1c1)])({'isMatch'(_0x46937b){const _0x3e2751=_0xa0c7ee;var _0x114aa5;if(_0x46937b[_0x3e2751(0x133)]==='POST'&&(_0x114aa5=_0x46937b[_0x3e2751(0x3f4)])!=null&&_0x114aa5[_0x3e2751(0x140)]){let {objectID:_0x468417,objectType:_0x570f2e}=_0x46937b[_0x3e2751(0x3f4)][_0x3e2751(0x140)]||{};if(!_0x468417||_0x570f2e===void 0x0)return!0x1;let _0x352956=_0x358b08['_getAPIPrefixPath']()+'/'+_0x570f2e+'/object/'+_0x468417+'/allowed';if(_0x46937b['url']===_0x352956)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1ee8f0){const _0x23f604=_0xa0c7ee;var _0x5321e1;return(_0x5321e1=_0x1ee8f0[_0x23f604(0x3f4)])==null?void 0x0:_0x5321e1[_0x23f604(0x140)];},'mergeParamsToRequest'(_0x4c1156,_0xd2c89c){const _0x19c8ac=_0xa0c7ee;let _0x180270=_0x358b08['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0x1ba64b=_0x4c1156['reduce']((_0x2c9158,_0x4e7aa8)=>{const _0x4e654a=_0x3420;let {unitID:_0x532e06,objectID:_0x2acd71,objectType:_0xfb7172,actions:_0x3d83c0}=_0x4e7aa8;return _0x2c9158[_0x532e06]||(_0x2c9158[_0x532e06]={}),_0x2c9158[_0x532e06][_0x2acd71]||(_0x2c9158[_0x532e06][_0x2acd71]={'objectID':_0x2acd71,'objectType':_0xfb7172,'actions':[]}),_0x2c9158[_0x532e06][_0x2acd71][_0x4e654a(0x2f8)]['push'](..._0x3d83c0),_0x2c9158;},{}),_0x1ed683=[];for(let _0x4dbbc1 in _0x1ba64b)for(let _0x44eadb in _0x1ba64b[_0x4dbbc1]){let {actions:_0x33b522,objectType:_0x5e4c89}=_0x1ba64b[_0x4dbbc1][_0x44eadb],_0x34c77c=[...new Set(_0x33b522)];_0x1ed683[_0x19c8ac(0x19e)]({'unitID':_0x4dbbc1,'objectID':_0x44eadb,'objectType':_0x5e4c89,'actions':_0x34c77c});}return new l[(_0x19c8ac(0x358))](_0x19c8ac(0x40d),_0x180270,{'headers':_0xd2c89c[_0x19c8ac(0x18c)],'withCredentials':_0xd2c89c['withCredentials'],'responseType':_0xd2c89c[_0x19c8ac(0x2a1)],'body':{'requests':_0x1ed683}});}},{'distributeResult'(_0x55cd97,_0x339bc9){const _0x108639=_0xa0c7ee;let {objectActions:_0xb782ed}=_0x55cd97;return _0x339bc9[_0x108639(0x1f4)](_0x1139ed=>{const _0x1e28e8=_0x108639;let {unitID:_0x5a85f6,objectID:_0x666e81,actions:_0xf0e406}=_0x1139ed,_0x15df4d=_0xb782ed[_0x1e28e8(0x168)](_0x21ca5a=>_0x21ca5a[_0x1e28e8(0x179)]===_0x5a85f6&&_0x21ca5a[_0x1e28e8(0x290)]===_0x666e81);return{'config':_0x1139ed,'result':{'actions':_0xf0e406[_0x1e28e8(0x1f4)](_0x480264=>_0x15df4d==null?void 0x0:_0x15df4d[_0x1e28e8(0x2f8)][_0x1e28e8(0x168)](_0x27653e=>_0x27653e[_0x1e28e8(0x121)]===_0x480264))[_0x1e28e8(0x1e0)](_0x37c8da=>!!_0x37c8da),'error':_0x55cd97[_0x1e28e8(0x2d2)]}};});}})}));}[_0x528acf(0x31a)](){const _0x348de5=_0x528acf;let _0x595381=this['_configService'][_0x348de5(0x25f)](m);return(_0x595381==null?void 0x0:_0x595381['authzUrl'])??_0x348de5(0x215);}async[_0x528acf(0x300)](_0x28dfc1){const _0xf3c7d8=_0x528acf;let _0x5bf3d4=this[_0xf3c7d8(0x31a)]()+'/'+_0x28dfc1['objectType']+_0xf3c7d8(0x2b2);return(await this[_0xf3c7d8(0x224)][_0xf3c7d8(0x24c)](_0x5bf3d4,{'body':_0x28dfc1}))[_0xf3c7d8(0x140)][_0xf3c7d8(0x290)]||'';}async[_0x528acf(0x142)](_0x1075bd){const _0x19dfd8=_0x528acf;let _0x51cbbc=this[_0x19dfd8(0x31a)]()+_0x19dfd8(0x33b);return(await this['_HTTPService'][_0x19dfd8(0x24c)](_0x51cbbc,{'body':_0x1075bd}))['body'][_0x19dfd8(0x137)];}async[_0x528acf(0x3e6)](_0x51ccf7){const _0x3e7738=_0x528acf;var _0x59d1b0;let _0x364ebc=this[_0x3e7738(0x31a)]()+'/'+_0x51ccf7[_0x3e7738(0x366)]+_0x3e7738(0x12a)+_0x51ccf7[_0x3e7738(0x290)],_0x5b396c=await this[_0x3e7738(0x224)][_0x3e7738(0x39e)](_0x364ebc,{'body':_0x51ccf7});if((_0x5b396c==null||(_0x59d1b0=_0x5b396c[_0x3e7738(0x140)])==null||(_0x59d1b0=_0x59d1b0[_0x3e7738(0x2d2)])==null?void 0x0:_0x59d1b0[_0x3e7738(0x381)])!==0x1)throw Error(_0x3e7738(0x2c0));}async[_0x528acf(0x262)](_0x36d019){const _0x17fd3e=_0x528acf;let _0x261c74=this[_0x17fd3e(0x31a)]()+'/'+_0x36d019['objectType']+_0x17fd3e(0x12a)+_0x36d019[_0x17fd3e(0x290)]+_0x17fd3e(0x2db);return(await this['_HTTPService'][_0x17fd3e(0x24c)](_0x261c74,{'body':_0x36d019}))[_0x17fd3e(0x140)]['actions'];}async[_0x528acf(0x196)](_0x5e4a98){const _0x445adc=_0x528acf;let _0x17d8e7=this[_0x445adc(0x31a)]()+_0x445adc(0x23b);return(await this[_0x445adc(0x224)][_0x445adc(0x24c)](_0x17d8e7,{'body':{'requests':_0x5e4a98}}))['body'][_0x445adc(0x1b5)];}async['listRoles'](_0x597fe1){const _0x1b17fd=_0x528acf;let _0x51cd51=this[_0x1b17fd(0x31a)]()+'/'+_0x597fe1[_0x1b17fd(0x366)]+_0x1b17fd(0x20b),_0x21d4b0=await this[_0x1b17fd(0x224)][_0x1b17fd(0x24c)](_0x51cd51,{'body':_0x597fe1});return{'roles':_0x21d4b0[_0x1b17fd(0x140)][_0x1b17fd(0x2bb)],'actions':_0x21d4b0[_0x1b17fd(0x140)][_0x1b17fd(0x2f8)]};}async[_0x528acf(0x1d9)](_0x52e587){const _0x4e73ea=_0x528acf;let _0x5837f0=this[_0x4e73ea(0x31a)]()+_0x4e73ea(0x1a5);await this[_0x4e73ea(0x224)]['delete'](_0x5837f0,{'params':{'collaboratorID':_0x52e587[_0x4e73ea(0x3b4)],'objectID':_0x52e587[_0x4e73ea(0x290)],'unitID':_0x52e587['unitID']}});}async[_0x528acf(0x255)](_0x45e6cc){const _0x49ddcf=_0x528acf;let _0xa8aa68=this[_0x49ddcf(0x31a)]()+_0x49ddcf(0x1a5);await this[_0x49ddcf(0x224)][_0x49ddcf(0x10f)](_0xa8aa68,{'body':_0x45e6cc});}async[_0x528acf(0x41d)](_0x389551){const _0x4fe4b7=_0x528acf;let _0x210f9d=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x4fe4b7(0x224)][_0x4fe4b7(0x24c)](_0x210f9d,{'body':_0x389551});}async['listCollaborators'](_0xea348d){const _0x3ecd99=_0x528acf;let _0x1ce48d=this[_0x3ecd99(0x31a)]()+'/collaborator',_0x13e5fb=await this[_0x3ecd99(0x224)]['get'](_0x1ce48d,{'params':{'objectID':_0xea348d[_0x3ecd99(0x290)],'unitID':_0xea348d[_0x3ecd99(0x179)]}});return this[_0x3ecd99(0x202)](_0x13e5fb[_0x3ecd99(0x140)][_0x3ecd99(0x1b4)]??!0x1),_0x13e5fb[_0x3ecd99(0x140)][_0x3ecd99(0x363)];}async[_0x528acf(0x38e)](_0x5e8b5c){const _0xb7f7c0=_0x528acf;let _0x573e25=this['_getAPIPrefixPath']()+_0xb7f7c0(0x1a5);await this[_0xb7f7c0(0x224)][_0xb7f7c0(0x39e)](_0x573e25,{'body':_0x5e8b5c});}[_0x528acf(0x202)](_0x320193){this['_cfgEnableObjInherit']=_0x320193;}[_0x528acf(0x15e)](){const _0x49e3dc=_0x528acf;return this[_0x49e3dc(0x13f)];}};G=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(l[_0x528acf(0x3f0)])),v(0x1,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x295)]))],G);function it(_0x5e06de){const _0x27d5bd=_0x528acf;let _0x137b62=atob(_0x5e06de),_0x4b2035=new Uint8Array(_0x137b62[_0x27d5bd(0x347)]);for(let _0x270332=0x0;_0x270332<_0x137b62[_0x27d5bd(0x347)];_0x270332++)_0x4b2035[_0x270332]=_0x137b62['charCodeAt'](_0x270332);return _0x4b2035;}function at(_0x39443a){const _0x4cd608=_0x528acf;let _0x2f87ad='';for(let _0x36b63d=0x0;_0x36b63d<_0x39443a[_0x4cd608(0x347)];_0x36b63d++)_0x2f87ad+=String[_0x4cd608(0x267)](_0x39443a[_0x36b63d]);return btoa(_0x2f87ad);}function ot(_0x2380a8,_0x42f3e6){const _0x428ac6=_0x528acf;let _0x2d7bcf=it(_0x42f3e6),_0x3887ca=(0x0,f['randomBytes'])(0x10);return at((0x0,f['concatBytes'])(_0x3887ca,(0x0,d[_0x428ac6(0x117)])(_0x2d7bcf,_0x3887ca)[_0x428ac6(0x2cd)]((0x0,f[_0x428ac6(0x192)])(_0x2380a8))));}function st(){const _0x4a4a4d=_0x528acf;let _0x2b532d=(0x0,u[_0x4a4a4d(0x278)])()[_0x4a4a4d(0x12b)];if(typeof window<'u'&&window[_0x4a4a4d(0x388)]!==void 0x0&&_0x2b532d){let _0xb03c4={'time':Math[_0x4a4a4d(0x30c)](Date['now']()/0x3e8),'domain':location['hostname']};return ot(JSON[_0x4a4a4d(0x29e)](_0xb03c4),_0x2b532d);}}let K=class{constructor(_0x278000){const _0x3ed519=_0x528acf;this[_0x3ed519(0x1ff)]=_0x278000,this[_0x3ed519(0x129)]();}[_0x528acf(0x129)](){const _0x21fe30=_0x528acf;this[_0x21fe30(0x1ff)][_0x21fe30(0x10b)]({'interceptor':(_0x56cd3b,_0x21333d)=>{const _0x4420fd=_0x21fe30;let _0x15c643=st();return _0x15c643&&_0x56cd3b[_0x4420fd(0x18c)][_0x4420fd(0x18b)](_0x4420fd(0x3b3),_0x15c643),_0x21333d(_0x56cd3b);}});}};K=y([v(0x0,(0x0,t['Inject'])(l[_0x528acf(0x3f0)]))],K);let q=class extends t[_0x528acf(0x1b1)]{constructor(_0x2f5abd,_0x3966ed,_0x101c51){const _0x29ad31=_0x528acf;super(),this[_0x29ad31(0x320)]=_0x2f5abd,this[_0x29ad31(0x1be)]=_0x3966ed,this[_0x29ad31(0x31e)]=_0x101c51,g(this,_0x29ad31(0x2d3),new i[(_0x29ad31(0x1ef))](null)),g(this,_0x29ad31(0x418),new i['Subject']()),g(this,_0x29ad31(0x392),this[_0x29ad31(0x2d3)][_0x29ad31(0x1db)]()),g(this,'unitLoaded$',this[_0x29ad31(0x418)][_0x29ad31(0x1db)]());}['dispose'](){const _0x2a744c=_0x528acf;super[_0x2a744c(0x1fb)](),this[_0x2a744c(0x418)][_0x2a744c(0x13b)](),this['_unitInfo$']['complete']();}async[_0x528acf(0x125)](_0x664dd4,_0x546b3b,_0x1c92b5,_0x28b075){const _0x3aade8=_0x528acf;this[_0x3aade8(0x2d3)]['next']({'unitId':_0x664dd4,'type':_0x546b3b,'subUnitId':_0x28b075});let _0x56866f=null;switch(_0x546b3b){case t['UniverInstanceType'][_0x3aade8(0x2df)]:_0x56866f=await this[_0x3aade8(0x1be)]['loadSheet'](_0x664dd4,_0x1c92b5,void 0x0,{'initialSubUnitId':_0x28b075});break;case t['UniverInstanceType']['UNIVER_DOC']:_0x56866f=await this[_0x3aade8(0x1be)][_0x3aade8(0x2e5)](_0x664dd4,_0x1c92b5);break;case t[_0x3aade8(0x274)][_0x3aade8(0x111)]:_0x56866f=await this[_0x3aade8(0x1be)]['loadSlide'](_0x664dd4,_0x1c92b5);break;case t[_0x3aade8(0x274)][_0x3aade8(0x1eb)]:_0x56866f=await this[_0x3aade8(0x1be)][_0x3aade8(0x21a)](_0x664dd4,_0x1c92b5);break;case t[_0x3aade8(0x274)]['UNIVER_BASE']:_0x56866f=await this[_0x3aade8(0x1be)][_0x3aade8(0x405)](_0x664dd4,_0x1c92b5);break;case t[_0x3aade8(0x274)]['UNIVER_PDF']:_0x56866f=await this[_0x3aade8(0x1be)][_0x3aade8(0x2ea)](_0x664dd4,_0x1c92b5);break;default:this[_0x3aade8(0x320)][_0x3aade8(0x2d2)]('[DataLoaderService]',_0x3aade8(0x1b8));break;}return _0x56866f&&this[_0x3aade8(0x418)]['next'](_0x56866f),_0x56866f;}async[_0x528acf(0x184)](_0x329d6e,_0x516579,_0x43733b){const _0x146a7f=_0x528acf;var _0x46c7a2;this[_0x146a7f(0x2d3)]['next']({'unitId':_0x329d6e,'type':_0x516579,'subUnitId':_0x43733b});let _0x36cf2d=0x0,_0x51f952=await((_0x46c7a2=this['_localCacheService'])==null?void 0x0:_0x46c7a2[_0x146a7f(0x277)](_0x329d6e));return _0x51f952&&(_0x51f952['awaitingChangeset']||_0x51f952[_0x146a7f(0x15b)]['length']!==0x0)&&(_0x36cf2d=_0x51f952['rev']),_0x36cf2d===0x0&&this[_0x146a7f(0x320)]['debug'](_0x146a7f(0x3ec),_0x146a7f(0x33f)),this[_0x146a7f(0x125)](_0x329d6e,_0x516579,_0x36cf2d,_0x43733b);}};q=y([v(0x0,t[_0x528acf(0x30e)]),v(0x1,(0x0,t['Inject'])(e[_0x528acf(0x233)])),v(0x2,(0x0,t['Optional'])(x))],q);let J=class{constructor(_0x32f501,_0x440120,_0x20d87d){const _0x553efe=_0x528acf;this[_0x553efe(0x1ff)]=_0x32f501,this[_0x553efe(0xfa)]=_0x440120,this[_0x553efe(0x416)]=_0x20d87d,g(this,_0x553efe(0x32c),0x0),g(this,_0x553efe(0x212),new i[(_0x553efe(0x1bf))]()),g(this,_0x553efe(0x3d5),this[_0x553efe(0x212)]),g(this,_0x553efe(0x3f7),new Map());}[_0x528acf(0x109)](_0x3dca71){const _0x5c6712=_0x528acf;this['_waitCount']=_0x3dca71,this[_0x5c6712(0x212)]['next'](_0x3dca71);}[_0x528acf(0x338)](_0x193698,_0x3a0da6){const _0x1a2774=_0x528acf;if(_0x3a0da6===t[_0x1a2774(0x1e2)]['BASE64']){let _0x4854e7=new Image();return _0x4854e7[_0x1a2774(0x380)]=_0x193698,_0x4854e7;}return this[_0x1a2774(0x3f7)]['get'](_0x193698);}[_0x528acf(0x200)](_0x57dc3a,_0x230f92,_0xc843c9){const _0x5e978c=_0x528acf;_0x230f92!==t[_0x5e978c(0x1e2)]['BASE64']&&_0xc843c9!=null&&this[_0x5e978c(0x3f7)][_0x5e978c(0x18b)](_0x57dc3a,_0xc843c9);}async[_0x528acf(0x3dd)](_0x5e718e){const _0x4349a6=_0x528acf;try{let _0x1d5ad6=this[_0x4349a6(0x17d)](this['_getSignURL'](),''+_0x5e718e),_0x2ec162=(await this['_httpService'][_0x4349a6(0x1b0)](_0x1d5ad6))[_0x4349a6(0x140)];if(_0x2ec162[_0x4349a6(0x2d2)]&&_0x2ec162[_0x4349a6(0x2d2)]['code']===a[_0x4349a6(0x1d2)]['OK']){let _0x2397f4=(0x0,t[_0x4349a6(0x1d8)])(_0x2ec162[_0x4349a6(0x24e)],this[_0x4349a6(0x1cc)]());return Promise[_0x4349a6(0x284)](_0x2397f4);}return Promise[_0x4349a6(0x409)](_0x2ec162[_0x4349a6(0x2d2)]);}catch(_0x21d498){return Promise[_0x4349a6(0x409)](_0x21d498);}}async[_0x528acf(0x28e)](_0x194c4f){const _0x521ccf=_0x528acf;let _0x970711='';if(!p[_0x521ccf(0x3c9)]['includes'](_0x194c4f[_0x521ccf(0x191)]))return this[_0x521ccf(0x1bc)](),Promise[_0x521ccf(0x409)](Error(t[_0x521ccf(0x1ac)][_0x521ccf(0x29f)]));if(_0x194c4f[_0x521ccf(0x2c7)]>(0x0,p['getDrawingImageAllowSize'])())return this['_decreaseWaiting'](),Promise[_0x521ccf(0x409)](Error(t[_0x521ccf(0x1ac)][_0x521ccf(0x279)]));try{let _0xa38ab6=new FormData();_0xa38ab6['append']('file',_0x194c4f);let _0xfa6334=this[_0x521ccf(0x416)][_0x521ccf(0x30a)](),_0x201c11=_0xfa6334==null?void 0x0:_0xfa6334['getUnitId']();if(!_0x201c11)throw Error(_0x521ccf(0x406));let _0x2742ef=this['_getUploadFileURL']()+'?size='+_0x194c4f[_0x521ccf(0x2c7)][_0x521ccf(0x14b)]()+_0x521ccf(0x1f9)+a[_0x521ccf(0x373)][_0x521ccf(0x33a)]+_0x521ccf(0x420)+encodeURIComponent(_0x201c11),_0x308f53={'body':_0xa38ab6},_0x49242e=(await this['_httpService'][_0x521ccf(0x24c)](_0x2742ef,_0x308f53))['body'];if(typeof _0x49242e[_0x521ccf(0x246)]!=_0x521ccf(0x259))return this[_0x521ccf(0x1bc)](),Promise['reject'](Error(t[_0x521ccf(0x1ac)][_0x521ccf(0x216)]));_0x970711=_0x49242e[_0x521ccf(0x246)];}catch{return this['_decreaseWaiting'](),Promise['reject'](Error(t['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0xb691b4,_0x352dcc)=>{const _0x14ede7=_0x521ccf;let _0x438459=new FileReader();_0x438459[_0x14ede7(0x22e)](_0x194c4f),_0x438459[_0x14ede7(0x172)]=_0x1a7e3e=>{const _0x1a03e9=_0x14ede7;var _0x19f09c;let _0x1634e8=(_0x19f09c=_0x1a7e3e['target'])==null?void 0x0:_0x19f09c['result'];if(_0x1634e8==null){this['_decreaseWaiting'](),_0x352dcc(Error(t[_0x1a03e9(0x1ac)][_0x1a03e9(0x216)]));return;}_0xb691b4({'imageId':(0x0,t[_0x1a03e9(0x400)])(0x6),'imageSourceType':t[_0x1a03e9(0x1e2)][_0x1a03e9(0x189)],'source':_0x970711,'base64Cache':_0x1634e8,'status':t[_0x1a03e9(0x1ac)][_0x1a03e9(0x1e9)]}),this[_0x1a03e9(0x1bc)]();};});}[_0x528acf(0x355)](){const _0x1aef2f=_0x528acf;let _0x48c1c1=this[_0x1aef2f(0xfa)]['getConfig'](m);return(_0x48c1c1==null?void 0x0:_0x48c1c1[_0x1aef2f(0x281)])??_0x1aef2f(0x1f7);}[_0x528acf(0x3ab)](){const _0x13c2f5=_0x528acf;let _0x57be99=this[_0x13c2f5(0xfa)][_0x13c2f5(0x25f)](m);return(_0x57be99==null?void 0x0:_0x57be99[_0x13c2f5(0x36f)])??_0x13c2f5(0x2a6);}[_0x528acf(0x1cc)](){const _0x22760b=_0x528acf;let _0x4689c4=this[_0x22760b(0xfa)][_0x22760b(0x25f)](m);return(_0x4689c4==null?void 0x0:_0x4689c4[_0x22760b(0x238)])??location[_0x22760b(0x35a)];}[_0x528acf(0x17d)](_0x12c94a,_0xc4cd73){const _0x231b7a=_0x528acf;return _0x12c94a[_0x231b7a(0x175)](_0x231b7a(0x3d0),_0xc4cd73);}[_0x528acf(0x1bc)](){const _0x44c6d5=_0x528acf;--this[_0x44c6d5(0x32c)],this[_0x44c6d5(0x212)][_0x44c6d5(0x307)](this[_0x44c6d5(0x32c)]);}};J=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(l['HTTPService'])),v(0x1,t[_0x528acf(0x295)]),v(0x2,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x3a7)]))],J);let Y=class{constructor(_0x5999d0,_0x3cfaf5){const _0x2887f6=_0x528acf;this[_0x2887f6(0xfa)]=_0x5999d0,this['_HTTPService']=_0x3cfaf5;}[_0x528acf(0x31a)](){const _0x540353=_0x528acf;let _0x4ad5d7=this[_0x540353(0xfa)][_0x540353(0x25f)](m);return(_0x4ad5d7==null?void 0x0:_0x4ad5d7[_0x540353(0x402)])??'/universer-api/authz';}async[_0x528acf(0x142)](_0x14313a){const _0x236c37=_0x528acf;let _0x572f35=this[_0x236c37(0x31a)]()+_0x236c37(0x1a5);return{'list':[{'title':'People','mentions':(await this[_0x236c37(0x224)][_0x236c37(0x1b0)](_0x572f35,{'params':{'objectID':_0x14313a[_0x236c37(0x236)],'unitID':_0x14313a[_0x236c37(0x236)]}}))[_0x236c37(0x140)][_0x236c37(0x363)]['map'](_0xa33f21=>({'objectId':_0xa33f21['id'],'name':_0xa33f21[_0x236c37(0x33c)][_0x236c37(0x1c0)],'metadata':{'icon':_0xa33f21['subject'][_0x236c37(0x396)]},'label':_0xa33f21[_0x236c37(0x33c)][_0x236c37(0x1c0)],'objectType':t['MentionType']['PERSON']})),'metadata':{},'type':t[_0x236c37(0x3b8)][_0x236c37(0x240)]}]};}};Y=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x295)])),v(0x1,(0x0,t[_0x528acf(0x17f)])(l[_0x528acf(0x3f0)]))],Y);let X=class extends t['RxDisposable']{constructor(_0xd39b6d,_0x5426f2,_0x1ad20c,_0x11fe5e,_0x619e4d){const _0x4a91f4=_0x528acf;super(),this['_injector']=_0xd39b6d,this[_0x4a91f4(0x416)]=_0x5426f2,this['_permissionService']=_0x1ad20c,this[_0x4a91f4(0x206)]=_0x11fe5e,this[_0x4a91f4(0x102)]=_0x619e4d,this['_initUnitPermissionChange'](),this[_0x4a91f4(0x2ac)]();}['_initCloseConn'](){const _0x120d08=_0x528acf;let _0xe2acda=async _0x5212fc=>{const _0x3453f0=_0x3420;(await this[_0x3453f0(0x206)][_0x3453f0(0x1d1)](_0x5212fc))[_0x3453f0(0x115)]['pipe']((0x0,s['filter'])(_0x37292f=>_0x37292f[_0x3453f0(0x1f0)]===e[_0x3453f0(0x330)][_0x3453f0(0x2bd)]),(0x0,s[_0x3453f0(0x25a)])(this[_0x3453f0(0x2b0)]))[_0x3453f0(0x367)](_0x5d6311=>{const _0x15fec6=_0x3453f0;let {reason:_0x271e27}=_0x5d6311[_0x15fec6(0x325)];this[_0x15fec6(0x102)]['emitEvent']({'id':'CLOSE_ROOM','data':_0x271e27}),this[_0x15fec6(0x31d)][_0x15fec6(0x3e8)](new r[(_0x15fec6(0x3bc))](_0x5212fc)['id'],!0x1),this[_0x15fec6(0x206)][_0x15fec6(0x408)](_0x5212fc);});};(0x0,i['merge'])(this[_0x120d08(0x416)]['getTypeOfUnitAdded$'](t[_0x120d08(0x274)]['UNIVER_SHEET']),this[_0x120d08(0x416)]['getTypeOfUnitAdded$'](t[_0x120d08(0x274)][_0x120d08(0x214)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](t['UniverInstanceType'][_0x120d08(0x1eb)]),this[_0x120d08(0x416)][_0x120d08(0x1dc)](t['UniverInstanceType'][_0x120d08(0x15a)]))[_0x120d08(0x3cf)]((0x0,s[_0x120d08(0x1f4)])(_0x509078=>_0x509078[_0x120d08(0x20d)][_0x120d08(0x1bb)]()),(0x0,s[_0x120d08(0x1e0)])(_0x134af8=>!(0x0,t[_0x120d08(0x382)])(_0x134af8)),(0x0,s['takeUntil'])(this[_0x120d08(0x2b0)]))[_0x120d08(0x367)](_0x4f8cf1=>{_0xe2acda(_0x4f8cf1);});}[_0x528acf(0x1a8)](){const _0x41eb22=_0x528acf;let _0x22a117=async _0x1ce9a3=>{const _0xa2e2c4=_0x3420;let _0x4ef67f=await this[_0xa2e2c4(0x206)][_0xa2e2c4(0x1d1)](_0x1ce9a3),_0x4a7775=this['_injector'][_0xa2e2c4(0x1b0)](r[_0xa2e2c4(0x316)]);_0x4ef67f[_0xa2e2c4(0x115)][_0xa2e2c4(0x3cf)]((0x0,s[_0xa2e2c4(0x1e0)])(_0x422319=>_0x422319[_0xa2e2c4(0x1f0)]===e[_0xa2e2c4(0x330)]['UPDATE_PERMISSION_OBJ']),(0x0,s[_0xa2e2c4(0x25a)])(this[_0xa2e2c4(0x2b0)]))[_0xa2e2c4(0x367)](_0x2fb4c0=>{const _0x16837f=_0xa2e2c4;let {objectId:_0x3129da}=_0x2fb4c0['data'];_0x3129da===_0x1ce9a3?_0x4a7775[_0x16837f(0x22d)](_0x1ce9a3):_0x4a7775[_0x16837f(0x1e1)](_0x1ce9a3,_0x3129da);});};(0x0,i[_0x41eb22(0x1c3)])(this[_0x41eb22(0x416)][_0x41eb22(0x1dc)](t[_0x41eb22(0x274)][_0x41eb22(0x2df)]))[_0x41eb22(0x3cf)]((0x0,s[_0x41eb22(0x1f4)])(_0x54d696=>_0x54d696[_0x41eb22(0x20d)][_0x41eb22(0x1bb)]()),(0x0,s[_0x41eb22(0x1e0)])(_0x5e7f4e=>!(0x0,t[_0x41eb22(0x382)])(_0x5e7f4e)),(0x0,s[_0x41eb22(0x25a)])(this[_0x41eb22(0x2b0)]))[_0x41eb22(0x367)](_0x35a2ca=>{_0x22a117(_0x35a2ca);});}};X=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x1,t['IUniverInstanceService']),v(0x2,t[_0x528acf(0x352)]),v(0x3,(0x0,t['Inject'])(V)),v(0x4,(0x0,t[_0x528acf(0x17f)])(_))],X);let Z=class{constructor(_0x1fda30,_0x541b85){const _0x5a0bdc=_0x528acf;this[_0x5a0bdc(0xfa)]=_0x1fda30,this[_0x5a0bdc(0x1ff)]=_0x541b85;}async[_0x528acf(0x3db)](_0x2f9fbe,_0x17849c){const _0x578792=_0x528acf;var _0x1e4ab8;let {unitID:_0x5ca375,type:_0x2f0716,revision:_0x58aad2=0x0}=_0x17849c,_0x490e8f=this[_0x578792(0x297)]()+'/'+_0x2f0716+_0x578792(0x187)+_0x5ca375+_0x578792(0x302)+_0x58aad2,_0x3e0d74=(await this[_0x578792(0x1ff)][_0x578792(0x1b0)](_0x490e8f))[_0x578792(0x140)],_0x19e622=(_0x1e4ab8=_0x3e0d74[_0x578792(0x126)])==null?void 0x0:_0x1e4ab8[_0x578792(0x128)];if(_0x19e622){let _0x500ef8=_0x19e622==null?void 0x0:_0x19e622[_0x578792(0x136)];_0x19e622[_0x578792(0x136)]=e[_0x578792(0x35c)][_0x578792(0x15d)]((0x0,e[_0x578792(0x3a5)])(_0x500ef8)),Object[_0x578792(0x33e)](_0x19e622[_0x578792(0x21f)])['forEach'](([,_0x6896d6])=>{const _0x3e306e=_0x578792;let _0xd58060=_0x6896d6[_0x3e306e(0x136)];_0x6896d6['originalMeta']=e['textEncoder'][_0x3e306e(0x15d)]((0x0,e[_0x3e306e(0x3a5)])(_0xd58060));});}return _0x3e0d74;}async[_0x528acf(0x204)](_0x2051b1,_0x5f3109){const _0x199e6a=_0x528acf;let {unitID:_0x53c728,type:_0x3b99c9,blockID:_0xadbaca}=_0x5f3109,_0x2a2aeb=this[_0x199e6a(0x218)]()+'/'+_0x3b99c9+'/unit/'+_0x53c728+_0x199e6a(0x3ba)+_0xadbaca;return(await this[_0x199e6a(0x1ff)][_0x199e6a(0x1b0)](_0x2a2aeb))[_0x199e6a(0x140)];}async['getDeserializedSheetBlock'](_0x13ac63,_0x41881d){const _0x525edf=_0x528acf;let {unitID:_0x527bc4,type:_0xfb21d9,blockID:_0x4456b9}=_0x41881d,_0xce30f3=this[_0x525edf(0x218)]()+_0x525edf(0x3ba)+_0xfb21d9+_0x525edf(0x187)+_0x527bc4+_0x525edf(0x3ba)+_0x4456b9;return(await this['_httpService']['get'](_0xce30f3))[_0x525edf(0x140)];}async[_0x528acf(0x27f)](_0x5c909a,_0xcb64cc){const _0x3e2706=_0x528acf;let {unitID:_0x1a8048,type:_0x3249e8,from:_0x219490,to:_0x553373}=_0xcb64cc,_0x248d2c=this[_0x3e2706(0x218)]()+'/'+_0x3249e8+_0x3e2706(0x187)+_0x1a8048+'/fetchmissing?from='+_0x219490+_0x3e2706(0x2eb)+_0x553373;return(await this[_0x3e2706(0x1ff)]['get'](_0x248d2c))['body'];}[_0x528acf(0x297)](){const _0x39dd88=_0x528acf;return this['_configService'][_0x39dd88(0x25f)](_0x39dd88(0x1e6))??this[_0x39dd88(0x218)]();}['_getAPIPrefix'](){const _0x10053c=_0x528acf;let _0x590009=this[_0x10053c(0xfa)][_0x10053c(0x25f)](m);return(_0x590009==null?void 0x0:_0x590009[_0x10053c(0x256)])??_0x10053c(0xfc);}async['getResourcesRequest'](_0x21c851,_0x276c44){const _0x154b7d=_0x528acf;let _0x752c08=_0x154b7d(0x1b3)+_0x276c44[_0x154b7d(0x191)]+_0x154b7d(0x187)+_0x276c44['unitID']+'/resources';return(await this[_0x154b7d(0x1ff)]['get'](_0x752c08,{'params':{'resourceId':JSON['stringify'](_0x276c44[_0x154b7d(0x2d8)])}}))[_0x154b7d(0x140)];}[_0x528acf(0x3e1)](){const _0x8c60f4=_0x528acf;throw Error(_0x8c60f4(0x36d));}['updateSnapshot'](){const _0x578ebf=_0x528acf;throw Error(_0x578ebf(0x36d));}[_0x528acf(0x314)](){const _0x91a01e=_0x528acf;throw Error(_0x91a01e(0x36d));}['saveChangeset'](){const _0x34ad97=_0x528acf;throw Error(_0x34ad97(0x36d));}[_0x528acf(0xfb)](){const _0x1922ed=_0x528acf;throw Error(_0x1922ed(0x36d));}['getLatestCsReqIdBySid'](){const _0x4d9b0f=_0x528acf;throw Error(_0x4d9b0f(0x36d));}};Z=y([v(0x0,t[_0x528acf(0x295)]),v(0x1,(0x0,t['Inject'])(l['HTTPService']))],Z);let Q=class extends t['LocalUndoRedoService']{constructor(_0x13022c,_0x3c650c,_0x25baad,_0x3ec883,_0x1e3033){const _0x3c61d6=_0x528acf;super(_0x13022c,_0x3c650c,_0x25baad),this[_0x3c61d6(0x414)]=_0x3ec883,this['_logService']=_0x1e3033;}[_0x528acf(0x154)](_0x3bd4a5,_0x49b872){const _0x733de0=_0x528acf;let _0x50c44f=this[_0x733de0(0x298)](_0x3bd4a5);if(_0x50c44f)try{let _0x261ced=this[_0x733de0(0x249)](_0x50c44f,_0x49b872);this[_0x733de0(0x260)](_0x3bd4a5,_0x261ced);}catch(_0x46a814){this[_0x733de0(0x320)][_0x733de0(0x2d2)]('[CollaborationUndoRedoService]',_0x46a814),this[_0x733de0(0x310)](_0x3bd4a5);}let _0x4acc8f=this[_0x733de0(0x235)](_0x3bd4a5);if(_0x4acc8f)try{let _0x34c174=this[_0x733de0(0x249)](_0x4acc8f,_0x49b872);this['_substituteRedoStack'](_0x3bd4a5,_0x34c174);}catch(_0x1517ec){this[_0x733de0(0x320)][_0x733de0(0x2d2)](_0x1517ec),this[_0x733de0(0x108)](_0x3bd4a5);}}['_clearUndo'](_0x2120e){const _0x4f4cd0=_0x528acf;let _0x869eb9=this[_0x4f4cd0(0x298)](_0x2120e);_0x869eb9&&(_0x869eb9[_0x4f4cd0(0x347)]=0x0,this[_0x4f4cd0(0x221)]());}[_0x528acf(0x108)](_0x1a7b25){const _0x2487bb=_0x528acf;let _0x4c4bc5=this[_0x2487bb(0x235)](_0x1a7b25);_0x4c4bc5&&(_0x4c4bc5[_0x2487bb(0x347)]=0x0,this[_0x2487bb(0x221)]());}[_0x528acf(0x260)](_0x12de7f,_0x2c979c){const _0x13ed64=_0x528acf;this[_0x13ed64(0x2e7)][_0x13ed64(0x18b)](_0x12de7f,_0x2c979c),this[_0x13ed64(0x221)]();}[_0x528acf(0x1b7)](_0x15d582,_0x40bad4){const _0x5e41ae=_0x528acf;this[_0x5e41ae(0x229)][_0x5e41ae(0x18b)](_0x15d582,_0x40bad4),this['_updateStatus']();}[_0x528acf(0x249)](_0x32248f,_0x57db80){const _0x1694a8=_0x528acf;let _0x12d973=[],_0x1ef535=_0x57db80,_0x5e28f2=_0x57db80;for(let _0x41c4b6=_0x32248f['length']-0x1;_0x41c4b6>=0x0;_0x41c4b6--){let {unitID:_0x6034c8,undoMutations:_0x27c765,redoMutations:_0x105d23}=_0x32248f[_0x41c4b6],_0x1f03f4=this[_0x1694a8(0x414)][_0x1694a8(0x2d4)](_0x1ef535,_0x27c765),_0x42102f=this[_0x1694a8(0x414)][_0x1694a8(0x2d4)](_0x5e28f2,_0x105d23);if((0x0,e[_0x1694a8(0x286)])(_0x1f03f4)||(0x0,e[_0x1694a8(0x286)])(_0x42102f)){this['_logService'][_0x1694a8(0x2d2)](_0x1694a8(0x27a),'transformStack\x20failed!',_0x1f03f4,_0x42102f);break;}_0x1ef535=_0x1f03f4['c1Prime'],_0x5e28f2=_0x42102f[_0x1694a8(0x31b)],_0x12d973[_0x1694a8(0x19e)]({'unitID':_0x6034c8,'undoMutations':_0x1f03f4['m2Prime'],'redoMutations':_0x42102f[_0x1694a8(0x3a6)]});}return _0x12d973[_0x1694a8(0x3fd)]();}};Q=y([v(0x0,t[_0x528acf(0x3a7)]),v(0x1,t['ICommandService']),v(0x2,t['IContextService']),v(0x3,e[_0x528acf(0x27c)]),v(0x4,t[_0x528acf(0x30e)])],Q);let $=class extends t[_0x528acf(0x36a)]{constructor(_0x4824ee=ee,_0x3984d3,_0x377c89,_0x5708d7){const _0x50e0bc=_0x528acf;super(),this[_0x50e0bc(0x3c4)]=_0x4824ee,this[_0x50e0bc(0x320)]=_0x3984d3,this['_injector']=_0x377c89,this[_0x50e0bc(0xfa)]=_0x5708d7;let {..._0xf599d0}=(0x0,t[_0x50e0bc(0x1c3)])({},ee,this['_config']);if(!_0xf599d0[_0x50e0bc(0x161)])throw Error(_0x50e0bc(0x19f));this[_0x50e0bc(0x3c4)]=_0xf599d0,this[_0x50e0bc(0xfa)][_0x50e0bc(0x144)](m,_0xf599d0);}[_0x528acf(0x150)](){const _0x4961a1=_0x528acf;this[_0x4961a1(0x3de)](),this['_initDependencies']();}[_0x528acf(0x3de)](){const _0x125342=_0x528acf;var _0x19d242,_0x59b4b0;this[_0x125342(0x1d6)][_0x125342(0x2b6)](t[_0x125342(0x1fd)])&&this[_0x125342(0x320)][_0x125342(0x2d2)](_0x125342(0x11a),_0x125342(0x2cb));let _0x5e4aa4=(0x0,t[_0x125342(0x12e)])([[t[_0x125342(0x1fd)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[S],[W],[K],[ae],[X],[_],[q],[qe,{'useClass':this['_config'][_0x125342(0x161)]}],[e[_0x125342(0x14f)],{'useClass':Z}],[t[_0x125342(0x155)],{'useClass':G}],[t['IImageIoService'],{'useClass':J}],[nt,{'useClass':U}],[t[_0x125342(0x3b5)],{'useClass':Y}],[H],[tt]],(_0x19d242=this[_0x125342(0x3c4)])==null?void 0x0:_0x19d242[_0x125342(0x415)]);if(!((_0x59b4b0=this[_0x125342(0x3c4)])!=null&&_0x59b4b0[_0x125342(0x163)])){let _0x706fc=_0x5e4aa4['findIndex'](([_0x272920])=>_0x272920===C);_0x706fc!==-0x1&&_0x5e4aa4[_0x125342(0x283)](_0x706fc,0x1);}(0x0,t[_0x125342(0x26d)])(this[_0x125342(0x1d6)],_0x5e4aa4);}[_0x528acf(0x1fa)](){const _0x502e15=_0x528acf;var _0x3ae885,_0x1fcb7c;if(this[_0x502e15(0x1d6)][_0x502e15(0x1b0)](l[_0x502e15(0x3f0)])[_0x502e15(0x10b)]({'priority':0x14,'interceptor':(0x0,l[_0x502e15(0x3d8)])({'maxParallel':0x6})}),!((_0x3ae885=this[_0x502e15(0x3c4)])!=null&&_0x3ae885[_0x502e15(0x404)])){var _0x257b21;(_0x257b21=this[_0x502e15(0x1d6)][_0x502e15(0x1b0)](x,t[_0x502e15(0x315)][_0x502e15(0x2e1)]))==null||_0x257b21[_0x502e15(0x2be)]();}(_0x1fcb7c=this[_0x502e15(0x3c4)])!=null&&_0x1fcb7c[_0x502e15(0x387)]&&(0x0,t['touchDependencies'])(this['_injector'],[[W]]),(0x0,t[_0x502e15(0x34e)])(this[_0x502e15(0x1d6)],[[K],[H],[X]]);}};g($,'pluginName',_0x528acf(0x16f)),g($,_0x528acf(0x3ce),$e),g($,'version',et),$=y([(0x0,t[_0x528acf(0x31f)])(u[_0x528acf(0x19c)],l[_0x528acf(0x3be)],e[_0x528acf(0x265)]),v(0x1,t[_0x528acf(0x30e)]),v(0x2,(0x0,t[_0x528acf(0x17f)])(t['Injector'])),v(0x3,t[_0x528acf(0x295)])],$),Object[_0x528acf(0x2b7)](exports,'AuthzIoHttpService',{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x528acf(0x2b7)](exports,'AwaitingState',{'enumerable':!0x0,'get':function(){return k;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x294),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x3d6),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x2f7),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x528acf(0x305)]=m,Object['defineProperty'](exports,_0x528acf(0x16d),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x156),{'enumerable':!0x0,'get':function(){return H;}}),Object['defineProperty'](exports,_0x528acf(0x2ff),{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x105),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x145),{'enumerable':!0x0,'get':function(){return ve;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x1f1),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x220),{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x528acf(0x3c8)]=Be,exports[_0x528acf(0x25e)]=ie,exports['CollaborationUIEventService']=_,Object[_0x528acf(0x2b7)](exports,_0x528acf(0x257),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x528acf(0x1df)]=ae,Object[_0x528acf(0x2b7)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return j;}}),exports['DEFAULT_COLLAB_WEB_SOCKET_URL']=_0x528acf(0x219),exports[_0x528acf(0x210)]=_0x528acf(0x273),exports[_0x528acf(0x197)]=_0x528acf(0x309),Object['defineProperty'](exports,'DataLoaderService',{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x1cf),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x378),{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x528acf(0x1e7)]=_0x528acf(0x2a8),exports[_0x528acf(0x2e6)]=_0x528acf(0x372),exports[_0x528acf(0x11b)]=nt,exports[_0x528acf(0x3b0)]=Xe,exports['ICollaborationSocketService']=qe,exports[_0x528acf(0x26b)]=x,exports[_0x528acf(0x2e2)]=We,exports[_0x528acf(0x16b)]=C,exports['LOCAL_CACHE_INTERVAL']=0x3e8,exports[_0x528acf(0x272)]=_0x528acf(0x16a),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x334),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x20a),{'enumerable':!0x0,'get':function(){return Y;}}),Object['defineProperty'](exports,_0x528acf(0x354),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x207),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x139),{'enumerable':!0x0,'get':function(){return O;}}),exports['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x528acf(0x104),exports[_0x528acf(0x3a8)]='RETRY_CONNECTING_MAX_COUNT',exports[_0x528acf(0x16e)]=ge,Object['defineProperty'](exports,_0x528acf(0x2f5),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x312),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x528acf(0x2b7)](exports,'SlideCollaborationEntity',{'enumerable':!0x0,'get':function(){return R;}}),Object['defineProperty'](exports,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x528acf(0x2b7)](exports,'SyncedState',{'enumerable':!0x0,'get':function(){return D;}}),exports['UnitStatus']=xe,Object[_0x528acf(0x2b7)](exports,_0x528acf(0x292),{'enumerable':!0x0,'get':function(){return $;}}),exports['createUniverCollaborationAdapter']=Ze,exports[_0x528acf(0xff)]=Ge,exports[_0x528acf(0x32f)]=ye,exports[_0x528acf(0x3e9)]=Ke;
|