@univerjs-pro/collaboration-client 1.0.0-alpha.8 → 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 (85) 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/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +15 -15
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2261(){const _0x492076=['_waitForHeartbeatResponse','_transformRemoteChangesetByStateCache','_scheduleCompleteTimestamp','unitLoaded$','function','amd','JSONX','state','getUnitType','OPTIONAL','createUniverCollaborationAdapter','[CollaborationEntity]','_revisionService','/role','reject','SOCKET_FAILED_RETRY','csAckEvent','IDLE','copyFileMeta','symbol','UniverDrawing','MoveSlidePageMutation','unitId','[CollaborationSessionService]:\x20socket\x20error','memberID','Subject','getDrawingImageAllowSize','_HTTPService','_getAPIPrefixPath','_onMessage','responseType','_transformSelections','_onRemoteACK','liveShareOperation','addHandlerCallback','firstValueFrom','error','localUnitId','default','_pendingSessions','IAuthzIoService','_toggleOnline','UPDATE_PERMISSION_OBJ','_redoStacks','DataLoaderService','_lockTransition','deepClone','_instanceService','resend','parseProtocolChangeset','registerDependencies','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.',',\x20got:\x20','routeKey','withCredentials','SheetsSelectionsService','maxSize','updateOfflineData','sort','Disposable','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','c1Prime','code','NEW_CHANGESETS','UniverProCollaboration','csShouldRetryEvent','putCollaborators','state$','message$','now','UniverProLicense','_permissionService','@univerjs/protocol','_memberService','_updateState','FileId','toPrimitive','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','src','Optional','transformStack\x20failed!','CLOSE_ROOM','_disableEditing','getImage','getWorkbookSelections','HEARTBEAT_INTERVAL','loadUnitOfRevision','close','onTransformSelections','_onConnectionFailed',',\x20got\x20','loginUrlKey','JOIN_ROOM_PERMISSION_DENIED','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','upload','_remoteChangesetQueue','awaiting_with_pending','exports','fetchMiss','fill','updatePermissionPoint','@univerjs/drawing','getCurrentUser','call','socketMessageSubscription','SessionStatus','CompressMutationService','UUID','Module','/universer-api/uniscript','@univerjs-pro/collaboration-client','DEFAULT_FILE_NAME','telemetry\x20info\x20is\x20not\x20initialized','/collaborator','aes/pkcs7:\x20wrong\x20padding','onTransformState','univer-pro.collaboration-client.single-active-unit-service','sendHeartbeatTimer','_queuedRemoteChangesets','_createSocket','enableSingleActiveInstanceLock','floor','LIVESHARE_OPERATION','_changesetReqId','DisposableCollection','stopTime','_handleRemoteChangesets','requireSession','error$','getTypeOfUnitAdded$','_transitionLocked','dispose','transformMutationsWithChangeset','_updateStatus','getRoom','serializeCombRequest','_resendWithTimeout','debug','BASE64','unitType','transformUndoRedo','_upload','object','JOIN','_clearUndo','uniscriptRunEvent','hostname','?size=','_checkMissing','BehaviorSubject','DEFAULT_WS_SESSION_TICKET_URL','candidateSocket','UNIVER_PDF','emitEvent','findIndex','session.room-permission-denied','EnsureSlideMasterPageMutation','_onRecvEvent','[OfflineState]:\x20received\x20acknowledgement.','\x20in\x20_schedule.','ICommandService','_handler','parseChangesetToProtocol','params','patch','_listenToNetworkCondition','OfflineState','getMemberID','_sheetTransformSelectionsService','_transformStack','tables','pauseCollaboration','CollaborationImageIoService','UNIVER_BOARD','ErrorCode','_resendTimer','getTypeOfUnitDisposed$','requestParams','signUrlServerUrl','set','_singleActiveUnitService','baseRev','base-ui.attachment-io.service','slice','fetchThroughInterceptors','_getDownloadEndpointURL','RemoveSlidePageMutation','UniverInstanceType','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_status$','UniverCore','COMMENT_UPDATE','IConfigService','_univerInstanceService','UniverNetworkPlugin','toString','closeSession','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_emitMembers','@univerjs/telemetry','FileSource','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_toggleOffline','_decreaseWaiting','ISocketService','/fetchmissing?from=','location','saveAttachment','unit-cache-','removeMember','UNIVER_SLIDE','RECV','_adapter','isTransformChangesetsSuccess','backupOfflineData','univer-pro.collaboration-client-socket-service','/universer-api/authz','SheetTransformSelectionsService','ONLINE','BYTES_PER_ELEMENT','loadSlide','socket\x20open.','_submitChangeset','session.room-full','onlyLocal','concatMap','accept','&source=','_clearRetryConnectingTimer','nonceLength','saveSheetBlock','m2Prime','DRAWING_IMAGE_ALLOW_IMAGE_LIST','PdfCollaborationEntity','leaveEvent','revision','ISingleActiveUnitService','_snapshotService','_networkConditionService','UniverProCollaborationClient','add','?url=','UNIVER_SHEET','result','SHOULD_CLOSE_CONN','setWaitCount','entries','addImageSourceCache','SlideCollaborationEntity','_transformStateCache','getInterceptPoints','createIdentifier','c2Prime','createInstance','SOCKET_FAILED','batchAllowed','columnGroups','reqId','ReplaySubject','COMPRESS_MUTATION_SEND','_startTelemetryCollaborationNewChangeset','min','collabWebSocketUrl','_onCombEvent','socket\x20close','catch','onTransformRemoteChangesetByStateCache','getAllMembers','commentUpdate$','_getUndoStack','capture','userID','_initDependencies','isView','indexOf','[OfflineState]:\x20received\x20rejection.','1916289npgTco','LocaleService','parse','JOINING','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getSheetId','getCurrentRevOfUnit','_maxTotalRetryTimeout','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_clearLocalCache','HTTPRequest','UniverLicensePlugin','_getSendChangesetTimeout','transformChangesets','_cfgEnableObjInherit','fromCharCode','session.join-failed','rxjs/operators','allowed','/object/','appendMutation','onRemoteChangeset','DocStateChangeManagerService','_unitInfo$','_isPermissionRej','CmdRspCode','retryConnectingTimer','shouldCloseConn','Rectangle','waitForRoom$','isPermissionRej','_scheduleCollaborationTimeoutTimer','SUBMIT_CHANGESET','3181910pmKYzO','text-x','_transformUndoredo','data','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','_onUserLeave','_waitCount','_hasSessionsForEndpoint','UniverCollaborationClientPlugin','_docStateChangeManagerService','_applyRemoteChangeset','open$','clear','_undoRedoService','init','editingUnit','JOIN_ROOM_NOT_EXISTS','eventID','AwaitingWithPendingState','updateMember','close$','_isEchoedAwaitingChangeset','authzUrl','_configService','downloadEndpointUrl','startTime','_logService','newCsEvent','getCollabEntity$','isTransformMutationsWithChangesetSuccess','apply','rxjs','_telemetryService','HEARTBEAT','_exhaustRemoteChangesetQueue','univer-pro.collaboration-client-adapter-service','_collabSessionService','status$','CollaborationEvent','PERMISSION_REJ','ISnapshotServerService','MSG_FOR_ERROR','_roomMembers','crypto','x-univer-host','unsubscribe','SnapshotServerOverHTTPService','startsWith','_initRequestHeader','retryCount','missingChangesets','cipher\x20output\x20not\x20supported','_injector','_type','_getCtorByUniverInstanceType','_telemetryInfo','endsWith','_replaceFileID','post','\x0aAfter:\x20','Injector','UnitEmbedded','getTime','shareReplay','getUploadOptions','COLLABORATION_ENDPOINT_INVALID','retryConnectingInterval','toggleOnline','mapDocumentTypeToUniverInstanceType','session','confirm','[FetchMissState]','awaiting','_clearTimeoutTimer','dispose$','COMPRESS_MUTATION_APPLY','objectID','getLocalCacheKey','Tools','deserializeToCombResponse','disableLocalCache','SetSelectionsOperation','__splitChunk__','CollaborationSessionService','MergeInterceptorFactory','collaboration-client.auth.needGotoLoginAlert','_collaborationPaused','forEach','_members$','_onConflict','onCommentUpdate','number','unit','roles','_awaitingChangeset','getAttachmentUrl','_throwTelemetryCollaborationNewChangeset','asObservable','transformSelections','CollaborationStatus','ImageSourceType','[CollaborationSession]','PERMISSION_DENIED','WorkbookEditablePermission','unknown','resolveUnit','OFFLINE','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','POST','ConflictState','UniverDocs','UNISCRIPT_RUN','offline','_state','registerHTTPInterceptor','_onLocalMutation','CollaborationController','_transformRemoteChangesetByIMECache','onMissingChangesets','buffer','/universer-api/snapshot','listRoles','_rescheduleHeartbeat','expected\x20Uint8Array','/unit/','subUnitId','AddSlidePageMutation','UNIVER_COLLABORATION_CLIENT_PLUGIN','_collaborationSessionService','_pendingMutations','body','_handlerCallback','append','headers','/universer-api/file/{fileID}/sign-url','CollaborationEntity','encodeURIComponent','univer-pro.collaboration-client.network-condition.service','60VoHqFY','136781chOafo','iterator','_registerDependencies','_initUnitPermissionChange','_compressMutationService','ICollaborationClientAdapterService','GLOBAL_ROOMS_CNT_EXCEEDS','CollaborationSession','1145490SIWDwR','name','decorate','pending','_updateLocalCache','_undoStacks','createSocket','endpointKey','prototype','/object','IUndoRedoService','_commandService','loadDoc','getCfgEnableObjInherit','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','mutations','toDisposable','onRemoteAck','getUnitStatus$','merge','CHANGESET_REJ','members$','ERROR_IMAGE_TYPE','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','range','Wrong\x20sbox\x20length','complete','_fetchMissChangesets','_change$','SUBMIT_CHANGESET_TIMEOUT','INGEST','onload','setConfig','_removeRoom','_clearCollaborationTimeoutTimer','UniverTelemetry','@univerjs-pro/slides','disposeWithMe','map','href','getConfig','RETRY_CONNECTING_MAX_COUNT','USERS_LEAVE','/block/','setShowComponents','_collaborationTimeoutTimer','override','[SyncedState]:\x20received\x20acknowledgement.','toggleOffline','synced','target','\x20-\x20','localeService','byteOffset','subscribe','_httpService','_entities','touchDependencies','_members','_tryEnsureSocket','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','getResourcesRequest','_state$','OTHER_CLIENT_EDITING','_acknowledgeAwaitingIfReady','_doCreateSocket','_changesetSessionId','[PendingState]:\x20received\x20acknowledgement.','socketReady','subject','UPDATE_CURSOR','next','INetworkConditionService','roomInfos','3764934oJvnhC','People','_createInitialState','byteLength','save\x20fail\x20reason\x20is\x20','CombCmd','UNIVER_DOC','_syncEditingCollabCursor','not_collab','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_onFetchMissResult','permissionRejEvent','IImageIoService','HTTPService','delete','_identity','liveShareNewHost','MentionType','action','NOT_COLLAB','isInternalEditorID','_transformAndApplyRemoteChangeset','sequenceExecute','varSizeNonce','objectType','timeoutTimer','DocCollaborationEntity','[PendingState]:\x20unhandled\x20univer\x20type:\x20','CommandType','subarray','delay','isTransformMutationsWithChangesetFailure','from','\x20to\x20','&assign=','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_imageSourceCache','_resendTimeout','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','getCollabEntity','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','sid','_executeRemoteChangeset','_onJoinRoomEvent','IPermissionService','_localCacheService','[UniverCollaborationClientPlugin]','string','cmd','_getSocketChannel','decrypt','EmptyMutationInfo','UniverSheets','UniverCollaborationPlugin','toRemote','_config','put','RxDisposable','every','NO_OTHER_CLIENTS_EDITING','[OfflineState]:\x20received\x20changeset.','_showConflictNotification','resolveWithBasePath','submit\x20changeset\x20error!','getMember','AWAITING_WITH_PENDING','_init','send','IAttachmentIoService','_entityInit$','fromCollab','enableOfflineEditing','\x20of\x20length\x20','UNIVER_BASE','commentUpdateEvent','encrypt','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','originalMeta','length','_tryReconnect','_transformIMECache','localCacheService','onRemoteRetry','HEARTBEAT_TIMEOUT_KEY','OTHER_CLIENTS_EDITING','_sessions','_getSignURL','LEAVE','objects','session.room-cnt-exceeds','pipe','loadSheet','Quantity','_unlockTransition','duration','take','collaborators','_joinRoom','invalid\x20output,\x20must\x20be\x20aligned','mergeOverrideWithDependencies','length=','_sessionChannels','onMutationExecutedForCollab','_snapshotServerService','interceptor','blockRanges','_replayCachedMutations','RichTextEditingMutation','JOIN_ROOM_FAILED','@univerjs/docs','isArray','change$','ITelemetryService','readyForCollab','onTransformIME','onTransformRemoteChangesetByIMECache','_createSession','loadPdf','trim','_commentUpdate$','_getConfig','LIVESHARE_NEW_HOST','RETRY_CONNECTING_MAX_COUNT_KEY','values','_clearScheduledTask','ERROR_EXCEED_SIZE','_clearRedo','LIVESHARE_FETCH_OPERATIONS','getLatestCsReqIdBySid','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','1.0.0-alpha.8','toStringTag','get','status','PERSON','_onConnectionOpen','@univerjs/network','b64DecodeUnicode','CollaborationUIEventId','getFocusedUnit','fetching\x20missing\x20changesets\x20from\x20','unitId\x20is\x20not\x20found','_unitLoaded$','MemberService','FETCH_MISSING','docStateChange$','HEARTBEAT_INTERVAL_KEY','resourceIDs','&to=','unitID','hasOwnProperty','version','file','Error\x20on\x20receiving\x20event','LOCAL_CACHE_INTERVAL','origin','CommentService','_onRemoteRetry','connection\x20error','_localeService','_shouldReportTelemetry','update','onStarting','[SyncedState]:\x20received\x20rejection.','/-/object/-/batch_allowed','1664392JcmbCn','_incrementRevisionNumber','size','output','CollaborationAttachmentIoService','_getLoginPath','@univerjs-pro/license','find','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','isCompositionEnd','CHANGESET_ACK','uuidv4','_sendingTimer','_eventService','_stopTelemetryCollaborationNewChangeset','USERS_ENTER','getActiveSheet','create','selections','ImageUploadStatusType','session.room-not-exists','replace','Failed\x20to\x20update\x20permission\x20point','sessionStatus$','BoardCollaborationEntity','onRemoteRej','ERROR_IMAGE','push','getGlobalObject','_initMergeInterceptor','_substituteRedoStack','_transformService','_getAPIPrefix','_substituteUndoStack','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','SyncedState','joinRsp','_onOffline','FetchingMissState','members','_socketMessageSubscription','getUnitId','generateRandomId','url','focused$','has','_acknowledgedAwaitingRevision','actions','CHANGESET_SHOULD_RETRY','fetch_missing','_socket','changesets','socketService','_getCurrentRevision','getDeserializedSheetBlock','getCurrentSelections','constructor','_userManagerService','/universer-api/snapshot/','_collaborationUIEventService','equals','DEFAULT_COLLAB_WEB_SOCKET_URL','IUniverInstanceService','loadOfflineData','reduce','packageName','avatar','number\x20expected,\x20got\x20','_sender','collaboration-client.config','[DataLoaderService]','takeUntil','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','FAIL','UniverProSlides','\x0aCurrent:\x20','CONFLICT','updateSnapshot','enableCollaboration','workbook','online$','getValue','Inject','getImageSourceCache','_event$','88PiVfRg','key','assign','some','BaseCollaborationEntity','event$','/universer-api/stream/file/upload','listCollaborators','defineProperty','[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.','stringify','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','encode','AwaitingState','_getRedoStack','AWAITING','ITransformService','refreshPermission','collabSubmitChangesetUrl','_socketChannels','_schedule','40233KTQcKY','onSendChangeset','MUTATION','endpoint','getUnit','AAD','textEncoder','_socketService','type','changeset','filter','UniverProtocol','/resources','sendChangesetTimeout','conflict','getUnitOnRev','/-/object/list','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_onUserJoin','getSnapshotAPIPath','HELLO','ws://127.0.0.1:8000/universer-api/comb/connect','_createHandler','disablePadding','setCfgEnableObjInherit','/allowed','7FIxSok','SNAPSHOT_URL_KEY','socket$','_onRemoteRejected','sessionStatus','RevisionService','tagLength','_clearHeartbeatTimer','_roomCreated$','_acknowledgeAwaiting','incrementRevOfUnit','@univerjs-pro/collaboration','list','_createInitialStateImpl','snapshotServerUrl','collaboratorID','_resolveSessionIdentity','_sessionStatus$','HEARTBEAT_TIMEOUT','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','enableAuthServer','collaboration_new_changeset','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','PSEUDO_FETCH_MISSING_RESULT','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','SheetCollaborationEntity','IContextService','[CollaborationUndoRedoService]','executeCommand','_startCollaboration','collaMsg','onSyncEditingCollabCursor','string\x20expected','_getUploadFileURL','ILogService','includes','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','awaitingChangeset','rev'];_0x2261=function(){return _0x492076;};return _0x2261();}function _0x4e8d(_0x26bafd,_0x3b4494){_0x26bafd=_0x26bafd-0xeb;const _0x2261f2=_0x2261();let _0x4e8dd6=_0x2261f2[_0x26bafd];return _0x4e8dd6;}(function(_0x2dc0e6,_0x1c0a7){const _0x36f061=_0x4e8d,_0x2de401=_0x2dc0e6();while(!![]){try{const _0x2e9bb4=-parseInt(_0x36f061(0x446))/0x1+parseInt(_0x36f061(0x44e))/0x2+parseInt(_0x36f061(0x243))/0x3*(-parseInt(_0x36f061(0x22e))/0x4)+parseInt(_0x36f061(0x3bb))/0x5+parseInt(_0x36f061(0x134))/0x6+parseInt(_0x36f061(0x25d))/0x7*(parseInt(_0x36f061(0x1d9))/0x8)+parseInt(_0x36f061(0x39a))/0x9*(-parseInt(_0x36f061(0x445))/0xa);if(_0x2e9bb4===_0x1c0a7)break;else _0x2de401['push'](_0x2de401['shift']());}catch(_0x1bb4c6){_0x2de401['push'](_0x2de401['shift']());}}}(_0x2261,0x51dd4),function(_0x205182,_0x1ac627){const _0x1dd4bb=_0x4e8d;typeof exports=='object'&&typeof module<'u'?_0x1ac627(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==_0x1dd4bb(0x289)&&define[_0x1dd4bb(0x28a)]?define([_0x1dd4bb(0x2e7),_0x1dd4bb(0x268),'@univerjs/core',_0x1dd4bb(0x1a1),'@univerjs/sheets',_0x1dd4bb(0x3da),_0x1dd4bb(0x2ce),_0x1dd4bb(0x34d),_0x1dd4bb(0x3ab),_0x1dd4bb(0x10e),_0x1dd4bb(0x1bc),_0x1dd4bb(0x1df),_0x1dd4bb(0x2eb)],_0x1ac627):(_0x205182=typeof globalThis<'u'?globalThis:_0x205182||self,_0x1ac627(_0x205182[_0x1dd4bb(0x375)]={},_0x205182[_0x1dd4bb(0x2c6)],_0x205182[_0x1dd4bb(0x344)],_0x205182[_0x1dd4bb(0x429)],_0x205182[_0x1dd4bb(0x168)],_0x205182['rxjs'],_0x205182[_0x1dd4bb(0x24e)],_0x205182[_0x1dd4bb(0x10d)],_0x205182[_0x1dd4bb(0x3da)]['operators'],_0x205182[_0x1dd4bb(0x223)],_0x205182['UniverNetwork'],_0x205182[_0x1dd4bb(0x2cc)],_0x205182[_0x1dd4bb(0x299)]));}(this,function(_0x4baffb,_0x20c203,_0x2d0b9f,_0x33f3ff,_0x2ba48b,_0x31dca4,_0x11fae4,_0x20ecbc,_0x2ba3c8,_0x4d2eeb,_0xc90c47,_0x3478b3,_0x247c19){const _0x405303=_0x4e8d;Object[_0x405303(0x236)](_0x4baffb,Symbol[_0x405303(0x1b7)],{'value':_0x405303(0x2f2)});let _0x51e182='collaboration-client.config',_0x5939b8={},_0x219b9d=_0x405303(0x258),_0x1dd4cb=0x4e20;function _0x18ce34(_0x2773ee){const _0x433595=_0x405303;return JSON['stringify'](_0x2773ee)[_0x433595(0x182)];}function _0x4dd0ed(_0x17c066){'@babel/helpers - typeof';const _0x40023c=_0x405303;return _0x4dd0ed=typeof Symbol==_0x40023c(0x289)&&typeof Symbol[_0x40023c(0x447)]=='symbol'?function(_0x5da3ef){return typeof _0x5da3ef;}:function(_0x19cfde){const _0x2fef90=_0x40023c;return _0x19cfde&&typeof Symbol==_0x2fef90(0x289)&&_0x19cfde[_0x2fef90(0x211)]===Symbol&&_0x19cfde!==Symbol[_0x2fef90(0xf2)]?_0x2fef90(0x298):typeof _0x19cfde;},_0x4dd0ed(_0x17c066);}function _0x156fac(_0x4dc2be,_0x1a051){const _0x383278=_0x405303;if(_0x4dd0ed(_0x4dc2be)!=_0x383278(0x314)||!_0x4dc2be)return _0x4dc2be;var _0x1f97c2=_0x4dc2be[Symbol[_0x383278(0x2d2)]];if(_0x1f97c2!==void 0x0){var _0x50a75c=_0x1f97c2[_0x383278(0x2ed)](_0x4dc2be,_0x1a051||_0x383278(0x2ab));if(_0x4dd0ed(_0x50a75c)!='object')return _0x50a75c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1a051===_0x383278(0x163)?String:Number)(_0x4dc2be);}function _0x33c5d3(_0x263f08){const _0x91768f=_0x405303;var _0x2f59b9=_0x156fac(_0x263f08,_0x91768f(0x163));return _0x4dd0ed(_0x2f59b9)==_0x91768f(0x298)?_0x2f59b9:_0x2f59b9+'';}function _0x4219eb(_0x257624,_0xcb86aa,_0x575ff3){return(_0xcb86aa=_0x33c5d3(_0xcb86aa))in _0x257624?Object['defineProperty'](_0x257624,_0xcb86aa,{'value':_0x575ff3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x257624[_0xcb86aa]=_0x575ff3,_0x257624;}let _0x3f9476=function(_0x73be8e){const _0x14b290=_0x405303;return _0x73be8e[_0x14b290(0x129)]=_0x14b290(0x129),_0x73be8e[_0x14b290(0x421)]='PERMISSION_DENIED',_0x73be8e[_0x14b290(0x225)]='CONFLICT',_0x73be8e[_0x14b290(0x2d7)]='CLOSE_ROOM',_0x73be8e[_0x14b290(0x1a0)]=_0x14b290(0x1a0),_0x73be8e[_0x14b290(0x294)]=_0x14b290(0x294),_0x73be8e[_0x14b290(0x384)]=_0x14b290(0x384),_0x73be8e[_0x14b290(0x107)]='SUBMIT_CHANGESET_TIMEOUT',_0x73be8e;}({});var _0xa9d46c=class{constructor(){const _0x5aad41=_0x405303;_0x4219eb(this,'_event$',new _0x31dca4[(_0x5aad41(0x29e))]()),_0x4219eb(this,'event$',this[_0x5aad41(0x22d)][_0x5aad41(0x41c)]());}['emitEvent'](_0x18d4a2){const _0x4768e7=_0x405303;this[_0x4768e7(0x22d)][_0x4768e7(0x131)](_0x18d4a2);}},_0x432b3d=class{constructor(){const _0x19c163=_0x405303;_0x4219eb(this,'_commentUpdate$',new _0x31dca4['Subject']()),_0x4219eb(this,_0x19c163(0x392),this['_commentUpdate$'][_0x19c163(0x41c)]());}[_0x405303(0x415)](_0x8045e7){const _0x3d3422=_0x405303;this[_0x3d3422(0x1ab)][_0x3d3422(0x131)](_0x8045e7);}};function _0x43549d(_0x12d1fc,_0x151546){return function(_0x40eb9f,_0x261d3c){_0x151546(_0x40eb9f,_0x261d3c,_0x12d1fc);};}function _0x3934d9(_0x383f26,_0xec8204,_0xae13e7,_0xcaf472){const _0x1705e5=_0x405303;var _0x132fd7=arguments[_0x1705e5(0x182)],_0x283a60=_0x132fd7<0x3?_0xec8204:_0xcaf472===null?_0xcaf472=Object['getOwnPropertyDescriptor'](_0xec8204,_0xae13e7):_0xcaf472,_0x6fde4c;if(typeof Reflect=='object'&&typeof Reflect[_0x1705e5(0xec)]=='function')_0x283a60=Reflect['decorate'](_0x383f26,_0xec8204,_0xae13e7,_0xcaf472);else{for(var _0x3632a5=_0x383f26[_0x1705e5(0x182)]-0x1;_0x3632a5>=0x0;_0x3632a5--)(_0x6fde4c=_0x383f26[_0x3632a5])&&(_0x283a60=(_0x132fd7<0x3?_0x6fde4c(_0x283a60):_0x132fd7>0x3?_0x6fde4c(_0xec8204,_0xae13e7,_0x283a60):_0x6fde4c(_0xec8204,_0xae13e7))||_0x283a60);}return _0x132fd7>0x3&&_0x283a60&&Object[_0x1705e5(0x236)](_0xec8204,_0xae13e7,_0x283a60),_0x283a60;}let _0x42c2f1=class extends _0x2d0b9f[_0x405303(0x2c1)]{constructor(_0x34fda0){const _0x4333bd=_0x405303;super(),this[_0x4333bd(0x347)]=_0x34fda0,_0x4219eb(this,_0x4333bd(0x3e5),new Map()),_0x4219eb(this,_0x4333bd(0x265),new _0x31dca4[(_0x4333bd(0x29e))]()),this['disposeWithMe']((0x0,_0x31dca4[_0x4333bd(0xfd)])(this[_0x4333bd(0x347)][_0x4333bd(0x336)](_0x2d0b9f[_0x4333bd(0x341)]['UNIVER_SHEET'])[_0x4333bd(0x18e)]((0x0,_0x2ba3c8[_0x4333bd(0x110)])(_0xcae10b=>_0xcae10b[_0x4333bd(0x202)]())),this['_univerInstanceService'][_0x4333bd(0x336)](_0x2d0b9f['UniverInstanceType'][_0x4333bd(0x13a)])[_0x4333bd(0x18e)]((0x0,_0x2ba3c8[_0x4333bd(0x110)])(_0x40b976=>_0x40b976[_0x4333bd(0x202)]())),this[_0x4333bd(0x347)][_0x4333bd(0x336)](_0x2d0b9f[_0x4333bd(0x341)][_0x4333bd(0x333)])[_0x4333bd(0x18e)]((0x0,_0x2ba3c8[_0x4333bd(0x110)])(_0x3ce9ee=>_0x3ce9ee[_0x4333bd(0x202)]())),this['_univerInstanceService'][_0x4333bd(0x336)](_0x2d0b9f[_0x4333bd(0x341)][_0x4333bd(0x17d)])[_0x4333bd(0x18e)]((0x0,_0x2ba3c8[_0x4333bd(0x110)])(_0x3fa5f6=>_0x3fa5f6['getUnitId']())))[_0x4333bd(0x120)](_0x1fe699=>this[_0x4333bd(0x10b)](_0x1fe699)));}[_0x405303(0x3b7)](_0x253f86){const _0x1744fa=_0x405303;return this[_0x1744fa(0x3e5)]['has'](_0x253f86)?(0x0,_0x31dca4['of'])(this['_roomMembers'][_0x1744fa(0x1b8)](_0x253f86)):this[_0x1744fa(0x265)][_0x1744fa(0x18e)]((0x0,_0x2ba3c8[_0x1744fa(0x110)])(_0x340a84=>{const _0x15a06a=_0x1744fa;if(_0x340a84===_0x253f86)return this[_0x15a06a(0x3e5)][_0x15a06a(0x1b8)](_0x340a84);}));}[_0x405303(0x3ce)](_0x30747b,_0x3b6a8e){const _0x3c3d74=_0x405303;let _0x100cbc=this[_0x3c3d74(0x3e5)][_0x3c3d74(0x1b8)](_0x30747b);_0x100cbc||(_0x100cbc=new _0x2ed6f4(),this[_0x3c3d74(0x3e5)][_0x3c3d74(0x339)](_0x30747b,_0x100cbc),this[_0x3c3d74(0x265)][_0x3c3d74(0x131)](_0x30747b)),_0x100cbc[_0x3c3d74(0x3ce)](_0x3b6a8e);}[_0x405303(0x357)](_0x4f407b,_0x442b3f){const _0x2914ce=_0x405303;let _0x3863fd=this[_0x2914ce(0x3e5)][_0x2914ce(0x1b8)](_0x4f407b);_0x3863fd&&_0x3863fd['removeMember'](_0x442b3f);}[_0x405303(0x30c)](_0x218c9c){const _0x2a0b2a=_0x405303;return this[_0x2a0b2a(0x3e5)][_0x2a0b2a(0x1b8)](_0x218c9c);}['getMember'](_0x488fd6,_0x5f072d){const _0x1c8acd=_0x405303;let _0x2a3db2=this[_0x1c8acd(0x3e5)][_0x1c8acd(0x1b8)](_0x488fd6);if(_0x2a3db2)return _0x2a3db2[_0x1c8acd(0x174)](_0x5f072d);}[_0x405303(0x10b)](_0x4e5947){const _0x1ae814=_0x405303;let _0x31664d=this['_roomMembers'][_0x1ae814(0x1b8)](_0x4e5947);_0x31664d&&(_0x31664d[_0x1ae814(0x309)](),this[_0x1ae814(0x3e5)][_0x1ae814(0x142)](_0x4e5947));}[_0x405303(0x309)](){const _0x13f50e=_0x405303;this[_0x13f50e(0x3e5)][_0x13f50e(0x412)](_0x7b2b24=>_0x7b2b24[_0x13f50e(0x309)]()),this[_0x13f50e(0x3e5)][_0x13f50e(0x3c7)](),this['_roomCreated$']['complete']();}};_0x42c2f1=_0x3934d9([_0x43549d(0x0,_0x2d0b9f[_0x405303(0x217)])],_0x42c2f1);var _0x2ed6f4=class extends _0x2d0b9f[_0x405303(0x2c1)]{constructor(..._0x3740e7){const _0xd33643=_0x405303;super(..._0x3740e7),_0x4219eb(this,_0xd33643(0x124),new Map()),_0x4219eb(this,_0xd33643(0x413),new _0x31dca4[(_0xd33643(0x31b))](this[_0xd33643(0x124)])),_0x4219eb(this,_0xd33643(0xff),this[_0xd33643(0x413)][_0xd33643(0x41c)]());}[_0x405303(0x309)](){const _0x674a40=_0x405303;this[_0x674a40(0x124)][_0x674a40(0x3c7)](),this[_0x674a40(0x413)]['complete']();}[_0x405303(0x3ce)](_0x18fdb4){const _0x5af936=_0x405303;this[_0x5af936(0x124)][_0x5af936(0x339)](_0x18fdb4['memberID'],_0x18fdb4),this['_emitMembers']();}[_0x405303(0x357)](_0x50b73a){const _0x5e438c=_0x405303;this['_members']['delete'](_0x50b73a),this[_0x5e438c(0x34c)]();}[_0x405303(0x174)](_0x3587cd){const _0x287e99=_0x405303;return this['_members'][_0x287e99(0x1b8)](_0x3587cd);}[_0x405303(0x391)](){const _0x2d1425=_0x405303;return Array[_0x2d1425(0x154)](this[_0x2d1425(0x124)][_0x2d1425(0x1af)]());}['_emitMembers'](){const _0x3ec15b=_0x405303;this[_0x3ec15b(0x413)][_0x3ec15b(0x131)](this[_0x3ec15b(0x124)]);}};function _0xecb3e0(_0x3ca447,_0x51cd89){const _0x154a3d=_0x405303;if(_0x27e9d8(_0x3ca447))return _0x51cd89;if(_0x51cd89['eventID']===_0x20c203[_0x154a3d(0x3e1)][_0x154a3d(0x3ba)]){var _0x5d6d6f;let _0x4ec441=_0x445cd3(_0x3ca447),_0xff3092=_0x51cd89;return{..._0xff3092,'data':{..._0xff3092[_0x154a3d(0x3be)],'unitID':_0x3ca447['target'][_0x154a3d(0x29b)],'unitType':(_0x5d6d6f=_0x3ca447['target'][_0x154a3d(0x311)])==null?_0xff3092[_0x154a3d(0x3be)][_0x154a3d(0x311)]:_0x5d6d6f,'changeset':_0x4ec441[_0x154a3d(0x16a)](_0xff3092['data'][_0x154a3d(0x24c)],_0x12ae60(_0x3ca447))}};}if(_0x51cd89['eventID']===_0x20c203[_0x154a3d(0x3e1)]['FETCH_MISSING']){var _0x11452e;let _0x4bf58b=_0x51cd89;return{..._0x4bf58b,'data':{..._0x4bf58b['data'],'unitID':_0x3ca447['target'][_0x154a3d(0x29b)],'unitType':(_0x11452e=_0x3ca447['target'][_0x154a3d(0x311)])==null?_0x4bf58b['data'][_0x154a3d(0x311)]:_0x11452e}};}return _0x51cd89;}function _0x2566ac(_0x258007,_0x548f68){const _0x1d65ce=_0x405303;if(_0x27e9d8(_0x258007))return[_0x548f68];switch(_0x548f68['eventID']){case _0x20c203[_0x1d65ce(0x3e1)][_0x1d65ce(0x2c5)]:return[_0x347482(_0x258007,_0x548f68)];case _0x20c203['CollaborationEvent'][_0x1d65ce(0x275)]:return[_0xce7e49(_0x258007,_0x548f68)];case _0x20c203[_0x1d65ce(0x3e1)][_0x1d65ce(0x209)]:return[_0x1298a1(_0x258007,_0x548f68)];default:return[_0x548f68];}}function _0x27e9d8(_0x301a8d){const _0x3358ad=_0x405303;return _0x301a8d[_0x3358ad(0x11c)][_0x3358ad(0x246)]==null&&_0x301a8d['target']['unitId']===_0x301a8d[_0x3358ad(0x2aa)]&&!_0x301a8d['changeset'];}function _0x347482(_0x4d465d,_0x4d2419){const _0x45bd91=_0x405303;return{..._0x4d2419,'data':(0x0,_0x20c203['parseChangesetToProtocol'])(_0xf8048d(_0x4d465d,(0x0,_0x20c203[_0x45bd91(0x2b6)])(_0x4d2419[_0x45bd91(0x3be)])))};}function _0x1298a1(_0x4ffca0,_0x24f790){const _0x424571=_0x405303;return{..._0x24f790,'data':_0xf8048d(_0x4ffca0,_0x24f790[_0x424571(0x3be)])};}function _0xce7e49(_0x25e966,_0x4724ff){const _0x4ffec8=_0x405303;let _0x462bdf=_0x4724ff[_0x4ffec8(0x3be)];return{..._0x4724ff,'data':{..._0x462bdf,'changesets':_0x462bdf[_0x4ffec8(0x20c)][_0x4ffec8(0x110)](_0x352a3f=>(0x0,_0x20c203['parseChangesetToProtocol'])(_0xf8048d(_0x25e966,(0x0,_0x20c203['parseProtocolChangeset'])(_0x352a3f))))}};}function _0xf8048d(_0x5ca183,_0x405b52){return _0x445cd3(_0x5ca183)['toLocal'](_0x405b52,_0x12ae60(_0x5ca183));}function _0x445cd3(_0x5c4f3e){const _0x493b73=_0x405303;if(!_0x5c4f3e[_0x493b73(0x24c)])throw Error(_0x493b73(0x1fb));return _0x5c4f3e[_0x493b73(0x24c)];}function _0x12ae60(_0x5e7f78){const _0x33892f=_0x405303;return{'localUnitId':_0x5e7f78[_0x33892f(0x2aa)],'unitType':_0x5e7f78[_0x33892f(0x311)],'target':_0x5e7f78[_0x33892f(0x11c)]};}let _0x53b627=function(_0x21e733){const _0x1c2e95=_0x405303;return _0x21e733[_0x21e733['IDLE']=0x0]=_0x1c2e95(0x296),_0x21e733[_0x21e733[_0x1c2e95(0x39d)]=0x1]=_0x1c2e95(0x39d),_0x21e733[_0x21e733[_0x1c2e95(0x425)]=0x2]=_0x1c2e95(0x425),_0x21e733[_0x21e733[_0x1c2e95(0x360)]=0x3]=_0x1c2e95(0x360),_0x21e733;}({}),_0x139cf2={[_0x11fae4[_0x405303(0x3b3)][_0x405303(0x222)]]:_0x405303(0x3aa),[_0x11fae4[_0x405303(0x3b3)]['JOIN_ROOM_FULL']]:_0x405303(0x365),[_0x11fae4['CmdRspCode'][_0x405303(0x3cb)]]:_0x405303(0x1ed),[_0x11fae4[_0x405303(0x3b3)][_0x405303(0x2e2)]]:_0x405303(0x321),[_0x11fae4[_0x405303(0x3b3)][_0x405303(0x44c)]]:_0x405303(0x18d)},_0x1213e3=class extends _0x2d0b9f['RxDisposable']{get['sessionStatus'](){const _0x5a63ca=_0x405303;return this[_0x5a63ca(0x26e)][_0x5a63ca(0x22a)]();}constructor(_0x5bce75,_0x2febdb,_0xa75a4,_0x43a1a2,_0x195c20,_0x5d58bb,_0x4a063f,_0x277a06){const _0x3a14b6=_0x405303;super(),this[_0x3a14b6(0x143)]=_0x5bce75,this[_0x3a14b6(0x3d5)]=_0xa75a4,this[_0x3a14b6(0x3d2)]=_0x43a1a2,this[_0x3a14b6(0x2cf)]=_0x195c20,this['_commentService']=_0x5d58bb,this['_collaborationUIEventService']=_0x4a063f,this[_0x3a14b6(0x3db)]=_0x277a06,_0x4219eb(this,_0x3a14b6(0x26e),new _0x31dca4[(_0x3a14b6(0x31b))](0x0)),_0x4219eb(this,'sessionStatus$',this['_sessionStatus$'][_0x3a14b6(0x41c)]()),_0x4219eb(this,_0x3a14b6(0x22d),new _0x31dca4[(_0x3a14b6(0x29e))]()),_0x4219eb(this,'event$',this['_event$'][_0x3a14b6(0x41c)]()),_0x4219eb(this,_0x3a14b6(0x20b),void 0x0),_0x4219eb(this,_0x3a14b6(0x201),void 0x0),_0x4219eb(this,_0x3a14b6(0x117),void 0x0),_0x4219eb(this,_0x3a14b6(0x1d4),!0x1),_0x4219eb(this,'_telemetryInfo',null),this[_0x3a14b6(0x1d4)]=!!this['_telemetryService'],_0x2febdb[_0x3a14b6(0x18e)]((0x0,_0x31dca4[_0x3a14b6(0x220)])(this['dispose$']))[_0x3a14b6(0x120)](_0x1f5fbe=>{const _0x3254a4=_0x3a14b6;if(_0x1f5fbe!==void 0x0){if(this[_0x3254a4(0x20b)]=_0x1f5fbe,_0x1f5fbe)this[_0x3254a4(0x195)](_0x1f5fbe),this['_socketMessageSubscription']=_0x1f5fbe['message$']['subscribe'](_0x291655=>{const _0x571446=_0x3254a4;_0x291655[_0x571446(0x2bb)]===this[_0x571446(0x143)][_0x571446(0x11c)]['unitId']&&this['_onCombEvent'](_0x291655);});else{var _0x1b7b0b;this[_0x3254a4(0x41b)](),this['_sessionStatus$'][_0x3254a4(0x131)](0x2),(_0x1b7b0b=this[_0x3254a4(0x201)])==null||_0x1b7b0b[_0x3254a4(0x3e8)](),this[_0x3254a4(0x201)]=null;}}});}[_0x405303(0x32d)](){const _0x17591b=_0x405303;var _0x4deae8,_0x19f856;return(_0x4deae8=(_0x19f856=this[_0x17591b(0x20b)])==null?void 0x0:_0x19f856[_0x17591b(0x29d)])==null?null:_0x4deae8;}[_0x405303(0x309)](){const _0xb648aa=_0x405303;super[_0xb648aa(0x309)](),this[_0xb648aa(0x2dd)](),this[_0xb648aa(0x405)]['next'](),this[_0xb648aa(0x405)][_0xb648aa(0x104)]();}['close'](){const _0x4c3c0b=_0x405303;var _0x3f7393;this['_throwTelemetryCollaborationNewChangeset'](),(_0x3f7393=this[_0x4c3c0b(0x20b)])==null||_0x3f7393[_0x4c3c0b(0x177)]({'cmd':_0x11fae4[_0x4c3c0b(0x139)][_0x4c3c0b(0x18b)],'data':{'roomID':this[_0x4c3c0b(0x143)][_0x4c3c0b(0x11c)][_0x4c3c0b(0x29b)]}}),this[_0x4c3c0b(0x22d)]['complete'](),this[_0x4c3c0b(0x26e)]['complete']();}[_0x405303(0x38d)](_0x559938){const _0x39fa47=_0x405303;_0x559938[_0x39fa47(0x164)]===_0x11fae4[_0x39fa47(0x139)][_0x39fa47(0x315)]?this[_0x39fa47(0x15f)](_0x559938):_0x559938[_0x39fa47(0x164)]===_0x11fae4[_0x39fa47(0x139)][_0x39fa47(0x359)]&&this[_0x39fa47(0x323)](_0x559938);}[_0x405303(0x195)](_0x5cb139){const _0x413e14=_0x405303;this[_0x413e14(0x26e)]['next'](0x1),_0x5cb139['send']({'cmd':_0x11fae4[_0x413e14(0x139)][_0x413e14(0x315)],'routeKey':this[_0x413e14(0x143)]['target'][_0x413e14(0x29b)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x413e14(0x11c)]['unitId']}]}});}[_0x405303(0x15f)](_0x3dc308){const _0x333485=_0x405303;var _0x1b5e33;if(_0x3dc308[_0x333485(0x2c4)]in _0x139cf2){this[_0x333485(0x214)][_0x333485(0x31f)]({'id':_0x333485(0x1a0),'data':_0x139cf2[_0x3dc308['code']]}),this['_sessionStatus$'][_0x333485(0x131)](0x2);return;}this[_0x333485(0x26e)]['next'](0x3);let _0x3b8605=(_0x1b5e33=_0x3dc308[_0x333485(0x3be)][_0x333485(0x133)][this['_identity'][_0x333485(0x11c)][_0x333485(0x29b)]])==null?void 0x0:_0x1b5e33[_0x333485(0x200)];_0x3b8605&&_0x3b8605['forEach'](_0x303c9b=>this[_0x333485(0x2cf)][_0x333485(0x3ce)](this[_0x333485(0x143)][_0x333485(0x2aa)],_0x303c9b));}['_onRecvEvent'](_0x175e43){const _0x128280=_0x405303;try{let _0x2c899f=_0x2566ac(this[_0x128280(0x143)],_0x175e43[_0x128280(0x3be)]);for(let _0x399c52 of _0x2c899f)switch(_0x399c52['eventID']){case _0x20c203['CollaborationEvent'][_0x128280(0x1e8)]:this['_onUserJoin'](_0x399c52),this[_0x128280(0x22d)]['next'](_0x399c52);break;case _0x20c203[_0x128280(0x3e1)]['USERS_LEAVE']:this[_0x128280(0x3c0)](_0x399c52),this[_0x128280(0x22d)]['next'](_0x399c52);break;case _0x20c203['CollaborationEvent']['CHANGESET_ACK']:case _0x20c203[_0x128280(0x3e1)][_0x128280(0x209)]:this[_0x128280(0x1e7)](),this[_0x128280(0x10c)](),this[_0x128280(0x22d)][_0x128280(0x131)](_0x399c52);break;case _0x20c203[_0x128280(0x3e1)][_0x128280(0x3e4)]:this['_logService'][_0x128280(0x2a9)](_0x128280(0x138)+JSON[_0x128280(0x238)](_0x399c52)),this[_0x128280(0x22d)][_0x128280(0x131)](_0x399c52);break;case _0x20c203[_0x128280(0x3e1)][_0x128280(0x345)]:this['_commentService']['onCommentUpdate'](_0x399c52[_0x128280(0x3be)]),this[_0x128280(0x22d)]['next'](_0x399c52);break;default:this[_0x128280(0x22d)][_0x128280(0x131)](_0x399c52);}}catch(_0x5a96b1){this['_logService'][_0x128280(0x2a9)](_0x5a96b1,_0x175e43);}}[_0x405303(0x255)](_0x58b47a){const _0x568279=_0x405303;this[_0x568279(0x2cf)][_0x568279(0x3ce)](this['_identity']['localUnitId'],_0x58b47a[_0x568279(0x3be)]);}[_0x405303(0x3c0)](_0x3c1def){const _0x30769b=_0x405303;this[_0x30769b(0x2cf)][_0x30769b(0x357)](this[_0x30769b(0x143)][_0x30769b(0x2aa)],_0x3c1def[_0x30769b(0x3be)][_0x30769b(0x29d)]);}async[_0x405303(0x177)](_0x333a8d,_0x21063c){const _0x287f81=_0x405303;if(this[_0x287f81(0x261)]!==0x3||!this[_0x287f81(0x20b)])throw Error(_0x287f81(0x101));try{let _0x234e75=_0xecb3e0(this[_0x287f81(0x143)],_0x333a8d);_0x234e75[_0x287f81(0x3cc)]===_0x20c203[_0x287f81(0x3e1)][_0x287f81(0x3ba)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x287f81(0x38a)](_0x234e75)),this[_0x287f81(0x20b)][_0x287f81(0x177)]({'cmd':_0x11fae4[_0x287f81(0x139)][_0x287f81(0x108)],'routeKey':this[_0x287f81(0x143)][_0x287f81(0x11c)][_0x287f81(0x29b)],'routeType':'','data':_0x234e75});}catch(_0x1ed680){this[_0x287f81(0x3d5)]['error'](_0x1ed680);}}[_0x405303(0x3b9)](){const _0x32cb6c=_0x405303;var _0x165a2f;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x14d6a9=_0x4e8d;this[_0x14d6a9(0x117)]=null,this[_0x14d6a9(0x214)]['emitEvent']({'id':_0x14d6a9(0x107)});},(_0x165a2f=this[_0x32cb6c(0x3d2)][_0x32cb6c(0x112)](_0x32cb6c(0x26f)))==null?_0x1dd4cb:_0x165a2f);}[_0x405303(0x10c)](){const _0x407e00=_0x405303;this[_0x407e00(0x117)]&&(clearTimeout(this[_0x407e00(0x117)]),this[_0x407e00(0x117)]=null);}[_0x405303(0x38a)](_0x18a0ca){const _0x38e85c=_0x405303;if(!this['_shouldReportTelemetry'])return;let {data:_0x4f1d6a}=_0x18a0ca,{unitID:_0x39af65,changeset:_0x39dd48}=_0x4f1d6a,{mutations:_0x4f96c0,type:_0x3d5634}=_0x39dd48;this[_0x38e85c(0x3f2)]={'unitId':_0x39af65,'type':_0x3d5634,'startTime':performance[_0x38e85c(0x2cb)](),'stopTime':0x0,'duration':0x0,'size':_0x18ce34(_0x4f96c0)};}[_0x405303(0x1e7)](){const _0x48864a=_0x405303;if(this[_0x48864a(0x1d4)]){if(!this[_0x48864a(0x3f2)]){this[_0x48864a(0x3d5)][_0x48864a(0x2a9)](_0x48864a(0x420),_0x48864a(0x2f6));return;}this['_telemetryInfo'][_0x48864a(0x303)]=performance[_0x48864a(0x2cb)](),this[_0x48864a(0x3f2)][_0x48864a(0x192)]=this[_0x48864a(0x3f2)][_0x48864a(0x303)]-this['_telemetryInfo'][_0x48864a(0x3d4)],this['_telemetryService'][_0x48864a(0x394)](_0x48864a(0x273),this[_0x48864a(0x3f2)]),this['_telemetryInfo']=null;}}[_0x405303(0x41b)](){const _0x166d3f=_0x405303;this[_0x166d3f(0x3f2)]=null;}};_0x1213e3=_0x3934d9([_0x43549d(0x2,_0x2d0b9f['ILogService']),_0x43549d(0x3,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x42c2f1)),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x432b3d)),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x20ecbc[_0x405303(0x1a4)]))],_0x1213e3);let _0x3e00f7=(0x0,_0x2d0b9f['createIdentifier'])('collaboration-client.local-cache-service');function _0x2ea860(_0x29f256){const _0xd76a3a=_0x405303;return _0xd76a3a(0x356)+_0x29f256;}function _0xb4df(_0x403abe){const _0x3dfa87=_0x405303;let {unitID:_0x19acba,mutations:_0x4c7ea5}=_0x403abe;return{'unitId':_0x19acba,'subUnitId':_0x4c7ea5['length']>0x0?_0x4c7ea5[0x0][_0x3dfa87(0x329)][_0x3dfa87(0x438)]:null};}let _0x201f2c=class{constructor(_0x5725a3,_0x4b01e3,_0x1ae447){const _0x3f7d12=_0x405303;this[_0x3f7d12(0x3ef)]=_0x5725a3,this['_transformService']=_0x4b01e3,this['_instanceService']=_0x1ae447;}[_0x405303(0x41d)](_0x331cc2){const _0x1b944f=_0x405303;var _0x36a919,_0x45dcd4;let _0x1d2c29=this[_0x1b944f(0x3ef)][_0x1b944f(0x1b8)](_0x2ba48b[_0x1b944f(0x2bd)]),{unitId:_0x2c5d04,subUnitId:_0x94d4f0}=_0xb4df(_0x331cc2),_0x25706f=_0x1d2c29==null?void 0x0:_0x1d2c29[_0x1b944f(0x2da)](_0x2c5d04)[_0x1b944f(0x210)](),_0xa54524=(_0x36a919=this[_0x1b944f(0x2b4)][_0x1b944f(0x247)](_0x2c5d04))==null||(_0x36a919=_0x36a919[_0x1b944f(0x1e9)]())==null?void 0x0:_0x36a919[_0x1b944f(0x39f)]();if(_0x25706f['length']===0x0||!_0x2c5d04||!_0x94d4f0)return;let _0x43c74a=[{'id':_0x2ba48b['SetSelectionsOperation']['id'],'params':{'unitId':_0x2c5d04,'subUnitId':_0xa54524,'selections':_0x2d0b9f[_0x1b944f(0x409)][_0x1b944f(0x2b3)](_0x25706f)}}],_0x3199f3=this[_0x1b944f(0x1f8)][_0x1b944f(0x30a)](_0x331cc2,_0x43c74a);if(!(0x0,_0x20c203[_0x1b944f(0x3d8)])(_0x3199f3))throw _0x3199f3[_0x1b944f(0x2a9)];let _0x645af=(_0x45dcd4=_0x3199f3['m2Prime'][0x0])==null||(_0x45dcd4=_0x45dcd4[_0x1b944f(0x329)])==null?void 0x0:_0x45dcd4[_0x1b944f(0x1eb)];if(Array[_0x1b944f(0x1a2)](_0x645af)&&_0x645af[_0x1b944f(0x182)]){if(_0x645af[_0x1b944f(0x182)]===_0x43c74a[0x0][_0x1b944f(0x329)][_0x1b944f(0x1eb)][_0x1b944f(0x182)]&&_0x645af[_0x1b944f(0x16e)]((_0x1d86c4,_0x3cb99e)=>_0x2d0b9f[_0x1b944f(0x3b6)][_0x1b944f(0x215)](_0x1d86c4[_0x1b944f(0x102)],_0x43c74a[0x0][_0x1b944f(0x329)]['selections'][_0x3cb99e][_0x1b944f(0x102)])))return;this[_0x1b944f(0x3ef)][_0x1b944f(0x1b8)](_0x2d0b9f[_0x1b944f(0x326)])[_0x1b944f(0x27a)](_0x2ba48b[_0x1b944f(0x40c)]['id'],{'unitId':_0x2c5d04,'subUnitId':_0xa54524,'selections':_0x645af});}}};_0x201f2c=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x1,_0x20c203[_0x405303(0x23e)]),_0x43549d(0x2,_0x2d0b9f['IUniverInstanceService'])],_0x201f2c);let _0x43c9bd=(0x0,_0x2d0b9f[_0x405303(0x381)])(_0x405303(0x2fa)),_0x42b9d3=function(_0x537962){const _0x21bff7=_0x405303;return _0x537962[_0x537962['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x21bff7(0x16f),_0x537962[_0x537962['OTHER_CLIENTS_EDITING']=0x1]=_0x21bff7(0x188),_0x537962;}({});function _0x522c70(_0x1bb257){const _0x134cb6=_0x405303;var _0x45b1ee;return!!((_0x45b1ee=_0x1bb257['params'])!=null&&_0x45b1ee[_0x134cb6(0x40d)]);}let _0x52182c=new Set([_0x2ba48b['InsertSheetMutation']['id']]),_0x5a379f=new Set([_0x4d2eeb[_0x405303(0x439)]['id'],_0x4d2eeb[_0x405303(0x322)]['id'],_0x4d2eeb[_0x405303(0x29a)]['id'],_0x4d2eeb[_0x405303(0x340)]['id']]);function _0x5e0a87(_0x5cb25e,_0x48a77f=_0x52182c){const _0x5b61f6=_0x405303;let _0x359817=[];for(let _0x210760 of _0x5cb25e){if(_0x48a77f[_0x5b61f6(0x206)](_0x210760['id'])){if(_0x359817[_0x5b61f6(0x182)]>0x0)break;_0x359817[_0x5b61f6(0x1f4)](_0x210760);break;}if(_0x522c70(_0x210760)){if(_0x359817[_0x5b61f6(0x182)]>0x0)break;_0x359817[_0x5b61f6(0x1f4)](_0x210760);break;}_0x359817[_0x5b61f6(0x1f4)](_0x210760);}return _0x359817;}function _0x214201(_0x12617f,_0x5aac09,_0x402cd1,_0xcf2379,_0x287064){const _0x395d48=_0x405303;var _0x43719a,_0x24fa13;let _0x414823=_0x5e0a87(_0x12617f),_0x21d8e1=_0x287064[_0x395d48(0x2ec)](),_0x37f742=(_0x43719a=_0x21d8e1==null?void 0x0:_0x21d8e1['userID'])==null?_0x395d48(0x423):_0x43719a,_0x402102=(_0x24fa13=_0x21d8e1==null?void 0x0:_0x21d8e1[_0x395d48(0x29d)])==null?'unknown':_0x24fa13;return{'changeset':{'unitID':_0x5aac09,'type':(0x0,_0x20c203['mapDocumentTypeToUniverInstanceType'])(_0x402cd1[_0x395d48(0x28d)](_0x5aac09)),'baseRev':_0xcf2379[_0x395d48(0x3a0)](_0x5aac09),'revision':0x0,'userID':_0x37f742,'memberID':_0x402102,'mutations':_0x414823},'pendingMutations':_0x12617f[_0x395d48(0x33d)](_0x414823[_0x395d48(0x182)])};}let _0x41597a=_0x214201;function _0x17b28a(_0x469cee,_0x4fc762,_0x1b42f0,_0x52a870,_0x5dfeae){const _0x153914=_0x405303;var _0x3bc790,_0x350b1d;let _0x371d41=_0x5e0a87(_0x469cee,_0x5a379f),_0x24331b=_0x5dfeae[_0x153914(0x2ec)](),_0x15e05a=(_0x3bc790=_0x24331b==null?void 0x0:_0x24331b['userID'])==null?_0x153914(0x423):_0x3bc790,_0x13c5c=(_0x350b1d=_0x24331b==null?void 0x0:_0x24331b['memberID'])==null?_0x153914(0x423):_0x350b1d;return{'changeset':{'unitID':_0x4fc762,'type':(0x0,_0x20c203[_0x153914(0x3ff)])(_0x1b42f0[_0x153914(0x28d)](_0x4fc762)),'baseRev':_0x52a870[_0x153914(0x3a0)](_0x4fc762),'revision':0x0,'userID':_0x15e05a,'memberID':_0x13c5c,'mutations':_0x371d41},'pendingMutations':_0x469cee[_0x153914(0x33d)](_0x371d41[_0x153914(0x182)])};}function _0x48ec4c(_0x2560b9,_0x17ba61,_0x93bb06,_0x197aa6,_0x370484){const _0x1da597=_0x405303;var _0x38ebe6,_0x6e78f1;let _0x2874f3=_0x2560b9['reduce']((_0x33bc20,_0x3d389e)=>{const _0x5910e0=_0x4e8d;let _0x413bcb=_0x33bc20[_0x33bc20[_0x5910e0(0x182)]-0x1],{id:_0x18706b}=_0x413bcb==null?{}:_0x413bcb,{id:_0x15f87d,type:_0x3dd78d}=_0x3d389e,_0x3cf93f=_0x3d389e[_0x5910e0(0x329)];if(_0x18706b&&_0x18706b!==_0x15f87d)throw Error(_0x5910e0(0x221)+_0x18706b+_0x5910e0(0x11d)+_0x15f87d+'.');if(!_0x413bcb)return[{'id':_0x15f87d,'type':_0x3dd78d,'params':{'unitId':_0x3cf93f[_0x5910e0(0x29b)],'textRanges':_0x3cf93f['textRanges'],'actions':_0x3cf93f[_0x5910e0(0x208)]}}];let _0x287b09=_0x413bcb[_0x5910e0(0x329)];return _0x3152d8(_0x287b09,_0x3cf93f)?[..._0x33bc20['slice'](0x0,-0x1),{..._0x413bcb,'id':_0x15f87d,'type':_0x3dd78d,'params':{'unitId':_0x3cf93f[_0x5910e0(0x29b)],'textRanges':_0x3cf93f['textRanges'],'actions':_0x2d0b9f[_0x5910e0(0x28b)]['compose'](_0x287b09['actions'],_0x3cf93f[_0x5910e0(0x208)])}}]:[..._0x33bc20,{'id':_0x15f87d,'type':_0x3dd78d,'params':{'unitId':_0x3cf93f[_0x5910e0(0x29b)],'textRanges':_0x3cf93f['textRanges'],'actions':_0x3cf93f[_0x5910e0(0x208)]}}];},[]),_0x1c8a44=_0x370484['getCurrentUser'](),_0x5ae16d=(_0x38ebe6=_0x1c8a44==null?void 0x0:_0x1c8a44[_0x1da597(0x395)])==null?_0x1da597(0x423):_0x38ebe6,_0x32233f=(_0x6e78f1=_0x1c8a44==null?void 0x0:_0x1c8a44[_0x1da597(0x29d)])==null?'unknown':_0x6e78f1;return{'changeset':{'unitID':_0x17ba61,'type':(0x0,_0x20c203[_0x1da597(0x3ff)])(_0x93bb06[_0x1da597(0x28d)](_0x17ba61)),'baseRev':_0x197aa6[_0x1da597(0x3a0)](_0x17ba61),'revision':0x0,'userID':_0x5ae16d,'memberID':_0x32233f,'mutations':_0x2874f3},'pendingMutations':_0x2560b9[_0x1da597(0x33d)](_0x2560b9[_0x1da597(0x182)])};}function _0x3152d8(_0x2d1bb0,_0x2fd57e){const _0x27581e=_0x405303;return!_0x3e4fba(_0x2d1bb0)&&!_0x3e4fba(_0x2fd57e)&&_0x1dc32c(_0x2d1bb0[_0x27581e(0x208)],_0x2fd57e[_0x27581e(0x208)]);}function _0x3e4fba(_0x209722){const _0x2239a5=_0x405303;return _0x209722[_0x2239a5(0x1e2)]!==void 0x0;}function _0x1dc32c(_0x4f7b9b,_0xab6ba){return _0x4d6ee(_0x4f7b9b)&&_0x4d6ee(_0xab6ba)&&!_0x2c5b90(_0x4f7b9b)&&!_0x2c5b90(_0xab6ba)&&!_0x8f49b1(_0x4f7b9b)&&!_0x8f49b1(_0xab6ba);}function _0x4d6ee(_0x567ae3){const _0x5ae3c3=_0x405303;return _0x22c531(_0x567ae3)[_0x5ae3c3(0x231)](_0x19218e=>_0x1df95d(_0x19218e)&&_0x19218e['et']==='text-x');}function _0x8f49b1(_0x2558d2){const _0x814af2=_0x405303;return _0x22c531(_0x2558d2)['some'](_0x2fe275=>Array[_0x814af2(0x1a2)](_0x2fe275)||typeof _0x2fe275==_0x814af2(0x163)||typeof _0x2fe275=='number');}function _0x2c5b90(_0x37d401){const _0x737a02=_0x405303;return _0x22c531(_0x37d401)[_0x737a02(0x231)](_0x26d1c8=>!_0x1df95d(_0x26d1c8)||_0x26d1c8['et']!==_0x737a02(0x3bc)||!Array[_0x737a02(0x1a2)](_0x26d1c8['e'])?!0x1:_0x26d1c8['e'][_0x737a02(0x231)](_0x247799=>!_0x1df95d(_0x247799)||!_0x1df95d(_0x247799['body'])?!0x1:Object[_0x737a02(0xf2)][_0x737a02(0x1ca)][_0x737a02(0x2ed)](_0x247799[_0x737a02(0x43d)],_0x737a02(0x330))||Object[_0x737a02(0xf2)]['hasOwnProperty']['call'](_0x247799[_0x737a02(0x43d)],_0x737a02(0x386))||Object[_0x737a02(0xf2)][_0x737a02(0x1ca)][_0x737a02(0x2ed)](_0x247799[_0x737a02(0x43d)],_0x737a02(0x19d))));}function _0x22c531(_0x5c07ed){const _0x1d6d38=_0x405303;if(!Array[_0x1d6d38(0x1a2)](_0x5c07ed))return[];let _0x3d0591=_0x5c07ed['includes'](_0x1d6d38(0x43d))?_0x5c07ed:_0x5c07ed[_0x1d6d38(0x1e0)](_0x45ffd3=>Array[_0x1d6d38(0x1a2)](_0x45ffd3)&&_0x45ffd3[_0x1d6d38(0x281)](_0x1d6d38(0x43d)));if(!Array[_0x1d6d38(0x1a2)](_0x3d0591))return[];let _0x13c8be=_0x3d0591[_0x1d6d38(0x398)](_0x1d6d38(0x43d));return _0x13c8be===-0x1?[]:_0x3d0591[_0x1d6d38(0x33d)](_0x13c8be+0x1);}function _0x1df95d(_0x43f141){const _0x143d65=_0x405303;return typeof _0x43f141=='object'&&!!_0x43f141&&!Array[_0x143d65(0x1a2)](_0x43f141);}function _0x400b38(_0x1f0d72,_0x1ee56f){const _0x16f50f=_0x405303;let _0x26e8bc=new _0x31dca4[(_0x16f50f(0x388))](0x1);return setTimeout(()=>_0x26e8bc['next'](_0x1ee56f),_0x1f0d72),_0x26e8bc[_0x16f50f(0x41c)]()['pipe']((0x0,_0x31dca4[_0x16f50f(0x193)])(0x1));}var _0x22286d,_0x116285,_0x901199;let _0x1e7da3=function(_0xc99f67){const _0x4588f3=_0x405303;return _0xc99f67[_0x4588f3(0x147)]=_0x4588f3(0x13c),_0xc99f67['SYNCED']=_0x4588f3(0x11b),_0xc99f67['PENDING']=_0x4588f3(0xed),_0xc99f67[_0x4588f3(0x23d)]=_0x4588f3(0x403),_0xc99f67[_0x4588f3(0x175)]=_0x4588f3(0x2e6),_0xc99f67['FETCH_MISS']=_0x4588f3(0x20a),_0xc99f67[_0x4588f3(0x225)]=_0x4588f3(0x251),_0xc99f67['OFFLINE']=_0x4588f3(0x42b),_0xc99f67;}({}),_0x329193=0x4e20,_0x1f600d=0x2bf20;var _0x2a4010=class{constructor(_0x2b74eb,_0x269642,_0x31b0a4,_0x5e1c06,_0x5e449d,_0x4acb53,_0x2e8c77,_0x634a3e,_0x3e64ad){const _0x18f975=_0x405303;this[_0x18f975(0x1c9)]=_0x2b74eb,this[_0x18f975(0x24b)]=_0x269642,this[_0x18f975(0x327)]=_0x5e449d,this['_commandService']=_0x4acb53,this[_0x18f975(0x3c8)]=_0x2e8c77,this[_0x18f975(0x291)]=_0x634a3e,this[_0x18f975(0x161)]=_0x3e64ad,_0x4219eb(this,_0x18f975(0x419),null),_0x4219eb(this,_0x18f975(0x43c),[]),this[_0x18f975(0x419)]=_0x31b0a4,this[_0x18f975(0x43c)]=_0x5e1c06;}[_0x405303(0x31a)](_0x2615c2){const _0x48e3d7=_0x405303;let _0x1d67a9=this[_0x48e3d7(0x291)][_0x48e3d7(0x3a0)](this[_0x48e3d7(0x1c9)]);return _0x2615c2['revision']>_0x1d67a9+0x1?(this['_handler'][_0x48e3d7(0x431)]({'from':_0x1d67a9,'to':_0x2615c2['revision']-0x1}),!0x0):!0x1;}[_0x405303(0x3bd)](_0x2f2ca8){const _0x17f7c8=_0x405303;this[_0x17f7c8(0x3c8)][_0x17f7c8(0x312)](this[_0x17f7c8(0x1c9)],_0x2f2ca8);}[_0x405303(0x2a4)](_0x11703c){const _0x5cdbb5=_0x405303;var _0x139526,_0x6c6827;(_0x139526=(_0x6c6827=this[_0x5cdbb5(0x327)])[_0x5cdbb5(0x2de)])==null||_0x139526[_0x5cdbb5(0x2ed)](_0x6c6827,_0x11703c);}['_transformIMECache'](_0x3f496b){const _0x5a8804=_0x405303;var _0x5694e0,_0x3fb778;return(_0x5694e0=(_0x3fb778=this[_0x5a8804(0x327)])[_0x5a8804(0x1a6)])==null?void 0x0:_0x5694e0[_0x5a8804(0x2ed)](_0x3fb778,_0x3f496b);}['_transformStateCache'](_0x5d3e8e){const _0x3f283d=_0x405303;var _0x446a6d,_0x537f7e;return(_0x446a6d=(_0x537f7e=this['_handler'])[_0x3f283d(0x2f9)])==null?void 0x0:_0x446a6d[_0x3f283d(0x2ed)](_0x537f7e,_0x5d3e8e);}[_0x405303(0x430)](_0x3474f4){const _0x2b29ec=_0x405303;var _0x17a1fe,_0x212918,_0xf59fa7;return(_0x17a1fe=(_0x212918=(_0xf59fa7=this[_0x2b29ec(0x327)])[_0x2b29ec(0x1a7)])==null?void 0x0:_0x212918['call'](_0xf59fa7,_0x3474f4))==null?_0x3474f4:_0x17a1fe;}[_0x405303(0x286)](_0x16528d){const _0x3a14fe=_0x405303;var _0x21f8c6,_0xbddd88,_0x40a88f;return(_0x21f8c6=(_0xbddd88=(_0x40a88f=this[_0x3a14fe(0x327)])[_0x3a14fe(0x390)])==null?void 0x0:_0xbddd88[_0x3a14fe(0x2ed)](_0x40a88f,_0x16528d))==null?_0x16528d:_0x21f8c6;}[_0x405303(0x13b)](_0x1f7eca){const _0x4d4dbe=_0x405303;if(this['type']===_0x2d0b9f[_0x4d4dbe(0x341)][_0x4d4dbe(0x13a)]){let {unitID:_0x4d390b,mutations:_0x338089,memberID:_0x48fbbb}=_0x1f7eca,_0x188890=_0x338089['length']>0x0?_0x338089[0x0]['params']['textRanges']:[];if(Array[_0x4d4dbe(0x1a2)](_0x188890)&&_0x188890[_0x4d4dbe(0x182)]>0x0){var _0x302917,_0x4b29c8;(_0x302917=(_0x4b29c8=this[_0x4d4dbe(0x327)])[_0x4d4dbe(0x27d)])==null||_0x302917['call'](_0x4b29c8,{'unitID':_0x4d390b,'memberID':_0x48fbbb,'textRanges':_0x188890});}}}[_0x405303(0xee)](){const _0xa7721=_0x405303;var _0x1742e8;(_0x1742e8=this[_0xa7721(0x161)])==null||_0x1742e8[_0xa7721(0x2bf)](this['unitID'],this['type'],this[_0xa7721(0x419)],this[_0xa7721(0x43c)]);}[_0x405303(0x20e)](){const _0x154377=_0x405303;return this[_0x154377(0x291)][_0x154377(0x3a0)](this[_0x154377(0x1c9)]);}['_incrementRevisionNumber'](){const _0x35b725=_0x405303;this[_0x35b725(0x291)][_0x35b725(0x267)](this[_0x35b725(0x1c9)]);}[_0x405303(0x15e)](_0x3a820a){const _0x4fa3d=_0x405303;let _0x52d887=this[_0x4fa3d(0x430)](_0x3a820a);_0x52d887=this[_0x4fa3d(0x286)](_0x52d887);let _0x318acd=(0x0,_0x2d0b9f[_0x4fa3d(0x14a)])(_0x52d887[_0x4fa3d(0xf9)],this[_0x4fa3d(0xf5)],{'fromCollab':!0x0});if(!_0x318acd[_0x4fa3d(0x379)]){var _0x425ce0;throw _0x318acd[_0x4fa3d(0x2a9)]instanceof Error?_0x318acd[_0x4fa3d(0x2a9)]:Error((_0x425ce0=_0x318acd[_0x4fa3d(0x2a9)])==null?'[CollaborationState]:\x20apply\x20error!':_0x425ce0);}this[_0x4fa3d(0x184)](_0x52d887),this[_0x4fa3d(0x37f)](_0x52d887),this[_0x4fa3d(0x3bd)](_0x3a820a),this['_transformSelections'](_0x52d887),this[_0x4fa3d(0x13b)](_0x52d887),this[_0x4fa3d(0x1da)]();}};let _0x2b0eea=class extends _0x2a4010{constructor(_0x1b5f73,_0xd8c0b8,_0x1c99e1,_0x2d86d9,_0xfb1e01,_0x1fc31b,_0x59b002,_0x3e8cfc,_0xdd87d5,_0x56f921){const _0x5cd402=_0x405303;super(_0x1b5f73,_0xd8c0b8,null,[],_0x1c99e1,_0x59b002,_0x1fc31b,_0x2d86d9,_0x56f921),this[_0x5cd402(0x3ef)]=_0xfb1e01,this[_0x5cd402(0x3d5)]=_0x3e8cfc,this['_transformService']=_0xdd87d5,this[_0x5cd402(0x185)]=_0x56f921,_0x4219eb(this,_0x5cd402(0x1b9),'synced');}[_0x405303(0x3ae)](_0x2b57a7){const _0x3bfa05=_0x405303;let _0xe82823=this[_0x3bfa05(0x3ef)][_0x3bfa05(0x383)](_0x315789,this[_0x3bfa05(0x1c9)],this[_0x3bfa05(0x24b)],[_0x2b57a7],this[_0x3bfa05(0x327)]);return _0xe82823[_0x3bfa05(0x242)](),_0xe82823[_0x3bfa05(0xee)](),_0xe82823;}[_0x405303(0x3af)](_0x48a65e){const _0x3908a4=_0x405303;if(this[_0x3908a4(0x31a)](_0x48a65e))return this['_injector'][_0x3908a4(0x383)](_0x234be3,this[_0x3908a4(0x1c9)],this[_0x3908a4(0x24b)],null,[],null,[_0x48a65e],this[_0x3908a4(0x327)]);try{let _0x4fcd47=this[_0x3908a4(0x1f8)][_0x3908a4(0x30a)](_0x48a65e,[_0x20c203[_0x3908a4(0x167)]]);if((0x0,_0x20c203[_0x3908a4(0x3d8)])(_0x4fcd47)){let {c1Prime:_0x157706}=_0x4fcd47;return this['_executeRemoteChangeset'](_0x157706),this;}throw _0x4fcd47[_0x3908a4(0x2a9)];}catch(_0x5ae554){return this[_0x3908a4(0x3d5)][_0x3908a4(0x2a9)](_0x5ae554),this['_onConflict'](!0x1);}}[_0x405303(0x414)](_0x812c0b){const _0x4b5c8e=_0x405303;return this['_injector'][_0x4b5c8e(0x383)](_0x1af009,this[_0x4b5c8e(0x1c9)],this['type'],null,[],this[_0x4b5c8e(0x327)],_0x812c0b);}['onRemoteAck'](_0x1ad8ac){const _0x2ff8c5=_0x405303;if(_0x1ad8ac[_0x2ff8c5(0x371)]<=this[_0x2ff8c5(0x20e)]())return this;throw Error(_0x2ff8c5(0x119));}['onRemoteRej'](){const _0xa709dd=_0x405303;throw Error(_0xa709dd(0x1d7));}[_0x405303(0x186)](){return this;}[_0x405303(0x11a)](){const _0x239253=_0x405303;return this[_0x239253(0x3ef)]['createInstance'](_0x3b0e9a,this[_0x239253(0x1c9)],this[_0x239253(0x24b)],null,[],this[_0x239253(0x327)]);}[_0x405303(0x3fe)](){return this;}[_0x405303(0x2b5)](){const _0x29f4eb=_0x405303;throw Error(_0x29f4eb(0x34b));}[_0x405303(0x2e8)](){const _0x236c24=_0x405303;let _0x518a75=this[_0x236c24(0x291)]['getCurrentRevOfUnit'](this[_0x236c24(0x1c9)]);return this['_handler'][_0x236c24(0x431)]({'from':_0x518a75,'to':0x0}),this[_0x236c24(0x3ef)][_0x236c24(0x383)](_0x234be3,this[_0x236c24(0x1c9)],this[_0x236c24(0x24b)],null,[],null,[],this[_0x236c24(0x327)]);}};_0x2b0eea=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f['Inject'])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x4,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x5,_0x2d0b9f['IUndoRedoService']),_0x43549d(0x6,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x7,_0x2d0b9f['ILogService']),_0x43549d(0x8,_0x20c203['ITransformService']),_0x43549d(0x9,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x2b0eea);let _0x315789=_0x22286d=class extends _0x2a4010{constructor(_0x20920e,_0x493674,_0x570bfb,_0x5b8a95,_0x5c242a,_0x18afcd,_0x3b5b5b,_0x5ae011,_0x2bbc98,_0x507d5a,_0x33dc57,_0xcc55f5,_0x3849ff,_0x31721f){const _0x3908f5=_0x405303;super(_0x20920e,_0x493674,null,_0x570bfb,_0x5b8a95,_0x2bbc98,_0x3849ff,_0x18afcd,_0x31721f),this[_0x3908f5(0x3ef)]=_0x5c242a,this['_userManagerService']=_0x3b5b5b,this[_0x3908f5(0x3d5)]=_0x5ae011,this['_configService']=_0x507d5a,this['_transformService']=_0x33dc57,this[_0x3908f5(0x347)]=_0xcc55f5,_0x4219eb(this,'status',_0x3908f5(0xed)),_0x4219eb(this,_0x3908f5(0x287),null),_0x4219eb(this,_0x3908f5(0x1e5),null);}['appendMutation'](_0x130324){const _0x4963d1=_0x405303;return this[_0x4963d1(0x43c)]['push'](_0x130324),this[_0x4963d1(0xee)](),this;}['onRemoteChangeset'](_0xd5fb4c){const _0x5aa233=_0x405303;if(this[_0x5aa233(0x31a)](_0xd5fb4c))return this[_0x5aa233(0x1b0)](),this[_0x5aa233(0x3ef)][_0x5aa233(0x383)](_0x234be3,this[_0x5aa233(0x1c9)],this['type'],null,this[_0x5aa233(0x43c)],null,[_0xd5fb4c],this[_0x5aa233(0x327)]);try{let _0x394644=this[_0x5aa233(0x1f8)][_0x5aa233(0x30a)](_0xd5fb4c,this[_0x5aa233(0x43c)]);if((0x0,_0x20c203[_0x5aa233(0x3d8)])(_0x394644)){let {c1Prime:_0x42ad42,m2Prime:_0x344b1e}=_0x394644;this[_0x5aa233(0x15e)](_0x42ad42);let _0x18f08f=this[_0x5aa233(0x3ef)][_0x5aa233(0x383)](_0x22286d,this[_0x5aa233(0x1c9)],this[_0x5aa233(0x24b)],_0x344b1e,this[_0x5aa233(0x327)]);this['_clearScheduledTask']();let _0x468ff5=new Date()[_0x5aa233(0x3f9)](),_0x5db9c8=this['_scheduleCompleteTimestamp']?Math['max'](this[_0x5aa233(0x287)]-_0x468ff5,0x0):this[_0x5aa233(0x3a6)]();return _0x18f08f['_schedule'](_0x5db9c8),_0x18f08f;}throw _0x394644[_0x5aa233(0x2a9)];}catch(_0x20e9ee){return this[_0x5aa233(0x3d5)][_0x5aa233(0x2a9)](_0x20e9ee),this['_onConflict'](!0x1);}}[_0x405303(0xfb)](_0x51d1d6){const _0x10a037=_0x405303;if(_0x51d1d6['revision']<=this[_0x10a037(0x20e)]())return this;throw Error(_0x10a037(0x12d));}[_0x405303(0x1f2)](){throw Error('[PendingState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x405303(0x11a)](){const _0x22d884=_0x405303;return this[_0x22d884(0x1b0)](),this[_0x22d884(0x3ef)][_0x22d884(0x383)](_0x3b0e9a,this[_0x22d884(0x1c9)],this[_0x22d884(0x24b)],null,this[_0x22d884(0x43c)],this[_0x22d884(0x327)]);}[_0x405303(0x3fe)](){return this;}['_schedule'](_0x28281d){const _0x364cc7=_0x405303;let _0x4e3a4e=_0x28281d==null?this[_0x364cc7(0x3a6)]():_0x28281d;this[_0x364cc7(0x287)]=new Date()[_0x364cc7(0x3f9)]()+_0x4e3a4e,this[_0x364cc7(0x1e5)]=setTimeout(()=>{const _0x791f21=_0x364cc7;this[_0x791f21(0x1b0)]();let _0x2d4ba2=null;switch(this['type']){case _0x2d0b9f[_0x791f21(0x341)][_0x791f21(0x378)]:_0x2d4ba2=_0x214201(this[_0x791f21(0x43c)],this[_0x791f21(0x1c9)],this[_0x791f21(0x347)],this[_0x791f21(0x291)],this[_0x791f21(0x212)]);break;case _0x2d0b9f[_0x791f21(0x341)][_0x791f21(0x13a)]:_0x2d4ba2=this[_0x791f21(0x43c)][_0x791f21(0x16e)](_0x31a742=>_0x31a742['id']===_0x33f3ff[_0x791f21(0x19f)]['id'])?_0x48ec4c(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x791f21(0x291)],this['_userManagerService']):_0x214201(this[_0x791f21(0x43c)],this[_0x791f21(0x1c9)],this[_0x791f21(0x347)],this['_revisionService'],this[_0x791f21(0x212)]);break;case _0x2d0b9f[_0x791f21(0x341)][_0x791f21(0x358)]:_0x2d4ba2=_0x17b28a(this[_0x791f21(0x43c)],this[_0x791f21(0x1c9)],this[_0x791f21(0x347)],this[_0x791f21(0x291)],this['_userManagerService']);break;case _0x2d0b9f[_0x791f21(0x341)][_0x791f21(0x31e)]:_0x2d4ba2=_0x41597a(this[_0x791f21(0x43c)],this[_0x791f21(0x1c9)],this[_0x791f21(0x347)],this[_0x791f21(0x291)],this[_0x791f21(0x212)]);break;case _0x2d0b9f[_0x791f21(0x341)][_0x791f21(0x333)]:_0x2d4ba2=_0x214201(this[_0x791f21(0x43c)],this[_0x791f21(0x1c9)],this['_univerInstanceService'],this['_revisionService'],this[_0x791f21(0x212)]);break;case _0x2d0b9f[_0x791f21(0x341)]['UNIVER_BASE']:_0x2d4ba2=_0x214201(this['_pendingMutations'],this[_0x791f21(0x1c9)],this[_0x791f21(0x347)],this[_0x791f21(0x291)],this[_0x791f21(0x212)]);break;default:throw Error(_0x791f21(0x14f)+this[_0x791f21(0x24b)]+_0x791f21(0x325));}let {changeset:_0x282db7,pendingMutations:_0x5cac6b}=_0x2d4ba2;this[_0x791f21(0x327)][_0x791f21(0x244)](_0x282db7);let _0x22ecd5=_0x5cac6b[_0x791f21(0x182)]?this[_0x791f21(0x3ef)][_0x791f21(0x383)](_0x49c582,this[_0x791f21(0x1c9)],this[_0x791f21(0x24b)],_0x282db7,_0x5cac6b,this[_0x791f21(0x327)],void 0x0):this[_0x791f21(0x3ef)][_0x791f21(0x383)](_0xe05e0d,this['unitID'],this[_0x791f21(0x24b)],_0x282db7,this[_0x791f21(0x327)]);_0x22ecd5['_updateLocalCache'](),this[_0x791f21(0x327)]['onStateChange'](this,_0x22ecd5);},_0x4e3a4e);}[_0x405303(0x3a6)](){const _0x433941=_0x405303;var _0x4d07cc;let _0x4ea5a2=this[_0x433941(0x3d2)][_0x433941(0x112)](_0x51e182);return(_0x4d07cc=_0x4ea5a2==null?void 0x0:_0x4ea5a2[_0x433941(0x250)])==null?0x7d0:_0x4d07cc;}['resend'](){const _0x2935b6=_0x405303;throw Error(_0x2935b6(0x270));}[_0x405303(0x1b0)](){const _0x5ccc75=_0x405303;this[_0x5ccc75(0x1e5)]!=null&&(clearTimeout(this[_0x5ccc75(0x1e5)]),this[_0x5ccc75(0x1e5)]=null);}['_onConflict'](_0x2b5639){const _0x5e0cd4=_0x405303;return this[_0x5e0cd4(0x1b0)](),this['_injector'][_0x5e0cd4(0x383)](_0x1af009,this[_0x5e0cd4(0x1c9)],this[_0x5e0cd4(0x24b)],null,this[_0x5e0cd4(0x43c)],this[_0x5e0cd4(0x327)],_0x2b5639);}};_0x315789=_0x22286d=_0x3934d9([_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f['UserManagerService'])),_0x43549d(0x7,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0x8,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0xa,_0x20c203[_0x405303(0x23e)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0xc,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x315789);let _0xe05e0d=_0x116285=class extends _0x2a4010{constructor(_0x3a8e68,_0x2433f3,_0xb83111,_0x1801e9,_0xdae908,_0x20a2a5,_0x8d7c42,_0x30466b,_0x4f4e4c,_0x2fee35,_0x342bde){const _0x126d1c=_0x405303;super(_0x3a8e68,_0x2433f3,_0xb83111,[],_0x1801e9,_0x8d7c42,_0x2fee35,_0x20a2a5,_0x342bde),this[_0x126d1c(0x3ef)]=_0xdae908,this[_0x126d1c(0x3d5)]=_0x30466b,this['_transformService']=_0x4f4e4c,_0x4219eb(this,_0x126d1c(0x1b9),_0x126d1c(0x403)),_0x4219eb(this,_0x126d1c(0x159),0x0),_0x4219eb(this,_0x126d1c(0x3a1),0x0),_0x4219eb(this,'_resendTimer',void 0x0),_0x4219eb(this,'_sender',void 0x0);}[_0x405303(0x3ae)](_0x1a3ebd){const _0x14c6bf=_0x405303;this[_0x14c6bf(0x1b0)]();let _0x37d8f6=this[_0x14c6bf(0x3ef)][_0x14c6bf(0x383)](_0x49c582,this[_0x14c6bf(0x1c9)],this[_0x14c6bf(0x24b)],this[_0x14c6bf(0x419)],[_0x1a3ebd],this['_handler'],this[_0x14c6bf(0x335)]);return _0x37d8f6['_updateLocalCache'](),_0x37d8f6;}[_0x405303(0x3af)](_0x16f79f){const _0x363092=_0x405303;if(this[_0x363092(0x31a)](_0x16f79f))return this['_clearScheduledTask'](),this[_0x363092(0x3ef)][_0x363092(0x383)](_0x234be3,this[_0x363092(0x1c9)],this[_0x363092(0x24b)],this['_awaitingChangeset'],[],null,[_0x16f79f],this[_0x363092(0x327)]);try{let _0x520efd=this['_transformService']['transformChangesets']([_0x16f79f],[this[_0x363092(0x419)]],!0x1);if((0x0,_0x20c203[_0x363092(0x35b)])(_0x520efd)){let {c1Prime:_0x5b3256,c2Prime:_0x2beee4}=_0x520efd;this[_0x363092(0x15e)](_0x5b3256[0x0]),_0x2beee4[0x0]['baseRev']=this[_0x363092(0x20e)](),this[_0x363092(0x1b0)]();let _0x45b275=this[_0x363092(0x3ef)][_0x363092(0x383)](_0x116285,this[_0x363092(0x1c9)],this[_0x363092(0x24b)],_0x2beee4[0x0],this[_0x363092(0x327)]);return _0x45b275['_updateLocalCache'](),_0x45b275;}throw _0x520efd[_0x363092(0x2a9)];}catch(_0x41d929){return this[_0x363092(0x3d5)][_0x363092(0x2a9)](_0x41d929),this[_0x363092(0x414)](!0x1);}}[_0x405303(0xfb)](_0x56ec97){const _0x55a3df=_0x405303;this[_0x55a3df(0x1b0)]();let _0x1ea7bc=this[_0x55a3df(0x291)][_0x55a3df(0x3a0)](this[_0x55a3df(0x1c9)]);if(_0x56ec97[_0x55a3df(0x371)]<=_0x1ea7bc)return this;if(this[_0x55a3df(0x31a)](_0x56ec97))return this['_injector'][_0x55a3df(0x383)](_0x234be3,this['unitID'],this[_0x55a3df(0x24b)],this[_0x55a3df(0x419)],[],_0x56ec97['revision'],[],this[_0x55a3df(0x327)]);this[_0x55a3df(0x1da)]();let _0x27ac27=this[_0x55a3df(0x3ef)][_0x55a3df(0x383)](_0x2b0eea,this[_0x55a3df(0x1c9)],this[_0x55a3df(0x24b)],this['_handler']);return _0x27ac27[_0x55a3df(0xee)](),_0x27ac27;}[_0x405303(0x1f2)](_0x2aa8f6){const _0x5d7b97=_0x405303;return this['_onConflict'](!!(_0x2aa8f6!=null&&_0x2aa8f6[_0x5d7b97(0x3b8)]));}['onRemoteRetry'](_0x288e1d){const _0x5f0e0d=_0x405303;return this[_0x5f0e0d(0x3a1)]>_0x1f600d?this[_0x5f0e0d(0x11a)]():(this[_0x5f0e0d(0x335)]=_0x400b38(this[_0x5f0e0d(0x159)],{'timeout':this[_0x5f0e0d(0x159)],'reqId':_0x288e1d['reqId']}),this['_sender']=this['_resendTimer'][_0x5f0e0d(0x120)](({reqId:_0x183897,timeout:_0x475e0a})=>{this['_resendWithTimeout'](_0x183897,_0x475e0a);}),this);}[_0x405303(0x11a)](){const _0x386a31=_0x405303;return this[_0x386a31(0x1b0)](),this[_0x386a31(0x3ef)][_0x386a31(0x383)](_0x3b0e9a,this['unitID'],this[_0x386a31(0x24b)],this[_0x386a31(0x419)],[],this[_0x386a31(0x327)]);}['toggleOnline'](){return this;}[_0x405303(0x2b5)](){const _0x24aa4b=_0x405303;this[_0x24aa4b(0x327)][_0x24aa4b(0x244)](this[_0x24aa4b(0x419)]);}['_onConflict'](_0x9194ed){const _0x1fd0e2=_0x405303;return this['_clearScheduledTask'](),this['_injector'][_0x1fd0e2(0x383)](_0x1af009,this[_0x1fd0e2(0x1c9)],this[_0x1fd0e2(0x24b)],this[_0x1fd0e2(0x419)],[],this['_handler'],_0x9194ed);}['_resendWithTimeout'](_0x2d61c4,_0x5765e5){const _0x466888=_0x405303;var _0x2a0e2e;_0x2d61c4===((_0x2a0e2e=this[_0x466888(0x419)])==null?void 0x0:_0x2a0e2e[_0x466888(0x387)])&&(this[_0x466888(0x2b5)](),this[_0x466888(0x159)]=_0x5765e5===0x0?0x3e8:Math[_0x466888(0x38b)](_0x5765e5*0x2,_0x329193),this[_0x466888(0x3a1)]+=this[_0x466888(0x159)]);}['_clearScheduledTask'](){const _0x3f4942=_0x405303;var _0x1c528a;(_0x1c528a=this['_sender'])==null||_0x1c528a[_0x3f4942(0x3e8)](),this['_resendTimeout']=0x0,this[_0x3f4942(0x3a1)]=0x0;}};_0xe05e0d=_0x116285=_0x3934d9([_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x5,(0x0,_0x2d0b9f['Inject'])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x6,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x7,_0x2d0b9f['ILogService']),_0x43549d(0x8,_0x20c203[_0x405303(0x23e)]),_0x43549d(0x9,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0xa,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0xe05e0d);let _0x49c582=_0x901199=class extends _0x2a4010{constructor(_0x247fbb,_0x235a77,_0x1dcfc3,_0x562b7e,_0x4e4373,_0x5097b0,_0x47ca14,_0x4b86bd,_0x47bd03,_0x4a752a,_0x53d864,_0x184c92,_0x2ae8ee){const _0x2a2fd8=_0x405303;super(_0x247fbb,_0x235a77,_0x1dcfc3,_0x562b7e,_0x4e4373,_0x47bd03,_0x184c92,_0x4b86bd,_0x2ae8ee),this['_injector']=_0x47ca14,this[_0x2a2fd8(0x3d5)]=_0x4a752a,this[_0x2a2fd8(0x1f8)]=_0x53d864,this[_0x2a2fd8(0x185)]=_0x2ae8ee,_0x4219eb(this,_0x2a2fd8(0x1b9),_0x2a2fd8(0x2e6)),_0x4219eb(this,_0x2a2fd8(0x159),0x0),_0x4219eb(this,_0x2a2fd8(0x3a1),0x0),_0x4219eb(this,_0x2a2fd8(0x335),void 0x0),_0x4219eb(this,_0x2a2fd8(0x21d),void 0x0),_0x5097b0&&(this[_0x2a2fd8(0x335)]=_0x5097b0,this[_0x2a2fd8(0x21d)]=this[_0x2a2fd8(0x335)][_0x2a2fd8(0x120)](({reqId:_0x6846ba,timeout:_0x3ca1e8})=>{const _0x4c9500=_0x2a2fd8;this[_0x4c9500(0x30e)](_0x6846ba,_0x3ca1e8);}));}[_0x405303(0x3ae)](_0x50f5ee){const _0x519e99=_0x405303;return this['_pendingMutations'][_0x519e99(0x1f4)](_0x50f5ee),this;}['onRemoteChangeset'](_0x4bf13d){const _0x4cc937=_0x405303;if(this[_0x4cc937(0x31a)](_0x4bf13d))return this[_0x4cc937(0x1b0)](),this[_0x4cc937(0x3ef)][_0x4cc937(0x383)](_0x234be3,this[_0x4cc937(0x1c9)],this[_0x4cc937(0x24b)],this[_0x4cc937(0x419)],this['_pendingMutations'],null,[_0x4bf13d],this[_0x4cc937(0x327)]);try{let _0x4b170c=this[_0x4cc937(0x1f8)][_0x4cc937(0x3a7)]([_0x4bf13d],[this[_0x4cc937(0x419)]],!0x1);if((0x0,_0x20c203[_0x4cc937(0x35b)])(_0x4b170c)){let {c1Prime:_0x2868a7,c2Prime:_0x1fb5f6}=_0x4b170c,_0x537a99=this[_0x4cc937(0x1f8)]['transformMutationsWithChangeset'](_0x2868a7[0x0],this['_pendingMutations']);if((0x0,_0x20c203[_0x4cc937(0x3d8)])(_0x537a99)){let {c1Prime:_0x262582,m2Prime:_0x15c0e6}=_0x537a99;return this[_0x4cc937(0x15e)](_0x262582),_0x1fb5f6[0x0][_0x4cc937(0x33b)]=this['_getCurrentRevision'](),this['_clearScheduledTask'](),this[_0x4cc937(0x3ef)][_0x4cc937(0x383)](_0x901199,this[_0x4cc937(0x1c9)],this[_0x4cc937(0x24b)],_0x1fb5f6[0x0],_0x15c0e6,this['_handler'],void 0x0);}throw _0x537a99[_0x4cc937(0x2a9)];}throw _0x4b170c[_0x4cc937(0x2a9)];}catch(_0x323eda){return this[_0x4cc937(0x3d5)][_0x4cc937(0x2a9)](_0x323eda),this[_0x4cc937(0x414)](!0x1);}}[_0x405303(0xfb)](_0x5ec125){const _0x87b2ef=_0x405303;this['_clearScheduledTask']();let _0x415714=this[_0x87b2ef(0x20e)]();if(_0x5ec125['revision']<=_0x415714)return this;if(this[_0x87b2ef(0x31a)](_0x5ec125))return this['_injector'][_0x87b2ef(0x383)](_0x234be3,this[_0x87b2ef(0x1c9)],this[_0x87b2ef(0x24b)],this[_0x87b2ef(0x419)],this[_0x87b2ef(0x43c)],_0x5ec125[_0x87b2ef(0x371)],[],this['_handler']);this['_incrementRevisionNumber']();let _0x3b102d=this[_0x87b2ef(0x3ef)][_0x87b2ef(0x383)](_0x315789,this[_0x87b2ef(0x1c9)],this[_0x87b2ef(0x24b)],this[_0x87b2ef(0x43c)],this[_0x87b2ef(0x327)]);return _0x3b102d['_schedule'](),_0x3b102d[_0x87b2ef(0xee)](),_0x3b102d;}[_0x405303(0x1f2)](_0x1ba15b){const _0x44011f=_0x405303;return this[_0x44011f(0x414)](!!(_0x1ba15b!=null&&_0x1ba15b['isPermissionRej']));}[_0x405303(0x186)](_0x2c6b94){const _0x39404c=_0x405303;return this['_maxTotalRetryTimeout']>_0x1f600d?this[_0x39404c(0x11a)]():(this[_0x39404c(0x335)]=_0x400b38(this[_0x39404c(0x159)],{'timeout':this['_resendTimeout'],'reqId':_0x2c6b94[_0x39404c(0x387)]}),this[_0x39404c(0x21d)]=this[_0x39404c(0x335)][_0x39404c(0x120)](({reqId:_0x4c834d,timeout:_0x25e69e})=>{const _0x4e0d11=_0x39404c;this[_0x4e0d11(0x30e)](_0x4c834d,_0x25e69e);}),this);}['toggleOffline'](){const _0x358a61=_0x405303;return this[_0x358a61(0x1b0)](),this[_0x358a61(0x3ef)][_0x358a61(0x383)](_0x3b0e9a,this['unitID'],this[_0x358a61(0x24b)],this[_0x358a61(0x419)],this['_pendingMutations'],this['_handler']);}['toggleOnline'](){return this;}[_0x405303(0x2b5)](){const _0x37d725=_0x405303;this[_0x37d725(0x327)][_0x37d725(0x244)](this[_0x37d725(0x419)]);}['_onConflict'](_0x14f2af){const _0x3642a2=_0x405303;return this[_0x3642a2(0x1b0)](),this[_0x3642a2(0x3ef)]['createInstance'](_0x1af009,this['unitID'],this['type'],null,this[_0x3642a2(0x43c)],this[_0x3642a2(0x327)],_0x14f2af);}[_0x405303(0x30e)](_0x1aed2c,_0x35424e){const _0xcbe5fa=_0x405303;var _0x452c1c;_0x1aed2c===((_0x452c1c=this[_0xcbe5fa(0x419)])==null?void 0x0:_0x452c1c['reqId'])&&(this[_0xcbe5fa(0x2b5)](),this['_resendTimeout']=_0x35424e===0x0?0x3e8:Math[_0xcbe5fa(0x38b)](_0x35424e*0x2,_0x329193),this['_maxTotalRetryTimeout']+=this[_0xcbe5fa(0x159)]);}['_clearScheduledTask'](){const _0x49f929=_0x405303;var _0x5732a8;(_0x5732a8=this[_0x49f929(0x21d)])==null||_0x5732a8[_0x49f929(0x3e8)](),this[_0x49f929(0x159)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x49c582=_0x901199=_0x3934d9([_0x43549d(0x6,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['RevisionService'])),_0x43549d(0x8,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x9,_0x2d0b9f['ILogService']),_0x43549d(0xa,_0x20c203[_0x405303(0x23e)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0xc,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x49c582);let _0x1af009=class extends _0x2a4010{constructor(_0x7abab4,_0x1037a1,_0x12b11a,_0x27c9d4,_0x50697a,_0x3bdbfb=!0x1,_0x2cb76e,_0x4ec939,_0x38b456,_0x3c65b6,_0x1c4573,_0x4ca65b,_0x3e9a50){const _0x260a6c=_0x405303;super(_0x7abab4,_0x1037a1,_0x12b11a,_0x27c9d4,_0x50697a,_0x4ec939,_0x38b456,_0x3c65b6,_0x3e9a50),this[_0x260a6c(0x3b2)]=_0x3bdbfb,this[_0x260a6c(0x2cd)]=_0x2cb76e,this[_0x260a6c(0x1d3)]=_0x1c4573,this[_0x260a6c(0x214)]=_0x4ca65b,this[_0x260a6c(0x185)]=_0x3e9a50,_0x4219eb(this,_0x260a6c(0x1b9),_0x260a6c(0x251)),this['_showConflictNotification'](),this['_clearLocalCache'](),this[_0x260a6c(0x2d8)]();}['appendMutation'](){return this;}[_0x405303(0x3af)](){return this;}[_0x405303(0xfb)](){return this;}[_0x405303(0x1f2)](){return this;}[_0x405303(0x186)](){return this;}[_0x405303(0x11a)](){return this;}[_0x405303(0x3fe)](){return this;}['resend'](){const _0x5b3514=_0x405303;throw Error(_0x5b3514(0x2b8));}[_0x405303(0x3a3)](){const _0x5775ab=_0x405303;var _0x35bfef,_0x270c56,_0x1e9405;(_0x35bfef=this['_localCacheService'])==null||(_0x270c56=_0x35bfef[_0x5775ab(0x35c)])==null||(_0x270c56=_0x270c56[_0x5775ab(0x2ed)](_0x35bfef,this['unitID'],_0x5775ab(0x251)))==null||_0x270c56['catch'](()=>void 0x0),(_0x1e9405=this[_0x5775ab(0x161)])==null||_0x1e9405[_0x5775ab(0x2bf)](this[_0x5775ab(0x1c9)],this['type'],null,[]);}[_0x405303(0x171)](){const _0x2d3f1e=_0x405303;this['_isPermissionRej']?this[_0x2d3f1e(0x214)][_0x2d3f1e(0x31f)]({'id':_0x2d3f1e(0x421)}):this['_collaborationUIEventService']['emitEvent']({'id':'CONFLICT'});}[_0x405303(0x2d8)](){const _0x4c7106=_0x405303;this[_0x4c7106(0x2cd)][_0x4c7106(0x2ea)](new _0x2ba48b[(_0x4c7106(0x422))](this[_0x4c7106(0x1c9)])['id'],!0x1);}};_0x1af009=_0x3934d9([_0x43549d(0x6,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x160)])),_0x43549d(0x7,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x8,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0x9,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0xa,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0xb,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x1af009);let _0x3b0e9a=class extends _0x2a4010{constructor(_0x4aeaa4,_0x3b0ee7,_0x51e776,_0x79d203,_0x59a8e3,_0x2337e5,_0x31dec8,_0x68c88c,_0x39902f,_0x4794b7){const _0x1d60a8=_0x405303;super(_0x4aeaa4,_0x3b0ee7,_0x51e776,_0x79d203,_0x59a8e3,_0x68c88c,_0x39902f,_0x31dec8,_0x4794b7),this[_0x1d60a8(0x3ef)]=_0x2337e5,_0x4219eb(this,_0x1d60a8(0x1b9),_0x1d60a8(0x42b));}[_0x405303(0x3ae)](_0x565ca8){const _0x4ed494=_0x405303;return this[_0x4ed494(0x43c)][_0x4ed494(0x1f4)](_0x565ca8),this[_0x4ed494(0xee)](),this;}[_0x405303(0x3af)](_0xf79ac8){const _0xba07f6=_0x405303;throw Error(_0xba07f6(0x170));}[_0x405303(0xfb)](){const _0x3aff2a=_0x405303;throw Error(_0x3aff2a(0x324));}[_0x405303(0x1f2)](){const _0x12e428=_0x405303;throw Error(_0x12e428(0x399));}[_0x405303(0x186)](){return this;}[_0x405303(0x11a)](){return this;}[_0x405303(0x3fe)](){const _0x11d634=_0x405303;let {_injector:_0x30b5c8,_pendingMutations:_0x30ab98,_awaitingChangeset:_0x19e06b,unitID:_0x1ae4b6,_handler:_0x5070d4,type:_0x208d85}=this,_0x32419d=_0x1b1927(_0x30b5c8,_0x1ae4b6,_0x208d85,_0x19e06b,_0x30ab98,_0x5070d4);return _0x32419d instanceof _0x315789?_0x32419d[_0x11d634(0x242)]():(_0x32419d instanceof _0x49c582||_0x32419d instanceof _0xe05e0d)&&_0x32419d[_0x11d634(0x2b5)](),_0x32419d;}['resend'](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x3b0e9a=_0x3934d9([_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x7,_0x2d0b9f['ICommandService']),_0x43549d(0x8,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0x9,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x3b0e9a);let _0x234be3=class extends _0x2a4010{constructor(_0x5dd07f,_0x2593f4,_0x207133,_0x1b2ed4,_0x1210b8,_0x3d94ea,_0x2fc0ac,_0x54f78c,_0x3bb81b,_0x46b1a6,_0x1198f8,_0x5beb64,_0x531540,_0x216b40){const _0x43def0=_0x405303;super(_0x5dd07f,_0x2593f4,_0x207133,_0x1b2ed4,_0x2fc0ac,_0x1198f8,_0x5beb64,_0x3bb81b,_0x216b40),this[_0x43def0(0x207)]=_0x1210b8,this['_queuedRemoteChangesets']=_0x3d94ea,this[_0x43def0(0x3ef)]=_0x54f78c,this[_0x43def0(0x3d5)]=_0x46b1a6,this[_0x43def0(0x1f8)]=_0x531540,this['localCacheService']=_0x216b40,_0x4219eb(this,'status','fetch_missing');}['onMissedChangesetFetched'](_0x4cb589){const _0x267d24=_0x405303;try{if(this[_0x267d24(0x304)](_0x4cb589)[_0x267d24(0x3ed)])throw Error(_0x267d24(0x39e));if(this[_0x267d24(0x304)]([...this[_0x267d24(0x2fc)]][_0x267d24(0x2c0)]((_0x29f9be,_0x2e04c1)=>_0x29f9be[_0x267d24(0x371)]-_0x2e04c1[_0x267d24(0x371)]))[_0x267d24(0x3ed)])return this[_0x267d24(0x2fc)]=[],this['_updateLocalCache'](),this[_0x267d24(0x327)]['onMissingChangesets']({'from':this[_0x267d24(0x20e)](),'to':0x0}),this;let _0x2e8ad7=this[_0x267d24(0x419)],_0x5b16f5=this[_0x267d24(0x43c)],_0x21604d;if(_0x2e8ad7&&_0x5b16f5[_0x267d24(0x182)]!==0x0)_0x21604d=this['_injector'][_0x267d24(0x383)](_0x49c582,this[_0x267d24(0x1c9)],this[_0x267d24(0x24b)],_0x2e8ad7,_0x5b16f5,this[_0x267d24(0x327)],void 0x0);else{if(_0x2e8ad7&&_0x5b16f5[_0x267d24(0x182)]===0x0)_0x2e8ad7[_0x267d24(0x33b)]=this[_0x267d24(0x20e)](),_0x21604d=this['_injector'][_0x267d24(0x383)](_0xe05e0d,this[_0x267d24(0x1c9)],this[_0x267d24(0x24b)],_0x2e8ad7,this[_0x267d24(0x327)]);else{if(_0x5b16f5[_0x267d24(0x182)]!==0x0){let _0x3205b1=this['_injector']['createInstance'](_0x315789,this[_0x267d24(0x1c9)],this[_0x267d24(0x24b)],_0x5b16f5,this[_0x267d24(0x327)]);_0x3205b1[_0x267d24(0x242)](),_0x21604d=_0x3205b1;}else _0x21604d=this[_0x267d24(0x3ef)]['createInstance'](_0x2b0eea,this['unitID'],this[_0x267d24(0x24b)],this[_0x267d24(0x327)]);}}return _0x21604d[_0x267d24(0xee)](),_0x21604d;}catch(_0x4d5d84){return this['_logService'][_0x267d24(0x2a9)](_0x267d24(0x402),'failed\x20to\x20apply\x20missed\x20changesets!',_0x4d5d84),this[_0x267d24(0x3ef)]['createInstance'](_0x1af009,this[_0x267d24(0x1c9)],this[_0x267d24(0x24b)],this['_awaitingChangeset'],this[_0x267d24(0x43c)],this[_0x267d24(0x327)],!0x1);}}[_0x405303(0x304)](_0x2afd93){const _0x261e38=_0x405303;this[_0x261e38(0x12a)]();for(let _0x5ea11d=0x0;_0x5ea11d<_0x2afd93[_0x261e38(0x182)];_0x5ea11d++){let _0x1434ad=_0x2afd93[_0x5ea11d],_0x3f8acb=this[_0x261e38(0x20e)]();if(!(_0x1434ad[_0x261e38(0x371)]<=_0x3f8acb)){if(_0x1434ad[_0x261e38(0x371)]>_0x3f8acb+0x1)return{'missingChangesets':!0x0};if(this[_0x261e38(0x3d0)](_0x1434ad)){this[_0x261e38(0x266)]();continue;}this[_0x261e38(0x149)](_0x1434ad),this[_0x261e38(0x12a)]();}}return{'missingChangesets':!0x1};}[_0x405303(0x149)](_0x36b795){const _0x206922=_0x405303;let _0x3e6332=_0x36b795,_0x455c61=this[_0x206922(0x419)];if(_0x455c61){let _0x1cf7b9=this[_0x206922(0x1f8)][_0x206922(0x3a7)]([_0x36b795],[_0x455c61],!0x1);if(!(0x0,_0x20c203[_0x206922(0x35b)])(_0x1cf7b9))throw _0x1cf7b9[_0x206922(0x2a9)];_0x3e6332=_0x1cf7b9[_0x206922(0x2c3)][0x0],_0x455c61=_0x1cf7b9[_0x206922(0x382)][0x0];}let _0xf8b50f=this[_0x206922(0x43c)];if(_0xf8b50f['length']){let _0x1eedf8=this['_transformService'][_0x206922(0x30a)](_0x3e6332,_0xf8b50f);if(!(0x0,_0x20c203['isTransformMutationsWithChangesetSuccess'])(_0x1eedf8))throw _0x1eedf8[_0x206922(0x2a9)];_0x3e6332=_0x1eedf8['c1Prime'],_0xf8b50f=_0x1eedf8[_0x206922(0x36d)];}this[_0x206922(0x15e)](_0x3e6332),_0x455c61&&(_0x455c61[_0x206922(0x33b)]=this['_getCurrentRevision']()),this[_0x206922(0x419)]=_0x455c61,this[_0x206922(0x43c)]=_0xf8b50f;}[_0x405303(0x12a)](){const _0x1228c6=_0x405303;if(!this[_0x1228c6(0x419)]||this[_0x1228c6(0x207)]==null)return;let _0x2233ed=this['_getCurrentRevision']();if(this['_acknowledgedAwaitingRevision']<=_0x2233ed)throw Error(_0x1228c6(0x282)+this['_acknowledgedAwaitingRevision']+'.');this[_0x1228c6(0x207)]===_0x2233ed+0x1&&this[_0x1228c6(0x266)]();}[_0x405303(0x266)](){const _0x1209ef=_0x405303;this['_incrementRevisionNumber'](),this['_awaitingChangeset']=null,this[_0x1209ef(0x207)]=null;}[_0x405303(0x3d0)](_0x4c7b52){const _0xe0c665=_0x405303;let _0x129b4e=this[_0xe0c665(0x419)];return!_0x129b4e||!_0x129b4e[_0xe0c665(0x15d)]||_0x129b4e[_0xe0c665(0x387)]===null||_0x129b4e[_0xe0c665(0x387)]===void 0x0?!0x1:_0x4c7b52[_0xe0c665(0x1c9)]===_0x129b4e[_0xe0c665(0x1c9)]&&_0x4c7b52[_0xe0c665(0x15d)]===_0x129b4e[_0xe0c665(0x15d)]&&_0x4c7b52['reqId']===_0x129b4e[_0xe0c665(0x387)];}['resend'](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x3ae8c7){const _0x1faa09=_0x405303;return this[_0x1faa09(0x43c)][_0x1faa09(0x1f4)](_0x3ae8c7),this;}['onRemoteChangeset'](_0x25d29f){const _0x295aaf=_0x405303;return this[_0x295aaf(0x2fc)][_0x295aaf(0x1f4)](_0x25d29f),this;}[_0x405303(0xfb)](_0x213b30){const _0x3c9b25=_0x405303;if(this['_awaitingChangeset']){let _0x1a6e37=this[_0x3c9b25(0x20e)]();return _0x213b30[_0x3c9b25(0x371)]<=_0x1a6e37||(_0x1a6e37+0x1===_0x213b30[_0x3c9b25(0x371)]?(this[_0x3c9b25(0x1da)](),this[_0x3c9b25(0x419)]=null,this[_0x3c9b25(0x207)]=null):this['_acknowledgedAwaitingRevision']=_0x213b30[_0x3c9b25(0x371)]),this;}if(_0x213b30['revision']<=this[_0x3c9b25(0x20e)]())return this;throw Error(_0x3c9b25(0x180));}[_0x405303(0x1f2)](_0x570aa9){const _0x76cf6=_0x405303;return this[_0x76cf6(0x414)](!!(_0x570aa9!=null&&_0x570aa9[_0x76cf6(0x3b8)]));}[_0x405303(0x186)](){return this;}[_0x405303(0x11a)](){const _0x3dcb88=_0x405303;return this[_0x3dcb88(0x3ef)]['createInstance'](_0x3b0e9a,this[_0x3dcb88(0x1c9)],this[_0x3dcb88(0x24b)],this[_0x3dcb88(0x419)],this['_pendingMutations'],this[_0x3dcb88(0x327)]);}[_0x405303(0x3fe)](){return this;}[_0x405303(0x414)](_0x1a9433){const _0x41be97=_0x405303;return this[_0x41be97(0x3ef)][_0x41be97(0x383)](_0x1af009,this['unitID'],this['type'],this[_0x41be97(0x419)],this['_pendingMutations'],this[_0x41be97(0x327)],_0x1a9433);}};_0x234be3=_0x3934d9([_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x8,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x9,_0x2d0b9f['ILogService']),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0xf4)]),_0x43549d(0xc,_0x20c203[_0x405303(0x23e)]),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x234be3);function _0x1b1927(_0x42b051,_0x25a73e,_0x3c3b7b,_0x288ea5,_0xf8dfbb,_0x571bd1){const _0x354aa8=_0x405303;return _0x288ea5&&_0xf8dfbb[_0x354aa8(0x182)]?_0x42b051[_0x354aa8(0x383)](_0x49c582,_0x25a73e,_0x3c3b7b,_0x288ea5,_0xf8dfbb,_0x571bd1,void 0x0):_0x288ea5?_0x42b051['createInstance'](_0xe05e0d,_0x25a73e,_0x3c3b7b,_0x288ea5,_0x571bd1):_0xf8dfbb[_0x354aa8(0x182)]?_0x42b051['createInstance'](_0x315789,_0x25a73e,_0x3c3b7b,_0xf8dfbb,_0x571bd1):_0x42b051[_0x354aa8(0x383)](_0x2b0eea,_0x25a73e,_0x3c3b7b,_0x571bd1);}let _0xfb921e=class extends _0x2d0b9f[_0x405303(0x16d)]{get['state'](){return this['_state'];}constructor(_0xe9e3fc,_0x18e404,_0x144474,_0x1ed0a2,_0x5e38a2,_0x134f67,_0x80fb76,_0x3cba4c,_0x19e9b0,_0x4f97fe,_0xc2b5e8,_0x2488d0,_0x3bc7bf,_0x6e2433){const _0x157383=_0x405303;super(),this[_0x157383(0x1c9)]=_0xe9e3fc,this[_0x157383(0x400)]=_0x18e404,this['_type']=_0x144474,this['_injector']=_0x1ed0a2,this['_compressMutationService']=_0x5e38a2,this[_0x157383(0x1d3)]=_0x134f67,this['_revisionService']=_0x80fb76,this[_0x157383(0x1e6)]=_0x3cba4c,this['_univerInstanceService']=_0x19e9b0,this[_0x157383(0x3d5)]=_0x4f97fe,this['_commandService']=_0xc2b5e8,this[_0x157383(0x2cd)]=_0x2488d0,this['_singleActiveUnitService']=_0x3bc7bf,this[_0x157383(0x161)]=_0x6e2433,_0x4219eb(this,_0x157383(0x128),new _0x31dca4[(_0x157383(0x31b))](null)),_0x4219eb(this,_0x157383(0x2c9),this[_0x157383(0x128)][_0x157383(0x41c)]()),_0x4219eb(this,_0x157383(0x42c),void 0x0),_0x4219eb(this,'_collaborationPaused',!0x1),_0x4219eb(this,_0x157383(0x12c),''),_0x4219eb(this,_0x157383(0x301),0x0),_0x4219eb(this,'status$',this[_0x157383(0x2c9)][_0x157383(0x18e)]((0x0,_0x31dca4[_0x157383(0x110)])(_0x2a14e4=>_0x2a14e4?_0x2a14e4['status']:_0x157383(0x42b)),(0x0,_0x31dca4[_0x157383(0x3fa)])({'bufferSize':0x1,'refCount':!0x0}))),_0x4219eb(this,'_transitionLocked',!0x1),_0x4219eb(this,_0x157383(0x2e5),[]);}async['init'](){const _0xde410a=_0x405303;if(this[_0xde410a(0x28c)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0xde410a(0x176)]();}[_0x405303(0x331)](){const _0x36e138=_0x405303;return this[_0x36e138(0x411)]=!0x0,(0x0,_0x2d0b9f[_0x36e138(0xfa)])(()=>{const _0x525704=_0x36e138;this[_0x525704(0x411)]=!0x1,this[_0x525704(0x3dd)]();});}['onLocalMutation'](_0x1f2934){const _0x5dd096=_0x405303;this[_0x5dd096(0x42e)](_0x1f2934);}[_0x405303(0x2d0)](_0x45e7c9){const _0x304c4c=_0x405303;this[_0x304c4c(0x42c)]=_0x45e7c9,this['_state$'][_0x304c4c(0x131)](_0x45e7c9);}async['_init'](){const _0x61890f=_0x405303;if(this[_0x61890f(0x2d0)](await this['_createInitialState']()),this[_0x61890f(0x33a)]){var _0x2c40c9;(_0x2c40c9=this['_singleActiveUnitService'])==null||_0x2c40c9[_0x61890f(0x3ca)](this[_0x61890f(0x1c9)]),this[_0x61890f(0x10f)](this['_singleActiveUnitService'][_0x61890f(0xfc)](this[_0x61890f(0x1c9)])[_0x61890f(0x120)](_0x1155bf=>{const _0x22fae5=_0x61890f;this['_logService']['debug'](_0x22fae5(0x290),'editing\x20status\x20changed\x20to',_0x1155bf),_0x1155bf===0x1?(this['_eventService'][_0x22fae5(0x31f)]({'id':'OTHER_CLIENT_EDITING'}),this['_permissionService'][_0x22fae5(0x2ea)](new _0x2ba48b[(_0x22fae5(0x422))](this[_0x22fae5(0x1c9)])['id'],!0x1),this['_permissionService'][_0x22fae5(0x116)](!0x1)):(this['_permissionService'][_0x22fae5(0x2ea)](new _0x2ba48b[(_0x22fae5(0x422))](this[_0x22fae5(0x1c9)])['id'],!0x0),this[_0x22fae5(0x2cd)]['setShowComponents'](!0x0));}));}let _0x2c814e=!0x1;return this[_0x61890f(0x10f)](this[_0x61890f(0x400)][_0x61890f(0x1f0)][_0x61890f(0x120)](_0xd5b33c=>{const _0x45ed4f=_0x61890f;_0xd5b33c===0x3?this[_0x45ed4f(0x2ae)](_0x2c814e):_0xd5b33c===0x2&&(_0x2c814e=!0x0,this[_0x45ed4f(0x350)]());})),this[_0x61890f(0x10f)](this[_0x61890f(0x400)][_0x61890f(0x233)][_0x61890f(0x120)](_0x2f8524=>{const _0x3a5aff=_0x61890f;try{switch(_0x2f8524[_0x3a5aff(0x3cc)]){case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0x2c5)]:this['_onRemoteChangeset']((0x0,_0x20c203[_0x3a5aff(0x2b6)])(_0x2f8524[_0x3a5aff(0x3be)]));break;case _0x20c203['CollaborationEvent'][_0x3a5aff(0x1e3)]:this[_0x3a5aff(0x2a5)](_0x2f8524[_0x3a5aff(0x3be)]);break;case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0xfe)]:this[_0x3a5aff(0x260)]();break;case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0x209)]:this[_0x3a5aff(0x1d1)](_0x2f8524[_0x3a5aff(0x3be)]);break;case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0x275)]:this[_0x3a5aff(0x13e)](_0x2f8524['data'][_0x3a5aff(0x20c)][_0x3a5aff(0x110)](_0x1e8b78=>(0x0,_0x20c203[_0x3a5aff(0x2b6)])(_0x1e8b78)));break;case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0x3e2)]:this[_0x3a5aff(0x260)]({'isPermissionRej':!0x0});break;case _0x20c203[_0x3a5aff(0x3e1)][_0x3a5aff(0x42a)]:break;}}catch(_0x197ab5){throw console[_0x3a5aff(0x2a9)](_0x3a5aff(0x1cd),_0x197ab5),_0x197ab5;}})),this['_state'];}[_0x405303(0x191)](){const _0x37d908=_0x405303;this[_0x37d908(0x308)]=!0x1;}[_0x405303(0x2b2)](){const _0x19ffe9=_0x405303;if(this['_transitionLocked'])throw Error(_0x19ffe9(0x237));this[_0x19ffe9(0x308)]=!0x0;}[_0x405303(0x42e)](_0x3f6906){const _0x20119d=_0x405303;this[_0x20119d(0x2b2)](),this['_updateState'](this['_state']['appendMutation'](_0x3f6906)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x3646fb){const _0x18ff07=_0x405303;if(!(_0x3646fb[_0x18ff07(0x371)]<=this[_0x18ff07(0x291)][_0x18ff07(0x3a0)](this['unitID']))){if(this[_0x18ff07(0x411)]){this['_remoteChangesetQueue']['push'](_0x3646fb);return;}this[_0x18ff07(0x3c5)](_0x3646fb);}}[_0x405303(0x3dd)](){const _0x4155f8=_0x405303;this[_0x4155f8(0x2e5)]['forEach'](_0x28f6e2=>this[_0x4155f8(0x3c5)](_0x28f6e2)),this['_remoteChangesetQueue']=[];}[_0x405303(0x3c5)](_0x2bfddd){const _0x134dfc=_0x405303;let _0x5bf725=this[_0x134dfc(0x44a)]['interceptor']['fetchThroughInterceptors'](this[_0x134dfc(0x44a)][_0x134dfc(0x19c)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x2bfddd[_0x134dfc(0xf9)],null)||_0x2bfddd[_0x134dfc(0xf9)],_0x4d95a5={..._0x2bfddd,'mutations':_0x5bf725};this['_lockTransition'](),this['_updateState'](this[_0x134dfc(0x42c)][_0x134dfc(0x3af)](_0x4d95a5)),this[_0x134dfc(0x191)]();}[_0x405303(0x2a5)](_0x270903){const _0x3fe461=_0x405303;this[_0x3fe461(0x2b2)](),this['_updateState'](this[_0x3fe461(0x42c)][_0x3fe461(0xfb)](_0x270903)),this['_unlockTransition']();}[_0x405303(0x260)](_0x323f8e){const _0x410364=_0x405303;this['_lockTransition'](),this['_updateState'](this[_0x410364(0x42c)]['onRemoteRej'](_0x323f8e)),this['_unlockTransition']();}[_0x405303(0x1d1)](_0x1464c9){const _0x2c833e=_0x405303;this['_lockTransition'](),this['_updateState'](this[_0x2c833e(0x42c)][_0x2c833e(0x186)](_0x1464c9)),this[_0x2c833e(0x191)]();}[_0x405303(0x13e)](_0x49a987){const _0x1fbb57=_0x405303;if(!(this[_0x1fbb57(0x42c)]instanceof _0x234be3))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x1c9a32=_0x49a987[_0x1fbb57(0x110)](_0x415918=>{const _0x164975=_0x1fbb57;let _0x16c380=this[_0x164975(0x44a)]['interceptor'][_0x164975(0x33e)](this['_compressMutationService'][_0x164975(0x19c)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x415918[_0x164975(0xf9)],null)||_0x415918['mutations'];return{..._0x415918,'mutations':_0x16c380};});this[_0x1fbb57(0x2b2)](),this[_0x1fbb57(0x2d0)](this[_0x1fbb57(0x42c)]['onMissedChangesetFetched'](_0x1c9a32)),this[_0x1fbb57(0x191)]();}[_0x405303(0x350)](){const _0x2920b2=_0x405303;this[_0x2920b2(0x2b2)](),this[_0x2920b2(0x2d0)](this[_0x2920b2(0x42c)][_0x2920b2(0x11a)]()),this[_0x2920b2(0x191)]();}[_0x405303(0x2ae)](_0x55c698=!0x1){const _0x541f56=_0x405303;this['_lockTransition'](),this[_0x541f56(0x2d0)](this['_state']['toggleOnline']()),this[_0x541f56(0x191)]();let _0x300dfa=this[_0x541f56(0x42c)];_0x55c698&&_0x300dfa instanceof _0x2b0eea&&(this[_0x541f56(0x2b2)](),this[_0x541f56(0x2d0)](_0x300dfa[_0x541f56(0x2e8)]()),this['_unlockTransition']());}async[_0x405303(0x136)](){return new Promise(_0xfe0f2d=>{const _0x49d49e=_0x4e8d;this[_0x49d49e(0x400)][_0x49d49e(0x1f0)][_0x49d49e(0x18e)]((0x0,_0x31dca4[_0x49d49e(0x193)])(0x1))[_0x49d49e(0x120)](async _0xc4ca41=>{const _0xacf287=_0x49d49e;_0xfe0f2d(await this[_0xacf287(0x26a)](_0xc4ca41===0x3));});});}['_createHandler'](){const _0x551d59=_0x405303;let _0x2f52ec=this[_0x551d59(0x1c9)];return{'onStateChange':(_0x343950,_0x21f1a9)=>{const _0x3d3730=_0x551d59;if(_0x343950!==this[_0x3d3730(0x42c)])throw Error(_0x3d3730(0x342)+_0x343950['status']+_0x3d3730(0x3f6)+_0x21f1a9['status']+_0x3d3730(0x224)+this[_0x3d3730(0x42c)][_0x3d3730(0x1b9)]);this[_0x3d3730(0x2d0)](_0x21f1a9);},'onSendChangeset':_0x211a3a=>{const _0x4af1dc=_0x551d59;_0x211a3a[_0x4af1dc(0x15d)]||(_0x211a3a[_0x4af1dc(0x15d)]=this['_changesetSessionId'],_0x211a3a[_0x4af1dc(0x387)]=++this[_0x4af1dc(0x301)]);let _0x2b0947={'eventID':_0x20c203[_0x4af1dc(0x3e1)][_0x4af1dc(0x3ba)],'data':{'unitID':_0x211a3a[_0x4af1dc(0x1c9)],'unitType':this[_0x4af1dc(0x3f0)],'changeset':_0x211a3a,'memberID':this[_0x4af1dc(0x400)][_0x4af1dc(0x32d)]()}};this[_0x4af1dc(0x400)][_0x4af1dc(0x177)](_0x2b0947,this[_0x4af1dc(0x1c9)]);},'onMissingChangesets':({from:_0x158054,to:_0x1d6918})=>{const _0x5afcca=_0x551d59;this[_0x5afcca(0x3d5)][_0x5afcca(0x30f)](_0x5afcca(0x290),_0x5afcca(0x1c0)+_0x158054+_0x5afcca(0x155)+_0x1d6918);let _0x12e7c5={'eventID':_0x20c203['CollaborationEvent'][_0x5afcca(0x1c4)],'data':{'unitID':_0x2f52ec,'unitType':this[_0x5afcca(0x3f0)],'from':_0x158054,'to':_0x1d6918}};this['session'][_0x5afcca(0x177)](_0x12e7c5,this['unitID']);}};}async[_0x405303(0x26a)](_0x426f8f){const _0x2761bb=_0x405303;var _0x45b48f,_0x472c43,_0x569524;let _0x439306=await((_0x45b48f=this['_localCacheService'])==null?void 0x0:_0x45b48f[_0x2761bb(0x218)](this['unitID'])),_0x2b55e5=(_0x472c43=_0x439306==null?void 0x0:_0x439306[_0x2761bb(0xf9)])==null?[]:_0x472c43,_0x1fb9d0=(_0x569524=_0x439306==null?void 0x0:_0x439306[_0x2761bb(0x283)])==null?null:_0x569524,_0x26314b=!!(_0x1fb9d0!=null&&_0x1fb9d0['sid'])&&!!(_0x1fb9d0!=null&&_0x1fb9d0[_0x2761bb(0x387)]);this['_changesetSessionId']=_0x26314b?_0x1fb9d0[_0x2761bb(0x15d)]:(0x0,_0x20c203[_0x2761bb(0x1e4)])(),this[_0x2761bb(0x301)]=_0x26314b?_0x1fb9d0[_0x2761bb(0x387)]:0x0;let _0x4f17e6=this[_0x2761bb(0x1c9)];try{this[_0x2761bb(0x19e)](_0x1fb9d0,_0x2b55e5);}catch(_0x64b129){this[_0x2761bb(0x3d5)][_0x2761bb(0x2a9)](_0x64b129);}let _0xac1985=this[_0x2761bb(0x259)]();if(_0x426f8f){let _0x232563=_0x1b1927(this[_0x2761bb(0x3ef)],_0x4f17e6,this[_0x2761bb(0x3f0)],_0x1fb9d0,_0x2b55e5,_0xac1985);return _0x232563 instanceof _0x315789?_0x232563[_0x2761bb(0x242)]():(_0x232563 instanceof _0x49c582||_0x232563 instanceof _0xe05e0d)&&_0x232563['resend'](),_0x232563;}return this['_injector'][_0x2761bb(0x383)](_0x3b0e9a,_0x4f17e6,this[_0x2761bb(0x3f0)],_0x1fb9d0,_0x2b55e5,_0xac1985);}[_0x405303(0x19e)](_0x1db499,_0x194ff4){const _0xb9d930=_0x405303;var _0x46253a,_0x445a52;let _0x192891=this[_0xb9d930(0x44a)]['interceptor'][_0xb9d930(0x33e)](this[_0xb9d930(0x44a)][_0xb9d930(0x19c)][_0xb9d930(0x380)]()[_0xb9d930(0x406)]);(_0x46253a=_0x192891((_0x1db499==null?void 0x0:_0x1db499['mutations'])||[],null))==null||_0x46253a[_0xb9d930(0x412)](_0x22d041=>this[_0xb9d930(0xf5)][_0xb9d930(0x27a)](_0x22d041['id'],_0x22d041[_0xb9d930(0x329)])),(_0x445a52=_0x192891(_0x194ff4||[],null))==null||_0x445a52[_0xb9d930(0x412)](_0x127b3f=>this[_0xb9d930(0xf5)][_0xb9d930(0x27a)](_0x127b3f['id'],_0x127b3f[_0xb9d930(0x329)]));}};_0xfb921e=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x4,(0x0,_0x2d0b9f['Inject'])(_0x20c203[_0x405303(0x2f0)])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['RevisionService'])),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0xfb921e);let _0x5a7876=class extends _0xfb921e{constructor(_0x4f196d,_0x2f05a8,_0x422a1e,_0x44ac72,_0x2760e7,_0xcf137a,_0x147142,_0x4cfd4d,_0x4ab5d5,_0x13ac16,_0x302f05,_0xea9aa8,_0x48a908,_0x1345ec,_0x35e5fe){const _0x3c5428=_0x405303;super(_0x4f196d,_0x422a1e,_0x2f05a8,_0x44ac72,_0x2760e7,_0xcf137a,_0x147142,_0x4cfd4d,_0x4ab5d5,_0x13ac16,_0x302f05,_0xea9aa8,_0x1345ec,_0x35e5fe),this[_0x3c5428(0x1c9)]=_0x4f196d,this[_0x3c5428(0x24b)]=_0x2f05a8,this['_docStateChangeManagerService']=_0x48a908,_0x4219eb(this,'_handlerCallback',null);}[_0x405303(0x2a7)](_0x2e5dbc){const _0x537848=_0x405303;this[_0x537848(0x43e)]=_0x2e5dbc;}['dispose'](){const _0x5c2052=_0x405303;this[_0x5c2052(0x43e)]=null,super[_0x5c2052(0x309)]();}['_createHandler'](){const _0x5ab370=_0x405303;let _0x43f24f=super[_0x5ab370(0x259)]();return _0x43f24f['onTransformIME']=_0xfe666a=>{const _0x31a311=_0x5ab370;var _0x944f0d,_0x477258;return(_0x944f0d=this[_0x31a311(0x43e)])==null||(_0x477258=_0x944f0d[_0x31a311(0x1a6)])==null?void 0x0:_0x477258['call'](_0x944f0d,_0xfe666a);},_0x43f24f[_0x5ab370(0x2f9)]=_0x353af5=>{var _0x5bc7f9,_0x2e5d59;return(_0x5bc7f9=this['_handlerCallback'])==null||(_0x2e5d59=_0x5bc7f9['onTransformState'])==null?void 0x0:_0x2e5d59['call'](_0x5bc7f9,_0x353af5);},_0x43f24f[_0x5ab370(0x2de)]=_0x3e369f=>{const _0x27b068=_0x5ab370;var _0x37425b,_0x19f20c;return(_0x37425b=this[_0x27b068(0x43e)])==null||(_0x19f20c=_0x37425b[_0x27b068(0x2de)])==null?void 0x0:_0x19f20c[_0x27b068(0x2ed)](_0x37425b,_0x3e369f);},_0x43f24f[_0x5ab370(0x27d)]=_0x2399bf=>{const _0xbafab8=_0x5ab370;var _0x527659,_0x4535a9;return(_0x527659=this[_0xbafab8(0x43e)])==null||(_0x4535a9=_0x527659[_0xbafab8(0x27d)])==null?void 0x0:_0x4535a9['call'](_0x527659,_0x2399bf);},_0x43f24f[_0x5ab370(0x1a7)]=_0x188e0c=>{const _0x5a8c73=_0x5ab370;var _0x3ffe04,_0x1725ac,_0x2e80f4;return(_0x3ffe04=(_0x1725ac=this[_0x5a8c73(0x43e)])==null||(_0x2e80f4=_0x1725ac['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x2e80f4[_0x5a8c73(0x2ed)](_0x1725ac,_0x188e0c))==null?_0x188e0c:_0x3ffe04;},_0x43f24f[_0x5ab370(0x390)]=_0x3d98ea=>{const _0x2f960f=_0x5ab370;var _0x218e17,_0x254f14,_0xd3b125;return(_0x218e17=(_0x254f14=this[_0x2f960f(0x43e)])==null||(_0xd3b125=_0x254f14['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0xd3b125[_0x2f960f(0x2ed)](_0x254f14,_0x3d98ea))==null?_0x3d98ea:_0x218e17;},_0x43f24f;}async[_0x405303(0x176)](){const _0x4e49e1=_0x405303;let _0x15406f=await super['_init']();return this['disposeWithMe'](this[_0x4e49e1(0x3c4)][_0x4e49e1(0x1c5)][_0x4e49e1(0x120)](_0x492d3a=>{const _0x365627=_0x4e49e1;if(_0x492d3a==null||_0x492d3a[_0x365627(0x29b)]!==this['unitID'])return;let {commandId:_0x316ea9,redoState:_0x586616,unitId:_0x25694f}=_0x492d3a,_0x8fe5f6={'id':_0x316ea9,'type':_0x2d0b9f['CommandType'][_0x365627(0x245)],'params':{'unitId':_0x25694f,'actions':_0x586616[_0x365627(0x208)],'textRanges':null}};this[_0x365627(0x42e)](_0x8fe5f6);})),this['disposeWithMe'](this[_0x4e49e1(0xf5)][_0x4e49e1(0x19a)]((_0xafa72,_0x470719)=>{const _0x3d08ec=_0x4e49e1;if(_0xafa72['type']!==_0x2d0b9f[_0x3d08ec(0x150)][_0x3d08ec(0x245)]||_0x470719!=null&&_0x470719[_0x3d08ec(0x17a)]||_0x470719!=null&&_0x470719[_0x3d08ec(0x366)]||_0xafa72['id']===_0x33f3ff['RichTextEditingMutation']['id'])return;let _0x6544c7=_0xafa72[_0x3d08ec(0x329)];if((_0x6544c7==null?void 0x0:_0x6544c7[_0x3d08ec(0x29b)])!==this[_0x3d08ec(0x1c9)])return;let _0x487a02=_0xafa72,_0x177689=this['_compressMutationService'][_0x3d08ec(0x19c)][_0x3d08ec(0x33e)](this['_compressMutationService']['interceptor'][_0x3d08ec(0x380)]()[_0x3d08ec(0x389)])([_0x487a02],this[_0x3d08ec(0x347)])||[_0x487a02];this[_0x3d08ec(0x42e)](_0x177689[0x0]);})),_0x15406f;}};_0x5a7876=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x2f0)])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['RevisionService'])),_0x43549d(0x7,(0x0,_0x2d0b9f['Inject'])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f['IUniverInstanceService']),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xc,(0x0,_0x2d0b9f['Inject'])(_0x33f3ff[_0x405303(0x3b0)])),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xe,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x5a7876);let _0x59b528=class extends _0xfb921e{constructor(_0x7ae0d1,_0x4ab612,_0x44866f,_0x2f21aa,_0x2a6adf,_0x4e450a,_0x1de8d9,_0x558693,_0x1ad3a2,_0x280eb8,_0x4bde28,_0x27c828,_0x44fb71,_0xa1b74c){const _0x1f2c96=_0x405303;super(_0x7ae0d1,_0x44866f,_0x4ab612,_0x2f21aa,_0x2a6adf,_0x4e450a,_0x1de8d9,_0x558693,_0x1ad3a2,_0x280eb8,_0x4bde28,_0x27c828,_0x44fb71,_0xa1b74c),this[_0x1f2c96(0x1c9)]=_0x7ae0d1,this[_0x1f2c96(0x24b)]=_0x4ab612;}async[_0x405303(0x176)](){const _0x37e406=_0x405303;let _0x10310e=await super[_0x37e406(0x176)]();return this[_0x37e406(0x10f)](this[_0x37e406(0xf5)][_0x37e406(0x19a)]((_0x5b201a,_0x3990e0)=>{const _0x2c0aff=_0x37e406;if(_0x5b201a['type']!==_0x2d0b9f[_0x2c0aff(0x150)]['MUTATION']||_0x3990e0!=null&&_0x3990e0['fromCollab']||_0x3990e0!=null&&_0x3990e0[_0x2c0aff(0x366)])return;let _0x31bb62=_0x5b201a[_0x2c0aff(0x329)];if((_0x31bb62==null?void 0x0:_0x31bb62[_0x2c0aff(0x29b)])!==this['unitID'])return;let _0x54a1e0=_0x5b201a,_0x451196=this[_0x2c0aff(0x44a)][_0x2c0aff(0x19c)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x2c0aff(0x380)]()[_0x2c0aff(0x389)])([_0x54a1e0],this[_0x2c0aff(0x347)])||[_0x54a1e0];this[_0x2c0aff(0x42e)](_0x451196[0x0]);})),_0x10310e;}};_0x59b528=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f['Injector'])),_0x43549d(0x4,(0x0,_0x2d0b9f['Inject'])(_0x20c203[_0x405303(0x2f0)])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f['IUniverInstanceService']),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f['IPermissionService']),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xd,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x59b528);let _0x5080f=class extends _0xfb921e{constructor(_0x114fac,_0x13fa13,_0x13defb,_0x4c728c,_0x597e33,_0x7cd0e6,_0x2acb32,_0x3f16bc,_0x25d6ce,_0x5c350f,_0x50568e,_0x323e8f,_0x5bd70e,_0x3fab80,_0x335f52){const _0x296ff2=_0x405303;super(_0x114fac,_0x13defb,_0x13fa13,_0x4c728c,_0x597e33,_0x7cd0e6,_0x2acb32,_0x25d6ce,_0x5c350f,_0x50568e,_0x323e8f,_0x5bd70e,_0x3fab80,_0x335f52),this[_0x296ff2(0x1c9)]=_0x114fac,this[_0x296ff2(0x24b)]=_0x13fa13,this[_0x296ff2(0x32e)]=_0x3f16bc;}[_0x405303(0x259)](){const _0x38924d=_0x405303;let _0x24f1e7=super[_0x38924d(0x259)]();return _0x24f1e7[_0x38924d(0x2de)]=_0x254b26=>this[_0x38924d(0x32e)][_0x38924d(0x41d)](_0x254b26),_0x24f1e7;}async[_0x405303(0x176)](){const _0x19c852=_0x405303;let _0x667e5e=await super[_0x19c852(0x176)]();return this[_0x19c852(0x10f)](this['_commandService']['onMutationExecutedForCollab']((_0xee519e,_0x24089e)=>{const _0x329e9d=_0x19c852;if(_0xee519e[_0x329e9d(0x24b)]!==_0x2d0b9f[_0x329e9d(0x150)]['MUTATION']||_0x24089e!=null&&_0x24089e[_0x329e9d(0x17a)]||_0x24089e!=null&&_0x24089e[_0x329e9d(0x366)])return;let _0x5ccb63=_0xee519e[_0x329e9d(0x329)];if((_0x5ccb63==null?void 0x0:_0x5ccb63[_0x329e9d(0x29b)])!==this[_0x329e9d(0x1c9)])return;let _0xdff2f2=_0xee519e,_0x53ec12=this['_compressMutationService'][_0x329e9d(0x19c)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x329e9d(0x380)]()['COMPRESS_MUTATION_SEND'])([_0xdff2f2],this[_0x329e9d(0x347)])||[_0xdff2f2];this['_onLocalMutation'](_0x53ec12[0x0]);})),_0x667e5e;}};_0x5080f=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['CompressMutationService'])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f['LocaleService'])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x201f2c)),_0x43549d(0x8,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xc,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xe,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x5080f);let _0x33945f=class extends _0xfb921e{constructor(_0x5de533,_0x5392e1,_0x26a6ae,_0x3ff797,_0xa4977d,_0x15720c,_0xb2d1e1,_0x2b37fb,_0x1c6b29,_0x130975,_0x48862c,_0x325f19,_0x9f2303,_0xfd1fc9){const _0x165afc=_0x405303;super(_0x5de533,_0x26a6ae,_0x5392e1,_0x3ff797,_0xa4977d,_0x15720c,_0xb2d1e1,_0x2b37fb,_0x1c6b29,_0x130975,_0x48862c,_0x325f19,_0x9f2303,_0xfd1fc9),this[_0x165afc(0x1c9)]=_0x5de533,this[_0x165afc(0x24b)]=_0x5392e1;}async[_0x405303(0x176)](){const _0x98057b=_0x405303;let _0x36acad=await super[_0x98057b(0x176)]();return this[_0x98057b(0x10f)](this[_0x98057b(0xf5)][_0x98057b(0x19a)]((_0x2d49ce,_0x2995e4)=>{const _0x5388cc=_0x98057b;if(_0x2d49ce['type']!==_0x2d0b9f[_0x5388cc(0x150)][_0x5388cc(0x245)]||_0x2995e4!=null&&_0x2995e4[_0x5388cc(0x17a)]||_0x2995e4!=null&&_0x2995e4['onlyLocal'])return;let _0x345133=_0x2d49ce['params'];if((_0x345133==null?void 0x0:_0x345133[_0x5388cc(0x29b)])!==this['unitID'])return;let _0x7dc7c=_0x2d49ce,_0x1a802f=this['_compressMutationService'][_0x5388cc(0x19c)][_0x5388cc(0x33e)](this[_0x5388cc(0x44a)][_0x5388cc(0x19c)][_0x5388cc(0x380)]()[_0x5388cc(0x389)])([_0x7dc7c],this[_0x5388cc(0x347)])||[_0x7dc7c];this['_onLocalMutation'](_0x1a802f[0x0]);})),_0x36acad;}};_0x33945f=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['CompressMutationService'])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f['LocaleService'])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x7,(0x0,_0x2d0b9f['Inject'])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xd,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x33945f);let _0x4cf531=class extends _0xfb921e{constructor(_0x39acf4,_0x3bb93d,_0x105c90,_0x1599ed,_0x2b09dc,_0x15ff7c,_0x3e4c40,_0x7c445e,_0x26fd81,_0x3ea996,_0x17852d,_0x2f0916,_0x2d86a9,_0x30a46b){const _0x51c1ab=_0x405303;super(_0x39acf4,_0x105c90,_0x3bb93d,_0x1599ed,_0x2b09dc,_0x15ff7c,_0x3e4c40,_0x7c445e,_0x26fd81,_0x3ea996,_0x17852d,_0x2f0916,_0x2d86a9,_0x30a46b),this[_0x51c1ab(0x1c9)]=_0x39acf4,this[_0x51c1ab(0x24b)]=_0x3bb93d;}async[_0x405303(0x176)](){const _0x385fe8=_0x405303;let _0x13b05d=await super[_0x385fe8(0x176)]();return this[_0x385fe8(0x10f)](this[_0x385fe8(0xf5)][_0x385fe8(0x19a)]((_0x54f8bc,_0x309b85)=>{const _0x5cdf36=_0x385fe8;if(_0x54f8bc[_0x5cdf36(0x24b)]!==_0x2d0b9f[_0x5cdf36(0x150)][_0x5cdf36(0x245)]||_0x309b85!=null&&_0x309b85[_0x5cdf36(0x17a)]||_0x309b85!=null&&_0x309b85[_0x5cdf36(0x366)])return;let _0x4fdccd=_0x54f8bc[_0x5cdf36(0x329)];if((_0x4fdccd==null?void 0x0:_0x4fdccd['unitId'])!==this[_0x5cdf36(0x1c9)])return;let _0x1a4a66=_0x54f8bc,_0x58f0e3=this[_0x5cdf36(0x44a)][_0x5cdf36(0x19c)]['fetchThroughInterceptors'](this[_0x5cdf36(0x44a)][_0x5cdf36(0x19c)][_0x5cdf36(0x380)]()[_0x5cdf36(0x389)])([_0x1a4a66],this[_0x5cdf36(0x347)])||[_0x1a4a66];this[_0x5cdf36(0x42e)](_0x58f0e3[0x0]);})),_0x13b05d;}};_0x4cf531=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x2f0)])),_0x43549d(0x5,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['RevisionService'])),_0x43549d(0x7,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xd,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x3e00f7))],_0x4cf531);let _0x514c5a=class extends _0xfb921e{constructor(_0x335a04,_0x2440ce,_0x1817e0,_0x4b8c81,_0x3e961c,_0x1b9621,_0x1157de,_0x411f23,_0x5b3da3,_0x4a870b,_0x2cf891,_0x6cb1d,_0x5360d8,_0x3b3216){const _0xdd12c1=_0x405303;super(_0x335a04,_0x1817e0,_0x2440ce,_0x4b8c81,_0x3e961c,_0x1b9621,_0x1157de,_0x411f23,_0x5b3da3,_0x4a870b,_0x2cf891,_0x6cb1d,_0x5360d8,_0x3b3216),this[_0xdd12c1(0x1c9)]=_0x335a04,this[_0xdd12c1(0x24b)]=_0x2440ce;}async[_0x405303(0x176)](){const _0x380a42=_0x405303;let _0x28aab5=await super[_0x380a42(0x176)]();return this[_0x380a42(0x10f)](this['_commandService'][_0x380a42(0x19a)]((_0x433730,_0x3a4212)=>{const _0x48efee=_0x380a42;if(_0x433730[_0x48efee(0x24b)]!==_0x2d0b9f[_0x48efee(0x150)][_0x48efee(0x245)]||_0x3a4212!=null&&_0x3a4212[_0x48efee(0x17a)]||_0x3a4212!=null&&_0x3a4212[_0x48efee(0x366)])return;let _0x4bc234=_0x433730[_0x48efee(0x329)];if((_0x4bc234==null?void 0x0:_0x4bc234[_0x48efee(0x29b)])!==this[_0x48efee(0x1c9)])return;let _0x3151fc=_0x433730,_0x586f98=this[_0x48efee(0x44a)][_0x48efee(0x19c)][_0x48efee(0x33e)](this['_compressMutationService'][_0x48efee(0x19c)][_0x48efee(0x380)]()[_0x48efee(0x389)])([_0x3151fc],this['_univerInstanceService'])||[_0x3151fc];this['_onLocalMutation'](_0x586f98[0x0]);})),_0x28aab5;}};_0x514c5a=_0x3934d9([_0x43549d(0x3,(0x0,_0x2d0b9f['Inject'])(_0x2d0b9f['Injector'])),_0x43549d(0x4,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x2f0)])),_0x43549d(0x5,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)])),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203[_0x405303(0x262)])),_0x43549d(0x7,(0x0,_0x2d0b9f['Inject'])(_0xa9d46c)),_0x43549d(0x8,_0x2d0b9f['IUniverInstanceService']),_0x43549d(0x9,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0xa,_0x2d0b9f['ICommandService']),_0x43549d(0xb,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0xc,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x43c9bd)),_0x43549d(0xd,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x514c5a);let _0x1e1155=(0x0,_0x2d0b9f[_0x405303(0x381)])(_0x405303(0x444));function _0x36834a(_0x218101){const _0x10ab16=_0x405303;let _0x4a2cfa=_0x218101[_0x10ab16(0x3be)],_0xc630bb=JSON[_0x10ab16(0x39c)](_0x4a2cfa);switch(_0xc630bb['cmd']){case _0x11fae4[_0x10ab16(0x139)][_0x10ab16(0x3dc)]:case _0x11fae4['CombCmd'][_0x10ab16(0x257)]:{let _0x1db6ec=_0xc630bb['infoRsp'];return{..._0xc630bb,'data':_0x1db6ec,'cmd':_0xc630bb['cmd']};}case _0x11fae4['CombCmd'][_0x10ab16(0x315)]:{let _0x4a639e=_0xc630bb[_0x10ab16(0x1fd)];return{..._0xc630bb,'data':_0x4a639e,'cmd':_0xc630bb[_0x10ab16(0x164)]};}case _0x11fae4['CombCmd'][_0x10ab16(0x359)]:{let _0xfea998=_0xc630bb[_0x10ab16(0x27c)];switch(_0xfea998[_0x10ab16(0x3cc)]){case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x3e2)]:var _0x45aca5;return{..._0xc630bb,'data':{..._0xfea998,'data':(_0x45aca5=_0xfea998[_0x10ab16(0x13f)])==null?void 0x0:_0x45aca5['cs']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent'][_0x10ab16(0x1e3)]:var _0x1ec86f;return{..._0xc630bb,'data':{..._0xfea998,'data':(_0x1ec86f=_0xfea998[_0x10ab16(0x295)])==null?void 0x0:_0x1ec86f['cs']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x2c5)]:var _0x4ebdfa;return{..._0xc630bb,'data':{..._0xfea998,'data':(_0x4ebdfa=_0xfea998[_0x10ab16(0x3d6)])==null?void 0x0:_0x4ebdfa['cs']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent'][_0x10ab16(0xfe)]:var _0x11a401;return{..._0xc630bb,'data':{..._0xfea998,'data':(_0x11a401=_0xfea998['csRejEvent'])==null?void 0x0:_0x11a401['cs']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x209)]:var _0x144f77;return{..._0xc630bb,'data':{..._0xfea998,'data':(_0x144f77=_0xfea998[_0x10ab16(0x2c7)])==null?void 0x0:_0x144f77['cs']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent'][_0x10ab16(0x130)]:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998['updateCursorEvent']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent'][_0x10ab16(0x1e8)]:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998['joinEvent']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x114)]:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x370)]},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)]['LIVESHARE_NEW_HOST']:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x144)]},'cmd':_0xc630bb['cmd']};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x1b3)]:case _0x20c203[_0x10ab16(0x3e1)]['LIVESHARE_OPERATION']:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x2a6)]},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x144)]},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203['CollaborationEvent'][_0x10ab16(0x3e4)]:return{..._0xc630bb,'data':_0xfea998,'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)]['COMMENT_UPDATE']:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x17e)]},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)]['UPDATE_PERMISSION_OBJ']:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998['updatePermissionObjEvent']},'cmd':_0xc630bb[_0x10ab16(0x164)]};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x37a)]:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x3b5)]},'cmd':_0xc630bb['cmd']};case _0x20c203[_0x10ab16(0x3e1)][_0x10ab16(0x42a)]:return{..._0xc630bb,'data':{..._0xfea998,'data':_0xfea998[_0x10ab16(0x317)]},'cmd':_0xc630bb['cmd']};default:return _0xc630bb;}}default:return _0xc630bb;}}function _0x2e90ec(_0x90cf72){const _0xe9c089=_0x405303;switch(_0x90cf72[_0xe9c089(0x164)]){case _0x11fae4[_0xe9c089(0x139)][_0xe9c089(0x3dc)]:case _0x11fae4[_0xe9c089(0x139)][_0xe9c089(0x257)]:return JSON[_0xe9c089(0x238)]({'cmd':_0x90cf72['cmd'],'routeKey':_0x90cf72[_0xe9c089(0x2bb)]});case _0x11fae4['CombCmd'][_0xe9c089(0x108)]:{let _0x215254;switch(_0x90cf72['data']['eventID']){case _0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x130)]:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)]['UPDATE_CURSOR'],'updateCursorEvent':_0x90cf72[_0xe9c089(0x3be)][_0xe9c089(0x3be)]};break;case _0x20c203[_0xe9c089(0x3e1)]['USERS_LEAVE']:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x114)],'leaveEvent':_0x90cf72[_0xe9c089(0x3be)]['data']};break;case _0x20c203[_0xe9c089(0x3e1)]['USERS_ENTER']:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x1e8)],'joinEvent':_0x90cf72[_0xe9c089(0x3be)][_0xe9c089(0x3be)]};break;case _0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x1ad)]:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x1ad)],'liveShareNewHost':_0x90cf72[_0xe9c089(0x3be)]['data']};break;case _0x20c203['CollaborationEvent'][_0xe9c089(0x300)]:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x300)],'liveShareOperation':_0x90cf72['data'][_0xe9c089(0x3be)]};break;case _0x20c203[_0xe9c089(0x3e1)]['LIVESHARE_TERMINATE']:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x90cf72[_0xe9c089(0x3be)][_0xe9c089(0x3be)]};break;case _0x20c203[_0xe9c089(0x3e1)]['LIVESHARE_REQUEST_HOST']:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x90cf72[_0xe9c089(0x3be)][_0xe9c089(0x3be)]};break;case _0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x1b3)]:_0x215254={'eventID':_0x20c203[_0xe9c089(0x3e1)][_0xe9c089(0x1b3)]};break;default:_0x215254={'eventID':_0x90cf72[_0xe9c089(0x3be)][_0xe9c089(0x3cc)]};}return JSON['stringify']({'cmd':_0x90cf72[_0xe9c089(0x164)],'routeKey':_0x90cf72[_0xe9c089(0x2bb)],'collaMsg':_0x215254});}case _0x11fae4[_0xe9c089(0x139)][_0xe9c089(0x315)]:return JSON[_0xe9c089(0x238)]({'cmd':_0x90cf72['cmd'],'routeKey':_0x90cf72[_0xe9c089(0x2bb)],'joinReq':_0x90cf72[_0xe9c089(0x3be)]});case _0x11fae4[_0xe9c089(0x139)][_0xe9c089(0x18b)]:return JSON[_0xe9c089(0x238)]({'cmd':_0x90cf72[_0xe9c089(0x164)],'routeKey':_0x90cf72['routeKey'],'leaveReq':_0x90cf72[_0xe9c089(0x3be)]});default:throw Error(_0xe9c089(0x15a));}}let _0x581f35=(0x0,_0x2d0b9f[_0x405303(0x381)])(_0x405303(0x35d));function _0x30eb9b(_0x1d553a,_0x303877,_0x335406){const _0x4eddf8=_0x405303;return _0x1d553a+'/'+_0x303877+_0x4eddf8(0x437)+_0x335406+'/new_changes';}let _0x2eb133=class extends _0x2d0b9f[_0x405303(0x2c1)]{constructor(_0x22842d,_0x2cb6af,_0x393a56,_0x556536,_0x356e9f){const _0x5976c8=_0x405303;super(),this[_0x5976c8(0x3ef)]=_0x22842d,this[_0x5976c8(0x121)]=_0x2cb6af,this['_configService']=_0x393a56,this[_0x5976c8(0x3d5)]=_0x556536,this[_0x5976c8(0x19b)]=_0x356e9f;}[_0x405303(0x12b)](_0x2e9fa9){const _0x2cfb3f=_0x405303;let _0xeb64a=this[_0x2cfb3f(0x3ef)][_0x2cfb3f(0x1b8)](_0xc90c47[_0x2cfb3f(0x352)]);if(!_0xeb64a)throw Error(_0x2cfb3f(0x3a2));let _0xd7c6f2=_0xeb64a[_0x2cfb3f(0xf0)](_0x2e9fa9);if(!_0xd7c6f2)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x39727f=new _0x2d0b9f[(_0x2cfb3f(0x302))](),_0x553631=new _0x31dca4[(_0x2cfb3f(0x29e))]();_0x39727f[_0x2cfb3f(0x376)](_0xd7c6f2['close$'][_0x2cfb3f(0x120)](_0x55adff=>_0x553631[_0x2cfb3f(0x131)](_0x55adff))),_0x39727f[_0x2cfb3f(0x376)]((0x0,_0x2d0b9f[_0x2cfb3f(0xfa)])(()=>_0x553631[_0x2cfb3f(0x104)]()));let _0x19d7f5=new _0x31dca4[(_0x2cfb3f(0x29e))]();_0x39727f[_0x2cfb3f(0x376)](_0xd7c6f2[_0x2cfb3f(0x306)][_0x2cfb3f(0x120)](_0x27d2c2=>_0x19d7f5[_0x2cfb3f(0x131)](_0x27d2c2))),_0x39727f[_0x2cfb3f(0x376)]((0x0,_0x2d0b9f[_0x2cfb3f(0xfa)])(()=>_0x19d7f5[_0x2cfb3f(0x104)]()));let _0xed80f3=new _0x31dca4[(_0x2cfb3f(0x29e))]();_0x39727f[_0x2cfb3f(0x376)](_0xd7c6f2[_0x2cfb3f(0x2ca)][_0x2cfb3f(0x120)](_0x47cd63=>{let _0x476c5d=_0x36834a(_0x47cd63);_0xed80f3['next'](_0x476c5d);})),_0x39727f[_0x2cfb3f(0x376)]((0x0,_0x2d0b9f['toDisposable'])(()=>_0xed80f3[_0x2cfb3f(0x104)]()));let _0x53608d,_0x16b19f=()=>{const _0x4b76d0=_0x2cfb3f;_0x19d7f5['next'](new Event(_0x4b76d0(0x1d2))),_0x553631[_0x4b76d0(0x131)](new Event(_0x4b76d0(0x1d2))),_0x53608d[_0x4b76d0(0x2dd)]();};return _0x53608d={'memberID':'','close$':_0x553631[_0x2cfb3f(0x41c)](),'error$':_0x19d7f5[_0x2cfb3f(0x41c)](),'open$':_0xd7c6f2['open$'],'message$':_0xed80f3['asObservable'](),'send':_0x51202f=>{const _0x4a3045=_0x2cfb3f;if(_0x51202f[_0x4a3045(0x164)]===_0x11fae4[_0x4a3045(0x139)][_0x4a3045(0x108)]){if(_0x51202f['data'][_0x4a3045(0x3cc)]===_0x20c203['CollaborationEvent'][_0x4a3045(0x3ba)]){this[_0x4a3045(0x364)](_0x53608d,_0x51202f['data'])[_0x4a3045(0x38f)](_0x4b390e=>{const _0x178dde=_0x4a3045;this['_logService'][_0x178dde(0x2a9)](_0x4b390e),_0x16b19f();});return;}if(_0x51202f[_0x4a3045(0x3be)][_0x4a3045(0x3cc)]===_0x20c203[_0x4a3045(0x3e1)]['FETCH_MISSING']){let _0x427821=_0x51202f[_0x4a3045(0x3be)];this[_0x4a3045(0x105)](_0x427821)['then'](_0x451108=>{const _0x1c0c65=_0x4a3045;_0xed80f3[_0x1c0c65(0x131)]({'cmd':_0x11fae4['CombCmd']['RECV'],'code':_0x11fae4[_0x1c0c65(0x3b3)]['OK'],'routeKey':_0x427821[_0x1c0c65(0x3be)][_0x1c0c65(0x1c9)],'routeType':'','data':{'eventID':_0x20c203['CollaborationEvent'][_0x1c0c65(0x275)],'data':{'changesets':_0x451108}}});})[_0x4a3045(0x38f)](_0x197620=>{const _0x344a4f=_0x4a3045;this['_logService'][_0x344a4f(0x2a9)](_0x197620),_0x16b19f();});return;}}_0xd7c6f2[_0x4a3045(0x177)](_0x2e90ec(_0x51202f));},'close':()=>{const _0x427b3f=_0x2cfb3f;_0xd7c6f2[_0x427b3f(0x2dd)](),_0x39727f[_0x427b3f(0x309)]();}},_0x53608d;}async['_submitChangeset'](_0x2abc8a,_0x343dc1){const _0x42659a=_0x405303;var _0x4f4b17;let {unitType:_0x3651c0,unitID:_0x21caa3,changeset:_0x265113}=_0x343dc1[_0x42659a(0x3be)],_0x1322b7={'unitID':_0x21caa3,'memberID':_0x2abc8a[_0x42659a(0x29d)],'type':_0x3651c0,'changeset':(0x0,_0x20c203[_0x42659a(0x328)])(_0x265113)},_0x3fdd81=this[_0x42659a(0x3d2)]['getConfig'](_0x51e182),_0x3d29c3=_0x30eb9b((_0x4f4b17=_0x3fdd81==null?void 0x0:_0x3fdd81[_0x42659a(0x240)])==null?'/universer-api/comb':_0x4f4b17,_0x3651c0,_0x21caa3);try{await this[_0x42659a(0x121)][_0x42659a(0x3f5)](_0x3d29c3,{'body':_0x1322b7});}catch(_0x22b36d){throw this[_0x42659a(0x3d5)][_0x42659a(0x2a9)](_0x42659a(0x420),_0x42659a(0x173)),_0x22b36d;}}async[_0x405303(0x105)](_0x4aa414){const _0x46f87d=_0x405303;let {unitID:_0x3ad8cf,from:_0x4a8f2a,to:_0x34152c,unitType:_0x27b8d7}=_0x4aa414[_0x46f87d(0x3be)];return(await this[_0x46f87d(0x19b)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x3ad8cf,'type':_0x27b8d7,'from':_0x4a8f2a,'to':_0x34152c}))['changesets'][_0x46f87d(0x110)](_0x187e61=>((_0x187e61[_0x46f87d(0xf9)]===null||_0x187e61[_0x46f87d(0xf9)]===void 0x0)&&(_0x187e61['mutations']=[]),_0x187e61));}};_0x2eb133=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x1,(0x0,_0x2d0b9f['Inject'])(_0xc90c47[_0x405303(0x141)])),_0x43549d(0x2,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0x3,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0x4,_0x20c203[_0x405303(0x3e3)])],_0x2eb133);let _0x562152=(0x0,_0x2d0b9f[_0x405303(0x381)])(_0x405303(0x3de));function _0x233b60(_0x596242={}){const _0x1f3d4e=_0x405303;return _0x596242[_0x1f3d4e(0x424)]?{'resolveUnit':_0x596242[_0x1f3d4e(0x424)]}:{'resolveUnit':_0x116c86=>({'target':{'unitId':_0x116c86['unitId'],'unitType':_0x116c86['unitType']}})};}function _0x4f435b(_0x5aae11,_0x4048ac,_0x116b29){const _0x540d4d=_0x405303;var _0xe3411f;let _0x4e7138=_0x116b29[_0x540d4d(0x11c)][_0x540d4d(0x246)];if(_0x4e7138!=null&&_0x4e7138[_0x540d4d(0x1aa)]()==='')throw Error(_0x540d4d(0x3fc));if(!_0x116b29[_0x540d4d(0x11c)]['unitId'])throw Error(_0x540d4d(0x274));return{'localUnitId':_0x5aae11,'unitType':_0x4048ac,'target':{'endpoint':_0x4e7138,'unitId':_0x116b29['target'][_0x540d4d(0x29b)],'unitType':(_0xe3411f=_0x116b29['target'][_0x540d4d(0x311)])==null?_0x4048ac:_0xe3411f},'changeset':_0x116b29[_0x540d4d(0x24c)]};}let _0x4c98b9=class extends _0x2d0b9f['Disposable']{constructor(_0x256d16,_0x2b0f75,_0x5d6feb,_0x339ff9,_0x1e2261,_0x52beac,_0x466404){const _0x19aac6=_0x405303;super(),this[_0x19aac6(0x3ef)]=_0x256d16,this[_0x19aac6(0x3d5)]=_0x2b0f75,this['_configService']=_0x5d6feb,this[_0x19aac6(0x24a)]=_0x339ff9,this['_collaborationUIEventService']=_0x1e2261,this[_0x19aac6(0x35a)]=_0x52beac,this['_networkConditionService']=_0x466404,_0x4219eb(this,_0x19aac6(0x189),new Map()),_0x4219eb(this,_0x19aac6(0x2ac),new Map()),_0x4219eb(this,_0x19aac6(0x199),new Map()),_0x4219eb(this,_0x19aac6(0x241),new Map()),_0x4219eb(this,'socket$',this[_0x19aac6(0x165)](void 0x0)[_0x19aac6(0x25f)][_0x19aac6(0x41c)]()),_0x4219eb(this,_0x19aac6(0x343),new _0x31dca4[(_0x19aac6(0x31b))](0x0)),_0x4219eb(this,_0x19aac6(0x3e0),this[_0x19aac6(0x343)]['asObservable']()),this[_0x19aac6(0x32b)]();}[_0x405303(0x32b)](){const _0x5a5d9a=_0x405303;this[_0x5a5d9a(0x374)]&&this[_0x5a5d9a(0x10f)](this['_networkConditionService'][_0x5a5d9a(0x229)]['subscribe'](_0x4a460f=>{const _0xc92087=_0x5a5d9a;_0x4a460f&&this['reconnect'](),_0x4a460f||this[_0xc92087(0x241)]['forEach'](_0x2beee6=>this[_0xc92087(0x1fe)](_0x2beee6));}));}[_0x405303(0x309)](){const _0x3513ea=_0x405303;super[_0x3513ea(0x309)](),this[_0x3513ea(0x241)][_0x3513ea(0x412)](_0x59706c=>{const _0x4cf025=_0x3513ea;var _0x3f71aa,_0x550984;(_0x3f71aa=_0x59706c[_0x4cf025(0x2ee)])==null||_0x3f71aa['unsubscribe'](),_0x59706c[_0x4cf025(0x2ee)]=null,this[_0x4cf025(0x36a)](_0x59706c),this[_0x4cf025(0x404)](_0x59706c),this[_0x4cf025(0x264)](_0x59706c),(_0x550984=_0x59706c[_0x4cf025(0x25f)]['getValue']())==null||_0x550984[_0x4cf025(0x2dd)](),_0x59706c[_0x4cf025(0x25f)][_0x4cf025(0x104)]();}),this['_socketChannels'][_0x3513ea(0x3c7)](),this[_0x3513ea(0x189)][_0x3513ea(0x412)](_0x3fbcb4=>_0x3fbcb4[_0x3513ea(0x309)]()),this[_0x3513ea(0x189)]['clear'](),this['_sessionChannels'][_0x3513ea(0x3c7)](),this[_0x3513ea(0x343)][_0x3513ea(0x104)]();}async[_0x405303(0x305)](_0x3ac9b3,_0x3dac5b){const _0x148574=_0x405303;if(this['_sessions']['has'](_0x3ac9b3))return this[_0x148574(0x189)][_0x148574(0x1b8)](_0x3ac9b3);let _0x1eab1d=this['_pendingSessions']['get'](_0x3ac9b3);if(_0x1eab1d)return _0x1eab1d;let _0x40bbd7=this['_createSession'](_0x3ac9b3,_0x3dac5b);this[_0x148574(0x2ac)][_0x148574(0x339)](_0x3ac9b3,_0x40bbd7);try{return await _0x40bbd7;}finally{this[_0x148574(0x2ac)][_0x148574(0x142)](_0x3ac9b3);}}async[_0x405303(0x1a8)](_0xaf51c1,_0x25e85b){const _0x3202fa=_0x405303;let _0x2f185c=await this[_0x3202fa(0x26d)](_0xaf51c1,_0x25e85b),_0x47ead7=this[_0x3202fa(0x165)](_0x2f185c[_0x3202fa(0x11c)][_0x3202fa(0x246)]);this[_0x3202fa(0x125)](_0x47ead7);let _0x571a00=this[_0x3202fa(0x3ef)]['createInstance'](_0x1213e3,_0x2f185c,_0x47ead7[_0x3202fa(0x25f)][_0x3202fa(0x41c)]());return this[_0x3202fa(0x189)][_0x3202fa(0x339)](_0xaf51c1,_0x571a00),this['_sessionChannels']['set'](_0xaf51c1,_0x47ead7[_0x3202fa(0xf1)]),_0x571a00;}[_0x405303(0x34a)](_0x27af25){const _0x31647a=_0x405303;let _0x5a43e0=this['_sessions'][_0x31647a(0x1b8)](_0x27af25),_0x5e766c=this['_sessionChannels'][_0x31647a(0x1b8)](_0x27af25);if(_0x5a43e0&&(this[_0x31647a(0x189)][_0x31647a(0x142)](_0x27af25),this[_0x31647a(0x199)][_0x31647a(0x142)](_0x27af25),_0x5a43e0[_0x31647a(0x2dd)]()),_0x5e766c&&!this['_hasSessionsForEndpoint'](_0x5e766c)){var _0x132109;let _0x52591c=this['_socketChannels'][_0x31647a(0x1b8)](_0x5e766c);_0x52591c==null||(_0x132109=_0x52591c[_0x31647a(0x25f)][_0x31647a(0x22a)]())==null||_0x132109[_0x31647a(0x2dd)]();}}['reconnect'](){const _0xd08a7b=_0x405303;(this['_socketChannels'][_0xd08a7b(0x1db)]?[...this[_0xd08a7b(0x241)][_0xd08a7b(0x1af)]()]:[this[_0xd08a7b(0x165)](void 0x0)])['forEach'](_0x17d5ce=>{const _0x7fb614=_0xd08a7b;_0x17d5ce[_0x7fb614(0x3ec)]=0x0,this['_clearRetryConnectingTimer'](_0x17d5ce),this[_0x7fb614(0x183)](_0x17d5ce);});}[_0x405303(0x36a)](_0x3e7720){const _0x53fe7b=_0x405303;_0x3e7720[_0x53fe7b(0x3b4)]!=null&&(clearTimeout(_0x3e7720[_0x53fe7b(0x3b4)]),_0x3e7720['retryConnectingTimer']=null);}async['_createSocket'](_0x272e0a){const _0x58240c=_0x405303;var _0x1fe212,_0x18a893;let _0x3590df=this[_0x58240c(0x3d2)][_0x58240c(0x112)](_0x51e182),_0x26ca48=(_0x1fe212=(_0x18a893=_0x272e0a[_0x58240c(0x246)])==null?_0x3590df==null?void 0x0:_0x3590df[_0x58240c(0x38c)]:_0x18a893)==null?_0x219b9d:_0x1fe212,_0x3b2896=await this[_0x58240c(0x24a)][_0x58240c(0xf0)](_0x26ca48);return _0x272e0a[_0x58240c(0x31d)]=_0x3b2896,_0x3b2896;}async[_0x405303(0x125)](_0x75e20e){const _0x532155=_0x405303;try{var _0x1fd60c,_0x3315fd;let _0x15ba94=(_0x1fd60c=(_0x3315fd=_0x75e20e['socket$'][_0x532155(0x22a)]())==null?_0x75e20e['candidateSocket']:_0x3315fd)==null?await this[_0x532155(0x2fd)](_0x75e20e):_0x1fd60c;if(_0x15ba94){var _0x1998ba;let _0x226e21=_0x15ba94[_0x532155(0x177)];_0x15ba94[_0x532155(0x177)]=_0x470a45=>(_0x470a45[_0x532155(0x164)]!==_0x11fae4[_0x532155(0x139)]['LEAVE']&&this[_0x532155(0x435)](_0x75e20e),_0x226e21[_0x532155(0x3d9)](_0x15ba94,[_0x470a45])),(_0x1998ba=_0x75e20e[_0x532155(0x2ee)])==null||_0x1998ba[_0x532155(0x3e8)](),_0x75e20e[_0x532155(0x2ee)]=null,_0x75e20e['socketMessageSubscription']=_0x15ba94[_0x532155(0x2ca)]['subscribe'](_0xccc548=>this['_onMessage'](_0x75e20e,_0x15ba94,_0xccc548)),_0x15ba94[_0x532155(0x306)][_0x532155(0x18e)]((0x0,_0x2ba3c8[_0x532155(0x193)])(0x1))[_0x532155(0x120)](_0x784c8a=>this[_0x532155(0x3d5)][_0x532155(0x2a9)](_0x532155(0x29c),_0x784c8a)),_0x15ba94[_0x532155(0x3c6)][_0x532155(0x18e)]((0x0,_0x2ba3c8['take'])(0x1))[_0x532155(0x120)](()=>{const _0x2353e2=_0x532155;this[_0x2353e2(0x1bb)](_0x75e20e,_0x15ba94);}),_0x15ba94[_0x532155(0x3cf)]['pipe']((0x0,_0x2ba3c8['take'])(0x1))[_0x532155(0x120)](_0x13197e=>{const _0x12d3f6=_0x532155;this[_0x12d3f6(0x3d5)][_0x12d3f6(0x30f)]('[CollaborationSessionService]',_0x12d3f6(0x38e),_0x13197e),this['_onConnectionFailed'](_0x75e20e);});}}catch(_0x27723d){this[_0x532155(0x3d5)][_0x532155(0x2a9)](_0x27723d),this['_onConnectionFailed'](_0x75e20e);}}[_0x405303(0x1bb)](_0x89b3f4,_0x264839){const _0x7b3c28=_0x405303;this['_logService'][_0x7b3c28(0x30f)]('[CollaborationSessionService]',_0x7b3c28(0x363)),_0x264839[_0x7b3c28(0x177)]({'cmd':_0x11fae4[_0x7b3c28(0x139)]['HELLO']}),this[_0x7b3c28(0x435)](_0x89b3f4);}[_0x405303(0x1fe)](_0x18f744){const _0x43adc1=_0x405303;_0x18f744[_0x43adc1(0x12e)]=!0x1,_0x18f744[_0x43adc1(0x31d)]=null,this[_0x43adc1(0x343)]['next'](0x2),_0x18f744[_0x43adc1(0x25f)][_0x43adc1(0x131)](null),this[_0x43adc1(0x404)](_0x18f744),this[_0x43adc1(0x264)](_0x18f744);}[_0x405303(0x2df)](_0x16c71e){const _0xc40c92=_0x405303;var _0x2dd34e;this['_onOffline'](_0x16c71e),this[_0xc40c92(0x3c2)](_0x16c71e[_0xc40c92(0xf1)])&&(_0x16c71e['retryCount']<((_0x2dd34e=this[_0xc40c92(0x3d2)][_0xc40c92(0x112)](_0xc40c92(0x113)))==null?0x3:_0x2dd34e)?(this['_collaborationUIEventService'][_0xc40c92(0x31f)]({'id':_0xc40c92(0x294)}),this[_0xc40c92(0x183)](_0x16c71e)):this[_0xc40c92(0x214)][_0xc40c92(0x31f)]({'id':_0xc40c92(0x384)}));}[_0x405303(0x183)](_0xf66d94){const _0x343022=_0x405303;var _0x2326e3;let _0x297856=_0xf66d94['retryCount'],_0x59e9d7=this[_0x343022(0x3d2)][_0x343022(0x112)](_0x51e182),_0x1df45b=_0x297856===0x0?0x0:((_0x2326e3=_0x59e9d7==null?void 0x0:_0x59e9d7[_0x343022(0x3fd)])==null?0x4e20:_0x2326e3)*0x2**_0x297856;_0xf66d94[_0x343022(0x3b4)]=setTimeout(()=>{const _0x52f02b=_0x343022;clearTimeout(_0xf66d94[_0x52f02b(0x3b4)]),_0xf66d94[_0x52f02b(0x3b4)]=null,this[_0x52f02b(0x125)](_0xf66d94);},_0x1df45b),_0xf66d94['retryCount']+=0x1;}async[_0x405303(0x26d)](_0x26443a,_0x1f9237){const _0x147427=_0x405303;return _0x4f435b(_0x26443a,_0x1f9237,await this[_0x147427(0x35a)][_0x147427(0x424)]({'unitId':_0x26443a,'unitType':_0x1f9237}));}[_0x405303(0x2a2)](_0x51b4cb,_0x331562,_0xc36a76){const _0x414ff9=_0x405303;let {cmd:_0x37a9a0}=_0xc36a76;_0x37a9a0===_0x11fae4[_0x414ff9(0x139)][_0x414ff9(0x257)]&&!_0x51b4cb[_0x414ff9(0x12e)]&&(_0x331562['memberID']=_0xc36a76['data']['memberID'],_0x51b4cb[_0x414ff9(0x25f)][_0x414ff9(0x131)](_0x331562),this[_0x414ff9(0x343)]['next'](0x3),_0x51b4cb['socketReady']=!0x0,_0x51b4cb[_0x414ff9(0x31d)]=null),_0x37a9a0===_0x11fae4[_0x414ff9(0x139)][_0x414ff9(0x3dc)]&&this['_clearTimeoutTimer'](_0x51b4cb),this['_rescheduleHeartbeat'](_0x51b4cb);}[_0x405303(0x3c2)](_0x32d79c){const _0x24765f=_0x405303;return[...this[_0x24765f(0x199)]['values']()]['some'](_0x1e59aa=>_0x1e59aa===_0x32d79c);}[_0x405303(0x165)](_0x227086){const _0x1f8d67=_0x405303;let _0x1c3591=_0x227086==null?'':_0x227086,_0x147b03=this['_socketChannels']['get'](_0x1c3591);if(_0x147b03)return _0x147b03;let _0x565fae={'endpointKey':_0x1c3591,'endpoint':_0x227086,'socket$':new _0x31dca4[(_0x1f8d67(0x31b))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x1f8d67(0x241)][_0x1f8d67(0x339)](_0x1c3591,_0x565fae),_0x565fae;}['_rescheduleHeartbeat'](_0x2564a){const _0x442b1d=_0x405303;var _0x12f80a;this[_0x442b1d(0x264)](_0x2564a),_0x2564a['sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](_0x2564a),(_0x12f80a=this[_0x442b1d(0x3d2)]['getConfig'](_0x442b1d(0x2db)))==null?0x7530:_0x12f80a);}['_sendHeartbeat'](_0x5c7143){const _0x1b3fa8=_0x405303;_0x5c7143[_0x1b3fa8(0x25f)][_0x1b3fa8(0x22a)]()['send']({'cmd':_0x11fae4[_0x1b3fa8(0x139)][_0x1b3fa8(0x3dc)]}),this['_waitForHeartbeatResponse'](_0x5c7143);}[_0x405303(0x285)](_0x2d1665){const _0x7e3fc4=_0x405303;var _0xf34594;_0x2d1665[_0x7e3fc4(0x14d)]=setTimeout(()=>this['_onConnectionFailed'](_0x2d1665),(_0xf34594=this[_0x7e3fc4(0x3d2)]['getConfig'](_0x7e3fc4(0x26f)))==null?_0x1dd4cb:_0xf34594);}['_clearHeartbeatTimer'](_0x44a63f){const _0x378461=_0x405303;_0x44a63f[_0x378461(0x2fb)]!=null&&(clearTimeout(_0x44a63f[_0x378461(0x2fb)]),_0x44a63f[_0x378461(0x2fb)]=null);}[_0x405303(0x404)](_0xd3834b){const _0x5eb704=_0x405303;_0xd3834b['timeoutTimer']!=null&&(clearTimeout(_0xd3834b['timeoutTimer']),_0xd3834b[_0x5eb704(0x14d)]=null);}};_0x4c98b9=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0x2,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0x3,_0x581f35),_0x43549d(0x4,(0x0,_0x2d0b9f['Inject'])(_0xa9d46c)),_0x43549d(0x5,_0x562152),_0x43549d(0x6,(0x0,_0x2d0b9f[_0x405303(0x2d5)])(_0x1e1155))],_0x4c98b9);let _0x58a316=class extends _0x2d0b9f[_0x405303(0x16d)]{constructor(_0x3087b9,_0x486a73,_0x1cfe87,_0x4514a3){const _0x33294d=_0x405303;var _0x3fb2b5;super(),this['_injector']=_0x3087b9,this['_collabSessionService']=_0x486a73,this[_0x33294d(0x3d2)]=_0x1cfe87,this[_0x33294d(0x347)]=_0x4514a3,_0x4219eb(this,_0x33294d(0x122),new Map()),_0x4219eb(this,'_entityInit$',new _0x31dca4[(_0x33294d(0x29e))]()),_0x4219eb(this,'entityInit$',this['_entityInit$'][_0x33294d(0x41c)]()),((_0x3fb2b5=this[_0x33294d(0x3d2)][_0x33294d(0x112)](_0x33294d(0x21e)))==null?void 0x0:_0x3fb2b5[_0x33294d(0x227)])!==!0x1&&this[_0x33294d(0x176)]();}[_0x405303(0x309)](){const _0x487a21=_0x405303;super[_0x487a21(0x309)](),this['_entities'][_0x487a21(0x412)](_0x30697c=>_0x30697c[_0x487a21(0x309)]()),this[_0x487a21(0x122)][_0x487a21(0x3c7)]();}[_0x405303(0x15b)](_0x24458c){const _0x5698f5=_0x405303;var _0xe5397d;return(_0xe5397d=this[_0x5698f5(0x122)][_0x5698f5(0x1b8)](_0x24458c))==null?null:_0xe5397d;}['getCollabEntity$'](_0x202985){const _0x570c3f=_0x405303;let _0x5949c7=this[_0x570c3f(0x15b)](_0x202985);return _0x5949c7?(0x0,_0x31dca4['of'])(_0x5949c7):this[_0x570c3f(0x179)][_0x570c3f(0x18e)]((0x0,_0x2ba3c8[_0x570c3f(0x24d)])(_0xadcdf7=>_0xadcdf7['unitID']===_0x202985));}[_0x405303(0x1a5)](_0x3ccbc4){const _0x2101bf=_0x405303;return(0x0,_0x31dca4[_0x2101bf(0x2a8)])(this[_0x2101bf(0x3d7)](_0x3ccbc4)[_0x2101bf(0x18e)]((0x0,_0x2ba3c8[_0x2101bf(0x110)])(()=>void 0x0)));}['_init'](){const _0x3396d0=_0x405303;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2d0b9f[_0x3396d0(0x341)]['UNIVER_SHEET'])[_0x3396d0(0x18e)]((0x0,_0x31dca4['takeUntil'])(this[_0x3396d0(0x405)]),(0x0,_0x2ba3c8[_0x3396d0(0x152)])(0x10))[_0x3396d0(0x120)](async _0x2bfad2=>{const _0x329251=_0x3396d0;let _0x16107c=_0x2bfad2['unit'][_0x329251(0x202)](),_0x55eb3b=await this[_0x329251(0x27b)](_0x16107c,_0x2d0b9f['UniverInstanceType'][_0x329251(0x378)]);this['_entities']['set'](_0x16107c,_0x55eb3b);}),this[_0x3396d0(0x347)]['getTypeOfUnitAdded$'](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x13a)])['pipe']((0x0,_0x31dca4[_0x3396d0(0x220)])(this[_0x3396d0(0x405)]),(0x0,_0x2ba3c8[_0x3396d0(0x152)])(0x10))[_0x3396d0(0x18e)]((0x0,_0x2ba3c8['filter'])(_0x474f62=>!_0x474f62[_0x3396d0(0x417)][_0x3396d0(0x202)]()[_0x3396d0(0x3ea)]('__')))['subscribe'](async _0x2c819c=>{const _0x428849=_0x3396d0;let _0x1441ad=_0x2c819c['unit'][_0x428849(0x202)](),_0x34080b=await this['_startCollaboration'](_0x1441ad,_0x2d0b9f['UniverInstanceType'][_0x428849(0x13a)]);this[_0x428849(0x122)][_0x428849(0x339)](_0x1441ad,_0x34080b);}),this['_univerInstanceService'][_0x3396d0(0x307)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x358)])[_0x3396d0(0x18e)]((0x0,_0x31dca4[_0x3396d0(0x220)])(this[_0x3396d0(0x405)]),(0x0,_0x2ba3c8[_0x3396d0(0x152)])(0x10))[_0x3396d0(0x120)](async _0x1e25af=>{const _0x28a606=_0x3396d0;let _0x2995d2=_0x1e25af[_0x28a606(0x417)][_0x28a606(0x202)](),_0x1763a3=await this['_startCollaboration'](_0x2995d2,_0x2d0b9f[_0x28a606(0x341)][_0x28a606(0x358)]);this['_entities']['set'](_0x2995d2,_0x1763a3);}),this[_0x3396d0(0x347)][_0x3396d0(0x307)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x333)])[_0x3396d0(0x18e)]((0x0,_0x31dca4[_0x3396d0(0x220)])(this[_0x3396d0(0x405)]),(0x0,_0x2ba3c8['delay'])(0x10))[_0x3396d0(0x120)](async _0x32af34=>{const _0x25d43e=_0x3396d0;let _0x3e739b=_0x32af34[_0x25d43e(0x417)][_0x25d43e(0x202)](),_0x273298=await this['_startCollaboration'](_0x3e739b,_0x2d0b9f['UniverInstanceType'][_0x25d43e(0x333)]);this[_0x25d43e(0x122)][_0x25d43e(0x339)](_0x3e739b,_0x273298);}),this['_univerInstanceService'][_0x3396d0(0x307)](_0x2d0b9f[_0x3396d0(0x341)]['UNIVER_BASE'])['pipe']((0x0,_0x31dca4['takeUntil'])(this[_0x3396d0(0x405)]),(0x0,_0x2ba3c8[_0x3396d0(0x152)])(0x10))['subscribe'](async _0x44bc30=>{const _0xb2c10f=_0x3396d0;let _0x5c6418=_0x44bc30[_0xb2c10f(0x417)][_0xb2c10f(0x202)](),_0x5512a1=await this[_0xb2c10f(0x27b)](_0x5c6418,_0x2d0b9f[_0xb2c10f(0x341)][_0xb2c10f(0x17d)]);this[_0xb2c10f(0x122)][_0xb2c10f(0x339)](_0x5c6418,_0x5512a1);}),this['_univerInstanceService'][_0x3396d0(0x307)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x31e)])[_0x3396d0(0x18e)]((0x0,_0x31dca4[_0x3396d0(0x220)])(this['dispose$']),(0x0,_0x2ba3c8[_0x3396d0(0x152)])(0x10))['subscribe'](async _0x14d1a7=>{const _0x528dce=_0x3396d0;let _0x401e24=_0x14d1a7[_0x528dce(0x417)]['getUnitId'](),_0x2e0d8f=await this[_0x528dce(0x27b)](_0x401e24,_0x2d0b9f[_0x528dce(0x341)]['UNIVER_PDF']);this['_entities'][_0x528dce(0x339)](_0x401e24,_0x2e0d8f);}),(0x0,_0x31dca4['merge'])(this[_0x3396d0(0x347)][_0x3396d0(0x336)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x378)]),this[_0x3396d0(0x347)]['getTypeOfUnitDisposed$'](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x13a)]),this[_0x3396d0(0x347)][_0x3396d0(0x336)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x358)]),this[_0x3396d0(0x347)][_0x3396d0(0x336)](_0x2d0b9f['UniverInstanceType']['UNIVER_BOARD']),this[_0x3396d0(0x347)][_0x3396d0(0x336)](_0x2d0b9f[_0x3396d0(0x341)]['UNIVER_BASE']),this[_0x3396d0(0x347)][_0x3396d0(0x336)](_0x2d0b9f[_0x3396d0(0x341)][_0x3396d0(0x31e)]))['pipe']((0x0,_0x31dca4[_0x3396d0(0x220)])(this[_0x3396d0(0x405)]))['subscribe'](_0xfe643b=>{const _0x45067c=_0x3396d0;let _0x26a94b=_0xfe643b[_0x45067c(0x202)](),_0x2c2d44=this[_0x45067c(0x122)][_0x45067c(0x1b8)](_0x26a94b);_0x2c2d44&&(_0x2c2d44[_0x45067c(0x309)](),this[_0x45067c(0x122)][_0x45067c(0x142)](_0x26a94b));});}async[_0x405303(0x27b)](_0x46ed7e,_0xe62859){const _0x30eb9c=_0x405303;let _0x4b758d=await this[_0x30eb9c(0x3df)][_0x30eb9c(0x305)](_0x46ed7e),_0x47c056=this[_0x30eb9c(0x3ef)]['createInstance'](this[_0x30eb9c(0x3f1)](_0xe62859),_0x46ed7e,_0xe62859,_0x4b758d);return await _0x47c056['init'](),this[_0x30eb9c(0x179)][_0x30eb9c(0x131)](_0x47c056),_0x47c056;}[_0x405303(0x3f1)](_0x512316){const _0xcf3ed2=_0x405303;switch(_0x512316){case _0x2d0b9f[_0xcf3ed2(0x341)][_0xcf3ed2(0x13a)]:return _0x5a7876;case _0x2d0b9f[_0xcf3ed2(0x341)][_0xcf3ed2(0x378)]:return _0x5080f;case _0x2d0b9f['UniverInstanceType'][_0xcf3ed2(0x358)]:return _0x33945f;case _0x2d0b9f[_0xcf3ed2(0x341)][_0xcf3ed2(0x333)]:return _0x4cf531;case _0x2d0b9f['UniverInstanceType']['UNIVER_BASE']:return _0x59b528;case _0x2d0b9f[_0xcf3ed2(0x341)]['UNIVER_PDF']:return _0x514c5a;default:throw Error(_0xcf3ed2(0x271)+_0x512316);}}};_0x58a316=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x1,(0x0,_0x2d0b9f['Inject'])(_0x4c98b9)),_0x43549d(0x2,_0x2d0b9f['IConfigService']),_0x43549d(0x3,_0x2d0b9f[_0x405303(0x217)])],_0x58a316);var _0x556b81=_0x405303(0x2f4),_0x5f209a=_0x405303(0x1b6);let _0x3ed61f=class extends _0x2d0b9f[_0x405303(0x2c1)]{constructor(_0x28a6a7,_0x94e884){const _0x3a45a3=_0x405303;super(),this[_0x3a45a3(0x347)]=_0x28a6a7,this[_0x3a45a3(0x3d2)]=_0x94e884,this[_0x3a45a3(0x176)]();}[_0x405303(0x176)](){const _0x493955=_0x405303;this['disposeWithMe'](this[_0x493955(0x347)][_0x493955(0x205)][_0x493955(0x120)](()=>{const _0x45573f=_0x493955;var _0x1f4ae9;let _0x420836=this[_0x45573f(0x347)][_0x45573f(0x1bf)](),_0x1d1bf8=(_0x1f4ae9=this['_configService'][_0x45573f(0x112)](_0x45573f(0x2f5)))==null?'Univer':_0x1f4ae9;_0x420836 instanceof _0x2d0b9f['Workbook']&&(_0x1d1bf8=_0x420836['name']),document['title']=_0x1d1bf8;}));}};_0x3ed61f=_0x3934d9([_0x43549d(0x0,_0x2d0b9f['IUniverInstanceService']),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x346)])],_0x3ed61f);let _0x29321d=(0x0,_0x2d0b9f['createIdentifier'])(_0x405303(0x33c)),_0x36dd49=class{constructor(_0xac8f33,_0x2fba5a,_0x23fe2d){const _0x4de4d0=_0x405303;this[_0x4de4d0(0x121)]=_0xac8f33,this[_0x4de4d0(0x3d2)]=_0x2fba5a,this[_0x4de4d0(0x347)]=_0x23fe2d;}[_0x405303(0x3fb)](){var _0x2458f4;return(_0x2458f4=this['_getConfig']()['attachment'])==null?{}:_0x2458f4;}async[_0x405303(0x355)](_0x5158b6){const _0x430636=_0x405303;let _0x59a688=this[_0x430636(0x3fb)]();if(_0x279903(_0x5158b6,_0x59a688),_0x59a688['upload'])return _0x59a688[_0x430636(0x2e4)](_0x5158b6);let _0x46af17=await this[_0x430636(0x313)](_0x5158b6);return{'id':_0x46af17,'name':_0x5158b6[_0x430636(0xeb)],'mimeType':_0x5158b6[_0x430636(0x24b)],'size':_0x5158b6[_0x430636(0x1db)],'sourceType':_0x2d0b9f[_0x430636(0x41f)]['UUID'],'source':_0x46af17};}async[_0x405303(0x41a)](_0x5a49e4,_0x43ac90){const _0x42a113=_0x405303;if(_0x43ac90!==_0x2d0b9f[_0x42a113(0x41f)][_0x42a113(0x2f1)])return _0x5a49e4;let _0x478f76=(await this[_0x42a113(0x121)][_0x42a113(0x1b8)](this[_0x42a113(0x18a)]()[_0x42a113(0x1ee)]('{fileID}',_0x5a49e4)))[_0x42a113(0x43d)];if(_0x478f76[_0x42a113(0x2a9)]&&_0x478f76['error'][_0x42a113(0x2c4)]!==_0x11fae4[_0x42a113(0x334)]['OK'])throw _0x478f76['error'];if(!_0x478f76['url'])throw Error(_0x42a113(0xf8));return(0x0,_0x2d0b9f['resolveWithBasePath'])(_0x478f76[_0x42a113(0x204)],this['_getDownloadEndpointURL']());}async[_0x405303(0x313)](_0x47a9fb){const _0x2e671b=_0x405303;let _0x5df086=this[_0x2e671b(0x347)][_0x2e671b(0x1bf)](),_0x131298=_0x5df086==null?void 0x0:_0x5df086[_0x2e671b(0x202)]();if(!_0x131298)throw Error(_0x2e671b(0x1b5));let _0x205da4=new FormData();_0x205da4[_0x2e671b(0x43f)]('file',_0x47a9fb);let _0x132c77=this['_getUploadFileURL']()+_0x2e671b(0x319)+_0x47a9fb[_0x2e671b(0x1db)][_0x2e671b(0x349)]()+_0x2e671b(0x369)+_0x11fae4[_0x2e671b(0x34e)][_0x2e671b(0x3f8)]+_0x2e671b(0x156)+encodeURIComponent(_0x131298),_0x5cd7e3=(await this[_0x2e671b(0x121)][_0x2e671b(0x3f5)](_0x132c77,{'body':_0x205da4}))[_0x2e671b(0x43d)][_0x2e671b(0x2d1)];if(typeof _0x5cd7e3!='string'||!_0x5cd7e3)throw Error(_0x2e671b(0x13d));return _0x5cd7e3;}[_0x405303(0x27f)](){const _0x124773=_0x405303;var _0x14f251;return(_0x14f251=this[_0x124773(0x1ac)]()['uploadFileServerUrl'])==null?_0x124773(0x234):_0x14f251;}[_0x405303(0x18a)](){const _0x12c195=_0x405303;var _0x357ac4;return(_0x357ac4=this[_0x12c195(0x1ac)]()[_0x12c195(0x338)])==null?_0x12c195(0x441):_0x357ac4;}[_0x405303(0x33f)](){const _0x3ec3c1=_0x405303;var _0x426217;let _0x50d5d0=this[_0x3ec3c1(0x1ac)]();return _0x50d5d0[_0x3ec3c1(0x3d3)]?_0x50d5d0[_0x3ec3c1(0x3d3)]:typeof location<'u'?location[_0x3ec3c1(0x1cf)]:(_0x426217=_0x50d5d0['uploadFileServerUrl'])==null?'':_0x426217;}['_getConfig'](){const _0x246a65=_0x405303;var _0x664168;return(_0x664168=this[_0x246a65(0x3d2)]['getConfig'](_0x246a65(0x21e)))==null?{}:_0x664168;}};_0x36dd49=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)])),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x346)])),_0x43549d(0x2,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x217)]))],_0x36dd49);function _0x279903(_0x345a51,_0x1037a2){const _0x37a8a2=_0x405303;var _0x3b6346;if(_0x1037a2['maxSize']!=null&&_0x345a51[_0x37a8a2(0x1db)]>_0x1037a2[_0x37a8a2(0x2be)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x3b6346=_0x1037a2[_0x37a8a2(0x368)])!=null&&_0x3b6346[_0x37a8a2(0x182)]&&!_0x1037a2[_0x37a8a2(0x368)][_0x37a8a2(0x231)](_0x188ed0=>_0x345a51[_0x37a8a2(0x24b)]===_0x188ed0||_0x345a51[_0x37a8a2(0xeb)][_0x37a8a2(0x3f3)](_0x188ed0)||_0x188ed0[_0x37a8a2(0x3f3)]('/*')&&_0x345a51[_0x37a8a2(0x24b)][_0x37a8a2(0x3ea)](_0x188ed0[_0x37a8a2(0x33d)](0x0,-0x1))))throw Error(_0x37a8a2(0x239));}let _0x1eed0d=class{constructor(_0x373545,_0x55b40c,_0x42d377){const _0x53be21=_0x405303;this[_0x53be21(0x3d2)]=_0x373545,this['_httpService']=_0x55b40c,this[_0x53be21(0x11e)]=_0x42d377,this[_0x53be21(0x3c9)]();}['init'](){const _0x2ef415=_0x405303;this[_0x2ef415(0x121)][_0x2ef415(0x42d)]({'priority':0x1,'interceptor':(_0x3ef600,_0x5d8413)=>_0x5d8413(_0x3ef600)[_0x2ef415(0x18e)]((0x0,_0x31dca4[_0x2ef415(0x367)])(async _0x17ea83=>{const _0x2629d1=_0x2ef415;let _0x2e4da4=_0x17ea83;if(_0x2e4da4[_0x2629d1(0x1b9)]===0x191){if(typeof window>'u')throw Error(_0x2629d1(0x2b9));if(window[_0x2629d1(0x401)](this['localeService']['t'](_0x2629d1(0x410)))){let _0xf155c0=window[_0x2629d1(0x443)](window['location'][_0x2629d1(0x111)]);window[_0x2629d1(0x354)]['href']=this[_0x2629d1(0x1de)]()+_0x2629d1(0x377)+_0xf155c0;}}return _0x2e4da4;}))});}[_0x405303(0x1de)](){const _0x4790a=_0x405303;var _0x190950;let _0x4610b2=this['_configService']['getConfig'](_0x51e182);return(_0x190950=_0x4610b2==null?void 0x0:_0x4610b2[_0x4790a(0x2e1)])==null?'/universer-api/oidc/authpage':_0x190950;}};_0x1eed0d=_0x3934d9([_0x43549d(0x0,_0x2d0b9f['IConfigService']),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)])),_0x43549d(0x2,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x39b)]))],_0x1eed0d);let _0x4e73d2=class extends _0x2d0b9f[_0x405303(0x2c1)]{constructor(_0x13a52d,_0x1550c6){const _0x3578b4=_0x405303;super(),this[_0x3578b4(0x2a0)]=_0x13a52d,this[_0x3578b4(0x3d2)]=_0x1550c6,_0x4219eb(this,'_cfgEnableObjInherit',!0x1),this[_0x3578b4(0x1f6)]();}['_initMergeInterceptor'](){const _0x2afbad=_0x405303;let _0x167ea3=this;this['disposeWithMe'](this[_0x2afbad(0x2a0)][_0x2afbad(0x42d)]({'priority':0x3e7,'interceptor':(0x0,_0xc90c47[_0x2afbad(0x40f)])({'isMatch'(_0x487402){const _0x46de30=_0x2afbad;var _0x4a9d48;if(_0x487402['method']===_0x46de30(0x427)&&(_0x4a9d48=_0x487402[_0x46de30(0x337)])!=null&&_0x4a9d48['body']){let {objectID:_0x4afb88,objectType:_0x1bee40}=_0x487402[_0x46de30(0x337)][_0x46de30(0x43d)]||{};if(!_0x4afb88||_0x1bee40===void 0x0)return!0x1;let _0x3ec2b4=_0x167ea3[_0x46de30(0x2a1)]()+'/'+_0x1bee40+'/object/'+_0x4afb88+_0x46de30(0x25c);if(_0x487402[_0x46de30(0x204)]===_0x3ec2b4)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xc11797){const _0x5469a4=_0x2afbad;var _0x1e1dfd;return(_0x1e1dfd=_0xc11797[_0x5469a4(0x337)])==null?void 0x0:_0x1e1dfd['body'];},'mergeParamsToRequest'(_0x40aebf,_0x1ce57e){const _0xf5d721=_0x2afbad;let _0x3f048f=_0x167ea3[_0xf5d721(0x2a1)]()+_0xf5d721(0x1d8),_0x410851=_0x40aebf[_0xf5d721(0x219)]((_0xe81d16,_0xf6636f)=>{const _0xb4bad1=_0xf5d721;let {unitID:_0x2f9f70,objectID:_0x4fb01b,objectType:_0x2556bd,actions:_0x44c3b6}=_0xf6636f;return _0xe81d16[_0x2f9f70]||(_0xe81d16[_0x2f9f70]={}),_0xe81d16[_0x2f9f70][_0x4fb01b]||(_0xe81d16[_0x2f9f70][_0x4fb01b]={'objectID':_0x4fb01b,'objectType':_0x2556bd,'actions':[]}),_0xe81d16[_0x2f9f70][_0x4fb01b][_0xb4bad1(0x208)]['push'](..._0x44c3b6),_0xe81d16;},{}),_0x1c9903=[];for(let _0x5bc6cc in _0x410851)for(let _0x8caccd in _0x410851[_0x5bc6cc]){let {actions:_0x1a569f,objectType:_0x2a7708}=_0x410851[_0x5bc6cc][_0x8caccd],_0x4206e3=[...new Set(_0x1a569f)];_0x1c9903[_0xf5d721(0x1f4)]({'unitID':_0x5bc6cc,'objectID':_0x8caccd,'objectType':_0x2a7708,'actions':_0x4206e3});}return new _0xc90c47[(_0xf5d721(0x3a4))](_0xf5d721(0x427),_0x3f048f,{'headers':_0x1ce57e['headers'],'withCredentials':_0x1ce57e[_0xf5d721(0x2bc)],'responseType':_0x1ce57e[_0xf5d721(0x2a3)],'body':{'requests':_0x1c9903}});}},{'distributeResult'(_0x2710c2,_0x4bc7b6){let {objectActions:_0x564ed4}=_0x2710c2;return _0x4bc7b6['map'](_0x105bb5=>{const _0x379a16=_0x4e8d;let {unitID:_0x227dbe,objectID:_0x42ab2d,actions:_0x43bee8}=_0x105bb5,_0x5b67c9=_0x564ed4['find'](_0x4eedf0=>_0x4eedf0[_0x379a16(0x1c9)]===_0x227dbe&&_0x4eedf0[_0x379a16(0x407)]===_0x42ab2d);return{'config':_0x105bb5,'result':{'actions':_0x43bee8['map'](_0x11142c=>_0x5b67c9==null?void 0x0:_0x5b67c9['actions']['find'](_0x254934=>_0x254934[_0x379a16(0x146)]===_0x11142c))[_0x379a16(0x24d)](_0x93ba82=>!!_0x93ba82),'error':_0x2710c2['error']}};});}})}));}[_0x405303(0x2a1)](){const _0x4accd2=_0x405303;var _0x2a3714;let _0x42ee66=this[_0x4accd2(0x3d2)][_0x4accd2(0x112)](_0x51e182);return(_0x2a3714=_0x42ee66==null?void 0x0:_0x42ee66['authzUrl'])==null?_0x4accd2(0x35e):_0x2a3714;}async[_0x405303(0x1ea)](_0x43b16a){const _0x2b2a2c=_0x405303;let _0x5b1b81=this[_0x2b2a2c(0x2a1)]()+'/'+_0x43b16a['objectType']+_0x2b2a2c(0xf3);return(await this[_0x2b2a2c(0x2a0)]['post'](_0x5b1b81,{'body':_0x43b16a}))['body'][_0x2b2a2c(0x407)]||'';}async[_0x405303(0x269)](_0x5c8762){const _0x3ae42c=_0x405303;let _0x293df6=this[_0x3ae42c(0x2a1)]()+_0x3ae42c(0x253);return(await this[_0x3ae42c(0x2a0)][_0x3ae42c(0x3f5)](_0x293df6,{'body':_0x5c8762}))['body'][_0x3ae42c(0x18c)];}async[_0x405303(0x1d5)](_0x18406f){const _0x44ac53=_0x405303;var _0x2a4fec;let _0x3d4eed=this[_0x44ac53(0x2a1)]()+'/'+_0x18406f['objectType']+_0x44ac53(0x3ad)+_0x18406f[_0x44ac53(0x407)],_0x1203e6=await this['_HTTPService'][_0x44ac53(0x16c)](_0x3d4eed,{'body':_0x18406f});if((_0x1203e6==null||(_0x2a4fec=_0x1203e6[_0x44ac53(0x43d)])==null||(_0x2a4fec=_0x2a4fec[_0x44ac53(0x2a9)])==null?void 0x0:_0x2a4fec[_0x44ac53(0x2c4)])!==0x1)throw Error(_0x44ac53(0x1ef));}async[_0x405303(0x3ac)](_0x22ed5e){const _0x12a45e=_0x405303;let _0x5f4e4f=this['_getAPIPrefixPath']()+'/'+_0x22ed5e[_0x12a45e(0x14c)]+_0x12a45e(0x3ad)+_0x22ed5e[_0x12a45e(0x407)]+_0x12a45e(0x25c);return(await this[_0x12a45e(0x2a0)][_0x12a45e(0x3f5)](_0x5f4e4f,{'body':_0x22ed5e}))[_0x12a45e(0x43d)]['actions'];}async[_0x405303(0x385)](_0x5a56e3){const _0x3466cf=_0x405303;let _0x26da1d=this[_0x3466cf(0x2a1)]()+_0x3466cf(0x1d8);return(await this[_0x3466cf(0x2a0)][_0x3466cf(0x3f5)](_0x26da1d,{'body':{'requests':_0x5a56e3}}))['body']['objectActions'];}async[_0x405303(0x434)](_0x4bc5e0){const _0x1db535=_0x405303;let _0x2438a6=this[_0x1db535(0x2a1)]()+'/'+_0x4bc5e0[_0x1db535(0x14c)]+_0x1db535(0x292),_0x56b61b=await this[_0x1db535(0x2a0)][_0x1db535(0x3f5)](_0x2438a6,{'body':_0x4bc5e0});return{'roles':_0x56b61b['body'][_0x1db535(0x418)],'actions':_0x56b61b[_0x1db535(0x43d)][_0x1db535(0x208)]};}async['deleteCollaborator'](_0x47a67f){const _0x3cb5ec=_0x405303;let _0x3efba8=this[_0x3cb5ec(0x2a1)]()+_0x3cb5ec(0x2f7);await this['_HTTPService'][_0x3cb5ec(0x142)](_0x3efba8,{'params':{'collaboratorID':_0x47a67f[_0x3cb5ec(0x26c)],'objectID':_0x47a67f[_0x3cb5ec(0x407)],'unitID':_0x47a67f['unitID']}});}async['updateCollaborator'](_0x1df905){const _0x2d74d1=_0x405303;let _0x580712=this[_0x2d74d1(0x2a1)]()+_0x2d74d1(0x2f7);await this[_0x2d74d1(0x2a0)][_0x2d74d1(0x32a)](_0x580712,{'body':_0x1df905});}async['createCollaborator'](_0x59e280){const _0x27c205=_0x405303;let _0x4578b1=this[_0x27c205(0x2a1)]()+'/collaborator';await this[_0x27c205(0x2a0)][_0x27c205(0x3f5)](_0x4578b1,{'body':_0x59e280});}async[_0x405303(0x235)](_0x1a1db8){const _0x2f5ab2=_0x405303;var _0x48daaa;let _0x47f2ed=this[_0x2f5ab2(0x2a1)]()+'/collaborator',_0x2c0901=await this['_HTTPService']['get'](_0x47f2ed,{'params':{'objectID':_0x1a1db8[_0x2f5ab2(0x407)],'unitID':_0x1a1db8[_0x2f5ab2(0x1c9)]}});return this['setCfgEnableObjInherit']((_0x48daaa=_0x2c0901[_0x2f5ab2(0x43d)]['cfgEnableObjInherit'])!=null&&_0x48daaa),_0x2c0901['body']['collaborators'];}async[_0x405303(0x2c8)](_0x19644f){const _0x4436a5=_0x405303;let _0xca0352=this[_0x4436a5(0x2a1)]()+'/collaborator';await this['_HTTPService'][_0x4436a5(0x16c)](_0xca0352,{'body':_0x19644f});}[_0x405303(0x25b)](_0x27a8a2){const _0x2247e8=_0x405303;this[_0x2247e8(0x3a8)]=_0x27a8a2;}[_0x405303(0xf7)](){const _0xa0be02=_0x405303;return this[_0xa0be02(0x3a8)];}};_0x4e73d2=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)])),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x346)]))],_0x4e73d2);function _0x493704(_0x475ff5){const _0x22af74=_0x405303;return _0x475ff5 instanceof Uint8Array||ArrayBuffer[_0x22af74(0x397)](_0x475ff5)&&_0x475ff5[_0x22af74(0x211)][_0x22af74(0xeb)]==='Uint8Array'&&_0x22af74(0x361)in _0x475ff5&&_0x475ff5[_0x22af74(0x361)]===0x1;}function _0x5152b7(_0x141598){const _0x48a75f=_0x405303;if(typeof _0x141598!=_0x48a75f(0x416))throw TypeError(_0x48a75f(0x21c)+typeof _0x141598);if(!Number['isSafeInteger'](_0x141598)||_0x141598<0x0)throw RangeError('positive\x20integer\x20expected,\x20got\x20'+_0x141598);}function _0x59702c(_0x12701c,_0x5cd13f,_0x3ba123=''){const _0x4e030c=_0x405303;let _0x2dac9c=_0x493704(_0x12701c),_0x5a54e6=_0x12701c==null?void 0x0:_0x12701c[_0x4e030c(0x182)],_0x4d1b8e=_0x5cd13f!==void 0x0;if(!_0x2dac9c||_0x4d1b8e&&_0x5a54e6!==_0x5cd13f){let _0x5022ce=_0x3ba123&&'\x22'+_0x3ba123+'\x22\x20',_0x3da67a=_0x4d1b8e?_0x4e030c(0x17c)+_0x5cd13f:'',_0x1e5767=_0x2dac9c?_0x4e030c(0x198)+_0x5a54e6:'type='+typeof _0x12701c,_0x1b5bc6=_0x5022ce+_0x4e030c(0x436)+_0x3da67a+_0x4e030c(0x2e0)+_0x1e5767;throw _0x2dac9c?RangeError(_0x1b5bc6):TypeError(_0x1b5bc6);}return _0x12701c;}function _0x1e90c9(_0x22082b){const _0x3aa64b=_0x405303;return new Uint32Array(_0x22082b[_0x3aa64b(0x432)],_0x22082b[_0x3aa64b(0x11f)],Math[_0x3aa64b(0x2ff)](_0x22082b['byteLength']/0x4));}function _0x1156c1(..._0xe71405){const _0x387036=_0x405303;for(let _0x443b2e=0x0;_0x443b2e<_0xe71405[_0x387036(0x182)];_0x443b2e++)_0xe71405[_0x443b2e][_0x387036(0x2e9)](0x0);}let _0x5f5b9f=new Uint8Array(new Uint32Array([0x11223344])[_0x405303(0x432)])[0x0]===0x44,_0x5aead7=_0x2c9a94=>_0x2c9a94<<0x18&0xff000000|_0x2c9a94<<0x8&0xff0000|_0x2c9a94>>>0x8&0xff00|_0x2c9a94>>>0x18&0xff,_0x3a82af=_0x5f5b9f?_0x599a72=>_0x599a72:_0x2bd2a0=>{for(let _0x36ce51=0x0;_0x36ce51<_0x2bd2a0['length'];_0x36ce51++)_0x2bd2a0[_0x36ce51]=_0x5aead7(_0x2bd2a0[_0x36ce51]);return _0x2bd2a0;};function _0x13ef42(_0x42f8d6){const _0x4f1cb3=_0x405303;if(typeof _0x42f8d6!=_0x4f1cb3(0x163))throw TypeError(_0x4f1cb3(0x27e));return new Uint8Array(new TextEncoder()[_0x4f1cb3(0x23a)](_0x42f8d6));}function _0xbdccf3(_0x12ecfa,_0x391eef){const _0x4d7e35=_0x405303;return!_0x12ecfa['byteLength']||!_0x391eef[_0x4d7e35(0x137)]?!0x1:_0x12ecfa[_0x4d7e35(0x432)]===_0x391eef['buffer']&&_0x12ecfa[_0x4d7e35(0x11f)]<_0x391eef[_0x4d7e35(0x11f)]+_0x391eef[_0x4d7e35(0x137)]&&_0x391eef[_0x4d7e35(0x11f)]<_0x12ecfa['byteOffset']+_0x12ecfa[_0x4d7e35(0x137)];}function _0x11aacb(_0x5d6d88,_0x582d98){const _0x4f4cf3=_0x405303;if(_0xbdccf3(_0x5d6d88,_0x582d98)&&_0x5d6d88[_0x4f4cf3(0x11f)]<_0x582d98['byteOffset'])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0x1d87d1(..._0x95fd31){const _0x4618d9=_0x405303;let _0x43dc4c=0x0;for(let _0x1e14cd=0x0;_0x1e14cd<_0x95fd31[_0x4618d9(0x182)];_0x1e14cd++){let _0x168d9f=_0x95fd31[_0x1e14cd];_0x59702c(_0x168d9f),_0x43dc4c+=_0x168d9f['length'];}let _0x3017ef=new Uint8Array(_0x43dc4c);for(let _0x40b6ad=0x0,_0x15e1ef=0x0;_0x40b6ad<_0x95fd31['length'];_0x40b6ad++){let _0x3917d5=_0x95fd31[_0x40b6ad];_0x3017ef[_0x4618d9(0x339)](_0x3917d5,_0x15e1ef),_0x15e1ef+=_0x3917d5[_0x4618d9(0x182)];}return _0x3017ef;}let _0x238229=(_0x2f2670,_0x21b2b5)=>{const _0x205c93=_0x405303;function _0x389240(_0x2771b2,..._0x442b54){const _0x1c4b7d=_0x4e8d;if(_0x59702c(_0x2771b2,void 0x0,_0x1c4b7d(0x22f)),_0x2f2670[_0x1c4b7d(0x36b)]!==void 0x0){let _0x5bc1c8=_0x442b54[0x0];_0x59702c(_0x5bc1c8,_0x2f2670[_0x1c4b7d(0x14b)]?void 0x0:_0x2f2670['nonceLength'],'nonce');}let _0x43cc0f=_0x2f2670[_0x1c4b7d(0x263)];_0x43cc0f&&_0x442b54[0x1]!==void 0x0&&_0x59702c(_0x442b54[0x1],void 0x0,_0x1c4b7d(0x248));let _0x3d99b3=_0x21b2b5(_0x2771b2,..._0x442b54),_0x4f5383=(_0x3aec3d,_0x3fab61)=>{const _0x5a385e=_0x1c4b7d;if(_0x3fab61!==void 0x0){if(_0x3aec3d!==0x2)throw Error(_0x5a385e(0x3ee));_0x59702c(_0x3fab61,void 0x0,_0x5a385e(0x1dc));}},_0x2ff6c8=!0x1;return{'encrypt'(_0x1aa094,_0x6d0e85){const _0x26d5e5=_0x1c4b7d;if(_0x2ff6c8)throw Error(_0x26d5e5(0x2c2));return _0x2ff6c8=!0x0,_0x59702c(_0x1aa094),_0x4f5383(_0x3d99b3[_0x26d5e5(0x17f)]['length'],_0x6d0e85),_0x3d99b3[_0x26d5e5(0x17f)](_0x1aa094,_0x6d0e85);},'decrypt'(_0x88342e,_0x1598cf){const _0xc6e919=_0x1c4b7d;if(_0x59702c(_0x88342e),_0x43cc0f&&_0x88342e[_0xc6e919(0x182)]<_0x43cc0f)throw Error(_0xc6e919(0x2d3)+_0x43cc0f);return _0x4f5383(_0x3d99b3[_0xc6e919(0x166)]['length'],_0x1598cf),_0x3d99b3['decrypt'](_0x88342e,_0x1598cf);}};}return Object[_0x205c93(0x230)](_0x389240,_0x2f2670),_0x389240;};function _0x573d2a(_0x2f533c,_0x202637,_0x4dc211=!0x0){const _0x2c2618=_0x405303;if(_0x202637===void 0x0)return new Uint8Array(_0x2f533c);if(_0x59702c(_0x202637,void 0x0,_0x2c2618(0x1dc)),_0x202637[_0x2c2618(0x182)]!==_0x2f533c)throw Error(_0x2c2618(0x2e3)+_0x2f533c+_0x2c2618(0x2ba)+_0x202637[_0x2c2618(0x182)]);if(_0x4dc211&&!_0x4c068f(_0x202637))throw Error(_0x2c2618(0x196));return _0x202637;}function _0x4c068f(_0x3e8dc7){const _0xd62be2=_0x405303;return _0x3e8dc7[_0xd62be2(0x11f)]%0x4==0x0;}function _0x18912e(_0x3511c3){const _0x5d7d32=_0x405303;return Uint8Array[_0x5d7d32(0x154)](_0x59702c(_0x3511c3));}function _0x2a8c18(_0x198711=0x20){const _0x14868a=_0x405303;_0x5152b7(_0x198711);let _0x481828=typeof globalThis=='object'?globalThis[_0x14868a(0x3e6)]:null;if(typeof(_0x481828==null?void 0x0:_0x481828['getRandomValues'])!='function')throw Error('crypto.getRandomValues\x20must\x20be\x20defined');return _0x481828['getRandomValues'](new Uint8Array(_0x198711));}function _0x515be9(_0x17ca2a){const _0x526dad=_0x405303;if(![0x10,0x18,0x20][_0x526dad(0x281)](_0x17ca2a[_0x526dad(0x182)]))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x17ca2a[_0x526dad(0x182)]);}function _0x45f5cf(_0x447fe8){return _0x447fe8<<0x1^0x11b&-(_0x447fe8>>0x7);}function _0x215908(_0x4a0195,_0x1b385f){let _0x482454=0x0;for(;_0x1b385f>0x0;_0x1b385f>>=0x1)_0x482454^=_0x4a0195&-(_0x1b385f&0x1),_0x4a0195=_0x45f5cf(_0x4a0195);return _0x482454;}let _0x1b2648=((()=>{let _0x2ad210=new Uint8Array(0x100);for(let _0x13c247=0x0,_0xfc8b48=0x1;_0x13c247<0x100;_0x13c247++,_0xfc8b48^=_0x45f5cf(_0xfc8b48))_0x2ad210[_0x13c247]=_0xfc8b48;let _0x5766f2=new Uint8Array(0x100);_0x5766f2[0x0]=0x63;for(let _0x564d09=0x0;_0x564d09<0xff;_0x564d09++){let _0x5ee049=_0x2ad210[0xff-_0x564d09];_0x5ee049|=_0x5ee049<<0x8,_0x5766f2[_0x2ad210[_0x564d09]]=(_0x5ee049^_0x5ee049>>0x4^_0x5ee049>>0x5^_0x5ee049>>0x6^_0x5ee049>>0x7^0x63)&0xff;}return _0x1156c1(_0x2ad210),_0x5766f2;})()),_0x1e65f0=_0x1b2648['map']((_0x292b05,_0x15b3da)=>_0x1b2648[_0x405303(0x398)](_0x15b3da)),_0x27c87d=_0x5592c2=>_0x5592c2<<0x18|_0x5592c2>>>0x8,_0x512129=_0x5b046c=>_0x5b046c<<0x8|_0x5b046c>>>0x18;function _0x452331(_0x580bc3,_0x1c5500){const _0x137f9b=_0x405303;if(_0x580bc3['length']!==0x100)throw Error(_0x137f9b(0x103));let _0xeae52d=new Uint32Array(0x100)[_0x137f9b(0x110)]((_0x440d03,_0x4e3ea3)=>_0x1c5500(_0x580bc3[_0x4e3ea3])),_0x20d2a6=_0xeae52d[_0x137f9b(0x110)](_0x512129),_0x16f699=_0x20d2a6[_0x137f9b(0x110)](_0x512129),_0x332047=_0x16f699['map'](_0x512129),_0x7f872c=new Uint32Array(0x100*0x100),_0x486689=new Uint32Array(0x100*0x100),_0x9d904f=new Uint16Array(0x100*0x100);for(let _0x3a3fd6=0x0;_0x3a3fd6<0x100;_0x3a3fd6++)for(let _0x2445e0=0x0;_0x2445e0<0x100;_0x2445e0++){let _0x203e4f=_0x3a3fd6*0x100+_0x2445e0;_0x7f872c[_0x203e4f]=_0xeae52d[_0x3a3fd6]^_0x20d2a6[_0x2445e0],_0x486689[_0x203e4f]=_0x16f699[_0x3a3fd6]^_0x332047[_0x2445e0],_0x9d904f[_0x203e4f]=_0x580bc3[_0x3a3fd6]<<0x8|_0x580bc3[_0x2445e0];}return{'sbox':_0x580bc3,'sbox2':_0x9d904f,'T0':_0xeae52d,'T1':_0x20d2a6,'T2':_0x16f699,'T3':_0x332047,'T01':_0x7f872c,'T23':_0x486689};}let _0x3831a7=_0x452331(_0x1b2648,_0x2a015d=>_0x215908(_0x2a015d,0x3)<<0x18|_0x2a015d<<0x10|_0x2a015d<<0x8|_0x215908(_0x2a015d,0x2)),_0xb1103a=_0x452331(_0x1e65f0,_0xf47d76=>_0x215908(_0xf47d76,0xb)<<0x18|_0x215908(_0xf47d76,0xd)<<0x10|_0x215908(_0xf47d76,0x9)<<0x8|_0x215908(_0xf47d76,0xe)),_0x2e86cc=((()=>{let _0x4085c8=new Uint8Array(0x10);for(let _0x4804d3=0x0,_0x56951f=0x1;_0x4804d3<0x10;_0x4804d3++,_0x56951f=_0x45f5cf(_0x56951f))_0x4085c8[_0x4804d3]=_0x56951f;return _0x4085c8;})());function _0x4b2b62(_0x38222a){const _0x2cf751=_0x405303;_0x59702c(_0x38222a);let _0x13f4bb=_0x38222a[_0x2cf751(0x182)];_0x515be9(_0x38222a);let {sbox2:_0x4af25a}=_0x3831a7,_0x9da2fa=[];(!_0x5f5b9f||!_0x4c068f(_0x38222a))&&_0x9da2fa[_0x2cf751(0x1f4)](_0x38222a=_0x18912e(_0x38222a));let _0x4ed7b0=_0x3a82af(_0x1e90c9(_0x38222a)),_0x5eb3fc=_0x4ed7b0[_0x2cf751(0x182)],_0x18900a=_0x3b16b0=>_0x52196b(_0x4af25a,_0x3b16b0,_0x3b16b0,_0x3b16b0,_0x3b16b0),_0x2009b6=new Uint32Array(_0x13f4bb+0x1c);_0x2009b6[_0x2cf751(0x339)](_0x4ed7b0);for(let _0x1aa4e4=_0x5eb3fc;_0x1aa4e4<_0x2009b6[_0x2cf751(0x182)];_0x1aa4e4++){let _0x4b7e9c=_0x2009b6[_0x1aa4e4-0x1];_0x1aa4e4%_0x5eb3fc===0x0?_0x4b7e9c=_0x18900a(_0x27c87d(_0x4b7e9c))^_0x2e86cc[_0x1aa4e4/_0x5eb3fc-0x1]:_0x5eb3fc>0x6&&_0x1aa4e4%_0x5eb3fc===0x4&&(_0x4b7e9c=_0x18900a(_0x4b7e9c)),_0x2009b6[_0x1aa4e4]=_0x2009b6[_0x1aa4e4-_0x5eb3fc]^_0x4b7e9c;}return _0x1156c1(..._0x9da2fa),_0x2009b6;}function _0x26f973(_0x5ec72e){const _0x4721b9=_0x405303;let _0x29bd55=_0x4b2b62(_0x5ec72e),_0x3fddb1=_0x29bd55[_0x4721b9(0x33d)](),_0x3c89f6=_0x29bd55[_0x4721b9(0x182)],{sbox2:_0x426fca}=_0x3831a7,{T0:_0x31e6c5,T1:_0x3bcc48,T2:_0x27230e,T3:_0x42c721}=_0xb1103a;for(let _0x353bfd=0x0;_0x353bfd<_0x3c89f6;_0x353bfd+=0x4)for(let _0x218ee6=0x0;_0x218ee6<0x4;_0x218ee6++)_0x3fddb1[_0x353bfd+_0x218ee6]=_0x29bd55[_0x3c89f6-_0x353bfd-0x4+_0x218ee6];_0x1156c1(_0x29bd55);for(let _0x54252c=0x4;_0x54252c<_0x3c89f6-0x4;_0x54252c++){let _0x44cdca=_0x3fddb1[_0x54252c],_0x4a51de=_0x52196b(_0x426fca,_0x44cdca,_0x44cdca,_0x44cdca,_0x44cdca);_0x3fddb1[_0x54252c]=_0x31e6c5[_0x4a51de&0xff]^_0x3bcc48[_0x4a51de>>>0x8&0xff]^_0x27230e[_0x4a51de>>>0x10&0xff]^_0x42c721[_0x4a51de>>>0x18];}return _0x3fddb1;}function _0x4b6912(_0x2bb1e0,_0x1bfda6,_0x29fe75,_0x5e8e9b,_0x5e124c,_0x171d6a){return _0x2bb1e0[_0x29fe75<<0x8&0xff00|_0x5e8e9b>>>0x8&0xff]^_0x1bfda6[_0x5e124c>>>0x8&0xff00|_0x171d6a>>>0x18&0xff];}function _0x52196b(_0x2e006b,_0x4a78ea,_0x383870,_0x4f1a5c,_0x3e013f){return _0x2e006b[_0x4a78ea&0xff|_0x383870&0xff00]|_0x2e006b[_0x4f1a5c>>>0x10&0xff|_0x3e013f>>>0x10&0xff00]<<0x10;}function _0x5b1151(_0x3880f3,_0x567c4d,_0x52fd3f,_0x26b436,_0x277e08){let {sbox2:_0x24283c,T01:_0xa55837,T23:_0x3b3457}=_0x3831a7,_0x2b8c5d=0x0;_0x567c4d^=_0x3880f3[_0x2b8c5d++],_0x52fd3f^=_0x3880f3[_0x2b8c5d++],_0x26b436^=_0x3880f3[_0x2b8c5d++],_0x277e08^=_0x3880f3[_0x2b8c5d++];let _0x1cc748=_0x3880f3['length']/0x4-0x2;for(let _0xbcbacf=0x0;_0xbcbacf<_0x1cc748;_0xbcbacf++){let _0x1c118a=_0x3880f3[_0x2b8c5d++]^_0x4b6912(_0xa55837,_0x3b3457,_0x567c4d,_0x52fd3f,_0x26b436,_0x277e08),_0x55ad7d=_0x3880f3[_0x2b8c5d++]^_0x4b6912(_0xa55837,_0x3b3457,_0x52fd3f,_0x26b436,_0x277e08,_0x567c4d),_0x43560b=_0x3880f3[_0x2b8c5d++]^_0x4b6912(_0xa55837,_0x3b3457,_0x26b436,_0x277e08,_0x567c4d,_0x52fd3f),_0x1ec1ca=_0x3880f3[_0x2b8c5d++]^_0x4b6912(_0xa55837,_0x3b3457,_0x277e08,_0x567c4d,_0x52fd3f,_0x26b436);_0x567c4d=_0x1c118a,_0x52fd3f=_0x55ad7d,_0x26b436=_0x43560b,_0x277e08=_0x1ec1ca;}return{'s0':_0x3880f3[_0x2b8c5d++]^_0x52196b(_0x24283c,_0x567c4d,_0x52fd3f,_0x26b436,_0x277e08),'s1':_0x3880f3[_0x2b8c5d++]^_0x52196b(_0x24283c,_0x52fd3f,_0x26b436,_0x277e08,_0x567c4d),'s2':_0x3880f3[_0x2b8c5d++]^_0x52196b(_0x24283c,_0x26b436,_0x277e08,_0x567c4d,_0x52fd3f),'s3':_0x3880f3[_0x2b8c5d++]^_0x52196b(_0x24283c,_0x277e08,_0x567c4d,_0x52fd3f,_0x26b436)};}function _0x12f90a(_0x511ac7,_0x1d64d3,_0x5b4761,_0x3b17c3,_0x3259a0){const _0x3613bc=_0x405303;let {sbox2:_0x56ce50,T01:_0x2b5e26,T23:_0xf82403}=_0xb1103a,_0x585712=0x0;_0x1d64d3^=_0x511ac7[_0x585712++],_0x5b4761^=_0x511ac7[_0x585712++],_0x3b17c3^=_0x511ac7[_0x585712++],_0x3259a0^=_0x511ac7[_0x585712++];let _0x223618=_0x511ac7[_0x3613bc(0x182)]/0x4-0x2;for(let _0x44cd55=0x0;_0x44cd55<_0x223618;_0x44cd55++){let _0x4f1340=_0x511ac7[_0x585712++]^_0x4b6912(_0x2b5e26,_0xf82403,_0x1d64d3,_0x3259a0,_0x3b17c3,_0x5b4761),_0x104809=_0x511ac7[_0x585712++]^_0x4b6912(_0x2b5e26,_0xf82403,_0x5b4761,_0x1d64d3,_0x3259a0,_0x3b17c3),_0x41d547=_0x511ac7[_0x585712++]^_0x4b6912(_0x2b5e26,_0xf82403,_0x3b17c3,_0x5b4761,_0x1d64d3,_0x3259a0),_0x2d4c06=_0x511ac7[_0x585712++]^_0x4b6912(_0x2b5e26,_0xf82403,_0x3259a0,_0x3b17c3,_0x5b4761,_0x1d64d3);_0x1d64d3=_0x4f1340,_0x5b4761=_0x104809,_0x3b17c3=_0x41d547,_0x3259a0=_0x2d4c06;}return{'s0':_0x511ac7[_0x585712++]^_0x52196b(_0x56ce50,_0x1d64d3,_0x3259a0,_0x3b17c3,_0x5b4761),'s1':_0x511ac7[_0x585712++]^_0x52196b(_0x56ce50,_0x5b4761,_0x1d64d3,_0x3259a0,_0x3b17c3),'s2':_0x511ac7[_0x585712++]^_0x52196b(_0x56ce50,_0x3b17c3,_0x5b4761,_0x1d64d3,_0x3259a0),'s3':_0x511ac7[_0x585712++]^_0x52196b(_0x56ce50,_0x3259a0,_0x3b17c3,_0x5b4761,_0x1d64d3)};}function _0x13498e(_0x278df0){const _0x5e9a29=_0x405303;if(_0x59702c(_0x278df0),_0x278df0[_0x5e9a29(0x182)]%0x10!=0x0)throw Error(_0x5e9a29(0x15c));}function _0x3ac818(_0x1e631d,_0x31e051,_0x5b2366){const _0x19c883=_0x405303;_0x59702c(_0x1e631d);let _0x457338=_0x1e631d[_0x19c883(0x182)],_0x1f522b=_0x457338%0x10;if(!_0x31e051&&_0x1f522b!==0x0)throw Error(_0x19c883(0x3bf));if(_0x31e051){let _0x6517b2=0x10-_0x1f522b;_0x6517b2||(_0x6517b2=0x10),_0x457338+=_0x6517b2;}_0x5b2366=_0x573d2a(_0x457338,_0x5b2366),_0x11aacb(_0x1e631d,_0x5b2366),(!_0x5f5b9f||!_0x4c068f(_0x1e631d))&&(_0x1e631d=_0x18912e(_0x1e631d));let _0x17a7e6=_0x1e90c9(_0x1e631d);return _0x3a82af(_0x17a7e6),{'b':_0x17a7e6,'o':_0x1e90c9(_0x5b2366),'out':_0x5b2366};}function _0xf6b642(_0x422f52,_0x8a1856){const _0x4607bc=_0x405303;if(!_0x8a1856)return _0x422f52;let _0x1e2dc0=_0x422f52['length'];if(_0x1e2dc0===0x0)throw Error(_0x4607bc(0x1e1));let _0x40e675=_0x422f52[_0x1e2dc0-0x1],_0x1148d7=0x1;_0x1148d7&=_0x40e675-0x1>>>0x1f^0x1,_0x1148d7&=0x10-_0x40e675>>>0x1f^0x1;for(let _0x517cac=0x0;_0x517cac<0x10;_0x517cac++){let _0x4aa904=_0x517cac-_0x40e675>>>0x1f,_0x5aee29=+((_0x422f52[_0x1e2dc0-0x1-_0x517cac]^_0x40e675)===0x0);_0x1148d7&=_0x5aee29|_0x4aa904^0x1;}if(!_0x1148d7)throw Error(_0x4607bc(0x2f8));return _0x422f52[_0x4607bc(0x151)](0x0,_0x1e2dc0-_0x40e675);}function _0x19a038(_0x56b207){const _0x21e068=_0x405303;let _0x299da4=new Uint8Array(0x10),_0x23f8ca=_0x1e90c9(_0x299da4);_0x299da4[_0x21e068(0x339)](_0x56b207);let _0x229091=0x10-_0x56b207[_0x21e068(0x182)];for(let _0x9dbc57=0x10-_0x229091;_0x9dbc57<0x10;_0x9dbc57++)_0x299da4[_0x9dbc57]=_0x229091;return _0x23f8ca;}let _0x5decb8=_0x238229({'blockSize':0x10,'nonceLength':0x10},function(_0x4dd67a,_0xc870eb,_0xa07d11={}){const _0x3caa3b=_0x405303;let _0x342a03=!_0xa07d11[_0x3caa3b(0x25a)];return{'encrypt'(_0x4bd6af,_0x2c5820){const _0x3b2bd7=_0x3caa3b;let _0x5d974f=_0x4b2b62(_0x4dd67a),{b:_0x39f3a1,o:_0x46fed3,out:_0x139727}=_0x3ac818(_0x4bd6af,_0x342a03,_0x2c5820),_0x1c3149=_0xc870eb,_0x20627d=[_0x5d974f];(!_0x5f5b9f||!_0x4c068f(_0x1c3149))&&_0x20627d[_0x3b2bd7(0x1f4)](_0x1c3149=_0x18912e(_0x1c3149));let _0x43bd8b=_0x1e90c9(_0x1c3149);_0x3a82af(_0x43bd8b);let _0x1d4079=_0x43bd8b[0x0],_0x2cafde=_0x43bd8b[0x1],_0x47bb0f=_0x43bd8b[0x2],_0x18e077=_0x43bd8b[0x3],_0x430861=0x0;for(;_0x430861+0x4<=_0x39f3a1[_0x3b2bd7(0x182)];)_0x1d4079^=_0x39f3a1[_0x430861+0x0],_0x2cafde^=_0x39f3a1[_0x430861+0x1],_0x47bb0f^=_0x39f3a1[_0x430861+0x2],_0x18e077^=_0x39f3a1[_0x430861+0x3],{s0:_0x1d4079,s1:_0x2cafde,s2:_0x47bb0f,s3:_0x18e077}=_0x5b1151(_0x5d974f,_0x1d4079,_0x2cafde,_0x47bb0f,_0x18e077),_0x46fed3[_0x430861++]=_0x1d4079,_0x46fed3[_0x430861++]=_0x2cafde,_0x46fed3[_0x430861++]=_0x47bb0f,_0x46fed3[_0x430861++]=_0x18e077;if(_0x342a03){let _0xb272bd=_0x19a038(_0x4bd6af[_0x3b2bd7(0x151)](_0x430861*0x4));_0x3a82af(_0xb272bd),_0x1d4079^=_0xb272bd[0x0],_0x2cafde^=_0xb272bd[0x1],_0x47bb0f^=_0xb272bd[0x2],_0x18e077^=_0xb272bd[0x3],{s0:_0x1d4079,s1:_0x2cafde,s2:_0x47bb0f,s3:_0x18e077}=_0x5b1151(_0x5d974f,_0x1d4079,_0x2cafde,_0x47bb0f,_0x18e077),_0x46fed3[_0x430861++]=_0x1d4079,_0x46fed3[_0x430861++]=_0x2cafde,_0x46fed3[_0x430861++]=_0x47bb0f,_0x46fed3[_0x430861++]=_0x18e077;}return _0x3a82af(_0x46fed3),_0x1156c1(..._0x20627d),_0x139727;},'decrypt'(_0x380934,_0x1a04a3){const _0x4e9ec9=_0x3caa3b;_0x13498e(_0x380934);let _0xbc1028=_0x26f973(_0x4dd67a),_0x205f08=_0xc870eb,_0x488d35=[_0xbc1028];(!_0x5f5b9f||!_0x4c068f(_0x205f08))&&_0x488d35[_0x4e9ec9(0x1f4)](_0x205f08=_0x18912e(_0x205f08));let _0x43e079=_0x1e90c9(_0x205f08);_0x3a82af(_0x43e079),_0x1a04a3=_0x573d2a(_0x380934[_0x4e9ec9(0x182)],_0x1a04a3),_0x11aacb(_0x380934,_0x1a04a3),(!_0x5f5b9f||!_0x4c068f(_0x380934))&&_0x488d35['push'](_0x380934=_0x18912e(_0x380934));let _0x366f1b=_0x1e90c9(_0x380934),_0x243150=_0x1e90c9(_0x1a04a3);_0x3a82af(_0x366f1b);let _0x3d5a78=_0x43e079[0x0],_0x3c85bf=_0x43e079[0x1],_0x45de39=_0x43e079[0x2],_0x161331=_0x43e079[0x3];for(let _0x3a9c5d=0x0;_0x3a9c5d+0x4<=_0x366f1b[_0x4e9ec9(0x182)];){let _0xe567f2=_0x3d5a78,_0x4f3363=_0x3c85bf,_0x25a65a=_0x45de39,_0x37ad24=_0x161331;_0x3d5a78=_0x366f1b[_0x3a9c5d+0x0],_0x3c85bf=_0x366f1b[_0x3a9c5d+0x1],_0x45de39=_0x366f1b[_0x3a9c5d+0x2],_0x161331=_0x366f1b[_0x3a9c5d+0x3];let {s0:_0x14eacf,s1:_0x438075,s2:_0xcee2d7,s3:_0x76f34b}=_0x12f90a(_0xbc1028,_0x3d5a78,_0x3c85bf,_0x45de39,_0x161331);_0x243150[_0x3a9c5d++]=_0x14eacf^_0xe567f2,_0x243150[_0x3a9c5d++]=_0x438075^_0x4f3363,_0x243150[_0x3a9c5d++]=_0xcee2d7^_0x25a65a,_0x243150[_0x3a9c5d++]=_0x76f34b^_0x37ad24;}return _0x3a82af(_0x243150),_0x1156c1(..._0x488d35),_0xf6b642(_0x1a04a3,_0x342a03);}};});function _0x2a458f(_0x26c22d){const _0x4ca442=_0x405303;let _0x4af506=atob(_0x26c22d),_0x3f9d71=new Uint8Array(_0x4af506[_0x4ca442(0x182)]);for(let _0x559035=0x0;_0x559035<_0x4af506[_0x4ca442(0x182)];_0x559035++)_0x3f9d71[_0x559035]=_0x4af506['charCodeAt'](_0x559035);return _0x3f9d71;}function _0x4388a1(_0x200d55){const _0x4f6e6a=_0x405303;let _0x92d7e3='';for(let _0x46d430=0x0;_0x46d430<_0x200d55['length'];_0x46d430++)_0x92d7e3+=String[_0x4f6e6a(0x3a9)](_0x200d55[_0x46d430]);return btoa(_0x92d7e3);}function _0x229ef8(_0x34c0fb,_0xb9035c){const _0x2a35df=_0x405303;let _0x362f79=_0x2a458f(_0xb9035c),_0x23084f=_0x2a8c18(0x10);return _0x4388a1(_0x1d87d1(_0x23084f,_0x5decb8(_0x362f79,_0x23084f)[_0x2a35df(0x17f)](_0x13ef42(_0x34c0fb))));}function _0x1826a6(){const _0x30037c=_0x405303;let _0x4bfbc1=(0x0,_0x3478b3[_0x30037c(0x1f5)])()['__Key__'];if(typeof window<'u'&&window[_0x30037c(0x354)]!==void 0x0&&_0x4bfbc1){let _0x4047f7={'time':Math[_0x30037c(0x2ff)](Date[_0x30037c(0x2cb)]()/0x3e8),'domain':location[_0x30037c(0x318)]};return _0x229ef8(JSON['stringify'](_0x4047f7),_0x4bfbc1);}}let _0x46162e=class{constructor(_0x8eb7f9){const _0x1ffa7a=_0x405303;this[_0x1ffa7a(0x121)]=_0x8eb7f9,this['_initRequestHeader']();}[_0x405303(0x3eb)](){const _0x2428b9=_0x405303;this[_0x2428b9(0x121)][_0x2428b9(0x42d)]({'interceptor':(_0x1429df,_0x3225f1)=>{const _0x3a6257=_0x2428b9;let _0xd80fd3=_0x1826a6();return _0xd80fd3&&_0x1429df[_0x3a6257(0x440)][_0x3a6257(0x339)](_0x3a6257(0x3e7),_0xd80fd3),_0x3225f1(_0x1429df);}});}};_0x46162e=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)]))],_0x46162e);let _0x143e0e=class extends _0x2d0b9f[_0x405303(0x16d)]{constructor(_0xde56c,_0x1a4c1e,_0x159082){const _0x204a1e=_0x405303;super(),this[_0x204a1e(0x3d5)]=_0xde56c,this[_0x204a1e(0x373)]=_0x1a4c1e,this[_0x204a1e(0x161)]=_0x159082,_0x4219eb(this,'_unitInfo$',new _0x31dca4[(_0x204a1e(0x31b))](null)),_0x4219eb(this,_0x204a1e(0x1c2),new _0x31dca4[(_0x204a1e(0x29e))]()),_0x4219eb(this,'unitInfo$',this[_0x204a1e(0x3b1)]['asObservable']()),_0x4219eb(this,_0x204a1e(0x288),this['_unitLoaded$']['asObservable']());}['dispose'](){const _0x54a6b8=_0x405303;super['dispose'](),this[_0x54a6b8(0x1c2)][_0x54a6b8(0x104)](),this[_0x54a6b8(0x3b1)]['complete']();}async[_0x405303(0x2dc)](_0x405e55,_0x173230,_0x1645c8,_0x3012ca){const _0x3b1482=_0x405303;this[_0x3b1482(0x3b1)][_0x3b1482(0x131)]({'unitId':_0x405e55,'type':_0x173230,'subUnitId':_0x3012ca});let _0x169f6e=null;switch(_0x173230){case _0x2d0b9f['UniverInstanceType']['UNIVER_SHEET']:_0x169f6e=await this['_snapshotService'][_0x3b1482(0x18f)](_0x405e55,_0x1645c8,void 0x0,{'initialSubUnitId':_0x3012ca});break;case _0x2d0b9f[_0x3b1482(0x341)][_0x3b1482(0x13a)]:_0x169f6e=await this[_0x3b1482(0x373)][_0x3b1482(0xf6)](_0x405e55,_0x1645c8);break;case _0x2d0b9f[_0x3b1482(0x341)][_0x3b1482(0x358)]:_0x169f6e=await this['_snapshotService'][_0x3b1482(0x362)](_0x405e55,_0x1645c8);break;case _0x2d0b9f[_0x3b1482(0x341)][_0x3b1482(0x333)]:_0x169f6e=await this['_snapshotService']['loadBoard'](_0x405e55,_0x1645c8);break;case _0x2d0b9f['UniverInstanceType'][_0x3b1482(0x17d)]:_0x169f6e=await this['_snapshotService']['loadBase'](_0x405e55,_0x1645c8);break;case _0x2d0b9f['UniverInstanceType'][_0x3b1482(0x31e)]:_0x169f6e=await this[_0x3b1482(0x373)][_0x3b1482(0x1a9)](_0x405e55,_0x1645c8);break;default:this[_0x3b1482(0x3d5)][_0x3b1482(0x2a9)](_0x3b1482(0x21f),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x169f6e&&this[_0x3b1482(0x1c2)]['next'](_0x169f6e),_0x169f6e;}async['loadUnit'](_0x55816f,_0x2d0a45,_0x1d6bb4){const _0x4d5dc7=_0x405303;var _0x1d407a;this['_unitInfo$'][_0x4d5dc7(0x131)]({'unitId':_0x55816f,'type':_0x2d0a45,'subUnitId':_0x1d6bb4});let _0x270a1d=0x0,_0x37d972=await((_0x1d407a=this['_localCacheService'])==null?void 0x0:_0x1d407a[_0x4d5dc7(0x218)](_0x55816f));return _0x37d972&&(_0x37d972[_0x4d5dc7(0x283)]||_0x37d972[_0x4d5dc7(0xf9)][_0x4d5dc7(0x182)]!==0x0)&&(_0x270a1d=_0x37d972[_0x4d5dc7(0x284)]),_0x270a1d===0x0&&this['_logService'][_0x4d5dc7(0x30f)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x4d5dc7(0x2dc)](_0x55816f,_0x2d0a45,_0x270a1d,_0x1d6bb4);}};_0x143e0e=_0x3934d9([_0x43549d(0x0,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x20c203['SnapshotService'])),_0x43549d(0x2,(0x0,_0x2d0b9f['Optional'])(_0x3e00f7))],_0x143e0e);let _0x3217fe=class{constructor(_0x13e910,_0x52f04c,_0x48635a){const _0x3df1f4=_0x405303;this[_0x3df1f4(0x121)]=_0x13e910,this['_configService']=_0x52f04c,this[_0x3df1f4(0x347)]=_0x48635a,_0x4219eb(this,'_waitCount',0x0),_0x4219eb(this,_0x3df1f4(0x106),new _0x31dca4['Subject']()),_0x4219eb(this,_0x3df1f4(0x1a3),this[_0x3df1f4(0x106)]),_0x4219eb(this,_0x3df1f4(0x158),new Map());}[_0x405303(0x37b)](_0x52d13b){const _0x8f3404=_0x405303;this[_0x8f3404(0x3c1)]=_0x52d13b,this[_0x8f3404(0x106)][_0x8f3404(0x131)](_0x52d13b);}[_0x405303(0x22c)](_0x4eab09,_0x5a0cfa){const _0x2fdc04=_0x405303;if(_0x5a0cfa===_0x2d0b9f[_0x2fdc04(0x41f)][_0x2fdc04(0x310)]){let _0xb5e157=new Image();return _0xb5e157[_0x2fdc04(0x2d4)]=_0x4eab09,_0xb5e157;}return this[_0x2fdc04(0x158)]['get'](_0x4eab09);}[_0x405303(0x37d)](_0x2373e0,_0x56185c,_0x5e8dfe){const _0xe959b0=_0x405303;_0x56185c!==_0x2d0b9f[_0xe959b0(0x41f)]['BASE64']&&_0x5e8dfe!=null&&this[_0xe959b0(0x158)][_0xe959b0(0x339)](_0x2373e0,_0x5e8dfe);}async[_0x405303(0x2d9)](_0x19ad78){const _0x7dea45=_0x405303;try{let _0x11eb79=this['_replaceFileID'](this[_0x7dea45(0x18a)](),''+_0x19ad78),_0x10b749=(await this[_0x7dea45(0x121)]['get'](_0x11eb79))['body'];if(_0x10b749[_0x7dea45(0x2a9)]&&_0x10b749[_0x7dea45(0x2a9)][_0x7dea45(0x2c4)]===_0x11fae4[_0x7dea45(0x334)]['OK']){let _0x3647fd=(0x0,_0x2d0b9f[_0x7dea45(0x172)])(_0x10b749[_0x7dea45(0x204)],this[_0x7dea45(0x33f)]());return Promise['resolve'](_0x3647fd);}return Promise['reject'](_0x10b749[_0x7dea45(0x2a9)]);}catch(_0x1ad824){return Promise[_0x7dea45(0x293)](_0x1ad824);}}async['saveImage'](_0x1f9d52){const _0x5c9062=_0x405303;let _0x3e89f1='';if(!_0x247c19[_0x5c9062(0x36e)][_0x5c9062(0x281)](_0x1f9d52[_0x5c9062(0x24b)]))return this[_0x5c9062(0x351)](),Promise[_0x5c9062(0x293)](Error(_0x2d0b9f['ImageUploadStatusType'][_0x5c9062(0x100)]));if(_0x1f9d52[_0x5c9062(0x1db)]>(0x0,_0x247c19[_0x5c9062(0x29f)])())return this['_decreaseWaiting'](),Promise['reject'](Error(_0x2d0b9f[_0x5c9062(0x1ec)][_0x5c9062(0x1b1)]));try{let _0x9c1c98=new FormData();_0x9c1c98[_0x5c9062(0x43f)](_0x5c9062(0x1cc),_0x1f9d52);let _0x9036=this['_univerInstanceService'][_0x5c9062(0x1bf)](),_0x3a81ae=_0x9036==null?void 0x0:_0x9036['getUnitId']();if(!_0x3a81ae)throw Error(_0x5c9062(0x1c1));let _0x5bbf9a=this[_0x5c9062(0x27f)]()+'?size='+_0x1f9d52[_0x5c9062(0x1db)][_0x5c9062(0x349)]()+_0x5c9062(0x369)+_0x11fae4[_0x5c9062(0x34e)][_0x5c9062(0x3f8)]+_0x5c9062(0x156)+encodeURIComponent(_0x3a81ae),_0x32f6ea={'body':_0x9c1c98},_0x3a5a02=(await this[_0x5c9062(0x121)]['post'](_0x5bbf9a,_0x32f6ea))[_0x5c9062(0x43d)];if(typeof _0x3a5a02[_0x5c9062(0x2d1)]!=_0x5c9062(0x163))return this[_0x5c9062(0x351)](),Promise[_0x5c9062(0x293)](Error(_0x2d0b9f[_0x5c9062(0x1ec)][_0x5c9062(0x1f3)]));_0x3e89f1=_0x3a5a02[_0x5c9062(0x2d1)];}catch{return this[_0x5c9062(0x351)](),Promise[_0x5c9062(0x293)](Error(_0x2d0b9f[_0x5c9062(0x1ec)][_0x5c9062(0x1f3)]));}return new Promise((_0x2e067b,_0x2239fb)=>{const _0x36943a=_0x5c9062;let _0x44e2c8=new FileReader();_0x44e2c8['readAsDataURL'](_0x1f9d52),_0x44e2c8[_0x36943a(0x109)]=_0x1b7ab9=>{const _0x309a3f=_0x36943a;var _0x239277;let _0x30a159=(_0x239277=_0x1b7ab9['target'])==null?void 0x0:_0x239277['result'];if(_0x30a159==null){this[_0x309a3f(0x351)](),_0x2239fb(Error(_0x2d0b9f[_0x309a3f(0x1ec)][_0x309a3f(0x1f3)]));return;}_0x2e067b({'imageId':(0x0,_0x2d0b9f[_0x309a3f(0x203)])(0x6),'imageSourceType':_0x2d0b9f[_0x309a3f(0x41f)][_0x309a3f(0x2f1)],'source':_0x3e89f1,'base64Cache':_0x30a159,'status':_0x2d0b9f[_0x309a3f(0x1ec)]['SUCCUSS']}),this[_0x309a3f(0x351)]();};});}[_0x405303(0x27f)](){const _0x2f9f74=_0x405303;var _0x53725a;let _0x2fac96=this['_configService'][_0x2f9f74(0x112)](_0x51e182);return(_0x53725a=_0x2fac96==null?void 0x0:_0x2fac96['uploadFileServerUrl'])==null?_0x2f9f74(0x234):_0x53725a;}[_0x405303(0x18a)](){const _0x84d03a=_0x405303;var _0x5ef2d6;let _0x3ef26e=this[_0x84d03a(0x3d2)][_0x84d03a(0x112)](_0x51e182);return(_0x5ef2d6=_0x3ef26e==null?void 0x0:_0x3ef26e[_0x84d03a(0x338)])==null?_0x84d03a(0x441):_0x5ef2d6;}[_0x405303(0x33f)](){const _0x35a328=_0x405303;var _0x4fde77;let _0x21d45a=this[_0x35a328(0x3d2)]['getConfig'](_0x51e182);return(_0x4fde77=_0x21d45a==null?void 0x0:_0x21d45a[_0x35a328(0x3d3)])==null?location['origin']:_0x4fde77;}[_0x405303(0x3f4)](_0x2ac536,_0x3a800d){const _0x376609=_0x405303;return _0x2ac536[_0x376609(0x1ee)]('{fileID}',_0x3a800d);}[_0x405303(0x351)](){const _0x3bdc9e=_0x405303;--this['_waitCount'],this['_change$'][_0x3bdc9e(0x131)](this[_0x3bdc9e(0x3c1)]);}};_0x3217fe=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47['HTTPService'])),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0x2,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x217)]))],_0x3217fe);let _0x1183e4=class{constructor(_0x3a6f57,_0x104033){const _0x20f57f=_0x405303;this['_configService']=_0x3a6f57,this[_0x20f57f(0x2a0)]=_0x104033;}['_getAPIPrefixPath'](){const _0x491087=_0x405303;var _0x11509a;let _0x7a04c3=this['_configService'][_0x491087(0x112)](_0x51e182);return(_0x11509a=_0x7a04c3==null?void 0x0:_0x7a04c3[_0x491087(0x3d1)])==null?_0x491087(0x35e):_0x11509a;}async[_0x405303(0x269)](_0x2fc3df){const _0x24988c=_0x405303;let _0x196216=this[_0x24988c(0x2a1)]()+_0x24988c(0x2f7);return{'list':[{'title':_0x24988c(0x135),'mentions':(await this[_0x24988c(0x2a0)][_0x24988c(0x1b8)](_0x196216,{'params':{'objectID':_0x2fc3df[_0x24988c(0x29b)],'unitID':_0x2fc3df['unitId']}}))[_0x24988c(0x43d)][_0x24988c(0x194)]['map'](_0x5d6507=>({'objectId':_0x5d6507['id'],'name':_0x5d6507[_0x24988c(0x12f)][_0x24988c(0xeb)],'metadata':{'icon':_0x5d6507[_0x24988c(0x12f)][_0x24988c(0x21b)]},'label':_0x5d6507[_0x24988c(0x12f)][_0x24988c(0xeb)],'objectType':_0x2d0b9f[_0x24988c(0x145)][_0x24988c(0x1ba)]})),'metadata':{},'type':_0x2d0b9f[_0x24988c(0x145)][_0x24988c(0x1ba)]}]};}};_0x1183e4=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x346)])),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)]))],_0x1183e4);let _0x1705a2=class extends _0x2d0b9f[_0x405303(0x16d)]{constructor(_0x5330f9,_0x234d14,_0x1e944b,_0x4ff3fe,_0x21a0df){const _0x13d9c6=_0x405303;super(),this[_0x13d9c6(0x3ef)]=_0x5330f9,this[_0x13d9c6(0x347)]=_0x234d14,this[_0x13d9c6(0x2cd)]=_0x1e944b,this[_0x13d9c6(0x43b)]=_0x4ff3fe,this[_0x13d9c6(0x214)]=_0x21a0df,this[_0x13d9c6(0x449)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x62d4f9=_0x405303;let _0x33a219=async _0x2deac6=>{const _0x249b5c=_0x4e8d;(await this[_0x249b5c(0x43b)][_0x249b5c(0x305)](_0x2deac6))['event$'][_0x249b5c(0x18e)]((0x0,_0x2ba3c8[_0x249b5c(0x24d)])(_0x373ce2=>_0x373ce2[_0x249b5c(0x3cc)]===_0x20c203[_0x249b5c(0x3e1)][_0x249b5c(0x37a)]),(0x0,_0x2ba3c8[_0x249b5c(0x220)])(this[_0x249b5c(0x405)]))['subscribe'](_0x2ee291=>{const _0x1fc9eb=_0x249b5c;let {reason:_0x10e47d}=_0x2ee291['data'];this[_0x1fc9eb(0x214)][_0x1fc9eb(0x31f)]({'id':'CLOSE_ROOM','data':_0x10e47d}),this[_0x1fc9eb(0x2cd)][_0x1fc9eb(0x2ea)](new _0x2ba48b[(_0x1fc9eb(0x422))](_0x2deac6)['id'],!0x1),this[_0x1fc9eb(0x43b)][_0x1fc9eb(0x34a)](_0x2deac6);});};(0x0,_0x31dca4[_0x62d4f9(0xfd)])(this[_0x62d4f9(0x347)]['getTypeOfUnitAdded$'](_0x2d0b9f[_0x62d4f9(0x341)]['UNIVER_SHEET']),this['_univerInstanceService'][_0x62d4f9(0x307)](_0x2d0b9f['UniverInstanceType'][_0x62d4f9(0x13a)]),this[_0x62d4f9(0x347)][_0x62d4f9(0x307)](_0x2d0b9f[_0x62d4f9(0x341)]['UNIVER_BOARD']),this[_0x62d4f9(0x347)][_0x62d4f9(0x307)](_0x2d0b9f['UniverInstanceType'][_0x62d4f9(0x17d)]))[_0x62d4f9(0x18e)]((0x0,_0x2ba3c8['map'])(_0x27aaa5=>_0x27aaa5[_0x62d4f9(0x417)][_0x62d4f9(0x202)]()),(0x0,_0x2ba3c8[_0x62d4f9(0x24d)])(_0x1de277=>!(0x0,_0x2d0b9f[_0x62d4f9(0x148)])(_0x1de277)),(0x0,_0x2ba3c8[_0x62d4f9(0x220)])(this[_0x62d4f9(0x405)]))['subscribe'](_0x132510=>{_0x33a219(_0x132510);});}[_0x405303(0x449)](){const _0x5eef30=_0x405303;let _0xba6e73=async _0x5dfaee=>{const _0x68e500=_0x4e8d;let _0x45edaf=await this[_0x68e500(0x43b)][_0x68e500(0x305)](_0x5dfaee),_0x44cb17=this['_injector'][_0x68e500(0x1b8)](_0x2ba48b['SheetPermissionInitController']);_0x45edaf[_0x68e500(0x233)]['pipe']((0x0,_0x2ba3c8[_0x68e500(0x24d)])(_0x1aaf8f=>_0x1aaf8f[_0x68e500(0x3cc)]===_0x20c203[_0x68e500(0x3e1)][_0x68e500(0x2af)]),(0x0,_0x2ba3c8[_0x68e500(0x220)])(this['dispose$']))['subscribe'](_0x245290=>{const _0x503795=_0x68e500;let {objectId:_0x5e032c}=_0x245290[_0x503795(0x3be)];_0x5e032c===_0x5dfaee?_0x44cb17['initWorkbookPermissionChange'](_0x5dfaee):_0x44cb17[_0x503795(0x23f)](_0x5dfaee,_0x5e032c);});};(0x0,_0x31dca4['merge'])(this['_univerInstanceService'][_0x5eef30(0x307)](_0x2d0b9f['UniverInstanceType'][_0x5eef30(0x378)]))[_0x5eef30(0x18e)]((0x0,_0x2ba3c8[_0x5eef30(0x110)])(_0x1409a9=>_0x1409a9[_0x5eef30(0x417)][_0x5eef30(0x202)]()),(0x0,_0x2ba3c8[_0x5eef30(0x24d)])(_0x5c319d=>!(0x0,_0x2d0b9f[_0x5eef30(0x148)])(_0x5c319d)),(0x0,_0x2ba3c8[_0x5eef30(0x220)])(this[_0x5eef30(0x405)]))[_0x5eef30(0x120)](_0x2d4c25=>{_0xba6e73(_0x2d4c25);});}};_0x1705a2=_0x3934d9([_0x43549d(0x0,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f['Injector'])),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0x2,_0x2d0b9f[_0x405303(0x160)]),_0x43549d(0x3,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x4c98b9)),_0x43549d(0x4,(0x0,_0x2d0b9f['Inject'])(_0xa9d46c))],_0x1705a2);let _0x4f051f=class{constructor(_0x36a674,_0x15e18e){this['_configService']=_0x36a674,this['_httpService']=_0x15e18e;}async[_0x405303(0x252)](_0x4731f6,_0x5cbd8d){const _0x5b3851=_0x405303;var _0x37f698;let {unitID:_0x3f569e,type:_0x5f9be0,revision:_0x21e9ee=0x0}=_0x5cbd8d,_0x46dda6=this[_0x5b3851(0x256)]()+'/'+_0x5f9be0+_0x5b3851(0x437)+_0x3f569e+'/rev/'+_0x21e9ee,_0x172d0f=(await this['_httpService'][_0x5b3851(0x1b8)](_0x46dda6))[_0x5b3851(0x43d)],_0x282703=(_0x37f698=_0x172d0f['snapshot'])==null?void 0x0:_0x37f698[_0x5b3851(0x228)];if(_0x282703){let _0x5346d9=_0x282703==null?void 0x0:_0x282703[_0x5b3851(0x181)];_0x282703[_0x5b3851(0x181)]=_0x20c203[_0x5b3851(0x249)][_0x5b3851(0x23a)]((0x0,_0x20c203[_0x5b3851(0x1bd)])(_0x5346d9)),Object[_0x5b3851(0x37c)](_0x282703['sheets'])[_0x5b3851(0x412)](([,_0x1cc7c5])=>{const _0x3b0031=_0x5b3851;let _0x232b25=_0x1cc7c5[_0x3b0031(0x181)];_0x1cc7c5[_0x3b0031(0x181)]=_0x20c203['textEncoder'][_0x3b0031(0x23a)]((0x0,_0x20c203[_0x3b0031(0x1bd)])(_0x232b25));});}return _0x172d0f;}async['getSheetBlock'](_0x41dc9c,_0x53bb93){const _0x1e004e=_0x405303;let {unitID:_0x52e8e7,type:_0x3ca7ba,blockID:_0xcdcaac}=_0x53bb93,_0x4488ff=this[_0x1e004e(0x1f9)]()+'/'+_0x3ca7ba+_0x1e004e(0x437)+_0x52e8e7+'/block/'+_0xcdcaac;return(await this['_httpService']['get'](_0x4488ff))[_0x1e004e(0x43d)];}async[_0x405303(0x20f)](_0x393470,_0x1d2a1a){const _0x4ac2d1=_0x405303;let {unitID:_0xe19253,type:_0x134d8d,blockID:_0x10d87e}=_0x1d2a1a,_0x4ecc45=this[_0x4ac2d1(0x1f9)]()+_0x4ac2d1(0x115)+_0x134d8d+_0x4ac2d1(0x437)+_0xe19253+_0x4ac2d1(0x115)+_0x10d87e;return(await this[_0x4ac2d1(0x121)][_0x4ac2d1(0x1b8)](_0x4ecc45))['body'];}async['fetchMissingChangesets'](_0x548b67,_0x292302){const _0x8fc751=_0x405303;let {unitID:_0x1cc671,type:_0x2b67e0,from:_0x32ba00,to:_0x4fe6ba}=_0x292302,_0x3b17e8=this[_0x8fc751(0x1f9)]()+'/'+_0x2b67e0+_0x8fc751(0x437)+_0x1cc671+_0x8fc751(0x353)+_0x32ba00+_0x8fc751(0x1c8)+_0x4fe6ba;return(await this[_0x8fc751(0x121)][_0x8fc751(0x1b8)](_0x3b17e8))[_0x8fc751(0x43d)];}['getSnapshotAPIPath'](){const _0x39a083=_0x405303;var _0x271f02;return(_0x271f02=this[_0x39a083(0x3d2)][_0x39a083(0x112)](_0x39a083(0x25e)))==null?this[_0x39a083(0x1f9)]():_0x271f02;}['_getAPIPrefix'](){const _0x3d98be=_0x405303;var _0x2946e1;let _0x3a8cf6=this[_0x3d98be(0x3d2)][_0x3d98be(0x112)](_0x51e182);return(_0x2946e1=_0x3a8cf6==null?void 0x0:_0x3a8cf6[_0x3d98be(0x26b)])==null?_0x3d98be(0x433):_0x2946e1;}async[_0x405303(0x127)](_0x149260,_0x33945a){const _0x572a92=_0x405303;let _0x52cf6e=_0x572a92(0x213)+_0x33945a[_0x572a92(0x24b)]+'/unit/'+_0x33945a[_0x572a92(0x1c9)]+_0x572a92(0x24f);return(await this[_0x572a92(0x121)][_0x572a92(0x1b8)](_0x52cf6e,{'params':{'resourceId':JSON[_0x572a92(0x238)](_0x33945a[_0x572a92(0x1c7)])}}))[_0x572a92(0x43d)];}['saveSnapshot'](){const _0x333045=_0x405303;throw Error(_0x333045(0x254));}[_0x405303(0x226)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x405303(0x36c)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x405303(0x297)](){const _0x2ad231=_0x405303;throw Error(_0x2ad231(0x254));}[_0x405303(0x1b4)](){const _0x7d516b=_0x405303;throw Error(_0x7d516b(0x254));}};_0x4f051f=_0x3934d9([_0x43549d(0x0,_0x2d0b9f[_0x405303(0x346)]),_0x43549d(0x1,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0xc90c47[_0x405303(0x141)]))],_0x4f051f);let _0x5aea68=class extends _0x2d0b9f['LocalUndoRedoService']{constructor(_0x103dab,_0x45bbf4,_0x1fcffd,_0x4b4f14,_0x1a8184){const _0x3fdcb9=_0x405303;super(_0x103dab,_0x45bbf4,_0x1fcffd),this[_0x3fdcb9(0x1f8)]=_0x4b4f14,this[_0x3fdcb9(0x3d5)]=_0x1a8184;}[_0x405303(0x312)](_0x39bdad,_0x54b229){const _0x19dc57=_0x405303;let _0xaea814=this[_0x19dc57(0x393)](_0x39bdad);if(_0xaea814)try{let _0x3d75c3=this[_0x19dc57(0x32f)](_0xaea814,_0x54b229);this[_0x19dc57(0x1fa)](_0x39bdad,_0x3d75c3);}catch(_0x3d86d0){this['_logService']['error']('[CollaborationUndoRedoService]',_0x3d86d0),this['_clearUndo'](_0x39bdad);}let _0x1d6724=this[_0x19dc57(0x23c)](_0x39bdad);if(_0x1d6724)try{let _0x5bd954=this['_transformStack'](_0x1d6724,_0x54b229);this[_0x19dc57(0x1f7)](_0x39bdad,_0x5bd954);}catch(_0x2bb086){this[_0x19dc57(0x3d5)][_0x19dc57(0x2a9)](_0x2bb086),this[_0x19dc57(0x1b2)](_0x39bdad);}}[_0x405303(0x316)](_0xc87229){const _0x4bdd2d=_0x405303;let _0x289312=this[_0x4bdd2d(0x393)](_0xc87229);_0x289312&&(_0x289312[_0x4bdd2d(0x182)]=0x0,this[_0x4bdd2d(0x30b)]());}['_clearRedo'](_0xc6f1){const _0x33bf98=_0x405303;let _0x133fc2=this['_getRedoStack'](_0xc6f1);_0x133fc2&&(_0x133fc2[_0x33bf98(0x182)]=0x0,this[_0x33bf98(0x30b)]());}[_0x405303(0x1fa)](_0x3b81bb,_0x14537e){const _0x118a34=_0x405303;this[_0x118a34(0xef)][_0x118a34(0x339)](_0x3b81bb,_0x14537e),this['_updateStatus']();}[_0x405303(0x1f7)](_0x4a18d4,_0x245d80){const _0x4bcff4=_0x405303;this[_0x4bcff4(0x2b0)][_0x4bcff4(0x339)](_0x4a18d4,_0x245d80),this[_0x4bcff4(0x30b)]();}[_0x405303(0x32f)](_0x270151,_0x5bee27){const _0x3fa6e5=_0x405303;let _0x49ec7a=[],_0x2f0cd3=_0x5bee27,_0x17bfb1=_0x5bee27;for(let _0x2fa2f5=_0x270151[_0x3fa6e5(0x182)]-0x1;_0x2fa2f5>=0x0;_0x2fa2f5--){let {unitID:_0x451277,undoMutations:_0xf568e2,redoMutations:_0x5acdc2}=_0x270151[_0x2fa2f5],_0x33eaf5=this[_0x3fa6e5(0x1f8)][_0x3fa6e5(0x30a)](_0x2f0cd3,_0xf568e2),_0x4e0477=this[_0x3fa6e5(0x1f8)][_0x3fa6e5(0x30a)](_0x17bfb1,_0x5acdc2);if((0x0,_0x20c203[_0x3fa6e5(0x153)])(_0x33eaf5)||(0x0,_0x20c203['isTransformMutationsWithChangesetFailure'])(_0x4e0477)){this[_0x3fa6e5(0x3d5)][_0x3fa6e5(0x2a9)](_0x3fa6e5(0x279),_0x3fa6e5(0x2d6),_0x33eaf5,_0x4e0477);break;}_0x2f0cd3=_0x33eaf5[_0x3fa6e5(0x2c3)],_0x17bfb1=_0x4e0477[_0x3fa6e5(0x2c3)],_0x49ec7a[_0x3fa6e5(0x1f4)]({'unitID':_0x451277,'undoMutations':_0x33eaf5[_0x3fa6e5(0x36d)],'redoMutations':_0x4e0477[_0x3fa6e5(0x36d)]});}return _0x49ec7a['reverse']();}};_0x5aea68=_0x3934d9([_0x43549d(0x0,_0x2d0b9f[_0x405303(0x217)]),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x326)]),_0x43549d(0x2,_0x2d0b9f[_0x405303(0x278)]),_0x43549d(0x3,_0x20c203[_0x405303(0x23e)]),_0x43549d(0x4,_0x2d0b9f[_0x405303(0x280)])],_0x5aea68);let _0x30afa7=class extends _0x2d0b9f['Plugin']{constructor(_0x2d3ea9=_0x5939b8,_0x1a4103,_0x1b9ef9,_0x597a3b){const _0x3a9283=_0x405303;super(),this[_0x3a9283(0x16b)]=_0x2d3ea9,this[_0x3a9283(0x3d5)]=_0x1a4103,this[_0x3a9283(0x3ef)]=_0x1b9ef9,this[_0x3a9283(0x3d2)]=_0x597a3b;let {..._0xb1bd24}=(0x0,_0x2d0b9f[_0x3a9283(0xfd)])({},_0x5939b8,this[_0x3a9283(0x16b)]);if(!_0xb1bd24['socketService'])throw Error(_0x3a9283(0x126));this[_0x3a9283(0x16b)]=_0xb1bd24,this['_configService'][_0x3a9283(0x10a)](_0x51e182,_0xb1bd24);}[_0x405303(0x1d6)](){const _0x1ad991=_0x405303;this[_0x1ad991(0x448)](),this['_initDependencies']();}[_0x405303(0x448)](){const _0xe5ae73=_0x405303;var _0x32bd8a,_0x4fcd84;this[_0xe5ae73(0x3ef)][_0xe5ae73(0x206)](_0x2d0b9f[_0xe5ae73(0xf4)])&&this[_0xe5ae73(0x3d5)]['error'](_0xe5ae73(0x162),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x4db949=(0x0,_0x2d0b9f[_0xe5ae73(0x197)])([[_0x2d0b9f['IUndoRedoService'],{'useClass':_0x5aea68}],[_0x562152,{'useValue':_0x233b60()}],[_0x4c98b9],[_0x42c2f1],[_0x201f2c],[_0x1eed0d],[_0x46162e],[_0x432b3d],[_0x1705a2],[_0xa9d46c],[_0x143e0e],[_0x581f35,{'useClass':this[_0xe5ae73(0x16b)][_0xe5ae73(0x20d)]}],[_0x20c203[_0xe5ae73(0x3e3)],{'useClass':_0x4f051f}],[_0x2d0b9f[_0xe5ae73(0x2ad)],{'useClass':_0x4e73d2}],[_0x2d0b9f[_0xe5ae73(0x140)],{'useClass':_0x3217fe}],[_0x29321d,{'useClass':_0x36dd49}],[_0x2d0b9f['IMentionIOService'],{'useClass':_0x1183e4}],[_0x58a316],[_0x3ed61f]],(_0x32bd8a=this[_0xe5ae73(0x16b)])==null?void 0x0:_0x32bd8a[_0xe5ae73(0x118)]);if(!((_0x4fcd84=this[_0xe5ae73(0x16b)])!=null&&_0x4fcd84[_0xe5ae73(0x2fe)])){let _0x58995c=_0x4db949[_0xe5ae73(0x320)](([_0x3645cc])=>_0x3645cc===_0x43c9bd);_0x58995c!==-0x1&&_0x4db949['splice'](_0x58995c,0x1);}(0x0,_0x2d0b9f[_0xe5ae73(0x2b7)])(this[_0xe5ae73(0x3ef)],_0x4db949);}[_0x405303(0x396)](){const _0x196cf8=_0x405303;var _0xf220e,_0x2e395a;if(this['_injector'][_0x196cf8(0x1b8)](_0xc90c47[_0x196cf8(0x141)])[_0x196cf8(0x42d)]({'priority':0x14,'interceptor':(0x0,_0xc90c47['ThresholdInterceptorFactory'])({'maxParallel':0x6})}),!((_0xf220e=this[_0x196cf8(0x16b)])!=null&&_0xf220e[_0x196cf8(0x17b)])){var _0x4eb5ed;(_0x4eb5ed=this[_0x196cf8(0x3ef)]['get'](_0x3e00f7,_0x2d0b9f[_0x196cf8(0x190)][_0x196cf8(0x28e)]))==null||_0x4eb5ed[_0x196cf8(0x40b)]();}(_0x2e395a=this[_0x196cf8(0x16b)])!=null&&_0x2e395a[_0x196cf8(0x272)]&&(0x0,_0x2d0b9f[_0x196cf8(0x123)])(this[_0x196cf8(0x3ef)],[[_0x1eed0d]]),(0x0,_0x2d0b9f[_0x196cf8(0x123)])(this[_0x196cf8(0x3ef)],[[_0x46162e],[_0x58a316],[_0x1705a2]]);}};_0x4219eb(_0x30afa7,'pluginName',_0x405303(0x43a)),_0x4219eb(_0x30afa7,_0x405303(0x21a),_0x556b81),_0x4219eb(_0x30afa7,_0x405303(0x1cb),_0x5f209a),_0x30afa7=_0x3934d9([(0x0,_0x2d0b9f['DependentOn'])(_0x3478b3[_0x405303(0x3a5)],_0xc90c47[_0x405303(0x348)],_0x20c203[_0x405303(0x169)]),_0x43549d(0x1,_0x2d0b9f[_0x405303(0x280)]),_0x43549d(0x2,(0x0,_0x2d0b9f[_0x405303(0x22b)])(_0x2d0b9f[_0x405303(0x3f7)])),_0x43549d(0x3,_0x2d0b9f[_0x405303(0x346)])],_0x30afa7),Object['defineProperty'](_0x4baffb,'AuthzIoHttpService',{'enumerable':!0x0,'get':function(){return _0x4e73d2;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x23b),{'enumerable':!0x0,'get':function(){return _0xe05e0d;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x3cd),{'enumerable':!0x0,'get':function(){return _0x49c582;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x232),{'enumerable':!0x0,'get':function(){return _0x59b528;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x1f1),{'enumerable':!0x0,'get':function(){return _0x4cf531;}}),_0x4baffb[_0x405303(0x426)]=_0x51e182,Object['defineProperty'](_0x4baffb,_0x405303(0x1dd),{'enumerable':!0x0,'get':function(){return _0x36dd49;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x42f),{'enumerable':!0x0,'get':function(){return _0x58a316;}}),Object['defineProperty'](_0x4baffb,_0x405303(0x442),{'enumerable':!0x0,'get':function(){return _0xfb921e;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x332),{'enumerable':!0x0,'get':function(){return _0x3217fe;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x44d),{'enumerable':!0x0,'get':function(){return _0x1213e3;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x40e),{'enumerable':!0x0,'get':function(){return _0x4c98b9;}}),Object[_0x405303(0x236)](_0x4baffb,'CollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x2eb133;}}),_0x4baffb[_0x405303(0x41e)]=_0x1e7da3,_0x4baffb[_0x405303(0x1be)]=_0x3f9476,_0x4baffb['CollaborationUIEventService']=_0xa9d46c,Object[_0x405303(0x236)](_0x4baffb,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return _0x5aea68;}}),_0x4baffb[_0x405303(0x1d0)]=_0x432b3d,Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x428),{'enumerable':!0x0,'get':function(){return _0x1af009;}}),_0x4baffb[_0x405303(0x216)]=_0x219b9d,_0x4baffb[_0x405303(0x157)]=_0x405303(0x2f3),_0x4baffb[_0x405303(0x31c)]='/universer-api/user/session-ticket',Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x2b1),{'enumerable':!0x0,'get':function(){return _0x143e0e;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x14e),{'enumerable':!0x0,'get':function(){return _0x5a7876;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x1ff),{'enumerable':!0x0,'get':function(){return _0x234be3;}}),_0x4baffb[_0x405303(0x1c6)]=_0x405303(0x2db),_0x4baffb[_0x405303(0x187)]=_0x405303(0x26f),_0x4baffb[_0x405303(0x178)]=_0x29321d,_0x4baffb[_0x405303(0x44b)]=_0x562152,_0x4baffb['ICollaborationSocketService']=_0x581f35,_0x4baffb['ILocalCacheService']=_0x3e00f7,_0x4baffb[_0x405303(0x132)]=_0x1e1155,_0x4baffb[_0x405303(0x372)]=_0x43c9bd,_0x4baffb[_0x405303(0x1ce)]=0x3e8,_0x4baffb['LOCAL_CACHE_INTERVAL_KEY']='LOCAL_CACHE_INTERVAL',Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x1c3),{'enumerable':!0x0,'get':function(){return _0x42c2f1;}}),Object['defineProperty'](_0x4baffb,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return _0x1183e4;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x32c),{'enumerable':!0x0,'get':function(){return _0x3b0e9a;}}),Object['defineProperty'](_0x4baffb,_0x405303(0x36f),{'enumerable':!0x0,'get':function(){return _0x514c5a;}}),Object[_0x405303(0x236)](_0x4baffb,'PendingState',{'enumerable':!0x0,'get':function(){return _0x315789;}}),_0x4baffb[_0x405303(0x34f)]=_0x405303(0x276),_0x4baffb[_0x405303(0x1ae)]=_0x405303(0x113),_0x4baffb[_0x405303(0x2ef)]=_0x53b627,Object['defineProperty'](_0x4baffb,_0x405303(0x277),{'enumerable':!0x0,'get':function(){return _0x5080f;}}),Object['defineProperty'](_0x4baffb,_0x405303(0x35f),{'enumerable':!0x0,'get':function(){return _0x201f2c;}}),Object['defineProperty'](_0x4baffb,_0x405303(0x37e),{'enumerable':!0x0,'get':function(){return _0x33945f;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x3e9),{'enumerable':!0x0,'get':function(){return _0x4f051f;}}),Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x1fc),{'enumerable':!0x0,'get':function(){return _0x2b0eea;}}),_0x4baffb['UnitStatus']=_0x42b9d3,Object[_0x405303(0x236)](_0x4baffb,_0x405303(0x3c3),{'enumerable':!0x0,'get':function(){return _0x30afa7;}}),_0x4baffb[_0x405303(0x28f)]=_0x233b60,_0x4baffb[_0x405303(0x40a)]=_0x36834a,_0x4baffb[_0x405303(0x408)]=_0x2ea860,_0x4baffb[_0x405303(0x30d)]=_0x2e90ec;}));
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();}