@univerjs-pro/collaboration-client 1.0.0-alpha.7 → 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4f14(_0x1ee2d2,_0x5b92a7){_0x1ee2d2=_0x1ee2d2-0xf5;const _0x420b9a=_0x420b();let _0x4f1497=_0x420b9a[_0x1ee2d2];return _0x4f1497;}function _0x420b(){const _0x266d0d=['aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','_onRemoteRetry','getTypeOfUnitDisposed$','SheetCollaborationEntity','get','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','isSafeInteger','enableAuthServer','generateRandomId','_transformService','_sendingTimer','offline','crypto','getCollabEntity$','map','mutations','_getSignURL','key','setWaitCount','docStateChange$','[CollaborationSessionService]:\x20socket\x20error','OPTIONAL','_sheetTransformSelectionsService','MoveSlidePageMutation','socket$','IUndoRedoService','onTransformRemoteChangesetByIMECache','tagLength','CollaborationUIEventService','name','result','retryConnectingTimer','state','reqId','_config','append','CollaborationSocketService','unitInfo$','updatePermissionPoint','LocalUndoRedoService','updateMember','_remoteChangesetQueue','CommandType','_sessionStatus$','BaseCollaborationEntity','data','_unitInfo$','NOT_COLLAB','_createHandler','sendHeartbeatTimer','object','/allowed','RxDisposable','event$','shouldCloseConn','transformUndoRedo','_sessions','\x20in\x20_schedule.','ICollaborationSocketService','553732sGGhEP','SnapshotServerOverHTTPService','startTime','loadDoc','_instanceService','getImageSourceCache','@univerjs/protocol','attachment','UniverCollaborationPlugin','registerHTTPInterceptor','fetchThroughInterceptors','removeMember','loadSheet','_tryEnsureSocket','equals','sessionStatus$','startsWith','collaboration-client.auth.needGotoLoginAlert','_socketChannels','fromCollab','_onConnectionOpen','deserializeToCombResponse','CombCmd','onTransformIME','setCurrentUser','retryCount','routeKey','_onRemoteChangeset','_initDependencies','_joinRoom','duration','positive\x20integer\x20expected,\x20got\x20','has','transformMutationsWithChangeset','_tryReconnect','_unlockTransition','_waitCount','/universer-api/comb','getCurrentUser','\x20to\x20','not_collab','requireSession','uploadFileServerUrl','ILogService','crypto.getRandomValues\x20must\x20be\x20defined','IPermissionService','_isPermissionRej','Tools','UNIVER_SLIDE','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','values','rxjs/operators','updateCollaborator','EnsureSlideMasterPageMutation','submit\x20changeset\x20error!','from','varSizeNonce','toRemote','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getUnitStatus$','getSheetId','SheetPermissionInitController','_members$','_state$','disableLocalCache','_getRedoStack','MentionType','LOCAL_CACHE_INTERVAL','sequenceExecute','_collaborationUIEventService','UniverProCollaboration','_logService','DEFAULT_WS_SESSION_TICKET_URL','_memberService','HTTPRequest','params','unitId\x20is\x20not\x20found','__splitChunk__','BoardCollaborationEntity','loadSlide','_queuedRemoteChangesets','_roomCreated$','getCurrentRevOfUnit','RECV','/rev/','prototype','b64DecodeUnicode','isView','localUnitId','SheetsSelectionsService','PERSON','_compressMutationService','/collaborator','objectType','operators','/object/','reconnect','_toggleOnline','selections','cfgEnableObjInherit','_socketService','_collaborationPaused','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onMissingChangesets','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','byteLength','then','UniverSheets','catch','SUBMIT_CHANGESET_TIMEOUT','aes/pkcs7:\x20wrong\x20padding','getRoom','setShowComponents','_initMergeInterceptor','JOIN_ROOM_FAILED','22gkXhJH','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_syncEditingCollabCursor','pipe','liveShareOperation','disablePadding','createUniverCollaborationAdapter','_toggleOffline','loadBoard','iterator','JOINING','COMPRESS_MUTATION_SEND','getActiveSheet','_exhaustRemoteChangesetQueue','@univerjs/drawing','init','[CollaborationSessionService]','Wrong\x20sbox\x20length','onLocalMutation','_eventService','onTransformState','createInstance','origin','UPDATE_PERMISSION_OBJ','buffer','/fetchmissing?from=','_showConflictNotification','_substituteRedoStack','session.room-full','_applyRemoteChangeset','FAIL','@univerjs-pro/collaboration-client','HTTPService','LIVESHARE_FETCH_OPERATIONS','onSendChangeset','UniverNetwork','setCfgEnableObjInherit','resolve','status','UniverProSlides','_collaborationTimeoutTimer','merge','_executeRemoteChangeset','snapshot','_onFetchMissResult','UNIVER_DOC','_doCreateSocket','ICollaborationClientAdapterService','_upload','[PendingState]:\x20received\x20rejection.','CollaborationUIEventId','isTransformMutationsWithChangesetSuccess','_lockTransition','OTHER_CLIENT_EDITING','joinRsp','find','asObservable','file','sid','toggleOnline','6530964fPKuGI','CollaborationAttachmentIoService','UniverProtocol','min','_getSocketChannel','\x20of\x20length\x20','&assign=','roomInfos','unit','rxjs','/role','getUploadOptions','post','unitLoaded$','retryConnectingInterval','_collaborationSessionService','missingChangesets','deleteCollaborator','\x0aCurrent:\x20','/new_changes','size','_socket','hasOwnProperty','156429QznBBI','getCurrentSelections','Inject','onSyncEditingCollabCursor','\x20-\x20','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','_rescheduleHeartbeat','commentUpdateEvent','ReplaySubject','UniverInstanceType','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','Rectangle','ILocalCacheService','push','encrypt','[CollaborationEntity]','_startTelemetryCollaborationNewChangeset','JOIN','ICommandService','_singleActiveUnitService','UNIVER_COLLABORATION_CLIENT_PLUGIN','unitId','amd','forEach','_revisionService','onTransformSelections','1031390ZGqope','/-/object/list','_emitMembers','assign','&source=','changeset','_resendTimeout','state$','ConflictState','AwaitingState','_pendingSessions','unitID','ImageUploadStatusType','updatePermissionObjEvent','BYTES_PER_ELEMENT','_getSendChangesetTimeout','synced','isInternalEditorID','_configService','originalMeta','@univerjs-pro/slides','saveAttachment','every','_getUploadFileURL','onTransformRemoteChangesetByStateCache','accept','UNISCRIPT_RUN','PENDING','resolveUnit','href','_acknowledgedAwaitingRevision','_telemetryService','DocStateChangeManagerService','_createSession','delay','textEncoder','range','COMPRESS_MUTATION_APPLY','ERROR_IMAGE_TYPE','ONLINE','_transformRemoteChangesetByStateCache','method','upload','downloadEndpointUrl','univer-pro.collaboration-client.network-condition.service','LIVESHARE_OPERATION','hostname','_transformUndoredo','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_disableEditing','PERMISSION_DENIED','AuthzIoHttpService','MUTATION','_replayCachedMutations','[CollaborationState]:\x20apply\x20error!','backupOfflineData','Disposable','toString','uniscriptRunEvent','blockRanges','allowed','_onUserJoin','reduce','_acknowledgeAwaitingIfReady','SetSelectionsOperation','toggleOffline','executeCommand','entityInit$','isTransformChangesetsSuccess','[PendingState]:\x20unhandled\x20univer\x20type:\x20','unitType','close','UNIVER_SHEET','saveSnapshot','_undoRedoService','&to=','/unit/','SYNCED','_changesetReqId','JOIN_ROOM_NOT_EXISTS','max','getTime','JOIN_ROOM_PERMISSION_DENIED','serializeCombRequest','Module','resourceIDs','liveShareNewHost','FileSource','fetchMiss','_transformAndApplyRemoteChangeset','subarray','INGEST','SnapshotService','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','3irRMio','_handleRemoteChangesets','socketMessageSubscription','[CollaborationUndoRedoService]','Quantity','CHANGESET_SHOULD_RETRY','_HTTPService','subscribe','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','_initCloseConn','_permissionService','getUnitId','trim','output','session.room-cnt-exceeds','_createSocket','length','base-ui.attachment-io.service','ISnapshotServerService','UniverProCollaborationClient','_getAPIPrefixPath','authzUrl','error$','_onOffline','memberID','mergeOverrideWithDependencies','_acknowledgeAwaiting','_initRequestHeader','MentionIoHttpService','socket\x20close','m2Prime','_changesetSessionId','_stopTelemetryCollaborationNewChangeset','emitEvent','clear','rev','now','/block/','createSocket','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_scheduleCollaborationTimeoutTimer','_sessionChannels','encode','revision','charCodeAt','_substituteUndoStack','HEARTBEAT_INTERVAL_KEY','toLocal','HEARTBEAT','online$','LIVESHARE_TERMINATE','set','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','[OfflineState]:\x20received\x20rejection.','1.0.0-alpha.7','UUID','_clearCollaborationTimeoutTimer','enableSingleActiveInstanceLock','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','toStringTag','_localeService','IContextService','patch','batchAllowed','dispose','floor','loadOfflineData','/universer-api/snapshot/','DocCollaborationEntity','getUnit','collabWebSocketUrl','title','_onRecvEvent','CompressMutationService','FETCH_MISSING','HEARTBEAT_INTERVAL','IMentionIOService','appendMutation','onlyLocal','SUBMIT_CHANGESET','loadBase','_incrementRevisionNumber','SOCKET_FAILED','collaboration-client.config','candidateSocket','_snapshotService','univer-pro.collaboration-client.single-active-unit-service','_roomMembers','status$','SessionStatus','src','baseRev','_clearHeartbeatTimer','?size=','debug','objects','COLLABORATION_ENDPOINT_INVALID','error','SUCCUSS','[OfflineState]:\x20received\x20acknowledgement.','onMissedChangesetFetched','putCollaborators','Optional','_updateLocalCache','SHOULD_CLOSE_CONN','invalid\x20output,\x20must\x20be\x20aligned','eventID','SOCKET_FAILED_RETRY','_clearTimeoutTimer','@univerjs/sheets','socket\x20open.','changesets','_scheduleCompleteTimestamp','NO_OTHER_CLIENTS_EDITING','firstValueFrom','_initUnitPermissionChange','UniverCore','_isEchoedAwaitingChangeset','_decreaseWaiting','userID','ISocketService','toDisposable','createCollaborator','isArray','_transformStateCache','onRemoteRetry','requestParams','_updateState','MemberService','_maxTotalRetryTimeout','_hasSessionsForEndpoint','/-/object/-/batch_allowed','UserManagerService','onCommentUpdate','getImage','SyncedState','EmptyMutationInfo','URL','target','version','number\x20expected,\x20got\x20','USERS_LEAVE','CLOSE_ROOM','SheetTransformSelectionsService','focused$','onRemoteAck','LocaleService','1yUjUBm','/universer-api/file/{fileID}/sign-url','fromCharCode','disposeWithMe','getSheetBlock','getTypeOfUnitAdded$','LIVESHARE_REQUEST_HOST','update','FileId','interceptor','_getCurrentRevision','WorkbookEditablePermission','_getLoginPath','_createInitialState','list','_getUndoStack','getLocalCacheKey','_sender','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_onCombEvent','ITransformService','incrementRevOfUnit','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','closeSession','_handlerCallback','delete','onRemoteChangeset','getUnitType','type','_waitForHeartbeatResponse','permissionRejEvent','_unitLoaded$','updateSnapshot','_schedule','Failed\x20to\x20update\x20permission\x20point','nonceLength','@univerjs/telemetry','[DataLoaderService]','GLOBAL_ROOMS_CNT_EXCEEDS','addHandlerCallback','text-x','url','ImageSourceType','_removeRoom','findIndex','copyFileMeta','getCollabEntity','Plugin','_startCollaboration','UniverLicensePlugin','next','/universer-api/user/session-ticket','byteOffset','ITelemetryService','_onRemoteACK','unknown','getConfig','_listenToNetworkCondition','_init','getGlobalObject','_updateStatus','_adapter','filter','listCollaborators','call','_onConflict','539076YcxOJI','decorate','[PendingState]:\x20received\x20acknowledgement.','CollaborationEvent','@univerjs/network','columnGroups','isCompositionEnd','_commentUpdate$','_onJoinRoomEvent','_handler','_getDownloadEndpointURL','_getAPIPrefix','_transformIMECache','unsubscribe','AAD','JOIN_ROOM_FULL','collaboratorID','saveSheetBlock','collaborators','parseChangesetToProtocol','reject','_univerInstanceService','CHANGESET_REJ','socketService','IConfigService','UNIVER_BASE','constructor','shareReplay','subject','objectID','onMutationExecutedForCollab','CollaborationSession','RETRY_CONNECTING_MAX_COUNT_KEY','decrypt','ws://127.0.0.1:8000/universer-api/comb/connect','@univerjs/docs','_injector','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','getInterceptPoints','CollaborationSessionService','_awaitingChangeset','code','/universer-api/snapshot','getRandomValues','endsWith','_fetchMissChangesets','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','parseProtocolChangeset','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','string','AWAITING_WITH_PENDING','POST','_type','_localCacheService','Uint8Array','conflict','_socketMessageSubscription','UNIVER_BOARD','USERS_ENTER','close$','slice','HELLO','collaboration-client.local-cache-service','CHANGESET_ACK','_replaceFileID','infoRsp','refreshPermission','_resendTimer','save\x20fail\x20reason\x20is\x20','create','open$','ErrorCode','UniverProLicense','LIVESHARE_NEW_HOST','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','/object','stringify','1646330PobGQN','_identity','getDrawingImageAllowSize','number','_clearRedo','PERMISSION_REJ','getAllMembers','awaiting','function','InsertSheetMutation','sheets','[SyncedState]:\x20received\x20rejection.','CmdRspCode','getWorkbookSelections','c1Prime','Subject','RETRY_CONNECTING_MAX_COUNT','some','MSG_FOR_ERROR','fetch_missing','loadUnitOfRevision','defineProperty','_undoStacks','put','joinEvent','pending','newCsEvent','isTransformMutationsWithChangesetFailure','_httpService','\x0aAfter:\x20','SlideCollaborationEntity','ISingleActiveUnitService','resend','signUrlServerUrl','Univer','_entityInit$','_onUserLeave','UniverCollaborationClientPlugin','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_transitionLocked','connection\x20error','_clearUndo','_imageSourceCache','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_members','workbook','CollaborationController','FETCH_MISS','NEW_CHANGESETS','parse','registerDependencies','onRemoteRej','DEFAULT_COLLAB_WEB_SOCKET_URL','add','transformChangesets','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_telemetryInfo','Injector','_sendHeartbeat','sessionStatus','getMember','UnitEmbedded','socketReady','includes','_change$','message$','pauseCollaboration','_status$','toPrimitive','_throwTelemetryCollaborationNewChangeset','_clearRetryConnectingTimer','members','action','/universer-api/stream/file/upload','__Key__','csShouldRetryEvent','FetchingMissState','exports','_docStateChangeManagerService','readAsDataURL','ERROR_IMAGE','localeService','saveChangeset','DataLoaderService','UniverTelemetry','IUniverInstanceService','stopTime','_getCtorByUniverInstanceType','OFFLINE','endpoint','RichTextEditingMutation','COMMENT_UPDATE','compose','BASE64','listRoles','_entities','createIdentifier','complete','_clearLocalCache','getValue','endpointKey','symbol','AddSlidePageMutation','CollaborationEntity','getSnapshotAPIPath','_getConfig','location','[FetchMissState]','_transformSelections','confirm','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','_resendWithTimeout','fetching\x20missing\x20changesets\x20from\x20','[CollaborationSession]','cmd','touchDependencies','7geAyPJ','tables','splice','waitForRoom$','override','LEAVE','_createInitialStateImpl','UPDATE_CURSOR','DEFAULT_FILE_NAME','?url=','textRanges','fetchMissingChangesets','_snapshotServerService','_commentService','localCacheService','_state','_commandService','530600EBqpGV','dispose$','_event$','_clearScheduledTask','take','default','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','concatMap','CommentService','send','change$','AwaitingWithPendingState','/universer-api/authz','_userManagerService','CollaborativeUndoRedoService','getLatestCsReqIdBySid','actions','indexOf','snapshotServerUrl','collabSubmitChangesetUrl','_onMessage','_transformStack','x-univer-host','HEARTBEAT_TIMEOUT','session.room-permission-denied','cipher\x20output\x20not\x20supported','AWAITING','_onConnectionFailed','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','timeoutTimer','session','_transformRemoteChangesetByIMECache','reverse','_collabSessionService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','getFocusedUnit','_shouldReportTelemetry','body','takeUntil','250EyoZcz','mapDocumentTypeToUniverInstanceType','_checkMissing','resolveWithBasePath','RevisionService','_redoStacks','getUnitOnRev','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','/universer-api/oidc/authpage','UnitStatus','headers','isPermissionRej','members$','_onLocalMutation','loadUnit','PSEUDO_FETCH_MISSING_RESULT','BehaviorSubject','awaiting_with_pending','transformStack\x20failed!','_pendingMutations','ThresholdInterceptorFactory',',\x20got:\x20','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','CONFLICT'];_0x420b=function(){return _0x266d0d;};return _0x420b();}(function(_0x16916a,_0xd400a4){const _0x1851e8=_0x4f14,_0x30e331=_0x16916a();while(!![]){try{const _0x530a80=-parseInt(_0x1851e8(0x138))/0x1*(parseInt(_0x1851e8(0x3a6))/0x2)+-parseInt(_0x1851e8(0x404))/0x3*(parseInt(_0x1851e8(0x2c6))/0x4)+parseInt(_0x1851e8(0x1c7))/0x5+parseInt(_0x1851e8(0x17a))/0x6*(-parseInt(_0x1851e8(0x23b))/0x7)+parseInt(_0x1851e8(0x24c))/0x8+parseInt(_0x1851e8(0x38c))/0x9*(-parseInt(_0x1851e8(0x273))/0xa)+parseInt(_0x1851e8(0x339))/0xb*(parseInt(_0x1851e8(0x375))/0xc);if(_0x530a80===_0xd400a4)break;else _0x30e331['push'](_0x30e331['shift']());}catch(_0x150b91){_0x30e331['push'](_0x30e331['shift']());}}}(_0x420b,0x4a9b2),function(_0x45f362,_0x3fb126){const _0x56bcfa=_0x4f14;typeof exports==_0x56bcfa(0x2bd)&&typeof module<'u'?_0x3fb126(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define=='function'&&define[_0x56bcfa(0x3a2)]?define([_0x56bcfa(0x214),'@univerjs-pro/collaboration','@univerjs/core',_0x56bcfa(0x19d),_0x56bcfa(0x112),_0x56bcfa(0x37e),_0x56bcfa(0x2cc),_0x56bcfa(0x15c),_0x56bcfa(0x2f9),_0x56bcfa(0x3ba),_0x56bcfa(0x17e),'@univerjs-pro/license',_0x56bcfa(0x347)],_0x3fb126):(_0x45f362=typeof globalThis<'u'?globalThis:_0x45f362||self,_0x3fb126(_0x45f362[_0x56bcfa(0x417)]={},_0x45f362[_0x56bcfa(0x30c)],_0x45f362[_0x56bcfa(0x119)],_0x45f362['UniverDocs'],_0x45f362[_0x56bcfa(0x331)],_0x45f362[_0x56bcfa(0x37e)],_0x45f362[_0x56bcfa(0x377)],_0x45f362[_0x56bcfa(0x21b)],_0x45f362[_0x56bcfa(0x37e)][_0x56bcfa(0x324)],_0x45f362[_0x56bcfa(0x360)],_0x45f362[_0x56bcfa(0x35c)],_0x45f362[_0x56bcfa(0x1c2)],_0x45f362['UniverDrawing']));}(this,function(_0x3b1d70,_0x510a16,_0x54340d,_0x55be24,_0x2e3009,_0x501c4e,_0x3a112b,_0x15aa62,_0x572a50,_0xee09d9,_0x3c3932,_0x40a29c,_0x728a29){const _0x4afe6d=_0x4f14;Object[_0x4afe6d(0x1dc)](_0x3b1d70,Symbol[_0x4afe6d(0x440)],{'value':_0x4afe6d(0x3fa)});let _0x440361=_0x4afe6d(0xf8),_0x34589c={},_0x1ee18d=_0x4afe6d(0x19c),_0x3eabd5=0x4e20;function _0xc9b6fb(_0x5c53a7){const _0x266d2a=_0x4afe6d;return JSON['stringify'](_0x5c53a7)[_0x266d2a(0x414)];}function _0x14a224(_0x29b67b){'@babel/helpers - typeof';const _0x17d7a2=_0x4afe6d;return _0x14a224=typeof Symbol==_0x17d7a2(0x1cf)&&typeof Symbol[_0x17d7a2(0x342)]=='symbol'?function(_0x5d95af){return typeof _0x5d95af;}:function(_0x34b91a){const _0x2bee5a=_0x17d7a2;return _0x34b91a&&typeof Symbol==_0x2bee5a(0x1cf)&&_0x34b91a[_0x2bee5a(0x194)]===Symbol&&_0x34b91a!==Symbol[_0x2bee5a(0x31b)]?_0x2bee5a(0x22c):typeof _0x34b91a;},_0x14a224(_0x29b67b);}function _0xd2d388(_0x303d51,_0x244ff2){const _0x145ed2=_0x4afe6d;if(_0x14a224(_0x303d51)!=_0x145ed2(0x2bd)||!_0x303d51)return _0x303d51;var _0x40ae31=_0x303d51[Symbol[_0x145ed2(0x20b)]];if(_0x40ae31!==void 0x0){var _0x3c8039=_0x40ae31[_0x145ed2(0x178)](_0x303d51,_0x244ff2||_0x145ed2(0x251));if(_0x14a224(_0x3c8039)!=_0x145ed2(0x2bd))return _0x3c8039;throw TypeError(_0x145ed2(0x32c));}return(_0x244ff2==='string'?String:Number)(_0x303d51);}function _0x240203(_0x4d4513){const _0x19273e=_0x4afe6d;var _0x3aa7bd=_0xd2d388(_0x4d4513,'string');return _0x14a224(_0x3aa7bd)==_0x19273e(0x22c)?_0x3aa7bd:_0x3aa7bd+'';}function _0x1d93f6(_0x379bad,_0x2c3661,_0x1a0c56){const _0x34d65a=_0x4afe6d;return(_0x2c3661=_0x240203(_0x2c3661))in _0x379bad?Object[_0x34d65a(0x1dc)](_0x379bad,_0x2c3661,{'value':_0x1a0c56,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x379bad[_0x2c3661]=_0x1a0c56,_0x379bad;}let _0x441a00=function(_0x426c8f){const _0x2c9b75=_0x4afe6d;return _0x426c8f[_0x2c9b75(0x36e)]='OTHER_CLIENT_EDITING',_0x426c8f[_0x2c9b75(0x3d8)]=_0x2c9b75(0x3d8),_0x426c8f[_0x2c9b75(0x28a)]=_0x2c9b75(0x28a),_0x426c8f[_0x2c9b75(0x133)]='CLOSE_ROOM',_0x426c8f['JOIN_ROOM_FAILED']=_0x2c9b75(0x338),_0x426c8f[_0x2c9b75(0x110)]=_0x2c9b75(0x110),_0x426c8f[_0x2c9b75(0xf7)]=_0x2c9b75(0xf7),_0x426c8f[_0x2c9b75(0x333)]=_0x2c9b75(0x333),_0x426c8f;}({});var _0x18b525=class{constructor(){const _0x22f4e2=_0x4afe6d;_0x1d93f6(this,'_event$',new _0x501c4e[(_0x22f4e2(0x1d6))]()),_0x1d93f6(this,_0x22f4e2(0x2c0),this[_0x22f4e2(0x24e)][_0x22f4e2(0x371)]());}['emitEvent'](_0x458b26){const _0x30c431=_0x4afe6d;this['_event$'][_0x30c431(0x16a)](_0x458b26);}},_0x24cd08=class{constructor(){const _0x48fb67=_0x4afe6d;_0x1d93f6(this,_0x48fb67(0x181),new _0x501c4e[(_0x48fb67(0x1d6))]()),_0x1d93f6(this,'commentUpdate$',this[_0x48fb67(0x181)][_0x48fb67(0x371)]());}['onCommentUpdate'](_0x53b1cb){const _0x30b35b=_0x4afe6d;this[_0x30b35b(0x181)][_0x30b35b(0x16a)](_0x53b1cb);}};function _0x5c2cf(_0x4fc6c7,_0x9fedf9){return function(_0x20baae,_0x4c18e3){_0x9fedf9(_0x20baae,_0x4c18e3,_0x4fc6c7);};}function _0x3bbaf2(_0x232fb2,_0x5b7c0a,_0x447da4,_0x4f9356){const _0x1d50a4=_0x4afe6d;var _0x302a23=arguments[_0x1d50a4(0x414)],_0x25b5e1=_0x302a23<0x3?_0x5b7c0a:_0x4f9356===null?_0x4f9356=Object['getOwnPropertyDescriptor'](_0x5b7c0a,_0x447da4):_0x4f9356,_0x3a6e86;if(typeof Reflect==_0x1d50a4(0x2bd)&&typeof Reflect[_0x1d50a4(0x17b)]==_0x1d50a4(0x1cf))_0x25b5e1=Reflect['decorate'](_0x232fb2,_0x5b7c0a,_0x447da4,_0x4f9356);else{for(var _0x2db7b5=_0x232fb2['length']-0x1;_0x2db7b5>=0x0;_0x2db7b5--)(_0x3a6e86=_0x232fb2[_0x2db7b5])&&(_0x25b5e1=(_0x302a23<0x3?_0x3a6e86(_0x25b5e1):_0x302a23>0x3?_0x3a6e86(_0x5b7c0a,_0x447da4,_0x25b5e1):_0x3a6e86(_0x5b7c0a,_0x447da4))||_0x25b5e1);}return _0x302a23>0x3&&_0x25b5e1&&Object['defineProperty'](_0x5b7c0a,_0x447da4,_0x25b5e1),_0x25b5e1;}let _0x1afb9b=class extends _0x54340d[_0x4afe6d(0x3de)]{constructor(_0x32ff12,_0x39e06b){const _0x19a6ec=_0x4afe6d;super(),this[_0x19a6ec(0x18f)]=_0x32ff12,this[_0x19a6ec(0x259)]=_0x39e06b,_0x1d93f6(this,_0x19a6ec(0xfc),new Map()),_0x1d93f6(this,'_roomCreated$',new _0x501c4e[(_0x19a6ec(0x1d6))]()),this[_0x19a6ec(0x13b)]((0x0,_0x501c4e[_0x19a6ec(0x362)])(this['_univerInstanceService'][_0x19a6ec(0x28d)](_0x54340d[_0x19a6ec(0x395)][_0x19a6ec(0x3ee)])[_0x19a6ec(0x33c)]((0x0,_0x572a50['map'])(_0x1d6488=>_0x1d6488['getUnitId']())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x54340d[_0x19a6ec(0x395)][_0x19a6ec(0x366)])[_0x19a6ec(0x33c)]((0x0,_0x572a50[_0x19a6ec(0x299)])(_0x4cea92=>_0x4cea92[_0x19a6ec(0x40f)]())),this[_0x19a6ec(0x18f)][_0x19a6ec(0x28d)](_0x54340d[_0x19a6ec(0x395)][_0x19a6ec(0x1b3)])[_0x19a6ec(0x33c)]((0x0,_0x572a50[_0x19a6ec(0x299)])(_0x358e98=>_0x358e98['getUnitId']())),this[_0x19a6ec(0x18f)][_0x19a6ec(0x28d)](_0x54340d['UniverInstanceType']['UNIVER_BASE'])[_0x19a6ec(0x33c)]((0x0,_0x572a50[_0x19a6ec(0x299)])(_0x155920=>_0x155920[_0x19a6ec(0x40f)]())))[_0x19a6ec(0x40b)](_0x2e1736=>this['_removeRoom'](_0x2e1736)));}[_0x4afe6d(0x23e)](_0x40fcd9){const _0x2480ac=_0x4afe6d;return this[_0x2480ac(0xfc)][_0x2480ac(0x2e6)](_0x40fcd9)?(0x0,_0x501c4e['of'])(this[_0x2480ac(0xfc)][_0x2480ac(0x28f)](_0x40fcd9)):this['_roomCreated$']['pipe']((0x0,_0x572a50[_0x2480ac(0x299)])(_0x1a3179=>{const _0x1f91f1=_0x2480ac;if(_0x1a3179===_0x40fcd9)return this[_0x1f91f1(0xfc)][_0x1f91f1(0x28f)](_0x1a3179);}));}[_0x4afe6d(0x2de)](_0x2bec02){const _0x426168=_0x4afe6d;this[_0x426168(0x259)][_0x426168(0x2de)](_0x2bec02);}[_0x4afe6d(0x2ec)](){return this['_userManagerService']['getCurrentUser']();}[_0x4afe6d(0x2b3)](_0x3f534b,_0x1fe635){const _0x58b227=_0x4afe6d;let _0x40cb70=this[_0x58b227(0xfc)]['get'](_0x3f534b);_0x40cb70||(_0x40cb70=new _0x266031(),this[_0x58b227(0xfc)]['set'](_0x3f534b,_0x40cb70),this[_0x58b227(0x317)][_0x58b227(0x16a)](_0x3f534b)),_0x40cb70['updateMember'](_0x1fe635);}[_0x4afe6d(0x2d1)](_0x4bc7a6,_0x36a385){const _0x34d3aa=_0x4afe6d;let _0x5b99d6=this[_0x34d3aa(0xfc)][_0x34d3aa(0x28f)](_0x4bc7a6);_0x5b99d6&&_0x5b99d6['removeMember'](_0x36a385);}[_0x4afe6d(0x335)](_0x1d7e35){const _0x3e7435=_0x4afe6d;return this['_roomMembers'][_0x3e7435(0x28f)](_0x1d7e35);}[_0x4afe6d(0x203)](_0x5ce26c,_0x49c487){const _0x24df85=_0x4afe6d;let _0x19f810=this[_0x24df85(0xfc)][_0x24df85(0x28f)](_0x5ce26c);if(_0x19f810)return _0x19f810[_0x24df85(0x203)](_0x49c487);}[_0x4afe6d(0x163)](_0x41f7c6){const _0x271003=_0x4afe6d;let _0x76d34f=this['_roomMembers']['get'](_0x41f7c6);_0x76d34f&&(_0x76d34f['dispose'](),this[_0x271003(0xfc)]['delete'](_0x41f7c6));}[_0x4afe6d(0x445)](){const _0x19604a=_0x4afe6d;this['_roomMembers']['forEach'](_0x4448ee=>_0x4448ee['dispose']()),this[_0x19604a(0xfc)][_0x19604a(0x426)](),this[_0x19604a(0x317)][_0x19604a(0x228)]();}};_0x1afb9b=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0x1,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x129)]))],_0x1afb9b);var _0x266031=class extends _0x54340d[_0x4afe6d(0x3de)]{constructor(..._0x2a95ce){const _0x4c9904=_0x4afe6d;super(..._0x2a95ce),_0x1d93f6(this,_0x4c9904(0x1f3),new Map()),_0x1d93f6(this,_0x4c9904(0x304),new _0x501c4e['BehaviorSubject'](this['_members'])),_0x1d93f6(this,_0x4c9904(0x27f),this['_members$'][_0x4c9904(0x371)]());}[_0x4afe6d(0x445)](){const _0x2f9df4=_0x4afe6d;this['_members'][_0x2f9df4(0x426)](),this[_0x2f9df4(0x304)][_0x2f9df4(0x228)]();}['updateMember'](_0x5cd6d1){const _0xade96c=_0x4afe6d;this[_0xade96c(0x1f3)][_0xade96c(0x437)](_0x5cd6d1[_0xade96c(0x41c)],_0x5cd6d1),this[_0xade96c(0x3a8)]();}['removeMember'](_0x5d3605){const _0x1ce665=_0x4afe6d;this[_0x1ce665(0x1f3)]['delete'](_0x5d3605),this['_emitMembers']();}[_0x4afe6d(0x203)](_0x9466da){const _0x23f983=_0x4afe6d;return this[_0x23f983(0x1f3)][_0x23f983(0x28f)](_0x9466da);}[_0x4afe6d(0x1cd)](){const _0x4ff32f=_0x4afe6d;return Array[_0x4ff32f(0x2fd)](this[_0x4ff32f(0x1f3)][_0x4ff32f(0x2f8)]());}[_0x4afe6d(0x3a8)](){const _0x13d9ea=_0x4afe6d;this[_0x13d9ea(0x304)][_0x13d9ea(0x16a)](this['_members']);}};function _0x390da0(_0x503e40,_0x593a63){const _0x5b7c2d=_0x4afe6d;if(_0x48341d(_0x503e40))return _0x593a63;if(_0x593a63[_0x5b7c2d(0x10f)]===_0x510a16['CollaborationEvent']['SUBMIT_CHANGESET']){var _0x316cb0;let _0x45637d=_0x2cdbfe(_0x503e40),_0x42b001=_0x593a63;return{..._0x42b001,'data':{..._0x42b001[_0x5b7c2d(0x2b8)],'unitID':_0x503e40[_0x5b7c2d(0x12f)]['unitId'],'unitType':(_0x316cb0=_0x503e40[_0x5b7c2d(0x12f)]['unitType'])==null?_0x42b001[_0x5b7c2d(0x2b8)]['unitType']:_0x316cb0,'changeset':_0x45637d[_0x5b7c2d(0x2ff)](_0x42b001[_0x5b7c2d(0x2b8)][_0x5b7c2d(0x3ab)],_0x5511c6(_0x503e40))}};}if(_0x593a63['eventID']===_0x510a16['CollaborationEvent'][_0x5b7c2d(0x44f)]){var _0x178d1b;let _0x13ea7e=_0x593a63;return{..._0x13ea7e,'data':{..._0x13ea7e['data'],'unitID':_0x503e40[_0x5b7c2d(0x12f)][_0x5b7c2d(0x3a1)],'unitType':(_0x178d1b=_0x503e40[_0x5b7c2d(0x12f)]['unitType'])==null?_0x13ea7e['data'][_0x5b7c2d(0x3ec)]:_0x178d1b}};}return _0x593a63;}function _0x32c675(_0x317c43,_0x4dbb07){const _0x15b26d=_0x4afe6d;if(_0x48341d(_0x317c43))return[_0x4dbb07];switch(_0x4dbb07[_0x15b26d(0x10f)]){case _0x510a16[_0x15b26d(0x17d)]['NEW_CHANGESETS']:return[_0x48ad66(_0x317c43,_0x4dbb07)];case _0x510a16[_0x15b26d(0x17d)][_0x15b26d(0x282)]:return[_0x3ed110(_0x317c43,_0x4dbb07)];case _0x510a16[_0x15b26d(0x17d)]['CHANGESET_SHOULD_RETRY']:return[_0x219d9e(_0x317c43,_0x4dbb07)];default:return[_0x4dbb07];}}function _0x48341d(_0x1d1666){const _0x42289=_0x4afe6d;return _0x1d1666[_0x42289(0x12f)][_0x42289(0x220)]==null&&_0x1d1666['target'][_0x42289(0x3a1)]===_0x1d1666[_0x42289(0x31e)]&&!_0x1d1666[_0x42289(0x3ab)];}function _0x48ad66(_0x43ad23,_0x2ac69f){const _0x1b58e2=_0x4afe6d;return{..._0x2ac69f,'data':(0x0,_0x510a16[_0x1b58e2(0x18d)])(_0x16fb42(_0x43ad23,(0x0,_0x510a16['parseProtocolChangeset'])(_0x2ac69f[_0x1b58e2(0x2b8)])))};}function _0x219d9e(_0x5dfe32,_0x3abd38){const _0x24d1bb=_0x4afe6d;return{..._0x3abd38,'data':_0x16fb42(_0x5dfe32,_0x3abd38[_0x24d1bb(0x2b8)])};}function _0x3ed110(_0xe2afc9,_0x1d1c8c){const _0xcce89c=_0x4afe6d;let _0x36b274=_0x1d1c8c[_0xcce89c(0x2b8)];return{..._0x1d1c8c,'data':{..._0x36b274,'changesets':_0x36b274[_0xcce89c(0x114)]['map'](_0x2c2fdc=>(0x0,_0x510a16[_0xcce89c(0x18d)])(_0x16fb42(_0xe2afc9,(0x0,_0x510a16[_0xcce89c(0x1a9)])(_0x2c2fdc))))}};}function _0x16fb42(_0x19c796,_0x528d1b){const _0x67852a=_0x4afe6d;return _0x2cdbfe(_0x19c796)[_0x67852a(0x433)](_0x528d1b,_0x5511c6(_0x19c796));}function _0x2cdbfe(_0x39ab8c){const _0xab3f01=_0x4afe6d;if(!_0x39ab8c[_0xab3f01(0x3ab)])throw Error(_0xab3f01(0x268));return _0x39ab8c['changeset'];}function _0x5511c6(_0x38cf60){const _0x189aee=_0x4afe6d;return{'localUnitId':_0x38cf60[_0x189aee(0x31e)],'unitType':_0x38cf60[_0x189aee(0x3ec)],'target':_0x38cf60[_0x189aee(0x12f)]};}let _0x3bf564=function(_0xdd10f6){const _0x59b820=_0x4afe6d;return _0xdd10f6[_0xdd10f6['IDLE']=0x0]='IDLE',_0xdd10f6[_0xdd10f6[_0x59b820(0x343)]=0x1]=_0x59b820(0x343),_0xdd10f6[_0xdd10f6[_0x59b820(0x21f)]=0x2]=_0x59b820(0x21f),_0xdd10f6[_0xdd10f6[_0x59b820(0x3cd)]=0x3]='ONLINE',_0xdd10f6;}({}),_0x1e194d={[_0x3a112b[_0x4afe6d(0x1d3)][_0x4afe6d(0x357)]]:'session.join-failed',[_0x3a112b['CmdRspCode'][_0x4afe6d(0x189)]]:_0x4afe6d(0x355),[_0x3a112b['CmdRspCode'][_0x4afe6d(0x3f5)]]:'session.room-not-exists',[_0x3a112b[_0x4afe6d(0x1d3)][_0x4afe6d(0x3f8)]]:_0x4afe6d(0x264),[_0x3a112b[_0x4afe6d(0x1d3)][_0x4afe6d(0x15e)]]:_0x4afe6d(0x412)},_0x180b79=class extends _0x54340d[_0x4afe6d(0x2bf)]{get['sessionStatus'](){const _0x9fd459=_0x4afe6d;return this[_0x9fd459(0x2b6)][_0x9fd459(0x22a)]();}constructor(_0x4cf65b,_0x422caa,_0x484d6b,_0x8868ba,_0x1e65b0,_0x17934f,_0x5cec74,_0x184d73){const _0x37e021=_0x4afe6d;super(),this[_0x37e021(0x1c8)]=_0x4cf65b,this[_0x37e021(0x30d)]=_0x484d6b,this[_0x37e021(0x3b8)]=_0x8868ba,this[_0x37e021(0x30f)]=_0x1e65b0,this[_0x37e021(0x248)]=_0x17934f,this[_0x37e021(0x30b)]=_0x5cec74,this[_0x37e021(0x3c5)]=_0x184d73,_0x1d93f6(this,_0x37e021(0x2b6),new _0x501c4e['BehaviorSubject'](0x0)),_0x1d93f6(this,_0x37e021(0x2d5),this[_0x37e021(0x2b6)][_0x37e021(0x371)]()),_0x1d93f6(this,'_event$',new _0x501c4e['Subject']()),_0x1d93f6(this,_0x37e021(0x2c0),this[_0x37e021(0x24e)][_0x37e021(0x371)]()),_0x1d93f6(this,_0x37e021(0x38a),void 0x0),_0x1d93f6(this,_0x37e021(0x1b2),void 0x0),_0x1d93f6(this,_0x37e021(0x361),void 0x0),_0x1d93f6(this,_0x37e021(0x270),!0x1),_0x1d93f6(this,'_telemetryInfo',null),this[_0x37e021(0x270)]=!!this[_0x37e021(0x3c5)],_0x422caa[_0x37e021(0x33c)]((0x0,_0x501c4e['takeUntil'])(this[_0x37e021(0x24d)]))[_0x37e021(0x40b)](_0x20d2f0=>{const _0x1d79c9=_0x37e021;if(_0x20d2f0!==void 0x0){if(this[_0x1d79c9(0x38a)]=_0x20d2f0,_0x20d2f0)this['_joinRoom'](_0x20d2f0),this['_socketMessageSubscription']=_0x20d2f0[_0x1d79c9(0x208)][_0x1d79c9(0x40b)](_0x4fd883=>{const _0x482122=_0x1d79c9;_0x4fd883[_0x482122(0x2e0)]===this[_0x482122(0x1c8)][_0x482122(0x12f)]['unitId']&&this[_0x482122(0x14b)](_0x4fd883);});else{var _0x1e7a66;this[_0x1d79c9(0x20c)](),this[_0x1d79c9(0x2b6)][_0x1d79c9(0x16a)](0x2),(_0x1e7a66=this[_0x1d79c9(0x1b2)])==null||_0x1e7a66[_0x1d79c9(0x187)](),this[_0x1d79c9(0x1b2)]=null;}}});}['getMemberID'](){const _0x165038=_0x4afe6d;var _0x36955b,_0x2574ca;return(_0x36955b=(_0x2574ca=this[_0x165038(0x38a)])==null?void 0x0:_0x2574ca[_0x165038(0x41c)])==null?null:_0x36955b;}[_0x4afe6d(0x445)](){const _0x4b608a=_0x4afe6d;super[_0x4b608a(0x445)](),this[_0x4b608a(0x3ed)](),this[_0x4b608a(0x24d)][_0x4b608a(0x16a)](),this[_0x4b608a(0x24d)][_0x4b608a(0x228)]();}[_0x4afe6d(0x3ed)](){const _0x417160=_0x4afe6d;var _0x551423;this[_0x417160(0x20c)](),(_0x551423=this[_0x417160(0x38a)])==null||_0x551423[_0x417160(0x255)]({'cmd':_0x3a112b[_0x417160(0x2dc)][_0x417160(0x240)],'data':{'roomID':this[_0x417160(0x1c8)]['target'][_0x417160(0x3a1)]}}),this[_0x417160(0x24e)][_0x417160(0x228)](),this[_0x417160(0x2b6)][_0x417160(0x228)]();}[_0x4afe6d(0x14b)](_0x23c443){const _0x58c06c=_0x4afe6d;_0x23c443['cmd']===_0x3a112b[_0x58c06c(0x2dc)][_0x58c06c(0x39d)]?this['_onJoinRoomEvent'](_0x23c443):_0x23c443[_0x58c06c(0x239)]===_0x3a112b[_0x58c06c(0x2dc)][_0x58c06c(0x319)]&&this[_0x58c06c(0x44d)](_0x23c443);}[_0x4afe6d(0x2e3)](_0x4d5347){const _0x2b5e3e=_0x4afe6d;this[_0x2b5e3e(0x2b6)][_0x2b5e3e(0x16a)](0x1),_0x4d5347[_0x2b5e3e(0x255)]({'cmd':_0x3a112b[_0x2b5e3e(0x2dc)][_0x2b5e3e(0x39d)],'routeKey':this['_identity'][_0x2b5e3e(0x12f)][_0x2b5e3e(0x3a1)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2b5e3e(0x1c8)][_0x2b5e3e(0x12f)]['unitId']}]}});}[_0x4afe6d(0x182)](_0x365752){const _0x3f1ae6=_0x4afe6d;var _0x3b7c19;if(_0x365752[_0x3f1ae6(0x1a3)]in _0x1e194d){this[_0x3f1ae6(0x30b)][_0x3f1ae6(0x425)]({'id':_0x3f1ae6(0x338),'data':_0x1e194d[_0x365752[_0x3f1ae6(0x1a3)]]}),this[_0x3f1ae6(0x2b6)]['next'](0x2);return;}this[_0x3f1ae6(0x2b6)][_0x3f1ae6(0x16a)](0x3);let _0x141b08=(_0x3b7c19=_0x365752[_0x3f1ae6(0x2b8)][_0x3f1ae6(0x37c)][this['_identity'][_0x3f1ae6(0x12f)]['unitId']])==null?void 0x0:_0x3b7c19[_0x3f1ae6(0x20e)];_0x141b08&&_0x141b08[_0x3f1ae6(0x3a3)](_0x1c6681=>this[_0x3f1ae6(0x30f)][_0x3f1ae6(0x2b3)](this['_identity'][_0x3f1ae6(0x31e)],_0x1c6681));}[_0x4afe6d(0x44d)](_0xe231cb){const _0x181cdc=_0x4afe6d;try{let _0x205091=_0x32c675(this[_0x181cdc(0x1c8)],_0xe231cb['data']);for(let _0xed6bd2 of _0x205091)switch(_0xed6bd2[_0x181cdc(0x10f)]){case _0x510a16[_0x181cdc(0x17d)][_0x181cdc(0x1b4)]:this[_0x181cdc(0x3e3)](_0xed6bd2),this[_0x181cdc(0x24e)][_0x181cdc(0x16a)](_0xed6bd2);break;case _0x510a16['CollaborationEvent'][_0x181cdc(0x132)]:this[_0x181cdc(0x1eb)](_0xed6bd2),this[_0x181cdc(0x24e)][_0x181cdc(0x16a)](_0xed6bd2);break;case _0x510a16[_0x181cdc(0x17d)]['CHANGESET_ACK']:case _0x510a16['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:this[_0x181cdc(0x424)](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x181cdc(0x16a)](_0xed6bd2);break;case _0x510a16['CollaborationEvent'][_0x181cdc(0x1d9)]:this[_0x181cdc(0x30d)]['error'](_0x181cdc(0x1be)+JSON[_0x181cdc(0x1c6)](_0xed6bd2)),this[_0x181cdc(0x24e)]['next'](_0xed6bd2);break;case _0x510a16[_0x181cdc(0x17d)]['COMMENT_UPDATE']:this['_commentService'][_0x181cdc(0x12a)](_0xed6bd2['data']),this[_0x181cdc(0x24e)]['next'](_0xed6bd2);break;default:this[_0x181cdc(0x24e)][_0x181cdc(0x16a)](_0xed6bd2);}}catch(_0x1b6967){this['_logService']['error'](_0x1b6967,_0xe231cb);}}[_0x4afe6d(0x3e3)](_0x17ebae){const _0x53a3e3=_0x4afe6d;this[_0x53a3e3(0x30f)]['updateMember'](this[_0x53a3e3(0x1c8)][_0x53a3e3(0x31e)],_0x17ebae['data']);}[_0x4afe6d(0x1eb)](_0x47ce51){const _0x2f208f=_0x4afe6d;this[_0x2f208f(0x30f)][_0x2f208f(0x2d1)](this['_identity']['localUnitId'],_0x47ce51[_0x2f208f(0x2b8)]['memberID']);}async[_0x4afe6d(0x255)](_0x243799,_0x1f4b51){const _0x413872=_0x4afe6d;if(this[_0x413872(0x202)]!==0x3||!this['_socket'])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x569664=_0x390da0(this[_0x413872(0x1c8)],_0x243799);_0x569664[_0x413872(0x10f)]===_0x510a16['CollaborationEvent']['SUBMIT_CHANGESET']&&(this[_0x413872(0x42c)](),this[_0x413872(0x39c)](_0x569664)),this['_socket'][_0x413872(0x255)]({'cmd':_0x3a112b[_0x413872(0x2dc)][_0x413872(0x401)],'routeKey':this[_0x413872(0x1c8)][_0x413872(0x12f)][_0x413872(0x3a1)],'routeType':'','data':_0x569664});}catch(_0xa26a){this[_0x413872(0x30d)]['error'](_0xa26a);}}['_scheduleCollaborationTimeoutTimer'](){const _0x2aa279=_0x4afe6d;var _0x1481a5;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x152c3c=_0x4f14;this[_0x152c3c(0x361)]=null,this[_0x152c3c(0x30b)]['emitEvent']({'id':_0x152c3c(0x333)});},(_0x1481a5=this[_0x2aa279(0x3b8)][_0x2aa279(0x170)](_0x2aa279(0x263)))==null?_0x3eabd5:_0x1481a5);}[_0x4afe6d(0x43d)](){const _0x50ef16=_0x4afe6d;this[_0x50ef16(0x361)]&&(clearTimeout(this[_0x50ef16(0x361)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x9dc1b5){const _0x791c6a=_0x4afe6d;if(!this['_shouldReportTelemetry'])return;let {data:_0x5e0379}=_0x9dc1b5,{unitID:_0x5146d3,changeset:_0x50ed65}=_0x5e0379,{mutations:_0x3c577a,type:_0x2e43ba}=_0x50ed65;this[_0x791c6a(0x1ff)]={'unitId':_0x5146d3,'type':_0x2e43ba,'startTime':performance[_0x791c6a(0x428)](),'stopTime':0x0,'duration':0x0,'size':_0xc9b6fb(_0x3c577a)};}[_0x4afe6d(0x424)](){const _0x1df2f1=_0x4afe6d;if(this['_shouldReportTelemetry']){if(!this[_0x1df2f1(0x1ff)]){this['_logService'][_0x1df2f1(0x106)](_0x1df2f1(0x238),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x1df2f1(0x1ff)][_0x1df2f1(0x21d)]=performance['now'](),this['_telemetryInfo'][_0x1df2f1(0x2e4)]=this[_0x1df2f1(0x1ff)][_0x1df2f1(0x21d)]-this['_telemetryInfo'][_0x1df2f1(0x2c8)],this[_0x1df2f1(0x3c5)]['capture']('collaboration_new_changeset',this[_0x1df2f1(0x1ff)]),this['_telemetryInfo']=null;}}[_0x4afe6d(0x20c)](){const _0x29a88a=_0x4afe6d;this[_0x29a88a(0x1ff)]=null;}};_0x180b79=_0x3bbaf2([_0x5c2cf(0x2,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x3,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x1afb9b)),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x24cd08)),_0x5c2cf(0x6,(0x0,_0x54340d['Inject'])(_0x18b525)),_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x15aa62[_0x4afe6d(0x16d)]))],_0x180b79);let _0x1cadf3=(0x0,_0x54340d[_0x4afe6d(0x227)])(_0x4afe6d(0x1b8));function _0x4accb8(_0x1b7fe1){return'unit-cache-'+_0x1b7fe1;}function _0xffae4e(_0x20a01b){const _0x56be4c=_0x4afe6d;let {unitID:_0x371b20,mutations:_0x259bb2}=_0x20a01b;return{'unitId':_0x371b20,'subUnitId':_0x259bb2[_0x56be4c(0x414)]>0x0?_0x259bb2[0x0][_0x56be4c(0x311)]['subUnitId']:null};}let _0x2269b7=class{constructor(_0x19e1eb,_0x2a0da0,_0x5f3d30){const _0xb15e80=_0x4afe6d;this['_injector']=_0x19e1eb,this[_0xb15e80(0x294)]=_0x2a0da0,this['_instanceService']=_0x5f3d30;}['transformSelections'](_0x54f262){const _0x1206af=_0x4afe6d;var _0x1b0050,_0x24e15e;let _0x3d770e=this[_0x1206af(0x19e)][_0x1206af(0x28f)](_0x2e3009[_0x1206af(0x31f)]),{unitId:_0x58b63a,subUnitId:_0x380caa}=_0xffae4e(_0x54f262),_0x4f1e31=_0x3d770e==null?void 0x0:_0x3d770e[_0x1206af(0x1d4)](_0x58b63a)[_0x1206af(0x38d)](),_0x390c0b=(_0x1b0050=this[_0x1206af(0x2ca)][_0x1206af(0x44a)](_0x58b63a))==null||(_0x1b0050=_0x1b0050[_0x1206af(0x345)]())==null?void 0x0:_0x1b0050[_0x1206af(0x302)]();if(_0x4f1e31[_0x1206af(0x414)]===0x0||!_0x58b63a||!_0x380caa)return;let _0x594626=[{'id':_0x2e3009[_0x1206af(0x3e6)]['id'],'params':{'unitId':_0x58b63a,'subUnitId':_0x390c0b,'selections':_0x54340d[_0x1206af(0x2f5)]['deepClone'](_0x4f1e31)}}],_0x24e296=this[_0x1206af(0x294)][_0x1206af(0x2e7)](_0x54f262,_0x594626);if(!(0x0,_0x510a16['isTransformMutationsWithChangesetSuccess'])(_0x24e296))throw _0x24e296['error'];let _0x1c4914=(_0x24e15e=_0x24e296[_0x1206af(0x422)][0x0])==null||(_0x24e15e=_0x24e15e[_0x1206af(0x311)])==null?void 0x0:_0x24e15e[_0x1206af(0x328)];if(Array[_0x1206af(0x120)](_0x1c4914)&&_0x1c4914[_0x1206af(0x414)]){if(_0x1c4914[_0x1206af(0x414)]===_0x594626[0x0]['params'][_0x1206af(0x328)][_0x1206af(0x414)]&&_0x1c4914[_0x1206af(0x3bc)]((_0x477671,_0x590430)=>_0x54340d[_0x1206af(0x397)][_0x1206af(0x2d4)](_0x477671[_0x1206af(0x3ca)],_0x594626[0x0][_0x1206af(0x311)][_0x1206af(0x328)][_0x590430][_0x1206af(0x3ca)])))return;this[_0x1206af(0x19e)][_0x1206af(0x28f)](_0x54340d[_0x1206af(0x39e)])[_0x1206af(0x3e8)](_0x2e3009[_0x1206af(0x3e6)]['id'],{'unitId':_0x58b63a,'subUnitId':_0x390c0b,'selections':_0x1c4914});}}};_0x2269b7=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x1,_0x510a16[_0x4afe6d(0x14c)]),_0x5c2cf(0x2,_0x54340d['IUniverInstanceService'])],_0x2269b7);let _0x54d1b8=(0x0,_0x54340d[_0x4afe6d(0x227)])(_0x4afe6d(0xfb)),_0x36582d=function(_0x2a23fc){const _0x15390a=_0x4afe6d;return _0x2a23fc[_0x2a23fc['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x15390a(0x116),_0x2a23fc[_0x2a23fc['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0x2a23fc;}({});function _0x44acd4(_0x423728){const _0x8dad42=_0x4afe6d;var _0x1e8850;return!!((_0x1e8850=_0x423728[_0x8dad42(0x311)])!=null&&_0x1e8850[_0x8dad42(0x313)]);}let _0x5b983d=new Set([_0x2e3009[_0x4afe6d(0x1d0)]['id']]),_0x41e6c6=new Set([_0xee09d9[_0x4afe6d(0x22d)]['id'],_0xee09d9[_0x4afe6d(0x2fb)]['id'],_0xee09d9[_0x4afe6d(0x2a2)]['id'],_0xee09d9['RemoveSlidePageMutation']['id']]);function _0x3121f6(_0x5848b3,_0x4f5915=_0x5b983d){const _0x3d74b8=_0x4afe6d;let _0x24582d=[];for(let _0x507753 of _0x5848b3){if(_0x4f5915['has'](_0x507753['id'])){if(_0x24582d[_0x3d74b8(0x414)]>0x0)break;_0x24582d['push'](_0x507753);break;}if(_0x44acd4(_0x507753)){if(_0x24582d[_0x3d74b8(0x414)]>0x0)break;_0x24582d[_0x3d74b8(0x399)](_0x507753);break;}_0x24582d[_0x3d74b8(0x399)](_0x507753);}return _0x24582d;}function _0x2f6bb7(_0x470b6a,_0x4165a8,_0x46f0db,_0x3d0745,_0x1c4744){const _0x5b12c4=_0x4afe6d;var _0x4610e0,_0x33ecc6,_0x20cdaa,_0x72f3da;let _0x346eaa=_0x3121f6(_0x470b6a),_0x3c6cdd=(_0x4610e0=(_0x33ecc6=_0x1c4744[_0x5b12c4(0x2ec)]())==null?void 0x0:_0x33ecc6[_0x5b12c4(0x11c)])==null?'unknown':_0x4610e0,_0x5c6808=(_0x20cdaa=(_0x72f3da=_0x1c4744['getCurrentUser']())==null?void 0x0:_0x72f3da[_0x5b12c4(0x41c)])==null?'unknown':_0x20cdaa;return{'changeset':{'unitID':_0x4165a8,'type':(0x0,_0x510a16[_0x5b12c4(0x274)])(_0x46f0db['getUnitType'](_0x4165a8)),'baseRev':_0x3d0745[_0x5b12c4(0x318)](_0x4165a8),'revision':0x0,'userID':_0x3c6cdd,'memberID':_0x5c6808,'mutations':_0x346eaa},'pendingMutations':_0x470b6a['slice'](_0x346eaa[_0x5b12c4(0x414)])};}function _0x23b44b(_0x554704,_0x231202,_0x3ad3e0,_0x444966,_0x15683d){const _0x2d8d00=_0x4afe6d;var _0x3cda73,_0x4a95b8,_0x202638,_0x18429f;let _0x2ea39c=_0x3121f6(_0x554704,_0x41e6c6),_0x37d4a0=(_0x3cda73=(_0x4a95b8=_0x15683d[_0x2d8d00(0x2ec)]())==null?void 0x0:_0x4a95b8['userID'])==null?'unknown':_0x3cda73,_0x374872=(_0x202638=(_0x18429f=_0x15683d[_0x2d8d00(0x2ec)]())==null?void 0x0:_0x18429f[_0x2d8d00(0x41c)])==null?_0x2d8d00(0x16f):_0x202638;return{'changeset':{'unitID':_0x231202,'type':(0x0,_0x510a16[_0x2d8d00(0x274)])(_0x3ad3e0[_0x2d8d00(0x153)](_0x231202)),'baseRev':_0x444966[_0x2d8d00(0x318)](_0x231202),'revision':0x0,'userID':_0x37d4a0,'memberID':_0x374872,'mutations':_0x2ea39c},'pendingMutations':_0x554704['slice'](_0x2ea39c[_0x2d8d00(0x414)])};}function _0xa7ac75(_0x3012e6,_0x3a0e3b,_0x2f80ed,_0x5d745c,_0x2568b4){const _0x2ef660=_0x4afe6d;var _0x22ad56,_0x3bf61d,_0x194c04,_0x141935;let _0x4fa822=_0x3012e6['reduce']((_0x13f634,_0x203d27)=>{const _0x559b00=_0x4f14;let _0x5e91f0=_0x13f634[_0x13f634[_0x559b00(0x414)]-0x1],{id:_0x4bb7bc}=_0x5e91f0==null?{}:_0x5e91f0,{id:_0x4b9470,type:_0x3d89f5}=_0x203d27,_0x197261=_0x203d27[_0x559b00(0x311)];if(_0x4bb7bc&&_0x4bb7bc!==_0x4b9470)throw Error(_0x559b00(0x300)+_0x4bb7bc+_0x559b00(0x390)+_0x4b9470+'.');if(!_0x5e91f0)return[{'id':_0x4b9470,'type':_0x3d89f5,'params':{'unitId':_0x197261['unitId'],'textRanges':_0x197261[_0x559b00(0x245)],'actions':_0x197261['actions']}}];let _0x231a10=_0x5e91f0[_0x559b00(0x311)];return _0x33a2d0(_0x231a10,_0x197261)?[..._0x13f634['slice'](0x0,-0x1),{..._0x5e91f0,'id':_0x4b9470,'type':_0x3d89f5,'params':{'unitId':_0x197261[_0x559b00(0x3a1)],'textRanges':_0x197261[_0x559b00(0x245)],'actions':_0x54340d['JSONX'][_0x559b00(0x223)](_0x231a10[_0x559b00(0x25c)],_0x197261[_0x559b00(0x25c)])}}]:[..._0x13f634,{'id':_0x4b9470,'type':_0x3d89f5,'params':{'unitId':_0x197261['unitId'],'textRanges':_0x197261['textRanges'],'actions':_0x197261[_0x559b00(0x25c)]}}];},[]),_0x2acafe=(_0x22ad56=(_0x3bf61d=_0x2568b4[_0x2ef660(0x2ec)]())==null?void 0x0:_0x3bf61d[_0x2ef660(0x11c)])==null?_0x2ef660(0x16f):_0x22ad56,_0x1a2188=(_0x194c04=(_0x141935=_0x2568b4['getCurrentUser']())==null?void 0x0:_0x141935[_0x2ef660(0x41c)])==null?_0x2ef660(0x16f):_0x194c04;return{'changeset':{'unitID':_0x3a0e3b,'type':(0x0,_0x510a16[_0x2ef660(0x274)])(_0x2f80ed['getUnitType'](_0x3a0e3b)),'baseRev':_0x5d745c[_0x2ef660(0x318)](_0x3a0e3b),'revision':0x0,'userID':_0x2acafe,'memberID':_0x1a2188,'mutations':_0x4fa822},'pendingMutations':_0x3012e6[_0x2ef660(0x1b6)](_0x3012e6[_0x2ef660(0x414)])};}function _0x33a2d0(_0x48ea7b,_0x518d28){const _0x34cd85=_0x4afe6d;return!_0x53c624(_0x48ea7b)&&!_0x53c624(_0x518d28)&&_0x581b81(_0x48ea7b[_0x34cd85(0x25c)],_0x518d28[_0x34cd85(0x25c)]);}function _0x53c624(_0x5daad9){const _0x21ce1a=_0x4afe6d;return _0x5daad9[_0x21ce1a(0x180)]!==void 0x0;}function _0x581b81(_0x3662d3,_0x4441b9){return _0x4bf55e(_0x3662d3)&&_0x4bf55e(_0x4441b9)&&!_0x3acdf(_0x3662d3)&&!_0x3acdf(_0x4441b9)&&!_0x1b233f(_0x3662d3)&&!_0x1b233f(_0x4441b9);}function _0x4bf55e(_0x19d288){const _0x5aca40=_0x4afe6d;return _0x381926(_0x19d288)[_0x5aca40(0x1d8)](_0x38e491=>_0x12d07d(_0x38e491)&&_0x38e491['et']===_0x5aca40(0x160));}function _0x1b233f(_0x4c243c){const _0x177cbb=_0x4afe6d;return _0x381926(_0x4c243c)['some'](_0x406fcb=>Array[_0x177cbb(0x120)](_0x406fcb)||typeof _0x406fcb==_0x177cbb(0x1ab)||typeof _0x406fcb==_0x177cbb(0x1ca));}function _0x3acdf(_0x26f32e){const _0x268a47=_0x4afe6d;return _0x381926(_0x26f32e)['some'](_0x33318d=>!_0x12d07d(_0x33318d)||_0x33318d['et']!=='text-x'||!Array['isArray'](_0x33318d['e'])?!0x1:_0x33318d['e']['some'](_0x4da127=>!_0x12d07d(_0x4da127)||!_0x12d07d(_0x4da127[_0x268a47(0x271)])?!0x1:Object[_0x268a47(0x31b)][_0x268a47(0x38b)][_0x268a47(0x178)](_0x4da127[_0x268a47(0x271)],_0x268a47(0x23c))||Object['prototype']['hasOwnProperty'][_0x268a47(0x178)](_0x4da127[_0x268a47(0x271)],_0x268a47(0x17f))||Object[_0x268a47(0x31b)][_0x268a47(0x38b)]['call'](_0x4da127[_0x268a47(0x271)],_0x268a47(0x3e1))));}function _0x381926(_0x37d7fa){const _0x567856=_0x4afe6d;if(!Array[_0x567856(0x120)](_0x37d7fa))return[];let _0x354995=_0x37d7fa['includes'](_0x567856(0x271))?_0x37d7fa:_0x37d7fa[_0x567856(0x370)](_0x30842c=>Array[_0x567856(0x120)](_0x30842c)&&_0x30842c[_0x567856(0x206)](_0x567856(0x271)));if(!Array['isArray'](_0x354995))return[];let _0x5236c9=_0x354995['indexOf'](_0x567856(0x271));return _0x5236c9===-0x1?[]:_0x354995[_0x567856(0x1b6)](_0x5236c9+0x1);}function _0x12d07d(_0x717f7a){const _0x52bffd=_0x4afe6d;return typeof _0x717f7a==_0x52bffd(0x2bd)&&!!_0x717f7a&&!Array[_0x52bffd(0x120)](_0x717f7a);}function _0x6b50d3(_0x23ea9d,_0x5a7b6a){const _0x5672ab=_0x4afe6d;let _0x3055cf=new _0x501c4e[(_0x5672ab(0x394))](0x1);return setTimeout(()=>_0x3055cf[_0x5672ab(0x16a)](_0x5a7b6a),_0x23ea9d),_0x3055cf[_0x5672ab(0x371)]()[_0x5672ab(0x33c)]((0x0,_0x501c4e['take'])(0x1));}var _0x285c1b,_0x1f9ff2,_0x537763;let _0x37cdd1=function(_0x1bdbac){const _0x5e239b=_0x4afe6d;return _0x1bdbac[_0x5e239b(0x2ba)]=_0x5e239b(0x2ee),_0x1bdbac[_0x5e239b(0x3f3)]=_0x5e239b(0x3b6),_0x1bdbac[_0x5e239b(0x3c1)]='pending',_0x1bdbac[_0x5e239b(0x266)]='awaiting',_0x1bdbac[_0x5e239b(0x1ac)]=_0x5e239b(0x284),_0x1bdbac[_0x5e239b(0x1f6)]='fetch_missing',_0x1bdbac['CONFLICT']=_0x5e239b(0x1b1),_0x1bdbac[_0x5e239b(0x21f)]=_0x5e239b(0x296),_0x1bdbac;}({}),_0xb28743=0x4e20,_0x1d95e0=0x2bf20;var _0x52be27=class{constructor(_0x282a16,_0x442cc3,_0x516297,_0x4867b6,_0x583b8b,_0x31b884,_0x425a1f,_0xa994c5,_0x11c5d7){const _0x1f0f6d=_0x4afe6d;this['unitID']=_0x282a16,this[_0x1f0f6d(0x154)]=_0x442cc3,this['_handler']=_0x583b8b,this['_commandService']=_0x31b884,this[_0x1f0f6d(0x3f0)]=_0x425a1f,this[_0x1f0f6d(0x3a4)]=_0xa994c5,this['_localCacheService']=_0x11c5d7,_0x1d93f6(this,_0x1f0f6d(0x1a2),null),_0x1d93f6(this,_0x1f0f6d(0x286),[]),this['_awaitingChangeset']=_0x516297,this['_pendingMutations']=_0x4867b6;}['_checkMissing'](_0x2c7e98){const _0x20b314=_0x4afe6d;let _0x4f615a=this[_0x20b314(0x3a4)][_0x20b314(0x318)](this['unitID']);return _0x2c7e98[_0x20b314(0x42f)]>_0x4f615a+0x1?(this[_0x20b314(0x183)]['onMissingChangesets']({'from':_0x4f615a,'to':_0x2c7e98['revision']-0x1}),!0x0):!0x1;}[_0x4afe6d(0x3d5)](_0x48ddbc){const _0xf34092=_0x4afe6d;this[_0xf34092(0x3f0)][_0xf34092(0x2c2)](this[_0xf34092(0x3b1)],_0x48ddbc);}[_0x4afe6d(0x233)](_0x147668){const _0x482dc9=_0x4afe6d;var _0x312e00,_0x32d1ea;(_0x312e00=(_0x32d1ea=this[_0x482dc9(0x183)])[_0x482dc9(0x3a5)])==null||_0x312e00[_0x482dc9(0x178)](_0x32d1ea,_0x147668);}['_transformIMECache'](_0x42e57f){const _0x5c3bc6=_0x4afe6d;var _0x1b3389,_0x613390;return(_0x1b3389=(_0x613390=this[_0x5c3bc6(0x183)])[_0x5c3bc6(0x2dd)])==null?void 0x0:_0x1b3389[_0x5c3bc6(0x178)](_0x613390,_0x42e57f);}[_0x4afe6d(0x121)](_0x55e009){const _0x525e25=_0x4afe6d;var _0x43b402,_0x648a64;return(_0x43b402=(_0x648a64=this[_0x525e25(0x183)])[_0x525e25(0x34d)])==null?void 0x0:_0x43b402[_0x525e25(0x178)](_0x648a64,_0x55e009);}['_transformRemoteChangesetByIMECache'](_0xea3016){const _0x3c6aaf=_0x4afe6d;var _0x26b883,_0x9b27fe,_0x161024;return(_0x26b883=(_0x9b27fe=(_0x161024=this[_0x3c6aaf(0x183)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x9b27fe['call'](_0x161024,_0xea3016))==null?_0xea3016:_0x26b883;}['_transformRemoteChangesetByStateCache'](_0x5c0cfd){const _0x3bc494=_0x4afe6d;var _0x7e3a30,_0x37235b,_0x54d233;return(_0x7e3a30=(_0x37235b=(_0x54d233=this[_0x3bc494(0x183)])[_0x3bc494(0x3be)])==null?void 0x0:_0x37235b[_0x3bc494(0x178)](_0x54d233,_0x5c0cfd))==null?_0x5c0cfd:_0x7e3a30;}[_0x4afe6d(0x33b)](_0x45e77a){const _0x1a5e02=_0x4afe6d;if(this[_0x1a5e02(0x154)]===_0x54340d[_0x1a5e02(0x395)][_0x1a5e02(0x366)]){let {unitID:_0x197371,mutations:_0x29e789,memberID:_0x109a81}=_0x45e77a,_0x449b4b=_0x29e789['length']>0x0?_0x29e789[0x0]['params'][_0x1a5e02(0x245)]:[];if(Array[_0x1a5e02(0x120)](_0x449b4b)&&_0x449b4b[_0x1a5e02(0x414)]>0x0){var _0x3daaab,_0x4dd3ce;(_0x3daaab=(_0x4dd3ce=this[_0x1a5e02(0x183)])['onSyncEditingCollabCursor'])==null||_0x3daaab[_0x1a5e02(0x178)](_0x4dd3ce,{'unitID':_0x197371,'memberID':_0x109a81,'textRanges':_0x449b4b});}}}['_updateLocalCache'](){const _0x1f86ea=_0x4afe6d;var _0x2e51b2;(_0x2e51b2=this['_localCacheService'])==null||_0x2e51b2['updateOfflineData'](this[_0x1f86ea(0x3b1)],this[_0x1f86ea(0x154)],this['_awaitingChangeset'],this[_0x1f86ea(0x286)]);}[_0x4afe6d(0x142)](){const _0xd1e655=_0x4afe6d;return this[_0xd1e655(0x3a4)][_0xd1e655(0x318)](this[_0xd1e655(0x3b1)]);}[_0x4afe6d(0xf6)](){const _0x34dce9=_0x4afe6d;this['_revisionService'][_0x34dce9(0x14d)](this[_0x34dce9(0x3b1)]);}[_0x4afe6d(0x363)](_0x1be8a4){const _0x3ad121=_0x4afe6d;let _0x100e0d=this[_0x3ad121(0x26b)](_0x1be8a4);_0x100e0d=this[_0x3ad121(0x3ce)](_0x100e0d);let _0x164c96=(0x0,_0x54340d[_0x3ad121(0x30a)])(_0x100e0d['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x164c96[_0x3ad121(0x2a9)]){var _0x463cdb;throw _0x164c96[_0x3ad121(0x106)]instanceof Error?_0x164c96[_0x3ad121(0x106)]:Error((_0x463cdb=_0x164c96[_0x3ad121(0x106)])==null?_0x3ad121(0x3dc):_0x463cdb);}this[_0x3ad121(0x186)](_0x100e0d),this[_0x3ad121(0x121)](_0x100e0d),this[_0x3ad121(0x3d5)](_0x1be8a4),this[_0x3ad121(0x233)](_0x100e0d),this[_0x3ad121(0x33b)](_0x100e0d),this[_0x3ad121(0xf6)]();}};let _0x5d7f84=class extends _0x52be27{constructor(_0x313626,_0x3d5c70,_0x2538a7,_0x28f069,_0x218ffa,_0x514a4d,_0x5c1ff7,_0xddf53c,_0x14b000,_0x94937c){const _0x2f56b7=_0x4afe6d;super(_0x313626,_0x3d5c70,null,[],_0x2538a7,_0x5c1ff7,_0x514a4d,_0x28f069,_0x94937c),this['_injector']=_0x218ffa,this[_0x2f56b7(0x30d)]=_0xddf53c,this[_0x2f56b7(0x294)]=_0x14b000,this[_0x2f56b7(0x249)]=_0x94937c,_0x1d93f6(this,'status',_0x2f56b7(0x3b6));}[_0x4afe6d(0x452)](_0x4bd320){const _0x583aa4=_0x4afe6d;let _0x122923=this[_0x583aa4(0x19e)][_0x583aa4(0x34e)](_0x503465,this[_0x583aa4(0x3b1)],this['type'],[_0x4bd320],this['_handler']);return _0x122923[_0x583aa4(0x159)](),_0x122923[_0x583aa4(0x10c)](),_0x122923;}[_0x4afe6d(0x152)](_0xe21d54){const _0x36edf3=_0x4afe6d;if(this[_0x36edf3(0x275)](_0xe21d54))return this[_0x36edf3(0x19e)]['createInstance'](_0x5ac534,this['unitID'],this[_0x36edf3(0x154)],null,[],null,[_0xe21d54],this['_handler']);try{let _0x4020cb=this[_0x36edf3(0x294)][_0x36edf3(0x2e7)](_0xe21d54,[_0x510a16[_0x36edf3(0x12d)]]);if((0x0,_0x510a16[_0x36edf3(0x36c)])(_0x4020cb)){let {c1Prime:_0x390f45}=_0x4020cb;return this[_0x36edf3(0x363)](_0x390f45),this;}throw _0x4020cb[_0x36edf3(0x106)];}catch(_0x20be64){return this[_0x36edf3(0x30d)][_0x36edf3(0x106)](_0x20be64),this[_0x36edf3(0x179)](!0x1);}}[_0x4afe6d(0x179)](_0x4373c6){const _0x9dc8e5=_0x4afe6d;return this['_injector'][_0x9dc8e5(0x34e)](_0x4544f7,this[_0x9dc8e5(0x3b1)],this[_0x9dc8e5(0x154)],null,[],this[_0x9dc8e5(0x183)],_0x4373c6);}[_0x4afe6d(0x136)](_0x22d0ea){const _0x4f47f0=_0x4afe6d;if(_0x22d0ea[_0x4f47f0(0x42f)]<=this[_0x4f47f0(0x142)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x5323ca=_0x4afe6d;throw Error(_0x5323ca(0x1d2));}[_0x4afe6d(0x122)](){return this;}['toggleOffline'](){const _0x147204=_0x4afe6d;return this[_0x147204(0x19e)]['createInstance'](_0x5146de,this[_0x147204(0x3b1)],this[_0x147204(0x154)],null,[],this[_0x147204(0x183)]);}[_0x4afe6d(0x374)](){return this;}['resend'](){const _0x3dceba=_0x4afe6d;throw Error(_0x3dceba(0x439));}[_0x4afe6d(0x3fe)](){const _0x464eb0=_0x4afe6d;let _0x146100=this[_0x464eb0(0x3a4)][_0x464eb0(0x318)](this[_0x464eb0(0x3b1)]);return this['_handler'][_0x464eb0(0x32d)]({'from':_0x146100,'to':0x0}),this[_0x464eb0(0x19e)][_0x464eb0(0x34e)](_0x5ac534,this[_0x464eb0(0x3b1)],this['type'],null,[],null,[],this[_0x464eb0(0x183)]);}};_0x5d7f84=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16['RevisionService'])),_0x5c2cf(0x4,(0x0,_0x54340d['Inject'])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x5,_0x54340d[_0x4afe6d(0x2a4)]),_0x5c2cf(0x6,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x7,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x8,_0x510a16['ITransformService']),_0x5c2cf(0x9,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x5d7f84);let _0x503465=_0x285c1b=class extends _0x52be27{constructor(_0x54beff,_0x32d302,_0x51887b,_0x54d733,_0x23d555,_0x2bbdf4,_0x1c9c95,_0x1aa26c,_0x3ed512,_0x22e36f,_0x3b31f0,_0x4cb1b4,_0x35634d,_0x55438e){const _0x506552=_0x4afe6d;super(_0x54beff,_0x32d302,null,_0x51887b,_0x54d733,_0x3ed512,_0x35634d,_0x2bbdf4,_0x55438e),this['_injector']=_0x23d555,this['_memberService']=_0x1c9c95,this[_0x506552(0x30d)]=_0x1aa26c,this[_0x506552(0x3b8)]=_0x22e36f,this[_0x506552(0x294)]=_0x3b31f0,this[_0x506552(0x18f)]=_0x4cb1b4,_0x1d93f6(this,_0x506552(0x35f),_0x506552(0x1e0)),_0x1d93f6(this,_0x506552(0x115),null),_0x1d93f6(this,_0x506552(0x295),null);}[_0x4afe6d(0x452)](_0x3fa7f1){const _0x395347=_0x4afe6d;return this[_0x395347(0x286)][_0x395347(0x399)](_0x3fa7f1),this[_0x395347(0x10c)](),this;}[_0x4afe6d(0x152)](_0x1e2c85){const _0x2541b9=_0x4afe6d;if(this['_checkMissing'](_0x1e2c85))return this['_clearScheduledTask'](),this[_0x2541b9(0x19e)][_0x2541b9(0x34e)](_0x5ac534,this[_0x2541b9(0x3b1)],this[_0x2541b9(0x154)],null,this[_0x2541b9(0x286)],null,[_0x1e2c85],this['_handler']);try{let _0x5f1298=this['_transformService']['transformMutationsWithChangeset'](_0x1e2c85,this[_0x2541b9(0x286)]);if((0x0,_0x510a16[_0x2541b9(0x36c)])(_0x5f1298)){let {c1Prime:_0x457169,m2Prime:_0x57d831}=_0x5f1298;this[_0x2541b9(0x363)](_0x457169);let _0x49ec30=this[_0x2541b9(0x19e)][_0x2541b9(0x34e)](_0x285c1b,this[_0x2541b9(0x3b1)],this[_0x2541b9(0x154)],_0x57d831,this[_0x2541b9(0x183)]);this['_clearScheduledTask']();let _0x35ffc9=new Date()[_0x2541b9(0x3f7)](),_0x649e3=this['_scheduleCompleteTimestamp']?Math[_0x2541b9(0x3f6)](this[_0x2541b9(0x115)]-_0x35ffc9,0x0):this[_0x2541b9(0x3b5)]();return _0x49ec30[_0x2541b9(0x159)](_0x649e3),_0x49ec30;}throw _0x5f1298[_0x2541b9(0x106)];}catch(_0x53acac){return this[_0x2541b9(0x30d)][_0x2541b9(0x106)](_0x53acac),this[_0x2541b9(0x179)](!0x1);}}[_0x4afe6d(0x136)](_0x2e56bd){const _0x10b2a3=_0x4afe6d;if(_0x2e56bd[_0x10b2a3(0x42f)]<=this[_0x10b2a3(0x142)]())return this;throw Error(_0x10b2a3(0x17c));}[_0x4afe6d(0x1fa)](){const _0x2f7883=_0x4afe6d;throw Error(_0x2f7883(0x36a));}[_0x4afe6d(0x122)](){return this;}['toggleOffline'](){const _0x11922c=_0x4afe6d;return this[_0x11922c(0x24f)](),this['_injector']['createInstance'](_0x5146de,this[_0x11922c(0x3b1)],this[_0x11922c(0x154)],null,this['_pendingMutations'],this[_0x11922c(0x183)]);}[_0x4afe6d(0x374)](){return this;}[_0x4afe6d(0x159)](_0x266b6c){const _0x3cb0e2=_0x4afe6d;let _0x42011d=_0x266b6c==null?this[_0x3cb0e2(0x3b5)]():_0x266b6c;this['_scheduleCompleteTimestamp']=new Date()[_0x3cb0e2(0x3f7)]()+_0x42011d,this[_0x3cb0e2(0x295)]=setTimeout(()=>{const _0xa68530=_0x3cb0e2;this[_0xa68530(0x24f)]();let _0xee0234=null;switch(this[_0xa68530(0x154)]){case _0x54340d[_0xa68530(0x395)][_0xa68530(0x3ee)]:_0xee0234=_0x2f6bb7(this['_pendingMutations'],this[_0xa68530(0x3b1)],this[_0xa68530(0x18f)],this['_revisionService'],this['_memberService']);break;case _0x54340d[_0xa68530(0x395)][_0xa68530(0x366)]:_0xee0234=this['_pendingMutations'][_0xa68530(0x3bc)](_0x16f984=>_0x16f984['id']===_0x55be24[_0xa68530(0x221)]['id'])?_0xa7ac75(this[_0xa68530(0x286)],this[_0xa68530(0x3b1)],this[_0xa68530(0x18f)],this[_0xa68530(0x3a4)],this[_0xa68530(0x30f)]):_0x2f6bb7(this[_0xa68530(0x286)],this[_0xa68530(0x3b1)],this['_univerInstanceService'],this[_0xa68530(0x3a4)],this['_memberService']);break;case _0x54340d[_0xa68530(0x395)][_0xa68530(0x2f6)]:_0xee0234=_0x23b44b(this[_0xa68530(0x286)],this[_0xa68530(0x3b1)],this[_0xa68530(0x18f)],this[_0xa68530(0x3a4)],this['_memberService']);break;case _0x54340d[_0xa68530(0x395)]['UNIVER_BOARD']:_0xee0234=_0x2f6bb7(this['_pendingMutations'],this[_0xa68530(0x3b1)],this[_0xa68530(0x18f)],this[_0xa68530(0x3a4)],this[_0xa68530(0x30f)]);break;case _0x54340d[_0xa68530(0x395)][_0xa68530(0x193)]:_0xee0234=_0x2f6bb7(this[_0xa68530(0x286)],this[_0xa68530(0x3b1)],this[_0xa68530(0x18f)],this[_0xa68530(0x3a4)],this[_0xa68530(0x30f)]);break;default:throw Error(_0xa68530(0x3eb)+this['type']+_0xa68530(0x2c4));}let {changeset:_0x5023af,pendingMutations:_0x5eae95}=_0xee0234;this[_0xa68530(0x183)][_0xa68530(0x35b)](_0x5023af);let _0x776ba=_0x5eae95[_0xa68530(0x414)]?this['_injector'][_0xa68530(0x34e)](_0x34253f,this[_0xa68530(0x3b1)],this[_0xa68530(0x154)],_0x5023af,_0x5eae95,this['_handler'],void 0x0):this[_0xa68530(0x19e)]['createInstance'](_0x4b8fc9,this[_0xa68530(0x3b1)],this[_0xa68530(0x154)],_0x5023af,this['_handler']);_0x776ba[_0xa68530(0x10c)](),this[_0xa68530(0x183)]['onStateChange'](this,_0x776ba);},_0x42011d);}[_0x4afe6d(0x3b5)](){const _0x41c007=_0x4afe6d;var _0x230d2a;let _0x272c5a=this['_configService'][_0x41c007(0x170)](_0x440361);return(_0x230d2a=_0x272c5a==null?void 0x0:_0x272c5a['sendChangesetTimeout'])==null?0x7d0:_0x230d2a;}[_0x4afe6d(0x1e7)](){const _0x4cab66=_0x4afe6d;throw Error(_0x4cab66(0x14a));}['_clearScheduledTask'](){const _0xd1b61d=_0x4afe6d;this[_0xd1b61d(0x295)]!=null&&(clearTimeout(this[_0xd1b61d(0x295)]),this[_0xd1b61d(0x295)]=null);}['_onConflict'](_0x2a0a8e){const _0x41f7f6=_0x4afe6d;return this[_0x41f7f6(0x24f)](),this[_0x41f7f6(0x19e)][_0x41f7f6(0x34e)](_0x4544f7,this['unitID'],this['type'],null,this[_0x41f7f6(0x286)],this['_handler'],_0x2a0a8e);}};_0x503465=_0x285c1b=_0x3bbaf2([_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x1afb9b)),_0x5c2cf(0x7,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x8,_0x54340d['ICommandService']),_0x5c2cf(0x9,_0x54340d['IConfigService']),_0x5c2cf(0xa,_0x510a16[_0x4afe6d(0x14c)]),_0x5c2cf(0xb,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0xc,_0x54340d['IUndoRedoService']),_0x5c2cf(0xd,(0x0,_0x54340d['Optional'])(_0x1cadf3))],_0x503465);let _0x4b8fc9=_0x1f9ff2=class extends _0x52be27{constructor(_0x587f7b,_0x413713,_0x8226c2,_0x173a9b,_0x2caa9c,_0x4ae761,_0x2ab88a,_0x5ec449,_0x583581,_0x25a56c,_0x5d01de){const _0x4220bd=_0x4afe6d;super(_0x587f7b,_0x413713,_0x8226c2,[],_0x173a9b,_0x2ab88a,_0x25a56c,_0x4ae761,_0x5d01de),this[_0x4220bd(0x19e)]=_0x2caa9c,this[_0x4220bd(0x30d)]=_0x5ec449,this[_0x4220bd(0x294)]=_0x583581,_0x1d93f6(this,_0x4220bd(0x35f),_0x4220bd(0x1ce)),_0x1d93f6(this,_0x4220bd(0x3ac),0x0),_0x1d93f6(this,_0x4220bd(0x126),0x0),_0x1d93f6(this,_0x4220bd(0x1bd),void 0x0),_0x1d93f6(this,'_sender',void 0x0);}[_0x4afe6d(0x452)](_0x31be19){const _0x38fbc0=_0x4afe6d;this[_0x38fbc0(0x24f)]();let _0x40f219=this[_0x38fbc0(0x19e)]['createInstance'](_0x34253f,this[_0x38fbc0(0x3b1)],this[_0x38fbc0(0x154)],this[_0x38fbc0(0x1a2)],[_0x31be19],this[_0x38fbc0(0x183)],this[_0x38fbc0(0x1bd)]);return _0x40f219[_0x38fbc0(0x10c)](),_0x40f219;}[_0x4afe6d(0x152)](_0x29a148){const _0x4d4390=_0x4afe6d;if(this[_0x4d4390(0x275)](_0x29a148))return this[_0x4d4390(0x24f)](),this[_0x4d4390(0x19e)][_0x4d4390(0x34e)](_0x5ac534,this[_0x4d4390(0x3b1)],this[_0x4d4390(0x154)],this[_0x4d4390(0x1a2)],[],null,[_0x29a148],this['_handler']);try{let _0x1b7953=this[_0x4d4390(0x294)]['transformChangesets']([_0x29a148],[this['_awaitingChangeset']],!0x1);if((0x0,_0x510a16['isTransformChangesetsSuccess'])(_0x1b7953)){let {c1Prime:_0x510510,c2Prime:_0x3e794b}=_0x1b7953;this[_0x4d4390(0x363)](_0x510510[0x0]),_0x3e794b[0x0][_0x4d4390(0x100)]=this['_getCurrentRevision'](),this[_0x4d4390(0x24f)]();let _0x2d7120=this[_0x4d4390(0x19e)][_0x4d4390(0x34e)](_0x1f9ff2,this['unitID'],this['type'],_0x3e794b[0x0],this[_0x4d4390(0x183)]);return _0x2d7120['_updateLocalCache'](),_0x2d7120;}throw _0x1b7953[_0x4d4390(0x106)];}catch(_0x48babb){return this[_0x4d4390(0x30d)][_0x4d4390(0x106)](_0x48babb),this[_0x4d4390(0x179)](!0x1);}}[_0x4afe6d(0x136)](_0x14fa3d){const _0x31794a=_0x4afe6d;this['_clearScheduledTask']();let _0x3e8211=this[_0x31794a(0x3a4)][_0x31794a(0x318)](this[_0x31794a(0x3b1)]);if(_0x14fa3d[_0x31794a(0x42f)]<=_0x3e8211)return this;if(this[_0x31794a(0x275)](_0x14fa3d))return this[_0x31794a(0x19e)][_0x31794a(0x34e)](_0x5ac534,this[_0x31794a(0x3b1)],this[_0x31794a(0x154)],this[_0x31794a(0x1a2)],[],_0x14fa3d[_0x31794a(0x42f)],[],this[_0x31794a(0x183)]);this[_0x31794a(0xf6)]();let _0x320c9a=this[_0x31794a(0x19e)][_0x31794a(0x34e)](_0x5d7f84,this[_0x31794a(0x3b1)],this[_0x31794a(0x154)],this['_handler']);return _0x320c9a[_0x31794a(0x10c)](),_0x320c9a;}[_0x4afe6d(0x1fa)](_0xa84426){const _0x1d9610=_0x4afe6d;return this[_0x1d9610(0x179)](!!(_0xa84426!=null&&_0xa84426[_0x1d9610(0x27e)]));}['onRemoteRetry'](_0x3a24eb){const _0x4c32d9=_0x4afe6d;return this[_0x4c32d9(0x126)]>_0x1d95e0?this[_0x4c32d9(0x3e7)]():(this['_resendTimer']=_0x6b50d3(this[_0x4c32d9(0x3ac)],{'timeout':this[_0x4c32d9(0x3ac)],'reqId':_0x3a24eb[_0x4c32d9(0x2ac)]}),this[_0x4c32d9(0x149)]=this['_resendTimer'][_0x4c32d9(0x40b)](({reqId:_0x530ddc,timeout:_0x53c102})=>{const _0x15ad5f=_0x4c32d9;this[_0x15ad5f(0x236)](_0x530ddc,_0x53c102);}),this);}[_0x4afe6d(0x3e7)](){const _0x37a033=_0x4afe6d;return this[_0x37a033(0x24f)](),this['_injector']['createInstance'](_0x5146de,this[_0x37a033(0x3b1)],this['type'],this[_0x37a033(0x1a2)],[],this[_0x37a033(0x183)]);}[_0x4afe6d(0x374)](){return this;}['resend'](){const _0x13b5d2=_0x4afe6d;this[_0x13b5d2(0x183)][_0x13b5d2(0x35b)](this[_0x13b5d2(0x1a2)]);}[_0x4afe6d(0x179)](_0x3638c4){const _0x35851c=_0x4afe6d;return this['_clearScheduledTask'](),this[_0x35851c(0x19e)][_0x35851c(0x34e)](_0x4544f7,this['unitID'],this[_0x35851c(0x154)],this['_awaitingChangeset'],[],this[_0x35851c(0x183)],_0x3638c4);}[_0x4afe6d(0x236)](_0x35ea2c,_0x47dfe7){const _0x4dff89=_0x4afe6d;var _0x25c422;_0x35ea2c===((_0x25c422=this['_awaitingChangeset'])==null?void 0x0:_0x25c422[_0x4dff89(0x2ac)])&&(this[_0x4dff89(0x1e7)](),this[_0x4dff89(0x3ac)]=_0x47dfe7===0x0?0x3e8:Math[_0x4dff89(0x378)](_0x47dfe7*0x2,_0xb28743),this[_0x4dff89(0x126)]+=this[_0x4dff89(0x3ac)]);}[_0x4afe6d(0x24f)](){const _0x50e266=_0x4afe6d;var _0xf2c38a;(_0xf2c38a=this[_0x50e266(0x149)])==null||_0xf2c38a[_0x50e266(0x187)](),this[_0x50e266(0x3ac)]=0x0,this[_0x50e266(0x126)]=0x0;}};_0x4b8fc9=_0x1f9ff2=_0x3bbaf2([_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x5,(0x0,_0x54340d['Inject'])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x6,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x7,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x8,_0x510a16['ITransformService']),_0x5c2cf(0x9,_0x54340d[_0x4afe6d(0x2a4)]),_0x5c2cf(0xa,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x4b8fc9);let _0x34253f=_0x537763=class extends _0x52be27{constructor(_0x41a0fd,_0xd2210a,_0xf6b264,_0x95ceeb,_0x12cf0b,_0x25e75e,_0x4726b5,_0x2cf23d,_0x488932,_0x2d19b9,_0x4efdc9,_0x30de24,_0x2cf960){const _0x17dc33=_0x4afe6d;super(_0x41a0fd,_0xd2210a,_0xf6b264,_0x95ceeb,_0x12cf0b,_0x488932,_0x30de24,_0x2cf23d,_0x2cf960),this[_0x17dc33(0x19e)]=_0x4726b5,this[_0x17dc33(0x30d)]=_0x2d19b9,this[_0x17dc33(0x294)]=_0x4efdc9,this[_0x17dc33(0x249)]=_0x2cf960,_0x1d93f6(this,'status',_0x17dc33(0x284)),_0x1d93f6(this,_0x17dc33(0x3ac),0x0),_0x1d93f6(this,'_maxTotalRetryTimeout',0x0),_0x1d93f6(this,_0x17dc33(0x1bd),void 0x0),_0x1d93f6(this,'_sender',void 0x0),_0x25e75e&&(this['_resendTimer']=_0x25e75e,this[_0x17dc33(0x149)]=this['_resendTimer'][_0x17dc33(0x40b)](({reqId:_0x4717b3,timeout:_0x41e252})=>{const _0x1dd951=_0x17dc33;this[_0x1dd951(0x236)](_0x4717b3,_0x41e252);}));}['appendMutation'](_0x5276d9){const _0x3b556b=_0x4afe6d;return this[_0x3b556b(0x286)][_0x3b556b(0x399)](_0x5276d9),this;}[_0x4afe6d(0x152)](_0x1a22b1){const _0x523deb=_0x4afe6d;if(this['_checkMissing'](_0x1a22b1))return this[_0x523deb(0x24f)](),this['_injector'][_0x523deb(0x34e)](_0x5ac534,this['unitID'],this[_0x523deb(0x154)],this['_awaitingChangeset'],this[_0x523deb(0x286)],null,[_0x1a22b1],this['_handler']);try{let _0xc61ecd=this[_0x523deb(0x294)][_0x523deb(0x1fd)]([_0x1a22b1],[this['_awaitingChangeset']],!0x1);if((0x0,_0x510a16[_0x523deb(0x3ea)])(_0xc61ecd)){let {c1Prime:_0x9fa5e2,c2Prime:_0x509fb3}=_0xc61ecd,_0x3e666a=this[_0x523deb(0x294)]['transformMutationsWithChangeset'](_0x9fa5e2[0x0],this[_0x523deb(0x286)]);if((0x0,_0x510a16[_0x523deb(0x36c)])(_0x3e666a)){let {c1Prime:_0x669d09,m2Prime:_0xe5271c}=_0x3e666a;return this[_0x523deb(0x363)](_0x669d09),_0x509fb3[0x0][_0x523deb(0x100)]=this[_0x523deb(0x142)](),this[_0x523deb(0x24f)](),this['_injector'][_0x523deb(0x34e)](_0x537763,this[_0x523deb(0x3b1)],this['type'],_0x509fb3[0x0],_0xe5271c,this[_0x523deb(0x183)],void 0x0);}throw _0x3e666a[_0x523deb(0x106)];}throw _0xc61ecd[_0x523deb(0x106)];}catch(_0x39c53a){return this['_logService'][_0x523deb(0x106)](_0x39c53a),this[_0x523deb(0x179)](!0x1);}}[_0x4afe6d(0x136)](_0x58e292){const _0xf1d884=_0x4afe6d;this[_0xf1d884(0x24f)]();let _0x3b1f6b=this[_0xf1d884(0x142)]();if(_0x58e292[_0xf1d884(0x42f)]<=_0x3b1f6b)return this;if(this[_0xf1d884(0x275)](_0x58e292))return this[_0xf1d884(0x19e)][_0xf1d884(0x34e)](_0x5ac534,this['unitID'],this[_0xf1d884(0x154)],this[_0xf1d884(0x1a2)],this['_pendingMutations'],_0x58e292[_0xf1d884(0x42f)],[],this[_0xf1d884(0x183)]);this[_0xf1d884(0xf6)]();let _0x4dbf0c=this[_0xf1d884(0x19e)][_0xf1d884(0x34e)](_0x503465,this[_0xf1d884(0x3b1)],this[_0xf1d884(0x154)],this[_0xf1d884(0x286)],this['_handler']);return _0x4dbf0c[_0xf1d884(0x159)](),_0x4dbf0c['_updateLocalCache'](),_0x4dbf0c;}[_0x4afe6d(0x1fa)](_0x322548){return this['_onConflict'](!!(_0x322548!=null&&_0x322548['isPermissionRej']));}[_0x4afe6d(0x122)](_0x17b1e8){const _0x24aad0=_0x4afe6d;return this['_maxTotalRetryTimeout']>_0x1d95e0?this[_0x24aad0(0x3e7)]():(this[_0x24aad0(0x1bd)]=_0x6b50d3(this['_resendTimeout'],{'timeout':this[_0x24aad0(0x3ac)],'reqId':_0x17b1e8[_0x24aad0(0x2ac)]}),this[_0x24aad0(0x149)]=this[_0x24aad0(0x1bd)][_0x24aad0(0x40b)](({reqId:_0x1d2393,timeout:_0xde3058})=>{const _0x1014b0=_0x24aad0;this[_0x1014b0(0x236)](_0x1d2393,_0xde3058);}),this);}['toggleOffline'](){const _0x5af144=_0x4afe6d;return this[_0x5af144(0x24f)](),this[_0x5af144(0x19e)][_0x5af144(0x34e)](_0x5146de,this[_0x5af144(0x3b1)],this[_0x5af144(0x154)],this[_0x5af144(0x1a2)],this[_0x5af144(0x286)],this[_0x5af144(0x183)]);}[_0x4afe6d(0x374)](){return this;}[_0x4afe6d(0x1e7)](){const _0x14fe13=_0x4afe6d;this[_0x14fe13(0x183)][_0x14fe13(0x35b)](this['_awaitingChangeset']);}['_onConflict'](_0x1e0d75){const _0x1f36bc=_0x4afe6d;return this[_0x1f36bc(0x24f)](),this[_0x1f36bc(0x19e)][_0x1f36bc(0x34e)](_0x4544f7,this[_0x1f36bc(0x3b1)],this[_0x1f36bc(0x154)],null,this[_0x1f36bc(0x286)],this['_handler'],_0x1e0d75);}[_0x4afe6d(0x236)](_0x52db25,_0x1f27c3){const _0x430020=_0x4afe6d;var _0x44ab21;_0x52db25===((_0x44ab21=this[_0x430020(0x1a2)])==null?void 0x0:_0x44ab21[_0x430020(0x2ac)])&&(this['resend'](),this[_0x430020(0x3ac)]=_0x1f27c3===0x0?0x3e8:Math['min'](_0x1f27c3*0x2,_0xb28743),this['_maxTotalRetryTimeout']+=this[_0x430020(0x3ac)]);}['_clearScheduledTask'](){const _0x29e1aa=_0x4afe6d;var _0x5553fb;(_0x5553fb=this['_sender'])==null||_0x5553fb['unsubscribe'](),this[_0x29e1aa(0x3ac)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x34253f=_0x537763=_0x3bbaf2([_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d['Injector'])),_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16['RevisionService'])),_0x5c2cf(0x8,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x9,_0x54340d['ILogService']),_0x5c2cf(0xa,_0x510a16['ITransformService']),_0x5c2cf(0xb,_0x54340d['IUndoRedoService']),_0x5c2cf(0xc,(0x0,_0x54340d['Optional'])(_0x1cadf3))],_0x34253f);let _0x4544f7=class extends _0x52be27{constructor(_0x362630,_0x10a1b1,_0x32723e,_0x23019f,_0x253e08,_0x5f2799=!0x1,_0x2aa092,_0x48a691,_0x200e0f,_0x20c534,_0x564d4b,_0x323ac6,_0x392ae4){const _0x24d74c=_0x4afe6d;super(_0x362630,_0x10a1b1,_0x32723e,_0x23019f,_0x253e08,_0x48a691,_0x200e0f,_0x20c534,_0x392ae4),this[_0x24d74c(0x2f4)]=_0x5f2799,this[_0x24d74c(0x40e)]=_0x2aa092,this[_0x24d74c(0x441)]=_0x564d4b,this[_0x24d74c(0x30b)]=_0x323ac6,this[_0x24d74c(0x249)]=_0x392ae4,_0x1d93f6(this,_0x24d74c(0x35f),'conflict'),this[_0x24d74c(0x353)](),this['_clearLocalCache'](),this[_0x24d74c(0x3d7)]();}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x4afe6d(0x136)](){return this;}[_0x4afe6d(0x1fa)](){return this;}[_0x4afe6d(0x122)](){return this;}[_0x4afe6d(0x3e7)](){return this;}[_0x4afe6d(0x374)](){return this;}[_0x4afe6d(0x1e7)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4afe6d(0x229)](){const _0x14b46d=_0x4afe6d;var _0x50f74a,_0x44f92f,_0x15d789;(_0x50f74a=this['_localCacheService'])==null||(_0x44f92f=_0x50f74a[_0x14b46d(0x3dd)])==null||(_0x44f92f=_0x44f92f['call'](_0x50f74a,this[_0x14b46d(0x3b1)],_0x14b46d(0x1b1)))==null||_0x44f92f['catch'](()=>void 0x0),(_0x15d789=this[_0x14b46d(0x1af)])==null||_0x15d789['updateOfflineData'](this['unitID'],this['type'],null,[]);}[_0x4afe6d(0x353)](){const _0x46fed4=_0x4afe6d;this[_0x46fed4(0x2f4)]?this['_collaborationUIEventService'][_0x46fed4(0x425)]({'id':'PERMISSION_DENIED'}):this['_collaborationUIEventService'][_0x46fed4(0x425)]({'id':'CONFLICT'});}[_0x4afe6d(0x3d7)](){const _0xd662c5=_0x4afe6d;this[_0xd662c5(0x40e)]['updatePermissionPoint'](new _0x2e3009[(_0xd662c5(0x143))](this['unitID'])['id'],!0x1);}};_0x4544f7=_0x3bbaf2([_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x2f3)])),_0x5c2cf(0x7,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x8,_0x54340d[_0x4afe6d(0x2a4)]),_0x5c2cf(0x9,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0xa,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x137)])),_0x5c2cf(0xb,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0xc,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x4544f7);let _0x5146de=class extends _0x52be27{constructor(_0x220df1,_0xea9d14,_0x10e41d,_0x24c66f,_0x2cfe2d,_0x1124ed,_0x58569b,_0xbc0706,_0x6b59c4,_0x52e85a){const _0x2d6431=_0x4afe6d;super(_0x220df1,_0xea9d14,_0x10e41d,_0x24c66f,_0x2cfe2d,_0xbc0706,_0x6b59c4,_0x58569b,_0x52e85a),this[_0x2d6431(0x19e)]=_0x1124ed,_0x1d93f6(this,_0x2d6431(0x35f),_0x2d6431(0x296));}[_0x4afe6d(0x452)](_0x4b43cf){const _0x4f8939=_0x4afe6d;return this['_pendingMutations'][_0x4f8939(0x399)](_0x4b43cf),this['_updateLocalCache'](),this;}[_0x4afe6d(0x152)](_0x15acdf){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x4afe6d(0x136)](){const _0x181f7e=_0x4afe6d;throw Error(_0x181f7e(0x108));}[_0x4afe6d(0x1fa)](){const _0x184f20=_0x4afe6d;throw Error(_0x184f20(0x43a));}['onRemoteRetry'](){return this;}[_0x4afe6d(0x3e7)](){return this;}[_0x4afe6d(0x374)](){const _0x54fc69=_0x4afe6d;let {_injector:_0xc7e7e9,_pendingMutations:_0x2dc94b,_awaitingChangeset:_0xe20854,unitID:_0x540489,_handler:_0x4e70ec,type:_0x3dcfab}=this,_0x300308=_0x1ae03f(_0xc7e7e9,_0x540489,_0x3dcfab,_0xe20854,_0x2dc94b,_0x4e70ec);return _0x300308 instanceof _0x503465?_0x300308[_0x54fc69(0x159)]():(_0x300308 instanceof _0x34253f||_0x300308 instanceof _0x4b8fc9)&&_0x300308[_0x54fc69(0x1e7)](),_0x300308;}[_0x4afe6d(0x1e7)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x5146de=_0x3bbaf2([_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d['Injector'])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x8,_0x54340d['IUndoRedoService']),_0x5c2cf(0x9,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x5146de);let _0x5ac534=class extends _0x52be27{constructor(_0x59051d,_0xb0d5e2,_0x4b0f35,_0x40cc32,_0x2a6baf,_0x4da4d0,_0x19457c,_0x57e762,_0x528850,_0x310d34,_0x4a06b9,_0x1ec9a8,_0x108c2a,_0x1a2b48){const _0x3868ff=_0x4afe6d;super(_0x59051d,_0xb0d5e2,_0x4b0f35,_0x40cc32,_0x19457c,_0x4a06b9,_0x1ec9a8,_0x528850,_0x1a2b48),this[_0x3868ff(0x3c4)]=_0x2a6baf,this[_0x3868ff(0x316)]=_0x4da4d0,this[_0x3868ff(0x19e)]=_0x57e762,this['_logService']=_0x310d34,this['_transformService']=_0x108c2a,this[_0x3868ff(0x249)]=_0x1a2b48,_0x1d93f6(this,_0x3868ff(0x35f),_0x3868ff(0x1da));}[_0x4afe6d(0x109)](_0x5a811f){const _0x3f6e0f=_0x4afe6d;try{if(this[_0x3f6e0f(0x405)](_0x5a811f)[_0x3f6e0f(0x385)])throw Error(_0x3f6e0f(0x33a));if(this[_0x3f6e0f(0x405)]([...this[_0x3f6e0f(0x316)]]['sort']((_0x34fdb8,_0x5c98ca)=>_0x34fdb8['revision']-_0x5c98ca['revision']))[_0x3f6e0f(0x385)])return this[_0x3f6e0f(0x316)]=[],this[_0x3f6e0f(0x10c)](),this[_0x3f6e0f(0x183)]['onMissingChangesets']({'from':this[_0x3f6e0f(0x142)](),'to':0x0}),this;let _0xb8cecc=this[_0x3f6e0f(0x1a2)],_0x54743b=this[_0x3f6e0f(0x286)],_0x4d31c2;if(_0xb8cecc&&_0x54743b['length']!==0x0)_0x4d31c2=this[_0x3f6e0f(0x19e)][_0x3f6e0f(0x34e)](_0x34253f,this['unitID'],this[_0x3f6e0f(0x154)],_0xb8cecc,_0x54743b,this[_0x3f6e0f(0x183)],void 0x0);else{if(_0xb8cecc&&_0x54743b[_0x3f6e0f(0x414)]===0x0)_0xb8cecc[_0x3f6e0f(0x100)]=this[_0x3f6e0f(0x142)](),_0x4d31c2=this[_0x3f6e0f(0x19e)]['createInstance'](_0x4b8fc9,this[_0x3f6e0f(0x3b1)],this[_0x3f6e0f(0x154)],_0xb8cecc,this['_handler']);else{if(_0x54743b[_0x3f6e0f(0x414)]!==0x0){let _0x1ef592=this[_0x3f6e0f(0x19e)]['createInstance'](_0x503465,this['unitID'],this[_0x3f6e0f(0x154)],_0x54743b,this['_handler']);_0x1ef592[_0x3f6e0f(0x159)](),_0x4d31c2=_0x1ef592;}else _0x4d31c2=this[_0x3f6e0f(0x19e)][_0x3f6e0f(0x34e)](_0x5d7f84,this[_0x3f6e0f(0x3b1)],this[_0x3f6e0f(0x154)],this[_0x3f6e0f(0x183)]);}}return _0x4d31c2['_updateLocalCache'](),_0x4d31c2;}catch(_0x117faf){return this[_0x3f6e0f(0x30d)][_0x3f6e0f(0x106)](_0x3f6e0f(0x232),'failed\x20to\x20apply\x20missed\x20changesets!',_0x117faf),this[_0x3f6e0f(0x19e)][_0x3f6e0f(0x34e)](_0x4544f7,this['unitID'],this[_0x3f6e0f(0x154)],this['_awaitingChangeset'],this[_0x3f6e0f(0x286)],this[_0x3f6e0f(0x183)],!0x1);}}[_0x4afe6d(0x405)](_0x5bf641){const _0x568463=_0x4afe6d;this[_0x568463(0x3e5)]();for(let _0xe60d5b=0x0;_0xe60d5b<_0x5bf641['length'];_0xe60d5b++){let _0x3520bf=_0x5bf641[_0xe60d5b],_0x40b953=this[_0x568463(0x142)]();if(!(_0x3520bf[_0x568463(0x42f)]<=_0x40b953)){if(_0x3520bf[_0x568463(0x42f)]>_0x40b953+0x1)return{'missingChangesets':!0x0};if(this[_0x568463(0x11a)](_0x3520bf)){this[_0x568463(0x41e)]();continue;}this[_0x568463(0x3ff)](_0x3520bf),this[_0x568463(0x3e5)]();}}return{'missingChangesets':!0x1};}[_0x4afe6d(0x3ff)](_0x1894de){const _0x19af52=_0x4afe6d;let _0x1604b0=_0x1894de,_0x1008a1=this[_0x19af52(0x1a2)];if(_0x1008a1){let _0x43bcdc=this[_0x19af52(0x294)]['transformChangesets']([_0x1894de],[_0x1008a1],!0x1);if(!(0x0,_0x510a16[_0x19af52(0x3ea)])(_0x43bcdc))throw _0x43bcdc[_0x19af52(0x106)];_0x1604b0=_0x43bcdc[_0x19af52(0x1d5)][0x0],_0x1008a1=_0x43bcdc['c2Prime'][0x0];}let _0x101661=this[_0x19af52(0x286)];if(_0x101661[_0x19af52(0x414)]){let _0x18e043=this[_0x19af52(0x294)]['transformMutationsWithChangeset'](_0x1604b0,_0x101661);if(!(0x0,_0x510a16[_0x19af52(0x36c)])(_0x18e043))throw _0x18e043['error'];_0x1604b0=_0x18e043['c1Prime'],_0x101661=_0x18e043[_0x19af52(0x422)];}this['_executeRemoteChangeset'](_0x1604b0),_0x1008a1&&(_0x1008a1[_0x19af52(0x100)]=this['_getCurrentRevision']()),this[_0x19af52(0x1a2)]=_0x1008a1,this['_pendingMutations']=_0x101661;}[_0x4afe6d(0x3e5)](){const _0x3d720c=_0x4afe6d;if(!this[_0x3d720c(0x1a2)]||this[_0x3d720c(0x3c4)]==null)return;let _0x4fcd8e=this[_0x3d720c(0x142)]();if(this[_0x3d720c(0x3c4)]<=_0x4fcd8e)throw Error(_0x3d720c(0x1c4)+this[_0x3d720c(0x3c4)]+'.');this['_acknowledgedAwaitingRevision']===_0x4fcd8e+0x1&&this['_acknowledgeAwaiting']();}[_0x4afe6d(0x41e)](){const _0x13c561=_0x4afe6d;this[_0x13c561(0xf6)](),this[_0x13c561(0x1a2)]=null,this[_0x13c561(0x3c4)]=null;}[_0x4afe6d(0x11a)](_0xe9c4bb){const _0x3c02f2=_0x4afe6d;let _0x365118=this[_0x3c02f2(0x1a2)];return!_0x365118||!_0x365118[_0x3c02f2(0x373)]||_0x365118[_0x3c02f2(0x2ac)]===null||_0x365118['reqId']===void 0x0?!0x1:_0xe9c4bb['unitID']===_0x365118[_0x3c02f2(0x3b1)]&&_0xe9c4bb[_0x3c02f2(0x373)]===_0x365118[_0x3c02f2(0x373)]&&_0xe9c4bb[_0x3c02f2(0x2ac)]===_0x365118[_0x3c02f2(0x2ac)];}[_0x4afe6d(0x1e7)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4afe6d(0x452)](_0x1ff8fb){const _0xe48567=_0x4afe6d;return this[_0xe48567(0x286)][_0xe48567(0x399)](_0x1ff8fb),this;}['onRemoteChangeset'](_0x58106b){const _0x98e155=_0x4afe6d;return this['_queuedRemoteChangesets'][_0x98e155(0x399)](_0x58106b),this;}['onRemoteAck'](_0x3956f8){const _0x243a33=_0x4afe6d;if(this[_0x243a33(0x1a2)]){let _0x55b801=this[_0x243a33(0x142)]();return _0x3956f8['revision']<=_0x55b801||(_0x55b801+0x1===_0x3956f8[_0x243a33(0x42f)]?(this['_incrementRevisionNumber'](),this['_awaitingChangeset']=null,this['_acknowledgedAwaitingRevision']=null):this['_acknowledgedAwaitingRevision']=_0x3956f8[_0x243a33(0x42f)]),this;}if(_0x3956f8[_0x243a33(0x42f)]<=this[_0x243a33(0x142)]())return this;throw Error(_0x243a33(0x32e));}[_0x4afe6d(0x1fa)](_0x5d2ba0){const _0xbaa5b2=_0x4afe6d;return this[_0xbaa5b2(0x179)](!!(_0x5d2ba0!=null&&_0x5d2ba0[_0xbaa5b2(0x27e)]));}[_0x4afe6d(0x122)](){return this;}['toggleOffline'](){const _0x1a6e5e=_0x4afe6d;return this[_0x1a6e5e(0x19e)][_0x1a6e5e(0x34e)](_0x5146de,this[_0x1a6e5e(0x3b1)],this['type'],this[_0x1a6e5e(0x1a2)],this['_pendingMutations'],this[_0x1a6e5e(0x183)]);}['toggleOnline'](){return this;}[_0x4afe6d(0x179)](_0x165440){const _0x17a589=_0x4afe6d;return this['_injector'][_0x17a589(0x34e)](_0x4544f7,this[_0x17a589(0x3b1)],this['type'],this[_0x17a589(0x1a2)],this[_0x17a589(0x286)],this['_handler'],_0x165440);}};_0x5ac534=_0x3bbaf2([_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x8,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x9,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d[_0x4afe6d(0x2a4)]),_0x5c2cf(0xc,_0x510a16[_0x4afe6d(0x14c)]),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x5ac534);function _0x1ae03f(_0x2a6474,_0x16a96d,_0x26fed1,_0x20a4ed,_0x5d53f9,_0x963494){const _0x20e16a=_0x4afe6d;return _0x20a4ed&&_0x5d53f9[_0x20e16a(0x414)]?_0x2a6474[_0x20e16a(0x34e)](_0x34253f,_0x16a96d,_0x26fed1,_0x20a4ed,_0x5d53f9,_0x963494,void 0x0):_0x20a4ed?_0x2a6474[_0x20e16a(0x34e)](_0x4b8fc9,_0x16a96d,_0x26fed1,_0x20a4ed,_0x963494):_0x5d53f9['length']?_0x2a6474['createInstance'](_0x503465,_0x16a96d,_0x26fed1,_0x5d53f9,_0x963494):_0x2a6474[_0x20e16a(0x34e)](_0x5d7f84,_0x16a96d,_0x26fed1,_0x963494);}let _0x558136=class extends _0x54340d['RxDisposable']{get[_0x4afe6d(0x2ab)](){const _0xe69809=_0x4afe6d;return this[_0xe69809(0x24a)];}constructor(_0x1e8a02,_0x340baa,_0x14cb7e,_0x3814f0,_0x2b0df9,_0x36e782,_0x5f42be,_0x5b3c45,_0x259364,_0x3f0a7c,_0x52e5c9,_0x26f0ff,_0x2859a5,_0x30884a){const _0x578ed2=_0x4afe6d;super(),this['unitID']=_0x1e8a02,this[_0x578ed2(0x26a)]=_0x340baa,this[_0x578ed2(0x1ae)]=_0x14cb7e,this[_0x578ed2(0x19e)]=_0x3814f0,this['_compressMutationService']=_0x2b0df9,this['_localeService']=_0x36e782,this['_revisionService']=_0x5f42be,this[_0x578ed2(0x34c)]=_0x5b3c45,this[_0x578ed2(0x18f)]=_0x259364,this[_0x578ed2(0x30d)]=_0x3f0a7c,this[_0x578ed2(0x24b)]=_0x52e5c9,this[_0x578ed2(0x40e)]=_0x26f0ff,this[_0x578ed2(0x39f)]=_0x2859a5,this[_0x578ed2(0x1af)]=_0x30884a,_0x1d93f6(this,'_state$',new _0x501c4e['BehaviorSubject'](null)),_0x1d93f6(this,_0x578ed2(0x3ad),this[_0x578ed2(0x305)][_0x578ed2(0x371)]()),_0x1d93f6(this,_0x578ed2(0x24a),void 0x0),_0x1d93f6(this,_0x578ed2(0x32b),!0x1),_0x1d93f6(this,'_changesetSessionId',''),_0x1d93f6(this,'_changesetReqId',0x0),_0x1d93f6(this,_0x578ed2(0xfd),this['state$'][_0x578ed2(0x33c)]((0x0,_0x501c4e[_0x578ed2(0x299)])(_0x3e2c78=>_0x3e2c78?_0x3e2c78[_0x578ed2(0x35f)]:'offline'),(0x0,_0x501c4e[_0x578ed2(0x195)])({'bufferSize':0x1,'refCount':!0x0}))),_0x1d93f6(this,_0x578ed2(0x1ee),!0x1),_0x1d93f6(this,_0x578ed2(0x2b4),[]);}async['init'](){const _0x4169cf=_0x4afe6d;if(this[_0x4169cf(0x2ab)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x4afe6d(0x209)](){const _0x2e7cdc=_0x4afe6d;return this[_0x2e7cdc(0x32b)]=!0x0,(0x0,_0x54340d[_0x2e7cdc(0x11e)])(()=>{const _0x2178d5=_0x2e7cdc;this[_0x2178d5(0x32b)]=!0x1,this[_0x2178d5(0x346)]();});}[_0x4afe6d(0x34b)](_0x523f05){const _0x4bac56=_0x4afe6d;this[_0x4bac56(0x280)](_0x523f05);}[_0x4afe6d(0x124)](_0x39a750){const _0x284240=_0x4afe6d;this['_state']=_0x39a750,this['_state$'][_0x284240(0x16a)](_0x39a750);}async[_0x4afe6d(0x172)](){const _0x347330=_0x4afe6d;if(this[_0x347330(0x124)](await this[_0x347330(0x145)]()),this[_0x347330(0x39f)]){var _0x3b2179;(_0x3b2179=this[_0x347330(0x39f)])==null||_0x3b2179['editingUnit'](this[_0x347330(0x3b1)]),this[_0x347330(0x13b)](this['_singleActiveUnitService'][_0x347330(0x301)](this[_0x347330(0x3b1)])[_0x347330(0x40b)](_0x4913c2=>{const _0x397c07=_0x347330;this[_0x397c07(0x30d)][_0x397c07(0x103)](_0x397c07(0x39b),'editing\x20status\x20changed\x20to',_0x4913c2),_0x4913c2===0x1?(this[_0x397c07(0x34c)][_0x397c07(0x425)]({'id':'OTHER_CLIENT_EDITING'}),this[_0x397c07(0x40e)][_0x397c07(0x2b1)](new _0x2e3009[(_0x397c07(0x143))](this[_0x397c07(0x3b1)])['id'],!0x1),this[_0x397c07(0x40e)][_0x397c07(0x336)](!0x1)):(this['_permissionService'][_0x397c07(0x2b1)](new _0x2e3009[(_0x397c07(0x143))](this[_0x397c07(0x3b1)])['id'],!0x0),this[_0x397c07(0x40e)][_0x397c07(0x336)](!0x0));}));}let _0x537126=!0x1;return this['disposeWithMe'](this['session']['sessionStatus$'][_0x347330(0x40b)](_0xcb326d=>{const _0x2ad3c4=_0x347330;_0xcb326d===0x3?this[_0x2ad3c4(0x327)](_0x537126):_0xcb326d===0x2&&(_0x537126=!0x0,this[_0x2ad3c4(0x340)]());})),this[_0x347330(0x13b)](this[_0x347330(0x26a)][_0x347330(0x2c0)]['subscribe'](_0x27cc65=>{const _0x1d360a=_0x347330;try{switch(_0x27cc65[_0x1d360a(0x10f)]){case _0x510a16['CollaborationEvent'][_0x1d360a(0x1f7)]:this['_onRemoteChangeset']((0x0,_0x510a16[_0x1d360a(0x1a9)])(_0x27cc65[_0x1d360a(0x2b8)]));break;case _0x510a16[_0x1d360a(0x17d)][_0x1d360a(0x1b9)]:this['_onRemoteACK'](_0x27cc65['data']);break;case _0x510a16['CollaborationEvent'][_0x1d360a(0x190)]:this['_onRemoteRejected']();break;case _0x510a16['CollaborationEvent'][_0x1d360a(0x409)]:this[_0x1d360a(0x28c)](_0x27cc65[_0x1d360a(0x2b8)]);break;case _0x510a16['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:this[_0x1d360a(0x365)](_0x27cc65[_0x1d360a(0x2b8)][_0x1d360a(0x114)][_0x1d360a(0x299)](_0x7da5f4=>(0x0,_0x510a16[_0x1d360a(0x1a9)])(_0x7da5f4)));break;case _0x510a16['CollaborationEvent']['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x510a16[_0x1d360a(0x17d)]['UNISCRIPT_RUN']:break;}}catch(_0x540a2e){throw console[_0x1d360a(0x106)]('Error\x20on\x20receiving\x20event',_0x540a2e),_0x540a2e;}})),this[_0x347330(0x24a)];}['_unlockTransition'](){const _0x303aee=_0x4afe6d;this[_0x303aee(0x1ee)]=!0x1;}[_0x4afe6d(0x36d)](){const _0xbf3ba4=_0x4afe6d;if(this[_0xbf3ba4(0x1ee)])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0xbf3ba4(0x1ee)]=!0x0;}[_0x4afe6d(0x280)](_0x1497c6){const _0x122c95=_0x4afe6d;this[_0x122c95(0x36d)](),this['_updateState'](this[_0x122c95(0x24a)]['appendMutation'](_0x1497c6)),this[_0x122c95(0x2e9)]();}[_0x4afe6d(0x2e1)](_0x3ceb46){const _0x47e9e6=_0x4afe6d;if(!(_0x3ceb46[_0x47e9e6(0x42f)]<=this[_0x47e9e6(0x3a4)][_0x47e9e6(0x318)](this[_0x47e9e6(0x3b1)]))){if(this[_0x47e9e6(0x32b)]){this['_remoteChangesetQueue'][_0x47e9e6(0x399)](_0x3ceb46);return;}this[_0x47e9e6(0x356)](_0x3ceb46);}}[_0x4afe6d(0x346)](){const _0x17a6ba=_0x4afe6d;this[_0x17a6ba(0x2b4)]['forEach'](_0x35e1eb=>this['_applyRemoteChangeset'](_0x35e1eb)),this[_0x17a6ba(0x2b4)]=[];}[_0x4afe6d(0x356)](_0x22fbad){const _0x412aab=_0x4afe6d;let _0x2cd076=this['_compressMutationService'][_0x412aab(0x141)][_0x412aab(0x2d0)](this[_0x412aab(0x321)]['interceptor'][_0x412aab(0x1a0)]()[_0x412aab(0x3cb)])(_0x22fbad[_0x412aab(0x29a)],null)||_0x22fbad[_0x412aab(0x29a)],_0x5d0ddb={..._0x22fbad,'mutations':_0x2cd076};this[_0x412aab(0x36d)](),this[_0x412aab(0x124)](this['_state'][_0x412aab(0x152)](_0x5d0ddb)),this[_0x412aab(0x2e9)]();}[_0x4afe6d(0x16e)](_0x17b44c){const _0x7405dc=_0x4afe6d;this['_lockTransition'](),this[_0x7405dc(0x124)](this[_0x7405dc(0x24a)][_0x7405dc(0x136)](_0x17b44c)),this[_0x7405dc(0x2e9)]();}['_onRemoteRejected'](_0x3e31c0){const _0x5a1544=_0x4afe6d;this[_0x5a1544(0x36d)](),this['_updateState'](this['_state'][_0x5a1544(0x1fa)](_0x3e31c0)),this['_unlockTransition']();}[_0x4afe6d(0x28c)](_0x141699){const _0x4998d1=_0x4afe6d;this[_0x4998d1(0x36d)](),this['_updateState'](this[_0x4998d1(0x24a)][_0x4998d1(0x122)](_0x141699)),this[_0x4998d1(0x2e9)]();}['_onFetchMissResult'](_0x1a5858){const _0x5adeb7=_0x4afe6d;if(!(this[_0x5adeb7(0x24a)]instanceof _0x5ac534))throw TypeError(_0x5adeb7(0x1a8));let _0x4b3709=_0x1a5858['map'](_0x4bda4f=>{const _0x1cb47d=_0x5adeb7;let _0x152fef=this['_compressMutationService'][_0x1cb47d(0x141)][_0x1cb47d(0x2d0)](this['_compressMutationService'][_0x1cb47d(0x141)]['getInterceptPoints']()[_0x1cb47d(0x3cb)])(_0x4bda4f[_0x1cb47d(0x29a)],null)||_0x4bda4f[_0x1cb47d(0x29a)];return{..._0x4bda4f,'mutations':_0x152fef};});this[_0x5adeb7(0x36d)](),this['_updateState'](this[_0x5adeb7(0x24a)][_0x5adeb7(0x109)](_0x4b3709)),this['_unlockTransition']();}['_toggleOffline'](){const _0x52e3e1=_0x4afe6d;this[_0x52e3e1(0x36d)](),this[_0x52e3e1(0x124)](this[_0x52e3e1(0x24a)]['toggleOffline']()),this['_unlockTransition']();}[_0x4afe6d(0x327)](_0x3b5c73=!0x1){const _0x53d98b=_0x4afe6d;this['_lockTransition'](),this['_updateState'](this['_state'][_0x53d98b(0x374)]()),this['_unlockTransition']();let _0x37672d=this[_0x53d98b(0x24a)];_0x3b5c73&&_0x37672d instanceof _0x5d7f84&&(this[_0x53d98b(0x36d)](),this['_updateState'](_0x37672d['fetchMiss']()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x400a9f=>{const _0x239df5=_0x4f14;this['session']['sessionStatus$'][_0x239df5(0x33c)]((0x0,_0x501c4e[_0x239df5(0x250)])(0x1))['subscribe'](async _0x5a9b70=>{const _0x3c9407=_0x239df5;_0x400a9f(await this[_0x3c9407(0x241)](_0x5a9b70===0x3));});});}[_0x4afe6d(0x2bb)](){const _0x6cdc6b=_0x4afe6d;let _0x5a002e=this[_0x6cdc6b(0x3b1)];return{'onStateChange':(_0x3906cd,_0x1ed505)=>{const _0x1c2c3e=_0x6cdc6b;if(_0x3906cd!==this['_state'])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x3906cd['status']+_0x1c2c3e(0x1e4)+_0x1ed505[_0x1c2c3e(0x35f)]+_0x1c2c3e(0x387)+this[_0x1c2c3e(0x24a)][_0x1c2c3e(0x35f)]);this['_updateState'](_0x1ed505);},'onSendChangeset':_0x2f464b=>{const _0x4210b9=_0x6cdc6b;_0x2f464b[_0x4210b9(0x373)]||(_0x2f464b['sid']=this['_changesetSessionId'],_0x2f464b[_0x4210b9(0x2ac)]=++this[_0x4210b9(0x3f4)]);let _0x585d90={'eventID':_0x510a16[_0x4210b9(0x17d)][_0x4210b9(0x454)],'data':{'unitID':_0x2f464b[_0x4210b9(0x3b1)],'unitType':this[_0x4210b9(0x1ae)],'changeset':_0x2f464b,'memberID':this[_0x4210b9(0x26a)]['getMemberID']()}};this['session'][_0x4210b9(0x255)](_0x585d90,this[_0x4210b9(0x3b1)]);},'onMissingChangesets':({from:_0x422f1f,to:_0x528080})=>{const _0x4342fc=_0x6cdc6b;this['_logService'][_0x4342fc(0x103)](_0x4342fc(0x39b),_0x4342fc(0x237)+_0x422f1f+_0x4342fc(0x2ed)+_0x528080);let _0x3f4eba={'eventID':_0x510a16[_0x4342fc(0x17d)][_0x4342fc(0x44f)],'data':{'unitID':_0x5a002e,'unitType':this[_0x4342fc(0x1ae)],'from':_0x422f1f,'to':_0x528080}};this['session'][_0x4342fc(0x255)](_0x3f4eba,this[_0x4342fc(0x3b1)]);}};}async[_0x4afe6d(0x241)](_0x5bb270){const _0xa74150=_0x4afe6d;var _0x18b381,_0x429d92,_0x573998;let _0x4841d2=await((_0x18b381=this[_0xa74150(0x1af)])==null?void 0x0:_0x18b381[_0xa74150(0x447)](this['unitID'])),_0x58a909=(_0x429d92=_0x4841d2==null?void 0x0:_0x4841d2[_0xa74150(0x29a)])==null?[]:_0x429d92,_0x1668e3=(_0x573998=_0x4841d2==null?void 0x0:_0x4841d2['awaitingChangeset'])==null?null:_0x573998,_0x50526c=!!(_0x1668e3!=null&&_0x1668e3['sid'])&&!!(_0x1668e3!=null&&_0x1668e3[_0xa74150(0x2ac)]);this[_0xa74150(0x423)]=_0x50526c?_0x1668e3[_0xa74150(0x373)]:(0x0,_0x510a16['uuidv4'])(),this[_0xa74150(0x3f4)]=_0x50526c?_0x1668e3[_0xa74150(0x2ac)]:0x0;let _0x13f51c=this['unitID'];try{this[_0xa74150(0x3db)](_0x1668e3,_0x58a909);}catch(_0x2de25e){this[_0xa74150(0x30d)][_0xa74150(0x106)](_0x2de25e);}let _0x2c981f=this[_0xa74150(0x2bb)]();if(_0x5bb270){let _0x34e962=_0x1ae03f(this[_0xa74150(0x19e)],_0x13f51c,this[_0xa74150(0x1ae)],_0x1668e3,_0x58a909,_0x2c981f);return _0x34e962 instanceof _0x503465?_0x34e962[_0xa74150(0x159)]():(_0x34e962 instanceof _0x34253f||_0x34e962 instanceof _0x4b8fc9)&&_0x34e962[_0xa74150(0x1e7)](),_0x34e962;}return this['_injector'][_0xa74150(0x34e)](_0x5146de,_0x13f51c,this[_0xa74150(0x1ae)],_0x1668e3,_0x58a909,_0x2c981f);}[_0x4afe6d(0x3db)](_0x15152b,_0x4c5603){const _0x55e3f0=_0x4afe6d;var _0x1871b8,_0x533d96;let _0x3399f5=this['_compressMutationService'][_0x55e3f0(0x141)][_0x55e3f0(0x2d0)](this[_0x55e3f0(0x321)][_0x55e3f0(0x141)]['getInterceptPoints']()[_0x55e3f0(0x3cb)]);(_0x1871b8=_0x3399f5((_0x15152b==null?void 0x0:_0x15152b[_0x55e3f0(0x29a)])||[],null))==null||_0x1871b8['forEach'](_0x451712=>this[_0x55e3f0(0x24b)][_0x55e3f0(0x3e8)](_0x451712['id'],_0x451712[_0x55e3f0(0x311)])),(_0x533d96=_0x3399f5(_0x4c5603||[],null))==null||_0x533d96[_0x55e3f0(0x3a3)](_0x4eb89e=>this[_0x55e3f0(0x24b)]['executeCommand'](_0x4eb89e['id'],_0x4eb89e[_0x55e3f0(0x311)]));}};_0x558136=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x44e)])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x137)])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,(0x0,_0x54340d['Inject'])(_0x18b525)),_0x5c2cf(0x8,_0x54340d['IUniverInstanceService']),_0x5c2cf(0x9,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d[_0x4afe6d(0x2f3)]),_0x5c2cf(0xc,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x54d1b8)),_0x5c2cf(0xd,(0x0,_0x54340d['Optional'])(_0x1cadf3))],_0x558136);let _0x4e92fa=class extends _0x558136{constructor(_0x26245f,_0x51bf51,_0x4cb124,_0x4bb3ed,_0x1f80d3,_0x2abd41,_0x5f4e02,_0x4b23b2,_0x1c0239,_0x578c06,_0x337d50,_0x4c556d,_0x2424ca,_0x2d3916,_0x3f79c3){const _0x238dc0=_0x4afe6d;super(_0x26245f,_0x4cb124,_0x51bf51,_0x4bb3ed,_0x1f80d3,_0x2abd41,_0x5f4e02,_0x4b23b2,_0x1c0239,_0x578c06,_0x337d50,_0x4c556d,_0x2d3916,_0x3f79c3),this[_0x238dc0(0x3b1)]=_0x26245f,this[_0x238dc0(0x154)]=_0x51bf51,this[_0x238dc0(0x215)]=_0x2424ca,_0x1d93f6(this,_0x238dc0(0x150),null);}[_0x4afe6d(0x15f)](_0x5b0885){const _0x391847=_0x4afe6d;this[_0x391847(0x150)]=_0x5b0885;}['dispose'](){const _0x4cd165=_0x4afe6d;this[_0x4cd165(0x150)]=null,super['dispose']();}[_0x4afe6d(0x2bb)](){const _0x5da029=_0x4afe6d;let _0x309c79=super[_0x5da029(0x2bb)]();return _0x309c79['onTransformIME']=_0x5e6321=>{const _0x1578fc=_0x5da029;var _0x332d7b,_0x287efb;return(_0x332d7b=this[_0x1578fc(0x150)])==null||(_0x287efb=_0x332d7b[_0x1578fc(0x2dd)])==null?void 0x0:_0x287efb['call'](_0x332d7b,_0x5e6321);},_0x309c79[_0x5da029(0x34d)]=_0x72837f=>{const _0x2b8c86=_0x5da029;var _0x2af6a1,_0x5985cc;return(_0x2af6a1=this[_0x2b8c86(0x150)])==null||(_0x5985cc=_0x2af6a1[_0x2b8c86(0x34d)])==null?void 0x0:_0x5985cc[_0x2b8c86(0x178)](_0x2af6a1,_0x72837f);},_0x309c79[_0x5da029(0x3a5)]=_0x4036a7=>{const _0x1f9707=_0x5da029;var _0x4f19ab,_0x34c9b5;return(_0x4f19ab=this['_handlerCallback'])==null||(_0x34c9b5=_0x4f19ab[_0x1f9707(0x3a5)])==null?void 0x0:_0x34c9b5[_0x1f9707(0x178)](_0x4f19ab,_0x4036a7);},_0x309c79['onSyncEditingCollabCursor']=_0x10dd2c=>{const _0x5a6dc0=_0x5da029;var _0x1ace54,_0x370f98;return(_0x1ace54=this[_0x5a6dc0(0x150)])==null||(_0x370f98=_0x1ace54[_0x5a6dc0(0x38f)])==null?void 0x0:_0x370f98[_0x5a6dc0(0x178)](_0x1ace54,_0x10dd2c);},_0x309c79[_0x5da029(0x2a5)]=_0x2dcbe5=>{const _0x4e1558=_0x5da029;var _0x16a892,_0x18eecd,_0x51f0a7;return(_0x16a892=(_0x18eecd=this[_0x4e1558(0x150)])==null||(_0x51f0a7=_0x18eecd[_0x4e1558(0x2a5)])==null?void 0x0:_0x51f0a7[_0x4e1558(0x178)](_0x18eecd,_0x2dcbe5))==null?_0x2dcbe5:_0x16a892;},_0x309c79[_0x5da029(0x3be)]=_0x4e0580=>{const _0xe1ce0a=_0x5da029;var _0x4087b7,_0xe093db,_0x4f1b07;return(_0x4087b7=(_0xe093db=this[_0xe1ce0a(0x150)])==null||(_0x4f1b07=_0xe093db[_0xe1ce0a(0x3be)])==null?void 0x0:_0x4f1b07['call'](_0xe093db,_0x4e0580))==null?_0x4e0580:_0x4087b7;},_0x309c79;}async[_0x4afe6d(0x172)](){const _0x3942dc=_0x4afe6d;let _0xa40c12=await super[_0x3942dc(0x172)]();return this[_0x3942dc(0x13b)](this[_0x3942dc(0x215)][_0x3942dc(0x29e)][_0x3942dc(0x40b)](_0x2ee6be=>{const _0x917880=_0x3942dc;if(_0x2ee6be==null||_0x2ee6be[_0x917880(0x3a1)]!==this[_0x917880(0x3b1)])return;let {commandId:_0x1f87cb,redoState:_0x5e9320,unitId:_0x440c04}=_0x2ee6be,_0xe23678={'id':_0x1f87cb,'type':_0x54340d[_0x917880(0x2b5)][_0x917880(0x3da)],'params':{'unitId':_0x440c04,'actions':_0x5e9320[_0x917880(0x25c)],'textRanges':null}};this[_0x917880(0x280)](_0xe23678);})),this[_0x3942dc(0x13b)](this[_0x3942dc(0x24b)][_0x3942dc(0x198)]((_0x406c5e,_0x8952cb)=>{const _0x5ea7c5=_0x3942dc;if(_0x406c5e[_0x5ea7c5(0x154)]!==_0x54340d[_0x5ea7c5(0x2b5)][_0x5ea7c5(0x3da)]||_0x8952cb!=null&&_0x8952cb[_0x5ea7c5(0x2d9)]||_0x8952cb!=null&&_0x8952cb[_0x5ea7c5(0x453)]||_0x406c5e['id']===_0x55be24[_0x5ea7c5(0x221)]['id'])return;let _0x237f82=_0x406c5e[_0x5ea7c5(0x311)];if((_0x237f82==null?void 0x0:_0x237f82[_0x5ea7c5(0x3a1)])!==this[_0x5ea7c5(0x3b1)])return;let _0x1222f7=_0x406c5e,_0x4bbb92=this[_0x5ea7c5(0x321)]['interceptor'][_0x5ea7c5(0x2d0)](this[_0x5ea7c5(0x321)][_0x5ea7c5(0x141)][_0x5ea7c5(0x1a0)]()[_0x5ea7c5(0x344)])([_0x1222f7],this[_0x5ea7c5(0x18f)])||[_0x1222f7];this[_0x5ea7c5(0x280)](_0x4bbb92[0x0]);})),_0xa40c12;}};_0x4e92fa=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d['Inject'])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x44e)])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x137)])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16['RevisionService'])),_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0x8,_0x54340d['IUniverInstanceService']),_0x5c2cf(0x9,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d[_0x4afe6d(0x2f3)]),_0x5c2cf(0xc,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x55be24[_0x4afe6d(0x3c6)])),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x54d1b8)),_0x5c2cf(0xe,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x4e92fa);let _0x315430=class extends _0x558136{constructor(_0x4fdd35,_0x5ecd11,_0x2a0100,_0x343b18,_0xf5ea5d,_0x2dfdea,_0xc25013,_0x4e8780,_0x5b81bc,_0x6cc03f,_0x1cfe3f,_0x2c87a7,_0x4ca596,_0x4360ec){const _0x4b7dfe=_0x4afe6d;super(_0x4fdd35,_0x2a0100,_0x5ecd11,_0x343b18,_0xf5ea5d,_0x2dfdea,_0xc25013,_0x4e8780,_0x5b81bc,_0x6cc03f,_0x1cfe3f,_0x2c87a7,_0x4ca596,_0x4360ec),this['unitID']=_0x4fdd35,this[_0x4b7dfe(0x154)]=_0x5ecd11;}async[_0x4afe6d(0x172)](){const _0xd6bbf3=_0x4afe6d;let _0x4182de=await super[_0xd6bbf3(0x172)]();return this[_0xd6bbf3(0x13b)](this[_0xd6bbf3(0x24b)][_0xd6bbf3(0x198)]((_0x4ecbdb,_0x37a206)=>{const _0x549e36=_0xd6bbf3;if(_0x4ecbdb[_0x549e36(0x154)]!==_0x54340d[_0x549e36(0x2b5)][_0x549e36(0x3da)]||_0x37a206!=null&&_0x37a206[_0x549e36(0x2d9)]||_0x37a206!=null&&_0x37a206[_0x549e36(0x453)])return;let _0x442a9d=_0x4ecbdb[_0x549e36(0x311)];if((_0x442a9d==null?void 0x0:_0x442a9d['unitId'])!==this[_0x549e36(0x3b1)])return;let _0x42d527=_0x4ecbdb,_0x28fb2b=this['_compressMutationService'][_0x549e36(0x141)][_0x549e36(0x2d0)](this[_0x549e36(0x321)][_0x549e36(0x141)][_0x549e36(0x1a0)]()[_0x549e36(0x344)])([_0x42d527],this['_univerInstanceService'])||[_0x42d527];this[_0x549e36(0x280)](_0x28fb2b[0x0]);})),_0x4182de;}};_0x315430=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d['Injector'])),_0x5c2cf(0x4,(0x0,_0x54340d['Inject'])(_0x510a16['CompressMutationService'])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d['LocaleService'])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0x8,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0x9,_0x54340d['ILogService']),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d['IPermissionService']),_0x5c2cf(0xc,(0x0,_0x54340d['Optional'])(_0x54d1b8)),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x315430);let _0x143458=class extends _0x558136{constructor(_0x3d55ba,_0x7bb9c8,_0x247e0f,_0x1d6d3e,_0x5b0edb,_0x430cd5,_0x10e7e2,_0x577f51,_0xe0ab2d,_0x4be1ca,_0x2ac953,_0x557a85,_0x439fcd,_0x4d952d,_0x318c76){const _0x4b0278=_0x4afe6d;super(_0x3d55ba,_0x247e0f,_0x7bb9c8,_0x1d6d3e,_0x5b0edb,_0x430cd5,_0x10e7e2,_0xe0ab2d,_0x4be1ca,_0x2ac953,_0x557a85,_0x439fcd,_0x4d952d,_0x318c76),this['unitID']=_0x3d55ba,this[_0x4b0278(0x154)]=_0x7bb9c8,this[_0x4b0278(0x2a1)]=_0x577f51;}['_createHandler'](){const _0x3c1401=_0x4afe6d;let _0x27c7ed=super['_createHandler']();return _0x27c7ed[_0x3c1401(0x3a5)]=_0x4964ba=>this['_sheetTransformSelectionsService']['transformSelections'](_0x4964ba),_0x27c7ed;}async[_0x4afe6d(0x172)](){const _0x2582dd=_0x4afe6d;let _0x541467=await super[_0x2582dd(0x172)]();return this[_0x2582dd(0x13b)](this[_0x2582dd(0x24b)][_0x2582dd(0x198)]((_0x4a17b5,_0x455c87)=>{const _0x477e51=_0x2582dd;if(_0x4a17b5['type']!==_0x54340d[_0x477e51(0x2b5)][_0x477e51(0x3da)]||_0x455c87!=null&&_0x455c87[_0x477e51(0x2d9)]||_0x455c87!=null&&_0x455c87[_0x477e51(0x453)])return;let _0x2ca9ac=_0x4a17b5[_0x477e51(0x311)];if((_0x2ca9ac==null?void 0x0:_0x2ca9ac[_0x477e51(0x3a1)])!==this[_0x477e51(0x3b1)])return;let _0x8d997d=_0x4a17b5,_0x5db51e=this[_0x477e51(0x321)][_0x477e51(0x141)][_0x477e51(0x2d0)](this[_0x477e51(0x321)][_0x477e51(0x141)]['getInterceptPoints']()[_0x477e51(0x344)])([_0x8d997d],this[_0x477e51(0x18f)])||[_0x8d997d];this[_0x477e51(0x280)](_0x5db51e[0x0]);})),_0x541467;}};_0x143458=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d['Inject'])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16['CompressMutationService'])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x137)])),_0x5c2cf(0x6,(0x0,_0x54340d['Inject'])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,(0x0,_0x54340d['Inject'])(_0x2269b7)),_0x5c2cf(0x8,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0x9,_0x54340d['IUniverInstanceService']),_0x5c2cf(0xa,_0x54340d['ILogService']),_0x5c2cf(0xb,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xc,_0x54340d[_0x4afe6d(0x2f3)]),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x54d1b8)),_0x5c2cf(0xe,(0x0,_0x54340d['Optional'])(_0x1cadf3))],_0x143458);let _0x513627=class extends _0x558136{constructor(_0x384581,_0x21cf38,_0x471a26,_0xda1560,_0x989ab7,_0x32da31,_0x32a32f,_0x524b98,_0x3dccc6,_0x6ff783,_0xba6827,_0x4eeb10,_0x30a6bd,_0x5de448){const _0x465c7b=_0x4afe6d;super(_0x384581,_0x471a26,_0x21cf38,_0xda1560,_0x989ab7,_0x32da31,_0x32a32f,_0x524b98,_0x3dccc6,_0x6ff783,_0xba6827,_0x4eeb10,_0x30a6bd,_0x5de448),this[_0x465c7b(0x3b1)]=_0x384581,this[_0x465c7b(0x154)]=_0x21cf38;}async['_init'](){const _0x50e889=_0x4afe6d;let _0x23d826=await super[_0x50e889(0x172)]();return this[_0x50e889(0x13b)](this['_commandService'][_0x50e889(0x198)]((_0x4f580d,_0xe50bf6)=>{const _0x19a373=_0x50e889;if(_0x4f580d['type']!==_0x54340d[_0x19a373(0x2b5)][_0x19a373(0x3da)]||_0xe50bf6!=null&&_0xe50bf6['fromCollab']||_0xe50bf6!=null&&_0xe50bf6[_0x19a373(0x453)])return;let _0x154eef=_0x4f580d[_0x19a373(0x311)];if((_0x154eef==null?void 0x0:_0x154eef['unitId'])!==this[_0x19a373(0x3b1)])return;let _0x5f16cf=_0x4f580d,_0x5d6508=this[_0x19a373(0x321)][_0x19a373(0x141)][_0x19a373(0x2d0)](this[_0x19a373(0x321)][_0x19a373(0x141)][_0x19a373(0x1a0)]()[_0x19a373(0x344)])([_0x5f16cf],this[_0x19a373(0x18f)])||[_0x5f16cf];this[_0x19a373(0x280)](_0x5d6508[0x0]);})),_0x23d826;}};_0x513627=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x4,(0x0,_0x54340d['Inject'])(_0x510a16[_0x4afe6d(0x44e)])),_0x5c2cf(0x5,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d['LocaleService'])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0x8,_0x54340d['IUniverInstanceService']),_0x5c2cf(0x9,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d['IPermissionService']),_0x5c2cf(0xc,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x54d1b8)),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x513627);let _0x3a23e5=class extends _0x558136{constructor(_0x1ce6d0,_0x25df75,_0x1bc9d2,_0x4654ab,_0x1a69f0,_0xd7175a,_0x27eda0,_0x3baf36,_0xf3c050,_0xfe3620,_0x49c09e,_0x1a9eaa,_0x1bc620,_0x9e8ab1){const _0x2d915f=_0x4afe6d;super(_0x1ce6d0,_0x1bc9d2,_0x25df75,_0x4654ab,_0x1a69f0,_0xd7175a,_0x27eda0,_0x3baf36,_0xf3c050,_0xfe3620,_0x49c09e,_0x1a9eaa,_0x1bc620,_0x9e8ab1),this[_0x2d915f(0x3b1)]=_0x1ce6d0,this[_0x2d915f(0x154)]=_0x25df75;}async[_0x4afe6d(0x172)](){const _0xb2f483=_0x4afe6d;let _0xcfc1ad=await super['_init']();return this[_0xb2f483(0x13b)](this[_0xb2f483(0x24b)][_0xb2f483(0x198)]((_0x2b9855,_0x152aef)=>{const _0x56b903=_0xb2f483;if(_0x2b9855[_0x56b903(0x154)]!==_0x54340d[_0x56b903(0x2b5)][_0x56b903(0x3da)]||_0x152aef!=null&&_0x152aef[_0x56b903(0x2d9)]||_0x152aef!=null&&_0x152aef[_0x56b903(0x453)])return;let _0x2e095c=_0x2b9855[_0x56b903(0x311)];if((_0x2e095c==null?void 0x0:_0x2e095c[_0x56b903(0x3a1)])!==this[_0x56b903(0x3b1)])return;let _0x45b43f=_0x2b9855,_0x81a201=this[_0x56b903(0x321)][_0x56b903(0x141)][_0x56b903(0x2d0)](this[_0x56b903(0x321)][_0x56b903(0x141)]['getInterceptPoints']()[_0x56b903(0x344)])([_0x45b43f],this[_0x56b903(0x18f)])||[_0x45b43f];this[_0x56b903(0x280)](_0x81a201[0x0]);})),_0xcfc1ad;}};_0x3a23e5=_0x3bbaf2([_0x5c2cf(0x3,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x44e)])),_0x5c2cf(0x5,(0x0,_0x54340d['Inject'])(_0x54340d['LocaleService'])),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x277)])),_0x5c2cf(0x7,(0x0,_0x54340d['Inject'])(_0x18b525)),_0x5c2cf(0x8,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0x9,_0x54340d['ILogService']),_0x5c2cf(0xa,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0xb,_0x54340d['IPermissionService']),_0x5c2cf(0xc,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x54d1b8)),_0x5c2cf(0xd,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x3a23e5);let _0x5cc1e5=(0x0,_0x54340d[_0x4afe6d(0x227)])(_0x4afe6d(0x3d2));function _0x4dd5df(_0x21afcc){const _0xe93f61=_0x4afe6d;let _0x4cf963=_0x21afcc['data'],_0x11125a=JSON[_0xe93f61(0x1f8)](_0x4cf963);switch(_0x11125a['cmd']){case _0x3a112b[_0xe93f61(0x2dc)][_0xe93f61(0x434)]:case _0x3a112b['CombCmd'][_0xe93f61(0x1b7)]:{let _0x564269=_0x11125a[_0xe93f61(0x1bb)];return{..._0x11125a,'data':_0x564269,'cmd':_0x11125a[_0xe93f61(0x239)]};}case _0x3a112b['CombCmd']['JOIN']:{let _0x1ee52e=_0x11125a[_0xe93f61(0x36f)];return{..._0x11125a,'data':_0x1ee52e,'cmd':_0x11125a[_0xe93f61(0x239)]};}case _0x3a112b['CombCmd'][_0xe93f61(0x319)]:{let _0x1f7efa=_0x11125a['collaMsg'];switch(_0x1f7efa[_0xe93f61(0x10f)]){case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x1cc)]:var _0x5178a4;return{..._0x11125a,'data':{..._0x1f7efa,'data':(_0x5178a4=_0x1f7efa[_0xe93f61(0x156)])==null?void 0x0:_0x5178a4['cs']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)]['CHANGESET_ACK']:var _0x2dd240;return{..._0x11125a,'data':{..._0x1f7efa,'data':(_0x2dd240=_0x1f7efa['csAckEvent'])==null?void 0x0:_0x2dd240['cs']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)]['NEW_CHANGESETS']:var _0x389133;return{..._0x11125a,'data':{..._0x1f7efa,'data':(_0x389133=_0x1f7efa[_0xe93f61(0x1e1)])==null?void 0x0:_0x389133['cs']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x190)]:var _0x324ad5;return{..._0x11125a,'data':{..._0x1f7efa,'data':(_0x324ad5=_0x1f7efa['csRejEvent'])==null?void 0x0:_0x324ad5['cs']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)]['CHANGESET_SHOULD_RETRY']:var _0x2de232;return{..._0x11125a,'data':{..._0x1f7efa,'data':(_0x2de232=_0x1f7efa[_0xe93f61(0x212)])==null?void 0x0:_0x2de232['cs']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16['CollaborationEvent'][_0xe93f61(0x242)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa['updateCursorEvent']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x1b4)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x1df)]},'cmd':_0x11125a['cmd']};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x132)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa['leaveEvent']},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x1c3)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x3fc)]},'cmd':_0x11125a['cmd']};case _0x510a16['CollaborationEvent'][_0xe93f61(0x35a)]:case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x3d3)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x33d)]},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x3fc)]},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x11125a,'data':_0x1f7efa,'cmd':_0x11125a['cmd']};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x222)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x393)]},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16['CollaborationEvent'][_0xe93f61(0x350)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x3b3)]},'cmd':_0x11125a[_0xe93f61(0x239)]};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x10d)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x2c1)]},'cmd':_0x11125a['cmd']};case _0x510a16[_0xe93f61(0x17d)][_0xe93f61(0x3c0)]:return{..._0x11125a,'data':{..._0x1f7efa,'data':_0x1f7efa[_0xe93f61(0x3e0)]},'cmd':_0x11125a['cmd']};default:return _0x11125a;}}default:return _0x11125a;}}function _0x5e867b(_0x2eeaa6){const _0x41a333=_0x4afe6d;switch(_0x2eeaa6[_0x41a333(0x239)]){case _0x3a112b['CombCmd']['HEARTBEAT']:case _0x3a112b[_0x41a333(0x2dc)]['HELLO']:return JSON['stringify']({'cmd':_0x2eeaa6['cmd'],'routeKey':_0x2eeaa6[_0x41a333(0x2e0)]});case _0x3a112b[_0x41a333(0x2dc)][_0x41a333(0x401)]:{let _0x56ffc5;switch(_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x10f)]){case _0x510a16[_0x41a333(0x17d)][_0x41a333(0x242)]:_0x56ffc5={'eventID':_0x510a16[_0x41a333(0x17d)][_0x41a333(0x242)],'updateCursorEvent':_0x2eeaa6['data'][_0x41a333(0x2b8)]};break;case _0x510a16[_0x41a333(0x17d)][_0x41a333(0x132)]:_0x56ffc5={'eventID':_0x510a16[_0x41a333(0x17d)][_0x41a333(0x132)],'leaveEvent':_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x2b8)]};break;case _0x510a16[_0x41a333(0x17d)][_0x41a333(0x1b4)]:_0x56ffc5={'eventID':_0x510a16['CollaborationEvent'][_0x41a333(0x1b4)],'joinEvent':_0x2eeaa6['data']['data']};break;case _0x510a16['CollaborationEvent'][_0x41a333(0x1c3)]:_0x56ffc5={'eventID':_0x510a16['CollaborationEvent'][_0x41a333(0x1c3)],'liveShareNewHost':_0x2eeaa6['data'][_0x41a333(0x2b8)]};break;case _0x510a16[_0x41a333(0x17d)][_0x41a333(0x3d3)]:_0x56ffc5={'eventID':_0x510a16[_0x41a333(0x17d)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x2b8)]};break;case _0x510a16[_0x41a333(0x17d)][_0x41a333(0x436)]:_0x56ffc5={'eventID':_0x510a16['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x2b8)]};break;case _0x510a16[_0x41a333(0x17d)]['LIVESHARE_REQUEST_HOST']:_0x56ffc5={'eventID':_0x510a16[_0x41a333(0x17d)][_0x41a333(0x13e)],'liveShareRequestHost':_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x2b8)]};break;case _0x510a16['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:_0x56ffc5={'eventID':_0x510a16[_0x41a333(0x17d)]['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x56ffc5={'eventID':_0x2eeaa6[_0x41a333(0x2b8)][_0x41a333(0x10f)]};}return JSON[_0x41a333(0x1c6)]({'cmd':_0x2eeaa6[_0x41a333(0x239)],'routeKey':_0x2eeaa6['routeKey'],'collaMsg':_0x56ffc5});}case _0x3a112b['CombCmd'][_0x41a333(0x39d)]:return JSON[_0x41a333(0x1c6)]({'cmd':_0x2eeaa6[_0x41a333(0x239)],'routeKey':_0x2eeaa6[_0x41a333(0x2e0)],'joinReq':_0x2eeaa6['data']});case _0x3a112b[_0x41a333(0x2dc)][_0x41a333(0x240)]:return JSON[_0x41a333(0x1c6)]({'cmd':_0x2eeaa6['cmd'],'routeKey':_0x2eeaa6[_0x41a333(0x2e0)],'leaveReq':_0x2eeaa6['data']});default:throw Error(_0x41a333(0x1ed));}}let _0x30a197=(0x0,_0x54340d[_0x4afe6d(0x227)])('univer-pro.collaboration-client-socket-service');function _0x11f10f(_0x1db2d5,_0x5973e3,_0x90284d){const _0xe3b047=_0x4afe6d;return _0x1db2d5+'/'+_0x5973e3+'/unit/'+_0x90284d+_0xe3b047(0x388);}let _0xadadc1=class extends _0x54340d[_0x4afe6d(0x3de)]{constructor(_0x180304,_0x27f313,_0xe615da,_0x2924c7,_0x34c294){const _0xcb40a2=_0x4afe6d;super(),this[_0xcb40a2(0x19e)]=_0x180304,this[_0xcb40a2(0x1e3)]=_0x27f313,this[_0xcb40a2(0x3b8)]=_0xe615da,this[_0xcb40a2(0x30d)]=_0x2924c7,this[_0xcb40a2(0x247)]=_0x34c294;}[_0x4afe6d(0x367)](_0x13b113){const _0x8566=_0x4afe6d;let _0xeb694f=this[_0x8566(0x19e)][_0x8566(0x28f)](_0x3c3932[_0x8566(0x11d)]);if(!_0xeb694f)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x10cc81=_0xeb694f[_0x8566(0x42a)](_0x13b113);if(!_0x10cc81)throw Error(_0x8566(0x26e));let _0x23096c=new _0x54340d['DisposableCollection'](),_0x2aabd7=new _0x501c4e[(_0x8566(0x1d6))]();_0x23096c[_0x8566(0x1fc)](_0x10cc81[_0x8566(0x1b5)]['subscribe'](_0x464f48=>_0x2aabd7[_0x8566(0x16a)](_0x464f48))),_0x23096c[_0x8566(0x1fc)]((0x0,_0x54340d['toDisposable'])(()=>_0x2aabd7[_0x8566(0x228)]()));let _0x56b15a=new _0x501c4e[(_0x8566(0x1d6))]();_0x23096c['add'](_0x10cc81[_0x8566(0x41a)]['subscribe'](_0x10636e=>_0x56b15a['next'](_0x10636e))),_0x23096c[_0x8566(0x1fc)]((0x0,_0x54340d[_0x8566(0x11e)])(()=>_0x56b15a[_0x8566(0x228)]()));let _0x3ea370=new _0x501c4e['Subject']();_0x23096c[_0x8566(0x1fc)](_0x10cc81[_0x8566(0x208)][_0x8566(0x40b)](_0x149246=>{const _0x4ebd0b=_0x8566;let _0x3684bb=_0x4dd5df(_0x149246);_0x3ea370[_0x4ebd0b(0x16a)](_0x3684bb);})),_0x23096c[_0x8566(0x1fc)]((0x0,_0x54340d['toDisposable'])(()=>_0x3ea370['complete']()));let _0x6a6c49,_0x235470=()=>{const _0x5cd43d=_0x8566;_0x56b15a['next'](new Event(_0x5cd43d(0x1ef))),_0x2aabd7['next'](new Event(_0x5cd43d(0x1ef))),_0x6a6c49[_0x5cd43d(0x3ed)]();};return _0x6a6c49={'memberID':'','close$':_0x2aabd7[_0x8566(0x371)](),'error$':_0x56b15a[_0x8566(0x371)](),'open$':_0x10cc81[_0x8566(0x1c0)],'message$':_0x3ea370[_0x8566(0x371)](),'send':_0x40eccf=>{const _0x27390b=_0x8566;if(_0x40eccf[_0x27390b(0x239)]===_0x3a112b[_0x27390b(0x2dc)][_0x27390b(0x401)]){if(_0x40eccf[_0x27390b(0x2b8)][_0x27390b(0x10f)]===_0x510a16['CollaborationEvent'][_0x27390b(0x454)]){this['_submitChangeset'](_0x6a6c49,_0x40eccf[_0x27390b(0x2b8)])['catch'](_0x35c8b2=>{const _0x2f6e9c=_0x27390b;this[_0x2f6e9c(0x30d)][_0x2f6e9c(0x106)](_0x35c8b2),_0x235470();});return;}if(_0x40eccf['data'][_0x27390b(0x10f)]===_0x510a16['CollaborationEvent'][_0x27390b(0x44f)]){let _0x5b86d4=_0x40eccf[_0x27390b(0x2b8)];this[_0x27390b(0x1a7)](_0x5b86d4)[_0x27390b(0x330)](_0x28225a=>{const _0x26f787=_0x27390b;_0x3ea370['next']({'cmd':_0x3a112b[_0x26f787(0x2dc)][_0x26f787(0x319)],'code':_0x3a112b['CmdRspCode']['OK'],'routeKey':_0x5b86d4['data']['unitID'],'routeType':'','data':{'eventID':_0x510a16[_0x26f787(0x17d)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x28225a}}});})[_0x27390b(0x332)](_0x4c21e5=>{const _0x14f268=_0x27390b;this[_0x14f268(0x30d)][_0x14f268(0x106)](_0x4c21e5),_0x235470();});return;}}_0x10cc81[_0x27390b(0x255)](_0x5e867b(_0x40eccf));},'close':()=>{const _0x3f1053=_0x8566;_0x10cc81[_0x3f1053(0x3ed)](),_0x23096c[_0x3f1053(0x445)]();}},_0x6a6c49;}async['_submitChangeset'](_0x543ed0,_0x515494){const _0x1b932d=_0x4afe6d;var _0x338eec;let {unitType:_0x59ae25,unitID:_0x1b41d6,changeset:_0x2b5452}=_0x515494[_0x1b932d(0x2b8)],_0x1fcca9={'unitID':_0x1b41d6,'memberID':_0x543ed0[_0x1b932d(0x41c)],'type':_0x59ae25,'changeset':(0x0,_0x510a16[_0x1b932d(0x18d)])(_0x2b5452)},_0x52f25a=this[_0x1b932d(0x3b8)][_0x1b932d(0x170)](_0x440361),_0x3801a7=_0x11f10f((_0x338eec=_0x52f25a==null?void 0x0:_0x52f25a[_0x1b932d(0x25f)])==null?_0x1b932d(0x2eb):_0x338eec,_0x59ae25,_0x1b41d6);try{await this[_0x1b932d(0x1e3)][_0x1b932d(0x381)](_0x3801a7,{'body':_0x1fcca9});}catch(_0x41e456){throw this['_logService'][_0x1b932d(0x106)](_0x1b932d(0x238),_0x1b932d(0x2fc)),_0x41e456;}}async[_0x4afe6d(0x1a7)](_0x36f079){const _0x1fdcb3=_0x4afe6d;let {unitID:_0x1379e9,from:_0x3864f2,to:_0x317142,unitType:_0x45952c}=_0x36f079[_0x1fdcb3(0x2b8)];return(await this[_0x1fdcb3(0x247)][_0x1fdcb3(0x246)]({'metadata':void 0x0},{'unitID':_0x1379e9,'type':_0x45952c,'from':_0x3864f2,'to':_0x317142}))['changesets'][_0x1fdcb3(0x299)](_0x13af9b=>((_0x13af9b['mutations']===null||_0x13af9b[_0x1fdcb3(0x29a)]===void 0x0)&&(_0x13af9b[_0x1fdcb3(0x29a)]=[]),_0x13af9b));}};_0xadadc1=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x1,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932[_0x4afe6d(0x359)])),_0x5c2cf(0x2,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x3,_0x54340d['ILogService']),_0x5c2cf(0x4,_0x510a16['ISnapshotServerService'])],_0xadadc1);let _0x3a5b27=(0x0,_0x54340d[_0x4afe6d(0x227)])('univer-pro.collaboration-client-adapter-service');function _0x1c4d33(_0x44e6e5={}){const _0x4b97f3=_0x4afe6d;return _0x44e6e5['resolveUnit']?{'resolveUnit':_0x44e6e5[_0x4b97f3(0x3c2)]}:{'resolveUnit':_0x45c317=>({'target':{'unitId':_0x45c317[_0x4b97f3(0x3a1)],'unitType':_0x45c317[_0x4b97f3(0x3ec)]}})};}function _0x5f133c(_0x53831a,_0x2cba83,_0xc48fda){const _0x21579b=_0x4afe6d;var _0x18659;let _0xbc83d1=_0xc48fda[_0x21579b(0x12f)][_0x21579b(0x220)];if(_0xbc83d1!=null&&_0xbc83d1[_0x21579b(0x410)]()==='')throw Error(_0x21579b(0x105));if(!_0xc48fda[_0x21579b(0x12f)][_0x21579b(0x3a1)])throw Error(_0x21579b(0x14e));return{'localUnitId':_0x53831a,'unitType':_0x2cba83,'target':{'endpoint':_0xbc83d1,'unitId':_0xc48fda[_0x21579b(0x12f)][_0x21579b(0x3a1)],'unitType':(_0x18659=_0xc48fda[_0x21579b(0x12f)][_0x21579b(0x3ec)])==null?_0x2cba83:_0x18659},'changeset':_0xc48fda[_0x21579b(0x3ab)]};}let _0x1ef492=class extends _0x54340d['Disposable']{constructor(_0x43165b,_0x4c1633,_0xf9b01f,_0x21f98d,_0x1b55f6,_0x2294fd,_0x18e58e){const _0x56250d=_0x4afe6d;super(),this['_injector']=_0x43165b,this['_logService']=_0x4c1633,this[_0x56250d(0x3b8)]=_0xf9b01f,this[_0x56250d(0x32a)]=_0x21f98d,this[_0x56250d(0x30b)]=_0x1b55f6,this[_0x56250d(0x175)]=_0x2294fd,this['_networkConditionService']=_0x18e58e,_0x1d93f6(this,'_sessions',new Map()),_0x1d93f6(this,'_pendingSessions',new Map()),_0x1d93f6(this,'_sessionChannels',new Map()),_0x1d93f6(this,'_socketChannels',new Map()),_0x1d93f6(this,_0x56250d(0x2a3),this[_0x56250d(0x379)](void 0x0)[_0x56250d(0x2a3)][_0x56250d(0x371)]()),_0x1d93f6(this,_0x56250d(0x20a),new _0x501c4e[(_0x56250d(0x283))](0x0)),_0x1d93f6(this,'status$',this[_0x56250d(0x20a)][_0x56250d(0x371)]()),this['_listenToNetworkCondition']();}[_0x4afe6d(0x171)](){const _0x4f3d98=_0x4afe6d;this['_networkConditionService']&&this[_0x4f3d98(0x13b)](this['_networkConditionService'][_0x4f3d98(0x435)]['subscribe'](_0x2441e0=>{const _0x2c88ea=_0x4f3d98;_0x2441e0&&this[_0x2c88ea(0x326)](),_0x2441e0||this[_0x2c88ea(0x2d8)][_0x2c88ea(0x3a3)](_0x4d45d3=>this[_0x2c88ea(0x41b)](_0x4d45d3));}));}['dispose'](){const _0x55826e=_0x4afe6d;super[_0x55826e(0x445)](),this[_0x55826e(0x2d8)]['forEach'](_0x2d6ad8=>{const _0x26d604=_0x55826e;var _0x4b1f2d,_0xe86fb9;(_0x4b1f2d=_0x2d6ad8[_0x26d604(0x406)])==null||_0x4b1f2d[_0x26d604(0x187)](),_0x2d6ad8[_0x26d604(0x406)]=null,this[_0x26d604(0x20d)](_0x2d6ad8),this[_0x26d604(0x111)](_0x2d6ad8),this['_clearHeartbeatTimer'](_0x2d6ad8),(_0xe86fb9=_0x2d6ad8[_0x26d604(0x2a3)][_0x26d604(0x22a)]())==null||_0xe86fb9['close'](),_0x2d6ad8[_0x26d604(0x2a3)][_0x26d604(0x228)]();}),this[_0x55826e(0x2d8)][_0x55826e(0x426)](),this[_0x55826e(0x2c3)][_0x55826e(0x3a3)](_0x415a5e=>_0x415a5e[_0x55826e(0x445)]()),this[_0x55826e(0x2c3)]['clear'](),this[_0x55826e(0x42d)][_0x55826e(0x426)](),this[_0x55826e(0x20a)][_0x55826e(0x228)]();}async[_0x4afe6d(0x2ef)](_0x127177,_0x415b10){const _0x40e852=_0x4afe6d;if(this[_0x40e852(0x2c3)][_0x40e852(0x2e6)](_0x127177))return this['_sessions'][_0x40e852(0x28f)](_0x127177);let _0xd9e3a0=this[_0x40e852(0x3b0)][_0x40e852(0x28f)](_0x127177);if(_0xd9e3a0)return _0xd9e3a0;let _0x5f68bf=this[_0x40e852(0x3c7)](_0x127177,_0x415b10);this['_pendingSessions']['set'](_0x127177,_0x5f68bf);try{return await _0x5f68bf;}finally{this['_pendingSessions'][_0x40e852(0x151)](_0x127177);}}async[_0x4afe6d(0x3c7)](_0x2a96fc,_0x369356){const _0x35d010=_0x4afe6d;let _0x3da2d5=await this['_resolveSessionIdentity'](_0x2a96fc,_0x369356),_0x57dd34=this['_getSocketChannel'](_0x3da2d5[_0x35d010(0x12f)]['endpoint']);this[_0x35d010(0x2d3)](_0x57dd34);let _0x81a9ab=this['_injector'][_0x35d010(0x34e)](_0x180b79,_0x3da2d5,_0x57dd34['socket$'][_0x35d010(0x371)]());return this['_sessions'][_0x35d010(0x437)](_0x2a96fc,_0x81a9ab),this[_0x35d010(0x42d)]['set'](_0x2a96fc,_0x57dd34[_0x35d010(0x22b)]),_0x81a9ab;}[_0x4afe6d(0x14f)](_0x4a038d){const _0x2f2b3d=_0x4afe6d;let _0x47322d=this[_0x2f2b3d(0x2c3)]['get'](_0x4a038d),_0x15ffad=this[_0x2f2b3d(0x42d)][_0x2f2b3d(0x28f)](_0x4a038d);if(_0x47322d&&(this[_0x2f2b3d(0x2c3)]['delete'](_0x4a038d),this['_sessionChannels']['delete'](_0x4a038d),_0x47322d[_0x2f2b3d(0x3ed)]()),_0x15ffad&&!this[_0x2f2b3d(0x127)](_0x15ffad)){var _0xbeed8d;let _0x1f3d94=this['_socketChannels'][_0x2f2b3d(0x28f)](_0x15ffad);_0x1f3d94==null||(_0xbeed8d=_0x1f3d94[_0x2f2b3d(0x2a3)][_0x2f2b3d(0x22a)]())==null||_0xbeed8d[_0x2f2b3d(0x3ed)]();}}[_0x4afe6d(0x326)](){const _0x1fa516=_0x4afe6d;(this[_0x1fa516(0x2d8)][_0x1fa516(0x389)]?[...this[_0x1fa516(0x2d8)][_0x1fa516(0x2f8)]()]:[this[_0x1fa516(0x379)](void 0x0)])[_0x1fa516(0x3a3)](_0x5edb1a=>{const _0x2eadcf=_0x1fa516;_0x5edb1a[_0x2eadcf(0x2df)]=0x0,this[_0x2eadcf(0x20d)](_0x5edb1a),this['_tryReconnect'](_0x5edb1a);});}['_clearRetryConnectingTimer'](_0x928b1){const _0x1922bd=_0x4afe6d;_0x928b1[_0x1922bd(0x2aa)]!=null&&(clearTimeout(_0x928b1[_0x1922bd(0x2aa)]),_0x928b1[_0x1922bd(0x2aa)]=null);}async['_createSocket'](_0x356342){const _0x3019f5=_0x4afe6d;var _0x2b7f21,_0x5b6524;let _0x9e52a4=this[_0x3019f5(0x3b8)][_0x3019f5(0x170)](_0x440361),_0xab4e3a=(_0x2b7f21=(_0x5b6524=_0x356342[_0x3019f5(0x220)])==null?_0x9e52a4==null?void 0x0:_0x9e52a4[_0x3019f5(0x44b)]:_0x5b6524)==null?_0x1ee18d:_0x2b7f21,_0x5ede08=await this['_socketService']['createSocket'](_0xab4e3a);return _0x356342[_0x3019f5(0xf9)]=_0x5ede08,_0x5ede08;}async[_0x4afe6d(0x2d3)](_0x1408d5){const _0x42a6c1=_0x4afe6d;try{var _0x7e056a,_0x4b442b;let _0x2a301c=(_0x7e056a=(_0x4b442b=_0x1408d5['socket$'][_0x42a6c1(0x22a)]())==null?_0x1408d5[_0x42a6c1(0xf9)]:_0x4b442b)==null?await this[_0x42a6c1(0x413)](_0x1408d5):_0x7e056a;if(_0x2a301c){var _0x153284;let _0x30de76=_0x2a301c[_0x42a6c1(0x255)];_0x2a301c[_0x42a6c1(0x255)]=_0x58afa9=>(_0x58afa9[_0x42a6c1(0x239)]!==_0x3a112b['CombCmd'][_0x42a6c1(0x240)]&&this[_0x42a6c1(0x392)](_0x1408d5),_0x30de76['apply'](_0x2a301c,[_0x58afa9])),(_0x153284=_0x1408d5[_0x42a6c1(0x406)])==null||_0x153284['unsubscribe'](),_0x1408d5[_0x42a6c1(0x406)]=null,_0x1408d5['socketMessageSubscription']=_0x2a301c[_0x42a6c1(0x208)][_0x42a6c1(0x40b)](_0x5e4a49=>this[_0x42a6c1(0x260)](_0x1408d5,_0x2a301c,_0x5e4a49)),_0x2a301c[_0x42a6c1(0x41a)][_0x42a6c1(0x33c)]((0x0,_0x572a50[_0x42a6c1(0x250)])(0x1))[_0x42a6c1(0x40b)](_0x595ee2=>this[_0x42a6c1(0x30d)]['error'](_0x42a6c1(0x29f),_0x595ee2)),_0x2a301c[_0x42a6c1(0x1c0)]['pipe']((0x0,_0x572a50[_0x42a6c1(0x250)])(0x1))[_0x42a6c1(0x40b)](()=>{const _0x12ee52=_0x42a6c1;this[_0x12ee52(0x2da)](_0x1408d5,_0x2a301c);}),_0x2a301c[_0x42a6c1(0x1b5)][_0x42a6c1(0x33c)]((0x0,_0x572a50[_0x42a6c1(0x250)])(0x1))['subscribe'](_0x242c81=>{const _0x3ec2f3=_0x42a6c1;this[_0x3ec2f3(0x30d)][_0x3ec2f3(0x103)](_0x3ec2f3(0x349),_0x3ec2f3(0x421),_0x242c81),this[_0x3ec2f3(0x267)](_0x1408d5);});}}catch(_0x3497e5){this[_0x42a6c1(0x30d)][_0x42a6c1(0x106)](_0x3497e5),this[_0x42a6c1(0x267)](_0x1408d5);}}[_0x4afe6d(0x2da)](_0x5ed5d4,_0x30b1a7){const _0x474f41=_0x4afe6d;this[_0x474f41(0x30d)][_0x474f41(0x103)](_0x474f41(0x349),_0x474f41(0x113)),_0x30b1a7[_0x474f41(0x255)]({'cmd':_0x3a112b['CombCmd'][_0x474f41(0x1b7)]}),this[_0x474f41(0x392)](_0x5ed5d4);}['_onOffline'](_0x563ec4){const _0x15344e=_0x4afe6d;_0x563ec4[_0x15344e(0x205)]=!0x1,_0x563ec4[_0x15344e(0xf9)]=null,this['_status$']['next'](0x2),_0x563ec4[_0x15344e(0x2a3)][_0x15344e(0x16a)](null),this[_0x15344e(0x111)](_0x563ec4),this['_clearHeartbeatTimer'](_0x563ec4);}[_0x4afe6d(0x267)](_0x171a1c){const _0x439907=_0x4afe6d;var _0xb55ea9;this[_0x439907(0x41b)](_0x171a1c),this[_0x439907(0x127)](_0x171a1c[_0x439907(0x22b)])&&(_0x171a1c[_0x439907(0x2df)]<((_0xb55ea9=this[_0x439907(0x3b8)][_0x439907(0x170)](_0x439907(0x1d7)))==null?0x3:_0xb55ea9)?(this[_0x439907(0x30b)]['emitEvent']({'id':_0x439907(0x110)}),this[_0x439907(0x2e8)](_0x171a1c)):this[_0x439907(0x30b)][_0x439907(0x425)]({'id':'SOCKET_FAILED'}));}[_0x4afe6d(0x2e8)](_0x2bdb27){const _0x1abf93=_0x4afe6d;var _0x285918;let _0x20ed0f=_0x2bdb27['retryCount'],_0x1e5945=this[_0x1abf93(0x3b8)][_0x1abf93(0x170)](_0x440361),_0x3f64c6=_0x20ed0f===0x0?0x0:((_0x285918=_0x1e5945==null?void 0x0:_0x1e5945[_0x1abf93(0x383)])==null?0x4e20:_0x285918)*0x2**_0x20ed0f;_0x2bdb27[_0x1abf93(0x2aa)]=setTimeout(()=>{const _0x38ae8c=_0x1abf93;clearTimeout(_0x2bdb27[_0x38ae8c(0x2aa)]),_0x2bdb27['retryConnectingTimer']=null,this[_0x38ae8c(0x2d3)](_0x2bdb27);},_0x3f64c6),_0x2bdb27['retryCount']+=0x1;}async['_resolveSessionIdentity'](_0x5c2818,_0x26113f){const _0x49f699=_0x4afe6d;return _0x5f133c(_0x5c2818,_0x26113f,await this[_0x49f699(0x175)]['resolveUnit']({'unitId':_0x5c2818,'unitType':_0x26113f}));}['_onMessage'](_0x39960c,_0x1d89db,_0x45bf0a){const _0x156e58=_0x4afe6d;let {cmd:_0x198400}=_0x45bf0a;_0x198400===_0x3a112b[_0x156e58(0x2dc)][_0x156e58(0x1b7)]&&!_0x39960c[_0x156e58(0x205)]&&(_0x1d89db[_0x156e58(0x41c)]=_0x45bf0a[_0x156e58(0x2b8)]['memberID'],_0x39960c[_0x156e58(0x2a3)]['next'](_0x1d89db),this[_0x156e58(0x20a)]['next'](0x3),_0x39960c[_0x156e58(0x205)]=!0x0,_0x39960c[_0x156e58(0xf9)]=null),_0x198400===_0x3a112b['CombCmd'][_0x156e58(0x434)]&&this['_clearTimeoutTimer'](_0x39960c),this[_0x156e58(0x392)](_0x39960c);}['_hasSessionsForEndpoint'](_0x4d1f03){const _0x10786e=_0x4afe6d;return[...this[_0x10786e(0x42d)]['values']()][_0x10786e(0x1d8)](_0x10d603=>_0x10d603===_0x4d1f03);}[_0x4afe6d(0x379)](_0x1a3278){const _0x1b995f=_0x4afe6d;let _0x11753d=_0x1a3278==null?'':_0x1a3278,_0x35e68b=this[_0x1b995f(0x2d8)][_0x1b995f(0x28f)](_0x11753d);if(_0x35e68b)return _0x35e68b;let _0x2de6cb={'endpointKey':_0x11753d,'endpoint':_0x1a3278,'socket$':new _0x501c4e[(_0x1b995f(0x283))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels']['set'](_0x11753d,_0x2de6cb),_0x2de6cb;}[_0x4afe6d(0x392)](_0xea395c){const _0x1dec80=_0x4afe6d;var _0x2047f8;this[_0x1dec80(0x101)](_0xea395c),_0xea395c[_0x1dec80(0x2bc)]=setTimeout(()=>this[_0x1dec80(0x201)](_0xea395c),(_0x2047f8=this['_configService'][_0x1dec80(0x170)]('HEARTBEAT_INTERVAL'))==null?0x7530:_0x2047f8);}[_0x4afe6d(0x201)](_0x19257a){const _0x556dbe=_0x4afe6d;_0x19257a[_0x556dbe(0x2a3)][_0x556dbe(0x22a)]()['send']({'cmd':_0x3a112b['CombCmd'][_0x556dbe(0x434)]}),this[_0x556dbe(0x155)](_0x19257a);}['_waitForHeartbeatResponse'](_0x476d8f){const _0x3e5fe3=_0x4afe6d;var _0x2e882f;_0x476d8f[_0x3e5fe3(0x269)]=setTimeout(()=>this[_0x3e5fe3(0x267)](_0x476d8f),(_0x2e882f=this[_0x3e5fe3(0x3b8)][_0x3e5fe3(0x170)](_0x3e5fe3(0x263)))==null?_0x3eabd5:_0x2e882f);}[_0x4afe6d(0x101)](_0x3fe8dc){const _0x14a555=_0x4afe6d;_0x3fe8dc[_0x14a555(0x2bc)]!=null&&(clearTimeout(_0x3fe8dc[_0x14a555(0x2bc)]),_0x3fe8dc['sendHeartbeatTimer']=null);}[_0x4afe6d(0x111)](_0x1c43a0){const _0x309e1a=_0x4afe6d;_0x1c43a0[_0x309e1a(0x269)]!=null&&(clearTimeout(_0x1c43a0[_0x309e1a(0x269)]),_0x1c43a0['timeoutTimer']=null);}};_0x1ef492=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x1,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x2,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x3,_0x30a197),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525)),_0x5c2cf(0x5,_0x3a5b27),_0x5c2cf(0x6,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x5cc1e5))],_0x1ef492);let _0x3ac1c6=class extends _0x54340d[_0x4afe6d(0x2bf)]{constructor(_0x2ae543,_0x85b76d,_0xfe3149,_0x1d6d41){const _0x1b26b4=_0x4afe6d;var _0x280059;super(),this[_0x1b26b4(0x19e)]=_0x2ae543,this[_0x1b26b4(0x26d)]=_0x85b76d,this['_configService']=_0xfe3149,this[_0x1b26b4(0x18f)]=_0x1d6d41,_0x1d93f6(this,_0x1b26b4(0x226),new Map()),_0x1d93f6(this,_0x1b26b4(0x1ea),new _0x501c4e[(_0x1b26b4(0x1d6))]()),_0x1d93f6(this,_0x1b26b4(0x3e9),this[_0x1b26b4(0x1ea)]['asObservable']()),((_0x280059=this['_configService']['getConfig'](_0x1b26b4(0xf8)))==null?void 0x0:_0x280059['enableCollaboration'])!==!0x1&&this[_0x1b26b4(0x172)]();}[_0x4afe6d(0x445)](){const _0x196d60=_0x4afe6d;super[_0x196d60(0x445)](),this['_entities'][_0x196d60(0x3a3)](_0x95e70=>_0x95e70[_0x196d60(0x445)]()),this[_0x196d60(0x226)][_0x196d60(0x426)]();}[_0x4afe6d(0x166)](_0x2a50ed){const _0x2cae6f=_0x4afe6d;var _0x19a6c8;return(_0x19a6c8=this[_0x2cae6f(0x226)]['get'](_0x2a50ed))==null?null:_0x19a6c8;}[_0x4afe6d(0x298)](_0x41f169){const _0x4f4db6=_0x4afe6d;let _0x31a8fc=this['getCollabEntity'](_0x41f169);return _0x31a8fc?(0x0,_0x501c4e['of'])(_0x31a8fc):this[_0x4f4db6(0x1ea)][_0x4f4db6(0x33c)]((0x0,_0x572a50[_0x4f4db6(0x176)])(_0x200eff=>_0x200eff['unitID']===_0x41f169));}['readyForCollab'](_0x6b548b){const _0xe33a0e=_0x4afe6d;return(0x0,_0x501c4e[_0xe33a0e(0x117)])(this['getCollabEntity$'](_0x6b548b)[_0xe33a0e(0x33c)]((0x0,_0x572a50[_0xe33a0e(0x299)])(()=>void 0x0)));}['_init'](){const _0x90c35d=_0x4afe6d;this['_univerInstanceService'][_0x90c35d(0x13d)](_0x54340d[_0x90c35d(0x395)]['UNIVER_SHEET'])[_0x90c35d(0x33c)]((0x0,_0x501c4e['takeUntil'])(this[_0x90c35d(0x24d)]),(0x0,_0x572a50[_0x90c35d(0x3c8)])(0x10))['subscribe'](async _0x17b7fc=>{const _0x4cbb96=_0x90c35d;let _0x193e22=_0x17b7fc[_0x4cbb96(0x37d)][_0x4cbb96(0x40f)](),_0x343773=await this[_0x4cbb96(0x168)](_0x193e22,_0x54340d[_0x4cbb96(0x395)][_0x4cbb96(0x3ee)]);this['_entities']['set'](_0x193e22,_0x343773);}),this[_0x90c35d(0x18f)][_0x90c35d(0x13d)](_0x54340d[_0x90c35d(0x395)][_0x90c35d(0x366)])[_0x90c35d(0x33c)]((0x0,_0x501c4e['takeUntil'])(this[_0x90c35d(0x24d)]),(0x0,_0x572a50[_0x90c35d(0x3c8)])(0x10))[_0x90c35d(0x33c)]((0x0,_0x572a50[_0x90c35d(0x176)])(_0x18fff4=>!_0x18fff4[_0x90c35d(0x37d)][_0x90c35d(0x40f)]()[_0x90c35d(0x2d6)]('__')))[_0x90c35d(0x40b)](async _0x10b145=>{const _0x31d42d=_0x90c35d;let _0x212e98=_0x10b145['unit'][_0x31d42d(0x40f)](),_0x38fdcf=await this[_0x31d42d(0x168)](_0x212e98,_0x54340d[_0x31d42d(0x395)][_0x31d42d(0x366)]);this[_0x31d42d(0x226)]['set'](_0x212e98,_0x38fdcf);}),this['_univerInstanceService'][_0x90c35d(0x13d)](_0x54340d[_0x90c35d(0x395)]['UNIVER_SLIDE'])['pipe']((0x0,_0x501c4e[_0x90c35d(0x272)])(this[_0x90c35d(0x24d)]),(0x0,_0x572a50[_0x90c35d(0x3c8)])(0x10))['subscribe'](async _0x47bda1=>{const _0x307c40=_0x90c35d;let _0x5be498=_0x47bda1['unit'][_0x307c40(0x40f)](),_0x2bc3d5=await this[_0x307c40(0x168)](_0x5be498,_0x54340d['UniverInstanceType']['UNIVER_SLIDE']);this[_0x307c40(0x226)][_0x307c40(0x437)](_0x5be498,_0x2bc3d5);}),this['_univerInstanceService'][_0x90c35d(0x13d)](_0x54340d[_0x90c35d(0x395)][_0x90c35d(0x1b3)])['pipe']((0x0,_0x501c4e[_0x90c35d(0x272)])(this[_0x90c35d(0x24d)]),(0x0,_0x572a50[_0x90c35d(0x3c8)])(0x10))['subscribe'](async _0x529cdc=>{const _0x344dd1=_0x90c35d;let _0x514522=_0x529cdc[_0x344dd1(0x37d)][_0x344dd1(0x40f)](),_0x1d8af3=await this[_0x344dd1(0x168)](_0x514522,_0x54340d[_0x344dd1(0x395)][_0x344dd1(0x1b3)]);this['_entities'][_0x344dd1(0x437)](_0x514522,_0x1d8af3);}),this['_univerInstanceService'][_0x90c35d(0x13d)](_0x54340d['UniverInstanceType'][_0x90c35d(0x193)])[_0x90c35d(0x33c)]((0x0,_0x501c4e[_0x90c35d(0x272)])(this[_0x90c35d(0x24d)]),(0x0,_0x572a50['delay'])(0x10))[_0x90c35d(0x40b)](async _0x9e1f6b=>{const _0x1f47ba=_0x90c35d;let _0xc32844=_0x9e1f6b[_0x1f47ba(0x37d)][_0x1f47ba(0x40f)](),_0x517571=await this['_startCollaboration'](_0xc32844,_0x54340d[_0x1f47ba(0x395)][_0x1f47ba(0x193)]);this[_0x1f47ba(0x226)]['set'](_0xc32844,_0x517571);}),(0x0,_0x501c4e['merge'])(this['_univerInstanceService'][_0x90c35d(0x28d)](_0x54340d[_0x90c35d(0x395)]['UNIVER_SHEET']),this[_0x90c35d(0x18f)][_0x90c35d(0x28d)](_0x54340d['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x54340d['UniverInstanceType'][_0x90c35d(0x2f6)]),this[_0x90c35d(0x18f)][_0x90c35d(0x28d)](_0x54340d['UniverInstanceType'][_0x90c35d(0x1b3)]),this[_0x90c35d(0x18f)][_0x90c35d(0x28d)](_0x54340d[_0x90c35d(0x395)]['UNIVER_BASE']))['pipe']((0x0,_0x501c4e[_0x90c35d(0x272)])(this[_0x90c35d(0x24d)]))[_0x90c35d(0x40b)](_0xc31146=>{const _0x4b5828=_0x90c35d;let _0x42c64f=_0xc31146[_0x4b5828(0x40f)](),_0xc236eb=this[_0x4b5828(0x226)]['get'](_0x42c64f);_0xc236eb&&(_0xc236eb['dispose'](),this['_entities'][_0x4b5828(0x151)](_0x42c64f));});}async[_0x4afe6d(0x168)](_0x3e1276,_0x2ce6b7){const _0x44d265=_0x4afe6d;let _0x5e85d1=await this[_0x44d265(0x26d)][_0x44d265(0x2ef)](_0x3e1276),_0x1e809f=this[_0x44d265(0x19e)][_0x44d265(0x34e)](this[_0x44d265(0x21e)](_0x2ce6b7),_0x3e1276,_0x2ce6b7,_0x5e85d1);return await _0x1e809f[_0x44d265(0x348)](),this[_0x44d265(0x1ea)][_0x44d265(0x16a)](_0x1e809f),_0x1e809f;}[_0x4afe6d(0x21e)](_0x1c40a6){const _0x4f8ba8=_0x4afe6d;switch(_0x1c40a6){case _0x54340d[_0x4f8ba8(0x395)][_0x4f8ba8(0x366)]:return _0x4e92fa;case _0x54340d[_0x4f8ba8(0x395)][_0x4f8ba8(0x3ee)]:return _0x143458;case _0x54340d[_0x4f8ba8(0x395)][_0x4f8ba8(0x2f6)]:return _0x513627;case _0x54340d[_0x4f8ba8(0x395)]['UNIVER_BOARD']:return _0x3a23e5;case _0x54340d['UniverInstanceType'][_0x4f8ba8(0x193)]:return _0x315430;default:throw Error(_0x4f8ba8(0x1aa)+_0x1c40a6);}}};_0x3ac1c6=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x1,(0x0,_0x54340d['Inject'])(_0x1ef492)),_0x5c2cf(0x2,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x3,_0x54340d[_0x4afe6d(0x21c)])],_0x3ac1c6);var _0x2342bf=_0x4afe6d(0x358),_0x42a3e1=_0x4afe6d(0x43b);let _0x1ae7d6=class extends _0x54340d[_0x4afe6d(0x3de)]{constructor(_0x13acf9,_0x3b718a){const _0x456638=_0x4afe6d;super(),this[_0x456638(0x18f)]=_0x13acf9,this['_configService']=_0x3b718a,this['_init']();}[_0x4afe6d(0x172)](){const _0xcac132=_0x4afe6d;this[_0xcac132(0x13b)](this[_0xcac132(0x18f)][_0xcac132(0x135)][_0xcac132(0x40b)](()=>{const _0xaa6298=_0xcac132;var _0x78f49a;let _0x221adb=this['_univerInstanceService'][_0xaa6298(0x26f)](),_0x3f7f5d=(_0x78f49a=this['_configService']['getConfig'](_0xaa6298(0x243)))==null?_0xaa6298(0x1e9):_0x78f49a;_0x221adb instanceof _0x54340d['Workbook']&&(_0x3f7f5d=_0x221adb[_0xaa6298(0x2a8)]),document[_0xaa6298(0x44c)]=_0x3f7f5d;}));}};_0x1ae7d6=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d['IUniverInstanceService']),_0x5c2cf(0x1,_0x54340d[_0x4afe6d(0x192)])],_0x1ae7d6);let _0x32a4ef=function(_0x1379ba){const _0x709c71=_0x4afe6d;return _0x1379ba[_0x709c71(0x12e)]=_0x709c71(0x12e),_0x1379ba[_0x709c71(0x43c)]=_0x709c71(0x43c),_0x1379ba['BASE64']=_0x709c71(0x224),_0x1379ba;}({}),_0x2a494b=(0x0,_0x54340d[_0x4afe6d(0x227)])(_0x4afe6d(0x415)),_0x229743=class{constructor(_0x54c57e,_0x43e096,_0x288426){const _0x35e2a2=_0x4afe6d;this['_httpService']=_0x54c57e,this[_0x35e2a2(0x3b8)]=_0x43e096,this[_0x35e2a2(0x18f)]=_0x288426;}[_0x4afe6d(0x380)](){const _0x19466d=_0x4afe6d;var _0x3f8762;return(_0x3f8762=this['_getConfig']()[_0x19466d(0x2cd)])==null?{}:_0x3f8762;}async[_0x4afe6d(0x3bb)](_0x4e45cf){const _0x54f98b=_0x4afe6d;let _0x33be7c=this[_0x54f98b(0x380)]();if(_0x47183d(_0x4e45cf,_0x33be7c),_0x33be7c[_0x54f98b(0x3d0)])return _0x33be7c['upload'](_0x4e45cf);let _0x2e38d1=await this[_0x54f98b(0x369)](_0x4e45cf);return{'id':_0x2e38d1,'name':_0x4e45cf['name'],'mimeType':_0x4e45cf['type'],'size':_0x4e45cf[_0x54f98b(0x389)],'sourceType':'UUID','source':_0x2e38d1};}async['_upload'](_0x36985b){const _0x3c7e0b=_0x4afe6d;let _0x1a4dee=this[_0x3c7e0b(0x18f)]['getFocusedUnit'](),_0x4aeab4=_0x1a4dee==null?void 0x0:_0x1a4dee['getUnitId']();if(!_0x4aeab4)throw Error(_0x3c7e0b(0x396));let _0xce87d1=new FormData();_0xce87d1[_0x3c7e0b(0x2ae)](_0x3c7e0b(0x372),_0x36985b);let _0x1f0e82=this['_getUploadFileURL']()+_0x3c7e0b(0x102)+_0x36985b['size']['toString']()+_0x3c7e0b(0x3aa)+_0x3a112b['FileSource']['UnitEmbedded']+'&assign='+encodeURIComponent(_0x4aeab4),_0x746feb=(await this[_0x3c7e0b(0x1e3)][_0x3c7e0b(0x381)](_0x1f0e82,{'body':_0xce87d1}))[_0x3c7e0b(0x271)][_0x3c7e0b(0x140)];if(typeof _0x746feb!=_0x3c7e0b(0x1ab)||!_0x746feb)throw Error(_0x3c7e0b(0x42b));return _0x746feb;}[_0x4afe6d(0x3bd)](){const _0x299950=_0x4afe6d;var _0x349309;return(_0x349309=this[_0x299950(0x230)]()[_0x299950(0x2f0)])==null?_0x299950(0x210):_0x349309;}[_0x4afe6d(0x230)](){const _0x466321=_0x4afe6d;var _0x21afe0;return(_0x21afe0=this[_0x466321(0x3b8)][_0x466321(0x170)]('collaboration-client.config'))==null?{}:_0x21afe0;}};_0x229743=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932['HTTPService'])),_0x5c2cf(0x1,(0x0,_0x54340d['Inject'])(_0x54340d[_0x4afe6d(0x192)])),_0x5c2cf(0x2,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x21c)]))],_0x229743);function _0x47183d(_0x52a89f,_0x5f4c4b){const _0x32989c=_0x4afe6d;var _0x4ebefc;if(_0x5f4c4b['maxSize']!=null&&_0x52a89f[_0x32989c(0x389)]>_0x5f4c4b['maxSize'])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x4ebefc=_0x5f4c4b[_0x32989c(0x3bf)])!=null&&_0x4ebefc['length']&&!_0x5f4c4b[_0x32989c(0x3bf)]['some'](_0x136dbd=>_0x52a89f[_0x32989c(0x154)]===_0x136dbd||_0x52a89f['name'][_0x32989c(0x1a6)](_0x136dbd)||_0x136dbd[_0x32989c(0x1a6)]('/*')&&_0x52a89f['type']['startsWith'](_0x136dbd['slice'](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x2ddecb=class{constructor(_0x39269a,_0x31c6b4,_0x53fa59){const _0x1e0c56=_0x4afe6d;this['_configService']=_0x39269a,this['_httpService']=_0x31c6b4,this[_0x1e0c56(0x218)]=_0x53fa59,this[_0x1e0c56(0x348)]();}[_0x4afe6d(0x348)](){const _0x3f99eb=_0x4afe6d;this[_0x3f99eb(0x1e3)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x1869ec,_0xaa278a)=>_0xaa278a(_0x1869ec)[_0x3f99eb(0x33c)]((0x0,_0x501c4e[_0x3f99eb(0x253)])(async _0x3b3995=>{const _0x1955d4=_0x3f99eb;let _0x41f210=_0x3b3995;if(_0x41f210[_0x1955d4(0x35f)]===0x191){if(typeof window>'u')throw Error(_0x1955d4(0x27a));if(window[_0x1955d4(0x234)](this[_0x1955d4(0x218)]['t'](_0x1955d4(0x2d7)))){let _0x1f9511=window['encodeURIComponent'](window[_0x1955d4(0x231)][_0x1955d4(0x3c3)]);window[_0x1955d4(0x231)][_0x1955d4(0x3c3)]=this['_getLoginPath']()+_0x1955d4(0x244)+_0x1f9511;}}return _0x41f210;}))});}[_0x4afe6d(0x144)](){const _0x585bb7=_0x4afe6d;var _0x31b366;let _0x95f8be=this[_0x585bb7(0x3b8)][_0x585bb7(0x170)](_0x440361);return(_0x31b366=_0x95f8be==null?void 0x0:_0x95f8be['loginUrlKey'])==null?_0x585bb7(0x27b):_0x31b366;}};_0x2ddecb=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x1,(0x0,_0x54340d['Inject'])(_0x3c3932[_0x4afe6d(0x359)])),_0x5c2cf(0x2,(0x0,_0x54340d['Inject'])(_0x54340d['LocaleService']))],_0x2ddecb);let _0x91ddb2=class extends _0x54340d['Disposable']{constructor(_0xb7bb7,_0x2bbb1b){const _0xc704c2=_0x4afe6d;super(),this[_0xc704c2(0x40a)]=_0xb7bb7,this['_configService']=_0x2bbb1b,_0x1d93f6(this,'_cfgEnableObjInherit',!0x1),this[_0xc704c2(0x337)]();}[_0x4afe6d(0x337)](){let _0x1879ce=this;this['disposeWithMe'](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,_0x3c3932['MergeInterceptorFactory'])({'isMatch'(_0x1351fb){const _0x342769=_0x4f14;var _0x18eb84;if(_0x1351fb[_0x342769(0x3cf)]==='POST'&&(_0x18eb84=_0x1351fb[_0x342769(0x123)])!=null&&_0x18eb84[_0x342769(0x271)]){let {objectID:_0x1bba03,objectType:_0x3dd22d}=_0x1351fb[_0x342769(0x123)][_0x342769(0x271)]||{};if(!_0x1bba03||_0x3dd22d===void 0x0)return!0x1;let _0x3d2af3=_0x1879ce[_0x342769(0x418)]()+'/'+_0x3dd22d+_0x342769(0x325)+_0x1bba03+_0x342769(0x2be);if(_0x1351fb[_0x342769(0x161)]===_0x3d2af3)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x56b37f){const _0x58b4af=_0x4f14;var _0x2f3df6;return(_0x2f3df6=_0x56b37f[_0x58b4af(0x123)])==null?void 0x0:_0x2f3df6[_0x58b4af(0x271)];},'mergeParamsToRequest'(_0x3cae69,_0x5e3566){const _0x451f56=_0x4f14;let _0x481435=_0x1879ce[_0x451f56(0x418)]()+'/-/object/-/batch_allowed',_0x1aaed3=_0x3cae69[_0x451f56(0x3e4)]((_0x3189b4,_0x45d2c1)=>{const _0x1f2ef8=_0x451f56;let {unitID:_0x3ff294,objectID:_0x43113d,objectType:_0x343703,actions:_0x4a71cb}=_0x45d2c1;return _0x3189b4[_0x3ff294]||(_0x3189b4[_0x3ff294]={}),_0x3189b4[_0x3ff294][_0x43113d]||(_0x3189b4[_0x3ff294][_0x43113d]={'objectID':_0x43113d,'objectType':_0x343703,'actions':[]}),_0x3189b4[_0x3ff294][_0x43113d][_0x1f2ef8(0x25c)][_0x1f2ef8(0x399)](..._0x4a71cb),_0x3189b4;},{}),_0x181469=[];for(let _0x14bf63 in _0x1aaed3)for(let _0x3d1df9 in _0x1aaed3[_0x14bf63]){let {actions:_0x3c8bd6,objectType:_0x5e229f}=_0x1aaed3[_0x14bf63][_0x3d1df9],_0x3a862a=[...new Set(_0x3c8bd6)];_0x181469[_0x451f56(0x399)]({'unitID':_0x14bf63,'objectID':_0x3d1df9,'objectType':_0x5e229f,'actions':_0x3a862a});}return new _0x3c3932[(_0x451f56(0x310))](_0x451f56(0x1ad),_0x481435,{'headers':_0x5e3566[_0x451f56(0x27d)],'withCredentials':_0x5e3566['withCredentials'],'responseType':_0x5e3566['responseType'],'body':{'requests':_0x181469}});}},{'distributeResult'(_0x506349,_0x2e7bc7){const _0x30841f=_0x4f14;let {objectActions:_0x4d50a5}=_0x506349;return _0x2e7bc7[_0x30841f(0x299)](_0x2bf7de=>{const _0x29df94=_0x30841f;let {unitID:_0x48b018,objectID:_0x10866e,actions:_0x34d9c3}=_0x2bf7de,_0x4c16c6=_0x4d50a5['find'](_0x12e861=>_0x12e861[_0x29df94(0x3b1)]===_0x48b018&&_0x12e861[_0x29df94(0x197)]===_0x10866e);return{'config':_0x2bf7de,'result':{'actions':_0x34d9c3[_0x29df94(0x299)](_0x3ccef2=>_0x4c16c6==null?void 0x0:_0x4c16c6[_0x29df94(0x25c)]['find'](_0x4ee95b=>_0x4ee95b[_0x29df94(0x20f)]===_0x3ccef2))[_0x29df94(0x176)](_0x2769cc=>!!_0x2769cc),'error':_0x506349[_0x29df94(0x106)]}};});}})}));}[_0x4afe6d(0x418)](){const _0x2afad1=_0x4afe6d;var _0xbe41ae;let _0x139e2b=this[_0x2afad1(0x3b8)][_0x2afad1(0x170)](_0x440361);return(_0xbe41ae=_0x139e2b==null?void 0x0:_0x139e2b[_0x2afad1(0x419)])==null?_0x2afad1(0x258):_0xbe41ae;}async[_0x4afe6d(0x1bf)](_0x2ed5e0){const _0x41a11a=_0x4afe6d;let _0x27d14e=this[_0x41a11a(0x418)]()+'/'+_0x2ed5e0[_0x41a11a(0x323)]+_0x41a11a(0x1c5);return(await this['_HTTPService'][_0x41a11a(0x381)](_0x27d14e,{'body':_0x2ed5e0}))[_0x41a11a(0x271)]['objectID']||'';}async[_0x4afe6d(0x146)](_0x35499b){const _0x29775f=_0x4afe6d;let _0x4d0f88=this['_getAPIPrefixPath']()+_0x29775f(0x3a7);return(await this[_0x29775f(0x40a)][_0x29775f(0x381)](_0x4d0f88,{'body':_0x35499b}))[_0x29775f(0x271)][_0x29775f(0x104)];}async[_0x4afe6d(0x13f)](_0x3add05){const _0x1a8aef=_0x4afe6d;var _0x37faa8;let _0x532855=this[_0x1a8aef(0x418)]()+'/'+_0x3add05[_0x1a8aef(0x323)]+_0x1a8aef(0x325)+_0x3add05[_0x1a8aef(0x197)],_0x84d43f=await this[_0x1a8aef(0x40a)][_0x1a8aef(0x1de)](_0x532855,{'body':_0x3add05});if((_0x84d43f==null||(_0x37faa8=_0x84d43f[_0x1a8aef(0x271)])==null||(_0x37faa8=_0x37faa8[_0x1a8aef(0x106)])==null?void 0x0:_0x37faa8[_0x1a8aef(0x1a3)])!==0x1)throw Error(_0x1a8aef(0x15a));}async[_0x4afe6d(0x3e2)](_0x4f9fae){const _0x306681=_0x4afe6d;let _0x529ca6=this[_0x306681(0x418)]()+'/'+_0x4f9fae['objectType']+_0x306681(0x325)+_0x4f9fae[_0x306681(0x197)]+'/allowed';return(await this[_0x306681(0x40a)][_0x306681(0x381)](_0x529ca6,{'body':_0x4f9fae}))[_0x306681(0x271)][_0x306681(0x25c)];}async[_0x4afe6d(0x444)](_0x56c1df){const _0x5cf1d4=_0x4afe6d;let _0x39f415=this[_0x5cf1d4(0x418)]()+_0x5cf1d4(0x128);return(await this[_0x5cf1d4(0x40a)][_0x5cf1d4(0x381)](_0x39f415,{'body':{'requests':_0x56c1df}}))['body']['objectActions'];}async[_0x4afe6d(0x225)](_0x43bc44){const _0x152a72=_0x4afe6d;let _0x40cdf6=this[_0x152a72(0x418)]()+'/'+_0x43bc44[_0x152a72(0x323)]+_0x152a72(0x37f),_0x31e86c=await this['_HTTPService']['post'](_0x40cdf6,{'body':_0x43bc44});return{'roles':_0x31e86c['body']['roles'],'actions':_0x31e86c[_0x152a72(0x271)]['actions']};}async[_0x4afe6d(0x386)](_0x884334){const _0x2bd5b4=_0x4afe6d;let _0x2052cf=this[_0x2bd5b4(0x418)]()+'/collaborator';await this[_0x2bd5b4(0x40a)][_0x2bd5b4(0x151)](_0x2052cf,{'params':{'collaboratorID':_0x884334[_0x2bd5b4(0x18a)],'objectID':_0x884334[_0x2bd5b4(0x197)],'unitID':_0x884334['unitID']}});}async[_0x4afe6d(0x2fa)](_0x3e8c11){const _0x4d1bba=_0x4afe6d;let _0x2ec7fd=this[_0x4d1bba(0x418)]()+_0x4d1bba(0x322);await this['_HTTPService'][_0x4d1bba(0x443)](_0x2ec7fd,{'body':_0x3e8c11});}async[_0x4afe6d(0x11f)](_0x14190e){const _0x191c54=_0x4afe6d;let _0x59a036=this[_0x191c54(0x418)]()+_0x191c54(0x322);await this[_0x191c54(0x40a)]['post'](_0x59a036,{'body':_0x14190e});}async[_0x4afe6d(0x177)](_0x276178){const _0x2f3335=_0x4afe6d;var _0x42538a;let _0x549a98=this[_0x2f3335(0x418)]()+_0x2f3335(0x322),_0x16ea48=await this[_0x2f3335(0x40a)][_0x2f3335(0x28f)](_0x549a98,{'params':{'objectID':_0x276178[_0x2f3335(0x197)],'unitID':_0x276178[_0x2f3335(0x3b1)]}});return this[_0x2f3335(0x35d)]((_0x42538a=_0x16ea48[_0x2f3335(0x271)][_0x2f3335(0x329)])==null?!0x1:_0x42538a),_0x16ea48[_0x2f3335(0x271)][_0x2f3335(0x18c)];}async[_0x4afe6d(0x10a)](_0x54ac3f){const _0x154662=_0x4afe6d;let _0x3d47d2=this['_getAPIPrefixPath']()+_0x154662(0x322);await this[_0x154662(0x40a)]['put'](_0x3d47d2,{'body':_0x54ac3f});}['setCfgEnableObjInherit'](_0x25d895){this['_cfgEnableObjInherit']=_0x25d895;}['getCfgEnableObjInherit'](){return this['_cfgEnableObjInherit'];}};_0x91ddb2=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932[_0x4afe6d(0x359)])),_0x5c2cf(0x1,(0x0,_0x54340d['Inject'])(_0x54340d[_0x4afe6d(0x192)]))],_0x91ddb2);function _0x345363(_0x719aa){const _0x41cde2=_0x4afe6d;return _0x719aa instanceof Uint8Array||ArrayBuffer[_0x41cde2(0x31d)](_0x719aa)&&_0x719aa[_0x41cde2(0x194)]['name']===_0x41cde2(0x1b0)&&_0x41cde2(0x3b4)in _0x719aa&&_0x719aa[_0x41cde2(0x3b4)]===0x1;}function _0x444602(_0x180b78){const _0x566cbe=_0x4afe6d;if(typeof _0x180b78!='number')throw TypeError(_0x566cbe(0x131)+typeof _0x180b78);if(!Number[_0x566cbe(0x291)](_0x180b78)||_0x180b78<0x0)throw RangeError(_0x566cbe(0x2e5)+_0x180b78);}function _0x310a93(_0x4a830f,_0x222492,_0x4917fb=''){const _0x5b5180=_0x4afe6d;let _0x2e3b01=_0x345363(_0x4a830f),_0x26769f=_0x4a830f==null?void 0x0:_0x4a830f[_0x5b5180(0x414)],_0x3947ae=_0x222492!==void 0x0;if(!_0x2e3b01||_0x3947ae&&_0x26769f!==_0x222492){let _0x589d2d=_0x4917fb&&'\x22'+_0x4917fb+'\x22\x20',_0x3515a5=_0x3947ae?_0x5b5180(0x37a)+_0x222492:'',_0x2a2154=_0x2e3b01?'length='+_0x26769f:'type='+typeof _0x4a830f,_0x232253=_0x589d2d+'expected\x20Uint8Array'+_0x3515a5+',\x20got\x20'+_0x2a2154;throw _0x2e3b01?RangeError(_0x232253):TypeError(_0x232253);}return _0x4a830f;}function _0x54a535(_0x1a7698){const _0x19a0d7=_0x4afe6d;return new Uint32Array(_0x1a7698[_0x19a0d7(0x351)],_0x1a7698[_0x19a0d7(0x16c)],Math[_0x19a0d7(0x446)](_0x1a7698[_0x19a0d7(0x32f)]/0x4));}function _0x6f6655(..._0x36b655){for(let _0xcb0363=0x0;_0xcb0363<_0x36b655['length'];_0xcb0363++)_0x36b655[_0xcb0363]['fill'](0x0);}let _0x508774=new Uint8Array(new Uint32Array([0x11223344])['buffer'])[0x0]===0x44,_0x267239=_0x27c500=>_0x27c500<<0x18&0xff000000|_0x27c500<<0x8&0xff0000|_0x27c500>>>0x8&0xff00|_0x27c500>>>0x18&0xff,_0x4fbda8=_0x508774?_0x283a1f=>_0x283a1f:_0x3adba8=>{for(let _0x2e3d0d=0x0;_0x2e3d0d<_0x3adba8['length'];_0x2e3d0d++)_0x3adba8[_0x2e3d0d]=_0x267239(_0x3adba8[_0x2e3d0d]);return _0x3adba8;};function _0x3cdb17(_0x136769){const _0x3d7016=_0x4afe6d;if(typeof _0x136769!='string')throw TypeError('string\x20expected');return new Uint8Array(new TextEncoder()[_0x3d7016(0x42e)](_0x136769));}function _0xb11e7(_0x47066a,_0x1df2ae){const _0x1d992d=_0x4afe6d;return!_0x47066a['byteLength']||!_0x1df2ae[_0x1d992d(0x32f)]?!0x1:_0x47066a[_0x1d992d(0x351)]===_0x1df2ae[_0x1d992d(0x351)]&&_0x47066a['byteOffset']<_0x1df2ae[_0x1d992d(0x16c)]+_0x1df2ae['byteLength']&&_0x1df2ae[_0x1d992d(0x16c)]<_0x47066a['byteOffset']+_0x47066a[_0x1d992d(0x32f)];}function _0xfe040(_0x34b618,_0x549d9a){const _0x125fc6=_0x4afe6d;if(_0xb11e7(_0x34b618,_0x549d9a)&&_0x34b618['byteOffset']<_0x549d9a[_0x125fc6(0x16c)])throw Error(_0x125fc6(0x438));}function _0xd3b04d(..._0x1548f2){const _0x3b3ef4=_0x4afe6d;let _0xb29373=0x0;for(let _0x589959=0x0;_0x589959<_0x1548f2['length'];_0x589959++){let _0x2098b7=_0x1548f2[_0x589959];_0x310a93(_0x2098b7),_0xb29373+=_0x2098b7['length'];}let _0x488e30=new Uint8Array(_0xb29373);for(let _0x4f5b09=0x0,_0x2b638a=0x0;_0x4f5b09<_0x1548f2[_0x3b3ef4(0x414)];_0x4f5b09++){let _0xa958c4=_0x1548f2[_0x4f5b09];_0x488e30[_0x3b3ef4(0x437)](_0xa958c4,_0x2b638a),_0x2b638a+=_0xa958c4['length'];}return _0x488e30;}let _0x2a0d26=(_0x20914d,_0x5e9a3d)=>{const _0xd84038=_0x4afe6d;function _0x1e79a9(_0x3351e4,..._0x217286){const _0x25ca64=_0x4f14;if(_0x310a93(_0x3351e4,void 0x0,_0x25ca64(0x29c)),_0x20914d[_0x25ca64(0x15b)]!==void 0x0){let _0x3bda24=_0x217286[0x0];_0x310a93(_0x3bda24,_0x20914d[_0x25ca64(0x2fe)]?void 0x0:_0x20914d[_0x25ca64(0x15b)],'nonce');}let _0x54e452=_0x20914d[_0x25ca64(0x2a6)];_0x54e452&&_0x217286[0x1]!==void 0x0&&_0x310a93(_0x217286[0x1],void 0x0,_0x25ca64(0x188));let _0x165302=_0x5e9a3d(_0x3351e4,..._0x217286),_0x15973a=(_0x10ae59,_0x52a21a)=>{const _0x5d817a=_0x25ca64;if(_0x52a21a!==void 0x0){if(_0x10ae59!==0x2)throw Error(_0x5d817a(0x265));_0x310a93(_0x52a21a,void 0x0,_0x5d817a(0x411));}},_0x574faa=!0x1;return{'encrypt'(_0x2f00f9,_0x15da1d){const _0x301abd=_0x25ca64;if(_0x574faa)throw Error(_0x301abd(0x403));return _0x574faa=!0x0,_0x310a93(_0x2f00f9),_0x15973a(_0x165302[_0x301abd(0x39a)][_0x301abd(0x414)],_0x15da1d),_0x165302[_0x301abd(0x39a)](_0x2f00f9,_0x15da1d);},'decrypt'(_0x694862,_0x192b0b){const _0x315760=_0x25ca64;if(_0x310a93(_0x694862),_0x54e452&&_0x694862[_0x315760(0x414)]<_0x54e452)throw Error(_0x315760(0x19f)+_0x54e452);return _0x15973a(_0x165302['decrypt'][_0x315760(0x414)],_0x192b0b),_0x165302[_0x315760(0x19b)](_0x694862,_0x192b0b);}};}return Object[_0xd84038(0x3a9)](_0x1e79a9,_0x20914d),_0x1e79a9;};function _0x29cee7(_0x20cb3a,_0x356da6,_0x12c74c=!0x0){const _0x4001ee=_0x4afe6d;if(_0x356da6===void 0x0)return new Uint8Array(_0x20cb3a);if(_0x310a93(_0x356da6,void 0x0,_0x4001ee(0x411)),_0x356da6[_0x4001ee(0x414)]!==_0x20cb3a)throw Error(_0x4001ee(0x40c)+_0x20cb3a+_0x4001ee(0x288)+_0x356da6['length']);if(_0x12c74c&&!_0x442f09(_0x356da6))throw Error(_0x4001ee(0x10e));return _0x356da6;}function _0x442f09(_0x5b325c){const _0x18531d=_0x4afe6d;return _0x5b325c[_0x18531d(0x16c)]%0x4==0x0;}function _0x6f5fc3(_0xfc811e){const _0x371758=_0x4afe6d;return Uint8Array[_0x371758(0x2fd)](_0x310a93(_0xfc811e));}function _0x535155(_0x302dfc=0x20){const _0x3f96a6=_0x4afe6d;_0x444602(_0x302dfc);let _0x2473bc=typeof globalThis==_0x3f96a6(0x2bd)?globalThis[_0x3f96a6(0x297)]:null;if(typeof(_0x2473bc==null?void 0x0:_0x2473bc[_0x3f96a6(0x1a5)])!=_0x3f96a6(0x1cf))throw Error(_0x3f96a6(0x2f2));return _0x2473bc[_0x3f96a6(0x1a5)](new Uint8Array(_0x302dfc));}function _0x28be7d(_0x2db70b){const _0x38300f=_0x4afe6d;if(![0x10,0x18,0x20]['includes'](_0x2db70b[_0x38300f(0x414)]))throw Error(_0x38300f(0x391)+_0x2db70b[_0x38300f(0x414)]);}function _0x84d3ab(_0x1f2f8b){return _0x1f2f8b<<0x1^0x11b&-(_0x1f2f8b>>0x7);}function _0x3318bd(_0x574231,_0x4dc89e){let _0x209139=0x0;for(;_0x4dc89e>0x0;_0x4dc89e>>=0x1)_0x209139^=_0x574231&-(_0x4dc89e&0x1),_0x574231=_0x84d3ab(_0x574231);return _0x209139;}let _0x5d8d12=((()=>{let _0xbbcbcc=new Uint8Array(0x100);for(let _0xe45385=0x0,_0x386761=0x1;_0xe45385<0x100;_0xe45385++,_0x386761^=_0x84d3ab(_0x386761))_0xbbcbcc[_0xe45385]=_0x386761;let _0x45edc0=new Uint8Array(0x100);_0x45edc0[0x0]=0x63;for(let _0x4a587e=0x0;_0x4a587e<0xff;_0x4a587e++){let _0x4bb642=_0xbbcbcc[0xff-_0x4a587e];_0x4bb642|=_0x4bb642<<0x8,_0x45edc0[_0xbbcbcc[_0x4a587e]]=(_0x4bb642^_0x4bb642>>0x4^_0x4bb642>>0x5^_0x4bb642>>0x6^_0x4bb642>>0x7^0x63)&0xff;}return _0x6f6655(_0xbbcbcc),_0x45edc0;})()),_0x159678=_0x5d8d12[_0x4afe6d(0x299)]((_0x2e8530,_0x3b8197)=>_0x5d8d12[_0x4afe6d(0x25d)](_0x3b8197)),_0x559c59=_0x2280a7=>_0x2280a7<<0x18|_0x2280a7>>>0x8,_0x937f3f=_0x4b125a=>_0x4b125a<<0x8|_0x4b125a>>>0x18;function _0x1f64f1(_0x93e231,_0x47c823){const _0x2b6fc5=_0x4afe6d;if(_0x93e231[_0x2b6fc5(0x414)]!==0x100)throw Error(_0x2b6fc5(0x34a));let _0x4289b1=new Uint32Array(0x100)['map']((_0x3d23f7,_0x5a698e)=>_0x47c823(_0x93e231[_0x5a698e])),_0x1a3b39=_0x4289b1[_0x2b6fc5(0x299)](_0x937f3f),_0x12aba8=_0x1a3b39[_0x2b6fc5(0x299)](_0x937f3f),_0x42affe=_0x12aba8[_0x2b6fc5(0x299)](_0x937f3f),_0x1de64a=new Uint32Array(0x100*0x100),_0x27da49=new Uint32Array(0x100*0x100),_0x267963=new Uint16Array(0x100*0x100);for(let _0x3a5377=0x0;_0x3a5377<0x100;_0x3a5377++)for(let _0x24e920=0x0;_0x24e920<0x100;_0x24e920++){let _0x1857ac=_0x3a5377*0x100+_0x24e920;_0x1de64a[_0x1857ac]=_0x4289b1[_0x3a5377]^_0x1a3b39[_0x24e920],_0x27da49[_0x1857ac]=_0x12aba8[_0x3a5377]^_0x42affe[_0x24e920],_0x267963[_0x1857ac]=_0x93e231[_0x3a5377]<<0x8|_0x93e231[_0x24e920];}return{'sbox':_0x93e231,'sbox2':_0x267963,'T0':_0x4289b1,'T1':_0x1a3b39,'T2':_0x12aba8,'T3':_0x42affe,'T01':_0x1de64a,'T23':_0x27da49};}let _0x4d4cff=_0x1f64f1(_0x5d8d12,_0x2348fb=>_0x3318bd(_0x2348fb,0x3)<<0x18|_0x2348fb<<0x10|_0x2348fb<<0x8|_0x3318bd(_0x2348fb,0x2)),_0x4e19c1=_0x1f64f1(_0x159678,_0x19e031=>_0x3318bd(_0x19e031,0xb)<<0x18|_0x3318bd(_0x19e031,0xd)<<0x10|_0x3318bd(_0x19e031,0x9)<<0x8|_0x3318bd(_0x19e031,0xe)),_0x25e277=((()=>{let _0x35d84b=new Uint8Array(0x10);for(let _0x536203=0x0,_0x188c63=0x1;_0x536203<0x10;_0x536203++,_0x188c63=_0x84d3ab(_0x188c63))_0x35d84b[_0x536203]=_0x188c63;return _0x35d84b;})());function _0x5e041a(_0x110da5){const _0x6bad20=_0x4afe6d;_0x310a93(_0x110da5);let _0x3c3bd6=_0x110da5[_0x6bad20(0x414)];_0x28be7d(_0x110da5);let {sbox2:_0xff1dc}=_0x4d4cff,_0x4383d4=[];(!_0x508774||!_0x442f09(_0x110da5))&&_0x4383d4[_0x6bad20(0x399)](_0x110da5=_0x6f5fc3(_0x110da5));let _0x14d7dc=_0x4fbda8(_0x54a535(_0x110da5)),_0x4bdbc6=_0x14d7dc[_0x6bad20(0x414)],_0xb9090b=_0x2aadb4=>_0x5d64d0(_0xff1dc,_0x2aadb4,_0x2aadb4,_0x2aadb4,_0x2aadb4),_0x10b177=new Uint32Array(_0x3c3bd6+0x1c);_0x10b177[_0x6bad20(0x437)](_0x14d7dc);for(let _0x5dd319=_0x4bdbc6;_0x5dd319<_0x10b177[_0x6bad20(0x414)];_0x5dd319++){let _0x282530=_0x10b177[_0x5dd319-0x1];_0x5dd319%_0x4bdbc6===0x0?_0x282530=_0xb9090b(_0x559c59(_0x282530))^_0x25e277[_0x5dd319/_0x4bdbc6-0x1]:_0x4bdbc6>0x6&&_0x5dd319%_0x4bdbc6===0x4&&(_0x282530=_0xb9090b(_0x282530)),_0x10b177[_0x5dd319]=_0x10b177[_0x5dd319-_0x4bdbc6]^_0x282530;}return _0x6f6655(..._0x4383d4),_0x10b177;}function _0x436c9d(_0x3a42d2){const _0x552def=_0x4afe6d;let _0x4e83ac=_0x5e041a(_0x3a42d2),_0x3b4c7c=_0x4e83ac[_0x552def(0x1b6)](),_0x4ca041=_0x4e83ac['length'],{sbox2:_0x1aac93}=_0x4d4cff,{T0:_0x3c9322,T1:_0x22d56c,T2:_0x43d198,T3:_0x19a284}=_0x4e19c1;for(let _0x2ecca2=0x0;_0x2ecca2<_0x4ca041;_0x2ecca2+=0x4)for(let _0xa7dc3f=0x0;_0xa7dc3f<0x4;_0xa7dc3f++)_0x3b4c7c[_0x2ecca2+_0xa7dc3f]=_0x4e83ac[_0x4ca041-_0x2ecca2-0x4+_0xa7dc3f];_0x6f6655(_0x4e83ac);for(let _0x1bd4d0=0x4;_0x1bd4d0<_0x4ca041-0x4;_0x1bd4d0++){let _0x1d1d75=_0x3b4c7c[_0x1bd4d0],_0x3a20eb=_0x5d64d0(_0x1aac93,_0x1d1d75,_0x1d1d75,_0x1d1d75,_0x1d1d75);_0x3b4c7c[_0x1bd4d0]=_0x3c9322[_0x3a20eb&0xff]^_0x22d56c[_0x3a20eb>>>0x8&0xff]^_0x43d198[_0x3a20eb>>>0x10&0xff]^_0x19a284[_0x3a20eb>>>0x18];}return _0x3b4c7c;}function _0x291043(_0x2ae66f,_0x11a7c6,_0x368dff,_0x1bdf39,_0x20921f,_0x52f71e){return _0x2ae66f[_0x368dff<<0x8&0xff00|_0x1bdf39>>>0x8&0xff]^_0x11a7c6[_0x20921f>>>0x8&0xff00|_0x52f71e>>>0x18&0xff];}function _0x5d64d0(_0x21b188,_0x2da985,_0x19dacd,_0x34aa79,_0x3bb651){return _0x21b188[_0x2da985&0xff|_0x19dacd&0xff00]|_0x21b188[_0x34aa79>>>0x10&0xff|_0x3bb651>>>0x10&0xff00]<<0x10;}function _0x2a947e(_0x10026d,_0x515eba,_0x5e2600,_0x3f2bfd,_0x492a85){const _0x46f6f4=_0x4afe6d;let {sbox2:_0x3bf0e9,T01:_0x385f9b,T23:_0x4a2938}=_0x4d4cff,_0x320687=0x0;_0x515eba^=_0x10026d[_0x320687++],_0x5e2600^=_0x10026d[_0x320687++],_0x3f2bfd^=_0x10026d[_0x320687++],_0x492a85^=_0x10026d[_0x320687++];let _0x399ebe=_0x10026d[_0x46f6f4(0x414)]/0x4-0x2;for(let _0x5ac76f=0x0;_0x5ac76f<_0x399ebe;_0x5ac76f++){let _0x180523=_0x10026d[_0x320687++]^_0x291043(_0x385f9b,_0x4a2938,_0x515eba,_0x5e2600,_0x3f2bfd,_0x492a85),_0x524588=_0x10026d[_0x320687++]^_0x291043(_0x385f9b,_0x4a2938,_0x5e2600,_0x3f2bfd,_0x492a85,_0x515eba),_0x2bbc0c=_0x10026d[_0x320687++]^_0x291043(_0x385f9b,_0x4a2938,_0x3f2bfd,_0x492a85,_0x515eba,_0x5e2600),_0x52828e=_0x10026d[_0x320687++]^_0x291043(_0x385f9b,_0x4a2938,_0x492a85,_0x515eba,_0x5e2600,_0x3f2bfd);_0x515eba=_0x180523,_0x5e2600=_0x524588,_0x3f2bfd=_0x2bbc0c,_0x492a85=_0x52828e;}return{'s0':_0x10026d[_0x320687++]^_0x5d64d0(_0x3bf0e9,_0x515eba,_0x5e2600,_0x3f2bfd,_0x492a85),'s1':_0x10026d[_0x320687++]^_0x5d64d0(_0x3bf0e9,_0x5e2600,_0x3f2bfd,_0x492a85,_0x515eba),'s2':_0x10026d[_0x320687++]^_0x5d64d0(_0x3bf0e9,_0x3f2bfd,_0x492a85,_0x515eba,_0x5e2600),'s3':_0x10026d[_0x320687++]^_0x5d64d0(_0x3bf0e9,_0x492a85,_0x515eba,_0x5e2600,_0x3f2bfd)};}function _0xb7c610(_0x334e0d,_0x296bae,_0x4764bc,_0x1b3c0a,_0x7421bf){const _0x506679=_0x4afe6d;let {sbox2:_0x42cce7,T01:_0x4e5cd9,T23:_0xdd399a}=_0x4e19c1,_0x76ca48=0x0;_0x296bae^=_0x334e0d[_0x76ca48++],_0x4764bc^=_0x334e0d[_0x76ca48++],_0x1b3c0a^=_0x334e0d[_0x76ca48++],_0x7421bf^=_0x334e0d[_0x76ca48++];let _0x5e34be=_0x334e0d[_0x506679(0x414)]/0x4-0x2;for(let _0x5f40e4=0x0;_0x5f40e4<_0x5e34be;_0x5f40e4++){let _0x35161e=_0x334e0d[_0x76ca48++]^_0x291043(_0x4e5cd9,_0xdd399a,_0x296bae,_0x7421bf,_0x1b3c0a,_0x4764bc),_0x8fc271=_0x334e0d[_0x76ca48++]^_0x291043(_0x4e5cd9,_0xdd399a,_0x4764bc,_0x296bae,_0x7421bf,_0x1b3c0a),_0x2f2a16=_0x334e0d[_0x76ca48++]^_0x291043(_0x4e5cd9,_0xdd399a,_0x1b3c0a,_0x4764bc,_0x296bae,_0x7421bf),_0x36bd8e=_0x334e0d[_0x76ca48++]^_0x291043(_0x4e5cd9,_0xdd399a,_0x7421bf,_0x1b3c0a,_0x4764bc,_0x296bae);_0x296bae=_0x35161e,_0x4764bc=_0x8fc271,_0x1b3c0a=_0x2f2a16,_0x7421bf=_0x36bd8e;}return{'s0':_0x334e0d[_0x76ca48++]^_0x5d64d0(_0x42cce7,_0x296bae,_0x7421bf,_0x1b3c0a,_0x4764bc),'s1':_0x334e0d[_0x76ca48++]^_0x5d64d0(_0x42cce7,_0x4764bc,_0x296bae,_0x7421bf,_0x1b3c0a),'s2':_0x334e0d[_0x76ca48++]^_0x5d64d0(_0x42cce7,_0x1b3c0a,_0x4764bc,_0x296bae,_0x7421bf),'s3':_0x334e0d[_0x76ca48++]^_0x5d64d0(_0x42cce7,_0x7421bf,_0x1b3c0a,_0x4764bc,_0x296bae)};}function _0x530f77(_0x47a2d5){const _0x3cd763=_0x4afe6d;if(_0x310a93(_0x47a2d5),_0x47a2d5[_0x3cd763(0x414)]%0x10!=0x0)throw Error(_0x3cd763(0x28b));}function _0x4e4711(_0x1c7d7a,_0x5ec0b9,_0x1d170b){const _0x4c36da=_0x4afe6d;_0x310a93(_0x1c7d7a);let _0x134eaf=_0x1c7d7a[_0x4c36da(0x414)],_0x24e345=_0x134eaf%0x10;if(!_0x5ec0b9&&_0x24e345!==0x0)throw Error(_0x4c36da(0x235));if(_0x5ec0b9){let _0x44a0d1=0x10-_0x24e345;_0x44a0d1||(_0x44a0d1=0x10),_0x134eaf+=_0x44a0d1;}_0x1d170b=_0x29cee7(_0x134eaf,_0x1d170b),_0xfe040(_0x1c7d7a,_0x1d170b),(!_0x508774||!_0x442f09(_0x1c7d7a))&&(_0x1c7d7a=_0x6f5fc3(_0x1c7d7a));let _0x4c8d06=_0x54a535(_0x1c7d7a);return _0x4fbda8(_0x4c8d06),{'b':_0x4c8d06,'o':_0x54a535(_0x1d170b),'out':_0x1d170b};}function _0x55f499(_0x385b58,_0x121248){const _0x124ef9=_0x4afe6d;if(!_0x121248)return _0x385b58;let _0x200530=_0x385b58[_0x124ef9(0x414)];if(_0x200530===0x0)throw Error(_0x124ef9(0x43f));let _0x75e69c=_0x385b58[_0x200530-0x1],_0x305db1=0x1;_0x305db1&=_0x75e69c-0x1>>>0x1f^0x1,_0x305db1&=0x10-_0x75e69c>>>0x1f^0x1;for(let _0x15cbd6=0x0;_0x15cbd6<0x10;_0x15cbd6++){let _0x5a1cdc=_0x15cbd6-_0x75e69c>>>0x1f,_0x1167e3=+((_0x385b58[_0x200530-0x1-_0x15cbd6]^_0x75e69c)===0x0);_0x305db1&=_0x1167e3|_0x5a1cdc^0x1;}if(!_0x305db1)throw Error(_0x124ef9(0x334));return _0x385b58[_0x124ef9(0x400)](0x0,_0x200530-_0x75e69c);}function _0x332098(_0x4a1c04){const _0xd09e91=_0x4afe6d;let _0x1c470b=new Uint8Array(0x10),_0x5f2a32=_0x54a535(_0x1c470b);_0x1c470b['set'](_0x4a1c04);let _0x36762e=0x10-_0x4a1c04[_0xd09e91(0x414)];for(let _0x5ebadb=0x10-_0x36762e;_0x5ebadb<0x10;_0x5ebadb++)_0x1c470b[_0x5ebadb]=_0x36762e;return _0x5f2a32;}let _0x1e02c4=_0x2a0d26({'blockSize':0x10,'nonceLength':0x10},function(_0x4a6689,_0x1e2b3e,_0x4572a3={}){const _0x1b5e0b=_0x4afe6d;let _0x3a8b15=!_0x4572a3[_0x1b5e0b(0x33e)];return{'encrypt'(_0xff2645,_0x40dabd){const _0x4aa09e=_0x1b5e0b;let _0x50668e=_0x5e041a(_0x4a6689),{b:_0x3afc5a,o:_0x257ef2,out:_0x2c64da}=_0x4e4711(_0xff2645,_0x3a8b15,_0x40dabd),_0x47e2f4=_0x1e2b3e,_0x185c86=[_0x50668e];(!_0x508774||!_0x442f09(_0x47e2f4))&&_0x185c86[_0x4aa09e(0x399)](_0x47e2f4=_0x6f5fc3(_0x47e2f4));let _0x2c216d=_0x54a535(_0x47e2f4);_0x4fbda8(_0x2c216d);let _0x5cff73=_0x2c216d[0x0],_0x55a2f1=_0x2c216d[0x1],_0x33e9ac=_0x2c216d[0x2],_0x26687b=_0x2c216d[0x3],_0x4bb9e9=0x0;for(;_0x4bb9e9+0x4<=_0x3afc5a[_0x4aa09e(0x414)];)_0x5cff73^=_0x3afc5a[_0x4bb9e9+0x0],_0x55a2f1^=_0x3afc5a[_0x4bb9e9+0x1],_0x33e9ac^=_0x3afc5a[_0x4bb9e9+0x2],_0x26687b^=_0x3afc5a[_0x4bb9e9+0x3],{s0:_0x5cff73,s1:_0x55a2f1,s2:_0x33e9ac,s3:_0x26687b}=_0x2a947e(_0x50668e,_0x5cff73,_0x55a2f1,_0x33e9ac,_0x26687b),_0x257ef2[_0x4bb9e9++]=_0x5cff73,_0x257ef2[_0x4bb9e9++]=_0x55a2f1,_0x257ef2[_0x4bb9e9++]=_0x33e9ac,_0x257ef2[_0x4bb9e9++]=_0x26687b;if(_0x3a8b15){let _0x43558d=_0x332098(_0xff2645[_0x4aa09e(0x400)](_0x4bb9e9*0x4));_0x4fbda8(_0x43558d),_0x5cff73^=_0x43558d[0x0],_0x55a2f1^=_0x43558d[0x1],_0x33e9ac^=_0x43558d[0x2],_0x26687b^=_0x43558d[0x3],{s0:_0x5cff73,s1:_0x55a2f1,s2:_0x33e9ac,s3:_0x26687b}=_0x2a947e(_0x50668e,_0x5cff73,_0x55a2f1,_0x33e9ac,_0x26687b),_0x257ef2[_0x4bb9e9++]=_0x5cff73,_0x257ef2[_0x4bb9e9++]=_0x55a2f1,_0x257ef2[_0x4bb9e9++]=_0x33e9ac,_0x257ef2[_0x4bb9e9++]=_0x26687b;}return _0x4fbda8(_0x257ef2),_0x6f6655(..._0x185c86),_0x2c64da;},'decrypt'(_0x22be69,_0x119469){const _0x447184=_0x1b5e0b;_0x530f77(_0x22be69);let _0x1ed0fc=_0x436c9d(_0x4a6689),_0x2b228f=_0x1e2b3e,_0x3e10d0=[_0x1ed0fc];(!_0x508774||!_0x442f09(_0x2b228f))&&_0x3e10d0[_0x447184(0x399)](_0x2b228f=_0x6f5fc3(_0x2b228f));let _0x1d9a48=_0x54a535(_0x2b228f);_0x4fbda8(_0x1d9a48),_0x119469=_0x29cee7(_0x22be69[_0x447184(0x414)],_0x119469),_0xfe040(_0x22be69,_0x119469),(!_0x508774||!_0x442f09(_0x22be69))&&_0x3e10d0[_0x447184(0x399)](_0x22be69=_0x6f5fc3(_0x22be69));let _0x1dd7dc=_0x54a535(_0x22be69),_0x36a0b8=_0x54a535(_0x119469);_0x4fbda8(_0x1dd7dc);let _0x269a17=_0x1d9a48[0x0],_0x49d018=_0x1d9a48[0x1],_0x532ea4=_0x1d9a48[0x2],_0x15e8f1=_0x1d9a48[0x3];for(let _0x5e5f97=0x0;_0x5e5f97+0x4<=_0x1dd7dc[_0x447184(0x414)];){let _0x3cca70=_0x269a17,_0x2e9e6f=_0x49d018,_0x493e4e=_0x532ea4,_0x595ae6=_0x15e8f1;_0x269a17=_0x1dd7dc[_0x5e5f97+0x0],_0x49d018=_0x1dd7dc[_0x5e5f97+0x1],_0x532ea4=_0x1dd7dc[_0x5e5f97+0x2],_0x15e8f1=_0x1dd7dc[_0x5e5f97+0x3];let {s0:_0x72e140,s1:_0x22d152,s2:_0x569391,s3:_0x120611}=_0xb7c610(_0x1ed0fc,_0x269a17,_0x49d018,_0x532ea4,_0x15e8f1);_0x36a0b8[_0x5e5f97++]=_0x72e140^_0x3cca70,_0x36a0b8[_0x5e5f97++]=_0x22d152^_0x2e9e6f,_0x36a0b8[_0x5e5f97++]=_0x569391^_0x493e4e,_0x36a0b8[_0x5e5f97++]=_0x120611^_0x595ae6;}return _0x4fbda8(_0x36a0b8),_0x6f6655(..._0x3e10d0),_0x55f499(_0x119469,_0x3a8b15);}};});function _0x2e33f1(_0x1d2ea7){const _0x310c82=_0x4afe6d;let _0x3332de=atob(_0x1d2ea7),_0x41dcf3=new Uint8Array(_0x3332de[_0x310c82(0x414)]);for(let _0x136871=0x0;_0x136871<_0x3332de[_0x310c82(0x414)];_0x136871++)_0x41dcf3[_0x136871]=_0x3332de[_0x310c82(0x430)](_0x136871);return _0x41dcf3;}function _0x201e42(_0x1b9ff5){const _0xd6c0bd=_0x4afe6d;let _0x41c2a9='';for(let _0x2b105a=0x0;_0x2b105a<_0x1b9ff5['length'];_0x2b105a++)_0x41c2a9+=String[_0xd6c0bd(0x13a)](_0x1b9ff5[_0x2b105a]);return btoa(_0x41c2a9);}function _0x4f39e4(_0x1f3e9e,_0x197706){const _0x4502d5=_0x4afe6d;let _0x45dbc9=_0x2e33f1(_0x197706),_0x215089=_0x535155(0x10);return _0x201e42(_0xd3b04d(_0x215089,_0x1e02c4(_0x45dbc9,_0x215089)[_0x4502d5(0x39a)](_0x3cdb17(_0x1f3e9e))));}function _0xc78ee8(){const _0x2d8a20=_0x4afe6d;let _0x3e1738=(0x0,_0x40a29c[_0x2d8a20(0x173)])()[_0x2d8a20(0x211)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x3e1738){let _0x225c4b={'time':Math['floor'](Date['now']()/0x3e8),'domain':location[_0x2d8a20(0x3d4)]};return _0x4f39e4(JSON[_0x2d8a20(0x1c6)](_0x225c4b),_0x3e1738);}}let _0x13f78f=class{constructor(_0x1941a8){const _0x2c6c56=_0x4afe6d;this[_0x2c6c56(0x1e3)]=_0x1941a8,this['_initRequestHeader']();}[_0x4afe6d(0x41f)](){const _0x2e9c6f=_0x4afe6d;this[_0x2e9c6f(0x1e3)][_0x2e9c6f(0x2cf)]({'interceptor':(_0x49a842,_0x396b13)=>{const _0x5408b2=_0x2e9c6f;let _0x353d83=_0xc78ee8();return _0x353d83&&_0x49a842[_0x5408b2(0x27d)][_0x5408b2(0x437)](_0x5408b2(0x262),_0x353d83),_0x396b13(_0x49a842);}});}};_0x13f78f=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932[_0x4afe6d(0x359)]))],_0x13f78f);let _0x405412=class extends _0x54340d['RxDisposable']{constructor(_0x43c4a8,_0x394856,_0x37303f){const _0x2b8207=_0x4afe6d;super(),this[_0x2b8207(0x30d)]=_0x43c4a8,this['_snapshotService']=_0x394856,this[_0x2b8207(0x1af)]=_0x37303f,_0x1d93f6(this,'_unitInfo$',new _0x501c4e['BehaviorSubject'](null)),_0x1d93f6(this,_0x2b8207(0x157),new _0x501c4e[(_0x2b8207(0x1d6))]()),_0x1d93f6(this,_0x2b8207(0x2b0),this['_unitInfo$'][_0x2b8207(0x371)]()),_0x1d93f6(this,_0x2b8207(0x382),this[_0x2b8207(0x157)][_0x2b8207(0x371)]());}[_0x4afe6d(0x445)](){const _0x1b93a2=_0x4afe6d;super[_0x1b93a2(0x445)](),this['_unitLoaded$'][_0x1b93a2(0x228)](),this[_0x1b93a2(0x2b9)][_0x1b93a2(0x228)]();}async[_0x4afe6d(0x1db)](_0x29aace,_0x4593fb,_0x5e12da,_0x71b28b){const _0xda0e66=_0x4afe6d;this[_0xda0e66(0x2b9)][_0xda0e66(0x16a)]({'unitId':_0x29aace,'type':_0x4593fb,'subUnitId':_0x71b28b});let _0x3c3d08=null;switch(_0x4593fb){case _0x54340d[_0xda0e66(0x395)]['UNIVER_SHEET']:_0x3c3d08=await this[_0xda0e66(0xfa)][_0xda0e66(0x2d2)](_0x29aace,_0x5e12da,void 0x0,{'initialSubUnitId':_0x71b28b});break;case _0x54340d[_0xda0e66(0x395)][_0xda0e66(0x366)]:_0x3c3d08=await this[_0xda0e66(0xfa)][_0xda0e66(0x2c9)](_0x29aace,_0x5e12da);break;case _0x54340d[_0xda0e66(0x395)][_0xda0e66(0x2f6)]:_0x3c3d08=await this['_snapshotService'][_0xda0e66(0x315)](_0x29aace,_0x5e12da);break;case _0x54340d[_0xda0e66(0x395)][_0xda0e66(0x1b3)]:_0x3c3d08=await this['_snapshotService'][_0xda0e66(0x341)](_0x29aace,_0x5e12da);break;case _0x54340d[_0xda0e66(0x395)][_0xda0e66(0x193)]:_0x3c3d08=await this[_0xda0e66(0xfa)][_0xda0e66(0xf5)](_0x29aace,_0x5e12da);break;default:this[_0xda0e66(0x30d)][_0xda0e66(0x106)](_0xda0e66(0x15d),_0xda0e66(0x3d6));break;}return _0x3c3d08&&this[_0xda0e66(0x157)][_0xda0e66(0x16a)](_0x3c3d08),_0x3c3d08;}async[_0x4afe6d(0x281)](_0x5dd3e3,_0x751455,_0x8d62a3){const _0x573ea5=_0x4afe6d;var _0x2fa9b4;this[_0x573ea5(0x2b9)][_0x573ea5(0x16a)]({'unitId':_0x5dd3e3,'type':_0x751455,'subUnitId':_0x8d62a3});let _0x46a4a8=0x0,_0x30186d=await((_0x2fa9b4=this[_0x573ea5(0x1af)])==null?void 0x0:_0x2fa9b4[_0x573ea5(0x447)](_0x5dd3e3));return _0x30186d&&(_0x30186d['awaitingChangeset']||_0x30186d[_0x573ea5(0x29a)][_0x573ea5(0x414)]!==0x0)&&(_0x46a4a8=_0x30186d[_0x573ea5(0x427)]),_0x46a4a8===0x0&&this[_0x573ea5(0x30d)][_0x573ea5(0x103)](_0x573ea5(0x15d),_0x573ea5(0x289)),this[_0x573ea5(0x1db)](_0x5dd3e3,_0x751455,_0x46a4a8,_0x8d62a3);}};_0x405412=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x1,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x510a16[_0x4afe6d(0x402)])),_0x5c2cf(0x2,(0x0,_0x54340d[_0x4afe6d(0x10b)])(_0x1cadf3))],_0x405412);let _0xf97092=class{constructor(_0x9d5cd6,_0x1a2ac6,_0x22482e){const _0x541474=_0x4afe6d;this['_httpService']=_0x9d5cd6,this[_0x541474(0x3b8)]=_0x1a2ac6,this[_0x541474(0x18f)]=_0x22482e,_0x1d93f6(this,_0x541474(0x2ea),0x0),_0x1d93f6(this,_0x541474(0x207),new _0x501c4e['Subject']()),_0x1d93f6(this,_0x541474(0x256),this[_0x541474(0x207)]),_0x1d93f6(this,_0x541474(0x1f1),new Map());}[_0x4afe6d(0x29d)](_0xbace80){const _0x5da00b=_0x4afe6d;this[_0x5da00b(0x2ea)]=_0xbace80,this[_0x5da00b(0x207)][_0x5da00b(0x16a)](_0xbace80);}[_0x4afe6d(0x2cb)](_0x3466af,_0x36b22b){const _0x168a89=_0x4afe6d;if(_0x36b22b===_0x54340d['ImageSourceType'][_0x168a89(0x224)]){let _0x9ab667=new Image();return _0x9ab667[_0x168a89(0xff)]=_0x3466af,_0x9ab667;}return this['_imageSourceCache']['get'](_0x3466af);}['addImageSourceCache'](_0x1ebef1,_0x42537e,_0xc436e3){const _0x178738=_0x4afe6d;_0x42537e===_0x54340d['ImageSourceType'][_0x178738(0x224)]||_0xc436e3==null||this['_imageSourceCache'][_0x178738(0x437)](_0x1ebef1,_0xc436e3);}async[_0x4afe6d(0x12b)](_0x2d2068){const _0x4be44c=_0x4afe6d;try{let _0x7cb513=this['_replaceFileID'](this[_0x4be44c(0x29b)](),''+_0x2d2068),_0x52add8=(await this[_0x4be44c(0x1e3)]['get'](_0x7cb513))[_0x4be44c(0x271)];if(_0x52add8['error']&&_0x52add8[_0x4be44c(0x106)][_0x4be44c(0x1a3)]===_0x3a112b[_0x4be44c(0x1c1)]['OK']){let _0x30b04b=(0x0,_0x54340d[_0x4be44c(0x276)])(_0x52add8[_0x4be44c(0x161)],this[_0x4be44c(0x184)]());return Promise[_0x4be44c(0x35e)](_0x30b04b);}return Promise[_0x4be44c(0x18e)](_0x52add8[_0x4be44c(0x106)]);}catch(_0x4ebac2){return Promise[_0x4be44c(0x18e)](_0x4ebac2);}}async['saveImage'](_0x486855){const _0x1b5770=_0x4afe6d;let _0x2b2215='';if(!_0x728a29[_0x1b5770(0x1fe)]['includes'](_0x486855[_0x1b5770(0x154)]))return this[_0x1b5770(0x11b)](),Promise['reject'](Error(_0x54340d[_0x1b5770(0x3b2)][_0x1b5770(0x3cc)]));if(_0x486855[_0x1b5770(0x389)]>(0x0,_0x728a29[_0x1b5770(0x1c9)])())return this[_0x1b5770(0x11b)](),Promise[_0x1b5770(0x18e)](Error(_0x54340d[_0x1b5770(0x3b2)]['ERROR_EXCEED_SIZE']));try{let _0x341cb6=new FormData();_0x341cb6[_0x1b5770(0x2ae)]('file',_0x486855);let _0x27d4a2=this[_0x1b5770(0x18f)][_0x1b5770(0x26f)](),_0x113ff8=_0x27d4a2==null?void 0x0:_0x27d4a2[_0x1b5770(0x40f)]();if(!_0x113ff8)throw Error(_0x1b5770(0x312));let _0x1dfd54=this[_0x1b5770(0x3bd)]()+'?size='+_0x486855[_0x1b5770(0x389)][_0x1b5770(0x3df)]()+_0x1b5770(0x3aa)+_0x3a112b[_0x1b5770(0x3fd)][_0x1b5770(0x204)]+_0x1b5770(0x37b)+encodeURIComponent(_0x113ff8),_0x22c3b8={'body':_0x341cb6},_0x32ecfd=(await this['_httpService']['post'](_0x1dfd54,_0x22c3b8))[_0x1b5770(0x271)];if(typeof _0x32ecfd['FileId']!=_0x1b5770(0x1ab))return this[_0x1b5770(0x11b)](),Promise['reject'](Error(_0x54340d[_0x1b5770(0x3b2)][_0x1b5770(0x217)]));_0x2b2215=_0x32ecfd['FileId'];}catch{return this[_0x1b5770(0x11b)](),Promise[_0x1b5770(0x18e)](Error(_0x54340d[_0x1b5770(0x3b2)]['ERROR_IMAGE']));}return new Promise((_0x3bba83,_0x4fbeb0)=>{const _0x5b1282=_0x1b5770;let _0x319f65=new FileReader();_0x319f65[_0x5b1282(0x216)](_0x486855),_0x319f65['onload']=_0x26fd7a=>{const _0x9963f2=_0x5b1282;var _0x57c913;let _0x4dd501=(_0x57c913=_0x26fd7a[_0x9963f2(0x12f)])==null?void 0x0:_0x57c913[_0x9963f2(0x2a9)];if(_0x4dd501==null){this[_0x9963f2(0x11b)](),_0x4fbeb0(Error(_0x54340d[_0x9963f2(0x3b2)][_0x9963f2(0x217)]));return;}_0x3bba83({'imageId':(0x0,_0x54340d[_0x9963f2(0x293)])(0x6),'imageSourceType':_0x54340d[_0x9963f2(0x162)]['UUID'],'source':_0x2b2215,'base64Cache':_0x4dd501,'status':_0x54340d[_0x9963f2(0x3b2)][_0x9963f2(0x107)]}),this[_0x9963f2(0x11b)]();};});}['_getUploadFileURL'](){const _0xa9666f=_0x4afe6d;var _0x3a0502;let _0x33d4de=this[_0xa9666f(0x3b8)][_0xa9666f(0x170)](_0x440361);return(_0x3a0502=_0x33d4de==null?void 0x0:_0x33d4de['uploadFileServerUrl'])==null?'/universer-api/stream/file/upload':_0x3a0502;}[_0x4afe6d(0x29b)](){const _0x49ca1a=_0x4afe6d;var _0x1e5739;let _0x50b6f2=this[_0x49ca1a(0x3b8)][_0x49ca1a(0x170)](_0x440361);return(_0x1e5739=_0x50b6f2==null?void 0x0:_0x50b6f2[_0x49ca1a(0x1e8)])==null?_0x49ca1a(0x139):_0x1e5739;}[_0x4afe6d(0x184)](){const _0x4e731a=_0x4afe6d;var _0x1aca7b;let _0x44637b=this[_0x4e731a(0x3b8)][_0x4e731a(0x170)](_0x440361);return(_0x1aca7b=_0x44637b==null?void 0x0:_0x44637b[_0x4e731a(0x3d1)])==null?location[_0x4e731a(0x34f)]:_0x1aca7b;}[_0x4afe6d(0x1ba)](_0xa2eb3f,_0x5ca71e){return _0xa2eb3f['replace']('{fileID}',_0x5ca71e);}[_0x4afe6d(0x11b)](){const _0x17d26e=_0x4afe6d;--this[_0x17d26e(0x2ea)],this['_change$']['next'](this[_0x17d26e(0x2ea)]);}};_0xf97092=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932[_0x4afe6d(0x359)])),_0x5c2cf(0x1,_0x54340d['IConfigService']),_0x5c2cf(0x2,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x21c)]))],_0xf97092);let _0x5268fb=class{constructor(_0x55cbc6,_0x5f1b02){const _0x529804=_0x4afe6d;this['_configService']=_0x55cbc6,this[_0x529804(0x40a)]=_0x5f1b02;}[_0x4afe6d(0x418)](){const _0x12b98b=_0x4afe6d;var _0x415f0c;let _0x56bfdf=this[_0x12b98b(0x3b8)][_0x12b98b(0x170)](_0x440361);return(_0x415f0c=_0x56bfdf==null?void 0x0:_0x56bfdf[_0x12b98b(0x419)])==null?'/universer-api/authz':_0x415f0c;}async[_0x4afe6d(0x146)](_0x433812){const _0x31e35c=_0x4afe6d;let _0x1f7b9b=this[_0x31e35c(0x418)]()+_0x31e35c(0x322);return{'list':[{'title':'People','mentions':(await this[_0x31e35c(0x40a)][_0x31e35c(0x28f)](_0x1f7b9b,{'params':{'objectID':_0x433812[_0x31e35c(0x3a1)],'unitID':_0x433812[_0x31e35c(0x3a1)]}}))[_0x31e35c(0x271)][_0x31e35c(0x18c)]['map'](_0x5bb757=>({'objectId':_0x5bb757['id'],'name':_0x5bb757['subject'][_0x31e35c(0x2a8)],'metadata':{'icon':_0x5bb757[_0x31e35c(0x196)]['avatar']},'label':_0x5bb757[_0x31e35c(0x196)][_0x31e35c(0x2a8)],'objectType':_0x54340d[_0x31e35c(0x308)]['PERSON']})),'metadata':{},'type':_0x54340d[_0x31e35c(0x308)][_0x31e35c(0x320)]}]};}};_0x5268fb=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x192)])),_0x5c2cf(0x1,(0x0,_0x54340d['Inject'])(_0x3c3932[_0x4afe6d(0x359)]))],_0x5268fb);let _0x3b5b34=class extends _0x54340d[_0x4afe6d(0x2bf)]{constructor(_0x1f2a93,_0x4d410e,_0x1e0250,_0xe1a16e,_0x4fc2b7){const _0xa682c=_0x4afe6d;super(),this[_0xa682c(0x19e)]=_0x1f2a93,this[_0xa682c(0x18f)]=_0x4d410e,this[_0xa682c(0x40e)]=_0x1e0250,this[_0xa682c(0x384)]=_0xe1a16e,this[_0xa682c(0x30b)]=_0x4fc2b7,this[_0xa682c(0x118)](),this[_0xa682c(0x40d)]();}[_0x4afe6d(0x40d)](){const _0x23a3f1=_0x4afe6d;let _0x4fb154=async _0xf4ccdd=>{const _0x1116f5=_0x4f14;(await this['_collaborationSessionService'][_0x1116f5(0x2ef)](_0xf4ccdd))['event$'][_0x1116f5(0x33c)]((0x0,_0x572a50[_0x1116f5(0x176)])(_0xd0a584=>_0xd0a584[_0x1116f5(0x10f)]===_0x510a16[_0x1116f5(0x17d)][_0x1116f5(0x10d)]),(0x0,_0x572a50[_0x1116f5(0x272)])(this[_0x1116f5(0x24d)]))[_0x1116f5(0x40b)](_0x17f447=>{const _0x385dec=_0x1116f5;let {reason:_0x3bee03}=_0x17f447[_0x385dec(0x2b8)];this[_0x385dec(0x30b)][_0x385dec(0x425)]({'id':_0x385dec(0x133),'data':_0x3bee03}),this[_0x385dec(0x40e)]['updatePermissionPoint'](new _0x2e3009[(_0x385dec(0x143))](_0xf4ccdd)['id'],!0x1),this[_0x385dec(0x384)][_0x385dec(0x14f)](_0xf4ccdd);});};(0x0,_0x501c4e['merge'])(this['_univerInstanceService'][_0x23a3f1(0x13d)](_0x54340d['UniverInstanceType'][_0x23a3f1(0x3ee)]),this[_0x23a3f1(0x18f)][_0x23a3f1(0x13d)](_0x54340d['UniverInstanceType'][_0x23a3f1(0x366)]),this[_0x23a3f1(0x18f)][_0x23a3f1(0x13d)](_0x54340d[_0x23a3f1(0x395)][_0x23a3f1(0x1b3)]),this[_0x23a3f1(0x18f)][_0x23a3f1(0x13d)](_0x54340d[_0x23a3f1(0x395)][_0x23a3f1(0x193)]))[_0x23a3f1(0x33c)]((0x0,_0x572a50[_0x23a3f1(0x299)])(_0x216f24=>_0x216f24[_0x23a3f1(0x37d)]['getUnitId']()),(0x0,_0x572a50[_0x23a3f1(0x176)])(_0x5095c7=>!(0x0,_0x54340d[_0x23a3f1(0x3b7)])(_0x5095c7)),(0x0,_0x572a50['takeUntil'])(this[_0x23a3f1(0x24d)]))[_0x23a3f1(0x40b)](_0x9c308a=>{_0x4fb154(_0x9c308a);});}[_0x4afe6d(0x118)](){const _0x16a7e7=_0x4afe6d;let _0x335990=async _0x3fc95e=>{const _0x3d191d=_0x4f14;let _0x272bfa=await this['_collaborationSessionService'][_0x3d191d(0x2ef)](_0x3fc95e),_0x2addd8=this['_injector'][_0x3d191d(0x28f)](_0x2e3009[_0x3d191d(0x303)]);_0x272bfa[_0x3d191d(0x2c0)][_0x3d191d(0x33c)]((0x0,_0x572a50[_0x3d191d(0x176)])(_0x485322=>_0x485322[_0x3d191d(0x10f)]===_0x510a16[_0x3d191d(0x17d)][_0x3d191d(0x350)]),(0x0,_0x572a50[_0x3d191d(0x272)])(this[_0x3d191d(0x24d)]))[_0x3d191d(0x40b)](_0x31665c=>{const _0xe7b747=_0x3d191d;let {objectId:_0x2e0f57}=_0x31665c[_0xe7b747(0x2b8)];_0x2e0f57===_0x3fc95e?_0x2addd8['initWorkbookPermissionChange'](_0x3fc95e):_0x2addd8[_0xe7b747(0x1bc)](_0x3fc95e,_0x2e0f57);});};(0x0,_0x501c4e[_0x16a7e7(0x362)])(this['_univerInstanceService'][_0x16a7e7(0x13d)](_0x54340d[_0x16a7e7(0x395)][_0x16a7e7(0x3ee)]))[_0x16a7e7(0x33c)]((0x0,_0x572a50[_0x16a7e7(0x299)])(_0x2711c2=>_0x2711c2[_0x16a7e7(0x37d)][_0x16a7e7(0x40f)]()),(0x0,_0x572a50[_0x16a7e7(0x176)])(_0x32a394=>!(0x0,_0x54340d[_0x16a7e7(0x3b7)])(_0x32a394)),(0x0,_0x572a50[_0x16a7e7(0x272)])(this['dispose$']))[_0x16a7e7(0x40b)](_0x3c8fc7=>{_0x335990(_0x3c8fc7);});}};_0x3b5b34=_0x3bbaf2([_0x5c2cf(0x0,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x1,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0x2,_0x54340d['IPermissionService']),_0x5c2cf(0x3,(0x0,_0x54340d['Inject'])(_0x1ef492)),_0x5c2cf(0x4,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x18b525))],_0x3b5b34);let _0x123e2b=class{constructor(_0xe62aa2,_0x154ce5){const _0x146521=_0x4afe6d;this[_0x146521(0x3b8)]=_0xe62aa2,this['_httpService']=_0x154ce5;}async[_0x4afe6d(0x279)](_0x55cb64,_0x1f7796){const _0x10e2c9=_0x4afe6d;var _0x16daa0;let {unitID:_0x1096e1,type:_0x18fd8d,revision:_0x28a3d6=0x0}=_0x1f7796,_0xcf6338=this[_0x10e2c9(0x22f)]()+'/'+_0x18fd8d+_0x10e2c9(0x3f2)+_0x1096e1+_0x10e2c9(0x31a)+_0x28a3d6,_0x37c512=(await this[_0x10e2c9(0x1e3)]['get'](_0xcf6338))[_0x10e2c9(0x271)],_0x2d6f59=(_0x16daa0=_0x37c512[_0x10e2c9(0x364)])==null?void 0x0:_0x16daa0[_0x10e2c9(0x1f4)];if(_0x2d6f59){let _0x4e77ba=_0x2d6f59==null?void 0x0:_0x2d6f59[_0x10e2c9(0x3b9)];_0x2d6f59['originalMeta']=_0x510a16[_0x10e2c9(0x3c9)][_0x10e2c9(0x42e)]((0x0,_0x510a16[_0x10e2c9(0x31c)])(_0x4e77ba)),Object['entries'](_0x2d6f59[_0x10e2c9(0x1d1)])['forEach'](([,_0x5be530])=>{const _0x4e12ed=_0x10e2c9;let _0x79dbc5=_0x5be530[_0x4e12ed(0x3b9)];_0x5be530[_0x4e12ed(0x3b9)]=_0x510a16['textEncoder'][_0x4e12ed(0x42e)]((0x0,_0x510a16[_0x4e12ed(0x31c)])(_0x79dbc5));});}return _0x37c512;}async[_0x4afe6d(0x13c)](_0x595c31,_0x3e5507){const _0x48b9ce=_0x4afe6d;let {unitID:_0x335212,type:_0x3bb0d8,blockID:_0x5ddd60}=_0x3e5507,_0x312333=this['_getAPIPrefix']()+'/'+_0x3bb0d8+_0x48b9ce(0x3f2)+_0x335212+_0x48b9ce(0x429)+_0x5ddd60;return(await this[_0x48b9ce(0x1e3)]['get'](_0x312333))['body'];}async['getDeserializedSheetBlock'](_0x2fd4a3,_0x3a0b4f){const _0x5a3569=_0x4afe6d;let {unitID:_0x4e7d1a,type:_0x41e82e,blockID:_0x2879ec}=_0x3a0b4f,_0x627668=this[_0x5a3569(0x185)]()+_0x5a3569(0x429)+_0x41e82e+_0x5a3569(0x3f2)+_0x4e7d1a+'/block/'+_0x2879ec;return(await this[_0x5a3569(0x1e3)][_0x5a3569(0x28f)](_0x627668))['body'];}async[_0x4afe6d(0x246)](_0x77ba38,_0x2d5f45){const _0x107260=_0x4afe6d;let {unitID:_0xb0a8bc,type:_0x4bcced,from:_0x7e96ae,to:_0x158faf}=_0x2d5f45,_0x5c75a8=this[_0x107260(0x185)]()+'/'+_0x4bcced+_0x107260(0x3f2)+_0xb0a8bc+_0x107260(0x352)+_0x7e96ae+_0x107260(0x3f1)+_0x158faf;return(await this[_0x107260(0x1e3)][_0x107260(0x28f)](_0x5c75a8))[_0x107260(0x271)];}[_0x4afe6d(0x22f)](){const _0x31d5c2=_0x4afe6d;var _0x58e984;return(_0x58e984=this[_0x31d5c2(0x3b8)][_0x31d5c2(0x170)]('SNAPSHOT_URL_KEY'))==null?this['_getAPIPrefix']():_0x58e984;}[_0x4afe6d(0x185)](){const _0x3ff8bc=_0x4afe6d;var _0x3fe50d;let _0x4cc266=this[_0x3ff8bc(0x3b8)][_0x3ff8bc(0x170)](_0x440361);return(_0x3fe50d=_0x4cc266==null?void 0x0:_0x4cc266[_0x3ff8bc(0x25e)])==null?_0x3ff8bc(0x1a4):_0x3fe50d;}async['getResourcesRequest'](_0x52bac0,_0x43de13){const _0x20fcf3=_0x4afe6d;let _0x35474b=_0x20fcf3(0x448)+_0x43de13[_0x20fcf3(0x154)]+'/unit/'+_0x43de13[_0x20fcf3(0x3b1)]+'/resources';return(await this[_0x20fcf3(0x1e3)][_0x20fcf3(0x28f)](_0x35474b,{'params':{'resourceId':JSON[_0x20fcf3(0x1c6)](_0x43de13[_0x20fcf3(0x3fb)])}}))[_0x20fcf3(0x271)];}[_0x4afe6d(0x3ef)](){const _0x7ad085=_0x4afe6d;throw Error(_0x7ad085(0x252));}[_0x4afe6d(0x158)](){const _0x5696e7=_0x4afe6d;throw Error(_0x5696e7(0x252));}[_0x4afe6d(0x18b)](){const _0xb6aece=_0x4afe6d;throw Error(_0xb6aece(0x252));}[_0x4afe6d(0x219)](){const _0x47d785=_0x4afe6d;throw Error(_0x47d785(0x252));}[_0x4afe6d(0x165)](){const _0x4df6d7=_0x4afe6d;throw Error(_0x4df6d7(0x252));}[_0x4afe6d(0x25b)](){const _0x20b54d=_0x4afe6d;throw Error(_0x20b54d(0x252));}};_0x123e2b=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d[_0x4afe6d(0x192)]),_0x5c2cf(0x1,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x3c3932['HTTPService']))],_0x123e2b);let _0x424687=class extends _0x54340d[_0x4afe6d(0x2b2)]{constructor(_0x213edd,_0x5d41a6,_0x7c8911,_0x1204cd,_0x497bde){const _0x56910d=_0x4afe6d;super(_0x213edd,_0x5d41a6,_0x7c8911),this['_transformService']=_0x1204cd,this[_0x56910d(0x30d)]=_0x497bde;}['transformUndoRedo'](_0x4b3846,_0xecf043){const _0x38929b=_0x4afe6d;let _0x47bed3=this[_0x38929b(0x147)](_0x4b3846);if(_0x47bed3)try{let _0x422a45=this[_0x38929b(0x261)](_0x47bed3,_0xecf043);this[_0x38929b(0x431)](_0x4b3846,_0x422a45);}catch(_0x34c9e0){this[_0x38929b(0x30d)][_0x38929b(0x106)](_0x38929b(0x407),_0x34c9e0),this['_clearUndo'](_0x4b3846);}let _0x953b95=this[_0x38929b(0x307)](_0x4b3846);if(_0x953b95)try{let _0x5b2a8e=this['_transformStack'](_0x953b95,_0xecf043);this['_substituteRedoStack'](_0x4b3846,_0x5b2a8e);}catch(_0x47a949){this[_0x38929b(0x30d)][_0x38929b(0x106)](_0x47a949),this[_0x38929b(0x1cb)](_0x4b3846);}}[_0x4afe6d(0x1f0)](_0x2f26e7){const _0xa85e42=_0x4afe6d;let _0x2860cc=this[_0xa85e42(0x147)](_0x2f26e7);_0x2860cc&&(_0x2860cc[_0xa85e42(0x414)]=0x0,this[_0xa85e42(0x174)]());}['_clearRedo'](_0x31dafe){const _0xf1330f=_0x4afe6d;let _0x5477fc=this[_0xf1330f(0x307)](_0x31dafe);_0x5477fc&&(_0x5477fc[_0xf1330f(0x414)]=0x0,this['_updateStatus']());}[_0x4afe6d(0x431)](_0x24cd62,_0x183219){const _0xa190e=_0x4afe6d;this[_0xa190e(0x1dd)][_0xa190e(0x437)](_0x24cd62,_0x183219),this[_0xa190e(0x174)]();}[_0x4afe6d(0x354)](_0x210eea,_0x5dc0ba){const _0x28bbc1=_0x4afe6d;this[_0x28bbc1(0x278)]['set'](_0x210eea,_0x5dc0ba),this[_0x28bbc1(0x174)]();}[_0x4afe6d(0x261)](_0x4ab79a,_0x19db45){const _0x4a1f38=_0x4afe6d;let _0x3deb20=[],_0x25a367=_0x19db45,_0x2af521=_0x19db45;for(let _0x200aa0=_0x4ab79a[_0x4a1f38(0x414)]-0x1;_0x200aa0>=0x0;_0x200aa0--){let {unitID:_0x321354,undoMutations:_0x181325,redoMutations:_0x3dbdc7}=_0x4ab79a[_0x200aa0],_0x534a4c=this[_0x4a1f38(0x294)][_0x4a1f38(0x2e7)](_0x25a367,_0x181325),_0x473138=this[_0x4a1f38(0x294)][_0x4a1f38(0x2e7)](_0x2af521,_0x3dbdc7);if((0x0,_0x510a16[_0x4a1f38(0x1e2)])(_0x534a4c)||(0x0,_0x510a16[_0x4a1f38(0x1e2)])(_0x473138)){this[_0x4a1f38(0x30d)][_0x4a1f38(0x106)](_0x4a1f38(0x407),_0x4a1f38(0x285),_0x534a4c,_0x473138);break;}_0x25a367=_0x534a4c[_0x4a1f38(0x1d5)],_0x2af521=_0x473138['c1Prime'],_0x3deb20['push']({'unitID':_0x321354,'undoMutations':_0x534a4c[_0x4a1f38(0x422)],'redoMutations':_0x473138[_0x4a1f38(0x422)]});}return _0x3deb20[_0x4a1f38(0x26c)]();}};_0x424687=_0x3bbaf2([_0x5c2cf(0x0,_0x54340d[_0x4afe6d(0x21c)]),_0x5c2cf(0x1,_0x54340d[_0x4afe6d(0x39e)]),_0x5c2cf(0x2,_0x54340d[_0x4afe6d(0x442)]),_0x5c2cf(0x3,_0x510a16[_0x4afe6d(0x14c)]),_0x5c2cf(0x4,_0x54340d[_0x4afe6d(0x2f1)])],_0x424687);let _0x28041f=class extends _0x54340d[_0x4afe6d(0x167)]{constructor(_0x1b9385=_0x34589c,_0x50f2d9,_0x4f85bd,_0x14c147){const _0x228888=_0x4afe6d;super(),this[_0x228888(0x2ad)]=_0x1b9385,this['_logService']=_0x50f2d9,this[_0x228888(0x19e)]=_0x4f85bd,this[_0x228888(0x3b8)]=_0x14c147;let {..._0x325daa}=(0x0,_0x54340d[_0x228888(0x362)])({},_0x34589c,this[_0x228888(0x2ad)]);if(!_0x325daa[_0x228888(0x191)])throw Error(_0x228888(0x290));this[_0x228888(0x2ad)]=_0x325daa,this[_0x228888(0x3b8)]['setConfig'](_0x440361,_0x325daa);}['onStarting'](){this['_registerDependencies'](),this['_initDependencies']();}['_registerDependencies'](){const _0x20118a=_0x4afe6d;var _0x2df99a,_0xb0ca4d;this[_0x20118a(0x19e)][_0x20118a(0x2e6)](_0x54340d[_0x20118a(0x2a4)])&&this['_logService'][_0x20118a(0x106)]('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x4c02b0=(0x0,_0x54340d[_0x20118a(0x41d)])([[_0x54340d[_0x20118a(0x2a4)],{'useClass':_0x424687}],[_0x3a5b27,{'useValue':_0x1c4d33()}],[_0x1ef492],[_0x1afb9b],[_0x2269b7],[_0x2ddecb],[_0x13f78f],[_0x24cd08],[_0x3b5b34],[_0x18b525],[_0x405412],[_0x30a197,{'useClass':this[_0x20118a(0x2ad)][_0x20118a(0x191)]}],[_0x510a16[_0x20118a(0x416)],{'useClass':_0x123e2b}],[_0x54340d['IAuthzIoService'],{'useClass':_0x91ddb2}],[_0x54340d['IImageIoService'],{'useClass':_0xf97092}],[_0x2a494b,{'useClass':_0x229743}],[_0x54340d[_0x20118a(0x451)],{'useClass':_0x5268fb}],[_0x3ac1c6],[_0x1ae7d6]],(_0x2df99a=this[_0x20118a(0x2ad)])==null?void 0x0:_0x2df99a[_0x20118a(0x23f)]);if(!((_0xb0ca4d=this['_config'])!=null&&_0xb0ca4d[_0x20118a(0x43e)])){let _0x211402=_0x4c02b0[_0x20118a(0x164)](([_0xea2c9f])=>_0xea2c9f===_0x54d1b8);_0x211402!==-0x1&&_0x4c02b0[_0x20118a(0x23d)](_0x211402,0x1);}(0x0,_0x54340d[_0x20118a(0x1f9)])(this[_0x20118a(0x19e)],_0x4c02b0);}[_0x4afe6d(0x2e2)](){const _0x459eba=_0x4afe6d;var _0x50cf72,_0x222356;if(this[_0x459eba(0x19e)][_0x459eba(0x28f)](_0x3c3932[_0x459eba(0x359)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,_0x3c3932[_0x459eba(0x287)])({'maxParallel':0x6})}),!((_0x50cf72=this['_config'])!=null&&_0x50cf72['enableOfflineEditing'])){var _0x27c7c8;(_0x27c7c8=this[_0x459eba(0x19e)][_0x459eba(0x28f)](_0x1cadf3,_0x54340d[_0x459eba(0x408)][_0x459eba(0x2a0)]))==null||_0x27c7c8[_0x459eba(0x306)]();}(_0x222356=this[_0x459eba(0x2ad)])!=null&&_0x222356[_0x459eba(0x292)]&&(0x0,_0x54340d[_0x459eba(0x23a)])(this[_0x459eba(0x19e)],[[_0x2ddecb]]),(0x0,_0x54340d['touchDependencies'])(this[_0x459eba(0x19e)],[[_0x13f78f],[_0x3ac1c6],[_0x3b5b34]]);}};_0x1d93f6(_0x28041f,'pluginName',_0x4afe6d(0x3a0)),_0x1d93f6(_0x28041f,'packageName',_0x2342bf),_0x1d93f6(_0x28041f,_0x4afe6d(0x130),_0x42a3e1),_0x28041f=_0x3bbaf2([(0x0,_0x54340d['DependentOn'])(_0x40a29c[_0x4afe6d(0x169)],_0x510a16[_0x4afe6d(0x2ce)],_0x3c3932['UniverNetworkPlugin']),_0x5c2cf(0x1,_0x54340d[_0x4afe6d(0x2f1)]),_0x5c2cf(0x2,(0x0,_0x54340d[_0x4afe6d(0x38e)])(_0x54340d[_0x4afe6d(0x200)])),_0x5c2cf(0x3,_0x54340d[_0x4afe6d(0x192)])],_0x28041f),_0x3b1d70['AttachmentSourceType']=_0x32a4ef,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x3d9),{'enumerable':!0x0,'get':function(){return _0x91ddb2;}}),Object['defineProperty'](_0x3b1d70,_0x4afe6d(0x3af),{'enumerable':!0x0,'get':function(){return _0x4b8fc9;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x257),{'enumerable':!0x0,'get':function(){return _0x34253f;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x2b7),{'enumerable':!0x0,'get':function(){return _0x315430;}}),Object['defineProperty'](_0x3b1d70,_0x4afe6d(0x314),{'enumerable':!0x0,'get':function(){return _0x3a23e5;}}),_0x3b1d70['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=_0x440361,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x376),{'enumerable':!0x0,'get':function(){return _0x229743;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x1f5),{'enumerable':!0x0,'get':function(){return _0x3ac1c6;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x22e),{'enumerable':!0x0,'get':function(){return _0x558136;}}),Object['defineProperty'](_0x3b1d70,'CollaborationImageIoService',{'enumerable':!0x0,'get':function(){return _0xf97092;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x199),{'enumerable':!0x0,'get':function(){return _0x180b79;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x1a1),{'enumerable':!0x0,'get':function(){return _0x1ef492;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x2af),{'enumerable':!0x0,'get':function(){return _0xadadc1;}}),_0x3b1d70['CollaborationStatus']=_0x37cdd1,_0x3b1d70[_0x4afe6d(0x36b)]=_0x441a00,_0x3b1d70[_0x4afe6d(0x2a7)]=_0x18b525,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x25a),{'enumerable':!0x0,'get':function(){return _0x424687;}}),_0x3b1d70[_0x4afe6d(0x254)]=_0x24cd08,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x3ae),{'enumerable':!0x0,'get':function(){return _0x4544f7;}}),_0x3b1d70[_0x4afe6d(0x1fb)]=_0x1ee18d,_0x3b1d70['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']='/universer-api/uniscript',_0x3b1d70[_0x4afe6d(0x30e)]=_0x4afe6d(0x16b),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x21a),{'enumerable':!0x0,'get':function(){return _0x405412;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x449),{'enumerable':!0x0,'get':function(){return _0x4e92fa;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x213),{'enumerable':!0x0,'get':function(){return _0x5ac534;}}),_0x3b1d70[_0x4afe6d(0x432)]=_0x4afe6d(0x450),_0x3b1d70['HEARTBEAT_TIMEOUT_KEY']=_0x4afe6d(0x263),_0x3b1d70['IAttachmentIoService']=_0x2a494b,_0x3b1d70[_0x4afe6d(0x368)]=_0x3a5b27,_0x3b1d70[_0x4afe6d(0x2c5)]=_0x30a197,_0x3b1d70[_0x4afe6d(0x398)]=_0x1cadf3,_0x3b1d70['INetworkConditionService']=_0x5cc1e5,_0x3b1d70[_0x4afe6d(0x1e6)]=_0x54d1b8,_0x3b1d70['LOCAL_CACHE_INTERVAL']=0x3e8,_0x3b1d70['LOCAL_CACHE_INTERVAL_KEY']=_0x4afe6d(0x309),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x125),{'enumerable':!0x0,'get':function(){return _0x1afb9b;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x420),{'enumerable':!0x0,'get':function(){return _0x5268fb;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,'OfflineState',{'enumerable':!0x0,'get':function(){return _0x5146de;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,'PendingState',{'enumerable':!0x0,'get':function(){return _0x503465;}}),_0x3b1d70[_0x4afe6d(0x1f2)]=_0x4afe6d(0x2f7),_0x3b1d70[_0x4afe6d(0x19a)]='RETRY_CONNECTING_MAX_COUNT',_0x3b1d70[_0x4afe6d(0xfe)]=_0x3bf564,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x28e),{'enumerable':!0x0,'get':function(){return _0x143458;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x134),{'enumerable':!0x0,'get':function(){return _0x2269b7;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x1e5),{'enumerable':!0x0,'get':function(){return _0x513627;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x2c7),{'enumerable':!0x0,'get':function(){return _0x123e2b;}}),Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x12c),{'enumerable':!0x0,'get':function(){return _0x5d7f84;}}),_0x3b1d70[_0x4afe6d(0x27c)]=_0x36582d,Object[_0x4afe6d(0x1dc)](_0x3b1d70,_0x4afe6d(0x1ec),{'enumerable':!0x0,'get':function(){return _0x28041f;}}),_0x3b1d70[_0x4afe6d(0x33f)]=_0x1c4d33,_0x3b1d70[_0x4afe6d(0x2db)]=_0x4dd5df,_0x3b1d70[_0x4afe6d(0x148)]=_0x4accb8,_0x3b1d70[_0x4afe6d(0x3f9)]=_0x5e867b;}));
1
+ function _0x1600(_0x36de73,_0x3d78ce){_0x36de73=_0x36de73-0xa9;const _0x1aa588=_0x1aa5();let _0x1600c3=_0x1aa588[_0x36de73];return _0x1600c3;}(function(_0x1473c2,_0x347b28){const _0x4d6cf9=_0x1600,_0x46fd9d=_0x1473c2();while(!![]){try{const _0x4c0d35=parseInt(_0x4d6cf9(0x2ee))/0x1*(parseInt(_0x4d6cf9(0x3b6))/0x2)+-parseInt(_0x4d6cf9(0x103))/0x3+-parseInt(_0x4d6cf9(0x3db))/0x4*(parseInt(_0x4d6cf9(0x31c))/0x5)+parseInt(_0x4d6cf9(0x3fd))/0x6*(parseInt(_0x4d6cf9(0x1eb))/0x7)+-parseInt(_0x4d6cf9(0x128))/0x8*(-parseInt(_0x4d6cf9(0x1ba))/0x9)+-parseInt(_0x4d6cf9(0x322))/0xa*(-parseInt(_0x4d6cf9(0xac))/0xb)+-parseInt(_0x4d6cf9(0x18c))/0xc*(parseInt(_0x4d6cf9(0x1dd))/0xd);if(_0x4c0d35===_0x347b28)break;else _0x46fd9d['push'](_0x46fd9d['shift']());}catch(_0x33c899){_0x46fd9d['push'](_0x46fd9d['shift']());}}}(_0x1aa5,0x487ea),function(_0x35300b,_0x19dbc7){const _0x25c5ed=_0x1600;typeof exports==_0x25c5ed(0x31d)&&typeof module<'u'?_0x19dbc7(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x25c5ed(0xf0)&&define[_0x25c5ed(0x2b8)]?define(['exports',_0x25c5ed(0xf4),'@univerjs/core',_0x25c5ed(0x2a3),_0x25c5ed(0x1a3),_0x25c5ed(0x325),_0x25c5ed(0x17a),'@univerjs/telemetry',_0x25c5ed(0x27d),_0x25c5ed(0x24f),'@univerjs/network',_0x25c5ed(0x37f),_0x25c5ed(0x1d4)],_0x19dbc7):(_0x35300b=typeof globalThis<'u'?globalThis:_0x35300b||self,_0x19dbc7(_0x35300b[_0x25c5ed(0x1e0)]={},_0x35300b[_0x25c5ed(0x32e)],_0x35300b['UniverCore'],_0x35300b[_0x25c5ed(0x1ae)],_0x35300b[_0x25c5ed(0x126)],_0x35300b[_0x25c5ed(0x325)],_0x35300b['UniverProtocol'],_0x35300b[_0x25c5ed(0xe6)],_0x35300b['rxjs'][_0x25c5ed(0x121)],_0x35300b['UniverProSlides'],_0x35300b[_0x25c5ed(0x2d5)],_0x35300b[_0x25c5ed(0xcb)],_0x35300b[_0x25c5ed(0x262)]));}(this,function(_0x38e016,_0x5d8fae,_0x3ea0ad,_0x160e88,_0x1dfeb2,_0x3a9bce,_0x2a4603,_0x280742,_0x6cc357,_0x438df1,_0x2e88c0,_0x575549,_0x43a3a3){const _0x387812=_0x1600;Object[_0x387812(0x1b6)](_0x38e016,Symbol[_0x387812(0x23c)],{'value':_0x387812(0x3f5)});let _0xeb659=_0x387812(0x315),_0x15b9fd={};function _0x36eca6(_0x24299d){const _0x1a3719=_0x387812;return JSON[_0x1a3719(0x1e5)](_0x24299d)['length'];}function _0x5e7288(_0x258576){'@babel/helpers - typeof';const _0x479b8b=_0x387812;return _0x5e7288=typeof Symbol==_0x479b8b(0xf0)&&typeof Symbol['iterator']==_0x479b8b(0x277)?function(_0x1f7220){return typeof _0x1f7220;}:function(_0x3460d4){const _0x4e7d3c=_0x479b8b;return _0x3460d4&&typeof Symbol==_0x4e7d3c(0xf0)&&_0x3460d4['constructor']===Symbol&&_0x3460d4!==Symbol['prototype']?_0x4e7d3c(0x277):typeof _0x3460d4;},_0x5e7288(_0x258576);}function _0x43f02a(_0x384a4f,_0x263627){const _0x52f3cf=_0x387812;if(_0x5e7288(_0x384a4f)!=_0x52f3cf(0x31d)||!_0x384a4f)return _0x384a4f;var _0x5cbdb3=_0x384a4f[Symbol['toPrimitive']];if(_0x5cbdb3!==void 0x0){var _0x4651f5=_0x5cbdb3[_0x52f3cf(0x3dd)](_0x384a4f,_0x263627||_0x52f3cf(0x39d));if(_0x5e7288(_0x4651f5)!=_0x52f3cf(0x31d))return _0x4651f5;throw TypeError(_0x52f3cf(0x170));}return(_0x263627===_0x52f3cf(0x17f)?String:Number)(_0x384a4f);}function _0x11f448(_0xb3a690){const _0x2d7710=_0x387812;var _0x1bc45b=_0x43f02a(_0xb3a690,_0x2d7710(0x17f));return _0x5e7288(_0x1bc45b)=='symbol'?_0x1bc45b:_0x1bc45b+'';}function _0x309f50(_0xdf46b5,_0x3e496c,_0x580647){return(_0x3e496c=_0x11f448(_0x3e496c))in _0xdf46b5?Object['defineProperty'](_0xdf46b5,_0x3e496c,{'value':_0x580647,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xdf46b5[_0x3e496c]=_0x580647,_0xdf46b5;}let _0x4e47c0=function(_0x47f0d2){const _0x21bd7d=_0x387812;return _0x47f0d2['OTHER_CLIENT_EDITING']=_0x21bd7d(0x1bb),_0x47f0d2['PERMISSION_DENIED']=_0x21bd7d(0x34f),_0x47f0d2[_0x21bd7d(0x129)]=_0x21bd7d(0x129),_0x47f0d2['CLOSE_ROOM']='CLOSE_ROOM',_0x47f0d2['JOIN_ROOM_FAILED']=_0x21bd7d(0x10b),_0x47f0d2[_0x21bd7d(0x3d5)]=_0x21bd7d(0x3d5),_0x47f0d2[_0x21bd7d(0x218)]=_0x21bd7d(0x218),_0x47f0d2[_0x21bd7d(0x3e3)]=_0x21bd7d(0x3e3),_0x47f0d2;}({});var _0x359cbb=class{constructor(){const _0x5dc07c=_0x387812;_0x309f50(this,_0x5dc07c(0x2e0),new _0x3a9bce[(_0x5dc07c(0x20a))]()),_0x309f50(this,_0x5dc07c(0x36d),this[_0x5dc07c(0x2e0)][_0x5dc07c(0x1fe)]());}[_0x387812(0x11a)](_0x46f071){const _0x589933=_0x387812;this[_0x589933(0x2e0)][_0x589933(0x316)](_0x46f071);}},_0x579ca0=class{constructor(){const _0x20d470=_0x387812;_0x309f50(this,_0x20d470(0xe1),new _0x3a9bce[(_0x20d470(0x20a))]()),_0x309f50(this,_0x20d470(0x394),this[_0x20d470(0xe1)][_0x20d470(0x1fe)]());}[_0x387812(0x2d4)](_0x2a27b0){const _0x144ebf=_0x387812;this[_0x144ebf(0xe1)][_0x144ebf(0x316)](_0x2a27b0);}};function _0x29ab6d(_0x3c72c6,_0x324da4){return function(_0x44d639,_0x2719e4){_0x324da4(_0x44d639,_0x2719e4,_0x3c72c6);};}function _0x48064b(_0x2b0317,_0x1e3277,_0x56e13c,_0x29bc23){const _0x2afeb0=_0x387812;var _0x59b657=arguments[_0x2afeb0(0x141)],_0x4cac3a=_0x59b657<0x3?_0x1e3277:_0x29bc23===null?_0x29bc23=Object[_0x2afeb0(0x36e)](_0x1e3277,_0x56e13c):_0x29bc23,_0xee8eb4;if(typeof Reflect==_0x2afeb0(0x31d)&&typeof Reflect['decorate']=='function')_0x4cac3a=Reflect[_0x2afeb0(0xb9)](_0x2b0317,_0x1e3277,_0x56e13c,_0x29bc23);else{for(var _0x4e32b3=_0x2b0317[_0x2afeb0(0x141)]-0x1;_0x4e32b3>=0x0;_0x4e32b3--)(_0xee8eb4=_0x2b0317[_0x4e32b3])&&(_0x4cac3a=(_0x59b657<0x3?_0xee8eb4(_0x4cac3a):_0x59b657>0x3?_0xee8eb4(_0x1e3277,_0x56e13c,_0x4cac3a):_0xee8eb4(_0x1e3277,_0x56e13c))||_0x4cac3a);}return _0x59b657>0x3&&_0x4cac3a&&Object[_0x2afeb0(0x1b6)](_0x1e3277,_0x56e13c,_0x4cac3a),_0x4cac3a;}let _0x3f167c=class extends _0x3ea0ad['Disposable']{constructor(_0x3dabd0){const _0x412994=_0x387812;super(),this[_0x412994(0xc8)]=_0x3dabd0,_0x309f50(this,_0x412994(0x25d),new Map()),_0x309f50(this,'_roomCreated$',new _0x3a9bce['Subject']()),this['disposeWithMe']((0x0,_0x3a9bce[_0x412994(0x365)])(this[_0x412994(0xc8)][_0x412994(0x19f)](_0x3ea0ad['UniverInstanceType']['UNIVER_SHEET'])[_0x412994(0x298)]((0x0,_0x6cc357[_0x412994(0x1a7)])(_0x248a9b=>_0x248a9b[_0x412994(0x1c4)]())),this[_0x412994(0xc8)]['getTypeOfUnitDisposed$'](_0x3ea0ad[_0x412994(0x20e)][_0x412994(0x2e8)])[_0x412994(0x298)]((0x0,_0x6cc357[_0x412994(0x1a7)])(_0x5811be=>_0x5811be[_0x412994(0x1c4)]())),this['_univerInstanceService'][_0x412994(0x19f)](_0x3ea0ad[_0x412994(0x20e)][_0x412994(0x237)])[_0x412994(0x298)]((0x0,_0x6cc357[_0x412994(0x1a7)])(_0x2a48ce=>_0x2a48ce[_0x412994(0x1c4)]())),this[_0x412994(0xc8)][_0x412994(0x19f)](_0x3ea0ad['UniverInstanceType'][_0x412994(0x382)])['pipe']((0x0,_0x6cc357[_0x412994(0x1a7)])(_0x10321d=>_0x10321d[_0x412994(0x1c4)]())))['subscribe'](_0x8d1833=>this[_0x412994(0x354)](_0x8d1833)));}[_0x387812(0x39a)](_0xd3e6d){const _0xe17c3b=_0x387812;return this[_0xe17c3b(0x25d)][_0xe17c3b(0xc6)](_0xd3e6d)?(0x0,_0x3a9bce['of'])(this[_0xe17c3b(0x25d)][_0xe17c3b(0x32a)](_0xd3e6d)):this[_0xe17c3b(0x108)][_0xe17c3b(0x298)]((0x0,_0x6cc357[_0xe17c3b(0x1a7)])(_0x2f8100=>{const _0x3b501f=_0xe17c3b;if(_0x2f8100===_0xd3e6d)return this[_0x3b501f(0x25d)][_0x3b501f(0x32a)](_0x2f8100);}));}[_0x387812(0xc0)](_0xa9c061,_0x3b0460){const _0xbdbd9b=_0x387812;let _0x3a0f76=this[_0xbdbd9b(0x25d)]['get'](_0xa9c061);_0x3a0f76||(_0x3a0f76=new _0x59a7e4(),this[_0xbdbd9b(0x25d)][_0xbdbd9b(0x15c)](_0xa9c061,_0x3a0f76),this[_0xbdbd9b(0x108)][_0xbdbd9b(0x316)](_0xa9c061)),_0x3a0f76['updateMember'](_0x3b0460);}[_0x387812(0x2d8)](_0xa1b2d8,_0x368aeb){const _0x5a79fe=_0x387812;let _0x59ab25=this[_0x5a79fe(0x25d)][_0x5a79fe(0x32a)](_0xa1b2d8);_0x59ab25&&_0x59ab25['removeMember'](_0x368aeb);}['getRoom'](_0x136d64){const _0x5e75ea=_0x387812;return this[_0x5e75ea(0x25d)][_0x5e75ea(0x32a)](_0x136d64);}[_0x387812(0xd6)](_0x287e04,_0x254319){const _0x2d3f56=_0x387812;let _0x3d7672=this[_0x2d3f56(0x25d)][_0x2d3f56(0x32a)](_0x287e04);if(_0x3d7672)return _0x3d7672[_0x2d3f56(0xd6)](_0x254319);}[_0x387812(0x354)](_0x340b4f){const _0x50f37a=_0x387812;let _0x1622a6=this['_roomMembers']['get'](_0x340b4f);_0x1622a6&&(_0x1622a6[_0x50f37a(0x102)](),this[_0x50f37a(0x25d)][_0x50f37a(0x3c5)](_0x340b4f));}[_0x387812(0x102)](){const _0x577893=_0x387812;this[_0x577893(0x25d)]['forEach'](_0x48247f=>_0x48247f[_0x577893(0x102)]()),this['_roomMembers'][_0x577893(0x19d)](),this['_roomCreated$'][_0x577893(0xca)]();}};_0x3f167c=_0x48064b([_0x29ab6d(0x0,_0x3ea0ad[_0x387812(0x2fe)])],_0x3f167c);var _0x59a7e4=class extends _0x3ea0ad['Disposable']{constructor(..._0x2c35d9){const _0x51fdef=_0x387812;super(..._0x2c35d9),_0x309f50(this,_0x51fdef(0x2f9),new Map()),_0x309f50(this,_0x51fdef(0x13d),new _0x3a9bce[(_0x51fdef(0x24a))](this[_0x51fdef(0x2f9)])),_0x309f50(this,'members$',this[_0x51fdef(0x13d)][_0x51fdef(0x1fe)]());}[_0x387812(0x102)](){const _0x5ba86b=_0x387812;this['_members']['clear'](),this[_0x5ba86b(0x13d)][_0x5ba86b(0xca)]();}[_0x387812(0xc0)](_0x383ccf){const _0x49243b=_0x387812;this[_0x49243b(0x2f9)][_0x49243b(0x15c)](_0x383ccf[_0x49243b(0x2c9)],_0x383ccf),this[_0x49243b(0x30b)]();}[_0x387812(0x2d8)](_0x5aed8c){const _0x3a3b05=_0x387812;this[_0x3a3b05(0x2f9)][_0x3a3b05(0x3c5)](_0x5aed8c),this[_0x3a3b05(0x30b)]();}[_0x387812(0xd6)](_0x29f148){const _0x5eac69=_0x387812;return this[_0x5eac69(0x2f9)][_0x5eac69(0x32a)](_0x29f148);}[_0x387812(0x2f2)](){const _0x25788d=_0x387812;return Array[_0x25788d(0x287)](this['_members'][_0x25788d(0x2a0)]());}[_0x387812(0x30b)](){const _0x59d1ed=_0x387812;this[_0x59d1ed(0x13d)][_0x59d1ed(0x316)](this[_0x59d1ed(0x2f9)]);}};function _0xc299da(_0x48dbf0,_0x887e1b){const _0x5902d5=_0x387812;if(_0x18e6a6(_0x48dbf0))return _0x887e1b;if(_0x887e1b[_0x5902d5(0x217)]===_0x5d8fae['CollaborationEvent'][_0x5902d5(0x340)]){let _0x56c20f=_0x4ad4bf(_0x48dbf0),_0x124652=_0x887e1b;return{..._0x124652,'data':{..._0x124652[_0x5902d5(0x31b)],'unitID':_0x48dbf0[_0x5902d5(0x3d4)][_0x5902d5(0x397)],'unitType':_0x48dbf0[_0x5902d5(0x3d4)][_0x5902d5(0x27f)]??_0x124652[_0x5902d5(0x31b)][_0x5902d5(0x27f)],'changeset':_0x56c20f[_0x5902d5(0x320)](_0x124652['data'][_0x5902d5(0x2c2)],_0x91c61b(_0x48dbf0))}};}if(_0x887e1b['eventID']===_0x5d8fae['CollaborationEvent'][_0x5902d5(0x25e)]){let _0x5960d1=_0x887e1b;return{..._0x5960d1,'data':{..._0x5960d1[_0x5902d5(0x31b)],'unitID':_0x48dbf0[_0x5902d5(0x3d4)]['unitId'],'unitType':_0x48dbf0[_0x5902d5(0x3d4)][_0x5902d5(0x27f)]??_0x5960d1[_0x5902d5(0x31b)][_0x5902d5(0x27f)]}};}return _0x887e1b;}function _0x86d9c3(_0x5dd355,_0xd9f69c){const _0xe19744=_0x387812;if(_0x18e6a6(_0x5dd355))return[_0xd9f69c];switch(_0xd9f69c[_0xe19744(0x217)]){case _0x5d8fae[_0xe19744(0x13b)][_0xe19744(0x363)]:return[_0x4803f2(_0x5dd355,_0xd9f69c)];case _0x5d8fae['CollaborationEvent'][_0xe19744(0x244)]:return[_0xdb3203(_0x5dd355,_0xd9f69c)];case _0x5d8fae['CollaborationEvent'][_0xe19744(0x147)]:return[_0x29b6da(_0x5dd355,_0xd9f69c)];default:return[_0xd9f69c];}}function _0x18e6a6(_0x21c20b){const _0x62d93e=_0x387812;return _0x21c20b[_0x62d93e(0x3d4)][_0x62d93e(0x1ed)]==null&&_0x21c20b[_0x62d93e(0x3d4)][_0x62d93e(0x397)]===_0x21c20b[_0x62d93e(0x19c)]&&!_0x21c20b[_0x62d93e(0x2c2)];}function _0x4803f2(_0x2f5f6a,_0x309f38){const _0x519d72=_0x387812;return{..._0x309f38,'data':(0x0,_0x5d8fae[_0x519d72(0x2b4)])(_0x53a8b6(_0x2f5f6a,(0x0,_0x5d8fae[_0x519d72(0x104)])(_0x309f38[_0x519d72(0x31b)])))};}function _0x29b6da(_0x15b26c,_0x21fc05){const _0x320668=_0x387812;return{..._0x21fc05,'data':_0x53a8b6(_0x15b26c,_0x21fc05[_0x320668(0x31b)])};}function _0xdb3203(_0xfa033d,_0x8b8368){const _0x48b5c2=_0x387812;let _0xf0d107=_0x8b8368[_0x48b5c2(0x31b)];return{..._0x8b8368,'data':{..._0xf0d107,'changesets':_0xf0d107['changesets'][_0x48b5c2(0x1a7)](_0x52f44e=>(0x0,_0x5d8fae['parseChangesetToProtocol'])(_0x53a8b6(_0xfa033d,(0x0,_0x5d8fae[_0x48b5c2(0x104)])(_0x52f44e))))}};}function _0x53a8b6(_0x18457c,_0x13ff5f){const _0x4a175d=_0x387812;return _0x4ad4bf(_0x18457c)[_0x4a175d(0x2ae)](_0x13ff5f,_0x91c61b(_0x18457c));}function _0x4ad4bf(_0x3aaab2){const _0x462c68=_0x387812;if(!_0x3aaab2[_0x462c68(0x2c2)])throw Error(_0x462c68(0x1dc));return _0x3aaab2[_0x462c68(0x2c2)];}function _0x91c61b(_0x721502){const _0x8113d=_0x387812;return{'localUnitId':_0x721502[_0x8113d(0x19c)],'unitType':_0x721502[_0x8113d(0x27f)],'target':_0x721502['target']};}let _0x56411b=function(_0x5c6a14){const _0x50d432=_0x387812;return _0x5c6a14[_0x5c6a14[_0x50d432(0x120)]=0x0]=_0x50d432(0x120),_0x5c6a14[_0x5c6a14['JOINING']=0x1]=_0x50d432(0x402),_0x5c6a14[_0x5c6a14[_0x50d432(0x2ac)]=0x2]=_0x50d432(0x2ac),_0x5c6a14[_0x5c6a14['ONLINE']=0x3]='ONLINE',_0x5c6a14;}({}),_0x1da0f7={[_0x2a4603[_0x387812(0x3d3)][_0x387812(0x258)]]:_0x387812(0x3f2),[_0x2a4603[_0x387812(0x3d3)][_0x387812(0x21c)]]:'session.room-full',[_0x2a4603['CmdRspCode'][_0x387812(0x209)]]:_0x387812(0x30e),[_0x2a4603[_0x387812(0x3d3)][_0x387812(0x241)]]:_0x387812(0x13c),[_0x2a4603['CmdRspCode']['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x387812(0x11c)},_0x3c2d9d=class extends _0x3ea0ad[_0x387812(0x150)]{get[_0x387812(0x313)](){const _0x27f0b9=_0x387812;return this['_sessionStatus$'][_0x27f0b9(0x355)]();}constructor(_0x3d4900,_0x5020c6,_0x2d165b,_0xd8d946,_0x1392c1,_0x56594a,_0x31b7dd,_0x1cad30){const _0x5ee4db=_0x387812;super(),this[_0x5ee4db(0x3c8)]=_0x3d4900,this[_0x5ee4db(0x1fc)]=_0x2d165b,this[_0x5ee4db(0x327)]=_0xd8d946,this[_0x5ee4db(0x228)]=_0x1392c1,this[_0x5ee4db(0x130)]=_0x56594a,this[_0x5ee4db(0x378)]=_0x31b7dd,this['_telemetryService']=_0x1cad30,_0x309f50(this,_0x5ee4db(0x1d5),new _0x3a9bce['BehaviorSubject'](0x0)),_0x309f50(this,_0x5ee4db(0x303),this['_sessionStatus$'][_0x5ee4db(0x1fe)]()),_0x309f50(this,'_event$',new _0x3a9bce[(_0x5ee4db(0x20a))]()),_0x309f50(this,_0x5ee4db(0x36d),this[_0x5ee4db(0x2e0)]['asObservable']()),_0x309f50(this,_0x5ee4db(0x3cd),void 0x0),_0x309f50(this,_0x5ee4db(0x1ad),void 0x0),_0x309f50(this,'_collaborationTimeoutTimer',void 0x0),_0x309f50(this,'_shouldReportTelemetry',!0x1),_0x309f50(this,_0x5ee4db(0x230),null),this[_0x5ee4db(0xeb)]=!!this[_0x5ee4db(0x10e)],_0x5020c6[_0x5ee4db(0x298)]((0x0,_0x3a9bce['takeUntil'])(this[_0x5ee4db(0x235)]))[_0x5ee4db(0x1a6)](_0x1efe82=>{const _0x3795d6=_0x5ee4db;if(_0x1efe82!==void 0x0){if(this['_socket']=_0x1efe82,_0x1efe82)this[_0x3795d6(0x360)](_0x1efe82),this[_0x3795d6(0x1ad)]=_0x1efe82[_0x3795d6(0x1d6)][_0x3795d6(0x1a6)](_0xa1d59e=>{const _0x58c063=_0x3795d6;_0xa1d59e[_0x58c063(0xb2)]===this[_0x58c063(0x3c8)][_0x58c063(0x3d4)]['unitId']&&this['_onCombEvent'](_0xa1d59e);});else{var _0x782a96;this[_0x3795d6(0x3bb)](),this[_0x3795d6(0x1d5)]['next'](0x2),(_0x782a96=this[_0x3795d6(0x1ad)])==null||_0x782a96[_0x3795d6(0x23d)](),this['_socketMessageSubscription']=null;}}});}['getMemberID'](){const _0x299b25=_0x387812;var _0x3d41f4;return((_0x3d41f4=this[_0x299b25(0x3cd)])==null?void 0x0:_0x3d41f4[_0x299b25(0x2c9)])??null;}[_0x387812(0x102)](){const _0x2a9c95=_0x387812;super[_0x2a9c95(0x102)](),this[_0x2a9c95(0xc5)](),this[_0x2a9c95(0x235)][_0x2a9c95(0x316)](),this[_0x2a9c95(0x235)]['complete']();}['close'](){const _0xda0a87=_0x387812;var _0xc2f04e;this[_0xda0a87(0x3bb)](),(_0xc2f04e=this['_socket'])==null||_0xc2f04e[_0xda0a87(0x1da)]({'cmd':_0x2a4603['CombCmd'][_0xda0a87(0x1cd)],'data':{'roomID':this[_0xda0a87(0x3c8)]['target'][_0xda0a87(0x397)]}}),this['_event$'][_0xda0a87(0xca)](),this[_0xda0a87(0x1d5)][_0xda0a87(0xca)]();}[_0x387812(0x290)](_0x2cfe32){const _0x546bef=_0x387812;_0x2cfe32['cmd']===_0x2a4603[_0x546bef(0x396)][_0x546bef(0x148)]?this[_0x546bef(0x1cb)](_0x2cfe32):_0x2cfe32[_0x546bef(0xdf)]===_0x2a4603[_0x546bef(0x396)][_0x546bef(0x2dc)]&&this[_0x546bef(0x2b1)](_0x2cfe32);}[_0x387812(0x360)](_0x2efc34){const _0x399b0d=_0x387812;this[_0x399b0d(0x1d5)]['next'](0x1),_0x2efc34['send']({'cmd':_0x2a4603[_0x399b0d(0x396)]['JOIN'],'routeKey':this[_0x399b0d(0x3c8)]['target'][_0x399b0d(0x397)],'routeType':'','data':{'rooms':[{'roomID':this[_0x399b0d(0x3c8)]['target'][_0x399b0d(0x397)]}]}});}[_0x387812(0x1cb)](_0x29b3b8){const _0x4ab7e0=_0x387812;var _0x4194fd;if(_0x29b3b8['code']in _0x1da0f7){this['_collaborationUIEventService'][_0x4ab7e0(0x11a)]({'id':_0x4ab7e0(0x10b),'data':_0x1da0f7[_0x29b3b8[_0x4ab7e0(0x299)]]}),this['_sessionStatus$'][_0x4ab7e0(0x316)](0x2);return;}this[_0x4ab7e0(0x1d5)][_0x4ab7e0(0x316)](0x3);let _0x497ac2=(_0x4194fd=_0x29b3b8['data'][_0x4ab7e0(0x29f)][this['_identity'][_0x4ab7e0(0x3d4)][_0x4ab7e0(0x397)]])==null?void 0x0:_0x4194fd['members'];_0x497ac2&&_0x497ac2['forEach'](_0x1e7542=>this[_0x4ab7e0(0x228)][_0x4ab7e0(0xc0)](this[_0x4ab7e0(0x3c8)]['localUnitId'],_0x1e7542));}[_0x387812(0x2b1)](_0x10ac89){const _0x452dea=_0x387812;try{let _0x637e9d=_0x86d9c3(this[_0x452dea(0x3c8)],_0x10ac89[_0x452dea(0x31b)]);for(let _0x4e4259 of _0x637e9d)switch(_0x4e4259['eventID']){case _0x5d8fae[_0x452dea(0x13b)][_0x452dea(0x3c1)]:this[_0x452dea(0x28a)](_0x4e4259),this['_event$']['next'](_0x4e4259);break;case _0x5d8fae['CollaborationEvent'][_0x452dea(0xbe)]:this[_0x452dea(0x3a1)](_0x4e4259),this[_0x452dea(0x2e0)]['next'](_0x4e4259);break;case _0x5d8fae[_0x452dea(0x13b)]['CHANGESET_ACK']:case _0x5d8fae[_0x452dea(0x13b)][_0x452dea(0x147)]:this[_0x452dea(0x35b)](),this[_0x452dea(0xd2)](),this[_0x452dea(0x2e0)][_0x452dea(0x316)](_0x4e4259);break;case _0x5d8fae[_0x452dea(0x13b)][_0x452dea(0x3c0)]:this['_logService'][_0x452dea(0xcf)](_0x452dea(0x1f9)+JSON[_0x452dea(0x1e5)](_0x4e4259)),this['_event$'][_0x452dea(0x316)](_0x4e4259);break;case _0x5d8fae[_0x452dea(0x13b)]['COMMENT_UPDATE']:this[_0x452dea(0x130)][_0x452dea(0x2d4)](_0x4e4259[_0x452dea(0x31b)]),this[_0x452dea(0x2e0)]['next'](_0x4e4259);break;default:this[_0x452dea(0x2e0)][_0x452dea(0x316)](_0x4e4259);}}catch(_0x3bab79){this[_0x452dea(0x1fc)][_0x452dea(0xcf)](_0x3bab79,_0x10ac89);}}[_0x387812(0x28a)](_0x26baaa){const _0x393b18=_0x387812;this[_0x393b18(0x228)][_0x393b18(0xc0)](this[_0x393b18(0x3c8)]['localUnitId'],_0x26baaa[_0x393b18(0x31b)]);}['_onUserLeave'](_0x3a8ee9){const _0xfce405=_0x387812;this['_memberService'][_0xfce405(0x2d8)](this[_0xfce405(0x3c8)][_0xfce405(0x19c)],_0x3a8ee9[_0xfce405(0x31b)][_0xfce405(0x2c9)]);}async['send'](_0x5791b9,_0x5e0c84){const _0x55aca0=_0x387812;if(this['sessionStatus']!==0x3||!this[_0x55aca0(0x3cd)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x39dc8f=_0xc299da(this[_0x55aca0(0x3c8)],_0x5791b9);_0x39dc8f[_0x55aca0(0x217)]===_0x5d8fae['CollaborationEvent']['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x55aca0(0x319)](_0x39dc8f)),this[_0x55aca0(0x3cd)][_0x55aca0(0x1da)]({'cmd':_0x2a4603['CombCmd'][_0x55aca0(0x2cf)],'routeKey':this[_0x55aca0(0x3c8)][_0x55aca0(0x3d4)]['unitId'],'routeType':'','data':_0x39dc8f});}catch(_0x40df60){this[_0x55aca0(0x1fc)][_0x55aca0(0xcf)](_0x40df60);}}[_0x387812(0x3de)](){const _0x1096fe=_0x387812;this[_0x1096fe(0x24e)]=setTimeout(()=>{const _0x159145=_0x1096fe;this[_0x159145(0x24e)]=null,this['_collaborationUIEventService']['emitEvent']({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this[_0x1096fe(0x327)][_0x1096fe(0x346)](_0x1096fe(0x278))??0x4e20);}[_0x387812(0xd2)](){const _0x4ae2a4=_0x387812;this[_0x4ae2a4(0x24e)]&&=(clearTimeout(this[_0x4ae2a4(0x24e)]),null);}['_startTelemetryCollaborationNewChangeset'](_0x3775cd){const _0x18e61f=_0x387812;if(!this['_shouldReportTelemetry'])return;let {data:_0x1bad4f}=_0x3775cd,{unitID:_0x12dd93,changeset:_0x4f8540}=_0x1bad4f,{mutations:_0x3b1962,type:_0xd50058}=_0x4f8540;this[_0x18e61f(0x230)]={'unitId':_0x12dd93,'type':_0xd50058,'startTime':performance[_0x18e61f(0x3d7)](),'stopTime':0x0,'duration':0x0,'size':_0x36eca6(_0x3b1962)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x43b0d8=_0x387812;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this['_logService'][_0x43b0d8(0xcf)](_0x43b0d8(0x192),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x43b0d8(0x230)]['stopTime']=performance[_0x43b0d8(0x3d7)](),this[_0x43b0d8(0x230)][_0x43b0d8(0x329)]=this[_0x43b0d8(0x230)]['stopTime']-this[_0x43b0d8(0x230)][_0x43b0d8(0x3ab)],this['_telemetryService'][_0x43b0d8(0xd8)](_0x43b0d8(0x190),this[_0x43b0d8(0x230)]),this[_0x43b0d8(0x230)]=null;}}[_0x387812(0x3bb)](){this['_telemetryInfo']=null;}};_0x3c2d9d=_0x48064b([_0x29ab6d(0x2,_0x3ea0ad['ILogService']),_0x29ab6d(0x3,_0x3ea0ad[_0x387812(0x2b5)]),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3f167c)),_0x29ab6d(0x5,(0x0,_0x3ea0ad['Inject'])(_0x579ca0)),_0x29ab6d(0x6,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb)),_0x29ab6d(0x7,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x280742[_0x387812(0x257)]))],_0x3c2d9d);let _0x4e9987=(0x0,_0x3ea0ad[_0x387812(0x359)])(_0x387812(0x39f));function _0x3492e6(_0x532ef1){const _0x2b2c40=_0x387812;return _0x2b2c40(0x356)+_0x532ef1;}function _0x396100(_0x2fd569){const _0x453b39=_0x387812;let {unitID:_0x367de0,mutations:_0x3b927f}=_0x2fd569;return{'unitId':_0x367de0,'subUnitId':_0x3b927f[_0x453b39(0x141)]>0x0?_0x3b927f[0x0]['params'][_0x453b39(0x275)]:null};}let _0x5ad7dd=class{constructor(_0xce3755,_0x5e1392,_0x4ffa26){const _0x2ad42e=_0x387812;this[_0x2ad42e(0x26d)]=_0xce3755,this[_0x2ad42e(0xb8)]=_0x5e1392,this[_0x2ad42e(0x229)]=_0x4ffa26;}[_0x387812(0xd9)](_0x105924){const _0x5d1125=_0x387812;var _0x3f1887,_0x49f87e;let _0x61161c=this[_0x5d1125(0x26d)][_0x5d1125(0x32a)](_0x1dfeb2[_0x5d1125(0x23e)]),{unitId:_0x1071c3,subUnitId:_0x45d743}=_0x396100(_0x105924),_0x2ee2b6=_0x61161c==null?void 0x0:_0x61161c[_0x5d1125(0x3ea)](_0x1071c3)['getCurrentSelections'](),_0x3bd998=(_0x3f1887=this['_instanceService'][_0x5d1125(0x2cb)](_0x1071c3))==null||(_0x3f1887=_0x3f1887[_0x5d1125(0x3ff)]())==null?void 0x0:_0x3f1887['getSheetId']();if(_0x2ee2b6['length']===0x0||!_0x1071c3||!_0x45d743)return;let _0x584538=[{'id':_0x1dfeb2[_0x5d1125(0x1b7)]['id'],'params':{'unitId':_0x1071c3,'subUnitId':_0x3bd998,'selections':_0x3ea0ad[_0x5d1125(0x3f3)][_0x5d1125(0x208)](_0x2ee2b6)}}],_0x190048=this[_0x5d1125(0xb8)][_0x5d1125(0xa9)](_0x105924,_0x584538);if(!(0x0,_0x5d8fae[_0x5d1125(0x1d0)])(_0x190048))throw _0x190048[_0x5d1125(0xcf)];let _0x4acc22=(_0x49f87e=_0x190048[_0x5d1125(0x22c)][0x0])==null||(_0x49f87e=_0x49f87e[_0x5d1125(0x247)])==null?void 0x0:_0x49f87e[_0x5d1125(0x3dc)];if(Array['isArray'](_0x4acc22)&&_0x4acc22[_0x5d1125(0x141)]){if(_0x4acc22[_0x5d1125(0x141)]===_0x584538[0x0][_0x5d1125(0x247)]['selections'][_0x5d1125(0x141)]&&_0x4acc22[_0x5d1125(0x1e3)]((_0x23210a,_0x6286c9)=>_0x3ea0ad[_0x5d1125(0x3ee)][_0x5d1125(0x2fb)](_0x23210a[_0x5d1125(0x260)],_0x584538[0x0][_0x5d1125(0x247)][_0x5d1125(0x3dc)][_0x6286c9][_0x5d1125(0x260)])))return;this[_0x5d1125(0x26d)]['get'](_0x3ea0ad[_0x5d1125(0x35e)])[_0x5d1125(0x151)](_0x1dfeb2['SetSelectionsOperation']['id'],{'unitId':_0x1071c3,'subUnitId':_0x3bd998,'selections':_0x4acc22});}}};_0x5ad7dd=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x1,_0x5d8fae[_0x387812(0x281)]),_0x29ab6d(0x2,_0x3ea0ad[_0x387812(0x2fe)])],_0x5ad7dd);let _0x989852=(0x0,_0x3ea0ad[_0x387812(0x359)])('univer-pro.collaboration-client.single-active-unit-service'),_0x1dcdde=function(_0x28dfe3){const _0x4e6148=_0x387812;return _0x28dfe3[_0x28dfe3[_0x4e6148(0x11e)]=0x0]=_0x4e6148(0x11e),_0x28dfe3[_0x28dfe3[_0x4e6148(0x1ec)]=0x1]=_0x4e6148(0x1ec),_0x28dfe3;}({});function _0x18f735(_0x4dbb99){const _0x2403f9=_0x387812;var _0x2b4747;return!!((_0x2b4747=_0x4dbb99[_0x2403f9(0x247)])!=null&&_0x2b4747[_0x2403f9(0x17e)]);}let _0x56b5ff=new Set([_0x1dfeb2['InsertSheetMutation']['id']]),_0x3c2f68=new Set([_0x438df1[_0x387812(0x181)]['id'],_0x438df1[_0x387812(0x285)]['id'],_0x438df1['MoveSlidePageMutation']['id'],_0x438df1[_0x387812(0x19a)]['id']]);function _0x53635f(_0x2b20c9,_0x399ca2=_0x56b5ff){const _0x86cb5e=_0x387812;let _0x2f3720=[];for(let _0x408c5b of _0x2b20c9){if(_0x399ca2[_0x86cb5e(0xc6)](_0x408c5b['id'])){if(_0x2f3720['length']>0x0)break;_0x2f3720[_0x86cb5e(0x223)](_0x408c5b);break;}if(_0x18f735(_0x408c5b)){if(_0x2f3720[_0x86cb5e(0x141)]>0x0)break;_0x2f3720[_0x86cb5e(0x223)](_0x408c5b);break;}_0x2f3720[_0x86cb5e(0x223)](_0x408c5b);}return _0x2f3720;}function _0x4e9ac9(_0x4b22f1,_0x2ad306,_0x196041,_0x106ec2,_0x3a4059){const _0x3ef126=_0x387812;let _0xb34173=_0x53635f(_0x4b22f1),_0x4767cc=_0x3a4059['getCurrentUser'](),_0x189f6b=(_0x4767cc==null?void 0x0:_0x4767cc[_0x3ef126(0x349)])??_0x3ef126(0x367),_0x124176=(_0x4767cc==null?void 0x0:_0x4767cc[_0x3ef126(0x2c9)])??_0x3ef126(0x367);return{'changeset':{'unitID':_0x2ad306,'type':(0x0,_0x5d8fae['mapDocumentTypeToUniverInstanceType'])(_0x196041[_0x3ef126(0x280)](_0x2ad306)),'baseRev':_0x106ec2[_0x3ef126(0x1ea)](_0x2ad306),'revision':0x0,'userID':_0x189f6b,'memberID':_0x124176,'mutations':_0xb34173},'pendingMutations':_0x4b22f1[_0x3ef126(0x3af)](_0xb34173[_0x3ef126(0x141)])};}let _0x4ac4d2=_0x4e9ac9;function _0x58baf6(_0x2b48f7,_0x47e213,_0x38ddd5,_0x410664,_0x2283f6){const _0x14e1fd=_0x387812;let _0x4fc4ef=_0x53635f(_0x2b48f7,_0x3c2f68),_0x2688c0=_0x2283f6[_0x14e1fd(0x34b)](),_0x345bce=(_0x2688c0==null?void 0x0:_0x2688c0[_0x14e1fd(0x349)])??_0x14e1fd(0x367),_0x318ef0=(_0x2688c0==null?void 0x0:_0x2688c0[_0x14e1fd(0x2c9)])??_0x14e1fd(0x367);return{'changeset':{'unitID':_0x47e213,'type':(0x0,_0x5d8fae['mapDocumentTypeToUniverInstanceType'])(_0x38ddd5[_0x14e1fd(0x280)](_0x47e213)),'baseRev':_0x410664[_0x14e1fd(0x1ea)](_0x47e213),'revision':0x0,'userID':_0x345bce,'memberID':_0x318ef0,'mutations':_0x4fc4ef},'pendingMutations':_0x2b48f7[_0x14e1fd(0x3af)](_0x4fc4ef[_0x14e1fd(0x141)])};}function _0x26b88c(_0xbd356e,_0x3b5d44,_0x5bea28,_0x22e5fe,_0x212176){const _0x3e31aa=_0x387812;let _0x38705d=_0xbd356e[_0x3e31aa(0x3cf)]((_0x3ddea5,_0x14e908)=>{const _0x4ee905=_0x3e31aa;let _0x3ab401=_0x3ddea5[_0x3ddea5[_0x4ee905(0x141)]-0x1],{id:_0x214ea4}=_0x3ab401??{},{id:_0x8e2a0,type:_0x2d10b1}=_0x14e908,_0xac8c45=_0x14e908[_0x4ee905(0x247)];if(_0x214ea4&&_0x214ea4!==_0x8e2a0)throw Error(_0x4ee905(0x24b)+_0x214ea4+'\x20-\x20'+_0x8e2a0+'.');if(!_0x3ab401)return[{'id':_0x8e2a0,'type':_0x2d10b1,'params':{'unitId':_0xac8c45[_0x4ee905(0x397)],'textRanges':_0xac8c45[_0x4ee905(0x259)],'actions':_0xac8c45[_0x4ee905(0x34c)]}}];let _0x37cb8a=_0x3ab401[_0x4ee905(0x247)];return _0x2bc1a6(_0x37cb8a,_0xac8c45)?[..._0x3ddea5[_0x4ee905(0x3af)](0x0,-0x1),{..._0x3ab401,'id':_0x8e2a0,'type':_0x2d10b1,'params':{'unitId':_0xac8c45[_0x4ee905(0x397)],'textRanges':_0xac8c45[_0x4ee905(0x259)],'actions':_0x3ea0ad[_0x4ee905(0x2ed)][_0x4ee905(0x2db)](_0x37cb8a['actions'],_0xac8c45[_0x4ee905(0x34c)])}}]:[..._0x3ddea5,{'id':_0x8e2a0,'type':_0x2d10b1,'params':{'unitId':_0xac8c45[_0x4ee905(0x397)],'textRanges':_0xac8c45[_0x4ee905(0x259)],'actions':_0xac8c45[_0x4ee905(0x34c)]}}];},[]),_0x433a82=_0x212176['getCurrentUser'](),_0x3b18ca=(_0x433a82==null?void 0x0:_0x433a82[_0x3e31aa(0x349)])??'unknown',_0x32219e=(_0x433a82==null?void 0x0:_0x433a82[_0x3e31aa(0x2c9)])??_0x3e31aa(0x367);return{'changeset':{'unitID':_0x3b5d44,'type':(0x0,_0x5d8fae['mapDocumentTypeToUniverInstanceType'])(_0x5bea28[_0x3e31aa(0x280)](_0x3b5d44)),'baseRev':_0x22e5fe[_0x3e31aa(0x1ea)](_0x3b5d44),'revision':0x0,'userID':_0x3b18ca,'memberID':_0x32219e,'mutations':_0x38705d},'pendingMutations':_0xbd356e[_0x3e31aa(0x3af)](_0xbd356e[_0x3e31aa(0x141)])};}function _0x2bc1a6(_0x466e59,_0x4455a9){const _0x4f52e6=_0x387812;return!_0x39fbb9(_0x466e59)&&!_0x39fbb9(_0x4455a9)&&_0x5a66f3(_0x466e59[_0x4f52e6(0x34c)],_0x4455a9[_0x4f52e6(0x34c)]);}function _0x39fbb9(_0x57b309){const _0x27bad1=_0x387812;return _0x57b309[_0x27bad1(0x37a)]!==void 0x0;}function _0x5a66f3(_0x7be381,_0x5e7b6d){return _0x4b21ca(_0x7be381)&&_0x4b21ca(_0x5e7b6d)&&!_0x51976a(_0x7be381)&&!_0x51976a(_0x5e7b6d)&&!_0x4338e4(_0x7be381)&&!_0x4338e4(_0x5e7b6d);}function _0x4b21ca(_0x51fde4){const _0x2b388a=_0x387812;return _0x47d724(_0x51fde4)[_0x2b388a(0x344)](_0xfa1715=>_0x2c696c(_0xfa1715)&&_0xfa1715['et']===_0x2b388a(0xaa));}function _0x4338e4(_0x4a9bea){const _0xde65e5=_0x387812;return _0x47d724(_0x4a9bea)[_0xde65e5(0x344)](_0x65a9f1=>Array[_0xde65e5(0x3bf)](_0x65a9f1)||typeof _0x65a9f1==_0xde65e5(0x17f)||typeof _0x65a9f1==_0xde65e5(0x2bc));}function _0x51976a(_0x422647){const _0x1d8e56=_0x387812;return _0x47d724(_0x422647)['some'](_0x37c33b=>!_0x2c696c(_0x37c33b)||_0x37c33b['et']!==_0x1d8e56(0xaa)||!Array[_0x1d8e56(0x3bf)](_0x37c33b['e'])?!0x1:_0x37c33b['e'][_0x1d8e56(0x344)](_0xb60e8a=>!_0x2c696c(_0xb60e8a)||!_0x2c696c(_0xb60e8a[_0x1d8e56(0x2a8)])?!0x1:Object['prototype'][_0x1d8e56(0x2c0)][_0x1d8e56(0x3dd)](_0xb60e8a[_0x1d8e56(0x2a8)],_0x1d8e56(0x248))||Object[_0x1d8e56(0x1d8)][_0x1d8e56(0x2c0)]['call'](_0xb60e8a[_0x1d8e56(0x2a8)],_0x1d8e56(0x2ff))||Object[_0x1d8e56(0x1d8)][_0x1d8e56(0x2c0)][_0x1d8e56(0x3dd)](_0xb60e8a['body'],'blockRanges')));}function _0x47d724(_0x115f1f){const _0x267ea6=_0x387812;if(!Array[_0x267ea6(0x3bf)](_0x115f1f))return[];let _0x56eda1=_0x115f1f[_0x267ea6(0x34d)](_0x267ea6(0x2a8))?_0x115f1f:_0x115f1f[_0x267ea6(0x1ee)](_0x1e88a5=>Array['isArray'](_0x1e88a5)&&_0x1e88a5[_0x267ea6(0x34d)](_0x267ea6(0x2a8)));if(!Array[_0x267ea6(0x3bf)](_0x56eda1))return[];let _0x10d89b=_0x56eda1[_0x267ea6(0x161)](_0x267ea6(0x2a8));return _0x10d89b===-0x1?[]:_0x56eda1[_0x267ea6(0x3af)](_0x10d89b+0x1);}function _0x2c696c(_0x5a746d){const _0x41f01f=_0x387812;return typeof _0x5a746d==_0x41f01f(0x31d)&&!!_0x5a746d&&!Array[_0x41f01f(0x3bf)](_0x5a746d);}function _0x79682b(_0x1e345f,_0x3a801e){const _0x294d19=_0x387812;let _0x4c1cca=new _0x3a9bce['ReplaySubject'](0x1);return setTimeout(()=>_0x4c1cca[_0x294d19(0x316)](_0x3a801e),_0x1e345f),_0x4c1cca[_0x294d19(0x1fe)]()['pipe']((0x0,_0x3a9bce['take'])(0x1));}var _0x34696c,_0x13fbcf,_0x39ef6a;let _0x2a8e35=function(_0x4e8e7c){const _0x27c1ff=_0x387812;return _0x4e8e7c[_0x27c1ff(0x1c5)]='not_collab',_0x4e8e7c['SYNCED']='synced',_0x4e8e7c['PENDING']=_0x27c1ff(0x3b7),_0x4e8e7c[_0x27c1ff(0x2ab)]=_0x27c1ff(0xc9),_0x4e8e7c[_0x27c1ff(0x261)]=_0x27c1ff(0x3e7),_0x4e8e7c[_0x27c1ff(0x293)]=_0x27c1ff(0x337),_0x4e8e7c[_0x27c1ff(0x129)]=_0x27c1ff(0x375),_0x4e8e7c[_0x27c1ff(0x2ac)]=_0x27c1ff(0x3fb),_0x4e8e7c;}({}),_0x41e167=0x4e20,_0x3acf04=0x2bf20;var _0x523ae7=class{constructor(_0x19e641,_0x5eb5d1,_0x30d344,_0x4b3c13,_0x50cfd0,_0x33a07d,_0x31b4ea,_0x43ad4b,_0x1d8052){const _0x437e41=_0x387812;this[_0x437e41(0x2be)]=_0x19e641,this['type']=_0x5eb5d1,this['_handler']=_0x50cfd0,this[_0x437e41(0x10a)]=_0x33a07d,this[_0x437e41(0x13a)]=_0x31b4ea,this[_0x437e41(0x2d3)]=_0x43ad4b,this[_0x437e41(0x3fe)]=_0x1d8052,_0x309f50(this,_0x437e41(0xb5),null),_0x309f50(this,_0x437e41(0x35a),[]),this['_awaitingChangeset']=_0x30d344,this[_0x437e41(0x35a)]=_0x4b3c13;}[_0x387812(0x350)](_0x4ab7d3){const _0x105e54=_0x387812;let _0x2ca078=this[_0x105e54(0x2d3)][_0x105e54(0x1ea)](this[_0x105e54(0x2be)]);return _0x4ab7d3['revision']>_0x2ca078+0x1?(this[_0x105e54(0x2a9)][_0x105e54(0x2f8)]({'from':_0x2ca078,'to':_0x4ab7d3[_0x105e54(0x3da)]-0x1}),!0x0):!0x1;}[_0x387812(0x28c)](_0x42bbe4){const _0x35bbe2=_0x387812;this[_0x35bbe2(0x13a)][_0x35bbe2(0x2b9)](this['unitID'],_0x42bbe4);}[_0x387812(0xe9)](_0x55767d){const _0x1765c5=_0x387812;var _0x164056,_0x55a42e;(_0x164056=(_0x55a42e=this[_0x1765c5(0x2a9)])['onTransformSelections'])==null||_0x164056[_0x1765c5(0x3dd)](_0x55a42e,_0x55767d);}[_0x387812(0x3b1)](_0x4e6ed3){const _0x2e5c74=_0x387812;var _0x465b2a,_0x3db034;return(_0x465b2a=(_0x3db034=this[_0x2e5c74(0x2a9)])['onTransformIME'])==null?void 0x0:_0x465b2a['call'](_0x3db034,_0x4e6ed3);}['_transformStateCache'](_0x3c4d33){const _0xa67846=_0x387812;var _0x39000c,_0x4379b1;return(_0x39000c=(_0x4379b1=this[_0xa67846(0x2a9)])[_0xa67846(0x267)])==null?void 0x0:_0x39000c['call'](_0x4379b1,_0x3c4d33);}['_transformRemoteChangesetByIMECache'](_0x59fa06){const _0x4e5780=_0x387812;var _0x1ee655,_0x4d590f;return((_0x1ee655=(_0x4d590f=this[_0x4e5780(0x2a9)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x1ee655[_0x4e5780(0x3dd)](_0x4d590f,_0x59fa06))??_0x59fa06;}['_transformRemoteChangesetByStateCache'](_0x1d3f25){const _0x3a27e6=_0x387812;var _0x3c1dd5,_0x34a03f;return((_0x3c1dd5=(_0x34a03f=this[_0x3a27e6(0x2a9)])[_0x3a27e6(0x33c)])==null?void 0x0:_0x3c1dd5[_0x3a27e6(0x3dd)](_0x34a03f,_0x1d3f25))??_0x1d3f25;}[_0x387812(0x160)](_0x41990f){const _0x170e5d=_0x387812;if(this[_0x170e5d(0x131)]===_0x3ea0ad[_0x170e5d(0x20e)][_0x170e5d(0x2e8)]){let {unitID:_0x469df8,mutations:_0x2a6566,memberID:_0x262ca8}=_0x41990f,_0x29e3e3=_0x2a6566[_0x170e5d(0x141)]>0x0?_0x2a6566[0x0][_0x170e5d(0x247)][_0x170e5d(0x259)]:[];if(Array[_0x170e5d(0x3bf)](_0x29e3e3)&&_0x29e3e3[_0x170e5d(0x141)]>0x0){var _0x56973d,_0x2d99bc;(_0x56973d=(_0x2d99bc=this[_0x170e5d(0x2a9)])[_0x170e5d(0x288)])==null||_0x56973d[_0x170e5d(0x3dd)](_0x2d99bc,{'unitID':_0x469df8,'memberID':_0x262ca8,'textRanges':_0x29e3e3});}}}[_0x387812(0x332)](){const _0x34da4c=_0x387812;var _0x1b763f;(_0x1b763f=this[_0x34da4c(0x3fe)])==null||_0x1b763f[_0x34da4c(0x18a)](this['unitID'],this[_0x34da4c(0x131)],this[_0x34da4c(0xb5)],this[_0x34da4c(0x35a)]);}['_getCurrentRevision'](){const _0x268466=_0x387812;return this[_0x268466(0x2d3)][_0x268466(0x1ea)](this[_0x268466(0x2be)]);}[_0x387812(0x2a6)](){const _0x313cd2=_0x387812;this['_revisionService']['incrementRevOfUnit'](this[_0x313cd2(0x2be)]);}[_0x387812(0x3ce)](_0x520580){const _0x42815b=_0x387812;let _0x2c8011=this[_0x42815b(0x24d)](_0x520580);_0x2c8011=this[_0x42815b(0x187)](_0x2c8011);let _0x181bd4=(0x0,_0x3ea0ad[_0x42815b(0x255)])(_0x2c8011[_0x42815b(0x3bd)],this[_0x42815b(0x10a)],{'fromCollab':!0x0});if(!_0x181bd4[_0x42815b(0xff)])throw _0x181bd4[_0x42815b(0xcf)]instanceof Error?_0x181bd4[_0x42815b(0xcf)]:Error(_0x181bd4[_0x42815b(0xcf)]??_0x42815b(0x2ba));this[_0x42815b(0x3b1)](_0x2c8011),this[_0x42815b(0x362)](_0x2c8011),this[_0x42815b(0x28c)](_0x520580),this[_0x42815b(0xe9)](_0x2c8011),this[_0x42815b(0x160)](_0x2c8011),this[_0x42815b(0x2a6)]();}};let _0x5d844f=class extends _0x523ae7{constructor(_0x4f363f,_0x2516af,_0x170f23,_0x5570a3,_0x3557f,_0x320ad8,_0x3d0546,_0x42f8d0,_0x19c46a,_0x6e9626){const _0x165b74=_0x387812;super(_0x4f363f,_0x2516af,null,[],_0x170f23,_0x3d0546,_0x320ad8,_0x5570a3,_0x6e9626),this['_injector']=_0x3557f,this[_0x165b74(0x1fc)]=_0x42f8d0,this['_transformService']=_0x19c46a,this[_0x165b74(0x39c)]=_0x6e9626,_0x309f50(this,_0x165b74(0x210),_0x165b74(0x3c4));}[_0x387812(0x387)](_0x4ca139){const _0x2303a5=_0x387812;let _0x4729e3=this[_0x2303a5(0x26d)][_0x2303a5(0xc4)](_0x5b6c26,this[_0x2303a5(0x2be)],this[_0x2303a5(0x131)],[_0x4ca139],this[_0x2303a5(0x2a9)]);return _0x4729e3[_0x2303a5(0x2f6)](),_0x4729e3['_updateLocalCache'](),_0x4729e3;}[_0x387812(0x201)](_0x46776c){const _0x46767f=_0x387812;if(this[_0x46767f(0x350)](_0x46776c))return this[_0x46767f(0x26d)][_0x46767f(0xc4)](_0x1c9a8a,this[_0x46767f(0x2be)],this['type'],null,[],null,[_0x46776c],this[_0x46767f(0x2a9)]);try{let _0x2969bf=this[_0x46767f(0xb8)]['transformMutationsWithChangeset'](_0x46776c,[_0x5d8fae[_0x46767f(0x1cc)]]);if((0x0,_0x5d8fae[_0x46767f(0x1d0)])(_0x2969bf)){let {c1Prime:_0x50f87f}=_0x2969bf;return this[_0x46767f(0x3ce)](_0x50f87f),this;}throw _0x2969bf[_0x46767f(0xcf)];}catch(_0x18da32){return this['_logService'][_0x46767f(0xcf)](_0x18da32),this[_0x46767f(0x157)](!0x1);}}['_onConflict'](_0x39b824){const _0x93458f=_0x387812;return this[_0x93458f(0x26d)][_0x93458f(0xc4)](_0x205b67,this[_0x93458f(0x2be)],this['type'],null,[],this[_0x93458f(0x2a9)],_0x39b824);}[_0x387812(0x398)](_0x39143f){const _0x1751e3=_0x387812;if(_0x39143f[_0x1751e3(0x3da)]<=this[_0x1751e3(0x36c)]())return this;throw Error(_0x1751e3(0x3e6));}[_0x387812(0x1ac)](){throw Error('[SyncedState]:\x20received\x20rejection.');}[_0x387812(0x1d3)](){return this;}[_0x387812(0x283)](){const _0x8e84d8=_0x387812;return this['_injector'][_0x8e84d8(0xc4)](_0x119cc1,this[_0x8e84d8(0x2be)],this[_0x8e84d8(0x131)],null,[],this['_handler']);}[_0x387812(0x304)](){return this;}[_0x387812(0x331)](){const _0x5d3510=_0x387812;throw Error(_0x5d3510(0x1e6));}[_0x387812(0xfc)](){const _0x2c33cb=_0x387812;let _0x431712=this[_0x2c33cb(0x2d3)][_0x2c33cb(0x1ea)](this[_0x2c33cb(0x2be)]);return this['_handler'][_0x2c33cb(0x2f8)]({'from':_0x431712,'to':0x0}),this[_0x2c33cb(0x26d)][_0x2c33cb(0xc4)](_0x1c9a8a,this[_0x2c33cb(0x2be)],this[_0x2c33cb(0x131)],null,[],null,[],this[_0x2c33cb(0x2a9)]);}};_0x5d844f=_0x48064b([_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x5,_0x3ea0ad['IUndoRedoService']),_0x29ab6d(0x6,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0x7,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0x8,_0x5d8fae[_0x387812(0x281)]),_0x29ab6d(0x9,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x5d844f);let _0x5b6c26=_0x34696c=class extends _0x523ae7{constructor(_0x16faae,_0x3b27b7,_0x586b47,_0x5ffe8f,_0x475575,_0x14b3a0,_0x3afe05,_0x28e962,_0x11dda5,_0x4537cf,_0x37c57,_0x6a3ecd,_0x3d3524,_0x9d2347){const _0x42ed47=_0x387812;super(_0x16faae,_0x3b27b7,null,_0x586b47,_0x5ffe8f,_0x11dda5,_0x3d3524,_0x14b3a0,_0x9d2347),this[_0x42ed47(0x26d)]=_0x475575,this[_0x42ed47(0x1af)]=_0x3afe05,this[_0x42ed47(0x1fc)]=_0x28e962,this[_0x42ed47(0x327)]=_0x4537cf,this[_0x42ed47(0xb8)]=_0x37c57,this[_0x42ed47(0xc8)]=_0x6a3ecd,_0x309f50(this,'status',_0x42ed47(0x3b7)),_0x309f50(this,_0x42ed47(0xe7),null),_0x309f50(this,'_sendingTimer',null);}[_0x387812(0x387)](_0x2ed534){const _0x3e2442=_0x387812;return this[_0x3e2442(0x35a)][_0x3e2442(0x223)](_0x2ed534),this[_0x3e2442(0x332)](),this;}['onRemoteChangeset'](_0x479b7a){const _0x4125c5=_0x387812;if(this[_0x4125c5(0x350)](_0x479b7a))return this[_0x4125c5(0x22b)](),this[_0x4125c5(0x26d)]['createInstance'](_0x1c9a8a,this[_0x4125c5(0x2be)],this[_0x4125c5(0x131)],null,this[_0x4125c5(0x35a)],null,[_0x479b7a],this[_0x4125c5(0x2a9)]);try{let _0x1070ef=this[_0x4125c5(0xb8)]['transformMutationsWithChangeset'](_0x479b7a,this['_pendingMutations']);if((0x0,_0x5d8fae['isTransformMutationsWithChangesetSuccess'])(_0x1070ef)){let {c1Prime:_0x1a24b1,m2Prime:_0xd13112}=_0x1070ef;this[_0x4125c5(0x3ce)](_0x1a24b1);let _0x3d0754=this[_0x4125c5(0x26d)]['createInstance'](_0x34696c,this['unitID'],this[_0x4125c5(0x131)],_0xd13112,this[_0x4125c5(0x2a9)]);this[_0x4125c5(0x22b)]();let _0x574d27=new Date()[_0x4125c5(0x221)](),_0x2458df=this['_scheduleCompleteTimestamp']?Math[_0x4125c5(0xb4)](this['_scheduleCompleteTimestamp']-_0x574d27,0x0):this[_0x4125c5(0x296)]();return _0x3d0754[_0x4125c5(0x2f6)](_0x2458df),_0x3d0754;}throw _0x1070ef[_0x4125c5(0xcf)];}catch(_0x5e2a3b){return this[_0x4125c5(0x1fc)]['error'](_0x5e2a3b),this['_onConflict'](!0x1);}}[_0x387812(0x398)](_0x471409){const _0x224e3a=_0x387812;if(_0x471409['revision']<=this[_0x224e3a(0x36c)]())return this;throw Error(_0x224e3a(0x20f));}[_0x387812(0x1ac)](){const _0x1fd386=_0x387812;throw Error(_0x1fd386(0x1fd));}[_0x387812(0x1d3)](){return this;}[_0x387812(0x283)](){const _0xccad26=_0x387812;return this[_0xccad26(0x22b)](),this['_injector'][_0xccad26(0xc4)](_0x119cc1,this['unitID'],this[_0xccad26(0x131)],null,this[_0xccad26(0x35a)],this[_0xccad26(0x2a9)]);}['toggleOnline'](){return this;}[_0x387812(0x2f6)](_0x1baa08){const _0x498944=_0x387812;let _0x2bc864=_0x1baa08??this['_getSendChangesetTimeout']();this[_0x498944(0xe7)]=new Date()['getTime']()+_0x2bc864,this[_0x498944(0x36f)]=setTimeout(()=>{const _0x104d43=_0x498944;this['_clearScheduledTask']();let _0x26a3dc=null;switch(this[_0x104d43(0x131)]){case _0x3ea0ad[_0x104d43(0x20e)]['UNIVER_SHEET']:_0x26a3dc=_0x4e9ac9(this['_pendingMutations'],this[_0x104d43(0x2be)],this[_0x104d43(0xc8)],this['_revisionService'],this[_0x104d43(0x1af)]);break;case _0x3ea0ad['UniverInstanceType'][_0x104d43(0x2e8)]:_0x26a3dc=this[_0x104d43(0x35a)][_0x104d43(0x1e3)](_0x494713=>_0x494713['id']===_0x160e88[_0x104d43(0x2b3)]['id'])?_0x26b88c(this['_pendingMutations'],this[_0x104d43(0x2be)],this[_0x104d43(0xc8)],this[_0x104d43(0x2d3)],this[_0x104d43(0x1af)]):_0x4e9ac9(this[_0x104d43(0x35a)],this['unitID'],this[_0x104d43(0xc8)],this[_0x104d43(0x2d3)],this[_0x104d43(0x1af)]);break;case _0x3ea0ad[_0x104d43(0x20e)][_0x104d43(0x105)]:_0x26a3dc=_0x58baf6(this[_0x104d43(0x35a)],this[_0x104d43(0x2be)],this[_0x104d43(0xc8)],this[_0x104d43(0x2d3)],this['_userManagerService']);break;case _0x3ea0ad[_0x104d43(0x20e)][_0x104d43(0x389)]:_0x26a3dc=_0x4ac4d2(this[_0x104d43(0x35a)],this[_0x104d43(0x2be)],this[_0x104d43(0xc8)],this['_revisionService'],this[_0x104d43(0x1af)]);break;case _0x3ea0ad[_0x104d43(0x20e)][_0x104d43(0x237)]:_0x26a3dc=_0x4e9ac9(this[_0x104d43(0x35a)],this['unitID'],this['_univerInstanceService'],this[_0x104d43(0x2d3)],this[_0x104d43(0x1af)]);break;case _0x3ea0ad[_0x104d43(0x20e)][_0x104d43(0x382)]:_0x26a3dc=_0x4e9ac9(this[_0x104d43(0x35a)],this[_0x104d43(0x2be)],this[_0x104d43(0xc8)],this['_revisionService'],this['_userManagerService']);break;default:throw Error(_0x104d43(0x3a8)+this[_0x104d43(0x131)]+_0x104d43(0x3fc));}let {changeset:_0x127eff,pendingMutations:_0x5357fb}=_0x26a3dc;this[_0x104d43(0x2a9)][_0x104d43(0x140)](_0x127eff);let _0x53e62a=_0x5357fb[_0x104d43(0x141)]?this[_0x104d43(0x26d)][_0x104d43(0xc4)](_0x4ebec0,this[_0x104d43(0x2be)],this['type'],_0x127eff,_0x5357fb,this['_handler'],void 0x0):this[_0x104d43(0x26d)][_0x104d43(0xc4)](_0x70527d,this['unitID'],this[_0x104d43(0x131)],_0x127eff,this[_0x104d43(0x2a9)]);_0x53e62a[_0x104d43(0x332)](),this['_handler'][_0x104d43(0x204)](this,_0x53e62a);},_0x2bc864);}[_0x387812(0x296)](){const _0x184904=_0x387812;let _0x2ede1f=this[_0x184904(0x327)]['getConfig'](_0xeb659);return(_0x2ede1f==null?void 0x0:_0x2ede1f[_0x184904(0x1c8)])??0x7d0;}[_0x387812(0x331)](){const _0x50ea25=_0x387812;throw Error(_0x50ea25(0x19e));}[_0x387812(0x22b)](){const _0xe52e1a=_0x387812;this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this[_0xe52e1a(0x36f)]=null);}[_0x387812(0x157)](_0x29b450){const _0x292b99=_0x387812;return this[_0x292b99(0x22b)](),this['_injector']['createInstance'](_0x205b67,this[_0x292b99(0x2be)],this[_0x292b99(0x131)],null,this[_0x292b99(0x35a)],this[_0x292b99(0x2a9)],_0x29b450);}};_0x5b6c26=_0x34696c=_0x48064b([_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x5,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x6,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x20c)])),_0x29ab6d(0x7,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0x8,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0x9,_0x3ea0ad[_0x387812(0x2b5)]),_0x29ab6d(0xa,_0x5d8fae[_0x387812(0x281)]),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x2fe)]),_0x29ab6d(0xc,_0x3ea0ad[_0x387812(0x240)]),_0x29ab6d(0xd,(0x0,_0x3ea0ad['Optional'])(_0x4e9987))],_0x5b6c26);let _0x70527d=_0x13fbcf=class extends _0x523ae7{constructor(_0x48220a,_0x232a73,_0x1ef5da,_0x263c65,_0x1c35ff,_0x360804,_0xe49e23,_0x37a441,_0x5bd73b,_0x3ed242,_0x40997b){const _0x424baa=_0x387812;super(_0x48220a,_0x232a73,_0x1ef5da,[],_0x263c65,_0xe49e23,_0x3ed242,_0x360804,_0x40997b),this[_0x424baa(0x26d)]=_0x1c35ff,this[_0x424baa(0x1fc)]=_0x37a441,this[_0x424baa(0xb8)]=_0x5bd73b,_0x309f50(this,_0x424baa(0x210),_0x424baa(0xc9)),_0x309f50(this,'_resendTimeout',0x0),_0x309f50(this,_0x424baa(0x212),0x0),_0x309f50(this,_0x424baa(0x312),void 0x0),_0x309f50(this,_0x424baa(0x3ae),void 0x0);}[_0x387812(0x387)](_0x46cc21){const _0x216187=_0x387812;this[_0x216187(0x22b)]();let _0x29c000=this[_0x216187(0x26d)]['createInstance'](_0x4ebec0,this[_0x216187(0x2be)],this['type'],this[_0x216187(0xb5)],[_0x46cc21],this[_0x216187(0x2a9)],this[_0x216187(0x312)]);return _0x29c000['_updateLocalCache'](),_0x29c000;}[_0x387812(0x201)](_0x12075c){const _0x197145=_0x387812;if(this[_0x197145(0x350)](_0x12075c))return this[_0x197145(0x22b)](),this['_injector'][_0x197145(0xc4)](_0x1c9a8a,this[_0x197145(0x2be)],this[_0x197145(0x131)],this[_0x197145(0xb5)],[],null,[_0x12075c],this[_0x197145(0x2a9)]);try{let _0x58b217=this[_0x197145(0xb8)]['transformChangesets']([_0x12075c],[this[_0x197145(0xb5)]],!0x1);if((0x0,_0x5d8fae['isTransformChangesetsSuccess'])(_0x58b217)){let {c1Prime:_0x54b9ab,c2Prime:_0x1aa3f8}=_0x58b217;this[_0x197145(0x3ce)](_0x54b9ab[0x0]),_0x1aa3f8[0x0]['baseRev']=this[_0x197145(0x36c)](),this[_0x197145(0x22b)]();let _0x5b8da3=this[_0x197145(0x26d)][_0x197145(0xc4)](_0x13fbcf,this[_0x197145(0x2be)],this[_0x197145(0x131)],_0x1aa3f8[0x0],this[_0x197145(0x2a9)]);return _0x5b8da3[_0x197145(0x332)](),_0x5b8da3;}throw _0x58b217[_0x197145(0xcf)];}catch(_0x5ee986){return this['_logService'][_0x197145(0xcf)](_0x5ee986),this[_0x197145(0x157)](!0x1);}}[_0x387812(0x398)](_0x16d048){const _0x133bdb=_0x387812;this[_0x133bdb(0x22b)]();let _0x4852a4=this[_0x133bdb(0x2d3)]['getCurrentRevOfUnit'](this['unitID']);if(_0x16d048[_0x133bdb(0x3da)]<=_0x4852a4)return this;if(this[_0x133bdb(0x350)](_0x16d048))return this[_0x133bdb(0x26d)][_0x133bdb(0xc4)](_0x1c9a8a,this[_0x133bdb(0x2be)],this['type'],this['_awaitingChangeset'],[],_0x16d048[_0x133bdb(0x3da)],[],this[_0x133bdb(0x2a9)]);this[_0x133bdb(0x2a6)]();let _0x3e981e=this['_injector'][_0x133bdb(0xc4)](_0x5d844f,this[_0x133bdb(0x2be)],this[_0x133bdb(0x131)],this[_0x133bdb(0x2a9)]);return _0x3e981e[_0x133bdb(0x332)](),_0x3e981e;}['onRemoteRej'](_0x342f52){const _0x5b33b1=_0x387812;return this['_onConflict'](!!(_0x342f52!=null&&_0x342f52[_0x5b33b1(0x118)]));}['onRemoteRetry'](_0x1bdc04){const _0x31b02d=_0x387812;return this['_maxTotalRetryTimeout']>_0x3acf04?this[_0x31b02d(0x283)]():(this['_resendTimer']=_0x79682b(this[_0x31b02d(0x11b)],{'timeout':this[_0x31b02d(0x11b)],'reqId':_0x1bdc04[_0x31b02d(0x1ce)]}),this['_sender']=this['_resendTimer'][_0x31b02d(0x1a6)](({reqId:_0x18d80a,timeout:_0x362cf6})=>{const _0x377d0d=_0x31b02d;this[_0x377d0d(0xef)](_0x18d80a,_0x362cf6);}),this);}[_0x387812(0x283)](){const _0x1769f6=_0x387812;return this[_0x1769f6(0x22b)](),this[_0x1769f6(0x26d)]['createInstance'](_0x119cc1,this['unitID'],this[_0x1769f6(0x131)],this[_0x1769f6(0xb5)],[],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x4564a6=_0x387812;this[_0x4564a6(0x2a9)][_0x4564a6(0x140)](this['_awaitingChangeset']);}[_0x387812(0x157)](_0x34aafa){const _0x1022e9=_0x387812;return this[_0x1022e9(0x22b)](),this['_injector'][_0x1022e9(0xc4)](_0x205b67,this['unitID'],this['type'],this[_0x1022e9(0xb5)],[],this[_0x1022e9(0x2a9)],_0x34aafa);}[_0x387812(0xef)](_0x38b22c,_0x345e1a){const _0x2c85aa=_0x387812;var _0x50acda;_0x38b22c===((_0x50acda=this[_0x2c85aa(0xb5)])==null?void 0x0:_0x50acda['reqId'])&&(this[_0x2c85aa(0x331)](),this[_0x2c85aa(0x11b)]=_0x345e1a===0x0?0x3e8:Math[_0x2c85aa(0x33e)](_0x345e1a*0x2,_0x41e167),this[_0x2c85aa(0x212)]+=this[_0x2c85aa(0x11b)]);}[_0x387812(0x22b)](){const _0x16e955=_0x387812;var _0x10b5c8;(_0x10b5c8=this[_0x16e955(0x3ae)])==null||_0x10b5c8[_0x16e955(0x23d)](),this['_resendTimeout']=0x0,this[_0x16e955(0x212)]=0x0;}};_0x70527d=_0x13fbcf=_0x48064b([_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad['Injector'])),_0x29ab6d(0x5,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x6,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0x7,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0x8,_0x5d8fae[_0x387812(0x281)]),_0x29ab6d(0x9,_0x3ea0ad[_0x387812(0x240)]),_0x29ab6d(0xa,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x70527d);let _0x4ebec0=_0x39ef6a=class extends _0x523ae7{constructor(_0x22465e,_0x5e2750,_0x4395e2,_0x2a545c,_0x53b4f5,_0x5ed91d,_0x10767f,_0x231b19,_0x52a159,_0x466a1f,_0x4c27ec,_0x10f4cc,_0x27b030){const _0x5d1fee=_0x387812;super(_0x22465e,_0x5e2750,_0x4395e2,_0x2a545c,_0x53b4f5,_0x52a159,_0x10f4cc,_0x231b19,_0x27b030),this['_injector']=_0x10767f,this['_logService']=_0x466a1f,this[_0x5d1fee(0xb8)]=_0x4c27ec,this[_0x5d1fee(0x39c)]=_0x27b030,_0x309f50(this,_0x5d1fee(0x210),_0x5d1fee(0x3e7)),_0x309f50(this,_0x5d1fee(0x11b),0x0),_0x309f50(this,'_maxTotalRetryTimeout',0x0),_0x309f50(this,_0x5d1fee(0x312),void 0x0),_0x309f50(this,_0x5d1fee(0x3ae),void 0x0),_0x5ed91d&&(this[_0x5d1fee(0x312)]=_0x5ed91d,this['_sender']=this[_0x5d1fee(0x312)][_0x5d1fee(0x1a6)](({reqId:_0x3aac36,timeout:_0x4cceaa})=>{const _0x2c9bb9=_0x5d1fee;this[_0x2c9bb9(0xef)](_0x3aac36,_0x4cceaa);}));}[_0x387812(0x387)](_0x2ac673){const _0x2becc8=_0x387812;return this[_0x2becc8(0x35a)][_0x2becc8(0x223)](_0x2ac673),this;}[_0x387812(0x201)](_0x1039b6){const _0x315cdf=_0x387812;if(this[_0x315cdf(0x350)](_0x1039b6))return this[_0x315cdf(0x22b)](),this['_injector'][_0x315cdf(0xc4)](_0x1c9a8a,this[_0x315cdf(0x2be)],this['type'],this[_0x315cdf(0xb5)],this[_0x315cdf(0x35a)],null,[_0x1039b6],this[_0x315cdf(0x2a9)]);try{let _0x3db7c0=this[_0x315cdf(0xb8)][_0x315cdf(0x31a)]([_0x1039b6],[this[_0x315cdf(0xb5)]],!0x1);if((0x0,_0x5d8fae['isTransformChangesetsSuccess'])(_0x3db7c0)){let {c1Prime:_0x4c0e9b,c2Prime:_0x4de5d5}=_0x3db7c0,_0x2d31d3=this['_transformService'][_0x315cdf(0xa9)](_0x4c0e9b[0x0],this[_0x315cdf(0x35a)]);if((0x0,_0x5d8fae['isTransformMutationsWithChangesetSuccess'])(_0x2d31d3)){let {c1Prime:_0x2816b1,m2Prime:_0xbd82fb}=_0x2d31d3;return this[_0x315cdf(0x3ce)](_0x2816b1),_0x4de5d5[0x0][_0x315cdf(0x250)]=this[_0x315cdf(0x36c)](),this['_clearScheduledTask'](),this[_0x315cdf(0x26d)][_0x315cdf(0xc4)](_0x39ef6a,this[_0x315cdf(0x2be)],this[_0x315cdf(0x131)],_0x4de5d5[0x0],_0xbd82fb,this[_0x315cdf(0x2a9)],void 0x0);}throw _0x2d31d3['error'];}throw _0x3db7c0[_0x315cdf(0xcf)];}catch(_0x2e0b2){return this[_0x315cdf(0x1fc)][_0x315cdf(0xcf)](_0x2e0b2),this[_0x315cdf(0x157)](!0x1);}}[_0x387812(0x398)](_0x4859d3){const _0x1f529b=_0x387812;this[_0x1f529b(0x22b)]();let _0x3c88d0=this['_getCurrentRevision']();if(_0x4859d3[_0x1f529b(0x3da)]<=_0x3c88d0)return this;if(this[_0x1f529b(0x350)](_0x4859d3))return this[_0x1f529b(0x26d)][_0x1f529b(0xc4)](_0x1c9a8a,this[_0x1f529b(0x2be)],this['type'],this[_0x1f529b(0xb5)],this['_pendingMutations'],_0x4859d3[_0x1f529b(0x3da)],[],this[_0x1f529b(0x2a9)]);this[_0x1f529b(0x2a6)]();let _0x40983a=this['_injector'][_0x1f529b(0xc4)](_0x5b6c26,this[_0x1f529b(0x2be)],this[_0x1f529b(0x131)],this[_0x1f529b(0x35a)],this[_0x1f529b(0x2a9)]);return _0x40983a[_0x1f529b(0x2f6)](),_0x40983a[_0x1f529b(0x332)](),_0x40983a;}[_0x387812(0x1ac)](_0x1d781f){const _0x2a1578=_0x387812;return this['_onConflict'](!!(_0x1d781f!=null&&_0x1d781f[_0x2a1578(0x118)]));}['onRemoteRetry'](_0x358ddf){const _0x2e7e98=_0x387812;return this['_maxTotalRetryTimeout']>_0x3acf04?this[_0x2e7e98(0x283)]():(this['_resendTimer']=_0x79682b(this[_0x2e7e98(0x11b)],{'timeout':this[_0x2e7e98(0x11b)],'reqId':_0x358ddf[_0x2e7e98(0x1ce)]}),this[_0x2e7e98(0x3ae)]=this['_resendTimer'][_0x2e7e98(0x1a6)](({reqId:_0x42da15,timeout:_0x20a062})=>{const _0x6e431b=_0x2e7e98;this[_0x6e431b(0xef)](_0x42da15,_0x20a062);}),this);}[_0x387812(0x283)](){const _0x70362e=_0x387812;return this[_0x70362e(0x22b)](),this[_0x70362e(0x26d)][_0x70362e(0xc4)](_0x119cc1,this[_0x70362e(0x2be)],this[_0x70362e(0x131)],this[_0x70362e(0xb5)],this[_0x70362e(0x35a)],this['_handler']);}[_0x387812(0x304)](){return this;}[_0x387812(0x331)](){const _0x5a5d44=_0x387812;this['_handler'][_0x5a5d44(0x140)](this[_0x5a5d44(0xb5)]);}['_onConflict'](_0x4f2624){const _0x37c1ad=_0x387812;return this[_0x37c1ad(0x22b)](),this[_0x37c1ad(0x26d)][_0x37c1ad(0xc4)](_0x205b67,this['unitID'],this['type'],null,this[_0x37c1ad(0x35a)],this[_0x37c1ad(0x2a9)],_0x4f2624);}['_resendWithTimeout'](_0x450261,_0x480159){const _0x4b6324=_0x387812;var _0x120c3a;_0x450261===((_0x120c3a=this['_awaitingChangeset'])==null?void 0x0:_0x120c3a[_0x4b6324(0x1ce)])&&(this[_0x4b6324(0x331)](),this[_0x4b6324(0x11b)]=_0x480159===0x0?0x3e8:Math[_0x4b6324(0x33e)](_0x480159*0x2,_0x41e167),this[_0x4b6324(0x212)]+=this[_0x4b6324(0x11b)]);}[_0x387812(0x22b)](){const _0x472667=_0x387812;var _0x15a215;(_0x15a215=this[_0x472667(0x3ae)])==null||_0x15a215[_0x472667(0x23d)](),this[_0x472667(0x11b)]=0x0,this[_0x472667(0x212)]=0x0;}};_0x4ebec0=_0x39ef6a=_0x48064b([_0x29ab6d(0x6,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad['Injector'])),_0x29ab6d(0x7,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x8,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0x9,_0x3ea0ad['ILogService']),_0x29ab6d(0xa,_0x5d8fae['ITransformService']),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x240)]),_0x29ab6d(0xc,(0x0,_0x3ea0ad['Optional'])(_0x4e9987))],_0x4ebec0);let _0x205b67=class extends _0x523ae7{constructor(_0x4574c8,_0x3c9fca,_0x5db450,_0x377743,_0x93d004,_0x40d8be=!0x1,_0x19de48,_0x88112e,_0x23e38b,_0x556fa8,_0x270b88,_0x562c4e,_0x92fd1c){const _0x145485=_0x387812;super(_0x4574c8,_0x3c9fca,_0x5db450,_0x377743,_0x93d004,_0x88112e,_0x23e38b,_0x556fa8,_0x92fd1c),this[_0x145485(0xad)]=_0x40d8be,this[_0x145485(0x14b)]=_0x19de48,this['_localeService']=_0x270b88,this[_0x145485(0x378)]=_0x562c4e,this[_0x145485(0x39c)]=_0x92fd1c,_0x309f50(this,_0x145485(0x210),'conflict'),this[_0x145485(0x1be)](),this[_0x145485(0x338)](),this[_0x145485(0x13f)]();}[_0x387812(0x387)](){return this;}[_0x387812(0x201)](){return this;}[_0x387812(0x398)](){return this;}['onRemoteRej'](){return this;}[_0x387812(0x1d3)](){return this;}['toggleOffline'](){return this;}[_0x387812(0x304)](){return this;}[_0x387812(0x331)](){const _0x1a7695=_0x387812;throw Error(_0x1a7695(0x380));}[_0x387812(0x338)](){const _0x1be9a9=_0x387812;var _0x3c1921,_0x4ef68e,_0x151ed1;(_0x3c1921=this[_0x1be9a9(0x3fe)])==null||(_0x4ef68e=_0x3c1921['backupOfflineData'])==null||(_0x4ef68e=_0x4ef68e[_0x1be9a9(0x3dd)](_0x3c1921,this['unitID'],_0x1be9a9(0x375)))==null||_0x4ef68e[_0x1be9a9(0x18e)](()=>void 0x0),(_0x151ed1=this[_0x1be9a9(0x3fe)])==null||_0x151ed1[_0x1be9a9(0x18a)](this[_0x1be9a9(0x2be)],this[_0x1be9a9(0x131)],null,[]);}[_0x387812(0x1be)](){const _0x2f3658=_0x387812;this[_0x2f3658(0xad)]?this['_collaborationUIEventService'][_0x2f3658(0x11a)]({'id':_0x2f3658(0x34f)}):this['_collaborationUIEventService'][_0x2f3658(0x11a)]({'id':_0x2f3658(0x129)});}[_0x387812(0x13f)](){const _0x14fa8e=_0x387812;this[_0x14fa8e(0x14b)][_0x14fa8e(0xcc)](new _0x1dfeb2[(_0x14fa8e(0x276))](this[_0x14fa8e(0x2be)])['id'],!0x1);}};_0x205b67=_0x48064b([_0x29ab6d(0x6,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad[_0x387812(0x2d2)])),_0x29ab6d(0x7,_0x3ea0ad['ICommandService']),_0x29ab6d(0x8,_0x3ea0ad[_0x387812(0x240)]),_0x29ab6d(0x9,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0xa,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x26b)])),_0x29ab6d(0xb,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb)),_0x29ab6d(0xc,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x205b67);let _0x119cc1=class extends _0x523ae7{constructor(_0x34d280,_0x2b1774,_0x35f6cb,_0xf991e6,_0xe46ba4,_0x306465,_0xdd039f,_0x27dad5,_0x2a0a20,_0x5c1f30){const _0x15de74=_0x387812;super(_0x34d280,_0x2b1774,_0x35f6cb,_0xf991e6,_0xe46ba4,_0x27dad5,_0x2a0a20,_0xdd039f,_0x5c1f30),this[_0x15de74(0x26d)]=_0x306465,_0x309f50(this,_0x15de74(0x210),_0x15de74(0x3fb));}[_0x387812(0x387)](_0x3ae122){const _0x21bd5e=_0x387812;return this[_0x21bd5e(0x35a)][_0x21bd5e(0x223)](_0x3ae122),this[_0x21bd5e(0x332)](),this;}[_0x387812(0x201)](_0x5424f1){const _0x130c70=_0x387812;throw Error(_0x130c70(0x13e));}[_0x387812(0x398)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x387812(0x1ac)](){const _0x4040ba=_0x387812;throw Error(_0x4040ba(0x333));}[_0x387812(0x1d3)](){return this;}[_0x387812(0x283)](){return this;}['toggleOnline'](){const _0xae747=_0x387812;let {_injector:_0x58c790,_pendingMutations:_0x1a426d,_awaitingChangeset:_0x50de50,unitID:_0x1c11b7,_handler:_0x2e6b5f,type:_0x2e3c4}=this,_0x5f035c=_0x3aa677(_0x58c790,_0x1c11b7,_0x2e3c4,_0x50de50,_0x1a426d,_0x2e6b5f);return _0x5f035c instanceof _0x5b6c26?_0x5f035c[_0xae747(0x2f6)]():(_0x5f035c instanceof _0x4ebec0||_0x5f035c instanceof _0x70527d)&&_0x5f035c[_0xae747(0x331)](),_0x5f035c;}['resend'](){const _0x5b48c7=_0x387812;throw Error(_0x5b48c7(0x3eb));}};_0x119cc1=_0x48064b([_0x29ab6d(0x5,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x6,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x7,_0x3ea0ad['ICommandService']),_0x29ab6d(0x8,_0x3ea0ad['IUndoRedoService']),_0x29ab6d(0x9,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x119cc1);let _0x1c9a8a=class extends _0x523ae7{constructor(_0x18570b,_0x509155,_0x5572f0,_0x2d4125,_0x3b90bd,_0x3cf701,_0x16f557,_0x17f801,_0x2101d8,_0x3412f4,_0x3d71bb,_0x3624b2,_0x34bfbc,_0x4a4c17){const _0x3cf2c7=_0x387812;super(_0x18570b,_0x509155,_0x5572f0,_0x2d4125,_0x16f557,_0x3d71bb,_0x3624b2,_0x2101d8,_0x4a4c17),this[_0x3cf2c7(0x16c)]=_0x3b90bd,this[_0x3cf2c7(0x139)]=_0x3cf701,this[_0x3cf2c7(0x26d)]=_0x17f801,this[_0x3cf2c7(0x1fc)]=_0x3412f4,this['_transformService']=_0x34bfbc,this['localCacheService']=_0x4a4c17,_0x309f50(this,'status',_0x3cf2c7(0x337));}[_0x387812(0x122)](_0x12043e){const _0x558f7b=_0x387812;try{if(this[_0x558f7b(0x203)](_0x12043e)[_0x558f7b(0x2e6)])throw Error(_0x558f7b(0x16e));if(this[_0x558f7b(0x203)]([...this['_queuedRemoteChangesets']][_0x558f7b(0x179)]((_0x1d0671,_0x297b17)=>_0x1d0671[_0x558f7b(0x3da)]-_0x297b17['revision']))[_0x558f7b(0x2e6)])return this[_0x558f7b(0x139)]=[],this['_updateLocalCache'](),this[_0x558f7b(0x2a9)][_0x558f7b(0x2f8)]({'from':this[_0x558f7b(0x36c)](),'to':0x0}),this;let _0x5ea393=this['_awaitingChangeset'],_0xd273d9=this[_0x558f7b(0x35a)],_0x4a0c48;if(_0x5ea393&&_0xd273d9['length']!==0x0)_0x4a0c48=this[_0x558f7b(0x26d)][_0x558f7b(0xc4)](_0x4ebec0,this[_0x558f7b(0x2be)],this[_0x558f7b(0x131)],_0x5ea393,_0xd273d9,this[_0x558f7b(0x2a9)],void 0x0);else{if(_0x5ea393&&_0xd273d9[_0x558f7b(0x141)]===0x0)_0x5ea393[_0x558f7b(0x250)]=this['_getCurrentRevision'](),_0x4a0c48=this[_0x558f7b(0x26d)][_0x558f7b(0xc4)](_0x70527d,this['unitID'],this[_0x558f7b(0x131)],_0x5ea393,this[_0x558f7b(0x2a9)]);else{if(_0xd273d9[_0x558f7b(0x141)]!==0x0){let _0x37d7c7=this[_0x558f7b(0x26d)]['createInstance'](_0x5b6c26,this[_0x558f7b(0x2be)],this['type'],_0xd273d9,this[_0x558f7b(0x2a9)]);_0x37d7c7[_0x558f7b(0x2f6)](),_0x4a0c48=_0x37d7c7;}else _0x4a0c48=this[_0x558f7b(0x26d)][_0x558f7b(0xc4)](_0x5d844f,this['unitID'],this[_0x558f7b(0x131)],this[_0x558f7b(0x2a9)]);}}return _0x4a0c48['_updateLocalCache'](),_0x4a0c48;}catch(_0x437a7f){return this['_logService'][_0x558f7b(0xcf)](_0x558f7b(0x11f),'failed\x20to\x20apply\x20missed\x20changesets!',_0x437a7f),this[_0x558f7b(0x26d)][_0x558f7b(0xc4)](_0x205b67,this[_0x558f7b(0x2be)],this['type'],this[_0x558f7b(0xb5)],this['_pendingMutations'],this['_handler'],!0x1);}}[_0x387812(0x203)](_0x87cd21){const _0x4f5ed7=_0x387812;this[_0x4f5ed7(0x300)]();for(let _0x24bb27=0x0;_0x24bb27<_0x87cd21[_0x4f5ed7(0x141)];_0x24bb27++){let _0x517164=_0x87cd21[_0x24bb27],_0x2feced=this[_0x4f5ed7(0x36c)]();if(!(_0x517164[_0x4f5ed7(0x3da)]<=_0x2feced)){if(_0x517164[_0x4f5ed7(0x3da)]>_0x2feced+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x517164)){this[_0x4f5ed7(0x3a0)]();continue;}this[_0x4f5ed7(0x348)](_0x517164),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x387812(0x348)](_0x7e433d){const _0x445603=_0x387812;let _0x486d85=_0x7e433d,_0x54ecbc=this['_awaitingChangeset'];if(_0x54ecbc){let _0x373774=this[_0x445603(0xb8)]['transformChangesets']([_0x7e433d],[_0x54ecbc],!0x1);if(!(0x0,_0x5d8fae['isTransformChangesetsSuccess'])(_0x373774))throw _0x373774['error'];_0x486d85=_0x373774[_0x445603(0x2e3)][0x0],_0x54ecbc=_0x373774[_0x445603(0x1f4)][0x0];}let _0x35c39d=this[_0x445603(0x35a)];if(_0x35c39d['length']){let _0x52faf8=this[_0x445603(0xb8)][_0x445603(0xa9)](_0x486d85,_0x35c39d);if(!(0x0,_0x5d8fae[_0x445603(0x1d0)])(_0x52faf8))throw _0x52faf8[_0x445603(0xcf)];_0x486d85=_0x52faf8[_0x445603(0x2e3)],_0x35c39d=_0x52faf8[_0x445603(0x22c)];}this[_0x445603(0x3ce)](_0x486d85),_0x54ecbc&&(_0x54ecbc[_0x445603(0x250)]=this[_0x445603(0x36c)]()),this['_awaitingChangeset']=_0x54ecbc,this[_0x445603(0x35a)]=_0x35c39d;}[_0x387812(0x300)](){const _0x319b95=_0x387812;if(!this[_0x319b95(0xb5)]||this[_0x319b95(0x16c)]==null)return;let _0x49077c=this['_getCurrentRevision']();if(this[_0x319b95(0x16c)]<=_0x49077c)throw Error(_0x319b95(0xba)+this[_0x319b95(0x16c)]+'.');this[_0x319b95(0x16c)]===_0x49077c+0x1&&this[_0x319b95(0x3a0)]();}['_acknowledgeAwaiting'](){const _0x3727ba=_0x387812;this['_incrementRevisionNumber'](),this[_0x3727ba(0xb5)]=null,this['_acknowledgedAwaitingRevision']=null;}[_0x387812(0x29d)](_0xddc761){const _0x1af4f0=_0x387812;let _0x4d5391=this[_0x1af4f0(0xb5)];return!_0x4d5391||!_0x4d5391['sid']||_0x4d5391['reqId']===null||_0x4d5391[_0x1af4f0(0x1ce)]===void 0x0?!0x1:_0xddc761[_0x1af4f0(0x2be)]===_0x4d5391['unitID']&&_0xddc761[_0x1af4f0(0x2cd)]===_0x4d5391['sid']&&_0xddc761[_0x1af4f0(0x1ce)]===_0x4d5391[_0x1af4f0(0x1ce)];}['resend'](){const _0x1ce6f8=_0x387812;throw Error(_0x1ce6f8(0x284));}[_0x387812(0x387)](_0x231194){const _0x4a4ac6=_0x387812;return this['_pendingMutations'][_0x4a4ac6(0x223)](_0x231194),this;}[_0x387812(0x201)](_0x3fc0ca){const _0x1af243=_0x387812;return this[_0x1af243(0x139)]['push'](_0x3fc0ca),this;}['onRemoteAck'](_0x324a21){const _0x258ec5=_0x387812;if(this[_0x258ec5(0xb5)]){let _0x4519b0=this['_getCurrentRevision']();return _0x324a21[_0x258ec5(0x3da)]<=_0x4519b0||(_0x4519b0+0x1===_0x324a21[_0x258ec5(0x3da)]?(this[_0x258ec5(0x2a6)](),this[_0x258ec5(0xb5)]=null,this['_acknowledgedAwaitingRevision']=null):this['_acknowledgedAwaitingRevision']=_0x324a21[_0x258ec5(0x3da)]),this;}if(_0x324a21['revision']<=this[_0x258ec5(0x36c)]())return this;throw Error(_0x258ec5(0x2f7));}['onRemoteRej'](_0x1a419a){const _0x30518e=_0x387812;return this['_onConflict'](!!(_0x1a419a!=null&&_0x1a419a[_0x30518e(0x118)]));}[_0x387812(0x1d3)](){return this;}[_0x387812(0x283)](){const _0x1253db=_0x387812;return this[_0x1253db(0x26d)][_0x1253db(0xc4)](_0x119cc1,this[_0x1253db(0x2be)],this[_0x1253db(0x131)],this[_0x1253db(0xb5)],this[_0x1253db(0x35a)],this['_handler']);}[_0x387812(0x304)](){return this;}['_onConflict'](_0x574520){const _0x569694=_0x387812;return this[_0x569694(0x26d)]['createInstance'](_0x205b67,this[_0x569694(0x2be)],this[_0x569694(0x131)],this[_0x569694(0xb5)],this[_0x569694(0x35a)],this[_0x569694(0x2a9)],_0x574520);}};_0x1c9a8a=_0x48064b([_0x29ab6d(0x7,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x8,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x9,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0xa,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x240)]),_0x29ab6d(0xc,_0x5d8fae[_0x387812(0x281)]),_0x29ab6d(0xd,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x1c9a8a);function _0x3aa677(_0x32c829,_0x5d0130,_0x14b58c,_0x25ea5b,_0x20118e,_0x4ee491){const _0xfad08a=_0x387812;return _0x25ea5b&&_0x20118e[_0xfad08a(0x141)]?_0x32c829['createInstance'](_0x4ebec0,_0x5d0130,_0x14b58c,_0x25ea5b,_0x20118e,_0x4ee491,void 0x0):_0x25ea5b?_0x32c829[_0xfad08a(0xc4)](_0x70527d,_0x5d0130,_0x14b58c,_0x25ea5b,_0x4ee491):_0x20118e[_0xfad08a(0x141)]?_0x32c829[_0xfad08a(0xc4)](_0x5b6c26,_0x5d0130,_0x14b58c,_0x20118e,_0x4ee491):_0x32c829['createInstance'](_0x5d844f,_0x5d0130,_0x14b58c,_0x4ee491);}let _0xf00944=class extends _0x3ea0ad[_0x387812(0x150)]{get[_0x387812(0x12b)](){return this['_state'];}constructor(_0x3ed55d,_0x54bcf2,_0x21bef2,_0x507e5e,_0x1b642b,_0x6ead6,_0x483ac5,_0x3c7b77,_0x53a2e8,_0x25e711,_0x1f8bb5,_0x582543,_0x51ef93,_0x234566){const _0x2ec04f=_0x387812;super(),this[_0x2ec04f(0x2be)]=_0x3ed55d,this[_0x2ec04f(0x309)]=_0x54bcf2,this[_0x2ec04f(0x2ce)]=_0x21bef2,this[_0x2ec04f(0x26d)]=_0x507e5e,this[_0x2ec04f(0x291)]=_0x1b642b,this[_0x2ec04f(0x38a)]=_0x6ead6,this['_revisionService']=_0x483ac5,this['_eventService']=_0x3c7b77,this[_0x2ec04f(0xc8)]=_0x53a2e8,this[_0x2ec04f(0x1fc)]=_0x25e711,this[_0x2ec04f(0x10a)]=_0x1f8bb5,this['_permissionService']=_0x582543,this[_0x2ec04f(0x339)]=_0x51ef93,this['_localCacheService']=_0x234566,_0x309f50(this,_0x2ec04f(0xdb),new _0x3a9bce[(_0x2ec04f(0x24a))](null)),_0x309f50(this,'state$',this['_state$'][_0x2ec04f(0x1fe)]()),_0x309f50(this,_0x2ec04f(0xf1),void 0x0),_0x309f50(this,_0x2ec04f(0x390),!0x1),_0x309f50(this,'_changesetSessionId',''),_0x309f50(this,_0x2ec04f(0xce),0x0),_0x309f50(this,'status$',this[_0x2ec04f(0xcd)][_0x2ec04f(0x298)]((0x0,_0x3a9bce['map'])(_0x58c24a=>_0x58c24a?_0x58c24a[_0x2ec04f(0x210)]:'offline'),(0x0,_0x3a9bce[_0x2ec04f(0x239)])({'bufferSize':0x1,'refCount':!0x0}))),_0x309f50(this,'_transitionLocked',!0x1),_0x309f50(this,'_remoteChangesetQueue',[]);}async[_0x387812(0x183)](){const _0x3993a5=_0x387812;if(this[_0x3993a5(0x12b)])throw Error(_0x3993a5(0xbf));await this[_0x3993a5(0x3a4)]();}[_0x387812(0x311)](){const _0x566430=_0x387812;return this['_collaborationPaused']=!0x0,(0x0,_0x3ea0ad[_0x566430(0x21f)])(()=>{const _0x5ab08b=_0x566430;this[_0x5ab08b(0x390)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['onLocalMutation'](_0xd46493){const _0x2e6ae0=_0x387812;this[_0x2e6ae0(0x1d9)](_0xd46493);}[_0x387812(0x265)](_0x59a395){const _0x2b37b4=_0x387812;this[_0x2b37b4(0xf1)]=_0x59a395,this[_0x2b37b4(0xdb)][_0x2b37b4(0x316)](_0x59a395);}async[_0x387812(0x3a4)](){const _0x480185=_0x387812;if(this[_0x480185(0x265)](await this[_0x480185(0x32c)]()),this[_0x480185(0x339)]){var _0x3bf5e0;(_0x3bf5e0=this['_singleActiveUnitService'])==null||_0x3bf5e0['editingUnit'](this[_0x480185(0x2be)]),this[_0x480185(0x1b5)](this['_singleActiveUnitService'][_0x480185(0x109)](this['unitID'])[_0x480185(0x1a6)](_0x1a1649=>{const _0x3dc4e8=_0x480185;this['_logService'][_0x3dc4e8(0x2f0)](_0x3dc4e8(0x21b),'editing\x20status\x20changed\x20to',_0x1a1649),_0x1a1649===0x1?(this[_0x3dc4e8(0x234)][_0x3dc4e8(0x11a)]({'id':_0x3dc4e8(0x1bb)}),this[_0x3dc4e8(0x14b)][_0x3dc4e8(0xcc)](new _0x1dfeb2['WorkbookEditablePermission'](this[_0x3dc4e8(0x2be)])['id'],!0x1),this['_permissionService'][_0x3dc4e8(0x37b)](!0x1)):(this['_permissionService'][_0x3dc4e8(0xcc)](new _0x1dfeb2[(_0x3dc4e8(0x276))](this[_0x3dc4e8(0x2be)])['id'],!0x0),this['_permissionService'][_0x3dc4e8(0x37b)](!0x0));}));}let _0x4a5b18=!0x1;return this[_0x480185(0x1b5)](this[_0x480185(0x309)][_0x480185(0x303)][_0x480185(0x1a6)](_0x17bd95=>{const _0x12e377=_0x480185;_0x17bd95===0x3?this[_0x12e377(0x27e)](_0x4a5b18):_0x17bd95===0x2&&(_0x4a5b18=!0x0,this['_toggleOffline']());})),this[_0x480185(0x1b5)](this[_0x480185(0x309)][_0x480185(0x36d)][_0x480185(0x1a6)](_0x4c2069=>{const _0x4a1156=_0x480185;try{switch(_0x4c2069[_0x4a1156(0x217)]){case _0x5d8fae[_0x4a1156(0x13b)][_0x4a1156(0x363)]:this['_onRemoteChangeset']((0x0,_0x5d8fae['parseProtocolChangeset'])(_0x4c2069[_0x4a1156(0x31b)]));break;case _0x5d8fae[_0x4a1156(0x13b)]['CHANGESET_ACK']:this[_0x4a1156(0x180)](_0x4c2069['data']);break;case _0x5d8fae[_0x4a1156(0x13b)]['CHANGESET_REJ']:this['_onRemoteRejected']();break;case _0x5d8fae['CollaborationEvent'][_0x4a1156(0x147)]:this['_onRemoteRetry'](_0x4c2069[_0x4a1156(0x31b)]);break;case _0x5d8fae[_0x4a1156(0x13b)][_0x4a1156(0x244)]:this[_0x4a1156(0x2e5)](_0x4c2069['data'][_0x4a1156(0x3c6)]['map'](_0x4b32f8=>(0x0,_0x5d8fae[_0x4a1156(0x104)])(_0x4b32f8)));break;case _0x5d8fae[_0x4a1156(0x13b)]['PERMISSION_REJ']:this[_0x4a1156(0x381)]({'isPermissionRej':!0x0});break;case _0x5d8fae[_0x4a1156(0x13b)][_0x4a1156(0x2fc)]:break;}}catch(_0x2baaa4){throw console[_0x4a1156(0xcf)](_0x4a1156(0x2ea),_0x2baaa4),_0x2baaa4;}})),this[_0x480185(0xf1)];}[_0x387812(0x186)](){const _0x1559a4=_0x387812;this[_0x1559a4(0x124)]=!0x1;}[_0x387812(0x1ff)](){const _0x24b926=_0x387812;if(this[_0x24b926(0x124)])throw Error(_0x24b926(0x30f));this['_transitionLocked']=!0x0;}[_0x387812(0x1d9)](_0x19c6ff){const _0x1e3107=_0x387812;this[_0x1e3107(0x1ff)](),this[_0x1e3107(0x265)](this[_0x1e3107(0xf1)]['appendMutation'](_0x19c6ff)),this[_0x1e3107(0x186)]();}[_0x387812(0x22f)](_0x464583){const _0x5c4751=_0x387812;if(!(_0x464583[_0x5c4751(0x3da)]<=this[_0x5c4751(0x2d3)][_0x5c4751(0x1ea)](this[_0x5c4751(0x2be)]))){if(this[_0x5c4751(0x390)]){this[_0x5c4751(0x3d1)][_0x5c4751(0x223)](_0x464583);return;}this[_0x5c4751(0x372)](_0x464583);}}[_0x387812(0x35c)](){const _0x10764e=_0x387812;this['_remoteChangesetQueue']['forEach'](_0x481fb9=>this['_applyRemoteChangeset'](_0x481fb9)),this[_0x10764e(0x3d1)]=[];}[_0x387812(0x372)](_0x14c049){const _0x588713=_0x387812;let _0x445df3=this[_0x588713(0x291)]['interceptor'][_0x588713(0x371)](this[_0x588713(0x291)][_0x588713(0x263)][_0x588713(0x245)]()[_0x588713(0x101)])(_0x14c049['mutations'],null)||_0x14c049[_0x588713(0x3bd)],_0x5b181b={..._0x14c049,'mutations':_0x445df3};this[_0x588713(0x1ff)](),this[_0x588713(0x265)](this[_0x588713(0xf1)][_0x588713(0x201)](_0x5b181b)),this[_0x588713(0x186)]();}[_0x387812(0x180)](_0x4eaef5){const _0x8a944e=_0x387812;this[_0x8a944e(0x1ff)](),this[_0x8a944e(0x265)](this['_state'][_0x8a944e(0x398)](_0x4eaef5)),this[_0x8a944e(0x186)]();}['_onRemoteRejected'](_0x28f82d){const _0x398ee6=_0x387812;this['_lockTransition'](),this[_0x398ee6(0x265)](this[_0x398ee6(0xf1)][_0x398ee6(0x1ac)](_0x28f82d)),this[_0x398ee6(0x186)]();}[_0x387812(0x33a)](_0x210756){const _0x59448f=_0x387812;this[_0x59448f(0x1ff)](),this[_0x59448f(0x265)](this['_state'][_0x59448f(0x1d3)](_0x210756)),this[_0x59448f(0x186)]();}[_0x387812(0x2e5)](_0x437240){const _0x3f5605=_0x387812;if(!(this[_0x3f5605(0xf1)]instanceof _0x1c9a8a))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x20cfe9=_0x437240['map'](_0x4b1459=>{const _0x3179e3=_0x3f5605;let _0x389f50=this['_compressMutationService'][_0x3179e3(0x263)][_0x3179e3(0x371)](this[_0x3179e3(0x291)][_0x3179e3(0x263)][_0x3179e3(0x245)]()[_0x3179e3(0x101)])(_0x4b1459['mutations'],null)||_0x4b1459[_0x3179e3(0x3bd)];return{..._0x4b1459,'mutations':_0x389f50};});this['_lockTransition'](),this[_0x3f5605(0x265)](this[_0x3f5605(0xf1)][_0x3f5605(0x122)](_0x20cfe9)),this[_0x3f5605(0x186)]();}['_toggleOffline'](){const _0x45d38b=_0x387812;this[_0x45d38b(0x1ff)](),this[_0x45d38b(0x265)](this[_0x45d38b(0xf1)][_0x45d38b(0x283)]()),this[_0x45d38b(0x186)]();}[_0x387812(0x27e)](_0x41e1fd=!0x1){const _0x265255=_0x387812;this['_lockTransition'](),this['_updateState'](this[_0x265255(0xf1)]['toggleOnline']()),this['_unlockTransition']();let _0x42eac3=this[_0x265255(0xf1)];_0x41e1fd&&_0x42eac3 instanceof _0x5d844f&&(this[_0x265255(0x1ff)](),this[_0x265255(0x265)](_0x42eac3[_0x265255(0xfc)]()),this[_0x265255(0x186)]());}async[_0x387812(0x32c)](){return new Promise(_0x317e21=>{const _0x407af6=_0x1600;this[_0x407af6(0x309)][_0x407af6(0x303)][_0x407af6(0x298)]((0x0,_0x3a9bce['take'])(0x1))[_0x407af6(0x1a6)](async _0x3f27f6=>{_0x317e21(await this['_createInitialStateImpl'](_0x3f27f6===0x3));});});}[_0x387812(0x3b2)](){const _0x454333=_0x387812;let _0x31d612=this[_0x454333(0x2be)];return{'onStateChange':(_0x325065,_0x208121)=>{const _0x1efce5=_0x454333;if(_0x325065!==this['_state'])throw Error(_0x1efce5(0x27c)+_0x325065[_0x1efce5(0x210)]+_0x1efce5(0x17d)+_0x208121[_0x1efce5(0x210)]+'\x0aCurrent:\x20'+this[_0x1efce5(0xf1)][_0x1efce5(0x210)]);this['_updateState'](_0x208121);},'onSendChangeset':_0x4191ed=>{const _0xa5751e=_0x454333;_0x4191ed['sid']||(_0x4191ed[_0xa5751e(0x2cd)]=this[_0xa5751e(0x305)],_0x4191ed[_0xa5751e(0x1ce)]=++this[_0xa5751e(0xce)]);let _0x3ae542={'eventID':_0x5d8fae['CollaborationEvent'][_0xa5751e(0x340)],'data':{'unitID':_0x4191ed[_0xa5751e(0x2be)],'unitType':this[_0xa5751e(0x2ce)],'changeset':_0x4191ed,'memberID':this[_0xa5751e(0x309)][_0xa5751e(0x2cc)]()}};this[_0xa5751e(0x309)][_0xa5751e(0x1da)](_0x3ae542,this['unitID']);},'onMissingChangesets':({from:_0x50705a,to:_0x726f01})=>{const _0xdc4dcb=_0x454333;this[_0xdc4dcb(0x1fc)][_0xdc4dcb(0x2f0)](_0xdc4dcb(0x21b),'fetching\x20missing\x20changesets\x20from\x20'+_0x50705a+_0xdc4dcb(0x15b)+_0x726f01);let _0x17aeb4={'eventID':_0x5d8fae[_0xdc4dcb(0x13b)][_0xdc4dcb(0x25e)],'data':{'unitID':_0x31d612,'unitType':this['_type'],'from':_0x50705a,'to':_0x726f01}};this['session']['send'](_0x17aeb4,this[_0xdc4dcb(0x2be)]);}};}async['_createInitialStateImpl'](_0x2f6f37){const _0x97ad06=_0x387812;var _0x2acc71;let _0x30ae84=await((_0x2acc71=this[_0x97ad06(0x3fe)])==null?void 0x0:_0x2acc71[_0x97ad06(0x3b5)](this[_0x97ad06(0x2be)])),_0x5255f4=(_0x30ae84==null?void 0x0:_0x30ae84['mutations'])??[],_0x196833=(_0x30ae84==null?void 0x0:_0x30ae84[_0x97ad06(0x146)])??null,_0x5d9474=!!(_0x196833!=null&&_0x196833[_0x97ad06(0x2cd)])&&!!(_0x196833!=null&&_0x196833[_0x97ad06(0x1ce)]);this[_0x97ad06(0x305)]=_0x5d9474?_0x196833['sid']:(0x0,_0x5d8fae[_0x97ad06(0x3a3)])(),this[_0x97ad06(0xce)]=_0x5d9474?_0x196833[_0x97ad06(0x1ce)]:0x0;let _0x3829c4=this[_0x97ad06(0x2be)];try{this[_0x97ad06(0x154)](_0x196833,_0x5255f4);}catch(_0x5763fe){this[_0x97ad06(0x1fc)][_0x97ad06(0xcf)](_0x5763fe);}let _0x29a1f5=this['_createHandler']();if(_0x2f6f37){let _0x48e414=_0x3aa677(this[_0x97ad06(0x26d)],_0x3829c4,this[_0x97ad06(0x2ce)],_0x196833,_0x5255f4,_0x29a1f5);return _0x48e414 instanceof _0x5b6c26?_0x48e414[_0x97ad06(0x2f6)]():(_0x48e414 instanceof _0x4ebec0||_0x48e414 instanceof _0x70527d)&&_0x48e414[_0x97ad06(0x331)](),_0x48e414;}return this[_0x97ad06(0x26d)][_0x97ad06(0xc4)](_0x119cc1,_0x3829c4,this[_0x97ad06(0x2ce)],_0x196833,_0x5255f4,_0x29a1f5);}[_0x387812(0x154)](_0x3962c9,_0x14da26){const _0xf5fc6e=_0x387812;var _0x2976b1,_0x58b639;let _0xbba704=this[_0xf5fc6e(0x291)][_0xf5fc6e(0x263)][_0xf5fc6e(0x371)](this['_compressMutationService'][_0xf5fc6e(0x263)][_0xf5fc6e(0x245)]()['COMPRESS_MUTATION_APPLY']);(_0x2976b1=_0xbba704((_0x3962c9==null?void 0x0:_0x3962c9[_0xf5fc6e(0x3bd)])||[],null))==null||_0x2976b1[_0xf5fc6e(0x3e5)](_0x37975c=>this['_commandService'][_0xf5fc6e(0x151)](_0x37975c['id'],_0x37975c['params'])),(_0x58b639=_0xbba704(_0x14da26||[],null))==null||_0x58b639[_0xf5fc6e(0x3e5)](_0x561b63=>this[_0xf5fc6e(0x10a)][_0xf5fc6e(0x151)](_0x561b63['id'],_0x561b63[_0xf5fc6e(0x247)]));}};_0xf00944=_0x48064b([_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1b3)])),_0x29ab6d(0x5,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad['LocaleService'])),_0x29ab6d(0x6,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x7,(0x0,_0x3ea0ad['Inject'])(_0x359cbb)),_0x29ab6d(0x8,_0x3ea0ad[_0x387812(0x2fe)]),_0x29ab6d(0x9,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0xa,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x2d2)]),_0x29ab6d(0xc,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x989852)),_0x29ab6d(0xd,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0xf00944);let _0x4264a3=class extends _0xf00944{constructor(_0xf008ad,_0x5bab70,_0x407dae,_0x3c182c,_0x47b4be,_0xf385e2,_0x3a0ff7,_0x2480de,_0x276fde,_0x35ab94,_0x1d6d92,_0x407133,_0x14e972,_0x5b66d7,_0x360697){const _0x5c7d95=_0x387812;super(_0xf008ad,_0x407dae,_0x5bab70,_0x3c182c,_0x47b4be,_0xf385e2,_0x3a0ff7,_0x2480de,_0x276fde,_0x35ab94,_0x1d6d92,_0x407133,_0x5b66d7,_0x360697),this[_0x5c7d95(0x2be)]=_0xf008ad,this[_0x5c7d95(0x131)]=_0x5bab70,this[_0x5c7d95(0x195)]=_0x14e972,_0x309f50(this,'_handlerCallback',null);}[_0x387812(0x1fb)](_0x219dd4){this['_handlerCallback']=_0x219dd4;}[_0x387812(0x102)](){const _0x3200e2=_0x387812;this[_0x3200e2(0x207)]=null,super['dispose']();}[_0x387812(0x3b2)](){const _0x5b0d89=_0x387812;let _0x1d94ae=super['_createHandler']();return _0x1d94ae['onTransformIME']=_0x36e0e8=>{const _0x1aa962=_0x1600;var _0x4b1ca6,_0x58aeff;return(_0x4b1ca6=this[_0x1aa962(0x207)])==null||(_0x58aeff=_0x4b1ca6['onTransformIME'])==null?void 0x0:_0x58aeff[_0x1aa962(0x3dd)](_0x4b1ca6,_0x36e0e8);},_0x1d94ae[_0x5b0d89(0x267)]=_0x5999d6=>{const _0x2dec2a=_0x5b0d89;var _0x1af3d1,_0x5538f1;return(_0x1af3d1=this['_handlerCallback'])==null||(_0x5538f1=_0x1af3d1[_0x2dec2a(0x267)])==null?void 0x0:_0x5538f1['call'](_0x1af3d1,_0x5999d6);},_0x1d94ae[_0x5b0d89(0x379)]=_0x1bb066=>{const _0x12fb14=_0x5b0d89;var _0x5a2a71,_0x5c5714;return(_0x5a2a71=this['_handlerCallback'])==null||(_0x5c5714=_0x5a2a71[_0x12fb14(0x379)])==null?void 0x0:_0x5c5714[_0x12fb14(0x3dd)](_0x5a2a71,_0x1bb066);},_0x1d94ae[_0x5b0d89(0x288)]=_0x25f873=>{const _0x4566f7=_0x5b0d89;var _0x40f572,_0x1c49f6;return(_0x40f572=this[_0x4566f7(0x207)])==null||(_0x1c49f6=_0x40f572['onSyncEditingCollabCursor'])==null?void 0x0:_0x1c49f6[_0x4566f7(0x3dd)](_0x40f572,_0x25f873);},_0x1d94ae['onTransformRemoteChangesetByIMECache']=_0x58bdaf=>{const _0x20dde9=_0x5b0d89;var _0xdc0ac5,_0x2179d4;return((_0xdc0ac5=this[_0x20dde9(0x207)])==null||(_0x2179d4=_0xdc0ac5[_0x20dde9(0x249)])==null?void 0x0:_0x2179d4['call'](_0xdc0ac5,_0x58bdaf))??_0x58bdaf;},_0x1d94ae[_0x5b0d89(0x33c)]=_0x6d0d70=>{const _0x35b326=_0x5b0d89;var _0x1f565a,_0x2ac08e;return((_0x1f565a=this[_0x35b326(0x207)])==null||(_0x2ac08e=_0x1f565a[_0x35b326(0x33c)])==null?void 0x0:_0x2ac08e['call'](_0x1f565a,_0x6d0d70))??_0x6d0d70;},_0x1d94ae;}async[_0x387812(0x3a4)](){const _0x596071=_0x387812;let _0x111770=await super[_0x596071(0x3a4)]();return this[_0x596071(0x1b5)](this[_0x596071(0x195)]['docStateChange$'][_0x596071(0x1a6)](_0x57eb47=>{const _0x5f38d8=_0x596071;if(_0x57eb47==null||_0x57eb47[_0x5f38d8(0x397)]!==this[_0x5f38d8(0x2be)])return;let {commandId:_0x1858c3,redoState:_0x2f36d4,unitId:_0x21a9ec}=_0x57eb47,_0x52859a={'id':_0x1858c3,'type':_0x3ea0ad[_0x5f38d8(0x15a)][_0x5f38d8(0x198)],'params':{'unitId':_0x21a9ec,'actions':_0x2f36d4[_0x5f38d8(0x34c)],'textRanges':null}};this[_0x5f38d8(0x1d9)](_0x52859a);})),this[_0x596071(0x1b5)](this[_0x596071(0x10a)][_0x596071(0x3b8)]((_0xd06d0e,_0x4f7d6c)=>{const _0x84d51d=_0x596071;if(_0xd06d0e[_0x84d51d(0x131)]!==_0x3ea0ad['CommandType'][_0x84d51d(0x198)]||_0x4f7d6c!=null&&_0x4f7d6c[_0x84d51d(0x324)]||_0x4f7d6c!=null&&_0x4f7d6c[_0x84d51d(0x1a4)]||_0xd06d0e['id']===_0x160e88[_0x84d51d(0x2b3)]['id'])return;let _0x506106=_0xd06d0e[_0x84d51d(0x247)];if((_0x506106==null?void 0x0:_0x506106['unitId'])!==this[_0x84d51d(0x2be)])return;let _0x3b2e4e=_0xd06d0e,_0x1fbbb0=this[_0x84d51d(0x291)][_0x84d51d(0x263)][_0x84d51d(0x371)](this['_compressMutationService'][_0x84d51d(0x263)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x3b2e4e],this[_0x84d51d(0xc8)])||[_0x3b2e4e];this[_0x84d51d(0x1d9)](_0x1fbbb0[0x0]);})),_0x111770;}};_0x4264a3=_0x48064b([_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1b3)])),_0x29ab6d(0x5,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x26b)])),_0x29ab6d(0x6,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae['RevisionService'])),_0x29ab6d(0x7,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb)),_0x29ab6d(0x8,_0x3ea0ad[_0x387812(0x2fe)]),_0x29ab6d(0x9,_0x3ea0ad['ILogService']),_0x29ab6d(0xa,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x2d2)]),_0x29ab6d(0xc,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x160e88[_0x387812(0x3cc)])),_0x29ab6d(0xd,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x989852)),_0x29ab6d(0xe,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x4264a3);let _0x461db8=class extends _0xf00944{constructor(_0x6c5819,_0x48c305,_0x5b1453,_0x3d5178,_0x561532,_0x58c918,_0x4cfd62,_0x2f03c6,_0x31a6c8,_0xd5899d,_0x184aa3,_0x9a6948,_0x2e9f71,_0x14fd8a){const _0x3ccb52=_0x387812;super(_0x6c5819,_0x5b1453,_0x48c305,_0x3d5178,_0x561532,_0x58c918,_0x4cfd62,_0x2f03c6,_0x31a6c8,_0xd5899d,_0x184aa3,_0x9a6948,_0x2e9f71,_0x14fd8a),this[_0x3ccb52(0x2be)]=_0x6c5819,this['type']=_0x48c305;}async[_0x387812(0x3a4)](){const _0x49723b=_0x387812;let _0x2f32de=await super[_0x49723b(0x3a4)]();return this[_0x49723b(0x1b5)](this[_0x49723b(0x10a)][_0x49723b(0x3b8)]((_0x38ec1a,_0xbadccc)=>{const _0x13b2c1=_0x49723b;if(_0x38ec1a[_0x13b2c1(0x131)]!==_0x3ea0ad['CommandType'][_0x13b2c1(0x198)]||_0xbadccc!=null&&_0xbadccc[_0x13b2c1(0x324)]||_0xbadccc!=null&&_0xbadccc[_0x13b2c1(0x1a4)])return;let _0x2e45c3=_0x38ec1a[_0x13b2c1(0x247)];if((_0x2e45c3==null?void 0x0:_0x2e45c3[_0x13b2c1(0x397)])!==this[_0x13b2c1(0x2be)])return;let _0x557a65=_0x38ec1a,_0x540356=this[_0x13b2c1(0x291)]['interceptor']['fetchThroughInterceptors'](this[_0x13b2c1(0x291)][_0x13b2c1(0x263)]['getInterceptPoints']()[_0x13b2c1(0xfb)])([_0x557a65],this['_univerInstanceService'])||[_0x557a65];this['_onLocalMutation'](_0x540356[0x0]);})),_0x2f32de;}};_0x461db8=_0x48064b([_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1b3)])),_0x29ab6d(0x5,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad[_0x387812(0x26b)])),_0x29ab6d(0x6,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x7,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb)),_0x29ab6d(0x8,_0x3ea0ad[_0x387812(0x2fe)]),_0x29ab6d(0x9,_0x3ea0ad['ILogService']),_0x29ab6d(0xa,_0x3ea0ad['ICommandService']),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x2d2)]),_0x29ab6d(0xc,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x989852)),_0x29ab6d(0xd,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x461db8);let _0x1a3266=class extends _0xf00944{constructor(_0x1fab00,_0x228064,_0x4789fe,_0x411f92,_0x26dad0,_0x3449ec,_0x4002da,_0x4448ba,_0x1767c2,_0x41095c,_0x2fa822,_0x446463,_0x5178a2,_0x525573,_0x38eb4b){const _0x237932=_0x387812;super(_0x1fab00,_0x4789fe,_0x228064,_0x411f92,_0x26dad0,_0x3449ec,_0x4002da,_0x1767c2,_0x41095c,_0x2fa822,_0x446463,_0x5178a2,_0x525573,_0x38eb4b),this[_0x237932(0x2be)]=_0x1fab00,this[_0x237932(0x131)]=_0x228064,this[_0x237932(0x22e)]=_0x4448ba;}[_0x387812(0x3b2)](){const _0x1dd485=_0x387812;let _0x80ed23=super[_0x1dd485(0x3b2)]();return _0x80ed23['onTransformSelections']=_0x2ff5db=>this[_0x1dd485(0x22e)][_0x1dd485(0xd9)](_0x2ff5db),_0x80ed23;}async['_init'](){const _0x5d668e=_0x387812;let _0x4c1e3d=await super['_init']();return this[_0x5d668e(0x1b5)](this[_0x5d668e(0x10a)][_0x5d668e(0x3b8)]((_0x1cb783,_0x1b17fb)=>{const _0x29e1c3=_0x5d668e;if(_0x1cb783[_0x29e1c3(0x131)]!==_0x3ea0ad['CommandType'][_0x29e1c3(0x198)]||_0x1b17fb!=null&&_0x1b17fb[_0x29e1c3(0x324)]||_0x1b17fb!=null&&_0x1b17fb[_0x29e1c3(0x1a4)])return;let _0x29c4b5=_0x1cb783[_0x29e1c3(0x247)];if((_0x29c4b5==null?void 0x0:_0x29c4b5[_0x29e1c3(0x397)])!==this[_0x29e1c3(0x2be)])return;let _0x7f48db=_0x1cb783,_0x25655c=this[_0x29e1c3(0x291)][_0x29e1c3(0x263)][_0x29e1c3(0x371)](this['_compressMutationService'][_0x29e1c3(0x263)][_0x29e1c3(0x245)]()[_0x29e1c3(0xfb)])([_0x7f48db],this[_0x29e1c3(0xc8)])||[_0x7f48db];this[_0x29e1c3(0x1d9)](_0x25655c[0x0]);})),_0x4c1e3d;}};_0x1a3266=_0x48064b([_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad['Injector'])),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1b3)])),_0x29ab6d(0x5,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x26b)])),_0x29ab6d(0x6,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x7,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5ad7dd)),_0x29ab6d(0x8,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb)),_0x29ab6d(0x9,_0x3ea0ad[_0x387812(0x2fe)]),_0x29ab6d(0xa,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0xc,_0x3ea0ad['IPermissionService']),_0x29ab6d(0xd,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x989852)),_0x29ab6d(0xe,(0x0,_0x3ea0ad['Optional'])(_0x4e9987))],_0x1a3266);let _0xa14eef=class extends _0xf00944{constructor(_0x469e80,_0x62e69,_0x41ebdb,_0x4a97cf,_0x527170,_0x4ec515,_0x3d112e,_0x18eeaf,_0x2b0b5d,_0x578775,_0xb88d1b,_0x547661,_0x20829c,_0x403bdb){const _0x531334=_0x387812;super(_0x469e80,_0x41ebdb,_0x62e69,_0x4a97cf,_0x527170,_0x4ec515,_0x3d112e,_0x18eeaf,_0x2b0b5d,_0x578775,_0xb88d1b,_0x547661,_0x20829c,_0x403bdb),this[_0x531334(0x2be)]=_0x469e80,this[_0x531334(0x131)]=_0x62e69;}async[_0x387812(0x3a4)](){const _0x13a17e=_0x387812;let _0x39005c=await super[_0x13a17e(0x3a4)]();return this[_0x13a17e(0x1b5)](this[_0x13a17e(0x10a)]['onMutationExecutedForCollab']((_0x10905d,_0x5b6aec)=>{const _0x49142c=_0x13a17e;if(_0x10905d['type']!==_0x3ea0ad['CommandType'][_0x49142c(0x198)]||_0x5b6aec!=null&&_0x5b6aec['fromCollab']||_0x5b6aec!=null&&_0x5b6aec[_0x49142c(0x1a4)])return;let _0x39ac48=_0x10905d[_0x49142c(0x247)];if((_0x39ac48==null?void 0x0:_0x39ac48['unitId'])!==this[_0x49142c(0x2be)])return;let _0x3839da=_0x10905d,_0x3c9252=this[_0x49142c(0x291)][_0x49142c(0x263)][_0x49142c(0x371)](this['_compressMutationService'][_0x49142c(0x263)][_0x49142c(0x245)]()[_0x49142c(0xfb)])([_0x3839da],this[_0x49142c(0xc8)])||[_0x3839da];this[_0x49142c(0x1d9)](_0x3c9252[0x0]);})),_0x39005c;}};_0xa14eef=_0x48064b([_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1b3)])),_0x29ab6d(0x5,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x26b)])),_0x29ab6d(0x6,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae['RevisionService'])),_0x29ab6d(0x7,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb)),_0x29ab6d(0x8,_0x3ea0ad[_0x387812(0x2fe)]),_0x29ab6d(0x9,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0xa,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x2d2)]),_0x29ab6d(0xc,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x989852)),_0x29ab6d(0xd,(0x0,_0x3ea0ad['Optional'])(_0x4e9987))],_0xa14eef);let _0x2b44e6=class extends _0xf00944{constructor(_0x240a8f,_0x336d6a,_0x3aff8f,_0x521fa7,_0x184179,_0x406eda,_0x4d11be,_0x47441c,_0x4c2b44,_0x5b09c3,_0xdf7bc9,_0x945a05,_0x54eb1c,_0xa92ad2){const _0x260a75=_0x387812;super(_0x240a8f,_0x3aff8f,_0x336d6a,_0x521fa7,_0x184179,_0x406eda,_0x4d11be,_0x47441c,_0x4c2b44,_0x5b09c3,_0xdf7bc9,_0x945a05,_0x54eb1c,_0xa92ad2),this[_0x260a75(0x2be)]=_0x240a8f,this[_0x260a75(0x131)]=_0x336d6a;}async[_0x387812(0x3a4)](){const _0x60323=_0x387812;let _0x4e4e25=await super[_0x60323(0x3a4)]();return this[_0x60323(0x1b5)](this[_0x60323(0x10a)][_0x60323(0x3b8)]((_0x3076de,_0x3f290b)=>{const _0x3f000b=_0x60323;if(_0x3076de[_0x3f000b(0x131)]!==_0x3ea0ad[_0x3f000b(0x15a)][_0x3f000b(0x198)]||_0x3f290b!=null&&_0x3f290b[_0x3f000b(0x324)]||_0x3f290b!=null&&_0x3f290b[_0x3f000b(0x1a4)])return;let _0x4a4fd6=_0x3076de[_0x3f000b(0x247)];if((_0x4a4fd6==null?void 0x0:_0x4a4fd6[_0x3f000b(0x397)])!==this[_0x3f000b(0x2be)])return;let _0x57b3c8=_0x3076de,_0x52e2f6=this[_0x3f000b(0x291)][_0x3f000b(0x263)][_0x3f000b(0x371)](this[_0x3f000b(0x291)][_0x3f000b(0x263)][_0x3f000b(0x245)]()[_0x3f000b(0xfb)])([_0x57b3c8],this[_0x3f000b(0xc8)])||[_0x57b3c8];this[_0x3f000b(0x1d9)](_0x52e2f6[0x0]);})),_0x4e4e25;}};_0x2b44e6=_0x48064b([_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1b3)])),_0x29ab6d(0x5,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x26b)])),_0x29ab6d(0x6,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x7,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb)),_0x29ab6d(0x8,_0x3ea0ad['IUniverInstanceService']),_0x29ab6d(0x9,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0xa,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0xb,_0x3ea0ad[_0x387812(0x2d2)]),_0x29ab6d(0xc,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x989852)),_0x29ab6d(0xd,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x2b44e6);let _0x56abff=class extends _0xf00944{constructor(_0x32ee07,_0x3d4266,_0x45e7d5,_0x3bd905,_0x487477,_0x2b6c7a,_0x55bf5a,_0x582b72,_0x35916e,_0x35de92,_0x454516,_0x3681ae,_0x2ae14e,_0x26b45c){const _0x2e20bd=_0x387812;super(_0x32ee07,_0x45e7d5,_0x3d4266,_0x3bd905,_0x487477,_0x2b6c7a,_0x55bf5a,_0x582b72,_0x35916e,_0x35de92,_0x454516,_0x3681ae,_0x2ae14e,_0x26b45c),this[_0x2e20bd(0x2be)]=_0x32ee07,this[_0x2e20bd(0x131)]=_0x3d4266;}async['_init'](){const _0x9e2c3e=_0x387812;let _0x1de0c7=await super['_init']();return this[_0x9e2c3e(0x1b5)](this['_commandService'][_0x9e2c3e(0x3b8)]((_0x4473f0,_0x7815ef)=>{const _0xfe9233=_0x9e2c3e;if(_0x4473f0['type']!==_0x3ea0ad[_0xfe9233(0x15a)][_0xfe9233(0x198)]||_0x7815ef!=null&&_0x7815ef['fromCollab']||_0x7815ef!=null&&_0x7815ef[_0xfe9233(0x1a4)])return;let _0x4d7047=_0x4473f0[_0xfe9233(0x247)];if((_0x4d7047==null?void 0x0:_0x4d7047[_0xfe9233(0x397)])!==this[_0xfe9233(0x2be)])return;let _0x5874f7=_0x4473f0,_0x5d73aa=this[_0xfe9233(0x291)]['interceptor'][_0xfe9233(0x371)](this[_0xfe9233(0x291)][_0xfe9233(0x263)]['getInterceptPoints']()[_0xfe9233(0xfb)])([_0x5874f7],this[_0xfe9233(0xc8)])||[_0x5874f7];this[_0xfe9233(0x1d9)](_0x5d73aa[0x0]);})),_0x1de0c7;}};_0x56abff=_0x48064b([_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x5d8fae[_0x387812(0x1b3)])),_0x29ab6d(0x5,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad[_0x387812(0x26b)])),_0x29ab6d(0x6,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae[_0x387812(0x1c9)])),_0x29ab6d(0x7,(0x0,_0x3ea0ad['Inject'])(_0x359cbb)),_0x29ab6d(0x8,_0x3ea0ad[_0x387812(0x2fe)]),_0x29ab6d(0x9,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0xa,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0xb,_0x3ea0ad['IPermissionService']),_0x29ab6d(0xc,(0x0,_0x3ea0ad['Optional'])(_0x989852)),_0x29ab6d(0xd,(0x0,_0x3ea0ad['Optional'])(_0x4e9987))],_0x56abff);let _0x3bc50a=(0x0,_0x3ea0ad[_0x387812(0x359)])(_0x387812(0x30a));function _0x38114d(_0x47beb1){const _0x1b8cb0=_0x387812;let _0x157ef4=_0x47beb1[_0x1b8cb0(0x31b)],_0x564fd8=JSON[_0x1b8cb0(0x26f)](_0x157ef4);switch(_0x564fd8[_0x1b8cb0(0xdf)]){case _0x2a4603[_0x1b8cb0(0x396)][_0x1b8cb0(0x2e2)]:case _0x2a4603[_0x1b8cb0(0x396)][_0x1b8cb0(0x3cb)]:{let _0x54f1ce=_0x564fd8[_0x1b8cb0(0x162)];return{..._0x564fd8,'data':_0x54f1ce,'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};}case _0x2a4603['CombCmd']['JOIN']:{let _0x1864b3=_0x564fd8[_0x1b8cb0(0x273)];return{..._0x564fd8,'data':_0x1864b3,'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};}case _0x2a4603[_0x1b8cb0(0x396)]['RECV']:{let _0x561e4d=_0x564fd8[_0x1b8cb0(0x269)];switch(_0x561e4d[_0x1b8cb0(0x217)]){case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x295)]:var _0x39280c;return{..._0x564fd8,'data':{..._0x561e4d,'data':(_0x39280c=_0x561e4d[_0x1b8cb0(0x279)])==null?void 0x0:_0x39280c['cs']},'cmd':_0x564fd8['cmd']};case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x3b9)]:var _0x4a2589;return{..._0x564fd8,'data':{..._0x561e4d,'data':(_0x4a2589=_0x561e4d['csAckEvent'])==null?void 0x0:_0x4a2589['cs']},'cmd':_0x564fd8['cmd']};case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x363)]:var _0x49802d;return{..._0x564fd8,'data':{..._0x561e4d,'data':(_0x49802d=_0x561e4d[_0x1b8cb0(0x1ef)])==null?void 0x0:_0x49802d['cs']},'cmd':_0x564fd8['cmd']};case _0x5d8fae['CollaborationEvent']['CHANGESET_REJ']:var _0x50bf50;return{..._0x564fd8,'data':{..._0x561e4d,'data':(_0x50bf50=_0x561e4d[_0x1b8cb0(0xee)])==null?void 0x0:_0x50bf50['cs']},'cmd':_0x564fd8['cmd']};case _0x5d8fae['CollaborationEvent'][_0x1b8cb0(0x147)]:var _0x180b59;return{..._0x564fd8,'data':{..._0x561e4d,'data':(_0x180b59=_0x561e4d[_0x1b8cb0(0x2b6)])==null?void 0x0:_0x180b59['cs']},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae['CollaborationEvent'][_0x1b8cb0(0xe2)]:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d[_0x1b8cb0(0x28d)]},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x3c1)]:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d['joinEvent']},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0xbe)]:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d[_0x1b8cb0(0x1c6)]},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae[_0x1b8cb0(0x13b)]['LIVESHARE_NEW_HOST']:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d[_0x1b8cb0(0x3f0)]},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae['CollaborationEvent'][_0x1b8cb0(0x38c)]:case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x236)]:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d[_0x1b8cb0(0x111)]},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x3ac)]:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d[_0x1b8cb0(0x3f0)]},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x3c0)]:return{..._0x564fd8,'data':_0x561e4d,'cmd':_0x564fd8['cmd']};case _0x5d8fae['CollaborationEvent'][_0x1b8cb0(0xc7)]:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d[_0x1b8cb0(0xda)]},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x1e9)]:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d[_0x1b8cb0(0x286)]},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae[_0x1b8cb0(0x13b)][_0x1b8cb0(0x107)]:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d[_0x1b8cb0(0x3e0)]},'cmd':_0x564fd8[_0x1b8cb0(0xdf)]};case _0x5d8fae[_0x1b8cb0(0x13b)]['UNISCRIPT_RUN']:return{..._0x564fd8,'data':{..._0x561e4d,'data':_0x561e4d['uniscriptRunEvent']},'cmd':_0x564fd8['cmd']};default:return _0x564fd8;}}default:return _0x564fd8;}}function _0x485eef(_0xadf505){const _0x3f79e7=_0x387812;switch(_0xadf505[_0x3f79e7(0xdf)]){case _0x2a4603[_0x3f79e7(0x396)][_0x3f79e7(0x2e2)]:case _0x2a4603[_0x3f79e7(0x396)][_0x3f79e7(0x3cb)]:return JSON[_0x3f79e7(0x1e5)]({'cmd':_0xadf505[_0x3f79e7(0xdf)],'routeKey':_0xadf505[_0x3f79e7(0xb2)]});case _0x2a4603[_0x3f79e7(0x396)][_0x3f79e7(0x2cf)]:{let _0x7a4926;switch(_0xadf505[_0x3f79e7(0x31b)][_0x3f79e7(0x217)]){case _0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0xe2)]:_0x7a4926={'eventID':_0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0xe2)],'updateCursorEvent':_0xadf505[_0x3f79e7(0x31b)]['data']};break;case _0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0xbe)]:_0x7a4926={'eventID':_0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0xbe)],'leaveEvent':_0xadf505['data'][_0x3f79e7(0x31b)]};break;case _0x5d8fae['CollaborationEvent'][_0x3f79e7(0x3c1)]:_0x7a4926={'eventID':_0x5d8fae['CollaborationEvent'][_0x3f79e7(0x3c1)],'joinEvent':_0xadf505[_0x3f79e7(0x31b)][_0x3f79e7(0x31b)]};break;case _0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0xe5)]:_0x7a4926={'eventID':_0x5d8fae['CollaborationEvent'][_0x3f79e7(0xe5)],'liveShareNewHost':_0xadf505[_0x3f79e7(0x31b)]['data']};break;case _0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0x236)]:_0x7a4926={'eventID':_0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0x236)],'liveShareOperation':_0xadf505['data']['data']};break;case _0x5d8fae['CollaborationEvent'][_0x3f79e7(0x3ac)]:_0x7a4926={'eventID':_0x5d8fae['CollaborationEvent'][_0x3f79e7(0x3ac)],'liveShareTerminate':_0xadf505[_0x3f79e7(0x31b)]['data']};break;case _0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0x323)]:_0x7a4926={'eventID':_0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0x323)],'liveShareRequestHost':_0xadf505[_0x3f79e7(0x31b)][_0x3f79e7(0x31b)]};break;case _0x5d8fae['CollaborationEvent'][_0x3f79e7(0x38c)]:_0x7a4926={'eventID':_0x5d8fae[_0x3f79e7(0x13b)][_0x3f79e7(0x38c)]};break;default:_0x7a4926={'eventID':_0xadf505[_0x3f79e7(0x31b)]['eventID']};}return JSON['stringify']({'cmd':_0xadf505['cmd'],'routeKey':_0xadf505[_0x3f79e7(0xb2)],'collaMsg':_0x7a4926});}case _0x2a4603[_0x3f79e7(0x396)][_0x3f79e7(0x148)]:return JSON['stringify']({'cmd':_0xadf505[_0x3f79e7(0xdf)],'routeKey':_0xadf505[_0x3f79e7(0xb2)],'joinReq':_0xadf505[_0x3f79e7(0x31b)]});case _0x2a4603['CombCmd'][_0x3f79e7(0x1cd)]:return JSON[_0x3f79e7(0x1e5)]({'cmd':_0xadf505[_0x3f79e7(0xdf)],'routeKey':_0xadf505[_0x3f79e7(0xb2)],'leaveReq':_0xadf505['data']});default:throw Error(_0x3f79e7(0x3ca));}}let _0x3155d1=(0x0,_0x3ea0ad[_0x387812(0x359)])(_0x387812(0x3e1));function _0x360320(_0x18bc2a,_0x23d40a,_0x57f708){const _0x4d1399=_0x387812;return _0x18bc2a+'/'+_0x23d40a+_0x4d1399(0x1f2)+_0x57f708+'/new_changes';}let _0x9b3649=class extends _0x3ea0ad[_0x387812(0x18f)]{constructor(_0x48de93,_0x12bf67,_0xe9014,_0x439021,_0xec521e){const _0x57db42=_0x387812;super(),this[_0x57db42(0x26d)]=_0x48de93,this[_0x57db42(0x20d)]=_0x12bf67,this[_0x57db42(0x327)]=_0xe9014,this['_logService']=_0x439021,this[_0x57db42(0x15d)]=_0xec521e;}[_0x387812(0x321)](_0x3707de){const _0x509297=_0x387812;let _0x413a79=this[_0x509297(0x26d)]['get'](_0x2e88c0[_0x509297(0x194)]);if(!_0x413a79)throw Error(_0x509297(0x15e));let _0x45ade6=_0x413a79[_0x509297(0x3b4)](_0x3707de);if(!_0x45ade6)throw Error(_0x509297(0x168));let _0x44ac6a=new _0x3ea0ad[(_0x509297(0x30c))](),_0x253a53=new _0x3a9bce[(_0x509297(0x20a))]();_0x44ac6a[_0x509297(0x232)](_0x45ade6[_0x509297(0x3c3)]['subscribe'](_0x48bb45=>_0x253a53[_0x509297(0x316)](_0x48bb45))),_0x44ac6a[_0x509297(0x232)]((0x0,_0x3ea0ad[_0x509297(0x21f)])(()=>_0x253a53[_0x509297(0xca)]()));let _0x1d6d3f=new _0x3a9bce[(_0x509297(0x20a))]();_0x44ac6a[_0x509297(0x232)](_0x45ade6[_0x509297(0x224)][_0x509297(0x1a6)](_0x353199=>_0x1d6d3f[_0x509297(0x316)](_0x353199))),_0x44ac6a[_0x509297(0x232)]((0x0,_0x3ea0ad[_0x509297(0x21f)])(()=>_0x1d6d3f[_0x509297(0xca)]()));let _0x3d4e43=new _0x3a9bce[(_0x509297(0x20a))]();_0x44ac6a[_0x509297(0x232)](_0x45ade6[_0x509297(0x1d6)][_0x509297(0x1a6)](_0x1920be=>{const _0x3f21ed=_0x509297;let _0x582878=_0x38114d(_0x1920be);_0x3d4e43[_0x3f21ed(0x316)](_0x582878);})),_0x44ac6a[_0x509297(0x232)]((0x0,_0x3ea0ad[_0x509297(0x21f)])(()=>_0x3d4e43['complete']()));let _0x1cc4aa,_0x39e64a=()=>{const _0x31f869=_0x509297;_0x1d6d3f['next'](new Event('connection\x20error')),_0x253a53[_0x31f869(0x316)](new Event(_0x31f869(0x3c9))),_0x1cc4aa[_0x31f869(0xc5)]();};return _0x1cc4aa={'memberID':'','close$':_0x253a53[_0x509297(0x1fe)](),'error$':_0x1d6d3f[_0x509297(0x1fe)](),'open$':_0x45ade6[_0x509297(0x2d1)],'message$':_0x3d4e43['asObservable'](),'send':_0x2b039a=>{const _0x2e09ce=_0x509297;if(_0x2b039a['cmd']===_0x2a4603['CombCmd'][_0x2e09ce(0x2cf)]){if(_0x2b039a[_0x2e09ce(0x31b)][_0x2e09ce(0x217)]===_0x5d8fae['CollaborationEvent'][_0x2e09ce(0x340)]){this['_submitChangeset'](_0x1cc4aa,_0x2b039a['data'])[_0x2e09ce(0x18e)](_0x21e6dc=>{const _0x673fd8=_0x2e09ce;this[_0x673fd8(0x1fc)]['error'](_0x21e6dc),_0x39e64a();});return;}if(_0x2b039a['data'][_0x2e09ce(0x217)]===_0x5d8fae[_0x2e09ce(0x13b)][_0x2e09ce(0x25e)]){let _0xd7a67b=_0x2b039a['data'];this[_0x2e09ce(0x21d)](_0xd7a67b)['then'](_0x5449da=>{const _0x56b81d=_0x2e09ce;_0x3d4e43[_0x56b81d(0x316)]({'cmd':_0x2a4603[_0x56b81d(0x396)][_0x56b81d(0x2dc)],'code':_0x2a4603['CmdRspCode']['OK'],'routeKey':_0xd7a67b[_0x56b81d(0x31b)][_0x56b81d(0x2be)],'routeType':'','data':{'eventID':_0x5d8fae[_0x56b81d(0x13b)][_0x56b81d(0x244)],'data':{'changesets':_0x5449da}}});})[_0x2e09ce(0x18e)](_0x3074f6=>{this['_logService']['error'](_0x3074f6),_0x39e64a();});return;}}_0x45ade6[_0x2e09ce(0x1da)](_0x485eef(_0x2b039a));},'close':()=>{const _0x3f289c=_0x509297;_0x45ade6[_0x3f289c(0xc5)](),_0x44ac6a['dispose']();}},_0x1cc4aa;}async[_0x387812(0x115)](_0x21db11,_0x14823f){const _0x2d442e=_0x387812;let {unitType:_0x1680b1,unitID:_0x38bd91,changeset:_0x1239d1}=_0x14823f[_0x2d442e(0x31b)],_0x40e764={'unitID':_0x38bd91,'memberID':_0x21db11[_0x2d442e(0x2c9)],'type':_0x1680b1,'changeset':(0x0,_0x5d8fae[_0x2d442e(0x2b4)])(_0x1239d1)},_0x37a1df=this[_0x2d442e(0x327)][_0x2d442e(0x346)](_0xeb659),_0x241d5b=_0x360320((_0x37a1df==null?void 0x0:_0x37a1df[_0x2d442e(0x38f)])??_0x2d442e(0x3ec),_0x1680b1,_0x38bd91);try{await this[_0x2d442e(0x20d)][_0x2d442e(0x233)](_0x241d5b,{'body':_0x40e764});}catch(_0x56481f){throw this[_0x2d442e(0x1fc)][_0x2d442e(0xcf)](_0x2d442e(0x192),_0x2d442e(0x352)),_0x56481f;}}async[_0x387812(0x21d)](_0x1024f5){const _0xe476dd=_0x387812;let {unitID:_0x128eac,from:_0x4b1144,to:_0x567af6,unitType:_0x1e57f7}=_0x1024f5[_0xe476dd(0x31b)];return(await this[_0xe476dd(0x15d)][_0xe476dd(0x20b)]({'metadata':void 0x0},{'unitID':_0x128eac,'type':_0x1e57f7,'from':_0x4b1144,'to':_0x567af6}))['changesets'][_0xe476dd(0x1a7)](_0x17af17=>((_0x17af17[_0xe476dd(0x3bd)]===null||_0x17af17['mutations']===void 0x0)&&(_0x17af17[_0xe476dd(0x3bd)]=[]),_0x17af17));}};_0x9b3649=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x1,(0x0,_0x3ea0ad['Inject'])(_0x2e88c0[_0x387812(0x264)])),_0x29ab6d(0x2,_0x3ea0ad[_0x387812(0x2b5)]),_0x29ab6d(0x3,_0x3ea0ad['ILogService']),_0x29ab6d(0x4,_0x5d8fae[_0x387812(0x211)])],_0x9b3649);let _0xfd750d=(0x0,_0x3ea0ad[_0x387812(0x359)])('univer-pro.collaboration-client-adapter-service');function _0x2488e3(_0x1bd6fe={}){const _0x43b3ee=_0x387812;return _0x1bd6fe[_0x43b3ee(0xe3)]?{'resolveUnit':_0x1bd6fe[_0x43b3ee(0xe3)]}:{'resolveUnit':_0x11df21=>({'target':{'unitId':_0x11df21['unitId'],'unitType':_0x11df21[_0x43b3ee(0x27f)]}})};}function _0x1fabaf(_0x159d1b,_0x14d44a,_0x3282c7){const _0x5c89bc=_0x387812;let _0xa2dc45=_0x3282c7[_0x5c89bc(0x3d4)][_0x5c89bc(0x1ed)];if(_0xa2dc45!=null&&_0xa2dc45[_0x5c89bc(0x401)]()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x3282c7[_0x5c89bc(0x3d4)]['unitId'])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x159d1b,'unitType':_0x14d44a,'target':{'endpoint':_0xa2dc45,'unitId':_0x3282c7[_0x5c89bc(0x3d4)]['unitId'],'unitType':_0x3282c7['target'][_0x5c89bc(0x27f)]??_0x14d44a},'changeset':_0x3282c7['changeset']};}let _0x16256e=class extends _0x3ea0ad[_0x387812(0x18f)]{constructor(_0x5d29ce,_0x21a078,_0x15054c,_0x2ecad7,_0x53964f,_0x5d0704,_0x20e57f){const _0x177b3b=_0x387812;super(),this[_0x177b3b(0x26d)]=_0x5d29ce,this[_0x177b3b(0x1fc)]=_0x21a078,this[_0x177b3b(0x327)]=_0x15054c,this['_socketService']=_0x2ecad7,this[_0x177b3b(0x378)]=_0x53964f,this[_0x177b3b(0x138)]=_0x5d0704,this['_networkConditionService']=_0x20e57f,_0x309f50(this,_0x177b3b(0x1c7),new Map()),_0x309f50(this,_0x177b3b(0x1e2),new Map()),_0x309f50(this,_0x177b3b(0x23a),new Map()),_0x309f50(this,_0x177b3b(0x172),new Map()),_0x309f50(this,_0x177b3b(0x1f5),this[_0x177b3b(0xb7)](void 0x0)['socket$'][_0x177b3b(0x1fe)]()),_0x309f50(this,_0x177b3b(0x2e4),new _0x3a9bce[(_0x177b3b(0x24a))](0x0)),_0x309f50(this,'status$',this[_0x177b3b(0x2e4)][_0x177b3b(0x1fe)]()),this['_listenToNetworkCondition']();}[_0x387812(0x395)](){const _0x1e3e1f=_0x387812;this[_0x1e3e1f(0x29c)]&&this[_0x1e3e1f(0x1b5)](this[_0x1e3e1f(0x29c)][_0x1e3e1f(0x12f)]['subscribe'](_0x31a729=>{const _0x5c0ef7=_0x1e3e1f;_0x31a729&&this[_0x5c0ef7(0x23b)](),_0x31a729||this[_0x5c0ef7(0x172)][_0x5c0ef7(0x3e5)](_0x2a3927=>this[_0x5c0ef7(0x37d)](_0x2a3927));}));}[_0x387812(0x102)](){const _0x21fadc=_0x387812;super[_0x21fadc(0x102)](),this['_socketChannels']['forEach'](_0x16cff4=>{const _0x2a822f=_0x21fadc;var _0xcdec26,_0x3acb8e;(_0xcdec26=_0x16cff4[_0x2a822f(0x32d)])==null||_0xcdec26[_0x2a822f(0x23d)](),_0x16cff4['socketMessageSubscription']=null,this[_0x2a822f(0x1d1)](_0x16cff4),this[_0x2a822f(0x383)](_0x16cff4),this[_0x2a822f(0xb6)](_0x16cff4),(_0x3acb8e=_0x16cff4[_0x2a822f(0x1f5)][_0x2a822f(0x355)]())==null||_0x3acb8e[_0x2a822f(0xc5)](),_0x16cff4[_0x2a822f(0x1f5)][_0x2a822f(0xca)]();}),this[_0x21fadc(0x172)][_0x21fadc(0x19d)](),this[_0x21fadc(0x1c7)][_0x21fadc(0x3e5)](_0x48aa92=>_0x48aa92[_0x21fadc(0x102)]()),this[_0x21fadc(0x1c7)][_0x21fadc(0x19d)](),this[_0x21fadc(0x23a)][_0x21fadc(0x19d)](),this[_0x21fadc(0x2e4)][_0x21fadc(0xca)]();}async[_0x387812(0x1f8)](_0x675537,_0x551e23){const _0x6ac3f7=_0x387812;if(this[_0x6ac3f7(0x1c7)]['has'](_0x675537))return this['_sessions'][_0x6ac3f7(0x32a)](_0x675537);let _0x4d48c0=this[_0x6ac3f7(0x1e2)][_0x6ac3f7(0x32a)](_0x675537);if(_0x4d48c0)return _0x4d48c0;let _0x15f526=this[_0x6ac3f7(0xbc)](_0x675537,_0x551e23);this[_0x6ac3f7(0x1e2)][_0x6ac3f7(0x15c)](_0x675537,_0x15f526);try{return await _0x15f526;}finally{this[_0x6ac3f7(0x1e2)]['delete'](_0x675537);}}async[_0x387812(0xbc)](_0xab8abf,_0x1269cb){const _0x8d38fb=_0x387812;let _0x348e9e=await this[_0x8d38fb(0x1db)](_0xab8abf,_0x1269cb),_0x10a498=this[_0x8d38fb(0xb7)](_0x348e9e['target'][_0x8d38fb(0x1ed)]);this[_0x8d38fb(0x377)](_0x10a498);let _0x2e4d80=this['_injector']['createInstance'](_0x3c2d9d,_0x348e9e,_0x10a498[_0x8d38fb(0x1f5)][_0x8d38fb(0x1fe)]());return this[_0x8d38fb(0x1c7)][_0x8d38fb(0x15c)](_0xab8abf,_0x2e4d80),this[_0x8d38fb(0x23a)]['set'](_0xab8abf,_0x10a498['endpointKey']),_0x2e4d80;}[_0x387812(0x3bc)](_0x2c5524){const _0x3e4f9b=_0x387812;let _0x49487f=this[_0x3e4f9b(0x1c7)]['get'](_0x2c5524),_0x266cec=this[_0x3e4f9b(0x23a)][_0x3e4f9b(0x32a)](_0x2c5524);if(_0x49487f&&(this['_sessions'][_0x3e4f9b(0x3c5)](_0x2c5524),this[_0x3e4f9b(0x23a)][_0x3e4f9b(0x3c5)](_0x2c5524),_0x49487f[_0x3e4f9b(0xc5)]()),_0x266cec&&!this[_0x3e4f9b(0x156)](_0x266cec)){var _0x2f8723;let _0x7653fa=this[_0x3e4f9b(0x172)][_0x3e4f9b(0x32a)](_0x266cec);_0x7653fa==null||(_0x2f8723=_0x7653fa[_0x3e4f9b(0x1f5)]['getValue']())==null||_0x2f8723['close']();}}['reconnect'](){const _0x51d0b4=_0x387812;(this[_0x51d0b4(0x172)][_0x51d0b4(0x171)]?[...this[_0x51d0b4(0x172)][_0x51d0b4(0x2a0)]()]:[this[_0x51d0b4(0xb7)](void 0x0)])[_0x51d0b4(0x3e5)](_0x342404=>{const _0x4fbda2=_0x51d0b4;_0x342404['retryCount']=0x0,this[_0x4fbda2(0x1d1)](_0x342404),this[_0x4fbda2(0x17c)](_0x342404);});}[_0x387812(0x1d1)](_0x13f9f0){const _0x45f09e=_0x387812;_0x13f9f0['retryConnectingTimer']!=null&&(clearTimeout(_0x13f9f0[_0x45f09e(0x22d)]),_0x13f9f0['retryConnectingTimer']=null);}async[_0x387812(0x1f6)](_0x2d7285){const _0x17dcf6=_0x387812;let _0x53fc94=this[_0x17dcf6(0x327)][_0x17dcf6(0x346)](_0xeb659),_0x649778=_0x2d7285[_0x17dcf6(0x1ed)]??(_0x53fc94==null?void 0x0:_0x53fc94[_0x17dcf6(0x191)])??_0x17dcf6(0x369),_0x3e3b80=await this[_0x17dcf6(0x399)]['createSocket'](_0x649778);return _0x2d7285[_0x17dcf6(0x2bd)]=_0x3e3b80,_0x3e3b80;}async[_0x387812(0x377)](_0x318b10){const _0x40f2e1=_0x387812;try{let _0x435972=_0x318b10[_0x40f2e1(0x1f5)][_0x40f2e1(0x355)]()??_0x318b10[_0x40f2e1(0x2bd)]??await this['_createSocket'](_0x318b10);if(_0x435972){var _0x3600a9;let _0x49d4cc=_0x435972[_0x40f2e1(0x1da)];_0x435972[_0x40f2e1(0x1da)]=_0x2bc601=>(_0x2bc601['cmd']!==_0x2a4603['CombCmd'][_0x40f2e1(0x1cd)]&&this[_0x40f2e1(0x3d9)](_0x318b10),_0x49d4cc[_0x40f2e1(0x1f0)](_0x435972,[_0x2bc601])),(_0x3600a9=_0x318b10[_0x40f2e1(0x32d)])==null||_0x3600a9[_0x40f2e1(0x23d)](),_0x318b10[_0x40f2e1(0x32d)]=null,_0x318b10[_0x40f2e1(0x32d)]=_0x435972[_0x40f2e1(0x1d6)][_0x40f2e1(0x1a6)](_0x577e86=>this[_0x40f2e1(0x1bc)](_0x318b10,_0x435972,_0x577e86)),_0x435972[_0x40f2e1(0x224)]['pipe']((0x0,_0x6cc357[_0x40f2e1(0x310)])(0x1))[_0x40f2e1(0x1a6)](_0x27d8d2=>this[_0x40f2e1(0x1fc)]['error'](_0x40f2e1(0xd0),_0x27d8d2)),_0x435972[_0x40f2e1(0x2d1)]['pipe']((0x0,_0x6cc357[_0x40f2e1(0x310)])(0x1))[_0x40f2e1(0x1a6)](()=>{const _0xb849bf=_0x40f2e1;this[_0xb849bf(0x2c6)](_0x318b10,_0x435972);}),_0x435972[_0x40f2e1(0x3c3)][_0x40f2e1(0x298)]((0x0,_0x6cc357[_0x40f2e1(0x310)])(0x1))[_0x40f2e1(0x1a6)](_0x5c0d6c=>{const _0x3b6078=_0x40f2e1;this['_logService'][_0x3b6078(0x2f0)]('[CollaborationSessionService]',_0x3b6078(0x36b),_0x5c0d6c),this[_0x3b6078(0x12d)](_0x318b10);});}}catch(_0x3778d9){this[_0x40f2e1(0x1fc)][_0x40f2e1(0xcf)](_0x3778d9),this[_0x40f2e1(0x12d)](_0x318b10);}}[_0x387812(0x2c6)](_0x20e27d,_0xbaa2d1){const _0x3d3526=_0x387812;this['_logService'][_0x3d3526(0x2f0)](_0x3d3526(0x23f),'socket\x20open.'),_0xbaa2d1[_0x3d3526(0x1da)]({'cmd':_0x2a4603[_0x3d3526(0x396)][_0x3d3526(0x3cb)]}),this['_rescheduleHeartbeat'](_0x20e27d);}['_onOffline'](_0xc1e4de){const _0x518b94=_0x387812;_0xc1e4de['socketReady']=!0x1,_0xc1e4de[_0x518b94(0x2bd)]=null,this['_status$'][_0x518b94(0x316)](0x2),_0xc1e4de['socket$']['next'](null),this[_0x518b94(0x383)](_0xc1e4de),this[_0x518b94(0xb6)](_0xc1e4de);}[_0x387812(0x12d)](_0x1af954){const _0x4af17a=_0x387812;this[_0x4af17a(0x37d)](_0x1af954),this[_0x4af17a(0x156)](_0x1af954[_0x4af17a(0x112)])&&(_0x1af954[_0x4af17a(0x3f4)]<(this['_configService'][_0x4af17a(0x346)](_0x4af17a(0x144))??0x3)?(this[_0x4af17a(0x378)][_0x4af17a(0x11a)]({'id':_0x4af17a(0x3d5)}),this[_0x4af17a(0x17c)](_0x1af954)):this[_0x4af17a(0x378)][_0x4af17a(0x11a)]({'id':'SOCKET_FAILED'}));}[_0x387812(0x17c)](_0x3ffbf7){const _0x1c5779=_0x387812;let _0xd048a2=_0x3ffbf7['retryCount'],_0x5ca33e=this[_0x1c5779(0x327)]['getConfig'](_0xeb659),_0x1491b6=_0xd048a2===0x0?0x0:((_0x5ca33e==null?void 0x0:_0x5ca33e[_0x1c5779(0x16d)])??0x4e20)*0x2**_0xd048a2;_0x3ffbf7['retryConnectingTimer']=setTimeout(()=>{const _0x129b79=_0x1c5779;clearTimeout(_0x3ffbf7[_0x129b79(0x22d)]),_0x3ffbf7['retryConnectingTimer']=null,this[_0x129b79(0x377)](_0x3ffbf7);},_0x1491b6),_0x3ffbf7[_0x1c5779(0x3f4)]+=0x1;}async[_0x387812(0x1db)](_0x3d7001,_0x5235be){const _0x1f0102=_0x387812;return _0x1fabaf(_0x3d7001,_0x5235be,await this[_0x1f0102(0x138)][_0x1f0102(0xe3)]({'unitId':_0x3d7001,'unitType':_0x5235be}));}[_0x387812(0x1bc)](_0x312f90,_0x1911cd,_0x19413c){const _0x447ea9=_0x387812;let {cmd:_0x5e2237}=_0x19413c;_0x5e2237===_0x2a4603[_0x447ea9(0x396)][_0x447ea9(0x3cb)]&&!_0x312f90[_0x447ea9(0x17b)]&&(_0x1911cd[_0x447ea9(0x2c9)]=_0x19413c['data'][_0x447ea9(0x2c9)],_0x312f90[_0x447ea9(0x1f5)][_0x447ea9(0x316)](_0x1911cd),this['_status$'][_0x447ea9(0x316)](0x3),_0x312f90[_0x447ea9(0x17b)]=!0x0,_0x312f90[_0x447ea9(0x2bd)]=null),_0x5e2237===_0x2a4603[_0x447ea9(0x396)][_0x447ea9(0x2e2)]&&this[_0x447ea9(0x383)](_0x312f90),this[_0x447ea9(0x3d9)](_0x312f90);}['_hasSessionsForEndpoint'](_0x2f4679){const _0x4b2cf8=_0x387812;return[...this[_0x4b2cf8(0x23a)]['values']()][_0x4b2cf8(0x344)](_0x1b9f54=>_0x1b9f54===_0x2f4679);}['_getSocketChannel'](_0x1e9db6){const _0x5c1b85=_0x387812;let _0x209dd2=_0x1e9db6??'',_0x4a86d5=this[_0x5c1b85(0x172)][_0x5c1b85(0x32a)](_0x209dd2);if(_0x4a86d5)return _0x4a86d5;let _0x4ba9de={'endpointKey':_0x209dd2,'endpoint':_0x1e9db6,'socket$':new _0x3a9bce[(_0x5c1b85(0x24a))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels']['set'](_0x209dd2,_0x4ba9de),_0x4ba9de;}['_rescheduleHeartbeat'](_0x2b235d){const _0x5ede7d=_0x387812;this['_clearHeartbeatTimer'](_0x2b235d),_0x2b235d['sendHeartbeatTimer']=setTimeout(()=>this[_0x5ede7d(0x29a)](_0x2b235d),this['_configService'][_0x5ede7d(0x346)]('HEARTBEAT_INTERVAL')??0x7530);}[_0x387812(0x29a)](_0x414a16){const _0x367ef0=_0x387812;_0x414a16[_0x367ef0(0x1f5)]['getValue']()[_0x367ef0(0x1da)]({'cmd':_0x2a4603[_0x367ef0(0x396)]['HEARTBEAT']}),this['_waitForHeartbeatResponse'](_0x414a16);}['_waitForHeartbeatResponse'](_0x59984e){const _0x459677=_0x387812;_0x59984e[_0x459677(0x164)]=setTimeout(()=>this[_0x459677(0x12d)](_0x59984e),this['_configService'][_0x459677(0x346)](_0x459677(0x278))??0x4e20);}[_0x387812(0xb6)](_0x44465f){const _0x2e0f18=_0x387812;_0x44465f[_0x2e0f18(0x1b2)]!=null&&(clearTimeout(_0x44465f[_0x2e0f18(0x1b2)]),_0x44465f['sendHeartbeatTimer']=null);}[_0x387812(0x383)](_0x7b1190){const _0x3a808b=_0x387812;_0x7b1190[_0x3a808b(0x164)]!=null&&(clearTimeout(_0x7b1190[_0x3a808b(0x164)]),_0x7b1190['timeoutTimer']=null);}};_0x16256e=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x1,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0x2,_0x3ea0ad[_0x387812(0x2b5)]),_0x29ab6d(0x3,_0x3155d1),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb)),_0x29ab6d(0x5,_0xfd750d),_0x29ab6d(0x6,(0x0,_0x3ea0ad['Optional'])(_0x3bc50a))],_0x16256e);let _0x56403c=class extends _0x3ea0ad['RxDisposable']{constructor(_0x5612d0,_0x1d4274,_0xa99950,_0x2208e1){const _0xa680f2=_0x387812;var _0x19aaf1;super(),this[_0xa680f2(0x26d)]=_0x5612d0,this['_collabSessionService']=_0x1d4274,this[_0xa680f2(0x327)]=_0xa99950,this[_0xa680f2(0xc8)]=_0x2208e1,_0x309f50(this,'_entities',new Map()),_0x309f50(this,_0xa680f2(0x175),new _0x3a9bce[(_0xa680f2(0x20a))]()),_0x309f50(this,_0xa680f2(0xd7),this[_0xa680f2(0x175)][_0xa680f2(0x1fe)]()),((_0x19aaf1=this[_0xa680f2(0x327)][_0xa680f2(0x346)](_0xa680f2(0x315)))==null?void 0x0:_0x19aaf1[_0xa680f2(0x392)])!==!0x1&&this['_init']();}[_0x387812(0x102)](){const _0x33e555=_0x387812;super[_0x33e555(0x102)](),this[_0x33e555(0x2e9)][_0x33e555(0x3e5)](_0x3e156a=>_0x3e156a['dispose']()),this[_0x33e555(0x2e9)][_0x33e555(0x19d)]();}[_0x387812(0x25f)](_0x35adcd){const _0x4fe19d=_0x387812;return this[_0x4fe19d(0x2e9)][_0x4fe19d(0x32a)](_0x35adcd)??null;}[_0x387812(0x12a)](_0x6760b5){const _0x508e0a=_0x387812;let _0x11dc1a=this[_0x508e0a(0x25f)](_0x6760b5);return _0x11dc1a?(0x0,_0x3a9bce['of'])(_0x11dc1a):this['_entityInit$'][_0x508e0a(0x298)]((0x0,_0x6cc357['filter'])(_0x1eceb0=>_0x1eceb0[_0x508e0a(0x2be)]===_0x6760b5));}[_0x387812(0x2eb)](_0x458601){const _0x10641d=_0x387812;return(0x0,_0x3a9bce['firstValueFrom'])(this[_0x10641d(0x12a)](_0x458601)[_0x10641d(0x298)]((0x0,_0x6cc357[_0x10641d(0x1a7)])(()=>void 0x0)));}[_0x387812(0x3a4)](){const _0x23374c=_0x387812;this[_0x23374c(0xc8)][_0x23374c(0x266)](_0x3ea0ad[_0x23374c(0x20e)][_0x23374c(0x31e)])[_0x23374c(0x298)]((0x0,_0x3a9bce[_0x23374c(0x1a8)])(this[_0x23374c(0x235)]),(0x0,_0x6cc357[_0x23374c(0x14a)])(0x10))[_0x23374c(0x1a6)](async _0x3efbb4=>{const _0x531f88=_0x23374c;let _0x17d1c4=_0x3efbb4[_0x531f88(0xaf)][_0x531f88(0x1c4)](),_0x28906f=await this[_0x531f88(0x353)](_0x17d1c4,_0x3ea0ad[_0x531f88(0x20e)][_0x531f88(0x31e)]);this[_0x531f88(0x2e9)][_0x531f88(0x15c)](_0x17d1c4,_0x28906f);}),this[_0x23374c(0xc8)][_0x23374c(0x266)](_0x3ea0ad[_0x23374c(0x20e)]['UNIVER_DOC'])[_0x23374c(0x298)]((0x0,_0x3a9bce[_0x23374c(0x1a8)])(this[_0x23374c(0x235)]),(0x0,_0x6cc357[_0x23374c(0x14a)])(0x10))['pipe']((0x0,_0x6cc357[_0x23374c(0x2d7)])(_0x2df275=>!_0x2df275[_0x23374c(0xaf)][_0x23374c(0x1c4)]()[_0x23374c(0x370)]('__')))['subscribe'](async _0x72c5d6=>{const _0x218c33=_0x23374c;let _0x355c72=_0x72c5d6[_0x218c33(0xaf)][_0x218c33(0x1c4)](),_0x309ea7=await this[_0x218c33(0x353)](_0x355c72,_0x3ea0ad[_0x218c33(0x20e)][_0x218c33(0x2e8)]);this[_0x218c33(0x2e9)][_0x218c33(0x15c)](_0x355c72,_0x309ea7);}),this[_0x23374c(0xc8)]['getTypeOfUnitAdded$'](_0x3ea0ad['UniverInstanceType'][_0x23374c(0x105)])[_0x23374c(0x298)]((0x0,_0x3a9bce['takeUntil'])(this[_0x23374c(0x235)]),(0x0,_0x6cc357[_0x23374c(0x14a)])(0x10))[_0x23374c(0x1a6)](async _0x36ea16=>{const _0x4582fa=_0x23374c;let _0x2a889e=_0x36ea16['unit'][_0x4582fa(0x1c4)](),_0x36d833=await this[_0x4582fa(0x353)](_0x2a889e,_0x3ea0ad[_0x4582fa(0x20e)][_0x4582fa(0x105)]);this[_0x4582fa(0x2e9)]['set'](_0x2a889e,_0x36d833);}),this['_univerInstanceService'][_0x23374c(0x266)](_0x3ea0ad['UniverInstanceType'][_0x23374c(0x237)])[_0x23374c(0x298)]((0x0,_0x3a9bce[_0x23374c(0x1a8)])(this['dispose$']),(0x0,_0x6cc357[_0x23374c(0x14a)])(0x10))[_0x23374c(0x1a6)](async _0x479c41=>{const _0x3edc5f=_0x23374c;let _0x4a8ca1=_0x479c41[_0x3edc5f(0xaf)]['getUnitId'](),_0x29eb2a=await this[_0x3edc5f(0x353)](_0x4a8ca1,_0x3ea0ad[_0x3edc5f(0x20e)][_0x3edc5f(0x237)]);this[_0x3edc5f(0x2e9)][_0x3edc5f(0x15c)](_0x4a8ca1,_0x29eb2a);}),this[_0x23374c(0xc8)][_0x23374c(0x266)](_0x3ea0ad[_0x23374c(0x20e)][_0x23374c(0x382)])['pipe']((0x0,_0x3a9bce[_0x23374c(0x1a8)])(this[_0x23374c(0x235)]),(0x0,_0x6cc357[_0x23374c(0x14a)])(0x10))[_0x23374c(0x1a6)](async _0x2a85a7=>{const _0x471540=_0x23374c;let _0x482984=_0x2a85a7[_0x471540(0xaf)][_0x471540(0x1c4)](),_0x583386=await this[_0x471540(0x353)](_0x482984,_0x3ea0ad['UniverInstanceType'][_0x471540(0x382)]);this[_0x471540(0x2e9)][_0x471540(0x15c)](_0x482984,_0x583386);}),this['_univerInstanceService'][_0x23374c(0x266)](_0x3ea0ad['UniverInstanceType']['UNIVER_PDF'])[_0x23374c(0x298)]((0x0,_0x3a9bce['takeUntil'])(this[_0x23374c(0x235)]),(0x0,_0x6cc357[_0x23374c(0x14a)])(0x10))['subscribe'](async _0x6eea6d=>{const _0x293ec8=_0x23374c;let _0x351820=_0x6eea6d['unit'][_0x293ec8(0x1c4)](),_0x5f1f76=await this[_0x293ec8(0x353)](_0x351820,_0x3ea0ad['UniverInstanceType']['UNIVER_PDF']);this['_entities']['set'](_0x351820,_0x5f1f76);}),(0x0,_0x3a9bce[_0x23374c(0x365)])(this['_univerInstanceService'][_0x23374c(0x19f)](_0x3ea0ad[_0x23374c(0x20e)][_0x23374c(0x31e)]),this[_0x23374c(0xc8)][_0x23374c(0x19f)](_0x3ea0ad[_0x23374c(0x20e)][_0x23374c(0x2e8)]),this['_univerInstanceService'][_0x23374c(0x19f)](_0x3ea0ad[_0x23374c(0x20e)][_0x23374c(0x105)]),this[_0x23374c(0xc8)][_0x23374c(0x19f)](_0x3ea0ad[_0x23374c(0x20e)]['UNIVER_BOARD']),this[_0x23374c(0xc8)][_0x23374c(0x19f)](_0x3ea0ad[_0x23374c(0x20e)][_0x23374c(0x382)]),this[_0x23374c(0xc8)][_0x23374c(0x19f)](_0x3ea0ad['UniverInstanceType'][_0x23374c(0x389)]))[_0x23374c(0x298)]((0x0,_0x3a9bce[_0x23374c(0x1a8)])(this[_0x23374c(0x235)]))[_0x23374c(0x1a6)](_0x403880=>{const _0x56dfd9=_0x23374c;let _0x42b704=_0x403880[_0x56dfd9(0x1c4)](),_0x5012b1=this[_0x56dfd9(0x2e9)][_0x56dfd9(0x32a)](_0x42b704);_0x5012b1&&(_0x5012b1[_0x56dfd9(0x102)](),this[_0x56dfd9(0x2e9)][_0x56dfd9(0x3c5)](_0x42b704));});}async[_0x387812(0x353)](_0x4cb7ba,_0x1c54b7){const _0x33ff58=_0x387812;let _0x2f921f=await this[_0x33ff58(0x2de)][_0x33ff58(0x1f8)](_0x4cb7ba),_0x21ddae=this[_0x33ff58(0x26d)][_0x33ff58(0xc4)](this[_0x33ff58(0x2a5)](_0x1c54b7),_0x4cb7ba,_0x1c54b7,_0x2f921f);return await _0x21ddae[_0x33ff58(0x183)](),this['_entityInit$'][_0x33ff58(0x316)](_0x21ddae),_0x21ddae;}[_0x387812(0x2a5)](_0x119d55){const _0x246df7=_0x387812;switch(_0x119d55){case _0x3ea0ad[_0x246df7(0x20e)][_0x246df7(0x2e8)]:return _0x4264a3;case _0x3ea0ad[_0x246df7(0x20e)][_0x246df7(0x31e)]:return _0x1a3266;case _0x3ea0ad[_0x246df7(0x20e)][_0x246df7(0x105)]:return _0xa14eef;case _0x3ea0ad[_0x246df7(0x20e)][_0x246df7(0x237)]:return _0x2b44e6;case _0x3ea0ad[_0x246df7(0x20e)][_0x246df7(0x382)]:return _0x461db8;case _0x3ea0ad[_0x246df7(0x20e)]['UNIVER_PDF']:return _0x56abff;default:throw Error(_0x246df7(0x1a2)+_0x119d55);}}};_0x56403c=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x1,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x16256e)),_0x29ab6d(0x2,_0x3ea0ad[_0x387812(0x2b5)]),_0x29ab6d(0x3,_0x3ea0ad[_0x387812(0x2fe)])],_0x56403c);var _0x297e46='@univerjs-pro/collaboration-client',_0x18149d=_0x387812(0x3b0);let _0xe73302=class extends _0x3ea0ad['Disposable']{constructor(_0x4fbb67,_0x3e5f1a){const _0x1cf987=_0x387812;super(),this[_0x1cf987(0xc8)]=_0x4fbb67,this[_0x1cf987(0x327)]=_0x3e5f1a,this['_init']();}[_0x387812(0x3a4)](){const _0x510b80=_0x387812;this[_0x510b80(0x1b5)](this[_0x510b80(0xc8)][_0x510b80(0x341)]['subscribe'](()=>{const _0x35b265=_0x510b80;let _0x5eb8dc=this[_0x35b265(0xc8)][_0x35b265(0x12c)](),_0x15c99c=this[_0x35b265(0x327)][_0x35b265(0x346)](_0x35b265(0x133))??_0x35b265(0x152);_0x5eb8dc instanceof _0x3ea0ad['Workbook']&&(_0x15c99c=_0x5eb8dc['name']),document[_0x35b265(0x3aa)]=_0x15c99c;}));}};_0xe73302=_0x48064b([_0x29ab6d(0x0,_0x3ea0ad['IUniverInstanceService']),_0x29ab6d(0x1,_0x3ea0ad['IConfigService'])],_0xe73302);let _0x37f9b3=(0x0,_0x3ea0ad[_0x387812(0x359)])(_0x387812(0xc2)),_0x4d9046=class{constructor(_0x2e7e51,_0x1a4a20,_0x2187ee){const _0x545af1=_0x387812;this[_0x545af1(0x20d)]=_0x2e7e51,this[_0x545af1(0x327)]=_0x1a4a20,this[_0x545af1(0xc8)]=_0x2187ee;}[_0x387812(0x297)](){const _0x81e4f8=_0x387812;return this['_getConfig']()[_0x81e4f8(0x35d)]??{};}async[_0x387812(0x28b)](_0x1320ce){const _0x341020=_0x387812;let _0x4609e1=this[_0x341020(0x297)]();if(_0x3c8265(_0x1320ce,_0x4609e1),_0x4609e1[_0x341020(0x33f)])return _0x4609e1[_0x341020(0x33f)](_0x1320ce);let _0x453991=await this[_0x341020(0x125)](_0x1320ce);return{'id':_0x453991,'name':_0x1320ce[_0x341020(0xe8)],'mimeType':_0x1320ce[_0x341020(0x131)],'size':_0x1320ce[_0x341020(0x171)],'sourceType':_0x3ea0ad[_0x341020(0x39b)][_0x341020(0x1d7)],'source':_0x453991};}async[_0x387812(0x137)](_0x32f222,_0x3d0340){const _0x142dc7=_0x387812;if(_0x3d0340!==_0x3ea0ad[_0x142dc7(0x39b)]['UUID'])return _0x32f222;let _0x1131e7=(await this['_httpService']['get'](this[_0x142dc7(0x14e)]()[_0x142dc7(0x14d)](_0x142dc7(0x391),_0x32f222)))[_0x142dc7(0x2a8)];if(_0x1131e7['error']&&_0x1131e7[_0x142dc7(0xcf)][_0x142dc7(0x299)]!==_0x2a4603[_0x142dc7(0x16b)]['OK'])throw _0x1131e7[_0x142dc7(0xcf)];if(!_0x1131e7[_0x142dc7(0x29b)])throw Error(_0x142dc7(0x302));return(0x0,_0x3ea0ad[_0x142dc7(0x3ba)])(_0x1131e7[_0x142dc7(0x29b)],this['_getDownloadEndpointURL']());}async[_0x387812(0x125)](_0x5079b9){const _0x40bfe7=_0x387812;let _0x421cd2=this[_0x40bfe7(0xc8)][_0x40bfe7(0x12c)](),_0x528f4e=_0x421cd2==null?void 0x0:_0x421cd2[_0x40bfe7(0x1c4)]();if(!_0x528f4e)throw Error(_0x40bfe7(0x158));let _0x9424d3=new FormData();_0x9424d3[_0x40bfe7(0x330)]('file',_0x5079b9);let _0x31626d=this[_0x40bfe7(0x1f7)]()+_0x40bfe7(0x272)+_0x5079b9[_0x40bfe7(0x171)][_0x40bfe7(0x242)]()+'&source='+_0x2a4603[_0x40bfe7(0x347)][_0x40bfe7(0xec)]+_0x40bfe7(0x167)+encodeURIComponent(_0x528f4e),_0x482470=(await this[_0x40bfe7(0x20d)][_0x40bfe7(0x233)](_0x31626d,{'body':_0x9424d3}))[_0x40bfe7(0x2a8)][_0x40bfe7(0x28e)];if(typeof _0x482470!=_0x40bfe7(0x17f)||!_0x482470)throw Error(_0x40bfe7(0x307));return _0x482470;}[_0x387812(0x1f7)](){const _0x3e1c19=_0x387812;return this[_0x3e1c19(0x1c3)]()[_0x3e1c19(0x185)]??_0x3e1c19(0x3a2);}[_0x387812(0x14e)](){const _0x287cac=_0x387812;return this['_getConfig']()[_0x287cac(0x289)]??'/universer-api/file/{fileID}/sign-url';}['_getDownloadEndpointURL'](){const _0x35f23c=_0x387812;let _0x2adb71=this[_0x35f23c(0x1c3)]();return _0x2adb71[_0x35f23c(0x39e)]?_0x2adb71[_0x35f23c(0x39e)]:typeof location<'u'?location['origin']:_0x2adb71[_0x35f23c(0x185)]??'';}[_0x387812(0x1c3)](){const _0x474d67=_0x387812;return this['_configService'][_0x474d67(0x346)]('collaboration-client.config')??{};}};_0x4d9046=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x2e88c0['HTTPService'])),_0x29ab6d(0x1,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x2b5)])),_0x29ab6d(0x2,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x2fe)]))],_0x4d9046);function _0x3c8265(_0x2c02d4,_0x3806e8){const _0x598684=_0x387812;var _0x11edb8;if(_0x3806e8[_0x598684(0x21a)]!=null&&_0x2c02d4[_0x598684(0x171)]>_0x3806e8[_0x598684(0x21a)])throw Error(_0x598684(0x2fd));if((_0x11edb8=_0x3806e8['accept'])!=null&&_0x11edb8[_0x598684(0x141)]&&!_0x3806e8[_0x598684(0x268)]['some'](_0x2df29a=>_0x2c02d4[_0x598684(0x131)]===_0x2df29a||_0x2c02d4[_0x598684(0xe8)]['endsWith'](_0x2df29a)||_0x2df29a[_0x598684(0x2c8)]('/*')&&_0x2c02d4[_0x598684(0x131)]['startsWith'](_0x2df29a['slice'](0x0,-0x1))))throw Error(_0x598684(0x159));}let _0x2d5274=class{constructor(_0x5ccb9e,_0x187289,_0x372b3f){const _0x2c4836=_0x387812;this[_0x2c4836(0x327)]=_0x5ccb9e,this['_httpService']=_0x187289,this[_0x2c4836(0x282)]=_0x372b3f,this[_0x2c4836(0x183)]();}[_0x387812(0x183)](){const _0x1d6849=_0x387812;this['_httpService'][_0x1d6849(0x216)]({'priority':0x1,'interceptor':(_0x4cd764,_0x1aae2d)=>_0x1aae2d(_0x4cd764)[_0x1d6849(0x298)]((0x0,_0x3a9bce['concatMap'])(async _0x47733e=>{const _0x16ce0b=_0x1d6849;let _0xad4834=_0x47733e;if(_0xad4834['status']===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window['confirm'](this[_0x16ce0b(0x282)]['t'](_0x16ce0b(0x251)))){let _0x54645f=window['encodeURIComponent'](window[_0x16ce0b(0x25c)]['href']);window['location'][_0x16ce0b(0x3a6)]=this['_getLoginPath']()+_0x16ce0b(0x1aa)+_0x54645f;}}return _0xad4834;}))});}[_0x387812(0x189)](){const _0x115847=_0x387812;let _0x5887ce=this[_0x115847(0x327)][_0x115847(0x346)](_0xeb659);return(_0x5887ce==null?void 0x0:_0x5887ce[_0x115847(0x38b)])??_0x115847(0x1fa);}};_0x2d5274=_0x48064b([_0x29ab6d(0x0,_0x3ea0ad[_0x387812(0x2b5)]),_0x29ab6d(0x1,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x2e88c0['HTTPService'])),_0x29ab6d(0x2,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x26b)]))],_0x2d5274);let _0xd648b3=class extends _0x3ea0ad[_0x387812(0x18f)]{constructor(_0x1ee45e,_0x55eeae){const _0x5022f1=_0x387812;super(),this[_0x5022f1(0xb1)]=_0x1ee45e,this[_0x5022f1(0x327)]=_0x55eeae,_0x309f50(this,_0x5022f1(0xab),!0x1),this[_0x5022f1(0xc1)]();}[_0x387812(0xc1)](){const _0x26731f=_0x387812;let _0x212be2=this;this[_0x26731f(0x1b5)](this[_0x26731f(0xb1)][_0x26731f(0x216)]({'priority':0x3e7,'interceptor':(0x0,_0x2e88c0['MergeInterceptorFactory'])({'isMatch'(_0x533ac2){const _0x38aa27=_0x26731f;var _0x41171b;if(_0x533ac2['method']===_0x38aa27(0x342)&&(_0x41171b=_0x533ac2['requestParams'])!=null&&_0x41171b[_0x38aa27(0x2a8)]){let {objectID:_0x1afafb,objectType:_0x2ec9de}=_0x533ac2[_0x38aa27(0x145)]['body']||{};if(!_0x1afafb||_0x2ec9de===void 0x0)return!0x1;let _0xc84d54=_0x212be2[_0x38aa27(0x3ad)]()+'/'+_0x2ec9de+'/object/'+_0x1afafb+_0x38aa27(0x127);if(_0x533ac2[_0x38aa27(0x29b)]===_0xc84d54)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5610ad){const _0x36c961=_0x26731f;var _0x2f1cd7;return(_0x2f1cd7=_0x5610ad[_0x36c961(0x145)])==null?void 0x0:_0x2f1cd7[_0x36c961(0x2a8)];},'mergeParamsToRequest'(_0x16ecaa,_0x2cf6f6){const _0x12cdf0=_0x26731f;let _0x3ef102=_0x212be2[_0x12cdf0(0x3ad)]()+'/-/object/-/batch_allowed',_0xfc7376=_0x16ecaa[_0x12cdf0(0x3cf)]((_0x25103b,_0x19ba60)=>{const _0x144684=_0x12cdf0;let {unitID:_0x1db0b7,objectID:_0x53042d,objectType:_0x2456ef,actions:_0x436c82}=_0x19ba60;return _0x25103b[_0x1db0b7]||(_0x25103b[_0x1db0b7]={}),_0x25103b[_0x1db0b7][_0x53042d]||(_0x25103b[_0x1db0b7][_0x53042d]={'objectID':_0x53042d,'objectType':_0x2456ef,'actions':[]}),_0x25103b[_0x1db0b7][_0x53042d]['actions'][_0x144684(0x223)](..._0x436c82),_0x25103b;},{}),_0x3272d6=[];for(let _0x5f45c5 in _0xfc7376)for(let _0x371a8e in _0xfc7376[_0x5f45c5]){let {actions:_0x4d9cee,objectType:_0x30b230}=_0xfc7376[_0x5f45c5][_0x371a8e],_0x12a437=[...new Set(_0x4d9cee)];_0x3272d6[_0x12cdf0(0x223)]({'unitID':_0x5f45c5,'objectID':_0x371a8e,'objectType':_0x30b230,'actions':_0x12a437});}return new _0x2e88c0['HTTPRequest'](_0x12cdf0(0x342),_0x3ef102,{'headers':_0x2cf6f6[_0x12cdf0(0x3b3)],'withCredentials':_0x2cf6f6[_0x12cdf0(0x12e)],'responseType':_0x2cf6f6[_0x12cdf0(0x178)],'body':{'requests':_0x3272d6}});}},{'distributeResult'(_0x127320,_0x201510){let {objectActions:_0x337a70}=_0x127320;return _0x201510['map'](_0xcaad4f=>{const _0x5e0e7e=_0x1600;let {unitID:_0x1a7983,objectID:_0x560a15,actions:_0x25634e}=_0xcaad4f,_0x3b71f1=_0x337a70['find'](_0x524ae9=>_0x524ae9['unitID']===_0x1a7983&&_0x524ae9[_0x5e0e7e(0x220)]===_0x560a15);return{'config':_0xcaad4f,'result':{'actions':_0x25634e[_0x5e0e7e(0x1a7)](_0x4e4a5b=>_0x3b71f1==null?void 0x0:_0x3b71f1['actions'][_0x5e0e7e(0x1ee)](_0x31ecde=>_0x31ecde[_0x5e0e7e(0x32f)]===_0x4e4a5b))[_0x5e0e7e(0x2d7)](_0x2e2efb=>!!_0x2e2efb),'error':_0x127320[_0x5e0e7e(0xcf)]}};});}})}));}[_0x387812(0x3ad)](){const _0x4e8e35=_0x387812;let _0x15d0f6=this[_0x4e8e35(0x327)][_0x4e8e35(0x346)](_0xeb659);return(_0x15d0f6==null?void 0x0:_0x15d0f6[_0x4e8e35(0x400)])??_0x4e8e35(0x184);}async[_0x387812(0xf6)](_0x3db82f){const _0x539a9c=_0x387812;let _0x451b50=this[_0x539a9c(0x3ad)]()+'/'+_0x3db82f['objectType']+'/object';return(await this['_HTTPService'][_0x539a9c(0x233)](_0x451b50,{'body':_0x3db82f}))[_0x539a9c(0x2a8)][_0x539a9c(0x220)]||'';}async[_0x387812(0x188)](_0x2cf155){const _0x58f0f0=_0x387812;let _0x464122=this['_getAPIPrefixPath']()+'/-/object/list';return(await this['_HTTPService'][_0x58f0f0(0x233)](_0x464122,{'body':_0x2cf155}))[_0x58f0f0(0x2a8)][_0x58f0f0(0x374)];}async[_0x387812(0x19b)](_0x52b7a9){const _0x290c79=_0x387812;var _0x1b6556;let _0x284d8a=this[_0x290c79(0x3ad)]()+'/'+_0x52b7a9[_0x290c79(0x246)]+_0x290c79(0x2fa)+_0x52b7a9[_0x290c79(0x220)],_0x55ec43=await this[_0x290c79(0xb1)][_0x290c79(0x27b)](_0x284d8a,{'body':_0x52b7a9});if((_0x55ec43==null||(_0x1b6556=_0x55ec43[_0x290c79(0x2a8)])==null||(_0x1b6556=_0x1b6556[_0x290c79(0xcf)])==null?void 0x0:_0x1b6556[_0x290c79(0x299)])!==0x1)throw Error(_0x290c79(0xd3));}async['allowed'](_0x48d6ae){const _0xfb47cb=_0x387812;let _0x31be8b=this[_0xfb47cb(0x3ad)]()+'/'+_0x48d6ae[_0xfb47cb(0x246)]+_0xfb47cb(0x2fa)+_0x48d6ae[_0xfb47cb(0x220)]+_0xfb47cb(0x127);return(await this[_0xfb47cb(0xb1)]['post'](_0x31be8b,{'body':_0x48d6ae}))['body']['actions'];}async[_0x387812(0x2f5)](_0x19811f){const _0xe5445f=_0x387812;let _0x14e3df=this[_0xe5445f(0x3ad)]()+_0xe5445f(0xf3);return(await this[_0xe5445f(0xb1)][_0xe5445f(0x233)](_0x14e3df,{'body':{'requests':_0x19811f}}))['body'][_0xe5445f(0x3e2)];}async[_0x387812(0x386)](_0x310d24){const _0x4fcaad=_0x387812;let _0x5cf539=this[_0x4fcaad(0x3ad)]()+'/'+_0x310d24['objectType']+_0x4fcaad(0x357),_0x2ff788=await this[_0x4fcaad(0xb1)][_0x4fcaad(0x233)](_0x5cf539,{'body':_0x310d24});return{'roles':_0x2ff788[_0x4fcaad(0x2a8)]['roles'],'actions':_0x2ff788['body'][_0x4fcaad(0x34c)]};}async['deleteCollaborator'](_0x477f95){const _0x9c8dd6=_0x387812;let _0x38593b=this[_0x9c8dd6(0x3ad)]()+'/collaborator';await this[_0x9c8dd6(0xb1)][_0x9c8dd6(0x3c5)](_0x38593b,{'params':{'collaboratorID':_0x477f95[_0x9c8dd6(0x364)],'objectID':_0x477f95['objectID'],'unitID':_0x477f95['unitID']}});}async[_0x387812(0x134)](_0x2370f2){const _0xeafed4=_0x387812;let _0x643e4=this[_0xeafed4(0x3ad)]()+_0xeafed4(0x33b);await this[_0xeafed4(0xb1)][_0xeafed4(0x3d2)](_0x643e4,{'body':_0x2370f2});}async[_0x387812(0x31f)](_0x227616){const _0x5cb920=_0x387812;let _0x300779=this['_getAPIPrefixPath']()+_0x5cb920(0x33b);await this[_0x5cb920(0xb1)][_0x5cb920(0x233)](_0x300779,{'body':_0x227616});}async[_0x387812(0x1cf)](_0x4098d4){const _0x3632e5=_0x387812;let _0x44322c=this[_0x3632e5(0x3ad)]()+_0x3632e5(0x33b),_0x1de936=await this['_HTTPService'][_0x3632e5(0x32a)](_0x44322c,{'params':{'objectID':_0x4098d4[_0x3632e5(0x220)],'unitID':_0x4098d4['unitID']}});return this[_0x3632e5(0x3f7)](_0x1de936[_0x3632e5(0x2a8)][_0x3632e5(0x376)]??!0x1),_0x1de936[_0x3632e5(0x2a8)][_0x3632e5(0x193)];}async['putCollaborators'](_0x24f73d){const _0x13ba98=_0x387812;let _0x6a861=this[_0x13ba98(0x3ad)]()+_0x13ba98(0x33b);await this[_0x13ba98(0xb1)][_0x13ba98(0x27b)](_0x6a861,{'body':_0x24f73d});}['setCfgEnableObjInherit'](_0x5ce5e4){const _0x1c12d2=_0x387812;this[_0x1c12d2(0xab)]=_0x5ce5e4;}[_0x387812(0x292)](){return this['_cfgEnableObjInherit'];}};_0xd648b3=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x2e88c0[_0x387812(0x264)])),_0x29ab6d(0x1,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad['IConfigService']))],_0xd648b3);function _0x449244(_0x46d9ab){const _0x36a2d0=_0x387812;return _0x46d9ab instanceof Uint8Array||ArrayBuffer[_0x36a2d0(0x197)](_0x46d9ab)&&_0x46d9ab['constructor'][_0x36a2d0(0xe8)]===_0x36a2d0(0x1ca)&&_0x36a2d0(0xde)in _0x46d9ab&&_0x46d9ab[_0x36a2d0(0xde)]===0x1;}function _0x25e2d3(_0x6853a9){const _0xb254b6=_0x387812;if(typeof _0x6853a9!=_0xb254b6(0x2bc))throw TypeError(_0xb254b6(0x1bf)+typeof _0x6853a9);if(!Number[_0xb254b6(0x136)](_0x6853a9)||_0x6853a9<0x0)throw RangeError(_0xb254b6(0x100)+_0x6853a9);}function _0x21ee81(_0x173a94,_0x10df51,_0x1fcf9c=''){const _0x609dd6=_0x387812;let _0x44ab54=_0x449244(_0x173a94),_0x3c766d=_0x173a94==null?void 0x0:_0x173a94[_0x609dd6(0x141)],_0x529eff=_0x10df51!==void 0x0;if(!_0x44ab54||_0x529eff&&_0x3c766d!==_0x10df51){let _0xfcff2e=_0x1fcf9c&&'\x22'+_0x1fcf9c+'\x22\x20',_0xa170c0=_0x529eff?'\x20of\x20length\x20'+_0x10df51:'',_0x2dc24b=_0x44ab54?'length='+_0x3c766d:'type='+typeof _0x173a94,_0x1f3412=_0xfcff2e+_0x609dd6(0x196)+_0xa170c0+_0x609dd6(0x345)+_0x2dc24b;throw _0x44ab54?RangeError(_0x1f3412):TypeError(_0x1f3412);}return _0x173a94;}function _0x58d5f9(_0x4be763){const _0x3b230d=_0x387812;return new Uint32Array(_0x4be763[_0x3b230d(0x114)],_0x4be763[_0x3b230d(0x301)],Math['floor'](_0x4be763['byteLength']/0x4));}function _0x3322bb(..._0x5a43bf){const _0x449fbf=_0x387812;for(let _0x4fa629=0x0;_0x4fa629<_0x5a43bf[_0x449fbf(0x141)];_0x4fa629++)_0x5a43bf[_0x4fa629][_0x449fbf(0x385)](0x0);}let _0x5777bd=new Uint8Array(new Uint32Array([0x11223344])[_0x387812(0x114)])[0x0]===0x44,_0x2c99ce=_0x53f3df=>_0x53f3df<<0x18&0xff000000|_0x53f3df<<0x8&0xff0000|_0x53f3df>>>0x8&0xff00|_0x53f3df>>>0x18&0xff,_0x32c214=_0x5777bd?_0x34d021=>_0x34d021:_0x1c4443=>{const _0x4d63ff=_0x387812;for(let _0x4e8bff=0x0;_0x4e8bff<_0x1c4443[_0x4d63ff(0x141)];_0x4e8bff++)_0x1c4443[_0x4e8bff]=_0x2c99ce(_0x1c4443[_0x4e8bff]);return _0x1c4443;};function _0x4026a5(_0x34cb92){const _0x1de5a7=_0x387812;if(typeof _0x34cb92!=_0x1de5a7(0x17f))throw TypeError(_0x1de5a7(0x254));return new Uint8Array(new TextEncoder()['encode'](_0x34cb92));}function _0xff90e1(_0x3032c9,_0x485b1f){const _0x21e194=_0x387812;return!_0x3032c9[_0x21e194(0x143)]||!_0x485b1f[_0x21e194(0x143)]?!0x1:_0x3032c9[_0x21e194(0x114)]===_0x485b1f['buffer']&&_0x3032c9[_0x21e194(0x301)]<_0x485b1f[_0x21e194(0x301)]+_0x485b1f[_0x21e194(0x143)]&&_0x485b1f[_0x21e194(0x301)]<_0x3032c9['byteOffset']+_0x3032c9[_0x21e194(0x143)];}function _0xe733e1(_0x1141be,_0x377272){const _0xa759e8=_0x387812;if(_0xff90e1(_0x1141be,_0x377272)&&_0x1141be[_0xa759e8(0x301)]<_0x377272[_0xa759e8(0x301)])throw Error(_0xa759e8(0x15f));}function _0x139a1d(..._0x5b7187){const _0xdd4894=_0x387812;let _0x3b6a0f=0x0;for(let _0x2d6d58=0x0;_0x2d6d58<_0x5b7187[_0xdd4894(0x141)];_0x2d6d58++){let _0x214714=_0x5b7187[_0x2d6d58];_0x21ee81(_0x214714),_0x3b6a0f+=_0x214714['length'];}let _0x3bdac5=new Uint8Array(_0x3b6a0f);for(let _0x5bf9de=0x0,_0x5850c9=0x0;_0x5bf9de<_0x5b7187[_0xdd4894(0x141)];_0x5bf9de++){let _0x4b098b=_0x5b7187[_0x5bf9de];_0x3bdac5[_0xdd4894(0x15c)](_0x4b098b,_0x5850c9),_0x5850c9+=_0x4b098b[_0xdd4894(0x141)];}return _0x3bdac5;}let _0x2a7d01=(_0x1efa0b,_0x325761)=>{const _0x327a25=_0x387812;function _0x32ee4d(_0x2d7c6b,..._0x4d1c49){const _0x2485aa=_0x1600;if(_0x21ee81(_0x2d7c6b,void 0x0,_0x2485aa(0x26e)),_0x1efa0b[_0x2485aa(0x3a7)]!==void 0x0){let _0x4f3a3c=_0x4d1c49[0x0];_0x21ee81(_0x4f3a3c,_0x1efa0b[_0x2485aa(0x3f1)]?void 0x0:_0x1efa0b[_0x2485aa(0x3a7)],_0x2485aa(0x200));}let _0x41a268=_0x1efa0b[_0x2485aa(0x336)];_0x41a268&&_0x4d1c49[0x1]!==void 0x0&&_0x21ee81(_0x4d1c49[0x1],void 0x0,_0x2485aa(0x2c3));let _0x53718d=_0x325761(_0x2d7c6b,..._0x4d1c49),_0x74fc61=(_0x2e53d4,_0x162b3b)=>{const _0x46d69e=_0x2485aa;if(_0x162b3b!==void 0x0){if(_0x2e53d4!==0x2)throw Error(_0x46d69e(0x155));_0x21ee81(_0x162b3b,void 0x0,'output');}},_0x21f1c2=!0x1;return{'encrypt'(_0x5cb051,_0x18486f){const _0x2ba004=_0x2485aa;if(_0x21f1c2)throw Error(_0x2ba004(0x2f3));return _0x21f1c2=!0x0,_0x21ee81(_0x5cb051),_0x74fc61(_0x53718d[_0x2ba004(0x149)]['length'],_0x18486f),_0x53718d[_0x2ba004(0x149)](_0x5cb051,_0x18486f);},'decrypt'(_0x4dc291,_0x29296d){const _0x4bd930=_0x2485aa;if(_0x21ee81(_0x4dc291),_0x41a268&&_0x4dc291[_0x4bd930(0x141)]<_0x41a268)throw Error(_0x4bd930(0x153)+_0x41a268);return _0x74fc61(_0x53718d[_0x4bd930(0x3e9)]['length'],_0x29296d),_0x53718d['decrypt'](_0x4dc291,_0x29296d);}};}return Object[_0x327a25(0x334)](_0x32ee4d,_0x1efa0b),_0x32ee4d;};function _0x345aad(_0x421f20,_0x462fd5,_0x58bb01=!0x0){const _0xe5614a=_0x387812;if(_0x462fd5===void 0x0)return new Uint8Array(_0x421f20);if(_0x21ee81(_0x462fd5,void 0x0,'output'),_0x462fd5[_0xe5614a(0x141)]!==_0x421f20)throw Error(_0xe5614a(0x243)+_0x421f20+_0xe5614a(0xd5)+_0x462fd5['length']);if(_0x58bb01&&!_0x32710f(_0x462fd5))throw Error(_0xe5614a(0x2dd));return _0x462fd5;}function _0x32710f(_0x41e3d6){const _0x58fd8c=_0x387812;return _0x41e3d6[_0x58fd8c(0x301)]%0x4==0x0;}function _0x10715d(_0x3aa5e9){const _0x4d1440=_0x387812;return Uint8Array[_0x4d1440(0x287)](_0x21ee81(_0x3aa5e9));}function _0x317914(_0x4010f0=0x20){const _0x101459=_0x387812;_0x25e2d3(_0x4010f0);let _0x1cc06e=typeof globalThis=='object'?globalThis[_0x101459(0x33d)]:null;if(typeof(_0x1cc06e==null?void 0x0:_0x1cc06e[_0x101459(0xf2)])!=_0x101459(0xf0))throw Error(_0x101459(0x205));return _0x1cc06e[_0x101459(0xf2)](new Uint8Array(_0x4010f0));}function _0x5a8b6a(_0x545010){const _0x109d1b=_0x387812;if(![0x10,0x18,0x20][_0x109d1b(0x34d)](_0x545010['length']))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x545010[_0x109d1b(0x141)]);}function _0x53f2d4(_0x4ac23d){return _0x4ac23d<<0x1^0x11b&-(_0x4ac23d>>0x7);}function _0x26d149(_0x227cea,_0x388e5b){let _0x38081f=0x0;for(;_0x388e5b>0x0;_0x388e5b>>=0x1)_0x38081f^=_0x227cea&-(_0x388e5b&0x1),_0x227cea=_0x53f2d4(_0x227cea);return _0x38081f;}let _0x5c93d4=((()=>{let _0x4f9782=new Uint8Array(0x100);for(let _0x381f7c=0x0,_0x3d3f27=0x1;_0x381f7c<0x100;_0x381f7c++,_0x3d3f27^=_0x53f2d4(_0x3d3f27))_0x4f9782[_0x381f7c]=_0x3d3f27;let _0x78af45=new Uint8Array(0x100);_0x78af45[0x0]=0x63;for(let _0x329473=0x0;_0x329473<0xff;_0x329473++){let _0xf8f75=_0x4f9782[0xff-_0x329473];_0xf8f75|=_0xf8f75<<0x8,_0x78af45[_0x4f9782[_0x329473]]=(_0xf8f75^_0xf8f75>>0x4^_0xf8f75>>0x5^_0xf8f75>>0x6^_0xf8f75>>0x7^0x63)&0xff;}return _0x3322bb(_0x4f9782),_0x78af45;})()),_0x5b7296=_0x5c93d4['map']((_0x20d576,_0x1972b8)=>_0x5c93d4[_0x387812(0x161)](_0x1972b8)),_0x408394=_0x20c080=>_0x20c080<<0x18|_0x20c080>>>0x8,_0x5726c5=_0x1319b5=>_0x1319b5<<0x8|_0x1319b5>>>0x18;function _0x1e5d82(_0x333fe2,_0x1e381e){const _0x34b4a2=_0x387812;if(_0x333fe2[_0x34b4a2(0x141)]!==0x100)throw Error(_0x34b4a2(0x177));let _0x2d08b4=new Uint32Array(0x100)['map']((_0x3c6371,_0x5dd743)=>_0x1e381e(_0x333fe2[_0x5dd743])),_0x21fd24=_0x2d08b4[_0x34b4a2(0x1a7)](_0x5726c5),_0x1ee0fd=_0x21fd24[_0x34b4a2(0x1a7)](_0x5726c5),_0x10318e=_0x1ee0fd['map'](_0x5726c5),_0x4aef86=new Uint32Array(0x100*0x100),_0x8e9740=new Uint32Array(0x100*0x100),_0x1b459c=new Uint16Array(0x100*0x100);for(let _0x39a430=0x0;_0x39a430<0x100;_0x39a430++)for(let _0x3238cf=0x0;_0x3238cf<0x100;_0x3238cf++){let _0x5c0010=_0x39a430*0x100+_0x3238cf;_0x4aef86[_0x5c0010]=_0x2d08b4[_0x39a430]^_0x21fd24[_0x3238cf],_0x8e9740[_0x5c0010]=_0x1ee0fd[_0x39a430]^_0x10318e[_0x3238cf],_0x1b459c[_0x5c0010]=_0x333fe2[_0x39a430]<<0x8|_0x333fe2[_0x3238cf];}return{'sbox':_0x333fe2,'sbox2':_0x1b459c,'T0':_0x2d08b4,'T1':_0x21fd24,'T2':_0x1ee0fd,'T3':_0x10318e,'T01':_0x4aef86,'T23':_0x8e9740};}let _0x31e021=_0x1e5d82(_0x5c93d4,_0x17d6fc=>_0x26d149(_0x17d6fc,0x3)<<0x18|_0x17d6fc<<0x10|_0x17d6fc<<0x8|_0x26d149(_0x17d6fc,0x2)),_0x376d8e=_0x1e5d82(_0x5b7296,_0x2f5b6c=>_0x26d149(_0x2f5b6c,0xb)<<0x18|_0x26d149(_0x2f5b6c,0xd)<<0x10|_0x26d149(_0x2f5b6c,0x9)<<0x8|_0x26d149(_0x2f5b6c,0xe)),_0x49fb0e=((()=>{let _0x342a45=new Uint8Array(0x10);for(let _0xebd611=0x0,_0x10e195=0x1;_0xebd611<0x10;_0xebd611++,_0x10e195=_0x53f2d4(_0x10e195))_0x342a45[_0xebd611]=_0x10e195;return _0x342a45;})());function _0xb20a94(_0x11ab83){_0x21ee81(_0x11ab83);let _0x1b788c=_0x11ab83['length'];_0x5a8b6a(_0x11ab83);let {sbox2:_0x1069cb}=_0x31e021,_0x499474=[];(!_0x5777bd||!_0x32710f(_0x11ab83))&&_0x499474['push'](_0x11ab83=_0x10715d(_0x11ab83));let _0x38c1f4=_0x32c214(_0x58d5f9(_0x11ab83)),_0x473892=_0x38c1f4['length'],_0x34f3ac=_0x570afe=>_0xaf44e6(_0x1069cb,_0x570afe,_0x570afe,_0x570afe,_0x570afe),_0x28bd9f=new Uint32Array(_0x1b788c+0x1c);_0x28bd9f['set'](_0x38c1f4);for(let _0x508065=_0x473892;_0x508065<_0x28bd9f['length'];_0x508065++){let _0xeb0e50=_0x28bd9f[_0x508065-0x1];_0x508065%_0x473892===0x0?_0xeb0e50=_0x34f3ac(_0x408394(_0xeb0e50))^_0x49fb0e[_0x508065/_0x473892-0x1]:_0x473892>0x6&&_0x508065%_0x473892===0x4&&(_0xeb0e50=_0x34f3ac(_0xeb0e50)),_0x28bd9f[_0x508065]=_0x28bd9f[_0x508065-_0x473892]^_0xeb0e50;}return _0x3322bb(..._0x499474),_0x28bd9f;}function _0xb16692(_0xb9034f){const _0x525e0a=_0x387812;let _0x537fff=_0xb20a94(_0xb9034f),_0x400a51=_0x537fff[_0x525e0a(0x3af)](),_0x588c4d=_0x537fff['length'],{sbox2:_0x2b7820}=_0x31e021,{T0:_0x2c18de,T1:_0x5ec18b,T2:_0x3c0291,T3:_0x4e3618}=_0x376d8e;for(let _0x278528=0x0;_0x278528<_0x588c4d;_0x278528+=0x4)for(let _0x4e8b6a=0x0;_0x4e8b6a<0x4;_0x4e8b6a++)_0x400a51[_0x278528+_0x4e8b6a]=_0x537fff[_0x588c4d-_0x278528-0x4+_0x4e8b6a];_0x3322bb(_0x537fff);for(let _0x143301=0x4;_0x143301<_0x588c4d-0x4;_0x143301++){let _0x56d180=_0x400a51[_0x143301],_0x67b66b=_0xaf44e6(_0x2b7820,_0x56d180,_0x56d180,_0x56d180,_0x56d180);_0x400a51[_0x143301]=_0x2c18de[_0x67b66b&0xff]^_0x5ec18b[_0x67b66b>>>0x8&0xff]^_0x3c0291[_0x67b66b>>>0x10&0xff]^_0x4e3618[_0x67b66b>>>0x18];}return _0x400a51;}function _0x12c8de(_0x5a6a0d,_0x191254,_0x5e64ad,_0x5b474d,_0x8769b9,_0x1c82c3){return _0x5a6a0d[_0x5e64ad<<0x8&0xff00|_0x5b474d>>>0x8&0xff]^_0x191254[_0x8769b9>>>0x8&0xff00|_0x1c82c3>>>0x18&0xff];}function _0xaf44e6(_0x552ac8,_0x24c76b,_0xe24d47,_0x44cea3,_0x1edea8){return _0x552ac8[_0x24c76b&0xff|_0xe24d47&0xff00]|_0x552ac8[_0x44cea3>>>0x10&0xff|_0x1edea8>>>0x10&0xff00]<<0x10;}function _0xee21aa(_0x1fda1d,_0x1f0f4c,_0x469846,_0x45d20b,_0x490b64){let {sbox2:_0x3f22cb,T01:_0x2cb05e,T23:_0x149b56}=_0x31e021,_0x1353a4=0x0;_0x1f0f4c^=_0x1fda1d[_0x1353a4++],_0x469846^=_0x1fda1d[_0x1353a4++],_0x45d20b^=_0x1fda1d[_0x1353a4++],_0x490b64^=_0x1fda1d[_0x1353a4++];let _0x23892f=_0x1fda1d['length']/0x4-0x2;for(let _0x1ba3b8=0x0;_0x1ba3b8<_0x23892f;_0x1ba3b8++){let _0x402440=_0x1fda1d[_0x1353a4++]^_0x12c8de(_0x2cb05e,_0x149b56,_0x1f0f4c,_0x469846,_0x45d20b,_0x490b64),_0x16ccd5=_0x1fda1d[_0x1353a4++]^_0x12c8de(_0x2cb05e,_0x149b56,_0x469846,_0x45d20b,_0x490b64,_0x1f0f4c),_0x35d685=_0x1fda1d[_0x1353a4++]^_0x12c8de(_0x2cb05e,_0x149b56,_0x45d20b,_0x490b64,_0x1f0f4c,_0x469846),_0xc128de=_0x1fda1d[_0x1353a4++]^_0x12c8de(_0x2cb05e,_0x149b56,_0x490b64,_0x1f0f4c,_0x469846,_0x45d20b);_0x1f0f4c=_0x402440,_0x469846=_0x16ccd5,_0x45d20b=_0x35d685,_0x490b64=_0xc128de;}return{'s0':_0x1fda1d[_0x1353a4++]^_0xaf44e6(_0x3f22cb,_0x1f0f4c,_0x469846,_0x45d20b,_0x490b64),'s1':_0x1fda1d[_0x1353a4++]^_0xaf44e6(_0x3f22cb,_0x469846,_0x45d20b,_0x490b64,_0x1f0f4c),'s2':_0x1fda1d[_0x1353a4++]^_0xaf44e6(_0x3f22cb,_0x45d20b,_0x490b64,_0x1f0f4c,_0x469846),'s3':_0x1fda1d[_0x1353a4++]^_0xaf44e6(_0x3f22cb,_0x490b64,_0x1f0f4c,_0x469846,_0x45d20b)};}function _0x30ecbf(_0x27728f,_0xf1b25c,_0x47e2ee,_0x6e2a3e,_0x3e1ef1){const _0x2958e9=_0x387812;let {sbox2:_0x30afad,T01:_0x4659b8,T23:_0x17e9e6}=_0x376d8e,_0x4bb055=0x0;_0xf1b25c^=_0x27728f[_0x4bb055++],_0x47e2ee^=_0x27728f[_0x4bb055++],_0x6e2a3e^=_0x27728f[_0x4bb055++],_0x3e1ef1^=_0x27728f[_0x4bb055++];let _0x5acaf5=_0x27728f[_0x2958e9(0x141)]/0x4-0x2;for(let _0x57b622=0x0;_0x57b622<_0x5acaf5;_0x57b622++){let _0x23ec9c=_0x27728f[_0x4bb055++]^_0x12c8de(_0x4659b8,_0x17e9e6,_0xf1b25c,_0x3e1ef1,_0x6e2a3e,_0x47e2ee),_0x200ada=_0x27728f[_0x4bb055++]^_0x12c8de(_0x4659b8,_0x17e9e6,_0x47e2ee,_0xf1b25c,_0x3e1ef1,_0x6e2a3e),_0x2b9464=_0x27728f[_0x4bb055++]^_0x12c8de(_0x4659b8,_0x17e9e6,_0x6e2a3e,_0x47e2ee,_0xf1b25c,_0x3e1ef1),_0x4e8af5=_0x27728f[_0x4bb055++]^_0x12c8de(_0x4659b8,_0x17e9e6,_0x3e1ef1,_0x6e2a3e,_0x47e2ee,_0xf1b25c);_0xf1b25c=_0x23ec9c,_0x47e2ee=_0x200ada,_0x6e2a3e=_0x2b9464,_0x3e1ef1=_0x4e8af5;}return{'s0':_0x27728f[_0x4bb055++]^_0xaf44e6(_0x30afad,_0xf1b25c,_0x3e1ef1,_0x6e2a3e,_0x47e2ee),'s1':_0x27728f[_0x4bb055++]^_0xaf44e6(_0x30afad,_0x47e2ee,_0xf1b25c,_0x3e1ef1,_0x6e2a3e),'s2':_0x27728f[_0x4bb055++]^_0xaf44e6(_0x30afad,_0x6e2a3e,_0x47e2ee,_0xf1b25c,_0x3e1ef1),'s3':_0x27728f[_0x4bb055++]^_0xaf44e6(_0x30afad,_0x3e1ef1,_0x6e2a3e,_0x47e2ee,_0xf1b25c)};}function _0x49e61c(_0x4c6093){const _0x4fb32f=_0x387812;if(_0x21ee81(_0x4c6093),_0x4c6093['length']%0x10!=0x0)throw Error(_0x4fb32f(0xb3));}function _0x3b1059(_0x57e1a4,_0x23920e,_0x1a64d4){const _0x5a02bb=_0x387812;_0x21ee81(_0x57e1a4);let _0x4ebfd5=_0x57e1a4[_0x5a02bb(0x141)],_0x1f7f41=_0x4ebfd5%0x10;if(!_0x23920e&&_0x1f7f41!==0x0)throw Error('aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding');if(_0x23920e){let _0x3a7651=0x10-_0x1f7f41;_0x3a7651||=0x10,_0x4ebfd5+=_0x3a7651;}_0x1a64d4=_0x345aad(_0x4ebfd5,_0x1a64d4),_0xe733e1(_0x57e1a4,_0x1a64d4),(!_0x5777bd||!_0x32710f(_0x57e1a4))&&(_0x57e1a4=_0x10715d(_0x57e1a4));let _0x583a22=_0x58d5f9(_0x57e1a4);return _0x32c214(_0x583a22),{'b':_0x583a22,'o':_0x58d5f9(_0x1a64d4),'out':_0x1a64d4};}function _0x356157(_0x3d8b67,_0x477b97){const _0x3c2a8f=_0x387812;if(!_0x477b97)return _0x3d8b67;let _0x4eda2a=_0x3d8b67[_0x3c2a8f(0x141)];if(_0x4eda2a===0x0)throw Error(_0x3c2a8f(0x1a5));let _0x335691=_0x3d8b67[_0x4eda2a-0x1],_0x3ebddf=0x1;_0x3ebddf&=_0x335691-0x1>>>0x1f^0x1,_0x3ebddf&=0x10-_0x335691>>>0x1f^0x1;for(let _0xd5b1a0=0x0;_0xd5b1a0<0x10;_0xd5b1a0++){let _0x1efae8=_0xd5b1a0-_0x335691>>>0x1f,_0x16720e=+((_0x3d8b67[_0x4eda2a-0x1-_0xd5b1a0]^_0x335691)===0x0);_0x3ebddf&=_0x16720e|_0x1efae8^0x1;}if(!_0x3ebddf)throw Error(_0x3c2a8f(0x3d0));return _0x3d8b67[_0x3c2a8f(0x25a)](0x0,_0x4eda2a-_0x335691);}function _0x3b26c1(_0x1afb5b){const _0x37f834=_0x387812;let _0x9eeb4b=new Uint8Array(0x10),_0x21d55a=_0x58d5f9(_0x9eeb4b);_0x9eeb4b[_0x37f834(0x15c)](_0x1afb5b);let _0x6686c3=0x10-_0x1afb5b[_0x37f834(0x141)];for(let _0x2a923d=0x10-_0x6686c3;_0x2a923d<0x10;_0x2a923d++)_0x9eeb4b[_0x2a923d]=_0x6686c3;return _0x21d55a;}let _0xdd7d22=_0x2a7d01({'blockSize':0x10,'nonceLength':0x10},function(_0x95b3c1,_0x6b05e0,_0x496c4c={}){const _0x3df70d=_0x387812;let _0x228661=!_0x496c4c[_0x3df70d(0xfa)];return{'encrypt'(_0x408779,_0x26e36a){const _0x2e8937=_0x3df70d;let _0x5eeb22=_0xb20a94(_0x95b3c1),{b:_0xadcc7b,o:_0x12cc58,out:_0xab31bd}=_0x3b1059(_0x408779,_0x228661,_0x26e36a),_0x329e90=_0x6b05e0,_0x29774a=[_0x5eeb22];(!_0x5777bd||!_0x32710f(_0x329e90))&&_0x29774a[_0x2e8937(0x223)](_0x329e90=_0x10715d(_0x329e90));let _0xe7cc05=_0x58d5f9(_0x329e90);_0x32c214(_0xe7cc05);let _0x5dee37=_0xe7cc05[0x0],_0x1f9090=_0xe7cc05[0x1],_0x244c6a=_0xe7cc05[0x2],_0x1de908=_0xe7cc05[0x3],_0x11e42f=0x0;for(;_0x11e42f+0x4<=_0xadcc7b[_0x2e8937(0x141)];)_0x5dee37^=_0xadcc7b[_0x11e42f+0x0],_0x1f9090^=_0xadcc7b[_0x11e42f+0x1],_0x244c6a^=_0xadcc7b[_0x11e42f+0x2],_0x1de908^=_0xadcc7b[_0x11e42f+0x3],{s0:_0x5dee37,s1:_0x1f9090,s2:_0x244c6a,s3:_0x1de908}=_0xee21aa(_0x5eeb22,_0x5dee37,_0x1f9090,_0x244c6a,_0x1de908),_0x12cc58[_0x11e42f++]=_0x5dee37,_0x12cc58[_0x11e42f++]=_0x1f9090,_0x12cc58[_0x11e42f++]=_0x244c6a,_0x12cc58[_0x11e42f++]=_0x1de908;if(_0x228661){let _0x5f01d5=_0x3b26c1(_0x408779[_0x2e8937(0x25a)](_0x11e42f*0x4));_0x32c214(_0x5f01d5),_0x5dee37^=_0x5f01d5[0x0],_0x1f9090^=_0x5f01d5[0x1],_0x244c6a^=_0x5f01d5[0x2],_0x1de908^=_0x5f01d5[0x3],{s0:_0x5dee37,s1:_0x1f9090,s2:_0x244c6a,s3:_0x1de908}=_0xee21aa(_0x5eeb22,_0x5dee37,_0x1f9090,_0x244c6a,_0x1de908),_0x12cc58[_0x11e42f++]=_0x5dee37,_0x12cc58[_0x11e42f++]=_0x1f9090,_0x12cc58[_0x11e42f++]=_0x244c6a,_0x12cc58[_0x11e42f++]=_0x1de908;}return _0x32c214(_0x12cc58),_0x3322bb(..._0x29774a),_0xab31bd;},'decrypt'(_0xdeffda,_0x4864cf){const _0x1e3c0e=_0x3df70d;_0x49e61c(_0xdeffda);let _0x14bbd7=_0xb16692(_0x95b3c1),_0x1969ab=_0x6b05e0,_0x204b27=[_0x14bbd7];(!_0x5777bd||!_0x32710f(_0x1969ab))&&_0x204b27[_0x1e3c0e(0x223)](_0x1969ab=_0x10715d(_0x1969ab));let _0x29da9e=_0x58d5f9(_0x1969ab);_0x32c214(_0x29da9e),_0x4864cf=_0x345aad(_0xdeffda[_0x1e3c0e(0x141)],_0x4864cf),_0xe733e1(_0xdeffda,_0x4864cf),(!_0x5777bd||!_0x32710f(_0xdeffda))&&_0x204b27[_0x1e3c0e(0x223)](_0xdeffda=_0x10715d(_0xdeffda));let _0x4a5cce=_0x58d5f9(_0xdeffda),_0x57bfcf=_0x58d5f9(_0x4864cf);_0x32c214(_0x4a5cce);let _0xd5499b=_0x29da9e[0x0],_0x143bd1=_0x29da9e[0x1],_0x4c29f4=_0x29da9e[0x2],_0x24673e=_0x29da9e[0x3];for(let _0x954722=0x0;_0x954722+0x4<=_0x4a5cce[_0x1e3c0e(0x141)];){let _0x3ba304=_0xd5499b,_0x3177eb=_0x143bd1,_0x3fcb2f=_0x4c29f4,_0x44b539=_0x24673e;_0xd5499b=_0x4a5cce[_0x954722+0x0],_0x143bd1=_0x4a5cce[_0x954722+0x1],_0x4c29f4=_0x4a5cce[_0x954722+0x2],_0x24673e=_0x4a5cce[_0x954722+0x3];let {s0:_0x18153b,s1:_0x1a7a61,s2:_0x41334b,s3:_0x23610f}=_0x30ecbf(_0x14bbd7,_0xd5499b,_0x143bd1,_0x4c29f4,_0x24673e);_0x57bfcf[_0x954722++]=_0x18153b^_0x3ba304,_0x57bfcf[_0x954722++]=_0x1a7a61^_0x3177eb,_0x57bfcf[_0x954722++]=_0x41334b^_0x3fcb2f,_0x57bfcf[_0x954722++]=_0x23610f^_0x44b539;}return _0x32c214(_0x57bfcf),_0x3322bb(..._0x204b27),_0x356157(_0x4864cf,_0x228661);}};});function _0x557031(_0x44755e){const _0x102f3a=_0x387812;let _0x44f6dc=atob(_0x44755e),_0x240c04=new Uint8Array(_0x44f6dc[_0x102f3a(0x141)]);for(let _0x3a160b=0x0;_0x3a160b<_0x44f6dc[_0x102f3a(0x141)];_0x3a160b++)_0x240c04[_0x3a160b]=_0x44f6dc[_0x102f3a(0x213)](_0x3a160b);return _0x240c04;}function _0x3e942a(_0x16356f){const _0x348ec2=_0x387812;let _0xe6523c='';for(let _0x1d8542=0x0;_0x1d8542<_0x16356f[_0x348ec2(0x141)];_0x1d8542++)_0xe6523c+=String[_0x348ec2(0x1c2)](_0x16356f[_0x1d8542]);return btoa(_0xe6523c);}function _0x15e45a(_0x39b581,_0x4d6386){let _0x386859=_0x557031(_0x4d6386),_0x1f437b=_0x317914(0x10);return _0x3e942a(_0x139a1d(_0x1f437b,_0xdd7d22(_0x386859,_0x1f437b)['encrypt'](_0x4026a5(_0x39b581))));}function _0x377bed(){const _0xad148=_0x387812;let _0x39eba5=(0x0,_0x575549[_0xad148(0x135)])()[_0xad148(0x219)];if(typeof window<'u'&&window[_0xad148(0x25c)]!==void 0x0&&_0x39eba5){let _0x2b47fc={'time':Math[_0xad148(0x1c1)](Date[_0xad148(0x3d7)]()/0x3e8),'domain':location[_0xad148(0x11d)]};return _0x15e45a(JSON[_0xad148(0x1e5)](_0x2b47fc),_0x39eba5);}}let _0x4e018c=class{constructor(_0x1767fc){const _0x4a9986=_0x387812;this[_0x4a9986(0x20d)]=_0x1767fc,this[_0x4a9986(0x388)]();}['_initRequestHeader'](){const _0x517319=_0x387812;this['_httpService'][_0x517319(0x216)]({'interceptor':(_0x250717,_0x114cfb)=>{const _0xcd6d6e=_0x517319;let _0x49a5b7=_0x377bed();return _0x49a5b7&&_0x250717['headers'][_0xcd6d6e(0x15c)]('x-univer-host',_0x49a5b7),_0x114cfb(_0x250717);}});}};_0x4e018c=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x2e88c0[_0x387812(0x264)]))],_0x4e018c);let _0x5a12bf=class extends _0x3ea0ad['RxDisposable']{constructor(_0x2d6c3b,_0x476625,_0xa76d4d){const _0x8e6051=_0x387812;super(),this['_logService']=_0x2d6c3b,this['_snapshotService']=_0x476625,this[_0x8e6051(0x3fe)]=_0xa76d4d,_0x309f50(this,_0x8e6051(0x22a),new _0x3a9bce[(_0x8e6051(0x24a))](null)),_0x309f50(this,'_unitLoaded$',new _0x3a9bce['Subject']()),_0x309f50(this,_0x8e6051(0x3c2),this[_0x8e6051(0x22a)][_0x8e6051(0x1fe)]()),_0x309f50(this,_0x8e6051(0x2a7),this[_0x8e6051(0x3d6)][_0x8e6051(0x1fe)]());}[_0x387812(0x102)](){const _0x211f40=_0x387812;super[_0x211f40(0x102)](),this['_unitLoaded$'][_0x211f40(0xca)](),this[_0x211f40(0x22a)][_0x211f40(0xca)]();}async[_0x387812(0x202)](_0x98acc9,_0x23e94a,_0x3d9081,_0x916299){const _0x5655ea=_0x387812;this[_0x5655ea(0x22a)][_0x5655ea(0x316)]({'unitId':_0x98acc9,'type':_0x23e94a,'subUnitId':_0x916299});let _0x1f1bae=null;switch(_0x23e94a){case _0x3ea0ad[_0x5655ea(0x20e)][_0x5655ea(0x31e)]:_0x1f1bae=await this[_0x5655ea(0x366)][_0x5655ea(0x3ef)](_0x98acc9,_0x3d9081,void 0x0,{'initialSubUnitId':_0x916299});break;case _0x3ea0ad['UniverInstanceType'][_0x5655ea(0x2e8)]:_0x1f1bae=await this[_0x5655ea(0x366)]['loadDoc'](_0x98acc9,_0x3d9081);break;case _0x3ea0ad[_0x5655ea(0x20e)][_0x5655ea(0x105)]:_0x1f1bae=await this[_0x5655ea(0x366)]['loadSlide'](_0x98acc9,_0x3d9081);break;case _0x3ea0ad[_0x5655ea(0x20e)]['UNIVER_BOARD']:_0x1f1bae=await this[_0x5655ea(0x366)][_0x5655ea(0x1f1)](_0x98acc9,_0x3d9081);break;case _0x3ea0ad[_0x5655ea(0x20e)]['UNIVER_BASE']:_0x1f1bae=await this[_0x5655ea(0x366)][_0x5655ea(0x1a0)](_0x98acc9,_0x3d9081);break;case _0x3ea0ad['UniverInstanceType']['UNIVER_PDF']:_0x1f1bae=await this[_0x5655ea(0x366)][_0x5655ea(0x317)](_0x98acc9,_0x3d9081);break;default:this[_0x5655ea(0x1fc)]['error'](_0x5655ea(0x225),_0x5655ea(0x123));break;}return _0x1f1bae&&this['_unitLoaded$'][_0x5655ea(0x316)](_0x1f1bae),_0x1f1bae;}async[_0x387812(0x113)](_0x3d5032,_0x2ed4e3,_0x6f991b){const _0x4af982=_0x387812;var _0xca5f51;this['_unitInfo$'][_0x4af982(0x316)]({'unitId':_0x3d5032,'type':_0x2ed4e3,'subUnitId':_0x6f991b});let _0x19a692=0x0,_0x3e46c0=await((_0xca5f51=this[_0x4af982(0x3fe)])==null?void 0x0:_0xca5f51[_0x4af982(0x3b5)](_0x3d5032));return _0x3e46c0&&(_0x3e46c0[_0x4af982(0x146)]||_0x3e46c0[_0x4af982(0x3bd)][_0x4af982(0x141)]!==0x0)&&(_0x19a692=_0x3e46c0['rev']),_0x19a692===0x0&&this[_0x4af982(0x1fc)][_0x4af982(0x2f0)]('[DataLoaderService]',_0x4af982(0x132)),this[_0x4af982(0x202)](_0x3d5032,_0x2ed4e3,_0x19a692,_0x6f991b);}};_0x5a12bf=_0x48064b([_0x29ab6d(0x0,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0x1,(0x0,_0x3ea0ad['Inject'])(_0x5d8fae[_0x387812(0xbd)])),_0x29ab6d(0x2,(0x0,_0x3ea0ad[_0x387812(0x206)])(_0x4e9987))],_0x5a12bf);let _0x52b72b=class{constructor(_0x57bc8e,_0x4493f9,_0x314f2a){const _0x3c8899=_0x387812;this[_0x3c8899(0x20d)]=_0x57bc8e,this['_configService']=_0x4493f9,this[_0x3c8899(0xc8)]=_0x314f2a,_0x309f50(this,_0x3c8899(0x231),0x0),_0x309f50(this,_0x3c8899(0x2d0),new _0x3a9bce['Subject']()),_0x309f50(this,_0x3c8899(0x214),this['_change$']),_0x309f50(this,_0x3c8899(0x26a),new Map());}['setWaitCount'](_0x23eba2){const _0x17a0e5=_0x387812;this[_0x17a0e5(0x231)]=_0x23eba2,this[_0x17a0e5(0x2d0)][_0x17a0e5(0x316)](_0x23eba2);}[_0x387812(0x1a1)](_0x4a1d95,_0xfff3f){const _0x32b50d=_0x387812;if(_0xfff3f===_0x3ea0ad[_0x32b50d(0x39b)][_0x32b50d(0xea)]){let _0x1b3339=new Image();return _0x1b3339[_0x32b50d(0x3d8)]=_0x4a1d95,_0x1b3339;}return this[_0x32b50d(0x26a)][_0x32b50d(0x32a)](_0x4a1d95);}['addImageSourceCache'](_0x13238c,_0x22829d,_0x5b3b1d){const _0x4398fe=_0x387812;_0x22829d!==_0x3ea0ad[_0x4398fe(0x39b)][_0x4398fe(0xea)]&&_0x5b3b1d!=null&&this[_0x4398fe(0x26a)][_0x4398fe(0x15c)](_0x13238c,_0x5b3b1d);}async[_0x387812(0xed)](_0x2b0b27){const _0x548512=_0x387812;try{let _0x3e36e5=this['_replaceFileID'](this[_0x548512(0x14e)](),''+_0x2b0b27),_0x2399ab=(await this[_0x548512(0x20d)][_0x548512(0x32a)](_0x3e36e5))['body'];if(_0x2399ab['error']&&_0x2399ab[_0x548512(0xcf)]['code']===_0x2a4603['ErrorCode']['OK']){let _0x46e4f0=(0x0,_0x3ea0ad[_0x548512(0x3ba)])(_0x2399ab[_0x548512(0x29b)],this['_getDownloadEndpointURL']());return Promise[_0x548512(0x117)](_0x46e4f0);}return Promise['reject'](_0x2399ab[_0x548512(0xcf)]);}catch(_0x488f67){return Promise[_0x548512(0x173)](_0x488f67);}}async['saveImage'](_0x5c290c){const _0x1ec01b=_0x387812;let _0x24fa73='';if(!_0x43a3a3[_0x1ec01b(0x274)][_0x1ec01b(0x34d)](_0x5c290c[_0x1ec01b(0x131)]))return this['_decreaseWaiting'](),Promise[_0x1ec01b(0x173)](Error(_0x3ea0ad[_0x1ec01b(0x35f)]['ERROR_IMAGE_TYPE']));if(_0x5c290c[_0x1ec01b(0x171)]>(0x0,_0x43a3a3[_0x1ec01b(0x3fa)])())return this['_decreaseWaiting'](),Promise['reject'](Error(_0x3ea0ad['ImageUploadStatusType'][_0x1ec01b(0x1a9)]));try{let _0x549f73=new FormData();_0x549f73[_0x1ec01b(0x330)](_0x1ec01b(0x174),_0x5c290c);let _0x3ac553=this[_0x1ec01b(0xc8)][_0x1ec01b(0x12c)](),_0x1b7acc=_0x3ac553==null?void 0x0:_0x3ac553[_0x1ec01b(0x1c4)]();if(!_0x1b7acc)throw Error(_0x1ec01b(0x3be));let _0x4a70b8=this[_0x1ec01b(0x1f7)]()+'?size='+_0x5c290c['size'][_0x1ec01b(0x242)]()+_0x1ec01b(0x3df)+_0x2a4603['FileSource']['UnitEmbedded']+_0x1ec01b(0x167)+encodeURIComponent(_0x1b7acc),_0x16b930={'body':_0x549f73},_0x4795f4=(await this['_httpService'][_0x1ec01b(0x233)](_0x4a70b8,_0x16b930))['body'];if(typeof _0x4795f4['FileId']!=_0x1ec01b(0x17f))return this[_0x1ec01b(0x199)](),Promise[_0x1ec01b(0x173)](Error(_0x3ea0ad[_0x1ec01b(0x35f)][_0x1ec01b(0xc3)]));_0x24fa73=_0x4795f4[_0x1ec01b(0x28e)];}catch{return this[_0x1ec01b(0x199)](),Promise['reject'](Error(_0x3ea0ad[_0x1ec01b(0x35f)]['ERROR_IMAGE']));}return new Promise((_0x410606,_0x2e4db7)=>{const _0xf3df0a=_0x1ec01b;let _0x4032e6=new FileReader();_0x4032e6[_0xf3df0a(0x169)](_0x5c290c),_0x4032e6[_0xf3df0a(0x238)]=_0x351e98=>{const _0x2de6dc=_0xf3df0a;var _0x19fe24;let _0x4e463f=(_0x19fe24=_0x351e98[_0x2de6dc(0x3d4)])==null?void 0x0:_0x19fe24[_0x2de6dc(0xff)];if(_0x4e463f==null){this[_0x2de6dc(0x199)](),_0x2e4db7(Error(_0x3ea0ad[_0x2de6dc(0x35f)]['ERROR_IMAGE']));return;}_0x410606({'imageId':(0x0,_0x3ea0ad['generateRandomId'])(0x6),'imageSourceType':_0x3ea0ad[_0x2de6dc(0x39b)]['UUID'],'source':_0x24fa73,'base64Cache':_0x4e463f,'status':_0x3ea0ad[_0x2de6dc(0x35f)][_0x2de6dc(0x1e8)]}),this[_0x2de6dc(0x199)]();};});}[_0x387812(0x1f7)](){const _0x3db902=_0x387812;let _0x24b716=this['_configService'][_0x3db902(0x346)](_0xeb659);return(_0x24b716==null?void 0x0:_0x24b716[_0x3db902(0x185)])??'/universer-api/stream/file/upload';}[_0x387812(0x14e)](){const _0x47f6d2=_0x387812;let _0x2fbb26=this[_0x47f6d2(0x327)][_0x47f6d2(0x346)](_0xeb659);return(_0x2fbb26==null?void 0x0:_0x2fbb26[_0x47f6d2(0x289)])??'/universer-api/file/{fileID}/sign-url';}[_0x387812(0x358)](){const _0x1dae19=_0x387812;let _0x3d4915=this[_0x1dae19(0x327)][_0x1dae19(0x346)](_0xeb659);return(_0x3d4915==null?void 0x0:_0x3d4915[_0x1dae19(0x39e)])??location[_0x1dae19(0x373)];}[_0x387812(0x28f)](_0x2530dd,_0x5cb87c){const _0x1035cb=_0x387812;return _0x2530dd['replace'](_0x1035cb(0x391),_0x5cb87c);}[_0x387812(0x199)](){const _0x1bc971=_0x387812;--this['_waitCount'],this[_0x1bc971(0x2d0)]['next'](this[_0x1bc971(0x231)]);}};_0x52b72b=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x2e88c0[_0x387812(0x264)])),_0x29ab6d(0x1,_0x3ea0ad[_0x387812(0x2b5)]),_0x29ab6d(0x2,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad['IUniverInstanceService']))],_0x52b72b);let _0x2961f8=class{constructor(_0x59610a,_0x29d45e){const _0x1c9d3a=_0x387812;this[_0x1c9d3a(0x327)]=_0x59610a,this[_0x1c9d3a(0xb1)]=_0x29d45e;}['_getAPIPrefixPath'](){let _0x1b17b6=this['_configService']['getConfig'](_0xeb659);return(_0x1b17b6==null?void 0x0:_0x1b17b6['authzUrl'])??'/universer-api/authz';}async[_0x387812(0x188)](_0x365c0d){const _0x5ea777=_0x387812;let _0x558a9d=this[_0x5ea777(0x3ad)]()+_0x5ea777(0x33b);return{'list':[{'title':_0x5ea777(0x21e),'mentions':(await this['_HTTPService'][_0x5ea777(0x32a)](_0x558a9d,{'params':{'objectID':_0x365c0d[_0x5ea777(0x397)],'unitID':_0x365c0d[_0x5ea777(0x397)]}}))[_0x5ea777(0x2a8)][_0x5ea777(0x193)][_0x5ea777(0x1a7)](_0x442b59=>({'objectId':_0x442b59['id'],'name':_0x442b59['subject'][_0x5ea777(0xe8)],'metadata':{'icon':_0x442b59['subject']['avatar']},'label':_0x442b59['subject'][_0x5ea777(0xe8)],'objectType':_0x3ea0ad['MentionType'][_0x5ea777(0x294)]})),'metadata':{},'type':_0x3ea0ad[_0x5ea777(0x343)]['PERSON']}]};}};_0x2961f8=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x2b5)])),_0x29ab6d(0x1,(0x0,_0x3ea0ad['Inject'])(_0x2e88c0[_0x387812(0x264)]))],_0x2961f8);let _0x2d0a67=class extends _0x3ea0ad['RxDisposable']{constructor(_0x2c7c54,_0x235a6d,_0xb42504,_0x17435e,_0x5a9a4c){const _0xd3c7ac=_0x387812;super(),this['_injector']=_0x2c7c54,this[_0xd3c7ac(0xc8)]=_0x235a6d,this[_0xd3c7ac(0x14b)]=_0xb42504,this[_0xd3c7ac(0x3e8)]=_0x17435e,this['_collaborationUIEventService']=_0x5a9a4c,this['_initUnitPermissionChange'](),this[_0xd3c7ac(0x351)]();}[_0x387812(0x351)](){const _0x3db445=_0x387812;let _0xa1df90=async _0x36dc06=>{const _0x2a4775=_0x1600;(await this[_0x2a4775(0x3e8)]['requireSession'](_0x36dc06))[_0x2a4775(0x36d)][_0x2a4775(0x298)]((0x0,_0x6cc357['filter'])(_0x2d3ad2=>_0x2d3ad2[_0x2a4775(0x217)]===_0x5d8fae['CollaborationEvent'][_0x2a4775(0x107)]),(0x0,_0x6cc357['takeUntil'])(this[_0x2a4775(0x235)]))['subscribe'](_0x253b7b=>{const _0x1187da=_0x2a4775;let {reason:_0x4b5919}=_0x253b7b['data'];this[_0x1187da(0x378)][_0x1187da(0x11a)]({'id':_0x1187da(0x227),'data':_0x4b5919}),this['_permissionService'][_0x1187da(0xcc)](new _0x1dfeb2[(_0x1187da(0x276))](_0x36dc06)['id'],!0x1),this[_0x1187da(0x3e8)]['closeSession'](_0x36dc06);});};(0x0,_0x3a9bce[_0x3db445(0x365)])(this[_0x3db445(0xc8)]['getTypeOfUnitAdded$'](_0x3ea0ad[_0x3db445(0x20e)]['UNIVER_SHEET']),this[_0x3db445(0xc8)]['getTypeOfUnitAdded$'](_0x3ea0ad[_0x3db445(0x20e)][_0x3db445(0x2e8)]),this[_0x3db445(0xc8)][_0x3db445(0x266)](_0x3ea0ad['UniverInstanceType'][_0x3db445(0x237)]),this[_0x3db445(0xc8)][_0x3db445(0x266)](_0x3ea0ad['UniverInstanceType'][_0x3db445(0x382)]))[_0x3db445(0x298)]((0x0,_0x6cc357[_0x3db445(0x1a7)])(_0x5a0d6f=>_0x5a0d6f[_0x3db445(0xaf)][_0x3db445(0x1c4)]()),(0x0,_0x6cc357[_0x3db445(0x2d7)])(_0x985f1b=>!(0x0,_0x3ea0ad[_0x3db445(0x1f3)])(_0x985f1b)),(0x0,_0x6cc357[_0x3db445(0x1a8)])(this[_0x3db445(0x235)]))[_0x3db445(0x1a6)](_0x57ec3f=>{_0xa1df90(_0x57ec3f);});}[_0x387812(0x10c)](){const _0x4402eb=_0x387812;let _0x3e96d1=async _0x43f948=>{const _0x3c30a7=_0x1600;let _0x3a1841=await this['_collaborationSessionService'][_0x3c30a7(0x1f8)](_0x43f948),_0x196836=this[_0x3c30a7(0x26d)][_0x3c30a7(0x32a)](_0x1dfeb2[_0x3c30a7(0x256)]);_0x3a1841[_0x3c30a7(0x36d)][_0x3c30a7(0x298)]((0x0,_0x6cc357[_0x3c30a7(0x2d7)])(_0x26a739=>_0x26a739[_0x3c30a7(0x217)]===_0x5d8fae['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),(0x0,_0x6cc357[_0x3c30a7(0x1a8)])(this[_0x3c30a7(0x235)]))[_0x3c30a7(0x1a6)](_0xf1a36f=>{const _0x172348=_0x3c30a7;let {objectId:_0x11189}=_0xf1a36f[_0x172348(0x31b)];_0x11189===_0x43f948?_0x196836['initWorkbookPermissionChange'](_0x43f948):_0x196836['refreshPermission'](_0x43f948,_0x11189);});};(0x0,_0x3a9bce['merge'])(this['_univerInstanceService'][_0x4402eb(0x266)](_0x3ea0ad[_0x4402eb(0x20e)]['UNIVER_SHEET']))[_0x4402eb(0x298)]((0x0,_0x6cc357[_0x4402eb(0x1a7)])(_0x4c5bee=>_0x4c5bee[_0x4402eb(0xaf)][_0x4402eb(0x1c4)]()),(0x0,_0x6cc357[_0x4402eb(0x2d7)])(_0x10de97=>!(0x0,_0x3ea0ad[_0x4402eb(0x1f3)])(_0x10de97)),(0x0,_0x6cc357[_0x4402eb(0x1a8)])(this['dispose$']))[_0x4402eb(0x1a6)](_0x2a25b7=>{_0x3e96d1(_0x2a25b7);});}};_0x2d0a67=_0x48064b([_0x29ab6d(0x0,(0x0,_0x3ea0ad['Inject'])(_0x3ea0ad['Injector'])),_0x29ab6d(0x1,_0x3ea0ad['IUniverInstanceService']),_0x29ab6d(0x2,_0x3ea0ad['IPermissionService']),_0x29ab6d(0x3,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x16256e)),_0x29ab6d(0x4,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x359cbb))],_0x2d0a67);let _0x5b7913=class{constructor(_0x3e1f29,_0xddb436){const _0x3de187=_0x387812;this[_0x3de187(0x327)]=_0x3e1f29,this[_0x3de187(0x20d)]=_0xddb436;}async[_0x387812(0x318)](_0x36a1a8,_0x117cc1){const _0x2aa101=_0x387812;var _0x492144;let {unitID:_0x4e5c21,type:_0x2ba1f5,revision:_0x5c3eb6=0x0}=_0x117cc1,_0x2ca6ae=this[_0x2aa101(0x2ef)]()+'/'+_0x2ba1f5+_0x2aa101(0x1f2)+_0x4e5c21+_0x2aa101(0x361)+_0x5c3eb6,_0x4a9de2=(await this['_httpService'][_0x2aa101(0x32a)](_0x2ca6ae))[_0x2aa101(0x2a8)],_0x40d932=(_0x492144=_0x4a9de2[_0x2aa101(0x2ec)])==null?void 0x0:_0x492144[_0x2aa101(0x270)];if(_0x40d932){let _0xbb8aaf=_0x40d932==null?void 0x0:_0x40d932['originalMeta'];_0x40d932[_0x2aa101(0x2c5)]=_0x5d8fae[_0x2aa101(0x16a)]['encode']((0x0,_0x5d8fae[_0x2aa101(0x1df)])(_0xbb8aaf)),Object[_0x2aa101(0x253)](_0x40d932[_0x2aa101(0x27a)])[_0x2aa101(0x3e5)](([,_0x2fcde7])=>{const _0x25e92d=_0x2aa101;let _0x3d26be=_0x2fcde7[_0x25e92d(0x2c5)];_0x2fcde7[_0x25e92d(0x2c5)]=_0x5d8fae[_0x25e92d(0x16a)]['encode']((0x0,_0x5d8fae[_0x25e92d(0x1df)])(_0x3d26be));});}return _0x4a9de2;}async[_0x387812(0x38e)](_0x524769,_0x52c643){const _0x4c5360=_0x387812;let {unitID:_0x4f38aa,type:_0x4884f6,blockID:_0x194615}=_0x52c643,_0x45ccd8=this['_getAPIPrefix']()+'/'+_0x4884f6+_0x4c5360(0x1f2)+_0x4f38aa+'/block/'+_0x194615;return(await this['_httpService'][_0x4c5360(0x32a)](_0x45ccd8))[_0x4c5360(0x2a8)];}async[_0x387812(0x2f4)](_0x22c6e4,_0x516866){const _0x28c73c=_0x387812;let {unitID:_0x5489a6,type:_0x1fe868,blockID:_0x543d38}=_0x516866,_0x33e0bf=this['_getAPIPrefix']()+'/block/'+_0x1fe868+'/unit/'+_0x5489a6+'/block/'+_0x543d38;return(await this['_httpService'][_0x28c73c(0x32a)](_0x33e0bf))[_0x28c73c(0x2a8)];}async['fetchMissingChangesets'](_0x2f0d49,_0x261b8a){const _0x1273d4=_0x387812;let {unitID:_0x4ed490,type:_0x3a0dec,from:_0x508bb1,to:_0x3db04f}=_0x261b8a,_0x3b8bac=this['_getAPIPrefix']()+'/'+_0x3a0dec+_0x1273d4(0x1f2)+_0x4ed490+_0x1273d4(0xbb)+_0x508bb1+_0x1273d4(0x2ad)+_0x3db04f;return(await this['_httpService']['get'](_0x3b8bac))[_0x1273d4(0x2a8)];}['getSnapshotAPIPath'](){const _0x1713b6=_0x387812;return this[_0x1713b6(0x327)]['getConfig'](_0x1713b6(0x328))??this[_0x1713b6(0x3a9)]();}[_0x387812(0x3a9)](){const _0x5754c4=_0x387812;let _0x14a67f=this[_0x5754c4(0x327)][_0x5754c4(0x346)](_0xeb659);return(_0x14a67f==null?void 0x0:_0x14a67f['snapshotServerUrl'])??_0x5754c4(0x1b1);}async[_0x387812(0xf8)](_0x553215,_0x17148b){const _0x8aaa88=_0x387812;let _0x54be1d=_0x8aaa88(0x2a1)+_0x17148b['type']+'/unit/'+_0x17148b[_0x8aaa88(0x2be)]+'/resources';return(await this[_0x8aaa88(0x20d)][_0x8aaa88(0x32a)](_0x54be1d,{'params':{'resourceId':JSON['stringify'](_0x17148b[_0x8aaa88(0x3e4)])}}))[_0x8aaa88(0x2a8)];}[_0x387812(0x26c)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x387812(0x393)](){const _0x12c656=_0x387812;throw Error(_0x12c656(0x2d6));}[_0x387812(0x2e7)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x387812(0x1bd)](){const _0x49578b=_0x387812;throw Error(_0x49578b(0x2d6));}[_0x387812(0x163)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x387812(0xf5)](){const _0x4bf329=_0x387812;throw Error(_0x4bf329(0x2d6));}};_0x5b7913=_0x48064b([_0x29ab6d(0x0,_0x3ea0ad['IConfigService']),_0x29ab6d(0x1,(0x0,_0x3ea0ad['Inject'])(_0x2e88c0[_0x387812(0x264)]))],_0x5b7913);let _0x495660=class extends _0x3ea0ad[_0x387812(0x2c7)]{constructor(_0x15ed14,_0x1944a6,_0x3cc085,_0x9b8d6d,_0x4ca535){const _0x4ec9a5=_0x387812;super(_0x15ed14,_0x1944a6,_0x3cc085),this[_0x4ec9a5(0xb8)]=_0x9b8d6d,this[_0x4ec9a5(0x1fc)]=_0x4ca535;}['transformUndoRedo'](_0x2874ea,_0x269850){const _0x19e90c=_0x387812;let _0x1e3e99=this[_0x19e90c(0x32b)](_0x2874ea);if(_0x1e3e99)try{let _0x326c35=this['_transformStack'](_0x1e3e99,_0x269850);this[_0x19e90c(0xdc)](_0x2874ea,_0x326c35);}catch(_0x153615){this['_logService'][_0x19e90c(0xcf)](_0x19e90c(0x215),_0x153615),this[_0x19e90c(0xd1)](_0x2874ea);}let _0xccdba4=this[_0x19e90c(0x3a5)](_0x2874ea);if(_0xccdba4)try{let _0x181e8e=this[_0x19e90c(0x16f)](_0xccdba4,_0x269850);this['_substituteRedoStack'](_0x2874ea,_0x181e8e);}catch(_0x2fbf90){this['_logService'][_0x19e90c(0xcf)](_0x2fbf90),this[_0x19e90c(0x30d)](_0x2874ea);}}[_0x387812(0xd1)](_0x1f2f62){const _0x3a0d79=_0x387812;let _0x253881=this[_0x3a0d79(0x32b)](_0x1f2f62);_0x253881&&(_0x253881['length']=0x0,this[_0x3a0d79(0x1e4)]());}[_0x387812(0x30d)](_0x42ecd7){const _0xe1e541=_0x387812;let _0x4f929f=this[_0xe1e541(0x3a5)](_0x42ecd7);_0x4f929f&&(_0x4f929f[_0xe1e541(0x141)]=0x0,this[_0xe1e541(0x1e4)]());}[_0x387812(0xdc)](_0x4a7fe3,_0x3e91de){const _0x298237=_0x387812;this[_0x298237(0x24c)][_0x298237(0x15c)](_0x4a7fe3,_0x3e91de),this['_updateStatus']();}[_0x387812(0xfd)](_0x377643,_0x548a28){const _0x4d5225=_0x387812;this[_0x4d5225(0x106)][_0x4d5225(0x15c)](_0x377643,_0x548a28),this[_0x4d5225(0x1e4)]();}[_0x387812(0x16f)](_0x10dc21,_0xe4625b){const _0x5ef57e=_0x387812;let _0x32b179=[],_0x286e5f=_0xe4625b,_0x2a8723=_0xe4625b;for(let _0x56fa09=_0x10dc21[_0x5ef57e(0x141)]-0x1;_0x56fa09>=0x0;_0x56fa09--){let {unitID:_0x4f23b3,undoMutations:_0x4c667b,redoMutations:_0xd58930}=_0x10dc21[_0x56fa09],_0x1d5507=this['_transformService'][_0x5ef57e(0xa9)](_0x286e5f,_0x4c667b),_0x367a5c=this[_0x5ef57e(0xb8)][_0x5ef57e(0xa9)](_0x2a8723,_0xd58930);if((0x0,_0x5d8fae[_0x5ef57e(0x10d)])(_0x1d5507)||(0x0,_0x5d8fae[_0x5ef57e(0x10d)])(_0x367a5c)){this[_0x5ef57e(0x1fc)][_0x5ef57e(0xcf)](_0x5ef57e(0x215),_0x5ef57e(0x2df),_0x1d5507,_0x367a5c);break;}_0x286e5f=_0x1d5507['c1Prime'],_0x2a8723=_0x367a5c['c1Prime'],_0x32b179[_0x5ef57e(0x223)]({'unitID':_0x4f23b3,'undoMutations':_0x1d5507[_0x5ef57e(0x22c)],'redoMutations':_0x367a5c[_0x5ef57e(0x22c)]});}return _0x32b179[_0x5ef57e(0x36a)]();}};_0x495660=_0x48064b([_0x29ab6d(0x0,_0x3ea0ad['IUniverInstanceService']),_0x29ab6d(0x1,_0x3ea0ad[_0x387812(0x35e)]),_0x29ab6d(0x2,_0x3ea0ad[_0x387812(0xf7)]),_0x29ab6d(0x3,_0x5d8fae[_0x387812(0x281)]),_0x29ab6d(0x4,_0x3ea0ad[_0x387812(0x2a4)])],_0x495660);let _0x31993c=class extends _0x3ea0ad['Plugin']{constructor(_0x25c0a8=_0x15b9fd,_0x5a8887,_0x11a3c2,_0x311f2d){const _0x529124=_0x387812;super(),this['_config']=_0x25c0a8,this[_0x529124(0x1fc)]=_0x5a8887,this[_0x529124(0x26d)]=_0x11a3c2,this[_0x529124(0x327)]=_0x311f2d;let {..._0x46f407}=(0x0,_0x3ea0ad[_0x529124(0x365)])({},_0x15b9fd,this['_config']);if(!_0x46f407[_0x529124(0x1d2)])throw Error(_0x529124(0xe4));this['_config']=_0x46f407,this[_0x529124(0x327)][_0x529124(0x34a)](_0xeb659,_0x46f407);}[_0x387812(0x314)](){const _0x3ed74c=_0x387812;this[_0x3ed74c(0x1c0)](),this[_0x3ed74c(0x1b0)]();}[_0x387812(0x1c0)](){const _0xb68d35=_0x387812;var _0x557c53,_0x53b576;this[_0xb68d35(0x26d)]['has'](_0x3ea0ad['IUndoRedoService'])&&this[_0xb68d35(0x1fc)][_0xb68d35(0xcf)](_0xb68d35(0x2b2),_0xb68d35(0x119));let _0x49953a=(0x0,_0x3ea0ad['mergeOverrideWithDependencies'])([[_0x3ea0ad[_0xb68d35(0x240)],{'useClass':_0x495660}],[_0xfd750d,{'useValue':_0x2488e3()}],[_0x16256e],[_0x3f167c],[_0x5ad7dd],[_0x2d5274],[_0x4e018c],[_0x579ca0],[_0x2d0a67],[_0x359cbb],[_0x5a12bf],[_0x3155d1,{'useClass':this[_0xb68d35(0x3f9)]['socketService']}],[_0x5d8fae[_0xb68d35(0x211)],{'useClass':_0x5b7913}],[_0x3ea0ad[_0xb68d35(0xdd)],{'useClass':_0xd648b3}],[_0x3ea0ad['IImageIoService'],{'useClass':_0x52b72b}],[_0x37f9b3,{'useClass':_0x4d9046}],[_0x3ea0ad[_0xb68d35(0x252)],{'useClass':_0x2961f8}],[_0x56403c],[_0xe73302]],(_0x557c53=this[_0xb68d35(0x3f9)])==null?void 0x0:_0x557c53[_0xb68d35(0x335)]);if(!((_0x53b576=this['_config'])!=null&&_0x53b576['enableSingleActiveInstanceLock'])){let _0x3ec4e0=_0x49953a[_0xb68d35(0x38d)](([_0x25086d])=>_0x25086d===_0x989852);_0x3ec4e0!==-0x1&&_0x49953a[_0xb68d35(0x2b0)](_0x3ec4e0,0x1);}(0x0,_0x3ea0ad[_0xb68d35(0x2aa)])(this[_0xb68d35(0x26d)],_0x49953a);}[_0x387812(0x1b0)](){const _0x50c81b=_0x387812;var _0x5a1f97,_0x3e936e;if(this[_0x50c81b(0x26d)][_0x50c81b(0x32a)](_0x2e88c0[_0x50c81b(0x264)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,_0x2e88c0[_0x50c81b(0x1b4)])({'maxParallel':0x6})}),!((_0x5a1f97=this[_0x50c81b(0x3f9)])!=null&&_0x5a1f97[_0x50c81b(0x2d9)])){var _0x3fc9fe;(_0x3fc9fe=this[_0x50c81b(0x26d)]['get'](_0x4e9987,_0x3ea0ad[_0x50c81b(0x165)][_0x50c81b(0x166)]))==null||_0x3fc9fe['disableLocalCache']();}(_0x3e936e=this[_0x50c81b(0x3f9)])!=null&&_0x3e936e[_0x50c81b(0x2bb)]&&(0x0,_0x3ea0ad[_0x50c81b(0x2b7)])(this['_injector'],[[_0x2d5274]]),(0x0,_0x3ea0ad[_0x50c81b(0x2b7)])(this['_injector'],[[_0x4e018c],[_0x56403c],[_0x2d0a67]]);}};_0x309f50(_0x31993c,'pluginName','UNIVER_COLLABORATION_CLIENT_PLUGIN'),_0x309f50(_0x31993c,_0x387812(0x142),_0x297e46),_0x309f50(_0x31993c,'version',_0x18149d),_0x31993c=_0x48064b([(0x0,_0x3ea0ad[_0x387812(0x182)])(_0x575549[_0x387812(0x10f)],_0x2e88c0[_0x387812(0x1ab)],_0x5d8fae[_0x387812(0x2f1)]),_0x29ab6d(0x1,_0x3ea0ad[_0x387812(0x2a4)]),_0x29ab6d(0x2,(0x0,_0x3ea0ad[_0x387812(0x2c4)])(_0x3ea0ad[_0x387812(0x271)])),_0x29ab6d(0x3,_0x3ea0ad[_0x387812(0x2b5)])],_0x31993c),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x29e),{'enumerable':!0x0,'get':function(){return _0xd648b3;}}),Object[_0x387812(0x1b6)](_0x38e016,'AwaitingState',{'enumerable':!0x0,'get':function(){return _0x70527d;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x368),{'enumerable':!0x0,'get':function(){return _0x4ebec0;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x3ed),{'enumerable':!0x0,'get':function(){return _0x461db8;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x18b),{'enumerable':!0x0,'get':function(){return _0x2b44e6;}}),_0x38e016[_0x387812(0x3f8)]=_0xeb659,Object[_0x387812(0x1b6)](_0x38e016,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return _0x4d9046;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x25b),{'enumerable':!0x0,'get':function(){return _0x56403c;}}),Object['defineProperty'](_0x38e016,_0x387812(0x2c1),{'enumerable':!0x0,'get':function(){return _0xf00944;}}),Object['defineProperty'](_0x38e016,_0x387812(0x1e1),{'enumerable':!0x0,'get':function(){return _0x52b72b;}}),Object[_0x387812(0x1b6)](_0x38e016,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x3c2d9d;}}),Object[_0x387812(0x1b6)](_0x38e016,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return _0x16256e;}}),Object[_0x387812(0x1b6)](_0x38e016,'CollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x9b3649;}}),_0x38e016[_0x387812(0x1b9)]=_0x2a8e35,_0x38e016[_0x387812(0xfe)]=_0x4e47c0,_0x38e016['CollaborationUIEventService']=_0x359cbb,Object['defineProperty'](_0x38e016,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return _0x495660;}}),_0x38e016[_0x387812(0x226)]=_0x579ca0,Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x3c7),{'enumerable':!0x0,'get':function(){return _0x205b67;}}),_0x38e016[_0x387812(0x308)]='ws://127.0.0.1:8000/universer-api/comb/connect',_0x38e016['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']=_0x387812(0xe0),_0x38e016[_0x387812(0x222)]='/universer-api/user/session-ticket',Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x110),{'enumerable':!0x0,'get':function(){return _0x5a12bf;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x116),{'enumerable':!0x0,'get':function(){return _0x4264a3;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0xb0),{'enumerable':!0x0,'get':function(){return _0x1c9a8a;}}),_0x38e016[_0x387812(0x384)]=_0x387812(0x1b8),_0x38e016['HEARTBEAT_TIMEOUT_KEY']=_0x387812(0x278),_0x38e016[_0x387812(0xf9)]=_0x37f9b3,_0x38e016[_0x387812(0x18d)]=_0xfd750d,_0x38e016[_0x387812(0x2af)]=_0x3155d1,_0x38e016[_0x387812(0x34e)]=_0x4e9987,_0x38e016[_0x387812(0xae)]=_0x3bc50a,_0x38e016[_0x387812(0x2bf)]=_0x989852,_0x38e016[_0x387812(0xd4)]=0x3e8,_0x38e016[_0x387812(0x37e)]='LOCAL_CACHE_INTERVAL',Object['defineProperty'](_0x38e016,_0x387812(0x1de),{'enumerable':!0x0,'get':function(){return _0x3f167c;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x37c),{'enumerable':!0x0,'get':function(){return _0x2961f8;}}),Object[_0x387812(0x1b6)](_0x38e016,'OfflineState',{'enumerable':!0x0,'get':function(){return _0x119cc1;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x14f),{'enumerable':!0x0,'get':function(){return _0x56abff;}}),Object[_0x387812(0x1b6)](_0x38e016,'PendingState',{'enumerable':!0x0,'get':function(){return _0x5b6c26;}}),_0x38e016[_0x387812(0x306)]='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',_0x38e016['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x387812(0x144),_0x38e016['SessionStatus']=_0x56411b,Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x176),{'enumerable':!0x0,'get':function(){return _0x1a3266;}}),Object[_0x387812(0x1b6)](_0x38e016,'SheetTransformSelectionsService',{'enumerable':!0x0,'get':function(){return _0x5ad7dd;}}),Object['defineProperty'](_0x38e016,_0x387812(0x2a2),{'enumerable':!0x0,'get':function(){return _0xa14eef;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x1e7),{'enumerable':!0x0,'get':function(){return _0x5b7913;}}),Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x2ca),{'enumerable':!0x0,'get':function(){return _0x5d844f;}}),_0x38e016[_0x387812(0x3f6)]=_0x1dcdde,Object[_0x387812(0x1b6)](_0x38e016,_0x387812(0x2e1),{'enumerable':!0x0,'get':function(){return _0x31993c;}}),_0x38e016['createUniverCollaborationAdapter']=_0x2488e3,_0x38e016[_0x387812(0x326)]=_0x38114d,_0x38e016[_0x387812(0x14c)]=_0x3492e6,_0x38e016[_0x387812(0x2da)]=_0x485eef;}));function _0x1aa5(){const _0x512f01=['string\x20expected','sequenceExecute','SheetPermissionInitController','ITelemetryService','FAIL','textRanges','subarray','CollaborationController','location','_roomMembers','FETCH_MISSING','getCollabEntity','range','AWAITING_WITH_PENDING','UniverDrawing','interceptor','HTTPService','_updateState','getTypeOfUnitAdded$','onTransformState','accept','collaMsg','_imageSourceCache','LocaleService','saveSnapshot','_injector','key','parse','workbook','Injector','?size=','joinRsp','DRAWING_IMAGE_ALLOW_IMAGE_LIST','subUnitId','WorkbookEditablePermission','symbol','HEARTBEAT_TIMEOUT','permissionRejEvent','sheets','put','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','rxjs/operators','_toggleOnline','unitType','getUnitType','ITransformService','localeService','toggleOffline','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','EnsureSlideMasterPageMutation','updatePermissionObjEvent','from','onSyncEditingCollabCursor','signUrlServerUrl','_onUserJoin','saveAttachment','_transformUndoredo','updateCursorEvent','FileId','_replaceFileID','_onCombEvent','_compressMutationService','getCfgEnableObjInherit','FETCH_MISS','PERSON','PERMISSION_REJ','_getSendChangesetTimeout','getUploadOptions','pipe','code','_sendHeartbeat','url','_networkConditionService','_isEchoedAwaitingChangeset','AuthzIoHttpService','roomInfos','values','/universer-api/snapshot/','SlideCollaborationEntity','@univerjs/docs','ILogService','_getCtorByUniverInstanceType','_incrementRevisionNumber','unitLoaded$','body','_handler','registerDependencies','AWAITING','OFFLINE','&to=','toLocal','ICollaborationSocketService','splice','_onRecvEvent','[UniverCollaborationClientPlugin]','RichTextEditingMutation','parseChangesetToProtocol','IConfigService','csShouldRetryEvent','touchDependencies','amd','transformUndoRedo','[CollaborationState]:\x20apply\x20error!','enableAuthServer','number','candidateSocket','unitID','ISingleActiveUnitService','hasOwnProperty','CollaborationEntity','changeset','AAD','Inject','originalMeta','_onConnectionOpen','LocalUndoRedoService','endsWith','memberID','SyncedState','getUnit','getMemberID','sid','_type','INGEST','_change$','open$','IPermissionService','_revisionService','onCommentUpdate','UniverNetwork','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','filter','removeMember','enableOfflineEditing','serializeCombRequest','compose','RECV','invalid\x20output,\x20must\x20be\x20aligned','_collabSessionService','transformStack\x20failed!','_event$','UniverCollaborationClientPlugin','HEARTBEAT','c1Prime','_status$','_onFetchMissResult','missingChangesets','saveSheetBlock','UNIVER_DOC','_entities','Error\x20on\x20receiving\x20event','readyForCollab','snapshot','JSONX','29619oeVGvH','getSnapshotAPIPath','debug','UniverCollaborationPlugin','getAllMembers','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','getDeserializedSheetBlock','batchAllowed','_schedule','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','onMissingChangesets','_members','/object/','equals','UNISCRIPT_RUN','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','IUniverInstanceService','columnGroups','_acknowledgeAwaitingIfReady','byteOffset','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','sessionStatus$','toggleOnline','_changesetSessionId','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','DEFAULT_COLLAB_WEB_SOCKET_URL','session','univer-pro.collaboration-client.network-condition.service','_emitMembers','DisposableCollection','_clearRedo','session.room-not-exists','[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.','take','pauseCollaboration','_resendTimer','sessionStatus','onStarting','collaboration-client.config','next','loadPdf','getUnitOnRev','_startTelemetryCollaborationNewChangeset','transformChangesets','data','10nsuICx','object','UNIVER_SHEET','createCollaborator','toRemote','_doCreateSocket','30wmBImD','LIVESHARE_REQUEST_HOST','fromCollab','rxjs','deserializeToCombResponse','_configService','SNAPSHOT_URL_KEY','duration','get','_getUndoStack','_createInitialState','socketMessageSubscription','UniverProCollaboration','action','append','resend','_updateLocalCache','[OfflineState]:\x20received\x20rejection.','assign','override','tagLength','fetch_missing','_clearLocalCache','_singleActiveUnitService','_onRemoteRetry','/collaborator','onTransformRemoteChangesetByStateCache','crypto','min','upload','SUBMIT_CHANGESET','focused$','POST','MentionType','some',',\x20got\x20','getConfig','FileSource','_transformAndApplyRemoteChangeset','userID','setConfig','getCurrentUser','actions','includes','ILocalCacheService','PERMISSION_DENIED','_checkMissing','_initCloseConn','submit\x20changeset\x20error!','_startCollaboration','_removeRoom','getValue','unit-cache-','/role','_getDownloadEndpointURL','createIdentifier','_pendingMutations','_stopTelemetryCollaborationNewChangeset','_exhaustRemoteChangesetQueue','attachment','ICommandService','ImageUploadStatusType','_joinRoom','/rev/','_transformStateCache','NEW_CHANGESETS','collaboratorID','merge','_snapshotService','unknown','AwaitingWithPendingState','ws://127.0.0.1:8000/universer-api/comb/connect','reverse','socket\x20close','_getCurrentRevision','event$','getOwnPropertyDescriptor','_sendingTimer','startsWith','fetchThroughInterceptors','_applyRemoteChangeset','origin','objects','conflict','cfgEnableObjInherit','_tryEnsureSocket','_collaborationUIEventService','onTransformSelections','isCompositionEnd','setShowComponents','MentionIoHttpService','_onOffline','LOCAL_CACHE_INTERVAL_KEY','@univerjs-pro/license','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_onRemoteRejected','UNIVER_BASE','_clearTimeoutTimer','HEARTBEAT_INTERVAL_KEY','fill','listRoles','appendMutation','_initRequestHeader','UNIVER_PDF','_localeService','loginUrlKey','LIVESHARE_FETCH_OPERATIONS','findIndex','getSheetBlock','collabSubmitChangesetUrl','_collaborationPaused','{fileID}','enableCollaboration','updateSnapshot','commentUpdate$','_listenToNetworkCondition','CombCmd','unitId','onRemoteAck','_socketService','waitForRoom$','ImageSourceType','localCacheService','default','downloadEndpointUrl','collaboration-client.local-cache-service','_acknowledgeAwaiting','_onUserLeave','/universer-api/stream/file/upload','uuidv4','_init','_getRedoStack','href','nonceLength','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_getAPIPrefix','title','startTime','LIVESHARE_TERMINATE','_getAPIPrefixPath','_sender','slice','1.0.0-beta.0','_transformIMECache','_createHandler','headers','createSocket','loadOfflineData','32QGIVkJ','pending','onMutationExecutedForCollab','CHANGESET_ACK','resolveWithBasePath','_throwTelemetryCollaborationNewChangeset','closeSession','mutations','unitId\x20is\x20not\x20found','isArray','MSG_FOR_ERROR','USERS_ENTER','unitInfo$','close$','synced','delete','changesets','ConflictState','_identity','connection\x20error','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','HELLO','DocStateChangeManagerService','_socket','_executeRemoteChangeset','reduce','aes/pkcs7:\x20wrong\x20padding','_remoteChangesetQueue','patch','CmdRspCode','target','SOCKET_FAILED_RETRY','_unitLoaded$','now','src','_rescheduleHeartbeat','revision','603580pfaIGU','selections','call','_scheduleCollaborationTimeoutTimer','&source=','shouldCloseConn','univer-pro.collaboration-client-socket-service','objectActions','SUBMIT_CHANGESET_TIMEOUT','resourceIDs','forEach','[SyncedState]:\x20received\x20acknowledgement.','awaiting_with_pending','_collaborationSessionService','decrypt','getWorkbookSelections','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','/universer-api/comb','BaseCollaborationEntity','Rectangle','loadSheet','liveShareNewHost','varSizeNonce','session.join-failed','Tools','retryCount','Module','UnitStatus','setCfgEnableObjInherit','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_config','getDrawingImageAllowSize','offline','\x20in\x20_schedule.','90OAJClQ','_localCacheService','getActiveSheet','authzUrl','trim','JOINING','transformMutationsWithChangeset','text-x','_cfgEnableObjInherit','781231XCiNSc','_isPermissionRej','INetworkConditionService','unit','FetchingMissState','_HTTPService','routeKey','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','max','_awaitingChangeset','_clearHeartbeatTimer','_getSocketChannel','_transformService','decorate','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','/fetchmissing?from=','_createSession','SnapshotService','USERS_LEAVE','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','updateMember','_initMergeInterceptor','base-ui.attachment-io.service','ERROR_IMAGE','createInstance','close','has','COMMENT_UPDATE','_univerInstanceService','awaiting','complete','UniverProLicense','updatePermissionPoint','state$','_changesetReqId','error','[CollaborationSessionService]:\x20socket\x20error','_clearUndo','_clearCollaborationTimeoutTimer','Failed\x20to\x20update\x20permission\x20point','LOCAL_CACHE_INTERVAL',',\x20got:\x20','getMember','entityInit$','capture','transformSelections','commentUpdateEvent','_state$','_substituteUndoStack','IAuthzIoService','BYTES_PER_ELEMENT','cmd','/universer-api/uniscript','_commentUpdate$','UPDATE_CURSOR','resolveUnit','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','LIVESHARE_NEW_HOST','UniverTelemetry','_scheduleCompleteTimestamp','name','_transformSelections','BASE64','_shouldReportTelemetry','UnitEmbedded','getImage','csRejEvent','_resendWithTimeout','function','_state','getRandomValues','/-/object/-/batch_allowed','@univerjs-pro/collaboration','getLatestCsReqIdBySid','create','IContextService','getResourcesRequest','IAttachmentIoService','disablePadding','COMPRESS_MUTATION_SEND','fetchMiss','_substituteRedoStack','CollaborationUIEventId','result','positive\x20integer\x20expected,\x20got\x20','COMPRESS_MUTATION_APPLY','dispose','1125228rMLris','parseProtocolChangeset','UNIVER_SLIDE','_redoStacks','SHOULD_CLOSE_CONN','_roomCreated$','getUnitStatus$','_commandService','JOIN_ROOM_FAILED','_initUnitPermissionChange','isTransformMutationsWithChangesetFailure','_telemetryService','UniverLicensePlugin','DataLoaderService','liveShareOperation','endpointKey','loadUnit','buffer','_submitChangeset','DocCollaborationEntity','resolve','isPermissionRej','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','emitEvent','_resendTimeout','session.room-cnt-exceeds','hostname','NO_OTHER_CLIENTS_EDITING','[FetchMissState]','IDLE','operators','onMissedChangesetFetched','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_transitionLocked','_upload','UniverSheets','/allowed','8mMdBPA','CONFLICT','getCollabEntity$','state','getFocusedUnit','_onConnectionFailed','withCredentials','online$','_commentService','type','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','DEFAULT_FILE_NAME','updateCollaborator','getGlobalObject','isSafeInteger','getAttachmentUrl','_adapter','_queuedRemoteChangesets','_undoRedoService','CollaborationEvent','session.room-permission-denied','_members$','[OfflineState]:\x20received\x20changeset.','_disableEditing','onSendChangeset','length','packageName','byteLength','RETRY_CONNECTING_MAX_COUNT','requestParams','awaitingChangeset','CHANGESET_SHOULD_RETRY','JOIN','encrypt','delay','_permissionService','getLocalCacheKey','replace','_getSignURL','PdfCollaborationEntity','RxDisposable','executeCommand','Univer','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','_replayCachedMutations','cipher\x20output\x20not\x20supported','_hasSessionsForEndpoint','_onConflict','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','CommandType','\x20to\x20','set','_snapshotServerService','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','_syncEditingCollabCursor','indexOf','infoRsp','copyFileMeta','timeoutTimer','Quantity','OPTIONAL','&assign=','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','readAsDataURL','textEncoder','ErrorCode','_acknowledgedAwaitingRevision','retryConnectingInterval','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_transformStack','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','size','_socketChannels','reject','file','_entityInit$','SheetCollaborationEntity','Wrong\x20sbox\x20length','responseType','sort','@univerjs/protocol','socketReady','_tryReconnect','\x0aAfter:\x20','__splitChunk__','string','_onRemoteACK','AddSlidePageMutation','DependentOn','init','/universer-api/authz','uploadFileServerUrl','_unlockTransition','_transformRemoteChangesetByStateCache','list','_getLoginPath','updateOfflineData','BoardCollaborationEntity','176856QdFHRT','ICollaborationClientAdapterService','catch','Disposable','collaboration_new_changeset','collabWebSocketUrl','[CollaborationSession]','collaborators','ISocketService','_docStateChangeManagerService','expected\x20Uint8Array','isView','MUTATION','_decreaseWaiting','RemoveSlidePageMutation','update','localUnitId','clear','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getTypeOfUnitDisposed$','loadBase','getImageSourceCache','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','@univerjs/sheets','onlyLocal','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','subscribe','map','takeUntil','ERROR_EXCEED_SIZE','?url=','UniverNetworkPlugin','onRemoteRej','_socketMessageSubscription','UniverDocs','_userManagerService','_initDependencies','/universer-api/snapshot','sendHeartbeatTimer','CompressMutationService','ThresholdInterceptorFactory','disposeWithMe','defineProperty','SetSelectionsOperation','HEARTBEAT_INTERVAL','CollaborationStatus','2813067prDaqX','OTHER_CLIENT_EDITING','_onMessage','saveChangeset','_showConflictNotification','number\x20expected,\x20got\x20','_registerDependencies','floor','fromCharCode','_getConfig','getUnitId','NOT_COLLAB','leaveEvent','_sessions','sendChangesetTimeout','RevisionService','Uint8Array','_onJoinRoomEvent','EmptyMutationInfo','LEAVE','reqId','listCollaborators','isTransformMutationsWithChangesetSuccess','_clearRetryConnectingTimer','socketService','onRemoteRetry','@univerjs/drawing','_sessionStatus$','message$','UUID','prototype','_onLocalMutation','send','_resolveSessionIdentity','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','26dtXuTq','MemberService','b64DecodeUnicode','UniverProCollaborationClient','CollaborationImageIoService','_pendingSessions','every','_updateStatus','stringify','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','SnapshotServerOverHTTPService','SUCCUSS','UPDATE_PERMISSION_OBJ','getCurrentRevOfUnit','1750NWVjTk','OTHER_CLIENTS_EDITING','endpoint','find','newCsEvent','apply','loadBoard','/unit/','isInternalEditorID','c2Prime','socket$','_createSocket','_getUploadFileURL','requireSession','save\x20fail\x20reason\x20is\x20','/universer-api/oidc/authpage','addHandlerCallback','_logService','[PendingState]:\x20received\x20rejection.','asObservable','_lockTransition','nonce','onRemoteChangeset','loadUnitOfRevision','_handleRemoteChangesets','onStateChange','crypto.getRandomValues\x20must\x20be\x20defined','Optional','_handlerCallback','deepClone','JOIN_ROOM_NOT_EXISTS','Subject','fetchMissingChangesets','UserManagerService','_httpService','UniverInstanceType','[PendingState]:\x20received\x20acknowledgement.','status','ISnapshotServerService','_maxTotalRetryTimeout','charCodeAt','change$','[CollaborationUndoRedoService]','registerHTTPInterceptor','eventID','SOCKET_FAILED','__Key__','maxSize','[CollaborationEntity]','JOIN_ROOM_FULL','_fetchMissChangesets','People','toDisposable','objectID','getTime','DEFAULT_WS_SESSION_TICKET_URL','push','error$','[DataLoaderService]','CommentService','CLOSE_ROOM','_memberService','_instanceService','_unitInfo$','_clearScheduledTask','m2Prime','retryConnectingTimer','_sheetTransformSelectionsService','_onRemoteChangeset','_telemetryInfo','_waitCount','add','post','_eventService','dispose$','LIVESHARE_OPERATION','UNIVER_BOARD','onload','shareReplay','_sessionChannels','reconnect','toStringTag','unsubscribe','SheetsSelectionsService','[CollaborationSessionService]','IUndoRedoService','JOIN_ROOM_PERMISSION_DENIED','toString','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','PSEUDO_FETCH_MISSING_RESULT','getInterceptPoints','objectType','params','tables','onTransformRemoteChangesetByIMECache','BehaviorSubject','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_undoStacks','_transformRemoteChangesetByIMECache','_collaborationTimeoutTimer','@univerjs-pro/slides','baseRev','collaboration-client.auth.needGotoLoginAlert','IMentionIOService','entries'];_0x1aa5=function(){return _0x512f01;};return _0x1aa5();}