@univerjs-pro/collaboration-client 1.0.0-alpha.6 → 1.0.0-alpha.8

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.
Files changed (92) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/controllers/collaboration/collaboration-entity.d.ts +6 -0
  65. package/lib/types/controllers/collaboration/collaboration-state.d.ts +3 -4
  66. package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +8 -5
  67. package/lib/types/index.d.ts +2 -3
  68. package/lib/types/services/attachment-remote/attachment-io.service.d.ts +9 -4
  69. package/lib/types/services/attachment-remote/types.d.ts +2 -19
  70. package/lib/types/services/member/member.service.d.ts +2 -15
  71. package/lib/umd/facade.js +1 -1
  72. package/lib/umd/index.js +1 -1
  73. package/lib/umd/locale/ar-SA.js +1 -1
  74. package/lib/umd/locale/ca-ES.js +1 -1
  75. package/lib/umd/locale/de-DE.js +1 -1
  76. package/lib/umd/locale/en-US.js +1 -1
  77. package/lib/umd/locale/es-ES.js +1 -1
  78. package/lib/umd/locale/fa-IR.js +1 -1
  79. package/lib/umd/locale/fr-FR.js +1 -1
  80. package/lib/umd/locale/id-ID.js +1 -1
  81. package/lib/umd/locale/it-IT.js +1 -1
  82. package/lib/umd/locale/ja-JP.js +1 -1
  83. package/lib/umd/locale/ko-KR.js +1 -1
  84. package/lib/umd/locale/pl-PL.js +1 -1
  85. package/lib/umd/locale/pt-BR.js +1 -1
  86. package/lib/umd/locale/ru-RU.js +1 -1
  87. package/lib/umd/locale/sk-SK.js +1 -1
  88. package/lib/umd/locale/vi-VN.js +1 -1
  89. package/lib/umd/locale/zh-CN.js +1 -1
  90. package/lib/umd/locale/zh-HK.js +1 -1
  91. package/lib/umd/locale/zh-TW.js +1 -1
  92. package/package.json +15 -14
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4c9487=_0x45c3;(function(_0x4cae55,_0x495a0a){const _0x3d990a=_0x45c3,_0x530e47=_0x4cae55();while(!![]){try{const _0xbdf8d0=-parseInt(_0x3d990a(0x3b5))/0x1*(-parseInt(_0x3d990a(0x346))/0x2)+-parseInt(_0x3d990a(0x21f))/0x3*(-parseInt(_0x3d990a(0x2d9))/0x4)+parseInt(_0x3d990a(0x391))/0x5+-parseInt(_0x3d990a(0x280))/0x6+parseInt(_0x3d990a(0x2e1))/0x7+-parseInt(_0x3d990a(0x314))/0x8*(parseInt(_0x3d990a(0x39d))/0x9)+-parseInt(_0x3d990a(0x239))/0xa;if(_0xbdf8d0===_0x495a0a)break;else _0x530e47['push'](_0x530e47['shift']());}catch(_0x45fe2e){_0x530e47['push'](_0x530e47['shift']());}}}(_0x8160,0x394bf));import{CollaborationEvent as _0x455bbe,CompressMutationService as _0x2ca8b6,EmptyMutationInfo as _0x162d6a,ISnapshotServerService as _0x501a5d,ITransformService as _0x4bb226,RevisionService as _0xd4c3ee,SnapshotService as _0x2b310f,UniverCollaborationPlugin as _0xe76f50,b64DecodeUnicode as _0x384431,isTransformChangesetsSuccess as _0x595537,isTransformMutationsWithChangesetFailure as _0x3ce704,isTransformMutationsWithChangesetSuccess as _0x22e674,mapDocumentTypeToUniverInstanceType as _0x5c01a1,parseChangesetToProtocol as _0x8fd771,parseProtocolChangeset as _0x4cb958,textEncoder as _0xf60f62,uuidv4 as _0x1f208a}from'@univerjs-pro/collaboration';import{CommandType as _0x383b36,DependentOn as _0x20b54d,Disposable as _0x278d2d,DisposableCollection as _0x3708fc,IAuthzIoService as _0x26940e,ICommandService as _0x4d9c36,IConfigService as _0x408d6e,IContextService as _0x32da93,IImageIoService as _0x4b01d6,ILogService as _0x2260fd,IMentionIOService as _0x3602aa,IPermissionService as _0x2aaf65,IUndoRedoService as _0xd09547,IUniverInstanceService as _0x566455,ImageSourceType as _0x1a7c90,ImageUploadStatusType as _0x474d91,Inject as _0x25ad33,Injector as _0x4f91d7,JSONX as _0x42b646,LocalUndoRedoService as _0x350ec1,LocaleService as _0x552e52,MentionType as _0x3d61fd,Optional as _0x129a9b,Plugin as _0x235123,Quantity as _0x4e6314,Rectangle as _0x3f2b9d,RxDisposable as _0x320367,Tools as _0x2baf21,UniverInstanceType as _0x672a2f,UserManagerService as _0x1a8689,Workbook as _0x147f78,createIdentifier as _0x354efe,generateRandomId as _0x39cafe,isInternalEditorID as _0x563f4a,merge as _0xa6ae2f,mergeOverrideWithDependencies as _0x300e55,registerDependencies as _0x5e4a3e,resolveWithBasePath as _0x56206f,sequenceExecute as _0x365382,toDisposable as _0x565c9d,touchDependencies as _0x2788f8}from'@univerjs/core';import{DocStateChangeManagerService as _0x3db738,RichTextEditingMutation as _0x2e2b0b}from'@univerjs/docs';import{InsertSheetMutation as _0x26a59d,SetSelectionsOperation as _0x2c41f5,SheetPermissionInitController as _0x5473e3,SheetsSelectionsService as _0x29e6ec,WorkbookEditablePermission as _0x428d58}from'@univerjs/sheets';import{BehaviorSubject as _0x1adaf6,ReplaySubject as _0x379882,Subject as _0x4f22d9,concatMap as _0xa7bc3c,firstValueFrom as _0xc03eb8,map as _0xbbde1e,merge as _0x382563,of as _0x138493,shareReplay as _0x2bf814,take as _0xdf58e,takeUntil as _0x13c2c5}from'rxjs';import{CmdRspCode as _0x1dc572,CombCmd as _0xe2186d,ErrorCode as _0x29a0fd,FileSource as _0x6655af}from'@univerjs/protocol';import{ITelemetryService as _0xe3fe1b}from'@univerjs/telemetry';import{delay as _0x5f5826,filter as _0x102c7f,map as _0x324a4a,take as _0x24d0ab,takeUntil as _0x731e2}from'rxjs/operators';import{AddSlidePageMutation as _0x428a71,EnsureSlideMasterPageMutation as _0x35c0d2,MoveSlidePageMutation as _0x4c399b,RemoveSlidePageMutation as _0x5d22ee}from'@univerjs-pro/slides';import{HTTPRequest as _0x110090,HTTPService as _0x38ff13,ISocketService as _0x250eaf,MergeInterceptorFactory as _0x35179b,ThresholdInterceptorFactory as _0x3fbaa8,UniverNetworkPlugin as _0x26a826}from'@univerjs/network';import{UniverLicensePlugin as _0x4805d2,getGlobalObject as _0x4aa64d}from'@univerjs-pro/license';import{cbc as _0x4e8d01}from'@noble/ciphers/aes.js';import{concatBytes as _0xe0dbc4,randomBytes as _0x3856c0,utf8ToBytes as _0x813b4e}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x4f6b15,getDrawingImageAllowSize as _0x258551}from'@univerjs/drawing';const L=_0x4c9487(0x39f),pt={},mt='ws://127.0.0.1:8000/universer-api/comb/connect',ht=_0x4c9487(0x2eb),gt=_0x4c9487(0x2cc),_t='HEARTBEAT_TIMEOUT',vt=0x4e20,yt=_0x4c9487(0x30a),bt='LOCAL_CACHE_INTERVAL',xt=0x3e8,St=_0x4c9487(0x2a1),Ct='/universer-api/uniscript';function wt(_0x3df2c8){const _0x31ea12=_0x4c9487;return JSON[_0x31ea12(0x2a2)](_0x3df2c8)[_0x31ea12(0x2ba)];}function Tt(_0x53be47){'@babel/helpers - typeof';const _0x38faee=_0x4c9487;return Tt=typeof Symbol==_0x38faee(0x2e5)&&typeof Symbol[_0x38faee(0x395)]=='symbol'?function(_0x46b768){return typeof _0x46b768;}:function(_0x19bc2b){const _0x2892ee=_0x38faee;return _0x19bc2b&&typeof Symbol==_0x2892ee(0x2e5)&&_0x19bc2b[_0x2892ee(0x1d2)]===Symbol&&_0x19bc2b!==Symbol[_0x2892ee(0x1b1)]?_0x2892ee(0x368):typeof _0x19bc2b;},Tt(_0x53be47);}function Et(_0x8543f1,_0x1c703e){const _0x357cfa=_0x4c9487;if(Tt(_0x8543f1)!=_0x357cfa(0x282)||!_0x8543f1)return _0x8543f1;var _0x1764e0=_0x8543f1[Symbol[_0x357cfa(0x2c7)]];if(_0x1764e0!==void 0x0){var _0x1d83f2=_0x1764e0[_0x357cfa(0x387)](_0x8543f1,_0x1c703e||_0x357cfa(0x158));if(Tt(_0x1d83f2)!=_0x357cfa(0x282))return _0x1d83f2;throw TypeError(_0x357cfa(0x3ad));}return(_0x1c703e===_0x357cfa(0x32e)?String:Number)(_0x8543f1);}function Dt(_0x44910e){const _0x1bdbac=_0x4c9487;var _0x1e5171=Et(_0x44910e,_0x1bdbac(0x32e));return Tt(_0x1e5171)==_0x1bdbac(0x368)?_0x1e5171:_0x1e5171+'';}function R(_0x53b18c,_0x4df0b5,_0x2a706d){const _0x34debe=_0x4c9487;return(_0x4df0b5=Dt(_0x4df0b5))in _0x53b18c?Object[_0x34debe(0x141)](_0x53b18c,_0x4df0b5,{'value':_0x2a706d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53b18c[_0x4df0b5]=_0x2a706d,_0x53b18c;}function _0x8160(){const _0x5154bd=['_compressMutationService','snapshot','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_removeRoom','message$','_userManagerService','actions','getUnitOnRev','reject','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','fromCollab','_telemetryInfo','offline','size','965310BiqXXV','_toggleOffline','object','send','_transformStack','\x0aCurrent:\x20','_updateLocalCache','_type','socketReady','roomInfos','getWorkbookSelections','unknown','_revisionService','socketService','_sessionChannels','NO_OTHER_CLIENTS_EDITING','signUrlServerUrl','_initCloseConn','open$','_getAPIPrefixPath','m2Prime','_onRemoteRejected','compose','onTransformState','selections','_createSocket','set','_undoRedoService','members$','resend','pending','enableAuthServer','_lockTransition','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','stringify','UNIVER_BASE','retryConnectingTimer','/role','synced','list','focused$','range','_onCombEvent','onLocalMutation','close','onTransformIME','_cfgEnableObjInherit','conflict','splice','_tryReconnect','getMember','_onMessage','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','_replayCachedMutations','encodeURIComponent','permissionRejEvent','enableOfflineEditing','length','_substituteRedoStack','onRemoteRetry','RECV','_init','PERMISSION_REJ','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','\x20-\x20','[CollaborationSessionService]','_incrementRevisionNumber','_resolveSessionIdentity','_collaborationPaused','telemetry\x20info\x20is\x20not\x20initialized','toPrimitive','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_transformService','UNIVER_DOC','apply','HEARTBEAT_INTERVAL','LIVESHARE_REQUEST_HOST','_onRemoteACK','init','IDLE','JOIN_ROOM_NOT_EXISTS','_transformUndoredo','_identity','People','_commandService','_onConnectionOpen','_joinRoom','[DataLoaderService]','4TFfwuS','USERS_ENTER','awaiting_with_pending','_injector','ONLINE','listCollaborators','_startCollaboration','PSEUDO_FETCH_MISSING_RESULT','1565179xAxfyQ','onlyLocal','socket\x20close','getTypeOfUnitDisposed$','function','_changesetSessionId','_imageSourceCache','catch','COMPRESS_MUTATION_SEND','updateOfflineData','/universer-api/user/session-ticket','loadOfflineData','createInstance','_getDownloadEndpointURL','loadUnit','getLatestCsReqIdBySid','_redoStacks','downloadEndpointUrl','revision','_toggleOnline','toggleOffline','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','?size=','/universer-api/file/{fileID}/sign-url','CHANGESET_REJ','sendChangesetTimeout','/block/','/universer-api/oidc/authpage','_initMergeInterceptor','[SyncedState]:\x20received\x20acknowledgement.','_networkConditionService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','interceptor','__Key__','_transformRemoteChangesetByIMECache','_onConflict','setShowComponents','_pendingMutations','getCollabEntity$','JOIN_ROOM_FULL','title','RETRY_CONNECTING_MAX_COUNT','name','dispose$','_unlockTransition','JOINING','_clearHeartbeatTimer','backupOfflineData','body','sid','duration','2433640GXuWFd','unit','_registerDependencies','_emitMembers','Univer','_getSendChangesetTimeout','&to=','endpoint','getUploadOptions','_clearLocalCache','method','/-/object/list','_collabSessionService','csRejEvent','hasOwnProperty','_localeService','NOT_COLLAB','_onRecvEvent','now','ERROR_IMAGE','find','_getUploadFileURL','PERSON','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','/allowed','univer-pro.collaboration-client.single-active-unit-service','string','fetchThroughInterceptors','_socketMessageSubscription','isArray','getTime','liveShareOperation','tables','LIVESHARE_FETCH_OPERATIONS','loadBase','file','asObservable','_executeRemoteChangeset','editing\x20status\x20changed\x20to','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','BASE64','c2Prime','getFocusedUnit','onRemoteAck','_waitCount','_clearTimeoutTimer','_adapter','OTHER_CLIENT_EDITING','appendMutation','setCurrentUser','18HaxjoH','_clearRedo','connection\x20error','getSnapshotAPIPath','OPTIONAL','_onConnectionFailed','baseRev','SUCCUSS','loadDoc','_transformAndApplyRemoteChangeset','findIndex','close$','_entityInit$','_schedule','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','HELLO','_scheduleCompleteTimestamp','LIVESHARE_OPERATION','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_memberService','AWAITING','clear','disposeWithMe','localCacheService','sessionStatus','endsWith','_isPermissionRej','[CollaborationSession]','INGEST','/universer-api/snapshot','[SyncedState]:\x20received\x20rejection.','HEARTBEAT_TIMEOUT','onTransformSelections','symbol','_transitionLocked','setCfgEnableObjInherit','mutations','push','JOIN','sort','_remoteChangesetQueue','liveShareNewHost','_onUserLeave','pipe','onStarting','getTypeOfUnitAdded$','authzUrl','subUnitId','loadSlide','_getLoginPath','session.room-not-exists','_commentService','onRemoteRej','_roomCreated$','_fetchMissChangesets','POST','[OfflineState]:\x20received\x20acknowledgement.','delete','originalMeta','[CollaborationEntity]','socket$','onMissedChangesetFetched','type','origin','call','COMMENT_UPDATE','_createInitialState','onSendChangeset','_collaborationUIEventService','error','put','SUBMIT_CHANGESET_TIMEOUT','_transformSelections','csShouldRetryEvent','285940HNCzML','max','_onFetchMissResult','updateCursorEvent','iterator','transformChangesets','objectID','_getAPIPrefix','_getSocketChannel','requireSession','_changesetReqId','_acknowledgeAwaitingIfReady','9Uqyzja','_decreaseWaiting','collaboration-client.config','target','_instanceService','_collaborationTimeoutTimer','_initDependencies','_clearScheduledTask','session.room-cnt-exceeds','parse','onTransformRemoteChangesetByStateCache','/universer-api/stream/file/upload','decorate','_undoStacks','c1Prime','univer-pro.collaboration-client-adapter-service','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_telemetryService','ERROR_EXCEED_SIZE','[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.','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','loginUrlKey','isPermissionRej','collaboration_new_changeset','27028mAbMig','_eventService','fetch_missing','getCurrentRevOfUnit','onMutationExecutedForCollab','_members','refreshPermission','withCredentials','[CollaborationUndoRedoService]','_resendTimer','fetchMissingChangesets','_socketService','textRanges','getConfig','_onUserJoin','updateMember','updatePermissionPoint','leaveEvent','_clearRetryConnectingTimer','LEAVE','_entities','getInterceptPoints','getImageSourceCache','encrypt','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_submitChangeset','capture','_getCtorByUniverInstanceType','readyForCollab','startsWith','defineProperty','encode','_onOffline','status$','subscribe','headers','_initUnitPermissionChange','maxSize','snapshotServerUrl','awaiting','complete','unit-cache-','params','loadSheet','&source=','JOIN_ROOM_PERMISSION_DENIED','getCurrentUser','accept','UnitEmbedded','SOCKET_FAILED','missingChangesets','_acknowledgeAwaiting','localeService','default','_getUndoStack','getResourcesRequest','_event$','{fileID}','_scheduleCollaborationTimeoutTimer','transformMutationsWithChangeset','Error\x20on\x20receiving\x20event','[CollaborationState]:\x20apply\x20error!','replace','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','USERS_LEAVE','append','confirm','then','/fetchmissing?from=','URL','executeCommand','deleteCollaborator','_httpService','_docStateChangeManagerService','submit\x20changeset\x20error!','_snapshotService','_unitLoaded$','unitId\x20is\x20not\x20found','COMPRESS_MUTATION_APPLY','cmd','trim','MUTATION','updateSnapshot','blockRanges','_handler','_rescheduleHeartbeat','registerHTTPInterceptor','fetchMiss','removeMember','memberID','onMissingChangesets','routeKey','_sender','state','_unitInfo$','number','UNIVER_SHEET','onSyncEditingCollabCursor','_updateState','text-x','error$','getCollabEntity','base-ui.attachment-io.service','_transformRemoteChangesetByStateCache','uploadFileServerUrl','post','loadBoard','CHANGESET_ACK','userID','getUnitType','_localCacheService','_shouldReportTelemetry','joinRsp','OFFLINE','session.join-failed','_collaborationSessionService','_members$','CLOSE_ROOM','_throwTelemetryCollaborationNewChangeset','initWorkbookPermissionChange','result','UNISCRIPT_RUN','CONFLICT','PENDING','pluginName','_state$','saveSnapshot','_createHandler','loadUnitOfRevision','status','emitEvent','forEach','_updateStatus','every','_configService','sendHeartbeatTimer','reconnect','_tryEnsureSocket','sessionStatus$','x-univer-host','_listenToNetworkCondition','next','prototype','/unit/','_univerInstanceService','[PendingState]:\x20received\x20acknowledgement.','_socketChannels','_sendHeartbeat','commentUpdateEvent','unsubscribe','add','override','HEARTBEAT','?url=','disableLocalCache','[PendingState]:\x20received\x20rejection.','_getConfig','requestParams','unitType','localUnitId','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','[CollaborationSessionService]:\x20socket\x20error','incrementRevOfUnit','_clearCollaborationTimeoutTimer','_resendWithTimeout','SNAPSHOT_URL_KEY','_handleRemoteChangesets','_sessionStatus$','/new_changes','unitID','_change$','AWAITING_WITH_PENDING','awaitingChangeset','_createInitialStateImpl','objectType','constructor','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getMemberID','location','FETCH_MISS','SOCKET_FAILED_RETRY','resolve','update','/universer-api/comb','SHOULD_CLOSE_CONN','univer-pro.collaboration-client.network-condition.service','href','_createSession','UNIVER_COLLABORATION_CLIENT_PLUGIN','LIVESHARE_NEW_HOST','indexOf','saveChangeset','_maxTotalRetryTimeout','_state','save\x20fail\x20reason\x20is\x20','map','FETCH_MISSING','commentUpdate$','/rev/','data','_exhaustRemoteChangesetQueue','_transformIMECache','_socket','_initRequestHeader','onRemoteChangeset','changeset','toString','session.room-permission-denied','unitInfo$','_HTTPService','changesets','some','unitLoaded$','addImageSourceCache','session','stopTime','SUBMIT_CHANGESET','patch','_doCreateSocket','debug','getValue','session.room-full','fetching\x20missing\x20changesets\x20from\x20','min','get','/universer-api/authz','resolveUnit','objects','_onRemoteRetry','_acknowledgedAwaitingRevision','upload','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','columnGroups','_showConflictNotification','UNIVER_SLIDE','candidateSocket','toggleOnline','reqId','filter','batchAllowed','retryCount','members','univer-pro.collaboration-client-socket-service','slice','_getCurrentRevision','_commentUpdate$','copyFileMeta','onTransformRemoteChangesetByIMECache','floor','updateCollaborator','timeoutTimer','dispose','1068156yEDLmi','_logService','transformSelections','NEW_CHANGESETS','OTHER_CLIENTS_EDITING','Failed\x20to\x20update\x20permission\x20point','_roomMembers','[OfflineState]:\x20received\x20changeset.','_sessions','/object/','_isEchoedAwaitingChangeset','/-/object/-/batch_allowed','\x20in\x20_schedule.','includes','CHANGESET_SHOULD_RETRY','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','UUID','UNIVER_BOARD','_getSignURL','setWaitCount','collabSubmitChangesetUrl','onCommentUpdate','getImage','getCfgEnableObjInherit','_getRedoStack','_onLocalMutation','1803120xVIXNe','unitId','change$','rev','_sendingTimer','_pendingSessions','_transformStateCache','eventID','_resendTimeout','avatar','enableCollaboration','/collaborator','_snapshotServerService','event$','_singleActiveUnitService','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','responseType','MSG_FOR_ERROR','endpointKey','UPDATE_PERMISSION_OBJ','_hasSessionsForEndpoint','_permissionService','createSocket','code','socketMessageSubscription','_sheetTransformSelectionsService','_handlerCallback','closeSession','_status$','&assign=','_awaitingChangeset','_applyRemoteChangeset','startTime','getRoom','getUnitId','_onJoinRoomEvent','entries','LIVESHARE_TERMINATE','_disableEditing','getSheetId','_queuedRemoteChangesets','FileId','/universer-api/snapshot/','_config','getAllMembers','JOIN_ROOM_FAILED','/object','/resources','not_collab','_replaceFileID','values','ERROR_IMAGE_TYPE','transformUndoRedo','readAsDataURL','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','has','_checkMissing'];_0x8160=function(){return _0x5154bd;};return _0x8160();}let Ot=function(_0x216b31){const _0x22df3c=_0x4c9487;return _0x216b31[_0x22df3c(0x343)]=_0x22df3c(0x343),_0x216b31['PERMISSION_DENIED']='PERMISSION_DENIED',_0x216b31[_0x22df3c(0x19d)]='CONFLICT',_0x216b31['CLOSE_ROOM']=_0x22df3c(0x198),_0x216b31[_0x22df3c(0x266)]=_0x22df3c(0x266),_0x216b31[_0x22df3c(0x1d7)]='SOCKET_FAILED_RETRY',_0x216b31[_0x22df3c(0x154)]=_0x22df3c(0x154),_0x216b31[_0x22df3c(0x38e)]=_0x22df3c(0x38e),_0x216b31;}({});var z=class{constructor(){const _0x5193c4=_0x4c9487;R(this,_0x5193c4(0x15b),new _0x4f22d9()),R(this,_0x5193c4(0x246),this[_0x5193c4(0x15b)][_0x5193c4(0x338)]());}[_0x4c9487(0x1a5)](_0x5f2fc3){const _0x22389c=_0x4c9487;this['_event$'][_0x22389c(0x1b0)](_0x5f2fc3);}},kt=class{constructor(){const _0xb3308=_0x4c9487;R(this,_0xb3308(0x218),new _0x4f22d9()),R(this,_0xb3308(0x1e8),this[_0xb3308(0x218)][_0xb3308(0x338)]());}[_0x4c9487(0x234)](_0x2700fb){const _0x778b5f=_0x4c9487;this[_0x778b5f(0x218)][_0x778b5f(0x1b0)](_0x2700fb);}};function B(_0x23603d,_0x308f7e){return function(_0x1821cf,_0x3adcdd){_0x308f7e(_0x1821cf,_0x3adcdd,_0x23603d);};}function V(_0x364305,_0x2bed80,_0xa16ec5,_0x394edd){const _0x5f4edb=_0x4c9487;var _0x51a7da=arguments[_0x5f4edb(0x2ba)],_0x32fa19=_0x51a7da<0x3?_0x2bed80:_0x394edd===null?_0x394edd=Object['getOwnPropertyDescriptor'](_0x2bed80,_0xa16ec5):_0x394edd,_0x5c4183;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x5f4edb(0x2e5))_0x32fa19=Reflect[_0x5f4edb(0x3a9)](_0x364305,_0x2bed80,_0xa16ec5,_0x394edd);else{for(var _0x31865c=_0x364305[_0x5f4edb(0x2ba)]-0x1;_0x31865c>=0x0;_0x31865c--)(_0x5c4183=_0x364305[_0x31865c])&&(_0x32fa19=(_0x51a7da<0x3?_0x5c4183(_0x32fa19):_0x51a7da>0x3?_0x5c4183(_0x2bed80,_0xa16ec5,_0x32fa19):_0x5c4183(_0x2bed80,_0xa16ec5))||_0x32fa19);}return _0x51a7da>0x3&&_0x32fa19&&Object['defineProperty'](_0x2bed80,_0xa16ec5,_0x32fa19),_0x32fa19;}let H=class extends _0x278d2d{constructor(_0x363759,_0x4ab836){const _0x28d405=_0x4c9487;super(),this['_univerInstanceService']=_0x363759,this['_userManagerService']=_0x4ab836,R(this,_0x28d405(0x225),new Map()),R(this,_0x28d405(0x37c),new _0x4f22d9()),this[_0x28d405(0x35d)](_0x382563(this[_0x28d405(0x1b3)][_0x28d405(0x2e4)](_0x672a2f['UNIVER_SHEET'])['pipe'](_0x324a4a(_0x571a86=>_0x571a86['getUnitId']())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x672a2f[_0x28d405(0x2ca)])[_0x28d405(0x372)](_0x324a4a(_0x3dd795=>_0x3dd795[_0x28d405(0x25b)]())),this[_0x28d405(0x1b3)]['getTypeOfUnitDisposed$'](_0x672a2f[_0x28d405(0x230)])[_0x28d405(0x372)](_0x324a4a(_0x44d5ed=>_0x44d5ed[_0x28d405(0x25b)]())),this[_0x28d405(0x1b3)]['getTypeOfUnitDisposed$'](_0x672a2f[_0x28d405(0x2a3)])[_0x28d405(0x372)](_0x324a4a(_0x430684=>_0x430684['getUnitId']())))[_0x28d405(0x145)](_0x95694a=>this[_0x28d405(0x275)](_0x95694a)));}['waitForRoom$'](_0x5851f8){const _0x4078d5=_0x4c9487;return this[_0x4078d5(0x225)]['has'](_0x5851f8)?_0x138493(this[_0x4078d5(0x225)]['get'](_0x5851f8)):this[_0x4078d5(0x37c)]['pipe'](_0x324a4a(_0x346c12=>{const _0x44a21a=_0x4078d5;if(_0x346c12===_0x5851f8)return this[_0x44a21a(0x225)][_0x44a21a(0x203)](_0x346c12);}));}[_0x4c9487(0x345)](_0x1f2796){const _0xfa409d=_0x4c9487;this['_userManagerService'][_0xfa409d(0x345)](_0x1f2796);}[_0x4c9487(0x151)](){const _0x3badfa=_0x4c9487;return this[_0x3badfa(0x277)][_0x3badfa(0x151)]();}[_0x4c9487(0x3c4)](_0x443d0a,_0x5a0782){const _0x27c681=_0x4c9487;let _0x596b3b=this[_0x27c681(0x225)][_0x27c681(0x203)](_0x443d0a);_0x596b3b||(_0x596b3b=new At(),this[_0x27c681(0x225)][_0x27c681(0x29a)](_0x443d0a,_0x596b3b),this[_0x27c681(0x37c)][_0x27c681(0x1b0)](_0x443d0a)),_0x596b3b[_0x27c681(0x3c4)](_0x5a0782);}['removeMember'](_0x32f599,_0x5a5dd0){const _0x21a506=_0x4c9487;let _0x100d04=this[_0x21a506(0x225)][_0x21a506(0x203)](_0x32f599);_0x100d04&&_0x100d04[_0x21a506(0x17b)](_0x5a5dd0);}[_0x4c9487(0x25a)](_0x532ac4){const _0x2d2590=_0x4c9487;return this[_0x2d2590(0x225)][_0x2d2590(0x203)](_0x532ac4);}[_0x4c9487(0x2b2)](_0x5cb1f6,_0x350c0f){const _0x5e8fbd=_0x4c9487;let _0x3fdacd=this[_0x5e8fbd(0x225)]['get'](_0x5cb1f6);if(_0x3fdacd)return _0x3fdacd[_0x5e8fbd(0x2b2)](_0x350c0f);}[_0x4c9487(0x275)](_0x3d7635){const _0x5c3863=_0x4c9487;let _0x129cbb=this['_roomMembers'][_0x5c3863(0x203)](_0x3d7635);_0x129cbb&&(_0x129cbb[_0x5c3863(0x21e)](),this['_roomMembers'][_0x5c3863(0x380)](_0x3d7635));}[_0x4c9487(0x21e)](){const _0x2bc5d9=_0x4c9487;this[_0x2bc5d9(0x225)][_0x2bc5d9(0x1a6)](_0x56abd1=>_0x56abd1['dispose']()),this[_0x2bc5d9(0x225)]['clear'](),this[_0x2bc5d9(0x37c)][_0x2bc5d9(0x14b)]();}};H=V([B(0x0,_0x566455),B(0x1,_0x25ad33(_0x1a8689))],H);var At=class extends _0x278d2d{constructor(..._0x29e708){const _0x54e84a=_0x4c9487;super(..._0x29e708),R(this,'_members',new Map()),R(this,_0x54e84a(0x197),new _0x1adaf6(this[_0x54e84a(0x3ba)])),R(this,_0x54e84a(0x29c),this[_0x54e84a(0x197)][_0x54e84a(0x338)]());}[_0x4c9487(0x21e)](){const _0x199e20=_0x4c9487;this[_0x199e20(0x3ba)][_0x199e20(0x35c)](),this['_members$'][_0x199e20(0x14b)]();}[_0x4c9487(0x3c4)](_0x21311b){const _0x4be836=_0x4c9487;this[_0x4be836(0x3ba)][_0x4be836(0x29a)](_0x21311b[_0x4be836(0x17c)],_0x21311b),this[_0x4be836(0x317)]();}[_0x4c9487(0x17b)](_0x3d03c5){const _0x319284=_0x4c9487;this[_0x319284(0x3ba)]['delete'](_0x3d03c5),this[_0x319284(0x317)]();}[_0x4c9487(0x2b2)](_0x2f1b51){return this['_members']['get'](_0x2f1b51);}[_0x4c9487(0x265)](){const _0x35c32e=_0x4c9487;return Array['from'](this[_0x35c32e(0x3ba)]['values']());}['_emitMembers'](){const _0x5d692a=_0x4c9487;this[_0x5d692a(0x197)][_0x5d692a(0x1b0)](this[_0x5d692a(0x3ba)]);}};function jt(_0x30f3a7,_0x20af5d){const _0x26d569=_0x4c9487;if(Nt(_0x30f3a7))return _0x20af5d;if(_0x20af5d['eventID']===_0x455bbe['SUBMIT_CHANGESET']){var _0x34ca83;let _0x40bebd=Rt(_0x30f3a7),_0x411eed=_0x20af5d;return{..._0x411eed,'data':{..._0x411eed[_0x26d569(0x1ea)],'unitID':_0x30f3a7['target'][_0x26d569(0x23a)],'unitType':(_0x34ca83=_0x30f3a7['target']['unitType'])==null?_0x411eed[_0x26d569(0x1ea)][_0x26d569(0x1c1)]:_0x34ca83,'changeset':_0x40bebd['toRemote'](_0x411eed[_0x26d569(0x1ea)][_0x26d569(0x1f0)],zt(_0x30f3a7))}};}if(_0x20af5d[_0x26d569(0x240)]===_0x455bbe[_0x26d569(0x1e7)]){var _0x2ee38e;let _0x3229d7=_0x20af5d;return{..._0x3229d7,'data':{..._0x3229d7[_0x26d569(0x1ea)],'unitID':_0x30f3a7[_0x26d569(0x3a0)]['unitId'],'unitType':(_0x2ee38e=_0x30f3a7[_0x26d569(0x3a0)][_0x26d569(0x1c1)])==null?_0x3229d7['data'][_0x26d569(0x1c1)]:_0x2ee38e}};}return _0x20af5d;}function Mt(_0x1bf1db,_0xbb183a){const _0x5ca7d3=_0x4c9487;if(Nt(_0x1bf1db))return[_0xbb183a];switch(_0xbb183a['eventID']){case _0x455bbe[_0x5ca7d3(0x222)]:return[Pt(_0x1bf1db,_0xbb183a)];case _0x455bbe[_0x5ca7d3(0x2e0)]:return[It(_0x1bf1db,_0xbb183a)];case _0x455bbe[_0x5ca7d3(0x22d)]:return[Ft(_0x1bf1db,_0xbb183a)];default:return[_0xbb183a];}}function Nt(_0x17a3a8){const _0x2f7b77=_0x4c9487;return _0x17a3a8[_0x2f7b77(0x3a0)][_0x2f7b77(0x31b)]==null&&_0x17a3a8[_0x2f7b77(0x3a0)][_0x2f7b77(0x23a)]===_0x17a3a8[_0x2f7b77(0x1c2)]&&!_0x17a3a8[_0x2f7b77(0x1f0)];}function Pt(_0x5d2b0c,_0x1ad5c0){const _0x3d199a=_0x4c9487;return{..._0x1ad5c0,'data':_0x8fd771(Lt(_0x5d2b0c,_0x4cb958(_0x1ad5c0[_0x3d199a(0x1ea)])))};}function Ft(_0x1ee59b,_0x3e5ad4){const _0x26887d=_0x4c9487;return{..._0x3e5ad4,'data':Lt(_0x1ee59b,_0x3e5ad4[_0x26887d(0x1ea)])};}function It(_0x4b361c,_0x26c4b9){const _0x481ed1=_0x4c9487;let _0x598d97=_0x26c4b9[_0x481ed1(0x1ea)];return{..._0x26c4b9,'data':{..._0x598d97,'changesets':_0x598d97[_0x481ed1(0x1f5)]['map'](_0x19c923=>_0x8fd771(Lt(_0x4b361c,_0x4cb958(_0x19c923))))}};}function Lt(_0x9b43a8,_0x1ae16d){return Rt(_0x9b43a8)['toLocal'](_0x1ae16d,zt(_0x9b43a8));}function Rt(_0x3dd8ec){const _0x176937=_0x4c9487;if(!_0x3dd8ec['changeset'])throw Error('COLLABORATION_CHANGESET_TRANSLATION_REQUIRED');return _0x3dd8ec[_0x176937(0x1f0)];}function zt(_0xc6df45){const _0xcd965d=_0x4c9487;return{'localUnitId':_0xc6df45[_0xcd965d(0x1c2)],'unitType':_0xc6df45[_0xcd965d(0x1c1)],'target':_0xc6df45[_0xcd965d(0x3a0)]};}let Bt=function(_0x36d0c2){const _0x1cb737=_0x4c9487;return _0x36d0c2[_0x36d0c2[_0x1cb737(0x2d0)]=0x0]='IDLE',_0x36d0c2[_0x36d0c2['JOINING']=0x1]=_0x1cb737(0x30e),_0x36d0c2[_0x36d0c2['OFFLINE']=0x2]=_0x1cb737(0x194),_0x36d0c2[_0x36d0c2[_0x1cb737(0x2dd)]=0x3]=_0x1cb737(0x2dd),_0x36d0c2;}({});const Vt={[_0x1dc572['FAIL']]:_0x4c9487(0x195),[_0x1dc572[_0x4c9487(0x308)]]:_0x4c9487(0x200),[_0x1dc572[_0x4c9487(0x2d1)]]:_0x4c9487(0x379),[_0x1dc572[_0x4c9487(0x150)]]:_0x4c9487(0x1f2),[_0x1dc572['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x4c9487(0x3a5)};let Ht=class extends _0x320367{get[_0x4c9487(0x35f)](){const _0x4707cd=_0x4c9487;return this[_0x4707cd(0x1ca)][_0x4707cd(0x1ff)]();}constructor(_0x55aa3c,_0x436cf3,_0x336bde,_0x3a2c39,_0x97e0e2,_0x2b3aaa,_0x1a5496,_0x59e48f){const _0x43dd53=_0x4c9487;super(),this['_identity']=_0x55aa3c,this[_0x43dd53(0x220)]=_0x336bde,this[_0x43dd53(0x1a9)]=_0x3a2c39,this[_0x43dd53(0x35a)]=_0x97e0e2,this[_0x43dd53(0x37a)]=_0x2b3aaa,this['_collaborationUIEventService']=_0x1a5496,this[_0x43dd53(0x3ae)]=_0x59e48f,R(this,_0x43dd53(0x1ca),new _0x1adaf6(0x0)),R(this,_0x43dd53(0x1ad),this['_sessionStatus$'][_0x43dd53(0x338)]()),R(this,_0x43dd53(0x15b),new _0x4f22d9()),R(this,_0x43dd53(0x246),this[_0x43dd53(0x15b)]['asObservable']()),R(this,'_socket',void 0x0),R(this,_0x43dd53(0x330),void 0x0),R(this,_0x43dd53(0x3a2),void 0x0),R(this,'_shouldReportTelemetry',!0x1),R(this,_0x43dd53(0x27d),null),this[_0x43dd53(0x192)]=!!this[_0x43dd53(0x3ae)],_0x436cf3[_0x43dd53(0x372)](_0x13c2c5(this[_0x43dd53(0x30c)]))[_0x43dd53(0x145)](_0x1da58b=>{const _0xebae76=_0x43dd53;if(_0x1da58b!==void 0x0){if(this[_0xebae76(0x1ed)]=_0x1da58b,_0x1da58b)this[_0xebae76(0x2d7)](_0x1da58b),this[_0xebae76(0x330)]=_0x1da58b[_0xebae76(0x276)][_0xebae76(0x145)](_0x5883f1=>{const _0x208154=_0xebae76;_0x5883f1[_0x208154(0x17e)]===this[_0x208154(0x2d3)][_0x208154(0x3a0)][_0x208154(0x23a)]&&this[_0x208154(0x2aa)](_0x5883f1);});else{var _0x15521d;this[_0xebae76(0x199)](),this['_sessionStatus$']['next'](0x2),(_0x15521d=this[_0xebae76(0x330)])==null||_0x15521d[_0xebae76(0x1b8)](),this[_0xebae76(0x330)]=null;}}});}[_0x4c9487(0x1d4)](){const _0x3a8bb9=_0x4c9487;var _0x2b9a7b,_0x24f4d4;return(_0x2b9a7b=(_0x24f4d4=this['_socket'])==null?void 0x0:_0x24f4d4[_0x3a8bb9(0x17c)])==null?null:_0x2b9a7b;}['dispose'](){const _0x44afdd=_0x4c9487;super[_0x44afdd(0x21e)](),this[_0x44afdd(0x2ac)](),this['dispose$']['next'](),this[_0x44afdd(0x30c)][_0x44afdd(0x14b)]();}[_0x4c9487(0x2ac)](){const _0xd81ebd=_0x4c9487;var _0x499ecf;this[_0xd81ebd(0x199)](),(_0x499ecf=this['_socket'])==null||_0x499ecf[_0xd81ebd(0x283)]({'cmd':_0xe2186d['LEAVE'],'data':{'roomID':this[_0xd81ebd(0x2d3)][_0xd81ebd(0x3a0)][_0xd81ebd(0x23a)]}}),this[_0xd81ebd(0x15b)][_0xd81ebd(0x14b)](),this[_0xd81ebd(0x1ca)][_0xd81ebd(0x14b)]();}[_0x4c9487(0x2aa)](_0x453cbc){const _0x43638e=_0x4c9487;_0x453cbc[_0x43638e(0x172)]===_0xe2186d['JOIN']?this[_0x43638e(0x25c)](_0x453cbc):_0x453cbc[_0x43638e(0x172)]===_0xe2186d['RECV']&&this[_0x43638e(0x325)](_0x453cbc);}[_0x4c9487(0x2d7)](_0x287539){const _0x3a6443=_0x4c9487;this['_sessionStatus$'][_0x3a6443(0x1b0)](0x1),_0x287539[_0x3a6443(0x283)]({'cmd':_0xe2186d[_0x3a6443(0x36d)],'routeKey':this[_0x3a6443(0x2d3)][_0x3a6443(0x3a0)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this[_0x3a6443(0x2d3)][_0x3a6443(0x3a0)][_0x3a6443(0x23a)]}]}});}[_0x4c9487(0x25c)](_0x44e167){const _0x5e2f01=_0x4c9487;var _0x9afeb9;if(_0x44e167[_0x5e2f01(0x250)]in Vt){this[_0x5e2f01(0x38b)][_0x5e2f01(0x1a5)]({'id':'JOIN_ROOM_FAILED','data':Vt[_0x44e167[_0x5e2f01(0x250)]]}),this[_0x5e2f01(0x1ca)][_0x5e2f01(0x1b0)](0x2);return;}this[_0x5e2f01(0x1ca)][_0x5e2f01(0x1b0)](0x3);let _0x648e97=(_0x9afeb9=_0x44e167[_0x5e2f01(0x1ea)][_0x5e2f01(0x289)][this['_identity'][_0x5e2f01(0x3a0)][_0x5e2f01(0x23a)]])==null?void 0x0:_0x9afeb9[_0x5e2f01(0x214)];_0x648e97&&_0x648e97[_0x5e2f01(0x1a6)](_0x57896f=>this['_memberService']['updateMember'](this[_0x5e2f01(0x2d3)][_0x5e2f01(0x1c2)],_0x57896f));}[_0x4c9487(0x325)](_0xfeb9bc){const _0x4ab8c1=_0x4c9487;try{let _0xbfaa33=Mt(this[_0x4ab8c1(0x2d3)],_0xfeb9bc[_0x4ab8c1(0x1ea)]);for(let _0x6731c5 of _0xbfaa33)switch(_0x6731c5['eventID']){case _0x455bbe[_0x4ab8c1(0x2da)]:this[_0x4ab8c1(0x3c3)](_0x6731c5),this[_0x4ab8c1(0x15b)][_0x4ab8c1(0x1b0)](_0x6731c5);break;case _0x455bbe[_0x4ab8c1(0x163)]:this[_0x4ab8c1(0x371)](_0x6731c5),this[_0x4ab8c1(0x15b)][_0x4ab8c1(0x1b0)](_0x6731c5);break;case _0x455bbe['CHANGESET_ACK']:case _0x455bbe[_0x4ab8c1(0x22d)]:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this[_0x4ab8c1(0x15b)][_0x4ab8c1(0x1b0)](_0x6731c5);break;case _0x455bbe[_0x4ab8c1(0x24a)]:this[_0x4ab8c1(0x220)][_0x4ab8c1(0x38c)](_0x4ab8c1(0x1e5)+JSON['stringify'](_0x6731c5)),this[_0x4ab8c1(0x15b)][_0x4ab8c1(0x1b0)](_0x6731c5);break;case _0x455bbe[_0x4ab8c1(0x388)]:this[_0x4ab8c1(0x37a)][_0x4ab8c1(0x234)](_0x6731c5[_0x4ab8c1(0x1ea)]),this['_event$'][_0x4ab8c1(0x1b0)](_0x6731c5);break;default:this[_0x4ab8c1(0x15b)][_0x4ab8c1(0x1b0)](_0x6731c5);}}catch(_0x53635f){this[_0x4ab8c1(0x220)][_0x4ab8c1(0x38c)](_0x53635f,_0xfeb9bc);}}['_onUserJoin'](_0x22a570){const _0x3e8e0b=_0x4c9487;this[_0x3e8e0b(0x35a)][_0x3e8e0b(0x3c4)](this[_0x3e8e0b(0x2d3)]['localUnitId'],_0x22a570[_0x3e8e0b(0x1ea)]);}['_onUserLeave'](_0x113c06){const _0x40d077=_0x4c9487;this['_memberService'][_0x40d077(0x17b)](this[_0x40d077(0x2d3)]['localUnitId'],_0x113c06[_0x40d077(0x1ea)]['memberID']);}async[_0x4c9487(0x283)](_0x46556d,_0xe5fce8){const _0x3d44dc=_0x4c9487;if(this[_0x3d44dc(0x35f)]!==0x3||!this[_0x3d44dc(0x1ed)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x440bfa=jt(this[_0x3d44dc(0x2d3)],_0x46556d);_0x440bfa[_0x3d44dc(0x240)]===_0x455bbe[_0x3d44dc(0x1fb)]&&(this[_0x3d44dc(0x15d)](),this['_startTelemetryCollaborationNewChangeset'](_0x440bfa)),this['_socket'][_0x3d44dc(0x283)]({'cmd':_0xe2186d['INGEST'],'routeKey':this[_0x3d44dc(0x2d3)][_0x3d44dc(0x3a0)][_0x3d44dc(0x23a)],'routeType':'','data':_0x440bfa});}catch(_0x5c4f76){this['_logService'][_0x3d44dc(0x38c)](_0x5c4f76);}}[_0x4c9487(0x15d)](){const _0x59f241=_0x4c9487;var _0x11be43;this[_0x59f241(0x3a2)]=setTimeout(()=>{const _0x21fbe5=_0x59f241;this['_collaborationTimeoutTimer']=null,this[_0x21fbe5(0x38b)][_0x21fbe5(0x1a5)]({'id':_0x21fbe5(0x38e)});},(_0x11be43=this[_0x59f241(0x1a9)][_0x59f241(0x3c2)](_0x59f241(0x366)))==null?vt:_0x11be43);}[_0x4c9487(0x1c6)](){const _0x3141ca=_0x4c9487;this[_0x3141ca(0x3a2)]&&(clearTimeout(this[_0x3141ca(0x3a2)]),this[_0x3141ca(0x3a2)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x344616){const _0x5b3e3e=_0x4c9487;if(!this[_0x5b3e3e(0x192)])return;let {data:_0xb58af3}=_0x344616,{unitID:_0xb35514,changeset:_0xda2a2f}=_0xb58af3,{mutations:_0x3c794a,type:_0x138190}=_0xda2a2f;this[_0x5b3e3e(0x27d)]={'unitId':_0xb35514,'type':_0x138190,'startTime':performance[_0x5b3e3e(0x326)](),'stopTime':0x0,'duration':0x0,'size':wt(_0x3c794a)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x7907e0=_0x4c9487;if(this[_0x7907e0(0x192)]){if(!this[_0x7907e0(0x27d)]){this[_0x7907e0(0x220)][_0x7907e0(0x38c)](_0x7907e0(0x362),_0x7907e0(0x2c6));return;}this['_telemetryInfo'][_0x7907e0(0x1fa)]=performance[_0x7907e0(0x326)](),this['_telemetryInfo'][_0x7907e0(0x313)]=this[_0x7907e0(0x27d)]['stopTime']-this[_0x7907e0(0x27d)][_0x7907e0(0x259)],this[_0x7907e0(0x3ae)][_0x7907e0(0x13d)](_0x7907e0(0x3b4),this[_0x7907e0(0x27d)]),this[_0x7907e0(0x27d)]=null;}}[_0x4c9487(0x199)](){const _0x1597ba=_0x4c9487;this[_0x1597ba(0x27d)]=null;}};Ht=V([B(0x2,_0x2260fd),B(0x3,_0x408d6e),B(0x4,_0x25ad33(H)),B(0x5,_0x25ad33(kt)),B(0x6,_0x25ad33(z)),B(0x7,_0x129a9b(_0xe3fe1b))],Ht);const U=_0x354efe('collaboration-client.local-cache-service');function Ut(_0x44b089){const _0x1c444f=_0x4c9487;return _0x1c444f(0x14c)+_0x44b089;}function Wt(_0x4e5f03){const _0xb0fd1c=_0x4c9487;let {unitID:_0x389638,mutations:_0x4f8846}=_0x4e5f03;return{'unitId':_0x389638,'subUnitId':_0x4f8846[_0xb0fd1c(0x2ba)]>0x0?_0x4f8846[0x0]['params'][_0xb0fd1c(0x376)]:null};}let Gt=class{constructor(_0x34243d,_0xb9f369,_0x52dba1){const _0x1106c0=_0x4c9487;this['_injector']=_0x34243d,this[_0x1106c0(0x2c9)]=_0xb9f369,this[_0x1106c0(0x3a1)]=_0x52dba1;}[_0x4c9487(0x221)](_0x126d77){const _0x3b919c=_0x4c9487;var _0x51bdf4,_0x5ddb88;let _0xbde54e=this['_injector'][_0x3b919c(0x203)](_0x29e6ec),{unitId:_0x364665,subUnitId:_0x119b4e}=Wt(_0x126d77),_0x344082=_0xbde54e==null?void 0x0:_0xbde54e[_0x3b919c(0x28a)](_0x364665)['getCurrentSelections'](),_0x1175d6=(_0x51bdf4=this[_0x3b919c(0x3a1)]['getUnit'](_0x364665))==null||(_0x51bdf4=_0x51bdf4['getActiveSheet']())==null?void 0x0:_0x51bdf4[_0x3b919c(0x260)]();if(_0x344082[_0x3b919c(0x2ba)]===0x0||!_0x364665||!_0x119b4e)return;let _0x39db1d=[{'id':_0x2c41f5['id'],'params':{'unitId':_0x364665,'subUnitId':_0x1175d6,'selections':_0x2baf21['deepClone'](_0x344082)}}],_0x474e4a=this[_0x3b919c(0x2c9)][_0x3b919c(0x15e)](_0x126d77,_0x39db1d);if(!_0x22e674(_0x474e4a))throw _0x474e4a[_0x3b919c(0x38c)];let _0x31e99d=(_0x5ddb88=_0x474e4a[_0x3b919c(0x294)][0x0])==null||(_0x5ddb88=_0x5ddb88[_0x3b919c(0x14d)])==null?void 0x0:_0x5ddb88['selections'];if(Array[_0x3b919c(0x331)](_0x31e99d)&&_0x31e99d[_0x3b919c(0x2ba)]){if(_0x31e99d[_0x3b919c(0x2ba)]===_0x39db1d[0x0][_0x3b919c(0x14d)]['selections'][_0x3b919c(0x2ba)]&&_0x31e99d['every']((_0x34e340,_0x66bf78)=>_0x3f2b9d['equals'](_0x34e340[_0x3b919c(0x2a9)],_0x39db1d[0x0][_0x3b919c(0x14d)][_0x3b919c(0x298)][_0x66bf78][_0x3b919c(0x2a9)])))return;this[_0x3b919c(0x2dc)][_0x3b919c(0x203)](_0x4d9c36)[_0x3b919c(0x169)](_0x2c41f5['id'],{'unitId':_0x364665,'subUnitId':_0x1175d6,'selections':_0x31e99d});}}};Gt=V([B(0x0,_0x25ad33(_0x4f91d7)),B(0x1,_0x4bb226),B(0x2,_0x566455)],Gt);const W=_0x354efe(_0x4c9487(0x32d));let Kt=function(_0x52259a){const _0x2e1a7f=_0x4c9487;return _0x52259a[_0x52259a[_0x2e1a7f(0x28f)]=0x0]=_0x2e1a7f(0x28f),_0x52259a[_0x52259a[_0x2e1a7f(0x223)]=0x1]=_0x2e1a7f(0x223),_0x52259a;}({});function qt(_0x3044d9){const _0x27d471=_0x4c9487;var _0x44233c;return!!((_0x44233c=_0x3044d9[_0x27d471(0x14d)])!=null&&_0x44233c['__splitChunk__']);}const Jt=new Set([_0x26a59d['id']]),Yt=new Set([_0x428a71['id'],_0x35c0d2['id'],_0x4c399b['id'],_0x5d22ee['id']]);function Xt(_0x14a902,_0x46bdf2=Jt){const _0x21b491=_0x4c9487;let _0x5aee66=[];for(let _0x55d6d5 of _0x14a902){if(_0x46bdf2[_0x21b491(0x270)](_0x55d6d5['id'])){if(_0x5aee66[_0x21b491(0x2ba)]>0x0)break;_0x5aee66[_0x21b491(0x36c)](_0x55d6d5);break;}if(qt(_0x55d6d5)){if(_0x5aee66[_0x21b491(0x2ba)]>0x0)break;_0x5aee66[_0x21b491(0x36c)](_0x55d6d5);break;}_0x5aee66[_0x21b491(0x36c)](_0x55d6d5);}return _0x5aee66;}function Zt(_0x595fd2,_0x114159,_0x55bce6,_0x21e6c7,_0x29e7e6){const _0x2417b8=_0x4c9487;var _0x2c48dc,_0x3eafcb,_0x451735,_0x58faa8;let _0x3f5b2e=Xt(_0x595fd2),_0x117a2b=(_0x2c48dc=(_0x3eafcb=_0x29e7e6['getCurrentUser']())==null?void 0x0:_0x3eafcb[_0x2417b8(0x18f)])==null?'unknown':_0x2c48dc,_0x805e8d=(_0x451735=(_0x58faa8=_0x29e7e6[_0x2417b8(0x151)]())==null?void 0x0:_0x58faa8[_0x2417b8(0x17c)])==null?_0x2417b8(0x28b):_0x451735;return{'changeset':{'unitID':_0x114159,'type':_0x5c01a1(_0x55bce6[_0x2417b8(0x190)](_0x114159)),'baseRev':_0x21e6c7[_0x2417b8(0x3b8)](_0x114159),'revision':0x0,'userID':_0x117a2b,'memberID':_0x805e8d,'mutations':_0x3f5b2e},'pendingMutations':_0x595fd2[_0x2417b8(0x216)](_0x3f5b2e[_0x2417b8(0x2ba)])};}function Qt(_0x9baa3b,_0x414584,_0x1de747,_0x188cf0,_0x4ce08e){const _0x3a8bbe=_0x4c9487;var _0x3e2fb2,_0x224a5c,_0x15e827,_0x457797;let _0x43851a=Xt(_0x9baa3b,Yt),_0x28c4fb=(_0x3e2fb2=(_0x224a5c=_0x4ce08e[_0x3a8bbe(0x151)]())==null?void 0x0:_0x224a5c[_0x3a8bbe(0x18f)])==null?_0x3a8bbe(0x28b):_0x3e2fb2,_0x225a8a=(_0x15e827=(_0x457797=_0x4ce08e[_0x3a8bbe(0x151)]())==null?void 0x0:_0x457797[_0x3a8bbe(0x17c)])==null?_0x3a8bbe(0x28b):_0x15e827;return{'changeset':{'unitID':_0x414584,'type':_0x5c01a1(_0x1de747[_0x3a8bbe(0x190)](_0x414584)),'baseRev':_0x188cf0['getCurrentRevOfUnit'](_0x414584),'revision':0x0,'userID':_0x28c4fb,'memberID':_0x225a8a,'mutations':_0x43851a},'pendingMutations':_0x9baa3b['slice'](_0x43851a[_0x3a8bbe(0x2ba)])};}function $t(_0xae7e26,_0x299528,_0x35207e,_0x123352,_0x10b89a){const _0x344c7b=_0x4c9487;var _0x1b748b,_0x2867fd,_0x442460,_0x9ee6c6;let _0xcffa4=_0xae7e26['reduce']((_0x55ce50,_0x56ad0f)=>{const _0x168dc0=_0x45c3;let _0xae3a29=_0x55ce50[_0x55ce50['length']-0x1],{id:_0x35eb18}=_0xae3a29==null?{}:_0xae3a29,{id:_0x330bcb,type:_0x34653f}=_0x56ad0f,_0x4dacea=_0x56ad0f['params'];if(_0x35eb18&&_0x35eb18!==_0x330bcb)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x35eb18+_0x168dc0(0x2c1)+_0x330bcb+'.');if(!_0xae3a29)return[{'id':_0x330bcb,'type':_0x34653f,'params':{'unitId':_0x4dacea[_0x168dc0(0x23a)],'textRanges':_0x4dacea[_0x168dc0(0x3c1)],'actions':_0x4dacea['actions']}}];let _0x34a39b=_0xae3a29['params'];return en(_0x34a39b,_0x4dacea)?[..._0x55ce50[_0x168dc0(0x216)](0x0,-0x1),{..._0xae3a29,'id':_0x330bcb,'type':_0x34653f,'params':{'unitId':_0x4dacea['unitId'],'textRanges':_0x4dacea[_0x168dc0(0x3c1)],'actions':_0x42b646[_0x168dc0(0x296)](_0x34a39b['actions'],_0x4dacea[_0x168dc0(0x278)])}}]:[..._0x55ce50,{'id':_0x330bcb,'type':_0x34653f,'params':{'unitId':_0x4dacea['unitId'],'textRanges':_0x4dacea[_0x168dc0(0x3c1)],'actions':_0x4dacea[_0x168dc0(0x278)]}}];},[]),_0x4515bd=(_0x1b748b=(_0x2867fd=_0x10b89a[_0x344c7b(0x151)]())==null?void 0x0:_0x2867fd[_0x344c7b(0x18f)])==null?_0x344c7b(0x28b):_0x1b748b,_0x2aa5f9=(_0x442460=(_0x9ee6c6=_0x10b89a[_0x344c7b(0x151)]())==null?void 0x0:_0x9ee6c6['memberID'])==null?_0x344c7b(0x28b):_0x442460;return{'changeset':{'unitID':_0x299528,'type':_0x5c01a1(_0x35207e[_0x344c7b(0x190)](_0x299528)),'baseRev':_0x123352['getCurrentRevOfUnit'](_0x299528),'revision':0x0,'userID':_0x4515bd,'memberID':_0x2aa5f9,'mutations':_0xcffa4},'pendingMutations':_0xae7e26[_0x344c7b(0x216)](_0xae7e26['length'])};}function en(_0x137056,_0x317933){const _0x356aa6=_0x4c9487;return!tn(_0x137056)&&!tn(_0x317933)&&nn(_0x137056[_0x356aa6(0x278)],_0x317933[_0x356aa6(0x278)]);}function tn(_0x375ec6){return _0x375ec6['isCompositionEnd']!==void 0x0;}function nn(_0x4c9f7c,_0x51a241){return rn(_0x4c9f7c)&&rn(_0x51a241)&&!on(_0x4c9f7c)&&!on(_0x51a241)&&!an(_0x4c9f7c)&&!an(_0x51a241);}function rn(_0x5213be){const _0x33e6a2=_0x4c9487;return sn(_0x5213be)[_0x33e6a2(0x1f6)](_0x355406=>cn(_0x355406)&&_0x355406['et']===_0x33e6a2(0x186));}function an(_0x3c0f9e){const _0x42bfb7=_0x4c9487;return sn(_0x3c0f9e)[_0x42bfb7(0x1f6)](_0x5df878=>Array[_0x42bfb7(0x331)](_0x5df878)||typeof _0x5df878==_0x42bfb7(0x32e)||typeof _0x5df878==_0x42bfb7(0x182));}function _0x45c3(_0x2a4ad5,_0x5bd9da){_0x2a4ad5=_0x2a4ad5-0x13a;const _0x816035=_0x8160();let _0x45c344=_0x816035[_0x2a4ad5];return _0x45c344;}function on(_0x2c5c0c){const _0x5cf30a=_0x4c9487;return sn(_0x2c5c0c)[_0x5cf30a(0x1f6)](_0x52f140=>!cn(_0x52f140)||_0x52f140['et']!=='text-x'||!Array[_0x5cf30a(0x331)](_0x52f140['e'])?!0x1:_0x52f140['e'][_0x5cf30a(0x1f6)](_0x45c958=>!cn(_0x45c958)||!cn(_0x45c958[_0x5cf30a(0x311)])?!0x1:Object[_0x5cf30a(0x1b1)][_0x5cf30a(0x322)]['call'](_0x45c958['body'],_0x5cf30a(0x334))||Object[_0x5cf30a(0x1b1)][_0x5cf30a(0x322)][_0x5cf30a(0x387)](_0x45c958[_0x5cf30a(0x311)],_0x5cf30a(0x20b))||Object['prototype'][_0x5cf30a(0x322)][_0x5cf30a(0x387)](_0x45c958[_0x5cf30a(0x311)],_0x5cf30a(0x176))));}function sn(_0x56fe27){const _0xf6fe38=_0x4c9487;if(!Array['isArray'](_0x56fe27))return[];let _0x396291=_0x56fe27[_0xf6fe38(0x22c)](_0xf6fe38(0x311))?_0x56fe27:_0x56fe27['find'](_0xdd52fb=>Array[_0xf6fe38(0x331)](_0xdd52fb)&&_0xdd52fb[_0xf6fe38(0x22c)](_0xf6fe38(0x311)));if(!Array[_0xf6fe38(0x331)](_0x396291))return[];let _0x185e88=_0x396291[_0xf6fe38(0x1e1)](_0xf6fe38(0x311));return _0x185e88===-0x1?[]:_0x396291[_0xf6fe38(0x216)](_0x185e88+0x1);}function cn(_0x52db03){const _0x5b726d=_0x4c9487;return typeof _0x52db03==_0x5b726d(0x282)&&!!_0x52db03&&!Array[_0x5b726d(0x331)](_0x52db03);}function ln(_0x5826ab,_0x1b92da){const _0x1724b8=_0x4c9487;let _0x19df82=new _0x379882(0x1);return setTimeout(()=>_0x19df82[_0x1724b8(0x1b0)](_0x1b92da),_0x5826ab),_0x19df82[_0x1724b8(0x338)]()['pipe'](_0xdf58e(0x1));}var un,dn,fn;let pn=function(_0x4d5002){const _0x25dc72=_0x4c9487;return _0x4d5002[_0x25dc72(0x324)]=_0x25dc72(0x269),_0x4d5002['SYNCED']=_0x25dc72(0x2a6),_0x4d5002[_0x25dc72(0x19e)]=_0x25dc72(0x29e),_0x4d5002[_0x25dc72(0x35b)]='awaiting',_0x4d5002[_0x25dc72(0x1ce)]=_0x25dc72(0x2db),_0x4d5002[_0x25dc72(0x1d6)]=_0x25dc72(0x3b7),_0x4d5002[_0x25dc72(0x19d)]=_0x25dc72(0x2af),_0x4d5002[_0x25dc72(0x194)]='offline',_0x4d5002;}({});const mn=0x4e20,hn=0x2bf20;var G=class{constructor(_0x14f69b,_0x586853,_0x4d8ff9,_0x2d13f8,_0x1318c0,_0x2f8ef2,_0x1daa25,_0x2ed09f,_0x473678){const _0x7d8cad=_0x4c9487;this[_0x7d8cad(0x1cc)]=_0x14f69b,this[_0x7d8cad(0x385)]=_0x586853,this[_0x7d8cad(0x177)]=_0x1318c0,this[_0x7d8cad(0x2d5)]=_0x2f8ef2,this[_0x7d8cad(0x29b)]=_0x1daa25,this[_0x7d8cad(0x28c)]=_0x2ed09f,this['_localCacheService']=_0x473678,R(this,'_awaitingChangeset',null),R(this,_0x7d8cad(0x306),[]),this[_0x7d8cad(0x257)]=_0x4d8ff9,this[_0x7d8cad(0x306)]=_0x2d13f8;}[_0x4c9487(0x271)](_0x22bdd3){const _0x367349=_0x4c9487;let _0x5c9d8b=this[_0x367349(0x28c)][_0x367349(0x3b8)](this[_0x367349(0x1cc)]);return _0x22bdd3[_0x367349(0x2f3)]>_0x5c9d8b+0x1?(this[_0x367349(0x177)][_0x367349(0x17d)]({'from':_0x5c9d8b,'to':_0x22bdd3[_0x367349(0x2f3)]-0x1}),!0x0):!0x1;}[_0x4c9487(0x2d2)](_0x3624da){const _0x43d167=_0x4c9487;this[_0x43d167(0x29b)][_0x43d167(0x26d)](this[_0x43d167(0x1cc)],_0x3624da);}[_0x4c9487(0x38f)](_0xd37bde){const _0x26c356=_0x4c9487;var _0x2798f2,_0x23d80b;(_0x2798f2=(_0x23d80b=this[_0x26c356(0x177)])[_0x26c356(0x367)])==null||_0x2798f2[_0x26c356(0x387)](_0x23d80b,_0xd37bde);}[_0x4c9487(0x1ec)](_0x4c93ab){const _0x470f8d=_0x4c9487;var _0x565e2b,_0x2fe577;return(_0x565e2b=(_0x2fe577=this[_0x470f8d(0x177)])[_0x470f8d(0x2ad)])==null?void 0x0:_0x565e2b['call'](_0x2fe577,_0x4c93ab);}[_0x4c9487(0x23f)](_0x339c0d){const _0x67fd33=_0x4c9487;var _0x57d262,_0x5272b9;return(_0x57d262=(_0x5272b9=this[_0x67fd33(0x177)])[_0x67fd33(0x297)])==null?void 0x0:_0x57d262[_0x67fd33(0x387)](_0x5272b9,_0x339c0d);}[_0x4c9487(0x303)](_0x31a7b0){const _0x1acfcf=_0x4c9487;var _0x24b1ea,_0x20384b,_0x415f15;return(_0x24b1ea=(_0x20384b=(_0x415f15=this['_handler'])[_0x1acfcf(0x21a)])==null?void 0x0:_0x20384b[_0x1acfcf(0x387)](_0x415f15,_0x31a7b0))==null?_0x31a7b0:_0x24b1ea;}[_0x4c9487(0x18a)](_0x445c11){const _0x196b43=_0x4c9487;var _0x10bff5,_0x5ec097,_0x1fca46;return(_0x10bff5=(_0x5ec097=(_0x1fca46=this[_0x196b43(0x177)])[_0x196b43(0x3a7)])==null?void 0x0:_0x5ec097[_0x196b43(0x387)](_0x1fca46,_0x445c11))==null?_0x445c11:_0x10bff5;}['_syncEditingCollabCursor'](_0x585e1b){const _0x3e44eb=_0x4c9487;if(this[_0x3e44eb(0x385)]===_0x672a2f['UNIVER_DOC']){let {unitID:_0x4c5b8b,mutations:_0x524e43,memberID:_0x528330}=_0x585e1b,_0x3dc2da=_0x524e43[_0x3e44eb(0x2ba)]>0x0?_0x524e43[0x0][_0x3e44eb(0x14d)][_0x3e44eb(0x3c1)]:[];if(Array[_0x3e44eb(0x331)](_0x3dc2da)&&_0x3dc2da[_0x3e44eb(0x2ba)]>0x0){var _0x3402b5,_0x17781f;(_0x3402b5=(_0x17781f=this['_handler'])[_0x3e44eb(0x184)])==null||_0x3402b5[_0x3e44eb(0x387)](_0x17781f,{'unitID':_0x4c5b8b,'memberID':_0x528330,'textRanges':_0x3dc2da});}}}['_updateLocalCache'](){const _0x5727fe=_0x4c9487;var _0x198302;(_0x198302=this[_0x5727fe(0x191)])==null||_0x198302[_0x5727fe(0x2ea)](this[_0x5727fe(0x1cc)],this[_0x5727fe(0x385)],this[_0x5727fe(0x257)],this[_0x5727fe(0x306)]);}[_0x4c9487(0x217)](){const _0x45742a=_0x4c9487;return this[_0x45742a(0x28c)][_0x45742a(0x3b8)](this[_0x45742a(0x1cc)]);}[_0x4c9487(0x2c3)](){const _0x4e5528=_0x4c9487;this['_revisionService'][_0x4e5528(0x1c5)](this[_0x4e5528(0x1cc)]);}[_0x4c9487(0x339)](_0x429948){const _0x25633f=_0x4c9487;let _0xec33a0=this['_transformRemoteChangesetByIMECache'](_0x429948);_0xec33a0=this[_0x25633f(0x18a)](_0xec33a0);let _0x3440b5=_0x365382(_0xec33a0['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x3440b5[_0x25633f(0x19b)]){var _0x46d00d;throw _0x3440b5['error']instanceof Error?_0x3440b5[_0x25633f(0x38c)]:Error((_0x46d00d=_0x3440b5[_0x25633f(0x38c)])==null?_0x25633f(0x160):_0x46d00d);}this['_transformIMECache'](_0xec33a0),this[_0x25633f(0x23f)](_0xec33a0),this[_0x25633f(0x2d2)](_0x429948),this[_0x25633f(0x38f)](_0xec33a0),this['_syncEditingCollabCursor'](_0xec33a0),this[_0x25633f(0x2c3)]();}};let K=class extends G{constructor(_0x2f3de0,_0x224843,_0x203ab6,_0x19c7a2,_0x969741,_0x2e8cc5,_0x2225e3,_0x310ff7,_0x17405e,_0x2218cc){const _0x17bd7a=_0x4c9487;super(_0x2f3de0,_0x224843,null,[],_0x203ab6,_0x2225e3,_0x2e8cc5,_0x19c7a2,_0x2218cc),this[_0x17bd7a(0x2dc)]=_0x969741,this[_0x17bd7a(0x220)]=_0x310ff7,this['_transformService']=_0x17405e,this[_0x17bd7a(0x35e)]=_0x2218cc,R(this,_0x17bd7a(0x1a4),'synced');}[_0x4c9487(0x344)](_0x1de89e){const _0x2ada3e=_0x4c9487;let _0x3e180c=this['_injector'][_0x2ada3e(0x2ed)](q,this[_0x2ada3e(0x1cc)],this['type'],[_0x1de89e],this[_0x2ada3e(0x177)]);return _0x3e180c[_0x2ada3e(0x353)](),_0x3e180c[_0x2ada3e(0x286)](),_0x3e180c;}['onRemoteChangeset'](_0x3d967a){const _0x18fc86=_0x4c9487;if(this[_0x18fc86(0x271)](_0x3d967a))return this[_0x18fc86(0x2dc)]['createInstance'](Q,this[_0x18fc86(0x1cc)],this[_0x18fc86(0x385)],null,[],null,[_0x3d967a],this[_0x18fc86(0x177)]);try{let _0x41ac97=this['_transformService'][_0x18fc86(0x15e)](_0x3d967a,[_0x162d6a]);if(_0x22e674(_0x41ac97)){let {c1Prime:_0x5234b1}=_0x41ac97;return this[_0x18fc86(0x339)](_0x5234b1),this;}throw _0x41ac97[_0x18fc86(0x38c)];}catch(_0x4f2af1){return this[_0x18fc86(0x220)][_0x18fc86(0x38c)](_0x4f2af1),this[_0x18fc86(0x304)](!0x1);}}[_0x4c9487(0x304)](_0x33f7a7){const _0x112ab2=_0x4c9487;return this[_0x112ab2(0x2dc)]['createInstance'](X,this[_0x112ab2(0x1cc)],this[_0x112ab2(0x385)],null,[],this['_handler'],_0x33f7a7);}[_0x4c9487(0x33f)](_0x30dfa8){const _0x5cb91f=_0x4c9487;if(_0x30dfa8[_0x5cb91f(0x2f3)]<=this[_0x5cb91f(0x217)]())return this;throw Error(_0x5cb91f(0x2fe));}[_0x4c9487(0x37b)](){const _0x17a8d0=_0x4c9487;throw Error(_0x17a8d0(0x365));}[_0x4c9487(0x2bc)](){return this;}['toggleOffline'](){const _0x42ed84=_0x4c9487;return this[_0x42ed84(0x2dc)][_0x42ed84(0x2ed)](Z,this[_0x42ed84(0x1cc)],this[_0x42ed84(0x385)],null,[],this['_handler']);}[_0x4c9487(0x20f)](){return this;}[_0x4c9487(0x29d)](){const _0xaef53f=_0x4c9487;throw Error(_0xaef53f(0x359));}[_0x4c9487(0x17a)](){const _0x1c0d5e=_0x4c9487;let _0x1b3c8f=this['_revisionService']['getCurrentRevOfUnit'](this[_0x1c0d5e(0x1cc)]);return this[_0x1c0d5e(0x177)]['onMissingChangesets']({'from':_0x1b3c8f,'to':0x0}),this[_0x1c0d5e(0x2dc)][_0x1c0d5e(0x2ed)](Q,this[_0x1c0d5e(0x1cc)],this['type'],null,[],null,[],this[_0x1c0d5e(0x177)]);}};K=V([B(0x3,_0x25ad33(_0xd4c3ee)),B(0x4,_0x25ad33(_0x4f91d7)),B(0x5,_0xd09547),B(0x6,_0x4d9c36),B(0x7,_0x2260fd),B(0x8,_0x4bb226),B(0x9,_0x129a9b(U))],K);let q=un=class extends G{constructor(_0x478ebe,_0x1080fd,_0xb1f486,_0x2c67a1,_0x5e67d4,_0x3faf12,_0x3ba12e,_0x373608,_0x337f12,_0x3e846d,_0x21df50,_0x4adc17,_0x44b742,_0x570cbe){const _0x397f37=_0x4c9487;super(_0x478ebe,_0x1080fd,null,_0xb1f486,_0x2c67a1,_0x337f12,_0x44b742,_0x3faf12,_0x570cbe),this[_0x397f37(0x2dc)]=_0x5e67d4,this['_memberService']=_0x3ba12e,this[_0x397f37(0x220)]=_0x373608,this['_configService']=_0x3e846d,this[_0x397f37(0x2c9)]=_0x21df50,this[_0x397f37(0x1b3)]=_0x4adc17,R(this,_0x397f37(0x1a4),_0x397f37(0x29e)),R(this,_0x397f37(0x356),null),R(this,_0x397f37(0x23d),null);}['appendMutation'](_0x5a0166){const _0x5ac537=_0x4c9487;return this[_0x5ac537(0x306)][_0x5ac537(0x36c)](_0x5a0166),this[_0x5ac537(0x286)](),this;}[_0x4c9487(0x1ef)](_0x10e885){const _0x1d654a=_0x4c9487;if(this[_0x1d654a(0x271)](_0x10e885))return this[_0x1d654a(0x3a4)](),this[_0x1d654a(0x2dc)]['createInstance'](Q,this[_0x1d654a(0x1cc)],this['type'],null,this[_0x1d654a(0x306)],null,[_0x10e885],this[_0x1d654a(0x177)]);try{let _0x483557=this[_0x1d654a(0x2c9)][_0x1d654a(0x15e)](_0x10e885,this[_0x1d654a(0x306)]);if(_0x22e674(_0x483557)){let {c1Prime:_0x5cae69,m2Prime:_0x38e4c6}=_0x483557;this[_0x1d654a(0x339)](_0x5cae69);let _0x4591ae=this[_0x1d654a(0x2dc)]['createInstance'](un,this['unitID'],this[_0x1d654a(0x385)],_0x38e4c6,this[_0x1d654a(0x177)]);this[_0x1d654a(0x3a4)]();let _0x4be7d9=new Date()[_0x1d654a(0x332)](),_0x3b8fdf=this[_0x1d654a(0x356)]?Math[_0x1d654a(0x392)](this[_0x1d654a(0x356)]-_0x4be7d9,0x0):this[_0x1d654a(0x319)]();return _0x4591ae[_0x1d654a(0x353)](_0x3b8fdf),_0x4591ae;}throw _0x483557[_0x1d654a(0x38c)];}catch(_0x3c41b1){return this[_0x1d654a(0x220)]['error'](_0x3c41b1),this['_onConflict'](!0x1);}}[_0x4c9487(0x33f)](_0x1a7024){const _0x1f25a8=_0x4c9487;if(_0x1a7024['revision']<=this[_0x1f25a8(0x217)]())return this;throw Error(_0x1f25a8(0x1b4));}[_0x4c9487(0x37b)](){const _0xcdf683=_0x4c9487;throw Error(_0xcdf683(0x1be));}[_0x4c9487(0x2bc)](){return this;}[_0x4c9487(0x2f5)](){const _0x97364e=_0x4c9487;return this[_0x97364e(0x3a4)](),this[_0x97364e(0x2dc)][_0x97364e(0x2ed)](Z,this[_0x97364e(0x1cc)],this[_0x97364e(0x385)],null,this[_0x97364e(0x306)],this[_0x97364e(0x177)]);}[_0x4c9487(0x20f)](){return this;}[_0x4c9487(0x353)](_0x55edd6){const _0x5e1ac5=_0x4c9487;let _0x10d189=_0x55edd6==null?this[_0x5e1ac5(0x319)]():_0x55edd6;this[_0x5e1ac5(0x356)]=new Date()[_0x5e1ac5(0x332)]()+_0x10d189,this[_0x5e1ac5(0x23d)]=setTimeout(()=>{const _0xe65c26=_0x5e1ac5;this[_0xe65c26(0x3a4)]();let _0x25adfe=null;switch(this[_0xe65c26(0x385)]){case _0x672a2f[_0xe65c26(0x183)]:_0x25adfe=Zt(this[_0xe65c26(0x306)],this['unitID'],this[_0xe65c26(0x1b3)],this[_0xe65c26(0x28c)],this[_0xe65c26(0x35a)]);break;case _0x672a2f[_0xe65c26(0x2ca)]:_0x25adfe=this[_0xe65c26(0x306)][_0xe65c26(0x1a8)](_0x516316=>_0x516316['id']===_0x2e2b0b['id'])?$t(this[_0xe65c26(0x306)],this[_0xe65c26(0x1cc)],this[_0xe65c26(0x1b3)],this[_0xe65c26(0x28c)],this[_0xe65c26(0x35a)]):Zt(this['_pendingMutations'],this[_0xe65c26(0x1cc)],this[_0xe65c26(0x1b3)],this[_0xe65c26(0x28c)],this[_0xe65c26(0x35a)]);break;case _0x672a2f[_0xe65c26(0x20d)]:_0x25adfe=Qt(this[_0xe65c26(0x306)],this[_0xe65c26(0x1cc)],this[_0xe65c26(0x1b3)],this[_0xe65c26(0x28c)],this[_0xe65c26(0x35a)]);break;case _0x672a2f[_0xe65c26(0x230)]:_0x25adfe=Zt(this[_0xe65c26(0x306)],this[_0xe65c26(0x1cc)],this[_0xe65c26(0x1b3)],this['_revisionService'],this[_0xe65c26(0x35a)]);break;case _0x672a2f[_0xe65c26(0x2a3)]:_0x25adfe=Zt(this['_pendingMutations'],this[_0xe65c26(0x1cc)],this['_univerInstanceService'],this[_0xe65c26(0x28c)],this['_memberService']);break;default:throw Error(_0xe65c26(0x2b4)+this[_0xe65c26(0x385)]+_0xe65c26(0x22b));}let {changeset:_0x9905f5,pendingMutations:_0x516513}=_0x25adfe;this[_0xe65c26(0x177)][_0xe65c26(0x38a)](_0x9905f5);let _0x28c716=_0x516513[_0xe65c26(0x2ba)]?this[_0xe65c26(0x2dc)][_0xe65c26(0x2ed)](Y,this['unitID'],this[_0xe65c26(0x385)],_0x9905f5,_0x516513,this[_0xe65c26(0x177)],void 0x0):this[_0xe65c26(0x2dc)][_0xe65c26(0x2ed)](J,this[_0xe65c26(0x1cc)],this[_0xe65c26(0x385)],_0x9905f5,this[_0xe65c26(0x177)]);_0x28c716[_0xe65c26(0x286)](),this[_0xe65c26(0x177)]['onStateChange'](this,_0x28c716);},_0x10d189);}[_0x4c9487(0x319)](){const _0x157e16=_0x4c9487;var _0x3721a4;let _0x5f0c88=this[_0x157e16(0x1a9)][_0x157e16(0x3c2)](L);return(_0x3721a4=_0x5f0c88==null?void 0x0:_0x5f0c88[_0x157e16(0x2fa)])==null?0x7d0:_0x3721a4;}[_0x4c9487(0x29d)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4c9487(0x3a4)](){const _0x53f0b5=_0x4c9487;this[_0x53f0b5(0x23d)]!=null&&(clearTimeout(this[_0x53f0b5(0x23d)]),this['_sendingTimer']=null);}[_0x4c9487(0x304)](_0x110b9b){const _0x440905=_0x4c9487;return this['_clearScheduledTask'](),this['_injector'][_0x440905(0x2ed)](X,this[_0x440905(0x1cc)],this['type'],null,this[_0x440905(0x306)],this[_0x440905(0x177)],_0x110b9b);}};q=un=V([B(0x4,_0x25ad33(_0x4f91d7)),B(0x5,_0x25ad33(_0xd4c3ee)),B(0x6,_0x25ad33(H)),B(0x7,_0x2260fd),B(0x8,_0x4d9c36),B(0x9,_0x408d6e),B(0xa,_0x4bb226),B(0xb,_0x566455),B(0xc,_0xd09547),B(0xd,_0x129a9b(U))],q);let J=dn=class extends G{constructor(_0x1d6b2f,_0x572cdf,_0x283558,_0x382eb9,_0x23be91,_0x389a17,_0x53b0e1,_0x418f3d,_0x255be6,_0x49bdae,_0x31d8e6){const _0x3c5768=_0x4c9487;super(_0x1d6b2f,_0x572cdf,_0x283558,[],_0x382eb9,_0x53b0e1,_0x49bdae,_0x389a17,_0x31d8e6),this[_0x3c5768(0x2dc)]=_0x23be91,this[_0x3c5768(0x220)]=_0x418f3d,this[_0x3c5768(0x2c9)]=_0x255be6,R(this,_0x3c5768(0x1a4),_0x3c5768(0x14a)),R(this,_0x3c5768(0x241),0x0),R(this,_0x3c5768(0x1e3),0x0),R(this,_0x3c5768(0x3be),void 0x0),R(this,_0x3c5768(0x17f),void 0x0);}[_0x4c9487(0x344)](_0x1c0512){const _0x5381ae=_0x4c9487;this['_clearScheduledTask']();let _0x47f9c0=this[_0x5381ae(0x2dc)][_0x5381ae(0x2ed)](Y,this[_0x5381ae(0x1cc)],this[_0x5381ae(0x385)],this[_0x5381ae(0x257)],[_0x1c0512],this['_handler'],this['_resendTimer']);return _0x47f9c0[_0x5381ae(0x286)](),_0x47f9c0;}[_0x4c9487(0x1ef)](_0x1c6b29){const _0x58915d=_0x4c9487;if(this[_0x58915d(0x271)](_0x1c6b29))return this[_0x58915d(0x3a4)](),this[_0x58915d(0x2dc)][_0x58915d(0x2ed)](Q,this['unitID'],this[_0x58915d(0x385)],this[_0x58915d(0x257)],[],null,[_0x1c6b29],this[_0x58915d(0x177)]);try{let _0x1ade70=this['_transformService'][_0x58915d(0x396)]([_0x1c6b29],[this['_awaitingChangeset']],!0x1);if(_0x595537(_0x1ade70)){let {c1Prime:_0xba72f7,c2Prime:_0x219183}=_0x1ade70;this[_0x58915d(0x339)](_0xba72f7[0x0]),_0x219183[0x0]['baseRev']=this[_0x58915d(0x217)](),this[_0x58915d(0x3a4)]();let _0x12f4f7=this[_0x58915d(0x2dc)]['createInstance'](dn,this['unitID'],this[_0x58915d(0x385)],_0x219183[0x0],this[_0x58915d(0x177)]);return _0x12f4f7[_0x58915d(0x286)](),_0x12f4f7;}throw _0x1ade70[_0x58915d(0x38c)];}catch(_0x4faf65){return this[_0x58915d(0x220)][_0x58915d(0x38c)](_0x4faf65),this[_0x58915d(0x304)](!0x1);}}[_0x4c9487(0x33f)](_0x8d6387){const _0xfaea56=_0x4c9487;this[_0xfaea56(0x3a4)]();let _0x4d6ceb=this[_0xfaea56(0x28c)]['getCurrentRevOfUnit'](this[_0xfaea56(0x1cc)]);if(_0x8d6387['revision']<=_0x4d6ceb)return this;if(this[_0xfaea56(0x271)](_0x8d6387))return this[_0xfaea56(0x2dc)][_0xfaea56(0x2ed)](Q,this[_0xfaea56(0x1cc)],this[_0xfaea56(0x385)],this['_awaitingChangeset'],[],_0x8d6387[_0xfaea56(0x2f3)],[],this[_0xfaea56(0x177)]);this['_incrementRevisionNumber']();let _0x23f06a=this[_0xfaea56(0x2dc)][_0xfaea56(0x2ed)](K,this['unitID'],this[_0xfaea56(0x385)],this[_0xfaea56(0x177)]);return _0x23f06a[_0xfaea56(0x286)](),_0x23f06a;}[_0x4c9487(0x37b)](_0x3cff96){const _0x4fde9e=_0x4c9487;return this[_0x4fde9e(0x304)](!!(_0x3cff96!=null&&_0x3cff96[_0x4fde9e(0x3b3)]));}[_0x4c9487(0x2bc)](_0x388114){const _0x4cce2e=_0x4c9487;return this[_0x4cce2e(0x1e3)]>hn?this['toggleOffline']():(this[_0x4cce2e(0x3be)]=ln(this[_0x4cce2e(0x241)],{'timeout':this[_0x4cce2e(0x241)],'reqId':_0x388114[_0x4cce2e(0x210)]}),this['_sender']=this['_resendTimer'][_0x4cce2e(0x145)](({reqId:_0x23ca9d,timeout:_0x2f0f21})=>{const _0x3896f2=_0x4cce2e;this[_0x3896f2(0x1c7)](_0x23ca9d,_0x2f0f21);}),this);}[_0x4c9487(0x2f5)](){const _0x4dce87=_0x4c9487;return this[_0x4dce87(0x3a4)](),this[_0x4dce87(0x2dc)][_0x4dce87(0x2ed)](Z,this['unitID'],this[_0x4dce87(0x385)],this[_0x4dce87(0x257)],[],this[_0x4dce87(0x177)]);}['toggleOnline'](){return this;}[_0x4c9487(0x29d)](){const _0x1a286d=_0x4c9487;this[_0x1a286d(0x177)][_0x1a286d(0x38a)](this['_awaitingChangeset']);}[_0x4c9487(0x304)](_0x22e6cb){const _0x3519ec=_0x4c9487;return this[_0x3519ec(0x3a4)](),this[_0x3519ec(0x2dc)][_0x3519ec(0x2ed)](X,this[_0x3519ec(0x1cc)],this[_0x3519ec(0x385)],this[_0x3519ec(0x257)],[],this[_0x3519ec(0x177)],_0x22e6cb);}[_0x4c9487(0x1c7)](_0x1f546f,_0x327812){const _0x25a699=_0x4c9487;var _0x5da5e5;_0x1f546f===((_0x5da5e5=this[_0x25a699(0x257)])==null?void 0x0:_0x5da5e5[_0x25a699(0x210)])&&(this[_0x25a699(0x29d)](),this[_0x25a699(0x241)]=_0x327812===0x0?0x3e8:Math[_0x25a699(0x202)](_0x327812*0x2,mn),this[_0x25a699(0x1e3)]+=this[_0x25a699(0x241)]);}['_clearScheduledTask'](){const _0x8b71cc=_0x4c9487;var _0x1d04d2;(_0x1d04d2=this[_0x8b71cc(0x17f)])==null||_0x1d04d2['unsubscribe'](),this[_0x8b71cc(0x241)]=0x0,this[_0x8b71cc(0x1e3)]=0x0;}};J=dn=V([B(0x4,_0x25ad33(_0x4f91d7)),B(0x5,_0x25ad33(_0xd4c3ee)),B(0x6,_0x4d9c36),B(0x7,_0x2260fd),B(0x8,_0x4bb226),B(0x9,_0xd09547),B(0xa,_0x129a9b(U))],J);let Y=fn=class extends G{constructor(_0x3ec185,_0x8b86e7,_0x4a7a67,_0x178314,_0x3da60a,_0x48e008,_0x409854,_0x343713,_0x3e87f0,_0x3fa013,_0x40f77d,_0x3ed790,_0x31339f){const _0x46b937=_0x4c9487;super(_0x3ec185,_0x8b86e7,_0x4a7a67,_0x178314,_0x3da60a,_0x3e87f0,_0x3ed790,_0x343713,_0x31339f),this['_injector']=_0x409854,this[_0x46b937(0x220)]=_0x3fa013,this[_0x46b937(0x2c9)]=_0x40f77d,this[_0x46b937(0x35e)]=_0x31339f,R(this,_0x46b937(0x1a4),_0x46b937(0x2db)),R(this,'_resendTimeout',0x0),R(this,'_maxTotalRetryTimeout',0x0),R(this,_0x46b937(0x3be),void 0x0),R(this,_0x46b937(0x17f),void 0x0),_0x48e008&&(this['_resendTimer']=_0x48e008,this[_0x46b937(0x17f)]=this[_0x46b937(0x3be)]['subscribe'](({reqId:_0x100bd4,timeout:_0x42764e})=>{this['_resendWithTimeout'](_0x100bd4,_0x42764e);}));}['appendMutation'](_0x4ca9e0){const _0x5b4766=_0x4c9487;return this[_0x5b4766(0x306)][_0x5b4766(0x36c)](_0x4ca9e0),this;}['onRemoteChangeset'](_0x4a2abe){const _0x310888=_0x4c9487;if(this[_0x310888(0x271)](_0x4a2abe))return this[_0x310888(0x3a4)](),this['_injector'][_0x310888(0x2ed)](Q,this[_0x310888(0x1cc)],this[_0x310888(0x385)],this[_0x310888(0x257)],this['_pendingMutations'],null,[_0x4a2abe],this[_0x310888(0x177)]);try{let _0x50679a=this[_0x310888(0x2c9)][_0x310888(0x396)]([_0x4a2abe],[this[_0x310888(0x257)]],!0x1);if(_0x595537(_0x50679a)){let {c1Prime:_0x4c2a92,c2Prime:_0x5e1c99}=_0x50679a,_0x115b03=this[_0x310888(0x2c9)][_0x310888(0x15e)](_0x4c2a92[0x0],this[_0x310888(0x306)]);if(_0x22e674(_0x115b03)){let {c1Prime:_0x2574fd,m2Prime:_0x1e1bff}=_0x115b03;return this['_executeRemoteChangeset'](_0x2574fd),_0x5e1c99[0x0][_0x310888(0x34c)]=this[_0x310888(0x217)](),this[_0x310888(0x3a4)](),this[_0x310888(0x2dc)][_0x310888(0x2ed)](fn,this['unitID'],this[_0x310888(0x385)],_0x5e1c99[0x0],_0x1e1bff,this['_handler'],void 0x0);}throw _0x115b03[_0x310888(0x38c)];}throw _0x50679a[_0x310888(0x38c)];}catch(_0x23ca28){return this[_0x310888(0x220)][_0x310888(0x38c)](_0x23ca28),this[_0x310888(0x304)](!0x1);}}[_0x4c9487(0x33f)](_0x8a3d5){const _0x57bda3=_0x4c9487;this[_0x57bda3(0x3a4)]();let _0x576e2e=this['_getCurrentRevision']();if(_0x8a3d5[_0x57bda3(0x2f3)]<=_0x576e2e)return this;if(this[_0x57bda3(0x271)](_0x8a3d5))return this[_0x57bda3(0x2dc)][_0x57bda3(0x2ed)](Q,this[_0x57bda3(0x1cc)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],_0x8a3d5[_0x57bda3(0x2f3)],[],this[_0x57bda3(0x177)]);this[_0x57bda3(0x2c3)]();let _0xd006ad=this[_0x57bda3(0x2dc)]['createInstance'](q,this[_0x57bda3(0x1cc)],this[_0x57bda3(0x385)],this['_pendingMutations'],this['_handler']);return _0xd006ad[_0x57bda3(0x353)](),_0xd006ad[_0x57bda3(0x286)](),_0xd006ad;}[_0x4c9487(0x37b)](_0x1bae0a){const _0x408f85=_0x4c9487;return this[_0x408f85(0x304)](!!(_0x1bae0a!=null&&_0x1bae0a[_0x408f85(0x3b3)]));}['onRemoteRetry'](_0x4455f2){const _0x2f6cff=_0x4c9487;return this[_0x2f6cff(0x1e3)]>hn?this[_0x2f6cff(0x2f5)]():(this[_0x2f6cff(0x3be)]=ln(this[_0x2f6cff(0x241)],{'timeout':this[_0x2f6cff(0x241)],'reqId':_0x4455f2[_0x2f6cff(0x210)]}),this[_0x2f6cff(0x17f)]=this[_0x2f6cff(0x3be)][_0x2f6cff(0x145)](({reqId:_0x30c527,timeout:_0x4f3908})=>{const _0x378965=_0x2f6cff;this[_0x378965(0x1c7)](_0x30c527,_0x4f3908);}),this);}['toggleOffline'](){const _0x5cd580=_0x4c9487;return this['_clearScheduledTask'](),this[_0x5cd580(0x2dc)][_0x5cd580(0x2ed)](Z,this[_0x5cd580(0x1cc)],this[_0x5cd580(0x385)],this[_0x5cd580(0x257)],this[_0x5cd580(0x306)],this[_0x5cd580(0x177)]);}[_0x4c9487(0x20f)](){return this;}[_0x4c9487(0x29d)](){const _0xdb69ab=_0x4c9487;this[_0xdb69ab(0x177)][_0xdb69ab(0x38a)](this[_0xdb69ab(0x257)]);}['_onConflict'](_0x297e93){const _0x12dbae=_0x4c9487;return this[_0x12dbae(0x3a4)](),this['_injector'][_0x12dbae(0x2ed)](X,this[_0x12dbae(0x1cc)],this['type'],null,this[_0x12dbae(0x306)],this[_0x12dbae(0x177)],_0x297e93);}[_0x4c9487(0x1c7)](_0x3d4fe1,_0x14c35d){const _0x425df1=_0x4c9487;var _0x559c0a;_0x3d4fe1===((_0x559c0a=this[_0x425df1(0x257)])==null?void 0x0:_0x559c0a[_0x425df1(0x210)])&&(this['resend'](),this[_0x425df1(0x241)]=_0x14c35d===0x0?0x3e8:Math[_0x425df1(0x202)](_0x14c35d*0x2,mn),this['_maxTotalRetryTimeout']+=this[_0x425df1(0x241)]);}[_0x4c9487(0x3a4)](){const _0x39f469=_0x4c9487;var _0x366186;(_0x366186=this[_0x39f469(0x17f)])==null||_0x366186[_0x39f469(0x1b8)](),this[_0x39f469(0x241)]=0x0,this[_0x39f469(0x1e3)]=0x0;}};Y=fn=V([B(0x6,_0x25ad33(_0x4f91d7)),B(0x7,_0x25ad33(_0xd4c3ee)),B(0x8,_0x4d9c36),B(0x9,_0x2260fd),B(0xa,_0x4bb226),B(0xb,_0xd09547),B(0xc,_0x129a9b(U))],Y);let X=class extends G{constructor(_0x532fb4,_0xbf93d6,_0x45ba79,_0x33e50a,_0x2feed0,_0x47f644=!0x1,_0x6ddac9,_0x404adb,_0xf74328,_0x136421,_0x55733a,_0x5b25f4,_0x38d916){const _0x23357f=_0x4c9487;super(_0x532fb4,_0xbf93d6,_0x45ba79,_0x33e50a,_0x2feed0,_0x404adb,_0xf74328,_0x136421,_0x38d916),this[_0x23357f(0x361)]=_0x47f644,this[_0x23357f(0x24e)]=_0x6ddac9,this[_0x23357f(0x323)]=_0x55733a,this[_0x23357f(0x38b)]=_0x5b25f4,this[_0x23357f(0x35e)]=_0x38d916,R(this,_0x23357f(0x1a4),_0x23357f(0x2af)),this[_0x23357f(0x20c)](),this[_0x23357f(0x31d)](),this[_0x23357f(0x25f)]();}['appendMutation'](){return this;}[_0x4c9487(0x1ef)](){return this;}[_0x4c9487(0x33f)](){return this;}['onRemoteRej'](){return this;}[_0x4c9487(0x2bc)](){return this;}['toggleOffline'](){return this;}[_0x4c9487(0x20f)](){return this;}[_0x4c9487(0x29d)](){const _0x24e4cc=_0x4c9487;throw Error(_0x24e4cc(0x32b));}[_0x4c9487(0x31d)](){const _0x5a87e5=_0x4c9487;var _0x4a8bf2,_0x4205b4,_0x3ba305;(_0x4a8bf2=this[_0x5a87e5(0x191)])==null||(_0x4205b4=_0x4a8bf2[_0x5a87e5(0x310)])==null||(_0x4205b4=_0x4205b4[_0x5a87e5(0x387)](_0x4a8bf2,this[_0x5a87e5(0x1cc)],_0x5a87e5(0x2af)))==null||_0x4205b4[_0x5a87e5(0x2e8)](()=>void 0x0),(_0x3ba305=this[_0x5a87e5(0x191)])==null||_0x3ba305[_0x5a87e5(0x2ea)](this[_0x5a87e5(0x1cc)],this[_0x5a87e5(0x385)],null,[]);}['_showConflictNotification'](){const _0x3d95b0=_0x4c9487;this[_0x3d95b0(0x361)]?this[_0x3d95b0(0x38b)][_0x3d95b0(0x1a5)]({'id':'PERMISSION_DENIED'}):this[_0x3d95b0(0x38b)][_0x3d95b0(0x1a5)]({'id':_0x3d95b0(0x19d)});}[_0x4c9487(0x25f)](){const _0x1909fa=_0x4c9487;this[_0x1909fa(0x24e)][_0x1909fa(0x3c5)](new _0x428d58(this['unitID'])['id'],!0x1);}};X=V([B(0x6,_0x25ad33(_0x2aaf65)),B(0x7,_0x4d9c36),B(0x8,_0xd09547),B(0x9,_0x25ad33(_0xd4c3ee)),B(0xa,_0x25ad33(_0x552e52)),B(0xb,_0x25ad33(z)),B(0xc,_0x129a9b(U))],X);let Z=class extends G{constructor(_0x518508,_0x277717,_0x2bbded,_0x4d72ae,_0x52228a,_0x545463,_0x3d7d89,_0xb16d8d,_0x4f607f,_0x1d54a4){const _0x6cdff=_0x4c9487;super(_0x518508,_0x277717,_0x2bbded,_0x4d72ae,_0x52228a,_0xb16d8d,_0x4f607f,_0x3d7d89,_0x1d54a4),this[_0x6cdff(0x2dc)]=_0x545463,R(this,'status',_0x6cdff(0x27e));}[_0x4c9487(0x344)](_0x41a23e){const _0x4c5c99=_0x4c9487;return this[_0x4c5c99(0x306)][_0x4c5c99(0x36c)](_0x41a23e),this[_0x4c5c99(0x286)](),this;}['onRemoteChangeset'](_0x267b82){const _0x3839d6=_0x4c9487;throw Error(_0x3839d6(0x226));}[_0x4c9487(0x33f)](){const _0x573286=_0x4c9487;throw Error(_0x573286(0x37f));}[_0x4c9487(0x37b)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x4c9487(0x2bc)](){return this;}['toggleOffline'](){return this;}[_0x4c9487(0x20f)](){const _0x16e072=_0x4c9487;let {_injector:_0x3b0697,_pendingMutations:_0x584353,_awaitingChangeset:_0xa084d7,unitID:_0x11166c,_handler:_0x50ae06,type:_0x36feb1}=this,_0x58be58=gn(_0x3b0697,_0x11166c,_0x36feb1,_0xa084d7,_0x584353,_0x50ae06);return _0x58be58 instanceof q?_0x58be58[_0x16e072(0x353)]():(_0x58be58 instanceof Y||_0x58be58 instanceof J)&&_0x58be58[_0x16e072(0x29d)](),_0x58be58;}[_0x4c9487(0x29d)](){const _0x246498=_0x4c9487;throw Error(_0x246498(0x26f));}};Z=V([B(0x5,_0x25ad33(_0x4f91d7)),B(0x6,_0x25ad33(_0xd4c3ee)),B(0x7,_0x4d9c36),B(0x8,_0xd09547),B(0x9,_0x129a9b(U))],Z);let Q=class extends G{constructor(_0x3d4e30,_0xfd6dc2,_0x37bfbc,_0x46291b,_0x2ea4a2,_0x3cb043,_0x419d1b,_0x471548,_0x228102,_0x154c63,_0x590fd9,_0x4b3ba0,_0x2bfab0,_0x105443){const _0x185969=_0x4c9487;super(_0x3d4e30,_0xfd6dc2,_0x37bfbc,_0x46291b,_0x419d1b,_0x590fd9,_0x4b3ba0,_0x228102,_0x105443),this[_0x185969(0x208)]=_0x2ea4a2,this[_0x185969(0x261)]=_0x3cb043,this['_injector']=_0x471548,this[_0x185969(0x220)]=_0x154c63,this[_0x185969(0x2c9)]=_0x2bfab0,this[_0x185969(0x35e)]=_0x105443,R(this,_0x185969(0x1a4),_0x185969(0x3b7));}[_0x4c9487(0x384)](_0xfe8abc){const _0x3e762c=_0x4c9487;try{if(this[_0x3e762c(0x1c9)](_0xfe8abc)['missingChangesets'])throw Error(_0x3e762c(0x1d3));if(this[_0x3e762c(0x1c9)]([...this[_0x3e762c(0x261)]][_0x3e762c(0x36e)]((_0x19ce99,_0x58ab7e)=>_0x19ce99[_0x3e762c(0x2f3)]-_0x58ab7e[_0x3e762c(0x2f3)]))[_0x3e762c(0x155)])return this[_0x3e762c(0x261)]=[],this[_0x3e762c(0x286)](),this[_0x3e762c(0x177)]['onMissingChangesets']({'from':this[_0x3e762c(0x217)](),'to':0x0}),this;let _0x126096=this[_0x3e762c(0x257)],_0x17b659=this[_0x3e762c(0x306)],_0x17cc83;if(_0x126096&&_0x17b659['length']!==0x0)_0x17cc83=this[_0x3e762c(0x2dc)]['createInstance'](Y,this[_0x3e762c(0x1cc)],this[_0x3e762c(0x385)],_0x126096,_0x17b659,this[_0x3e762c(0x177)],void 0x0);else{if(_0x126096&&_0x17b659[_0x3e762c(0x2ba)]===0x0)_0x126096['baseRev']=this[_0x3e762c(0x217)](),_0x17cc83=this[_0x3e762c(0x2dc)]['createInstance'](J,this[_0x3e762c(0x1cc)],this[_0x3e762c(0x385)],_0x126096,this[_0x3e762c(0x177)]);else{if(_0x17b659['length']!==0x0){let _0x2c4030=this[_0x3e762c(0x2dc)][_0x3e762c(0x2ed)](q,this[_0x3e762c(0x1cc)],this[_0x3e762c(0x385)],_0x17b659,this[_0x3e762c(0x177)]);_0x2c4030['_schedule'](),_0x17cc83=_0x2c4030;}else _0x17cc83=this[_0x3e762c(0x2dc)][_0x3e762c(0x2ed)](K,this['unitID'],this['type'],this['_handler']);}}return _0x17cc83['_updateLocalCache'](),_0x17cc83;}catch(_0x55cc74){return this[_0x3e762c(0x220)][_0x3e762c(0x38c)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x55cc74),this[_0x3e762c(0x2dc)][_0x3e762c(0x2ed)](X,this[_0x3e762c(0x1cc)],this[_0x3e762c(0x385)],this[_0x3e762c(0x257)],this[_0x3e762c(0x306)],this['_handler'],!0x1);}}['_handleRemoteChangesets'](_0xbed86e){const _0x28afc4=_0x4c9487;this[_0x28afc4(0x39c)]();for(let _0xe504b5=0x0;_0xe504b5<_0xbed86e[_0x28afc4(0x2ba)];_0xe504b5++){let _0x3c66f5=_0xbed86e[_0xe504b5],_0x263fbe=this[_0x28afc4(0x217)]();if(!(_0x3c66f5['revision']<=_0x263fbe)){if(_0x3c66f5[_0x28afc4(0x2f3)]>_0x263fbe+0x1)return{'missingChangesets':!0x0};if(this[_0x28afc4(0x229)](_0x3c66f5)){this[_0x28afc4(0x156)]();continue;}this[_0x28afc4(0x34f)](_0x3c66f5),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x4c9487(0x34f)](_0x1165da){const _0x35ffb2=_0x4c9487;let _0x3b59a9=_0x1165da,_0xc49e0e=this[_0x35ffb2(0x257)];if(_0xc49e0e){let _0x4826ec=this['_transformService'][_0x35ffb2(0x396)]([_0x1165da],[_0xc49e0e],!0x1);if(!_0x595537(_0x4826ec))throw _0x4826ec['error'];_0x3b59a9=_0x4826ec[_0x35ffb2(0x3ab)][0x0],_0xc49e0e=_0x4826ec[_0x35ffb2(0x33d)][0x0];}let _0x22407f=this[_0x35ffb2(0x306)];if(_0x22407f['length']){let _0x52ca5f=this['_transformService'][_0x35ffb2(0x15e)](_0x3b59a9,_0x22407f);if(!_0x22e674(_0x52ca5f))throw _0x52ca5f[_0x35ffb2(0x38c)];_0x3b59a9=_0x52ca5f[_0x35ffb2(0x3ab)],_0x22407f=_0x52ca5f[_0x35ffb2(0x294)];}this['_executeRemoteChangeset'](_0x3b59a9),_0xc49e0e&&(_0xc49e0e[_0x35ffb2(0x34c)]=this[_0x35ffb2(0x217)]()),this[_0x35ffb2(0x257)]=_0xc49e0e,this[_0x35ffb2(0x306)]=_0x22407f;}[_0x4c9487(0x39c)](){const _0x366f8c=_0x4c9487;if(!this[_0x366f8c(0x257)]||this['_acknowledgedAwaitingRevision']==null)return;let _0x3a2993=this['_getCurrentRevision']();if(this[_0x366f8c(0x208)]<=_0x3a2993)throw Error(_0x366f8c(0x358)+this['_acknowledgedAwaitingRevision']+'.');this['_acknowledgedAwaitingRevision']===_0x3a2993+0x1&&this[_0x366f8c(0x156)]();}[_0x4c9487(0x156)](){const _0x3accb0=_0x4c9487;this[_0x3accb0(0x2c3)](),this['_awaitingChangeset']=null,this[_0x3accb0(0x208)]=null;}[_0x4c9487(0x229)](_0x12554e){const _0x386696=_0x4c9487;let _0x2b0bbf=this['_awaitingChangeset'];return!_0x2b0bbf||!_0x2b0bbf['sid']||_0x2b0bbf[_0x386696(0x210)]===null||_0x2b0bbf['reqId']===void 0x0?!0x1:_0x12554e[_0x386696(0x1cc)]===_0x2b0bbf['unitID']&&_0x12554e[_0x386696(0x312)]===_0x2b0bbf[_0x386696(0x312)]&&_0x12554e[_0x386696(0x210)]===_0x2b0bbf[_0x386696(0x210)];}['resend'](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4c9487(0x344)](_0x5b7448){const _0xe3632b=_0x4c9487;return this[_0xe3632b(0x306)][_0xe3632b(0x36c)](_0x5b7448),this;}[_0x4c9487(0x1ef)](_0x104688){const _0x1d30e7=_0x4c9487;return this[_0x1d30e7(0x261)][_0x1d30e7(0x36c)](_0x104688),this;}[_0x4c9487(0x33f)](_0xfcb79a){const _0x492809=_0x4c9487;if(this[_0x492809(0x257)]){let _0x2fc2ba=this[_0x492809(0x217)]();return _0xfcb79a[_0x492809(0x2f3)]<=_0x2fc2ba||(_0x2fc2ba+0x1===_0xfcb79a[_0x492809(0x2f3)]?(this[_0x492809(0x2c3)](),this[_0x492809(0x257)]=null,this[_0x492809(0x208)]=null):this[_0x492809(0x208)]=_0xfcb79a[_0x492809(0x2f3)]),this;}if(_0xfcb79a[_0x492809(0x2f3)]<=this[_0x492809(0x217)]())return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x4c9487(0x37b)](_0x543e19){const _0x5b8881=_0x4c9487;return this[_0x5b8881(0x304)](!!(_0x543e19!=null&&_0x543e19[_0x5b8881(0x3b3)]));}[_0x4c9487(0x2bc)](){return this;}[_0x4c9487(0x2f5)](){const _0x43f4fc=_0x4c9487;return this[_0x43f4fc(0x2dc)][_0x43f4fc(0x2ed)](Z,this[_0x43f4fc(0x1cc)],this[_0x43f4fc(0x385)],this[_0x43f4fc(0x257)],this['_pendingMutations'],this[_0x43f4fc(0x177)]);}[_0x4c9487(0x20f)](){return this;}[_0x4c9487(0x304)](_0x2ee25e){const _0x438d00=_0x4c9487;return this['_injector']['createInstance'](X,this[_0x438d00(0x1cc)],this[_0x438d00(0x385)],this[_0x438d00(0x257)],this['_pendingMutations'],this[_0x438d00(0x177)],_0x2ee25e);}};Q=V([B(0x7,_0x25ad33(_0x4f91d7)),B(0x8,_0x25ad33(_0xd4c3ee)),B(0x9,_0x2260fd),B(0xa,_0x4d9c36),B(0xb,_0xd09547),B(0xc,_0x4bb226),B(0xd,_0x129a9b(U))],Q);function gn(_0x164117,_0x5406f8,_0x2d0f32,_0x4aad18,_0x3301ba,_0x2f4e14){const _0x3a3973=_0x4c9487;return _0x4aad18&&_0x3301ba[_0x3a3973(0x2ba)]?_0x164117[_0x3a3973(0x2ed)](Y,_0x5406f8,_0x2d0f32,_0x4aad18,_0x3301ba,_0x2f4e14,void 0x0):_0x4aad18?_0x164117[_0x3a3973(0x2ed)](J,_0x5406f8,_0x2d0f32,_0x4aad18,_0x2f4e14):_0x3301ba[_0x3a3973(0x2ba)]?_0x164117['createInstance'](q,_0x5406f8,_0x2d0f32,_0x3301ba,_0x2f4e14):_0x164117[_0x3a3973(0x2ed)](K,_0x5406f8,_0x2d0f32,_0x2f4e14);}let $=class extends _0x320367{get[_0x4c9487(0x180)](){return this['_state'];}constructor(_0x583437,_0x382ba9,_0x28850e,_0x2b33f2,_0x1d17be,_0x57dfc4,_0x2dc3e2,_0x498606,_0x544ca0,_0x2f5915,_0x5fc15a,_0x3e97a9,_0x1fec32,_0x19ad3b){const _0x4151ba=_0x4c9487;super(),this['unitID']=_0x583437,this[_0x4151ba(0x1f9)]=_0x382ba9,this['_type']=_0x28850e,this[_0x4151ba(0x2dc)]=_0x2b33f2,this[_0x4151ba(0x272)]=_0x1d17be,this[_0x4151ba(0x323)]=_0x57dfc4,this['_revisionService']=_0x2dc3e2,this[_0x4151ba(0x3b6)]=_0x498606,this['_univerInstanceService']=_0x544ca0,this['_logService']=_0x2f5915,this[_0x4151ba(0x2d5)]=_0x5fc15a,this[_0x4151ba(0x24e)]=_0x3e97a9,this[_0x4151ba(0x247)]=_0x1fec32,this[_0x4151ba(0x191)]=_0x19ad3b,R(this,'_state$',new _0x1adaf6(null)),R(this,'state$',this[_0x4151ba(0x1a0)][_0x4151ba(0x338)]()),R(this,'_state',void 0x0),R(this,_0x4151ba(0x2c5),!0x1),R(this,_0x4151ba(0x2e6),''),R(this,_0x4151ba(0x39b),0x0),R(this,'status$',this['state$']['pipe'](_0xbbde1e(_0x41240c=>_0x41240c?_0x41240c['status']:_0x4151ba(0x27e)),_0x2bf814({'bufferSize':0x1,'refCount':!0x0}))),R(this,_0x4151ba(0x369),!0x1),R(this,_0x4151ba(0x36f),[]);}async[_0x4c9487(0x2cf)](){const _0x5ead52=_0x4c9487;if(this[_0x5ead52(0x180)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x5ead52(0x2be)]();}['pauseCollaboration'](){const _0xb341c3=_0x4c9487;return this[_0xb341c3(0x2c5)]=!0x0,_0x565c9d(()=>{const _0xfb24d0=_0xb341c3;this[_0xfb24d0(0x2c5)]=!0x1,this[_0xfb24d0(0x1eb)]();});}[_0x4c9487(0x2ab)](_0x4c993c){const _0x2b68e0=_0x4c9487;this[_0x2b68e0(0x238)](_0x4c993c);}[_0x4c9487(0x185)](_0x53d1fe){const _0x3d4abb=_0x4c9487;this[_0x3d4abb(0x1e4)]=_0x53d1fe,this[_0x3d4abb(0x1a0)][_0x3d4abb(0x1b0)](_0x53d1fe);}async[_0x4c9487(0x2be)](){const _0x13029e=_0x4c9487;if(this[_0x13029e(0x185)](await this['_createInitialState']()),this[_0x13029e(0x247)]){var _0xdba58a;(_0xdba58a=this['_singleActiveUnitService'])==null||_0xdba58a['editingUnit'](this[_0x13029e(0x1cc)]),this[_0x13029e(0x35d)](this['_singleActiveUnitService']['getUnitStatus$'](this['unitID'])[_0x13029e(0x145)](_0xb65cf6=>{const _0x5dbe9b=_0x13029e;this[_0x5dbe9b(0x220)]['debug']('[CollaborationEntity]',_0x5dbe9b(0x33a),_0xb65cf6),_0xb65cf6===0x1?(this[_0x5dbe9b(0x3b6)]['emitEvent']({'id':'OTHER_CLIENT_EDITING'}),this['_permissionService'][_0x5dbe9b(0x3c5)](new _0x428d58(this['unitID'])['id'],!0x1),this['_permissionService'][_0x5dbe9b(0x305)](!0x1)):(this['_permissionService'][_0x5dbe9b(0x3c5)](new _0x428d58(this['unitID'])['id'],!0x0),this[_0x5dbe9b(0x24e)]['setShowComponents'](!0x0));}));}let _0x1cfa86=!0x1;return this[_0x13029e(0x35d)](this[_0x13029e(0x1f9)][_0x13029e(0x1ad)][_0x13029e(0x145)](_0x280183=>{const _0x1da426=_0x13029e;_0x280183===0x3?this[_0x1da426(0x2f4)](_0x1cfa86):_0x280183===0x2&&(_0x1cfa86=!0x0,this[_0x1da426(0x281)]());})),this[_0x13029e(0x35d)](this['session']['event$']['subscribe'](_0x577dd2=>{const _0x339da7=_0x13029e;try{switch(_0x577dd2[_0x339da7(0x240)]){case _0x455bbe[_0x339da7(0x222)]:this['_onRemoteChangeset'](_0x4cb958(_0x577dd2[_0x339da7(0x1ea)]));break;case _0x455bbe[_0x339da7(0x18e)]:this[_0x339da7(0x2ce)](_0x577dd2[_0x339da7(0x1ea)]);break;case _0x455bbe[_0x339da7(0x2f9)]:this[_0x339da7(0x295)]();break;case _0x455bbe['CHANGESET_SHOULD_RETRY']:this['_onRemoteRetry'](_0x577dd2[_0x339da7(0x1ea)]);break;case _0x455bbe['PSEUDO_FETCH_MISSING_RESULT']:this[_0x339da7(0x393)](_0x577dd2[_0x339da7(0x1ea)]['changesets'][_0x339da7(0x1e6)](_0x58f15d=>_0x4cb958(_0x58f15d)));break;case _0x455bbe['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x455bbe[_0x339da7(0x19c)]:break;}}catch(_0x439662){throw console[_0x339da7(0x38c)](_0x339da7(0x15f),_0x439662),_0x439662;}})),this['_state'];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x4c9487(0x2a0)](){const _0x467381=_0x4c9487;if(this[_0x467381(0x369)])throw Error(_0x467381(0x3b0));this[_0x467381(0x369)]=!0x0;}[_0x4c9487(0x238)](_0x43ec5e){const _0x1cabed=_0x4c9487;this['_lockTransition'](),this[_0x1cabed(0x185)](this[_0x1cabed(0x1e4)]['appendMutation'](_0x43ec5e)),this[_0x1cabed(0x30d)]();}['_onRemoteChangeset'](_0x1db68c){const _0x32f95d=_0x4c9487;if(!(_0x1db68c[_0x32f95d(0x2f3)]<=this[_0x32f95d(0x28c)]['getCurrentRevOfUnit'](this['unitID']))){if(this[_0x32f95d(0x2c5)]){this[_0x32f95d(0x36f)]['push'](_0x1db68c);return;}this[_0x32f95d(0x258)](_0x1db68c);}}[_0x4c9487(0x1eb)](){const _0x231b76=_0x4c9487;this['_remoteChangesetQueue'][_0x231b76(0x1a6)](_0x55c256=>this[_0x231b76(0x258)](_0x55c256)),this[_0x231b76(0x36f)]=[];}[_0x4c9487(0x258)](_0x1d1c32){const _0x3c8fb9=_0x4c9487;let _0x27c646=this['_compressMutationService'][_0x3c8fb9(0x301)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x3c8fb9(0x301)][_0x3c8fb9(0x3ca)]()[_0x3c8fb9(0x171)])(_0x1d1c32['mutations'],null)||_0x1d1c32[_0x3c8fb9(0x36b)],_0x28e776={..._0x1d1c32,'mutations':_0x27c646};this['_lockTransition'](),this[_0x3c8fb9(0x185)](this[_0x3c8fb9(0x1e4)]['onRemoteChangeset'](_0x28e776)),this[_0x3c8fb9(0x30d)]();}['_onRemoteACK'](_0x3db12a){const _0x366399=_0x4c9487;this['_lockTransition'](),this[_0x366399(0x185)](this[_0x366399(0x1e4)][_0x366399(0x33f)](_0x3db12a)),this[_0x366399(0x30d)]();}[_0x4c9487(0x295)](_0x5eb1b1){const _0x23896b=_0x4c9487;this['_lockTransition'](),this[_0x23896b(0x185)](this[_0x23896b(0x1e4)][_0x23896b(0x37b)](_0x5eb1b1)),this[_0x23896b(0x30d)]();}[_0x4c9487(0x207)](_0x43ff9e){const _0xdac813=_0x4c9487;this['_lockTransition'](),this[_0xdac813(0x185)](this[_0xdac813(0x1e4)][_0xdac813(0x2bc)](_0x43ff9e)),this[_0xdac813(0x30d)]();}[_0x4c9487(0x393)](_0x345506){const _0xdfcba2=_0x4c9487;if(!(this[_0xdfcba2(0x1e4)]instanceof Q))throw TypeError(_0xdfcba2(0x33b));let _0xfd7f6e=_0x345506[_0xdfcba2(0x1e6)](_0x21f8a2=>{const _0xa2d8fd=_0xdfcba2;let _0x21cf93=this[_0xa2d8fd(0x272)][_0xa2d8fd(0x301)][_0xa2d8fd(0x32f)](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0xa2d8fd(0x171)])(_0x21f8a2[_0xa2d8fd(0x36b)],null)||_0x21f8a2[_0xa2d8fd(0x36b)];return{..._0x21f8a2,'mutations':_0x21cf93};});this['_lockTransition'](),this[_0xdfcba2(0x185)](this[_0xdfcba2(0x1e4)][_0xdfcba2(0x384)](_0xfd7f6e)),this[_0xdfcba2(0x30d)]();}[_0x4c9487(0x281)](){const _0x4a99b4=_0x4c9487;this['_lockTransition'](),this[_0x4a99b4(0x185)](this[_0x4a99b4(0x1e4)][_0x4a99b4(0x2f5)]()),this['_unlockTransition']();}[_0x4c9487(0x2f4)](_0x304b1c=!0x1){const _0x4b75d3=_0x4c9487;this[_0x4b75d3(0x2a0)](),this[_0x4b75d3(0x185)](this[_0x4b75d3(0x1e4)][_0x4b75d3(0x20f)]()),this[_0x4b75d3(0x30d)]();let _0x774804=this[_0x4b75d3(0x1e4)];_0x304b1c&&_0x774804 instanceof K&&(this['_lockTransition'](),this[_0x4b75d3(0x185)](_0x774804[_0x4b75d3(0x17a)]()),this[_0x4b75d3(0x30d)]());}async[_0x4c9487(0x389)](){return new Promise(_0x5b0e40=>{const _0x3148a8=_0x45c3;this['session'][_0x3148a8(0x1ad)][_0x3148a8(0x372)](_0xdf58e(0x1))[_0x3148a8(0x145)](async _0x5c2081=>{const _0x1948a3=_0x3148a8;_0x5b0e40(await this[_0x1948a3(0x1d0)](_0x5c2081===0x3));});});}[_0x4c9487(0x1a2)](){const _0x497cb3=_0x4c9487;let _0x41a3be=this[_0x497cb3(0x1cc)];return{'onStateChange':(_0x4d3eca,_0x6ad220)=>{const _0x572bc7=_0x497cb3;if(_0x4d3eca!==this[_0x572bc7(0x1e4)])throw Error(_0x572bc7(0x2f6)+_0x4d3eca[_0x572bc7(0x1a4)]+'\x0aAfter:\x20'+_0x6ad220[_0x572bc7(0x1a4)]+_0x572bc7(0x285)+this[_0x572bc7(0x1e4)][_0x572bc7(0x1a4)]);this['_updateState'](_0x6ad220);},'onSendChangeset':_0x1bbb81=>{const _0x114cd0=_0x497cb3;_0x1bbb81[_0x114cd0(0x312)]||(_0x1bbb81['sid']=this[_0x114cd0(0x2e6)],_0x1bbb81[_0x114cd0(0x210)]=++this[_0x114cd0(0x39b)]);let _0x58e1a8={'eventID':_0x455bbe[_0x114cd0(0x1fb)],'data':{'unitID':_0x1bbb81[_0x114cd0(0x1cc)],'unitType':this['_type'],'changeset':_0x1bbb81,'memberID':this['session'][_0x114cd0(0x1d4)]()}};this[_0x114cd0(0x1f9)][_0x114cd0(0x283)](_0x58e1a8,this[_0x114cd0(0x1cc)]);},'onMissingChangesets':({from:_0x3a5da8,to:_0x112779})=>{const _0x440450=_0x497cb3;this[_0x440450(0x220)]['debug'](_0x440450(0x382),_0x440450(0x201)+_0x3a5da8+'\x20to\x20'+_0x112779);let _0x1f2527={'eventID':_0x455bbe['FETCH_MISSING'],'data':{'unitID':_0x41a3be,'unitType':this[_0x440450(0x287)],'from':_0x3a5da8,'to':_0x112779}};this[_0x440450(0x1f9)][_0x440450(0x283)](_0x1f2527,this[_0x440450(0x1cc)]);}};}async[_0x4c9487(0x1d0)](_0x36f490){const _0xa3c3c0=_0x4c9487;var _0x5ff2b9,_0x3fe209,_0x50cdfb;let _0x4430f7=await((_0x5ff2b9=this[_0xa3c3c0(0x191)])==null?void 0x0:_0x5ff2b9[_0xa3c3c0(0x2ec)](this['unitID'])),_0x6a44f3=(_0x3fe209=_0x4430f7==null?void 0x0:_0x4430f7['mutations'])==null?[]:_0x3fe209,_0xc381e=(_0x50cdfb=_0x4430f7==null?void 0x0:_0x4430f7[_0xa3c3c0(0x1cf)])==null?null:_0x50cdfb,_0xba0783=!!(_0xc381e!=null&&_0xc381e[_0xa3c3c0(0x312)])&&!!(_0xc381e!=null&&_0xc381e[_0xa3c3c0(0x210)]);this[_0xa3c3c0(0x2e6)]=_0xba0783?_0xc381e[_0xa3c3c0(0x312)]:_0x1f208a(),this['_changesetReqId']=_0xba0783?_0xc381e[_0xa3c3c0(0x210)]:0x0;let _0x4e3884=this['unitID'];try{this[_0xa3c3c0(0x2b6)](_0xc381e,_0x6a44f3);}catch(_0x394607){this[_0xa3c3c0(0x220)]['error'](_0x394607);}let _0x123152=this['_createHandler']();if(_0x36f490){let _0x14ab8a=gn(this[_0xa3c3c0(0x2dc)],_0x4e3884,this[_0xa3c3c0(0x287)],_0xc381e,_0x6a44f3,_0x123152);return _0x14ab8a instanceof q?_0x14ab8a[_0xa3c3c0(0x353)]():(_0x14ab8a instanceof Y||_0x14ab8a instanceof J)&&_0x14ab8a[_0xa3c3c0(0x29d)](),_0x14ab8a;}return this[_0xa3c3c0(0x2dc)][_0xa3c3c0(0x2ed)](Z,_0x4e3884,this[_0xa3c3c0(0x287)],_0xc381e,_0x6a44f3,_0x123152);}['_replayCachedMutations'](_0x215f06,_0x73f6c2){const _0x10aa3e=_0x4c9487;var _0x4d159e,_0x60948b;let _0x402741=this['_compressMutationService'][_0x10aa3e(0x301)][_0x10aa3e(0x32f)](this[_0x10aa3e(0x272)]['interceptor']['getInterceptPoints']()[_0x10aa3e(0x171)]);(_0x4d159e=_0x402741((_0x215f06==null?void 0x0:_0x215f06[_0x10aa3e(0x36b)])||[],null))==null||_0x4d159e[_0x10aa3e(0x1a6)](_0x28c3b4=>this['_commandService'][_0x10aa3e(0x169)](_0x28c3b4['id'],_0x28c3b4['params'])),(_0x60948b=_0x402741(_0x73f6c2||[],null))==null||_0x60948b['forEach'](_0x5c6792=>this[_0x10aa3e(0x2d5)][_0x10aa3e(0x169)](_0x5c6792['id'],_0x5c6792[_0x10aa3e(0x14d)]));}};$=V([B(0x3,_0x25ad33(_0x4f91d7)),B(0x4,_0x25ad33(_0x2ca8b6)),B(0x5,_0x25ad33(_0x552e52)),B(0x6,_0x25ad33(_0xd4c3ee)),B(0x7,_0x25ad33(z)),B(0x8,_0x566455),B(0x9,_0x2260fd),B(0xa,_0x4d9c36),B(0xb,_0x2aaf65),B(0xc,_0x129a9b(W)),B(0xd,_0x129a9b(U))],$);let _n=class extends ${constructor(_0x591712,_0x27dc93,_0x570f88,_0x1edb43,_0x1750d8,_0x4ff7b6,_0x362156,_0x4f7e20,_0x17fee2,_0x177a62,_0x353483,_0x65ca4b,_0x5949c0,_0x51eca2,_0x4b65ee){const _0x3632a8=_0x4c9487;super(_0x591712,_0x570f88,_0x27dc93,_0x1edb43,_0x1750d8,_0x4ff7b6,_0x362156,_0x4f7e20,_0x17fee2,_0x177a62,_0x353483,_0x65ca4b,_0x51eca2,_0x4b65ee),this[_0x3632a8(0x1cc)]=_0x591712,this['type']=_0x27dc93,this[_0x3632a8(0x16c)]=_0x5949c0,R(this,_0x3632a8(0x253),null);}['addHandlerCallback'](_0x13447a){const _0x27a400=_0x4c9487;this[_0x27a400(0x253)]=_0x13447a;}[_0x4c9487(0x21e)](){const _0x1ec1a5=_0x4c9487;this['_handlerCallback']=null,super[_0x1ec1a5(0x21e)]();}[_0x4c9487(0x1a2)](){const _0x26b762=_0x4c9487;let _0x5c354c=super[_0x26b762(0x1a2)]();return _0x5c354c['onTransformIME']=_0x40290d=>{const _0x1f2f10=_0x26b762;var _0x4cd16b,_0x1632a7;return(_0x4cd16b=this[_0x1f2f10(0x253)])==null||(_0x1632a7=_0x4cd16b[_0x1f2f10(0x2ad)])==null?void 0x0:_0x1632a7[_0x1f2f10(0x387)](_0x4cd16b,_0x40290d);},_0x5c354c[_0x26b762(0x297)]=_0x383387=>{const _0x3f1981=_0x26b762;var _0x3558bc,_0x24849a;return(_0x3558bc=this[_0x3f1981(0x253)])==null||(_0x24849a=_0x3558bc[_0x3f1981(0x297)])==null?void 0x0:_0x24849a[_0x3f1981(0x387)](_0x3558bc,_0x383387);},_0x5c354c[_0x26b762(0x367)]=_0x302c47=>{const _0x191a23=_0x26b762;var _0x2dfe0e,_0x347465;return(_0x2dfe0e=this[_0x191a23(0x253)])==null||(_0x347465=_0x2dfe0e['onTransformSelections'])==null?void 0x0:_0x347465[_0x191a23(0x387)](_0x2dfe0e,_0x302c47);},_0x5c354c[_0x26b762(0x184)]=_0x532c98=>{const _0x239df3=_0x26b762;var _0x364d6c,_0x22ae83;return(_0x364d6c=this[_0x239df3(0x253)])==null||(_0x22ae83=_0x364d6c[_0x239df3(0x184)])==null?void 0x0:_0x22ae83[_0x239df3(0x387)](_0x364d6c,_0x532c98);},_0x5c354c['onTransformRemoteChangesetByIMECache']=_0x654b91=>{const _0x5f0f66=_0x26b762;var _0x38ca22,_0x479944,_0x464247;return(_0x38ca22=(_0x479944=this['_handlerCallback'])==null||(_0x464247=_0x479944['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x464247[_0x5f0f66(0x387)](_0x479944,_0x654b91))==null?_0x654b91:_0x38ca22;},_0x5c354c[_0x26b762(0x3a7)]=_0xc8922f=>{const _0x28d2d0=_0x26b762;var _0x2f0df5,_0x27caa8,_0x4a9a63;return(_0x2f0df5=(_0x27caa8=this[_0x28d2d0(0x253)])==null||(_0x4a9a63=_0x27caa8[_0x28d2d0(0x3a7)])==null?void 0x0:_0x4a9a63[_0x28d2d0(0x387)](_0x27caa8,_0xc8922f))==null?_0xc8922f:_0x2f0df5;},_0x5c354c;}async[_0x4c9487(0x2be)](){const _0x5ec867=_0x4c9487;let _0x80f9bf=await super[_0x5ec867(0x2be)]();return this[_0x5ec867(0x35d)](this[_0x5ec867(0x16c)]['docStateChange$'][_0x5ec867(0x145)](_0x27ac52=>{const _0x2e777c=_0x5ec867;if(_0x27ac52==null||_0x27ac52[_0x2e777c(0x23a)]!==this[_0x2e777c(0x1cc)])return;let {commandId:_0x4bc522,redoState:_0x4a7a62,unitId:_0x243e0e}=_0x27ac52,_0x2f3d82={'id':_0x4bc522,'type':_0x383b36[_0x2e777c(0x174)],'params':{'unitId':_0x243e0e,'actions':_0x4a7a62[_0x2e777c(0x278)],'textRanges':null}};this[_0x2e777c(0x238)](_0x2f3d82);})),this[_0x5ec867(0x35d)](this[_0x5ec867(0x2d5)][_0x5ec867(0x3b9)]((_0x39b445,_0x323b7f)=>{const _0x353c80=_0x5ec867;if(_0x39b445[_0x353c80(0x385)]!==_0x383b36[_0x353c80(0x174)]||_0x323b7f!=null&&_0x323b7f[_0x353c80(0x27c)]||_0x323b7f!=null&&_0x323b7f[_0x353c80(0x2e2)]||_0x39b445['id']===_0x2e2b0b['id'])return;let _0x309005=_0x39b445[_0x353c80(0x14d)];if((_0x309005==null?void 0x0:_0x309005[_0x353c80(0x23a)])!==this['unitID'])return;let _0x378ccb=_0x39b445,_0x307b02=this[_0x353c80(0x272)][_0x353c80(0x301)]['fetchThroughInterceptors'](this[_0x353c80(0x272)][_0x353c80(0x301)][_0x353c80(0x3ca)]()['COMPRESS_MUTATION_SEND'])([_0x378ccb],this[_0x353c80(0x1b3)])||[_0x378ccb];this[_0x353c80(0x238)](_0x307b02[0x0]);})),_0x80f9bf;}};_n=V([B(0x3,_0x25ad33(_0x4f91d7)),B(0x4,_0x25ad33(_0x2ca8b6)),B(0x5,_0x25ad33(_0x552e52)),B(0x6,_0x25ad33(_0xd4c3ee)),B(0x7,_0x25ad33(z)),B(0x8,_0x566455),B(0x9,_0x2260fd),B(0xa,_0x4d9c36),B(0xb,_0x2aaf65),B(0xc,_0x25ad33(_0x3db738)),B(0xd,_0x129a9b(W)),B(0xe,_0x129a9b(U))],_n);let vn=class extends ${constructor(_0x4bd81b,_0x2274fa,_0x5c0cb7,_0x280ae8,_0x208367,_0x35ab08,_0x5efff4,_0x4ada4c,_0x1601cd,_0x43a223,_0x2c8a0d,_0x15c90d,_0x325033,_0x56ecc5){const _0x5d34ad=_0x4c9487;super(_0x4bd81b,_0x5c0cb7,_0x2274fa,_0x280ae8,_0x208367,_0x35ab08,_0x5efff4,_0x4ada4c,_0x1601cd,_0x43a223,_0x2c8a0d,_0x15c90d,_0x325033,_0x56ecc5),this[_0x5d34ad(0x1cc)]=_0x4bd81b,this[_0x5d34ad(0x385)]=_0x2274fa;}async[_0x4c9487(0x2be)](){const _0x3d8d6c=_0x4c9487;let _0x583c5b=await super[_0x3d8d6c(0x2be)]();return this[_0x3d8d6c(0x35d)](this['_commandService'][_0x3d8d6c(0x3b9)]((_0x3cc7fd,_0x2f8cd4)=>{const _0x3f93da=_0x3d8d6c;if(_0x3cc7fd[_0x3f93da(0x385)]!==_0x383b36[_0x3f93da(0x174)]||_0x2f8cd4!=null&&_0x2f8cd4['fromCollab']||_0x2f8cd4!=null&&_0x2f8cd4['onlyLocal'])return;let _0x345b4c=_0x3cc7fd[_0x3f93da(0x14d)];if((_0x345b4c==null?void 0x0:_0x345b4c[_0x3f93da(0x23a)])!==this[_0x3f93da(0x1cc)])return;let _0xe03f7f=_0x3cc7fd,_0x357541=this[_0x3f93da(0x272)][_0x3f93da(0x301)][_0x3f93da(0x32f)](this[_0x3f93da(0x272)][_0x3f93da(0x301)][_0x3f93da(0x3ca)]()['COMPRESS_MUTATION_SEND'])([_0xe03f7f],this[_0x3f93da(0x1b3)])||[_0xe03f7f];this[_0x3f93da(0x238)](_0x357541[0x0]);})),_0x583c5b;}};vn=V([B(0x3,_0x25ad33(_0x4f91d7)),B(0x4,_0x25ad33(_0x2ca8b6)),B(0x5,_0x25ad33(_0x552e52)),B(0x6,_0x25ad33(_0xd4c3ee)),B(0x7,_0x25ad33(z)),B(0x8,_0x566455),B(0x9,_0x2260fd),B(0xa,_0x4d9c36),B(0xb,_0x2aaf65),B(0xc,_0x129a9b(W)),B(0xd,_0x129a9b(U))],vn);let yn=class extends ${constructor(_0x5162c8,_0x475d86,_0x567281,_0x21cc5f,_0xe95d2a,_0x3b8ed8,_0x5ac5c8,_0x5be14d,_0x14e92f,_0x497944,_0x2ea3d0,_0x340ffe,_0x22418d,_0x3f19fa,_0x1ed444){const _0x5210db=_0x4c9487;super(_0x5162c8,_0x567281,_0x475d86,_0x21cc5f,_0xe95d2a,_0x3b8ed8,_0x5ac5c8,_0x14e92f,_0x497944,_0x2ea3d0,_0x340ffe,_0x22418d,_0x3f19fa,_0x1ed444),this[_0x5210db(0x1cc)]=_0x5162c8,this[_0x5210db(0x385)]=_0x475d86,this['_sheetTransformSelectionsService']=_0x5be14d;}['_createHandler'](){const _0x5558a7=_0x4c9487;let _0x10a6a0=super[_0x5558a7(0x1a2)]();return _0x10a6a0[_0x5558a7(0x367)]=_0x38439b=>this[_0x5558a7(0x252)][_0x5558a7(0x221)](_0x38439b),_0x10a6a0;}async[_0x4c9487(0x2be)](){const _0x100e4e=_0x4c9487;let _0x268a7c=await super[_0x100e4e(0x2be)]();return this[_0x100e4e(0x35d)](this['_commandService'][_0x100e4e(0x3b9)]((_0xfb0ea0,_0x161f62)=>{const _0x3c1e24=_0x100e4e;if(_0xfb0ea0[_0x3c1e24(0x385)]!==_0x383b36[_0x3c1e24(0x174)]||_0x161f62!=null&&_0x161f62[_0x3c1e24(0x27c)]||_0x161f62!=null&&_0x161f62['onlyLocal'])return;let _0x5c1c39=_0xfb0ea0[_0x3c1e24(0x14d)];if((_0x5c1c39==null?void 0x0:_0x5c1c39['unitId'])!==this['unitID'])return;let _0x1f5aa0=_0xfb0ea0,_0x4b9237=this[_0x3c1e24(0x272)][_0x3c1e24(0x301)][_0x3c1e24(0x32f)](this[_0x3c1e24(0x272)][_0x3c1e24(0x301)][_0x3c1e24(0x3ca)]()[_0x3c1e24(0x2e9)])([_0x1f5aa0],this['_univerInstanceService'])||[_0x1f5aa0];this[_0x3c1e24(0x238)](_0x4b9237[0x0]);})),_0x268a7c;}};yn=V([B(0x3,_0x25ad33(_0x4f91d7)),B(0x4,_0x25ad33(_0x2ca8b6)),B(0x5,_0x25ad33(_0x552e52)),B(0x6,_0x25ad33(_0xd4c3ee)),B(0x7,_0x25ad33(Gt)),B(0x8,_0x25ad33(z)),B(0x9,_0x566455),B(0xa,_0x2260fd),B(0xb,_0x4d9c36),B(0xc,_0x2aaf65),B(0xd,_0x129a9b(W)),B(0xe,_0x129a9b(U))],yn);let bn=class extends ${constructor(_0x398c70,_0x30d9ba,_0x40241b,_0x6dc9b1,_0x3f9a0f,_0x5c3cee,_0x226d0d,_0xa8c361,_0x3e527d,_0x82feaf,_0x211b16,_0x59458f,_0x511946,_0x470a49){const _0x15e33b=_0x4c9487;super(_0x398c70,_0x40241b,_0x30d9ba,_0x6dc9b1,_0x3f9a0f,_0x5c3cee,_0x226d0d,_0xa8c361,_0x3e527d,_0x82feaf,_0x211b16,_0x59458f,_0x511946,_0x470a49),this[_0x15e33b(0x1cc)]=_0x398c70,this[_0x15e33b(0x385)]=_0x30d9ba;}async[_0x4c9487(0x2be)](){const _0x256a25=_0x4c9487;let _0x4ad8d6=await super[_0x256a25(0x2be)]();return this[_0x256a25(0x35d)](this[_0x256a25(0x2d5)]['onMutationExecutedForCollab']((_0xced1ce,_0x1030c1)=>{const _0x449548=_0x256a25;if(_0xced1ce[_0x449548(0x385)]!==_0x383b36[_0x449548(0x174)]||_0x1030c1!=null&&_0x1030c1[_0x449548(0x27c)]||_0x1030c1!=null&&_0x1030c1[_0x449548(0x2e2)])return;let _0x4a0a51=_0xced1ce[_0x449548(0x14d)];if((_0x4a0a51==null?void 0x0:_0x4a0a51['unitId'])!==this[_0x449548(0x1cc)])return;let _0x280ce7=_0xced1ce,_0x27ebac=this['_compressMutationService']['interceptor'][_0x449548(0x32f)](this[_0x449548(0x272)]['interceptor'][_0x449548(0x3ca)]()[_0x449548(0x2e9)])([_0x280ce7],this[_0x449548(0x1b3)])||[_0x280ce7];this['_onLocalMutation'](_0x27ebac[0x0]);})),_0x4ad8d6;}};bn=V([B(0x3,_0x25ad33(_0x4f91d7)),B(0x4,_0x25ad33(_0x2ca8b6)),B(0x5,_0x25ad33(_0x552e52)),B(0x6,_0x25ad33(_0xd4c3ee)),B(0x7,_0x25ad33(z)),B(0x8,_0x566455),B(0x9,_0x2260fd),B(0xa,_0x4d9c36),B(0xb,_0x2aaf65),B(0xc,_0x129a9b(W)),B(0xd,_0x129a9b(U))],bn);let xn=class extends ${constructor(_0x13948b,_0x126929,_0x255a2c,_0x10d0e2,_0x59a07a,_0x30ccff,_0x2edc16,_0x3a7fd4,_0x3545c6,_0x976b0d,_0x59ab8c,_0x164ecd,_0x21da82,_0x140a52){const _0x44e522=_0x4c9487;super(_0x13948b,_0x255a2c,_0x126929,_0x10d0e2,_0x59a07a,_0x30ccff,_0x2edc16,_0x3a7fd4,_0x3545c6,_0x976b0d,_0x59ab8c,_0x164ecd,_0x21da82,_0x140a52),this[_0x44e522(0x1cc)]=_0x13948b,this[_0x44e522(0x385)]=_0x126929;}async[_0x4c9487(0x2be)](){const _0x1fb2ca=_0x4c9487;let _0x480d0d=await super[_0x1fb2ca(0x2be)]();return this[_0x1fb2ca(0x35d)](this[_0x1fb2ca(0x2d5)]['onMutationExecutedForCollab']((_0x2ac358,_0x2ff3c4)=>{const _0x1e605a=_0x1fb2ca;if(_0x2ac358[_0x1e605a(0x385)]!==_0x383b36[_0x1e605a(0x174)]||_0x2ff3c4!=null&&_0x2ff3c4['fromCollab']||_0x2ff3c4!=null&&_0x2ff3c4[_0x1e605a(0x2e2)])return;let _0x1ba6c8=_0x2ac358[_0x1e605a(0x14d)];if((_0x1ba6c8==null?void 0x0:_0x1ba6c8[_0x1e605a(0x23a)])!==this[_0x1e605a(0x1cc)])return;let _0x13137e=_0x2ac358,_0x1830e7=this['_compressMutationService'][_0x1e605a(0x301)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x1e605a(0x3ca)]()[_0x1e605a(0x2e9)])([_0x13137e],this['_univerInstanceService'])||[_0x13137e];this['_onLocalMutation'](_0x1830e7[0x0]);})),_0x480d0d;}};xn=V([B(0x3,_0x25ad33(_0x4f91d7)),B(0x4,_0x25ad33(_0x2ca8b6)),B(0x5,_0x25ad33(_0x552e52)),B(0x6,_0x25ad33(_0xd4c3ee)),B(0x7,_0x25ad33(z)),B(0x8,_0x566455),B(0x9,_0x2260fd),B(0xa,_0x4d9c36),B(0xb,_0x2aaf65),B(0xc,_0x129a9b(W)),B(0xd,_0x129a9b(U))],xn);const Sn=_0x354efe(_0x4c9487(0x1dc));function Cn(_0x3a7a33){const _0x5cbba0=_0x4c9487;let _0x3e5bd2=_0x3a7a33['data'],_0x1115a2=JSON[_0x5cbba0(0x3a6)](_0x3e5bd2);switch(_0x1115a2[_0x5cbba0(0x172)]){case _0xe2186d[_0x5cbba0(0x1bb)]:case _0xe2186d[_0x5cbba0(0x355)]:{let _0x584805=_0x1115a2['infoRsp'];return{..._0x1115a2,'data':_0x584805,'cmd':_0x1115a2[_0x5cbba0(0x172)]};}case _0xe2186d[_0x5cbba0(0x36d)]:{let _0x30412e=_0x1115a2[_0x5cbba0(0x193)];return{..._0x1115a2,'data':_0x30412e,'cmd':_0x1115a2['cmd']};}case _0xe2186d[_0x5cbba0(0x2bd)]:{let _0x5d6b70=_0x1115a2['collaMsg'];switch(_0x5d6b70[_0x5cbba0(0x240)]){case _0x455bbe[_0x5cbba0(0x2bf)]:var _0x51e6a5;return{..._0x1115a2,'data':{..._0x5d6b70,'data':(_0x51e6a5=_0x5d6b70[_0x5cbba0(0x2b8)])==null?void 0x0:_0x51e6a5['cs']},'cmd':_0x1115a2[_0x5cbba0(0x172)]};case _0x455bbe[_0x5cbba0(0x18e)]:var _0x45bb8d;return{..._0x1115a2,'data':{..._0x5d6b70,'data':(_0x45bb8d=_0x5d6b70['csAckEvent'])==null?void 0x0:_0x45bb8d['cs']},'cmd':_0x1115a2[_0x5cbba0(0x172)]};case _0x455bbe[_0x5cbba0(0x222)]:var _0x1c067d;return{..._0x1115a2,'data':{..._0x5d6b70,'data':(_0x1c067d=_0x5d6b70['newCsEvent'])==null?void 0x0:_0x1c067d['cs']},'cmd':_0x1115a2[_0x5cbba0(0x172)]};case _0x455bbe['CHANGESET_REJ']:var _0x42d3a4;return{..._0x1115a2,'data':{..._0x5d6b70,'data':(_0x42d3a4=_0x5d6b70[_0x5cbba0(0x321)])==null?void 0x0:_0x42d3a4['cs']},'cmd':_0x1115a2[_0x5cbba0(0x172)]};case _0x455bbe[_0x5cbba0(0x22d)]:var _0x37c363;return{..._0x1115a2,'data':{..._0x5d6b70,'data':(_0x37c363=_0x5d6b70[_0x5cbba0(0x390)])==null?void 0x0:_0x37c363['cs']},'cmd':_0x1115a2['cmd']};case _0x455bbe['UPDATE_CURSOR']:return{..._0x1115a2,'data':{..._0x5d6b70,'data':_0x5d6b70[_0x5cbba0(0x394)]},'cmd':_0x1115a2[_0x5cbba0(0x172)]};case _0x455bbe[_0x5cbba0(0x2da)]:return{..._0x1115a2,'data':{..._0x5d6b70,'data':_0x5d6b70['joinEvent']},'cmd':_0x1115a2[_0x5cbba0(0x172)]};case _0x455bbe[_0x5cbba0(0x163)]:return{..._0x1115a2,'data':{..._0x5d6b70,'data':_0x5d6b70[_0x5cbba0(0x3c6)]},'cmd':_0x1115a2[_0x5cbba0(0x172)]};case _0x455bbe[_0x5cbba0(0x1e0)]:return{..._0x1115a2,'data':{..._0x5d6b70,'data':_0x5d6b70[_0x5cbba0(0x370)]},'cmd':_0x1115a2[_0x5cbba0(0x172)]};case _0x455bbe[_0x5cbba0(0x335)]:case _0x455bbe[_0x5cbba0(0x357)]:return{..._0x1115a2,'data':{..._0x5d6b70,'data':_0x5d6b70[_0x5cbba0(0x333)]},'cmd':_0x1115a2[_0x5cbba0(0x172)]};case _0x455bbe[_0x5cbba0(0x25e)]:return{..._0x1115a2,'data':{..._0x5d6b70,'data':_0x5d6b70[_0x5cbba0(0x370)]},'cmd':_0x1115a2[_0x5cbba0(0x172)]};case _0x455bbe[_0x5cbba0(0x24a)]:return{..._0x1115a2,'data':_0x5d6b70,'cmd':_0x1115a2[_0x5cbba0(0x172)]};case _0x455bbe[_0x5cbba0(0x388)]:return{..._0x1115a2,'data':{..._0x5d6b70,'data':_0x5d6b70[_0x5cbba0(0x1b7)]},'cmd':_0x1115a2[_0x5cbba0(0x172)]};case _0x455bbe[_0x5cbba0(0x24c)]:return{..._0x1115a2,'data':{..._0x5d6b70,'data':_0x5d6b70['updatePermissionObjEvent']},'cmd':_0x1115a2[_0x5cbba0(0x172)]};case _0x455bbe[_0x5cbba0(0x1db)]:return{..._0x1115a2,'data':{..._0x5d6b70,'data':_0x5d6b70['shouldCloseConn']},'cmd':_0x1115a2[_0x5cbba0(0x172)]};case _0x455bbe[_0x5cbba0(0x19c)]:return{..._0x1115a2,'data':{..._0x5d6b70,'data':_0x5d6b70['uniscriptRunEvent']},'cmd':_0x1115a2[_0x5cbba0(0x172)]};default:return _0x1115a2;}}default:return _0x1115a2;}}function wn(_0x113ac5){const _0x1484a0=_0x4c9487;switch(_0x113ac5['cmd']){case _0xe2186d[_0x1484a0(0x1bb)]:case _0xe2186d[_0x1484a0(0x355)]:return JSON['stringify']({'cmd':_0x113ac5['cmd'],'routeKey':_0x113ac5['routeKey']});case _0xe2186d[_0x1484a0(0x363)]:{let _0x18bf8b;switch(_0x113ac5[_0x1484a0(0x1ea)][_0x1484a0(0x240)]){case _0x455bbe['UPDATE_CURSOR']:_0x18bf8b={'eventID':_0x455bbe['UPDATE_CURSOR'],'updateCursorEvent':_0x113ac5[_0x1484a0(0x1ea)][_0x1484a0(0x1ea)]};break;case _0x455bbe['USERS_LEAVE']:_0x18bf8b={'eventID':_0x455bbe[_0x1484a0(0x163)],'leaveEvent':_0x113ac5[_0x1484a0(0x1ea)][_0x1484a0(0x1ea)]};break;case _0x455bbe[_0x1484a0(0x2da)]:_0x18bf8b={'eventID':_0x455bbe['USERS_ENTER'],'joinEvent':_0x113ac5[_0x1484a0(0x1ea)][_0x1484a0(0x1ea)]};break;case _0x455bbe[_0x1484a0(0x1e0)]:_0x18bf8b={'eventID':_0x455bbe[_0x1484a0(0x1e0)],'liveShareNewHost':_0x113ac5[_0x1484a0(0x1ea)][_0x1484a0(0x1ea)]};break;case _0x455bbe[_0x1484a0(0x357)]:_0x18bf8b={'eventID':_0x455bbe[_0x1484a0(0x357)],'liveShareOperation':_0x113ac5[_0x1484a0(0x1ea)][_0x1484a0(0x1ea)]};break;case _0x455bbe[_0x1484a0(0x25e)]:_0x18bf8b={'eventID':_0x455bbe[_0x1484a0(0x25e)],'liveShareTerminate':_0x113ac5[_0x1484a0(0x1ea)][_0x1484a0(0x1ea)]};break;case _0x455bbe[_0x1484a0(0x2cd)]:_0x18bf8b={'eventID':_0x455bbe['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x113ac5[_0x1484a0(0x1ea)][_0x1484a0(0x1ea)]};break;case _0x455bbe['LIVESHARE_FETCH_OPERATIONS']:_0x18bf8b={'eventID':_0x455bbe[_0x1484a0(0x335)]};break;default:_0x18bf8b={'eventID':_0x113ac5[_0x1484a0(0x1ea)][_0x1484a0(0x240)]};}return JSON[_0x1484a0(0x2a2)]({'cmd':_0x113ac5[_0x1484a0(0x172)],'routeKey':_0x113ac5['routeKey'],'collaMsg':_0x18bf8b});}case _0xe2186d[_0x1484a0(0x36d)]:return JSON[_0x1484a0(0x2a2)]({'cmd':_0x113ac5['cmd'],'routeKey':_0x113ac5[_0x1484a0(0x17e)],'joinReq':_0x113ac5[_0x1484a0(0x1ea)]});case _0xe2186d[_0x1484a0(0x3c8)]:return JSON[_0x1484a0(0x2a2)]({'cmd':_0x113ac5['cmd'],'routeKey':_0x113ac5[_0x1484a0(0x17e)],'leaveReq':_0x113ac5[_0x1484a0(0x1ea)]});default:throw Error(_0x1484a0(0x274));}}const Tn=_0x354efe(_0x4c9487(0x215));function En(_0x3f06fa,_0x8c01bf,_0x230b95){const _0x10afc4=_0x4c9487;return _0x3f06fa+'/'+_0x8c01bf+_0x10afc4(0x1b2)+_0x230b95+_0x10afc4(0x1cb);}let Dn=class extends _0x278d2d{constructor(_0x6e081d,_0x1f6994,_0x1bc1ec,_0x287ccc,_0x19361d){const _0x29a2b4=_0x4c9487;super(),this['_injector']=_0x6e081d,this['_httpService']=_0x1f6994,this[_0x29a2b4(0x1a9)]=_0x1bc1ec,this['_logService']=_0x287ccc,this[_0x29a2b4(0x245)]=_0x19361d;}[_0x4c9487(0x1fd)](_0x106c77){const _0x37d33d=_0x4c9487;let _0x4fa3ea=this[_0x37d33d(0x2dc)][_0x37d33d(0x203)](_0x250eaf);if(!_0x4fa3ea)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x3482a5=_0x4fa3ea[_0x37d33d(0x24f)](_0x106c77);if(!_0x3482a5)throw Error(_0x37d33d(0x27b));let _0x5e7500=new _0x3708fc(),_0x10c6e8=new _0x4f22d9();_0x5e7500['add'](_0x3482a5[_0x37d33d(0x351)][_0x37d33d(0x145)](_0x29f6c5=>_0x10c6e8['next'](_0x29f6c5))),_0x5e7500['add'](_0x565c9d(()=>_0x10c6e8['complete']()));let _0xd58d09=new _0x4f22d9();_0x5e7500['add'](_0x3482a5[_0x37d33d(0x187)]['subscribe'](_0x54013a=>_0xd58d09[_0x37d33d(0x1b0)](_0x54013a))),_0x5e7500[_0x37d33d(0x1b9)](_0x565c9d(()=>_0xd58d09[_0x37d33d(0x14b)]()));let _0x23dc76=new _0x4f22d9();_0x5e7500[_0x37d33d(0x1b9)](_0x3482a5['message$']['subscribe'](_0x294a33=>{let _0x3c7aaf=Cn(_0x294a33);_0x23dc76['next'](_0x3c7aaf);})),_0x5e7500[_0x37d33d(0x1b9)](_0x565c9d(()=>_0x23dc76[_0x37d33d(0x14b)]()));let _0x56cd9c,_0x498a6f=()=>{const _0x56bcee=_0x37d33d;_0xd58d09[_0x56bcee(0x1b0)](new Event(_0x56bcee(0x348))),_0x10c6e8['next'](new Event('connection\x20error')),_0x56cd9c['close']();};return _0x56cd9c={'memberID':'','close$':_0x10c6e8[_0x37d33d(0x338)](),'error$':_0xd58d09['asObservable'](),'open$':_0x3482a5[_0x37d33d(0x292)],'message$':_0x23dc76[_0x37d33d(0x338)](),'send':_0x260707=>{const _0x4de012=_0x37d33d;if(_0x260707[_0x4de012(0x172)]===_0xe2186d[_0x4de012(0x363)]){if(_0x260707[_0x4de012(0x1ea)][_0x4de012(0x240)]===_0x455bbe['SUBMIT_CHANGESET']){this[_0x4de012(0x13c)](_0x56cd9c,_0x260707[_0x4de012(0x1ea)])[_0x4de012(0x2e8)](_0x536335=>{const _0x59e4fc=_0x4de012;this['_logService'][_0x59e4fc(0x38c)](_0x536335),_0x498a6f();});return;}if(_0x260707['data'][_0x4de012(0x240)]===_0x455bbe[_0x4de012(0x1e7)]){let _0x58d979=_0x260707[_0x4de012(0x1ea)];this[_0x4de012(0x37d)](_0x58d979)[_0x4de012(0x166)](_0x20f3f3=>{const _0x3e7a3b=_0x4de012;_0x23dc76[_0x3e7a3b(0x1b0)]({'cmd':_0xe2186d[_0x3e7a3b(0x2bd)],'code':_0x1dc572['OK'],'routeKey':_0x58d979[_0x3e7a3b(0x1ea)][_0x3e7a3b(0x1cc)],'routeType':'','data':{'eventID':_0x455bbe[_0x3e7a3b(0x2e0)],'data':{'changesets':_0x20f3f3}}});})[_0x4de012(0x2e8)](_0x561423=>{const _0x255ec7=_0x4de012;this['_logService'][_0x255ec7(0x38c)](_0x561423),_0x498a6f();});return;}}_0x3482a5[_0x4de012(0x283)](wn(_0x260707));},'close':()=>{const _0x3916a5=_0x37d33d;_0x3482a5[_0x3916a5(0x2ac)](),_0x5e7500[_0x3916a5(0x21e)]();}},_0x56cd9c;}async[_0x4c9487(0x13c)](_0x1cd20c,_0x403835){const _0x28d14b=_0x4c9487;var _0x357272;let {unitType:_0x394e7f,unitID:_0x2acaeb,changeset:_0x480808}=_0x403835['data'],_0x1bb031={'unitID':_0x2acaeb,'memberID':_0x1cd20c[_0x28d14b(0x17c)],'type':_0x394e7f,'changeset':_0x8fd771(_0x480808)},_0x21aa90=this['_configService'][_0x28d14b(0x3c2)](L),_0x1c91de=En((_0x357272=_0x21aa90==null?void 0x0:_0x21aa90[_0x28d14b(0x233)])==null?_0x28d14b(0x1da):_0x357272,_0x394e7f,_0x2acaeb);try{await this[_0x28d14b(0x16b)][_0x28d14b(0x18c)](_0x1c91de,{'body':_0x1bb031});}catch(_0x5f04c7){throw this[_0x28d14b(0x220)][_0x28d14b(0x38c)](_0x28d14b(0x362),_0x28d14b(0x16d)),_0x5f04c7;}}async[_0x4c9487(0x37d)](_0x351290){const _0x3b2003=_0x4c9487;let {unitID:_0x27dfe9,from:_0x435bb4,to:_0x316cec,unitType:_0x58c397}=_0x351290['data'];return(await this[_0x3b2003(0x245)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x27dfe9,'type':_0x58c397,'from':_0x435bb4,'to':_0x316cec}))[_0x3b2003(0x1f5)][_0x3b2003(0x1e6)](_0x4633da=>((_0x4633da[_0x3b2003(0x36b)]===null||_0x4633da[_0x3b2003(0x36b)]===void 0x0)&&(_0x4633da[_0x3b2003(0x36b)]=[]),_0x4633da));}};Dn=V([B(0x0,_0x25ad33(_0x4f91d7)),B(0x1,_0x25ad33(_0x38ff13)),B(0x2,_0x408d6e),B(0x3,_0x2260fd),B(0x4,_0x501a5d)],Dn);const On=_0x354efe(_0x4c9487(0x3ac));function kn(_0x49f7d2={}){const _0x4882e9=_0x4c9487;return _0x49f7d2['resolveUnit']?{'resolveUnit':_0x49f7d2[_0x4882e9(0x205)]}:{'resolveUnit':_0x19b291=>({'target':{'unitId':_0x19b291['unitId'],'unitType':_0x19b291[_0x4882e9(0x1c1)]}})};}function An(_0x1008e9,_0x323184,_0x485cbe){const _0x5652df=_0x4c9487;var _0x26648c;let _0x317e1c=_0x485cbe[_0x5652df(0x3a0)][_0x5652df(0x31b)];if(_0x317e1c!=null&&_0x317e1c[_0x5652df(0x173)]()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x485cbe[_0x5652df(0x3a0)][_0x5652df(0x23a)])throw Error(_0x5652df(0x2c0));return{'localUnitId':_0x1008e9,'unitType':_0x323184,'target':{'endpoint':_0x317e1c,'unitId':_0x485cbe[_0x5652df(0x3a0)][_0x5652df(0x23a)],'unitType':(_0x26648c=_0x485cbe[_0x5652df(0x3a0)][_0x5652df(0x1c1)])==null?_0x323184:_0x26648c},'changeset':_0x485cbe[_0x5652df(0x1f0)]};}let jn=class extends _0x278d2d{constructor(_0x13762f,_0x257dc1,_0x13be85,_0x435230,_0xc0957c,_0xa19c42,_0x662e98){const _0x504043=_0x4c9487;super(),this[_0x504043(0x2dc)]=_0x13762f,this[_0x504043(0x220)]=_0x257dc1,this['_configService']=_0x13be85,this[_0x504043(0x3c0)]=_0x435230,this[_0x504043(0x38b)]=_0xc0957c,this[_0x504043(0x342)]=_0xa19c42,this[_0x504043(0x2ff)]=_0x662e98,R(this,_0x504043(0x227),new Map()),R(this,'_pendingSessions',new Map()),R(this,_0x504043(0x28e),new Map()),R(this,_0x504043(0x1b5),new Map()),R(this,_0x504043(0x383),this['_getSocketChannel'](void 0x0)[_0x504043(0x383)][_0x504043(0x338)]()),R(this,_0x504043(0x255),new _0x1adaf6(0x0)),R(this,_0x504043(0x144),this[_0x504043(0x255)]['asObservable']()),this[_0x504043(0x1af)]();}[_0x4c9487(0x1af)](){const _0x4333a4=_0x4c9487;this['_networkConditionService']&&this[_0x4333a4(0x35d)](this[_0x4333a4(0x2ff)]['online$']['subscribe'](_0x41b7b0=>{const _0x4b5422=_0x4333a4;_0x41b7b0&&this[_0x4b5422(0x1ab)](),_0x41b7b0||this[_0x4b5422(0x1b5)][_0x4b5422(0x1a6)](_0x502aa9=>this[_0x4b5422(0x143)](_0x502aa9));}));}['dispose'](){const _0xf176c8=_0x4c9487;super['dispose'](),this[_0xf176c8(0x1b5)]['forEach'](_0x588607=>{const _0x213805=_0xf176c8;var _0x2bd5d6,_0x1c423a;(_0x2bd5d6=_0x588607['socketMessageSubscription'])==null||_0x2bd5d6[_0x213805(0x1b8)](),_0x588607['socketMessageSubscription']=null,this['_clearRetryConnectingTimer'](_0x588607),this['_clearTimeoutTimer'](_0x588607),this[_0x213805(0x30f)](_0x588607),(_0x1c423a=_0x588607['socket$']['getValue']())==null||_0x1c423a[_0x213805(0x2ac)](),_0x588607[_0x213805(0x383)][_0x213805(0x14b)]();}),this[_0xf176c8(0x1b5)][_0xf176c8(0x35c)](),this[_0xf176c8(0x227)]['forEach'](_0x569894=>_0x569894['dispose']()),this[_0xf176c8(0x227)]['clear'](),this[_0xf176c8(0x28e)][_0xf176c8(0x35c)](),this[_0xf176c8(0x255)][_0xf176c8(0x14b)]();}async[_0x4c9487(0x39a)](_0x1d6418,_0x1de91f){const _0x399b6c=_0x4c9487;if(this['_sessions']['has'](_0x1d6418))return this['_sessions'][_0x399b6c(0x203)](_0x1d6418);let _0x32af3a=this[_0x399b6c(0x23e)][_0x399b6c(0x203)](_0x1d6418);if(_0x32af3a)return _0x32af3a;let _0x5b9952=this[_0x399b6c(0x1de)](_0x1d6418,_0x1de91f);this[_0x399b6c(0x23e)]['set'](_0x1d6418,_0x5b9952);try{return await _0x5b9952;}finally{this['_pendingSessions'][_0x399b6c(0x380)](_0x1d6418);}}async['_createSession'](_0x3279c6,_0x480239){const _0x378b63=_0x4c9487;let _0x421909=await this[_0x378b63(0x2c4)](_0x3279c6,_0x480239),_0xbb92ef=this['_getSocketChannel'](_0x421909[_0x378b63(0x3a0)][_0x378b63(0x31b)]);this[_0x378b63(0x1ac)](_0xbb92ef);let _0x630c0a=this[_0x378b63(0x2dc)]['createInstance'](Ht,_0x421909,_0xbb92ef[_0x378b63(0x383)][_0x378b63(0x338)]());return this[_0x378b63(0x227)]['set'](_0x3279c6,_0x630c0a),this['_sessionChannels'][_0x378b63(0x29a)](_0x3279c6,_0xbb92ef[_0x378b63(0x24b)]),_0x630c0a;}[_0x4c9487(0x254)](_0x528ee4){const _0x1f798a=_0x4c9487;let _0x3e4167=this['_sessions'][_0x1f798a(0x203)](_0x528ee4),_0xc6213=this[_0x1f798a(0x28e)][_0x1f798a(0x203)](_0x528ee4);if(_0x3e4167&&(this[_0x1f798a(0x227)]['delete'](_0x528ee4),this[_0x1f798a(0x28e)][_0x1f798a(0x380)](_0x528ee4),_0x3e4167[_0x1f798a(0x2ac)]()),_0xc6213&&!this[_0x1f798a(0x24d)](_0xc6213)){var _0x210eb9;let _0x228dbb=this[_0x1f798a(0x1b5)][_0x1f798a(0x203)](_0xc6213);_0x228dbb==null||(_0x210eb9=_0x228dbb['socket$'][_0x1f798a(0x1ff)]())==null||_0x210eb9[_0x1f798a(0x2ac)]();}}[_0x4c9487(0x1ab)](){const _0x451b15=_0x4c9487;(this['_socketChannels'][_0x451b15(0x27f)]?[...this['_socketChannels'][_0x451b15(0x26b)]()]:[this[_0x451b15(0x399)](void 0x0)])[_0x451b15(0x1a6)](_0xa742e3=>{const _0x234dcf=_0x451b15;_0xa742e3['retryCount']=0x0,this[_0x234dcf(0x3c7)](_0xa742e3),this['_tryReconnect'](_0xa742e3);});}[_0x4c9487(0x3c7)](_0x1cfea8){const _0x1878fd=_0x4c9487;_0x1cfea8[_0x1878fd(0x2a4)]!=null&&(clearTimeout(_0x1cfea8['retryConnectingTimer']),_0x1cfea8[_0x1878fd(0x2a4)]=null);}async[_0x4c9487(0x299)](_0x385f37){const _0x41b234=_0x4c9487;var _0x162ea1,_0x151aac;let _0xf45e0d=this[_0x41b234(0x1a9)][_0x41b234(0x3c2)](L),_0x3b947f=(_0x162ea1=(_0x151aac=_0x385f37[_0x41b234(0x31b)])==null?_0xf45e0d==null?void 0x0:_0xf45e0d['collabWebSocketUrl']:_0x151aac)==null?mt:_0x162ea1,_0x3f4f7e=await this[_0x41b234(0x3c0)][_0x41b234(0x24f)](_0x3b947f);return _0x385f37[_0x41b234(0x20e)]=_0x3f4f7e,_0x3f4f7e;}async[_0x4c9487(0x1ac)](_0x249a29){const _0x1ecf5f=_0x4c9487;try{var _0x4f7289,_0x276078;let _0x2652ab=(_0x4f7289=(_0x276078=_0x249a29[_0x1ecf5f(0x383)][_0x1ecf5f(0x1ff)]())==null?_0x249a29[_0x1ecf5f(0x20e)]:_0x276078)==null?await this[_0x1ecf5f(0x299)](_0x249a29):_0x4f7289;if(_0x2652ab){var _0x35abc6;let _0x1b8c19=_0x2652ab['send'];_0x2652ab[_0x1ecf5f(0x283)]=_0x6311f3=>(_0x6311f3[_0x1ecf5f(0x172)]!==_0xe2186d['LEAVE']&&this['_rescheduleHeartbeat'](_0x249a29),_0x1b8c19[_0x1ecf5f(0x2cb)](_0x2652ab,[_0x6311f3])),(_0x35abc6=_0x249a29['socketMessageSubscription'])==null||_0x35abc6['unsubscribe'](),_0x249a29['socketMessageSubscription']=null,_0x249a29[_0x1ecf5f(0x251)]=_0x2652ab[_0x1ecf5f(0x276)][_0x1ecf5f(0x145)](_0x1d183d=>this[_0x1ecf5f(0x2b3)](_0x249a29,_0x2652ab,_0x1d183d)),_0x2652ab[_0x1ecf5f(0x187)][_0x1ecf5f(0x372)](_0x24d0ab(0x1))[_0x1ecf5f(0x145)](_0x1a6f1b=>this[_0x1ecf5f(0x220)][_0x1ecf5f(0x38c)](_0x1ecf5f(0x1c4),_0x1a6f1b)),_0x2652ab['open$'][_0x1ecf5f(0x372)](_0x24d0ab(0x1))[_0x1ecf5f(0x145)](()=>{const _0x4cd4d3=_0x1ecf5f;this[_0x4cd4d3(0x2d6)](_0x249a29,_0x2652ab);}),_0x2652ab[_0x1ecf5f(0x351)][_0x1ecf5f(0x372)](_0x24d0ab(0x1))[_0x1ecf5f(0x145)](_0x812a24=>{const _0x298389=_0x1ecf5f;this[_0x298389(0x220)][_0x298389(0x1fe)](_0x298389(0x2c2),_0x298389(0x2e3),_0x812a24),this[_0x298389(0x34b)](_0x249a29);});}}catch(_0x2fd26b){this['_logService'][_0x1ecf5f(0x38c)](_0x2fd26b),this[_0x1ecf5f(0x34b)](_0x249a29);}}[_0x4c9487(0x2d6)](_0x3db68d,_0x1acfe8){const _0x48be98=_0x4c9487;this['_logService'][_0x48be98(0x1fe)](_0x48be98(0x2c2),'socket\x20open.'),_0x1acfe8[_0x48be98(0x283)]({'cmd':_0xe2186d[_0x48be98(0x355)]}),this[_0x48be98(0x178)](_0x3db68d);}[_0x4c9487(0x143)](_0x5bf6a5){const _0x433ade=_0x4c9487;_0x5bf6a5[_0x433ade(0x288)]=!0x1,_0x5bf6a5[_0x433ade(0x20e)]=null,this[_0x433ade(0x255)]['next'](0x2),_0x5bf6a5[_0x433ade(0x383)]['next'](null),this[_0x433ade(0x341)](_0x5bf6a5),this[_0x433ade(0x30f)](_0x5bf6a5);}['_onConnectionFailed'](_0x5da889){const _0x5ce7f2=_0x4c9487;var _0x2f457e;this[_0x5ce7f2(0x143)](_0x5da889),this[_0x5ce7f2(0x24d)](_0x5da889[_0x5ce7f2(0x24b)])&&(_0x5da889[_0x5ce7f2(0x213)]<((_0x2f457e=this[_0x5ce7f2(0x1a9)]['getConfig']('RETRY_CONNECTING_MAX_COUNT'))==null?0x3:_0x2f457e)?(this[_0x5ce7f2(0x38b)][_0x5ce7f2(0x1a5)]({'id':'SOCKET_FAILED_RETRY'}),this[_0x5ce7f2(0x2b1)](_0x5da889)):this[_0x5ce7f2(0x38b)][_0x5ce7f2(0x1a5)]({'id':_0x5ce7f2(0x154)}));}[_0x4c9487(0x2b1)](_0x188769){const _0x1559a3=_0x4c9487;var _0x212672;let _0x3af75f=_0x188769[_0x1559a3(0x213)],_0x3db514=this['_configService']['getConfig'](L),_0x198649=_0x3af75f===0x0?0x0:((_0x212672=_0x3db514==null?void 0x0:_0x3db514['retryConnectingInterval'])==null?0x4e20:_0x212672)*0x2**_0x3af75f;_0x188769['retryConnectingTimer']=setTimeout(()=>{const _0x2033fd=_0x1559a3;clearTimeout(_0x188769[_0x2033fd(0x2a4)]),_0x188769[_0x2033fd(0x2a4)]=null,this[_0x2033fd(0x1ac)](_0x188769);},_0x198649),_0x188769[_0x1559a3(0x213)]+=0x1;}async[_0x4c9487(0x2c4)](_0x2692f0,_0x494dc2){const _0x5726a5=_0x4c9487;return An(_0x2692f0,_0x494dc2,await this['_adapter'][_0x5726a5(0x205)]({'unitId':_0x2692f0,'unitType':_0x494dc2}));}['_onMessage'](_0x26b94c,_0x1ee40f,_0xd65efc){const _0x271316=_0x4c9487;let {cmd:_0x28e283}=_0xd65efc;_0x28e283===_0xe2186d[_0x271316(0x355)]&&!_0x26b94c[_0x271316(0x288)]&&(_0x1ee40f[_0x271316(0x17c)]=_0xd65efc[_0x271316(0x1ea)][_0x271316(0x17c)],_0x26b94c[_0x271316(0x383)]['next'](_0x1ee40f),this[_0x271316(0x255)]['next'](0x3),_0x26b94c[_0x271316(0x288)]=!0x0,_0x26b94c['candidateSocket']=null),_0x28e283===_0xe2186d[_0x271316(0x1bb)]&&this[_0x271316(0x341)](_0x26b94c),this['_rescheduleHeartbeat'](_0x26b94c);}[_0x4c9487(0x24d)](_0x46ca63){const _0x40ea11=_0x4c9487;return[...this[_0x40ea11(0x28e)][_0x40ea11(0x26b)]()][_0x40ea11(0x1f6)](_0x17d737=>_0x17d737===_0x46ca63);}[_0x4c9487(0x399)](_0x1ea6f6){const _0x363434=_0x4c9487;let _0x3d77bc=_0x1ea6f6==null?'':_0x1ea6f6,_0x2f4b85=this[_0x363434(0x1b5)]['get'](_0x3d77bc);if(_0x2f4b85)return _0x2f4b85;let _0x3ddc9e={'endpointKey':_0x3d77bc,'endpoint':_0x1ea6f6,'socket$':new _0x1adaf6(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x363434(0x1b5)]['set'](_0x3d77bc,_0x3ddc9e),_0x3ddc9e;}[_0x4c9487(0x178)](_0x2d7afa){const _0x471a5d=_0x4c9487;var _0x4ac31f;this[_0x471a5d(0x30f)](_0x2d7afa),_0x2d7afa[_0x471a5d(0x1aa)]=setTimeout(()=>this['_sendHeartbeat'](_0x2d7afa),(_0x4ac31f=this[_0x471a5d(0x1a9)][_0x471a5d(0x3c2)]('HEARTBEAT_INTERVAL'))==null?0x7530:_0x4ac31f);}[_0x4c9487(0x1b6)](_0x2d13ad){const _0x2ef89a=_0x4c9487;_0x2d13ad[_0x2ef89a(0x383)][_0x2ef89a(0x1ff)]()[_0x2ef89a(0x283)]({'cmd':_0xe2186d['HEARTBEAT']}),this['_waitForHeartbeatResponse'](_0x2d13ad);}['_waitForHeartbeatResponse'](_0x195142){const _0x1e09db=_0x4c9487;var _0x50126d;_0x195142[_0x1e09db(0x21d)]=setTimeout(()=>this[_0x1e09db(0x34b)](_0x195142),(_0x50126d=this[_0x1e09db(0x1a9)][_0x1e09db(0x3c2)](_0x1e09db(0x366)))==null?vt:_0x50126d);}['_clearHeartbeatTimer'](_0x5cf212){const _0x1b2531=_0x4c9487;_0x5cf212[_0x1b2531(0x1aa)]!=null&&(clearTimeout(_0x5cf212[_0x1b2531(0x1aa)]),_0x5cf212[_0x1b2531(0x1aa)]=null);}['_clearTimeoutTimer'](_0x4851f5){_0x4851f5['timeoutTimer']!=null&&(clearTimeout(_0x4851f5['timeoutTimer']),_0x4851f5['timeoutTimer']=null);}};jn=V([B(0x0,_0x25ad33(_0x4f91d7)),B(0x1,_0x2260fd),B(0x2,_0x408d6e),B(0x3,Tn),B(0x4,_0x25ad33(z)),B(0x5,On),B(0x6,_0x129a9b(Sn))],jn);let Mn=class extends _0x320367{constructor(_0x5cba5c,_0x143202,_0x562358,_0x3163ee){const _0x281142=_0x4c9487;var _0x2d0456;super(),this[_0x281142(0x2dc)]=_0x5cba5c,this[_0x281142(0x320)]=_0x143202,this['_configService']=_0x562358,this[_0x281142(0x1b3)]=_0x3163ee,R(this,_0x281142(0x3c9),new Map()),R(this,_0x281142(0x352),new _0x4f22d9()),R(this,'entityInit$',this[_0x281142(0x352)][_0x281142(0x338)]()),((_0x2d0456=this[_0x281142(0x1a9)]['getConfig']('collaboration-client.config'))==null?void 0x0:_0x2d0456[_0x281142(0x243)])!==!0x1&&this[_0x281142(0x2be)]();}['dispose'](){const _0x4f850a=_0x4c9487;super['dispose'](),this[_0x4f850a(0x3c9)][_0x4f850a(0x1a6)](_0x9a8096=>_0x9a8096[_0x4f850a(0x21e)]()),this[_0x4f850a(0x3c9)]['clear']();}[_0x4c9487(0x188)](_0x28e7e9){const _0x241cc7=_0x4c9487;var _0x5b9985;return(_0x5b9985=this[_0x241cc7(0x3c9)][_0x241cc7(0x203)](_0x28e7e9))==null?null:_0x5b9985;}['getCollabEntity$'](_0x4c2c98){const _0x327441=_0x4c9487;let _0x46281f=this[_0x327441(0x188)](_0x4c2c98);return _0x46281f?_0x138493(_0x46281f):this['_entityInit$']['pipe'](_0x102c7f(_0x2f165b=>_0x2f165b[_0x327441(0x1cc)]===_0x4c2c98));}[_0x4c9487(0x13f)](_0x4d1f21){const _0x85568e=_0x4c9487;return _0xc03eb8(this[_0x85568e(0x307)](_0x4d1f21)['pipe'](_0x324a4a(()=>void 0x0)));}['_init'](){const _0x5594d8=_0x4c9487;this[_0x5594d8(0x1b3)][_0x5594d8(0x374)](_0x672a2f[_0x5594d8(0x183)])['pipe'](_0x13c2c5(this[_0x5594d8(0x30c)]),_0x5f5826(0x10))[_0x5594d8(0x145)](async _0x265ac8=>{const _0x49cdd0=_0x5594d8;let _0x24eb13=_0x265ac8[_0x49cdd0(0x315)][_0x49cdd0(0x25b)](),_0x470e74=await this['_startCollaboration'](_0x24eb13,_0x672a2f[_0x49cdd0(0x183)]);this[_0x49cdd0(0x3c9)][_0x49cdd0(0x29a)](_0x24eb13,_0x470e74);}),this[_0x5594d8(0x1b3)]['getTypeOfUnitAdded$'](_0x672a2f[_0x5594d8(0x2ca)])[_0x5594d8(0x372)](_0x13c2c5(this[_0x5594d8(0x30c)]),_0x5f5826(0x10))[_0x5594d8(0x372)](_0x102c7f(_0x24b66e=>!_0x24b66e[_0x5594d8(0x315)]['getUnitId']()[_0x5594d8(0x140)]('__')))[_0x5594d8(0x145)](async _0x115a79=>{const _0x51df05=_0x5594d8;let _0xa58301=_0x115a79['unit'][_0x51df05(0x25b)](),_0x2eec4f=await this['_startCollaboration'](_0xa58301,_0x672a2f['UNIVER_DOC']);this[_0x51df05(0x3c9)]['set'](_0xa58301,_0x2eec4f);}),this['_univerInstanceService'][_0x5594d8(0x374)](_0x672a2f['UNIVER_SLIDE'])['pipe'](_0x13c2c5(this[_0x5594d8(0x30c)]),_0x5f5826(0x10))[_0x5594d8(0x145)](async _0x1f6051=>{const _0x23b19d=_0x5594d8;let _0x1019ec=_0x1f6051[_0x23b19d(0x315)][_0x23b19d(0x25b)](),_0x23f578=await this[_0x23b19d(0x2df)](_0x1019ec,_0x672a2f[_0x23b19d(0x20d)]);this[_0x23b19d(0x3c9)][_0x23b19d(0x29a)](_0x1019ec,_0x23f578);}),this[_0x5594d8(0x1b3)][_0x5594d8(0x374)](_0x672a2f[_0x5594d8(0x230)])[_0x5594d8(0x372)](_0x13c2c5(this['dispose$']),_0x5f5826(0x10))[_0x5594d8(0x145)](async _0x4655ed=>{const _0x3a5360=_0x5594d8;let _0x1bcea1=_0x4655ed[_0x3a5360(0x315)]['getUnitId'](),_0x5b80f2=await this[_0x3a5360(0x2df)](_0x1bcea1,_0x672a2f[_0x3a5360(0x230)]);this[_0x3a5360(0x3c9)][_0x3a5360(0x29a)](_0x1bcea1,_0x5b80f2);}),this['_univerInstanceService'][_0x5594d8(0x374)](_0x672a2f[_0x5594d8(0x2a3)])[_0x5594d8(0x372)](_0x13c2c5(this['dispose$']),_0x5f5826(0x10))['subscribe'](async _0x16c4b0=>{const _0x49f546=_0x5594d8;let _0x573a13=_0x16c4b0['unit']['getUnitId'](),_0x2d40a1=await this[_0x49f546(0x2df)](_0x573a13,_0x672a2f[_0x49f546(0x2a3)]);this[_0x49f546(0x3c9)][_0x49f546(0x29a)](_0x573a13,_0x2d40a1);}),_0x382563(this['_univerInstanceService'][_0x5594d8(0x2e4)](_0x672a2f['UNIVER_SHEET']),this[_0x5594d8(0x1b3)][_0x5594d8(0x2e4)](_0x672a2f[_0x5594d8(0x2ca)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x672a2f[_0x5594d8(0x20d)]),this[_0x5594d8(0x1b3)][_0x5594d8(0x2e4)](_0x672a2f[_0x5594d8(0x230)]),this[_0x5594d8(0x1b3)][_0x5594d8(0x2e4)](_0x672a2f['UNIVER_BASE']))[_0x5594d8(0x372)](_0x13c2c5(this[_0x5594d8(0x30c)]))[_0x5594d8(0x145)](_0xdddcfa=>{const _0x7464dd=_0x5594d8;let _0x106d0f=_0xdddcfa[_0x7464dd(0x25b)](),_0x421e79=this[_0x7464dd(0x3c9)][_0x7464dd(0x203)](_0x106d0f);_0x421e79&&(_0x421e79[_0x7464dd(0x21e)](),this['_entities'][_0x7464dd(0x380)](_0x106d0f));});}async[_0x4c9487(0x2df)](_0xb0ccb8,_0x427406){const _0x259bd2=_0x4c9487;let _0x15e8e8=await this[_0x259bd2(0x320)][_0x259bd2(0x39a)](_0xb0ccb8),_0x3d3be1=this['_injector'][_0x259bd2(0x2ed)](this[_0x259bd2(0x13e)](_0x427406),_0xb0ccb8,_0x427406,_0x15e8e8);return await _0x3d3be1[_0x259bd2(0x2cf)](),this[_0x259bd2(0x352)][_0x259bd2(0x1b0)](_0x3d3be1),_0x3d3be1;}[_0x4c9487(0x13e)](_0x41b741){const _0x4ac0bc=_0x4c9487;switch(_0x41b741){case _0x672a2f['UNIVER_DOC']:return _n;case _0x672a2f['UNIVER_SHEET']:return yn;case _0x672a2f['UNIVER_SLIDE']:return bn;case _0x672a2f[_0x4ac0bc(0x230)]:return xn;case _0x672a2f[_0x4ac0bc(0x2a3)]:return vn;default:throw Error(_0x4ac0bc(0x354)+_0x41b741);}}};Mn=V([B(0x0,_0x25ad33(_0x4f91d7)),B(0x1,_0x25ad33(jn)),B(0x2,_0x408d6e),B(0x3,_0x566455)],Mn);var Nn='@univerjs-pro/collaboration-client',Pn='1.0.0-alpha.6';let Fn=class extends _0x278d2d{constructor(_0x128a7c,_0x3de14c){super(),this['_univerInstanceService']=_0x128a7c,this['_configService']=_0x3de14c,this['_init']();}[_0x4c9487(0x2be)](){const _0x48b338=_0x4c9487;this[_0x48b338(0x35d)](this[_0x48b338(0x1b3)][_0x48b338(0x2a8)]['subscribe'](()=>{const _0x4c4fdc=_0x48b338;var _0x5d2ebd;let _0x111827=this['_univerInstanceService']['getFocusedUnit'](),_0x31421a=(_0x5d2ebd=this[_0x4c4fdc(0x1a9)]['getConfig']('DEFAULT_FILE_NAME'))==null?_0x4c4fdc(0x318):_0x5d2ebd;_0x111827 instanceof _0x147f78&&(_0x31421a=_0x111827[_0x4c4fdc(0x30b)]),document[_0x4c4fdc(0x309)]=_0x31421a;}));}};Fn=V([B(0x0,_0x566455),B(0x1,_0x408d6e)],Fn);let In=function(_0x3663d5){const _0x2a36a3=_0x4c9487;return _0x3663d5['URL']=_0x2a36a3(0x168),_0x3663d5[_0x2a36a3(0x22f)]=_0x2a36a3(0x22f),_0x3663d5[_0x2a36a3(0x33c)]=_0x2a36a3(0x33c),_0x3663d5;}({});const Ln=_0x354efe(_0x4c9487(0x189));let Rn=class{constructor(_0x4fe075,_0x4ad60e,_0x469c67){const _0x6c893=_0x4c9487;this[_0x6c893(0x16b)]=_0x4fe075,this[_0x6c893(0x1a9)]=_0x4ad60e,this[_0x6c893(0x1b3)]=_0x469c67;}['getUploadOptions'](){var _0x29ac79;return(_0x29ac79=this['_getConfig']()['attachment'])==null?{}:_0x29ac79;}async['saveAttachment'](_0x2fc4de){const _0x322931=_0x4c9487;let _0x4b6289=this[_0x322931(0x31c)]();if(zn(_0x2fc4de,_0x4b6289),_0x4b6289[_0x322931(0x209)])return _0x4b6289[_0x322931(0x209)](_0x2fc4de);let _0x31e9ca=await this['_upload'](_0x2fc4de);return{'id':_0x31e9ca,'name':_0x2fc4de[_0x322931(0x30b)],'mimeType':_0x2fc4de['type'],'size':_0x2fc4de[_0x322931(0x27f)],'sourceType':'UUID','source':_0x31e9ca};}async['_upload'](_0x24ad5c){const _0x26631d=_0x4c9487;let _0xb72bb9=this['_univerInstanceService'][_0x26631d(0x33e)](),_0x475dbe=_0xb72bb9==null?void 0x0:_0xb72bb9[_0x26631d(0x25b)]();if(!_0x475dbe)throw Error(_0x26631d(0x22e));let _0x163e2e=new FormData();_0x163e2e[_0x26631d(0x164)]('file',_0x24ad5c);let _0x23d5d6=this['_getUploadFileURL']()+'?size='+_0x24ad5c[_0x26631d(0x27f)][_0x26631d(0x1f1)]()+_0x26631d(0x14f)+_0x6655af[_0x26631d(0x153)]+_0x26631d(0x256)+encodeURIComponent(_0x475dbe),_0x576cd5=(await this[_0x26631d(0x16b)][_0x26631d(0x18c)](_0x23d5d6,{'body':_0x163e2e}))['body'][_0x26631d(0x262)];if(typeof _0x576cd5!=_0x26631d(0x32e)||!_0x576cd5)throw Error(_0x26631d(0x248));return _0x576cd5;}['_getUploadFileURL'](){const _0x1d710d=_0x4c9487;var _0x3c9d55;return(_0x3c9d55=this[_0x1d710d(0x1bf)]()[_0x1d710d(0x18b)])==null?_0x1d710d(0x3a8):_0x3c9d55;}[_0x4c9487(0x1bf)](){const _0x1f0ad7=_0x4c9487;var _0x4ad2c3;return(_0x4ad2c3=this[_0x1f0ad7(0x1a9)][_0x1f0ad7(0x3c2)](_0x1f0ad7(0x39f)))==null?{}:_0x4ad2c3;}};Rn=V([B(0x0,_0x25ad33(_0x38ff13)),B(0x1,_0x25ad33(_0x408d6e)),B(0x2,_0x25ad33(_0x566455))],Rn);function zn(_0x2f0868,_0x34d793){const _0x937299=_0x4c9487;var _0x34cc23;if(_0x34d793[_0x937299(0x148)]!=null&&_0x2f0868['size']>_0x34d793[_0x937299(0x148)])throw Error(_0x937299(0x1c3));if((_0x34cc23=_0x34d793[_0x937299(0x152)])!=null&&_0x34cc23[_0x937299(0x2ba)]&&!_0x34d793[_0x937299(0x152)][_0x937299(0x1f6)](_0x29ae15=>_0x2f0868[_0x937299(0x385)]===_0x29ae15||_0x2f0868[_0x937299(0x30b)][_0x937299(0x360)](_0x29ae15)||_0x29ae15[_0x937299(0x360)]('/*')&&_0x2f0868[_0x937299(0x385)][_0x937299(0x140)](_0x29ae15[_0x937299(0x216)](0x0,-0x1))))throw Error(_0x937299(0x2b5));}let Bn=class{constructor(_0x385dda,_0x2d4472,_0x5d8da7){const _0x383ca5=_0x4c9487;this[_0x383ca5(0x1a9)]=_0x385dda,this[_0x383ca5(0x16b)]=_0x2d4472,this[_0x383ca5(0x157)]=_0x5d8da7,this[_0x383ca5(0x2cf)]();}[_0x4c9487(0x2cf)](){const _0x510f5b=_0x4c9487;this['_httpService'][_0x510f5b(0x179)]({'priority':0x1,'interceptor':(_0x53a3dc,_0x42efdb)=>_0x42efdb(_0x53a3dc)[_0x510f5b(0x372)](_0xa7bc3c(async _0x472c83=>{const _0x506415=_0x510f5b;let _0x129320=_0x472c83;if(_0x129320['status']===0x191){if(typeof window>'u')throw Error(_0x506415(0x162));if(window[_0x506415(0x165)](this[_0x506415(0x157)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x4b17a2=window[_0x506415(0x2b7)](window[_0x506415(0x1d5)][_0x506415(0x1dd)]);window['location']['href']=this[_0x506415(0x378)]()+_0x506415(0x1bc)+_0x4b17a2;}}return _0x129320;}))});}[_0x4c9487(0x378)](){const _0x52615a=_0x4c9487;var _0x313a86;let _0x389d11=this[_0x52615a(0x1a9)][_0x52615a(0x3c2)](L);return(_0x313a86=_0x389d11==null?void 0x0:_0x389d11[_0x52615a(0x3b2)])==null?_0x52615a(0x2fc):_0x313a86;}};Bn=V([B(0x0,_0x408d6e),B(0x1,_0x25ad33(_0x38ff13)),B(0x2,_0x25ad33(_0x552e52))],Bn);let Vn=class extends _0x278d2d{constructor(_0x59ad33,_0x132dc3){const _0x40542d=_0x4c9487;super(),this['_HTTPService']=_0x59ad33,this[_0x40542d(0x1a9)]=_0x132dc3,R(this,_0x40542d(0x2ae),!0x1),this[_0x40542d(0x2fd)]();}['_initMergeInterceptor'](){const _0x1dc2bf=_0x4c9487;let _0x250b7d=this;this[_0x1dc2bf(0x35d)](this['_HTTPService'][_0x1dc2bf(0x179)]({'priority':0x3e7,'interceptor':_0x35179b({'isMatch'(_0xb11b40){const _0x41a60c=_0x1dc2bf;var _0x3cd3a8;if(_0xb11b40[_0x41a60c(0x31e)]==='POST'&&(_0x3cd3a8=_0xb11b40['requestParams'])!=null&&_0x3cd3a8[_0x41a60c(0x311)]){let {objectID:_0x105752,objectType:_0x152867}=_0xb11b40[_0x41a60c(0x1c0)]['body']||{};if(!_0x105752||_0x152867===void 0x0)return!0x1;let _0x4dbe5d=_0x250b7d['_getAPIPrefixPath']()+'/'+_0x152867+'/object/'+_0x105752+_0x41a60c(0x32c);if(_0xb11b40['url']===_0x4dbe5d)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4a2460){const _0x5ac183=_0x1dc2bf;var _0x50782d;return(_0x50782d=_0x4a2460[_0x5ac183(0x1c0)])==null?void 0x0:_0x50782d['body'];},'mergeParamsToRequest'(_0x26618b,_0x40c4a5){const _0x53dec6=_0x1dc2bf;let _0x4b99a4=_0x250b7d[_0x53dec6(0x293)]()+_0x53dec6(0x22a),_0x37dd44=_0x26618b['reduce']((_0xe028d,_0x19d5d6)=>{const _0x5e8ac0=_0x53dec6;let {unitID:_0x2a6b7e,objectID:_0x40ea71,objectType:_0x571531,actions:_0x556c63}=_0x19d5d6;return _0xe028d[_0x2a6b7e]||(_0xe028d[_0x2a6b7e]={}),_0xe028d[_0x2a6b7e][_0x40ea71]||(_0xe028d[_0x2a6b7e][_0x40ea71]={'objectID':_0x40ea71,'objectType':_0x571531,'actions':[]}),_0xe028d[_0x2a6b7e][_0x40ea71][_0x5e8ac0(0x278)]['push'](..._0x556c63),_0xe028d;},{}),_0xb7328b=[];for(let _0x1977b3 in _0x37dd44)for(let _0x4dcbf8 in _0x37dd44[_0x1977b3]){let {actions:_0x548735,objectType:_0x520491}=_0x37dd44[_0x1977b3][_0x4dcbf8],_0x3fb487=[...new Set(_0x548735)];_0xb7328b[_0x53dec6(0x36c)]({'unitID':_0x1977b3,'objectID':_0x4dcbf8,'objectType':_0x520491,'actions':_0x3fb487});}return new _0x110090(_0x53dec6(0x37e),_0x4b99a4,{'headers':_0x40c4a5[_0x53dec6(0x146)],'withCredentials':_0x40c4a5[_0x53dec6(0x3bc)],'responseType':_0x40c4a5[_0x53dec6(0x249)],'body':{'requests':_0xb7328b}});}},{'distributeResult'(_0x31e589,_0x1c09e6){const _0x4a782d=_0x1dc2bf;let {objectActions:_0x115b99}=_0x31e589;return _0x1c09e6[_0x4a782d(0x1e6)](_0x2a5395=>{const _0x371418=_0x4a782d;let {unitID:_0x471d4e,objectID:_0x3050cf,actions:_0x36e8b9}=_0x2a5395,_0x5e25d3=_0x115b99[_0x371418(0x328)](_0x3ec284=>_0x3ec284['unitID']===_0x471d4e&&_0x3ec284['objectID']===_0x3050cf);return{'config':_0x2a5395,'result':{'actions':_0x36e8b9[_0x371418(0x1e6)](_0x1d35d2=>_0x5e25d3==null?void 0x0:_0x5e25d3[_0x371418(0x278)][_0x371418(0x328)](_0xc876b3=>_0xc876b3['action']===_0x1d35d2))[_0x371418(0x211)](_0x18f3f0=>!!_0x18f3f0),'error':_0x31e589['error']}};});}})}));}['_getAPIPrefixPath'](){const _0x4e265e=_0x4c9487;var _0x262933;let _0x17756d=this[_0x4e265e(0x1a9)][_0x4e265e(0x3c2)](L);return(_0x262933=_0x17756d==null?void 0x0:_0x17756d[_0x4e265e(0x375)])==null?_0x4e265e(0x204):_0x262933;}async['create'](_0x5abb1f){const _0x32214b=_0x4c9487;let _0xba5051=this[_0x32214b(0x293)]()+'/'+_0x5abb1f[_0x32214b(0x1d1)]+_0x32214b(0x267);return(await this[_0x32214b(0x1f4)][_0x32214b(0x18c)](_0xba5051,{'body':_0x5abb1f}))[_0x32214b(0x311)]['objectID']||'';}async[_0x4c9487(0x2a7)](_0x542f85){const _0x46f702=_0x4c9487;let _0x4a5ccd=this['_getAPIPrefixPath']()+_0x46f702(0x31f);return(await this['_HTTPService'][_0x46f702(0x18c)](_0x4a5ccd,{'body':_0x542f85}))[_0x46f702(0x311)][_0x46f702(0x206)];}async[_0x4c9487(0x1d9)](_0x2e7e56){const _0x138580=_0x4c9487;var _0x191b00;let _0x167cc3=this[_0x138580(0x293)]()+'/'+_0x2e7e56[_0x138580(0x1d1)]+_0x138580(0x228)+_0x2e7e56[_0x138580(0x397)],_0x1f46e8=await this[_0x138580(0x1f4)][_0x138580(0x38d)](_0x167cc3,{'body':_0x2e7e56});if((_0x1f46e8==null||(_0x191b00=_0x1f46e8[_0x138580(0x311)])==null||(_0x191b00=_0x191b00[_0x138580(0x38c)])==null?void 0x0:_0x191b00[_0x138580(0x250)])!==0x1)throw Error(_0x138580(0x224));}async['allowed'](_0xf911ac){const _0xf69817=_0x4c9487;let _0x552fc8=this[_0xf69817(0x293)]()+'/'+_0xf911ac['objectType']+_0xf69817(0x228)+_0xf911ac[_0xf69817(0x397)]+'/allowed';return(await this[_0xf69817(0x1f4)]['post'](_0x552fc8,{'body':_0xf911ac}))[_0xf69817(0x311)][_0xf69817(0x278)];}async[_0x4c9487(0x212)](_0x9c7c5e){const _0x135f80=_0x4c9487;let _0x21d41e=this[_0x135f80(0x293)]()+_0x135f80(0x22a);return(await this[_0x135f80(0x1f4)]['post'](_0x21d41e,{'body':{'requests':_0x9c7c5e}}))['body']['objectActions'];}async['listRoles'](_0x5b09a8){const _0x2f3f95=_0x4c9487;let _0x37cd44=this[_0x2f3f95(0x293)]()+'/'+_0x5b09a8[_0x2f3f95(0x1d1)]+_0x2f3f95(0x2a5),_0x63612b=await this[_0x2f3f95(0x1f4)][_0x2f3f95(0x18c)](_0x37cd44,{'body':_0x5b09a8});return{'roles':_0x63612b[_0x2f3f95(0x311)]['roles'],'actions':_0x63612b[_0x2f3f95(0x311)][_0x2f3f95(0x278)]};}async[_0x4c9487(0x16a)](_0x22de07){const _0x265b36=_0x4c9487;let _0x4bbe24=this['_getAPIPrefixPath']()+_0x265b36(0x244);await this[_0x265b36(0x1f4)][_0x265b36(0x380)](_0x4bbe24,{'params':{'collaboratorID':_0x22de07['collaboratorID'],'objectID':_0x22de07['objectID'],'unitID':_0x22de07[_0x265b36(0x1cc)]}});}async[_0x4c9487(0x21c)](_0x31cfcc){const _0x5dbe2e=_0x4c9487;let _0x45b8ad=this[_0x5dbe2e(0x293)]()+_0x5dbe2e(0x244);await this['_HTTPService'][_0x5dbe2e(0x1fc)](_0x45b8ad,{'body':_0x31cfcc});}async['createCollaborator'](_0x2c9fc7){const _0x5358ce=_0x4c9487;let _0x4ac878=this['_getAPIPrefixPath']()+_0x5358ce(0x244);await this['_HTTPService'][_0x5358ce(0x18c)](_0x4ac878,{'body':_0x2c9fc7});}async[_0x4c9487(0x2de)](_0x257b55){const _0x39a60a=_0x4c9487;var _0x1e7c0f;let _0x5ac7fb=this[_0x39a60a(0x293)]()+_0x39a60a(0x244),_0xced22c=await this[_0x39a60a(0x1f4)][_0x39a60a(0x203)](_0x5ac7fb,{'params':{'objectID':_0x257b55[_0x39a60a(0x397)],'unitID':_0x257b55[_0x39a60a(0x1cc)]}});return this[_0x39a60a(0x36a)]((_0x1e7c0f=_0xced22c[_0x39a60a(0x311)]['cfgEnableObjInherit'])==null?!0x1:_0x1e7c0f),_0xced22c[_0x39a60a(0x311)]['collaborators'];}async['putCollaborators'](_0x30f64d){const _0x52ff77=_0x4c9487;let _0x550c70=this[_0x52ff77(0x293)]()+_0x52ff77(0x244);await this[_0x52ff77(0x1f4)][_0x52ff77(0x38d)](_0x550c70,{'body':_0x30f64d});}['setCfgEnableObjInherit'](_0xf61334){const _0x1b1c77=_0x4c9487;this[_0x1b1c77(0x2ae)]=_0xf61334;}[_0x4c9487(0x236)](){const _0x3f5c6f=_0x4c9487;return this[_0x3f5c6f(0x2ae)];}};Vn=V([B(0x0,_0x25ad33(_0x38ff13)),B(0x1,_0x25ad33(_0x408d6e))],Vn);function Hn(_0x25c0d1){const _0x418887=_0x4c9487;let _0x52d29b=atob(_0x25c0d1),_0x2eef27=new Uint8Array(_0x52d29b[_0x418887(0x2ba)]);for(let _0xcd9fff=0x0;_0xcd9fff<_0x52d29b[_0x418887(0x2ba)];_0xcd9fff++)_0x2eef27[_0xcd9fff]=_0x52d29b['charCodeAt'](_0xcd9fff);return _0x2eef27;}function Un(_0x164077){const _0xd0c2d=_0x4c9487;let _0x3d47b3='';for(let _0xd4ca84=0x0;_0xd4ca84<_0x164077[_0xd0c2d(0x2ba)];_0xd4ca84++)_0x3d47b3+=String['fromCharCode'](_0x164077[_0xd4ca84]);return btoa(_0x3d47b3);}function Wn(_0x25cdbf,_0x345ee8){const _0x5a9ebe=_0x4c9487;let _0xf4484=Hn(_0x345ee8),_0xb8443f=_0x3856c0(0x10);return Un(_0xe0dbc4(_0xb8443f,_0x4e8d01(_0xf4484,_0xb8443f)[_0x5a9ebe(0x13a)](_0x813b4e(_0x25cdbf))));}function Gn(){const _0x53d5c5=_0x4c9487;let _0x565c1d=_0x4aa64d()[_0x53d5c5(0x302)];if(typeof window<'u'&&window[_0x53d5c5(0x1d5)]!==void 0x0&&_0x565c1d){let _0x3fa952={'time':Math[_0x53d5c5(0x21b)](Date[_0x53d5c5(0x326)]()/0x3e8),'domain':location['hostname']};return Wn(JSON[_0x53d5c5(0x2a2)](_0x3fa952),_0x565c1d);}}let Kn=class{constructor(_0x463180){const _0x3206ef=_0x4c9487;this[_0x3206ef(0x16b)]=_0x463180,this[_0x3206ef(0x1ee)]();}[_0x4c9487(0x1ee)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x51f153,_0x5809f5)=>{const _0x17727e=_0x45c3;let _0x29aec3=Gn();return _0x29aec3&&_0x51f153['headers'][_0x17727e(0x29a)](_0x17727e(0x1ae),_0x29aec3),_0x5809f5(_0x51f153);}});}};Kn=V([B(0x0,_0x25ad33(_0x38ff13))],Kn);let qn=class extends _0x320367{constructor(_0x2c6480,_0x558ea8,_0x3e8b0c){const _0x523f31=_0x4c9487;super(),this['_logService']=_0x2c6480,this[_0x523f31(0x16e)]=_0x558ea8,this[_0x523f31(0x191)]=_0x3e8b0c,R(this,_0x523f31(0x181),new _0x1adaf6(null)),R(this,_0x523f31(0x16f),new _0x4f22d9()),R(this,_0x523f31(0x1f3),this[_0x523f31(0x181)]['asObservable']()),R(this,_0x523f31(0x1f7),this[_0x523f31(0x16f)][_0x523f31(0x338)]());}[_0x4c9487(0x21e)](){const _0x22fcf3=_0x4c9487;super['dispose'](),this[_0x22fcf3(0x16f)]['complete'](),this['_unitInfo$'][_0x22fcf3(0x14b)]();}async[_0x4c9487(0x1a3)](_0x34fec8,_0xd69a2c,_0xbe5e25,_0x2c2a70){const _0x5ec9ca=_0x4c9487;this[_0x5ec9ca(0x181)][_0x5ec9ca(0x1b0)]({'unitId':_0x34fec8,'type':_0xd69a2c,'subUnitId':_0x2c2a70});let _0x4c00aa=null;switch(_0xd69a2c){case _0x672a2f[_0x5ec9ca(0x183)]:_0x4c00aa=await this[_0x5ec9ca(0x16e)][_0x5ec9ca(0x14e)](_0x34fec8,_0xbe5e25,void 0x0,{'initialSubUnitId':_0x2c2a70});break;case _0x672a2f[_0x5ec9ca(0x2ca)]:_0x4c00aa=await this[_0x5ec9ca(0x16e)][_0x5ec9ca(0x34e)](_0x34fec8,_0xbe5e25);break;case _0x672a2f[_0x5ec9ca(0x20d)]:_0x4c00aa=await this['_snapshotService'][_0x5ec9ca(0x377)](_0x34fec8,_0xbe5e25);break;case _0x672a2f[_0x5ec9ca(0x230)]:_0x4c00aa=await this[_0x5ec9ca(0x16e)][_0x5ec9ca(0x18d)](_0x34fec8,_0xbe5e25);break;case _0x672a2f[_0x5ec9ca(0x2a3)]:_0x4c00aa=await this[_0x5ec9ca(0x16e)][_0x5ec9ca(0x336)](_0x34fec8,_0xbe5e25);break;default:this[_0x5ec9ca(0x220)][_0x5ec9ca(0x38c)](_0x5ec9ca(0x2d8),_0x5ec9ca(0x2c8));break;}return _0x4c00aa&&this[_0x5ec9ca(0x16f)]['next'](_0x4c00aa),_0x4c00aa;}async[_0x4c9487(0x2ef)](_0x2e1aee,_0x3956ae,_0x546e9f){const _0x54f800=_0x4c9487;var _0x5e68a7;this['_unitInfo$'][_0x54f800(0x1b0)]({'unitId':_0x2e1aee,'type':_0x3956ae,'subUnitId':_0x546e9f});let _0x5a5d98=0x0,_0x126dc8=await((_0x5e68a7=this[_0x54f800(0x191)])==null?void 0x0:_0x5e68a7['loadOfflineData'](_0x2e1aee));return _0x126dc8&&(_0x126dc8[_0x54f800(0x1cf)]||_0x126dc8[_0x54f800(0x36b)][_0x54f800(0x2ba)]!==0x0)&&(_0x5a5d98=_0x126dc8[_0x54f800(0x23c)]),_0x5a5d98===0x0&&this['_logService'][_0x54f800(0x1fe)](_0x54f800(0x2d8),_0x54f800(0x3b1)),this[_0x54f800(0x1a3)](_0x2e1aee,_0x3956ae,_0x5a5d98,_0x546e9f);}};qn=V([B(0x0,_0x2260fd),B(0x1,_0x25ad33(_0x2b310f)),B(0x2,_0x129a9b(U))],qn);let Jn=class{constructor(_0x1428d2,_0x31dc2a,_0x291203){const _0x399422=_0x4c9487;this[_0x399422(0x16b)]=_0x1428d2,this[_0x399422(0x1a9)]=_0x31dc2a,this[_0x399422(0x1b3)]=_0x291203,R(this,_0x399422(0x340),0x0),R(this,_0x399422(0x1cd),new _0x4f22d9()),R(this,_0x399422(0x23b),this[_0x399422(0x1cd)]),R(this,_0x399422(0x2e7),new Map());}[_0x4c9487(0x232)](_0x350947){const _0x28e31e=_0x4c9487;this['_waitCount']=_0x350947,this[_0x28e31e(0x1cd)]['next'](_0x350947);}[_0x4c9487(0x3cb)](_0x5c4aee,_0xbc675f){const _0x4f8df1=_0x4c9487;if(_0xbc675f===_0x1a7c90[_0x4f8df1(0x33c)]){let _0x415ec8=new Image();return _0x415ec8['src']=_0x5c4aee,_0x415ec8;}return this[_0x4f8df1(0x2e7)][_0x4f8df1(0x203)](_0x5c4aee);}[_0x4c9487(0x1f8)](_0x168341,_0x5f4f76,_0x7ee99){const _0x35a2a4=_0x4c9487;_0x5f4f76===_0x1a7c90['BASE64']||_0x7ee99==null||this[_0x35a2a4(0x2e7)][_0x35a2a4(0x29a)](_0x168341,_0x7ee99);}async[_0x4c9487(0x235)](_0x2b6fb6){const _0x3f4173=_0x4c9487;try{let _0x52203c=this[_0x3f4173(0x26a)](this[_0x3f4173(0x231)](),''+_0x2b6fb6),_0x5da269=(await this['_httpService']['get'](_0x52203c))['body'];if(_0x5da269[_0x3f4173(0x38c)]&&_0x5da269[_0x3f4173(0x38c)][_0x3f4173(0x250)]===_0x29a0fd['OK']){let _0x106b46=_0x56206f(_0x5da269['url'],this[_0x3f4173(0x2ee)]());return Promise[_0x3f4173(0x1d8)](_0x106b46);}return Promise[_0x3f4173(0x27a)](_0x5da269[_0x3f4173(0x38c)]);}catch(_0x18f38b){return Promise[_0x3f4173(0x27a)](_0x18f38b);}}async['saveImage'](_0x13999){const _0x50b4eb=_0x4c9487;let _0xe4b4f5='';if(!_0x4f6b15[_0x50b4eb(0x22c)](_0x13999[_0x50b4eb(0x385)]))return this[_0x50b4eb(0x39e)](),Promise[_0x50b4eb(0x27a)](Error(_0x474d91[_0x50b4eb(0x26c)]));if(_0x13999[_0x50b4eb(0x27f)]>_0x258551())return this[_0x50b4eb(0x39e)](),Promise[_0x50b4eb(0x27a)](Error(_0x474d91[_0x50b4eb(0x3af)]));try{let _0x51a72d=new FormData();_0x51a72d[_0x50b4eb(0x164)](_0x50b4eb(0x337),_0x13999);let _0x41858e=this[_0x50b4eb(0x1b3)][_0x50b4eb(0x33e)](),_0x9f9683=_0x41858e==null?void 0x0:_0x41858e[_0x50b4eb(0x25b)]();if(!_0x9f9683)throw Error(_0x50b4eb(0x170));let _0x356aab=this[_0x50b4eb(0x329)]()+_0x50b4eb(0x2f7)+_0x13999[_0x50b4eb(0x27f)][_0x50b4eb(0x1f1)]()+_0x50b4eb(0x14f)+_0x6655af[_0x50b4eb(0x153)]+_0x50b4eb(0x256)+encodeURIComponent(_0x9f9683),_0x4f793f={'body':_0x51a72d},_0x31fd13=(await this[_0x50b4eb(0x16b)]['post'](_0x356aab,_0x4f793f))[_0x50b4eb(0x311)];if(typeof _0x31fd13[_0x50b4eb(0x262)]!='string')return this[_0x50b4eb(0x39e)](),Promise[_0x50b4eb(0x27a)](Error(_0x474d91[_0x50b4eb(0x327)]));_0xe4b4f5=_0x31fd13[_0x50b4eb(0x262)];}catch{return this[_0x50b4eb(0x39e)](),Promise[_0x50b4eb(0x27a)](Error(_0x474d91[_0x50b4eb(0x327)]));}return new Promise((_0x1e07c3,_0x38a187)=>{const _0x5d651e=_0x50b4eb;let _0x59da43=new FileReader();_0x59da43[_0x5d651e(0x26e)](_0x13999),_0x59da43['onload']=_0x1b6a3a=>{const _0x231e98=_0x5d651e;var _0x572dc7;let _0x2d9f64=(_0x572dc7=_0x1b6a3a[_0x231e98(0x3a0)])==null?void 0x0:_0x572dc7[_0x231e98(0x19b)];if(_0x2d9f64==null){this[_0x231e98(0x39e)](),_0x38a187(Error(_0x474d91[_0x231e98(0x327)]));return;}_0x1e07c3({'imageId':_0x39cafe(0x6),'imageSourceType':_0x1a7c90[_0x231e98(0x22f)],'source':_0xe4b4f5,'base64Cache':_0x2d9f64,'status':_0x474d91[_0x231e98(0x34d)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x2051a8=_0x4c9487;var _0x348fde;let _0x4be435=this[_0x2051a8(0x1a9)][_0x2051a8(0x3c2)](L);return(_0x348fde=_0x4be435==null?void 0x0:_0x4be435[_0x2051a8(0x18b)])==null?_0x2051a8(0x3a8):_0x348fde;}[_0x4c9487(0x231)](){const _0x3aeb11=_0x4c9487;var _0x1a1b02;let _0x5f2ebf=this[_0x3aeb11(0x1a9)]['getConfig'](L);return(_0x1a1b02=_0x5f2ebf==null?void 0x0:_0x5f2ebf[_0x3aeb11(0x290)])==null?_0x3aeb11(0x2f8):_0x1a1b02;}[_0x4c9487(0x2ee)](){const _0x5f28d1=_0x4c9487;var _0x5028dd;let _0x25e367=this[_0x5f28d1(0x1a9)]['getConfig'](L);return(_0x5028dd=_0x25e367==null?void 0x0:_0x25e367[_0x5f28d1(0x2f2)])==null?location[_0x5f28d1(0x386)]:_0x5028dd;}[_0x4c9487(0x26a)](_0x4b15bf,_0xa13a9a){const _0x380587=_0x4c9487;return _0x4b15bf[_0x380587(0x161)](_0x380587(0x15c),_0xa13a9a);}[_0x4c9487(0x39e)](){const _0x569286=_0x4c9487;--this[_0x569286(0x340)],this[_0x569286(0x1cd)][_0x569286(0x1b0)](this[_0x569286(0x340)]);}};Jn=V([B(0x0,_0x25ad33(_0x38ff13)),B(0x1,_0x408d6e),B(0x2,_0x25ad33(_0x566455))],Jn);let Yn=class{constructor(_0x28925b,_0x5ba904){const _0x5eea23=_0x4c9487;this[_0x5eea23(0x1a9)]=_0x28925b,this['_HTTPService']=_0x5ba904;}[_0x4c9487(0x293)](){const _0x35de14=_0x4c9487;var _0x261ce1;let _0x507273=this[_0x35de14(0x1a9)][_0x35de14(0x3c2)](L);return(_0x261ce1=_0x507273==null?void 0x0:_0x507273[_0x35de14(0x375)])==null?_0x35de14(0x204):_0x261ce1;}async[_0x4c9487(0x2a7)](_0x5d0230){const _0x4eb6e4=_0x4c9487;let _0x2f0398=this['_getAPIPrefixPath']()+'/collaborator';return{'list':[{'title':_0x4eb6e4(0x2d4),'mentions':(await this[_0x4eb6e4(0x1f4)][_0x4eb6e4(0x203)](_0x2f0398,{'params':{'objectID':_0x5d0230[_0x4eb6e4(0x23a)],'unitID':_0x5d0230[_0x4eb6e4(0x23a)]}}))[_0x4eb6e4(0x311)]['collaborators'][_0x4eb6e4(0x1e6)](_0x1c0a7c=>({'objectId':_0x1c0a7c['id'],'name':_0x1c0a7c['subject']['name'],'metadata':{'icon':_0x1c0a7c['subject'][_0x4eb6e4(0x242)]},'label':_0x1c0a7c['subject'][_0x4eb6e4(0x30b)],'objectType':_0x3d61fd['PERSON']})),'metadata':{},'type':_0x3d61fd[_0x4eb6e4(0x32a)]}]};}};Yn=V([B(0x0,_0x25ad33(_0x408d6e)),B(0x1,_0x25ad33(_0x38ff13))],Yn);let Xn=class extends _0x320367{constructor(_0x214203,_0x4b6fca,_0x5d7eb1,_0x1034c4,_0x1e70e2){const _0x40bb03=_0x4c9487;super(),this[_0x40bb03(0x2dc)]=_0x214203,this[_0x40bb03(0x1b3)]=_0x4b6fca,this[_0x40bb03(0x24e)]=_0x5d7eb1,this[_0x40bb03(0x196)]=_0x1034c4,this[_0x40bb03(0x38b)]=_0x1e70e2,this['_initUnitPermissionChange'](),this[_0x40bb03(0x291)]();}[_0x4c9487(0x291)](){const _0x42778c=_0x4c9487;let _0x57ec85=async _0xa428f2=>{const _0x493d0c=_0x45c3;(await this[_0x493d0c(0x196)][_0x493d0c(0x39a)](_0xa428f2))['event$'][_0x493d0c(0x372)](_0x102c7f(_0x132b41=>_0x132b41['eventID']===_0x455bbe[_0x493d0c(0x1db)]),_0x731e2(this[_0x493d0c(0x30c)]))[_0x493d0c(0x145)](_0x4def8d=>{const _0x17f53e=_0x493d0c;let {reason:_0x34a509}=_0x4def8d['data'];this[_0x17f53e(0x38b)]['emitEvent']({'id':_0x17f53e(0x198),'data':_0x34a509}),this[_0x17f53e(0x24e)]['updatePermissionPoint'](new _0x428d58(_0xa428f2)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0xa428f2);});};_0x382563(this[_0x42778c(0x1b3)][_0x42778c(0x374)](_0x672a2f['UNIVER_SHEET']),this[_0x42778c(0x1b3)][_0x42778c(0x374)](_0x672a2f[_0x42778c(0x2ca)]),this[_0x42778c(0x1b3)][_0x42778c(0x374)](_0x672a2f[_0x42778c(0x230)]),this['_univerInstanceService'][_0x42778c(0x374)](_0x672a2f['UNIVER_BASE']))[_0x42778c(0x372)](_0x324a4a(_0x1b21d4=>_0x1b21d4['unit']['getUnitId']()),_0x102c7f(_0x31d484=>!_0x563f4a(_0x31d484)),_0x731e2(this[_0x42778c(0x30c)]))[_0x42778c(0x145)](_0x22a2e0=>{_0x57ec85(_0x22a2e0);});}[_0x4c9487(0x147)](){const _0x3cf173=_0x4c9487;let _0x20efcd=async _0x3daf44=>{const _0x54dc23=_0x45c3;let _0x5665b4=await this['_collaborationSessionService'][_0x54dc23(0x39a)](_0x3daf44),_0x238971=this[_0x54dc23(0x2dc)][_0x54dc23(0x203)](_0x5473e3);_0x5665b4[_0x54dc23(0x246)][_0x54dc23(0x372)](_0x102c7f(_0x37dbbb=>_0x37dbbb[_0x54dc23(0x240)]===_0x455bbe[_0x54dc23(0x24c)]),_0x731e2(this[_0x54dc23(0x30c)]))[_0x54dc23(0x145)](_0x165a07=>{const _0x6fee24=_0x54dc23;let {objectId:_0x30bef8}=_0x165a07[_0x6fee24(0x1ea)];_0x30bef8===_0x3daf44?_0x238971[_0x6fee24(0x19a)](_0x3daf44):_0x238971[_0x6fee24(0x3bb)](_0x3daf44,_0x30bef8);});};_0x382563(this[_0x3cf173(0x1b3)][_0x3cf173(0x374)](_0x672a2f[_0x3cf173(0x183)]))[_0x3cf173(0x372)](_0x324a4a(_0x5464e6=>_0x5464e6[_0x3cf173(0x315)][_0x3cf173(0x25b)]()),_0x102c7f(_0x4aa090=>!_0x563f4a(_0x4aa090)),_0x731e2(this['dispose$']))[_0x3cf173(0x145)](_0x32841c=>{_0x20efcd(_0x32841c);});}};Xn=V([B(0x0,_0x25ad33(_0x4f91d7)),B(0x1,_0x566455),B(0x2,_0x2aaf65),B(0x3,_0x25ad33(jn)),B(0x4,_0x25ad33(z))],Xn);let Zn=class{constructor(_0x393de0,_0x316b74){const _0x487fc2=_0x4c9487;this[_0x487fc2(0x1a9)]=_0x393de0,this[_0x487fc2(0x16b)]=_0x316b74;}async[_0x4c9487(0x279)](_0x470e1b,_0x268560){const _0x1b6bb8=_0x4c9487;var _0x331a90;let {unitID:_0xaf5504,type:_0x498706,revision:_0x49a1b1=0x0}=_0x268560,_0x1bb604=this[_0x1b6bb8(0x349)]()+'/'+_0x498706+'/unit/'+_0xaf5504+_0x1b6bb8(0x1e9)+_0x49a1b1,_0x469281=(await this[_0x1b6bb8(0x16b)][_0x1b6bb8(0x203)](_0x1bb604))[_0x1b6bb8(0x311)],_0x524434=(_0x331a90=_0x469281[_0x1b6bb8(0x273)])==null?void 0x0:_0x331a90['workbook'];if(_0x524434){let _0x5e53ad=_0x524434==null?void 0x0:_0x524434[_0x1b6bb8(0x381)];_0x524434[_0x1b6bb8(0x381)]=_0xf60f62[_0x1b6bb8(0x142)](_0x384431(_0x5e53ad)),Object[_0x1b6bb8(0x25d)](_0x524434['sheets'])['forEach'](([,_0x2fc578])=>{const _0x3034d5=_0x1b6bb8;let _0x15654e=_0x2fc578[_0x3034d5(0x381)];_0x2fc578[_0x3034d5(0x381)]=_0xf60f62[_0x3034d5(0x142)](_0x384431(_0x15654e));});}return _0x469281;}async['getSheetBlock'](_0x3a438f,_0x5153c1){const _0x26b23f=_0x4c9487;let {unitID:_0x283cc7,type:_0x18524c,blockID:_0x4bca11}=_0x5153c1,_0x2025b7=this[_0x26b23f(0x398)]()+'/'+_0x18524c+_0x26b23f(0x1b2)+_0x283cc7+_0x26b23f(0x2fb)+_0x4bca11;return(await this[_0x26b23f(0x16b)][_0x26b23f(0x203)](_0x2025b7))['body'];}async['getDeserializedSheetBlock'](_0x4c2497,_0x483207){const _0x446812=_0x4c9487;let {unitID:_0x18217b,type:_0x35266a,blockID:_0x37da2d}=_0x483207,_0xa374ab=this['_getAPIPrefix']()+'/block/'+_0x35266a+_0x446812(0x1b2)+_0x18217b+_0x446812(0x2fb)+_0x37da2d;return(await this[_0x446812(0x16b)]['get'](_0xa374ab))[_0x446812(0x311)];}async[_0x4c9487(0x3bf)](_0x4ac2a3,_0x4133c1){const _0x3a9fc9=_0x4c9487;let {unitID:_0x1912b2,type:_0x34e5d2,from:_0x16ef3b,to:_0x166226}=_0x4133c1,_0x3efce2=this[_0x3a9fc9(0x398)]()+'/'+_0x34e5d2+_0x3a9fc9(0x1b2)+_0x1912b2+_0x3a9fc9(0x167)+_0x16ef3b+_0x3a9fc9(0x31a)+_0x166226;return(await this[_0x3a9fc9(0x16b)][_0x3a9fc9(0x203)](_0x3efce2))[_0x3a9fc9(0x311)];}['getSnapshotAPIPath'](){const _0x99bd9a=_0x4c9487;var _0x304ae8;return(_0x304ae8=this[_0x99bd9a(0x1a9)][_0x99bd9a(0x3c2)](_0x99bd9a(0x1c8)))==null?this[_0x99bd9a(0x398)]():_0x304ae8;}[_0x4c9487(0x398)](){const _0x106e67=_0x4c9487;var _0x3140d2;let _0x5d84c3=this[_0x106e67(0x1a9)][_0x106e67(0x3c2)](L);return(_0x3140d2=_0x5d84c3==null?void 0x0:_0x5d84c3[_0x106e67(0x149)])==null?_0x106e67(0x364):_0x3140d2;}async[_0x4c9487(0x15a)](_0x56bb32,_0x360401){const _0x1339f3=_0x4c9487;let _0x5794cf=_0x1339f3(0x263)+_0x360401[_0x1339f3(0x385)]+_0x1339f3(0x1b2)+_0x360401[_0x1339f3(0x1cc)]+_0x1339f3(0x268);return(await this['_httpService']['get'](_0x5794cf,{'params':{'resourceId':JSON[_0x1339f3(0x2a2)](_0x360401['resourceIDs'])}}))[_0x1339f3(0x311)];}[_0x4c9487(0x1a1)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4c9487(0x175)](){const _0x2824b3=_0x4c9487;throw Error(_0x2824b3(0x20a));}['saveSheetBlock'](){const _0x2cd0f6=_0x4c9487;throw Error(_0x2cd0f6(0x20a));}[_0x4c9487(0x1e2)](){const _0x5d3f52=_0x4c9487;throw Error(_0x5d3f52(0x20a));}[_0x4c9487(0x219)](){const _0xc6ac38=_0x4c9487;throw Error(_0xc6ac38(0x20a));}[_0x4c9487(0x2f0)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Zn=V([B(0x0,_0x408d6e),B(0x1,_0x25ad33(_0x38ff13))],Zn);let Qn=class extends _0x350ec1{constructor(_0x4c45e7,_0x3e436e,_0x255a4f,_0x5c8e95,_0x2e1afb){const _0x4baab7=_0x4c9487;super(_0x4c45e7,_0x3e436e,_0x255a4f),this[_0x4baab7(0x2c9)]=_0x5c8e95,this['_logService']=_0x2e1afb;}[_0x4c9487(0x26d)](_0x236a8a,_0x118915){const _0xfcf61a=_0x4c9487;let _0x52431a=this['_getUndoStack'](_0x236a8a);if(_0x52431a)try{let _0x129130=this[_0xfcf61a(0x284)](_0x52431a,_0x118915);this['_substituteUndoStack'](_0x236a8a,_0x129130);}catch(_0x5667ec){this['_logService'][_0xfcf61a(0x38c)](_0xfcf61a(0x3bd),_0x5667ec),this['_clearUndo'](_0x236a8a);}let _0x2f42a9=this[_0xfcf61a(0x237)](_0x236a8a);if(_0x2f42a9)try{let _0x537c4e=this[_0xfcf61a(0x284)](_0x2f42a9,_0x118915);this['_substituteRedoStack'](_0x236a8a,_0x537c4e);}catch(_0x54fbb1){this['_logService']['error'](_0x54fbb1),this[_0xfcf61a(0x347)](_0x236a8a);}}['_clearUndo'](_0x7ce724){const _0x242dcd=_0x4c9487;let _0x13f487=this[_0x242dcd(0x159)](_0x7ce724);_0x13f487&&(_0x13f487[_0x242dcd(0x2ba)]=0x0,this[_0x242dcd(0x1a7)]());}[_0x4c9487(0x347)](_0x2e268c){const _0x3a378e=_0x4c9487;let _0xf3f62d=this[_0x3a378e(0x237)](_0x2e268c);_0xf3f62d&&(_0xf3f62d[_0x3a378e(0x2ba)]=0x0,this[_0x3a378e(0x1a7)]());}['_substituteUndoStack'](_0x32d847,_0x59e0c8){const _0x4e698d=_0x4c9487;this[_0x4e698d(0x3aa)][_0x4e698d(0x29a)](_0x32d847,_0x59e0c8),this['_updateStatus']();}[_0x4c9487(0x2bb)](_0x3b232f,_0x3a3ff8){const _0x334770=_0x4c9487;this[_0x334770(0x2f1)][_0x334770(0x29a)](_0x3b232f,_0x3a3ff8),this[_0x334770(0x1a7)]();}['_transformStack'](_0x545fd2,_0x30a63b){const _0x4329b5=_0x4c9487;let _0x4ada60=[],_0x41fc25=_0x30a63b,_0x28bdcf=_0x30a63b;for(let _0x34737b=_0x545fd2[_0x4329b5(0x2ba)]-0x1;_0x34737b>=0x0;_0x34737b--){let {unitID:_0x15da9b,undoMutations:_0x3fc0ed,redoMutations:_0x3b92a5}=_0x545fd2[_0x34737b],_0x490c26=this[_0x4329b5(0x2c9)][_0x4329b5(0x15e)](_0x41fc25,_0x3fc0ed),_0x304439=this[_0x4329b5(0x2c9)][_0x4329b5(0x15e)](_0x28bdcf,_0x3b92a5);if(_0x3ce704(_0x490c26)||_0x3ce704(_0x304439)){this['_logService'][_0x4329b5(0x38c)](_0x4329b5(0x3bd),'transformStack\x20failed!',_0x490c26,_0x304439);break;}_0x41fc25=_0x490c26[_0x4329b5(0x3ab)],_0x28bdcf=_0x304439[_0x4329b5(0x3ab)],_0x4ada60[_0x4329b5(0x36c)]({'unitID':_0x15da9b,'undoMutations':_0x490c26[_0x4329b5(0x294)],'redoMutations':_0x304439[_0x4329b5(0x294)]});}return _0x4ada60['reverse']();}};Qn=V([B(0x0,_0x566455),B(0x1,_0x4d9c36),B(0x2,_0x32da93),B(0x3,_0x4bb226),B(0x4,_0x2260fd)],Qn);let $n=class extends _0x235123{constructor(_0x447632=pt,_0xf58bc3,_0x4a495d,_0x384fd7){const _0x1f3406=_0x4c9487;super(),this['_config']=_0x447632,this[_0x1f3406(0x220)]=_0xf58bc3,this[_0x1f3406(0x2dc)]=_0x4a495d,this[_0x1f3406(0x1a9)]=_0x384fd7;let {..._0x1990db}=_0xa6ae2f({},pt,this[_0x1f3406(0x264)]);if(!_0x1990db[_0x1f3406(0x28d)])throw Error(_0x1f3406(0x13b));this[_0x1f3406(0x264)]=_0x1990db,this[_0x1f3406(0x1a9)]['setConfig'](L,_0x1990db);}[_0x4c9487(0x373)](){const _0x83801c=_0x4c9487;this[_0x83801c(0x316)](),this[_0x83801c(0x3a3)]();}[_0x4c9487(0x316)](){const _0x14d92d=_0x4c9487;var _0x4cb8cf,_0x19e6d4;this[_0x14d92d(0x2dc)][_0x14d92d(0x270)](_0xd09547)&&this[_0x14d92d(0x220)][_0x14d92d(0x38c)]('[UniverCollaborationClientPlugin]',_0x14d92d(0x300));let _0x347890=_0x300e55([[_0xd09547,{'useClass':Qn}],[On,{'useValue':kn()}],[jn],[H],[Gt],[Bn],[Kn],[kt],[Xn],[z],[qn],[Tn,{'useClass':this[_0x14d92d(0x264)][_0x14d92d(0x28d)]}],[_0x501a5d,{'useClass':Zn}],[_0x26940e,{'useClass':Vn}],[_0x4b01d6,{'useClass':Jn}],[Ln,{'useClass':Rn}],[_0x3602aa,{'useClass':Yn}],[Mn],[Fn]],(_0x4cb8cf=this['_config'])==null?void 0x0:_0x4cb8cf[_0x14d92d(0x1ba)]);if(!((_0x19e6d4=this[_0x14d92d(0x264)])!=null&&_0x19e6d4['enableSingleActiveInstanceLock'])){let _0x1569c5=_0x347890[_0x14d92d(0x350)](([_0xfd331a])=>_0xfd331a===W);_0x1569c5!==-0x1&&_0x347890[_0x14d92d(0x2b0)](_0x1569c5,0x1);}_0x5e4a3e(this[_0x14d92d(0x2dc)],_0x347890);}['_initDependencies'](){const _0x17736b=_0x4c9487;var _0x4bfeb4,_0x4d0d3d;if(this['_injector']['get'](_0x38ff13)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x3fbaa8({'maxParallel':0x6})}),!((_0x4bfeb4=this[_0x17736b(0x264)])!=null&&_0x4bfeb4[_0x17736b(0x2b9)])){var _0x3eb4a4;(_0x3eb4a4=this[_0x17736b(0x2dc)][_0x17736b(0x203)](U,_0x4e6314[_0x17736b(0x34a)]))==null||_0x3eb4a4[_0x17736b(0x1bd)]();}(_0x4d0d3d=this[_0x17736b(0x264)])!=null&&_0x4d0d3d[_0x17736b(0x29f)]&&_0x2788f8(this[_0x17736b(0x2dc)],[[Bn]]),_0x2788f8(this['_injector'],[[Kn],[Mn],[Xn]]);}};R($n,_0x4c9487(0x19f),_0x4c9487(0x1df)),R($n,'packageName',Nn),R($n,'version',Pn),$n=V([_0x20b54d(_0x4805d2,_0xe76f50,_0x26a826),B(0x1,_0x2260fd),B(0x2,_0x25ad33(_0x4f91d7)),B(0x3,_0x408d6e)],$n);export{In as AttachmentSourceType,Vn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,vn as BaseCollaborationEntity,xn as BoardCollaborationEntity,L as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Rn as CollaborationAttachmentIoService,Mn as CollaborationController,$ as CollaborationEntity,Jn as CollaborationImageIoService,Ht as CollaborationSession,jn as CollaborationSessionService,Dn as CollaborationSocketService,pn as CollaborationStatus,Ot as CollaborationUIEventId,z as CollaborationUIEventService,Qn as CollaborativeUndoRedoService,kt as CommentService,X as ConflictState,mt as DEFAULT_COLLAB_WEB_SOCKET_URL,Ct as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,ht as DEFAULT_WS_SESSION_TICKET_URL,qn as DataLoaderService,_n as DocCollaborationEntity,Q as FetchingMissState,gt as HEARTBEAT_INTERVAL_KEY,_t as HEARTBEAT_TIMEOUT_KEY,Ln as IAttachmentIoService,On as ICollaborationClientAdapterService,Tn as ICollaborationSocketService,U as ILocalCacheService,Sn as INetworkConditionService,W as ISingleActiveUnitService,xt as LOCAL_CACHE_INTERVAL,bt as LOCAL_CACHE_INTERVAL_KEY,H as MemberService,Yn as MentionIoHttpService,Z as OfflineState,q as PendingState,St as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,yt as RETRY_CONNECTING_MAX_COUNT_KEY,Bt as SessionStatus,yn as SheetCollaborationEntity,Gt as SheetTransformSelectionsService,bn as SlideCollaborationEntity,Zn as SnapshotServerOverHTTPService,K as SyncedState,Kt as UnitStatus,$n as UniverCollaborationClientPlugin,kn as createUniverCollaborationAdapter,Cn as deserializeToCombResponse,Ut as getLocalCacheKey,wn as serializeCombRequest};
1
+ const _0x3bc572=_0xe493;(function(_0xa5b5c0,_0x22d697){const _0x1d6e1a=_0xe493,_0x392395=_0xa5b5c0();while(!![]){try{const _0x559f74=parseInt(_0x1d6e1a(0x32c))/0x1*(parseInt(_0x1d6e1a(0x34a))/0x2)+-parseInt(_0x1d6e1a(0x376))/0x3*(parseInt(_0x1d6e1a(0x3b4))/0x4)+parseInt(_0x1d6e1a(0x373))/0x5+parseInt(_0x1d6e1a(0x1cf))/0x6*(-parseInt(_0x1d6e1a(0x417))/0x7)+-parseInt(_0x1d6e1a(0x375))/0x8+parseInt(_0x1d6e1a(0x259))/0x9*(parseInt(_0x1d6e1a(0x333))/0xa)+-parseInt(_0x1d6e1a(0x208))/0xb;if(_0x559f74===_0x22d697)break;else _0x392395['push'](_0x392395['shift']());}catch(_0x3a05ab){_0x392395['push'](_0x392395['shift']());}}}(_0x3e80,0x8c93d));import{CollaborationEvent as _0x7dd1cb,CompressMutationService as _0x46826b,EmptyMutationInfo as _0x1b64d1,ISnapshotServerService as _0xe1e81f,ITransformService as _0x29bc05,RevisionService as _0x2cb5e4,SnapshotService as _0x3209ea,UniverCollaborationPlugin as _0x901b3,b64DecodeUnicode as _0x430315,isTransformChangesetsSuccess as _0x41af53,isTransformMutationsWithChangesetFailure as _0x33bd16,isTransformMutationsWithChangesetSuccess as _0x34fd35,mapDocumentTypeToUniverInstanceType as _0x386cb9,parseChangesetToProtocol as _0x43c492,parseProtocolChangeset as _0x4823fa,textEncoder as _0x204083,uuidv4 as _0x5d9f01}from'@univerjs-pro/collaboration';import{CommandType as _0xe60bf6,DependentOn as _0x30d4af,Disposable as _0x376cce,DisposableCollection as _0x186c27,IAuthzIoService as _0x27e034,ICommandService as _0x1f135e,IConfigService as _0xa7a1b6,IContextService as _0x5e05d4,IImageIoService as _0x4c34f1,ILogService as _0x2e09c7,IMentionIOService as _0x1a6754,IPermissionService as _0x3058fc,IUndoRedoService as _0x51c17f,IUniverInstanceService as _0x6f9bb2,ImageSourceType as _0x493f5e,ImageUploadStatusType as _0x13bf4f,Inject as _0x167908,Injector as _0x35e9e2,JSONX as _0x52478b,LocalUndoRedoService as _0x150656,LocaleService as _0x3b5f18,MentionType as _0x118ea1,Optional as _0x2a5dd8,Plugin as _0x9c02e4,Quantity as _0x1c058a,Rectangle as _0x53336f,RxDisposable as _0x4ca998,Tools as _0x3ea6fe,UniverInstanceType as _0x1f1b4f,UserManagerService as _0x1ab04a,Workbook as _0x45f35b,createIdentifier as _0x5685c4,generateRandomId as _0x197487,isInternalEditorID as _0x238b00,merge as _0x147984,mergeOverrideWithDependencies as _0x4f5c21,registerDependencies as _0x2ba51f,resolveWithBasePath as _0x4823ba,sequenceExecute as _0x416b22,toDisposable as _0x11df70,touchDependencies as _0x1d20c8}from'@univerjs/core';import{DocStateChangeManagerService as _0x6630d3,RichTextEditingMutation as _0x7aa9b}from'@univerjs/docs';import{InsertSheetMutation as _0xad6688,SetSelectionsOperation as _0x3f0685,SheetPermissionInitController as _0x265733,SheetsSelectionsService as _0x3ad638,WorkbookEditablePermission as _0x3d21fe}from'@univerjs/sheets';import{BehaviorSubject as _0x31b85e,ReplaySubject as _0x60521f,Subject as _0x5b6066,concatMap as _0x4bcf17,firstValueFrom as _0xecbbf6,map as _0xdcb41d,merge as _0x4b9f39,of as _0x5d6819,shareReplay as _0x238a10,take as _0x5d0356,takeUntil as _0xb785f}from'rxjs';import{CmdRspCode as _0x20fc41,CombCmd as _0x23fb1d,ErrorCode as _0x2fd5b6,FileSource as _0x10cf89}from'@univerjs/protocol';import{ITelemetryService as _0x3915b7}from'@univerjs/telemetry';import{delay as _0x5f4ad8,filter as _0x519396,map as _0x37612c,take as _0x18ddcd,takeUntil as _0x42f81a}from'rxjs/operators';import{AddSlidePageMutation as _0x9f63e,EnsureSlideMasterPageMutation as _0x45dcdc,MoveSlidePageMutation as _0xcd2053,RemoveSlidePageMutation as _0x5667d9}from'@univerjs-pro/slides';import{HTTPRequest as _0x3cc753,HTTPService as _0x6a3f01,ISocketService as _0x1d5e1d,MergeInterceptorFactory as _0x24f540,ThresholdInterceptorFactory as _0x28f61d,UniverNetworkPlugin as _0x21d398}from'@univerjs/network';import{UniverLicensePlugin as _0x442bd0,getGlobalObject as _0x153271}from'@univerjs-pro/license';import{cbc as _0x3823ef}from'@noble/ciphers/aes.js';import{concatBytes as _0x2bb09d,randomBytes as _0x1dfafc,utf8ToBytes as _0x34339e}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x286929,getDrawingImageAllowSize as _0xba57e6}from'@univerjs/drawing';const R=_0x3bc572(0x282),ft={},pt=_0x3bc572(0x22e),mt=_0x3bc572(0x3fb),ht=_0x3bc572(0x2c2),gt=_0x3bc572(0x358),_t=0x4e20,vt='RETRY_CONNECTING_MAX_COUNT',yt=_0x3bc572(0x1df),bt=0x3e8,xt=_0x3bc572(0x1fe),St=_0x3bc572(0x359);function Ct(_0x28ec4d){const _0x5825ae=_0x3bc572;return JSON[_0x5825ae(0x3c3)](_0x28ec4d)['length'];}function _0xe493(_0x206303,_0x4afa36){_0x206303=_0x206303-0x1ab;const _0x3e809a=_0x3e80();let _0xe493f2=_0x3e809a[_0x206303];return _0xe493f2;}function wt(_0x3f4935){'@babel/helpers - typeof';const _0x2ff5c3=_0x3bc572;return wt=typeof Symbol==_0x2ff5c3(0x261)&&typeof Symbol['iterator']==_0x2ff5c3(0x326)?function(_0x794e9c){return typeof _0x794e9c;}:function(_0x23450d){const _0x123d93=_0x2ff5c3;return _0x23450d&&typeof Symbol=='function'&&_0x23450d[_0x123d93(0x2fb)]===Symbol&&_0x23450d!==Symbol['prototype']?_0x123d93(0x326):typeof _0x23450d;},wt(_0x3f4935);}function Tt(_0x1880d1,_0x1f9049){const _0x3e370e=_0x3bc572;if(wt(_0x1880d1)!='object'||!_0x1880d1)return _0x1880d1;var _0x2a8309=_0x1880d1[Symbol[_0x3e370e(0x1bd)]];if(_0x2a8309!==void 0x0){var _0x4e5027=_0x2a8309['call'](_0x1880d1,_0x1f9049||_0x3e370e(0x307));if(wt(_0x4e5027)!=_0x3e370e(0x3d4))return _0x4e5027;throw TypeError(_0x3e370e(0x29b));}return(_0x1f9049===_0x3e370e(0x288)?String:Number)(_0x1880d1);}function Et(_0x11244c){var _0x3bb26d=Tt(_0x11244c,'string');return wt(_0x3bb26d)=='symbol'?_0x3bb26d:_0x3bb26d+'';}function z(_0x3fedc1,_0x162725,_0x5f558a){return(_0x162725=Et(_0x162725))in _0x3fedc1?Object['defineProperty'](_0x3fedc1,_0x162725,{'value':_0x5f558a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3fedc1[_0x162725]=_0x5f558a,_0x3fedc1;}let Dt=function(_0x3ab8c4){const _0xf68e2f=_0x3bc572;return _0x3ab8c4['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x3ab8c4['PERMISSION_DENIED']=_0xf68e2f(0x2ab),_0x3ab8c4['CONFLICT']='CONFLICT',_0x3ab8c4[_0xf68e2f(0x3be)]='CLOSE_ROOM',_0x3ab8c4[_0xf68e2f(0x324)]=_0xf68e2f(0x324),_0x3ab8c4[_0xf68e2f(0x1b3)]=_0xf68e2f(0x1b3),_0x3ab8c4[_0xf68e2f(0x40b)]=_0xf68e2f(0x40b),_0x3ab8c4[_0xf68e2f(0x3f8)]=_0xf68e2f(0x3f8),_0x3ab8c4;}({});var B=class{constructor(){const _0x38c36f=_0x3bc572;z(this,_0x38c36f(0x35a),new _0x5b6066()),z(this,_0x38c36f(0x396),this[_0x38c36f(0x35a)][_0x38c36f(0x43c)]());}[_0x3bc572(0x340)](_0xa9d9f8){const _0x180dbe=_0x3bc572;this[_0x180dbe(0x35a)][_0x180dbe(0x2c7)](_0xa9d9f8);}},Ot=class{constructor(){const _0xe9b7a1=_0x3bc572;z(this,_0xe9b7a1(0x36d),new _0x5b6066()),z(this,_0xe9b7a1(0x291),this[_0xe9b7a1(0x36d)][_0xe9b7a1(0x43c)]());}['onCommentUpdate'](_0x252ade){const _0x4bbd59=_0x3bc572;this[_0x4bbd59(0x36d)]['next'](_0x252ade);}};function V(_0x4a0ded,_0x1f986d){return function(_0x96670c,_0x9f8a74){_0x1f986d(_0x96670c,_0x9f8a74,_0x4a0ded);};}function H(_0x38fd8b,_0x35b3a7,_0x546123,_0x55816d){const _0x1b1d42=_0x3bc572;var _0x5ddeec=arguments[_0x1b1d42(0x28d)],_0x9ccf9c=_0x5ddeec<0x3?_0x35b3a7:_0x55816d===null?_0x55816d=Object[_0x1b1d42(0x3f6)](_0x35b3a7,_0x546123):_0x55816d,_0x1d0092;if(typeof Reflect==_0x1b1d42(0x3d4)&&typeof Reflect[_0x1b1d42(0x2ef)]==_0x1b1d42(0x261))_0x9ccf9c=Reflect[_0x1b1d42(0x2ef)](_0x38fd8b,_0x35b3a7,_0x546123,_0x55816d);else{for(var _0x16a495=_0x38fd8b[_0x1b1d42(0x28d)]-0x1;_0x16a495>=0x0;_0x16a495--)(_0x1d0092=_0x38fd8b[_0x16a495])&&(_0x9ccf9c=(_0x5ddeec<0x3?_0x1d0092(_0x9ccf9c):_0x5ddeec>0x3?_0x1d0092(_0x35b3a7,_0x546123,_0x9ccf9c):_0x1d0092(_0x35b3a7,_0x546123))||_0x9ccf9c);}return _0x5ddeec>0x3&&_0x9ccf9c&&Object[_0x1b1d42(0x3f2)](_0x35b3a7,_0x546123,_0x9ccf9c),_0x9ccf9c;}let kt=class extends _0x376cce{constructor(_0x5ba2f2){const _0x4435cc=_0x3bc572;super(),this['_univerInstanceService']=_0x5ba2f2,z(this,_0x4435cc(0x2c1),new Map()),z(this,_0x4435cc(0x323),new _0x5b6066()),this[_0x4435cc(0x21b)](_0x4b9f39(this['_univerInstanceService'][_0x4435cc(0x40a)](_0x1f1b4f[_0x4435cc(0x33c)])[_0x4435cc(0x264)](_0x37612c(_0x579553=>_0x579553[_0x4435cc(0x1da)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1f1b4f['UNIVER_DOC'])[_0x4435cc(0x264)](_0x37612c(_0x7f8500=>_0x7f8500[_0x4435cc(0x1da)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1f1b4f['UNIVER_BOARD'])[_0x4435cc(0x264)](_0x37612c(_0x5dbf96=>_0x5dbf96[_0x4435cc(0x1da)]())),this[_0x4435cc(0x449)][_0x4435cc(0x40a)](_0x1f1b4f[_0x4435cc(0x3fd)])[_0x4435cc(0x264)](_0x37612c(_0x5cb423=>_0x5cb423[_0x4435cc(0x1da)]())))[_0x4435cc(0x368)](_0x55d9e7=>this[_0x4435cc(0x3cc)](_0x55d9e7)));}[_0x3bc572(0x409)](_0x32a340){const _0x8d89e2=_0x3bc572;return this[_0x8d89e2(0x2c1)]['has'](_0x32a340)?_0x5d6819(this[_0x8d89e2(0x2c1)]['get'](_0x32a340)):this[_0x8d89e2(0x323)][_0x8d89e2(0x264)](_0x37612c(_0x1e49e2=>{const _0x1b2cc3=_0x8d89e2;if(_0x1e49e2===_0x32a340)return this[_0x1b2cc3(0x2c1)]['get'](_0x1e49e2);}));}[_0x3bc572(0x1f5)](_0x4385fc,_0x5f44c9){const _0x37f590=_0x3bc572;let _0x57e0d4=this[_0x37f590(0x2c1)][_0x37f590(0x1e3)](_0x4385fc);_0x57e0d4||(_0x57e0d4=new At(),this[_0x37f590(0x2c1)][_0x37f590(0x405)](_0x4385fc,_0x57e0d4),this[_0x37f590(0x323)][_0x37f590(0x2c7)](_0x4385fc)),_0x57e0d4[_0x37f590(0x1f5)](_0x5f44c9);}[_0x3bc572(0x2c5)](_0x2ff6a7,_0x5e9086){const _0xb03ffa=_0x3bc572;let _0x1e965f=this['_roomMembers'][_0xb03ffa(0x1e3)](_0x2ff6a7);_0x1e965f&&_0x1e965f[_0xb03ffa(0x2c5)](_0x5e9086);}[_0x3bc572(0x3af)](_0x34fecd){const _0x5bd20c=_0x3bc572;return this[_0x5bd20c(0x2c1)][_0x5bd20c(0x1e3)](_0x34fecd);}['getMember'](_0x390a6f,_0x419860){const _0x45188e=_0x3bc572;let _0x1b8758=this['_roomMembers'][_0x45188e(0x1e3)](_0x390a6f);if(_0x1b8758)return _0x1b8758[_0x45188e(0x355)](_0x419860);}['_removeRoom'](_0x18a122){const _0x603d7d=_0x3bc572;let _0x5f176e=this['_roomMembers'][_0x603d7d(0x1e3)](_0x18a122);_0x5f176e&&(_0x5f176e[_0x603d7d(0x1d4)](),this[_0x603d7d(0x2c1)]['delete'](_0x18a122));}[_0x3bc572(0x1d4)](){const _0x27b16d=_0x3bc572;this[_0x27b16d(0x2c1)][_0x27b16d(0x29a)](_0x236375=>_0x236375[_0x27b16d(0x1d4)]()),this[_0x27b16d(0x2c1)][_0x27b16d(0x3bb)](),this[_0x27b16d(0x323)][_0x27b16d(0x42f)]();}};kt=H([V(0x0,_0x6f9bb2)],kt);var At=class extends _0x376cce{constructor(..._0x1ae04b){const _0x45b14b=_0x3bc572;super(..._0x1ae04b),z(this,_0x45b14b(0x231),new Map()),z(this,_0x45b14b(0x2cc),new _0x31b85e(this[_0x45b14b(0x231)])),z(this,_0x45b14b(0x3ed),this[_0x45b14b(0x2cc)]['asObservable']());}[_0x3bc572(0x1d4)](){const _0x692be1=_0x3bc572;this['_members'][_0x692be1(0x3bb)](),this['_members$'][_0x692be1(0x42f)]();}['updateMember'](_0x2b28fc){const _0x3b98ac=_0x3bc572;this[_0x3b98ac(0x231)][_0x3b98ac(0x405)](_0x2b28fc[_0x3b98ac(0x3b6)],_0x2b28fc),this[_0x3b98ac(0x20a)]();}['removeMember'](_0x386aa4){const _0x4b76ea=_0x3bc572;this[_0x4b76ea(0x231)][_0x4b76ea(0x1b4)](_0x386aa4),this['_emitMembers']();}['getMember'](_0x30602e){const _0x45d12d=_0x3bc572;return this['_members'][_0x45d12d(0x1e3)](_0x30602e);}[_0x3bc572(0x22d)](){const _0x2e4981=_0x3bc572;return Array['from'](this[_0x2e4981(0x231)][_0x2e4981(0x3fe)]());}[_0x3bc572(0x20a)](){const _0x2296e5=_0x3bc572;this['_members$'][_0x2296e5(0x2c7)](this[_0x2296e5(0x231)]);}};function jt(_0x1b19a7,_0x596630){const _0x507407=_0x3bc572;if(Nt(_0x1b19a7))return _0x596630;if(_0x596630['eventID']===_0x7dd1cb['SUBMIT_CHANGESET']){var _0x4d58f5;let _0x5be6dd=Rt(_0x1b19a7),_0x4cf29d=_0x596630;return{..._0x4cf29d,'data':{..._0x4cf29d[_0x507407(0x2c6)],'unitID':_0x1b19a7['target']['unitId'],'unitType':(_0x4d58f5=_0x1b19a7[_0x507407(0x24b)][_0x507407(0x1d0)])==null?_0x4cf29d[_0x507407(0x2c6)][_0x507407(0x1d0)]:_0x4d58f5,'changeset':_0x5be6dd[_0x507407(0x334)](_0x4cf29d[_0x507407(0x2c6)]['changeset'],zt(_0x1b19a7))}};}if(_0x596630[_0x507407(0x313)]===_0x7dd1cb['FETCH_MISSING']){var _0x59c8bc;let _0x53c5a5=_0x596630;return{..._0x53c5a5,'data':{..._0x53c5a5['data'],'unitID':_0x1b19a7[_0x507407(0x24b)]['unitId'],'unitType':(_0x59c8bc=_0x1b19a7[_0x507407(0x24b)][_0x507407(0x1d0)])==null?_0x53c5a5[_0x507407(0x2c6)]['unitType']:_0x59c8bc}};}return _0x596630;}function Mt(_0x107114,_0x4fe339){const _0x82cd7c=_0x3bc572;if(Nt(_0x107114))return[_0x4fe339];switch(_0x4fe339[_0x82cd7c(0x313)]){case _0x7dd1cb['NEW_CHANGESETS']:return[Pt(_0x107114,_0x4fe339)];case _0x7dd1cb['PSEUDO_FETCH_MISSING_RESULT']:return[It(_0x107114,_0x4fe339)];case _0x7dd1cb[_0x82cd7c(0x257)]:return[Ft(_0x107114,_0x4fe339)];default:return[_0x4fe339];}}function Nt(_0x10279c){const _0x3696d4=_0x3bc572;return _0x10279c[_0x3696d4(0x24b)][_0x3696d4(0x356)]==null&&_0x10279c[_0x3696d4(0x24b)][_0x3696d4(0x395)]===_0x10279c[_0x3696d4(0x3fc)]&&!_0x10279c['changeset'];}function Pt(_0x2ae07c,_0x26abb7){const _0x5793c3=_0x3bc572;return{..._0x26abb7,'data':_0x43c492(Lt(_0x2ae07c,_0x4823fa(_0x26abb7[_0x5793c3(0x2c6)])))};}function Ft(_0x4b6631,_0x1eae6d){const _0x350943=_0x3bc572;return{..._0x1eae6d,'data':Lt(_0x4b6631,_0x1eae6d[_0x350943(0x2c6)])};}function It(_0x2e0267,_0x4880a8){const _0xe17818=_0x3bc572;let _0x5f47ff=_0x4880a8[_0xe17818(0x2c6)];return{..._0x4880a8,'data':{..._0x5f47ff,'changesets':_0x5f47ff[_0xe17818(0x23e)][_0xe17818(0x239)](_0x1e84e1=>_0x43c492(Lt(_0x2e0267,_0x4823fa(_0x1e84e1))))}};}function Lt(_0x46197e,_0xdb480e){const _0x344e35=_0x3bc572;return Rt(_0x46197e)[_0x344e35(0x2fc)](_0xdb480e,zt(_0x46197e));}function Rt(_0x314e21){const _0x55669b=_0x3bc572;if(!_0x314e21['changeset'])throw Error(_0x55669b(0x40d));return _0x314e21[_0x55669b(0x3e3)];}function zt(_0x5663ce){const _0x5600ed=_0x3bc572;return{'localUnitId':_0x5663ce[_0x5600ed(0x3fc)],'unitType':_0x5663ce['unitType'],'target':_0x5663ce[_0x5600ed(0x24b)]};}let Bt=function(_0x1253b5){const _0x23c679=_0x3bc572;return _0x1253b5[_0x1253b5['IDLE']=0x0]='IDLE',_0x1253b5[_0x1253b5['JOINING']=0x1]=_0x23c679(0x328),_0x1253b5[_0x1253b5['OFFLINE']=0x2]='OFFLINE',_0x1253b5[_0x1253b5[_0x23c679(0x36c)]=0x3]=_0x23c679(0x36c),_0x1253b5;}({});const Vt={[_0x20fc41[_0x3bc572(0x26c)]]:'session.join-failed',[_0x20fc41[_0x3bc572(0x1e8)]]:_0x3bc572(0x255),[_0x20fc41[_0x3bc572(0x295)]]:_0x3bc572(0x30c),[_0x20fc41['JOIN_ROOM_PERMISSION_DENIED']]:_0x3bc572(0x445),[_0x20fc41[_0x3bc572(0x224)]]:_0x3bc572(0x2a7)};let Ht=class extends _0x4ca998{get[_0x3bc572(0x3ce)](){const _0x31b3db=_0x3bc572;return this['_sessionStatus$'][_0x31b3db(0x207)]();}constructor(_0x14f088,_0xf0b910,_0x1b4e01,_0xc09c43,_0x6cda4,_0x567062,_0x2e413c,_0x5b5240){const _0x29fc11=_0x3bc572;super(),this[_0x29fc11(0x24a)]=_0x14f088,this[_0x29fc11(0x1c1)]=_0x1b4e01,this[_0x29fc11(0x1c9)]=_0xc09c43,this[_0x29fc11(0x2a6)]=_0x6cda4,this[_0x29fc11(0x1c5)]=_0x567062,this['_collaborationUIEventService']=_0x2e413c,this[_0x29fc11(0x3f1)]=_0x5b5240,z(this,_0x29fc11(0x363),new _0x31b85e(0x0)),z(this,_0x29fc11(0x1d9),this[_0x29fc11(0x363)]['asObservable']()),z(this,_0x29fc11(0x35a),new _0x5b6066()),z(this,'event$',this['_event$'][_0x29fc11(0x43c)]()),z(this,_0x29fc11(0x41e),void 0x0),z(this,_0x29fc11(0x35f),void 0x0),z(this,_0x29fc11(0x228),void 0x0),z(this,_0x29fc11(0x201),!0x1),z(this,'_telemetryInfo',null),this[_0x29fc11(0x201)]=!!this[_0x29fc11(0x3f1)],_0xf0b910[_0x29fc11(0x264)](_0xb785f(this[_0x29fc11(0x3d6)]))['subscribe'](_0x5c9f47=>{const _0x28ce0=_0x29fc11;if(_0x5c9f47!==void 0x0){if(this[_0x28ce0(0x41e)]=_0x5c9f47,_0x5c9f47)this['_joinRoom'](_0x5c9f47),this[_0x28ce0(0x35f)]=_0x5c9f47[_0x28ce0(0x30b)][_0x28ce0(0x368)](_0x35b1eb=>{const _0x7e9182=_0x28ce0;_0x35b1eb[_0x7e9182(0x1b6)]===this[_0x7e9182(0x24a)][_0x7e9182(0x24b)][_0x7e9182(0x395)]&&this['_onCombEvent'](_0x35b1eb);});else{var _0x3ae976;this[_0x28ce0(0x213)](),this[_0x28ce0(0x363)][_0x28ce0(0x2c7)](0x2),(_0x3ae976=this[_0x28ce0(0x35f)])==null||_0x3ae976[_0x28ce0(0x277)](),this[_0x28ce0(0x35f)]=null;}}});}[_0x3bc572(0x22c)](){const _0x245106=_0x3bc572;var _0x3c9ce2,_0x2b99e4;return(_0x3c9ce2=(_0x2b99e4=this[_0x245106(0x41e)])==null?void 0x0:_0x2b99e4[_0x245106(0x3b6)])==null?null:_0x3c9ce2;}['dispose'](){const _0x31bc85=_0x3bc572;super['dispose'](),this[_0x31bc85(0x3cf)](),this[_0x31bc85(0x3d6)][_0x31bc85(0x2c7)](),this[_0x31bc85(0x3d6)]['complete']();}[_0x3bc572(0x3cf)](){const _0x2edf8b=_0x3bc572;var _0x50c33e;this[_0x2edf8b(0x213)](),(_0x50c33e=this[_0x2edf8b(0x41e)])==null||_0x50c33e[_0x2edf8b(0x1ef)]({'cmd':_0x23fb1d[_0x2edf8b(0x444)],'data':{'roomID':this[_0x2edf8b(0x24a)][_0x2edf8b(0x24b)][_0x2edf8b(0x395)]}}),this[_0x2edf8b(0x35a)][_0x2edf8b(0x42f)](),this[_0x2edf8b(0x363)][_0x2edf8b(0x42f)]();}['_onCombEvent'](_0x5a1627){const _0x2a483d=_0x3bc572;_0x5a1627['cmd']===_0x23fb1d['JOIN']?this['_onJoinRoomEvent'](_0x5a1627):_0x5a1627[_0x2a483d(0x265)]===_0x23fb1d[_0x2a483d(0x2e1)]&&this[_0x2a483d(0x312)](_0x5a1627);}[_0x3bc572(0x23f)](_0x30ee10){const _0x4c7914=_0x3bc572;this[_0x4c7914(0x363)]['next'](0x1),_0x30ee10[_0x4c7914(0x1ef)]({'cmd':_0x23fb1d[_0x4c7914(0x2a3)],'routeKey':this['_identity'][_0x4c7914(0x24b)][_0x4c7914(0x395)],'routeType':'','data':{'rooms':[{'roomID':this[_0x4c7914(0x24a)][_0x4c7914(0x24b)]['unitId']}]}});}[_0x3bc572(0x3c1)](_0x12d32c){const _0x4d9dd7=_0x3bc572;var _0x43a5ef;if(_0x12d32c[_0x4d9dd7(0x36f)]in Vt){this[_0x4d9dd7(0x33e)][_0x4d9dd7(0x340)]({'id':'JOIN_ROOM_FAILED','data':Vt[_0x12d32c[_0x4d9dd7(0x36f)]]}),this[_0x4d9dd7(0x363)]['next'](0x2);return;}this[_0x4d9dd7(0x363)][_0x4d9dd7(0x2c7)](0x3);let _0x1358ea=(_0x43a5ef=_0x12d32c['data']['roomInfos'][this[_0x4d9dd7(0x24a)][_0x4d9dd7(0x24b)][_0x4d9dd7(0x395)]])==null?void 0x0:_0x43a5ef[_0x4d9dd7(0x3aa)];_0x1358ea&&_0x1358ea[_0x4d9dd7(0x29a)](_0x5401f5=>this[_0x4d9dd7(0x2a6)][_0x4d9dd7(0x1f5)](this[_0x4d9dd7(0x24a)][_0x4d9dd7(0x3fc)],_0x5401f5));}['_onRecvEvent'](_0x33206a){const _0xdf237d=_0x3bc572;try{let _0x1fb995=Mt(this[_0xdf237d(0x24a)],_0x33206a[_0xdf237d(0x2c6)]);for(let _0x4cc02a of _0x1fb995)switch(_0x4cc02a['eventID']){case _0x7dd1cb['USERS_ENTER']:this[_0xdf237d(0x3dc)](_0x4cc02a),this['_event$'][_0xdf237d(0x2c7)](_0x4cc02a);break;case _0x7dd1cb[_0xdf237d(0x221)]:this[_0xdf237d(0x21c)](_0x4cc02a),this['_event$']['next'](_0x4cc02a);break;case _0x7dd1cb[_0xdf237d(0x25d)]:case _0x7dd1cb[_0xdf237d(0x257)]:this[_0xdf237d(0x39e)](),this[_0xdf237d(0x262)](),this[_0xdf237d(0x35a)][_0xdf237d(0x2c7)](_0x4cc02a);break;case _0x7dd1cb['MSG_FOR_ERROR']:this[_0xdf237d(0x1c1)][_0xdf237d(0x298)]('save\x20fail\x20reason\x20is\x20'+JSON[_0xdf237d(0x3c3)](_0x4cc02a)),this[_0xdf237d(0x35a)][_0xdf237d(0x2c7)](_0x4cc02a);break;case _0x7dd1cb['COMMENT_UPDATE']:this[_0xdf237d(0x1c5)][_0xdf237d(0x2d3)](_0x4cc02a['data']),this[_0xdf237d(0x35a)][_0xdf237d(0x2c7)](_0x4cc02a);break;default:this['_event$']['next'](_0x4cc02a);}}catch(_0x35f54b){this['_logService'][_0xdf237d(0x298)](_0x35f54b,_0x33206a);}}[_0x3bc572(0x3dc)](_0x1bbd1d){const _0x5691=_0x3bc572;this[_0x5691(0x2a6)][_0x5691(0x1f5)](this[_0x5691(0x24a)]['localUnitId'],_0x1bbd1d['data']);}[_0x3bc572(0x21c)](_0x262f8e){const _0x554246=_0x3bc572;this[_0x554246(0x2a6)][_0x554246(0x2c5)](this[_0x554246(0x24a)][_0x554246(0x3fc)],_0x262f8e['data'][_0x554246(0x3b6)]);}async[_0x3bc572(0x1ef)](_0x90a8a1,_0x3e6863){const _0x2e8957=_0x3bc572;if(this[_0x2e8957(0x3ce)]!==0x3||!this[_0x2e8957(0x41e)])throw Error(_0x2e8957(0x408));try{let _0x24f6ef=jt(this[_0x2e8957(0x24a)],_0x90a8a1);_0x24f6ef[_0x2e8957(0x313)]===_0x7dd1cb[_0x2e8957(0x2b1)]&&(this[_0x2e8957(0x3e5)](),this[_0x2e8957(0x423)](_0x24f6ef)),this[_0x2e8957(0x41e)][_0x2e8957(0x1ef)]({'cmd':_0x23fb1d[_0x2e8957(0x28e)],'routeKey':this['_identity'][_0x2e8957(0x24b)]['unitId'],'routeType':'','data':_0x24f6ef});}catch(_0x1fbdeb){this[_0x2e8957(0x1c1)][_0x2e8957(0x298)](_0x1fbdeb);}}[_0x3bc572(0x3e5)](){const _0x305d66=_0x3bc572;var _0x12af1e;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x3bbdba=_0xe493;this[_0x3bbdba(0x228)]=null,this[_0x3bbdba(0x33e)]['emitEvent']({'id':_0x3bbdba(0x3f8)});},(_0x12af1e=this[_0x305d66(0x1c9)]['getConfig'](_0x305d66(0x358)))==null?_t:_0x12af1e);}[_0x3bc572(0x262)](){const _0x936c6e=_0x3bc572;this[_0x936c6e(0x228)]&&(clearTimeout(this[_0x936c6e(0x228)]),this['_collaborationTimeoutTimer']=null);}[_0x3bc572(0x423)](_0x12d377){const _0x58bb3e=_0x3bc572;if(!this[_0x58bb3e(0x201)])return;let {data:_0xb4ce1}=_0x12d377,{unitID:_0x2511e6,changeset:_0x5d802a}=_0xb4ce1,{mutations:_0x5f4587,type:_0x41e011}=_0x5d802a;this[_0x58bb3e(0x30d)]={'unitId':_0x2511e6,'type':_0x41e011,'startTime':performance[_0x58bb3e(0x249)](),'stopTime':0x0,'duration':0x0,'size':Ct(_0x5f4587)};}[_0x3bc572(0x39e)](){const _0x14e47d=_0x3bc572;if(this[_0x14e47d(0x201)]){if(!this[_0x14e47d(0x30d)]){this[_0x14e47d(0x1c1)][_0x14e47d(0x298)](_0x14e47d(0x33a),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x14e47d(0x30d)][_0x14e47d(0x223)]=performance['now'](),this[_0x14e47d(0x30d)]['duration']=this[_0x14e47d(0x30d)][_0x14e47d(0x223)]-this[_0x14e47d(0x30d)][_0x14e47d(0x2b3)],this[_0x14e47d(0x3f1)][_0x14e47d(0x2db)]('collaboration_new_changeset',this['_telemetryInfo']),this[_0x14e47d(0x30d)]=null;}}[_0x3bc572(0x213)](){const _0x4e7026=_0x3bc572;this[_0x4e7026(0x30d)]=null;}};Ht=H([V(0x2,_0x2e09c7),V(0x3,_0xa7a1b6),V(0x4,_0x167908(kt)),V(0x5,_0x167908(Ot)),V(0x6,_0x167908(B)),V(0x7,_0x2a5dd8(_0x3915b7))],Ht);const U=_0x5685c4(_0x3bc572(0x2ff));function Ut(_0x3f2b44){return'unit-cache-'+_0x3f2b44;}function Wt(_0x3191a3){const _0x26d917=_0x3bc572;let {unitID:_0x4a1e5b,mutations:_0x4b3792}=_0x3191a3;return{'unitId':_0x4a1e5b,'subUnitId':_0x4b3792['length']>0x0?_0x4b3792[0x0][_0x26d917(0x2a4)][_0x26d917(0x217)]:null};}let Gt=class{constructor(_0xbbc176,_0x53fd38,_0x3e075d){const _0x45403f=_0x3bc572;this[_0x45403f(0x44d)]=_0xbbc176,this[_0x45403f(0x284)]=_0x53fd38,this['_instanceService']=_0x3e075d;}['transformSelections'](_0x595a6d){const _0x572796=_0x3bc572;var _0x23d770,_0x4e3b75;let _0xc79583=this[_0x572796(0x44d)][_0x572796(0x1e3)](_0x3ad638),{unitId:_0x394ea6,subUnitId:_0x214f39}=Wt(_0x595a6d),_0x527475=_0xc79583==null?void 0x0:_0xc79583[_0x572796(0x246)](_0x394ea6)[_0x572796(0x1c3)](),_0x144df1=(_0x23d770=this[_0x572796(0x1c6)][_0x572796(0x412)](_0x394ea6))==null||(_0x23d770=_0x23d770[_0x572796(0x3c9)]())==null?void 0x0:_0x23d770[_0x572796(0x2cf)]();if(_0x527475['length']===0x0||!_0x394ea6||!_0x214f39)return;let _0x2a2c6d=[{'id':_0x3f0685['id'],'params':{'unitId':_0x394ea6,'subUnitId':_0x144df1,'selections':_0x3ea6fe[_0x572796(0x2af)](_0x527475)}}],_0x56b642=this[_0x572796(0x284)][_0x572796(0x37a)](_0x595a6d,_0x2a2c6d);if(!_0x34fd35(_0x56b642))throw _0x56b642['error'];let _0x563c4a=(_0x4e3b75=_0x56b642[_0x572796(0x296)][0x0])==null||(_0x4e3b75=_0x4e3b75[_0x572796(0x2a4)])==null?void 0x0:_0x4e3b75[_0x572796(0x24d)];if(Array[_0x572796(0x2fa)](_0x563c4a)&&_0x563c4a['length']){if(_0x563c4a[_0x572796(0x28d)]===_0x2a2c6d[0x0][_0x572796(0x2a4)][_0x572796(0x24d)][_0x572796(0x28d)]&&_0x563c4a[_0x572796(0x41a)]((_0x1a3eb5,_0x34a2e1)=>_0x53336f[_0x572796(0x21f)](_0x1a3eb5[_0x572796(0x346)],_0x2a2c6d[0x0][_0x572796(0x2a4)][_0x572796(0x24d)][_0x34a2e1][_0x572796(0x346)])))return;this['_injector'][_0x572796(0x1e3)](_0x1f135e)[_0x572796(0x414)](_0x3f0685['id'],{'unitId':_0x394ea6,'subUnitId':_0x144df1,'selections':_0x563c4a});}}};function _0x3e80(){const _0x2a6be5=['MUTATION','loadPdf','_userManagerService','RECV','uniscriptRunEvent','state$','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','sid','userID','_resendTimer','_waitCount','_queuedRemoteChangesets','append','baseRev','connection\x20error','_getAPIPrefix','_onLocalMutation','decorate','type','_clearScheduledTask','originalMeta','slice','retryConnectingInterval','_updateLocalCache','[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.','loadBoard','_transformStateCache','state','isArray','constructor','toLocal','[OfflineState]:\x20received\x20acknowledgement.','createInstance','collaboration-client.local-cache-service','localCacheService','NEW_CHANGESETS','/object','UPDATE_PERMISSION_OBJ','splice','debug','getConfig','default','COLLABORATION_ENDPOINT_INVALID','unitLoaded$','fromCollab','message$','session.room-not-exists','_telemetryInfo','_checkMissing','getAttachmentUrl','loginUrlKey','actions','_onRecvEvent','eventID','open$','pauseCollaboration','onTransformState','_scheduleCompleteTimestamp','size','OFFLINE','_sessionChannels','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','copyFileMeta','UNISCRIPT_RUN','_syncEditingCollabCursor','tables','_sender','_pendingMutations','listCollaborators','_roomCreated$','JOIN_ROOM_FAILED','_initCloseConn','symbol','_transitionLocked','JOINING','{fileID}','_schedule','_change$','1VeMnoa','incrementRevOfUnit','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','origin','collabWebSocketUrl','_listenToNetworkCondition','onMissedChangesetFetched','191220mcTAOj','toRemote','loadDoc','reduce','trim','missingChangesets','getTime','[CollaborationSession]','LIVESHARE_REQUEST_HOST','UNIVER_SHEET','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_collaborationUIEventService','&to=','emitEvent','localeService','_maxTotalRetryTimeout','loadSlide','indexOf','deleteCollaborator','range','uploadFileServerUrl','csShouldRetryEvent','_handler','2195798LQUfIj','_getLoginPath','list','appendMutation','_status$','_resendTimeout','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','socket\x20close','apply','_updateState','socket$','getMember','endpoint','_state$','HEARTBEAT_TIMEOUT','/universer-api/uniscript','_event$','OTHER_CLIENT_EDITING','Error\x20on\x20receiving\x20event','_sessions','awaiting_with_pending','_socketMessageSubscription','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','min','_getAPIPrefixPath','_sessionStatus$','saveSheetBlock','onTransformRemoteChangesetByStateCache','?size=','_upload','subscribe','_hasSessionsForEndpoint','reject','_onOffline','ONLINE','_commentUpdate$','objects','code','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationUndoRedoService]','_initRequestHeader','3187890TYctmy','_eventService','750400MGaXaU','263631RAGHBk','findIndex','getUploadOptions','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','transformMutationsWithChangeset','error$','encodeURIComponent','encode','\x20to\x20','update','_transformSelections','interceptor','includes','close$','_transformRemoteChangesetByIMECache','_localeService','updateCursorEvent','BASE64','/block/','AWAITING','onRemoteRej','loadBase','onLocalMutation','endpointKey','_acknowledgeAwaiting','collaborators','/universer-api/comb','isPermissionRej','href','transformStack\x20failed!','_transformAndApplyRemoteChangeset','unitId','event$','univer-pro.collaboration-client-adapter-service','find','unitID','[PendingState]:\x20received\x20rejection.','entries','CONFLICT','_commandService','_stopTelemetryCollaborationNewChangeset','[OfflineState]:\x20received\x20changeset.','floor','replace','_clearRedo','_exhaustRemoteChangesetQueue','AWAITING_WITH_PENDING','/object/','/allowed','FETCH_MISS','_replayCachedMutations','putCollaborators','members','onTransformRemoteChangesetByIMECache','offline','call','__Key__','getRoom','onMutationExecutedForCollab','_revisionService','FileId','Univer','20egGdmq','_registerDependencies','memberID','_httpService','getInterceptPoints','PERMISSION_REJ','_startCollaboration','clear','_onConflict','revision','CLOSE_ROOM','init','_collabSessionService','_onJoinRoomEvent','awaitingChangeset','stringify','UNIVER_SLIDE','[UniverCollaborationClientPlugin]','entityInit$','[FetchMissState]','_changesetReqId','getActiveSheet','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_snapshotServerService','_removeRoom','url','sessionStatus','close','roles','/rev/','_fetchMissChangesets','shouldCloseConn','object','_unitLoaded$','dispose$','location','NO_OTHER_CLIENTS_EDITING','requestParams','[CollaborationEntity]','_HTTPService','_onUserJoin','_sendingTimer','_tryEnsureSocket','SYNCED','hostname','UNIVER_DOC','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','changeset','/collaborator','_scheduleCollaborationTimeoutTimer','_showConflictNotification','__splitChunk__','withCredentials','docStateChange$','RETRY_CONNECTING_MAX_COUNT','accept','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','members$','updateCollaborator','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','PENDING','_telemetryService','defineProperty','_tryReconnect','COMMENT_UPDATE','reverse','getOwnPropertyDescriptor','_rescheduleHeartbeat','SUBMIT_CHANGESET_TIMEOUT','socketMessageSubscription','&source=','/universer-api/user/session-ticket','localUnitId','UNIVER_BASE','values','candidateSocket','_undoStacks','joinEvent','resolveUnit','columnGroups','getUnitType','set','_getRedoStack','/-/object/list','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','waitForRoom$','getTypeOfUnitDisposed$','SOCKET_FAILED','&assign=','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_decreaseWaiting','catch','_entities','some','getUnit','onRemoteRetry','executeCommand','_getUndoStack','_substituteUndoStack','5705hhfAWU','sendChangesetTimeout','onRemoteChangeset','every','transformUndoRedo','_networkConditionService','number','_socket','/new_changes','_onFetchMissResult','retryConnectingTimer','_localCacheService','_startTelemetryCollaborationNewChangeset','_getSendChangesetTimeout','setCfgEnableObjInherit','UNIVER_BOARD','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','socketService','updatePermissionPoint','onMissingChangesets','_onConnectionFailed','COMPRESS_MUTATION_SEND','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','_collaborationPaused','complete','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','session','enableAuthServer','_incrementRevisionNumber','[PendingState]:\x20received\x20acknowledgement.','c1Prime','loadUnit','saveSnapshot','ERROR_IMAGE_TYPE','createSocket','SUCCUSS','_unlockTransition','asObservable','onStarting','_transformStack','/universer-api/stream/file/upload','_updateStatus','rev','_createInitialState','status','LEAVE','session.room-permission-denied','addHandlerCallback','_transformUndoredo','_changesetSessionId','_univerInstanceService','_socketService','snapshot','/unit/','_injector','_onRemoteRetry','_onRemoteRejected','saveChangeset','objectID','onSendChangeset','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_state','pending','_transformIMECache','submit\x20changeset\x20error!','x-univer-host','SOCKET_FAILED_RETRY','delete','onTransformIME','routeKey','POST','_docStateChangeManagerService','then','_handlerCallback','disableLocalCache','closeSession','toPrimitive','unit','onlyLocal','infoRsp','_logService','sendHeartbeatTimer','getCurrentSelections','collabSubmitChangesetUrl','_commentService','_instanceService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','downloadEndpointUrl','_configService','SNAPSHOT_URL_KEY','_permissionService','UnitEmbedded','_resendWithTimeout','_sheetTransformSelectionsService','7836YwuJbt','unitType','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','status$','/universer-api/file/{fileID}/sign-url','dispose','isCompositionEnd','_disableEditing','_entityInit$','univer-pro.collaboration-client-socket-service','sessionStatus$','getUnitId','_undoRedoService','_config','COMPRESS_MUTATION_APPLY','addImageSourceCache','LOCAL_CACHE_INTERVAL','_initUnitPermissionChange','_clearRetryConnectingTimer','prototype','get','collaMsg','_handleRemoteChangesets','getCollabEntity$','confirm','JOIN_ROOM_FULL','_getUploadFileURL','workbook','create','UPDATE_CURSOR','OPTIONAL','_compressMutationService','send','_initMergeInterceptor','_clearTimeoutTimer','transformChangesets','refreshPermission','_createSession','updateMember','toString','ERROR_EXCEED_SIZE','failed\x20to\x20apply\x20missed\x20changesets!','[DataLoaderService]','fetching\x20missing\x20changesets\x20from\x20','fetchThroughInterceptors','_getSignURL','onRemoteAck','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_singleActiveUnitService','max','_shouldReportTelemetry','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','file','editingUnit','title','liveShareNewHost','getValue','3596747RtAFKd','_sendHeartbeat','_emitMembers','HEARTBEAT','ERROR_IMAGE','_onRemoteChangeset','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','/resources','enableSingleActiveInstanceLock','collaboration-client.auth.needGotoLoginAlert','_init','_throwTelemetryCollaborationNewChangeset','startsWith','onSyncEditingCollabCursor','cfgEnableObjInherit','subUnitId','_toggleOffline','override','getImage','disposeWithMe','_onUserLeave','Failed\x20to\x20update\x20permission\x20point','_getConfig','equals','_remoteChangesetQueue','USERS_LEAVE','commentUpdateEvent','stopTime','GLOBAL_ROOMS_CNT_EXCEEDS','_collaborationSessionService','compose','mutations','_collaborationTimeoutTimer','_clearLocalCache','conflict','reqId','getMemberID','getAllMembers','ws://127.0.0.1:8000/universer-api/comb/connect','timeoutTimer','toggleOnline','_members','\x20-\x20','getCurrentRevOfUnit','c2Prime','subject','body','onTransformSelections','updatePermissionObjEvent','map','@univerjs-pro/collaboration-client','patch','version','parse','changesets','_joinRoom','_onConnectionOpen','UUID','_resolveSessionIdentity','/-/object/-/batch_allowed','/universer-api/snapshot/','loadUnitOfRevision','getWorkbookSelections','saveAttachment','socket\x20open.','now','_identity','target','pluginName','selections','_applyRemoteChangeset','OTHER_CLIENTS_EDITING','push','_createSocket','requireSession','joinRsp','registerHTTPInterceptor','session.room-full','result','CHANGESET_SHOULD_RETRY','_imageSourceCache','360dmKTIR','setConfig','online$','_awaitingChangeset','CHANGESET_ACK','getCurrentUser','name','_acknowledgeAwaitingIfReady','function','_clearCollaborationTimeoutTimer','setWaitCount','pipe','cmd','_getSocketChannel','backupOfflineData','SHOULD_CLOSE_CONN','[CollaborationSessionService]:\x20socket\x20error','toggleOffline','_type','FAIL','getFocusedUnit','readAsDataURL','\x0aCurrent:\x20','loadOfflineData','_redoStacks','_onRemoteACK','objectType','loadSheet','authzUrl','sort','unsubscribe','LIVESHARE_TERMINATE','_lockTransition','[CollaborationState]:\x20apply\x20error!','_clearUndo','endsWith','USERS_ENTER','setShowComponents','post','onload','getSnapshotAPIPath','collaboration-client.config','action','_transformService','reconnect','transformSelections','maxSize','string','resend','_getDownloadEndpointURL','getDeserializedSheetBlock','newCsEvent','length','INGEST','focused$','/universer-api/authz','commentUpdate$','HELLO','add','_waitForHeartbeatResponse','JOIN_ROOM_NOT_EXISTS','m2Prime','LIVESHARE_FETCH_OPERATIONS','error','_substituteRedoStack','forEach','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_socketChannels','updateOfflineData','[SyncedState]:\x20received\x20acknowledgement.','avatar','_createInitialStateImpl','_cfgEnableObjInherit','_clearHeartbeatTimer','JOIN','params','_toggleOnline','_memberService','session.room-cnt-exceeds','liveShareOperation','resolve','[CollaborationSessionService]','PERMISSION_DENIED','_pendingSessions','_unitInfo$','LIVESHARE_NEW_HOST','deepClone','fetch_missing','SUBMIT_CHANGESET','_getCurrentRevision','startTime','socketReady','headers','_executeRemoteChangeset','_acknowledgedAwaitingRevision','text-x','_onMessage','fetchMissingChangesets','LIVESHARE_OPERATION','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','src','textRanges','_snapshotService','_getCtorByUniverInstanceType','_roomMembers','HEARTBEAT_INTERVAL','CHANGESET_REJ','getTypeOfUnitAdded$','removeMember','data','next','retryCount','signUrlServerUrl','UNIVER_PDF','unknown','_members$','_createHandler','hasOwnProperty','getSheetId','attachment','_replaceFileID','responseType','onCommentUpdate','method','_isEchoedAwaitingChangeset','upload','_transformRemoteChangesetByStateCache','_adapter','put','_isPermissionRej','capture','getCollabEntity','has'];_0x3e80=function(){return _0x2a6be5;};return _0x3e80();}Gt=H([V(0x0,_0x167908(_0x35e9e2)),V(0x1,_0x29bc05),V(0x2,_0x6f9bb2)],Gt);const W=_0x5685c4('univer-pro.collaboration-client.single-active-unit-service');let Kt=function(_0x2aec77){const _0x595624=_0x3bc572;return _0x2aec77[_0x2aec77[_0x595624(0x3d8)]=0x0]=_0x595624(0x3d8),_0x2aec77[_0x2aec77[_0x595624(0x24f)]=0x1]=_0x595624(0x24f),_0x2aec77;}({});function qt(_0xfb9627){const _0x478949=_0x3bc572;var _0x279fe3;return!!((_0x279fe3=_0xfb9627[_0x478949(0x2a4)])!=null&&_0x279fe3[_0x478949(0x3e7)]);}const Jt=new Set([_0xad6688['id']]),Yt=new Set([_0x9f63e['id'],_0x45dcdc['id'],_0xcd2053['id'],_0x5667d9['id']]);function Xt(_0x236b4e,_0x8662ba=Jt){const _0x1765a5=_0x3bc572;let _0x5b019d=[];for(let _0x444060 of _0x236b4e){if(_0x8662ba['has'](_0x444060['id'])){if(_0x5b019d[_0x1765a5(0x28d)]>0x0)break;_0x5b019d['push'](_0x444060);break;}if(qt(_0x444060)){if(_0x5b019d[_0x1765a5(0x28d)]>0x0)break;_0x5b019d['push'](_0x444060);break;}_0x5b019d['push'](_0x444060);}return _0x5b019d;}function Zt(_0x2fa2fa,_0x107587,_0x50fc6b,_0x575c42,_0x3c1fac){const _0x25ac7d=_0x3bc572;var _0x2434dd,_0x19a63a;let _0x2cda4f=Xt(_0x2fa2fa),_0x588498=_0x3c1fac[_0x25ac7d(0x25e)](),_0x21eb75=(_0x2434dd=_0x588498==null?void 0x0:_0x588498[_0x25ac7d(0x2e6)])==null?_0x25ac7d(0x2cb):_0x2434dd,_0x518e5f=(_0x19a63a=_0x588498==null?void 0x0:_0x588498[_0x25ac7d(0x3b6)])==null?_0x25ac7d(0x2cb):_0x19a63a;return{'changeset':{'unitID':_0x107587,'type':_0x386cb9(_0x50fc6b['getUnitType'](_0x107587)),'baseRev':_0x575c42[_0x25ac7d(0x233)](_0x107587),'revision':0x0,'userID':_0x21eb75,'memberID':_0x518e5f,'mutations':_0x2cda4f},'pendingMutations':_0x2fa2fa['slice'](_0x2cda4f['length'])};}const Qt=Zt;function $t(_0x34c562,_0x2dea2d,_0x39a881,_0x594f7e,_0x4d326c){const _0x11e82f=_0x3bc572;var _0x493ca1,_0x2ce202;let _0x1905dd=Xt(_0x34c562,Yt),_0x57dbfe=_0x4d326c[_0x11e82f(0x25e)](),_0x1a010f=(_0x493ca1=_0x57dbfe==null?void 0x0:_0x57dbfe[_0x11e82f(0x2e6)])==null?_0x11e82f(0x2cb):_0x493ca1,_0x11e40d=(_0x2ce202=_0x57dbfe==null?void 0x0:_0x57dbfe['memberID'])==null?_0x11e82f(0x2cb):_0x2ce202;return{'changeset':{'unitID':_0x2dea2d,'type':_0x386cb9(_0x39a881[_0x11e82f(0x404)](_0x2dea2d)),'baseRev':_0x594f7e[_0x11e82f(0x233)](_0x2dea2d),'revision':0x0,'userID':_0x1a010f,'memberID':_0x11e40d,'mutations':_0x1905dd},'pendingMutations':_0x34c562['slice'](_0x1905dd[_0x11e82f(0x28d)])};}function en(_0xaebef7,_0xa15779,_0x305232,_0x18911b,_0x3e8d3c){const _0x564341=_0x3bc572;var _0x160fca,_0x23d260;let _0x42550c=_0xaebef7[_0x564341(0x336)]((_0x26b98d,_0x14da05)=>{const _0x421f26=_0x564341;let _0x399f49=_0x26b98d[_0x26b98d['length']-0x1],{id:_0x4ce703}=_0x399f49==null?{}:_0x399f49,{id:_0x25ddb7,type:_0x465393}=_0x14da05,_0x1629f7=_0x14da05['params'];if(_0x4ce703&&_0x4ce703!==_0x25ddb7)throw Error(_0x421f26(0x3ec)+_0x4ce703+_0x421f26(0x232)+_0x25ddb7+'.');if(!_0x399f49)return[{'id':_0x25ddb7,'type':_0x465393,'params':{'unitId':_0x1629f7['unitId'],'textRanges':_0x1629f7[_0x421f26(0x2be)],'actions':_0x1629f7[_0x421f26(0x311)]}}];let _0xbd6d82=_0x399f49[_0x421f26(0x2a4)];return tn(_0xbd6d82,_0x1629f7)?[..._0x26b98d[_0x421f26(0x2f3)](0x0,-0x1),{..._0x399f49,'id':_0x25ddb7,'type':_0x465393,'params':{'unitId':_0x1629f7[_0x421f26(0x395)],'textRanges':_0x1629f7[_0x421f26(0x2be)],'actions':_0x52478b[_0x421f26(0x226)](_0xbd6d82[_0x421f26(0x311)],_0x1629f7[_0x421f26(0x311)])}}]:[..._0x26b98d,{'id':_0x25ddb7,'type':_0x465393,'params':{'unitId':_0x1629f7[_0x421f26(0x395)],'textRanges':_0x1629f7[_0x421f26(0x2be)],'actions':_0x1629f7[_0x421f26(0x311)]}}];},[]),_0x4781f7=_0x3e8d3c[_0x564341(0x25e)](),_0x54de57=(_0x160fca=_0x4781f7==null?void 0x0:_0x4781f7['userID'])==null?_0x564341(0x2cb):_0x160fca,_0x5bc475=(_0x23d260=_0x4781f7==null?void 0x0:_0x4781f7[_0x564341(0x3b6)])==null?'unknown':_0x23d260;return{'changeset':{'unitID':_0xa15779,'type':_0x386cb9(_0x305232['getUnitType'](_0xa15779)),'baseRev':_0x18911b['getCurrentRevOfUnit'](_0xa15779),'revision':0x0,'userID':_0x54de57,'memberID':_0x5bc475,'mutations':_0x42550c},'pendingMutations':_0xaebef7[_0x564341(0x2f3)](_0xaebef7['length'])};}function tn(_0x225627,_0x3db0f2){const _0x209f4e=_0x3bc572;return!nn(_0x225627)&&!nn(_0x3db0f2)&&rn(_0x225627[_0x209f4e(0x311)],_0x3db0f2['actions']);}function nn(_0x1d3c9f){const _0x1d36ed=_0x3bc572;return _0x1d3c9f[_0x1d36ed(0x1d5)]!==void 0x0;}function rn(_0x501cb3,_0x2e24f6){return an(_0x501cb3)&&an(_0x2e24f6)&&!sn(_0x501cb3)&&!sn(_0x2e24f6)&&!on(_0x501cb3)&&!on(_0x2e24f6);}function an(_0x5a27ae){const _0x2eb807=_0x3bc572;return cn(_0x5a27ae)[_0x2eb807(0x411)](_0x2dfea7=>ln(_0x2dfea7)&&_0x2dfea7['et']===_0x2eb807(0x2b8));}function on(_0x1594e9){const _0x5be26c=_0x3bc572;return cn(_0x1594e9)[_0x5be26c(0x411)](_0x5b4183=>Array[_0x5be26c(0x2fa)](_0x5b4183)||typeof _0x5b4183==_0x5be26c(0x288)||typeof _0x5b4183==_0x5be26c(0x41d));}function sn(_0x5e77a7){const _0xaaec87=_0x3bc572;return cn(_0x5e77a7)[_0xaaec87(0x411)](_0x18da95=>!ln(_0x18da95)||_0x18da95['et']!=='text-x'||!Array[_0xaaec87(0x2fa)](_0x18da95['e'])?!0x1:_0x18da95['e']['some'](_0x1080f3=>!ln(_0x1080f3)||!ln(_0x1080f3['body'])?!0x1:Object[_0xaaec87(0x1e2)][_0xaaec87(0x2ce)]['call'](_0x1080f3['body'],_0xaaec87(0x31f))||Object['prototype']['hasOwnProperty'][_0xaaec87(0x3ad)](_0x1080f3['body'],_0xaaec87(0x403))||Object[_0xaaec87(0x1e2)][_0xaaec87(0x2ce)][_0xaaec87(0x3ad)](_0x1080f3['body'],'blockRanges')));}function cn(_0x4c643a){const _0x5f3589=_0x3bc572;if(!Array[_0x5f3589(0x2fa)](_0x4c643a))return[];let _0x20596a=_0x4c643a[_0x5f3589(0x382)](_0x5f3589(0x236))?_0x4c643a:_0x4c643a[_0x5f3589(0x398)](_0x2e5c59=>Array['isArray'](_0x2e5c59)&&_0x2e5c59[_0x5f3589(0x382)](_0x5f3589(0x236)));if(!Array[_0x5f3589(0x2fa)](_0x20596a))return[];let _0x2417eb=_0x20596a[_0x5f3589(0x344)]('body');return _0x2417eb===-0x1?[]:_0x20596a['slice'](_0x2417eb+0x1);}function ln(_0xf32c6){const _0x43cf59=_0x3bc572;return typeof _0xf32c6==_0x43cf59(0x3d4)&&!!_0xf32c6&&!Array[_0x43cf59(0x2fa)](_0xf32c6);}function un(_0x1e2b47,_0x230f83){const _0xd4cf60=_0x3bc572;let _0x46b400=new _0x60521f(0x1);return setTimeout(()=>_0x46b400[_0xd4cf60(0x2c7)](_0x230f83),_0x1e2b47),_0x46b400[_0xd4cf60(0x43c)]()[_0xd4cf60(0x264)](_0x5d0356(0x1));}var dn,fn,pn;let mn=function(_0x3fbacb){const _0x201d6a=_0x3bc572;return _0x3fbacb['NOT_COLLAB']='not_collab',_0x3fbacb[_0x201d6a(0x3df)]='synced',_0x3fbacb[_0x201d6a(0x3f0)]=_0x201d6a(0x1af),_0x3fbacb[_0x201d6a(0x389)]='awaiting',_0x3fbacb[_0x201d6a(0x3a4)]=_0x201d6a(0x35e),_0x3fbacb[_0x201d6a(0x3a7)]=_0x201d6a(0x2b0),_0x3fbacb[_0x201d6a(0x39c)]='conflict',_0x3fbacb[_0x201d6a(0x319)]=_0x201d6a(0x3ac),_0x3fbacb;}({});const hn=0x4e20,gn=0x2bf20;var G=class{constructor(_0x5d5f51,_0xbaeeeb,_0x4d9ca,_0x4f58e1,_0x44c91a,_0x1d9120,_0x43249f,_0x5b128a,_0x17b511){const _0xcd37fc=_0x3bc572;this[_0xcd37fc(0x399)]=_0x5d5f51,this[_0xcd37fc(0x2f0)]=_0xbaeeeb,this[_0xcd37fc(0x349)]=_0x44c91a,this[_0xcd37fc(0x39d)]=_0x1d9120,this[_0xcd37fc(0x1db)]=_0x43249f,this[_0xcd37fc(0x3b1)]=_0x5b128a,this[_0xcd37fc(0x422)]=_0x17b511,z(this,_0xcd37fc(0x25c),null),z(this,_0xcd37fc(0x321),[]),this[_0xcd37fc(0x25c)]=_0x4d9ca,this[_0xcd37fc(0x321)]=_0x4f58e1;}[_0x3bc572(0x30e)](_0x4f0918){const _0x2ae6d4=_0x3bc572;let _0x3a92fb=this['_revisionService'][_0x2ae6d4(0x233)](this['unitID']);return _0x4f0918[_0x2ae6d4(0x3bd)]>_0x3a92fb+0x1?(this['_handler'][_0x2ae6d4(0x42a)]({'from':_0x3a92fb,'to':_0x4f0918[_0x2ae6d4(0x3bd)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x587166){const _0x38d83e=_0x3bc572;this['_undoRedoService'][_0x38d83e(0x41b)](this['unitID'],_0x587166);}[_0x3bc572(0x380)](_0x12320e){const _0x119d57=_0x3bc572;var _0x2eafd5,_0xd08b7c;(_0x2eafd5=(_0xd08b7c=this[_0x119d57(0x349)])[_0x119d57(0x237)])==null||_0x2eafd5['call'](_0xd08b7c,_0x12320e);}[_0x3bc572(0x1b0)](_0x2073bd){const _0x3f4b1a=_0x3bc572;var _0x4a1ff5,_0x52c6dc;return(_0x4a1ff5=(_0x52c6dc=this[_0x3f4b1a(0x349)])[_0x3f4b1a(0x1b5)])==null?void 0x0:_0x4a1ff5['call'](_0x52c6dc,_0x2073bd);}[_0x3bc572(0x2f8)](_0x1890b5){const _0x5555ec=_0x3bc572;var _0x2e143c,_0x1c4996;return(_0x2e143c=(_0x1c4996=this[_0x5555ec(0x349)])['onTransformState'])==null?void 0x0:_0x2e143c['call'](_0x1c4996,_0x1890b5);}[_0x3bc572(0x384)](_0x1287c4){const _0x1d5199=_0x3bc572;var _0xa35a20,_0x407031,_0x8b4ac4;return(_0xa35a20=(_0x407031=(_0x8b4ac4=this[_0x1d5199(0x349)])[_0x1d5199(0x3ab)])==null?void 0x0:_0x407031[_0x1d5199(0x3ad)](_0x8b4ac4,_0x1287c4))==null?_0x1287c4:_0xa35a20;}[_0x3bc572(0x2d7)](_0xffa975){const _0x3d522a=_0x3bc572;var _0x4297d9,_0x510468,_0x2e769c;return(_0x4297d9=(_0x510468=(_0x2e769c=this[_0x3d522a(0x349)])[_0x3d522a(0x365)])==null?void 0x0:_0x510468['call'](_0x2e769c,_0xffa975))==null?_0xffa975:_0x4297d9;}[_0x3bc572(0x31e)](_0x3c5e80){const _0x5d8d25=_0x3bc572;if(this[_0x5d8d25(0x2f0)]===_0x1f1b4f[_0x5d8d25(0x3e1)]){let {unitID:_0x3fe5db,mutations:_0x16a46b,memberID:_0x24dfed}=_0x3c5e80,_0x37463c=_0x16a46b[_0x5d8d25(0x28d)]>0x0?_0x16a46b[0x0][_0x5d8d25(0x2a4)][_0x5d8d25(0x2be)]:[];if(Array[_0x5d8d25(0x2fa)](_0x37463c)&&_0x37463c[_0x5d8d25(0x28d)]>0x0){var _0x1852d5,_0x1409ac;(_0x1852d5=(_0x1409ac=this[_0x5d8d25(0x349)])[_0x5d8d25(0x215)])==null||_0x1852d5[_0x5d8d25(0x3ad)](_0x1409ac,{'unitID':_0x3fe5db,'memberID':_0x24dfed,'textRanges':_0x37463c});}}}['_updateLocalCache'](){const _0x4e55a4=_0x3bc572;var _0xe70d84;(_0xe70d84=this['_localCacheService'])==null||_0xe70d84[_0x4e55a4(0x29d)](this[_0x4e55a4(0x399)],this['type'],this[_0x4e55a4(0x25c)],this[_0x4e55a4(0x321)]);}[_0x3bc572(0x2b2)](){const _0x18ebcc=_0x3bc572;return this['_revisionService'][_0x18ebcc(0x233)](this[_0x18ebcc(0x399)]);}['_incrementRevisionNumber'](){const _0x56edf3=_0x3bc572;this[_0x56edf3(0x3b1)][_0x56edf3(0x32d)](this[_0x56edf3(0x399)]);}[_0x3bc572(0x2b6)](_0x3d292d){const _0x4df71f=_0x3bc572;let _0xcf0aac=this[_0x4df71f(0x384)](_0x3d292d);_0xcf0aac=this[_0x4df71f(0x2d7)](_0xcf0aac);let _0x3dbc31=_0x416b22(_0xcf0aac[_0x4df71f(0x227)],this[_0x4df71f(0x39d)],{'fromCollab':!0x0});if(!_0x3dbc31[_0x4df71f(0x256)]){var _0x225ce9;throw _0x3dbc31[_0x4df71f(0x298)]instanceof Error?_0x3dbc31[_0x4df71f(0x298)]:Error((_0x225ce9=_0x3dbc31[_0x4df71f(0x298)])==null?_0x4df71f(0x27a):_0x225ce9);}this[_0x4df71f(0x1b0)](_0xcf0aac),this[_0x4df71f(0x2f8)](_0xcf0aac),this[_0x4df71f(0x447)](_0x3d292d),this['_transformSelections'](_0xcf0aac),this['_syncEditingCollabCursor'](_0xcf0aac),this[_0x4df71f(0x433)]();}};let K=class extends G{constructor(_0x193fe0,_0x3b4e21,_0x19c6aa,_0x2dcf7f,_0x2ea382,_0x3bb737,_0x486d93,_0x5ce6c6,_0xe34151,_0x24871d){const _0xc583e0=_0x3bc572;super(_0x193fe0,_0x3b4e21,null,[],_0x19c6aa,_0x486d93,_0x3bb737,_0x2dcf7f,_0x24871d),this[_0xc583e0(0x44d)]=_0x2ea382,this[_0xc583e0(0x1c1)]=_0x5ce6c6,this[_0xc583e0(0x284)]=_0xe34151,this[_0xc583e0(0x300)]=_0x24871d,z(this,'status','synced');}[_0x3bc572(0x34d)](_0x44e010){const _0x247f59=_0x3bc572;let _0x4d3dd1=this[_0x247f59(0x44d)][_0x247f59(0x2fe)](q,this['unitID'],this[_0x247f59(0x2f0)],[_0x44e010],this[_0x247f59(0x349)]);return _0x4d3dd1[_0x247f59(0x32a)](),_0x4d3dd1[_0x247f59(0x2f5)](),_0x4d3dd1;}[_0x3bc572(0x419)](_0x4f21f5){const _0x14436c=_0x3bc572;if(this[_0x14436c(0x30e)](_0x4f21f5))return this[_0x14436c(0x44d)][_0x14436c(0x2fe)](Q,this[_0x14436c(0x399)],this['type'],null,[],null,[_0x4f21f5],this[_0x14436c(0x349)]);try{let _0x64a9e0=this['_transformService']['transformMutationsWithChangeset'](_0x4f21f5,[_0x1b64d1]);if(_0x34fd35(_0x64a9e0)){let {c1Prime:_0x23023e}=_0x64a9e0;return this[_0x14436c(0x2b6)](_0x23023e),this;}throw _0x64a9e0[_0x14436c(0x298)];}catch(_0x3ca0d3){return this[_0x14436c(0x1c1)][_0x14436c(0x298)](_0x3ca0d3),this[_0x14436c(0x3bc)](!0x1);}}[_0x3bc572(0x3bc)](_0x3fe7da){const _0x232d0d=_0x3bc572;return this['_injector'][_0x232d0d(0x2fe)](X,this[_0x232d0d(0x399)],this[_0x232d0d(0x2f0)],null,[],this[_0x232d0d(0x349)],_0x3fe7da);}[_0x3bc572(0x1fd)](_0x8ad938){const _0x556603=_0x3bc572;if(_0x8ad938[_0x556603(0x3bd)]<=this[_0x556603(0x2b2)]())return this;throw Error(_0x556603(0x29e));}['onRemoteRej'](){throw Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x3bc572(0x26a)](){const _0xa7c583=_0x3bc572;return this[_0xa7c583(0x44d)][_0xa7c583(0x2fe)](Z,this['unitID'],this[_0xa7c583(0x2f0)],null,[],this[_0xa7c583(0x349)]);}[_0x3bc572(0x230)](){return this;}['resend'](){const _0x1c6c19=_0x3bc572;throw Error(_0x1c6c19(0x1d1));}['fetchMiss'](){const _0x509056=_0x3bc572;let _0x2b52a0=this[_0x509056(0x3b1)][_0x509056(0x233)](this[_0x509056(0x399)]);return this[_0x509056(0x349)]['onMissingChangesets']({'from':_0x2b52a0,'to':0x0}),this['_injector'][_0x509056(0x2fe)](Q,this['unitID'],this[_0x509056(0x2f0)],null,[],null,[],this['_handler']);}};K=H([V(0x3,_0x167908(_0x2cb5e4)),V(0x4,_0x167908(_0x35e9e2)),V(0x5,_0x51c17f),V(0x6,_0x1f135e),V(0x7,_0x2e09c7),V(0x8,_0x29bc05),V(0x9,_0x2a5dd8(U))],K);let q=dn=class extends G{constructor(_0x436fdd,_0x2b45ee,_0x151dad,_0x3c7997,_0x4a0aaa,_0x2c0083,_0x5017fa,_0x5044a9,_0xdce33,_0x1673ae,_0x53c64b,_0x40a4a5,_0x177124,_0x1ce2e3){const _0x512115=_0x3bc572;super(_0x436fdd,_0x2b45ee,null,_0x151dad,_0x3c7997,_0xdce33,_0x177124,_0x2c0083,_0x1ce2e3),this[_0x512115(0x44d)]=_0x4a0aaa,this['_userManagerService']=_0x5017fa,this[_0x512115(0x1c1)]=_0x5044a9,this[_0x512115(0x1c9)]=_0x1673ae,this[_0x512115(0x284)]=_0x53c64b,this['_univerInstanceService']=_0x40a4a5,z(this,'status',_0x512115(0x1af)),z(this,_0x512115(0x317),null),z(this,'_sendingTimer',null);}[_0x3bc572(0x34d)](_0x1116c0){const _0x2367e4=_0x3bc572;return this['_pendingMutations'][_0x2367e4(0x250)](_0x1116c0),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x432eb0){const _0x3e186a=_0x3bc572;if(this[_0x3e186a(0x30e)](_0x432eb0))return this[_0x3e186a(0x2f1)](),this[_0x3e186a(0x44d)][_0x3e186a(0x2fe)](Q,this[_0x3e186a(0x399)],this[_0x3e186a(0x2f0)],null,this[_0x3e186a(0x321)],null,[_0x432eb0],this[_0x3e186a(0x349)]);try{let _0xb536f2=this[_0x3e186a(0x284)][_0x3e186a(0x37a)](_0x432eb0,this['_pendingMutations']);if(_0x34fd35(_0xb536f2)){let {c1Prime:_0x3fc4c5,m2Prime:_0x510014}=_0xb536f2;this[_0x3e186a(0x2b6)](_0x3fc4c5);let _0x13d8c8=this[_0x3e186a(0x44d)][_0x3e186a(0x2fe)](dn,this[_0x3e186a(0x399)],this[_0x3e186a(0x2f0)],_0x510014,this[_0x3e186a(0x349)]);this[_0x3e186a(0x2f1)]();let _0x18429a=new Date()[_0x3e186a(0x339)](),_0x36abfd=this[_0x3e186a(0x317)]?Math[_0x3e186a(0x200)](this['_scheduleCompleteTimestamp']-_0x18429a,0x0):this[_0x3e186a(0x424)]();return _0x13d8c8[_0x3e186a(0x32a)](_0x36abfd),_0x13d8c8;}throw _0xb536f2[_0x3e186a(0x298)];}catch(_0x133398){return this[_0x3e186a(0x1c1)]['error'](_0x133398),this[_0x3e186a(0x3bc)](!0x1);}}[_0x3bc572(0x1fd)](_0x529686){const _0xcab950=_0x3bc572;if(_0x529686['revision']<=this[_0xcab950(0x2b2)]())return this;throw Error(_0xcab950(0x434));}[_0x3bc572(0x38a)](){const _0xfba4fa=_0x3bc572;throw Error(_0xfba4fa(0x39a));}[_0x3bc572(0x413)](){return this;}[_0x3bc572(0x26a)](){const _0x58936e=_0x3bc572;return this['_clearScheduledTask'](),this[_0x58936e(0x44d)][_0x58936e(0x2fe)](Z,this[_0x58936e(0x399)],this[_0x58936e(0x2f0)],null,this[_0x58936e(0x321)],this['_handler']);}[_0x3bc572(0x230)](){return this;}[_0x3bc572(0x32a)](_0xda5e91){const _0x31de7b=_0x3bc572;let _0x44994a=_0xda5e91==null?this[_0x31de7b(0x424)]():_0xda5e91;this[_0x31de7b(0x317)]=new Date()['getTime']()+_0x44994a,this['_sendingTimer']=setTimeout(()=>{const _0x2357b1=_0x31de7b;this['_clearScheduledTask']();let _0x1f5127=null;switch(this[_0x2357b1(0x2f0)]){case _0x1f1b4f[_0x2357b1(0x33c)]:_0x1f5127=Zt(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this['_univerInstanceService'],this['_revisionService'],this[_0x2357b1(0x2e0)]);break;case _0x1f1b4f['UNIVER_DOC']:_0x1f5127=this['_pendingMutations']['every'](_0x56f2d6=>_0x56f2d6['id']===_0x7aa9b['id'])?en(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this[_0x2357b1(0x449)],this[_0x2357b1(0x3b1)],this[_0x2357b1(0x2e0)]):Zt(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this['_univerInstanceService'],this[_0x2357b1(0x3b1)],this['_userManagerService']);break;case _0x1f1b4f['UNIVER_SLIDE']:_0x1f5127=$t(this[_0x2357b1(0x321)],this['unitID'],this[_0x2357b1(0x449)],this[_0x2357b1(0x3b1)],this[_0x2357b1(0x2e0)]);break;case _0x1f1b4f[_0x2357b1(0x2ca)]:_0x1f5127=Qt(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this[_0x2357b1(0x449)],this['_revisionService'],this[_0x2357b1(0x2e0)]);break;case _0x1f1b4f['UNIVER_BOARD']:_0x1f5127=Zt(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this[_0x2357b1(0x449)],this['_revisionService'],this['_userManagerService']);break;case _0x1f1b4f[_0x2357b1(0x3fd)]:_0x1f5127=Zt(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this[_0x2357b1(0x449)],this[_0x2357b1(0x3b1)],this[_0x2357b1(0x2e0)]);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x2357b1(0x2f0)]+'\x20in\x20_schedule.');}let {changeset:_0x2bb61e,pendingMutations:_0x63a9c9}=_0x1f5127;this[_0x2357b1(0x349)][_0x2357b1(0x1ac)](_0x2bb61e);let _0x4fb4a4=_0x63a9c9['length']?this[_0x2357b1(0x44d)][_0x2357b1(0x2fe)](Y,this[_0x2357b1(0x399)],this['type'],_0x2bb61e,_0x63a9c9,this[_0x2357b1(0x349)],void 0x0):this['_injector'][_0x2357b1(0x2fe)](J,this[_0x2357b1(0x399)],this[_0x2357b1(0x2f0)],_0x2bb61e,this['_handler']);_0x4fb4a4['_updateLocalCache'](),this[_0x2357b1(0x349)]['onStateChange'](this,_0x4fb4a4);},_0x44994a);}[_0x3bc572(0x424)](){const _0x4d2098=_0x3bc572;var _0x24ef1f;let _0x4140e7=this[_0x4d2098(0x1c9)][_0x4d2098(0x306)](R);return(_0x24ef1f=_0x4140e7==null?void 0x0:_0x4140e7[_0x4d2098(0x418)])==null?0x7d0:_0x24ef1f;}[_0x3bc572(0x289)](){const _0x4be7b8=_0x3bc572;throw Error(_0x4be7b8(0x370));}[_0x3bc572(0x2f1)](){const _0x8b46b0=_0x3bc572;this[_0x8b46b0(0x3dd)]!=null&&(clearTimeout(this[_0x8b46b0(0x3dd)]),this[_0x8b46b0(0x3dd)]=null);}[_0x3bc572(0x3bc)](_0x5aee6c){const _0x5c1ca3=_0x3bc572;return this['_clearScheduledTask'](),this[_0x5c1ca3(0x44d)][_0x5c1ca3(0x2fe)](X,this['unitID'],this[_0x5c1ca3(0x2f0)],null,this[_0x5c1ca3(0x321)],this[_0x5c1ca3(0x349)],_0x5aee6c);}};q=dn=H([V(0x4,_0x167908(_0x35e9e2)),V(0x5,_0x167908(_0x2cb5e4)),V(0x6,_0x167908(_0x1ab04a)),V(0x7,_0x2e09c7),V(0x8,_0x1f135e),V(0x9,_0xa7a1b6),V(0xa,_0x29bc05),V(0xb,_0x6f9bb2),V(0xc,_0x51c17f),V(0xd,_0x2a5dd8(U))],q);let J=fn=class extends G{constructor(_0xc0890d,_0x440a5f,_0x40c150,_0x518e52,_0x558068,_0x2ca0fb,_0x5cd4bc,_0x49d34c,_0x3ad081,_0x3369dc,_0x18f9de){const _0x19178e=_0x3bc572;super(_0xc0890d,_0x440a5f,_0x40c150,[],_0x518e52,_0x5cd4bc,_0x3369dc,_0x2ca0fb,_0x18f9de),this[_0x19178e(0x44d)]=_0x558068,this['_logService']=_0x49d34c,this[_0x19178e(0x284)]=_0x3ad081,z(this,_0x19178e(0x443),'awaiting'),z(this,_0x19178e(0x34f),0x0),z(this,_0x19178e(0x342),0x0),z(this,_0x19178e(0x2e7),void 0x0),z(this,_0x19178e(0x320),void 0x0);}[_0x3bc572(0x34d)](_0x1142c6){const _0x4bddac=_0x3bc572;this[_0x4bddac(0x2f1)]();let _0x4130fa=this[_0x4bddac(0x44d)][_0x4bddac(0x2fe)](Y,this[_0x4bddac(0x399)],this['type'],this[_0x4bddac(0x25c)],[_0x1142c6],this[_0x4bddac(0x349)],this[_0x4bddac(0x2e7)]);return _0x4130fa[_0x4bddac(0x2f5)](),_0x4130fa;}[_0x3bc572(0x419)](_0x224e8e){const _0x5f0405=_0x3bc572;if(this[_0x5f0405(0x30e)](_0x224e8e))return this['_clearScheduledTask'](),this[_0x5f0405(0x44d)][_0x5f0405(0x2fe)](Q,this['unitID'],this[_0x5f0405(0x2f0)],this[_0x5f0405(0x25c)],[],null,[_0x224e8e],this[_0x5f0405(0x349)]);try{let _0x225aea=this['_transformService']['transformChangesets']([_0x224e8e],[this[_0x5f0405(0x25c)]],!0x1);if(_0x41af53(_0x225aea)){let {c1Prime:_0x58177a,c2Prime:_0x3af9b8}=_0x225aea;this[_0x5f0405(0x2b6)](_0x58177a[0x0]),_0x3af9b8[0x0][_0x5f0405(0x2eb)]=this[_0x5f0405(0x2b2)](),this[_0x5f0405(0x2f1)]();let _0x970271=this[_0x5f0405(0x44d)]['createInstance'](fn,this[_0x5f0405(0x399)],this[_0x5f0405(0x2f0)],_0x3af9b8[0x0],this['_handler']);return _0x970271[_0x5f0405(0x2f5)](),_0x970271;}throw _0x225aea[_0x5f0405(0x298)];}catch(_0x2f4546){return this[_0x5f0405(0x1c1)]['error'](_0x2f4546),this[_0x5f0405(0x3bc)](!0x1);}}[_0x3bc572(0x1fd)](_0xc8a96d){const _0x5e6f23=_0x3bc572;this[_0x5e6f23(0x2f1)]();let _0x3d585e=this[_0x5e6f23(0x3b1)][_0x5e6f23(0x233)](this[_0x5e6f23(0x399)]);if(_0xc8a96d['revision']<=_0x3d585e)return this;if(this[_0x5e6f23(0x30e)](_0xc8a96d))return this[_0x5e6f23(0x44d)][_0x5e6f23(0x2fe)](Q,this[_0x5e6f23(0x399)],this[_0x5e6f23(0x2f0)],this['_awaitingChangeset'],[],_0xc8a96d[_0x5e6f23(0x3bd)],[],this[_0x5e6f23(0x349)]);this[_0x5e6f23(0x433)]();let _0x498370=this[_0x5e6f23(0x44d)][_0x5e6f23(0x2fe)](K,this[_0x5e6f23(0x399)],this['type'],this[_0x5e6f23(0x349)]);return _0x498370[_0x5e6f23(0x2f5)](),_0x498370;}[_0x3bc572(0x38a)](_0x4327a7){const _0x216248=_0x3bc572;return this[_0x216248(0x3bc)](!!(_0x4327a7!=null&&_0x4327a7[_0x216248(0x391)]));}[_0x3bc572(0x413)](_0x456a76){const _0x1233a6=_0x3bc572;return this[_0x1233a6(0x342)]>gn?this['toggleOffline']():(this['_resendTimer']=un(this[_0x1233a6(0x34f)],{'timeout':this[_0x1233a6(0x34f)],'reqId':_0x456a76[_0x1233a6(0x22b)]}),this[_0x1233a6(0x320)]=this[_0x1233a6(0x2e7)][_0x1233a6(0x368)](({reqId:_0x1b5f3e,timeout:_0x1b343b})=>{const _0x2133a4=_0x1233a6;this[_0x2133a4(0x1cd)](_0x1b5f3e,_0x1b343b);}),this);}[_0x3bc572(0x26a)](){const _0x2a8ffa=_0x3bc572;return this[_0x2a8ffa(0x2f1)](),this['_injector'][_0x2a8ffa(0x2fe)](Z,this[_0x2a8ffa(0x399)],this[_0x2a8ffa(0x2f0)],this[_0x2a8ffa(0x25c)],[],this[_0x2a8ffa(0x349)]);}['toggleOnline'](){return this;}[_0x3bc572(0x289)](){const _0x2f5378=_0x3bc572;this[_0x2f5378(0x349)][_0x2f5378(0x1ac)](this['_awaitingChangeset']);}[_0x3bc572(0x3bc)](_0x4605be){const _0x3eee3d=_0x3bc572;return this[_0x3eee3d(0x2f1)](),this[_0x3eee3d(0x44d)][_0x3eee3d(0x2fe)](X,this[_0x3eee3d(0x399)],this['type'],this[_0x3eee3d(0x25c)],[],this[_0x3eee3d(0x349)],_0x4605be);}['_resendWithTimeout'](_0x52b3db,_0x31a0df){const _0x22d3d7=_0x3bc572;var _0x31a873;_0x52b3db===((_0x31a873=this[_0x22d3d7(0x25c)])==null?void 0x0:_0x31a873[_0x22d3d7(0x22b)])&&(this[_0x22d3d7(0x289)](),this[_0x22d3d7(0x34f)]=_0x31a0df===0x0?0x3e8:Math[_0x22d3d7(0x361)](_0x31a0df*0x2,hn),this[_0x22d3d7(0x342)]+=this[_0x22d3d7(0x34f)]);}['_clearScheduledTask'](){const _0x6964a3=_0x3bc572;var _0x175c32;(_0x175c32=this['_sender'])==null||_0x175c32['unsubscribe'](),this[_0x6964a3(0x34f)]=0x0,this[_0x6964a3(0x342)]=0x0;}};J=fn=H([V(0x4,_0x167908(_0x35e9e2)),V(0x5,_0x167908(_0x2cb5e4)),V(0x6,_0x1f135e),V(0x7,_0x2e09c7),V(0x8,_0x29bc05),V(0x9,_0x51c17f),V(0xa,_0x2a5dd8(U))],J);let Y=pn=class extends G{constructor(_0x40c54b,_0x28c7f8,_0x13e26b,_0x5e406e,_0x10d86c,_0x3dfb21,_0x9b0053,_0x58a19a,_0x546f7b,_0x1cbba9,_0x3d8be1,_0x1374fe,_0x42f9ee){const _0x367900=_0x3bc572;super(_0x40c54b,_0x28c7f8,_0x13e26b,_0x5e406e,_0x10d86c,_0x546f7b,_0x1374fe,_0x58a19a,_0x42f9ee),this[_0x367900(0x44d)]=_0x9b0053,this[_0x367900(0x1c1)]=_0x1cbba9,this[_0x367900(0x284)]=_0x3d8be1,this[_0x367900(0x300)]=_0x42f9ee,z(this,_0x367900(0x443),_0x367900(0x35e)),z(this,'_resendTimeout',0x0),z(this,_0x367900(0x342),0x0),z(this,_0x367900(0x2e7),void 0x0),z(this,_0x367900(0x320),void 0x0),_0x3dfb21&&(this[_0x367900(0x2e7)]=_0x3dfb21,this['_sender']=this[_0x367900(0x2e7)][_0x367900(0x368)](({reqId:_0x1c5bc8,timeout:_0x32b8a2})=>{this['_resendWithTimeout'](_0x1c5bc8,_0x32b8a2);}));}['appendMutation'](_0x1bc6ec){const _0x5b6dc7=_0x3bc572;return this[_0x5b6dc7(0x321)][_0x5b6dc7(0x250)](_0x1bc6ec),this;}['onRemoteChangeset'](_0x40f30b){const _0x2feb80=_0x3bc572;if(this['_checkMissing'](_0x40f30b))return this['_clearScheduledTask'](),this['_injector'][_0x2feb80(0x2fe)](Q,this[_0x2feb80(0x399)],this[_0x2feb80(0x2f0)],this[_0x2feb80(0x25c)],this[_0x2feb80(0x321)],null,[_0x40f30b],this[_0x2feb80(0x349)]);try{let _0x1d7641=this[_0x2feb80(0x284)][_0x2feb80(0x1f2)]([_0x40f30b],[this[_0x2feb80(0x25c)]],!0x1);if(_0x41af53(_0x1d7641)){let {c1Prime:_0x905a8a,c2Prime:_0x3b8545}=_0x1d7641,_0x35e187=this[_0x2feb80(0x284)][_0x2feb80(0x37a)](_0x905a8a[0x0],this[_0x2feb80(0x321)]);if(_0x34fd35(_0x35e187)){let {c1Prime:_0x5c7cb1,m2Prime:_0x150589}=_0x35e187;return this['_executeRemoteChangeset'](_0x5c7cb1),_0x3b8545[0x0][_0x2feb80(0x2eb)]=this[_0x2feb80(0x2b2)](),this[_0x2feb80(0x2f1)](),this[_0x2feb80(0x44d)]['createInstance'](pn,this[_0x2feb80(0x399)],this[_0x2feb80(0x2f0)],_0x3b8545[0x0],_0x150589,this[_0x2feb80(0x349)],void 0x0);}throw _0x35e187[_0x2feb80(0x298)];}throw _0x1d7641[_0x2feb80(0x298)];}catch(_0x351b64){return this['_logService'][_0x2feb80(0x298)](_0x351b64),this[_0x2feb80(0x3bc)](!0x1);}}[_0x3bc572(0x1fd)](_0x323294){const _0x2325ca=_0x3bc572;this[_0x2325ca(0x2f1)]();let _0x2817d3=this[_0x2325ca(0x2b2)]();if(_0x323294[_0x2325ca(0x3bd)]<=_0x2817d3)return this;if(this[_0x2325ca(0x30e)](_0x323294))return this[_0x2325ca(0x44d)][_0x2325ca(0x2fe)](Q,this[_0x2325ca(0x399)],this['type'],this[_0x2325ca(0x25c)],this[_0x2325ca(0x321)],_0x323294[_0x2325ca(0x3bd)],[],this[_0x2325ca(0x349)]);this[_0x2325ca(0x433)]();let _0x50fcc6=this[_0x2325ca(0x44d)][_0x2325ca(0x2fe)](q,this['unitID'],this['type'],this[_0x2325ca(0x321)],this[_0x2325ca(0x349)]);return _0x50fcc6['_schedule'](),_0x50fcc6[_0x2325ca(0x2f5)](),_0x50fcc6;}[_0x3bc572(0x38a)](_0x4b91d8){const _0x357879=_0x3bc572;return this[_0x357879(0x3bc)](!!(_0x4b91d8!=null&&_0x4b91d8[_0x357879(0x391)]));}[_0x3bc572(0x413)](_0x233c4c){const _0x33daa3=_0x3bc572;return this['_maxTotalRetryTimeout']>gn?this['toggleOffline']():(this[_0x33daa3(0x2e7)]=un(this[_0x33daa3(0x34f)],{'timeout':this[_0x33daa3(0x34f)],'reqId':_0x233c4c[_0x33daa3(0x22b)]}),this[_0x33daa3(0x320)]=this[_0x33daa3(0x2e7)][_0x33daa3(0x368)](({reqId:_0xf05885,timeout:_0x15ec91})=>{const _0x5c9f10=_0x33daa3;this[_0x5c9f10(0x1cd)](_0xf05885,_0x15ec91);}),this);}[_0x3bc572(0x26a)](){const _0x1d1143=_0x3bc572;return this[_0x1d1143(0x2f1)](),this['_injector'][_0x1d1143(0x2fe)](Z,this['unitID'],this['type'],this[_0x1d1143(0x25c)],this[_0x1d1143(0x321)],this[_0x1d1143(0x349)]);}[_0x3bc572(0x230)](){return this;}['resend'](){const _0x31efb8=_0x3bc572;this[_0x31efb8(0x349)][_0x31efb8(0x1ac)](this['_awaitingChangeset']);}[_0x3bc572(0x3bc)](_0xc6b02a){const _0x42ee77=_0x3bc572;return this[_0x42ee77(0x2f1)](),this[_0x42ee77(0x44d)][_0x42ee77(0x2fe)](X,this[_0x42ee77(0x399)],this[_0x42ee77(0x2f0)],null,this['_pendingMutations'],this['_handler'],_0xc6b02a);}[_0x3bc572(0x1cd)](_0x3a8ea2,_0x35077d){const _0x3f64b8=_0x3bc572;var _0x2ce4cb;_0x3a8ea2===((_0x2ce4cb=this[_0x3f64b8(0x25c)])==null?void 0x0:_0x2ce4cb[_0x3f64b8(0x22b)])&&(this['resend'](),this[_0x3f64b8(0x34f)]=_0x35077d===0x0?0x3e8:Math[_0x3f64b8(0x361)](_0x35077d*0x2,hn),this[_0x3f64b8(0x342)]+=this['_resendTimeout']);}[_0x3bc572(0x2f1)](){const _0x2e4961=_0x3bc572;var _0x148598;(_0x148598=this[_0x2e4961(0x320)])==null||_0x148598['unsubscribe'](),this[_0x2e4961(0x34f)]=0x0,this[_0x2e4961(0x342)]=0x0;}};Y=pn=H([V(0x6,_0x167908(_0x35e9e2)),V(0x7,_0x167908(_0x2cb5e4)),V(0x8,_0x1f135e),V(0x9,_0x2e09c7),V(0xa,_0x29bc05),V(0xb,_0x51c17f),V(0xc,_0x2a5dd8(U))],Y);let X=class extends G{constructor(_0xb0a240,_0x228080,_0x4b9d61,_0x37de91,_0x35b607,_0x532b40=!0x1,_0x2b63ca,_0x5a1bfa,_0x507131,_0x402147,_0x3018ec,_0xca040e,_0x24e3fb){const _0x528483=_0x3bc572;super(_0xb0a240,_0x228080,_0x4b9d61,_0x37de91,_0x35b607,_0x5a1bfa,_0x507131,_0x402147,_0x24e3fb),this[_0x528483(0x2da)]=_0x532b40,this[_0x528483(0x1cb)]=_0x2b63ca,this['_localeService']=_0x3018ec,this[_0x528483(0x33e)]=_0xca040e,this[_0x528483(0x300)]=_0x24e3fb,z(this,_0x528483(0x443),_0x528483(0x22a)),this[_0x528483(0x3e6)](),this['_clearLocalCache'](),this['_disableEditing']();}[_0x3bc572(0x34d)](){return this;}[_0x3bc572(0x419)](){return this;}[_0x3bc572(0x1fd)](){return this;}[_0x3bc572(0x38a)](){return this;}[_0x3bc572(0x413)](){return this;}[_0x3bc572(0x26a)](){return this;}[_0x3bc572(0x230)](){return this;}[_0x3bc572(0x289)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3bc572(0x229)](){const _0x5cd7c0=_0x3bc572;var _0x2e369f,_0x2899b6,_0x96e06;(_0x2e369f=this[_0x5cd7c0(0x422)])==null||(_0x2899b6=_0x2e369f[_0x5cd7c0(0x267)])==null||(_0x2899b6=_0x2899b6['call'](_0x2e369f,this['unitID'],_0x5cd7c0(0x22a)))==null||_0x2899b6['catch'](()=>void 0x0),(_0x96e06=this[_0x5cd7c0(0x422)])==null||_0x96e06[_0x5cd7c0(0x29d)](this[_0x5cd7c0(0x399)],this[_0x5cd7c0(0x2f0)],null,[]);}[_0x3bc572(0x3e6)](){const _0x243976=_0x3bc572;this['_isPermissionRej']?this[_0x243976(0x33e)][_0x243976(0x340)]({'id':_0x243976(0x2ab)}):this[_0x243976(0x33e)][_0x243976(0x340)]({'id':_0x243976(0x39c)});}[_0x3bc572(0x1d6)](){const _0x345c9a=_0x3bc572;this[_0x345c9a(0x1cb)][_0x345c9a(0x429)](new _0x3d21fe(this[_0x345c9a(0x399)])['id'],!0x1);}};X=H([V(0x6,_0x167908(_0x3058fc)),V(0x7,_0x1f135e),V(0x8,_0x51c17f),V(0x9,_0x167908(_0x2cb5e4)),V(0xa,_0x167908(_0x3b5f18)),V(0xb,_0x167908(B)),V(0xc,_0x2a5dd8(U))],X);let Z=class extends G{constructor(_0x102cc1,_0x41a25a,_0x391f61,_0x315bd0,_0x5b7f17,_0x450a10,_0x2a6560,_0x32183c,_0x3b72e7,_0x155a71){const _0x141176=_0x3bc572;super(_0x102cc1,_0x41a25a,_0x391f61,_0x315bd0,_0x5b7f17,_0x32183c,_0x3b72e7,_0x2a6560,_0x155a71),this[_0x141176(0x44d)]=_0x450a10,z(this,_0x141176(0x443),'offline');}[_0x3bc572(0x34d)](_0x4590f5){const _0x5b0052=_0x3bc572;return this[_0x5b0052(0x321)][_0x5b0052(0x250)](_0x4590f5),this[_0x5b0052(0x2f5)](),this;}[_0x3bc572(0x419)](_0x4c059e){const _0x1664a1=_0x3bc572;throw Error(_0x1664a1(0x39f));}['onRemoteAck'](){const _0x5316ec=_0x3bc572;throw Error(_0x5316ec(0x2fd));}[_0x3bc572(0x38a)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x3bc572(0x413)](){return this;}[_0x3bc572(0x26a)](){return this;}['toggleOnline'](){const _0x310d63=_0x3bc572;let {_injector:_0x39210b,_pendingMutations:_0x295daa,_awaitingChangeset:_0x18406,unitID:_0x13cc7b,_handler:_0x1e910a,type:_0x518b56}=this,_0x223a66=_n(_0x39210b,_0x13cc7b,_0x518b56,_0x18406,_0x295daa,_0x1e910a);return _0x223a66 instanceof q?_0x223a66[_0x310d63(0x32a)]():(_0x223a66 instanceof Y||_0x223a66 instanceof J)&&_0x223a66['resend'](),_0x223a66;}[_0x3bc572(0x289)](){const _0x2404e6=_0x3bc572;throw Error(_0x2404e6(0x350));}};Z=H([V(0x5,_0x167908(_0x35e9e2)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x1f135e),V(0x8,_0x51c17f),V(0x9,_0x2a5dd8(U))],Z);let Q=class extends G{constructor(_0xc4276c,_0x177ed2,_0x272334,_0xbfd6b6,_0x31a91a,_0x13bf9,_0x2eda27,_0x13cc46,_0x38d536,_0x4efb6d,_0x8acefe,_0x596f97,_0x41783d,_0x5a68e5){const _0x5b99f8=_0x3bc572;super(_0xc4276c,_0x177ed2,_0x272334,_0xbfd6b6,_0x2eda27,_0x8acefe,_0x596f97,_0x38d536,_0x5a68e5),this[_0x5b99f8(0x2b7)]=_0x31a91a,this[_0x5b99f8(0x2e9)]=_0x13bf9,this[_0x5b99f8(0x44d)]=_0x13cc46,this[_0x5b99f8(0x1c1)]=_0x4efb6d,this[_0x5b99f8(0x284)]=_0x41783d,this[_0x5b99f8(0x300)]=_0x5a68e5,z(this,_0x5b99f8(0x443),_0x5b99f8(0x2b0));}[_0x3bc572(0x332)](_0x35c7e5){const _0x1c7e88=_0x3bc572;try{if(this[_0x1c7e88(0x1e5)](_0x35c7e5)[_0x1c7e88(0x338)])throw Error(_0x1c7e88(0x31b));if(this[_0x1c7e88(0x1e5)]([...this[_0x1c7e88(0x2e9)]][_0x1c7e88(0x276)]((_0x1d663f,_0xf8394d)=>_0x1d663f['revision']-_0xf8394d[_0x1c7e88(0x3bd)]))['missingChangesets'])return this[_0x1c7e88(0x2e9)]=[],this[_0x1c7e88(0x2f5)](),this[_0x1c7e88(0x349)][_0x1c7e88(0x42a)]({'from':this[_0x1c7e88(0x2b2)](),'to':0x0}),this;let _0x152b53=this[_0x1c7e88(0x25c)],_0x42b756=this[_0x1c7e88(0x321)],_0x5c6fc4;if(_0x152b53&&_0x42b756[_0x1c7e88(0x28d)]!==0x0)_0x5c6fc4=this['_injector']['createInstance'](Y,this[_0x1c7e88(0x399)],this[_0x1c7e88(0x2f0)],_0x152b53,_0x42b756,this[_0x1c7e88(0x349)],void 0x0);else{if(_0x152b53&&_0x42b756[_0x1c7e88(0x28d)]===0x0)_0x152b53[_0x1c7e88(0x2eb)]=this[_0x1c7e88(0x2b2)](),_0x5c6fc4=this['_injector'][_0x1c7e88(0x2fe)](J,this[_0x1c7e88(0x399)],this[_0x1c7e88(0x2f0)],_0x152b53,this[_0x1c7e88(0x349)]);else{if(_0x42b756[_0x1c7e88(0x28d)]!==0x0){let _0xa1073a=this[_0x1c7e88(0x44d)]['createInstance'](q,this[_0x1c7e88(0x399)],this[_0x1c7e88(0x2f0)],_0x42b756,this['_handler']);_0xa1073a[_0x1c7e88(0x32a)](),_0x5c6fc4=_0xa1073a;}else _0x5c6fc4=this['_injector'][_0x1c7e88(0x2fe)](K,this[_0x1c7e88(0x399)],this[_0x1c7e88(0x2f0)],this[_0x1c7e88(0x349)]);}}return _0x5c6fc4[_0x1c7e88(0x2f5)](),_0x5c6fc4;}catch(_0x12d719){return this['_logService'][_0x1c7e88(0x298)](_0x1c7e88(0x3c7),_0x1c7e88(0x1f8),_0x12d719),this['_injector']['createInstance'](X,this[_0x1c7e88(0x399)],this[_0x1c7e88(0x2f0)],this[_0x1c7e88(0x25c)],this[_0x1c7e88(0x321)],this[_0x1c7e88(0x349)],!0x1);}}[_0x3bc572(0x1e5)](_0xf2e7de){const _0x2def73=_0x3bc572;this[_0x2def73(0x260)]();for(let _0x6cdb7c=0x0;_0x6cdb7c<_0xf2e7de[_0x2def73(0x28d)];_0x6cdb7c++){let _0x5a078e=_0xf2e7de[_0x6cdb7c],_0x382d40=this[_0x2def73(0x2b2)]();if(!(_0x5a078e[_0x2def73(0x3bd)]<=_0x382d40)){if(_0x5a078e[_0x2def73(0x3bd)]>_0x382d40+0x1)return{'missingChangesets':!0x0};if(this[_0x2def73(0x2d5)](_0x5a078e)){this[_0x2def73(0x38e)]();continue;}this[_0x2def73(0x394)](_0x5a078e),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x3bc572(0x394)](_0x263f1d){const _0x348fba=_0x3bc572;let _0x5186a9=_0x263f1d,_0x2bb647=this[_0x348fba(0x25c)];if(_0x2bb647){let _0x3b96a1=this[_0x348fba(0x284)]['transformChangesets']([_0x263f1d],[_0x2bb647],!0x1);if(!_0x41af53(_0x3b96a1))throw _0x3b96a1[_0x348fba(0x298)];_0x5186a9=_0x3b96a1[_0x348fba(0x435)][0x0],_0x2bb647=_0x3b96a1[_0x348fba(0x234)][0x0];}let _0x4649c7=this['_pendingMutations'];if(_0x4649c7[_0x348fba(0x28d)]){let _0x16717c=this[_0x348fba(0x284)]['transformMutationsWithChangeset'](_0x5186a9,_0x4649c7);if(!_0x34fd35(_0x16717c))throw _0x16717c[_0x348fba(0x298)];_0x5186a9=_0x16717c['c1Prime'],_0x4649c7=_0x16717c[_0x348fba(0x296)];}this['_executeRemoteChangeset'](_0x5186a9),_0x2bb647&&(_0x2bb647['baseRev']=this[_0x348fba(0x2b2)]()),this[_0x348fba(0x25c)]=_0x2bb647,this['_pendingMutations']=_0x4649c7;}[_0x3bc572(0x260)](){const _0x280f2f=_0x3bc572;if(!this[_0x280f2f(0x25c)]||this[_0x280f2f(0x2b7)]==null)return;let _0x27a4e5=this[_0x280f2f(0x2b2)]();if(this['_acknowledgedAwaitingRevision']<=_0x27a4e5)throw Error(_0x280f2f(0x3ca)+this['_acknowledgedAwaitingRevision']+'.');this[_0x280f2f(0x2b7)]===_0x27a4e5+0x1&&this['_acknowledgeAwaiting']();}[_0x3bc572(0x38e)](){const _0x509cfa=_0x3bc572;this['_incrementRevisionNumber'](),this['_awaitingChangeset']=null,this[_0x509cfa(0x2b7)]=null;}['_isEchoedAwaitingChangeset'](_0x5dbd46){const _0x1d0e17=_0x3bc572;let _0x5b2824=this[_0x1d0e17(0x25c)];return!_0x5b2824||!_0x5b2824[_0x1d0e17(0x2e5)]||_0x5b2824[_0x1d0e17(0x22b)]===null||_0x5b2824[_0x1d0e17(0x22b)]===void 0x0?!0x1:_0x5dbd46[_0x1d0e17(0x399)]===_0x5b2824[_0x1d0e17(0x399)]&&_0x5dbd46[_0x1d0e17(0x2e5)]===_0x5b2824[_0x1d0e17(0x2e5)]&&_0x5dbd46[_0x1d0e17(0x22b)]===_0x5b2824[_0x1d0e17(0x22b)];}[_0x3bc572(0x289)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3bc572(0x34d)](_0x59b116){const _0x195bc6=_0x3bc572;return this[_0x195bc6(0x321)][_0x195bc6(0x250)](_0x59b116),this;}[_0x3bc572(0x419)](_0x36c2da){const _0x12f95c=_0x3bc572;return this[_0x12f95c(0x2e9)]['push'](_0x36c2da),this;}[_0x3bc572(0x1fd)](_0x533a21){const _0x317150=_0x3bc572;if(this[_0x317150(0x25c)]){let _0x2f10b1=this[_0x317150(0x2b2)]();return _0x533a21[_0x317150(0x3bd)]<=_0x2f10b1||(_0x2f10b1+0x1===_0x533a21[_0x317150(0x3bd)]?(this[_0x317150(0x433)](),this[_0x317150(0x25c)]=null,this[_0x317150(0x2b7)]=null):this[_0x317150(0x2b7)]=_0x533a21['revision']),this;}if(_0x533a21[_0x317150(0x3bd)]<=this['_getCurrentRevision']())return this;throw Error(_0x317150(0x3ef));}[_0x3bc572(0x38a)](_0x47caa6){const _0x258514=_0x3bc572;return this['_onConflict'](!!(_0x47caa6!=null&&_0x47caa6[_0x258514(0x391)]));}['onRemoteRetry'](){return this;}[_0x3bc572(0x26a)](){const _0x531b67=_0x3bc572;return this[_0x531b67(0x44d)]['createInstance'](Z,this[_0x531b67(0x399)],this['type'],this['_awaitingChangeset'],this[_0x531b67(0x321)],this[_0x531b67(0x349)]);}['toggleOnline'](){return this;}[_0x3bc572(0x3bc)](_0x4fc784){const _0x79c8aa=_0x3bc572;return this[_0x79c8aa(0x44d)]['createInstance'](X,this['unitID'],this[_0x79c8aa(0x2f0)],this[_0x79c8aa(0x25c)],this[_0x79c8aa(0x321)],this[_0x79c8aa(0x349)],_0x4fc784);}};Q=H([V(0x7,_0x167908(_0x35e9e2)),V(0x8,_0x167908(_0x2cb5e4)),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x51c17f),V(0xc,_0x29bc05),V(0xd,_0x2a5dd8(U))],Q);function _n(_0x324f3a,_0x455098,_0x4c4d27,_0x19fe45,_0x185f2c,_0x58a82a){const _0x17a5d0=_0x3bc572;return _0x19fe45&&_0x185f2c[_0x17a5d0(0x28d)]?_0x324f3a[_0x17a5d0(0x2fe)](Y,_0x455098,_0x4c4d27,_0x19fe45,_0x185f2c,_0x58a82a,void 0x0):_0x19fe45?_0x324f3a[_0x17a5d0(0x2fe)](J,_0x455098,_0x4c4d27,_0x19fe45,_0x58a82a):_0x185f2c[_0x17a5d0(0x28d)]?_0x324f3a[_0x17a5d0(0x2fe)](q,_0x455098,_0x4c4d27,_0x185f2c,_0x58a82a):_0x324f3a[_0x17a5d0(0x2fe)](K,_0x455098,_0x4c4d27,_0x58a82a);}let $=class extends _0x4ca998{get[_0x3bc572(0x2f9)](){const _0x212655=_0x3bc572;return this[_0x212655(0x1ae)];}constructor(_0x264a60,_0x557c9c,_0x453bcd,_0x400b4c,_0x398753,_0x5406f7,_0x447f7a,_0xfdda42,_0x3e78a9,_0x93df92,_0x49cf90,_0xe196d3,_0x115bf7,_0xa3e110){const _0x26421f=_0x3bc572;super(),this[_0x26421f(0x399)]=_0x264a60,this['session']=_0x557c9c,this[_0x26421f(0x26b)]=_0x453bcd,this[_0x26421f(0x44d)]=_0x400b4c,this[_0x26421f(0x1ee)]=_0x398753,this[_0x26421f(0x385)]=_0x5406f7,this['_revisionService']=_0x447f7a,this[_0x26421f(0x374)]=_0xfdda42,this[_0x26421f(0x449)]=_0x3e78a9,this[_0x26421f(0x1c1)]=_0x93df92,this[_0x26421f(0x39d)]=_0x49cf90,this[_0x26421f(0x1cb)]=_0xe196d3,this[_0x26421f(0x1ff)]=_0x115bf7,this[_0x26421f(0x422)]=_0xa3e110,z(this,_0x26421f(0x357),new _0x31b85e(null)),z(this,_0x26421f(0x2e3),this[_0x26421f(0x357)][_0x26421f(0x43c)]()),z(this,_0x26421f(0x1ae),void 0x0),z(this,'_collaborationPaused',!0x1),z(this,_0x26421f(0x448),''),z(this,_0x26421f(0x3c8),0x0),z(this,_0x26421f(0x1d2),this[_0x26421f(0x2e3)][_0x26421f(0x264)](_0xdcb41d(_0x389a79=>_0x389a79?_0x389a79['status']:_0x26421f(0x3ac)),_0x238a10({'bufferSize':0x1,'refCount':!0x0}))),z(this,'_transitionLocked',!0x1),z(this,_0x26421f(0x220),[]);}async['init'](){const _0x4187b8=_0x3bc572;if(this[_0x4187b8(0x2f9)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x3bc572(0x315)](){const _0x5547e3=_0x3bc572;return this[_0x5547e3(0x42e)]=!0x0,_0x11df70(()=>{const _0x3618f8=_0x5547e3;this[_0x3618f8(0x42e)]=!0x1,this[_0x3618f8(0x3a3)]();});}[_0x3bc572(0x38c)](_0x4c08ce){this['_onLocalMutation'](_0x4c08ce);}[_0x3bc572(0x353)](_0x48dcf7){const _0x4cf36d=_0x3bc572;this['_state']=_0x48dcf7,this[_0x4cf36d(0x357)][_0x4cf36d(0x2c7)](_0x48dcf7);}async['_init'](){const _0x296016=_0x3bc572;if(this[_0x296016(0x353)](await this[_0x296016(0x442)]()),this[_0x296016(0x1ff)]){var _0x220df5;(_0x220df5=this[_0x296016(0x1ff)])==null||_0x220df5[_0x296016(0x204)](this[_0x296016(0x399)]),this[_0x296016(0x21b)](this[_0x296016(0x1ff)]['getUnitStatus$'](this[_0x296016(0x399)])[_0x296016(0x368)](_0x199f6c=>{const _0x257b7e=_0x296016;this[_0x257b7e(0x1c1)][_0x257b7e(0x305)](_0x257b7e(0x3da),'editing\x20status\x20changed\x20to',_0x199f6c),_0x199f6c===0x1?(this['_eventService'][_0x257b7e(0x340)]({'id':_0x257b7e(0x35b)}),this[_0x257b7e(0x1cb)][_0x257b7e(0x429)](new _0x3d21fe(this[_0x257b7e(0x399)])['id'],!0x1),this[_0x257b7e(0x1cb)][_0x257b7e(0x27e)](!0x1)):(this[_0x257b7e(0x1cb)][_0x257b7e(0x429)](new _0x3d21fe(this[_0x257b7e(0x399)])['id'],!0x0),this[_0x257b7e(0x1cb)][_0x257b7e(0x27e)](!0x0));}));}let _0x2b09dc=!0x1;return this['disposeWithMe'](this[_0x296016(0x431)][_0x296016(0x1d9)]['subscribe'](_0x56f9c5=>{const _0x48b63f=_0x296016;_0x56f9c5===0x3?this[_0x48b63f(0x2a5)](_0x2b09dc):_0x56f9c5===0x2&&(_0x2b09dc=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x296016(0x431)][_0x296016(0x396)][_0x296016(0x368)](_0x2dfa61=>{const _0x547330=_0x296016;try{switch(_0x2dfa61[_0x547330(0x313)]){case _0x7dd1cb[_0x547330(0x301)]:this[_0x547330(0x20d)](_0x4823fa(_0x2dfa61[_0x547330(0x2c6)]));break;case _0x7dd1cb[_0x547330(0x25d)]:this[_0x547330(0x272)](_0x2dfa61['data']);break;case _0x7dd1cb[_0x547330(0x2c3)]:this[_0x547330(0x44f)]();break;case _0x7dd1cb[_0x547330(0x257)]:this[_0x547330(0x44e)](_0x2dfa61[_0x547330(0x2c6)]);break;case _0x7dd1cb['PSEUDO_FETCH_MISSING_RESULT']:this[_0x547330(0x420)](_0x2dfa61[_0x547330(0x2c6)][_0x547330(0x23e)][_0x547330(0x239)](_0x30d8e9=>_0x4823fa(_0x30d8e9)));break;case _0x7dd1cb['PERMISSION_REJ']:this[_0x547330(0x44f)]({'isPermissionRej':!0x0});break;case _0x7dd1cb[_0x547330(0x31d)]:break;}}catch(_0x332af0){throw console[_0x547330(0x298)](_0x547330(0x35c),_0x332af0),_0x332af0;}})),this[_0x296016(0x1ae)];}['_unlockTransition'](){const _0x1864d8=_0x3bc572;this[_0x1864d8(0x327)]=!0x1;}[_0x3bc572(0x279)](){const _0xe3f17e=_0x3bc572;if(this[_0xe3f17e(0x327)])throw Error(_0xe3f17e(0x2f6));this[_0xe3f17e(0x327)]=!0x0;}[_0x3bc572(0x2ee)](_0x491fe3){const _0x1aaf8a=_0x3bc572;this['_lockTransition'](),this[_0x1aaf8a(0x353)](this['_state']['appendMutation'](_0x491fe3)),this[_0x1aaf8a(0x43b)]();}[_0x3bc572(0x20d)](_0x42127f){const _0x1c32e4=_0x3bc572;if(!(_0x42127f[_0x1c32e4(0x3bd)]<=this['_revisionService'][_0x1c32e4(0x233)](this['unitID']))){if(this[_0x1c32e4(0x42e)]){this[_0x1c32e4(0x220)][_0x1c32e4(0x250)](_0x42127f);return;}this[_0x1c32e4(0x24e)](_0x42127f);}}[_0x3bc572(0x3a3)](){const _0xb3d687=_0x3bc572;this[_0xb3d687(0x220)]['forEach'](_0x31bafc=>this[_0xb3d687(0x24e)](_0x31bafc)),this[_0xb3d687(0x220)]=[];}[_0x3bc572(0x24e)](_0x3ca1bb){const _0xa5b664=_0x3bc572;let _0x5c3361=this[_0xa5b664(0x1ee)]['interceptor'][_0xa5b664(0x1fb)](this[_0xa5b664(0x1ee)][_0xa5b664(0x381)][_0xa5b664(0x3b8)]()['COMPRESS_MUTATION_APPLY'])(_0x3ca1bb[_0xa5b664(0x227)],null)||_0x3ca1bb[_0xa5b664(0x227)],_0x317bb2={..._0x3ca1bb,'mutations':_0x5c3361};this[_0xa5b664(0x279)](),this['_updateState'](this[_0xa5b664(0x1ae)]['onRemoteChangeset'](_0x317bb2)),this[_0xa5b664(0x43b)]();}['_onRemoteACK'](_0xfc5a74){const _0x4218a4=_0x3bc572;this[_0x4218a4(0x279)](),this['_updateState'](this[_0x4218a4(0x1ae)][_0x4218a4(0x1fd)](_0xfc5a74)),this[_0x4218a4(0x43b)]();}[_0x3bc572(0x44f)](_0x3ee965){const _0x39e948=_0x3bc572;this[_0x39e948(0x279)](),this[_0x39e948(0x353)](this[_0x39e948(0x1ae)][_0x39e948(0x38a)](_0x3ee965)),this[_0x39e948(0x43b)]();}[_0x3bc572(0x44e)](_0x2eb247){const _0x550211=_0x3bc572;this[_0x550211(0x279)](),this['_updateState'](this[_0x550211(0x1ae)][_0x550211(0x413)](_0x2eb247)),this[_0x550211(0x43b)]();}[_0x3bc572(0x420)](_0xbcffd5){const _0xd50e28=_0x3bc572;if(!(this[_0xd50e28(0x1ae)]instanceof Q))throw TypeError(_0xd50e28(0x3e2));let _0x36d1f0=_0xbcffd5[_0xd50e28(0x239)](_0x2ada7a=>{const _0x642b70=_0xd50e28;let _0x1c4514=this[_0x642b70(0x1ee)][_0x642b70(0x381)][_0x642b70(0x1fb)](this['_compressMutationService'][_0x642b70(0x381)][_0x642b70(0x3b8)]()['COMPRESS_MUTATION_APPLY'])(_0x2ada7a[_0x642b70(0x227)],null)||_0x2ada7a['mutations'];return{..._0x2ada7a,'mutations':_0x1c4514};});this[_0xd50e28(0x279)](),this['_updateState'](this['_state'][_0xd50e28(0x332)](_0x36d1f0)),this['_unlockTransition']();}[_0x3bc572(0x218)](){const _0x3b34f7=_0x3bc572;this[_0x3b34f7(0x279)](),this['_updateState'](this[_0x3b34f7(0x1ae)][_0x3b34f7(0x26a)]()),this['_unlockTransition']();}[_0x3bc572(0x2a5)](_0x4fa30c=!0x1){const _0x15aaeb=_0x3bc572;this[_0x15aaeb(0x279)](),this[_0x15aaeb(0x353)](this[_0x15aaeb(0x1ae)][_0x15aaeb(0x230)]()),this[_0x15aaeb(0x43b)]();let _0x304ce3=this[_0x15aaeb(0x1ae)];_0x4fa30c&&_0x304ce3 instanceof K&&(this[_0x15aaeb(0x279)](),this[_0x15aaeb(0x353)](_0x304ce3['fetchMiss']()),this[_0x15aaeb(0x43b)]());}async[_0x3bc572(0x442)](){return new Promise(_0x53775c=>{const _0x40612f=_0xe493;this[_0x40612f(0x431)][_0x40612f(0x1d9)][_0x40612f(0x264)](_0x5d0356(0x1))[_0x40612f(0x368)](async _0x894bc0=>{_0x53775c(await this['_createInitialStateImpl'](_0x894bc0===0x3));});});}[_0x3bc572(0x2cd)](){const _0x494c19=_0x3bc572;let _0x164678=this[_0x494c19(0x399)];return{'onStateChange':(_0x54d852,_0x1dc63c)=>{const _0x3a2c02=_0x494c19;if(_0x54d852!==this['_state'])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x54d852[_0x3a2c02(0x443)]+'\x0aAfter:\x20'+_0x1dc63c['status']+_0x3a2c02(0x26f)+this['_state'][_0x3a2c02(0x443)]);this[_0x3a2c02(0x353)](_0x1dc63c);},'onSendChangeset':_0x1e10dc=>{const _0x48f0ea=_0x494c19;_0x1e10dc[_0x48f0ea(0x2e5)]||(_0x1e10dc[_0x48f0ea(0x2e5)]=this[_0x48f0ea(0x448)],_0x1e10dc[_0x48f0ea(0x22b)]=++this[_0x48f0ea(0x3c8)]);let _0x4367dc={'eventID':_0x7dd1cb[_0x48f0ea(0x2b1)],'data':{'unitID':_0x1e10dc[_0x48f0ea(0x399)],'unitType':this[_0x48f0ea(0x26b)],'changeset':_0x1e10dc,'memberID':this[_0x48f0ea(0x431)][_0x48f0ea(0x22c)]()}};this[_0x48f0ea(0x431)][_0x48f0ea(0x1ef)](_0x4367dc,this[_0x48f0ea(0x399)]);},'onMissingChangesets':({from:_0x2de029,to:_0x5f036e})=>{const _0x13db91=_0x494c19;this[_0x13db91(0x1c1)][_0x13db91(0x305)](_0x13db91(0x3da),_0x13db91(0x1fa)+_0x2de029+_0x13db91(0x37e)+_0x5f036e);let _0xb3f0e9={'eventID':_0x7dd1cb['FETCH_MISSING'],'data':{'unitID':_0x164678,'unitType':this[_0x13db91(0x26b)],'from':_0x2de029,'to':_0x5f036e}};this[_0x13db91(0x431)][_0x13db91(0x1ef)](_0xb3f0e9,this['unitID']);}};}async[_0x3bc572(0x2a0)](_0xc71d3c){const _0x244051=_0x3bc572;var _0x1d0c26,_0x27217c,_0x22cf7e;let _0x1324a5=await((_0x1d0c26=this[_0x244051(0x422)])==null?void 0x0:_0x1d0c26['loadOfflineData'](this[_0x244051(0x399)])),_0x2f0bf2=(_0x27217c=_0x1324a5==null?void 0x0:_0x1324a5['mutations'])==null?[]:_0x27217c,_0x12a8ec=(_0x22cf7e=_0x1324a5==null?void 0x0:_0x1324a5[_0x244051(0x3c2)])==null?null:_0x22cf7e,_0x552811=!!(_0x12a8ec!=null&&_0x12a8ec[_0x244051(0x2e5)])&&!!(_0x12a8ec!=null&&_0x12a8ec[_0x244051(0x22b)]);this['_changesetSessionId']=_0x552811?_0x12a8ec[_0x244051(0x2e5)]:_0x5d9f01(),this[_0x244051(0x3c8)]=_0x552811?_0x12a8ec[_0x244051(0x22b)]:0x0;let _0x3d795c=this[_0x244051(0x399)];try{this[_0x244051(0x3a8)](_0x12a8ec,_0x2f0bf2);}catch(_0x246c90){this[_0x244051(0x1c1)]['error'](_0x246c90);}let _0x2e7233=this[_0x244051(0x2cd)]();if(_0xc71d3c){let _0x1765f2=_n(this[_0x244051(0x44d)],_0x3d795c,this['_type'],_0x12a8ec,_0x2f0bf2,_0x2e7233);return _0x1765f2 instanceof q?_0x1765f2[_0x244051(0x32a)]():(_0x1765f2 instanceof Y||_0x1765f2 instanceof J)&&_0x1765f2['resend'](),_0x1765f2;}return this['_injector'][_0x244051(0x2fe)](Z,_0x3d795c,this[_0x244051(0x26b)],_0x12a8ec,_0x2f0bf2,_0x2e7233);}[_0x3bc572(0x3a8)](_0x4ab43e,_0x53e8b9){const _0x5604ea=_0x3bc572;var _0x15b539,_0x4b87ec;let _0x340dd4=this[_0x5604ea(0x1ee)][_0x5604ea(0x381)][_0x5604ea(0x1fb)](this[_0x5604ea(0x1ee)][_0x5604ea(0x381)][_0x5604ea(0x3b8)]()[_0x5604ea(0x1dd)]);(_0x15b539=_0x340dd4((_0x4ab43e==null?void 0x0:_0x4ab43e[_0x5604ea(0x227)])||[],null))==null||_0x15b539[_0x5604ea(0x29a)](_0x254114=>this[_0x5604ea(0x39d)][_0x5604ea(0x414)](_0x254114['id'],_0x254114[_0x5604ea(0x2a4)])),(_0x4b87ec=_0x340dd4(_0x53e8b9||[],null))==null||_0x4b87ec[_0x5604ea(0x29a)](_0x5811a7=>this[_0x5604ea(0x39d)][_0x5604ea(0x414)](_0x5811a7['id'],_0x5811a7['params']));}};$=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x2a5dd8(W)),V(0xd,_0x2a5dd8(U))],$);let vn=class extends ${constructor(_0x5c3ea2,_0x1a11fc,_0x301a65,_0x54fe0e,_0x31544d,_0x2375b9,_0x11e237,_0x2143be,_0x11b95d,_0x2f94f0,_0x3ac41a,_0x111725,_0x906a2e,_0x9ebf20,_0x3420d3){const _0x603d5c=_0x3bc572;super(_0x5c3ea2,_0x301a65,_0x1a11fc,_0x54fe0e,_0x31544d,_0x2375b9,_0x11e237,_0x2143be,_0x11b95d,_0x2f94f0,_0x3ac41a,_0x111725,_0x9ebf20,_0x3420d3),this['unitID']=_0x5c3ea2,this['type']=_0x1a11fc,this[_0x603d5c(0x1b8)]=_0x906a2e,z(this,_0x603d5c(0x1ba),null);}[_0x3bc572(0x446)](_0x2e1dbe){const _0x57fe97=_0x3bc572;this[_0x57fe97(0x1ba)]=_0x2e1dbe;}[_0x3bc572(0x1d4)](){const _0x3f2906=_0x3bc572;this[_0x3f2906(0x1ba)]=null,super[_0x3f2906(0x1d4)]();}[_0x3bc572(0x2cd)](){const _0x2c5500=_0x3bc572;let _0x44783a=super['_createHandler']();return _0x44783a[_0x2c5500(0x1b5)]=_0x5ab15a=>{const _0x169751=_0x2c5500;var _0x418561,_0x50b615;return(_0x418561=this[_0x169751(0x1ba)])==null||(_0x50b615=_0x418561[_0x169751(0x1b5)])==null?void 0x0:_0x50b615[_0x169751(0x3ad)](_0x418561,_0x5ab15a);},_0x44783a[_0x2c5500(0x316)]=_0x358143=>{const _0x5c77ee=_0x2c5500;var _0x5d8136,_0x49d1ef;return(_0x5d8136=this[_0x5c77ee(0x1ba)])==null||(_0x49d1ef=_0x5d8136[_0x5c77ee(0x316)])==null?void 0x0:_0x49d1ef['call'](_0x5d8136,_0x358143);},_0x44783a[_0x2c5500(0x237)]=_0x3a7577=>{const _0x13dab6=_0x2c5500;var _0xd985c4,_0x5b8716;return(_0xd985c4=this[_0x13dab6(0x1ba)])==null||(_0x5b8716=_0xd985c4['onTransformSelections'])==null?void 0x0:_0x5b8716[_0x13dab6(0x3ad)](_0xd985c4,_0x3a7577);},_0x44783a[_0x2c5500(0x215)]=_0x53699c=>{const _0x204f4d=_0x2c5500;var _0x2dcf10,_0x3d3c47;return(_0x2dcf10=this[_0x204f4d(0x1ba)])==null||(_0x3d3c47=_0x2dcf10[_0x204f4d(0x215)])==null?void 0x0:_0x3d3c47['call'](_0x2dcf10,_0x53699c);},_0x44783a[_0x2c5500(0x3ab)]=_0xa03b25=>{const _0x49f344=_0x2c5500;var _0x11e32c,_0x4f41e6,_0x4e1aea;return(_0x11e32c=(_0x4f41e6=this[_0x49f344(0x1ba)])==null||(_0x4e1aea=_0x4f41e6[_0x49f344(0x3ab)])==null?void 0x0:_0x4e1aea['call'](_0x4f41e6,_0xa03b25))==null?_0xa03b25:_0x11e32c;},_0x44783a[_0x2c5500(0x365)]=_0x4c9387=>{const _0xde59f1=_0x2c5500;var _0x12d405,_0x3fd734,_0x15e181;return(_0x12d405=(_0x3fd734=this[_0xde59f1(0x1ba)])==null||(_0x15e181=_0x3fd734[_0xde59f1(0x365)])==null?void 0x0:_0x15e181[_0xde59f1(0x3ad)](_0x3fd734,_0x4c9387))==null?_0x4c9387:_0x12d405;},_0x44783a;}async['_init'](){const _0x48b8ec=_0x3bc572;let _0x579f1e=await super[_0x48b8ec(0x212)]();return this[_0x48b8ec(0x21b)](this[_0x48b8ec(0x1b8)][_0x48b8ec(0x3e9)][_0x48b8ec(0x368)](_0xb59e66=>{const _0x1d8535=_0x48b8ec;if(_0xb59e66==null||_0xb59e66[_0x1d8535(0x395)]!==this[_0x1d8535(0x399)])return;let {commandId:_0x17b28b,redoState:_0x4576d9,unitId:_0x4f9f7d}=_0xb59e66,_0x1ee602={'id':_0x17b28b,'type':_0xe60bf6[_0x1d8535(0x2de)],'params':{'unitId':_0x4f9f7d,'actions':_0x4576d9[_0x1d8535(0x311)],'textRanges':null}};this['_onLocalMutation'](_0x1ee602);})),this['disposeWithMe'](this['_commandService'][_0x48b8ec(0x3b0)]((_0x1e6b66,_0x28b55c)=>{const _0x751e9b=_0x48b8ec;if(_0x1e6b66[_0x751e9b(0x2f0)]!==_0xe60bf6['MUTATION']||_0x28b55c!=null&&_0x28b55c[_0x751e9b(0x30a)]||_0x28b55c!=null&&_0x28b55c[_0x751e9b(0x1bf)]||_0x1e6b66['id']===_0x7aa9b['id'])return;let _0x36dd37=_0x1e6b66[_0x751e9b(0x2a4)];if((_0x36dd37==null?void 0x0:_0x36dd37['unitId'])!==this['unitID'])return;let _0xf221a0=_0x1e6b66,_0x4e8617=this[_0x751e9b(0x1ee)][_0x751e9b(0x381)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x751e9b(0x42c)])([_0xf221a0],this[_0x751e9b(0x449)])||[_0xf221a0];this[_0x751e9b(0x2ee)](_0x4e8617[0x0]);})),_0x579f1e;}};vn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x167908(_0x6630d3)),V(0xd,_0x2a5dd8(W)),V(0xe,_0x2a5dd8(U))],vn);let yn=class extends ${constructor(_0x5d27b1,_0x4e3fe9,_0xe124cd,_0x10b539,_0x376a1c,_0x4fff92,_0x531b66,_0x54189e,_0x48a06e,_0x402a9f,_0x41921d,_0x22964f,_0x5ab86b,_0x37e57e){const _0x4866f6=_0x3bc572;super(_0x5d27b1,_0xe124cd,_0x4e3fe9,_0x10b539,_0x376a1c,_0x4fff92,_0x531b66,_0x54189e,_0x48a06e,_0x402a9f,_0x41921d,_0x22964f,_0x5ab86b,_0x37e57e),this[_0x4866f6(0x399)]=_0x5d27b1,this[_0x4866f6(0x2f0)]=_0x4e3fe9;}async[_0x3bc572(0x212)](){const _0x17cdf1=_0x3bc572;let _0x5dbfe3=await super[_0x17cdf1(0x212)]();return this['disposeWithMe'](this[_0x17cdf1(0x39d)][_0x17cdf1(0x3b0)]((_0x37961b,_0x16f51)=>{const _0x23af79=_0x17cdf1;if(_0x37961b[_0x23af79(0x2f0)]!==_0xe60bf6['MUTATION']||_0x16f51!=null&&_0x16f51[_0x23af79(0x30a)]||_0x16f51!=null&&_0x16f51[_0x23af79(0x1bf)])return;let _0x4e4226=_0x37961b[_0x23af79(0x2a4)];if((_0x4e4226==null?void 0x0:_0x4e4226[_0x23af79(0x395)])!==this[_0x23af79(0x399)])return;let _0x1bc40e=_0x37961b,_0x4da2f8=this[_0x23af79(0x1ee)][_0x23af79(0x381)][_0x23af79(0x1fb)](this[_0x23af79(0x1ee)][_0x23af79(0x381)]['getInterceptPoints']()[_0x23af79(0x42c)])([_0x1bc40e],this[_0x23af79(0x449)])||[_0x1bc40e];this[_0x23af79(0x2ee)](_0x4da2f8[0x0]);})),_0x5dbfe3;}};yn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x2a5dd8(W)),V(0xd,_0x2a5dd8(U))],yn);let bn=class extends ${constructor(_0x53c713,_0x2f0a87,_0x55ec75,_0x1a2e94,_0x2b3597,_0x1235fe,_0xd63eb9,_0x5b9bd8,_0x49a5d6,_0x223ece,_0x40ba46,_0x3bc335,_0x14dc45,_0x38eb2a,_0x2edf97){const _0x3b251d=_0x3bc572;super(_0x53c713,_0x55ec75,_0x2f0a87,_0x1a2e94,_0x2b3597,_0x1235fe,_0xd63eb9,_0x49a5d6,_0x223ece,_0x40ba46,_0x3bc335,_0x14dc45,_0x38eb2a,_0x2edf97),this[_0x3b251d(0x399)]=_0x53c713,this[_0x3b251d(0x2f0)]=_0x2f0a87,this[_0x3b251d(0x1ce)]=_0x5b9bd8;}['_createHandler'](){const _0xd8ca7c=_0x3bc572;let _0x3eac2c=super['_createHandler']();return _0x3eac2c[_0xd8ca7c(0x237)]=_0x3013a6=>this[_0xd8ca7c(0x1ce)][_0xd8ca7c(0x286)](_0x3013a6),_0x3eac2c;}async[_0x3bc572(0x212)](){const _0x207480=_0x3bc572;let _0x3206b0=await super[_0x207480(0x212)]();return this[_0x207480(0x21b)](this[_0x207480(0x39d)][_0x207480(0x3b0)]((_0x289466,_0x371d2a)=>{const _0x5efa0b=_0x207480;if(_0x289466[_0x5efa0b(0x2f0)]!==_0xe60bf6['MUTATION']||_0x371d2a!=null&&_0x371d2a[_0x5efa0b(0x30a)]||_0x371d2a!=null&&_0x371d2a[_0x5efa0b(0x1bf)])return;let _0x41e253=_0x289466[_0x5efa0b(0x2a4)];if((_0x41e253==null?void 0x0:_0x41e253[_0x5efa0b(0x395)])!==this[_0x5efa0b(0x399)])return;let _0x2f4597=_0x289466,_0x23162e=this['_compressMutationService'][_0x5efa0b(0x381)][_0x5efa0b(0x1fb)](this['_compressMutationService'][_0x5efa0b(0x381)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x2f4597],this[_0x5efa0b(0x449)])||[_0x2f4597];this[_0x5efa0b(0x2ee)](_0x23162e[0x0]);})),_0x3206b0;}};bn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(Gt)),V(0x8,_0x167908(B)),V(0x9,_0x6f9bb2),V(0xa,_0x2e09c7),V(0xb,_0x1f135e),V(0xc,_0x3058fc),V(0xd,_0x2a5dd8(W)),V(0xe,_0x2a5dd8(U))],bn);let xn=class extends ${constructor(_0x1439a2,_0x45b61f,_0x3e14bb,_0xe32552,_0xb161d3,_0x59f409,_0x5d6172,_0x563812,_0x5d194a,_0x2c8c98,_0x29a370,_0x72988d,_0x529801,_0x365f3b){const _0x31902b=_0x3bc572;super(_0x1439a2,_0x3e14bb,_0x45b61f,_0xe32552,_0xb161d3,_0x59f409,_0x5d6172,_0x563812,_0x5d194a,_0x2c8c98,_0x29a370,_0x72988d,_0x529801,_0x365f3b),this[_0x31902b(0x399)]=_0x1439a2,this['type']=_0x45b61f;}async['_init'](){const _0x41488f=_0x3bc572;let _0x45bff5=await super[_0x41488f(0x212)]();return this[_0x41488f(0x21b)](this[_0x41488f(0x39d)]['onMutationExecutedForCollab']((_0x37ae12,_0x5c2a40)=>{const _0x3a1fe0=_0x41488f;if(_0x37ae12[_0x3a1fe0(0x2f0)]!==_0xe60bf6[_0x3a1fe0(0x2de)]||_0x5c2a40!=null&&_0x5c2a40['fromCollab']||_0x5c2a40!=null&&_0x5c2a40['onlyLocal'])return;let _0x5da24b=_0x37ae12[_0x3a1fe0(0x2a4)];if((_0x5da24b==null?void 0x0:_0x5da24b[_0x3a1fe0(0x395)])!==this[_0x3a1fe0(0x399)])return;let _0x360514=_0x37ae12,_0x48bede=this[_0x3a1fe0(0x1ee)][_0x3a1fe0(0x381)][_0x3a1fe0(0x1fb)](this['_compressMutationService'][_0x3a1fe0(0x381)][_0x3a1fe0(0x3b8)]()[_0x3a1fe0(0x42c)])([_0x360514],this[_0x3a1fe0(0x449)])||[_0x360514];this[_0x3a1fe0(0x2ee)](_0x48bede[0x0]);})),_0x45bff5;}};xn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x2a5dd8(W)),V(0xd,_0x2a5dd8(U))],xn);let Sn=class extends ${constructor(_0x31745d,_0x5df562,_0x4c326e,_0x3796a4,_0x44fb8f,_0x11519e,_0x2b931c,_0x568ac0,_0x31131f,_0x309ee4,_0x2fd4b4,_0x10eb1b,_0xdf0652,_0x4d21ff){const _0x1827bd=_0x3bc572;super(_0x31745d,_0x4c326e,_0x5df562,_0x3796a4,_0x44fb8f,_0x11519e,_0x2b931c,_0x568ac0,_0x31131f,_0x309ee4,_0x2fd4b4,_0x10eb1b,_0xdf0652,_0x4d21ff),this['unitID']=_0x31745d,this[_0x1827bd(0x2f0)]=_0x5df562;}async['_init'](){const _0x4863b5=_0x3bc572;let _0x174b03=await super[_0x4863b5(0x212)]();return this[_0x4863b5(0x21b)](this[_0x4863b5(0x39d)][_0x4863b5(0x3b0)]((_0x1fc323,_0x532f10)=>{const _0x1d3a4f=_0x4863b5;if(_0x1fc323['type']!==_0xe60bf6[_0x1d3a4f(0x2de)]||_0x532f10!=null&&_0x532f10[_0x1d3a4f(0x30a)]||_0x532f10!=null&&_0x532f10[_0x1d3a4f(0x1bf)])return;let _0x5ed7f3=_0x1fc323[_0x1d3a4f(0x2a4)];if((_0x5ed7f3==null?void 0x0:_0x5ed7f3[_0x1d3a4f(0x395)])!==this['unitID'])return;let _0x5c7aab=_0x1fc323,_0xf9d4e9=this[_0x1d3a4f(0x1ee)][_0x1d3a4f(0x381)][_0x1d3a4f(0x1fb)](this['_compressMutationService'][_0x1d3a4f(0x381)][_0x1d3a4f(0x3b8)]()[_0x1d3a4f(0x42c)])([_0x5c7aab],this[_0x1d3a4f(0x449)])||[_0x5c7aab];this[_0x1d3a4f(0x2ee)](_0xf9d4e9[0x0]);})),_0x174b03;}};Sn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x2a5dd8(W)),V(0xd,_0x2a5dd8(U))],Sn);let Cn=class extends ${constructor(_0x2f4e21,_0x3d2540,_0x255105,_0x549697,_0x403742,_0x476681,_0x4a9b06,_0x3563f4,_0x2dfeee,_0x33f122,_0x349843,_0x274bdc,_0x38b761,_0x4c2edd){const _0x404fcd=_0x3bc572;super(_0x2f4e21,_0x255105,_0x3d2540,_0x549697,_0x403742,_0x476681,_0x4a9b06,_0x3563f4,_0x2dfeee,_0x33f122,_0x349843,_0x274bdc,_0x38b761,_0x4c2edd),this[_0x404fcd(0x399)]=_0x2f4e21,this[_0x404fcd(0x2f0)]=_0x3d2540;}async[_0x3bc572(0x212)](){const _0x3efa3a=_0x3bc572;let _0x35a563=await super['_init']();return this[_0x3efa3a(0x21b)](this[_0x3efa3a(0x39d)][_0x3efa3a(0x3b0)]((_0x415244,_0x31ed49)=>{const _0x3f6c09=_0x3efa3a;if(_0x415244[_0x3f6c09(0x2f0)]!==_0xe60bf6[_0x3f6c09(0x2de)]||_0x31ed49!=null&&_0x31ed49['fromCollab']||_0x31ed49!=null&&_0x31ed49[_0x3f6c09(0x1bf)])return;let _0x47d87f=_0x415244['params'];if((_0x47d87f==null?void 0x0:_0x47d87f[_0x3f6c09(0x395)])!==this[_0x3f6c09(0x399)])return;let _0x56cb5c=_0x415244,_0x58e10e=this['_compressMutationService'][_0x3f6c09(0x381)][_0x3f6c09(0x1fb)](this[_0x3f6c09(0x1ee)][_0x3f6c09(0x381)][_0x3f6c09(0x3b8)]()['COMPRESS_MUTATION_SEND'])([_0x56cb5c],this[_0x3f6c09(0x449)])||[_0x56cb5c];this[_0x3f6c09(0x2ee)](_0x58e10e[0x0]);})),_0x35a563;}};Cn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x2a5dd8(W)),V(0xd,_0x2a5dd8(U))],Cn);const wn=_0x5685c4('univer-pro.collaboration-client.network-condition.service');function Tn(_0x82ac03){const _0x497f2e=_0x3bc572;let _0x35d3d2=_0x82ac03[_0x497f2e(0x2c6)],_0x53e354=JSON[_0x497f2e(0x23d)](_0x35d3d2);switch(_0x53e354[_0x497f2e(0x265)]){case _0x23fb1d[_0x497f2e(0x20b)]:case _0x23fb1d['HELLO']:{let _0x4d8e36=_0x53e354[_0x497f2e(0x1c0)];return{..._0x53e354,'data':_0x4d8e36,'cmd':_0x53e354['cmd']};}case _0x23fb1d['JOIN']:{let _0x4d28e8=_0x53e354[_0x497f2e(0x253)];return{..._0x53e354,'data':_0x4d28e8,'cmd':_0x53e354['cmd']};}case _0x23fb1d['RECV']:{let _0x5d2b16=_0x53e354[_0x497f2e(0x1e4)];switch(_0x5d2b16[_0x497f2e(0x313)]){case _0x7dd1cb[_0x497f2e(0x3b9)]:var _0x8c19f9;return{..._0x53e354,'data':{..._0x5d2b16,'data':(_0x8c19f9=_0x5d2b16['permissionRejEvent'])==null?void 0x0:_0x8c19f9['cs']},'cmd':_0x53e354['cmd']};case _0x7dd1cb[_0x497f2e(0x25d)]:var _0x4b04a6;return{..._0x53e354,'data':{..._0x5d2b16,'data':(_0x4b04a6=_0x5d2b16['csAckEvent'])==null?void 0x0:_0x4b04a6['cs']},'cmd':_0x53e354['cmd']};case _0x7dd1cb[_0x497f2e(0x301)]:var _0x4fa414;return{..._0x53e354,'data':{..._0x5d2b16,'data':(_0x4fa414=_0x5d2b16[_0x497f2e(0x28c)])==null?void 0x0:_0x4fa414['cs']},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x2c3)]:var _0x4d6d79;return{..._0x53e354,'data':{..._0x5d2b16,'data':(_0x4d6d79=_0x5d2b16['csRejEvent'])==null?void 0x0:_0x4d6d79['cs']},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x257)]:var _0x1b1315;return{..._0x53e354,'data':{..._0x5d2b16,'data':(_0x1b1315=_0x5d2b16[_0x497f2e(0x348)])==null?void 0x0:_0x1b1315['cs']},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb['UPDATE_CURSOR']:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x386)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x27d)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x401)]},'cmd':_0x53e354['cmd']};case _0x7dd1cb[_0x497f2e(0x221)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16['leaveEvent']},'cmd':_0x53e354['cmd']};case _0x7dd1cb['LIVESHARE_NEW_HOST']:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x206)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x297)]:case _0x7dd1cb['LIVESHARE_OPERATION']:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x2a8)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x278)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x206)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb['MSG_FOR_ERROR']:return{..._0x53e354,'data':_0x5d2b16,'cmd':_0x53e354['cmd']};case _0x7dd1cb[_0x497f2e(0x3f4)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x222)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x303)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x238)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x268)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x3d3)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x31d)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x2e2)]},'cmd':_0x53e354['cmd']};default:return _0x53e354;}}default:return _0x53e354;}}function En(_0x3e7ab6){const _0xb42a6a=_0x3bc572;switch(_0x3e7ab6[_0xb42a6a(0x265)]){case _0x23fb1d[_0xb42a6a(0x20b)]:case _0x23fb1d[_0xb42a6a(0x292)]:return JSON[_0xb42a6a(0x3c3)]({'cmd':_0x3e7ab6[_0xb42a6a(0x265)],'routeKey':_0x3e7ab6[_0xb42a6a(0x1b6)]});case _0x23fb1d['INGEST']:{let _0x3998be;switch(_0x3e7ab6[_0xb42a6a(0x2c6)][_0xb42a6a(0x313)]){case _0x7dd1cb[_0xb42a6a(0x1ec)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x1ec)],'updateCursorEvent':_0x3e7ab6[_0xb42a6a(0x2c6)][_0xb42a6a(0x2c6)]};break;case _0x7dd1cb[_0xb42a6a(0x221)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x221)],'leaveEvent':_0x3e7ab6['data']['data']};break;case _0x7dd1cb[_0xb42a6a(0x27d)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x27d)],'joinEvent':_0x3e7ab6['data'][_0xb42a6a(0x2c6)]};break;case _0x7dd1cb[_0xb42a6a(0x2ae)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x2ae)],'liveShareNewHost':_0x3e7ab6[_0xb42a6a(0x2c6)][_0xb42a6a(0x2c6)]};break;case _0x7dd1cb[_0xb42a6a(0x2bb)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x2bb)],'liveShareOperation':_0x3e7ab6['data'][_0xb42a6a(0x2c6)]};break;case _0x7dd1cb[_0xb42a6a(0x278)]:_0x3998be={'eventID':_0x7dd1cb['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x3e7ab6[_0xb42a6a(0x2c6)][_0xb42a6a(0x2c6)]};break;case _0x7dd1cb['LIVESHARE_REQUEST_HOST']:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x33b)],'liveShareRequestHost':_0x3e7ab6['data']['data']};break;case _0x7dd1cb[_0xb42a6a(0x297)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x297)]};break;default:_0x3998be={'eventID':_0x3e7ab6[_0xb42a6a(0x2c6)][_0xb42a6a(0x313)]};}return JSON['stringify']({'cmd':_0x3e7ab6[_0xb42a6a(0x265)],'routeKey':_0x3e7ab6[_0xb42a6a(0x1b6)],'collaMsg':_0x3998be});}case _0x23fb1d[_0xb42a6a(0x2a3)]:return JSON[_0xb42a6a(0x3c3)]({'cmd':_0x3e7ab6[_0xb42a6a(0x265)],'routeKey':_0x3e7ab6[_0xb42a6a(0x1b6)],'joinReq':_0x3e7ab6['data']});case _0x23fb1d[_0xb42a6a(0x444)]:return JSON[_0xb42a6a(0x3c3)]({'cmd':_0x3e7ab6[_0xb42a6a(0x265)],'routeKey':_0x3e7ab6[_0xb42a6a(0x1b6)],'leaveReq':_0x3e7ab6['data']});default:throw Error(_0xb42a6a(0x33d));}}const Dn=_0x5685c4(_0x3bc572(0x1d8));function On(_0x150751,_0x3530cd,_0x520566){const _0x10ddea=_0x3bc572;return _0x150751+'/'+_0x3530cd+_0x10ddea(0x44c)+_0x520566+_0x10ddea(0x41f);}let kn=class extends _0x376cce{constructor(_0x1c8e5d,_0x1d8336,_0x35e30c,_0x7e797b,_0x3b02e6){const _0x444a2f=_0x3bc572;super(),this[_0x444a2f(0x44d)]=_0x1c8e5d,this['_httpService']=_0x1d8336,this[_0x444a2f(0x1c9)]=_0x35e30c,this[_0x444a2f(0x1c1)]=_0x7e797b,this[_0x444a2f(0x3cb)]=_0x3b02e6;}['_doCreateSocket'](_0x2dfdaa){const _0x192d3e=_0x3bc572;let _0x555bd4=this['_injector'][_0x192d3e(0x1e3)](_0x1d5e1d);if(!_0x555bd4)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x91c1e3=_0x555bd4[_0x192d3e(0x439)](_0x2dfdaa);if(!_0x91c1e3)throw Error(_0x192d3e(0x202));let _0xc4e2cd=new _0x186c27(),_0x21bcf8=new _0x5b6066();_0xc4e2cd[_0x192d3e(0x293)](_0x91c1e3[_0x192d3e(0x383)][_0x192d3e(0x368)](_0x2c9442=>_0x21bcf8[_0x192d3e(0x2c7)](_0x2c9442))),_0xc4e2cd[_0x192d3e(0x293)](_0x11df70(()=>_0x21bcf8['complete']()));let _0x37ceef=new _0x5b6066();_0xc4e2cd[_0x192d3e(0x293)](_0x91c1e3[_0x192d3e(0x37b)][_0x192d3e(0x368)](_0x30c2aa=>_0x37ceef[_0x192d3e(0x2c7)](_0x30c2aa))),_0xc4e2cd[_0x192d3e(0x293)](_0x11df70(()=>_0x37ceef[_0x192d3e(0x42f)]()));let _0x3943d1=new _0x5b6066();_0xc4e2cd[_0x192d3e(0x293)](_0x91c1e3[_0x192d3e(0x30b)]['subscribe'](_0x13ffa1=>{const _0xc0f8e3=_0x192d3e;let _0x3f5cbe=Tn(_0x13ffa1);_0x3943d1[_0xc0f8e3(0x2c7)](_0x3f5cbe);})),_0xc4e2cd[_0x192d3e(0x293)](_0x11df70(()=>_0x3943d1[_0x192d3e(0x42f)]()));let _0x5b814e,_0x4b8a47=()=>{const _0x3e51b5=_0x192d3e;_0x37ceef[_0x3e51b5(0x2c7)](new Event(_0x3e51b5(0x2ec))),_0x21bcf8[_0x3e51b5(0x2c7)](new Event(_0x3e51b5(0x2ec))),_0x5b814e['close']();};return _0x5b814e={'memberID':'','close$':_0x21bcf8[_0x192d3e(0x43c)](),'error$':_0x37ceef['asObservable'](),'open$':_0x91c1e3['open$'],'message$':_0x3943d1[_0x192d3e(0x43c)](),'send':_0x53858c=>{const _0xbc1d24=_0x192d3e;if(_0x53858c[_0xbc1d24(0x265)]===_0x23fb1d[_0xbc1d24(0x28e)]){if(_0x53858c[_0xbc1d24(0x2c6)][_0xbc1d24(0x313)]===_0x7dd1cb[_0xbc1d24(0x2b1)]){this['_submitChangeset'](_0x5b814e,_0x53858c[_0xbc1d24(0x2c6)])[_0xbc1d24(0x40f)](_0xe0660c=>{const _0x13e778=_0xbc1d24;this[_0x13e778(0x1c1)]['error'](_0xe0660c),_0x4b8a47();});return;}if(_0x53858c['data'][_0xbc1d24(0x313)]===_0x7dd1cb['FETCH_MISSING']){let _0x4cdbbc=_0x53858c[_0xbc1d24(0x2c6)];this['_fetchMissChangesets'](_0x4cdbbc)[_0xbc1d24(0x1b9)](_0x12bca3=>{const _0x2be8b4=_0xbc1d24;_0x3943d1['next']({'cmd':_0x23fb1d[_0x2be8b4(0x2e1)],'code':_0x20fc41['OK'],'routeKey':_0x4cdbbc['data'][_0x2be8b4(0x399)],'routeType':'','data':{'eventID':_0x7dd1cb['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x12bca3}}});})[_0xbc1d24(0x40f)](_0x472fab=>{const _0x5bac35=_0xbc1d24;this[_0x5bac35(0x1c1)][_0x5bac35(0x298)](_0x472fab),_0x4b8a47();});return;}}_0x91c1e3[_0xbc1d24(0x1ef)](En(_0x53858c));},'close':()=>{const _0x18a2f7=_0x192d3e;_0x91c1e3[_0x18a2f7(0x3cf)](),_0xc4e2cd[_0x18a2f7(0x1d4)]();}},_0x5b814e;}async['_submitChangeset'](_0x171b99,_0x268b8c){const _0x415ff9=_0x3bc572;var _0x30a3e2;let {unitType:_0x59d14e,unitID:_0x440eea,changeset:_0x3ec0cc}=_0x268b8c['data'],_0x482620={'unitID':_0x440eea,'memberID':_0x171b99[_0x415ff9(0x3b6)],'type':_0x59d14e,'changeset':_0x43c492(_0x3ec0cc)},_0x38557b=this['_configService'][_0x415ff9(0x306)](R),_0x4dfe68=On((_0x30a3e2=_0x38557b==null?void 0x0:_0x38557b[_0x415ff9(0x1c4)])==null?_0x415ff9(0x390):_0x30a3e2,_0x59d14e,_0x440eea);try{await this[_0x415ff9(0x3b7)][_0x415ff9(0x27f)](_0x4dfe68,{'body':_0x482620});}catch(_0x338ed8){throw this['_logService'][_0x415ff9(0x298)](_0x415ff9(0x33a),_0x415ff9(0x1b1)),_0x338ed8;}}async[_0x3bc572(0x3d2)](_0x439312){const _0x2ef4e2=_0x3bc572;let {unitID:_0x53d0fa,from:_0x419d9b,to:_0x1e81f5,unitType:_0x4c4322}=_0x439312['data'];return(await this['_snapshotServerService'][_0x2ef4e2(0x2ba)]({'metadata':void 0x0},{'unitID':_0x53d0fa,'type':_0x4c4322,'from':_0x419d9b,'to':_0x1e81f5}))[_0x2ef4e2(0x23e)][_0x2ef4e2(0x239)](_0x4a3d08=>((_0x4a3d08['mutations']===null||_0x4a3d08['mutations']===void 0x0)&&(_0x4a3d08[_0x2ef4e2(0x227)]=[]),_0x4a3d08));}};kn=H([V(0x0,_0x167908(_0x35e9e2)),V(0x1,_0x167908(_0x6a3f01)),V(0x2,_0xa7a1b6),V(0x3,_0x2e09c7),V(0x4,_0xe1e81f)],kn);const An=_0x5685c4(_0x3bc572(0x397));function jn(_0x15b16a={}){const _0x2ecb32=_0x3bc572;return _0x15b16a[_0x2ecb32(0x402)]?{'resolveUnit':_0x15b16a[_0x2ecb32(0x402)]}:{'resolveUnit':_0x149ad5=>({'target':{'unitId':_0x149ad5[_0x2ecb32(0x395)],'unitType':_0x149ad5[_0x2ecb32(0x1d0)]}})};}function Mn(_0xa227af,_0x328b0b,_0x1e965e){const _0x4fdf7b=_0x3bc572;var _0x222bd4;let _0xf2f556=_0x1e965e[_0x4fdf7b(0x24b)][_0x4fdf7b(0x356)];if(_0xf2f556!=null&&_0xf2f556[_0x4fdf7b(0x337)]()==='')throw Error(_0x4fdf7b(0x308));if(!_0x1e965e[_0x4fdf7b(0x24b)]['unitId'])throw Error(_0x4fdf7b(0x20e));return{'localUnitId':_0xa227af,'unitType':_0x328b0b,'target':{'endpoint':_0xf2f556,'unitId':_0x1e965e[_0x4fdf7b(0x24b)]['unitId'],'unitType':(_0x222bd4=_0x1e965e['target'][_0x4fdf7b(0x1d0)])==null?_0x328b0b:_0x222bd4},'changeset':_0x1e965e[_0x4fdf7b(0x3e3)]};}let Nn=class extends _0x376cce{constructor(_0x36e01a,_0x5a2d33,_0x2d32ce,_0x3f223f,_0x1b22ef,_0x14781f,_0x1c3378){const _0x425796=_0x3bc572;super(),this['_injector']=_0x36e01a,this[_0x425796(0x1c1)]=_0x5a2d33,this[_0x425796(0x1c9)]=_0x2d32ce,this[_0x425796(0x44a)]=_0x3f223f,this[_0x425796(0x33e)]=_0x1b22ef,this[_0x425796(0x2d8)]=_0x14781f,this['_networkConditionService']=_0x1c3378,z(this,_0x425796(0x35d),new Map()),z(this,_0x425796(0x2ac),new Map()),z(this,_0x425796(0x31a),new Map()),z(this,_0x425796(0x29c),new Map()),z(this,_0x425796(0x354),this['_getSocketChannel'](void 0x0)['socket$'][_0x425796(0x43c)]()),z(this,_0x425796(0x34e),new _0x31b85e(0x0)),z(this,'status$',this[_0x425796(0x34e)][_0x425796(0x43c)]()),this[_0x425796(0x331)]();}[_0x3bc572(0x331)](){const _0x20e3b7=_0x3bc572;this[_0x20e3b7(0x41c)]&&this['disposeWithMe'](this['_networkConditionService'][_0x20e3b7(0x25b)][_0x20e3b7(0x368)](_0x19d259=>{const _0x42cf09=_0x20e3b7;_0x19d259&&this[_0x42cf09(0x285)](),_0x19d259||this[_0x42cf09(0x29c)][_0x42cf09(0x29a)](_0x528b26=>this[_0x42cf09(0x36b)](_0x528b26));}));}['dispose'](){const _0x83984f=_0x3bc572;super['dispose'](),this[_0x83984f(0x29c)][_0x83984f(0x29a)](_0x153ca5=>{const _0x2dd67d=_0x83984f;var _0x1b0117,_0x381a4a;(_0x1b0117=_0x153ca5[_0x2dd67d(0x3f9)])==null||_0x1b0117[_0x2dd67d(0x277)](),_0x153ca5['socketMessageSubscription']=null,this[_0x2dd67d(0x1e1)](_0x153ca5),this[_0x2dd67d(0x1f1)](_0x153ca5),this['_clearHeartbeatTimer'](_0x153ca5),(_0x381a4a=_0x153ca5[_0x2dd67d(0x354)][_0x2dd67d(0x207)]())==null||_0x381a4a[_0x2dd67d(0x3cf)](),_0x153ca5[_0x2dd67d(0x354)]['complete']();}),this[_0x83984f(0x29c)][_0x83984f(0x3bb)](),this[_0x83984f(0x35d)]['forEach'](_0x5e98df=>_0x5e98df[_0x83984f(0x1d4)]()),this['_sessions'][_0x83984f(0x3bb)](),this[_0x83984f(0x31a)][_0x83984f(0x3bb)](),this[_0x83984f(0x34e)][_0x83984f(0x42f)]();}async[_0x3bc572(0x252)](_0x55557d,_0x34d65e){const _0x5d2f42=_0x3bc572;if(this[_0x5d2f42(0x35d)][_0x5d2f42(0x2dd)](_0x55557d))return this[_0x5d2f42(0x35d)][_0x5d2f42(0x1e3)](_0x55557d);let _0x5c9b22=this[_0x5d2f42(0x2ac)][_0x5d2f42(0x1e3)](_0x55557d);if(_0x5c9b22)return _0x5c9b22;let _0x25b71e=this['_createSession'](_0x55557d,_0x34d65e);this[_0x5d2f42(0x2ac)][_0x5d2f42(0x405)](_0x55557d,_0x25b71e);try{return await _0x25b71e;}finally{this[_0x5d2f42(0x2ac)][_0x5d2f42(0x1b4)](_0x55557d);}}async[_0x3bc572(0x1f4)](_0x5e3f40,_0x973574){const _0x2d9cba=_0x3bc572;let _0x10b753=await this[_0x2d9cba(0x242)](_0x5e3f40,_0x973574),_0x3500f8=this[_0x2d9cba(0x266)](_0x10b753[_0x2d9cba(0x24b)][_0x2d9cba(0x356)]);this[_0x2d9cba(0x3de)](_0x3500f8);let _0x3fb988=this[_0x2d9cba(0x44d)][_0x2d9cba(0x2fe)](Ht,_0x10b753,_0x3500f8['socket$']['asObservable']());return this[_0x2d9cba(0x35d)][_0x2d9cba(0x405)](_0x5e3f40,_0x3fb988),this[_0x2d9cba(0x31a)][_0x2d9cba(0x405)](_0x5e3f40,_0x3500f8[_0x2d9cba(0x38d)]),_0x3fb988;}[_0x3bc572(0x1bc)](_0x5396ca){const _0x2456b0=_0x3bc572;let _0x59bfb0=this[_0x2456b0(0x35d)][_0x2456b0(0x1e3)](_0x5396ca),_0x384028=this[_0x2456b0(0x31a)][_0x2456b0(0x1e3)](_0x5396ca);if(_0x59bfb0&&(this[_0x2456b0(0x35d)][_0x2456b0(0x1b4)](_0x5396ca),this['_sessionChannels'][_0x2456b0(0x1b4)](_0x5396ca),_0x59bfb0[_0x2456b0(0x3cf)]()),_0x384028&&!this[_0x2456b0(0x369)](_0x384028)){var _0x31035a;let _0x1c8a5d=this[_0x2456b0(0x29c)][_0x2456b0(0x1e3)](_0x384028);_0x1c8a5d==null||(_0x31035a=_0x1c8a5d[_0x2456b0(0x354)][_0x2456b0(0x207)]())==null||_0x31035a[_0x2456b0(0x3cf)]();}}['reconnect'](){const _0x3887fa=_0x3bc572;(this[_0x3887fa(0x29c)]['size']?[...this[_0x3887fa(0x29c)][_0x3887fa(0x3fe)]()]:[this['_getSocketChannel'](void 0x0)])[_0x3887fa(0x29a)](_0x1a2776=>{const _0x1f0a4e=_0x3887fa;_0x1a2776[_0x1f0a4e(0x2c8)]=0x0,this[_0x1f0a4e(0x1e1)](_0x1a2776),this[_0x1f0a4e(0x3f3)](_0x1a2776);});}['_clearRetryConnectingTimer'](_0x24e2e0){const _0x339bf0=_0x3bc572;_0x24e2e0[_0x339bf0(0x421)]!=null&&(clearTimeout(_0x24e2e0[_0x339bf0(0x421)]),_0x24e2e0['retryConnectingTimer']=null);}async[_0x3bc572(0x251)](_0x2b4e4e){const _0x45f500=_0x3bc572;var _0x101b3f,_0x426ff8;let _0x564d14=this['_configService'][_0x45f500(0x306)](R),_0x4d2690=(_0x101b3f=(_0x426ff8=_0x2b4e4e['endpoint'])==null?_0x564d14==null?void 0x0:_0x564d14[_0x45f500(0x330)]:_0x426ff8)==null?pt:_0x101b3f,_0x3c0a22=await this['_socketService']['createSocket'](_0x4d2690);return _0x2b4e4e[_0x45f500(0x3ff)]=_0x3c0a22,_0x3c0a22;}async[_0x3bc572(0x3de)](_0x515186){const _0x1f5db3=_0x3bc572;try{var _0x5d8650,_0x405274;let _0x41fe8b=(_0x5d8650=(_0x405274=_0x515186['socket$'][_0x1f5db3(0x207)]())==null?_0x515186[_0x1f5db3(0x3ff)]:_0x405274)==null?await this[_0x1f5db3(0x251)](_0x515186):_0x5d8650;if(_0x41fe8b){var _0x38cbbf;let _0x8c8a5a=_0x41fe8b[_0x1f5db3(0x1ef)];_0x41fe8b[_0x1f5db3(0x1ef)]=_0x3e60d1=>(_0x3e60d1[_0x1f5db3(0x265)]!==_0x23fb1d[_0x1f5db3(0x444)]&&this[_0x1f5db3(0x3f7)](_0x515186),_0x8c8a5a[_0x1f5db3(0x352)](_0x41fe8b,[_0x3e60d1])),(_0x38cbbf=_0x515186[_0x1f5db3(0x3f9)])==null||_0x38cbbf[_0x1f5db3(0x277)](),_0x515186[_0x1f5db3(0x3f9)]=null,_0x515186[_0x1f5db3(0x3f9)]=_0x41fe8b[_0x1f5db3(0x30b)][_0x1f5db3(0x368)](_0x27ffff=>this[_0x1f5db3(0x2b9)](_0x515186,_0x41fe8b,_0x27ffff)),_0x41fe8b[_0x1f5db3(0x37b)][_0x1f5db3(0x264)](_0x18ddcd(0x1))[_0x1f5db3(0x368)](_0x468216=>this['_logService'][_0x1f5db3(0x298)](_0x1f5db3(0x269),_0x468216)),_0x41fe8b[_0x1f5db3(0x314)][_0x1f5db3(0x264)](_0x18ddcd(0x1))[_0x1f5db3(0x368)](()=>{const _0x422178=_0x1f5db3;this[_0x422178(0x240)](_0x515186,_0x41fe8b);}),_0x41fe8b[_0x1f5db3(0x383)][_0x1f5db3(0x264)](_0x18ddcd(0x1))[_0x1f5db3(0x368)](_0x383053=>{const _0x58c7e7=_0x1f5db3;this[_0x58c7e7(0x1c1)][_0x58c7e7(0x305)](_0x58c7e7(0x2aa),_0x58c7e7(0x351),_0x383053),this[_0x58c7e7(0x42b)](_0x515186);});}}catch(_0x518d1b){this[_0x1f5db3(0x1c1)][_0x1f5db3(0x298)](_0x518d1b),this['_onConnectionFailed'](_0x515186);}}[_0x3bc572(0x240)](_0x8fb146,_0x4426df){const _0x21092f=_0x3bc572;this['_logService'][_0x21092f(0x305)]('[CollaborationSessionService]',_0x21092f(0x248)),_0x4426df[_0x21092f(0x1ef)]({'cmd':_0x23fb1d['HELLO']}),this[_0x21092f(0x3f7)](_0x8fb146);}[_0x3bc572(0x36b)](_0x10f922){const _0x23ad54=_0x3bc572;_0x10f922[_0x23ad54(0x2b4)]=!0x1,_0x10f922[_0x23ad54(0x3ff)]=null,this[_0x23ad54(0x34e)][_0x23ad54(0x2c7)](0x2),_0x10f922[_0x23ad54(0x354)]['next'](null),this['_clearTimeoutTimer'](_0x10f922),this[_0x23ad54(0x2a2)](_0x10f922);}[_0x3bc572(0x42b)](_0x2784da){const _0x4d842f=_0x3bc572;var _0x3b68fd;this[_0x4d842f(0x36b)](_0x2784da),this[_0x4d842f(0x369)](_0x2784da[_0x4d842f(0x38d)])&&(_0x2784da[_0x4d842f(0x2c8)]<((_0x3b68fd=this['_configService']['getConfig'](_0x4d842f(0x3ea)))==null?0x3:_0x3b68fd)?(this['_collaborationUIEventService'][_0x4d842f(0x340)]({'id':_0x4d842f(0x1b3)}),this[_0x4d842f(0x3f3)](_0x2784da)):this[_0x4d842f(0x33e)][_0x4d842f(0x340)]({'id':_0x4d842f(0x40b)}));}[_0x3bc572(0x3f3)](_0x4c7e4b){const _0x56e7b9=_0x3bc572;var _0x12851c;let _0x13e8e0=_0x4c7e4b[_0x56e7b9(0x2c8)],_0x73db5a=this[_0x56e7b9(0x1c9)][_0x56e7b9(0x306)](R),_0x5e866d=_0x13e8e0===0x0?0x0:((_0x12851c=_0x73db5a==null?void 0x0:_0x73db5a[_0x56e7b9(0x2f4)])==null?0x4e20:_0x12851c)*0x2**_0x13e8e0;_0x4c7e4b[_0x56e7b9(0x421)]=setTimeout(()=>{const _0x1da677=_0x56e7b9;clearTimeout(_0x4c7e4b[_0x1da677(0x421)]),_0x4c7e4b[_0x1da677(0x421)]=null,this[_0x1da677(0x3de)](_0x4c7e4b);},_0x5e866d),_0x4c7e4b['retryCount']+=0x1;}async[_0x3bc572(0x242)](_0x12ef76,_0x31e9ba){const _0x4084c1=_0x3bc572;return Mn(_0x12ef76,_0x31e9ba,await this[_0x4084c1(0x2d8)][_0x4084c1(0x402)]({'unitId':_0x12ef76,'unitType':_0x31e9ba}));}[_0x3bc572(0x2b9)](_0x2d1a6e,_0x41be4c,_0x1bb642){const _0xc4a754=_0x3bc572;let {cmd:_0xa98b78}=_0x1bb642;_0xa98b78===_0x23fb1d[_0xc4a754(0x292)]&&!_0x2d1a6e[_0xc4a754(0x2b4)]&&(_0x41be4c[_0xc4a754(0x3b6)]=_0x1bb642[_0xc4a754(0x2c6)]['memberID'],_0x2d1a6e[_0xc4a754(0x354)]['next'](_0x41be4c),this[_0xc4a754(0x34e)]['next'](0x3),_0x2d1a6e['socketReady']=!0x0,_0x2d1a6e[_0xc4a754(0x3ff)]=null),_0xa98b78===_0x23fb1d[_0xc4a754(0x20b)]&&this['_clearTimeoutTimer'](_0x2d1a6e),this[_0xc4a754(0x3f7)](_0x2d1a6e);}['_hasSessionsForEndpoint'](_0x4d0f02){const _0x5705e5=_0x3bc572;return[...this['_sessionChannels'][_0x5705e5(0x3fe)]()]['some'](_0x2172d4=>_0x2172d4===_0x4d0f02);}[_0x3bc572(0x266)](_0x223f86){const _0x1b4dd0=_0x3bc572;let _0xf559=_0x223f86==null?'':_0x223f86,_0x34edef=this[_0x1b4dd0(0x29c)]['get'](_0xf559);if(_0x34edef)return _0x34edef;let _0x9fbaf={'endpointKey':_0xf559,'endpoint':_0x223f86,'socket$':new _0x31b85e(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x1b4dd0(0x29c)]['set'](_0xf559,_0x9fbaf),_0x9fbaf;}[_0x3bc572(0x3f7)](_0xb5cffc){const _0x5736fe=_0x3bc572;var _0x157b5f;this[_0x5736fe(0x2a2)](_0xb5cffc),_0xb5cffc['sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](_0xb5cffc),(_0x157b5f=this['_configService'][_0x5736fe(0x306)](_0x5736fe(0x2c2)))==null?0x7530:_0x157b5f);}[_0x3bc572(0x209)](_0x3d37c6){const _0x4110eb=_0x3bc572;_0x3d37c6[_0x4110eb(0x354)][_0x4110eb(0x207)]()[_0x4110eb(0x1ef)]({'cmd':_0x23fb1d[_0x4110eb(0x20b)]}),this[_0x4110eb(0x294)](_0x3d37c6);}[_0x3bc572(0x294)](_0x51e9fd){const _0xa98c6=_0x3bc572;var _0x1e3f14;_0x51e9fd[_0xa98c6(0x22f)]=setTimeout(()=>this['_onConnectionFailed'](_0x51e9fd),(_0x1e3f14=this[_0xa98c6(0x1c9)][_0xa98c6(0x306)](_0xa98c6(0x358)))==null?_t:_0x1e3f14);}[_0x3bc572(0x2a2)](_0x200333){const _0x2ca126=_0x3bc572;_0x200333[_0x2ca126(0x1c2)]!=null&&(clearTimeout(_0x200333[_0x2ca126(0x1c2)]),_0x200333[_0x2ca126(0x1c2)]=null);}[_0x3bc572(0x1f1)](_0x4a6f1f){const _0x3e610b=_0x3bc572;_0x4a6f1f['timeoutTimer']!=null&&(clearTimeout(_0x4a6f1f['timeoutTimer']),_0x4a6f1f[_0x3e610b(0x22f)]=null);}};Nn=H([V(0x0,_0x167908(_0x35e9e2)),V(0x1,_0x2e09c7),V(0x2,_0xa7a1b6),V(0x3,Dn),V(0x4,_0x167908(B)),V(0x5,An),V(0x6,_0x2a5dd8(wn))],Nn);let Pn=class extends _0x4ca998{constructor(_0x24ac63,_0x1dd727,_0x3ba1f0,_0x33ee1c){const _0x5776a4=_0x3bc572;var _0x5aa67b;super(),this[_0x5776a4(0x44d)]=_0x24ac63,this['_collabSessionService']=_0x1dd727,this['_configService']=_0x3ba1f0,this[_0x5776a4(0x449)]=_0x33ee1c,z(this,_0x5776a4(0x410),new Map()),z(this,'_entityInit$',new _0x5b6066()),z(this,_0x5776a4(0x3c6),this[_0x5776a4(0x1d7)][_0x5776a4(0x43c)]()),((_0x5aa67b=this[_0x5776a4(0x1c9)][_0x5776a4(0x306)](_0x5776a4(0x282)))==null?void 0x0:_0x5aa67b['enableCollaboration'])!==!0x1&&this[_0x5776a4(0x212)]();}[_0x3bc572(0x1d4)](){const _0x45156f=_0x3bc572;super['dispose'](),this[_0x45156f(0x410)][_0x45156f(0x29a)](_0xd1585a=>_0xd1585a[_0x45156f(0x1d4)]()),this[_0x45156f(0x410)][_0x45156f(0x3bb)]();}[_0x3bc572(0x2dc)](_0x116cd3){const _0x38b59e=_0x3bc572;var _0x22ff9e;return(_0x22ff9e=this[_0x38b59e(0x410)][_0x38b59e(0x1e3)](_0x116cd3))==null?null:_0x22ff9e;}[_0x3bc572(0x1e6)](_0x2e3273){const _0x2785cc=_0x3bc572;let _0x4ef23d=this[_0x2785cc(0x2dc)](_0x2e3273);return _0x4ef23d?_0x5d6819(_0x4ef23d):this[_0x2785cc(0x1d7)][_0x2785cc(0x264)](_0x519396(_0x55ae0a=>_0x55ae0a[_0x2785cc(0x399)]===_0x2e3273));}['readyForCollab'](_0x5a7335){const _0x5aac37=_0x3bc572;return _0xecbbf6(this['getCollabEntity$'](_0x5a7335)[_0x5aac37(0x264)](_0x37612c(()=>void 0x0)));}[_0x3bc572(0x212)](){const _0x590857=_0x3bc572;this['_univerInstanceService'][_0x590857(0x2c4)](_0x1f1b4f[_0x590857(0x33c)])[_0x590857(0x264)](_0xb785f(this['dispose$']),_0x5f4ad8(0x10))[_0x590857(0x368)](async _0x5dbd01=>{const _0x533c74=_0x590857;let _0x51e8c6=_0x5dbd01[_0x533c74(0x1be)][_0x533c74(0x1da)](),_0x1d4529=await this[_0x533c74(0x3ba)](_0x51e8c6,_0x1f1b4f[_0x533c74(0x33c)]);this['_entities'][_0x533c74(0x405)](_0x51e8c6,_0x1d4529);}),this[_0x590857(0x449)][_0x590857(0x2c4)](_0x1f1b4f[_0x590857(0x3e1)])['pipe'](_0xb785f(this['dispose$']),_0x5f4ad8(0x10))[_0x590857(0x264)](_0x519396(_0x3d9e94=>!_0x3d9e94[_0x590857(0x1be)]['getUnitId']()['startsWith']('__')))[_0x590857(0x368)](async _0x1e70f8=>{const _0x499b82=_0x590857;let _0x6f127e=_0x1e70f8[_0x499b82(0x1be)]['getUnitId'](),_0x132cab=await this[_0x499b82(0x3ba)](_0x6f127e,_0x1f1b4f[_0x499b82(0x3e1)]);this[_0x499b82(0x410)][_0x499b82(0x405)](_0x6f127e,_0x132cab);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x1f1b4f[_0x590857(0x3c4)])[_0x590857(0x264)](_0xb785f(this[_0x590857(0x3d6)]),_0x5f4ad8(0x10))[_0x590857(0x368)](async _0x19e9db=>{const _0x42b396=_0x590857;let _0x280147=_0x19e9db[_0x42b396(0x1be)][_0x42b396(0x1da)](),_0x1ae9bd=await this['_startCollaboration'](_0x280147,_0x1f1b4f[_0x42b396(0x3c4)]);this['_entities'][_0x42b396(0x405)](_0x280147,_0x1ae9bd);}),this[_0x590857(0x449)][_0x590857(0x2c4)](_0x1f1b4f['UNIVER_BOARD'])[_0x590857(0x264)](_0xb785f(this[_0x590857(0x3d6)]),_0x5f4ad8(0x10))[_0x590857(0x368)](async _0x2afa27=>{const _0x3790f7=_0x590857;let _0x2d0f76=_0x2afa27[_0x3790f7(0x1be)][_0x3790f7(0x1da)](),_0x2a77df=await this[_0x3790f7(0x3ba)](_0x2d0f76,_0x1f1b4f[_0x3790f7(0x426)]);this[_0x3790f7(0x410)][_0x3790f7(0x405)](_0x2d0f76,_0x2a77df);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x1f1b4f[_0x590857(0x3fd)])[_0x590857(0x264)](_0xb785f(this[_0x590857(0x3d6)]),_0x5f4ad8(0x10))[_0x590857(0x368)](async _0x4d61db=>{const _0x3a8a4b=_0x590857;let _0x13d988=_0x4d61db['unit']['getUnitId'](),_0xe919fc=await this[_0x3a8a4b(0x3ba)](_0x13d988,_0x1f1b4f[_0x3a8a4b(0x3fd)]);this[_0x3a8a4b(0x410)][_0x3a8a4b(0x405)](_0x13d988,_0xe919fc);}),this[_0x590857(0x449)][_0x590857(0x2c4)](_0x1f1b4f[_0x590857(0x2ca)])['pipe'](_0xb785f(this[_0x590857(0x3d6)]),_0x5f4ad8(0x10))[_0x590857(0x368)](async _0xf52425=>{const _0x1e38d9=_0x590857;let _0x2682b9=_0xf52425[_0x1e38d9(0x1be)]['getUnitId'](),_0x24fecb=await this[_0x1e38d9(0x3ba)](_0x2682b9,_0x1f1b4f[_0x1e38d9(0x2ca)]);this[_0x1e38d9(0x410)][_0x1e38d9(0x405)](_0x2682b9,_0x24fecb);}),_0x4b9f39(this[_0x590857(0x449)]['getTypeOfUnitDisposed$'](_0x1f1b4f[_0x590857(0x33c)]),this[_0x590857(0x449)][_0x590857(0x40a)](_0x1f1b4f[_0x590857(0x3e1)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1f1b4f[_0x590857(0x3c4)]),this[_0x590857(0x449)][_0x590857(0x40a)](_0x1f1b4f[_0x590857(0x426)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1f1b4f['UNIVER_BASE']),this['_univerInstanceService'][_0x590857(0x40a)](_0x1f1b4f[_0x590857(0x2ca)]))['pipe'](_0xb785f(this[_0x590857(0x3d6)]))[_0x590857(0x368)](_0x901140=>{const _0x24bdfe=_0x590857;let _0x5ec70b=_0x901140[_0x24bdfe(0x1da)](),_0x5e2f8c=this[_0x24bdfe(0x410)][_0x24bdfe(0x1e3)](_0x5ec70b);_0x5e2f8c&&(_0x5e2f8c[_0x24bdfe(0x1d4)](),this[_0x24bdfe(0x410)]['delete'](_0x5ec70b));});}async[_0x3bc572(0x3ba)](_0x122823,_0x3429b6){const _0x3079cf=_0x3bc572;let _0x533c0b=await this[_0x3079cf(0x3c0)][_0x3079cf(0x252)](_0x122823),_0x58586e=this['_injector'][_0x3079cf(0x2fe)](this[_0x3079cf(0x2c0)](_0x3429b6),_0x122823,_0x3429b6,_0x533c0b);return await _0x58586e['init'](),this[_0x3079cf(0x1d7)][_0x3079cf(0x2c7)](_0x58586e),_0x58586e;}[_0x3bc572(0x2c0)](_0x2a2649){const _0x382d36=_0x3bc572;switch(_0x2a2649){case _0x1f1b4f[_0x382d36(0x3e1)]:return vn;case _0x1f1b4f['UNIVER_SHEET']:return bn;case _0x1f1b4f['UNIVER_SLIDE']:return xn;case _0x1f1b4f[_0x382d36(0x426)]:return Sn;case _0x1f1b4f['UNIVER_BASE']:return yn;case _0x1f1b4f[_0x382d36(0x2ca)]:return Cn;default:throw Error(_0x382d36(0x379)+_0x2a2649);}}};Pn=H([V(0x0,_0x167908(_0x35e9e2)),V(0x1,_0x167908(Nn)),V(0x2,_0xa7a1b6),V(0x3,_0x6f9bb2)],Pn);var Fn=_0x3bc572(0x23a),In='1.0.0-alpha.8';let Ln=class extends _0x376cce{constructor(_0x1a0204,_0x5364ca){const _0x6a8544=_0x3bc572;super(),this['_univerInstanceService']=_0x1a0204,this['_configService']=_0x5364ca,this[_0x6a8544(0x212)]();}['_init'](){const _0x464ada=_0x3bc572;this['disposeWithMe'](this[_0x464ada(0x449)][_0x464ada(0x28f)][_0x464ada(0x368)](()=>{const _0xaba180=_0x464ada;var _0x331bb6;let _0xe38336=this[_0xaba180(0x449)][_0xaba180(0x26d)](),_0x120b1=(_0x331bb6=this['_configService']['getConfig']('DEFAULT_FILE_NAME'))==null?_0xaba180(0x3b3):_0x331bb6;_0xe38336 instanceof _0x45f35b&&(_0x120b1=_0xe38336['name']),document[_0xaba180(0x205)]=_0x120b1;}));}};Ln=H([V(0x0,_0x6f9bb2),V(0x1,_0xa7a1b6)],Ln);const Rn=_0x5685c4('base-ui.attachment-io.service');let zn=class{constructor(_0x4d2b44,_0x28e77e,_0x23c88b){const _0x4eba0c=_0x3bc572;this['_httpService']=_0x4d2b44,this[_0x4eba0c(0x1c9)]=_0x28e77e,this['_univerInstanceService']=_0x23c88b;}[_0x3bc572(0x378)](){const _0x37b1be=_0x3bc572;var _0x4ad9fa;return(_0x4ad9fa=this['_getConfig']()[_0x37b1be(0x2d0)])==null?{}:_0x4ad9fa;}async[_0x3bc572(0x247)](_0x4aef98){const _0x48636f=_0x3bc572;let _0x23971f=this[_0x48636f(0x378)]();if(Bn(_0x4aef98,_0x23971f),_0x23971f[_0x48636f(0x2d6)])return _0x23971f['upload'](_0x4aef98);let _0x5c55fc=await this['_upload'](_0x4aef98);return{'id':_0x5c55fc,'name':_0x4aef98[_0x48636f(0x25f)],'mimeType':_0x4aef98[_0x48636f(0x2f0)],'size':_0x4aef98['size'],'sourceType':_0x493f5e[_0x48636f(0x241)],'source':_0x5c55fc};}async[_0x3bc572(0x30f)](_0xa3775c,_0x1be913){const _0x3b2273=_0x3bc572;if(_0x1be913!==_0x493f5e[_0x3b2273(0x241)])return _0xa3775c;let _0x1f0236=(await this[_0x3b2273(0x3b7)]['get'](this[_0x3b2273(0x1fc)]()['replace'](_0x3b2273(0x329),_0xa3775c)))['body'];if(_0x1f0236['error']&&_0x1f0236[_0x3b2273(0x298)][_0x3b2273(0x36f)]!==_0x2fd5b6['OK'])throw _0x1f0236[_0x3b2273(0x298)];if(!_0x1f0236[_0x3b2273(0x3cd)])throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.');return _0x4823ba(_0x1f0236[_0x3b2273(0x3cd)],this[_0x3b2273(0x28a)]());}async[_0x3bc572(0x367)](_0x262097){const _0x3d3f20=_0x3bc572;let _0x3efb20=this[_0x3d3f20(0x449)][_0x3d3f20(0x26d)](),_0x369c41=_0x3efb20==null?void 0x0:_0x3efb20[_0x3d3f20(0x1da)]();if(!_0x369c41)throw Error(_0x3d3f20(0x42d));let _0xa05d5a=new FormData();_0xa05d5a['append'](_0x3d3f20(0x203),_0x262097);let _0x748fb=this['_getUploadFileURL']()+_0x3d3f20(0x366)+_0x262097['size'][_0x3d3f20(0x1f6)]()+_0x3d3f20(0x3fa)+_0x10cf89[_0x3d3f20(0x1cc)]+_0x3d3f20(0x40c)+encodeURIComponent(_0x369c41),_0x38d680=(await this[_0x3d3f20(0x3b7)][_0x3d3f20(0x27f)](_0x748fb,{'body':_0xa05d5a}))['body'][_0x3d3f20(0x3b2)];if(typeof _0x38d680!=_0x3d3f20(0x288)||!_0x38d680)throw Error(_0x3d3f20(0x2bc));return _0x38d680;}[_0x3bc572(0x1e9)](){const _0x1ff444=_0x3bc572;var _0x128049;return(_0x128049=this[_0x1ff444(0x21e)]()['uploadFileServerUrl'])==null?_0x1ff444(0x43f):_0x128049;}[_0x3bc572(0x1fc)](){const _0x3f740f=_0x3bc572;var _0x2d833f;return(_0x2d833f=this[_0x3f740f(0x21e)]()[_0x3f740f(0x2c9)])==null?'/universer-api/file/{fileID}/sign-url':_0x2d833f;}[_0x3bc572(0x28a)](){const _0x2b2d12=_0x3bc572;var _0x47dc22;let _0x130926=this[_0x2b2d12(0x21e)]();return _0x130926['downloadEndpointUrl']?_0x130926[_0x2b2d12(0x1c8)]:typeof location<'u'?location[_0x2b2d12(0x32f)]:(_0x47dc22=_0x130926[_0x2b2d12(0x347)])==null?'':_0x47dc22;}[_0x3bc572(0x21e)](){const _0x6bfa25=_0x3bc572;var _0x10a52c;return(_0x10a52c=this[_0x6bfa25(0x1c9)][_0x6bfa25(0x306)](_0x6bfa25(0x282)))==null?{}:_0x10a52c;}};zn=H([V(0x0,_0x167908(_0x6a3f01)),V(0x1,_0x167908(_0xa7a1b6)),V(0x2,_0x167908(_0x6f9bb2))],zn);function Bn(_0x4cab76,_0x50e8bc){const _0x3defc8=_0x3bc572;var _0x45bfca;if(_0x50e8bc[_0x3defc8(0x287)]!=null&&_0x4cab76[_0x3defc8(0x318)]>_0x50e8bc[_0x3defc8(0x287)])throw Error(_0x3defc8(0x32e));if((_0x45bfca=_0x50e8bc[_0x3defc8(0x3eb)])!=null&&_0x45bfca[_0x3defc8(0x28d)]&&!_0x50e8bc['accept']['some'](_0x1912dc=>_0x4cab76['type']===_0x1912dc||_0x4cab76[_0x3defc8(0x25f)]['endsWith'](_0x1912dc)||_0x1912dc[_0x3defc8(0x27c)]('/*')&&_0x4cab76['type'][_0x3defc8(0x214)](_0x1912dc['slice'](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let Vn=class{constructor(_0x4e0436,_0x3804d0,_0x466068){const _0x4600a4=_0x3bc572;this['_configService']=_0x4e0436,this[_0x4600a4(0x3b7)]=_0x3804d0,this[_0x4600a4(0x341)]=_0x466068,this[_0x4600a4(0x3bf)]();}['init'](){const _0x16c9e1=_0x3bc572;this[_0x16c9e1(0x3b7)][_0x16c9e1(0x254)]({'priority':0x1,'interceptor':(_0x59dfd4,_0x489e7a)=>_0x489e7a(_0x59dfd4)[_0x16c9e1(0x264)](_0x4bcf17(async _0x528401=>{const _0x48ff8e=_0x16c9e1;let _0x2b0c60=_0x528401;if(_0x2b0c60['status']===0x191){if(typeof window>'u')throw Error(_0x48ff8e(0x2e4));if(window[_0x48ff8e(0x1e7)](this[_0x48ff8e(0x341)]['t'](_0x48ff8e(0x211)))){let _0x8fc6f0=window[_0x48ff8e(0x37c)](window['location']['href']);window['location'][_0x48ff8e(0x392)]=this[_0x48ff8e(0x34b)]()+'?url='+_0x8fc6f0;}}return _0x2b0c60;}))});}[_0x3bc572(0x34b)](){const _0x3fa052=_0x3bc572;var _0x209ad7;let _0x3ce33e=this['_configService']['getConfig'](R);return(_0x209ad7=_0x3ce33e==null?void 0x0:_0x3ce33e[_0x3fa052(0x310)])==null?'/universer-api/oidc/authpage':_0x209ad7;}};Vn=H([V(0x0,_0xa7a1b6),V(0x1,_0x167908(_0x6a3f01)),V(0x2,_0x167908(_0x3b5f18))],Vn);let Hn=class extends _0x376cce{constructor(_0x51d49d,_0x1f72a4){const _0x21c479=_0x3bc572;super(),this['_HTTPService']=_0x51d49d,this[_0x21c479(0x1c9)]=_0x1f72a4,z(this,'_cfgEnableObjInherit',!0x1),this[_0x21c479(0x1f0)]();}[_0x3bc572(0x1f0)](){const _0x3151cd=_0x3bc572;let _0x5befb8=this;this[_0x3151cd(0x21b)](this[_0x3151cd(0x3db)][_0x3151cd(0x254)]({'priority':0x3e7,'interceptor':_0x24f540({'isMatch'(_0x4c1fd3){const _0x1d5896=_0x3151cd;var _0x10a3d9;if(_0x4c1fd3[_0x1d5896(0x2d4)]===_0x1d5896(0x1b7)&&(_0x10a3d9=_0x4c1fd3['requestParams'])!=null&&_0x10a3d9[_0x1d5896(0x236)]){let {objectID:_0x49d135,objectType:_0x707585}=_0x4c1fd3['requestParams'][_0x1d5896(0x236)]||{};if(!_0x49d135||_0x707585===void 0x0)return!0x1;let _0x5f30c8=_0x5befb8[_0x1d5896(0x362)]()+'/'+_0x707585+_0x1d5896(0x3a5)+_0x49d135+_0x1d5896(0x3a6);if(_0x4c1fd3[_0x1d5896(0x3cd)]===_0x5f30c8)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xd26b22){const _0x529018=_0x3151cd;var _0x3a2fbb;return(_0x3a2fbb=_0xd26b22[_0x529018(0x3d9)])==null?void 0x0:_0x3a2fbb[_0x529018(0x236)];},'mergeParamsToRequest'(_0x260308,_0x438029){const _0x3d3c70=_0x3151cd;let _0x4d2924=_0x5befb8[_0x3d3c70(0x362)]()+_0x3d3c70(0x243),_0x1a3c5b=_0x260308[_0x3d3c70(0x336)]((_0x5c3015,_0x301cf5)=>{const _0x24b3d8=_0x3d3c70;let {unitID:_0x10cd1c,objectID:_0x1ef581,objectType:_0x41933b,actions:_0x1467a1}=_0x301cf5;return _0x5c3015[_0x10cd1c]||(_0x5c3015[_0x10cd1c]={}),_0x5c3015[_0x10cd1c][_0x1ef581]||(_0x5c3015[_0x10cd1c][_0x1ef581]={'objectID':_0x1ef581,'objectType':_0x41933b,'actions':[]}),_0x5c3015[_0x10cd1c][_0x1ef581]['actions'][_0x24b3d8(0x250)](..._0x1467a1),_0x5c3015;},{}),_0x3f5c2c=[];for(let _0x592442 in _0x1a3c5b)for(let _0x1c6460 in _0x1a3c5b[_0x592442]){let {actions:_0x4db69c,objectType:_0x506bf4}=_0x1a3c5b[_0x592442][_0x1c6460],_0x3bdbda=[...new Set(_0x4db69c)];_0x3f5c2c[_0x3d3c70(0x250)]({'unitID':_0x592442,'objectID':_0x1c6460,'objectType':_0x506bf4,'actions':_0x3bdbda});}return new _0x3cc753('POST',_0x4d2924,{'headers':_0x438029[_0x3d3c70(0x2b5)],'withCredentials':_0x438029[_0x3d3c70(0x3e8)],'responseType':_0x438029[_0x3d3c70(0x2d2)],'body':{'requests':_0x3f5c2c}});}},{'distributeResult'(_0x45f209,_0xf63e21){const _0x415754=_0x3151cd;let {objectActions:_0xf187f2}=_0x45f209;return _0xf63e21[_0x415754(0x239)](_0x4083f3=>{const _0x85373f=_0x415754;let {unitID:_0x41c5a8,objectID:_0x1d96b3,actions:_0x560bcb}=_0x4083f3,_0x9582fd=_0xf187f2['find'](_0x4fb080=>_0x4fb080['unitID']===_0x41c5a8&&_0x4fb080[_0x85373f(0x1ab)]===_0x1d96b3);return{'config':_0x4083f3,'result':{'actions':_0x560bcb[_0x85373f(0x239)](_0x12a25e=>_0x9582fd==null?void 0x0:_0x9582fd[_0x85373f(0x311)][_0x85373f(0x398)](_0x20459b=>_0x20459b[_0x85373f(0x283)]===_0x12a25e))['filter'](_0x199d0=>!!_0x199d0),'error':_0x45f209[_0x85373f(0x298)]}};});}})}));}[_0x3bc572(0x362)](){const _0xdbf4d1=_0x3bc572;var _0x109536;let _0x32300a=this[_0xdbf4d1(0x1c9)][_0xdbf4d1(0x306)](R);return(_0x109536=_0x32300a==null?void 0x0:_0x32300a['authzUrl'])==null?_0xdbf4d1(0x290):_0x109536;}async[_0x3bc572(0x1eb)](_0x5c5720){const _0x2341a1=_0x3bc572;let _0x5000a5=this[_0x2341a1(0x362)]()+'/'+_0x5c5720['objectType']+_0x2341a1(0x302);return(await this[_0x2341a1(0x3db)]['post'](_0x5000a5,{'body':_0x5c5720}))['body'][_0x2341a1(0x1ab)]||'';}async[_0x3bc572(0x34c)](_0x1bcf06){const _0x1c4351=_0x3bc572;let _0x303b21=this['_getAPIPrefixPath']()+_0x1c4351(0x407);return(await this[_0x1c4351(0x3db)][_0x1c4351(0x27f)](_0x303b21,{'body':_0x1bcf06}))[_0x1c4351(0x236)][_0x1c4351(0x36e)];}async[_0x3bc572(0x37f)](_0x54196c){const _0x173a6e=_0x3bc572;var _0x37e999;let _0x8fb431=this[_0x173a6e(0x362)]()+'/'+_0x54196c[_0x173a6e(0x273)]+_0x173a6e(0x3a5)+_0x54196c[_0x173a6e(0x1ab)],_0xd5e7fe=await this[_0x173a6e(0x3db)][_0x173a6e(0x2d9)](_0x8fb431,{'body':_0x54196c});if((_0xd5e7fe==null||(_0x37e999=_0xd5e7fe[_0x173a6e(0x236)])==null||(_0x37e999=_0x37e999[_0x173a6e(0x298)])==null?void 0x0:_0x37e999[_0x173a6e(0x36f)])!==0x1)throw Error(_0x173a6e(0x21d));}async['allowed'](_0x4ea0e1){const _0x270a31=_0x3bc572;let _0x30e018=this['_getAPIPrefixPath']()+'/'+_0x4ea0e1[_0x270a31(0x273)]+_0x270a31(0x3a5)+_0x4ea0e1[_0x270a31(0x1ab)]+_0x270a31(0x3a6);return(await this[_0x270a31(0x3db)][_0x270a31(0x27f)](_0x30e018,{'body':_0x4ea0e1}))[_0x270a31(0x236)][_0x270a31(0x311)];}async['batchAllowed'](_0x3ac8ff){const _0x9976b1=_0x3bc572;let _0x3a455e=this[_0x9976b1(0x362)]()+_0x9976b1(0x243);return(await this['_HTTPService'][_0x9976b1(0x27f)](_0x3a455e,{'body':{'requests':_0x3ac8ff}}))[_0x9976b1(0x236)]['objectActions'];}async['listRoles'](_0xae85bc){const _0x5de7f2=_0x3bc572;let _0x495c24=this[_0x5de7f2(0x362)]()+'/'+_0xae85bc['objectType']+'/role',_0x8bc260=await this[_0x5de7f2(0x3db)][_0x5de7f2(0x27f)](_0x495c24,{'body':_0xae85bc});return{'roles':_0x8bc260[_0x5de7f2(0x236)][_0x5de7f2(0x3d0)],'actions':_0x8bc260[_0x5de7f2(0x236)][_0x5de7f2(0x311)]};}async[_0x3bc572(0x345)](_0x442481){const _0x44dded=_0x3bc572;let _0x5e14e0=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x44dded(0x3db)][_0x44dded(0x1b4)](_0x5e14e0,{'params':{'collaboratorID':_0x442481['collaboratorID'],'objectID':_0x442481[_0x44dded(0x1ab)],'unitID':_0x442481[_0x44dded(0x399)]}});}async[_0x3bc572(0x3ee)](_0x5e34f1){const _0x19a4c4=_0x3bc572;let _0x3d1ebc=this['_getAPIPrefixPath']()+_0x19a4c4(0x3e4);await this[_0x19a4c4(0x3db)][_0x19a4c4(0x23b)](_0x3d1ebc,{'body':_0x5e34f1});}async['createCollaborator'](_0x11a3e8){const _0x42a097=_0x3bc572;let _0xffbfab=this[_0x42a097(0x362)]()+_0x42a097(0x3e4);await this[_0x42a097(0x3db)][_0x42a097(0x27f)](_0xffbfab,{'body':_0x11a3e8});}async[_0x3bc572(0x322)](_0x296720){const _0x73a708=_0x3bc572;var _0x451891;let _0x11b07b=this[_0x73a708(0x362)]()+_0x73a708(0x3e4),_0x4a8dfb=await this[_0x73a708(0x3db)][_0x73a708(0x1e3)](_0x11b07b,{'params':{'objectID':_0x296720[_0x73a708(0x1ab)],'unitID':_0x296720[_0x73a708(0x399)]}});return this[_0x73a708(0x425)]((_0x451891=_0x4a8dfb[_0x73a708(0x236)][_0x73a708(0x216)])!=null&&_0x451891),_0x4a8dfb[_0x73a708(0x236)][_0x73a708(0x38f)];}async[_0x3bc572(0x3a9)](_0x12bdc7){const _0xd1d887=_0x3bc572;let _0x1a6fea=this[_0xd1d887(0x362)]()+_0xd1d887(0x3e4);await this[_0xd1d887(0x3db)][_0xd1d887(0x2d9)](_0x1a6fea,{'body':_0x12bdc7});}[_0x3bc572(0x425)](_0x5aaa4e){const _0x9021ee=_0x3bc572;this[_0x9021ee(0x2a1)]=_0x5aaa4e;}['getCfgEnableObjInherit'](){return this['_cfgEnableObjInherit'];}};Hn=H([V(0x0,_0x167908(_0x6a3f01)),V(0x1,_0x167908(_0xa7a1b6))],Hn);function Un(_0x4ec4f6){const _0x17e813=_0x3bc572;let _0x5a89b6=atob(_0x4ec4f6),_0x4809de=new Uint8Array(_0x5a89b6[_0x17e813(0x28d)]);for(let _0x19a64f=0x0;_0x19a64f<_0x5a89b6[_0x17e813(0x28d)];_0x19a64f++)_0x4809de[_0x19a64f]=_0x5a89b6['charCodeAt'](_0x19a64f);return _0x4809de;}function Wn(_0xdd1e4b){const _0x54582b=_0x3bc572;let _0x42126e='';for(let _0x31d73d=0x0;_0x31d73d<_0xdd1e4b[_0x54582b(0x28d)];_0x31d73d++)_0x42126e+=String['fromCharCode'](_0xdd1e4b[_0x31d73d]);return btoa(_0x42126e);}function Gn(_0x1e1b16,_0xa24e80){let _0x353a1a=Un(_0xa24e80),_0x2969b8=_0x1dfafc(0x10);return Wn(_0x2bb09d(_0x2969b8,_0x3823ef(_0x353a1a,_0x2969b8)['encrypt'](_0x34339e(_0x1e1b16))));}function Kn(){const _0x3da139=_0x3bc572;let _0x1e627c=_0x153271()[_0x3da139(0x3ae)];if(typeof window<'u'&&window[_0x3da139(0x3d7)]!==void 0x0&&_0x1e627c){let _0x18b81f={'time':Math[_0x3da139(0x3a0)](Date['now']()/0x3e8),'domain':location[_0x3da139(0x3e0)]};return Gn(JSON[_0x3da139(0x3c3)](_0x18b81f),_0x1e627c);}}let qn=class{constructor(_0x52c5bb){const _0x6bab9f=_0x3bc572;this[_0x6bab9f(0x3b7)]=_0x52c5bb,this['_initRequestHeader']();}[_0x3bc572(0x372)](){const _0x4d808d=_0x3bc572;this['_httpService'][_0x4d808d(0x254)]({'interceptor':(_0xc952b,_0x42814b)=>{const _0x124280=_0x4d808d;let _0x72a80=Kn();return _0x72a80&&_0xc952b[_0x124280(0x2b5)]['set'](_0x124280(0x1b2),_0x72a80),_0x42814b(_0xc952b);}});}};qn=H([V(0x0,_0x167908(_0x6a3f01))],qn);let Jn=class extends _0x4ca998{constructor(_0x2adb41,_0x4f9091,_0x4364e6){const _0x3de8a0=_0x3bc572;super(),this[_0x3de8a0(0x1c1)]=_0x2adb41,this[_0x3de8a0(0x2bf)]=_0x4f9091,this[_0x3de8a0(0x422)]=_0x4364e6,z(this,_0x3de8a0(0x2ad),new _0x31b85e(null)),z(this,'_unitLoaded$',new _0x5b6066()),z(this,'unitInfo$',this[_0x3de8a0(0x2ad)][_0x3de8a0(0x43c)]()),z(this,_0x3de8a0(0x309),this[_0x3de8a0(0x3d5)][_0x3de8a0(0x43c)]());}[_0x3bc572(0x1d4)](){const _0x22549b=_0x3bc572;super[_0x22549b(0x1d4)](),this[_0x22549b(0x3d5)]['complete'](),this[_0x22549b(0x2ad)][_0x22549b(0x42f)]();}async[_0x3bc572(0x245)](_0x1d44e0,_0x17750a,_0x3481ff,_0x5a1da8){const _0x19bfd4=_0x3bc572;this['_unitInfo$'][_0x19bfd4(0x2c7)]({'unitId':_0x1d44e0,'type':_0x17750a,'subUnitId':_0x5a1da8});let _0x28f19a=null;switch(_0x17750a){case _0x1f1b4f[_0x19bfd4(0x33c)]:_0x28f19a=await this[_0x19bfd4(0x2bf)][_0x19bfd4(0x274)](_0x1d44e0,_0x3481ff,void 0x0,{'initialSubUnitId':_0x5a1da8});break;case _0x1f1b4f['UNIVER_DOC']:_0x28f19a=await this[_0x19bfd4(0x2bf)][_0x19bfd4(0x335)](_0x1d44e0,_0x3481ff);break;case _0x1f1b4f['UNIVER_SLIDE']:_0x28f19a=await this[_0x19bfd4(0x2bf)][_0x19bfd4(0x343)](_0x1d44e0,_0x3481ff);break;case _0x1f1b4f[_0x19bfd4(0x426)]:_0x28f19a=await this['_snapshotService'][_0x19bfd4(0x2f7)](_0x1d44e0,_0x3481ff);break;case _0x1f1b4f[_0x19bfd4(0x3fd)]:_0x28f19a=await this[_0x19bfd4(0x2bf)][_0x19bfd4(0x38b)](_0x1d44e0,_0x3481ff);break;case _0x1f1b4f['UNIVER_PDF']:_0x28f19a=await this[_0x19bfd4(0x2bf)][_0x19bfd4(0x2df)](_0x1d44e0,_0x3481ff);break;default:this[_0x19bfd4(0x1c1)][_0x19bfd4(0x298)](_0x19bfd4(0x1f9),_0x19bfd4(0x430));break;}return _0x28f19a&&this[_0x19bfd4(0x3d5)][_0x19bfd4(0x2c7)](_0x28f19a),_0x28f19a;}async[_0x3bc572(0x436)](_0x103631,_0x46c4e9,_0x22d060){const _0xa98243=_0x3bc572;var _0x39f1bf;this[_0xa98243(0x2ad)][_0xa98243(0x2c7)]({'unitId':_0x103631,'type':_0x46c4e9,'subUnitId':_0x22d060});let _0xbdd6e0=0x0,_0x6906ed=await((_0x39f1bf=this[_0xa98243(0x422)])==null?void 0x0:_0x39f1bf[_0xa98243(0x270)](_0x103631));return _0x6906ed&&(_0x6906ed[_0xa98243(0x3c2)]||_0x6906ed[_0xa98243(0x227)][_0xa98243(0x28d)]!==0x0)&&(_0xbdd6e0=_0x6906ed[_0xa98243(0x441)]),_0xbdd6e0===0x0&&this[_0xa98243(0x1c1)][_0xa98243(0x305)](_0xa98243(0x1f9),_0xa98243(0x427)),this[_0xa98243(0x245)](_0x103631,_0x46c4e9,_0xbdd6e0,_0x22d060);}};Jn=H([V(0x0,_0x2e09c7),V(0x1,_0x167908(_0x3209ea)),V(0x2,_0x2a5dd8(U))],Jn);let Yn=class{constructor(_0x119983,_0x146e1e,_0x59aca5){const _0x3cee12=_0x3bc572;this[_0x3cee12(0x3b7)]=_0x119983,this[_0x3cee12(0x1c9)]=_0x146e1e,this[_0x3cee12(0x449)]=_0x59aca5,z(this,_0x3cee12(0x2e8),0x0),z(this,_0x3cee12(0x32b),new _0x5b6066()),z(this,'change$',this[_0x3cee12(0x32b)]),z(this,_0x3cee12(0x258),new Map());}[_0x3bc572(0x263)](_0x4bf4e4){const _0x2497a5=_0x3bc572;this['_waitCount']=_0x4bf4e4,this['_change$'][_0x2497a5(0x2c7)](_0x4bf4e4);}['getImageSourceCache'](_0x44ce42,_0x40d9e1){const _0x256470=_0x3bc572;if(_0x40d9e1===_0x493f5e[_0x256470(0x387)]){let _0x3601b8=new Image();return _0x3601b8[_0x256470(0x2bd)]=_0x44ce42,_0x3601b8;}return this[_0x256470(0x258)][_0x256470(0x1e3)](_0x44ce42);}[_0x3bc572(0x1de)](_0x23e2e6,_0x2e21b2,_0x33a642){const _0x1ee106=_0x3bc572;_0x2e21b2!==_0x493f5e[_0x1ee106(0x387)]&&_0x33a642!=null&&this['_imageSourceCache'][_0x1ee106(0x405)](_0x23e2e6,_0x33a642);}async[_0x3bc572(0x21a)](_0xc48d3c){const _0x52764e=_0x3bc572;try{let _0x316873=this['_replaceFileID'](this['_getSignURL'](),''+_0xc48d3c),_0x28a0c2=(await this['_httpService'][_0x52764e(0x1e3)](_0x316873))[_0x52764e(0x236)];if(_0x28a0c2[_0x52764e(0x298)]&&_0x28a0c2[_0x52764e(0x298)]['code']===_0x2fd5b6['OK']){let _0x313384=_0x4823ba(_0x28a0c2[_0x52764e(0x3cd)],this[_0x52764e(0x28a)]());return Promise[_0x52764e(0x2a9)](_0x313384);}return Promise[_0x52764e(0x36a)](_0x28a0c2['error']);}catch(_0x3f72f0){return Promise[_0x52764e(0x36a)](_0x3f72f0);}}async['saveImage'](_0x203dec){const _0x37f57a=_0x3bc572;let _0x7d0a00='';if(!_0x286929[_0x37f57a(0x382)](_0x203dec[_0x37f57a(0x2f0)]))return this['_decreaseWaiting'](),Promise[_0x37f57a(0x36a)](Error(_0x13bf4f[_0x37f57a(0x438)]));if(_0x203dec[_0x37f57a(0x318)]>_0xba57e6())return this[_0x37f57a(0x40e)](),Promise['reject'](Error(_0x13bf4f[_0x37f57a(0x1f7)]));try{let _0x1d1502=new FormData();_0x1d1502[_0x37f57a(0x2ea)]('file',_0x203dec);let _0x1c036c=this[_0x37f57a(0x449)][_0x37f57a(0x26d)](),_0x3d9904=_0x1c036c==null?void 0x0:_0x1c036c[_0x37f57a(0x1da)]();if(!_0x3d9904)throw Error('unitId\x20is\x20not\x20found');let _0x31bf43=this[_0x37f57a(0x1e9)]()+'?size='+_0x203dec['size']['toString']()+_0x37f57a(0x3fa)+_0x10cf89[_0x37f57a(0x1cc)]+_0x37f57a(0x40c)+encodeURIComponent(_0x3d9904),_0x3d8e20={'body':_0x1d1502},_0xde078=(await this['_httpService']['post'](_0x31bf43,_0x3d8e20))['body'];if(typeof _0xde078[_0x37f57a(0x3b2)]!=_0x37f57a(0x288))return this[_0x37f57a(0x40e)](),Promise[_0x37f57a(0x36a)](Error(_0x13bf4f['ERROR_IMAGE']));_0x7d0a00=_0xde078['FileId'];}catch{return this[_0x37f57a(0x40e)](),Promise[_0x37f57a(0x36a)](Error(_0x13bf4f[_0x37f57a(0x20c)]));}return new Promise((_0x2c0ddb,_0x3d8362)=>{const _0x5c5732=_0x37f57a;let _0xc72eb5=new FileReader();_0xc72eb5[_0x5c5732(0x26e)](_0x203dec),_0xc72eb5[_0x5c5732(0x280)]=_0x3678d4=>{const _0x5bec75=_0x5c5732;var _0x283226;let _0xd1d02e=(_0x283226=_0x3678d4[_0x5bec75(0x24b)])==null?void 0x0:_0x283226[_0x5bec75(0x256)];if(_0xd1d02e==null){this[_0x5bec75(0x40e)](),_0x3d8362(Error(_0x13bf4f[_0x5bec75(0x20c)]));return;}_0x2c0ddb({'imageId':_0x197487(0x6),'imageSourceType':_0x493f5e['UUID'],'source':_0x7d0a00,'base64Cache':_0xd1d02e,'status':_0x13bf4f[_0x5bec75(0x43a)]}),this[_0x5bec75(0x40e)]();};});}['_getUploadFileURL'](){const _0x4bed2d=_0x3bc572;var _0x2c0fe7;let _0x2782dc=this[_0x4bed2d(0x1c9)][_0x4bed2d(0x306)](R);return(_0x2c0fe7=_0x2782dc==null?void 0x0:_0x2782dc['uploadFileServerUrl'])==null?'/universer-api/stream/file/upload':_0x2c0fe7;}['_getSignURL'](){const _0x3dfe70=_0x3bc572;var _0x5f0152;let _0x36e24d=this[_0x3dfe70(0x1c9)]['getConfig'](R);return(_0x5f0152=_0x36e24d==null?void 0x0:_0x36e24d[_0x3dfe70(0x2c9)])==null?_0x3dfe70(0x1d3):_0x5f0152;}[_0x3bc572(0x28a)](){const _0x2f49c4=_0x3bc572;var _0x2280b2;let _0x5b4850=this[_0x2f49c4(0x1c9)][_0x2f49c4(0x306)](R);return(_0x2280b2=_0x5b4850==null?void 0x0:_0x5b4850[_0x2f49c4(0x1c8)])==null?location[_0x2f49c4(0x32f)]:_0x2280b2;}[_0x3bc572(0x2d1)](_0x280357,_0x114b43){const _0x163da0=_0x3bc572;return _0x280357[_0x163da0(0x3a1)](_0x163da0(0x329),_0x114b43);}[_0x3bc572(0x40e)](){const _0x3d076d=_0x3bc572;--this['_waitCount'],this[_0x3d076d(0x32b)][_0x3d076d(0x2c7)](this['_waitCount']);}};Yn=H([V(0x0,_0x167908(_0x6a3f01)),V(0x1,_0xa7a1b6),V(0x2,_0x167908(_0x6f9bb2))],Yn);let Xn=class{constructor(_0x5a4f14,_0x4c6868){const _0x3ef839=_0x3bc572;this[_0x3ef839(0x1c9)]=_0x5a4f14,this[_0x3ef839(0x3db)]=_0x4c6868;}[_0x3bc572(0x362)](){const _0x24663a=_0x3bc572;var _0x32339b;let _0x3731db=this[_0x24663a(0x1c9)][_0x24663a(0x306)](R);return(_0x32339b=_0x3731db==null?void 0x0:_0x3731db[_0x24663a(0x275)])==null?_0x24663a(0x290):_0x32339b;}async['list'](_0x40bdf4){const _0x3e7197=_0x3bc572;let _0x20f410=this['_getAPIPrefixPath']()+_0x3e7197(0x3e4);return{'list':[{'title':'People','mentions':(await this[_0x3e7197(0x3db)][_0x3e7197(0x1e3)](_0x20f410,{'params':{'objectID':_0x40bdf4['unitId'],'unitID':_0x40bdf4[_0x3e7197(0x395)]}}))[_0x3e7197(0x236)][_0x3e7197(0x38f)][_0x3e7197(0x239)](_0x263bc0=>({'objectId':_0x263bc0['id'],'name':_0x263bc0[_0x3e7197(0x235)][_0x3e7197(0x25f)],'metadata':{'icon':_0x263bc0[_0x3e7197(0x235)][_0x3e7197(0x29f)]},'label':_0x263bc0['subject'][_0x3e7197(0x25f)],'objectType':_0x118ea1['PERSON']})),'metadata':{},'type':_0x118ea1['PERSON']}]};}};Xn=H([V(0x0,_0x167908(_0xa7a1b6)),V(0x1,_0x167908(_0x6a3f01))],Xn);let Zn=class extends _0x4ca998{constructor(_0x1d9c62,_0x4820b0,_0x2b0266,_0x17fd9a,_0x2f50a9){const _0x2f40c4=_0x3bc572;super(),this[_0x2f40c4(0x44d)]=_0x1d9c62,this['_univerInstanceService']=_0x4820b0,this[_0x2f40c4(0x1cb)]=_0x2b0266,this[_0x2f40c4(0x225)]=_0x17fd9a,this[_0x2f40c4(0x33e)]=_0x2f50a9,this[_0x2f40c4(0x1e0)](),this[_0x2f40c4(0x325)]();}['_initCloseConn'](){const _0x2e83c8=_0x3bc572;let _0x4778ee=async _0x3122ff=>{const _0x461d2f=_0xe493;(await this[_0x461d2f(0x225)][_0x461d2f(0x252)](_0x3122ff))[_0x461d2f(0x396)][_0x461d2f(0x264)](_0x519396(_0x5ddbab=>_0x5ddbab['eventID']===_0x7dd1cb[_0x461d2f(0x268)]),_0x42f81a(this[_0x461d2f(0x3d6)]))[_0x461d2f(0x368)](_0x26a7d8=>{const _0x348c41=_0x461d2f;let {reason:_0x1d4fe7}=_0x26a7d8['data'];this[_0x348c41(0x33e)][_0x348c41(0x340)]({'id':_0x348c41(0x3be),'data':_0x1d4fe7}),this[_0x348c41(0x1cb)][_0x348c41(0x429)](new _0x3d21fe(_0x3122ff)['id'],!0x1),this['_collaborationSessionService'][_0x348c41(0x1bc)](_0x3122ff);});};_0x4b9f39(this['_univerInstanceService'][_0x2e83c8(0x2c4)](_0x1f1b4f[_0x2e83c8(0x33c)]),this[_0x2e83c8(0x449)]['getTypeOfUnitAdded$'](_0x1f1b4f['UNIVER_DOC']),this[_0x2e83c8(0x449)][_0x2e83c8(0x2c4)](_0x1f1b4f[_0x2e83c8(0x426)]),this[_0x2e83c8(0x449)]['getTypeOfUnitAdded$'](_0x1f1b4f[_0x2e83c8(0x3fd)]))[_0x2e83c8(0x264)](_0x37612c(_0x42544e=>_0x42544e[_0x2e83c8(0x1be)][_0x2e83c8(0x1da)]()),_0x519396(_0xd07265=>!_0x238b00(_0xd07265)),_0x42f81a(this['dispose$']))[_0x2e83c8(0x368)](_0x2d0272=>{_0x4778ee(_0x2d0272);});}['_initUnitPermissionChange'](){const _0x436c8a=_0x3bc572;let _0x3b74e4=async _0x323bdf=>{const _0x58530f=_0xe493;let _0x99b5a0=await this[_0x58530f(0x225)][_0x58530f(0x252)](_0x323bdf),_0x5167de=this[_0x58530f(0x44d)][_0x58530f(0x1e3)](_0x265733);_0x99b5a0[_0x58530f(0x396)][_0x58530f(0x264)](_0x519396(_0x3340d3=>_0x3340d3[_0x58530f(0x313)]===_0x7dd1cb[_0x58530f(0x303)]),_0x42f81a(this[_0x58530f(0x3d6)]))['subscribe'](_0x3c6930=>{const _0x380789=_0x58530f;let {objectId:_0x17d682}=_0x3c6930[_0x380789(0x2c6)];_0x17d682===_0x323bdf?_0x5167de['initWorkbookPermissionChange'](_0x323bdf):_0x5167de[_0x380789(0x1f3)](_0x323bdf,_0x17d682);});};_0x4b9f39(this[_0x436c8a(0x449)]['getTypeOfUnitAdded$'](_0x1f1b4f[_0x436c8a(0x33c)]))[_0x436c8a(0x264)](_0x37612c(_0x16f89c=>_0x16f89c[_0x436c8a(0x1be)]['getUnitId']()),_0x519396(_0xdc8ea=>!_0x238b00(_0xdc8ea)),_0x42f81a(this[_0x436c8a(0x3d6)]))[_0x436c8a(0x368)](_0x324245=>{_0x3b74e4(_0x324245);});}};Zn=H([V(0x0,_0x167908(_0x35e9e2)),V(0x1,_0x6f9bb2),V(0x2,_0x3058fc),V(0x3,_0x167908(Nn)),V(0x4,_0x167908(B))],Zn);let Qn=class{constructor(_0x212c3f,_0xcc7cf3){const _0x4c37ce=_0x3bc572;this[_0x4c37ce(0x1c9)]=_0x212c3f,this[_0x4c37ce(0x3b7)]=_0xcc7cf3;}async['getUnitOnRev'](_0x49e016,_0x481721){const _0x9f8487=_0x3bc572;var _0x1fec1e;let {unitID:_0x3b859f,type:_0x34ccbc,revision:_0x5ae4cd=0x0}=_0x481721,_0x4e7c67=this[_0x9f8487(0x281)]()+'/'+_0x34ccbc+_0x9f8487(0x44c)+_0x3b859f+_0x9f8487(0x3d1)+_0x5ae4cd,_0x47f1f5=(await this[_0x9f8487(0x3b7)][_0x9f8487(0x1e3)](_0x4e7c67))[_0x9f8487(0x236)],_0x5ab13b=(_0x1fec1e=_0x47f1f5[_0x9f8487(0x44b)])==null?void 0x0:_0x1fec1e[_0x9f8487(0x1ea)];if(_0x5ab13b){let _0x232fe8=_0x5ab13b==null?void 0x0:_0x5ab13b['originalMeta'];_0x5ab13b[_0x9f8487(0x2f2)]=_0x204083[_0x9f8487(0x37d)](_0x430315(_0x232fe8)),Object[_0x9f8487(0x39b)](_0x5ab13b['sheets'])['forEach'](([,_0x219c26])=>{const _0x1eca97=_0x9f8487;let _0x5f9e16=_0x219c26['originalMeta'];_0x219c26[_0x1eca97(0x2f2)]=_0x204083[_0x1eca97(0x37d)](_0x430315(_0x5f9e16));});}return _0x47f1f5;}async['getSheetBlock'](_0x56b31e,_0x3d47ac){const _0x1ab6da=_0x3bc572;let {unitID:_0x51b1d4,type:_0x328ee7,blockID:_0x38f639}=_0x3d47ac,_0x3e00e5=this[_0x1ab6da(0x2ed)]()+'/'+_0x328ee7+_0x1ab6da(0x44c)+_0x51b1d4+'/block/'+_0x38f639;return(await this[_0x1ab6da(0x3b7)][_0x1ab6da(0x1e3)](_0x3e00e5))['body'];}async[_0x3bc572(0x28b)](_0x713725,_0x26ea5e){const _0x500a7f=_0x3bc572;let {unitID:_0x4f9ded,type:_0x22d373,blockID:_0x2a54c2}=_0x26ea5e,_0x1ffdb3=this[_0x500a7f(0x2ed)]()+_0x500a7f(0x388)+_0x22d373+'/unit/'+_0x4f9ded+'/block/'+_0x2a54c2;return(await this[_0x500a7f(0x3b7)][_0x500a7f(0x1e3)](_0x1ffdb3))[_0x500a7f(0x236)];}async['fetchMissingChangesets'](_0x6ecbfe,_0x38c06a){const _0x521374=_0x3bc572;let {unitID:_0x40ae29,type:_0x203a32,from:_0x23f95b,to:_0x277d1a}=_0x38c06a,_0x1bf8c8=this['_getAPIPrefix']()+'/'+_0x203a32+'/unit/'+_0x40ae29+'/fetchmissing?from='+_0x23f95b+_0x521374(0x33f)+_0x277d1a;return(await this[_0x521374(0x3b7)]['get'](_0x1bf8c8))[_0x521374(0x236)];}[_0x3bc572(0x281)](){const _0x4a597f=_0x3bc572;var _0x37c74a;return(_0x37c74a=this[_0x4a597f(0x1c9)][_0x4a597f(0x306)](_0x4a597f(0x1ca)))==null?this[_0x4a597f(0x2ed)]():_0x37c74a;}['_getAPIPrefix'](){const _0x9ab555=_0x3bc572;var _0x226e4f;let _0x29cf0b=this[_0x9ab555(0x1c9)][_0x9ab555(0x306)](R);return(_0x226e4f=_0x29cf0b==null?void 0x0:_0x29cf0b['snapshotServerUrl'])==null?'/universer-api/snapshot':_0x226e4f;}async['getResourcesRequest'](_0x2f62fd,_0x764619){const _0x2f3982=_0x3bc572;let _0x5d131d=_0x2f3982(0x244)+_0x764619[_0x2f3982(0x2f0)]+_0x2f3982(0x44c)+_0x764619[_0x2f3982(0x399)]+_0x2f3982(0x20f);return(await this['_httpService'][_0x2f3982(0x1e3)](_0x5d131d,{'params':{'resourceId':JSON[_0x2f3982(0x3c3)](_0x764619['resourceIDs'])}}))['body'];}[_0x3bc572(0x437)](){const _0x5cfaef=_0x3bc572;throw Error(_0x5cfaef(0x1c7));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3bc572(0x364)](){const _0x225ebf=_0x3bc572;throw Error(_0x225ebf(0x1c7));}[_0x3bc572(0x450)](){const _0x9bb25d=_0x3bc572;throw Error(_0x9bb25d(0x1c7));}[_0x3bc572(0x31c)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){const _0x335040=_0x3bc572;throw Error(_0x335040(0x1c7));}};Qn=H([V(0x0,_0xa7a1b6),V(0x1,_0x167908(_0x6a3f01))],Qn);let $n=class extends _0x150656{constructor(_0x3fd4c9,_0xf46001,_0xfb68f3,_0x5f375a,_0x21e54c){const _0x533d27=_0x3bc572;super(_0x3fd4c9,_0xf46001,_0xfb68f3),this[_0x533d27(0x284)]=_0x5f375a,this['_logService']=_0x21e54c;}[_0x3bc572(0x41b)](_0xcafba6,_0x3ccdc2){const _0x42aa4e=_0x3bc572;let _0x251e75=this[_0x42aa4e(0x415)](_0xcafba6);if(_0x251e75)try{let _0x38bfac=this['_transformStack'](_0x251e75,_0x3ccdc2);this[_0x42aa4e(0x416)](_0xcafba6,_0x38bfac);}catch(_0x2ff7e3){this[_0x42aa4e(0x1c1)]['error']('[CollaborationUndoRedoService]',_0x2ff7e3),this[_0x42aa4e(0x27b)](_0xcafba6);}let _0x4af311=this['_getRedoStack'](_0xcafba6);if(_0x4af311)try{let _0x31254f=this['_transformStack'](_0x4af311,_0x3ccdc2);this[_0x42aa4e(0x299)](_0xcafba6,_0x31254f);}catch(_0x538450){this[_0x42aa4e(0x1c1)][_0x42aa4e(0x298)](_0x538450),this['_clearRedo'](_0xcafba6);}}['_clearUndo'](_0x3ad802){const _0x173890=_0x3bc572;let _0x3a2cc8=this[_0x173890(0x415)](_0x3ad802);_0x3a2cc8&&(_0x3a2cc8['length']=0x0,this[_0x173890(0x440)]());}[_0x3bc572(0x3a2)](_0x3effde){const _0x13cbd0=_0x3bc572;let _0x2cd857=this[_0x13cbd0(0x406)](_0x3effde);_0x2cd857&&(_0x2cd857['length']=0x0,this[_0x13cbd0(0x440)]());}[_0x3bc572(0x416)](_0x11f118,_0x59d576){const _0x3517e8=_0x3bc572;this[_0x3517e8(0x400)][_0x3517e8(0x405)](_0x11f118,_0x59d576),this['_updateStatus']();}[_0x3bc572(0x299)](_0x30166d,_0x6fc35e){const _0x1835f1=_0x3bc572;this[_0x1835f1(0x271)]['set'](_0x30166d,_0x6fc35e),this[_0x1835f1(0x440)]();}[_0x3bc572(0x43e)](_0x34b78a,_0x54e5e4){const _0xe07b4a=_0x3bc572;let _0x4965d8=[],_0x2ac6a3=_0x54e5e4,_0x4c86b7=_0x54e5e4;for(let _0x429ffd=_0x34b78a[_0xe07b4a(0x28d)]-0x1;_0x429ffd>=0x0;_0x429ffd--){let {unitID:_0x5d6a05,undoMutations:_0x43ddad,redoMutations:_0x495478}=_0x34b78a[_0x429ffd],_0x5c8427=this[_0xe07b4a(0x284)]['transformMutationsWithChangeset'](_0x2ac6a3,_0x43ddad),_0x29f617=this[_0xe07b4a(0x284)]['transformMutationsWithChangeset'](_0x4c86b7,_0x495478);if(_0x33bd16(_0x5c8427)||_0x33bd16(_0x29f617)){this[_0xe07b4a(0x1c1)][_0xe07b4a(0x298)](_0xe07b4a(0x371),_0xe07b4a(0x393),_0x5c8427,_0x29f617);break;}_0x2ac6a3=_0x5c8427[_0xe07b4a(0x435)],_0x4c86b7=_0x29f617[_0xe07b4a(0x435)],_0x4965d8[_0xe07b4a(0x250)]({'unitID':_0x5d6a05,'undoMutations':_0x5c8427[_0xe07b4a(0x296)],'redoMutations':_0x29f617[_0xe07b4a(0x296)]});}return _0x4965d8[_0xe07b4a(0x3f5)]();}};$n=H([V(0x0,_0x6f9bb2),V(0x1,_0x1f135e),V(0x2,_0x5e05d4),V(0x3,_0x29bc05),V(0x4,_0x2e09c7)],$n);let er=class extends _0x9c02e4{constructor(_0x2fe5fc=ft,_0x3c061c,_0x296317,_0x4493d6){const _0xc44ebb=_0x3bc572;super(),this[_0xc44ebb(0x1dc)]=_0x2fe5fc,this[_0xc44ebb(0x1c1)]=_0x3c061c,this[_0xc44ebb(0x44d)]=_0x296317,this[_0xc44ebb(0x1c9)]=_0x4493d6;let {..._0x47a3fa}=_0x147984({},ft,this[_0xc44ebb(0x1dc)]);if(!_0x47a3fa[_0xc44ebb(0x428)])throw Error(_0xc44ebb(0x360));this[_0xc44ebb(0x1dc)]=_0x47a3fa,this[_0xc44ebb(0x1c9)][_0xc44ebb(0x25a)](R,_0x47a3fa);}[_0x3bc572(0x43d)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x3bc572(0x3b5)](){const _0x266a3b=_0x3bc572;var _0x2341c4,_0x1aa018;this[_0x266a3b(0x44d)]['has'](_0x51c17f)&&this[_0x266a3b(0x1c1)][_0x266a3b(0x298)](_0x266a3b(0x3c5),_0x266a3b(0x1ad));let _0x2a3662=_0x4f5c21([[_0x51c17f,{'useClass':$n}],[An,{'useValue':jn()}],[Nn],[kt],[Gt],[Vn],[qn],[Ot],[Zn],[B],[Jn],[Dn,{'useClass':this[_0x266a3b(0x1dc)][_0x266a3b(0x428)]}],[_0xe1e81f,{'useClass':Qn}],[_0x27e034,{'useClass':Hn}],[_0x4c34f1,{'useClass':Yn}],[Rn,{'useClass':zn}],[_0x1a6754,{'useClass':Xn}],[Pn],[Ln]],(_0x2341c4=this[_0x266a3b(0x1dc)])==null?void 0x0:_0x2341c4[_0x266a3b(0x219)]);if(!((_0x1aa018=this['_config'])!=null&&_0x1aa018[_0x266a3b(0x210)])){let _0x5ce356=_0x2a3662[_0x266a3b(0x377)](([_0x4df436])=>_0x4df436===W);_0x5ce356!==-0x1&&_0x2a3662[_0x266a3b(0x304)](_0x5ce356,0x1);}_0x2ba51f(this[_0x266a3b(0x44d)],_0x2a3662);}['_initDependencies'](){const _0x11c8f7=_0x3bc572;var _0x42d99b,_0x1e28b1;if(this[_0x11c8f7(0x44d)][_0x11c8f7(0x1e3)](_0x6a3f01)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x28f61d({'maxParallel':0x6})}),!((_0x42d99b=this[_0x11c8f7(0x1dc)])!=null&&_0x42d99b['enableOfflineEditing'])){var _0x163b90;(_0x163b90=this[_0x11c8f7(0x44d)][_0x11c8f7(0x1e3)](U,_0x1c058a[_0x11c8f7(0x1ed)]))==null||_0x163b90[_0x11c8f7(0x1bb)]();}(_0x1e28b1=this[_0x11c8f7(0x1dc)])!=null&&_0x1e28b1[_0x11c8f7(0x432)]&&_0x1d20c8(this[_0x11c8f7(0x44d)],[[Vn]]),_0x1d20c8(this[_0x11c8f7(0x44d)],[[qn],[Pn],[Zn]]);}};z(er,_0x3bc572(0x24c),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),z(er,'packageName',Fn),z(er,_0x3bc572(0x23c),In),er=H([_0x30d4af(_0x442bd0,_0x21d398,_0x901b3),V(0x1,_0x2e09c7),V(0x2,_0x167908(_0x35e9e2)),V(0x3,_0xa7a1b6)],er);export{Hn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,yn as BaseCollaborationEntity,Sn as BoardCollaborationEntity,R as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,zn as CollaborationAttachmentIoService,Pn as CollaborationController,$ as CollaborationEntity,Yn as CollaborationImageIoService,Ht as CollaborationSession,Nn as CollaborationSessionService,kn as CollaborationSocketService,mn as CollaborationStatus,Dt as CollaborationUIEventId,B as CollaborationUIEventService,$n as CollaborativeUndoRedoService,Ot as CommentService,X as ConflictState,pt as DEFAULT_COLLAB_WEB_SOCKET_URL,St as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,mt as DEFAULT_WS_SESSION_TICKET_URL,Jn as DataLoaderService,vn as DocCollaborationEntity,Q as FetchingMissState,ht as HEARTBEAT_INTERVAL_KEY,gt as HEARTBEAT_TIMEOUT_KEY,Rn as IAttachmentIoService,An as ICollaborationClientAdapterService,Dn as ICollaborationSocketService,U as ILocalCacheService,wn as INetworkConditionService,W as ISingleActiveUnitService,bt as LOCAL_CACHE_INTERVAL,yt as LOCAL_CACHE_INTERVAL_KEY,kt as MemberService,Xn as MentionIoHttpService,Z as OfflineState,Cn as PdfCollaborationEntity,q as PendingState,xt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,vt as RETRY_CONNECTING_MAX_COUNT_KEY,Bt as SessionStatus,bn as SheetCollaborationEntity,Gt as SheetTransformSelectionsService,xn as SlideCollaborationEntity,Qn as SnapshotServerOverHTTPService,K as SyncedState,Kt as UnitStatus,er as UniverCollaborationClientPlugin,jn as createUniverCollaborationAdapter,Tn as deserializeToCombResponse,Ut as getLocalCacheKey,En as serializeCombRequest};