@univerjs-pro/collaboration-client 1.0.4 → 1.1.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-state.d.ts +51 -11
- package/lib/types/facade/f-collaboration.d.ts +3 -4
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +3 -3
- package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +1 -0
- package/lib/types/services/data-loader/data-loader.service.d.ts +9 -2
- package/lib/types/services/local-cache/local-cache.service.d.ts +11 -6
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5c9f94=_0x4bc2;(function(_0x3ea006,_0x185810){const _0x5cc461=_0x4bc2,_0x6c118c=_0x3ea006();while(!![]){try{const _0x2af99e=-parseInt(_0x5cc461(0x1a6))/0x1+-parseInt(_0x5cc461(0x1a7))/0x2+-parseInt(_0x5cc461(0x388))/0x3+parseInt(_0x5cc461(0x21e))/0x4+-parseInt(_0x5cc461(0x1e1))/0x5*(-parseInt(_0x5cc461(0x2f7))/0x6)+parseInt(_0x5cc461(0x2ad))/0x7+parseInt(_0x5cc461(0x1d6))/0x8;if(_0x2af99e===_0x185810)break;else _0x6c118c['push'](_0x6c118c['shift']());}catch(_0x3d8b31){_0x6c118c['push'](_0x6c118c['shift']());}}}(_0x3253,0x6e683));import{CollaborationEvent as _0x538b71,CompressMutationService as _0x2162d4,EmptyMutationInfo as _0x2b1099,ISnapshotServerService as _0x1425c0,ITransformService as _0x173ca8,RevisionService as _0x9b85a2,SnapshotService as _0x5dfed7,UniverCollaborationPlugin as _0xfacf11,b64DecodeUnicode as _0x523ae7,isTransformChangesetsSuccess as _0x31eeb1,isTransformMutationsWithChangesetFailure as _0x635ce5,isTransformMutationsWithChangesetSuccess as _0x2c24b6,mapDocumentTypeToUniverInstanceType as _0x4c0f7a,parseChangesetToProtocol as _0x3e125d,parseProtocolChangeset as _0xde3e04,textEncoder as _0x202300,uuidv4 as _0x209d6d}from'@univerjs-pro/collaboration';import{CommandType as _0x4a7495,DependentOn as _0x9817de,Disposable as _0x588e84,DisposableCollection as _0x21b987,IAuthzIoService as _0x18ec33,ICommandService as _0x397ef7,IConfigService as _0xf41dc9,IContextService as _0x316af7,IImageIoService as _0x3b2d53,ILogService as _0x3981ee,IMentionIOService as _0x2e02ae,IPermissionService as _0x30415d,IUndoRedoService as _0x34c2a3,IUniverInstanceService as _0x4c5cd7,ImageSourceType as _0x237f28,ImageUploadStatusType as _0x47a5be,Inject as _0xcf8d3f,Injector as _0x19ff28,JSONX as _0xdabad,LocalUndoRedoService as _0xd03d1e,LocaleService as _0x5c6337,MentionType as _0x4191c4,OBJECT_PERMISSION_CONFIG_KEY as _0x4ee50c,ObjectPermissionService as _0x126fa5,Optional as _0x1da68f,Plugin as _0x5b070b,Quantity as _0x527f9b,Rectangle as _0x393b90,RxDisposable as _0x468ac5,Tools as _0x5269d3,UniverInstanceType as _0x2efadb,UserManagerService as _0x2caeff,Workbook as _0x2b4036,createIdentifier as _0x1db16f,generateRandomId as _0x53f585,isInternalEditorID as _0x21b585,merge as _0x195f67,mergeOverrideWithDependencies as _0x448bc4,registerDependencies as _0x11234a,resolveWithBasePath as _0x6adb79,sequenceExecute as _0x146494,toDisposable as _0x2b94ed,touchDependencies as _0x393dc2}from'@univerjs/core';import{DocStateChangeManagerService as _0xb48de9,RichTextEditingMutation as _0x5b44a5}from'@univerjs/docs';import{InsertSheetMutation as _0x39ca1b,SetSelectionsOperation as _0x1ae86b,SheetPermissionInitController as _0x4be829,SheetsSelectionsService as _0x144fe1,WorkbookEditablePermission as _0x350235}from'@univerjs/sheets';import{BehaviorSubject as _0x1946cb,ReplaySubject as _0x1f4774,Subject as _0x4e03af,concatMap as _0x17473d,firstValueFrom as _0x3f95e4,map as _0x98781b,merge as _0x41572c,of as _0xf609a3,shareReplay as _0x43a741,take as _0xc0564d,takeUntil as _0x21bb40}from'rxjs';import{CmdRspCode as _0x3c0867,CombCmd as _0xcb980a,ErrorCode as _0x1aa6bc,FileSource as _0x4a6968,UnitAction as _0x4616a5,UnitObject as _0x3490f2}from'@univerjs/protocol';import{ITelemetryService as _0x53a96b}from'@univerjs/telemetry';import{delay as _0x2fc4f9,filter as _0x5d4b25,map as _0x13126a,take as _0x2c8673,takeUntil as _0x212efd}from'rxjs/operators';import{AddSlidePageMutation as _0x3cc358,EnsureSlideMasterPageMutation as _0x273390,MoveSlidePageMutation as _0x35dc8d,RemoveSlidePageMutation as _0x155725}from'@univerjs-pro/slides';import{HTTPRequest as _0x3b0f3b,HTTPService as _0x145224,ISocketService as _0x17aa40,MergeInterceptorFactory as _0xad30e1,ThresholdInterceptorFactory as _0x2c8f3e,UniverNetworkPlugin as _0x10430a}from'@univerjs/network';import{UniverLicensePlugin as _0x2ecc84,getGlobalObject as _0xcad4c5}from'@univerjs-pro/license';import{cbc as _0xd5b70f}from'@noble/ciphers/aes.js';import{concatBytes as _0x496bb6,randomBytes as _0x862e1b,utf8ToBytes as _0x50e238}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x3f4112,getDrawingImageAllowSize as _0x4b738e}from'@univerjs/drawing';const R=_0x5c9f94(0x247),gt={},_t='ws://127.0.0.1:8000/universer-api/comb/connect',vt=_0x5c9f94(0x1a9),yt=_0x5c9f94(0x25e),bt=_0x5c9f94(0x304),xt=_0x5c9f94(0x15a),St='LOCAL_CACHE_INTERVAL',Ct=0x3e8,wt='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',Tt=_0x5c9f94(0x3bc);function Et(_0x2cc12d){const _0x4ad122=_0x5c9f94;return JSON[_0x4ad122(0x2d6)](_0x2cc12d)[_0x4ad122(0x2fd)];}function Dt(_0x38812e){'@babel/helpers - typeof';const _0x3b3f36=_0x5c9f94;return Dt=typeof Symbol=='function'&&typeof Symbol[_0x3b3f36(0x1f2)]==_0x3b3f36(0x173)?function(_0x29f01a){return typeof _0x29f01a;}:function(_0x643f4c){const _0x1d1779=_0x3b3f36;return _0x643f4c&&typeof Symbol==_0x1d1779(0x2ce)&&_0x643f4c[_0x1d1779(0x376)]===Symbol&&_0x643f4c!==Symbol['prototype']?_0x1d1779(0x173):typeof _0x643f4c;},Dt(_0x38812e);}function Ot(_0x401796,_0x4295c8){const _0x24fdfe=_0x5c9f94;if(Dt(_0x401796)!=_0x24fdfe(0x220)||!_0x401796)return _0x401796;var _0x34df3f=_0x401796[Symbol['toPrimitive']];if(_0x34df3f!==void 0x0){var _0x41d4da=_0x34df3f[_0x24fdfe(0x23e)](_0x401796,_0x4295c8||'default');if(Dt(_0x41d4da)!=_0x24fdfe(0x220))return _0x41d4da;throw TypeError(_0x24fdfe(0x2a3));}return(_0x4295c8===_0x24fdfe(0x2df)?String:Number)(_0x401796);}function kt(_0x421872){const _0x573650=_0x5c9f94;var _0x434c8=Ot(_0x421872,_0x573650(0x2df));return Dt(_0x434c8)=='symbol'?_0x434c8:_0x434c8+'';}function z(_0x1b2347,_0x475786,_0x465e53){const _0x2ba0b7=_0x5c9f94;return(_0x475786=kt(_0x475786))in _0x1b2347?Object[_0x2ba0b7(0x1b2)](_0x1b2347,_0x475786,{'value':_0x465e53,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1b2347[_0x475786]=_0x465e53,_0x1b2347;}let At=function(_0x2f65c6){const _0x43a3a4=_0x5c9f94;return _0x2f65c6['OTHER_CLIENT_EDITING']=_0x43a3a4(0x39c),_0x2f65c6['PERMISSION_DENIED']=_0x43a3a4(0x1c5),_0x2f65c6[_0x43a3a4(0x260)]=_0x43a3a4(0x260),_0x2f65c6[_0x43a3a4(0x137)]=_0x43a3a4(0x137),_0x2f65c6[_0x43a3a4(0x2be)]='CONFLICT',_0x2f65c6[_0x43a3a4(0x31b)]=_0x43a3a4(0x31b),_0x2f65c6[_0x43a3a4(0x175)]=_0x43a3a4(0x175),_0x2f65c6['SOCKET_FAILED_RETRY']=_0x43a3a4(0x2c3),_0x2f65c6[_0x43a3a4(0x1d7)]='SOCKET_FAILED',_0x2f65c6[_0x43a3a4(0x1b7)]=_0x43a3a4(0x1b7),_0x2f65c6;}({});var B=class{constructor(){const _0x9934d7=_0x5c9f94;z(this,_0x9934d7(0x385),new _0x4e03af()),z(this,_0x9934d7(0x1ad),this[_0x9934d7(0x385)][_0x9934d7(0x190)]());}[_0x5c9f94(0x3a8)](_0x571d70){const _0x2d456d=_0x5c9f94;this[_0x2d456d(0x385)][_0x2d456d(0x3b1)](_0x571d70);}},jt=class{constructor(){const _0x3a32ac=_0x5c9f94;z(this,'_commentUpdate$',new _0x4e03af()),z(this,_0x3a32ac(0x2d0),this[_0x3a32ac(0x1d1)][_0x3a32ac(0x190)]());}['onCommentUpdate'](_0x1d66d7){const _0x336537=_0x5c9f94;this[_0x336537(0x1d1)][_0x336537(0x3b1)](_0x1d66d7);}};function V(_0x104a17,_0x5d2771){return function(_0x981871,_0x219c4f){_0x5d2771(_0x981871,_0x219c4f,_0x104a17);};}function H(_0x4ac523,_0x2c7a1b,_0x2dbcad,_0xbf20d1){const _0x26bceb=_0x5c9f94;var _0x1a12ce=arguments[_0x26bceb(0x2fd)],_0x4c55c0=_0x1a12ce<0x3?_0x2c7a1b:_0xbf20d1===null?_0xbf20d1=Object[_0x26bceb(0x32b)](_0x2c7a1b,_0x2dbcad):_0xbf20d1,_0x33029e;if(typeof Reflect==_0x26bceb(0x220)&&typeof Reflect['decorate']==_0x26bceb(0x2ce))_0x4c55c0=Reflect['decorate'](_0x4ac523,_0x2c7a1b,_0x2dbcad,_0xbf20d1);else{for(var _0x3ee8e0=_0x4ac523[_0x26bceb(0x2fd)]-0x1;_0x3ee8e0>=0x0;_0x3ee8e0--)(_0x33029e=_0x4ac523[_0x3ee8e0])&&(_0x4c55c0=(_0x1a12ce<0x3?_0x33029e(_0x4c55c0):_0x1a12ce>0x3?_0x33029e(_0x2c7a1b,_0x2dbcad,_0x4c55c0):_0x33029e(_0x2c7a1b,_0x2dbcad))||_0x4c55c0);}return _0x1a12ce>0x3&&_0x4c55c0&&Object[_0x26bceb(0x1b2)](_0x2c7a1b,_0x2dbcad,_0x4c55c0),_0x4c55c0;}let Mt=class extends _0x588e84{constructor(_0x56e010){const _0x325a00=_0x5c9f94;super(),this[_0x325a00(0x28a)]=_0x56e010,z(this,_0x325a00(0x341),new Map()),z(this,_0x325a00(0x13d),new _0x4e03af()),this[_0x325a00(0x189)](_0x41572c(this['_univerInstanceService'][_0x325a00(0x2ae)](_0x2efadb[_0x325a00(0x21d)])[_0x325a00(0x270)](_0x13126a(_0x103676=>_0x103676['getUnitId']())),this[_0x325a00(0x28a)][_0x325a00(0x2ae)](_0x2efadb['UNIVER_DOC'])[_0x325a00(0x270)](_0x13126a(_0x5c609b=>_0x5c609b['getUnitId']())),this[_0x325a00(0x28a)][_0x325a00(0x2ae)](_0x2efadb[_0x325a00(0x3ed)])[_0x325a00(0x270)](_0x13126a(_0x1c4557=>_0x1c4557['getUnitId']())),this['_univerInstanceService'][_0x325a00(0x2ae)](_0x2efadb[_0x325a00(0x3a6)])[_0x325a00(0x270)](_0x13126a(_0x4f1b03=>_0x4f1b03[_0x325a00(0x394)]())))[_0x325a00(0x168)](_0xe67d6a=>this[_0x325a00(0x3d8)](_0xe67d6a)));}[_0x5c9f94(0x357)](_0x112ce1){const _0x1d0356=_0x5c9f94;return this[_0x1d0356(0x341)][_0x1d0356(0x3e3)](_0x112ce1)?_0xf609a3(this[_0x1d0356(0x341)]['get'](_0x112ce1)):this['_roomCreated$'][_0x1d0356(0x270)](_0x13126a(_0x30fd78=>{const _0xe58bf0=_0x1d0356;if(_0x30fd78===_0x112ce1)return this[_0xe58bf0(0x341)]['get'](_0x30fd78);}));}[_0x5c9f94(0x283)](_0x3923fd,_0x534072){const _0x42c0b3=_0x5c9f94;let _0x424628=this[_0x42c0b3(0x341)][_0x42c0b3(0x160)](_0x3923fd);_0x424628||(_0x424628=new Nt(),this[_0x42c0b3(0x341)][_0x42c0b3(0x1b3)](_0x3923fd,_0x424628),this['_roomCreated$'][_0x42c0b3(0x3b1)](_0x3923fd)),_0x424628[_0x42c0b3(0x283)](_0x534072);}[_0x5c9f94(0x396)](_0x4a250c,_0x35476e){const _0x1f5229=_0x5c9f94;let _0x52ffcc=this[_0x1f5229(0x341)]['get'](_0x4a250c);_0x52ffcc&&_0x52ffcc[_0x1f5229(0x396)](_0x35476e);}[_0x5c9f94(0x1e9)](_0x3bf9b2){const _0x33c51=_0x5c9f94;return this[_0x33c51(0x341)]['get'](_0x3bf9b2);}[_0x5c9f94(0x186)](_0x58e891,_0x2c3de4){const _0x1d03a8=_0x5c9f94;let _0x2bf2f8=this[_0x1d03a8(0x341)][_0x1d03a8(0x160)](_0x58e891);if(_0x2bf2f8)return _0x2bf2f8[_0x1d03a8(0x186)](_0x2c3de4);}[_0x5c9f94(0x3d8)](_0x39ac5b){const _0x9d1f07=_0x5c9f94;let _0x4478bd=this[_0x9d1f07(0x341)]['get'](_0x39ac5b);_0x4478bd&&(_0x4478bd[_0x9d1f07(0x316)](),this['_roomMembers'][_0x9d1f07(0x1e8)](_0x39ac5b));}[_0x5c9f94(0x316)](){const _0x396603=_0x5c9f94;this[_0x396603(0x341)][_0x396603(0x2de)](_0x5eeca3=>_0x5eeca3[_0x396603(0x316)]()),this['_roomMembers'][_0x396603(0x19e)](),this['_roomCreated$'][_0x396603(0x31a)]();}};Mt=H([V(0x0,_0x4c5cd7)],Mt);var Nt=class extends _0x588e84{constructor(..._0x24baf0){const _0x2fe885=_0x5c9f94;super(..._0x24baf0),z(this,'_members',new Map()),z(this,_0x2fe885(0x140),new _0x1946cb(this[_0x2fe885(0x222)])),z(this,_0x2fe885(0x194),this[_0x2fe885(0x140)][_0x2fe885(0x190)]());}[_0x5c9f94(0x316)](){const _0x29667a=_0x5c9f94;this[_0x29667a(0x222)][_0x29667a(0x19e)](),this['_members$']['complete']();}['updateMember'](_0x1e060f){const _0xeccd80=_0x5c9f94;this[_0xeccd80(0x222)][_0xeccd80(0x1b3)](_0x1e060f[_0xeccd80(0x331)],_0x1e060f),this[_0xeccd80(0x1ca)]();}['removeMember'](_0x325568){const _0x24051a=_0x5c9f94;this[_0x24051a(0x222)]['delete'](_0x325568),this[_0x24051a(0x1ca)]();}[_0x5c9f94(0x186)](_0x4f0be9){const _0x5277ca=_0x5c9f94;return this[_0x5277ca(0x222)][_0x5277ca(0x160)](_0x4f0be9);}[_0x5c9f94(0x22a)](){const _0x29c0b4=_0x5c9f94;return Array['from'](this[_0x29c0b4(0x222)][_0x29c0b4(0x381)]());}[_0x5c9f94(0x1ca)](){const _0x51848e=_0x5c9f94;this[_0x51848e(0x140)][_0x51848e(0x3b1)](this[_0x51848e(0x222)]);}};function Pt(_0xde1693,_0x3b676b){const _0xa49d6a=_0x5c9f94;if(It(_0xde1693))return _0x3b676b;if(_0x3b676b[_0xa49d6a(0x198)]===_0x538b71[_0xa49d6a(0x2c5)]){let _0xf52a71=Vt(_0xde1693),_0x5a036d=_0x3b676b;return{..._0x5a036d,'data':{..._0x5a036d[_0xa49d6a(0x3cf)],'unitID':_0xde1693[_0xa49d6a(0x141)]['unitId'],'unitType':_0xde1693[_0xa49d6a(0x141)][_0xa49d6a(0x2fb)]??_0x5a036d['data'][_0xa49d6a(0x2fb)],'changeset':_0xf52a71[_0xa49d6a(0x1d4)](_0x5a036d[_0xa49d6a(0x3cf)][_0xa49d6a(0x226)],Ht(_0xde1693))}};}if(_0x3b676b[_0xa49d6a(0x198)]===_0x538b71[_0xa49d6a(0x25a)]){let _0x44018d=_0x3b676b;return{..._0x44018d,'data':{..._0x44018d['data'],'unitID':_0xde1693[_0xa49d6a(0x141)]['unitId'],'unitType':_0xde1693['target']['unitType']??_0x44018d[_0xa49d6a(0x3cf)][_0xa49d6a(0x2fb)]}};}return _0x3b676b;}function Ft(_0x495c10,_0x38acac){const _0x221db8=_0x5c9f94;if(It(_0x495c10))return[_0x38acac];switch(_0x38acac[_0x221db8(0x198)]){case _0x538b71[_0x221db8(0x33b)]:return[Lt(_0x495c10,_0x38acac)];case _0x538b71[_0x221db8(0x378)]:return[zt(_0x495c10,_0x38acac)];case _0x538b71['CHANGESET_SHOULD_RETRY']:return[Rt(_0x495c10,_0x38acac)];default:return[_0x38acac];}}function It(_0x53d32b){const _0xfec618=_0x5c9f94;return _0x53d32b['target'][_0xfec618(0x3e4)]==null&&_0x53d32b[_0xfec618(0x141)]['unitId']===_0x53d32b[_0xfec618(0x37d)]&&!_0x53d32b[_0xfec618(0x226)];}function Lt(_0x25a877,_0xc00933){return{..._0xc00933,'data':_0x3e125d(Bt(_0x25a877,_0xde3e04(_0xc00933['data'])))};}function Rt(_0xf1459d,_0x628bbd){const _0x3ddeb0=_0x5c9f94;return{..._0x628bbd,'data':Bt(_0xf1459d,_0x628bbd[_0x3ddeb0(0x3cf)])};}function zt(_0x37ed37,_0x2ddd3c){const _0x3a3839=_0x5c9f94;let _0x241804=_0x2ddd3c[_0x3a3839(0x3cf)];return{..._0x2ddd3c,'data':{..._0x241804,'changesets':_0x241804[_0x3a3839(0x329)][_0x3a3839(0x375)](_0x165aba=>_0x3e125d(Bt(_0x37ed37,_0xde3e04(_0x165aba))))}};}function Bt(_0x7575bd,_0x3233b6){const _0x4b3743=_0x5c9f94;return Vt(_0x7575bd)[_0x4b3743(0x3db)](_0x3233b6,Ht(_0x7575bd));}function Vt(_0x5e8934){const _0x39d770=_0x5c9f94;if(!_0x5e8934[_0x39d770(0x226)])throw Error(_0x39d770(0x214));return _0x5e8934[_0x39d770(0x226)];}function Ht(_0x3c752f){const _0x40aa2b=_0x5c9f94;return{'localUnitId':_0x3c752f[_0x40aa2b(0x37d)],'unitType':_0x3c752f[_0x40aa2b(0x2fb)],'target':_0x3c752f[_0x40aa2b(0x141)]};}let Ut=function(_0x31123b){const _0x193dfd=_0x5c9f94;return _0x31123b[_0x31123b['IDLE']=0x0]=_0x193dfd(0x3a2),_0x31123b[_0x31123b[_0x193dfd(0x2e9)]=0x1]='JOINING',_0x31123b[_0x31123b[_0x193dfd(0x398)]=0x2]=_0x193dfd(0x398),_0x31123b[_0x31123b['ONLINE']=0x3]='ONLINE',_0x31123b;}({});const Wt={[_0x3c0867['FAIL']]:_0x5c9f94(0x346),[_0x3c0867['JOIN_ROOM_FULL']]:_0x5c9f94(0x17e),[_0x3c0867[_0x5c9f94(0x1ef)]]:_0x5c9f94(0x36f),[_0x3c0867[_0x5c9f94(0x28c)]]:_0x5c9f94(0x174),[_0x3c0867['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x5c9f94(0x239)};let Gt=class extends _0x468ac5{get[_0x5c9f94(0x163)](){const _0xbf0ab3=_0x5c9f94;return this[_0xbf0ab3(0x1ee)][_0xbf0ab3(0x154)]();}constructor(_0x122ec1,_0x164aaf,_0x468424,_0x50f6c2,_0x2dd6e9,_0x446fc5,_0xf090cb,_0x3f78d2){const _0x4b6985=_0x5c9f94;super(),this['_identity']=_0x122ec1,this[_0x4b6985(0x26a)]=_0x468424,this[_0x4b6985(0x323)]=_0x50f6c2,this[_0x4b6985(0x139)]=_0x2dd6e9,this[_0x4b6985(0x3c9)]=_0x446fc5,this[_0x4b6985(0x143)]=_0xf090cb,this[_0x4b6985(0x2b5)]=_0x3f78d2,z(this,'_sessionStatus$',new _0x1946cb(0x0)),z(this,_0x4b6985(0x225),this[_0x4b6985(0x1ee)][_0x4b6985(0x190)]()),z(this,_0x4b6985(0x385),new _0x4e03af()),z(this,_0x4b6985(0x1ad),this['_event$']['asObservable']()),z(this,_0x4b6985(0x18d),void 0x0),z(this,_0x4b6985(0x20e),void 0x0),z(this,_0x4b6985(0x3c7),void 0x0),z(this,_0x4b6985(0x15d),!0x1),z(this,_0x4b6985(0x1f9),null),this[_0x4b6985(0x15d)]=!!this[_0x4b6985(0x2b5)],_0x164aaf[_0x4b6985(0x270)](_0x21bb40(this['dispose$']))[_0x4b6985(0x168)](_0x48cf24=>{const _0x5c01c8=_0x4b6985;if(_0x48cf24!==void 0x0){if(this['_socket']=_0x48cf24,_0x48cf24)this[_0x5c01c8(0x1f3)](_0x48cf24),this[_0x5c01c8(0x20e)]=_0x48cf24[_0x5c01c8(0x366)][_0x5c01c8(0x168)](_0x1acaba=>{const _0x50df3e=_0x5c01c8;_0x1acaba['routeKey']===this[_0x50df3e(0x3d9)]['target'][_0x50df3e(0x13c)]&&this[_0x50df3e(0x377)](_0x1acaba);});else{var _0x41fc77;this[_0x5c01c8(0x2f9)](),this[_0x5c01c8(0x1ee)][_0x5c01c8(0x3b1)](0x2),(_0x41fc77=this[_0x5c01c8(0x20e)])==null||_0x41fc77[_0x5c01c8(0x20f)](),this[_0x5c01c8(0x20e)]=null;}}});}[_0x5c9f94(0x395)](){const _0x5def27=_0x5c9f94;var _0x591232;return((_0x591232=this[_0x5def27(0x18d)])==null?void 0x0:_0x591232['memberID'])??null;}[_0x5c9f94(0x316)](){const _0xa9c9a1=_0x5c9f94;super[_0xa9c9a1(0x316)](),this[_0xa9c9a1(0x17d)](),this['dispose$'][_0xa9c9a1(0x3b1)](),this['dispose$'][_0xa9c9a1(0x31a)]();}[_0x5c9f94(0x17d)](){const _0x23fc8c=_0x5c9f94;var _0x514dc5;this[_0x23fc8c(0x2f9)](),(_0x514dc5=this['_socket'])==null||_0x514dc5['send']({'cmd':_0xcb980a[_0x23fc8c(0x17c)],'data':{'roomID':this[_0x23fc8c(0x3d9)][_0x23fc8c(0x141)][_0x23fc8c(0x13c)]}}),this[_0x23fc8c(0x385)][_0x23fc8c(0x31a)](),this[_0x23fc8c(0x1ee)][_0x23fc8c(0x31a)]();}['_onCombEvent'](_0x4e3f6c){const _0x470ee2=_0x5c9f94;_0x4e3f6c[_0x470ee2(0x14d)]===_0xcb980a[_0x470ee2(0x164)]?this[_0x470ee2(0x138)](_0x4e3f6c):_0x4e3f6c[_0x470ee2(0x14d)]===_0xcb980a['RECV']&&this[_0x470ee2(0x18e)](_0x4e3f6c);}[_0x5c9f94(0x1f3)](_0x544d2c){const _0x2491e3=_0x5c9f94;this['_sessionStatus$'][_0x2491e3(0x3b1)](0x1),_0x544d2c[_0x2491e3(0x308)]({'cmd':_0xcb980a[_0x2491e3(0x164)],'routeKey':this['_identity'][_0x2491e3(0x141)][_0x2491e3(0x13c)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x2491e3(0x141)][_0x2491e3(0x13c)]}]}});}[_0x5c9f94(0x138)](_0x55114d){const _0x1e14e7=_0x5c9f94;var _0x528613;if(_0x55114d[_0x1e14e7(0x267)]in Wt){this[_0x1e14e7(0x143)][_0x1e14e7(0x3a8)]({'id':_0x1e14e7(0x175),'data':Wt[_0x55114d[_0x1e14e7(0x267)]]}),this[_0x1e14e7(0x1ee)]['next'](0x2);return;}this['_sessionStatus$'][_0x1e14e7(0x3b1)](0x3);let _0x2e9826=(_0x528613=_0x55114d['data']['roomInfos'][this[_0x1e14e7(0x3d9)]['target'][_0x1e14e7(0x13c)]])==null?void 0x0:_0x528613['members'];_0x2e9826&&_0x2e9826['forEach'](_0x1d8ef9=>this[_0x1e14e7(0x139)]['updateMember'](this[_0x1e14e7(0x3d9)][_0x1e14e7(0x37d)],_0x1d8ef9));}[_0x5c9f94(0x18e)](_0x174bd0){const _0x583ad7=_0x5c9f94;try{let _0x17172e=Ft(this[_0x583ad7(0x3d9)],_0x174bd0[_0x583ad7(0x3cf)]);for(let _0xe85928 of _0x17172e)switch(_0xe85928[_0x583ad7(0x198)]){case _0x538b71[_0x583ad7(0x38e)]:this[_0x583ad7(0x330)](_0xe85928),this[_0x583ad7(0x385)][_0x583ad7(0x3b1)](_0xe85928);break;case _0x538b71['USERS_LEAVE']:this['_onUserLeave'](_0xe85928),this[_0x583ad7(0x385)][_0x583ad7(0x3b1)](_0xe85928);break;case _0x538b71['CHANGESET_ACK']:case _0x538b71[_0x583ad7(0x24e)]:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this[_0x583ad7(0x385)]['next'](_0xe85928);break;case _0x538b71['MSG_FOR_ERROR']:this[_0x583ad7(0x26a)][_0x583ad7(0x2dc)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x583ad7(0x2d6)](_0xe85928)),this[_0x583ad7(0x385)][_0x583ad7(0x3b1)](_0xe85928);break;case _0x538b71[_0x583ad7(0x286)]:this[_0x583ad7(0x3c9)][_0x583ad7(0x146)](_0xe85928[_0x583ad7(0x3cf)]),this['_event$'][_0x583ad7(0x3b1)](_0xe85928);break;default:this['_event$'][_0x583ad7(0x3b1)](_0xe85928);}}catch(_0x5d546e){this[_0x583ad7(0x26a)][_0x583ad7(0x2dc)](_0x5d546e,_0x174bd0);}}[_0x5c9f94(0x330)](_0x19337f){const _0x843c7=_0x5c9f94;this['_memberService'][_0x843c7(0x283)](this[_0x843c7(0x3d9)][_0x843c7(0x37d)],_0x19337f['data']);}[_0x5c9f94(0x23f)](_0x3736ee){const _0xc4c548=_0x5c9f94;this[_0xc4c548(0x139)]['removeMember'](this['_identity'][_0xc4c548(0x37d)],_0x3736ee['data'][_0xc4c548(0x331)]);}async[_0x5c9f94(0x308)](_0x492b40,_0x495cd4){const _0x1f0b44=_0x5c9f94;if(this['sessionStatus']!==0x3||!this['_socket'])throw Error(_0x1f0b44(0x218));try{let _0x2be7ad=Pt(this[_0x1f0b44(0x3d9)],_0x492b40);_0x2be7ad['eventID']===_0x538b71[_0x1f0b44(0x2c5)]&&(this[_0x1f0b44(0x368)](),this[_0x1f0b44(0x1dc)](_0x2be7ad)),this['_socket'][_0x1f0b44(0x308)]({'cmd':_0xcb980a['INGEST'],'routeKey':this[_0x1f0b44(0x3d9)][_0x1f0b44(0x141)][_0x1f0b44(0x13c)],'routeType':'','data':_0x2be7ad});}catch(_0x221930){this['_logService']['error'](_0x221930);}}[_0x5c9f94(0x368)](){const _0xceec4b=_0x5c9f94;this[_0xceec4b(0x3c7)]=setTimeout(()=>{const _0x2e4625=_0xceec4b;this[_0x2e4625(0x3c7)]=null,this['_collaborationUIEventService']['emitEvent']({'id':_0x2e4625(0x1b7)});},this[_0xceec4b(0x323)][_0xceec4b(0x1a1)]('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x5c9f94(0x2a0)](){const _0x1262cf=_0x5c9f94;this[_0x1262cf(0x3c7)]&&=(clearTimeout(this[_0x1262cf(0x3c7)]),null);}[_0x5c9f94(0x1dc)](_0x466d76){const _0x922ac7=_0x5c9f94;if(!this[_0x922ac7(0x15d)])return;let {data:_0x3b9bc5}=_0x466d76,{unitID:_0xddd22f,changeset:_0x52ddeb}=_0x3b9bc5,{mutations:_0x197d47,type:_0x1488d5}=_0x52ddeb;this['_telemetryInfo']={'unitId':_0xddd22f,'type':_0x1488d5,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Et(_0x197d47)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x5dd86d=_0x5c9f94;if(this[_0x5dd86d(0x15d)]){if(!this['_telemetryInfo']){this[_0x5dd86d(0x26a)]['error']('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x5dd86d(0x1f9)][_0x5dd86d(0x2b6)]=performance[_0x5dd86d(0x1dd)](),this['_telemetryInfo'][_0x5dd86d(0x38d)]=this['_telemetryInfo']['stopTime']-this[_0x5dd86d(0x1f9)][_0x5dd86d(0x3d1)],this[_0x5dd86d(0x2b5)]['capture'](_0x5dd86d(0x262),this['_telemetryInfo']),this['_telemetryInfo']=null;}}[_0x5c9f94(0x2f9)](){this['_telemetryInfo']=null;}};Gt=H([V(0x2,_0x3981ee),V(0x3,_0xf41dc9),V(0x4,_0xcf8d3f(Mt)),V(0x5,_0xcf8d3f(jt)),V(0x6,_0xcf8d3f(B)),V(0x7,_0x1da68f(_0x53a96b))],Gt);const U=_0x1db16f(_0x5c9f94(0x204));function Kt(_0x3a2126){const _0x1448bd=_0x5c9f94;return _0x1448bd(0x2e4)+_0x3a2126;}function qt(_0x5b4f3b){const _0x5de7ad=_0x5c9f94;let {unitID:_0x8642d,mutations:_0x2f5f86}=_0x5b4f3b;return{'unitId':_0x8642d,'subUnitId':_0x2f5f86[_0x5de7ad(0x2fd)]>0x0?_0x2f5f86[0x0]['params'][_0x5de7ad(0x312)]:null};}let Jt=class{constructor(_0x4f8a91,_0x5e078c,_0x39abde){const _0x486b07=_0x5c9f94;this[_0x486b07(0x3eb)]=_0x4f8a91,this[_0x486b07(0x364)]=_0x5e078c,this[_0x486b07(0x293)]=_0x39abde;}[_0x5c9f94(0x3af)](_0x55ea81){const _0x9a9e0e=_0x5c9f94;var _0x1d30b2,_0x6f7c7;let _0xf9730a=this[_0x9a9e0e(0x3eb)][_0x9a9e0e(0x160)](_0x144fe1),{unitId:_0x52866b,subUnitId:_0x1e0de7}=qt(_0x55ea81),_0x33b332=_0xf9730a==null?void 0x0:_0xf9730a['getWorkbookSelections'](_0x52866b)[_0x9a9e0e(0x1ba)](),_0x21dcbc=(_0x1d30b2=this[_0x9a9e0e(0x293)][_0x9a9e0e(0x29e)](_0x52866b))==null||(_0x1d30b2=_0x1d30b2['getActiveSheet']())==null?void 0x0:_0x1d30b2[_0x9a9e0e(0x27c)]();if(_0x33b332['length']===0x0||!_0x52866b||!_0x1e0de7)return;let _0x24b192=[{'id':_0x1ae86b['id'],'params':{'unitId':_0x52866b,'subUnitId':_0x21dcbc,'selections':_0x5269d3[_0x9a9e0e(0x37b)](_0x33b332)}}],_0x2b33a2=this[_0x9a9e0e(0x364)]['transformMutationsWithChangeset'](_0x55ea81,_0x24b192);if(!_0x2c24b6(_0x2b33a2))throw _0x2b33a2['error'];let _0x1c84c0=(_0x6f7c7=_0x2b33a2['m2Prime'][0x0])==null||(_0x6f7c7=_0x6f7c7['params'])==null?void 0x0:_0x6f7c7[_0x9a9e0e(0x23a)];if(Array['isArray'](_0x1c84c0)&&_0x1c84c0['length']){if(_0x1c84c0[_0x9a9e0e(0x2fd)]===_0x24b192[0x0][_0x9a9e0e(0x1a4)][_0x9a9e0e(0x23a)][_0x9a9e0e(0x2fd)]&&_0x1c84c0[_0x9a9e0e(0x340)]((_0x4992e3,_0x3826b1)=>_0x393b90['equals'](_0x4992e3[_0x9a9e0e(0x29b)],_0x24b192[0x0][_0x9a9e0e(0x1a4)][_0x9a9e0e(0x23a)][_0x3826b1]['range'])))return;this[_0x9a9e0e(0x3eb)][_0x9a9e0e(0x160)](_0x397ef7)['executeCommand'](_0x1ae86b['id'],{'unitId':_0x52866b,'subUnitId':_0x21dcbc,'selections':_0x1c84c0});}}};Jt=H([V(0x0,_0xcf8d3f(_0x19ff28)),V(0x1,_0x173ca8),V(0x2,_0x4c5cd7)],Jt);const W=_0x1db16f(_0x5c9f94(0x25d));let Yt=function(_0x46047e){const _0x25d62d=_0x5c9f94;return _0x46047e[_0x46047e[_0x25d62d(0x344)]=0x0]=_0x25d62d(0x344),_0x46047e[_0x46047e['OTHER_CLIENTS_EDITING']=0x1]=_0x25d62d(0x29d),_0x46047e;}({});function Xt(_0x5f5b5){const _0x248633=_0x5c9f94;var _0x210b3e;return!!((_0x210b3e=_0x5f5b5[_0x248633(0x1a4)])!=null&&_0x210b3e[_0x248633(0x208)]);}const Zt=new Set([_0x39ca1b['id']]),Qt=new Set([_0x3cc358['id'],_0x273390['id'],_0x35dc8d['id'],_0x155725['id']]);function $t(_0x171c0f,_0x525789=Zt){const _0x1a0694=_0x5c9f94;let _0x99f2=[];for(let _0x4b33c6 of _0x171c0f){if(_0x525789[_0x1a0694(0x3e3)](_0x4b33c6['id'])){if(_0x99f2[_0x1a0694(0x2fd)]>0x0)break;_0x99f2[_0x1a0694(0x26f)](_0x4b33c6);break;}if(Xt(_0x4b33c6)){if(_0x99f2[_0x1a0694(0x2fd)]>0x0)break;_0x99f2[_0x1a0694(0x26f)](_0x4b33c6);break;}_0x99f2[_0x1a0694(0x26f)](_0x4b33c6);}return _0x99f2;}function en(_0x2bd447,_0x34f0d5,_0x55a158,_0x2f2663,_0x49cab1){const _0x341a4b=_0x5c9f94;let _0x595972=$t(_0x2bd447),_0x3c39c2=_0x49cab1[_0x341a4b(0x2ec)](),_0x214888=(_0x3c39c2==null?void 0x0:_0x3c39c2[_0x341a4b(0x3ad)])??_0x341a4b(0x336),_0x52fdce=(_0x3c39c2==null?void 0x0:_0x3c39c2[_0x341a4b(0x331)])??_0x341a4b(0x336);return{'changeset':{'unitID':_0x34f0d5,'type':_0x4c0f7a(_0x55a158[_0x341a4b(0x155)](_0x34f0d5)),'baseRev':_0x2f2663[_0x341a4b(0x18f)](_0x34f0d5),'revision':0x0,'userID':_0x214888,'memberID':_0x52fdce,'mutations':_0x595972},'pendingMutations':_0x2bd447['slice'](_0x595972[_0x341a4b(0x2fd)])};}const tn=en;function nn(_0x2b0b57,_0xd2c260,_0x3f5d1a,_0x3ca90e,_0x43a359){const _0x2bc965=_0x5c9f94;let _0x266f0d=$t(_0x2b0b57,Qt),_0x2c9f05=_0x43a359['getCurrentUser'](),_0x4ac489=(_0x2c9f05==null?void 0x0:_0x2c9f05[_0x2bc965(0x3ad)])??_0x2bc965(0x336),_0x1e9320=(_0x2c9f05==null?void 0x0:_0x2c9f05[_0x2bc965(0x331)])??_0x2bc965(0x336);return{'changeset':{'unitID':_0xd2c260,'type':_0x4c0f7a(_0x3f5d1a[_0x2bc965(0x155)](_0xd2c260)),'baseRev':_0x3ca90e[_0x2bc965(0x18f)](_0xd2c260),'revision':0x0,'userID':_0x4ac489,'memberID':_0x1e9320,'mutations':_0x266f0d},'pendingMutations':_0x2b0b57[_0x2bc965(0x157)](_0x266f0d[_0x2bc965(0x2fd)])};}function rn(_0x3c49a3,_0x591d96,_0x26821a,_0xdd4c50,_0x4251b9){const _0x4d1d85=_0x5c9f94;let _0x28e550=_0x3c49a3[_0x4d1d85(0x1f5)]((_0x2b7a22,_0x520815)=>{const _0x260dd5=_0x4d1d85;let _0x54b928=_0x2b7a22[_0x2b7a22[_0x260dd5(0x2fd)]-0x1],{id:_0x4aeeb4}=_0x54b928??{},{id:_0xe56478,type:_0x14e1fc}=_0x520815,_0x1f602c=_0x520815[_0x260dd5(0x1a4)];if(_0x4aeeb4&&_0x4aeeb4!==_0xe56478)throw Error(_0x260dd5(0x167)+_0x4aeeb4+_0x260dd5(0x3e8)+_0xe56478+'.');if(!_0x54b928)return[{'id':_0xe56478,'type':_0x14e1fc,'params':{'unitId':_0x1f602c[_0x260dd5(0x13c)],'textRanges':_0x1f602c[_0x260dd5(0x161)],'actions':_0x1f602c['actions']}}];let _0x8a5214=_0x54b928[_0x260dd5(0x1a4)];return an(_0x8a5214,_0x1f602c)?[..._0x2b7a22[_0x260dd5(0x157)](0x0,-0x1),{..._0x54b928,'id':_0xe56478,'type':_0x14e1fc,'params':{'unitId':_0x1f602c[_0x260dd5(0x13c)],'textRanges':_0x1f602c['textRanges'],'actions':_0xdabad[_0x260dd5(0x2d7)](_0x8a5214[_0x260dd5(0x37e)],_0x1f602c[_0x260dd5(0x37e)])}}]:[..._0x2b7a22,{'id':_0xe56478,'type':_0x14e1fc,'params':{'unitId':_0x1f602c[_0x260dd5(0x13c)],'textRanges':_0x1f602c[_0x260dd5(0x161)],'actions':_0x1f602c[_0x260dd5(0x37e)]}}];},[]),_0x48c239=_0x4251b9[_0x4d1d85(0x2ec)](),_0x8cc370=(_0x48c239==null?void 0x0:_0x48c239[_0x4d1d85(0x3ad)])??_0x4d1d85(0x336),_0x1fe6d7=(_0x48c239==null?void 0x0:_0x48c239[_0x4d1d85(0x331)])??_0x4d1d85(0x336);return{'changeset':{'unitID':_0x591d96,'type':_0x4c0f7a(_0x26821a[_0x4d1d85(0x155)](_0x591d96)),'baseRev':_0xdd4c50[_0x4d1d85(0x18f)](_0x591d96),'revision':0x0,'userID':_0x8cc370,'memberID':_0x1fe6d7,'mutations':_0x28e550},'pendingMutations':_0x3c49a3[_0x4d1d85(0x157)](_0x3c49a3[_0x4d1d85(0x2fd)])};}function an(_0x20b870,_0x4368f5){const _0x30aff4=_0x5c9f94;return!on(_0x20b870)&&!on(_0x4368f5)&&sn(_0x20b870['actions'],_0x4368f5[_0x30aff4(0x37e)]);}function on(_0x1ee7fa){const _0x2c9b7d=_0x5c9f94;return _0x1ee7fa[_0x2c9b7d(0x166)]!==void 0x0;}function sn(_0x5723b6,_0x2ba02d){return cn(_0x5723b6)&&cn(_0x2ba02d)&&!un(_0x5723b6)&&!un(_0x2ba02d)&&!ln(_0x5723b6)&&!ln(_0x2ba02d);}function cn(_0x2e755b){const _0x180cf1=_0x5c9f94;return dn(_0x2e755b)[_0x180cf1(0x1b6)](_0x7459d6=>fn(_0x7459d6)&&_0x7459d6['et']==='text-x');}function ln(_0x38686d){const _0x53eef4=_0x5c9f94;return dn(_0x38686d)[_0x53eef4(0x1b6)](_0x34ff2d=>Array[_0x53eef4(0x302)](_0x34ff2d)||typeof _0x34ff2d==_0x53eef4(0x2df)||typeof _0x34ff2d==_0x53eef4(0x240));}function un(_0x4bf517){const _0x5f59f5=_0x5c9f94;return dn(_0x4bf517)['some'](_0x5378a6=>!fn(_0x5378a6)||_0x5378a6['et']!==_0x5f59f5(0x248)||!Array[_0x5f59f5(0x302)](_0x5378a6['e'])?!0x1:_0x5378a6['e'][_0x5f59f5(0x1b6)](_0x421382=>!fn(_0x421382)||!fn(_0x421382[_0x5f59f5(0x234)])?!0x1:Object[_0x5f59f5(0x211)][_0x5f59f5(0x158)][_0x5f59f5(0x23e)](_0x421382[_0x5f59f5(0x234)],'tables')||Object[_0x5f59f5(0x211)]['hasOwnProperty'][_0x5f59f5(0x23e)](_0x421382[_0x5f59f5(0x234)],_0x5f59f5(0x351))||Object[_0x5f59f5(0x211)]['hasOwnProperty']['call'](_0x421382[_0x5f59f5(0x234)],_0x5f59f5(0x266))));}function dn(_0x222103){const _0x6bf5e4=_0x5c9f94;if(!Array['isArray'](_0x222103))return[];let _0x487c05=_0x222103[_0x6bf5e4(0x32d)](_0x6bf5e4(0x234))?_0x222103:_0x222103[_0x6bf5e4(0x16e)](_0x443635=>Array[_0x6bf5e4(0x302)](_0x443635)&&_0x443635[_0x6bf5e4(0x32d)](_0x6bf5e4(0x234)));if(!Array['isArray'](_0x487c05))return[];let _0x2d36d1=_0x487c05['indexOf'](_0x6bf5e4(0x234));return _0x2d36d1===-0x1?[]:_0x487c05[_0x6bf5e4(0x157)](_0x2d36d1+0x1);}function fn(_0x236a74){return typeof _0x236a74=='object'&&!!_0x236a74&&!Array['isArray'](_0x236a74);}function pn(_0x1b5e50,_0x52e178){const _0x43bb08=_0x5c9f94;let _0x3f6d34=new _0x1f4774(0x1);return setTimeout(()=>_0x3f6d34[_0x43bb08(0x3b1)](_0x52e178),_0x1b5e50),_0x3f6d34[_0x43bb08(0x190)]()[_0x43bb08(0x270)](_0xc0564d(0x1));}var mn,hn,gn;let _n=function(_0xcb944d){const _0x5b39a4=_0x5c9f94;return _0xcb944d[_0x5b39a4(0x2f0)]=_0x5b39a4(0x273),_0xcb944d[_0x5b39a4(0x1a2)]=_0x5b39a4(0x3b2),_0xcb944d[_0x5b39a4(0x1b1)]=_0x5b39a4(0x3a0),_0xcb944d[_0x5b39a4(0x256)]=_0x5b39a4(0x1a8),_0xcb944d[_0x5b39a4(0x269)]='awaiting_with_pending',_0xcb944d[_0x5b39a4(0x324)]='fetch_missing',_0xcb944d[_0x5b39a4(0x2be)]=_0x5b39a4(0x2d9),_0xcb944d[_0x5b39a4(0x398)]=_0x5b39a4(0x2e3),_0xcb944d;}({});const vn=0x4e20,yn=0x2bf20;var G=class{constructor(_0x4bce10,_0x50087a,_0x29e2e7,_0x2a4485,_0x515793,_0xc97578,_0x3026c9,_0x9518e4,_0x3a747b){const _0x752c=_0x5c9f94;this[_0x752c(0x24c)]=_0x4bce10,this['type']=_0x50087a,this[_0x752c(0x195)]=_0x515793,this[_0x752c(0x2a7)]=_0xc97578,this[_0x752c(0x33d)]=_0x3026c9,this[_0x752c(0x382)]=_0x9518e4,this['_localCacheService']=_0x3a747b,z(this,_0x752c(0x25c),null),z(this,_0x752c(0x322),[]),this[_0x752c(0x25c)]=_0x29e2e7,this[_0x752c(0x322)]=_0x2a4485;}[_0x5c9f94(0x34f)](_0x570486){const _0x54c16b=_0x5c9f94;let _0x1351d5=this[_0x54c16b(0x382)][_0x54c16b(0x18f)](this[_0x54c16b(0x24c)]);return _0x570486[_0x54c16b(0x2dd)]>_0x1351d5+0x1&&(this[_0x54c16b(0x195)][_0x54c16b(0x25b)]({'from':_0x1351d5,'to':_0x570486[_0x54c16b(0x2dd)]-0x1}),!0x0);}[_0x5c9f94(0x30e)](_0x562207){const _0x300c8d=_0x5c9f94;this[_0x300c8d(0x33d)]['transformUndoRedo'](this[_0x300c8d(0x24c)],_0x562207);}[_0x5c9f94(0x19d)](_0x462688){const _0x589fa3=_0x5c9f94;var _0x5ae928,_0x24b92c;(_0x5ae928=(_0x24b92c=this['_handler'])[_0x589fa3(0x252)])==null||_0x5ae928[_0x589fa3(0x23e)](_0x24b92c,_0x462688);}[_0x5c9f94(0x2a8)](_0x44162c){const _0x4d5f0d=_0x5c9f94;var _0x3559ad,_0x3b0b4b;return((_0x3559ad=(_0x3b0b4b=this[_0x4d5f0d(0x195)])[_0x4d5f0d(0x3ab)])==null?void 0x0:_0x3559ad[_0x4d5f0d(0x23e)](_0x3b0b4b,_0x44162c))??null;}[_0x5c9f94(0x35d)](_0x33401c){const _0x389883=_0x5c9f94;var _0x320a12,_0x2f0058;return(_0x320a12=(_0x2f0058=this[_0x389883(0x195)])[_0x389883(0x20c)])==null?void 0x0:_0x320a12[_0x389883(0x23e)](_0x2f0058,_0x33401c);}[_0x5c9f94(0x15b)](_0x152ca1){const _0x14d3c3=_0x5c9f94;var _0x1a0d40,_0x5896c6;return(_0x1a0d40=(_0x5896c6=this[_0x14d3c3(0x195)])['onTransformState'])==null?void 0x0:_0x1a0d40[_0x14d3c3(0x23e)](_0x5896c6,_0x152ca1);}[_0x5c9f94(0x31d)](_0x56ca94){const _0x1de4a3=_0x5c9f94;var _0x2f50a3,_0x29adcb;return((_0x2f50a3=(_0x29adcb=this[_0x1de4a3(0x195)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x2f50a3[_0x1de4a3(0x23e)](_0x29adcb,_0x56ca94))??_0x56ca94;}[_0x5c9f94(0x2bc)](_0x1accde){const _0x5b0bb2=_0x5c9f94;var _0xed727a,_0x69f75b;return((_0xed727a=(_0x69f75b=this[_0x5b0bb2(0x195)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0xed727a['call'](_0x69f75b,_0x1accde))??_0x1accde;}[_0x5c9f94(0x2ea)](_0x1588f7){const _0x209731=_0x5c9f94;if(this[_0x209731(0x34b)]===_0x2efadb[_0x209731(0x29a)]){let {unitID:_0x55702e,mutations:_0x6517bc,memberID:_0x1e0477}=_0x1588f7,_0x5b1477=_0x6517bc['length']>0x0?_0x6517bc[0x0][_0x209731(0x1a4)][_0x209731(0x161)]:[];if(Array[_0x209731(0x302)](_0x5b1477)&&_0x5b1477[_0x209731(0x2fd)]>0x0){var _0x294132,_0x20c974;(_0x294132=(_0x20c974=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x294132[_0x209731(0x23e)](_0x20c974,{'unitID':_0x55702e,'memberID':_0x1e0477,'textRanges':_0x5b1477});}}}['_updateLocalCache'](){const _0x597fef=_0x5c9f94;var _0x14ffb0;(_0x14ffb0=this[_0x597fef(0x255)])==null||_0x14ffb0[_0x597fef(0x3e9)](this['unitID'],this['type'],this[_0x597fef(0x25c)],this[_0x597fef(0x322)]);}[_0x5c9f94(0x268)](){const _0x2f714c=_0x5c9f94;return this[_0x2f714c(0x382)]['getCurrentRevOfUnit'](this[_0x2f714c(0x24c)]);}[_0x5c9f94(0x243)](){const _0x883f2f=_0x5c9f94;this[_0x883f2f(0x382)][_0x883f2f(0x2c0)](this[_0x883f2f(0x24c)]);}['_executeRemoteChangeset'](_0x48d164){const _0x6971bc=_0x5c9f94;let _0x4629dc=this[_0x6971bc(0x31d)](_0x48d164);_0x4629dc=this[_0x6971bc(0x2bc)](_0x4629dc);let _0x1c9d38=this[_0x6971bc(0x2a8)](_0x4629dc),_0x4ab338=_0x146494(_0x4629dc[_0x6971bc(0x202)],this[_0x6971bc(0x2a7)],{'fromCollab':!0x0});if(!_0x4ab338[_0x6971bc(0x1c3)])throw _0x1c9d38==null||_0x1c9d38[_0x6971bc(0x246)](),_0x4ab338[_0x6971bc(0x2dc)]instanceof Error?_0x4ab338[_0x6971bc(0x2dc)]:Error(_0x4ab338[_0x6971bc(0x2dc)]??'[CollaborationState]:\x20apply\x20error!');_0x1c9d38==null||_0x1c9d38[_0x6971bc(0x2cb)](),this['_transformIMECache'](_0x4629dc),this[_0x6971bc(0x15b)](_0x4629dc),this[_0x6971bc(0x30e)](_0x48d164),this['_transformSelections'](_0x4629dc),this[_0x6971bc(0x2ea)](_0x4629dc),this[_0x6971bc(0x243)]();}};let K=class extends G{constructor(_0x79544f,_0x24400a,_0x2d5e6a,_0x3ba05a,_0x2c7804,_0x4afb28,_0x404493,_0x5cccba,_0x1cb532,_0x58d876){const _0x449912=_0x5c9f94;super(_0x79544f,_0x24400a,null,[],_0x2d5e6a,_0x404493,_0x4afb28,_0x3ba05a,_0x58d876),this['_injector']=_0x2c7804,this[_0x449912(0x26a)]=_0x5cccba,this[_0x449912(0x364)]=_0x1cb532,this[_0x449912(0x35e)]=_0x58d876,z(this,_0x449912(0x1a0),'synced');}[_0x5c9f94(0x254)](_0x29e652){const _0x1baca9=_0x5c9f94;let _0x405991=this[_0x1baca9(0x3eb)][_0x1baca9(0x2c8)](q,this[_0x1baca9(0x24c)],this[_0x1baca9(0x34b)],[_0x29e652],this['_handler']);return _0x405991['_schedule'](),_0x405991[_0x1baca9(0x2c7)](),_0x405991;}[_0x5c9f94(0x387)](_0x25449c){const _0x511b47=_0x5c9f94;if(this['_checkMissing'](_0x25449c))return this['_injector']['createInstance'](Q,this['unitID'],this[_0x511b47(0x34b)],null,[],null,[_0x25449c],this[_0x511b47(0x195)]);try{let _0x7a27e=this[_0x511b47(0x364)][_0x511b47(0x32f)](_0x25449c,[_0x2b1099]);if(_0x2c24b6(_0x7a27e)){let {c1Prime:_0x417a02}=_0x7a27e;return this['_executeRemoteChangeset'](_0x417a02),this;}throw _0x7a27e[_0x511b47(0x2dc)];}catch(_0x1edb98){return this[_0x511b47(0x26a)][_0x511b47(0x2dc)](_0x1edb98),this[_0x511b47(0x31e)](!0x1);}}[_0x5c9f94(0x31e)](_0x2ea01c){const _0xbd5c90=_0x5c9f94;return this[_0xbd5c90(0x3eb)][_0xbd5c90(0x2c8)](X,this[_0xbd5c90(0x24c)],this[_0xbd5c90(0x34b)],null,[],this[_0xbd5c90(0x195)],_0x2ea01c);}[_0x5c9f94(0x354)](_0x77cb40){const _0x4f5300=_0x5c9f94;if(_0x77cb40[_0x4f5300(0x2dd)]<=this[_0x4f5300(0x268)]())return this;throw Error(_0x4f5300(0x3b0));}[_0x5c9f94(0x1e6)](){const _0x51e99e=_0x5c9f94;throw Error(_0x51e99e(0x2d2));}[_0x5c9f94(0x3c1)](){return this;}[_0x5c9f94(0x3aa)](){const _0x694fdd=_0x5c9f94;return this[_0x694fdd(0x3eb)][_0x694fdd(0x2c8)](Z,this[_0x694fdd(0x24c)],this[_0x694fdd(0x34b)],null,[],this[_0x694fdd(0x195)]);}[_0x5c9f94(0x281)](){return this;}['resend'](){const _0x3b1e33=_0x5c9f94;throw Error(_0x3b1e33(0x1e4));}[_0x5c9f94(0x231)](){const _0x214fa1=_0x5c9f94;let _0x1168fe=this['_revisionService'][_0x214fa1(0x18f)](this['unitID']);return this[_0x214fa1(0x195)][_0x214fa1(0x25b)]({'from':_0x1168fe,'to':0x0}),this[_0x214fa1(0x3eb)][_0x214fa1(0x2c8)](Q,this[_0x214fa1(0x24c)],this[_0x214fa1(0x34b)],null,[],null,[],this['_handler']);}};K=H([V(0x3,_0xcf8d3f(_0x9b85a2)),V(0x4,_0xcf8d3f(_0x19ff28)),V(0x5,_0x34c2a3),V(0x6,_0x397ef7),V(0x7,_0x3981ee),V(0x8,_0x173ca8),V(0x9,_0x1da68f(U))],K);let q=mn=class extends G{constructor(_0x264024,_0x1572cc,_0x2d44ff,_0x4900b7,_0x3061a9,_0x4a381e,_0x5cf223,_0x3ce401,_0x47e56a,_0x4440b3,_0x289a3b,_0x5974a6,_0x47093,_0x57eb37){const _0x2be123=_0x5c9f94;super(_0x264024,_0x1572cc,null,_0x2d44ff,_0x4900b7,_0x47e56a,_0x47093,_0x4a381e,_0x57eb37),this[_0x2be123(0x3eb)]=_0x3061a9,this[_0x2be123(0x2b8)]=_0x5cf223,this['_logService']=_0x3ce401,this[_0x2be123(0x323)]=_0x4440b3,this['_transformService']=_0x289a3b,this['_univerInstanceService']=_0x5974a6,z(this,_0x2be123(0x1a0),_0x2be123(0x3a0)),z(this,_0x2be123(0x2ac),null),z(this,_0x2be123(0x2c2),null);}[_0x5c9f94(0x254)](_0x558834){const _0x316545=_0x5c9f94;return this['_pendingMutations'][_0x316545(0x26f)](_0x558834),this[_0x316545(0x2c7)](),this;}[_0x5c9f94(0x387)](_0x32215d){const _0xa1113d=_0x5c9f94;if(this[_0xa1113d(0x34f)](_0x32215d))return this[_0xa1113d(0x35a)](),this[_0xa1113d(0x3eb)][_0xa1113d(0x2c8)](Q,this[_0xa1113d(0x24c)],this[_0xa1113d(0x34b)],null,this[_0xa1113d(0x322)],null,[_0x32215d],this[_0xa1113d(0x195)]);try{let _0x518f11=this[_0xa1113d(0x364)][_0xa1113d(0x32f)](_0x32215d,this[_0xa1113d(0x322)]);if(_0x2c24b6(_0x518f11)){let {c1Prime:_0x2683c2,m2Prime:_0x4ced46}=_0x518f11;this[_0xa1113d(0x349)](_0x2683c2);let _0x1caba2=this[_0xa1113d(0x3eb)][_0xa1113d(0x2c8)](mn,this['unitID'],this[_0xa1113d(0x34b)],_0x4ced46,this[_0xa1113d(0x195)]);this[_0xa1113d(0x35a)]();let _0x172e56=new Date()['getTime'](),_0x5c8b80=this[_0xa1113d(0x2ac)]?Math[_0xa1113d(0x30d)](this[_0xa1113d(0x2ac)]-_0x172e56,0x0):this[_0xa1113d(0x2e2)]();return _0x1caba2[_0xa1113d(0x3ee)](_0x5c8b80),_0x1caba2;}throw _0x518f11[_0xa1113d(0x2dc)];}catch(_0x5c554a){return this[_0xa1113d(0x26a)][_0xa1113d(0x2dc)](_0x5c554a),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x3e551a){const _0x540554=_0x5c9f94;if(_0x3e551a[_0x540554(0x2dd)]<=this['_getCurrentRevision']())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x5c9f94(0x1e6)](){const _0x33e914=_0x5c9f94;throw Error(_0x33e914(0x197));}['onRemoteRetry'](){return this;}[_0x5c9f94(0x3aa)](){const _0x244619=_0x5c9f94;return this[_0x244619(0x35a)](),this['_injector']['createInstance'](Z,this['unitID'],this[_0x244619(0x34b)],null,this[_0x244619(0x322)],this[_0x244619(0x195)]);}['toggleOnline'](){return this;}[_0x5c9f94(0x3ee)](_0x8e936d){const _0x3ba351=_0x5c9f94;let _0x557d2d=_0x8e936d??this[_0x3ba351(0x2e2)]();this[_0x3ba351(0x2ac)]=new Date()[_0x3ba351(0x356)]()+_0x557d2d,this[_0x3ba351(0x2c2)]=setTimeout(()=>{const _0xbfefb9=_0x3ba351;this[_0xbfefb9(0x35a)]();let _0x122051=null;switch(this[_0xbfefb9(0x34b)]){case _0x2efadb[_0xbfefb9(0x21d)]:_0x122051=en(this['_pendingMutations'],this[_0xbfefb9(0x24c)],this[_0xbfefb9(0x28a)],this[_0xbfefb9(0x382)],this['_userManagerService']);break;case _0x2efadb[_0xbfefb9(0x29a)]:_0x122051=this[_0xbfefb9(0x322)][_0xbfefb9(0x340)](_0x1b079f=>_0x1b079f['id']===_0x5b44a5['id'])?rn(this['_pendingMutations'],this[_0xbfefb9(0x24c)],this[_0xbfefb9(0x28a)],this[_0xbfefb9(0x382)],this[_0xbfefb9(0x2b8)]):en(this[_0xbfefb9(0x322)],this[_0xbfefb9(0x24c)],this['_univerInstanceService'],this[_0xbfefb9(0x382)],this[_0xbfefb9(0x2b8)]);break;case _0x2efadb[_0xbfefb9(0x1d3)]:_0x122051=nn(this[_0xbfefb9(0x322)],this[_0xbfefb9(0x24c)],this[_0xbfefb9(0x28a)],this['_revisionService'],this[_0xbfefb9(0x2b8)]);break;case _0x2efadb[_0xbfefb9(0x29f)]:_0x122051=tn(this[_0xbfefb9(0x322)],this[_0xbfefb9(0x24c)],this[_0xbfefb9(0x28a)],this[_0xbfefb9(0x382)],this[_0xbfefb9(0x2b8)]);break;case _0x2efadb[_0xbfefb9(0x3ed)]:_0x122051=en(this[_0xbfefb9(0x322)],this[_0xbfefb9(0x24c)],this['_univerInstanceService'],this[_0xbfefb9(0x382)],this[_0xbfefb9(0x2b8)]);break;case _0x2efadb[_0xbfefb9(0x3a6)]:_0x122051=en(this[_0xbfefb9(0x322)],this[_0xbfefb9(0x24c)],this['_univerInstanceService'],this['_revisionService'],this[_0xbfefb9(0x2b8)]);break;default:throw Error(_0xbfefb9(0x184)+this[_0xbfefb9(0x34b)]+'\x20in\x20_schedule.');}let {changeset:_0x3c0851,pendingMutations:_0x276bd4}=_0x122051;this[_0xbfefb9(0x195)][_0xbfefb9(0x18c)](_0x3c0851);let _0x3be906=_0x276bd4[_0xbfefb9(0x2fd)]?this[_0xbfefb9(0x3eb)][_0xbfefb9(0x2c8)](Y,this['unitID'],this[_0xbfefb9(0x34b)],_0x3c0851,_0x276bd4,this['_handler'],void 0x0):this[_0xbfefb9(0x3eb)][_0xbfefb9(0x2c8)](J,this[_0xbfefb9(0x24c)],this[_0xbfefb9(0x34b)],_0x3c0851,this[_0xbfefb9(0x195)]);_0x3be906[_0xbfefb9(0x2c7)](),this[_0xbfefb9(0x195)][_0xbfefb9(0x1cd)](this,_0x3be906);},_0x557d2d);}[_0x5c9f94(0x2e2)](){const _0x2d0eb6=_0x5c9f94;let _0xde50d=this[_0x2d0eb6(0x323)]['getConfig'](R);return(_0xde50d==null?void 0x0:_0xde50d[_0x2d0eb6(0x170)])??0x7d0;}[_0x5c9f94(0x3e7)](){const _0x2a715d=_0x5c9f94;throw Error(_0x2a715d(0x21f));}[_0x5c9f94(0x35a)](){const _0x122a41=_0x5c9f94;this[_0x122a41(0x2c2)]!=null&&(clearTimeout(this[_0x122a41(0x2c2)]),this['_sendingTimer']=null);}[_0x5c9f94(0x31e)](_0x17d8ac){const _0x28e232=_0x5c9f94;return this[_0x28e232(0x35a)](),this['_injector'][_0x28e232(0x2c8)](X,this[_0x28e232(0x24c)],this[_0x28e232(0x34b)],null,this[_0x28e232(0x322)],this[_0x28e232(0x195)],_0x17d8ac);}};q=mn=H([V(0x4,_0xcf8d3f(_0x19ff28)),V(0x5,_0xcf8d3f(_0x9b85a2)),V(0x6,_0xcf8d3f(_0x2caeff)),V(0x7,_0x3981ee),V(0x8,_0x397ef7),V(0x9,_0xf41dc9),V(0xa,_0x173ca8),V(0xb,_0x4c5cd7),V(0xc,_0x34c2a3),V(0xd,_0x1da68f(U))],q);let J=hn=class extends G{constructor(_0x4825e2,_0xd58ebf,_0x4e608c,_0x17e2ee,_0x49e856,_0x23bd21,_0x5ec9a8,_0x4d17ed,_0x4346a1,_0x2597fa,_0x7d8c7a){const _0x4bdaf2=_0x5c9f94;super(_0x4825e2,_0xd58ebf,_0x4e608c,[],_0x17e2ee,_0x5ec9a8,_0x2597fa,_0x23bd21,_0x7d8c7a),this[_0x4bdaf2(0x3eb)]=_0x49e856,this['_logService']=_0x4d17ed,this[_0x4bdaf2(0x364)]=_0x4346a1,z(this,_0x4bdaf2(0x1a0),_0x4bdaf2(0x1a8)),z(this,'_resendTimeout',0x0),z(this,_0x4bdaf2(0x1fc),0x0),z(this,'_resendTimer',void 0x0),z(this,_0x4bdaf2(0x297),void 0x0);}['appendMutation'](_0xd297b2){const _0x11cdb9=_0x5c9f94;this[_0x11cdb9(0x35a)]();let _0x389798=this[_0x11cdb9(0x3eb)][_0x11cdb9(0x2c8)](Y,this[_0x11cdb9(0x24c)],this['type'],this[_0x11cdb9(0x25c)],[_0xd297b2],this['_handler'],this[_0x11cdb9(0x15c)]);return _0x389798['_updateLocalCache'](),_0x389798;}[_0x5c9f94(0x387)](_0x7d9915){const _0x4a7d33=_0x5c9f94;if(this[_0x4a7d33(0x34f)](_0x7d9915))return this[_0x4a7d33(0x35a)](),this[_0x4a7d33(0x3eb)]['createInstance'](Q,this[_0x4a7d33(0x24c)],this[_0x4a7d33(0x34b)],this[_0x4a7d33(0x25c)],[],null,[_0x7d9915],this[_0x4a7d33(0x195)]);try{let _0x567244=this[_0x4a7d33(0x364)][_0x4a7d33(0x26d)]([_0x7d9915],[this['_awaitingChangeset']],!0x1);if(_0x31eeb1(_0x567244)){let {c1Prime:_0x4fa909,c2Prime:_0x509931}=_0x567244;this[_0x4a7d33(0x349)](_0x4fa909[0x0]),_0x509931[0x0][_0x4a7d33(0x2c4)]=this[_0x4a7d33(0x268)](),this['_clearScheduledTask']();let _0x1704d3=this[_0x4a7d33(0x3eb)][_0x4a7d33(0x2c8)](hn,this['unitID'],this[_0x4a7d33(0x34b)],_0x509931[0x0],this['_handler']);return _0x1704d3[_0x4a7d33(0x2c7)](),_0x1704d3;}throw _0x567244[_0x4a7d33(0x2dc)];}catch(_0x218f9c){return this[_0x4a7d33(0x26a)][_0x4a7d33(0x2dc)](_0x218f9c),this[_0x4a7d33(0x31e)](!0x1);}}['onRemoteAck'](_0x1179c4){const _0xe57052=_0x5c9f94;this[_0xe57052(0x35a)]();let _0x15e74a=this[_0xe57052(0x382)]['getCurrentRevOfUnit'](this[_0xe57052(0x24c)]);if(_0x1179c4['revision']<=_0x15e74a)return this;if(this[_0xe57052(0x34f)](_0x1179c4))return this['_injector'][_0xe57052(0x2c8)](Q,this['unitID'],this[_0xe57052(0x34b)],this[_0xe57052(0x25c)],[],_0x1179c4[_0xe57052(0x2dd)],[],this[_0xe57052(0x195)]);this[_0xe57052(0x243)]();let _0x231e37=this[_0xe57052(0x3eb)][_0xe57052(0x2c8)](K,this[_0xe57052(0x24c)],this['type'],this[_0xe57052(0x195)]);return _0x231e37['_updateLocalCache'](),_0x231e37;}[_0x5c9f94(0x1e6)](_0x1fbf7a){const _0x49d023=_0x5c9f94;return this[_0x49d023(0x31e)](!!(_0x1fbf7a!=null&&_0x1fbf7a[_0x49d023(0x2da)]));}[_0x5c9f94(0x3c1)](_0x198d92){const _0x4f9333=_0x5c9f94;return this[_0x4f9333(0x1fc)]>yn?this[_0x4f9333(0x3aa)]():(this[_0x4f9333(0x15c)]=pn(this[_0x4f9333(0x36a)],{'timeout':this[_0x4f9333(0x36a)],'reqId':_0x198d92['reqId']}),this['_sender']=this[_0x4f9333(0x15c)][_0x4f9333(0x168)](({reqId:_0x1e5818,timeout:_0x1975a9})=>{this['_resendWithTimeout'](_0x1e5818,_0x1975a9);}),this);}[_0x5c9f94(0x3aa)](){const _0x5d8a3e=_0x5c9f94;return this[_0x5d8a3e(0x35a)](),this[_0x5d8a3e(0x3eb)][_0x5d8a3e(0x2c8)](Z,this[_0x5d8a3e(0x24c)],this['type'],this['_awaitingChangeset'],[],this[_0x5d8a3e(0x195)]);}['toggleOnline'](){return this;}[_0x5c9f94(0x3e7)](){const _0x3bb331=_0x5c9f94;this[_0x3bb331(0x195)][_0x3bb331(0x18c)](this[_0x3bb331(0x25c)]);}[_0x5c9f94(0x31e)](_0x349dff){const _0x2d3019=_0x5c9f94;return this['_clearScheduledTask'](),this[_0x2d3019(0x3eb)][_0x2d3019(0x2c8)](X,this[_0x2d3019(0x24c)],this[_0x2d3019(0x34b)],this[_0x2d3019(0x25c)],[],this[_0x2d3019(0x195)],_0x349dff);}[_0x5c9f94(0x271)](_0x2a6216,_0x42eea2){const _0x18a4d8=_0x5c9f94;var _0xa0fbcb;_0x2a6216===((_0xa0fbcb=this['_awaitingChangeset'])==null?void 0x0:_0xa0fbcb['reqId'])&&(this[_0x18a4d8(0x3e7)](),this[_0x18a4d8(0x36a)]=_0x42eea2===0x0?0x3e8:Math[_0x18a4d8(0x290)](_0x42eea2*0x2,vn),this[_0x18a4d8(0x1fc)]+=this[_0x18a4d8(0x36a)]);}['_clearScheduledTask'](){const _0x9e3a38=_0x5c9f94;var _0x2e3c91;(_0x2e3c91=this[_0x9e3a38(0x297)])==null||_0x2e3c91[_0x9e3a38(0x20f)](),this[_0x9e3a38(0x36a)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};function _0x4bc2(_0x277a3e,_0x22bb80){_0x277a3e=_0x277a3e-0x137;const _0x3253af=_0x3253();let _0x4bc23b=_0x3253af[_0x277a3e];return _0x4bc23b;}J=hn=H([V(0x4,_0xcf8d3f(_0x19ff28)),V(0x5,_0xcf8d3f(_0x9b85a2)),V(0x6,_0x397ef7),V(0x7,_0x3981ee),V(0x8,_0x173ca8),V(0x9,_0x34c2a3),V(0xa,_0x1da68f(U))],J);let Y=gn=class extends G{constructor(_0x4ddec4,_0x3c9482,_0x3b786f,_0x34c3f0,_0x511a5f,_0xe6b969,_0x33280f,_0x1be969,_0x348cc2,_0x47e87e,_0x1ad009,_0x20361e,_0x170ad2){const _0x979912=_0x5c9f94;super(_0x4ddec4,_0x3c9482,_0x3b786f,_0x34c3f0,_0x511a5f,_0x348cc2,_0x20361e,_0x1be969,_0x170ad2),this[_0x979912(0x3eb)]=_0x33280f,this[_0x979912(0x26a)]=_0x47e87e,this[_0x979912(0x364)]=_0x1ad009,this[_0x979912(0x35e)]=_0x170ad2,z(this,_0x979912(0x1a0),'awaiting_with_pending'),z(this,_0x979912(0x36a),0x0),z(this,'_maxTotalRetryTimeout',0x0),z(this,_0x979912(0x15c),void 0x0),z(this,'_sender',void 0x0),_0xe6b969&&(this[_0x979912(0x15c)]=_0xe6b969,this['_sender']=this[_0x979912(0x15c)]['subscribe'](({reqId:_0x5c98a2,timeout:_0x3ce95f})=>{this['_resendWithTimeout'](_0x5c98a2,_0x3ce95f);}));}[_0x5c9f94(0x254)](_0x36cf9b){const _0xbcc1a0=_0x5c9f94;return this[_0xbcc1a0(0x322)][_0xbcc1a0(0x26f)](_0x36cf9b),this;}[_0x5c9f94(0x387)](_0x5e35ac){const _0x2a17c6=_0x5c9f94;if(this[_0x2a17c6(0x34f)](_0x5e35ac))return this['_clearScheduledTask'](),this['_injector']['createInstance'](Q,this['unitID'],this[_0x2a17c6(0x34b)],this[_0x2a17c6(0x25c)],this['_pendingMutations'],null,[_0x5e35ac],this[_0x2a17c6(0x195)]);try{let _0x5948fe=this[_0x2a17c6(0x364)][_0x2a17c6(0x26d)]([_0x5e35ac],[this[_0x2a17c6(0x25c)]],!0x1);if(_0x31eeb1(_0x5948fe)){let {c1Prime:_0x53ff47,c2Prime:_0x51b24c}=_0x5948fe,_0x1ee8e0=this['_transformService'][_0x2a17c6(0x32f)](_0x53ff47[0x0],this[_0x2a17c6(0x322)]);if(_0x2c24b6(_0x1ee8e0)){let {c1Prime:_0x39627d,m2Prime:_0x59023a}=_0x1ee8e0;return this[_0x2a17c6(0x349)](_0x39627d),_0x51b24c[0x0][_0x2a17c6(0x2c4)]=this[_0x2a17c6(0x268)](),this[_0x2a17c6(0x35a)](),this[_0x2a17c6(0x3eb)]['createInstance'](gn,this[_0x2a17c6(0x24c)],this['type'],_0x51b24c[0x0],_0x59023a,this[_0x2a17c6(0x195)],void 0x0);}throw _0x1ee8e0[_0x2a17c6(0x2dc)];}throw _0x5948fe['error'];}catch(_0x325758){return this['_logService'][_0x2a17c6(0x2dc)](_0x325758),this[_0x2a17c6(0x31e)](!0x1);}}[_0x5c9f94(0x354)](_0x2ef9a8){const _0x40ed69=_0x5c9f94;this['_clearScheduledTask']();let _0x346aca=this[_0x40ed69(0x268)]();if(_0x2ef9a8[_0x40ed69(0x2dd)]<=_0x346aca)return this;if(this['_checkMissing'](_0x2ef9a8))return this[_0x40ed69(0x3eb)][_0x40ed69(0x2c8)](Q,this[_0x40ed69(0x24c)],this[_0x40ed69(0x34b)],this[_0x40ed69(0x25c)],this[_0x40ed69(0x322)],_0x2ef9a8['revision'],[],this[_0x40ed69(0x195)]);this[_0x40ed69(0x243)]();let _0xc2c6b7=this[_0x40ed69(0x3eb)][_0x40ed69(0x2c8)](q,this['unitID'],this[_0x40ed69(0x34b)],this['_pendingMutations'],this[_0x40ed69(0x195)]);return _0xc2c6b7[_0x40ed69(0x3ee)](),_0xc2c6b7[_0x40ed69(0x2c7)](),_0xc2c6b7;}['onRemoteRej'](_0x3a769d){const _0x50a782=_0x5c9f94;return this[_0x50a782(0x31e)](!!(_0x3a769d!=null&&_0x3a769d[_0x50a782(0x2da)]));}[_0x5c9f94(0x3c1)](_0x5e3075){const _0x120b18=_0x5c9f94;return this['_maxTotalRetryTimeout']>yn?this[_0x120b18(0x3aa)]():(this[_0x120b18(0x15c)]=pn(this[_0x120b18(0x36a)],{'timeout':this[_0x120b18(0x36a)],'reqId':_0x5e3075[_0x120b18(0x1f8)]}),this[_0x120b18(0x297)]=this[_0x120b18(0x15c)]['subscribe'](({reqId:_0x10eef6,timeout:_0x209bd4})=>{const _0x416576=_0x120b18;this[_0x416576(0x271)](_0x10eef6,_0x209bd4);}),this);}[_0x5c9f94(0x3aa)](){const _0x49bbf4=_0x5c9f94;return this[_0x49bbf4(0x35a)](),this[_0x49bbf4(0x3eb)]['createInstance'](Z,this[_0x49bbf4(0x24c)],this[_0x49bbf4(0x34b)],this[_0x49bbf4(0x25c)],this[_0x49bbf4(0x322)],this[_0x49bbf4(0x195)]);}[_0x5c9f94(0x281)](){return this;}[_0x5c9f94(0x3e7)](){const _0x1595ca=_0x5c9f94;this[_0x1595ca(0x195)]['onSendChangeset'](this[_0x1595ca(0x25c)]);}[_0x5c9f94(0x31e)](_0x572639){const _0x56ccf4=_0x5c9f94;return this[_0x56ccf4(0x35a)](),this[_0x56ccf4(0x3eb)]['createInstance'](X,this['unitID'],this['type'],null,this[_0x56ccf4(0x322)],this[_0x56ccf4(0x195)],_0x572639);}[_0x5c9f94(0x271)](_0xc96070,_0x32b2c9){const _0x370083=_0x5c9f94;var _0x464f0e;_0xc96070===((_0x464f0e=this[_0x370083(0x25c)])==null?void 0x0:_0x464f0e['reqId'])&&(this[_0x370083(0x3e7)](),this['_resendTimeout']=_0x32b2c9===0x0?0x3e8:Math['min'](_0x32b2c9*0x2,vn),this[_0x370083(0x1fc)]+=this[_0x370083(0x36a)]);}[_0x5c9f94(0x35a)](){const _0xe233d=_0x5c9f94;var _0x2c4b5b;(_0x2c4b5b=this[_0xe233d(0x297)])==null||_0x2c4b5b[_0xe233d(0x20f)](),this[_0xe233d(0x36a)]=0x0,this[_0xe233d(0x1fc)]=0x0;}};Y=gn=H([V(0x6,_0xcf8d3f(_0x19ff28)),V(0x7,_0xcf8d3f(_0x9b85a2)),V(0x8,_0x397ef7),V(0x9,_0x3981ee),V(0xa,_0x173ca8),V(0xb,_0x34c2a3),V(0xc,_0x1da68f(U))],Y);let X=class extends G{constructor(_0x13d91e,_0x4edb28,_0x23d1fa,_0x5c8200,_0x5b2c3f,_0x4fab0e=!0x1,_0x35eb96,_0x232867,_0x562c65,_0x9c0e8e,_0x228014,_0x15c5cb,_0x5494b7){const _0x385b08=_0x5c9f94;super(_0x13d91e,_0x4edb28,_0x23d1fa,_0x5c8200,_0x5b2c3f,_0x232867,_0x562c65,_0x9c0e8e,_0x5494b7),this[_0x385b08(0x338)]=_0x4fab0e,this[_0x385b08(0x150)]=_0x35eb96,this[_0x385b08(0x205)]=_0x228014,this['_collaborationUIEventService']=_0x15c5cb,this[_0x385b08(0x35e)]=_0x5494b7,z(this,_0x385b08(0x1a0),_0x385b08(0x2d9)),this['_disableEditing'](),this['_showConflictProcessingNotification'](),this[_0x385b08(0x3dd)]();}[_0x5c9f94(0x254)](){return this;}[_0x5c9f94(0x387)](){return this;}['onRemoteAck'](){return this;}[_0x5c9f94(0x1e6)](){return this;}[_0x5c9f94(0x3c1)](){return this;}[_0x5c9f94(0x3aa)](){return this;}[_0x5c9f94(0x281)](){return this;}[_0x5c9f94(0x3e7)](){const _0x18a89f=_0x5c9f94;throw Error(_0x18a89f(0x339));}async[_0x5c9f94(0x3dd)](){const _0x125b15=_0x5c9f94;var _0x277f0e,_0x5c32a5;await((_0x277f0e=this[_0x125b15(0x255)])==null||(_0x5c32a5=_0x277f0e[_0x125b15(0x28e)])==null?void 0x0:_0x5c32a5[_0x125b15(0x23e)](_0x277f0e,this['unitID'],'conflict')[_0x125b15(0x3e1)](()=>void 0x0));try{var _0x938a72;await((_0x938a72=this[_0x125b15(0x255)])==null?void 0x0:_0x938a72[_0x125b15(0x1fe)](this[_0x125b15(0x24c)]));}catch{this[_0x125b15(0x143)][_0x125b15(0x3a8)]({'id':'CONFLICT_CACHE_CLEAR_FAILED','unitID':this[_0x125b15(0x24c)]});return;}this[_0x125b15(0x3d5)]();}[_0x5c9f94(0x1bb)](){const _0x2c8a54=_0x5c9f94;this['_collaborationUIEventService'][_0x2c8a54(0x3a8)]({'id':'CONFLICT_PROCESSING'});}[_0x5c9f94(0x3d5)](){const _0x2673be=_0x5c9f94;this[_0x2673be(0x338)]?this[_0x2673be(0x143)]['emitEvent']({'id':_0x2673be(0x1c5)}):this[_0x2673be(0x143)][_0x2673be(0x3a8)]({'id':'CONFLICT'});}[_0x5c9f94(0x37f)](){const _0x5d157e=_0x5c9f94;this[_0x5d157e(0x150)][_0x5d157e(0x285)](new _0x350235(this['unitID'])['id'],!0x1);}};X=H([V(0x6,_0xcf8d3f(_0x30415d)),V(0x7,_0x397ef7),V(0x8,_0x34c2a3),V(0x9,_0xcf8d3f(_0x9b85a2)),V(0xa,_0xcf8d3f(_0x5c6337)),V(0xb,_0xcf8d3f(B)),V(0xc,_0x1da68f(U))],X);let Z=class extends G{constructor(_0x44e3e5,_0x185235,_0x3ec78f,_0x557d95,_0x5e9c84,_0x4588c1,_0x31ecbd,_0x5821c9,_0x1bcdc2,_0x571d8d){const _0x36dc7c=_0x5c9f94;super(_0x44e3e5,_0x185235,_0x3ec78f,_0x557d95,_0x5e9c84,_0x5821c9,_0x1bcdc2,_0x31ecbd,_0x571d8d),this[_0x36dc7c(0x3eb)]=_0x4588c1,z(this,_0x36dc7c(0x1a0),_0x36dc7c(0x2e3));}[_0x5c9f94(0x254)](_0x594e91){const _0x1f7e47=_0x5c9f94;return this[_0x1f7e47(0x322)][_0x1f7e47(0x26f)](_0x594e91),this[_0x1f7e47(0x2c7)](),this;}['onRemoteChangeset'](_0x19e821){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x5c9f94(0x354)](){const _0x3f38f8=_0x5c9f94;throw Error(_0x3f38f8(0x383));}[_0x5c9f94(0x1e6)](){const _0x12523a=_0x5c9f94;throw Error(_0x12523a(0x216));}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x5c9f94(0x281)](){const _0x1500a4=_0x5c9f94;let {_injector:_0xa80653,_pendingMutations:_0x41724e,_awaitingChangeset:_0x3efe65,unitID:_0x1c71ec,_handler:_0x332298,type:_0x2e9729}=this,_0x1e5c54=bn(_0xa80653,_0x1c71ec,_0x2e9729,_0x3efe65,_0x41724e,_0x332298);return _0x1e5c54 instanceof q?_0x1e5c54['_schedule']():(_0x1e5c54 instanceof Y||_0x1e5c54 instanceof J)&&_0x1e5c54[_0x1500a4(0x3e7)](),_0x1e5c54;}[_0x5c9f94(0x3e7)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};Z=H([V(0x5,_0xcf8d3f(_0x19ff28)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0x397ef7),V(0x8,_0x34c2a3),V(0x9,_0x1da68f(U))],Z);let Q=class extends G{constructor(_0x20dd7a,_0x283789,_0x22294e,_0x53e821,_0x11310d,_0x2c27b0,_0x40e4f3,_0x27ee2b,_0x33e7d3,_0x386f94,_0x2dbbb0,_0x5957c1,_0xa4894f,_0x5de5e7){const _0x5c9509=_0x5c9f94;super(_0x20dd7a,_0x283789,_0x22294e,_0x53e821,_0x40e4f3,_0x2dbbb0,_0x5957c1,_0x33e7d3,_0x5de5e7),this[_0x5c9509(0x3bd)]=_0x11310d,this['_queuedRemoteChangesets']=_0x2c27b0,this['_injector']=_0x27ee2b,this['_logService']=_0x386f94,this['_transformService']=_0xa4894f,this['localCacheService']=_0x5de5e7,z(this,_0x5c9509(0x1a0),'fetch_missing');}[_0x5c9f94(0x27e)](_0x2f3868){const _0x138f4e=_0x5c9f94;try{if(this['_handleRemoteChangesets'](_0x2f3868)['missingChangesets'])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this[_0x138f4e(0x291)]([...this[_0x138f4e(0x221)]][_0x138f4e(0x249)]((_0x22f29e,_0x426abf)=>_0x22f29e['revision']-_0x426abf[_0x138f4e(0x2dd)]))[_0x138f4e(0x1e2)])return this[_0x138f4e(0x221)]=[],this['_updateLocalCache'](),this[_0x138f4e(0x195)][_0x138f4e(0x25b)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0xf8c8d9=this[_0x138f4e(0x25c)],_0x5e48ef=this[_0x138f4e(0x322)],_0x25bf4e;if(_0xf8c8d9&&_0x5e48ef[_0x138f4e(0x2fd)]!==0x0)_0x25bf4e=this[_0x138f4e(0x3eb)][_0x138f4e(0x2c8)](Y,this['unitID'],this[_0x138f4e(0x34b)],_0xf8c8d9,_0x5e48ef,this[_0x138f4e(0x195)],void 0x0);else{if(_0xf8c8d9&&_0x5e48ef[_0x138f4e(0x2fd)]===0x0)_0xf8c8d9[_0x138f4e(0x2c4)]=this[_0x138f4e(0x268)](),_0x25bf4e=this[_0x138f4e(0x3eb)][_0x138f4e(0x2c8)](J,this[_0x138f4e(0x24c)],this[_0x138f4e(0x34b)],_0xf8c8d9,this['_handler']);else{if(_0x5e48ef[_0x138f4e(0x2fd)]!==0x0){let _0x28ace3=this[_0x138f4e(0x3eb)][_0x138f4e(0x2c8)](q,this[_0x138f4e(0x24c)],this[_0x138f4e(0x34b)],_0x5e48ef,this[_0x138f4e(0x195)]);_0x28ace3[_0x138f4e(0x3ee)](),_0x25bf4e=_0x28ace3;}else _0x25bf4e=this[_0x138f4e(0x3eb)][_0x138f4e(0x2c8)](K,this[_0x138f4e(0x24c)],this[_0x138f4e(0x34b)],this['_handler']);}}return _0x25bf4e[_0x138f4e(0x2c7)](),_0x25bf4e;}catch(_0x58de83){return this[_0x138f4e(0x26a)][_0x138f4e(0x2dc)]('[FetchMissState]',_0x138f4e(0x36b),_0x58de83),this['_injector'][_0x138f4e(0x2c8)](X,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x138f4e(0x322)],this[_0x138f4e(0x195)],!0x1);}}[_0x5c9f94(0x291)](_0x299f76){const _0x4cc3b6=_0x5c9f94;this[_0x4cc3b6(0x151)]();for(let _0x2a5030=0x0;_0x2a5030<_0x299f76[_0x4cc3b6(0x2fd)];_0x2a5030++){let _0xd99cfa=_0x299f76[_0x2a5030],_0x493d98=this[_0x4cc3b6(0x268)]();if(!(_0xd99cfa[_0x4cc3b6(0x2dd)]<=_0x493d98)){if(_0xd99cfa[_0x4cc3b6(0x2dd)]>_0x493d98+0x1)return{'missingChangesets':!0x0};if(this[_0x4cc3b6(0x272)](_0xd99cfa)){this[_0x4cc3b6(0x193)]();continue;}this[_0x4cc3b6(0x2c9)](_0xd99cfa),this[_0x4cc3b6(0x151)]();}}return{'missingChangesets':!0x1};}[_0x5c9f94(0x2c9)](_0x5b20a5){const _0x5af20c=_0x5c9f94;let _0x3ccfff=_0x5b20a5,_0x2c496a=this[_0x5af20c(0x25c)];if(_0x2c496a){let _0x18cc62=this['_transformService']['transformChangesets']([_0x5b20a5],[_0x2c496a],!0x1);if(!_0x31eeb1(_0x18cc62))throw _0x18cc62[_0x5af20c(0x2dc)];_0x3ccfff=_0x18cc62[_0x5af20c(0x2d3)][0x0],_0x2c496a=_0x18cc62[_0x5af20c(0x227)][0x0];}let _0x160f5d=this[_0x5af20c(0x322)];if(_0x160f5d[_0x5af20c(0x2fd)]){let _0x3d5417=this[_0x5af20c(0x364)][_0x5af20c(0x32f)](_0x3ccfff,_0x160f5d);if(!_0x2c24b6(_0x3d5417))throw _0x3d5417[_0x5af20c(0x2dc)];_0x3ccfff=_0x3d5417['c1Prime'],_0x160f5d=_0x3d5417[_0x5af20c(0x1ab)];}this[_0x5af20c(0x349)](_0x3ccfff),_0x2c496a&&(_0x2c496a[_0x5af20c(0x2c4)]=this[_0x5af20c(0x268)]()),this[_0x5af20c(0x25c)]=_0x2c496a,this[_0x5af20c(0x322)]=_0x160f5d;}[_0x5c9f94(0x151)](){const _0x5dd30a=_0x5c9f94;if(!this[_0x5dd30a(0x25c)]||this[_0x5dd30a(0x3bd)]==null)return;let _0x289903=this[_0x5dd30a(0x268)]();if(this[_0x5dd30a(0x3bd)]<=_0x289903)throw Error(_0x5dd30a(0x236)+this['_acknowledgedAwaitingRevision']+'.');this[_0x5dd30a(0x3bd)]===_0x289903+0x1&&this[_0x5dd30a(0x193)]();}[_0x5c9f94(0x193)](){const _0x5e4349=_0x5c9f94;this[_0x5e4349(0x243)](),this[_0x5e4349(0x25c)]=null,this[_0x5e4349(0x3bd)]=null;}['_isEchoedAwaitingChangeset'](_0x4c5160){const _0x149c16=_0x5c9f94;let _0x5805b5=this[_0x149c16(0x25c)];return!_0x5805b5||!_0x5805b5[_0x149c16(0x282)]||_0x5805b5[_0x149c16(0x1f8)]===null||_0x5805b5[_0x149c16(0x1f8)]===void 0x0?!0x1:_0x4c5160[_0x149c16(0x24c)]===_0x5805b5['unitID']&&_0x4c5160[_0x149c16(0x282)]===_0x5805b5[_0x149c16(0x282)]&&_0x4c5160['reqId']===_0x5805b5[_0x149c16(0x1f8)];}[_0x5c9f94(0x3e7)](){const _0x37064b=_0x5c9f94;throw Error(_0x37064b(0x1b5));}[_0x5c9f94(0x254)](_0x36fe84){const _0x207035=_0x5c9f94;return this[_0x207035(0x322)][_0x207035(0x26f)](_0x36fe84),this;}['onRemoteChangeset'](_0x5c651b){const _0x135bd3=_0x5c9f94;return this[_0x135bd3(0x221)][_0x135bd3(0x26f)](_0x5c651b),this;}[_0x5c9f94(0x354)](_0x515058){const _0x3216e3=_0x5c9f94;if(this[_0x3216e3(0x25c)]){let _0x11a809=this[_0x3216e3(0x268)]();return _0x515058['revision']<=_0x11a809||(_0x11a809+0x1===_0x515058[_0x3216e3(0x2dd)]?(this['_incrementRevisionNumber'](),this[_0x3216e3(0x25c)]=null,this[_0x3216e3(0x3bd)]=null):this[_0x3216e3(0x3bd)]=_0x515058[_0x3216e3(0x2dd)]),this;}if(_0x515058[_0x3216e3(0x2dd)]<=this[_0x3216e3(0x268)]())return this;throw Error(_0x3216e3(0x18b));}[_0x5c9f94(0x1e6)](_0x235d77){const _0x16d154=_0x5c9f94;return this[_0x16d154(0x31e)](!!(_0x235d77!=null&&_0x235d77[_0x16d154(0x2da)]));}[_0x5c9f94(0x3c1)](){return this;}[_0x5c9f94(0x3aa)](){const _0x1bf16f=_0x5c9f94;return this['_injector']['createInstance'](Z,this['unitID'],this[_0x1bf16f(0x34b)],this[_0x1bf16f(0x25c)],this[_0x1bf16f(0x322)],this[_0x1bf16f(0x195)]);}[_0x5c9f94(0x281)](){return this;}['_onConflict'](_0x28b138){const _0x4e9d2a=_0x5c9f94;return this[_0x4e9d2a(0x3eb)]['createInstance'](X,this['unitID'],this[_0x4e9d2a(0x34b)],this['_awaitingChangeset'],this[_0x4e9d2a(0x322)],this[_0x4e9d2a(0x195)],_0x28b138);}};Q=H([V(0x7,_0xcf8d3f(_0x19ff28)),V(0x8,_0xcf8d3f(_0x9b85a2)),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x34c2a3),V(0xc,_0x173ca8),V(0xd,_0x1da68f(U))],Q);function bn(_0x187200,_0x12543d,_0xab0597,_0x264bba,_0x47a889,_0x51cb9c){const _0x277fe1=_0x5c9f94;return _0x264bba&&_0x47a889[_0x277fe1(0x2fd)]?_0x187200[_0x277fe1(0x2c8)](Y,_0x12543d,_0xab0597,_0x264bba,_0x47a889,_0x51cb9c,void 0x0):_0x264bba?_0x187200['createInstance'](J,_0x12543d,_0xab0597,_0x264bba,_0x51cb9c):_0x47a889[_0x277fe1(0x2fd)]?_0x187200[_0x277fe1(0x2c8)](q,_0x12543d,_0xab0597,_0x47a889,_0x51cb9c):_0x187200['createInstance'](K,_0x12543d,_0xab0597,_0x51cb9c);}let $=class extends _0x468ac5{get[_0x5c9f94(0x16a)](){const _0x5b9dc6=_0x5c9f94;return this[_0x5b9dc6(0x232)];}constructor(_0x1064f9,_0x443890,_0x1ab5bd,_0x29d046,_0x2de612,_0x38e5ee,_0x39003d,_0x42072f,_0x48ca90,_0x5a6a16,_0x1ae315,_0x39e759,_0x301c4e,_0x255ef6){const _0x5b1c37=_0x5c9f94;super(),this['unitID']=_0x1064f9,this[_0x5b1c37(0x3c5)]=_0x443890,this[_0x5b1c37(0x213)]=_0x1ab5bd,this['_injector']=_0x29d046,this['_compressMutationService']=_0x2de612,this[_0x5b1c37(0x205)]=_0x38e5ee,this[_0x5b1c37(0x382)]=_0x39003d,this['_eventService']=_0x42072f,this['_univerInstanceService']=_0x48ca90,this[_0x5b1c37(0x26a)]=_0x5a6a16,this[_0x5b1c37(0x2a7)]=_0x1ae315,this[_0x5b1c37(0x150)]=_0x39e759,this[_0x5b1c37(0x333)]=_0x301c4e,this[_0x5b1c37(0x255)]=_0x255ef6,z(this,_0x5b1c37(0x28d),new _0x1946cb(null)),z(this,'state$',this[_0x5b1c37(0x28d)][_0x5b1c37(0x190)]()),z(this,_0x5b1c37(0x232),void 0x0),z(this,_0x5b1c37(0x23c),!0x1),z(this,_0x5b1c37(0x2fa),''),z(this,_0x5b1c37(0x355),0x0),z(this,'status$',this[_0x5b1c37(0x1eb)][_0x5b1c37(0x270)](_0x98781b(_0x2c8444=>_0x2c8444?_0x2c8444[_0x5b1c37(0x1a0)]:_0x5b1c37(0x2e3)),_0x43a741({'bufferSize':0x1,'refCount':!0x0}))),z(this,'_transitionLocked',!0x1),z(this,_0x5b1c37(0x1cf),[]);}async[_0x5c9f94(0x1f6)](){const _0x4135e8=_0x5c9f94;if(this[_0x4135e8(0x16a)])throw Error(_0x4135e8(0x358));await this['_init']();}[_0x5c9f94(0x2b3)](){const _0x553ba9=_0x5c9f94;return this[_0x553ba9(0x23c)]=!0x0,_0x2b94ed(()=>{const _0x232b49=_0x553ba9;this[_0x232b49(0x23c)]=!0x1,this[_0x232b49(0x16c)]();});}[_0x5c9f94(0x181)](_0x1c798d){this['_onLocalMutation'](_0x1c798d);}[_0x5c9f94(0x2bd)](_0x24920b){const _0x3f29c3=_0x5c9f94;this[_0x3f29c3(0x232)]=_0x24920b,this[_0x3f29c3(0x28d)]['next'](_0x24920b);}async[_0x5c9f94(0x215)](){const _0x2e3384=_0x5c9f94;if(this[_0x2e3384(0x2bd)](await this[_0x2e3384(0x3b7)]()),this[_0x2e3384(0x333)]){var _0x1e3a4b;(_0x1e3a4b=this['_singleActiveUnitService'])==null||_0x1e3a4b[_0x2e3384(0x3d0)](this[_0x2e3384(0x24c)]),this[_0x2e3384(0x189)](this[_0x2e3384(0x333)]['getUnitStatus$'](this[_0x2e3384(0x24c)])[_0x2e3384(0x168)](_0x4e7c01=>{const _0x4dba45=_0x2e3384;this['_logService'][_0x4dba45(0x1aa)](_0x4dba45(0x32e),_0x4dba45(0x2ca),_0x4e7c01),_0x4e7c01===0x1?(this[_0x4dba45(0x1d0)][_0x4dba45(0x3a8)]({'id':_0x4dba45(0x39c)}),this['_permissionService'][_0x4dba45(0x285)](new _0x350235(this[_0x4dba45(0x24c)])['id'],!0x1),this[_0x4dba45(0x150)][_0x4dba45(0x172)](!0x1)):(this[_0x4dba45(0x150)][_0x4dba45(0x285)](new _0x350235(this[_0x4dba45(0x24c)])['id'],!0x0),this[_0x4dba45(0x150)]['setShowComponents'](!0x0));}));}let _0x52342c=!0x1;return this['disposeWithMe'](this[_0x2e3384(0x3c5)][_0x2e3384(0x225)][_0x2e3384(0x168)](_0x3fd840=>{const _0x48463c=_0x2e3384;_0x3fd840===0x3?this[_0x48463c(0x393)](_0x52342c):_0x3fd840===0x2&&(_0x52342c=!0x0,this['_toggleOffline']());})),this[_0x2e3384(0x189)](this[_0x2e3384(0x3c5)][_0x2e3384(0x1ad)][_0x2e3384(0x168)](_0xba18aa=>{const _0x2c0c9b=_0x2e3384;try{switch(_0xba18aa[_0x2c0c9b(0x198)]){case _0x538b71['NEW_CHANGESETS']:this[_0x2c0c9b(0x13e)](_0xde3e04(_0xba18aa[_0x2c0c9b(0x3cf)]));break;case _0x538b71['CHANGESET_ACK']:this[_0x2c0c9b(0x32a)](_0xba18aa[_0x2c0c9b(0x3cf)]);break;case _0x538b71[_0x2c0c9b(0x22c)]:this[_0x2c0c9b(0x13f)]();break;case _0x538b71[_0x2c0c9b(0x24e)]:this[_0x2c0c9b(0x310)](_0xba18aa[_0x2c0c9b(0x3cf)]);break;case _0x538b71[_0x2c0c9b(0x378)]:this[_0x2c0c9b(0x39b)](_0xba18aa['data'][_0x2c0c9b(0x329)][_0x2c0c9b(0x375)](_0x2f346f=>_0xde3e04(_0x2f346f)));break;case _0x538b71[_0x2c0c9b(0x22e)]:this[_0x2c0c9b(0x13f)]({'isPermissionRej':!0x0});break;case _0x538b71[_0x2c0c9b(0x1bd)]:}}catch(_0x447f64){throw console['error'](_0x2c0c9b(0x27b),_0x447f64),_0x447f64;}})),this[_0x2e3384(0x232)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x5c9f94(0x3da)](){const _0x312d8a=_0x5c9f94;if(this[_0x312d8a(0x353)])throw Error(_0x312d8a(0x1ac));this[_0x312d8a(0x353)]=!0x0;}[_0x5c9f94(0x311)](_0x324da1){const _0xe7624a=_0x5c9f94;this[_0xe7624a(0x3da)](),this[_0xe7624a(0x2bd)](this[_0xe7624a(0x232)][_0xe7624a(0x254)](_0x324da1)),this[_0xe7624a(0x19f)]();}[_0x5c9f94(0x13e)](_0x3227da){const _0x5d7227=_0x5c9f94;if(!(_0x3227da['revision']<=this['_revisionService'][_0x5d7227(0x18f)](this[_0x5d7227(0x24c)]))){if(this['_collaborationPaused']){this[_0x5d7227(0x1cf)][_0x5d7227(0x26f)](_0x3227da);return;}this['_applyRemoteChangeset'](_0x3227da);}}[_0x5c9f94(0x16c)](){const _0x3543be=_0x5c9f94;this[_0x3543be(0x1cf)]['forEach'](_0x11d37f=>this[_0x3543be(0x2ed)](_0x11d37f)),this[_0x3543be(0x1cf)]=[];}[_0x5c9f94(0x2ed)](_0x25d4aa){const _0x9e14ac=_0x5c9f94;let _0x4355a1=this['_compressMutationService'][_0x9e14ac(0x392)][_0x9e14ac(0x15e)](this[_0x9e14ac(0x21c)][_0x9e14ac(0x392)][_0x9e14ac(0x2f2)]()['COMPRESS_MUTATION_APPLY'])(_0x25d4aa[_0x9e14ac(0x202)],null)||_0x25d4aa[_0x9e14ac(0x202)],_0x588445={..._0x25d4aa,'mutations':_0x4355a1};this[_0x9e14ac(0x3da)](),this[_0x9e14ac(0x2bd)](this[_0x9e14ac(0x232)][_0x9e14ac(0x387)](_0x588445)),this[_0x9e14ac(0x19f)]();}['_onRemoteACK'](_0x286278){const _0x1710cf=_0x5c9f94;this[_0x1710cf(0x3da)](),this['_updateState'](this[_0x1710cf(0x232)]['onRemoteAck'](_0x286278)),this[_0x1710cf(0x19f)]();}[_0x5c9f94(0x13f)](_0x12386b){const _0x1a4bfa=_0x5c9f94;this[_0x1a4bfa(0x3da)](),this[_0x1a4bfa(0x2bd)](this[_0x1a4bfa(0x232)][_0x1a4bfa(0x1e6)](_0x12386b)),this['_unlockTransition']();}['_onRemoteRetry'](_0x5d0b59){const _0x3e81b2=_0x5c9f94;this['_lockTransition'](),this['_updateState'](this['_state'][_0x3e81b2(0x3c1)](_0x5d0b59)),this[_0x3e81b2(0x19f)]();}[_0x5c9f94(0x39b)](_0x5c6bc7){const _0x4878ba=_0x5c9f94;if(!(this[_0x4878ba(0x232)]instanceof Q))throw TypeError(_0x4878ba(0x276));let _0x4acff1=_0x5c6bc7[_0x4878ba(0x375)](_0x559da9=>{const _0x390b7b=_0x4878ba;let _0x30cd4f=this[_0x390b7b(0x21c)]['interceptor'][_0x390b7b(0x15e)](this['_compressMutationService'][_0x390b7b(0x392)]['getInterceptPoints']()[_0x390b7b(0x38f)])(_0x559da9[_0x390b7b(0x202)],null)||_0x559da9[_0x390b7b(0x202)];return{..._0x559da9,'mutations':_0x30cd4f};});this[_0x4878ba(0x3da)](),this[_0x4878ba(0x2bd)](this['_state']['onMissedChangesetFetched'](_0x4acff1)),this[_0x4878ba(0x19f)]();}[_0x5c9f94(0x1bf)](){const _0x597f7d=_0x5c9f94;this[_0x597f7d(0x3da)](),this[_0x597f7d(0x2bd)](this[_0x597f7d(0x232)][_0x597f7d(0x3aa)]()),this[_0x597f7d(0x19f)]();}[_0x5c9f94(0x393)](_0x3e148f=!0x1){const _0x23f9eb=_0x5c9f94;this[_0x23f9eb(0x3da)](),this['_updateState'](this[_0x23f9eb(0x232)][_0x23f9eb(0x281)]()),this['_unlockTransition']();let _0x2c7d02=this[_0x23f9eb(0x232)];_0x3e148f&&_0x2c7d02 instanceof K&&(this['_lockTransition'](),this[_0x23f9eb(0x2bd)](_0x2c7d02[_0x23f9eb(0x231)]()),this[_0x23f9eb(0x19f)]());}async['_createInitialState'](){return new Promise(_0x182ae7=>{const _0x2c6537=_0x4bc2;this['session'][_0x2c6537(0x225)][_0x2c6537(0x270)](_0xc0564d(0x1))[_0x2c6537(0x168)](async _0x2e2f16=>{const _0x413191=_0x2c6537;_0x182ae7(await this[_0x413191(0x27d)](_0x2e2f16===0x3));});});}['_createHandler'](){const _0x2d1875=_0x5c9f94;let _0x10e04d=this[_0x2d1875(0x24c)];return{'onStateChange':(_0x5ac38b,_0x380239)=>{const _0xba694e=_0x2d1875;if(_0x5ac38b!==this[_0xba694e(0x232)])throw Error(_0xba694e(0x1bc)+_0x5ac38b[_0xba694e(0x1a0)]+'\x0aAfter:\x20'+_0x380239['status']+'\x0aCurrent:\x20'+this[_0xba694e(0x232)][_0xba694e(0x1a0)]);this[_0xba694e(0x2bd)](_0x380239);},'onSendChangeset':_0x17cffe=>{const _0x5bb126=_0x2d1875;_0x17cffe[_0x5bb126(0x282)]||(_0x17cffe[_0x5bb126(0x282)]=this[_0x5bb126(0x2fa)],_0x17cffe['reqId']=++this[_0x5bb126(0x355)]);let _0x399209={'eventID':_0x538b71['SUBMIT_CHANGESET'],'data':{'unitID':_0x17cffe['unitID'],'unitType':this[_0x5bb126(0x213)],'changeset':_0x17cffe,'memberID':this['session'][_0x5bb126(0x395)]()}};this[_0x5bb126(0x3c5)]['send'](_0x399209,this[_0x5bb126(0x24c)]);},'onMissingChangesets':({from:_0x27be33,to:_0x458e02})=>{const _0x290fc3=_0x2d1875;this['_logService'][_0x290fc3(0x1aa)](_0x290fc3(0x32e),_0x290fc3(0x306)+_0x27be33+_0x290fc3(0x223)+_0x458e02);let _0x363f6b={'eventID':_0x538b71['FETCH_MISSING'],'data':{'unitID':_0x10e04d,'unitType':this[_0x290fc3(0x213)],'from':_0x27be33,'to':_0x458e02}};this[_0x290fc3(0x3c5)]['send'](_0x363f6b,this[_0x290fc3(0x24c)]);}};}async['_createInitialStateImpl'](_0x3c1086){const _0xbf2dc0=_0x5c9f94;var _0x1429e2;let _0x251186=await((_0x1429e2=this[_0xbf2dc0(0x255)])==null?void 0x0:_0x1429e2[_0xbf2dc0(0x179)](this['unitID'])),_0x2c534f=(_0x251186==null?void 0x0:_0x251186['mutations'])??[],_0x58fbff=(_0x251186==null?void 0x0:_0x251186['awaitingChangeset'])??null,_0x29c0bd=!!(_0x58fbff!=null&&_0x58fbff[_0xbf2dc0(0x282)])&&!!(_0x58fbff!=null&&_0x58fbff[_0xbf2dc0(0x1f8)]);this[_0xbf2dc0(0x2fa)]=_0x29c0bd?_0x58fbff['sid']:_0x209d6d(),this[_0xbf2dc0(0x355)]=_0x29c0bd?_0x58fbff[_0xbf2dc0(0x1f8)]:0x0;let _0x51931e=this[_0xbf2dc0(0x24c)];try{this[_0xbf2dc0(0x30b)](_0x58fbff,_0x2c534f);}catch(_0x38f38e){this['_logService'][_0xbf2dc0(0x2dc)](_0x38f38e);}let _0x2ed716=this[_0xbf2dc0(0x2f6)]();if(_0x3c1086){let _0x436a2b=bn(this[_0xbf2dc0(0x3eb)],_0x51931e,this[_0xbf2dc0(0x213)],_0x58fbff,_0x2c534f,_0x2ed716);return _0x436a2b instanceof q?_0x436a2b[_0xbf2dc0(0x3ee)]():(_0x436a2b instanceof Y||_0x436a2b instanceof J)&&_0x436a2b['resend'](),_0x436a2b;}return this[_0xbf2dc0(0x3eb)][_0xbf2dc0(0x2c8)](Z,_0x51931e,this[_0xbf2dc0(0x213)],_0x58fbff,_0x2c534f,_0x2ed716);}['_replayCachedMutations'](_0x3aeebf,_0x1f13b7){const _0x4405ab=_0x5c9f94;var _0x41d0bf,_0x480ce8;let _0x713f64=this[_0x4405ab(0x21c)][_0x4405ab(0x392)][_0x4405ab(0x15e)](this[_0x4405ab(0x21c)][_0x4405ab(0x392)][_0x4405ab(0x2f2)]()[_0x4405ab(0x38f)]);(_0x41d0bf=_0x713f64((_0x3aeebf==null?void 0x0:_0x3aeebf['mutations'])||[],null))==null||_0x41d0bf[_0x4405ab(0x2de)](_0x339ddc=>this[_0x4405ab(0x2a7)][_0x4405ab(0x36c)](_0x339ddc['id'],_0x339ddc['params'])),(_0x480ce8=_0x713f64(_0x1f13b7||[],null))==null||_0x480ce8[_0x4405ab(0x2de)](_0x577478=>this[_0x4405ab(0x2a7)][_0x4405ab(0x36c)](_0x577478['id'],_0x577478[_0x4405ab(0x1a4)]));}};$=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0x1da68f(W)),V(0xd,_0x1da68f(U))],$);let xn=class extends ${constructor(_0x79363f,_0x1c170f,_0x551504,_0x1620de,_0x3b443b,_0x4f5b01,_0x5e22a5,_0x13f704,_0x41ed0b,_0x16c42c,_0x16198e,_0x55ed1b,_0x1fbfc8,_0x3962f3,_0x2df605){const _0x65d9ab=_0x5c9f94;super(_0x79363f,_0x551504,_0x1c170f,_0x1620de,_0x3b443b,_0x4f5b01,_0x5e22a5,_0x13f704,_0x41ed0b,_0x16c42c,_0x16198e,_0x55ed1b,_0x3962f3,_0x2df605),this[_0x65d9ab(0x24c)]=_0x79363f,this[_0x65d9ab(0x34b)]=_0x1c170f,this['_docStateChangeManagerService']=_0x1fbfc8,z(this,'_handlerCallback',null);}[_0x5c9f94(0x2bf)](_0x1ba105){const _0x4347b4=_0x5c9f94;this[_0x4347b4(0x2a4)]=_0x1ba105;}[_0x5c9f94(0x316)](){const _0x2e171b=_0x5c9f94;this[_0x2e171b(0x2a4)]=null,super[_0x2e171b(0x316)]();}[_0x5c9f94(0x2f6)](){const _0x3ad0b8=_0x5c9f94;let _0x49f336=super['_createHandler']();return _0x49f336['onTransformIME']=_0x3d7aa0=>{const _0x2d552b=_0x4bc2;var _0x3b7e65,_0x397c21;return(_0x3b7e65=this['_handlerCallback'])==null||(_0x397c21=_0x3b7e65[_0x2d552b(0x20c)])==null?void 0x0:_0x397c21[_0x2d552b(0x23e)](_0x3b7e65,_0x3d7aa0);},_0x49f336[_0x3ad0b8(0x14b)]=_0x42c86c=>{const _0x135aa5=_0x3ad0b8;var _0x545715,_0x5d36e9;return(_0x545715=this[_0x135aa5(0x2a4)])==null||(_0x5d36e9=_0x545715[_0x135aa5(0x14b)])==null?void 0x0:_0x5d36e9['call'](_0x545715,_0x42c86c);},_0x49f336['onPrepareTransformSelections']=_0x152545=>{const _0x1255b0=_0x3ad0b8;var _0x348f5c,_0x28a044;return((_0x348f5c=this[_0x1255b0(0x2a4)])==null||(_0x28a044=_0x348f5c[_0x1255b0(0x3ab)])==null?void 0x0:_0x28a044['call'](_0x348f5c,_0x152545))??null;},_0x49f336[_0x3ad0b8(0x252)]=_0xa6d9bb=>{const _0x286dcf=_0x3ad0b8;var _0x21698f,_0x18182;return(_0x21698f=this[_0x286dcf(0x2a4)])==null||(_0x18182=_0x21698f[_0x286dcf(0x252)])==null?void 0x0:_0x18182['call'](_0x21698f,_0xa6d9bb);},_0x49f336[_0x3ad0b8(0x371)]=_0x181198=>{const _0x57f622=_0x3ad0b8;var _0x1be166,_0x451678;return(_0x1be166=this[_0x57f622(0x2a4)])==null||(_0x451678=_0x1be166['onSyncEditingCollabCursor'])==null?void 0x0:_0x451678[_0x57f622(0x23e)](_0x1be166,_0x181198);},_0x49f336['onTransformRemoteChangesetByIMECache']=_0x2c54e4=>{const _0x2d54b8=_0x3ad0b8;var _0x4e121b,_0x1ca125;return((_0x4e121b=this['_handlerCallback'])==null||(_0x1ca125=_0x4e121b['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x1ca125[_0x2d54b8(0x23e)](_0x4e121b,_0x2c54e4))??_0x2c54e4;},_0x49f336[_0x3ad0b8(0x176)]=_0x4afd8d=>{const _0x102175=_0x3ad0b8;var _0x2dd709,_0x2eff87;return((_0x2dd709=this[_0x102175(0x2a4)])==null||(_0x2eff87=_0x2dd709['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x2eff87[_0x102175(0x23e)](_0x2dd709,_0x4afd8d))??_0x4afd8d;},_0x49f336;}async[_0x5c9f94(0x215)](){const _0x4a590e=_0x5c9f94;let _0x322bf5=await super[_0x4a590e(0x215)]();return this[_0x4a590e(0x189)](this[_0x4a590e(0x14a)][_0x4a590e(0x38c)]['subscribe'](_0x4adb5c=>{const _0x2524e9=_0x4a590e;if(_0x4adb5c==null||_0x4adb5c['unitId']!==this[_0x2524e9(0x24c)])return;let {commandId:_0x3b284e,redoState:_0x2de64d,unitId:_0x2169af}=_0x4adb5c,_0x12e63f={'id':_0x3b284e,'type':_0x4a7495[_0x2524e9(0x2b0)],'params':{'unitId':_0x2169af,'actions':_0x2de64d[_0x2524e9(0x37e)],'textRanges':null}};this['_onLocalMutation'](_0x12e63f);})),this['disposeWithMe'](this[_0x4a590e(0x2a7)][_0x4a590e(0x210)]((_0x10f509,_0x5888a4)=>{const _0x1c58a5=_0x4a590e;if(_0x10f509[_0x1c58a5(0x34b)]!==_0x4a7495[_0x1c58a5(0x2b0)]||_0x5888a4!=null&&_0x5888a4['fromCollab']||_0x5888a4!=null&&_0x5888a4['onlyLocal']||_0x10f509['id']===_0x5b44a5['id'])return;let _0x1bb7eb=_0x10f509[_0x1c58a5(0x1a4)];if((_0x1bb7eb==null?void 0x0:_0x1bb7eb[_0x1c58a5(0x13c)])!==this[_0x1c58a5(0x24c)])return;let _0x12e0c1=_0x10f509,_0x2a956e=this[_0x1c58a5(0x21c)]['interceptor'][_0x1c58a5(0x15e)](this[_0x1c58a5(0x21c)][_0x1c58a5(0x392)][_0x1c58a5(0x2f2)]()['COMPRESS_MUTATION_SEND'])([_0x12e0c1],this['_univerInstanceService'])||[_0x12e0c1];this[_0x1c58a5(0x311)](_0x2a956e[0x0]);})),_0x322bf5;}};xn=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0xcf8d3f(_0xb48de9)),V(0xd,_0x1da68f(W)),V(0xe,_0x1da68f(U))],xn);let Sn=class extends ${constructor(_0x5639cf,_0xa8388c,_0x1170bd,_0x3abcd6,_0x2e3f7e,_0x10374a,_0x27fa53,_0x51c3c6,_0x4fceb4,_0x5b7cc6,_0x5c25a2,_0x29361e,_0x3a3a71,_0x4ea8fb){const _0x2a354c=_0x5c9f94;super(_0x5639cf,_0x1170bd,_0xa8388c,_0x3abcd6,_0x2e3f7e,_0x10374a,_0x27fa53,_0x51c3c6,_0x4fceb4,_0x5b7cc6,_0x5c25a2,_0x29361e,_0x3a3a71,_0x4ea8fb),this[_0x2a354c(0x24c)]=_0x5639cf,this[_0x2a354c(0x34b)]=_0xa8388c;}async[_0x5c9f94(0x215)](){const _0x5c50ae=_0x5c9f94;let _0x4f53d7=await super[_0x5c50ae(0x215)]();return this[_0x5c50ae(0x189)](this[_0x5c50ae(0x2a7)][_0x5c50ae(0x210)]((_0x2f4e3f,_0x543ba8)=>{const _0x5a4c67=_0x5c50ae;if(_0x2f4e3f[_0x5a4c67(0x34b)]!==_0x4a7495[_0x5a4c67(0x2b0)]||_0x543ba8!=null&&_0x543ba8['fromCollab']||_0x543ba8!=null&&_0x543ba8[_0x5a4c67(0x3be)])return;let _0x4c6b96=_0x2f4e3f[_0x5a4c67(0x1a4)];if((_0x4c6b96==null?void 0x0:_0x4c6b96[_0x5a4c67(0x13c)])!==this[_0x5a4c67(0x24c)])return;let _0xdabd59=_0x2f4e3f,_0x3df09d=this[_0x5a4c67(0x21c)]['interceptor'][_0x5a4c67(0x15e)](this[_0x5a4c67(0x21c)][_0x5a4c67(0x392)][_0x5a4c67(0x2f2)]()['COMPRESS_MUTATION_SEND'])([_0xdabd59],this[_0x5a4c67(0x28a)])||[_0xdabd59];this[_0x5a4c67(0x311)](_0x3df09d[0x0]);})),_0x4f53d7;}};Sn=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0x1da68f(W)),V(0xd,_0x1da68f(U))],Sn);let Cn=class extends ${constructor(_0x891fb0,_0xb7da1a,_0x416e6a,_0x540ce5,_0x488475,_0x121055,_0x514aa4,_0x5b32f9,_0x1e3649,_0xe9aeb8,_0x3f367e,_0x10e1b7,_0x461f56,_0xa392c0,_0x324c7e){const _0x537f21=_0x5c9f94;super(_0x891fb0,_0x416e6a,_0xb7da1a,_0x540ce5,_0x488475,_0x121055,_0x514aa4,_0x1e3649,_0xe9aeb8,_0x3f367e,_0x10e1b7,_0x461f56,_0xa392c0,_0x324c7e),this[_0x537f21(0x24c)]=_0x891fb0,this[_0x537f21(0x34b)]=_0xb7da1a,this[_0x537f21(0x327)]=_0x5b32f9;}['_createHandler'](){const _0x71ac90=_0x5c9f94;let _0x36adcf=super[_0x71ac90(0x2f6)]();return _0x36adcf[_0x71ac90(0x252)]=_0x125b09=>this['_sheetTransformSelectionsService'][_0x71ac90(0x3af)](_0x125b09),_0x36adcf;}async[_0x5c9f94(0x215)](){const _0x2dc6fa=_0x5c9f94;let _0x9769f3=await super[_0x2dc6fa(0x215)]();return this['disposeWithMe'](this['_commandService'][_0x2dc6fa(0x210)]((_0x239dda,_0x1ba7c2)=>{const _0x334944=_0x2dc6fa;if(_0x239dda[_0x334944(0x34b)]!==_0x4a7495[_0x334944(0x2b0)]||_0x1ba7c2!=null&&_0x1ba7c2[_0x334944(0x1ec)]||_0x1ba7c2!=null&&_0x1ba7c2[_0x334944(0x3be)])return;let _0x46a47b=_0x239dda[_0x334944(0x1a4)];if((_0x46a47b==null?void 0x0:_0x46a47b['unitId'])!==this['unitID'])return;let _0x1a928b=_0x239dda,_0x3b9929=this[_0x334944(0x21c)]['interceptor'][_0x334944(0x15e)](this['_compressMutationService'][_0x334944(0x392)][_0x334944(0x2f2)]()[_0x334944(0x3e6)])([_0x1a928b],this[_0x334944(0x28a)])||[_0x1a928b];this[_0x334944(0x311)](_0x3b9929[0x0]);})),_0x9769f3;}};Cn=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(Jt)),V(0x8,_0xcf8d3f(B)),V(0x9,_0x4c5cd7),V(0xa,_0x3981ee),V(0xb,_0x397ef7),V(0xc,_0x30415d),V(0xd,_0x1da68f(W)),V(0xe,_0x1da68f(U))],Cn);let wn=class extends ${constructor(_0x530d9b,_0xc80387,_0x34a80c,_0x3490ce,_0x218dc3,_0x2d123a,_0x48772a,_0x753dac,_0x2cda8c,_0x5bf3ca,_0x431468,_0x2da05b,_0x29e4b7,_0x390b4c){const _0x446686=_0x5c9f94;super(_0x530d9b,_0x34a80c,_0xc80387,_0x3490ce,_0x218dc3,_0x2d123a,_0x48772a,_0x753dac,_0x2cda8c,_0x5bf3ca,_0x431468,_0x2da05b,_0x29e4b7,_0x390b4c),this[_0x446686(0x24c)]=_0x530d9b,this[_0x446686(0x34b)]=_0xc80387;}async[_0x5c9f94(0x215)](){const _0x1d49b1=_0x5c9f94;let _0x2a5907=await super[_0x1d49b1(0x215)]();return this['disposeWithMe'](this[_0x1d49b1(0x2a7)][_0x1d49b1(0x210)]((_0x2f51be,_0x5dc794)=>{const _0x49bbf7=_0x1d49b1;if(_0x2f51be[_0x49bbf7(0x34b)]!==_0x4a7495[_0x49bbf7(0x2b0)]||_0x5dc794!=null&&_0x5dc794['fromCollab']||_0x5dc794!=null&&_0x5dc794['onlyLocal'])return;let _0x55b506=_0x2f51be[_0x49bbf7(0x1a4)];if((_0x55b506==null?void 0x0:_0x55b506[_0x49bbf7(0x13c)])!==this[_0x49bbf7(0x24c)])return;let _0x498a99=_0x2f51be,_0x22691c=this[_0x49bbf7(0x21c)][_0x49bbf7(0x392)][_0x49bbf7(0x15e)](this[_0x49bbf7(0x21c)][_0x49bbf7(0x392)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x498a99],this[_0x49bbf7(0x28a)])||[_0x498a99];this['_onLocalMutation'](_0x22691c[0x0]);})),_0x2a5907;}};wn=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0x1da68f(W)),V(0xd,_0x1da68f(U))],wn);let Tn=class extends ${constructor(_0x1162b2,_0x15fba6,_0x265b9a,_0x229e0b,_0x11f13a,_0x21f94,_0x10eb99,_0x50d6ba,_0x44157a,_0x194c96,_0x48a2f9,_0x22922d,_0x49bba3,_0x15634b){super(_0x1162b2,_0x265b9a,_0x15fba6,_0x229e0b,_0x11f13a,_0x21f94,_0x10eb99,_0x50d6ba,_0x44157a,_0x194c96,_0x48a2f9,_0x22922d,_0x49bba3,_0x15634b),this['unitID']=_0x1162b2,this['type']=_0x15fba6;}async[_0x5c9f94(0x215)](){const _0xa7a9c0=_0x5c9f94;let _0x3bb5b5=await super[_0xa7a9c0(0x215)]();return this[_0xa7a9c0(0x189)](this[_0xa7a9c0(0x2a7)][_0xa7a9c0(0x210)]((_0x1092d7,_0x3fbeac)=>{const _0x59e940=_0xa7a9c0;if(_0x1092d7[_0x59e940(0x34b)]!==_0x4a7495[_0x59e940(0x2b0)]||_0x3fbeac!=null&&_0x3fbeac[_0x59e940(0x1ec)]||_0x3fbeac!=null&&_0x3fbeac[_0x59e940(0x3be)])return;let _0x495357=_0x1092d7['params'];if((_0x495357==null?void 0x0:_0x495357[_0x59e940(0x13c)])!==this[_0x59e940(0x24c)])return;let _0x4785da=_0x1092d7,_0x264e02=this[_0x59e940(0x21c)][_0x59e940(0x392)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x59e940(0x392)][_0x59e940(0x2f2)]()[_0x59e940(0x3e6)])([_0x4785da],this[_0x59e940(0x28a)])||[_0x4785da];this[_0x59e940(0x311)](_0x264e02[0x0]);})),_0x3bb5b5;}};Tn=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0x1da68f(W)),V(0xd,_0x1da68f(U))],Tn);let En=class extends ${constructor(_0x51ee6a,_0x252d1a,_0x4d2f29,_0x57062f,_0xb6ecb8,_0x50061b,_0x4982ab,_0x5d88d1,_0x2f90c2,_0xacc948,_0x1eb99e,_0x1994ad,_0x50750f,_0x3c86aa){super(_0x51ee6a,_0x4d2f29,_0x252d1a,_0x57062f,_0xb6ecb8,_0x50061b,_0x4982ab,_0x5d88d1,_0x2f90c2,_0xacc948,_0x1eb99e,_0x1994ad,_0x50750f,_0x3c86aa),this['unitID']=_0x51ee6a,this['type']=_0x252d1a;}async['_init'](){const _0x40a288=_0x5c9f94;let _0x2f4bca=await super[_0x40a288(0x215)]();return this[_0x40a288(0x189)](this[_0x40a288(0x2a7)][_0x40a288(0x210)]((_0x4e15f6,_0x4728f8)=>{const _0x1b8899=_0x40a288;if(_0x4e15f6[_0x1b8899(0x34b)]!==_0x4a7495['MUTATION']||_0x4728f8!=null&&_0x4728f8[_0x1b8899(0x1ec)]||_0x4728f8!=null&&_0x4728f8['onlyLocal'])return;let _0xfda770=_0x4e15f6['params'];if((_0xfda770==null?void 0x0:_0xfda770[_0x1b8899(0x13c)])!==this[_0x1b8899(0x24c)])return;let _0x32f618=_0x4e15f6,_0x47844a=this[_0x1b8899(0x21c)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x1b8899(0x2f2)]()[_0x1b8899(0x3e6)])([_0x32f618],this[_0x1b8899(0x28a)])||[_0x32f618];this[_0x1b8899(0x311)](_0x47844a[0x0]);})),_0x2f4bca;}};En=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0x1da68f(W)),V(0xd,_0x1da68f(U))],En);const Dn=_0x1db16f(_0x5c9f94(0x3f0));function On(_0x5d8288){const _0xdf38a5=_0x5c9f94;let _0x1defda=_0x5d8288[_0xdf38a5(0x3cf)],_0x2b8fac=JSON['parse'](_0x1defda);switch(_0x2b8fac['cmd']){case _0xcb980a[_0xdf38a5(0x337)]:case _0xcb980a[_0xdf38a5(0x3a5)]:{let _0x3b6817=_0x2b8fac[_0xdf38a5(0x3cb)];return{..._0x2b8fac,'data':_0x3b6817,'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};}case _0xcb980a[_0xdf38a5(0x164)]:{let _0x3878ac=_0x2b8fac['joinRsp'];return{..._0x2b8fac,'data':_0x3878ac,'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};}case _0xcb980a[_0xdf38a5(0x180)]:{let _0x483660=_0x2b8fac[_0xdf38a5(0x14c)];switch(_0x483660[_0xdf38a5(0x198)]){case _0x538b71[_0xdf38a5(0x22e)]:var _0x3bda6e;return{..._0x2b8fac,'data':{..._0x483660,'data':(_0x3bda6e=_0x483660[_0xdf38a5(0x294)])==null?void 0x0:_0x3bda6e['cs']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71['CHANGESET_ACK']:var _0xa9c48d;return{..._0x2b8fac,'data':{..._0x483660,'data':(_0xa9c48d=_0x483660[_0xdf38a5(0x13a)])==null?void 0x0:_0xa9c48d['cs']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71['NEW_CHANGESETS']:var _0x3b1052;return{..._0x2b8fac,'data':{..._0x483660,'data':(_0x3b1052=_0x483660[_0xdf38a5(0x263)])==null?void 0x0:_0x3b1052['cs']},'cmd':_0x2b8fac['cmd']};case _0x538b71[_0xdf38a5(0x22c)]:var _0x2cd97d;return{..._0x2b8fac,'data':{..._0x483660,'data':(_0x2cd97d=_0x483660[_0xdf38a5(0x2fe)])==null?void 0x0:_0x2cd97d['cs']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x24e)]:var _0x1b95d8;return{..._0x2b8fac,'data':{..._0x483660,'data':(_0x1b95d8=_0x483660[_0xdf38a5(0x24a)])==null?void 0x0:_0x1b95d8['cs']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x251)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x178)]},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71['USERS_ENTER']:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x1df)]},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71['USERS_LEAVE']:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660['leaveEvent']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x1f7)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x182)]},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71['LIVESHARE_FETCH_OPERATIONS']:case _0x538b71[_0xdf38a5(0x33c)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x17a)]},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x307)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x182)]},'cmd':_0x2b8fac['cmd']};case _0x538b71[_0xdf38a5(0x145)]:return{..._0x2b8fac,'data':_0x483660,'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x286)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x289)]},'cmd':_0x2b8fac['cmd']};case _0x538b71[_0xdf38a5(0x18a)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660['updatePermissionObjEvent']},'cmd':_0x2b8fac['cmd']};case _0x538b71[_0xdf38a5(0x20d)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x332)]},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x1bd)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660['uniscriptRunEvent']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};default:return _0x2b8fac;}}default:return _0x2b8fac;}}function kn(_0x4efe3f){const _0x497068=_0x5c9f94;switch(_0x4efe3f[_0x497068(0x14d)]){case _0xcb980a['HEARTBEAT']:case _0xcb980a[_0x497068(0x3a5)]:return JSON[_0x497068(0x2d6)]({'cmd':_0x4efe3f[_0x497068(0x14d)],'routeKey':_0x4efe3f[_0x497068(0x3f2)]});case _0xcb980a[_0x497068(0x3ba)]:{let _0xe24cea;switch(_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x198)]){case _0x538b71[_0x497068(0x251)]:_0xe24cea={'eventID':_0x538b71[_0x497068(0x251)],'updateCursorEvent':_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x3cf)]};break;case _0x538b71[_0x497068(0x298)]:_0xe24cea={'eventID':_0x538b71[_0x497068(0x298)],'leaveEvent':_0x4efe3f['data'][_0x497068(0x3cf)]};break;case _0x538b71['USERS_ENTER']:_0xe24cea={'eventID':_0x538b71[_0x497068(0x38e)],'joinEvent':_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x3cf)]};break;case _0x538b71[_0x497068(0x1f7)]:_0xe24cea={'eventID':_0x538b71[_0x497068(0x1f7)],'liveShareNewHost':_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x3cf)]};break;case _0x538b71['LIVESHARE_OPERATION']:_0xe24cea={'eventID':_0x538b71['LIVESHARE_OPERATION'],'liveShareOperation':_0x4efe3f[_0x497068(0x3cf)]['data']};break;case _0x538b71[_0x497068(0x307)]:_0xe24cea={'eventID':_0x538b71['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x3cf)]};break;case _0x538b71[_0x497068(0x348)]:_0xe24cea={'eventID':_0x538b71[_0x497068(0x348)],'liveShareRequestHost':_0x4efe3f['data'][_0x497068(0x3cf)]};break;case _0x538b71[_0x497068(0x14e)]:_0xe24cea={'eventID':_0x538b71[_0x497068(0x14e)]};break;default:_0xe24cea={'eventID':_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x198)]};}return JSON[_0x497068(0x2d6)]({'cmd':_0x4efe3f['cmd'],'routeKey':_0x4efe3f[_0x497068(0x3f2)],'collaMsg':_0xe24cea});}case _0xcb980a[_0x497068(0x164)]:return JSON[_0x497068(0x2d6)]({'cmd':_0x4efe3f['cmd'],'routeKey':_0x4efe3f[_0x497068(0x3f2)],'joinReq':_0x4efe3f[_0x497068(0x3cf)]});case _0xcb980a[_0x497068(0x17c)]:return JSON['stringify']({'cmd':_0x4efe3f[_0x497068(0x14d)],'routeKey':_0x4efe3f[_0x497068(0x3f2)],'leaveReq':_0x4efe3f[_0x497068(0x3cf)]});default:throw Error(_0x497068(0x34d));}}const An=_0x1db16f(_0x5c9f94(0x21a));function jn(_0x2b7dc1,_0x335c19,_0x40d67d){const _0x1ed0dd=_0x5c9f94;return _0x2b7dc1+'/'+_0x335c19+_0x1ed0dd(0x2d4)+_0x40d67d+_0x1ed0dd(0x17b);}let Mn=class extends _0x588e84{constructor(_0x236c84,_0xab110b,_0x4287f8,_0x11c6a3,_0x290575){const _0x521c4c=_0x5c9f94;super(),this[_0x521c4c(0x3eb)]=_0x236c84,this[_0x521c4c(0x379)]=_0xab110b,this[_0x521c4c(0x323)]=_0x4287f8,this[_0x521c4c(0x26a)]=_0x11c6a3,this[_0x521c4c(0x2e8)]=_0x290575;}[_0x5c9f94(0x275)](_0x3f5677){const _0x834ee4=_0x5c9f94;let _0x36b431=this['_injector'][_0x834ee4(0x160)](_0x17aa40);if(!_0x36b431)throw Error(_0x834ee4(0x22f));let _0x4c8256=_0x36b431[_0x834ee4(0x300)](_0x3f5677);if(!_0x4c8256)throw Error(_0x834ee4(0x199));let _0x105db0=new _0x21b987(),_0x27c1e1=new _0x4e03af();_0x105db0[_0x834ee4(0x287)](_0x4c8256[_0x834ee4(0x1ed)][_0x834ee4(0x168)](_0x5c6a2a=>_0x27c1e1['next'](_0x5c6a2a))),_0x105db0[_0x834ee4(0x287)](_0x2b94ed(()=>_0x27c1e1['complete']()));let _0x3955c1=new _0x4e03af();_0x105db0[_0x834ee4(0x287)](_0x4c8256[_0x834ee4(0x183)][_0x834ee4(0x168)](_0x1426a4=>_0x3955c1[_0x834ee4(0x3b1)](_0x1426a4))),_0x105db0['add'](_0x2b94ed(()=>_0x3955c1[_0x834ee4(0x31a)]()));let _0x24d7ba=new _0x4e03af();_0x105db0['add'](_0x4c8256[_0x834ee4(0x366)][_0x834ee4(0x168)](_0x1bd997=>{let _0x41e55b=On(_0x1bd997);_0x24d7ba['next'](_0x41e55b);})),_0x105db0['add'](_0x2b94ed(()=>_0x24d7ba[_0x834ee4(0x31a)]()));let _0x51f866,_0x6f45e3=()=>{const _0x29730f=_0x834ee4;_0x3955c1[_0x29730f(0x3b1)](new Event(_0x29730f(0x326))),_0x27c1e1[_0x29730f(0x3b1)](new Event(_0x29730f(0x326))),_0x51f866[_0x29730f(0x17d)]();};return _0x51f866={'memberID':'','close$':_0x27c1e1[_0x834ee4(0x190)](),'error$':_0x3955c1[_0x834ee4(0x190)](),'open$':_0x4c8256[_0x834ee4(0x1f1)],'message$':_0x24d7ba['asObservable'](),'send':_0x549db6=>{const _0x2249cd=_0x834ee4;if(_0x549db6[_0x2249cd(0x14d)]===_0xcb980a['INGEST']){if(_0x549db6[_0x2249cd(0x3cf)][_0x2249cd(0x198)]===_0x538b71[_0x2249cd(0x2c5)]){this[_0x2249cd(0x1d9)](_0x51f866,_0x549db6['data'])['catch'](_0x18a914=>{const _0x38a7c6=_0x2249cd;this[_0x38a7c6(0x26a)][_0x38a7c6(0x2dc)](_0x18a914),_0x6f45e3();});return;}if(_0x549db6[_0x2249cd(0x3cf)][_0x2249cd(0x198)]===_0x538b71[_0x2249cd(0x25a)]){let _0x5489b9=_0x549db6[_0x2249cd(0x3cf)];this[_0x2249cd(0x17f)](_0x5489b9)['then'](_0x508aed=>{const _0x2dde13=_0x2249cd;_0x24d7ba[_0x2dde13(0x3b1)]({'cmd':_0xcb980a[_0x2dde13(0x180)],'code':_0x3c0867['OK'],'routeKey':_0x5489b9['data']['unitID'],'routeType':'','data':{'eventID':_0x538b71[_0x2dde13(0x378)],'data':{'changesets':_0x508aed}}});})[_0x2249cd(0x3e1)](_0x1b6db1=>{const _0x309338=_0x2249cd;this[_0x309338(0x26a)][_0x309338(0x2dc)](_0x1b6db1),_0x6f45e3();});return;}}_0x4c8256['send'](kn(_0x549db6));},'close':()=>{const _0x21f517=_0x834ee4;_0x4c8256[_0x21f517(0x17d)](),_0x105db0[_0x21f517(0x316)]();}},_0x51f866;}async[_0x5c9f94(0x1d9)](_0x5982d0,_0x197f23){const _0x1040a1=_0x5c9f94;let {unitType:_0x2c73fd,unitID:_0x310564,changeset:_0x121897}=_0x197f23[_0x1040a1(0x3cf)],_0x4c1520={'unitID':_0x310564,'memberID':_0x5982d0[_0x1040a1(0x331)],'type':_0x2c73fd,'changeset':_0x3e125d(_0x121897)},_0x393b82=this[_0x1040a1(0x323)][_0x1040a1(0x1a1)](R),_0x155648=jn((_0x393b82==null?void 0x0:_0x393b82['collabSubmitChangesetUrl'])??_0x1040a1(0x2b7),_0x2c73fd,_0x310564);try{await this[_0x1040a1(0x379)][_0x1040a1(0x320)](_0x155648,{'body':_0x4c1520});}catch(_0x4e37de){throw this['_logService'][_0x1040a1(0x2dc)](_0x1040a1(0x177),_0x1040a1(0x30f)),_0x4e37de;}}async['_fetchMissChangesets'](_0x30d927){const _0x16011c=_0x5c9f94;let {unitID:_0x32864d,from:_0x34ba2e,to:_0x4fa12e,unitType:_0x535a6b}=_0x30d927[_0x16011c(0x3cf)];return(await this[_0x16011c(0x2e8)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x32864d,'type':_0x535a6b,'from':_0x34ba2e,'to':_0x4fa12e}))[_0x16011c(0x329)][_0x16011c(0x375)](_0x3b5e16=>((_0x3b5e16[_0x16011c(0x202)]===null||_0x3b5e16[_0x16011c(0x202)]===void 0x0)&&(_0x3b5e16[_0x16011c(0x202)]=[]),_0x3b5e16));}};Mn=H([V(0x0,_0xcf8d3f(_0x19ff28)),V(0x1,_0xcf8d3f(_0x145224)),V(0x2,_0xf41dc9),V(0x3,_0x3981ee),V(0x4,_0x1425c0)],Mn);const Nn=_0x1db16f('univer-pro.collaboration-client-adapter-service');function Pn(_0x487df4={}){const _0x3c6859=_0x5c9f94;return _0x487df4['resolveUnit']?{'resolveUnit':_0x487df4[_0x3c6859(0x39a)]}:{'resolveUnit':_0xc394e5=>({'target':{'unitId':_0xc394e5[_0x3c6859(0x13c)],'unitType':_0xc394e5[_0x3c6859(0x2fb)]}})};}function Fn(_0x434fdb,_0x44fa1a,_0x100620){const _0x553d06=_0x5c9f94;let _0x49b47a=_0x100620['target']['endpoint'];if(_0x49b47a!=null&&_0x49b47a['trim']()==='')throw Error(_0x553d06(0x1e0));if(!_0x100620['target'][_0x553d06(0x13c)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x434fdb,'unitType':_0x44fa1a,'target':{'endpoint':_0x49b47a,'unitId':_0x100620['target'][_0x553d06(0x13c)],'unitType':_0x100620[_0x553d06(0x141)][_0x553d06(0x2fb)]??_0x44fa1a},'changeset':_0x100620['changeset']};}let In=class extends _0x588e84{constructor(_0x8aa0f6,_0x146292,_0x59cc3d,_0x5c1b84,_0x5e490e,_0x1d2c50,_0x501ef1){const _0x4f2734=_0x5c9f94;super(),this[_0x4f2734(0x3eb)]=_0x8aa0f6,this['_logService']=_0x146292,this[_0x4f2734(0x323)]=_0x59cc3d,this[_0x4f2734(0x162)]=_0x5c1b84,this[_0x4f2734(0x143)]=_0x5e490e,this[_0x4f2734(0x314)]=_0x1d2c50,this[_0x4f2734(0x15f)]=_0x501ef1,z(this,_0x4f2734(0x277),new Map()),z(this,'_pendingSessions',new Map()),z(this,_0x4f2734(0x321),new Map()),z(this,'_socketChannels',new Map()),z(this,'socket$',this[_0x4f2734(0x315)](void 0x0)['socket$']['asObservable']()),z(this,_0x4f2734(0x362),new _0x1946cb(0x0)),z(this,_0x4f2734(0x2a9),this['_status$'][_0x4f2734(0x190)]()),this[_0x4f2734(0x3b3)]();}[_0x5c9f94(0x3b3)](){const _0x11b615=_0x5c9f94;this[_0x11b615(0x15f)]&&this['disposeWithMe'](this[_0x11b615(0x15f)][_0x11b615(0x361)][_0x11b615(0x168)](_0x15f428=>{const _0x11ecf8=_0x11b615;_0x15f428&&this[_0x11ecf8(0x3c6)](),_0x15f428||this[_0x11ecf8(0x20b)][_0x11ecf8(0x2de)](_0x27f286=>this['_onOffline'](_0x27f286));}));}[_0x5c9f94(0x316)](){const _0x5575b1=_0x5c9f94;super[_0x5575b1(0x316)](),this[_0x5575b1(0x20b)]['forEach'](_0x2240bd=>{const _0x32b5bf=_0x5575b1;var _0x5ee37f,_0x166525;(_0x5ee37f=_0x2240bd[_0x32b5bf(0x3c0)])==null||_0x5ee37f['unsubscribe'](),_0x2240bd[_0x32b5bf(0x3c0)]=null,this[_0x32b5bf(0x343)](_0x2240bd),this[_0x32b5bf(0x2a1)](_0x2240bd),this[_0x32b5bf(0x2b1)](_0x2240bd),(_0x166525=_0x2240bd[_0x32b5bf(0x3cd)][_0x32b5bf(0x154)]())==null||_0x166525[_0x32b5bf(0x17d)](),_0x2240bd[_0x32b5bf(0x3cd)][_0x32b5bf(0x31a)]();}),this['_socketChannels'][_0x5575b1(0x19e)](),this[_0x5575b1(0x277)]['forEach'](_0x44dbcc=>_0x44dbcc[_0x5575b1(0x316)]()),this[_0x5575b1(0x277)][_0x5575b1(0x19e)](),this[_0x5575b1(0x321)][_0x5575b1(0x19e)](),this[_0x5575b1(0x362)][_0x5575b1(0x31a)]();}async['requireSession'](_0x59001a,_0x1fbb13){const _0x37dff7=_0x5c9f94;if(this[_0x37dff7(0x277)][_0x37dff7(0x3e3)](_0x59001a))return this[_0x37dff7(0x277)]['get'](_0x59001a);let _0x7e8e9d=this[_0x37dff7(0x39d)]['get'](_0x59001a);if(_0x7e8e9d)return _0x7e8e9d;let _0x41101=this[_0x37dff7(0x3de)](_0x59001a,_0x1fbb13);this[_0x37dff7(0x39d)][_0x37dff7(0x1b3)](_0x59001a,_0x41101);try{return await _0x41101;}finally{this[_0x37dff7(0x39d)][_0x37dff7(0x1e8)](_0x59001a);}}async[_0x5c9f94(0x3de)](_0x5a08be,_0x19f0dd){const _0x58c40c=_0x5c9f94;let _0x3cda54=await this[_0x58c40c(0x3a9)](_0x5a08be,_0x19f0dd),_0x2f084a=this['_getSocketChannel'](_0x3cda54[_0x58c40c(0x141)]['endpoint']);this[_0x58c40c(0x3e0)](_0x2f084a);let _0x5377c7=this[_0x58c40c(0x3eb)][_0x58c40c(0x2c8)](Gt,_0x3cda54,_0x2f084a[_0x58c40c(0x3cd)][_0x58c40c(0x190)]());return this[_0x58c40c(0x277)][_0x58c40c(0x1b3)](_0x5a08be,_0x5377c7),this['_sessionChannels']['set'](_0x5a08be,_0x2f084a[_0x58c40c(0x3ca)]),_0x5377c7;}[_0x5c9f94(0x36e)](_0x291758){const _0x4289e9=_0x5c9f94;let _0x3ee99a=this['_sessions'][_0x4289e9(0x160)](_0x291758),_0xb8fa44=this[_0x4289e9(0x321)]['get'](_0x291758);if(_0x3ee99a&&(this['_sessions'][_0x4289e9(0x1e8)](_0x291758),this[_0x4289e9(0x321)][_0x4289e9(0x1e8)](_0x291758),_0x3ee99a['close']()),_0xb8fa44&&!this[_0x4289e9(0x365)](_0xb8fa44)){var _0x2ed8fa;let _0xe6d221=this[_0x4289e9(0x20b)]['get'](_0xb8fa44);_0xe6d221==null||(_0x2ed8fa=_0xe6d221['socket$'][_0x4289e9(0x154)]())==null||_0x2ed8fa[_0x4289e9(0x17d)]();}}[_0x5c9f94(0x3c6)](){const _0x34eff7=_0x5c9f94;(this[_0x34eff7(0x20b)][_0x34eff7(0x3e5)]?[...this['_socketChannels'][_0x34eff7(0x381)]()]:[this[_0x34eff7(0x315)](void 0x0)])['forEach'](_0x513ea0=>{const _0x3286cd=_0x34eff7;_0x513ea0[_0x3286cd(0x16f)]=0x0,this[_0x3286cd(0x343)](_0x513ea0),this[_0x3286cd(0x34c)](_0x513ea0);});}[_0x5c9f94(0x343)](_0x34d293){const _0x3db616=_0x5c9f94;_0x34d293[_0x3db616(0x1d8)]!=null&&(clearTimeout(_0x34d293['retryConnectingTimer']),_0x34d293[_0x3db616(0x1d8)]=null);}async[_0x5c9f94(0x359)](_0x2b4b81){const _0x1ee1a1=_0x5c9f94;let _0x443ea4=this[_0x1ee1a1(0x323)][_0x1ee1a1(0x1a1)](R),_0x1d6524=_0x2b4b81[_0x1ee1a1(0x3e4)]??(_0x443ea4==null?void 0x0:_0x443ea4[_0x1ee1a1(0x370)])??_0x1ee1a1(0x245),_0x297886=await this['_socketService']['createSocket'](_0x1d6524);return _0x2b4b81[_0x1ee1a1(0x20a)]=_0x297886,_0x297886;}async[_0x5c9f94(0x3e0)](_0x15c0fa){const _0x4138b4=_0x5c9f94;try{let _0x4827ff=_0x15c0fa[_0x4138b4(0x3cd)]['getValue']()??_0x15c0fa[_0x4138b4(0x20a)]??await this['_createSocket'](_0x15c0fa);if(_0x4827ff){var _0x145b1b;let _0x24cdab=_0x4827ff[_0x4138b4(0x308)];_0x4827ff['send']=_0x25e7da=>(_0x25e7da[_0x4138b4(0x14d)]!==_0xcb980a[_0x4138b4(0x17c)]&&this[_0x4138b4(0x200)](_0x15c0fa),_0x24cdab[_0x4138b4(0x347)](_0x4827ff,[_0x25e7da])),(_0x145b1b=_0x15c0fa[_0x4138b4(0x3c0)])==null||_0x145b1b[_0x4138b4(0x20f)](),_0x15c0fa['socketMessageSubscription']=null,_0x15c0fa['socketMessageSubscription']=_0x4827ff[_0x4138b4(0x366)]['subscribe'](_0x29f6e7=>this[_0x4138b4(0x242)](_0x15c0fa,_0x4827ff,_0x29f6e7)),_0x4827ff['error$'][_0x4138b4(0x270)](_0x2c8673(0x1))[_0x4138b4(0x168)](_0x681c4d=>this[_0x4138b4(0x26a)]['error'](_0x4138b4(0x19b),_0x681c4d)),_0x4827ff[_0x4138b4(0x1f1)][_0x4138b4(0x270)](_0x2c8673(0x1))[_0x4138b4(0x168)](()=>{this['_onConnectionOpen'](_0x15c0fa,_0x4827ff);}),_0x4827ff[_0x4138b4(0x1ed)][_0x4138b4(0x270)](_0x2c8673(0x1))[_0x4138b4(0x168)](_0x147933=>{const _0x11e5d9=_0x4138b4;this['_logService'][_0x11e5d9(0x1aa)](_0x11e5d9(0x228),_0x11e5d9(0x209),_0x147933),this[_0x11e5d9(0x280)](_0x15c0fa);});}}catch(_0x5a2e6b){this['_logService'][_0x4138b4(0x2dc)](_0x5a2e6b),this['_onConnectionFailed'](_0x15c0fa);}}['_onConnectionOpen'](_0x2a7a60,_0x400883){const _0x421afe=_0x5c9f94;this[_0x421afe(0x26a)][_0x421afe(0x1aa)](_0x421afe(0x228),_0x421afe(0x2fc)),_0x400883[_0x421afe(0x308)]({'cmd':_0xcb980a[_0x421afe(0x3a5)]}),this[_0x421afe(0x200)](_0x2a7a60);}[_0x5c9f94(0x318)](_0x8694c){const _0x3ee346=_0x5c9f94;_0x8694c[_0x3ee346(0x3a1)]=!0x1,_0x8694c[_0x3ee346(0x20a)]=null,this[_0x3ee346(0x362)]['next'](0x2),_0x8694c[_0x3ee346(0x3cd)]['next'](null),this[_0x3ee346(0x2a1)](_0x8694c),this[_0x3ee346(0x2b1)](_0x8694c);}[_0x5c9f94(0x280)](_0x2a4109){const _0x32d5ea=_0x5c9f94;this[_0x32d5ea(0x318)](_0x2a4109),this[_0x32d5ea(0x365)](_0x2a4109[_0x32d5ea(0x3ca)])&&(_0x2a4109['retryCount']<(this[_0x32d5ea(0x323)][_0x32d5ea(0x1a1)](_0x32d5ea(0x15a))??0x3)?(this['_collaborationUIEventService'][_0x32d5ea(0x3a8)]({'id':_0x32d5ea(0x2c3)}),this[_0x32d5ea(0x34c)](_0x2a4109)):this['_collaborationUIEventService']['emitEvent']({'id':_0x32d5ea(0x1d7)}));}['_tryReconnect'](_0x2ca25b){const _0x2c3b42=_0x5c9f94;let _0x283a8b=_0x2ca25b[_0x2c3b42(0x16f)],_0x122556=this['_configService']['getConfig'](R),_0x4579fe=_0x283a8b===0x0?0x0:((_0x122556==null?void 0x0:_0x122556['retryConnectingInterval'])??0x4e20)*0x2**_0x283a8b;_0x2ca25b[_0x2c3b42(0x1d8)]=setTimeout(()=>{const _0x172bd0=_0x2c3b42;clearTimeout(_0x2ca25b[_0x172bd0(0x1d8)]),_0x2ca25b[_0x172bd0(0x1d8)]=null,this[_0x172bd0(0x3e0)](_0x2ca25b);},_0x4579fe),_0x2ca25b[_0x2c3b42(0x16f)]+=0x1;}async[_0x5c9f94(0x3a9)](_0x50c755,_0x30fc37){const _0x5959f9=_0x5c9f94;return Fn(_0x50c755,_0x30fc37,await this[_0x5959f9(0x314)][_0x5959f9(0x39a)]({'unitId':_0x50c755,'unitType':_0x30fc37}));}[_0x5c9f94(0x242)](_0x253622,_0x18f1e3,_0x30cb59){const _0x220fe0=_0x5c9f94;let {cmd:_0x47c608}=_0x30cb59;_0x47c608===_0xcb980a[_0x220fe0(0x3a5)]&&!_0x253622[_0x220fe0(0x3a1)]&&(_0x18f1e3[_0x220fe0(0x331)]=_0x30cb59['data']['memberID'],_0x253622[_0x220fe0(0x16f)]=0x0,_0x253622['socket$']['next'](_0x18f1e3),this[_0x220fe0(0x362)][_0x220fe0(0x3b1)](0x3),_0x253622['socketReady']=!0x0,_0x253622[_0x220fe0(0x20a)]=null),_0x47c608===_0xcb980a[_0x220fe0(0x337)]&&this[_0x220fe0(0x2a1)](_0x253622),this['_rescheduleHeartbeat'](_0x253622);}[_0x5c9f94(0x365)](_0x1f971b){const _0x322d85=_0x5c9f94;return[...this[_0x322d85(0x321)][_0x322d85(0x381)]()][_0x322d85(0x1b6)](_0x37117e=>_0x37117e===_0x1f971b);}[_0x5c9f94(0x315)](_0x1bb80f){const _0x22e22b=_0x5c9f94;let _0x313c65=_0x1bb80f??'',_0xa25a73=this[_0x22e22b(0x20b)][_0x22e22b(0x160)](_0x313c65);if(_0xa25a73)return _0xa25a73;let _0x562da1={'endpointKey':_0x313c65,'endpoint':_0x1bb80f,'socket$':new _0x1946cb(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x22e22b(0x20b)][_0x22e22b(0x1b3)](_0x313c65,_0x562da1),_0x562da1;}[_0x5c9f94(0x200)](_0x1ff0ef){const _0x31dd4a=_0x5c9f94;this[_0x31dd4a(0x2b1)](_0x1ff0ef),_0x1ff0ef[_0x31dd4a(0x229)]=setTimeout(()=>this['_sendHeartbeat'](_0x1ff0ef),this[_0x31dd4a(0x323)][_0x31dd4a(0x1a1)](_0x31dd4a(0x25e))??0x7530);}[_0x5c9f94(0x3e2)](_0x284fde){const _0x3418e2=_0x5c9f94;_0x284fde[_0x3418e2(0x3cd)][_0x3418e2(0x154)]()[_0x3418e2(0x308)]({'cmd':_0xcb980a[_0x3418e2(0x337)]}),this['_waitForHeartbeatResponse'](_0x284fde);}[_0x5c9f94(0x3b6)](_0x4cda4a){const _0x8fe492=_0x5c9f94;_0x4cda4a[_0x8fe492(0x2b2)]=setTimeout(()=>this['_onConnectionFailed'](_0x4cda4a),this[_0x8fe492(0x323)]['getConfig']('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x5c9f94(0x2b1)](_0x36ae3a){const _0xc1825a=_0x5c9f94;_0x36ae3a[_0xc1825a(0x229)]!=null&&(clearTimeout(_0x36ae3a[_0xc1825a(0x229)]),_0x36ae3a[_0xc1825a(0x229)]=null);}['_clearTimeoutTimer'](_0x5aa4ab){const _0x2f3648=_0x5c9f94;_0x5aa4ab[_0x2f3648(0x2b2)]!=null&&(clearTimeout(_0x5aa4ab['timeoutTimer']),_0x5aa4ab[_0x2f3648(0x2b2)]=null);}};In=H([V(0x0,_0xcf8d3f(_0x19ff28)),V(0x1,_0x3981ee),V(0x2,_0xf41dc9),V(0x3,An),V(0x4,_0xcf8d3f(B)),V(0x5,Nn),V(0x6,_0x1da68f(Dn))],In);let Ln=class extends _0x468ac5{constructor(_0x54f9b1,_0x260d40,_0x3f2018,_0xd9ed2c){const _0x3a8e4f=_0x5c9f94;var _0x23353b;super(),this[_0x3a8e4f(0x3eb)]=_0x54f9b1,this[_0x3a8e4f(0x219)]=_0x260d40,this[_0x3a8e4f(0x323)]=_0x3f2018,this[_0x3a8e4f(0x28a)]=_0xd9ed2c,z(this,_0x3a8e4f(0x261),new Map()),z(this,_0x3a8e4f(0x313),new _0x4e03af()),z(this,_0x3a8e4f(0x397),this[_0x3a8e4f(0x313)][_0x3a8e4f(0x190)]()),((_0x23353b=this['_configService'][_0x3a8e4f(0x1a1)](_0x3a8e4f(0x247)))==null?void 0x0:_0x23353b['enableCollaboration'])!==!0x1&&this['_init']();}[_0x5c9f94(0x316)](){const _0x3f6b8c=_0x5c9f94;super[_0x3f6b8c(0x316)](),this[_0x3f6b8c(0x261)][_0x3f6b8c(0x2de)](_0x59cab3=>_0x59cab3['dispose']()),this['_entities']['clear']();}[_0x5c9f94(0x369)](_0x211206){const _0x1f85f8=_0x5c9f94;return this[_0x1f85f8(0x261)][_0x1f85f8(0x160)](_0x211206)??null;}[_0x5c9f94(0x250)](_0x589f19){const _0x1324b6=_0x5c9f94;let _0xdb0403=this[_0x1324b6(0x369)](_0x589f19);return _0xdb0403?_0xf609a3(_0xdb0403):this[_0x1324b6(0x313)][_0x1324b6(0x270)](_0x5d4b25(_0x1eee52=>_0x1eee52[_0x1324b6(0x24c)]===_0x589f19));}[_0x5c9f94(0x373)](_0xf4c3bd){const _0x5e2385=_0x5c9f94;return _0x3f95e4(this[_0x5e2385(0x250)](_0xf4c3bd)[_0x5e2385(0x270)](_0x13126a(()=>void 0x0)));}[_0x5c9f94(0x215)](){const _0x2a1553=_0x5c9f94;this[_0x2a1553(0x28a)][_0x2a1553(0x2ff)](_0x2efadb[_0x2a1553(0x21d)])[_0x2a1553(0x270)](_0x21bb40(this['dispose$']),_0x2fc4f9(0x10))['subscribe'](async _0x15c19d=>{const _0x4c7ebc=_0x2a1553;let _0x200108=_0x15c19d['unit'][_0x4c7ebc(0x394)](),_0x354265=await this[_0x4c7ebc(0x3f1)](_0x200108,_0x2efadb[_0x4c7ebc(0x21d)]);this['_entities'][_0x4c7ebc(0x1b3)](_0x200108,_0x354265);}),this[_0x2a1553(0x28a)][_0x2a1553(0x2ff)](_0x2efadb[_0x2a1553(0x29a)])[_0x2a1553(0x270)](_0x21bb40(this[_0x2a1553(0x391)]),_0x2fc4f9(0x10))[_0x2a1553(0x270)](_0x5d4b25(_0x2ebba4=>!_0x2ebba4[_0x2a1553(0x1e7)][_0x2a1553(0x394)]()['startsWith']('__')))[_0x2a1553(0x168)](async _0x2f9086=>{const _0x2c196a=_0x2a1553;let _0x1aa750=_0x2f9086[_0x2c196a(0x1e7)][_0x2c196a(0x394)](),_0x1faa6e=await this['_startCollaboration'](_0x1aa750,_0x2efadb[_0x2c196a(0x29a)]);this['_entities'][_0x2c196a(0x1b3)](_0x1aa750,_0x1faa6e);}),this[_0x2a1553(0x28a)][_0x2a1553(0x2ff)](_0x2efadb[_0x2a1553(0x1d3)])[_0x2a1553(0x270)](_0x21bb40(this[_0x2a1553(0x391)]),_0x2fc4f9(0x10))[_0x2a1553(0x168)](async _0x403f57=>{const _0x216709=_0x2a1553;let _0x1d411d=_0x403f57['unit']['getUnitId'](),_0x4d96b1=await this[_0x216709(0x3f1)](_0x1d411d,_0x2efadb[_0x216709(0x1d3)]);this[_0x216709(0x261)][_0x216709(0x1b3)](_0x1d411d,_0x4d96b1);}),this[_0x2a1553(0x28a)]['getTypeOfUnitAdded$'](_0x2efadb[_0x2a1553(0x3ed)])[_0x2a1553(0x270)](_0x21bb40(this[_0x2a1553(0x391)]),_0x2fc4f9(0x10))[_0x2a1553(0x168)](async _0x24c549=>{const _0x21f218=_0x2a1553;let _0x3fd863=_0x24c549['unit'][_0x21f218(0x394)](),_0x4107b0=await this['_startCollaboration'](_0x3fd863,_0x2efadb[_0x21f218(0x3ed)]);this[_0x21f218(0x261)][_0x21f218(0x1b3)](_0x3fd863,_0x4107b0);}),this['_univerInstanceService'][_0x2a1553(0x2ff)](_0x2efadb[_0x2a1553(0x3a6)])['pipe'](_0x21bb40(this[_0x2a1553(0x391)]),_0x2fc4f9(0x10))[_0x2a1553(0x168)](async _0x194151=>{const _0x46845b=_0x2a1553;let _0x4c2cec=_0x194151[_0x46845b(0x1e7)][_0x46845b(0x394)](),_0x281edf=await this[_0x46845b(0x3f1)](_0x4c2cec,_0x2efadb[_0x46845b(0x3a6)]);this[_0x46845b(0x261)][_0x46845b(0x1b3)](_0x4c2cec,_0x281edf);}),this['_univerInstanceService'][_0x2a1553(0x2ff)](_0x2efadb['UNIVER_PDF'])[_0x2a1553(0x270)](_0x21bb40(this[_0x2a1553(0x391)]),_0x2fc4f9(0x10))['subscribe'](async _0x4b08a3=>{const _0x303fd3=_0x2a1553;let _0x552dcb=_0x4b08a3[_0x303fd3(0x1e7)][_0x303fd3(0x394)](),_0x15144d=await this[_0x303fd3(0x3f1)](_0x552dcb,_0x2efadb['UNIVER_PDF']);this[_0x303fd3(0x261)][_0x303fd3(0x1b3)](_0x552dcb,_0x15144d);}),_0x41572c(this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb[_0x2a1553(0x21d)]),this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb[_0x2a1553(0x29a)]),this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb['UNIVER_SLIDE']),this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb[_0x2a1553(0x3ed)]),this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb[_0x2a1553(0x3a6)]),this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb['UNIVER_PDF']))[_0x2a1553(0x270)](_0x21bb40(this['dispose$']))[_0x2a1553(0x168)](_0x16d115=>{const _0x5eb3f2=_0x2a1553;let _0x2f9cc9=_0x16d115[_0x5eb3f2(0x394)](),_0x162cf1=this[_0x5eb3f2(0x261)][_0x5eb3f2(0x160)](_0x2f9cc9);_0x162cf1&&(_0x162cf1[_0x5eb3f2(0x316)](),this['_entities'][_0x5eb3f2(0x1e8)](_0x2f9cc9));});}async[_0x5c9f94(0x3f1)](_0x2c092d,_0x18f66e){const _0x51534a=_0x5c9f94;let _0x309e4e=await this[_0x51534a(0x219)]['requireSession'](_0x2c092d),_0x598cfe=this[_0x51534a(0x3eb)][_0x51534a(0x2c8)](this[_0x51534a(0x39e)](_0x18f66e),_0x2c092d,_0x18f66e,_0x309e4e);return await _0x598cfe[_0x51534a(0x1f6)](),this['_entityInit$']['next'](_0x598cfe),_0x598cfe;}[_0x5c9f94(0x39e)](_0x356997){const _0x1fd2a8=_0x5c9f94;switch(_0x356997){case _0x2efadb[_0x1fd2a8(0x29a)]:return xn;case _0x2efadb['UNIVER_SHEET']:return Cn;case _0x2efadb[_0x1fd2a8(0x1d3)]:return wn;case _0x2efadb[_0x1fd2a8(0x3ed)]:return Tn;case _0x2efadb['UNIVER_BASE']:return Sn;case _0x2efadb['UNIVER_PDF']:return En;default:throw Error(_0x1fd2a8(0x30c)+_0x356997);}}};Ln=H([V(0x0,_0xcf8d3f(_0x19ff28)),V(0x1,_0xcf8d3f(In)),V(0x2,_0xf41dc9),V(0x3,_0x4c5cd7)],Ln);var Rn=_0x5c9f94(0x1fb),zn='1.0.4';let Bn=class extends _0x588e84{constructor(_0x46fbd8,_0x4b6b67){const _0x106455=_0x5c9f94;super(),this[_0x106455(0x28a)]=_0x46fbd8,this['_configService']=_0x4b6b67,this[_0x106455(0x215)]();}[_0x5c9f94(0x215)](){const _0x3cc670=_0x5c9f94;this[_0x3cc670(0x189)](this[_0x3cc670(0x28a)][_0x3cc670(0x2b4)][_0x3cc670(0x168)](()=>{const _0x873c96=_0x3cc670;let _0x976f36=this[_0x873c96(0x28a)][_0x873c96(0x191)](),_0x37ffa4=this[_0x873c96(0x323)]['getConfig'](_0x873c96(0x21b))??_0x873c96(0x1cb);_0x976f36 instanceof _0x2b4036&&(_0x37ffa4=_0x976f36[_0x873c96(0x31c)]),document[_0x873c96(0x206)]=_0x37ffa4;}));}};function _0x3253(){const _0x373357=['/-/object/-/batch_allowed','[DataLoaderService]','_commandService','_prepareTransformSelections','status$','resolve','refreshUnit','_scheduleCompleteTimestamp','1560300yAbxBT','getTypeOfUnitDisposed$','_getLoginPath','MUTATION','_clearHeartbeatTimer','timeoutTimer','pauseCollaboration','focused$','_telemetryService','stopTime','/universer-api/comb','_userManagerService','headers','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_getUploadFileURL','_transformRemoteChangesetByStateCache','_updateState','CONFLICT','addHandlerCallback','incrementRevOfUnit','Slide','_sendingTimer','SOCKET_FAILED_RETRY','baseRev','SUBMIT_CHANGESET','onload','_updateLocalCache','createInstance','_transformAndApplyRemoteChangeset','editing\x20status\x20changed\x20to','commit','collaborators','POST','function','downloadEndpointUrl','commentUpdate$','awaitingChangeset','[SyncedState]:\x20received\x20rejection.','c1Prime','/unit/','_cfgEnableObjInherit','stringify','compose','override','conflict','isPermissionRej','origin','error','revision','forEach','string','objectActions','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_getSendChangesetTimeout','offline','unit-cache-','fetchMissingChangesets','loadUnit','_disposed','_snapshotServerService','JOINING','_syncEditingCollabCursor','?size=','getCurrentUser','_applyRemoteChangeset','getUnitOnRev','setCfgEnableObjInherit','NOT_COLLAB','saveImage','getInterceptPoints','loadDoc','/universer-api/stream/file/upload','responseType','_createHandler','194802AEAyWE','clearUnit','_throwTelemetryCollaborationNewChangeset','_changesetSessionId','unitType','socket\x20open.','length','csRejEvent','getTypeOfUnitAdded$','createSocket','_closedUnits','isArray','localeService','HEARTBEAT_TIMEOUT','_refreshUnitPermission','fetching\x20missing\x20changesets\x20from\x20','LIVESHARE_TERMINATE','send','setConfig','objects','_replayCachedMutations','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','max','_transformUndoredo','submit\x20changeset\x20error!','_onRemoteRetry','_onLocalMutation','subUnitId','_entityInit$','_adapter','_getSocketChannel','dispose','charCodeAt','_onOffline','saveAttachment','complete','CLOSE_ROOM','name','_transformRemoteChangesetByIMECache','_onConflict','version','post','_sessionChannels','_pendingMutations','_configService','FETCH_MISS','originalMeta','connection\x20error','_sheetTransformSelectionsService','_config','changesets','_onRemoteACK','getOwnPropertyDescriptor','/resources','includes','[CollaborationEntity]','transformMutationsWithChangeset','_onUserJoin','memberID','shouldCloseConn','_singleActiveUnitService','_substituteUndoStack','_initUnitPermissionChange','unknown','HEARTBEAT','_isPermissionRej','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','loadUnitOfRevision','NEW_CHANGESETS','LIVESHARE_OPERATION','_undoRedoService','/rev/','startsWith','every','_roomMembers','url','_clearRetryConnectingTimer','NO_OTHER_CLIENTS_EDITING','_HTTPService','session.join-failed','apply','LIVESHARE_REQUEST_HOST','_executeRemoteChangeset','Base','type','_tryReconnect','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','/universer-api/snapshot/','_checkMissing','confirm','columnGroups','toString','_transitionLocked','onRemoteAck','_changesetReqId','getTime','waitForRoom$','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_createSocket','_clearScheduledTask','initWorkbookPermissionChange','_waitCount','_transformIMECache','localCacheService','subject','_decreaseWaiting','online$','_status$','[UniverCollaborationClientPlugin]','_transformService','_hasSessionsForEndpoint','message$','_getAPIPrefixPath','_scheduleCollaborationTimeoutTimer','getCollabEntity','_resendTimeout','failed\x20to\x20apply\x20missed\x20changesets!','executeCommand','method','closeSession','session.room-not-exists','collabWebSocketUrl','onSyncEditingCollabCursor','getImage','readyForCollab','list','map','constructor','_onCombEvent','PSEUDO_FETCH_MISSING_RESULT','_httpService','UNIVER_COLLABORATION_CLIENT_PLUGIN','deepClone','_getConfig','localUnitId','actions','_disableEditing','updateCollaborator','values','_revisionService','[OfflineState]:\x20received\x20acknowledgement.','{fileID}','_event$','authzUrl','onRemoteChangeset','1932642WPImRo','endsWith','onStarting','objectId','docStateChange$','duration','USERS_ENTER','COMPRESS_MUTATION_APPLY','create','dispose$','interceptor','_toggleOnline','getUnitId','getMemberID','removeMember','entityInit$','OFFLINE','snapshot','resolveUnit','_onFetchMissResult','OTHER_CLIENT_EDITING','_pendingSessions','_getCtorByUniverInstanceType','unitDisposed$','pending','socketReady','IDLE','entries','saveSnapshot','HELLO','UNIVER_BASE','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','emitEvent','_resolveSessionIdentity','toggleOffline','onPrepareTransformSelections','getResourcesRequest','userID','_getSignURL','transformSelections','[SyncedState]:\x20received\x20acknowledgement.','next','synced','_listenToNetworkCondition','maxSize','BASE64','_waitForHeartbeatResponse','_createInitialState','disableLocalCache','OPTIONAL','INGEST','/allowed','/universer-api/uniscript','_acknowledgedAwaitingRevision','onlyLocal','_clearUndo','socketMessageSubscription','onRemoteRetry','PERSON','reverse','&assign=','session','reconnect','_collaborationTimeoutTimer','addImageSourceCache','_commentService','endpointKey','infoRsp','roles','socket$','_getUndoStack','data','editingUnit','startTime','_transformStack','collaboratorID','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','_showConflictNotification','/universer-api/authz','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_removeRoom','_identity','_lockTransition','toLocal','packageName','_prepareConflictRecovery','_createSession','UUID','_tryEnsureSocket','catch','_sendHeartbeat','has','endpoint','size','COMPRESS_MUTATION_SEND','resend','\x20-\x20','updateOfflineData','loadPdf','_injector','encode','UNIVER_BOARD','_schedule','fromCharCode','univer-pro.collaboration-client.network-condition.service','_startCollaboration','routeKey','CONFLICT_CACHE_CLEAR_FAILED','_onJoinRoomEvent','_memberService','csAckEvent','batchAllowed','unitId','_roomCreated$','_onRemoteChangeset','_onRemoteRejected','_members$','target','href','_collaborationUIEventService','_collaborationSessionService','MSG_FOR_ERROR','onCommentUpdate','signUrlServerUrl','uploadFileServerUrl','_getRedoStack','_docStateChangeManagerService','onTransformState','collaMsg','cmd','LIVESHARE_FETCH_OPERATIONS','requestParams','_permissionService','_acknowledgeAwaitingIfReady','transformUndoRedo','replace','getValue','getUnitType','[CollaborationUndoRedoService]','slice','hasOwnProperty','_redoStacks','RETRY_CONNECTING_MAX_COUNT','_transformStateCache','_resendTimer','_shouldReportTelemetry','fetchThroughInterceptors','_networkConditionService','get','textRanges','_socketService','sessionStatus','JOIN','encodeURIComponent','isCompositionEnd','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','subscribe','objectType','state','objectID','_exhaustRemoteChangesetQueue','getSnapshotAPIPath','find','retryCount','sendChangesetTimeout','withCredentials','setShowComponents','symbol','session.room-permission-denied','JOIN_ROOM_FAILED','onTransformRemoteChangesetByStateCache','[CollaborationSession]','updateCursorEvent','loadOfflineData','liveShareOperation','/new_changes','LEAVE','close','session.room-full','_fetchMissChangesets','RECV','onLocalMutation','liveShareNewHost','error$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','&source=','getMember','_snapshotService','/universer-api/oidc/authpage','disposeWithMe','UPDATE_PERMISSION_OBJ','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','onSendChangeset','_socket','_onRecvEvent','getCurrentRevOfUnit','asObservable','getFocusedUnit','/universer-api/file/{fileID}/sign-url','_acknowledgeAwaiting','members$','_handler','unitLoaded$','[PendingState]:\x20received\x20rejection.','eventID','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_initDependencies','[CollaborationSessionService]:\x20socket\x20error','upload','_transformSelections','clear','_unlockTransition','status','getConfig','SYNCED','_clearRedo','params','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','470816adDheL','1428652CamFSm','awaiting','/universer-api/user/session-ticket','debug','m2Prime','[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.','event$','/collaborator','loginUrlKey','snapshotServerUrl','PENDING','defineProperty','set','listCollaborators','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','some','SUBMIT_CHANGESET_TIMEOUT','createCollaborator','_getAPIPrefix','getCurrentSelections','_showConflictProcessingNotification','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','UNISCRIPT_RUN','supports','_toggleOffline','loadSheet','socketService','_replaceFileID','result','base-ui.attachment-io.service','PERMISSION_DENIED','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','resourceIDs','unitInfo$','_unitInfo$','_emitMembers','Univer','UnitEmbedded','onStateChange','getUploadOptions','_remoteChangesetQueue','_eventService','_commentUpdate$','ERROR_IMAGE','UNIVER_SLIDE','toRemote','&to=','9035496RzXAed','SOCKET_FAILED','retryConnectingTimer','_submitChangeset','cfgEnableObjInherit','Edit','_startTelemetryCollaborationNewChangeset','now','_initRequestHeader','joinEvent','COLLABORATION_ENDPOINT_INVALID','60HaRlcv','missingChangesets','/block/','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','append','onRemoteRej','unit','delete','getRoom','_updateUnitPermissionPoint','state$','fromCollab','close$','_sessionStatus$','JOIN_ROOM_NOT_EXISTS','workbook','open$','iterator','_joinRoom','hostname','reduce','init','LIVESHARE_NEW_HOST','reqId','_telemetryInfo','subType','@univerjs-pro/collaboration-client','_maxTotalRetryTimeout','src','clearOfflineData','enableAuthServer','_rescheduleHeartbeat','saveChangeset','mutations','getSheetBlock','collaboration-client.local-cache-service','_localeService','title','_upload','__splitChunk__','socket\x20close','candidateSocket','_socketChannels','onTransformIME','SHOULD_CLOSE_CONN','_socketMessageSubscription','unsubscribe','onMutationExecutedForCollab','prototype','_getDownloadEndpointURL','_type','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_init','[OfflineState]:\x20received\x20rejection.','/-/object/list','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_collabSessionService','univer-pro.collaboration-client-socket-service','DEFAULT_FILE_NAME','_compressMutationService','UNIVER_SHEET','2158568GwvhvB','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','object','_queuedRemoteChangesets','_members','\x20to\x20','action','sessionStatus$','changeset','c2Prime','[CollaborationSessionService]','sendHeartbeatTimer','getAllMembers','loadSlide','CHANGESET_REJ','_updateStatus','PERMISSION_REJ','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','registerHTTPInterceptor','fetchMiss','_state','_substituteRedoStack','body','transformStack\x20failed!','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','FileId','enableOfflineEditing','session.room-cnt-exceeds','selections','/object/','_collaborationPaused','refreshPermission','call','_onUserLeave','number','change$','_onMessage','_incrementRevisionNumber','findIndex','ws://127.0.0.1:8000/universer-api/comb/connect','rollback','collaboration-client.config','text-x','sort','csShouldRetryEvent','_change$','unitID','Workbook','CHANGESET_SHOULD_RETRY','_unitLoaded$','getCollabEntity$','UPDATE_CURSOR','onTransformSelections','/fetchmissing?from=','appendMutation','_localCacheService','AWAITING','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','listRoles','_imageSourceCache','FETCH_MISSING','onMissingChangesets','_awaitingChangeset','univer-pro.collaboration-client.single-active-unit-service','HEARTBEAT_INTERVAL','_registerDependencies','CONFLICT_PROCESSING','_entities','collaboration_new_changeset','newCsEvent','objectPermissionTypes','Failed\x20to\x20update\x20permission\x20point','blockRanges','code','_getCurrentRevision','AWAITING_WITH_PENDING','_logService','/object','avatar','transformChangesets','x-univer-host','push','pipe','_resendWithTimeout','_isEchoedAwaitingChangeset','not_collab','ERROR_EXCEED_SIZE','_doCreateSocket','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_sessions','put','_authzIoService','SUCCUSS','Error\x20on\x20receiving\x20event','getSheetId','_createInitialStateImpl','onMissedChangesetFetched','SNAPSHOT_URL_KEY','_onConnectionFailed','toggleOnline','sid','updateMember','_initCloseConn','updatePermissionPoint','COMMENT_UPDATE','add','Board','commentUpdateEvent','_univerInstanceService','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','JOIN_ROOM_PERMISSION_DENIED','_state$','backupOfflineData','file','min','_handleRemoteChangesets','accept','_instanceService','permissionRejEvent','reject','allowed','_sender','USERS_LEAVE','enableSingleActiveInstanceLock','UNIVER_DOC','range','requireSession','OTHER_CLIENTS_EDITING','getUnit','UNIVER_PDF','_clearCollaborationTimeoutTimer','_clearTimeoutTimer','setWaitCount','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_handlerCallback'];_0x3253=function(){return _0x373357;};return _0x3253();}Bn=H([V(0x0,_0x4c5cd7),V(0x1,_0xf41dc9)],Bn);const Vn=_0x1db16f(_0x5c9f94(0x1c4));let Hn=class{constructor(_0x35f02b,_0x36b0d3,_0x1e5923){const _0x13f33c=_0x5c9f94;this[_0x13f33c(0x379)]=_0x35f02b,this[_0x13f33c(0x323)]=_0x36b0d3,this[_0x13f33c(0x28a)]=_0x1e5923;}[_0x5c9f94(0x1ce)](){const _0x25e01d=_0x5c9f94;return this[_0x25e01d(0x37c)]()['attachment']??{};}async[_0x5c9f94(0x319)](_0x2fa195){const _0x418dfe=_0x5c9f94;let _0x15d88c=this[_0x418dfe(0x1ce)]();if(Un(_0x2fa195,_0x15d88c),_0x15d88c[_0x418dfe(0x19c)])return _0x15d88c['upload'](_0x2fa195);let _0x347955=await this[_0x418dfe(0x207)](_0x2fa195);return{'id':_0x347955,'name':_0x2fa195[_0x418dfe(0x31c)],'mimeType':_0x2fa195[_0x418dfe(0x34b)],'size':_0x2fa195[_0x418dfe(0x3e5)],'sourceType':_0x237f28[_0x418dfe(0x3df)],'source':_0x347955};}async['getAttachmentUrl'](_0x42f02b,_0x4a39dc){const _0x503279=_0x5c9f94;if(_0x4a39dc!==_0x237f28[_0x503279(0x3df)])return _0x42f02b;let _0x209d36=(await this[_0x503279(0x379)]['get'](this[_0x503279(0x3ae)]()['replace'](_0x503279(0x384),_0x42f02b)))['body'];if(_0x209d36[_0x503279(0x2dc)]&&_0x209d36[_0x503279(0x2dc)]['code']!==_0x1aa6bc['OK'])throw _0x209d36[_0x503279(0x2dc)];if(!_0x209d36[_0x503279(0x342)])throw Error(_0x503279(0x3a7));return _0x6adb79(_0x209d36[_0x503279(0x342)],this[_0x503279(0x212)]());}async[_0x5c9f94(0x207)](_0x3b6913){const _0x572a4d=_0x5c9f94;let _0x5c269c=this['_univerInstanceService'][_0x572a4d(0x191)](),_0x23b4c4=_0x5c269c==null?void 0x0:_0x5c269c[_0x572a4d(0x394)]();if(!_0x23b4c4)throw Error(_0x572a4d(0x28b));let _0x451d4d=new FormData();_0x451d4d[_0x572a4d(0x1e5)](_0x572a4d(0x28f),_0x3b6913);let _0x34d344=this['_getUploadFileURL']()+_0x572a4d(0x2eb)+_0x3b6913[_0x572a4d(0x3e5)][_0x572a4d(0x352)]()+_0x572a4d(0x185)+_0x4a6968[_0x572a4d(0x1cc)]+_0x572a4d(0x3c4)+encodeURIComponent(_0x23b4c4),_0x465762=(await this[_0x572a4d(0x379)][_0x572a4d(0x320)](_0x34d344,{'body':_0x451d4d}))[_0x572a4d(0x234)]['FileId'];if(typeof _0x465762!='string'||!_0x465762)throw Error(_0x572a4d(0x3d7));return _0x465762;}[_0x5c9f94(0x2bb)](){const _0x3270b9=_0x5c9f94;return this[_0x3270b9(0x37c)]()[_0x3270b9(0x148)]??_0x3270b9(0x2f4);}['_getSignURL'](){const _0x604f6=_0x5c9f94;return this[_0x604f6(0x37c)]()[_0x604f6(0x147)]??_0x604f6(0x192);}['_getDownloadEndpointURL'](){const _0x231a3e=_0x5c9f94;let _0x1c433c=this[_0x231a3e(0x37c)]();return _0x1c433c[_0x231a3e(0x2cf)]?_0x1c433c[_0x231a3e(0x2cf)]:typeof location<'u'?location[_0x231a3e(0x2db)]:_0x1c433c[_0x231a3e(0x148)]??'';}[_0x5c9f94(0x37c)](){const _0x1e8f31=_0x5c9f94;return this[_0x1e8f31(0x323)]['getConfig']('collaboration-client.config')??{};}};Hn=H([V(0x0,_0xcf8d3f(_0x145224)),V(0x1,_0xcf8d3f(_0xf41dc9)),V(0x2,_0xcf8d3f(_0x4c5cd7))],Hn);function Un(_0x3b0e8a,_0x309b8c){const _0x597de7=_0x5c9f94;var _0x400198;if(_0x309b8c['maxSize']!=null&&_0x3b0e8a[_0x597de7(0x3e5)]>_0x309b8c[_0x597de7(0x3b4)])throw Error(_0x597de7(0x3d4));if((_0x400198=_0x309b8c[_0x597de7(0x292)])!=null&&_0x400198[_0x597de7(0x2fd)]&&!_0x309b8c[_0x597de7(0x292)][_0x597de7(0x1b6)](_0x1c192d=>_0x3b0e8a[_0x597de7(0x34b)]===_0x1c192d||_0x3b0e8a[_0x597de7(0x31c)][_0x597de7(0x389)](_0x1c192d)||_0x1c192d[_0x597de7(0x389)]('/*')&&_0x3b0e8a[_0x597de7(0x34b)][_0x597de7(0x33f)](_0x1c192d[_0x597de7(0x157)](0x0,-0x1))))throw Error(_0x597de7(0x1a5));}let Wn=class{constructor(_0x433cc2,_0x2ccbf8,_0x511876){const _0xfdd60b=_0x5c9f94;this[_0xfdd60b(0x323)]=_0x433cc2,this['_httpService']=_0x2ccbf8,this[_0xfdd60b(0x303)]=_0x511876,this[_0xfdd60b(0x1f6)]();}[_0x5c9f94(0x1f6)](){const _0x5de832=_0x5c9f94;this[_0x5de832(0x379)][_0x5de832(0x230)]({'priority':0x1,'interceptor':(_0x268983,_0x35b39a)=>_0x35b39a(_0x268983)[_0x5de832(0x270)](_0x17473d(async _0x3d233e=>{const _0xb33244=_0x5de832;let _0xf4d83d=_0x3d233e;if(_0xf4d83d['status']===0x191){if(typeof window>'u')throw Error(_0xb33244(0x2e1));if(window[_0xb33244(0x350)](this['localeService']['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x15673f=window[_0xb33244(0x165)](window['location']['href']);window['location'][_0xb33244(0x142)]=this['_getLoginPath']()+'?url='+_0x15673f;}}return _0xf4d83d;}))});}[_0x5c9f94(0x2af)](){const _0x5db330=_0x5c9f94;let _0x52a5e2=this['_configService'][_0x5db330(0x1a1)](R);return(_0x52a5e2==null?void 0x0:_0x52a5e2[_0x5db330(0x1af)])??_0x5db330(0x188);}};Wn=H([V(0x0,_0xf41dc9),V(0x1,_0xcf8d3f(_0x145224)),V(0x2,_0xcf8d3f(_0x5c6337))],Wn);let Gn=class extends _0x588e84{constructor(_0x2c2538,_0x153402){const _0x526c8b=_0x5c9f94;super(),this['_HTTPService']=_0x2c2538,this[_0x526c8b(0x323)]=_0x153402,z(this,_0x526c8b(0x2d5),!0x1),this['_initMergeInterceptor']();}['_initMergeInterceptor'](){let _0x5c5053=this;this['disposeWithMe'](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0xad30e1({'isMatch'(_0x52c42d){const _0x59b68c=_0x4bc2;var _0x338c8a;if(_0x52c42d[_0x59b68c(0x36d)]===_0x59b68c(0x2cd)&&(_0x338c8a=_0x52c42d[_0x59b68c(0x14f)])!=null&&_0x338c8a[_0x59b68c(0x234)]){let {objectID:_0x27e6dd,objectType:_0x5d856c}=_0x52c42d[_0x59b68c(0x14f)][_0x59b68c(0x234)]||{};if(!_0x27e6dd||_0x5d856c===void 0x0)return!0x1;let _0x54af4b=_0x5c5053[_0x59b68c(0x367)]()+'/'+_0x5d856c+_0x59b68c(0x23b)+encodeURIComponent(_0x27e6dd)+'/allowed';if(_0x52c42d['url']===_0x54af4b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2bb77b){const _0xda8f=_0x4bc2;var _0x228bd8;return(_0x228bd8=_0x2bb77b[_0xda8f(0x14f)])==null?void 0x0:_0x228bd8[_0xda8f(0x234)];},'mergeParamsToRequest'(_0x35d4b3,_0x254af3){const _0x3e6846=_0x4bc2;let _0x283388=_0x5c5053['_getAPIPrefixPath']()+_0x3e6846(0x2a5),_0x3623bf=_0x35d4b3[_0x3e6846(0x1f5)]((_0x916689,_0x14788b)=>{const _0x8c8867=_0x3e6846;let {unitID:_0x5017fc,objectID:_0xf427c3,objectType:_0x48054f,actions:_0x5e2988}=_0x14788b;return _0x916689[_0x5017fc]||(_0x916689[_0x5017fc]=Object[_0x8c8867(0x390)](null)),_0x916689[_0x5017fc][_0xf427c3]||(_0x916689[_0x5017fc][_0xf427c3]={'objectID':_0xf427c3,'objectType':_0x48054f,'actions':[]}),_0x916689[_0x5017fc][_0xf427c3]['actions']['push'](..._0x5e2988),_0x916689;},Object[_0x3e6846(0x390)](null)),_0x3e7cc8=[];for(let _0x2e51c1 in _0x3623bf)for(let _0x5a5a79 in _0x3623bf[_0x2e51c1]){let {actions:_0x3b5234,objectType:_0x41c9d4}=_0x3623bf[_0x2e51c1][_0x5a5a79],_0x37ddc7=[...new Set(_0x3b5234)];_0x3e7cc8[_0x3e6846(0x26f)]({'unitID':_0x2e51c1,'objectID':_0x5a5a79,'objectType':_0x41c9d4,'actions':_0x37ddc7});}return new _0x3b0f3b(_0x3e6846(0x2cd),_0x283388,{'headers':_0x254af3[_0x3e6846(0x2b9)],'withCredentials':_0x254af3[_0x3e6846(0x171)],'responseType':_0x254af3[_0x3e6846(0x2f5)],'body':{'requests':_0x3e7cc8}});}},{'distributeResult'(_0x55a5c1,_0x3983a0){const _0x27e3dd=_0x4bc2;let {objectActions:_0x9244a}=_0x55a5c1;return _0x3983a0[_0x27e3dd(0x375)](_0x365bcf=>{const _0x53d1ac=_0x27e3dd;let {unitID:_0x1cdb22,objectID:_0x326638,actions:_0x11eeb9}=_0x365bcf,_0x37f184=_0x9244a[_0x53d1ac(0x16e)](_0x17a90d=>_0x17a90d[_0x53d1ac(0x24c)]===_0x1cdb22&&_0x17a90d[_0x53d1ac(0x16b)]===_0x326638);return{'config':_0x365bcf,'result':{'actions':_0x11eeb9[_0x53d1ac(0x375)](_0x453276=>_0x37f184==null?void 0x0:_0x37f184[_0x53d1ac(0x37e)][_0x53d1ac(0x16e)](_0x1f3bcc=>_0x1f3bcc[_0x53d1ac(0x224)]===_0x453276))['filter'](_0x18f7ed=>!!_0x18f7ed),'error':_0x55a5c1[_0x53d1ac(0x2dc)]}};});}})}));}[_0x5c9f94(0x367)](){const _0x26f423=_0x5c9f94;let _0x5afca7=this[_0x26f423(0x323)][_0x26f423(0x1a1)](R);return(_0x5afca7==null?void 0x0:_0x5afca7['authzUrl'])??_0x26f423(0x3d6);}async[_0x5c9f94(0x390)](_0x5e7229){const _0x214416=_0x5c9f94;let _0xb63916=this[_0x214416(0x367)]()+'/'+_0x5e7229['objectType']+_0x214416(0x26b);return(await this[_0x214416(0x345)][_0x214416(0x320)](_0xb63916,{'body':_0x5e7229}))['body'][_0x214416(0x16b)]||'';}async[_0x5c9f94(0x374)](_0x15ef43){const _0x939da5=_0x5c9f94;let _0x9c5389=this[_0x939da5(0x367)]()+_0x939da5(0x217);return(await this['_HTTPService'][_0x939da5(0x320)](_0x9c5389,{'body':_0x15ef43}))[_0x939da5(0x234)][_0x939da5(0x30a)];}async['update'](_0x339116){const _0x32806a=_0x5c9f94;var _0x14e500;let _0x73cdc7=this[_0x32806a(0x367)]()+'/'+_0x339116[_0x32806a(0x169)]+_0x32806a(0x23b)+encodeURIComponent(_0x339116[_0x32806a(0x16b)]),_0x1146bc=await this[_0x32806a(0x345)][_0x32806a(0x278)](_0x73cdc7,{'body':_0x339116});if((_0x1146bc==null||(_0x14e500=_0x1146bc['body'])==null||(_0x14e500=_0x14e500['error'])==null?void 0x0:_0x14e500[_0x32806a(0x267)])!==0x1)throw Error(_0x32806a(0x265));}async[_0x5c9f94(0x296)](_0x5427a3){const _0x3ac84b=_0x5c9f94;let _0x3cd743=this['_getAPIPrefixPath']()+'/'+_0x5427a3[_0x3ac84b(0x169)]+'/object/'+encodeURIComponent(_0x5427a3['objectID'])+_0x3ac84b(0x3bb);return(await this[_0x3ac84b(0x345)][_0x3ac84b(0x320)](_0x3cd743,{'body':_0x5427a3}))[_0x3ac84b(0x234)][_0x3ac84b(0x37e)];}async[_0x5c9f94(0x13b)](_0x41764d){const _0x4e12db=_0x5c9f94;let _0x512d25=this[_0x4e12db(0x367)]()+_0x4e12db(0x2a5);return(await this['_HTTPService']['post'](_0x512d25,{'body':{'requests':_0x41764d}}))[_0x4e12db(0x234)][_0x4e12db(0x2e0)];}async[_0x5c9f94(0x258)](_0x3c6f2b){const _0x17db54=_0x5c9f94;let _0x7408ea=this['_getAPIPrefixPath']()+'/'+_0x3c6f2b[_0x17db54(0x169)]+'/role',_0x341295=await this[_0x17db54(0x345)][_0x17db54(0x320)](_0x7408ea,{'body':_0x3c6f2b});return{'roles':_0x341295[_0x17db54(0x234)][_0x17db54(0x3cc)],'actions':_0x341295[_0x17db54(0x234)]['actions']};}async['deleteCollaborator'](_0x5e9aac){const _0x23ad22=_0x5c9f94;let _0x40ca8d=this[_0x23ad22(0x367)]()+_0x23ad22(0x1ae);await this[_0x23ad22(0x345)][_0x23ad22(0x1e8)](_0x40ca8d,{'params':{'collaboratorID':_0x5e9aac[_0x23ad22(0x3d3)],'objectID':_0x5e9aac['objectID'],'unitID':_0x5e9aac[_0x23ad22(0x24c)]}});}async[_0x5c9f94(0x380)](_0x47a10b){const _0x4eb152=_0x5c9f94;let _0x5dfc0f=this[_0x4eb152(0x367)]()+'/collaborator';await this[_0x4eb152(0x345)]['patch'](_0x5dfc0f,{'body':_0x47a10b});}async[_0x5c9f94(0x1b8)](_0x5c684c){const _0x25ffc4=_0x5c9f94;let _0x214b6c=this[_0x25ffc4(0x367)]()+_0x25ffc4(0x1ae);await this[_0x25ffc4(0x345)][_0x25ffc4(0x320)](_0x214b6c,{'body':_0x5c684c});}async[_0x5c9f94(0x1b4)](_0x4115a5){const _0x10f6ce=_0x5c9f94;let _0x501042=this[_0x10f6ce(0x367)]()+_0x10f6ce(0x1ae),_0x34388e=await this['_HTTPService'][_0x10f6ce(0x160)](_0x501042,{'params':{'objectID':_0x4115a5[_0x10f6ce(0x16b)],'unitID':_0x4115a5[_0x10f6ce(0x24c)]}});return this[_0x10f6ce(0x2ef)](_0x34388e['body'][_0x10f6ce(0x1da)]??!0x1),_0x34388e[_0x10f6ce(0x234)][_0x10f6ce(0x2cc)];}async['putCollaborators'](_0x1dc90e){const _0x5a6668=_0x5c9f94;let _0x236424=this[_0x5a6668(0x367)]()+_0x5a6668(0x1ae);await this['_HTTPService'][_0x5a6668(0x278)](_0x236424,{'body':_0x1dc90e});}['setCfgEnableObjInherit'](_0xfc4865){this['_cfgEnableObjInherit']=_0xfc4865;}['getCfgEnableObjInherit'](){const _0x20e221=_0x5c9f94;return this[_0x20e221(0x2d5)];}};Gn=H([V(0x0,_0xcf8d3f(_0x145224)),V(0x1,_0xcf8d3f(_0xf41dc9))],Gn);function Kn(_0x34cbbd){const _0x1ba6ae=_0x5c9f94;let _0x752ea0=atob(_0x34cbbd),_0x543b11=new Uint8Array(_0x752ea0[_0x1ba6ae(0x2fd)]);for(let _0x2dffcf=0x0;_0x2dffcf<_0x752ea0[_0x1ba6ae(0x2fd)];_0x2dffcf++)_0x543b11[_0x2dffcf]=_0x752ea0[_0x1ba6ae(0x317)](_0x2dffcf);return _0x543b11;}function qn(_0x25b2b4){const _0x5c3e3b=_0x5c9f94;let _0xe155cc='';for(let _0xc5bc2c=0x0;_0xc5bc2c<_0x25b2b4[_0x5c3e3b(0x2fd)];_0xc5bc2c++)_0xe155cc+=String[_0x5c3e3b(0x3ef)](_0x25b2b4[_0xc5bc2c]);return btoa(_0xe155cc);}function Jn(_0x28a02e,_0x45134b){let _0xae7933=Kn(_0x45134b),_0x569c4a=_0x862e1b(0x10),_0x5e6e37=_0xd5b70f(_0xae7933,_0x569c4a)['encrypt'](_0x50e238(_0x28a02e));return qn(_0x496bb6(_0x569c4a,_0x5e6e37));}function Yn(){const _0x41d6a9=_0x5c9f94;let _0x2af3d9=_0xcad4c5()['__Key__'];if(typeof window<'u'&&window['location']!==void 0x0&&_0x2af3d9){let _0x383d54={'time':Math['floor'](Date[_0x41d6a9(0x1dd)]()/0x3e8),'domain':location[_0x41d6a9(0x1f4)]};return Jn(JSON[_0x41d6a9(0x2d6)](_0x383d54),_0x2af3d9);}}let Xn=class{constructor(_0x1de4ca){const _0x44a756=_0x5c9f94;this[_0x44a756(0x379)]=_0x1de4ca,this[_0x44a756(0x1de)]();}[_0x5c9f94(0x1de)](){const _0x3d1bda=_0x5c9f94;this[_0x3d1bda(0x379)]['registerHTTPInterceptor']({'interceptor':(_0x10a715,_0x713874)=>{const _0x3a7d70=_0x3d1bda;let _0x3b6fc3=Yn();return _0x3b6fc3&&_0x10a715[_0x3a7d70(0x2b9)][_0x3a7d70(0x1b3)](_0x3a7d70(0x26e),_0x3b6fc3),_0x713874(_0x10a715);}});}};Xn=H([V(0x0,_0xcf8d3f(_0x145224))],Xn);let Zn=class extends _0x468ac5{constructor(_0x4904f8,_0x3e7236,_0x397c17){const _0x17049d=_0x5c9f94;super(),this[_0x17049d(0x26a)]=_0x4904f8,this[_0x17049d(0x187)]=_0x3e7236,this['_localCacheService']=_0x397c17,z(this,'_unitInfo$',new _0x1946cb(null)),z(this,_0x17049d(0x24f),new _0x4e03af()),z(this,_0x17049d(0x1c8),this[_0x17049d(0x1c9)][_0x17049d(0x190)]()),z(this,_0x17049d(0x196),this[_0x17049d(0x24f)][_0x17049d(0x190)]());}[_0x5c9f94(0x316)](){const _0x30ff7d=_0x5c9f94;super[_0x30ff7d(0x316)](),this['_unitLoaded$'][_0x30ff7d(0x31a)](),this[_0x30ff7d(0x1c9)][_0x30ff7d(0x31a)]();}async[_0x5c9f94(0x33a)](_0x2ee901,_0x3ac394,_0x467ca2,_0x9386df){const _0x5be3fb=_0x5c9f94;this[_0x5be3fb(0x1c9)][_0x5be3fb(0x3b1)]({'unitId':_0x2ee901,'type':_0x3ac394,'subUnitId':_0x9386df});let _0xf109ec=null;switch(_0x3ac394){case _0x2efadb[_0x5be3fb(0x21d)]:_0xf109ec=await this[_0x5be3fb(0x187)][_0x5be3fb(0x1c0)](_0x2ee901,_0x467ca2,void 0x0,{'initialSubUnitId':_0x9386df});break;case _0x2efadb[_0x5be3fb(0x29a)]:_0xf109ec=await this[_0x5be3fb(0x187)][_0x5be3fb(0x2f3)](_0x2ee901,_0x467ca2);break;case _0x2efadb[_0x5be3fb(0x1d3)]:_0xf109ec=await this['_snapshotService'][_0x5be3fb(0x22b)](_0x2ee901,_0x467ca2);break;case _0x2efadb[_0x5be3fb(0x3ed)]:_0xf109ec=await this[_0x5be3fb(0x187)]['loadBoard'](_0x2ee901,_0x467ca2);break;case _0x2efadb[_0x5be3fb(0x3a6)]:_0xf109ec=await this[_0x5be3fb(0x187)]['loadBase'](_0x2ee901,_0x467ca2);break;case _0x2efadb[_0x5be3fb(0x29f)]:_0xf109ec=await this[_0x5be3fb(0x187)][_0x5be3fb(0x3ea)](_0x2ee901,_0x467ca2);break;default:this['_logService'][_0x5be3fb(0x2dc)](_0x5be3fb(0x2a6),_0x5be3fb(0x257));}return _0xf109ec&&this[_0x5be3fb(0x24f)][_0x5be3fb(0x3b1)](_0xf109ec),_0xf109ec;}async[_0x5c9f94(0x2e6)](_0x5da47e,_0xbab6f1,_0x2d1b21){const _0x12982e=_0x5c9f94;var _0x3e3a57;this['_unitInfo$'][_0x12982e(0x3b1)]({'unitId':_0x5da47e,'type':_0xbab6f1,'subUnitId':_0x2d1b21});let _0x4c4dc6=0x0,_0x1fa9f6=await((_0x3e3a57=this['_localCacheService'])==null?void 0x0:_0x3e3a57['loadOfflineData'](_0x5da47e));return _0x1fa9f6&&(_0x1fa9f6[_0x12982e(0x2d1)]||_0x1fa9f6[_0x12982e(0x202)]['length']!==0x0)&&(_0x4c4dc6=_0x1fa9f6['rev']),_0x4c4dc6===0x0&&this['_logService'][_0x12982e(0x1aa)](_0x12982e(0x2a6),_0x12982e(0x1c6)),this[_0x12982e(0x33a)](_0x5da47e,_0xbab6f1,_0x4c4dc6,_0x2d1b21);}};Zn=H([V(0x0,_0x3981ee),V(0x1,_0xcf8d3f(_0x5dfed7)),V(0x2,_0x1da68f(U))],Zn);let Qn=class{constructor(_0x24363d,_0x2dae57,_0x295e65){const _0x57530a=_0x5c9f94;this[_0x57530a(0x379)]=_0x24363d,this[_0x57530a(0x323)]=_0x2dae57,this[_0x57530a(0x28a)]=_0x295e65,z(this,_0x57530a(0x35c),0x0),z(this,_0x57530a(0x24b),new _0x4e03af()),z(this,_0x57530a(0x241),this[_0x57530a(0x24b)]),z(this,_0x57530a(0x259),new Map());}[_0x5c9f94(0x2a2)](_0x276dac){const _0x1e0e33=_0x5c9f94;this[_0x1e0e33(0x35c)]=_0x276dac,this[_0x1e0e33(0x24b)][_0x1e0e33(0x3b1)](_0x276dac);}['getImageSourceCache'](_0x149c1e,_0x1b672c){const _0x19dce6=_0x5c9f94;if(_0x1b672c===_0x237f28[_0x19dce6(0x3b5)]){let _0x538383=new Image();return _0x538383[_0x19dce6(0x1fd)]=_0x149c1e,_0x538383;}return this[_0x19dce6(0x259)][_0x19dce6(0x160)](_0x149c1e);}[_0x5c9f94(0x3c8)](_0x4d1bd3,_0x322abc,_0x5e6949){const _0x44f0e6=_0x5c9f94;_0x322abc!==_0x237f28[_0x44f0e6(0x3b5)]&&_0x5e6949!=null&&this[_0x44f0e6(0x259)]['set'](_0x4d1bd3,_0x5e6949);}async[_0x5c9f94(0x372)](_0x53828b){const _0x3da4fb=_0x5c9f94;try{let _0x3a72c7=this[_0x3da4fb(0x1c2)](this[_0x3da4fb(0x3ae)](),''+_0x53828b),_0x24aba1=(await this[_0x3da4fb(0x379)][_0x3da4fb(0x160)](_0x3a72c7))[_0x3da4fb(0x234)];if(_0x24aba1[_0x3da4fb(0x2dc)]&&_0x24aba1[_0x3da4fb(0x2dc)][_0x3da4fb(0x267)]===_0x1aa6bc['OK']){let _0x21a1fc=_0x6adb79(_0x24aba1['url'],this[_0x3da4fb(0x212)]());return Promise[_0x3da4fb(0x2aa)](_0x21a1fc);}return Promise[_0x3da4fb(0x295)](_0x24aba1[_0x3da4fb(0x2dc)]);}catch(_0x19e9f7){return Promise['reject'](_0x19e9f7);}}async[_0x5c9f94(0x2f1)](_0xb233ab){const _0x11884c=_0x5c9f94;let _0x1b60ac='';if(!_0x3f4112[_0x11884c(0x32d)](_0xb233ab['type']))return this[_0x11884c(0x360)](),Promise[_0x11884c(0x295)](Error(_0x47a5be['ERROR_IMAGE_TYPE']));if(_0xb233ab['size']>_0x4b738e())return this[_0x11884c(0x360)](),Promise[_0x11884c(0x295)](Error(_0x47a5be[_0x11884c(0x274)]));try{let _0x400e8e=new FormData();_0x400e8e['append'](_0x11884c(0x28f),_0xb233ab);let _0xf0ce69=this[_0x11884c(0x28a)][_0x11884c(0x191)](),_0x209adc=_0xf0ce69==null?void 0x0:_0xf0ce69[_0x11884c(0x394)]();if(!_0x209adc)throw Error('unitId\x20is\x20not\x20found');let _0x58be14=this[_0x11884c(0x2bb)]()+_0x11884c(0x2eb)+_0xb233ab[_0x11884c(0x3e5)]['toString']()+'&source='+_0x4a6968[_0x11884c(0x1cc)]+'&assign='+encodeURIComponent(_0x209adc),_0x1a423f={'body':_0x400e8e},_0x126658=(await this[_0x11884c(0x379)][_0x11884c(0x320)](_0x58be14,_0x1a423f))['body'];if(typeof _0x126658[_0x11884c(0x237)]!=_0x11884c(0x2df))return this['_decreaseWaiting'](),Promise['reject'](Error(_0x47a5be['ERROR_IMAGE']));_0x1b60ac=_0x126658[_0x11884c(0x237)];}catch{return this[_0x11884c(0x360)](),Promise['reject'](Error(_0x47a5be[_0x11884c(0x1d2)]));}return new Promise((_0x2c3ee7,_0x328741)=>{const _0x959bed=_0x11884c;let _0x4078ba=new FileReader();_0x4078ba['readAsDataURL'](_0xb233ab),_0x4078ba[_0x959bed(0x2c6)]=_0x46e8f9=>{const _0x5e5f84=_0x959bed;var _0x3974da;let _0x25bcc6=(_0x3974da=_0x46e8f9['target'])==null?void 0x0:_0x3974da[_0x5e5f84(0x1c3)];if(_0x25bcc6==null){this[_0x5e5f84(0x360)](),_0x328741(Error(_0x47a5be['ERROR_IMAGE']));return;}_0x2c3ee7({'imageId':_0x53f585(0x6),'imageSourceType':_0x237f28['UUID'],'source':_0x1b60ac,'base64Cache':_0x25bcc6,'status':_0x47a5be[_0x5e5f84(0x27a)]}),this[_0x5e5f84(0x360)]();};});}[_0x5c9f94(0x2bb)](){const _0x13e2d8=_0x5c9f94;let _0x1b560b=this[_0x13e2d8(0x323)][_0x13e2d8(0x1a1)](R);return(_0x1b560b==null?void 0x0:_0x1b560b['uploadFileServerUrl'])??_0x13e2d8(0x2f4);}['_getSignURL'](){const _0x11b87c=_0x5c9f94;let _0x3a24f3=this[_0x11b87c(0x323)]['getConfig'](R);return(_0x3a24f3==null?void 0x0:_0x3a24f3[_0x11b87c(0x147)])??_0x11b87c(0x192);}[_0x5c9f94(0x212)](){const _0x404bd1=_0x5c9f94;let _0x4ae073=this[_0x404bd1(0x323)][_0x404bd1(0x1a1)](R);return(_0x4ae073==null?void 0x0:_0x4ae073[_0x404bd1(0x2cf)])??location[_0x404bd1(0x2db)];}[_0x5c9f94(0x1c2)](_0x334750,_0x4bfb05){const _0x5f029d=_0x5c9f94;return _0x334750[_0x5f029d(0x153)]('{fileID}',_0x4bfb05);}['_decreaseWaiting'](){const _0x2e4d9b=_0x5c9f94;--this[_0x2e4d9b(0x35c)],this['_change$']['next'](this['_waitCount']);}};Qn=H([V(0x0,_0xcf8d3f(_0x145224)),V(0x1,_0xf41dc9),V(0x2,_0xcf8d3f(_0x4c5cd7))],Qn);let $n=class{constructor(_0x46b94a,_0x27781d){const _0xf766cf=_0x5c9f94;this['_configService']=_0x46b94a,this[_0xf766cf(0x345)]=_0x27781d;}[_0x5c9f94(0x367)](){const _0x3bca50=_0x5c9f94;let _0x2cf988=this[_0x3bca50(0x323)][_0x3bca50(0x1a1)](R);return(_0x2cf988==null?void 0x0:_0x2cf988[_0x3bca50(0x386)])??_0x3bca50(0x3d6);}async['list'](_0x35469e){const _0x23e58f=_0x5c9f94;let _0x5636b1=this['_getAPIPrefixPath']()+_0x23e58f(0x1ae);return{'list':[{'title':'People','mentions':(await this[_0x23e58f(0x345)]['get'](_0x5636b1,{'params':{'objectID':_0x35469e[_0x23e58f(0x13c)],'unitID':_0x35469e[_0x23e58f(0x13c)]}}))['body'][_0x23e58f(0x2cc)][_0x23e58f(0x375)](_0x260795=>({'objectId':_0x260795['id'],'name':_0x260795['subject']['name'],'metadata':{'icon':_0x260795[_0x23e58f(0x35f)][_0x23e58f(0x26c)]},'label':_0x260795['subject'][_0x23e58f(0x31c)],'objectType':_0x4191c4[_0x23e58f(0x3c2)]})),'metadata':{},'type':_0x4191c4['PERSON']}]};}};$n=H([V(0x0,_0xcf8d3f(_0xf41dc9)),V(0x1,_0xcf8d3f(_0x145224))],$n);let er=class extends _0x468ac5{constructor(_0x4377ca,_0x29d2d6,_0x32a253,_0x58389f,_0x535ecf,_0x182284){const _0x158ea2=_0x5c9f94;super(),this[_0x158ea2(0x3eb)]=_0x4377ca,this[_0x158ea2(0x28a)]=_0x29d2d6,this['_permissionService']=_0x32a253,this['_authzIoService']=_0x58389f,this[_0x158ea2(0x144)]=_0x535ecf,this[_0x158ea2(0x143)]=_0x182284,z(this,_0x158ea2(0x301),new Set()),this['disposeWithMe'](()=>this['_closedUnits']['clear']()),this['disposeWithMe'](tr(this[_0x158ea2(0x28a)])['subscribe'](({unitId:_0x228d92})=>this['_closedUnits']['delete'](_0x228d92))),this[_0x158ea2(0x335)](),this[_0x158ea2(0x284)](),[_0x2efadb[_0x158ea2(0x29a)],_0x2efadb[_0x158ea2(0x1d3)],_0x2efadb[_0x158ea2(0x3a6)],_0x2efadb[_0x158ea2(0x3ed)]][_0x158ea2(0x2de)](_0x4c86ad=>{const _0xa20f25=_0x158ea2;this['disposeWithMe'](this['_univerInstanceService'][_0xa20f25(0x2ae)](_0x4c86ad)[_0xa20f25(0x168)](_0x54bc8f=>{const _0x269539=_0xa20f25;this['_closedUnits']['add'](_0x54bc8f[_0x269539(0x394)]()),this[_0x269539(0x3eb)]['get'](_0x126fa5)[_0x269539(0x2f8)](_0x54bc8f[_0x269539(0x394)]());}));});}[_0x5c9f94(0x284)](){const _0x267e35=_0x5c9f94;let _0x3ebf5b=async(_0xbf229a,_0x24787c)=>{const _0x579263=_0x4bc2;let _0x256d77=await this[_0x579263(0x144)][_0x579263(0x29c)](_0xbf229a);this[_0x579263(0x2e7)]||this[_0x579263(0x301)]['has'](_0xbf229a)||!this[_0x579263(0x28a)][_0x579263(0x29e)](_0xbf229a)||_0x256d77[_0x579263(0x1ad)]['pipe'](_0x5d4b25(_0x1e177c=>_0x1e177c[_0x579263(0x198)]===_0x538b71[_0x579263(0x20d)]),_0x212efd(_0x41572c(this['dispose$'],this[_0x579263(0x28a)][_0x579263(0x39f)][_0x579263(0x270)](_0x5d4b25(_0x3deb3c=>_0x3deb3c[_0x579263(0x394)]()===_0xbf229a)))))[_0x579263(0x168)](_0x2b1520=>{const _0x3c286a=_0x579263;let {reason:_0xca08e7}=_0x2b1520[_0x3c286a(0x3cf)];this[_0x3c286a(0x143)]['emitEvent']({'id':_0x3c286a(0x31b),'data':_0xca08e7}),this[_0x3c286a(0x301)][_0x3c286a(0x287)](_0xbf229a),this[_0x3c286a(0x3eb)][_0x3c286a(0x160)](_0x126fa5)['clearUnit'](_0xbf229a);let _0x5aef9f=nr(_0x24787c);_0x5aef9f!=null&&this[_0x3c286a(0x1ea)](_0xbf229a,_0x5aef9f,_0x4616a5[_0x3c286a(0x1db)],!0x1),this['_collaborationSessionService'][_0x3c286a(0x36e)](_0xbf229a);});};tr(this[_0x267e35(0x28a)])[_0x267e35(0x270)](_0x5d4b25(({unitId:_0x3f0195})=>!_0x21b585(_0x3f0195)),_0x212efd(this['dispose$']))[_0x267e35(0x168)](({type:_0x554274,unitId:_0xcf1d53})=>{const _0x583a09=_0x267e35;_0x3ebf5b(_0xcf1d53,_0x554274)['catch'](_0x52184f=>this[_0x583a09(0x3eb)]['get'](_0x3981ee)['error'](_0x52184f));});}[_0x5c9f94(0x335)](){const _0x25e5fd=_0x5c9f94;let _0x558582=async(_0x3d544a,_0x265344)=>{const _0x32c5b9=_0x4bc2;let _0x514726=await this['_collaborationSessionService'][_0x32c5b9(0x29c)](_0x3d544a);if(!(this[_0x32c5b9(0x2e7)]||this[_0x32c5b9(0x301)]['has'](_0x3d544a)||!this['_univerInstanceService'][_0x32c5b9(0x29e)](_0x3d544a))){if(_0x265344===_0x2efadb['UNIVER_SHEET']){let _0x2b4855=this[_0x32c5b9(0x3eb)][_0x32c5b9(0x160)](_0x4be829);await _0x2b4855[_0x32c5b9(0x35b)](_0x3d544a),_0x514726['event$'][_0x32c5b9(0x270)](_0x5d4b25(_0x1518e9=>_0x1518e9['eventID']===_0x538b71['UPDATE_PERMISSION_OBJ']),_0x212efd(_0x41572c(this[_0x32c5b9(0x391)],_0x514726[_0x32c5b9(0x1ad)][_0x32c5b9(0x270)](_0x5d4b25(_0x3780c3=>_0x3780c3['eventID']===_0x538b71['SHOULD_CLOSE_CONN'])),this[_0x32c5b9(0x28a)][_0x32c5b9(0x39f)]['pipe'](_0x5d4b25(_0x3a1ff8=>_0x3a1ff8['getUnitId']()===_0x3d544a)))))['subscribe'](_0xbc1cd0=>{const _0x4ae7ee=_0x32c5b9;let {objectId:_0x8623b6}=_0xbc1cd0['data'];_0x8623b6===_0x3d544a?_0x2b4855[_0x4ae7ee(0x35b)](_0x3d544a):_0x2b4855[_0x4ae7ee(0x23d)](_0x3d544a,_0x8623b6);});return;}_0x514726[_0x32c5b9(0x1ad)]['pipe'](_0x5d4b25(_0x50240e=>_0x50240e[_0x32c5b9(0x198)]===_0x538b71[_0x32c5b9(0x18a)]),_0x212efd(_0x41572c(this[_0x32c5b9(0x391)],_0x514726[_0x32c5b9(0x1ad)][_0x32c5b9(0x270)](_0x5d4b25(_0x142186=>_0x142186[_0x32c5b9(0x198)]===_0x538b71['SHOULD_CLOSE_CONN'])),this[_0x32c5b9(0x28a)][_0x32c5b9(0x39f)][_0x32c5b9(0x270)](_0x5d4b25(_0x494545=>_0x494545['getUnitId']()===_0x3d544a)))))[_0x32c5b9(0x168)](()=>{const _0x3b4874=_0x32c5b9;this[_0x3b4874(0x305)](_0x3d544a,_0x265344)['catch'](_0x266c41=>this[_0x3b4874(0x3eb)]['get'](_0x3981ee)[_0x3b4874(0x2dc)](_0x266c41));}),await this[_0x32c5b9(0x305)](_0x3d544a,_0x265344);}};tr(this[_0x25e5fd(0x28a)])[_0x25e5fd(0x270)](_0x5d4b25(({unitId:_0x5e6e2e})=>!_0x21b585(_0x5e6e2e)),_0x212efd(this[_0x25e5fd(0x391)]))[_0x25e5fd(0x168)](({type:_0x44ae8b,unitId:_0x5e2670})=>{const _0x4532e4=_0x25e5fd;_0x558582(_0x5e2670,_0x44ae8b)[_0x4532e4(0x3e1)](_0x3c29d3=>this[_0x4532e4(0x3eb)][_0x4532e4(0x160)](_0x3981ee)['error'](_0x3c29d3));});}async[_0x5c9f94(0x305)](_0x5e3722,_0x321d){const _0x3e7055=_0x5c9f94;let _0x333db5=nr(_0x321d);if(_0x333db5==null)return;let _0x18e1ed=this[_0x3e7055(0x3eb)]['get'](_0x126fa5);if(_0x18e1ed[_0x3e7055(0x1be)]({'unitId':_0x5e3722,'objectId':_0x5e3722,'objectType':_0x333db5})){await _0x18e1ed[_0x3e7055(0x2ab)](_0x5e3722);return;}let _0x1d2b20=this['_getUnitPermissionPoints'](_0x5e3722,_0x333db5);if(!_0x1d2b20[_0x3e7055(0x2fd)])return;let _0x26734f=await this[_0x3e7055(0x279)][_0x3e7055(0x296)]({'objectID':_0x5e3722,'objectType':_0x333db5,'unitID':_0x5e3722,'actions':_0x1d2b20['map'](({action:_0x299647})=>_0x299647)});this[_0x3e7055(0x2e7)]||this[_0x3e7055(0x301)][_0x3e7055(0x3e3)](_0x5e3722)||!this[_0x3e7055(0x28a)][_0x3e7055(0x29e)](_0x5e3722)||_0x26734f[_0x3e7055(0x2de)](_0x107e19=>{const _0x9754f3=_0x3e7055;let _0x2151e6=_0x107e19[_0x9754f3(0x224)],_0x1eb762=_0x107e19[_0x9754f3(0x296)];_0x2151e6!=null&&_0x1eb762!=null&&_0x1d2b20['filter'](_0x56cfff=>_0x56cfff[_0x9754f3(0x224)]===_0x2151e6)['forEach'](_0x1c72b6=>this['_permissionService'][_0x9754f3(0x285)](_0x1c72b6['id'],_0x1eb762));});}['_getUnitPermissionPoints'](_0x5ecd0c,_0x2a903e){const _0x18dd51=_0x5c9f94;let _0x3a42a8=[];return this[_0x18dd51(0x150)]['getAllPermissionPoint']()[_0x18dd51(0x2de)]((_0x436494,_0x3c799b)=>{const _0x340107=_0x18dd51;_0x436494[_0x340107(0x168)](_0x227bd5=>{const _0x1bd7c3=_0x340107;_0x227bd5['type']===_0x2a903e&&'unitId'in _0x227bd5&&_0x227bd5[_0x1bd7c3(0x13c)]===_0x5ecd0c&&(!('objectId'in _0x227bd5)||_0x227bd5[_0x1bd7c3(0x38b)]===_0x5ecd0c)&&_0x3a42a8['push']({'id':_0x3c799b,'action':_0x227bd5['subType']});})['unsubscribe']();}),_0x3a42a8;}[_0x5c9f94(0x1ea)](_0x5c046e,_0x522df5,_0x490560,_0x50a560){const _0x21e39a=_0x5c9f94;this[_0x21e39a(0x150)]['getAllPermissionPoint']()[_0x21e39a(0x2de)]((_0x5035d1,_0xb10ff2)=>{const _0x11f52e=_0x21e39a;let _0x549570=!0x1;_0x5035d1[_0x11f52e(0x168)](_0x45e766=>{const _0x551a51=_0x11f52e;_0x549570=_0x45e766[_0x551a51(0x34b)]===_0x522df5&&_0x45e766[_0x551a51(0x1fa)]===_0x490560&&'unitId'in _0x45e766&&_0x45e766[_0x551a51(0x13c)]===_0x5c046e&&(!(_0x551a51(0x38b)in _0x45e766)||_0x45e766[_0x551a51(0x38b)]===_0x5c046e);})[_0x11f52e(0x20f)](),_0x549570&&this[_0x11f52e(0x150)]['updatePermissionPoint'](_0xb10ff2,_0x50a560);});}};er=H([V(0x0,_0xcf8d3f(_0x19ff28)),V(0x1,_0x4c5cd7),V(0x2,_0x30415d),V(0x3,_0x18ec33),V(0x4,_0xcf8d3f(In)),V(0x5,_0xcf8d3f(B))],er);function tr(_0x4a66cd){const _0x4debd2=_0x5c9f94;return _0x41572c(...[_0x2efadb[_0x4debd2(0x21d)],_0x2efadb[_0x4debd2(0x29a)],_0x2efadb[_0x4debd2(0x1d3)],_0x2efadb[_0x4debd2(0x3ed)],_0x2efadb[_0x4debd2(0x3a6)]][_0x4debd2(0x375)](_0x4c5e9f=>_0x4a66cd[_0x4debd2(0x2ff)](_0x4c5e9f)['pipe'](_0x13126a(_0x5d04dc=>({'type':_0x4c5e9f,'unitId':_0x5d04dc[_0x4debd2(0x1e7)][_0x4debd2(0x394)]()})))));}function nr(_0x1d9e9e){const _0x519cf8=_0x5c9f94;switch(_0x1d9e9e){case _0x2efadb[_0x519cf8(0x21d)]:return _0x3490f2[_0x519cf8(0x24d)];case _0x2efadb[_0x519cf8(0x29a)]:return _0x3490f2['Document'];case _0x2efadb['UNIVER_SLIDE']:return _0x3490f2[_0x519cf8(0x2c1)];case _0x2efadb['UNIVER_BOARD']:return _0x3490f2[_0x519cf8(0x288)];case _0x2efadb[_0x519cf8(0x3a6)]:return _0x3490f2[_0x519cf8(0x34a)];default:return;}}let rr=class{constructor(_0x5238b4,_0x3eec89){const _0x4db05a=_0x5c9f94;this[_0x4db05a(0x323)]=_0x5238b4,this[_0x4db05a(0x379)]=_0x3eec89;}async[_0x5c9f94(0x2ee)](_0x29927c,_0x19dbca){const _0x1323c0=_0x5c9f94;var _0x36e064;let {unitID:_0x20f1f2,type:_0x41db79,revision:_0x5086c0=0x0}=_0x19dbca,_0x298e77=this[_0x1323c0(0x16d)]()+'/'+_0x41db79+_0x1323c0(0x2d4)+_0x20f1f2+_0x1323c0(0x33e)+_0x5086c0,_0x647daa=(await this['_httpService'][_0x1323c0(0x160)](_0x298e77))[_0x1323c0(0x234)],_0x1767da=(_0x36e064=_0x647daa[_0x1323c0(0x399)])==null?void 0x0:_0x36e064[_0x1323c0(0x1f0)];if(_0x1767da){let _0x336d24=_0x1767da==null?void 0x0:_0x1767da[_0x1323c0(0x325)];_0x1767da[_0x1323c0(0x325)]=_0x202300[_0x1323c0(0x3ec)](_0x523ae7(_0x336d24)),Object[_0x1323c0(0x3a3)](_0x1767da['sheets'])[_0x1323c0(0x2de)](([,_0x2e583d])=>{const _0x136127=_0x1323c0;let _0x51364c=_0x2e583d[_0x136127(0x325)];_0x2e583d['originalMeta']=_0x202300['encode'](_0x523ae7(_0x51364c));});}return _0x647daa;}async[_0x5c9f94(0x203)](_0x6b978a,_0x18b7c3){const _0x7533fe=_0x5c9f94;let {unitID:_0x2d8182,type:_0x371bae,blockID:_0x3ee0af}=_0x18b7c3,_0x336db8=this[_0x7533fe(0x1b9)]()+'/'+_0x371bae+_0x7533fe(0x2d4)+_0x2d8182+'/block/'+_0x3ee0af;return(await this['_httpService'][_0x7533fe(0x160)](_0x336db8))[_0x7533fe(0x234)];}async['getDeserializedSheetBlock'](_0x3320bb,_0x5a6cd9){const _0x44c37e=_0x5c9f94;let {unitID:_0x44413b,type:_0x675675,blockID:_0x4ae5b8}=_0x5a6cd9,_0x16e7e9=this[_0x44c37e(0x1b9)]()+_0x44c37e(0x1e3)+_0x675675+_0x44c37e(0x2d4)+_0x44413b+_0x44c37e(0x1e3)+_0x4ae5b8;return(await this['_httpService']['get'](_0x16e7e9))[_0x44c37e(0x234)];}async[_0x5c9f94(0x2e5)](_0x5cf28c,_0x5ac032){const _0x5238ba=_0x5c9f94;let {unitID:_0x4355b4,type:_0x1c4cfd,from:_0x6bb149,to:_0x1b154f}=_0x5ac032,_0x5527f8=this[_0x5238ba(0x1b9)]()+'/'+_0x1c4cfd+_0x5238ba(0x2d4)+_0x4355b4+_0x5238ba(0x253)+_0x6bb149+_0x5238ba(0x1d5)+_0x1b154f;return(await this['_httpService'][_0x5238ba(0x160)](_0x5527f8))['body'];}[_0x5c9f94(0x16d)](){const _0x38134d=_0x5c9f94;return this['_configService'][_0x38134d(0x1a1)](_0x38134d(0x27f))??this['_getAPIPrefix']();}[_0x5c9f94(0x1b9)](){const _0x300719=_0x5c9f94;let _0x29d741=this[_0x300719(0x323)][_0x300719(0x1a1)](R);return(_0x29d741==null?void 0x0:_0x29d741[_0x300719(0x1b0)])??'/universer-api/snapshot';}async[_0x5c9f94(0x3ac)](_0x287bd0,_0x1e68bb){const _0x198b90=_0x5c9f94;let _0x346317=_0x198b90(0x34e)+_0x1e68bb[_0x198b90(0x34b)]+_0x198b90(0x2d4)+_0x1e68bb[_0x198b90(0x24c)]+_0x198b90(0x32c);return(await this[_0x198b90(0x379)]['get'](_0x346317,{'params':{'resourceId':JSON[_0x198b90(0x2d6)](_0x1e68bb[_0x198b90(0x1c7)])}}))['body'];}[_0x5c9f94(0x3a4)](){const _0x4983f2=_0x5c9f94;throw Error(_0x4983f2(0x2ba));}['updateSnapshot'](){const _0x5d66f1=_0x5c9f94;throw Error(_0x5d66f1(0x2ba));}['saveSheetBlock'](){const _0x400062=_0x5c9f94;throw Error(_0x400062(0x2ba));}[_0x5c9f94(0x201)](){const _0x15d556=_0x5c9f94;throw Error(_0x15d556(0x2ba));}['copyFileMeta'](){const _0x4ac32a=_0x5c9f94;throw Error(_0x4ac32a(0x2ba));}['getLatestCsReqIdBySid'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};rr=H([V(0x0,_0xf41dc9),V(0x1,_0xcf8d3f(_0x145224))],rr);let ir=class extends _0xd03d1e{constructor(_0x956c0a,_0x2bdb67,_0x11a692,_0x3f4ce1,_0x3056ff,_0x55e8dc){const _0x2b431b=_0x5c9f94;super(_0x956c0a,_0x2bdb67,_0x11a692,_0x3f4ce1),this['_transformService']=_0x3056ff,this[_0x2b431b(0x26a)]=_0x55e8dc;}[_0x5c9f94(0x152)](_0x395a70,_0x558a0f){const _0x29c0a2=_0x5c9f94;let _0x9f703c=this[_0x29c0a2(0x3ce)](_0x395a70);if(_0x9f703c)try{let _0x52f1b3=this['_transformStack'](_0x9f703c,_0x558a0f);this['_substituteUndoStack'](_0x395a70,_0x52f1b3);}catch(_0x5e5206){this['_logService'][_0x29c0a2(0x2dc)](_0x29c0a2(0x156),_0x5e5206),this[_0x29c0a2(0x3bf)](_0x395a70);}let _0x45d103=this[_0x29c0a2(0x149)](_0x395a70);if(_0x45d103)try{let _0x6be077=this[_0x29c0a2(0x3d2)](_0x45d103,_0x558a0f);this[_0x29c0a2(0x233)](_0x395a70,_0x6be077);}catch(_0x152933){this['_logService'][_0x29c0a2(0x2dc)](_0x152933),this[_0x29c0a2(0x1a3)](_0x395a70);}}[_0x5c9f94(0x3bf)](_0x3fddf5){const _0x77dddc=_0x5c9f94;let _0x2f5439=this[_0x77dddc(0x3ce)](_0x3fddf5);_0x2f5439&&(_0x2f5439[_0x77dddc(0x2fd)]=0x0,this[_0x77dddc(0x22d)]());}[_0x5c9f94(0x1a3)](_0x392c3f){const _0x4acaaa=_0x5c9f94;let _0x54c221=this[_0x4acaaa(0x149)](_0x392c3f);_0x54c221&&(_0x54c221[_0x4acaaa(0x2fd)]=0x0,this[_0x4acaaa(0x22d)]());}[_0x5c9f94(0x334)](_0xf7be0a,_0x403d29){const _0x3a90f7=_0x5c9f94;this['_undoStacks'][_0x3a90f7(0x1b3)](_0xf7be0a,_0x403d29),this[_0x3a90f7(0x22d)]();}['_substituteRedoStack'](_0x17ceb2,_0x3ff0f9){const _0x2b9596=_0x5c9f94;this[_0x2b9596(0x159)][_0x2b9596(0x1b3)](_0x17ceb2,_0x3ff0f9),this[_0x2b9596(0x22d)]();}[_0x5c9f94(0x3d2)](_0x1eae08,_0x338173){const _0x48e737=_0x5c9f94;let _0x36fd20=[],_0x2a24a1=_0x338173,_0x38a116=_0x338173;for(let _0x592b3f=_0x1eae08[_0x48e737(0x2fd)]-0x1;_0x592b3f>=0x0;_0x592b3f--){let {unitID:_0x4995f4,undoMutations:_0x1fe217,redoMutations:_0x13ffb3}=_0x1eae08[_0x592b3f],_0x311652=this[_0x48e737(0x364)][_0x48e737(0x32f)](_0x2a24a1,_0x1fe217),_0x22bb5b=this[_0x48e737(0x364)][_0x48e737(0x32f)](_0x38a116,_0x13ffb3);if(_0x635ce5(_0x311652)||_0x635ce5(_0x22bb5b)){this[_0x48e737(0x26a)][_0x48e737(0x2dc)](_0x48e737(0x156),_0x48e737(0x235),_0x311652,_0x22bb5b);break;}_0x2a24a1=_0x311652[_0x48e737(0x2d3)],_0x38a116=_0x22bb5b['c1Prime'],_0x36fd20[_0x48e737(0x26f)]({'unitID':_0x4995f4,'undoMutations':_0x311652[_0x48e737(0x1ab)],'redoMutations':_0x22bb5b[_0x48e737(0x1ab)]});}return _0x36fd20[_0x48e737(0x3c3)]();}};ir=H([V(0x0,_0x4c5cd7),V(0x1,_0x397ef7),V(0x2,_0x316af7),V(0x3,_0xf41dc9),V(0x4,_0x173ca8),V(0x5,_0x3981ee)],ir);let ar=class extends _0x5b070b{constructor(_0x49ca30=gt,_0x29f8a2,_0x28acad,_0x2aedde){const _0x3e776a=_0x5c9f94;super(),this[_0x3e776a(0x328)]=_0x49ca30,this[_0x3e776a(0x26a)]=_0x29f8a2,this[_0x3e776a(0x3eb)]=_0x28acad,this[_0x3e776a(0x323)]=_0x2aedde;let {..._0x456779}=_0x195f67({},gt,this[_0x3e776a(0x328)]);if(!_0x456779[_0x3e776a(0x1c1)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this[_0x3e776a(0x328)]=_0x456779,this[_0x3e776a(0x323)]['setConfig'](R,_0x456779);}[_0x5c9f94(0x38a)](){const _0x13d033=_0x5c9f94;this[_0x13d033(0x323)][_0x13d033(0x309)](_0x4ee50c,this[_0x13d033(0x328)][_0x13d033(0x264)]??[]),this['_registerDependencies'](),this[_0x13d033(0x19a)]();}[_0x5c9f94(0x25f)](){const _0x6902e3=_0x5c9f94;var _0x353d8b,_0x381c48;this[_0x6902e3(0x3eb)]['has'](_0x34c2a3)&&this[_0x6902e3(0x26a)][_0x6902e3(0x2dc)](_0x6902e3(0x363),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x279331=_0x448bc4([[_0x34c2a3,{'useClass':ir}],[Nn,{'useValue':Pn()}],[In],[Mt],[Jt],[Wn],[Xn],[jt],[er],[B],[Zn],[An,{'useClass':this[_0x6902e3(0x328)][_0x6902e3(0x1c1)]}],[_0x1425c0,{'useClass':rr}],[_0x18ec33,{'useClass':Gn}],[_0x3b2d53,{'useClass':Qn}],[Vn,{'useClass':Hn}],[_0x2e02ae,{'useClass':$n}],[Ln],[Bn]],(_0x353d8b=this[_0x6902e3(0x328)])==null?void 0x0:_0x353d8b[_0x6902e3(0x2d8)]);if(!((_0x381c48=this[_0x6902e3(0x328)])!=null&&_0x381c48[_0x6902e3(0x299)])){let _0x2f0dfd=_0x279331[_0x6902e3(0x244)](([_0x2be234])=>_0x2be234===W);_0x2f0dfd!==-0x1&&_0x279331['splice'](_0x2f0dfd,0x1);}_0x11234a(this[_0x6902e3(0x3eb)],_0x279331);}['_initDependencies'](){const _0x5e0a4f=_0x5c9f94;var _0x1aff81,_0x2035ad;if(this[_0x5e0a4f(0x3eb)][_0x5e0a4f(0x160)](_0x145224)[_0x5e0a4f(0x230)]({'priority':0x14,'interceptor':_0x2c8f3e({'maxParallel':0x6})}),!((_0x1aff81=this['_config'])!=null&&_0x1aff81[_0x5e0a4f(0x238)])){var _0x236a52;(_0x236a52=this[_0x5e0a4f(0x3eb)][_0x5e0a4f(0x160)](U,_0x527f9b[_0x5e0a4f(0x3b9)]))==null||_0x236a52[_0x5e0a4f(0x3b8)]();}(_0x2035ad=this[_0x5e0a4f(0x328)])!=null&&_0x2035ad[_0x5e0a4f(0x1ff)]&&_0x393dc2(this[_0x5e0a4f(0x3eb)],[[Wn]]),_0x393dc2(this[_0x5e0a4f(0x3eb)],[[Xn],[Ln],[er]]);}};z(ar,'pluginName',_0x5c9f94(0x37a)),z(ar,_0x5c9f94(0x3dc),Rn),z(ar,_0x5c9f94(0x31f),zn),ar=H([_0x9817de(_0x2ecc84,_0x10430a,_0xfacf11),V(0x1,_0x3981ee),V(0x2,_0xcf8d3f(_0x19ff28)),V(0x3,_0xf41dc9)],ar);export{Gn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,Sn as BaseCollaborationEntity,Tn as BoardCollaborationEntity,R as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Hn as CollaborationAttachmentIoService,Ln as CollaborationController,$ as CollaborationEntity,Qn as CollaborationImageIoService,Gt as CollaborationSession,In as CollaborationSessionService,Mn as CollaborationSocketService,_n as CollaborationStatus,At as CollaborationUIEventId,B as CollaborationUIEventService,ir as CollaborativeUndoRedoService,jt as CommentService,X as ConflictState,_t as DEFAULT_COLLAB_WEB_SOCKET_URL,Tt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,vt as DEFAULT_WS_SESSION_TICKET_URL,Zn as DataLoaderService,xn as DocCollaborationEntity,Q as FetchingMissState,yt as HEARTBEAT_INTERVAL_KEY,bt as HEARTBEAT_TIMEOUT_KEY,Vn as IAttachmentIoService,Nn as ICollaborationClientAdapterService,An as ICollaborationSocketService,U as ILocalCacheService,Dn as INetworkConditionService,W as ISingleActiveUnitService,Ct as LOCAL_CACHE_INTERVAL,St as LOCAL_CACHE_INTERVAL_KEY,Mt as MemberService,$n as MentionIoHttpService,Z as OfflineState,En as PdfCollaborationEntity,q as PendingState,wt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,xt as RETRY_CONNECTING_MAX_COUNT_KEY,Ut as SessionStatus,Cn as SheetCollaborationEntity,Jt as SheetTransformSelectionsService,wn as SlideCollaborationEntity,rr as SnapshotServerOverHTTPService,K as SyncedState,Yt as UnitStatus,ar as UniverCollaborationClientPlugin,Pn as createUniverCollaborationAdapter,On as deserializeToCombResponse,Kt as getLocalCacheKey,kn as serializeCombRequest};
|
|
1
|
+
const _0x13a2b1=_0x148e;(function(_0x306b61,_0x4b2cda){const _0x2a45ef=_0x148e,_0x69c924=_0x306b61();while(!![]){try{const _0x31a500=-parseInt(_0x2a45ef(0x37f))/0x1+parseInt(_0x2a45ef(0x1f1))/0x2*(-parseInt(_0x2a45ef(0x361))/0x3)+-parseInt(_0x2a45ef(0x2ba))/0x4+parseInt(_0x2a45ef(0x2d3))/0x5+parseInt(_0x2a45ef(0x1bf))/0x6*(parseInt(_0x2a45ef(0x35f))/0x7)+parseInt(_0x2a45ef(0x1e2))/0x8*(parseInt(_0x2a45ef(0x264))/0x9)+parseInt(_0x2a45ef(0x1ba))/0xa*(parseInt(_0x2a45ef(0x137))/0xb);if(_0x31a500===_0x4b2cda)break;else _0x69c924['push'](_0x69c924['shift']());}catch(_0x12efe5){_0x69c924['push'](_0x69c924['shift']());}}}(_0x2a1a,0xee02c));import{CollaborationEvent as _0xd588b7,CompressMutationService as _0xfb1eea,EmptyMutationInfo as _0xf51d6b,ISnapshotServerService as _0x558b75,ITransformService as _0x4348d7,RevisionService as _0x13f2dc,SnapshotService as _0x31dbb1,UniverCollaborationPlugin as _0x19a45b,b64DecodeUnicode as _0x5174ea,isTransformChangesetsSuccess as _0xba84eb,isTransformMutationsWithChangesetFailure as _0xedf9f7,isTransformMutationsWithChangesetSuccess as _0x2984ce,mapDocumentTypeToUniverInstanceType as _0x4eeba1,parseChangesetToProtocol as _0x214b3a,parseProtocolChangeset as _0x397059,textEncoder as _0x1ca3b4,uuidv4 as _0x43d36d}from'@univerjs-pro/collaboration';import{CommandType as _0x550544,DependentOn as _0x1d880e,Disposable as _0x21e429,DisposableCollection as _0x2d1394,IAuthzIoService as _0x5107b9,ICommandService as _0x33e7ca,IConfigService as _0xee80fd,IContextService as _0x53e200,IImageIoService as _0x5e96a5,ILogService as _0x13ba11,IMentionIOService as _0x4af818,IPermissionService as _0x18f67c,IUndoRedoService as _0x10b774,IUniverInstanceService as _0x95142,ImageSourceType as _0x1565e9,ImageUploadStatusType as _0x427b86,Inject as _0x4b5aa3,Injector as _0x34ebb2,JSONX as _0x52fee6,LocalUndoRedoService as _0x3d6931,LocaleService as _0x413ac2,MentionType as _0x3b8e1a,OBJECT_PERMISSION_CONFIG_KEY as _0x1103c0,ObjectPermissionService as _0x46382e,Optional as _0x387f7a,Plugin as _0x3375e9,Quantity as _0x61e5b,Rectangle as _0x22b2c1,RxDisposable as _0x7b0f5f,Tools as _0x10509e,UniverInstanceType as _0x574677,UserManagerService as _0x458d04,Workbook as _0x4bf27a,createIdentifier as _0x51623a,generateRandomId as _0x3962f8,isInternalEditorID as _0x31c723,merge as _0x2fb5e8,mergeOverrideWithDependencies as _0x3416ea,registerDependencies as _0x48d7fe,resolveWithBasePath as _0x3a413c,sequenceExecute as _0x22bc3f,toDisposable as _0xe23d59,touchDependencies as _0x2b389a}from'@univerjs/core';import{DocStateChangeManagerService as _0x41ca86,RichTextEditingMutation as _0xff135e}from'@univerjs/docs';import{InsertSheetMutation as _0x345771,SetSelectionsOperation as _0x47bea2,SheetPermissionInitController as _0x24b61e,SheetsSelectionsService as _0x263b2b,WorkbookEditablePermission as _0x534ed6}from'@univerjs/sheets';import{BehaviorSubject as _0x20736c,ReplaySubject as _0x441c59,Subject as _0x579c12,Subscription as _0x3c3c9b,concatMap as _0x84c944,firstValueFrom as _0x116689,map as _0x19ae10,merge as _0x6c682a,of as _0x48ff17,shareReplay as _0x35b3fd,take as _0x52c094,takeUntil as _0x183735}from'rxjs';import{CmdRspCode as _0x29811e,CombCmd as _0x1d0730,ErrorCode as _0x42630f,FileSource as _0x24d03a,UnitAction as _0x2e5587,UnitObject as _0x34ac79}from'@univerjs/protocol';import{ITelemetryService as _0x55fb3e}from'@univerjs/telemetry';import{delay as _0x2103b6,filter as _0x649d5,map as _0x1e8773,take as _0x58421e,takeUntil as _0x261fc1}from'rxjs/operators';function _0x148e(_0x4b9158,_0x301b5b){_0x4b9158=_0x4b9158-0xda;const _0x2a1ac3=_0x2a1a();let _0x148e0c=_0x2a1ac3[_0x4b9158];return _0x148e0c;}import{AddSlidePageMutation as _0x12ede7,EnsureSlideMasterPageMutation as _0x2f3967,MoveSlidePageMutation as _0x4e45c8,RemoveSlidePageMutation as _0x4d2e2c}from'@univerjs-pro/slides';import{HTTPRequest as _0x1a8fe9,HTTPService as _0x42bbda,ISocketService as _0x2bd6ee,MergeInterceptorFactory as _0x2054bb,ThresholdInterceptorFactory as _0x59da0c,UniverNetworkPlugin as _0x521242}from'@univerjs/network';import{UniverLicensePlugin as _0x553e70,getGlobalObject as _0x5f0e1c}from'@univerjs-pro/license';import{cbc as _0x285852}from'@noble/ciphers/aes.js';import{concatBytes as _0x58e0d7,randomBytes as _0x795c02,utf8ToBytes as _0x5c4bcb}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x15a90d,getDrawingImageAllowSize as _0x43f4e8}from'@univerjs/drawing';const R=_0x13a2b1(0x174),_t={},vt=_0x13a2b1(0x1ff),yt='/universer-api/user/session-ticket',bt=_0x13a2b1(0x22f),xt=_0x13a2b1(0x25c),St=_0x13a2b1(0x34b),Ct='LOCAL_CACHE_INTERVAL',wt=0x3e8,Tt=_0x13a2b1(0x29f),Et=_0x13a2b1(0x24f);function Dt(_0x4f5d2a){const _0x192584=_0x13a2b1;return JSON[_0x192584(0x398)](_0x4f5d2a)[_0x192584(0x197)];}function Ot(_0x3bc1c6){'@babel/helpers - typeof';const _0x2eaade=_0x13a2b1;return Ot=typeof Symbol=='function'&&typeof Symbol[_0x2eaade(0x358)]==_0x2eaade(0x11a)?function(_0x50f8e6){return typeof _0x50f8e6;}:function(_0x888dc5){const _0x197f64=_0x2eaade;return _0x888dc5&&typeof Symbol==_0x197f64(0x1cf)&&_0x888dc5[_0x197f64(0x2ee)]===Symbol&&_0x888dc5!==Symbol[_0x197f64(0x1c4)]?_0x197f64(0x11a):typeof _0x888dc5;},Ot(_0x3bc1c6);}function kt(_0x5f3040,_0x1a8891){const _0x477070=_0x13a2b1;if(Ot(_0x5f3040)!=_0x477070(0x2cb)||!_0x5f3040)return _0x5f3040;var _0x328ac2=_0x5f3040[Symbol[_0x477070(0x199)]];if(_0x328ac2!==void 0x0){var _0x5ae2ed=_0x328ac2[_0x477070(0x24e)](_0x5f3040,_0x1a8891||_0x477070(0x251));if(Ot(_0x5ae2ed)!=_0x477070(0x2cb))return _0x5ae2ed;throw TypeError(_0x477070(0xfe));}return(_0x1a8891===_0x477070(0x2b1)?String:Number)(_0x5f3040);}function At(_0xc951bd){const _0x14d18f=_0x13a2b1;var _0x1d2777=kt(_0xc951bd,_0x14d18f(0x2b1));return Ot(_0x1d2777)=='symbol'?_0x1d2777:_0x1d2777+'';}function z(_0x34601a,_0x4d679e,_0x58cfee){const _0x1880f3=_0x13a2b1;return(_0x4d679e=At(_0x4d679e))in _0x34601a?Object[_0x1880f3(0x2c8)](_0x34601a,_0x4d679e,{'value':_0x58cfee,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x34601a[_0x4d679e]=_0x58cfee,_0x34601a;}let jt=function(_0x425be1){const _0x4b4bfd=_0x13a2b1;return _0x425be1['OTHER_CLIENT_EDITING']=_0x4b4bfd(0x171),_0x425be1[_0x4b4bfd(0x28c)]=_0x4b4bfd(0x28c),_0x425be1[_0x4b4bfd(0x2ce)]='CONFLICT_PROCESSING',_0x425be1[_0x4b4bfd(0x27b)]=_0x4b4bfd(0x27b),_0x425be1[_0x4b4bfd(0x336)]=_0x4b4bfd(0x336),_0x425be1[_0x4b4bfd(0x282)]=_0x4b4bfd(0x282),_0x425be1['JOIN_ROOM_FAILED']='JOIN_ROOM_FAILED',_0x425be1[_0x4b4bfd(0x1d9)]=_0x4b4bfd(0x1d9),_0x425be1[_0x4b4bfd(0x1ea)]='SOCKET_FAILED',_0x425be1[_0x4b4bfd(0x285)]=_0x4b4bfd(0x285),_0x425be1;}({});var B=class{constructor(){const _0x15c6fa=_0x13a2b1;z(this,_0x15c6fa(0x238),new _0x579c12()),z(this,_0x15c6fa(0x2a8),this[_0x15c6fa(0x238)][_0x15c6fa(0x36c)]());}['emitEvent'](_0xbce77){const _0x485bb6=_0x13a2b1;this[_0x485bb6(0x238)]['next'](_0xbce77);}},Mt=class{constructor(){const _0x5e35c5=_0x13a2b1;z(this,_0x5e35c5(0x323),new _0x579c12()),z(this,'commentUpdate$',this[_0x5e35c5(0x323)][_0x5e35c5(0x36c)]());}['onCommentUpdate'](_0x2c2aea){const _0x3a842c=_0x13a2b1;this[_0x3a842c(0x323)][_0x3a842c(0x110)](_0x2c2aea);}};function V(_0x38bda0,_0x5c32e6){return function(_0x2559b3,_0x420eb8){_0x5c32e6(_0x2559b3,_0x420eb8,_0x38bda0);};}function H(_0x147831,_0x434e33,_0x27b786,_0x15d894){const _0x4b6ab9=_0x13a2b1;var _0x242e00=arguments[_0x4b6ab9(0x197)],_0x1a9498=_0x242e00<0x3?_0x434e33:_0x15d894===null?_0x15d894=Object['getOwnPropertyDescriptor'](_0x434e33,_0x27b786):_0x15d894,_0x4644c2;if(typeof Reflect==_0x4b6ab9(0x2cb)&&typeof Reflect[_0x4b6ab9(0x37a)]==_0x4b6ab9(0x1cf))_0x1a9498=Reflect[_0x4b6ab9(0x37a)](_0x147831,_0x434e33,_0x27b786,_0x15d894);else{for(var _0x571651=_0x147831[_0x4b6ab9(0x197)]-0x1;_0x571651>=0x0;_0x571651--)(_0x4644c2=_0x147831[_0x571651])&&(_0x1a9498=(_0x242e00<0x3?_0x4644c2(_0x1a9498):_0x242e00>0x3?_0x4644c2(_0x434e33,_0x27b786,_0x1a9498):_0x4644c2(_0x434e33,_0x27b786))||_0x1a9498);}return _0x242e00>0x3&&_0x1a9498&&Object[_0x4b6ab9(0x2c8)](_0x434e33,_0x27b786,_0x1a9498),_0x1a9498;}let Nt=class extends _0x21e429{constructor(_0x339ca5){const _0x529671=_0x13a2b1;super(),this[_0x529671(0x32b)]=_0x339ca5,z(this,_0x529671(0x1d2),new Map()),z(this,_0x529671(0x2bf),new _0x579c12()),this[_0x529671(0x2be)](_0x6c682a(this['_univerInstanceService'][_0x529671(0x2fa)](_0x574677[_0x529671(0x1ef)])[_0x529671(0x317)](_0x1e8773(_0x5115b6=>_0x5115b6[_0x529671(0x16f)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x574677[_0x529671(0x113)])[_0x529671(0x317)](_0x1e8773(_0x2acfd8=>_0x2acfd8[_0x529671(0x16f)]())),this[_0x529671(0x32b)]['getTypeOfUnitDisposed$'](_0x574677[_0x529671(0x15a)])[_0x529671(0x317)](_0x1e8773(_0x21456c=>_0x21456c[_0x529671(0x16f)]())),this[_0x529671(0x32b)][_0x529671(0x2fa)](_0x574677[_0x529671(0x299)])[_0x529671(0x317)](_0x1e8773(_0x5be33b=>_0x5be33b[_0x529671(0x16f)]())))[_0x529671(0x31e)](_0x2d374e=>this['_removeRoom'](_0x2d374e)));}[_0x13a2b1(0x289)](_0x5db643){const _0x517bc7=_0x13a2b1;return this[_0x517bc7(0x1d2)][_0x517bc7(0xeb)](_0x5db643)?_0x48ff17(this[_0x517bc7(0x1d2)][_0x517bc7(0x102)](_0x5db643)):this[_0x517bc7(0x2bf)][_0x517bc7(0x317)](_0x1e8773(_0x469d04=>{const _0x370e58=_0x517bc7;if(_0x469d04===_0x5db643)return this[_0x370e58(0x1d2)]['get'](_0x469d04);}));}['updateMember'](_0x14f4cc,_0x32c947){const _0x5037f6=_0x13a2b1;let _0x473123=this['_roomMembers']['get'](_0x14f4cc);_0x473123||(_0x473123=new Pt(),this[_0x5037f6(0x1d2)]['set'](_0x14f4cc,_0x473123),this[_0x5037f6(0x2bf)][_0x5037f6(0x110)](_0x14f4cc)),_0x473123[_0x5037f6(0x17b)](_0x32c947);}[_0x13a2b1(0x1ac)](_0x3732fa,_0x2a48aa){const _0x37a7c1=_0x13a2b1;let _0x125dae=this[_0x37a7c1(0x1d2)][_0x37a7c1(0x102)](_0x3732fa);_0x125dae&&_0x125dae[_0x37a7c1(0x1ac)](_0x2a48aa);}['getRoom'](_0x4327a6){const _0x2e0766=_0x13a2b1;return this[_0x2e0766(0x1d2)][_0x2e0766(0x102)](_0x4327a6);}['getMember'](_0x53d73a,_0x1b6a84){const _0x446bfc=_0x13a2b1;let _0x432103=this['_roomMembers'][_0x446bfc(0x102)](_0x53d73a);if(_0x432103)return _0x432103['getMember'](_0x1b6a84);}[_0x13a2b1(0x21b)](_0x2675c6){const _0x527a20=_0x13a2b1;let _0x4d6f53=this['_roomMembers'][_0x527a20(0x102)](_0x2675c6);_0x4d6f53&&(_0x4d6f53['dispose'](),this[_0x527a20(0x1d2)]['delete'](_0x2675c6));}[_0x13a2b1(0x1a1)](){const _0x4c333d=_0x13a2b1;this[_0x4c333d(0x1d2)][_0x4c333d(0x39d)](_0x4c21b1=>_0x4c21b1['dispose']()),this[_0x4c333d(0x1d2)]['clear'](),this[_0x4c333d(0x2bf)][_0x4c333d(0x17f)]();}};Nt=H([V(0x0,_0x95142)],Nt);var Pt=class extends _0x21e429{constructor(..._0x77715d){const _0xd4c3c6=_0x13a2b1;super(..._0x77715d),z(this,_0xd4c3c6(0x12f),new Map()),z(this,_0xd4c3c6(0x301),new _0x20736c(this[_0xd4c3c6(0x12f)])),z(this,_0xd4c3c6(0x15b),this[_0xd4c3c6(0x301)][_0xd4c3c6(0x36c)]());}[_0x13a2b1(0x1a1)](){const _0x908db5=_0x13a2b1;this[_0x908db5(0x12f)][_0x908db5(0x38f)](),this[_0x908db5(0x301)][_0x908db5(0x17f)]();}[_0x13a2b1(0x17b)](_0x1bef9d){const _0x143552=_0x13a2b1;this[_0x143552(0x12f)][_0x143552(0x346)](_0x1bef9d[_0x143552(0x1e6)],_0x1bef9d),this[_0x143552(0x25d)]();}['removeMember'](_0x426980){const _0x59a2e5=_0x13a2b1;this[_0x59a2e5(0x12f)]['delete'](_0x426980),this[_0x59a2e5(0x25d)]();}['getMember'](_0x257d9a){const _0x566b7f=_0x13a2b1;return this[_0x566b7f(0x12f)][_0x566b7f(0x102)](_0x257d9a);}[_0x13a2b1(0x155)](){const _0x1e1c45=_0x13a2b1;return Array[_0x1e1c45(0x1f9)](this[_0x1e1c45(0x12f)][_0x1e1c45(0x2d5)]());}[_0x13a2b1(0x25d)](){const _0x2746de=_0x13a2b1;this[_0x2746de(0x301)][_0x2746de(0x110)](this['_members']);}};function Ft(_0x7ad8ec,_0x1b9af8){const _0x55f47b=_0x13a2b1;if(Lt(_0x7ad8ec))return _0x1b9af8;if(_0x1b9af8[_0x55f47b(0x207)]===_0xd588b7[_0x55f47b(0x2a4)]){let _0x4f5eef=Ht(_0x7ad8ec),_0x4a924b=_0x1b9af8;return{..._0x4a924b,'data':{..._0x4a924b[_0x55f47b(0x35d)],'unitID':_0x7ad8ec[_0x55f47b(0x302)][_0x55f47b(0x2f1)],'unitType':_0x7ad8ec[_0x55f47b(0x302)]['unitType']??_0x4a924b[_0x55f47b(0x35d)]['unitType'],'changeset':_0x4f5eef['toRemote'](_0x4a924b['data'][_0x55f47b(0x275)],Ut(_0x7ad8ec))}};}if(_0x1b9af8[_0x55f47b(0x207)]===_0xd588b7[_0x55f47b(0x127)]){let _0x35806f=_0x1b9af8;return{..._0x35806f,'data':{..._0x35806f[_0x55f47b(0x35d)],'unitID':_0x7ad8ec[_0x55f47b(0x302)][_0x55f47b(0x2f1)],'unitType':_0x7ad8ec[_0x55f47b(0x302)][_0x55f47b(0x230)]??_0x35806f[_0x55f47b(0x35d)]['unitType']}};}return _0x1b9af8;}function _0x2a1a(){const _0x33991a=['collaboratorID','_univerInstanceService','resolveUnit','onRemoteRej','_onRemoteRetry','COMPRESS_MUTATION_APPLY','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','name','_unlockTransition','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','submit\x20changeset\x20error!','getImageSourceCache','CONFLICT','_redoStacks','BASE64','/universer-api/snapshot/','_socketService','_syncEditingCollabCursor','_sheetTransformSelectionsService','m2Prime','_resendTimer','unit','LIVESHARE_REQUEST_HOST','location','authzUrl','_replaceFileID','onlyLocal','online','set','state$','post','saveSheetBlock','entries','RETRY_CONNECTING_MAX_COUNT','UnitEmbedded','registerHTTPInterceptor','_transformRemoteChangesetByStateCache','awaiting','_substituteRedoStack','confirm','JOIN_ROOM_NOT_EXISTS','_socket','onSyncEditingCollabCursor','downloadEndpointUrl','onTransformRemoteChangesetByIMECache','AWAITING_WITH_PENDING','iterator','UPDATE_PERMISSION_OBJ','_tryEnsureSocket','createSocket','setShowComponents','data','append','21dTZlyG','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','7281MOjRMS','createInstance','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','create','_disableEditing','_prepareTransformSelections','JOIN_ROOM_PERMISSION_DENIED','attachment','conflict','loadOfflineData','UNIVER_SLIDE','asObservable','_onLocalMutation','_getDownloadEndpointURL','_onRemoteChangeset','_clearRetryConnectingTimer','_createInitialState','FileId','IDLE','status$','_status$','localeService','body','synced','cfgEnableObjInherit','decorate','[OfflineState]:\x20received\x20acknowledgement.','&source=','_telemetryService','[CollaborationUndoRedoService]','1905515pCMcfx','_updateState','onRemoteChangeset','_checkMissing','retryConnectingTimer','[FetchMissState]','[SyncedState]:\x20received\x20rejection.','_clearScheduledTask','setCfgEnableObjInherit','OFFLINE','reduce','getCurrentSelections','putCollaborators','/universer-api/oidc/authpage','_getUndoStack','getMemberID','clear','ONLINE','onSendChangeset','onMutationExecutedForCollab','?url=','blockRanges','_unitLoaded$','session','failed\x20to\x20apply\x20missed\x20changesets!','stringify','/unit/','LEAVE','then','_singleActiveUnitService','forEach','createCollaborator','charCodeAt','_collaborationTimeoutTimer','subUnitId','loadPdf','_configService','_onMessage','onMissedChangesetFetched','_initDependencies','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_fetchMissChangesets','_lockTransition','getImage','awaitingChangeset','revision','parse','reject','PERSON','_collaborationPaused','getCurrentRevOfUnit','resourceIDs','_userManagerService','getLatestCsReqIdBySid','type','UPDATE_CURSOR','enableCollaboration','/-/object/-/batch_allowed','_httpService','LIVESHARE_TERMINATE','getValue','href','withCredentials','size','catch','_sendHeartbeat','has','unitID','text-x','encrypt','_showConflictProcessingNotification','action','_HTTPService','requireSession','x-univer-host','ignored\x20stale\x20ack\x20of\x20revision\x20','_clearTimeoutTimer','batchAllowed','origin','liveShareOperation','onStateChange','/universer-api/snapshot','/universer-api/file/{fileID}/sign-url','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_shouldReportTelemetry','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_clearHeartbeatTimer','_collaborationUIEventService','get','/-/object/list','subType','open$','POST','/collaborator','ERROR_IMAGE','[CollaborationSession]','fromCollab','_getAPIPrefix','message$','toggleOffline','getCollabEntity','univer-pro.collaboration-client.single-active-unit-service','next','univer-pro.collaboration-client-adapter-service','delete','UNIVER_DOC','focused$','interceptor','status','isArray','_networkConditionService','isPermissionRej','symbol','localCacheService','_acknowledgeAwaitingIfReady','readAsDataURL','/allowed','fromCharCode','headers','editingUnit','getDeserializedSheetBlock','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','_transformRemoteChangesetByIMECache','cmd','_onCombEvent','FETCH_MISSING','allowed','_resolveSessionIdentity','_rescheduleHeartbeat','socketReady','_createHandler','/universer-api/stream/file/upload','&assign=','_members','HELLO','deleteCollaborator','[PendingState]:\x20unhandled\x20univer\x20type:\x20','CHANGESET_SHOULD_RETRY','OTHER_CLIENTS_EDITING','1.1.0','retryConnectingInterval','3123769eZDuuf','roomInfos','_init','RECV','PERMISSION_REJ','@univerjs-pro/collaboration-client','emitEvent','onPrepareTransformSelections','localUnitId','_isAckOfAwaitingChangeset','PENDING','updateCursorEvent','startsWith','?size=','\x0aAfter:\x20','handshakeTimer','session.room-not-exists','_isEchoedAwaitingChangeset','permissionRejEvent','candidateSocket','objectActions','[PendingState]:\x20received\x20acknowledgement.','startTime','objectPermissionTypes','c2Prime','onTransformIME','joinEvent','resolve','_createSession','_pendingMutations','getAllMembers','slice','SUCCUSS','result','updateCollaborator','UNIVER_BOARD','members$','FETCH_MISS','timeoutTimer','_isAppliedRevision','collaboration-client.local-cache-service','_subscribeResendTimer','_loadUnit','GLOBAL_ROOMS_CNT_EXCEEDS','_closedUnits','liveShareNewHost','editing\x20status\x20changed\x20to','unknown','offline','clearUnit','fetch_missing','_tryReconnect','patch','_incrementRevisionNumber','isCompositionEnd','uploadFileServerUrl','getUnitId','onload','OTHER_CLIENT_EDITING','JOIN','_doCreateSocket','collaboration-client.config','_stopTelemetryCollaborationNewChangeset','list','change$','_updateLocalCache','&to=','baseRev','updateMember','_entityInit$','_hasSessionsForEndpoint','collaboration-client.auth.needGotoLoginAlert','complete','_getCurrentRevision','_onUserLeave','save\x20fail\x20reason\x20is\x20','COMPRESS_MUTATION_SEND','_transformSelections','_onRemoteACK','onRemoteRetry','CHANGESET_REJ','saveImage','_initRequestHeader','encode','FAIL','rollback','SNAPSHOT_URL_KEY','capture','_commandService','_prepareConflictRecovery','/object/','unitId\x20is\x20not\x20found','maxSize','transformSelections','debug','_exhaustRemoteChangesetQueue','length','unitLoaded$','toPrimitive','_sender','[AwaitingWithPendingState]','[CollaborationState]:\x20apply\x20error!','number','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','unsubscribe','NEW_CHANGESETS','dispose','collabWebSocketUrl','params','_toggleOnline','socketService','_onRecvEvent','onMissingChangesets','Board','getTypeOfUnitAdded$','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','/universer-api/authz','removeMember','_handleRemoteChangesets','_getRedoStack','_instanceService','_onConnectionOpen','_onConnectionFailed','unit-cache-','Edit','_clearUndo','fetchThroughInterceptors','[CollaborationSessionService]:\x20socket\x20error','_getConfig','sendHeartbeatTimer','objectType','110ZIjVcL','_getCtorByUniverInstanceType','_queuedRemoteChangesets','_localCacheService','sessionStatus$','555354JdsRAJ','onTransformState','transformMutationsWithChangeset','getAttachmentUrl','[PendingState]:\x20received\x20rejection.','prototype','collaMsg','_type','commentUpdateEvent','getSnapshotAPIPath','getResourcesRequest','_change$','/rev/','transformUndoRedo','getSheetId','onCommentUpdate','function','COMMENT_UPDATE','find','_roomMembers','error$','\x20in\x20_schedule.','floor','_loadSnapshot','upload','send','SOCKET_FAILED_RETRY','_waitCount','CHANGESET_ACK','awaiting_with_pending','_docStateChangeManagerService','OPTIONAL','_transformService','USERS_ENTER','indexOf','568zYMkIB','compose','routeKey','setConfig','memberID','_scheduleCollaborationTimeoutTimer','_entities','loadDoc','SOCKET_FAILED','_transformUndoredo','getWorkbookSelections','LIVESHARE_NEW_HOST','objects','UNIVER_SHEET','socket$','1066WWwoiM','_collaborationSessionService','HEARTBEAT','enableOfflineEditing','LIVESHARE_OPERATION','_eventService','_resendSchedule','[CollaborationEntity]','from','accept','_acknowledgedAwaitingRevision','getInterceptPoints','endsWith','_state$','ws://127.0.0.1:8000/universer-api/comb/connect','_replayCachedMutations','disableLocalCache','_sessionChannels','csRejEvent','_revisionService','COLLABORATION_ENDPOINT_INVALID','setWaitCount','eventID','_onRemoteRejected','_identity','appendMutation','_handler','backupOfflineData','originalMeta','_permissionService','endpointKey','_socketMessageSubscription','_state','init','resend','_getSocketChannel','/new_changes','[SyncedState]:\x20received\x20acknowledgement.','_isPermissionRej','NO_OTHER_CLIENTS_EDITING','objectID','packageName','_removeRoom','total','_disposed','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','PSEUDO_FETCH_MISSING_RESULT','snapshot','Error\x20on\x20receiving\x20event','/block/','error','_commentService','stopTime','connection\x20error','getCollabEntity$','_snapshotService','_remoteChangesetQueue','_pendingSessions','map','_changesetSessionId','equals','objectId','HEARTBEAT_INTERVAL','unitType','avatar','[OfflineState]:\x20received\x20changeset.','transformStack\x20failed!','incrementRevOfUnit','fetchMissingChangesets','_initMergeInterceptor','now','_event$','_authzIoService','_throwTelemetryCollaborationNewChangeset','_registerDependencies','_sessions','saveSnapshot','columnGroups','updatePermissionPoint','_handlerCallback','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','/fetchmissing?from=','onTransformRemoteChangesetByStateCache','[DataLoaderService]','requestParams','session.room-cnt-exceeds','JOINING','_injector','_transformIMECache','findIndex','_getSignURL','Slide','executeCommand','call','/universer-api/uniscript','_scheduleCompleteTimestamp','default','src','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','hostname','getFocusedUnit','_initCloseConn','textRanges','subject','_compressMutationService','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','HEARTBEAT_TIMEOUT','_emitMembers','_startTelemetryCollaborationNewChangeset','readyForCollab','pauseCollaboration','actions','getTime','reverse','184770cBwMHQ','_createSocket','onLocalMutation','_submitChangeset','UNISCRIPT_RUN','_memberService','tables','getCurrentUser','getActiveSheet','listRoles','reconnect','People','add','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','saveAttachment','INGEST','socket\x20open.','changeset','signUrlServerUrl','Univer','MSG_FOR_ERROR','_runScheduledResend','_clearHandshakeTimer','CONFLICT_CACHE_CLEAR_FAILED','initWorkbookPermissionChange','getUploadOptions','_transitionLocked','_transformStack','LIVESHARE_FETCH_OPERATIONS','_changesetReqId','CLOSE_ROOM','_onOffline','_showConflictNotification','SUBMIT_CHANGESET_TIMEOUT','session.join-failed','NOT_COLLAB','mutations','waitForRoom$','getUnitType','_sendingTimer','PERMISSION_DENIED','fetching\x20missing\x20changesets\x20from\x20','_collabSessionService','_getUploadFileURL','getUnitOnRev','_resendTimeout','not_collab','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationSessionService]','\x0aCurrent:\x20','file','close','_getUnitPermissionPoints','UNIVER_BASE','_onJoinRoomEvent','_socketChannels','loginUrlKey','sendChangesetTimeout','dispose$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_telemetryInfo','selections','responseType','socket\x20close','SUBMIT_CHANGESET','MUTATION','_localeService','put','event$','_logService','method','UUID','_imageSourceCache','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_createInitialStateImpl','_cfgEnableObjInherit','filter','string','onTransformSelections','min','_adapter','USERS_LEAVE','_unitInfo$','univer-pro.collaboration-client-socket-service','_awaitingChangeset','infoRsp','5718164wFfUTM','SHOULD_CLOSE_CONN','_maxTotalRetryTimeout','[UniverCollaborationClientPlugin]','disposeWithMe','_roomCreated$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_getSendChangesetTimeout','push','hasOwnProperty','onRemoteAck','c1Prime','_refreshUnitPermission','_config','defineProperty','collabSubmitChangesetUrl','state','object','_onFetchMissResult','clearOfflineData','CONFLICT_PROCESSING','refreshPermission','online$','[AwaitingState]','changesets','3722315pHILXl','__splitChunk__','values','range','url','_dropAcknowledgedAwaiting','pending','__Key__','splice','getUnit','rev','_transformStateCache','sid','max','base-ui.attachment-io.service','_schedule','userID','includes','unitDisposed$','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','addHandlerCallback','_upload','{fileID}','apply','getCfgEnableObjInherit','_waitForHeartbeatResponse','reqId','constructor','timer','retryCount','unitId','_clearRedo','_decreaseWaiting','getAllPermissionPoint','_getLoginPath','\x20at\x20revision\x20','update','members','socketSubscription','getTypeOfUnitDisposed$','fetchMiss','_sessionStatus$','connectionAttempt','/role','toString','_substituteUndoStack','_members$','target','_initUnitPermissionChange','loadUnitOfRevision','_transformAndApplyRemoteChangeset','_applyRemoteChangeset','_listenToNetworkCondition','_toggleOffline','_executeRemoteChangeset','sheets','commit','collaborators','_updateUnitPermissionPoint','_snapshotServerService','toggleOnline','every','some','endpoint','_acknowledgeAwaiting','enableAuthServer','missingChangesets','override','pipe','_undoRedoService','transformChangesets','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','sessionStatus','onStarting','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','subscribe','code','_joinRoom','replace','_getAPIPrefixPath','_commentUpdate$','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_onConflict','getConfig','JOIN_ROOM_FAILED','UNIVER_PDF'];_0x2a1a=function(){return _0x33991a;};return _0x2a1a();}function It(_0x7574f2,_0x24a7f4){const _0x3f9087=_0x13a2b1;if(Lt(_0x7574f2))return[_0x24a7f4];switch(_0x24a7f4[_0x3f9087(0x207)]){case _0xd588b7[_0x3f9087(0x1a0)]:return[Rt(_0x7574f2,_0x24a7f4)];case _0xd588b7[_0x3f9087(0x21f)]:return[Bt(_0x7574f2,_0x24a7f4)];case _0xd588b7[_0x3f9087(0x133)]:return[zt(_0x7574f2,_0x24a7f4)];default:return[_0x24a7f4];}}function Lt(_0x3e5297){const _0x4b9ed3=_0x13a2b1;return _0x3e5297[_0x4b9ed3(0x302)]['endpoint']==null&&_0x3e5297[_0x4b9ed3(0x302)][_0x4b9ed3(0x2f1)]===_0x3e5297[_0x4b9ed3(0x13f)]&&!_0x3e5297[_0x4b9ed3(0x275)];}function Rt(_0x3f09ff,_0x5c4765){const _0xabe8b6=_0x13a2b1;return{..._0x5c4765,'data':_0x214b3a(Vt(_0x3f09ff,_0x397059(_0x5c4765[_0xabe8b6(0x35d)])))};}function zt(_0x5a466b,_0x1ea097){const _0x4363ef=_0x13a2b1;return{..._0x1ea097,'data':Vt(_0x5a466b,_0x1ea097[_0x4363ef(0x35d)])};}function Bt(_0x1a8fd8,_0xf7c5d5){const _0x4b4821=_0x13a2b1;let _0x54e3d8=_0xf7c5d5['data'];return{..._0xf7c5d5,'data':{..._0x54e3d8,'changesets':_0x54e3d8['changesets'][_0x4b4821(0x22b)](_0x2a5e18=>_0x214b3a(Vt(_0x1a8fd8,_0x397059(_0x2a5e18))))}};}function Vt(_0x555f2c,_0x32fb4e){return Ht(_0x555f2c)['toLocal'](_0x32fb4e,Ut(_0x555f2c));}function Ht(_0x423dc1){const _0x140818=_0x13a2b1;if(!_0x423dc1[_0x140818(0x275)])throw Error(_0x140818(0x21e));return _0x423dc1[_0x140818(0x275)];}function Ut(_0x233d2a){const _0xae4f30=_0x13a2b1;return{'localUnitId':_0x233d2a[_0xae4f30(0x13f)],'unitType':_0x233d2a[_0xae4f30(0x230)],'target':_0x233d2a[_0xae4f30(0x302)]};}let Wt=function(_0x3b521c){const _0x4358b=_0x13a2b1;return _0x3b521c[_0x3b521c[_0x4358b(0x373)]=0x0]=_0x4358b(0x373),_0x3b521c[_0x3b521c[_0x4358b(0x247)]=0x1]=_0x4358b(0x247),_0x3b521c[_0x3b521c[_0x4358b(0x388)]=0x2]=_0x4358b(0x388),_0x3b521c[_0x3b521c[_0x4358b(0x390)]=0x3]='ONLINE',_0x3b521c;}({});const Gt={[_0x29811e[_0x13a2b1(0x18b)]]:_0x13a2b1(0x286),[_0x29811e['JOIN_ROOM_FULL']]:'session.room-full',[_0x29811e[_0x13a2b1(0x352)]]:_0x13a2b1(0x147),[_0x29811e[_0x13a2b1(0x367)]]:'session.room-permission-denied',[_0x29811e[_0x13a2b1(0x162)]]:_0x13a2b1(0x246)};let Kt=class extends _0x7b0f5f{get[_0x13a2b1(0x31b)](){const _0x56139e=_0x13a2b1;return this[_0x56139e(0x2fc)]['getValue']();}constructor(_0x1a73db,_0x561c9b,_0x15fc89,_0x4ed43f,_0x52092f,_0x4c8221,_0x1c3f4c,_0x2ed017){const _0x470981=_0x13a2b1;super(),this['_identity']=_0x1a73db,this[_0x470981(0x2a9)]=_0x15fc89,this[_0x470981(0x3a3)]=_0x4ed43f,this[_0x470981(0x269)]=_0x52092f,this[_0x470981(0x224)]=_0x4c8221,this[_0x470981(0x101)]=_0x1c3f4c,this[_0x470981(0x37d)]=_0x2ed017,z(this,_0x470981(0x2fc),new _0x20736c(0x0)),z(this,_0x470981(0x1be),this[_0x470981(0x2fc)][_0x470981(0x36c)]()),z(this,'_event$',new _0x579c12()),z(this,_0x470981(0x2a8),this[_0x470981(0x238)][_0x470981(0x36c)]()),z(this,_0x470981(0x353),void 0x0),z(this,_0x470981(0x210),void 0x0),z(this,_0x470981(0x3a0),void 0x0),z(this,'_shouldReportTelemetry',!0x1),z(this,'_telemetryInfo',null),this[_0x470981(0xfd)]=!!this[_0x470981(0x37d)],_0x561c9b['pipe'](_0x183735(this[_0x470981(0x29e)]))[_0x470981(0x31e)](_0x3db631=>{const _0xa82381=_0x470981;if(_0x3db631!==void 0x0){if(this['_socket']=_0x3db631,_0x3db631)this[_0xa82381(0x320)](_0x3db631),this['_socketMessageSubscription']=_0x3db631[_0xa82381(0x10c)][_0xa82381(0x31e)](_0xb1155d=>{const _0x2df23f=_0xa82381;_0xb1155d['routeKey']===this[_0x2df23f(0x209)][_0x2df23f(0x302)][_0x2df23f(0x2f1)]&&this[_0x2df23f(0x126)](_0xb1155d);});else{var _0x48b506;this[_0xa82381(0x23a)](),this[_0xa82381(0x2fc)][_0xa82381(0x110)](0x2),(_0x48b506=this[_0xa82381(0x210)])==null||_0x48b506[_0xa82381(0x19f)](),this['_socketMessageSubscription']=null;}}});}[_0x13a2b1(0x38e)](){const _0x2ed084=_0x13a2b1;var _0x3ef776;return((_0x3ef776=this[_0x2ed084(0x353)])==null?void 0x0:_0x3ef776[_0x2ed084(0x1e6)])??null;}[_0x13a2b1(0x1a1)](){const _0x1c56f5=_0x13a2b1;super[_0x1c56f5(0x1a1)](),this[_0x1c56f5(0x297)](),this['dispose$'][_0x1c56f5(0x110)](),this[_0x1c56f5(0x29e)]['complete']();}[_0x13a2b1(0x297)](){const _0x5e1e75=_0x13a2b1;var _0xbcd89a;this[_0x5e1e75(0x23a)](),(_0xbcd89a=this[_0x5e1e75(0x353)])==null||_0xbcd89a[_0x5e1e75(0x1d8)]({'cmd':_0x1d0730[_0x5e1e75(0x39a)],'data':{'roomID':this[_0x5e1e75(0x209)][_0x5e1e75(0x302)][_0x5e1e75(0x2f1)]}}),this[_0x5e1e75(0x238)][_0x5e1e75(0x17f)](),this['_sessionStatus$'][_0x5e1e75(0x17f)]();}['_onCombEvent'](_0xff84cd){const _0x2632c8=_0x13a2b1;_0xff84cd['cmd']===_0x1d0730[_0x2632c8(0x172)]?this['_onJoinRoomEvent'](_0xff84cd):_0xff84cd['cmd']===_0x1d0730[_0x2632c8(0x13a)]&&this[_0x2632c8(0x1a6)](_0xff84cd);}['_joinRoom'](_0x23c5a6){const _0x433529=_0x13a2b1;this[_0x433529(0x2fc)]['next'](0x1),_0x23c5a6[_0x433529(0x1d8)]({'cmd':_0x1d0730['JOIN'],'routeKey':this[_0x433529(0x209)][_0x433529(0x302)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this[_0x433529(0x209)]['target'][_0x433529(0x2f1)]}]}});}[_0x13a2b1(0x29a)](_0x4936ce){const _0x2575bf=_0x13a2b1;var _0x3f8631;if(_0x4936ce[_0x2575bf(0x31f)]in Gt){this[_0x2575bf(0x101)][_0x2575bf(0x13d)]({'id':_0x2575bf(0x328),'data':Gt[_0x4936ce[_0x2575bf(0x31f)]]}),this['_sessionStatus$'][_0x2575bf(0x110)](0x2);return;}this[_0x2575bf(0x2fc)]['next'](0x3);let _0x25e7d2=(_0x3f8631=_0x4936ce['data'][_0x2575bf(0x138)][this['_identity']['target'][_0x2575bf(0x2f1)]])==null?void 0x0:_0x3f8631[_0x2575bf(0x2f8)];_0x25e7d2&&_0x25e7d2[_0x2575bf(0x39d)](_0x19d1f9=>this[_0x2575bf(0x269)][_0x2575bf(0x17b)](this[_0x2575bf(0x209)][_0x2575bf(0x13f)],_0x19d1f9));}[_0x13a2b1(0x1a6)](_0x7ddca2){const _0x5a666c=_0x13a2b1;try{let _0xd8258b=It(this[_0x5a666c(0x209)],_0x7ddca2['data']);for(let _0x1fedeb of _0xd8258b)switch(_0x1fedeb['eventID']){case _0xd588b7[_0x5a666c(0x1e0)]:this['_onUserJoin'](_0x1fedeb),this[_0x5a666c(0x238)][_0x5a666c(0x110)](_0x1fedeb);break;case _0xd588b7[_0x5a666c(0x2b5)]:this[_0x5a666c(0x181)](_0x1fedeb),this[_0x5a666c(0x238)][_0x5a666c(0x110)](_0x1fedeb);break;case _0xd588b7[_0x5a666c(0x1db)]:case _0xd588b7[_0x5a666c(0x133)]:this[_0x5a666c(0x175)](),this['_clearCollaborationTimeoutTimer'](),this[_0x5a666c(0x238)][_0x5a666c(0x110)](_0x1fedeb);break;case _0xd588b7['MSG_FOR_ERROR']:this['_logService'][_0x5a666c(0x223)](_0x5a666c(0x182)+JSON[_0x5a666c(0x398)](_0x1fedeb)),this['_event$'][_0x5a666c(0x110)](_0x1fedeb);break;case _0xd588b7[_0x5a666c(0x1d0)]:this['_commentService'][_0x5a666c(0x1ce)](_0x1fedeb[_0x5a666c(0x35d)]),this[_0x5a666c(0x238)][_0x5a666c(0x110)](_0x1fedeb);break;default:this[_0x5a666c(0x238)][_0x5a666c(0x110)](_0x1fedeb);}}catch(_0x594385){this[_0x5a666c(0x2a9)]['error'](_0x594385,_0x7ddca2);}}['_onUserJoin'](_0x4c0eef){const _0x5480f9=_0x13a2b1;this[_0x5480f9(0x269)]['updateMember'](this['_identity'][_0x5480f9(0x13f)],_0x4c0eef[_0x5480f9(0x35d)]);}[_0x13a2b1(0x181)](_0x5f2413){const _0x345150=_0x13a2b1;this[_0x345150(0x269)][_0x345150(0x1ac)](this[_0x345150(0x209)][_0x345150(0x13f)],_0x5f2413[_0x345150(0x35d)]['memberID']);}async['send'](_0xbac622,_0x52b7a6){const _0xafdb1f=_0x13a2b1;if(this[_0xafdb1f(0x31b)]!==0x3||!this[_0xafdb1f(0x353)])throw Error(_0xafdb1f(0x271));try{let _0x16bf97=Ft(this[_0xafdb1f(0x209)],_0xbac622);_0x16bf97[_0xafdb1f(0x207)]===_0xd588b7[_0xafdb1f(0x2a4)]&&(this[_0xafdb1f(0x1e7)](),this[_0xafdb1f(0x25e)](_0x16bf97)),this[_0xafdb1f(0x353)]['send']({'cmd':_0x1d0730[_0xafdb1f(0x273)],'routeKey':this[_0xafdb1f(0x209)][_0xafdb1f(0x302)][_0xafdb1f(0x2f1)],'routeType':'','data':_0x16bf97});}catch(_0x51c1f5){this[_0xafdb1f(0x2a9)][_0xafdb1f(0x223)](_0x51c1f5);}}['_scheduleCollaborationTimeoutTimer'](){const _0x3add20=_0x13a2b1;this[_0x3add20(0x3a0)]=setTimeout(()=>{const _0x5222c8=_0x3add20;this['_collaborationTimeoutTimer']=null,this[_0x5222c8(0x101)][_0x5222c8(0x13d)]({'id':_0x5222c8(0x285)});},this[_0x3add20(0x3a3)][_0x3add20(0x327)]('HEARTBEAT_TIMEOUT')??0x4e20);}['_clearCollaborationTimeoutTimer'](){this['_collaborationTimeoutTimer']&&=(clearTimeout(this['_collaborationTimeoutTimer']),null);}['_startTelemetryCollaborationNewChangeset'](_0x1f2bd6){const _0x520580=_0x13a2b1;if(!this[_0x520580(0xfd)])return;let {data:_0x3261f1}=_0x1f2bd6,{unitID:_0x115fd2,changeset:_0x432b27}=_0x3261f1,{mutations:_0x30280c,type:_0x346704}=_0x432b27;this[_0x520580(0x2a0)]={'unitId':_0x115fd2,'type':_0x346704,'startTime':performance[_0x520580(0x237)](),'stopTime':0x0,'duration':0x0,'size':Dt(_0x30280c)};}[_0x13a2b1(0x175)](){const _0x4b3e8d=_0x13a2b1;this[_0x4b3e8d(0xfd)]&&(this[_0x4b3e8d(0x2a0)]?(this[_0x4b3e8d(0x2a0)][_0x4b3e8d(0x225)]=performance[_0x4b3e8d(0x237)](),this[_0x4b3e8d(0x2a0)]['duration']=this[_0x4b3e8d(0x2a0)][_0x4b3e8d(0x225)]-this[_0x4b3e8d(0x2a0)][_0x4b3e8d(0x14d)],this[_0x4b3e8d(0x37d)][_0x4b3e8d(0x18e)]('collaboration_new_changeset',this['_telemetryInfo']),this[_0x4b3e8d(0x2a0)]=null):this['_logService']['error']('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized'));}[_0x13a2b1(0x23a)](){this['_telemetryInfo']=null;}};Kt=H([V(0x2,_0x13ba11),V(0x3,_0xee80fd),V(0x4,_0x4b5aa3(Nt)),V(0x5,_0x4b5aa3(Mt)),V(0x6,_0x4b5aa3(B)),V(0x7,_0x387f7a(_0x55fb3e))],Kt);const U=_0x51623a(_0x13a2b1(0x15f));function qt(_0x354efe,_0x4fb4b8){const _0x129f76=_0x13a2b1;return _0x4fb4b8===''||_0x4fb4b8==null?'unit-cache-'+_0x354efe:_0x129f76(0x1b2)+_0x354efe+'-'+encodeURIComponent(_0x4fb4b8);}function Jt(_0xbdecae){const _0x465141=_0x13a2b1;let {unitID:_0x322b90,mutations:_0x319e92}=_0xbdecae;return{'unitId':_0x322b90,'subUnitId':_0x319e92[_0x465141(0x197)]>0x0?_0x319e92[0x0]['params'][_0x465141(0x3a1)]:null};}let Yt=class{constructor(_0x1ae691,_0x5ea678,_0x30937b){const _0x223174=_0x13a2b1;this['_injector']=_0x1ae691,this['_transformService']=_0x5ea678,this[_0x223174(0x1af)]=_0x30937b;}[_0x13a2b1(0x194)](_0x176ed6){const _0x48f1b8=_0x13a2b1;var _0x1872a8,_0x200782;let _0x5135ab=this[_0x48f1b8(0x248)][_0x48f1b8(0x102)](_0x263b2b),{unitId:_0xaa125f,subUnitId:_0x413714}=Jt(_0x176ed6),_0x4264ec=_0x5135ab==null?void 0x0:_0x5135ab[_0x48f1b8(0x1ec)](_0xaa125f)[_0x48f1b8(0x38a)](),_0x3958e5=(_0x1872a8=this[_0x48f1b8(0x1af)][_0x48f1b8(0x2dc)](_0xaa125f))==null||(_0x1872a8=_0x1872a8[_0x48f1b8(0x26c)]())==null?void 0x0:_0x1872a8[_0x48f1b8(0x1cd)]();if(_0x4264ec[_0x48f1b8(0x197)]===0x0||!_0xaa125f||!_0x413714)return;let _0x2e8f3a=[{'id':_0x47bea2['id'],'params':{'unitId':_0xaa125f,'subUnitId':_0x3958e5,'selections':_0x10509e['deepClone'](_0x4264ec)}}],_0x25567c=this[_0x48f1b8(0x1df)][_0x48f1b8(0x1c1)](_0x176ed6,_0x2e8f3a);if(!_0x2984ce(_0x25567c))throw _0x25567c[_0x48f1b8(0x223)];let _0xe98dd3=(_0x200782=_0x25567c[_0x48f1b8(0x33d)][0x0])==null||(_0x200782=_0x200782['params'])==null?void 0x0:_0x200782[_0x48f1b8(0x2a1)];if(Array[_0x48f1b8(0x117)](_0xe98dd3)&&_0xe98dd3['length']){if(_0xe98dd3['length']===_0x2e8f3a[0x0][_0x48f1b8(0x1a3)]['selections']['length']&&_0xe98dd3[_0x48f1b8(0x310)]((_0x4f01fb,_0x351144)=>_0x22b2c1[_0x48f1b8(0x22d)](_0x4f01fb[_0x48f1b8(0x2d6)],_0x2e8f3a[0x0]['params']['selections'][_0x351144][_0x48f1b8(0x2d6)])))return;this[_0x48f1b8(0x248)][_0x48f1b8(0x102)](_0x33e7ca)[_0x48f1b8(0x24d)](_0x47bea2['id'],{'unitId':_0xaa125f,'subUnitId':_0x3958e5,'selections':_0xe98dd3});}}};Yt=H([V(0x0,_0x4b5aa3(_0x34ebb2)),V(0x1,_0x4348d7),V(0x2,_0x95142)],Yt);const W=_0x51623a(_0x13a2b1(0x10f));let Xt=function(_0x280e0d){const _0x51d5cf=_0x13a2b1;return _0x280e0d[_0x280e0d[_0x51d5cf(0x218)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x280e0d[_0x280e0d['OTHER_CLIENTS_EDITING']=0x1]=_0x51d5cf(0x134),_0x280e0d;}({});function Zt(_0x258e7e){const _0x28954d=_0x13a2b1;var _0x2c75a7;return!!((_0x2c75a7=_0x258e7e[_0x28954d(0x1a3)])!=null&&_0x2c75a7[_0x28954d(0x2d4)]);}const Qt=new Set([_0x345771['id']]),$t=new Set([_0x12ede7['id'],_0x2f3967['id'],_0x4e45c8['id'],_0x4d2e2c['id']]);function en(_0x54834a,_0x357a4f=Qt){const _0x51dbc0=_0x13a2b1;let _0x39c7bd=[];for(let _0x247f3a of _0x54834a){if(_0x357a4f[_0x51dbc0(0xeb)](_0x247f3a['id'])||Zt(_0x247f3a)){if(_0x39c7bd['length']>0x0)break;_0x39c7bd[_0x51dbc0(0x2c2)](_0x247f3a);break;}_0x39c7bd[_0x51dbc0(0x2c2)](_0x247f3a);}return _0x39c7bd;}function tn(_0x3b5dfd,_0x51199f,_0x479b4f,_0xc63a4c,_0x58f9a3){const _0x57921f=_0x13a2b1;let _0x3b7c9c=en(_0x3b5dfd),_0x4473cb=_0x58f9a3[_0x57921f(0x26b)](),_0x3de3d0=(_0x4473cb==null?void 0x0:_0x4473cb[_0x57921f(0x2e3)])??_0x57921f(0x166),_0x3d1b1c=(_0x4473cb==null?void 0x0:_0x4473cb[_0x57921f(0x1e6)])??_0x57921f(0x166);return{'changeset':{'unitID':_0x51199f,'type':_0x4eeba1(_0x479b4f[_0x57921f(0x28a)](_0x51199f)),'baseRev':_0xc63a4c[_0x57921f(0xdb)](_0x51199f),'revision':0x0,'userID':_0x3de3d0,'memberID':_0x3d1b1c,'mutations':_0x3b7c9c},'pendingMutations':_0x3b5dfd[_0x57921f(0x156)](_0x3b7c9c['length'])};}const nn=tn;function rn(_0x2dc2bd,_0x442a1c,_0x1cca36,_0x283ffc,_0x79a7f){const _0x1caaf3=_0x13a2b1;let _0x234d18=en(_0x2dc2bd,$t),_0xd93f8e=_0x79a7f['getCurrentUser'](),_0xfb9d59=(_0xd93f8e==null?void 0x0:_0xd93f8e[_0x1caaf3(0x2e3)])??_0x1caaf3(0x166),_0xafd594=(_0xd93f8e==null?void 0x0:_0xd93f8e[_0x1caaf3(0x1e6)])??_0x1caaf3(0x166);return{'changeset':{'unitID':_0x442a1c,'type':_0x4eeba1(_0x1cca36[_0x1caaf3(0x28a)](_0x442a1c)),'baseRev':_0x283ffc[_0x1caaf3(0xdb)](_0x442a1c),'revision':0x0,'userID':_0xfb9d59,'memberID':_0xafd594,'mutations':_0x234d18},'pendingMutations':_0x2dc2bd[_0x1caaf3(0x156)](_0x234d18[_0x1caaf3(0x197)])};}function an(_0x1805c7,_0x5b2567,_0x460c8b,_0x5d5059,_0x19e80b){const _0x5c5f1c=_0x13a2b1;let _0x5432dd=_0x1805c7[_0x5c5f1c(0x389)]((_0x1db5bc,_0x3e3ab1)=>{const _0x1098c4=_0x5c5f1c;let _0xf43df8=_0x1db5bc[_0x1db5bc[_0x1098c4(0x197)]-0x1],{id:_0x591f4a}=_0xf43df8??{},{id:_0x3a79bc,type:_0x43c538}=_0x3e3ab1,_0x1f5624=_0x3e3ab1[_0x1098c4(0x1a3)];if(_0x591f4a&&_0x591f4a!==_0x3a79bc)throw Error(_0x1098c4(0x360)+_0x591f4a+'\x20-\x20'+_0x3a79bc+'.');if(!_0xf43df8)return[{'id':_0x3a79bc,'type':_0x43c538,'params':{'unitId':_0x1f5624['unitId'],'textRanges':_0x1f5624[_0x1098c4(0x258)],'actions':_0x1f5624[_0x1098c4(0x261)]}}];let _0x14229a=_0xf43df8[_0x1098c4(0x1a3)];return on(_0x14229a,_0x1f5624)?[..._0x1db5bc[_0x1098c4(0x156)](0x0,-0x1),{..._0xf43df8,'id':_0x3a79bc,'type':_0x43c538,'params':{'unitId':_0x1f5624['unitId'],'textRanges':_0x1f5624[_0x1098c4(0x258)],'actions':_0x52fee6[_0x1098c4(0x1e3)](_0x14229a['actions'],_0x1f5624['actions'])}}]:[..._0x1db5bc,{'id':_0x3a79bc,'type':_0x43c538,'params':{'unitId':_0x1f5624[_0x1098c4(0x2f1)],'textRanges':_0x1f5624[_0x1098c4(0x258)],'actions':_0x1f5624[_0x1098c4(0x261)]}}];},[]),_0x3e23ba=_0x19e80b[_0x5c5f1c(0x26b)](),_0x1d4996=(_0x3e23ba==null?void 0x0:_0x3e23ba[_0x5c5f1c(0x2e3)])??_0x5c5f1c(0x166),_0x5b3014=(_0x3e23ba==null?void 0x0:_0x3e23ba[_0x5c5f1c(0x1e6)])??_0x5c5f1c(0x166);return{'changeset':{'unitID':_0x5b2567,'type':_0x4eeba1(_0x460c8b[_0x5c5f1c(0x28a)](_0x5b2567)),'baseRev':_0x5d5059[_0x5c5f1c(0xdb)](_0x5b2567),'revision':0x0,'userID':_0x1d4996,'memberID':_0x5b3014,'mutations':_0x5432dd},'pendingMutations':_0x1805c7[_0x5c5f1c(0x156)](_0x1805c7['length'])};}function on(_0x19de62,_0x58fae7){const _0x459536=_0x13a2b1;return!sn(_0x19de62)&&!sn(_0x58fae7)&&cn(_0x19de62[_0x459536(0x261)],_0x58fae7[_0x459536(0x261)]);}function sn(_0x25dff5){const _0x3612f3=_0x13a2b1;return _0x25dff5[_0x3612f3(0x16d)]!==void 0x0;}function cn(_0x2a383d,_0x134aac){return ln(_0x2a383d)&&ln(_0x134aac)&&!dn(_0x2a383d)&&!dn(_0x134aac)&&!un(_0x2a383d)&&!un(_0x134aac);}function ln(_0x2cb98f){const _0x1fe059=_0x13a2b1;return fn(_0x2cb98f)['some'](_0xab76c=>pn(_0xab76c)&&_0xab76c['et']===_0x1fe059(0xed));}function un(_0x56761f){const _0x5395d9=_0x13a2b1;return fn(_0x56761f)[_0x5395d9(0x311)](_0x2f168d=>Array[_0x5395d9(0x117)](_0x2f168d)||typeof _0x2f168d==_0x5395d9(0x2b1)||typeof _0x2f168d==_0x5395d9(0x19d));}function dn(_0xa129dd){const _0x241a39=_0x13a2b1;return fn(_0xa129dd)['some'](_0x1b6caf=>!pn(_0x1b6caf)||_0x1b6caf['et']!==_0x241a39(0xed)||!Array[_0x241a39(0x117)](_0x1b6caf['e'])?!0x1:_0x1b6caf['e'][_0x241a39(0x311)](_0x5af371=>!pn(_0x5af371)||!pn(_0x5af371[_0x241a39(0x377)])?!0x1:Object[_0x241a39(0x1c4)]['hasOwnProperty'][_0x241a39(0x24e)](_0x5af371[_0x241a39(0x377)],_0x241a39(0x26a))||Object[_0x241a39(0x1c4)]['hasOwnProperty']['call'](_0x5af371['body'],_0x241a39(0x23e))||Object['prototype'][_0x241a39(0x2c3)][_0x241a39(0x24e)](_0x5af371[_0x241a39(0x377)],_0x241a39(0x394))));}function fn(_0xf3188b){const _0x448a93=_0x13a2b1;if(!Array[_0x448a93(0x117)](_0xf3188b))return[];let _0x2806a1=_0xf3188b[_0x448a93(0x2e4)](_0x448a93(0x377))?_0xf3188b:_0xf3188b[_0x448a93(0x1d1)](_0x13bcdc=>Array[_0x448a93(0x117)](_0x13bcdc)&&_0x13bcdc[_0x448a93(0x2e4)](_0x448a93(0x377)));if(!Array['isArray'](_0x2806a1))return[];let _0x12cb1c=_0x2806a1[_0x448a93(0x1e1)](_0x448a93(0x377));return _0x12cb1c===-0x1?[]:_0x2806a1[_0x448a93(0x156)](_0x12cb1c+0x1);}function pn(_0x583b9a){const _0x1906b2=_0x13a2b1;return typeof _0x583b9a==_0x1906b2(0x2cb)&&!!_0x583b9a&&!Array['isArray'](_0x583b9a);}function mn(_0x47bd33,_0x4eec6e){const _0x4a18d2=_0x13a2b1;let _0x1a8cda=new _0x441c59(0x1);return setTimeout(()=>_0x1a8cda['next'](_0x4eec6e),_0x47bd33),_0x1a8cda[_0x4a18d2(0x36c)]()[_0x4a18d2(0x317)](_0x52c094(0x1));}var hn,gn,_n;let vn=function(_0x9fddea){const _0x4a4cf5=_0x13a2b1;return _0x9fddea[_0x4a4cf5(0x287)]=_0x4a4cf5(0x292),_0x9fddea['SYNCED']=_0x4a4cf5(0x378),_0x9fddea[_0x4a4cf5(0x141)]=_0x4a4cf5(0x2d9),_0x9fddea['AWAITING']=_0x4a4cf5(0x34f),_0x9fddea[_0x4a4cf5(0x357)]=_0x4a4cf5(0x1dc),_0x9fddea[_0x4a4cf5(0x15c)]=_0x4a4cf5(0x169),_0x9fddea[_0x4a4cf5(0x336)]=_0x4a4cf5(0x369),_0x9fddea[_0x4a4cf5(0x388)]=_0x4a4cf5(0x167),_0x9fddea;}({});const yn=0x4e20,bn=0x2bf20;var G=class{constructor(_0x2d9573,_0x184805,_0x1f0a99,_0x43c9c1,_0x3933e0,_0x4d9d98,_0x56cf74,_0x24acad,_0x582bb2){const _0x2fc0f1=_0x13a2b1;this[_0x2fc0f1(0xec)]=_0x2d9573,this[_0x2fc0f1(0xdf)]=_0x184805,this['_handler']=_0x3933e0,this[_0x2fc0f1(0x18f)]=_0x4d9d98,this['_undoRedoService']=_0x56cf74,this['_revisionService']=_0x24acad,this[_0x2fc0f1(0x1bd)]=_0x582bb2,z(this,'_awaitingChangeset',null),z(this,_0x2fc0f1(0x154),[]),this['_awaitingChangeset']=_0x1f0a99,this['_pendingMutations']=_0x43c9c1;}[_0x13a2b1(0x382)](_0x1b8650){const _0x4bc52c=_0x13a2b1;let _0x582605=this['_revisionService'][_0x4bc52c(0xdb)](this['unitID']);return _0x1b8650['revision']>_0x582605+0x1&&(this[_0x4bc52c(0x20b)][_0x4bc52c(0x1a7)]({'from':_0x582605,'to':_0x1b8650['revision']-0x1}),!0x0);}[_0x13a2b1(0x1eb)](_0x15fd1f){const _0x5a9318=_0x13a2b1;this[_0x5a9318(0x318)]['transformUndoRedo'](this[_0x5a9318(0xec)],_0x15fd1f);}[_0x13a2b1(0x184)](_0x335980){const _0x42eafd=_0x13a2b1;var _0x1908d0,_0x2f1015;(_0x1908d0=(_0x2f1015=this[_0x42eafd(0x20b)])[_0x42eafd(0x2b2)])==null||_0x1908d0[_0x42eafd(0x24e)](_0x2f1015,_0x335980);}['_prepareTransformSelections'](_0x4297f3){const _0x4d4784=_0x13a2b1;var _0x2058e9,_0x2d789e;return((_0x2058e9=(_0x2d789e=this[_0x4d4784(0x20b)])[_0x4d4784(0x13e)])==null?void 0x0:_0x2058e9[_0x4d4784(0x24e)](_0x2d789e,_0x4297f3))??null;}[_0x13a2b1(0x249)](_0x34a1f7){const _0x1be492=_0x13a2b1;var _0x17fbb7,_0xb917b8;return(_0x17fbb7=(_0xb917b8=this[_0x1be492(0x20b)])[_0x1be492(0x150)])==null?void 0x0:_0x17fbb7['call'](_0xb917b8,_0x34a1f7);}[_0x13a2b1(0x2de)](_0x4079fc){const _0x3521ac=_0x13a2b1;var _0x44bf35,_0xe24b97;return(_0x44bf35=(_0xe24b97=this[_0x3521ac(0x20b)])[_0x3521ac(0x1c0)])==null?void 0x0:_0x44bf35['call'](_0xe24b97,_0x4079fc);}[_0x13a2b1(0x124)](_0x45194a){const _0x2915c5=_0x13a2b1;var _0x4a4e19,_0x3c6814;return((_0x4a4e19=(_0x3c6814=this[_0x2915c5(0x20b)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x4a4e19[_0x2915c5(0x24e)](_0x3c6814,_0x45194a))??_0x45194a;}[_0x13a2b1(0x34e)](_0x542651){const _0xb47edf=_0x13a2b1;var _0x5f5d36,_0xeb2179;return((_0x5f5d36=(_0xeb2179=this['_handler'])[_0xb47edf(0x243)])==null?void 0x0:_0x5f5d36['call'](_0xeb2179,_0x542651))??_0x542651;}[_0x13a2b1(0x33b)](_0x28180a){const _0x340c72=_0x13a2b1;if(this[_0x340c72(0xdf)]===_0x574677['UNIVER_DOC']){let {unitID:_0xd555c7,mutations:_0x1ef6ea,memberID:_0x57b572}=_0x28180a,_0x45bf0a=_0x1ef6ea[_0x340c72(0x197)]>0x0?_0x1ef6ea[0x0][_0x340c72(0x1a3)][_0x340c72(0x258)]:[];if(Array['isArray'](_0x45bf0a)&&_0x45bf0a[_0x340c72(0x197)]>0x0){var _0x553ddb,_0x414faa;(_0x553ddb=(_0x414faa=this[_0x340c72(0x20b)])[_0x340c72(0x354)])==null||_0x553ddb[_0x340c72(0x24e)](_0x414faa,{'unitID':_0xd555c7,'memberID':_0x57b572,'textRanges':_0x45bf0a});}}}[_0x13a2b1(0x178)](){const _0xfd3d9d=_0x13a2b1;var _0x36f5a4;(_0x36f5a4=this[_0xfd3d9d(0x1bd)])==null||_0x36f5a4['updateOfflineData'](this['unitID'],this['type'],this[_0xfd3d9d(0x2b8)],this[_0xfd3d9d(0x154)]);}[_0x13a2b1(0x180)](){const _0x3b2ce0=_0x13a2b1;return this[_0x3b2ce0(0x204)][_0x3b2ce0(0xdb)](this['unitID']);}[_0x13a2b1(0x15e)](_0x2128bf){const _0x410adc=_0x13a2b1;return _0x2128bf[_0x410adc(0x3ac)]<=this[_0x410adc(0x180)]();}[_0x13a2b1(0x148)](_0x300d55){const _0x207baf=_0x13a2b1;let _0xedbd01=this[_0x207baf(0x2b8)];return!_0xedbd01||!_0xedbd01['sid']||_0xedbd01[_0x207baf(0x2ed)]===null||_0xedbd01['reqId']===void 0x0?!0x1:_0x300d55[_0x207baf(0xec)]===_0xedbd01['unitID']&&_0x300d55[_0x207baf(0x2df)]===_0xedbd01['sid']&&_0x300d55[_0x207baf(0x2ed)]===_0xedbd01[_0x207baf(0x2ed)];}[_0x13a2b1(0x140)](_0x497e70){const _0x3d9a7d=_0x13a2b1;let _0x67aa6=this[_0x3d9a7d(0x2b8)];return!(_0x67aa6!=null&&_0x67aa6[_0x3d9a7d(0x2df)])||_0x67aa6[_0x3d9a7d(0x2ed)]==null||!_0x497e70[_0x3d9a7d(0x2df)]||_0x497e70[_0x3d9a7d(0x2ed)]==null?!0x1:_0x497e70[_0x3d9a7d(0x2df)]===_0x67aa6[_0x3d9a7d(0x2df)]&&_0x497e70['reqId']===_0x67aa6['reqId'];}['_incrementRevisionNumber'](){const _0x2136f4=_0x13a2b1;this[_0x2136f4(0x204)][_0x2136f4(0x234)](this['unitID']);}[_0x13a2b1(0x309)](_0x383ada){const _0x46279b=_0x13a2b1;let _0x2feeba=this['_transformRemoteChangesetByIMECache'](_0x383ada);_0x2feeba=this[_0x46279b(0x34e)](_0x2feeba);let _0x3d6bc8=this[_0x46279b(0x366)](_0x2feeba),_0x4cb92d=_0x22bc3f(_0x2feeba[_0x46279b(0x288)],this[_0x46279b(0x18f)],{'fromCollab':!0x0});if(!_0x4cb92d[_0x46279b(0x158)])throw _0x3d6bc8==null||_0x3d6bc8[_0x46279b(0x18c)](),_0x4cb92d[_0x46279b(0x223)]instanceof Error?_0x4cb92d[_0x46279b(0x223)]:Error(_0x4cb92d[_0x46279b(0x223)]??_0x46279b(0x19c));_0x3d6bc8==null||_0x3d6bc8[_0x46279b(0x30b)](),this[_0x46279b(0x249)](_0x2feeba),this[_0x46279b(0x2de)](_0x2feeba),this['_transformUndoredo'](_0x383ada),this[_0x46279b(0x184)](_0x2feeba),this[_0x46279b(0x33b)](_0x2feeba),this['_incrementRevisionNumber']();}};let K=class extends G{constructor(_0x536e14,_0x14f319,_0x365852,_0x5a28f4,_0x27e0ba,_0x502014,_0x4867f9,_0xe5de60,_0xa95488,_0x462ea6){const _0x2b3c31=_0x13a2b1;super(_0x536e14,_0x14f319,null,[],_0x365852,_0x4867f9,_0x502014,_0x5a28f4,_0x462ea6),this[_0x2b3c31(0x248)]=_0x27e0ba,this[_0x2b3c31(0x2a9)]=_0xe5de60,this[_0x2b3c31(0x1df)]=_0xa95488,this[_0x2b3c31(0x11b)]=_0x462ea6,z(this,_0x2b3c31(0x116),_0x2b3c31(0x378));}['appendMutation'](_0x104c5a){const _0xe3df0c=_0x13a2b1;let _0x6b0f10=this[_0xe3df0c(0x248)][_0xe3df0c(0x362)](q,this[_0xe3df0c(0xec)],this[_0xe3df0c(0xdf)],[_0x104c5a],this['_handler']);return _0x6b0f10[_0xe3df0c(0x2e2)](),_0x6b0f10[_0xe3df0c(0x178)](),_0x6b0f10;}[_0x13a2b1(0x381)](_0x3cd420){const _0xa42965=_0x13a2b1;if(this[_0xa42965(0x15e)](_0x3cd420))return this;if(this[_0xa42965(0x382)](_0x3cd420))return this[_0xa42965(0x248)]['createInstance'](Q,this[_0xa42965(0xec)],this[_0xa42965(0xdf)],null,[],null,[_0x3cd420],this[_0xa42965(0x20b)],void 0x0);try{let _0x1b28d9=this['_transformService']['transformMutationsWithChangeset'](_0x3cd420,[_0xf51d6b]);if(_0x2984ce(_0x1b28d9)){let {c1Prime:_0x35f9e1}=_0x1b28d9;return this[_0xa42965(0x309)](_0x35f9e1),this;}throw _0x1b28d9[_0xa42965(0x223)];}catch(_0x1f5ba8){return this[_0xa42965(0x2a9)][_0xa42965(0x223)](_0x1f5ba8),this[_0xa42965(0x326)](!0x1);}}[_0x13a2b1(0x326)](_0x3c7cc5){const _0x3810bb=_0x13a2b1;return this[_0x3810bb(0x248)]['createInstance'](X,this[_0x3810bb(0xec)],this[_0x3810bb(0xdf)],null,[],this[_0x3810bb(0x20b)],_0x3c7cc5);}[_0x13a2b1(0x2c4)](_0x4591ca){const _0x136f19=_0x13a2b1;if(_0x4591ca[_0x136f19(0x3ac)]<=this['_getCurrentRevision']())return this;throw Error(_0x136f19(0x216));}['onRemoteRej'](){const _0x119893=_0x13a2b1;throw Error(_0x119893(0x385));}[_0x13a2b1(0x186)](){return this;}['toggleOffline'](){const _0x1fcc87=_0x13a2b1;return this['_injector'][_0x1fcc87(0x362)](Z,this[_0x1fcc87(0xec)],this['type'],null,[],this[_0x1fcc87(0x20b)]);}[_0x13a2b1(0x30f)](){return this;}['resend'](){const _0x555f40=_0x13a2b1;throw Error(_0x555f40(0x241));}['fetchMiss'](){const _0x5c7a44=_0x13a2b1;let _0x2905d8=this[_0x5c7a44(0x204)]['getCurrentRevOfUnit'](this['unitID']);return this[_0x5c7a44(0x20b)][_0x5c7a44(0x1a7)]({'from':_0x2905d8,'to':0x0}),this[_0x5c7a44(0x248)][_0x5c7a44(0x362)](Q,this[_0x5c7a44(0xec)],this['type'],null,[],null,[],this[_0x5c7a44(0x20b)],void 0x0);}};K=H([V(0x3,_0x4b5aa3(_0x13f2dc)),V(0x4,_0x4b5aa3(_0x34ebb2)),V(0x5,_0x10b774),V(0x6,_0x33e7ca),V(0x7,_0x13ba11),V(0x8,_0x4348d7),V(0x9,_0x387f7a(U))],K);let q=hn=class extends G{constructor(_0x36d12d,_0x1f7268,_0x3e43d4,_0x342fb3,_0x5537e4,_0xc5a493,_0x4c2383,_0x3fe729,_0x19ccb9,_0x2de24b,_0x55f7a5,_0x337f43,_0x302b80,_0x3b5a91){const _0x49802e=_0x13a2b1;super(_0x36d12d,_0x1f7268,null,_0x3e43d4,_0x342fb3,_0x19ccb9,_0x302b80,_0xc5a493,_0x3b5a91),this['_injector']=_0x5537e4,this[_0x49802e(0xdd)]=_0x4c2383,this[_0x49802e(0x2a9)]=_0x3fe729,this[_0x49802e(0x3a3)]=_0x2de24b,this['_transformService']=_0x55f7a5,this['_univerInstanceService']=_0x337f43,z(this,_0x49802e(0x116),_0x49802e(0x2d9)),z(this,'_scheduleCompleteTimestamp',null),z(this,'_sendingTimer',null);}['appendMutation'](_0x2ae0e6){const _0x3bb22b=_0x13a2b1;return this[_0x3bb22b(0x154)][_0x3bb22b(0x2c2)](_0x2ae0e6),this[_0x3bb22b(0x178)](),this;}[_0x13a2b1(0x381)](_0x4b6554){const _0x32c09b=_0x13a2b1;if(this[_0x32c09b(0x15e)](_0x4b6554))return this;if(this[_0x32c09b(0x382)](_0x4b6554))return this[_0x32c09b(0x386)](),this[_0x32c09b(0x248)]['createInstance'](Q,this[_0x32c09b(0xec)],this[_0x32c09b(0xdf)],null,this[_0x32c09b(0x154)],null,[_0x4b6554],this[_0x32c09b(0x20b)],void 0x0);try{let _0x35a23f=this[_0x32c09b(0x1df)][_0x32c09b(0x1c1)](_0x4b6554,this['_pendingMutations']);if(_0x2984ce(_0x35a23f)){let {c1Prime:_0x339ce2,m2Prime:_0x5512b3}=_0x35a23f;this['_executeRemoteChangeset'](_0x339ce2);let _0x5a4ffb=this['_injector'][_0x32c09b(0x362)](hn,this['unitID'],this[_0x32c09b(0xdf)],_0x5512b3,this[_0x32c09b(0x20b)]);this[_0x32c09b(0x386)]();let _0x5b3640=new Date()[_0x32c09b(0x262)](),_0x4eca1a=this[_0x32c09b(0x250)]?Math[_0x32c09b(0x2e0)](this[_0x32c09b(0x250)]-_0x5b3640,0x0):this[_0x32c09b(0x2c1)]();return _0x5a4ffb['_schedule'](_0x4eca1a),_0x5a4ffb;}throw _0x35a23f['error'];}catch(_0xc6d7d){return this['_logService'][_0x32c09b(0x223)](_0xc6d7d),this[_0x32c09b(0x326)](!0x1);}}[_0x13a2b1(0x2c4)](_0x537190){const _0x2ece1a=_0x13a2b1;if(_0x537190['revision']<=this[_0x2ece1a(0x180)]())return this;throw Error(_0x2ece1a(0x14c));}[_0x13a2b1(0x32d)](){const _0x229e5c=_0x13a2b1;throw Error(_0x229e5c(0x1c3));}[_0x13a2b1(0x186)](){return this;}[_0x13a2b1(0x10d)](){const _0x298afb=_0x13a2b1;return this[_0x298afb(0x386)](),this[_0x298afb(0x248)][_0x298afb(0x362)](Z,this[_0x298afb(0xec)],this[_0x298afb(0xdf)],null,this[_0x298afb(0x154)],this[_0x298afb(0x20b)]);}[_0x13a2b1(0x30f)](){return this;}[_0x13a2b1(0x2e2)](_0x4dac68){const _0x43ffe3=_0x13a2b1;let _0x11e6d6=_0x4dac68??this[_0x43ffe3(0x2c1)]();this['_scheduleCompleteTimestamp']=new Date()[_0x43ffe3(0x262)]()+_0x11e6d6,this[_0x43ffe3(0x28b)]=setTimeout(()=>{const _0x4c8ce0=_0x43ffe3;this['_clearScheduledTask']();let _0x135d0c=null;switch(this[_0x4c8ce0(0xdf)]){case _0x574677[_0x4c8ce0(0x1ef)]:_0x135d0c=tn(this['_pendingMutations'],this[_0x4c8ce0(0xec)],this[_0x4c8ce0(0x32b)],this[_0x4c8ce0(0x204)],this[_0x4c8ce0(0xdd)]);break;case _0x574677[_0x4c8ce0(0x113)]:_0x135d0c=this[_0x4c8ce0(0x154)][_0x4c8ce0(0x310)](_0x244aa0=>_0x244aa0['id']===_0xff135e['id'])?an(this[_0x4c8ce0(0x154)],this[_0x4c8ce0(0xec)],this[_0x4c8ce0(0x32b)],this[_0x4c8ce0(0x204)],this[_0x4c8ce0(0xdd)]):tn(this[_0x4c8ce0(0x154)],this[_0x4c8ce0(0xec)],this[_0x4c8ce0(0x32b)],this[_0x4c8ce0(0x204)],this[_0x4c8ce0(0xdd)]);break;case _0x574677[_0x4c8ce0(0x36b)]:_0x135d0c=rn(this[_0x4c8ce0(0x154)],this['unitID'],this['_univerInstanceService'],this[_0x4c8ce0(0x204)],this[_0x4c8ce0(0xdd)]);break;case _0x574677[_0x4c8ce0(0x329)]:_0x135d0c=nn(this[_0x4c8ce0(0x154)],this['unitID'],this[_0x4c8ce0(0x32b)],this[_0x4c8ce0(0x204)],this[_0x4c8ce0(0xdd)]);break;case _0x574677[_0x4c8ce0(0x15a)]:_0x135d0c=tn(this[_0x4c8ce0(0x154)],this[_0x4c8ce0(0xec)],this[_0x4c8ce0(0x32b)],this[_0x4c8ce0(0x204)],this[_0x4c8ce0(0xdd)]);break;case _0x574677[_0x4c8ce0(0x299)]:_0x135d0c=tn(this[_0x4c8ce0(0x154)],this[_0x4c8ce0(0xec)],this[_0x4c8ce0(0x32b)],this['_revisionService'],this[_0x4c8ce0(0xdd)]);break;default:throw Error(_0x4c8ce0(0x132)+this['type']+_0x4c8ce0(0x1d4));}let {changeset:_0x449f37,pendingMutations:_0x4c27db}=_0x135d0c;this[_0x4c8ce0(0x20b)][_0x4c8ce0(0x391)](_0x449f37);let _0x2654d3=_0x4c27db['length']?this[_0x4c8ce0(0x248)][_0x4c8ce0(0x362)](Y,this[_0x4c8ce0(0xec)],this['type'],_0x449f37,_0x4c27db,this[_0x4c8ce0(0x20b)],void 0x0):this['_injector'][_0x4c8ce0(0x362)](J,this[_0x4c8ce0(0xec)],this[_0x4c8ce0(0xdf)],_0x449f37,this[_0x4c8ce0(0x20b)],void 0x0);_0x2654d3[_0x4c8ce0(0x178)](),this[_0x4c8ce0(0x20b)][_0x4c8ce0(0xf9)](this,_0x2654d3);},_0x11e6d6);}[_0x13a2b1(0x2c1)](){const _0x2dd940=_0x13a2b1;let _0x439d84=this['_configService'][_0x2dd940(0x327)](R);return(_0x439d84==null?void 0x0:_0x439d84[_0x2dd940(0x29d)])??0x7d0;}[_0x13a2b1(0x213)](){const _0x12542f=_0x13a2b1;throw Error(_0x12542f(0x333));}[_0x13a2b1(0x386)](){const _0x2cf207=_0x13a2b1;this[_0x2cf207(0x28b)]!=null&&(clearTimeout(this[_0x2cf207(0x28b)]),this[_0x2cf207(0x28b)]=null);}[_0x13a2b1(0x326)](_0x29ecb9){const _0x300508=_0x13a2b1;return this[_0x300508(0x386)](),this[_0x300508(0x248)]['createInstance'](X,this[_0x300508(0xec)],this[_0x300508(0xdf)],null,this[_0x300508(0x154)],this[_0x300508(0x20b)],_0x29ecb9);}};q=hn=H([V(0x4,_0x4b5aa3(_0x34ebb2)),V(0x5,_0x4b5aa3(_0x13f2dc)),V(0x6,_0x4b5aa3(_0x458d04)),V(0x7,_0x13ba11),V(0x8,_0x33e7ca),V(0x9,_0xee80fd),V(0xa,_0x4348d7),V(0xb,_0x95142),V(0xc,_0x10b774),V(0xd,_0x387f7a(U))],q);let J=gn=class extends G{constructor(_0x4b6d0a,_0x50ecd9,_0x54adca,_0xb00a87,_0x38ef83,_0x3cd35a,_0x17db06,_0x3cd2df,_0x252ca4,_0x227724,_0x4f79a0,_0xf402cd){const _0xb34a2f=_0x13a2b1;super(_0x4b6d0a,_0x50ecd9,_0x54adca,[],_0xb00a87,_0x3cd2df,_0x4f79a0,_0x17db06,_0xf402cd),this['_injector']=_0x3cd35a,this[_0xb34a2f(0x2a9)]=_0x252ca4,this[_0xb34a2f(0x1df)]=_0x227724,z(this,_0xb34a2f(0x116),_0xb34a2f(0x34f)),z(this,_0xb34a2f(0x291),0x0),z(this,_0xb34a2f(0x2bc),0x0),z(this,_0xb34a2f(0x33e),void 0x0),z(this,_0xb34a2f(0x19a),void 0x0),_0x38ef83&&(this[_0xb34a2f(0x291)]=_0x38ef83['timeout'],this[_0xb34a2f(0x2bc)]=_0x38ef83[_0xb34a2f(0x21c)],this[_0xb34a2f(0x160)](_0x38ef83[_0xb34a2f(0x2ef)]));}[_0x13a2b1(0x20a)](_0x4598ce){const _0x4831f7=_0x13a2b1;this[_0x4831f7(0x386)]();let _0x473207=this[_0x4831f7(0x248)][_0x4831f7(0x362)](Y,this[_0x4831f7(0xec)],this['type'],this[_0x4831f7(0x2b8)],[_0x4598ce],this[_0x4831f7(0x20b)],this[_0x4831f7(0x1f7)]());return _0x473207[_0x4831f7(0x178)](),_0x473207;}['onRemoteChangeset'](_0x5d7ebe){const _0x210939=_0x13a2b1;if(this[_0x210939(0x148)](_0x5d7ebe))return this[_0x210939(0x2c4)](_0x5d7ebe);if(this[_0x210939(0x15e)](_0x5d7ebe))return this;if(this['_checkMissing'](_0x5d7ebe))return this[_0x210939(0x386)](),this[_0x210939(0x248)][_0x210939(0x362)](Q,this[_0x210939(0xec)],this[_0x210939(0xdf)],this['_awaitingChangeset'],[],null,[_0x5d7ebe],this[_0x210939(0x20b)],this[_0x210939(0x1f7)]());try{let _0x1bd5b3=this[_0x210939(0x1df)][_0x210939(0x319)]([_0x5d7ebe],[this[_0x210939(0x2b8)]],!0x1);if(_0xba84eb(_0x1bd5b3)){let {c1Prime:_0x5d88d5,c2Prime:_0x454f2a}=_0x1bd5b3;this['_executeRemoteChangeset'](_0x5d88d5[0x0]),_0x454f2a[0x0]['baseRev']=this[_0x210939(0x180)](),this['_clearScheduledTask']();let _0x38b540=this['_injector'][_0x210939(0x362)](gn,this[_0x210939(0xec)],this[_0x210939(0xdf)],_0x454f2a[0x0],this[_0x210939(0x20b)],this[_0x210939(0x1f7)]());return _0x38b540[_0x210939(0x178)](),_0x38b540;}throw _0x1bd5b3[_0x210939(0x223)];}catch(_0x57465d){return this[_0x210939(0x2a9)][_0x210939(0x223)](_0x57465d),this[_0x210939(0x326)](!0x1);}}[_0x13a2b1(0x2c4)](_0x23a382){const _0x18fd61=_0x13a2b1;let _0x4fb40d=this[_0x18fd61(0x204)][_0x18fd61(0xdb)](this[_0x18fd61(0xec)]);if(_0x23a382[_0x18fd61(0x3ac)]<=_0x4fb40d){if(this['_isAckOfAwaitingChangeset'](_0x23a382)){this[_0x18fd61(0x386)]();let _0x77927e=this[_0x18fd61(0x248)][_0x18fd61(0x362)](K,this[_0x18fd61(0xec)],this['type'],this[_0x18fd61(0x20b)]);return _0x77927e['_updateLocalCache'](),_0x77927e;}return this['_logService'][_0x18fd61(0x195)](_0x18fd61(0x2d1),'ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x23a382['revision']+_0x18fd61(0x2f6)+_0x4fb40d+'.'),this;}if(this[_0x18fd61(0x386)](),this[_0x18fd61(0x382)](_0x23a382))return this[_0x18fd61(0x248)]['createInstance'](Q,this['unitID'],this[_0x18fd61(0xdf)],this[_0x18fd61(0x2b8)],[],_0x23a382['revision'],[],this[_0x18fd61(0x20b)],void 0x0);this[_0x18fd61(0x16c)]();let _0x4980ba=this[_0x18fd61(0x248)][_0x18fd61(0x362)](K,this[_0x18fd61(0xec)],this[_0x18fd61(0xdf)],this['_handler']);return _0x4980ba[_0x18fd61(0x178)](),_0x4980ba;}['onRemoteRej'](_0x5e6dbd){const _0x470dc9=_0x13a2b1;return this[_0x470dc9(0x326)](!!(_0x5e6dbd!=null&&_0x5e6dbd[_0x470dc9(0x119)]));}[_0x13a2b1(0x186)](_0x426098){const _0x94a821=_0x13a2b1;var _0x1c2298;return _0x426098[_0x94a821(0x2ed)]===((_0x1c2298=this[_0x94a821(0x2b8)])==null?void 0x0:_0x1c2298[_0x94a821(0x2ed)])?this[_0x94a821(0x2bc)]>bn?this[_0x94a821(0x10d)]():(this[_0x94a821(0x160)](mn(this[_0x94a821(0x291)],{'reqId':_0x426098[_0x94a821(0x2ed)]})),this):this;}['toggleOffline'](){const _0x50b83a=_0x13a2b1;return this[_0x50b83a(0x386)](),this[_0x50b83a(0x248)][_0x50b83a(0x362)](Z,this[_0x50b83a(0xec)],this['type'],this[_0x50b83a(0x2b8)],[],this[_0x50b83a(0x20b)]);}[_0x13a2b1(0x30f)](){return this;}[_0x13a2b1(0x213)](){const _0x5e7e75=_0x13a2b1;this[_0x5e7e75(0x20b)][_0x5e7e75(0x391)](this[_0x5e7e75(0x2b8)]);}['_onConflict'](_0x22aec3){const _0x4d8895=_0x13a2b1;return this[_0x4d8895(0x386)](),this['_injector']['createInstance'](X,this[_0x4d8895(0xec)],this[_0x4d8895(0xdf)],this[_0x4d8895(0x2b8)],[],this[_0x4d8895(0x20b)],_0x22aec3);}[_0x13a2b1(0x160)](_0x44f315){const _0x41f9cb=_0x13a2b1;var _0x594014;(_0x594014=this['_sender'])==null||_0x594014[_0x41f9cb(0x19f)](),this[_0x41f9cb(0x33e)]=_0x44f315,this[_0x41f9cb(0x19a)]=_0x44f315==null?void 0x0:_0x44f315[_0x41f9cb(0x31e)](({reqId:_0x480310})=>this['_runScheduledResend'](_0x480310));}[_0x13a2b1(0x279)](_0x301b4a){const _0x45db80=_0x13a2b1;var _0x354287;_0x301b4a===((_0x354287=this[_0x45db80(0x2b8)])==null?void 0x0:_0x354287['reqId'])&&(this[_0x45db80(0x33e)]=void 0x0,this[_0x45db80(0x213)](),this[_0x45db80(0x291)]=this[_0x45db80(0x291)]===0x0?0x3e8:Math['min'](this['_resendTimeout']*0x2,yn),this['_maxTotalRetryTimeout']+=this['_resendTimeout']);}[_0x13a2b1(0x1f7)](){const _0x4c2d6d=_0x13a2b1;return{'timer':this[_0x4c2d6d(0x33e)],'timeout':this[_0x4c2d6d(0x291)],'total':this[_0x4c2d6d(0x2bc)]};}['_clearScheduledTask'](){const _0x45a90d=_0x13a2b1;var _0x4f622a;(_0x4f622a=this[_0x45a90d(0x19a)])==null||_0x4f622a[_0x45a90d(0x19f)]();}};J=gn=H([V(0x5,_0x4b5aa3(_0x34ebb2)),V(0x6,_0x4b5aa3(_0x13f2dc)),V(0x7,_0x33e7ca),V(0x8,_0x13ba11),V(0x9,_0x4348d7),V(0xa,_0x10b774),V(0xb,_0x387f7a(U))],J);let Y=_n=class extends G{constructor(_0x234bea,_0x394fc9,_0xab5f09,_0x2184ea,_0xe1adef,_0x64b886,_0x52d711,_0x417ef7,_0x314792,_0x1ef4dc,_0x2c5487,_0x1590a8,_0x4c029b){const _0x562aec=_0x13a2b1;super(_0x234bea,_0x394fc9,_0xab5f09,_0x2184ea,_0xe1adef,_0x314792,_0x1590a8,_0x417ef7,_0x4c029b),this[_0x562aec(0x248)]=_0x52d711,this[_0x562aec(0x2a9)]=_0x1ef4dc,this['_transformService']=_0x2c5487,this[_0x562aec(0x11b)]=_0x4c029b,z(this,_0x562aec(0x116),'awaiting_with_pending'),z(this,_0x562aec(0x291),0x0),z(this,_0x562aec(0x2bc),0x0),z(this,_0x562aec(0x33e),void 0x0),z(this,_0x562aec(0x19a),void 0x0),_0x64b886&&(this[_0x562aec(0x291)]=_0x64b886['timeout'],this[_0x562aec(0x2bc)]=_0x64b886['total'],this[_0x562aec(0x160)](_0x64b886[_0x562aec(0x2ef)]));}['appendMutation'](_0x5d3e23){const _0x3960e8=_0x13a2b1;return this[_0x3960e8(0x154)]['push'](_0x5d3e23),this;}['onRemoteChangeset'](_0x11fda6){const _0x120c6f=_0x13a2b1;if(this[_0x120c6f(0x148)](_0x11fda6))return this[_0x120c6f(0x2c4)](_0x11fda6);if(this[_0x120c6f(0x15e)](_0x11fda6))return this;if(this[_0x120c6f(0x382)](_0x11fda6))return this[_0x120c6f(0x386)](),this['_injector']['createInstance'](Q,this['unitID'],this[_0x120c6f(0xdf)],this[_0x120c6f(0x2b8)],this[_0x120c6f(0x154)],null,[_0x11fda6],this[_0x120c6f(0x20b)],this[_0x120c6f(0x1f7)]());try{let _0x4d15d6=this[_0x120c6f(0x1df)][_0x120c6f(0x319)]([_0x11fda6],[this[_0x120c6f(0x2b8)]],!0x1);if(_0xba84eb(_0x4d15d6)){let {c1Prime:_0x590aaf,c2Prime:_0x270f90}=_0x4d15d6,_0x1229b4=this[_0x120c6f(0x1df)]['transformMutationsWithChangeset'](_0x590aaf[0x0],this[_0x120c6f(0x154)]);if(_0x2984ce(_0x1229b4)){let {c1Prime:_0xfcaac6,m2Prime:_0x429d81}=_0x1229b4;return this[_0x120c6f(0x309)](_0xfcaac6),_0x270f90[0x0][_0x120c6f(0x17a)]=this[_0x120c6f(0x180)](),this['_clearScheduledTask'](),this['_injector'][_0x120c6f(0x362)](_n,this[_0x120c6f(0xec)],this['type'],_0x270f90[0x0],_0x429d81,this['_handler'],this[_0x120c6f(0x1f7)]());}throw _0x1229b4['error'];}throw _0x4d15d6[_0x120c6f(0x223)];}catch(_0x340391){return this[_0x120c6f(0x2a9)][_0x120c6f(0x223)](_0x340391),this[_0x120c6f(0x326)](!0x1);}}[_0x13a2b1(0x2c4)](_0x3439f2){const _0x252916=_0x13a2b1;let _0x2417c4=this[_0x252916(0x180)]();if(_0x3439f2[_0x252916(0x3ac)]<=_0x2417c4){if(this[_0x252916(0x140)](_0x3439f2)){this[_0x252916(0x386)]();let _0x416e84=this[_0x252916(0x248)][_0x252916(0x362)](q,this[_0x252916(0xec)],this[_0x252916(0xdf)],this[_0x252916(0x154)],this['_handler']);return _0x416e84['_schedule'](),_0x416e84[_0x252916(0x178)](),_0x416e84;}return this[_0x252916(0x2a9)]['debug'](_0x252916(0x19b),_0x252916(0xf4)+_0x3439f2[_0x252916(0x3ac)]+_0x252916(0x2f6)+_0x2417c4+'.'),this;}if(this['_clearScheduledTask'](),this['_checkMissing'](_0x3439f2))return this[_0x252916(0x248)][_0x252916(0x362)](Q,this['unitID'],this[_0x252916(0xdf)],this[_0x252916(0x2b8)],this['_pendingMutations'],_0x3439f2[_0x252916(0x3ac)],[],this['_handler'],void 0x0);this[_0x252916(0x16c)]();let _0xb892f4=this[_0x252916(0x248)][_0x252916(0x362)](q,this['unitID'],this[_0x252916(0xdf)],this[_0x252916(0x154)],this['_handler']);return _0xb892f4['_schedule'](),_0xb892f4[_0x252916(0x178)](),_0xb892f4;}[_0x13a2b1(0x32d)](_0x50f856){const _0x678de2=_0x13a2b1;return this[_0x678de2(0x326)](!!(_0x50f856!=null&&_0x50f856[_0x678de2(0x119)]));}[_0x13a2b1(0x186)](_0xb766e2){const _0x3ec5f0=_0x13a2b1;var _0x450896;return _0xb766e2['reqId']===((_0x450896=this[_0x3ec5f0(0x2b8)])==null?void 0x0:_0x450896[_0x3ec5f0(0x2ed)])?this[_0x3ec5f0(0x2bc)]>bn?this['toggleOffline']():(this['_subscribeResendTimer'](mn(this['_resendTimeout'],{'reqId':_0xb766e2[_0x3ec5f0(0x2ed)]})),this):this;}[_0x13a2b1(0x10d)](){const _0x2f891f=_0x13a2b1;return this[_0x2f891f(0x386)](),this[_0x2f891f(0x248)][_0x2f891f(0x362)](Z,this['unitID'],this[_0x2f891f(0xdf)],this[_0x2f891f(0x2b8)],this['_pendingMutations'],this[_0x2f891f(0x20b)]);}['toggleOnline'](){return this;}[_0x13a2b1(0x213)](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}[_0x13a2b1(0x326)](_0x58f3e5){const _0x11b5fa=_0x13a2b1;return this[_0x11b5fa(0x386)](),this['_injector']['createInstance'](X,this[_0x11b5fa(0xec)],this[_0x11b5fa(0xdf)],null,this[_0x11b5fa(0x154)],this[_0x11b5fa(0x20b)],_0x58f3e5);}[_0x13a2b1(0x160)](_0x37bc54){const _0x2435f2=_0x13a2b1;var _0x2da9ae;(_0x2da9ae=this['_sender'])==null||_0x2da9ae[_0x2435f2(0x19f)](),this[_0x2435f2(0x33e)]=_0x37bc54,this['_sender']=_0x37bc54==null?void 0x0:_0x37bc54[_0x2435f2(0x31e)](({reqId:_0x12c67d})=>this[_0x2435f2(0x279)](_0x12c67d));}['_runScheduledResend'](_0x4b9325){const _0x1e5be6=_0x13a2b1;var _0x115dfd;_0x4b9325===((_0x115dfd=this[_0x1e5be6(0x2b8)])==null?void 0x0:_0x115dfd[_0x1e5be6(0x2ed)])&&(this[_0x1e5be6(0x33e)]=void 0x0,this['resend'](),this[_0x1e5be6(0x291)]=this[_0x1e5be6(0x291)]===0x0?0x3e8:Math[_0x1e5be6(0x2b3)](this['_resendTimeout']*0x2,yn),this['_maxTotalRetryTimeout']+=this[_0x1e5be6(0x291)]);}[_0x13a2b1(0x1f7)](){const _0x1e8111=_0x13a2b1;return{'timer':this['_resendTimer'],'timeout':this[_0x1e8111(0x291)],'total':this[_0x1e8111(0x2bc)]};}[_0x13a2b1(0x386)](){const _0x1ac3a3=_0x13a2b1;var _0x27256d;(_0x27256d=this[_0x1ac3a3(0x19a)])==null||_0x27256d['unsubscribe']();}};Y=_n=H([V(0x6,_0x4b5aa3(_0x34ebb2)),V(0x7,_0x4b5aa3(_0x13f2dc)),V(0x8,_0x33e7ca),V(0x9,_0x13ba11),V(0xa,_0x4348d7),V(0xb,_0x10b774),V(0xc,_0x387f7a(U))],Y);let X=class extends G{constructor(_0x301c74,_0x569105,_0x3d95b7,_0x12507b,_0x3b4b13,_0x5aab19=!0x1,_0x36ce24,_0x30312a,_0x145829,_0x565d1a,_0xf13644,_0x24e228,_0x3f761c,_0x31eb45,_0x5216c5){const _0x43ca13=_0x13a2b1;super(_0x301c74,_0x569105,_0x3d95b7,_0x12507b,_0x3b4b13,_0x30312a,_0x145829,_0x565d1a,_0x5216c5),this[_0x43ca13(0x217)]=_0x5aab19,this['_permissionService']=_0x36ce24,this[_0x43ca13(0x2a6)]=_0xf13644,this['_userManagerService']=_0x24e228,this[_0x43ca13(0x2a9)]=_0x3f761c,this[_0x43ca13(0x101)]=_0x31eb45,this[_0x43ca13(0x11b)]=_0x5216c5,z(this,_0x43ca13(0x116),_0x43ca13(0x369)),this[_0x43ca13(0x365)](),this[_0x43ca13(0xef)](),this[_0x43ca13(0x190)]()[_0x43ca13(0xe9)](_0x1e4266=>this[_0x43ca13(0x2a9)][_0x43ca13(0x223)](_0x1e4266));}[_0x13a2b1(0x20a)](){return this;}[_0x13a2b1(0x381)](){return this;}[_0x13a2b1(0x2c4)](){return this;}[_0x13a2b1(0x32d)](){return this;}[_0x13a2b1(0x186)](){return this;}[_0x13a2b1(0x10d)](){return this;}[_0x13a2b1(0x30f)](){return this;}[_0x13a2b1(0x213)](){const _0x588722=_0x13a2b1;throw Error(_0x588722(0x19e));}async['_prepareConflictRecovery'](){const _0x3de4b0=_0x13a2b1;var _0x5a046b,_0x500913,_0x6770f0;let _0x28e3ee=((_0x5a046b=this[_0x3de4b0(0xdd)][_0x3de4b0(0x26b)]())==null?void 0x0:_0x5a046b['userID'])??'';await((_0x500913=this[_0x3de4b0(0x1bd)])==null||(_0x6770f0=_0x500913[_0x3de4b0(0x20c)])==null?void 0x0:_0x6770f0[_0x3de4b0(0x24e)](_0x500913,this[_0x3de4b0(0xec)],_0x3de4b0(0x369),_0x28e3ee)[_0x3de4b0(0xe9)](()=>void 0x0));try{var _0xce644;await((_0xce644=this[_0x3de4b0(0x1bd)])==null?void 0x0:_0xce644[_0x3de4b0(0x2cd)](this[_0x3de4b0(0xec)],_0x28e3ee));}catch{this[_0x3de4b0(0x101)]['emitEvent']({'id':'CONFLICT_CACHE_CLEAR_FAILED','unitID':this[_0x3de4b0(0xec)],'userId':_0x28e3ee});return;}this[_0x3de4b0(0x284)]();}[_0x13a2b1(0xef)](){const _0x468a7a=_0x13a2b1;this['_collaborationUIEventService'][_0x468a7a(0x13d)]({'id':_0x468a7a(0x2ce)});}['_showConflictNotification'](){const _0x9abae1=_0x13a2b1;this[_0x9abae1(0x217)]?this[_0x9abae1(0x101)]['emitEvent']({'id':_0x9abae1(0x28c)}):this[_0x9abae1(0x101)][_0x9abae1(0x13d)]({'id':_0x9abae1(0x336)});}[_0x13a2b1(0x365)](){const _0x23ff3d=_0x13a2b1;this['_permissionService'][_0x23ff3d(0x23f)](new _0x534ed6(this[_0x23ff3d(0xec)])['id'],!0x1);}};X=H([V(0x6,_0x4b5aa3(_0x18f67c)),V(0x7,_0x33e7ca),V(0x8,_0x10b774),V(0x9,_0x4b5aa3(_0x13f2dc)),V(0xa,_0x4b5aa3(_0x413ac2)),V(0xb,_0x4b5aa3(_0x458d04)),V(0xc,_0x13ba11),V(0xd,_0x4b5aa3(B)),V(0xe,_0x387f7a(U))],X);let Z=class extends G{constructor(_0x12bb07,_0x356d33,_0x50a737,_0xbc134f,_0x3a8008,_0x3cbf5a,_0x4a44ff,_0x26a95e,_0x3062fb,_0x2ab7f9){const _0x81b8ec=_0x13a2b1;super(_0x12bb07,_0x356d33,_0x50a737,_0xbc134f,_0x3a8008,_0x26a95e,_0x3062fb,_0x4a44ff,_0x2ab7f9),this[_0x81b8ec(0x248)]=_0x3cbf5a,z(this,'status','offline');}[_0x13a2b1(0x20a)](_0x36b062){const _0xaf0572=_0x13a2b1;return this[_0xaf0572(0x154)][_0xaf0572(0x2c2)](_0x36b062),this[_0xaf0572(0x178)](),this;}[_0x13a2b1(0x381)](_0x50d1c4){const _0x98585d=_0x13a2b1;throw Error(_0x98585d(0x232));}['onRemoteAck'](){const _0x55ce0a=_0x13a2b1;throw Error(_0x55ce0a(0x37b));}[_0x13a2b1(0x32d)](){throw Error('[OfflineState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x13a2b1(0x10d)](){return this;}[_0x13a2b1(0x30f)](){const _0x770cb8=_0x13a2b1;let {_injector:_0x43e9f5,_pendingMutations:_0xd207a6,_awaitingChangeset:_0x4f0556,unitID:_0x2a0d8d,_handler:_0x118241,type:_0x184224}=this,_0x13a809=xn(_0x43e9f5,_0x2a0d8d,_0x184224,_0x4f0556,_0xd207a6,_0x118241);return _0x13a809 instanceof q?_0x13a809['_schedule']():(_0x13a809 instanceof Y||_0x13a809 instanceof J)&&_0x13a809[_0x770cb8(0x213)](),_0x13a809;}[_0x13a2b1(0x213)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};Z=H([V(0x5,_0x4b5aa3(_0x34ebb2)),V(0x6,_0x4b5aa3(_0x13f2dc)),V(0x7,_0x33e7ca),V(0x8,_0x10b774),V(0x9,_0x387f7a(U))],Z);let Q=class extends G{constructor(_0x8c891e,_0x349a36,_0x6e6dbb,_0x477a62,_0x4c487d,_0x389d7f,_0x2d9bef,_0x14781b,_0x49d7c1,_0x316e99,_0x147496,_0x2d93e5,_0x8e2451,_0x1412f6,_0x3519c9){const _0x33334b=_0x13a2b1;super(_0x8c891e,_0x349a36,_0x6e6dbb,_0x477a62,_0x2d9bef,_0x2d93e5,_0x8e2451,_0x316e99,_0x3519c9),this['_acknowledgedAwaitingRevision']=_0x4c487d,this[_0x33334b(0x1bc)]=_0x389d7f,this['_resendSchedule']=_0x14781b,this[_0x33334b(0x248)]=_0x49d7c1,this['_logService']=_0x147496,this[_0x33334b(0x1df)]=_0x1412f6,this['localCacheService']=_0x3519c9,z(this,_0x33334b(0x116),_0x33334b(0x169));}[_0x13a2b1(0x3a5)](_0x334717){const _0x468d73=_0x13a2b1;try{if(this[_0x468d73(0x1ad)](_0x334717)[_0x468d73(0x315)])throw Error(_0x468d73(0x1aa));if(this[_0x468d73(0x1ad)]([...this[_0x468d73(0x1bc)]]['sort']((_0x1499cd,_0x119c2c)=>_0x1499cd[_0x468d73(0x3ac)]-_0x119c2c[_0x468d73(0x3ac)]))[_0x468d73(0x315)])return this['_queuedRemoteChangesets']=[],this['_updateLocalCache'](),this[_0x468d73(0x20b)][_0x468d73(0x1a7)]({'from':this[_0x468d73(0x180)](),'to':0x0}),this;let _0x30b4c9=this[_0x468d73(0x2b8)],_0x42f46b=this[_0x468d73(0x154)],_0x7bdd5a;if(_0x30b4c9&&_0x42f46b[_0x468d73(0x197)]!==0x0)_0x7bdd5a=this[_0x468d73(0x248)][_0x468d73(0x362)](Y,this[_0x468d73(0xec)],this[_0x468d73(0xdf)],_0x30b4c9,_0x42f46b,this[_0x468d73(0x20b)],this['_resendSchedule']);else{if(_0x30b4c9&&_0x42f46b[_0x468d73(0x197)]===0x0)_0x30b4c9[_0x468d73(0x17a)]=this['_getCurrentRevision'](),_0x7bdd5a=this[_0x468d73(0x248)][_0x468d73(0x362)](J,this['unitID'],this['type'],_0x30b4c9,this[_0x468d73(0x20b)],this[_0x468d73(0x1f7)]);else{if(_0x42f46b[_0x468d73(0x197)]!==0x0){let _0x1d8bba=this[_0x468d73(0x248)][_0x468d73(0x362)](q,this[_0x468d73(0xec)],this[_0x468d73(0xdf)],_0x42f46b,this['_handler']);_0x1d8bba[_0x468d73(0x2e2)](),_0x7bdd5a=_0x1d8bba;}else _0x7bdd5a=this[_0x468d73(0x248)][_0x468d73(0x362)](K,this[_0x468d73(0xec)],this[_0x468d73(0xdf)],this[_0x468d73(0x20b)]);}}return _0x7bdd5a[_0x468d73(0x178)](),_0x7bdd5a;}catch(_0x14ca01){return this['_logService'][_0x468d73(0x223)](_0x468d73(0x384),_0x468d73(0x397),_0x14ca01),this[_0x468d73(0x248)][_0x468d73(0x362)](X,this[_0x468d73(0xec)],this[_0x468d73(0xdf)],this[_0x468d73(0x2b8)],this[_0x468d73(0x154)],this[_0x468d73(0x20b)],!0x1);}}['_handleRemoteChangesets'](_0x3cbf09){const _0x5309e2=_0x13a2b1;this['_acknowledgeAwaitingIfReady']();for(let _0x2f25cd=0x0;_0x2f25cd<_0x3cbf09['length'];_0x2f25cd++){let _0x2bf61e=_0x3cbf09[_0x2f25cd],_0x5d5bbe=this[_0x5309e2(0x180)]();if(this[_0x5309e2(0x148)](_0x2bf61e)){if(_0x2bf61e[_0x5309e2(0x3ac)]>_0x5d5bbe+0x1)return{'missingChangesets':!0x0};_0x2bf61e[_0x5309e2(0x3ac)]<=_0x5d5bbe?this['_dropAcknowledgedAwaiting']():this[_0x5309e2(0x313)]();}else{if(!(_0x2bf61e['revision']<=_0x5d5bbe)){if(_0x2bf61e['revision']>_0x5d5bbe+0x1)return{'missingChangesets':!0x0};this[_0x5309e2(0x305)](_0x2bf61e),this[_0x5309e2(0x11c)]();}}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x179e51){const _0xeb800c=_0x13a2b1;let _0x1c9c59=_0x179e51,_0xc3caeb=this[_0xeb800c(0x2b8)];if(_0xc3caeb){let _0x1a8924=this[_0xeb800c(0x1df)][_0xeb800c(0x319)]([_0x179e51],[_0xc3caeb],!0x1);if(!_0xba84eb(_0x1a8924))throw _0x1a8924[_0xeb800c(0x223)];_0x1c9c59=_0x1a8924[_0xeb800c(0x2c5)][0x0],_0xc3caeb=_0x1a8924[_0xeb800c(0x14f)][0x0];}let _0x24519f=this[_0xeb800c(0x154)];if(_0x24519f['length']){let _0x32771e=this[_0xeb800c(0x1df)][_0xeb800c(0x1c1)](_0x1c9c59,_0x24519f);if(!_0x2984ce(_0x32771e))throw _0x32771e[_0xeb800c(0x223)];_0x1c9c59=_0x32771e['c1Prime'],_0x24519f=_0x32771e['m2Prime'];}this[_0xeb800c(0x309)](_0x1c9c59),_0xc3caeb&&(_0xc3caeb[_0xeb800c(0x17a)]=this[_0xeb800c(0x180)]()),this[_0xeb800c(0x2b8)]=_0xc3caeb,this[_0xeb800c(0x154)]=_0x24519f;}[_0x13a2b1(0x11c)](){const _0x15ddd6=_0x13a2b1;if(!this[_0x15ddd6(0x2b8)]||this['_acknowledgedAwaitingRevision']==null)return;let _0xe411ff=this[_0x15ddd6(0x180)]();if(this['_acknowledgedAwaitingRevision']<=_0xe411ff)throw Error(_0x15ddd6(0xfc)+this[_0x15ddd6(0x1fb)]+'.');this[_0x15ddd6(0x1fb)]===_0xe411ff+0x1&&this[_0x15ddd6(0x313)]();}[_0x13a2b1(0x313)](){const _0x528b55=_0x13a2b1;this[_0x528b55(0x16c)](),this[_0x528b55(0x2d8)]();}[_0x13a2b1(0x2d8)](){const _0x3e5157=_0x13a2b1;this[_0x3e5157(0x2b8)]=null,this[_0x3e5157(0x1fb)]=null,this[_0x3e5157(0x1f7)]=void 0x0;}[_0x13a2b1(0x213)](){const _0x571153=_0x13a2b1;throw Error(_0x571153(0x293));}['appendMutation'](_0x42071f){const _0x50188e=_0x13a2b1;return this['_pendingMutations'][_0x50188e(0x2c2)](_0x42071f),this;}[_0x13a2b1(0x381)](_0x48b5aa){const _0x4f837a=_0x13a2b1;return this[_0x4f837a(0x1bc)]['push'](_0x48b5aa),this;}[_0x13a2b1(0x2c4)](_0x3dfa43){const _0x3fa235=_0x13a2b1;if(this[_0x3fa235(0x2b8)]){let _0x19978a=this[_0x3fa235(0x180)]();return _0x3dfa43[_0x3fa235(0x3ac)]<=_0x19978a?(this[_0x3fa235(0x140)](_0x3dfa43)&&this[_0x3fa235(0x2d8)](),this):(_0x19978a+0x1===_0x3dfa43['revision']?this[_0x3fa235(0x313)]():(this[_0x3fa235(0x1fb)]=_0x3dfa43[_0x3fa235(0x3ac)],this[_0x3fa235(0x1f7)]=void 0x0),this);}if(_0x3dfa43[_0x3fa235(0x3ac)]<=this[_0x3fa235(0x180)]())return this;throw Error(_0x3fa235(0x31d));}[_0x13a2b1(0x32d)](_0x2edbee){const _0x49e33c=_0x13a2b1;return this['_onConflict'](!!(_0x2edbee!=null&&_0x2edbee[_0x49e33c(0x119)]));}['onRemoteRetry'](_0x54eef6){const _0x245356=_0x13a2b1;var _0x50422a;if(this[_0x245356(0x1fb)]!=null||_0x54eef6[_0x245356(0x2ed)]!==((_0x50422a=this['_awaitingChangeset'])==null?void 0x0:_0x50422a[_0x245356(0x2ed)]))return this;let _0x3fc174=this[_0x245356(0x1f7)]??{'timer':void 0x0,'timeout':0x0,'total':0x0};return _0x3fc174['timer']?this:_0x3fc174['total']>bn?this[_0x245356(0x10d)]():(this['_resendSchedule']={..._0x3fc174,'timer':mn(_0x3fc174['timeout'],{'reqId':_0x54eef6[_0x245356(0x2ed)]})},this);}[_0x13a2b1(0x10d)](){const _0x156747=_0x13a2b1;return this[_0x156747(0x248)][_0x156747(0x362)](Z,this[_0x156747(0xec)],this['type'],this[_0x156747(0x2b8)],this['_pendingMutations'],this[_0x156747(0x20b)]);}['toggleOnline'](){return this;}[_0x13a2b1(0x326)](_0x50da0f){const _0x3b9b6e=_0x13a2b1;return this['_injector'][_0x3b9b6e(0x362)](X,this[_0x3b9b6e(0xec)],this[_0x3b9b6e(0xdf)],this[_0x3b9b6e(0x2b8)],this[_0x3b9b6e(0x154)],this[_0x3b9b6e(0x20b)],_0x50da0f);}};Q=H([V(0x8,_0x4b5aa3(_0x34ebb2)),V(0x9,_0x4b5aa3(_0x13f2dc)),V(0xa,_0x13ba11),V(0xb,_0x33e7ca),V(0xc,_0x10b774),V(0xd,_0x4348d7),V(0xe,_0x387f7a(U))],Q);function xn(_0x6af05c,_0x512ed8,_0x1a190e,_0x848026,_0x386621,_0x41a54e){const _0x1c3e20=_0x13a2b1;return _0x848026&&_0x386621[_0x1c3e20(0x197)]?_0x6af05c[_0x1c3e20(0x362)](Y,_0x512ed8,_0x1a190e,_0x848026,_0x386621,_0x41a54e,void 0x0):_0x848026?_0x6af05c[_0x1c3e20(0x362)](J,_0x512ed8,_0x1a190e,_0x848026,_0x41a54e,void 0x0):_0x386621[_0x1c3e20(0x197)]?_0x6af05c[_0x1c3e20(0x362)](q,_0x512ed8,_0x1a190e,_0x386621,_0x41a54e):_0x6af05c['createInstance'](K,_0x512ed8,_0x1a190e,_0x41a54e);}let $=class extends _0x7b0f5f{get['state'](){const _0xf953ec=_0x13a2b1;return this[_0xf953ec(0x211)];}constructor(_0x407f10,_0x4ea0d8,_0x16b1ee,_0x56c94c,_0x44148e,_0xd84f70,_0x520571,_0x297495,_0x45d72c,_0x61db9e,_0x731e27,_0x175136,_0x37fe05,_0x4ba640){const _0x41a719=_0x13a2b1;super(),this[_0x41a719(0xec)]=_0x407f10,this['session']=_0x4ea0d8,this[_0x41a719(0x1c6)]=_0x16b1ee,this[_0x41a719(0x248)]=_0x56c94c,this['_compressMutationService']=_0x44148e,this[_0x41a719(0x2a6)]=_0xd84f70,this['_revisionService']=_0x520571,this[_0x41a719(0x1f6)]=_0x297495,this[_0x41a719(0x32b)]=_0x45d72c,this[_0x41a719(0x2a9)]=_0x61db9e,this[_0x41a719(0x18f)]=_0x731e27,this[_0x41a719(0x20e)]=_0x175136,this[_0x41a719(0x39c)]=_0x37fe05,this[_0x41a719(0x1bd)]=_0x4ba640,z(this,'_state$',new _0x20736c(null)),z(this,_0x41a719(0x347),this['_state$'][_0x41a719(0x36c)]()),z(this,_0x41a719(0x211),void 0x0),z(this,'_collaborationPaused',!0x1),z(this,_0x41a719(0x22c),''),z(this,'_changesetReqId',0x0),z(this,_0x41a719(0x374),this[_0x41a719(0x347)][_0x41a719(0x317)](_0x19ae10(_0x1bb2d2=>_0x1bb2d2?_0x1bb2d2[_0x41a719(0x116)]:_0x41a719(0x167)),_0x35b3fd({'bufferSize':0x1,'refCount':!0x0}))),z(this,_0x41a719(0x27e),!0x1),z(this,_0x41a719(0x229),[]);}async[_0x13a2b1(0x212)](){const _0x4c412b=_0x13a2b1;if(this[_0x4c412b(0x2ca)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x4c412b(0x139)]();}[_0x13a2b1(0x260)](){const _0x315703=_0x13a2b1;return this[_0x315703(0xda)]=!0x0,_0xe23d59(()=>{const _0x4d705a=_0x315703;this[_0x4d705a(0xda)]=!0x1,this[_0x4d705a(0x196)]();});}[_0x13a2b1(0x266)](_0x2fd7c2){const _0x2d0b38=_0x13a2b1;this[_0x2d0b38(0x36d)](_0x2fd7c2);}[_0x13a2b1(0x380)](_0x3b7161){const _0xbab441=_0x13a2b1;this[_0xbab441(0x211)]=_0x3b7161,this[_0xbab441(0x1fe)][_0xbab441(0x110)](_0x3b7161);}async[_0x13a2b1(0x139)](){const _0xf4daed=_0x13a2b1;if(this[_0xf4daed(0x380)](await this[_0xf4daed(0x371)]()),this[_0xf4daed(0x39c)]){var _0x5b1271;(_0x5b1271=this[_0xf4daed(0x39c)])==null||_0x5b1271[_0xf4daed(0x121)](this[_0xf4daed(0xec)]),this[_0xf4daed(0x2be)](this[_0xf4daed(0x39c)]['getUnitStatus$'](this[_0xf4daed(0xec)])[_0xf4daed(0x31e)](_0x2da9df=>{const _0x4f2677=_0xf4daed;this[_0x4f2677(0x2a9)][_0x4f2677(0x195)](_0x4f2677(0x1f8),_0x4f2677(0x165),_0x2da9df),_0x2da9df===0x1?(this[_0x4f2677(0x1f6)][_0x4f2677(0x13d)]({'id':_0x4f2677(0x171)}),this['_permissionService']['updatePermissionPoint'](new _0x534ed6(this['unitID'])['id'],!0x1),this['_permissionService'][_0x4f2677(0x35c)](!0x1)):(this[_0x4f2677(0x20e)][_0x4f2677(0x23f)](new _0x534ed6(this[_0x4f2677(0xec)])['id'],!0x0),this[_0x4f2677(0x20e)][_0x4f2677(0x35c)](!0x0));}));}let _0x5328b6=!0x1;return this[_0xf4daed(0x2be)](this[_0xf4daed(0x396)][_0xf4daed(0x1be)][_0xf4daed(0x31e)](_0x2e80d7=>{const _0x2094f0=_0xf4daed;_0x2e80d7===0x3?this[_0x2094f0(0x1a4)](_0x5328b6):_0x2e80d7===0x2&&(_0x5328b6=!0x0,this[_0x2094f0(0x308)]());})),this['disposeWithMe'](this[_0xf4daed(0x396)]['event$'][_0xf4daed(0x31e)](_0x4d78fa=>{const _0xa7eac3=_0xf4daed;try{switch(_0x4d78fa['eventID']){case _0xd588b7[_0xa7eac3(0x1a0)]:this[_0xa7eac3(0x36f)](_0x397059(_0x4d78fa['data']));break;case _0xd588b7['CHANGESET_ACK']:this['_onRemoteACK'](_0x4d78fa[_0xa7eac3(0x35d)]);break;case _0xd588b7[_0xa7eac3(0x187)]:this[_0xa7eac3(0x208)]();break;case _0xd588b7[_0xa7eac3(0x133)]:this[_0xa7eac3(0x32e)](_0x4d78fa['data']);break;case _0xd588b7[_0xa7eac3(0x21f)]:this[_0xa7eac3(0x2cc)](_0x4d78fa[_0xa7eac3(0x35d)][_0xa7eac3(0x2d2)][_0xa7eac3(0x22b)](_0x3a5ca5=>_0x397059(_0x3a5ca5)));break;case _0xd588b7[_0xa7eac3(0x13b)]:this[_0xa7eac3(0x208)]({'isPermissionRej':!0x0});break;case _0xd588b7['UNISCRIPT_RUN']:}}catch(_0x1ef008){throw console[_0xa7eac3(0x223)](_0xa7eac3(0x221),_0x1ef008),_0x1ef008;}})),this[_0xf4daed(0x211)];}[_0x13a2b1(0x332)](){const _0x4bf5d6=_0x13a2b1;this[_0x4bf5d6(0x27e)]=!0x1;}[_0x13a2b1(0x3a9)](){const _0x36954e=_0x13a2b1;if(this[_0x36954e(0x27e)])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this['_transitionLocked']=!0x0;}[_0x13a2b1(0x36d)](_0x39b4a0){const _0x37ab8a=_0x13a2b1;this[_0x37ab8a(0x3a9)](),this[_0x37ab8a(0x380)](this['_state'][_0x37ab8a(0x20a)](_0x39b4a0)),this[_0x37ab8a(0x332)]();}[_0x13a2b1(0x36f)](_0x36a881){const _0x53caff=_0x13a2b1;this[_0x53caff(0xda)]?this[_0x53caff(0x229)][_0x53caff(0x2c2)](_0x36a881):this[_0x53caff(0x306)](_0x36a881);}[_0x13a2b1(0x196)](){const _0x215a19=_0x13a2b1;this[_0x215a19(0x229)][_0x215a19(0x39d)](_0x34fde4=>this[_0x215a19(0x306)](_0x34fde4)),this[_0x215a19(0x229)]=[];}[_0x13a2b1(0x306)](_0x1cd008){const _0x29e3ed=_0x13a2b1;let _0x2f1817=this[_0x29e3ed(0x25a)][_0x29e3ed(0x115)][_0x29e3ed(0x1b5)](this[_0x29e3ed(0x25a)][_0x29e3ed(0x115)][_0x29e3ed(0x1fc)]()[_0x29e3ed(0x32f)])(_0x1cd008[_0x29e3ed(0x288)],null)||_0x1cd008['mutations'],_0x579cae={..._0x1cd008,'mutations':_0x2f1817};this['_lockTransition'](),this[_0x29e3ed(0x380)](this['_state']['onRemoteChangeset'](_0x579cae)),this['_unlockTransition']();}[_0x13a2b1(0x185)](_0x371ebd){const _0x413230=_0x13a2b1;this[_0x413230(0x3a9)](),this[_0x413230(0x380)](this[_0x413230(0x211)][_0x413230(0x2c4)](_0x371ebd)),this[_0x413230(0x332)]();}[_0x13a2b1(0x208)](_0x5ad21c){const _0x231829=_0x13a2b1;this['_lockTransition'](),this[_0x231829(0x380)](this['_state']['onRemoteRej'](_0x5ad21c)),this['_unlockTransition']();}[_0x13a2b1(0x32e)](_0x28e04b){const _0x1e11e8=_0x13a2b1;this[_0x1e11e8(0x3a9)](),this['_updateState'](this['_state'][_0x1e11e8(0x186)](_0x28e04b)),this[_0x1e11e8(0x332)]();}[_0x13a2b1(0x2cc)](_0x2da34d){const _0x249bb4=_0x13a2b1;if(!(this[_0x249bb4(0x211)]instanceof Q))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x18be51=_0x2da34d[_0x249bb4(0x22b)](_0x35fd77=>{const _0x112c74=_0x249bb4;let _0xf7515c=this[_0x112c74(0x25a)][_0x112c74(0x115)]['fetchThroughInterceptors'](this[_0x112c74(0x25a)][_0x112c74(0x115)][_0x112c74(0x1fc)]()[_0x112c74(0x32f)])(_0x35fd77[_0x112c74(0x288)],null)||_0x35fd77['mutations'];return{..._0x35fd77,'mutations':_0xf7515c};});this[_0x249bb4(0x3a9)](),this[_0x249bb4(0x380)](this['_state'][_0x249bb4(0x3a5)](_0x18be51)),this[_0x249bb4(0x332)]();}[_0x13a2b1(0x308)](){const _0x12a43a=_0x13a2b1;this[_0x12a43a(0x3a9)](),this[_0x12a43a(0x380)](this[_0x12a43a(0x211)][_0x12a43a(0x10d)]()),this['_unlockTransition']();}[_0x13a2b1(0x1a4)](_0x24ce0e=!0x1){const _0x5b081a=_0x13a2b1;this[_0x5b081a(0x3a9)](),this['_updateState'](this[_0x5b081a(0x211)][_0x5b081a(0x30f)]()),this[_0x5b081a(0x332)]();let _0x8607c6=this[_0x5b081a(0x211)];_0x24ce0e&&_0x8607c6 instanceof K&&(this[_0x5b081a(0x3a9)](),this[_0x5b081a(0x380)](_0x8607c6[_0x5b081a(0x2fb)]()),this[_0x5b081a(0x332)]());}async[_0x13a2b1(0x371)](){return new Promise(_0x5210ce=>{const _0x4fd3e3=_0x148e;this[_0x4fd3e3(0x396)][_0x4fd3e3(0x1be)][_0x4fd3e3(0x317)](_0x52c094(0x1))[_0x4fd3e3(0x31e)](async _0x8e6103=>{const _0x408246=_0x4fd3e3;_0x5210ce(await this[_0x408246(0x2ae)](_0x8e6103===0x3));});});}[_0x13a2b1(0x12c)](){const _0x53ca96=_0x13a2b1;let _0x41511c=this[_0x53ca96(0xec)];return{'onStateChange':(_0x46730d,_0xf88929)=>{const _0x4d0796=_0x53ca96;if(_0x46730d!==this[_0x4d0796(0x211)])throw Error(_0x4d0796(0xff)+_0x46730d[_0x4d0796(0x116)]+_0x4d0796(0x145)+_0xf88929[_0x4d0796(0x116)]+_0x4d0796(0x295)+this[_0x4d0796(0x211)]['status']);this['_updateState'](_0xf88929);},'onSendChangeset':_0x58b34c=>{const _0x23cebf=_0x53ca96;_0x58b34c[_0x23cebf(0x2df)]||(_0x58b34c[_0x23cebf(0x2df)]=this['_changesetSessionId'],_0x58b34c[_0x23cebf(0x2ed)]=++this[_0x23cebf(0x281)]);let _0xfe5a58={'eventID':_0xd588b7[_0x23cebf(0x2a4)],'data':{'unitID':_0x58b34c[_0x23cebf(0xec)],'unitType':this[_0x23cebf(0x1c6)],'changeset':_0x58b34c,'memberID':this[_0x23cebf(0x396)][_0x23cebf(0x38e)]()}};this[_0x23cebf(0x396)][_0x23cebf(0x1d8)](_0xfe5a58,this['unitID']);},'onMissingChangesets':({from:_0xf41b3c,to:_0x20e7cd})=>{const _0x3ef948=_0x53ca96;this[_0x3ef948(0x2a9)][_0x3ef948(0x195)](_0x3ef948(0x1f8),_0x3ef948(0x28d)+_0xf41b3c+'\x20to\x20'+_0x20e7cd);let _0x52f0e9={'eventID':_0xd588b7[_0x3ef948(0x127)],'data':{'unitID':_0x41511c,'unitType':this[_0x3ef948(0x1c6)],'from':_0xf41b3c,'to':_0x20e7cd}};this[_0x3ef948(0x396)]['send'](_0x52f0e9,this[_0x3ef948(0xec)]);}};}async[_0x13a2b1(0x2ae)](_0x2b9b14){const _0x4b9e38=_0x13a2b1;var _0x46056f;let _0x223713=await((_0x46056f=this[_0x4b9e38(0x1bd)])==null?void 0x0:_0x46056f[_0x4b9e38(0x36a)](this[_0x4b9e38(0xec)])),_0x15df0b=(_0x223713==null?void 0x0:_0x223713['mutations'])??[],_0x5b8c9c=(_0x223713==null?void 0x0:_0x223713[_0x4b9e38(0x3ab)])??null,_0x3e6451=!!(_0x5b8c9c!=null&&_0x5b8c9c[_0x4b9e38(0x2df)])&&!!(_0x5b8c9c!=null&&_0x5b8c9c[_0x4b9e38(0x2ed)]);this[_0x4b9e38(0x22c)]=_0x3e6451?_0x5b8c9c['sid']:_0x43d36d(),this['_changesetReqId']=_0x3e6451?_0x5b8c9c[_0x4b9e38(0x2ed)]:0x0;let _0x1f368c=this[_0x4b9e38(0xec)];try{this[_0x4b9e38(0x200)](_0x5b8c9c,_0x15df0b);}catch(_0x48749e){this[_0x4b9e38(0x2a9)]['error'](_0x48749e);}let _0x382f75=this[_0x4b9e38(0x12c)]();if(_0x2b9b14){let _0x2d3bf9=xn(this[_0x4b9e38(0x248)],_0x1f368c,this[_0x4b9e38(0x1c6)],_0x5b8c9c,_0x15df0b,_0x382f75);return _0x2d3bf9 instanceof q?_0x2d3bf9[_0x4b9e38(0x2e2)]():(_0x2d3bf9 instanceof Y||_0x2d3bf9 instanceof J)&&_0x2d3bf9[_0x4b9e38(0x213)](),_0x2d3bf9;}return this[_0x4b9e38(0x248)][_0x4b9e38(0x362)](Z,_0x1f368c,this[_0x4b9e38(0x1c6)],_0x5b8c9c,_0x15df0b,_0x382f75);}['_replayCachedMutations'](_0x1cc78a,_0x22b8e6){const _0x2851c5=_0x13a2b1;var _0x18b0f9,_0x119ec7;let _0xfed41=this[_0x2851c5(0x25a)][_0x2851c5(0x115)][_0x2851c5(0x1b5)](this[_0x2851c5(0x25a)][_0x2851c5(0x115)][_0x2851c5(0x1fc)]()[_0x2851c5(0x32f)]);(_0x18b0f9=_0xfed41((_0x1cc78a==null?void 0x0:_0x1cc78a[_0x2851c5(0x288)])||[],null))==null||_0x18b0f9[_0x2851c5(0x39d)](_0xdbdaf0=>this[_0x2851c5(0x18f)][_0x2851c5(0x24d)](_0xdbdaf0['id'],_0xdbdaf0[_0x2851c5(0x1a3)])),(_0x119ec7=_0xfed41(_0x22b8e6||[],null))==null||_0x119ec7[_0x2851c5(0x39d)](_0x49d738=>this['_commandService'][_0x2851c5(0x24d)](_0x49d738['id'],_0x49d738[_0x2851c5(0x1a3)]));}};$=H([V(0x3,_0x4b5aa3(_0x34ebb2)),V(0x4,_0x4b5aa3(_0xfb1eea)),V(0x5,_0x4b5aa3(_0x413ac2)),V(0x6,_0x4b5aa3(_0x13f2dc)),V(0x7,_0x4b5aa3(B)),V(0x8,_0x95142),V(0x9,_0x13ba11),V(0xa,_0x33e7ca),V(0xb,_0x18f67c),V(0xc,_0x387f7a(W)),V(0xd,_0x387f7a(U))],$);let Sn=class extends ${constructor(_0x259c65,_0x4e744d,_0x4b7034,_0xa18aac,_0xb4c3e0,_0x53edd1,_0x1f275a,_0x1bf917,_0x4de300,_0x1dcd36,_0x5750c9,_0x3c1a62,_0x36f8fc,_0x3b95f5,_0x3664d4){const _0x5baaf7=_0x13a2b1;super(_0x259c65,_0x4b7034,_0x4e744d,_0xa18aac,_0xb4c3e0,_0x53edd1,_0x1f275a,_0x1bf917,_0x4de300,_0x1dcd36,_0x5750c9,_0x3c1a62,_0x3b95f5,_0x3664d4),this['unitID']=_0x259c65,this['type']=_0x4e744d,this[_0x5baaf7(0x1dd)]=_0x36f8fc,z(this,_0x5baaf7(0x240),null);}[_0x13a2b1(0x2e7)](_0x8f8bea){this['_handlerCallback']=_0x8f8bea;}[_0x13a2b1(0x1a1)](){const _0xbc3a6b=_0x13a2b1;this[_0xbc3a6b(0x240)]=null,super[_0xbc3a6b(0x1a1)]();}[_0x13a2b1(0x12c)](){const _0x427e85=_0x13a2b1;let _0x1eb278=super[_0x427e85(0x12c)]();return _0x1eb278[_0x427e85(0x150)]=_0x36ffd2=>{var _0x55ce28,_0x262515;return(_0x55ce28=this['_handlerCallback'])==null||(_0x262515=_0x55ce28['onTransformIME'])==null?void 0x0:_0x262515['call'](_0x55ce28,_0x36ffd2);},_0x1eb278['onTransformState']=_0x567ab9=>{const _0x1cd18f=_0x427e85;var _0x1153e1,_0x279fe4;return(_0x1153e1=this[_0x1cd18f(0x240)])==null||(_0x279fe4=_0x1153e1['onTransformState'])==null?void 0x0:_0x279fe4[_0x1cd18f(0x24e)](_0x1153e1,_0x567ab9);},_0x1eb278['onPrepareTransformSelections']=_0x4d67c3=>{const _0x4aac7b=_0x427e85;var _0x132251,_0x584bc5;return((_0x132251=this[_0x4aac7b(0x240)])==null||(_0x584bc5=_0x132251['onPrepareTransformSelections'])==null?void 0x0:_0x584bc5[_0x4aac7b(0x24e)](_0x132251,_0x4d67c3))??null;},_0x1eb278[_0x427e85(0x2b2)]=_0x267a2a=>{const _0x41a889=_0x427e85;var _0x54d645,_0x48f86f;return(_0x54d645=this[_0x41a889(0x240)])==null||(_0x48f86f=_0x54d645[_0x41a889(0x2b2)])==null?void 0x0:_0x48f86f['call'](_0x54d645,_0x267a2a);},_0x1eb278[_0x427e85(0x354)]=_0x2d9598=>{const _0x1ddcf3=_0x427e85;var _0x33c66c,_0xf4d68c;return(_0x33c66c=this[_0x1ddcf3(0x240)])==null||(_0xf4d68c=_0x33c66c['onSyncEditingCollabCursor'])==null?void 0x0:_0xf4d68c[_0x1ddcf3(0x24e)](_0x33c66c,_0x2d9598);},_0x1eb278[_0x427e85(0x356)]=_0x51a177=>{const _0x4a111c=_0x427e85;var _0x490739,_0x40db0f;return((_0x490739=this[_0x4a111c(0x240)])==null||(_0x40db0f=_0x490739[_0x4a111c(0x356)])==null?void 0x0:_0x40db0f['call'](_0x490739,_0x51a177))??_0x51a177;},_0x1eb278[_0x427e85(0x243)]=_0x2cff63=>{const _0x3846d0=_0x427e85;var _0xae3b46,_0xa0ac2;return((_0xae3b46=this['_handlerCallback'])==null||(_0xa0ac2=_0xae3b46[_0x3846d0(0x243)])==null?void 0x0:_0xa0ac2[_0x3846d0(0x24e)](_0xae3b46,_0x2cff63))??_0x2cff63;},_0x1eb278;}async['_init'](){const _0x88a156=_0x13a2b1;let _0x7c2e67=await super[_0x88a156(0x139)]();return this[_0x88a156(0x2be)](this[_0x88a156(0x1dd)]['docStateChange$']['subscribe'](_0x368d1a=>{const _0x1585ad=_0x88a156;if(_0x368d1a==null||_0x368d1a[_0x1585ad(0x2f1)]!==this[_0x1585ad(0xec)])return;let {commandId:_0xf32738,redoState:_0x3c4fbd,unitId:_0x5de81d}=_0x368d1a,_0x1754e4={'id':_0xf32738,'type':_0x550544[_0x1585ad(0x2a5)],'params':{'unitId':_0x5de81d,'actions':_0x3c4fbd[_0x1585ad(0x261)],'textRanges':null}};this[_0x1585ad(0x36d)](_0x1754e4);})),this[_0x88a156(0x2be)](this[_0x88a156(0x18f)]['onMutationExecutedForCollab']((_0x40aef1,_0x2fb88a)=>{const _0x56a141=_0x88a156;if(_0x40aef1['type']!==_0x550544[_0x56a141(0x2a5)]||_0x2fb88a!=null&&_0x2fb88a[_0x56a141(0x10a)]||_0x2fb88a!=null&&_0x2fb88a[_0x56a141(0x344)]||_0x40aef1['id']===_0xff135e['id'])return;let _0x3b2e2c=_0x40aef1['params'];if((_0x3b2e2c==null?void 0x0:_0x3b2e2c[_0x56a141(0x2f1)])!==this[_0x56a141(0xec)])return;let _0x3c1b14=_0x40aef1,_0x1af4f3=this[_0x56a141(0x25a)]['interceptor'][_0x56a141(0x1b5)](this['_compressMutationService']['interceptor'][_0x56a141(0x1fc)]()['COMPRESS_MUTATION_SEND'])([_0x3c1b14],this['_univerInstanceService'])||[_0x3c1b14];this[_0x56a141(0x36d)](_0x1af4f3[0x0]);})),_0x7c2e67;}};Sn=H([V(0x3,_0x4b5aa3(_0x34ebb2)),V(0x4,_0x4b5aa3(_0xfb1eea)),V(0x5,_0x4b5aa3(_0x413ac2)),V(0x6,_0x4b5aa3(_0x13f2dc)),V(0x7,_0x4b5aa3(B)),V(0x8,_0x95142),V(0x9,_0x13ba11),V(0xa,_0x33e7ca),V(0xb,_0x18f67c),V(0xc,_0x4b5aa3(_0x41ca86)),V(0xd,_0x387f7a(W)),V(0xe,_0x387f7a(U))],Sn);let Cn=class extends ${constructor(_0x3319df,_0x1b5258,_0x3cb9e5,_0x5ec3a9,_0x3593bd,_0x495ca4,_0x4e6654,_0x2fee40,_0x1715e2,_0x539130,_0x4ce2ec,_0x3a1bdb,_0x5922be,_0x5a4182){const _0x30ec3c=_0x13a2b1;super(_0x3319df,_0x3cb9e5,_0x1b5258,_0x5ec3a9,_0x3593bd,_0x495ca4,_0x4e6654,_0x2fee40,_0x1715e2,_0x539130,_0x4ce2ec,_0x3a1bdb,_0x5922be,_0x5a4182),this['unitID']=_0x3319df,this[_0x30ec3c(0xdf)]=_0x1b5258;}async['_init'](){const _0x2f2cb5=_0x13a2b1;let _0x54053b=await super[_0x2f2cb5(0x139)]();return this[_0x2f2cb5(0x2be)](this[_0x2f2cb5(0x18f)]['onMutationExecutedForCollab']((_0x5e3216,_0x281298)=>{const _0x47f618=_0x2f2cb5;if(_0x5e3216[_0x47f618(0xdf)]!==_0x550544[_0x47f618(0x2a5)]||_0x281298!=null&&_0x281298[_0x47f618(0x10a)]||_0x281298!=null&&_0x281298['onlyLocal'])return;let _0x3a3f6b=_0x5e3216[_0x47f618(0x1a3)];if((_0x3a3f6b==null?void 0x0:_0x3a3f6b[_0x47f618(0x2f1)])!==this['unitID'])return;let _0x155d62=_0x5e3216,_0x3774c8=this[_0x47f618(0x25a)][_0x47f618(0x115)][_0x47f618(0x1b5)](this[_0x47f618(0x25a)]['interceptor']['getInterceptPoints']()[_0x47f618(0x183)])([_0x155d62],this[_0x47f618(0x32b)])||[_0x155d62];this[_0x47f618(0x36d)](_0x3774c8[0x0]);})),_0x54053b;}};Cn=H([V(0x3,_0x4b5aa3(_0x34ebb2)),V(0x4,_0x4b5aa3(_0xfb1eea)),V(0x5,_0x4b5aa3(_0x413ac2)),V(0x6,_0x4b5aa3(_0x13f2dc)),V(0x7,_0x4b5aa3(B)),V(0x8,_0x95142),V(0x9,_0x13ba11),V(0xa,_0x33e7ca),V(0xb,_0x18f67c),V(0xc,_0x387f7a(W)),V(0xd,_0x387f7a(U))],Cn);let wn=class extends ${constructor(_0x439cc4,_0x55808f,_0x3faf8f,_0x12b87f,_0x4a1450,_0x18fd05,_0x3377b1,_0x5b1ace,_0x333731,_0x42a694,_0x38f60b,_0x933c41,_0x1f2e1e,_0x29f92f,_0x2ff492){const _0x376536=_0x13a2b1;super(_0x439cc4,_0x3faf8f,_0x55808f,_0x12b87f,_0x4a1450,_0x18fd05,_0x3377b1,_0x333731,_0x42a694,_0x38f60b,_0x933c41,_0x1f2e1e,_0x29f92f,_0x2ff492),this['unitID']=_0x439cc4,this[_0x376536(0xdf)]=_0x55808f,this[_0x376536(0x33c)]=_0x5b1ace;}['_createHandler'](){const _0x77b058=_0x13a2b1;let _0x472874=super[_0x77b058(0x12c)]();return _0x472874[_0x77b058(0x2b2)]=_0x4702c8=>this[_0x77b058(0x33c)]['transformSelections'](_0x4702c8),_0x472874;}async['_init'](){const _0x1e86b3=_0x13a2b1;let _0x39ff85=await super[_0x1e86b3(0x139)]();return this['disposeWithMe'](this[_0x1e86b3(0x18f)][_0x1e86b3(0x392)]((_0x10ff98,_0x267081)=>{const _0x843290=_0x1e86b3;if(_0x10ff98[_0x843290(0xdf)]!==_0x550544[_0x843290(0x2a5)]||_0x267081!=null&&_0x267081[_0x843290(0x10a)]||_0x267081!=null&&_0x267081[_0x843290(0x344)])return;let _0x15328e=_0x10ff98[_0x843290(0x1a3)];if((_0x15328e==null?void 0x0:_0x15328e[_0x843290(0x2f1)])!==this[_0x843290(0xec)])return;let _0x3a20c9=_0x10ff98,_0x4da438=this[_0x843290(0x25a)][_0x843290(0x115)][_0x843290(0x1b5)](this[_0x843290(0x25a)]['interceptor'][_0x843290(0x1fc)]()[_0x843290(0x183)])([_0x3a20c9],this['_univerInstanceService'])||[_0x3a20c9];this['_onLocalMutation'](_0x4da438[0x0]);})),_0x39ff85;}};wn=H([V(0x3,_0x4b5aa3(_0x34ebb2)),V(0x4,_0x4b5aa3(_0xfb1eea)),V(0x5,_0x4b5aa3(_0x413ac2)),V(0x6,_0x4b5aa3(_0x13f2dc)),V(0x7,_0x4b5aa3(Yt)),V(0x8,_0x4b5aa3(B)),V(0x9,_0x95142),V(0xa,_0x13ba11),V(0xb,_0x33e7ca),V(0xc,_0x18f67c),V(0xd,_0x387f7a(W)),V(0xe,_0x387f7a(U))],wn);let Tn=class extends ${constructor(_0x5e0122,_0x501930,_0x46fcaf,_0x4ace71,_0x1d82a1,_0x2dae65,_0x5a5408,_0x56bca0,_0x205be1,_0x2846ea,_0x28706c,_0x468903,_0x24729d,_0x384bcd){super(_0x5e0122,_0x46fcaf,_0x501930,_0x4ace71,_0x1d82a1,_0x2dae65,_0x5a5408,_0x56bca0,_0x205be1,_0x2846ea,_0x28706c,_0x468903,_0x24729d,_0x384bcd),this['unitID']=_0x5e0122,this['type']=_0x501930;}async[_0x13a2b1(0x139)](){const _0x2b4303=_0x13a2b1;let _0x40384e=await super['_init']();return this[_0x2b4303(0x2be)](this[_0x2b4303(0x18f)][_0x2b4303(0x392)]((_0x6737ae,_0x2faf7a)=>{const _0x3cd1ae=_0x2b4303;if(_0x6737ae[_0x3cd1ae(0xdf)]!==_0x550544[_0x3cd1ae(0x2a5)]||_0x2faf7a!=null&&_0x2faf7a[_0x3cd1ae(0x10a)]||_0x2faf7a!=null&&_0x2faf7a[_0x3cd1ae(0x344)])return;let _0xf793b=_0x6737ae[_0x3cd1ae(0x1a3)];if((_0xf793b==null?void 0x0:_0xf793b[_0x3cd1ae(0x2f1)])!==this[_0x3cd1ae(0xec)])return;let _0x24796e=_0x6737ae,_0x4981b4=this[_0x3cd1ae(0x25a)][_0x3cd1ae(0x115)][_0x3cd1ae(0x1b5)](this[_0x3cd1ae(0x25a)][_0x3cd1ae(0x115)][_0x3cd1ae(0x1fc)]()[_0x3cd1ae(0x183)])([_0x24796e],this['_univerInstanceService'])||[_0x24796e];this['_onLocalMutation'](_0x4981b4[0x0]);})),_0x40384e;}};Tn=H([V(0x3,_0x4b5aa3(_0x34ebb2)),V(0x4,_0x4b5aa3(_0xfb1eea)),V(0x5,_0x4b5aa3(_0x413ac2)),V(0x6,_0x4b5aa3(_0x13f2dc)),V(0x7,_0x4b5aa3(B)),V(0x8,_0x95142),V(0x9,_0x13ba11),V(0xa,_0x33e7ca),V(0xb,_0x18f67c),V(0xc,_0x387f7a(W)),V(0xd,_0x387f7a(U))],Tn);let En=class extends ${constructor(_0xd23b7f,_0x4e0f11,_0x58ffc5,_0xacb019,_0x1a031e,_0x31992a,_0x2ec01c,_0x42fd60,_0x195804,_0x1a1a87,_0x31f077,_0xebffc8,_0x3e7d4c,_0x3a3e4b){const _0x229a87=_0x13a2b1;super(_0xd23b7f,_0x58ffc5,_0x4e0f11,_0xacb019,_0x1a031e,_0x31992a,_0x2ec01c,_0x42fd60,_0x195804,_0x1a1a87,_0x31f077,_0xebffc8,_0x3e7d4c,_0x3a3e4b),this[_0x229a87(0xec)]=_0xd23b7f,this[_0x229a87(0xdf)]=_0x4e0f11;}async[_0x13a2b1(0x139)](){const _0x2e099e=_0x13a2b1;let _0x185402=await super['_init']();return this[_0x2e099e(0x2be)](this['_commandService']['onMutationExecutedForCollab']((_0x2f7bab,_0x4db1f8)=>{const _0x288cb9=_0x2e099e;if(_0x2f7bab[_0x288cb9(0xdf)]!==_0x550544[_0x288cb9(0x2a5)]||_0x4db1f8!=null&&_0x4db1f8[_0x288cb9(0x10a)]||_0x4db1f8!=null&&_0x4db1f8[_0x288cb9(0x344)])return;let _0x172703=_0x2f7bab[_0x288cb9(0x1a3)];if((_0x172703==null?void 0x0:_0x172703[_0x288cb9(0x2f1)])!==this['unitID'])return;let _0x3772fe=_0x2f7bab,_0x160fd9=this[_0x288cb9(0x25a)]['interceptor']['fetchThroughInterceptors'](this[_0x288cb9(0x25a)][_0x288cb9(0x115)][_0x288cb9(0x1fc)]()[_0x288cb9(0x183)])([_0x3772fe],this[_0x288cb9(0x32b)])||[_0x3772fe];this[_0x288cb9(0x36d)](_0x160fd9[0x0]);})),_0x185402;}};En=H([V(0x3,_0x4b5aa3(_0x34ebb2)),V(0x4,_0x4b5aa3(_0xfb1eea)),V(0x5,_0x4b5aa3(_0x413ac2)),V(0x6,_0x4b5aa3(_0x13f2dc)),V(0x7,_0x4b5aa3(B)),V(0x8,_0x95142),V(0x9,_0x13ba11),V(0xa,_0x33e7ca),V(0xb,_0x18f67c),V(0xc,_0x387f7a(W)),V(0xd,_0x387f7a(U))],En);let Dn=class extends ${constructor(_0x4bb6c3,_0x290bdd,_0x2fbdf5,_0x21f126,_0x1d17c4,_0x4882ba,_0x36ea3b,_0xbb97d7,_0x49f534,_0x2f2df5,_0x4811d1,_0x1f891f,_0x258c98,_0x15dd7c){const _0x5793ee=_0x13a2b1;super(_0x4bb6c3,_0x2fbdf5,_0x290bdd,_0x21f126,_0x1d17c4,_0x4882ba,_0x36ea3b,_0xbb97d7,_0x49f534,_0x2f2df5,_0x4811d1,_0x1f891f,_0x258c98,_0x15dd7c),this[_0x5793ee(0xec)]=_0x4bb6c3,this[_0x5793ee(0xdf)]=_0x290bdd;}async[_0x13a2b1(0x139)](){const _0x37b2db=_0x13a2b1;let _0x2b4b90=await super['_init']();return this['disposeWithMe'](this[_0x37b2db(0x18f)][_0x37b2db(0x392)]((_0x28e7ba,_0x35c243)=>{const _0x420d96=_0x37b2db;if(_0x28e7ba[_0x420d96(0xdf)]!==_0x550544[_0x420d96(0x2a5)]||_0x35c243!=null&&_0x35c243['fromCollab']||_0x35c243!=null&&_0x35c243[_0x420d96(0x344)])return;let _0xfcfe0a=_0x28e7ba[_0x420d96(0x1a3)];if((_0xfcfe0a==null?void 0x0:_0xfcfe0a[_0x420d96(0x2f1)])!==this['unitID'])return;let _0x24ff33=_0x28e7ba,_0xc4659e=this[_0x420d96(0x25a)]['interceptor'][_0x420d96(0x1b5)](this['_compressMutationService'][_0x420d96(0x115)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x24ff33],this[_0x420d96(0x32b)])||[_0x24ff33];this[_0x420d96(0x36d)](_0xc4659e[0x0]);})),_0x2b4b90;}};Dn=H([V(0x3,_0x4b5aa3(_0x34ebb2)),V(0x4,_0x4b5aa3(_0xfb1eea)),V(0x5,_0x4b5aa3(_0x413ac2)),V(0x6,_0x4b5aa3(_0x13f2dc)),V(0x7,_0x4b5aa3(B)),V(0x8,_0x95142),V(0x9,_0x13ba11),V(0xa,_0x33e7ca),V(0xb,_0x18f67c),V(0xc,_0x387f7a(W)),V(0xd,_0x387f7a(U))],Dn);const On=_0x51623a('univer-pro.collaboration-client.network-condition.service');function kn(_0x29b6dd){const _0x3ee76e=_0x13a2b1;let _0x2ba800=_0x29b6dd[_0x3ee76e(0x35d)],_0x1bd97f=JSON[_0x3ee76e(0x3ad)](_0x2ba800);switch(_0x1bd97f[_0x3ee76e(0x125)]){case _0x1d0730[_0x3ee76e(0x1f3)]:case _0x1d0730['HELLO']:{let _0x514e91=_0x1bd97f[_0x3ee76e(0x2b9)];return{..._0x1bd97f,'data':_0x514e91,'cmd':_0x1bd97f['cmd']};}case _0x1d0730['JOIN']:{let _0x145b3f=_0x1bd97f['joinRsp'];return{..._0x1bd97f,'data':_0x145b3f,'cmd':_0x1bd97f[_0x3ee76e(0x125)]};}case _0x1d0730['RECV']:{let _0x4bec43=_0x1bd97f[_0x3ee76e(0x1c5)];switch(_0x4bec43[_0x3ee76e(0x207)]){case _0xd588b7[_0x3ee76e(0x13b)]:var _0x2a060c;return{..._0x1bd97f,'data':{..._0x4bec43,'data':(_0x2a060c=_0x4bec43[_0x3ee76e(0x149)])==null?void 0x0:_0x2a060c['cs']},'cmd':_0x1bd97f[_0x3ee76e(0x125)]};case _0xd588b7['CHANGESET_ACK']:var _0x41f743;return{..._0x1bd97f,'data':{..._0x4bec43,'data':(_0x41f743=_0x4bec43['csAckEvent'])==null?void 0x0:_0x41f743['cs']},'cmd':_0x1bd97f['cmd']};case _0xd588b7['NEW_CHANGESETS']:var _0x57f72e;return{..._0x1bd97f,'data':{..._0x4bec43,'data':(_0x57f72e=_0x4bec43['newCsEvent'])==null?void 0x0:_0x57f72e['cs']},'cmd':_0x1bd97f[_0x3ee76e(0x125)]};case _0xd588b7[_0x3ee76e(0x187)]:var _0x28733e;return{..._0x1bd97f,'data':{..._0x4bec43,'data':(_0x28733e=_0x4bec43[_0x3ee76e(0x203)])==null?void 0x0:_0x28733e['cs']},'cmd':_0x1bd97f[_0x3ee76e(0x125)]};case _0xd588b7[_0x3ee76e(0x133)]:var _0x1ba51f;return{..._0x1bd97f,'data':{..._0x4bec43,'data':(_0x1ba51f=_0x4bec43['csShouldRetryEvent'])==null?void 0x0:_0x1ba51f['cs']},'cmd':_0x1bd97f[_0x3ee76e(0x125)]};case _0xd588b7['UPDATE_CURSOR']:return{..._0x1bd97f,'data':{..._0x4bec43,'data':_0x4bec43[_0x3ee76e(0x142)]},'cmd':_0x1bd97f[_0x3ee76e(0x125)]};case _0xd588b7['USERS_ENTER']:return{..._0x1bd97f,'data':{..._0x4bec43,'data':_0x4bec43[_0x3ee76e(0x151)]},'cmd':_0x1bd97f['cmd']};case _0xd588b7[_0x3ee76e(0x2b5)]:return{..._0x1bd97f,'data':{..._0x4bec43,'data':_0x4bec43['leaveEvent']},'cmd':_0x1bd97f[_0x3ee76e(0x125)]};case _0xd588b7['LIVESHARE_NEW_HOST']:return{..._0x1bd97f,'data':{..._0x4bec43,'data':_0x4bec43[_0x3ee76e(0x164)]},'cmd':_0x1bd97f[_0x3ee76e(0x125)]};case _0xd588b7[_0x3ee76e(0x280)]:case _0xd588b7['LIVESHARE_OPERATION']:return{..._0x1bd97f,'data':{..._0x4bec43,'data':_0x4bec43[_0x3ee76e(0xf8)]},'cmd':_0x1bd97f['cmd']};case _0xd588b7[_0x3ee76e(0xe4)]:return{..._0x1bd97f,'data':{..._0x4bec43,'data':_0x4bec43['liveShareNewHost']},'cmd':_0x1bd97f[_0x3ee76e(0x125)]};case _0xd588b7[_0x3ee76e(0x278)]:return{..._0x1bd97f,'data':_0x4bec43,'cmd':_0x1bd97f['cmd']};case _0xd588b7[_0x3ee76e(0x1d0)]:return{..._0x1bd97f,'data':{..._0x4bec43,'data':_0x4bec43[_0x3ee76e(0x1c7)]},'cmd':_0x1bd97f[_0x3ee76e(0x125)]};case _0xd588b7[_0x3ee76e(0x359)]:return{..._0x1bd97f,'data':{..._0x4bec43,'data':_0x4bec43['updatePermissionObjEvent']},'cmd':_0x1bd97f[_0x3ee76e(0x125)]};case _0xd588b7[_0x3ee76e(0x2bb)]:return{..._0x1bd97f,'data':{..._0x4bec43,'data':_0x4bec43['shouldCloseConn']},'cmd':_0x1bd97f[_0x3ee76e(0x125)]};case _0xd588b7[_0x3ee76e(0x268)]:return{..._0x1bd97f,'data':{..._0x4bec43,'data':_0x4bec43['uniscriptRunEvent']},'cmd':_0x1bd97f[_0x3ee76e(0x125)]};default:return _0x1bd97f;}}default:return _0x1bd97f;}}function An(_0x50f115){const _0x5f57d9=_0x13a2b1;switch(_0x50f115[_0x5f57d9(0x125)]){case _0x1d0730[_0x5f57d9(0x1f3)]:case _0x1d0730[_0x5f57d9(0x130)]:return JSON[_0x5f57d9(0x398)]({'cmd':_0x50f115['cmd'],'routeKey':_0x50f115[_0x5f57d9(0x1e4)]});case _0x1d0730[_0x5f57d9(0x273)]:{let _0x56a497;switch(_0x50f115[_0x5f57d9(0x35d)][_0x5f57d9(0x207)]){case _0xd588b7['UPDATE_CURSOR']:_0x56a497={'eventID':_0xd588b7[_0x5f57d9(0xe0)],'updateCursorEvent':_0x50f115[_0x5f57d9(0x35d)]['data']};break;case _0xd588b7[_0x5f57d9(0x2b5)]:_0x56a497={'eventID':_0xd588b7[_0x5f57d9(0x2b5)],'leaveEvent':_0x50f115[_0x5f57d9(0x35d)]['data']};break;case _0xd588b7['USERS_ENTER']:_0x56a497={'eventID':_0xd588b7[_0x5f57d9(0x1e0)],'joinEvent':_0x50f115[_0x5f57d9(0x35d)][_0x5f57d9(0x35d)]};break;case _0xd588b7['LIVESHARE_NEW_HOST']:_0x56a497={'eventID':_0xd588b7[_0x5f57d9(0x1ed)],'liveShareNewHost':_0x50f115[_0x5f57d9(0x35d)][_0x5f57d9(0x35d)]};break;case _0xd588b7[_0x5f57d9(0x1f5)]:_0x56a497={'eventID':_0xd588b7[_0x5f57d9(0x1f5)],'liveShareOperation':_0x50f115[_0x5f57d9(0x35d)][_0x5f57d9(0x35d)]};break;case _0xd588b7['LIVESHARE_TERMINATE']:_0x56a497={'eventID':_0xd588b7[_0x5f57d9(0xe4)],'liveShareTerminate':_0x50f115[_0x5f57d9(0x35d)][_0x5f57d9(0x35d)]};break;case _0xd588b7['LIVESHARE_REQUEST_HOST']:_0x56a497={'eventID':_0xd588b7[_0x5f57d9(0x340)],'liveShareRequestHost':_0x50f115[_0x5f57d9(0x35d)][_0x5f57d9(0x35d)]};break;case _0xd588b7[_0x5f57d9(0x280)]:_0x56a497={'eventID':_0xd588b7['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x56a497={'eventID':_0x50f115[_0x5f57d9(0x35d)][_0x5f57d9(0x207)]};}return JSON[_0x5f57d9(0x398)]({'cmd':_0x50f115[_0x5f57d9(0x125)],'routeKey':_0x50f115[_0x5f57d9(0x1e4)],'collaMsg':_0x56a497});}case _0x1d0730[_0x5f57d9(0x172)]:return JSON['stringify']({'cmd':_0x50f115[_0x5f57d9(0x125)],'routeKey':_0x50f115[_0x5f57d9(0x1e4)],'joinReq':_0x50f115[_0x5f57d9(0x35d)]});case _0x1d0730[_0x5f57d9(0x39a)]:return JSON[_0x5f57d9(0x398)]({'cmd':_0x50f115[_0x5f57d9(0x125)],'routeKey':_0x50f115[_0x5f57d9(0x1e4)],'leaveReq':_0x50f115[_0x5f57d9(0x35d)]});default:throw Error(_0x5f57d9(0x330));}}const jn=_0x51623a(_0x13a2b1(0x2b7));function Mn(_0x555654,_0x25d3e5,_0x51257c){const _0x2dc9ab=_0x13a2b1;return _0x555654+'/'+_0x25d3e5+_0x2dc9ab(0x399)+_0x51257c+_0x2dc9ab(0x215);}let Nn=class extends _0x21e429{constructor(_0x90cd05,_0x1fb202,_0x40f104,_0x1a5013,_0x2931e9){const _0x35e6d5=_0x13a2b1;super(),this[_0x35e6d5(0x248)]=_0x90cd05,this[_0x35e6d5(0xe3)]=_0x1fb202,this[_0x35e6d5(0x3a3)]=_0x40f104,this['_logService']=_0x1a5013,this[_0x35e6d5(0x30e)]=_0x2931e9;}[_0x13a2b1(0x173)](_0x3c90c5){const _0x5557ab=_0x13a2b1;let _0x5db703=this[_0x5557ab(0x248)][_0x5557ab(0x102)](_0x2bd6ee);if(!_0x5db703)throw Error(_0x5557ab(0x31a));let _0x1da8ba=_0x5db703[_0x5557ab(0x35b)](_0x3c90c5);if(!_0x1da8ba)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x446db2=new _0x2d1394(),_0x2dc512=new _0x579c12();_0x446db2[_0x5557ab(0x270)](_0x1da8ba['close$'][_0x5557ab(0x31e)](_0x49a9e4=>_0x2dc512['next'](_0x49a9e4))),_0x446db2[_0x5557ab(0x270)](_0xe23d59(()=>_0x2dc512[_0x5557ab(0x17f)]()));let _0x250869=new _0x579c12();_0x446db2[_0x5557ab(0x270)](_0x1da8ba[_0x5557ab(0x1d3)][_0x5557ab(0x31e)](_0x28dabf=>_0x250869[_0x5557ab(0x110)](_0x28dabf))),_0x446db2[_0x5557ab(0x270)](_0xe23d59(()=>_0x250869[_0x5557ab(0x17f)]()));let _0x103b79=new _0x579c12();_0x446db2[_0x5557ab(0x270)](_0x1da8ba[_0x5557ab(0x10c)]['subscribe'](_0xe286a2=>{let _0x83805b=kn(_0xe286a2);_0x103b79['next'](_0x83805b);})),_0x446db2[_0x5557ab(0x270)](_0xe23d59(()=>_0x103b79[_0x5557ab(0x17f)]()));let _0xe4ddf3,_0x4ed691=()=>{const _0x4ac0fc=_0x5557ab;_0x250869['next'](new Event(_0x4ac0fc(0x226))),_0x2dc512['next'](new Event(_0x4ac0fc(0x226))),_0xe4ddf3[_0x4ac0fc(0x297)]();};return _0xe4ddf3={'memberID':'','close$':_0x2dc512['asObservable'](),'error$':_0x250869['asObservable'](),'open$':_0x1da8ba[_0x5557ab(0x105)],'message$':_0x103b79[_0x5557ab(0x36c)](),'send':_0x16b877=>{const _0x1f2aca=_0x5557ab;if(_0x16b877[_0x1f2aca(0x125)]===_0x1d0730['INGEST']){if(_0x16b877[_0x1f2aca(0x35d)]['eventID']===_0xd588b7[_0x1f2aca(0x2a4)]){this[_0x1f2aca(0x267)](_0xe4ddf3,_0x16b877[_0x1f2aca(0x35d)])[_0x1f2aca(0xe9)](_0x3ab709=>{const _0x16854a=_0x1f2aca;this[_0x16854a(0x2a9)][_0x16854a(0x223)](_0x3ab709),_0x4ed691();});return;}if(_0x16b877[_0x1f2aca(0x35d)][_0x1f2aca(0x207)]===_0xd588b7[_0x1f2aca(0x127)]){let _0x5de6c0=_0x16b877[_0x1f2aca(0x35d)];this[_0x1f2aca(0x3a8)](_0x5de6c0)[_0x1f2aca(0x39b)](_0x410c95=>{const _0x54c412=_0x1f2aca;_0x103b79[_0x54c412(0x110)]({'cmd':_0x1d0730['RECV'],'code':_0x29811e['OK'],'routeKey':_0x5de6c0[_0x54c412(0x35d)][_0x54c412(0xec)],'routeType':'','data':{'eventID':_0xd588b7[_0x54c412(0x21f)],'data':{'changesets':_0x410c95}}});})['catch'](_0x286385=>{const _0xa0d7d9=_0x1f2aca;this[_0xa0d7d9(0x2a9)][_0xa0d7d9(0x223)](_0x286385),_0x4ed691();});return;}}_0x1da8ba[_0x1f2aca(0x1d8)](An(_0x16b877));},'close':()=>{const _0x458632=_0x5557ab;_0x1da8ba[_0x458632(0x297)](),_0x446db2[_0x458632(0x1a1)]();}},_0xe4ddf3;}async[_0x13a2b1(0x267)](_0x4707a3,_0xa3466e){const _0x43ff05=_0x13a2b1;let {unitType:_0x876b03,unitID:_0x545592,changeset:_0x564dc3}=_0xa3466e[_0x43ff05(0x35d)],_0x29e6ee={'unitID':_0x545592,'memberID':_0x4707a3[_0x43ff05(0x1e6)],'type':_0x876b03,'changeset':_0x214b3a(_0x564dc3)},_0x2dfbb3=this[_0x43ff05(0x3a3)][_0x43ff05(0x327)](R),_0x1e546b=Mn((_0x2dfbb3==null?void 0x0:_0x2dfbb3[_0x43ff05(0x2c9)])??'/universer-api/comb',_0x876b03,_0x545592);try{await this[_0x43ff05(0xe3)][_0x43ff05(0x348)](_0x1e546b,{'body':_0x29e6ee});}catch(_0x4a1235){throw this[_0x43ff05(0x2a9)][_0x43ff05(0x223)](_0x43ff05(0x109),_0x43ff05(0x334)),_0x4a1235;}}async[_0x13a2b1(0x3a8)](_0x1f12c0){const _0x32de1b=_0x13a2b1;let {unitID:_0x2fcdff,from:_0x43e340,to:_0x55c8f0,unitType:_0x443063}=_0x1f12c0[_0x32de1b(0x35d)];return(await this[_0x32de1b(0x30e)][_0x32de1b(0x235)]({'metadata':void 0x0},{'unitID':_0x2fcdff,'type':_0x443063,'from':_0x43e340,'to':_0x55c8f0}))['changesets'][_0x32de1b(0x22b)](_0x2d234f=>((_0x2d234f[_0x32de1b(0x288)]===null||_0x2d234f[_0x32de1b(0x288)]===void 0x0)&&(_0x2d234f[_0x32de1b(0x288)]=[]),_0x2d234f));}};Nn=H([V(0x0,_0x4b5aa3(_0x34ebb2)),V(0x1,_0x4b5aa3(_0x42bbda)),V(0x2,_0xee80fd),V(0x3,_0x13ba11),V(0x4,_0x558b75)],Nn);const Pn=_0x51623a(_0x13a2b1(0x111));function Fn(_0x219ec7={}){const _0x35febb=_0x13a2b1;return _0x219ec7[_0x35febb(0x32c)]?{'resolveUnit':_0x219ec7[_0x35febb(0x32c)]}:{'resolveUnit':_0x5d4e7e=>({'target':{'unitId':_0x5d4e7e['unitId'],'unitType':_0x5d4e7e[_0x35febb(0x230)]}})};}function In(_0x116ad0,_0x2387aa,_0x271b15){const _0x52cd50=_0x13a2b1;let _0x4871e9=_0x271b15['target']['endpoint'];if(_0x4871e9!=null&&_0x4871e9['trim']()==='')throw Error(_0x52cd50(0x205));if(!_0x271b15['target'][_0x52cd50(0x2f1)])throw Error(_0x52cd50(0x254));return{'localUnitId':_0x116ad0,'unitType':_0x2387aa,'target':{'endpoint':_0x4871e9,'unitId':_0x271b15[_0x52cd50(0x302)][_0x52cd50(0x2f1)],'unitType':_0x271b15['target'][_0x52cd50(0x230)]??_0x2387aa},'changeset':_0x271b15[_0x52cd50(0x275)]};}let Ln=class extends _0x21e429{constructor(_0x12ea5b,_0xe9debd,_0x4a54dd,_0x4f2421,_0x5bd9a5,_0x22ba6b){const _0x4e4b92=_0x13a2b1;super(),this['_injector']=_0x12ea5b,this[_0x4e4b92(0x2a9)]=_0xe9debd,this['_configService']=_0x4a54dd,this[_0x4e4b92(0x33a)]=_0x4f2421,this['_collaborationUIEventService']=_0x5bd9a5,this[_0x4e4b92(0x2b4)]=_0x22ba6b,z(this,'_sessions',new Map()),z(this,_0x4e4b92(0x22a),new Map()),z(this,_0x4e4b92(0x202),new Map()),z(this,_0x4e4b92(0x29b),new Map()),z(this,_0x4e4b92(0x118),void 0x0),z(this,_0x4e4b92(0x1f0),this[_0x4e4b92(0x214)](void 0x0)[_0x4e4b92(0x1f0)][_0x4e4b92(0x36c)]()),z(this,_0x4e4b92(0x375),new _0x20736c(0x0)),z(this,_0x4e4b92(0x374),this[_0x4e4b92(0x375)][_0x4e4b92(0x36c)]());}[_0x13a2b1(0x307)](){const _0x23632f=_0x13a2b1;this[_0x23632f(0x118)]||(this[_0x23632f(0x118)]=this[_0x23632f(0x248)]['get'](On,_0x61e5b['OPTIONAL'])??void 0x0,this[_0x23632f(0x118)]&&this[_0x23632f(0x2be)](this[_0x23632f(0x118)][_0x23632f(0x2d0)][_0x23632f(0x31e)](_0x163201=>{const _0x55dfec=_0x23632f;_0x163201&&this[_0x55dfec(0x26e)](),_0x163201||this['_socketChannels'][_0x55dfec(0x39d)](_0x12d077=>this['_onOffline'](_0x12d077));})));}[_0x13a2b1(0x1a1)](){const _0x43658f=_0x13a2b1;super['dispose'](),this['_socketChannels']['forEach'](_0x2ae6c7=>{const _0xea42e2=_0x148e;var _0x1a7e5,_0x1f4499,_0x11e158;(_0x1a7e5=_0x2ae6c7[_0xea42e2(0x2f9)])==null||_0x1a7e5[_0xea42e2(0x19f)](),_0x2ae6c7['socketSubscription']=null,this['_clearHandshakeTimer'](_0x2ae6c7),this[_0xea42e2(0x370)](_0x2ae6c7),this['_clearTimeoutTimer'](_0x2ae6c7),this[_0xea42e2(0x100)](_0x2ae6c7),(_0x1f4499=_0x2ae6c7[_0xea42e2(0x1f0)]['getValue']())==null||_0x1f4499[_0xea42e2(0x297)](),(_0x11e158=_0x2ae6c7[_0xea42e2(0x14a)])==null||_0x11e158[_0xea42e2(0x297)](),_0x2ae6c7[_0xea42e2(0x1f0)]['complete']();}),this[_0x43658f(0x29b)][_0x43658f(0x38f)](),this[_0x43658f(0x23c)][_0x43658f(0x39d)](_0x3f112c=>_0x3f112c[_0x43658f(0x1a1)]()),this['_sessions']['clear'](),this[_0x43658f(0x202)]['clear'](),this['_status$']['complete']();}async[_0x13a2b1(0xf2)](_0x2dc923,_0x4d006a){const _0x2fedbc=_0x13a2b1;if(this[_0x2fedbc(0x307)](),this[_0x2fedbc(0x23c)][_0x2fedbc(0xeb)](_0x2dc923))return this[_0x2fedbc(0x23c)]['get'](_0x2dc923);let _0x5288df=this['_pendingSessions'][_0x2fedbc(0x102)](_0x2dc923);if(_0x5288df)return _0x5288df;let _0x16df1d=this[_0x2fedbc(0x153)](_0x2dc923,_0x4d006a);this[_0x2fedbc(0x22a)][_0x2fedbc(0x346)](_0x2dc923,_0x16df1d);try{return await _0x16df1d;}finally{this[_0x2fedbc(0x22a)]['delete'](_0x2dc923);}}async[_0x13a2b1(0x153)](_0x347584,_0x131e03){const _0x8c40ac=_0x13a2b1;let _0x3971fa=await this[_0x8c40ac(0x129)](_0x347584,_0x131e03),_0x31a097=this[_0x8c40ac(0x214)](_0x3971fa['target'][_0x8c40ac(0x312)]);this[_0x8c40ac(0x35a)](_0x31a097);let _0x20f695=this[_0x8c40ac(0x248)][_0x8c40ac(0x362)](Kt,_0x3971fa,_0x31a097['socket$'][_0x8c40ac(0x36c)]());return this[_0x8c40ac(0x23c)][_0x8c40ac(0x346)](_0x347584,_0x20f695),this[_0x8c40ac(0x202)][_0x8c40ac(0x346)](_0x347584,_0x31a097['endpointKey']),_0x20f695;}['closeSession'](_0x4dc158){const _0x9e6846=_0x13a2b1;let _0x30f5f9=this[_0x9e6846(0x23c)][_0x9e6846(0x102)](_0x4dc158),_0x292cb8=this[_0x9e6846(0x202)][_0x9e6846(0x102)](_0x4dc158);if(_0x30f5f9&&(this['_sessions'][_0x9e6846(0x112)](_0x4dc158),this['_sessionChannels']['delete'](_0x4dc158),_0x30f5f9['close']()),_0x292cb8!==void 0x0&&!this['_hasSessionsForEndpoint'](_0x292cb8)){let _0x4cd1f8=this[_0x9e6846(0x29b)]['get'](_0x292cb8);_0x4cd1f8&&this['_onOffline'](_0x4cd1f8);}}['reconnect'](){const _0x54d5da=_0x13a2b1;(this[_0x54d5da(0x29b)][_0x54d5da(0xe8)]?[...this[_0x54d5da(0x29b)][_0x54d5da(0x2d5)]()]:[this[_0x54d5da(0x214)](void 0x0)])[_0x54d5da(0x39d)](_0x3eb1f2=>{const _0x17ba6e=_0x54d5da;!this[_0x17ba6e(0x17d)](_0x3eb1f2['endpointKey'])||_0x3eb1f2[_0x17ba6e(0x12b)]||_0x3eb1f2[_0x17ba6e(0x14a)]||_0x3eb1f2[_0x17ba6e(0x2fd)]||(_0x3eb1f2['retryCount']=0x0,this[_0x17ba6e(0x370)](_0x3eb1f2),this[_0x17ba6e(0x16a)](_0x3eb1f2));});}['_clearRetryConnectingTimer'](_0x3861d6){const _0xdad0d0=_0x13a2b1;_0x3861d6[_0xdad0d0(0x383)]!=null&&(clearTimeout(_0x3861d6[_0xdad0d0(0x383)]),_0x3861d6[_0xdad0d0(0x383)]=null);}['_createSocket'](_0x2a32ee){const _0x300c18=_0x13a2b1;let _0x4f2e8d=this[_0x300c18(0x3a3)][_0x300c18(0x327)](R),_0x2e2406=_0x2a32ee[_0x300c18(0x312)]??(_0x4f2e8d==null?void 0x0:_0x4f2e8d[_0x300c18(0x1a2)])??'ws://127.0.0.1:8000/universer-api/comb/connect';return this[_0x300c18(0x33a)][_0x300c18(0x35b)](_0x2e2406);}async[_0x13a2b1(0x35a)](_0x2e731d){const _0x25ad70=_0x13a2b1;var _0x4a8a80;if(this[_0x25ad70(0x21d)]||((_0x4a8a80=this['_networkConditionService'])==null?void 0x0:_0x4a8a80[_0x25ad70(0x345)])===!0x1||_0x2e731d[_0x25ad70(0x12b)]||_0x2e731d[_0x25ad70(0x14a)]||_0x2e731d[_0x25ad70(0x2fd)])return;let _0x124a52={};_0x2e731d['connectionAttempt']=_0x124a52;try{let _0x7db740=await this[_0x25ad70(0x265)](_0x2e731d);if(this[_0x25ad70(0x21d)]||_0x2e731d[_0x25ad70(0x2fd)]!==_0x124a52){_0x7db740==null||_0x7db740[_0x25ad70(0x297)]();return;}if(_0x7db740){var _0x24d4b8;_0x2e731d[_0x25ad70(0x14a)]=_0x7db740,_0x2e731d['handshakeTimer']=setTimeout(()=>{const _0x2e2087=_0x25ad70;!this[_0x2e2087(0x21d)]&&_0x2e731d['candidateSocket']===_0x7db740&&this[_0x2e2087(0x1b1)](_0x2e731d);},0x4e20);let _0x32f42c=_0x7db740['send'];_0x7db740[_0x25ad70(0x1d8)]=_0x4a061c=>(_0x4a061c[_0x25ad70(0x125)]!==_0x1d0730[_0x25ad70(0x39a)]&&_0x2e731d[_0x25ad70(0x12b)]&&_0x2e731d[_0x25ad70(0x1f0)][_0x25ad70(0xe5)]()===_0x7db740&&this['_rescheduleHeartbeat'](_0x2e731d),_0x32f42c[_0x25ad70(0x2ea)](_0x7db740,[_0x4a061c])),(_0x24d4b8=_0x2e731d[_0x25ad70(0x2f9)])==null||_0x24d4b8[_0x25ad70(0x19f)]();let _0x151a95=new _0x3c3c9b();_0x2e731d[_0x25ad70(0x2f9)]=_0x151a95,_0x151a95[_0x25ad70(0x270)](_0x7db740[_0x25ad70(0x10c)][_0x25ad70(0x31e)](_0x2bf029=>this[_0x25ad70(0x3a4)](_0x2e731d,_0x7db740,_0x2bf029))),_0x151a95[_0x25ad70(0x270)](_0x7db740['error$']['pipe'](_0x58421e(0x1))[_0x25ad70(0x31e)](_0x150c73=>this[_0x25ad70(0x2a9)][_0x25ad70(0x223)](_0x25ad70(0x1b6),_0x150c73))),_0x151a95[_0x25ad70(0x270)](_0x7db740[_0x25ad70(0x105)]['pipe'](_0x58421e(0x1))['subscribe'](()=>{const _0x602f5c=_0x25ad70;this[_0x602f5c(0x1b0)](_0x2e731d,_0x7db740);})),_0x151a95[_0x25ad70(0x270)](_0x7db740['close$'][_0x25ad70(0x317)](_0x58421e(0x1))[_0x25ad70(0x31e)](_0x2b2a7e=>{const _0xffd23c=_0x25ad70;(_0x2e731d[_0xffd23c(0x14a)]===_0x7db740||_0x2e731d['socket$'][_0xffd23c(0xe5)]()===_0x7db740)&&(this['_logService'][_0xffd23c(0x195)](_0xffd23c(0x294),_0xffd23c(0x2a3),_0x2b2a7e),this['_onConnectionFailed'](_0x2e731d));}));}}catch(_0x24b1da){if(_0x2e731d[_0x25ad70(0x2fd)]!==_0x124a52)return;this[_0x25ad70(0x2a9)][_0x25ad70(0x223)](_0x24b1da),this['_onConnectionFailed'](_0x2e731d);}finally{_0x2e731d[_0x25ad70(0x2fd)]===_0x124a52&&(_0x2e731d['connectionAttempt']=null);}}[_0x13a2b1(0x1b0)](_0x30facb,_0x3b8f42){const _0x4e641f=_0x13a2b1;this['_disposed']||_0x30facb[_0x4e641f(0x14a)]!==_0x3b8f42||(this[_0x4e641f(0x2a9)][_0x4e641f(0x195)](_0x4e641f(0x294),_0x4e641f(0x274)),_0x3b8f42[_0x4e641f(0x1d8)]({'cmd':_0x1d0730[_0x4e641f(0x130)]}));}[_0x13a2b1(0x283)](_0xce9d5f){const _0x4c71d6=_0x13a2b1;var _0x1e8ff9;let _0x35ff79=_0xce9d5f[_0x4c71d6(0x1f0)][_0x4c71d6(0xe5)]()??_0xce9d5f['candidateSocket'];_0xce9d5f['connectionAttempt']=null,_0xce9d5f[_0x4c71d6(0x12b)]=!0x1,_0xce9d5f[_0x4c71d6(0x14a)]=null,(_0x1e8ff9=_0xce9d5f[_0x4c71d6(0x2f9)])==null||_0x1e8ff9['unsubscribe'](),_0xce9d5f[_0x4c71d6(0x2f9)]=null,this[_0x4c71d6(0x375)]['next'](0x2),_0xce9d5f[_0x4c71d6(0x1f0)][_0x4c71d6(0x110)](null),this[_0x4c71d6(0x370)](_0xce9d5f),this[_0x4c71d6(0x27a)](_0xce9d5f),this[_0x4c71d6(0xf5)](_0xce9d5f),this['_clearHeartbeatTimer'](_0xce9d5f),_0x35ff79==null||_0x35ff79[_0x4c71d6(0x297)]();}[_0x13a2b1(0x1b1)](_0x83069){const _0x362bee=_0x13a2b1;var _0x5e28c9;this[_0x362bee(0x283)](_0x83069),!this[_0x362bee(0x21d)]&&((_0x5e28c9=this[_0x362bee(0x118)])==null?void 0x0:_0x5e28c9[_0x362bee(0x345)])!==!0x1&&this[_0x362bee(0x17d)](_0x83069[_0x362bee(0x20f)])&&(_0x83069[_0x362bee(0x2f0)]<(this[_0x362bee(0x3a3)][_0x362bee(0x327)](_0x362bee(0x34b))??0x3)?(this[_0x362bee(0x101)][_0x362bee(0x13d)]({'id':_0x362bee(0x1d9)}),this[_0x362bee(0x16a)](_0x83069)):this['_collaborationUIEventService'][_0x362bee(0x13d)]({'id':_0x362bee(0x1ea)}));}[_0x13a2b1(0x16a)](_0x3799ce){const _0x54be3b=_0x13a2b1;let _0x1f05d0=_0x3799ce[_0x54be3b(0x2f0)],_0x5f2468=this[_0x54be3b(0x3a3)][_0x54be3b(0x327)](R),_0x29831e=_0x1f05d0===0x0?0x0:((_0x5f2468==null?void 0x0:_0x5f2468[_0x54be3b(0x136)])??0x4e20)*0x2**_0x1f05d0;_0x3799ce[_0x54be3b(0x383)]=setTimeout(()=>{const _0x1a9777=_0x54be3b;clearTimeout(_0x3799ce['retryConnectingTimer']),_0x3799ce[_0x1a9777(0x383)]=null,this[_0x1a9777(0x35a)](_0x3799ce);},_0x29831e),_0x3799ce[_0x54be3b(0x2f0)]+=0x1;}async[_0x13a2b1(0x129)](_0x134450,_0x111c98){const _0x1eb8e8=_0x13a2b1;return In(_0x134450,_0x111c98,await this[_0x1eb8e8(0x2b4)][_0x1eb8e8(0x32c)]({'unitId':_0x134450,'unitType':_0x111c98}));}['_onMessage'](_0x3e0bf0,_0x5eae4,_0x36e7e3){const _0xe9054=_0x13a2b1;if(this[_0xe9054(0x21d)]||_0x3e0bf0[_0xe9054(0x14a)]!==_0x5eae4&&_0x3e0bf0[_0xe9054(0x1f0)][_0xe9054(0xe5)]()!==_0x5eae4)return;let {cmd:_0x41ba80}=_0x36e7e3;if(_0x41ba80===_0x1d0730[_0xe9054(0x130)]&&!_0x3e0bf0[_0xe9054(0x12b)]){var _0x37509a;if((_0x36e7e3[_0xe9054(0x31f)]??_0x29811e['OK'])!==_0x29811e['OK']||!((_0x37509a=_0x36e7e3[_0xe9054(0x35d)])!=null&&_0x37509a[_0xe9054(0x1e6)])){this[_0xe9054(0x1b1)](_0x3e0bf0);return;}this[_0xe9054(0x27a)](_0x3e0bf0),_0x5eae4['memberID']=_0x36e7e3[_0xe9054(0x35d)][_0xe9054(0x1e6)],_0x3e0bf0[_0xe9054(0x2f0)]=0x0,_0x3e0bf0[_0xe9054(0x12b)]=!0x0,_0x3e0bf0[_0xe9054(0x14a)]=null,_0x3e0bf0['socket$'][_0xe9054(0x110)](_0x5eae4),this[_0xe9054(0x375)]['next'](0x3);}_0x41ba80===_0x1d0730[_0xe9054(0x1f3)]&&this[_0xe9054(0xf5)](_0x3e0bf0),this[_0xe9054(0x12a)](_0x3e0bf0);}['_hasSessionsForEndpoint'](_0x28e4bb){const _0x4a5681=_0x13a2b1;return[...this['_sessionChannels'][_0x4a5681(0x2d5)]()][_0x4a5681(0x311)](_0x10d1bc=>_0x10d1bc===_0x28e4bb);}['_getSocketChannel'](_0xa4cb31){const _0x471d41=_0x13a2b1;let _0x55b907=_0xa4cb31??'',_0x42ac91=this['_socketChannels']['get'](_0x55b907);if(_0x42ac91)return _0x42ac91;let _0x35fb44={'endpointKey':_0x55b907,'endpoint':_0xa4cb31,'socket$':new _0x20736c(void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x471d41(0x346)](_0x55b907,_0x35fb44),_0x35fb44;}[_0x13a2b1(0x27a)](_0x3250e9){const _0x528aae=_0x13a2b1;_0x3250e9[_0x528aae(0x146)]!=null&&(clearTimeout(_0x3250e9[_0x528aae(0x146)]),_0x3250e9[_0x528aae(0x146)]=null);}[_0x13a2b1(0x12a)](_0x1d4b91){const _0x10a402=_0x13a2b1;this['_clearHeartbeatTimer'](_0x1d4b91),_0x1d4b91['socketReady']&&(_0x1d4b91['sendHeartbeatTimer']=setTimeout(()=>this[_0x10a402(0xea)](_0x1d4b91),this[_0x10a402(0x3a3)][_0x10a402(0x327)](_0x10a402(0x22f))??0x7530));}['_sendHeartbeat'](_0x268803){const _0x6d87fb=_0x13a2b1;let _0x25781b=_0x268803[_0x6d87fb(0x1f0)][_0x6d87fb(0xe5)]();_0x268803[_0x6d87fb(0x12b)]&&_0x25781b&&(_0x25781b[_0x6d87fb(0x1d8)]({'cmd':_0x1d0730[_0x6d87fb(0x1f3)]}),this[_0x6d87fb(0x2ec)](_0x268803));}[_0x13a2b1(0x2ec)](_0x46dc7f){const _0x3d5b00=_0x13a2b1;_0x46dc7f[_0x3d5b00(0x15d)]=setTimeout(()=>this[_0x3d5b00(0x1b1)](_0x46dc7f),this[_0x3d5b00(0x3a3)]['getConfig'](_0x3d5b00(0x25c))??0x4e20);}[_0x13a2b1(0x100)](_0x3f548d){const _0x3fb690=_0x13a2b1;_0x3f548d[_0x3fb690(0x1b8)]!=null&&(clearTimeout(_0x3f548d['sendHeartbeatTimer']),_0x3f548d[_0x3fb690(0x1b8)]=null);}[_0x13a2b1(0xf5)](_0xb5d04f){const _0x4e1541=_0x13a2b1;_0xb5d04f['timeoutTimer']!=null&&(clearTimeout(_0xb5d04f[_0x4e1541(0x15d)]),_0xb5d04f[_0x4e1541(0x15d)]=null);}};Ln=H([V(0x0,_0x4b5aa3(_0x34ebb2)),V(0x1,_0x13ba11),V(0x2,_0xee80fd),V(0x3,jn),V(0x4,_0x4b5aa3(B)),V(0x5,Pn)],Ln);let Rn=class extends _0x7b0f5f{constructor(_0x5d5bbb,_0x1ed97a,_0x1b527c,_0x3960db){const _0x5cc172=_0x13a2b1;var _0x2560d0;super(),this['_injector']=_0x5d5bbb,this[_0x5cc172(0x28e)]=_0x1ed97a,this[_0x5cc172(0x3a3)]=_0x1b527c,this[_0x5cc172(0x32b)]=_0x3960db,z(this,_0x5cc172(0x1e8),new Map()),z(this,_0x5cc172(0x17c),new _0x579c12()),z(this,'entityInit$',this[_0x5cc172(0x17c)][_0x5cc172(0x36c)]()),((_0x2560d0=this[_0x5cc172(0x3a3)]['getConfig']('collaboration-client.config'))==null?void 0x0:_0x2560d0[_0x5cc172(0xe1)])!==!0x1&&this['_init']();}['dispose'](){const _0x2ab85c=_0x13a2b1;super['dispose'](),this[_0x2ab85c(0x1e8)][_0x2ab85c(0x39d)](_0x4112a1=>_0x4112a1[_0x2ab85c(0x1a1)]()),this[_0x2ab85c(0x1e8)]['clear']();}[_0x13a2b1(0x10e)](_0x5bfb6f){const _0x37dfe4=_0x13a2b1;return this[_0x37dfe4(0x1e8)][_0x37dfe4(0x102)](_0x5bfb6f)??null;}['getCollabEntity$'](_0x4ad47b){const _0x3d35c8=_0x13a2b1;let _0x31a474=this[_0x3d35c8(0x10e)](_0x4ad47b);return _0x31a474?_0x48ff17(_0x31a474):this[_0x3d35c8(0x17c)][_0x3d35c8(0x317)](_0x649d5(_0x4853b8=>_0x4853b8[_0x3d35c8(0xec)]===_0x4ad47b));}[_0x13a2b1(0x25f)](_0x23008b){const _0x3ce7ff=_0x13a2b1;return _0x116689(this[_0x3ce7ff(0x227)](_0x23008b)['pipe'](_0x1e8773(()=>void 0x0)));}[_0x13a2b1(0x139)](){const _0x32e8ba=_0x13a2b1;this[_0x32e8ba(0x32b)][_0x32e8ba(0x1a9)](_0x574677[_0x32e8ba(0x1ef)])[_0x32e8ba(0x317)](_0x183735(this[_0x32e8ba(0x29e)]),_0x2103b6(0x10))[_0x32e8ba(0x31e)](async _0x1d99c5=>{const _0x508681=_0x32e8ba;let _0x53a688=_0x1d99c5[_0x508681(0x33f)][_0x508681(0x16f)](),_0x375d36=await this['_startCollaboration'](_0x53a688,_0x574677[_0x508681(0x1ef)]);this[_0x508681(0x1e8)][_0x508681(0x346)](_0x53a688,_0x375d36);}),this[_0x32e8ba(0x32b)][_0x32e8ba(0x1a9)](_0x574677['UNIVER_DOC'])['pipe'](_0x183735(this[_0x32e8ba(0x29e)]),_0x2103b6(0x10))[_0x32e8ba(0x317)](_0x649d5(_0x1f643d=>!_0x1f643d[_0x32e8ba(0x33f)][_0x32e8ba(0x16f)]()[_0x32e8ba(0x143)]('__')))[_0x32e8ba(0x31e)](async _0x2699f7=>{const _0x1f69d8=_0x32e8ba;let _0x23169a=_0x2699f7[_0x1f69d8(0x33f)][_0x1f69d8(0x16f)](),_0x158157=await this['_startCollaboration'](_0x23169a,_0x574677[_0x1f69d8(0x113)]);this[_0x1f69d8(0x1e8)][_0x1f69d8(0x346)](_0x23169a,_0x158157);}),this['_univerInstanceService'][_0x32e8ba(0x1a9)](_0x574677[_0x32e8ba(0x36b)])[_0x32e8ba(0x317)](_0x183735(this[_0x32e8ba(0x29e)]),_0x2103b6(0x10))[_0x32e8ba(0x31e)](async _0x407cd6=>{const _0x2b660e=_0x32e8ba;let _0x5b32d3=_0x407cd6['unit'][_0x2b660e(0x16f)](),_0x4466a6=await this['_startCollaboration'](_0x5b32d3,_0x574677[_0x2b660e(0x36b)]);this[_0x2b660e(0x1e8)][_0x2b660e(0x346)](_0x5b32d3,_0x4466a6);}),this[_0x32e8ba(0x32b)]['getTypeOfUnitAdded$'](_0x574677[_0x32e8ba(0x15a)])[_0x32e8ba(0x317)](_0x183735(this[_0x32e8ba(0x29e)]),_0x2103b6(0x10))[_0x32e8ba(0x31e)](async _0x1b3c7e=>{const _0x4db940=_0x32e8ba;let _0x95e2b7=_0x1b3c7e[_0x4db940(0x33f)][_0x4db940(0x16f)](),_0x440724=await this['_startCollaboration'](_0x95e2b7,_0x574677['UNIVER_BOARD']);this[_0x4db940(0x1e8)]['set'](_0x95e2b7,_0x440724);}),this[_0x32e8ba(0x32b)]['getTypeOfUnitAdded$'](_0x574677[_0x32e8ba(0x299)])['pipe'](_0x183735(this[_0x32e8ba(0x29e)]),_0x2103b6(0x10))[_0x32e8ba(0x31e)](async _0x3f7c4d=>{const _0x4758e0=_0x32e8ba;let _0x346637=_0x3f7c4d[_0x4758e0(0x33f)][_0x4758e0(0x16f)](),_0x5bfc3c=await this['_startCollaboration'](_0x346637,_0x574677['UNIVER_BASE']);this[_0x4758e0(0x1e8)]['set'](_0x346637,_0x5bfc3c);}),this['_univerInstanceService'][_0x32e8ba(0x1a9)](_0x574677['UNIVER_PDF'])[_0x32e8ba(0x317)](_0x183735(this[_0x32e8ba(0x29e)]),_0x2103b6(0x10))['subscribe'](async _0x11aa5a=>{const _0x532ad7=_0x32e8ba;let _0x3e2edd=_0x11aa5a[_0x532ad7(0x33f)][_0x532ad7(0x16f)](),_0xb452c2=await this['_startCollaboration'](_0x3e2edd,_0x574677[_0x532ad7(0x329)]);this[_0x532ad7(0x1e8)]['set'](_0x3e2edd,_0xb452c2);}),_0x6c682a(this[_0x32e8ba(0x32b)][_0x32e8ba(0x2fa)](_0x574677['UNIVER_SHEET']),this[_0x32e8ba(0x32b)]['getTypeOfUnitDisposed$'](_0x574677[_0x32e8ba(0x113)]),this[_0x32e8ba(0x32b)][_0x32e8ba(0x2fa)](_0x574677[_0x32e8ba(0x36b)]),this[_0x32e8ba(0x32b)]['getTypeOfUnitDisposed$'](_0x574677[_0x32e8ba(0x15a)]),this[_0x32e8ba(0x32b)]['getTypeOfUnitDisposed$'](_0x574677[_0x32e8ba(0x299)]),this[_0x32e8ba(0x32b)][_0x32e8ba(0x2fa)](_0x574677['UNIVER_PDF']))['pipe'](_0x183735(this[_0x32e8ba(0x29e)]))[_0x32e8ba(0x31e)](_0x5da88f=>{const _0x56f005=_0x32e8ba;let _0x4335ae=_0x5da88f[_0x56f005(0x16f)](),_0x5e7ea0=this[_0x56f005(0x1e8)][_0x56f005(0x102)](_0x4335ae);_0x5e7ea0&&(_0x5e7ea0[_0x56f005(0x1a1)](),this[_0x56f005(0x1e8)]['delete'](_0x4335ae));});}async['_startCollaboration'](_0x1b812e,_0x565ce6){const _0x1e1591=_0x13a2b1;let _0x2f2321=await this[_0x1e1591(0x28e)]['requireSession'](_0x1b812e),_0x7fa8a3=this[_0x1e1591(0x248)][_0x1e1591(0x362)](this[_0x1e1591(0x1bb)](_0x565ce6),_0x1b812e,_0x565ce6,_0x2f2321);return await _0x7fa8a3[_0x1e1591(0x212)](),this[_0x1e1591(0x17c)][_0x1e1591(0x110)](_0x7fa8a3),_0x7fa8a3;}[_0x13a2b1(0x1bb)](_0xd30090){const _0x4aecfc=_0x13a2b1;switch(_0xd30090){case _0x574677[_0x4aecfc(0x113)]:return Sn;case _0x574677['UNIVER_SHEET']:return wn;case _0x574677[_0x4aecfc(0x36b)]:return Tn;case _0x574677[_0x4aecfc(0x15a)]:return En;case _0x574677[_0x4aecfc(0x299)]:return Cn;case _0x574677[_0x4aecfc(0x329)]:return Dn;default:throw Error(_0x4aecfc(0x363)+_0xd30090);}}};Rn=H([V(0x0,_0x4b5aa3(_0x34ebb2)),V(0x1,_0x4b5aa3(Ln)),V(0x2,_0xee80fd),V(0x3,_0x95142)],Rn);var zn=_0x13a2b1(0x13c),Bn=_0x13a2b1(0x135);let Vn=class extends _0x21e429{constructor(_0x4dc024,_0x54cb1f){const _0x49a771=_0x13a2b1;super(),this[_0x49a771(0x32b)]=_0x4dc024,this[_0x49a771(0x3a3)]=_0x54cb1f,this[_0x49a771(0x139)]();}['_init'](){const _0x1c39de=_0x13a2b1;this[_0x1c39de(0x2be)](this[_0x1c39de(0x32b)][_0x1c39de(0x114)][_0x1c39de(0x31e)](()=>{const _0x5bc2c7=_0x1c39de;let _0x1288ef=this[_0x5bc2c7(0x32b)]['getFocusedUnit'](),_0x327da8=this['_configService'][_0x5bc2c7(0x327)]('DEFAULT_FILE_NAME')??_0x5bc2c7(0x277);_0x1288ef instanceof _0x4bf27a&&(_0x327da8=_0x1288ef[_0x5bc2c7(0x331)]),document['title']=_0x327da8;}));}};Vn=H([V(0x0,_0x95142),V(0x1,_0xee80fd)],Vn);const Hn=_0x51623a(_0x13a2b1(0x2e1));let Un=class{constructor(_0x57e394,_0x47c989,_0x2e4deb){const _0x4d834f=_0x13a2b1;this['_httpService']=_0x57e394,this[_0x4d834f(0x3a3)]=_0x47c989,this[_0x4d834f(0x32b)]=_0x2e4deb;}['getUploadOptions'](){const _0x3063b9=_0x13a2b1;return this['_getConfig']()[_0x3063b9(0x368)]??{};}async[_0x13a2b1(0x272)](_0x385e18){const _0x4a3988=_0x13a2b1;let _0xcbb714=this[_0x4a3988(0x27d)]();if(Wn(_0x385e18,_0xcbb714),_0xcbb714[_0x4a3988(0x1d7)])return _0xcbb714['upload'](_0x385e18);let _0x27f4ec=await this[_0x4a3988(0x2e8)](_0x385e18);return{'id':_0x27f4ec,'name':_0x385e18[_0x4a3988(0x331)],'mimeType':_0x385e18[_0x4a3988(0xdf)],'size':_0x385e18[_0x4a3988(0xe8)],'sourceType':_0x1565e9[_0x4a3988(0x2ab)],'source':_0x27f4ec};}async[_0x13a2b1(0x1c2)](_0x58b43e,_0x419c8b){const _0x2e14ab=_0x13a2b1;if(_0x419c8b!==_0x1565e9[_0x2e14ab(0x2ab)])return _0x58b43e;let _0x3ffe41=(await this['_httpService'][_0x2e14ab(0x102)](this[_0x2e14ab(0x24b)]()[_0x2e14ab(0x321)]('{fileID}',_0x58b43e)))['body'];if(_0x3ffe41[_0x2e14ab(0x223)]&&_0x3ffe41[_0x2e14ab(0x223)]['code']!==_0x42630f['OK'])throw _0x3ffe41[_0x2e14ab(0x223)];if(!_0x3ffe41['url'])throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.');return _0x3a413c(_0x3ffe41['url'],this[_0x2e14ab(0x36e)]());}async[_0x13a2b1(0x2e8)](_0x34100d){const _0x1a2de5=_0x13a2b1;let _0x3d3b33=this[_0x1a2de5(0x32b)][_0x1a2de5(0x256)](),_0x3f3f0f=_0x3d3b33==null?void 0x0:_0x3d3b33[_0x1a2de5(0x16f)]();if(!_0x3f3f0f)throw Error(_0x1a2de5(0x253));let _0x25cebf=new FormData();_0x25cebf[_0x1a2de5(0x35e)](_0x1a2de5(0x296),_0x34100d);let _0x57882d=this['_getUploadFileURL']()+_0x1a2de5(0x144)+_0x34100d[_0x1a2de5(0xe8)][_0x1a2de5(0x2ff)]()+_0x1a2de5(0x37c)+_0x24d03a['UnitEmbedded']+_0x1a2de5(0x12e)+encodeURIComponent(_0x3f3f0f),_0xcf6e2=(await this[_0x1a2de5(0xe3)][_0x1a2de5(0x348)](_0x57882d,{'body':_0x25cebf}))[_0x1a2de5(0x377)]['FileId'];if(typeof _0xcf6e2!=_0x1a2de5(0x2b1)||!_0xcf6e2)throw Error(_0x1a2de5(0x2e6));return _0xcf6e2;}[_0x13a2b1(0x28f)](){const _0x4b18d4=_0x13a2b1;return this[_0x4b18d4(0x1b7)]()[_0x4b18d4(0x16e)]??_0x4b18d4(0x12d);}['_getSignURL'](){const _0x39f704=_0x13a2b1;return this[_0x39f704(0x1b7)]()[_0x39f704(0x276)]??_0x39f704(0xfb);}[_0x13a2b1(0x36e)](){const _0x2bdb52=_0x13a2b1;let _0xf09f22=this[_0x2bdb52(0x1b7)]();return _0xf09f22[_0x2bdb52(0x355)]?_0xf09f22[_0x2bdb52(0x355)]:typeof location<'u'?location['origin']:_0xf09f22[_0x2bdb52(0x16e)]??'';}[_0x13a2b1(0x1b7)](){const _0x531f31=_0x13a2b1;return this[_0x531f31(0x3a3)][_0x531f31(0x327)](_0x531f31(0x174))??{};}};Un=H([V(0x0,_0x4b5aa3(_0x42bbda)),V(0x1,_0x4b5aa3(_0xee80fd)),V(0x2,_0x4b5aa3(_0x95142))],Un);function Wn(_0x55389d,_0x512066){const _0x3b7a7b=_0x13a2b1;var _0x16e7b7;if(_0x512066[_0x3b7a7b(0x193)]!=null&&_0x55389d['size']>_0x512066[_0x3b7a7b(0x193)])throw Error(_0x3b7a7b(0x25b));if((_0x16e7b7=_0x512066[_0x3b7a7b(0x1fa)])!=null&&_0x16e7b7['length']&&!_0x512066[_0x3b7a7b(0x1fa)][_0x3b7a7b(0x311)](_0x52100a=>_0x55389d[_0x3b7a7b(0xdf)]===_0x52100a||_0x55389d[_0x3b7a7b(0x331)][_0x3b7a7b(0x1fd)](_0x52100a)||_0x52100a[_0x3b7a7b(0x1fd)]('/*')&&_0x55389d[_0x3b7a7b(0xdf)]['startsWith'](_0x52100a['slice'](0x0,-0x1))))throw Error(_0x3b7a7b(0x123));}let Gn=class{constructor(_0x3fbf48,_0xfbdc54,_0x2ea4d4){const _0x5e6042=_0x13a2b1;this[_0x5e6042(0x3a3)]=_0x3fbf48,this[_0x5e6042(0xe3)]=_0xfbdc54,this[_0x5e6042(0x376)]=_0x2ea4d4,this[_0x5e6042(0x212)]();}['init'](){const _0x44d33d=_0x13a2b1;this[_0x44d33d(0xe3)][_0x44d33d(0x34d)]({'priority':0x1,'interceptor':(_0xec1470,_0x199cc4)=>_0x199cc4(_0xec1470)[_0x44d33d(0x317)](_0x84c944(async _0x26afe8=>{const _0x3fe62e=_0x44d33d;let _0x576f30=_0x26afe8;if(_0x576f30['status']===0x191){if(typeof window>'u')throw Error(_0x3fe62e(0x2ad));if(window[_0x3fe62e(0x351)](this['localeService']['t'](_0x3fe62e(0x17e)))){let _0x2c7e06=window['encodeURIComponent'](window[_0x3fe62e(0x341)]['href']);window[_0x3fe62e(0x341)][_0x3fe62e(0xe6)]=this[_0x3fe62e(0x2f5)]()+_0x3fe62e(0x393)+_0x2c7e06;}}return _0x576f30;}))});}[_0x13a2b1(0x2f5)](){const _0x15882c=_0x13a2b1;let _0x5c4461=this[_0x15882c(0x3a3)][_0x15882c(0x327)](R);return(_0x5c4461==null?void 0x0:_0x5c4461[_0x15882c(0x29c)])??_0x15882c(0x38c);}};Gn=H([V(0x0,_0xee80fd),V(0x1,_0x4b5aa3(_0x42bbda)),V(0x2,_0x4b5aa3(_0x413ac2))],Gn);let Kn=class extends _0x21e429{constructor(_0x55a3a3,_0xf9e529){const _0x4e2b20=_0x13a2b1;super(),this[_0x4e2b20(0xf1)]=_0x55a3a3,this[_0x4e2b20(0x3a3)]=_0xf9e529,z(this,_0x4e2b20(0x2af),!0x1),this[_0x4e2b20(0x236)]();}[_0x13a2b1(0x236)](){const _0x44e2bb=_0x13a2b1;let _0x50d37b=this;this[_0x44e2bb(0x2be)](this[_0x44e2bb(0xf1)][_0x44e2bb(0x34d)]({'priority':0x3e7,'interceptor':_0x2054bb({'isMatch'(_0x2724d6){const _0x276ed0=_0x44e2bb;var _0x275c95;if(_0x2724d6[_0x276ed0(0x2aa)]===_0x276ed0(0x106)&&(_0x275c95=_0x2724d6[_0x276ed0(0x245)])!=null&&_0x275c95[_0x276ed0(0x377)]){let {objectID:_0x15eb9f,objectType:_0x344085}=_0x2724d6[_0x276ed0(0x245)][_0x276ed0(0x377)]||{};if(!_0x15eb9f||_0x344085===void 0x0)return!0x1;let _0x4f1f17=_0x50d37b[_0x276ed0(0x322)]()+'/'+_0x344085+_0x276ed0(0x191)+encodeURIComponent(_0x15eb9f)+_0x276ed0(0x11e);if(_0x2724d6[_0x276ed0(0x2d7)]===_0x4f1f17)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4ac1d8){const _0x4fe50b=_0x44e2bb;var _0x34b3ee;return(_0x34b3ee=_0x4ac1d8[_0x4fe50b(0x245)])==null?void 0x0:_0x34b3ee['body'];},'mergeParamsToRequest'(_0x17a392,_0x5ce909){const _0x23e3fa=_0x44e2bb;let _0x275ee7=_0x50d37b[_0x23e3fa(0x322)]()+_0x23e3fa(0xe2),_0x505c4d=_0x17a392['reduce']((_0x7e5d7a,_0x3b5332)=>{const _0x2a3a36=_0x23e3fa;let {unitID:_0x2a8e4d,objectID:_0x506305,objectType:_0x59e55e,actions:_0x3f83d5}=_0x3b5332;return _0x7e5d7a[_0x2a8e4d]||(_0x7e5d7a[_0x2a8e4d]=Object[_0x2a3a36(0x364)](null)),_0x7e5d7a[_0x2a8e4d][_0x506305]||(_0x7e5d7a[_0x2a8e4d][_0x506305]={'objectID':_0x506305,'objectType':_0x59e55e,'actions':[]}),_0x7e5d7a[_0x2a8e4d][_0x506305]['actions']['push'](..._0x3f83d5),_0x7e5d7a;},Object[_0x23e3fa(0x364)](null)),_0x4b0d92=[];for(let _0x1e5c0d in _0x505c4d)for(let _0x12a863 in _0x505c4d[_0x1e5c0d]){let {actions:_0x21f30a,objectType:_0x4de9d6}=_0x505c4d[_0x1e5c0d][_0x12a863],_0x15e93a=[...new Set(_0x21f30a)];_0x4b0d92['push']({'unitID':_0x1e5c0d,'objectID':_0x12a863,'objectType':_0x4de9d6,'actions':_0x15e93a});}return new _0x1a8fe9('POST',_0x275ee7,{'headers':_0x5ce909[_0x23e3fa(0x120)],'withCredentials':_0x5ce909[_0x23e3fa(0xe7)],'responseType':_0x5ce909[_0x23e3fa(0x2a2)],'body':{'requests':_0x4b0d92}});}},{'distributeResult'(_0x249ee3,_0x517056){const _0x1d3315=_0x44e2bb;let {objectActions:_0x577127}=_0x249ee3;return _0x517056[_0x1d3315(0x22b)](_0x109cb9=>{const _0x2504d0=_0x1d3315;let {unitID:_0x4bb688,objectID:_0x162dd0,actions:_0x1c6618}=_0x109cb9,_0x4eadfd=_0x577127['find'](_0x5c99f3=>_0x5c99f3[_0x2504d0(0xec)]===_0x4bb688&&_0x5c99f3[_0x2504d0(0x219)]===_0x162dd0);return{'config':_0x109cb9,'result':{'actions':_0x1c6618[_0x2504d0(0x22b)](_0x308713=>_0x4eadfd==null?void 0x0:_0x4eadfd['actions']['find'](_0x5a8e09=>_0x5a8e09[_0x2504d0(0xf0)]===_0x308713))[_0x2504d0(0x2b0)](_0x10bbcc=>!!_0x10bbcc),'error':_0x249ee3[_0x2504d0(0x223)]}};});}})}));}[_0x13a2b1(0x322)](){const _0xc63d71=_0x13a2b1;let _0x1511cf=this['_configService'][_0xc63d71(0x327)](R);return(_0x1511cf==null?void 0x0:_0x1511cf['authzUrl'])??_0xc63d71(0x1ab);}async[_0x13a2b1(0x364)](_0x479290){const _0x43254d=_0x13a2b1;let _0x517ead=this[_0x43254d(0x322)]()+'/'+_0x479290[_0x43254d(0x1b9)]+'/object';return(await this[_0x43254d(0xf1)][_0x43254d(0x348)](_0x517ead,{'body':_0x479290}))[_0x43254d(0x377)]['objectID']||'';}async[_0x13a2b1(0x176)](_0x1a1615){const _0xb3f0e9=_0x13a2b1;let _0x248c99=this[_0xb3f0e9(0x322)]()+_0xb3f0e9(0x103);return(await this['_HTTPService'][_0xb3f0e9(0x348)](_0x248c99,{'body':_0x1a1615}))[_0xb3f0e9(0x377)][_0xb3f0e9(0x1ee)];}async[_0x13a2b1(0x2f7)](_0x36b032){const _0x474c34=_0x13a2b1;var _0x2fd51f;let _0x37af16=this['_getAPIPrefixPath']()+'/'+_0x36b032[_0x474c34(0x1b9)]+_0x474c34(0x191)+encodeURIComponent(_0x36b032[_0x474c34(0x219)]),_0x4b6c2d=await this['_HTTPService'][_0x474c34(0x2a7)](_0x37af16,{'body':_0x36b032});if((_0x4b6c2d==null||(_0x2fd51f=_0x4b6c2d[_0x474c34(0x377)])==null||(_0x2fd51f=_0x2fd51f[_0x474c34(0x223)])==null?void 0x0:_0x2fd51f[_0x474c34(0x31f)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x13a2b1(0x128)](_0xb47071){const _0x2d96d1=_0x13a2b1;let _0x1e224d=this[_0x2d96d1(0x322)]()+'/'+_0xb47071['objectType']+_0x2d96d1(0x191)+encodeURIComponent(_0xb47071[_0x2d96d1(0x219)])+'/allowed';return(await this['_HTTPService'][_0x2d96d1(0x348)](_0x1e224d,{'body':_0xb47071}))[_0x2d96d1(0x377)]['actions'];}async[_0x13a2b1(0xf6)](_0x12328d){const _0x535174=_0x13a2b1;let _0x2726c4=this[_0x535174(0x322)]()+_0x535174(0xe2);return(await this['_HTTPService']['post'](_0x2726c4,{'body':{'requests':_0x12328d}}))[_0x535174(0x377)][_0x535174(0x14b)];}async[_0x13a2b1(0x26d)](_0x206687){const _0x1ef037=_0x13a2b1;let _0x46ff4e=this[_0x1ef037(0x322)]()+'/'+_0x206687[_0x1ef037(0x1b9)]+_0x1ef037(0x2fe),_0x49a8f3=await this[_0x1ef037(0xf1)][_0x1ef037(0x348)](_0x46ff4e,{'body':_0x206687});return{'roles':_0x49a8f3[_0x1ef037(0x377)]['roles'],'actions':_0x49a8f3[_0x1ef037(0x377)][_0x1ef037(0x261)]};}async[_0x13a2b1(0x131)](_0x4e2a5c){const _0x3b1791=_0x13a2b1;let _0x595c0d=this[_0x3b1791(0x322)]()+'/collaborator';await this[_0x3b1791(0xf1)]['delete'](_0x595c0d,{'params':{'collaboratorID':_0x4e2a5c[_0x3b1791(0x32a)],'objectID':_0x4e2a5c[_0x3b1791(0x219)],'unitID':_0x4e2a5c[_0x3b1791(0xec)]}});}async[_0x13a2b1(0x159)](_0x5c41dc){const _0x2ce164=_0x13a2b1;let _0x493714=this[_0x2ce164(0x322)]()+_0x2ce164(0x107);await this[_0x2ce164(0xf1)][_0x2ce164(0x16b)](_0x493714,{'body':_0x5c41dc});}async[_0x13a2b1(0x39e)](_0x50e3e5){const _0x17f685=_0x13a2b1;let _0x2ca7bd=this['_getAPIPrefixPath']()+_0x17f685(0x107);await this[_0x17f685(0xf1)]['post'](_0x2ca7bd,{'body':_0x50e3e5});}async['listCollaborators'](_0x4f2608){const _0xb467cf=_0x13a2b1;let _0x473aa6=this[_0xb467cf(0x322)]()+_0xb467cf(0x107),_0x830b17=await this[_0xb467cf(0xf1)]['get'](_0x473aa6,{'params':{'objectID':_0x4f2608[_0xb467cf(0x219)],'unitID':_0x4f2608[_0xb467cf(0xec)]}});return this[_0xb467cf(0x387)](_0x830b17['body'][_0xb467cf(0x379)]??!0x1),_0x830b17[_0xb467cf(0x377)][_0xb467cf(0x30c)];}async[_0x13a2b1(0x38b)](_0x1769af){const _0x5319ec=_0x13a2b1;let _0x1c19dc=this[_0x5319ec(0x322)]()+_0x5319ec(0x107);await this['_HTTPService']['put'](_0x1c19dc,{'body':_0x1769af});}['setCfgEnableObjInherit'](_0x43e86d){const _0x508d91=_0x13a2b1;this[_0x508d91(0x2af)]=_0x43e86d;}[_0x13a2b1(0x2eb)](){const _0x1748ef=_0x13a2b1;return this[_0x1748ef(0x2af)];}};Kn=H([V(0x0,_0x4b5aa3(_0x42bbda)),V(0x1,_0x4b5aa3(_0xee80fd))],Kn);function qn(_0x2a3ed4){const _0x3ff82b=_0x13a2b1;let _0x4d1fc0=atob(_0x2a3ed4),_0x5549e8=new Uint8Array(_0x4d1fc0[_0x3ff82b(0x197)]);for(let _0x3f6918=0x0;_0x3f6918<_0x4d1fc0[_0x3ff82b(0x197)];_0x3f6918++)_0x5549e8[_0x3f6918]=_0x4d1fc0[_0x3ff82b(0x39f)](_0x3f6918);return _0x5549e8;}function Jn(_0x433ad9){const _0x857efa=_0x13a2b1;let _0x2fa746='';for(let _0x5e4ca2=0x0;_0x5e4ca2<_0x433ad9['length'];_0x5e4ca2++)_0x2fa746+=String[_0x857efa(0x11f)](_0x433ad9[_0x5e4ca2]);return btoa(_0x2fa746);}function Yn(_0xed25c4,_0x389231){const _0x1fc995=_0x13a2b1;let _0x1018bf=qn(_0x389231),_0x44d83e=_0x795c02(0x10),_0x4311d8=_0x285852(_0x1018bf,_0x44d83e)[_0x1fc995(0xee)](_0x5c4bcb(_0xed25c4));return Jn(_0x58e0d7(_0x44d83e,_0x4311d8));}function Xn(){const _0xade1f5=_0x13a2b1;let _0x50f330=_0x5f0e1c()[_0xade1f5(0x2da)];if(typeof window<'u'&&window[_0xade1f5(0x341)]!==void 0x0&&_0x50f330){let _0x56fec9={'time':Math[_0xade1f5(0x1d5)](Date['now']()/0x3e8),'domain':location[_0xade1f5(0x255)]};return Yn(JSON[_0xade1f5(0x398)](_0x56fec9),_0x50f330);}}let Zn=class{constructor(_0x452861){const _0x381f95=_0x13a2b1;this[_0x381f95(0xe3)]=_0x452861,this[_0x381f95(0x189)]();}[_0x13a2b1(0x189)](){const _0x5a7938=_0x13a2b1;this[_0x5a7938(0xe3)][_0x5a7938(0x34d)]({'interceptor':(_0x805c9a,_0x469ca1)=>{const _0x1461cd=_0x5a7938;let _0x94bd01=Xn();return _0x94bd01&&_0x805c9a[_0x1461cd(0x120)]['set'](_0x1461cd(0xf3),_0x94bd01),_0x469ca1(_0x805c9a);}});}};Zn=H([V(0x0,_0x4b5aa3(_0x42bbda))],Zn);let Qn=class extends _0x7b0f5f{constructor(_0x20feca,_0x1adf97,_0xbb7766){const _0xf56a55=_0x13a2b1;super(),this[_0xf56a55(0x2a9)]=_0x20feca,this[_0xf56a55(0x228)]=_0x1adf97,this[_0xf56a55(0x1bd)]=_0xbb7766,z(this,_0xf56a55(0x2b6),new _0x20736c(null)),z(this,_0xf56a55(0x395),new _0x579c12()),z(this,'unitInfo$',this['_unitInfo$'][_0xf56a55(0x36c)]()),z(this,_0xf56a55(0x198),this['_unitLoaded$'][_0xf56a55(0x36c)]());}[_0x13a2b1(0x1a1)](){const _0x1cc4a1=_0x13a2b1;super[_0x1cc4a1(0x1a1)](),this[_0x1cc4a1(0x395)][_0x1cc4a1(0x17f)](),this[_0x1cc4a1(0x2b6)][_0x1cc4a1(0x17f)]();}[_0x13a2b1(0x304)](_0x223650,_0x1bdc37,_0x599a2f,_0x32e2ce,_0xc678ce){const _0x10ad92=_0x13a2b1;return this[_0x10ad92(0x161)](_0x223650,_0x1bdc37,_0x599a2f,_0x32e2ce,_0xc678ce);}['loadUnit'](_0x2949a9,_0x3a0041,_0x2ec839,_0x3f4eae){return this['_loadUnit'](_0x2949a9,_0x3a0041,void 0x0,_0x2ec839,_0x3f4eae);}async[_0x13a2b1(0x161)](_0x2a449e,_0x5b8bf9,_0x281efb,_0x1a5399,_0x434f9e){const _0x343e61=_0x13a2b1;this[_0x343e61(0x2b6)]['next']({'unitId':_0x2a449e,'type':_0x5b8bf9,'subUnitId':_0x1a5399});let _0x2b9a01=_0x281efb;if(_0x2b9a01===void 0x0){var _0x2e9399;let _0x1fdbcb=await((_0x2e9399=this[_0x343e61(0x1bd)])==null?void 0x0:_0x2e9399[_0x343e61(0x36a)](_0x2a449e));_0x2b9a01=_0x1fdbcb&&(_0x1fdbcb['awaitingChangeset']||_0x1fdbcb['mutations'][_0x343e61(0x197)]!==0x0)?_0x1fdbcb[_0x343e61(0x2dd)]:0x0,_0x2b9a01===0x0&&this[_0x343e61(0x2a9)][_0x343e61(0x195)](_0x343e61(0x244),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.');}return this[_0x343e61(0x1d6)](_0x2a449e,_0x5b8bf9,_0x2b9a01,_0x1a5399,_0x434f9e);}async['_loadSnapshot'](_0x3a4866,_0x3576ae,_0x2e0a71,_0x7f8ce6,_0x2602f){const _0x56b161=_0x13a2b1;let _0x2a259a=null;switch(_0x3576ae){case _0x574677[_0x56b161(0x1ef)]:_0x2a259a=await this[_0x56b161(0x228)]['loadSheet'](_0x3a4866,_0x2e0a71,_0x2602f,{'initialSubUnitId':_0x7f8ce6});break;case _0x574677['UNIVER_DOC']:_0x2a259a=await this[_0x56b161(0x228)][_0x56b161(0x1e9)](_0x3a4866,_0x2e0a71,_0x2602f);break;case _0x574677['UNIVER_SLIDE']:_0x2a259a=await this['_snapshotService']['loadSlide'](_0x3a4866,_0x2e0a71,_0x2602f);break;case _0x574677[_0x56b161(0x15a)]:_0x2a259a=await this[_0x56b161(0x228)]['loadBoard'](_0x3a4866,_0x2e0a71,_0x2602f);break;case _0x574677['UNIVER_BASE']:_0x2a259a=await this[_0x56b161(0x228)]['loadBase'](_0x3a4866,_0x2e0a71,_0x2602f);break;case _0x574677[_0x56b161(0x329)]:_0x2a259a=await this[_0x56b161(0x228)][_0x56b161(0x3a2)](_0x3a4866,_0x2e0a71,_0x2602f);break;default:this[_0x56b161(0x2a9)]['error']('[DataLoaderService]',_0x56b161(0x324));}return _0x2a259a&&this[_0x56b161(0x395)]['next'](_0x2a259a),_0x2a259a;}};Qn=H([V(0x0,_0x13ba11),V(0x1,_0x4b5aa3(_0x31dbb1)),V(0x2,_0x387f7a(U))],Qn);let $n=class{constructor(_0x3aaeb7,_0x33d749,_0x3f69d6){const _0x3ffe42=_0x13a2b1;this[_0x3ffe42(0xe3)]=_0x3aaeb7,this[_0x3ffe42(0x3a3)]=_0x33d749,this[_0x3ffe42(0x32b)]=_0x3f69d6,z(this,_0x3ffe42(0x1da),0x0),z(this,'_change$',new _0x579c12()),z(this,_0x3ffe42(0x177),this['_change$']),z(this,_0x3ffe42(0x2ac),new Map());}[_0x13a2b1(0x206)](_0x513882){const _0x336ddf=_0x13a2b1;this['_waitCount']=_0x513882,this[_0x336ddf(0x1ca)][_0x336ddf(0x110)](_0x513882);}[_0x13a2b1(0x335)](_0x2b87a9,_0x3cded9){const _0x3180e1=_0x13a2b1;if(_0x3cded9===_0x1565e9[_0x3180e1(0x338)]){let _0x3b3aab=new Image();return _0x3b3aab[_0x3180e1(0x252)]=_0x2b87a9,_0x3b3aab;}return this[_0x3180e1(0x2ac)][_0x3180e1(0x102)](_0x2b87a9);}['addImageSourceCache'](_0x5468ed,_0x786334,_0x4b4423){const _0x655738=_0x13a2b1;_0x786334!==_0x1565e9[_0x655738(0x338)]&&_0x4b4423!=null&&this[_0x655738(0x2ac)]['set'](_0x5468ed,_0x4b4423);}async[_0x13a2b1(0x3aa)](_0x53ba6a){const _0x54e62b=_0x13a2b1;try{let _0x4a34e2=this['_replaceFileID'](this['_getSignURL'](),''+_0x53ba6a),_0x51f155=(await this[_0x54e62b(0xe3)][_0x54e62b(0x102)](_0x4a34e2))[_0x54e62b(0x377)];if(_0x51f155[_0x54e62b(0x223)]&&_0x51f155['error'][_0x54e62b(0x31f)]===_0x42630f['OK']){let _0x4297e8=_0x3a413c(_0x51f155[_0x54e62b(0x2d7)],this['_getDownloadEndpointURL']());return Promise[_0x54e62b(0x152)](_0x4297e8);}return Promise[_0x54e62b(0x3ae)](_0x51f155[_0x54e62b(0x223)]);}catch(_0x7ec504){return Promise[_0x54e62b(0x3ae)](_0x7ec504);}}async[_0x13a2b1(0x188)](_0x27c349){const _0x30afc9=_0x13a2b1;let _0x535042='';if(!_0x15a90d[_0x30afc9(0x2e4)](_0x27c349[_0x30afc9(0xdf)]))return this['_decreaseWaiting'](),Promise[_0x30afc9(0x3ae)](Error(_0x427b86['ERROR_IMAGE_TYPE']));if(_0x27c349[_0x30afc9(0xe8)]>_0x43f4e8())return this['_decreaseWaiting'](),Promise[_0x30afc9(0x3ae)](Error(_0x427b86['ERROR_EXCEED_SIZE']));try{let _0x4e497c=new FormData();_0x4e497c[_0x30afc9(0x35e)](_0x30afc9(0x296),_0x27c349);let _0x44ec8f=this['_univerInstanceService'][_0x30afc9(0x256)](),_0x184955=_0x44ec8f==null?void 0x0:_0x44ec8f[_0x30afc9(0x16f)]();if(!_0x184955)throw Error(_0x30afc9(0x192));let _0x253ed7=this[_0x30afc9(0x28f)]()+_0x30afc9(0x144)+_0x27c349[_0x30afc9(0xe8)][_0x30afc9(0x2ff)]()+'&source='+_0x24d03a[_0x30afc9(0x34c)]+_0x30afc9(0x12e)+encodeURIComponent(_0x184955),_0x4dffce={'body':_0x4e497c},_0x306f4d=(await this[_0x30afc9(0xe3)][_0x30afc9(0x348)](_0x253ed7,_0x4dffce))[_0x30afc9(0x377)];if(typeof _0x306f4d[_0x30afc9(0x372)]!=_0x30afc9(0x2b1))return this[_0x30afc9(0x2f3)](),Promise[_0x30afc9(0x3ae)](Error(_0x427b86['ERROR_IMAGE']));_0x535042=_0x306f4d[_0x30afc9(0x372)];}catch{return this['_decreaseWaiting'](),Promise[_0x30afc9(0x3ae)](Error(_0x427b86[_0x30afc9(0x108)]));}return new Promise((_0x2d0740,_0x3b159e)=>{const _0x3d9dad=_0x30afc9;let _0x73f980=new FileReader();_0x73f980[_0x3d9dad(0x11d)](_0x27c349),_0x73f980[_0x3d9dad(0x170)]=_0x198391=>{const _0x41cc2c=_0x3d9dad;var _0x5a5ba1;let _0xb684da=(_0x5a5ba1=_0x198391[_0x41cc2c(0x302)])==null?void 0x0:_0x5a5ba1[_0x41cc2c(0x158)];_0xb684da==null?(this[_0x41cc2c(0x2f3)](),_0x3b159e(Error(_0x427b86[_0x41cc2c(0x108)]))):(_0x2d0740({'imageId':_0x3962f8(0x6),'imageSourceType':_0x1565e9['UUID'],'source':_0x535042,'base64Cache':_0xb684da,'status':_0x427b86[_0x41cc2c(0x157)]}),this[_0x41cc2c(0x2f3)]());};});}[_0x13a2b1(0x28f)](){const _0xcf2162=_0x13a2b1;let _0x413786=this['_configService'][_0xcf2162(0x327)](R);return(_0x413786==null?void 0x0:_0x413786[_0xcf2162(0x16e)])??_0xcf2162(0x12d);}[_0x13a2b1(0x24b)](){const _0x46326e=_0x13a2b1;let _0x42bdbf=this['_configService'][_0x46326e(0x327)](R);return(_0x42bdbf==null?void 0x0:_0x42bdbf[_0x46326e(0x276)])??_0x46326e(0xfb);}['_getDownloadEndpointURL'](){const _0x15c4bf=_0x13a2b1;let _0x2996c1=this['_configService']['getConfig'](R);return(_0x2996c1==null?void 0x0:_0x2996c1[_0x15c4bf(0x355)])??location[_0x15c4bf(0xf7)];}[_0x13a2b1(0x343)](_0x5a3a0f,_0x17a481){const _0xf8e471=_0x13a2b1;return _0x5a3a0f[_0xf8e471(0x321)](_0xf8e471(0x2e9),_0x17a481);}[_0x13a2b1(0x2f3)](){const _0x414d23=_0x13a2b1;--this[_0x414d23(0x1da)],this[_0x414d23(0x1ca)]['next'](this[_0x414d23(0x1da)]);}};$n=H([V(0x0,_0x4b5aa3(_0x42bbda)),V(0x1,_0xee80fd),V(0x2,_0x4b5aa3(_0x95142))],$n);let er=class{constructor(_0x1079d5,_0x40fcd3){const _0x394fc3=_0x13a2b1;this['_configService']=_0x1079d5,this[_0x394fc3(0xf1)]=_0x40fcd3;}['_getAPIPrefixPath'](){const _0x388fa1=_0x13a2b1;let _0xa08278=this[_0x388fa1(0x3a3)][_0x388fa1(0x327)](R);return(_0xa08278==null?void 0x0:_0xa08278[_0x388fa1(0x342)])??_0x388fa1(0x1ab);}async[_0x13a2b1(0x176)](_0x154d76){const _0x16cfd3=_0x13a2b1;let _0x391780=this[_0x16cfd3(0x322)]()+_0x16cfd3(0x107);return{'list':[{'title':_0x16cfd3(0x26f),'mentions':(await this['_HTTPService']['get'](_0x391780,{'params':{'objectID':_0x154d76[_0x16cfd3(0x2f1)],'unitID':_0x154d76['unitId']}}))['body'][_0x16cfd3(0x30c)][_0x16cfd3(0x22b)](_0x242338=>({'objectId':_0x242338['id'],'name':_0x242338[_0x16cfd3(0x259)][_0x16cfd3(0x331)],'metadata':{'icon':_0x242338[_0x16cfd3(0x259)][_0x16cfd3(0x231)]},'label':_0x242338[_0x16cfd3(0x259)]['name'],'objectType':_0x3b8e1a[_0x16cfd3(0x3af)]})),'metadata':{},'type':_0x3b8e1a['PERSON']}]};}};er=H([V(0x0,_0x4b5aa3(_0xee80fd)),V(0x1,_0x4b5aa3(_0x42bbda))],er);let tr=class extends _0x7b0f5f{constructor(_0x4d956d,_0x30064a,_0x24c812,_0x384d39,_0xd26d77,_0x1e664d){const _0x339bf4=_0x13a2b1;super(),this[_0x339bf4(0x248)]=_0x4d956d,this[_0x339bf4(0x32b)]=_0x30064a,this[_0x339bf4(0x20e)]=_0x24c812,this[_0x339bf4(0x239)]=_0x384d39,this[_0x339bf4(0x1f2)]=_0xd26d77,this[_0x339bf4(0x101)]=_0x1e664d,z(this,'_closedUnits',new Set()),this[_0x339bf4(0x2be)](()=>this[_0x339bf4(0x163)][_0x339bf4(0x38f)]()),this['disposeWithMe'](nr(this[_0x339bf4(0x32b)])[_0x339bf4(0x31e)](({unitId:_0x22d5bb})=>this[_0x339bf4(0x163)][_0x339bf4(0x112)](_0x22d5bb))),this[_0x339bf4(0x303)](),this[_0x339bf4(0x257)](),[_0x574677['UNIVER_DOC'],_0x574677[_0x339bf4(0x36b)],_0x574677[_0x339bf4(0x299)],_0x574677[_0x339bf4(0x15a)]][_0x339bf4(0x39d)](_0x4548eb=>{this['disposeWithMe'](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4548eb)['subscribe'](_0x4a5ec0=>{const _0x5600d2=_0x148e;this[_0x5600d2(0x163)][_0x5600d2(0x270)](_0x4a5ec0[_0x5600d2(0x16f)]()),this[_0x5600d2(0x248)][_0x5600d2(0x102)](_0x46382e)[_0x5600d2(0x168)](_0x4a5ec0[_0x5600d2(0x16f)]());}));});}[_0x13a2b1(0x257)](){const _0x182f92=_0x13a2b1;let _0x33d1bf=async(_0x536f28,_0x1015cf)=>{const _0x40a8a0=_0x148e;let _0x129b26=await this[_0x40a8a0(0x1f2)][_0x40a8a0(0xf2)](_0x536f28);this[_0x40a8a0(0x21d)]||this[_0x40a8a0(0x163)][_0x40a8a0(0xeb)](_0x536f28)||!this[_0x40a8a0(0x32b)][_0x40a8a0(0x2dc)](_0x536f28)||_0x129b26['event$']['pipe'](_0x649d5(_0x1d6ad9=>_0x1d6ad9[_0x40a8a0(0x207)]===_0xd588b7[_0x40a8a0(0x2bb)]),_0x261fc1(_0x6c682a(this[_0x40a8a0(0x29e)],this[_0x40a8a0(0x32b)][_0x40a8a0(0x2e5)]['pipe'](_0x649d5(_0x22b57a=>_0x22b57a[_0x40a8a0(0x16f)]()===_0x536f28)))))[_0x40a8a0(0x31e)](_0xc4b07a=>{const _0x970682=_0x40a8a0;let {reason:_0x59d01c}=_0xc4b07a[_0x970682(0x35d)];this[_0x970682(0x101)][_0x970682(0x13d)]({'id':_0x970682(0x282),'data':_0x59d01c}),this[_0x970682(0x163)][_0x970682(0x270)](_0x536f28),this[_0x970682(0x248)][_0x970682(0x102)](_0x46382e)[_0x970682(0x168)](_0x536f28);let _0x18c498=rr(_0x1015cf);_0x18c498!=null&&this[_0x970682(0x30d)](_0x536f28,_0x18c498,_0x2e5587[_0x970682(0x1b3)],!0x1),this[_0x970682(0x1f2)]['closeSession'](_0x536f28);});};nr(this[_0x182f92(0x32b)])['pipe'](_0x649d5(({unitId:_0x54e7ab})=>!_0x31c723(_0x54e7ab)),_0x261fc1(this[_0x182f92(0x29e)]))[_0x182f92(0x31e)](({type:_0x27f59d,unitId:_0x877146})=>{const _0x5cd13b=_0x182f92;_0x33d1bf(_0x877146,_0x27f59d)[_0x5cd13b(0xe9)](_0x4d0504=>this['_injector']['get'](_0x13ba11)['error'](_0x4d0504));});}['_initUnitPermissionChange'](){const _0x4769e4=_0x13a2b1;let _0x490b04=async(_0x1aadba,_0x59090e)=>{const _0x1c685c=_0x148e;let _0x3c546e=await this[_0x1c685c(0x1f2)][_0x1c685c(0xf2)](_0x1aadba);if(!(this[_0x1c685c(0x21d)]||this['_closedUnits'][_0x1c685c(0xeb)](_0x1aadba)||!this[_0x1c685c(0x32b)][_0x1c685c(0x2dc)](_0x1aadba))){if(_0x59090e===_0x574677[_0x1c685c(0x1ef)]){let _0xd8ae81=this[_0x1c685c(0x248)][_0x1c685c(0x102)](_0x24b61e);await _0xd8ae81[_0x1c685c(0x27c)](_0x1aadba),_0x3c546e[_0x1c685c(0x2a8)][_0x1c685c(0x317)](_0x649d5(_0x861bae=>_0x861bae[_0x1c685c(0x207)]===_0xd588b7[_0x1c685c(0x359)]),_0x261fc1(_0x6c682a(this['dispose$'],_0x3c546e[_0x1c685c(0x2a8)]['pipe'](_0x649d5(_0x177261=>_0x177261[_0x1c685c(0x207)]===_0xd588b7['SHOULD_CLOSE_CONN'])),this[_0x1c685c(0x32b)]['unitDisposed$']['pipe'](_0x649d5(_0xb9ac02=>_0xb9ac02['getUnitId']()===_0x1aadba)))))[_0x1c685c(0x31e)](_0x2628dc=>{const _0x635c52=_0x1c685c;let {objectId:_0x354e27}=_0x2628dc['data'];_0x354e27===_0x1aadba?_0xd8ae81[_0x635c52(0x27c)](_0x1aadba):_0xd8ae81[_0x635c52(0x2cf)](_0x1aadba,_0x354e27);});}else _0x3c546e[_0x1c685c(0x2a8)][_0x1c685c(0x317)](_0x649d5(_0x1a612b=>_0x1a612b[_0x1c685c(0x207)]===_0xd588b7[_0x1c685c(0x359)]),_0x261fc1(_0x6c682a(this[_0x1c685c(0x29e)],_0x3c546e[_0x1c685c(0x2a8)][_0x1c685c(0x317)](_0x649d5(_0x58597c=>_0x58597c['eventID']===_0xd588b7[_0x1c685c(0x2bb)])),this[_0x1c685c(0x32b)]['unitDisposed$']['pipe'](_0x649d5(_0x3fdd24=>_0x3fdd24['getUnitId']()===_0x1aadba)))))[_0x1c685c(0x31e)](()=>{const _0x3b0bfd=_0x1c685c;this[_0x3b0bfd(0x2c6)](_0x1aadba,_0x59090e)[_0x3b0bfd(0xe9)](_0x385eb7=>this[_0x3b0bfd(0x248)][_0x3b0bfd(0x102)](_0x13ba11)['error'](_0x385eb7));}),await this['_refreshUnitPermission'](_0x1aadba,_0x59090e);}};nr(this[_0x4769e4(0x32b)])[_0x4769e4(0x317)](_0x649d5(({unitId:_0x17fbc7})=>!_0x31c723(_0x17fbc7)),_0x261fc1(this[_0x4769e4(0x29e)]))[_0x4769e4(0x31e)](({type:_0x3fa7e1,unitId:_0x2cbb0c})=>{const _0x3b6716=_0x4769e4;_0x490b04(_0x2cbb0c,_0x3fa7e1)[_0x3b6716(0xe9)](_0x1f3024=>this[_0x3b6716(0x248)][_0x3b6716(0x102)](_0x13ba11)[_0x3b6716(0x223)](_0x1f3024));});}async[_0x13a2b1(0x2c6)](_0x5e45b8,_0x7a0690){const _0x2e64bb=_0x13a2b1;let _0x4006f6=rr(_0x7a0690);if(_0x4006f6==null)return;let _0x36b63a=this[_0x2e64bb(0x248)]['get'](_0x46382e);if(_0x36b63a['supports']({'unitId':_0x5e45b8,'objectId':_0x5e45b8,'objectType':_0x4006f6})){await _0x36b63a['refreshUnit'](_0x5e45b8);return;}let _0x18ee25=this[_0x2e64bb(0x298)](_0x5e45b8,_0x4006f6);if(!_0x18ee25[_0x2e64bb(0x197)])return;let _0x196178=await this[_0x2e64bb(0x239)][_0x2e64bb(0x128)]({'objectID':_0x5e45b8,'objectType':_0x4006f6,'unitID':_0x5e45b8,'actions':_0x18ee25[_0x2e64bb(0x22b)](({action:_0x1a9b5c})=>_0x1a9b5c)});this['_disposed']||this[_0x2e64bb(0x163)][_0x2e64bb(0xeb)](_0x5e45b8)||!this['_univerInstanceService']['getUnit'](_0x5e45b8)||_0x196178['forEach'](_0x357b5c=>{const _0x22ec90=_0x2e64bb;let _0x5ddf98=_0x357b5c[_0x22ec90(0xf0)],_0x1c5464=_0x357b5c[_0x22ec90(0x128)];_0x5ddf98!=null&&_0x1c5464!=null&&_0x18ee25['filter'](_0x5c5ba4=>_0x5c5ba4['action']===_0x5ddf98)[_0x22ec90(0x39d)](_0x13baa6=>this['_permissionService'][_0x22ec90(0x23f)](_0x13baa6['id'],_0x1c5464));});}[_0x13a2b1(0x298)](_0x5da845,_0x2dd516){const _0x2f8864=_0x13a2b1;let _0xd2761d=[];return this['_permissionService'][_0x2f8864(0x2f4)]()['forEach']((_0x477738,_0x13287c)=>{const _0x2832b4=_0x2f8864;_0x477738[_0x2832b4(0x31e)](_0x332ed5=>{const _0xbbec86=_0x2832b4;_0x332ed5[_0xbbec86(0xdf)]===_0x2dd516&&'unitId'in _0x332ed5&&_0x332ed5[_0xbbec86(0x2f1)]===_0x5da845&&(!(_0xbbec86(0x22e)in _0x332ed5)||_0x332ed5[_0xbbec86(0x22e)]===_0x5da845)&&_0xd2761d[_0xbbec86(0x2c2)]({'id':_0x13287c,'action':_0x332ed5[_0xbbec86(0x104)]});})[_0x2832b4(0x19f)]();}),_0xd2761d;}[_0x13a2b1(0x30d)](_0x1cc38f,_0x440685,_0x1ab9d1,_0x4c966a){const _0x41c2ae=_0x13a2b1;this[_0x41c2ae(0x20e)][_0x41c2ae(0x2f4)]()[_0x41c2ae(0x39d)]((_0x4ef126,_0x1e6a28)=>{const _0x53c9ea=_0x41c2ae;let _0x33626a=!0x1;_0x4ef126[_0x53c9ea(0x31e)](_0x47b8fd=>{const _0x403de0=_0x53c9ea;_0x33626a=_0x47b8fd[_0x403de0(0xdf)]===_0x440685&&_0x47b8fd[_0x403de0(0x104)]===_0x1ab9d1&&'unitId'in _0x47b8fd&&_0x47b8fd[_0x403de0(0x2f1)]===_0x1cc38f&&(!(_0x403de0(0x22e)in _0x47b8fd)||_0x47b8fd[_0x403de0(0x22e)]===_0x1cc38f);})['unsubscribe'](),_0x33626a&&this[_0x53c9ea(0x20e)][_0x53c9ea(0x23f)](_0x1e6a28,_0x4c966a);});}};tr=H([V(0x0,_0x4b5aa3(_0x34ebb2)),V(0x1,_0x95142),V(0x2,_0x18f67c),V(0x3,_0x5107b9),V(0x4,_0x4b5aa3(Ln)),V(0x5,_0x4b5aa3(B))],tr);function nr(_0x3e32b0){const _0x439d65=_0x13a2b1;return _0x6c682a(...[_0x574677[_0x439d65(0x1ef)],_0x574677['UNIVER_DOC'],_0x574677[_0x439d65(0x36b)],_0x574677[_0x439d65(0x15a)],_0x574677[_0x439d65(0x299)]]['map'](_0x104c80=>_0x3e32b0[_0x439d65(0x1a9)](_0x104c80)['pipe'](_0x1e8773(_0x3e3a8f=>({'type':_0x104c80,'unitId':_0x3e3a8f['unit'][_0x439d65(0x16f)]()})))));}function rr(_0x20c26a){const _0x502cf7=_0x13a2b1;switch(_0x20c26a){case _0x574677[_0x502cf7(0x1ef)]:return _0x34ac79['Workbook'];case _0x574677[_0x502cf7(0x113)]:return _0x34ac79['Document'];case _0x574677[_0x502cf7(0x36b)]:return _0x34ac79[_0x502cf7(0x24c)];case _0x574677[_0x502cf7(0x15a)]:return _0x34ac79[_0x502cf7(0x1a8)];case _0x574677[_0x502cf7(0x299)]:return _0x34ac79['Base'];default:return;}}let ir=class{constructor(_0x542b92,_0x4bee80){const _0x199b46=_0x13a2b1;this[_0x199b46(0x3a3)]=_0x542b92,this[_0x199b46(0xe3)]=_0x4bee80;}async[_0x13a2b1(0x290)](_0x7269a0,_0x498066){const _0x33c3a4=_0x13a2b1;var _0x2d8005;let {unitID:_0x15054e,type:_0x47c9cb,revision:_0x2c1a48=0x0}=_0x498066,_0x58f8e5=this[_0x33c3a4(0x1c8)]()+'/'+_0x47c9cb+_0x33c3a4(0x399)+_0x15054e+_0x33c3a4(0x1cb)+_0x2c1a48,_0x62bef1=(await this[_0x33c3a4(0xe3)][_0x33c3a4(0x102)](_0x58f8e5))[_0x33c3a4(0x377)],_0x1e2a8d=(_0x2d8005=_0x62bef1[_0x33c3a4(0x220)])==null?void 0x0:_0x2d8005['workbook'];if(_0x1e2a8d){let _0x4b6593=_0x1e2a8d==null?void 0x0:_0x1e2a8d[_0x33c3a4(0x20d)];_0x1e2a8d[_0x33c3a4(0x20d)]=_0x1ca3b4[_0x33c3a4(0x18a)](_0x5174ea(_0x4b6593)),Object[_0x33c3a4(0x34a)](_0x1e2a8d[_0x33c3a4(0x30a)])[_0x33c3a4(0x39d)](([,_0xc1f7f4])=>{const _0x1fdbee=_0x33c3a4;let _0x57e145=_0xc1f7f4['originalMeta'];_0xc1f7f4[_0x1fdbee(0x20d)]=_0x1ca3b4[_0x1fdbee(0x18a)](_0x5174ea(_0x57e145));});}return _0x62bef1;}async['getSheetBlock'](_0x359741,_0x321456){const _0x26623b=_0x13a2b1;let {unitID:_0x34c854,type:_0x4d2dfc,blockID:_0x13fd93}=_0x321456,_0x1cc3b6=this[_0x26623b(0x10b)]()+'/'+_0x4d2dfc+_0x26623b(0x399)+_0x34c854+'/block/'+_0x13fd93;return(await this[_0x26623b(0xe3)]['get'](_0x1cc3b6))[_0x26623b(0x377)];}async[_0x13a2b1(0x122)](_0x10ef22,_0x51fe3d){const _0x3c9fd9=_0x13a2b1;let {unitID:_0x3d7684,type:_0x1aec8f,blockID:_0x2354f0}=_0x51fe3d,_0x10a86f=this[_0x3c9fd9(0x10b)]()+_0x3c9fd9(0x222)+_0x1aec8f+'/unit/'+_0x3d7684+_0x3c9fd9(0x222)+_0x2354f0;return(await this[_0x3c9fd9(0xe3)]['get'](_0x10a86f))['body'];}async['fetchMissingChangesets'](_0x8b030a,_0x28b626){const _0x49edbc=_0x13a2b1;let {unitID:_0x39def3,type:_0x55b261,from:_0x83becc,to:_0x17edcf}=_0x28b626,_0x5de530=this[_0x49edbc(0x10b)]()+'/'+_0x55b261+_0x49edbc(0x399)+_0x39def3+_0x49edbc(0x242)+_0x83becc+_0x49edbc(0x179)+_0x17edcf;return(await this['_httpService'][_0x49edbc(0x102)](_0x5de530))[_0x49edbc(0x377)];}[_0x13a2b1(0x1c8)](){const _0x4d08d1=_0x13a2b1;return this[_0x4d08d1(0x3a3)]['getConfig'](_0x4d08d1(0x18d))??this[_0x4d08d1(0x10b)]();}[_0x13a2b1(0x10b)](){const _0x513bdf=_0x13a2b1;let _0x26db61=this['_configService'][_0x513bdf(0x327)](R);return(_0x26db61==null?void 0x0:_0x26db61['snapshotServerUrl'])??_0x513bdf(0xfa);}async[_0x13a2b1(0x1c9)](_0x360dca,_0x1de481){const _0x164409=_0x13a2b1;let _0x3c02ec=_0x164409(0x339)+_0x1de481[_0x164409(0xdf)]+_0x164409(0x399)+_0x1de481[_0x164409(0xec)]+'/resources';return(await this[_0x164409(0xe3)][_0x164409(0x102)](_0x3c02ec,{'params':{'resourceId':JSON[_0x164409(0x398)](_0x1de481[_0x164409(0xdc)])}}))[_0x164409(0x377)];}[_0x13a2b1(0x23d)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['updateSnapshot'](){const _0x20adf8=_0x13a2b1;throw Error(_0x20adf8(0x3a7));}[_0x13a2b1(0x349)](){const _0x601146=_0x13a2b1;throw Error(_0x601146(0x3a7));}['saveChangeset'](){const _0x2b72ff=_0x13a2b1;throw Error(_0x2b72ff(0x3a7));}['copyFileMeta'](){const _0x46344f=_0x13a2b1;throw Error(_0x46344f(0x3a7));}[_0x13a2b1(0xde)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};ir=H([V(0x0,_0xee80fd),V(0x1,_0x4b5aa3(_0x42bbda))],ir);let ar=class extends _0x3d6931{constructor(_0x29ba05,_0xb77ae8,_0x374c8c,_0x77da07,_0x1b8649,_0x23fda9){const _0x524882=_0x13a2b1;super(_0x29ba05,_0xb77ae8,_0x374c8c,_0x77da07),this[_0x524882(0x1df)]=_0x1b8649,this[_0x524882(0x2a9)]=_0x23fda9;}[_0x13a2b1(0x1cc)](_0x217133,_0x3234c1){const _0x404ceb=_0x13a2b1;let _0x45fc25=this[_0x404ceb(0x38d)](_0x217133);if(_0x45fc25)try{let _0x2428ba=this[_0x404ceb(0x27f)](_0x45fc25,_0x3234c1);this[_0x404ceb(0x300)](_0x217133,_0x2428ba);}catch(_0x2078cb){this['_logService']['error'](_0x404ceb(0x37e),_0x2078cb),this[_0x404ceb(0x1b4)](_0x217133);}let _0x579c7d=this[_0x404ceb(0x1ae)](_0x217133);if(_0x579c7d)try{let _0x45eae0=this['_transformStack'](_0x579c7d,_0x3234c1);this['_substituteRedoStack'](_0x217133,_0x45eae0);}catch(_0x2df69a){this[_0x404ceb(0x2a9)]['error'](_0x2df69a),this['_clearRedo'](_0x217133);}}[_0x13a2b1(0x1b4)](_0x35487c){const _0x1c9c4f=_0x13a2b1;let _0x39d7b4=this[_0x1c9c4f(0x38d)](_0x35487c);_0x39d7b4&&(_0x39d7b4['length']=0x0,this['_updateStatus']());}[_0x13a2b1(0x2f2)](_0x3847ba){let _0x1dcfc6=this['_getRedoStack'](_0x3847ba);_0x1dcfc6&&(_0x1dcfc6['length']=0x0,this['_updateStatus']());}[_0x13a2b1(0x300)](_0x3862ae,_0xb5b68f){const _0x138057=_0x13a2b1;this['_undoStacks'][_0x138057(0x346)](_0x3862ae,_0xb5b68f),this['_updateStatus']();}[_0x13a2b1(0x350)](_0x503fb1,_0x1c0623){const _0x54783e=_0x13a2b1;this[_0x54783e(0x337)][_0x54783e(0x346)](_0x503fb1,_0x1c0623),this['_updateStatus']();}[_0x13a2b1(0x27f)](_0x51fc23,_0x46992c){const _0x567156=_0x13a2b1;let _0x459be8=[],_0x54a7d5=_0x46992c,_0x8b120c=_0x46992c;for(let _0xfc6393=_0x51fc23[_0x567156(0x197)]-0x1;_0xfc6393>=0x0;_0xfc6393--){let {unitID:_0xb914c0,undoMutations:_0xc48b63,redoMutations:_0x178215}=_0x51fc23[_0xfc6393],_0x4645a4=this[_0x567156(0x1df)][_0x567156(0x1c1)](_0x54a7d5,_0xc48b63),_0x43ca38=this['_transformService'][_0x567156(0x1c1)](_0x8b120c,_0x178215);if(_0xedf9f7(_0x4645a4)||_0xedf9f7(_0x43ca38)){this[_0x567156(0x2a9)][_0x567156(0x223)](_0x567156(0x37e),_0x567156(0x233),_0x4645a4,_0x43ca38);break;}_0x54a7d5=_0x4645a4[_0x567156(0x2c5)],_0x8b120c=_0x43ca38['c1Prime'],_0x459be8[_0x567156(0x2c2)]({'unitID':_0xb914c0,'undoMutations':_0x4645a4['m2Prime'],'redoMutations':_0x43ca38[_0x567156(0x33d)]});}return _0x459be8[_0x567156(0x263)]();}};ar=H([V(0x0,_0x95142),V(0x1,_0x33e7ca),V(0x2,_0x53e200),V(0x3,_0xee80fd),V(0x4,_0x4348d7),V(0x5,_0x13ba11)],ar);let or=class extends _0x3375e9{constructor(_0x46dcae=_t,_0x2293b6,_0x4a0a09,_0x4c9477){const _0x140984=_0x13a2b1;super(),this['_config']=_0x46dcae,this[_0x140984(0x2a9)]=_0x2293b6,this['_injector']=_0x4a0a09,this[_0x140984(0x3a3)]=_0x4c9477;let {..._0x58f6eb}=_0x2fb5e8({},_t,this[_0x140984(0x2c7)]);if(!_0x58f6eb[_0x140984(0x1a5)])throw Error(_0x140984(0x325));this[_0x140984(0x2c7)]=_0x58f6eb,this['_configService'][_0x140984(0x1e5)](R,_0x58f6eb);}[_0x13a2b1(0x31c)](){const _0x73a0ad=_0x13a2b1;this['_configService'][_0x73a0ad(0x1e5)](_0x1103c0,this[_0x73a0ad(0x2c7)][_0x73a0ad(0x14e)]??[]),this[_0x73a0ad(0x23b)](),this[_0x73a0ad(0x3a6)]();}['_registerDependencies'](){const _0x3f828b=_0x13a2b1;var _0x1226b6,_0x36986c;this[_0x3f828b(0x248)][_0x3f828b(0xeb)](_0x10b774)&&this[_0x3f828b(0x2a9)][_0x3f828b(0x223)](_0x3f828b(0x2bd),_0x3f828b(0x2c0));let _0x4e7c6f=_0x3416ea([[_0x10b774,{'useClass':ar}],[Pn,{'useValue':Fn()}],[Ln],[Nt],[Yt],[Gn],[Zn],[Mt],[tr],[B],[Qn],[jn,{'useClass':this[_0x3f828b(0x2c7)][_0x3f828b(0x1a5)]}],[_0x558b75,{'useClass':ir}],[_0x5107b9,{'useClass':Kn}],[_0x5e96a5,{'useClass':$n}],[Hn,{'useClass':Un}],[_0x4af818,{'useClass':er}],[Rn],[Vn]],(_0x1226b6=this['_config'])==null?void 0x0:_0x1226b6[_0x3f828b(0x316)]);if(!((_0x36986c=this[_0x3f828b(0x2c7)])!=null&&_0x36986c['enableSingleActiveInstanceLock'])){let _0x3d1dfa=_0x4e7c6f[_0x3f828b(0x24a)](([_0x4507b4])=>_0x4507b4===W);_0x3d1dfa!==-0x1&&_0x4e7c6f[_0x3f828b(0x2db)](_0x3d1dfa,0x1);}_0x48d7fe(this['_injector'],_0x4e7c6f);}['_initDependencies'](){const _0x509e01=_0x13a2b1;var _0x392c00,_0x2778b8;if(this[_0x509e01(0x248)]['get'](_0x42bbda)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x59da0c({'maxParallel':0x6})}),!((_0x392c00=this[_0x509e01(0x2c7)])!=null&&_0x392c00[_0x509e01(0x1f4)])){var _0x18b324;(_0x18b324=this['_injector'][_0x509e01(0x102)](U,_0x61e5b[_0x509e01(0x1de)]))==null||_0x18b324[_0x509e01(0x201)]();}(_0x2778b8=this[_0x509e01(0x2c7)])!=null&&_0x2778b8[_0x509e01(0x314)]&&_0x2b389a(this[_0x509e01(0x248)],[[Gn]]),_0x2b389a(this[_0x509e01(0x248)],[[Zn],[Rn],[tr]]);}};z(or,'pluginName','UNIVER_COLLABORATION_CLIENT_PLUGIN'),z(or,_0x13a2b1(0x21a),zn),z(or,'version',Bn),or=H([_0x1d880e(_0x553e70,_0x521242,_0x19a45b),V(0x1,_0x13ba11),V(0x2,_0x4b5aa3(_0x34ebb2)),V(0x3,_0xee80fd)],or);export{Kn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,Cn as BaseCollaborationEntity,En as BoardCollaborationEntity,R as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Un as CollaborationAttachmentIoService,Rn as CollaborationController,$ as CollaborationEntity,$n as CollaborationImageIoService,Kt as CollaborationSession,Ln as CollaborationSessionService,Nn as CollaborationSocketService,vn as CollaborationStatus,jt as CollaborationUIEventId,B as CollaborationUIEventService,ar as CollaborativeUndoRedoService,Mt as CommentService,X as ConflictState,vt as DEFAULT_COLLAB_WEB_SOCKET_URL,Et as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,yt as DEFAULT_WS_SESSION_TICKET_URL,Qn as DataLoaderService,Sn as DocCollaborationEntity,Q as FetchingMissState,bt as HEARTBEAT_INTERVAL_KEY,xt as HEARTBEAT_TIMEOUT_KEY,Hn as IAttachmentIoService,Pn as ICollaborationClientAdapterService,jn as ICollaborationSocketService,U as ILocalCacheService,On as INetworkConditionService,W as ISingleActiveUnitService,wt as LOCAL_CACHE_INTERVAL,Ct as LOCAL_CACHE_INTERVAL_KEY,Nt as MemberService,er as MentionIoHttpService,Z as OfflineState,Dn as PdfCollaborationEntity,q as PendingState,Tt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,St as RETRY_CONNECTING_MAX_COUNT_KEY,Wt as SessionStatus,wn as SheetCollaborationEntity,Yt as SheetTransformSelectionsService,Tn as SlideCollaborationEntity,ir as SnapshotServerOverHTTPService,K as SyncedState,Xt as UnitStatus,or as UniverCollaborationClientPlugin,Fn as createUniverCollaborationAdapter,kn as deserializeToCombResponse,qt as getLocalCacheKey,An as serializeCombRequest};
|